Curl_altsvc_init:
  319|  7.82k|{
  320|  7.82k|  struct altsvcinfo *asi = curlx_calloc(1, sizeof(struct altsvcinfo));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  321|  7.82k|  if(!asi)
  ------------------
  |  Branch (321:6): [True: 0, False: 7.82k]
  ------------------
  322|      0|    return NULL;
  323|  7.82k|  Curl_llist_init(&asi->list, NULL);
  324|       |
  325|       |  /* set default behavior */
  326|  7.82k|  asi->flags = CURLALTSVC_H1
  ------------------
  |  | 1035|  7.82k|#define CURLALTSVC_H1           (1L << 3)
  ------------------
  327|  7.82k|#ifdef USE_HTTP2
  328|  7.82k|    | CURLALTSVC_H2
  ------------------
  |  | 1036|  7.82k|#define CURLALTSVC_H2           (1L << 4)
  ------------------
  329|  7.82k|#endif
  330|       |#ifdef USE_HTTP3
  331|       |    | CURLALTSVC_H3
  332|       |#endif
  333|  7.82k|    ;
  334|  7.82k|  return asi;
  335|  7.82k|}
Curl_altsvc_load:
  341|  7.82k|{
  342|  7.82k|  DEBUGASSERT(asi);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (342:3): [True: 0, False: 7.82k]
  |  Branch (342:3): [True: 7.82k, False: 0]
  ------------------
  343|  7.82k|  return altsvc_load(asi, file);
  344|  7.82k|}
Curl_altsvc_cleanup:
  369|  15.6k|{
  370|  15.6k|  if(*asi) {
  ------------------
  |  Branch (370:6): [True: 7.82k, False: 7.82k]
  ------------------
  371|  7.82k|    struct Curl_llist_node *e;
  372|  7.82k|    struct Curl_llist_node *n;
  373|  7.82k|    struct altsvcinfo *altsvc = *asi;
  374|  7.82k|    for(e = Curl_llist_head(&altsvc->list); e; e = n) {
  ------------------
  |  Branch (374:45): [True: 0, False: 7.82k]
  ------------------
  375|      0|      struct altsvc *as = Curl_node_elem(e);
  376|      0|      n = Curl_node_next(e);
  377|      0|      altsvc_free(as);
  ------------------
  |  |   81|      0|#define altsvc_free(x) curlx_free(x)
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
  378|      0|    }
  379|  7.82k|    curlx_free(altsvc->filename);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  380|  7.82k|    curlx_free(altsvc);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  381|       |    *asi = NULL; /* clear the pointer */
  382|  7.82k|  }
  383|  15.6k|}
Curl_altsvc_save:
  390|  15.6k|{
  391|  15.6k|  CURLcode result = CURLE_OK;
  392|  15.6k|  FILE *out;
  393|  15.6k|  char *tempstore = NULL;
  394|       |
  395|  15.6k|  if(!asi)
  ------------------
  |  Branch (395:6): [True: 7.82k, False: 7.82k]
  ------------------
  396|       |    /* no cache activated */
  397|  7.82k|    return CURLE_OK;
  398|       |
  399|       |  /* if not new name is given, use the one we stored from the load */
  400|  7.82k|  if(!file && asi->filename)
  ------------------
  |  Branch (400:6): [True: 0, False: 7.82k]
  |  Branch (400:15): [True: 0, False: 0]
  ------------------
  401|      0|    file = asi->filename;
  402|       |
  403|  7.82k|  if((asi->flags & CURLALTSVC_READONLYFILE) || !file || !file[0])
  ------------------
  |  | 1034|  7.82k|#define CURLALTSVC_READONLYFILE (1L << 2)
  ------------------
  |  Branch (403:6): [True: 0, False: 7.82k]
  |  Branch (403:48): [True: 0, False: 7.82k]
  |  Branch (403:57): [True: 0, False: 7.82k]
  ------------------
  404|       |    /* marked as read-only, no file or zero length filename */
  405|      0|    return CURLE_OK;
  406|       |
  407|  7.82k|  result = Curl_fopen(data, file, &out, &tempstore);
  408|  7.82k|  if(!result) {
  ------------------
  |  Branch (408:6): [True: 7.82k, False: 0]
  ------------------
  409|  7.82k|    struct Curl_llist_node *e;
  410|  7.82k|    struct Curl_llist_node *n;
  411|  7.82k|    fputs("# Your alt-svc cache. https://curl.se/docs/alt-svc.html\n"
  412|  7.82k|          "# This file was generated by libcurl! Edit at your own risk.\n",
  413|  7.82k|          out);
  414|  7.82k|    for(e = Curl_llist_head(&asi->list); e; e = n) {
  ------------------
  |  Branch (414:42): [True: 0, False: 7.82k]
  ------------------
  415|      0|      struct altsvc *as = Curl_node_elem(e);
  416|      0|      n = Curl_node_next(e);
  417|      0|      result = altsvc_out(as, out);
  418|      0|      if(result)
  ------------------
  |  Branch (418:10): [True: 0, False: 0]
  ------------------
  419|      0|        break;
  420|      0|    }
  421|  7.82k|    curlx_fclose(out);
  ------------------
  |  |   79|  7.82k|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
  422|  7.82k|    if(!result && tempstore && curlx_rename(tempstore, file))
  ------------------
  |  |   70|      0|#define curlx_rename            rename
  ------------------
  |  Branch (422:8): [True: 7.82k, False: 0]
  |  Branch (422:19): [True: 0, False: 7.82k]
  |  Branch (422:32): [True: 0, False: 0]
  ------------------
  423|      0|      result = CURLE_WRITE_ERROR;
  424|       |
  425|  7.82k|    if(result && tempstore)
  ------------------
  |  Branch (425:8): [True: 0, False: 7.82k]
  |  Branch (425:18): [True: 0, False: 0]
  ------------------
  426|      0|      unlink(tempstore);
  427|  7.82k|  }
  428|  7.82k|  curlx_free(tempstore);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  429|  7.82k|  return result;
  430|  7.82k|}
altsvc.c:altsvc_load:
  232|  7.82k|{
  233|  7.82k|  CURLcode result = CURLE_OK;
  234|  7.82k|  FILE *fp;
  235|       |
  236|       |  /* we need a private copy of the filename so that the altsvc cache file
  237|       |     name survives an easy handle reset */
  238|  7.82k|  curlx_free(asi->filename);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  239|  7.82k|  asi->filename = curlx_strdup(file);
  ------------------
  |  | 1477|  7.82k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  240|  7.82k|  if(!asi->filename)
  ------------------
  |  Branch (240:6): [True: 0, False: 7.82k]
  ------------------
  241|      0|    return CURLE_OUT_OF_MEMORY;
  242|       |
  243|  7.82k|  fp = curlx_fopen(file, FOPEN_READTEXT);
  ------------------
  |  |   74|  7.82k|#define curlx_fopen(file, mode) curl_dbg_fopen(file, mode, __LINE__, __FILE__)
  ------------------
  244|  7.82k|  if(fp) {
  ------------------
  |  Branch (244:6): [True: 7.82k, False: 0]
  ------------------
  245|  7.82k|    curlx_struct_stat stat;
  ------------------
  |  |   63|  7.82k|#define curlx_struct_stat       struct stat
  ------------------
  246|  7.82k|    if((curlx_fstat(fileno(fp), &stat) == -1) || !S_ISDIR(stat.st_mode)) {
  ------------------
  |  |   62|  7.82k|#define curlx_fstat             fstat
  ------------------
  |  Branch (246:8): [True: 0, False: 7.82k]
  |  Branch (246:50): [True: 7.82k, False: 0]
  ------------------
  247|  7.82k|      bool eof = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  248|  7.82k|      struct dynbuf buf;
  249|  7.82k|      curlx_dyn_init(&buf, MAX_ALTSVC_LINE);
  ------------------
  |  |   41|  7.82k|#define MAX_ALTSVC_LINE    4095
  ------------------
  250|  7.82k|      do {
  251|  7.82k|        result = Curl_get_line(&buf, fp, &eof);
  252|  7.82k|        if(!result) {
  ------------------
  |  Branch (252:12): [True: 7.82k, False: 0]
  ------------------
  253|  7.82k|          const char *lineptr = curlx_dyn_ptr(&buf);
  254|  7.82k|          curlx_str_passblanks(&lineptr);
  255|  7.82k|          if(curlx_str_single(&lineptr, '#'))
  ------------------
  |  Branch (255:14): [True: 7.82k, False: 0]
  ------------------
  256|  7.82k|            altsvc_add(asi, lineptr);
  257|  7.82k|        }
  258|  7.82k|      } while(!result && !eof);
  ------------------
  |  Branch (258:15): [True: 7.82k, False: 0]
  |  Branch (258:26): [True: 0, False: 7.82k]
  ------------------
  259|  7.82k|      curlx_dyn_free(&buf); /* free the line buffer */
  260|  7.82k|    }
  261|  7.82k|    curlx_fclose(fp);
  ------------------
  |  |   79|  7.82k|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
  262|  7.82k|  }
  263|  7.82k|  return result;
  264|  7.82k|}
altsvc.c:altsvc_add:
  163|  7.82k|{
  164|       |  /* Example line:
  165|       |     h2 example.com 443 h3 shiny.example.com 8443 "20191231 10:00:00" 1
  166|       |   */
  167|  7.82k|  struct Curl_str srchost;
  168|  7.82k|  struct Curl_str dsthost;
  169|  7.82k|  struct Curl_str srcalpn;
  170|  7.82k|  struct Curl_str dstalpn;
  171|  7.82k|  struct Curl_str date;
  172|  7.82k|  curl_off_t srcport;
  173|  7.82k|  curl_off_t dstport;
  174|  7.82k|  curl_off_t persist;
  175|  7.82k|  curl_off_t prio;
  176|       |
  177|  7.82k|  if(curlx_str_word(&line, &srcalpn, MAX_ALTSVC_ALPNLEN) ||
  ------------------
  |  |   44|  7.82k|#define MAX_ALTSVC_ALPNLEN 10
  ------------------
  |  Branch (177:6): [True: 0, False: 7.82k]
  ------------------
  178|  7.82k|     curlx_str_singlespace(&line) ||
  ------------------
  |  Branch (178:6): [True: 7.82k, False: 0]
  ------------------
  179|      0|     curlx_str_word(&line, &srchost, MAX_ALTSVC_HOSTLEN) ||
  ------------------
  |  |   43|      0|#define MAX_ALTSVC_HOSTLEN 2048
  ------------------
  |  Branch (179:6): [True: 0, False: 0]
  ------------------
  180|      0|     curlx_str_singlespace(&line) ||
  ------------------
  |  Branch (180:6): [True: 0, False: 0]
  ------------------
  181|      0|     curlx_str_number(&line, &srcport, 65535) ||
  ------------------
  |  Branch (181:6): [True: 0, False: 0]
  ------------------
  182|      0|     curlx_str_singlespace(&line) ||
  ------------------
  |  Branch (182:6): [True: 0, False: 0]
  ------------------
  183|      0|     curlx_str_word(&line, &dstalpn, MAX_ALTSVC_ALPNLEN) ||
  ------------------
  |  |   44|      0|#define MAX_ALTSVC_ALPNLEN 10
  ------------------
  |  Branch (183:6): [True: 0, False: 0]
  ------------------
  184|      0|     curlx_str_singlespace(&line) ||
  ------------------
  |  Branch (184:6): [True: 0, False: 0]
  ------------------
  185|      0|     curlx_str_word(&line, &dsthost, MAX_ALTSVC_HOSTLEN) ||
  ------------------
  |  |   43|      0|#define MAX_ALTSVC_HOSTLEN 2048
  ------------------
  |  Branch (185:6): [True: 0, False: 0]
  ------------------
  186|      0|     curlx_str_singlespace(&line) ||
  ------------------
  |  Branch (186:6): [True: 0, False: 0]
  ------------------
  187|      0|     curlx_str_number(&line, &dstport, 65535) ||
  ------------------
  |  Branch (187:6): [True: 0, False: 0]
  ------------------
  188|      0|     curlx_str_singlespace(&line) ||
  ------------------
  |  Branch (188:6): [True: 0, False: 0]
  ------------------
  189|      0|     curlx_str_quotedword(&line, &date, MAX_ALTSVC_DATELEN) ||
  ------------------
  |  |   42|      0|#define MAX_ALTSVC_DATELEN 17
  ------------------
  |  Branch (189:6): [True: 0, False: 0]
  ------------------
  190|      0|     curlx_str_singlespace(&line) ||
  ------------------
  |  Branch (190:6): [True: 0, False: 0]
  ------------------
  191|      0|     curlx_str_number(&line, &persist, 1) ||
  ------------------
  |  Branch (191:6): [True: 0, False: 0]
  ------------------
  192|      0|     curlx_str_singlespace(&line) ||
  ------------------
  |  Branch (192:6): [True: 0, False: 0]
  ------------------
  193|      0|     curlx_str_number(&line, &prio, 0) ||
  ------------------
  |  Branch (193:6): [True: 0, False: 0]
  ------------------
  194|      0|     curlx_str_newline(&line))
  ------------------
  |  Branch (194:6): [True: 0, False: 0]
  ------------------
  195|  7.82k|    ;
  196|      0|  else {
  197|      0|    char dbuf[MAX_ALTSVC_DATELEN + 1];
  198|      0|    time_t expires = 0;
  199|      0|    time_t now = time(NULL);
  ------------------
  |  |   63|      0|#define time(x) altsvc_debugtime(x)
  ------------------
  200|       |
  201|       |    /* The date parser works on a null-terminated string. The maximum length
  202|       |       is upheld by curlx_str_quotedword(). */
  203|      0|    memcpy(dbuf, curlx_str(&date), curlx_strlen(&date));
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
                  memcpy(dbuf, curlx_str(&date), curlx_strlen(&date));
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  204|      0|    dbuf[curlx_strlen(&date)] = 0;
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  205|      0|    Curl_getdate_capped(dbuf, &expires);
  206|       |
  207|      0|    if(now < expires) {
  ------------------
  |  Branch (207:8): [True: 0, False: 0]
  ------------------
  208|      0|      struct altsvc *as = altsvc_create(&srchost, &dsthost, &srcalpn, &dstalpn,
  209|      0|                                        (size_t)srcport, (size_t)dstport);
  210|      0|      if(as) {
  ------------------
  |  Branch (210:10): [True: 0, False: 0]
  ------------------
  211|      0|        as->expires = expires;
  212|      0|        as->persist = persist ? 1 : 0;
  ------------------
  |  Branch (212:23): [True: 0, False: 0]
  ------------------
  213|      0|        altsvc_append(asi, as);
  214|      0|      }
  215|      0|      else
  216|      0|        return CURLE_OUT_OF_MEMORY;
  217|      0|    }
  218|      0|  }
  219|       |
  220|  7.82k|  return CURLE_OK;
  221|  7.82k|}

Curl_async_global_init:
   81|      2|{
   82|       |#if defined(USE_ARES) && defined(CARES_HAVE_ARES_LIBRARY_INIT)
   83|       |  if(ares_library_init(ARES_LIB_INIT_ALL)) {
   84|       |    return CURLE_FAILED_INIT;
   85|       |  }
   86|       |#endif
   87|      2|  return CURLE_OK;
   88|      2|}
Curl_async_thrdd_multi_init:
  439|  7.82k|{
  440|  7.82k|  CURLcode result;
  441|  7.82k|  DEBUGASSERT(!multi->resolv_thrdq);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (441:3): [True: 0, False: 7.82k]
  |  Branch (441:3): [True: 7.82k, False: 0]
  ------------------
  442|  7.82k|  result = Curl_thrdq_create(&multi->resolv_thrdq, "DNS", 0,
  443|  7.82k|                             min_threads, max_threads, idle_time_ms,
  444|  7.82k|                             async_thrdd_item_free,
  445|  7.82k|                             async_thrdd_item_process,
  446|  7.82k|                             async_thrdd_event,
  447|  7.82k|                             multi);
  448|  7.82k|#ifdef DEBUGBUILD
  449|  7.82k|  if(!result) {
  ------------------
  |  Branch (449:6): [True: 7.82k, False: 0]
  ------------------
  450|  7.82k|    const char *p = getenv("CURL_DBG_RESOLV_MAX_THREADS");
  451|  7.82k|    if(p) {
  ------------------
  |  Branch (451:8): [True: 0, False: 7.82k]
  ------------------
  452|      0|      curl_off_t l;
  453|      0|      if(!curlx_str_number(&p, &l, UINT32_MAX)) {
  ------------------
  |  Branch (453:10): [True: 0, False: 0]
  ------------------
  454|      0|        result = Curl_async_thrdd_multi_set_props(
  455|      0|          multi, min_threads, (uint32_t)l, idle_time_ms);
  456|      0|      }
  457|      0|    }
  458|  7.82k|  }
  459|  7.82k|#endif
  460|  7.82k|  return result;
  461|  7.82k|}
Curl_async_thrdd_multi_destroy:
  465|  7.82k|{
  466|  7.82k|  if(multi->resolv_thrdq) {
  ------------------
  |  Branch (466:6): [True: 7.82k, False: 0]
  ------------------
  467|  7.82k|#ifdef CURLVERBOSE
  468|  7.82k|    CURL_TRC_DNS(multi->admin, "destroy thread queue+pool, join=%d", join);
  ------------------
  |  |  168|  7.82k|  do {                                 \
  |  |  169|  7.82k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  7.82k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.82k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.82k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  7.82k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  469|  7.82k|    Curl_thrdq_trace(multi->resolv_thrdq, multi->admin);
  470|  7.82k|#endif
  471|  7.82k|    Curl_thrdq_destroy(multi->resolv_thrdq, join);
  472|       |    multi->resolv_thrdq = NULL;
  473|  7.82k|  }
  474|  7.82k|}
Curl_async_thrdd_multi_process:
  516|   122k|{
  517|   122k|  struct Curl_easy *data;
  518|   122k|  void *qitem;
  519|       |
  520|   122k|  while(!Curl_thrdq_recv(multi->resolv_thrdq, &qitem)) {
  ------------------
  |  Branch (520:9): [True: 0, False: 122k]
  ------------------
  521|       |    /* dispatch resolve result */
  522|      0|    struct async_thrdd_item *item = qitem;
  523|      0|    struct Curl_resolv_async *async = NULL;
  524|       |
  525|      0|    data = Curl_multi_get_easy(multi, item->mid);
  526|      0|    if(data)
  ------------------
  |  Branch (526:8): [True: 0, False: 0]
  ------------------
  527|      0|      async = Curl_async_get(data, item->resolv_id);
  528|      0|    if(async) {
  ------------------
  |  Branch (528:8): [True: 0, False: 0]
  ------------------
  529|      0|      struct async_thrdd_item **pdest = &async->thrdd.res_A;
  530|       |
  531|      0|      async->dns_responses |= item->dns_queries;
  532|      0|      --async->queries_ongoing;
  533|      0|      async->done = !async->queries_ongoing;
  534|       |
  535|      0|#ifdef CURLRES_IPV6
  536|      0|      if(item->dns_queries & CURL_DNSQ_AAAA)
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (536:10): [True: 0, False: 0]
  ------------------
  537|      0|        pdest = &async->thrdd.res_AAAA;
  538|      0|#endif
  539|      0|      if(!*pdest) {
  ------------------
  |  Branch (539:10): [True: 0, False: 0]
  ------------------
  540|      0|        VERBOSE(async_thrdd_report_item(data, item));
  ------------------
  |  | 1618|      0|#define VERBOSE(x) x
  ------------------
  541|      0|        *pdest = item;
  542|      0|        item = NULL;
  543|      0|      }
  544|      0|      else
  545|      0|        DEBUGASSERT(0); /* should not receive duplicates here */
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (545:9): [Folded, False: 0]
  |  Branch (545:9): [Folded, False: 0]
  ------------------
  546|      0|      Curl_multi_mark_dirty(data);
  547|      0|    }
  548|      0|    async_thrdd_item_free(item);
  549|      0|  }
  550|   122k|#ifdef CURLVERBOSE
  551|   122k|  Curl_thrdq_trace(multi->resolv_thrdq, multi->admin);
  552|   122k|#endif
  553|   122k|}

Curl_bufcp_init:
  148|  2.94k|{
  149|  2.94k|  DEBUGASSERT(chunk_size > 0);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (149:3): [True: 0, False: 2.94k]
  |  Branch (149:3): [True: 2.94k, False: 0]
  ------------------
  150|  2.94k|  DEBUGASSERT(spare_max > 0);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (150:3): [True: 0, False: 2.94k]
  |  Branch (150:3): [True: 2.94k, False: 0]
  ------------------
  151|  2.94k|  memset(pool, 0, sizeof(*pool));
  152|  2.94k|  pool->chunk_size = chunk_size;
  153|  2.94k|  pool->spare_max = spare_max;
  154|  2.94k|}
Curl_bufcp_free:
  201|  2.94k|{
  202|  2.94k|  chunk_list_free(&pool->spare);
  203|  2.94k|  pool->spare_count = 0;
  204|  2.94k|}
Curl_bufq_init2:
  220|  11.4k|{
  221|       |  bufq_init(q, NULL, chunk_size, max_chunks, opts);
  222|  11.4k|}
Curl_bufq_initp:
  231|  8.83k|{
  232|  8.83k|  bufq_init(q, pool, pool->chunk_size, max_chunks, opts);
  233|  8.83k|}
Curl_bufq_free:
  236|  20.3k|{
  237|  20.3k|  chunk_list_free(&q->head);
  238|  20.3k|  chunk_list_free(&q->spare);
  239|       |  q->tail = NULL;
  240|  20.3k|  q->chunk_count = 0;
  241|  20.3k|}
Curl_bufq_reset:
  244|  10.2k|{
  245|  10.2k|  struct buf_chunk *chunk;
  246|  10.3k|  while(q->head) {
  ------------------
  |  Branch (246:9): [True: 49, False: 10.2k]
  ------------------
  247|     49|    chunk = q->head;
  248|     49|    q->head = chunk->next;
  249|     49|    chunk->next = q->spare;
  250|     49|    q->spare = chunk;
  251|     49|  }
  252|       |  q->tail = NULL;
  253|  10.2k|}
Curl_bufq_len:
  256|  12.0k|{
  257|  12.0k|  const struct buf_chunk *chunk = q->head;
  258|  12.0k|  size_t len = 0;
  259|  24.0k|  while(chunk) {
  ------------------
  |  Branch (259:9): [True: 11.9k, False: 12.0k]
  ------------------
  260|  11.9k|    len += chunk_len(chunk);
  261|  11.9k|    chunk = chunk->next;
  262|  11.9k|  }
  263|  12.0k|  return len;
  264|  12.0k|}
Curl_bufq_is_empty:
  267|   414k|{
  268|   414k|  return !q->head || chunk_is_empty(q->head);
  ------------------
  |  Branch (268:10): [True: 299k, False: 115k]
  |  Branch (268:22): [True: 53.7k, False: 61.7k]
  ------------------
  269|   414k|}
Curl_bufq_is_full:
  272|  19.3k|{
  273|  19.3k|  if(!q->tail || q->spare)
  ------------------
  |  Branch (273:6): [True: 5.65k, False: 13.6k]
  |  Branch (273:18): [True: 0, False: 13.6k]
  ------------------
  274|  5.65k|    return FALSE;
  ------------------
  |  | 1058|  5.65k|#define FALSE false
  ------------------
  275|  13.6k|  if(q->chunk_count < q->max_chunks)
  ------------------
  |  Branch (275:6): [True: 1.81k, False: 11.8k]
  ------------------
  276|  1.81k|    return FALSE;
  ------------------
  |  | 1058|  1.81k|#define FALSE false
  ------------------
  277|  11.8k|  if(q->chunk_count > q->max_chunks)
  ------------------
  |  Branch (277:6): [True: 0, False: 11.8k]
  ------------------
  278|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  279|       |  /* we have no spares and cannot make more, is the tail full? */
  280|  11.8k|  return chunk_is_full(q->tail);
  281|  11.8k|}
Curl_bufq_write:
  370|  1.35M|{
  371|  1.35M|  struct buf_chunk *tail;
  372|  1.35M|  size_t n;
  373|       |
  374|  1.35M|  DEBUGASSERT(q->max_chunks > 0);
  ------------------
  |  | 1081|  1.35M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (374:3): [True: 0, False: 1.35M]
  |  Branch (374:3): [True: 1.35M, False: 0]
  ------------------
  375|  1.35M|  *pnwritten = 0;
  376|  2.70M|  while(len) {
  ------------------
  |  Branch (376:9): [True: 1.35M, False: 1.35M]
  ------------------
  377|  1.35M|    tail = get_non_full_tail(q);
  378|  1.35M|    if(!tail) {
  ------------------
  |  Branch (378:8): [True: 796, False: 1.35M]
  ------------------
  379|    796|      if((q->chunk_count < q->max_chunks) || (q->opts & BUFQ_OPT_SOFT_LIMIT))
  ------------------
  |  |  111|    796|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
  |  Branch (379:10): [True: 0, False: 796]
  |  Branch (379:46): [True: 0, False: 796]
  ------------------
  380|       |        /* should have gotten a tail, but did not */
  381|      0|        return CURLE_OUT_OF_MEMORY;
  382|    796|      break;
  383|    796|    }
  384|  1.35M|    n = chunk_append(tail, buf, len);
  385|  1.35M|    if(!n)
  ------------------
  |  Branch (385:8): [True: 0, False: 1.35M]
  ------------------
  386|      0|      break;
  387|  1.35M|    *pnwritten += n;
  388|  1.35M|    buf += n;
  389|  1.35M|    len -= n;
  390|  1.35M|  }
  391|  1.35M|  return (!*pnwritten && len) ? CURLE_AGAIN : CURLE_OK;
  ------------------
  |  Branch (391:11): [True: 3.08k, False: 1.35M]
  |  Branch (391:26): [True: 327, False: 2.76k]
  ------------------
  392|  1.35M|}
Curl_bufq_cwrite:
  397|  1.46k|{
  398|  1.46k|  return Curl_bufq_write(q, (const uint8_t *)buf, len, pnwritten);
  399|  1.46k|}
Curl_bufq_read:
  403|  1.49k|{
  404|  1.49k|  *pnread = 0;
  405|  2.31k|  while(len && q->head) {
  ------------------
  |  Branch (405:9): [True: 1.84k, False: 469]
  |  Branch (405:16): [True: 823, False: 1.02k]
  ------------------
  406|    823|    size_t n = chunk_read(q->head, buf, len);
  407|    823|    if(n) {
  ------------------
  |  Branch (407:8): [True: 823, False: 0]
  ------------------
  408|    823|      *pnread += n;
  409|    823|      buf += n;
  410|    823|      len -= n;
  411|    823|    }
  412|    823|    prune_head(q);
  413|    823|  }
  414|  1.49k|  return (!*pnread) ? CURLE_AGAIN : CURLE_OK;
  ------------------
  |  Branch (414:10): [True: 667, False: 823]
  ------------------
  415|  1.49k|}
Curl_bufq_cread:
  419|    242|{
  420|    242|  return Curl_bufq_read(q, (uint8_t *)buf, len, pnread);
  421|    242|}
Curl_bufq_peek:
  425|  63.0k|{
  426|  63.0k|  if(q->head && chunk_is_empty(q->head)) {
  ------------------
  |  Branch (426:6): [True: 49.6k, False: 13.3k]
  |  Branch (426:17): [True: 0, False: 49.6k]
  ------------------
  427|      0|    prune_head(q);
  428|      0|  }
  429|  63.0k|  if(q->head && !chunk_is_empty(q->head)) {
  ------------------
  |  Branch (429:6): [True: 49.6k, False: 13.3k]
  |  Branch (429:17): [True: 49.6k, False: 0]
  ------------------
  430|  49.6k|    chunk_peek(q->head, pbuf, plen);
  431|  49.6k|    return TRUE;
  ------------------
  |  | 1055|  49.6k|#define TRUE true
  ------------------
  432|  49.6k|  }
  433|  13.3k|  *pbuf = NULL;
  434|  13.3k|  *plen = 0;
  435|       |  return FALSE;
  ------------------
  |  | 1058|  13.3k|#define FALSE false
  ------------------
  436|  63.0k|}
Curl_bufq_skip:
  462|  45.1k|{
  463|  45.1k|  size_t n;
  464|       |
  465|  81.9k|  while(amount && q->head) {
  ------------------
  |  Branch (465:9): [True: 36.7k, False: 45.1k]
  |  Branch (465:19): [True: 36.7k, False: 0]
  ------------------
  466|  36.7k|    n = chunk_skip(q->head, amount);
  467|  36.7k|    amount -= n;
  468|  36.7k|    prune_head(q);
  469|  36.7k|  }
  470|  45.1k|}
Curl_bufq_pass:
  474|  11.8k|{
  475|  11.8k|  const uint8_t *buf;
  476|  11.8k|  size_t blen;
  477|  11.8k|  CURLcode result = CURLE_OK;
  478|       |
  479|  11.8k|  *pwritten = 0;
  480|  20.3k|  while(Curl_bufq_peek(q, &buf, &blen)) {
  ------------------
  |  Branch (480:9): [True: 12.1k, False: 8.16k]
  ------------------
  481|  12.1k|    size_t chunk_written;
  482|       |
  483|  12.1k|    result = writer(writer_ctx, buf, blen, &chunk_written);
  484|  12.1k|    if(result) {
  ------------------
  |  Branch (484:8): [True: 3.67k, False: 8.50k]
  ------------------
  485|  3.67k|      if((result == CURLE_AGAIN) && *pwritten) {
  ------------------
  |  Branch (485:10): [True: 3.67k, False: 0]
  |  Branch (485:37): [True: 337, False: 3.34k]
  ------------------
  486|       |        /* blocked on subsequent write, report success */
  487|    337|        result = CURLE_OK;
  488|    337|      }
  489|  3.67k|      break;
  490|  3.67k|    }
  491|  8.50k|    if(!chunk_written) {
  ------------------
  |  Branch (491:8): [True: 0, False: 8.50k]
  ------------------
  492|      0|      if(!*pwritten) {
  ------------------
  |  Branch (492:10): [True: 0, False: 0]
  ------------------
  493|       |        /* treat as blocked */
  494|      0|        result = CURLE_AGAIN;
  495|      0|      }
  496|      0|      break;
  497|      0|    }
  498|  8.50k|    *pwritten += chunk_written;
  499|  8.50k|    Curl_bufq_skip(q, chunk_written);
  500|  8.50k|  }
  501|  11.8k|  return result;
  502|  11.8k|}
Curl_bufq_write_pass:
  508|  10.5k|{
  509|  10.5k|  CURLcode result = CURLE_OK;
  510|  10.5k|  size_t n;
  511|       |
  512|  10.5k|  *pwritten = 0;
  513|  19.7k|  while(len) {
  ------------------
  |  Branch (513:9): [True: 10.9k, False: 8.73k]
  ------------------
  514|  10.9k|    if(Curl_bufq_is_full(q)) {
  ------------------
  |  Branch (514:8): [True: 2.17k, False: 8.82k]
  ------------------
  515|       |      /* try to make room in case we are full */
  516|  2.17k|      result = Curl_bufq_pass(q, writer, writer_ctx, &n);
  517|  2.17k|      if(result) {
  ------------------
  |  Branch (517:10): [True: 1.47k, False: 705]
  ------------------
  518|  1.47k|        if(result != CURLE_AGAIN) {
  ------------------
  |  Branch (518:12): [True: 0, False: 1.47k]
  ------------------
  519|       |          /* real error, fail */
  520|      0|          return result;
  521|      0|        }
  522|       |        /* would block, bufq is full, give up */
  523|  1.47k|        break;
  524|  1.47k|      }
  525|  2.17k|    }
  526|       |
  527|       |    /* Add to bufq as much as there is room for */
  528|  9.52k|    result = Curl_bufq_write(q, buf, len, &n);
  529|  9.52k|    if(result) {
  ------------------
  |  Branch (529:8): [True: 327, False: 9.19k]
  ------------------
  530|    327|      if(result != CURLE_AGAIN)
  ------------------
  |  Branch (530:10): [True: 0, False: 327]
  ------------------
  531|       |        /* real error, fail */
  532|      0|        return result;
  533|       |      /* result == CURLE_AGAIN */
  534|    327|      if(*pwritten)
  ------------------
  |  Branch (534:10): [True: 153, False: 174]
  ------------------
  535|       |        /* we did write successfully before */
  536|    153|        result = CURLE_OK;
  537|    327|      return result;
  538|    327|    }
  539|  9.19k|    else if(n == 0)
  ------------------
  |  Branch (539:13): [True: 0, False: 9.19k]
  ------------------
  540|       |      /* edge case of writer returning 0 (and len is >0)
  541|       |       * break or we might enter an infinite loop here */
  542|      0|      break;
  543|       |
  544|       |    /* Track what we added to bufq */
  545|  9.19k|    buf += n;
  546|  9.19k|    len -= n;
  547|  9.19k|    *pwritten += n;
  548|  9.19k|  }
  549|       |
  550|  10.2k|  return (!*pwritten && len) ? CURLE_AGAIN : CURLE_OK;
  ------------------
  |  Branch (550:11): [True: 1.47k, False: 8.73k]
  |  Branch (550:25): [True: 1.47k, False: 0]
  ------------------
  551|  10.5k|}
Curl_bufq_sipn:
  556|  25.7k|{
  557|  25.7k|  struct buf_chunk *tail = NULL;
  558|       |
  559|  25.7k|  *pnread = 0;
  560|  25.7k|  tail = get_non_full_tail(q);
  561|  25.7k|  if(!tail) {
  ------------------
  |  Branch (561:6): [True: 0, False: 25.7k]
  ------------------
  562|      0|    if(q->chunk_count < q->max_chunks)
  ------------------
  |  Branch (562:8): [True: 0, False: 0]
  ------------------
  563|      0|      return CURLE_OUT_OF_MEMORY;
  564|       |    /* full, blocked */
  565|      0|    return CURLE_AGAIN;
  566|      0|  }
  567|       |
  568|  25.7k|  return chunk_slurpn(tail, max_len, reader, reader_ctx, pnread);
  569|  25.7k|}
Curl_bufq_slurp:
  617|  3.20k|{
  618|  3.20k|  return bufq_slurpn(q, 0, reader, reader_ctx, pnread);
  619|  3.20k|}
bufq.c:chunk_list_free:
  137|  43.5k|{
  138|  43.5k|  struct buf_chunk *chunk;
  139|  51.8k|  while(*anchor) {
  ------------------
  |  Branch (139:9): [True: 8.22k, False: 43.5k]
  ------------------
  140|  8.22k|    chunk = *anchor;
  141|  8.22k|    *anchor = chunk->next;
  142|  8.22k|    curlx_free(chunk);
  ------------------
  |  | 1483|  8.22k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  143|  8.22k|  }
  144|  43.5k|}
bufq.c:bufq_init:
  208|  20.3k|{
  209|  20.3k|  DEBUGASSERT(chunk_size > 0);
  ------------------
  |  | 1081|  20.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (209:3): [True: 0, False: 20.3k]
  |  Branch (209:3): [True: 20.3k, False: 0]
  ------------------
  210|  20.3k|  DEBUGASSERT(max_chunks > 0);
  ------------------
  |  | 1081|  20.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (210:3): [True: 0, False: 20.3k]
  |  Branch (210:3): [True: 20.3k, False: 0]
  ------------------
  211|  20.3k|  memset(q, 0, sizeof(*q));
  212|  20.3k|  q->chunk_size = chunk_size;
  213|  20.3k|  q->max_chunks = max_chunks;
  214|  20.3k|  q->pool = pool;
  215|  20.3k|  q->opts = opts;
  216|  20.3k|}
bufq.c:chunk_len:
   39|  11.9k|{
   40|  11.9k|  return chunk->w_offset - chunk->r_offset;
   41|  11.9k|}
bufq.c:chunk_is_empty:
   29|   252k|{
   30|   252k|  return chunk->r_offset >= chunk->w_offset;
   31|   252k|}
bufq.c:chunk_is_full:
   34|  1.36M|{
   35|  1.36M|  return chunk->w_offset >= chunk->dlen;
   36|  1.36M|}
bufq.c:get_non_full_tail:
  347|  1.37M|{
  348|  1.37M|  struct buf_chunk *chunk;
  349|       |
  350|  1.37M|  if(q->tail && !chunk_is_full(q->tail))
  ------------------
  |  Branch (350:6): [True: 1.35M, False: 25.7k]
  |  Branch (350:17): [True: 1.35M, False: 840]
  ------------------
  351|  1.35M|    return q->tail;
  352|  26.6k|  chunk = get_spare(q);
  353|  26.6k|  if(chunk) {
  ------------------
  |  Branch (353:6): [True: 25.8k, False: 796]
  ------------------
  354|       |    /* new tail, and possibly new head */
  355|  25.8k|    if(q->tail) {
  ------------------
  |  Branch (355:8): [True: 44, False: 25.7k]
  ------------------
  356|     44|      q->tail->next = chunk;
  357|     44|      q->tail = chunk;
  358|     44|    }
  359|  25.7k|    else {
  360|  25.7k|      DEBUGASSERT(!q->head);
  ------------------
  |  | 1081|  25.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (360:7): [True: 0, False: 25.7k]
  |  Branch (360:7): [True: 25.7k, False: 0]
  ------------------
  361|  25.7k|      q->head = q->tail = chunk;
  362|  25.7k|    }
  363|  25.8k|  }
  364|  26.6k|  return chunk;
  365|  26.6k|}
bufq.c:get_spare:
  284|  26.6k|{
  285|  26.6k|  struct buf_chunk *chunk = NULL;
  286|       |
  287|  26.6k|  if(q->spare) {
  ------------------
  |  Branch (287:6): [True: 5.02k, False: 21.5k]
  ------------------
  288|  5.02k|    chunk = q->spare;
  289|  5.02k|    q->spare = chunk->next;
  290|  5.02k|    chunk_reset(chunk);
  291|  5.02k|    return chunk;
  292|  5.02k|  }
  293|       |
  294|  21.5k|  if(q->chunk_count >= q->max_chunks && (!(q->opts & BUFQ_OPT_SOFT_LIMIT)))
  ------------------
  |  |  111|    796|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
  |  Branch (294:6): [True: 796, False: 20.8k]
  |  Branch (294:41): [True: 796, False: 0]
  ------------------
  295|    796|    return NULL;
  296|       |
  297|  20.8k|  if(q->pool) {
  ------------------
  |  Branch (297:6): [True: 18.4k, False: 2.32k]
  ------------------
  298|  18.4k|    if(bufcp_take(q->pool, &chunk))
  ------------------
  |  Branch (298:8): [True: 0, False: 18.4k]
  ------------------
  299|      0|      return NULL;
  300|  18.4k|    ++q->chunk_count;
  301|  18.4k|    return chunk;
  302|  18.4k|  }
  303|  2.32k|  else {
  304|       |    /* Check for integer overflow before allocation */
  305|  2.32k|    if(q->chunk_size > SIZE_MAX - sizeof(*chunk)) {
  ------------------
  |  Branch (305:8): [True: 0, False: 2.32k]
  ------------------
  306|      0|      return NULL;
  307|      0|    }
  308|       |
  309|  2.32k|    chunk = curlx_calloc(1, sizeof(*chunk) + q->chunk_size);
  ------------------
  |  | 1480|  2.32k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  310|  2.32k|    if(!chunk)
  ------------------
  |  Branch (310:8): [True: 0, False: 2.32k]
  ------------------
  311|      0|      return NULL;
  312|  2.32k|    chunk->dlen = q->chunk_size;
  313|  2.32k|    ++q->chunk_count;
  314|  2.32k|    return chunk;
  315|  2.32k|  }
  316|  20.8k|}
bufq.c:chunk_reset:
   44|  33.2k|{
   45|       |  chunk->next = NULL;
   46|  33.2k|  chunk->r_offset = chunk->w_offset = 0;
   47|  33.2k|}
bufq.c:bufcp_take:
  158|  18.4k|{
  159|  18.4k|  struct buf_chunk *chunk = NULL;
  160|       |
  161|  18.4k|  if(pool->spare) {
  ------------------
  |  Branch (161:6): [True: 12.5k, False: 5.89k]
  ------------------
  162|  12.5k|    chunk = pool->spare;
  163|  12.5k|    pool->spare = chunk->next;
  164|  12.5k|    --pool->spare_count;
  165|  12.5k|    chunk_reset(chunk);
  166|  12.5k|    *pchunk = chunk;
  167|  12.5k|    return CURLE_OK;
  168|  12.5k|  }
  169|       |
  170|       |  /* Check for integer overflow before allocation */
  171|  5.89k|  if(pool->chunk_size > SIZE_MAX - sizeof(*chunk)) {
  ------------------
  |  Branch (171:6): [True: 0, False: 5.89k]
  ------------------
  172|      0|    *pchunk = NULL;
  173|      0|    return CURLE_OUT_OF_MEMORY;
  174|      0|  }
  175|       |
  176|  5.89k|  chunk = curlx_calloc(1, sizeof(*chunk) + pool->chunk_size);
  ------------------
  |  | 1480|  5.89k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  177|  5.89k|  if(!chunk) {
  ------------------
  |  Branch (177:6): [True: 0, False: 5.89k]
  ------------------
  178|      0|    *pchunk = NULL;
  179|      0|    return CURLE_OUT_OF_MEMORY;
  180|      0|  }
  181|  5.89k|  chunk->dlen = pool->chunk_size;
  182|  5.89k|  *pchunk = chunk;
  183|  5.89k|  return CURLE_OK;
  184|  5.89k|}
bufq.c:chunk_append:
   51|  1.35M|{
   52|  1.35M|  uint8_t *p = &chunk->x.data[chunk->w_offset];
   53|  1.35M|  size_t n = chunk->dlen - chunk->w_offset;
   54|  1.35M|  DEBUGASSERT(chunk->dlen >= chunk->w_offset);
  ------------------
  |  | 1081|  1.35M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (54:3): [True: 0, False: 1.35M]
  |  Branch (54:3): [True: 1.35M, False: 0]
  ------------------
   55|  1.35M|  if(n) {
  ------------------
  |  Branch (55:6): [True: 1.35M, False: 0]
  ------------------
   56|  1.35M|    n = CURLMIN(n, len);
  ------------------
  |  | 1287|  1.35M|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 513, False: 1.35M]
  |  |  ------------------
  ------------------
   57|  1.35M|    memcpy(p, buf, n);
   58|  1.35M|    chunk->w_offset += n;
   59|  1.35M|  }
   60|  1.35M|  return n;
   61|  1.35M|}
bufq.c:chunk_read:
   65|    823|{
   66|    823|  uint8_t *p = &chunk->x.data[chunk->r_offset];
   67|    823|  size_t n = chunk->w_offset - chunk->r_offset;
   68|    823|  DEBUGASSERT(chunk->w_offset >= chunk->r_offset);
  ------------------
  |  | 1081|    823|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (68:3): [True: 0, False: 823]
  |  Branch (68:3): [True: 823, False: 0]
  ------------------
   69|    823|  if(!n) {
  ------------------
  |  Branch (69:6): [True: 0, False: 823]
  ------------------
   70|      0|    return 0;
   71|      0|  }
   72|    823|  else if(n <= len) {
  ------------------
  |  Branch (72:11): [True: 823, False: 0]
  ------------------
   73|    823|    memcpy(buf, p, n);
   74|    823|    chunk->r_offset = chunk->w_offset = 0;
   75|    823|    return n;
   76|    823|  }
   77|      0|  else {
   78|      0|    memcpy(buf, p, len);
   79|      0|    chunk->r_offset += len;
   80|      0|    return len;
   81|      0|  }
   82|    823|}
bufq.c:prune_head:
  319|  37.5k|{
  320|  37.5k|  struct buf_chunk *chunk;
  321|       |
  322|  59.4k|  while(q->head && chunk_is_empty(q->head)) {
  ------------------
  |  Branch (322:9): [True: 37.5k, False: 21.9k]
  |  Branch (322:20): [True: 21.9k, False: 15.6k]
  ------------------
  323|  21.9k|    chunk = q->head;
  324|  21.9k|    q->head = chunk->next;
  325|  21.9k|    if(q->tail == chunk)
  ------------------
  |  Branch (325:8): [True: 21.9k, False: 44]
  ------------------
  326|  21.9k|      q->tail = q->head;
  327|  21.9k|    if(q->pool) {
  ------------------
  |  Branch (327:8): [True: 15.6k, False: 6.30k]
  ------------------
  328|  15.6k|      bufcp_put(q->pool, chunk);
  329|  15.6k|      --q->chunk_count;
  330|  15.6k|    }
  331|  6.30k|    else if((q->chunk_count > q->max_chunks) ||
  ------------------
  |  Branch (331:13): [True: 0, False: 6.30k]
  ------------------
  332|  6.30k|            (q->opts & BUFQ_OPT_NO_SPARES)) {
  ------------------
  |  |  115|  6.30k|#define BUFQ_OPT_NO_SPARES   (1 << 1)
  ------------------
  |  Branch (332:13): [True: 0, False: 6.30k]
  ------------------
  333|       |      /* SOFT_LIMIT allowed us more than max. free spares until
  334|       |       * we are at max again. Or free them if we are configured
  335|       |       * to not use spares. */
  336|      0|      curlx_free(chunk);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  337|      0|      --q->chunk_count;
  338|      0|    }
  339|  6.30k|    else {
  340|  6.30k|      chunk->next = q->spare;
  341|  6.30k|      q->spare = chunk;
  342|  6.30k|    }
  343|  21.9k|  }
  344|  37.5k|}
bufq.c:bufcp_put:
  188|  15.6k|{
  189|  15.6k|  if(pool->spare_count >= pool->spare_max) {
  ------------------
  |  Branch (189:6): [True: 0, False: 15.6k]
  ------------------
  190|      0|    curlx_free(chunk);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  191|      0|  }
  192|  15.6k|  else {
  193|  15.6k|    chunk_reset(chunk);
  194|  15.6k|    chunk->next = pool->spare;
  195|  15.6k|    pool->spare = chunk;
  196|  15.6k|    ++pool->spare_count;
  197|  15.6k|  }
  198|  15.6k|}
bufq.c:chunk_peek:
  108|  49.6k|{
  109|  49.6k|  DEBUGASSERT(chunk->w_offset >= chunk->r_offset);
  ------------------
  |  | 1081|  49.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (109:3): [True: 0, False: 49.6k]
  |  Branch (109:3): [True: 49.6k, False: 0]
  ------------------
  110|  49.6k|  *pbuf = &chunk->x.data[chunk->r_offset];
  111|  49.6k|  *plen = chunk->w_offset - chunk->r_offset;
  112|  49.6k|}
bufq.c:chunk_skip:
  124|  36.7k|{
  125|  36.7k|  size_t n = chunk->w_offset - chunk->r_offset;
  126|  36.7k|  DEBUGASSERT(chunk->w_offset >= chunk->r_offset);
  ------------------
  |  | 1081|  36.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (126:3): [True: 0, False: 36.7k]
  |  Branch (126:3): [True: 36.7k, False: 0]
  ------------------
  127|  36.7k|  if(n) {
  ------------------
  |  Branch (127:6): [True: 36.7k, False: 0]
  ------------------
  128|  36.7k|    n = CURLMIN(n, amount);
  ------------------
  |  | 1287|  36.7k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 0, False: 36.7k]
  |  |  ------------------
  ------------------
  129|  36.7k|    chunk->r_offset += n;
  130|  36.7k|    if(chunk->r_offset == chunk->w_offset)
  ------------------
  |  Branch (130:8): [True: 21.1k, False: 15.5k]
  ------------------
  131|  21.1k|      chunk->r_offset = chunk->w_offset = 0;
  132|  36.7k|  }
  133|  36.7k|  return n;
  134|  36.7k|}
bufq.c:chunk_slurpn:
   87|  25.7k|{
   88|  25.7k|  uint8_t *p = &chunk->x.data[chunk->w_offset];
   89|  25.7k|  size_t n = chunk->dlen - chunk->w_offset; /* free amount */
   90|  25.7k|  CURLcode result;
   91|       |
   92|  25.7k|  *pnread = 0;
   93|  25.7k|  DEBUGASSERT(chunk->dlen >= chunk->w_offset);
  ------------------
  |  | 1081|  25.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (93:3): [True: 0, False: 25.7k]
  |  Branch (93:3): [True: 25.7k, False: 0]
  ------------------
   94|  25.7k|  if(!n)
  ------------------
  |  Branch (94:6): [True: 0, False: 25.7k]
  ------------------
   95|      0|    return CURLE_AGAIN;
   96|  25.7k|  if(max_len && n > max_len)
  ------------------
  |  Branch (96:6): [True: 0, False: 25.7k]
  |  Branch (96:17): [True: 0, False: 0]
  ------------------
   97|      0|    n = max_len;
   98|  25.7k|  result = reader(reader_ctx, p, n, pnread);
   99|  25.7k|  if(!result) {
  ------------------
  |  Branch (99:6): [True: 16.9k, False: 8.79k]
  ------------------
  100|  16.9k|    DEBUGASSERT(*pnread <= n);
  ------------------
  |  | 1081|  16.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (100:5): [True: 0, False: 16.9k]
  |  Branch (100:5): [True: 16.9k, False: 0]
  ------------------
  101|  16.9k|    chunk->w_offset += *pnread;
  102|  16.9k|  }
  103|  25.7k|  return result;
  104|  25.7k|}
bufq.c:bufq_slurpn:
  582|  3.20k|{
  583|  3.20k|  CURLcode result;
  584|       |
  585|  3.20k|  *pnread = 0;
  586|  3.20k|  while(1) {
  ------------------
  |  Branch (586:9): [True: 3.20k, Folded]
  ------------------
  587|  3.20k|    size_t n;
  588|  3.20k|    result = Curl_bufq_sipn(q, max_len, reader, reader_ctx, &n);
  589|  3.20k|    if(result) {
  ------------------
  |  Branch (589:8): [True: 1.61k, False: 1.59k]
  ------------------
  590|  1.61k|      if(!*pnread || result != CURLE_AGAIN) {
  ------------------
  |  Branch (590:10): [True: 1.61k, False: 0]
  |  Branch (590:22): [True: 0, False: 0]
  ------------------
  591|       |        /* blocked on first read or real error, fail */
  592|  1.61k|        return result;
  593|  1.61k|      }
  594|      0|      result = CURLE_OK;
  595|      0|      break;
  596|  1.61k|    }
  597|  1.59k|    else if(n == 0) {
  ------------------
  |  Branch (597:13): [True: 0, False: 1.59k]
  ------------------
  598|       |      /* eof, result remains CURLE_OK */
  599|      0|      break;
  600|      0|    }
  601|  1.59k|    *pnread += n;
  602|  1.59k|    if(max_len) {
  ------------------
  |  Branch (602:8): [True: 0, False: 1.59k]
  ------------------
  603|      0|      DEBUGASSERT(n <= max_len);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (603:7): [True: 0, False: 0]
  |  Branch (603:7): [True: 0, False: 0]
  ------------------
  604|      0|      max_len -= n;
  605|      0|      if(!max_len)
  ------------------
  |  Branch (605:10): [True: 0, False: 0]
  ------------------
  606|      0|        break;
  607|      0|    }
  608|       |    /* give up slurping when we get less bytes than we asked for */
  609|  1.59k|    if(q->tail && !chunk_is_full(q->tail))
  ------------------
  |  Branch (609:8): [True: 1.59k, False: 0]
  |  Branch (609:19): [True: 1.59k, False: 0]
  ------------------
  610|  1.59k|      break;
  611|  1.59k|  }
  612|  1.59k|  return result;
  613|  3.20k|}

Curl_bufref_init:
   38|  31.2k|{
   39|  31.2k|  DEBUGASSERT(br);
  ------------------
  |  | 1081|  31.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (39:3): [True: 0, False: 31.2k]
  |  Branch (39:3): [True: 31.2k, False: 0]
  ------------------
   40|  31.2k|  br->dtor = NULL;
   41|  31.2k|  br->ptr = NULL;
   42|  31.2k|  br->len = 0;
   43|       |
   44|  31.2k|#ifdef DEBUGBUILD
   45|  31.2k|  br->signature = SIGNATURE;
  ------------------
  |  |   31|  31.2k|#define SIGNATURE 0x5c48e9b2    /* Random pattern. */
  ------------------
   46|  31.2k|#endif
   47|  31.2k|}
Curl_bufref_free:
   55|  86.0k|{
   56|  86.0k|  DEBUGASSERT(br);
  ------------------
  |  | 1081|  86.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (56:3): [True: 0, False: 86.0k]
  |  Branch (56:3): [True: 86.0k, False: 0]
  ------------------
   57|  86.0k|  DEBUGASSERT(br->signature == SIGNATURE);
  ------------------
  |  | 1081|  86.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (57:3): [True: 0, False: 86.0k]
  |  Branch (57:3): [True: 86.0k, False: 0]
  ------------------
   58|  86.0k|  DEBUGASSERT(br->ptr || !br->len);
  ------------------
  |  | 1081|  86.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (58:3): [True: 86.0k, False: 0]
  |  Branch (58:3): [True: 0, False: 0]
  |  Branch (58:3): [True: 30.9k, False: 55.1k]
  |  Branch (58:3): [True: 55.1k, False: 0]
  ------------------
   59|       |
   60|  86.0k|  if(br->ptr && br->dtor)
  ------------------
  |  Branch (60:6): [True: 30.9k, False: 55.1k]
  |  Branch (60:17): [True: 14.6k, False: 16.2k]
  ------------------
   61|  14.6k|    br->dtor(CURL_UNCONST(br->ptr));
  ------------------
  |  |  866|  14.6k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
   62|       |
   63|  86.0k|  br->dtor = NULL;
   64|       |  br->ptr = NULL;
   65|  86.0k|  br->len = 0;
   66|  86.0k|}
Curl_bufref_set:
   74|  30.9k|{
   75|  30.9k|  DEBUGASSERT(ptr || !len);
  ------------------
  |  | 1081|  30.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (75:3): [True: 30.9k, False: 0]
  |  Branch (75:3): [True: 0, False: 0]
  |  Branch (75:3): [True: 30.9k, False: 0]
  |  Branch (75:3): [True: 0, False: 0]
  ------------------
   76|  30.9k|  DEBUGASSERT(len <= CURL_MAX_INPUT_LENGTH);
  ------------------
  |  | 1081|  30.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (76:3): [True: 0, False: 30.9k]
  |  Branch (76:3): [True: 30.9k, False: 0]
  ------------------
   77|       |
   78|  30.9k|  Curl_bufref_free(br);
   79|  30.9k|  br->ptr = (const unsigned char *)ptr;
   80|  30.9k|  br->len = len;
   81|  30.9k|  br->dtor = dtor;
   82|  30.9k|}
Curl_bufref_ptr:
  100|  37.9k|{
  101|  37.9k|  DEBUGASSERT(br);
  ------------------
  |  | 1081|  37.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (101:3): [True: 0, False: 37.9k]
  |  Branch (101:3): [True: 37.9k, False: 0]
  ------------------
  102|  37.9k|  DEBUGASSERT(br->signature == SIGNATURE);
  ------------------
  |  | 1081|  37.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (102:3): [True: 0, False: 37.9k]
  |  Branch (102:3): [True: 37.9k, False: 0]
  ------------------
  103|  37.9k|  DEBUGASSERT(br->ptr || !br->len);
  ------------------
  |  | 1081|  37.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (103:3): [True: 37.9k, False: 0]
  |  Branch (103:3): [True: 0, False: 0]
  |  Branch (103:3): [True: 29.9k, False: 7.99k]
  |  Branch (103:3): [True: 7.99k, False: 0]
  ------------------
  104|       |
  105|  37.9k|  return (const char *)br->ptr;
  106|  37.9k|}

Curl_cf_dns_add:
  414|  7.53k|{
  415|  7.53k|  struct Curl_cfilter *cf = NULL;
  416|  7.53k|  bool for_proxy = FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  417|  7.53k|  CURLcode result;
  418|       |
  419|  7.53k|  if(!peer)
  ------------------
  |  Branch (419:6): [True: 0, False: 7.53k]
  ------------------
  420|      0|    return CURLE_FAILED_INIT;
  421|  7.53k|#ifndef CURL_DISABLE_PROXY
  422|  7.53k|  for_proxy = (peer == conn->socks_proxy.peer) ||
  ------------------
  |  Branch (422:15): [True: 0, False: 7.53k]
  ------------------
  423|  7.53k|              (peer == conn->http_proxy.peer);
  ------------------
  |  Branch (423:15): [True: 0, False: 7.53k]
  ------------------
  424|  7.53k|#endif
  425|       |
  426|  7.53k|  result = cf_dns_create(&cf, data, peer, dns_queries, transport,
  427|  7.53k|                         for_proxy, FALSE);
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  428|  7.53k|  if(result)
  ------------------
  |  Branch (428:6): [True: 0, False: 7.53k]
  ------------------
  429|      0|    goto out;
  430|  7.53k|  Curl_conn_cf_add(data, conn, sockindex, cf);
  431|  7.53k|out:
  432|  7.53k|  return result;
  433|  7.53k|}
Curl_conn_dns_result:
  484|  7.53k|{
  485|  7.53k|  return cf_dns_result(conn->cfilter[sockindex]);
  486|  7.53k|}
Curl_cf_dns_get_ai:
  520|  16.0k|{
  521|  16.0k|  (void)data;
  522|  16.0k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (522:9): [True: 16.0k, False: 0]
  ------------------
  523|  16.0k|    if(cf->cft == &Curl_cft_dns) {
  ------------------
  |  Branch (523:8): [True: 16.0k, False: 0]
  ------------------
  524|  16.0k|      struct cf_dns_ctx *ctx = cf->ctx;
  525|  16.0k|      if(ctx->resolv_result)
  ------------------
  |  Branch (525:10): [True: 0, False: 16.0k]
  ------------------
  526|      0|        return NULL;
  527|  16.0k|      else if(ctx->dns)
  ------------------
  |  Branch (527:15): [True: 16.0k, False: 0]
  ------------------
  528|  16.0k|        return cf_dns_get_nth_ai(cf, ctx->dns->addr, ai_family, index);
  529|      0|      else
  530|      0|        return Curl_resolv_get_ai(data, ctx->resolv_id, ai_family, index);
  531|  16.0k|    }
  532|  16.0k|  }
  533|      0|  return NULL;
  534|  16.0k|}
Curl_conn_dns_get_ai:
  543|  16.0k|{
  544|  16.0k|  struct connectdata *conn = data->conn;
  545|  16.0k|  return Curl_cf_dns_get_ai(conn->cfilter[sockindex], data, ai_family, index);
  546|  16.0k|}
cf-dns.c:cf_dns_destroy:
  306|  7.53k|{
  307|  7.53k|  struct cf_dns_ctx *ctx = cf->ctx;
  308|       |
  309|  7.53k|  CURL_TRC_CF(data, cf, "destroy");
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  310|  7.53k|  cf_dns_ctx_destroy(data, ctx);
  311|  7.53k|}
cf-dns.c:cf_dns_ctx_destroy:
   77|  7.53k|{
   78|  7.53k|  if(ctx) {
  ------------------
  |  Branch (78:6): [True: 7.53k, False: 0]
  ------------------
   79|  7.53k|    Curl_peer_unlink(&ctx->peer);
   80|  7.53k|    Curl_dns_entry_unlink(data, &ctx->dns);
   81|  7.53k|    curlx_free(ctx);
  ------------------
  |  | 1483|  7.53k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   82|  7.53k|  }
   83|  7.53k|}
cf-dns.c:cf_dns_connect:
  247|  11.4k|{
  248|  11.4k|  struct cf_dns_ctx *ctx = cf->ctx;
  249|       |
  250|  11.4k|  if(cf->connected) {
  ------------------
  |  Branch (250:6): [True: 0, False: 11.4k]
  ------------------
  251|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  252|      0|    return CURLE_OK;
  253|      0|  }
  254|       |
  255|  11.4k|  *done = FALSE;
  ------------------
  |  | 1058|  11.4k|#define FALSE false
  ------------------
  256|  11.4k|  if(!ctx->started) {
  ------------------
  |  Branch (256:6): [True: 7.53k, False: 3.91k]
  ------------------
  257|  7.53k|    ctx->started = TRUE;
  ------------------
  |  | 1055|  7.53k|#define TRUE true
  ------------------
  258|  7.53k|    ctx->resolv_result = cf_dns_start(cf, data, &ctx->dns);
  259|  7.53k|  }
  260|       |
  261|  11.4k|  if(!ctx->dns && !ctx->resolv_result) {
  ------------------
  |  Branch (261:6): [True: 0, False: 11.4k]
  |  Branch (261:19): [True: 0, False: 0]
  ------------------
  262|      0|    ctx->resolv_result =
  263|      0|      Curl_resolv_take_result(data, ctx->resolv_id, &ctx->dns);
  264|      0|  }
  265|       |
  266|  11.4k|  if(ctx->resolv_result) {
  ------------------
  |  Branch (266:6): [True: 0, False: 11.4k]
  ------------------
  267|      0|    CURL_TRC_CF(data, cf, "error resolving: %d", ctx->resolv_result);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  268|      0|    return ctx->resolv_result;
  269|      0|  }
  270|       |
  271|  11.4k|  if(ctx->dns && !ctx->announced) {
  ------------------
  |  Branch (271:6): [True: 11.4k, False: 0]
  |  Branch (271:18): [True: 7.53k, False: 3.91k]
  ------------------
  272|  7.53k|    ctx->announced = TRUE;
  ------------------
  |  | 1055|  7.53k|#define TRUE true
  ------------------
  273|  7.53k|    if(cf->sockindex == FIRSTSOCKET) {
  ------------------
  |  |  303|  7.53k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (273:8): [True: 7.53k, False: 0]
  ------------------
  274|  7.53k|      cf->conn->bits.dns_resolved = TRUE;
  ------------------
  |  | 1055|  7.53k|#define TRUE true
  ------------------
  275|  7.53k|      Curl_pgrsTime(data, TIMER_NAMELOOKUP);
  276|  7.53k|    }
  277|  7.53k|    cf_dns_report(cf, data, ctx->dns);
  278|  7.53k|  }
  279|       |
  280|  11.4k|  if(!cf_dns_ready_to_connect(cf, data)) {
  ------------------
  |  Branch (280:6): [True: 0, False: 11.4k]
  ------------------
  281|      0|    return CURLE_OK;
  282|      0|  }
  283|       |
  284|  11.4k|  if(cf->next && !cf->next->connected) {
  ------------------
  |  Branch (284:6): [True: 11.4k, False: 0]
  |  Branch (284:18): [True: 11.4k, False: 0]
  ------------------
  285|  11.4k|    bool sub_done;
  286|  11.4k|    CURLcode result = Curl_conn_cf_connect(cf->next, data, &sub_done);
  287|  11.4k|    if(result || !sub_done)
  ------------------
  |  Branch (287:8): [True: 521, False: 10.9k]
  |  Branch (287:18): [True: 4.13k, False: 6.79k]
  ------------------
  288|  4.65k|      return result;
  289|  6.79k|    DEBUGASSERT(sub_done);
  ------------------
  |  | 1081|  6.79k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (289:5): [True: 0, False: 6.79k]
  |  Branch (289:5): [True: 6.79k, False: 0]
  ------------------
  290|  6.79k|  }
  291|       |
  292|       |  /* sub filter chain is connected */
  293|  6.79k|  CURL_TRC_CF(data, cf, "connected filter chain below");
  ------------------
  |  |  153|  6.79k|  do {                                          \
  |  |  154|  6.79k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  6.79k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  13.5k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 6.79k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 6.79k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  13.5k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  6.79k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.79k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.79k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.79k]
  |  |  ------------------
  ------------------
  294|  6.79k|  if(ctx->complete_resolve && !ctx->dns && !ctx->resolv_result) {
  ------------------
  |  Branch (294:6): [True: 0, False: 6.79k]
  |  Branch (294:31): [True: 0, False: 0]
  |  Branch (294:44): [True: 0, False: 0]
  ------------------
  295|       |    /* This filter only connects when it has resolved everything. */
  296|      0|    CURL_TRC_CF(data, cf, "delay connect until resolve complete");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  297|      0|    return CURLE_OK;
  298|      0|  }
  299|  6.79k|  *done = TRUE;
  ------------------
  |  | 1055|  6.79k|#define TRUE true
  ------------------
  300|       |  cf->connected = TRUE;
  ------------------
  |  | 1055|  6.79k|#define TRUE true
  ------------------
  301|  6.79k|  Curl_resolv_destroy(data, ctx->resolv_id);
  302|  6.79k|  return CURLE_OK;
  303|  6.79k|}
cf-dns.c:cf_dns_start:
  165|  7.53k|{
  166|  7.53k|  struct cf_dns_ctx *ctx = cf->ctx;
  167|  7.53k|  timediff_t timeout_ms = Curl_timeleft_ms(data);
  168|  7.53k|  CURLcode result;
  169|       |
  170|  7.53k|  *pdns = NULL;
  171|       |
  172|  7.53k|  CURL_TRC_CF(data, cf, "cf_dns_start %s %s:%u",
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  173|  7.53k|              ctx->peer->unix_socket ? "unix-domain-socket" : "host",
  174|  7.53k|              ctx->peer->hostname, ctx->peer->port);
  175|  7.53k|  if(ctx->peer->unix_socket)
  ------------------
  |  Branch (175:6): [True: 0, False: 7.53k]
  ------------------
  176|      0|    ctx->dns_queries = 0;
  177|  7.53k|  else if(Curl_is_ipv4addr(ctx->peer->hostname))
  ------------------
  |  Branch (177:11): [True: 7.53k, False: 0]
  ------------------
  178|  7.53k|    ctx->dns_queries |= CURL_DNSQ_A;
  ------------------
  |  |   51|  7.53k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  179|      0|#ifdef USE_IPV6
  180|      0|  else if(ctx->peer->ipv6)
  ------------------
  |  Branch (180:11): [True: 0, False: 0]
  ------------------
  181|      0|    ctx->dns_queries |= CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  182|  7.53k|#endif
  183|       |
  184|  7.53k|  result = Curl_resolv(data, ctx->peer, ctx->dns_queries, ctx->transport,
  185|  7.53k|                       (bool)ctx->for_proxy, timeout_ms,
  186|  7.53k|                       &ctx->resolv_id, pdns);
  187|  7.53k|  DEBUGASSERT(!result || !*pdns);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (187:3): [True: 7.53k, False: 0]
  |  Branch (187:3): [True: 0, False: 0]
  |  Branch (187:3): [True: 7.53k, False: 0]
  |  Branch (187:3): [True: 0, False: 0]
  ------------------
  188|  7.53k|  if(!result) { /* resolved right away, either sync or from dnscache */
  ------------------
  |  Branch (188:6): [True: 7.53k, False: 0]
  ------------------
  189|  7.53k|    DEBUGASSERT(*pdns);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (189:5): [True: 0, False: 7.53k]
  |  Branch (189:5): [True: 7.53k, False: 0]
  ------------------
  190|  7.53k|    return CURLE_OK;
  191|  7.53k|  }
  192|      0|  else if(result == CURLE_AGAIN) { /* async resolv in progress */
  ------------------
  |  Branch (192:11): [True: 0, False: 0]
  ------------------
  193|      0|    return CURLE_OK;
  194|      0|  }
  195|      0|  else if(result == CURLE_OPERATION_TIMEDOUT) { /* took too long */
  ------------------
  |  Branch (195:11): [True: 0, False: 0]
  ------------------
  196|      0|    failf(data, "Failed to resolve '%s' with timeout after %"
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  197|      0|          FMT_TIMEDIFF_T " ms", ctx->peer->hostname,
  198|      0|          curlx_ptimediff_ms(Curl_pgrs_now(data),
  199|      0|                             &data->progress.t_startsingle));
  200|      0|    return CURLE_OPERATION_TIMEDOUT;
  201|      0|  }
  202|      0|  else {
  203|      0|    DEBUGASSERT(result);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (203:5): [True: 0, False: 0]
  |  Branch (203:5): [True: 0, False: 0]
  ------------------
  204|      0|    failf(data, "Could not resolve: %s", ctx->peer->hostname);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  205|      0|    return result;
  206|      0|  }
  207|  7.53k|}
cf-dns.c:cf_dns_report:
  116|  7.53k|{
  117|  7.53k|  struct cf_dns_ctx *ctx = cf->ctx;
  118|  7.53k|  struct dynbuf tmp;
  119|       |
  120|  7.53k|  if(!Curl_trc_is_verbose(data) ||
  ------------------
  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  ------------------
  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  ------------------
  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  ------------------
  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  ------------------
  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  121|       |     /* ignore no name or numerical IP addresses */
  122|      0|     !dns->hostname[0] || Curl_host_is_ipnum(dns->hostname))
  ------------------
  |  Branch (122:6): [True: 0, False: 0]
  |  Branch (122:27): [True: 0, False: 0]
  ------------------
  123|  7.53k|    return;
  124|       |
  125|      0|  if(ctx->peer->unix_socket) {
  ------------------
  |  Branch (125:6): [True: 0, False: 0]
  ------------------
  126|      0|#ifdef USE_UNIX_SOCKETS
  127|      0|    CURL_TRC_CF(data, cf, "resolved unix://%s", ctx->peer->hostname);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  128|       |#else
  129|       |    DEBUGASSERT(0);
  130|       |#endif
  131|      0|  }
  132|      0|  else {
  133|      0|    curlx_dyn_init(&tmp, 1024);
  134|      0|    infof(data, "Host %s:%u was resolved.", dns->hostname, dns->port);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  135|      0|#ifdef CURLRES_IPV6
  136|      0|    cf_dns_report_addr(data, &tmp, "IPv6: ", AF_INET6, dns->addr);
  137|      0|#endif
  138|      0|    cf_dns_report_addr(data, &tmp, "IPv4: ", AF_INET, dns->addr);
  139|       |#ifdef USE_HTTPSRR
  140|       |    if(!dns->hinfo)
  141|       |      infof(data, "HTTPS-RR: -");
  142|       |    else if(!Curl_httpsrr_applicable(data, dns->hinfo))
  143|       |      infof(data, "HTTPS-RR: not applicable");
  144|       |    else {
  145|       |      CURLcode result = Curl_httpsrr_print(&tmp, dns->hinfo);
  146|       |      if(!result)
  147|       |        infof(data, "HTTPS-RR: %s", curlx_dyn_ptr(&tmp));
  148|       |      else
  149|       |        infof(data, "Error printing HTTPS-RR information");
  150|       |    }
  151|       |#endif
  152|      0|    curlx_dyn_free(&tmp);
  153|      0|  }
  154|      0|}
cf-dns.c:cf_dns_ready_to_connect:
  213|  11.4k|{
  214|  11.4k|  struct cf_dns_ctx *ctx = cf->ctx;
  215|       |
  216|  11.4k|  if(ctx->resolv_result)
  ------------------
  |  Branch (216:6): [True: 0, False: 11.4k]
  ------------------
  217|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  218|  11.4k|  else if(ctx->dns)
  ------------------
  |  Branch (218:11): [True: 11.4k, False: 0]
  ------------------
  219|  11.4k|    return TRUE;
  ------------------
  |  | 1055|  11.4k|#define TRUE true
  ------------------
  220|      0|#ifdef USE_CURL_ASYNC
  221|      0|  else {
  222|       |    /* We want AAAA answer as we prefer ipv6. If a sub-filter desires
  223|       |    * HTTPS-RR, we check for that query as well. */
  224|      0|    uint8_t wanted_answers = CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  225|      0|    if(Curl_conn_cf_wants_httpsrr(cf, data))
  ------------------
  |  Branch (225:8): [True: 0, False: 0]
  ------------------
  226|      0|      wanted_answers |= CURL_DNSQ_HTTPS;
  ------------------
  |  |   53|      0|#define CURL_DNSQ_HTTPS       (1U << 2)
  ------------------
  227|       |
  228|       |    /* Note: if a query was never started, it is considered to have
  229|       |     * an answer (e.g. a negative one). */
  230|      0|    if(Curl_resolv_has_answers(data, ctx->resolv_id, wanted_answers))
  ------------------
  |  Branch (230:8): [True: 0, False: 0]
  ------------------
  231|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  232|       |    /* If the wanted answers are not available after a delay,
  233|       |     * we let the connect attempts start anyway. */
  234|      0|    return Curl_resolv_elapsed_ms(data, ctx->resolv_id) >=
  235|      0|           CURL_HEV3_RESOLVE_DELAY_MS;
  ------------------
  |  |  209|      0|#define CURL_HEV3_RESOLVE_DELAY_MS    50
  ------------------
  236|      0|  }
  237|       |#else
  238|       |  (void)data;
  239|       |  DEBUGASSERT(0); /* We should not come here */
  240|       |  return FALSE;
  241|       |#endif /* USE_CURL_ASYNC */
  242|  11.4k|}
cf-dns.c:cf_dns_close:
  314|    740|{
  315|    740|  cf->connected = FALSE;
  ------------------
  |  | 1058|    740|#define FALSE false
  ------------------
  316|    740|  if(cf->next)
  ------------------
  |  Branch (316:6): [True: 740, False: 0]
  ------------------
  317|    740|    cf->next->cft->do_close(cf->next, data);
  318|    740|}
cf-dns.c:cf_dns_cntrl:
  338|  7.53k|{
  339|  7.53k|  struct cf_dns_ctx *ctx = cf->ctx;
  340|  7.53k|  CURLcode result = CURLE_OK;
  341|       |
  342|  7.53k|  (void)arg1;
  343|  7.53k|  (void)arg2;
  344|  7.53k|  switch(event) {
  345|    740|  case CF_CTRL_DATA_DONE:
  ------------------
  |  |  122|    740|#define CF_CTRL_DATA_DONE               7  /* premature  NULL     ignored */
  ------------------
  |  Branch (345:3): [True: 740, False: 6.79k]
  ------------------
  346|    740|    if(ctx->dns) {
  ------------------
  |  Branch (346:8): [True: 740, False: 0]
  ------------------
  347|       |      /* Should only come here when the connect attempt failed and
  348|       |       * `data` is giving up on it. On a successful connect, we already
  349|       |       * unlinked the DNS entry. */
  350|    740|      Curl_dns_entry_unlink(data, &ctx->dns);
  351|    740|    }
  352|    740|    break;
  353|  6.79k|  default:
  ------------------
  |  Branch (353:3): [True: 6.79k, False: 740]
  ------------------
  354|  6.79k|    break;
  355|  7.53k|  }
  356|  7.53k|  return result;
  357|  7.53k|}
cf-dns.c:cf_dns_create:
  384|  7.53k|{
  385|  7.53k|  struct Curl_cfilter *cf = NULL;
  386|  7.53k|  struct cf_dns_ctx *ctx;
  387|  7.53k|  CURLcode result = CURLE_OK;
  388|       |
  389|  7.53k|  (void)data;
  390|  7.53k|  ctx = cf_dns_ctx_create(data, peer, dns_queries, transport,
  391|  7.53k|                          for_proxy, complete_resolve);
  392|  7.53k|  if(!ctx) {
  ------------------
  |  Branch (392:6): [True: 0, False: 7.53k]
  ------------------
  393|      0|    result = CURLE_OUT_OF_MEMORY;
  394|      0|    goto out;
  395|      0|  }
  396|       |
  397|  7.53k|  result = Curl_cf_create(&cf, &Curl_cft_dns, ctx);
  398|       |
  399|  7.53k|out:
  400|  7.53k|  *pcf = result ? NULL : cf;
  ------------------
  |  Branch (400:10): [True: 0, False: 7.53k]
  ------------------
  401|  7.53k|  if(result)
  ------------------
  |  Branch (401:6): [True: 0, False: 7.53k]
  ------------------
  402|      0|    cf_dns_ctx_destroy(data, ctx);
  403|  7.53k|  return result;
  404|  7.53k|}
cf-dns.c:cf_dns_ctx_create:
   57|  7.53k|{
   58|  7.53k|  struct cf_dns_ctx *ctx;
   59|       |
   60|  7.53k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1480|  7.53k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   61|  7.53k|  if(!ctx)
  ------------------
  |  Branch (61:6): [True: 0, False: 7.53k]
  ------------------
   62|      0|    return NULL;
   63|       |
   64|  7.53k|  Curl_peer_link(&ctx->peer, peer);
   65|  7.53k|  ctx->dns_queries = dns_queries;
   66|  7.53k|  ctx->transport = transport;
   67|  7.53k|  ctx->for_proxy = for_proxy;
   68|  7.53k|  ctx->complete_resolve = complete_resolve;
   69|       |
   70|  7.53k|  CURL_TRC_DNS(data, "created DNS filter for %s:%u, transport=%x, queries=%x",
  ------------------
  |  |  168|  7.53k|  do {                                 \
  |  |  169|  7.53k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  7.53k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.53k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.53k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  7.53k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
   71|  7.53k|               peer->hostname, peer->port, ctx->transport, ctx->dns_queries);
   72|  7.53k|  return ctx;
   73|  7.53k|}
cf-dns.c:cf_dns_result:
  464|  7.53k|{
  465|  7.53k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (465:9): [True: 7.53k, False: 0]
  ------------------
  466|  7.53k|    if(cf->cft == &Curl_cft_dns) {
  ------------------
  |  Branch (466:8): [True: 7.53k, False: 0]
  ------------------
  467|  7.53k|      struct cf_dns_ctx *ctx = cf->ctx;
  468|  7.53k|      if(ctx->dns || ctx->resolv_result)
  ------------------
  |  Branch (468:10): [True: 7.53k, False: 0]
  |  Branch (468:22): [True: 0, False: 0]
  ------------------
  469|  7.53k|        return ctx->resolv_result;
  470|      0|      return CURLE_AGAIN;
  471|  7.53k|    }
  472|  7.53k|  }
  473|      0|  return CURLE_FAILED_INIT;
  474|  7.53k|}
cf-dns.c:cf_dns_get_nth_ai:
  492|  16.0k|{
  493|  16.0k|  struct cf_dns_ctx *ctx = cf->ctx;
  494|  16.0k|  unsigned int i = 0;
  495|       |
  496|  16.0k|  if((ai_family == AF_INET) && !(ctx->dns_queries & CURL_DNSQ_A))
  ------------------
  |  |   51|  8.04k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  |  Branch (496:6): [True: 8.04k, False: 8.04k]
  |  Branch (496:32): [True: 0, False: 8.04k]
  ------------------
  497|      0|    return NULL;
  498|  16.0k|#ifdef USE_IPV6
  499|  16.0k|  if((ai_family == AF_INET6) && !(ctx->dns_queries & CURL_DNSQ_AAAA))
  ------------------
  |  |   52|  8.04k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (499:6): [True: 8.04k, False: 8.04k]
  |  Branch (499:33): [True: 0, False: 8.04k]
  ------------------
  500|      0|    return NULL;
  501|  16.0k|#endif
  502|  24.6k|  for(i = 0; ai; ai = ai->ai_next) {
  ------------------
  |  Branch (502:14): [True: 16.0k, False: 8.55k]
  ------------------
  503|  16.0k|    if(ai->ai_family == ai_family) {
  ------------------
  |  Branch (503:8): [True: 8.04k, False: 8.04k]
  ------------------
  504|  8.04k|      if(i == index)
  ------------------
  |  Branch (504:10): [True: 7.53k, False: 511]
  ------------------
  505|  7.53k|        return ai;
  506|    511|      ++i;
  507|    511|    }
  508|  16.0k|  }
  509|  8.55k|  return NULL;
  510|  16.0k|}

cf_ip_happy_insert_after:
 1036|  7.53k|{
 1037|  7.53k|  cf_ip_connect_create *cf_create;
 1038|  7.53k|  struct Curl_cfilter *cf;
 1039|  7.53k|  CURLcode result;
 1040|       |
 1041|       |  /* Need to be first */
 1042|  7.53k|  DEBUGASSERT(cf_at);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1042:3): [True: 0, False: 7.53k]
  |  Branch (1042:3): [True: 7.53k, False: 0]
  ------------------
 1043|  7.53k|  cf_create = get_cf_create(transport_out, tunnel_proxy);
 1044|  7.53k|  if(!cf_create) {
  ------------------
  |  Branch (1044:6): [True: 0, False: 7.53k]
  ------------------
 1045|      0|    CURL_TRC_CF(data, cf_at, "unsupported transport type %u%s",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1046|      0|                transport_out, tunnel_proxy ? "to proxy" : "");
 1047|      0|    return CURLE_UNSUPPORTED_PROTOCOL;
 1048|      0|  }
 1049|  7.53k|  result = cf_ip_happy_create(&cf, data, peer, cf_at->conn, cf_create,
 1050|  7.53k|                              transport_in, transport_out);
 1051|  7.53k|  if(result)
  ------------------
  |  Branch (1051:6): [True: 0, False: 7.53k]
  ------------------
 1052|      0|    return result;
 1053|       |
 1054|  7.53k|  Curl_conn_cf_insert_after(cf_at, cf);
 1055|  7.53k|  return CURLE_OK;
 1056|  7.53k|}
cf-ip-happy.c:cf_ip_happy_destroy:
  958|  7.53k|{
  959|  7.53k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  960|       |
  961|  7.53k|  CURL_TRC_CF(data, cf, "destroy");
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  962|  7.53k|  if(ctx) {
  ------------------
  |  Branch (962:6): [True: 7.53k, False: 0]
  ------------------
  963|  7.53k|    cf_ip_happy_ctx_clear(cf, data);
  964|  7.53k|    cf_ip_happy_ctx_destroy(ctx);
  965|  7.53k|  }
  966|  7.53k|}
cf-ip-happy.c:cf_ip_happy_ctx_clear:
  765|  15.2k|{
  766|  15.2k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  767|       |
  768|  15.2k|  DEBUGASSERT(ctx);
  ------------------
  |  | 1081|  15.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (768:3): [True: 0, False: 15.2k]
  |  Branch (768:3): [True: 15.2k, False: 0]
  ------------------
  769|  15.2k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  15.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (769:3): [True: 0, False: 15.2k]
  |  Branch (769:3): [True: 15.2k, False: 0]
  ------------------
  770|  15.2k|  cf_ip_ballers_clear(cf, data, &ctx->ballers);
  771|  15.2k|}
cf-ip-happy.c:cf_ip_ballers_clear:
  302|  15.2k|{
  303|  15.2k|  (void)cf;
  304|  15.8k|  while(bs->running) {
  ------------------
  |  Branch (304:9): [True: 511, False: 15.2k]
  ------------------
  305|    511|    struct cf_ip_attempt *a = bs->running;
  306|    511|    bs->running = a->next;
  307|    511|    cf_ip_attempt_free(a, data);
  308|    511|  }
  309|  15.2k|  cf_ip_attempt_free(bs->winner, data);
  310|       |  bs->winner = NULL;
  311|  15.2k|}
cf-ip-happy.c:cf_ip_attempt_free:
  176|  15.8k|{
  177|  15.8k|  if(a) {
  ------------------
  |  Branch (177:6): [True: 7.53k, False: 8.27k]
  ------------------
  178|  7.53k|    if(a->cf)
  ------------------
  |  Branch (178:8): [True: 0, False: 7.53k]
  ------------------
  179|      0|      Curl_conn_cf_discard_chain(&a->cf, data);
  180|  7.53k|    curlx_free(a);
  ------------------
  |  | 1483|  7.53k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  181|  7.53k|  }
  182|  15.8k|}
cf-ip-happy.c:cf_ip_happy_ctx_destroy:
  774|  7.53k|{
  775|  7.53k|  if(ctx) {
  ------------------
  |  Branch (775:6): [True: 7.53k, False: 0]
  ------------------
  776|  7.53k|    Curl_peer_unlink(&ctx->peer);
  777|  7.53k|    curlx_free(ctx);
  ------------------
  |  | 1483|  7.53k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  778|  7.53k|  }
  779|  7.53k|}
cf-ip-happy.c:cf_ip_happy_connect:
  816|  7.53k|{
  817|  7.53k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  818|  7.53k|  CURLcode result = CURLE_OK;
  819|       |
  820|       |  /* -Werror=null-dereference finds false positives suddenly. */
  821|  7.53k|  if(!data)
  ------------------
  |  Branch (821:6): [True: 0, False: 7.53k]
  ------------------
  822|      0|    return CURLE_FAILED_INIT;
  823|       |
  824|  7.53k|  if(cf->connected) {
  ------------------
  |  Branch (824:6): [True: 0, False: 7.53k]
  ------------------
  825|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  826|      0|    return CURLE_OK;
  827|      0|  }
  828|       |
  829|  7.53k|  DEBUGASSERT(ctx);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (829:3): [True: 0, False: 7.53k]
  |  Branch (829:3): [True: 7.53k, False: 0]
  ------------------
  830|  7.53k|  *done = FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  831|       |
  832|  7.53k|  if(!ctx->dns_resolved) {
  ------------------
  |  Branch (832:6): [True: 7.53k, False: 0]
  ------------------
  833|  7.53k|    result = Curl_conn_dns_result(cf->conn, cf->sockindex);
  834|  7.53k|    if(!result)
  ------------------
  |  Branch (834:8): [True: 7.53k, False: 0]
  ------------------
  835|  7.53k|      ctx->dns_resolved = TRUE;
  ------------------
  |  | 1055|  7.53k|#define TRUE true
  ------------------
  836|      0|    else if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (836:13): [True: 0, False: 0]
  ------------------
  837|      0|      result = CURLE_OK;
  838|      0|    }
  839|      0|    else /* real error */
  840|      0|      goto out;
  841|  7.53k|  }
  842|       |
  843|  7.53k|  switch(ctx->state) {
  ------------------
  |  Branch (843:10): [True: 7.53k, False: 0]
  ------------------
  844|  7.53k|  case SCFST_INIT:
  ------------------
  |  Branch (844:3): [True: 7.53k, False: 0]
  ------------------
  845|  7.53k|    DEBUGASSERT(CURL_SOCKET_BAD == Curl_conn_cf_get_socket(cf, data));
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (845:5): [True: 0, False: 7.53k]
  |  Branch (845:5): [True: 7.53k, False: 0]
  ------------------
  846|  7.53k|    DEBUGASSERT(!cf->connected);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (846:5): [True: 0, False: 7.53k]
  |  Branch (846:5): [True: 7.53k, False: 0]
  ------------------
  847|  7.53k|    result = cf_ip_happy_init(cf, data);
  848|  7.53k|    if(result)
  ------------------
  |  Branch (848:8): [True: 0, False: 7.53k]
  ------------------
  849|      0|      goto out;
  850|  7.53k|    ctx->state = SCFST_WAITING;
  851|  7.53k|    FALLTHROUGH();
  ------------------
  |  |  821|  7.53k|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  852|  7.53k|  case SCFST_WAITING:
  ------------------
  |  Branch (852:3): [True: 0, False: 7.53k]
  ------------------
  853|  7.53k|    result = is_connected(cf, data, done);
  854|  7.53k|    if(!result && *done) {
  ------------------
  |  Branch (854:8): [True: 7.02k, False: 511]
  |  Branch (854:19): [True: 7.02k, False: 0]
  ------------------
  855|  7.02k|      DEBUGASSERT(ctx->ballers.winner);
  ------------------
  |  | 1081|  7.02k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (855:7): [True: 0, False: 7.02k]
  |  Branch (855:7): [True: 7.02k, False: 0]
  ------------------
  856|  7.02k|      DEBUGASSERT(ctx->ballers.winner->cf);
  ------------------
  |  | 1081|  7.02k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (856:7): [True: 0, False: 7.02k]
  |  Branch (856:7): [True: 7.02k, False: 0]
  ------------------
  857|  7.02k|      DEBUGASSERT(ctx->ballers.winner->cf->connected);
  ------------------
  |  | 1081|  7.02k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (857:7): [True: 0, False: 7.02k]
  |  Branch (857:7): [True: 7.02k, False: 0]
  ------------------
  858|       |      /* we have a winner. Install and activate it.
  859|       |       * close/free all others. */
  860|  7.02k|      ctx->state = SCFST_DONE;
  861|  7.02k|      cf->connected = TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
  862|  7.02k|      cf->next = ctx->ballers.winner->cf;
  863|  7.02k|      ctx->ballers.winner->cf = NULL;
  864|  7.02k|      cf_ip_happy_ctx_clear(cf, data);
  865|  7.02k|      Curl_expire_done(data, EXPIRE_HAPPY_EYEBALLS);
  866|       |      /* whatever errors where reported by ballers, clear our errorbuf */
  867|  7.02k|      Curl_reset_fail(data);
  868|       |
  869|  7.02k|      if(cf->conn->scheme->protocol & PROTO_FAMILY_SSH)
  ------------------
  |  |   90|  7.02k|#define PROTO_FAMILY_SSH  (CURLPROTO_SCP | CURLPROTO_SFTP)
  |  |  ------------------
  |  |  |  | 1082|  7.02k|#define CURLPROTO_SCP     (1L << 4)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_SSH  (CURLPROTO_SCP | CURLPROTO_SFTP)
  |  |  ------------------
  |  |  |  | 1083|  7.02k|#define CURLPROTO_SFTP    (1L << 5)
  |  |  ------------------
  ------------------
  |  Branch (869:10): [True: 0, False: 7.02k]
  ------------------
  870|      0|        Curl_pgrsTime(data, TIMER_APPCONNECT); /* we are connected already */
  871|  7.02k|#ifdef CURLVERBOSE
  872|  7.02k|      if(Curl_trc_cf_is_verbose(cf, data)) {
  ------------------
  |  |  323|  7.02k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  ------------------
  |  |  |  |  319|  14.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 7.02k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.02k]
  |  |  |  |  ------------------
  |  |  |  |  320|  14.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  324|  7.02k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  873|      0|        struct ip_quadruple ipquad;
  874|      0|        bool is_ipv6;
  875|      0|        if(!Curl_conn_cf_get_ip_info(cf->next, data, &is_ipv6, &ipquad)) {
  ------------------
  |  Branch (875:12): [True: 0, False: 0]
  ------------------
  876|      0|          const char *host;
  877|      0|          Curl_conn_get_current_host(data, cf->sockindex, &host, NULL);
  878|      0|          CURL_TRC_CF(data, cf, "Connected to %s (%s) port %u",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  879|      0|                      host, ipquad.remote_ip, ipquad.remote_port);
  880|      0|        }
  881|      0|      }
  882|  7.02k|#endif
  883|  7.02k|      data->info.numconnects++; /* to track the # of connections made */
  884|  7.02k|    }
  885|  7.53k|    break;
  886|  7.53k|  case SCFST_DONE:
  ------------------
  |  Branch (886:3): [True: 0, False: 7.53k]
  ------------------
  887|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  888|      0|    break;
  889|  7.53k|  }
  890|  7.53k|out:
  891|  7.53k|  return result;
  892|  7.53k|}
cf-ip-happy.c:cf_ip_happy_init:
  745|  7.53k|{
  746|  7.53k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  747|       |
  748|  7.53k|  if(Curl_timeleft_ms(data) < 0) {
  ------------------
  |  Branch (748:6): [True: 0, False: 7.53k]
  ------------------
  749|       |    /* a precaution, no need to continue if time already is up */
  750|      0|    failf(data, "Connection time-out");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  751|      0|    return CURLE_OPERATION_TIMEDOUT;
  752|      0|  }
  753|       |
  754|  7.53k|  CURL_TRC_CF(data, cf, "init ip ballers for transport %u",
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  755|  7.53k|              ctx->transport_out);
  756|  7.53k|  ctx->started = *Curl_pgrs_now(data);
  757|  7.53k|  return cf_ip_ballers_init(&ctx->ballers, cf, ctx->cf_create,
  758|  7.53k|                            ctx->transport_in, ctx->transport_out,
  759|  7.53k|                            data->set.happy_eyeballs_timeout,
  760|  7.53k|                            IP_HE_MAX_CONCURRENT_ATTEMPTS);
  ------------------
  |  |  741|  7.53k|#define IP_HE_MAX_CONCURRENT_ATTEMPTS     6
  ------------------
  761|  7.53k|}
cf-ip-happy.c:cf_ip_ballers_init:
  320|  7.53k|{
  321|  7.53k|  memset(bs, 0, sizeof(*bs));
  322|  7.53k|  bs->cf_create = cf_create;
  323|  7.53k|  bs->transport_in = transport_in;
  324|  7.53k|  bs->transport_out = transport_out;
  325|  7.53k|  bs->attempt_delay_ms = attempt_delay_ms;
  326|  7.53k|  bs->max_concurrent = max_concurrent;
  327|  7.53k|  bs->last_attempt_ai_family = AF_INET; /* so AF_INET6 is next */
  328|       |
  329|  7.53k|  if(transport_in == TRNSPRT_UNIX) {
  ------------------
  |  |  310|  7.53k|#define TRNSPRT_UNIX 6
  ------------------
  |  Branch (329:6): [True: 0, False: 7.53k]
  ------------------
  330|      0|#ifdef USE_UNIX_SOCKETS
  331|      0|    cf_ai_iter_init(&bs->addr_iter, cf, AF_UNIX);
  332|       |#else
  333|       |    return CURLE_UNSUPPORTED_PROTOCOL;
  334|       |#endif
  335|      0|  }
  336|  7.53k|  else { /* TCP/UDP/QUIC */
  337|  7.53k|#ifdef USE_IPV6
  338|  7.53k|    cf_ai_iter_init(&bs->ipv6_iter, cf, AF_INET6);
  339|  7.53k|#endif
  340|       |    cf_ai_iter_init(&bs->addr_iter, cf, AF_INET);
  341|  7.53k|  }
  342|  7.53k|  return CURLE_OK;
  343|  7.53k|}
cf-ip-happy.c:cf_ai_iter_init:
  128|  15.0k|{
  129|  15.0k|  iter->cf = cf;
  130|  15.0k|  iter->ai_family = ai_family;
  131|  15.0k|  iter->n = 0;
  132|  15.0k|}
cf-ip-happy.c:is_connected:
  685|  7.53k|{
  686|  7.53k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  687|  7.53k|  struct connectdata *conn = cf->conn;
  688|  7.53k|  CURLcode result;
  689|       |
  690|  7.53k|  result = cf_ip_ballers_run(&ctx->ballers, cf, data,
  691|  7.53k|                             (bool)ctx->dns_resolved, connected);
  692|       |
  693|  7.53k|  if(!result)
  ------------------
  |  Branch (693:6): [True: 7.02k, False: 511]
  ------------------
  694|  7.02k|    return CURLE_OK;
  695|    511|  else {
  696|    511|    struct Curl_peer *peer = NULL, *proxy_peer = NULL;
  697|    511|    char viamsg[160];
  698|       |
  699|    511|    peer = Curl_conn_get_first_peer(conn, cf->sockindex);
  700|    511|    if(!conn->origin || !peer)
  ------------------
  |  Branch (700:8): [True: 0, False: 511]
  |  Branch (700:25): [True: 0, False: 511]
  ------------------
  701|      0|      return CURLE_FAILED_INIT;
  702|       |
  703|    511|#ifndef CURL_DISABLE_PROXY
  704|    511|    if(conn->bits.socksproxy)
  ------------------
  |  Branch (704:8): [True: 0, False: 511]
  ------------------
  705|      0|      proxy_peer = conn->socks_proxy.peer;
  706|    511|    else if(conn->bits.httpproxy)
  ------------------
  |  Branch (706:13): [True: 0, False: 511]
  ------------------
  707|      0|      proxy_peer = conn->http_proxy.peer;
  708|    511|#endif
  709|       |
  710|    511|    viamsg[0] = 0;
  711|    511|    if((peer != conn->origin) && (peer != proxy_peer)) {
  ------------------
  |  Branch (711:8): [True: 506, False: 5]
  |  Branch (711:34): [True: 506, False: 0]
  ------------------
  712|    506|#ifdef USE_UNIX_SOCKETS
  713|    506|      if(peer->unix_socket)
  ------------------
  |  Branch (713:10): [True: 0, False: 506]
  ------------------
  714|      0|        curl_msnprintf(viamsg, sizeof(viamsg), " over unix://%s",
  715|      0|                       peer->hostname);
  716|    506|      else
  717|    506|#endif
  718|    506|      curl_msnprintf(viamsg, sizeof(viamsg), " via %s:%u",
  719|    506|                     peer->hostname, peer->port);
  720|    506|    }
  721|       |
  722|    511|    failf(data, "Failed to connect to %s:%u%s %s%s%safter "
  ------------------
  |  |   62|    511|#define failf Curl_failf
  ------------------
  723|    511|          "%" FMT_TIMEDIFF_T " ms: %s",
  724|    511|          conn->origin->hostname, conn->origin->port, viamsg,
  725|    511|          proxy_peer ? "over proxy " : "",
  ------------------
  |  Branch (725:11): [True: 0, False: 511]
  ------------------
  726|    511|          proxy_peer ? proxy_peer->hostname : "",
  ------------------
  |  Branch (726:11): [True: 0, False: 511]
  ------------------
  727|    511|          proxy_peer ? " " : "",
  ------------------
  |  Branch (727:11): [True: 0, False: 511]
  ------------------
  728|    511|          curlx_ptimediff_ms(Curl_pgrs_now(data),
  729|    511|                             &data->progress.t_startsingle),
  730|    511|          curl_easy_strerror(result));
  731|       |
  732|    511|#ifdef SOCKETIMEDOUT
  733|    511|    if(SOCKETIMEDOUT == data->state.os_errno)
  ------------------
  |  | 1135|    511|#define SOCKETIMEDOUT     ETIMEDOUT
  ------------------
  |  Branch (733:8): [True: 0, False: 511]
  ------------------
  734|      0|      result = CURLE_OPERATION_TIMEDOUT;
  735|    511|#endif
  736|       |
  737|    511|    return result;
  738|    511|  }
  739|  7.53k|}
cf-ip-happy.c:cf_ip_ballers_run:
  379|  7.53k|{
  380|  7.53k|  CURLcode result = CURLE_OK;
  381|  7.53k|  struct cf_ip_attempt *a = NULL, **panchor;
  382|  7.53k|  bool do_more;
  383|  7.53k|  timediff_t next_expire_ms;
  384|  7.53k|  uint32_t inconclusive, ongoing;
  385|  7.53k|  VERBOSE(int i);
  ------------------
  |  | 1618|  7.53k|#define VERBOSE(x) x
  ------------------
  386|       |
  387|  7.53k|  if(bs->winner)
  ------------------
  |  Branch (387:6): [True: 0, False: 7.53k]
  ------------------
  388|      0|    return CURLE_OK;
  389|       |
  390|  15.0k|evaluate:
  391|  15.0k|  ongoing = inconclusive = 0;
  392|       |
  393|       |  /* check if a running baller connects now */
  394|  15.0k|  VERBOSE(i = -1);
  ------------------
  |  | 1618|  15.0k|#define VERBOSE(x) x
  ------------------
  395|  15.5k|  for(panchor = &bs->running; *panchor; panchor = &((*panchor)->next)) {
  ------------------
  |  Branch (395:31): [True: 7.53k, False: 8.04k]
  ------------------
  396|  7.53k|    VERBOSE(++i);
  ------------------
  |  | 1618|  7.53k|#define VERBOSE(x) x
  ------------------
  397|  7.53k|    a = *panchor;
  398|  7.53k|    a->result = cf_ip_attempt_connect(a, data, connected);
  399|  7.53k|    if(!a->result) {
  ------------------
  |  Branch (399:8): [True: 7.02k, False: 511]
  ------------------
  400|  7.02k|      if(*connected) {
  ------------------
  |  Branch (400:10): [True: 7.02k, False: 0]
  ------------------
  401|       |        /* connected, declare the winner, remove from running,
  402|       |         * clear remaining running list. */
  403|  7.02k|        CURL_TRC_CF(data, cf, "connect attempt #%d successful", i);
  ------------------
  |  |  153|  7.02k|  do {                                          \
  |  |  154|  7.02k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.02k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  14.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.02k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.02k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  14.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.02k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.02k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.02k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.02k]
  |  |  ------------------
  ------------------
  404|  7.02k|        bs->winner = a;
  405|  7.02k|        *panchor = a->next;
  406|  7.02k|        a->next = NULL;
  407|  7.02k|        while(bs->running) {
  ------------------
  |  Branch (407:15): [True: 0, False: 7.02k]
  ------------------
  408|      0|          a = bs->running;
  409|      0|          bs->running = a->next;
  410|      0|          cf_ip_attempt_free(a, data);
  411|      0|        }
  412|  7.02k|        return CURLE_OK;
  413|  7.02k|      }
  414|       |      /* still running */
  415|      0|      ++ongoing;
  416|      0|    }
  417|    511|    else if(a->inconclusive) /* failed, but inconclusive */
  ------------------
  |  Branch (417:13): [True: 0, False: 511]
  ------------------
  418|      0|      ++inconclusive;
  419|  7.53k|  }
  420|  8.04k|  if(bs->running)
  ------------------
  |  Branch (420:6): [True: 511, False: 7.53k]
  ------------------
  421|    511|    CURL_TRC_CF(data, cf, "checked connect attempts: "
  ------------------
  |  |  153|    511|  do {                                          \
  |  |  154|    511|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    511|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.02k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 511, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 511]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.02k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    511|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    511|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    511|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 511]
  |  |  ------------------
  ------------------
  422|  8.04k|                "%u ongoing, %u inconclusive", ongoing, inconclusive);
  423|       |
  424|       |  /* no attempt connected yet, start another one? */
  425|  8.04k|  if(!ongoing) {
  ------------------
  |  Branch (425:6): [True: 8.04k, False: 0]
  ------------------
  426|  8.04k|    if(!bs->started.tv_sec && !bs->started.tv_usec)
  ------------------
  |  Branch (426:8): [True: 7.53k, False: 511]
  |  Branch (426:31): [True: 7.53k, False: 0]
  ------------------
  427|  7.53k|      bs->started = *Curl_pgrs_now(data);
  428|  8.04k|    do_more = TRUE;
  ------------------
  |  | 1055|  8.04k|#define TRUE true
  ------------------
  429|  8.04k|  }
  430|      0|  else {
  431|      0|    bool more_possible = cf_ai_iter_has_more(&bs->addr_iter, data);
  432|      0|#ifdef USE_IPV6
  433|      0|    if(!more_possible)
  ------------------
  |  Branch (433:8): [True: 0, False: 0]
  ------------------
  434|      0|      more_possible = cf_ai_iter_has_more(&bs->ipv6_iter, data);
  435|      0|#endif
  436|      0|    do_more = more_possible &&
  ------------------
  |  Branch (436:15): [True: 0, False: 0]
  ------------------
  437|      0|      (curlx_ptimediff_ms(Curl_pgrs_now(data), &bs->last_attempt_started) >=
  ------------------
  |  Branch (437:7): [True: 0, False: 0]
  ------------------
  438|      0|       bs->attempt_delay_ms);
  439|      0|    if(do_more)
  ------------------
  |  Branch (439:8): [True: 0, False: 0]
  ------------------
  440|      0|      CURL_TRC_CF(data, cf, "happy eyeballs timeout expired, "
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  441|      0|                  "start next attempt");
  442|      0|  }
  443|       |
  444|  8.04k|  if(do_more) {
  ------------------
  |  Branch (444:6): [True: 8.04k, False: 0]
  ------------------
  445|       |    /* start the next attempt if there is another ip address to try.
  446|       |     * Alternate between address families when possible. */
  447|  8.04k|    const struct Curl_addrinfo *ai = NULL;
  448|  8.04k|    int ai_family = 0;
  449|  8.04k|    CURL_TRC_CF(data, cf, "want to do more");
  ------------------
  |  |  153|  8.04k|  do {                                          \
  |  |  154|  8.04k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  8.04k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  16.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 8.04k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 8.04k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  16.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  8.04k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  8.04k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  8.04k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 8.04k]
  |  |  ------------------
  ------------------
  450|  8.04k|#ifdef USE_IPV6
  451|  8.04k|    if((bs->last_attempt_ai_family == AF_INET) ||
  ------------------
  |  Branch (451:8): [True: 8.04k, False: 0]
  ------------------
  452|  8.04k|       !cf_ai_iter_has_more(&bs->addr_iter, data)) {
  ------------------
  |  Branch (452:8): [True: 0, False: 0]
  ------------------
  453|  8.04k|      ai = cf_ai_iter_next(&bs->ipv6_iter, data);
  454|  8.04k|      ai_family = bs->ipv6_iter.ai_family;
  455|  8.04k|      CURL_TRC_CF(data, cf, "check for next AAAA address: %s",
  ------------------
  |  |  153|  8.04k|  do {                                          \
  |  |  154|  8.04k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  8.04k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  16.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 8.04k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 8.04k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  16.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  8.04k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  8.04k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  8.04k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 8.04k]
  |  |  ------------------
  ------------------
  456|  8.04k|                  ai ? "found" : "none");
  457|  8.04k|    }
  458|  8.04k|#endif
  459|  8.04k|    if(!ai) {
  ------------------
  |  Branch (459:8): [True: 8.04k, False: 0]
  ------------------
  460|  8.04k|      ai = cf_ai_iter_next(&bs->addr_iter, data);
  461|  8.04k|      ai_family = bs->addr_iter.ai_family;
  462|  8.04k|      CURL_TRC_CF(data, cf, "check for next A address: %s",
  ------------------
  |  |  153|  8.04k|  do {                                          \
  |  |  154|  8.04k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  8.04k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  16.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 8.04k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 8.04k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  16.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  8.04k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  8.04k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  8.04k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 8.04k]
  |  |  ------------------
  ------------------
  463|  8.04k|                  ai ? "found" : "none");
  464|  8.04k|    }
  465|       |    /* We are (re-)starting attempts. We are not interested in
  466|       |     * keeping old failure information. The new attempt will either
  467|       |     * succeed or persist new failure. */
  468|  8.04k|    Curl_reset_fail(data);
  469|       |
  470|  8.04k|    if(ai) {  /* try another address */
  ------------------
  |  Branch (470:8): [True: 7.53k, False: 511]
  ------------------
  471|  7.53k|      struct Curl_sockaddr_ex addr;
  472|       |
  473|       |      /* Discard oldest to make room for new attempt */
  474|  7.53k|      if(bs->max_concurrent)
  ------------------
  |  Branch (474:10): [True: 7.53k, False: 0]
  ------------------
  475|  7.53k|        cf_ip_ballers_prune(bs, cf, data, bs->max_concurrent - 1);
  476|       |
  477|  7.53k|      result = Curl_socket_addr_from_ai(&addr, ai, bs->transport_out);
  478|  7.53k|      if(result)
  ------------------
  |  Branch (478:10): [True: 0, False: 7.53k]
  ------------------
  479|      0|        goto out;
  480|       |
  481|  7.53k|      result = cf_ip_attempt_new(&a, cf, data, &addr, ai_family,
  482|  7.53k|                                 bs->transport_in, bs->transport_out,
  483|  7.53k|                                 bs->cf_create);
  484|  7.53k|      CURL_TRC_CF(data, cf, "starting %s attempt for ipv%s -> %d",
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  485|  7.53k|                  bs->running ? "next" : "first",
  486|  7.53k|                  (ai_family == AF_INET) ? "4" : "6", result);
  487|  7.53k|      if(result)
  ------------------
  |  Branch (487:10): [True: 0, False: 7.53k]
  ------------------
  488|      0|        goto out;
  489|  7.53k|      DEBUGASSERT(a);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (489:7): [True: 0, False: 7.53k]
  |  Branch (489:7): [True: 7.53k, False: 0]
  ------------------
  490|       |
  491|       |      /* append to running list */
  492|  7.53k|      panchor = &bs->running;
  493|  7.53k|      while(*panchor)
  ------------------
  |  Branch (493:13): [True: 0, False: 7.53k]
  ------------------
  494|      0|        panchor = &((*panchor)->next);
  495|  7.53k|      *panchor = a;
  496|  7.53k|      bs->last_attempt_started = *Curl_pgrs_now(data);
  497|  7.53k|      bs->last_attempt_ai_family = ai_family;
  498|       |      /* and run everything again */
  499|  7.53k|      goto evaluate;
  500|  7.53k|    }
  501|    511|    else if(inconclusive) {
  ------------------
  |  Branch (501:13): [True: 0, False: 511]
  ------------------
  502|       |      /* tried all addresses, no success but some where inconclusive.
  503|       |       * Let's restart the inconclusive ones. */
  504|      0|      timediff_t since_ms =
  505|      0|        curlx_ptimediff_ms(Curl_pgrs_now(data), &bs->last_attempt_started);
  506|      0|      timediff_t delay_ms = bs->attempt_delay_ms - since_ms;
  507|      0|      if(delay_ms <= 0) {
  ------------------
  |  Branch (507:10): [True: 0, False: 0]
  ------------------
  508|      0|        CURL_TRC_CF(data, cf, "all attempts inconclusive, restarting one");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  509|      0|        VERBOSE(i = -1);
  ------------------
  |  | 1618|      0|#define VERBOSE(x) x
  ------------------
  510|      0|        for(a = bs->running; a; a = a->next) {
  ------------------
  |  Branch (510:30): [True: 0, False: 0]
  ------------------
  511|      0|          VERBOSE(++i);
  ------------------
  |  | 1618|      0|#define VERBOSE(x) x
  ------------------
  512|      0|          if(!a->inconclusive)
  ------------------
  |  Branch (512:14): [True: 0, False: 0]
  ------------------
  513|      0|            continue;
  514|      0|          result = cf_ip_attempt_restart(a, cf, data);
  515|      0|          CURL_TRC_CF(data, cf, "restarted baller %d -> %d", i, result);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  516|      0|          if(result) /* serious failure */
  ------------------
  |  Branch (516:14): [True: 0, False: 0]
  ------------------
  517|      0|            goto out;
  518|      0|          bs->last_attempt_started = *Curl_pgrs_now(data);
  519|      0|          goto evaluate;
  520|      0|        }
  521|      0|        DEBUGASSERT(0); /* should not come here */
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (521:9): [Folded, False: 0]
  |  Branch (521:9): [Folded, False: 0]
  ------------------
  522|      0|      }
  523|      0|      else {
  524|       |        /* let's wait some more before restarting */
  525|      0|        infof(data, "connect attempts inconclusive, retrying "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  526|      0|                    "in %" FMT_TIMEDIFF_T "ms", delay_ms);
  527|      0|        Curl_expire(data, delay_ms, EXPIRE_HAPPY_EYEBALLS);
  528|      0|      }
  529|       |      /* attempt timeout for restart has not expired yet */
  530|      0|      goto out;
  531|      0|    }
  532|    511|    else if(!ongoing && dns_resolved) {
  ------------------
  |  Branch (532:13): [True: 511, False: 0]
  |  Branch (532:25): [True: 511, False: 0]
  ------------------
  533|       |      /* no more addresses, no inconclusive attempts */
  534|    511|      CURL_TRC_CF(data, cf, "no more attempts to try");
  ------------------
  |  |  153|    511|  do {                                          \
  |  |  154|    511|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    511|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.02k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 511, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 511]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.02k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    511|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    511|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    511|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 511]
  |  |  ------------------
  ------------------
  535|    511|      result = CURLE_COULDNT_CONNECT;
  536|    511|      VERBOSE(i = 0);
  ------------------
  |  | 1618|    511|#define VERBOSE(x) x
  ------------------
  537|  1.02k|      for(a = bs->running; a; a = a->next) {
  ------------------
  |  Branch (537:28): [True: 511, False: 511]
  ------------------
  538|    511|        CURL_TRC_CF(data, cf, "baller %d: result=%d", i, a->result);
  ------------------
  |  |  153|    511|  do {                                          \
  |  |  154|    511|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    511|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.02k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 511, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 511]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.02k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    511|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    511|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    511|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 511]
  |  |  ------------------
  ------------------
  539|    511|        if(a->result)
  ------------------
  |  Branch (539:12): [True: 511, False: 0]
  ------------------
  540|    511|          result = a->result;
  541|    511|      }
  542|    511|    }
  543|  8.04k|  }
  544|       |
  545|    511|out:
  546|    511|  if(!result) {
  ------------------
  |  Branch (546:6): [True: 0, False: 511]
  ------------------
  547|      0|    bool more_possible;
  548|       |
  549|       |    /* when do we need to be called again? */
  550|      0|    next_expire_ms = Curl_timeleft_ms(data);
  551|      0|    if(next_expire_ms < 0) {
  ------------------
  |  Branch (551:8): [True: 0, False: 0]
  ------------------
  552|      0|      failf(data, "Connection timeout after %" FMT_OFF_T " ms",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  553|      0|            curlx_ptimediff_ms(Curl_pgrs_now(data),
  554|      0|                               &data->progress.t_startsingle));
  555|      0|      return CURLE_OPERATION_TIMEDOUT;
  556|      0|    }
  557|       |
  558|      0|    more_possible = cf_ai_iter_has_more(&bs->addr_iter, data);
  559|      0|#ifdef USE_IPV6
  560|      0|    if(!more_possible)
  ------------------
  |  Branch (560:8): [True: 0, False: 0]
  ------------------
  561|      0|      more_possible = cf_ai_iter_has_more(&bs->ipv6_iter, data);
  562|      0|#endif
  563|      0|    if(more_possible) {
  ------------------
  |  Branch (563:8): [True: 0, False: 0]
  ------------------
  564|      0|      timediff_t expire_ms, elapsed_ms;
  565|      0|      elapsed_ms =
  566|      0|        curlx_ptimediff_ms(Curl_pgrs_now(data), &bs->last_attempt_started);
  567|      0|      expire_ms = CURLMAX(bs->attempt_delay_ms - elapsed_ms, 0);
  ------------------
  |  | 1286|      0|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1286:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  568|      0|      next_expire_ms = CURLMIN(next_expire_ms, expire_ms);
  ------------------
  |  | 1287|      0|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  569|      0|      if(next_expire_ms <= 0) {
  ------------------
  |  Branch (569:10): [True: 0, False: 0]
  ------------------
  570|      0|        CURL_TRC_CF(data, cf, "HAPPY_EYEBALLS timeout due, re-evaluate");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  571|      0|        goto evaluate;
  572|      0|      }
  573|      0|      CURL_TRC_CF(data, cf, "next HAPPY_EYEBALLS timeout in %" FMT_TIMEDIFF_T
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  574|      0|                  "ms", next_expire_ms);
  575|      0|      Curl_expire(data, next_expire_ms, EXPIRE_HAPPY_EYEBALLS);
  576|      0|    }
  577|      0|  }
  578|    511|  return result;
  579|    511|}
cf-ip-happy.c:cf_ip_attempt_connect:
  232|  7.53k|{
  233|  7.53k|  *connected = (bool)a->connected;
  234|  7.53k|  if(!a->result && !*connected) {
  ------------------
  |  Branch (234:6): [True: 7.53k, False: 0]
  |  Branch (234:20): [True: 7.53k, False: 0]
  ------------------
  235|       |    /* evaluate again */
  236|  7.53k|    a->result = Curl_conn_cf_connect(a->cf, data, connected);
  237|       |
  238|  7.53k|    if(!a->result) {
  ------------------
  |  Branch (238:8): [True: 7.02k, False: 511]
  ------------------
  239|  7.02k|      if(*connected) {
  ------------------
  |  Branch (239:10): [True: 7.02k, False: 0]
  ------------------
  240|  7.02k|        a->connected = TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
  241|  7.02k|      }
  242|  7.02k|    }
  243|    511|    else {
  244|    511|      if(a->result == CURLE_WEIRD_SERVER_REPLY)
  ------------------
  |  Branch (244:10): [True: 0, False: 511]
  ------------------
  245|      0|        a->inconclusive = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  246|    511|      if(a->cf)
  ------------------
  |  Branch (246:10): [True: 511, False: 0]
  ------------------
  247|    511|        Curl_conn_cf_discard_chain(&a->cf, data);
  248|    511|    }
  249|  7.53k|  }
  250|  7.53k|  return a->result;
  251|  7.53k|}
cf-ip-happy.c:cf_ai_iter_next:
  136|  16.0k|{
  137|  16.0k|  const struct Curl_addrinfo *addr;
  138|       |
  139|  16.0k|  if(!iter->cf)
  ------------------
  |  Branch (139:6): [True: 0, False: 16.0k]
  ------------------
  140|      0|    return NULL;
  141|       |
  142|  16.0k|  addr = Curl_conn_dns_get_ai(data, iter->cf->sockindex,
  143|  16.0k|                              iter->ai_family, iter->n);
  144|  16.0k|  if(addr)
  ------------------
  |  Branch (144:6): [True: 7.53k, False: 8.55k]
  ------------------
  145|  7.53k|    iter->n++;
  146|  16.0k|  return addr;
  147|  16.0k|}
cf-ip-happy.c:cf_ip_ballers_prune:
  349|  7.53k|{
  350|  7.53k|  struct cf_ip_attempt *a = NULL, **panchor;
  351|  7.53k|  uint32_t ongoing = 0;
  352|       |
  353|  7.53k|  for(a = bs->running; a; a = a->next) {
  ------------------
  |  Branch (353:24): [True: 0, False: 7.53k]
  ------------------
  354|      0|    if(!a->result && !a->connected)
  ------------------
  |  Branch (354:8): [True: 0, False: 0]
  |  Branch (354:22): [True: 0, False: 0]
  ------------------
  355|      0|      ++ongoing;
  356|      0|  }
  357|       |
  358|  7.53k|  panchor = &bs->running;
  359|  7.53k|  while(*panchor && (ongoing > max_concurrent)) {
  ------------------
  |  Branch (359:9): [True: 0, False: 7.53k]
  |  Branch (359:21): [True: 0, False: 0]
  ------------------
  360|      0|    a = *panchor;
  361|      0|    if(!a->result && !a->connected) {
  ------------------
  |  Branch (361:8): [True: 0, False: 0]
  |  Branch (361:22): [True: 0, False: 0]
  ------------------
  362|      0|      *panchor = a->next;
  363|      0|      a->next = NULL;
  364|      0|      cf_ip_attempt_free(a, data);
  365|      0|      --ongoing;
  366|      0|      CURL_TRC_CF(data, cf, "discarding oldest attempt to keep limit");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  367|      0|    }
  368|      0|    else {
  369|      0|      panchor = &a->next;
  370|      0|    }
  371|      0|  }
  372|  7.53k|}
cf-ip-happy.c:cf_ip_attempt_new:
  192|  7.53k|{
  193|  7.53k|  struct Curl_cfilter *wcf;
  194|  7.53k|  struct cf_ip_attempt *a;
  195|  7.53k|  CURLcode result = CURLE_OK;
  196|       |
  197|  7.53k|  *pa = NULL;
  198|  7.53k|  a = curlx_calloc(1, sizeof(*a));
  ------------------
  |  | 1480|  7.53k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  199|  7.53k|  if(!a)
  ------------------
  |  Branch (199:6): [True: 0, False: 7.53k]
  ------------------
  200|      0|    return CURLE_OUT_OF_MEMORY;
  201|       |
  202|  7.53k|  a->addr = *addr;
  203|  7.53k|  a->ai_family = ai_family;
  204|  7.53k|  a->transport_in = transport_in;
  205|  7.53k|  a->transport_out = transport_out;
  206|  7.53k|  a->result = CURLE_OK;
  207|  7.53k|  a->cf_create = cf_create;
  208|  7.53k|  *pa = a;
  209|       |
  210|  7.53k|  result = a->cf_create(&a->cf, data, cf->conn, &a->addr,
  211|  7.53k|                        a->transport_in, a->transport_out);
  212|  7.53k|  if(result)
  ------------------
  |  Branch (212:6): [True: 0, False: 7.53k]
  ------------------
  213|      0|    goto out;
  214|       |
  215|       |  /* the new filter might have sub-filters */
  216|  15.0k|  for(wcf = a->cf; wcf; wcf = wcf->next) {
  ------------------
  |  Branch (216:20): [True: 7.53k, False: 7.53k]
  ------------------
  217|  7.53k|    wcf->conn = cf->conn;
  218|  7.53k|    wcf->sockindex = cf->sockindex;
  219|  7.53k|  }
  220|       |
  221|  7.53k|out:
  222|  7.53k|  if(result) {
  ------------------
  |  Branch (222:6): [True: 0, False: 7.53k]
  ------------------
  223|      0|    cf_ip_attempt_free(a, data);
  224|       |    *pa = NULL;
  225|      0|  }
  226|  7.53k|  return result;
  227|  7.53k|}
cf-ip-happy.c:cf_ip_happy_close:
  896|    740|{
  897|    740|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  898|       |
  899|    740|  CURL_TRC_CF(data, cf, "close");
  ------------------
  |  |  153|    740|  do {                                          \
  |  |  154|    740|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    740|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.48k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 740, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 740]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.48k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    740|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    740|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    740|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 740]
  |  |  ------------------
  ------------------
  900|    740|  cf_ip_happy_ctx_clear(cf, data);
  901|    740|  cf->connected = FALSE;
  ------------------
  |  | 1058|    740|#define FALSE false
  ------------------
  902|    740|  ctx->state = SCFST_INIT;
  903|       |
  904|    740|  if(cf->next) {
  ------------------
  |  Branch (904:6): [True: 229, False: 511]
  ------------------
  905|    229|    cf->next->cft->do_close(cf->next, data);
  906|    229|    Curl_conn_cf_discard_chain(&cf->next, data);
  907|    229|  }
  908|    740|}
cf-ip-happy.c:cf_ip_happy_adjust_pollset:
  802|  4.13k|{
  803|  4.13k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  804|  4.13k|  CURLcode result = CURLE_OK;
  805|       |
  806|  4.13k|  if(!cf->connected) {
  ------------------
  |  Branch (806:6): [True: 0, False: 4.13k]
  ------------------
  807|      0|    result = cf_ip_ballers_pollset(&ctx->ballers, data, ps);
  808|      0|    CURL_TRC_CF(data, cf, "adjust_pollset -> %d, %u socks", result, ps->n);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  809|      0|  }
  810|  4.13k|  return result;
  811|  4.13k|}
cf-ip-happy.c:cf_ip_happy_query:
  924|  34.3k|{
  925|  34.3k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  926|       |
  927|  34.3k|  if(!cf->connected) {
  ------------------
  |  Branch (927:6): [True: 8.55k, False: 25.7k]
  ------------------
  928|  8.55k|    switch(query) {
  929|      0|    case CF_QUERY_CONNECT_REPLY_MS: {
  ------------------
  |  |  166|      0|#define CF_QUERY_CONNECT_REPLY_MS   2  /* number     -        */
  ------------------
  |  Branch (929:5): [True: 0, False: 8.55k]
  ------------------
  930|      0|      *pres1 = cf_ip_ballers_min_reply_ms(&ctx->ballers, data);
  931|      0|      CURL_TRC_CF(data, cf, "query connect reply: %dms", *pres1);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  932|      0|      return CURLE_OK;
  933|      0|    }
  934|    511|    case CF_QUERY_TIMER_CONNECT: {
  ------------------
  |  |  168|    511|#define CF_QUERY_TIMER_CONNECT      4  /* -          struct curltime */
  ------------------
  |  Branch (934:5): [True: 511, False: 8.04k]
  ------------------
  935|    511|      struct curltime *when = pres2;
  936|    511|      *when = cf_ip_ballers_max_time(&ctx->ballers, data,
  937|    511|                                     CF_QUERY_TIMER_CONNECT);
  ------------------
  |  |  168|    511|#define CF_QUERY_TIMER_CONNECT      4  /* -          struct curltime */
  ------------------
  938|    511|      return CURLE_OK;
  939|      0|    }
  940|    511|    case CF_QUERY_TIMER_APPCONNECT: {
  ------------------
  |  |  169|    511|#define CF_QUERY_TIMER_APPCONNECT   5  /* -          struct curltime */
  ------------------
  |  Branch (940:5): [True: 511, False: 8.04k]
  ------------------
  941|    511|      struct curltime *when = pres2;
  942|    511|      *when = cf_ip_ballers_max_time(&ctx->ballers, data,
  943|    511|                                     CF_QUERY_TIMER_APPCONNECT);
  ------------------
  |  |  169|    511|#define CF_QUERY_TIMER_APPCONNECT   5  /* -          struct curltime */
  ------------------
  944|    511|      return CURLE_OK;
  945|      0|    }
  946|  7.53k|    default:
  ------------------
  |  Branch (946:5): [True: 7.53k, False: 1.02k]
  ------------------
  947|  7.53k|      break;
  948|  8.55k|    }
  949|  8.55k|  }
  950|       |
  951|  33.3k|  return cf->next ?
  ------------------
  |  Branch (951:10): [True: 25.7k, False: 7.53k]
  ------------------
  952|  25.7k|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
  953|  33.3k|    CURLE_UNKNOWN_OPTION;
  954|  34.3k|}
cf-ip-happy.c:cf_ip_ballers_max_time:
  634|  1.02k|{
  635|  1.02k|  struct curltime t, tmax;
  636|  1.02k|  struct cf_ip_attempt *a;
  637|       |
  638|  1.02k|  memset(&tmax, 0, sizeof(tmax));
  639|  2.04k|  for(a = bs->running; a; a = a->next) {
  ------------------
  |  Branch (639:24): [True: 1.02k, False: 1.02k]
  ------------------
  640|  1.02k|    memset(&t, 0, sizeof(t));
  641|  1.02k|    if(a->cf && !a->cf->cft->query(a->cf, data, query, NULL, &t)) {
  ------------------
  |  Branch (641:8): [True: 0, False: 1.02k]
  |  Branch (641:17): [True: 0, False: 0]
  ------------------
  642|      0|      if((t.tv_sec || t.tv_usec) && curlx_ptimediff_us(&t, &tmax) > 0)
  ------------------
  |  Branch (642:11): [True: 0, False: 0]
  |  Branch (642:23): [True: 0, False: 0]
  |  Branch (642:37): [True: 0, False: 0]
  ------------------
  643|      0|        tmax = t;
  644|      0|    }
  645|  1.02k|  }
  646|  1.02k|  return tmax;
  647|  1.02k|}
cf-ip-happy.c:get_cf_create:
   93|  7.53k|{
   94|  7.53k|  size_t i;
   95|  7.53k|  for(i = 0; i < CURL_ARRAYSIZE(transport_providers); ++i) {
  ------------------
  |  | 1294|  7.53k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (95:14): [True: 7.53k, False: 0]
  ------------------
   96|  7.53k|    if((transport == transport_providers[i].transport) &&
  ------------------
  |  Branch (96:8): [True: 7.53k, False: 0]
  ------------------
   97|  7.53k|       (tunnel_proxy == transport_providers[i].tunnel_proxy))
  ------------------
  |  Branch (97:8): [True: 7.53k, False: 0]
  ------------------
   98|  7.53k|      return transport_providers[i].cf_create;
   99|  7.53k|  }
  100|      0|  return NULL;
  101|  7.53k|}
cf-ip-happy.c:cf_ip_happy_create:
 1003|  7.53k|{
 1004|  7.53k|  struct cf_ip_happy_ctx *ctx = NULL;
 1005|  7.53k|  CURLcode result;
 1006|       |
 1007|  7.53k|  (void)data;
 1008|  7.53k|  (void)conn;
 1009|  7.53k|  *pcf = NULL;
 1010|  7.53k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1480|  7.53k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1011|  7.53k|  if(!ctx) {
  ------------------
  |  Branch (1011:6): [True: 0, False: 7.53k]
  ------------------
 1012|      0|    result = CURLE_OUT_OF_MEMORY;
 1013|      0|    goto out;
 1014|      0|  }
 1015|  7.53k|  ctx->transport_in = transport_in;
 1016|  7.53k|  ctx->transport_out = transport_out;
 1017|  7.53k|  ctx->cf_create = cf_create;
 1018|  7.53k|  Curl_peer_link(&ctx->peer, peer);
 1019|       |
 1020|  7.53k|  result = Curl_cf_create(pcf, &Curl_cft_ip_happy, ctx);
 1021|       |
 1022|  7.53k|out:
 1023|  7.53k|  if(result) {
  ------------------
  |  Branch (1023:6): [True: 0, False: 7.53k]
  ------------------
 1024|       |    curlx_safefree(*pcf);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1025|      0|    cf_ip_happy_ctx_destroy(ctx);
 1026|      0|  }
 1027|  7.53k|  return result;
 1028|  7.53k|}

Curl_socket_addr_from_ai:
  276|  7.53k|{
  277|       |  /*
  278|       |   * The Curl_sockaddr_ex structure is libcurl's external API
  279|       |   * curl_sockaddr structure with enough space available to directly hold
  280|       |   * any protocol-specific address structures. The variable declared here
  281|       |   * will be used to pass / receive data to/from the fopensocket callback
  282|       |   * if this has been set, before that, it is initialized from parameters.
  283|       |   */
  284|  7.53k|  addr->family = ai->ai_family;
  285|  7.53k|  addr->socktype = Curl_socktype_for_transport(transport);
  286|  7.53k|  addr->protocol = Curl_protocol_for_transport(transport);
  287|  7.53k|  addr->addrlen = (unsigned int)ai->ai_addrlen;
  288|       |
  289|  7.53k|  DEBUGASSERT(addr->addrlen <= sizeof(addr->curl_sa_addrbuf));
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (289:3): [True: 0, False: 7.53k]
  |  Branch (289:3): [True: 7.53k, False: 0]
  ------------------
  290|  7.53k|  if(addr->addrlen > sizeof(addr->curl_sa_addrbuf))
  ------------------
  |  |   55|  7.53k|#define curl_sa_addrbuf addr.buf
  ------------------
  |  Branch (290:6): [True: 0, False: 7.53k]
  ------------------
  291|      0|    return CURLE_TOO_LARGE;
  292|       |
  293|  7.53k|  memcpy(&addr->curl_sa_addrbuf, ai->ai_addr, addr->addrlen);
  ------------------
  |  |   55|  7.53k|#define curl_sa_addrbuf addr.buf
  ------------------
  294|  7.53k|  return CURLE_OK;
  295|  7.53k|}
Curl_cf_tcp_create:
 1773|  7.53k|{
 1774|  7.53k|  struct cf_socket_ctx *ctx = NULL;
 1775|  7.53k|  struct Curl_cfilter *cf = NULL;
 1776|  7.53k|  CURLcode result;
 1777|       |
 1778|  7.53k|  (void)data;
 1779|  7.53k|  (void)conn;
 1780|  7.53k|  (void)transport_in;
 1781|  7.53k|  DEBUGASSERT(transport_out == TRNSPRT_TCP);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1781:3): [True: 0, False: 7.53k]
  |  Branch (1781:3): [True: 7.53k, False: 0]
  ------------------
 1782|  7.53k|  if(!addr) {
  ------------------
  |  Branch (1782:6): [True: 0, False: 7.53k]
  ------------------
 1783|      0|    result = CURLE_BAD_FUNCTION_ARGUMENT;
 1784|      0|    goto out;
 1785|      0|  }
 1786|       |
 1787|  7.53k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1480|  7.53k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1788|  7.53k|  if(!ctx) {
  ------------------
  |  Branch (1788:6): [True: 0, False: 7.53k]
  ------------------
 1789|      0|    result = CURLE_OUT_OF_MEMORY;
 1790|      0|    goto out;
 1791|      0|  }
 1792|       |
 1793|  7.53k|  result = cf_socket_ctx_init(ctx, addr, transport_out);
 1794|  7.53k|  if(result)
  ------------------
  |  Branch (1794:6): [True: 0, False: 7.53k]
  ------------------
 1795|      0|    goto out;
 1796|       |
 1797|  7.53k|  result = Curl_cf_create(&cf, &Curl_cft_tcp, ctx);
 1798|       |
 1799|  7.53k|out:
 1800|  7.53k|  *pcf = (!result) ? cf : NULL;
  ------------------
  |  Branch (1800:10): [True: 7.53k, False: 0]
  ------------------
 1801|  7.53k|  if(result) {
  ------------------
  |  Branch (1801:6): [True: 0, False: 7.53k]
  ------------------
 1802|      0|    curlx_safefree(cf);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1803|      0|    curlx_safefree(ctx);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1804|      0|  }
 1805|       |
 1806|  7.53k|  return result;
 1807|  7.53k|}
cf-socket.c:socket_open:
  352|  7.53k|{
  353|  7.53k|  char errbuf[STRERROR_LEN];
  354|       |
  355|  7.53k|#ifdef SOCK_CLOEXEC
  356|  7.53k|  addr->socktype |= SOCK_CLOEXEC;
  357|  7.53k|#endif
  358|       |
  359|  7.53k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (359:3): [True: 0, False: 7.53k]
  |  Branch (359:3): [True: 7.53k, False: 0]
  ------------------
  360|  7.53k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (360:3): [True: 0, False: 7.53k]
  |  Branch (360:3): [True: 7.53k, False: 0]
  ------------------
  361|  7.53k|  if(data->set.fopensocket) {
  ------------------
  |  Branch (361:6): [True: 7.53k, False: 0]
  ------------------
  362|       |    /*
  363|       |     * If the opensocket callback is set, all the destination address
  364|       |     * information is passed to the callback. Depending on this information the
  365|       |     * callback may opt to abort the connection, this is indicated returning
  366|       |     * CURL_SOCKET_BAD; otherwise it will return a not-connected socket. When
  367|       |     * the callback returns a valid socket the destination address information
  368|       |     * might have been changed and this 'new' address will actually be used
  369|       |     * here to connect.
  370|       |     */
  371|  7.53k|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|  7.53k|#define TRUE true
  ------------------
  372|  7.53k|    *sockfd = data->set.fopensocket(data->set.opensocket_client,
  373|  7.53k|                                    CURLSOCKTYPE_IPCXN,
  374|  7.53k|                                    (struct curl_sockaddr *)addr);
  375|  7.53k|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  376|  7.53k|  }
  377|      0|  else {
  378|       |    /* opensocket callback not set, so create the socket now */
  379|      0|#ifdef DEBUGBUILD
  380|      0|    if((addr->family == AF_INET6) && getenv("CURL_DBG_SOCK_FAIL_IPV6")) {
  ------------------
  |  Branch (380:8): [True: 0, False: 0]
  |  Branch (380:38): [True: 0, False: 0]
  ------------------
  381|      0|      failf(data, "CURL_DBG_SOCK_FAIL_IPV6: failed to open socket");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  382|      0|      return CURLE_COULDNT_CONNECT;
  383|      0|    }
  384|      0|#endif
  385|      0|    *sockfd = CURL_SOCKET(addr->family, addr->socktype, addr->protocol);
  ------------------
  |  | 1436|      0|  curl_dbg_socket((int)(domain), type, protocol, __LINE__, __FILE__)
  ------------------
  386|      0|    if((*sockfd == CURL_SOCKET_BAD) && (SOCKERRNO == SOCKENOMEM))
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
                  if((*sockfd == CURL_SOCKET_BAD) && (SOCKERRNO == SOCKENOMEM))
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
                  if((*sockfd == CURL_SOCKET_BAD) && (SOCKERRNO == SOCKENOMEM))
  ------------------
  |  | 1133|      0|#define SOCKENOMEM        ENOMEM
  ------------------
  |  Branch (386:8): [True: 0, False: 0]
  |  Branch (386:40): [True: 0, False: 0]
  ------------------
  387|      0|      return CURLE_OUT_OF_MEMORY;
  388|      0|  }
  389|       |
  390|  7.53k|  if(*sockfd == CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  7.53k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (390:6): [True: 511, False: 7.02k]
  ------------------
  391|       |    /* no socket, no connection */
  392|    511|    failf(data, "failed to open socket: %s",
  ------------------
  |  |   62|    511|#define failf Curl_failf
  ------------------
  393|    511|          curlx_strerror(SOCKERRNO, errbuf, sizeof(errbuf)));
  ------------------
  |  | 1095|    511|#define SOCKERRNO         errno
  ------------------
  394|    511|    return CURLE_COULDNT_CONNECT;
  395|    511|  }
  396|       |
  397|       |#ifdef USE_SO_NOSIGPIPE
  398|       |  if(Curl_sock_nosigpipe(*sockfd) < 0) {
  399|       |    failf(data, "setsockopt enable SO_NOSIGPIPE: %s",
  400|       |          curlx_strerror(SOCKERRNO, errbuf, sizeof(errbuf)));
  401|       |    sclose(*sockfd);
  402|       |    *sockfd = CURL_SOCKET_BAD;
  403|       |    return CURLE_COULDNT_CONNECT;
  404|       |  }
  405|       |#endif /* USE_SO_NOSIGPIPE */
  406|       |
  407|       |#if defined(HAVE_FCNTL) && !defined(SOCK_CLOEXEC)
  408|       |  if(fcntl(*sockfd, F_SETFD, FD_CLOEXEC) < 0) {
  409|       |    failf(data, "fcntl set CLOEXEC: %s",
  410|       |          curlx_strerror(SOCKERRNO, errbuf, sizeof(errbuf)));
  411|       |    sclose(*sockfd);
  412|       |    *sockfd = CURL_SOCKET_BAD;
  413|       |    return CURLE_COULDNT_CONNECT;
  414|       |  }
  415|       |#endif
  416|       |
  417|  7.02k|#if defined(USE_IPV6) && defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID)
  418|  7.02k|  if(addr->family == AF_INET6) {
  ------------------
  |  Branch (418:6): [True: 0, False: 7.02k]
  ------------------
  419|      0|    struct sockaddr_in6 * const sa6 = (void *)&addr->curl_sa_addr;
  ------------------
  |  |   54|      0|#define curl_sa_addr    addr.sa
  ------------------
  420|      0|    sa6->sin6_scope_id = get_scope_id(data, sa6);
  421|      0|  }
  422|  7.02k|#endif
  423|  7.02k|  return CURLE_OK;
  424|  7.53k|}
cf-socket.c:socket_close:
  457|  7.02k|{
  458|  7.02k|  if(sock == CURL_SOCKET_BAD)
  ------------------
  |  |  145|  7.02k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (458:6): [True: 0, False: 7.02k]
  ------------------
  459|      0|    return 0;
  460|       |
  461|  7.02k|  if(use_callback && conn && conn->fclosesocket) {
  ------------------
  |  Branch (461:6): [True: 7.02k, False: 0]
  |  Branch (461:22): [True: 7.02k, False: 0]
  |  Branch (461:30): [True: 0, False: 7.02k]
  ------------------
  462|      0|    int rc;
  463|      0|    Curl_multi_will_close(data, sock);
  464|      0|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  465|      0|    rc = conn->fclosesocket(conn->closesocket_client, sock);
  466|      0|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  467|      0|    return rc;
  468|      0|  }
  469|       |
  470|  7.02k|  if(conn)
  ------------------
  |  Branch (470:6): [True: 7.02k, False: 0]
  ------------------
  471|       |    /* tell the multi-socket code about this */
  472|  7.02k|    Curl_multi_will_close(data, sock);
  473|       |
  474|  7.02k|  sclose(sock);
  ------------------
  |  | 1428|  7.02k|#define sclose(sockfd) curl_dbg_sclose(sockfd, __LINE__, __FILE__)
  ------------------
  475|       |
  476|  7.02k|  return 0;
  477|  7.02k|}
cf-socket.c:cf_socket_destroy:
 1016|  7.53k|{
 1017|  7.53k|  struct cf_socket_ctx *ctx = cf->ctx;
 1018|       |
 1019|  7.53k|  cf_socket_close(cf, data);
 1020|  7.53k|  CURL_TRC_CF(data, cf, "destroy");
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
 1021|  7.53k|  curlx_free(ctx);
  ------------------
  |  | 1483|  7.53k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1022|       |  cf->ctx = NULL;
 1023|  7.53k|}
cf-socket.c:cf_tcp_connect:
 1304|  7.53k|{
 1305|  7.53k|  struct cf_socket_ctx *ctx = cf->ctx;
 1306|  7.53k|  CURLcode result = CURLE_COULDNT_CONNECT;
 1307|  7.53k|  int rc = 0;
 1308|       |
 1309|  7.53k|  if(cf->connected) {
  ------------------
  |  Branch (1309:6): [True: 0, False: 7.53k]
  ------------------
 1310|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1311|      0|    return CURLE_OK;
 1312|      0|  }
 1313|       |
 1314|  7.53k|  *done = FALSE; /* a negative world view is best */
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
 1315|  7.53k|  if(ctx->sock == CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  7.53k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1315:6): [True: 7.53k, False: 0]
  ------------------
 1316|  7.53k|    int error;
 1317|       |
 1318|  7.53k|    result = cf_socket_open(cf, data);
 1319|  7.53k|    if(result)
  ------------------
  |  Branch (1319:8): [True: 511, False: 7.02k]
  ------------------
 1320|    511|      goto out;
 1321|       |
 1322|  7.02k|    if(cf->connected) {
  ------------------
  |  Branch (1322:8): [True: 7.02k, False: 0]
  ------------------
 1323|  7.02k|      *done = TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
 1324|  7.02k|      return CURLE_OK;
 1325|  7.02k|    }
 1326|       |
 1327|       |    /* Connect TCP socket */
 1328|      0|    rc = do_connect(cf, data, (bool)cf->conn->bits.tcp_fastopen);
 1329|      0|    error = SOCKERRNO;
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
 1330|      0|    set_local_ip(cf, data);
 1331|      0|    CURL_TRC_CF(data, cf, "local address %s port %d...",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1332|      0|                ctx->ip.local_ip, ctx->ip.local_port);
 1333|      0|    if(rc == -1) {
  ------------------
  |  Branch (1333:8): [True: 0, False: 0]
  ------------------
 1334|      0|      result = socket_connect_result(data, ctx->ip.remote_ip, error);
 1335|      0|      goto out;
 1336|      0|    }
 1337|      0|  }
 1338|       |
 1339|       |#ifdef mpeix
 1340|       |  /* Call this function once now, and ignore the results. We do this to
 1341|       |     "clear" the error state on the socket so that we can later read it
 1342|       |     reliably. This is reported necessary on the MPE/iX operating
 1343|       |     system. */
 1344|       |  (void)verifyconnect(ctx->sock, NULL);
 1345|       |#endif
 1346|       |  /* check socket for connect */
 1347|      0|  rc = SOCKET_WRITABLE(ctx->sock, 0);
  ------------------
  |  |   79|      0|  Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
  |  |  ------------------
  |  |  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  |  |  ------------------
  |  |                 Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
  |  |  ------------------
  |  |  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  |  |  ------------------
  ------------------
 1348|       |
 1349|      0|  if(rc == 0) { /* no connection yet */
  ------------------
  |  Branch (1349:6): [True: 0, False: 0]
  ------------------
 1350|      0|    CURL_TRC_CF(data, cf, "not connected yet on fd=%" FMT_SOCKET_T, ctx->sock);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1351|      0|    return CURLE_OK;
 1352|      0|  }
 1353|      0|  else if(rc == CURL_CSELECT_OUT || cf->conn->bits.tcp_fastopen) {
  ------------------
  |  |  291|      0|#define CURL_CSELECT_OUT  0x02
  ------------------
  |  Branch (1353:11): [True: 0, False: 0]
  |  Branch (1353:37): [True: 0, False: 0]
  ------------------
 1354|      0|    if(verifyconnect(ctx->sock, &ctx->error)) {
  ------------------
  |  Branch (1354:8): [True: 0, False: 0]
  ------------------
 1355|       |      /* we are connected with TCP, awesome! */
 1356|      0|      ctx->connected_at = *Curl_pgrs_now(data);
 1357|      0|      set_local_ip(cf, data);
 1358|      0|      *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1359|      0|      cf->connected = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1360|      0|      CURL_TRC_CF(data, cf, "connected on fd=%" FMT_SOCKET_T, ctx->sock);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1361|      0|      return CURLE_OK;
 1362|      0|    }
 1363|      0|  }
 1364|      0|  else if(rc & CURL_CSELECT_ERR) {
  ------------------
  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  ------------------
  |  Branch (1364:11): [True: 0, False: 0]
  ------------------
 1365|      0|    CURL_TRC_CF(data, cf, "poll/select error on fd=%" FMT_SOCKET_T, ctx->sock);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1366|      0|    (void)verifyconnect(ctx->sock, &ctx->error);
 1367|      0|    result = CURLE_COULDNT_CONNECT;
 1368|      0|  }
 1369|       |
 1370|    511|out:
 1371|    511|  if(result) {
  ------------------
  |  Branch (1371:6): [True: 511, False: 0]
  ------------------
 1372|    511|    VERBOSE(char buffer[STRERROR_LEN]);
  ------------------
  |  | 1618|    511|#define VERBOSE(x) x
  ------------------
 1373|    511|    set_local_ip(cf, data);
 1374|    511|    if(ctx->error) {
  ------------------
  |  Branch (1374:8): [True: 0, False: 511]
  ------------------
 1375|      0|      data->state.os_errno = ctx->error;
 1376|      0|      SET_SOCKERRNO(ctx->error);
  ------------------
  |  | 1096|      0|#define SET_SOCKERRNO(x)  (errno = (x))
  ------------------
 1377|      0|      VERBOSE(curlx_strerror(ctx->error, buffer, sizeof(buffer)));
  ------------------
  |  | 1618|      0|#define VERBOSE(x) x
  ------------------
 1378|      0|    }
 1379|    511|    else {
 1380|    511|      VERBOSE(curlx_strcopy(buffer, sizeof(buffer), STRCONST("peer closed")));
  ------------------
  |  | 1618|    511|#define VERBOSE(x) x
  ------------------
 1381|    511|    }
 1382|    511|    if(ctx->sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|    511|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1382:8): [True: 0, False: 511]
  ------------------
 1383|      0|      socket_close(data, cf->conn, TRUE, ctx->sock);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1384|      0|      ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
 1385|      0|    }
 1386|    511|    infof(data, "connect to %s port %u from %s port %d failed: %s",
  ------------------
  |  |  143|    511|  do {                               \
  |  |  144|    511|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    511|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 511, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 511]
  |  |  |  |  ------------------
  |  |  |  |  320|    511|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    511|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    511|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 511]
  |  |  ------------------
  ------------------
 1387|    511|          ctx->ip.remote_ip, ctx->ip.remote_port,
 1388|    511|          ctx->ip.local_ip, ctx->ip.local_port,
 1389|    511|          curlx_strerror(ctx->error, buffer, sizeof(buffer)));
 1390|       |    *done = FALSE;
  ------------------
  |  | 1058|    511|#define FALSE false
  ------------------
 1391|    511|  }
 1392|    511|  return result;
 1393|      0|}
cf-socket.c:cf_socket_open:
 1093|  7.53k|{
 1094|  7.53k|  struct cf_socket_ctx *ctx = cf->ctx;
 1095|  7.53k|  int error = 0;
 1096|  7.53k|  bool isconnected = FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
 1097|  7.53k|  CURLcode result = CURLE_COULDNT_CONNECT;
 1098|  7.53k|  bool is_tcp;
 1099|       |
 1100|  7.53k|  DEBUGASSERT(ctx->sock == CURL_SOCKET_BAD);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1100:3): [True: 0, False: 7.53k]
  |  Branch (1100:3): [True: 7.53k, False: 0]
  ------------------
 1101|  7.53k|  ctx->started_at = *Curl_pgrs_now(data);
 1102|  7.53k|#ifdef SOCK_NONBLOCK
 1103|       |  /* Do not tuck SOCK_NONBLOCK into socktype when opensocket callback is set
 1104|       |   * because we would not know how socketype is about to be used in the
 1105|       |   * callback, SOCK_NONBLOCK might get factored out before calling socket().
 1106|       |   */
 1107|  7.53k|  if(!data->set.fopensocket)
  ------------------
  |  Branch (1107:6): [True: 0, False: 7.53k]
  ------------------
 1108|      0|    ctx->addr.socktype |= SOCK_NONBLOCK;
 1109|  7.53k|#endif
 1110|  7.53k|  result = socket_open(data, &ctx->addr, &ctx->sock);
 1111|  7.53k|#ifdef SOCK_NONBLOCK
 1112|       |  /* Restore the socktype after the socket is created. */
 1113|  7.53k|  if(!data->set.fopensocket)
  ------------------
  |  Branch (1113:6): [True: 0, False: 7.53k]
  ------------------
 1114|      0|    ctx->addr.socktype &= ~SOCK_NONBLOCK;
 1115|  7.53k|#endif
 1116|  7.53k|  if(result)
  ------------------
  |  Branch (1116:6): [True: 511, False: 7.02k]
  ------------------
 1117|    511|    goto out;
 1118|       |
 1119|  7.02k|  result = set_remote_ip(cf, data);
 1120|  7.02k|  if(result)
  ------------------
  |  Branch (1120:6): [True: 0, False: 7.02k]
  ------------------
 1121|      0|    goto out;
 1122|       |
 1123|  7.02k|#ifdef USE_IPV6
 1124|  7.02k|  if(ctx->addr.family == AF_INET6) {
  ------------------
  |  Branch (1124:6): [True: 0, False: 7.02k]
  ------------------
 1125|       |#ifdef USE_WINSOCK
 1126|       |    /* Turn on support for IPv4-mapped IPv6 addresses.
 1127|       |     * Linux kernel, NetBSD, FreeBSD, Darwin, lwIP: default is off;
 1128|       |     * Windows Vista and later: default is on;
 1129|       |     * DragonFly BSD: acts like off, and dummy setting;
 1130|       |     * OpenBSD and earlier Windows: unsupported.
 1131|       |     * Linux: controlled by /proc/sys/net/ipv6/bindv6only.
 1132|       |     */
 1133|       |    int on = 0;
 1134|       |    (void)setsockopt(ctx->sock, IPPROTO_IPV6, IPV6_V6ONLY,
 1135|       |                     (void *)&on, sizeof(on));
 1136|       |#endif
 1137|      0|#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
 1138|      0|    {
 1139|      0|      struct sockaddr_in6 *sa6 = (void *)&ctx->addr.curl_sa_addr;
  ------------------
  |  |   54|      0|#define curl_sa_addr    addr.sa
  ------------------
 1140|      0|      if(sa6->sin6_scope_id)
  ------------------
  |  Branch (1140:10): [True: 0, False: 0]
  ------------------
 1141|      0|        infof(data, "  Trying [%s]:%d scope_id=%lu...",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1142|      0|              ctx->ip.remote_ip, ctx->ip.remote_port,
 1143|      0|              (unsigned long)sa6->sin6_scope_id);
 1144|      0|      else
 1145|      0|#endif
 1146|      0|        infof(data, "  Trying [%s]:%d...",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1147|      0|              ctx->ip.remote_ip, ctx->ip.remote_port);
 1148|      0|#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
 1149|      0|    }
 1150|      0|#endif
 1151|      0|  }
 1152|  7.02k|  else
 1153|  7.02k|#endif
 1154|  7.02k|    infof(data, "  Trying %s:%d...", ctx->ip.remote_ip, ctx->ip.remote_port);
  ------------------
  |  |  143|  7.02k|  do {                               \
  |  |  144|  7.02k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  7.02k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 7.02k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.02k]
  |  |  |  |  ------------------
  |  |  |  |  320|  7.02k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  7.02k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  7.02k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 7.02k]
  |  |  ------------------
  ------------------
 1155|       |
 1156|  7.02k|#ifdef USE_IPV6
 1157|  7.02k|  is_tcp = (ctx->addr.family == AF_INET ||
  ------------------
  |  Branch (1157:13): [True: 7.02k, False: 0]
  ------------------
 1158|      0|            ctx->addr.family == AF_INET6) &&
  ------------------
  |  Branch (1158:13): [True: 0, False: 0]
  ------------------
 1159|  7.02k|    cf_socktype(ctx->addr.socktype) == SOCK_STREAM;
  ------------------
  |  Branch (1159:5): [True: 7.02k, False: 0]
  ------------------
 1160|       |#else
 1161|       |  is_tcp = (ctx->addr.family == AF_INET) &&
 1162|       |    cf_socktype(ctx->addr.socktype) == SOCK_STREAM;
 1163|       |#endif
 1164|  7.02k|  if(is_tcp && data->set.tcp_nodelay)
  ------------------
  |  Branch (1164:6): [True: 7.02k, False: 0]
  |  Branch (1164:16): [True: 7.02k, False: 0]
  ------------------
 1165|  7.02k|    tcpnodelay(cf, data, ctx->sock);
 1166|       |
 1167|  7.02k|  if(is_tcp && data->set.tcp_keepalive)
  ------------------
  |  Branch (1167:6): [True: 7.02k, False: 0]
  |  Branch (1167:16): [True: 0, False: 7.02k]
  ------------------
 1168|      0|    tcpkeepalive(cf, data, ctx->sock);
 1169|       |
 1170|  7.02k|  if(data->set.fsockopt) {
  ------------------
  |  Branch (1170:6): [True: 7.02k, False: 0]
  ------------------
 1171|       |    /* activate callback for setting socket options */
 1172|  7.02k|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
 1173|  7.02k|    error = data->set.fsockopt(data->set.sockopt_client,
 1174|  7.02k|                               ctx->sock,
 1175|  7.02k|                               CURLSOCKTYPE_IPCXN);
 1176|  7.02k|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|  7.02k|#define FALSE false
  ------------------
 1177|       |
 1178|  7.02k|    if(error == CURL_SOCKOPT_ALREADY_CONNECTED)
  ------------------
  |  |  421|  7.02k|#define CURL_SOCKOPT_ALREADY_CONNECTED 2
  ------------------
  |  Branch (1178:8): [True: 7.02k, False: 0]
  ------------------
 1179|  7.02k|      isconnected = TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
 1180|      0|    else if(error) {
  ------------------
  |  Branch (1180:13): [True: 0, False: 0]
  ------------------
 1181|      0|      result = CURLE_ABORTED_BY_CALLBACK;
 1182|      0|      goto out;
 1183|      0|    }
 1184|  7.02k|  }
 1185|       |
 1186|  7.02k|#ifndef CURL_DISABLE_BINDLOCAL
 1187|       |  /* possibly bind the local end to an IP, interface or port */
 1188|  7.02k|  if(ctx->addr.family == AF_INET
  ------------------
  |  Branch (1188:6): [True: 7.02k, False: 0]
  ------------------
 1189|      0|#ifdef USE_IPV6
 1190|      0|     || ctx->addr.family == AF_INET6
  ------------------
  |  Branch (1190:9): [True: 0, False: 0]
  ------------------
 1191|  7.02k|#endif
 1192|  7.02k|    ) {
 1193|  7.02k|    result = bindlocal(data, cf->conn, ctx->sock, ctx->addr.family,
 1194|  7.02k|                       Curl_ipv6_scope(&ctx->addr.curl_sa_addr),
  ------------------
  |  |   54|  7.02k|#define curl_sa_addr    addr.sa
  ------------------
 1195|  7.02k|                       ctx->transport);
 1196|  7.02k|    if(result) {
  ------------------
  |  Branch (1196:8): [True: 0, False: 7.02k]
  ------------------
 1197|      0|      if(result == CURLE_UNSUPPORTED_PROTOCOL) {
  ------------------
  |  Branch (1197:10): [True: 0, False: 0]
  ------------------
 1198|       |        /* The address family is not supported on this interface.
 1199|       |           We can continue trying addresses */
 1200|      0|        result = CURLE_COULDNT_CONNECT;
 1201|      0|      }
 1202|      0|      goto out;
 1203|      0|    }
 1204|  7.02k|  }
 1205|  7.02k|#endif
 1206|       |
 1207|       |#ifndef SOCK_NONBLOCK
 1208|       |  /* Set socket non-blocking, must be a non-blocking socket for
 1209|       |   * a non-blocking connect. */
 1210|       |  error = curlx_nonblock(ctx->sock, TRUE);
 1211|       |  if(error < 0) {
 1212|       |    result = CURLE_UNSUPPORTED_PROTOCOL;
 1213|       |    ctx->error = SOCKERRNO;
 1214|       |    goto out;
 1215|       |  }
 1216|       |#else
 1217|  7.02k|  if(data->set.fopensocket) {
  ------------------
  |  Branch (1217:6): [True: 7.02k, False: 0]
  ------------------
 1218|       |    /* Set socket non-blocking, must be a non-blocking socket for
 1219|       |     * a non-blocking connect. */
 1220|  7.02k|    error = curlx_nonblock(ctx->sock, TRUE);
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
 1221|  7.02k|    if(error < 0) {
  ------------------
  |  Branch (1221:8): [True: 0, False: 7.02k]
  ------------------
 1222|      0|      result = CURLE_UNSUPPORTED_PROTOCOL;
 1223|      0|      ctx->error = SOCKERRNO;
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
 1224|      0|      goto out;
 1225|      0|    }
 1226|  7.02k|  }
 1227|  7.02k|#endif
 1228|  7.02k|  ctx->sock_connected = (cf_socktype(ctx->addr.socktype) != SOCK_DGRAM);
 1229|  7.53k|out:
 1230|  7.53k|  if(result) {
  ------------------
  |  Branch (1230:6): [True: 511, False: 7.02k]
  ------------------
 1231|    511|    if(ctx->sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|    511|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1231:8): [True: 0, False: 511]
  ------------------
 1232|      0|      socket_close(data, cf->conn, TRUE, ctx->sock);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1233|      0|      ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
 1234|      0|    }
 1235|    511|  }
 1236|  7.02k|  else if(isconnected) {
  ------------------
  |  Branch (1236:11): [True: 7.02k, False: 0]
  ------------------
 1237|  7.02k|    set_local_ip(cf, data);
 1238|  7.02k|    ctx->connected_at = *Curl_pgrs_now(data);
 1239|  7.02k|    cf->connected = TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
 1240|  7.02k|  }
 1241|  7.53k|  CURL_TRC_CF(data, cf, "cf_socket_open() -> %d, fd=%" FMT_SOCKET_T,
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
 1242|  7.53k|              result, ctx->sock);
 1243|  7.53k|  return result;
 1244|  7.02k|}
cf-socket.c:set_remote_ip:
 1059|  7.02k|{
 1060|  7.02k|  struct cf_socket_ctx *ctx = cf->ctx;
 1061|       |
 1062|       |  /* store remote address and port used in this connection attempt */
 1063|  7.02k|  ctx->ip.transport = ctx->transport;
 1064|  7.02k|  if(!Curl_addr2string(&ctx->addr.curl_sa_addr,
  ------------------
  |  |   54|  7.02k|#define curl_sa_addr    addr.sa
  ------------------
  |  Branch (1064:6): [True: 0, False: 7.02k]
  ------------------
 1065|  7.02k|                       (curl_socklen_t)ctx->addr.addrlen,
 1066|  7.02k|                       ctx->ip.remote_ip, &ctx->ip.remote_port)) {
 1067|      0|    char buffer[STRERROR_LEN];
 1068|       |
 1069|      0|    ctx->error = errno;
 1070|       |    /* malformed address or bug in inet_ntop, try next address */
 1071|      0|    failf(data, "curl_sa_addr inet_ntop() failed with errno %d: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1072|      0|          errno, curlx_strerror(errno, buffer, sizeof(buffer)));
 1073|      0|    return CURLE_FAILED_INIT;
 1074|      0|  }
 1075|  7.02k|  return CURLE_OK;
 1076|  7.02k|}
cf-socket.c:cf_socktype:
 1081|  14.0k|{
 1082|  14.0k|#ifdef SOCK_CLOEXEC
 1083|  14.0k|  x &= ~SOCK_CLOEXEC;
 1084|  14.0k|#endif
 1085|  14.0k|#ifdef SOCK_NONBLOCK
 1086|       |  x &= ~SOCK_NONBLOCK;
 1087|  14.0k|#endif
 1088|  14.0k|  return x;
 1089|  14.0k|}
cf-socket.c:tcpnodelay:
   84|  7.02k|{
   85|  7.02k|#if defined(TCP_NODELAY) && defined(CURL_TCP_NODELAY_SUPPORTED)
   86|  7.02k|  curl_socklen_t onoff = (curl_socklen_t)1;
   87|  7.02k|  int level = IPPROTO_TCP;
   88|  7.02k|  VERBOSE(char buffer[STRERROR_LEN]);
  ------------------
  |  | 1618|  7.02k|#define VERBOSE(x) x
  ------------------
   89|       |
   90|  7.02k|  if(setsockopt(sockfd, level, TCP_NODELAY, (void *)&onoff, sizeof(onoff)) < 0)
  ------------------
  |  Branch (90:6): [True: 7.02k, False: 0]
  ------------------
   91|  7.02k|    CURL_TRC_CF(data, cf, "Could not set TCP_NODELAY: %s",
  ------------------
  |  |  153|  7.02k|  do {                                          \
  |  |  154|  7.02k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.02k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  14.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.02k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.02k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  14.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.02k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.02k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.02k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.02k]
  |  |  ------------------
  ------------------
   92|  7.02k|                curlx_strerror(SOCKERRNO, buffer, sizeof(buffer)));
   93|       |#else
   94|       |  (void)cf;
   95|       |  (void)data;
   96|       |  (void)sockfd;
   97|       |#endif
   98|  7.02k|}
cf-socket.c:bindlocal:
  574|  7.02k|{
  575|  7.02k|  struct Curl_sockaddr_storage sa;
  576|  7.02k|  struct sockaddr *sock = (struct sockaddr *)&sa;  /* bind to this address */
  577|  7.02k|  curl_socklen_t sizeof_sa = 0; /* size of the data sock points to */
  578|  7.02k|  struct sockaddr_in *si4 = (struct sockaddr_in *)&sa;
  579|  7.02k|#ifdef USE_IPV6
  580|  7.02k|  struct sockaddr_in6 *si6 = (struct sockaddr_in6 *)&sa;
  581|  7.02k|#endif
  582|       |
  583|  7.02k|  struct Curl_dns_entry *h = NULL;
  584|  7.02k|  unsigned short port = data->set.localport; /* use this port number, 0 for
  585|       |                                                "random" */
  586|       |  /* how many port numbers to try to bind to, increasing one at a time */
  587|  7.02k|  int portnum = data->set.localportrange;
  588|  7.02k|  const char *dev = data->set.str[STRING_DEVICE];
  589|  7.02k|  const char *iface_input = data->set.str[STRING_INTERFACE];
  590|  7.02k|  const char *host_input = data->set.str[STRING_BINDHOST];
  591|  7.02k|  const char *iface = iface_input ? iface_input : dev;
  ------------------
  |  Branch (591:23): [True: 0, False: 7.02k]
  ------------------
  592|  7.02k|  const char *host = host_input ? host_input : dev;
  ------------------
  |  Branch (592:22): [True: 0, False: 7.02k]
  ------------------
  593|  7.02k|  int error;
  594|  7.02k|#ifdef IP_BIND_ADDRESS_NO_PORT
  595|  7.02k|  int on = 1;
  596|  7.02k|#endif
  597|       |#ifndef USE_IPV6
  598|       |  (void)scope;
  599|       |#endif
  600|       |
  601|       |  /*************************************************************
  602|       |   * Select device to bind socket to
  603|       |   *************************************************************/
  604|  7.02k|  if(!iface && !host && !port)
  ------------------
  |  Branch (604:6): [True: 7.02k, False: 0]
  |  Branch (604:16): [True: 7.02k, False: 0]
  |  Branch (604:25): [True: 7.02k, False: 0]
  ------------------
  605|       |    /* no local kind of binding was requested */
  606|  7.02k|    return CURLE_OK;
  607|      0|  else if(iface && (strlen(iface) >= 255))
  ------------------
  |  Branch (607:11): [True: 0, False: 0]
  |  Branch (607:20): [True: 0, False: 0]
  ------------------
  608|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  609|       |
  610|      0|  memset(&sa, 0, sizeof(struct Curl_sockaddr_storage));
  611|       |
  612|      0|  if(iface || host) {
  ------------------
  |  Branch (612:6): [True: 0, False: 0]
  |  Branch (612:15): [True: 0, False: 0]
  ------------------
  613|      0|    char myhost[256] = "";
  614|      0|    int done = 0; /* -1 for error, 1 for address found */
  615|      0|    if2ip_result_t if2ip_result = IF2IP_NOT_FOUND;
  616|       |
  617|      0|#ifdef SO_BINDTODEVICE
  618|      0|    if(iface) {
  ------------------
  |  Branch (618:8): [True: 0, False: 0]
  ------------------
  619|       |      /*
  620|       |       * This binds the local socket to a particular interface. This will
  621|       |       * force even requests to other local interfaces to go out the external
  622|       |       * interface. Only bind to the interface when specified as interface,
  623|       |       * not as a hostname or ip address.
  624|       |       *
  625|       |       * The interface might be a VRF, eg: vrf-blue, which means it cannot be
  626|       |       * converted to an IP address and would fail Curl_if2ip. Try to
  627|       |       * use it straight away.
  628|       |       */
  629|      0|      if(setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE,
  ------------------
  |  Branch (629:10): [True: 0, False: 0]
  ------------------
  630|      0|                    iface, (curl_socklen_t)strlen(iface) + 1) == 0) {
  631|       |        /* This is often "errno 1, error: Operation not permitted" if you are
  632|       |         * not running as root or another suitable privileged user. If it
  633|       |         * succeeds it means the parameter was a valid interface and not an IP
  634|       |         * address. Return immediately.
  635|       |         */
  636|      0|        if(!host_input) {
  ------------------
  |  Branch (636:12): [True: 0, False: 0]
  ------------------
  637|      0|          infof(data, "socket successfully bound to interface '%s'", iface);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  638|      0|          return CURLE_OK;
  639|      0|        }
  640|      0|      }
  641|      0|    }
  642|      0|#endif
  643|      0|    if(!host_input) {
  ------------------
  |  Branch (643:8): [True: 0, False: 0]
  ------------------
  644|       |      /* Discover IP from input device, then bind to it */
  645|      0|      if2ip_result = Curl_if2ip(af,
  646|      0|#ifdef USE_IPV6
  647|      0|                                scope, conn->scope_id,
  648|      0|#endif
  649|      0|                                iface, myhost, sizeof(myhost));
  650|      0|    }
  651|      0|    switch(if2ip_result) {
  ------------------
  |  Branch (651:12): [True: 0, False: 0]
  ------------------
  652|      0|    case IF2IP_NOT_FOUND:
  ------------------
  |  Branch (652:5): [True: 0, False: 0]
  ------------------
  653|      0|      if(iface_input && !host_input) {
  ------------------
  |  Branch (653:10): [True: 0, False: 0]
  |  Branch (653:25): [True: 0, False: 0]
  ------------------
  654|       |        /* Do not fall back to treating it as a hostname */
  655|      0|        char buffer[STRERROR_LEN];
  656|      0|        data->state.os_errno = error = SOCKERRNO;
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
  657|      0|        failf(data, "Could not bind to interface '%s' with errno %d: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  658|      0|              iface, error, curlx_strerror(error, buffer, sizeof(buffer)));
  659|      0|        return CURLE_INTERFACE_FAILED;
  660|      0|      }
  661|      0|      break;
  662|      0|    case IF2IP_AF_NOT_SUPPORTED:
  ------------------
  |  Branch (662:5): [True: 0, False: 0]
  ------------------
  663|       |      /* Signal the caller to try another address family if available */
  664|      0|      return CURLE_UNSUPPORTED_PROTOCOL;
  665|      0|    case IF2IP_FOUND:
  ------------------
  |  Branch (665:5): [True: 0, False: 0]
  ------------------
  666|       |      /*
  667|       |       * We now have the numerical IP address in the 'myhost' buffer
  668|       |       */
  669|      0|      host = myhost;
  670|      0|      infof(data, "Local Interface %s is ip %s using address family %i",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  671|      0|            iface, host, af);
  672|      0|      done = 1;
  673|      0|      break;
  674|      0|    }
  675|      0|    if(!iface_input || host_input) {
  ------------------
  |  Branch (675:8): [True: 0, False: 0]
  |  Branch (675:24): [True: 0, False: 0]
  ------------------
  676|       |      /*
  677|       |       * This was not an interface, resolve the name as a hostname
  678|       |       * or IP number
  679|       |       *
  680|       |       * Temporarily force name resolution to use only the address type
  681|       |       * of the connection. The resolve functions should really be changed
  682|       |       * to take a type parameter instead.
  683|       |       */
  684|      0|      uint8_t dns_queries = (af == AF_INET) ?
  ------------------
  |  Branch (684:29): [True: 0, False: 0]
  ------------------
  685|      0|                            CURL_DNSQ_A : (CURL_DNSQ_A | CURL_DNSQ_AAAA);
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                                          CURL_DNSQ_A : (CURL_DNSQ_A | CURL_DNSQ_AAAA);
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                                          CURL_DNSQ_A : (CURL_DNSQ_A | CURL_DNSQ_AAAA);
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  686|      0|#ifdef USE_IPV6
  687|      0|      if(af == AF_INET6)
  ------------------
  |  Branch (687:10): [True: 0, False: 0]
  ------------------
  688|      0|        dns_queries = CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  689|      0|#endif
  690|       |
  691|      0|      (void)Curl_resolv_blocking(data, dns_queries, host, 80, transport, &h);
  692|      0|      if(h) {
  ------------------
  |  Branch (692:10): [True: 0, False: 0]
  ------------------
  693|      0|        int h_af = h->addr->ai_family;
  694|       |        /* convert the resolved address, sizeof myhost >= INET_ADDRSTRLEN */
  695|      0|        Curl_printable_address(h->addr, myhost, sizeof(myhost));
  696|      0|        infof(data, "Name '%s' family %i resolved to '%s' family %i",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  697|      0|              host, af, myhost, h_af);
  698|      0|        Curl_dns_entry_unlink(data, &h); /* this will NULL, potential free h */
  699|      0|        if(af != h_af) {
  ------------------
  |  Branch (699:12): [True: 0, False: 0]
  ------------------
  700|       |          /* bad IP version combo, signal the caller to try another address
  701|       |             family if available */
  702|      0|          return CURLE_UNSUPPORTED_PROTOCOL;
  703|      0|        }
  704|      0|        done = 1;
  705|      0|      }
  706|      0|      else {
  707|       |        /*
  708|       |         * provided dev was no interface (or interfaces are not supported
  709|       |         * e.g. Solaris) no ip address and no domain we fail here
  710|       |         */
  711|      0|        done = -1;
  712|      0|      }
  713|      0|    }
  714|       |
  715|      0|    if(done > 0) {
  ------------------
  |  Branch (715:8): [True: 0, False: 0]
  ------------------
  716|      0|#ifdef USE_IPV6
  717|       |      /* IPv6 address */
  718|      0|      if(af == AF_INET6) {
  ------------------
  |  Branch (718:10): [True: 0, False: 0]
  ------------------
  719|      0|#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
  720|      0|        char *scope_ptr = strchr(myhost, '%');
  721|      0|        if(scope_ptr)
  ------------------
  |  Branch (721:12): [True: 0, False: 0]
  ------------------
  722|      0|          *(scope_ptr++) = '\0';
  723|      0|#endif
  724|      0|        if(curlx_inet_pton(AF_INET6, myhost, &si6->sin6_addr) > 0) {
  ------------------
  |  |   43|      0|  inet_pton(x, y, z)
  ------------------
  |  Branch (724:12): [True: 0, False: 0]
  ------------------
  725|      0|          si6->sin6_family = AF_INET6;
  726|      0|          si6->sin6_port = htons(port);
  727|      0|#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
  728|      0|          if(scope_ptr) {
  ------------------
  |  Branch (728:14): [True: 0, False: 0]
  ------------------
  729|       |            /* The "myhost" string either comes from Curl_if2ip or from
  730|       |               Curl_printable_address. The latter returns only numeric scope
  731|       |               IDs and the former returns none at all. Making the scope ID,
  732|       |               if present, known to be numeric */
  733|      0|            curl_off_t scope_id;
  734|      0|            if(curlx_str_number((const char **)CURL_UNCONST(&scope_ptr),
  ------------------
  |  |  866|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  |  Branch (734:16): [True: 0, False: 0]
  ------------------
  735|      0|                                &scope_id, UINT_MAX))
  736|      0|              return CURLE_UNSUPPORTED_PROTOCOL;
  737|      0|            si6->sin6_scope_id = (unsigned int)scope_id;
  738|      0|          }
  739|      0|#endif
  740|      0|        }
  741|      0|        sizeof_sa = sizeof(struct sockaddr_in6);
  742|      0|      }
  743|      0|      else
  744|      0|#endif
  745|       |      /* IPv4 address */
  746|      0|      if((af == AF_INET) &&
  ------------------
  |  Branch (746:10): [True: 0, False: 0]
  ------------------
  747|      0|         (curlx_inet_pton(AF_INET, myhost, &si4->sin_addr) > 0)) {
  ------------------
  |  |   43|      0|  inet_pton(x, y, z)
  ------------------
  |  Branch (747:10): [True: 0, False: 0]
  ------------------
  748|      0|        si4->sin_family = AF_INET;
  749|      0|        si4->sin_port = htons(port);
  750|      0|        sizeof_sa = sizeof(struct sockaddr_in);
  751|      0|      }
  752|      0|    }
  753|       |
  754|      0|    if(done < 1) {
  ------------------
  |  Branch (754:8): [True: 0, False: 0]
  ------------------
  755|       |      /* errorbuf is set false so failf will overwrite any message already in
  756|       |         the error buffer, so the user receives this error message instead of a
  757|       |         generic resolve error. */
  758|      0|      char buffer[STRERROR_LEN];
  759|      0|      data->state.errorbuf = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  760|      0|      data->state.os_errno = error = SOCKERRNO;
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
  761|      0|      failf(data, "Could not bind to '%s' with errno %d: %s", host,
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  762|      0|            error, curlx_strerror(error, buffer, sizeof(buffer)));
  763|      0|      return CURLE_INTERFACE_FAILED;
  764|      0|    }
  765|      0|  }
  766|      0|  else {
  767|       |    /* no device was given, prepare sa to match af's needs */
  768|      0|#ifdef USE_IPV6
  769|      0|    if(af == AF_INET6) {
  ------------------
  |  Branch (769:8): [True: 0, False: 0]
  ------------------
  770|      0|      si6->sin6_family = AF_INET6;
  771|      0|      si6->sin6_port = htons(port);
  772|      0|      sizeof_sa = sizeof(struct sockaddr_in6);
  773|      0|    }
  774|      0|    else
  775|      0|#endif
  776|      0|    if(af == AF_INET) {
  ------------------
  |  Branch (776:8): [True: 0, False: 0]
  ------------------
  777|      0|      si4->sin_family = AF_INET;
  778|      0|      si4->sin_port = htons(port);
  779|      0|      sizeof_sa = sizeof(struct sockaddr_in);
  780|      0|    }
  781|      0|  }
  782|      0|#ifdef IP_BIND_ADDRESS_NO_PORT
  783|      0|  (void)setsockopt(sockfd, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &on, sizeof(on));
  784|      0|#endif
  785|      0|  for(;;) {
  786|      0|    if(bind(sockfd, sock, sizeof_sa) >= 0) {
  ------------------
  |  Branch (786:8): [True: 0, False: 0]
  ------------------
  787|       |      /* we succeeded to bind */
  788|      0|      infof(data, "Local port: %hu", port);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  789|      0|      conn->bits.bound = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  790|      0|      return CURLE_OK;
  791|      0|    }
  792|       |
  793|      0|    if(--portnum > 0) {
  ------------------
  |  Branch (793:8): [True: 0, False: 0]
  ------------------
  794|      0|      port++; /* try next port */
  795|      0|      if(port == 0)
  ------------------
  |  Branch (795:10): [True: 0, False: 0]
  ------------------
  796|      0|        break;
  797|      0|      infof(data, "Bind to local port %d failed, trying next", port - 1);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  798|       |      /* We reuse/clobber the port variable here below */
  799|      0|      if(sock->sa_family == AF_INET)
  ------------------
  |  Branch (799:10): [True: 0, False: 0]
  ------------------
  800|      0|        si4->sin_port = htons(port);
  801|      0|#ifdef USE_IPV6
  802|      0|      else
  803|      0|        si6->sin6_port = htons(port);
  804|      0|#endif
  805|      0|    }
  806|      0|    else
  807|      0|      break;
  808|      0|  }
  809|      0|  {
  810|      0|    char buffer[STRERROR_LEN];
  811|      0|    data->state.os_errno = error = SOCKERRNO;
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
  812|      0|    failf(data, "bind failed with errno %d: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  813|      0|          error, curlx_strerror(error, buffer, sizeof(buffer)));
  814|      0|  }
  815|       |
  816|      0|  return CURLE_INTERFACE_FAILED;
  817|      0|}
cf-socket.c:cf_socket_close:
  976|  14.5k|{
  977|  14.5k|  struct cf_socket_ctx *ctx = cf->ctx;
  978|       |
  979|  14.5k|  if(ctx && ctx->sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  14.5k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (979:6): [True: 14.5k, False: 0]
  |  Branch (979:13): [True: 7.02k, False: 7.53k]
  ------------------
  980|  7.02k|    CURL_TRC_CF(data, cf, "cf_socket_close, fd=%" FMT_SOCKET_T, ctx->sock);
  ------------------
  |  |  153|  7.02k|  do {                                          \
  |  |  154|  7.02k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.02k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  14.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.02k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.02k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  14.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.02k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.02k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.02k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.02k]
  |  |  ------------------
  ------------------
  981|  7.02k|    if(ctx->sock == cf->conn->sock[cf->sockindex])
  ------------------
  |  Branch (981:8): [True: 6.79k, False: 229]
  ------------------
  982|  6.79k|      cf->conn->sock[cf->sockindex] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  6.79k|#define CURL_SOCKET_BAD (-1)
  ------------------
  983|  7.02k|    socket_close(data, cf->conn, !ctx->accepted, ctx->sock);
  984|  7.02k|    ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  7.02k|#define CURL_SOCKET_BAD (-1)
  ------------------
  985|  7.02k|    ctx->active = FALSE;
  ------------------
  |  | 1058|  7.02k|#define FALSE false
  ------------------
  986|  7.02k|    memset(&ctx->started_at, 0, sizeof(ctx->started_at));
  987|  7.02k|    memset(&ctx->connected_at, 0, sizeof(ctx->connected_at));
  988|  7.02k|  }
  989|       |
  990|       |  cf->connected = FALSE;
  ------------------
  |  | 1058|  14.5k|#define FALSE false
  ------------------
  991|  14.5k|}
cf-socket.c:cf_socket_shutdown:
  996|  2.43k|{
  997|  2.43k|  if(cf->connected) {
  ------------------
  |  Branch (997:6): [True: 2.43k, False: 0]
  ------------------
  998|  2.43k|    struct cf_socket_ctx *ctx = cf->ctx;
  999|       |
 1000|  2.43k|    CURL_TRC_CF(data, cf, "cf_socket_shutdown, fd=%" FMT_SOCKET_T, ctx->sock);
  ------------------
  |  |  153|  2.43k|  do {                                          \
  |  |  154|  2.43k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.43k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  4.87k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.43k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.43k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  4.87k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.43k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.43k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.43k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.43k]
  |  |  ------------------
  ------------------
 1001|       |    /* On TCP, and when the socket looks well and non-blocking mode
 1002|       |     * can be enabled, receive dangling bytes before close to avoid
 1003|       |     * entering RST states unnecessarily. */
 1004|  2.43k|    if(ctx->sock != CURL_SOCKET_BAD &&
  ------------------
  |  |  145|  4.87k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1004:8): [True: 2.43k, False: 0]
  ------------------
 1005|  2.43k|       ctx->transport == TRNSPRT_TCP &&
  ------------------
  |  |  307|  4.87k|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (1005:8): [True: 2.43k, False: 0]
  ------------------
 1006|  2.43k|       (curlx_nonblock(ctx->sock, TRUE) >= 0)) {
  ------------------
  |  | 1055|  2.43k|#define TRUE true
  ------------------
  |  Branch (1006:8): [True: 2.43k, False: 0]
  ------------------
 1007|  2.43k|      unsigned char buf[1024];
 1008|  2.43k|      (void)sread(ctx->sock, buf, sizeof(buf));
  ------------------
  |  |  954|  2.43k|#define sread(x, y, z) (ssize_t)recv((RECV_TYPE_ARG1)(x), \
  |  |  955|  2.43k|                                     (RECV_TYPE_ARG2)(y), \
  |  |  956|  2.43k|                                     (RECV_TYPE_ARG3)(z), \
  |  |  957|  2.43k|                                     (RECV_TYPE_ARG4)(0))
  ------------------
 1009|  2.43k|    }
 1010|  2.43k|  }
 1011|       |  *done = TRUE;
  ------------------
  |  | 1055|  2.43k|#define TRUE true
  ------------------
 1012|  2.43k|  return CURLE_OK;
 1013|  2.43k|}
cf-socket.c:cf_socket_adjust_pollset:
 1398|   109k|{
 1399|   109k|  struct cf_socket_ctx *ctx = cf->ctx;
 1400|   109k|  CURLcode result = CURLE_OK;
 1401|       |
 1402|   109k|  if(ctx->sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|   109k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1402:6): [True: 109k, False: 0]
  ------------------
 1403|       |    /* A listening socket filter needs to be connected before the accept
 1404|       |     * for some weird FTP interaction. This should be rewritten, so that
 1405|       |     * FTP no longer does the socket checks and accept calls and delegates
 1406|       |     * all that to the filter. */
 1407|   109k|    if(ctx->listening) {
  ------------------
  |  Branch (1407:8): [True: 0, False: 109k]
  ------------------
 1408|      0|      result = Curl_pollset_set_in_only(data, ps, ctx->sock);
  ------------------
  |  |  172|      0|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, CURL_POLL_OUT)
  |  |  ------------------
  |  |  |  |  283|      0|#define CURL_POLL_IN     1
  |  |  ------------------
  |  |                 Curl_pollset_change(data, ps, sock, CURL_POLL_IN, CURL_POLL_OUT)
  |  |  ------------------
  |  |  |  |  284|      0|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
 1409|      0|      CURL_TRC_CF(data, cf, "adjust_pollset, listening, POLLIN fd=%"
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1410|      0|                  FMT_SOCKET_T, ctx->sock);
 1411|      0|    }
 1412|   109k|    else if(!cf->connected) {
  ------------------
  |  Branch (1412:13): [True: 0, False: 109k]
  ------------------
 1413|      0|      result = Curl_pollset_set_out_only(data, ps, ctx->sock);
  ------------------
  |  |  174|      0|  Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, CURL_POLL_IN)
  |  |  ------------------
  |  |  |  |  284|      0|#define CURL_POLL_OUT    2
  |  |  ------------------
  |  |                 Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, CURL_POLL_IN)
  |  |  ------------------
  |  |  |  |  283|      0|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1414|      0|      CURL_TRC_CF(data, cf, "adjust_pollset, !connected, POLLOUT fd=%"
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1415|      0|                  FMT_SOCKET_T, ctx->sock);
 1416|      0|    }
 1417|   109k|    else if(!ctx->active) {
  ------------------
  |  Branch (1417:13): [True: 4.13k, False: 105k]
  ------------------
 1418|  4.13k|      result = Curl_pollset_add_in(data, ps, ctx->sock);
  ------------------
  |  |  162|  4.13k|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, 0)
  |  |  ------------------
  |  |  |  |  283|  4.13k|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1419|  4.13k|      CURL_TRC_CF(data, cf, "adjust_pollset, !active, POLLIN fd=%"
  ------------------
  |  |  153|  4.13k|  do {                                          \
  |  |  154|  4.13k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  4.13k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  8.27k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 4.13k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.13k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  8.27k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  4.13k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.13k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.13k]
  |  |  ------------------
  ------------------
 1420|  4.13k|                  FMT_SOCKET_T, ctx->sock);
 1421|  4.13k|    }
 1422|   109k|  }
 1423|   109k|  return result;
 1424|   109k|}
cf-socket.c:cf_socket_send:
 1457|  30.2k|{
 1458|  30.2k|  struct cf_socket_ctx *ctx = cf->ctx;
 1459|  30.2k|  curl_socket_t fdsave;
 1460|  30.2k|  ssize_t rv;
 1461|  30.2k|  CURLcode result = CURLE_OK;
 1462|  30.2k|  VERBOSE(size_t orig_len = len);
  ------------------
  |  | 1618|  30.2k|#define VERBOSE(x) x
  ------------------
 1463|       |
 1464|  30.2k|  (void)eos;
 1465|  30.2k|  *pnwritten = 0;
 1466|  30.2k|  fdsave = cf->conn->sock[cf->sockindex];
 1467|  30.2k|  cf->conn->sock[cf->sockindex] = ctx->sock;
 1468|       |
 1469|  30.2k|#ifdef DEBUGBUILD
 1470|       |  /* simulate network blocking/partial writes */
 1471|  30.2k|  if(ctx->wblock_percent > 0) {
  ------------------
  |  Branch (1471:6): [True: 0, False: 30.2k]
  ------------------
 1472|      0|    unsigned char c = 0;
 1473|      0|    Curl_rand_bytes(data, FALSE, &c, 1);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1474|      0|    if(c >= ((100 - ctx->wblock_percent) * 256 / 100)) {
  ------------------
  |  Branch (1474:8): [True: 0, False: 0]
  ------------------
 1475|      0|      CURL_TRC_CF(data, cf, "send(len=%zu) SIMULATE EWOULDBLOCK", orig_len);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1476|      0|      cf->conn->sock[cf->sockindex] = fdsave;
 1477|      0|      return CURLE_AGAIN;
 1478|      0|    }
 1479|      0|  }
 1480|  30.2k|  if(cf->cft != &Curl_cft_udp && ctx->wpartial_percent > 0 && len > 8) {
  ------------------
  |  Branch (1480:6): [True: 30.2k, False: 0]
  |  Branch (1480:34): [True: 0, False: 30.2k]
  |  Branch (1480:63): [True: 0, False: 0]
  ------------------
 1481|      0|    len = len * ctx->wpartial_percent / 100;
 1482|      0|    if(!len)
  ------------------
  |  Branch (1482:8): [True: 0, False: 0]
  ------------------
 1483|      0|      len = 1;
 1484|      0|    CURL_TRC_CF(data, cf, "send(len=%zu) SIMULATE partial write of %zu bytes",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1485|      0|                orig_len, len);
 1486|      0|  }
 1487|  30.2k|#endif
 1488|       |
 1489|       |#if defined(MSG_FASTOPEN) && !defined(TCP_FASTOPEN_CONNECT) /* Linux */
 1490|       |  if(cf->conn->bits.tcp_fastopen) {
 1491|       |    rv = sendto(ctx->sock, buf, len, MSG_FASTOPEN,
 1492|       |                &ctx->addr.curl_sa_addr, ctx->addr.addrlen);
 1493|       |    cf->conn->bits.tcp_fastopen = FALSE;
 1494|       |  }
 1495|       |  else
 1496|       |#endif
 1497|  30.2k|    rv = swrite(ctx->sock, buf, len);
  ------------------
  |  |  976|  30.2k|#define swrite(x, y, z) (ssize_t)send((SEND_TYPE_ARG1)(x), \
  |  |  977|  30.2k|                                      (const SEND_TYPE_ARG2)(y), \
  |  |  978|  30.2k|                                      (SEND_TYPE_ARG3)(z), \
  |  |  979|  30.2k|                                      (SEND_TYPE_ARG4)(SEND_4TH_ARG))
  |  |  ------------------
  |  |  |  |  919|  30.2k|#define SEND_4TH_ARG MSG_NOSIGNAL
  |  |  ------------------
  ------------------
 1498|       |
 1499|  30.2k|  if(!curlx_sztouz(rv, pnwritten)) {
  ------------------
  |  Branch (1499:6): [True: 12.7k, False: 17.4k]
  ------------------
 1500|  12.7k|    int sockerr = SOCKERRNO;
  ------------------
  |  | 1095|  12.7k|#define SOCKERRNO         errno
  ------------------
 1501|       |
 1502|  12.7k|    if(
 1503|       |#ifdef USE_WINSOCK
 1504|       |      /* This is how Windows does it */
 1505|       |      (SOCKEWOULDBLOCK == sockerr)
 1506|       |#else
 1507|       |      /* errno may be EWOULDBLOCK or on some systems EAGAIN when it returned
 1508|       |         due to its inability to send off data without blocking. We therefore
 1509|       |         treat both error codes the same here */
 1510|  12.7k|      (SOCKEWOULDBLOCK == sockerr) ||
  ------------------
  |  | 1137|  12.7k|#define SOCKEWOULDBLOCK   EWOULDBLOCK
  ------------------
  |  Branch (1510:7): [True: 12.7k, False: 0]
  ------------------
 1511|      0|      (EAGAIN == sockerr) || (SOCKEINTR == sockerr) ||
  ------------------
  |  | 1129|      0|#define SOCKEINTR         EINTR
  ------------------
  |  Branch (1511:7): [True: 0, False: 0]
  |  Branch (1511:30): [True: 0, False: 0]
  ------------------
 1512|      0|      (SOCKEINPROGRESS == sockerr)
  ------------------
  |  | 1128|      0|#define SOCKEINPROGRESS   EINPROGRESS
  ------------------
  |  Branch (1512:7): [True: 0, False: 0]
  ------------------
 1513|  12.7k|#endif
 1514|  12.7k|      ) {
 1515|       |      /* EWOULDBLOCK */
 1516|  12.7k|      result = CURLE_AGAIN;
 1517|  12.7k|    }
 1518|      0|    else {
 1519|      0|      char buffer[STRERROR_LEN];
 1520|      0|      failf(data, "Send failure: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1521|      0|            curlx_strerror(sockerr, buffer, sizeof(buffer)));
 1522|      0|      data->state.os_errno = sockerr;
 1523|      0|      result = CURLE_SEND_ERROR;
 1524|      0|    }
 1525|  12.7k|  }
 1526|       |
 1527|       |#ifdef USE_WINSOCK
 1528|       |  if(!result)
 1529|       |    win_update_sndbuf_size(data, ctx);
 1530|       |#endif
 1531|       |
 1532|  30.2k|  CURL_TRC_CF(data, cf, "send(len=%zu) -> %d, %zu",
  ------------------
  |  |  153|  30.2k|  do {                                          \
  |  |  154|  30.2k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  30.2k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  60.4k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 30.2k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 30.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  60.4k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  30.2k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  30.2k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  30.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 30.2k]
  |  |  ------------------
  ------------------
 1533|  30.2k|              orig_len, result, *pnwritten);
 1534|  30.2k|  cf->conn->sock[cf->sockindex] = fdsave;
 1535|  30.2k|  return result;
 1536|  30.2k|}
cf-socket.c:cf_socket_recv:
 1540|   127k|{
 1541|   127k|  struct cf_socket_ctx *ctx = cf->ctx;
 1542|   127k|  CURLcode result = CURLE_OK;
 1543|   127k|  ssize_t rv;
 1544|       |
 1545|   127k|  *pnread = 0;
 1546|   127k|#ifdef DEBUGBUILD
 1547|       |  /* simulate network blocking/partial reads */
 1548|   127k|  if(cf->cft != &Curl_cft_udp && ctx->rblock_percent > 0) {
  ------------------
  |  Branch (1548:6): [True: 127k, False: 0]
  |  Branch (1548:34): [True: 0, False: 127k]
  ------------------
 1549|      0|    unsigned char c = 0;
 1550|      0|    Curl_rand(data, &c, 1);
  ------------------
  |  |   33|      0|#define Curl_rand(a, b, c) Curl_rand_bytes(a, TRUE, b, c)
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  ------------------
 1551|      0|    if(c >= ((100 - ctx->rblock_percent) * 256 / 100)) {
  ------------------
  |  Branch (1551:8): [True: 0, False: 0]
  ------------------
 1552|      0|      CURL_TRC_CF(data, cf, "recv(len=%zu) SIMULATE EWOULDBLOCK", len);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1553|      0|      return CURLE_AGAIN;
 1554|      0|    }
 1555|      0|  }
 1556|   127k|  if(cf->cft != &Curl_cft_udp && ctx->recv_max && ctx->recv_max < len) {
  ------------------
  |  Branch (1556:6): [True: 127k, False: 0]
  |  Branch (1556:34): [True: 0, False: 127k]
  |  Branch (1556:51): [True: 0, False: 0]
  ------------------
 1557|      0|    CURL_TRC_CF(data, cf, "recv(len=%zu) SIMULATE max read of %zu bytes",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1558|      0|                len, ctx->recv_max);
 1559|      0|    len = ctx->recv_max;
 1560|      0|  }
 1561|   127k|#endif
 1562|       |
 1563|   127k|  rv = sread(ctx->sock, buf, len);
  ------------------
  |  |  954|   127k|#define sread(x, y, z) (ssize_t)recv((RECV_TYPE_ARG1)(x), \
  |  |  955|   127k|                                     (RECV_TYPE_ARG2)(y), \
  |  |  956|   127k|                                     (RECV_TYPE_ARG3)(z), \
  |  |  957|   127k|                                     (RECV_TYPE_ARG4)(0))
  ------------------
 1564|       |
 1565|   127k|  if(!curlx_sztouz(rv, pnread)) {
  ------------------
  |  Branch (1565:6): [True: 105k, False: 21.3k]
  ------------------
 1566|   105k|    int sockerr = SOCKERRNO;
  ------------------
  |  | 1095|   105k|#define SOCKERRNO         errno
  ------------------
 1567|       |
 1568|   105k|    if(
 1569|       |#ifdef USE_WINSOCK
 1570|       |      /* This is how Windows does it */
 1571|       |      (SOCKEWOULDBLOCK == sockerr)
 1572|       |#else
 1573|       |      /* errno may be EWOULDBLOCK or on some systems EAGAIN when it returned
 1574|       |         due to its inability to send off data without blocking. We therefore
 1575|       |         treat both error codes the same here */
 1576|   105k|      (SOCKEWOULDBLOCK == sockerr) ||
  ------------------
  |  | 1137|   105k|#define SOCKEWOULDBLOCK   EWOULDBLOCK
  ------------------
  |  Branch (1576:7): [True: 105k, False: 0]
  ------------------
 1577|      0|      (EAGAIN == sockerr) || (SOCKEINTR == sockerr)
  ------------------
  |  | 1129|      0|#define SOCKEINTR         EINTR
  ------------------
  |  Branch (1577:7): [True: 0, False: 0]
  |  Branch (1577:30): [True: 0, False: 0]
  ------------------
 1578|   105k|#endif
 1579|   105k|      ) {
 1580|       |      /* EWOULDBLOCK */
 1581|   105k|      result = CURLE_AGAIN;
 1582|   105k|    }
 1583|      0|    else {
 1584|      0|      char buffer[STRERROR_LEN];
 1585|      0|      failf(data, "Recv failure: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1586|      0|            curlx_strerror(sockerr, buffer, sizeof(buffer)));
 1587|      0|      data->state.os_errno = sockerr;
 1588|      0|      result = CURLE_RECV_ERROR;
 1589|      0|    }
 1590|   105k|  }
 1591|       |
 1592|   127k|  CURL_TRC_CF(data, cf, "recv(len=%zu) -> %d, %zu", len, result, *pnread);
  ------------------
  |  |  153|   127k|  do {                                          \
  |  |  154|   127k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|   127k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|   254k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 127k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 127k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|   254k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|   127k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|   127k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|   127k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 127k]
  |  |  ------------------
  ------------------
 1593|   127k|  if(!result && !ctx->got_first_byte) {
  ------------------
  |  Branch (1593:6): [True: 21.3k, False: 105k]
  |  Branch (1593:17): [True: 6.74k, False: 14.6k]
  ------------------
 1594|  6.74k|    ctx->first_byte_at = *Curl_pgrs_now(data);
 1595|       |    ctx->got_first_byte = TRUE;
  ------------------
  |  | 1055|  6.74k|#define TRUE true
  ------------------
 1596|  6.74k|  }
 1597|   127k|  return result;
 1598|   127k|}
cf-socket.c:cf_socket_cntrl:
 1629|  28.9k|{
 1630|  28.9k|  struct cf_socket_ctx *ctx = cf->ctx;
 1631|       |
 1632|  28.9k|  (void)arg1;
 1633|  28.9k|  (void)arg2;
 1634|  28.9k|  switch(event) {
  ------------------
  |  Branch (1634:10): [True: 9.58k, False: 19.3k]
  ------------------
 1635|  6.79k|  case CF_CTRL_CONN_INFO_UPDATE:
  ------------------
  |  |  125|  6.79k|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
  |  Branch (1635:3): [True: 6.79k, False: 22.1k]
  ------------------
 1636|  6.79k|    cf_socket_active(cf, data);
 1637|  6.79k|    cf_socket_update_data(cf, data);
 1638|  6.79k|    break;
 1639|  2.79k|  case CF_CTRL_DATA_SETUP:
  ------------------
  |  |  119|  2.79k|#define CF_CTRL_DATA_SETUP              4  /* 0          NULL     first fail */
  ------------------
  |  Branch (1639:3): [True: 2.79k, False: 26.1k]
  ------------------
 1640|  2.79k|    cf_socket_update_data(cf, data);
 1641|  2.79k|    break;
 1642|      0|  case CF_CTRL_FORGET_SOCKET:
  ------------------
  |  |  126|      0|#define CF_CTRL_FORGET_SOCKET    (256 + 1) /* 0          NULL     ignored */
  ------------------
  |  Branch (1642:3): [True: 0, False: 28.9k]
  ------------------
 1643|      0|    ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
 1644|      0|    break;
 1645|  28.9k|  }
 1646|  28.9k|  return CURLE_OK;
 1647|  28.9k|}
cf-socket.c:cf_socket_active:
 1613|  6.79k|{
 1614|  6.79k|  struct cf_socket_ctx *ctx = cf->ctx;
 1615|       |
 1616|       |  /* use this socket from now on */
 1617|  6.79k|  cf->conn->sock[cf->sockindex] = ctx->sock;
 1618|  6.79k|  set_local_ip(cf, data);
 1619|  6.79k|#ifdef USE_IPV6
 1620|  6.79k|  if(cf->sockindex == FIRSTSOCKET)
  ------------------
  |  |  303|  6.79k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (1620:6): [True: 6.79k, False: 0]
  ------------------
 1621|  6.79k|    cf->conn->bits.ipv6 = (ctx->addr.family == AF_INET6);
 1622|  6.79k|#endif
 1623|       |  ctx->active = TRUE;
  ------------------
  |  | 1055|  6.79k|#define TRUE true
  ------------------
 1624|  6.79k|}
cf-socket.c:cf_socket_update_data:
 1602|  9.58k|{
 1603|       |  /* Update the IP info held in the transfer, if we have that. */
 1604|  9.58k|  if(cf->connected && (cf->sockindex == FIRSTSOCKET)) {
  ------------------
  |  |  303|  9.58k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (1604:6): [True: 9.58k, False: 0]
  |  Branch (1604:23): [True: 9.58k, False: 0]
  ------------------
 1605|  9.58k|    struct cf_socket_ctx *ctx = cf->ctx;
 1606|  9.58k|    data->info.primary = ctx->ip;
 1607|       |    /* not sure if this is redundant... */
 1608|  9.58k|    data->info.conn_remote_port = cf->conn->origin->port;
 1609|  9.58k|  }
 1610|  9.58k|}
cf-socket.c:cf_socket_conn_is_alive:
 1652|  3.03k|{
 1653|  3.03k|  struct cf_socket_ctx *ctx = cf->ctx;
 1654|  3.03k|  struct pollfd pfd[1];
 1655|  3.03k|  int r;
 1656|       |
 1657|  3.03k|  *input_pending = FALSE;
  ------------------
  |  | 1058|  3.03k|#define FALSE false
  ------------------
 1658|       |
 1659|  3.03k|  if(!ctx || ctx->sock == CURL_SOCKET_BAD)
  ------------------
  |  |  145|  3.03k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1659:6): [True: 0, False: 3.03k]
  |  Branch (1659:14): [True: 0, False: 3.03k]
  ------------------
 1660|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1661|       |
 1662|       |  /* Check with 0 timeout if there are any events pending on the socket */
 1663|  3.03k|  pfd[0].fd = ctx->sock;
 1664|  3.03k|  pfd[0].events = POLLRDNORM | POLLIN | POLLRDBAND | POLLPRI;
 1665|  3.03k|  pfd[0].revents = 0;
 1666|       |
 1667|  3.03k|  r = Curl_poll(pfd, 1, 0);
 1668|  3.03k|  if(r < 0) {
  ------------------
  |  Branch (1668:6): [True: 0, False: 3.03k]
  ------------------
 1669|      0|    CURL_TRC_CF(data, cf, "is_alive: poll error, assume dead");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1670|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1671|      0|  }
 1672|  3.03k|  else if(r == 0) {
  ------------------
  |  Branch (1672:11): [True: 2.79k, False: 240]
  ------------------
 1673|  2.79k|    CURL_TRC_CF(data, cf, "is_alive: poll timeout, assume alive");
  ------------------
  |  |  153|  2.79k|  do {                                          \
  |  |  154|  2.79k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.79k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.58k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.79k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.79k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.58k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.79k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.79k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.79k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.79k]
  |  |  ------------------
  ------------------
 1674|  2.79k|    return TRUE;
  ------------------
  |  | 1055|  2.79k|#define TRUE true
  ------------------
 1675|  2.79k|  }
 1676|    240|  else if(pfd[0].revents & (POLLERR | POLLHUP | POLLPRI | POLLNVAL)) {
  ------------------
  |  Branch (1676:11): [True: 0, False: 240]
  ------------------
 1677|      0|    CURL_TRC_CF(data, cf, "is_alive: err/hup/etc events, assume dead");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1678|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1679|      0|  }
 1680|       |
 1681|    240|  CURL_TRC_CF(data, cf, "is_alive: valid events, looks alive");
  ------------------
  |  |  153|    240|  do {                                          \
  |  |  154|    240|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    240|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    480|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 240, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 240]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    480|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    240|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    240|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    240|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 240]
  |  |  ------------------
  ------------------
 1682|    240|  *input_pending = TRUE;
  ------------------
  |  | 1055|    240|#define TRUE true
  ------------------
 1683|       |  return TRUE;
  ------------------
  |  | 1055|    240|#define TRUE true
  ------------------
 1684|  3.03k|}
cf-socket.c:cf_socket_query:
 1689|   250k|{
 1690|   250k|  struct cf_socket_ctx *ctx = cf->ctx;
 1691|       |
 1692|   250k|  switch(query) {
 1693|  13.9k|  case CF_QUERY_SOCKET:
  ------------------
  |  |  167|  13.9k|#define CF_QUERY_SOCKET             3  /* -          curl_socket_t */
  ------------------
  |  Branch (1693:3): [True: 13.9k, False: 236k]
  ------------------
 1694|  13.9k|    DEBUGASSERT(pres2);
  ------------------
  |  | 1081|  13.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1694:5): [True: 0, False: 13.9k]
  |  Branch (1694:5): [True: 13.9k, False: 0]
  ------------------
 1695|  13.9k|    *((curl_socket_t *)pres2) = ctx->sock;
 1696|  13.9k|    return CURLE_OK;
 1697|      0|  case CF_QUERY_TRANSPORT:
  ------------------
  |  |  180|      0|#define CF_QUERY_TRANSPORT         14  /* TRNSPRT_*  - * */
  ------------------
  |  Branch (1697:3): [True: 0, False: 250k]
  ------------------
 1698|      0|    DEBUGASSERT(pres1);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1698:5): [True: 0, False: 0]
  |  Branch (1698:5): [True: 0, False: 0]
  ------------------
 1699|      0|    *pres1 = ctx->transport;
 1700|      0|    return CURLE_OK;
 1701|      0|  case CF_QUERY_REMOTE_ADDR:
  ------------------
  |  |  176|      0|#define CF_QUERY_REMOTE_ADDR       10  /* -          `Curl_sockaddr_ex *` */
  ------------------
  |  Branch (1701:3): [True: 0, False: 250k]
  ------------------
 1702|      0|    DEBUGASSERT(pres2);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1702:5): [True: 0, False: 0]
  |  Branch (1702:5): [True: 0, False: 0]
  ------------------
 1703|      0|    *((const struct Curl_sockaddr_ex **)pres2) = cf->connected ?
  ------------------
  |  Branch (1703:50): [True: 0, False: 0]
  ------------------
 1704|      0|                                                 &ctx->addr : NULL;
 1705|      0|    return CURLE_OK;
 1706|      0|  case CF_QUERY_CONNECT_REPLY_MS:
  ------------------
  |  |  166|      0|#define CF_QUERY_CONNECT_REPLY_MS   2  /* number     -        */
  ------------------
  |  Branch (1706:3): [True: 0, False: 250k]
  ------------------
 1707|      0|    if(ctx->got_first_byte) {
  ------------------
  |  Branch (1707:8): [True: 0, False: 0]
  ------------------
 1708|      0|      timediff_t ms = curlx_ptimediff_ms(&ctx->first_byte_at,
 1709|      0|                                         &ctx->started_at);
 1710|      0|      *pres1 = (ms < INT_MAX) ? (int)ms : INT_MAX;
  ------------------
  |  Branch (1710:16): [True: 0, False: 0]
  ------------------
 1711|      0|    }
 1712|      0|    else
 1713|      0|      *pres1 = -1;
 1714|      0|    return CURLE_OK;
 1715|  6.80k|  case CF_QUERY_TIMER_CONNECT: {
  ------------------
  |  |  168|  6.80k|#define CF_QUERY_TIMER_CONNECT      4  /* -          struct curltime */
  ------------------
  |  Branch (1715:3): [True: 6.80k, False: 243k]
  ------------------
 1716|  6.80k|    struct curltime *when = pres2;
 1717|  6.80k|    switch(ctx->transport) {
 1718|      0|    case TRNSPRT_UDP:
  ------------------
  |  |  308|      0|#define TRNSPRT_UDP  4
  ------------------
  |  Branch (1718:5): [True: 0, False: 6.80k]
  ------------------
 1719|      0|    case TRNSPRT_QUIC:
  ------------------
  |  |  309|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (1719:5): [True: 0, False: 6.80k]
  ------------------
 1720|       |      /* Since UDP connected sockets work different from TCP, we use the
 1721|       |       * time of the first byte from the peer as the "connect" time. */
 1722|      0|      if(ctx->got_first_byte) {
  ------------------
  |  Branch (1722:10): [True: 0, False: 0]
  ------------------
 1723|      0|        *when = ctx->first_byte_at;
 1724|      0|        break;
 1725|      0|      }
 1726|      0|      FALLTHROUGH();
  ------------------
  |  |  821|      0|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
 1727|  6.80k|    default:
  ------------------
  |  Branch (1727:5): [True: 6.80k, False: 0]
  ------------------
 1728|  6.80k|      *when = ctx->connected_at;
 1729|  6.80k|      break;
 1730|  6.80k|    }
 1731|  6.80k|    return CURLE_OK;
 1732|  6.80k|  }
 1733|      0|  case CF_QUERY_IP_INFO:
  ------------------
  |  |  172|      0|#define CF_QUERY_IP_INFO            8  /* TRUE/FALSE struct ip_quadruple */
  ------------------
  |  Branch (1733:3): [True: 0, False: 250k]
  ------------------
 1734|      0|#ifdef USE_IPV6
 1735|      0|    *pres1 = (ctx->addr.family == AF_INET6);
 1736|       |#else
 1737|       |    *pres1 = FALSE;
 1738|       |#endif
 1739|      0|    *(struct ip_quadruple *)pres2 = ctx->ip;
 1740|      0|    return CURLE_OK;
 1741|   229k|  default:
  ------------------
  |  Branch (1741:3): [True: 229k, False: 20.7k]
  ------------------
 1742|   229k|    break;
 1743|   250k|  }
 1744|   229k|  return cf->next ?
  ------------------
  |  Branch (1744:10): [True: 0, False: 229k]
  ------------------
 1745|      0|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
 1746|   229k|    CURLE_UNKNOWN_OPTION;
 1747|   250k|}
cf-socket.c:cf_socket_ctx_init:
  937|  7.53k|{
  938|  7.53k|  memset(ctx, 0, sizeof(*ctx));
  939|  7.53k|  ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  7.53k|#define CURL_SOCKET_BAD (-1)
  ------------------
  940|  7.53k|  ctx->transport = transport;
  941|  7.53k|  ctx->addr = *addr;
  942|       |
  943|  7.53k|#ifdef DEBUGBUILD
  944|  7.53k|  {
  945|  7.53k|    const char *p = getenv("CURL_DBG_SOCK_WBLOCK");
  946|  7.53k|    if(p) {
  ------------------
  |  Branch (946:8): [True: 0, False: 7.53k]
  ------------------
  947|      0|      curl_off_t l;
  948|      0|      if(!curlx_str_number(&p, &l, 100))
  ------------------
  |  Branch (948:10): [True: 0, False: 0]
  ------------------
  949|      0|        ctx->wblock_percent = (int)l;
  950|      0|    }
  951|  7.53k|    p = getenv("CURL_DBG_SOCK_WPARTIAL");
  952|  7.53k|    if(p) {
  ------------------
  |  Branch (952:8): [True: 0, False: 7.53k]
  ------------------
  953|      0|      curl_off_t l;
  954|      0|      if(!curlx_str_number(&p, &l, 100))
  ------------------
  |  Branch (954:10): [True: 0, False: 0]
  ------------------
  955|      0|        ctx->wpartial_percent = (int)l;
  956|      0|    }
  957|  7.53k|    p = getenv("CURL_DBG_SOCK_RBLOCK");
  958|  7.53k|    if(p) {
  ------------------
  |  Branch (958:8): [True: 0, False: 7.53k]
  ------------------
  959|      0|      curl_off_t l;
  960|      0|      if(!curlx_str_number(&p, &l, 100))
  ------------------
  |  Branch (960:10): [True: 0, False: 0]
  ------------------
  961|      0|        ctx->rblock_percent = (int)l;
  962|      0|    }
  963|  7.53k|    p = getenv("CURL_DBG_SOCK_RMAX");
  964|  7.53k|    if(p) {
  ------------------
  |  Branch (964:8): [True: 0, False: 7.53k]
  ------------------
  965|      0|      curl_off_t l;
  966|      0|      if(!curlx_str_number(&p, &l, CURL_OFF_T_MAX))
  ------------------
  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (966:10): [True: 0, False: 0]
  ------------------
  967|      0|        ctx->recv_max = (size_t)l;
  968|      0|    }
  969|  7.53k|  }
  970|  7.53k|#endif
  971|       |
  972|  7.53k|  return CURLE_OK;
  973|  7.53k|}
cf-socket.c:set_local_ip:
 1027|  14.3k|{
 1028|  14.3k|  struct cf_socket_ctx *ctx = cf->ctx;
 1029|  14.3k|  ctx->ip.local_ip[0] = 0;
 1030|  14.3k|  ctx->ip.local_port = 0;
 1031|       |
 1032|  14.3k|#ifdef HAVE_GETSOCKNAME
 1033|  14.3k|  if((ctx->sock != CURL_SOCKET_BAD) &&
  ------------------
  |  |  145|  14.3k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1033:6): [True: 13.8k, False: 511]
  ------------------
 1034|  13.8k|     !(data->conn->scheme->protocol & CURLPROTO_TFTP)) {
  ------------------
  |  | 1089|  13.8k|#define CURLPROTO_TFTP    (1L << 11)
  ------------------
  |  Branch (1034:6): [True: 13.8k, False: 0]
  ------------------
 1035|       |    /* TFTP does not connect, so it cannot get the IP like this */
 1036|  13.8k|    struct Curl_sockaddr_storage ssloc;
 1037|  13.8k|    curl_socklen_t slen = sizeof(struct Curl_sockaddr_storage);
 1038|  13.8k|    VERBOSE(char buffer[STRERROR_LEN]);
  ------------------
  |  | 1618|  13.8k|#define VERBOSE(x) x
  ------------------
 1039|       |
 1040|  13.8k|    memset(&ssloc, 0, sizeof(ssloc));
 1041|  13.8k|    if(getsockname(ctx->sock, (struct sockaddr *)&ssloc, &slen)) {
  ------------------
  |  Branch (1041:8): [True: 0, False: 13.8k]
  ------------------
 1042|      0|      VERBOSE(int error = SOCKERRNO);
  ------------------
  |  | 1618|      0|#define VERBOSE(x) x
  ------------------
 1043|      0|      infof(data, "getsockname() failed with errno %d: %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1044|      0|            error, curlx_strerror(error, buffer, sizeof(buffer)));
 1045|      0|    }
 1046|  13.8k|    else if(!Curl_addr2string((struct sockaddr *)&ssloc, slen,
  ------------------
  |  Branch (1046:13): [True: 0, False: 13.8k]
  ------------------
 1047|  13.8k|                              ctx->ip.local_ip, &ctx->ip.local_port)) {
 1048|      0|      infof(data, "ssloc inet_ntop() failed with errno %d: %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1049|      0|            errno, curlx_strerror(errno, buffer, sizeof(buffer)));
 1050|      0|    }
 1051|  13.8k|  }
 1052|       |#else
 1053|       |  (void)data;
 1054|       |#endif
 1055|  14.3k|}

Curl_cf_def_data_pending:
   69|   198k|{
   70|   198k|  return cf->next ?
  ------------------
  |  Branch (70:10): [True: 0, False: 198k]
  ------------------
   71|      0|    cf->next->cft->has_data_pending(cf->next, data) : FALSE;
  ------------------
  |  | 1058|   198k|#define FALSE false
  ------------------
   72|   198k|}
Curl_cf_def_send:
   77|    219|{
   78|    219|  if(cf->next)
  ------------------
  |  Branch (78:6): [True: 219, False: 0]
  ------------------
   79|    219|    return cf->next->cft->do_send(cf->next, data, buf, len, eos, pnwritten);
   80|      0|  *pnwritten = 0;
   81|      0|  return CURLE_RECV_ERROR;
   82|    219|}
Curl_cf_def_recv:
   86|  4.13k|{
   87|  4.13k|  if(cf->next)
  ------------------
  |  Branch (87:6): [True: 4.13k, False: 0]
  ------------------
   88|  4.13k|    return cf->next->cft->do_recv(cf->next, data, buf, len, pnread);
   89|      0|  *pnread = 0;
   90|      0|  return CURLE_SEND_ERROR;
   91|  4.13k|}
Curl_cf_def_query:
  113|  60.4k|{
  114|  60.4k|  return cf->next ?
  ------------------
  |  Branch (114:10): [True: 52.9k, False: 7.53k]
  ------------------
  115|  52.9k|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
  116|  60.4k|    CURLE_UNKNOWN_OPTION;
  117|  60.4k|}
Curl_conn_trc_filters:
  122|  33.3k|{
  123|  33.3k|  if(CURL_TRC_M_is_verbose(data) && data->conn) {
  ------------------
  |  |  135|  33.3k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  ------------------
  |  |  |  |  326|  66.6k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  66.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 33.3k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 33.3k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  66.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  66.6k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (123:37): [True: 0, False: 0]
  ------------------
  124|      0|    struct Curl_cfilter *cf = data->conn->cfilter[sockindex];
  125|       |
  126|      0|    if(cf) {
  ------------------
  |  Branch (126:8): [True: 0, False: 0]
  ------------------
  127|      0|      char msg[256], *buf;
  128|      0|      int blen, n;
  129|       |
  130|      0|      buf = msg;
  131|      0|      blen = sizeof(msg) - 1;
  132|      0|      n = curl_msnprintf(buf, blen, "%s [%d]", info, sockindex);
  133|      0|      buf += n;
  134|      0|      blen -= n;
  135|      0|      for(; cf && blen; cf = cf->next) {
  ------------------
  |  Branch (135:13): [True: 0, False: 0]
  |  Branch (135:19): [True: 0, False: 0]
  ------------------
  136|      0|        n = curl_msnprintf(buf, blen, "[%s%s]",
  137|      0|                           cf->connected ? "" : "!", cf->cft->name);
  ------------------
  |  Branch (137:28): [True: 0, False: 0]
  ------------------
  138|      0|        buf += n;
  139|      0|        blen -= n;
  140|      0|      }
  141|      0|      CURL_TRC_M(data, "%s%s", msg, blen ? "" : "...");
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  142|      0|    }
  143|      0|    else
  144|      0|      CURL_TRC_M(data, "%s [%d][-]", info, sockindex);
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  145|      0|  }
  146|  33.3k|}
Curl_conn_cf_discard_chain:
  151|  23.7k|{
  152|  23.7k|  struct Curl_cfilter *cfn, *cf = *pcf;
  153|       |
  154|  23.7k|  if(cf) {
  ------------------
  |  Branch (154:6): [True: 9.01k, False: 14.7k]
  ------------------
  155|  9.01k|    *pcf = NULL;
  156|  21.9k|    while(cf) {
  ------------------
  |  Branch (156:11): [True: 12.9k, False: 9.01k]
  ------------------
  157|  12.9k|      cfn = cf->next;
  158|       |      /* prevent destroying filter to mess with its sub-chain, since
  159|       |       * we have the reference now and will call destroy on it.
  160|       |       */
  161|  12.9k|      cf->next = NULL;
  162|  12.9k|      cf->cft->destroy(cf, data);
  163|  12.9k|      curlx_free(cf);
  ------------------
  |  | 1483|  12.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  164|  12.9k|      cf = cfn;
  165|  12.9k|    }
  166|  9.01k|  }
  167|  23.7k|}
Curl_conn_cf_discard_all:
  171|  22.2k|{
  172|  22.2k|  Curl_conn_cf_discard_chain(&conn->cfilter[sockindex], data);
  173|  22.2k|}
Curl_conn_close:
  176|  15.0k|{
  177|  15.0k|  struct Curl_cfilter *cf;
  178|       |
  179|  15.0k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  15.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:3): [True: 0, False: 15.0k]
  |  Branch (179:3): [True: 15.0k, False: 0]
  ------------------
  180|       |  /* it is valid to call that without filters being present */
  181|  15.0k|  cf = data->conn->cfilter[sockindex];
  182|  15.0k|  if(cf) {
  ------------------
  |  Branch (182:6): [True: 7.53k, False: 7.53k]
  ------------------
  183|  7.53k|    cf->cft->do_close(cf, data);
  184|  7.53k|  }
  185|  15.0k|  Curl_shutdown_clear(data, sockindex);
  186|  15.0k|}
Curl_conn_shutdown:
  189|  2.48k|{
  190|  2.48k|  struct Curl_cfilter *cf;
  191|  2.48k|  CURLcode result = CURLE_OK;
  192|  2.48k|  timediff_t timeout_ms;
  193|       |
  194|  2.48k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  2.48k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (194:3): [True: 0, False: 2.48k]
  |  Branch (194:3): [True: 2.48k, False: 0]
  ------------------
  195|       |
  196|  2.48k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|  2.48k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 2.48k, False: 0]
  |  |  |  Branch (382:50): [True: 2.48k, False: 0]
  |  |  ------------------
  ------------------
  197|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  198|       |
  199|       |  /* Get the first connected filter that is not shut down already. */
  200|  2.48k|  cf = data->conn->cfilter[sockindex];
  201|  2.48k|  while(cf && (!cf->connected || cf->shutdown))
  ------------------
  |  Branch (201:9): [True: 2.48k, False: 0]
  |  Branch (201:16): [True: 0, False: 2.48k]
  |  Branch (201:34): [True: 0, False: 2.48k]
  ------------------
  202|      0|    cf = cf->next;
  203|       |
  204|  2.48k|  if(!cf) {
  ------------------
  |  Branch (204:6): [True: 0, False: 2.48k]
  ------------------
  205|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  206|      0|    return CURLE_OK;
  207|      0|  }
  208|       |
  209|  2.48k|  *done = FALSE;
  ------------------
  |  | 1058|  2.48k|#define FALSE false
  ------------------
  210|  2.48k|  if(!Curl_shutdown_started(data, sockindex)) {
  ------------------
  |  Branch (210:6): [True: 0, False: 2.48k]
  ------------------
  211|      0|    Curl_shutdown_start(data, sockindex, 0);
  212|      0|  }
  213|  2.48k|  else {
  214|  2.48k|    timeout_ms = Curl_shutdown_timeleft(data, data->conn, sockindex);
  215|  2.48k|    if(timeout_ms < 0) {
  ------------------
  |  Branch (215:8): [True: 0, False: 2.48k]
  ------------------
  216|       |      /* info message, since this might be regarded as acceptable */
  217|      0|      infof(data, "shutdown timeout");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  218|      0|      return CURLE_OPERATION_TIMEDOUT;
  219|      0|    }
  220|  2.48k|  }
  221|       |
  222|  5.38k|  while(cf) {
  ------------------
  |  Branch (222:9): [True: 2.95k, False: 2.43k]
  ------------------
  223|  2.95k|    if(!cf->shutdown) {
  ------------------
  |  Branch (223:8): [True: 2.95k, False: 0]
  ------------------
  224|  2.95k|      bool cfdone = FALSE;
  ------------------
  |  | 1058|  2.95k|#define FALSE false
  ------------------
  225|  2.95k|      result = cf->cft->do_shutdown(cf, data, &cfdone);
  226|  2.95k|      if(result) {
  ------------------
  |  Branch (226:10): [True: 0, False: 2.95k]
  ------------------
  227|      0|        CURL_TRC_CF(data, cf, "shut down failed with %d", result);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  228|      0|        return result;
  229|      0|      }
  230|  2.95k|      else if(!cfdone) {
  ------------------
  |  Branch (230:15): [True: 52, False: 2.90k]
  ------------------
  231|     52|        CURL_TRC_CF(data, cf, "shut down not done yet");
  ------------------
  |  |  153|     52|  do {                                          \
  |  |  154|     52|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     52|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    104|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 52, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 52]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    104|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     52|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     52|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     52|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 52]
  |  |  ------------------
  ------------------
  232|     52|        return CURLE_OK;
  233|     52|      }
  234|  2.90k|      CURL_TRC_CF(data, cf, "shut down successfully");
  ------------------
  |  |  153|  2.90k|  do {                                          \
  |  |  154|  2.90k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.90k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.80k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.90k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.90k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.80k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.90k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.90k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.90k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.90k]
  |  |  ------------------
  ------------------
  235|  2.90k|      cf->shutdown = TRUE;
  ------------------
  |  | 1055|  2.90k|#define TRUE true
  ------------------
  236|  2.90k|    }
  237|  2.90k|    cf = cf->next;
  238|  2.90k|  }
  239|  2.43k|  *done = (!result);
  240|  2.43k|  return result;
  241|  2.48k|}
Curl_cf_recv:
  245|   116k|{
  246|   116k|  struct Curl_cfilter *cf;
  247|       |
  248|   116k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|   116k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (248:3): [True: 0, False: 116k]
  |  Branch (248:3): [True: 116k, False: 0]
  ------------------
  249|   116k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|   116k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (249:3): [True: 0, False: 116k]
  |  Branch (249:3): [True: 116k, False: 0]
  ------------------
  250|   116k|  cf = data->conn->cfilter[sockindex];
  251|   116k|  while(cf && !cf->connected)
  ------------------
  |  Branch (251:9): [True: 116k, False: 0]
  |  Branch (251:15): [True: 0, False: 116k]
  ------------------
  252|      0|    cf = cf->next;
  253|   116k|  if(cf)
  ------------------
  |  Branch (253:6): [True: 116k, False: 0]
  ------------------
  254|   116k|    return cf->cft->do_recv(cf, data, buf, len, pnread);
  255|      0|  failf(data, "recv: no filter connected");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  256|      0|  DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (256:3): [Folded, False: 0]
  |  Branch (256:3): [Folded, False: 0]
  ------------------
  257|      0|  *pnread = 0;
  258|      0|  return CURLE_FAILED_INIT;
  259|      0|}
Curl_cf_send:
  264|  20.9k|{
  265|  20.9k|  struct Curl_cfilter *cf;
  266|       |
  267|  20.9k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  20.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (267:3): [True: 0, False: 20.9k]
  |  Branch (267:3): [True: 20.9k, False: 0]
  ------------------
  268|  20.9k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  20.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (268:3): [True: 0, False: 20.9k]
  |  Branch (268:3): [True: 20.9k, False: 0]
  ------------------
  269|  20.9k|  cf = data->conn->cfilter[sockindex];
  270|  20.9k|  while(cf && !cf->connected)
  ------------------
  |  Branch (270:9): [True: 20.9k, False: 0]
  |  Branch (270:15): [True: 0, False: 20.9k]
  ------------------
  271|      0|    cf = cf->next;
  272|  20.9k|  if(cf) {
  ------------------
  |  Branch (272:6): [True: 20.9k, False: 0]
  ------------------
  273|  20.9k|    return cf->cft->do_send(cf, data, buf, len, eos, pnwritten);
  274|  20.9k|  }
  275|      0|  failf(data, "send: no filter connected");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  276|      0|  DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (276:3): [Folded, False: 0]
  |  Branch (276:3): [Folded, False: 0]
  ------------------
  277|      0|  *pnwritten = 0;
  278|      0|  return CURLE_FAILED_INIT;
  279|      0|}
Curl_cf_recv_bufq:
  299|  16.0k|{
  300|  16.0k|  struct cf_io_ctx io;
  301|       |
  302|  16.0k|  if(!cf || !data) {
  ------------------
  |  Branch (302:6): [True: 0, False: 16.0k]
  |  Branch (302:13): [True: 0, False: 16.0k]
  ------------------
  303|      0|    *pnread = 0;
  304|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  305|      0|  }
  306|  16.0k|  io.data = data;
  307|  16.0k|  io.cf = cf;
  308|  16.0k|  return Curl_bufq_sipn(bufq, maxlen, cf_bufq_reader, &io, pnread);
  309|  16.0k|}
Curl_cf_send_bufq:
  324|  20.1k|{
  325|  20.1k|  struct cf_io_ctx io;
  326|       |
  327|  20.1k|  if(!cf || !data) {
  ------------------
  |  Branch (327:6): [True: 0, False: 20.1k]
  |  Branch (327:13): [True: 0, False: 20.1k]
  ------------------
  328|      0|    *pnwritten = 0;
  329|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  330|      0|  }
  331|  20.1k|  io.data = data;
  332|  20.1k|  io.cf = cf;
  333|  20.1k|  if(buf && blen)
  ------------------
  |  Branch (333:6): [True: 10.5k, False: 9.67k]
  |  Branch (333:13): [True: 10.5k, False: 0]
  ------------------
  334|  10.5k|    return Curl_bufq_write_pass(bufq, buf, blen, cf_bufq_writer, &io,
  335|  10.5k|                                pnwritten);
  336|  9.67k|  else
  337|  9.67k|    return Curl_bufq_pass(bufq, cf_bufq_writer, &io, pnwritten);
  338|  20.1k|}
Curl_cf_create:
  343|  33.3k|{
  344|  33.3k|  struct Curl_cfilter *cf;
  345|  33.3k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  346|       |
  347|  33.3k|  DEBUGASSERT(cft);
  ------------------
  |  | 1081|  33.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (347:3): [True: 0, False: 33.3k]
  |  Branch (347:3): [True: 33.3k, False: 0]
  ------------------
  348|  33.3k|  cf = curlx_calloc(1, sizeof(*cf));
  ------------------
  |  | 1480|  33.3k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  349|  33.3k|  if(!cf)
  ------------------
  |  Branch (349:6): [True: 0, False: 33.3k]
  ------------------
  350|      0|    goto out;
  351|       |
  352|  33.3k|  cf->cft = cft;
  353|  33.3k|  cf->ctx = ctx;
  354|  33.3k|  result = CURLE_OK;
  355|  33.3k|out:
  356|  33.3k|  *pcf = cf;
  357|  33.3k|  return result;
  358|  33.3k|}
Curl_conn_cf_add:
  364|  18.0k|{
  365|  18.0k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  18.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (365:3): [True: 0, False: 18.0k]
  |  Branch (365:3): [True: 18.0k, False: 0]
  ------------------
  366|  18.0k|  DEBUGASSERT(!cf->conn);
  ------------------
  |  | 1081|  18.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (366:3): [True: 0, False: 18.0k]
  |  Branch (366:3): [True: 18.0k, False: 0]
  ------------------
  367|  18.0k|  DEBUGASSERT(!cf->next);
  ------------------
  |  | 1081|  18.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (367:3): [True: 0, False: 18.0k]
  |  Branch (367:3): [True: 18.0k, False: 0]
  ------------------
  368|       |
  369|  18.0k|  cf->next = conn->cfilter[sockindex];
  370|  18.0k|  cf->conn = conn;
  371|  18.0k|  cf->sockindex = sockindex;
  372|  18.0k|  conn->cfilter[sockindex] = cf;
  373|  18.0k|  CURL_TRC_CF(data, cf, "added");
  ------------------
  |  |  153|  18.0k|  do {                                          \
  |  |  154|  18.0k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  18.0k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  36.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 18.0k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 18.0k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  36.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  18.0k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  18.0k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  18.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 18.0k]
  |  |  ------------------
  ------------------
  374|  18.0k|}
Curl_conn_cf_insert_after:
  378|  7.76k|{
  379|  7.76k|  struct Curl_cfilter *tail, **pnext;
  380|       |
  381|  7.76k|  DEBUGASSERT(cf_at);
  ------------------
  |  | 1081|  7.76k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (381:3): [True: 0, False: 7.76k]
  |  Branch (381:3): [True: 7.76k, False: 0]
  ------------------
  382|  7.76k|  DEBUGASSERT(cf_new);
  ------------------
  |  | 1081|  7.76k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (382:3): [True: 0, False: 7.76k]
  |  Branch (382:3): [True: 7.76k, False: 0]
  ------------------
  383|  7.76k|  DEBUGASSERT(!cf_new->conn);
  ------------------
  |  | 1081|  7.76k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (383:3): [True: 0, False: 7.76k]
  |  Branch (383:3): [True: 7.76k, False: 0]
  ------------------
  384|       |
  385|  7.76k|  tail = cf_at->next;
  386|  7.76k|  cf_at->next = cf_new;
  387|  7.76k|  do {
  388|  7.76k|    cf_new->conn = cf_at->conn;
  389|  7.76k|    cf_new->sockindex = cf_at->sockindex;
  390|  7.76k|    pnext = &cf_new->next;
  391|  7.76k|    cf_new = cf_new->next;
  392|  7.76k|  } while(cf_new);
  ------------------
  |  Branch (392:11): [True: 0, False: 7.76k]
  ------------------
  393|  7.76k|  *pnext = tail;
  394|  7.76k|}
Curl_conn_cf_connect:
  423|  33.6k|{
  424|  33.6k|  if(cf)
  ------------------
  |  Branch (424:6): [True: 33.6k, False: 0]
  ------------------
  425|  33.6k|    return cf->cft->do_connect(cf, data, done);
  426|      0|  return CURLE_FAILED_INIT;
  427|  33.6k|}
Curl_conn_cf_send:
  438|  12.4k|{
  439|  12.4k|  if(cf)
  ------------------
  |  Branch (439:6): [True: 12.4k, False: 0]
  ------------------
  440|  12.4k|    return cf->cft->do_send(cf, data, buf, len, eos, pnwritten);
  441|      0|  *pnwritten = 0;
  442|      0|  return CURLE_SEND_ERROR;
  443|  12.4k|}
Curl_conn_cf_recv:
  447|  20.2k|{
  448|  20.2k|  if(cf)
  ------------------
  |  Branch (448:6): [True: 20.2k, False: 0]
  ------------------
  449|  20.2k|    return cf->cft->do_recv(cf, data, buf, len, pnread);
  450|      0|  *pnread = 0;
  451|      0|  return CURLE_RECV_ERROR;
  452|  20.2k|}
Curl_conn_connect:
  544|  14.2k|{
  545|  14.2k|#define CF_CONN_NUM_POLLS_ON_STACK 5
  546|  14.2k|  struct pollfd a_few_on_stack[CF_CONN_NUM_POLLS_ON_STACK];
  547|  14.2k|  struct easy_pollset ps;
  548|  14.2k|  struct curl_pollfds cpfds;
  549|  14.2k|  struct Curl_cfilter *cf;
  550|  14.2k|  CURLcode result = CURLE_OK;
  551|       |
  552|  14.2k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (552:3): [True: 0, False: 14.2k]
  |  Branch (552:3): [True: 14.2k, False: 0]
  ------------------
  553|  14.2k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (553:3): [True: 0, False: 14.2k]
  |  Branch (553:3): [True: 14.2k, False: 0]
  ------------------
  554|  14.2k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|  14.2k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 14.2k, False: 0]
  |  |  |  Branch (382:50): [True: 14.2k, False: 0]
  |  |  ------------------
  ------------------
  555|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  556|       |
  557|  14.2k|  if(data->conn->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  215|  14.2k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (557:6): [True: 0, False: 14.2k]
  ------------------
  558|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  559|      0|    return CURLE_OK;
  560|      0|  }
  561|       |
  562|  14.2k|  cf = data->conn->cfilter[sockindex];
  563|  14.2k|  if(!cf) {
  ------------------
  |  Branch (563:6): [True: 0, False: 14.2k]
  ------------------
  564|      0|    *done = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  565|      0|    return CURLE_FAILED_INIT;
  566|      0|  }
  567|       |
  568|  14.2k|  *done = (bool)cf->connected;
  569|  14.2k|  if(*done)
  ------------------
  |  Branch (569:6): [True: 2.79k, False: 11.4k]
  ------------------
  570|  2.79k|    return CURLE_OK;
  571|       |
  572|  11.4k|  Curl_pollset_init(&ps);
  573|  11.4k|  Curl_pollfds_init(&cpfds, a_few_on_stack, CF_CONN_NUM_POLLS_ON_STACK);
  ------------------
  |  |  545|  11.4k|#define CF_CONN_NUM_POLLS_ON_STACK 5
  ------------------
  574|  11.4k|  while(!*done) {
  ------------------
  |  Branch (574:9): [True: 11.4k, False: 0]
  ------------------
  575|  11.4k|    if(Curl_conn_needs_flush(data, sockindex)) {
  ------------------
  |  Branch (575:8): [True: 0, False: 11.4k]
  ------------------
  576|      0|      DEBUGF(infof(data, "Curl_conn_connect(index=%d), flush", sockindex));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  577|      0|      result = Curl_conn_flush(data, sockindex);
  578|      0|      if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (578:10): [True: 0, False: 0]
  |  Branch (578:20): [True: 0, False: 0]
  ------------------
  579|      0|        return result;
  580|      0|    }
  581|       |
  582|  11.4k|    result = cf->cft->do_connect(cf, data, done);
  583|  11.4k|    CURL_TRC_CF(data, cf, "Curl_conn_connect(block=%d) -> %d, done=%d",
  ------------------
  |  |  153|  11.4k|  do {                                          \
  |  |  154|  11.4k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  11.4k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  22.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 11.4k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 11.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  22.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  11.4k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  11.4k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  11.4k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 11.4k]
  |  |  ------------------
  ------------------
  584|  11.4k|                blocking, result, *done);
  585|  11.4k|    if(!result && *done) {
  ------------------
  |  Branch (585:8): [True: 10.9k, False: 521]
  |  Branch (585:19): [True: 6.79k, False: 4.13k]
  ------------------
  586|       |      /* Now that the complete filter chain is connected, let all filters
  587|       |       * persist information at the connection. E.g. cf-socket sets the
  588|       |       * socket and ip related information. */
  589|  6.79k|      cf_cntrl_update_info(data, data->conn);
  590|  6.79k|      conn_report_connect_stats(cf, data);
  591|  6.79k|      data->conn->keepalive = *Curl_pgrs_now(data);
  592|  6.79k|      VERBOSE(result = cf_verboseconnect(data, cf));
  ------------------
  |  | 1618|  6.79k|#define VERBOSE(x) x
  ------------------
  593|  6.79k|      VERBOSE(Curl_conn_trc_filters(data, sockindex, "connected"));
  ------------------
  |  | 1618|  6.79k|#define VERBOSE(x) x
  ------------------
  594|  6.79k|      conn_remove_setup_filters(data, sockindex);
  595|  6.79k|      VERBOSE(Curl_conn_trc_filters(data, sockindex, "reduced to"));
  ------------------
  |  | 1618|  6.79k|#define VERBOSE(x) x
  ------------------
  596|  6.79k|      goto out;
  597|  6.79k|    }
  598|  4.65k|    else if(result) {
  ------------------
  |  Branch (598:13): [True: 521, False: 4.13k]
  ------------------
  599|    521|      CURL_TRC_CF(data, cf, "Curl_conn_connect(), filter returned %d", result);
  ------------------
  |  |  153|    521|  do {                                          \
  |  |  154|    521|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    521|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.04k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 521, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 521]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.04k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    521|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    521|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    521|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 521]
  |  |  ------------------
  ------------------
  600|    521|      VERBOSE(Curl_conn_trc_filters(data, sockindex, "failed to connect"));
  ------------------
  |  | 1618|    521|#define VERBOSE(x) x
  ------------------
  601|    521|      conn_report_connect_stats(cf, data);
  602|    521|      goto out;
  603|    521|    }
  604|       |
  605|  4.13k|    if(!blocking)
  ------------------
  |  Branch (605:8): [True: 4.13k, False: 0]
  ------------------
  606|  4.13k|      goto out;
  607|      0|    else {
  608|       |      /* check allowed time left */
  609|      0|      const timediff_t timeout_ms = Curl_timeleft_ms(data);
  610|      0|      curl_socket_t sockfd = Curl_conn_cf_get_socket(cf, data);
  611|      0|      int rc;
  612|       |
  613|      0|      if(timeout_ms < 0) {
  ------------------
  |  Branch (613:10): [True: 0, False: 0]
  ------------------
  614|       |        /* no need to continue if time already is up */
  615|      0|        failf(data, "connect timeout");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  616|      0|        result = CURLE_OPERATION_TIMEDOUT;
  617|      0|        goto out;
  618|      0|      }
  619|       |
  620|      0|      CURL_TRC_CF(data, cf, "Curl_conn_connect(block=1), do poll");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  621|      0|      Curl_pollset_reset(&ps);
  622|      0|      Curl_pollfds_reset(&cpfds);
  623|       |      /* In general, we want to send after connect, wait on that. */
  624|      0|      if(sockfd != CURL_SOCKET_BAD)
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (624:10): [True: 0, False: 0]
  ------------------
  625|      0|        result = Curl_pollset_set_out_only(data, &ps, sockfd);
  ------------------
  |  |  174|      0|  Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, CURL_POLL_IN)
  |  |  ------------------
  |  |  |  |  284|      0|#define CURL_POLL_OUT    2
  |  |  ------------------
  |  |                 Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, CURL_POLL_IN)
  |  |  ------------------
  |  |  |  |  283|      0|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
  626|      0|      if(!result)
  ------------------
  |  Branch (626:10): [True: 0, False: 0]
  ------------------
  627|      0|        result = Curl_conn_adjust_pollset(data, data->conn, &ps);
  628|      0|      if(result)
  ------------------
  |  Branch (628:10): [True: 0, False: 0]
  ------------------
  629|      0|        goto out;
  630|      0|      result = Curl_pollfds_add_ps(&cpfds, &ps);
  631|      0|      if(result)
  ------------------
  |  Branch (631:10): [True: 0, False: 0]
  ------------------
  632|      0|        goto out;
  633|       |
  634|      0|      rc = Curl_poll(cpfds.pfds, cpfds.n,
  635|      0|                     CURLMIN(timeout_ms, (cpfds.n ? 1000 : 10)));
  ------------------
  |  | 1287|      0|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 0, False: 0]
  |  |  |  Branch (1287:31): [True: 0, False: 0]
  |  |  |  Branch (1287:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  636|      0|      CURL_TRC_CF(data, cf, "Curl_conn_connect(block=1), Curl_poll() -> %d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  637|      0|                  rc);
  638|      0|      if(rc < 0) {
  ------------------
  |  Branch (638:10): [True: 0, False: 0]
  ------------------
  639|      0|        result = CURLE_COULDNT_CONNECT;
  640|      0|        goto out;
  641|      0|      }
  642|       |      /* continue iterating */
  643|      0|    }
  644|  4.13k|  }
  645|       |
  646|  11.4k|out:
  647|  11.4k|  Curl_pollset_cleanup(&ps);
  648|  11.4k|  Curl_pollfds_cleanup(&cpfds);
  649|  11.4k|  return result;
  650|  11.4k|}
Curl_conn_is_connected:
  660|   192k|{
  661|   192k|  struct Curl_cfilter *cf;
  662|       |
  663|   192k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|   192k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 192k, False: 0]
  |  |  |  Branch (382:50): [True: 192k, False: 0]
  |  |  ------------------
  ------------------
  664|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  665|   192k|  cf = conn->cfilter[sockindex];
  666|   192k|  if(cf)
  ------------------
  |  Branch (666:6): [True: 189k, False: 2.48k]
  ------------------
  667|   189k|    return (bool)cf->connected;
  668|  2.48k|  else if(conn->scheme->flags & PROTOPT_NONETWORK)
  ------------------
  |  |  215|  2.48k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (668:11): [True: 0, False: 2.48k]
  ------------------
  669|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  670|  2.48k|  return FALSE;
  ------------------
  |  | 1058|  2.48k|#define FALSE false
  ------------------
  671|   192k|}
Curl_conn_is_ssl:
  704|  18.1k|{
  705|  18.1k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|  18.1k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 18.1k, False: 0]
  |  |  |  Branch (382:50): [True: 18.1k, False: 0]
  |  |  ------------------
  ------------------
  706|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  707|  18.1k|  return conn ? cf_is_ssl(conn->cfilter[sockindex]) : FALSE;
  ------------------
  |  | 1058|  18.1k|#define FALSE false
  ------------------
  |  Branch (707:10): [True: 18.1k, False: 0]
  ------------------
  708|  18.1k|}
Curl_conn_is_multiplex:
  739|   136k|{
  740|   136k|  struct Curl_cfilter *cf;
  741|       |
  742|   136k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|   136k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 136k, False: 0]
  |  |  |  Branch (382:50): [True: 136k, False: 0]
  |  |  ------------------
  ------------------
  743|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  744|   136k|  cf = conn ? conn->cfilter[sockindex] : NULL;
  ------------------
  |  Branch (744:8): [True: 136k, False: 0]
  ------------------
  745|       |
  746|   139k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (746:9): [True: 138k, False: 1.02k]
  ------------------
  747|   138k|    if(cf->cft->flags & CF_TYPE_MULTIPLEX)
  ------------------
  |  |  208|   138k|#define CF_TYPE_MULTIPLEX   (1 << 2)
  ------------------
  |  Branch (747:8): [True: 18.6k, False: 120k]
  ------------------
  748|  18.6k|      return TRUE;
  ------------------
  |  | 1055|  18.6k|#define TRUE true
  ------------------
  749|   120k|    if(cf->cft->flags & (CF_TYPE_IP_CONNECT | CF_TYPE_SSL))
  ------------------
  |  |  206|   120k|#define CF_TYPE_IP_CONNECT  (1 << 0)
  ------------------
                  if(cf->cft->flags & (CF_TYPE_IP_CONNECT | CF_TYPE_SSL))
  ------------------
  |  |  207|   120k|#define CF_TYPE_SSL         (1 << 1)
  ------------------
  |  Branch (749:8): [True: 116k, False: 3.52k]
  ------------------
  750|   116k|      return FALSE;
  ------------------
  |  | 1058|   116k|#define FALSE false
  ------------------
  751|   120k|  }
  752|  1.02k|  return FALSE;
  ------------------
  |  | 1058|  1.02k|#define FALSE false
  ------------------
  753|   136k|}
Curl_socktype_for_transport:
  763|  7.53k|{
  764|  7.53k|  switch(transport) {
  765|  7.53k|  case TRNSPRT_TCP:
  ------------------
  |  |  307|  7.53k|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (765:3): [True: 7.53k, False: 0]
  ------------------
  766|  7.53k|    return SOCK_STREAM;
  767|      0|  case TRNSPRT_UNIX:
  ------------------
  |  |  310|      0|#define TRNSPRT_UNIX 6
  ------------------
  |  Branch (767:3): [True: 0, False: 7.53k]
  ------------------
  768|      0|    return SOCK_STREAM;
  769|      0|  default: /* UDP and QUIC */
  ------------------
  |  Branch (769:3): [True: 0, False: 7.53k]
  ------------------
  770|       |    return SOCK_DGRAM;
  771|  7.53k|  }
  772|  7.53k|}
Curl_protocol_for_transport:
  775|  7.53k|{
  776|  7.53k|  switch(transport) {
  777|  7.53k|  case TRNSPRT_TCP:
  ------------------
  |  |  307|  7.53k|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (777:3): [True: 7.53k, False: 0]
  ------------------
  778|  7.53k|    return IPPROTO_TCP;
  779|      0|  case TRNSPRT_UNIX:
  ------------------
  |  |  310|      0|#define TRNSPRT_UNIX 6
  ------------------
  |  Branch (779:3): [True: 0, False: 7.53k]
  ------------------
  780|      0|    return IPPROTO_IP;
  781|      0|  default: /* UDP and QUIC */
  ------------------
  |  Branch (781:3): [True: 0, False: 7.53k]
  ------------------
  782|       |    return IPPROTO_UDP;
  783|  7.53k|  }
  784|  7.53k|}
Curl_conn_get_alpn_negotiated:
  799|  6.79k|{
  800|  6.79k|  struct Curl_cfilter *cf = conn->cfilter[FIRSTSOCKET];
  ------------------
  |  |  303|  6.79k|#define FIRSTSOCKET     0
  ------------------
  801|  6.79k|  return Curl_conn_cf_get_alpn_negotiated(cf, data);
  802|  6.79k|}
Curl_conn_http_version:
  806|  22.6k|{
  807|  22.6k|  struct Curl_cfilter *cf;
  808|  22.6k|  CURLcode result = CURLE_UNKNOWN_OPTION;
  809|  22.6k|  unsigned char v = 0;
  810|       |
  811|  22.6k|  cf = conn->cfilter[FIRSTSOCKET];
  ------------------
  |  |  303|  22.6k|#define FIRSTSOCKET     0
  ------------------
  812|  22.6k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (812:9): [True: 22.6k, False: 0]
  ------------------
  813|  22.6k|    if(cf->cft->flags & CF_TYPE_HTTP) {
  ------------------
  |  |  210|  22.6k|#define CF_TYPE_HTTP        (1 << 4)
  ------------------
  |  Branch (813:8): [True: 3.22k, False: 19.4k]
  ------------------
  814|  3.22k|      int value = 0;
  815|  3.22k|      result = cf->cft->query(cf, data, CF_QUERY_HTTP_VERSION, &value, NULL);
  ------------------
  |  |  173|  3.22k|#define CF_QUERY_HTTP_VERSION       9  /* number (10/11/20/30)   - */
  ------------------
  816|  3.22k|      if(!result && ((value < 0) || (value > 255)))
  ------------------
  |  Branch (816:10): [True: 3.22k, False: 0]
  |  Branch (816:22): [True: 0, False: 3.22k]
  |  Branch (816:37): [True: 0, False: 3.22k]
  ------------------
  817|      0|        result = CURLE_FAILED_INIT;
  818|  3.22k|      else
  819|  3.22k|        v = (unsigned char)value;
  820|  3.22k|      break;
  821|  3.22k|    }
  822|  19.4k|    if(cf->cft->flags & (CF_TYPE_IP_CONNECT | CF_TYPE_SSL))
  ------------------
  |  |  206|  19.4k|#define CF_TYPE_IP_CONNECT  (1 << 0)
  ------------------
                  if(cf->cft->flags & (CF_TYPE_IP_CONNECT | CF_TYPE_SSL))
  ------------------
  |  |  207|  19.4k|#define CF_TYPE_SSL         (1 << 1)
  ------------------
  |  Branch (822:8): [True: 19.4k, False: 0]
  ------------------
  823|  19.4k|      break;
  824|  19.4k|  }
  825|  22.6k|  return (unsigned char)(result ? 0 : v);
  ------------------
  |  Branch (825:26): [True: 19.4k, False: 3.22k]
  ------------------
  826|  22.6k|}
Curl_conn_data_pending:
  829|   197k|{
  830|   197k|  struct Curl_cfilter *cf;
  831|       |
  832|   197k|  (void)data;
  833|   197k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|   197k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (833:3): [True: 0, False: 197k]
  |  Branch (833:3): [True: 197k, False: 0]
  ------------------
  834|   197k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|   197k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (834:3): [True: 0, False: 197k]
  |  Branch (834:3): [True: 197k, False: 0]
  ------------------
  835|   197k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|   197k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 197k, False: 0]
  |  |  |  Branch (382:50): [True: 197k, False: 0]
  |  |  ------------------
  ------------------
  836|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  837|       |
  838|   197k|  cf = data->conn->cfilter[sockindex];
  839|   197k|  while(cf && !cf->connected) {
  ------------------
  |  Branch (839:9): [True: 197k, False: 0]
  |  Branch (839:15): [True: 0, False: 197k]
  ------------------
  840|      0|    cf = cf->next;
  841|      0|  }
  842|   197k|  if(cf) {
  ------------------
  |  Branch (842:6): [True: 197k, False: 0]
  ------------------
  843|   197k|    return cf->cft->has_data_pending(cf, data);
  844|   197k|  }
  845|      0|  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  846|   197k|}
Curl_conn_cf_needs_flush:
  850|   222k|{
  851|   222k|  CURLcode result;
  852|   222k|  int pending = 0;
  853|   222k|  result = cf ? cf->cft->query(cf, data, CF_QUERY_NEED_FLUSH,
  ------------------
  |  |  171|   222k|#define CF_QUERY_NEED_FLUSH         7  /* TRUE/FALSE - */
  ------------------
  |  Branch (853:12): [True: 222k, False: 0]
  ------------------
  854|   222k|                               &pending, NULL) : CURLE_UNKNOWN_OPTION;
  855|   222k|  return (result || !pending) ? FALSE : TRUE;
  ------------------
  |  | 1058|   222k|#define FALSE false
  ------------------
                return (result || !pending) ? FALSE : TRUE;
  ------------------
  |  | 1055|   222k|#define TRUE true
  ------------------
  |  Branch (855:11): [True: 220k, False: 2.62k]
  |  Branch (855:21): [True: 0, False: 2.62k]
  ------------------
  856|   222k|}
Curl_conn_needs_flush:
  859|   222k|{
  860|   222k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|   222k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 222k, False: 0]
  |  |  |  Branch (382:50): [True: 222k, False: 0]
  |  |  ------------------
  ------------------
  861|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  862|   222k|  return Curl_conn_cf_needs_flush(data->conn->cfilter[sockindex], data);
  863|   222k|}
Curl_conn_cf_adjust_pollset:
  868|   219k|{
  869|   219k|  CURLcode result = CURLE_OK;
  870|       |  /* Get the lowest not-connected filter, if there are any */
  871|   227k|  while(cf && !cf->connected && cf->next && !cf->next->connected)
  ------------------
  |  Branch (871:9): [True: 117k, False: 109k]
  |  Branch (871:15): [True: 12.4k, False: 105k]
  |  Branch (871:33): [True: 12.4k, False: 0]
  |  Branch (871:45): [True: 8.27k, False: 4.13k]
  ------------------
  872|  8.27k|    cf = cf->next;
  873|       |  /* Skip all filters that have already shut down */
  874|   219k|  while(cf && cf->shutdown)
  ------------------
  |  Branch (874:9): [True: 109k, False: 109k]
  |  Branch (874:15): [True: 0, False: 109k]
  ------------------
  875|      0|    cf = cf->next;
  876|       |  /* From there on, give all filters a chance to adjust the pollset.
  877|       |   * Lower filters are called later, so they may override */
  878|   342k|  while(cf && !result) {
  ------------------
  |  Branch (878:9): [True: 123k, False: 219k]
  |  Branch (878:15): [True: 123k, False: 0]
  ------------------
  879|   123k|    result = cf->cft->adjust_pollset(cf, data, ps);
  880|   123k|    cf = cf->next;
  881|   123k|  }
  882|   219k|  return result;
  883|   219k|}
Curl_conn_adjust_pollset:
  888|   114k|{
  889|   114k|  CURLcode result = CURLE_OK;
  890|   114k|  int i;
  891|       |
  892|   114k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|   114k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (892:3): [True: 0, False: 114k]
  |  Branch (892:3): [True: 114k, False: 0]
  ------------------
  893|   114k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|   114k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (893:3): [True: 0, False: 114k]
  |  Branch (893:3): [True: 114k, False: 0]
  ------------------
  894|       |  /* During connect time, connection filters may add sockets to the pollset
  895|       |   * even when the transfer neither wants to send nor receive. And those
  896|       |   * sockets, when having events, are served.
  897|       |   * Once connected however, a transfer that neither wants to send nor receive
  898|       |   * will never call the connection filters. Any sockets added by the filters
  899|       |   * will not change state and POLLIN/POLLOUT events will trigger forever,
  900|       |   * making us busy loop. See #21671 */
  901|   114k|  if(ps->n || !Curl_conn_is_connected(conn, FIRSTSOCKET) ||
  ------------------
  |  |  303|  4.64k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (901:6): [True: 109k, False: 4.64k]
  |  Branch (901:15): [True: 0, False: 4.64k]
  ------------------
  902|  4.64k|     (conn->cfilter[SECONDARYSOCKET] &&
  ------------------
  |  |  304|  4.64k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (902:7): [True: 0, False: 4.64k]
  ------------------
  903|   109k|      !Curl_conn_is_connected(conn, SECONDARYSOCKET))) {
  ------------------
  |  |  304|      0|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (903:7): [True: 0, False: 0]
  ------------------
  904|   328k|    for(i = 0; (i < 2) && !result && conn; ++i) {
  ------------------
  |  Branch (904:16): [True: 219k, False: 109k]
  |  Branch (904:27): [True: 219k, False: 0]
  |  Branch (904:38): [True: 219k, False: 0]
  ------------------
  905|   219k|      result = Curl_conn_cf_adjust_pollset(conn->cfilter[i], data, ps);
  906|   219k|    }
  907|   109k|  }
  908|   114k|  return result;
  909|   114k|}
Curl_conn_cf_cntrl:
  991|  74.3k|{
  992|  74.3k|  CURLcode result = CURLE_OK;
  993|       |
  994|   132k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (994:9): [True: 58.3k, False: 73.6k]
  ------------------
  995|  58.3k|    if(cf->cft->cntrl == Curl_cf_def_cntrl)
  ------------------
  |  Branch (995:8): [True: 15.0k, False: 43.3k]
  ------------------
  996|  15.0k|      continue;
  997|  43.3k|    result = cf->cft->cntrl(cf, data, event, arg1, arg2);
  998|  43.3k|    if(!ignore_result && result)
  ------------------
  |  Branch (998:8): [True: 4.20k, False: 39.1k]
  |  Branch (998:26): [True: 709, False: 3.49k]
  ------------------
  999|    709|      break;
 1000|  43.3k|  }
 1001|  74.3k|  return result;
 1002|  74.3k|}
Curl_conn_cf_get_socket:
 1006|  21.5k|{
 1007|  21.5k|  curl_socket_t sock;
 1008|  21.5k|  if(cf && !cf->cft->query(cf, data, CF_QUERY_SOCKET, NULL, &sock))
  ------------------
  |  |  167|  21.5k|#define CF_QUERY_SOCKET             3  /* -          curl_socket_t */
  ------------------
  |  Branch (1008:6): [True: 21.5k, False: 0]
  |  Branch (1008:12): [True: 13.9k, False: 7.53k]
  ------------------
 1009|  13.9k|    return sock;
 1010|  7.53k|  return CURL_SOCKET_BAD;
  ------------------
  |  |  145|  7.53k|#define CURL_SOCKET_BAD (-1)
  ------------------
 1011|  21.5k|}
Curl_conn_cf_get_alpn_negotiated:
 1024|  6.79k|{
 1025|  6.79k|  const char *alpn = NULL;
 1026|  6.79k|  CURL_TRC_CF(data, cf, "query ALPN");
  ------------------
  |  |  153|  6.79k|  do {                                          \
  |  |  154|  6.79k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  6.79k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  13.5k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 6.79k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 6.79k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  13.5k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  6.79k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.79k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.79k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.79k]
  |  |  ------------------
  ------------------
 1027|  6.79k|  if(cf && !cf->cft->query(cf, data, CF_QUERY_ALPN_NEGOTIATED, NULL,
  ------------------
  |  |  181|  6.79k|#define CF_QUERY_ALPN_NEGOTIATED   15  /* -          const char * */
  ------------------
  |  Branch (1027:6): [True: 6.79k, False: 0]
  |  Branch (1027:12): [True: 0, False: 6.79k]
  ------------------
 1028|  6.79k|                           CURL_UNCONST(&alpn)))
  ------------------
  |  |  866|  6.79k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 1029|      0|    return alpn;
 1030|  6.79k|  return NULL;
 1031|  6.79k|}
Curl_conn_get_first_socket:
 1058|  4.13k|{
 1059|  4.13k|  struct Curl_cfilter *cf;
 1060|       |
 1061|  4.13k|  if(!data->conn)
  ------------------
  |  Branch (1061:6): [True: 0, False: 4.13k]
  ------------------
 1062|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
 1063|       |
 1064|  4.13k|  cf = data->conn->cfilter[FIRSTSOCKET];
  ------------------
  |  |  303|  4.13k|#define FIRSTSOCKET     0
  ------------------
 1065|       |  /* if the top filter has not connected, ask it (and its sub-filters)
 1066|       |   * for the socket. Otherwise conn->sock[sockindex] should have it. */
 1067|  4.13k|  if(cf && !cf->connected)
  ------------------
  |  Branch (1067:6): [True: 4.13k, False: 0]
  |  Branch (1067:12): [True: 4.13k, False: 0]
  ------------------
 1068|  4.13k|    return Curl_conn_cf_get_socket(cf, data);
 1069|      0|  return data->conn->sock[FIRSTSOCKET];
  ------------------
  |  |  303|      0|#define FIRSTSOCKET     0
  ------------------
 1070|  4.13k|}
Curl_conn_ev_data_setup:
 1082|  10.3k|{
 1083|  10.3k|  return cf_cntrl_all(data->conn, data, FALSE, CF_CTRL_DATA_SETUP, 0, NULL);
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
                return cf_cntrl_all(data->conn, data, FALSE, CF_CTRL_DATA_SETUP, 0, NULL);
  ------------------
  |  |  119|  10.3k|#define CF_CTRL_DATA_SETUP              4  /* 0          NULL     first fail */
  ------------------
 1084|  10.3k|}
Curl_conn_flush:
 1087|  1.05k|{
 1088|  1.05k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|  1.05k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 1.05k, False: 0]
  |  |  |  Branch (382:50): [True: 1.05k, False: 0]
  |  |  ------------------
  ------------------
 1089|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1090|  1.05k|  return Curl_conn_cf_cntrl(data->conn->cfilter[sockindex], data, FALSE,
  ------------------
  |  | 1058|  1.05k|#define FALSE false
  ------------------
 1091|  1.05k|                            CF_CTRL_FLUSH, 0, NULL);
  ------------------
  |  |  127|  1.05k|#define CF_CTRL_FLUSH            (256 + 2) /* 0          NULL     first fail */
  ------------------
 1092|  1.05k|}
Curl_conn_ev_data_done_send:
 1099|  9.20k|{
 1100|  9.20k|  cf_cntrl_all(data->conn, data, TRUE, CF_CTRL_DATA_DONE_SEND, 0, NULL);
  ------------------
  |  | 1055|  9.20k|#define TRUE true
  ------------------
                cf_cntrl_all(data->conn, data, TRUE, CF_CTRL_DATA_DONE_SEND, 0, NULL);
  ------------------
  |  |  123|  9.20k|#define CF_CTRL_DATA_DONE_SEND          8  /* 0          NULL     ignored */
  ------------------
 1101|  9.20k|}
Curl_conn_ev_data_done:
 1108|  10.3k|{
 1109|  10.3k|  cf_cntrl_all(data->conn, data, TRUE, CF_CTRL_DATA_DONE, premature, NULL);
  ------------------
  |  | 1055|  10.3k|#define TRUE true
  ------------------
                cf_cntrl_all(data->conn, data, TRUE, CF_CTRL_DATA_DONE, premature, NULL);
  ------------------
  |  |  122|  10.3k|#define CF_CTRL_DATA_DONE               7  /* premature  NULL     ignored */
  ------------------
 1110|  10.3k|}
Curl_conn_is_alive:
 1120|  3.03k|{
 1121|  3.03k|  struct Curl_cfilter *cf = conn->cfilter[FIRSTSOCKET];
  ------------------
  |  |  303|  3.03k|#define FIRSTSOCKET     0
  ------------------
 1122|  3.03k|  return cf && !cf->conn->bits.close &&
  ------------------
  |  Branch (1122:10): [True: 3.03k, False: 0]
  |  Branch (1122:16): [True: 3.03k, False: 0]
  ------------------
 1123|  3.03k|         cf->cft->is_alive(cf, data, input_pending);
  ------------------
  |  Branch (1123:10): [True: 3.03k, False: 0]
  ------------------
 1124|  3.03k|}
Curl_conn_get_max_concurrent:
 1141|  4.27k|{
 1142|  4.27k|  struct Curl_cfilter *cf;
 1143|  4.27k|  CURLcode result;
 1144|  4.27k|  int n = -1;
 1145|       |
 1146|  4.27k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|  4.27k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 4.27k, False: 0]
  |  |  |  Branch (382:50): [True: 4.27k, False: 0]
  |  |  ------------------
  ------------------
 1147|      0|    return 0;
 1148|       |
 1149|  4.27k|  cf = conn->cfilter[sockindex];
 1150|  4.27k|  result = cf ? cf->cft->query(cf, data, CF_QUERY_MAX_CONCURRENT,
  ------------------
  |  |  165|  4.27k|#define CF_QUERY_MAX_CONCURRENT     1  /* number     -        */
  ------------------
  |  Branch (1150:12): [True: 4.27k, False: 0]
  ------------------
 1151|  4.27k|                               &n, NULL) : CURLE_UNKNOWN_OPTION;
 1152|       |  /* If no filter answered the query, the default is a non-multiplexed
 1153|       |   * connection with limit 1. Otherwise, the query may return 0
 1154|       |   * for connections that are in shutdown, e.g. server HTTP/2 GOAWAY. */
 1155|  4.27k|  return (result || n < 0) ? 1 : (size_t)n;
  ------------------
  |  Branch (1155:11): [True: 3.78k, False: 489]
  |  Branch (1155:21): [True: 0, False: 489]
  ------------------
 1156|  4.27k|}
Curl_conn_get_stream_error:
 1161|    323|{
 1162|    323|  struct Curl_cfilter *cf;
 1163|    323|  CURLcode result;
 1164|    323|  int n = 0;
 1165|       |
 1166|    323|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|    323|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 323, False: 0]
  |  |  |  Branch (382:50): [True: 323, False: 0]
  |  |  ------------------
  ------------------
 1167|      0|    return 0;
 1168|       |
 1169|    323|  cf = conn->cfilter[sockindex];
 1170|    323|  result = cf ? cf->cft->query(cf, data, CF_QUERY_STREAM_ERROR,
  ------------------
  |  |  170|    323|#define CF_QUERY_STREAM_ERROR       6  /* error code - */
  ------------------
  |  Branch (1170:12): [True: 323, False: 0]
  ------------------
 1171|    323|                               &n, NULL) : CURLE_UNKNOWN_OPTION;
 1172|    323|  return (result || n < 0) ? 0 : n;
  ------------------
  |  Branch (1172:11): [True: 0, False: 323]
  |  Branch (1172:21): [True: 170, False: 153]
  ------------------
 1173|    323|}
Curl_conn_recv:
 1185|   116k|{
 1186|   116k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|   116k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1186:3): [True: 0, False: 116k]
  |  Branch (1186:3): [True: 116k, False: 0]
  ------------------
 1187|   116k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|   116k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1187:3): [True: 0, False: 116k]
  |  Branch (1187:3): [True: 116k, False: 0]
  ------------------
 1188|   116k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|   116k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 116k, False: 0]
  |  |  |  Branch (382:50): [True: 116k, False: 0]
  |  |  ------------------
  ------------------
 1189|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1190|   116k|  if(data && data->conn && data->conn->recv[sockindex])
  ------------------
  |  Branch (1190:6): [True: 116k, False: 0]
  |  Branch (1190:14): [True: 116k, False: 0]
  |  Branch (1190:28): [True: 116k, False: 0]
  ------------------
 1191|   116k|    return data->conn->recv[sockindex](data, sockindex, buf, len, pnread);
 1192|      0|  *pnread = 0;
 1193|      0|  return CURLE_FAILED_INIT;
 1194|   116k|}
Curl_conn_send:
 1199|  20.9k|{
 1200|  20.9k|  size_t write_len = len;
 1201|       |
 1202|  20.9k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  20.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1202:3): [True: 0, False: 20.9k]
  |  Branch (1202:3): [True: 20.9k, False: 0]
  ------------------
 1203|  20.9k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  20.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1203:3): [True: 0, False: 20.9k]
  |  Branch (1203:3): [True: 20.9k, False: 0]
  ------------------
 1204|  20.9k|  DEBUGASSERT(CONN_SOCK_IDX_VALID(sockindex));
  ------------------
  |  | 1081|  20.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1204:3): [True: 0, False: 20.9k]
  |  Branch (1204:3): [True: 0, False: 0]
  |  Branch (1204:3): [True: 20.9k, False: 0]
  |  Branch (1204:3): [True: 20.9k, False: 0]
  ------------------
 1205|  20.9k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  382|  20.9k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 20.9k, False: 0]
  |  |  |  Branch (382:50): [True: 20.9k, False: 0]
  |  |  ------------------
  ------------------
 1206|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1207|  20.9k|#ifdef DEBUGBUILD
 1208|  20.9k|  if(write_len) {
  ------------------
  |  Branch (1208:6): [True: 20.7k, False: 182]
  ------------------
 1209|       |    /* Allow debug builds to override this logic to force short sends */
 1210|  20.7k|    const char *p = getenv("CURL_SMALLSENDS");
 1211|  20.7k|    if(p) {
  ------------------
  |  Branch (1211:8): [True: 0, False: 20.7k]
  ------------------
 1212|      0|      curl_off_t altsize;
 1213|      0|      if(!curlx_str_number(&p, &altsize, write_len)) {
  ------------------
  |  Branch (1213:10): [True: 0, False: 0]
  ------------------
 1214|      0|        write_len = (size_t)altsize;
 1215|      0|        if(write_len != len)
  ------------------
  |  Branch (1215:12): [True: 0, False: 0]
  ------------------
 1216|      0|          eos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1217|      0|      }
 1218|      0|    }
 1219|  20.7k|  }
 1220|  20.9k|#endif
 1221|  20.9k|  if(data && data->conn && data->conn->send[sockindex])
  ------------------
  |  Branch (1221:6): [True: 20.9k, False: 0]
  |  Branch (1221:14): [True: 20.9k, False: 0]
  |  Branch (1221:28): [True: 20.9k, False: 0]
  ------------------
 1222|  20.9k|    return data->conn->send[sockindex](data, sockindex, buf, write_len, eos,
 1223|  20.9k|                                       pnwritten);
 1224|      0|  *pnwritten = 0;
 1225|      0|  return CURLE_FAILED_INIT;
 1226|  20.9k|}
cfilters.c:cf_bufq_reader:
  289|  16.0k|{
  290|  16.0k|  struct cf_io_ctx *io = writer_ctx;
  291|  16.0k|  return Curl_conn_cf_recv(io->cf, io->data, (char *)buf, blen, pnread);
  292|  16.0k|}
cfilters.c:cf_bufq_writer:
  314|  12.1k|{
  315|  12.1k|  struct cf_io_ctx *io = writer_ctx;
  316|       |  return Curl_conn_cf_send(io->cf, io->data, buf, buflen, FALSE, pnwritten);
  ------------------
  |  | 1058|  12.1k|#define FALSE false
  ------------------
  317|  12.1k|}
cfilters.c:cf_cntrl_update_info:
  496|  6.79k|{
  497|  6.79k|  cf_cntrl_all(conn, data, TRUE, CF_CTRL_CONN_INFO_UPDATE, 0, NULL);
  ------------------
  |  | 1055|  6.79k|#define TRUE true
  ------------------
                cf_cntrl_all(conn, data, TRUE, CF_CTRL_CONN_INFO_UPDATE, 0, NULL);
  ------------------
  |  |  125|  6.79k|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
  498|  6.79k|}
cfilters.c:conn_report_connect_stats:
  505|  7.31k|{
  506|  7.31k|  if(cf) {
  ------------------
  |  Branch (506:6): [True: 7.31k, False: 0]
  ------------------
  507|  7.31k|    struct curltime connected;
  508|  7.31k|    struct curltime appconnected;
  509|       |
  510|  7.31k|    memset(&connected, 0, sizeof(connected));
  511|  7.31k|    cf->cft->query(cf, data, CF_QUERY_TIMER_CONNECT, NULL, &connected);
  ------------------
  |  |  168|  7.31k|#define CF_QUERY_TIMER_CONNECT      4  /* -          struct curltime */
  ------------------
  512|  7.31k|    if(connected.tv_sec || connected.tv_usec)
  ------------------
  |  Branch (512:8): [True: 6.80k, False: 511]
  |  Branch (512:28): [True: 0, False: 511]
  ------------------
  513|  6.80k|      Curl_pgrsTimeWas(data, TIMER_CONNECT, connected);
  514|       |
  515|  7.31k|    memset(&appconnected, 0, sizeof(appconnected));
  516|  7.31k|    cf->cft->query(cf, data, CF_QUERY_TIMER_APPCONNECT, NULL, &appconnected);
  ------------------
  |  |  169|  7.31k|#define CF_QUERY_TIMER_APPCONNECT   5  /* -          struct curltime */
  ------------------
  517|  7.31k|    if(appconnected.tv_sec || appconnected.tv_usec)
  ------------------
  |  Branch (517:8): [True: 0, False: 7.31k]
  |  Branch (517:31): [True: 0, False: 7.31k]
  ------------------
  518|      0|      Curl_pgrsTimeWas(data, TIMER_APPCONNECT, appconnected);
  519|  7.31k|  }
  520|  7.31k|}
cfilters.c:cf_verboseconnect:
  457|  6.79k|{
  458|  6.79k|  if(Curl_trc_is_verbose(data)) {
  ------------------
  |  |  319|  6.79k|  ((data) && (data)->set.verbose &&                        \
  |  |  ------------------
  |  |  |  Branch (319:4): [True: 6.79k, False: 0]
  |  |  |  Branch (319:14): [True: 0, False: 6.79k]
  |  |  ------------------
  |  |  320|  6.79k|   (!(data)->state.feat ||                                 \
  |  |  ------------------
  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  ------------------
  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  459|      0|    struct ip_quadruple ipquad;
  460|      0|    bool is_ipv6;
  461|      0|    CURLcode result;
  462|       |
  463|      0|    result = Curl_conn_cf_get_ip_info(cf, data, &is_ipv6, &ipquad);
  464|      0|    if(result)
  ------------------
  |  Branch (464:8): [True: 0, False: 0]
  ------------------
  465|      0|      return result;
  466|       |
  467|      0|    infof(data, "Established %sconnection to %s (%s port %u) from %s port %u ",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  468|      0|          (cf->sockindex == SECONDARYSOCKET) ? "2nd " : "",
  469|      0|          CURL_CONN_HOST_DISPNAME(data->conn),
  470|      0|          ipquad.remote_ip, ipquad.remote_port,
  471|      0|          ipquad.local_ip, ipquad.local_port);
  472|      0|  }
  473|  6.79k|  return CURLE_OK;
  474|  6.79k|}
cfilters.c:conn_remove_setup_filters:
  524|  6.79k|{
  525|  6.79k|  struct Curl_cfilter **anchor = &data->conn->cfilter[sockindex];
  526|  33.9k|  while(*anchor) {
  ------------------
  |  Branch (526:9): [True: 27.1k, False: 6.79k]
  ------------------
  527|  27.1k|    struct Curl_cfilter *cf = *anchor;
  528|  27.1k|    if(cf->connected && (cf->cft->flags & CF_TYPE_SETUP)) {
  ------------------
  |  |  211|  27.1k|#define CF_TYPE_SETUP       (1 << 5)
  ------------------
  |  Branch (528:8): [True: 27.1k, False: 0]
  |  Branch (528:25): [True: 20.3k, False: 6.79k]
  ------------------
  529|  20.3k|      *anchor = cf->next;
  530|  20.3k|      cf->next = NULL;
  531|  20.3k|      CURL_TRC_CF(data, cf, "removing connected setup filter");
  ------------------
  |  |  153|  20.3k|  do {                                          \
  |  |  154|  20.3k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  20.3k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  40.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 20.3k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 20.3k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  40.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  20.3k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  20.3k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  20.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 20.3k]
  |  |  ------------------
  ------------------
  532|  20.3k|      cf->cft->destroy(cf, data);
  533|  20.3k|      curlx_free(cf);
  ------------------
  |  | 1483|  20.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  534|  20.3k|    }
  535|  6.79k|    else
  536|  6.79k|      anchor = &cf->next;
  537|  27.1k|  }
  538|  6.79k|}
cfilters.c:cf_is_ssl:
  691|  18.1k|{
  692|  25.8k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (692:9): [True: 25.8k, False: 0]
  ------------------
  693|       |    /* A tunneling proxy does not offer end2end encryption, even if
  694|       |     * it does SSL itself (e.g. QUIC H3 proxy) */
  695|  25.8k|    if((cf->cft->flags & CF_TYPE_SSL) && !(cf->cft->flags & CF_TYPE_PROXY))
  ------------------
  |  |  207|  25.8k|#define CF_TYPE_SSL         (1 << 1)
  ------------------
                  if((cf->cft->flags & CF_TYPE_SSL) && !(cf->cft->flags & CF_TYPE_PROXY))
  ------------------
  |  |  209|      0|#define CF_TYPE_PROXY       (1 << 3)
  ------------------
  |  Branch (695:8): [True: 0, False: 25.8k]
  |  Branch (695:42): [True: 0, False: 0]
  ------------------
  696|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  697|  25.8k|    if(cf->cft->flags & CF_TYPE_IP_CONNECT)
  ------------------
  |  |  206|  25.8k|#define CF_TYPE_IP_CONNECT  (1 << 0)
  ------------------
  |  Branch (697:8): [True: 18.1k, False: 7.70k]
  ------------------
  698|  18.1k|      return FALSE;
  ------------------
  |  | 1058|  18.1k|#define FALSE false
  ------------------
  699|  25.8k|  }
  700|      0|  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  701|  18.1k|}
cfilters.c:cf_cntrl_all:
  481|  36.6k|{
  482|  36.6k|  CURLcode result = CURLE_OK;
  483|  36.6k|  size_t i;
  484|       |
  485|   109k|  for(i = 0; i < CURL_ARRAYSIZE(conn->cfilter); ++i) {
  ------------------
  |  | 1294|   109k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (485:14): [True: 73.2k, False: 36.6k]
  ------------------
  486|  73.2k|    result = Curl_conn_cf_cntrl(conn->cfilter[i], data, ignore_result,
  487|  73.2k|                                event, arg1, arg2);
  488|  73.2k|    if(!ignore_result && result)
  ------------------
  |  Branch (488:8): [True: 20.6k, False: 52.6k]
  |  Branch (488:26): [True: 0, False: 20.6k]
  ------------------
  489|      0|      break;
  490|  73.2k|  }
  491|  36.6k|  return result;
  492|  36.6k|}

Curl_cpool_init:
  117|  7.82k|{
  118|  7.82k|  Curl_hash_init(&cpool->dest2bundle, size, Curl_hash_str,
  119|  7.82k|                 curlx_str_key_compare, cpool_bundle_free_entry);
  120|       |
  121|  7.82k|  DEBUGASSERT(idata);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (121:3): [True: 0, False: 7.82k]
  |  Branch (121:3): [True: 7.82k, False: 0]
  ------------------
  122|       |
  123|  7.82k|  cpool->idata = idata;
  124|  7.82k|  cpool->share = share;
  125|       |  cpool->initialized = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  126|  7.82k|}
Curl_cpool_destroy:
  232|  7.82k|{
  233|  7.82k|  if(cpool && cpool->initialized && cpool->idata) {
  ------------------
  |  Branch (233:6): [True: 7.82k, False: 0]
  |  Branch (233:15): [True: 7.82k, False: 0]
  |  Branch (233:37): [True: 7.82k, False: 0]
  ------------------
  234|  7.82k|    struct connectdata *conn;
  235|  7.82k|    struct Curl_sigpipe_ctx pipe_ctx;
  236|       |
  237|  7.82k|    CURL_TRC_M(cpool->idata, "%s[CPOOL] destroy, %zu connections",
  ------------------
  |  |  148|  7.82k|  do {                                   \
  |  |  149|  7.82k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.82k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.82k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.82k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.82k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  238|  7.82k|               cpool->share ? "[SHARE] " : "", cpool->num_conn);
  239|       |    /* Move all connections to the shutdown list */
  240|  7.82k|    sigpipe_init(&pipe_ctx);
  241|  7.82k|    CPOOL_LOCK(cpool, cpool->idata);
  ------------------
  |  |   42|  7.82k|  do {                                                                  \
  |  |   43|  7.82k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |   44|  7.82k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  7.82k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 7.82k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  7.82k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  7.82k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  7.82k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |   49|  7.82k|    }                                                                   \
  |  |   50|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  |  Branch (241:5): [True: 0, False: 7.82k]
  |  Branch (241:5): [True: 7.82k, False: 0]
  ------------------
  242|  7.82k|    conn = cpool_get_first(cpool);
  243|  7.82k|    if(conn)
  ------------------
  |  Branch (243:8): [True: 830, False: 6.99k]
  ------------------
  244|    830|      sigpipe_apply(cpool->idata, &pipe_ctx);
  245|  8.65k|    while(conn) {
  ------------------
  |  Branch (245:11): [True: 830, False: 7.82k]
  ------------------
  246|    830|      cpool_remove_conn(cpool, conn);
  247|    830|      cpool_discard_conn(cpool, cpool->idata, conn, FALSE);
  ------------------
  |  | 1058|    830|#define FALSE false
  ------------------
  248|    830|      conn = cpool_get_first(cpool);
  249|    830|    }
  250|  7.82k|    CPOOL_UNLOCK(cpool, cpool->idata);
  ------------------
  |  |   53|  7.82k|  do {                                                                  \
  |  |   54|  7.82k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |   55|  7.82k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  7.82k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|  7.82k|#define FALSE false
  |  |  ------------------
  |  |   57|  7.82k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  7.82k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 7.82k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  7.82k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  7.82k|    }                                                                   \
  |  |   60|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  |  Branch (250:5): [True: 0, False: 7.82k]
  |  Branch (250:5): [True: 7.82k, False: 0]
  ------------------
  251|  7.82k|    sigpipe_restore(&pipe_ctx);
  252|  7.82k|    Curl_hash_destroy(&cpool->dest2bundle);
  253|  7.82k|  }
  254|  7.82k|}
Curl_cpool_xfer_init:
  270|  7.82k|{
  271|  7.82k|  struct cpool *cpool = cpool_get_instance(data);
  272|       |
  273|  7.82k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (273:3): [True: 0, False: 7.82k]
  |  Branch (273:3): [True: 7.82k, False: 0]
  ------------------
  274|  7.82k|  if(cpool) {
  ------------------
  |  Branch (274:6): [True: 7.82k, False: 0]
  ------------------
  275|  7.82k|    CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  7.82k|  do {                                                                  \
  |  |   43|  7.82k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |   44|  7.82k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  7.82k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 7.82k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  7.82k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  7.82k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  7.82k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |   49|  7.82k|    }                                                                   \
  |  |   50|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  |  Branch (275:5): [True: 0, False: 7.82k]
  |  Branch (275:5): [True: 7.82k, False: 0]
  ------------------
  276|       |    /* the identifier inside the connection cache */
  277|  7.82k|    data->id = cpool->next_easy_id++;
  278|  7.82k|    if(cpool->next_easy_id <= 0)
  ------------------
  |  Branch (278:8): [True: 0, False: 7.82k]
  ------------------
  279|      0|      cpool->next_easy_id = 0;
  280|  7.82k|    data->state.lastconnect_id = -1;
  281|       |
  282|  7.82k|    CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  7.82k|  do {                                                                  \
  |  |   54|  7.82k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |   55|  7.82k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  7.82k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|  7.82k|#define FALSE false
  |  |  ------------------
  |  |   57|  7.82k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  7.82k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 7.82k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  7.82k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  7.82k|    }                                                                   \
  |  |   60|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  |  Branch (282:5): [True: 0, False: 7.82k]
  |  Branch (282:5): [True: 7.82k, False: 0]
  ------------------
  283|  7.82k|  }
  284|      0|  else {
  285|       |    /* We should not get here, but in a non-debug build, do something */
  286|      0|    data->id = 0;
  287|      0|    data->state.lastconnect_id = -1;
  288|      0|  }
  289|  7.82k|}
Curl_cpool_check_limits:
  372|  7.53k|{
  373|  7.53k|  struct cpool *cpool = cpool_get_instance(data);
  374|  7.53k|  struct cpool_bundle *bundle;
  375|  7.53k|  size_t dest_limit = 0;
  376|  7.53k|  size_t total_limit = 0;
  377|  7.53k|  size_t shutdowns;
  378|  7.53k|  int res = CPOOL_LIMIT_OK;
  ------------------
  |  |   90|  7.53k|#define CPOOL_LIMIT_OK     0
  ------------------
  379|       |
  380|  7.53k|  if(!cpool)
  ------------------
  |  Branch (380:6): [True: 0, False: 7.53k]
  ------------------
  381|      0|    return CPOOL_LIMIT_OK;
  ------------------
  |  |   90|      0|#define CPOOL_LIMIT_OK     0
  ------------------
  382|       |
  383|  7.53k|  if(cpool->idata->multi) {
  ------------------
  |  Branch (383:6): [True: 7.53k, False: 0]
  ------------------
  384|  7.53k|    dest_limit = cpool->idata->multi->max_host_connections;
  385|  7.53k|    total_limit = cpool->idata->multi->max_total_connections;
  386|  7.53k|  }
  387|       |
  388|  7.53k|  if(!dest_limit && !total_limit)
  ------------------
  |  Branch (388:6): [True: 7.53k, False: 0]
  |  Branch (388:21): [True: 7.53k, False: 0]
  ------------------
  389|  7.53k|    return CPOOL_LIMIT_OK;
  ------------------
  |  |   90|  7.53k|#define CPOOL_LIMIT_OK     0
  ------------------
  390|       |
  391|      0|  CPOOL_LOCK(cpool, cpool->idata);
  ------------------
  |  |   42|      0|  do {                                                                  \
  |  |   43|      0|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   44|      0|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|      0|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|      0|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|      0|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|      0|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   49|      0|    }                                                                   \
  |  |   50|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (391:3): [True: 0, False: 0]
  |  Branch (391:3): [True: 0, False: 0]
  ------------------
  392|      0|  if(dest_limit) {
  ------------------
  |  Branch (392:6): [True: 0, False: 0]
  ------------------
  393|      0|    size_t live;
  394|       |
  395|      0|    bundle = cpool_find_bundle(cpool, conn);
  396|      0|    live = bundle ? Curl_llist_count(&bundle->conns) : 0;
  ------------------
  |  Branch (396:12): [True: 0, False: 0]
  ------------------
  397|      0|    shutdowns = Curl_cshutdn_dest_count(data, conn->destination);
  398|      0|    while((live + shutdowns) >= dest_limit) {
  ------------------
  |  Branch (398:11): [True: 0, False: 0]
  ------------------
  399|      0|      if(shutdowns) {
  ------------------
  |  Branch (399:10): [True: 0, False: 0]
  ------------------
  400|       |        /* close one connection in shutdown right away, if we can */
  401|      0|        if(!Curl_cshutdn_close_oldest(data, conn->destination))
  ------------------
  |  Branch (401:12): [True: 0, False: 0]
  ------------------
  402|      0|          break;
  403|      0|      }
  404|      0|      else if(!bundle)
  ------------------
  |  Branch (404:15): [True: 0, False: 0]
  ------------------
  405|      0|        break;
  406|      0|      else {
  407|      0|        struct connectdata *oldest_idle = NULL;
  408|       |        /* The bundle is full. Extract the oldest connection that may
  409|       |         * be removed now, if there is one. */
  410|      0|        oldest_idle = cpool_bundle_get_oldest_idle(bundle,
  411|      0|                                                   Curl_pgrs_now(data));
  412|      0|        if(!oldest_idle)
  ------------------
  |  Branch (412:12): [True: 0, False: 0]
  ------------------
  413|      0|          break;
  414|       |        /* disconnect the old conn and continue */
  415|      0|        CURL_TRC_M(data, "Discarding connection #%" FMT_OFF_T
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  416|      0|                   " from %zu to reach destination limit of %zu",
  417|      0|                   oldest_idle->connection_id,
  418|      0|                   Curl_llist_count(&bundle->conns), dest_limit);
  419|      0|        Curl_conn_terminate(cpool->idata, oldest_idle, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  420|       |
  421|       |        /* in case the bundle was destroyed in disconnect, look it up again */
  422|      0|        bundle = cpool_find_bundle(cpool, conn);
  423|      0|        live = bundle ? Curl_llist_count(&bundle->conns) : 0;
  ------------------
  |  Branch (423:16): [True: 0, False: 0]
  ------------------
  424|      0|      }
  425|      0|      shutdowns = Curl_cshutdn_dest_count(cpool->idata, conn->destination);
  426|      0|    }
  427|      0|    if((live + shutdowns) >= dest_limit) {
  ------------------
  |  Branch (427:8): [True: 0, False: 0]
  ------------------
  428|      0|      res = CPOOL_LIMIT_DEST;
  ------------------
  |  |   91|      0|#define CPOOL_LIMIT_DEST   1
  ------------------
  429|      0|      goto out;
  430|      0|    }
  431|      0|  }
  432|       |
  433|      0|  if(total_limit) {
  ------------------
  |  Branch (433:6): [True: 0, False: 0]
  ------------------
  434|      0|    shutdowns = Curl_cshutdn_count(cpool->idata);
  435|      0|    while((cpool->num_conn + shutdowns) >= total_limit) {
  ------------------
  |  Branch (435:11): [True: 0, False: 0]
  ------------------
  436|      0|      if(shutdowns) {
  ------------------
  |  Branch (436:10): [True: 0, False: 0]
  ------------------
  437|       |        /* close one connection in shutdown right away, if we can */
  438|      0|        if(!Curl_cshutdn_close_oldest(data, NULL))
  ------------------
  |  Branch (438:12): [True: 0, False: 0]
  ------------------
  439|      0|          break;
  440|      0|      }
  441|      0|      else {
  442|      0|        struct connectdata *oldest_idle =
  443|      0|          cpool_get_oldest_idle(cpool, Curl_pgrs_now(data));
  444|      0|        if(!oldest_idle)
  ------------------
  |  Branch (444:12): [True: 0, False: 0]
  ------------------
  445|      0|          break;
  446|       |        /* disconnect the old conn and continue */
  447|      0|        CURL_TRC_M(data, "Discarding connection #%"
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  448|      0|                   FMT_OFF_T " from %zu to reach total "
  449|      0|                   "limit of %zu",
  450|      0|                   oldest_idle->connection_id, cpool->num_conn, total_limit);
  451|      0|        Curl_conn_terminate(cpool->idata, oldest_idle, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  452|      0|      }
  453|      0|      shutdowns = Curl_cshutdn_count(cpool->idata);
  454|      0|    }
  455|      0|    if((cpool->num_conn + shutdowns) >= total_limit) {
  ------------------
  |  Branch (455:8): [True: 0, False: 0]
  ------------------
  456|      0|      res = CPOOL_LIMIT_TOTAL;
  ------------------
  |  |   92|      0|#define CPOOL_LIMIT_TOTAL  2
  ------------------
  457|      0|      goto out;
  458|      0|    }
  459|      0|  }
  460|       |
  461|      0|out:
  462|      0|  CPOOL_UNLOCK(cpool, cpool->idata);
  ------------------
  |  |   53|      0|  do {                                                                  \
  |  |   54|      0|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|      0|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   57|      0|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|      0|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|      0|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|      0|    }                                                                   \
  |  |   60|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (462:3): [True: 0, False: 0]
  |  Branch (462:3): [True: 0, False: 0]
  ------------------
  463|      0|  return res;
  464|      0|}
Curl_cpool_add:
  468|  7.53k|{
  469|  7.53k|  CURLcode result = CURLE_OK;
  470|  7.53k|  struct cpool_bundle *bundle = NULL;
  471|  7.53k|  struct cpool *cpool = cpool_get_instance(data);
  472|  7.53k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (472:3): [True: 0, False: 7.53k]
  |  Branch (472:3): [True: 7.53k, False: 0]
  ------------------
  473|       |
  474|  7.53k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (474:3): [True: 0, False: 7.53k]
  |  Branch (474:3): [True: 7.53k, False: 0]
  ------------------
  475|  7.53k|  if(!cpool)
  ------------------
  |  Branch (475:6): [True: 0, False: 7.53k]
  ------------------
  476|      0|    return CURLE_FAILED_INIT;
  477|       |
  478|  7.53k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  7.53k|  do {                                                                  \
  |  |   43|  7.53k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 7.53k, False: 0]
  |  |  ------------------
  |  |   44|  7.53k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  7.53k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 7.53k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  7.53k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  7.53k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  7.53k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|  7.53k|#define TRUE true
  |  |  ------------------
  |  |   49|  7.53k|    }                                                                   \
  |  |   50|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  |  Branch (478:3): [True: 0, False: 7.53k]
  |  Branch (478:3): [True: 7.53k, False: 0]
  ------------------
  479|  7.53k|  bundle = cpool_find_bundle(cpool, conn);
  480|  7.53k|  if(!bundle) {
  ------------------
  |  Branch (480:6): [True: 7.50k, False: 27]
  ------------------
  481|  7.50k|    bundle = cpool_add_bundle(cpool, conn);
  482|  7.50k|    if(!bundle) {
  ------------------
  |  Branch (482:8): [True: 0, False: 7.50k]
  ------------------
  483|      0|      result = CURLE_OUT_OF_MEMORY;
  484|      0|      goto out;
  485|      0|    }
  486|  7.50k|  }
  487|       |
  488|  7.53k|  cpool_bundle_add(bundle, conn);
  489|  7.53k|  conn->connection_id = cpool->next_connection_id++;
  490|  7.53k|  cpool->num_conn++;
  491|  7.53k|  CURL_TRC_M(data, "[CPOOL] added connection %" FMT_OFF_T ". "
  ------------------
  |  |  148|  7.53k|  do {                                   \
  |  |  149|  7.53k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.53k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.53k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.53k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.53k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  492|  7.53k|             "The cache now contains %zu members",
  493|  7.53k|             conn->connection_id, cpool->num_conn);
  494|  7.53k|out:
  495|  7.53k|  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  7.53k|  do {                                                                  \
  |  |   54|  7.53k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 7.53k, False: 0]
  |  |  ------------------
  |  |   55|  7.53k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  7.53k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|  7.53k|#define FALSE false
  |  |  ------------------
  |  |   57|  7.53k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  7.53k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 7.53k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  7.53k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  7.53k|    }                                                                   \
  |  |   60|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  |  Branch (495:3): [True: 0, False: 7.53k]
  |  Branch (495:3): [True: 7.53k, False: 0]
  ------------------
  496|       |
  497|  7.53k|  return result;
  498|  7.53k|}
Curl_cpool_conn_now_idle:
  555|  4.26k|{
  556|  4.26k|  unsigned int maxconnects;
  557|  4.26k|  struct connectdata *oldest_idle = NULL;
  558|  4.26k|  struct cpool *cpool = cpool_get_instance(data);
  559|  4.26k|  bool kept = TRUE;
  ------------------
  |  | 1055|  4.26k|#define TRUE true
  ------------------
  560|       |
  561|  4.26k|  if(!data || !data->multi)
  ------------------
  |  Branch (561:6): [True: 0, False: 4.26k]
  |  Branch (561:15): [True: 0, False: 4.26k]
  ------------------
  562|      0|    return kept;
  563|       |
  564|  4.26k|  if(!data->multi->maxconnects) {
  ------------------
  |  Branch (564:6): [True: 4.26k, False: 0]
  ------------------
  565|  4.26k|    unsigned int running = Curl_multi_xfers_running(data->multi);
  566|  4.26k|    maxconnects = (running <= UINT_MAX / 4) ? running * 4 : UINT_MAX;
  ------------------
  |  Branch (566:19): [True: 4.26k, False: 0]
  ------------------
  567|  4.26k|  }
  568|      0|  else {
  569|      0|    maxconnects = data->multi->maxconnects;
  570|      0|  }
  571|       |
  572|  4.26k|  conn->lastused = *Curl_pgrs_now(data); /* it was used up until now */
  573|  4.26k|  if(cpool && maxconnects) {
  ------------------
  |  Branch (573:6): [True: 4.26k, False: 0]
  |  Branch (573:15): [True: 4.26k, False: 0]
  ------------------
  574|       |    /* may be called form a callback already under lock */
  575|  4.26k|    bool do_lock = !CPOOL_IS_LOCKED(cpool);
  ------------------
  |  |   39|  4.26k|#define CPOOL_IS_LOCKED(c)    ((c) && (c)->locked)
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 4.26k, False: 0]
  |  |  |  Branch (39:39): [True: 4.26k, False: 0]
  |  |  ------------------
  ------------------
  576|  4.26k|    if(do_lock)
  ------------------
  |  Branch (576:8): [True: 0, False: 4.26k]
  ------------------
  577|      0|      CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|      0|  do {                                                                  \
  |  |   43|      0|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   44|      0|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|      0|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|      0|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|      0|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|      0|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   49|      0|    }                                                                   \
  |  |   50|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (577:7): [True: 0, False: 0]
  |  Branch (577:7): [True: 0, False: 0]
  ------------------
  578|  4.26k|    if(cpool->num_conn > maxconnects) {
  ------------------
  |  Branch (578:8): [True: 0, False: 4.26k]
  ------------------
  579|      0|      infof(data, "Connection pool is full, closing the oldest of %zu/%u",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  580|      0|            cpool->num_conn, maxconnects);
  581|       |
  582|      0|      oldest_idle = cpool_get_oldest_idle(cpool, Curl_pgrs_now(data));
  583|      0|      kept = (oldest_idle != conn);
  584|      0|      if(oldest_idle) {
  ------------------
  |  Branch (584:10): [True: 0, False: 0]
  ------------------
  585|      0|        Curl_conn_terminate(data, oldest_idle, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  586|      0|      }
  587|      0|    }
  588|  4.26k|    if(do_lock)
  ------------------
  |  Branch (588:8): [True: 0, False: 4.26k]
  ------------------
  589|      0|      CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|      0|  do {                                                                  \
  |  |   54|      0|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|      0|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   57|      0|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|      0|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|      0|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|      0|    }                                                                   \
  |  |   60|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (589:7): [True: 0, False: 0]
  |  Branch (589:7): [True: 0, False: 0]
  ------------------
  590|  4.26k|  }
  591|       |
  592|  4.26k|  return kept;
  593|  4.26k|}
Curl_cpool_find:
  600|  9.87k|{
  601|  9.87k|  struct cpool *cpool = cpool_get_instance(data);
  602|  9.87k|  struct cpool_bundle *bundle;
  603|  9.87k|  bool found = FALSE;
  ------------------
  |  | 1058|  9.87k|#define FALSE false
  ------------------
  604|       |
  605|  9.87k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1081|  9.87k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (605:3): [True: 0, False: 9.87k]
  |  Branch (605:3): [True: 9.87k, False: 0]
  ------------------
  606|  9.87k|  DEBUGASSERT(conn_cb);
  ------------------
  |  | 1081|  9.87k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (606:3): [True: 0, False: 9.87k]
  |  Branch (606:3): [True: 9.87k, False: 0]
  ------------------
  607|  9.87k|  if(!cpool)
  ------------------
  |  Branch (607:6): [True: 0, False: 9.87k]
  ------------------
  608|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  609|       |
  610|  9.87k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  9.87k|  do {                                                                  \
  |  |   43|  9.87k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 9.87k, False: 0]
  |  |  ------------------
  |  |   44|  9.87k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  9.87k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 9.87k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  9.87k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  9.87k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|  9.87k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  9.87k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|  9.87k|#define TRUE true
  |  |  ------------------
  |  |   49|  9.87k|    }                                                                   \
  |  |   50|  9.87k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 9.87k]
  |  |  ------------------
  ------------------
  |  Branch (610:3): [True: 0, False: 9.87k]
  |  Branch (610:3): [True: 9.87k, False: 0]
  ------------------
  611|  9.87k|  bundle = Curl_hash_pick(&cpool->dest2bundle,
  612|  9.87k|                          CURL_UNCONST(destination),
  ------------------
  |  |  866|  9.87k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  613|  9.87k|                          strlen(destination) + 1);
  614|  9.87k|  if(bundle) {
  ------------------
  |  Branch (614:6): [True: 3.03k, False: 6.84k]
  ------------------
  615|  3.03k|    struct Curl_llist_node *curr = Curl_llist_head(&bundle->conns);
  616|  3.27k|    while(curr) {
  ------------------
  |  Branch (616:11): [True: 3.03k, False: 244]
  ------------------
  617|  3.03k|      struct connectdata *conn = Curl_node_elem(curr);
  618|       |      /* Get next node now. callback might discard current */
  619|  3.03k|      curr = Curl_node_next(curr);
  620|       |
  621|  3.03k|      if(conn_cb(conn, userdata)) {
  ------------------
  |  Branch (621:10): [True: 2.79k, False: 244]
  ------------------
  622|  2.79k|        found = TRUE;
  ------------------
  |  | 1055|  2.79k|#define TRUE true
  ------------------
  623|  2.79k|        break;
  624|  2.79k|      }
  625|  3.03k|    }
  626|  3.03k|  }
  627|       |
  628|  9.87k|  if(done_cb) {
  ------------------
  |  Branch (628:6): [True: 9.87k, False: 0]
  ------------------
  629|  9.87k|    found = done_cb(userdata);
  630|  9.87k|  }
  631|  9.87k|  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  9.87k|  do {                                                                  \
  |  |   54|  9.87k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 9.87k, False: 0]
  |  |  ------------------
  |  |   55|  9.87k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|  9.87k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  9.87k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|  9.87k|#define FALSE false
  |  |  ------------------
  |  |   57|  9.87k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  9.87k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 9.87k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  9.87k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  9.87k|    }                                                                   \
  |  |   60|  9.87k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 9.87k]
  |  |  ------------------
  ------------------
  |  Branch (631:3): [True: 0, False: 9.87k]
  |  Branch (631:3): [True: 9.87k, False: 0]
  ------------------
  632|  9.87k|  return found;
  633|  9.87k|}
Curl_conn_terminate:
  638|  6.70k|{
  639|  6.70k|  struct cpool *cpool = cpool_get_instance(data);
  640|  6.70k|  bool do_lock;
  641|       |
  642|  6.70k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1081|  6.70k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (642:3): [True: 0, False: 6.70k]
  |  Branch (642:3): [True: 6.70k, False: 0]
  ------------------
  643|  6.70k|  DEBUGASSERT(data && !data->conn);
  ------------------
  |  | 1081|  6.70k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (643:3): [True: 0, False: 6.70k]
  |  Branch (643:3): [True: 0, False: 0]
  |  Branch (643:3): [True: 6.70k, False: 0]
  |  Branch (643:3): [True: 6.70k, False: 0]
  ------------------
  644|  6.70k|  if(!cpool)
  ------------------
  |  Branch (644:6): [True: 0, False: 6.70k]
  ------------------
  645|      0|    return;
  646|       |
  647|       |  /* If this connection is not marked to force-close, leave it open if there
  648|       |   * are other users of it */
  649|  6.70k|  if(CONN_INUSE(conn) && !aborted) {
  ------------------
  |  |  346|  13.4k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (346:23): [True: 0, False: 6.70k]
  |  |  ------------------
  ------------------
  |  Branch (649:26): [True: 0, False: 0]
  ------------------
  650|      0|    DEBUGASSERT(0); /* does this ever happen? */
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (650:5): [Folded, False: 0]
  |  Branch (650:5): [Folded, False: 0]
  ------------------
  651|      0|    DEBUGF(infof(data, "conn terminate when inuse: %u", conn->attached_xfers));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  652|      0|    return;
  653|      0|  }
  654|       |
  655|       |  /* This method may be called while we are under lock, e.g. from a
  656|       |   * user callback in find. */
  657|  6.70k|  do_lock = !CPOOL_IS_LOCKED(cpool);
  ------------------
  |  |   39|  6.70k|#define CPOOL_IS_LOCKED(c)    ((c) && (c)->locked)
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 6.70k, False: 0]
  |  |  |  Branch (39:39): [True: 6.29k, False: 407]
  |  |  ------------------
  ------------------
  658|  6.70k|  if(do_lock)
  ------------------
  |  Branch (658:6): [True: 407, False: 6.29k]
  ------------------
  659|    407|    CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|    407|  do {                                                                  \
  |  |   43|    407|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 407, False: 0]
  |  |  ------------------
  |  |   44|    407|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|    407|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 407]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|    407|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|    407|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|    407|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|    407|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|    407|#define TRUE true
  |  |  ------------------
  |  |   49|    407|    }                                                                   \
  |  |   50|    407|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 407]
  |  |  ------------------
  ------------------
  |  Branch (659:5): [True: 0, False: 407]
  |  Branch (659:5): [True: 407, False: 0]
  ------------------
  660|       |
  661|  6.70k|  if(conn->bits.in_cpool) {
  ------------------
  |  Branch (661:6): [True: 6.70k, False: 0]
  ------------------
  662|  6.70k|    cpool_remove_conn(cpool, conn);
  663|  6.70k|    DEBUGASSERT(!conn->bits.in_cpool);
  ------------------
  |  | 1081|  6.70k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (663:5): [True: 0, False: 6.70k]
  |  Branch (663:5): [True: 6.70k, False: 0]
  ------------------
  664|  6.70k|  }
  665|       |
  666|       |  /* treat the connection as aborted in CONNECT_ONLY situations,
  667|       |   * so no graceful shutdown is attempted. */
  668|  6.70k|  if(conn->bits.connect_only)
  ------------------
  |  Branch (668:6): [True: 449, False: 6.25k]
  ------------------
  669|    449|    aborted = TRUE;
  ------------------
  |  | 1055|    449|#define TRUE true
  ------------------
  670|       |
  671|  6.70k|  if(data->multi) {
  ------------------
  |  Branch (671:6): [True: 6.70k, False: 0]
  ------------------
  672|       |    /* Add it to the multi's cpool for shutdown handling */
  673|  6.70k|    infof(data, "%s connection #%" FMT_OFF_T,
  ------------------
  |  |  143|  6.70k|  do {                               \
  |  |  144|  6.70k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  6.70k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 6.70k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 6.70k]
  |  |  |  |  ------------------
  |  |  |  |  320|  6.70k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  6.70k|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|  6.70k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 6.70k]
  |  |  ------------------
  ------------------
  674|  6.70k|          aborted ? "closing" : "shutting down", conn->connection_id);
  675|  6.70k|    cpool_discard_conn(&data->multi->cpool, data, conn, aborted);
  676|  6.70k|  }
  677|      0|  else {
  678|       |    /* No multi available, terminate */
  679|      0|    infof(data, "closing connection #%" FMT_OFF_T, conn->connection_id);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  680|      0|    Curl_cshutdn_terminate(cpool->idata, conn, !aborted);
  681|      0|  }
  682|       |
  683|  6.70k|  if(do_lock)
  ------------------
  |  Branch (683:6): [True: 407, False: 6.29k]
  ------------------
  684|       |    CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|    407|  do {                                                                  \
  |  |   54|    407|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 407, False: 0]
  |  |  ------------------
  |  |   55|    407|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|    407|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|    407|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|    407|#define FALSE false
  |  |  ------------------
  |  |   57|    407|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|    407|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 407]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|    407|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|    407|    }                                                                   \
  |  |   60|    407|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 407]
  |  |  ------------------
  ------------------
  |  Branch (684:5): [True: 0, False: 407]
  |  Branch (684:5): [True: 407, False: 0]
  ------------------
  685|  6.70k|}
Curl_cpool_prune_dead:
  719|  10.3k|{
  720|  10.3k|  struct cpool *cpool = cpool_get_instance(data);
  721|  10.3k|  struct cpool_reaper_ctx reaper;
  722|  10.3k|  timediff_t elapsed;
  723|       |
  724|  10.3k|  if(!cpool)
  ------------------
  |  Branch (724:6): [True: 0, False: 10.3k]
  ------------------
  725|      0|    return;
  726|       |
  727|  10.3k|  memset(&reaper, 0, sizeof(reaper));
  728|  10.3k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  10.3k|  do {                                                                  \
  |  |   43|  10.3k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 10.3k, False: 0]
  |  |  ------------------
  |  |   44|  10.3k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  10.3k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 10.3k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  10.3k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  10.3k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  10.3k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|  10.3k|#define TRUE true
  |  |  ------------------
  |  |   49|  10.3k|    }                                                                   \
  |  |   50|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  |  Branch (728:3): [True: 0, False: 10.3k]
  |  Branch (728:3): [True: 10.3k, False: 0]
  ------------------
  729|  10.3k|  elapsed = curlx_ptimediff_ms(Curl_pgrs_now(data), &cpool->last_cleanup);
  730|       |
  731|  10.3k|  if(elapsed >= 1000L) {
  ------------------
  |  Branch (731:6): [True: 7.04k, False: 3.28k]
  ------------------
  732|  7.06k|    while(cpool_foreach(data, cpool, &reaper, cpool_reap_dead_cb))
  ------------------
  |  Branch (732:11): [True: 21, False: 7.04k]
  ------------------
  733|     21|      ;
  734|  7.04k|    cpool->last_cleanup = *Curl_pgrs_now(data);
  735|  7.04k|  }
  736|       |  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  10.3k|  do {                                                                  \
  |  |   54|  10.3k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 10.3k, False: 0]
  |  |  ------------------
  |  |   55|  10.3k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  10.3k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|  10.3k|#define FALSE false
  |  |  ------------------
  |  |   57|  10.3k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  10.3k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 10.3k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  10.3k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  10.3k|    }                                                                   \
  |  |   60|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  |  Branch (736:3): [True: 0, False: 10.3k]
  |  Branch (736:3): [True: 10.3k, False: 0]
  ------------------
  737|  10.3k|}
Curl_cpool_get_conn:
  780|  6.18k|{
  781|  6.18k|  struct cpool *cpool = cpool_get_instance(data);
  782|  6.18k|  struct cpool_find_ctx fctx;
  783|       |
  784|  6.18k|  if(!cpool)
  ------------------
  |  Branch (784:6): [True: 0, False: 6.18k]
  ------------------
  785|      0|    return NULL;
  786|  6.18k|  fctx.id = conn_id;
  787|  6.18k|  fctx.conn = NULL;
  788|  6.18k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  6.18k|  do {                                                                  \
  |  |   43|  6.18k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 6.18k, False: 0]
  |  |  ------------------
  |  |   44|  6.18k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  6.18k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 6.18k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  6.18k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  6.18k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|  6.18k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  6.18k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|  6.18k|#define TRUE true
  |  |  ------------------
  |  |   49|  6.18k|    }                                                                   \
  |  |   50|  6.18k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 6.18k]
  |  |  ------------------
  ------------------
  |  Branch (788:3): [True: 0, False: 6.18k]
  |  Branch (788:3): [True: 6.18k, False: 0]
  ------------------
  789|  6.18k|  cpool_foreach(data, cpool, &fctx, cpool_find_conn);
  790|  6.18k|  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  6.18k|  do {                                                                  \
  |  |   54|  6.18k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 6.18k, False: 0]
  |  |  ------------------
  |  |   55|  6.18k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|  6.18k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  6.18k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|  6.18k|#define FALSE false
  |  |  ------------------
  |  |   57|  6.18k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  6.18k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 6.18k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  6.18k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  6.18k|    }                                                                   \
  |  |   60|  6.18k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 6.18k]
  |  |  ------------------
  ------------------
  |  Branch (790:3): [True: 0, False: 6.18k]
  |  Branch (790:3): [True: 6.18k, False: 0]
  ------------------
  791|  6.18k|  return fctx.conn;
  792|  6.18k|}
Curl_cpool_do_by_id:
  814|  1.85k|{
  815|  1.85k|  struct cpool *cpool = cpool_get_instance(data);
  816|  1.85k|  struct cpool_do_conn_ctx dctx;
  817|       |
  818|  1.85k|  if(!cpool)
  ------------------
  |  Branch (818:6): [True: 0, False: 1.85k]
  ------------------
  819|      0|    return;
  820|  1.85k|  dctx.id = conn_id;
  821|  1.85k|  dctx.cb = cb;
  822|  1.85k|  dctx.cbdata = cbdata;
  823|  1.85k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  1.85k|  do {                                                                  \
  |  |   43|  1.85k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 1.85k, False: 0]
  |  |  ------------------
  |  |   44|  1.85k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  1.85k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 1.85k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  1.85k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  1.85k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|  1.85k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  1.85k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|  1.85k|#define TRUE true
  |  |  ------------------
  |  |   49|  1.85k|    }                                                                   \
  |  |   50|  1.85k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 1.85k]
  |  |  ------------------
  ------------------
  |  Branch (823:3): [True: 0, False: 1.85k]
  |  Branch (823:3): [True: 1.85k, False: 0]
  ------------------
  824|  1.85k|  cpool_foreach(data, cpool, &dctx, cpool_do_conn);
  825|       |  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  1.85k|  do {                                                                  \
  |  |   54|  1.85k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 1.85k, False: 0]
  |  |  ------------------
  |  |   55|  1.85k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|  1.85k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  1.85k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|  1.85k|#define FALSE false
  |  |  ------------------
  |  |   57|  1.85k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  1.85k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 1.85k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  1.85k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  1.85k|    }                                                                   \
  |  |   60|  1.85k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 1.85k]
  |  |  ------------------
  ------------------
  |  Branch (825:3): [True: 0, False: 1.85k]
  |  Branch (825:3): [True: 1.85k, False: 0]
  ------------------
  826|  1.85k|}
Curl_cpool_do_locked:
  831|  10.3k|{
  832|  10.3k|  struct cpool *cpool = cpool_get_instance(data);
  833|  10.3k|  if(cpool) {
  ------------------
  |  Branch (833:6): [True: 10.3k, False: 0]
  ------------------
  834|  10.3k|    CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  10.3k|  do {                                                                  \
  |  |   43|  10.3k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 10.3k, False: 0]
  |  |  ------------------
  |  |   44|  10.3k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  10.3k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 10.3k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  10.3k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  10.3k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  10.3k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1055|  10.3k|#define TRUE true
  |  |  ------------------
  |  |   49|  10.3k|    }                                                                   \
  |  |   50|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  |  Branch (834:5): [True: 0, False: 10.3k]
  |  Branch (834:5): [True: 10.3k, False: 0]
  ------------------
  835|  10.3k|    cb(conn, data, cbdata);
  836|  10.3k|    CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  10.3k|  do {                                                                  \
  |  |   54|  10.3k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 10.3k, False: 0]
  |  |  ------------------
  |  |   55|  10.3k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  10.3k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1058|  10.3k|#define FALSE false
  |  |  ------------------
  |  |   57|  10.3k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  10.3k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 10.3k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  10.3k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  10.3k|    }                                                                   \
  |  |   60|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  |  Branch (836:5): [True: 0, False: 10.3k]
  |  Branch (836:5): [True: 10.3k, False: 0]
  ------------------
  837|  10.3k|  }
  838|      0|  else
  839|      0|    cb(conn, data, cbdata);
  840|  10.3k|}
conncache.c:cpool_bundle_free_entry:
  109|  7.50k|{
  110|  7.50k|  cpool_bundle_destroy((struct cpool_bundle *)freethis);
  111|  7.50k|}
conncache.c:cpool_bundle_destroy:
   84|  7.50k|{
   85|  7.50k|  DEBUGASSERT(!Curl_llist_count(&bundle->conns));
  ------------------
  |  | 1081|  7.50k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (85:3): [True: 0, False: 7.50k]
  |  Branch (85:3): [True: 7.50k, False: 0]
  ------------------
   86|  7.50k|  curlx_free(bundle);
  ------------------
  |  | 1483|  7.50k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   87|  7.50k|}
conncache.c:cpool_get_first:
  130|  8.65k|{
  131|  8.65k|  struct Curl_hash_iterator iter;
  132|  8.65k|  struct Curl_hash_element *he;
  133|  8.65k|  struct cpool_bundle *bundle;
  134|  8.65k|  struct Curl_llist_node *conn_node;
  135|       |
  136|  8.65k|  Curl_hash_start_iterate(&cpool->dest2bundle, &iter);
  137|  8.65k|  for(he = Curl_hash_next_element(&iter); he;
  ------------------
  |  Branch (137:43): [True: 830, False: 7.82k]
  ------------------
  138|  8.65k|      he = Curl_hash_next_element(&iter)) {
  139|    830|    bundle = he->ptr;
  140|    830|    conn_node = Curl_llist_head(&bundle->conns);
  141|    830|    if(conn_node)
  ------------------
  |  Branch (141:8): [True: 830, False: 0]
  ------------------
  142|    830|      return Curl_node_elem(conn_node);
  143|    830|  }
  144|  7.82k|  return NULL;
  145|  8.65k|}
conncache.c:cpool_remove_conn:
  164|  7.53k|{
  165|  7.53k|  struct Curl_llist *list = Curl_node_llist(&conn->cpool_node);
  166|  7.53k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 0, False: 7.53k]
  |  Branch (166:3): [True: 7.53k, False: 0]
  ------------------
  167|  7.53k|  if(list) {
  ------------------
  |  Branch (167:6): [True: 7.53k, False: 0]
  ------------------
  168|       |    /* The connection is certainly in the pool, but where? */
  169|  7.53k|    struct cpool_bundle *bundle = cpool_find_bundle(cpool, conn);
  170|  7.53k|    if(bundle && (list == &bundle->conns)) {
  ------------------
  |  Branch (170:8): [True: 7.53k, False: 0]
  |  Branch (170:18): [True: 7.53k, False: 0]
  ------------------
  171|  7.53k|      cpool_bundle_remove(bundle, conn);
  172|  7.53k|      if(!Curl_llist_count(&bundle->conns))
  ------------------
  |  Branch (172:10): [True: 7.50k, False: 27]
  ------------------
  173|  7.50k|        cpool_remove_bundle(cpool, bundle);
  174|  7.53k|      conn->bits.in_cpool = FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  175|  7.53k|      cpool->num_conn--;
  176|  7.53k|    }
  177|      0|    else {
  178|       |      /* Should have been in the bundle list */
  179|       |      DEBUGASSERT(NULL);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:7): [True: 0, False: 0]
  |  Branch (179:7): [True: 0, False: 0]
  ------------------
  180|      0|    }
  181|  7.53k|  }
  182|  7.53k|}
conncache.c:cpool_bundle_remove:
  101|  7.53k|{
  102|  7.53k|  (void)bundle;
  103|  7.53k|  DEBUGASSERT(Curl_node_llist(&conn->cpool_node) == &bundle->conns);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (103:3): [True: 0, False: 7.53k]
  |  Branch (103:3): [True: 7.53k, False: 0]
  ------------------
  104|  7.53k|  Curl_node_remove(&conn->cpool_node);
  105|       |  conn->bits.in_cpool = FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  106|  7.53k|}
conncache.c:cpool_remove_bundle:
  156|  7.50k|{
  157|  7.50k|  if(!cpool)
  ------------------
  |  Branch (157:6): [True: 0, False: 7.50k]
  ------------------
  158|      0|    return;
  159|  7.50k|  Curl_hash_delete(&cpool->dest2bundle, bundle->dest, bundle->dest_len);
  160|  7.50k|}
conncache.c:cpool_discard_conn:
  188|  7.53k|{
  189|  7.53k|  bool done = FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  190|       |
  191|  7.53k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (191:3): [True: 0, False: 7.53k]
  |  Branch (191:3): [True: 7.53k, False: 0]
  ------------------
  192|  7.53k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (192:3): [True: 0, False: 7.53k]
  |  Branch (192:3): [True: 7.53k, False: 0]
  ------------------
  193|  7.53k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (193:3): [True: 0, False: 7.53k]
  |  Branch (193:3): [True: 7.53k, False: 0]
  ------------------
  194|  7.53k|  DEBUGASSERT(!conn->bits.in_cpool);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (194:3): [True: 0, False: 7.53k]
  |  Branch (194:3): [True: 7.53k, False: 0]
  ------------------
  195|       |
  196|       |  /*
  197|       |   * If this connection is not marked to force-close, leave it open if there
  198|       |   * are other users of it
  199|       |   */
  200|  7.53k|  if(CONN_INUSE(conn) && !aborted) {
  ------------------
  |  |  346|  15.0k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (346:23): [True: 0, False: 7.53k]
  |  |  ------------------
  ------------------
  |  Branch (200:26): [True: 0, False: 0]
  ------------------
  201|      0|    CURL_TRC_M(data, "[CPOOL] not discarding #%" FMT_OFF_T
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  202|      0|               " still in use by %u transfers", conn->connection_id,
  203|      0|               conn->attached_xfers);
  204|      0|    return;
  205|      0|  }
  206|       |
  207|       |  /* treat the connection as aborted in CONNECT_ONLY situations, we do
  208|       |   * not know what the APP did with it. */
  209|  7.53k|  if(conn->bits.connect_only)
  ------------------
  |  Branch (209:6): [True: 449, False: 7.08k]
  ------------------
  210|    449|    aborted = TRUE;
  ------------------
  |  | 1055|    449|#define TRUE true
  ------------------
  211|  7.53k|  conn->bits.aborted = aborted;
  212|       |
  213|       |  /* We do not shutdown dead connections. The term 'dead' can be misleading
  214|       |   * here, as we also mark errored connections/transfers as 'dead'.
  215|       |   * If we do a shutdown for an aborted transfer, the server might think
  216|       |   * it was successful otherwise (for example an ftps: upload). This is
  217|       |   * not what we want. */
  218|  7.53k|  if(aborted)
  ------------------
  |  Branch (218:6): [True: 5.07k, False: 2.46k]
  ------------------
  219|  5.07k|    done = TRUE;
  ------------------
  |  | 1055|  5.07k|#define TRUE true
  ------------------
  220|  7.53k|  if(!done) {
  ------------------
  |  Branch (220:6): [True: 2.46k, False: 5.07k]
  ------------------
  221|       |    /* Attempt to shutdown the connection right away. */
  222|  2.46k|    Curl_cshutdn_run_once(cpool->idata, conn, &done);
  223|  2.46k|  }
  224|       |
  225|  7.53k|  if(done || !data->multi)
  ------------------
  |  Branch (225:6): [True: 7.50k, False: 26]
  |  Branch (225:14): [True: 0, False: 26]
  ------------------
  226|  7.50k|    Curl_cshutdn_terminate(cpool->idata, conn, FALSE);
  ------------------
  |  | 1058|  7.50k|#define FALSE false
  ------------------
  227|     26|  else
  228|     26|    Curl_cshutdn_add(&data->multi->cshutdn, conn, cpool->num_conn);
  229|  7.53k|}
conncache.c:cpool_get_instance:
  257|  72.4k|{
  258|  72.4k|  if(data) {
  ------------------
  |  Branch (258:6): [True: 72.4k, False: 0]
  ------------------
  259|  72.4k|    if(CURL_SHARE_KEEP_CONNECT(data->share))
  ------------------
  |  |   41|  72.4k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  ------------------
  |  |  |  Branch (41:4): [True: 0, False: 72.4k]
  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  260|      0|      return &data->share->cpool;
  261|  72.4k|    else if(data->multi_easy)
  ------------------
  |  Branch (261:13): [True: 0, False: 72.4k]
  ------------------
  262|      0|      return &data->multi_easy->cpool;
  263|  72.4k|    else if(data->multi)
  ------------------
  |  Branch (263:13): [True: 72.4k, False: 0]
  ------------------
  264|  72.4k|      return &data->multi->cpool;
  265|  72.4k|  }
  266|      0|  return NULL;
  267|  72.4k|}
conncache.c:cpool_find_bundle:
  149|  15.0k|{
  150|  15.0k|  return Curl_hash_pick(&cpool->dest2bundle,
  151|  15.0k|                        conn->destination, strlen(conn->destination) + 1);
  152|  15.0k|}
conncache.c:cpool_add_bundle:
  293|  7.50k|{
  294|  7.50k|  struct cpool_bundle *bundle;
  295|       |
  296|  7.50k|  bundle = cpool_bundle_create(conn->destination);
  297|  7.50k|  if(!bundle)
  ------------------
  |  Branch (297:6): [True: 0, False: 7.50k]
  ------------------
  298|      0|    return NULL;
  299|       |
  300|  7.50k|  if(!Curl_hash_add(&cpool->dest2bundle,
  ------------------
  |  Branch (300:6): [True: 0, False: 7.50k]
  ------------------
  301|  7.50k|                    bundle->dest, bundle->dest_len, bundle)) {
  302|      0|    cpool_bundle_destroy(bundle);
  303|      0|    return NULL;
  304|      0|  }
  305|  7.50k|  return bundle;
  306|  7.50k|}
conncache.c:cpool_bundle_create:
   70|  7.50k|{
   71|  7.50k|  struct cpool_bundle *bundle;
   72|  7.50k|  size_t dest_len = strlen(dest) + 1;
   73|       |
   74|  7.50k|  bundle = curlx_calloc(1, sizeof(*bundle) + dest_len - 1);
  ------------------
  |  | 1480|  7.50k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   75|  7.50k|  if(!bundle)
  ------------------
  |  Branch (75:6): [True: 0, False: 7.50k]
  ------------------
   76|      0|    return NULL;
   77|  7.50k|  Curl_llist_init(&bundle->conns, NULL);
   78|  7.50k|  bundle->dest_len = dest_len;
   79|  7.50k|  memcpy(bundle->dest, dest, bundle->dest_len);
   80|  7.50k|  return bundle;
   81|  7.50k|}
conncache.c:cpool_bundle_add:
   92|  7.53k|{
   93|  7.53k|  DEBUGASSERT(!Curl_node_llist(&conn->cpool_node));
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (93:3): [True: 0, False: 7.53k]
  |  Branch (93:3): [True: 7.53k, False: 0]
  ------------------
   94|  7.53k|  Curl_llist_append(&bundle->conns, conn, &conn->cpool_node);
   95|       |  conn->bits.in_cpool = TRUE;
  ------------------
  |  | 1055|  7.53k|#define TRUE true
  ------------------
   96|  7.53k|}
conncache.c:cpool_foreach:
  517|  15.0k|{
  518|  15.0k|  struct Curl_hash_iterator iter;
  519|  15.0k|  struct Curl_hash_element *he;
  520|       |
  521|  15.0k|  if(!cpool)
  ------------------
  |  Branch (521:6): [True: 0, False: 15.0k]
  ------------------
  522|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  523|       |
  524|  15.0k|  Curl_hash_start_iterate(&cpool->dest2bundle, &iter);
  525|       |
  526|  15.0k|  he = Curl_hash_next_element(&iter);
  527|  15.0k|  while(he) {
  ------------------
  |  Branch (527:9): [True: 7.03k, False: 8.06k]
  ------------------
  528|  7.03k|    struct Curl_llist_node *curr;
  529|  7.03k|    struct cpool_bundle *bundle = he->ptr;
  530|  7.03k|    he = Curl_hash_next_element(&iter);
  531|       |
  532|  7.03k|    curr = Curl_llist_head(&bundle->conns);
  533|  7.03k|    while(curr) {
  ------------------
  |  Branch (533:11): [True: 7.03k, False: 0]
  ------------------
  534|       |      /* Yes, we need to update curr before calling func(), because func()
  535|       |         might decide to remove the connection */
  536|  7.03k|      struct connectdata *conn = Curl_node_elem(curr);
  537|  7.03k|      curr = Curl_node_next(curr);
  538|       |
  539|  7.03k|      if(func(data, conn, param) == 1) {
  ------------------
  |  Branch (539:10): [True: 7.03k, False: 0]
  ------------------
  540|  7.03k|        return TRUE;
  ------------------
  |  | 1055|  7.03k|#define TRUE true
  ------------------
  541|  7.03k|      }
  542|  7.03k|    }
  543|  7.03k|  }
  544|  8.06k|  return FALSE;
  ------------------
  |  | 1058|  8.06k|#define FALSE false
  ------------------
  545|  15.0k|}
conncache.c:cpool_reap_dead_cb:
  694|     21|{
  695|     21|  struct cpool_reaper_ctx *reaper = param;
  696|     21|  bool terminate = !CONN_INUSE(conn) && conn->bits.no_reuse;
  ------------------
  |  |  346|     42|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  ------------------
  |  Branch (696:20): [True: 21, False: 0]
  |  Branch (696:41): [True: 0, False: 21]
  ------------------
  697|       |
  698|     21|  if(!terminate) {
  ------------------
  |  Branch (698:6): [True: 21, False: 0]
  ------------------
  699|     21|    reaper->checked++;
  700|     21|    terminate = Curl_conn_seems_dead(conn, data);
  701|     21|  }
  702|     21|  if(terminate) {
  ------------------
  |  Branch (702:6): [True: 21, False: 0]
  ------------------
  703|       |    /* stop the iteration here, pass back the connection that was pruned */
  704|     21|    reaper->reaped++;
  705|     21|    Curl_conn_terminate(data, conn, FALSE);
  ------------------
  |  | 1058|     21|#define FALSE false
  ------------------
  706|     21|    return 1;
  707|     21|  }
  708|      0|  return 0; /* continue iteration */
  709|     21|}
conncache.c:cpool_find_conn:
  768|  6.18k|{
  769|  6.18k|  struct cpool_find_ctx *fctx = param;
  770|  6.18k|  (void)data;
  771|  6.18k|  if(conn->connection_id == fctx->id) {
  ------------------
  |  Branch (771:6): [True: 6.18k, False: 0]
  ------------------
  772|  6.18k|    fctx->conn = conn;
  773|  6.18k|    return 1;
  774|  6.18k|  }
  775|      0|  return 0;
  776|  6.18k|}
conncache.c:cpool_do_conn:
  802|    830|{
  803|    830|  struct cpool_do_conn_ctx *dctx = param;
  804|       |
  805|    830|  if(conn->connection_id == dctx->id) {
  ------------------
  |  Branch (805:6): [True: 830, False: 0]
  ------------------
  806|    830|    dctx->cb(conn, data, dctx->cbdata);
  807|    830|    return 1;
  808|    830|  }
  809|      0|  return 0;
  810|    830|}

timeleft_now_ms:
  112|   310k|{
  113|   310k|  timediff_t timeleft_ms = 0;
  114|   310k|  timediff_t ctimeleft_ms = 0;
  115|       |
  116|   310k|  if(Curl_shutdown_started(data, FIRSTSOCKET))
  ------------------
  |  |  303|   310k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (116:6): [True: 0, False: 310k]
  ------------------
  117|      0|    return Curl_shutdown_timeleft(data, data->conn, FIRSTSOCKET);
  ------------------
  |  |  303|      0|#define FIRSTSOCKET     0
  ------------------
  118|   310k|  else if(Curl_is_connecting(data)) {
  ------------------
  |  Branch (118:11): [True: 55.2k, False: 255k]
  ------------------
  119|  55.2k|    timediff_t ctimeout_ms = (data->set.connecttimeout > 0) ?
  ------------------
  |  Branch (119:30): [True: 55.2k, False: 0]
  ------------------
  120|  55.2k|      data->set.connecttimeout : DEFAULT_CONNECT_TIMEOUT;
  ------------------
  |  |   43|      0|#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
  ------------------
  121|  55.2k|    ctimeleft_ms = ctimeout_ms -
  122|  55.2k|      curlx_ptimediff_ms(pnow, &data->progress.t_startsingle);
  123|  55.2k|    if(!ctimeleft_ms)
  ------------------
  |  Branch (123:8): [True: 2, False: 55.1k]
  ------------------
  124|      2|      ctimeleft_ms = -1; /* 0 is "no limit", fake 1 ms expiry */
  125|  55.2k|  }
  126|   255k|  else if(!data->set.timeout || data->set.connect_only) {
  ------------------
  |  Branch (126:11): [True: 0, False: 255k]
  |  Branch (126:33): [True: 12.8k, False: 242k]
  ------------------
  127|  12.8k|    return 0; /* no timeout in place or checked, return "no limit" */
  128|  12.8k|  }
  129|       |
  130|   297k|  if(data->set.timeout) {
  ------------------
  |  Branch (130:6): [True: 297k, False: 0]
  ------------------
  131|   297k|    timeleft_ms = data->set.timeout -
  132|   297k|      curlx_ptimediff_ms(pnow, &data->progress.t_startop);
  133|   297k|    if(!timeleft_ms)
  ------------------
  |  Branch (133:8): [True: 151, False: 297k]
  ------------------
  134|    151|      timeleft_ms = -1; /* 0 is "no limit", fake 1 ms expiry */
  135|   297k|  }
  136|       |
  137|   297k|  if(!ctimeleft_ms)
  ------------------
  |  Branch (137:6): [True: 242k, False: 55.2k]
  ------------------
  138|   242k|    return timeleft_ms;
  139|  55.2k|  else if(!timeleft_ms)
  ------------------
  |  Branch (139:11): [True: 0, False: 55.2k]
  ------------------
  140|      0|    return ctimeleft_ms;
  141|  55.2k|  return CURLMIN(ctimeleft_ms, timeleft_ms);
  ------------------
  |  | 1287|  55.2k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 55.1k, False: 12]
  |  |  ------------------
  ------------------
  142|   297k|}
Curl_timeleft_ms:
  145|   310k|{
  146|   310k|  return timeleft_now_ms(data, Curl_pgrs_now(data));
  147|   310k|}
Curl_shutdown_start:
  151|  2.46k|{
  152|  2.46k|  struct connectdata *conn = data->conn;
  153|       |
  154|  2.46k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  2.46k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (154:3): [True: 0, False: 2.46k]
  |  Branch (154:3): [True: 2.46k, False: 0]
  ------------------
  155|  2.46k|  conn->shutdown.start[sockindex] = *Curl_pgrs_now(data);
  156|  2.46k|  conn->shutdown.timeout_ms = (timeout_ms > 0) ?
  ------------------
  |  Branch (156:31): [True: 0, False: 2.46k]
  ------------------
  157|      0|    (timediff_t)timeout_ms :
  158|  2.46k|    ((data->set.shutdowntimeout > 0) ?
  ------------------
  |  Branch (158:6): [True: 0, False: 2.46k]
  ------------------
  159|  2.46k|     data->set.shutdowntimeout : DEFAULT_SHUTDOWN_TIMEOUT_MS);
  ------------------
  |  |   45|  2.46k|#define DEFAULT_SHUTDOWN_TIMEOUT_MS   (2 * 1000)
  ------------------
  160|       |  /* Set a timer, unless we operate on the admin handle */
  161|  2.46k|  if(data->mid)
  ------------------
  |  Branch (161:6): [True: 0, False: 2.46k]
  ------------------
  162|      0|    Curl_expire_ex(data, conn->shutdown.timeout_ms, EXPIRE_SHUTDOWN);
  163|  2.46k|  CURL_TRC_M(data, "shutdown start on%s connection",
  ------------------
  |  |  148|  2.46k|  do {                                   \
  |  |  149|  2.46k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  2.46k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  2.46k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  4.92k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 2.46k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.46k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  4.92k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  2.46k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  2.46k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|  2.46k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 2.46k]
  |  |  ------------------
  ------------------
  164|  2.46k|             sockindex ? " secondary" : "");
  165|  2.46k|}
Curl_shutdown_timeleft:
  170|  2.51k|{
  171|  2.51k|  timediff_t left_ms;
  172|       |
  173|  2.51k|  if(!conn->shutdown.start[sockindex].tv_sec ||
  ------------------
  |  Branch (173:6): [True: 0, False: 2.51k]
  ------------------
  174|  2.51k|     (conn->shutdown.timeout_ms <= 0))
  ------------------
  |  Branch (174:6): [True: 0, False: 2.51k]
  ------------------
  175|      0|    return 0; /* not started or no limits */
  176|       |
  177|  2.51k|  left_ms = conn->shutdown.timeout_ms -
  178|  2.51k|            curlx_ptimediff_ms(Curl_pgrs_now(data),
  179|  2.51k|                               &conn->shutdown.start[sockindex]);
  180|  2.51k|  return left_ms ? left_ms : -1;
  ------------------
  |  Branch (180:10): [True: 2.51k, False: 0]
  ------------------
  181|  2.51k|}
Curl_conn_shutdown_timeleft:
  185|     26|{
  186|     26|  timediff_t left_ms = 0, ms;
  187|     26|  int i;
  188|       |
  189|     78|  for(i = 0; conn->shutdown.timeout_ms && (i < 2); ++i) {
  ------------------
  |  Branch (189:14): [True: 78, False: 0]
  |  Branch (189:43): [True: 52, False: 26]
  ------------------
  190|     52|    if(!conn->shutdown.start[i].tv_sec)
  ------------------
  |  Branch (190:8): [True: 26, False: 26]
  ------------------
  191|     26|      continue;
  192|     26|    ms = Curl_shutdown_timeleft(data, conn, i);
  193|     26|    if(ms && (!left_ms || ms < left_ms))
  ------------------
  |  Branch (193:8): [True: 26, False: 0]
  |  Branch (193:15): [True: 26, False: 0]
  |  Branch (193:27): [True: 0, False: 0]
  ------------------
  194|     26|      left_ms = ms;
  195|     26|  }
  196|     26|  return left_ms;
  197|     26|}
Curl_shutdown_clear:
  200|  15.0k|{
  201|  15.0k|  struct curltime *pt = &data->conn->shutdown.start[sockindex];
  202|  15.0k|  memset(pt, 0, sizeof(*pt));
  203|  15.0k|}
Curl_shutdown_started:
  206|   428k|{
  207|   428k|  if(data->conn) {
  ------------------
  |  Branch (207:6): [True: 416k, False: 11.9k]
  ------------------
  208|   416k|    struct curltime *pt = &data->conn->shutdown.start[sockindex];
  209|   416k|    return (pt->tv_sec > 0) || (pt->tv_usec > 0);
  ------------------
  |  Branch (209:12): [True: 2.51k, False: 414k]
  |  Branch (209:32): [True: 0, False: 414k]
  ------------------
  210|   416k|  }
  211|  11.9k|  return FALSE;
  ------------------
  |  | 1058|  11.9k|#define FALSE false
  ------------------
  212|   428k|}
Curl_addr2string:
  218|  20.8k|{
  219|  20.8k|  struct sockaddr_in *si = NULL;
  220|  20.8k|#ifdef USE_IPV6
  221|  20.8k|  struct sockaddr_in6 *si6 = NULL;
  222|  20.8k|#endif
  223|  20.8k|#ifdef USE_UNIX_SOCKETS
  224|  20.8k|  struct sockaddr_un *su = NULL;
  225|       |#else
  226|       |  (void)salen;
  227|       |#endif
  228|       |
  229|  20.8k|  switch(sa->sa_family) {
  230|  7.02k|  case AF_INET:
  ------------------
  |  Branch (230:3): [True: 7.02k, False: 13.8k]
  ------------------
  231|  7.02k|    si = (struct sockaddr_in *)(void *)sa;
  232|  7.02k|    if(curlx_inet_ntop(sa->sa_family, &si->sin_addr, addr, MAX_IPADR_LEN)) {
  ------------------
  |  |   44|  7.02k|  inet_ntop(af, src, buf, (curl_socklen_t)(size))
  |  |  ------------------
  |  |  |  Branch (44:3): [True: 7.02k, False: 0]
  |  |  ------------------
  ------------------
  233|  7.02k|      *port = ntohs(si->sin_port);
  234|  7.02k|      return TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
  235|  7.02k|    }
  236|      0|    break;
  237|      0|#ifdef USE_IPV6
  238|      0|  case AF_INET6:
  ------------------
  |  Branch (238:3): [True: 0, False: 20.8k]
  ------------------
  239|      0|    si6 = (struct sockaddr_in6 *)(void *)sa;
  240|      0|    if(curlx_inet_ntop(sa->sa_family, &si6->sin6_addr, addr, MAX_IPADR_LEN)) {
  ------------------
  |  |   44|      0|  inet_ntop(af, src, buf, (curl_socklen_t)(size))
  |  |  ------------------
  |  |  |  Branch (44:3): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  241|      0|      *port = ntohs(si6->sin6_port);
  242|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  243|      0|    }
  244|      0|    break;
  245|      0|#endif
  246|      0|#ifdef USE_UNIX_SOCKETS
  247|  13.8k|  case AF_UNIX:
  ------------------
  |  Branch (247:3): [True: 13.8k, False: 7.02k]
  ------------------
  248|  13.8k|    if(salen > (curl_socklen_t)sizeof(CURL_SA_FAMILY_T)) {
  ------------------
  |  Branch (248:8): [True: 0, False: 13.8k]
  ------------------
  249|      0|      su = (struct sockaddr_un *)sa;
  250|      0|      curl_msnprintf(addr, MAX_IPADR_LEN, "%s", su->sun_path);
  ------------------
  |  |   41|      0|#define MAX_IPADR_LEN sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")
  ------------------
  251|      0|    }
  252|  13.8k|    else
  253|  13.8k|      addr[0] = 0; /* socket with no name */
  254|  13.8k|    *port = 0;
  255|  13.8k|    return TRUE;
  ------------------
  |  | 1055|  13.8k|#define TRUE true
  ------------------
  256|      0|#endif
  257|      0|  default:
  ------------------
  |  Branch (257:3): [True: 0, False: 20.8k]
  ------------------
  258|      0|    break;
  259|  20.8k|  }
  260|       |
  261|      0|  addr[0] = '\0';
  262|      0|  *port = 0;
  263|      0|  errno = SOCKEAFNOSUPPORT;
  ------------------
  |  | 1124|      0|#define SOCKEAFNOSUPPORT  EAFNOSUPPORT
  ------------------
  264|       |  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  265|  20.8k|}
Curl_getconnectinfo:
  275|  6.23k|{
  276|  6.23k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  6.23k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (276:3): [True: 0, False: 6.23k]
  |  Branch (276:3): [True: 6.23k, False: 0]
  ------------------
  277|       |
  278|       |  /* this works for an easy handle:
  279|       |   * - that has been used for curl_easy_perform()
  280|       |   * - that is associated with a multi handle, and whose connection
  281|       |   *   was detached with CURLOPT_CONNECT_ONLY
  282|       |   */
  283|  6.23k|  if(data->state.lastconnect_id != -1) {
  ------------------
  |  Branch (283:6): [True: 6.18k, False: 51]
  ------------------
  284|  6.18k|    struct connectdata *conn;
  285|       |
  286|  6.18k|    conn = Curl_cpool_get_conn(data, data->state.lastconnect_id);
  287|  6.18k|    if(!conn) {
  ------------------
  |  Branch (287:8): [True: 0, False: 6.18k]
  ------------------
  288|      0|      data->state.lastconnect_id = -1;
  289|      0|      return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  290|      0|    }
  291|       |
  292|  6.18k|    if(connp)
  ------------------
  |  Branch (292:8): [True: 6.18k, False: 0]
  ------------------
  293|       |      /* only store this if the caller cares for it */
  294|  6.18k|      *connp = conn;
  295|  6.18k|    return conn->sock[FIRSTSOCKET];
  ------------------
  |  |  303|  6.18k|#define FIRSTSOCKET     0
  ------------------
  296|  6.18k|  }
  297|     51|  return CURL_SOCKET_BAD;
  ------------------
  |  |  145|     51|#define CURL_SOCKET_BAD (-1)
  ------------------
  298|  6.23k|}
Curl_conncontrol:
  309|  14.8k|{
  310|       |  /* close if a connection, or a stream that is not multiplexed. */
  311|       |  /* This function will be called both before and after this connection is
  312|       |     associated with a transfer. */
  313|  14.8k|  bool closeit, is_multiplex;
  314|  14.8k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  14.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (314:3): [True: 0, False: 14.8k]
  |  Branch (314:3): [True: 14.8k, False: 0]
  ------------------
  315|  14.8k|#if defined(DEBUGBUILD) && defined(CURLVERBOSE)
  316|  14.8k|  (void)reason; /* useful for debugging */
  317|  14.8k|#endif
  318|  14.8k|  is_multiplex = Curl_conn_is_multiplex(conn, FIRSTSOCKET);
  ------------------
  |  |  303|  14.8k|#define FIRSTSOCKET     0
  ------------------
  319|  14.8k|  closeit = (ctrl == CONNCTRL_CONNECTION) ||
  ------------------
  |  |   91|  14.8k|#define CONNCTRL_CONNECTION 1
  ------------------
  |  Branch (319:13): [True: 9.55k, False: 5.32k]
  ------------------
  320|  5.32k|            ((ctrl == CONNCTRL_STREAM) && !is_multiplex);
  ------------------
  |  |   92|  5.32k|#define CONNCTRL_STREAM     2
  ------------------
  |  Branch (320:14): [True: 5.32k, False: 0]
  |  Branch (320:43): [True: 2.73k, False: 2.58k]
  ------------------
  321|  14.8k|  if((ctrl == CONNCTRL_STREAM) && is_multiplex)
  ------------------
  |  |   92|  14.8k|#define CONNCTRL_STREAM     2
  ------------------
  |  Branch (321:6): [True: 5.32k, False: 9.55k]
  |  Branch (321:35): [True: 2.58k, False: 2.73k]
  ------------------
  322|  2.58k|    ;  /* stream signal on multiplex conn never affects close state */
  323|  12.2k|  else if((curl_bit)closeit != conn->bits.close) {
  ------------------
  |  Branch (323:11): [True: 6.05k, False: 6.23k]
  ------------------
  324|  6.05k|    conn->bits.close = closeit; /* the only place in the source code that
  325|       |                                   should assign this bit */
  326|  6.05k|  }
  327|  14.8k|}
Curl_conn_setup:
  632|  7.53k|{
  633|  7.53k|  CURLcode result = CURLE_OK;
  634|  7.53k|  struct Curl_peer *peer = Curl_conn_get_first_peer(conn, sockindex);
  635|  7.53k|  uint8_t dns_queries;
  636|       |
  637|  7.53k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (637:3): [True: 0, False: 7.53k]
  |  Branch (637:3): [True: 7.53k, False: 0]
  ------------------
  638|  7.53k|  DEBUGASSERT(conn->scheme);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (638:3): [True: 0, False: 7.53k]
  |  Branch (638:3): [True: 7.53k, False: 0]
  ------------------
  639|  7.53k|  DEBUGASSERT(!conn->cfilter[sockindex]);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (639:3): [True: 0, False: 7.53k]
  |  Branch (639:3): [True: 7.53k, False: 0]
  ------------------
  640|       |
  641|  7.53k|  if(!peer)
  ------------------
  |  Branch (641:6): [True: 0, False: 7.53k]
  ------------------
  642|      0|    return CURLE_FAILED_INIT;
  643|       |
  644|  7.53k|#ifndef CURL_DISABLE_HTTP
  645|  7.53k|  if(!conn->cfilter[sockindex] &&
  ------------------
  |  Branch (645:6): [True: 7.53k, False: 0]
  ------------------
  646|  7.53k|     conn->scheme->protocol == CURLPROTO_HTTPS) {
  ------------------
  |  | 1079|  7.53k|#define CURLPROTO_HTTPS   (1L << 1)
  ------------------
  |  Branch (646:6): [True: 0, False: 7.53k]
  ------------------
  647|      0|    DEBUGASSERT(ssl_mode != CURL_CF_SSL_DISABLE);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (647:5): [True: 0, False: 0]
  |  Branch (647:5): [True: 0, False: 0]
  ------------------
  648|      0|    result = Curl_cf_https_setup(data, conn, sockindex);
  649|      0|    if(result)
  ------------------
  |  Branch (649:8): [True: 0, False: 0]
  ------------------
  650|      0|      goto out;
  651|      0|  }
  652|  7.53k|#endif /* !CURL_DISABLE_HTTP */
  653|       |
  654|       |  /* Still no cfilter set, apply default. */
  655|  7.53k|  if(!conn->cfilter[sockindex]) {
  ------------------
  |  Branch (655:6): [True: 7.53k, False: 0]
  ------------------
  656|  7.53k|    result = cf_setup_add(data, conn, sockindex,
  657|  7.53k|                          conn->transport_wanted, ssl_mode);
  658|  7.53k|    if(result)
  ------------------
  |  Branch (658:8): [True: 0, False: 7.53k]
  ------------------
  659|      0|      goto out;
  660|  7.53k|  }
  661|       |
  662|  7.53k|  dns_queries = Curl_resolv_dns_queries(data, conn->ip_version);
  663|       |#ifdef USE_HTTPSRR
  664|       |  if(sockindex == FIRSTSOCKET)
  665|       |    dns_queries |= CURL_DNSQ_HTTPS;
  666|       |#endif
  667|  7.53k|  result = Curl_cf_dns_add(data, conn, sockindex, peer, dns_queries,
  668|  7.53k|                           conn->transport_wanted);
  669|  7.53k|  DEBUGASSERT(conn->cfilter[sockindex]);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (669:3): [True: 0, False: 7.53k]
  |  Branch (669:3): [True: 7.53k, False: 0]
  ------------------
  670|  7.53k|out:
  671|  7.53k|  return result;
  672|  7.53k|}
Curl_conn_set_multiplex:
  675|  2.94k|{
  676|  2.94k|  if(!conn->bits.multiplex) {
  ------------------
  |  Branch (676:6): [True: 2.94k, False: 0]
  ------------------
  677|  2.94k|    conn->bits.multiplex = TRUE;
  ------------------
  |  | 1055|  2.94k|#define TRUE true
  ------------------
  678|  2.94k|    if(conn->attached_multi) {
  ------------------
  |  Branch (678:8): [True: 2.94k, False: 0]
  ------------------
  679|  2.94k|      Curl_multi_connchanged(conn->attached_multi);
  680|  2.94k|    }
  681|  2.94k|  }
  682|  2.94k|}
Curl_conn_get_destination:
  686|  10.3k|{
  687|  10.3k|#ifndef CURL_DISABLE_PROXY
  688|  10.3k|  if(conn->http_proxy.peer && !conn->bits.tunnel_proxy)
  ------------------
  |  Branch (688:6): [True: 0, False: 10.3k]
  |  Branch (688:31): [True: 0, False: 0]
  ------------------
  689|      0|    return conn->http_proxy.peer;
  690|  10.3k|#endif
  691|  10.3k|  return (sockindex == SECONDARYSOCKET) ?
  ------------------
  |  |  304|  10.3k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (691:10): [True: 0, False: 10.3k]
  ------------------
  692|      0|    (conn->via_peer2 ? conn->via_peer2 : conn->origin2) :
  ------------------
  |  Branch (692:6): [True: 0, False: 0]
  ------------------
  693|  10.3k|    (conn->via_peer ? conn->via_peer : conn->origin);
  ------------------
  |  Branch (693:6): [True: 10.2k, False: 35]
  ------------------
  694|  10.3k|}
Curl_conn_get_first_peer:
  698|  29.8k|{
  699|  29.8k|#ifndef CURL_DISABLE_PROXY
  700|  29.8k|  if(conn->socks_proxy.peer)
  ------------------
  |  Branch (700:6): [True: 0, False: 29.8k]
  ------------------
  701|      0|    return conn->socks_proxy.peer;
  702|  29.8k|  if(conn->http_proxy.peer)
  ------------------
  |  Branch (702:6): [True: 0, False: 29.8k]
  ------------------
  703|      0|    return conn->http_proxy.peer;
  704|  29.8k|#endif
  705|  29.8k|  return (sockindex == SECONDARYSOCKET) ?
  ------------------
  |  |  304|  29.8k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (705:10): [True: 0, False: 29.8k]
  ------------------
  706|      0|    (conn->via_peer2 ? conn->via_peer2 : conn->origin2) :
  ------------------
  |  Branch (706:6): [True: 0, False: 0]
  ------------------
  707|  29.8k|    (conn->via_peer ? conn->via_peer : conn->origin);
  ------------------
  |  Branch (707:6): [True: 29.7k, False: 68]
  ------------------
  708|  29.8k|}
connect.c:cf_setup_destroy:
  536|  7.53k|{
  537|  7.53k|  struct cf_setup_ctx *ctx = cf->ctx;
  538|       |
  539|  7.53k|  CURL_TRC_CF(data, cf, "destroy");
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  540|       |  curlx_safefree(ctx);
  ------------------
  |  | 1327|  7.53k|  do {                      \
  |  | 1328|  7.53k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  7.53k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  7.53k|    (ptr) = NULL;           \
  |  | 1330|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  541|  7.53k|}
connect.c:cf_setup_connect:
  348|  11.4k|{
  349|  11.4k|  struct cf_setup_ctx *ctx = cf->ctx;
  350|  11.4k|  CURLcode result = CURLE_OK;
  351|  11.4k|  struct Curl_peer *first_peer =
  352|  11.4k|    Curl_conn_get_first_peer(cf->conn, cf->sockindex);
  353|       |
  354|  11.4k|  if(cf->connected) {
  ------------------
  |  Branch (354:6): [True: 0, False: 11.4k]
  ------------------
  355|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  356|      0|    return CURLE_OK;
  357|      0|  }
  358|       |
  359|       |  /* connect current sub-chain */
  360|  19.2k|connect_sub_chain:
  361|  19.2k|  VERBOSE(Curl_conn_trc_filters(data, cf->sockindex, "cf_setup_connect"));
  ------------------
  |  | 1618|  19.2k|#define VERBOSE(x) x
  ------------------
  362|       |
  363|  19.2k|  if(cf->next && !cf->next->connected) {
  ------------------
  |  Branch (363:6): [True: 11.6k, False: 7.53k]
  |  Branch (363:18): [True: 11.6k, False: 0]
  ------------------
  364|  11.6k|    result = Curl_conn_cf_connect(cf->next, data, done);
  365|  11.6k|    if(result || !*done)
  ------------------
  |  Branch (365:8): [True: 521, False: 11.1k]
  |  Branch (365:18): [True: 4.13k, False: 7.02k]
  ------------------
  366|  4.65k|      return result;
  367|  11.6k|  }
  368|       |
  369|  14.5k|  if(ctx->state < CF_SETUP_CNNCT_EYEBALLS) {
  ------------------
  |  Branch (369:6): [True: 7.53k, False: 7.02k]
  ------------------
  370|       |    /* What type of thing we do connect to first?
  371|       |     * - without a proxy, `ctx->transport` defines it
  372|       |     * - with non-tunneling proxy, `ctx->transport` also applies, but
  373|       |     *   for QUIC we need the cf-h3-proxy, not the standard vquic one
  374|       |     * - with tunneling proxy, transport is defined by the proxytype
  375|       |     *   chosen and `ctx->transport` is tunneled through it.
  376|       |     */
  377|  7.53k|    uint8_t transport_out = ctx->transport;
  378|  7.53k|    bool tunnel_proxy = FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  379|  7.53k|#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
  380|  7.53k|    CURL_TRC_CF(data, cf, "happy eyeballing, httpproxy=%d, type=%d, "
  ------------------
  |  |  153|  7.53k|  do {                                          \
  |  |  154|  7.53k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.53k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.53k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.53k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  381|  7.53k|                "transport=%d",
  382|  7.53k|                cf->conn->bits.httpproxy, cf->conn->http_proxy.proxytype,
  383|  7.53k|                ctx->transport);
  384|  7.53k|    if(cf->conn->bits.httpproxy && cf->conn->bits.tunnel_proxy) {
  ------------------
  |  Branch (384:8): [True: 0, False: 7.53k]
  |  Branch (384:36): [True: 0, False: 0]
  ------------------
  385|      0|      transport_out =
  386|      0|        Curl_http_proxy_transport(cf->conn->http_proxy.proxytype);
  387|      0|      tunnel_proxy = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  388|      0|      if((transport_out == TRNSPRT_QUIC) && (cf->conn->bits.socksproxy)) {
  ------------------
  |  |  309|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (388:10): [True: 0, False: 0]
  |  Branch (388:45): [True: 0, False: 0]
  ------------------
  389|      0|        failf(data, "HTTP/3 proxy not possible via SOCKS");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  390|      0|        return CURLE_UNSUPPORTED_PROTOCOL;
  391|      0|      }
  392|      0|    }
  393|  7.53k|#endif /* !CURL_DISABLE_PROXY && !CURL_DISABLE_HTTP */
  394|       |
  395|  7.53k|    result = cf_ip_happy_insert_after(cf, data, first_peer,
  396|  7.53k|                                      ctx->transport, transport_out,
  397|  7.53k|                                      tunnel_proxy);
  398|  7.53k|    if(result)
  ------------------
  |  Branch (398:8): [True: 0, False: 7.53k]
  ------------------
  399|      0|      return result;
  400|  7.53k|    ctx->state = (tunnel_proxy && (transport_out == TRNSPRT_QUIC)) ?
  ------------------
  |  |  309|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (400:19): [True: 0, False: 7.53k]
  |  Branch (400:35): [True: 0, False: 0]
  ------------------
  401|  7.53k|      CF_SETUP_CNNCT_HTTP_PROXY : CF_SETUP_CNNCT_EYEBALLS;
  402|  7.53k|    if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (402:8): [True: 0, False: 7.53k]
  |  Branch (402:21): [True: 7.53k, False: 0]
  ------------------
  403|  7.53k|      goto connect_sub_chain;
  404|  7.53k|  }
  405|       |
  406|       |  /* sub-chain connected, do we need to add more? */
  407|  7.02k|#ifndef CURL_DISABLE_PROXY
  408|  7.02k|  if(ctx->state < CF_SETUP_CNNCT_SOCKS && cf->conn->bits.socksproxy) {
  ------------------
  |  Branch (408:6): [True: 7.02k, False: 0]
  |  Branch (408:43): [True: 0, False: 7.02k]
  ------------------
  409|      0|    struct Curl_peer *dest; /* where SOCKS should tunnel to */
  410|       |
  411|      0|    if(cf->conn->bits.httpproxy)
  ------------------
  |  Branch (411:8): [True: 0, False: 0]
  ------------------
  412|      0|      dest = cf->conn->http_proxy.peer;
  413|      0|    else
  414|      0|      dest = Curl_conn_get_destination(cf->conn, cf->sockindex);
  415|      0|    if(!dest)
  ------------------
  |  Branch (415:8): [True: 0, False: 0]
  ------------------
  416|      0|      return CURLE_FAILED_INIT;
  417|       |
  418|      0|    result = Curl_cf_socks_proxy_insert_after(
  419|      0|      cf, data, dest, cf->conn->ip_version,
  420|      0|      cf->conn->socks_proxy.proxytype,
  421|      0|      cf->conn->socks_proxy.creds);
  422|       |
  423|      0|    if(result) {
  ------------------
  |  Branch (423:8): [True: 0, False: 0]
  ------------------
  424|       |      /* 'dest' might be freed now so it can't be dereferenced */
  425|      0|      CURL_TRC_CF(data, cf, "added SOCKS filter failed -> %d", result);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  426|      0|      return result;
  427|      0|    }
  428|      0|    CURL_TRC_CF(data, cf, "added SOCKS filter to %s:%u -> %d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  429|      0|                dest->hostname, dest->port, result);
  430|      0|    ctx->state = CF_SETUP_CNNCT_SOCKS;
  431|      0|    if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (431:8): [True: 0, False: 0]
  |  Branch (431:21): [True: 0, False: 0]
  ------------------
  432|      0|      goto connect_sub_chain;
  433|      0|  }
  434|       |
  435|  7.02k|  if(ctx->state < CF_SETUP_CNNCT_HTTP_PROXY && cf->conn->bits.httpproxy) {
  ------------------
  |  Branch (435:6): [True: 7.02k, False: 0]
  |  Branch (435:48): [True: 0, False: 7.02k]
  ------------------
  436|      0|#ifdef USE_SSL
  437|      0|    if(IS_HTTPS_PROXY(cf->conn->http_proxy.proxytype) &&
  ------------------
  |  |   80|      0|  (((t) == CURLPROXY_HTTPS) ||  \
  |  |  ------------------
  |  |  |  |  794|      0|#define CURLPROXY_HTTPS           2L /* HTTPS but stick to HTTP/1
  |  |  ------------------
  |  |  |  Branch (80:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   81|      0|   ((t) == CURLPROXY_HTTPS2) || \
  |  |  ------------------
  |  |  |  |  796|      0|#define CURLPROXY_HTTPS2          3L /* HTTPS and attempt HTTP/2
  |  |  ------------------
  |  |  |  Branch (81:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   82|      0|   ((t) == CURLPROXY_HTTPS3))
  |  |  ------------------
  |  |  |  |  805|      0|#define CURLPROXY_HTTPS3          8L /* HTTPS and attempt HTTP/3
  |  |  ------------------
  |  |  |  Branch (82:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  438|      0|       !Curl_conn_is_ssl(cf->conn, cf->sockindex)) {
  ------------------
  |  Branch (438:8): [True: 0, False: 0]
  ------------------
  439|      0|      result = Curl_cf_ssl_proxy_insert_after(cf, data);
  440|      0|      if(result)
  ------------------
  |  Branch (440:10): [True: 0, False: 0]
  ------------------
  441|      0|        return result;
  442|      0|    }
  443|      0|#endif /* USE_SSL */
  444|       |
  445|      0|#ifndef CURL_DISABLE_HTTP
  446|      0|    if(cf->conn->bits.tunnel_proxy) {
  ------------------
  |  Branch (446:8): [True: 0, False: 0]
  ------------------
  447|      0|      struct Curl_peer *dest; /* where HTTP should tunnel to */
  448|      0|      dest = Curl_conn_get_destination(cf->conn, cf->sockindex);
  449|      0|      result = Curl_cf_http_proxy_insert_after(
  450|      0|        cf, data, dest, ctx->transport, cf->conn->http_proxy.proxytype);
  451|      0|      if(result)
  ------------------
  |  Branch (451:10): [True: 0, False: 0]
  ------------------
  452|      0|        return result;
  453|      0|    }
  454|      0|#endif /* !CURL_DISABLE_HTTP */
  455|      0|    ctx->state = CF_SETUP_CNNCT_HTTP_PROXY;
  456|      0|    if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (456:8): [True: 0, False: 0]
  |  Branch (456:21): [True: 0, False: 0]
  ------------------
  457|      0|      goto connect_sub_chain;
  458|      0|  }
  459|  7.02k|#endif /* !CURL_DISABLE_PROXY */
  460|       |
  461|  7.02k|  if(ctx->state < CF_SETUP_CNNCT_HAPROXY) {
  ------------------
  |  Branch (461:6): [True: 7.02k, False: 0]
  ------------------
  462|  7.02k|#ifndef CURL_DISABLE_PROXY
  463|  7.02k|    if(data->set.haproxyprotocol) {
  ------------------
  |  Branch (463:8): [True: 0, False: 7.02k]
  ------------------
  464|      0|      if(ctx->transport == TRNSPRT_QUIC) {
  ------------------
  |  |  309|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (464:10): [True: 0, False: 0]
  ------------------
  465|      0|        failf(data, "haproxy protocol not support QUIC");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  466|      0|        return CURLE_UNSUPPORTED_PROTOCOL;
  467|      0|      }
  468|      0|      result = Curl_cf_haproxy_insert_after(cf, data);
  469|      0|      if(result)
  ------------------
  |  Branch (469:10): [True: 0, False: 0]
  ------------------
  470|      0|        return result;
  471|      0|    }
  472|  7.02k|#endif /* !CURL_DISABLE_PROXY */
  473|  7.02k|    ctx->state = CF_SETUP_CNNCT_HAPROXY;
  474|  7.02k|    if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (474:8): [True: 0, False: 7.02k]
  |  Branch (474:21): [True: 0, False: 7.02k]
  ------------------
  475|      0|      goto connect_sub_chain;
  476|  7.02k|  }
  477|       |
  478|       |  /* Adding Curl_cf_quic_insert_after() because now we
  479|       |     need the next filter to be QUIC/HTTP/3 (which has SSL) */
  480|       |#if !defined(CURL_DISABLE_HTTP) && defined(USE_HTTP3) && \
  481|       |  defined(USE_PROXY_HTTP3)
  482|       |  if(ctx->transport == TRNSPRT_QUIC && cf->conn->bits.httpproxy &&
  483|       |     cf->conn->bits.tunnel_proxy &&
  484|       |     (data->state.http_neg.wanted == CURL_HTTP_V3x)) {
  485|       |    if(ctx->state < CF_SETUP_CNNCT_SSL) {
  486|       |      result = Curl_cf_quic_insert_after(cf);
  487|       |      if(result)
  488|       |        return result;
  489|       |      ctx->state = CF_SETUP_CNNCT_SSL;
  490|       |    }
  491|       |    if(!cf->next || !cf->next->connected)
  492|       |      goto connect_sub_chain;
  493|       |  }
  494|       |  else
  495|       |#endif /* !CURL_DISABLE_HTTP && USE_HTTP3 && USE_PROXY_HTTP3 */
  496|  7.02k|  {
  497|  7.02k|    if(ctx->state < CF_SETUP_CNNCT_SSL) {
  ------------------
  |  Branch (497:8): [True: 7.02k, False: 0]
  ------------------
  498|  7.02k|#ifdef USE_SSL
  499|  7.02k|      if((ctx->ssl_mode == CURL_CF_SSL_ENABLE ||
  ------------------
  |  |  365|  14.0k|#define CURL_CF_SSL_ENABLE   1
  ------------------
  |  Branch (499:11): [True: 0, False: 7.02k]
  ------------------
  500|  7.02k|          (ctx->ssl_mode != CURL_CF_SSL_DISABLE &&
  ------------------
  |  |  364|  14.0k|#define CURL_CF_SSL_DISABLE  0
  ------------------
  |  Branch (500:12): [True: 7.02k, False: 0]
  ------------------
  501|  7.02k|           cf->conn->scheme->flags & PROTOPT_SSL)) && /* we want SSL */
  ------------------
  |  |  207|  7.02k|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
  |  Branch (501:12): [True: 229, False: 6.79k]
  ------------------
  502|    229|         !Curl_conn_is_ssl(cf->conn, cf->sockindex)) { /* it is missing */
  ------------------
  |  Branch (502:10): [True: 229, False: 0]
  ------------------
  503|    229|        result = Curl_cf_ssl_insert_after(cf, data);
  504|    229|        if(result)
  ------------------
  |  Branch (504:12): [True: 0, False: 229]
  ------------------
  505|      0|          return result;
  506|    229|      }
  507|  7.02k|#endif /* USE_SSL */
  508|  7.02k|      ctx->state = CF_SETUP_CNNCT_SSL;
  509|  7.02k|      if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (509:10): [True: 0, False: 7.02k]
  |  Branch (509:23): [True: 229, False: 6.79k]
  ------------------
  510|    229|        goto connect_sub_chain;
  511|  7.02k|    }
  512|  7.02k|  }
  513|       |
  514|  6.79k|  ctx->state = CF_SETUP_DONE;
  515|  6.79k|  cf->connected = TRUE;
  ------------------
  |  | 1055|  6.79k|#define TRUE true
  ------------------
  516|       |  *done = TRUE;
  ------------------
  |  | 1055|  6.79k|#define TRUE true
  ------------------
  517|  6.79k|  return CURLE_OK;
  518|  7.02k|}
connect.c:cf_setup_close:
  522|    740|{
  523|    740|  struct cf_setup_ctx *ctx = cf->ctx;
  524|       |
  525|    740|  CURL_TRC_CF(data, cf, "close");
  ------------------
  |  |  153|    740|  do {                                          \
  |  |  154|    740|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    740|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.48k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 740, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 740]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.48k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    740|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    740|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    740|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 740]
  |  |  ------------------
  ------------------
  526|    740|  cf->connected = FALSE;
  ------------------
  |  | 1058|    740|#define FALSE false
  ------------------
  527|    740|  ctx->state = CF_SETUP_INIT;
  528|       |
  529|    740|  if(cf->next) {
  ------------------
  |  Branch (529:6): [True: 740, False: 0]
  ------------------
  530|    740|    cf->next->cft->do_close(cf->next, data);
  531|    740|    Curl_conn_cf_discard_chain(&cf->next, data);
  532|    740|  }
  533|    740|}
connect.c:cf_setup_create:
  565|  7.53k|{
  566|  7.53k|  struct Curl_cfilter *cf = NULL;
  567|  7.53k|  struct cf_setup_ctx *ctx;
  568|  7.53k|  CURLcode result = CURLE_OK;
  569|       |
  570|  7.53k|  (void)data;
  571|  7.53k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1480|  7.53k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  572|  7.53k|  if(!ctx) {
  ------------------
  |  Branch (572:6): [True: 0, False: 7.53k]
  ------------------
  573|      0|    result = CURLE_OUT_OF_MEMORY;
  574|      0|    goto out;
  575|      0|  }
  576|  7.53k|  ctx->state = CF_SETUP_INIT;
  577|  7.53k|  ctx->ssl_mode = ssl_mode;
  578|  7.53k|  ctx->transport = transport;
  579|       |
  580|  7.53k|  result = Curl_cf_create(&cf, &Curl_cft_setup, ctx);
  581|  7.53k|  if(result)
  ------------------
  |  Branch (581:6): [True: 0, False: 7.53k]
  ------------------
  582|      0|    goto out;
  583|  7.53k|  ctx = NULL;
  584|       |
  585|  7.53k|out:
  586|  7.53k|  *pcf = result ? NULL : cf;
  ------------------
  |  Branch (586:10): [True: 0, False: 7.53k]
  ------------------
  587|  7.53k|  if(ctx) {
  ------------------
  |  Branch (587:6): [True: 0, False: 7.53k]
  ------------------
  588|      0|    curlx_free(ctx);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  589|      0|  }
  590|  7.53k|  return result;
  591|  7.53k|}
connect.c:cf_setup_add:
  598|  7.53k|{
  599|  7.53k|  struct Curl_cfilter *cf;
  600|  7.53k|  CURLcode result = CURLE_OK;
  601|       |
  602|  7.53k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (602:3): [True: 0, False: 7.53k]
  |  Branch (602:3): [True: 7.53k, False: 0]
  ------------------
  603|  7.53k|  result = cf_setup_create(&cf, data, transport, ssl_mode);
  604|  7.53k|  if(result)
  ------------------
  |  Branch (604:6): [True: 0, False: 7.53k]
  ------------------
  605|      0|    goto out;
  606|  7.53k|  Curl_conn_cf_add(data, conn, sockindex, cf);
  607|  7.53k|out:
  608|  7.53k|  return result;
  609|  7.53k|}

Curl_get_content_encodings:
  641|  1.36k|{
  642|  1.36k|  struct dynbuf enc;
  643|  1.36k|  const struct Curl_cwtype * const *cep;
  644|  1.36k|  CURLcode result = CURLE_OK;
  645|  1.36k|  curlx_dyn_init(&enc, 255);
  646|       |
  647|  6.82k|  for(cep = general_unencoders; *cep && !result; cep++) {
  ------------------
  |  Branch (647:33): [True: 5.46k, False: 1.36k]
  |  Branch (647:41): [True: 5.46k, False: 0]
  ------------------
  648|  5.46k|    const struct Curl_cwtype *ce = *cep;
  649|  5.46k|    if(!curl_strequal(ce->name, CONTENT_ENCODING_DEFAULT)) {
  ------------------
  |  |   54|  5.46k|#define CONTENT_ENCODING_DEFAULT  "identity"
  ------------------
  |  Branch (649:8): [True: 4.09k, False: 1.36k]
  ------------------
  650|  4.09k|      if(curlx_dyn_len(&enc))
  ------------------
  |  Branch (650:10): [True: 2.73k, False: 1.36k]
  ------------------
  651|  2.73k|        result = curlx_dyn_addn(&enc, ", ", 2);
  652|  4.09k|      if(!result)
  ------------------
  |  Branch (652:10): [True: 4.09k, False: 0]
  ------------------
  653|  4.09k|        result = curlx_dyn_add(&enc, ce->name);
  654|  4.09k|    }
  655|  5.46k|  }
  656|  1.36k|  if(!result && !curlx_dyn_len(&enc))
  ------------------
  |  Branch (656:6): [True: 1.36k, False: 0]
  |  Branch (656:17): [True: 0, False: 1.36k]
  ------------------
  657|      0|    result = curlx_dyn_add(&enc, CONTENT_ENCODING_DEFAULT);
  ------------------
  |  |   54|      0|#define CONTENT_ENCODING_DEFAULT  "identity"
  ------------------
  658|       |
  659|  1.36k|  if(!result)
  ------------------
  |  Branch (659:6): [True: 1.36k, False: 0]
  ------------------
  660|  1.36k|    return curlx_dyn_ptr(&enc);
  661|      0|  return NULL;
  662|  1.36k|}
Curl_build_unencoding_stack:
  733|    321|{
  734|    321|  Curl_cwriter_phase phase = is_transfer ?
  ------------------
  |  Branch (734:30): [True: 263, False: 58]
  ------------------
  735|    263|    CURL_CW_TRANSFER_DECODE : CURL_CW_CONTENT_DECODE;
  736|    321|  CURLcode result;
  737|    321|  bool has_chunked = FALSE;
  ------------------
  |  | 1058|    321|#define FALSE false
  ------------------
  738|       |
  739|    412|  do {
  740|    412|    const char *name;
  741|    412|    size_t namelen;
  742|    412|    bool is_chunked = FALSE;
  ------------------
  |  | 1058|    412|#define FALSE false
  ------------------
  743|       |
  744|       |    /* Parse a single encoding name. */
  745|  1.79k|    while(ISBLANK(*enclist) || *enclist == ',')
  ------------------
  |  |   45|  3.58k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 550, False: 1.24k]
  |  |  |  Branch (45:38): [True: 227, False: 1.01k]
  |  |  ------------------
  ------------------
  |  Branch (745:32): [True: 602, False: 412]
  ------------------
  746|  1.37k|      enclist++;
  747|       |
  748|    412|    name = enclist;
  749|       |
  750|  5.01k|    for(namelen = 0; *enclist && *enclist != ','; enclist++)
  ------------------
  |  Branch (750:22): [True: 4.71k, False: 305]
  |  Branch (750:34): [True: 4.60k, False: 107]
  ------------------
  751|  4.60k|      if(*enclist > ' ')
  ------------------
  |  Branch (751:10): [True: 2.58k, False: 2.02k]
  ------------------
  752|  2.58k|        namelen = enclist - name + 1;
  753|       |
  754|    412|    if(namelen) {
  ------------------
  |  Branch (754:8): [True: 340, False: 72]
  ------------------
  755|    340|      const struct Curl_cwtype *cwt;
  756|    340|      struct Curl_cwriter *writer;
  757|       |
  758|    340|      CURL_TRC_WRITE(data, "looking for %s decoder: %.*s",
  ------------------
  |  |  158|    340|  do {                                                     \
  |  |  159|    340|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|    340|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    680|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 340, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 340]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    680|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    340|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|    340|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (160:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  161|    340|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 340]
  |  |  ------------------
  ------------------
  759|    340|                     is_transfer ? "transfer" : "content", (int)namelen, name);
  760|    340|      is_chunked = (is_transfer && (namelen == 7) &&
  ------------------
  |  Branch (760:21): [True: 251, False: 89]
  |  Branch (760:36): [True: 225, False: 26]
  ------------------
  761|    225|                    curl_strnequal(name, "chunked", 7));
  ------------------
  |  Branch (761:21): [True: 224, False: 1]
  ------------------
  762|       |      /* if we skip the decoding in this phase, do not look further.
  763|       |       * Exception is "chunked" transfer-encoding which always must happen */
  764|    340|      if((is_transfer && !data->set.http_transfer_encoding && !is_chunked) ||
  ------------------
  |  Branch (764:11): [True: 251, False: 89]
  |  Branch (764:26): [True: 251, False: 0]
  |  Branch (764:63): [True: 27, False: 224]
  ------------------
  765|    313|         (!is_transfer && data->set.http_ce_skip)) {
  ------------------
  |  Branch (765:11): [True: 89, False: 224]
  |  Branch (765:27): [True: 0, False: 89]
  ------------------
  766|     27|        bool is_identity = curl_strnequal(name, "identity", 8);
  767|       |        /* not requested, ignore */
  768|     27|        CURL_TRC_WRITE(data, "decoder not requested, ignored: %.*s",
  ------------------
  |  |  158|     27|  do {                                                     \
  |  |  159|     27|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|     27|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     54|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 27, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 27]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     54|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     27|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|     27|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|     27|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 27]
  |  |  ------------------
  ------------------
  769|     27|                       (int)namelen, name);
  770|     27|        if(is_transfer && !data->set.http_te_skip) {
  ------------------
  |  Branch (770:12): [True: 27, False: 0]
  |  Branch (770:27): [True: 27, False: 0]
  ------------------
  771|     27|          if(has_chunked)
  ------------------
  |  Branch (771:14): [True: 5, False: 22]
  ------------------
  772|      5|            failf(data, "A Transfer-Encoding (%.*s) was listed after chunked",
  ------------------
  |  |   62|      5|#define failf Curl_failf
  ------------------
  773|      5|                  (int)namelen, name);
  774|     22|          else if(is_identity)
  ------------------
  |  Branch (774:19): [True: 0, False: 22]
  ------------------
  775|      0|            continue;
  776|     22|          else
  777|     22|            failf(data, "Unsolicited Transfer-Encoding (%.*s) found",
  ------------------
  |  |   62|     22|#define failf Curl_failf
  ------------------
  778|     22|                  (int)namelen, name);
  779|     27|          return CURLE_BAD_CONTENT_ENCODING;
  780|     27|        }
  781|      0|        return CURLE_OK;
  782|     27|      }
  783|       |
  784|    313|      if(Curl_cwriter_count(data, phase) >= MAX_ENCODE_STACK) {
  ------------------
  |  |   59|    313|#define MAX_ENCODE_STACK 5
  ------------------
  |  Branch (784:10): [True: 1, False: 312]
  ------------------
  785|      1|        failf(data, "Reject response exceeding limit of %d %s encodings",
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
  786|      1|              MAX_ENCODE_STACK,
  ------------------
  |  |   59|      1|#define MAX_ENCODE_STACK 5
  ------------------
  787|      1|              is_transfer ? "transfer" : "content");
  ------------------
  |  Branch (787:15): [True: 0, False: 1]
  ------------------
  788|      1|        return CURLE_BAD_CONTENT_ENCODING;
  789|      1|      }
  790|       |
  791|    312|      cwt = find_unencode_writer(name, namelen, phase);
  792|    312|      if(cwt && is_chunked && Curl_cwriter_get_by_type(data, cwt)) {
  ------------------
  |  Branch (792:10): [True: 224, False: 88]
  |  Branch (792:17): [True: 224, False: 0]
  |  Branch (792:31): [True: 16, False: 208]
  ------------------
  793|       |        /* A 'chunked' transfer encoding has already been added.
  794|       |         * Ignore duplicates. See #13451.
  795|       |         * Also RFC 9112, ch. 6.1:
  796|       |         * "A sender MUST NOT apply the chunked transfer coding more than
  797|       |         *  once to a message body."
  798|       |         */
  799|     16|        CURL_TRC_WRITE(data, "ignoring duplicate 'chunked' decoder");
  ------------------
  |  |  158|     16|  do {                                                     \
  |  |  159|     16|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|     16|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     32|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 16, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 16]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     32|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     16|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|     16|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|     16|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 16]
  |  |  ------------------
  ------------------
  800|     16|        return CURLE_OK;
  801|     16|      }
  802|       |
  803|    296|      if(is_transfer && !is_chunked &&
  ------------------
  |  Branch (803:10): [True: 208, False: 88]
  |  Branch (803:25): [True: 0, False: 208]
  ------------------
  804|      0|         Curl_cwriter_get_by_name(data, "chunked")) {
  ------------------
  |  Branch (804:10): [True: 0, False: 0]
  ------------------
  805|       |        /* RFC 9112, ch. 6.1:
  806|       |         * "If any transfer coding other than chunked is applied to a
  807|       |         *  response's content, the sender MUST either apply chunked as the
  808|       |         *  final transfer coding or terminate the message by closing the
  809|       |         *  connection."
  810|       |         * "chunked" must be the last added to be the first in its phase,
  811|       |         *  reject this.
  812|       |         */
  813|      0|        failf(data, "Reject response due to 'chunked' not being the last "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  814|      0|              "Transfer-Encoding");
  815|      0|        return CURLE_BAD_CONTENT_ENCODING;
  816|      0|      }
  817|       |
  818|    296|      if(!cwt)
  ------------------
  |  Branch (818:10): [True: 88, False: 208]
  ------------------
  819|     88|        cwt = &error_writer; /* Defer error at use. */
  820|       |
  821|    296|      result = Curl_cwriter_create(&writer, data, cwt, phase);
  822|    296|      CURL_TRC_WRITE(data, "added %s decoder %s -> %d",
  ------------------
  |  |  158|    296|  do {                                                     \
  |  |  159|    296|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|    296|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    592|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 296, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 296]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    592|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    296|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|    296|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (160:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  161|    296|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 296]
  |  |  ------------------
  ------------------
  823|    296|                     is_transfer ? "transfer" : "content", cwt->name, result);
  824|    296|      if(result)
  ------------------
  |  Branch (824:10): [True: 0, False: 296]
  ------------------
  825|      0|        return result;
  826|       |
  827|    296|      result = Curl_cwriter_add(data, writer);
  828|    296|      if(result) {
  ------------------
  |  Branch (828:10): [True: 0, False: 296]
  ------------------
  829|      0|        Curl_cwriter_free(data, writer);
  830|      0|        return result;
  831|      0|      }
  832|    296|      if(is_chunked)
  ------------------
  |  Branch (832:10): [True: 208, False: 88]
  ------------------
  833|    208|        has_chunked = TRUE;
  ------------------
  |  | 1055|    208|#define TRUE true
  ------------------
  834|    296|    }
  835|    412|  } while(*enclist);
  ------------------
  |  Branch (835:11): [True: 91, False: 277]
  ------------------
  836|       |
  837|    277|  return CURLE_OK;
  838|    321|}
content_encoding.c:find_unencode_writer:
  707|    312|{
  708|    312|  const struct Curl_cwtype * const *cep;
  709|       |
  710|    312|  if(phase == CURL_CW_TRANSFER_DECODE) {
  ------------------
  |  Branch (710:6): [True: 224, False: 88]
  ------------------
  711|    224|    for(cep = transfer_unencoders; *cep; cep++) {
  ------------------
  |  Branch (711:36): [True: 224, False: 0]
  ------------------
  712|    224|      const struct Curl_cwtype *ce = *cep;
  713|    224|      if((curl_strnequal(name, ce->name, len) && !ce->name[len]) ||
  ------------------
  |  Branch (713:11): [True: 224, False: 0]
  |  Branch (713:50): [True: 224, False: 0]
  ------------------
  714|      0|         (ce->alias && curl_strnequal(name, ce->alias, len) &&
  ------------------
  |  Branch (714:11): [True: 0, False: 0]
  |  Branch (714:24): [True: 0, False: 0]
  ------------------
  715|      0|          !ce->alias[len]))
  ------------------
  |  Branch (715:11): [True: 0, False: 0]
  ------------------
  716|    224|        return ce;
  717|    224|    }
  718|    224|  }
  719|       |  /* look among the general decoders */
  720|    440|  for(cep = general_unencoders; *cep; cep++) {
  ------------------
  |  Branch (720:33): [True: 352, False: 88]
  ------------------
  721|    352|    const struct Curl_cwtype *ce = *cep;
  722|    352|    if((curl_strnequal(name, ce->name, len) && !ce->name[len]) ||
  ------------------
  |  Branch (722:9): [True: 14, False: 338]
  |  Branch (722:48): [True: 0, False: 14]
  ------------------
  723|    352|       (ce->alias && curl_strnequal(name, ce->alias, len) && !ce->alias[len]))
  ------------------
  |  Branch (723:9): [True: 176, False: 176]
  |  Branch (723:22): [True: 12, False: 164]
  |  Branch (723:62): [True: 0, False: 12]
  ------------------
  724|      0|      return ce;
  725|    352|  }
  726|     88|  return NULL;
  727|     88|}
content_encoding.c:error_do_init:
  667|     88|{
  668|     88|  (void)data;
  669|     88|  (void)writer;
  670|     88|  return CURLE_OK;
  671|     88|}
content_encoding.c:error_do_write:
  676|    452|{
  677|    452|  (void)writer;
  678|    452|  (void)buf;
  679|    452|  (void)nbytes;
  680|       |
  681|    452|  if(!(type & CLIENTWRITE_BODY) || !nbytes)
  ------------------
  |  |   42|    452|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (681:6): [True: 437, False: 15]
  |  Branch (681:36): [True: 10, False: 5]
  ------------------
  682|    447|    return Curl_cwriter_write(data, writer->next, type, buf, nbytes);
  683|      5|  failf(data, "Unrecognized content encoding type");
  ------------------
  |  |   62|      5|#define failf Curl_failf
  ------------------
  684|      5|  return CURLE_BAD_CONTENT_ENCODING;
  685|    452|}
content_encoding.c:error_do_close:
  689|     88|{
  690|     88|  (void)data;
  691|     88|  (void)writer;
  692|     88|}

Curl_cookie_add:
  943|    979|{
  944|    979|  struct Cookie comem;
  945|    979|  struct Cookie *co;
  946|    979|  size_t myhash;
  947|    979|  CURLcode result;
  948|    979|  bool replaces = FALSE;
  ------------------
  |  | 1058|    979|#define FALSE false
  ------------------
  949|    979|  bool okay;
  950|       |
  951|    979|  DEBUGASSERT(data);
  ------------------
  |  | 1081|    979|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (951:3): [True: 0, False: 979]
  |  Branch (951:3): [True: 979, False: 0]
  ------------------
  952|    979|  DEBUGASSERT(MAX_SET_COOKIE_AMOUNT <= 255); /* counter is an unsigned char */
  ------------------
  |  | 1081|    979|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (952:3): [True: 0, Folded]
  |  Branch (952:3): [True: 979, Folded]
  ------------------
  953|    979|  if(data->req.setcookies >= MAX_SET_COOKIE_AMOUNT)
  ------------------
  |  |   90|    979|#define MAX_SET_COOKIE_AMOUNT 50
  ------------------
  |  Branch (953:6): [True: 0, False: 979]
  ------------------
  954|      0|    return CURLE_OK; /* silently ignore */
  955|       |
  956|    979|  co = &comem;
  957|    979|  memset(co, 0, sizeof(comem));
  958|       |
  959|    979|  if(httpheader)
  ------------------
  |  Branch (959:6): [True: 979, False: 0]
  ------------------
  960|    979|    result = parse_cookie_header(data, co, ci, &okay,
  961|    979|                                 lineptr, domain, path, secure);
  962|      0|  else
  963|      0|    result = parse_netscape(co, ci, &okay, lineptr, secure);
  964|       |
  965|    979|  if(result || !okay)
  ------------------
  |  Branch (965:6): [True: 0, False: 979]
  |  Branch (965:16): [True: 575, False: 404]
  ------------------
  966|    575|    goto fail;
  967|       |
  968|    404|  if(co->prefix_secure && !co->secure)
  ------------------
  |  Branch (968:6): [True: 0, False: 404]
  |  Branch (968:27): [True: 0, False: 0]
  ------------------
  969|       |    /* The __Secure- prefix only requires that the cookie be set secure */
  970|      0|    goto fail;
  971|       |
  972|    404|  if(co->prefix_host) {
  ------------------
  |  Branch (972:6): [True: 0, False: 404]
  ------------------
  973|       |    /*
  974|       |     * The __Host- prefix requires the cookie to be secure, have a "/" path
  975|       |     * and not have a domain set.
  976|       |     */
  977|      0|    if(co->secure && co->path && !strcmp(co->path, "/") && !co->tailmatch)
  ------------------
  |  Branch (977:8): [True: 0, False: 0]
  |  Branch (977:22): [True: 0, False: 0]
  |  Branch (977:34): [True: 0, False: 0]
  |  Branch (977:60): [True: 0, False: 0]
  ------------------
  978|      0|      ;
  979|      0|    else
  980|      0|      goto fail;
  981|      0|  }
  982|       |
  983|    404|  if(!ci->running &&    /* read from a file */
  ------------------
  |  Branch (983:6): [True: 0, False: 404]
  ------------------
  984|      0|     ci->newsession &&  /* clean session cookies */
  ------------------
  |  Branch (984:6): [True: 0, False: 0]
  ------------------
  985|      0|     !co->expires)      /* this is a session cookie */
  ------------------
  |  Branch (985:6): [True: 0, False: 0]
  ------------------
  986|      0|    goto fail;
  987|       |
  988|    404|  co->livecookie = ci->running;
  989|    404|  co->creationtime = ++ci->lastct;
  990|       |
  991|       |  /*
  992|       |   * Now we have parsed the incoming line, we must now check if this supersedes
  993|       |   * an already existing cookie, which it may if the previous have the same
  994|       |   * domain and path as this.
  995|       |   */
  996|       |
  997|       |  /* remove expired cookies */
  998|    404|  if(!noexpire)
  ------------------
  |  Branch (998:6): [True: 404, False: 0]
  ------------------
  999|    404|    remove_expired(ci);
 1000|       |
 1001|    404|  if(is_public_suffix(data, co, domain))
  ------------------
  |  Branch (1001:6): [True: 0, False: 404]
  ------------------
 1002|      0|    goto fail;
 1003|       |
 1004|    404|  if(!replace_existing(data, co, ci, secure, &replaces))
  ------------------
  |  Branch (1004:6): [True: 0, False: 404]
  ------------------
 1005|      0|    goto fail;
 1006|       |
 1007|       |  /* clone the stack struct into heap */
 1008|    404|  co = curlx_memdup(&comem, sizeof(comem));
 1009|    404|  if(!co) {
  ------------------
  |  Branch (1009:6): [True: 0, False: 404]
  ------------------
 1010|      0|    co = &comem;
 1011|      0|    result = CURLE_OUT_OF_MEMORY;
 1012|      0|    goto fail; /* bail out if we are this low on memory */
 1013|      0|  }
 1014|       |
 1015|       |  /* add this cookie to the list */
 1016|    404|  myhash = cookiehash(co->domain);
 1017|    404|  Curl_llist_append(&ci->cookielist[myhash], co, &co->node);
 1018|       |
 1019|    404|  if(ci->running)
  ------------------
  |  Branch (1019:6): [True: 404, False: 0]
  ------------------
 1020|       |    /* Only show this when NOT reading the cookies from a file */
 1021|    404|    infof(data, "%s cookie %s=\"%s\" for domain %s, path %s, "
  ------------------
  |  |  143|    404|  do {                               \
  |  |  144|    404|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    404|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 404, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 404]
  |  |  |  |  ------------------
  |  |  |  |  320|    404|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    404|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|    404|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 404]
  |  |  ------------------
  ------------------
 1022|    404|          "expire %" FMT_OFF_T,
 1023|    404|          replaces ? "Replaced" : "Added", co->name, co->value,
 1024|    404|          co->domain, co->path, co->expires);
 1025|       |
 1026|    404|  if(!replaces)
  ------------------
  |  Branch (1026:6): [True: 62, False: 342]
  ------------------
 1027|     62|    ci->numcookies++; /* one more cookie in the jar */
 1028|       |
 1029|       |  /*
 1030|       |   * Now that we have added a new cookie to the jar, update the expiration
 1031|       |   * tracker in case it is the next one to expire.
 1032|       |   */
 1033|    404|  if(co->expires && (co->expires < ci->next_expiration))
  ------------------
  |  Branch (1033:6): [True: 0, False: 404]
  |  Branch (1033:21): [True: 0, False: 0]
  ------------------
 1034|      0|    ci->next_expiration = co->expires;
 1035|       |
 1036|    404|  if(httpheader)
  ------------------
  |  Branch (1036:6): [True: 404, False: 0]
  ------------------
 1037|    404|    data->req.setcookies++;
 1038|       |
 1039|    404|  return result;
 1040|    575|fail:
 1041|       |  freecookie(co, FALSE);
  ------------------
  |  | 1058|    575|#define FALSE false
  ------------------
 1042|    575|  return result;
 1043|    404|}
Curl_cookie_init:
 1060|  7.82k|{
 1061|  7.82k|  int i;
 1062|  7.82k|  struct CookieInfo *ci = curlx_calloc(1, sizeof(struct CookieInfo));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1063|  7.82k|  if(!ci)
  ------------------
  |  Branch (1063:6): [True: 0, False: 7.82k]
  ------------------
 1064|      0|    return NULL;
 1065|       |
 1066|       |  /* This does not use the destructor callback since we want to add
 1067|       |     and remove to lists while keeping the cookie struct intact */
 1068|   500k|  for(i = 0; i < COOKIE_HASH_SIZE; i++)
  ------------------
  |  |   54|   500k|#define COOKIE_HASH_SIZE 63
  ------------------
  |  Branch (1068:14): [True: 492k, False: 7.82k]
  ------------------
 1069|   492k|    Curl_llist_init(&ci->cookielist[i], NULL);
 1070|       |  /*
 1071|       |   * Initialize the next_expiration time to signal that we do not have enough
 1072|       |   * information yet.
 1073|       |   */
 1074|  7.82k|  ci->next_expiration = CURL_OFF_T_MAX;
  ------------------
  |  |  594|  7.82k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
 1075|       |
 1076|  7.82k|  return ci;
 1077|  7.82k|}
Curl_cookie_loadfiles:
 1165|  7.82k|{
 1166|  7.82k|  CURLcode result = CURLE_OK;
 1167|  7.82k|  struct curl_slist *list = data->state.cookielist;
 1168|  7.82k|  if(list) {
  ------------------
  |  Branch (1168:6): [True: 0, False: 7.82k]
  ------------------
 1169|      0|    Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 1170|      0|    if(!data->cookies)
  ------------------
  |  Branch (1170:8): [True: 0, False: 0]
  ------------------
 1171|      0|      data->cookies = Curl_cookie_init();
 1172|      0|    if(!data->cookies)
  ------------------
  |  Branch (1172:8): [True: 0, False: 0]
  ------------------
 1173|      0|      result = CURLE_OUT_OF_MEMORY;
 1174|      0|    else {
 1175|      0|      data->state.cookie_engine = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1176|      0|      while(list) {
  ------------------
  |  Branch (1176:13): [True: 0, False: 0]
  ------------------
 1177|      0|        result = cookie_load(data, list->data, data->cookies,
 1178|      0|                             (bool)data->set.cookiesession);
 1179|      0|        if(result)
  ------------------
  |  Branch (1179:12): [True: 0, False: 0]
  ------------------
 1180|      0|          break;
 1181|      0|        list = list->next;
 1182|      0|      }
 1183|      0|    }
 1184|      0|    Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 1185|      0|  }
 1186|  7.82k|  return result;
 1187|  7.82k|}
Curl_secure_context:
 1242|  10.5k|{
 1243|  10.5k|  return conn->scheme->protocol & (CURLPROTO_HTTPS | CURLPROTO_WSS) ||
  ------------------
  |  | 1079|  10.5k|#define CURLPROTO_HTTPS   (1L << 1)
  ------------------
                return conn->scheme->protocol & (CURLPROTO_HTTPS | CURLPROTO_WSS) ||
  ------------------
  |  |   64|  10.5k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  ------------------
  |  Branch (1243:10): [True: 0, False: 10.5k]
  ------------------
 1244|  10.5k|    curl_strequal("localhost", host) ||
  ------------------
  |  Branch (1244:5): [True: 0, False: 10.5k]
  ------------------
 1245|  10.5k|    !strcmp(host, "127.0.0.1") ||
  ------------------
  |  Branch (1245:5): [True: 2.16k, False: 8.39k]
  ------------------
 1246|  8.39k|    !strcmp(host, "::1");
  ------------------
  |  Branch (1246:5): [True: 0, False: 8.39k]
  ------------------
 1247|  10.5k|}
Curl_cookie_getlist:
 1265|  9.58k|{
 1266|  9.58k|  size_t matches = 0;
 1267|  9.58k|  const bool is_ip = Curl_host_is_ipnum(host);
 1268|  9.58k|  const size_t myhash = cookiehash(host);
 1269|  9.58k|  struct Curl_llist_node *n;
 1270|  9.58k|  const bool secure = Curl_secure_context(conn, host);
 1271|  9.58k|  struct CookieInfo *ci = data->cookies;
 1272|  9.58k|  const char *path = data->state.up.path;
 1273|  9.58k|  CURLcode result = CURLE_OK;
 1274|  9.58k|  *okay = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 1275|       |
 1276|  9.58k|  Curl_llist_init(list, NULL);
 1277|       |
 1278|  9.58k|  if(!ci || !Curl_llist_count(&ci->cookielist[myhash]))
  ------------------
  |  Branch (1278:6): [True: 0, False: 9.58k]
  |  Branch (1278:13): [True: 9.58k, False: 0]
  ------------------
 1279|  9.58k|    return CURLE_OK; /* no cookie struct or no cookies in the struct */
 1280|       |
 1281|       |  /* at first, remove expired cookies */
 1282|      0|  remove_expired(ci);
 1283|       |
 1284|      0|  for(n = Curl_llist_head(&ci->cookielist[myhash]); n; n = Curl_node_next(n)) {
  ------------------
  |  Branch (1284:53): [True: 0, False: 0]
  ------------------
 1285|      0|    struct Cookie *co = Curl_node_elem(n);
 1286|       |
 1287|       |    /* if the cookie requires we are secure we must only continue if we are! */
 1288|      0|    if(co->secure ? secure : TRUE) {
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  |  Branch (1288:8): [True: 0, False: 0]
  |  Branch (1288:8): [True: 0, False: 0]
  ------------------
 1289|       |
 1290|       |      /* now check if the domain is correct */
 1291|      0|      if(!co->domain ||
  ------------------
  |  Branch (1291:10): [True: 0, False: 0]
  ------------------
 1292|      0|         (co->tailmatch && !is_ip &&
  ------------------
  |  Branch (1292:11): [True: 0, False: 0]
  |  Branch (1292:28): [True: 0, False: 0]
  ------------------
 1293|      0|          cookie_tailmatch(co->domain, strlen(co->domain), host)) ||
  ------------------
  |  Branch (1293:11): [True: 0, False: 0]
  ------------------
 1294|      0|         ((!co->tailmatch || is_ip) && curl_strequal(host, co->domain))) {
  ------------------
  |  Branch (1294:12): [True: 0, False: 0]
  |  Branch (1294:30): [True: 0, False: 0]
  |  Branch (1294:40): [True: 0, False: 0]
  ------------------
 1295|       |        /*
 1296|       |         * the right part of the host matches the domain stuff in the
 1297|       |         * cookie data
 1298|       |         */
 1299|       |
 1300|       |        /*
 1301|       |         * now check the left part of the path with the cookies path
 1302|       |         * requirement
 1303|       |         */
 1304|      0|        if(!co->path || pathmatch(co->path, path)) {
  ------------------
  |  Branch (1304:12): [True: 0, False: 0]
  |  Branch (1304:25): [True: 0, False: 0]
  ------------------
 1305|       |
 1306|       |          /*
 1307|       |           * This is a match and we add it to the return-linked-list
 1308|       |           */
 1309|      0|          Curl_llist_append(list, co, &co->getnode);
 1310|      0|          matches++;
 1311|      0|          if(matches >= MAX_COOKIE_SEND_AMOUNT) {
  ------------------
  |  |  102|      0|#define MAX_COOKIE_SEND_AMOUNT 150
  ------------------
  |  Branch (1311:14): [True: 0, False: 0]
  ------------------
 1312|      0|            infof(data, "Included max number of cookies (%zu) in request!",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1313|      0|                  matches);
 1314|      0|            break;
 1315|      0|          }
 1316|      0|        }
 1317|      0|      }
 1318|      0|    }
 1319|      0|  }
 1320|       |
 1321|      0|  if(matches) {
  ------------------
  |  Branch (1321:6): [True: 0, False: 0]
  ------------------
 1322|       |    /*
 1323|       |     * Now we need to make sure that if there is a name appearing more than
 1324|       |     * once, the longest specified path version comes first. To make this the
 1325|       |     * swiftest way, we sort them all based on path length.
 1326|       |     */
 1327|      0|    struct Cookie **array;
 1328|      0|    size_t i;
 1329|       |
 1330|       |    /* alloc an array and store all cookie pointers */
 1331|      0|    array = curlx_malloc(sizeof(struct Cookie *) * matches);
  ------------------
  |  | 1478|      0|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
 1332|      0|    if(!array) {
  ------------------
  |  Branch (1332:8): [True: 0, False: 0]
  ------------------
 1333|      0|      result = CURLE_OUT_OF_MEMORY;
 1334|      0|      goto fail;
 1335|      0|    }
 1336|       |
 1337|      0|    n = Curl_llist_head(list);
 1338|       |
 1339|      0|    for(i = 0; n; n = Curl_node_next(n))
  ------------------
  |  Branch (1339:16): [True: 0, False: 0]
  ------------------
 1340|      0|      array[i++] = Curl_node_elem(n);
 1341|       |
 1342|       |    /* now sort the cookie pointers in path length order */
 1343|      0|    qsort(array, matches, sizeof(struct Cookie *), cookie_sort);
 1344|       |
 1345|       |    /* remake the linked list order according to the new order */
 1346|      0|    Curl_llist_destroy(list, NULL);
 1347|       |
 1348|      0|    for(i = 0; i < matches; i++)
  ------------------
  |  Branch (1348:16): [True: 0, False: 0]
  ------------------
 1349|      0|      Curl_llist_append(list, array[i], &array[i]->getnode);
 1350|       |
 1351|      0|    curlx_free(array); /* remove the temporary data again */
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1352|      0|  }
 1353|       |
 1354|      0|  *okay = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1355|      0|  return CURLE_OK; /* success */
 1356|       |
 1357|      0|fail:
 1358|       |  /* failure, clear up the allocated chain and return NULL */
 1359|       |  Curl_llist_destroy(list, NULL);
 1360|      0|  return result; /* error */
 1361|      0|}
Curl_cookie_clearall:
 1369|  7.82k|{
 1370|  7.82k|  if(ci) {
  ------------------
  |  Branch (1370:6): [True: 7.82k, False: 0]
  ------------------
 1371|  7.82k|    unsigned int i;
 1372|   500k|    for(i = 0; i < COOKIE_HASH_SIZE; i++) {
  ------------------
  |  |   54|   500k|#define COOKIE_HASH_SIZE 63
  ------------------
  |  Branch (1372:16): [True: 492k, False: 7.82k]
  ------------------
 1373|   492k|      struct Curl_llist_node *n;
 1374|   492k|      for(n = Curl_llist_head(&ci->cookielist[i]); n;) {
  ------------------
  |  Branch (1374:52): [True: 62, False: 492k]
  ------------------
 1375|     62|        struct Cookie *c = Curl_node_elem(n);
 1376|     62|        struct Curl_llist_node *e = Curl_node_next(n);
 1377|     62|        Curl_node_remove(n);
 1378|       |        freecookie(c, TRUE);
  ------------------
  |  | 1055|     62|#define TRUE true
  ------------------
 1379|     62|        n = e;
 1380|     62|      }
 1381|   492k|    }
 1382|  7.82k|    ci->numcookies = 0;
 1383|  7.82k|  }
 1384|  7.82k|}
Curl_cookie_cleanup:
 1420|  7.82k|{
 1421|  7.82k|  if(ci) {
  ------------------
  |  Branch (1421:6): [True: 7.82k, False: 0]
  ------------------
 1422|  7.82k|    Curl_cookie_clearall(ci);
 1423|  7.82k|    curlx_free(ci); /* free the base struct as well */
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1424|  7.82k|  }
 1425|  7.82k|}
Curl_flush_cookies:
 1613|  15.6k|{
 1614|  15.6k|  Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 1615|       |  /* only save the cookie file if a transfer was started (cookies->running is
 1616|       |     set), as otherwise the cookies were not completely initialized and there
 1617|       |     might be cookie files that were not loaded so saving the file is the
 1618|       |     wrong thing. */
 1619|  15.6k|  if(data->cookies) {
  ------------------
  |  Branch (1619:6): [True: 7.82k, False: 7.82k]
  ------------------
 1620|  7.82k|    if(data->set.str[STRING_COOKIEJAR] && data->cookies->running) {
  ------------------
  |  Branch (1620:8): [True: 7.82k, False: 0]
  |  Branch (1620:43): [True: 7.82k, False: 0]
  ------------------
 1621|       |      /* if we have a destination file for all the cookies to get dumped to */
 1622|  7.82k|      CURLcode result = cookie_output(data, data->cookies,
 1623|  7.82k|                                      data->set.str[STRING_COOKIEJAR]);
 1624|  7.82k|      if(result)
  ------------------
  |  Branch (1624:10): [True: 0, False: 7.82k]
  ------------------
 1625|      0|        infof(data, "WARNING: failed to save cookies in %s: %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1626|  7.82k|              data->set.str[STRING_COOKIEJAR], curl_easy_strerror(result));
 1627|  7.82k|    }
 1628|       |
 1629|  7.82k|    if(cleanup && (!data->share || (data->cookies != data->share->cookies))) {
  ------------------
  |  Branch (1629:8): [True: 7.82k, False: 0]
  |  Branch (1629:20): [True: 7.82k, False: 0]
  |  Branch (1629:36): [True: 0, False: 0]
  ------------------
 1630|  7.82k|      Curl_cookie_cleanup(data->cookies);
 1631|       |      data->cookies = NULL;
 1632|  7.82k|    }
 1633|  7.82k|  }
 1634|  15.6k|  Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 1635|  15.6k|}
Curl_cookie_run:
 1638|  7.82k|{
 1639|  7.82k|  Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 1640|  7.82k|  if(data->cookies)
  ------------------
  |  Branch (1640:6): [True: 7.82k, False: 0]
  ------------------
 1641|  7.82k|    data->cookies->running = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
 1642|  7.82k|  Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 1643|  7.82k|}
cookie.c:parse_cookie_header:
  429|    979|{
  430|       |  /* This line was read off an HTTP-header */
  431|    979|  time_t now = 0;
  432|    979|  size_t linelength = strlen(ptr);
  433|    979|  CURLcode result = CURLE_OK;
  434|    979|  struct Curl_str cookie[COOKIE_PIECES];
  435|    979|  *okay = FALSE;
  ------------------
  |  | 1058|    979|#define FALSE false
  ------------------
  436|    979|  if(linelength > MAX_COOKIE_LINE)
  ------------------
  |  |   81|    979|#define MAX_COOKIE_LINE 5000
  ------------------
  |  Branch (436:6): [True: 0, False: 979]
  ------------------
  437|       |    /* discard overly long lines at once */
  438|      0|    return CURLE_OK;
  439|       |
  440|       |  /* memset instead of initializer because gcc 4.8.1 is silly */
  441|    979|  memset(cookie, 0, sizeof(cookie));
  442|  1.83k|  do {
  443|  1.83k|    struct Curl_str name;
  444|  1.83k|    struct Curl_str val;
  445|       |
  446|       |    /* we have a <name>=<value> pair or a stand-alone word here */
  447|  1.83k|    if(!curlx_str_cspn(&ptr, &name, ";\t\r\n=")) {
  ------------------
  |  Branch (447:8): [True: 1.37k, False: 459]
  ------------------
  448|  1.37k|      bool sep = FALSE;
  ------------------
  |  | 1058|  1.37k|#define FALSE false
  ------------------
  449|  1.37k|      curlx_str_trimblanks(&name);
  450|       |
  451|  1.37k|      if(!curlx_str_single(&ptr, '=')) {
  ------------------
  |  Branch (451:10): [True: 774, False: 599]
  ------------------
  452|    774|        sep = TRUE; /* a '=' was used */
  ------------------
  |  | 1055|    774|#define TRUE true
  ------------------
  453|    774|        if(!curlx_str_cspn(&ptr, &val, ";\r\n"))
  ------------------
  |  Branch (453:12): [True: 719, False: 55]
  ------------------
  454|    719|          curlx_str_trimblanks(&val);
  455|       |
  456|       |        /* Reject cookies with a TAB inside the value */
  457|    774|        if(curlx_strlen(&val) &&
  ------------------
  |  |   50|  1.54k|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 719, False: 55]
  |  |  ------------------
  ------------------
  458|    719|           memchr(curlx_str(&val), '\t', curlx_strlen(&val))) {
  ------------------
  |  |   49|    719|#define curlx_str(x)    ((x)->str)
  ------------------
                         memchr(curlx_str(&val), '\t', curlx_strlen(&val))) {
  ------------------
  |  |   50|    719|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (458:12): [True: 0, False: 719]
  ------------------
  459|      0|          infof(data, "cookie contains TAB, dropping");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  460|      0|          return CURLE_OK;
  461|      0|        }
  462|    774|      }
  463|    599|      else
  464|    599|        curlx_str_init(&val);
  465|       |
  466|  1.37k|      if(!curlx_strlen(&cookie[COOKIE_NAME])) {
  ------------------
  |  |   50|  1.37k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (466:10): [True: 979, False: 394]
  ------------------
  467|       |        /* The first name/value pair is the actual cookie name */
  468|    979|        if(!sep ||
  ------------------
  |  Branch (468:12): [True: 470, False: 509]
  ------------------
  469|       |           /* Bad name/value pair. */
  470|    509|           invalid_octets(curlx_str(&name), curlx_strlen(&name)) ||
  ------------------
  |  |   49|    509|#define curlx_str(x)    ((x)->str)
  ------------------
                         invalid_octets(curlx_str(&name), curlx_strlen(&name)) ||
  ------------------
  |  |   50|    509|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (470:12): [True: 0, False: 509]
  ------------------
  471|    509|           invalid_octets(curlx_str(&val), curlx_strlen(&val)) ||
  ------------------
  |  |   49|    509|#define curlx_str(x)    ((x)->str)
  ------------------
                         invalid_octets(curlx_str(&val), curlx_strlen(&val)) ||
  ------------------
  |  |   50|    509|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (471:12): [True: 0, False: 509]
  ------------------
  472|    575|           !curlx_strlen(&name)) {
  ------------------
  |  |   50|    509|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (472:12): [True: 105, False: 404]
  ------------------
  473|    575|          infof(data, "invalid octets in name/value, cookie dropped");
  ------------------
  |  |  143|    575|  do {                               \
  |  |  144|    575|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    575|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 575, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 575]
  |  |  |  |  ------------------
  |  |  |  |  320|    575|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    575|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    575|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 575]
  |  |  ------------------
  ------------------
  474|    575|          return CURLE_OK;
  475|    575|        }
  476|       |
  477|       |        /*
  478|       |         * Check for too long individual name or contents, or too long
  479|       |         * combination of name + contents. Chrome and Firefox support 4095 or
  480|       |         * 4096 bytes combo
  481|       |         */
  482|    404|        if(curlx_strlen(&name) >= (MAX_NAME - 1) ||
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  ------------------
                      if(curlx_strlen(&name) >= (MAX_NAME - 1) ||
  ------------------
  |  |   85|    404|#define MAX_NAME 4096
  ------------------
  |  Branch (482:12): [True: 0, False: 404]
  ------------------
  483|    404|           curlx_strlen(&val) >= (MAX_NAME - 1) ||
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  ------------------
                         curlx_strlen(&val) >= (MAX_NAME - 1) ||
  ------------------
  |  |   85|    404|#define MAX_NAME 4096
  ------------------
  |  Branch (483:12): [True: 0, False: 404]
  ------------------
  484|    404|           ((curlx_strlen(&name) + curlx_strlen(&val)) > MAX_NAME)) {
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  ------------------
                         ((curlx_strlen(&name) + curlx_strlen(&val)) > MAX_NAME)) {
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  ------------------
                         ((curlx_strlen(&name) + curlx_strlen(&val)) > MAX_NAME)) {
  ------------------
  |  |   85|    404|#define MAX_NAME 4096
  ------------------
  |  Branch (484:12): [True: 0, False: 404]
  ------------------
  485|      0|          infof(data, "oversized cookie dropped, name/val %zu + %zu bytes",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  486|      0|                curlx_strlen(&name), curlx_strlen(&val));
  487|      0|          return CURLE_OK;
  488|      0|        }
  489|       |
  490|       |        /* Check if we have a reserved prefix set. */
  491|    404|        if(!strncmp("__Secure-", curlx_str(&name), 9))
  ------------------
  |  |   49|    404|#define curlx_str(x)    ((x)->str)
  ------------------
  |  Branch (491:12): [True: 0, False: 404]
  ------------------
  492|      0|          co->prefix_secure = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  493|    404|        else if(!strncmp("__Host-", curlx_str(&name), 7))
  ------------------
  |  |   49|    404|#define curlx_str(x)    ((x)->str)
  ------------------
  |  Branch (493:17): [True: 0, False: 404]
  ------------------
  494|      0|          co->prefix_host = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  495|       |
  496|    404|        cookie[COOKIE_NAME] = name;
  ------------------
  |  |  365|    404|#define COOKIE_NAME   0
  ------------------
  497|    404|        cookie[COOKIE_VALUE] = val;
  ------------------
  |  |  366|    404|#define COOKIE_VALUE  1
  ------------------
  498|    404|      }
  499|    394|      else if(!sep) {
  ------------------
  |  Branch (499:15): [True: 129, False: 265]
  ------------------
  500|       |        /*
  501|       |         * this is a "<name>" with no content
  502|       |         */
  503|       |
  504|       |        /*
  505|       |         * secure cookies are only allowed to be set when the connection is
  506|       |         * using a secure protocol, or when the cookie is being set by
  507|       |         * reading from file
  508|       |         */
  509|    129|        if(curlx_str_casecompare(&name, "secure")) {
  ------------------
  |  Branch (509:12): [True: 0, False: 129]
  ------------------
  510|      0|          if(secure || !ci->running)
  ------------------
  |  Branch (510:14): [True: 0, False: 0]
  |  Branch (510:24): [True: 0, False: 0]
  ------------------
  511|      0|            co->secure = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  512|      0|          else {
  513|      0|            infof(data, "skipped cookie because not 'secure'");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  514|      0|            return CURLE_OK;
  515|      0|          }
  516|      0|        }
  517|    129|        else if(curlx_str_casecompare(&name, "httponly"))
  ------------------
  |  Branch (517:17): [True: 0, False: 129]
  ------------------
  518|      0|          co->httponly = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  519|    129|      }
  520|    265|      else if(curlx_str_casecompare(&name, "path")) {
  ------------------
  |  Branch (520:15): [True: 0, False: 265]
  ------------------
  521|      0|        cookie[COOKIE_PATH] = val;
  ------------------
  |  |  368|      0|#define COOKIE_PATH   3
  ------------------
  522|      0|      }
  523|    265|      else if(curlx_str_casecompare(&name, "domain") && curlx_strlen(&val)) {
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (523:15): [True: 0, False: 265]
  ------------------
  524|      0|        bool is_ip;
  525|      0|        const char *v = curlx_str(&val);
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
  526|       |        /*
  527|       |         * Now, we make sure that our host is within the given domain, or
  528|       |         * the given domain is not valid and thus cannot be set.
  529|       |         */
  530|       |
  531|      0|        if('.' == *v)
  ------------------
  |  Branch (531:12): [True: 0, False: 0]
  ------------------
  532|      0|          curlx_str_nudge(&val, 1);
  533|       |
  534|      0|#ifndef USE_LIBPSL
  535|       |        /*
  536|       |         * Without PSL we do not know when the incoming cookie is set on a
  537|       |         * TLD or otherwise "protected" suffix. To reduce risk, we require a
  538|       |         * dot OR the exact hostname being "localhost".
  539|       |         */
  540|      0|        if(bad_domain(curlx_str(&val), curlx_strlen(&val)))
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
                      if(bad_domain(curlx_str(&val), curlx_strlen(&val)))
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (540:12): [True: 0, False: 0]
  ------------------
  541|      0|          domain = ":";
  542|      0|#endif
  543|       |
  544|      0|        is_ip = Curl_host_is_ipnum(domain ? domain : curlx_str(&val));
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
  |  Branch (544:36): [True: 0, False: 0]
  ------------------
  545|       |
  546|      0|        if(!domain ||
  ------------------
  |  Branch (546:12): [True: 0, False: 0]
  ------------------
  547|      0|           (is_ip &&
  ------------------
  |  Branch (547:13): [True: 0, False: 0]
  ------------------
  548|      0|            !strncmp(curlx_str(&val), domain, curlx_strlen(&val)) &&
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
                          !strncmp(curlx_str(&val), domain, curlx_strlen(&val)) &&
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (548:13): [True: 0, False: 0]
  ------------------
  549|      0|            (curlx_strlen(&val) == strlen(domain))) ||
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (549:13): [True: 0, False: 0]
  ------------------
  550|      0|           (!is_ip && cookie_tailmatch(curlx_str(&val),
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
  |  Branch (550:13): [True: 0, False: 0]
  |  Branch (550:23): [True: 0, False: 0]
  ------------------
  551|      0|                                          curlx_strlen(&val), domain))) {
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  552|      0|          cookie[COOKIE_DOMAIN] = val;
  ------------------
  |  |  367|      0|#define COOKIE_DOMAIN 2
  ------------------
  553|      0|          if(!is_ip)
  ------------------
  |  Branch (553:14): [True: 0, False: 0]
  ------------------
  554|      0|            co->tailmatch = TRUE; /* we always do that if the domain name was
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  555|       |                                     given */
  556|      0|        }
  557|      0|        else {
  558|       |          /*
  559|       |           * We did not get a tailmatch and then the attempted set domain is
  560|       |           * not a domain to which the current host belongs. Mark as bad.
  561|       |           */
  562|      0|          infof(data, "skipped cookie with bad tailmatch domain: %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  563|      0|                curlx_str(&val));
  564|      0|          return CURLE_OK;
  565|      0|        }
  566|      0|      }
  567|    265|      else if(curlx_str_casecompare(&name, "max-age") && curlx_strlen(&val)) {
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (567:15): [True: 0, False: 265]
  ------------------
  568|       |        /*
  569|       |         * Defined in RFC2109:
  570|       |         *
  571|       |         * Optional. The Max-Age attribute defines the lifetime of the
  572|       |         * cookie, in seconds. The delta-seconds value is a decimal non-
  573|       |         * negative integer. After delta-seconds seconds elapse, the
  574|       |         * client should discard the cookie. A value of zero means the
  575|       |         * cookie should be discarded immediately.
  576|       |         */
  577|      0|        int rc;
  578|      0|        const char *maxage = curlx_str(&val);
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
  579|      0|        if(*maxage == '\"')
  ------------------
  |  Branch (579:12): [True: 0, False: 0]
  ------------------
  580|      0|          maxage++;
  581|      0|        rc = curlx_str_number(&maxage, &co->expires, CURL_OFF_T_MAX);
  ------------------
  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  582|      0|        if(!now)
  ------------------
  |  Branch (582:12): [True: 0, False: 0]
  ------------------
  583|      0|          now = time(NULL);
  584|      0|        switch(rc) {
  585|      0|        case STRE_OVERFLOW:
  ------------------
  |  |   35|      0|#define STRE_OVERFLOW 7
  ------------------
  |  Branch (585:9): [True: 0, False: 0]
  ------------------
  586|       |          /* overflow, used max value */
  587|      0|          co->expires = CURL_OFF_T_MAX;
  ------------------
  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  588|      0|          break;
  589|      0|        default:
  ------------------
  |  Branch (589:9): [True: 0, False: 0]
  ------------------
  590|       |          /* negative or otherwise bad, expire */
  591|      0|          co->expires = 1;
  592|      0|          break;
  593|      0|        case STRE_OK:
  ------------------
  |  |   28|      0|#define STRE_OK       0
  ------------------
  |  Branch (593:9): [True: 0, False: 0]
  ------------------
  594|      0|          if(!co->expires)
  ------------------
  |  Branch (594:14): [True: 0, False: 0]
  ------------------
  595|      0|            co->expires = 1; /* expire now */
  596|      0|          else if(CURL_OFF_T_MAX - now < co->expires)
  ------------------
  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (596:19): [True: 0, False: 0]
  ------------------
  597|       |            /* would overflow */
  598|      0|            co->expires = CURL_OFF_T_MAX;
  ------------------
  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  599|      0|          else
  600|      0|            co->expires += now;
  601|      0|          break;
  602|      0|        }
  603|      0|        cap_expires(now, co);
  604|      0|      }
  605|    265|      else if(curlx_str_casecompare(&name, "expires") && curlx_strlen(&val) &&
  ------------------
  |  |   50|    265|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (605:15): [True: 0, False: 265]
  ------------------
  606|      0|              !co->expires && (curlx_strlen(&val) < MAX_DATE_LENGTH)) {
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
                            !co->expires && (curlx_strlen(&val) < MAX_DATE_LENGTH)) {
  ------------------
  |  |  363|      0|#define MAX_DATE_LENGTH 80
  ------------------
  |  Branch (606:15): [True: 0, False: 0]
  |  Branch (606:31): [True: 0, False: 0]
  ------------------
  607|       |        /*
  608|       |         * Let max-age have priority.
  609|       |         *
  610|       |         * If the date cannot get parsed for whatever reason, the cookie
  611|       |         * will be treated as a session cookie
  612|       |         */
  613|      0|        char dbuf[MAX_DATE_LENGTH + 1];
  614|      0|        time_t date = 0;
  615|      0|        memcpy(dbuf, curlx_str(&val), curlx_strlen(&val));
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
                      memcpy(dbuf, curlx_str(&val), curlx_strlen(&val));
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  616|      0|        dbuf[curlx_strlen(&val)] = 0;
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  617|      0|        if(!Curl_getdate_capped(dbuf, &date)) {
  ------------------
  |  Branch (617:12): [True: 0, False: 0]
  ------------------
  618|      0|          if(!date)
  ------------------
  |  Branch (618:14): [True: 0, False: 0]
  ------------------
  619|      0|            date++;
  620|      0|          co->expires = (curl_off_t)date;
  621|      0|        }
  622|      0|        else
  623|      0|          co->expires = 0;
  624|      0|        if(!now)
  ------------------
  |  Branch (624:12): [True: 0, False: 0]
  ------------------
  625|      0|          now = time(NULL);
  626|      0|        cap_expires(now, co);
  627|      0|      }
  628|  1.37k|    }
  629|  1.83k|  } while(!curlx_str_single(&ptr, ';'));
  ------------------
  |  Branch (629:11): [True: 853, False: 404]
  ------------------
  630|       |
  631|    404|  if(curlx_strlen(&cookie[COOKIE_NAME])) {
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 404, False: 0]
  |  |  ------------------
  ------------------
  632|       |    /* the header was fine, now store the data */
  633|    404|    result = storecookie(co, &cookie[0], path, domain);
  634|    404|    if(!result)
  ------------------
  |  Branch (634:8): [True: 404, False: 0]
  ------------------
  635|    404|      *okay = TRUE;
  ------------------
  |  | 1055|    404|#define TRUE true
  ------------------
  636|    404|  }
  637|    404|  return result;
  638|    979|}
cookie.c:invalid_octets:
  347|  1.01k|{
  348|  1.01k|  const unsigned char *p = (const unsigned char *)ptr;
  349|       |  /* Reject all bytes \x01 - \x1f (*except* \x09, TAB) + \x7f */
  350|  7.25k|  while(len && *p) {
  ------------------
  |  Branch (350:9): [True: 6.23k, False: 1.01k]
  |  Branch (350:16): [True: 6.23k, False: 0]
  ------------------
  351|  6.23k|    if(((*p != 9) && (*p < 0x20)) || (*p == 0x7f))
  ------------------
  |  Branch (351:9): [True: 6.23k, False: 0]
  |  Branch (351:22): [True: 0, False: 6.23k]
  |  Branch (351:38): [True: 0, False: 6.23k]
  ------------------
  352|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  353|  6.23k|    p++;
  354|  6.23k|    len--;
  355|  6.23k|  }
  356|  1.01k|  return FALSE;
  ------------------
  |  | 1058|  1.01k|#define FALSE false
  ------------------
  357|  1.01k|}
cookie.c:storecookie:
  374|    404|{
  375|    404|  CURLcode result;
  376|    404|  result = strstore(&co->name, curlx_str(&cp[COOKIE_NAME]),
  ------------------
  |  |   49|    404|#define curlx_str(x)    ((x)->str)
  ------------------
  377|    404|                    curlx_strlen(&cp[COOKIE_NAME]));
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  ------------------
  378|    404|  if(!result)
  ------------------
  |  Branch (378:6): [True: 404, False: 0]
  ------------------
  379|    404|    result = strstore(&co->value, curlx_str(&cp[COOKIE_VALUE]),
  ------------------
  |  |   49|    404|#define curlx_str(x)    ((x)->str)
  ------------------
  380|    404|                      curlx_strlen(&cp[COOKIE_VALUE]));
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  ------------------
  381|    404|  if(!result) {
  ------------------
  |  Branch (381:6): [True: 404, False: 0]
  ------------------
  382|    404|    size_t plen = 0;
  383|    404|    if(curlx_strlen(&cp[COOKIE_PATH])) {
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 0, False: 404]
  |  |  ------------------
  ------------------
  384|      0|      path = curlx_str(&cp[COOKIE_PATH]);
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
  385|      0|      plen = curlx_strlen(&cp[COOKIE_PATH]);
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  386|      0|    }
  387|    404|    else if(path) {
  ------------------
  |  Branch (387:13): [True: 404, False: 0]
  ------------------
  388|       |      /* No path was given in the header line, set the default */
  389|    404|      const char *endslash = strrchr(path, '/');
  390|    404|      if(endslash)
  ------------------
  |  Branch (390:10): [True: 404, False: 0]
  ------------------
  391|    404|        plen = endslash - path + 1; /* include end slash */
  392|      0|      else
  393|      0|        plen = strlen(path);
  394|    404|    }
  395|       |
  396|    404|    if(path) {
  ------------------
  |  Branch (396:8): [True: 404, False: 0]
  ------------------
  397|    404|      co->path = sanitize_cookie_path(path, plen);
  398|    404|      if(!co->path)
  ------------------
  |  Branch (398:10): [True: 0, False: 404]
  ------------------
  399|      0|        result = CURLE_OUT_OF_MEMORY;
  400|    404|    }
  401|    404|  }
  402|    404|  if(!result) {
  ------------------
  |  Branch (402:6): [True: 404, False: 0]
  ------------------
  403|    404|    if(curlx_strlen(&cp[COOKIE_DOMAIN]))
  ------------------
  |  |   50|    404|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 0, False: 404]
  |  |  ------------------
  ------------------
  404|      0|      result = strstore(&co->domain, curlx_str(&cp[COOKIE_DOMAIN]),
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
  405|      0|                        curlx_strlen(&cp[COOKIE_DOMAIN]));
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  406|    404|    else if(domain) {
  ------------------
  |  Branch (406:13): [True: 404, False: 0]
  ------------------
  407|       |      /* no domain was given in the header line, set the default */
  408|    404|      co->domain = curlx_strdup(domain);
  ------------------
  |  | 1477|    404|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  409|    404|      if(!co->domain)
  ------------------
  |  Branch (409:10): [True: 0, False: 404]
  ------------------
  410|      0|        result = CURLE_OUT_OF_MEMORY;
  411|    404|    }
  412|    404|  }
  413|    404|  return result;
  414|    404|}
cookie.c:strstore:
  256|    808|{
  257|    808|  DEBUGASSERT(str);
  ------------------
  |  | 1081|    808|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (257:3): [True: 0, False: 808]
  |  Branch (257:3): [True: 808, False: 0]
  ------------------
  258|    808|  *str = curlx_memdup0(newstr, len);
  259|    808|  if(!*str)
  ------------------
  |  Branch (259:6): [True: 0, False: 808]
  ------------------
  260|      0|    return CURLE_OUT_OF_MEMORY;
  261|    808|  return CURLE_OK;
  262|    808|}
cookie.c:sanitize_cookie_path:
  227|    404|{
  228|       |  /* some sites send path attribute within '"'. */
  229|    404|  if(len && (cookie_path[0] == '\"')) {
  ------------------
  |  Branch (229:6): [True: 404, False: 0]
  |  Branch (229:13): [True: 0, False: 404]
  ------------------
  230|      0|    cookie_path++;
  231|      0|    len--;
  232|       |
  233|      0|    if(len && (cookie_path[len - 1] == '\"'))
  ------------------
  |  Branch (233:8): [True: 0, False: 0]
  |  Branch (233:15): [True: 0, False: 0]
  ------------------
  234|      0|      len--;
  235|      0|  }
  236|       |
  237|       |  /* RFC6265 5.2.4 The Path Attribute */
  238|    404|  if(!len || (cookie_path[0] != '/'))
  ------------------
  |  Branch (238:6): [True: 0, False: 404]
  |  Branch (238:14): [True: 0, False: 404]
  ------------------
  239|       |    /* Let cookie-path be the default-path. */
  240|      0|    return curlx_strdup("/");
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  241|       |
  242|       |  /* remove trailing slash when path is non-empty */
  243|       |  /* convert /hoge/ to /hoge */
  244|    404|  if(len > 1 && cookie_path[len - 1] == '/')
  ------------------
  |  Branch (244:6): [True: 65, False: 339]
  |  Branch (244:17): [True: 65, False: 0]
  ------------------
  245|     65|    len--;
  246|       |
  247|    404|  return curlx_memdup0(cookie_path, len);
  248|    404|}
cookie.c:remove_expired:
  274|  8.22k|{
  275|  8.22k|  struct Cookie *co;
  276|  8.22k|  curl_off_t now = (curl_off_t)time(NULL);
  277|  8.22k|  unsigned int i;
  278|       |
  279|       |  /*
  280|       |   * If the earliest expiration timestamp in the jar is in the future we can
  281|       |   * skip scanning the whole jar and instead exit early as there will not be
  282|       |   * any cookies to evict. If we need to evict, reset the next_expiration
  283|       |   * counter in order to track the next one. In case the recorded first
  284|       |   * expiration is the max offset, then perform the safe fallback of checking
  285|       |   * all cookies.
  286|       |   */
  287|  8.22k|  if(now < ci->next_expiration &&
  ------------------
  |  Branch (287:6): [True: 8.22k, False: 0]
  ------------------
  288|  8.22k|     ci->next_expiration != CURL_OFF_T_MAX)
  ------------------
  |  |  594|  8.22k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (288:6): [True: 0, False: 8.22k]
  ------------------
  289|      0|    return;
  290|  8.22k|  else
  291|  8.22k|    ci->next_expiration = CURL_OFF_T_MAX;
  ------------------
  |  |  594|  8.22k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  292|       |
  293|   526k|  for(i = 0; i < COOKIE_HASH_SIZE; i++) {
  ------------------
  |  |   54|   526k|#define COOKIE_HASH_SIZE 63
  ------------------
  |  Branch (293:14): [True: 518k, False: 8.22k]
  ------------------
  294|   518k|    struct Curl_llist_node *n;
  295|   518k|    struct Curl_llist_node *e = NULL;
  296|       |
  297|   518k|    for(n = Curl_llist_head(&ci->cookielist[i]); n; n = e) {
  ------------------
  |  Branch (297:50): [True: 417, False: 518k]
  ------------------
  298|    417|      co = Curl_node_elem(n);
  299|    417|      e = Curl_node_next(n);
  300|    417|      if(co->expires) {
  ------------------
  |  Branch (300:10): [True: 0, False: 417]
  ------------------
  301|      0|        if(co->expires < now) {
  ------------------
  |  Branch (301:12): [True: 0, False: 0]
  ------------------
  302|      0|          Curl_node_remove(n);
  303|      0|          freecookie(co, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  304|      0|          ci->numcookies--;
  305|      0|        }
  306|      0|        else if(co->expires < ci->next_expiration)
  ------------------
  |  Branch (306:17): [True: 0, False: 0]
  ------------------
  307|       |          /*
  308|       |           * If this cookie has an expiration timestamp earlier than what we
  309|       |           * have seen so far then record it for the next round of expirations.
  310|       |           */
  311|      0|          ci->next_expiration = co->expires;
  312|      0|      }
  313|    417|    }
  314|   518k|  }
  315|  8.22k|}
cookie.c:is_public_suffix:
  767|    404|{
  768|       |#ifdef USE_LIBPSL
  769|       |  /*
  770|       |   * Check if the domain is a Public Suffix and if yes, ignore the cookie. We
  771|       |   * must also check that the data handle is not NULL since the psl code will
  772|       |   * dereference it.
  773|       |   */
  774|       |  DEBUGF(infof(data, "PSL check set-cookie '%s' for domain=%s in %s",
  775|       |               co->name, co->domain, domain));
  776|       |  if(data && (domain && co->domain && !Curl_host_is_ipnum(co->domain))) {
  777|       |    bool acceptable = FALSE;
  778|       |    char lcase[256];
  779|       |    char lcookie[256];
  780|       |    size_t dlen = strlen(domain);
  781|       |    size_t clen = strlen(co->domain);
  782|       |
  783|       |    /* trim trailing dots */
  784|       |    if(dlen && (domain[dlen - 1] == '.'))
  785|       |      dlen--;
  786|       |    if(clen && (co->domain[clen - 1] == '.'))
  787|       |      clen--;
  788|       |
  789|       |    if((dlen < sizeof(lcase)) && (clen < sizeof(lcookie))) {
  790|       |      const psl_ctx_t *psl = Curl_psl_use(data);
  791|       |      if(psl) {
  792|       |        /* the PSL check requires lowercase domain name and pattern */
  793|       |        Curl_strntolower(lcase, domain, dlen);
  794|       |        lcase[dlen] = 0;
  795|       |        Curl_strntolower(lcookie, co->domain, clen);
  796|       |        lcookie[clen] = 0;
  797|       |        acceptable = psl_is_cookie_domain_acceptable(psl, lcase, lcookie);
  798|       |        Curl_psl_release(data);
  799|       |      }
  800|       |      else
  801|       |        infof(data, "libpsl problem, rejecting cookie for safety");
  802|       |    }
  803|       |
  804|       |    if(!acceptable) {
  805|       |      infof(data, "cookie '%s' dropped, domain '%s' must not "
  806|       |            "set cookies for '%s'", co->name, domain, co->domain);
  807|       |      return TRUE;
  808|       |    }
  809|       |  }
  810|       |#else
  811|    404|  (void)data;
  812|    404|  (void)co;
  813|    404|  (void)domain;
  814|    404|  DEBUGF(infof(data, "NO PSL to check set-cookie '%s' for domain=%s in %s",
  ------------------
  |  | 1067|  2.82k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 404, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 404]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 404]
  |  |  ------------------
  ------------------
  815|    404|               co->name, co->domain, domain));
  816|    404|#endif
  817|       |  return FALSE;
  ------------------
  |  | 1058|    404|#define FALSE false
  ------------------
  818|    404|}
cookie.c:replace_existing:
  826|    404|{
  827|    404|  bool replace_old = FALSE;
  ------------------
  |  | 1058|    404|#define FALSE false
  ------------------
  828|    404|  struct Curl_llist_node *replace_n = NULL;
  829|    404|  struct Curl_llist_node *n;
  830|    404|  size_t myhash = cookiehash(co->domain);
  831|    759|  for(n = Curl_llist_head(&ci->cookielist[myhash]); n; n = Curl_node_next(n)) {
  ------------------
  |  Branch (831:53): [True: 355, False: 404]
  ------------------
  832|    355|    struct Cookie *clist = Curl_node_elem(n);
  833|    355|    if(!strcmp(clist->name, co->name)) {
  ------------------
  |  Branch (833:8): [True: 342, False: 13]
  ------------------
  834|       |      /* the names are identical */
  835|    342|      bool matching_domains = FALSE;
  ------------------
  |  | 1058|    342|#define FALSE false
  ------------------
  836|       |
  837|    342|      if(clist->domain && co->domain) {
  ------------------
  |  Branch (837:10): [True: 342, False: 0]
  |  Branch (837:27): [True: 342, False: 0]
  ------------------
  838|    342|        if(curl_strequal(clist->domain, co->domain))
  ------------------
  |  Branch (838:12): [True: 342, False: 0]
  ------------------
  839|       |          /* The domains are identical */
  840|    342|          matching_domains = TRUE;
  ------------------
  |  | 1055|    342|#define TRUE true
  ------------------
  841|    342|      }
  842|      0|      else if(!clist->domain && !co->domain)
  ------------------
  |  Branch (842:15): [True: 0, False: 0]
  |  Branch (842:33): [True: 0, False: 0]
  ------------------
  843|      0|        matching_domains = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  844|       |
  845|    342|      if(matching_domains && /* the domains were identical */
  ------------------
  |  Branch (845:10): [True: 342, False: 0]
  ------------------
  846|    342|         clist->path && co->path && /* both have paths */
  ------------------
  |  Branch (846:10): [True: 342, False: 0]
  |  Branch (846:25): [True: 342, False: 0]
  ------------------
  847|    342|         clist->secure && !co->secure && !secure) {
  ------------------
  |  Branch (847:10): [True: 0, False: 342]
  |  Branch (847:27): [True: 0, False: 0]
  |  Branch (847:42): [True: 0, False: 0]
  ------------------
  848|      0|        size_t cllen;
  849|      0|        const char *sep = NULL;
  850|       |
  851|       |        /*
  852|       |         * A non-secure cookie may not overlay an existing secure cookie.
  853|       |         * For an existing cookie "a" with path "/login", refuse a new
  854|       |         * cookie "a" with for example path "/login/en", while the path
  855|       |         * "/loginhelper" is ok.
  856|       |         */
  857|       |
  858|      0|        DEBUGASSERT(clist->path[0]);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (858:9): [True: 0, False: 0]
  |  Branch (858:9): [True: 0, False: 0]
  ------------------
  859|      0|        if(clist->path[0])
  ------------------
  |  Branch (859:12): [True: 0, False: 0]
  ------------------
  860|      0|          sep = strchr(clist->path + 1, '/');
  861|      0|        if(sep)
  ------------------
  |  Branch (861:12): [True: 0, False: 0]
  ------------------
  862|      0|          cllen = sep - clist->path;
  863|      0|        else
  864|      0|          cllen = strlen(clist->path);
  865|       |
  866|      0|        if(!strncmp(clist->path, co->path, cllen)) {
  ------------------
  |  Branch (866:12): [True: 0, False: 0]
  ------------------
  867|      0|          infof(data, "cookie '%s' for domain '%s' dropped, would "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  868|      0|                "overlay an existing cookie", co->name, co->domain);
  869|      0|          return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  870|      0|        }
  871|      0|      }
  872|    342|    }
  873|       |
  874|    355|    if(!replace_n && !strcmp(clist->name, co->name)) {
  ------------------
  |  Branch (874:8): [True: 351, False: 4]
  |  Branch (874:22): [True: 342, False: 9]
  ------------------
  875|       |      /* the names are identical */
  876|       |
  877|    342|      if(clist->domain && co->domain) {
  ------------------
  |  Branch (877:10): [True: 342, False: 0]
  |  Branch (877:27): [True: 342, False: 0]
  ------------------
  878|    342|        if(curl_strequal(clist->domain, co->domain) &&
  ------------------
  |  Branch (878:12): [True: 342, False: 0]
  ------------------
  879|    342|           (clist->tailmatch == co->tailmatch))
  ------------------
  |  Branch (879:12): [True: 342, False: 0]
  ------------------
  880|       |          /* The domains are identical */
  881|    342|          replace_old = TRUE;
  ------------------
  |  | 1055|    342|#define TRUE true
  ------------------
  882|    342|      }
  883|      0|      else if(!clist->domain && !co->domain)
  ------------------
  |  Branch (883:15): [True: 0, False: 0]
  |  Branch (883:33): [True: 0, False: 0]
  ------------------
  884|      0|        replace_old = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  885|       |
  886|    342|      if(replace_old) {
  ------------------
  |  Branch (886:10): [True: 342, False: 0]
  ------------------
  887|       |        /* the domains were identical */
  888|       |
  889|    342|        if(clist->path && co->path &&
  ------------------
  |  Branch (889:12): [True: 342, False: 0]
  |  Branch (889:27): [True: 342, False: 0]
  ------------------
  890|    342|           strcmp(clist->path, co->path))
  ------------------
  |  Branch (890:12): [True: 0, False: 342]
  ------------------
  891|      0|          replace_old = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  892|    342|        else if(!clist->path != !co->path)
  ------------------
  |  Branch (892:17): [True: 0, False: 342]
  ------------------
  893|      0|          replace_old = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  894|    342|      }
  895|       |
  896|    342|      if(replace_old && !co->livecookie && clist->livecookie) {
  ------------------
  |  Branch (896:10): [True: 342, False: 0]
  |  Branch (896:25): [True: 0, False: 342]
  |  Branch (896:44): [True: 0, False: 0]
  ------------------
  897|       |        /*
  898|       |         * Both cookies matched fine, except that the already present cookie
  899|       |         * is "live", which means it was set from a header, while the new one
  900|       |         * was read from a file and thus is not "live". "live" cookies are
  901|       |         * preferred so the new cookie is freed.
  902|       |         */
  903|      0|        return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  904|      0|      }
  905|    342|      if(replace_old)
  ------------------
  |  Branch (905:10): [True: 342, False: 0]
  ------------------
  906|    342|        replace_n = n;
  907|    342|    }
  908|    355|  }
  909|    404|  if(replace_n) {
  ------------------
  |  Branch (909:6): [True: 342, False: 62]
  ------------------
  910|    342|    struct Cookie *repl = Curl_node_elem(replace_n);
  911|       |
  912|       |    /* when replacing, creationtime is kept from old */
  913|    342|    co->creationtime = repl->creationtime;
  914|       |
  915|       |    /* unlink the old */
  916|    342|    Curl_node_remove(replace_n);
  917|       |
  918|       |    /* free the old cookie */
  919|    342|    freecookie(repl, TRUE);
  ------------------
  |  | 1055|    342|#define TRUE true
  ------------------
  920|    342|  }
  921|    404|  *replacep = replace_old;
  922|       |  return TRUE;
  ------------------
  |  | 1055|    404|#define TRUE true
  ------------------
  923|    404|}
cookie.c:cookiehash:
  212|  10.3k|{
  213|  10.3k|  const char *top;
  214|  10.3k|  size_t len;
  215|       |
  216|  10.3k|  if(!domain || Curl_host_is_ipnum(domain))
  ------------------
  |  Branch (216:6): [True: 0, False: 10.3k]
  |  Branch (216:17): [True: 4.31k, False: 6.07k]
  ------------------
  217|  4.31k|    return 0;
  218|       |
  219|  6.07k|  top = get_top_domain(domain, &len);
  220|  6.07k|  return cookie_hash_domain(top, len);
  221|  10.3k|}
cookie.c:get_top_domain:
  162|  6.07k|{
  163|  6.07k|  size_t len = 0;
  164|  6.07k|  const char *first = NULL, *last;
  165|       |
  166|  6.07k|  if(domain) {
  ------------------
  |  Branch (166:6): [True: 6.07k, False: 0]
  ------------------
  167|  6.07k|    len = strlen(domain);
  168|  6.07k|    last = memrchr(domain, '.', len);
  169|  6.07k|    if(last) {
  ------------------
  |  Branch (169:8): [True: 2.03k, False: 4.04k]
  ------------------
  170|  2.03k|      first = memrchr(domain, '.', (last - domain));
  171|  2.03k|      if(first)
  ------------------
  |  Branch (171:10): [True: 1.19k, False: 835]
  ------------------
  172|  1.19k|        len -= (++first - domain);
  173|  2.03k|    }
  174|  6.07k|  }
  175|       |
  176|  6.07k|  if(outlen)
  ------------------
  |  Branch (176:6): [True: 6.07k, False: 0]
  ------------------
  177|  6.07k|    *outlen = len;
  178|       |
  179|  6.07k|  return first ? first : domain;
  ------------------
  |  Branch (179:10): [True: 1.19k, False: 4.87k]
  ------------------
  180|  6.07k|}
cookie.c:cookie_hash_domain:
  191|  6.07k|{
  192|  6.07k|  const char *end = domain + len;
  193|  6.07k|  size_t h = 5381;
  194|       |
  195|   227k|  while(domain < end) {
  ------------------
  |  Branch (195:9): [True: 221k, False: 6.07k]
  ------------------
  196|   221k|    size_t j = (size_t)Curl_raw_toupper(*domain++);
  197|   221k|    h += h << 5;
  198|   221k|    h ^= j;
  199|   221k|  }
  200|       |
  201|  6.07k|  return (h % COOKIE_HASH_SIZE);
  ------------------
  |  |   54|  6.07k|#define COOKIE_HASH_SIZE 63
  ------------------
  202|  6.07k|}
cookie.c:freecookie:
   64|    979|{
   65|    979|  curlx_free(co->domain);
  ------------------
  |  | 1483|    979|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   66|    979|  curlx_free(co->path);
  ------------------
  |  | 1483|    979|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   67|    979|  curlx_free(co->name);
  ------------------
  |  | 1483|    979|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   68|    979|  curlx_free(co->value);
  ------------------
  |  | 1483|    979|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   69|    979|  if(maintoo)
  ------------------
  |  Branch (69:6): [True: 404, False: 575]
  ------------------
   70|    404|    curlx_free(co);
  ------------------
  |  | 1483|    404|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   71|    979|}
cookie.c:get_netscape_format:
 1435|     62|{
 1436|     62|  return curl_maprintf(
 1437|     62|    "%s"               /* httponly preamble */
 1438|     62|    "%s%s\t"           /* domain */
 1439|     62|    "%s\t"             /* tailmatch */
 1440|     62|    "%s\t"             /* path */
 1441|     62|    "%s\t"             /* secure */
 1442|     62|    "%" FMT_OFF_T "\t" /* expires */
 1443|     62|    "%s\t"             /* name */
 1444|     62|    "%s",              /* value */
 1445|     62|    co->httponly ? "#HttpOnly_" : "",
  ------------------
  |  Branch (1445:5): [True: 0, False: 62]
  ------------------
 1446|       |    /*
 1447|       |     * Make sure all domains are prefixed with a dot if they allow
 1448|       |     * tailmatching. This is Mozilla-style.
 1449|       |     */
 1450|     62|    (co->tailmatch && co->domain && co->domain[0] != '.') ? "." : "",
  ------------------
  |  Branch (1450:6): [True: 0, False: 62]
  |  Branch (1450:23): [True: 0, False: 0]
  |  Branch (1450:37): [True: 0, False: 0]
  ------------------
 1451|     62|    co->domain ? co->domain : "unknown",
  ------------------
  |  Branch (1451:5): [True: 62, False: 0]
  ------------------
 1452|     62|    co->tailmatch ? "TRUE" : "FALSE",
  ------------------
  |  Branch (1452:5): [True: 0, False: 62]
  ------------------
 1453|     62|    co->path ? co->path : "/",
  ------------------
  |  Branch (1453:5): [True: 62, False: 0]
  ------------------
 1454|     62|    co->secure ? "TRUE" : "FALSE",
  ------------------
  |  Branch (1454:5): [True: 0, False: 62]
  ------------------
 1455|     62|    co->expires,
 1456|     62|    co->name,
 1457|     62|    co->value ? co->value : "");
  ------------------
  |  Branch (1457:5): [True: 62, False: 0]
  ------------------
 1458|     62|}
cookie.c:cookie_output:
 1471|  7.82k|{
 1472|  7.82k|  FILE *out = NULL;
 1473|  7.82k|  bool use_stdout = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
 1474|  7.82k|  char *tempstore = NULL;
 1475|  7.82k|  CURLcode result = CURLE_OK;
 1476|       |
 1477|  7.82k|  if(!ci)
  ------------------
  |  Branch (1477:6): [True: 0, False: 7.82k]
  ------------------
 1478|       |    /* no cookie engine alive */
 1479|      0|    return CURLE_OK;
 1480|       |
 1481|       |  /* at first, remove expired cookies */
 1482|  7.82k|  remove_expired(ci);
 1483|       |
 1484|  7.82k|  if(!strcmp("-", filename)) {
  ------------------
  |  Branch (1484:6): [True: 0, False: 7.82k]
  ------------------
 1485|       |    /* use stdout */
 1486|      0|    out = stdout;
 1487|      0|    use_stdout = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1488|      0|  }
 1489|  7.82k|  else {
 1490|  7.82k|    result = Curl_fopen(data, filename, &out, &tempstore);
 1491|  7.82k|    if(result)
  ------------------
  |  Branch (1491:8): [True: 0, False: 7.82k]
  ------------------
 1492|      0|      goto error;
 1493|  7.82k|  }
 1494|       |
 1495|  7.82k|  fputs("# Netscape HTTP Cookie File\n"
 1496|  7.82k|        "# https://curl.se/docs/http-cookies.html\n"
 1497|  7.82k|        "# This file was generated by libcurl! Edit at your own risk.\n\n",
 1498|  7.82k|        out);
 1499|       |
 1500|  7.82k|  if(ci->numcookies) {
  ------------------
  |  Branch (1500:6): [True: 56, False: 7.76k]
  ------------------
 1501|     56|    unsigned int i;
 1502|     56|    size_t nvalid = 0;
 1503|     56|    struct Cookie **array;
 1504|     56|    struct Curl_llist_node *n;
 1505|       |
 1506|     56|    array = curlx_calloc(1, sizeof(struct Cookie *) * ci->numcookies);
  ------------------
  |  | 1480|     56|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1507|     56|    if(!array) {
  ------------------
  |  Branch (1507:8): [True: 0, False: 56]
  ------------------
 1508|      0|      result = CURLE_OUT_OF_MEMORY;
 1509|      0|      goto error;
 1510|      0|    }
 1511|       |
 1512|       |    /* only sort the cookies with a domain property */
 1513|  3.58k|    for(i = 0; i < COOKIE_HASH_SIZE; i++) {
  ------------------
  |  |   54|  3.58k|#define COOKIE_HASH_SIZE 63
  ------------------
  |  Branch (1513:16): [True: 3.52k, False: 56]
  ------------------
 1514|  3.59k|      for(n = Curl_llist_head(&ci->cookielist[i]); n; n = Curl_node_next(n)) {
  ------------------
  |  Branch (1514:52): [True: 62, False: 3.52k]
  ------------------
 1515|     62|        struct Cookie *co = Curl_node_elem(n);
 1516|     62|        if(!co->domain)
  ------------------
  |  Branch (1516:12): [True: 0, False: 62]
  ------------------
 1517|      0|          continue;
 1518|     62|        array[nvalid++] = co;
 1519|     62|      }
 1520|  3.52k|    }
 1521|       |
 1522|     56|    qsort(array, nvalid, sizeof(struct Cookie *), cookie_sort_ct);
 1523|       |
 1524|    118|    for(i = 0; i < nvalid; i++) {
  ------------------
  |  Branch (1524:16): [True: 62, False: 56]
  ------------------
 1525|     62|      char *format_ptr = get_netscape_format(array[i]);
 1526|     62|      if(!format_ptr) {
  ------------------
  |  Branch (1526:10): [True: 0, False: 62]
  ------------------
 1527|      0|        curlx_free(array);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1528|      0|        result = CURLE_OUT_OF_MEMORY;
 1529|      0|        goto error;
 1530|      0|      }
 1531|     62|      curl_mfprintf(out, "%s\n", format_ptr);
 1532|     62|      curlx_free(format_ptr);
  ------------------
  |  | 1483|     62|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1533|     62|    }
 1534|       |
 1535|     56|    curlx_free(array);
  ------------------
  |  | 1483|     56|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1536|     56|  }
 1537|       |
 1538|  7.82k|  if(!use_stdout) {
  ------------------
  |  Branch (1538:6): [True: 7.82k, False: 0]
  ------------------
 1539|  7.82k|    curlx_fclose(out);
  ------------------
  |  |   79|  7.82k|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
 1540|  7.82k|    out = NULL;
 1541|  7.82k|    if(tempstore && curlx_rename(tempstore, filename)) {
  ------------------
  |  |   70|      0|#define curlx_rename            rename
  ------------------
  |  Branch (1541:8): [True: 0, False: 7.82k]
  |  Branch (1541:21): [True: 0, False: 0]
  ------------------
 1542|      0|      result = CURLE_WRITE_ERROR;
 1543|      0|      goto error;
 1544|      0|    }
 1545|  7.82k|  }
 1546|       |
 1547|       |  /*
 1548|       |   * If we reach here we have successfully written a cookie file so there is
 1549|       |   * no need to inspect the error, any error case should have jumped into the
 1550|       |   * error block below.
 1551|       |   */
 1552|  7.82k|  curlx_free(tempstore);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1553|  7.82k|  return CURLE_OK;
 1554|       |
 1555|      0|error:
 1556|      0|  if(out && !use_stdout)
  ------------------
  |  Branch (1556:6): [True: 0, False: 0]
  |  Branch (1556:13): [True: 0, False: 0]
  ------------------
 1557|      0|    curlx_fclose(out);
  ------------------
  |  |   79|      0|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
 1558|      0|  if(tempstore) {
  ------------------
  |  Branch (1558:6): [True: 0, False: 0]
  ------------------
 1559|      0|    unlink(tempstore);
 1560|      0|    curlx_free(tempstore);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1561|      0|  }
 1562|      0|  return result;
 1563|  7.82k|}
cookie.c:cookie_sort_ct:
 1234|      6|{
 1235|      6|  const struct Cookie *c1 = *(const struct Cookie * const *)p1;
 1236|      6|  const struct Cookie *c2 = *(const struct Cookie * const *)p2;
 1237|       |
 1238|      6|  return (c2->creationtime > c1->creationtime) ? 1 : -1;
  ------------------
  |  Branch (1238:10): [True: 4, False: 2]
  ------------------
 1239|      6|}

Curl_creds_create:
   41|  10.3k|{
   42|  10.3k|  struct Curl_creds *creds = NULL;
   43|  10.3k|  size_t ulen = user ? strlen(user) : 0;
  ------------------
  |  Branch (43:17): [True: 10.3k, False: 0]
  ------------------
   44|  10.3k|  size_t plen = passwd ? strlen(passwd) : 0;
  ------------------
  |  Branch (44:17): [True: 10.3k, False: 0]
  ------------------
   45|  10.3k|  size_t olen = oauth_bearer ? strlen(oauth_bearer) : 0;
  ------------------
  |  Branch (45:17): [True: 10.3k, False: 0]
  ------------------
   46|  10.3k|  size_t salen = sasl_authzid ? strlen(sasl_authzid) : 0;
  ------------------
  |  Branch (46:18): [True: 10.3k, False: 0]
  ------------------
   47|  10.3k|  size_t sslen = sasl_service ? strlen(sasl_service) : 0;
  ------------------
  |  Branch (47:18): [True: 10.3k, False: 0]
  ------------------
   48|  10.3k|  char *s, *buf;
   49|  10.3k|  CURLcode result = CURLE_OK;
   50|       |
   51|  10.3k|  Curl_creds_unlink(pcreds);
   52|       |
   53|       |  /* Everything empty/NULL, this is the NULL credential */
   54|  10.3k|  if(!ulen && !plen && !olen && !salen && !sslen)
  ------------------
  |  Branch (54:6): [True: 8.90k, False: 1.41k]
  |  Branch (54:15): [True: 8.87k, False: 32]
  |  Branch (54:24): [True: 8.87k, False: 0]
  |  Branch (54:33): [True: 8.87k, False: 0]
  |  Branch (54:43): [True: 8.87k, False: 0]
  ------------------
   55|  8.87k|    goto out;
   56|       |
   57|  1.45k|  if((ulen > CURL_MAX_INPUT_LENGTH) ||
  ------------------
  |  |   45|  1.45k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (57:6): [True: 0, False: 1.45k]
  ------------------
   58|  1.45k|     (plen > CURL_MAX_INPUT_LENGTH) ||
  ------------------
  |  |   45|  1.45k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (58:6): [True: 0, False: 1.45k]
  ------------------
   59|  1.45k|     (olen > CURL_MAX_INPUT_LENGTH) ||
  ------------------
  |  |   45|  1.45k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (59:6): [True: 0, False: 1.45k]
  ------------------
   60|  1.45k|     (salen > CURL_MAX_INPUT_LENGTH) ||
  ------------------
  |  |   45|  1.45k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (60:6): [True: 0, False: 1.45k]
  ------------------
   61|  1.45k|     (sslen > CURL_MAX_INPUT_LENGTH)) {
  ------------------
  |  |   45|  1.45k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (61:6): [True: 0, False: 1.45k]
  ------------------
   62|      0|    result = CURLE_BAD_FUNCTION_ARGUMENT;
   63|      0|    goto out;
   64|      0|  }
   65|       |
   66|       |  /* null-terminator for user already part of struct */
   67|  1.45k|  creds = curlx_calloc(1, sizeof(*creds) +
  ------------------
  |  | 1480|  1.45k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   68|  1.45k|                       ulen + plen + 1 + olen + 1 + salen + 1 + sslen + 1);
   69|  1.45k|  if(!creds) {
  ------------------
  |  Branch (69:6): [True: 0, False: 1.45k]
  ------------------
   70|      0|    result = CURLE_OUT_OF_MEMORY;
   71|      0|    goto out;
   72|      0|  }
   73|       |
   74|  1.45k|  creds->refcount = 1;
   75|  1.45k|  creds->source = source;
   76|       |  /* Some compilers try to be too smart about our dynamic struct size */
   77|  1.45k|  buf = ((char *)creds) + offsetof(struct Curl_creds, buf);
   78|  1.45k|  creds->user = s = buf;
   79|  1.45k|  if(ulen)
  ------------------
  |  Branch (79:6): [True: 1.41k, False: 32]
  ------------------
   80|  1.41k|    memcpy(s, user, ulen + 1);
   81|  1.45k|  creds->passwd = s = buf + ulen + 1;
   82|  1.45k|  if(plen)
  ------------------
  |  Branch (82:6): [True: 270, False: 1.18k]
  ------------------
   83|    270|    memcpy(s, passwd, plen + 1);
   84|  1.45k|  creds->oauth_bearer = s = buf + ulen + 1 + plen + 1;
   85|  1.45k|  if(olen)
  ------------------
  |  Branch (85:6): [True: 0, False: 1.45k]
  ------------------
   86|      0|    memcpy(s, oauth_bearer, olen + 1);
   87|  1.45k|  creds->sasl_authzid = s = buf + ulen + 1 + plen + 1 + olen + 1;
   88|  1.45k|  if(salen)
  ------------------
  |  Branch (88:6): [True: 0, False: 1.45k]
  ------------------
   89|      0|    memcpy(s, sasl_authzid, salen + 1);
   90|  1.45k|  creds->sasl_service = s = buf + ulen + 1 + plen + 1 + olen + 1 + salen + 1;
   91|  1.45k|  if(sslen)
  ------------------
  |  Branch (91:6): [True: 0, False: 1.45k]
  ------------------
   92|      0|    memcpy(s, sasl_service, sslen + 1);
   93|       |
   94|  10.3k|out:
   95|  10.3k|  if(!result)
  ------------------
  |  Branch (95:6): [True: 10.3k, False: 0]
  ------------------
   96|  10.3k|    *pcreds = creds;
   97|      0|  else
   98|      0|    Curl_creds_unlink(&creds);
   99|  10.3k|  return result;
  100|  1.45k|}
Curl_creds_merge:
  107|  10.3k|{
  108|  10.3k|  struct Curl_creds *creds_out = NULL;
  109|  10.3k|  CURLcode result;
  110|       |
  111|  10.3k|  if(!user || !user[0])
  ------------------
  |  Branch (111:6): [True: 8.85k, False: 1.46k]
  |  Branch (111:15): [True: 48, False: 1.41k]
  ------------------
  112|  8.90k|    user = Curl_creds_user(creds_in);
  ------------------
  |  |   75|  8.90k|#define Curl_creds_user(c)               ((c) ? (c)->user : "")
  |  |  ------------------
  |  |  |  Branch (75:43): [True: 0, False: 8.90k]
  |  |  ------------------
  ------------------
  113|  10.3k|  if(!passwd || !passwd[0])
  ------------------
  |  Branch (113:6): [True: 10.0k, False: 305]
  |  Branch (113:17): [True: 35, False: 270]
  ------------------
  114|  10.0k|    passwd = Curl_creds_passwd(creds_in);
  ------------------
  |  |   76|  10.0k|#define Curl_creds_passwd(c)             ((c) ? (c)->passwd : "")
  |  |  ------------------
  |  |  |  Branch (76:43): [True: 0, False: 10.0k]
  |  |  ------------------
  ------------------
  115|  10.3k|  result = Curl_creds_create(user, passwd,
  116|  10.3k|                             Curl_creds_oauth_bearer(creds_in),
  ------------------
  |  |   77|  10.3k|#define Curl_creds_oauth_bearer(c)       ((c) ? (c)->oauth_bearer : "")
  |  |  ------------------
  |  |  |  Branch (77:43): [True: 0, False: 10.3k]
  |  |  ------------------
  ------------------
  117|  10.3k|                             Curl_creds_sasl_authzid(creds_in),
  ------------------
  |  |   78|  10.3k|#define Curl_creds_sasl_authzid(c)       ((c) ? (c)->sasl_authzid : "")
  |  |  ------------------
  |  |  |  Branch (78:43): [True: 0, False: 10.3k]
  |  |  ------------------
  ------------------
  118|  10.3k|                             Curl_creds_sasl_service(creds_in),
  ------------------
  |  |   79|  10.3k|#define Curl_creds_sasl_service(c)       ((c) ? (c)->sasl_service : "")
  |  |  ------------------
  |  |  |  Branch (79:43): [True: 0, False: 10.3k]
  |  |  ------------------
  ------------------
  119|  10.3k|                             source, &creds_out);
  120|  10.3k|  Curl_creds_link(pcreds_out, creds_out);
  121|  10.3k|  Curl_creds_unlink(&creds_out);
  122|  10.3k|  return result;
  123|  10.3k|}
Curl_creds_link:
  126|  15.9k|{
  127|  15.9k|  if(*pdest != src) {
  ------------------
  |  Branch (127:6): [True: 1.45k, False: 14.4k]
  ------------------
  128|  1.45k|    Curl_creds_unlink(pdest);
  129|  1.45k|    *pdest = src;
  130|  1.45k|    if(src) {
  ------------------
  |  Branch (130:8): [True: 1.45k, False: 0]
  ------------------
  131|  1.45k|      DEBUGASSERT(src->refcount < UINT32_MAX);
  ------------------
  |  | 1081|  1.45k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (131:7): [True: 0, False: 1.45k]
  |  Branch (131:7): [True: 1.45k, False: 0]
  ------------------
  132|  1.45k|      src->refcount++;
  133|  1.45k|    }
  134|  1.45k|  }
  135|  15.9k|}
Curl_creds_unlink:
  138|  91.8k|{
  139|  91.8k|  if(*pcreds) {
  ------------------
  |  Branch (139:6): [True: 2.90k, False: 88.9k]
  ------------------
  140|  2.90k|    struct Curl_creds *creds = *pcreds;
  141|       |
  142|  2.90k|    DEBUGASSERT(creds->refcount);
  ------------------
  |  | 1081|  2.90k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (142:5): [True: 0, False: 2.90k]
  |  Branch (142:5): [True: 2.90k, False: 0]
  ------------------
  143|  2.90k|    *pcreds = NULL;
  144|  2.90k|    if(creds->refcount)
  ------------------
  |  Branch (144:8): [True: 2.90k, False: 0]
  ------------------
  145|  2.90k|      creds->refcount--;
  146|  2.90k|    if(!creds->refcount) {
  ------------------
  |  Branch (146:8): [True: 1.45k, False: 1.45k]
  ------------------
  147|  1.45k|      curlx_free(creds);
  ------------------
  |  | 1483|  1.45k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  148|  1.45k|    }
  149|  2.90k|  }
  150|  91.8k|}
Curl_creds_same:
  153|  3.01k|{
  154|  3.01k|  return (c1 == c2) ||
  ------------------
  |  Branch (154:10): [True: 3.01k, False: 0]
  ------------------
  155|      0|         (c1 && c2 &&
  ------------------
  |  Branch (155:11): [True: 0, False: 0]
  |  Branch (155:17): [True: 0, False: 0]
  ------------------
  156|      0|          !Curl_timestrcmp(c1->user, c2->user) &&
  ------------------
  |  Branch (156:11): [True: 0, False: 0]
  ------------------
  157|      0|          !Curl_timestrcmp(c1->passwd, c2->passwd) &&
  ------------------
  |  Branch (157:11): [True: 0, False: 0]
  ------------------
  158|      0|          !Curl_timestrcmp(c1->oauth_bearer, c2->oauth_bearer) &&
  ------------------
  |  Branch (158:11): [True: 0, False: 0]
  ------------------
  159|      0|          !Curl_timestrcmp(c1->sasl_authzid, c2->sasl_authzid) &&
  ------------------
  |  Branch (159:11): [True: 0, False: 0]
  ------------------
  160|      0|          !Curl_timestrcmp(c1->sasl_service, c2->sasl_service));
  ------------------
  |  Branch (160:11): [True: 0, False: 0]
  ------------------
  161|  3.01k|}
Curl_creds_trace:
  166|  10.3k|{
  167|  10.3k|  if(creds) {
  ------------------
  |  Branch (167:6): [True: 1.45k, False: 8.87k]
  ------------------
  168|  1.45k|    CURL_TRC_M(data, "%s: user=%s, passwd=%s, "
  ------------------
  |  |  148|  1.45k|  do {                                   \
  |  |  149|  1.45k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  1.45k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  1.45k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  2.90k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 1.45k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.45k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  2.90k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  1.45k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  1.45k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|  1.45k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
  169|  1.45k|               "sasl_authzid=%s, oauth_bearer=%s, source=%d",
  170|  1.45k|               msg,
  171|  1.45k|               Curl_creds_user(creds),
  172|  1.45k|               Curl_creds_has_passwd(creds) ? "***" : "",
  173|  1.45k|               Curl_creds_sasl_authzid(creds),
  174|  1.45k|               Curl_creds_has_oauth_bearer(creds) ? "***" : "",
  175|  1.45k|               creds->source);
  176|  1.45k|  }
  177|  8.87k|  else
  178|  8.87k|    CURL_TRC_M(data, "%s: -", msg);
  ------------------
  |  |  148|  8.87k|  do {                                   \
  |  |  149|  8.87k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  8.87k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  8.87k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  17.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 8.87k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 8.87k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  17.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  8.87k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  8.87k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  8.87k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 8.87k]
  |  |  ------------------
  ------------------
  179|  10.3k|}

Curl_cshutdn_run_once:
  113|  2.48k|{
  114|  2.48k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1081|  2.48k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (114:3): [True: 0, False: 2.48k]
  |  Branch (114:3): [True: 2.48k, False: 0]
  ------------------
  115|  2.48k|  Curl_attach_connection(data, conn);
  116|  2.48k|  cshutdn_run_once(data, conn, done);
  117|  2.48k|  CURL_TRC_M(data, "[SHUTDOWN] shutdown, done=%d", *done);
  ------------------
  |  |  148|  2.48k|  do {                                   \
  |  |  149|  2.48k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  2.48k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  2.48k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  4.97k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 2.48k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.48k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  4.97k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  2.48k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  2.48k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  2.48k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 2.48k]
  |  |  ------------------
  ------------------
  118|  2.48k|  Curl_detach_connection(data);
  119|  2.48k|}
Curl_cshutdn_terminate:
  124|  7.53k|{
  125|  7.53k|  struct Curl_easy *admin = data;
  126|  7.53k|  bool done;
  127|       |
  128|       |  /* there must be a connection to close */
  129|  7.53k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (129:3): [True: 0, False: 7.53k]
  |  Branch (129:3): [True: 7.53k, False: 0]
  ------------------
  130|       |  /* it must be removed from the connection pool */
  131|  7.53k|  DEBUGASSERT(!conn->bits.in_cpool);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (131:3): [True: 0, False: 7.53k]
  |  Branch (131:3): [True: 7.53k, False: 0]
  ------------------
  132|       |  /* the transfer must be detached from the connection */
  133|  7.53k|  DEBUGASSERT(data && !data->conn);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (133:3): [True: 0, False: 7.53k]
  |  Branch (133:3): [True: 0, False: 0]
  |  Branch (133:3): [True: 7.53k, False: 0]
  |  Branch (133:3): [True: 7.53k, False: 0]
  ------------------
  134|       |
  135|       |  /* If we can obtain an internal admin handle, use that to attach
  136|       |   * and terminate the connection. Some protocol will try to mess with
  137|       |   * `data` during shutdown and we do not want that with a `data` from
  138|       |   * the application. */
  139|  7.53k|  if(data->multi && data->multi->admin)
  ------------------
  |  Branch (139:6): [True: 7.53k, False: 0]
  |  Branch (139:21): [True: 7.53k, False: 0]
  ------------------
  140|  7.53k|    admin = data->multi->admin;
  141|       |
  142|  7.53k|  Curl_attach_connection(admin, conn);
  143|       |
  144|  7.53k|  cshutdn_run_conn_handler(admin, conn);
  145|  7.53k|  if(do_shutdown) {
  ------------------
  |  Branch (145:6): [True: 0, False: 7.53k]
  ------------------
  146|       |    /* Make a last attempt to shutdown handlers and filters, if
  147|       |     * not done so already. */
  148|      0|    cshutdn_run_once(admin, conn, &done);
  149|      0|  }
  150|  7.53k|  CURL_TRC_M(admin, "[SHUTDOWN] %sclosing connection #%" FMT_OFF_T,
  ------------------
  |  |  148|  7.53k|  do {                                   \
  |  |  149|  7.53k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.53k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.53k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.53k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.53k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  151|  7.53k|             conn->bits.shutdown_filters ? "" : "force ",
  152|  7.53k|             conn->connection_id);
  153|  7.53k|  Curl_conn_close(admin, SECONDARYSOCKET);
  ------------------
  |  |  304|  7.53k|#define SECONDARYSOCKET 1
  ------------------
  154|  7.53k|  Curl_conn_close(admin, FIRSTSOCKET);
  ------------------
  |  |  303|  7.53k|#define FIRSTSOCKET     0
  ------------------
  155|  7.53k|  Curl_detach_connection(admin);
  156|       |
  157|  7.53k|  if(data->multi)
  ------------------
  |  Branch (157:6): [True: 7.53k, False: 0]
  ------------------
  158|  7.53k|    Curl_multi_ev_conn_done(data->multi, data, conn);
  159|  7.53k|  Curl_conn_free(admin, conn);
  160|       |
  161|  7.53k|  if(data->multi) {
  ------------------
  |  Branch (161:6): [True: 7.53k, False: 0]
  ------------------
  162|  7.53k|    CURL_TRC_M(data, "[SHUTDOWN] trigger multi connchanged");
  ------------------
  |  |  148|  7.53k|  do {                                   \
  |  |  149|  7.53k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.53k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.53k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.53k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.53k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  163|  7.53k|    Curl_multi_connchanged(data->multi);
  164|  7.53k|  }
  165|  7.53k|}
Curl_cshutdn_init:
  321|  7.82k|{
  322|  7.82k|  DEBUGASSERT(multi);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (322:3): [True: 0, False: 7.82k]
  |  Branch (322:3): [True: 7.82k, False: 0]
  ------------------
  323|  7.82k|  cshutdn->multi = multi;
  324|  7.82k|  Curl_llist_init(&cshutdn->list, NULL);
  325|       |  cshutdn->initialized = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  326|  7.82k|  return 0; /* good */
  327|  7.82k|}
Curl_cshutdn_destroy:
  331|  7.82k|{
  332|  7.82k|  if(cshutdn->initialized && data) {
  ------------------
  |  Branch (332:6): [True: 7.82k, False: 0]
  |  Branch (332:30): [True: 7.82k, False: 0]
  ------------------
  333|  7.82k|    int timeout_ms = 0;
  334|       |    /* for testing, run graceful shutdown */
  335|  7.82k|#ifdef DEBUGBUILD
  336|  7.82k|    {
  337|  7.82k|      const char *p = getenv("CURL_GRACEFUL_SHUTDOWN");
  338|  7.82k|      if(p) {
  ------------------
  |  Branch (338:10): [True: 0, False: 7.82k]
  ------------------
  339|      0|        curl_off_t l;
  340|      0|        if(!curlx_str_number(&p, &l, INT_MAX))
  ------------------
  |  Branch (340:12): [True: 0, False: 0]
  ------------------
  341|      0|          timeout_ms = (int)l;
  342|      0|      }
  343|  7.82k|    }
  344|  7.82k|#endif
  345|       |
  346|  7.82k|    CURL_TRC_M(data, "[SHUTDOWN] destroy, %zu connections, timeout=%dms",
  ------------------
  |  |  148|  7.82k|  do {                                   \
  |  |  149|  7.82k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.82k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.82k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.82k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.82k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  347|  7.82k|               Curl_llist_count(&cshutdn->list), timeout_ms);
  348|  7.82k|    cshutdn_terminate_all(cshutdn, data, timeout_ms);
  349|  7.82k|  }
  350|       |  cshutdn->multi = NULL;
  351|  7.82k|}
Curl_cshutdn_add:
  398|     26|{
  399|     26|  struct Curl_easy *data = cshutdn->multi->admin;
  400|     26|  size_t max_total = cshutdn->multi->max_total_connections;
  401|       |
  402|       |  /* Add the connection to our shutdown list for non-blocking shutdown
  403|       |   * during multi processing. */
  404|     26|  if(max_total > 0 &&
  ------------------
  |  Branch (404:6): [True: 0, False: 26]
  ------------------
  405|      0|     (max_total <= (conns_in_pool + Curl_llist_count(&cshutdn->list)))) {
  ------------------
  |  Branch (405:6): [True: 0, False: 0]
  ------------------
  406|      0|    CURL_TRC_M(data, "[SHUTDOWN] discarding oldest shutdown connection "
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  407|      0|               "due to connection limit of %zu", max_total);
  408|      0|    cshutdn_destroy_oldest(cshutdn, data, NULL);
  409|      0|  }
  410|       |
  411|     26|  if(cshutdn->multi->socket_cb) {
  ------------------
  |  Branch (411:6): [True: 0, False: 26]
  ------------------
  412|      0|    if(cshutdn_update_ev(cshutdn, data, conn)) {
  ------------------
  |  Branch (412:8): [True: 0, False: 0]
  ------------------
  413|      0|      CURL_TRC_M(data, "[SHUTDOWN] update events failed, discarding #%"
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  414|      0|                 FMT_OFF_T, conn->connection_id);
  415|      0|      Curl_cshutdn_terminate(data, conn, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  416|      0|      return;
  417|      0|    }
  418|      0|  }
  419|       |
  420|     26|  Curl_llist_append(&cshutdn->list, conn, &conn->cshutdn_node);
  421|     26|  CURL_TRC_M(data, "[SHUTDOWN] added #%" FMT_OFF_T
  ------------------
  |  |  148|     26|  do {                                   \
  |  |  149|     26|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|     26|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|     26|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|     52|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 26, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 26]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|     52|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|     26|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|     26|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|     26|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 26]
  |  |  ------------------
  ------------------
  422|     26|             " to shutdowns, now %zu conns in shutdown",
  423|     26|             conn->connection_id, Curl_llist_count(&cshutdn->list));
  424|     26|}
Curl_cshutdn_perform:
  429|   122k|{
  430|   122k|  cshutdn_perform(cshutdn, data, sigpipe_ctx);
  431|   122k|}
Curl_cshutdn_setfds:
  438|   114k|{
  439|   114k|  if(Curl_llist_head(&cshutdn->list)) {
  ------------------
  |  Branch (439:6): [True: 0, False: 114k]
  ------------------
  440|      0|    struct Curl_llist_node *e;
  441|      0|    struct easy_pollset ps;
  442|       |
  443|      0|    Curl_pollset_init(&ps);
  444|      0|    for(e = Curl_llist_head(&cshutdn->list); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (444:46): [True: 0, False: 0]
  ------------------
  445|      0|      unsigned int i;
  446|      0|      struct connectdata *conn = Curl_node_elem(e);
  447|      0|      CURLcode result;
  448|       |
  449|      0|      Curl_pollset_reset(&ps);
  450|      0|      Curl_attach_connection(data, conn);
  451|      0|      result = Curl_conn_adjust_pollset(data, conn, &ps);
  452|      0|      Curl_detach_connection(data);
  453|       |
  454|      0|      if(result)
  ------------------
  |  Branch (454:10): [True: 0, False: 0]
  ------------------
  455|      0|        continue;
  456|       |
  457|      0|      for(i = 0; i < ps.n; i++) {
  ------------------
  |  Branch (457:18): [True: 0, False: 0]
  ------------------
  458|      0|        curl_socket_t sock = ps.sockets[i];
  459|      0|        if(!FDSET_SOCK(sock))
  ------------------
  |  |  101|      0|#define FDSET_SOCK(s) ((s) < FD_SETSIZE)
  ------------------
  |  Branch (459:12): [True: 0, False: 0]
  ------------------
  460|      0|          continue;
  461|      0|        if(ps.actions[i] & CURL_POLL_IN)
  ------------------
  |  |  283|      0|#define CURL_POLL_IN     1
  ------------------
  |  Branch (461:12): [True: 0, False: 0]
  ------------------
  462|      0|          FD_SET(sock, read_fd_set);
  463|      0|        if(ps.actions[i] & CURL_POLL_OUT)
  ------------------
  |  |  284|      0|#define CURL_POLL_OUT    2
  ------------------
  |  Branch (463:12): [True: 0, False: 0]
  ------------------
  464|      0|          FD_SET(sock, write_fd_set);
  465|      0|        if((ps.actions[i] & (CURL_POLL_OUT | CURL_POLL_IN)) &&
  ------------------
  |  |  284|      0|#define CURL_POLL_OUT    2
  ------------------
                      if((ps.actions[i] & (CURL_POLL_OUT | CURL_POLL_IN)) &&
  ------------------
  |  |  283|      0|#define CURL_POLL_IN     1
  ------------------
  |  Branch (465:12): [True: 0, False: 0]
  ------------------
  466|      0|           ((int)sock > *maxfd))
  ------------------
  |  Branch (466:12): [True: 0, False: 0]
  ------------------
  467|      0|          *maxfd = (int)sock;
  468|      0|      }
  469|      0|    }
  470|      0|    Curl_pollset_cleanup(&ps);
  471|      0|  }
  472|   114k|}
cshutdn.c:cshutdn_run_once:
   72|  2.48k|{
   73|  2.48k|  CURLcode r1, r2;
   74|  2.48k|  bool done1, done2;
   75|       |
   76|       |  /* We expect to be attached when called */
   77|  2.48k|  DEBUGASSERT(data->conn == conn);
  ------------------
  |  | 1081|  2.48k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (77:3): [True: 0, False: 2.48k]
  |  Branch (77:3): [True: 2.48k, False: 0]
  ------------------
   78|       |
   79|  2.48k|  if(!Curl_shutdown_started(data, FIRSTSOCKET)) {
  ------------------
  |  |  303|  2.48k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (79:6): [True: 2.46k, False: 26]
  ------------------
   80|  2.46k|    Curl_shutdown_start(data, FIRSTSOCKET, 0);
  ------------------
  |  |  303|  2.46k|#define FIRSTSOCKET     0
  ------------------
   81|  2.46k|  }
   82|       |
   83|  2.48k|  cshutdn_run_conn_handler(data, conn);
   84|       |
   85|  2.48k|  if(conn->bits.shutdown_filters) {
  ------------------
  |  Branch (85:6): [True: 0, False: 2.48k]
  ------------------
   86|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
   87|      0|    return;
   88|      0|  }
   89|       |
   90|  2.48k|  if(!conn->bits.connect_only && Curl_conn_is_connected(conn, FIRSTSOCKET))
  ------------------
  |  |  303|  2.48k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (90:6): [True: 2.48k, False: 0]
  |  Branch (90:34): [True: 2.48k, False: 0]
  ------------------
   91|  2.48k|    r1 = Curl_conn_shutdown(data, FIRSTSOCKET, &done1);
  ------------------
  |  |  303|  2.48k|#define FIRSTSOCKET     0
  ------------------
   92|      0|  else {
   93|      0|    r1 = CURLE_OK;
   94|      0|    done1 = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
   95|      0|  }
   96|       |
   97|  2.48k|  if(!conn->bits.connect_only && Curl_conn_is_connected(conn, SECONDARYSOCKET))
  ------------------
  |  |  304|  2.48k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (97:6): [True: 2.48k, False: 0]
  |  Branch (97:34): [True: 0, False: 2.48k]
  ------------------
   98|      0|    r2 = Curl_conn_shutdown(data, SECONDARYSOCKET, &done2);
  ------------------
  |  |  304|      0|#define SECONDARYSOCKET 1
  ------------------
   99|  2.48k|  else {
  100|  2.48k|    r2 = CURLE_OK;
  101|  2.48k|    done2 = TRUE;
  ------------------
  |  | 1055|  2.48k|#define TRUE true
  ------------------
  102|  2.48k|  }
  103|       |
  104|       |  /* we are done when any failed or both report success */
  105|  2.48k|  *done = (r1 || r2 || (done1 && done2));
  ------------------
  |  Branch (105:12): [True: 0, False: 2.48k]
  |  Branch (105:18): [True: 0, False: 2.48k]
  |  Branch (105:25): [True: 2.43k, False: 52]
  |  Branch (105:34): [True: 2.43k, False: 0]
  ------------------
  106|  2.48k|  if(*done)
  ------------------
  |  Branch (106:6): [True: 2.43k, False: 52]
  ------------------
  107|  2.43k|    conn->bits.shutdown_filters = TRUE;
  ------------------
  |  | 1055|  2.43k|#define TRUE true
  ------------------
  108|  2.48k|}
cshutdn.c:cshutdn_run_conn_handler:
   43|  10.0k|{
   44|  10.0k|  if(!conn->bits.shutdown_handler) {
  ------------------
  |  Branch (44:6): [True: 7.53k, False: 2.48k]
  ------------------
   45|       |
   46|  7.53k|    if(conn->scheme && conn->scheme->run->disconnect) {
  ------------------
  |  Branch (46:8): [True: 7.53k, False: 0]
  |  Branch (46:24): [True: 0, False: 7.53k]
  ------------------
   47|       |      /* Some disconnect handlers do a blocking wait on server responses.
   48|       |       * FTP/IMAP/SMTP and SFTP are among them. When using the internal
   49|       |       * handle, set an overall short timeout so we do not hang for the
   50|       |       * default 120 seconds. */
   51|      0|      if(data->state.internal) {
  ------------------
  |  Branch (51:10): [True: 0, False: 0]
  ------------------
   52|      0|        data->set.timeout = DEFAULT_SHUTDOWN_TIMEOUT_MS;
  ------------------
  |  |   45|      0|#define DEFAULT_SHUTDOWN_TIMEOUT_MS   (2 * 1000)
  ------------------
   53|      0|        Curl_pgrsTime(data, TIMER_STARTOP);
   54|      0|      }
   55|       |
   56|       |      /* This is set if protocol-specific cleanups should be made */
   57|      0|      DEBUGF(infof(data, "connection #%" FMT_OFF_T
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
   58|      0|                   ", shutdown protocol handler (aborted=%d)",
   59|      0|                   conn->connection_id, conn->bits.aborted));
   60|       |      /* There are protocol handlers that block on retrieving
   61|       |       * server responses here (FTP). Set a short timeout. */
   62|      0|      conn->scheme->run->disconnect(data, conn, (bool)conn->bits.aborted);
   63|      0|    }
   64|       |
   65|       |    conn->bits.shutdown_handler = TRUE;
  ------------------
  |  | 1055|  7.53k|#define TRUE true
  ------------------
   66|  7.53k|  }
   67|  10.0k|}
cshutdn.c:cshutdn_terminate_all:
  269|  7.82k|{
  270|  7.82k|  struct curltime started = *Curl_pgrs_now(data);
  271|  7.82k|  struct Curl_llist_node *e;
  272|  7.82k|  struct Curl_sigpipe_ctx sigpipe_ctx;
  273|       |
  274|  7.82k|  DEBUGASSERT(cshutdn);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (274:3): [True: 0, False: 7.82k]
  |  Branch (274:3): [True: 7.82k, False: 0]
  ------------------
  275|  7.82k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (275:3): [True: 0, False: 7.82k]
  |  Branch (275:3): [True: 7.82k, False: 0]
  ------------------
  276|       |
  277|  7.82k|  CURL_TRC_M(data, "[SHUTDOWN] shutdown all");
  ------------------
  |  |  148|  7.82k|  do {                                   \
  |  |  149|  7.82k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.82k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.82k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.82k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.82k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  278|  7.82k|  sigpipe_init(&sigpipe_ctx);
  279|       |
  280|  7.82k|  while(Curl_llist_head(&cshutdn->list)) {
  ------------------
  |  Branch (280:9): [True: 26, False: 7.79k]
  ------------------
  281|     26|    timediff_t spent_ms;
  282|     26|    int remain_ms;
  283|       |
  284|     26|    cshutdn_perform(cshutdn, data, &sigpipe_ctx);
  285|       |
  286|     26|    if(!Curl_llist_head(&cshutdn->list)) {
  ------------------
  |  Branch (286:8): [True: 0, False: 26]
  ------------------
  287|      0|      CURL_TRC_M(data, "[SHUTDOWN] shutdown finished cleanly");
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  288|      0|      break;
  289|      0|    }
  290|       |
  291|       |    /* wait for activity, timeout or "nothing" */
  292|     26|    spent_ms = curlx_ptimediff_ms(Curl_pgrs_now(data), &started);
  293|     26|    if(spent_ms >= (timediff_t)timeout_ms) {
  ------------------
  |  Branch (293:8): [True: 26, False: 0]
  ------------------
  294|     26|      CURL_TRC_M(data, "[SHUTDOWN] shutdown finished, %s",
  ------------------
  |  |  148|     26|  do {                                   \
  |  |  149|     26|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|     26|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|     26|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|     52|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 26, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 26]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|     52|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|     26|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|     26|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|     26|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 26]
  |  |  ------------------
  ------------------
  295|     26|                 (timeout_ms > 0) ? "timeout" : "best effort done");
  296|     26|      break;
  297|     26|    }
  298|       |
  299|      0|    remain_ms = timeout_ms - (int)spent_ms;
  300|      0|    if(cshutdn_wait(cshutdn, data, remain_ms)) {
  ------------------
  |  Branch (300:8): [True: 0, False: 0]
  ------------------
  301|      0|      CURL_TRC_M(data, "[SHUTDOWN] shutdown finished, aborted");
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  302|      0|      break;
  303|      0|    }
  304|      0|  }
  305|       |
  306|       |  /* Terminate any remaining. */
  307|  7.82k|  e = Curl_llist_head(&cshutdn->list);
  308|  7.84k|  while(e) {
  ------------------
  |  Branch (308:9): [True: 26, False: 7.82k]
  ------------------
  309|     26|    struct connectdata *conn = Curl_node_elem(e);
  310|     26|    Curl_node_remove(e);
  311|     26|    Curl_cshutdn_terminate(data, conn, FALSE);
  ------------------
  |  | 1058|     26|#define FALSE false
  ------------------
  312|     26|    e = Curl_llist_head(&cshutdn->list);
  313|     26|  }
  314|  7.82k|  DEBUGASSERT(!Curl_llist_count(&cshutdn->list));
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (314:3): [True: 0, False: 7.82k]
  |  Branch (314:3): [True: 7.82k, False: 0]
  ------------------
  315|       |
  316|  7.82k|  sigpipe_restore(&sigpipe_ctx);
  317|  7.82k|}
cshutdn.c:cshutdn_perform:
  231|   122k|{
  232|   122k|  struct Curl_llist_node *e = Curl_llist_head(&cshutdn->list);
  233|   122k|  struct Curl_llist_node *enext;
  234|   122k|  struct connectdata *conn;
  235|   122k|  timediff_t next_expire_ms = 0, ms;
  236|   122k|  bool done;
  237|       |
  238|   122k|  if(!e)
  ------------------
  |  Branch (238:6): [True: 122k, False: 26]
  ------------------
  239|   122k|    return;
  240|       |
  241|     26|  CURL_TRC_M(data, "[SHUTDOWN] perform on %zu connections",
  ------------------
  |  |  148|     26|  do {                                   \
  |  |  149|     26|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|     26|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|     26|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|     52|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 26, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 26]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|     52|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|     26|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|     26|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|     26|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 26]
  |  |  ------------------
  ------------------
  242|     26|             Curl_llist_count(&cshutdn->list));
  243|     26|  sigpipe_apply(data, sigpipe_ctx);
  244|     52|  while(e) {
  ------------------
  |  Branch (244:9): [True: 26, False: 26]
  ------------------
  245|     26|    enext = Curl_node_next(e);
  246|     26|    conn = Curl_node_elem(e);
  247|     26|    Curl_cshutdn_run_once(data, conn, &done);
  248|     26|    if(done) {
  ------------------
  |  Branch (248:8): [True: 0, False: 26]
  ------------------
  249|      0|      Curl_node_remove(e);
  250|      0|      Curl_cshutdn_terminate(data, conn, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  251|      0|    }
  252|     26|    else {
  253|       |      /* idata has one timer list, but maybe more than one connection.
  254|       |       * Set EXPIRE_SHUTDOWN to the smallest time left for all. */
  255|     26|      ms = Curl_conn_shutdown_timeleft(data, conn);
  256|     26|      if(ms && ms < next_expire_ms)
  ------------------
  |  Branch (256:10): [True: 26, False: 0]
  |  Branch (256:16): [True: 0, False: 26]
  ------------------
  257|      0|        next_expire_ms = ms;
  258|     26|    }
  259|     26|    e = enext;
  260|     26|  }
  261|       |
  262|     26|  if(next_expire_ms)
  ------------------
  |  Branch (262:6): [True: 0, False: 26]
  ------------------
  263|      0|    Curl_expire_ex(data, next_expire_ms, EXPIRE_SHUTDOWN);
  264|     26|}

Curl_freeaddrinfo:
   72|  7.02k|{
   73|  7.02k|  struct Curl_addrinfo *vqualifier canext;
   74|  7.02k|  struct Curl_addrinfo *ca;
   75|       |
   76|  14.0k|  for(ca = cahead; ca; ca = canext) {
  ------------------
  |  Branch (76:20): [True: 7.02k, False: 7.02k]
  ------------------
   77|  7.02k|    canext = ca->ai_next;
   78|  7.02k|    curlx_free(ca);
  ------------------
  |  | 1483|  7.02k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   79|  7.02k|  }
   80|  7.02k|}
Curl_str2addr:
  410|  7.02k|{
  411|  7.02k|  struct in_addr in;
  412|  7.02k|  if(curlx_inet_pton(AF_INET, dotted, &in) > 0)
  ------------------
  |  |   43|  7.02k|  inet_pton(x, y, z)
  ------------------
  |  Branch (412:6): [True: 7.02k, False: 0]
  ------------------
  413|       |    /* This is a dotted IP address 123.123.123.123-style */
  414|  7.02k|    return ip2addr(addrp, AF_INET, &in, dotted, port);
  415|      0|#ifdef USE_IPV6
  416|      0|  {
  417|      0|    struct in6_addr in6;
  418|      0|    if(curlx_inet_pton(AF_INET6, dotted, &in6) > 0)
  ------------------
  |  |   43|      0|  inet_pton(x, y, z)
  ------------------
  |  Branch (418:8): [True: 0, False: 0]
  ------------------
  419|       |      /* This is a dotted IPv6 address ::1-style */
  420|      0|      return ip2addr(addrp, AF_INET6, &in6, dotted, port);
  421|      0|  }
  422|      0|#endif
  423|      0|  return CURLE_BAD_FUNCTION_ARGUMENT; /* bad input format */
  424|      0|}
Curl_is_ipv4addr:
  427|  14.5k|{
  428|  14.5k|  struct in_addr in;
  429|  14.5k|  return (curlx_inet_pton(AF_INET, address, &in) > 0);
  ------------------
  |  |   43|  14.5k|  inet_pton(x, y, z)
  ------------------
  430|  14.5k|}
Curl_is_ipaddr:
  433|  7.02k|{
  434|  7.02k|  if(Curl_is_ipv4addr(address))
  ------------------
  |  Branch (434:6): [True: 7.02k, False: 0]
  ------------------
  435|  7.02k|    return TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
  436|      0|#ifdef USE_IPV6
  437|      0|  {
  438|      0|    struct in6_addr in6;
  439|      0|    if(curlx_inet_pton(AF_INET6, address, &in6) > 0)
  ------------------
  |  |   43|      0|  inet_pton(x, y, z)
  ------------------
  |  Branch (439:8): [True: 0, False: 0]
  ------------------
  440|       |      /* This is a dotted IPv6 address ::1-style */
  441|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  442|      0|  }
  443|      0|#endif
  444|      0|  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  445|      0|}
Curl_looks_like_ipv6:
  449|     11|{
  450|     11|  const char *zonep = NULL;
  451|     11|  size_t i = 0, hlen = 0, zlen = 0;
  452|       |
  453|     11|  if(host)
  ------------------
  |  Branch (453:6): [True: 11, False: 0]
  ------------------
  454|     11|    memset(host, 0, sizeof(*host));
  455|     11|  if(zone)
  ------------------
  |  Branch (455:6): [True: 11, False: 0]
  ------------------
  456|     11|    memset(zone, 0, sizeof(*zone));
  457|       |
  458|     33|  for(i = 0; i < len; ++i, ++hlen) {
  ------------------
  |  Branch (458:14): [True: 22, False: 11]
  ------------------
  459|     22|    if(!s[i] || !(ISXDIGIT(s[i]) || (s[i] == ':') || (s[i] == '.')))
  ------------------
  |  |   39|     44|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|     44|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 22, False: 0]
  |  |  |  |  |  Branch (44:38): [True: 0, False: 22]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|     44|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 0, False: 22]
  |  |  |  |  |  Branch (27:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|     22|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 0, False: 22]
  |  |  |  |  |  Branch (28:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (459:8): [True: 0, False: 22]
  |  Branch (459:37): [True: 22, False: 0]
  |  Branch (459:54): [True: 0, False: 0]
  ------------------
  460|      0|      break;
  461|     22|  }
  462|       |
  463|     11|  if((i < len) && (s[i] == '%')) { /* address followed by a zone? */
  ------------------
  |  Branch (463:6): [True: 0, False: 11]
  |  Branch (463:19): [True: 0, False: 0]
  ------------------
  464|      0|    i += 1;
  465|      0|    if(maybe_url_encoded && !strncmp("25", s + i, 2))
  ------------------
  |  Branch (465:8): [True: 0, False: 0]
  |  Branch (465:29): [True: 0, False: 0]
  ------------------
  466|      0|      i += 2;
  467|      0|    zonep = s + i;
  468|      0|    for(; i < len; ++i, ++zlen) {
  ------------------
  |  Branch (468:11): [True: 0, False: 0]
  ------------------
  469|       |      /* Allow unreserved characters as defined in RFC 3986 */
  470|      0|      if(!s[i] || !(ISALPHA(s[i]) || ISXDIGIT(s[i]) || (s[i] == '-') ||
  ------------------
  |  |   38|      0|#define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   43|      0|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (43:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (43:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   42|      0|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (42:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    if(!s[i] || !(ISALPHA(s[i]) || ISXDIGIT(s[i]) || (s[i] == '-') ||
  ------------------
  |  |   39|      0|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|      0|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (44:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|      0|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 0, False: 0]
  |  |  |  |  |  Branch (27:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|      0|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 0, False: 0]
  |  |  |  |  |  Branch (28:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (470:10): [True: 0, False: 0]
  |  Branch (470:56): [True: 0, False: 0]
  ------------------
  471|      0|                    (s[i] == '.') || (s[i] == '_') || (s[i] == '~')))
  ------------------
  |  Branch (471:21): [True: 0, False: 0]
  |  Branch (471:38): [True: 0, False: 0]
  |  Branch (471:55): [True: 0, False: 0]
  ------------------
  472|      0|        break;
  473|      0|    }
  474|      0|  }
  475|       |
  476|     11|  if(i != len)
  ------------------
  |  Branch (476:6): [True: 0, False: 11]
  ------------------
  477|      0|    return FALSE; /* invalid chars in zone */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  478|     11|  if(host && hlen) {
  ------------------
  |  Branch (478:6): [True: 11, False: 0]
  |  Branch (478:14): [True: 11, False: 0]
  ------------------
  479|     11|    host->str = s;
  480|     11|    host->len = hlen;
  481|     11|  }
  482|     11|  if(zone && zlen) {
  ------------------
  |  Branch (482:6): [True: 11, False: 0]
  |  Branch (482:14): [True: 0, False: 11]
  ------------------
  483|      0|    zone->str = zonep;
  484|      0|    zone->len = zlen;
  485|      0|  }
  486|       |  return TRUE;
  ------------------
  |  | 1055|     11|#define TRUE true
  ------------------
  487|     11|}
curl_addrinfo.c:ip2addr:
  344|  7.02k|{
  345|  7.02k|  struct Curl_addrinfo *ai;
  346|  7.02k|  size_t addrsize;
  347|  7.02k|  size_t namelen;
  348|  7.02k|  struct sockaddr_in *addr;
  349|  7.02k|#ifdef USE_IPV6
  350|  7.02k|  struct sockaddr_in6 *addr6;
  351|  7.02k|#endif
  352|       |
  353|  7.02k|  DEBUGASSERT(inaddr && hostname);
  ------------------
  |  | 1081|  7.02k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (353:3): [True: 0, False: 7.02k]
  |  Branch (353:3): [True: 0, False: 0]
  |  Branch (353:3): [True: 7.02k, False: 0]
  |  Branch (353:3): [True: 7.02k, False: 0]
  ------------------
  354|       |
  355|  7.02k|  namelen = strlen(hostname) + 1;
  356|  7.02k|  *addrp = NULL;
  357|       |
  358|  7.02k|  if(af == AF_INET)
  ------------------
  |  Branch (358:6): [True: 7.02k, False: 0]
  ------------------
  359|  7.02k|    addrsize = sizeof(struct sockaddr_in);
  360|      0|#ifdef USE_IPV6
  361|      0|  else if(af == AF_INET6)
  ------------------
  |  Branch (361:11): [True: 0, False: 0]
  ------------------
  362|      0|    addrsize = sizeof(struct sockaddr_in6);
  363|      0|#endif
  364|      0|  else
  365|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  366|       |
  367|       |  /* allocate memory to hold the struct, the address and the name */
  368|  7.02k|  ai = curlx_calloc(1, sizeof(struct Curl_addrinfo) + addrsize + namelen);
  ------------------
  |  | 1480|  7.02k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  369|  7.02k|  if(!ai)
  ------------------
  |  Branch (369:6): [True: 0, False: 7.02k]
  ------------------
  370|      0|    return CURLE_OUT_OF_MEMORY;
  371|       |  /* put the address after the struct */
  372|  7.02k|  ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo));
  373|       |  /* then put the name after the address */
  374|  7.02k|  ai->ai_canonname = (char *)ai->ai_addr + addrsize;
  375|  7.02k|  memcpy(ai->ai_canonname, hostname, namelen);
  376|  7.02k|  ai->ai_family = af;
  377|  7.02k|  ai->ai_socktype = SOCK_STREAM;
  378|  7.02k|  ai->ai_addrlen = (curl_socklen_t)addrsize;
  379|       |  /* leave the rest of the struct filled with zero */
  380|       |
  381|  7.02k|  switch(af) {
  ------------------
  |  Branch (381:10): [True: 7.02k, False: 0]
  ------------------
  382|  7.02k|  case AF_INET:
  ------------------
  |  Branch (382:3): [True: 7.02k, False: 0]
  ------------------
  383|  7.02k|    addr = (void *)ai->ai_addr; /* storage area for this info */
  384|       |
  385|  7.02k|    memcpy(&addr->sin_addr, inaddr, sizeof(struct in_addr));
  386|  7.02k|    addr->sin_family = (CURL_SA_FAMILY_T)af;
  387|  7.02k|    addr->sin_port = htons((unsigned short)port);
  388|  7.02k|    break;
  389|       |
  390|      0|#ifdef USE_IPV6
  391|      0|  case AF_INET6:
  ------------------
  |  Branch (391:3): [True: 0, False: 7.02k]
  ------------------
  392|      0|    addr6 = (void *)ai->ai_addr; /* storage area for this info */
  393|       |
  394|      0|    memcpy(&addr6->sin6_addr, inaddr, sizeof(struct in6_addr));
  395|      0|    addr6->sin6_family = (CURL_SA_FAMILY_T)af;
  396|      0|    addr6->sin6_port = htons((unsigned short)port);
  397|      0|    break;
  398|  7.02k|#endif
  399|  7.02k|  }
  400|  7.02k|  *addrp = ai;
  401|  7.02k|  return CURLE_OK;
  402|  7.02k|}

Curl_fopen:
   87|  23.4k|{
   88|  23.4k|  CURLcode result = CURLE_WRITE_ERROR;
   89|  23.4k|  unsigned char randbuf[41];
   90|  23.4k|  char *tempstore = NULL;
   91|  23.4k|#ifndef _WIN32
   92|  23.4k|  curlx_struct_stat sb;
  ------------------
  |  |   63|  23.4k|#define curlx_struct_stat       struct stat
  ------------------
   93|  23.4k|#endif
   94|  23.4k|  int fd = -1;
   95|  23.4k|  char *dir = NULL;
   96|  23.4k|  *tempname = NULL;
   97|       |
   98|  23.4k|#ifndef _WIN32
   99|  23.4k|  *fh = curlx_fopen(filename, FOPEN_WRITETEXT);
  ------------------
  |  |   74|  23.4k|#define curlx_fopen(file, mode) curl_dbg_fopen(file, mode, __LINE__, __FILE__)
  ------------------
  100|  23.4k|  if(!*fh)
  ------------------
  |  Branch (100:6): [True: 0, False: 23.4k]
  ------------------
  101|      0|    goto fail;
  102|  23.4k|  if(curlx_fstat(fileno(*fh), &sb) == -1 || !S_ISREG(sb.st_mode)) {
  ------------------
  |  |   62|  23.4k|#define curlx_fstat             fstat
  ------------------
  |  Branch (102:6): [True: 0, False: 23.4k]
  |  Branch (102:45): [True: 23.4k, False: 0]
  ------------------
  103|  23.4k|    return CURLE_OK;
  104|  23.4k|  }
  105|      0|  curlx_fclose(*fh);
  ------------------
  |  |   79|      0|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
  106|      0|#ifdef HAVE_GETEUID
  107|       |  /* If the existing file is not owned by the user, do not inherit
  108|       |   * its permissions at the temp file created below. The permissions
  109|       |   * might be unsuitable for holding user private data. */
  110|      0|  if(sb.st_uid != geteuid())
  ------------------
  |  Branch (110:6): [True: 0, False: 0]
  ------------------
  111|      0|    sb.st_mode = 0;
  112|      0|#endif
  113|      0|#endif /* !_WIN32 */
  114|      0|  *fh = NULL;
  115|       |
  116|      0|  result = Curl_rand_alnum(data, randbuf, sizeof(randbuf));
  117|      0|  if(result)
  ------------------
  |  Branch (117:6): [True: 0, False: 0]
  ------------------
  118|      0|    goto fail;
  119|       |
  120|      0|  dir = dirslash(filename);
  121|      0|  if(dir) {
  ------------------
  |  Branch (121:6): [True: 0, False: 0]
  ------------------
  122|       |    /* The temp filename should not end up too long for the target file
  123|       |       system */
  124|      0|    tempstore = curl_maprintf("%s%s.tmp", dir, randbuf);
  125|      0|    curlx_free(dir);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  126|      0|  }
  127|       |
  128|      0|  if(!tempstore) {
  ------------------
  |  Branch (128:6): [True: 0, False: 0]
  ------------------
  129|      0|    result = CURLE_OUT_OF_MEMORY;
  130|      0|    goto fail;
  131|      0|  }
  132|       |
  133|      0|  result = CURLE_WRITE_ERROR;
  134|       |#ifdef _WIN32
  135|       |  fd = curlx_open(tempstore, _O_WRONLY | _O_CREAT | _O_EXCL,
  136|       |                  _S_IREAD | _S_IWRITE);
  137|       |#elif (defined(ANDROID) || defined(__ANDROID__)) && \
  138|       |  (defined(__i386__) || defined(__arm__))
  139|       |  fd = curlx_open(tempstore, O_WRONLY | O_CREAT | O_EXCL,
  140|       |                  (mode_t)(S_IRUSR | S_IWUSR | sb.st_mode));
  141|       |#else
  142|      0|  fd = curlx_open(tempstore, O_WRONLY | O_CREAT | O_EXCL,
  ------------------
  |  |   68|      0|#define curlx_open              open
  ------------------
  143|      0|                  S_IRUSR | S_IWUSR | sb.st_mode);
  144|      0|#endif
  145|      0|  if(fd == -1)
  ------------------
  |  Branch (145:6): [True: 0, False: 0]
  ------------------
  146|      0|    goto fail;
  147|       |
  148|      0|  *fh = curlx_fdopen(fd, FOPEN_WRITETEXT);
  ------------------
  |  |   78|      0|  curl_dbg_fdopen(file, mode, __LINE__, __FILE__)
  ------------------
  149|      0|  if(!*fh)
  ------------------
  |  Branch (149:6): [True: 0, False: 0]
  ------------------
  150|      0|    goto fail;
  151|       |
  152|      0|  *tempname = tempstore;
  153|      0|  return CURLE_OK;
  154|       |
  155|      0|fail:
  156|      0|  if(fd != -1) {
  ------------------
  |  Branch (156:6): [True: 0, False: 0]
  ------------------
  157|      0|    curlx_close(fd);
  ------------------
  |  |   69|      0|#define curlx_close             close
  ------------------
  158|      0|    unlink(tempstore);
  159|      0|  }
  160|       |
  161|      0|  curlx_free(tempstore);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  162|      0|  return result;
  163|      0|}

Curl_get_line:
   36|  15.6k|{
   37|  15.6k|  CURLcode result;
   38|  15.6k|  char buffer[128];
   39|  15.6k|  curlx_dyn_reset(buf);
   40|  15.6k|  while(1) {
  ------------------
  |  Branch (40:9): [True: 15.6k, Folded]
  ------------------
   41|  15.6k|    size_t rlen;
   42|  15.6k|    const char *b = fgets(buffer, sizeof(buffer), input);
   43|  15.6k|    if(!b && ferror(input))
  ------------------
  |  Branch (43:8): [True: 15.6k, False: 0]
  |  Branch (43:14): [True: 0, False: 15.6k]
  ------------------
   44|      0|      return CURLE_READ_ERROR;
   45|       |
   46|  15.6k|    *eof = feof(input);
   47|       |
   48|  15.6k|    rlen = b ? strlen(b) : 0;
  ------------------
  |  Branch (48:12): [True: 0, False: 15.6k]
  ------------------
   49|  15.6k|    if(rlen) {
  ------------------
  |  Branch (49:8): [True: 0, False: 15.6k]
  ------------------
   50|      0|      result = curlx_dyn_addn(buf, b, rlen);
   51|      0|      if(result)
  ------------------
  |  Branch (51:10): [True: 0, False: 0]
  ------------------
   52|       |        /* too long line or out of memory */
   53|      0|        return result;
   54|      0|    }
   55|       |    /* now check the full line */
   56|  15.6k|    rlen = curlx_dyn_len(buf);
   57|  15.6k|    b = curlx_dyn_ptr(buf);
   58|  15.6k|    if(rlen && (b[rlen - 1] == '\n'))
  ------------------
  |  Branch (58:8): [True: 0, False: 15.6k]
  |  Branch (58:16): [True: 0, False: 0]
  ------------------
   59|       |      /* LF at end of the line */
   60|      0|      return CURLE_OK; /* all good */
   61|  15.6k|    if(*eof)
  ------------------
  |  Branch (61:8): [True: 15.6k, False: 0]
  ------------------
   62|       |      /* append a newline */
   63|  15.6k|      return curlx_dyn_addn(buf, "\n", 1);
   64|       |    /* otherwise get next line to append */
   65|  15.6k|  }
   66|       |  /* UNREACHABLE */
   67|  15.6k|}

Curl_share_lock:
  373|  41.8k|{
  374|  41.8k|  struct Curl_share *share = data->share;
  375|       |
  376|  41.8k|  if(!share)
  ------------------
  |  Branch (376:6): [True: 41.8k, False: 0]
  ------------------
  377|  41.8k|    return CURLSHE_INVALID;
  378|       |
  379|      0|  if(share->specifier & (unsigned int)(1 << type)) {
  ------------------
  |  Branch (379:6): [True: 0, False: 0]
  ------------------
  380|      0|    if(share->lockfunc) /* only call this if set! */
  ------------------
  |  Branch (380:8): [True: 0, False: 0]
  ------------------
  381|      0|      share->lockfunc(data, type, accesstype, share->clientdata);
  382|      0|  }
  383|       |  /* else if we do not share this, pretend successful lock */
  384|       |
  385|      0|  return CURLSHE_OK;
  386|  41.8k|}
Curl_share_unlock:
  389|  41.8k|{
  390|  41.8k|  struct Curl_share *share = data->share;
  391|       |
  392|  41.8k|  if(!share)
  ------------------
  |  Branch (392:6): [True: 41.8k, False: 0]
  ------------------
  393|  41.8k|    return CURLSHE_INVALID;
  394|       |
  395|      0|  if(share->specifier & (unsigned int)(1 << type)) {
  ------------------
  |  Branch (395:6): [True: 0, False: 0]
  ------------------
  396|      0|    if(share->unlockfunc) /* only call this if set! */
  ------------------
  |  Branch (396:8): [True: 0, False: 0]
  ------------------
  397|      0|      share->unlockfunc(data, type, share->clientdata);
  398|      0|  }
  399|       |
  400|      0|  return CURLSHE_OK;
  401|  41.8k|}
Curl_share_easy_unlink:
  404|  15.6k|{
  405|  15.6k|  struct Curl_share *share = data->share;
  406|       |
  407|  15.6k|  if(share) {
  ------------------
  |  Branch (407:6): [True: 0, False: 15.6k]
  ------------------
  408|      0|    bool locked = share_lock_acquire(share, data);
  409|       |
  410|       |    /* If data has a connection from this share, detach it. */
  411|      0|    if(data->conn && (share->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  ------------------
  |  Branch (411:8): [True: 0, False: 0]
  |  Branch (411:22): [True: 0, False: 0]
  ------------------
  412|      0|      Curl_detach_connection(data);
  413|       |
  414|      0|#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
  415|      0|    if(share->cookies == data->cookies)
  ------------------
  |  Branch (415:8): [True: 0, False: 0]
  ------------------
  416|      0|      data->cookies = NULL;
  417|      0|#endif
  418|       |
  419|      0|#ifndef CURL_DISABLE_HSTS
  420|      0|    if(share->hsts == data->hsts)
  ------------------
  |  Branch (420:8): [True: 0, False: 0]
  ------------------
  421|      0|      data->hsts = NULL;
  422|      0|#endif
  423|       |#ifdef USE_LIBPSL
  424|       |    if(&share->psl == data->psl)
  425|       |      data->psl = data->multi ? &data->multi->psl : NULL;
  426|       |#endif
  427|       |
  428|      0|    share_unlink(&data->share, data, locked);
  429|      0|  }
  430|  15.6k|  return CURLE_OK;
  431|  15.6k|}

Curl_debug:
  129|  47.5k|{
  130|  47.5k|  if(data->set.verbose) {
  ------------------
  |  Branch (130:6): [True: 0, False: 47.5k]
  ------------------
  131|      0|    static const char s_infotype[CURLINFO_END][3] = {
  132|      0|      "* ", "< ", "> ", "{ ", "} ", "{ ", "} " };
  133|      0|    char buf[TRC_LINE_MAX];
  134|      0|    size_t len;
  135|      0|    if(data->set.fdebug) {
  ------------------
  |  Branch (135:8): [True: 0, False: 0]
  ------------------
  136|      0|      bool inCallback = Curl_is_in_callback(data);
  137|       |
  138|      0|      if(CURL_TRC_IDS(data) && (size < TRC_LINE_MAX)) {
  ------------------
  |  |   90|      0|  (Curl_trc_is_verbose(data) && \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   91|      0|  Curl_trc_feat_ids.log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (91:3): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                    if(CURL_TRC_IDS(data) && (size < TRC_LINE_MAX)) {
  ------------------
  |  |   78|      0|#define TRC_LINE_MAX 2048
  ------------------
  |  Branch (138:32): [True: 0, False: 0]
  ------------------
  139|      0|        len = trc_print_ids(data, buf, TRC_LINE_MAX);
  ------------------
  |  |   78|      0|#define TRC_LINE_MAX 2048
  ------------------
  140|      0|        len += curl_msnprintf(buf + len, TRC_LINE_MAX - len, "%.*s",
  ------------------
  |  |   78|      0|#define TRC_LINE_MAX 2048
  ------------------
  141|      0|                              (int)size, ptr);
  142|      0|        len = trc_end_buf(buf, len, TRC_LINE_MAX, FALSE);
  ------------------
  |  |   78|      0|#define TRC_LINE_MAX 2048
  ------------------
                      len = trc_end_buf(buf, len, TRC_LINE_MAX, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  143|      0|        Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  144|      0|        (void)(*data->set.fdebug)(data, type, buf, len, data->set.debugdata);
  145|      0|        Curl_set_in_callback(data, inCallback);
  146|      0|      }
  147|      0|      else {
  148|      0|        Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  149|      0|        (void)(*data->set.fdebug)(data, type, CURL_UNCONST(ptr),
  ------------------
  |  |  866|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  150|      0|                                  size, data->set.debugdata);
  151|      0|        Curl_set_in_callback(data, inCallback);
  152|      0|      }
  153|      0|    }
  154|      0|    else {
  155|      0|      switch(type) {
  156|      0|      case CURLINFO_TEXT:
  ------------------
  |  Branch (156:7): [True: 0, False: 0]
  ------------------
  157|      0|      case CURLINFO_HEADER_OUT:
  ------------------
  |  Branch (157:7): [True: 0, False: 0]
  ------------------
  158|      0|      case CURLINFO_HEADER_IN:
  ------------------
  |  Branch (158:7): [True: 0, False: 0]
  ------------------
  159|      0|#ifndef CURL_DISABLE_VERBOSE_STRINGS
  160|      0|        if(CURL_TRC_IDS(data)) {
  ------------------
  |  |   90|      0|  (Curl_trc_is_verbose(data) && \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   91|      0|  Curl_trc_feat_ids.log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (91:3): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  161|      0|          len = trc_print_ids(data, buf, TRC_LINE_MAX);
  ------------------
  |  |   78|      0|#define TRC_LINE_MAX 2048
  ------------------
  162|      0|          fwrite(buf, len, 1, data->set.err);
  163|      0|        }
  164|      0|#endif
  165|      0|        fwrite(s_infotype[type], 2, 1, data->set.err);
  166|      0|        fwrite(ptr, size, 1, data->set.err);
  167|      0|        break;
  168|      0|      default: /* nada */
  ------------------
  |  Branch (168:7): [True: 0, False: 0]
  ------------------
  169|      0|        break;
  170|      0|      }
  171|      0|    }
  172|      0|  }
  173|  47.5k|}
Curl_failf:
  179|  18.6k|{
  180|  18.6k|  DEBUGASSERT(!strchr(fmt, '\n'));
  ------------------
  |  | 1081|  18.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (180:3): [True: 0, False: 18.6k]
  |  Branch (180:3): [True: 18.6k, False: 0]
  ------------------
  181|  18.6k|  if(data->set.verbose || data->set.errorbuffer) {
  ------------------
  |  Branch (181:6): [True: 0, False: 18.6k]
  |  Branch (181:27): [True: 0, False: 18.6k]
  ------------------
  182|      0|    va_list ap;
  183|      0|    size_t len;
  184|      0|    char error[CURL_ERROR_SIZE + 2];
  185|      0|    va_start(ap, fmt);
  186|      0|    len = curl_mvsnprintf(error, CURL_ERROR_SIZE, fmt, ap);
  ------------------
  |  |  867|      0|#define CURL_ERROR_SIZE 256
  ------------------
  187|       |
  188|      0|    if(data->set.errorbuffer && !data->state.errorbuf) {
  ------------------
  |  Branch (188:8): [True: 0, False: 0]
  |  Branch (188:33): [True: 0, False: 0]
  ------------------
  189|      0|      curlx_strcopy(data->set.errorbuffer, CURL_ERROR_SIZE, error, len);
  ------------------
  |  |  867|      0|#define CURL_ERROR_SIZE 256
  ------------------
  190|      0|      data->state.errorbuf = TRUE; /* wrote error string */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  191|      0|    }
  192|      0|    error[len++] = '\n';
  193|      0|    error[len] = '\0';
  194|      0|    trc_write(data, CURLINFO_TEXT, error, len);
  195|       |    va_end(ap);
  196|      0|  }
  197|  18.6k|}
Curl_reset_fail:
  200|  15.0k|{
  201|  15.0k|  if(data->set.errorbuffer)
  ------------------
  |  Branch (201:6): [True: 0, False: 15.0k]
  ------------------
  202|      0|    data->set.errorbuffer[0] = 0;
  203|       |  data->state.errorbuf = FALSE;
  ------------------
  |  | 1058|  15.0k|#define FALSE false
  ------------------
  204|  15.0k|}
Curl_trc_opt:
  667|      2|{
  668|      2|  CURLcode result = config ? trc_opt(config) : CURLE_OK;
  ------------------
  |  Branch (668:21): [True: 0, False: 2]
  ------------------
  669|      2|#ifdef DEBUGBUILD
  670|       |  /* CURL_DEBUG can override anything */
  671|      2|  if(!result) {
  ------------------
  |  Branch (671:6): [True: 2, False: 0]
  ------------------
  672|      2|    const char *dbg_config = getenv("CURL_DEBUG");
  673|      2|    if(dbg_config)
  ------------------
  |  Branch (673:8): [True: 0, False: 2]
  ------------------
  674|      0|      result = trc_opt(dbg_config);
  675|      2|  }
  676|      2|#endif /* DEBUGBUILD */
  677|      2|  return result;
  678|      2|}
Curl_trc_init:
  681|      2|{
  682|      2|#ifdef DEBUGBUILD
  683|      2|  return Curl_trc_opt(NULL);
  684|       |#else
  685|       |  return CURLE_OK;
  686|       |#endif
  687|      2|}

curlx_base64_encode:
  243|  2.67k|{
  244|  2.67k|  return base64_encode(curlx_base64encdec, '=',
  245|  2.67k|                       inputbuff, insize, outptr, outlen);
  246|  2.67k|}
curlx_base64url_encode:
  265|    483|{
  266|    483|  return base64_encode(base64url, 0, inputbuff, insize, outptr, outlen);
  267|    483|}
base64.c:base64_encode:
  169|  3.15k|{
  170|  3.15k|  char *output;
  171|  3.15k|  char *base64data;
  172|  3.15k|  const unsigned char *in = (const unsigned char *)inputbuff;
  173|       |
  174|  3.15k|  *outptr = NULL;
  175|  3.15k|  *outlen = 0;
  176|       |
  177|  3.15k|  if(!insize)
  ------------------
  |  Branch (177:6): [True: 0, False: 3.15k]
  ------------------
  178|      0|    return CURLE_OK;
  179|       |
  180|       |  /* safety precaution */
  181|  3.15k|  DEBUGASSERT(insize <= CURL_MAX_BASE64_INPUT);
  ------------------
  |  | 1081|  3.15k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (181:3): [True: 0, False: 3.15k]
  |  Branch (181:3): [True: 3.15k, False: 0]
  ------------------
  182|  3.15k|  if(insize > CURL_MAX_BASE64_INPUT)
  ------------------
  |  |   38|  3.15k|#define CURL_MAX_BASE64_INPUT 16000000
  ------------------
  |  Branch (182:6): [True: 0, False: 3.15k]
  ------------------
  183|      0|    return CURLE_TOO_LARGE;
  184|       |
  185|  3.15k|  base64data = output = curlx_malloc(((insize + 2) / 3 * 4) + 1);
  ------------------
  |  | 1478|  3.15k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  186|  3.15k|  if(!output)
  ------------------
  |  Branch (186:6): [True: 0, False: 3.15k]
  ------------------
  187|      0|    return CURLE_OUT_OF_MEMORY;
  188|       |
  189|  28.6k|  while(insize >= 3) {
  ------------------
  |  Branch (189:9): [True: 25.4k, False: 3.15k]
  ------------------
  190|  25.4k|    *output++ = table64[in[0] >> 2];
  191|  25.4k|    *output++ = table64[((in[0] & 0x03) << 4) | (in[1] >> 4)];
  192|  25.4k|    *output++ = table64[((in[1] & 0x0F) << 2) | ((in[2] & 0xC0) >> 6)];
  193|  25.4k|    *output++ = table64[in[2] & 0x3F];
  194|  25.4k|    insize -= 3;
  195|  25.4k|    in += 3;
  196|  25.4k|  }
  197|  3.15k|  if(insize) {
  ------------------
  |  Branch (197:6): [True: 2.27k, False: 881]
  ------------------
  198|       |    /* this is only one or two bytes now */
  199|  2.27k|    *output++ = table64[in[0] >> 2];
  200|  2.27k|    if(insize == 1) {
  ------------------
  |  Branch (200:8): [True: 1.59k, False: 677]
  ------------------
  201|  1.59k|      *output++ = table64[((in[0] & 0x03) << 4)];
  202|  1.59k|      if(padbyte) {
  ------------------
  |  Branch (202:10): [True: 1.59k, False: 0]
  ------------------
  203|  1.59k|        *output++ = padbyte;
  204|  1.59k|        *output++ = padbyte;
  205|  1.59k|      }
  206|  1.59k|    }
  207|    677|    else {
  208|       |      /* insize == 2 */
  209|    677|      *output++ = table64[((in[0] & 0x03) << 4) | ((in[1] & 0xF0) >> 4)];
  210|    677|      *output++ = table64[((in[1] & 0x0F) << 2)];
  211|    677|      if(padbyte)
  ------------------
  |  Branch (211:10): [True: 677, False: 0]
  ------------------
  212|    677|        *output++ = padbyte;
  213|    677|    }
  214|  2.27k|  }
  215|       |
  216|       |  /* Null-terminate */
  217|  3.15k|  *output = '\0';
  218|       |
  219|       |  /* Return the pointer to the new data (allocated memory) */
  220|  3.15k|  *outptr = base64data;
  221|       |
  222|       |  /* Return the length of the new data */
  223|  3.15k|  *outlen = (size_t)(output - base64data);
  224|       |
  225|  3.15k|  return CURLE_OK;
  226|  3.15k|}

curlx_dyn_init:
   39|   168k|{
   40|   168k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|   168k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (40:3): [True: 0, False: 168k]
  |  Branch (40:3): [True: 168k, False: 0]
  ------------------
   41|   168k|  DEBUGASSERT(toobig);
  ------------------
  |  | 1081|   168k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (41:3): [True: 0, False: 168k]
  |  Branch (41:3): [True: 168k, False: 0]
  ------------------
   42|   168k|  DEBUGASSERT(toobig <= MAX_DYNBUF_SIZE); /* catch crazy mistakes */
  ------------------
  |  | 1081|   168k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (42:3): [True: 0, False: 168k]
  |  Branch (42:3): [True: 168k, False: 0]
  ------------------
   43|   168k|  s->bufr = NULL;
   44|   168k|  s->leng = 0;
   45|   168k|  s->allc = 0;
   46|   168k|  s->toobig = toobig;
   47|   168k|#ifdef DEBUGBUILD
   48|   168k|  s->init = DYNINIT;
  ------------------
  |  |   32|   168k|#define DYNINIT 0xbee51da /* random pattern */
  ------------------
   49|   168k|#endif
   50|   168k|}
curlx_dyn_free:
   57|  95.0k|{
   58|  95.0k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|  95.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (58:3): [True: 0, False: 95.0k]
  |  Branch (58:3): [True: 95.0k, False: 0]
  ------------------
   59|  95.0k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|  95.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (59:3): [True: 0, False: 95.0k]
  |  Branch (59:3): [True: 95.0k, False: 0]
  ------------------
   60|  95.0k|  curlx_safefree(s->bufr);
  ------------------
  |  | 1327|  95.0k|  do {                      \
  |  | 1328|  95.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  95.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  95.0k|    (ptr) = NULL;           \
  |  | 1330|  95.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 95.0k]
  |  |  ------------------
  ------------------
   61|  95.0k|  s->leng = s->allc = 0;
   62|  95.0k|}
curlx_dyn_reset:
  126|   121k|{
  127|   121k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|   121k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (127:3): [True: 0, False: 121k]
  |  Branch (127:3): [True: 121k, False: 0]
  ------------------
  128|   121k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|   121k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (128:3): [True: 0, False: 121k]
  |  Branch (128:3): [True: 121k, False: 0]
  ------------------
  129|   121k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|   121k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (129:3): [True: 121k, False: 0]
  |  Branch (129:3): [True: 0, False: 0]
  |  Branch (129:3): [True: 72.0k, False: 49.4k]
  |  Branch (129:3): [True: 49.4k, False: 0]
  ------------------
  130|   121k|  if(s->leng)
  ------------------
  |  Branch (130:6): [True: 49.4k, False: 72.0k]
  ------------------
  131|  49.4k|    s->bufr[0] = 0;
  132|   121k|  s->leng = 0;
  133|   121k|}
curlx_dyn_addn:
  163|  5.68M|{
  164|  5.68M|  DEBUGASSERT(s);
  ------------------
  |  | 1081|  5.68M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (164:3): [True: 0, False: 5.68M]
  |  Branch (164:3): [True: 5.68M, False: 0]
  ------------------
  165|  5.68M|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|  5.68M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (165:3): [True: 0, False: 5.68M]
  |  Branch (165:3): [True: 5.68M, False: 0]
  ------------------
  166|  5.68M|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|  5.68M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 5.68M, False: 0]
  |  Branch (166:3): [True: 0, False: 0]
  |  Branch (166:3): [True: 179k, False: 5.50M]
  |  Branch (166:3): [True: 5.50M, False: 0]
  ------------------
  167|  5.68M|  return dyn_nappend(s, mem, len);
  168|  5.68M|}
curlx_dyn_add:
  174|  34.9k|{
  175|  34.9k|  size_t n;
  176|  34.9k|  DEBUGASSERT(str);
  ------------------
  |  | 1081|  34.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (176:3): [True: 0, False: 34.9k]
  |  Branch (176:3): [True: 34.9k, False: 0]
  ------------------
  177|  34.9k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|  34.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (177:3): [True: 0, False: 34.9k]
  |  Branch (177:3): [True: 34.9k, False: 0]
  ------------------
  178|  34.9k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|  34.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (178:3): [True: 0, False: 34.9k]
  |  Branch (178:3): [True: 34.9k, False: 0]
  ------------------
  179|  34.9k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|  34.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:3): [True: 34.9k, False: 0]
  |  Branch (179:3): [True: 0, False: 0]
  |  Branch (179:3): [True: 1.36k, False: 33.5k]
  |  Branch (179:3): [True: 33.5k, False: 0]
  ------------------
  180|  34.9k|  n = strlen(str);
  181|  34.9k|  return dyn_nappend(s, (const unsigned char *)str, n);
  182|  34.9k|}
curlx_dyn_vaddf:
  188|  38.9k|{
  189|  38.9k|#ifdef BUILDING_LIBCURL
  190|  38.9k|  int rc;
  191|  38.9k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|  38.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (191:3): [True: 0, False: 38.9k]
  |  Branch (191:3): [True: 38.9k, False: 0]
  ------------------
  192|  38.9k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|  38.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (192:3): [True: 0, False: 38.9k]
  |  Branch (192:3): [True: 38.9k, False: 0]
  ------------------
  193|  38.9k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|  38.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (193:3): [True: 38.9k, False: 0]
  |  Branch (193:3): [True: 0, False: 0]
  |  Branch (193:3): [True: 17.2k, False: 21.6k]
  |  Branch (193:3): [True: 21.6k, False: 0]
  ------------------
  194|  38.9k|  DEBUGASSERT(fmt);
  ------------------
  |  | 1081|  38.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (194:3): [True: 0, False: 38.9k]
  |  Branch (194:3): [True: 38.9k, False: 0]
  ------------------
  195|  38.9k|  rc = curlx_dyn_vprintf(s, fmt, ap);
  196|       |
  197|  38.9k|  if(!rc)
  ------------------
  |  Branch (197:6): [True: 38.8k, False: 9]
  ------------------
  198|  38.8k|    return CURLE_OK;
  199|      9|  else if(rc == MERR_TOO_LARGE)
  ------------------
  |  |   29|      9|#define MERR_TOO_LARGE 2
  ------------------
  |  Branch (199:11): [True: 9, False: 0]
  ------------------
  200|      9|    return CURLE_TOO_LARGE;
  201|      0|  return CURLE_OUT_OF_MEMORY;
  202|       |#else
  203|       |  char *str;
  204|       |  str = curl_mvaprintf(fmt, ap); /* this allocs a new string to append */
  205|       |
  206|       |  if(str) {
  207|       |    CURLcode result = dyn_nappend(s, (const unsigned char *)str, strlen(str));
  208|       |    curl_free(str);
  209|       |    return result;
  210|       |  }
  211|       |  /* If we failed, we cleanup the whole buffer and return error */
  212|       |  curlx_dyn_free(s);
  213|       |  return CURLE_OUT_OF_MEMORY;
  214|       |#endif
  215|  38.9k|}
curlx_dyn_addf:
  221|  38.9k|{
  222|  38.9k|  CURLcode result;
  223|  38.9k|  va_list ap;
  224|  38.9k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|  38.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (224:3): [True: 0, False: 38.9k]
  |  Branch (224:3): [True: 38.9k, False: 0]
  ------------------
  225|  38.9k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|  38.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (225:3): [True: 0, False: 38.9k]
  |  Branch (225:3): [True: 38.9k, False: 0]
  ------------------
  226|  38.9k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|  38.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (226:3): [True: 38.9k, False: 0]
  |  Branch (226:3): [True: 0, False: 0]
  |  Branch (226:3): [True: 17.2k, False: 21.6k]
  |  Branch (226:3): [True: 21.6k, False: 0]
  ------------------
  227|  38.9k|  DEBUGASSERT(strcmp(fmt, "%s")); /* use curlx_dyn_add instead */
  ------------------
  |  | 1081|  38.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (227:3): [True: 0, False: 38.9k]
  |  Branch (227:3): [True: 38.9k, False: 0]
  ------------------
  228|  38.9k|  va_start(ap, fmt);
  229|  38.9k|  result = curlx_dyn_vaddf(s, fmt, ap);
  230|       |  va_end(ap);
  231|  38.9k|  return result;
  232|  38.9k|}
curlx_dyn_ptr:
  238|   250k|{
  239|   250k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|   250k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (239:3): [True: 0, False: 250k]
  |  Branch (239:3): [True: 250k, False: 0]
  ------------------
  240|   250k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|   250k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (240:3): [True: 0, False: 250k]
  |  Branch (240:3): [True: 250k, False: 0]
  ------------------
  241|   250k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|   250k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (241:3): [True: 250k, False: 0]
  |  Branch (241:3): [True: 0, False: 0]
  |  Branch (241:3): [True: 15.6k, False: 234k]
  |  Branch (241:3): [True: 234k, False: 0]
  ------------------
  242|   250k|  return s->bufr;
  243|   250k|}
curlx_dyn_take:
  246|    220|{
  247|    220|  char *ptr = s->bufr;
  248|    220|  DEBUGASSERT(s);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (248:3): [True: 0, False: 220]
  |  Branch (248:3): [True: 220, False: 0]
  ------------------
  249|    220|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (249:3): [True: 0, False: 220]
  |  Branch (249:3): [True: 220, False: 0]
  ------------------
  250|    220|  *plen = s->leng;
  251|       |  s->bufr = NULL;
  252|    220|  s->leng = 0;
  253|    220|  s->allc = 0;
  254|    220|  return ptr;
  255|    220|}
curlx_dyn_len:
  272|   238k|{
  273|   238k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|   238k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (273:3): [True: 0, False: 238k]
  |  Branch (273:3): [True: 238k, False: 0]
  ------------------
  274|   238k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|   238k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (274:3): [True: 0, False: 238k]
  |  Branch (274:3): [True: 238k, False: 0]
  ------------------
  275|   238k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|   238k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (275:3): [True: 238k, False: 0]
  |  Branch (275:3): [True: 0, False: 0]
  |  Branch (275:3): [True: 62.5k, False: 175k]
  |  Branch (275:3): [True: 175k, False: 0]
  ------------------
  276|   238k|  return s->leng;
  277|   238k|}
curlx_dyn_setlen:
  283|  1.80k|{
  284|  1.80k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|  1.80k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (284:3): [True: 0, False: 1.80k]
  |  Branch (284:3): [True: 1.80k, False: 0]
  ------------------
  285|  1.80k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|  1.80k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (285:3): [True: 0, False: 1.80k]
  |  Branch (285:3): [True: 1.80k, False: 0]
  ------------------
  286|  1.80k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|  1.80k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (286:3): [True: 1.80k, False: 0]
  |  Branch (286:3): [True: 0, False: 0]
  |  Branch (286:3): [True: 0, False: 1.80k]
  |  Branch (286:3): [True: 1.80k, False: 0]
  ------------------
  287|  1.80k|  if(set > s->leng)
  ------------------
  |  Branch (287:6): [True: 0, False: 1.80k]
  ------------------
  288|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  289|  1.80k|  s->leng = set;
  290|  1.80k|  s->bufr[s->leng] = 0;
  291|  1.80k|  return CURLE_OK;
  292|  1.80k|}
dynbuf.c:dyn_nappend:
   69|  5.72M|{
   70|  5.72M|  size_t idx = s->leng;
   71|  5.72M|  size_t a = s->allc;
   72|  5.72M|  size_t fit = len + idx + 1; /* new string + old string + zero byte */
   73|       |
   74|       |  /* try to detect if there is rubbish in the struct */
   75|  5.72M|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1081|  5.72M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (75:3): [True: 0, False: 5.72M]
  |  Branch (75:3): [True: 5.72M, False: 0]
  ------------------
   76|  5.72M|  DEBUGASSERT(s->toobig);
  ------------------
  |  | 1081|  5.72M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (76:3): [True: 0, False: 5.72M]
  |  Branch (76:3): [True: 5.72M, False: 0]
  ------------------
   77|  5.72M|  DEBUGASSERT(idx < s->toobig);
  ------------------
  |  | 1081|  5.72M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (77:3): [True: 0, False: 5.72M]
  |  Branch (77:3): [True: 5.72M, False: 0]
  ------------------
   78|  5.72M|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1081|  5.72M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (78:3): [True: 5.72M, False: 0]
  |  Branch (78:3): [True: 0, False: 0]
  |  Branch (78:3): [True: 181k, False: 5.54M]
  |  Branch (78:3): [True: 5.54M, False: 0]
  ------------------
   79|  5.72M|  DEBUGASSERT(a <= s->toobig);
  ------------------
  |  | 1081|  5.72M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (79:3): [True: 0, False: 5.72M]
  |  Branch (79:3): [True: 5.72M, False: 0]
  ------------------
   80|  5.72M|  DEBUGASSERT(!len || mem);
  ------------------
  |  | 1081|  5.72M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (80:3): [True: 5.72M, False: 0]
  |  Branch (80:3): [True: 0, False: 0]
  |  Branch (80:3): [True: 12.1k, False: 5.71M]
  |  Branch (80:3): [True: 5.71M, False: 0]
  ------------------
   81|       |
   82|  5.72M|  if(fit > s->toobig) {
  ------------------
  |  Branch (82:6): [True: 10, False: 5.72M]
  ------------------
   83|     10|    curlx_dyn_free(s);
   84|     10|    return CURLE_TOO_LARGE;
   85|     10|  }
   86|  5.72M|  else if(!a) {
  ------------------
  |  Branch (86:11): [True: 137k, False: 5.58M]
  ------------------
   87|   137k|    DEBUGASSERT(!idx);
  ------------------
  |  | 1081|   137k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (87:5): [True: 0, False: 137k]
  |  Branch (87:5): [True: 137k, False: 0]
  ------------------
   88|       |    /* first invoke */
   89|   137k|    if(MIN_FIRST_ALLOC > s->toobig)
  ------------------
  |  |   29|   137k|#define MIN_FIRST_ALLOC 32
  ------------------
  |  Branch (89:8): [True: 14.0k, False: 123k]
  ------------------
   90|  14.0k|      a = s->toobig;
   91|   123k|    else if(fit < MIN_FIRST_ALLOC)
  ------------------
  |  |   29|   123k|#define MIN_FIRST_ALLOC 32
  ------------------
  |  Branch (91:13): [True: 117k, False: 5.96k]
  ------------------
   92|   117k|      a = MIN_FIRST_ALLOC;
  ------------------
  |  |   29|   117k|#define MIN_FIRST_ALLOC 32
  ------------------
   93|  5.96k|    else
   94|  5.96k|      a = fit;
   95|   137k|  }
   96|  5.58M|  else {
   97|  5.66M|    while(a < fit)
  ------------------
  |  Branch (97:11): [True: 76.0k, False: 5.58M]
  ------------------
   98|  76.0k|      a *= 2;
   99|  5.58M|    if(a > s->toobig)
  ------------------
  |  Branch (99:8): [True: 6.61k, False: 5.57M]
  ------------------
  100|       |      /* no point in allocating a larger buffer than this is allowed to use */
  101|  6.61k|      a = s->toobig;
  102|  5.58M|  }
  103|       |
  104|  5.72M|  if(a != s->allc) {
  ------------------
  |  Branch (104:6): [True: 210k, False: 5.51M]
  ------------------
  105|   210k|    void *p = curlx_realloc(s->bufr, a);
  ------------------
  |  | 1482|   210k|  curl_dbg_realloc(ptr, size, __LINE__, __FILE__)
  ------------------
  106|   210k|    if(!p) {
  ------------------
  |  Branch (106:8): [True: 0, False: 210k]
  ------------------
  107|      0|      curlx_dyn_free(s);
  108|      0|      return CURLE_OUT_OF_MEMORY;
  109|      0|    }
  110|   210k|    s->bufr = p;
  111|   210k|    s->allc = a;
  112|   210k|  }
  113|       |
  114|  5.72M|  if(len)
  ------------------
  |  Branch (114:6): [True: 5.71M, False: 12.1k]
  ------------------
  115|  5.71M|    memcpy(&s->bufr[idx], mem, len);
  116|  5.72M|  s->leng = idx + len;
  117|  5.72M|  s->bufr[s->leng] = 0;
  118|  5.72M|  return CURLE_OK;
  119|  5.72M|}

curlx_nonblock:
   47|  9.45k|{
   48|  9.45k|#ifdef HAVE_FCNTL_O_NONBLOCK
   49|       |  /* most recent Unix versions */
   50|  9.45k|  int flags;
   51|  9.45k|  flags = sfcntl(sockfd, F_GETFL, 0);
  ------------------
  |  | 1008|  9.45k|#  define sfcntl  fcntl
  ------------------
   52|  9.45k|  if(flags < 0)
  ------------------
  |  Branch (52:6): [True: 0, False: 9.45k]
  ------------------
   53|      0|    return -1;
   54|       |  /* Check if the current file status flags have already satisfied
   55|       |   * the request, if so, it is no need to call fcntl() to replicate it.
   56|       |   */
   57|  9.45k|  if(!!(flags & O_NONBLOCK) == !!nonblock)
  ------------------
  |  Branch (57:6): [True: 2.43k, False: 7.02k]
  ------------------
   58|  2.43k|    return 0;
   59|  7.02k|  if(nonblock)
  ------------------
  |  Branch (59:6): [True: 7.02k, False: 0]
  ------------------
   60|  7.02k|    flags |= O_NONBLOCK;
   61|      0|  else
   62|      0|    flags &= ~O_NONBLOCK;
   63|  7.02k|  return sfcntl(sockfd, F_SETFL, flags);
  ------------------
  |  | 1008|  7.02k|#  define sfcntl  fcntl
  ------------------
   64|       |
   65|       |#elif defined(HAVE_IOCTLSOCKET_CAMEL_FIONBIO)
   66|       |
   67|       |  /* Amiga */
   68|       |  long flags = nonblock ? 1L : 0L;
   69|       |  return IoctlSocket(sockfd, FIONBIO, (char *)&flags);
   70|       |
   71|       |#elif defined(HAVE_IOCTL_FIONBIO)
   72|       |
   73|       |  /* older Unix versions */
   74|       |  int flags = nonblock ? 1 : 0;
   75|       |  return ioctl(sockfd, FIONBIO, &flags);
   76|       |
   77|       |#elif defined(HAVE_IOCTLSOCKET_FIONBIO)
   78|       |
   79|       |  /* Windows */
   80|       |  unsigned long flags = nonblock ? 1UL : 0UL;
   81|       |  return ioctlsocket(sockfd, (long)FIONBIO, &flags);
   82|       |
   83|       |#elif defined(HAVE_SETSOCKOPT_SO_NONBLOCK)
   84|       |
   85|       |  /* Orbis OS */
   86|       |  long b = nonblock ? 1L : 0L;
   87|       |  return setsockopt(sockfd, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
   88|       |
   89|       |#else
   90|       |#error "no non-blocking method was found/used/set"
   91|       |#endif
   92|  9.45k|}

curlx_strcopy:
   42|  2.79k|{
   43|  2.79k|  DEBUGASSERT(slen < dsize);
  ------------------
  |  | 1081|  2.79k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (43:3): [True: 0, False: 2.79k]
  |  Branch (43:3): [True: 2.79k, False: 0]
  ------------------
   44|  2.79k|  if(slen < dsize) {
  ------------------
  |  Branch (44:6): [True: 2.79k, False: 0]
  ------------------
   45|  2.79k|    memcpy(dest, src, slen);
   46|  2.79k|    dest[slen] = 0;
   47|  2.79k|  }
   48|      0|  else if(dsize)
  ------------------
  |  Branch (48:11): [True: 0, False: 0]
  ------------------
   49|      0|    dest[0] = 0;
   50|  2.79k|}

curlx_memdup:
   65|    404|{
   66|    404|  void *buffer = curlx_malloc(length);
  ------------------
  |  | 1478|    404|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
   67|    404|  if(!buffer)
  ------------------
  |  Branch (67:6): [True: 0, False: 404]
  ------------------
   68|      0|    return NULL; /* fail */
   69|       |
   70|    404|  memcpy(buffer, src, length);
   71|       |
   72|    404|  return buffer;
   73|    404|}
curlx_memdup0:
   86|  65.3k|{
   87|  65.3k|  char *buf = (length < SIZE_MAX) ? curlx_malloc(length + 1) : NULL;
  ------------------
  |  | 1478|  65.3k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  |  Branch (87:15): [True: 65.3k, False: 0]
  ------------------
   88|  65.3k|  if(!buf)
  ------------------
  |  Branch (88:6): [True: 0, False: 65.3k]
  ------------------
   89|      0|    return NULL;
   90|  65.3k|  if(length) {
  ------------------
  |  Branch (90:6): [True: 64.1k, False: 1.15k]
  ------------------
   91|  64.1k|    DEBUGASSERT(src); /* must never be NULL */
  ------------------
  |  | 1081|  64.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (91:5): [True: 0, False: 64.1k]
  |  Branch (91:5): [True: 64.1k, False: 0]
  ------------------
   92|  64.1k|    memcpy(buf, src, length);
   93|  64.1k|  }
   94|  65.3k|  buf[length] = 0;
   95|  65.3k|  return buf;
   96|  65.3k|}

curlx_strerror:
  249|    511|{
  250|       |#ifdef _WIN32
  251|       |  DWORD old_win_err = GetLastError();
  252|       |#endif
  253|    511|  int old_errno = errno;
  254|    511|  char *p;
  255|       |
  256|    511|  if(!buflen)
  ------------------
  |  Branch (256:6): [True: 0, False: 511]
  ------------------
  257|      0|    return NULL;
  258|       |
  259|    511|#ifndef _WIN32
  260|    511|  DEBUGASSERT(err >= 0);
  ------------------
  |  | 1081|    511|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (260:3): [True: 0, False: 511]
  |  Branch (260:3): [True: 511, False: 0]
  ------------------
  261|    511|#endif
  262|       |
  263|    511|  *buf = '\0';
  264|       |
  265|       |#ifdef _WIN32
  266|       |  if((strerror_s(buf, buflen, err) || !strcmp(buf, "Unknown error")) &&
  267|       |#ifdef USE_WINSOCK
  268|       |     !get_winsock_error(err, buf, buflen) &&
  269|       |#endif
  270|       |     !curlx_get_winapi_error((DWORD)err, buf, buflen))
  271|       |    SNPRINTF(buf, buflen, "Unknown error %d (%#x)", err, err);
  272|       |#else /* !_WIN32 */
  273|       |
  274|       |#if defined(HAVE_STRERROR_R) && defined(HAVE_POSIX_STRERROR_R)
  275|       |  /*
  276|       |   * The POSIX-style strerror_r() may set errno to ERANGE if insufficient
  277|       |   * storage is supplied via 'strerrbuf' and 'buflen' to hold the generated
  278|       |   * message string, or EINVAL if 'errnum' is not a valid error number.
  279|       |   */
  280|       |  if(strerror_r(err, buf, buflen) &&
  281|       |     buflen > sizeof("Unknown error ") + 20) {
  282|       |    if(buf[0] == '\0')
  283|       |      SNPRINTF(buf, buflen, "Unknown error %d", err);
  284|       |  }
  285|       |#elif defined(HAVE_STRERROR_R) && defined(HAVE_GLIBC_STRERROR_R)
  286|       |  /*
  287|       |   * The glibc-style strerror_r() only *might* use the buffer we pass to
  288|       |   * the function, but it always returns the error message as a pointer,
  289|       |   * so we must copy that string unconditionally (if non-NULL).
  290|       |   */
  291|    511|  {
  292|    511|    char buffer[256];
  293|    511|    const char *msg = strerror_r(err, buffer, sizeof(buffer));
  294|    511|    if(msg && buflen > 1)
  ------------------
  |  Branch (294:8): [True: 511, False: 0]
  |  Branch (294:15): [True: 511, False: 0]
  ------------------
  295|    511|      SNPRINTF(buf, buflen, "%s", msg);
  ------------------
  |  |   43|    511|#define SNPRINTF curl_msnprintf
  ------------------
  296|      0|    else if(buflen > sizeof("Unknown error ") + 20)
  ------------------
  |  Branch (296:13): [True: 0, False: 0]
  ------------------
  297|      0|      SNPRINTF(buf, buflen, "Unknown error %d", err);
  ------------------
  |  |   43|      0|#define SNPRINTF curl_msnprintf
  ------------------
  298|    511|  }
  299|       |#else
  300|       |  {
  301|       |    /* !checksrc! disable BANNEDFUNC 1 */
  302|       |    const char *msg = strerror(err);
  303|       |    if(msg && buflen > 1)
  304|       |      SNPRINTF(buf, buflen, "%s", msg);
  305|       |    else if(buflen > sizeof("Unknown error ") + 20)
  306|       |      SNPRINTF(buf, buflen, "Unknown error %d", err);
  307|       |  }
  308|       |#endif
  309|       |
  310|    511|#endif /* _WIN32 */
  311|       |
  312|       |  /* strip trailing '\r\n' or '\n'. */
  313|    511|  p = strrchr(buf, '\n');
  314|    511|  if(p && (p - buf) >= 2)
  ------------------
  |  Branch (314:6): [True: 0, False: 511]
  |  Branch (314:11): [True: 0, False: 0]
  ------------------
  315|      0|    *p = '\0';
  316|    511|  p = strrchr(buf, '\r');
  317|    511|  if(p && (p - buf) >= 1)
  ------------------
  |  Branch (317:6): [True: 0, False: 511]
  |  Branch (317:11): [True: 0, False: 0]
  ------------------
  318|      0|    *p = '\0';
  319|       |
  320|    511|  if(errno != old_errno)
  ------------------
  |  Branch (320:6): [True: 0, False: 511]
  ------------------
  321|    511|    errno = old_errno;
  322|       |
  323|       |#ifdef _WIN32
  324|       |  if(old_win_err != GetLastError())
  325|       |    SetLastError(old_win_err);
  326|       |#endif
  327|       |
  328|    511|  return buf;
  329|    511|}

curlx_str_init:
   27|  21.0k|{
   28|       |  out->str = NULL;
   29|  21.0k|  out->len = 0;
   30|  21.0k|}
curlx_str_until:
   51|  13.8k|{
   52|  13.8k|  const char *s;
   53|  13.8k|  size_t len = 0;
   54|  13.8k|  DEBUGASSERT(linep);
  ------------------
  |  | 1081|  13.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (54:3): [True: 0, False: 13.8k]
  |  Branch (54:3): [True: 13.8k, False: 0]
  ------------------
   55|  13.8k|  DEBUGASSERT(*linep);
  ------------------
  |  | 1081|  13.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (55:3): [True: 0, False: 13.8k]
  |  Branch (55:3): [True: 13.8k, False: 0]
  ------------------
   56|  13.8k|  DEBUGASSERT(out);
  ------------------
  |  | 1081|  13.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (56:3): [True: 0, False: 13.8k]
  |  Branch (56:3): [True: 13.8k, False: 0]
  ------------------
   57|  13.8k|  DEBUGASSERT(delim);
  ------------------
  |  | 1081|  13.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (57:3): [True: 0, False: 13.8k]
  |  Branch (57:3): [True: 13.8k, False: 0]
  ------------------
   58|  13.8k|  s = *linep;
   59|       |
   60|  13.8k|  curlx_str_init(out);
   61|  72.8k|  while(*s && (*s != delim)) {
  ------------------
  |  Branch (61:9): [True: 63.6k, False: 9.16k]
  |  Branch (61:15): [True: 58.9k, False: 4.65k]
  ------------------
   62|  58.9k|    s++;
   63|  58.9k|    if(++len > max) {
  ------------------
  |  Branch (63:8): [True: 0, False: 58.9k]
  ------------------
   64|      0|      return STRE_BIG;
  ------------------
  |  |   29|      0|#define STRE_BIG      1
  ------------------
   65|      0|    }
   66|  58.9k|  }
   67|  13.8k|  if(!len)
  ------------------
  |  Branch (67:6): [True: 0, False: 13.8k]
  ------------------
   68|      0|    return STRE_SHORT;
  ------------------
  |  |   30|      0|#define STRE_SHORT    2
  ------------------
   69|  13.8k|  out->str = *linep;
   70|  13.8k|  out->len = len;
   71|  13.8k|  *linep = s; /* point to the first byte after the word */
   72|  13.8k|  return STRE_OK;
  ------------------
  |  |   28|  13.8k|#define STRE_OK       0
  ------------------
   73|  13.8k|}
curlx_str_word:
   78|  7.82k|{
   79|  7.82k|  return curlx_str_until(linep, out, max, ' ');
   80|  7.82k|}
curlx_str_untilnl:
   86|  5.99k|{
   87|  5.99k|  const char *s = *linep;
   88|  5.99k|  size_t len = 0;
   89|  5.99k|  DEBUGASSERT(linep && *linep && out && max);
  ------------------
  |  | 1081|  5.99k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (89:3): [True: 0, False: 5.99k]
  |  Branch (89:3): [True: 0, False: 0]
  |  Branch (89:3): [True: 0, False: 0]
  |  Branch (89:3): [True: 0, False: 0]
  |  Branch (89:3): [True: 5.99k, False: 0]
  |  Branch (89:3): [True: 5.99k, False: 0]
  |  Branch (89:3): [True: 5.99k, False: 0]
  |  Branch (89:3): [True: 5.99k, False: 0]
  ------------------
   90|       |
   91|  5.99k|  curlx_str_init(out);
   92|   114k|  while(*s && !ISNEWLINE(*s)) {
  ------------------
  |  |   50|   114k|#define ISNEWLINE(x)    (((x) == '\n') || (x) == '\r')
  |  |  ------------------
  |  |  |  Branch (50:26): [True: 348, False: 113k]
  |  |  |  Branch (50:43): [True: 5.64k, False: 108k]
  |  |  ------------------
  ------------------
  |  Branch (92:9): [True: 114k, False: 0]
  ------------------
   93|   108k|    s++;
   94|   108k|    if(++len > max)
  ------------------
  |  Branch (94:8): [True: 0, False: 108k]
  ------------------
   95|      0|      return STRE_BIG;
  ------------------
  |  |   29|      0|#define STRE_BIG      1
  ------------------
   96|   108k|  }
   97|  5.99k|  if(!len)
  ------------------
  |  Branch (97:6): [True: 20, False: 5.97k]
  ------------------
   98|     20|    return STRE_SHORT;
  ------------------
  |  |   30|     20|#define STRE_SHORT    2
  ------------------
   99|  5.97k|  out->str = *linep;
  100|  5.97k|  out->len = len;
  101|  5.97k|  *linep = s; /* point to the first byte after the word */
  102|  5.97k|  return STRE_OK;
  ------------------
  |  |   28|  5.97k|#define STRE_OK       0
  ------------------
  103|  5.99k|}
curlx_str_quotedword:
  109|    137|{
  110|    137|  const char *s = *linep;
  111|    137|  size_t len = 0;
  112|    137|  DEBUGASSERT(linep && *linep && out && max);
  ------------------
  |  | 1081|    137|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (112:3): [True: 0, False: 137]
  |  Branch (112:3): [True: 0, False: 0]
  |  Branch (112:3): [True: 0, False: 0]
  |  Branch (112:3): [True: 0, False: 0]
  |  Branch (112:3): [True: 137, False: 0]
  |  Branch (112:3): [True: 137, False: 0]
  |  Branch (112:3): [True: 137, False: 0]
  |  Branch (112:3): [True: 137, False: 0]
  ------------------
  113|       |
  114|    137|  curlx_str_init(out);
  115|    137|  if(*s != '\"')
  ------------------
  |  Branch (115:6): [True: 0, False: 137]
  ------------------
  116|      0|    return STRE_BEGQUOTE;
  ------------------
  |  |   31|      0|#define STRE_BEGQUOTE 3
  ------------------
  117|    137|  s++;
  118|  1.01k|  while(*s && (*s != '\"')) {
  ------------------
  |  Branch (118:9): [True: 961, False: 52]
  |  Branch (118:15): [True: 876, False: 85]
  ------------------
  119|    876|    if(*s == '\\' && s[1]) {
  ------------------
  |  Branch (119:8): [True: 44, False: 832]
  |  Branch (119:22): [True: 40, False: 4]
  ------------------
  120|     40|      s++;
  121|     40|      if(++len > max)
  ------------------
  |  Branch (121:10): [True: 0, False: 40]
  ------------------
  122|      0|        return STRE_BIG;
  ------------------
  |  |   29|      0|#define STRE_BIG      1
  ------------------
  123|     40|    }
  124|    876|    s++;
  125|    876|    if(++len > max)
  ------------------
  |  Branch (125:8): [True: 0, False: 876]
  ------------------
  126|      0|      return STRE_BIG;
  ------------------
  |  |   29|      0|#define STRE_BIG      1
  ------------------
  127|    876|  }
  128|    137|  if(*s != '\"')
  ------------------
  |  Branch (128:6): [True: 52, False: 85]
  ------------------
  129|     52|    return STRE_ENDQUOTE;
  ------------------
  |  |   32|     52|#define STRE_ENDQUOTE 4
  ------------------
  130|     85|  out->str = (*linep) + 1;
  131|     85|  out->len = len;
  132|     85|  *linep = s + 1;
  133|     85|  return STRE_OK;
  ------------------
  |  |   28|     85|#define STRE_OK       0
  ------------------
  134|    137|}
curlx_str_single:
  139|  26.5k|{
  140|  26.5k|  DEBUGASSERT(linep && *linep);
  ------------------
  |  | 1081|  26.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (140:3): [True: 0, False: 26.5k]
  |  Branch (140:3): [True: 0, False: 0]
  |  Branch (140:3): [True: 26.5k, False: 0]
  |  Branch (140:3): [True: 26.5k, False: 0]
  ------------------
  141|  26.5k|  if(**linep != byte)
  ------------------
  |  Branch (141:6): [True: 20.2k, False: 6.35k]
  ------------------
  142|  20.2k|    return STRE_BYTE;
  ------------------
  |  |   33|  20.2k|#define STRE_BYTE     5
  ------------------
  143|  6.35k|  (*linep)++; /* move over it */
  144|  6.35k|  return STRE_OK;
  ------------------
  |  |   28|  6.35k|#define STRE_OK       0
  ------------------
  145|  26.5k|}
curlx_str_singlespace:
  150|  7.82k|{
  151|  7.82k|  return curlx_str_single(linep, ' ');
  152|  7.82k|}
curlx_str_number:
  209|   181k|{
  210|   181k|  return str_num_base(linep, nump, max, 10);
  211|   181k|}
curlx_str_hex:
  216|    440|{
  217|    440|  return str_num_base(linep, nump, max, 16);
  218|    440|}
curlx_str_octal:
  223|  15.1k|{
  224|  15.1k|  return str_num_base(linep, nump, max, 8);
  225|  15.1k|}
curlx_str_numblanks:
  232|  2.41k|{
  233|  2.41k|  curlx_str_passblanks(str);
  234|  2.41k|  return curlx_str_number(str, num, CURL_OFF_T_MAX);
  ------------------
  |  |  594|  2.41k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  235|  2.41k|}
curlx_str_newline:
  240|  2.25k|{
  241|  2.25k|  DEBUGASSERT(linep && *linep);
  ------------------
  |  | 1081|  2.25k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (241:3): [True: 0, False: 2.25k]
  |  Branch (241:3): [True: 0, False: 0]
  |  Branch (241:3): [True: 2.25k, False: 0]
  |  Branch (241:3): [True: 2.25k, False: 0]
  ------------------
  242|  2.25k|  if(ISNEWLINE(**linep)) {
  ------------------
  |  |   50|  2.25k|#define ISNEWLINE(x)    (((x) == '\n') || (x) == '\r')
  |  |  ------------------
  |  |  |  Branch (50:26): [True: 23, False: 2.23k]
  |  |  |  Branch (50:43): [True: 2.21k, False: 12]
  |  |  ------------------
  ------------------
  243|  2.24k|    (*linep)++;
  244|  2.24k|    return STRE_OK; /* yessir */
  ------------------
  |  |   28|  2.24k|#define STRE_OK       0
  ------------------
  245|  2.24k|  }
  246|     12|  return STRE_NEWLINE;
  ------------------
  |  |   34|     12|#define STRE_NEWLINE  6
  ------------------
  247|  2.25k|}
curlx_str_casecompare:
  253|  1.51k|{
  254|  1.51k|  size_t clen = check ? strlen(check) : 0;
  ------------------
  |  Branch (254:17): [True: 1.51k, False: 0]
  ------------------
  255|  1.51k|  return ((str->len == clen) && curl_strnequal(str->str, check, clen));
  ------------------
  |  Branch (255:11): [True: 91, False: 1.42k]
  |  Branch (255:33): [True: 0, False: 91]
  ------------------
  256|  1.51k|}
curlx_str_nudge:
  272|  6.96k|{
  273|  6.96k|  if(num <= str->len) {
  ------------------
  |  Branch (273:6): [True: 6.96k, False: 0]
  ------------------
  274|  6.96k|    str->str += num;
  275|  6.96k|    str->len -= num;
  276|  6.96k|    return STRE_OK;
  ------------------
  |  |   28|  6.96k|#define STRE_OK       0
  ------------------
  277|  6.96k|  }
  278|      0|  return STRE_OVERFLOW;
  ------------------
  |  |   35|      0|#define STRE_OVERFLOW 7
  ------------------
  279|  6.96k|}
curlx_str_cspn:
  285|  2.81k|{
  286|  2.81k|  const char *s = *linep;
  287|  2.81k|  size_t len;
  288|  2.81k|  DEBUGASSERT(linep && *linep);
  ------------------
  |  | 1081|  2.81k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (288:3): [True: 0, False: 2.81k]
  |  Branch (288:3): [True: 0, False: 0]
  |  Branch (288:3): [True: 2.81k, False: 0]
  |  Branch (288:3): [True: 2.81k, False: 0]
  ------------------
  289|       |
  290|  2.81k|  len = strcspn(s, reject);
  291|  2.81k|  if(len) {
  ------------------
  |  Branch (291:6): [True: 2.28k, False: 530]
  ------------------
  292|  2.28k|    out->str = s;
  293|  2.28k|    out->len = len;
  294|  2.28k|    *linep = &s[len];
  295|  2.28k|    return STRE_OK;
  ------------------
  |  |   28|  2.28k|#define STRE_OK       0
  ------------------
  296|  2.28k|  }
  297|    530|  curlx_str_init(out);
  298|    530|  return STRE_SHORT;
  ------------------
  |  |   30|    530|#define STRE_SHORT    2
  ------------------
  299|  2.81k|}
curlx_str_trimblanks:
  303|  8.08k|{
  304|  15.0k|  while(out->len && ISBLANK(*out->str))
  ------------------
  |  |   45|  13.6k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 6.77k, False: 6.91k]
  |  |  |  Branch (45:38): [True: 184, False: 6.73k]
  |  |  ------------------
  ------------------
  |  Branch (304:9): [True: 13.6k, False: 1.35k]
  ------------------
  305|  6.96k|    curlx_str_nudge(out, 1);
  306|       |
  307|       |  /* trim trailing spaces and tabs */
  308|  8.46k|  while(out->len && ISBLANK(out->str[out->len - 1]))
  ------------------
  |  |   45|  7.10k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 277, False: 6.82k]
  |  |  |  Branch (45:38): [True: 96, False: 6.73k]
  |  |  ------------------
  ------------------
  |  Branch (308:9): [True: 7.10k, False: 1.35k]
  ------------------
  309|    373|    out->len--;
  310|  8.08k|}
curlx_str_passblanks:
  314|  28.5k|{
  315|  33.8k|  while(ISBLANK(**linep))
  ------------------
  |  |   45|  33.8k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 4.66k, False: 29.1k]
  |  |  |  Branch (45:38): [True: 619, False: 28.5k]
  |  |  ------------------
  ------------------
  316|  5.28k|    (*linep)++; /* move over it */
  317|  28.5k|}
strparse.c:str_num_base:
  172|   196k|{
  173|   196k|  curl_off_t num = 0;
  174|   196k|  const char *p;
  175|   196k|  int m = (base == 10) ? '9' :   /* the largest digit possible */
  ------------------
  |  Branch (175:11): [True: 181k, False: 15.5k]
  ------------------
  176|   196k|    (base == 16) ? 'f' : '7';
  ------------------
  |  Branch (176:5): [True: 440, False: 15.1k]
  ------------------
  177|   196k|  DEBUGASSERT(linep && *linep && nump);
  ------------------
  |  | 1081|   196k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (177:3): [True: 0, False: 196k]
  |  Branch (177:3): [True: 0, False: 0]
  |  Branch (177:3): [True: 0, False: 0]
  |  Branch (177:3): [True: 196k, False: 0]
  |  Branch (177:3): [True: 196k, False: 0]
  |  Branch (177:3): [True: 196k, False: 0]
  ------------------
  178|   196k|  DEBUGASSERT((base == 8) || (base == 10) || (base == 16));
  ------------------
  |  | 1081|   196k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (178:3): [True: 196k, False: 0]
  |  Branch (178:3): [True: 0, False: 0]
  |  Branch (178:3): [True: 0, False: 0]
  |  Branch (178:3): [True: 15.1k, False: 181k]
  |  Branch (178:3): [True: 181k, False: 440]
  |  Branch (178:3): [True: 440, False: 0]
  ------------------
  179|   196k|  DEBUGASSERT(max >= 0); /* mostly to catch SIZE_MAX, which is too large */
  ------------------
  |  | 1081|   196k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:3): [True: 0, False: 196k]
  |  Branch (179:3): [True: 196k, False: 0]
  ------------------
  180|   196k|  *nump = 0;
  181|   196k|  p = *linep;
  182|   196k|  if(!valid_digit(*p, m))
  ------------------
  |  |  156|   196k|  (((x) >= '0') && ((x) <= (m)) && curlx_hexasciitable[(x) - '0'])
  |  |  ------------------
  |  |  |  Branch (156:4): [True: 193k, False: 2.95k]
  |  |  |  Branch (156:20): [True: 49.9k, False: 143k]
  |  |  |  Branch (156:36): [True: 49.8k, False: 63]
  |  |  ------------------
  ------------------
  183|   146k|    return STRE_NO_NUM;
  ------------------
  |  |   36|   146k|#define STRE_NO_NUM   8
  ------------------
  184|  49.8k|  if(max < base) {
  ------------------
  |  Branch (184:6): [True: 0, False: 49.8k]
  ------------------
  185|       |    /* special-case low max scenario because check needs to be different */
  186|      0|    do {
  187|      0|      int n = curlx_hexval(*p++);
  ------------------
  |  |  112|      0|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  188|      0|      num = (num * base) + n;
  189|      0|      if(num > max)
  ------------------
  |  Branch (189:10): [True: 0, False: 0]
  ------------------
  190|      0|        return STRE_OVERFLOW;
  ------------------
  |  |   35|      0|#define STRE_OVERFLOW 7
  ------------------
  191|      0|    } while(valid_digit(*p, m));
  ------------------
  |  |  156|      0|  (((x) >= '0') && ((x) <= (m)) && curlx_hexasciitable[(x) - '0'])
  |  |  ------------------
  |  |  |  Branch (156:4): [True: 0, False: 0]
  |  |  |  Branch (156:20): [True: 0, False: 0]
  |  |  |  Branch (156:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  192|      0|  }
  193|  49.8k|  else {
  194|  95.5k|    do {
  195|  95.5k|      int n = curlx_hexval(*p++);
  ------------------
  |  |  112|  95.5k|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  196|  95.5k|      if(num > ((max - n) / base))
  ------------------
  |  Branch (196:10): [True: 253, False: 95.3k]
  ------------------
  197|    253|        return STRE_OVERFLOW;
  ------------------
  |  |   35|    253|#define STRE_OVERFLOW 7
  ------------------
  198|  95.3k|      num = (num * base) + n;
  199|  95.3k|    } while(valid_digit(*p, m));
  ------------------
  |  |  156|  95.3k|  (((x) >= '0') && ((x) <= (m)) && curlx_hexasciitable[(x) - '0'])
  |  |  ------------------
  |  |  |  Branch (156:4): [True: 48.6k, False: 46.7k]
  |  |  |  Branch (156:20): [True: 45.7k, False: 2.90k]
  |  |  |  Branch (156:36): [True: 45.6k, False: 15]
  |  |  ------------------
  ------------------
  200|  49.8k|  }
  201|  49.6k|  *nump = num;
  202|  49.6k|  *linep = p;
  203|  49.6k|  return STRE_OK;
  ------------------
  |  |   28|  49.6k|#define STRE_OK       0
  ------------------
  204|  49.8k|}

curlx_pnow:
   54|  1.91M|{
   55|       |  /*
   56|       |   * clock_gettime() is granted to be increased monotonically when the
   57|       |   * monotonic clock is queried. Time starting point is unspecified, it
   58|       |   * could be the system start-up time, the Epoch, or something else,
   59|       |   * in any case the time starting point does not change once that the
   60|       |   * system has started up.
   61|       |   */
   62|  1.91M|  struct timespec tsnow;
   63|       |
   64|       |  /*
   65|       |   * clock_gettime() may be defined by Apple's SDK as weak symbol thus
   66|       |   * code compiles but fails during runtime if clock_gettime() is
   67|       |   * called on unsupported OS version.
   68|       |   */
   69|       |#if defined(__APPLE__) && defined(HAVE_BUILTIN_AVAILABLE) && \
   70|       |  (HAVE_BUILTIN_AVAILABLE == 1)
   71|       |  bool have_clock_gettime = FALSE;
   72|       |  if(__builtin_available(macOS 10.12, iOS 10, tvOS 10, watchOS 3, *))
   73|       |    have_clock_gettime = TRUE;
   74|       |#endif
   75|       |
   76|  1.91M|#ifdef HAVE_CLOCK_GETTIME_MONOTONIC_RAW
   77|  1.91M|  if(
   78|       |#if defined(__APPLE__) && defined(HAVE_BUILTIN_AVAILABLE) && \
   79|       |  (HAVE_BUILTIN_AVAILABLE == 1)
   80|       |    have_clock_gettime &&
   81|       |#endif
   82|  1.91M|    (clock_gettime(CLOCK_MONOTONIC_RAW, &tsnow) == 0)) {
  ------------------
  |  Branch (82:5): [True: 1.91M, False: 0]
  ------------------
   83|  1.91M|    pnow->tv_sec = tsnow.tv_sec;
   84|  1.91M|    pnow->tv_usec = (int)(tsnow.tv_nsec / 1000);
   85|  1.91M|  }
   86|      0|  else
   87|      0|#endif
   88|       |
   89|      0|  if(
   90|       |#if defined(__APPLE__) && defined(HAVE_BUILTIN_AVAILABLE) && \
   91|       |  (HAVE_BUILTIN_AVAILABLE == 1)
   92|       |    have_clock_gettime &&
   93|       |#endif
   94|      0|    (clock_gettime(CLOCK_MONOTONIC, &tsnow) == 0)) {
  ------------------
  |  Branch (94:5): [True: 0, False: 0]
  ------------------
   95|      0|    pnow->tv_sec = tsnow.tv_sec;
   96|      0|    pnow->tv_usec = (int)(tsnow.tv_nsec / 1000);
   97|      0|  }
   98|       |  /*
   99|       |   * Even when the configure process has truly detected monotonic clock
  100|       |   * availability, it might happen that it is not actually available at
  101|       |   * runtime. When this occurs, fallback to other time source.
  102|       |   */
  103|      0|#ifdef HAVE_GETTIMEOFDAY
  104|      0|  else {
  105|      0|    struct timeval now;
  106|      0|    (void)gettimeofday(&now, NULL);
  107|      0|    pnow->tv_sec = now.tv_sec;
  108|      0|    pnow->tv_usec = (int)now.tv_usec;
  109|      0|  }
  110|       |#else
  111|       |  else {
  112|       |    pnow->tv_sec = time(NULL);
  113|       |    pnow->tv_usec = 0;
  114|       |  }
  115|       |#endif
  116|  1.91M|}
curlx_ptimediff_ms:
  190|  1.34M|{
  191|  1.34M|  timediff_t diff = (timediff_t)newer->tv_sec - older->tv_sec;
  192|  1.34M|  if(diff >= (TIMEDIFF_T_MAX / 1000))
  ------------------
  |  |   33|  1.34M|#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
  |  |  ------------------
  |  |  |  |  594|  1.34M|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  ------------------
  ------------------
  |  Branch (192:6): [True: 0, False: 1.34M]
  ------------------
  193|      0|    return TIMEDIFF_T_MAX;
  ------------------
  |  |   33|      0|#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
  |  |  ------------------
  |  |  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  ------------------
  ------------------
  194|  1.34M|  else if(diff <= (TIMEDIFF_T_MIN / 1000))
  ------------------
  |  |   34|  1.34M|#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
  |  |  ------------------
  |  |  |  |  596|  1.34M|#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  594|  1.34M|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (194:11): [True: 0, False: 1.34M]
  ------------------
  195|      0|    return TIMEDIFF_T_MIN;
  ------------------
  |  |   34|      0|#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
  |  |  ------------------
  |  |  |  |  596|      0|#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  196|  1.34M|  return (diff * 1000) + ((newer->tv_usec - older->tv_usec) / 1000);
  197|  1.34M|}
curlx_ptimediff_us:
  225|  1.79M|{
  226|  1.79M|  timediff_t diff = (timediff_t)newer->tv_sec - older->tv_sec;
  227|  1.79M|  if(diff >= (TIMEDIFF_T_MAX / 1000000))
  ------------------
  |  |   33|  1.79M|#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
  |  |  ------------------
  |  |  |  |  594|  1.79M|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  ------------------
  ------------------
  |  Branch (227:6): [True: 0, False: 1.79M]
  ------------------
  228|      0|    return TIMEDIFF_T_MAX;
  ------------------
  |  |   33|      0|#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
  |  |  ------------------
  |  |  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  ------------------
  ------------------
  229|  1.79M|  else if(diff <= (TIMEDIFF_T_MIN / 1000000))
  ------------------
  |  |   34|  1.79M|#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
  |  |  ------------------
  |  |  |  |  596|  1.79M|#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  594|  1.79M|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (229:11): [True: 0, False: 1.79M]
  ------------------
  230|      0|    return TIMEDIFF_T_MIN;
  ------------------
  |  |   34|      0|#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
  |  |  ------------------
  |  |  |  |  596|      0|#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|  1.79M|  return (diff * 1000000) + newer->tv_usec - older->tv_usec;
  232|  1.79M|}

curlx_uztosi:
   73|  7.28k|{
   74|       |#ifdef __INTEL_COMPILER
   75|       |#pragma warning(push)
   76|       |#pragma warning(disable:810) /* conversion may lose significant bits */
   77|       |#endif
   78|       |
   79|  7.28k|  DEBUGASSERT(uznum <= (size_t)CURL_MASK_SINT);
  ------------------
  |  | 1081|  7.28k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (79:3): [True: 0, False: 7.28k]
  |  Branch (79:3): [True: 7.28k, False: 0]
  ------------------
   80|  7.28k|  return (int)(uznum & (size_t)CURL_MASK_SINT);
  ------------------
  |  |   44|  7.28k|#define CURL_MASK_SINT    (CURL_MASK_UINT >> 1)
  |  |  ------------------
  |  |  |  |   43|  7.28k|#define CURL_MASK_UINT    ((unsigned int)~0)
  |  |  ------------------
  ------------------
   81|       |
   82|       |#ifdef __INTEL_COMPILER
   83|       |#pragma warning(pop)
   84|       |#endif
   85|  7.28k|}
curlx_sotouz:
  210|    149|{
  211|       |#ifdef __INTEL_COMPILER
  212|       |#pragma warning(push)
  213|       |#pragma warning(disable:810) /* conversion may lose significant bits */
  214|       |#endif
  215|       |
  216|    149|  DEBUGASSERT(sonum >= 0);
  ------------------
  |  | 1081|    149|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (216:3): [True: 0, False: 149]
  |  Branch (216:3): [True: 149, False: 0]
  ------------------
  217|    149|  return (size_t)(sonum & (curl_off_t)CURL_MASK_USIZE_T);
  ------------------
  |  |   48|    149|#define CURL_MASK_USIZE_T ((size_t)~0)
  ------------------
  218|       |
  219|       |#ifdef __INTEL_COMPILER
  220|       |#pragma warning(pop)
  221|       |#endif
  222|    149|}
curlx_uitouz:
  282|   120k|{
  283|   120k|  return (size_t)uinum;
  284|   120k|}
curlx_sotouz_range:
  287|  8.15k|{
  288|  8.15k|  if(sonum < 0)
  ------------------
  |  Branch (288:6): [True: 0, False: 8.15k]
  ------------------
  289|      0|    return uzmin;
  290|       |#if SIZEOF_CURL_OFF_T > SIZEOF_SIZE_T
  291|       |  if(sonum > SIZE_MAX)
  292|       |    return uzmax;
  293|       |#endif
  294|  8.15k|  return CURLMIN(CURLMAX((size_t)sonum, uzmin), uzmax);
  ------------------
  |  | 1287|  16.3k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 7.73k, False: 421]
  |  |  |  Branch (1287:25): [True: 6.66k, False: 1.48k]
  |  |  |  Branch (1287:37): [True: 6.24k, False: 1.48k]
  |  |  ------------------
  ------------------
  295|  8.15k|}
curlx_sztouz:
  298|   164k|{
  299|   164k|  if(sznum < 0) {
  ------------------
  |  Branch (299:6): [True: 118k, False: 46.2k]
  ------------------
  300|   118k|    *puznum = 0;
  301|   118k|    return FALSE;
  ------------------
  |  | 1058|   118k|#define FALSE false
  ------------------
  302|   118k|  }
  303|  46.2k|  *puznum = (size_t)sznum;
  304|       |  return TRUE;
  ------------------
  |  | 1055|  46.2k|#define TRUE true
  ------------------
  305|   164k|}
curlx_uztoso:
  335|  6.93k|{
  336|  6.93k|#if SIZEOF_SIZE_T >= SIZEOF_CURL_OFF_T
  337|  6.93k|  if(uznum > (size_t)CURL_OFF_T_MAX)
  ------------------
  |  |  594|  6.93k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (337:6): [True: 0, False: 6.93k]
  ------------------
  338|      0|    return CURL_OFF_T_MAX;
  ------------------
  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  339|  6.93k|#endif
  340|  6.93k|  return (curl_off_t)uznum;
  341|  6.93k|}

Curl_cw_out_is_paused:
  459|  44.8k|{
  460|  44.8k|  struct Curl_cwriter *cw_out;
  461|  44.8k|  struct cw_out_ctx *ctx;
  462|       |
  463|  44.8k|  cw_out = Curl_cwriter_get_by_type(data, &Curl_cwt_out);
  464|  44.8k|  if(!cw_out)
  ------------------
  |  Branch (464:6): [True: 0, False: 44.8k]
  ------------------
  465|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  466|       |
  467|  44.8k|  ctx = (struct cw_out_ctx *)cw_out;
  468|  44.8k|  return (bool)ctx->paused;
  469|  44.8k|}
Curl_cw_out_done:
  510|  10.3k|{
  511|  10.3k|  struct Curl_cwriter *cw_out;
  512|  10.3k|  CURLcode result = CURLE_OK;
  513|       |
  514|  10.3k|  cw_out = Curl_cwriter_get_by_type(data, &Curl_cwt_out);
  515|  10.3k|  if(cw_out) {
  ------------------
  |  Branch (515:6): [True: 10.3k, False: 0]
  ------------------
  516|  10.3k|    CURL_TRC_WRITE(data, "[OUT] done");
  ------------------
  |  |  158|  10.3k|  do {                                                     \
  |  |  159|  10.3k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  10.3k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  20.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 10.3k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 10.3k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  20.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.3k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  10.3k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  517|  10.3k|    result = Curl_cw_pause_flush(data);
  518|  10.3k|    if(!result)
  ------------------
  |  Branch (518:8): [True: 10.3k, False: 0]
  ------------------
  519|  10.3k|      result = cw_out_flush(data, cw_out, TRUE);
  ------------------
  |  | 1055|  10.3k|#define TRUE true
  ------------------
  520|  10.3k|  }
  521|  10.3k|  return result;
  522|  10.3k|}
cw-out.c:cw_out_init:
  106|  10.3k|{
  107|  10.3k|  struct cw_out_ctx *ctx = writer->ctx;
  108|  10.3k|  (void)data;
  109|       |  ctx->buf = NULL;
  110|  10.3k|  return CURLE_OK;
  111|  10.3k|}
cw-out.c:cw_out_write:
  426|  41.5k|{
  427|  41.5k|  struct cw_out_ctx *ctx = writer->ctx;
  428|  41.5k|  CURLcode result;
  429|  41.5k|  bool flush_all = !!(type & CLIENTWRITE_EOS);
  ------------------
  |  |   49|  41.5k|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  430|       |
  431|  41.5k|  if((type & CLIENTWRITE_BODY) ||
  ------------------
  |  |   42|  41.5k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (431:6): [True: 5.21k, False: 36.3k]
  ------------------
  432|  36.3k|     ((type & CLIENTWRITE_HEADER) && data->set.include_header)) {
  ------------------
  |  |   44|  36.3k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
  |  Branch (432:7): [True: 36.3k, False: 0]
  |  Branch (432:38): [True: 739, False: 35.6k]
  ------------------
  433|  5.95k|    cw_out_type otype = (!blen && (type & CLIENTWRITE_0LEN)) ?
  ------------------
  |  |   50|  3.33k|#define CLIENTWRITE_0LEN    (1 << 8) /* write even 0-length buffers */
  ------------------
  |  Branch (433:26): [True: 3.33k, False: 2.62k]
  |  Branch (433:35): [True: 3.07k, False: 255]
  ------------------
  434|  3.07k|                        CW_OUT_BODY_0LEN : CW_OUT_BODY;
  435|  5.95k|    result = cw_out_do_write(ctx, data, otype, flush_all, buf, blen);
  436|  5.95k|    if(result)
  ------------------
  |  Branch (436:8): [True: 0, False: 5.95k]
  ------------------
  437|      0|      return result;
  438|  5.95k|  }
  439|       |
  440|  41.5k|  if(type & (CLIENTWRITE_HEADER | CLIENTWRITE_INFO)) {
  ------------------
  |  |   44|  41.5k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
                if(type & (CLIENTWRITE_HEADER | CLIENTWRITE_INFO)) {
  ------------------
  |  |   43|  41.5k|#define CLIENTWRITE_INFO    (1 << 1) /* meta information, not a HEADER */
  ------------------
  |  Branch (440:6): [True: 36.3k, False: 5.21k]
  ------------------
  441|  36.3k|    result = cw_out_do_write(ctx, data, CW_OUT_HDS, flush_all, buf, blen);
  442|  36.3k|    if(result)
  ------------------
  |  Branch (442:8): [True: 0, False: 36.3k]
  ------------------
  443|      0|      return result;
  444|  36.3k|  }
  445|       |
  446|  41.5k|  return CURLE_OK;
  447|  41.5k|}
cw-out.c:cw_out_do_write:
  376|  42.3k|{
  377|  42.3k|  CURLcode result = CURLE_OK;
  378|       |
  379|       |  /* if we have buffered data and it is a different type than what
  380|       |   * we are writing now, try to flush all */
  381|  42.3k|  if(ctx->buf && ctx->buf->type != otype) {
  ------------------
  |  Branch (381:6): [True: 0, False: 42.3k]
  |  Branch (381:18): [True: 0, False: 0]
  ------------------
  382|      0|    result = cw_out_flush_chain(ctx, data, &ctx->buf, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  383|      0|    if(result)
  ------------------
  |  Branch (383:8): [True: 0, False: 0]
  ------------------
  384|      0|      goto out;
  385|      0|  }
  386|       |
  387|  42.3k|  if(ctx->buf) {
  ------------------
  |  Branch (387:6): [True: 0, False: 42.3k]
  ------------------
  388|       |    /* still have buffered data, append and flush */
  389|      0|    result = cw_out_append(ctx, data, otype, buf, blen);
  390|      0|    if(result)
  ------------------
  |  Branch (390:8): [True: 0, False: 0]
  ------------------
  391|      0|      goto out;
  392|      0|    result = cw_out_flush_chain(ctx, data, &ctx->buf, flush_all);
  393|      0|    if(result)
  ------------------
  |  Branch (393:8): [True: 0, False: 0]
  ------------------
  394|      0|      goto out;
  395|      0|  }
  396|  42.3k|  else {
  397|       |    /* nothing buffered, try direct write */
  398|  42.3k|    size_t consumed;
  399|  42.3k|    result = cw_out_ptr_flush(ctx, data, otype, flush_all,
  400|  42.3k|                              buf, blen, &consumed);
  401|  42.3k|    if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (401:8): [True: 0, False: 42.3k]
  |  Branch (401:18): [True: 0, False: 0]
  ------------------
  402|      0|      return result;
  403|  42.3k|    result = CURLE_OK;
  404|  42.3k|    if(consumed < blen) {
  ------------------
  |  Branch (404:8): [True: 0, False: 42.3k]
  ------------------
  405|       |      /* did not write all, append the rest */
  406|      0|      result = cw_out_append(ctx, data, otype,
  407|      0|                             buf + consumed, blen - consumed);
  408|      0|      if(result)
  ------------------
  |  Branch (408:10): [True: 0, False: 0]
  ------------------
  409|      0|        goto out;
  410|      0|    }
  411|  42.3k|  }
  412|       |
  413|  42.3k|out:
  414|  42.3k|  if(result) {
  ------------------
  |  Branch (414:6): [True: 0, False: 42.3k]
  ------------------
  415|       |    /* We do not want to invoked client callbacks a second time after
  416|       |     * encountering an error. See issue #13337 */
  417|       |    ctx->errored = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  418|      0|    cw_out_bufs_free(ctx);
  419|      0|  }
  420|  42.3k|  return result;
  421|  42.3k|}
cw-out.c:cw_out_flush_chain:
  311|  10.3k|{
  312|  10.3k|  struct cw_out_buf *cwbuf = *pcwbuf;
  313|  10.3k|  CURLcode result;
  314|       |
  315|  10.3k|  if(!cwbuf)
  ------------------
  |  Branch (315:6): [True: 10.3k, False: 0]
  ------------------
  316|  10.3k|    return CURLE_OK;
  317|      0|  if(ctx->paused)
  ------------------
  |  Branch (317:6): [True: 0, False: 0]
  ------------------
  318|      0|    return CURLE_OK;
  319|       |
  320|       |  /* write the end of the chain until it blocks or gets empty */
  321|      0|  while(cwbuf->next) {
  ------------------
  |  Branch (321:9): [True: 0, False: 0]
  ------------------
  322|      0|    struct cw_out_buf **plast = &cwbuf->next;
  323|      0|    while((*plast)->next)
  ------------------
  |  Branch (323:11): [True: 0, False: 0]
  ------------------
  324|      0|      plast = &(*plast)->next;
  325|      0|    result = cw_out_flush_chain(ctx, data, plast, flush_all);
  326|      0|    if(result)
  ------------------
  |  Branch (326:8): [True: 0, False: 0]
  ------------------
  327|      0|      return result;
  328|      0|    if(*plast) {
  ------------------
  |  Branch (328:8): [True: 0, False: 0]
  ------------------
  329|       |      /* could not write last, paused again? */
  330|      0|      DEBUGASSERT(ctx->paused);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (330:7): [True: 0, False: 0]
  |  Branch (330:7): [True: 0, False: 0]
  ------------------
  331|      0|      return CURLE_OK;
  332|      0|    }
  333|      0|  }
  334|       |
  335|      0|  result = cw_out_buf_flush(ctx, data, cwbuf, flush_all);
  336|      0|  if(result)
  ------------------
  |  Branch (336:6): [True: 0, False: 0]
  ------------------
  337|      0|    return result;
  338|      0|  if(!curlx_dyn_len(&cwbuf->b)) {
  ------------------
  |  Branch (338:6): [True: 0, False: 0]
  ------------------
  339|      0|    cw_out_buf_free(cwbuf);
  340|       |    *pcwbuf = NULL;
  341|      0|  }
  342|      0|  return CURLE_OK;
  343|      0|}
cw-out.c:cw_out_ptr_flush:
  227|  42.3k|{
  228|  42.3k|  curl_write_callback wcb = NULL;
  229|  42.3k|  void *wcb_data;
  230|  42.3k|  size_t max_write, min_write;
  231|  42.3k|  size_t wlen, nwritten = 0;
  232|  42.3k|  CURLcode result = CURLE_OK;
  233|       |
  234|       |  /* If we errored once, we do not invoke the client callback again */
  235|  42.3k|  if(ctx->errored)
  ------------------
  |  Branch (235:6): [True: 0, False: 42.3k]
  ------------------
  236|      0|    return CURLE_WRITE_ERROR;
  237|       |
  238|       |  /* write callbacks may get NULLed by the client between calls. */
  239|  42.3k|  cw_get_writefunc(data, otype, &wcb, &wcb_data, &max_write, &min_write);
  240|  42.3k|  if(!wcb) {
  ------------------
  |  Branch (240:6): [True: 0, False: 42.3k]
  ------------------
  241|      0|    *pconsumed = blen;
  242|      0|    return CURLE_OK;
  243|      0|  }
  244|       |
  245|  42.3k|  *pconsumed = 0;
  246|  42.3k|  if(otype == CW_OUT_BODY_0LEN) {
  ------------------
  |  Branch (246:6): [True: 3.07k, False: 39.2k]
  ------------------
  247|  3.07k|    DEBUGASSERT(!blen);
  ------------------
  |  | 1081|  3.07k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (247:5): [True: 0, False: 3.07k]
  |  Branch (247:5): [True: 3.07k, False: 0]
  ------------------
  248|  3.07k|    return cw_out_cb_write(ctx, data, wcb, wcb_data, otype,
  249|  3.07k|                           buf, blen, &nwritten);
  250|  3.07k|  }
  251|  39.2k|  else {
  252|  78.2k|    while(blen && !ctx->paused) {
  ------------------
  |  Branch (252:11): [True: 38.9k, False: 39.2k]
  |  Branch (252:19): [True: 38.9k, False: 0]
  ------------------
  253|  38.9k|      if(!flush_all && blen < min_write)
  ------------------
  |  Branch (253:10): [True: 38.9k, False: 0]
  |  Branch (253:24): [True: 0, False: 38.9k]
  ------------------
  254|      0|        break;
  255|  38.9k|      wlen = max_write ? CURLMIN(blen, max_write) : blen;
  ------------------
  |  | 1287|  2.62k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 2.62k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (255:14): [True: 2.62k, False: 36.3k]
  ------------------
  256|  38.9k|      if(otype == CW_OUT_BODY)
  ------------------
  |  Branch (256:10): [True: 2.62k, False: 36.3k]
  ------------------
  257|  2.62k|        result = Curl_pgrs_deliver_check(data, wlen);
  258|  38.9k|      if(!result)
  ------------------
  |  Branch (258:10): [True: 38.9k, False: 0]
  ------------------
  259|  38.9k|        result = cw_out_cb_write(ctx, data, wcb, wcb_data, otype,
  260|  38.9k|                                 buf, wlen, &nwritten);
  261|  38.9k|      if(result)
  ------------------
  |  Branch (261:10): [True: 0, False: 38.9k]
  ------------------
  262|      0|        return result;
  263|  38.9k|      if(otype == CW_OUT_BODY)
  ------------------
  |  Branch (263:10): [True: 2.62k, False: 36.3k]
  ------------------
  264|  2.62k|        Curl_pgrs_deliver_inc(data, nwritten);
  265|  38.9k|      *pconsumed += nwritten;
  266|  38.9k|      blen -= nwritten;
  267|  38.9k|      buf += nwritten;
  268|  38.9k|    }
  269|  39.2k|  }
  270|  39.2k|  return CURLE_OK;
  271|  42.3k|}
cw-out.c:cw_get_writefunc:
  147|  42.3k|{
  148|  42.3k|  switch(otype) {
  149|  2.87k|  case CW_OUT_BODY:
  ------------------
  |  Branch (149:3): [True: 2.87k, False: 39.4k]
  ------------------
  150|  5.95k|  case CW_OUT_BODY_0LEN:
  ------------------
  |  Branch (150:3): [True: 3.07k, False: 39.2k]
  ------------------
  151|  5.95k|    *pwcb = data->set.fwrite_func;
  152|  5.95k|    *pwcb_data = data->set.out;
  153|  5.95k|    *pmax_write = CURL_MAX_WRITE_SIZE;
  ------------------
  |  |  265|  5.95k|#define CURL_MAX_WRITE_SIZE 16384
  ------------------
  154|       |    /* if we ever want buffering of BODY output, we can set `min_write`
  155|       |     * the preferred size. The default should always be to pass data
  156|       |     * to the client as it comes without delay */
  157|  5.95k|    *pmin_write = 0;
  158|  5.95k|    break;
  159|  36.3k|  case CW_OUT_HDS:
  ------------------
  |  Branch (159:3): [True: 36.3k, False: 5.95k]
  ------------------
  160|  36.3k|    *pwcb = data->set.fwrite_header ? data->set.fwrite_header :
  ------------------
  |  Branch (160:13): [True: 36.3k, False: 0]
  ------------------
  161|  36.3k|             (data->set.writeheader ? data->set.fwrite_func : NULL);
  ------------------
  |  Branch (161:15): [True: 0, False: 0]
  ------------------
  162|  36.3k|    *pwcb_data = data->set.writeheader;
  163|  36.3k|    *pmax_write = 0; /* do not chunk-write headers, write them as they are */
  164|  36.3k|    *pmin_write = 0;
  165|  36.3k|    break;
  166|      0|  default:
  ------------------
  |  Branch (166:3): [True: 0, False: 42.3k]
  ------------------
  167|      0|    *pwcb = NULL;
  168|      0|    *pwcb_data = NULL;
  169|      0|    *pmax_write = CURL_MAX_WRITE_SIZE;
  ------------------
  |  |  265|      0|#define CURL_MAX_WRITE_SIZE 16384
  ------------------
  170|      0|    *pmin_write = 0;
  171|  42.3k|  }
  172|  42.3k|}
cw-out.c:cw_out_cb_write:
  181|  42.0k|{
  182|  42.0k|  size_t nwritten;
  183|  42.0k|  CURLcode result;
  184|       |
  185|  42.0k|  NOVERBOSE((void)otype);
  ------------------
  |  | 1619|  42.0k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1180|  42.0k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1180:35): [Folded, False: 42.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|       |
  187|  42.0k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  42.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (187:3): [True: 0, False: 42.0k]
  |  Branch (187:3): [True: 42.0k, False: 0]
  ------------------
  188|  42.0k|  *pnwritten = 0;
  189|  42.0k|  Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|  42.0k|#define TRUE true
  ------------------
  190|  42.0k|  nwritten = wcb((char *)CURL_UNCONST(buf), 1, blen, wcb_data);
  ------------------
  |  |  866|  42.0k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  191|  42.0k|  Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|  42.0k|#define FALSE false
  ------------------
  192|  42.0k|  CURL_TRC_WRITE(data, "[OUT] wrote %zu %s bytes -> %zu",
  ------------------
  |  |  158|  42.0k|  do {                                                     \
  |  |  159|  42.0k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  42.0k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  84.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 42.0k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 42.0k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  84.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  42.0k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  42.0k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (160:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  161|  42.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 42.0k]
  |  |  ------------------
  ------------------
  193|  42.0k|                 blen, (otype == CW_OUT_HDS) ? "header" : "body",
  194|  42.0k|                 nwritten);
  195|  42.0k|  if(nwritten == CURL_WRITEFUNC_PAUSE) {
  ------------------
  |  |  277|  42.0k|#define CURL_WRITEFUNC_PAUSE 0x10000001
  ------------------
  |  Branch (195:6): [True: 0, False: 42.0k]
  ------------------
  196|      0|    if(data->conn->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  215|      0|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (196:8): [True: 0, False: 0]
  ------------------
  197|       |      /* Protocols that work without network cannot be paused. This is
  198|       |         actually only file:// now, and it cannot pause since the transfer is
  199|       |         not done using the "normal" procedure. */
  200|      0|      failf(data, "Write callback asked for PAUSE when not supported");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  201|      0|      return CURLE_WRITE_ERROR;
  202|      0|    }
  203|      0|    ctx->paused = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  204|      0|    CURL_TRC_WRITE(data, "[OUT] PAUSE requested by client");
  ------------------
  |  |  158|      0|  do {                                                     \
  |  |  159|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      0|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  205|      0|    result = Curl_xfer_pause_recv(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  206|      0|    return result ? result : CURLE_AGAIN;
  ------------------
  |  Branch (206:12): [True: 0, False: 0]
  ------------------
  207|      0|  }
  208|  42.0k|  else if(nwritten == CURL_WRITEFUNC_ERROR) {
  ------------------
  |  |  281|  42.0k|#define CURL_WRITEFUNC_ERROR 0xFFFFFFFF
  ------------------
  |  Branch (208:11): [True: 0, False: 42.0k]
  ------------------
  209|      0|    failf(data, "client returned ERROR on write of %zu bytes", blen);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  210|      0|    return CURLE_WRITE_ERROR;
  211|      0|  }
  212|  42.0k|  else if(nwritten != blen) {
  ------------------
  |  Branch (212:11): [True: 0, False: 42.0k]
  ------------------
  213|      0|    failf(data, "Failure writing output to destination, "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  214|      0|          "passed %zu returned %zu", blen, nwritten);
  215|      0|    return CURLE_WRITE_ERROR;
  216|      0|  }
  217|  42.0k|  *pnwritten = nwritten;
  218|  42.0k|  return CURLE_OK;
  219|  42.0k|}
cw-out.c:cw_out_bufs_free:
  114|  10.3k|{
  115|  10.3k|  while(ctx->buf) {
  ------------------
  |  Branch (115:9): [True: 0, False: 10.3k]
  ------------------
  116|      0|    struct cw_out_buf *next = ctx->buf->next;
  117|      0|    cw_out_buf_free(ctx->buf);
  118|      0|    ctx->buf = next;
  119|      0|  }
  120|  10.3k|}
cw-out.c:cw_out_close:
  134|  10.3k|{
  135|  10.3k|  struct cw_out_ctx *ctx = writer->ctx;
  136|       |
  137|  10.3k|  (void)data;
  138|  10.3k|  cw_out_bufs_free(ctx);
  139|  10.3k|}
cw-out.c:cw_out_flush:
  474|  10.3k|{
  475|  10.3k|  struct cw_out_ctx *ctx = (struct cw_out_ctx *)cw_out;
  476|  10.3k|  CURLcode result = CURLE_OK;
  477|       |
  478|  10.3k|  if(ctx->errored)
  ------------------
  |  Branch (478:6): [True: 0, False: 10.3k]
  ------------------
  479|      0|    return CURLE_WRITE_ERROR;
  480|  10.3k|  if(ctx->paused)
  ------------------
  |  Branch (480:6): [True: 0, False: 10.3k]
  ------------------
  481|      0|    return CURLE_OK;  /* not doing it */
  482|       |
  483|  10.3k|  result = cw_out_flush_chain(ctx, data, &ctx->buf, flush_all);
  484|  10.3k|  if(result) {
  ------------------
  |  Branch (484:6): [True: 0, False: 10.3k]
  ------------------
  485|      0|    ctx->errored = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  486|      0|    cw_out_bufs_free(ctx);
  487|      0|    return result;
  488|      0|  }
  489|  10.3k|  return result;
  490|  10.3k|}

Curl_cw_pause_flush:
  216|  10.3k|{
  217|  10.3k|  struct Curl_cwriter *cw_pause;
  218|  10.3k|  CURLcode result = CURLE_OK;
  219|       |
  220|  10.3k|  cw_pause = Curl_cwriter_get_by_type(data, &Curl_cwt_pause);
  221|  10.3k|  if(cw_pause)
  ------------------
  |  Branch (221:6): [True: 10.3k, False: 0]
  ------------------
  222|  10.3k|    result = cw_pause_flush(data, cw_pause);
  223|       |
  224|  10.3k|  return result;
  225|  10.3k|}
cw-pause.c:cw_pause_init:
   75|  10.3k|{
   76|  10.3k|  struct cw_pause_ctx *ctx = writer->ctx;
   77|  10.3k|  (void)data;
   78|       |  ctx->buf = NULL;
   79|  10.3k|  return CURLE_OK;
   80|  10.3k|}
cw-pause.c:cw_pause_write:
  145|  39.6k|{
  146|  39.6k|  struct cw_pause_ctx *ctx = writer->ctx;
  147|  39.6k|  CURLcode result = CURLE_OK;
  148|  39.6k|  size_t wlen = 0;
  149|  39.6k|  bool decoding = Curl_cwriter_is_content_decoding(data);
  150|       |
  151|  39.6k|  if(ctx->buf && !Curl_cwriter_is_paused(data)) {
  ------------------
  |  Branch (151:6): [True: 0, False: 39.6k]
  |  Branch (151:18): [True: 0, False: 0]
  ------------------
  152|      0|    result = cw_pause_flush(data, writer);
  153|      0|    if(result)
  ------------------
  |  Branch (153:8): [True: 0, False: 0]
  ------------------
  154|      0|      return result;
  155|      0|  }
  156|       |
  157|  39.6k|  while(!ctx->buf && !Curl_cwriter_is_paused(data)) {
  ------------------
  |  Branch (157:9): [True: 39.6k, False: 0]
  |  Branch (157:22): [True: 39.6k, False: 0]
  ------------------
  158|  39.6k|    int wtype = type;
  159|  39.6k|    DEBUGASSERT(!ctx->buf);
  ------------------
  |  | 1081|  39.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (159:5): [True: 0, False: 39.6k]
  |  Branch (159:5): [True: 39.6k, False: 0]
  ------------------
  160|       |    /* content decoding might blow up size considerably, write smaller
  161|       |     * chunks to make pausing need buffer less. */
  162|  39.6k|    wlen = (decoding && (type & CLIENTWRITE_BODY)) ?
  ------------------
  |  |   42|  2.35k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (162:13): [True: 2.35k, False: 37.3k]
  |  Branch (162:25): [True: 2.20k, False: 143]
  ------------------
  163|  37.4k|           CURLMIN(blen, CW_PAUSE_DEC_WRITE_CHUNK) : blen;
  ------------------
  |  | 1287|  2.20k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 2.18k, False: 26]
  |  |  ------------------
  ------------------
  164|  39.6k|    if(wlen < blen)
  ------------------
  |  Branch (164:8): [True: 25, False: 39.6k]
  ------------------
  165|     25|      wtype &= ~CLIENTWRITE_EOS;
  ------------------
  |  |   49|     25|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  166|  39.6k|    result = Curl_cwriter_write(data, writer->next, wtype, buf, wlen);
  167|  39.6k|    CURL_TRC_WRITE(data, "[PAUSE] writing %zu/%zu bytes of type %x -> %d",
  ------------------
  |  |  158|  39.6k|  do {                                                     \
  |  |  159|  39.6k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  39.6k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  79.3k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 39.6k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 39.6k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  79.3k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  39.6k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  39.6k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  39.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 39.6k]
  |  |  ------------------
  ------------------
  168|  39.6k|                   wlen, blen, wtype, result);
  169|  39.6k|    if(result)
  ------------------
  |  Branch (169:8): [True: 188, False: 39.4k]
  ------------------
  170|    188|      return result;
  171|  39.4k|    buf += wlen;
  172|  39.4k|    blen -= wlen;
  173|  39.4k|    if(!blen)
  ------------------
  |  Branch (173:8): [True: 39.4k, False: 23]
  ------------------
  174|  39.4k|      return result;
  175|  39.4k|  }
  176|       |
  177|      0|  do {
  178|      0|    size_t nwritten = 0;
  179|      0|    if(ctx->buf && (ctx->buf->type == type) && (type & CLIENTWRITE_BODY)) {
  ------------------
  |  |   42|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (179:8): [True: 0, False: 0]
  |  Branch (179:20): [True: 0, False: 0]
  |  Branch (179:48): [True: 0, False: 0]
  ------------------
  180|       |      /* same type and body, append to current buffer which has a soft
  181|       |       * limit and should take everything up to OOM. */
  182|      0|      result = Curl_bufq_cwrite(&ctx->buf->b, buf, blen, &nwritten);
  183|      0|    }
  184|      0|    else {
  185|       |      /* Need a new buf, type changed */
  186|      0|      struct cw_pause_buf *cwbuf = cw_pause_buf_create(type, blen);
  187|      0|      if(!cwbuf)
  ------------------
  |  Branch (187:10): [True: 0, False: 0]
  ------------------
  188|      0|        return CURLE_OUT_OF_MEMORY;
  189|      0|      cwbuf->next = ctx->buf;
  190|      0|      ctx->buf = cwbuf;
  191|      0|      result = Curl_bufq_cwrite(&ctx->buf->b, buf, blen, &nwritten);
  192|      0|    }
  193|      0|    CURL_TRC_WRITE(data, "[PAUSE] buffer %zu more bytes of type %x, "
  ------------------
  |  |  158|      0|  do {                                                     \
  |  |  159|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      0|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  194|      0|                   "total=%zu -> %d", nwritten, type, ctx->buf_total + wlen,
  195|      0|                   result);
  196|      0|    if(result)
  ------------------
  |  Branch (196:8): [True: 0, False: 0]
  ------------------
  197|      0|      return result;
  198|      0|    buf += nwritten;
  199|      0|    blen -= nwritten;
  200|      0|    ctx->buf_total += nwritten;
  201|      0|  } while(blen);
  ------------------
  |  Branch (201:11): [True: 0, False: 0]
  ------------------
  202|       |
  203|      0|  return result;
  204|      0|}
cw-pause.c:cw_pause_close:
   92|  10.3k|{
   93|  10.3k|  struct cw_pause_ctx *ctx = writer->ctx;
   94|       |
   95|  10.3k|  (void)data;
   96|  10.3k|  cw_pause_bufs_free(ctx);
   97|  10.3k|}
cw-pause.c:cw_pause_bufs_free:
   83|  10.3k|{
   84|  10.3k|  while(ctx->buf) {
  ------------------
  |  Branch (84:9): [True: 0, False: 10.3k]
  ------------------
   85|      0|    struct cw_pause_buf *next = ctx->buf->next;
   86|      0|    cw_pause_buf_free(ctx->buf);
   87|      0|    ctx->buf = next;
   88|      0|  }
   89|  10.3k|}
cw-pause.c:cw_pause_flush:
  101|  10.3k|{
  102|  10.3k|  struct cw_pause_ctx *ctx = (struct cw_pause_ctx *)cw_pause;
  103|  10.3k|  bool decoding = Curl_cwriter_is_content_decoding(data);
  104|  10.3k|  CURLcode result = CURLE_OK;
  105|       |
  106|       |  /* write the end of the chain until it blocks or gets empty */
  107|  10.3k|  while(ctx->buf && !Curl_cwriter_is_paused(data)) {
  ------------------
  |  Branch (107:9): [True: 0, False: 10.3k]
  |  Branch (107:21): [True: 0, False: 0]
  ------------------
  108|      0|    struct cw_pause_buf **plast = &ctx->buf;
  109|      0|    size_t blen, wlen = 0;
  110|      0|    const unsigned char *buf = NULL;
  111|       |
  112|      0|    while((*plast)->next) /* got to last in list */
  ------------------
  |  Branch (112:11): [True: 0, False: 0]
  ------------------
  113|      0|      plast = &(*plast)->next;
  114|      0|    if(Curl_bufq_peek(&(*plast)->b, &buf, &blen)) {
  ------------------
  |  Branch (114:8): [True: 0, False: 0]
  ------------------
  115|      0|      wlen = (decoding && ((*plast)->type & CLIENTWRITE_BODY)) ?
  ------------------
  |  |   42|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (115:15): [True: 0, False: 0]
  |  Branch (115:27): [True: 0, False: 0]
  ------------------
  116|      0|             CURLMIN(blen, CW_PAUSE_DEC_WRITE_CHUNK) : blen;
  ------------------
  |  | 1287|      0|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  117|      0|      result = Curl_cwriter_write(data, cw_pause->next, (*plast)->type,
  118|      0|                                  (const char *)buf, wlen);
  119|      0|      CURL_TRC_WRITE(data, "[PAUSE] flushed %zu/%zu bytes, type=%x -> %d",
  ------------------
  |  |  158|      0|  do {                                                     \
  |  |  159|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      0|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  120|      0|                     wlen, ctx->buf_total, (*plast)->type, result);
  121|      0|      Curl_bufq_skip(&(*plast)->b, wlen);
  122|      0|      DEBUGASSERT(ctx->buf_total >= wlen);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (122:7): [True: 0, False: 0]
  |  Branch (122:7): [True: 0, False: 0]
  ------------------
  123|      0|      ctx->buf_total -= wlen;
  124|      0|      if(result)
  ------------------
  |  Branch (124:10): [True: 0, False: 0]
  ------------------
  125|      0|        return result;
  126|      0|    }
  127|      0|    else if((*plast)->type & CLIENTWRITE_EOS) {
  ------------------
  |  |   49|      0|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (127:13): [True: 0, False: 0]
  ------------------
  128|      0|      result = Curl_cwriter_write(data, cw_pause->next, (*plast)->type,
  129|      0|                                  (const char *)buf, 0);
  130|      0|      CURL_TRC_WRITE(data, "[PAUSE] flushed 0/%zu bytes, type=%x -> %d",
  ------------------
  |  |  158|      0|  do {                                                     \
  |  |  159|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      0|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  131|      0|                     ctx->buf_total, (*plast)->type, result);
  132|      0|    }
  133|       |
  134|      0|    if(Curl_bufq_is_empty(&(*plast)->b)) {
  ------------------
  |  Branch (134:8): [True: 0, False: 0]
  ------------------
  135|      0|      cw_pause_buf_free(*plast);
  136|      0|      *plast = NULL;
  137|      0|    }
  138|      0|  }
  139|  10.3k|  return result;
  140|  10.3k|}

Curl_dnscache_prune:
  172|  10.3k|{
  173|  10.3k|  struct Curl_dnscache *dnscache = dnscache_get(data);
  174|       |  /* the timeout may be set -1 (forever) */
  175|  10.3k|  timediff_t timeout_ms = data->set.dns_cache_timeout_ms;
  176|       |
  177|  10.3k|  if(!dnscache || (timeout_ms == -1))
  ------------------
  |  Branch (177:6): [True: 0, False: 10.3k]
  |  Branch (177:19): [True: 0, False: 10.3k]
  ------------------
  178|       |    /* NULL hostcache means we cannot do it */
  179|      0|    return;
  180|       |
  181|  10.3k|  dnscache_lock(data, dnscache);
  182|       |
  183|  10.3k|  do {
  184|       |    /* Remove outdated and unused entries from the hostcache */
  185|  10.3k|    timediff_t oldest_ms =
  186|  10.3k|      dnscache_prune(&dnscache->entries, timeout_ms, *Curl_pgrs_now(data));
  187|       |
  188|  10.3k|    if(Curl_hash_count(&dnscache->entries) > MAX_DNS_CACHE_SIZE)
  ------------------
  |  |   61|  10.3k|#define MAX_DNS_CACHE_SIZE 29999
  ------------------
  |  Branch (188:8): [True: 0, False: 10.3k]
  ------------------
  189|       |      /* prune the ones over half this age */
  190|      0|      timeout_ms = oldest_ms / 2;
  191|  10.3k|    else
  192|  10.3k|      break;
  193|       |
  194|       |    /* if the cache size is still too big, use the oldest age as new prune
  195|       |       limit */
  196|  10.3k|  } while(timeout_ms);
  ------------------
  |  Branch (196:11): [True: 0, False: 0]
  ------------------
  197|       |
  198|  10.3k|  dnscache_unlock(data, dnscache);
  199|  10.3k|}
Curl_dnscache_get:
  299|  7.53k|{
  300|  7.53k|  struct Curl_dnscache *dnscache = dnscache_get(data);
  301|  7.53k|  struct Curl_dns_entry *dns = NULL;
  302|  7.53k|  CURLcode result = CURLE_OK;
  303|       |
  304|  7.53k|  dnscache_lock(data, dnscache);
  305|  7.53k|  result = fetch_addr(data, dnscache, dns_queries, hostname, port, &dns);
  306|  7.53k|  if(!result && dns)
  ------------------
  |  Branch (306:6): [True: 7.53k, False: 0]
  |  Branch (306:17): [True: 509, False: 7.02k]
  ------------------
  307|    509|    dns->refcount++; /* we pass out a reference */
  308|  7.02k|  else if(result) {
  ------------------
  |  Branch (308:11): [True: 0, False: 7.02k]
  ------------------
  309|      0|    DEBUGASSERT(!dns);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (309:5): [True: 0, False: 0]
  |  Branch (309:5): [True: 0, False: 0]
  ------------------
  310|      0|    dns = NULL;
  311|      0|  }
  312|  7.53k|  dnscache_unlock(data, dnscache);
  313|       |
  314|  7.53k|  *pentry = dns;
  315|  7.53k|  return result;
  316|  7.53k|}
Curl_dnscache_mk_entry:
  496|  7.02k|{
  497|  7.02k|  return dnscache_entry_create(data, dns_queries, paddr, NULL, hostname,
  498|  7.02k|                               hostname ? strlen(hostname) : 0,
  ------------------
  |  Branch (498:32): [True: 7.02k, False: 0]
  ------------------
  499|       |                               port, FALSE);
  ------------------
  |  | 1058|  7.02k|#define FALSE false
  ------------------
  500|  7.02k|}
Curl_dnscache_add:
  569|  7.02k|{
  570|  7.02k|  struct Curl_dnscache *dnscache = dnscache_get(data);
  571|  7.02k|  char id[MAX_HOSTCACHE_LEN];
  572|  7.02k|  size_t idlen;
  573|       |
  574|  7.02k|  if(!dnscache)
  ------------------
  |  Branch (574:6): [True: 0, False: 7.02k]
  ------------------
  575|      0|    return CURLE_FAILED_INIT;
  576|       |  /* Create an entry id, based upon the hostname and port */
  577|  7.02k|  idlen = create_dnscache_id(entry->hostname, 0, entry->port, id, sizeof(id));
  578|       |
  579|       |  /* Store the resolved data in our DNS cache and up ref count */
  580|  7.02k|  dnscache_lock(data, dnscache);
  581|  7.02k|  if(!Curl_hash_add(&dnscache->entries, id, idlen + 1, (void *)entry)) {
  ------------------
  |  Branch (581:6): [True: 0, False: 7.02k]
  ------------------
  582|      0|    dnscache_unlock(data, dnscache);
  583|      0|    return CURLE_OUT_OF_MEMORY;
  584|      0|  }
  585|  7.02k|  entry->refcount++;
  586|  7.02k|  dnscache_unlock(data, dnscache);
  587|  7.02k|  return CURLE_OK;
  588|  7.02k|}
Curl_dns_entry_unlink:
  628|  8.27k|{
  629|  8.27k|  if(*pdns) {
  ------------------
  |  Branch (629:6): [True: 7.53k, False: 740]
  ------------------
  630|  7.53k|    struct Curl_dnscache *dnscache = dnscache_get(data);
  631|  7.53k|    struct Curl_dns_entry *dns = *pdns;
  632|  7.53k|    *pdns = NULL;
  633|  7.53k|    dnscache_lock(data, dnscache);
  634|  7.53k|    dns->refcount--;
  635|  7.53k|    if(dns->refcount == 0)
  ------------------
  |  Branch (635:8): [True: 0, False: 7.53k]
  ------------------
  636|      0|      dnscache_entry_free(dns);
  637|  7.53k|    dnscache_unlock(data, dnscache);
  638|  7.53k|  }
  639|  8.27k|}
Curl_dnscache_init:
  654|  7.82k|{
  655|  7.82k|  Curl_hash_init(&dns->entries, size, Curl_hash_str, curlx_str_key_compare,
  656|  7.82k|                 dnscache_entry_dtor);
  657|  7.82k|}
Curl_dnscache_destroy:
  660|  7.82k|{
  661|  7.82k|  Curl_hash_destroy(&dns->entries);
  662|  7.82k|}
dnscache.c:dnscache_get:
  145|  32.4k|{
  146|  32.4k|  if(data->share && data->share->specifier & (1 << CURL_LOCK_DATA_DNS))
  ------------------
  |  Branch (146:6): [True: 0, False: 32.4k]
  |  Branch (146:21): [True: 0, False: 0]
  ------------------
  147|      0|    return &data->share->dnscache;
  148|  32.4k|  if(data->multi)
  ------------------
  |  Branch (148:6): [True: 32.4k, False: 0]
  ------------------
  149|  32.4k|    return &data->multi->dnscache;
  150|      0|  return NULL;
  151|  32.4k|}
dnscache.c:dnscache_lock:
  155|  32.4k|{
  156|  32.4k|  if(data->share && dnscache == &data->share->dnscache)
  ------------------
  |  Branch (156:6): [True: 0, False: 32.4k]
  |  Branch (156:21): [True: 0, False: 0]
  ------------------
  157|      0|    Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE);
  158|  32.4k|}
dnscache.c:dnscache_prune:
  130|  10.3k|{
  131|  10.3k|  struct dnscache_prune_data user;
  132|       |
  133|  10.3k|  user.max_age_ms = cache_timeout_ms;
  134|  10.3k|  user.now = now;
  135|  10.3k|  user.oldest_ms = 0;
  136|       |
  137|  10.3k|  Curl_hash_clean_with_criterium(hostcache,
  138|  10.3k|                                 (void *)&user,
  139|  10.3k|                                 dnscache_entry_is_stale);
  140|       |
  141|  10.3k|  return user.oldest_ms;
  142|  10.3k|}
dnscache.c:dnscache_entry_is_stale:
  106|  10.8k|{
  107|  10.8k|  struct dnscache_prune_data *prune = (struct dnscache_prune_data *)datap;
  108|  10.8k|  struct Curl_dns_entry *dns = (struct Curl_dns_entry *)hc;
  109|       |
  110|  10.8k|  if(dns->timestamp.tv_sec || dns->timestamp.tv_usec) {
  ------------------
  |  Branch (110:6): [True: 10.8k, False: 0]
  |  Branch (110:31): [True: 0, False: 0]
  ------------------
  111|       |    /* get age in milliseconds */
  112|  10.8k|    timediff_t age = curlx_ptimediff_ms(&prune->now, &dns->timestamp);
  113|  10.8k|    if(!dns->addr)
  ------------------
  |  Branch (113:8): [True: 0, False: 10.8k]
  ------------------
  114|      0|      age *= 2; /* negative entries age twice as fast */
  115|  10.8k|    if(age >= prune->max_age_ms)
  ------------------
  |  Branch (115:8): [True: 0, False: 10.8k]
  ------------------
  116|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  117|  10.8k|    if(age > prune->oldest_ms)
  ------------------
  |  Branch (117:8): [True: 6.81k, False: 4.02k]
  ------------------
  118|  6.81k|      prune->oldest_ms = age;
  119|  10.8k|  }
  120|  10.8k|  return FALSE;
  ------------------
  |  | 1058|  10.8k|#define FALSE false
  ------------------
  121|  10.8k|}
dnscache.c:dnscache_unlock:
  162|  32.4k|{
  163|  32.4k|  if(data->share && dnscache == &data->share->dnscache)
  ------------------
  |  Branch (163:6): [True: 0, False: 32.4k]
  |  Branch (163:21): [True: 0, False: 0]
  ------------------
  164|      0|    Curl_share_unlock(data, CURL_LOCK_DATA_DNS);
  165|  32.4k|}
dnscache.c:fetch_addr:
  218|  7.53k|{
  219|  7.53k|  struct Curl_dns_entry *dns = NULL;
  220|  7.53k|  char entry_id[MAX_HOSTCACHE_LEN];
  221|  7.53k|  size_t entry_len;
  222|  7.53k|  CURLcode result = CURLE_OK;
  223|       |
  224|  7.53k|  *pdns = NULL;
  225|  7.53k|  if(!dnscache)
  ------------------
  |  Branch (225:6): [True: 0, False: 7.53k]
  ------------------
  226|      0|    return CURLE_OK;
  227|       |
  228|       |  /* Create an entry id, based upon the hostname and port */
  229|  7.53k|  entry_len = create_dnscache_id(hostname, 0, port,
  230|  7.53k|                                 entry_id, sizeof(entry_id));
  231|       |
  232|       |  /* See if it is already in our dns cache */
  233|  7.53k|  dns = Curl_hash_pick(&dnscache->entries, entry_id, entry_len + 1);
  234|       |
  235|       |  /* No entry found in cache, check if we might have a wildcard entry */
  236|  7.53k|  if(!dns && data->state.wildcard_resolve) {
  ------------------
  |  Branch (236:6): [True: 7.02k, False: 509]
  |  Branch (236:14): [True: 0, False: 7.02k]
  ------------------
  237|      0|    entry_len = create_dnscache_id("*", 1, port, entry_id, sizeof(entry_id));
  238|       |
  239|       |    /* See if it is already in our dns cache */
  240|      0|    dns = Curl_hash_pick(&dnscache->entries, entry_id, entry_len + 1);
  241|      0|  }
  242|       |
  243|  7.53k|  if(dns && (data->set.dns_cache_timeout_ms != -1)) {
  ------------------
  |  Branch (243:6): [True: 509, False: 7.02k]
  |  Branch (243:13): [True: 509, False: 0]
  ------------------
  244|       |    /* See whether the returned entry is stale. Done before we release lock */
  245|    509|    struct dnscache_prune_data user;
  246|       |
  247|    509|    user.now = *Curl_pgrs_now(data);
  248|    509|    user.max_age_ms = data->set.dns_cache_timeout_ms;
  249|    509|    user.oldest_ms = 0;
  250|       |
  251|    509|    if(dnscache_entry_is_stale(&user, dns)) {
  ------------------
  |  Branch (251:8): [True: 0, False: 509]
  ------------------
  252|      0|      infof(data, "Hostname in DNS cache was stale, zapped");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  253|      0|      dns = NULL; /* the memory deallocation is being handled by the hash */
  254|      0|      Curl_hash_delete(&dnscache->entries, entry_id, entry_len + 1);
  255|      0|    }
  256|    509|  }
  257|       |
  258|  7.53k|  if(dns) {
  ------------------
  |  Branch (258:6): [True: 509, False: 7.02k]
  ------------------
  259|    509|    if((dns->dns_queries & dns_queries) != dns_queries) {
  ------------------
  |  Branch (259:8): [True: 0, False: 509]
  ------------------
  260|       |      /* The entry does not cover all wanted DNS queries, a miss. */
  261|      0|      dns = NULL;
  262|      0|    }
  263|    509|    else if(!(dns->dns_responses & dns_queries)) {
  ------------------
  |  Branch (263:13): [True: 0, False: 509]
  ------------------
  264|       |      /* The entry has no responses for the wanted DNS queries. */
  265|      0|      CURL_TRC_DNS(data, "cache entry does not have type=%s addresses",
  ------------------
  |  |  168|      0|  do {                                 \
  |  |  169|      0|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|      0|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  266|      0|                   Curl_resolv_query_str(dns_queries));
  267|      0|      dns = NULL;
  268|      0|      result = CURLE_COULDNT_RESOLVE_HOST;
  269|      0|    }
  270|    509|  }
  271|       |
  272|  7.53k|  if(dns && !dns->addr) { /* negative entry */
  ------------------
  |  Branch (272:6): [True: 509, False: 7.02k]
  |  Branch (272:13): [True: 0, False: 509]
  ------------------
  273|       |    dns = NULL;
  274|      0|    result = CURLE_COULDNT_RESOLVE_HOST;
  275|      0|  }
  276|  7.53k|  *pdns = dns;
  277|  7.53k|  return result;
  278|  7.53k|}
dnscache.c:dnscache_entry_create:
  419|  7.02k|{
  420|  7.02k|  struct Curl_dns_entry *dns = NULL;
  421|       |
  422|       |  /* Create a new cache entry, struct already has the hostname NUL */
  423|  7.02k|  dns = curlx_calloc(1, sizeof(struct Curl_dns_entry) + hostlen);
  ------------------
  |  | 1480|  7.02k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  424|  7.02k|  if(!dns)
  ------------------
  |  Branch (424:6): [True: 0, False: 7.02k]
  ------------------
  425|      0|    goto out;
  426|       |
  427|  7.02k|  dns->refcount = 1; /* the cache has the first reference */
  428|  7.02k|  dns->dns_queries = dns_queries;
  429|  7.02k|  dns->port = port;
  430|  7.02k|  if(hostlen)
  ------------------
  |  Branch (430:6): [True: 7.02k, False: 0]
  ------------------
  431|  7.02k|    memcpy(dns->hostname, hostname, hostlen);
  432|       |
  433|  7.02k|  if(permanent) {
  ------------------
  |  Branch (433:6): [True: 0, False: 7.02k]
  ------------------
  434|      0|    dns->timestamp.tv_sec = 0; /* an entry that never goes stale */
  435|      0|    dns->timestamp.tv_usec = 0; /* an entry that never goes stale */
  436|      0|  }
  437|  7.02k|  else {
  438|  7.02k|    dns->timestamp = *Curl_pgrs_now(data);
  439|  7.02k|  }
  440|       |
  441|       |  /* Take the given address lists into the entry */
  442|  7.02k|  if(paddr1 && *paddr1) {
  ------------------
  |  Branch (442:6): [True: 7.02k, False: 0]
  |  Branch (442:16): [True: 7.02k, False: 0]
  ------------------
  443|  7.02k|    dns->addr = *paddr1;
  444|  7.02k|    *paddr1 = NULL;
  445|  7.02k|  }
  446|  7.02k|  if(paddr2 && *paddr2) {
  ------------------
  |  Branch (446:6): [True: 0, False: 7.02k]
  |  Branch (446:16): [True: 0, False: 0]
  ------------------
  447|      0|    struct Curl_addrinfo **phead = &dns->addr;
  448|      0|    while(*phead)
  ------------------
  |  Branch (448:11): [True: 0, False: 0]
  ------------------
  449|      0|      phead = &(*phead)->ai_next;
  450|      0|    *phead = *paddr2;
  451|      0|    *paddr2 = NULL;
  452|      0|  }
  453|       |
  454|  7.02k|  if((dns_queries & CURL_DNSQ_A) &&
  ------------------
  |  |   51|  7.02k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  |  Branch (454:6): [True: 7.02k, False: 0]
  ------------------
  455|  7.02k|     dnscache_ai_has_family(dns->addr, PF_INET))
  ------------------
  |  Branch (455:6): [True: 7.02k, False: 0]
  ------------------
  456|  7.02k|    dns->dns_responses |= CURL_DNSQ_A;
  ------------------
  |  |   51|  7.02k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  457|       |
  458|  7.02k|#ifdef USE_IPV6
  459|  7.02k|  if((dns_queries & CURL_DNSQ_AAAA) &&
  ------------------
  |  |   52|  7.02k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (459:6): [True: 7.02k, False: 0]
  ------------------
  460|  7.02k|     dnscache_ai_has_family(dns->addr, PF_INET6))
  ------------------
  |  Branch (460:6): [True: 0, False: 7.02k]
  ------------------
  461|      0|    dns->dns_responses |= CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  462|  7.02k|#endif /* USE_IPV6 */
  463|       |
  464|  7.02k|#ifndef CURL_DISABLE_SHUFFLE_DNS
  465|       |  /* shuffle addresses if requested */
  466|  7.02k|  if(data->set.dns_shuffle_addresses && dns->addr) {
  ------------------
  |  Branch (466:6): [True: 0, False: 7.02k]
  |  Branch (466:41): [True: 0, False: 0]
  ------------------
  467|      0|    CURLcode result = dns_shuffle_addr(data, &dns->addr);
  468|      0|    if(result) {
  ------------------
  |  Branch (468:8): [True: 0, False: 0]
  ------------------
  469|       |      /* free without lock, we are the sole owner */
  470|      0|      dnscache_entry_free(dns);
  471|      0|      dns = NULL;
  472|      0|      goto out;
  473|      0|    }
  474|      0|  }
  475|       |#else
  476|       |  (void)data;
  477|       |#endif
  478|       |
  479|  7.02k|out:
  480|  7.02k|  if(paddr1 && *paddr1) {
  ------------------
  |  Branch (480:6): [True: 7.02k, False: 0]
  |  Branch (480:16): [True: 0, False: 7.02k]
  ------------------
  481|      0|    Curl_freeaddrinfo(*paddr1);
  482|      0|    *paddr1 = NULL;
  483|      0|  }
  484|  7.02k|  if(paddr2 && *paddr2) {
  ------------------
  |  Branch (484:6): [True: 0, False: 7.02k]
  |  Branch (484:16): [True: 0, False: 0]
  ------------------
  485|      0|    Curl_freeaddrinfo(*paddr2);
  486|       |    *paddr2 = NULL;
  487|      0|  }
  488|  7.02k|  return dns;
  489|  7.02k|}
dnscache.c:dnscache_ai_has_family:
  402|  14.0k|{
  403|  21.0k|  for(; ai; ai = ai->ai_next) {
  ------------------
  |  Branch (403:9): [True: 14.0k, False: 7.02k]
  ------------------
  404|  14.0k|    if(ai->ai_family == ai_family)
  ------------------
  |  Branch (404:8): [True: 7.02k, False: 7.02k]
  ------------------
  405|  7.02k|      return TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
  406|  14.0k|  }
  407|  7.02k|  return FALSE;
  ------------------
  |  | 1058|  7.02k|#define FALSE false
  ------------------
  408|  14.0k|}
dnscache.c:create_dnscache_id:
   82|  14.5k|{
   83|  14.5k|  size_t len = nlen ? nlen : strlen(name);
  ------------------
  |  Branch (83:16): [True: 0, False: 14.5k]
  ------------------
   84|  14.5k|  DEBUGASSERT(buflen >= MAX_HOSTCACHE_LEN);
  ------------------
  |  | 1081|  14.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (84:3): [True: 0, False: 14.5k]
  |  Branch (84:3): [True: 14.5k, False: 0]
  ------------------
   85|  14.5k|  if(len > (buflen - 7))
  ------------------
  |  Branch (85:6): [True: 0, False: 14.5k]
  ------------------
   86|      0|    len = buflen - 7;
   87|       |  /* store and lower case the name */
   88|  14.5k|  Curl_strntolower(ptr, name, len);
   89|  14.5k|  return curl_msnprintf(&ptr[len], 7, ":%u", port) + len;
   90|  14.5k|}
dnscache.c:dnscache_entry_free:
   64|  7.02k|{
   65|  7.02k|  Curl_freeaddrinfo(dns->addr);
   66|       |#ifdef USE_HTTPSRR
   67|       |  if(dns->hinfo) {
   68|       |    Curl_httpsrr_cleanup(dns->hinfo);
   69|       |    curlx_free(dns->hinfo);
   70|       |  }
   71|       |#endif
   72|  7.02k|  curlx_free(dns);
  ------------------
  |  | 1483|  7.02k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   73|  7.02k|}
dnscache.c:dnscache_entry_dtor:
  642|  7.02k|{
  643|  7.02k|  struct Curl_dns_entry *dns = (struct Curl_dns_entry *)entry;
  644|  7.02k|  DEBUGASSERT(dns && (dns->refcount > 0));
  ------------------
  |  | 1081|  7.02k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (644:3): [True: 0, False: 7.02k]
  |  Branch (644:3): [True: 0, False: 0]
  |  Branch (644:3): [True: 7.02k, False: 0]
  |  Branch (644:3): [True: 7.02k, False: 0]
  ------------------
  645|  7.02k|  dns->refcount--;
  646|  7.02k|  if(dns->refcount == 0)
  ------------------
  |  Branch (646:6): [True: 7.02k, False: 0]
  ------------------
  647|  7.02k|    dnscache_entry_free(dns);
  648|  7.02k|}

Curl_dynhds_init:
   59|  11.6k|{
   60|  11.6k|  DEBUGASSERT(dynhds);
  ------------------
  |  | 1081|  11.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (60:3): [True: 0, False: 11.6k]
  |  Branch (60:3): [True: 11.6k, False: 0]
  ------------------
   61|  11.6k|  DEBUGASSERT(max_strs_size);
  ------------------
  |  | 1081|  11.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (61:3): [True: 0, False: 11.6k]
  |  Branch (61:3): [True: 11.6k, False: 0]
  ------------------
   62|  11.6k|  dynhds->hds = NULL;
   63|  11.6k|  dynhds->hds_len = dynhds->hds_allc = dynhds->strs_len = 0;
   64|  11.6k|  dynhds->max_entries = max_entries;
   65|  11.6k|  dynhds->max_strs_size = max_strs_size;
   66|  11.6k|  dynhds->opts = 0;
   67|  11.6k|}
Curl_dynhds_free:
   70|  11.6k|{
   71|  11.6k|  DEBUGASSERT(dynhds);
  ------------------
  |  | 1081|  11.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (71:3): [True: 0, False: 11.6k]
  |  Branch (71:3): [True: 11.6k, False: 0]
  ------------------
   72|  11.6k|  if(dynhds->hds && dynhds->hds_len) {
  ------------------
  |  Branch (72:6): [True: 5.78k, False: 5.86k]
  |  Branch (72:21): [True: 5.78k, False: 0]
  ------------------
   73|  5.78k|    size_t i;
   74|  5.78k|    DEBUGASSERT(dynhds->hds);
  ------------------
  |  | 1081|  5.78k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (74:5): [True: 0, False: 5.78k]
  |  Branch (74:5): [True: 5.78k, False: 0]
  ------------------
   75|  66.2k|    for(i = 0; i < dynhds->hds_len; ++i) {
  ------------------
  |  Branch (75:16): [True: 60.5k, False: 5.78k]
  ------------------
   76|  60.5k|      entry_free(dynhds->hds[i]);
   77|  60.5k|    }
   78|  5.78k|  }
   79|  11.6k|  curlx_safefree(dynhds->hds);
  ------------------
  |  | 1327|  11.6k|  do {                      \
  |  | 1328|  11.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  11.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  11.6k|    (ptr) = NULL;           \
  |  | 1330|  11.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 11.6k]
  |  |  ------------------
  ------------------
   80|  11.6k|  dynhds->hds_len = dynhds->hds_allc = dynhds->strs_len = 0;
   81|  11.6k|}
Curl_dynhds_reset:
   84|  2.88k|{
   85|  2.88k|  DEBUGASSERT(dynhds);
  ------------------
  |  | 1081|  2.88k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (85:3): [True: 0, False: 2.88k]
  |  Branch (85:3): [True: 2.88k, False: 0]
  ------------------
   86|  2.88k|  if(dynhds->hds_len) {
  ------------------
  |  Branch (86:6): [True: 0, False: 2.88k]
  ------------------
   87|      0|    size_t i;
   88|      0|    DEBUGASSERT(dynhds->hds);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (88:5): [True: 0, False: 0]
  |  Branch (88:5): [True: 0, False: 0]
  ------------------
   89|      0|    for(i = 0; i < dynhds->hds_len; ++i) {
  ------------------
  |  Branch (89:16): [True: 0, False: 0]
  ------------------
   90|      0|      entry_free(dynhds->hds[i]);
   91|      0|      dynhds->hds[i] = NULL;
   92|      0|    }
   93|      0|  }
   94|  2.88k|  dynhds->hds_len = dynhds->strs_len = 0;
   95|  2.88k|}
Curl_dynhds_count:
   98|  28.7k|{
   99|  28.7k|  return dynhds->hds_len;
  100|  28.7k|}
Curl_dynhds_set_opts:
  103|  2.88k|{
  104|  2.88k|  dynhds->opts = opts;
  105|  2.88k|}
Curl_dynhds_getn:
  108|  25.8k|{
  109|  25.8k|  DEBUGASSERT(dynhds);
  ------------------
  |  | 1081|  25.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (109:3): [True: 0, False: 25.8k]
  |  Branch (109:3): [True: 25.8k, False: 0]
  ------------------
  110|  25.8k|  return (n < dynhds->hds_len) ? dynhds->hds[n] : NULL;
  ------------------
  |  Branch (110:10): [True: 25.8k, False: 0]
  ------------------
  111|  25.8k|}
Curl_dynhds_get:
  115|  2.88k|{
  116|  2.88k|  size_t i;
  117|  2.88k|  for(i = 0; i < dynhds->hds_len; ++i) {
  ------------------
  |  Branch (117:14): [True: 2.88k, False: 0]
  ------------------
  118|  2.88k|    if(dynhds->hds[i]->namelen == namelen &&
  ------------------
  |  Branch (118:8): [True: 2.88k, False: 0]
  ------------------
  119|  2.88k|       curl_strnequal(dynhds->hds[i]->name, name, namelen)) {
  ------------------
  |  Branch (119:8): [True: 2.88k, False: 0]
  ------------------
  120|  2.88k|      return dynhds->hds[i];
  121|  2.88k|    }
  122|  2.88k|  }
  123|      0|  return NULL;
  124|  2.88k|}
Curl_dynhds_add:
  134|  60.5k|{
  135|  60.5k|  struct dynhds_entry *entry = NULL;
  136|  60.5k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  137|       |
  138|  60.5k|  DEBUGASSERT(dynhds);
  ------------------
  |  | 1081|  60.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (138:3): [True: 0, False: 60.5k]
  |  Branch (138:3): [True: 60.5k, False: 0]
  ------------------
  139|  60.5k|  if(dynhds->max_entries && dynhds->hds_len >= dynhds->max_entries)
  ------------------
  |  Branch (139:6): [True: 0, False: 60.5k]
  |  Branch (139:29): [True: 0, False: 0]
  ------------------
  140|      0|    return CURLE_OUT_OF_MEMORY;
  141|  60.5k|  if(dynhds->strs_len + namelen + valuelen > dynhds->max_strs_size)
  ------------------
  |  Branch (141:6): [True: 0, False: 60.5k]
  ------------------
  142|      0|    return CURLE_OUT_OF_MEMORY;
  143|       |
  144|  60.5k|  entry = entry_new(name, namelen, value, valuelen, dynhds->opts);
  145|  60.5k|  if(!entry)
  ------------------
  |  Branch (145:6): [True: 0, False: 60.5k]
  ------------------
  146|      0|    goto out;
  147|       |
  148|  60.5k|  if(dynhds->hds_len + 1 >= dynhds->hds_allc) {
  ------------------
  |  Branch (148:6): [True: 7.94k, False: 52.5k]
  ------------------
  149|  7.94k|    size_t nallc = dynhds->hds_len + 16;
  150|  7.94k|    struct dynhds_entry **nhds;
  151|       |
  152|  7.94k|    if(dynhds->max_entries && nallc > dynhds->max_entries)
  ------------------
  |  Branch (152:8): [True: 0, False: 7.94k]
  |  Branch (152:31): [True: 0, False: 0]
  ------------------
  153|      0|      nallc = dynhds->max_entries;
  154|       |
  155|  7.94k|    nhds = curlx_calloc(nallc, sizeof(struct dynhds_entry *));
  ------------------
  |  | 1480|  7.94k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  156|  7.94k|    if(!nhds)
  ------------------
  |  Branch (156:8): [True: 0, False: 7.94k]
  ------------------
  157|      0|      goto out;
  158|  7.94k|    if(dynhds->hds) {
  ------------------
  |  Branch (158:8): [True: 2.15k, False: 5.78k]
  ------------------
  159|  2.15k|      memcpy(nhds, dynhds->hds,
  160|  2.15k|             dynhds->hds_len * sizeof(struct dynhds_entry *));
  161|  2.15k|      curlx_safefree(dynhds->hds);
  ------------------
  |  | 1327|  2.15k|  do {                      \
  |  | 1328|  2.15k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  2.15k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  2.15k|    (ptr) = NULL;           \
  |  | 1330|  2.15k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 2.15k]
  |  |  ------------------
  ------------------
  162|  2.15k|    }
  163|  7.94k|    dynhds->hds = nhds;
  164|  7.94k|    dynhds->hds_allc = nallc;
  165|  7.94k|  }
  166|  60.5k|  dynhds->hds[dynhds->hds_len++] = entry;
  167|  60.5k|  entry = NULL;
  168|  60.5k|  dynhds->strs_len += namelen + valuelen;
  169|  60.5k|  result = CURLE_OK;
  170|       |
  171|  60.5k|out:
  172|  60.5k|  if(entry)
  ------------------
  |  Branch (172:6): [True: 0, False: 60.5k]
  ------------------
  173|      0|    entry_free(entry);
  174|  60.5k|  return result;
  175|  60.5k|}
Curl_dynhds_h1_add_line:
  185|  26.1k|{
  186|  26.1k|  const char *p;
  187|  26.1k|  const char *name;
  188|  26.1k|  size_t namelen;
  189|  26.1k|  const char *value;
  190|  26.1k|  size_t valuelen, i;
  191|       |
  192|  26.1k|  if(!line || !line_len)
  ------------------
  |  Branch (192:6): [True: 0, False: 26.1k]
  |  Branch (192:15): [True: 0, False: 26.1k]
  ------------------
  193|      0|    return CURLE_OK;
  194|       |
  195|  26.1k|  p = memchr(line, ':', line_len);
  196|  26.1k|  if(!p)
  ------------------
  |  Branch (196:6): [True: 9, False: 26.1k]
  ------------------
  197|      9|    return CURLE_BAD_FUNCTION_ARGUMENT;
  198|  26.1k|  name = line;
  199|  26.1k|  namelen = p - line;
  200|  26.1k|  p++; /* move past the colon */
  201|  42.5k|  for(i = namelen + 1; i < line_len; ++i, ++p) {
  ------------------
  |  Branch (201:24): [True: 41.7k, False: 788]
  ------------------
  202|  41.7k|    if(!ISBLANK(*p))
  ------------------
  |  |   45|  41.7k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 16.0k, False: 25.7k]
  |  |  |  Branch (45:38): [True: 335, False: 25.3k]
  |  |  ------------------
  ------------------
  203|  25.3k|      break;
  204|  41.7k|  }
  205|  26.1k|  value = p;
  206|  26.1k|  valuelen = line_len - i;
  207|       |
  208|  26.1k|  p = memchr(value, '\r', valuelen);
  209|  26.1k|  if(!p)
  ------------------
  |  Branch (209:6): [True: 21.0k, False: 5.16k]
  ------------------
  210|  21.0k|    p = memchr(value, '\n', valuelen);
  211|  26.1k|  if(p)
  ------------------
  |  Branch (211:6): [True: 5.16k, False: 21.0k]
  ------------------
  212|  5.16k|    valuelen = (size_t)(p - value);
  213|       |
  214|  26.1k|  return Curl_dynhds_add(dynhds, name, namelen, value, valuelen);
  215|  26.1k|}
Curl_dynhds_to_nva:
  364|  2.88k|{
  365|  2.88k|  nghttp2_nv *nva = curlx_calloc(1, sizeof(nghttp2_nv) * dynhds->hds_len);
  ------------------
  |  | 1480|  2.88k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  366|  2.88k|  size_t i;
  367|       |
  368|  2.88k|  *pcount = 0;
  369|  2.88k|  if(!nva)
  ------------------
  |  Branch (369:6): [True: 0, False: 2.88k]
  ------------------
  370|      0|    return NULL;
  371|       |
  372|  37.2k|  for(i = 0; i < dynhds->hds_len; ++i) {
  ------------------
  |  Branch (372:14): [True: 34.3k, False: 2.88k]
  ------------------
  373|  34.3k|    struct dynhds_entry *e = dynhds->hds[i];
  374|  34.3k|    DEBUGASSERT(e);
  ------------------
  |  | 1081|  34.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (374:5): [True: 0, False: 34.3k]
  |  Branch (374:5): [True: 34.3k, False: 0]
  ------------------
  375|  34.3k|    nva[i].name = (unsigned char *)e->name;
  376|  34.3k|    nva[i].namelen = e->namelen;
  377|  34.3k|    nva[i].value = (unsigned char *)e->value;
  378|  34.3k|    nva[i].valuelen = e->valuelen;
  379|  34.3k|    nva[i].flags = NGHTTP2_NV_FLAG_NONE;
  380|  34.3k|  }
  381|  2.88k|  *pcount = dynhds->hds_len;
  382|  2.88k|  return nva;
  383|  2.88k|}
dynhds.c:entry_free:
   53|  60.5k|{
   54|  60.5k|  curlx_free(e);
  ------------------
  |  | 1483|  60.5k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   55|  60.5k|}
dynhds.c:entry_new:
   32|  60.5k|{
   33|  60.5k|  struct dynhds_entry *e;
   34|  60.5k|  char *p;
   35|       |
   36|  60.5k|  DEBUGASSERT(name);
  ------------------
  |  | 1081|  60.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (36:3): [True: 0, False: 60.5k]
  |  Branch (36:3): [True: 60.5k, False: 0]
  ------------------
   37|  60.5k|  DEBUGASSERT(value);
  ------------------
  |  | 1081|  60.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (37:3): [True: 0, False: 60.5k]
  |  Branch (37:3): [True: 60.5k, False: 0]
  ------------------
   38|  60.5k|  e = curlx_calloc(1, sizeof(*e) + namelen + valuelen + 2);
  ------------------
  |  | 1480|  60.5k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   39|  60.5k|  if(!e)
  ------------------
  |  Branch (39:6): [True: 0, False: 60.5k]
  ------------------
   40|      0|    return NULL;
   41|  60.5k|  e->name = p = (char *)e + sizeof(*e);
   42|  60.5k|  memcpy(p, name, namelen);
   43|  60.5k|  e->namelen = namelen;
   44|  60.5k|  e->value = p += namelen + 1; /* leave a \0 at the end of name */
   45|  60.5k|  memcpy(p, value, valuelen);
   46|  60.5k|  e->valuelen = valuelen;
   47|  60.5k|  if(opts & DYNHDS_OPT_LOWERCASE)
  ------------------
  |  |   54|  60.5k|#define DYNHDS_OPT_LOWERCASE     (1 << 0)
  ------------------
  |  Branch (47:6): [True: 34.3k, False: 26.1k]
  ------------------
   48|  34.3k|    Curl_strntolower(e->name, e->name, e->namelen);
   49|  60.5k|  return e;
   50|  60.5k|}

curl_global_init:
  198|      2|{
  199|      2|  CURLcode result;
  200|      2|  global_init_lock();
  ------------------
  |  |   87|      2|#define global_init_lock()   curl_simple_lock_lock(&s_lock)
  ------------------
  201|       |
  202|      2|  result = global_init(flags, TRUE);
  ------------------
  |  | 1055|      2|#define TRUE true
  ------------------
  203|       |
  204|      2|  global_init_unlock();
  ------------------
  |  |   88|      2|#define global_init_unlock() curl_simple_lock_unlock(&s_lock)
  ------------------
  205|       |
  206|      2|  return result;
  207|      2|}
curl_easy_init:
  331|  15.6k|{
  332|  15.6k|  CURLcode result;
  333|  15.6k|  struct Curl_easy *data;
  334|       |
  335|       |  /* Make sure we inited the global SSL stuff */
  336|  15.6k|  global_init_lock();
  ------------------
  |  |   87|  15.6k|#define global_init_lock()   curl_simple_lock_lock(&s_lock)
  ------------------
  337|       |
  338|  15.6k|  if(!initialized) {
  ------------------
  |  Branch (338:6): [True: 0, False: 15.6k]
  ------------------
  339|      0|    result = global_init(CURL_GLOBAL_DEFAULT, TRUE);
  ------------------
  |  | 3022|      0|#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
  |  |  ------------------
  |  |  |  | 3020|      0|#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32)
  |  |  |  |  ------------------
  |  |  |  |  |  | 3018|      0|#define CURL_GLOBAL_SSL (1 << 0) /* no purpose since 7.57.0 */
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32)
  |  |  |  |  ------------------
  |  |  |  |  |  | 3019|      0|#define CURL_GLOBAL_WIN32 (1 << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  result = global_init(CURL_GLOBAL_DEFAULT, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  340|      0|    if(result) {
  ------------------
  |  Branch (340:8): [True: 0, False: 0]
  ------------------
  341|       |      /* something in the global init failed, return nothing */
  342|      0|      DEBUGF(curl_mfprintf(stderr, "Error: curl_global_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  343|      0|      global_init_unlock();
  ------------------
  |  |   88|      0|#define global_init_unlock() curl_simple_lock_unlock(&s_lock)
  ------------------
  344|      0|      return NULL;
  345|      0|    }
  346|      0|  }
  347|  15.6k|  global_init_unlock();
  ------------------
  |  |   88|  15.6k|#define global_init_unlock() curl_simple_lock_unlock(&s_lock)
  ------------------
  348|       |
  349|       |  /* We use Curl_open() with undefined URL so far */
  350|  15.6k|  result = Curl_open(&data);
  351|  15.6k|  if(result) {
  ------------------
  |  Branch (351:6): [True: 0, False: 15.6k]
  ------------------
  352|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_open failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  353|      0|    return NULL;
  354|      0|  }
  355|       |
  356|  15.6k|  return data;
  357|  15.6k|}
curl_easy_cleanup:
  839|  7.82k|{
  840|  7.82k|  struct Curl_easy *data = curl;
  841|  7.82k|  if(GOOD_EASY_HANDLE(data)) {
  ------------------
  |  |  136|  7.82k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  7.82k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:3): [True: 7.82k, False: 0]
  |  |  |  Branch (136:5): [True: 7.82k, False: 0]
  |  |  |  Branch (136:12): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |  137|  7.82k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (841:6): [True: 0, False: 0]
  |  Branch (841:6): [True: 0, False: 0]
  ------------------
  842|  7.82k|    struct Curl_sigpipe_ctx sigpipe_ctx;
  843|  7.82k|    sigpipe_ignore(data, &sigpipe_ctx);
  844|  7.82k|    Curl_close(&data);
  845|  7.82k|    sigpipe_restore(&sigpipe_ctx);
  846|  7.82k|  }
  847|  7.82k|}
curl_easy_recv:
 1224|  3.20k|{
 1225|  3.20k|  CURLcode result;
 1226|  3.20k|  struct connectdata *c;
 1227|  3.20k|  struct Curl_easy *data = curl;
 1228|       |
 1229|  3.20k|  if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |  136|  3.20k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  3.20k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  3.20k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 3.20k, False: 0]
  |  |  |  Branch (136:12): [True: 3.20k, False: 0]
  |  |  ------------------
  |  |  137|  3.20k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1229:6): [True: 0, False: 3.20k]
  |  Branch (1229:7): [True: 0, False: 0]
  |  Branch (1229:7): [True: 0, False: 0]
  ------------------
 1230|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1231|  3.20k|  if(Curl_is_in_callback(data))
  ------------------
  |  Branch (1231:6): [True: 0, False: 3.20k]
  ------------------
 1232|      0|    return CURLE_RECURSIVE_API_CALL;
 1233|       |
 1234|  3.20k|  result = easy_connection(data, &c);
 1235|  3.20k|  if(result)
  ------------------
  |  Branch (1235:6): [True: 0, False: 3.20k]
  ------------------
 1236|      0|    return result;
 1237|       |
 1238|  3.20k|  if(!data->conn)
  ------------------
  |  Branch (1238:6): [True: 390, False: 2.81k]
  ------------------
 1239|       |    /* on first invoke, the transfer has been detached from the connection and
 1240|       |       needs to be reattached */
 1241|    390|    Curl_attach_connection(data, c);
 1242|       |
 1243|  3.20k|  *n = 0;
 1244|  3.20k|  return Curl_conn_recv(data, FIRSTSOCKET, buffer, buflen, n);
  ------------------
  |  |  303|  3.20k|#define FIRSTSOCKET     0
  ------------------
 1245|  3.20k|}
Curl_senddata:
 1273|  2.17k|{
 1274|  2.17k|  CURLcode result;
 1275|  2.17k|  struct connectdata *c = NULL;
 1276|  2.17k|  struct Curl_sigpipe_ctx sigpipe_ctx;
 1277|       |
 1278|  2.17k|  *n = 0;
 1279|  2.17k|  result = easy_connection(data, &c);
 1280|  2.17k|  if(result)
  ------------------
  |  Branch (1280:6): [True: 0, False: 2.17k]
  ------------------
 1281|      0|    return result;
 1282|       |
 1283|  2.17k|  if(!data->conn)
  ------------------
  |  Branch (1283:6): [True: 0, False: 2.17k]
  ------------------
 1284|       |    /* on first invoke, the transfer has been detached from the connection and
 1285|       |       needs to be reattached */
 1286|      0|    Curl_attach_connection(data, c);
 1287|       |
 1288|  2.17k|  sigpipe_ignore(data, &sigpipe_ctx);
 1289|  2.17k|  result = Curl_conn_send(data, FIRSTSOCKET, buffer, buflen, FALSE, n);
  ------------------
  |  |  303|  2.17k|#define FIRSTSOCKET     0
  ------------------
                result = Curl_conn_send(data, FIRSTSOCKET, buffer, buflen, FALSE, n);
  ------------------
  |  | 1058|  2.17k|#define FALSE false
  ------------------
 1290|  2.17k|  sigpipe_restore(&sigpipe_ctx);
 1291|       |
 1292|  2.17k|  if(result && result != CURLE_AGAIN)
  ------------------
  |  Branch (1292:6): [True: 513, False: 1.66k]
  |  Branch (1292:16): [True: 0, False: 513]
  ------------------
 1293|      0|    return CURLE_SEND_ERROR;
 1294|  2.17k|  return result;
 1295|  2.17k|}
Curl_meta_remove:
 1389|  7.82k|{
 1390|  7.82k|  Curl_hash_delete(&data->meta_hash, CURL_UNCONST(key), strlen(key) + 1);
  ------------------
  |  |  866|  7.82k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 1391|  7.82k|}
easy.c:global_init:
  125|      2|{
  126|      2|  if(initialized++)
  ------------------
  |  Branch (126:6): [True: 0, False: 2]
  ------------------
  127|      0|    return CURLE_OK;
  128|       |
  129|      2|  if(memoryfuncs) {
  ------------------
  |  Branch (129:6): [True: 2, False: 0]
  ------------------
  130|       |    /* Setup the default memory functions here (again) */
  131|      2|    Curl_cmalloc = (curl_malloc_callback)malloc;
  132|      2|    Curl_cfree = (curl_free_callback)free;
  133|      2|    Curl_crealloc = (curl_realloc_callback)realloc;
  134|      2|    Curl_cstrdup = (curl_strdup_callback)CURLX_STRDUP_LOW;
  ------------------
  |  | 1472|      2|#define CURLX_STRDUP_LOW strdup
  ------------------
  135|      2|    Curl_ccalloc = (curl_calloc_callback)calloc;
  136|      2|  }
  137|       |
  138|      2|  if(Curl_trc_init()) {
  ------------------
  |  Branch (138:6): [True: 0, False: 2]
  ------------------
  139|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_trc_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  140|      0|    goto fail;
  141|      0|  }
  142|       |
  143|      2|  if(!Curl_ssl_init()) {
  ------------------
  |  Branch (143:6): [True: 0, False: 2]
  ------------------
  144|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_ssl_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  145|      0|    goto fail;
  146|      0|  }
  147|       |
  148|      2|  if(!Curl_vquic_init()) {
  ------------------
  |  |   54|      2|#define Curl_vquic_init() 1
  ------------------
  |  Branch (148:6): [Folded, False: 2]
  ------------------
  149|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_vquic_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  150|      0|    goto fail;
  151|      0|  }
  152|       |
  153|      2|  if(Curl_win32_init(flags)) {
  ------------------
  |  |   34|      2|#define Curl_win32_init(x) CURLE_OK
  |  |  ------------------
  |  |  |  Branch (34:28): [Folded, False: 2]
  |  |  ------------------
  ------------------
  154|      0|    DEBUGF(curl_mfprintf(stderr, "Error: win32_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  155|      0|    goto fail;
  156|      0|  }
  157|       |
  158|      2|  if(Curl_amiga_init()) {
  ------------------
  |  |   36|      2|#define Curl_amiga_init()    CURLE_OK
  |  |  ------------------
  |  |  |  Branch (36:30): [Folded, False: 2]
  |  |  ------------------
  ------------------
  159|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_amiga_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  160|      0|    goto fail;
  161|      0|  }
  162|       |
  163|      2|  if(Curl_macos_init()) {
  ------------------
  |  |   31|      2|#define Curl_macos_init() CURLE_OK
  |  |  ------------------
  |  |  |  Branch (31:27): [Folded, False: 2]
  |  |  ------------------
  ------------------
  164|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_macos_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  165|      0|    goto fail;
  166|      0|  }
  167|       |
  168|      2|  if(Curl_async_global_init()) {
  ------------------
  |  Branch (168:6): [True: 0, False: 2]
  ------------------
  169|      0|    DEBUGF(curl_mfprintf(stderr, "Error: resolver_global_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  170|      0|    goto fail;
  171|      0|  }
  172|       |
  173|      2|  if(Curl_ssh_init()) {
  ------------------
  |  |  259|      2|#define Curl_ssh_init() 0
  |  |  ------------------
  |  |  |  Branch (259:25): [Folded, False: 2]
  |  |  ------------------
  ------------------
  174|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_ssh_init failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  175|      0|    goto fail;
  176|      0|  }
  177|       |
  178|      2|  easy_init_flags = flags;
  179|       |
  180|      2|#ifdef DEBUGBUILD
  181|      2|  if(getenv("CURL_GLOBAL_INIT"))
  ------------------
  |  Branch (181:6): [True: 0, False: 2]
  ------------------
  182|       |    /* alloc data that will leak if *cleanup() is not called! */
  183|      0|    leakpointer = curlx_malloc(1);
  ------------------
  |  | 1478|      0|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  184|      2|#endif
  185|       |
  186|      2|  return CURLE_OK;
  187|       |
  188|      0|fail:
  189|      0|  initialized--; /* undo the increase */
  190|      0|  return CURLE_FAILED_INIT;
  191|      2|}
easy.c:easy_connection:
 1196|  5.38k|{
 1197|  5.38k|  curl_socket_t sfd;
 1198|       |
 1199|  5.38k|  if(!data)
  ------------------
  |  Branch (1199:6): [True: 0, False: 5.38k]
  ------------------
 1200|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1201|       |
 1202|       |  /* only allow these to be called on handles with CURLOPT_CONNECT_ONLY */
 1203|  5.38k|  if(!data->set.connect_only) {
  ------------------
  |  Branch (1203:6): [True: 0, False: 5.38k]
  ------------------
 1204|      0|    failf(data, "CONNECT_ONLY is required");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1205|      0|    return CURLE_UNSUPPORTED_PROTOCOL;
 1206|      0|  }
 1207|       |
 1208|  5.38k|  sfd = Curl_getconnectinfo(data, connp);
 1209|       |
 1210|  5.38k|  if(sfd == CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  5.38k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1210:6): [True: 0, False: 5.38k]
  ------------------
 1211|      0|    failf(data, "Failed to get recent socket");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1212|      0|    return CURLE_UNSUPPORTED_PROTOCOL;
 1213|      0|  }
 1214|       |
 1215|  5.38k|  return CURLE_OK;
 1216|  5.38k|}

easy.c:curl_simple_lock_lock:
   64|  15.6k|{
   65|  15.6k|  for(;;) {
   66|  15.6k|    if(!atomic_exchange_explicit(lock, true, memory_order_acquire))
  ------------------
  |  Branch (66:8): [True: 15.6k, False: 0]
  ------------------
   67|  15.6k|      break;
   68|       |    /* Reduce cache coherency traffic */
   69|      0|    while(atomic_load_explicit(lock, memory_order_relaxed)) {
  ------------------
  |  Branch (69:11): [True: 0, False: 0]
  ------------------
   70|       |      /* Reduce load (not mandatory) */
   71|      0|#ifdef HAVE_BUILTIN_IA32_PAUSE
   72|      0|      __builtin_ia32_pause();
   73|       |#elif defined(__aarch64__)
   74|       |      __asm__ volatile("yield" ::: "memory");
   75|       |#elif defined(HAVE_SCHED_YIELD)
   76|       |      sched_yield();
   77|       |#endif
   78|      0|    }
   79|      0|  }
   80|  15.6k|}
easy.c:curl_simple_lock_unlock:
   83|  15.6k|{
   84|  15.6k|  atomic_store_explicit(lock, false, memory_order_release);
   85|  15.6k|}

curl_easy_escape:
   51|  2.87k|{
   52|  2.87k|  size_t len;
   53|  2.87k|  struct dynbuf d;
   54|  2.87k|  (void)curl;
   55|       |
   56|  2.87k|  if(!string || (length < 0))
  ------------------
  |  Branch (56:6): [True: 0, False: 2.87k]
  |  Branch (56:17): [True: 0, False: 2.87k]
  ------------------
   57|      0|    return NULL;
   58|       |
   59|  2.87k|  len = (length ? (size_t)length : strlen(string));
  ------------------
  |  Branch (59:10): [True: 0, False: 2.87k]
  ------------------
   60|  2.87k|  if(!len)
  ------------------
  |  Branch (60:6): [True: 0, False: 2.87k]
  ------------------
   61|      0|    return curlx_strdup("");
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
   62|       |
   63|  2.87k|  if(len > SIZE_MAX / 16)
  ------------------
  |  Branch (63:6): [True: 0, False: 2.87k]
  ------------------
   64|      0|    return NULL;
   65|       |
   66|  2.87k|  curlx_dyn_init(&d, (len * 3) + 1);
   67|       |
   68|  28.0k|  while(len--) {
  ------------------
  |  Branch (68:9): [True: 25.1k, False: 2.87k]
  ------------------
   69|       |    /* treat the characters unsigned */
   70|  25.1k|    unsigned char in = (unsigned char)*string++;
   71|       |
   72|  25.1k|    if(ISUNRESERVED(in)) {
  ------------------
  |  |   49|  25.1k|#define ISUNRESERVED(x) (ISALNUM(x) || ISURLPUNTCS(x))
  |  |  ------------------
  |  |  |  |   41|  50.3k|#define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   44|  50.3k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (44:22): [True: 18.9k, False: 6.23k]
  |  |  |  |  |  |  |  Branch (44:38): [True: 11.4k, False: 7.47k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   43|  38.8k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (43:22): [True: 5.27k, False: 8.44k]
  |  |  |  |  |  |  |  Branch (43:38): [True: 4.82k, False: 449]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   42|  8.88k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (42:22): [True: 2.65k, False: 6.23k]
  |  |  |  |  |  |  |  Branch (42:38): [True: 1.26k, False: 1.39k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISUNRESERVED(x) (ISALNUM(x) || ISURLPUNTCS(x))
  |  |  ------------------
  |  |  |  |   48|  7.62k|  (((x) == '-') || ((x) == '.') || ((x) == '_') || ((x) == '~'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (48:4): [True: 835, False: 6.78k]
  |  |  |  |  |  Branch (48:20): [True: 5.39k, False: 1.39k]
  |  |  |  |  |  Branch (48:36): [True: 943, False: 449]
  |  |  |  |  |  Branch (48:52): [True: 447, False: 2]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|       |      /* append this */
   74|  25.1k|      if(curlx_dyn_addn(&d, &in, 1))
  ------------------
  |  Branch (74:10): [True: 0, False: 25.1k]
  ------------------
   75|      0|        return NULL;
   76|  25.1k|    }
   77|      2|    else {
   78|       |      /* encode it */
   79|      2|      unsigned char out[3] = { '%' };
   80|      2|      Curl_hexbyte(&out[1], in);
   81|      2|      if(curlx_dyn_addn(&d, out, 3))
  ------------------
  |  Branch (81:10): [True: 0, False: 2]
  ------------------
   82|      0|        return NULL;
   83|      2|    }
   84|  25.1k|  }
   85|       |
   86|  2.87k|  return curlx_dyn_ptr(&d);
   87|  2.87k|}
Curl_urldecode:
  108|  1.92k|{
  109|  1.92k|  size_t alloc;
  110|  1.92k|  char *ns;
  111|       |
  112|  1.92k|  DEBUGASSERT(string);
  ------------------
  |  | 1081|  1.92k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (112:3): [True: 0, False: 1.92k]
  |  Branch (112:3): [True: 1.92k, False: 0]
  ------------------
  113|  1.92k|  DEBUGASSERT(ctrl >= REJECT_NADA); /* crash on TRUE/FALSE */
  ------------------
  |  | 1081|  1.92k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (113:3): [True: 0, False: 1.92k]
  |  Branch (113:3): [True: 1.92k, False: 0]
  ------------------
  114|       |
  115|  1.92k|  alloc = (length ? length : strlen(string));
  ------------------
  |  Branch (115:12): [True: 0, False: 1.92k]
  ------------------
  116|  1.92k|  ns = curlx_malloc(alloc + 1);
  ------------------
  |  | 1478|  1.92k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  117|       |
  118|  1.92k|  if(!ns)
  ------------------
  |  Branch (118:6): [True: 0, False: 1.92k]
  ------------------
  119|      0|    return CURLE_OUT_OF_MEMORY;
  120|       |
  121|       |  /* store output string */
  122|  1.92k|  *ostring = ns;
  123|       |
  124|  76.2k|  while(alloc) {
  ------------------
  |  Branch (124:9): [True: 74.3k, False: 1.91k]
  ------------------
  125|  74.3k|    unsigned char in = (unsigned char)*string;
  126|  74.3k|    if(('%' == in) && (alloc > 2) &&
  ------------------
  |  Branch (126:8): [True: 2.13k, False: 72.1k]
  |  Branch (126:23): [True: 2.05k, False: 73]
  ------------------
  127|  2.05k|       ISXDIGIT(string[1]) && ISXDIGIT(string[2])) {
  ------------------
  |  |   39|  76.3k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|  4.11k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 1.30k, False: 752]
  |  |  |  |  |  Branch (44:38): [True: 215, False: 1.09k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|  3.89k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 376, False: 1.46k]
  |  |  |  |  |  Branch (27:43): [True: 309, False: 67]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|  1.53k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 735, False: 798]
  |  |  |  |  |  Branch (28:43): [True: 659, False: 76]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                     ISXDIGIT(string[1]) && ISXDIGIT(string[2])) {
  ------------------
  |  |   39|  1.18k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|  2.36k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 998, False: 185]
  |  |  |  |  |  Branch (44:38): [True: 331, False: 667]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|  2.03k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 220, False: 632]
  |  |  |  |  |  Branch (27:43): [True: 92, False: 128]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|    760|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 561, False: 199]
  |  |  |  |  |  Branch (28:43): [True: 421, False: 140]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  128|       |      /* this is two hexadecimal digits following a '%' */
  129|    844|      in = (unsigned char)((curlx_hexval(string[1]) << 4) |
  ------------------
  |  |  112|    844|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  130|    844|                           curlx_hexval(string[2]));
  ------------------
  |  |  112|    844|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  131|    844|      string += 3;
  132|    844|      alloc -= 3;
  133|    844|    }
  134|  73.4k|    else {
  135|  73.4k|      string++;
  136|  73.4k|      alloc--;
  137|  73.4k|    }
  138|       |
  139|  74.3k|    if(((ctrl == REJECT_CTRL) && (in < 0x20)) ||
  ------------------
  |  Branch (139:9): [True: 24.6k, False: 49.6k]
  |  Branch (139:34): [True: 7, False: 24.6k]
  ------------------
  140|  74.3k|       ((ctrl == REJECT_ZERO) && (in == 0))) {
  ------------------
  |  Branch (140:9): [True: 49.6k, False: 24.6k]
  |  Branch (140:34): [True: 1, False: 49.6k]
  ------------------
  141|      8|      curlx_safefree(*ostring);
  ------------------
  |  | 1327|      8|  do {                      \
  |  | 1328|      8|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      8|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      8|    (ptr) = NULL;           \
  |  | 1330|      8|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 8]
  |  |  ------------------
  ------------------
  142|      8|      return CURLE_URL_MALFORMAT;
  143|      8|    }
  144|       |
  145|  74.3k|    *ns++ = (char)in;
  146|  74.3k|  }
  147|  1.91k|  *ns = 0; /* terminate it */
  148|       |
  149|  1.91k|  if(olen)
  ------------------
  |  Branch (149:6): [True: 144, False: 1.77k]
  ------------------
  150|       |    /* store output size */
  151|    144|    *olen = ns - *ostring;
  152|       |
  153|  1.91k|  return CURLE_OK;
  154|  1.92k|}
curl_free:
  191|  14.6k|{
  192|  14.6k|  curlx_free(p);
  ------------------
  |  | 1483|  14.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  193|  14.6k|}
Curl_hexbyte:
  225|  36.4k|{
  226|  36.4k|  dest[0] = Curl_udigits[val >> 4];
  227|  36.4k|  dest[1] = Curl_udigits[val & 0x0F];
  228|  36.4k|}

Curl_wildcard_dtor:
  189|  23.4k|{
  190|  23.4k|  struct WildcardData *wc = *wcp;
  191|  23.4k|  if(!wc)
  ------------------
  |  Branch (191:6): [True: 23.4k, False: 0]
  ------------------
  192|  23.4k|    return;
  193|       |
  194|      0|  if(wc->dtor) {
  ------------------
  |  Branch (194:6): [True: 0, False: 0]
  ------------------
  195|      0|    wc->dtor(wc->ftpwc);
  196|      0|    wc->dtor = ZERO_NULL;
  ------------------
  |  | 1155|      0|#define ZERO_NULL 0
  ------------------
  197|      0|    wc->ftpwc = NULL;
  198|      0|  }
  199|      0|  DEBUGASSERT(wc->ftpwc == NULL);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (199:3): [True: 0, False: 0]
  |  Branch (199:3): [True: 0, False: 0]
  ------------------
  200|       |
  201|      0|  Curl_llist_destroy(&wc->filelist, NULL);
  202|      0|  curlx_safefree(wc->path);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  203|      0|  curlx_safefree(wc->pattern);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  204|      0|  wc->state = CURLWC_INIT;
  205|      0|  curlx_free(wc);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  206|       |  *wcp = NULL;
  207|      0|}

curl_getenv:
   27|  55.0k|{
   28|       |#if defined(CURL_WINDOWS_UWP) || \
   29|       |  defined(__ORBIS__) || defined(__PROSPERO__) /* PlayStation 4 and 5 */
   30|       |  (void)variable;
   31|       |  return NULL;
   32|       |#elif defined(_WIN32)
   33|       |  /* This uses Windows API instead of C runtime getenv() to get the environment
   34|       |     variable since some changes are not always visible to the latter. #4774 */
   35|       |  char *buf = NULL;
   36|       |  char *tmp;
   37|       |  DWORD bufsize;
   38|       |  DWORD rc = 1;
   39|       |  const DWORD max = 32768; /* max env var size from MSCRT source */
   40|       |
   41|       |  for(;;) {
   42|       |    tmp = curlx_realloc(buf, rc);
   43|       |    if(!tmp) {
   44|       |      curlx_free(buf);
   45|       |      return NULL;
   46|       |    }
   47|       |
   48|       |    buf = tmp;
   49|       |    bufsize = rc;
   50|       |
   51|       |    /* it is possible for rc to be 0 if the variable was found but empty.
   52|       |       Since getenv does not make that distinction we ignore it as well. */
   53|       |    rc = GetEnvironmentVariableA(variable, buf, bufsize);
   54|       |    if(!rc || rc == bufsize || rc > max) {
   55|       |      curlx_free(buf);
   56|       |      return NULL;
   57|       |    }
   58|       |
   59|       |    /* if rc < bufsize then rc is bytes written not including null */
   60|       |    if(rc < bufsize)
   61|       |      return buf;
   62|       |
   63|       |    /* else rc is bytes needed, try again */
   64|       |  }
   65|       |#else
   66|  55.0k|  char *env = getenv(variable);
   67|  55.0k|  return (env && env[0]) ? curlx_strdup(env) : NULL;
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  |  Branch (67:11): [True: 0, False: 55.0k]
  |  Branch (67:18): [True: 0, False: 0]
  ------------------
   68|  55.0k|#endif
   69|  55.0k|}

Curl_initinfo:
   42|  23.4k|{
   43|  23.4k|  struct Progress *pro = &data->progress;
   44|  23.4k|  struct PureInfo *info = &data->info;
   45|       |
   46|  23.4k|  pro->t_nslookup = 0;
   47|  23.4k|  pro->t_connect = 0;
   48|  23.4k|  pro->t_appconnect = 0;
   49|  23.4k|  pro->t_pretransfer = 0;
   50|  23.4k|  pro->t_posttransfer = 0;
   51|  23.4k|  pro->t_starttransfer = 0;
   52|  23.4k|  pro->timespent = 0;
   53|  23.4k|  pro->t_redirect = 0;
   54|  23.4k|  pro->is_t_startransfer_set = FALSE;
  ------------------
  |  | 1058|  23.4k|#define FALSE false
  ------------------
   55|       |
   56|  23.4k|  info->httpcode = 0;
   57|  23.4k|  info->httpproxycode = 0;
   58|  23.4k|  info->httpversion = 0;
   59|  23.4k|  info->filetime = -1; /* -1 is an illegal time and thus means unknown */
   60|  23.4k|  info->timecond = FALSE;
  ------------------
  |  | 1058|  23.4k|#define FALSE false
  ------------------
   61|       |
   62|  23.4k|  info->header_size = 0;
   63|  23.4k|  info->request_size = 0;
   64|  23.4k|  info->proxyauthavail = 0;
   65|  23.4k|  info->httpauthavail = 0;
   66|  23.4k|  info->proxyauthpicked = 0;
   67|  23.4k|  info->httpauthpicked = 0;
   68|  23.4k|  info->numconnects = 0;
   69|       |
   70|  23.4k|  curlx_safefree(info->contenttype);
  ------------------
  |  | 1327|  23.4k|  do {                      \
  |  | 1328|  23.4k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  23.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  23.4k|    (ptr) = NULL;           \
  |  | 1330|  23.4k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 23.4k]
  |  |  ------------------
  ------------------
   71|  23.4k|  curlx_safefree(info->wouldredirect);
  ------------------
  |  | 1327|  23.4k|  do {                      \
  |  | 1328|  23.4k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  23.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  23.4k|    (ptr) = NULL;           \
  |  | 1330|  23.4k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 23.4k]
  |  |  ------------------
  ------------------
   72|       |
   73|  23.4k|  memset(&info->primary, 0, sizeof(info->primary));
   74|  23.4k|  info->retry_after = 0;
   75|       |
   76|  23.4k|  info->conn_scheme = 0;
   77|  23.4k|  info->conn_protocol = 0;
   78|  23.4k|  info->used_proxy = 0;
   79|       |
   80|  23.4k|#ifdef USE_SSL
   81|  23.4k|  Curl_ssl_free_certinfo(data);
   82|  23.4k|#endif
   83|  23.4k|}

Curl_hash_init:
   82|  58.0k|{
   83|  58.0k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  58.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (83:3): [True: 0, False: 58.0k]
  |  Branch (83:3): [True: 58.0k, False: 0]
  ------------------
   84|  58.0k|  DEBUGASSERT(slots);
  ------------------
  |  | 1081|  58.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (84:3): [True: 0, False: 58.0k]
  |  Branch (84:3): [True: 58.0k, False: 0]
  ------------------
   85|  58.0k|  DEBUGASSERT(hfunc);
  ------------------
  |  | 1081|  58.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (85:3): [True: 0, False: 58.0k]
  |  Branch (85:3): [True: 58.0k, False: 0]
  ------------------
   86|  58.0k|  DEBUGASSERT(comparator);
  ------------------
  |  | 1081|  58.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (86:3): [True: 0, False: 58.0k]
  |  Branch (86:3): [True: 58.0k, False: 0]
  ------------------
   87|  58.0k|  DEBUGASSERT(dtor);
  ------------------
  |  | 1081|  58.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (87:3): [True: 0, False: 58.0k]
  |  Branch (87:3): [True: 58.0k, False: 0]
  ------------------
   88|       |
   89|  58.0k|  h->table = NULL;
   90|  58.0k|  h->hash_func = hfunc;
   91|  58.0k|  h->comp_func = comparator;
   92|  58.0k|  h->dtor = dtor;
   93|  58.0k|  h->size = 0;
   94|  58.0k|  h->slots = slots;
   95|  58.0k|#ifdef DEBUGBUILD
   96|  58.0k|  h->init = HASHINIT;
  ------------------
  |  |   30|  58.0k|#define HASHINIT 0x7017e781
  ------------------
   97|  58.0k|#endif
   98|  58.0k|}
Curl_hash_add2:
  163|  15.8k|{
  164|  15.8k|  struct Curl_hash_element *he, **slot;
  165|       |
  166|  15.8k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  15.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 0, False: 15.8k]
  |  Branch (166:3): [True: 15.8k, False: 0]
  ------------------
  167|  15.8k|  DEBUGASSERT(h->slots);
  ------------------
  |  | 1081|  15.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (167:3): [True: 0, False: 15.8k]
  |  Branch (167:3): [True: 15.8k, False: 0]
  ------------------
  168|  15.8k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1081|  15.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (168:3): [True: 0, False: 15.8k]
  |  Branch (168:3): [True: 15.8k, False: 0]
  ------------------
  169|  15.8k|  if(!h->table) {
  ------------------
  |  Branch (169:6): [True: 15.3k, False: 486]
  ------------------
  170|  15.3k|    h->table = curlx_calloc(h->slots, sizeof(struct Curl_hash_element *));
  ------------------
  |  | 1480|  15.3k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  171|  15.3k|    if(!h->table)
  ------------------
  |  Branch (171:8): [True: 0, False: 15.3k]
  ------------------
  172|      0|      return NULL; /* OOM */
  173|  15.3k|  }
  174|       |
  175|  15.8k|  slot = CURL_HASH_SLOT_ADDR(h, key, key_len);
  ------------------
  |  |  159|  15.8k|#define CURL_HASH_SLOT_ADDR(x, y, z) &CURL_HASH_SLOT(x, y, z)
  |  |  ------------------
  |  |  |  |  158|  15.8k|#define CURL_HASH_SLOT(x, y, z)      x->table[(x)->hash_func(y, z, (x)->slots)]
  |  |  ------------------
  ------------------
  176|  15.8k|  for(he = *slot; he; he = he->next) {
  ------------------
  |  Branch (176:19): [True: 0, False: 15.8k]
  ------------------
  177|      0|    if(h->comp_func(he->key, he->key_len, key, key_len)) {
  ------------------
  |  Branch (177:8): [True: 0, False: 0]
  ------------------
  178|       |      /* existing key entry, overwrite by clearing old pointer */
  179|      0|      hash_elem_clear_ptr(h, he);
  180|      0|      he->ptr = p;
  181|      0|      he->dtor = dtor;
  182|      0|      return p;
  183|      0|    }
  184|      0|  }
  185|       |
  186|  15.8k|  he = hash_elem_create(key, key_len, p, dtor);
  187|  15.8k|  if(!he)
  ------------------
  |  Branch (187:6): [True: 0, False: 15.8k]
  ------------------
  188|      0|    return NULL; /* OOM */
  189|       |
  190|  15.8k|  hash_elem_link(h, slot, he);
  191|  15.8k|  return p; /* return the new entry */
  192|  15.8k|}
Curl_hash_add:
  203|  14.5k|{
  204|       |  return Curl_hash_add2(h, key, key_len, p, NULL);
  205|  14.5k|}
Curl_hash_delete:
  213|  22.8k|{
  214|  22.8k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  22.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (214:3): [True: 0, False: 22.8k]
  |  Branch (214:3): [True: 22.8k, False: 0]
  ------------------
  215|  22.8k|  DEBUGASSERT(h->slots);
  ------------------
  |  | 1081|  22.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (215:3): [True: 0, False: 22.8k]
  |  Branch (215:3): [True: 22.8k, False: 0]
  ------------------
  216|  22.8k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1081|  22.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (216:3): [True: 0, False: 22.8k]
  |  Branch (216:3): [True: 22.8k, False: 0]
  ------------------
  217|  22.8k|  if(h->table) {
  ------------------
  |  Branch (217:6): [True: 8.85k, False: 14.0k]
  ------------------
  218|  8.85k|    struct Curl_hash_element *he, **he_anchor;
  219|       |
  220|  8.85k|    he_anchor = CURL_HASH_SLOT_ADDR(h, key, key_len);
  ------------------
  |  |  159|  8.85k|#define CURL_HASH_SLOT_ADDR(x, y, z) &CURL_HASH_SLOT(x, y, z)
  |  |  ------------------
  |  |  |  |  158|  8.85k|#define CURL_HASH_SLOT(x, y, z)      x->table[(x)->hash_func(y, z, (x)->slots)]
  |  |  ------------------
  ------------------
  221|  8.85k|    while(*he_anchor) {
  ------------------
  |  Branch (221:11): [True: 7.50k, False: 1.34k]
  ------------------
  222|  7.50k|      he = *he_anchor;
  223|  7.50k|      if(h->comp_func(he->key, he->key_len, key, key_len)) {
  ------------------
  |  Branch (223:10): [True: 7.50k, False: 0]
  ------------------
  224|  7.50k|        hash_elem_unlink(h, he_anchor, he);
  225|  7.50k|        hash_elem_destroy(h, he);
  226|  7.50k|        return 0;
  227|  7.50k|      }
  228|      0|      he_anchor = &he->next;
  229|      0|    }
  230|  8.85k|  }
  231|  15.3k|  return 1;
  232|  22.8k|}
Curl_hash_pick:
  239|  57.5k|{
  240|  57.5k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  57.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (240:3): [True: 0, False: 57.5k]
  |  Branch (240:3): [True: 57.5k, False: 0]
  ------------------
  241|  57.5k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1081|  57.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (241:3): [True: 0, False: 57.5k]
  |  Branch (241:3): [True: 57.5k, False: 0]
  ------------------
  242|  57.5k|  if(h->table) {
  ------------------
  |  Branch (242:6): [True: 28.2k, False: 29.2k]
  ------------------
  243|  28.2k|    struct Curl_hash_element *he;
  244|  28.2k|    DEBUGASSERT(h->slots);
  ------------------
  |  | 1081|  28.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (244:5): [True: 0, False: 28.2k]
  |  Branch (244:5): [True: 28.2k, False: 0]
  ------------------
  245|  28.2k|    he = CURL_HASH_SLOT(h, key, key_len);
  ------------------
  |  |  158|  28.2k|#define CURL_HASH_SLOT(x, y, z)      x->table[(x)->hash_func(y, z, (x)->slots)]
  ------------------
  246|  28.2k|    while(he) {
  ------------------
  |  Branch (246:11): [True: 27.4k, False: 751]
  ------------------
  247|  27.4k|      if(h->comp_func(he->key, he->key_len, key, key_len)) {
  ------------------
  |  Branch (247:10): [True: 27.4k, False: 0]
  ------------------
  248|  27.4k|        return he->ptr;
  249|  27.4k|      }
  250|      0|      he = he->next;
  251|      0|    }
  252|  28.2k|  }
  253|  30.0k|  return NULL;
  254|  57.5k|}
Curl_hash_destroy:
  264|  58.0k|{
  265|  58.0k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1081|  58.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (265:3): [True: 0, False: 58.0k]
  |  Branch (265:3): [True: 58.0k, False: 0]
  ------------------
  266|  58.0k|  if(h->table) {
  ------------------
  |  Branch (266:6): [True: 15.3k, False: 42.6k]
  ------------------
  267|  15.3k|    Curl_hash_clean(h);
  268|  15.3k|    curlx_safefree(h->table);
  ------------------
  |  | 1327|  15.3k|  do {                      \
  |  | 1328|  15.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.3k|    (ptr) = NULL;           \
  |  | 1330|  15.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.3k]
  |  |  ------------------
  ------------------
  269|  15.3k|  }
  270|  58.0k|  DEBUGASSERT(h->size == 0);
  ------------------
  |  | 1081|  58.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (270:3): [True: 0, False: 58.0k]
  |  Branch (270:3): [True: 58.0k, False: 0]
  ------------------
  271|  58.0k|  h->slots = 0;
  272|  58.0k|}
Curl_hash_clean:
  279|  15.3k|{
  280|  15.3k|  if(h && h->table) {
  ------------------
  |  Branch (280:6): [True: 15.3k, False: 0]
  |  Branch (280:11): [True: 15.3k, False: 0]
  ------------------
  281|  15.3k|    struct Curl_hash_element *he, **he_anchor;
  282|  15.3k|    size_t i;
  283|  15.3k|    DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1081|  15.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (283:5): [True: 0, False: 15.3k]
  |  Branch (283:5): [True: 15.3k, False: 0]
  ------------------
  284|  1.22M|    for(i = 0; i < h->slots; ++i) {
  ------------------
  |  Branch (284:16): [True: 1.21M, False: 15.3k]
  ------------------
  285|  1.21M|      he_anchor = &h->table[i];
  286|  1.21M|      while(*he_anchor) {
  ------------------
  |  Branch (286:13): [True: 8.37k, False: 1.21M]
  ------------------
  287|  8.37k|        he = *he_anchor;
  288|  8.37k|        hash_elem_unlink(h, he_anchor, he);
  289|  8.37k|        hash_elem_destroy(h, he);
  290|  8.37k|      }
  291|  1.21M|    }
  292|  15.3k|  }
  293|  15.3k|}
Curl_hash_count:
  296|  10.3k|{
  297|  10.3k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (297:3): [True: 0, False: 10.3k]
  |  Branch (297:3): [True: 10.3k, False: 0]
  ------------------
  298|  10.3k|  return h->size;
  299|  10.3k|}
Curl_hash_clean_with_criterium:
  304|  10.3k|{
  305|  10.3k|  size_t i;
  306|       |
  307|  10.3k|  if(!h || !h->table)
  ------------------
  |  Branch (307:6): [True: 0, False: 10.3k]
  |  Branch (307:12): [True: 0, False: 10.3k]
  ------------------
  308|      0|    return;
  309|       |
  310|  10.3k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (310:3): [True: 0, False: 10.3k]
  |  Branch (310:3): [True: 10.3k, False: 0]
  ------------------
  311|   743k|  for(i = 0; i < h->slots; ++i) {
  ------------------
  |  Branch (311:14): [True: 733k, False: 10.3k]
  ------------------
  312|   733k|    struct Curl_hash_element *he, **he_anchor = &h->table[i];
  313|   743k|    while(*he_anchor) {
  ------------------
  |  Branch (313:11): [True: 10.3k, False: 733k]
  ------------------
  314|       |      /* ask the callback function if we shall remove this entry or not */
  315|  10.3k|      if(!comp || comp(user, (*he_anchor)->ptr)) {
  ------------------
  |  Branch (315:10): [True: 0, False: 10.3k]
  |  Branch (315:19): [True: 0, False: 10.3k]
  ------------------
  316|      0|        he = *he_anchor;
  317|      0|        hash_elem_unlink(h, he_anchor, he);
  318|      0|        hash_elem_destroy(h, he);
  319|      0|      }
  320|  10.3k|      else
  321|  10.3k|        he_anchor = &(*he_anchor)->next;
  322|  10.3k|    }
  323|   733k|  }
  324|  10.3k|}
Curl_hash_str:
  327|  52.9k|{
  328|  52.9k|  const char *key_str = (const char *)key;
  329|  52.9k|  const char *end = key_str + key_length;
  330|  52.9k|  size_t h = 5381;
  331|       |
  332|   914k|  while(key_str < end) {
  ------------------
  |  Branch (332:9): [True: 861k, False: 52.9k]
  ------------------
  333|   861k|    size_t j = (size_t)*key_str++;
  334|   861k|    h += h << 5;
  335|   861k|    h ^= j;
  336|   861k|  }
  337|       |
  338|  52.9k|  return (h % slots_num);
  339|  52.9k|}
curlx_str_key_compare:
  343|  34.9k|{
  344|  34.9k|  if((key1_len == key2_len) && !memcmp(k1, k2, key1_len))
  ------------------
  |  Branch (344:6): [True: 34.9k, False: 0]
  |  Branch (344:32): [True: 34.9k, False: 0]
  ------------------
  345|  34.9k|    return 1;
  346|       |
  347|      0|  return 0;
  348|  34.9k|}
Curl_hash_start_iterate:
  352|  23.7k|{
  353|  23.7k|  DEBUGASSERT(hash->init == HASHINIT);
  ------------------
  |  | 1081|  23.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (353:3): [True: 0, False: 23.7k]
  |  Branch (353:3): [True: 23.7k, False: 0]
  ------------------
  354|  23.7k|  iter->hash = hash;
  355|  23.7k|  iter->slot_index = 0;
  356|  23.7k|  iter->current = NULL;
  357|  23.7k|#ifdef DEBUGBUILD
  358|  23.7k|  iter->init = ITERINIT;
  ------------------
  |  |   31|  23.7k|#define ITERINIT 0x5FEDCBA9
  ------------------
  359|  23.7k|#endif
  360|  23.7k|}
Curl_hash_next_element:
  364|  30.7k|{
  365|  30.7k|  struct Curl_hash *h;
  366|  30.7k|  DEBUGASSERT(iter->init == ITERINIT);
  ------------------
  |  | 1081|  30.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (366:3): [True: 0, False: 30.7k]
  |  Branch (366:3): [True: 30.7k, False: 0]
  ------------------
  367|  30.7k|  h = iter->hash;
  368|  30.7k|  if(!h->table)
  ------------------
  |  Branch (368:6): [True: 7.82k, False: 22.9k]
  ------------------
  369|  7.82k|    return NULL; /* empty hash, nothing to return */
  370|       |
  371|       |  /* Get the next element in the current list, if any */
  372|  22.9k|  if(iter->current)
  ------------------
  |  Branch (372:6): [True: 7.03k, False: 15.9k]
  ------------------
  373|  7.03k|    iter->current = iter->current->next;
  374|       |
  375|       |  /* If we have reached the end of the list, find the next one */
  376|  22.9k|  if(!iter->current) {
  ------------------
  |  Branch (376:6): [True: 22.9k, False: 0]
  ------------------
  377|  22.9k|    size_t i;
  378|  1.53M|    for(i = iter->slot_index; i < h->slots; i++) {
  ------------------
  |  Branch (378:31): [True: 1.52M, False: 15.0k]
  ------------------
  379|  1.52M|      if(h->table[i]) {
  ------------------
  |  Branch (379:10): [True: 7.86k, False: 1.51M]
  ------------------
  380|  7.86k|        iter->current = h->table[i];
  381|  7.86k|        iter->slot_index = i + 1;
  382|  7.86k|        break;
  383|  7.86k|      }
  384|  1.52M|    }
  385|  22.9k|  }
  386|       |
  387|  22.9k|  return iter->current;
  388|  30.7k|}
hash.c:hash_elem_clear_ptr:
  122|  15.8k|{
  123|  15.8k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  15.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (123:3): [True: 0, False: 15.8k]
  |  Branch (123:3): [True: 15.8k, False: 0]
  ------------------
  124|  15.8k|  DEBUGASSERT(he);
  ------------------
  |  | 1081|  15.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (124:3): [True: 0, False: 15.8k]
  |  Branch (124:3): [True: 15.8k, False: 0]
  ------------------
  125|  15.8k|  if(he->ptr) {
  ------------------
  |  Branch (125:6): [True: 15.8k, False: 0]
  ------------------
  126|  15.8k|    if(he->dtor)
  ------------------
  |  Branch (126:8): [True: 1.34k, False: 14.5k]
  ------------------
  127|  1.34k|      he->dtor(he->key, he->key_len, he->ptr);
  128|  14.5k|    else
  129|  14.5k|      h->dtor(he->ptr);
  130|       |    he->ptr = NULL;
  131|  15.8k|  }
  132|  15.8k|}
hash.c:hash_elem_create:
  104|  15.8k|{
  105|  15.8k|  struct Curl_hash_element *he;
  106|       |
  107|       |  /* allocate the struct plus memory after it to store the key */
  108|  15.8k|  he = curlx_malloc(sizeof(struct Curl_hash_element) + key_len);
  ------------------
  |  | 1478|  15.8k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  109|  15.8k|  if(he) {
  ------------------
  |  Branch (109:6): [True: 15.8k, False: 0]
  ------------------
  110|  15.8k|    he->next = NULL;
  111|       |    /* copy the key */
  112|  15.8k|    memcpy(he->key, key, key_len);
  113|  15.8k|    he->key_len = key_len;
  114|  15.8k|    he->ptr = CURL_UNCONST(p);
  ------------------
  |  |  866|  15.8k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  115|  15.8k|    he->dtor = dtor;
  116|  15.8k|  }
  117|  15.8k|  return he;
  118|  15.8k|}
hash.c:hash_elem_link:
  152|  15.8k|{
  153|  15.8k|  he->next = *he_anchor;
  154|  15.8k|  *he_anchor = he;
  155|  15.8k|  ++h->size;
  156|  15.8k|}
hash.c:hash_elem_unlink:
  144|  15.8k|{
  145|  15.8k|  *he_anchor = he->next;
  146|  15.8k|  --h->size;
  147|  15.8k|}
hash.c:hash_elem_destroy:
  136|  15.8k|{
  137|  15.8k|  hash_elem_clear_ptr(h, he);
  138|  15.8k|  curlx_free(he);
  ------------------
  |  | 1483|  15.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  139|  15.8k|}

Curl_headers_push:
  224|  31.2k|{
  225|  31.2k|  char *value = NULL;
  226|  31.2k|  char *name = NULL;
  227|  31.2k|  struct Curl_header_store *hs;
  228|  31.2k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  229|  31.2k|  const size_t ilen = hlen;
  230|       |
  231|  31.2k|  if((header[0] == '\r') || (header[0] == '\n'))
  ------------------
  |  Branch (231:6): [True: 5.29k, False: 25.9k]
  |  Branch (231:29): [True: 43, False: 25.9k]
  ------------------
  232|       |    /* ignore the body separator */
  233|  5.33k|    return CURLE_OK;
  234|       |
  235|       |  /* trim off newline characters */
  236|  25.9k|  if(hlen && (header[hlen - 1] == '\n'))
  ------------------
  |  Branch (236:6): [True: 25.9k, False: 0]
  |  Branch (236:14): [True: 24.8k, False: 1.06k]
  ------------------
  237|  24.8k|    hlen--;
  238|  25.9k|  if(hlen && (header[hlen - 1] == '\r'))
  ------------------
  |  Branch (238:6): [True: 25.9k, False: 0]
  |  Branch (238:14): [True: 21.7k, False: 4.18k]
  ------------------
  239|  21.7k|    hlen--;
  240|  25.9k|  if(hlen == ilen)
  ------------------
  |  Branch (240:6): [True: 579, False: 25.3k]
  ------------------
  241|       |    /* neither CR nor LF as terminator is not a valid header */
  242|    579|    return CURLE_WEIRD_SERVER_REPLY;
  243|       |
  244|  25.3k|  if(ISBLANK(header[0])) {
  ------------------
  |  |   45|  25.3k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 27, False: 25.3k]
  |  |  |  Branch (45:38): [True: 10, False: 25.3k]
  |  |  ------------------
  ------------------
  245|       |    /* pass leading blanks */
  246|    701|    while(hlen && ISBLANK(*header)) {
  ------------------
  |  |   45|    699|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 238, False: 461]
  |  |  |  Branch (45:38): [True: 426, False: 35]
  |  |  ------------------
  ------------------
  |  Branch (246:11): [True: 699, False: 2]
  ------------------
  247|    664|      header++;
  248|    664|      hlen--;
  249|    664|    }
  250|     37|    if(!hlen)
  ------------------
  |  Branch (250:8): [True: 2, False: 35]
  ------------------
  251|      2|      return CURLE_WEIRD_SERVER_REPLY;
  252|     37|  }
  253|  25.3k|  if(Curl_llist_count(&data->state.httphdrs) >= MAX_HTTP_RESP_HEADER_COUNT) {
  ------------------
  |  |  158|  25.3k|#define MAX_HTTP_RESP_HEADER_COUNT 5000
  ------------------
  |  Branch (253:6): [True: 0, False: 25.3k]
  ------------------
  254|      0|    failf(data, "Too many response headers, %d is max",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  255|      0|          MAX_HTTP_RESP_HEADER_COUNT);
  ------------------
  |  |  158|      0|#define MAX_HTTP_RESP_HEADER_COUNT 5000
  ------------------
  256|      0|    return CURLE_TOO_LARGE;
  257|      0|  }
  258|       |
  259|  25.3k|  hs = curlx_calloc(1, sizeof(*hs) + hlen);
  ------------------
  |  | 1480|  25.3k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  260|  25.3k|  if(!hs)
  ------------------
  |  Branch (260:6): [True: 0, False: 25.3k]
  ------------------
  261|      0|    return CURLE_OUT_OF_MEMORY;
  262|  25.3k|  memcpy(hs->buffer, header, hlen);
  263|  25.3k|  hs->buffer[hlen] = 0; /* null-terminate */
  264|       |
  265|  25.3k|  result = namevalue(hs->buffer, hlen, type, &name, &value);
  266|  25.3k|  if(!result) {
  ------------------
  |  Branch (266:6): [True: 25.2k, False: 65]
  ------------------
  267|  25.2k|    hs->name = name;
  268|  25.2k|    hs->value = value;
  269|  25.2k|    hs->type = type;
  270|  25.2k|    hs->request = data->state.requests;
  271|       |
  272|       |    /* insert this node into the list of headers */
  273|  25.2k|    Curl_llist_append(&data->state.httphdrs, hs, &hs->node);
  274|  25.2k|    data->state.prevhead = hs;
  275|  25.2k|  }
  276|     65|  else {
  277|     65|    failf(data, "Invalid response header");
  ------------------
  |  |   62|     65|#define failf Curl_failf
  ------------------
  278|     65|    curlx_free(hs);
  ------------------
  |  | 1483|     65|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  279|     65|  }
  280|  25.3k|  return result;
  281|  25.3k|}
Curl_headers_init:
  325|  17.1k|{
  326|  17.1k|  struct Curl_cwriter *writer;
  327|  17.1k|  CURLcode result;
  328|       |
  329|  17.1k|  if(data->conn && (data->conn->scheme->protocol & PROTO_FAMILY_HTTP)) {
  ------------------
  |  |   84|  17.1k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1078|  17.1k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1079|  17.1k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  17.1k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  17.1k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  17.1k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (329:6): [True: 17.1k, False: 0]
  |  Branch (329:20): [True: 17.1k, False: 0]
  ------------------
  330|       |    /* avoid installing it twice */
  331|  17.1k|    if(Curl_cwriter_get_by_name(data, hds_cw_collect.name))
  ------------------
  |  Branch (331:8): [True: 6.79k, False: 10.3k]
  ------------------
  332|  6.79k|      return CURLE_OK;
  333|       |
  334|  10.3k|    result = Curl_cwriter_create(&writer, data, &hds_cw_collect,
  335|  10.3k|                                 CURL_CW_PROTOCOL);
  336|  10.3k|    if(result)
  ------------------
  |  Branch (336:8): [True: 0, False: 10.3k]
  ------------------
  337|      0|      return result;
  338|       |
  339|  10.3k|    result = Curl_cwriter_add(data, writer);
  340|  10.3k|    if(result) {
  ------------------
  |  Branch (340:8): [True: 0, False: 10.3k]
  ------------------
  341|      0|      Curl_cwriter_free(data, writer);
  342|      0|      return result;
  343|      0|    }
  344|  10.3k|  }
  345|  10.3k|  return CURLE_OK;
  346|  17.1k|}
Curl_headers_cleanup:
  352|  23.4k|{
  353|  23.4k|  struct Curl_llist_node *e;
  354|  23.4k|  struct Curl_llist_node *n;
  355|       |
  356|  48.7k|  for(e = Curl_llist_head(&data->state.httphdrs); e; e = n) {
  ------------------
  |  Branch (356:51): [True: 25.2k, False: 23.4k]
  ------------------
  357|  25.2k|    struct Curl_header_store *hs = Curl_node_elem(e);
  358|  25.2k|    n = Curl_node_next(e);
  359|  25.2k|    curlx_free(hs);
  ------------------
  |  | 1483|  25.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  360|  25.2k|  }
  361|  23.4k|  headers_reset(data);
  362|  23.4k|  return CURLE_OK;
  363|  23.4k|}
headers.c:namevalue:
  183|  25.3k|{
  184|  25.3k|  char *end = header + hlen - 1; /* point to the last byte */
  185|  25.3k|  DEBUGASSERT(hlen);
  ------------------
  |  | 1081|  25.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (185:3): [True: 0, False: 25.3k]
  |  Branch (185:3): [True: 25.3k, False: 0]
  ------------------
  186|  25.3k|  *name = header;
  187|       |
  188|  25.3k|  if(type == CURLH_PSEUDO) {
  ------------------
  |  |   45|  25.3k|#define CURLH_PSEUDO    (1 << 4) /* pseudo headers */
  ------------------
  |  Branch (188:6): [True: 487, False: 24.8k]
  ------------------
  189|    487|    if(*header != ':')
  ------------------
  |  Branch (189:8): [True: 0, False: 487]
  ------------------
  190|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  191|    487|    header++;
  192|    487|  }
  193|       |
  194|       |  /* Find the end of the header name */
  195|   270k|  while(*header && (*header != ':'))
  ------------------
  |  Branch (195:9): [True: 270k, False: 65]
  |  Branch (195:20): [True: 245k, False: 25.2k]
  ------------------
  196|   245k|    ++header;
  197|       |
  198|  25.3k|  if(*header)
  ------------------
  |  Branch (198:6): [True: 25.2k, False: 65]
  ------------------
  199|       |    /* Skip over colon, null it */
  200|  25.2k|    *header++ = 0;
  201|     65|  else
  202|     65|    return CURLE_BAD_FUNCTION_ARGUMENT;
  203|       |
  204|       |  /* skip all leading blank letters */
  205|  48.4k|  while(ISBLANK(*header))
  ------------------
  |  |   45|  48.4k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 22.3k, False: 26.0k]
  |  |  |  Branch (45:38): [True: 790, False: 25.2k]
  |  |  ------------------
  ------------------
  206|  23.1k|    header++;
  207|       |
  208|  25.2k|  *value = header;
  209|       |
  210|       |  /* skip all trailing space letters */
  211|  25.9k|  while((end > header) && ISBLANK(*end))
  ------------------
  |  |   45|  15.3k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 355, False: 15.0k]
  |  |  |  Branch (45:38): [True: 347, False: 14.6k]
  |  |  ------------------
  ------------------
  |  Branch (211:9): [True: 15.3k, False: 10.6k]
  ------------------
  212|    702|    *end-- = 0; /* null-terminate */
  213|  25.2k|  return CURLE_OK;
  214|  25.3k|}
headers.c:hds_cw_collect_write:
  299|  40.8k|{
  300|  40.8k|  if((type & CLIENTWRITE_HEADER) && !(type & CLIENTWRITE_STATUS)) {
  ------------------
  |  |   44|  40.8k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
                if((type & CLIENTWRITE_HEADER) && !(type & CLIENTWRITE_STATUS)) {
  ------------------
  |  |   45|  37.0k|#define CLIENTWRITE_STATUS  (1 << 3) /* a special status HEADER */
  ------------------
  |  Branch (300:6): [True: 37.0k, False: 3.82k]
  |  Branch (300:37): [True: 30.7k, False: 6.22k]
  ------------------
  301|  30.7k|    unsigned char htype = (unsigned char)
  302|  30.7k|      (type & CLIENTWRITE_CONNECT ? CURLH_CONNECT :
  ------------------
  |  |   46|  30.7k|#define CLIENTWRITE_CONNECT (1 << 4) /* a CONNECT related HEADER */
  ------------------
                    (type & CLIENTWRITE_CONNECT ? CURLH_CONNECT :
  ------------------
  |  |   43|      0|#define CURLH_CONNECT   (1 << 2) /* CONNECT headers */
  ------------------
  |  Branch (302:8): [True: 0, False: 30.7k]
  ------------------
  303|  30.7k|       (type & CLIENTWRITE_1XX ? CURLH_1XX :
  ------------------
  |  |   47|  30.7k|#define CLIENTWRITE_1XX     (1 << 5) /* a 1xx response related HEADER */
  ------------------
                     (type & CLIENTWRITE_1XX ? CURLH_1XX :
  ------------------
  |  |   44|  6.43k|#define CURLH_1XX       (1 << 3) /* 1xx headers */
  ------------------
  |  Branch (303:9): [True: 6.43k, False: 24.3k]
  ------------------
  304|  30.7k|        (type & CLIENTWRITE_TRAILER ? CURLH_TRAILER :
  ------------------
  |  |   48|  24.3k|#define CLIENTWRITE_TRAILER (1 << 6) /* a trailer HEADER */
  ------------------
                      (type & CLIENTWRITE_TRAILER ? CURLH_TRAILER :
  ------------------
  |  |   42|     91|#define CURLH_TRAILER   (1 << 1) /* trailers */
  ------------------
  |  Branch (304:10): [True: 91, False: 24.2k]
  ------------------
  305|  24.3k|         CURLH_HEADER)));
  ------------------
  |  |   41|  24.2k|#define CURLH_HEADER    (1 << 0) /* plain server header */
  ------------------
  306|  30.7k|    CURLcode result = Curl_headers_push(data, buf, blen, htype);
  307|  30.7k|    CURL_TRC_WRITE(data, "header_collect pushed(type=%x, len=%zu) -> %d",
  ------------------
  |  |  158|  30.7k|  do {                                                     \
  |  |  159|  30.7k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  30.7k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  61.5k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 30.7k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 30.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  61.5k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  30.7k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  30.7k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  30.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 30.7k]
  |  |  ------------------
  ------------------
  308|  30.7k|                   htype, blen, result);
  309|  30.7k|    if(result)
  ------------------
  |  Branch (309:8): [True: 646, False: 30.1k]
  ------------------
  310|    646|      return result;
  311|  30.7k|  }
  312|  40.1k|  return Curl_cwriter_write(data, writer->next, type, buf, blen);
  313|  40.8k|}
headers.c:headers_reset:
  287|  23.4k|{
  288|  23.4k|  Curl_llist_init(&data->state.httphdrs, NULL);
  289|       |  data->state.prevhead = NULL;
  290|  23.4k|}

Curl_resolv_dns_queries:
  126|  7.53k|{
  127|  7.53k|  (void)data;
  128|  7.53k|  switch(ip_version) {
  129|      0|  case CURL_IPRESOLVE_V6:
  ------------------
  |  | 2306|      0|#define CURL_IPRESOLVE_V6       2L /* uses only IPv6 addresses/connections */
  ------------------
  |  Branch (129:3): [True: 0, False: 7.53k]
  ------------------
  130|      0|    return CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  131|      0|  case CURL_IPRESOLVE_V4:
  ------------------
  |  | 2305|      0|#define CURL_IPRESOLVE_V4       1L /* uses only IPv4 addresses/connections */
  ------------------
  |  Branch (131:3): [True: 0, False: 7.53k]
  ------------------
  132|      0|    return CURL_DNSQ_A;
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  133|  7.53k|  default:
  ------------------
  |  Branch (133:3): [True: 7.53k, False: 0]
  ------------------
  134|  7.53k|    if(ipv6works(data))
  ------------------
  |  Branch (134:8): [True: 7.53k, False: 0]
  ------------------
  135|  7.53k|      return (CURL_DNSQ_A | CURL_DNSQ_AAAA);
  ------------------
  |  |   51|  7.53k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                    return (CURL_DNSQ_A | CURL_DNSQ_AAAA);
  ------------------
  |  |   52|  7.53k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  136|      0|    else
  137|      0|      return CURL_DNSQ_A;
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  138|  7.53k|  }
  139|  7.53k|}
Curl_probeipv6:
  290|  7.82k|{
  291|       |  /* probe to see if we have a working IPv6 stack */
  292|  7.82k|  curl_socket_t s = CURL_SOCKET(PF_INET6, SOCK_DGRAM, 0);
  ------------------
  |  | 1436|  7.82k|  curl_dbg_socket((int)(domain), type, protocol, __LINE__, __FILE__)
  ------------------
  293|  7.82k|  multi->ipv6_works = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  294|  7.82k|  if(s == CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  7.82k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (294:6): [True: 0, False: 7.82k]
  ------------------
  295|      0|    if(SOCKERRNO == SOCKENOMEM)
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
                  if(SOCKERRNO == SOCKENOMEM)
  ------------------
  |  | 1133|      0|#define SOCKENOMEM        ENOMEM
  ------------------
  |  Branch (295:8): [True: 0, False: 0]
  ------------------
  296|      0|      return CURLE_OUT_OF_MEMORY;
  297|      0|  }
  298|  7.82k|  else {
  299|  7.82k|    multi->ipv6_works = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  300|  7.82k|    sclose(s);
  ------------------
  |  | 1428|  7.82k|#define sclose(sockfd) curl_dbg_sclose(sockfd, __LINE__, __FILE__)
  ------------------
  301|  7.82k|  }
  302|  7.82k|  return CURLE_OK;
  303|  7.82k|}
Curl_host_is_ipnum:
  321|  19.9k|{
  322|  19.9k|  struct in_addr in;
  323|  19.9k|#ifdef USE_IPV6
  324|  19.9k|  struct in6_addr in6;
  325|  19.9k|#endif
  326|  19.9k|  if(curlx_inet_pton(AF_INET, hostname, &in) > 0
  ------------------
  |  |   43|  19.9k|  inet_pton(x, y, z)
  ------------------
  |  Branch (326:6): [True: 8.12k, False: 11.8k]
  ------------------
  327|  11.8k|#ifdef USE_IPV6
  328|  11.8k|     || curlx_inet_pton(AF_INET6, hostname, &in6) > 0
  ------------------
  |  |   43|  11.8k|  inet_pton(x, y, z)
  ------------------
  |  Branch (328:9): [True: 18, False: 11.8k]
  ------------------
  329|  19.9k|#endif
  330|  19.9k|    )
  331|  8.13k|    return TRUE;
  ------------------
  |  | 1055|  8.13k|#define TRUE true
  ------------------
  332|  11.8k|  return FALSE;
  ------------------
  |  | 1058|  11.8k|#define FALSE false
  ------------------
  333|  19.9k|}
Curl_resolv_announce_start:
  364|  7.02k|{
  365|  7.02k|  if(data->set.resolver_start) {
  ------------------
  |  Branch (365:6): [True: 0, False: 7.02k]
  ------------------
  366|      0|    int rc;
  367|       |
  368|      0|    CURL_TRC_DNS(data, "announcing resolve to application");
  ------------------
  |  |  168|      0|  do {                                 \
  |  |  169|      0|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|      0|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  369|      0|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  370|      0|    rc = data->set.resolver_start(resolver, NULL,
  371|      0|                                  data->set.resolver_start_client);
  372|      0|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  373|      0|    if(rc) {
  ------------------
  |  Branch (373:8): [True: 0, False: 0]
  ------------------
  374|      0|      CURL_TRC_DNS(data, "application aborted resolve");
  ------------------
  |  |  168|      0|  do {                                 \
  |  |  169|      0|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|      0|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  375|      0|      return CURLE_ABORTED_BY_CALLBACK;
  376|      0|    }
  377|      0|  }
  378|  7.02k|  return CURLE_OK;
  379|  7.02k|}
Curl_resolv:
  984|  7.53k|{
  985|  7.53k|  *presolv_id = 0;
  986|  7.53k|  *pdns = NULL;
  987|       |
  988|  7.53k|  if(timeout_ms < 0)
  ------------------
  |  Branch (988:6): [True: 0, False: 7.53k]
  ------------------
  989|       |    /* got an already expired timeout */
  990|      0|    return CURLE_OPERATION_TIMEDOUT;
  991|  7.53k|  else if(!timeout_ms)
  ------------------
  |  Branch (991:11): [True: 0, False: 7.53k]
  ------------------
  992|      0|    timeout_ms = CURL_TIMEOUT_RESOLVE_MS;
  ------------------
  |  |   38|      0|#define CURL_TIMEOUT_RESOLVE_MS (300 * 1000)
  ------------------
  993|       |
  994|  7.53k|#ifdef USE_UNIX_SOCKETS
  995|  7.53k|  if(peer->unix_socket)
  ------------------
  |  Branch (995:6): [True: 0, False: 7.53k]
  ------------------
  996|      0|    return resolv_unix(data, peer->hostname, (bool)peer->abstract_uds, pdns);
  997|       |#else
  998|       |  if(peer->unix_socket)
  999|       |    return hostip_resolv_failed(data, peer->hostname, for_proxy);
 1000|       |#endif
 1001|       |
 1002|       |#ifdef USE_ALARM_TIMEOUT
 1003|       |  if(timeout_ms && data->set.no_signal) {
 1004|       |    /* Cannot use ALARM when signals are disabled */
 1005|       |    timeout_ms = 0;
 1006|       |  }
 1007|       |  if(timeout_ms && !Curl_doh_wanted(data)) {
 1008|       |    return resolv_alarm_timeout(data, dns_queries, peer->hostname, peer->port,
 1009|       |                                transport, for_proxy, timeout_ms, presolv_id,
 1010|       |                                pdns);
 1011|       |  }
 1012|       |#endif /* !USE_ALARM_TIMEOUT */
 1013|       |
 1014|       |#ifndef CURLRES_ASYNCH
 1015|       |  if(timeout_ms)
 1016|       |    infof(data, "timeout on name lookup is not supported");
 1017|       |#endif
 1018|       |
 1019|  7.53k|  return hostip_resolv(data, dns_queries, peer->hostname, peer->port,
 1020|       |                       transport, for_proxy, timeout_ms, TRUE, presolv_id,
  ------------------
  |  | 1055|  7.53k|#define TRUE true
  ------------------
 1021|  7.53k|                       pdns);
 1022|  7.53k|}
Curl_resolv_destroy:
 1099|  6.79k|{
 1100|  6.79k|  struct Curl_resolv_async **panchor = &data->state.async;
 1101|       |
 1102|  6.79k|  for(; *panchor; panchor = &(*panchor)->next) {
  ------------------
  |  Branch (1102:9): [True: 0, False: 6.79k]
  ------------------
 1103|      0|    struct Curl_resolv_async *async = *panchor;
 1104|      0|    if(async->id == resolv_id) {
  ------------------
  |  Branch (1104:8): [True: 0, False: 0]
  ------------------
 1105|      0|      *panchor = async->next;
 1106|      0|      Curl_async_destroy(data, async);
 1107|      0|      break;
 1108|      0|    }
 1109|      0|  }
 1110|  6.79k|}
Curl_resolv_shutdown_all:
 1113|  10.3k|{
 1114|  10.3k|  struct Curl_resolv_async *async = data->state.async;
 1115|  10.3k|  for(; async; async = async->next) {
  ------------------
  |  Branch (1115:9): [True: 0, False: 10.3k]
  ------------------
 1116|      0|    Curl_async_shutdown(data, async);
 1117|      0|  }
 1118|  10.3k|}
Curl_resolv_destroy_all:
 1121|  26.7k|{
 1122|  26.7k|  while(data->state.async) {
  ------------------
  |  Branch (1122:9): [True: 0, False: 26.7k]
  ------------------
 1123|      0|    struct Curl_resolv_async *async = data->state.async;
 1124|      0|    data->state.async = async->next;
 1125|      0|    Curl_async_destroy(data, async);
 1126|      0|  }
 1127|  26.7k|}
hostip.c:ipv6works:
  309|  7.53k|{
  310|  7.53k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (310:3): [True: 0, False: 7.53k]
  |  Branch (310:3): [True: 7.53k, False: 0]
  ------------------
  311|  7.53k|  DEBUGASSERT(data->multi);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (311:3): [True: 0, False: 7.53k]
  |  Branch (311:3): [True: 7.53k, False: 0]
  ------------------
  312|  7.53k|  return data ? data->multi->ipv6_works : FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  |  Branch (312:10): [True: 7.53k, False: 0]
  ------------------
  313|  7.53k|}
hostip.c:hostip_resolv:
  677|  7.53k|{
  678|  7.53k|  size_t hostname_len;
  679|  7.53k|  CURLcode result = RESOLV_FAIL(for_proxy);
  ------------------
  |  |   74|  7.53k|  ((for_proxy) ? CURLE_COULDNT_RESOLVE_PROXY : CURLE_COULDNT_RESOLVE_HOST)
  |  |  ------------------
  |  |  |  Branch (74:4): [True: 0, False: 7.53k]
  |  |  ------------------
  ------------------
  680|  7.53k|  bool cache_dns = FALSE;
  ------------------
  |  | 1058|  7.53k|#define FALSE false
  ------------------
  681|       |
  682|  7.53k|  (void)timeout_ms; /* not used in all ifdefs */
  683|  7.53k|  *presolv_id = 0;
  684|  7.53k|  *pdns = NULL;
  685|       |
  686|       |#ifdef CURL_DISABLE_DOH
  687|       |  (void)allowDOH;
  688|       |#endif
  689|       |
  690|       |  /* We should intentionally error and not resolve .onion TLDs */
  691|  7.53k|  hostname_len = strlen(hostname);
  692|  7.53k|  DEBUGASSERT(hostname_len);
  ------------------
  |  | 1081|  7.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (692:3): [True: 0, False: 7.53k]
  |  Branch (692:3): [True: 7.53k, False: 0]
  ------------------
  693|  7.53k|  if(hostname_len >= 7 &&
  ------------------
  |  Branch (693:6): [True: 7.53k, False: 0]
  ------------------
  694|  7.53k|     (curl_strequal(&hostname[hostname_len - 6], ".onion") ||
  ------------------
  |  Branch (694:7): [True: 0, False: 7.53k]
  ------------------
  695|  7.53k|      curl_strequal(&hostname[hostname_len - 7], ".onion."))) {
  ------------------
  |  Branch (695:7): [True: 0, False: 7.53k]
  ------------------
  696|      0|    failf(data, "Not resolving .onion address (RFC 7686)");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  697|      0|    goto out;
  698|      0|  }
  699|       |
  700|  7.53k|#ifdef DEBUGBUILD
  701|  7.53k|  CURL_TRC_DNS(data, "hostip_resolv(%s:%u, queries=%s)",
  ------------------
  |  |  168|  7.53k|  do {                                 \
  |  |  169|  7.53k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  7.53k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.53k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.53k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  7.53k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
  702|  7.53k|               hostname, port, Curl_resolv_query_str(dns_queries));
  703|  7.53k|  if((CURL_DNSQ_IP(dns_queries) == CURL_DNSQ_AAAA) &&
  ------------------
  |  |   56|  7.53k|#define CURL_DNSQ_IP(x)       (uint8_t)((x)&(CURL_DNSQ_A | CURL_DNSQ_AAAA))
  |  |  ------------------
  |  |  |  |   51|  7.53k|#define CURL_DNSQ_A           (1U << 0)
  |  |  ------------------
  |  |               #define CURL_DNSQ_IP(x)       (uint8_t)((x)&(CURL_DNSQ_A | CURL_DNSQ_AAAA))
  |  |  ------------------
  |  |  |  |   52|  7.53k|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  ------------------
  ------------------
                if((CURL_DNSQ_IP(dns_queries) == CURL_DNSQ_AAAA) &&
  ------------------
  |  |   52|  7.53k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (703:6): [True: 0, False: 7.53k]
  ------------------
  704|      0|     getenv("CURL_DBG_RESOLV_FAIL_IPV6")) {
  ------------------
  |  Branch (704:6): [True: 0, False: 0]
  ------------------
  705|      0|    infof(data, "DEBUG fail ipv6 resolve");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  706|      0|    result = hostip_resolv_failed(data, hostname, for_proxy);
  707|      0|    goto out;
  708|      0|  }
  709|  7.53k|#endif
  710|       |  /* Let's check our DNS cache first */
  711|  7.53k|  result = Curl_dnscache_get(data, dns_queries, hostname, port, pdns);
  712|  7.53k|  if(*pdns) {
  ------------------
  |  Branch (712:6): [True: 509, False: 7.02k]
  ------------------
  713|    509|    infof(data, "Hostname %s was found in DNS cache", hostname);
  ------------------
  |  |  143|    509|  do {                               \
  |  |  144|    509|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    509|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 509, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 509]
  |  |  |  |  ------------------
  |  |  |  |  320|    509|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    509|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    509|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 509]
  |  |  ------------------
  ------------------
  714|    509|    result = CURLE_OK;
  715|    509|  }
  716|  7.02k|  else if(result) {
  ------------------
  |  Branch (716:11): [True: 0, False: 7.02k]
  ------------------
  717|      0|    infof(data, "Negative DNS entry");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  718|      0|    result = hostip_resolv_failed(data, hostname, for_proxy);
  719|      0|  }
  720|  7.02k|  else {
  721|       |    /* No luck, we need to start resolving. */
  722|  7.02k|    cache_dns = TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
  723|  7.02k|    result = hostip_resolv_start(data, dns_queries, hostname, port,
  724|  7.02k|                                 transport, for_proxy, timeout_ms, allowDOH,
  725|  7.02k|                                 presolv_id, pdns);
  726|  7.02k|  }
  727|       |
  728|  7.53k|out:
  729|  7.53k|  if(result && (result != CURLE_AGAIN)) {
  ------------------
  |  Branch (729:6): [True: 0, False: 7.53k]
  |  Branch (729:16): [True: 0, False: 0]
  ------------------
  730|      0|    Curl_dns_entry_unlink(data, pdns);
  731|      0|    if(IS_RESOLV_FAIL(result)) {
  ------------------
  |  |   77|      0|  (((result) == CURLE_COULDNT_RESOLVE_HOST) || \
  |  |  ------------------
  |  |  |  Branch (77:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   78|      0|   ((result) == CURLE_COULDNT_RESOLVE_PROXY))
  |  |  ------------------
  |  |  |  Branch (78:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  732|      0|      if(cache_dns)
  ------------------
  |  Branch (732:10): [True: 0, False: 0]
  ------------------
  733|      0|        Curl_dnscache_add_negative(data, dns_queries, hostname, port);
  734|      0|      failf(data, "Could not resolve: %s:%u", hostname, port);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  735|      0|    }
  736|      0|    else {
  737|      0|      failf(data, "Error %d resolving %s:%u", result, hostname, port);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  738|      0|    }
  739|      0|  }
  740|  7.53k|  else if(cache_dns && *pdns) {
  ------------------
  |  Branch (740:11): [True: 7.02k, False: 509]
  |  Branch (740:24): [True: 7.02k, False: 0]
  ------------------
  741|  7.02k|    result = Curl_dnscache_add(data, *pdns);
  742|  7.02k|    if(result)
  ------------------
  |  Branch (742:8): [True: 0, False: 7.02k]
  ------------------
  743|      0|      Curl_dns_entry_unlink(data, pdns);
  744|  7.02k|  }
  745|       |
  746|  7.53k|  return result;
  747|  7.53k|}
hostip.c:hostip_resolv_start:
  541|  7.02k|{
  542|  7.02k|#ifdef USE_CURL_ASYNC
  543|  7.02k|  struct Curl_resolv_async *async = NULL;
  544|  7.02k|#endif
  545|  7.02k|  struct Curl_addrinfo *addr = NULL;
  546|  7.02k|  size_t hostname_len;
  547|  7.02k|  CURLcode result = CURLE_OK;
  548|       |
  549|  7.02k|  (void)timeout_ms; /* not in all ifdefs */
  550|  7.02k|  *presolv_id = 0;
  551|  7.02k|  *pdns = NULL;
  552|       |
  553|       |  /* Check for "known" things to resolve ourselves. */
  554|  7.02k|#ifndef USE_RESOLVE_ON_IPS
  555|  7.02k|  if(Curl_is_ipaddr(hostname)) {
  ------------------
  |  Branch (555:6): [True: 7.02k, False: 0]
  ------------------
  556|       |    /* test655 verifies that the announce is done, even though there
  557|       |     * is no real resolving. So, keep doing this. */
  558|  7.02k|    result = Curl_resolv_announce_start(data, NULL);
  559|  7.02k|    if(result)
  ------------------
  |  Branch (559:8): [True: 0, False: 7.02k]
  ------------------
  560|      0|      goto out;
  561|       |    /* shortcut literal IP addresses, if we are not told to resolve them. */
  562|  7.02k|    result = Curl_str2addr(hostname, port, &addr);
  563|  7.02k|    goto out;
  564|  7.02k|  }
  565|      0|#endif
  566|       |
  567|      0|  hostname_len = strlen(hostname);
  568|      0|  if(curl_strequal(hostname, "localhost") ||
  ------------------
  |  Branch (568:6): [True: 0, False: 0]
  ------------------
  569|      0|     curl_strequal(hostname, "localhost.") ||
  ------------------
  |  Branch (569:6): [True: 0, False: 0]
  ------------------
  570|      0|     tailmatch(hostname, hostname_len, STRCONST(".localhost")) ||
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (570:6): [True: 0, False: 0]
  ------------------
  571|      0|     tailmatch(hostname, hostname_len, STRCONST(".localhost."))) {
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (571:6): [True: 0, False: 0]
  ------------------
  572|      0|    result = Curl_resolv_announce_start(data, NULL);
  573|      0|    if(result)
  ------------------
  |  Branch (573:8): [True: 0, False: 0]
  ------------------
  574|      0|      goto out;
  575|      0|    addr = get_localhost(port, hostname);
  576|      0|    if(!addr)
  ------------------
  |  Branch (576:8): [True: 0, False: 0]
  ------------------
  577|      0|      result = CURLE_OUT_OF_MEMORY;
  578|      0|    goto out;
  579|      0|  }
  580|       |
  581|      0|#ifndef CURL_DISABLE_DOH
  582|      0|  if(!Curl_is_ipaddr(hostname) && allowDOH && data->set.doh) {
  ------------------
  |  Branch (582:6): [True: 0, False: 0]
  |  Branch (582:35): [True: 0, False: 0]
  |  Branch (582:47): [True: 0, False: 0]
  ------------------
  583|      0|    result = Curl_resolv_announce_start(data, NULL);
  584|      0|    if(result)
  ------------------
  |  Branch (584:8): [True: 0, False: 0]
  ------------------
  585|      0|      goto out;
  586|      0|    if(!async) {
  ------------------
  |  Branch (586:8): [True: 0, False: 0]
  ------------------
  587|      0|      async = hostip_async_new(data, dns_queries, hostname, port,
  588|      0|                               transport, for_proxy, timeout_ms);
  589|      0|      if(!async) {
  ------------------
  |  Branch (589:10): [True: 0, False: 0]
  ------------------
  590|      0|        result = CURLE_OUT_OF_MEMORY;
  591|      0|        goto out;
  592|      0|      }
  593|      0|    }
  594|      0|    result = Curl_doh(data, async);
  595|      0|    goto out;
  596|      0|  }
  597|       |#else
  598|       |  (void)allowDOH;
  599|       |#endif
  600|       |
  601|       |  /* Can we provide the requested IP specifics in resolving? */
  602|      0|  if(!can_resolve_dns_queries(data, dns_queries)) {
  ------------------
  |  Branch (602:6): [True: 0, False: 0]
  ------------------
  603|      0|    result = RESOLV_FAIL(for_proxy);
  ------------------
  |  |   74|      0|  ((for_proxy) ? CURLE_COULDNT_RESOLVE_PROXY : CURLE_COULDNT_RESOLVE_HOST)
  |  |  ------------------
  |  |  |  Branch (74:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  604|      0|    goto out;
  605|      0|  }
  606|       |
  607|      0|#ifdef CURLRES_ASYNCH
  608|      0|  (void)addr;
  609|      0|  if(!async) {
  ------------------
  |  Branch (609:6): [True: 0, False: 0]
  ------------------
  610|      0|    async = hostip_async_new(data, dns_queries, hostname, port,
  611|      0|                             transport, for_proxy, timeout_ms);
  612|      0|    if(!async) {
  ------------------
  |  Branch (612:8): [True: 0, False: 0]
  ------------------
  613|      0|      result = CURLE_OUT_OF_MEMORY;
  614|      0|      goto out;
  615|      0|    }
  616|      0|  }
  617|      0|  result = Curl_async_getaddrinfo(data, async);
  618|      0|  if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (618:6): [True: 0, False: 0]
  ------------------
  619|       |    /* the answer might be there already. Check. */
  620|      0|    CURLcode r2 = hostip_resolv_take_result(data, async, pdns);
  621|      0|    if(r2)
  ------------------
  |  Branch (621:8): [True: 0, False: 0]
  ------------------
  622|      0|      result = r2;
  623|      0|    else if(*pdns)
  ------------------
  |  Branch (623:13): [True: 0, False: 0]
  ------------------
  624|      0|      result = CURLE_OK;
  625|      0|  }
  626|       |#else
  627|       |  result = Curl_resolv_announce_start(data, NULL);
  628|       |  if(result)
  629|       |    goto out;
  630|       |  addr = Curl_sync_getaddrinfo(data, dns_queries, hostname, port, transport);
  631|       |  if(!addr)
  632|       |    result = RESOLV_FAIL(for_proxy);
  633|       |#endif
  634|       |
  635|  7.02k|out:
  636|  7.02k|  if(!result) {
  ------------------
  |  Branch (636:6): [True: 7.02k, False: 0]
  ------------------
  637|  7.02k|    if(addr) {
  ------------------
  |  Branch (637:8): [True: 7.02k, False: 0]
  ------------------
  638|       |      /* we got a response, create a dns entry, add to cache, return */
  639|  7.02k|      DEBUGASSERT(!*pdns);
  ------------------
  |  | 1081|  7.02k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (639:7): [True: 0, False: 7.02k]
  |  Branch (639:7): [True: 7.02k, False: 0]
  ------------------
  640|  7.02k|      *pdns = Curl_dnscache_mk_entry(data, dns_queries, &addr, hostname, port);
  641|  7.02k|      if(!*pdns)
  ------------------
  |  Branch (641:10): [True: 0, False: 7.02k]
  ------------------
  642|      0|        result = CURLE_OUT_OF_MEMORY;
  643|  7.02k|    }
  644|      0|    else if(!*pdns)
  ------------------
  |  Branch (644:13): [True: 0, False: 0]
  ------------------
  645|      0|      result = CURLE_AGAIN;
  646|  7.02k|  }
  647|      0|  else if(*pdns)
  ------------------
  |  Branch (647:11): [True: 0, False: 0]
  ------------------
  648|      0|    Curl_dns_entry_unlink(data, pdns);
  649|      0|  else if(addr)
  ------------------
  |  Branch (649:11): [True: 0, False: 0]
  ------------------
  650|      0|    Curl_freeaddrinfo(addr);
  651|       |
  652|  7.02k|#ifdef USE_CURL_ASYNC
  653|  7.02k|  if(async) {
  ------------------
  |  Branch (653:6): [True: 0, False: 7.02k]
  ------------------
  654|      0|    if(result == CURLE_AGAIN) { /* still need it, link, return id. */
  ------------------
  |  Branch (654:8): [True: 0, False: 0]
  ------------------
  655|      0|      *presolv_id = async->id;
  656|      0|      async->next = data->state.async;
  657|      0|      data->state.async = async;
  658|      0|    }
  659|      0|    else {
  660|      0|      Curl_async_destroy(data, async);
  661|      0|    }
  662|      0|  }
  663|  7.02k|#endif
  664|  7.02k|  return result;
  665|  7.02k|}

Curl_hsts_init:
   67|  7.82k|{
   68|  7.82k|  struct hsts *h = curlx_calloc(1, sizeof(struct hsts));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   69|  7.82k|  if(h) {
  ------------------
  |  Branch (69:6): [True: 7.82k, False: 0]
  ------------------
   70|       |    Curl_llist_init(&h->list, NULL);
   71|  7.82k|  }
   72|  7.82k|  return h;
   73|  7.82k|}
Curl_hsts_cleanup:
   78|  15.6k|{
   79|  15.6k|  struct hsts *h = *hp;
   80|  15.6k|  if(h) {
  ------------------
  |  Branch (80:6): [True: 7.82k, False: 7.82k]
  ------------------
   81|  7.82k|    struct Curl_llist_node *e;
   82|  7.82k|    struct Curl_llist_node *n;
   83|  7.82k|    for(e = Curl_llist_head(&h->list); e; e = n) {
  ------------------
  |  Branch (83:40): [True: 0, False: 7.82k]
  ------------------
   84|      0|      struct stsentry *sts = Curl_node_elem(e);
   85|      0|      n = Curl_node_next(e);
   86|      0|      hsts_free(sts);
  ------------------
  |  |   75|      0|#define hsts_free(x) curlx_free(x)
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
   87|      0|    }
   88|  7.82k|    curlx_free(h->filename);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   89|  7.82k|    curlx_free(h);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   90|       |    *hp = NULL;
   91|  7.82k|  }
   92|  15.6k|}
hsts_check:
  146|  8.74k|{
  147|  8.74k|  struct stsentry *bestsub = NULL;
  148|  8.74k|  if(h) {
  ------------------
  |  Branch (148:6): [True: 8.74k, False: 0]
  ------------------
  149|  8.74k|    time_t now = time(NULL);
  ------------------
  |  |   63|  8.74k|#define time(x) hsts_debugtime(x)
  ------------------
  150|  8.74k|    struct Curl_llist_node *e;
  151|  8.74k|    struct Curl_llist_node *n;
  152|  8.74k|    size_t blen = 0;
  153|       |
  154|  8.74k|    if((hlen > MAX_HSTS_HOSTLEN) || !hlen)
  ------------------
  |  |   42|  8.74k|#define MAX_HSTS_HOSTLEN 2048
  ------------------
  |  Branch (154:8): [True: 11, False: 8.73k]
  |  Branch (154:37): [True: 0, False: 8.73k]
  ------------------
  155|     11|      return NULL;
  156|  8.73k|    if(hostname[hlen - 1] == '.')
  ------------------
  |  Branch (156:8): [True: 314, False: 8.42k]
  ------------------
  157|       |      /* remove the trailing dot */
  158|    314|      --hlen;
  159|       |
  160|  8.73k|    for(e = Curl_llist_head(&h->list); e; e = n) {
  ------------------
  |  Branch (160:40): [True: 0, False: 8.73k]
  ------------------
  161|      0|      struct stsentry *sts = Curl_node_elem(e);
  162|      0|      size_t ntail;
  163|      0|      n = Curl_node_next(e);
  164|      0|      if(sts->expires <= now) {
  ------------------
  |  Branch (164:10): [True: 0, False: 0]
  ------------------
  165|       |        /* remove expired entries */
  166|      0|        Curl_node_remove(&sts->node);
  167|      0|        hsts_free(sts);
  ------------------
  |  |   75|      0|#define hsts_free(x) curlx_free(x)
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
  168|      0|        continue;
  169|      0|      }
  170|      0|      ntail = strlen(sts->host);
  171|      0|      if((subdomain && sts->includeSubDomains) && (ntail < hlen)) {
  ------------------
  |  Branch (171:11): [True: 0, False: 0]
  |  Branch (171:24): [True: 0, False: 0]
  |  Branch (171:51): [True: 0, False: 0]
  ------------------
  172|      0|        size_t offs = hlen - ntail;
  173|      0|        if((hostname[offs - 1] == '.') &&
  ------------------
  |  Branch (173:12): [True: 0, False: 0]
  ------------------
  174|      0|           curl_strnequal(&hostname[offs], sts->host, ntail) &&
  ------------------
  |  Branch (174:12): [True: 0, False: 0]
  ------------------
  175|      0|           (ntail > blen)) {
  ------------------
  |  Branch (175:12): [True: 0, False: 0]
  ------------------
  176|       |          /* save the tail match with the longest tail */
  177|      0|          bestsub = sts;
  178|      0|          blen = ntail;
  179|      0|        }
  180|      0|      }
  181|       |      /* avoid curl_strequal because the hostname is not null-terminated */
  182|      0|      if((hlen == ntail) && curl_strnequal(hostname, sts->host, hlen))
  ------------------
  |  Branch (182:10): [True: 0, False: 0]
  |  Branch (182:29): [True: 0, False: 0]
  ------------------
  183|      0|        return sts;
  184|      0|    }
  185|  8.73k|  }
  186|  8.73k|  return bestsub;
  187|  8.74k|}
Curl_hsts_save:
  349|  15.6k|{
  350|  15.6k|  struct Curl_llist_node *e;
  351|  15.6k|  struct Curl_llist_node *n;
  352|  15.6k|  CURLcode result = CURLE_OK;
  353|  15.6k|  FILE *out;
  354|  15.6k|  char *tempstore = NULL;
  355|       |
  356|  15.6k|  if(!h)
  ------------------
  |  Branch (356:6): [True: 7.82k, False: 7.82k]
  ------------------
  357|       |    /* no cache activated */
  358|  7.82k|    return CURLE_OK;
  359|       |
  360|       |  /* if no new name is given, use the one we stored from the load */
  361|  7.82k|  if(!file && h->filename)
  ------------------
  |  Branch (361:6): [True: 0, False: 7.82k]
  |  Branch (361:15): [True: 0, False: 0]
  ------------------
  362|      0|    file = h->filename;
  363|       |
  364|  7.82k|  if((h->flags & CURLHSTS_READONLYFILE) || !file || !file[0])
  ------------------
  |  | 1074|  7.82k|#define CURLHSTS_READONLYFILE (1L << 1)
  ------------------
  |  Branch (364:6): [True: 0, False: 7.82k]
  |  Branch (364:44): [True: 0, False: 7.82k]
  |  Branch (364:53): [True: 0, False: 7.82k]
  ------------------
  365|       |    /* marked as read-only, no file or zero length filename */
  366|      0|    goto skipsave;
  367|       |
  368|  7.82k|  result = Curl_fopen(data, file, &out, &tempstore);
  369|  7.82k|  if(!result) {
  ------------------
  |  Branch (369:6): [True: 7.82k, False: 0]
  ------------------
  370|  7.82k|    fputs("# Your HSTS cache. https://curl.se/docs/hsts.html\n"
  371|  7.82k|          "# This file was generated by libcurl! Edit at your own risk.\n",
  372|  7.82k|          out);
  373|  7.82k|    for(e = Curl_llist_head(&h->list); e; e = n) {
  ------------------
  |  Branch (373:40): [True: 0, False: 7.82k]
  ------------------
  374|      0|      struct stsentry *sts = Curl_node_elem(e);
  375|      0|      n = Curl_node_next(e);
  376|      0|      result = hsts_out(sts, out);
  377|      0|      if(result)
  ------------------
  |  Branch (377:10): [True: 0, False: 0]
  ------------------
  378|      0|        break;
  379|      0|    }
  380|  7.82k|    curlx_fclose(out);
  ------------------
  |  |   79|  7.82k|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
  381|  7.82k|    if(!result && tempstore && curlx_rename(tempstore, file))
  ------------------
  |  |   70|      0|#define curlx_rename            rename
  ------------------
  |  Branch (381:8): [True: 7.82k, False: 0]
  |  Branch (381:19): [True: 0, False: 7.82k]
  |  Branch (381:32): [True: 0, False: 0]
  ------------------
  382|      0|      result = CURLE_WRITE_ERROR;
  383|       |
  384|  7.82k|    if(result && tempstore)
  ------------------
  |  Branch (384:8): [True: 0, False: 7.82k]
  |  Branch (384:18): [True: 0, False: 0]
  ------------------
  385|      0|      unlink(tempstore);
  386|  7.82k|  }
  387|  7.82k|  curlx_free(tempstore);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  388|  7.82k|skipsave:
  389|  7.82k|  if(data->set.hsts_write) {
  ------------------
  |  Branch (389:6): [True: 0, False: 7.82k]
  ------------------
  390|       |    /* if there is a write callback */
  391|      0|    struct curl_index i; /* count */
  392|      0|    i.total = Curl_llist_count(&h->list);
  393|      0|    i.index = 0;
  394|      0|    for(e = Curl_llist_head(&h->list); e; e = n) {
  ------------------
  |  Branch (394:40): [True: 0, False: 0]
  ------------------
  395|      0|      struct stsentry *sts = Curl_node_elem(e);
  396|      0|      bool stop;
  397|      0|      n = Curl_node_next(e);
  398|      0|      result = hsts_push(data, &i, sts, &stop);
  399|      0|      if(result || stop)
  ------------------
  |  Branch (399:10): [True: 0, False: 0]
  |  Branch (399:20): [True: 0, False: 0]
  ------------------
  400|      0|        break;
  401|      0|      i.index++;
  402|      0|    }
  403|      0|  }
  404|  7.82k|  return result;
  405|  7.82k|}
Curl_hsts_loadfile:
  584|  7.82k|{
  585|  7.82k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (585:3): [True: 0, False: 7.82k]
  |  Branch (585:3): [True: 7.82k, False: 0]
  ------------------
  586|  7.82k|  (void)data;
  587|  7.82k|  return hsts_load(h, file);
  588|  7.82k|}
Curl_hsts_loadcb:
  594|  7.82k|{
  595|  7.82k|  if(h)
  ------------------
  |  Branch (595:6): [True: 7.82k, False: 0]
  ------------------
  596|  7.82k|    return hsts_pull(data, h);
  597|      0|  return CURLE_OK;
  598|  7.82k|}
Curl_hsts_loadfiles:
  601|  7.82k|{
  602|  7.82k|  CURLcode result = CURLE_OK;
  603|  7.82k|  struct curl_slist *l = data->state.hstslist;
  604|  7.82k|  if(l) {
  ------------------
  |  Branch (604:6): [True: 7.82k, False: 0]
  ------------------
  605|  7.82k|    Curl_share_lock(data, CURL_LOCK_DATA_HSTS, CURL_LOCK_ACCESS_SINGLE);
  606|       |
  607|  15.6k|    while(l) {
  ------------------
  |  Branch (607:11): [True: 7.82k, False: 7.82k]
  ------------------
  608|  7.82k|      result = Curl_hsts_loadfile(data, data->hsts, l->data);
  609|  7.82k|      if(result)
  ------------------
  |  Branch (609:10): [True: 0, False: 7.82k]
  ------------------
  610|      0|        break;
  611|  7.82k|      l = l->next;
  612|  7.82k|    }
  613|  7.82k|    Curl_share_unlock(data, CURL_LOCK_DATA_HSTS);
  614|  7.82k|  }
  615|  7.82k|  return result;
  616|  7.82k|}
Curl_hsts_applies:
  619|  8.74k|{
  620|       |  return !!hsts_check(h, dest->hostname, strlen(dest->hostname), TRUE);
  ------------------
  |  | 1055|  8.74k|#define TRUE true
  ------------------
  621|  8.74k|}
hsts.c:hsts_debugtime:
   51|  8.74k|{
   52|  8.74k|  const char *timestr = getenv("CURL_TIME");
   53|  8.74k|  (void)unused;
   54|  8.74k|  if(timestr) {
  ------------------
  |  Branch (54:6): [True: 0, False: 8.74k]
  ------------------
   55|      0|    curl_off_t val;
   56|      0|    if(!curlx_str_number(&timestr, &val, TIME_T_MAX))
  ------------------
  |  |  614|      0|#  define TIME_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (56:8): [True: 0, False: 0]
  ------------------
   57|      0|      val += (curl_off_t)deltatime;
   58|      0|    return (time_t)val;
   59|      0|  }
   60|  8.74k|  return time(NULL);
   61|  8.74k|}
hsts.c:hsts_load:
  539|  7.82k|{
  540|  7.82k|  CURLcode result = CURLE_OK;
  541|  7.82k|  FILE *fp;
  542|       |
  543|       |  /* we need a private copy of the filename so that the hsts cache file
  544|       |     name survives an easy handle reset */
  545|  7.82k|  curlx_free(h->filename);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  546|  7.82k|  h->filename = curlx_strdup(file);
  ------------------
  |  | 1477|  7.82k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  547|  7.82k|  if(!h->filename)
  ------------------
  |  Branch (547:6): [True: 0, False: 7.82k]
  ------------------
  548|      0|    return CURLE_OUT_OF_MEMORY;
  549|       |
  550|  7.82k|  fp = curlx_fopen(file, FOPEN_READTEXT);
  ------------------
  |  |   74|  7.82k|#define curlx_fopen(file, mode) curl_dbg_fopen(file, mode, __LINE__, __FILE__)
  ------------------
  551|  7.82k|  if(fp) {
  ------------------
  |  Branch (551:6): [True: 7.82k, False: 0]
  ------------------
  552|  7.82k|    curlx_struct_stat stat;
  ------------------
  |  |   63|  7.82k|#define curlx_struct_stat       struct stat
  ------------------
  553|  7.82k|    if((curlx_fstat(fileno(fp), &stat) == -1) || !S_ISDIR(stat.st_mode)) {
  ------------------
  |  |   62|  7.82k|#define curlx_fstat             fstat
  ------------------
  |  Branch (553:8): [True: 0, False: 7.82k]
  |  Branch (553:50): [True: 7.82k, False: 0]
  ------------------
  554|  7.82k|      struct dynbuf buf;
  555|  7.82k|      bool eof = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  556|  7.82k|      curlx_dyn_init(&buf, MAX_HSTS_LINE);
  ------------------
  |  |   41|  7.82k|#define MAX_HSTS_LINE    4095
  ------------------
  557|  7.82k|      do {
  558|  7.82k|        result = Curl_get_line(&buf, fp, &eof);
  559|  7.82k|        if(!result) {
  ------------------
  |  Branch (559:12): [True: 7.82k, False: 0]
  ------------------
  560|  7.82k|          const char *lineptr = curlx_dyn_ptr(&buf);
  561|  7.82k|          curlx_str_passblanks(&lineptr);
  562|       |
  563|       |          /* Skip empty or commented lines, since we know the line will have
  564|       |             a trailing newline from Curl_get_line we can treat length 1 as
  565|       |             empty. */
  566|  7.82k|          if((*lineptr == '#') || strlen(lineptr) <= 1)
  ------------------
  |  Branch (566:14): [True: 0, False: 7.82k]
  |  Branch (566:35): [True: 7.82k, False: 0]
  ------------------
  567|  7.82k|            continue;
  568|       |
  569|      0|          hsts_add(h, lineptr);
  570|      0|        }
  571|  7.82k|      } while(!result && !eof);
  ------------------
  |  Branch (571:15): [True: 7.82k, False: 0]
  |  Branch (571:26): [True: 0, False: 7.82k]
  ------------------
  572|  7.82k|      curlx_dyn_free(&buf); /* free the line buffer */
  573|  7.82k|    }
  574|  7.82k|    curlx_fclose(fp);
  ------------------
  |  |   79|  7.82k|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
  575|  7.82k|  }
  576|  7.82k|  return result;
  577|  7.82k|}
hsts.c:hsts_pull:
  491|  7.82k|{
  492|       |  /* if the HSTS read callback is set, use it */
  493|  7.82k|  if(data->set.hsts_read) {
  ------------------
  |  Branch (493:6): [True: 0, False: 7.82k]
  ------------------
  494|      0|    CURLSTScode sc;
  495|      0|    DEBUGASSERT(h);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (495:5): [True: 0, False: 0]
  |  Branch (495:5): [True: 0, False: 0]
  ------------------
  496|      0|    do {
  497|      0|      char buffer[MAX_HSTS_HOSTLEN + 1];
  498|      0|      struct curl_hstsentry e;
  499|      0|      e.name = buffer;
  500|      0|      e.namelen = sizeof(buffer) - 1;
  501|      0|      e.includeSubDomains = FALSE; /* default */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  502|      0|      e.expire[0] = 0;
  503|      0|      e.expire[MAX_HSTS_DATELEN] = 0;
  ------------------
  |  |   43|      0|#define MAX_HSTS_DATELEN 17
  ------------------
  504|      0|      e.name[0] = 0; /* to make it clean */
  505|      0|      e.name[MAX_HSTS_HOSTLEN] = 0;
  ------------------
  |  |   42|      0|#define MAX_HSTS_HOSTLEN 2048
  ------------------
  506|      0|      sc = data->set.hsts_read(data, &e, data->set.hsts_read_userp);
  507|      0|      if(sc == CURLSTS_OK) {
  ------------------
  |  Branch (507:10): [True: 0, False: 0]
  ------------------
  508|      0|        CURLcode result;
  509|      0|        const char *date = e.expire;
  510|      0|        if(!e.name[0] || e.expire[MAX_HSTS_DATELEN] ||
  ------------------
  |  |   43|      0|#define MAX_HSTS_DATELEN 17
  ------------------
  |  Branch (510:12): [True: 0, False: 0]
  |  Branch (510:26): [True: 0, False: 0]
  ------------------
  511|      0|           e.name[MAX_HSTS_HOSTLEN])
  ------------------
  |  |   42|      0|#define MAX_HSTS_HOSTLEN 2048
  ------------------
  |  Branch (511:12): [True: 0, False: 0]
  ------------------
  512|       |          /* bail out if no name was stored or if a null-terminator is gone */
  513|      0|          return CURLE_BAD_FUNCTION_ARGUMENT;
  514|      0|        if(!date[0])
  ------------------
  |  Branch (514:12): [True: 0, False: 0]
  ------------------
  515|      0|          date = UNLIMITED;
  ------------------
  |  |   44|      0|#define UNLIMITED        "unlimited"
  ------------------
  516|      0|        result = hsts_add_host_expire(h, e.name, strlen(e.name),
  517|      0|                                      date, strlen(date),
  518|       |                                      /* bitfield to bool conversion: */
  519|      0|                                      e.includeSubDomains ? TRUE : FALSE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
                                                    e.includeSubDomains ? TRUE : FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  |  Branch (519:39): [True: 0, False: 0]
  ------------------
  520|      0|        if(result)
  ------------------
  |  Branch (520:12): [True: 0, False: 0]
  ------------------
  521|      0|          return result;
  522|      0|      }
  523|      0|      else if(sc == CURLSTS_FAIL)
  ------------------
  |  Branch (523:15): [True: 0, False: 0]
  ------------------
  524|      0|        return CURLE_ABORTED_BY_CALLBACK;
  525|      0|    } while(sc == CURLSTS_OK);
  ------------------
  |  Branch (525:13): [True: 0, False: 0]
  ------------------
  526|      0|  }
  527|  7.82k|  return CURLE_OK;
  528|  7.82k|}

Curl_http_neg_init:
   89|  7.82k|{
   90|  7.82k|  memset(neg, 0, sizeof(*neg));
   91|  7.82k|  neg->accept_09 = data->set.http09_allowed;
   92|  7.82k|  switch(data->set.httpwant) {
   93|     18|  case CURL_HTTP_VERSION_1_0:
  ------------------
  |  | 2315|     18|#define CURL_HTTP_VERSION_1_0   1L /* please use HTTP 1.0 in the request */
  ------------------
  |  Branch (93:3): [True: 18, False: 7.80k]
  ------------------
   94|     18|    neg->wanted = neg->allowed = (CURL_HTTP_V1x);
  ------------------
  |  |   40|     18|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
   95|     18|    neg->only_10 = TRUE;
  ------------------
  |  | 1055|     18|#define TRUE true
  ------------------
   96|     18|    break;
   97|     21|  case CURL_HTTP_VERSION_1_1:
  ------------------
  |  | 2316|     21|#define CURL_HTTP_VERSION_1_1   2L /* please use HTTP 1.1 in the request */
  ------------------
  |  Branch (97:3): [True: 21, False: 7.79k]
  ------------------
   98|     21|    neg->wanted = neg->allowed = (CURL_HTTP_V1x);
  ------------------
  |  |   40|     21|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
   99|     21|    break;
  100|    155|  case CURL_HTTP_VERSION_2_0:
  ------------------
  |  | 2317|    155|#define CURL_HTTP_VERSION_2_0   3L /* please use HTTP 2 in the request */
  ------------------
  |  Branch (100:3): [True: 155, False: 7.66k]
  ------------------
  101|    155|    neg->wanted = neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   40|    155|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
                  neg->wanted = neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   41|    155|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  102|    155|    neg->h2_upgrade = TRUE;
  ------------------
  |  | 1055|    155|#define TRUE true
  ------------------
  103|    155|    break;
  104|      2|  case CURL_HTTP_VERSION_2TLS:
  ------------------
  |  | 2318|      2|#define CURL_HTTP_VERSION_2TLS  4L /* use version 2 for HTTPS, version 1.1 for
  ------------------
  |  Branch (104:3): [True: 2, False: 7.81k]
  ------------------
  105|      2|    neg->wanted = neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   40|      2|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
                  neg->wanted = neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   41|      2|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  106|      2|    break;
  107|  2.92k|  case CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE:
  ------------------
  |  | 2320|  2.92k|#define CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE 5L /* please use HTTP 2 without
  ------------------
  |  Branch (107:3): [True: 2.92k, False: 4.89k]
  ------------------
  108|  2.92k|    neg->wanted = neg->allowed = (CURL_HTTP_V2x);
  ------------------
  |  |   41|  2.92k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  109|  2.92k|    data->state.http_neg.h2_prior_knowledge = TRUE;
  ------------------
  |  | 1055|  2.92k|#define TRUE true
  ------------------
  110|  2.92k|    break;
  111|      0|  case CURL_HTTP_VERSION_3:
  ------------------
  |  | 2322|      0|#define CURL_HTTP_VERSION_3     30L /* Use HTTP/3, fallback to HTTP/2 or
  ------------------
  |  Branch (111:3): [True: 0, False: 7.82k]
  ------------------
  112|      0|    neg->wanted = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
                  neg->wanted = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
                  neg->wanted = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  113|      0|    neg->allowed = neg->wanted;
  114|      0|    break;
  115|      0|  case CURL_HTTP_VERSION_3ONLY:
  ------------------
  |  | 2326|      0|#define CURL_HTTP_VERSION_3ONLY 31L /* Use HTTP/3 without fallback. For
  ------------------
  |  Branch (115:3): [True: 0, False: 7.82k]
  ------------------
  116|      0|    neg->wanted = neg->allowed = (CURL_HTTP_V3x);
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  117|      0|    break;
  118|  4.69k|  case CURL_HTTP_VERSION_NONE:
  ------------------
  |  | 2312|  4.69k|#define CURL_HTTP_VERSION_NONE  0L /* setting this means we do not care, and
  ------------------
  |  Branch (118:3): [True: 4.69k, False: 3.12k]
  ------------------
  119|  4.69k|  default:
  ------------------
  |  Branch (119:3): [True: 0, False: 7.82k]
  ------------------
  120|  4.69k|    neg->wanted = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   40|  4.69k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
                  neg->wanted = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   41|  4.69k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  121|  4.69k|    neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   40|  4.69k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
                  neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   41|  4.69k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
                  neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   42|  4.69k|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  122|  4.69k|    break;
  123|  7.82k|  }
  124|  7.82k|}
Curl_http_setup_conn:
  128|  10.3k|{
  129|       |  /* allocate the HTTP-specific struct for the Curl_easy, only to survive
  130|       |     during this request */
  131|  10.3k|  if(data->state.http_neg.wanted == CURL_HTTP_V3x) {
  ------------------
  |  |   42|  10.3k|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  |  Branch (131:6): [True: 0, False: 10.3k]
  ------------------
  132|       |    /* only HTTP/3, needs to work */
  133|      0|    CURLcode result = Curl_conn_may_http3(data, conn, conn->transport_wanted);
  134|      0|    if(result)
  ------------------
  |  Branch (134:8): [True: 0, False: 0]
  ------------------
  135|      0|      return result;
  136|      0|  }
  137|  10.3k|  return CURLE_OK;
  138|  10.3k|}
Curl_copy_header_value:
  229|  4.64k|{
  230|  4.64k|  struct Curl_str out;
  231|       |
  232|       |  /* find the end of the header name */
  233|  4.64k|  if(!curlx_str_until(&header, &out, MAX_HTTP_RESP_HEADER_SIZE, ':') &&
  ------------------
  |  |  153|  4.64k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  |  Branch (233:6): [True: 4.64k, False: 0]
  ------------------
  234|  4.64k|     !curlx_str_single(&header, ':')) {
  ------------------
  |  Branch (234:6): [True: 4.64k, False: 0]
  ------------------
  235|  4.64k|    curlx_str_untilnl(&header, &out, MAX_HTTP_RESP_HEADER_SIZE);
  ------------------
  |  |  153|  4.64k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  236|  4.64k|    curlx_str_trimblanks(&out);
  237|  4.64k|    return curlx_memdup0(curlx_str(&out), curlx_strlen(&out));
  ------------------
  |  |   49|  4.64k|#define curlx_str(x)    ((x)->str)
  ------------------
                  return curlx_memdup0(curlx_str(&out), curlx_strlen(&out));
  ------------------
  |  |   50|  4.64k|#define curlx_strlen(x) ((x)->len)
  ------------------
  238|  4.64k|  }
  239|       |  /* bad input, should never happen */
  240|      0|  DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (240:3): [Folded, False: 0]
  |  Branch (240:3): [Folded, False: 0]
  ------------------
  241|      0|  return NULL;
  242|      0|}
Curl_http_auth_act:
  551|  3.79k|{
  552|  3.79k|  struct connectdata *conn = data->conn;
  553|  3.79k|  bool pickhost = FALSE;
  ------------------
  |  | 1058|  3.79k|#define FALSE false
  ------------------
  554|  3.79k|  bool pickproxy = FALSE;
  ------------------
  |  | 1058|  3.79k|#define FALSE false
  ------------------
  555|  3.79k|  CURLcode result = CURLE_OK;
  556|  3.79k|  unsigned long authmask = ~0UL;
  557|       |
  558|  3.79k|  if(!Curl_creds_has_oauth_bearer(data->state.creds))
  ------------------
  |  |   73|  3.79k|#define Curl_creds_has_oauth_bearer(c)   ((c) && (c)->oauth_bearer[0])
  |  |  ------------------
  |  |  |  Branch (73:43): [True: 838, False: 2.95k]
  |  |  |  Branch (73:50): [True: 0, False: 838]
  |  |  ------------------
  ------------------
  559|  3.79k|    authmask &= (unsigned long)~CURLAUTH_BEARER;
  ------------------
  |  |  844|  3.79k|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  560|       |
  561|  3.79k|  if(100 <= data->req.httpcode && data->req.httpcode <= 199)
  ------------------
  |  Branch (561:6): [True: 3.79k, False: 0]
  |  Branch (561:35): [True: 0, False: 3.79k]
  ------------------
  562|       |    /* this is a transient response code, ignore */
  563|      0|    return CURLE_OK;
  564|       |
  565|  3.79k|  if(data->state.authproblem)
  ------------------
  |  Branch (565:6): [True: 0, False: 3.79k]
  ------------------
  566|      0|    return data->set.http_fail_on_error ? CURLE_HTTP_RETURNED_ERROR : CURLE_OK;
  ------------------
  |  Branch (566:12): [True: 0, False: 0]
  ------------------
  567|       |
  568|  3.79k|  if(data->state.creds &&
  ------------------
  |  Branch (568:6): [True: 838, False: 2.95k]
  ------------------
  569|    838|     ((data->req.httpcode == 401) ||
  ------------------
  |  Branch (569:7): [True: 2, False: 836]
  ------------------
  570|    836|      (data->req.authneg && data->req.httpcode < 300))) {
  ------------------
  |  Branch (570:8): [True: 0, False: 836]
  |  Branch (570:29): [True: 0, False: 0]
  ------------------
  571|      2|    pickhost = pickoneauth(&data->state.authhost, authmask);
  572|      2|    if(!pickhost)
  ------------------
  |  Branch (572:8): [True: 2, False: 0]
  ------------------
  573|      2|      data->state.authproblem = TRUE;
  ------------------
  |  | 1055|      2|#define TRUE true
  ------------------
  574|      0|    else
  575|      0|      data->info.httpauthpicked = data->state.authhost.picked;
  576|      2|    if(data->state.authhost.picked == CURLAUTH_NTLM &&
  ------------------
  |  |  838|      4|#define CURLAUTH_NTLM         (((unsigned long)1) << 3)
  ------------------
  |  Branch (576:8): [True: 0, False: 2]
  ------------------
  577|      0|       (data->req.httpversion_sent > 11)) {
  ------------------
  |  Branch (577:8): [True: 0, False: 0]
  ------------------
  578|      0|      infof(data, "Forcing HTTP/1.1 for NTLM");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  579|      0|      connclose(conn, "Force HTTP/1.1 connection");
  ------------------
  |  |  103|      0|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|      0|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
  580|      0|      data->state.http_neg.wanted = CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  581|      0|      data->state.http_neg.allowed = CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  582|      0|    }
  583|      2|  }
  584|  3.79k|#ifndef CURL_DISABLE_PROXY
  585|  3.79k|  if(conn->http_proxy.creds &&
  ------------------
  |  Branch (585:6): [True: 0, False: 3.79k]
  ------------------
  586|      0|     ((data->req.httpcode == 407) ||
  ------------------
  |  Branch (586:7): [True: 0, False: 0]
  ------------------
  587|      0|      (data->req.authneg && data->req.httpcode < 300))) {
  ------------------
  |  Branch (587:8): [True: 0, False: 0]
  |  Branch (587:29): [True: 0, False: 0]
  ------------------
  588|      0|    pickproxy = pickoneauth(&data->state.authproxy,
  589|      0|                            authmask & ~CURLAUTH_BEARER);
  ------------------
  |  |  844|      0|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  590|      0|    if(!pickproxy)
  ------------------
  |  Branch (590:8): [True: 0, False: 0]
  ------------------
  591|      0|      data->state.authproblem = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  592|      0|    else
  593|      0|      data->info.proxyauthpicked = data->state.authproxy.picked;
  594|      0|  }
  595|  3.79k|#endif
  596|       |
  597|  3.79k|  if(pickhost || pickproxy) {
  ------------------
  |  Branch (597:6): [True: 0, False: 3.79k]
  |  Branch (597:18): [True: 0, False: 3.79k]
  ------------------
  598|      0|    result = http_perhapsrewind(data, conn);
  599|      0|    if(result)
  ------------------
  |  Branch (599:8): [True: 0, False: 0]
  ------------------
  600|      0|      return result;
  601|       |
  602|       |    /* In case this is GSS auth, the newurl field is already allocated so
  603|       |       we must make sure to free it before allocating a new one. As figured
  604|       |       out in bug #2284386 */
  605|      0|    curlx_free(data->req.newurl);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  606|       |    /* clone URL */
  607|      0|    data->req.newurl = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|      0|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
  608|      0|    if(!data->req.newurl)
  ------------------
  |  Branch (608:8): [True: 0, False: 0]
  ------------------
  609|      0|      return CURLE_OUT_OF_MEMORY;
  610|      0|  }
  611|  3.79k|  else if((data->req.httpcode < 300) &&
  ------------------
  |  Branch (611:11): [True: 253, False: 3.53k]
  ------------------
  612|    253|          !data->state.authhost.done &&
  ------------------
  |  Branch (612:11): [True: 0, False: 253]
  ------------------
  613|      0|          data->req.authneg) {
  ------------------
  |  Branch (613:11): [True: 0, False: 0]
  ------------------
  614|       |    /* no (known) authentication available,
  615|       |       authentication is not "done" yet and
  616|       |       no authentication seems to be required and
  617|       |       we did not try HEAD or GET */
  618|      0|    if((data->state.httpreq != HTTPREQ_GET) &&
  ------------------
  |  Branch (618:8): [True: 0, False: 0]
  ------------------
  619|      0|       (data->state.httpreq != HTTPREQ_HEAD)) {
  ------------------
  |  Branch (619:8): [True: 0, False: 0]
  ------------------
  620|       |      /* clone URL */
  621|      0|      data->req.newurl = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|      0|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
  622|      0|      if(!data->req.newurl)
  ------------------
  |  Branch (622:10): [True: 0, False: 0]
  ------------------
  623|      0|        return CURLE_OUT_OF_MEMORY;
  624|      0|      data->state.authhost.done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  625|      0|    }
  626|      0|  }
  627|  3.79k|  if(http_should_fail(data, data->req.httpcode)) {
  ------------------
  |  Branch (627:6): [True: 1, False: 3.79k]
  ------------------
  628|      1|    failf(data, "The requested URL returned error: %d",
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
  629|      1|          data->req.httpcode);
  630|      1|    result = CURLE_HTTP_RETURNED_ERROR;
  631|      1|  }
  632|       |
  633|  3.79k|  return result;
  634|  3.79k|}
Curl_http_output_auth:
  773|  9.58k|{
  774|  9.58k|  CURLcode result = CURLE_OK;
  775|  9.58k|  struct auth *authhost;
  776|  9.58k|  struct auth *authproxy;
  777|  9.58k|  const char *path_and_query = path;
  778|  9.58k|  char *tmp_str = NULL;
  779|       |
  780|  9.58k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (780:3): [True: 0, False: 9.58k]
  |  Branch (780:3): [True: 9.58k, False: 0]
  ------------------
  781|  9.58k|  authhost = &data->state.authhost;
  782|  9.58k|  authproxy = &data->state.authproxy;
  783|       |
  784|  9.58k|  if(
  785|  9.58k|#ifndef CURL_DISABLE_PROXY
  786|  9.58k|    (!conn->bits.httpproxy || !conn->http_proxy.creds) &&
  ------------------
  |  Branch (786:6): [True: 9.58k, False: 0]
  |  Branch (786:31): [True: 0, False: 0]
  ------------------
  787|  9.58k|#endif
  788|       |#ifdef USE_SPNEGO
  789|       |    !(authhost->want & CURLAUTH_NEGOTIATE) &&
  790|       |    !(authproxy->want & CURLAUTH_NEGOTIATE) &&
  791|       |#endif
  792|  9.58k|    !data->state.creds) {
  ------------------
  |  Branch (792:5): [True: 8.26k, False: 1.32k]
  ------------------
  793|       |    /* no authentication with no user or password */
  794|  8.26k|    authhost->done = TRUE;
  ------------------
  |  | 1055|  8.26k|#define TRUE true
  ------------------
  795|  8.26k|    authproxy->done = TRUE;
  ------------------
  |  | 1055|  8.26k|#define TRUE true
  ------------------
  796|  8.26k|    result = CURLE_OK;
  797|  8.26k|    goto out;
  798|  8.26k|  }
  799|       |
  800|  1.32k|  if(query) {
  ------------------
  |  Branch (800:6): [True: 142, False: 1.18k]
  ------------------
  801|    142|    tmp_str = curl_maprintf("%s?%s", path, query);
  802|    142|    if(!tmp_str) {
  ------------------
  |  Branch (802:8): [True: 0, False: 142]
  ------------------
  803|      0|      result = CURLE_OUT_OF_MEMORY;
  804|      0|      goto out;
  805|      0|    }
  806|    142|    path_and_query = tmp_str;
  807|    142|  }
  808|       |
  809|  1.32k|  if(authhost->want && !authhost->picked)
  ------------------
  |  Branch (809:6): [True: 1.32k, False: 0]
  |  Branch (809:24): [True: 590, False: 732]
  ------------------
  810|       |    /* The app has selected one or more methods, but none has been picked
  811|       |       so far by a server round-trip. Then we set the picked one to the
  812|       |       want one, and if this is one single bit it will be used instantly. */
  813|    590|    authhost->picked = authhost->want;
  814|       |
  815|  1.32k|  if(authproxy->want && !authproxy->picked)
  ------------------
  |  Branch (815:6): [True: 1.32k, False: 0]
  |  Branch (815:25): [True: 590, False: 732]
  ------------------
  816|       |    /* The app has selected one or more methods, but none has been picked so
  817|       |       far by a proxy round-trip. Then we set the picked one to the want one,
  818|       |       and if this is one single bit it will be used instantly. */
  819|    590|    authproxy->picked = authproxy->want;
  820|       |
  821|  1.32k|#ifndef CURL_DISABLE_PROXY
  822|       |  /* Send proxy authentication header if needed */
  823|  1.32k|  if(conn->bits.httpproxy && (!conn->bits.tunnel_proxy || is_connect)) {
  ------------------
  |  Branch (823:6): [True: 0, False: 1.32k]
  |  Branch (823:31): [True: 0, False: 0]
  |  Branch (823:59): [True: 0, False: 0]
  ------------------
  824|      0|    result = output_auth_headers(data, conn, authproxy, request,
  825|      0|                                 path_and_query, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  826|      0|    if(result)
  ------------------
  |  Branch (826:8): [True: 0, False: 0]
  ------------------
  827|      0|      goto out;
  828|      0|  }
  829|  1.32k|  else
  830|       |#else
  831|       |  (void)is_connect;
  832|       |#endif /* CURL_DISABLE_PROXY */
  833|       |    /* we have no proxy so let's pretend we are done authenticating
  834|       |       with it */
  835|  1.32k|    authproxy->done = TRUE;
  ------------------
  |  | 1055|  1.32k|#define TRUE true
  ------------------
  836|       |
  837|       |  /* Either we have credentials for the origin we talk to or
  838|       |     performing authentication is allowed here */
  839|  1.32k|  if(data->state.creds || Curl_auth_allowed_to_host(data))
  ------------------
  |  Branch (839:6): [True: 1.32k, False: 0]
  |  Branch (839:27): [True: 0, False: 0]
  ------------------
  840|  1.32k|    result = output_auth_headers(data, conn, authhost, request,
  841|  1.32k|                                 path_and_query, FALSE);
  ------------------
  |  | 1058|  1.32k|#define FALSE false
  ------------------
  842|      0|  else
  843|      0|    authhost->done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  844|       |
  845|  1.32k|  if(((authhost->multipass && !authhost->done) ||
  ------------------
  |  Branch (845:8): [True: 0, False: 1.32k]
  |  Branch (845:31): [True: 0, False: 0]
  ------------------
  846|  1.32k|      (authproxy->multipass && !authproxy->done)) &&
  ------------------
  |  Branch (846:8): [True: 0, False: 1.32k]
  |  Branch (846:32): [True: 0, False: 0]
  ------------------
  847|      0|     (httpreq != HTTPREQ_GET) &&
  ------------------
  |  Branch (847:6): [True: 0, False: 0]
  ------------------
  848|      0|     (httpreq != HTTPREQ_HEAD)) {
  ------------------
  |  Branch (848:6): [True: 0, False: 0]
  ------------------
  849|       |    /* Auth is required and we are not authenticated yet. Make a PUT or POST
  850|       |       with content-length zero as a "probe". */
  851|      0|    data->req.authneg = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  852|      0|  }
  853|  1.32k|  else
  854|  1.32k|    data->req.authneg = FALSE;
  ------------------
  |  | 1058|  1.32k|#define FALSE false
  ------------------
  855|       |
  856|  9.58k|out:
  857|  9.58k|  curlx_free(tmp_str);
  ------------------
  |  | 1483|  9.58k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  858|  9.58k|  return result;
  859|  1.32k|}
Curl_http_follow:
 1142|  3.65k|{
 1143|  3.65k|  bool disallowport = FALSE;
  ------------------
  |  | 1058|  3.65k|#define FALSE false
  ------------------
 1144|  3.65k|  bool reachedmax = FALSE;
  ------------------
  |  | 1058|  3.65k|#define FALSE false
  ------------------
 1145|  3.65k|  char *follow_url = NULL;
 1146|  3.65k|  CURLUcode uc;
 1147|  3.65k|  CURLcode rewind_result;
 1148|  3.65k|  bool switch_to_get = FALSE;
  ------------------
  |  | 1058|  3.65k|#define FALSE false
  ------------------
 1149|       |
 1150|  3.65k|  DEBUGASSERT(type != FOLLOW_NONE);
  ------------------
  |  | 1081|  3.65k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1150:3): [True: 0, False: 3.65k]
  |  Branch (1150:3): [True: 3.65k, False: 0]
  ------------------
 1151|       |
 1152|  3.65k|  if(type != FOLLOW_FAKE)
  ------------------
  |  Branch (1152:6): [True: 3.38k, False: 275]
  ------------------
 1153|  3.38k|    data->state.requests++; /* count all real follows */
 1154|  3.65k|  if(type == FOLLOW_REDIR) {
  ------------------
  |  Branch (1154:6): [True: 3.22k, False: 437]
  ------------------
 1155|  3.22k|    if((data->set.maxredirs != -1) &&
  ------------------
  |  Branch (1155:8): [True: 3.20k, False: 18]
  ------------------
 1156|  3.20k|       (data->state.followlocation >= data->set.maxredirs)) {
  ------------------
  |  Branch (1156:8): [True: 10, False: 3.19k]
  ------------------
 1157|     10|      reachedmax = TRUE;
  ------------------
  |  | 1055|     10|#define TRUE true
  ------------------
 1158|     10|      type = FOLLOW_FAKE; /* switch to fake to store the would-be-redirected
 1159|       |                             to URL */
 1160|     10|    }
 1161|  3.21k|    else {
 1162|  3.21k|      data->state.followlocation++; /* count redirect-followings, including
 1163|       |                                       auth reloads */
 1164|       |
 1165|  3.21k|      if(data->set.http_auto_referer) {
  ------------------
  |  Branch (1165:10): [True: 808, False: 2.40k]
  ------------------
 1166|    808|        CURLU *u;
 1167|    808|        char *referer = NULL;
 1168|       |
 1169|       |        /* We are asked to automatically set the previous URL as the referer
 1170|       |           when we get the next URL. We pick the ->url field, which may or may
 1171|       |           not be 100% correct */
 1172|    808|        Curl_bufref_free(&data->state.referer);
 1173|       |
 1174|       |        /* Make a copy of the URL without credentials and fragment */
 1175|    808|        u = curl_url();
 1176|    808|        if(!u)
  ------------------
  |  Branch (1176:12): [True: 0, False: 808]
  ------------------
 1177|      0|          return CURLE_OUT_OF_MEMORY;
 1178|       |
 1179|    808|        uc = curl_url_set(u, CURLUPART_URL,
 1180|    808|                          Curl_bufref_ptr(&data->state.url), 0);
 1181|    808|        if(!uc)
  ------------------
  |  Branch (1181:12): [True: 807, False: 1]
  ------------------
 1182|    807|          uc = curl_url_set(u, CURLUPART_FRAGMENT, NULL, 0);
 1183|    808|        if(!uc)
  ------------------
  |  Branch (1183:12): [True: 807, False: 1]
  ------------------
 1184|    807|          uc = curl_url_set(u, CURLUPART_USER, NULL, 0);
 1185|    808|        if(!uc)
  ------------------
  |  Branch (1185:12): [True: 807, False: 1]
  ------------------
 1186|    807|          uc = curl_url_set(u, CURLUPART_PASSWORD, NULL, 0);
 1187|    808|        if(!uc)
  ------------------
  |  Branch (1187:12): [True: 807, False: 1]
  ------------------
 1188|    807|          uc = curl_url_get(u, CURLUPART_URL, &referer, 0);
 1189|       |
 1190|    808|        curl_url_cleanup(u);
 1191|       |
 1192|    808|        if(uc || !referer)
  ------------------
  |  Branch (1192:12): [True: 1, False: 807]
  |  Branch (1192:18): [True: 0, False: 807]
  ------------------
 1193|      1|          return CURLE_OUT_OF_MEMORY;
 1194|       |
 1195|    807|        Curl_bufref_set(&data->state.referer, referer, 0, curl_free);
 1196|    807|      }
 1197|  3.21k|    }
 1198|  3.22k|  }
 1199|       |
 1200|  3.65k|  if((type != FOLLOW_RETRY) &&
  ------------------
  |  Branch (1200:6): [True: 3.49k, False: 162]
  ------------------
 1201|  3.49k|     (data->req.httpcode != 401) && (data->req.httpcode != 407) &&
  ------------------
  |  Branch (1201:6): [True: 3.49k, False: 2]
  |  Branch (1201:37): [True: 3.49k, False: 2]
  ------------------
 1202|  3.49k|     Curl_is_absolute_url(newurl, NULL, 0, FALSE)) {
  ------------------
  |  | 1058|  3.49k|#define FALSE false
  ------------------
  |  Branch (1202:6): [True: 424, False: 3.06k]
  ------------------
 1203|       |    /* If this is not redirect due to a 401 or 407 response and an absolute
 1204|       |       URL: do not allow a custom port number */
 1205|    424|    disallowport = TRUE;
  ------------------
  |  | 1055|    424|#define TRUE true
  ------------------
 1206|    424|  }
 1207|       |
 1208|  3.65k|  DEBUGASSERT(data->state.uh);
  ------------------
  |  | 1081|  3.65k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1208:3): [True: 0, False: 3.65k]
  |  Branch (1208:3): [True: 3.65k, False: 0]
  ------------------
 1209|  3.65k|  uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl, (unsigned int)
 1210|  3.65k|                    ((type == FOLLOW_FAKE) ? CURLU_NON_SUPPORT_SCHEME :
  ------------------
  |  |   90|    285|#define CURLU_NON_SUPPORT_SCHEME (1 << 3) /* allow non-supported scheme */
  ------------------
  |  Branch (1210:22): [True: 285, False: 3.37k]
  ------------------
 1211|  3.65k|                     ((type == FOLLOW_REDIR) ? CURLU_URLENCODE : 0) |
  ------------------
  |  |   94|  3.21k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1211:23): [True: 3.21k, False: 162]
  ------------------
 1212|  3.37k|                     CURLU_ALLOW_SPACE |
  ------------------
  |  |   99|  3.37k|#define CURLU_ALLOW_SPACE (1 << 11)       /* Allow spaces in the URL */
  ------------------
 1213|  3.37k|                     (data->set.path_as_is ? CURLU_PATH_AS_IS : 0)));
  ------------------
  |  |   91|      0|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  ------------------
  |  Branch (1213:23): [True: 0, False: 3.37k]
  ------------------
 1214|  3.65k|  if(uc) {
  ------------------
  |  Branch (1214:6): [True: 108, False: 3.54k]
  ------------------
 1215|    108|    if((uc == CURLUE_OUT_OF_MEMORY) || (type != FOLLOW_FAKE)) {
  ------------------
  |  Branch (1215:8): [True: 0, False: 108]
  |  Branch (1215:40): [True: 40, False: 68]
  ------------------
 1216|     40|      failf(data, "The redirect target URL could not be parsed: %s",
  ------------------
  |  |   62|     40|#define failf Curl_failf
  ------------------
 1217|     40|            curl_url_strerror(uc));
 1218|     40|      return Curl_uc_to_curlcode(uc);
 1219|     40|    }
 1220|       |
 1221|       |    /* the URL could not be parsed for some reason, but since this is FAKE
 1222|       |       mode, duplicate the field as-is */
 1223|     68|    follow_url = curlx_strdup(newurl);
  ------------------
  |  | 1477|     68|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1224|     68|    if(!follow_url)
  ------------------
  |  Branch (1224:8): [True: 0, False: 68]
  ------------------
 1225|      0|      return CURLE_OUT_OF_MEMORY;
 1226|     68|  }
 1227|  3.54k|  else {
 1228|  3.54k|    CURLU *u = curl_url();
 1229|  3.54k|    if(!u)
  ------------------
  |  Branch (1229:8): [True: 0, False: 3.54k]
  ------------------
 1230|      0|      return CURLE_OUT_OF_MEMORY;
 1231|  3.54k|    uc = curl_url_set(u, CURLUPART_URL,
 1232|  3.54k|                      Curl_bufref_ptr(&data->state.url),
 1233|  3.54k|                      CURLU_URLENCODE | CURLU_ALLOW_SPACE);
  ------------------
  |  |   94|  3.54k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
                                    CURLU_URLENCODE | CURLU_ALLOW_SPACE);
  ------------------
  |  |   99|  3.54k|#define CURLU_ALLOW_SPACE (1 << 11)       /* Allow spaces in the URL */
  ------------------
 1234|  3.54k|    if(!uc)
  ------------------
  |  Branch (1234:8): [True: 3.54k, False: 3]
  ------------------
 1235|  3.54k|      uc = curl_url_get(data->state.uh, CURLUPART_URL, &follow_url, 0);
 1236|  3.54k|    if(uc) {
  ------------------
  |  Branch (1236:8): [True: 3, False: 3.54k]
  ------------------
 1237|      3|      curl_url_cleanup(u);
 1238|      3|      return Curl_uc_to_curlcode(uc);
 1239|      3|    }
 1240|       |
 1241|  3.54k|#ifndef CURL_DISABLE_DIGEST_AUTH
 1242|  3.54k|    {
 1243|  3.54k|      bool same_origin = Curl_url_same_origin(u, data->state.uh);
 1244|  3.54k|      curl_url_cleanup(u);
 1245|  3.54k|      if(!same_origin)
  ------------------
  |  Branch (1245:10): [True: 108, False: 3.43k]
  ------------------
 1246|    108|        Curl_auth_digest_cleanup(&data->state.digest);
 1247|  3.54k|    }
 1248|       |#else
 1249|       |    curl_url_cleanup(u);
 1250|       |#endif
 1251|  3.54k|  }
 1252|  3.61k|  DEBUGASSERT(follow_url);
  ------------------
  |  | 1081|  3.61k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1252:3): [True: 0, False: 3.61k]
  |  Branch (1252:3): [True: 3.61k, False: 0]
  ------------------
 1253|       |
 1254|  3.61k|  if(type == FOLLOW_FAKE) {
  ------------------
  |  Branch (1254:6): [True: 284, False: 3.33k]
  ------------------
 1255|       |    /* we are only figuring out the new URL if we would have followed locations
 1256|       |       but now we are done so we can get out! */
 1257|    284|    data->info.wouldredirect = follow_url;
 1258|       |
 1259|    284|    if(reachedmax) {
  ------------------
  |  Branch (1259:8): [True: 10, False: 274]
  ------------------
 1260|     10|      failf(data, "Maximum (%d) redirects followed", data->set.maxredirs);
  ------------------
  |  |   62|     10|#define failf Curl_failf
  ------------------
 1261|     10|      return CURLE_TOO_MANY_REDIRECTS;
 1262|     10|    }
 1263|    274|    return CURLE_OK;
 1264|    284|  }
 1265|       |
 1266|  3.33k|  if(disallowport)
  ------------------
  |  Branch (1266:6): [True: 291, False: 3.03k]
  ------------------
 1267|    291|    data->state.allow_port = FALSE;
  ------------------
  |  | 1058|    291|#define FALSE false
  ------------------
 1268|       |
 1269|  3.33k|  Curl_bufref_set(&data->state.url, follow_url, 0, curl_free);
 1270|  3.33k|  rewind_result = Curl_req_soft_reset(&data->req, data);
 1271|  3.33k|  infof(data, "Issue another request to this URL: '%s'", follow_url);
  ------------------
  |  |  143|  3.33k|  do {                               \
  |  |  144|  3.33k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  3.33k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 3.33k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  320|  3.33k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  3.33k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  3.33k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1272|  3.33k|  if((data->set.http_follow_mode == CURLFOLLOW_FIRSTONLY) &&
  ------------------
  |  |  186|  3.33k|#define CURLFOLLOW_FIRSTONLY 3L
  ------------------
  |  Branch (1272:6): [True: 0, False: 3.33k]
  ------------------
 1273|      0|     data->set.str[STRING_CUSTOMREQUEST] &&
  ------------------
  |  Branch (1273:6): [True: 0, False: 0]
  ------------------
 1274|      0|     !data->state.http_ignorecustom) {
  ------------------
  |  Branch (1274:6): [True: 0, False: 0]
  ------------------
 1275|      0|    data->state.http_ignorecustom = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1276|      0|    infof(data, "Drop custom request method for next request");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1277|      0|  }
 1278|       |
 1279|       |  /*
 1280|       |   * We get here when the HTTP code is 300-399 (and 401). We need to perform
 1281|       |   * differently based on exactly what return code there was.
 1282|       |   *
 1283|       |   * News from 7.10.6: we can also get here on a 401 or 407, in case we act on
 1284|       |   * an HTTP (proxy-) authentication scheme other than Basic.
 1285|       |   */
 1286|  3.33k|  switch(data->info.httpcode) {
 1287|       |    /* 401 - Act on a WWW-Authenticate, we keep on moving and do the
 1288|       |       Authorization: XXXX header in the HTTP request code snippet */
 1289|       |    /* 407 - Act on a Proxy-Authenticate, we keep on moving and do the
 1290|       |       Proxy-Authorization: XXXX header in the HTTP request code snippet */
 1291|       |    /* 300 - Multiple Choices */
 1292|       |    /* 306 - Not used */
 1293|       |    /* 307 - Temporary Redirect */
 1294|    619|  default: /* for all above (and the unknown ones) */
  ------------------
  |  Branch (1294:3): [True: 619, False: 2.71k]
  ------------------
 1295|       |    /* Some codes are explicitly mentioned since I have checked RFC2616 and
 1296|       |     * they seem to be OK to POST to.
 1297|       |     */
 1298|    619|    break;
 1299|  1.78k|  case 301: /* Moved Permanently */
  ------------------
  |  Branch (1299:3): [True: 1.78k, False: 1.54k]
  ------------------
 1300|       |    /* (quote from RFC7231, section 6.4.2)
 1301|       |     *
 1302|       |     * Note: For historical reasons, a user agent MAY change the request
 1303|       |     * method from POST to GET for the subsequent request. If this
 1304|       |     * behavior is undesired, the 307 (Temporary Redirect) status code
 1305|       |     * can be used instead.
 1306|       |     *
 1307|       |     * ----
 1308|       |     *
 1309|       |     * Many webservers expect this, so these servers often answers to a POST
 1310|       |     * request with an error page. To be sure that libcurl gets the page that
 1311|       |     * most user agents would get, libcurl has to force GET.
 1312|       |     *
 1313|       |     * This behavior is forbidden by RFC1945 and the obsolete RFC2616, and
 1314|       |     * can be overridden with CURLOPT_POSTREDIR.
 1315|       |     */
 1316|  1.78k|    if(HTTPREQ_IS_POST(data) && !data->set.post301) {
  ------------------
  |  | 1136|  3.56k|  ((data)->state.httpreq == HTTPREQ_POST ||      \
  |  |  ------------------
  |  |  |  Branch (1136:4): [True: 38, False: 1.74k]
  |  |  ------------------
  |  | 1137|  1.78k|   (data)->state.httpreq == HTTPREQ_POST_FORM || \
  |  |  ------------------
  |  |  |  Branch (1137:4): [True: 0, False: 1.74k]
  |  |  ------------------
  |  | 1138|  3.56k|   (data)->state.httpreq == HTTPREQ_POST_MIME)
  |  |  ------------------
  |  |  |  Branch (1138:4): [True: 0, False: 1.74k]
  |  |  ------------------
  ------------------
  |  Branch (1316:33): [True: 38, False: 0]
  ------------------
 1317|     38|      http_switch_to_get(data, 301);
 1318|     38|      switch_to_get = TRUE;
  ------------------
  |  | 1055|     38|#define TRUE true
  ------------------
 1319|     38|    }
 1320|  1.78k|    break;
 1321|     25|  case 302: /* Found */
  ------------------
  |  Branch (1321:3): [True: 25, False: 3.30k]
  ------------------
 1322|       |    /* (quote from RFC7231, section 6.4.3)
 1323|       |     *
 1324|       |     * Note: For historical reasons, a user agent MAY change the request
 1325|       |     * method from POST to GET for the subsequent request. If this
 1326|       |     * behavior is undesired, the 307 (Temporary Redirect) status code
 1327|       |     * can be used instead.
 1328|       |     *
 1329|       |     * ----
 1330|       |     *
 1331|       |     * Many webservers expect this, so these servers often answers to a POST
 1332|       |     * request with an error page. To be sure that libcurl gets the page that
 1333|       |     * most user agents would get, libcurl has to force GET.
 1334|       |     *
 1335|       |     * This behavior is forbidden by RFC1945 and the obsolete RFC2616, and
 1336|       |     * can be overridden with CURLOPT_POSTREDIR.
 1337|       |     */
 1338|     25|    if(HTTPREQ_IS_POST(data) && !data->set.post302) {
  ------------------
  |  | 1136|     50|  ((data)->state.httpreq == HTTPREQ_POST ||      \
  |  |  ------------------
  |  |  |  Branch (1136:4): [True: 2, False: 23]
  |  |  ------------------
  |  | 1137|     25|   (data)->state.httpreq == HTTPREQ_POST_FORM || \
  |  |  ------------------
  |  |  |  Branch (1137:4): [True: 0, False: 23]
  |  |  ------------------
  |  | 1138|     50|   (data)->state.httpreq == HTTPREQ_POST_MIME)
  |  |  ------------------
  |  |  |  Branch (1138:4): [True: 0, False: 23]
  |  |  ------------------
  ------------------
  |  Branch (1338:33): [True: 2, False: 0]
  ------------------
 1339|      2|      http_switch_to_get(data, 302);
 1340|      2|      switch_to_get = TRUE;
  ------------------
  |  | 1055|      2|#define TRUE true
  ------------------
 1341|      2|    }
 1342|     25|    break;
 1343|       |
 1344|     34|  case 303: /* See Other */
  ------------------
  |  Branch (1344:3): [True: 34, False: 3.29k]
  ------------------
 1345|       |    /* 'See Other' location is not the resource but a substitute for the
 1346|       |     * resource. In this case we switch the method to GET/HEAD, unless the
 1347|       |     * method is POST and the user specified to keep it as POST.
 1348|       |     */
 1349|     34|    if(!HTTPREQ_IS_POST(data) || !data->set.post303) {
  ------------------
  |  | 1136|     68|  ((data)->state.httpreq == HTTPREQ_POST ||      \
  |  |  ------------------
  |  |  |  Branch (1136:4): [True: 1, False: 33]
  |  |  ------------------
  |  | 1137|     34|   (data)->state.httpreq == HTTPREQ_POST_FORM || \
  |  |  ------------------
  |  |  |  Branch (1137:4): [True: 0, False: 33]
  |  |  ------------------
  |  | 1138|     68|   (data)->state.httpreq == HTTPREQ_POST_MIME)
  |  |  ------------------
  |  |  |  Branch (1138:4): [True: 0, False: 33]
  |  |  ------------------
  ------------------
  |  Branch (1349:34): [True: 1, False: 0]
  ------------------
 1350|     34|      http_switch_to_get(data, 303);
 1351|     34|      switch_to_get = TRUE;
  ------------------
  |  | 1055|     34|#define TRUE true
  ------------------
 1352|     34|    }
 1353|     34|    break;
 1354|    869|  case 304: /* Not Modified */
  ------------------
  |  Branch (1354:3): [True: 869, False: 2.46k]
  ------------------
 1355|       |    /* 304 means we did a conditional request and it was "Not modified".
 1356|       |     * We should not get any Location: header in this response!
 1357|       |     */
 1358|    869|    break;
 1359|      0|  case 305: /* Use Proxy */
  ------------------
  |  Branch (1359:3): [True: 0, False: 3.33k]
  ------------------
 1360|       |    /* (quote from RFC2616, section 10.3.6):
 1361|       |     * "The requested resource MUST be accessed through the proxy given
 1362|       |     * by the Location field. The Location field gives the URI of the
 1363|       |     * proxy. The recipient is expected to repeat this single request
 1364|       |     * via the proxy. 305 responses MUST only be generated by origin
 1365|       |     * servers."
 1366|       |     */
 1367|      0|    break;
 1368|  3.33k|  }
 1369|       |
 1370|       |  /* When rewind of upload data failed and we are not switching to GET,
 1371|       |   * we need to fail the follow, as we cannot send the data again. */
 1372|  3.33k|  if(rewind_result && !switch_to_get)
  ------------------
  |  Branch (1372:6): [True: 14, False: 3.31k]
  |  Branch (1372:23): [True: 13, False: 1]
  ------------------
 1373|     13|    return rewind_result;
 1374|       |
 1375|  3.31k|  Curl_pgrsTime(data, TIMER_REDIRECT);
 1376|  3.31k|  Curl_pgrsResetTransferSizes(data);
 1377|       |
 1378|  3.31k|  return CURLE_OK;
 1379|  3.33k|}
Curl_compareheader:
 1394|  1.34k|{
 1395|       |  /* RFC2616, section 4.2 says: "Each header field consists of a name followed
 1396|       |   * by a colon (":") and the field value. Field names are case-insensitive.
 1397|       |   * The field value MAY be preceded by any amount of LWS, though a single SP
 1398|       |   * is preferred." */
 1399|       |
 1400|  1.34k|  const char *p;
 1401|  1.34k|  struct Curl_str val;
 1402|  1.34k|  DEBUGASSERT(hlen);
  ------------------
  |  | 1081|  1.34k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1402:3): [True: 0, False: 1.34k]
  |  Branch (1402:3): [True: 1.34k, False: 0]
  ------------------
 1403|  1.34k|  DEBUGASSERT(clen);
  ------------------
  |  | 1081|  1.34k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1403:3): [True: 0, False: 1.34k]
  |  Branch (1403:3): [True: 1.34k, False: 0]
  ------------------
 1404|  1.34k|  DEBUGASSERT(header);
  ------------------
  |  | 1081|  1.34k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1404:3): [True: 0, False: 1.34k]
  |  Branch (1404:3): [True: 1.34k, False: 0]
  ------------------
 1405|  1.34k|  DEBUGASSERT(content);
  ------------------
  |  | 1081|  1.34k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1405:3): [True: 0, False: 1.34k]
  |  Branch (1405:3): [True: 1.34k, False: 0]
  ------------------
 1406|       |
 1407|  1.34k|  if(!curl_strnequal(headerline, header, hlen))
  ------------------
  |  Branch (1407:6): [True: 0, False: 1.34k]
  ------------------
 1408|      0|    return FALSE; /* does not start with header */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1409|       |
 1410|       |  /* pass the header */
 1411|  1.34k|  p = &headerline[hlen];
 1412|       |
 1413|  1.34k|  if(curlx_str_untilnl(&p, &val, MAX_HTTP_RESP_HEADER_SIZE))
  ------------------
  |  |  153|  1.34k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  |  Branch (1413:6): [True: 0, False: 1.34k]
  ------------------
 1414|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1415|  1.34k|  curlx_str_trimblanks(&val);
 1416|       |
 1417|       |  /* find the content string in the rest of the line */
 1418|  1.34k|  if(curlx_strlen(&val) >= clen) {
  ------------------
  |  |   50|  1.34k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (1418:6): [True: 1.34k, False: 0]
  ------------------
 1419|  1.34k|    size_t len;
 1420|  1.34k|    p = curlx_str(&val);
  ------------------
  |  |   49|  1.34k|#define curlx_str(x)    ((x)->str)
  ------------------
 1421|  1.34k|    for(len = curlx_strlen(&val); len >= clen;) {
  ------------------
  |  |   50|  1.34k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (1421:35): [True: 1.34k, False: 0]
  ------------------
 1422|  1.34k|      struct Curl_str next;
 1423|  1.34k|      const char *o = p;
 1424|       |      /* after a match there must be a comma, space, newline or null byte */
 1425|  1.34k|      if(curl_strnequal(p, content, clen) &&
  ------------------
  |  Branch (1425:10): [True: 0, False: 1.34k]
  ------------------
 1426|      0|         ((p[clen] == ',') || ISBLANK(p[clen]) || ISNEWLINE(p[clen]) ||
  ------------------
  |  |   45|      0|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 0, False: 0]
  |  |  |  Branch (45:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                       ((p[clen] == ',') || ISBLANK(p[clen]) || ISNEWLINE(p[clen]) ||
  ------------------
  |  |   50|      0|#define ISNEWLINE(x)    (((x) == '\n') || (x) == '\r')
  |  |  ------------------
  |  |  |  Branch (50:26): [True: 0, False: 0]
  |  |  |  Branch (50:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1426:11): [True: 0, False: 0]
  ------------------
 1427|      0|          !p[clen]))
  ------------------
  |  Branch (1427:11): [True: 0, False: 0]
  ------------------
 1428|      0|        return TRUE; /* match! */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1429|       |      /* advance to the next comma */
 1430|  1.34k|      if(curlx_str_until(&p, &next, MAX_HTTP_RESP_HEADER_SIZE, ',') ||
  ------------------
  |  |  153|  1.34k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  |  Branch (1430:10): [True: 0, False: 1.34k]
  ------------------
 1431|  1.34k|         curlx_str_single(&p, ','))
  ------------------
  |  Branch (1431:10): [True: 1.34k, False: 0]
  ------------------
 1432|  1.34k|        break; /* no comma, get out */
 1433|       |
 1434|       |      /* if there are more dummy commas, move over them as well */
 1435|      0|      do
 1436|      0|        curlx_str_passblanks(&p);
 1437|      0|      while(!curlx_str_single(&p, ','));
  ------------------
  |  Branch (1437:13): [True: 0, False: 0]
  ------------------
 1438|      0|      len -= (p - o);
 1439|      0|    }
 1440|  1.34k|  }
 1441|  1.34k|  return FALSE; /* no match */
  ------------------
  |  | 1058|  1.34k|#define FALSE false
  ------------------
 1442|  1.34k|}
Curl_http_perform_pollset:
 1595|   110k|{
 1596|   110k|  struct connectdata *conn = data->conn;
 1597|   110k|  CURLcode result = CURLE_OK;
 1598|       |
 1599|   110k|  if(CURL_REQ_WANT_RECV(data)) {
  ------------------
  |  |   40|   110k|#define CURL_REQ_WANT_RECV(d)  ((d)->req.io_flags & REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|   110k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  |  |  |  Branch (40:32): [True: 97.7k, False: 12.3k]
  |  |  ------------------
  ------------------
 1600|  97.7k|    result = Curl_pollset_add_in(data, ps, conn->sock[FIRSTSOCKET]);
  ------------------
  |  |  162|  97.7k|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, 0)
  |  |  ------------------
  |  |  |  |  283|  97.7k|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1601|  97.7k|  }
 1602|       |
 1603|       |  /* on a "Expect: 100-continue" timed wait, do not poll for outgoing */
 1604|   110k|  if(!result && Curl_req_want_send(data) && !http_exp100_is_waiting(data)) {
  ------------------
  |  Branch (1604:6): [True: 110k, False: 0]
  |  Branch (1604:17): [True: 14.2k, False: 95.8k]
  |  Branch (1604:45): [True: 9.45k, False: 4.78k]
  ------------------
 1605|  9.45k|    result = Curl_pollset_add_out(data, ps, conn->sock[FIRSTSOCKET]);
  ------------------
  |  |  166|  9.45k|  Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, 0)
  |  |  ------------------
  |  |  |  |  284|  9.45k|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
 1606|  9.45k|  }
 1607|   110k|  return result;
 1608|   110k|}
Curl_http_done:
 1644|  9.58k|{
 1645|  9.58k|  struct connectdata *conn = data->conn;
 1646|       |
 1647|       |  /* Clear multipass flag. If authentication is not done yet, then it will get
 1648|       |   * a chance to be set back to true when we output the next auth header */
 1649|  9.58k|  data->state.authhost.multipass = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 1650|  9.58k|  data->state.authproxy.multipass = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 1651|       |
 1652|  9.58k|  if(curlx_dyn_len(&data->state.headerb)) {
  ------------------
  |  Branch (1652:6): [True: 710, False: 8.87k]
  ------------------
 1653|    710|    (void)http_write_header(data, curlx_dyn_ptr(&data->state.headerb),
 1654|    710|                            curlx_dyn_len(&data->state.headerb));
 1655|    710|  }
 1656|  9.58k|  curlx_dyn_reset(&data->state.headerb);
 1657|       |
 1658|  9.58k|  if(status)
  ------------------
  |  Branch (1658:6): [True: 4.36k, False: 5.22k]
  ------------------
 1659|  4.36k|    return status;
 1660|       |
 1661|  5.22k|  if(!premature && /* this check is pointless when DONE is called before the
  ------------------
  |  Branch (1661:6): [True: 5.20k, False: 18]
  ------------------
 1662|       |                      entire operation is complete */
 1663|  5.20k|     !conn->bits.retry &&
  ------------------
  |  Branch (1663:6): [True: 5.04k, False: 157]
  ------------------
 1664|  5.04k|     !data->set.connect_only &&
  ------------------
  |  Branch (1664:6): [True: 4.64k, False: 402]
  ------------------
 1665|  4.64k|     (data->req.bytecount +
  ------------------
  |  Branch (1665:6): [True: 497, False: 4.15k]
  ------------------
 1666|  4.64k|      data->req.headerbytecount -
 1667|  4.64k|      data->req.deductheadercount) <= 0) {
 1668|       |    /* If this connection is not closed to be retried, AND nothing was
 1669|       |       read from the HTTP server (that counts), this cannot be right so we
 1670|       |       return an error here */
 1671|    497|    failf(data, "Empty reply from server");
  ------------------
  |  |   62|    497|#define failf Curl_failf
  ------------------
 1672|       |    /* Mark it as closed to avoid the "left intact" message */
 1673|    497|    streamclose(conn, "Empty reply from server");
  ------------------
  |  |  102|    497|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|    497|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 1674|    497|    return CURLE_GOT_NOTHING;
 1675|    497|  }
 1676|       |
 1677|  4.72k|  return CURLE_OK;
 1678|  5.22k|}
Curl_add_custom_headers:
 1727|  9.58k|{
 1728|  9.58k|  struct curl_slist *h[2];
 1729|  9.58k|  struct curl_slist *headers;
 1730|  9.58k|  int numlists = 1; /* by default */
 1731|  9.58k|  int i;
 1732|       |
 1733|  9.58k|#ifndef CURL_DISABLE_PROXY
 1734|  9.58k|  enum Curl_proxy_use proxy;
 1735|       |
 1736|  9.58k|  if(is_connect)
  ------------------
  |  Branch (1736:6): [True: 0, False: 9.58k]
  ------------------
 1737|      0|    proxy = HEADER_CONNECT;
 1738|  9.58k|  else
 1739|  9.58k|    proxy = data->conn->bits.httpproxy && !data->conn->bits.tunnel_proxy ?
  ------------------
  |  Branch (1739:13): [True: 0, False: 9.58k]
  |  Branch (1739:43): [True: 0, False: 0]
  ------------------
 1740|  9.58k|      HEADER_PROXY : HEADER_SERVER;
 1741|       |
 1742|  9.58k|  switch(proxy) {
  ------------------
  |  Branch (1742:10): [True: 9.58k, False: 0]
  ------------------
 1743|  9.58k|  case HEADER_SERVER:
  ------------------
  |  Branch (1743:3): [True: 9.58k, False: 0]
  ------------------
 1744|  9.58k|    h[0] = data->set.headers;
 1745|  9.58k|    break;
 1746|      0|  case HEADER_PROXY:
  ------------------
  |  Branch (1746:3): [True: 0, False: 9.58k]
  ------------------
 1747|      0|    h[0] = data->set.headers;
 1748|      0|    if(data->set.sep_headers) {
  ------------------
  |  Branch (1748:8): [True: 0, False: 0]
  ------------------
 1749|      0|      h[1] = data->set.proxyheaders;
 1750|      0|      numlists++;
 1751|      0|    }
 1752|      0|    break;
 1753|      0|  case HEADER_CONNECT:
  ------------------
  |  Branch (1753:3): [True: 0, False: 9.58k]
  ------------------
 1754|      0|    if(data->set.sep_headers)
  ------------------
  |  Branch (1754:8): [True: 0, False: 0]
  ------------------
 1755|      0|      h[0] = data->set.proxyheaders;
 1756|      0|    else
 1757|      0|      h[0] = data->set.headers;
 1758|      0|    break;
 1759|      0|  case HEADER_CONNECT_UDP:
  ------------------
  |  Branch (1759:3): [True: 0, False: 9.58k]
  ------------------
 1760|      0|    if(data->set.sep_headers)
  ------------------
  |  Branch (1760:8): [True: 0, False: 0]
  ------------------
 1761|      0|      h[0] = data->set.proxyheaders;
 1762|      0|    else
 1763|      0|      h[0] = data->set.headers;
 1764|      0|    break;
 1765|  9.58k|  }
 1766|       |#else
 1767|       |  (void)is_connect;
 1768|       |  h[0] = data->set.headers;
 1769|       |#endif
 1770|       |
 1771|       |  /* loop through one or two lists */
 1772|  19.1k|  for(i = 0; i < numlists; i++) {
  ------------------
  |  Branch (1772:14): [True: 9.58k, False: 9.58k]
  ------------------
 1773|  9.58k|    for(headers = h[i]; headers; headers = headers->next) {
  ------------------
  |  Branch (1773:25): [True: 0, False: 9.58k]
  ------------------
 1774|      0|      CURLcode result = CURLE_OK;
 1775|      0|      bool blankheader = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1776|      0|      struct Curl_str name;
 1777|      0|      const char *p = headers->data;
 1778|      0|      const char *origp = p;
 1779|       |
 1780|       |      /* explicitly asked to send header without content is done by a header
 1781|       |         that ends with a semicolon, but there must be no colon present in the
 1782|       |         name */
 1783|      0|      if(!curlx_str_until(&p, &name, MAX_HTTP_RESP_HEADER_SIZE, ';') &&
  ------------------
  |  |  153|      0|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  |  Branch (1783:10): [True: 0, False: 0]
  ------------------
 1784|      0|         !curlx_str_single(&p, ';') &&
  ------------------
  |  Branch (1784:10): [True: 0, False: 0]
  ------------------
 1785|      0|         !curlx_str_single(&p, '\0') &&
  ------------------
  |  Branch (1785:10): [True: 0, False: 0]
  ------------------
 1786|      0|         !memchr(curlx_str(&name), ':', curlx_strlen(&name)))
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
                       !memchr(curlx_str(&name), ':', curlx_strlen(&name)))
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (1786:10): [True: 0, False: 0]
  ------------------
 1787|      0|        blankheader = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1788|      0|      else {
 1789|      0|        p = origp;
 1790|      0|        if(!curlx_str_until(&p, &name, MAX_HTTP_RESP_HEADER_SIZE, ':') &&
  ------------------
  |  |  153|      0|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  |  Branch (1790:12): [True: 0, False: 0]
  ------------------
 1791|      0|           !curlx_str_single(&p, ':')) {
  ------------------
  |  Branch (1791:12): [True: 0, False: 0]
  ------------------
 1792|      0|          struct Curl_str val;
 1793|      0|          curlx_str_untilnl(&p, &val, MAX_HTTP_RESP_HEADER_SIZE);
  ------------------
  |  |  153|      0|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
 1794|      0|          curlx_str_trimblanks(&val);
 1795|      0|          if(!curlx_strlen(&val))
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (1795:14): [True: 0, False: 0]
  ------------------
 1796|       |            /* no content, do not send this */
 1797|      0|            continue;
 1798|      0|        }
 1799|      0|        else
 1800|       |          /* no colon */
 1801|      0|          continue;
 1802|      0|      }
 1803|       |
 1804|       |      /* only send this if the contents was non-blank or done special */
 1805|       |
 1806|      0|      if(data->state.aptr.host &&
  ------------------
  |  Branch (1806:10): [True: 0, False: 0]
  ------------------
 1807|       |         /* a Host: header was sent already, do not pass on any custom
 1808|       |            Host: header as that will produce *two* in the same
 1809|       |            request! */
 1810|      0|         curlx_str_casecompare(&name, "Host"))
  ------------------
  |  Branch (1810:10): [True: 0, False: 0]
  ------------------
 1811|      0|        ;
 1812|      0|      else if(data->state.httpreq == HTTPREQ_POST_FORM &&
  ------------------
  |  Branch (1812:15): [True: 0, False: 0]
  ------------------
 1813|       |              /* this header (extended by formdata.c) is sent later */
 1814|      0|              curlx_str_casecompare(&name, "Content-Type"))
  ------------------
  |  Branch (1814:15): [True: 0, False: 0]
  ------------------
 1815|      0|        ;
 1816|      0|      else if(data->state.httpreq == HTTPREQ_POST_MIME &&
  ------------------
  |  Branch (1816:15): [True: 0, False: 0]
  ------------------
 1817|       |              /* this header is sent later */
 1818|      0|              curlx_str_casecompare(&name, "Content-Type"))
  ------------------
  |  Branch (1818:15): [True: 0, False: 0]
  ------------------
 1819|      0|        ;
 1820|      0|      else if(data->req.authneg &&
  ------------------
  |  Branch (1820:15): [True: 0, False: 0]
  ------------------
 1821|       |              /* while doing auth neg, do not allow the custom length since
 1822|       |                 we will force length zero then */
 1823|      0|              curlx_str_casecompare(&name, "Content-Length"))
  ------------------
  |  Branch (1823:15): [True: 0, False: 0]
  ------------------
 1824|      0|        ;
 1825|      0|      else if(curlx_str_casecompare(&name, "Connection"))
  ------------------
  |  Branch (1825:15): [True: 0, False: 0]
  ------------------
 1826|       |        /* Connection headers are handled specially */
 1827|      0|        ;
 1828|      0|      else if((httpversion >= 20) &&
  ------------------
  |  Branch (1828:15): [True: 0, False: 0]
  ------------------
 1829|      0|              curlx_str_casecompare(&name, "Transfer-Encoding"))
  ------------------
  |  Branch (1829:15): [True: 0, False: 0]
  ------------------
 1830|       |        /* HTTP/2 does not support chunked requests */
 1831|      0|        ;
 1832|      0|      else if((curlx_str_casecompare(&name, "Authorization") ||
  ------------------
  |  Branch (1832:16): [True: 0, False: 0]
  ------------------
 1833|      0|               curlx_str_casecompare(&name, "Cookie")) &&
  ------------------
  |  Branch (1833:16): [True: 0, False: 0]
  ------------------
 1834|       |              /* be careful of sending this potentially sensitive header to
 1835|       |                 other hosts */
 1836|      0|              !Curl_auth_allowed_to_host(data))
  ------------------
  |  Branch (1836:15): [True: 0, False: 0]
  ------------------
 1837|      0|        ;
 1838|      0|      else if(blankheader)
  ------------------
  |  Branch (1838:15): [True: 0, False: 0]
  ------------------
 1839|      0|        result = curlx_dyn_addf(req, "%.*s:\r\n", (int)curlx_strlen(&name),
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
 1840|      0|                                curlx_str(&name));
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
 1841|      0|      else
 1842|      0|        result = curlx_dyn_addf(req, "%s\r\n", origp);
 1843|       |
 1844|      0|      if(result)
  ------------------
  |  Branch (1844:10): [True: 0, False: 0]
  ------------------
 1845|      0|        return result;
 1846|      0|    }
 1847|  9.58k|  }
 1848|       |
 1849|  9.58k|  return CURLE_OK;
 1850|  9.58k|}
Curl_add_timecondition:
 1855|  9.58k|{
 1856|  9.58k|  const struct tm *tm;
 1857|  9.58k|  struct tm keeptime;
 1858|  9.58k|  CURLcode result;
 1859|  9.58k|  char datestr[80];
 1860|  9.58k|  const char *condp;
 1861|  9.58k|  size_t len;
 1862|       |
 1863|  9.58k|  if(data->set.timecondition == CURL_TIMECOND_NONE)
  ------------------
  |  | 2410|  9.58k|#define CURL_TIMECOND_NONE         0L
  ------------------
  |  Branch (1863:6): [True: 9.58k, False: 0]
  ------------------
 1864|       |    /* no condition was asked for */
 1865|  9.58k|    return CURLE_OK;
 1866|       |
 1867|      0|  result = curlx_gmtime(data->set.timevalue, &keeptime);
 1868|      0|  if(result) {
  ------------------
  |  Branch (1868:6): [True: 0, False: 0]
  ------------------
 1869|      0|    failf(data, "Invalid TIMEVALUE");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1870|      0|    return result;
 1871|      0|  }
 1872|      0|  tm = &keeptime;
 1873|       |
 1874|      0|  switch(data->set.timecondition) {
 1875|      0|  default:
  ------------------
  |  Branch (1875:3): [True: 0, False: 0]
  ------------------
 1876|      0|    DEBUGF(infof(data, "invalid time condition"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1877|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1878|       |
 1879|      0|  case CURL_TIMECOND_IFMODSINCE:
  ------------------
  |  | 2411|      0|#define CURL_TIMECOND_IFMODSINCE   1L
  ------------------
  |  Branch (1879:3): [True: 0, False: 0]
  ------------------
 1880|      0|    condp = "If-Modified-Since";
 1881|      0|    len = 17;
 1882|      0|    break;
 1883|      0|  case CURL_TIMECOND_IFUNMODSINCE:
  ------------------
  |  | 2412|      0|#define CURL_TIMECOND_IFUNMODSINCE 2L
  ------------------
  |  Branch (1883:3): [True: 0, False: 0]
  ------------------
 1884|      0|    condp = "If-Unmodified-Since";
 1885|      0|    len = 19;
 1886|      0|    break;
 1887|      0|  case CURL_TIMECOND_LASTMOD:
  ------------------
  |  | 2413|      0|#define CURL_TIMECOND_LASTMOD      3L
  ------------------
  |  Branch (1887:3): [True: 0, False: 0]
  ------------------
 1888|      0|    condp = "Last-Modified";
 1889|      0|    len = 13;
 1890|      0|    break;
 1891|      0|  }
 1892|       |
 1893|      0|  if(Curl_checkheaders(data, condp, len)) {
  ------------------
  |  Branch (1893:6): [True: 0, False: 0]
  ------------------
 1894|       |    /* A custom header was specified; it will be sent instead. */
 1895|      0|    return CURLE_OK;
 1896|      0|  }
 1897|       |
 1898|       |  /* The If-Modified-Since header family should have their times set in
 1899|       |   * GMT as RFC2616 defines: "All HTTP date/time stamps MUST be
 1900|       |   * represented in Greenwich Mean Time (GMT), without exception. For the
 1901|       |   * purposes of HTTP, GMT is exactly equal to UTC (Coordinated Universal
 1902|       |   * Time)." (see page 20 of RFC2616).
 1903|       |   */
 1904|       |
 1905|       |  /* format: "Tue, 15 Nov 1994 12:45:26 GMT" */
 1906|      0|  curl_msnprintf(datestr, sizeof(datestr),
 1907|      0|                 "%s: %s, %02d %s %4d %02d:%02d:%02d GMT\r\n",
 1908|      0|                 condp,
 1909|      0|                 Curl_wkday[tm->tm_wday ? tm->tm_wday - 1 : 6],
  ------------------
  |  Branch (1909:29): [True: 0, False: 0]
  ------------------
 1910|      0|                 tm->tm_mday,
 1911|      0|                 Curl_month[tm->tm_mon],
 1912|      0|                 tm->tm_year + 1900,
 1913|      0|                 tm->tm_hour,
 1914|      0|                 tm->tm_min,
 1915|      0|                 tm->tm_sec);
 1916|       |
 1917|      0|  result = curlx_dyn_add(req, datestr);
 1918|      0|  return result;
 1919|      0|}
Curl_http_method:
 1933|  9.58k|{
 1934|  9.58k|  Curl_HttpReq httpreq = (Curl_HttpReq)data->state.httpreq;
 1935|  9.58k|  const char *request;
 1936|  9.58k|#ifndef CURL_DISABLE_WEBSOCKETS
 1937|  9.58k|  if(data->conn->scheme->protocol & (CURLPROTO_WS | CURLPROTO_WSS))
  ------------------
  |  |   63|  9.58k|#define CURLPROTO_WS     (1L << 30)
  ------------------
                if(data->conn->scheme->protocol & (CURLPROTO_WS | CURLPROTO_WSS))
  ------------------
  |  |   64|  9.58k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  ------------------
  |  Branch (1937:6): [True: 1.34k, False: 8.23k]
  ------------------
 1938|  1.34k|    httpreq = HTTPREQ_GET;
 1939|  8.23k|  else
 1940|  8.23k|#endif
 1941|  8.23k|  if((data->conn->scheme->protocol & (PROTO_FAMILY_HTTP | CURLPROTO_FTP)) &&
  ------------------
  |  |   84|  8.23k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1078|  8.23k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1079|  8.23k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  8.23k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  8.23k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  8.23k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
                if((data->conn->scheme->protocol & (PROTO_FAMILY_HTTP | CURLPROTO_FTP)) &&
  ------------------
  |  | 1080|  8.23k|#define CURLPROTO_FTP     (1L << 2)
  ------------------
  |  Branch (1941:6): [True: 8.23k, False: 0]
  ------------------
 1942|  8.23k|     data->state.upload)
  ------------------
  |  Branch (1942:6): [True: 532, False: 7.70k]
  ------------------
 1943|    532|    httpreq = HTTPREQ_PUT;
 1944|       |
 1945|       |  /* Now set the 'request' pointer to the proper request string */
 1946|  9.58k|  if(data->set.str[STRING_CUSTOMREQUEST] &&
  ------------------
  |  Branch (1946:6): [True: 370, False: 9.21k]
  ------------------
 1947|    370|     !data->state.http_ignorecustom) {
  ------------------
  |  Branch (1947:6): [True: 370, False: 0]
  ------------------
 1948|    370|    request = data->set.str[STRING_CUSTOMREQUEST];
 1949|    370|  }
 1950|  9.21k|  else {
 1951|  9.21k|    if(data->req.no_body)
  ------------------
  |  Branch (1951:8): [True: 390, False: 8.82k]
  ------------------
 1952|    390|      request = "HEAD";
 1953|  8.82k|    else {
 1954|  8.82k|      DEBUGASSERT((httpreq >= HTTPREQ_GET) && (httpreq <= HTTPREQ_HEAD));
  ------------------
  |  | 1081|  8.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1954:7): [True: 0, False: 8.82k]
  |  Branch (1954:7): [True: 0, False: 0]
  |  Branch (1954:7): [True: 8.82k, False: 0]
  |  Branch (1954:7): [True: 8.82k, False: 0]
  ------------------
 1955|  8.82k|      switch(httpreq) {
 1956|  1.15k|      case HTTPREQ_POST:
  ------------------
  |  Branch (1956:7): [True: 1.15k, False: 7.67k]
  ------------------
 1957|  1.15k|      case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (1957:7): [True: 0, False: 8.82k]
  ------------------
 1958|  1.15k|      case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (1958:7): [True: 0, False: 8.82k]
  ------------------
 1959|  1.15k|        request = "POST";
 1960|  1.15k|        break;
 1961|    508|      case HTTPREQ_PUT:
  ------------------
  |  Branch (1961:7): [True: 508, False: 8.31k]
  ------------------
 1962|    508|        request = "PUT";
 1963|    508|        break;
 1964|      0|      default: /* this should never happen */
  ------------------
  |  Branch (1964:7): [True: 0, False: 8.82k]
  ------------------
 1965|  7.16k|      case HTTPREQ_GET:
  ------------------
  |  Branch (1965:7): [True: 7.16k, False: 1.66k]
  ------------------
 1966|  7.16k|        request = "GET";
 1967|  7.16k|        break;
 1968|      0|      case HTTPREQ_HEAD:
  ------------------
  |  Branch (1968:7): [True: 0, False: 8.82k]
  ------------------
 1969|      0|        request = "HEAD";
 1970|      0|        break;
 1971|  8.82k|      }
 1972|  8.82k|    }
 1973|  9.21k|  }
 1974|  9.58k|  *method = request;
 1975|  9.58k|  *reqp = httpreq;
 1976|  9.58k|}
Curl_http:
 3018|  9.58k|{
 3019|  9.58k|  CURLcode result = CURLE_OK;
 3020|  9.58k|  Curl_HttpReq httpreq;
 3021|  9.58k|  const char *method;
 3022|  9.58k|  struct dynbuf req;
 3023|  9.58k|  unsigned char httpversion;
 3024|  9.58k|  size_t hd_id;
 3025|       |
 3026|       |  /* Always consider the DO phase done after this function call, even if there
 3027|       |     may be parts of the request that are not yet sent, since we can deal with
 3028|       |     the rest of the request in the PERFORM phase. */
 3029|  9.58k|  *done = TRUE;
  ------------------
  |  | 1055|  9.58k|#define TRUE true
  ------------------
 3030|       |  /* initialize a dynamic send-buffer */
 3031|  9.58k|  curlx_dyn_init(&req, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  9.58k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 3032|       |  /* make sure the header buffer is reset - if there are leftovers from a
 3033|       |     previous transfer */
 3034|  9.58k|  curlx_dyn_reset(&data->state.headerb);
 3035|  9.58k|  data->state.maybe_folded = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 3036|       |
 3037|  9.58k|  if(!data->conn->bits.reuse) {
  ------------------
  |  Branch (3037:6): [True: 6.79k, False: 2.79k]
  ------------------
 3038|  6.79k|    result = http_check_new_conn(data);
 3039|  6.79k|    if(result)
  ------------------
  |  Branch (3039:8): [True: 0, False: 6.79k]
  ------------------
 3040|      0|      goto out;
 3041|  6.79k|  }
 3042|       |
 3043|       |  /* Add collecting of headers written to client. For a new connection,
 3044|       |   * we might have done that already, but reuse
 3045|       |   * or multiplex needs it here as well. */
 3046|  9.58k|  result = Curl_headers_init(data);
 3047|  9.58k|  if(result)
  ------------------
  |  Branch (3047:6): [True: 0, False: 9.58k]
  ------------------
 3048|      0|    goto out;
 3049|       |
 3050|  9.58k|  data->state.http_hd_te = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 3051|  9.58k|  data->state.http_hd_upgrade = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 3052|  9.58k|  data->state.http_hd_h2_settings = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 3053|       |
 3054|       |  /* what kind of request do we need to send? */
 3055|  9.58k|  Curl_http_method(data, &method, &httpreq);
 3056|       |
 3057|       |  /* select host to send */
 3058|  9.58k|  result = http_set_aptr_host(data);
 3059|       |  /* setup the authentication headers, how that method and host are known */
 3060|  9.58k|  if(!result)
  ------------------
  |  Branch (3060:6): [True: 9.58k, False: 0]
  ------------------
 3061|  9.58k|    result = Curl_http_output_auth(data, data->conn, method, httpreq,
 3062|  9.58k|                                   data->state.up.path,
 3063|  9.58k|                                   data->state.up.query, FALSE);
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 3064|  9.58k|  if(!result)
  ------------------
  |  Branch (3064:6): [True: 9.58k, False: 0]
  ------------------
 3065|  9.58k|    result = http_useragent(data);
 3066|       |  /* Setup input reader, resume information and ranges */
 3067|  9.58k|  if(!result)
  ------------------
  |  Branch (3067:6): [True: 9.58k, False: 0]
  ------------------
 3068|  9.58k|    result = set_reader(data, httpreq);
 3069|  9.58k|  if(!result)
  ------------------
  |  Branch (3069:6): [True: 9.58k, False: 0]
  ------------------
 3070|  9.58k|    result = http_resume(data, httpreq);
 3071|  9.58k|  if(!result)
  ------------------
  |  Branch (3071:6): [True: 9.58k, False: 0]
  ------------------
 3072|  9.58k|    result = http_range(data, httpreq);
 3073|  9.58k|  if(result)
  ------------------
  |  Branch (3073:6): [True: 0, False: 9.58k]
  ------------------
 3074|      0|    goto out;
 3075|       |
 3076|  9.58k|  httpversion = http_request_version(data);
 3077|       |  /* Add request line and all headers to `req` */
 3078|   201k|  for(hd_id = 0; hd_id <= H1_HD_LAST; ++hd_id) {
  ------------------
  |  Branch (3078:18): [True: 191k, False: 9.58k]
  ------------------
 3079|   191k|    result = http_add_hd(data, &req, (http_hd_t)hd_id,
 3080|   191k|                         httpversion, method, httpreq);
 3081|   191k|    if(result)
  ------------------
  |  Branch (3081:8): [True: 1, False: 191k]
  ------------------
 3082|      1|      goto out;
 3083|   191k|  }
 3084|       |
 3085|       |  /* setup variables for the upcoming transfer and send */
 3086|  9.58k|  Curl_xfer_setup_sendrecv(data, FIRSTSOCKET, -1);
  ------------------
  |  |  303|  9.58k|#define FIRSTSOCKET     0
  ------------------
 3087|  9.58k|  result = Curl_req_send(data, &req, httpversion);
 3088|       |
 3089|  9.58k|  if((httpversion >= 20) && data->req.upload_chunky)
  ------------------
  |  Branch (3089:6): [True: 2.90k, False: 6.68k]
  |  Branch (3089:29): [True: 0, False: 2.90k]
  ------------------
 3090|       |    /* upload_chunky was set above to set up the request in a chunky fashion,
 3091|       |       but is disabled here again to avoid that the chunked encoded version is
 3092|       |       actually used when sending the request body over h2 */
 3093|      0|    data->req.upload_chunky = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 3094|       |
 3095|  9.58k|out:
 3096|  9.58k|  if(result == CURLE_TOO_LARGE)
  ------------------
  |  Branch (3096:6): [True: 0, False: 9.58k]
  ------------------
 3097|      0|    failf(data, "HTTP request too large");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3098|       |
 3099|  9.58k|  curlx_dyn_free(&req);
 3100|  9.58k|  return result;
 3101|  9.58k|}
Curl_bump_headersize:
 3841|  36.2k|{
 3842|  36.2k|  size_t bad = 0;
 3843|  36.2k|  unsigned int max = MAX_HTTP_RESP_HEADER_SIZE;
  ------------------
  |  |  153|  36.2k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
 3844|  36.2k|  if(delta < MAX_HTTP_RESP_HEADER_SIZE) {
  ------------------
  |  |  153|  36.2k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  |  Branch (3844:6): [True: 36.2k, False: 0]
  ------------------
 3845|  36.2k|    data->info.header_size += (unsigned int)delta;
 3846|  36.2k|    data->req.allheadercount += (unsigned int)delta;
 3847|  36.2k|    if(!connect_only)
  ------------------
  |  Branch (3847:8): [True: 36.2k, False: 0]
  ------------------
 3848|  36.2k|      data->req.headerbytecount += (unsigned int)delta;
 3849|  36.2k|    if(data->req.allheadercount > max)
  ------------------
  |  Branch (3849:8): [True: 0, False: 36.2k]
  ------------------
 3850|      0|      bad = data->req.allheadercount;
 3851|  36.2k|    else if(data->info.header_size > (max * 20)) {
  ------------------
  |  Branch (3851:13): [True: 0, False: 36.2k]
  ------------------
 3852|      0|      bad = data->info.header_size;
 3853|      0|      max *= 20;
 3854|      0|    }
 3855|  36.2k|  }
 3856|      0|  else
 3857|      0|    bad = data->req.allheadercount + delta;
 3858|  36.2k|  if(bad) {
  ------------------
  |  Branch (3858:6): [True: 0, False: 36.2k]
  ------------------
 3859|      0|    failf(data, "Too large response headers: %zu > %u", bad, max);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3860|      0|    return CURLE_RECV_ERROR;
 3861|      0|  }
 3862|  36.2k|  return CURLE_OK;
 3863|  36.2k|}
Curl_http_to_fold:
 4379|    573|{
 4380|    573|  size_t len = curlx_dyn_len(bf);
 4381|    573|  const char *hd = curlx_dyn_ptr(bf);
 4382|    573|  if(len && (hd[len - 1] == '\n'))
  ------------------
  |  Branch (4382:6): [True: 573, False: 0]
  |  Branch (4382:13): [True: 573, False: 0]
  ------------------
 4383|    573|    len--;
 4384|    573|  if(len && (hd[len - 1] == '\r'))
  ------------------
  |  Branch (4384:6): [True: 573, False: 0]
  |  Branch (4384:13): [True: 103, False: 470]
  ------------------
 4385|    103|    len--;
 4386|  2.39k|  while(len && ISBLANK(hd[len - 1])) /* strip off trailing whitespace */
  ------------------
  |  |   45|  2.32k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 979, False: 1.35k]
  |  |  |  Branch (45:38): [True: 842, False: 508]
  |  |  ------------------
  ------------------
  |  Branch (4386:9): [True: 2.32k, False: 65]
  ------------------
 4387|  1.82k|    len--;
 4388|    573|  curlx_dyn_setlen(bf, len);
 4389|    573|}
Curl_http_write_resp_hd:
 4572|  10.0k|{
 4573|  10.0k|  CURLcode result;
 4574|  10.0k|  size_t consumed;
 4575|  10.0k|  char tmp = 0;
 4576|  10.0k|  DEBUGASSERT(!hd[hdlen]); /* null-terminated */
  ------------------
  |  | 1081|  10.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4576:3): [True: 0, False: 10.0k]
  |  Branch (4576:3): [True: 10.0k, False: 0]
  ------------------
 4577|       |
 4578|  10.0k|  result = http_rw_hd(data, hd, hdlen, &tmp, 0, &consumed);
 4579|  10.0k|  if(!result && is_eos) {
  ------------------
  |  Branch (4579:6): [True: 9.96k, False: 95]
  |  Branch (4579:17): [True: 0, False: 9.96k]
  ------------------
 4580|      0|    result = Curl_client_write(data, (CLIENTWRITE_BODY | CLIENTWRITE_EOS),
  ------------------
  |  |   42|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
                  result = Curl_client_write(data, (CLIENTWRITE_BODY | CLIENTWRITE_EOS),
  ------------------
  |  |   49|      0|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
 4581|      0|                               &tmp, 0);
 4582|      0|  }
 4583|  10.0k|  return result;
 4584|  10.0k|}
Curl_http_write_resp_hds:
 4593|  10.8k|{
 4594|  10.8k|  if(!data->req.header) {
  ------------------
  |  Branch (4594:6): [True: 2.97k, False: 7.85k]
  ------------------
 4595|  2.97k|    *pconsumed = 0;
 4596|  2.97k|    return CURLE_OK;
 4597|  2.97k|  }
 4598|  7.85k|  else {
 4599|  7.85k|    CURLcode result;
 4600|       |
 4601|  7.85k|    result = http_parse_headers(data, buf, blen, pconsumed);
 4602|  7.85k|    if(!result && !data->req.header) {
  ------------------
  |  Branch (4602:8): [True: 7.17k, False: 679]
  |  Branch (4602:19): [True: 4.99k, False: 2.18k]
  ------------------
 4603|  4.99k|      if(!data->req.no_body && curlx_dyn_len(&data->state.headerb)) {
  ------------------
  |  Branch (4603:10): [True: 4.68k, False: 317]
  |  Branch (4603:32): [True: 16, False: 4.66k]
  ------------------
 4604|       |        /* leftover from parsing something that turned out not
 4605|       |         * to be a header, only happens if we allow for
 4606|       |         * HTTP/0.9 like responses */
 4607|     16|        result = Curl_client_write(data, CLIENTWRITE_BODY,
  ------------------
  |  |   42|     16|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
 4608|     16|                                   curlx_dyn_ptr(&data->state.headerb),
 4609|     16|                                   curlx_dyn_len(&data->state.headerb));
 4610|     16|      }
 4611|  4.99k|      curlx_dyn_free(&data->state.headerb);
 4612|  4.99k|    }
 4613|  7.85k|    return result;
 4614|  7.85k|  }
 4615|  10.8k|}
Curl_http_write_resp:
 4620|  10.8k|{
 4621|  10.8k|  CURLcode result;
 4622|  10.8k|  size_t consumed;
 4623|  10.8k|  int flags;
 4624|       |
 4625|  10.8k|  result = Curl_http_write_resp_hds(data, buf, blen, &consumed);
 4626|  10.8k|  if(result || data->req.done)
  ------------------
  |  Branch (4626:6): [True: 679, False: 10.1k]
  |  Branch (4626:16): [True: 138, False: 10.0k]
  ------------------
 4627|    817|    goto out;
 4628|       |
 4629|  10.0k|  DEBUGASSERT(consumed <= blen);
  ------------------
  |  | 1081|  10.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4629:3): [True: 0, False: 10.0k]
  |  Branch (4629:3): [True: 10.0k, False: 0]
  ------------------
 4630|  10.0k|  blen -= consumed;
 4631|  10.0k|  buf += consumed;
 4632|       |  /* either all was consumed in header parsing, or we have data left
 4633|       |   * and are done with headers, e.g. it is BODY data */
 4634|  10.0k|  DEBUGASSERT(!blen || !data->req.header);
  ------------------
  |  | 1081|  10.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4634:3): [True: 10.0k, False: 0]
  |  Branch (4634:3): [True: 0, False: 0]
  |  Branch (4634:3): [True: 7.10k, False: 2.91k]
  |  Branch (4634:3): [True: 2.91k, False: 0]
  ------------------
 4635|  10.0k|  if(!data->req.header && (blen || is_eos)) {
  ------------------
  |  Branch (4635:6): [True: 7.83k, False: 2.18k]
  |  Branch (4635:28): [True: 2.91k, False: 4.92k]
  |  Branch (4635:36): [True: 784, False: 4.14k]
  ------------------
 4636|       |    /* BODY data after header been parsed, write and consume */
 4637|  3.69k|    flags = CLIENTWRITE_BODY;
  ------------------
  |  |   42|  3.69k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
 4638|  3.69k|    if(is_eos)
  ------------------
  |  Branch (4638:8): [True: 784, False: 2.91k]
  ------------------
 4639|    784|      flags |= CLIENTWRITE_EOS;
  ------------------
  |  |   49|    784|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
 4640|  3.69k|    result = Curl_client_write(data, flags, buf, blen);
 4641|  3.69k|  }
 4642|  10.8k|out:
 4643|  10.8k|  return result;
 4644|  10.0k|}
Curl_http_decode_status:
 4648|    487|{
 4649|    487|  CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
 4650|    487|  int status = 0;
 4651|    487|  int i;
 4652|       |
 4653|    487|  if(len != 3)
  ------------------
  |  Branch (4653:6): [True: 0, False: 487]
  ------------------
 4654|      0|    goto out;
 4655|       |
 4656|  1.94k|  for(i = 0; i < 3; ++i) {
  ------------------
  |  Branch (4656:14): [True: 1.46k, False: 487]
  ------------------
 4657|  1.46k|    char c = s[i];
 4658|       |
 4659|  1.46k|    if(c < '0' || c > '9')
  ------------------
  |  Branch (4659:8): [True: 0, False: 1.46k]
  |  Branch (4659:19): [True: 0, False: 1.46k]
  ------------------
 4660|      0|      goto out;
 4661|       |
 4662|  1.46k|    status *= 10;
 4663|  1.46k|    status += c - '0';
 4664|  1.46k|  }
 4665|    487|  result = CURLE_OK;
 4666|    487|out:
 4667|    487|  *pstatus = result ? -1 : status;
  ------------------
  |  Branch (4667:14): [True: 0, False: 487]
  ------------------
 4668|    487|  return result;
 4669|    487|}
Curl_http_req_make:
 4676|  2.89k|{
 4677|  2.89k|  struct httpreq *req;
 4678|  2.89k|  CURLcode result = CURLE_OUT_OF_MEMORY;
 4679|       |
 4680|  2.89k|  DEBUGASSERT(method && m_len);
  ------------------
  |  | 1081|  2.89k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4680:3): [True: 0, False: 2.89k]
  |  Branch (4680:3): [True: 0, False: 0]
  |  Branch (4680:3): [True: 2.89k, False: 0]
  |  Branch (4680:3): [True: 2.89k, False: 0]
  ------------------
 4681|       |
 4682|  2.89k|  req = curlx_calloc(1, sizeof(*req) + m_len);
  ------------------
  |  | 1480|  2.89k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 4683|  2.89k|  if(!req)
  ------------------
  |  Branch (4683:6): [True: 0, False: 2.89k]
  ------------------
 4684|      0|    goto out;
 4685|       |#if defined(__GNUC__) && __GNUC__ >= 13
 4686|       |#pragma GCC diagnostic push
 4687|       |/* error: 'memcpy' offset [137, 142] from the object at 'req' is out of
 4688|       |   the bounds of referenced subobject 'method' with type 'char[1]' at
 4689|       |   offset 136 */
 4690|       |#pragma GCC diagnostic ignored "-Warray-bounds"
 4691|       |#endif
 4692|  2.89k|  memcpy(req->method, method, m_len);
 4693|       |#if defined(__GNUC__) && __GNUC__ >= 13
 4694|       |#pragma GCC diagnostic pop
 4695|       |#endif
 4696|  2.89k|  if(scheme) {
  ------------------
  |  Branch (4696:6): [True: 0, False: 2.89k]
  ------------------
 4697|      0|    req->scheme = curlx_memdup0(scheme, s_len);
 4698|      0|    if(!req->scheme)
  ------------------
  |  Branch (4698:8): [True: 0, False: 0]
  ------------------
 4699|      0|      goto out;
 4700|      0|  }
 4701|  2.89k|  if(authority) {
  ------------------
  |  Branch (4701:6): [True: 2, False: 2.89k]
  ------------------
 4702|      2|    req->authority = curlx_memdup0(authority, a_len);
 4703|      2|    if(!req->authority)
  ------------------
  |  Branch (4703:8): [True: 0, False: 2]
  ------------------
 4704|      0|      goto out;
 4705|      2|  }
 4706|  2.89k|  if(path) {
  ------------------
  |  Branch (4706:6): [True: 2.89k, False: 2]
  ------------------
 4707|  2.89k|    req->path = curlx_memdup0(path, p_len);
 4708|  2.89k|    if(!req->path)
  ------------------
  |  Branch (4708:8): [True: 0, False: 2.89k]
  ------------------
 4709|      0|      goto out;
 4710|  2.89k|  }
 4711|  2.89k|  Curl_dynhds_init(&req->headers, 0, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  2.89k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 4712|  2.89k|  Curl_dynhds_init(&req->trailers, 0, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  2.89k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 4713|  2.89k|  result = CURLE_OK;
 4714|       |
 4715|  2.89k|out:
 4716|  2.89k|  if(result && req)
  ------------------
  |  Branch (4716:6): [True: 0, False: 2.89k]
  |  Branch (4716:16): [True: 0, False: 0]
  ------------------
 4717|      0|    Curl_http_req_free(req);
 4718|  2.89k|  *preq = result ? NULL : req;
  ------------------
  |  Branch (4718:11): [True: 0, False: 2.89k]
  ------------------
 4719|  2.89k|  return result;
 4720|  2.89k|}
Curl_http_req_free:
 4844|  5.83k|{
 4845|  5.83k|  if(req) {
  ------------------
  |  Branch (4845:6): [True: 2.89k, False: 2.93k]
  ------------------
 4846|  2.89k|    curlx_free(req->scheme);
  ------------------
  |  | 1483|  2.89k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 4847|  2.89k|    curlx_free(req->authority);
  ------------------
  |  | 1483|  2.89k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 4848|  2.89k|    curlx_free(req->path);
  ------------------
  |  | 1483|  2.89k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 4849|  2.89k|    Curl_dynhds_free(&req->headers);
 4850|  2.89k|    Curl_dynhds_free(&req->trailers);
 4851|  2.89k|    curlx_free(req);
  ------------------
  |  | 1483|  2.89k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 4852|  2.89k|  }
 4853|  5.83k|}
Curl_http_req_to_h2:
 4911|  2.88k|{
 4912|  2.88k|  const char *scheme = NULL, *authority = NULL;
 4913|  2.88k|  struct dynhds_entry *e;
 4914|  2.88k|  size_t i;
 4915|  2.88k|  CURLcode result;
 4916|       |
 4917|  2.88k|  DEBUGASSERT(req);
  ------------------
  |  | 1081|  2.88k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4917:3): [True: 0, False: 2.88k]
  |  Branch (4917:3): [True: 2.88k, False: 0]
  ------------------
 4918|  2.88k|  DEBUGASSERT(h2_headers);
  ------------------
  |  | 1081|  2.88k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4918:3): [True: 0, False: 2.88k]
  |  Branch (4918:3): [True: 2.88k, False: 0]
  ------------------
 4919|       |
 4920|  2.88k|  if(req->scheme) {
  ------------------
  |  Branch (4920:6): [True: 0, False: 2.88k]
  ------------------
 4921|      0|    scheme = req->scheme;
 4922|      0|  }
 4923|  2.88k|  else if(strcmp("CONNECT", req->method)) {
  ------------------
  |  Branch (4923:11): [True: 2.88k, False: 0]
  ------------------
 4924|  2.88k|    scheme = Curl_checkheaders(data, STRCONST(HTTP_PSEUDO_SCHEME));
  ------------------
  |  | 1292|  2.88k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 4925|  2.88k|    if(scheme) {
  ------------------
  |  Branch (4925:8): [True: 0, False: 2.88k]
  ------------------
 4926|      0|      scheme += sizeof(HTTP_PSEUDO_SCHEME);
  ------------------
  |  |  226|      0|#define HTTP_PSEUDO_SCHEME    ":scheme"
  ------------------
 4927|      0|      curlx_str_passblanks(&scheme);
 4928|      0|      infof(data, "set pseudo header %s to %s", HTTP_PSEUDO_SCHEME, scheme);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4929|      0|    }
 4930|  2.88k|    else {
 4931|  2.88k|      scheme = Curl_xfer_is_secure(data) ? "https" : "http";
  ------------------
  |  Branch (4931:16): [True: 0, False: 2.88k]
  ------------------
 4932|  2.88k|    }
 4933|  2.88k|  }
 4934|       |
 4935|  2.88k|  if(req->authority) {
  ------------------
  |  Branch (4935:6): [True: 2, False: 2.88k]
  ------------------
 4936|      2|    authority = req->authority;
 4937|      2|  }
 4938|  2.88k|  else {
 4939|  2.88k|    e = Curl_dynhds_get(&req->headers, STRCONST("Host"));
  ------------------
  |  | 1292|  2.88k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 4940|  2.88k|    if(e)
  ------------------
  |  Branch (4940:8): [True: 2.88k, False: 0]
  ------------------
 4941|  2.88k|      authority = e->value;
 4942|  2.88k|  }
 4943|       |
 4944|  2.88k|  Curl_dynhds_reset(h2_headers);
 4945|  2.88k|  Curl_dynhds_set_opts(h2_headers, DYNHDS_OPT_LOWERCASE);
  ------------------
  |  |   54|  2.88k|#define DYNHDS_OPT_LOWERCASE     (1 << 0)
  ------------------
 4946|  2.88k|  result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_METHOD),
  ------------------
  |  | 1292|  2.88k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 4947|  2.88k|                           req->method, strlen(req->method));
 4948|  2.88k|  if(!result && scheme) {
  ------------------
  |  Branch (4948:6): [True: 2.88k, False: 0]
  |  Branch (4948:17): [True: 2.88k, False: 0]
  ------------------
 4949|  2.88k|    result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_SCHEME),
  ------------------
  |  | 1292|  2.88k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 4950|  2.88k|                             scheme, strlen(scheme));
 4951|  2.88k|  }
 4952|  2.88k|  if(!result && authority) {
  ------------------
  |  Branch (4952:6): [True: 2.88k, False: 0]
  |  Branch (4952:17): [True: 2.88k, False: 0]
  ------------------
 4953|  2.88k|    result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_AUTHORITY),
  ------------------
  |  | 1292|  2.88k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 4954|  2.88k|                             authority, strlen(authority));
 4955|  2.88k|  }
 4956|  2.88k|  if(!result && req->path) {
  ------------------
  |  Branch (4956:6): [True: 2.88k, False: 0]
  |  Branch (4956:17): [True: 2.88k, False: 2]
  ------------------
 4957|  2.88k|    result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_PATH),
  ------------------
  |  | 1292|  2.88k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 4958|  2.88k|                             req->path, strlen(req->path));
 4959|  2.88k|  }
 4960|  28.7k|  for(i = 0; !result && i < Curl_dynhds_count(&req->headers); ++i) {
  ------------------
  |  Branch (4960:14): [True: 28.7k, False: 0]
  |  Branch (4960:25): [True: 25.8k, False: 2.88k]
  ------------------
 4961|  25.8k|    e = Curl_dynhds_getn(&req->headers, i);
 4962|       |    /* "TE" is special in that it is only permissible when it
 4963|       |     * has only value "trailers". RFC 9113 ch. 8.2.2 */
 4964|  25.8k|    if(e->namelen == 2 && curl_strequal("TE", e->name)) {
  ------------------
  |  Branch (4964:8): [True: 3.65k, False: 22.2k]
  |  Branch (4964:27): [True: 146, False: 3.50k]
  ------------------
 4965|    146|      if(http_TE_has_token(e->value, "trailers"))
  ------------------
  |  Branch (4965:10): [True: 0, False: 146]
  ------------------
 4966|      0|        result = Curl_dynhds_add(h2_headers, e->name, e->namelen,
 4967|      0|                                 "trailers", sizeof("trailers") - 1);
 4968|    146|    }
 4969|  25.7k|    else if(h2_permissible_field(e)) {
  ------------------
  |  Branch (4969:13): [True: 22.7k, False: 2.92k]
  ------------------
 4970|  22.7k|      result = Curl_dynhds_add(h2_headers, e->name, e->namelen,
 4971|  22.7k|                               e->value, e->valuelen);
 4972|  22.7k|    }
 4973|  25.8k|  }
 4974|       |
 4975|  2.88k|  return result;
 4976|  2.88k|}
http.c:pickoneauth:
  351|      2|{
  352|      2|  bool picked;
  353|       |  /* only deal with authentication we want */
  354|      2|  unsigned long avail = pick->avail & pick->want & mask;
  355|      2|  picked = TRUE;
  ------------------
  |  | 1055|      2|#define TRUE true
  ------------------
  356|       |
  357|       |  /* The order of these checks is highly relevant, as this will be the order
  358|       |     of preference in case of the existence of multiple accepted types. */
  359|      2|  if(avail & CURLAUTH_NEGOTIATE)
  ------------------
  |  |  833|      2|#define CURLAUTH_NEGOTIATE    (((unsigned long)1) << 2)
  ------------------
  |  Branch (359:6): [True: 0, False: 2]
  ------------------
  360|      0|    pick->picked = CURLAUTH_NEGOTIATE;
  ------------------
  |  |  833|      0|#define CURLAUTH_NEGOTIATE    (((unsigned long)1) << 2)
  ------------------
  361|      2|#ifndef CURL_DISABLE_BEARER_AUTH
  362|      2|  else if(avail & CURLAUTH_BEARER)
  ------------------
  |  |  844|      2|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  |  Branch (362:11): [True: 0, False: 2]
  ------------------
  363|      0|    pick->picked = CURLAUTH_BEARER;
  ------------------
  |  |  844|      0|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  364|      2|#endif
  365|      2|#ifndef CURL_DISABLE_DIGEST_AUTH
  366|      2|  else if(avail & CURLAUTH_DIGEST)
  ------------------
  |  |  832|      2|#define CURLAUTH_DIGEST       (((unsigned long)1) << 1)
  ------------------
  |  Branch (366:11): [True: 0, False: 2]
  ------------------
  367|      0|    pick->picked = CURLAUTH_DIGEST;
  ------------------
  |  |  832|      0|#define CURLAUTH_DIGEST       (((unsigned long)1) << 1)
  ------------------
  368|      2|#endif
  369|      2|  else if(avail & CURLAUTH_NTLM)
  ------------------
  |  |  838|      2|#define CURLAUTH_NTLM         (((unsigned long)1) << 3)
  ------------------
  |  Branch (369:11): [True: 0, False: 2]
  ------------------
  370|      0|    pick->picked = CURLAUTH_NTLM;
  ------------------
  |  |  838|      0|#define CURLAUTH_NTLM         (((unsigned long)1) << 3)
  ------------------
  371|      2|#ifndef CURL_DISABLE_BASIC_AUTH
  372|      2|  else if(avail & CURLAUTH_BASIC)
  ------------------
  |  |  831|      2|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  |  Branch (372:11): [True: 0, False: 2]
  ------------------
  373|      0|    pick->picked = CURLAUTH_BASIC;
  ------------------
  |  |  831|      0|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  374|      2|#endif
  375|      2|#ifndef CURL_DISABLE_AWS
  376|      2|  else if(avail & CURLAUTH_AWS_SIGV4)
  ------------------
  |  |  845|      2|#define CURLAUTH_AWS_SIGV4    (((unsigned long)1) << 7)
  ------------------
  |  Branch (376:11): [True: 0, False: 2]
  ------------------
  377|      0|    pick->picked = CURLAUTH_AWS_SIGV4;
  ------------------
  |  |  845|      0|#define CURLAUTH_AWS_SIGV4    (((unsigned long)1) << 7)
  ------------------
  378|      2|#endif
  379|      2|  else {
  380|      2|    pick->picked = CURLAUTH_PICKNONE; /* we select to use nothing */
  ------------------
  |  |  123|      2|#define CURLAUTH_PICKNONE (1 << 30) /* do not use auth */
  ------------------
  381|      2|    picked = FALSE;
  ------------------
  |  | 1058|      2|#define FALSE false
  ------------------
  382|      2|  }
  383|      2|  pick->avail = CURLAUTH_NONE; /* clear it here */
  ------------------
  |  |  830|      2|#define CURLAUTH_NONE         ((unsigned long)0)
  ------------------
  384|       |
  385|      2|  return picked;
  386|      2|}
http.c:http_perhapsrewind:
  398|  3.24k|{
  399|  3.24k|  curl_off_t bytessent = data->req.writebytecount;
  400|  3.24k|  curl_off_t expectsend = Curl_creader_total_length(data);
  401|  3.24k|  curl_off_t upload_remain = (expectsend >= 0) ? (expectsend - bytessent) : -1;
  ------------------
  |  Branch (401:30): [True: 3.23k, False: 12]
  ------------------
  402|  3.24k|  bool little_upload_remains = (upload_remain >= 0 && upload_remain < 2000);
  ------------------
  |  Branch (402:33): [True: 3.23k, False: 12]
  |  Branch (402:55): [True: 3.18k, False: 49]
  ------------------
  403|  3.24k|  bool needs_rewind = Curl_creader_needs_rewind(data);
  404|       |  /* By default, we would like to abort the transfer when little or unknown
  405|       |   * amount remains. This may be overridden by authentications further
  406|       |   * below! */
  407|  3.24k|  bool abort_upload = (!data->req.upload_done && !little_upload_remains);
  ------------------
  |  Branch (407:24): [True: 119, False: 3.12k]
  |  Branch (407:50): [True: 61, False: 58]
  ------------------
  408|  3.24k|  VERBOSE(const char *ongoing_auth = NULL);
  ------------------
  |  | 1618|  3.24k|#define VERBOSE(x) x
  ------------------
  409|       |
  410|       |  /* We need a rewind before uploading client read data again. The
  411|       |   * checks below influence of the upload is to be continued
  412|       |   * or aborted early.
  413|       |   * This depends on how much remains to be sent and in what state
  414|       |   * the authentication is. Some auth schemes such as NTLM do not work
  415|       |   * for a new connection. */
  416|  3.24k|  if(needs_rewind) {
  ------------------
  |  Branch (416:6): [True: 131, False: 3.11k]
  ------------------
  417|    131|    infof(data, "Need to rewind upload for next request");
  ------------------
  |  |  143|    131|  do {                               \
  |  |  144|    131|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    131|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 131, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 131]
  |  |  |  |  ------------------
  |  |  |  |  320|    131|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    131|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    131|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 131]
  |  |  ------------------
  ------------------
  418|    131|    Curl_creader_set_rewind(data, TRUE);
  ------------------
  |  | 1055|    131|#define TRUE true
  ------------------
  419|    131|  }
  420|       |
  421|  3.24k|  if(conn->bits.close)
  ------------------
  |  Branch (421:6): [True: 6, False: 3.24k]
  ------------------
  422|       |    /* If we already decided to close this connection, we cannot veto. */
  423|      6|    return CURLE_OK;
  424|       |
  425|  3.24k|  if(abort_upload) {
  ------------------
  |  Branch (425:6): [True: 61, False: 3.18k]
  ------------------
  426|       |    /* We would like to abort the upload - but should we? */
  427|       |#ifdef USE_NTLM
  428|       |    if((data->state.authproxy.picked == CURLAUTH_NTLM) ||
  429|       |       (data->state.authhost.picked == CURLAUTH_NTLM)) {
  430|       |      VERBOSE(ongoing_auth = "NTLM");
  431|       |      if((conn->http_ntlm_state != NTLMSTATE_NONE) ||
  432|       |         (conn->proxy_ntlm_state != NTLMSTATE_NONE)) {
  433|       |        /* The NTLM-negotiation has started, keep on sending.
  434|       |         * Need to do further work on same connection */
  435|       |        abort_upload = FALSE;
  436|       |      }
  437|       |    }
  438|       |#endif
  439|       |#ifdef USE_SPNEGO
  440|       |    /* There is still data left to send */
  441|       |    if((data->state.authproxy.picked == CURLAUTH_NEGOTIATE) ||
  442|       |       (data->state.authhost.picked == CURLAUTH_NEGOTIATE)) {
  443|       |      VERBOSE(ongoing_auth = "NEGOTIATE");
  444|       |      if((conn->http_negotiate_state != GSS_AUTHNONE) ||
  445|       |         (conn->proxy_negotiate_state != GSS_AUTHNONE)) {
  446|       |        /* The NEGOTIATE-negotiation has started, keep on sending.
  447|       |         * Need to do further work on same connection */
  448|       |        abort_upload = FALSE;
  449|       |      }
  450|       |    }
  451|       |#endif
  452|     61|  }
  453|       |
  454|  3.24k|  if(abort_upload) {
  ------------------
  |  Branch (454:6): [True: 61, False: 3.18k]
  ------------------
  455|     61|    if(upload_remain >= 0)
  ------------------
  |  Branch (455:8): [True: 49, False: 12]
  ------------------
  456|     49|      infof(data, "%s%sclose instead of sending %" FMT_OFF_T " more bytes",
  ------------------
  |  |  143|     49|  do {                               \
  |  |  144|     49|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     49|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 49, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 49]
  |  |  |  |  ------------------
  |  |  |  |  320|     49|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     49|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|     49|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 49]
  |  |  ------------------
  ------------------
  457|     61|            ongoing_auth ? ongoing_auth : "",
  458|     61|            ongoing_auth ? " send, " : "",
  459|     61|            upload_remain);
  460|     12|    else
  461|     12|      infof(data, "%s%sclose instead of sending unknown amount "
  ------------------
  |  |  143|     12|  do {                               \
  |  |  144|     12|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     12|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 12, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 12]
  |  |  |  |  ------------------
  |  |  |  |  320|     12|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     12|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|     12|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 12]
  |  |  ------------------
  ------------------
  462|     61|            "of more bytes",
  463|     61|            ongoing_auth ? ongoing_auth : "",
  464|     61|            ongoing_auth ? " send, " : "");
  465|       |    /* We decided to abort the ongoing transfer */
  466|     61|    streamclose(conn, "Mid-auth HTTP and much data left to send");
  ------------------
  |  |  102|     61|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|     61|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
  467|     61|    data->req.size = 0; /* do not download any more than 0 bytes */
  468|       |    data->req.http_bodyless = TRUE;
  ------------------
  |  | 1055|     61|#define TRUE true
  ------------------
  469|     61|  }
  470|  3.24k|  return CURLE_OK;
  471|  3.24k|}
http.c:http_should_fail:
  482|  7.58k|{
  483|  7.58k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  7.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (483:3): [True: 0, False: 7.58k]
  |  Branch (483:3): [True: 7.58k, False: 0]
  ------------------
  484|  7.58k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  7.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (484:3): [True: 0, False: 7.58k]
  |  Branch (484:3): [True: 7.58k, False: 0]
  ------------------
  485|       |
  486|       |  /*
  487|       |   * If we have not been asked to fail on error,
  488|       |   * do not fail.
  489|       |   */
  490|  7.58k|  if(!data->set.http_fail_on_error)
  ------------------
  |  Branch (490:6): [True: 7.24k, False: 346]
  ------------------
  491|  7.24k|    return FALSE;
  ------------------
  |  | 1058|  7.24k|#define FALSE false
  ------------------
  492|       |
  493|       |  /*
  494|       |   * Any code < 400 is never terminal.
  495|       |   */
  496|    346|  if(httpcode < 400)
  ------------------
  |  Branch (496:6): [True: 340, False: 6]
  ------------------
  497|    340|    return FALSE;
  ------------------
  |  | 1058|    340|#define FALSE false
  ------------------
  498|       |
  499|       |  /*
  500|       |   * A 416 response to a resume request is presumably because the file is
  501|       |   * already completely downloaded and thus not actually a fail.
  502|       |   */
  503|      6|  if(data->state.resume_from && data->state.httpreq == HTTPREQ_GET &&
  ------------------
  |  Branch (503:6): [True: 0, False: 6]
  |  Branch (503:33): [True: 0, False: 0]
  ------------------
  504|      0|     httpcode == 416)
  ------------------
  |  Branch (504:6): [True: 0, False: 0]
  ------------------
  505|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  506|       |
  507|       |  /*
  508|       |   * Any code >= 400 that is not 401 or 407 is always
  509|       |   * a terminal error
  510|       |   */
  511|      6|  if((httpcode != 401) && (httpcode != 407))
  ------------------
  |  Branch (511:6): [True: 3, False: 3]
  |  Branch (511:27): [True: 2, False: 1]
  ------------------
  512|      2|    return TRUE;
  ------------------
  |  | 1055|      2|#define TRUE true
  ------------------
  513|       |
  514|       |  /*
  515|       |   * All we have left to deal with is 401 and 407
  516|       |   */
  517|      4|  DEBUGASSERT((httpcode == 401) || (httpcode == 407));
  ------------------
  |  | 1081|      4|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (517:3): [True: 4, False: 0]
  |  Branch (517:3): [True: 0, False: 0]
  |  Branch (517:3): [True: 3, False: 1]
  |  Branch (517:3): [True: 1, False: 0]
  ------------------
  518|       |
  519|       |  /*
  520|       |   * Examine the current authentication state to see if this is an error. The
  521|       |   * idea is for this function to get called after processing all the headers
  522|       |   * in a response message. If we have been to asked to authenticate
  523|       |   * a particular stage, and we have done it, we are OK. If we are already
  524|       |   * completely authenticated, it is not OK to get another 401 or 407.
  525|       |   *
  526|       |   * It is possible for authentication to go stale such that the client needs
  527|       |   * to reauthenticate. Once that info is available, use it here.
  528|       |   */
  529|       |
  530|       |  /*
  531|       |   * Either we are not authenticating, or we are supposed to be authenticating
  532|       |   * something else. This is an error.
  533|       |   */
  534|      4|  if((httpcode == 401) && !data->state.creds)
  ------------------
  |  Branch (534:6): [True: 3, False: 1]
  |  Branch (534:27): [True: 1, False: 2]
  ------------------
  535|      1|    return TRUE;
  ------------------
  |  | 1055|      1|#define TRUE true
  ------------------
  536|      3|#ifndef CURL_DISABLE_PROXY
  537|      3|  if((httpcode == 407) && !data->conn->http_proxy.creds)
  ------------------
  |  Branch (537:6): [True: 1, False: 2]
  |  Branch (537:27): [True: 1, False: 0]
  ------------------
  538|      1|    return TRUE;
  ------------------
  |  | 1055|      1|#define TRUE true
  ------------------
  539|      2|#endif
  540|       |
  541|      2|  return (bool)data->state.authproblem;
  542|      3|}
http.c:output_auth_headers:
  647|  1.32k|{
  648|  1.32k|  const char *auth = NULL;
  649|  1.32k|  CURLcode result = CURLE_OK;
  650|  1.32k|  (void)conn;
  651|       |
  652|       |#ifdef CURL_DISABLE_DIGEST_AUTH
  653|       |  (void)request;
  654|       |  (void)path;
  655|       |#endif
  656|  1.32k|#ifndef CURL_DISABLE_AWS
  657|  1.32k|  if((authstatus->picked == CURLAUTH_AWS_SIGV4) && !proxy) {
  ------------------
  |  |  845|  1.32k|#define CURLAUTH_AWS_SIGV4    (((unsigned long)1) << 7)
  ------------------
  |  Branch (657:6): [True: 0, False: 1.32k]
  |  Branch (657:52): [True: 0, False: 0]
  ------------------
  658|       |    /* this method is never for proxy */
  659|      0|    auth = "AWS_SIGV4";
  660|      0|    result = Curl_output_aws_sigv4(data);
  661|      0|    if(result)
  ------------------
  |  Branch (661:8): [True: 0, False: 0]
  ------------------
  662|      0|      return result;
  663|      0|  }
  664|  1.32k|  else
  665|  1.32k|#endif
  666|       |#ifdef USE_SPNEGO
  667|       |  if(authstatus->picked == CURLAUTH_NEGOTIATE) {
  668|       |    auth = "Negotiate";
  669|       |    result = Curl_output_negotiate(data, conn, proxy);
  670|       |    if(result)
  671|       |      return result;
  672|       |  }
  673|       |  else
  674|       |#endif
  675|       |#ifdef USE_NTLM
  676|       |  if(authstatus->picked == CURLAUTH_NTLM) {
  677|       |    auth = "NTLM";
  678|       |    result = Curl_output_ntlm(data, proxy);
  679|       |    if(result)
  680|       |      return result;
  681|       |  }
  682|       |  else
  683|       |#endif
  684|  1.32k|#ifndef CURL_DISABLE_DIGEST_AUTH
  685|  1.32k|  if(authstatus->picked == CURLAUTH_DIGEST) {
  ------------------
  |  |  832|  1.32k|#define CURLAUTH_DIGEST       (((unsigned long)1) << 1)
  ------------------
  |  Branch (685:6): [True: 0, False: 1.32k]
  ------------------
  686|      0|    auth = "Digest";
  687|      0|    result = Curl_output_digest(data,
  688|      0|                                proxy,
  689|      0|                                (const unsigned char *)request,
  690|      0|                                (const unsigned char *)path);
  691|      0|    if(result)
  ------------------
  |  Branch (691:8): [True: 0, False: 0]
  ------------------
  692|      0|      return result;
  693|      0|  }
  694|  1.32k|  else
  695|  1.32k|#endif
  696|  1.32k|#ifndef CURL_DISABLE_BASIC_AUTH
  697|  1.32k|  if(authstatus->picked == CURLAUTH_BASIC) {
  ------------------
  |  |  831|  1.32k|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  |  Branch (697:6): [True: 1.32k, False: 0]
  ------------------
  698|       |    /* Basic */
  699|  1.32k|    if(
  700|  1.32k|#ifndef CURL_DISABLE_PROXY
  701|  1.32k|       (proxy && conn->http_proxy.creds &&
  ------------------
  |  Branch (701:9): [True: 0, False: 1.32k]
  |  Branch (701:18): [True: 0, False: 0]
  ------------------
  702|      0|        !Curl_checkProxyheaders(data, conn,
  ------------------
  |  Branch (702:9): [True: 0, False: 0]
  ------------------
  703|      0|                                STRCONST("Proxy-authorization"))) ||
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  704|  1.32k|#endif
  705|  1.32k|       (!proxy && data->state.creds &&
  ------------------
  |  Branch (705:9): [True: 1.32k, False: 0]
  |  Branch (705:19): [True: 1.32k, False: 0]
  ------------------
  706|  1.32k|        !Curl_checkheaders(data, STRCONST("Authorization")))) {
  ------------------
  |  | 1292|  1.32k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (706:9): [True: 1.32k, False: 0]
  ------------------
  707|  1.32k|      auth = "Basic";
  708|  1.32k|      result = http_output_basic(data, conn, proxy);
  709|  1.32k|      if(result)
  ------------------
  |  Branch (709:10): [True: 0, False: 1.32k]
  ------------------
  710|      0|        return result;
  711|  1.32k|    }
  712|       |
  713|       |    /* NOTE: this function should set 'done' TRUE, as the other auth
  714|       |       functions work that way */
  715|  1.32k|    authstatus->done = TRUE;
  ------------------
  |  | 1055|  1.32k|#define TRUE true
  ------------------
  716|  1.32k|  }
  717|  1.32k|#endif
  718|  1.32k|#ifndef CURL_DISABLE_BEARER_AUTH
  719|  1.32k|  if(authstatus->picked == CURLAUTH_BEARER) {
  ------------------
  |  |  844|  1.32k|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  |  Branch (719:6): [True: 0, False: 1.32k]
  ------------------
  720|       |    /* Bearer */
  721|      0|    if(!proxy && Curl_creds_has_oauth_bearer(data->state.creds) &&
  ------------------
  |  |   73|      0|#define Curl_creds_has_oauth_bearer(c)   ((c) && (c)->oauth_bearer[0])
  |  |  ------------------
  |  |  |  Branch (73:43): [True: 0, False: 0]
  |  |  |  Branch (73:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (721:8): [True: 0, False: 0]
  ------------------
  722|      0|       !Curl_checkheaders(data, STRCONST("Authorization"))) {
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (722:8): [True: 0, False: 0]
  ------------------
  723|      0|      auth = "Bearer";
  724|      0|      result = http_output_bearer(data);
  725|      0|      if(result)
  ------------------
  |  Branch (725:10): [True: 0, False: 0]
  ------------------
  726|      0|        return result;
  727|      0|    }
  728|       |
  729|       |    /* NOTE: this function should set 'done' TRUE, as the other auth
  730|       |       functions work that way */
  731|      0|    authstatus->done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  732|      0|  }
  733|  1.32k|#endif
  734|       |
  735|  1.32k|  if(auth) {
  ------------------
  |  Branch (735:6): [True: 1.32k, False: 0]
  ------------------
  736|  1.32k|#ifndef CURL_DISABLE_PROXY
  737|  1.32k|    if(proxy)
  ------------------
  |  Branch (737:8): [True: 0, False: 1.32k]
  ------------------
  738|      0|      data->info.proxyauthpicked = authstatus->picked;
  739|  1.32k|    else
  740|  1.32k|      data->info.httpauthpicked = authstatus->picked;
  741|  1.32k|    infof(data, "%s auth using %s with user '%s'",
  ------------------
  |  |  143|  1.32k|  do {                               \
  |  |  144|  1.32k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  1.32k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 1.32k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.32k]
  |  |  |  |  ------------------
  |  |  |  |  320|  1.32k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  1.32k|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|  1.32k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1.32k]
  |  |  ------------------
  ------------------
  742|  1.32k|          proxy ? "Proxy" : "Server", auth,
  743|  1.32k|          proxy ? (conn->http_proxy.creds ?
  744|  1.32k|                   conn->http_proxy.creds->user : "") :
  745|  1.32k|          (data->state.creds ?
  746|  1.32k|           data->state.creds->user : ""));
  747|       |#else
  748|       |    (void)proxy;
  749|       |    infof(data, "Server auth using %s with user '%s'",
  750|       |          auth, data->state.creds ?
  751|       |          data->state.creds->user : "");
  752|       |#endif
  753|  1.32k|    authstatus->multipass = !authstatus->done;
  754|  1.32k|  }
  755|      0|  else {
  756|      0|    authstatus->multipass = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  757|      0|    if(proxy)
  ------------------
  |  Branch (757:8): [True: 0, False: 0]
  ------------------
  758|      0|      data->info.proxyauthpicked = 0;
  759|      0|    else
  760|      0|      data->info.httpauthpicked = 0;
  761|      0|  }
  762|       |
  763|  1.32k|  return result;
  764|  1.32k|}
http.c:http_output_basic:
  255|  1.32k|{
  256|  1.32k|  size_t size = 0;
  257|  1.32k|  char *authorization = NULL;
  258|  1.32k|  char **p_hd;
  259|  1.32k|  CURLcode result;
  260|  1.32k|  struct Curl_creds *creds = NULL;
  261|  1.32k|  char *out;
  262|       |
  263|       |  /* credentials are unique per transfer for HTTP, do not use the ones for the
  264|       |     connection */
  265|  1.32k|  if(proxy) {
  ------------------
  |  Branch (265:6): [True: 0, False: 1.32k]
  ------------------
  266|      0|#ifndef CURL_DISABLE_PROXY
  267|      0|    p_hd = &data->req.hd_proxy_auth;
  268|      0|    creds = conn->http_proxy.creds;
  269|       |#else
  270|       |    (void)conn;
  271|       |    return CURLE_NOT_BUILT_IN;
  272|       |#endif
  273|      0|  }
  274|  1.32k|  else {
  275|  1.32k|    p_hd = &data->req.hd_auth;
  276|  1.32k|    creds = data->state.creds;
  277|  1.32k|  }
  278|       |
  279|  1.32k|  if(!creds) {
  ------------------
  |  Branch (279:6): [True: 0, False: 1.32k]
  ------------------
  280|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (280:5): [Folded, False: 0]
  |  Branch (280:5): [Folded, False: 0]
  ------------------
  281|      0|    return CURLE_FAILED_INIT;
  282|      0|  }
  283|       |
  284|  1.32k|  out = curl_maprintf("%s:%s", creds->user, creds->passwd);
  285|  1.32k|  if(!out)
  ------------------
  |  Branch (285:6): [True: 0, False: 1.32k]
  ------------------
  286|      0|    return CURLE_OUT_OF_MEMORY;
  287|       |
  288|  1.32k|  result = curlx_base64_encode((uint8_t *)out, strlen(out),
  289|  1.32k|                               &authorization, &size);
  290|  1.32k|  if(result)
  ------------------
  |  Branch (290:6): [True: 0, False: 1.32k]
  ------------------
  291|      0|    goto fail;
  292|       |
  293|  1.32k|  if(!authorization) {
  ------------------
  |  Branch (293:6): [True: 0, False: 1.32k]
  ------------------
  294|      0|    result = CURLE_REMOTE_ACCESS_DENIED;
  295|      0|    goto fail;
  296|      0|  }
  297|       |
  298|  1.32k|  curlx_free(*p_hd);
  ------------------
  |  | 1483|  1.32k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  299|  1.32k|  *p_hd = curl_maprintf("%sAuthorization: Basic %s\r\n",
  300|  1.32k|                        proxy ? "Proxy-" : "",
  ------------------
  |  Branch (300:25): [True: 0, False: 1.32k]
  ------------------
  301|  1.32k|                        authorization);
  302|  1.32k|  curlx_free(authorization);
  ------------------
  |  | 1483|  1.32k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  303|  1.32k|  if(!*p_hd) {
  ------------------
  |  Branch (303:6): [True: 0, False: 1.32k]
  ------------------
  304|      0|    result = CURLE_OUT_OF_MEMORY;
  305|      0|    goto fail;
  306|      0|  }
  307|       |
  308|  1.32k|fail:
  309|  1.32k|  curlx_free(out);
  ------------------
  |  | 1483|  1.32k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  310|  1.32k|  return result;
  311|  1.32k|}
http.c:http_switch_to_get:
 1119|     74|{
 1120|     74|  const char *req = data->set.str[STRING_CUSTOMREQUEST];
 1121|       |
 1122|     74|  if((req || data->state.httpreq != HTTPREQ_GET) &&
  ------------------
  |  Branch (1122:7): [True: 10, False: 64]
  |  Branch (1122:14): [True: 51, False: 13]
  ------------------
 1123|     61|     (data->set.http_follow_mode == CURLFOLLOW_OBEYCODE)) {
  ------------------
  |  |  183|     61|#define CURLFOLLOW_OBEYCODE  2L
  ------------------
  |  Branch (1123:6): [True: 0, False: 61]
  ------------------
 1124|      0|    NOVERBOSE((void)code);
  ------------------
  |  | 1619|      0|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1180|      0|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1180:35): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1125|      0|    infof(data, "Switch to GET because of %d response", code);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1126|      0|    data->state.http_ignorecustom = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1127|      0|  }
 1128|     74|  else if(req && (data->set.http_follow_mode != CURLFOLLOW_FIRSTONLY))
  ------------------
  |  |  186|     10|#define CURLFOLLOW_FIRSTONLY 3L
  ------------------
  |  Branch (1128:11): [True: 10, False: 64]
  |  Branch (1128:18): [True: 10, False: 0]
  ------------------
 1129|     10|    infof(data, "Stick to %s instead of GET", req);
  ------------------
  |  |  143|     10|  do {                               \
  |  |  144|     10|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     10|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 10, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 10]
  |  |  |  |  ------------------
  |  |  |  |  320|     10|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     10|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     10|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 10]
  |  |  ------------------
  ------------------
 1130|       |
 1131|     74|  data->state.httpreq = HTTPREQ_GET;
 1132|       |  Curl_creader_set_rewind(data, FALSE);
  ------------------
  |  | 1058|     74|#define FALSE false
  ------------------
 1133|     74|}
http.c:http_exp100_is_waiting:
 1561|  14.2k|{
 1562|  14.2k|  struct Curl_creader *r = Curl_creader_get_by_type(data, &cr_exp100);
 1563|  14.2k|  if(r) {
  ------------------
  |  Branch (1563:6): [True: 8.26k, False: 5.97k]
  ------------------
 1564|  8.26k|    struct cr_exp100_ctx *ctx = r->ctx;
 1565|  8.26k|    return ctx->state == EXP100_AWAITING_CONTINUE;
 1566|  8.26k|  }
 1567|  5.97k|  return FALSE;
  ------------------
  |  | 1058|  5.97k|#define FALSE false
  ------------------
 1568|  14.2k|}
http.c:cr_exp100_read:
 1466|  5.13k|{
 1467|  5.13k|  struct cr_exp100_ctx *ctx = reader->ctx;
 1468|  5.13k|  timediff_t ms;
 1469|       |
 1470|  5.13k|  switch(ctx->state) {
 1471|    335|  case EXP100_SENDING_REQUEST:
  ------------------
  |  Branch (1471:3): [True: 335, False: 4.80k]
  ------------------
 1472|    335|    if(!Curl_req_sendbuf_empty(data)) {
  ------------------
  |  Branch (1472:8): [True: 247, False: 88]
  ------------------
 1473|       |      /* The initial request data has not been fully sent yet. Do
 1474|       |       * not start the timer yet. */
 1475|    247|      DEBUGF(infof(data, "cr_exp100_read, request not full sent yet"));
  ------------------
  |  | 1067|  1.72k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 247, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 247]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 247]
  |  |  ------------------
  ------------------
 1476|    247|      *nread = 0;
 1477|    247|      *eos = FALSE;
  ------------------
  |  | 1058|    247|#define FALSE false
  ------------------
 1478|    247|      return CURLE_OK;
 1479|    247|    }
 1480|       |    /* We are now waiting for a reply from the server or
 1481|       |     * a timeout on our side IFF the request has been fully sent. */
 1482|     88|    DEBUGF(infof(data, "cr_exp100_read, start AWAITING_CONTINUE, "
  ------------------
  |  | 1067|    616|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 88, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 88]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 88]
  |  |  ------------------
  ------------------
 1483|     88|                 "timeout %dms", data->set.expect_100_timeout));
 1484|     88|    ctx->state = EXP100_AWAITING_CONTINUE;
 1485|     88|    ctx->start = *Curl_pgrs_now(data);
 1486|     88|    Curl_expire(data, data->set.expect_100_timeout, EXPIRE_100_TIMEOUT);
 1487|     88|    *nread = 0;
 1488|     88|    *eos = FALSE;
  ------------------
  |  | 1058|     88|#define FALSE false
  ------------------
 1489|     88|    return CURLE_OK;
 1490|      0|  case EXP100_FAILED:
  ------------------
  |  Branch (1490:3): [True: 0, False: 5.13k]
  ------------------
 1491|      0|    DEBUGF(infof(data, "cr_exp100_read, expectation failed, error"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1492|      0|    *nread = 0;
 1493|      0|    *eos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1494|      0|    return CURLE_READ_ERROR;
 1495|  4.74k|  case EXP100_AWAITING_CONTINUE:
  ------------------
  |  Branch (1495:3): [True: 4.74k, False: 391]
  ------------------
 1496|  4.74k|    ms = curlx_ptimediff_ms(Curl_pgrs_now(data), &ctx->start);
 1497|  4.74k|    if(ms < data->set.expect_100_timeout) {
  ------------------
  |  Branch (1497:8): [True: 4.70k, False: 47]
  ------------------
 1498|  4.70k|      DEBUGF(infof(data, "cr_exp100_read, AWAITING_CONTINUE, not expired"));
  ------------------
  |  | 1067|  32.9k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 4.70k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 4.70k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 4.70k]
  |  |  ------------------
  ------------------
 1499|  4.70k|      *nread = 0;
 1500|  4.70k|      *eos = FALSE;
  ------------------
  |  | 1058|  4.70k|#define FALSE false
  ------------------
 1501|  4.70k|      return CURLE_OK;
 1502|  4.70k|    }
 1503|       |    /* we have waited long enough, continue anyway */
 1504|     47|    http_exp100_continue(data, reader);
 1505|     47|    infof(data, "Done waiting for 100-continue");
  ------------------
  |  |  143|     47|  do {                               \
  |  |  144|     47|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     47|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 47, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 47]
  |  |  |  |  ------------------
  |  |  |  |  320|     47|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     47|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     47|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 47]
  |  |  ------------------
  ------------------
 1506|     47|    FALLTHROUGH();
  ------------------
  |  |  821|     47|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
 1507|    103|  default:
  ------------------
  |  Branch (1507:3): [True: 56, False: 5.08k]
  ------------------
 1508|    103|    DEBUGF(infof(data, "cr_exp100_read, pass through"));
  ------------------
  |  | 1067|    721|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 103, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 103]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 103]
  |  |  ------------------
  ------------------
 1509|    103|    return Curl_creader_read(data, reader->next, buf, blen, nread, eos);
 1510|  5.13k|  }
 1511|  5.13k|}
http.c:http_exp100_continue:
 1454|     66|{
 1455|     66|  struct cr_exp100_ctx *ctx = reader->ctx;
 1456|     66|  if(ctx->state > EXP100_SEND_DATA) {
  ------------------
  |  Branch (1456:6): [True: 54, False: 12]
  ------------------
 1457|     54|    ctx->state = EXP100_SEND_DATA;
 1458|     54|    Curl_expire_done(data, EXPIRE_100_TIMEOUT);
 1459|     54|  }
 1460|     66|}
http.c:cr_exp100_done:
 1515|    156|{
 1516|    156|  struct cr_exp100_ctx *ctx = reader->ctx;
 1517|    156|  ctx->state = premature ? EXP100_FAILED : EXP100_SEND_DATA;
  ------------------
  |  Branch (1517:16): [True: 124, False: 32]
  ------------------
 1518|    156|  Curl_expire_done(data, EXPIRE_100_TIMEOUT);
 1519|    156|}
http.c:http_write_header:
 1612|  6.00k|{
 1613|  6.00k|  CURLcode result;
 1614|  6.00k|  int writetype;
 1615|       |
 1616|       |  /* now, only output this if the header AND body are requested:
 1617|       |   */
 1618|  6.00k|  Curl_debug(data, CURLINFO_HEADER_IN, hd, hdlen);
 1619|       |
 1620|  6.00k|  writetype = CLIENTWRITE_HEADER |
  ------------------
  |  |   44|  6.00k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
 1621|  6.00k|    ((data->req.httpcode / 100 == 1) ? CLIENTWRITE_1XX : 0);
  ------------------
  |  |   47|  1.53k|#define CLIENTWRITE_1XX     (1 << 5) /* a 1xx response related HEADER */
  ------------------
  |  Branch (1621:6): [True: 1.53k, False: 4.46k]
  ------------------
 1622|       |
 1623|  6.00k|  result = Curl_client_write(data, writetype, hd, hdlen);
 1624|  6.00k|  if(result)
  ------------------
  |  Branch (1624:6): [True: 636, False: 5.37k]
  ------------------
 1625|    636|    return result;
 1626|       |
 1627|  5.37k|  result = Curl_bump_headersize(data, hdlen, FALSE);
  ------------------
  |  | 1058|  5.37k|#define FALSE false
  ------------------
 1628|  5.37k|  if(result)
  ------------------
  |  Branch (1628:6): [True: 0, False: 5.37k]
  ------------------
 1629|      0|    return result;
 1630|       |
 1631|  5.37k|  data->req.deductheadercount = (100 <= data->req.httpcode &&
  ------------------
  |  Branch (1631:34): [True: 5.35k, False: 19]
  ------------------
 1632|  5.35k|                                 199 >= data->req.httpcode) ?
  ------------------
  |  Branch (1632:34): [True: 1.50k, False: 3.84k]
  ------------------
 1633|  3.86k|    data->req.headerbytecount : 0;
 1634|  5.37k|  return result;
 1635|  5.37k|}
http.c:http_check_new_conn:
 2722|  6.79k|{
 2723|  6.79k|  struct connectdata *conn = data->conn;
 2724|  6.79k|  const char *info_version = NULL;
 2725|  6.79k|  const char *alpn;
 2726|  6.79k|  CURLcode result;
 2727|       |
 2728|  6.79k|  alpn = Curl_conn_get_alpn_negotiated(data, conn);
 2729|  6.79k|  if(alpn && !strcmp("h3", alpn)) {
  ------------------
  |  Branch (2729:6): [True: 0, False: 6.79k]
  |  Branch (2729:14): [True: 0, False: 0]
  ------------------
 2730|      0|#ifndef CURL_DISABLE_PROXY
 2731|      0|    if((Curl_conn_http_version(data, conn) == 30) || !conn->bits.proxy ||
  ------------------
  |  Branch (2731:8): [True: 0, False: 0]
  |  Branch (2731:54): [True: 0, False: 0]
  ------------------
 2732|      0|       conn->bits.tunnel_proxy)
  ------------------
  |  Branch (2732:8): [True: 0, False: 0]
  ------------------
 2733|      0|#endif
 2734|      0|      DEBUGASSERT(Curl_conn_http_version(data, conn) == 30);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2734:7): [True: 0, False: 0]
  |  Branch (2734:7): [True: 0, False: 0]
  ------------------
 2735|      0|    info_version = "HTTP/3";
 2736|      0|  }
 2737|  6.79k|  else if(alpn && !strcmp("h2", alpn)) {
  ------------------
  |  Branch (2737:11): [True: 0, False: 6.79k]
  |  Branch (2737:19): [True: 0, False: 0]
  ------------------
 2738|      0|#ifndef CURL_DISABLE_PROXY
 2739|      0|    if((Curl_conn_http_version(data, conn) != 20) &&
  ------------------
  |  Branch (2739:8): [True: 0, False: 0]
  ------------------
 2740|      0|       conn->bits.proxy && !conn->bits.tunnel_proxy) {
  ------------------
  |  Branch (2740:8): [True: 0, False: 0]
  |  Branch (2740:28): [True: 0, False: 0]
  ------------------
 2741|      0|      result = Curl_http2_switch(data);
 2742|      0|      if(result)
  ------------------
  |  Branch (2742:10): [True: 0, False: 0]
  ------------------
 2743|      0|        return result;
 2744|      0|    }
 2745|      0|    else
 2746|      0|#endif
 2747|      0|    DEBUGASSERT(Curl_conn_http_version(data, conn) == 20);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2747:5): [True: 0, False: 0]
  |  Branch (2747:5): [True: 0, False: 0]
  ------------------
 2748|      0|    info_version = "HTTP/2";
 2749|      0|  }
 2750|  6.79k|  else {
 2751|       |    /* Check if user wants to use HTTP/2 with clear TCP */
 2752|  6.79k|    if(Curl_http2_may_switch(data)) {
  ------------------
  |  Branch (2752:8): [True: 2.90k, False: 3.89k]
  ------------------
 2753|  2.90k|      DEBUGF(infof(data, "HTTP/2 over clean TCP"));
  ------------------
  |  | 1067|  20.3k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 2.90k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 2.90k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 2.90k]
  |  |  ------------------
  ------------------
 2754|  2.90k|      result = Curl_http2_switch(data);
 2755|  2.90k|      if(result)
  ------------------
  |  Branch (2755:10): [True: 0, False: 2.90k]
  ------------------
 2756|      0|        return result;
 2757|  2.90k|      info_version = "HTTP/2";
 2758|       |      /* There is no ALPN here, but the connection is now definitely h2 */
 2759|  2.90k|      conn->httpversion_seen = 20;
 2760|  2.90k|      Curl_conn_set_multiplex(conn);
 2761|  2.90k|    }
 2762|  3.89k|    else
 2763|  3.89k|      info_version = "HTTP/1.x";
 2764|  6.79k|  }
 2765|       |
 2766|  6.79k|  if(info_version)
  ------------------
  |  Branch (2766:6): [True: 6.79k, False: 0]
  ------------------
 2767|  6.79k|    infof(data, "using %s", info_version);
  ------------------
  |  |  143|  6.79k|  do {                               \
  |  |  144|  6.79k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  6.79k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 6.79k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 6.79k]
  |  |  |  |  ------------------
  |  |  |  |  320|  6.79k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  6.79k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  6.79k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 6.79k]
  |  |  ------------------
  ------------------
 2768|  6.79k|  return CURLE_OK;
 2769|  6.79k|}
http.c:http_set_aptr_host:
 1990|  9.58k|{
 1991|  9.58k|  struct connectdata *conn = data->conn;
 1992|  9.58k|  struct dynamically_allocated_data *aptr = &data->state.aptr;
 1993|  9.58k|  const char *ptr;
 1994|       |
 1995|  9.58k|  curlx_safefree(aptr->host);
  ------------------
  |  | 1327|  9.58k|  do {                      \
  |  | 1328|  9.58k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  9.58k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  9.58k|    (ptr) = NULL;           \
  |  | 1330|  9.58k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 9.58k]
  |  |  ------------------
  ------------------
 1996|  9.58k|#ifndef CURL_DISABLE_COOKIES
 1997|  9.58k|  curlx_safefree(data->req.cookiehost);
  ------------------
  |  | 1327|  9.58k|  do {                      \
  |  | 1328|  9.58k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  9.58k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  9.58k|    (ptr) = NULL;           \
  |  | 1330|  9.58k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 9.58k]
  |  |  ------------------
  ------------------
 1998|  9.58k|#endif
 1999|       |
 2000|  9.58k|  ptr = Curl_checkheaders(data, STRCONST("Host"));
  ------------------
  |  | 1292|  9.58k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2001|  9.58k|  if(ptr && (!data->state.this_is_a_follow ||
  ------------------
  |  Branch (2001:6): [True: 0, False: 9.58k]
  |  Branch (2001:14): [True: 0, False: 0]
  ------------------
 2002|      0|             Curl_peer_equal(data->state.initial_origin, conn->origin))) {
  ------------------
  |  Branch (2002:14): [True: 0, False: 0]
  ------------------
 2003|      0|#ifndef CURL_DISABLE_COOKIES
 2004|       |    /* If we have a given custom Host: header, we extract the hostname in
 2005|       |       order to possibly use it for cookie reasons later on. We only allow the
 2006|       |       custom Host: header if this is NOT a redirect, as setting Host: in the
 2007|       |       redirected request is being out on thin ice. Except if the hostname
 2008|       |       is the same as the first one! */
 2009|      0|    char *cookiehost;
 2010|      0|    CURLcode result = copy_custom_value(ptr, &cookiehost);
 2011|      0|    if(result)
  ------------------
  |  Branch (2011:8): [True: 0, False: 0]
  ------------------
 2012|      0|      return result;
 2013|      0|    if(!*cookiehost)
  ------------------
  |  Branch (2013:8): [True: 0, False: 0]
  ------------------
 2014|       |      /* ignore empty data */
 2015|      0|      curlx_free(cookiehost);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2016|      0|    else {
 2017|       |      /* If the host begins with '[', we start searching for the port after
 2018|       |         the bracket has been closed */
 2019|      0|      if(*cookiehost == '[') {
  ------------------
  |  Branch (2019:10): [True: 0, False: 0]
  ------------------
 2020|      0|        char *closingbracket;
 2021|       |        /* since the 'cookiehost' is an allocated memory area that will be
 2022|       |           freed later we cannot increment the pointer */
 2023|      0|        memmove(cookiehost, cookiehost + 1, strlen(cookiehost) - 1);
 2024|      0|        closingbracket = strchr(cookiehost, ']');
 2025|      0|        if(closingbracket)
  ------------------
  |  Branch (2025:12): [True: 0, False: 0]
  ------------------
 2026|      0|          *closingbracket = 0;
 2027|      0|      }
 2028|      0|      else {
 2029|      0|        int startsearch = 0;
 2030|      0|        char *colon = strchr(cookiehost + startsearch, ':');
 2031|      0|        if(colon)
  ------------------
  |  Branch (2031:12): [True: 0, False: 0]
  ------------------
 2032|      0|          *colon = 0; /* The host must not include an embedded port number */
 2033|      0|      }
 2034|      0|      data->req.cookiehost = cookiehost;
 2035|      0|    }
 2036|      0|#endif
 2037|       |
 2038|      0|    if(!curl_strequal("Host:", ptr)) {
  ------------------
  |  Branch (2038:8): [True: 0, False: 0]
  ------------------
 2039|      0|      aptr->host = curl_maprintf("Host:%s\r\n", &ptr[5]);
 2040|      0|      if(!aptr->host)
  ------------------
  |  Branch (2040:10): [True: 0, False: 0]
  ------------------
 2041|      0|        return CURLE_OUT_OF_MEMORY;
 2042|      0|    }
 2043|      0|  }
 2044|  9.58k|  else {
 2045|       |    /* Use the hostname as present in the URL if it was IPv6. */
 2046|  9.58k|    char *host = (conn->origin->user_hostname[0] == '[') ?
  ------------------
  |  Branch (2046:18): [True: 9, False: 9.57k]
  ------------------
 2047|  9.57k|       conn->origin->user_hostname : conn->origin->hostname;
 2048|       |
 2049|  9.58k|    if(((conn->given->protocol & (CURLPROTO_HTTPS | CURLPROTO_WSS)) &&
  ------------------
  |  | 1079|  9.58k|#define CURLPROTO_HTTPS   (1L << 1)
  ------------------
                  if(((conn->given->protocol & (CURLPROTO_HTTPS | CURLPROTO_WSS)) &&
  ------------------
  |  |   64|  9.58k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  ------------------
  |  Branch (2049:9): [True: 0, False: 9.58k]
  ------------------
 2050|      0|        (conn->origin->port == PORT_HTTPS)) ||
  ------------------
  |  |   38|      0|#define PORT_HTTPS  443
  ------------------
  |  Branch (2050:9): [True: 0, False: 0]
  ------------------
 2051|  9.58k|       ((conn->given->protocol & (CURLPROTO_HTTP | CURLPROTO_WS)) &&
  ------------------
  |  | 1078|  9.58k|#define CURLPROTO_HTTP    (1L << 0)
  ------------------
                     ((conn->given->protocol & (CURLPROTO_HTTP | CURLPROTO_WS)) &&
  ------------------
  |  |   63|  9.58k|#define CURLPROTO_WS     (1L << 30)
  ------------------
  |  Branch (2051:9): [True: 9.58k, False: 0]
  ------------------
 2052|  9.58k|        (conn->origin->port == PORT_HTTP)))
  ------------------
  |  |   37|  9.58k|#define PORT_HTTP   80
  ------------------
  |  Branch (2052:9): [True: 9.22k, False: 355]
  ------------------
 2053|       |      /* if(HTTPS on port 443) OR (HTTP on port 80) then do not include
 2054|       |         the port number in the host string */
 2055|  9.22k|      aptr->host = curl_maprintf("Host: %s\r\n", host);
 2056|    355|    else
 2057|    355|      aptr->host = curl_maprintf("Host: %s:%d\r\n", host, conn->origin->port);
 2058|       |
 2059|  9.58k|    if(!aptr->host)
  ------------------
  |  Branch (2059:8): [True: 0, False: 9.58k]
  ------------------
 2060|       |      /* without Host: we cannot make a nice request */
 2061|      0|      return CURLE_OUT_OF_MEMORY;
 2062|  9.58k|  }
 2063|  9.58k|  return CURLE_OK;
 2064|  9.58k|}
http.c:http_useragent:
 1979|  9.58k|{
 1980|       |  /* The User-Agent string might have been allocated already, because
 1981|       |     it might have been used in the proxy connect, but if we have got a header
 1982|       |     with the user-agent string specified, we erase the previously made string
 1983|       |     here. */
 1984|  9.58k|  if(Curl_checkheaders(data, STRCONST("User-Agent")))
  ------------------
  |  | 1292|  9.58k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (1984:6): [True: 0, False: 9.58k]
  ------------------
 1985|       |    curlx_safefree(data->state.aptr.uagent);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1986|  9.58k|  return CURLE_OK;
 1987|  9.58k|}
http.c:set_reader:
 2270|  9.58k|{
 2271|  9.58k|  CURLcode result = CURLE_OK;
 2272|  9.58k|  curl_off_t postsize = data->state.infilesize;
 2273|       |
 2274|  9.58k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2274:3): [True: 0, False: 9.58k]
  |  Branch (2274:3): [True: 9.58k, False: 0]
  ------------------
 2275|       |
 2276|  9.58k|  if(data->req.authneg) {
  ------------------
  |  Branch (2276:6): [True: 0, False: 9.58k]
  ------------------
 2277|      0|    return Curl_creader_set_null(data);
 2278|      0|  }
 2279|       |
 2280|  9.58k|  switch(httpreq) {
 2281|    532|  case HTTPREQ_PUT: /* Let's PUT the data to the server! */
  ------------------
  |  Branch (2281:3): [True: 532, False: 9.05k]
  ------------------
 2282|    532|    return postsize ? Curl_creader_set_fread(data, postsize) :
  ------------------
  |  Branch (2282:12): [True: 437, False: 95]
  ------------------
 2283|    532|      Curl_creader_set_null(data);
 2284|       |
 2285|      0|#if !defined(CURL_DISABLE_MIME) || !defined(CURL_DISABLE_FORM_API)
 2286|      0|  case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (2286:3): [True: 0, False: 9.58k]
  ------------------
 2287|      0|  case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (2287:3): [True: 0, False: 9.58k]
  ------------------
 2288|      0|    return set_post_reader(data, httpreq);
 2289|      0|#endif
 2290|       |
 2291|  1.19k|  case HTTPREQ_POST:
  ------------------
  |  Branch (2291:3): [True: 1.19k, False: 8.38k]
  ------------------
 2292|       |    /* this is the simple POST, using x-www-form-urlencoded style */
 2293|       |    /* the size of the post body */
 2294|  1.19k|    if(!postsize) {
  ------------------
  |  Branch (2294:8): [True: 591, False: 603]
  ------------------
 2295|    591|      result = Curl_creader_set_null(data);
 2296|    591|    }
 2297|    603|    else if(data->set.postfields) {
  ------------------
  |  Branch (2297:13): [True: 213, False: 390]
  ------------------
 2298|    213|      size_t plen = curlx_sotouz_range(postsize, 0, SIZE_MAX);
 2299|    213|      if(plen == SIZE_MAX)
  ------------------
  |  Branch (2299:10): [True: 0, False: 213]
  ------------------
 2300|      0|        return CURLE_OUT_OF_MEMORY;
 2301|    213|      else if(plen)
  ------------------
  |  Branch (2301:15): [True: 213, False: 0]
  ------------------
 2302|    213|        result = Curl_creader_set_buf(data, data->set.postfields, plen);
 2303|      0|      else
 2304|      0|        result = Curl_creader_set_null(data);
 2305|    213|    }
 2306|    390|    else {
 2307|       |      /* we read the bytes from the callback. In case "chunked" encoding
 2308|       |       * is forced by the application, we disregard `postsize`. This is
 2309|       |       * a backward compatibility decision to earlier versions where
 2310|       |       * chunking disregarded this. See issue #13229. */
 2311|    390|      bool chunked = FALSE;
  ------------------
  |  | 1058|    390|#define FALSE false
  ------------------
 2312|    390|      char *ptr = Curl_checkheaders(data, STRCONST("Transfer-Encoding"));
  ------------------
  |  | 1292|    390|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2313|    390|      if(ptr) {
  ------------------
  |  Branch (2313:10): [True: 0, False: 390]
  ------------------
 2314|       |        /* Some kind of TE is requested, check if 'chunked' is chosen */
 2315|      0|        chunked = Curl_compareheader(ptr, STRCONST("Transfer-Encoding:"),
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2316|      0|                                     STRCONST("chunked"));
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2317|      0|      }
 2318|    390|      result = Curl_creader_set_fread(data, chunked ? -1 : postsize);
  ------------------
  |  Branch (2318:45): [True: 0, False: 390]
  ------------------
 2319|    390|    }
 2320|  1.19k|    return result;
 2321|       |
 2322|  7.85k|  default:
  ------------------
  |  Branch (2322:3): [True: 7.85k, False: 1.72k]
  ------------------
 2323|       |    /* HTTP GET/HEAD download, has no body, needs no Content-Length */
 2324|  7.85k|    data->state.infilesize = 0;
 2325|  7.85k|    return Curl_creader_set_null(data);
 2326|  9.58k|  }
 2327|       |  /* not reached */
 2328|  9.58k|}
http.c:http_resume:
 2331|  9.58k|{
 2332|  9.58k|  if((HTTPREQ_POST == httpreq || HTTPREQ_PUT == httpreq) &&
  ------------------
  |  Branch (2332:7): [True: 1.19k, False: 8.38k]
  |  Branch (2332:34): [True: 532, False: 7.85k]
  ------------------
 2333|  1.72k|     data->state.resume_from) {
  ------------------
  |  Branch (2333:6): [True: 0, False: 1.72k]
  ------------------
 2334|       |    /**********************************************************************
 2335|       |     * Resuming upload in HTTP means that we PUT or POST and that we have
 2336|       |     * got a resume_from value set. The resume value has already created
 2337|       |     * a Range: header that will be passed along. We need to "fast forward"
 2338|       |     * the file the given number of bytes and decrease the assume upload
 2339|       |     * file size before we continue this venture in the dark lands of HTTP.
 2340|       |     * Resuming mime/form posting at an offset > 0 has no sense and is ignored.
 2341|       |     *********************************************************************/
 2342|       |
 2343|      0|    if(data->state.resume_from < 0) {
  ------------------
  |  Branch (2343:8): [True: 0, False: 0]
  ------------------
 2344|       |      /*
 2345|       |       * This is meant to get the size of the present remote-file by itself.
 2346|       |       * We do not support this now. Bail out!
 2347|       |       */
 2348|      0|      data->state.resume_from = 0;
 2349|      0|    }
 2350|       |
 2351|      0|    if(data->state.resume_from && !data->req.authneg) {
  ------------------
  |  Branch (2351:8): [True: 0, False: 0]
  |  Branch (2351:35): [True: 0, False: 0]
  ------------------
 2352|       |      /* only act on the first request */
 2353|      0|      CURLcode result;
 2354|      0|      result = Curl_creader_resume_from(data, data->state.resume_from);
 2355|      0|      if(result) {
  ------------------
  |  Branch (2355:10): [True: 0, False: 0]
  ------------------
 2356|      0|        failf(data, "Unable to resume from offset %" FMT_OFF_T,
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
                      failf(data, "Unable to resume from offset %" FMT_OFF_T,
  ------------------
  |  |  598|      0|#define FMT_OFF_T  CURL_FORMAT_CURL_OFF_T
  |  |  ------------------
  |  |  |  |  341|      0|#    define CURL_FORMAT_CURL_OFF_T     "ld"
  |  |  ------------------
  ------------------
 2357|      0|              data->state.resume_from);
 2358|      0|        return result;
 2359|      0|      }
 2360|      0|    }
 2361|      0|  }
 2362|  9.58k|  return CURLE_OK;
 2363|  9.58k|}
http.c:http_range:
 2602|  9.58k|{
 2603|  9.58k|  if(data->state.use_range) {
  ------------------
  |  Branch (2603:6): [True: 0, False: 9.58k]
  ------------------
 2604|       |    /*
 2605|       |     * A range is selected. We use different headers whether we are downloading
 2606|       |     * or uploading and we always let customized headers override our internal
 2607|       |     * ones if any such are specified.
 2608|       |     */
 2609|      0|    if(((httpreq == HTTPREQ_GET) || (httpreq == HTTPREQ_HEAD)) &&
  ------------------
  |  Branch (2609:9): [True: 0, False: 0]
  |  Branch (2609:37): [True: 0, False: 0]
  ------------------
 2610|      0|       !Curl_checkheaders(data, STRCONST("Range"))) {
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2610:8): [True: 0, False: 0]
  ------------------
 2611|       |      /* if a line like this was already allocated, free the previous one */
 2612|      0|      curlx_free(data->state.aptr.rangeline);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2613|      0|      data->state.aptr.rangeline = curl_maprintf("Range: bytes=%s\r\n",
 2614|      0|                                                 data->state.range);
 2615|      0|      if(!data->state.aptr.rangeline)
  ------------------
  |  Branch (2615:10): [True: 0, False: 0]
  ------------------
 2616|      0|        return CURLE_OUT_OF_MEMORY;
 2617|      0|    }
 2618|      0|    else if((httpreq == HTTPREQ_POST || httpreq == HTTPREQ_PUT) &&
  ------------------
  |  Branch (2618:14): [True: 0, False: 0]
  |  Branch (2618:41): [True: 0, False: 0]
  ------------------
 2619|      0|            !Curl_checkheaders(data, STRCONST("Content-Range"))) {
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2619:13): [True: 0, False: 0]
  ------------------
 2620|      0|      curl_off_t req_clen = Curl_creader_total_length(data);
 2621|       |      /* if a line like this was already allocated, free the previous one */
 2622|      0|      curlx_free(data->state.aptr.rangeline);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2623|       |
 2624|      0|      if(data->set.set_resume_from < 0) {
  ------------------
  |  Branch (2624:10): [True: 0, False: 0]
  ------------------
 2625|       |        /* Upload resume was asked for, but we do not know the size of the
 2626|       |           remote part so we tell the server (and act accordingly) that we
 2627|       |           upload the whole file (again) */
 2628|      0|        data->state.aptr.rangeline =
 2629|      0|          curl_maprintf("Content-Range: bytes 0-%" FMT_OFF_T "/"
 2630|      0|                        "%" FMT_OFF_T "\r\n", req_clen - 1, req_clen);
 2631|      0|      }
 2632|      0|      else if(data->state.resume_from) {
  ------------------
  |  Branch (2632:15): [True: 0, False: 0]
  ------------------
 2633|       |        /* This is because "resume" was selected */
 2634|       |        /* Not sure if we want to send this header during authentication
 2635|       |         * negotiation, but test1084 checks for it. In which case we have a
 2636|       |         * "null" client reader installed that gives an unexpected length. */
 2637|      0|        curl_off_t total_len = data->req.authneg ?
  ------------------
  |  Branch (2637:32): [True: 0, False: 0]
  ------------------
 2638|      0|                               data->state.infilesize :
 2639|      0|                               (data->state.resume_from + req_clen);
 2640|      0|        data->state.aptr.rangeline =
 2641|      0|          curl_maprintf("Content-Range: bytes %s%" FMT_OFF_T "/"
 2642|      0|                        "%" FMT_OFF_T "\r\n",
 2643|      0|                        data->state.range, total_len - 1, total_len);
 2644|      0|      }
 2645|      0|      else {
 2646|       |        /* Range was selected and then we pass the incoming range and append
 2647|       |           total size */
 2648|      0|        data->state.aptr.rangeline =
 2649|      0|          curl_maprintf("Content-Range: bytes %s/%" FMT_OFF_T "\r\n",
 2650|      0|                        data->state.range, req_clen);
 2651|      0|      }
 2652|      0|      if(!data->state.aptr.rangeline)
  ------------------
  |  Branch (2652:10): [True: 0, False: 0]
  ------------------
 2653|      0|        return CURLE_OUT_OF_MEMORY;
 2654|      0|    }
 2655|      0|  }
 2656|  9.58k|  return CURLE_OK;
 2657|  9.58k|}
http.c:http_request_version:
 1701|  9.58k|{
 1702|  9.58k|  unsigned char v = Curl_conn_http_version(data, data->conn);
 1703|  9.58k|  if(!v) {
  ------------------
  |  Branch (1703:6): [True: 6.68k, False: 2.90k]
  ------------------
 1704|       |    /* No specific HTTP connection filter installed. */
 1705|  6.68k|    v = http_may_use_1_1(data) ? 11 : 10;
  ------------------
  |  Branch (1705:9): [True: 6.62k, False: 55]
  ------------------
 1706|  6.68k|  }
 1707|  9.58k|  return v;
 1708|  9.58k|}
http.c:http_may_use_1_1:
 1682|  6.68k|{
 1683|  6.68k|  const struct connectdata *conn = data->conn;
 1684|       |  /* We have seen a previous response for *this* transfer with 1.0,
 1685|       |   * on another connection or the same one. */
 1686|  6.68k|  if(data->state.http_neg.rcvd_min == 10)
  ------------------
  |  Branch (1686:6): [True: 0, False: 6.68k]
  ------------------
 1687|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1688|       |  /* We have seen a previous response on *this* connection with 1.0. */
 1689|  6.68k|  if(conn && conn->httpversion_seen == 10)
  ------------------
  |  Branch (1689:6): [True: 6.68k, False: 0]
  |  Branch (1689:14): [True: 0, False: 6.68k]
  ------------------
 1690|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1691|       |  /* We want 1.0 and have seen no previous response on *this* connection
 1692|       |     with a higher version (maybe no response at all yet). */
 1693|  6.68k|  if((data->state.http_neg.only_10) &&
  ------------------
  |  Branch (1693:6): [True: 55, False: 6.62k]
  ------------------
 1694|     55|     (!conn || conn->httpversion_seen <= 10))
  ------------------
  |  Branch (1694:7): [True: 0, False: 55]
  |  Branch (1694:16): [True: 17, False: 38]
  ------------------
 1695|     17|    return FALSE;
  ------------------
  |  | 1058|     17|#define FALSE false
  ------------------
 1696|       |  /* We are not restricted to use 1.0 only. */
 1697|  6.66k|  return !data->state.http_neg.only_10;
 1698|  6.68k|}
http.c:http_add_hd:
 2868|   191k|{
 2869|   191k|  CURLcode result = CURLE_OK;
 2870|   191k|#if !defined(CURL_DISABLE_ALTSVC) || \
 2871|   191k|  !defined(CURL_DISABLE_PROXY) || \
 2872|   191k|  !defined(CURL_DISABLE_WEBSOCKETS)
 2873|   191k|  struct connectdata *conn = data->conn;
 2874|   191k|#endif
 2875|   191k|  switch(id) {
  ------------------
  |  Branch (2875:10): [True: 191k, False: 0]
  ------------------
 2876|  9.58k|  case H1_HD_REQUEST:
  ------------------
  |  Branch (2876:3): [True: 9.58k, False: 182k]
  ------------------
 2877|       |    /* add the main request stuff */
 2878|       |    /* GET/HEAD/POST/PUT */
 2879|  9.58k|    result = curlx_dyn_addf(req, "%s ", method);
 2880|  9.58k|    if(!result)
  ------------------
  |  Branch (2880:8): [True: 9.58k, False: 0]
  ------------------
 2881|  9.58k|      result = http_target(data, req);
 2882|  9.58k|    if(!result)
  ------------------
  |  Branch (2882:8): [True: 9.58k, False: 0]
  ------------------
 2883|  9.58k|      result = curlx_dyn_addf(req, " HTTP/%s\r\n",
 2884|  9.58k|                              get_http_string(httpversion));
 2885|  9.58k|    break;
 2886|       |
 2887|  9.58k|  case H1_HD_HOST:
  ------------------
  |  Branch (2887:3): [True: 9.58k, False: 182k]
  ------------------
 2888|  9.58k|    if(data->state.aptr.host)
  ------------------
  |  Branch (2888:8): [True: 9.58k, False: 0]
  ------------------
 2889|  9.58k|      result = curlx_dyn_add(req, data->state.aptr.host);
 2890|  9.58k|    break;
 2891|       |
 2892|      0|#ifndef CURL_DISABLE_PROXY
 2893|  9.58k|  case H1_HD_PROXY_AUTH:
  ------------------
  |  Branch (2893:3): [True: 9.58k, False: 182k]
  ------------------
 2894|  9.58k|    if(data->req.hd_proxy_auth)
  ------------------
  |  Branch (2894:8): [True: 0, False: 9.58k]
  ------------------
 2895|      0|      result = curlx_dyn_add(req, data->req.hd_proxy_auth);
 2896|  9.58k|    break;
 2897|      0|#endif
 2898|       |
 2899|  9.58k|  case H1_HD_AUTH:
  ------------------
  |  Branch (2899:3): [True: 9.58k, False: 182k]
  ------------------
 2900|  9.58k|    if(data->req.hd_auth)
  ------------------
  |  Branch (2900:8): [True: 1.32k, False: 8.26k]
  ------------------
 2901|  1.32k|      result = curlx_dyn_add(req, data->req.hd_auth);
 2902|  9.58k|    break;
 2903|       |
 2904|  9.58k|  case H1_HD_RANGE:
  ------------------
  |  Branch (2904:3): [True: 9.58k, False: 182k]
  ------------------
 2905|  9.58k|    if(data->state.use_range && data->state.aptr.rangeline)
  ------------------
  |  Branch (2905:8): [True: 0, False: 9.58k]
  |  Branch (2905:33): [True: 0, False: 0]
  ------------------
 2906|      0|      result = curlx_dyn_add(req, data->state.aptr.rangeline);
 2907|  9.58k|    break;
 2908|       |
 2909|  9.58k|  case H1_HD_USER_AGENT:
  ------------------
  |  Branch (2909:3): [True: 9.58k, False: 182k]
  ------------------
 2910|  9.58k|    if(data->set.str[STRING_USERAGENT] && /* User-Agent: */
  ------------------
  |  Branch (2910:8): [True: 1.26k, False: 8.32k]
  ------------------
 2911|  1.26k|       *data->set.str[STRING_USERAGENT] &&
  ------------------
  |  Branch (2911:8): [True: 576, False: 685]
  ------------------
 2912|    576|       data->state.aptr.uagent)
  ------------------
  |  Branch (2912:8): [True: 576, False: 0]
  ------------------
 2913|    576|      result = curlx_dyn_add(req, data->state.aptr.uagent);
 2914|  9.58k|    break;
 2915|       |
 2916|  9.58k|  case H1_HD_ACCEPT:
  ------------------
  |  Branch (2916:3): [True: 9.58k, False: 182k]
  ------------------
 2917|  9.58k|    if(!Curl_checkheaders(data, STRCONST("Accept")))
  ------------------
  |  | 1292|  9.58k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2917:8): [True: 9.58k, False: 0]
  ------------------
 2918|  9.58k|      result = curlx_dyn_add(req, "Accept: */*\r\n");
 2919|  9.58k|    break;
 2920|       |
 2921|  9.58k|  case H1_HD_TE:
  ------------------
  |  Branch (2921:3): [True: 9.58k, False: 182k]
  ------------------
 2922|  9.58k|#ifdef HAVE_LIBZ
 2923|  9.58k|    if(!Curl_checkheaders(data, STRCONST("TE")) &&
  ------------------
  |  | 1292|  9.58k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2923:8): [True: 9.58k, False: 0]
  ------------------
 2924|  9.58k|       data->set.http_transfer_encoding) {
  ------------------
  |  Branch (2924:8): [True: 0, False: 9.58k]
  ------------------
 2925|      0|      data->state.http_hd_te = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2926|      0|      result = curlx_dyn_add(req, "TE: gzip\r\n");
 2927|      0|    }
 2928|  9.58k|#endif
 2929|  9.58k|    break;
 2930|       |
 2931|  9.58k|  case H1_HD_ACCEPT_ENCODING:
  ------------------
  |  Branch (2931:3): [True: 9.58k, False: 182k]
  ------------------
 2932|  9.58k|    curlx_safefree(data->state.aptr.accept_encoding);
  ------------------
  |  | 1327|  9.58k|  do {                      \
  |  | 1328|  9.58k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  9.58k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  9.58k|    (ptr) = NULL;           \
  |  | 1330|  9.58k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 9.58k]
  |  |  ------------------
  ------------------
 2933|  9.58k|    if(!Curl_checkheaders(data, STRCONST("Accept-Encoding")) &&
  ------------------
  |  | 1292|  9.58k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2933:8): [True: 9.58k, False: 0]
  ------------------
 2934|  9.58k|       data->set.str[STRING_ENCODING])
  ------------------
  |  Branch (2934:8): [True: 942, False: 8.64k]
  ------------------
 2935|    942|      result = curlx_dyn_addf(req, "Accept-Encoding: %s\r\n",
 2936|    942|                              data->set.str[STRING_ENCODING]);
 2937|  9.58k|    break;
 2938|       |
 2939|  9.58k|  case H1_HD_REFERER:
  ------------------
  |  Branch (2939:3): [True: 9.58k, False: 182k]
  ------------------
 2940|  9.58k|    curlx_safefree(data->state.aptr.ref);
  ------------------
  |  | 1327|  9.58k|  do {                      \
  |  | 1328|  9.58k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  9.58k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  9.58k|    (ptr) = NULL;           \
  |  | 1330|  9.58k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 9.58k]
  |  |  ------------------
  ------------------
 2941|  9.58k|    if(Curl_bufref_ptr(&data->state.referer) &&
  ------------------
  |  Branch (2941:8): [True: 1.58k, False: 7.99k]
  ------------------
 2942|  1.58k|       !Curl_checkheaders(data, STRCONST("Referer")))
  ------------------
  |  | 1292|  1.58k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2942:8): [True: 1.58k, False: 0]
  ------------------
 2943|  1.58k|      result = curlx_dyn_addf(req, "Referer: %s\r\n",
 2944|  1.58k|                              Curl_bufref_ptr(&data->state.referer));
 2945|  9.58k|    break;
 2946|       |
 2947|      0|#ifndef CURL_DISABLE_PROXY
 2948|  9.58k|  case H1_HD_PROXY_CONNECTION:
  ------------------
  |  Branch (2948:3): [True: 9.58k, False: 182k]
  ------------------
 2949|  9.58k|    if(conn->bits.httpproxy &&
  ------------------
  |  Branch (2949:8): [True: 0, False: 9.58k]
  ------------------
 2950|      0|       !conn->bits.tunnel_proxy &&
  ------------------
  |  Branch (2950:8): [True: 0, False: 0]
  ------------------
 2951|      0|       !Curl_checkheaders(data, STRCONST("Proxy-Connection")) &&
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2951:8): [True: 0, False: 0]
  ------------------
 2952|      0|       !Curl_checkProxyheaders(data, data->conn, STRCONST("Proxy-Connection")))
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2952:8): [True: 0, False: 0]
  ------------------
 2953|      0|      result = curlx_dyn_add(req, "Proxy-Connection: Keep-Alive\r\n");
 2954|  9.58k|    break;
 2955|      0|#endif
 2956|       |
 2957|  9.58k|  case H1_HD_TRANSFER_ENCODING:
  ------------------
  |  Branch (2957:3): [True: 9.58k, False: 182k]
  ------------------
 2958|  9.58k|    result = http_req_set_TE(data, req, httpversion);
 2959|  9.58k|    break;
 2960|       |
 2961|      0|#ifndef CURL_DISABLE_ALTSVC
 2962|  9.58k|  case H1_HD_ALT_USED:
  ------------------
  |  Branch (2962:3): [True: 9.58k, False: 182k]
  ------------------
 2963|  9.58k|    if(conn->bits.altused && conn->via_peer &&
  ------------------
  |  Branch (2963:8): [True: 0, False: 9.58k]
  |  Branch (2963:30): [True: 0, False: 0]
  ------------------
 2964|      0|       !Curl_checkheaders(data, STRCONST("Alt-Used")))
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2964:8): [True: 0, False: 0]
  ------------------
 2965|      0|      result = curlx_dyn_addf(req, "Alt-Used: %s:%u\r\n",
 2966|      0|                              conn->via_peer->hostname, conn->via_peer->port);
 2967|  9.58k|    break;
 2968|      0|#endif
 2969|       |
 2970|  9.58k|  case H1_HD_UPGRADE:
  ------------------
  |  Branch (2970:3): [True: 9.58k, False: 182k]
  ------------------
 2971|  9.58k|    if(!Curl_conn_is_ssl(data->conn, FIRSTSOCKET) && (httpversion < 20) &&
  ------------------
  |  |  303|  9.58k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2971:8): [True: 9.58k, False: 0]
  |  Branch (2971:54): [True: 6.68k, False: 2.90k]
  ------------------
 2972|  6.68k|       (data->state.http_neg.wanted & CURL_HTTP_V2x) &&
  ------------------
  |  |   41|  6.68k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (2972:8): [True: 5.20k, False: 1.47k]
  ------------------
 2973|  5.20k|       data->state.http_neg.h2_upgrade) {
  ------------------
  |  Branch (2973:8): [True: 483, False: 4.72k]
  ------------------
 2974|       |      /* append HTTP2 upgrade magic stuff to the HTTP request if it is not done
 2975|       |         over SSL */
 2976|    483|      result = Curl_http2_request_upgrade(req, data);
 2977|    483|    }
 2978|  9.58k|#ifndef CURL_DISABLE_WEBSOCKETS
 2979|  9.58k|    if(!result && conn->scheme->protocol & (CURLPROTO_WS | CURLPROTO_WSS))
  ------------------
  |  |   63|  9.58k|#define CURLPROTO_WS     (1L << 30)
  ------------------
                  if(!result && conn->scheme->protocol & (CURLPROTO_WS | CURLPROTO_WSS))
  ------------------
  |  |   64|  9.58k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  ------------------
  |  Branch (2979:8): [True: 9.58k, False: 0]
  |  Branch (2979:19): [True: 1.34k, False: 8.23k]
  ------------------
 2980|  1.34k|      result = Curl_ws_request(data, req);
 2981|  9.58k|#endif
 2982|  9.58k|    break;
 2983|       |
 2984|  9.58k|  case H1_HD_COOKIES:
  ------------------
  |  Branch (2984:3): [True: 9.58k, False: 182k]
  ------------------
 2985|  9.58k|    result = http_cookies(data, req);
 2986|  9.58k|    break;
 2987|       |
 2988|  9.58k|  case H1_HD_CONDITIONALS:
  ------------------
  |  Branch (2988:3): [True: 9.58k, False: 182k]
  ------------------
 2989|  9.58k|    result = Curl_add_timecondition(data, req);
 2990|  9.58k|    break;
 2991|       |
 2992|  9.58k|  case H1_HD_CUSTOM:
  ------------------
  |  Branch (2992:3): [True: 9.58k, False: 182k]
  ------------------
 2993|  9.58k|    result = Curl_add_custom_headers(data, FALSE, httpversion, req);
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 2994|  9.58k|    break;
 2995|       |
 2996|  9.58k|  case H1_HD_CONTENT:
  ------------------
  |  Branch (2996:3): [True: 9.58k, False: 182k]
  ------------------
 2997|  9.58k|    result = http_add_content_hds(data, req, httpversion, httpreq);
 2998|  9.58k|    break;
 2999|       |
 3000|  9.58k|  case H1_HD_CONNECTION: {
  ------------------
  |  Branch (3000:3): [True: 9.58k, False: 182k]
  ------------------
 3001|  9.58k|    result = http_add_connection_hd(data, req);
 3002|  9.58k|    break;
 3003|      0|  }
 3004|       |
 3005|  9.58k|  case H1_HD_LAST:
  ------------------
  |  Branch (3005:3): [True: 9.58k, False: 182k]
  ------------------
 3006|  9.58k|    result = curlx_dyn_addn(req, STRCONST("\r\n"));
  ------------------
  |  | 1292|  9.58k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 3007|  9.58k|    break;
 3008|   191k|  }
 3009|   191k|  return result;
 3010|   191k|}
http.c:http_target:
 2071|  9.58k|{
 2072|  9.58k|  CURLcode result = CURLE_OK;
 2073|  9.58k|  const char *path = data->state.up.path;
 2074|  9.58k|  const char *query = data->state.up.query;
 2075|  9.58k|#ifndef CURL_DISABLE_PROXY
 2076|  9.58k|  struct connectdata *conn = data->conn;
 2077|  9.58k|#endif
 2078|       |
 2079|  9.58k|  if(data->set.str[STRING_TARGET]) {
  ------------------
  |  Branch (2079:6): [True: 0, False: 9.58k]
  ------------------
 2080|      0|    path = data->set.str[STRING_TARGET];
 2081|      0|    query = NULL;
 2082|      0|  }
 2083|       |
 2084|  9.58k|#ifndef CURL_DISABLE_PROXY
 2085|  9.58k|  if(conn->bits.httpproxy && !conn->bits.tunnel_proxy) {
  ------------------
  |  Branch (2085:6): [True: 0, False: 9.58k]
  |  Branch (2085:30): [True: 0, False: 0]
  ------------------
 2086|       |    /* Using a proxy but does not tunnel through it */
 2087|       |
 2088|       |    /* The path sent to the proxy is in fact the entire URL, but if the remote
 2089|       |       host is a IDN-name, we must make sure that the request we produce only
 2090|       |       uses the encoded hostname! */
 2091|       |
 2092|       |    /* and no fragment part */
 2093|      0|    CURLUcode uc;
 2094|      0|    char *url;
 2095|      0|    CURLU *h = curl_url_dup(data->state.uh);
 2096|      0|    if(!h)
  ------------------
  |  Branch (2096:8): [True: 0, False: 0]
  ------------------
 2097|      0|      return CURLE_OUT_OF_MEMORY;
 2098|       |
 2099|      0|    if(conn->origin->user_hostname != conn->origin->hostname) {
  ------------------
  |  Branch (2099:8): [True: 0, False: 0]
  ------------------
 2100|      0|      uc = curl_url_set(h, CURLUPART_HOST, conn->origin->hostname, 0);
 2101|      0|      if(uc) {
  ------------------
  |  Branch (2101:10): [True: 0, False: 0]
  ------------------
 2102|      0|        curl_url_cleanup(h);
 2103|      0|        return CURLE_OUT_OF_MEMORY;
 2104|      0|      }
 2105|      0|    }
 2106|      0|    uc = curl_url_set(h, CURLUPART_FRAGMENT, NULL, 0);
 2107|      0|    if(uc) {
  ------------------
  |  Branch (2107:8): [True: 0, False: 0]
  ------------------
 2108|      0|      curl_url_cleanup(h);
 2109|      0|      return CURLE_OUT_OF_MEMORY;
 2110|      0|    }
 2111|       |
 2112|      0|    if(curl_strequal("http", data->state.up.scheme)) {
  ------------------
  |  Branch (2112:8): [True: 0, False: 0]
  ------------------
 2113|       |      /* when getting HTTP, we do not want the userinfo the URL */
 2114|      0|      uc = curl_url_set(h, CURLUPART_USER, NULL, 0);
 2115|      0|      if(uc) {
  ------------------
  |  Branch (2115:10): [True: 0, False: 0]
  ------------------
 2116|      0|        curl_url_cleanup(h);
 2117|      0|        return CURLE_OUT_OF_MEMORY;
 2118|      0|      }
 2119|      0|      uc = curl_url_set(h, CURLUPART_PASSWORD, NULL, 0);
 2120|      0|      if(uc) {
  ------------------
  |  Branch (2120:10): [True: 0, False: 0]
  ------------------
 2121|      0|        curl_url_cleanup(h);
 2122|      0|        return CURLE_OUT_OF_MEMORY;
 2123|      0|      }
 2124|      0|    }
 2125|      0|    else if(data->state.creds && (data->state.creds->source != CREDS_URL)) {
  ------------------
  |  |   30|      0|#define CREDS_URL    1 /* username/passwd from URL */
  ------------------
  |  Branch (2125:13): [True: 0, False: 0]
  |  Branch (2125:34): [True: 0, False: 0]
  ------------------
 2126|       |        /* credentials not from the URL need to be set */
 2127|      0|      uc = curl_url_set(h, CURLUPART_USER,
 2128|      0|                        data->state.creds->user, CURLU_URLENCODE);
  ------------------
  |  |   94|      0|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 2129|      0|      if(!uc)
  ------------------
  |  Branch (2129:10): [True: 0, False: 0]
  ------------------
 2130|      0|        uc = curl_url_set(h, CURLUPART_PASSWORD,
 2131|      0|                          data->state.creds->passwd, CURLU_URLENCODE);
  ------------------
  |  |   94|      0|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 2132|      0|      if(uc) {
  ------------------
  |  Branch (2132:10): [True: 0, False: 0]
  ------------------
 2133|      0|        curl_url_cleanup(h);
 2134|      0|        return Curl_uc_to_curlcode(uc);
 2135|      0|      }
 2136|      0|    }
 2137|       |
 2138|       |    /* Extract the URL to use in the request. */
 2139|      0|    uc = curl_url_get(h, CURLUPART_URL, &url, CURLU_NO_DEFAULT_PORT);
  ------------------
  |  |   85|      0|#define CURLU_NO_DEFAULT_PORT (1 << 1)    /* act as if no port number was set,
  ------------------
 2140|      0|    if(uc) {
  ------------------
  |  Branch (2140:8): [True: 0, False: 0]
  ------------------
 2141|      0|      curl_url_cleanup(h);
 2142|      0|      return CURLE_OUT_OF_MEMORY;
 2143|      0|    }
 2144|       |
 2145|      0|    curl_url_cleanup(h);
 2146|       |
 2147|       |    /* target or URL */
 2148|      0|    result = curlx_dyn_add(r, data->set.str[STRING_TARGET] ?
  ------------------
  |  Branch (2148:31): [True: 0, False: 0]
  ------------------
 2149|      0|      data->set.str[STRING_TARGET] : url);
 2150|      0|    curlx_free(url);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2151|      0|    if(result)
  ------------------
  |  Branch (2151:8): [True: 0, False: 0]
  ------------------
 2152|      0|      return result;
 2153|       |
 2154|      0|    if(curl_strequal("ftp", data->state.up.scheme) &&
  ------------------
  |  Branch (2154:8): [True: 0, False: 0]
  ------------------
 2155|      0|       data->set.proxy_transfer_mode) {
  ------------------
  |  Branch (2155:8): [True: 0, False: 0]
  ------------------
 2156|       |      /* when doing ftp, append ;type=<a|i> if not present */
 2157|      0|      size_t len = strlen(path);
 2158|      0|      bool type_present = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2159|      0|      if((len >= 7) && !memcmp(&path[len - 7], ";type=", 6)) {
  ------------------
  |  Branch (2159:10): [True: 0, False: 0]
  |  Branch (2159:24): [True: 0, False: 0]
  ------------------
 2160|      0|        switch(Curl_raw_toupper(path[len - 1])) {
  ------------------
  |  Branch (2160:16): [True: 0, False: 0]
  ------------------
 2161|      0|        case 'A':
  ------------------
  |  Branch (2161:9): [True: 0, False: 0]
  ------------------
 2162|      0|        case 'D':
  ------------------
  |  Branch (2162:9): [True: 0, False: 0]
  ------------------
 2163|      0|        case 'I':
  ------------------
  |  Branch (2163:9): [True: 0, False: 0]
  ------------------
 2164|      0|          type_present = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2165|      0|          break;
 2166|      0|        }
 2167|      0|      }
 2168|      0|      if(!type_present) {
  ------------------
  |  Branch (2168:10): [True: 0, False: 0]
  ------------------
 2169|      0|        result = curlx_dyn_addf(r, ";type=%c",
 2170|      0|                                data->state.prefer_ascii ? 'a' : 'i');
  ------------------
  |  Branch (2170:33): [True: 0, False: 0]
  ------------------
 2171|      0|        if(result)
  ------------------
  |  Branch (2171:12): [True: 0, False: 0]
  ------------------
 2172|      0|          return result;
 2173|      0|      }
 2174|      0|    }
 2175|      0|  }
 2176|       |
 2177|  9.58k|  else
 2178|  9.58k|#endif
 2179|  9.58k|  {
 2180|  9.58k|    result = curlx_dyn_add(r, path);
 2181|  9.58k|    if(result)
  ------------------
  |  Branch (2181:8): [True: 0, False: 9.58k]
  ------------------
 2182|      0|      return result;
 2183|  9.58k|    if(query)
  ------------------
  |  Branch (2183:8): [True: 437, False: 9.14k]
  ------------------
 2184|    437|      result = curlx_dyn_addf(r, "?%s", query);
 2185|  9.58k|  }
 2186|       |
 2187|  9.58k|  return result;
 2188|  9.58k|}
http.c:get_http_string:
 1711|  9.58k|{
 1712|  9.58k|  switch(httpversion) {
 1713|      0|  case 30:
  ------------------
  |  Branch (1713:3): [True: 0, False: 9.58k]
  ------------------
 1714|      0|    return "3";
 1715|  2.90k|  case 20:
  ------------------
  |  Branch (1715:3): [True: 2.90k, False: 6.68k]
  ------------------
 1716|  2.90k|    return "2";
 1717|  6.62k|  case 11:
  ------------------
  |  Branch (1717:3): [True: 6.62k, False: 2.95k]
  ------------------
 1718|  6.62k|    return "1.1";
 1719|     55|  default:
  ------------------
  |  Branch (1719:3): [True: 55, False: 9.52k]
  ------------------
 1720|     55|    return "1.0";
 1721|  9.58k|  }
 1722|  9.58k|}
http.c:http_req_set_TE:
 2368|  9.58k|{
 2369|  9.58k|  CURLcode result = CURLE_OK;
 2370|  9.58k|  const char *ptr;
 2371|       |
 2372|  9.58k|  ptr = Curl_checkheaders(data, STRCONST("Transfer-Encoding"));
  ------------------
  |  | 1292|  9.58k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2373|  9.58k|  if(ptr) {
  ------------------
  |  Branch (2373:6): [True: 0, False: 9.58k]
  ------------------
 2374|       |    /* Some kind of TE is requested, check if 'chunked' is chosen */
 2375|      0|    data->req.upload_chunky =
 2376|      0|      Curl_compareheader(ptr,
 2377|      0|                         STRCONST("Transfer-Encoding:"), STRCONST("chunked"));
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
                                       STRCONST("Transfer-Encoding:"), STRCONST("chunked"));
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2378|      0|    if(data->req.upload_chunky && (httpversion >= 20)) {
  ------------------
  |  Branch (2378:8): [True: 0, False: 0]
  |  Branch (2378:35): [True: 0, False: 0]
  ------------------
 2379|      0|      infof(data, "suppressing chunked transfer encoding on connection "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2380|      0|            "using HTTP version 2 or higher");
 2381|      0|      data->req.upload_chunky = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2382|      0|    }
 2383|      0|  }
 2384|  9.58k|  else {
 2385|  9.58k|    curl_off_t req_clen = Curl_creader_total_length(data);
 2386|       |
 2387|  9.58k|    if(req_clen < 0) {
  ------------------
  |  Branch (2387:8): [True: 586, False: 8.99k]
  ------------------
 2388|       |      /* indeterminate request content length */
 2389|    586|      if(httpversion > 10) {
  ------------------
  |  Branch (2389:10): [True: 585, False: 1]
  ------------------
 2390|       |        /* On HTTP/1.1, enable chunked, on HTTP/2 and later we do not
 2391|       |         * need it */
 2392|    585|        data->req.upload_chunky = (httpversion < 20);
 2393|    585|      }
 2394|      1|      else {
 2395|      1|        failf(data, "Chunky upload is not supported by HTTP 1.0");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 2396|      1|        return CURLE_UPLOAD_FAILED;
 2397|      1|      }
 2398|    586|    }
 2399|  8.99k|    else {
 2400|       |      /* else, no chunky upload */
 2401|  8.99k|      data->req.upload_chunky = FALSE;
  ------------------
  |  | 1058|  8.99k|#define FALSE false
  ------------------
 2402|  8.99k|    }
 2403|       |
 2404|  9.58k|    if(data->req.upload_chunky)
  ------------------
  |  Branch (2404:8): [True: 185, False: 9.39k]
  ------------------
 2405|    185|      result = curlx_dyn_add(req, "Transfer-Encoding: chunked\r\n");
 2406|  9.58k|  }
 2407|  9.58k|  return result;
 2408|  9.58k|}
http.c:http_cookies:
 2528|  9.58k|{
 2529|  9.58k|  CURLcode result = CURLE_OK;
 2530|  9.58k|  char *addcookies = NULL;
 2531|  9.58k|  bool linecap = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 2532|  9.58k|  if(data->set.str[STRING_COOKIE] &&
  ------------------
  |  Branch (2532:6): [True: 0, False: 9.58k]
  ------------------
 2533|      0|     !Curl_checkheaders(data, STRCONST("Cookie")) &&
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2533:6): [True: 0, False: 0]
  ------------------
 2534|      0|     Curl_auth_allowed_to_host(data))
  ------------------
  |  Branch (2534:6): [True: 0, False: 0]
  ------------------
 2535|      0|    addcookies = data->set.str[STRING_COOKIE];
 2536|       |
 2537|  9.58k|  if(data->cookies || addcookies) {
  ------------------
  |  Branch (2537:6): [True: 9.58k, False: 0]
  |  Branch (2537:23): [True: 0, False: 0]
  ------------------
 2538|  9.58k|    struct Curl_llist list;
 2539|  9.58k|    int count = 0;
 2540|       |
 2541|  9.58k|    if(data->cookies && data->state.cookie_engine) {
  ------------------
  |  Branch (2541:8): [True: 9.58k, False: 0]
  |  Branch (2541:25): [True: 9.58k, False: 0]
  ------------------
 2542|  9.58k|      bool okay;
 2543|  9.58k|      const char *host = data->req.cookiehost ?
  ------------------
  |  Branch (2543:26): [True: 0, False: 9.58k]
  ------------------
 2544|  9.58k|        data->req.cookiehost : data->conn->origin->hostname;
 2545|  9.58k|      Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 2546|  9.58k|      result = Curl_cookie_getlist(data, data->conn, &okay, host, &list);
 2547|  9.58k|      if(!result && okay) {
  ------------------
  |  Branch (2547:10): [True: 9.58k, False: 0]
  |  Branch (2547:21): [True: 0, False: 9.58k]
  ------------------
 2548|      0|        struct Curl_llist_node *n;
 2549|      0|        size_t clen = 8; /* hold the size of the generated Cookie: header */
 2550|       |
 2551|       |        /* loop through all cookies that matched */
 2552|      0|        for(n = Curl_llist_head(&list); n; n = Curl_node_next(n)) {
  ------------------
  |  Branch (2552:41): [True: 0, False: 0]
  ------------------
 2553|      0|          struct Cookie *co = Curl_node_elem(n);
 2554|      0|          if(co->value) {
  ------------------
  |  Branch (2554:14): [True: 0, False: 0]
  ------------------
 2555|      0|            size_t add;
 2556|      0|            if(!count) {
  ------------------
  |  Branch (2556:16): [True: 0, False: 0]
  ------------------
 2557|      0|              result = curlx_dyn_addn(r, STRCONST("Cookie: "));
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2558|      0|              if(result)
  ------------------
  |  Branch (2558:18): [True: 0, False: 0]
  ------------------
 2559|      0|                break;
 2560|      0|            }
 2561|      0|            add = strlen(co->name) + strlen(co->value) + 1;
 2562|      0|            if(clen + add >= MAX_COOKIE_HEADER_LEN) {
  ------------------
  |  |   97|      0|#define MAX_COOKIE_HEADER_LEN 8190
  ------------------
  |  Branch (2562:16): [True: 0, False: 0]
  ------------------
 2563|      0|              infof(data, "Restricted outgoing cookies due to header size, "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2564|      0|                    "'%s' not sent", co->name);
 2565|      0|              linecap = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2566|      0|              break;
 2567|      0|            }
 2568|      0|            result = curlx_dyn_addf(r, "%s%s=%s", count ? "; " : "",
  ------------------
  |  Branch (2568:51): [True: 0, False: 0]
  ------------------
 2569|      0|                                    co->name, co->value);
 2570|      0|            if(result)
  ------------------
  |  Branch (2570:16): [True: 0, False: 0]
  ------------------
 2571|      0|              break;
 2572|      0|            clen += add + (count ? 2 : 0);
  ------------------
  |  Branch (2572:28): [True: 0, False: 0]
  ------------------
 2573|      0|            count++;
 2574|      0|          }
 2575|      0|        }
 2576|      0|        Curl_llist_destroy(&list, NULL);
 2577|      0|      }
 2578|  9.58k|      Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 2579|  9.58k|    }
 2580|  9.58k|    if(addcookies && !result && !linecap) {
  ------------------
  |  Branch (2580:8): [True: 0, False: 9.58k]
  |  Branch (2580:22): [True: 0, False: 0]
  |  Branch (2580:33): [True: 0, False: 0]
  ------------------
 2581|      0|      if(!count)
  ------------------
  |  Branch (2581:10): [True: 0, False: 0]
  ------------------
 2582|      0|        result = curlx_dyn_addn(r, STRCONST("Cookie: "));
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2583|      0|      if(!result) {
  ------------------
  |  Branch (2583:10): [True: 0, False: 0]
  ------------------
 2584|      0|        result = curlx_dyn_addf(r, "%s%s", count ? "; " : "", addcookies);
  ------------------
  |  Branch (2584:44): [True: 0, False: 0]
  ------------------
 2585|      0|        count++;
 2586|      0|      }
 2587|      0|    }
 2588|  9.58k|    if(count && !result)
  ------------------
  |  Branch (2588:8): [True: 0, False: 9.58k]
  |  Branch (2588:17): [True: 0, False: 0]
  ------------------
 2589|      0|      result = curlx_dyn_addn(r, STRCONST("\r\n"));
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2590|       |
 2591|  9.58k|    if(result)
  ------------------
  |  Branch (2591:8): [True: 0, False: 9.58k]
  ------------------
 2592|      0|      return result;
 2593|  9.58k|  }
 2594|  9.58k|  return result;
 2595|  9.58k|}
http.c:http_add_content_hds:
 2449|  9.58k|{
 2450|  9.58k|  CURLcode result = CURLE_OK;
 2451|  9.58k|  curl_off_t req_clen;
 2452|  9.58k|  bool announced_exp100 = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 2453|       |
 2454|  9.58k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2454:3): [True: 0, False: 9.58k]
  |  Branch (2454:3): [True: 9.58k, False: 0]
  ------------------
 2455|  9.58k|  if(data->req.upload_chunky) {
  ------------------
  |  Branch (2455:6): [True: 185, False: 9.39k]
  ------------------
 2456|    185|    result = Curl_httpchunk_add_reader(data);
 2457|    185|    if(result)
  ------------------
  |  Branch (2457:8): [True: 0, False: 185]
  ------------------
 2458|      0|      return result;
 2459|    185|  }
 2460|       |
 2461|       |  /* Get the request body length that has been set up */
 2462|  9.58k|  req_clen = Curl_creader_total_length(data);
 2463|  9.58k|  switch(httpreq) {
 2464|    531|  case HTTPREQ_PUT:
  ------------------
  |  Branch (2464:3): [True: 531, False: 9.05k]
  ------------------
 2465|  1.72k|  case HTTPREQ_POST:
  ------------------
  |  Branch (2465:3): [True: 1.19k, False: 8.38k]
  ------------------
 2466|  1.72k|#if !defined(CURL_DISABLE_MIME) || !defined(CURL_DISABLE_FORM_API)
 2467|  1.72k|  case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (2467:3): [True: 0, False: 9.58k]
  ------------------
 2468|  1.72k|  case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (2468:3): [True: 0, False: 9.58k]
  ------------------
 2469|  1.72k|#endif
 2470|       |    /* We only set Content-Length and allow a custom Content-Length if
 2471|       |       we do not upload data chunked, as RFC2616 forbids us to set both
 2472|       |       kinds of headers (Transfer-Encoding: chunked and Content-Length).
 2473|       |       We do not override a custom "Content-Length" header, but during
 2474|       |       authentication negotiation that header is suppressed.
 2475|       |     */
 2476|  1.72k|    if(req_clen >= 0 && !data->req.upload_chunky &&
  ------------------
  |  Branch (2476:8): [True: 1.14k, False: 585]
  |  Branch (2476:25): [True: 1.14k, False: 0]
  ------------------
 2477|  1.14k|       (data->req.authneg ||
  ------------------
  |  Branch (2477:9): [True: 0, False: 1.14k]
  ------------------
 2478|  1.14k|        !Curl_checkheaders(data, STRCONST("Content-Length")))) {
  ------------------
  |  | 1292|  1.14k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2478:9): [True: 1.14k, False: 0]
  ------------------
 2479|       |      /* we allow replacing this header if not during auth negotiation,
 2480|       |         although it is not wise to actually set your own */
 2481|  1.14k|      result = curlx_dyn_addf(r, "Content-Length: %" FMT_OFF_T "\r\n",
 2482|  1.14k|                              req_clen);
 2483|  1.14k|    }
 2484|  1.72k|    if(result)
  ------------------
  |  Branch (2484:8): [True: 0, False: 1.72k]
  ------------------
 2485|      0|      goto out;
 2486|       |
 2487|  1.72k|#ifndef CURL_DISABLE_MIME
 2488|       |    /* Output mime-generated headers. */
 2489|  1.72k|    if(data->state.mimepost &&
  ------------------
  |  Branch (2489:8): [True: 0, False: 1.72k]
  ------------------
 2490|      0|       ((httpreq == HTTPREQ_POST_FORM) || (httpreq == HTTPREQ_POST_MIME))) {
  ------------------
  |  Branch (2490:9): [True: 0, False: 0]
  |  Branch (2490:43): [True: 0, False: 0]
  ------------------
 2491|      0|      struct curl_slist *hdr;
 2492|       |
 2493|      0|      for(hdr = data->state.mimepost->curlheaders; hdr; hdr = hdr->next) {
  ------------------
  |  Branch (2493:52): [True: 0, False: 0]
  ------------------
 2494|      0|        result = curlx_dyn_addf(r, "%s\r\n", hdr->data);
 2495|      0|        if(result)
  ------------------
  |  Branch (2495:12): [True: 0, False: 0]
  ------------------
 2496|      0|          goto out;
 2497|      0|      }
 2498|      0|    }
 2499|  1.72k|#endif
 2500|  1.72k|    if(httpreq == HTTPREQ_POST) {
  ------------------
  |  Branch (2500:8): [True: 1.19k, False: 531]
  ------------------
 2501|  1.19k|      if(!Curl_checkheaders(data, STRCONST("Content-Type"))) {
  ------------------
  |  | 1292|  1.19k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  |  Branch (2501:10): [True: 1.19k, False: 0]
  ------------------
 2502|  1.19k|        result = curlx_dyn_addn(r, STRCONST("Content-Type: application/"
  ------------------
  |  | 1292|  1.19k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2503|  1.19k|                                            "x-www-form-urlencoded\r\n"));
 2504|  1.19k|        if(result)
  ------------------
  |  Branch (2504:12): [True: 0, False: 1.19k]
  ------------------
 2505|      0|          goto out;
 2506|  1.19k|      }
 2507|  1.19k|    }
 2508|  1.72k|    result = addexpect(data, r, httpversion, &announced_exp100);
 2509|  1.72k|    if(result)
  ------------------
  |  Branch (2509:8): [True: 0, False: 1.72k]
  ------------------
 2510|      0|      goto out;
 2511|  1.72k|    break;
 2512|  7.85k|  default:
  ------------------
  |  Branch (2512:3): [True: 7.85k, False: 1.72k]
  ------------------
 2513|  7.85k|    break;
 2514|  9.58k|  }
 2515|       |
 2516|  9.58k|  Curl_pgrsSetUploadSize(data, req_clen);
 2517|  9.58k|  if(announced_exp100)
  ------------------
  |  Branch (2517:6): [True: 247, False: 9.33k]
  ------------------
 2518|    247|    result = http_exp100_add_reader(data);
 2519|       |
 2520|  9.58k|out:
 2521|  9.58k|  return result;
 2522|  9.58k|}
http.c:addexpect:
 2412|  1.72k|{
 2413|  1.72k|  CURLcode result;
 2414|  1.72k|  char *ptr;
 2415|       |
 2416|  1.72k|  *announced_exp100 = FALSE;
  ------------------
  |  | 1058|  1.72k|#define FALSE false
  ------------------
 2417|       |  /* Avoid Expect: 100-continue if Upgrade: is used */
 2418|  1.72k|  if(data->req.upgr101 != UPGR101_NONE)
  ------------------
  |  Branch (2418:6): [True: 182, False: 1.54k]
  ------------------
 2419|    182|    return CURLE_OK;
 2420|       |
 2421|       |  /* For really small puts we do not use Expect: headers at all, and for
 2422|       |     the somewhat bigger ones we allow the app to disable it. Make
 2423|       |     sure that the expect100header is always set to the preferred value
 2424|       |     here. */
 2425|  1.54k|  ptr = Curl_checkheaders(data, STRCONST("Expect"));
  ------------------
  |  | 1292|  1.54k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2426|  1.54k|  if(ptr) {
  ------------------
  |  Branch (2426:6): [True: 0, False: 1.54k]
  ------------------
 2427|      0|    *announced_exp100 =
 2428|      0|      Curl_compareheader(ptr, STRCONST("Expect:"), STRCONST("100-continue"));
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
                    Curl_compareheader(ptr, STRCONST("Expect:"), STRCONST("100-continue"));
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2429|      0|  }
 2430|  1.54k|  else if(!data->state.disableexpect && (httpversion == 11)) {
  ------------------
  |  Branch (2430:11): [True: 1.54k, False: 0]
  |  Branch (2430:41): [True: 799, False: 744]
  ------------------
 2431|       |    /* if not doing HTTP 1.0 or version 2, or disabled explicitly, we add an
 2432|       |       Expect: 100-continue to the headers which actually speeds up post
 2433|       |       operations (as there is one packet coming back from the web server) */
 2434|    799|    curl_off_t client_len = Curl_creader_client_length(data);
 2435|    799|    if(client_len > EXPECT_100_THRESHOLD || client_len < 0) {
  ------------------
  |  |  147|  1.59k|#define EXPECT_100_THRESHOLD (1024 * 1024)
  ------------------
  |  Branch (2435:8): [True: 100, False: 699]
  |  Branch (2435:45): [True: 147, False: 552]
  ------------------
 2436|    247|      result = curlx_dyn_addn(r, STRCONST("Expect: 100-continue\r\n"));
  ------------------
  |  | 1292|    247|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2437|    247|      if(result)
  ------------------
  |  Branch (2437:10): [True: 0, False: 247]
  ------------------
 2438|      0|        return result;
 2439|    247|      *announced_exp100 = TRUE;
  ------------------
  |  | 1055|    247|#define TRUE true
  ------------------
 2440|    247|    }
 2441|    799|  }
 2442|  1.54k|  return CURLE_OK;
 2443|  1.54k|}
http.c:http_exp100_add_reader:
 1536|    247|{
 1537|    247|  struct Curl_creader *reader = NULL;
 1538|    247|  CURLcode result;
 1539|       |
 1540|    247|  result = Curl_creader_create(&reader, data, &cr_exp100, CURL_CR_PROTOCOL);
 1541|    247|  if(!result)
  ------------------
  |  Branch (1541:6): [True: 247, False: 0]
  ------------------
 1542|    247|    result = Curl_creader_add(data, reader);
 1543|    247|  if(!result) {
  ------------------
  |  Branch (1543:6): [True: 247, False: 0]
  ------------------
 1544|    247|    struct cr_exp100_ctx *ctx = reader->ctx;
 1545|    247|    ctx->state = EXP100_SENDING_REQUEST;
 1546|    247|  }
 1547|       |
 1548|    247|  if(result && reader)
  ------------------
  |  Branch (1548:6): [True: 0, False: 247]
  |  Branch (1548:16): [True: 0, False: 0]
  ------------------
 1549|      0|    Curl_creader_free(data, reader);
 1550|    247|  return result;
 1551|    247|}
http.c:http_add_connection_hd:
 2773|  9.58k|{
 2774|  9.58k|  struct curl_slist *head;
 2775|  9.58k|  const char *sep = "Connection: ";
 2776|  9.58k|  CURLcode result = CURLE_OK;
 2777|  9.58k|  size_t rlen = curlx_dyn_len(req);
 2778|  9.58k|  bool skip;
 2779|       |
 2780|       |  /* Add the 1st custom "Connection: " header, if there is one */
 2781|  9.58k|  for(head = data->set.headers; head; head = head->next) {
  ------------------
  |  Branch (2781:33): [True: 0, False: 9.58k]
  ------------------
 2782|      0|    if(curl_strnequal(head->data, "Connection", 10) &&
  ------------------
  |  Branch (2782:8): [True: 0, False: 0]
  ------------------
 2783|      0|       Curl_headersep(head->data[10]) &&
  ------------------
  |  |   26|      0|#define Curl_headersep(x) ((((x) == ':') || ((x) == ';')))
  |  |  ------------------
  |  |  |  Branch (26:29): [True: 0, False: 0]
  |  |  |  Branch (26:45): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2784|      0|       !http_header_is_empty(head->data)) {
  ------------------
  |  Branch (2784:8): [True: 0, False: 0]
  ------------------
 2785|      0|      char *value;
 2786|      0|      result = copy_custom_value(head->data, &value);
 2787|      0|      if(result)
  ------------------
  |  Branch (2787:10): [True: 0, False: 0]
  ------------------
 2788|      0|        return result;
 2789|      0|      result = curlx_dyn_addf(req, "%s%s", sep, value);
 2790|      0|      sep = ", ";
 2791|      0|      curlx_free(value);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2792|      0|      break; /* leave, having added 1st one */
 2793|      0|    }
 2794|      0|  }
 2795|       |
 2796|       |  /* add our internal Connection: header values, if we have any */
 2797|  9.58k|  if(!result && data->state.http_hd_te) {
  ------------------
  |  Branch (2797:6): [True: 9.58k, False: 0]
  |  Branch (2797:17): [True: 0, False: 9.58k]
  ------------------
 2798|      0|    result = curlx_dyn_addf(req, "%s%s", sep, "TE");
 2799|      0|    sep = ", ";
 2800|      0|  }
 2801|  9.58k|  if(!result && data->state.http_hd_upgrade) {
  ------------------
  |  Branch (2801:6): [True: 9.58k, False: 0]
  |  Branch (2801:17): [True: 1.83k, False: 7.75k]
  ------------------
 2802|  1.83k|    result = curlx_dyn_addf(req, "%s%s", sep, "Upgrade");
 2803|  1.83k|    sep = ", ";
 2804|  1.83k|  }
 2805|  9.58k|  if(!result && data->state.http_hd_h2_settings) {
  ------------------
  |  Branch (2805:6): [True: 9.58k, False: 0]
  |  Branch (2805:17): [True: 483, False: 9.09k]
  ------------------
 2806|    483|    result = curlx_dyn_addf(req, "%s%s", sep, "HTTP2-Settings");
 2807|    483|  }
 2808|  9.58k|  if(!result && (rlen < curlx_dyn_len(req)))
  ------------------
  |  Branch (2808:6): [True: 9.58k, False: 0]
  |  Branch (2808:17): [True: 1.83k, False: 7.75k]
  ------------------
 2809|  1.83k|    result = curlx_dyn_addn(req, STRCONST("\r\n"));
  ------------------
  |  | 1292|  1.83k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 2810|  9.58k|  if(result)
  ------------------
  |  Branch (2810:6): [True: 0, False: 9.58k]
  ------------------
 2811|      0|    return result;
 2812|       |
 2813|       |  /* Add all user-defined Connection: headers after the first */
 2814|  9.58k|  skip = TRUE;
  ------------------
  |  | 1055|  9.58k|#define TRUE true
  ------------------
 2815|  9.58k|  for(head = data->set.headers; head; head = head->next) {
  ------------------
  |  Branch (2815:33): [True: 0, False: 9.58k]
  ------------------
 2816|      0|    if(curl_strnequal(head->data, "Connection", 10) &&
  ------------------
  |  Branch (2816:8): [True: 0, False: 0]
  ------------------
 2817|      0|       Curl_headersep(head->data[10]) &&
  ------------------
  |  |   26|      0|#define Curl_headersep(x) ((((x) == ':') || ((x) == ';')))
  |  |  ------------------
  |  |  |  Branch (26:29): [True: 0, False: 0]
  |  |  |  Branch (26:45): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2818|      0|       !http_header_is_empty(head->data)) {
  ------------------
  |  Branch (2818:8): [True: 0, False: 0]
  ------------------
 2819|      0|      if(skip) {
  ------------------
  |  Branch (2819:10): [True: 0, False: 0]
  ------------------
 2820|      0|        skip = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2821|      0|        continue;
 2822|      0|      }
 2823|      0|      result = curlx_dyn_addf(req, "%s\r\n", head->data);
 2824|      0|      if(result)
  ------------------
  |  Branch (2824:10): [True: 0, False: 0]
  ------------------
 2825|      0|        return result;
 2826|      0|    }
 2827|      0|  }
 2828|       |
 2829|  9.58k|  return CURLE_OK;
 2830|  9.58k|}
http.c:http_rw_hd:
 4211|  36.4k|{
 4212|  36.4k|  CURLcode result = CURLE_OK;
 4213|  36.4k|  struct SingleRequest *k = &data->req;
 4214|  36.4k|  int writetype;
 4215|  36.4k|  DEBUGASSERT(!hd[hdlen]); /* null-terminated */
  ------------------
  |  | 1081|  36.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4215:3): [True: 0, False: 36.4k]
  |  Branch (4215:3): [True: 36.4k, False: 0]
  ------------------
 4216|       |
 4217|  36.4k|  *pconsumed = 0;
 4218|  36.4k|  if((0x0a == *hd) || (0x0d == *hd)) {
  ------------------
  |  Branch (4218:6): [True: 37, False: 36.4k]
  |  Branch (4218:23): [True: 5.26k, False: 31.1k]
  ------------------
 4219|       |    /* Empty header line means end of headers! */
 4220|  5.29k|    struct dynbuf last_header;
 4221|  5.29k|    size_t consumed;
 4222|       |
 4223|  5.29k|    curlx_dyn_init(&last_header, hdlen + 1);
 4224|  5.29k|    result = curlx_dyn_addn(&last_header, hd, hdlen);
 4225|  5.29k|    if(result)
  ------------------
  |  Branch (4225:8): [True: 0, False: 5.29k]
  ------------------
 4226|      0|      return result;
 4227|       |
 4228|       |    /* analyze the response to find out what to do. */
 4229|       |    /* Caveat: we clear anything in the header brigade, because a
 4230|       |     * response might switch HTTP version which may call use recursively.
 4231|       |     * Not nice, but that is currently the way of things. */
 4232|  5.29k|    curlx_dyn_reset(&data->state.headerb);
 4233|  5.29k|    result = http_on_response(data, curlx_dyn_ptr(&last_header),
 4234|  5.29k|                              curlx_dyn_len(&last_header),
 4235|  5.29k|                              buf_remain, blen, &consumed);
 4236|  5.29k|    *pconsumed += consumed;
 4237|  5.29k|    curlx_dyn_free(&last_header);
 4238|  5.29k|    return result;
 4239|  5.29k|  }
 4240|       |
 4241|       |  /*
 4242|       |   * Checks for special headers coming up.
 4243|       |   */
 4244|       |
 4245|  31.1k|  writetype = CLIENTWRITE_HEADER;
  ------------------
  |  |   44|  31.1k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
 4246|  31.1k|  if(!k->headerline++) {
  ------------------
  |  Branch (4246:6): [True: 6.33k, False: 24.8k]
  ------------------
 4247|       |    /* This is the first header, it MUST be the error code line
 4248|       |       or else we consider this to be the body right away! */
 4249|  6.33k|    bool fine_statusline = FALSE;
  ------------------
  |  | 1058|  6.33k|#define FALSE false
  ------------------
 4250|       |
 4251|  6.33k|    k->httpversion = 0; /* Do not know yet */
 4252|  6.33k|    if(data->conn->scheme->protocol & PROTO_FAMILY_HTTP) {
  ------------------
  |  |   84|  6.33k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1078|  6.33k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1079|  6.33k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  6.33k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  6.33k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  6.33k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (4252:8): [True: 6.33k, False: 0]
  ------------------
 4253|       |      /*
 4254|       |       * https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2
 4255|       |       *
 4256|       |       * The response code is always a three-digit number in HTTP as the spec
 4257|       |       * says. We allow any three-digit number here, but we cannot make
 4258|       |       * guarantees on future behaviors since it is not within the protocol.
 4259|       |       */
 4260|  6.33k|      const char *p = hd;
 4261|       |
 4262|  6.33k|      curlx_str_passblanks(&p);
 4263|  6.33k|      if(!strncmp(p, "HTTP/", 5)) {
  ------------------
  |  Branch (4263:10): [True: 6.21k, False: 121]
  ------------------
 4264|  6.21k|        p += 5;
 4265|  6.21k|        switch(*p) {
 4266|  5.66k|        case '1':
  ------------------
  |  Branch (4266:9): [True: 5.66k, False: 548]
  ------------------
 4267|  5.66k|          p++;
 4268|  5.66k|          if((p[0] == '.') && (p[1] == '0' || p[1] == '1')) {
  ------------------
  |  Branch (4268:14): [True: 5.66k, False: 3]
  |  Branch (4268:32): [True: 21, False: 5.64k]
  |  Branch (4268:47): [True: 5.64k, False: 3]
  ------------------
 4269|  5.66k|            if(ISBLANK(p[2])) {
  ------------------
  |  |   45|  5.66k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 5.65k, False: 4]
  |  |  |  Branch (45:38): [True: 3, False: 1]
  |  |  ------------------
  ------------------
 4270|  5.66k|              k->httpversion = (unsigned char)(10 + (p[1] - '0'));
 4271|  5.66k|              p += 3;
 4272|  5.66k|              if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   44|  11.3k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 5.65k, False: 2]
  |  |  |  Branch (44:38): [True: 5.65k, False: 1]
  |  |  ------------------
  ------------------
                            if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   44|  11.3k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 5.65k, False: 3]
  |  |  |  Branch (44:38): [True: 5.65k, False: 1]
  |  |  ------------------
  ------------------
                            if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   44|  5.65k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 5.65k, False: 3]
  |  |  |  Branch (44:38): [True: 5.65k, False: 1]
  |  |  ------------------
  ------------------
 4273|  5.65k|                k->httpcode = ((p[0] - '0') * 100) + ((p[1] - '0') * 10) +
 4274|  5.65k|                  (p[2] - '0');
 4275|       |                /* RFC 9112 requires a single space following the status code,
 4276|       |                   but the browsers do not so let's not insist */
 4277|  5.65k|                fine_statusline = TRUE;
  ------------------
  |  | 1055|  5.65k|#define TRUE true
  ------------------
 4278|  5.65k|              }
 4279|  5.66k|            }
 4280|  5.66k|          }
 4281|  5.66k|          if(!fine_statusline) {
  ------------------
  |  Branch (4281:14): [True: 18, False: 5.65k]
  ------------------
 4282|     18|            failf(data, "Unsupported HTTP/1 subversion in response");
  ------------------
  |  |   62|     18|#define failf Curl_failf
  ------------------
 4283|     18|            return CURLE_UNSUPPORTED_PROTOCOL;
 4284|     18|          }
 4285|  5.65k|          break;
 4286|  5.65k|        case '2':
  ------------------
  |  Branch (4286:9): [True: 539, False: 5.67k]
  ------------------
 4287|    546|        case '3':
  ------------------
  |  Branch (4287:9): [True: 7, False: 6.20k]
  ------------------
 4288|    546|          if(!ISBLANK(p[1]))
  ------------------
  |  |   45|    546|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 506, False: 40]
  |  |  |  Branch (45:38): [True: 2, False: 38]
  |  |  ------------------
  ------------------
 4289|     38|            break;
 4290|    508|          k->httpversion = (unsigned char)((*p - '0') * 10);
 4291|    508|          p += 2;
 4292|    508|          if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   44|  1.01k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 507, False: 1]
  |  |  |  Branch (44:38): [True: 504, False: 3]
  |  |  ------------------
  ------------------
                        if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   44|  1.01k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 501, False: 3]
  |  |  |  Branch (44:38): [True: 501, False: 0]
  |  |  ------------------
  ------------------
                        if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   44|    501|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 500, False: 1]
  |  |  |  Branch (44:38): [True: 499, False: 1]
  |  |  ------------------
  ------------------
 4293|    499|            k->httpcode = ((p[0] - '0') * 100) + ((p[1] - '0') * 10) +
 4294|    499|              (p[2] - '0');
 4295|    499|            p += 3;
 4296|    499|            if(!ISBLANK(*p))
  ------------------
  |  |   45|    499|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 488, False: 11]
  |  |  |  Branch (45:38): [True: 1, False: 10]
  |  |  ------------------
  ------------------
 4297|     10|              break;
 4298|    489|            fine_statusline = TRUE;
  ------------------
  |  | 1055|    489|#define TRUE true
  ------------------
 4299|    489|          }
 4300|    498|          break;
 4301|    498|        default: /* unsupported */
  ------------------
  |  Branch (4301:9): [True: 2, False: 6.21k]
  ------------------
 4302|      2|          failf(data, "Unsupported HTTP version in response");
  ------------------
  |  |   62|      2|#define failf Curl_failf
  ------------------
 4303|      2|          return CURLE_UNSUPPORTED_PROTOCOL;
 4304|  6.21k|        }
 4305|  6.21k|      }
 4306|       |
 4307|  6.31k|      if(!fine_statusline) {
  ------------------
  |  Branch (4307:10): [True: 178, False: 6.13k]
  ------------------
 4308|       |        /* If user has set option HTTP200ALIASES,
 4309|       |           compare header line against list of aliases
 4310|       |        */
 4311|    178|        statusline check = checkhttpprefix(data, hd, hdlen);
 4312|    178|        if(check == STATUS_DONE) {
  ------------------
  |  Branch (4312:12): [True: 84, False: 94]
  ------------------
 4313|     84|          fine_statusline = TRUE;
  ------------------
  |  | 1055|     84|#define TRUE true
  ------------------
 4314|     84|          k->httpcode = 200;
 4315|     84|          k->httpversion = 10;
 4316|     84|        }
 4317|    178|      }
 4318|  6.31k|    }
 4319|      0|    else if(data->conn->scheme->protocol & CURLPROTO_RTSP) {
  ------------------
  |  | 1096|      0|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (4319:13): [True: 0, False: 0]
  ------------------
 4320|      0|      const char *p = hd;
 4321|      0|      struct Curl_str ver;
 4322|      0|      curl_off_t status;
 4323|       |      /* we set the max string a little excessive to forgive some leading
 4324|       |         spaces */
 4325|      0|      if(!curlx_str_until(&p, &ver, 32, ' ') &&
  ------------------
  |  Branch (4325:10): [True: 0, False: 0]
  ------------------
 4326|      0|         !curlx_str_single(&p, ' ') &&
  ------------------
  |  Branch (4326:10): [True: 0, False: 0]
  ------------------
 4327|      0|         !curlx_str_number(&p, &status, 999)) {
  ------------------
  |  Branch (4327:10): [True: 0, False: 0]
  ------------------
 4328|      0|        curlx_str_trimblanks(&ver);
 4329|      0|        if(curlx_str_cmp(&ver, "RTSP/1.0")) {
  ------------------
  |  Branch (4329:12): [True: 0, False: 0]
  ------------------
 4330|      0|          k->httpcode = (int)status;
 4331|      0|          fine_statusline = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 4332|      0|          k->httpversion = 11; /* RTSP acts like HTTP 1.1 */
 4333|      0|        }
 4334|      0|      }
 4335|      0|      if(!fine_statusline)
  ------------------
  |  Branch (4335:10): [True: 0, False: 0]
  ------------------
 4336|      0|        return CURLE_WEIRD_SERVER_REPLY;
 4337|      0|    }
 4338|       |
 4339|  6.31k|    if(fine_statusline) {
  ------------------
  |  Branch (4339:8): [True: 6.22k, False: 94]
  ------------------
 4340|  6.22k|      result = http_statusline(data, data->conn);
 4341|  6.22k|      if(result)
  ------------------
  |  Branch (4341:10): [True: 2, False: 6.22k]
  ------------------
 4342|      2|        return result;
 4343|  6.22k|      writetype |= CLIENTWRITE_STATUS;
  ------------------
  |  |   45|  6.22k|#define CLIENTWRITE_STATUS  (1 << 3) /* a special status HEADER */
  ------------------
 4344|  6.22k|    }
 4345|     94|    else {
 4346|     94|      k->header = FALSE;   /* this is not a header line */
  ------------------
  |  | 1058|     94|#define FALSE false
  ------------------
 4347|     94|      return CURLE_WEIRD_SERVER_REPLY;
 4348|     94|    }
 4349|  6.31k|  }
 4350|       |
 4351|  31.0k|  result = verify_header(data, hd, hdlen);
 4352|  31.0k|  if(result)
  ------------------
  |  Branch (4352:6): [True: 54, False: 31.0k]
  ------------------
 4353|     54|    return result;
 4354|       |
 4355|  31.0k|  result = http_header(data, hd, hdlen);
 4356|  31.0k|  if(result)
  ------------------
  |  Branch (4356:6): [True: 109, False: 30.9k]
  ------------------
 4357|    109|    return result;
 4358|       |
 4359|       |  /*
 4360|       |   * Taken in one (more) header. Write it to the client.
 4361|       |   */
 4362|  30.9k|  Curl_debug(data, CURLINFO_HEADER_IN, hd, hdlen);
 4363|       |
 4364|  30.9k|  if(k->httpcode / 100 == 1)
  ------------------
  |  Branch (4364:6): [True: 6.42k, False: 24.4k]
  ------------------
 4365|  6.42k|    writetype |= CLIENTWRITE_1XX;
  ------------------
  |  |   47|  6.42k|#define CLIENTWRITE_1XX     (1 << 5) /* a 1xx response related HEADER */
  ------------------
 4366|  30.9k|  result = Curl_client_write(data, writetype, hd, hdlen);
 4367|  30.9k|  if(result)
  ------------------
  |  Branch (4367:6): [True: 0, False: 30.9k]
  ------------------
 4368|      0|    return result;
 4369|       |
 4370|  30.9k|  result = Curl_bump_headersize(data, hdlen, FALSE);
  ------------------
  |  | 1058|  30.9k|#define FALSE false
  ------------------
 4371|  30.9k|  if(result)
  ------------------
  |  Branch (4371:6): [True: 0, False: 30.9k]
  ------------------
 4372|      0|    return result;
 4373|       |
 4374|  30.9k|  return CURLE_OK;
 4375|  30.9k|}
http.c:http_on_response:
 4089|  5.29k|{
 4090|  5.29k|  struct connectdata *conn = data->conn;
 4091|  5.29k|  CURLcode result = CURLE_OK;
 4092|  5.29k|  struct SingleRequest *k = &data->req;
 4093|  5.29k|  bool conn_changed = FALSE;
  ------------------
  |  | 1058|  5.29k|#define FALSE false
  ------------------
 4094|       |
 4095|  5.29k|  (void)buf; /* not used without HTTP2 enabled */
 4096|  5.29k|  *pconsumed = 0;
 4097|       |
 4098|  5.29k|  if(k->upgr101 == UPGR101_RECEIVED) {
  ------------------
  |  Branch (4098:6): [True: 2, False: 5.29k]
  ------------------
 4099|       |    /* supposedly upgraded to http2 now */
 4100|      2|    if(data->req.httpversion != 20)
  ------------------
  |  Branch (4100:8): [True: 0, False: 2]
  ------------------
 4101|      0|      infof(data, "Lying server, not serving HTTP/2");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4102|      2|  }
 4103|       |
 4104|  5.29k|  if(k->httpcode < 200 && last_hd) {
  ------------------
  |  Branch (4104:6): [True: 1.50k, False: 3.79k]
  |  Branch (4104:27): [True: 1.50k, False: 0]
  ------------------
 4105|       |    /* Intermediate responses might trigger processing of more responses,
 4106|       |     * write the last header to the client before proceeding. */
 4107|  1.50k|    result = http_write_header(data, last_hd, last_hd_len);
 4108|  1.50k|    last_hd = NULL; /* handled it */
 4109|  1.50k|    if(result)
  ------------------
  |  Branch (4109:8): [True: 0, False: 1.50k]
  ------------------
 4110|      0|      goto out;
 4111|  1.50k|  }
 4112|       |
 4113|  5.29k|  if(k->httpcode < 100) {
  ------------------
  |  Branch (4113:6): [True: 4, False: 5.29k]
  ------------------
 4114|      4|    failf(data, "Unsupported response code in HTTP response");
  ------------------
  |  |   62|      4|#define failf Curl_failf
  ------------------
 4115|      4|    result = CURLE_UNSUPPORTED_PROTOCOL;
 4116|      4|    goto out;
 4117|      4|  }
 4118|  5.29k|  else if(k->httpcode < 200) {
  ------------------
  |  Branch (4118:11): [True: 1.49k, False: 3.79k]
  ------------------
 4119|  1.49k|    result = http_on_1xx_response(data, buf, blen, pconsumed, &conn_changed);
 4120|  1.49k|    goto out;
 4121|  1.49k|  }
 4122|       |
 4123|       |  /* k->httpcode >= 200, final response */
 4124|  3.79k|  k->header = FALSE;
  ------------------
  |  | 1058|  3.79k|#define FALSE false
  ------------------
 4125|  3.79k|  if(conn->bits.upgrade_in_progress) {
  ------------------
  |  Branch (4125:6): [True: 366, False: 3.42k]
  ------------------
 4126|       |    /* Asked for protocol upgrade, but it was not selected */
 4127|    366|    conn->bits.upgrade_in_progress = FALSE;
  ------------------
  |  | 1058|    366|#define FALSE false
  ------------------
 4128|    366|    conn_changed = TRUE;
  ------------------
  |  | 1055|    366|#define TRUE true
  ------------------
 4129|    366|  }
 4130|       |
 4131|  3.79k|  if((k->size == -1) && !k->chunk && !conn->bits.close &&
  ------------------
  |  Branch (4131:6): [True: 611, False: 3.18k]
  |  Branch (4131:25): [True: 419, False: 192]
  |  Branch (4131:38): [True: 399, False: 20]
  ------------------
 4132|    399|     (k->httpversion == 11) &&
  ------------------
  |  Branch (4132:6): [True: 379, False: 20]
  ------------------
 4133|    379|     !(conn->scheme->protocol & CURLPROTO_RTSP) &&
  ------------------
  |  | 1096|    379|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (4133:6): [True: 379, False: 0]
  ------------------
 4134|    379|     data->state.httpreq != HTTPREQ_HEAD) {
  ------------------
  |  Branch (4134:6): [True: 248, False: 131]
  ------------------
 4135|       |    /* On HTTP 1.1, when connection is not to get closed, but no
 4136|       |       Content-Length nor Transfer-Encoding chunked have been received,
 4137|       |       according to RFC2616 section 4.4 point 5, we assume that the server
 4138|       |       will close the connection to signal the end of the document. */
 4139|    248|    infof(data, "no chunk, no close, no size. Assume close to signal end");
  ------------------
  |  |  143|    248|  do {                               \
  |  |  144|    248|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    248|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 248, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 248]
  |  |  |  |  ------------------
  |  |  |  |  320|    248|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    248|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    248|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 248]
  |  |  ------------------
  ------------------
 4140|    248|    streamclose(conn, "HTTP: No end-of-message indicator");
  ------------------
  |  |  102|    248|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|    248|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 4141|    248|  }
 4142|       |
 4143|  3.79k|  http_check_auth_closure(data, conn);
 4144|       |
 4145|  3.79k|#ifndef CURL_DISABLE_WEBSOCKETS
 4146|       |  /* All >=200 HTTP status codes are errors when wanting ws */
 4147|  3.79k|  if(data->req.upgr101 == UPGR101_WS) {
  ------------------
  |  Branch (4147:6): [True: 0, False: 3.79k]
  ------------------
 4148|      0|    failf(data, "Refused WebSocket upgrade: %d", k->httpcode);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4149|      0|    result = CURLE_HTTP_RETURNED_ERROR;
 4150|      0|    goto out;
 4151|      0|  }
 4152|  3.79k|#endif
 4153|       |
 4154|       |  /* Check if this response means the transfer errored. */
 4155|  3.79k|  if(http_should_fail(data, data->req.httpcode)) {
  ------------------
  |  Branch (4155:6): [True: 4, False: 3.79k]
  ------------------
 4156|      4|    failf(data, "The requested URL returned error: %d",
  ------------------
  |  |   62|      4|#define failf Curl_failf
  ------------------
 4157|      4|          k->httpcode);
 4158|      4|    result = CURLE_HTTP_RETURNED_ERROR;
 4159|      4|    goto out;
 4160|      4|  }
 4161|       |
 4162|       |  /* Curl_http_auth_act() checks what authentication methods that are
 4163|       |   * available and decides which one (if any) to use. It will set 'newurl' if
 4164|       |   * an auth method was picked. */
 4165|  3.79k|  result = Curl_http_auth_act(data);
 4166|  3.79k|  if(result)
  ------------------
  |  Branch (4166:6): [True: 1, False: 3.79k]
  ------------------
 4167|      1|    goto out;
 4168|       |
 4169|  3.79k|  if(k->httpcode >= 300) {
  ------------------
  |  Branch (4169:6): [True: 3.53k, False: 253]
  ------------------
 4170|  3.53k|    result = http_handle_send_error(data);
 4171|  3.53k|    if(result)
  ------------------
  |  Branch (4171:8): [True: 0, False: 3.53k]
  ------------------
 4172|      0|      goto out;
 4173|  3.53k|  }
 4174|       |
 4175|       |  /* If we requested a "no body", this is a good time to get
 4176|       |   * out and return home.
 4177|       |   */
 4178|  3.79k|  if(data->req.no_body)
  ------------------
  |  Branch (4178:6): [True: 312, False: 3.47k]
  ------------------
 4179|    312|    k->download_done = TRUE;
  ------------------
  |  | 1055|    312|#define TRUE true
  ------------------
 4180|       |
 4181|       |  /* If max download size is *zero* (nothing) we already have nothing and can
 4182|       |     safely return ok now! For HTTP/2, we would like to call
 4183|       |     http2_handle_stream_close to properly close a stream. In order to do
 4184|       |     this, we keep reading until we close the stream. */
 4185|  3.79k|  if((k->maxdownload == 0) && (k->httpversion_sent < 20))
  ------------------
  |  Branch (4185:6): [True: 2.99k, False: 795]
  |  Branch (4185:31): [True: 2.96k, False: 34]
  ------------------
 4186|  2.96k|    k->download_done = TRUE;
  ------------------
  |  | 1055|  2.96k|#define TRUE true
  ------------------
 4187|       |
 4188|       |  /* final response without error, prepare to receive the body */
 4189|  3.79k|  result = http_firstwrite(data);
 4190|       |
 4191|  3.79k|  if(!result)
  ------------------
  |  Branch (4191:6): [True: 3.79k, False: 0]
  ------------------
 4192|       |    /* This is the last response that we get for the current request. Check on
 4193|       |     * the body size and determine if the response is complete. */
 4194|  3.79k|    result = http_size(data);
 4195|       |
 4196|  5.29k|out:
 4197|  5.29k|  if(last_hd)
  ------------------
  |  Branch (4197:6): [True: 3.79k, False: 1.50k]
  ------------------
 4198|       |    /* if not written yet, write it now */
 4199|  3.79k|    result = Curl_1st_fatal(result,
 4200|  3.79k|                            http_write_header(data, last_hd, last_hd_len));
 4201|  5.29k|  if(conn_changed)
  ------------------
  |  Branch (4201:6): [True: 1.76k, False: 3.53k]
  ------------------
 4202|       |    /* poke the multi handle to allow pending pipewait to retry */
 4203|  1.76k|    Curl_multi_connchanged(data->multi);
 4204|  5.29k|  return result;
 4205|  3.79k|}
http.c:http_on_1xx_response:
 3936|  1.49k|{
 3937|  1.49k|  struct SingleRequest *k = &data->req;
 3938|       |
 3939|       |  /* "A user agent MAY ignore unexpected 1xx status responses."
 3940|       |   * By default, we expect to get more responses after this one. */
 3941|  1.49k|  k->header = TRUE;
  ------------------
  |  | 1055|  1.49k|#define TRUE true
  ------------------
 3942|  1.49k|  k->headerline = 0; /* restart the header line counter */
 3943|       |
 3944|  1.49k|  switch(k->httpcode) {
 3945|     38|  case 100:
  ------------------
  |  Branch (3945:3): [True: 38, False: 1.46k]
  ------------------
 3946|       |    /* We have made an HTTP PUT or POST and this is 1.1-lingo that tells us
 3947|       |     * that the server is OK with this and ready to receive the data. */
 3948|     38|    http_exp100_got100(data);
 3949|     38|    break;
 3950|  1.40k|  case 101:
  ------------------
  |  Branch (3950:3): [True: 1.40k, False: 99]
  ------------------
 3951|  1.40k|    return http_on_101_upgrade(data, buf, blen, pconsumed, conn_changed);
 3952|     61|  default:
  ------------------
  |  Branch (3952:3): [True: 61, False: 1.43k]
  ------------------
 3953|       |    /* The server may send us other 1xx responses, like informative 103. This
 3954|       |     * has no influence on request processing and we expect to receive a
 3955|       |     * final response eventually. */
 3956|     61|    break;
 3957|  1.49k|  }
 3958|     99|  return CURLE_OK;
 3959|  1.49k|}
http.c:http_exp100_got100:
 1554|     38|{
 1555|     38|  struct Curl_creader *r = Curl_creader_get_by_type(data, &cr_exp100);
 1556|     38|  if(r)
  ------------------
  |  Branch (1556:6): [True: 19, False: 19]
  ------------------
 1557|     19|    http_exp100_continue(data, r);
 1558|     38|}
http.c:http_on_101_upgrade:
 3873|  1.40k|{
 3874|  1.40k|  struct connectdata *conn = data->conn;
 3875|  1.40k|  struct SingleRequest *k = &data->req;
 3876|       |
 3877|       |#if !defined(USE_NGHTTP2) && defined(CURL_DISABLE_WEBSOCKETS)
 3878|       |  (void)buf;
 3879|       |  (void)blen;
 3880|       |  (void)pconsumed;
 3881|       |#else
 3882|  1.40k|  CURLcode result;
 3883|  1.40k|  int upgr101_requested = k->upgr101;
 3884|  1.40k|#endif
 3885|       |
 3886|  1.40k|  if(k->httpversion_sent != 11) {
  ------------------
  |  Branch (3886:6): [True: 1, False: 1.39k]
  ------------------
 3887|       |    /* invalid for other HTTP versions */
 3888|      1|    failf(data, "server sent 101 response while not talking HTTP/1.1");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 3889|      1|    return CURLE_WEIRD_SERVER_REPLY;
 3890|      1|  }
 3891|       |
 3892|       |  /* Whatever the success, upgrade was selected. */
 3893|  1.39k|  k->upgr101 = UPGR101_RECEIVED;
 3894|  1.39k|  conn->bits.upgrade_in_progress = FALSE;
  ------------------
  |  | 1058|  1.39k|#define FALSE false
  ------------------
 3895|  1.39k|  *conn_changed = TRUE;
  ------------------
  |  | 1055|  1.39k|#define TRUE true
  ------------------
 3896|       |
 3897|       |  /* To be fully compliant, we would check the "Upgrade:" response header to
 3898|       |   * mention the protocol we requested. */
 3899|  1.39k|#ifdef USE_NGHTTP2
 3900|  1.39k|  if(upgr101_requested == UPGR101_H2) {
  ------------------
  |  Branch (3900:6): [True: 43, False: 1.35k]
  ------------------
 3901|       |    /* Switch to HTTP/2, where we will get more responses. blen bytes in buf
 3902|       |     * are already h2 protocol bytes */
 3903|     43|    infof(data, "Received 101, Switching to HTTP/2");
  ------------------
  |  |  143|     43|  do {                               \
  |  |  144|     43|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     43|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 43, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 43]
  |  |  |  |  ------------------
  |  |  |  |  320|     43|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     43|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     43|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 43]
  |  |  ------------------
  ------------------
 3904|     43|    result = Curl_http2_upgrade(data, conn, FIRSTSOCKET, buf, blen);
  ------------------
  |  |  303|     43|#define FIRSTSOCKET     0
  ------------------
 3905|     43|    if(!result)
  ------------------
  |  Branch (3905:8): [True: 43, False: 0]
  ------------------
 3906|     43|      *pconsumed += blen;
 3907|     43|    return result;
 3908|     43|  }
 3909|  1.35k|#endif
 3910|  1.35k|#ifndef CURL_DISABLE_WEBSOCKETS
 3911|  1.35k|  if(upgr101_requested == UPGR101_WS) {
  ------------------
  |  Branch (3911:6): [True: 1.34k, False: 7]
  ------------------
 3912|       |    /* Switch to WebSocket, where we now stream ws frames. blen bytes in buf
 3913|       |     * are already ws protocol bytes */
 3914|  1.34k|    infof(data, "Received 101, Switching to WebSocket");
  ------------------
  |  |  143|  1.34k|  do {                               \
  |  |  144|  1.34k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  1.34k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 1.34k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.34k]
  |  |  |  |  ------------------
  |  |  |  |  320|  1.34k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  1.34k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  1.34k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1.34k]
  |  |  ------------------
  ------------------
 3915|  1.34k|    result = Curl_ws_accept(data, buf, blen);
 3916|  1.34k|    if(!result)
  ------------------
  |  Branch (3916:8): [True: 1.23k, False: 114]
  ------------------
 3917|  1.23k|      *pconsumed += blen; /* ws accept handled the data */
 3918|  1.34k|    return result;
 3919|  1.34k|  }
 3920|      7|#endif
 3921|       |  /* We silently accept this as the final response. What are we switching to
 3922|       |   * if we did not ask for an Upgrade? Maybe the application provided an
 3923|       |   * `Upgrade: xxx` header? */
 3924|      7|  k->header = FALSE;
  ------------------
  |  | 1058|      7|#define FALSE false
  ------------------
 3925|      7|  return CURLE_OK;
 3926|  1.35k|}
http.c:http_handle_send_error:
 4010|  3.53k|{
 4011|  3.53k|  struct connectdata *conn = data->conn;
 4012|  3.53k|  struct SingleRequest *k = &data->req;
 4013|  3.53k|  CURLcode result = CURLE_OK;
 4014|       |
 4015|  3.53k|  if(!data->req.authneg && !conn->bits.close &&
  ------------------
  |  Branch (4015:6): [True: 3.53k, False: 0]
  |  Branch (4015:28): [True: 3.20k, False: 334]
  ------------------
 4016|  3.20k|     !Curl_creader_will_rewind(data)) {
  ------------------
  |  Branch (4016:6): [True: 3.08k, False: 116]
  ------------------
 4017|       |    /*
 4018|       |     * General treatment of errors when about to send data.
 4019|       |     * Including: "417 Expectation Failed", while waiting for
 4020|       |     * 100-continue.
 4021|       |     *
 4022|       |     * The check for close above is done because if something
 4023|       |     * else has already deemed the connection to get closed then
 4024|       |     * something else should have considered the big picture and
 4025|       |     * we avoid this check.
 4026|       |     */
 4027|       |
 4028|  3.08k|    switch(data->state.httpreq) {
 4029|     83|    case HTTPREQ_PUT:
  ------------------
  |  Branch (4029:5): [True: 83, False: 3.00k]
  ------------------
 4030|    422|    case HTTPREQ_POST:
  ------------------
  |  Branch (4030:5): [True: 339, False: 2.74k]
  ------------------
 4031|    422|    case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (4031:5): [True: 0, False: 3.08k]
  ------------------
 4032|    422|    case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (4032:5): [True: 0, False: 3.08k]
  ------------------
 4033|       |      /* We got an error response. If this happened before the
 4034|       |       * whole request body has been sent we stop sending and
 4035|       |       * mark the connection for closure after we have read the
 4036|       |       * entire response. */
 4037|    422|      if(!Curl_req_done_sending(data)) {
  ------------------
  |  Branch (4037:10): [True: 17, False: 405]
  ------------------
 4038|     17|        if((k->httpcode == 417) && http_exp100_is_selected(data)) {
  ------------------
  |  Branch (4038:12): [True: 0, False: 17]
  |  Branch (4038:36): [True: 0, False: 0]
  ------------------
 4039|       |          /* 417 Expectation Failed - try again without the
 4040|       |             Expect header */
 4041|      0|          if(!k->writebytecount && http_exp100_is_waiting(data)) {
  ------------------
  |  Branch (4041:14): [True: 0, False: 0]
  |  Branch (4041:36): [True: 0, False: 0]
  ------------------
 4042|      0|            infof(data, "Got HTTP failure 417 while waiting for a 100");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4043|      0|          }
 4044|      0|          else {
 4045|      0|            infof(data, "Got HTTP failure 417 while sending data");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4046|      0|            streamclose(conn, "Stop sending data before everything sent");
  ------------------
  |  |  102|      0|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|      0|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 4047|      0|            result = http_perhapsrewind(data, conn);
 4048|      0|            if(result)
  ------------------
  |  Branch (4048:16): [True: 0, False: 0]
  ------------------
 4049|      0|              return result;
 4050|      0|          }
 4051|      0|          data->state.disableexpect = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 4052|      0|          Curl_req_abort_sending(data);
 4053|      0|          DEBUGASSERT(!data->req.newurl);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4053:11): [True: 0, False: 0]
  |  Branch (4053:11): [True: 0, False: 0]
  ------------------
 4054|      0|          data->req.newurl = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|      0|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
 4055|      0|          if(!data->req.newurl)
  ------------------
  |  Branch (4055:14): [True: 0, False: 0]
  ------------------
 4056|      0|            return CURLE_OUT_OF_MEMORY;
 4057|      0|        }
 4058|     17|        else if(data->set.http_keep_sending_on_error) {
  ------------------
  |  Branch (4058:17): [True: 0, False: 17]
  ------------------
 4059|      0|          infof(data, "HTTP error before end of send, keep sending");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4060|      0|          http_exp100_send_anyway(data);
 4061|      0|        }
 4062|     17|        else {
 4063|     17|          infof(data, "HTTP error before end of send, stop sending");
  ------------------
  |  |  143|     17|  do {                               \
  |  |  144|     17|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     17|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 17, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 17]
  |  |  |  |  ------------------
  |  |  |  |  320|     17|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     17|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     17|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 17]
  |  |  ------------------
  ------------------
 4064|     17|          streamclose(conn, "Stop sending data before everything sent");
  ------------------
  |  |  102|     17|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|     17|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 4065|     17|          result = Curl_req_abort_sending(data);
 4066|     17|          if(result)
  ------------------
  |  Branch (4066:14): [True: 0, False: 17]
  ------------------
 4067|      0|            return result;
 4068|     17|        }
 4069|     17|      }
 4070|    422|      break;
 4071|       |
 4072|  2.66k|    default: /* default label present to avoid compiler warnings */
  ------------------
  |  Branch (4072:5): [True: 2.66k, False: 422]
  ------------------
 4073|  2.66k|      break;
 4074|  3.08k|    }
 4075|  3.08k|  }
 4076|       |
 4077|  3.53k|  if(Curl_creader_will_rewind(data) && !Curl_req_done_sending(data)) {
  ------------------
  |  Branch (4077:6): [True: 129, False: 3.40k]
  |  Branch (4077:40): [True: 19, False: 110]
  ------------------
 4078|       |    /* We rewind before next send, continue sending now */
 4079|     19|    infof(data, "Keep sending data to get tossed away");
  ------------------
  |  |  143|     19|  do {                               \
  |  |  144|     19|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     19|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 19, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 19]
  |  |  |  |  ------------------
  |  |  |  |  320|     19|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     19|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     19|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 19]
  |  |  ------------------
  ------------------
 4080|     19|    CURL_REQ_SET_SEND(data);
  ------------------
  |  |   44|     19|#define CURL_REQ_SET_SEND(d)   ((d)->req.io_flags |= REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|     19|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
 4081|     19|  }
 4082|  3.53k|  return result;
 4083|  3.53k|}
http.c:http_firstwrite:
 2660|  3.79k|{
 2661|  3.79k|  struct connectdata *conn = data->conn;
 2662|  3.79k|  struct SingleRequest *k = &data->req;
 2663|       |
 2664|  3.79k|  if(data->req.newurl) {
  ------------------
  |  Branch (2664:6): [True: 3.15k, False: 631]
  ------------------
 2665|  3.15k|    if(conn->bits.close) {
  ------------------
  |  Branch (2665:8): [True: 138, False: 3.02k]
  ------------------
 2666|       |      /* Abort after the headers if "follow Location" is set
 2667|       |         and we are set to close anyway. */
 2668|    138|      CURL_REQ_CLEAR_RECV(data);
  ------------------
  |  |   49|    138|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|    138|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
 2669|    138|      k->done = TRUE;
  ------------------
  |  | 1055|    138|#define TRUE true
  ------------------
 2670|    138|      return CURLE_OK;
 2671|    138|    }
 2672|       |    /* We have a new URL to load, but since we want to be able to reuse this
 2673|       |       connection properly, we read the full response in "ignore more" */
 2674|  3.02k|    k->ignorebody = TRUE;
  ------------------
  |  | 1055|  3.02k|#define TRUE true
  ------------------
 2675|  3.02k|    infof(data, "Ignoring the response-body");
  ------------------
  |  |  143|  3.02k|  do {                               \
  |  |  144|  3.02k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  3.02k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 3.02k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 3.02k]
  |  |  |  |  ------------------
  |  |  |  |  320|  3.02k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  3.02k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  3.02k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 3.02k]
  |  |  ------------------
  ------------------
 2676|  3.02k|  }
 2677|  3.65k|  if(data->state.resume_from && !k->content_range &&
  ------------------
  |  Branch (2677:6): [True: 0, False: 3.65k]
  |  Branch (2677:33): [True: 0, False: 0]
  ------------------
 2678|      0|     (data->state.httpreq == HTTPREQ_GET) &&
  ------------------
  |  Branch (2678:6): [True: 0, False: 0]
  ------------------
 2679|      0|     !k->ignorebody) {
  ------------------
  |  Branch (2679:6): [True: 0, False: 0]
  ------------------
 2680|       |
 2681|      0|    if(k->size == data->state.resume_from) {
  ------------------
  |  Branch (2681:8): [True: 0, False: 0]
  ------------------
 2682|       |      /* The resume point is at the end of file, consider this fine even if it
 2683|       |         does not allow resume from here. */
 2684|      0|      infof(data, "The entire document is already downloaded");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2685|      0|      streamclose(conn, "already downloaded");
  ------------------
  |  |  102|      0|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|      0|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 2686|       |      /* Abort download */
 2687|      0|      CURL_REQ_CLEAR_RECV(data);
  ------------------
  |  |   49|      0|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|      0|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
 2688|      0|      k->done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2689|      0|      return CURLE_OK;
 2690|      0|    }
 2691|       |
 2692|       |    /* we wanted to resume a download, although the server does not seem to
 2693|       |     * support this and we did this with a GET (if it was not a GET we did a
 2694|       |     * POST or PUT resume) */
 2695|      0|    failf(data, "HTTP server does not seem to support "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2696|      0|          "byte ranges. Cannot resume.");
 2697|      0|    return CURLE_RANGE_ERROR;
 2698|      0|  }
 2699|       |
 2700|  3.65k|  if(data->set.timecondition && !data->state.range) {
  ------------------
  |  Branch (2700:6): [True: 0, False: 3.65k]
  |  Branch (2700:33): [True: 0, False: 0]
  ------------------
 2701|       |    /* A time condition has been set AND no ranges have been requested. This
 2702|       |       seems to be what chapter 13.3.4 of RFC 2616 defines to be the correct
 2703|       |       action for an HTTP/1.1 client */
 2704|       |
 2705|      0|    if(!Curl_meets_timecondition(data, k->timeofdoc)) {
  ------------------
  |  Branch (2705:8): [True: 0, False: 0]
  ------------------
 2706|      0|      k->done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2707|       |      /* We are simulating an HTTP 304 from server so we return
 2708|       |         what should have been returned from the server */
 2709|      0|      data->info.httpcode = 304;
 2710|      0|      infof(data, "Simulate an HTTP 304 response");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2711|       |      /* we abort the transfer before it is completed == we ruin the
 2712|       |         reuse ability. Close the connection */
 2713|      0|      streamclose(conn, "Simulated 304 handling");
  ------------------
  |  |  102|      0|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|      0|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 2714|      0|      return CURLE_OK;
 2715|      0|    }
 2716|      0|  } /* we have a time condition */
 2717|       |
 2718|  3.65k|  return CURLE_OK;
 2719|  3.65k|}
http.c:http_size:
 3791|  3.79k|{
 3792|  3.79k|  struct SingleRequest *k = &data->req;
 3793|  3.79k|  if(data->req.ignore_cl || k->chunk) {
  ------------------
  |  Branch (3793:6): [True: 0, False: 3.79k]
  |  Branch (3793:29): [True: 192, False: 3.59k]
  ------------------
 3794|    192|    k->size = k->maxdownload = -1;
 3795|    192|  }
 3796|  3.59k|  else if(k->size != -1) {
  ------------------
  |  Branch (3796:11): [True: 3.18k, False: 416]
  ------------------
 3797|  3.18k|    if(data->set.max_filesize &&
  ------------------
  |  Branch (3797:8): [True: 0, False: 3.18k]
  ------------------
 3798|      0|       !k->ignorebody &&
  ------------------
  |  Branch (3798:8): [True: 0, False: 0]
  ------------------
 3799|      0|       (k->size > data->set.max_filesize)) {
  ------------------
  |  Branch (3799:8): [True: 0, False: 0]
  ------------------
 3800|      0|      failf(data, "Maximum file size exceeded");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3801|      0|      return CURLE_FILESIZE_EXCEEDED;
 3802|      0|    }
 3803|  3.18k|    if(k->ignorebody)
  ------------------
  |  Branch (3803:8): [True: 2.89k, False: 287]
  ------------------
 3804|  2.89k|      infof(data, "setting size while ignoring");
  ------------------
  |  |  143|  2.89k|  do {                               \
  |  |  144|  2.89k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  2.89k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 2.89k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.89k]
  |  |  |  |  ------------------
  |  |  |  |  320|  2.89k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  2.89k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  2.89k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 2.89k]
  |  |  ------------------
  ------------------
 3805|  3.18k|    Curl_pgrsSetDownloadSize(data, k->size);
 3806|  3.18k|    k->maxdownload = k->size;
 3807|  3.18k|  }
 3808|  3.79k|  return CURLE_OK;
 3809|  3.79k|}
http.c:checkhttpprefix:
 3123|  6.38k|{
 3124|  6.38k|  struct curl_slist *head = data->set.http200aliases;
 3125|  6.38k|  statusline rc = STATUS_BAD;
 3126|  6.38k|  statusline onmatch = len >= 5 ? STATUS_DONE : STATUS_UNKNOWN;
  ------------------
  |  Branch (3126:24): [True: 6.12k, False: 254]
  ------------------
 3127|       |
 3128|  6.38k|  while(head) {
  ------------------
  |  Branch (3128:9): [True: 0, False: 6.38k]
  ------------------
 3129|      0|    if(checkprefixmax(head->data, s, len)) {
  ------------------
  |  Branch (3129:8): [True: 0, False: 0]
  ------------------
 3130|      0|      rc = onmatch;
 3131|      0|      break;
 3132|      0|    }
 3133|      0|    head = head->next;
 3134|      0|  }
 3135|       |
 3136|  6.38k|  if((rc != STATUS_DONE) && (checkprefixmax("HTTP/", s, len)))
  ------------------
  |  Branch (3136:6): [True: 6.38k, False: 0]
  |  Branch (3136:29): [True: 5.89k, False: 483]
  ------------------
 3137|  5.89k|    rc = onmatch;
 3138|       |
 3139|  6.38k|  return rc;
 3140|  6.38k|}
http.c:checkprefixmax:
 3111|  6.38k|{
 3112|  6.38k|  size_t ch = CURLMIN(strlen(prefix), len);
  ------------------
  |  | 1287|  6.38k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 6.10k, False: 271]
  |  |  ------------------
  ------------------
 3113|  6.38k|  return curl_strnequal(prefix, buffer, ch);
 3114|  6.38k|}
http.c:http_statusline:
 3701|  6.22k|{
 3702|  6.22k|  struct SingleRequest *k = &data->req;
 3703|       |
 3704|  6.22k|  switch(k->httpversion) {
 3705|    105|  case 10:
  ------------------
  |  Branch (3705:3): [True: 105, False: 6.11k]
  ------------------
 3706|  5.73k|  case 11:
  ------------------
  |  Branch (3706:3): [True: 5.62k, False: 594]
  ------------------
 3707|  5.73k|#ifdef USE_HTTP2
 3708|  6.22k|  case 20:
  ------------------
  |  Branch (3708:3): [True: 488, False: 5.73k]
  ------------------
 3709|  6.22k|#endif
 3710|       |#ifdef USE_HTTP3
 3711|       |  case 30:
 3712|       |#endif
 3713|       |    /* no major version switch mid-connection */
 3714|  6.22k|    if(k->httpversion_sent &&
  ------------------
  |  Branch (3714:8): [True: 6.22k, False: 0]
  ------------------
 3715|  6.22k|       (k->httpversion / 10 != k->httpversion_sent / 10)) {
  ------------------
  |  Branch (3715:8): [True: 1, False: 6.22k]
  ------------------
 3716|      1|      failf(data, "Version mismatch (from HTTP/%d to HTTP/%d)",
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 3717|      1|            k->httpversion_sent / 10, k->httpversion / 10);
 3718|      1|      return CURLE_WEIRD_SERVER_REPLY;
 3719|      1|    }
 3720|  6.22k|    break;
 3721|  6.22k|  default:
  ------------------
  |  Branch (3721:3): [True: 1, False: 6.22k]
  ------------------
 3722|      1|    failf(data, "Unsupported HTTP version (%d.%d) in response",
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 3723|      1|          k->httpversion / 10, k->httpversion % 10);
 3724|      1|    return CURLE_UNSUPPORTED_PROTOCOL;
 3725|  6.22k|  }
 3726|       |
 3727|  6.22k|  data->info.httpcode = k->httpcode;
 3728|  6.22k|  data->info.httpversion = k->httpversion;
 3729|  6.22k|  conn->httpversion_seen = k->httpversion;
 3730|       |
 3731|  6.22k|  if(!data->state.http_neg.rcvd_min ||
  ------------------
  |  Branch (3731:6): [True: 3.69k, False: 2.53k]
  ------------------
 3732|  2.53k|     data->state.http_neg.rcvd_min > k->httpversion)
  ------------------
  |  Branch (3732:6): [True: 6, False: 2.52k]
  ------------------
 3733|       |    /* store the lowest server version we encounter */
 3734|  3.69k|    data->state.http_neg.rcvd_min = k->httpversion;
 3735|       |
 3736|       |  /*
 3737|       |   * This code executes as part of processing the header. As a
 3738|       |   * result, it is not totally clear how to interpret the
 3739|       |   * response code yet as that depends on what other headers may
 3740|       |   * be present. 401 and 407 may be errors, but may be OK
 3741|       |   * depending on how authentication is working. Other codes
 3742|       |   * are definitely errors, so give up here.
 3743|       |   */
 3744|  6.22k|  if(data->state.resume_from && data->state.httpreq == HTTPREQ_GET &&
  ------------------
  |  Branch (3744:6): [True: 0, False: 6.22k]
  |  Branch (3744:33): [True: 0, False: 0]
  ------------------
 3745|      0|     k->httpcode == 416) {
  ------------------
  |  Branch (3745:6): [True: 0, False: 0]
  ------------------
 3746|       |    /* "Requested Range Not Satisfiable", proceed and pretend this is no
 3747|       |       error */
 3748|      0|    k->ignorebody = TRUE; /* Avoid appending error msg to good data. */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3749|      0|  }
 3750|       |
 3751|  6.22k|  if(k->httpversion == 10) {
  ------------------
  |  Branch (3751:6): [True: 105, False: 6.11k]
  ------------------
 3752|       |    /* Default action for HTTP/1.0 must be to close, unless
 3753|       |       we get one of those fancy headers that tell us the
 3754|       |       server keeps it open for us! */
 3755|    105|    infof(data, "HTTP 1.0, assume close after body");
  ------------------
  |  |  143|    105|  do {                               \
  |  |  144|    105|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    105|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 105, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 105]
  |  |  |  |  ------------------
  |  |  |  |  320|    105|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    105|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    105|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 105]
  |  |  ------------------
  ------------------
 3756|    105|    connclose(conn, "HTTP/1.0 close after body");
  ------------------
  |  |  103|    105|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|    105|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
 3757|    105|  }
 3758|       |
 3759|  6.22k|  k->http_bodyless = k->httpcode >= 100 && k->httpcode < 200;
  ------------------
  |  Branch (3759:22): [True: 6.21k, False: 8]
  |  Branch (3759:44): [True: 1.52k, False: 4.68k]
  ------------------
 3760|  6.22k|  switch(k->httpcode) {
 3761|    914|  case 304:
  ------------------
  |  Branch (3761:3): [True: 914, False: 5.30k]
  ------------------
 3762|       |    /* (quote from RFC2616, section 10.3.5): The 304 response
 3763|       |     * MUST NOT contain a message-body, and thus is always
 3764|       |     * terminated by the first empty line after the header
 3765|       |     * fields. */
 3766|    914|    if(data->set.timecondition)
  ------------------
  |  Branch (3766:8): [True: 0, False: 914]
  ------------------
 3767|      0|      data->info.timecond = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3768|    914|    FALLTHROUGH();
  ------------------
  |  |  821|    914|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
 3769|    936|  case 204:
  ------------------
  |  Branch (3769:3): [True: 22, False: 6.19k]
  ------------------
 3770|       |    /* (quote from RFC2616, section 10.2.5): The server has
 3771|       |     * fulfilled the request but does not need to return an
 3772|       |     * entity-body ... The 204 response MUST NOT include a
 3773|       |     * message-body, and thus is always terminated by the first
 3774|       |     * empty line after the header fields. */
 3775|    936|    k->size = 0;
 3776|    936|    k->maxdownload = 0;
 3777|    936|    k->http_bodyless = TRUE;
  ------------------
  |  | 1055|    936|#define TRUE true
  ------------------
 3778|    936|    break;
 3779|  5.28k|  default:
  ------------------
  |  Branch (3779:3): [True: 5.28k, False: 936]
  ------------------
 3780|  5.28k|    break;
 3781|  6.22k|  }
 3782|  6.22k|  return CURLE_OK;
 3783|  6.22k|}
http.c:verify_header:
 3813|  31.0k|{
 3814|  31.0k|  struct SingleRequest *k = &data->req;
 3815|  31.0k|  const char *ptr = memchr(hd, 0x00, hdlen);
 3816|  31.0k|  if(ptr) {
  ------------------
  |  Branch (3816:6): [True: 15, False: 31.0k]
  ------------------
 3817|       |    /* this is bad, bail out */
 3818|     15|    failf(data, "Nul byte in header");
  ------------------
  |  |   62|     15|#define failf Curl_failf
  ------------------
 3819|     15|    return CURLE_WEIRD_SERVER_REPLY;
 3820|     15|  }
 3821|  31.0k|  if(k->headerline < 2)
  ------------------
  |  Branch (3821:6): [True: 6.22k, False: 24.8k]
  ------------------
 3822|       |    /* the first "header" is the status-line and it has no colon */
 3823|  6.22k|    return CURLE_OK;
 3824|  24.8k|  if(((hd[0] == ' ') || (hd[0] == '\t')) && k->headerline > 2)
  ------------------
  |  Branch (3824:7): [True: 8, False: 24.8k]
  |  Branch (3824:25): [True: 2, False: 24.8k]
  |  Branch (3824:45): [True: 0, False: 10]
  ------------------
 3825|       |    /* line folding, cannot happen on line 2 */
 3826|      0|    ;
 3827|  24.8k|  else {
 3828|  24.8k|    ptr = memchr(hd, ':', hdlen);
 3829|  24.8k|    if(!ptr) {
  ------------------
  |  Branch (3829:8): [True: 39, False: 24.7k]
  ------------------
 3830|       |      /* this is bad, bail out */
 3831|     39|      failf(data, "Header without colon");
  ------------------
  |  |   62|     39|#define failf Curl_failf
  ------------------
 3832|     39|      return CURLE_WEIRD_SERVER_REPLY;
 3833|     39|    }
 3834|  24.8k|  }
 3835|  24.7k|  return CURLE_OK;
 3836|  24.8k|}
http.c:http_header:
 3649|  31.0k|{
 3650|  31.0k|  CURLcode result = CURLE_OK;
 3651|       |
 3652|  31.0k|  switch(hd[0]) {
  ------------------
  |  Branch (3652:10): [True: 20.6k, False: 10.3k]
  ------------------
 3653|  1.08k|  case 'a':
  ------------------
  |  Branch (3653:3): [True: 1.08k, False: 29.9k]
  ------------------
 3654|  1.11k|  case 'A':
  ------------------
  |  Branch (3654:3): [True: 30, False: 30.9k]
  ------------------
 3655|  1.11k|    result = http_header_a(data, hd, hdlen);
 3656|  1.11k|    break;
 3657|  2.02k|  case 'c':
  ------------------
  |  Branch (3657:3): [True: 2.02k, False: 28.9k]
  ------------------
 3658|  6.62k|  case 'C':
  ------------------
  |  Branch (3658:3): [True: 4.59k, False: 26.4k]
  ------------------
 3659|  6.62k|    result = http_header_c(data, hd, hdlen);
 3660|  6.62k|    break;
 3661|  1.10k|  case 'l':
  ------------------
  |  Branch (3661:3): [True: 1.10k, False: 29.9k]
  ------------------
 3662|  5.57k|  case 'L':
  ------------------
  |  Branch (3662:3): [True: 4.47k, False: 26.5k]
  ------------------
 3663|  5.57k|    result = http_header_l(data, hd, hdlen);
 3664|  5.57k|    break;
 3665|    122|  case 'p':
  ------------------
  |  Branch (3665:3): [True: 122, False: 30.8k]
  ------------------
 3666|    168|  case 'P':
  ------------------
  |  Branch (3666:3): [True: 46, False: 30.9k]
  ------------------
 3667|    168|    result = http_header_p(data, hd, hdlen);
 3668|    168|    break;
 3669|  3.47k|  case 'r':
  ------------------
  |  Branch (3669:3): [True: 3.47k, False: 27.5k]
  ------------------
 3670|  3.56k|  case 'R':
  ------------------
  |  Branch (3670:3): [True: 90, False: 30.9k]
  ------------------
 3671|  3.56k|    result = http_header_r(data, hd, hdlen);
 3672|  3.56k|    break;
 3673|  1.18k|  case 's':
  ------------------
  |  Branch (3673:3): [True: 1.18k, False: 29.8k]
  ------------------
 3674|  2.54k|  case 'S':
  ------------------
  |  Branch (3674:3): [True: 1.35k, False: 29.6k]
  ------------------
 3675|  2.54k|    result = http_header_s(data, hd, hdlen);
 3676|  2.54k|    break;
 3677|    255|  case 't':
  ------------------
  |  Branch (3677:3): [True: 255, False: 30.7k]
  ------------------
 3678|    589|  case 'T':
  ------------------
  |  Branch (3678:3): [True: 334, False: 30.6k]
  ------------------
 3679|    589|    result = http_header_t(data, hd, hdlen);
 3680|    589|    break;
 3681|    336|  case 'w':
  ------------------
  |  Branch (3681:3): [True: 336, False: 30.6k]
  ------------------
 3682|    481|  case 'W':
  ------------------
  |  Branch (3682:3): [True: 145, False: 30.8k]
  ------------------
 3683|    481|    result = http_header_w(data, hd, hdlen);
 3684|    481|    break;
 3685|  31.0k|  }
 3686|       |
 3687|  31.0k|  if(!result) {
  ------------------
  |  Branch (3687:6): [True: 30.9k, False: 109]
  ------------------
 3688|  30.9k|    struct connectdata *conn = data->conn;
 3689|  30.9k|    if(conn->scheme->protocol & CURLPROTO_RTSP)
  ------------------
  |  | 1096|  30.9k|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (3689:8): [True: 0, False: 30.9k]
  ------------------
 3690|      0|      result = Curl_rtsp_parseheader(data, hd);
 3691|  30.9k|  }
 3692|  31.0k|  return result;
 3693|  31.0k|}
http.c:http_header_a:
 3190|  1.11k|{
 3191|  1.11k|#ifndef CURL_DISABLE_ALTSVC
 3192|  1.11k|  const char *v;
 3193|  1.11k|  struct connectdata *conn = data->conn;
 3194|  1.11k|  v = (data->asi &&
  ------------------
  |  Branch (3194:8): [True: 1.11k, False: 0]
  ------------------
 3195|  1.11k|       (Curl_xfer_is_secure(data) ||
  ------------------
  |  Branch (3195:9): [True: 0, False: 1.11k]
  ------------------
 3196|  1.11k|#ifdef DEBUGBUILD
 3197|       |        /* allow debug builds to circumvent the HTTPS restriction */
 3198|  1.11k|        getenv("CURL_ALTSVC_HTTP")
  ------------------
  |  Branch (3198:9): [True: 0, False: 1.11k]
  ------------------
 3199|       |#else
 3200|       |        0
 3201|       |#endif
 3202|  1.11k|         )) ? HD_VAL(hd, hdlen, "Alt-Svc:") : NULL;
  ------------------
  |  | 3175|      0|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 0, False: 0]
  |  |  |  Branch (3175:37): [True: 0, False: 0]
  |  |  ------------------
  |  | 3176|      0|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3203|  1.11k|  if(v) {
  ------------------
  |  Branch (3203:6): [True: 0, False: 1.11k]
  ------------------
 3204|       |    /* the ALPN of the current request */
 3205|      0|    struct SingleRequest *k = &data->req;
 3206|      0|    enum alpnid id = (k->httpversion == 30) ? ALPN_h3 :
  ------------------
  |  Branch (3206:22): [True: 0, False: 0]
  ------------------
 3207|      0|      (k->httpversion == 20) ? ALPN_h2 : ALPN_h1;
  ------------------
  |  Branch (3207:7): [True: 0, False: 0]
  ------------------
 3208|      0|    return Curl_altsvc_parse(data, data->asi, v, id, conn->origin->hostname,
 3209|      0|                             curlx_uitous((unsigned int)conn->origin->port));
 3210|      0|  }
 3211|       |#else
 3212|       |  (void)data;
 3213|       |  (void)hd;
 3214|       |  (void)hdlen;
 3215|       |#endif
 3216|  1.11k|  return CURLE_OK;
 3217|  1.11k|}
http.c:http_header_c:
 3224|  6.62k|{
 3225|  6.62k|  struct connectdata *conn = data->conn;
 3226|  6.62k|  struct SingleRequest *k = &data->req;
 3227|  6.62k|  const char *v;
 3228|       |
 3229|       |  /* Check for Content-Length: header lines to get size. Browsers insist we
 3230|       |     should accept multiple Content-Length headers and that a comma separated
 3231|       |     list also is fine and then we should accept them all as long as they are
 3232|       |     the same value. Different values trigger error.
 3233|       |   */
 3234|  6.62k|  v = (!k->http_bodyless && !data->set.ignorecl) ?
  ------------------
  |  Branch (3234:8): [True: 5.03k, False: 1.59k]
  |  Branch (3234:29): [True: 5.03k, False: 0]
  ------------------
 3235|  6.62k|    HD_VAL(hd, hdlen, "Content-Length:") : NULL;
  ------------------
  |  | 3175|  5.03k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 4.75k, False: 279]
  |  |  |  Branch (3175:37): [True: 4.75k, False: 0]
  |  |  ------------------
  |  | 3176|  5.03k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 2.33k, False: 2.42k]
  |  |  ------------------
  ------------------
 3236|  6.62k|  if(v) {
  ------------------
  |  Branch (3236:6): [True: 2.33k, False: 4.29k]
  ------------------
 3237|  2.41k|    do {
 3238|  2.41k|      curl_off_t contentlength;
 3239|  2.41k|      int offt = curlx_str_numblanks(&v, &contentlength);
 3240|       |
 3241|  2.41k|      if(offt == STRE_OVERFLOW) {
  ------------------
  |  |   35|  2.41k|#define STRE_OVERFLOW 7
  ------------------
  |  Branch (3241:10): [True: 53, False: 2.35k]
  ------------------
 3242|       |        /* out of range */
 3243|     53|        if(data->set.max_filesize) {
  ------------------
  |  Branch (3243:12): [True: 0, False: 53]
  ------------------
 3244|      0|          failf(data, "Maximum file size exceeded");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3245|      0|          return CURLE_FILESIZE_EXCEEDED;
 3246|      0|        }
 3247|     53|        streamclose(conn, "overflow content-length");
  ------------------
  |  |  102|     53|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|     53|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 3248|     53|        infof(data, "Overflow Content-Length: value");
  ------------------
  |  |  143|     53|  do {                               \
  |  |  144|     53|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     53|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 53, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 53]
  |  |  |  |  ------------------
  |  |  |  |  320|     53|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     53|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     53|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 53]
  |  |  ------------------
  ------------------
 3249|     53|        return CURLE_OK;
 3250|     53|      }
 3251|  2.35k|      else {
 3252|  2.35k|        if((offt == STRE_OK) &&
  ------------------
  |  |   28|  2.35k|#define STRE_OK       0
  ------------------
  |  Branch (3252:12): [True: 2.34k, False: 14]
  ------------------
 3253|  2.34k|           ((k->size == -1) || /* not set to something before */
  ------------------
  |  Branch (3253:13): [True: 2.30k, False: 35]
  ------------------
 3254|  2.33k|            (k->size == contentlength))) { /* or the same value */
  ------------------
  |  Branch (3254:13): [True: 23, False: 12]
  ------------------
 3255|       |
 3256|  2.33k|          k->size = contentlength;
 3257|  2.33k|          curlx_str_passblanks(&v);
 3258|       |
 3259|       |          /* on a comma, loop and get the next instead */
 3260|  2.33k|          if(!curlx_str_single(&v, ','))
  ------------------
  |  Branch (3260:14): [True: 78, False: 2.25k]
  ------------------
 3261|     78|            continue;
 3262|       |
 3263|  2.25k|          if(!curlx_str_newline(&v)) {
  ------------------
  |  Branch (3263:14): [True: 2.24k, False: 12]
  ------------------
 3264|  2.24k|            k->maxdownload = k->size;
 3265|  2.24k|            return CURLE_OK;
 3266|  2.24k|          }
 3267|  2.25k|        }
 3268|       |        /* negative, different value or rubbish - bad HTTP */
 3269|     38|        failf(data, "Invalid Content-Length: value");
  ------------------
  |  |   62|     38|#define failf Curl_failf
  ------------------
 3270|     38|        return CURLE_WEIRD_SERVER_REPLY;
 3271|  2.35k|      }
 3272|  2.41k|    } while(1);
  ------------------
  |  Branch (3272:13): [True: 78, Folded]
  ------------------
 3273|  2.33k|  }
 3274|  4.29k|  v = (!k->http_bodyless && data->set.str[STRING_ENCODING]) ?
  ------------------
  |  Branch (3274:8): [True: 2.69k, False: 1.59k]
  |  Branch (3274:29): [True: 376, False: 2.32k]
  ------------------
 3275|  4.29k|    HD_VAL(hd, hdlen, "Content-Encoding:") : NULL;
  ------------------
  |  | 3175|    376|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 207, False: 169]
  |  |  |  Branch (3175:37): [True: 207, False: 0]
  |  |  ------------------
  |  | 3176|    376|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 58, False: 149]
  |  |  ------------------
  ------------------
 3276|  4.29k|  if(v) {
  ------------------
  |  Branch (3276:6): [True: 58, False: 4.23k]
  ------------------
 3277|       |    /*
 3278|       |     * Process Content-Encoding. Look for the values: identity, gzip, deflate,
 3279|       |     * compress, x-gzip and x-compress. x-gzip and x-compress are the same as
 3280|       |     * gzip and compress. (Sec 3.5 RFC 2616). zlib cannot handle compress.
 3281|       |     * Errors are handled further down when the response body is processed
 3282|       |     */
 3283|     58|    return Curl_build_unencoding_stack(data, v, FALSE);
  ------------------
  |  | 1058|     58|#define FALSE false
  ------------------
 3284|     58|  }
 3285|       |  /* check for Content-Type: header lines to get the MIME-type */
 3286|  4.23k|  v = HD_VAL(hd, hdlen, "Content-Type:");
  ------------------
  |  | 3175|  4.23k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 3.84k, False: 388]
  |  |  |  Branch (3175:37): [True: 3.84k, False: 0]
  |  |  ------------------
  |  | 3176|  4.23k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 458, False: 3.38k]
  |  |  ------------------
  ------------------
 3287|  4.23k|  if(v) {
  ------------------
  |  Branch (3287:6): [True: 458, False: 3.77k]
  ------------------
 3288|    458|    char *contenttype = Curl_copy_header_value(hd);
 3289|    458|    if(!contenttype)
  ------------------
  |  Branch (3289:8): [True: 0, False: 458]
  ------------------
 3290|      0|      return CURLE_OUT_OF_MEMORY;
 3291|    458|    if(!*contenttype)
  ------------------
  |  Branch (3291:8): [True: 331, False: 127]
  ------------------
 3292|       |      /* ignore empty data */
 3293|    331|      curlx_free(contenttype);
  ------------------
  |  | 1483|    331|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3294|    127|    else {
 3295|    127|      curlx_free(data->info.contenttype);
  ------------------
  |  | 1483|    127|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3296|    127|      data->info.contenttype = contenttype;
 3297|    127|    }
 3298|    458|    return CURLE_OK;
 3299|    458|  }
 3300|  3.77k|  if((k->httpversion < 20) &&
  ------------------
  |  Branch (3300:6): [True: 1.98k, False: 1.78k]
  ------------------
 3301|  1.98k|     HD_IS_AND_SAYS(hd, hdlen, "Connection:", "close")) {
  ------------------
  |  | 3181|  1.98k|  (HD_IS(hd, hdlen, n) && \
  |  |  ------------------
  |  |  |  | 3172|  3.97k|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (3172:4): [True: 1.75k, False: 238]
  |  |  |  |  |  Branch (3172:36): [True: 1.34k, False: 402]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 3182|  1.98k|   ((hdlen) > ((sizeof(n) - 1) + (sizeof(v) - 1))) && \
  |  |  ------------------
  |  |  |  Branch (3182:4): [True: 1.34k, False: 0]
  |  |  ------------------
  |  | 3183|  1.98k|   Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1292|  1.34k|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |                  Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1292|  1.34k|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |  |  Branch (3183:4): [True: 0, False: 1.34k]
  |  |  ------------------
  ------------------
 3302|       |    /*
 3303|       |     * [RFC 2616, section 8.1.2.1]
 3304|       |     * "Connection: close" is HTTP/1.1 language and means that
 3305|       |     * the connection will close when this request has been
 3306|       |     * served.
 3307|       |     */
 3308|      0|    connclose(conn, "Connection: close used");
  ------------------
  |  |  103|      0|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|      0|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
 3309|      0|    return CURLE_OK;
 3310|      0|  }
 3311|  3.77k|  if((k->httpversion == 10) &&
  ------------------
  |  Branch (3311:6): [True: 241, False: 3.53k]
  ------------------
 3312|    241|     HD_IS_AND_SAYS(hd, hdlen, "Connection:", "keep-alive")) {
  ------------------
  |  | 3181|    241|  (HD_IS(hd, hdlen, n) && \
  |  |  ------------------
  |  |  |  | 3172|    482|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (3172:4): [True: 101, False: 140]
  |  |  |  |  |  Branch (3172:36): [True: 0, False: 101]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 3182|    241|   ((hdlen) > ((sizeof(n) - 1) + (sizeof(v) - 1))) && \
  |  |  ------------------
  |  |  |  Branch (3182:4): [True: 0, False: 0]
  |  |  ------------------
  |  | 3183|    241|   Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |                  Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |  |  Branch (3183:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3313|       |    /*
 3314|       |     * An HTTP/1.0 reply with the 'Connection: keep-alive' line
 3315|       |     * tells us the connection will be kept alive for our
 3316|       |     * pleasure. Default action for 1.0 is to close.
 3317|       |     *
 3318|       |     * [RFC2068, section 19.7.1] */
 3319|      0|    connkeep(conn, "Connection keep-alive");
  ------------------
  |  |  104|      0|#define connkeep(x, y)    Curl_conncontrol(x, CONNCTRL_KEEP, y)
  |  |  ------------------
  |  |  |  |   90|      0|#define CONNCTRL_KEEP       0 /* undo a marked closure */
  |  |  ------------------
  ------------------
 3320|      0|    infof(data, "HTTP/1.0 connection set to keep alive");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3321|      0|    return CURLE_OK;
 3322|      0|  }
 3323|  3.77k|  v = !k->http_bodyless ? HD_VAL(hd, hdlen, "Content-Range:") : NULL;
  ------------------
  |  | 3175|  2.18k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 1.90k, False: 276]
  |  |  |  Branch (3175:37): [True: 1.90k, False: 0]
  |  |  ------------------
  |  | 3176|  2.18k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 306, False: 1.60k]
  |  |  ------------------
  ------------------
  |  Branch (3323:7): [True: 2.18k, False: 1.59k]
  ------------------
 3324|  3.77k|  if(v) {
  ------------------
  |  Branch (3324:6): [True: 306, False: 3.46k]
  ------------------
 3325|       |    /* Content-Range: bytes [num]-
 3326|       |       Content-Range: bytes: [num]-
 3327|       |       Content-Range: [num]-
 3328|       |       Content-Range: [asterisk]/[total]
 3329|       |
 3330|       |       The second format was added since Sun's webserver
 3331|       |       JavaWebServer/1.1.1 obviously sends the header this way!
 3332|       |       The third added since some servers use that!
 3333|       |       The fourth means the requested range was unsatisfied.
 3334|       |    */
 3335|       |
 3336|    306|    const char *ptr = v;
 3337|       |
 3338|       |    /* Move forward until first digit or asterisk */
 3339|  1.71k|    while(*ptr && !ISDIGIT(*ptr) && *ptr != '*')
  ------------------
  |  |   44|  3.24k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 757, False: 769]
  |  |  |  Branch (44:38): [True: 82, False: 675]
  |  |  ------------------
  ------------------
  |  Branch (3339:11): [True: 1.52k, False: 189]
  |  Branch (3339:37): [True: 1.40k, False: 35]
  ------------------
 3340|  1.40k|      ptr++;
 3341|       |
 3342|       |    /* if it truly stopped on a digit */
 3343|    306|    if(ISDIGIT(*ptr)) {
  ------------------
  |  |   44|    306|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 82, False: 224]
  |  |  |  Branch (44:38): [True: 82, False: 0]
  |  |  ------------------
  ------------------
 3344|     82|      if(!curlx_str_number(&ptr, &k->offset, CURL_OFF_T_MAX) &&
  ------------------
  |  |  594|     82|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (3344:10): [True: 82, False: 0]
  ------------------
 3345|     82|         (data->state.resume_from == k->offset))
  ------------------
  |  Branch (3345:10): [True: 44, False: 38]
  ------------------
 3346|       |        /* we asked for a resume and we got it */
 3347|     44|        k->content_range = TRUE;
  ------------------
  |  | 1055|     44|#define TRUE true
  ------------------
 3348|     82|    }
 3349|    224|    else if(k->httpcode < 300)
  ------------------
  |  Branch (3349:13): [True: 95, False: 129]
  ------------------
 3350|     95|      data->state.resume_from = 0; /* get everything */
 3351|    306|  }
 3352|  3.77k|  return CURLE_OK;
 3353|  3.77k|}
http.c:http_header_l:
 3360|  5.57k|{
 3361|  5.57k|  struct connectdata *conn = data->conn;
 3362|  5.57k|  struct SingleRequest *k = &data->req;
 3363|  5.57k|  const char *v = (!k->http_bodyless &&
  ------------------
  |  Branch (3363:20): [True: 4.43k, False: 1.14k]
  ------------------
 3364|  4.43k|                   (data->set.timecondition || data->set.get_filetime)) ?
  ------------------
  |  Branch (3364:21): [True: 0, False: 4.43k]
  |  Branch (3364:48): [True: 0, False: 4.43k]
  ------------------
 3365|  5.57k|    HD_VAL(hd, hdlen, "Last-Modified:") : NULL;
  ------------------
  |  | 3175|      0|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 0, False: 0]
  |  |  |  Branch (3175:37): [True: 0, False: 0]
  |  |  ------------------
  |  | 3176|      0|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3366|  5.57k|  if(v) {
  ------------------
  |  Branch (3366:6): [True: 0, False: 5.57k]
  ------------------
 3367|      0|    if(Curl_getdate_capped(v, &k->timeofdoc))
  ------------------
  |  Branch (3367:8): [True: 0, False: 0]
  ------------------
 3368|      0|      k->timeofdoc = 0;
 3369|      0|    if(data->set.get_filetime)
  ------------------
  |  Branch (3369:8): [True: 0, False: 0]
  ------------------
 3370|      0|      data->info.filetime = k->timeofdoc;
 3371|      0|    return CURLE_OK;
 3372|      0|  }
 3373|  5.57k|  if(HD_IS(hd, hdlen, "Location:")) {
  ------------------
  |  | 3172|  5.57k|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  ------------------
  |  |  |  Branch (3172:4): [True: 4.54k, False: 1.03k]
  |  |  |  Branch (3172:36): [True: 4.18k, False: 351]
  |  |  ------------------
  ------------------
 3374|       |    /* this is the URL that the server advises us to use instead */
 3375|  4.18k|    char *location = Curl_copy_header_value(hd);
 3376|  4.18k|    if(!location)
  ------------------
  |  Branch (3376:8): [True: 0, False: 4.18k]
  ------------------
 3377|      0|      return CURLE_OUT_OF_MEMORY;
 3378|  4.18k|    if(!*location ||
  ------------------
  |  Branch (3378:8): [True: 452, False: 3.73k]
  ------------------
 3379|  3.73k|       (data->req.location && !strcmp(data->req.location, location))) {
  ------------------
  |  Branch (3379:9): [True: 112, False: 3.62k]
  |  Branch (3379:31): [True: 69, False: 43]
  ------------------
 3380|       |      /* ignore empty header, or exact repeat of a previous one */
 3381|    521|      curlx_free(location);
  ------------------
  |  | 1483|    521|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3382|    521|      return CURLE_OK;
 3383|    521|    }
 3384|  3.66k|    else {
 3385|       |      /* has value and is not an exact repeat */
 3386|  3.66k|      if(data->req.location) {
  ------------------
  |  Branch (3386:10): [True: 43, False: 3.62k]
  ------------------
 3387|     43|        failf(data, "Multiple Location headers");
  ------------------
  |  |   62|     43|#define failf Curl_failf
  ------------------
 3388|     43|        curlx_free(location);
  ------------------
  |  | 1483|     43|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3389|     43|        return CURLE_WEIRD_SERVER_REPLY;
 3390|     43|      }
 3391|  3.62k|      data->req.location = location;
 3392|       |
 3393|  3.62k|      if((k->httpcode >= 300 && k->httpcode < 400) &&
  ------------------
  |  Branch (3393:11): [True: 3.58k, False: 40]
  |  Branch (3393:33): [True: 3.57k, False: 12]
  ------------------
 3394|  3.57k|         data->set.http_follow_mode) {
  ------------------
  |  Branch (3394:10): [True: 3.24k, False: 325]
  ------------------
 3395|  3.24k|        CURLcode result;
 3396|  3.24k|        DEBUGASSERT(!data->req.newurl);
  ------------------
  |  | 1081|  3.24k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3396:9): [True: 0, False: 3.24k]
  |  Branch (3396:9): [True: 3.24k, False: 0]
  ------------------
 3397|  3.24k|        data->req.newurl = curlx_strdup(data->req.location); /* clone */
  ------------------
  |  | 1477|  3.24k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 3398|  3.24k|        if(!data->req.newurl)
  ------------------
  |  Branch (3398:12): [True: 0, False: 3.24k]
  ------------------
 3399|      0|          return CURLE_OUT_OF_MEMORY;
 3400|       |
 3401|       |        /* some cases of POST and PUT etc needs to rewind the data
 3402|       |           stream at this point */
 3403|  3.24k|        result = http_perhapsrewind(data, conn);
 3404|  3.24k|        if(result)
  ------------------
  |  Branch (3404:12): [True: 0, False: 3.24k]
  ------------------
 3405|      0|          return result;
 3406|       |
 3407|       |        /* mark the next request as a followed location: */
 3408|  3.24k|        data->state.this_is_a_follow = TRUE;
  ------------------
  |  | 1055|  3.24k|#define TRUE true
  ------------------
 3409|  3.24k|      }
 3410|  3.62k|    }
 3411|  4.18k|  }
 3412|  5.01k|  return CURLE_OK;
 3413|  5.57k|}
http.c:http_header_p:
 3420|    168|{
 3421|    168|  struct SingleRequest *k = &data->req;
 3422|       |
 3423|    168|#ifndef CURL_DISABLE_PROXY
 3424|    168|  const char *v = HD_VAL(hd, hdlen, "Proxy-Connection:");
  ------------------
  |  | 3175|    168|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 125, False: 43]
  |  |  |  Branch (3175:37): [True: 125, False: 0]
  |  |  ------------------
  |  | 3176|    168|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 0, False: 125]
  |  |  ------------------
  ------------------
 3425|    168|  if(v) {
  ------------------
  |  Branch (3425:6): [True: 0, False: 168]
  ------------------
 3426|      0|    struct connectdata *conn = data->conn;
 3427|      0|    if((k->httpversion == 10) && conn->bits.httpproxy &&
  ------------------
  |  Branch (3427:8): [True: 0, False: 0]
  |  Branch (3427:34): [True: 0, False: 0]
  ------------------
 3428|      0|       HD_IS_AND_SAYS(hd, hdlen, "Proxy-Connection:", "keep-alive")) {
  ------------------
  |  | 3181|      0|  (HD_IS(hd, hdlen, n) && \
  |  |  ------------------
  |  |  |  | 3172|      0|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (3172:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (3172:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 3182|      0|   ((hdlen) > ((sizeof(n) - 1) + (sizeof(v) - 1))) && \
  |  |  ------------------
  |  |  |  Branch (3182:4): [True: 0, False: 0]
  |  |  ------------------
  |  | 3183|      0|   Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |                  Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |  |  Branch (3183:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3429|       |      /*
 3430|       |       * When an HTTP/1.0 reply comes when using a proxy, the
 3431|       |       * 'Proxy-Connection: keep-alive' line tells us the
 3432|       |       * connection will be kept alive for our pleasure.
 3433|       |       * Default action for 1.0 is to close.
 3434|       |       */
 3435|      0|      connkeep(conn, "Proxy-Connection keep-alive"); /* do not close */
  ------------------
  |  |  104|      0|#define connkeep(x, y)    Curl_conncontrol(x, CONNCTRL_KEEP, y)
  |  |  ------------------
  |  |  |  |   90|      0|#define CONNCTRL_KEEP       0 /* undo a marked closure */
  |  |  ------------------
  ------------------
 3436|      0|      infof(data, "HTTP/1.0 proxy connection set to keep alive");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3437|      0|    }
 3438|      0|    else if((k->httpversion == 11) && conn->bits.httpproxy &&
  ------------------
  |  Branch (3438:13): [True: 0, False: 0]
  |  Branch (3438:39): [True: 0, False: 0]
  ------------------
 3439|      0|            HD_IS_AND_SAYS(hd, hdlen, "Proxy-Connection:", "close")) {
  ------------------
  |  | 3181|      0|  (HD_IS(hd, hdlen, n) && \
  |  |  ------------------
  |  |  |  | 3172|      0|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (3172:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (3172:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 3182|      0|   ((hdlen) > ((sizeof(n) - 1) + (sizeof(v) - 1))) && \
  |  |  ------------------
  |  |  |  Branch (3182:4): [True: 0, False: 0]
  |  |  ------------------
  |  | 3183|      0|   Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |                  Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |  |  Branch (3183:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3440|       |      /*
 3441|       |       * We get an HTTP/1.1 response from a proxy and it says it will
 3442|       |       * close down after this transfer.
 3443|       |       */
 3444|      0|      connclose(conn, "Proxy-Connection: asked to close after done");
  ------------------
  |  |  103|      0|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|      0|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
 3445|      0|      infof(data, "HTTP/1.1 proxy connection set close");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3446|      0|    }
 3447|      0|    return CURLE_OK;
 3448|      0|  }
 3449|    168|#endif
 3450|    168|  if((407 == k->httpcode) && HD_IS(hd, hdlen, "Proxy-authenticate:")) {
  ------------------
  |  | 3172|     31|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  ------------------
  |  |  |  Branch (3172:4): [True: 18, False: 13]
  |  |  |  Branch (3172:36): [True: 0, False: 18]
  |  |  ------------------
  ------------------
  |  Branch (3450:6): [True: 31, False: 137]
  ------------------
 3451|      0|    char *auth = Curl_copy_header_value(hd);
 3452|      0|    CURLcode result = auth ? CURLE_OK : CURLE_OUT_OF_MEMORY;
  ------------------
  |  Branch (3452:23): [True: 0, False: 0]
  ------------------
 3453|      0|    if(!result) {
  ------------------
  |  Branch (3453:8): [True: 0, False: 0]
  ------------------
 3454|      0|      result = Curl_http_input_auth(data, TRUE, auth);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3455|      0|      curlx_free(auth);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3456|      0|    }
 3457|      0|    return result;
 3458|      0|  }
 3459|       |#ifdef USE_SPNEGO
 3460|       |  if(HD_IS(hd, hdlen, "Persistent-Auth:")) {
 3461|       |    struct connectdata *conn = data->conn;
 3462|       |    struct negotiatedata *negdata = Curl_auth_nego_get(conn, FALSE);
 3463|       |    struct auth *authp = &data->state.authhost;
 3464|       |    if(!negdata)
 3465|       |      return CURLE_OUT_OF_MEMORY;
 3466|       |    if(authp->picked == CURLAUTH_NEGOTIATE) {
 3467|       |      char *persistentauth = Curl_copy_header_value(hd);
 3468|       |      if(!persistentauth)
 3469|       |        return CURLE_OUT_OF_MEMORY;
 3470|       |      negdata->noauthpersist = !!checkprefix("false", persistentauth);
 3471|       |      negdata->havenoauthpersist = TRUE;
 3472|       |      infof(data, "Negotiate: noauthpersist -> %d, header part: %s",
 3473|       |            negdata->noauthpersist, persistentauth);
 3474|       |      curlx_free(persistentauth);
 3475|       |    }
 3476|       |  }
 3477|       |#endif
 3478|    168|  return CURLE_OK;
 3479|    168|}
http.c:http_header_r:
 3486|  3.56k|{
 3487|  3.56k|  const char *v = HD_VAL(hd, hdlen, "Retry-After:");
  ------------------
  |  | 3175|  3.56k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 2.87k, False: 688]
  |  |  |  Branch (3175:37): [True: 2.87k, False: 0]
  |  |  ------------------
  |  | 3176|  3.56k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 1.85k, False: 1.01k]
  |  |  ------------------
  ------------------
 3488|  3.56k|  if(v) {
  ------------------
  |  Branch (3488:6): [True: 1.85k, False: 1.70k]
  ------------------
 3489|       |    /* Retry-After = HTTP-date / delay-seconds */
 3490|  1.85k|    curl_off_t retry_after = 0; /* zero for unknown or "now" */
 3491|  1.85k|    time_t date = 0;
 3492|  1.85k|    curlx_str_passblanks(&v);
 3493|       |
 3494|       |    /* try it as a date first, because a date can otherwise start with and
 3495|       |       get treated as a number */
 3496|  1.85k|    if(!Curl_getdate_capped(v, &date)) {
  ------------------
  |  Branch (3496:8): [True: 227, False: 1.63k]
  ------------------
 3497|    227|      time_t current = time(NULL);
 3498|    227|      if(date >= current)
  ------------------
  |  Branch (3498:10): [True: 121, False: 106]
  ------------------
 3499|       |        /* convert date to number of seconds into the future */
 3500|    121|        retry_after = date - current;
 3501|    227|    }
 3502|  1.63k|    else
 3503|       |      /* Try it as a decimal number, ignore errors */
 3504|  1.63k|      (void)curlx_str_number(&v, &retry_after, CURL_OFF_T_MAX);
  ------------------
  |  |  594|  1.63k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
 3505|       |    /* limit to 6 hours max. this is not documented so that it can be changed
 3506|       |       in the future if necessary. */
 3507|  1.85k|    if(retry_after > 21600)
  ------------------
  |  Branch (3507:8): [True: 218, False: 1.64k]
  ------------------
 3508|    218|      retry_after = 21600;
 3509|  1.85k|    data->info.retry_after = retry_after;
 3510|  1.85k|  }
 3511|  3.56k|  return CURLE_OK;
 3512|  3.56k|}
http.c:http_header_s:
 3519|  2.54k|{
 3520|  2.54k|#if !defined(CURL_DISABLE_COOKIES) || !defined(CURL_DISABLE_HSTS)
 3521|  2.54k|  struct connectdata *conn = data->conn;
 3522|  2.54k|  const char *v;
 3523|       |#else
 3524|       |  (void)data;
 3525|       |  (void)hd;
 3526|       |  (void)hdlen;
 3527|       |#endif
 3528|       |
 3529|  2.54k|#ifndef CURL_DISABLE_COOKIES
 3530|  2.54k|  v = (data->cookies && data->state.cookie_engine) ?
  ------------------
  |  Branch (3530:8): [True: 2.54k, False: 0]
  |  Branch (3530:25): [True: 2.54k, False: 0]
  ------------------
 3531|  2.54k|    HD_VAL(hd, hdlen, "Set-Cookie:") : NULL;
  ------------------
  |  | 3175|  2.54k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 2.45k, False: 91]
  |  |  |  Branch (3175:37): [True: 2.45k, False: 0]
  |  |  ------------------
  |  | 3176|  2.54k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 979, False: 1.47k]
  |  |  ------------------
  ------------------
 3532|  2.54k|  if(v) {
  ------------------
  |  Branch (3532:6): [True: 979, False: 1.56k]
  ------------------
 3533|       |    /* If there is a custom-set Host: name, use it here, or else use
 3534|       |     * real peer hostname. */
 3535|    979|    const char *host = data->req.cookiehost ?
  ------------------
  |  Branch (3535:24): [True: 0, False: 979]
  ------------------
 3536|    979|      data->req.cookiehost : conn->origin->hostname;
 3537|    979|    const bool secure_context = Curl_secure_context(conn, host);
 3538|    979|    CURLcode result;
 3539|    979|    Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 3540|    979|    result = Curl_cookie_add(data, data->cookies, TRUE, FALSE, v, host,
  ------------------
  |  | 1055|    979|#define TRUE true
  ------------------
                  result = Curl_cookie_add(data, data->cookies, TRUE, FALSE, v, host,
  ------------------
  |  | 1058|    979|#define FALSE false
  ------------------
 3541|    979|                             data->state.up.path, secure_context);
 3542|    979|    Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 3543|    979|    return result;
 3544|    979|  }
 3545|  1.56k|#endif
 3546|  1.56k|#ifndef CURL_DISABLE_HSTS
 3547|       |  /* If enabled, the header is incoming and this is over HTTPS */
 3548|  1.56k|  v = (data->hsts &&
  ------------------
  |  Branch (3548:8): [True: 1.56k, False: 0]
  ------------------
 3549|  1.56k|       (Curl_xfer_is_secure(data) ||
  ------------------
  |  Branch (3549:9): [True: 0, False: 1.56k]
  ------------------
 3550|  1.56k|#ifdef DEBUGBUILD
 3551|       |        /* allow debug builds to circumvent the HTTPS restriction */
 3552|  1.56k|        getenv("CURL_HSTS_HTTP")
  ------------------
  |  Branch (3552:9): [True: 0, False: 1.56k]
  ------------------
 3553|       |#else
 3554|       |        0
 3555|       |#endif
 3556|  1.56k|         )
 3557|  1.56k|    ) ? HD_VAL(hd, hdlen, "Strict-Transport-Security:") : NULL;
  ------------------
  |  | 3175|      0|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 0, False: 0]
  |  |  |  Branch (3175:37): [True: 0, False: 0]
  |  |  ------------------
  |  | 3176|      0|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3558|  1.56k|  if(v) {
  ------------------
  |  Branch (3558:6): [True: 0, False: 1.56k]
  ------------------
 3559|      0|    CURLcode result =
 3560|      0|      Curl_hsts_parse(data->hsts, conn->origin->hostname, v);
 3561|      0|    if(result) {
  ------------------
  |  Branch (3561:8): [True: 0, False: 0]
  ------------------
 3562|      0|      if(result == CURLE_OUT_OF_MEMORY)
  ------------------
  |  Branch (3562:10): [True: 0, False: 0]
  ------------------
 3563|      0|        return result;
 3564|      0|      infof(data, "Illegal STS header skipped");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3565|      0|    }
 3566|      0|#ifdef DEBUGBUILD
 3567|      0|    else
 3568|      0|      infof(data, "Parsed STS header fine (%zu entries)",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3569|      0|            Curl_llist_count(&data->hsts->list));
 3570|      0|#endif
 3571|      0|  }
 3572|  1.56k|#endif
 3573|       |
 3574|  1.56k|  return CURLE_OK;
 3575|  1.56k|}
http.c:http_header_t:
 3582|    589|{
 3583|    589|  struct connectdata *conn = data->conn;
 3584|    589|  struct SingleRequest *k = &data->req;
 3585|       |
 3586|       |  /* RFC 9112, ch. 6.1
 3587|       |   * "Transfer-Encoding MAY be sent in a response to a HEAD request or
 3588|       |   *  in a 304 (Not Modified) response (Section 15.4.5 of [HTTP]) to a
 3589|       |   *  GET request, neither of which includes a message body, to indicate
 3590|       |   *  that the origin server would have applied a transfer coding to the
 3591|       |   *  message body if the request had been an unconditional GET."
 3592|       |   *
 3593|       |   * Read: in these cases the 'Transfer-Encoding' does not apply
 3594|       |   * to any data following the response headers. Do not add any decoders.
 3595|       |   */
 3596|    589|  const char *v = (!k->http_bodyless &&
  ------------------
  |  Branch (3596:20): [True: 429, False: 160]
  ------------------
 3597|    429|                   (data->state.httpreq != HTTPREQ_HEAD) &&
  ------------------
  |  Branch (3597:20): [True: 407, False: 22]
  ------------------
 3598|    407|                   (k->httpcode != 304)) ?
  ------------------
  |  Branch (3598:20): [True: 407, False: 0]
  ------------------
 3599|    589|    HD_VAL(hd, hdlen, "Transfer-Encoding:") : NULL;
  ------------------
  |  | 3175|    407|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 307, False: 100]
  |  |  |  Branch (3175:37): [True: 307, False: 0]
  |  |  ------------------
  |  | 3176|    407|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 263, False: 44]
  |  |  ------------------
  ------------------
 3600|    589|  if(v) {
  ------------------
  |  Branch (3600:6): [True: 263, False: 326]
  ------------------
 3601|       |    /* One or more encodings. We check for chunked and/or a compression
 3602|       |       algorithm. */
 3603|    263|    CURLcode result = Curl_build_unencoding_stack(data, v, TRUE);
  ------------------
  |  | 1055|    263|#define TRUE true
  ------------------
 3604|    263|    if(result)
  ------------------
  |  Branch (3604:8): [True: 27, False: 236]
  ------------------
 3605|     27|      return result;
 3606|    236|    if(!k->chunk && data->set.http_transfer_encoding) {
  ------------------
  |  Branch (3606:8): [True: 20, False: 216]
  |  Branch (3606:21): [True: 0, False: 20]
  ------------------
 3607|       |      /* if this is not chunked, only close can signal the end of this
 3608|       |       * transfer as Content-Length is said not to be trusted for
 3609|       |       * transfer-encoding! */
 3610|      0|      connclose(conn, "HTTP/1.1 transfer-encoding without chunks");
  ------------------
  |  |  103|      0|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|      0|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
 3611|      0|      k->ignore_cl = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3612|      0|    }
 3613|    236|    return CURLE_OK;
 3614|    263|  }
 3615|    326|  v = HD_VAL(hd, hdlen, "Trailer:");
  ------------------
  |  | 3175|    326|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3175:5): [True: 180, False: 146]
  |  |  |  Branch (3175:37): [True: 180, False: 0]
  |  |  ------------------
  |  | 3176|    326|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3176:5): [True: 0, False: 180]
  |  |  ------------------
  ------------------
 3616|    326|  if(v) {
  ------------------
  |  Branch (3616:6): [True: 0, False: 326]
  ------------------
 3617|      0|    data->req.resp_trailer = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3618|      0|    return CURLE_OK;
 3619|      0|  }
 3620|    326|  return CURLE_OK;
 3621|    326|}
http.c:http_header_w:
 3628|    481|{
 3629|    481|  struct SingleRequest *k = &data->req;
 3630|    481|  CURLcode result = CURLE_OK;
 3631|       |
 3632|    481|  if((401 == k->httpcode) && HD_IS(hd, hdlen, "WWW-Authenticate:")) {
  ------------------
  |  | 3172|     91|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  ------------------
  |  |  |  Branch (3172:4): [True: 72, False: 19]
  |  |  |  Branch (3172:36): [True: 0, False: 72]
  |  |  ------------------
  ------------------
  |  Branch (3632:6): [True: 91, False: 390]
  ------------------
 3633|      0|    char *auth = Curl_copy_header_value(hd);
 3634|      0|    if(!auth)
  ------------------
  |  Branch (3634:8): [True: 0, False: 0]
  ------------------
 3635|      0|      result = CURLE_OUT_OF_MEMORY;
 3636|      0|    else {
 3637|      0|      result = Curl_http_input_auth(data, FALSE, auth);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 3638|      0|      curlx_free(auth);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3639|      0|    }
 3640|      0|  }
 3641|    481|  return result;
 3642|    481|}
http.c:http_parse_headers:
 4403|  7.85k|{
 4404|  7.85k|  struct connectdata *conn = data->conn;
 4405|  7.85k|  CURLcode result = CURLE_OK;
 4406|  7.85k|  struct SingleRequest *k = &data->req;
 4407|  7.85k|  const char *end_ptr;
 4408|  7.85k|  bool leftover_body = FALSE;
  ------------------
  |  | 1058|  7.85k|#define FALSE false
  ------------------
 4409|       |
 4410|       |  /* we have bytes for the next header, make sure it is not a folded header
 4411|       |     before passing it on */
 4412|  7.85k|  if(data->state.maybe_folded && blen) {
  ------------------
  |  Branch (4412:6): [True: 234, False: 7.62k]
  |  Branch (4412:34): [True: 177, False: 57]
  ------------------
 4413|    177|    if(ISBLANK(buf[0])) {
  ------------------
  |  |   45|    177|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 58, False: 119]
  |  |  |  Branch (45:38): [True: 8, False: 111]
  |  |  ------------------
  ------------------
 4414|       |      /* folded, remove the trailing newlines and append the next header */
 4415|     66|      unfold_header(data);
 4416|     66|    }
 4417|    111|    else {
 4418|       |      /* the header data we hold is a complete header, pass it on */
 4419|    111|      size_t ignore_this;
 4420|    111|      result = http_rw_hd(data, curlx_dyn_ptr(&data->state.headerb),
 4421|    111|                          curlx_dyn_len(&data->state.headerb),
 4422|    111|                          NULL, 0, &ignore_this);
 4423|    111|      curlx_dyn_reset(&data->state.headerb);
 4424|    111|      if(result)
  ------------------
  |  Branch (4424:10): [True: 15, False: 96]
  ------------------
 4425|     15|        return result;
 4426|    111|    }
 4427|    162|    data->state.maybe_folded = FALSE;
  ------------------
  |  | 1058|    162|#define FALSE false
  ------------------
 4428|    162|  }
 4429|       |
 4430|       |  /* header line within buffer loop */
 4431|  7.84k|  *pconsumed = 0;
 4432|  34.3k|  while(blen && k->header) {
  ------------------
  |  Branch (4432:9): [True: 29.0k, False: 5.31k]
  |  Branch (4432:17): [True: 28.3k, False: 727]
  ------------------
 4433|  28.3k|    size_t consumed;
 4434|  28.3k|    size_t hlen;
 4435|  28.3k|    const char *hd;
 4436|  28.3k|    size_t unfold_len = 0;
 4437|       |
 4438|  28.3k|    if(data->state.leading_unfold) {
  ------------------
  |  Branch (4438:8): [True: 605, False: 27.7k]
  ------------------
 4439|       |      /* immediately after an unfold, keep only a single whitespace */
 4440|  2.93k|      while(blen && ISBLANK(buf[0])) {
  ------------------
  |  |   45|  2.89k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 1.63k, False: 1.26k]
  |  |  |  Branch (45:38): [True: 697, False: 564]
  |  |  ------------------
  ------------------
  |  Branch (4440:13): [True: 2.89k, False: 41]
  ------------------
 4441|  2.33k|        buf++;
 4442|  2.33k|        blen--;
 4443|  2.33k|        unfold_len++;
 4444|  2.33k|      }
 4445|    605|      if(blen) {
  ------------------
  |  Branch (4445:10): [True: 564, False: 41]
  ------------------
 4446|       |        /* insert a single space */
 4447|    564|        result = curlx_dyn_addn(&data->state.headerb, " ", 1);
 4448|    564|        if(result)
  ------------------
  |  Branch (4448:12): [True: 0, False: 564]
  ------------------
 4449|      0|          return result;
 4450|    564|        data->state.leading_unfold = FALSE; /* done now */
  ------------------
  |  | 1058|    564|#define FALSE false
  ------------------
 4451|    564|      }
 4452|    605|    }
 4453|       |
 4454|  28.3k|    end_ptr = memchr(buf, '\n', blen);
 4455|  28.3k|    if(!end_ptr) {
  ------------------
  |  Branch (4455:8): [True: 1.22k, False: 27.0k]
  ------------------
 4456|       |      /* Not a complete header line within buffer, append the data to
 4457|       |         the end of the headerbuff. */
 4458|  1.22k|      result = curlx_dyn_addn(&data->state.headerb, buf, blen);
 4459|  1.22k|      if(result)
  ------------------
  |  Branch (4459:10): [True: 0, False: 1.22k]
  ------------------
 4460|      0|        return result;
 4461|  1.22k|      *pconsumed += blen + unfold_len;
 4462|       |
 4463|  1.22k|      if(!k->headerline) {
  ------------------
  |  Branch (4463:10): [True: 399, False: 827]
  ------------------
 4464|       |        /* check if this looks like a protocol header */
 4465|    399|        statusline st =
 4466|    399|          checkprotoprefix(data, conn,
 4467|    399|                           curlx_dyn_ptr(&data->state.headerb),
 4468|    399|                           curlx_dyn_len(&data->state.headerb));
 4469|       |
 4470|    399|        if(st == STATUS_BAD) {
  ------------------
  |  Branch (4470:12): [True: 342, False: 57]
  ------------------
 4471|       |          /* this is not the beginning of a protocol first header line.
 4472|       |           * Cannot be 0.9 if version was detected or connection was reused. */
 4473|    342|          k->header = FALSE;
  ------------------
  |  | 1058|    342|#define FALSE false
  ------------------
 4474|    342|          streamclose(conn, "bad HTTP: No end-of-message indicator");
  ------------------
  |  |  102|    342|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|    342|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 4475|    342|          if((k->httpversion >= 10) || conn->bits.reuse) {
  ------------------
  |  Branch (4475:14): [True: 10, False: 332]
  |  Branch (4475:40): [True: 176, False: 156]
  ------------------
 4476|    186|            failf(data, "Invalid status line");
  ------------------
  |  |   62|    186|#define failf Curl_failf
  ------------------
 4477|    186|            return CURLE_WEIRD_SERVER_REPLY;
 4478|    186|          }
 4479|    156|          if(!data->state.http_neg.accept_09) {
  ------------------
  |  Branch (4479:14): [True: 140, False: 16]
  ------------------
 4480|    140|            failf(data, "Received HTTP/0.9 when not allowed");
  ------------------
  |  |   62|    140|#define failf Curl_failf
  ------------------
 4481|    140|            return CURLE_UNSUPPORTED_PROTOCOL;
 4482|    140|          }
 4483|     16|          leftover_body = TRUE;
  ------------------
  |  | 1055|     16|#define TRUE true
  ------------------
 4484|     16|          goto out;
 4485|    156|        }
 4486|    399|      }
 4487|    884|      goto out; /* read more and try again */
 4488|  1.22k|    }
 4489|       |
 4490|       |    /* the size of the remaining header line */
 4491|  27.0k|    consumed = (end_ptr - buf) + 1;
 4492|       |
 4493|  27.0k|    result = curlx_dyn_addn(&data->state.headerb, buf, consumed);
 4494|  27.0k|    if(result)
  ------------------
  |  Branch (4494:8): [True: 0, False: 27.0k]
  ------------------
 4495|      0|      return result;
 4496|  27.0k|    blen -= consumed;
 4497|  27.0k|    buf += consumed;
 4498|  27.0k|    *pconsumed += consumed + unfold_len;
 4499|       |
 4500|       |    /****
 4501|       |     * We now have a FULL header line in 'headerb'.
 4502|       |     *****/
 4503|       |
 4504|  27.0k|    hlen = curlx_dyn_len(&data->state.headerb);
 4505|  27.0k|    hd = curlx_dyn_ptr(&data->state.headerb);
 4506|       |
 4507|  27.0k|    if(!k->headerline) {
  ------------------
  |  Branch (4507:8): [True: 5.80k, False: 21.2k]
  ------------------
 4508|       |      /* the first read "header", the status line */
 4509|  5.80k|      statusline st = checkprotoprefix(data, conn, hd, hlen);
 4510|  5.80k|      if(st == STATUS_BAD) {
  ------------------
  |  Branch (4510:10): [True: 47, False: 5.75k]
  ------------------
 4511|     47|        streamclose(conn, "bad HTTP: No end-of-message indicator");
  ------------------
  |  |  102|     47|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|     47|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 4512|       |        /* this is not the beginning of a protocol first header line.
 4513|       |         * Cannot be 0.9 if version was detected or connection was reused. */
 4514|     47|        if((k->httpversion >= 10) || conn->bits.reuse) {
  ------------------
  |  Branch (4514:12): [True: 5, False: 42]
  |  Branch (4514:38): [True: 6, False: 36]
  ------------------
 4515|     11|          failf(data, "Invalid status line");
  ------------------
  |  |   62|     11|#define failf Curl_failf
  ------------------
 4516|     11|          return CURLE_WEIRD_SERVER_REPLY;
 4517|     11|        }
 4518|     36|        if(!data->state.http_neg.accept_09) {
  ------------------
  |  Branch (4518:12): [True: 34, False: 2]
  ------------------
 4519|     34|          failf(data, "Received HTTP/0.9 when not allowed");
  ------------------
  |  |   62|     34|#define failf Curl_failf
  ------------------
 4520|     34|          return CURLE_UNSUPPORTED_PROTOCOL;
 4521|     34|        }
 4522|      2|        k->header = FALSE;
  ------------------
  |  | 1058|      2|#define FALSE false
  ------------------
 4523|      2|        leftover_body = TRUE;
  ------------------
  |  | 1055|      2|#define TRUE true
  ------------------
 4524|      2|        goto out;
 4525|     36|      }
 4526|  5.80k|    }
 4527|  21.2k|    else {
 4528|  21.2k|      if(hlen && !ISNEWLINE(hd[0])) {
  ------------------
  |  |   50|  21.2k|#define ISNEWLINE(x)    (((x) == '\n') || (x) == '\r')
  |  |  ------------------
  |  |  |  Branch (50:26): [True: 37, False: 21.2k]
  |  |  |  Branch (50:43): [True: 5.20k, False: 16.0k]
  |  |  ------------------
  ------------------
  |  Branch (4528:10): [True: 21.2k, False: 0]
  ------------------
 4529|       |        /* this is NOT the header separator */
 4530|       |
 4531|       |        /* if we have bytes for the next header, check for folding */
 4532|  16.0k|        if(blen && ISBLANK(buf[0])) {
  ------------------
  |  |   45|  15.8k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 405, False: 15.4k]
  |  |  |  Branch (45:38): [True: 102, False: 15.3k]
  |  |  ------------------
  ------------------
  |  Branch (4532:12): [True: 15.8k, False: 234]
  ------------------
 4533|       |          /* remove the trailing CRLF and append the next header */
 4534|    507|          unfold_header(data);
 4535|    507|          continue;
 4536|    507|        }
 4537|  15.5k|        else if(!blen) {
  ------------------
  |  Branch (4537:17): [True: 234, False: 15.3k]
  ------------------
 4538|       |          /* this might be a folded header so deal with it in next invoke */
 4539|    234|          data->state.maybe_folded = TRUE;
  ------------------
  |  | 1055|    234|#define TRUE true
  ------------------
 4540|    234|          break;
 4541|    234|        }
 4542|  16.0k|      }
 4543|  21.2k|    }
 4544|       |
 4545|  26.3k|    result = http_rw_hd(data, hd, hlen, buf, blen, &consumed);
 4546|       |    /* We are done with this line. We reset because response
 4547|       |     * processing might switch to HTTP/2 and that might call us
 4548|       |     * directly again. */
 4549|  26.3k|    curlx_dyn_reset(&data->state.headerb);
 4550|  26.3k|    if(consumed) {
  ------------------
  |  Branch (4550:8): [True: 411, False: 25.8k]
  ------------------
 4551|    411|      blen -= consumed;
 4552|    411|      buf += consumed;
 4553|    411|      *pconsumed += consumed;
 4554|    411|    }
 4555|  26.3k|    if(result)
  ------------------
  |  Branch (4555:8): [True: 293, False: 26.0k]
  ------------------
 4556|    293|      return result;
 4557|  26.3k|  }
 4558|       |
 4559|       |  /* We might have reached the end of the header part here, but
 4560|       |     there might be a non-header part left in the end of the read
 4561|       |     buffer. */
 4562|  7.17k|out:
 4563|  7.17k|  if(!k->header && !leftover_body) {
  ------------------
  |  Branch (4563:6): [True: 4.99k, False: 2.18k]
  |  Branch (4563:20): [True: 4.97k, False: 18]
  ------------------
 4564|  4.97k|    curlx_dyn_free(&data->state.headerb);
 4565|  4.97k|  }
 4566|  7.17k|  return CURLE_OK;
 4567|  7.84k|}
http.c:unfold_header:
 4392|    573|{
 4393|    573|  Curl_http_to_fold(&data->state.headerb);
 4394|       |  data->state.leading_unfold = TRUE;
  ------------------
  |  | 1055|    573|#define TRUE true
  ------------------
 4395|    573|}
http.c:checkprotoprefix:
 3159|  6.20k|{
 3160|  6.20k|#ifndef CURL_DISABLE_RTSP
 3161|  6.20k|  if(conn->scheme->protocol & CURLPROTO_RTSP)
  ------------------
  |  | 1096|  6.20k|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (3161:6): [True: 0, False: 6.20k]
  ------------------
 3162|      0|    return checkrtspprefix(data, s, len);
 3163|       |#else
 3164|       |  (void)conn;
 3165|       |#endif /* CURL_DISABLE_RTSP */
 3166|       |
 3167|  6.20k|  return checkhttpprefix(data, s, len);
 3168|  6.20k|}
http.c:http_TE_has_token:
 4881|    146|{
 4882|    289|  while(*fvalue) {
  ------------------
  |  Branch (4882:9): [True: 211, False: 78]
  ------------------
 4883|    211|    struct Curl_str name;
 4884|       |
 4885|       |    /* skip to first token */
 4886|    976|    while(ISBLANK(*fvalue) || *fvalue == ',')
  ------------------
  |  |   45|  1.95k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 145, False: 831]
  |  |  |  Branch (45:38): [True: 82, False: 749]
  |  |  ------------------
  ------------------
  |  Branch (4886:31): [True: 538, False: 211]
  ------------------
 4887|    765|      fvalue++;
 4888|    211|    if(curlx_str_cspn(&fvalue, &name, " \t\r;,"))
  ------------------
  |  Branch (4888:8): [True: 16, False: 195]
  ------------------
 4889|     16|      return FALSE;
  ------------------
  |  | 1058|     16|#define FALSE false
  ------------------
 4890|    195|    if(curlx_str_casecompare(&name, token))
  ------------------
  |  Branch (4890:8): [True: 0, False: 195]
  ------------------
 4891|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 4892|       |
 4893|       |    /* skip any remainder after token, e.g. parameters with quoted strings */
 4894|  1.46k|    while(*fvalue && *fvalue != ',') {
  ------------------
  |  Branch (4894:11): [True: 1.38k, False: 78]
  |  Branch (4894:22): [True: 1.31k, False: 65]
  ------------------
 4895|  1.31k|      if(*fvalue == '"') {
  ------------------
  |  Branch (4895:10): [True: 137, False: 1.18k]
  ------------------
 4896|    137|        struct Curl_str qw;
 4897|       |        /* if we do not cleanly find a quoted word here, the header value
 4898|       |         * does not follow HTTP syntax and we reject */
 4899|    137|        if(curlx_str_quotedword(&fvalue, &qw, CURL_MAX_HTTP_HEADER))
  ------------------
  |  |  272|    137|#define CURL_MAX_HTTP_HEADER (100 * 1024)
  ------------------
  |  Branch (4899:12): [True: 52, False: 85]
  ------------------
 4900|     52|          return FALSE;
  ------------------
  |  | 1058|     52|#define FALSE false
  ------------------
 4901|    137|      }
 4902|  1.18k|      else
 4903|  1.18k|        fvalue++;
 4904|  1.31k|    }
 4905|    195|  }
 4906|     78|  return FALSE;
  ------------------
  |  | 1058|     78|#define FALSE false
  ------------------
 4907|    146|}
http.c:h2_permissible_field:
 4870|  25.7k|{
 4871|  25.7k|  size_t i;
 4872|   162k|  for(i = 0; i < CURL_ARRAYSIZE(H2_NON_FIELD); ++i) {
  ------------------
  |  | 1294|   162k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (4872:14): [True: 139k, False: 22.7k]
  ------------------
 4873|   139k|    if(e->namelen == H2_NON_FIELD[i].namelen &&
  ------------------
  |  Branch (4873:8): [True: 7.77k, False: 132k]
  ------------------
 4874|  7.77k|       curl_strnequal(H2_NON_FIELD[i].name, e->name, e->namelen))
  ------------------
  |  Branch (4874:8): [True: 2.92k, False: 4.85k]
  ------------------
 4875|  2.92k|      return FALSE;
  ------------------
  |  | 1058|  2.92k|#define FALSE false
  ------------------
 4876|   139k|  }
 4877|  22.7k|  return TRUE;
  ------------------
  |  | 1055|  22.7k|#define TRUE true
  ------------------
 4878|  25.7k|}

Curl_h1_req_parse_init:
   37|  2.94k|{
   38|  2.94k|  memset(parser, 0, sizeof(*parser));
   39|  2.94k|  parser->max_line_len = max_line_len;
   40|  2.94k|  curlx_dyn_init(&parser->scratch, max_line_len);
   41|  2.94k|}
Curl_h1_req_parse_free:
   44|  5.83k|{
   45|  5.83k|  if(parser) {
  ------------------
  |  Branch (45:6): [True: 5.83k, False: 0]
  ------------------
   46|  5.83k|    Curl_http_req_free(parser->req);
   47|  5.83k|    curlx_dyn_free(&parser->scratch);
   48|  5.83k|    parser->req = NULL;
   49|       |    parser->done = FALSE;
  ------------------
  |  | 1058|  5.83k|#define FALSE false
  ------------------
   50|  5.83k|  }
   51|  5.83k|}
Curl_h1_req_parse_read:
  267|  2.90k|{
  268|  2.90k|  CURLcode result = CURLE_OK;
  269|  2.90k|  size_t nread;
  270|       |
  271|  2.90k|  *pnread = 0;
  272|       |
  273|  2.90k|  DEBUGASSERT(buf);
  ------------------
  |  | 1081|  2.90k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (273:3): [True: 0, False: 2.90k]
  |  Branch (273:3): [True: 2.90k, False: 0]
  ------------------
  274|  2.90k|  if(!buf)
  ------------------
  |  Branch (274:6): [True: 0, False: 2.90k]
  ------------------
  275|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  276|       |
  277|  34.8k|  while(!parser->done) {
  ------------------
  |  Branch (277:9): [True: 31.9k, False: 2.88k]
  ------------------
  278|  31.9k|    result = next_line(parser, buf, buflen, options, &nread);
  279|  31.9k|    if(result) {
  ------------------
  |  Branch (279:8): [True: 0, False: 31.9k]
  ------------------
  280|      0|      if(result == CURLE_AGAIN)
  ------------------
  |  Branch (280:10): [True: 0, False: 0]
  ------------------
  281|      0|        result = CURLE_OK;
  282|      0|      goto out;
  283|      0|    }
  284|       |
  285|       |    /* Consume this line */
  286|  31.9k|    *pnread += nread;
  287|  31.9k|    buf += nread;
  288|  31.9k|    buflen -= nread;
  289|       |
  290|  31.9k|    if(!parser->line) {
  ------------------
  |  Branch (290:8): [True: 3, False: 31.9k]
  ------------------
  291|       |      /* consumed bytes, but line not complete */
  292|      3|      if(!buflen)
  ------------------
  |  Branch (292:10): [True: 3, False: 0]
  ------------------
  293|      3|        goto out;
  294|      3|    }
  295|  31.9k|    else if(!parser->req) {
  ------------------
  |  Branch (295:13): [True: 2.90k, False: 29.0k]
  ------------------
  296|  2.90k|      result = start_req(parser, scheme_default, custom_method, options);
  297|  2.90k|      if(result)
  ------------------
  |  Branch (297:10): [True: 5, False: 2.89k]
  ------------------
  298|      5|        goto out;
  299|  2.90k|    }
  300|  29.0k|    else if(parser->line_len == 0) {
  ------------------
  |  Branch (300:13): [True: 2.88k, False: 26.1k]
  ------------------
  301|       |      /* last, empty line, we are finished */
  302|  2.88k|      if(!parser->req) {
  ------------------
  |  Branch (302:10): [True: 0, False: 2.88k]
  ------------------
  303|      0|        result = CURLE_URL_MALFORMAT;
  304|      0|        goto out;
  305|      0|      }
  306|  2.88k|      parser->done = TRUE;
  ------------------
  |  | 1055|  2.88k|#define TRUE true
  ------------------
  307|  2.88k|      curlx_dyn_reset(&parser->scratch);
  308|       |      /* last chance adjustments */
  309|  2.88k|    }
  310|  26.1k|    else {
  311|  26.1k|      result = Curl_dynhds_h1_add_line(&parser->req->headers,
  312|  26.1k|                                       parser->line, parser->line_len);
  313|  26.1k|      if(result)
  ------------------
  |  Branch (313:10): [True: 9, False: 26.1k]
  ------------------
  314|      9|        goto out;
  315|  26.1k|    }
  316|  31.9k|  }
  317|       |
  318|  2.90k|out:
  319|  2.90k|  return result;
  320|  2.90k|}
http1.c:next_line:
   97|  31.9k|{
   98|  31.9k|  CURLcode result;
   99|       |
  100|  31.9k|  *pnread = 0;
  101|  31.9k|  if(parser->line) {
  ------------------
  |  Branch (101:6): [True: 29.0k, False: 2.90k]
  ------------------
  102|  29.0k|    parser->line = NULL;
  103|  29.0k|    parser->line_len = 0;
  104|  29.0k|    curlx_dyn_reset(&parser->scratch);
  105|  29.0k|  }
  106|       |
  107|  31.9k|  result = detect_line(parser, buf, buflen, pnread);
  108|  31.9k|  if(!result) {
  ------------------
  |  Branch (108:6): [True: 31.9k, False: 3]
  ------------------
  109|  31.9k|    if(curlx_dyn_len(&parser->scratch)) {
  ------------------
  |  Branch (109:8): [True: 0, False: 31.9k]
  ------------------
  110|       |      /* append detected line to scratch to have the complete line */
  111|      0|      result = curlx_dyn_addn(&parser->scratch, parser->line,
  112|      0|                              parser->line_len);
  113|      0|      if(result)
  ------------------
  |  Branch (113:10): [True: 0, False: 0]
  ------------------
  114|      0|        return result;
  115|      0|      parser->line = curlx_dyn_ptr(&parser->scratch);
  116|      0|      parser->line_len = curlx_dyn_len(&parser->scratch);
  117|      0|    }
  118|  31.9k|    result = trim_line(parser, options);
  119|  31.9k|    if(result)
  ------------------
  |  Branch (119:8): [True: 0, False: 31.9k]
  ------------------
  120|      0|      return result;
  121|  31.9k|  }
  122|      3|  else if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (122:11): [True: 3, False: 0]
  ------------------
  123|       |    /* no line end in `buf`, add it to our scratch */
  124|      3|    result = curlx_dyn_addn(&parser->scratch, (const unsigned char *)buf,
  125|      3|                            buflen);
  126|      3|    *pnread = buflen;
  127|      3|  }
  128|  31.9k|  return result;
  129|  31.9k|}
http1.c:detect_line:
   80|  31.9k|{
   81|  31.9k|  const char *line_end;
   82|       |
   83|  31.9k|  DEBUGASSERT(!parser->line);
  ------------------
  |  | 1081|  31.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (83:3): [True: 0, False: 31.9k]
  |  Branch (83:3): [True: 31.9k, False: 0]
  ------------------
   84|  31.9k|  *pnread = 0;
   85|  31.9k|  line_end = memchr(buf, '\n', buflen);
   86|  31.9k|  if(!line_end)
  ------------------
  |  Branch (86:6): [True: 3, False: 31.9k]
  ------------------
   87|      3|    return CURLE_AGAIN;
   88|  31.9k|  parser->line = (const char *)buf;
   89|  31.9k|  parser->line_len = line_end - parser->line + 1;
   90|  31.9k|  *pnread = parser->line_len;
   91|  31.9k|  return CURLE_OK;
   92|  31.9k|}
http1.c:trim_line:
   54|  31.9k|{
   55|  31.9k|  DEBUGASSERT(parser->line);
  ------------------
  |  | 1081|  31.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (55:3): [True: 0, False: 31.9k]
  |  Branch (55:3): [True: 31.9k, False: 0]
  ------------------
   56|  31.9k|  if(parser->line_len) {
  ------------------
  |  Branch (56:6): [True: 31.9k, False: 0]
  ------------------
   57|  31.9k|    if(parser->line[parser->line_len - 1] == '\n')
  ------------------
  |  Branch (57:8): [True: 31.9k, False: 0]
  ------------------
   58|  31.9k|      --parser->line_len;
   59|  31.9k|    if(parser->line_len) {
  ------------------
  |  Branch (59:8): [True: 31.9k, False: 13]
  ------------------
   60|  31.9k|      if(parser->line[parser->line_len - 1] == '\r')
  ------------------
  |  Branch (60:10): [True: 20.1k, False: 11.8k]
  ------------------
   61|  20.1k|        --parser->line_len;
   62|  11.8k|      else if(options & H1_PARSE_OPT_STRICT)
  ------------------
  |  |   33|  11.8k|#define H1_PARSE_OPT_STRICT     (1 << 0)
  ------------------
  |  Branch (62:15): [True: 0, False: 11.8k]
  ------------------
   63|      0|        return CURLE_URL_MALFORMAT;
   64|  31.9k|    }
   65|     13|    else if(options & H1_PARSE_OPT_STRICT)
  ------------------
  |  |   33|     13|#define H1_PARSE_OPT_STRICT     (1 << 0)
  ------------------
  |  Branch (65:13): [True: 0, False: 13]
  ------------------
   66|      0|      return CURLE_URL_MALFORMAT;
   67|  31.9k|  }
   68|      0|  else if(options & H1_PARSE_OPT_STRICT)
  ------------------
  |  |   33|      0|#define H1_PARSE_OPT_STRICT     (1 << 0)
  ------------------
  |  Branch (68:11): [True: 0, False: 0]
  ------------------
   69|      0|    return CURLE_URL_MALFORMAT;
   70|       |
   71|  31.9k|  if(parser->line_len > parser->max_line_len) {
  ------------------
  |  Branch (71:6): [True: 0, False: 31.9k]
  ------------------
   72|      0|    return CURLE_URL_MALFORMAT;
   73|      0|  }
   74|  31.9k|  return CURLE_OK;
   75|  31.9k|}
http1.c:start_req:
  135|  2.90k|{
  136|  2.90k|  const char *p, *m, *target, *hv, *scheme, *authority, *path;
  137|  2.90k|  size_t m_len, target_len, hv_len, scheme_len, authority_len, path_len;
  138|  2.90k|  size_t i;
  139|  2.90k|  CURLU *url = NULL;
  140|  2.90k|  CURLcode result = CURLE_URL_MALFORMAT; /* Use this as default fail */
  141|       |
  142|  2.90k|  DEBUGASSERT(!parser->req);
  ------------------
  |  | 1081|  2.90k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (142:3): [True: 0, False: 2.90k]
  |  Branch (142:3): [True: 2.90k, False: 0]
  ------------------
  143|       |  /* line must match: "METHOD TARGET HTTP_VERSION" */
  144|  2.90k|  if(custom_method && custom_method[0] &&
  ------------------
  |  Branch (144:6): [True: 43, False: 2.85k]
  |  Branch (144:23): [True: 39, False: 4]
  ------------------
  145|     39|     !strncmp(custom_method, parser->line, strlen(custom_method))) {
  ------------------
  |  Branch (145:6): [True: 39, False: 0]
  ------------------
  146|     39|    p = parser->line + strlen(custom_method);
  147|     39|  }
  148|  2.86k|  else {
  149|  2.86k|    p = memchr(parser->line, ' ', parser->line_len);
  150|  2.86k|    if(!p || p == parser->line)
  ------------------
  |  Branch (150:8): [True: 0, False: 2.86k]
  |  Branch (150:14): [True: 4, False: 2.85k]
  ------------------
  151|      4|      goto out;
  152|  2.86k|  }
  153|       |
  154|  2.89k|  m = parser->line;
  155|  2.89k|  m_len = p - parser->line;
  156|  2.89k|  target = p + 1;
  157|  2.89k|  target_len = hv_len = 0;
  158|  2.89k|  hv = NULL;
  159|       |
  160|       |  /* URL may contain spaces so scan backwards */
  161|  23.1k|  for(i = parser->line_len; i > m_len; --i) {
  ------------------
  |  Branch (161:29): [True: 23.1k, False: 1]
  ------------------
  162|  23.1k|    if(parser->line[i] == ' ') {
  ------------------
  |  Branch (162:8): [True: 2.89k, False: 20.2k]
  ------------------
  163|  2.89k|      hv = &parser->line[i + 1];
  164|  2.89k|      hv_len = parser->line_len - i;
  165|  2.89k|      target_len = (hv - target) - 1;
  166|  2.89k|      break;
  167|  2.89k|    }
  168|  23.1k|  }
  169|       |  /* no SPACE found or empty TARGET or empty HTTP_VERSION */
  170|  2.89k|  if(!target_len || !hv_len)
  ------------------
  |  Branch (170:6): [True: 1, False: 2.89k]
  |  Branch (170:21): [True: 0, False: 2.89k]
  ------------------
  171|      1|    goto out;
  172|       |
  173|  2.89k|  (void)hv;
  174|       |
  175|       |  /* The TARGET can be (rfc 9112, ch. 3.2):
  176|       |   * origin-form:     path + optional query
  177|       |   * absolute-form:   absolute URI
  178|       |   * authority-form:  host+port for CONNECT
  179|       |   * asterisk-form:   '*' for OPTIONS
  180|       |   *
  181|       |   * from TARGET, we derive `scheme` `authority` `path`
  182|       |   * origin-form            --        --          TARGET
  183|       |   * absolute-form          URL*      URL*        URL*
  184|       |   * authority-form         --        TARGET      --
  185|       |   * asterisk-form          --        --          TARGET
  186|       |   */
  187|  2.89k|  scheme = authority = path = NULL;
  188|  2.89k|  scheme_len = authority_len = path_len = 0;
  189|       |
  190|  2.89k|  if(target_len == 1 && target[0] == '*') {
  ------------------
  |  Branch (190:6): [True: 1.47k, False: 1.42k]
  |  Branch (190:25): [True: 0, False: 1.47k]
  ------------------
  191|       |    /* asterisk-form */
  192|      0|    path = target;
  193|      0|    path_len = target_len;
  194|      0|  }
  195|  2.89k|  else if(!strncmp("CONNECT", m, m_len)) {
  ------------------
  |  Branch (195:11): [True: 2, False: 2.89k]
  ------------------
  196|       |    /* authority-form */
  197|      2|    authority = target;
  198|      2|    authority_len = target_len;
  199|      2|  }
  200|  2.89k|  else if(target[0] == '/') {
  ------------------
  |  Branch (200:11): [True: 2.89k, False: 0]
  ------------------
  201|       |    /* origin-form */
  202|  2.89k|    path = target;
  203|  2.89k|    path_len = target_len;
  204|  2.89k|  }
  205|      0|  else {
  206|       |    /* origin-form OR absolute-form */
  207|      0|    CURLUcode uc;
  208|      0|    char tmp[H1_MAX_URL_LEN];
  209|       |
  210|       |    /* default, unless we see an absolute URL */
  211|      0|    path = target;
  212|      0|    path_len = target_len;
  213|       |
  214|       |    /* URL parser wants null-termination */
  215|      0|    if(target_len >= sizeof(tmp))
  ------------------
  |  Branch (215:8): [True: 0, False: 0]
  ------------------
  216|      0|      goto out;
  217|      0|    memcpy(tmp, target, target_len);
  218|      0|    tmp[target_len] = '\0';
  219|       |    /* See if treating TARGET as an absolute URL makes sense */
  220|      0|    if(Curl_is_absolute_url(tmp, NULL, 0, FALSE)) {
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  |  Branch (220:8): [True: 0, False: 0]
  ------------------
  221|      0|      unsigned int url_options;
  222|       |
  223|      0|      url = curl_url();
  224|      0|      if(!url) {
  ------------------
  |  Branch (224:10): [True: 0, False: 0]
  ------------------
  225|      0|        result = CURLE_OUT_OF_MEMORY;
  226|      0|        goto out;
  227|      0|      }
  228|      0|      url_options = (CURLU_NON_SUPPORT_SCHEME |
  ------------------
  |  |   90|      0|#define CURLU_NON_SUPPORT_SCHEME (1 << 3) /* allow non-supported scheme */
  ------------------
  229|      0|                     CURLU_PATH_AS_IS |
  ------------------
  |  |   91|      0|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  ------------------
  230|      0|                     CURLU_NO_DEFAULT_PORT);
  ------------------
  |  |   85|      0|#define CURLU_NO_DEFAULT_PORT (1 << 1)    /* act as if no port number was set,
  ------------------
  231|      0|      if(!(options & H1_PARSE_OPT_STRICT))
  ------------------
  |  |   33|      0|#define H1_PARSE_OPT_STRICT     (1 << 0)
  ------------------
  |  Branch (231:10): [True: 0, False: 0]
  ------------------
  232|      0|        url_options |= CURLU_ALLOW_SPACE;
  ------------------
  |  |   99|      0|#define CURLU_ALLOW_SPACE (1 << 11)       /* Allow spaces in the URL */
  ------------------
  233|      0|      uc = curl_url_set(url, CURLUPART_URL, tmp, url_options);
  234|      0|      if(uc) {
  ------------------
  |  Branch (234:10): [True: 0, False: 0]
  ------------------
  235|      0|        goto out;
  236|      0|      }
  237|      0|    }
  238|       |
  239|      0|    if(!url && (options & H1_PARSE_OPT_STRICT)) {
  ------------------
  |  |   33|      0|#define H1_PARSE_OPT_STRICT     (1 << 0)
  ------------------
  |  Branch (239:8): [True: 0, False: 0]
  |  Branch (239:16): [True: 0, False: 0]
  ------------------
  240|       |      /* we should have an absolute URL or have seen `/` earlier */
  241|      0|      goto out;
  242|      0|    }
  243|      0|  }
  244|       |
  245|  2.89k|  if(url) {
  ------------------
  |  Branch (245:6): [True: 0, False: 2.89k]
  ------------------
  246|      0|    result = Curl_http_req_make2(&parser->req, m, m_len, url, scheme_default);
  247|      0|  }
  248|  2.89k|  else {
  249|  2.89k|    if(!scheme && scheme_default) {
  ------------------
  |  Branch (249:8): [True: 2.89k, False: 0]
  |  Branch (249:19): [True: 0, False: 2.89k]
  ------------------
  250|      0|      scheme = scheme_default;
  251|      0|      scheme_len = strlen(scheme_default);
  252|      0|    }
  253|  2.89k|    result = Curl_http_req_make(&parser->req, m, m_len, scheme, scheme_len,
  254|  2.89k|                                authority, authority_len, path, path_len);
  255|  2.89k|  }
  256|       |
  257|  2.90k|out:
  258|  2.90k|  curl_url_cleanup(url);
  259|  2.90k|  return result;
  260|  2.89k|}

Curl_nghttp2_fr_print:
 1062|    352|{
 1063|    352|  switch(frame->hd.type) {
 1064|      0|  case NGHTTP2_DATA: {
  ------------------
  |  Branch (1064:3): [True: 0, False: 352]
  ------------------
 1065|      0|    return curl_msnprintf(buffer, blen,
 1066|      0|                          "FRAME[DATA, len=%d, eos=%d, padlen=%d]",
 1067|      0|                          (int)frame->hd.length,
 1068|      0|                          !!(frame->hd.flags & NGHTTP2_FLAG_END_STREAM),
 1069|      0|                          (int)frame->data.padlen);
 1070|      0|  }
 1071|    333|  case NGHTTP2_HEADERS: {
  ------------------
  |  Branch (1071:3): [True: 333, False: 19]
  ------------------
 1072|    333|    return curl_msnprintf(buffer, blen,
 1073|    333|                          "FRAME[HEADERS, len=%d, hend=%d, eos=%d]",
 1074|    333|                          (int)frame->hd.length,
 1075|    333|                          !!(frame->hd.flags & NGHTTP2_FLAG_END_HEADERS),
 1076|    333|                          !!(frame->hd.flags & NGHTTP2_FLAG_END_STREAM));
 1077|      0|  }
 1078|      0|  case NGHTTP2_PRIORITY: {
  ------------------
  |  Branch (1078:3): [True: 0, False: 352]
  ------------------
 1079|      0|    return curl_msnprintf(buffer, blen,
 1080|      0|                          "FRAME[PRIORITY, len=%d, flags=%d]",
 1081|      0|                          (int)frame->hd.length, frame->hd.flags);
 1082|      0|  }
 1083|      0|  case NGHTTP2_RST_STREAM: {
  ------------------
  |  Branch (1083:3): [True: 0, False: 352]
  ------------------
 1084|      0|    return curl_msnprintf(buffer, blen,
 1085|      0|                          "FRAME[RST_STREAM, len=%d, flags=%d, error=%u]",
 1086|      0|                          (int)frame->hd.length, frame->hd.flags,
 1087|      0|                          frame->rst_stream.error_code);
 1088|      0|  }
 1089|      4|  case NGHTTP2_SETTINGS: {
  ------------------
  |  Branch (1089:3): [True: 4, False: 348]
  ------------------
 1090|      4|    if(frame->hd.flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (1090:8): [True: 1, False: 3]
  ------------------
 1091|      1|      return curl_msnprintf(buffer, blen, "FRAME[SETTINGS, ack=1]");
 1092|      1|    }
 1093|      3|    return curl_msnprintf(buffer, blen,
 1094|      3|                          "FRAME[SETTINGS, len=%d]", (int)frame->hd.length);
 1095|      4|  }
 1096|      5|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (1096:3): [True: 5, False: 347]
  ------------------
 1097|      5|    return curl_msnprintf(buffer, blen,
 1098|      5|                          "FRAME[PUSH_PROMISE, len=%d, hend=%d]",
 1099|      5|                          (int)frame->hd.length,
 1100|      5|                          !!(frame->hd.flags & NGHTTP2_FLAG_END_HEADERS));
 1101|      1|  case NGHTTP2_PING:
  ------------------
  |  Branch (1101:3): [True: 1, False: 351]
  ------------------
 1102|      1|    return curl_msnprintf(buffer, blen,
 1103|      1|                          "FRAME[PING, len=%d, ack=%d]",
 1104|      1|                          (int)frame->hd.length,
 1105|      1|                          frame->hd.flags & NGHTTP2_FLAG_ACK);
 1106|      2|  case NGHTTP2_GOAWAY: {
  ------------------
  |  Branch (1106:3): [True: 2, False: 350]
  ------------------
 1107|      2|    char scratch[128];
 1108|      2|    size_t s_len = CURL_ARRAYSIZE(scratch);
  ------------------
  |  | 1294|      2|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
 1109|      2|    size_t len = (frame->goaway.opaque_data_len < s_len) ?
  ------------------
  |  Branch (1109:18): [True: 2, False: 0]
  ------------------
 1110|      2|      frame->goaway.opaque_data_len : s_len - 1;
 1111|      2|    if(len)
  ------------------
  |  Branch (1111:8): [True: 1, False: 1]
  ------------------
 1112|      1|      memcpy(scratch, frame->goaway.opaque_data, len);
 1113|      2|    scratch[len] = '\0';
 1114|      2|    return curl_msnprintf(buffer, blen,
 1115|      2|                          "FRAME[GOAWAY, error=%u, reason='%s', "
 1116|      2|                          "last_stream=%d]", frame->goaway.error_code,
 1117|      2|                          scratch, frame->goaway.last_stream_id);
 1118|      4|  }
 1119|      7|  case NGHTTP2_WINDOW_UPDATE: {
  ------------------
  |  Branch (1119:3): [True: 7, False: 345]
  ------------------
 1120|      7|    return curl_msnprintf(buffer, blen,
 1121|      7|                          "FRAME[WINDOW_UPDATE, incr=%d]",
 1122|      7|                          frame->window_update.window_size_increment);
 1123|      4|  }
 1124|      0|  default:
  ------------------
  |  Branch (1124:3): [True: 0, False: 352]
  ------------------
 1125|      0|    return curl_msnprintf(buffer, blen, "FRAME[%d, len=%d, flags=%d]",
 1126|      0|                          frame->hd.type, (int)frame->hd.length,
 1127|      0|                          frame->hd.flags);
 1128|    352|  }
 1129|    352|}
Curl_http2_request_upgrade:
 1651|    483|{
 1652|    483|  CURLcode result;
 1653|    483|  char *base64;
 1654|    483|  size_t blen;
 1655|    483|  struct SingleRequest *k = &data->req;
 1656|    483|  uint8_t binsettings[H2_BINSETTINGS_LEN];
 1657|    483|  ssize_t rc;
 1658|    483|  size_t binlen; /* length of the binsettings data */
 1659|       |
 1660|    483|  rc = populate_binsettings(binsettings, data);
 1661|    483|  if(!curlx_sztouz(rc, &binlen) || !binlen) {
  ------------------
  |  Branch (1661:6): [True: 0, False: 483]
  |  Branch (1661:36): [True: 0, False: 483]
  ------------------
 1662|      0|    failf(data, "nghttp2 unexpectedly failed on pack_settings_payload");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1663|      0|    curlx_dyn_free(req);
 1664|      0|    return CURLE_FAILED_INIT;
 1665|      0|  }
 1666|       |
 1667|    483|  result = curlx_base64url_encode(binsettings, binlen, &base64, &blen);
 1668|    483|  if(result) {
  ------------------
  |  Branch (1668:6): [True: 0, False: 483]
  ------------------
 1669|      0|    curlx_dyn_free(req);
 1670|      0|    return result;
 1671|      0|  }
 1672|       |
 1673|    483|  data->state.http_hd_upgrade = TRUE;
  ------------------
  |  | 1055|    483|#define TRUE true
  ------------------
 1674|    483|  data->state.http_hd_h2_settings = TRUE;
  ------------------
  |  | 1055|    483|#define TRUE true
  ------------------
 1675|    483|  result = curlx_dyn_addf(req,
 1676|    483|                          "Upgrade: %s\r\n"
 1677|    483|                          "HTTP2-Settings: %s\r\n",
 1678|    483|                          NGHTTP2_CLEARTEXT_PROTO_VERSION_ID, base64);
 1679|    483|  curlx_free(base64);
  ------------------
  |  | 1483|    483|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1680|       |
 1681|    483|  k->upgr101 = UPGR101_H2;
 1682|    483|  data->conn->bits.upgrade_in_progress = TRUE;
  ------------------
  |  | 1055|    483|#define TRUE true
  ------------------
 1683|       |
 1684|    483|  return result;
 1685|    483|}
Curl_http2_may_switch:
 2861|  6.79k|{
 2862|  6.79k|  if(Curl_conn_http_version(data, data->conn) < 20 &&
  ------------------
  |  Branch (2862:6): [True: 6.79k, False: 0]
  ------------------
 2863|  6.79k|     (data->state.http_neg.wanted & CURL_HTTP_V2x) &&
  ------------------
  |  |   41|  6.79k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (2863:6): [True: 5.41k, False: 1.37k]
  ------------------
 2864|  5.41k|     data->state.http_neg.h2_prior_knowledge) {
  ------------------
  |  Branch (2864:6): [True: 2.90k, False: 2.51k]
  ------------------
 2865|  2.90k|#ifndef CURL_DISABLE_PROXY
 2866|  2.90k|    if(data->conn->bits.httpproxy && !data->conn->bits.tunnel_proxy) {
  ------------------
  |  Branch (2866:8): [True: 0, False: 2.90k]
  |  Branch (2866:38): [True: 0, False: 0]
  ------------------
 2867|       |      /* We do not support HTTP/2 proxies yet. Also it is debatable
 2868|       |         whether or not this setting should apply to HTTP/2 proxies. */
 2869|      0|      infof(data, "Ignoring HTTP/2 prior knowledge due to proxy");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2870|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2871|      0|    }
 2872|  2.90k|#endif
 2873|  2.90k|    return TRUE;
  ------------------
  |  | 1055|  2.90k|#define TRUE true
  ------------------
 2874|  2.90k|  }
 2875|  3.89k|  return FALSE;
  ------------------
  |  | 1058|  3.89k|#define FALSE false
  ------------------
 2876|  6.79k|}
Curl_http2_switch:
 2879|  2.90k|{
 2880|  2.90k|  struct Curl_cfilter *cf;
 2881|  2.90k|  CURLcode result;
 2882|       |
 2883|  2.90k|  DEBUGASSERT(Curl_conn_http_version(data, data->conn) < 20);
  ------------------
  |  | 1081|  2.90k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2883:3): [True: 0, False: 2.90k]
  |  Branch (2883:3): [True: 2.90k, False: 0]
  ------------------
 2884|       |
 2885|  2.90k|  result = http2_cfilter_add(&cf, data, data->conn, FIRSTSOCKET, FALSE);
  ------------------
  |  |  303|  2.90k|#define FIRSTSOCKET     0
  ------------------
                result = http2_cfilter_add(&cf, data, data->conn, FIRSTSOCKET, FALSE);
  ------------------
  |  | 1058|  2.90k|#define FALSE false
  ------------------
 2886|  2.90k|  if(result)
  ------------------
  |  Branch (2886:6): [True: 0, False: 2.90k]
  ------------------
 2887|      0|    return result;
 2888|  2.90k|  CURL_TRC_CF(data, cf, "switching connection to HTTP/2");
  ------------------
  |  |  153|  2.90k|  do {                                          \
  |  |  154|  2.90k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.90k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.80k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.90k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.90k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.80k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.90k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.90k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.90k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.90k]
  |  |  ------------------
  ------------------
 2889|       |
 2890|  2.90k|  if(cf->next) {
  ------------------
  |  Branch (2890:6): [True: 2.90k, False: 0]
  ------------------
 2891|  2.90k|    bool done;
 2892|  2.90k|    return Curl_conn_cf_connect(cf, data, &done);
 2893|  2.90k|  }
 2894|      0|  return CURLE_OK;
 2895|  2.90k|}
Curl_http2_upgrade:
 2920|     43|{
 2921|     43|  struct Curl_cfilter *cf;
 2922|     43|  struct cf_h2_ctx *ctx;
 2923|     43|  CURLcode result;
 2924|       |
 2925|     43|  DEBUGASSERT(Curl_conn_http_version(data, conn) < 20);
  ------------------
  |  | 1081|     43|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2925:3): [True: 0, False: 43]
  |  Branch (2925:3): [True: 43, False: 0]
  ------------------
 2926|       |
 2927|     43|  result = http2_cfilter_add(&cf, data, conn, sockindex, TRUE);
  ------------------
  |  | 1055|     43|#define TRUE true
  ------------------
 2928|     43|  if(result)
  ------------------
  |  Branch (2928:6): [True: 0, False: 43]
  ------------------
 2929|      0|    return result;
 2930|     43|  CURL_TRC_CF(data, cf, "upgrading connection to HTTP/2");
  ------------------
  |  |  153|     43|  do {                                          \
  |  |  154|     43|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     43|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     86|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 43, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 43]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     86|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     43|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     43|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     43|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 43]
  |  |  ------------------
  ------------------
 2931|       |
 2932|     43|  DEBUGASSERT(cf->cft == &Curl_cft_nghttp2);
  ------------------
  |  | 1081|     43|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2932:3): [True: 0, False: 43]
  |  Branch (2932:3): [True: 43, False: 0]
  ------------------
 2933|     43|  ctx = cf->ctx;
 2934|       |
 2935|     43|  data->req.httpversion_sent = 20; /* it is an h2 request now */
 2936|     43|  data->req.header = TRUE; /* we expect the real response to come in h2 */
  ------------------
  |  | 1055|     43|#define TRUE true
  ------------------
 2937|     43|  data->req.headerline = 0; /* restart the header line counter */
 2938|       |
 2939|     43|  if(nread > 0) {
  ------------------
  |  Branch (2939:6): [True: 36, False: 7]
  ------------------
 2940|       |    /* Remaining data from the protocol switch reply is already using
 2941|       |     * the switched protocol, ie. HTTP/2. We add that to the network
 2942|       |     * inbufq. */
 2943|     36|    size_t copied;
 2944|       |
 2945|     36|    result = Curl_bufq_write(&ctx->inbufq,
 2946|     36|                             (const unsigned char *)mem, nread, &copied);
 2947|     36|    if(result) {
  ------------------
  |  Branch (2947:8): [True: 0, False: 36]
  ------------------
 2948|      0|      failf(data, "error on copying HTTP Upgrade response: %d", result);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2949|      0|      return CURLE_RECV_ERROR;
 2950|      0|    }
 2951|     36|    if(copied < nread) {
  ------------------
  |  Branch (2951:8): [True: 0, False: 36]
  ------------------
 2952|      0|      failf(data, "connection buffer size could not take all data "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2953|      0|            "from HTTP Upgrade response header: copied=%zu, datalen=%zu",
 2954|      0|            copied, nread);
 2955|      0|      return CURLE_HTTP2;
 2956|      0|    }
 2957|     36|    infof(data, "Copied HTTP/2 data in stream buffer to connection buffer"
  ------------------
  |  |  143|     36|  do {                               \
  |  |  144|     36|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     36|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 36, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 36]
  |  |  |  |  ------------------
  |  |  |  |  320|     36|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     36|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     36|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 36]
  |  |  ------------------
  ------------------
 2958|     36|          " after upgrade: len=%zu", nread);
 2959|     36|  }
 2960|       |
 2961|     43|  if(cf->next) {
  ------------------
  |  Branch (2961:6): [True: 43, False: 0]
  ------------------
 2962|     43|    bool done;
 2963|     43|    result = Curl_conn_cf_connect(cf, data, &done);
 2964|     43|    if(!result)
  ------------------
  |  Branch (2964:8): [True: 43, False: 0]
  ------------------
 2965|     43|      cf->cft->cntrl(cf, data, CF_CTRL_CONN_INFO_UPDATE, 0, NULL);
  ------------------
  |  |  125|     43|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
 2966|     43|  }
 2967|     43|  return result;
 2968|     43|}
Curl_h2_http_1_1_error:
 2973|    323|{
 2974|    323|  if(Curl_conn_http_version(data, data->conn) == 20) {
  ------------------
  |  Branch (2974:6): [True: 323, False: 0]
  ------------------
 2975|    323|    int err = Curl_conn_get_stream_error(data, data->conn, FIRSTSOCKET);
  ------------------
  |  |  303|    323|#define FIRSTSOCKET     0
  ------------------
 2976|    323|    return err == NGHTTP2_HTTP_1_1_REQUIRED;
 2977|    323|  }
 2978|      0|  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2979|    323|}
Curl_nghttp2_malloc:
 2982|   101k|{
 2983|   101k|  (void)user_data;
 2984|   101k|  return Curl_cmalloc(size);
 2985|   101k|}
Curl_nghttp2_free:
 2988|   164k|{
 2989|   164k|  (void)user_data;
 2990|   164k|  Curl_cfree(ptr);
 2991|   164k|}
Curl_nghttp2_calloc:
 2994|  5.87k|{
 2995|  5.87k|  (void)user_data;
 2996|  5.87k|  return Curl_ccalloc(nmemb, size);
 2997|  5.87k|}
Curl_nghttp2_realloc:
 3000|  3.66k|{
 3001|  3.66k|  (void)user_data;
 3002|  3.66k|  return Curl_crealloc(ptr, size);
 3003|  3.66k|}
http2.c:populate_binsettings:
  242|    526|{
  243|    526|  nghttp2_settings_entry iv[H2_SETTINGS_IV_LEN];
  244|    526|  size_t ivlen;
  245|       |
  246|    526|  ivlen = populate_settings(iv, data, NULL);
  247|       |  /* this returns number of bytes it wrote or a negative number on error. */
  248|    526|  return nghttp2_pack_settings_payload(binsettings, H2_BINSETTINGS_LEN,
  ------------------
  |  |   90|    526|#define H2_BINSETTINGS_LEN 80
  ------------------
  249|    526|                                       iv, ivlen);
  250|    526|}
http2.c:populate_settings:
  226|  3.42k|{
  227|  3.42k|  iv[0].settings_id = NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS;
  228|  3.42k|  iv[0].value = Curl_multi_max_concurrent_streams(data->multi);
  229|       |
  230|  3.42k|  iv[1].settings_id = NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE;
  231|  3.42k|  iv[1].value = cf_h2_initial_win_size(data);
  232|  3.42k|  if(ctx)
  ------------------
  |  Branch (232:6): [True: 2.90k, False: 526]
  ------------------
  233|  2.90k|    ctx->initial_win_size = iv[1].value;
  234|  3.42k|  iv[2].settings_id = NGHTTP2_SETTINGS_ENABLE_PUSH;
  235|  3.42k|  iv[2].value = data->multi->push_cb != NULL;
  236|       |
  237|  3.42k|  return 3;
  238|  3.42k|}
http2.c:cf_h2_initial_win_size:
  211|  6.31k|{
  212|  6.31k|#if NGHTTP2_HAS_SET_LOCAL_WINDOW_SIZE
  213|       |  /* If the transfer has a rate-limit lower than the default initial
  214|       |   * stream window size, use that. It needs to be at least 8k or servers
  215|       |   * may be unhappy. */
  216|  6.31k|  curl_off_t rps = Curl_rlimit_per_step(&data->progress.dl.rlimit);
  217|  6.31k|  if((rps > 0) && (rps < H2_STREAM_WINDOW_SIZE_INITIAL))
  ------------------
  |  |   73|  6.31k|#define H2_STREAM_WINDOW_SIZE_INITIAL  (64 * 1024)
  ------------------
  |  Branch (217:6): [True: 6.31k, False: 0]
  |  Branch (217:19): [True: 6.31k, False: 0]
  ------------------
  218|  6.31k|    return CURLMAX((uint32_t)rps, 8192);
  ------------------
  |  | 1286|  6.31k|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1286:24): [True: 6.31k, False: 1]
  |  |  ------------------
  ------------------
  219|      0|#endif
  220|      0|  return H2_STREAM_WINDOW_SIZE_INITIAL;
  ------------------
  |  |   73|      0|#define H2_STREAM_WINDOW_SIZE_INITIAL  (64 * 1024)
  ------------------
  221|  6.31k|}
http2.c:cf_h2_destroy:
 2570|  2.94k|{
 2571|  2.94k|  struct cf_h2_ctx *ctx = cf->ctx;
 2572|       |
 2573|  2.94k|  (void)data;
 2574|  2.94k|  if(ctx) {
  ------------------
  |  Branch (2574:6): [True: 2.94k, False: 0]
  ------------------
 2575|  2.94k|    cf_h2_ctx_free(ctx);
 2576|       |    cf->ctx = NULL;
 2577|  2.94k|  }
 2578|  2.94k|}
http2.c:cf_h2_ctx_free:
  190|  2.94k|{
  191|  2.94k|  if(ctx && ctx->initialized) {
  ------------------
  |  Branch (191:6): [True: 2.94k, False: 0]
  |  Branch (191:13): [True: 2.94k, False: 0]
  ------------------
  192|  2.94k|    Curl_bufq_free(&ctx->inbufq);
  193|  2.94k|    Curl_bufq_free(&ctx->outbufq);
  194|  2.94k|    Curl_bufcp_free(&ctx->stream_bufcp);
  195|  2.94k|    curlx_dyn_free(&ctx->scratch);
  196|  2.94k|    Curl_uint32_hash_destroy(&ctx->streams);
  197|  2.94k|    memset(ctx, 0, sizeof(*ctx));
  198|  2.94k|  }
  199|  2.94k|  curlx_free(ctx);
  ------------------
  |  | 1483|  2.94k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  200|  2.94k|}
http2.c:cf_h2_connect:
 2502|  2.94k|{
 2503|  2.94k|  struct cf_h2_ctx *ctx = cf->ctx;
 2504|  2.94k|  CURLcode result = CURLE_OK;
 2505|  2.94k|  struct cf_call_data save;
 2506|  2.94k|  bool first_time = FALSE;
  ------------------
  |  | 1058|  2.94k|#define FALSE false
  ------------------
 2507|       |
 2508|  2.94k|  if(cf->connected) {
  ------------------
  |  Branch (2508:6): [True: 0, False: 2.94k]
  ------------------
 2509|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2510|      0|    return CURLE_OK;
 2511|      0|  }
 2512|       |
 2513|       |  /* Connect the lower filters first */
 2514|  2.94k|  if(!cf->next->connected) {
  ------------------
  |  Branch (2514:6): [True: 0, False: 2.94k]
  ------------------
 2515|      0|    result = Curl_conn_cf_connect(cf->next, data, done);
 2516|      0|    if(result || !*done)
  ------------------
  |  Branch (2516:8): [True: 0, False: 0]
  |  Branch (2516:18): [True: 0, False: 0]
  ------------------
 2517|      0|      return result;
 2518|      0|  }
 2519|       |
 2520|  2.94k|  *done = FALSE;
  ------------------
  |  | 1058|  2.94k|#define FALSE false
  ------------------
 2521|       |
 2522|  2.94k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  2.94k|  do { \
  |  |  671|  2.94k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|  2.94k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  2.94k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  2.94k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|  2.94k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  2.94k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|  2.94k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  2.94k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  2.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
  |  Branch (2522:3): [True: 2.94k, False: 0]
  |  Branch (2522:3): [True: 0, False: 0]
  |  Branch (2522:3): [True: 2.94k, False: 0]
  |  Branch (2522:3): [True: 0, False: 0]
  ------------------
 2523|  2.94k|  DEBUGASSERT(ctx->initialized);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2523:3): [True: 0, False: 2.94k]
  |  Branch (2523:3): [True: 2.94k, False: 0]
  ------------------
 2524|  2.94k|  if(!ctx->h2) {
  ------------------
  |  Branch (2524:6): [True: 2.94k, False: 0]
  ------------------
 2525|  2.94k|    result = cf_h2_ctx_open(cf, data);
 2526|  2.94k|    if(result)
  ------------------
  |  Branch (2526:8): [True: 0, False: 2.94k]
  ------------------
 2527|      0|      goto out;
 2528|  2.94k|    first_time = TRUE;
  ------------------
  |  | 1055|  2.94k|#define TRUE true
  ------------------
 2529|  2.94k|  }
 2530|       |
 2531|  2.94k|  if(!first_time) {
  ------------------
  |  Branch (2531:6): [True: 0, False: 2.94k]
  ------------------
 2532|      0|    result = h2_progress_ingress(cf, data, 0);
 2533|      0|    if(result)
  ------------------
  |  Branch (2533:8): [True: 0, False: 0]
  ------------------
 2534|      0|      goto out;
 2535|      0|  }
 2536|       |
 2537|       |  /* Send out our SETTINGS and ACKs and such. If that blocks, we
 2538|       |   * have it buffered and can count this filter as being connected */
 2539|  2.94k|  result = h2_progress_egress(cf, data);
 2540|  2.94k|  if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (2540:6): [True: 1, False: 2.94k]
  |  Branch (2540:16): [True: 0, False: 1]
  ------------------
 2541|      0|    goto out;
 2542|       |
 2543|  2.94k|  *done = TRUE;
  ------------------
  |  | 1055|  2.94k|#define TRUE true
  ------------------
 2544|  2.94k|  cf->connected = TRUE;
  ------------------
  |  | 1055|  2.94k|#define TRUE true
  ------------------
 2545|  2.94k|  result = CURLE_OK;
 2546|       |
 2547|  2.94k|out:
 2548|  2.94k|  CURL_TRC_CF(data, cf, "cf_connect() -> %d, %d, ", result, *done);
  ------------------
  |  |  153|  2.94k|  do {                                          \
  |  |  154|  2.94k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.94k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.88k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.94k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.94k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.88k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.94k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.94k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
 2549|  2.94k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  2.94k|  do { \
  |  |  679|  2.94k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  2.94k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  2.94k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|  2.94k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  2.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
  |  Branch (2549:3): [True: 0, False: 2.94k]
  |  Branch (2549:3): [True: 2.94k, False: 0]
  |  Branch (2549:3): [True: 2.94k, False: 0]
  |  Branch (2549:3): [True: 0, False: 0]
  |  Branch (2549:3): [True: 2.94k, False: 0]
  |  Branch (2549:3): [True: 0, False: 0]
  ------------------
 2550|  2.94k|  return result;
 2551|  2.94k|}
http2.c:cf_h2_ctx_open:
 2382|  2.94k|{
 2383|  2.94k|  struct cf_h2_ctx *ctx = cf->ctx;
 2384|  2.94k|  struct h2_stream_ctx *stream;
 2385|  2.94k|  CURLcode result = CURLE_OUT_OF_MEMORY;
 2386|  2.94k|  int rc;
 2387|  2.94k|  nghttp2_session_callbacks *cbs = NULL;
 2388|       |
 2389|  2.94k|  DEBUGASSERT(!ctx->h2);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2389:3): [True: 0, False: 2.94k]
  |  Branch (2389:3): [True: 2.94k, False: 0]
  ------------------
 2390|  2.94k|  DEBUGASSERT(ctx->initialized);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2390:3): [True: 0, False: 2.94k]
  |  Branch (2390:3): [True: 2.94k, False: 0]
  ------------------
 2391|       |
 2392|  2.94k|  rc = nghttp2_session_callbacks_new(&cbs);
 2393|  2.94k|  if(rc) {
  ------------------
  |  Branch (2393:6): [True: 0, False: 2.94k]
  ------------------
 2394|      0|    failf(data, "Could not initialize nghttp2 callbacks");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2395|      0|    goto out;
 2396|      0|  }
 2397|       |
 2398|  2.94k|  nghttp2_session_callbacks_set_send_callback(cbs, send_callback);
 2399|  2.94k|  nghttp2_session_callbacks_set_on_frame_recv_callback(cbs, on_frame_recv);
 2400|  2.94k|  nghttp2_session_callbacks_set_on_invalid_frame_recv_callback(cbs,
 2401|  2.94k|    cf_h2_on_invalid_frame_recv);
 2402|  2.94k|#ifdef CURLVERBOSE
 2403|  2.94k|  nghttp2_session_callbacks_set_on_frame_send_callback(cbs, on_frame_send);
 2404|  2.94k|#endif
 2405|  2.94k|  nghttp2_session_callbacks_set_on_data_chunk_recv_callback(
 2406|  2.94k|    cbs, on_data_chunk_recv);
 2407|  2.94k|  nghttp2_session_callbacks_set_on_stream_close_callback(cbs, on_stream_close);
 2408|  2.94k|  nghttp2_session_callbacks_set_on_begin_headers_callback(
 2409|  2.94k|    cbs, on_begin_headers);
 2410|  2.94k|  nghttp2_session_callbacks_set_on_header_callback(cbs, on_header);
 2411|  2.94k|#ifdef CURLVERBOSE
 2412|  2.94k|  nghttp2_session_callbacks_set_error_callback(cbs, error_callback);
 2413|  2.94k|#endif
 2414|       |
 2415|       |  /* The nghttp2 session is not yet setup, do it */
 2416|  2.94k|  rc = h2_client_new(cf, cbs);
 2417|  2.94k|  if(rc) {
  ------------------
  |  Branch (2417:6): [True: 0, False: 2.94k]
  ------------------
 2418|      0|    failf(data, "Could not initialize nghttp2");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2419|      0|    goto out;
 2420|      0|  }
 2421|  2.94k|  ctx->max_concurrent_streams = DEFAULT_MAX_CONCURRENT_STREAMS;
  ------------------
  |  |   32|  2.94k|#define DEFAULT_MAX_CONCURRENT_STREAMS 100
  ------------------
 2422|       |
 2423|  2.94k|  if(ctx->via_h1_upgrade) {
  ------------------
  |  Branch (2423:6): [True: 43, False: 2.90k]
  ------------------
 2424|       |    /* HTTP/1.1 Upgrade issued. H2 Settings have already been submitted
 2425|       |     * in the H1 request and we upgrade from there. This stream
 2426|       |     * is opened implicitly as #1. */
 2427|     43|    uint8_t binsettings[H2_BINSETTINGS_LEN];
 2428|     43|    ssize_t rclen;
 2429|     43|    size_t binlen; /* length of the binsettings data */
 2430|       |
 2431|     43|    rclen = populate_binsettings(binsettings, data);
 2432|       |
 2433|     43|    if(!curlx_sztouz(rclen, &binlen) || !binlen) {
  ------------------
  |  Branch (2433:8): [True: 0, False: 43]
  |  Branch (2433:41): [True: 0, False: 43]
  ------------------
 2434|      0|      failf(data, "nghttp2 unexpectedly failed on pack_settings_payload");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2435|      0|      result = CURLE_FAILED_INIT;
 2436|      0|      goto out;
 2437|      0|    }
 2438|       |
 2439|     43|    result = http2_data_setup(cf, data, &stream);
 2440|     43|    if(result)
  ------------------
  |  Branch (2440:8): [True: 0, False: 43]
  ------------------
 2441|      0|      goto out;
 2442|     43|    DEBUGASSERT(stream);
  ------------------
  |  | 1081|     43|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2442:5): [True: 0, False: 43]
  |  Branch (2442:5): [True: 43, False: 0]
  ------------------
 2443|     43|    stream->id = 1;
 2444|       |    /* queue SETTINGS frame (again) */
 2445|     43|    rc = nghttp2_session_upgrade2(ctx->h2, binsettings, binlen,
 2446|     43|                                  data->state.httpreq == HTTPREQ_HEAD,
 2447|     43|                                  NULL);
 2448|     43|    if(rc) {
  ------------------
  |  Branch (2448:8): [True: 0, False: 43]
  ------------------
 2449|      0|      failf(data, "nghttp2_session_upgrade2() failed: %s(%d)",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2450|      0|            nghttp2_strerror(rc), rc);
 2451|      0|      result = CURLE_HTTP2;
 2452|      0|      goto out;
 2453|      0|    }
 2454|       |
 2455|     43|    rc = nghttp2_session_set_stream_user_data(ctx->h2, stream->id,
 2456|     43|                                              data);
 2457|     43|    if(rc) {
  ------------------
  |  Branch (2457:8): [True: 0, False: 43]
  ------------------
 2458|      0|      infof(data, "http/2: failed to set user_data for stream %d",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2459|      0|            stream->id);
 2460|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2460:7): [Folded, False: 0]
  |  Branch (2460:7): [Folded, False: 0]
  ------------------
 2461|      0|    }
 2462|     43|    CURL_TRC_CF(data, cf, "created session via Upgrade");
  ------------------
  |  |  153|     43|  do {                                          \
  |  |  154|     43|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     43|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     86|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 43, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 43]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     86|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     43|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     43|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     43|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 43]
  |  |  ------------------
  ------------------
 2463|     43|  }
 2464|  2.90k|  else {
 2465|  2.90k|    nghttp2_settings_entry iv[H2_SETTINGS_IV_LEN];
 2466|  2.90k|    size_t ivlen;
 2467|       |
 2468|  2.90k|    ivlen = populate_settings(iv, data, ctx);
 2469|  2.90k|    rc = nghttp2_submit_settings(ctx->h2, NGHTTP2_FLAG_NONE,
 2470|  2.90k|                                 iv, ivlen);
 2471|  2.90k|    if(rc) {
  ------------------
  |  Branch (2471:8): [True: 0, False: 2.90k]
  ------------------
 2472|      0|      failf(data, "nghttp2_submit_settings() failed: %s(%d)",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2473|      0|            nghttp2_strerror(rc), rc);
 2474|      0|      result = CURLE_HTTP2;
 2475|      0|      goto out;
 2476|      0|    }
 2477|  2.90k|  }
 2478|       |
 2479|  2.94k|  rc = nghttp2_session_set_local_window_size(ctx->h2, NGHTTP2_FLAG_NONE, 0,
 2480|  2.94k|                                             HTTP2_HUGE_WINDOW_SIZE);
  ------------------
  |  |   87|  2.94k|#define HTTP2_HUGE_WINDOW_SIZE (100 * H2_STREAM_WINDOW_SIZE_MAX)
  |  |  ------------------
  |  |  |  |   69|  2.94k|#define H2_STREAM_WINDOW_SIZE_MAX   (10 * 1024 * 1024)
  |  |  ------------------
  ------------------
 2481|  2.94k|  if(rc) {
  ------------------
  |  Branch (2481:6): [True: 0, False: 2.94k]
  ------------------
 2482|      0|    failf(data, "nghttp2_session_set_local_window_size() failed: %s(%d)",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2483|      0|          nghttp2_strerror(rc), rc);
 2484|      0|    result = CURLE_HTTP2;
 2485|      0|    goto out;
 2486|      0|  }
 2487|       |
 2488|       |  /* all set, traffic will be send on connect */
 2489|  2.94k|  result = CURLE_OK;
 2490|  2.94k|  CURL_TRC_CF(data, cf, "[0] created h2 session%s",
  ------------------
  |  |  153|  2.94k|  do {                                          \
  |  |  154|  2.94k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.94k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.88k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.94k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.94k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.88k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.94k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.94k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  2.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
 2491|  2.94k|              ctx->via_h1_upgrade ? " (via h1 upgrade)" : "");
 2492|       |
 2493|  2.94k|out:
 2494|  2.94k|  if(cbs)
  ------------------
  |  Branch (2494:6): [True: 2.94k, False: 0]
  ------------------
 2495|  2.94k|    nghttp2_session_callbacks_del(cbs);
 2496|  2.94k|  return result;
 2497|  2.94k|}
http2.c:send_callback:
  617|  19.3k|{
  618|  19.3k|  struct Curl_cfilter *cf = userp;
  619|  19.3k|  struct cf_h2_ctx *ctx = cf->ctx;
  620|  19.3k|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  699|  19.3k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  120|  19.3k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 19.3k, False: 0]
  |  |  ------------------
  ------------------
  621|  19.3k|  size_t nwritten;
  622|  19.3k|  CURLcode result = CURLE_OK;
  623|       |
  624|  19.3k|  (void)h2;
  625|  19.3k|  (void)flags;
  626|  19.3k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  19.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (626:3): [True: 0, False: 19.3k]
  |  Branch (626:3): [True: 19.3k, False: 0]
  ------------------
  627|       |
  628|  19.3k|  if(!cf->connected)
  ------------------
  |  Branch (628:6): [True: 8.83k, False: 10.5k]
  ------------------
  629|  8.83k|    result = Curl_bufq_write(&ctx->outbufq, buf, blen, &nwritten);
  630|  10.5k|  else
  631|  10.5k|    result = Curl_cf_send_bufq(cf->next, data, &ctx->outbufq, buf, blen,
  632|  10.5k|                               &nwritten);
  633|       |
  634|  19.3k|  if(result) {
  ------------------
  |  Branch (634:6): [True: 1.64k, False: 17.7k]
  ------------------
  635|  1.64k|    if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (635:8): [True: 1.64k, False: 0]
  ------------------
  636|  1.64k|      ctx->nw_out_blocked = 1;
  637|  1.64k|      return NGHTTP2_ERR_WOULDBLOCK;
  638|  1.64k|    }
  639|      0|    failf(data, "Failed sending HTTP2 data");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  640|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
  641|  1.64k|  }
  642|       |
  643|  17.7k|  if(!nwritten) {
  ------------------
  |  Branch (643:6): [True: 0, False: 17.7k]
  ------------------
  644|      0|    ctx->nw_out_blocked = 1;
  645|      0|    return NGHTTP2_ERR_WOULDBLOCK;
  646|      0|  }
  647|  17.7k|  return (nwritten > SSIZE_MAX) ?
  ------------------
  |  Branch (647:10): [True: 0, False: 17.7k]
  ------------------
  648|  17.7k|    NGHTTP2_ERR_CALLBACK_FAILURE : (ssize_t)nwritten;
  649|  17.7k|}
http2.c:on_frame_recv:
 1160|  2.36k|{
 1161|  2.36k|  struct Curl_cfilter *cf = userp;
 1162|  2.36k|  struct cf_h2_ctx *ctx = cf->ctx;
 1163|  2.36k|  struct Curl_easy *data = CF_DATA_CURRENT(cf), *data_s;
  ------------------
  |  |  699|  2.36k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  120|  2.36k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 2.36k, False: 0]
  |  |  ------------------
  ------------------
 1164|  2.36k|  int32_t stream_id = frame->hd.stream_id;
 1165|       |
 1166|  2.36k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  2.36k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1166:3): [True: 0, False: 2.36k]
  |  Branch (1166:3): [True: 2.36k, False: 0]
  ------------------
 1167|  2.36k|#ifdef CURLVERBOSE
 1168|  2.36k|  if(Curl_trc_cf_is_verbose(cf, data)) {
  ------------------
  |  |  323|  2.36k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  ------------------
  |  |  |  |  319|  4.72k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 2.36k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.36k]
  |  |  |  |  ------------------
  |  |  |  |  320|  4.72k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  324|  2.36k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1169|      0|    char buffer[256];
 1170|      0|    int len;
 1171|      0|    len = Curl_nghttp2_fr_print(frame, buffer, sizeof(buffer) - 1);
 1172|      0|    buffer[len] = 0;
 1173|      0|    CURL_TRC_CF(data, cf, "[%d] <- %s", frame->hd.stream_id, buffer);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1174|      0|  }
 1175|  2.36k|#endif /* CURLVERBOSE */
 1176|       |
 1177|  2.36k|  if(!stream_id) {
  ------------------
  |  Branch (1177:6): [True: 2.24k, False: 118]
  ------------------
 1178|       |    /* stream ID zero is for connection-oriented stuff */
 1179|  2.24k|    DEBUGASSERT(data);
  ------------------
  |  | 1081|  2.24k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1179:5): [True: 0, False: 2.24k]
  |  Branch (1179:5): [True: 2.24k, False: 0]
  ------------------
 1180|  2.24k|    switch(frame->hd.type) {
 1181|  2.15k|    case NGHTTP2_SETTINGS: {
  ------------------
  |  Branch (1181:5): [True: 2.15k, False: 94]
  ------------------
 1182|  2.15k|      if(!(frame->hd.flags & NGHTTP2_FLAG_ACK)) {
  ------------------
  |  Branch (1182:10): [True: 2.14k, False: 4]
  ------------------
 1183|  2.14k|        uint32_t max_conn = ctx->max_concurrent_streams;
 1184|  2.14k|        ctx->max_concurrent_streams = nghttp2_session_get_remote_settings(
 1185|  2.14k|          session, NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS);
 1186|  2.14k|        ctx->enable_push = nghttp2_session_get_remote_settings(
 1187|  2.14k|          session, NGHTTP2_SETTINGS_ENABLE_PUSH) != 0;
 1188|  2.14k|        CURL_TRC_CF(data, cf, "[0] MAX_CONCURRENT_STREAMS: %u",
  ------------------
  |  |  153|  2.14k|  do {                                          \
  |  |  154|  2.14k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.14k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  4.29k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.14k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.14k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  4.29k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.14k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.14k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.14k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.14k]
  |  |  ------------------
  ------------------
 1189|  2.14k|                    ctx->max_concurrent_streams);
 1190|  2.14k|        CURL_TRC_CF(data, cf, "[0] ENABLE_PUSH: %s",
  ------------------
  |  |  153|  2.14k|  do {                                          \
  |  |  154|  2.14k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.14k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  4.29k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.14k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.14k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  4.29k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.14k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.14k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  2.14k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.14k]
  |  |  ------------------
  ------------------
 1191|  2.14k|                    ctx->enable_push ? "TRUE" : "false");
 1192|  2.14k|        if(data && max_conn != ctx->max_concurrent_streams) {
  ------------------
  |  Branch (1192:12): [True: 2.14k, False: 0]
  |  Branch (1192:20): [True: 1.95k, False: 195]
  ------------------
 1193|       |          /* only signal change if the value actually changed */
 1194|  1.95k|          CURL_TRC_CF(data, cf, "[0] notify MAX_CONCURRENT_STREAMS: %u",
  ------------------
  |  |  153|  1.95k|  do {                                          \
  |  |  154|  1.95k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  1.95k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  3.90k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.95k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  3.90k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  1.95k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.95k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.95k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.95k]
  |  |  ------------------
  ------------------
 1195|  1.95k|                      ctx->max_concurrent_streams);
 1196|  1.95k|          Curl_multi_connchanged(data->multi);
 1197|  1.95k|        }
 1198|       |        /* Since the initial stream window is 64K, a request might be on HOLD,
 1199|       |         * due to exhaustion. The (initial) SETTINGS may announce a much larger
 1200|       |         * window and *assume* that we treat this like a WINDOW_UPDATE. Some
 1201|       |         * servers send an explicit WINDOW_UPDATE, but not all seem to do that.
 1202|       |         * To be safe, we UNHOLD a stream in order not to stall. */
 1203|  2.14k|        if(CURL_REQ_WANT_SEND(data))
  ------------------
  |  |   39|  2.14k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  2.14k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 285, False: 1.86k]
  |  |  ------------------
  ------------------
 1204|    285|          Curl_multi_mark_dirty(data);
 1205|  2.14k|      }
 1206|  2.15k|      break;
 1207|      0|    }
 1208|     44|    case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (1208:5): [True: 44, False: 2.20k]
  ------------------
 1209|     44|      ctx->rcvd_goaway = TRUE;
  ------------------
  |  | 1055|     44|#define TRUE true
  ------------------
 1210|     44|      ctx->goaway_error = frame->goaway.error_code;
 1211|     44|      ctx->remote_max_sid = frame->goaway.last_stream_id;
 1212|     44|      if(data) {
  ------------------
  |  Branch (1212:10): [True: 44, False: 0]
  ------------------
 1213|     44|        infof(data, "received GOAWAY, error=%u, last_stream=%d",
  ------------------
  |  |  143|     44|  do {                               \
  |  |  144|     44|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     44|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 44, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  |  |  320|     44|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     44|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     44|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 44]
  |  |  ------------------
  ------------------
 1214|     44|              ctx->goaway_error, ctx->remote_max_sid);
 1215|     44|        Curl_multi_connchanged(data->multi);
 1216|     44|      }
 1217|     44|      break;
 1218|     50|    default:
  ------------------
  |  Branch (1218:5): [True: 50, False: 2.19k]
  ------------------
 1219|     50|      break;
 1220|  2.24k|    }
 1221|  2.24k|    return 0;
 1222|  2.24k|  }
 1223|       |
 1224|    118|  data_s = nghttp2_session_get_stream_user_data(session, stream_id);
 1225|    118|  if(!data_s) {
  ------------------
  |  Branch (1225:6): [True: 2, False: 116]
  ------------------
 1226|      2|    CURL_TRC_CF(data, cf, "[%d] No Curl_easy associated", stream_id);
  ------------------
  |  |  153|      2|  do {                                          \
  |  |  154|      2|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      2|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      4|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      4|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      2|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      2|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      2|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1227|      2|    return 0;
 1228|      2|  }
 1229|       |
 1230|    116|  return on_stream_frame(cf, data_s, frame) ? NGHTTP2_ERR_CALLBACK_FAILURE : 0;
  ------------------
  |  Branch (1230:10): [True: 0, False: 116]
  ------------------
 1231|    118|}
http2.c:on_stream_frame:
  948|    116|{
  949|    116|  struct cf_h2_ctx *ctx = cf->ctx;
  950|    116|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|    116|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|    116|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 116, False: 0]
  |  |  ------------------
  ------------------
  951|    116|  int32_t stream_id = frame->hd.stream_id;
  952|    116|  int rv;
  953|       |
  954|    116|  if(!stream) {
  ------------------
  |  Branch (954:6): [True: 0, False: 116]
  ------------------
  955|      0|    CURL_TRC_CF(data, cf, "[%d] No stream_ctx set", stream_id);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  956|      0|    return CURLE_FAILED_INIT;
  957|      0|  }
  958|       |
  959|    116|  switch(frame->hd.type) {
  960|      0|  case NGHTTP2_DATA:
  ------------------
  |  Branch (960:3): [True: 0, False: 116]
  ------------------
  961|      0|    CURL_TRC_CF(data, cf, "[%d] DATA, window=%d/%d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  962|      0|                stream_id,
  963|      0|                nghttp2_session_get_stream_effective_recv_data_length(
  964|      0|                  ctx->h2, stream->id),
  965|      0|                nghttp2_session_get_stream_effective_local_window_size(
  966|      0|                  ctx->h2, stream->id));
  967|       |    /* If !body started on this stream, then receiving DATA is illegal. */
  968|      0|    if(!stream->bodystarted) {
  ------------------
  |  Branch (968:8): [True: 0, False: 0]
  ------------------
  969|      0|      rv = nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
  970|      0|                                     stream_id, NGHTTP2_PROTOCOL_ERROR);
  971|       |
  972|      0|      if(nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (972:10): [True: 0, False: 0]
  ------------------
  973|      0|        return CURLE_RECV_ERROR;
  974|      0|      }
  975|      0|    }
  976|      0|    break;
  977|     54|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (977:3): [True: 54, False: 62]
  ------------------
  978|     54|    if(stream->bodystarted) {
  ------------------
  |  Branch (978:8): [True: 0, False: 54]
  ------------------
  979|       |      /* Only valid HEADERS after body started is trailer HEADERS. We
  980|       |         buffer them in on_header callback. */
  981|      0|      break;
  982|      0|    }
  983|       |
  984|       |    /* nghttp2 guarantees that :status is received, and we store it to
  985|       |       stream->status_code. Fuzzing has proven this can still be reached
  986|       |       without status code having been set. */
  987|     54|    if(stream->status_code == -1)
  ------------------
  |  Branch (987:8): [True: 0, False: 54]
  ------------------
  988|      0|      return CURLE_RECV_ERROR;
  989|       |
  990|       |    /* Only final status code signals the end of header */
  991|     54|    if(stream->status_code / 100 != 1)
  ------------------
  |  Branch (991:8): [True: 54, False: 0]
  ------------------
  992|     54|      stream->bodystarted = TRUE;
  ------------------
  |  | 1055|     54|#define TRUE true
  ------------------
  993|      0|    else
  994|      0|      stream->status_code = -1;
  995|       |
  996|     54|    h2_xfer_write_resp_hd(cf, data, stream, STRCONST("\r\n"),
  ------------------
  |  | 1292|     54|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  997|     54|                          (bool)stream->closed);
  998|       |
  999|     54|    if(stream->status_code / 100 != 1) {
  ------------------
  |  Branch (999:8): [True: 54, False: 0]
  ------------------
 1000|     54|      stream->resp_hds_complete = TRUE;
  ------------------
  |  | 1055|     54|#define TRUE true
  ------------------
 1001|     54|    }
 1002|     54|    Curl_multi_mark_dirty(data);
 1003|     54|    break;
 1004|      0|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (1004:3): [True: 0, False: 116]
  ------------------
 1005|      0|    rv = push_promise(cf, data, &frame->push_promise);
 1006|      0|    if(rv) { /* deny! */
  ------------------
  |  Branch (1006:8): [True: 0, False: 0]
  ------------------
 1007|      0|      DEBUGASSERT((rv > CURL_PUSH_OK) && (rv <= CURL_PUSH_ERROROUT));
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1007:7): [True: 0, False: 0]
  |  Branch (1007:7): [True: 0, False: 0]
  |  Branch (1007:7): [True: 0, False: 0]
  |  Branch (1007:7): [True: 0, False: 0]
  ------------------
 1008|      0|      rv = nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
 1009|      0|                                     frame->push_promise.promised_stream_id,
 1010|      0|                                     NGHTTP2_CANCEL);
 1011|      0|      if(nghttp2_is_fatal(rv))
  ------------------
  |  Branch (1011:10): [True: 0, False: 0]
  ------------------
 1012|      0|        return CURLE_SEND_ERROR;
 1013|      0|      else if(rv == CURL_PUSH_ERROROUT) {
  ------------------
  |  |  507|      0|#define CURL_PUSH_ERROROUT 2 /* added in 7.72.0 */
  ------------------
  |  Branch (1013:15): [True: 0, False: 0]
  ------------------
 1014|      0|        CURL_TRC_CF(data, cf, "[%d] fail in PUSH_PROMISE received",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1015|      0|                    stream_id);
 1016|      0|        return CURLE_RECV_ERROR;
 1017|      0|      }
 1018|      0|    }
 1019|      0|    break;
 1020|     13|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (1020:3): [True: 13, False: 103]
  ------------------
 1021|     13|    if(frame->rst_stream.error_code)
  ------------------
  |  Branch (1021:8): [True: 10, False: 3]
  ------------------
 1022|     10|      stream->reset_by_server = TRUE;
  ------------------
  |  | 1055|     10|#define TRUE true
  ------------------
 1023|     13|    Curl_multi_mark_dirty(data);
 1024|     13|    break;
 1025|     49|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (1025:3): [True: 49, False: 67]
  ------------------
 1026|     49|    if(CURL_REQ_WANT_SEND(data) && Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  |   39|     98|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|     49|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 14, False: 35]
  |  |  ------------------
  ------------------
  |  Branch (1026:36): [True: 13, False: 1]
  ------------------
 1027|       |      /* need more data, force processing of transfer */
 1028|     13|      Curl_multi_mark_dirty(data);
 1029|     13|    }
 1030|     36|    else if(!Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  Branch (1030:13): [True: 7, False: 29]
  ------------------
 1031|       |      /* resume the potentially suspended stream */
 1032|      7|      rv = nghttp2_session_resume_data(ctx->h2, stream->id);
 1033|      7|      if(nghttp2_is_fatal(rv))
  ------------------
  |  Branch (1033:10): [True: 0, False: 7]
  ------------------
 1034|      0|        return CURLE_SEND_ERROR;
 1035|      7|    }
 1036|     49|    break;
 1037|     49|  default:
  ------------------
  |  Branch (1037:3): [True: 0, False: 116]
  ------------------
 1038|      0|    break;
 1039|    116|  }
 1040|       |
 1041|    116|  if(frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
  ------------------
  |  Branch (1041:6): [True: 37, False: 79]
  ------------------
 1042|     37|    if(!stream->closed && !stream->body_eos &&
  ------------------
  |  Branch (1042:8): [True: 37, False: 0]
  |  Branch (1042:27): [True: 10, False: 27]
  ------------------
 1043|     10|       ((stream->status_code >= 400) || (stream->status_code < 200))) {
  ------------------
  |  Branch (1043:9): [True: 3, False: 7]
  |  Branch (1043:41): [True: 0, False: 7]
  ------------------
 1044|       |      /* The server did not give us a positive response and we are not
 1045|       |       * done uploading the request body. We need to stop doing that and
 1046|       |       * also inform the server that we aborted our side. */
 1047|      3|      CURL_TRC_CF(data, cf, "[%d] EOS frame with unfinished upload and "
  ------------------
  |  |  153|      3|  do {                                          \
  |  |  154|      3|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      3|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      6|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 3, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 3]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      6|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      3|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      3|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      3|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3]
  |  |  ------------------
  ------------------
 1048|      3|                  "HTTP status %d, abort upload by RST",
 1049|      3|                  stream_id, stream->status_code);
 1050|      3|      nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
 1051|      3|                                stream->id, NGHTTP2_STREAM_CLOSED);
 1052|       |      stream->closed = TRUE;
  ------------------
  |  | 1055|      3|#define TRUE true
  ------------------
 1053|      3|    }
 1054|     37|    Curl_multi_mark_dirty(data);
 1055|     37|  }
 1056|    116|  return CURLE_OK;
 1057|    116|}
http2.c:h2_xfer_write_resp_hd:
  903|  15.2k|{
  904|       |  /* If we already encountered an error, skip further writes */
  905|  15.2k|  if(!stream->xfer_result) {
  ------------------
  |  Branch (905:6): [True: 10.0k, False: 5.21k]
  ------------------
  906|  10.0k|    stream->xfer_result = Curl_xfer_write_resp_hd(data, buf, blen, eos);
  907|  10.0k|    if(!stream->xfer_result && !eos)
  ------------------
  |  Branch (907:8): [True: 9.96k, False: 95]
  |  Branch (907:32): [True: 9.96k, False: 0]
  ------------------
  908|  9.96k|      stream->xfer_result = cf_h2_update_local_win(cf, data, stream);
  909|  10.0k|    if(stream->xfer_result)
  ------------------
  |  Branch (909:8): [True: 95, False: 9.96k]
  ------------------
  910|     95|      CURL_TRC_CF(data, cf, "[%d] error %d writing %zu bytes of headers",
  ------------------
  |  |  153|     95|  do {                                          \
  |  |  154|     95|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     95|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    190|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 95, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 95]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    190|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     95|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     95|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     95|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 95]
  |  |  ------------------
  ------------------
  911|  10.0k|                  stream->id, stream->xfer_result, blen);
  912|  10.0k|  }
  913|  15.2k|}
http2.c:cf_h2_update_local_win:
  312|  29.2k|{
  313|  29.2k|  struct cf_h2_ctx *ctx = cf->ctx;
  314|  29.2k|  int32_t dwsize;
  315|  29.2k|  int rv;
  316|       |
  317|  29.2k|  dwsize = (stream->write_paused || stream->xfer_result) ?
  ------------------
  |  Branch (317:13): [True: 0, False: 29.2k]
  |  Branch (317:37): [True: 0, False: 29.2k]
  ------------------
  318|  29.2k|           0 : cf_h2_get_desired_local_win(cf, data);
  319|  29.2k|  if(dwsize != stream->local_window_size) {
  ------------------
  |  Branch (319:6): [True: 2.93k, False: 26.3k]
  ------------------
  320|  2.93k|    int32_t wsize = nghttp2_session_get_stream_effective_local_window_size(
  321|  2.93k|                      ctx->h2, stream->id);
  322|  2.93k|    if(dwsize > wsize) {
  ------------------
  |  Branch (322:8): [True: 0, False: 2.93k]
  ------------------
  323|      0|      rv = nghttp2_session_set_local_window_size(ctx->h2, NGHTTP2_FLAG_NONE,
  324|      0|                                                 stream->id, dwsize);
  325|      0|      if(rv) {
  ------------------
  |  Branch (325:10): [True: 0, False: 0]
  ------------------
  326|      0|        failf(data, "[%d] nghttp2 set_local_window_size(%d) failed: "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  327|      0|              "%s(%d)", stream->id, dwsize, nghttp2_strerror(rv), rv);
  328|      0|        return CURLE_HTTP2;
  329|      0|      }
  330|      0|      rv = nghttp2_submit_window_update(ctx->h2, NGHTTP2_FLAG_NONE,
  331|      0|                                        stream->id, dwsize - wsize);
  332|      0|      if(rv) {
  ------------------
  |  Branch (332:10): [True: 0, False: 0]
  ------------------
  333|      0|        failf(data, "[%d] nghttp2_submit_window_update() failed: "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  334|      0|              "%s(%d)", stream->id, nghttp2_strerror(rv), rv);
  335|      0|        return CURLE_HTTP2;
  336|      0|      }
  337|      0|      stream->local_window_size = dwsize;
  338|      0|      CURL_TRC_CF(data, cf, "[%d] local window update by %d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  339|      0|                  stream->id, dwsize - wsize);
  340|      0|    }
  341|  2.93k|    else {
  342|  2.93k|      rv = nghttp2_session_set_local_window_size(ctx->h2, NGHTTP2_FLAG_NONE,
  343|  2.93k|                                                 stream->id, dwsize);
  344|  2.93k|      if(rv) {
  ------------------
  |  Branch (344:10): [True: 0, False: 2.93k]
  ------------------
  345|      0|        failf(data, "[%d] nghttp2_session_set_local_window_size() failed: "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  346|      0|              "%s(%d)", stream->id, nghttp2_strerror(rv), rv);
  347|      0|        return CURLE_HTTP2;
  348|      0|      }
  349|  2.93k|      stream->local_window_size = dwsize;
  350|  2.93k|      CURL_TRC_CF(data, cf, "[%d] local window size now %d",
  ------------------
  |  |  153|  2.93k|  do {                                          \
  |  |  154|  2.93k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.93k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.86k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.93k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.93k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.86k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.93k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.93k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.93k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.93k]
  |  |  ------------------
  ------------------
  351|  2.93k|                  stream->id, dwsize);
  352|  2.93k|    }
  353|  2.93k|  }
  354|  29.2k|  return CURLE_OK;
  355|  29.2k|}
http2.c:cf_h2_get_desired_local_win:
  295|  29.2k|{
  296|  29.2k|  curl_off_t avail = Curl_rlimit_avail(&data->progress.dl.rlimit,
  297|  29.2k|                                       Curl_pgrs_now(data));
  298|       |
  299|  29.2k|  (void)cf;
  300|  29.2k|  if(avail < CURL_OFF_T_MAX) { /* limit in place */
  ------------------
  |  |  594|  29.2k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (300:6): [True: 29.2k, False: 0]
  ------------------
  301|  29.2k|    if(avail <= 0)
  ------------------
  |  Branch (301:8): [True: 0, False: 29.2k]
  ------------------
  302|      0|      return 0;
  303|  29.2k|    else if(avail < INT32_MAX)
  ------------------
  |  Branch (303:13): [True: 29.2k, False: 0]
  ------------------
  304|  29.2k|      return (int32_t)avail;
  305|  29.2k|  }
  306|      0|  return H2_STREAM_WINDOW_SIZE_MAX;
  ------------------
  |  |   69|      0|#define H2_STREAM_WINDOW_SIZE_MAX   (10 * 1024 * 1024)
  ------------------
  307|  29.2k|}
http2.c:http2_data_done:
  426|  2.94k|{
  427|  2.94k|  struct cf_h2_ctx *ctx = cf->ctx;
  428|  2.94k|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  2.94k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  2.94k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 2.94k, False: 0]
  |  |  ------------------
  ------------------
  429|       |
  430|  2.94k|  DEBUGASSERT(ctx);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (430:3): [True: 0, False: 2.94k]
  |  Branch (430:3): [True: 2.94k, False: 0]
  ------------------
  431|  2.94k|  if(!stream || !ctx->initialized)
  ------------------
  |  Branch (431:6): [True: 0, False: 2.94k]
  |  Branch (431:17): [True: 0, False: 2.94k]
  ------------------
  432|      0|    return;
  433|       |
  434|  2.94k|  if(ctx->h2) {
  ------------------
  |  Branch (434:6): [True: 2.94k, False: 0]
  ------------------
  435|  2.94k|    bool flush_egress = FALSE;
  ------------------
  |  | 1058|  2.94k|#define FALSE false
  ------------------
  436|       |    /* returns error if stream not known, which is fine here */
  437|  2.94k|    (void)nghttp2_session_set_stream_user_data(ctx->h2, stream->id, NULL);
  438|       |
  439|  2.94k|    if(!stream->closed && stream->id > 0) {
  ------------------
  |  Branch (439:8): [True: 2.54k, False: 404]
  |  Branch (439:27): [True: 2.52k, False: 14]
  ------------------
  440|       |      /* RST_STREAM */
  441|  2.52k|      CURL_TRC_CF(data, cf, "[%d] premature DATA_DONE, RST stream",
  ------------------
  |  |  153|  2.52k|  do {                                          \
  |  |  154|  2.52k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.52k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.05k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.52k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.52k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.05k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.52k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.52k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.52k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.52k]
  |  |  ------------------
  ------------------
  442|  2.52k|                  stream->id);
  443|  2.52k|      stream->closed = TRUE;
  ------------------
  |  | 1055|  2.52k|#define TRUE true
  ------------------
  444|  2.52k|      stream->reset = TRUE;
  ------------------
  |  | 1055|  2.52k|#define TRUE true
  ------------------
  445|  2.52k|      nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
  446|  2.52k|                                stream->id, NGHTTP2_STREAM_CLOSED);
  447|  2.52k|      flush_egress = TRUE;
  ------------------
  |  | 1055|  2.52k|#define TRUE true
  ------------------
  448|  2.52k|    }
  449|       |
  450|  2.94k|    if(flush_egress) {
  ------------------
  |  Branch (450:8): [True: 2.52k, False: 418]
  ------------------
  451|  2.52k|      (void)nghttp2_session_send(ctx->h2);
  452|  2.52k|      (void)nw_out_flush(cf, data);
  453|  2.52k|    }
  454|  2.94k|  }
  455|       |
  456|  2.94k|  Curl_uint32_hash_remove(&ctx->streams, data->mid);
  457|  2.94k|}
http2.c:nw_out_flush:
  404|  17.1k|{
  405|  17.1k|  struct cf_h2_ctx *ctx = cf->ctx;
  406|  17.1k|  size_t nwritten;
  407|  17.1k|  CURLcode result;
  408|       |
  409|  17.1k|  if(Curl_bufq_is_empty(&ctx->outbufq))
  ------------------
  |  Branch (409:6): [True: 7.51k, False: 9.67k]
  ------------------
  410|  7.51k|    return CURLE_OK;
  411|       |
  412|  9.67k|  result = Curl_cf_send_bufq(cf->next, data, &ctx->outbufq, NULL, 0,
  413|  9.67k|                             &nwritten);
  414|  9.67k|  if(result) {
  ------------------
  |  Branch (414:6): [True: 1.87k, False: 7.79k]
  ------------------
  415|  1.87k|    if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (415:8): [True: 1.87k, False: 0]
  ------------------
  416|  1.87k|      CURL_TRC_CF(data, cf, "flush nw send buffer(%zu) -> EAGAIN",
  ------------------
  |  |  153|  1.87k|  do {                                          \
  |  |  154|  1.87k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  1.87k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  3.74k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.87k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.87k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  3.74k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  1.87k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.87k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.87k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.87k]
  |  |  ------------------
  ------------------
  417|  1.87k|                  Curl_bufq_len(&ctx->outbufq));
  418|  1.87k|      ctx->nw_out_blocked = 1;
  419|  1.87k|    }
  420|  1.87k|    return result;
  421|  1.87k|  }
  422|  7.79k|  return Curl_bufq_is_empty(&ctx->outbufq) ? CURLE_OK : CURLE_AGAIN;
  ------------------
  |  Branch (422:10): [True: 7.78k, False: 10]
  ------------------
  423|  9.67k|}
http2.c:free_push_headers:
  153|  2.94k|{
  154|  2.94k|  size_t i;
  155|  2.94k|  for(i = 0; i < stream->push_headers_used; i++)
  ------------------
  |  Branch (155:14): [True: 0, False: 2.94k]
  ------------------
  156|      0|    curlx_free(stream->push_headers[i]);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  157|       |  curlx_safefree(stream->push_headers);
  ------------------
  |  | 1327|  2.94k|  do {                      \
  |  | 1328|  2.94k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  2.94k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  2.94k|    (ptr) = NULL;           \
  |  | 1330|  2.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
  158|  2.94k|  stream->push_headers_used = 0;
  159|  2.94k|}
http2.c:cf_h2_on_invalid_frame_recv:
 1236|    584|{
 1237|    584|  struct Curl_cfilter *cf = userp;
 1238|    584|  struct cf_h2_ctx *ctx = cf->ctx;
 1239|    584|  struct Curl_easy *data;
 1240|    584|  int32_t stream_id = frame->hd.stream_id;
 1241|       |
 1242|    584|  data = nghttp2_session_get_stream_user_data(session, stream_id);
 1243|    584|  if(data) {
  ------------------
  |  Branch (1243:6): [True: 352, False: 232]
  ------------------
 1244|    352|    struct h2_stream_ctx *stream;
 1245|    352|#ifdef CURLVERBOSE
 1246|    352|    char buffer[256];
 1247|    352|    int len;
 1248|    352|    len = Curl_nghttp2_fr_print(frame, buffer, sizeof(buffer) - 1);
 1249|    352|    buffer[len] = 0;
 1250|    352|    failf(data, "[HTTP2] [%d] received invalid frame: %s, error %d: %s",
  ------------------
  |  |   62|    352|#define failf Curl_failf
  ------------------
 1251|    352|          stream_id, buffer, ngerr, nghttp2_strerror(ngerr));
 1252|    352|#endif /* CURLVERBOSE */
 1253|    352|    stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|    352|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|    352|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 352, False: 0]
  |  |  ------------------
  ------------------
 1254|    352|    if(stream) {
  ------------------
  |  Branch (1254:8): [True: 352, False: 0]
  ------------------
 1255|    352|      nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
 1256|    352|                                stream->id, NGHTTP2_STREAM_CLOSED);
 1257|    352|      stream->error = ngerr;
 1258|    352|      stream->closed = TRUE;
  ------------------
  |  | 1055|    352|#define TRUE true
  ------------------
 1259|    352|      stream->reset = TRUE;
  ------------------
  |  | 1055|    352|#define TRUE true
  ------------------
 1260|    352|      return 0;  /* keep the connection alive */
 1261|    352|    }
 1262|    352|  }
 1263|    232|  return NGHTTP2_ERR_CALLBACK_FAILURE;
 1264|    584|}
http2.c:on_frame_send:
 1133|  14.6k|{
 1134|  14.6k|  struct Curl_cfilter *cf = userp;
 1135|  14.6k|  struct cf_h2_ctx *ctx = cf->ctx;
 1136|  14.6k|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  699|  14.6k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  120|  14.6k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 14.6k, False: 0]
  |  |  ------------------
  ------------------
 1137|       |
 1138|  14.6k|  (void)session;
 1139|  14.6k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  14.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1139:3): [True: 0, False: 14.6k]
  |  Branch (1139:3): [True: 14.6k, False: 0]
  ------------------
 1140|  14.6k|  if(Curl_trc_cf_is_verbose(cf, data)) {
  ------------------
  |  |  323|  14.6k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  ------------------
  |  |  |  |  319|  29.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 14.6k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 14.6k]
  |  |  |  |  ------------------
  |  |  |  |  320|  29.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  324|  14.6k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1141|      0|    char buffer[256];
 1142|      0|    int len;
 1143|      0|    len = Curl_nghttp2_fr_print(frame, buffer, sizeof(buffer) - 1);
 1144|      0|    buffer[len] = 0;
 1145|      0|    CURL_TRC_CF(data, cf, "[%d] -> %s", frame->hd.stream_id, buffer);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1146|      0|  }
 1147|  14.6k|  if((frame->hd.type == NGHTTP2_GOAWAY) && !ctx->sent_goaway) {
  ------------------
  |  Branch (1147:6): [True: 1.49k, False: 13.1k]
  |  Branch (1147:44): [True: 1.02k, False: 469]
  ------------------
 1148|       |    /* A GOAWAY not initiated by us, but by nghttp2 itself on detecting
 1149|       |     * a protocol error on the connection */
 1150|  1.02k|    failf(data, "nghttp2 shuts down connection with error %u: %s",
  ------------------
  |  |   62|  1.02k|#define failf Curl_failf
  ------------------
 1151|  1.02k|          frame->goaway.error_code,
 1152|  1.02k|          nghttp2_http2_strerror(frame->goaway.error_code));
 1153|  1.02k|  }
 1154|  14.6k|  return 0;
 1155|  14.6k|}
http2.c:on_stream_close:
 1304|  1.82k|{
 1305|  1.82k|  struct Curl_cfilter *cf = userp;
 1306|  1.82k|  struct cf_h2_ctx *ctx = cf->ctx;
 1307|  1.82k|  struct Curl_easy *data_s, *call_data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  699|  1.82k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  120|  1.82k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 1.82k, False: 0]
  |  |  ------------------
  ------------------
 1308|  1.82k|  struct h2_stream_ctx *stream;
 1309|  1.82k|  int rv;
 1310|  1.82k|  (void)session;
 1311|       |
 1312|  1.82k|  DEBUGASSERT(call_data);
  ------------------
  |  | 1081|  1.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1312:3): [True: 0, False: 1.82k]
  |  Branch (1312:3): [True: 1.82k, False: 0]
  ------------------
 1313|       |  /* stream id 0 is the connection, do not look there for streams. */
 1314|  1.82k|  data_s = stream_id ?
  ------------------
  |  Branch (1314:12): [True: 1.82k, False: 0]
  ------------------
 1315|  1.82k|    nghttp2_session_get_stream_user_data(session, stream_id) : NULL;
 1316|  1.82k|  if(!data_s) {
  ------------------
  |  Branch (1316:6): [True: 1.60k, False: 218]
  ------------------
 1317|  1.60k|    CURL_TRC_CF(call_data, cf,
  ------------------
  |  |  153|  1.60k|  do {                                          \
  |  |  154|  1.60k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  1.60k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  3.21k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.60k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.60k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  3.21k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  1.60k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.60k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.60k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.60k]
  |  |  ------------------
  ------------------
 1318|  1.60k|                "[%d] on_stream_close, no easy set on stream", stream_id);
 1319|  1.60k|    return 0;
 1320|  1.60k|  }
 1321|    218|  if(!GOOD_EASY_HANDLE(data_s)) {
  ------------------
  |  |  136|    218|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|    218|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|    218|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 218, False: 0]
  |  |  |  Branch (136:12): [True: 218, False: 0]
  |  |  ------------------
  |  |  137|    218|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1321:6): [True: 0, False: 218]
  |  Branch (1321:7): [True: 0, False: 0]
  |  Branch (1321:7): [True: 0, False: 0]
  ------------------
 1322|       |    /* nghttp2 still has an easy registered for the stream which has
 1323|       |     * been freed be libcurl. This points to a code path that does not
 1324|       |     * trigger DONE or DETACH events as it must. */
 1325|      0|    CURL_TRC_CF(call_data, cf,
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1326|      0|                "[%d] on_stream_close, not a GOOD easy on stream", stream_id);
 1327|      0|    (void)nghttp2_session_set_stream_user_data(session, stream_id, 0);
 1328|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1329|      0|  }
 1330|    218|  stream = H2_STREAM_CTX(ctx, data_s);
  ------------------
  |  |  265|    218|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|    218|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 218, False: 0]
  |  |  ------------------
  ------------------
 1331|    218|  if(!stream) {
  ------------------
  |  Branch (1331:6): [True: 0, False: 218]
  ------------------
 1332|      0|    CURL_TRC_CF(data_s, cf,
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1333|      0|                "[%d] on_stream_close, GOOD easy but no stream", stream_id);
 1334|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1335|      0|  }
 1336|       |
 1337|    218|  stream->closed = TRUE;
  ------------------
  |  | 1055|    218|#define TRUE true
  ------------------
 1338|    218|  stream->error = error_code;
 1339|    218|  if(stream->error)
  ------------------
  |  Branch (1339:6): [True: 186, False: 32]
  ------------------
 1340|    186|    stream->reset = TRUE;
  ------------------
  |  | 1055|    186|#define TRUE true
  ------------------
 1341|       |
 1342|    218|  if(stream->error)
  ------------------
  |  Branch (1342:6): [True: 186, False: 32]
  ------------------
 1343|    186|    CURL_TRC_CF(data_s, cf, "[%d] RESET: %s (err %u)",
  ------------------
  |  |  153|    186|  do {                                          \
  |  |  154|    186|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    186|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    372|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 186, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 186]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    372|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    186|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    186|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    186|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 186]
  |  |  ------------------
  ------------------
 1344|    218|              stream_id, nghttp2_http2_strerror(error_code), error_code);
 1345|     32|  else
 1346|     32|    CURL_TRC_CF(data_s, cf, "[%d] CLOSED", stream_id);
  ------------------
  |  |  153|     32|  do {                                          \
  |  |  154|     32|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     32|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     64|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 32, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 32]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     64|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     32|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     32|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     32|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 32]
  |  |  ------------------
  ------------------
 1347|    218|  Curl_multi_mark_dirty(data_s);
 1348|       |
 1349|       |  /* remove `data_s` from the nghttp2 stream */
 1350|    218|  rv = nghttp2_session_set_stream_user_data(session, stream_id, 0);
 1351|    218|  if(rv) {
  ------------------
  |  Branch (1351:6): [True: 0, False: 218]
  ------------------
 1352|      0|    infof(data_s, "http/2: failed to clear user_data for stream %d",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1353|      0|          stream_id);
 1354|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1354:5): [Folded, False: 0]
  |  Branch (1354:5): [Folded, False: 0]
  ------------------
 1355|      0|  }
 1356|    218|  return 0;
 1357|    218|}
http2.c:on_begin_headers:
 1361|  1.27k|{
 1362|  1.27k|  struct Curl_cfilter *cf = userp;
 1363|  1.27k|  struct cf_h2_ctx *ctx = cf->ctx;
 1364|  1.27k|  struct h2_stream_ctx *stream;
 1365|  1.27k|  struct Curl_easy *data_s = NULL;
 1366|       |
 1367|  1.27k|  (void)cf;
 1368|  1.27k|  data_s = nghttp2_session_get_stream_user_data(session, frame->hd.stream_id);
 1369|  1.27k|  if(!data_s) {
  ------------------
  |  Branch (1369:6): [True: 0, False: 1.27k]
  ------------------
 1370|      0|    return 0;
 1371|      0|  }
 1372|       |
 1373|  1.27k|  if(frame->hd.type != NGHTTP2_HEADERS) {
  ------------------
  |  Branch (1373:6): [True: 0, False: 1.27k]
  ------------------
 1374|      0|    return 0;
 1375|      0|  }
 1376|       |
 1377|  1.27k|  stream = H2_STREAM_CTX(ctx, data_s);
  ------------------
  |  |  265|  1.27k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  1.27k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 1.27k, False: 0]
  |  |  ------------------
  ------------------
 1378|  1.27k|  if(!stream || !stream->bodystarted) {
  ------------------
  |  Branch (1378:6): [True: 0, False: 1.27k]
  |  Branch (1378:17): [True: 1.27k, False: 0]
  ------------------
 1379|  1.27k|    return 0;
 1380|  1.27k|  }
 1381|       |
 1382|      0|  return 0;
 1383|  1.27k|}
http2.c:on_header:
 1408|  15.2k|{
 1409|  15.2k|  struct Curl_cfilter *cf = userp;
 1410|  15.2k|  struct cf_h2_ctx *ctx = cf->ctx;
 1411|  15.2k|  struct h2_stream_ctx *stream;
 1412|  15.2k|  struct Curl_easy *data_s;
 1413|  15.2k|  int32_t stream_id = frame->hd.stream_id;
 1414|  15.2k|  CURLcode result;
 1415|  15.2k|  (void)flags;
 1416|       |
 1417|  15.2k|  DEBUGASSERT(stream_id); /* should never be a zero stream ID here */
  ------------------
  |  | 1081|  15.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1417:3): [True: 0, False: 15.2k]
  |  Branch (1417:3): [True: 15.2k, False: 0]
  ------------------
 1418|       |
 1419|       |  /* get the stream from the hash based on Stream ID */
 1420|  15.2k|  data_s = nghttp2_session_get_stream_user_data(session, stream_id);
 1421|  15.2k|  if(!GOOD_EASY_HANDLE(data_s))
  ------------------
  |  |  136|  15.2k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  15.2k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  15.2k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 15.2k, False: 0]
  |  |  |  Branch (136:12): [True: 15.2k, False: 0]
  |  |  ------------------
  |  |  137|  15.2k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1421:6): [True: 0, False: 15.2k]
  |  Branch (1421:7): [True: 0, False: 0]
  |  Branch (1421:7): [True: 0, False: 0]
  ------------------
 1422|       |    /* Receiving a Stream ID not in the hash should not happen, this is an
 1423|       |       internal error more than anything else! */
 1424|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1425|       |
 1426|  15.2k|  stream = H2_STREAM_CTX(ctx, data_s);
  ------------------
  |  |  265|  15.2k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  15.2k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 15.2k, False: 0]
  |  |  ------------------
  ------------------
 1427|  15.2k|  if(!stream) {
  ------------------
  |  Branch (1427:6): [True: 0, False: 15.2k]
  ------------------
 1428|      0|    failf(data_s, "Internal NULL stream");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1429|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1430|      0|  }
 1431|       |
 1432|       |  /* Store received PUSH_PROMISE headers to be used when the subsequent
 1433|       |     PUSH_PROMISE callback comes */
 1434|  15.2k|  if(frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (1434:6): [True: 0, False: 15.2k]
  ------------------
 1435|      0|    char *h;
 1436|       |
 1437|      0|    if((namelen == (sizeof(HTTP_PSEUDO_AUTHORITY) - 1)) &&
  ------------------
  |  |  227|      0|#define HTTP_PSEUDO_AUTHORITY ":authority"
  ------------------
  |  Branch (1437:8): [True: 0, False: 0]
  ------------------
 1438|      0|       !strncmp(HTTP_PSEUDO_AUTHORITY, (const char *)name, namelen)) {
  ------------------
  |  |  227|      0|#define HTTP_PSEUDO_AUTHORITY ":authority"
  ------------------
  |  Branch (1438:8): [True: 0, False: 0]
  ------------------
 1439|       |      /* pseudo headers are lower case */
 1440|      0|      int rc = 0;
 1441|      0|      char *check = curl_maprintf("%s:%d", cf->conn->origin->hostname,
 1442|      0|                                  cf->conn->origin->port);
 1443|      0|      if(!check)
  ------------------
  |  Branch (1443:10): [True: 0, False: 0]
  ------------------
 1444|       |        /* no memory */
 1445|      0|        return NGHTTP2_ERR_CALLBACK_FAILURE;
 1446|      0|      if(!curl_strequal(check, (const char *)value) &&
  ------------------
  |  Branch (1446:10): [True: 0, False: 0]
  ------------------
 1447|      0|         ((cf->conn->origin->port != cf->conn->given->defport) ||
  ------------------
  |  Branch (1447:11): [True: 0, False: 0]
  ------------------
 1448|      0|          !curl_strequal(cf->conn->origin->hostname, (const char *)value))) {
  ------------------
  |  Branch (1448:11): [True: 0, False: 0]
  ------------------
 1449|       |        /* This is push is not for the same authority that was asked for in
 1450|       |         * the URL. RFC 7540 section 8.2 says: "A client MUST treat a
 1451|       |         * PUSH_PROMISE for which the server is not authoritative as a stream
 1452|       |         * error of type PROTOCOL_ERROR."
 1453|       |         */
 1454|      0|        (void)nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE,
 1455|      0|                                        stream_id, NGHTTP2_PROTOCOL_ERROR);
 1456|      0|        rc = NGHTTP2_ERR_CALLBACK_FAILURE;
 1457|      0|      }
 1458|      0|      curlx_free(check);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1459|      0|      if(rc)
  ------------------
  |  Branch (1459:10): [True: 0, False: 0]
  ------------------
 1460|      0|        return rc;
 1461|      0|    }
 1462|       |
 1463|      0|    if(!stream->push_headers) {
  ------------------
  |  Branch (1463:8): [True: 0, False: 0]
  ------------------
 1464|      0|      stream->push_headers_alloc = 10;
 1465|      0|      stream->push_headers = curlx_malloc(stream->push_headers_alloc *
  ------------------
  |  | 1478|      0|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
 1466|      0|                                          sizeof(char *));
 1467|      0|      if(!stream->push_headers)
  ------------------
  |  Branch (1467:10): [True: 0, False: 0]
  ------------------
 1468|      0|        return NGHTTP2_ERR_CALLBACK_FAILURE;
 1469|      0|      stream->push_headers_used = 0;
 1470|      0|    }
 1471|      0|    else if(stream->push_headers_used ==
  ------------------
  |  Branch (1471:13): [True: 0, False: 0]
  ------------------
 1472|      0|            stream->push_headers_alloc) {
 1473|      0|      char **headp;
 1474|      0|      if(stream->push_headers_alloc > 1000) {
  ------------------
  |  Branch (1474:10): [True: 0, False: 0]
  ------------------
 1475|       |        /* this is beyond crazy many headers, bail out */
 1476|      0|        failf(data_s, "Too many PUSH_PROMISE headers");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1477|      0|        free_push_headers(stream);
 1478|      0|        return NGHTTP2_ERR_CALLBACK_FAILURE;
 1479|      0|      }
 1480|      0|      stream->push_headers_alloc *= 2;
 1481|      0|      headp = curlx_realloc(stream->push_headers,
  ------------------
  |  | 1482|      0|  curl_dbg_realloc(ptr, size, __LINE__, __FILE__)
  ------------------
 1482|      0|                            stream->push_headers_alloc * sizeof(char *));
 1483|      0|      if(!headp) {
  ------------------
  |  Branch (1483:10): [True: 0, False: 0]
  ------------------
 1484|      0|        free_push_headers(stream);
 1485|      0|        return NGHTTP2_ERR_CALLBACK_FAILURE;
 1486|      0|      }
 1487|      0|      stream->push_headers = headp;
 1488|      0|    }
 1489|      0|    h = curl_maprintf("%s:%s", name, value);
 1490|      0|    if(!h) {
  ------------------
  |  Branch (1490:8): [True: 0, False: 0]
  ------------------
 1491|      0|      free_push_headers(stream);
 1492|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1493|      0|    }
 1494|      0|    stream->push_headers[stream->push_headers_used++] = h;
 1495|      0|    return 0;
 1496|      0|  }
 1497|       |
 1498|  15.2k|  if(stream->bodystarted) {
  ------------------
  |  Branch (1498:6): [True: 0, False: 15.2k]
  ------------------
 1499|       |    /* This is a trailer */
 1500|      0|    CURL_TRC_CF(data_s, cf, "[%d] trailer: %.*s: %.*s",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1501|      0|                stream->id, (int)namelen, name, (int)valuelen, value);
 1502|      0|    result = Curl_dynhds_add(&stream->resp_trailers,
 1503|      0|                             (const char *)name, namelen,
 1504|      0|                             (const char *)value, valuelen);
 1505|      0|    if(result) {
  ------------------
  |  Branch (1505:8): [True: 0, False: 0]
  ------------------
 1506|      0|      cf_h2_header_error(cf, data_s, stream, result);
 1507|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1508|      0|    }
 1509|       |
 1510|      0|    return 0;
 1511|      0|  }
 1512|       |
 1513|  15.2k|  if(namelen == sizeof(HTTP_PSEUDO_STATUS) - 1 &&
  ------------------
  |  |  229|  15.2k|#define HTTP_PSEUDO_STATUS    ":status"
  ------------------
  |  Branch (1513:6): [True: 1.07k, False: 14.1k]
  ------------------
 1514|  1.07k|     memcmp(HTTP_PSEUDO_STATUS, name, namelen) == 0) {
  ------------------
  |  |  229|  1.07k|#define HTTP_PSEUDO_STATUS    ":status"
  ------------------
  |  Branch (1514:6): [True: 487, False: 586]
  ------------------
 1515|       |    /* nghttp2 guarantees :status is received first and only once. */
 1516|    487|    char buffer[32];
 1517|    487|    size_t hlen;
 1518|    487|    result = Curl_http_decode_status(&stream->status_code,
 1519|    487|                                     (const char *)value, valuelen);
 1520|    487|    if(result) {
  ------------------
  |  Branch (1520:8): [True: 0, False: 487]
  ------------------
 1521|      0|      cf_h2_header_error(cf, data_s, stream, result);
 1522|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1523|      0|    }
 1524|    487|    hlen = curl_msnprintf(buffer, sizeof(buffer), HTTP_PSEUDO_STATUS ":%d\r",
  ------------------
  |  |  229|    487|#define HTTP_PSEUDO_STATUS    ":status"
  ------------------
 1525|    487|                          stream->status_code);
 1526|    487|    result = Curl_headers_push(data_s, buffer, hlen, CURLH_PSEUDO);
  ------------------
  |  |   45|    487|#define CURLH_PSEUDO    (1 << 4) /* pseudo headers */
  ------------------
 1527|    487|    if(result) {
  ------------------
  |  Branch (1527:8): [True: 0, False: 487]
  ------------------
 1528|      0|      cf_h2_header_error(cf, data_s, stream, result);
 1529|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1530|      0|    }
 1531|    487|    curlx_dyn_reset(&ctx->scratch);
 1532|    487|    result = curlx_dyn_addn(&ctx->scratch, STRCONST("HTTP/2 "));
  ------------------
  |  | 1292|    487|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 1533|    487|    if(!result)
  ------------------
  |  Branch (1533:8): [True: 487, False: 0]
  ------------------
 1534|    487|      result = curlx_dyn_addn(&ctx->scratch, value, valuelen);
 1535|    487|    if(!result)
  ------------------
  |  Branch (1535:8): [True: 487, False: 0]
  ------------------
 1536|    487|      result = curlx_dyn_addn(&ctx->scratch, STRCONST(" \r\n"));
  ------------------
  |  | 1292|    487|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 1537|    487|    if(!result)
  ------------------
  |  Branch (1537:8): [True: 487, False: 0]
  ------------------
 1538|    487|      h2_xfer_write_resp_hd(cf, data_s, stream, curlx_dyn_ptr(&ctx->scratch),
 1539|    487|                            curlx_dyn_len(&ctx->scratch), FALSE);
  ------------------
  |  | 1058|    487|#define FALSE false
  ------------------
 1540|    487|    if(result) {
  ------------------
  |  Branch (1540:8): [True: 0, False: 487]
  ------------------
 1541|      0|      cf_h2_header_error(cf, data_s, stream, result);
 1542|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1543|      0|    }
 1544|       |    /* if we receive data for another handle, wake that up */
 1545|    487|    if(CF_DATA_CURRENT(cf) != data_s)
  ------------------
  |  |  699|    487|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  120|    487|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 487, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1545:8): [True: 0, False: 487]
  ------------------
 1546|      0|      Curl_multi_mark_dirty(data_s);
 1547|       |
 1548|    487|    CURL_TRC_CF(data_s, cf, "[%d] status: HTTP/2 %03d",
  ------------------
  |  |  153|    487|  do {                                          \
  |  |  154|    487|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    487|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    974|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 487, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 487]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    974|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    487|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    487|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    487|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 487]
  |  |  ------------------
  ------------------
 1549|    487|                stream->id, stream->status_code);
 1550|    487|    return 0;
 1551|    487|  }
 1552|       |
 1553|       |  /* nghttp2 guarantees that namelen > 0, and :status was already
 1554|       |     received, and this is not pseudo-header field . */
 1555|       |  /* convert to an HTTP1-style header */
 1556|  14.7k|  curlx_dyn_reset(&ctx->scratch);
 1557|  14.7k|  result = curlx_dyn_addn(&ctx->scratch, (const char *)name, namelen);
 1558|  14.7k|  if(!result)
  ------------------
  |  Branch (1558:6): [True: 14.7k, False: 0]
  ------------------
 1559|  14.7k|    result = curlx_dyn_addn(&ctx->scratch, STRCONST(": "));
  ------------------
  |  | 1292|  14.7k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 1560|  14.7k|  if(!result)
  ------------------
  |  Branch (1560:6): [True: 14.7k, False: 0]
  ------------------
 1561|  14.7k|    result = curlx_dyn_addn(&ctx->scratch, (const char *)value, valuelen);
 1562|  14.7k|  if(!result)
  ------------------
  |  Branch (1562:6): [True: 14.7k, False: 0]
  ------------------
 1563|  14.7k|    result = curlx_dyn_addn(&ctx->scratch, STRCONST("\r\n"));
  ------------------
  |  | 1292|  14.7k|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
 1564|  14.7k|  if(!result)
  ------------------
  |  Branch (1564:6): [True: 14.7k, False: 0]
  ------------------
 1565|  14.7k|    h2_xfer_write_resp_hd(cf, data_s, stream, curlx_dyn_ptr(&ctx->scratch),
 1566|  14.7k|                          curlx_dyn_len(&ctx->scratch), FALSE);
  ------------------
  |  | 1058|  14.7k|#define FALSE false
  ------------------
 1567|  14.7k|  if(result) {
  ------------------
  |  Branch (1567:6): [True: 0, False: 14.7k]
  ------------------
 1568|      0|    cf_h2_header_error(cf, data_s, stream, result);
 1569|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1570|      0|  }
 1571|       |  /* if we receive data for another handle, wake that up */
 1572|  14.7k|  if(CF_DATA_CURRENT(cf) != data_s)
  ------------------
  |  |  699|  14.7k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  120|  14.7k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 14.7k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1572:6): [True: 0, False: 14.7k]
  ------------------
 1573|      0|    Curl_multi_mark_dirty(data_s);
 1574|       |
 1575|  14.7k|  CURL_TRC_CF(data_s, cf, "[%d] header: %.*s: %.*s",
  ------------------
  |  |  153|  14.7k|  do {                                          \
  |  |  154|  14.7k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  14.7k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  29.4k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 14.7k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 14.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  29.4k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  14.7k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  14.7k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  14.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
 1576|  14.7k|              stream->id, (int)namelen, name, (int)valuelen, value);
 1577|       |
 1578|  14.7k|  return 0; /* 0 is successful */
 1579|  14.7k|}
http2.c:error_callback:
 1637|  7.40k|{
 1638|  7.40k|  struct Curl_cfilter *cf = userp;
 1639|  7.40k|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  699|  7.40k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  120|  7.40k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 7.40k, False: 0]
  |  |  ------------------
  ------------------
 1640|  7.40k|  (void)session;
 1641|  7.40k|  failf(data, "%.*s", (int)len, msg);
  ------------------
  |  |   62|  7.40k|#define failf Curl_failf
  ------------------
 1642|  7.40k|  return 0;
 1643|  7.40k|}
http2.c:h2_client_new:
  461|  2.94k|{
  462|  2.94k|  struct cf_h2_ctx *ctx = cf->ctx;
  463|  2.94k|  nghttp2_option *o;
  464|  2.94k|  nghttp2_mem mem = { NULL, Curl_nghttp2_malloc, Curl_nghttp2_free,
  465|  2.94k|                      Curl_nghttp2_calloc, Curl_nghttp2_realloc };
  466|       |
  467|  2.94k|  int rc = nghttp2_option_new(&o);
  468|  2.94k|  if(rc)
  ------------------
  |  Branch (468:6): [True: 0, False: 2.94k]
  ------------------
  469|      0|    return rc;
  470|       |  /* We handle window updates ourself to enforce buffer limits */
  471|  2.94k|  nghttp2_option_set_no_auto_window_update(o, 1);
  472|  2.94k|#if NGHTTP2_VERSION_NUM >= 0x013200
  473|       |  /* with 1.50.0 */
  474|       |  /* turn off RFC 9113 leading and trailing white spaces validation against
  475|       |     HTTP field value. */
  476|  2.94k|  nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation(o, 1);
  477|  2.94k|#endif
  478|  2.94k|  rc = nghttp2_session_client_new3(&ctx->h2, cbs, cf, o, &mem);
  479|  2.94k|  nghttp2_option_del(o);
  480|  2.94k|  return rc;
  481|  2.94k|}
http2.c:http2_data_setup:
  373|  2.94k|{
  374|  2.94k|  struct cf_h2_ctx *ctx = cf->ctx;
  375|  2.94k|  struct h2_stream_ctx *stream;
  376|       |
  377|  2.94k|  (void)cf;
  378|  2.94k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (378:3): [True: 0, False: 2.94k]
  |  Branch (378:3): [True: 2.94k, False: 0]
  ------------------
  379|       |
  380|  2.94k|  if(!data)
  ------------------
  |  Branch (380:6): [True: 0, False: 2.94k]
  ------------------
  381|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  382|       |
  383|  2.94k|  stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  2.94k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  2.94k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 2.94k, False: 0]
  |  |  ------------------
  ------------------
  384|  2.94k|  if(stream) {
  ------------------
  |  Branch (384:6): [True: 0, False: 2.94k]
  ------------------
  385|      0|    *pstream = stream;
  386|      0|    return CURLE_OK;
  387|      0|  }
  388|       |
  389|  2.94k|  stream = h2_stream_ctx_create(ctx);
  390|  2.94k|  if(!stream)
  ------------------
  |  Branch (390:6): [True: 0, False: 2.94k]
  ------------------
  391|      0|    return CURLE_OUT_OF_MEMORY;
  392|       |
  393|  2.94k|  if(!Curl_uint32_hash_set(&ctx->streams, data->mid, stream)) {
  ------------------
  |  Branch (393:6): [True: 0, False: 2.94k]
  ------------------
  394|      0|    h2_stream_ctx_free(stream);
  395|      0|    return CURLE_OUT_OF_MEMORY;
  396|      0|  }
  397|       |
  398|  2.94k|  *pstream = stream;
  399|  2.94k|  return CURLE_OK;
  400|  2.94k|}
http2.c:h2_stream_ctx_create:
  269|  2.94k|{
  270|  2.94k|  struct h2_stream_ctx *stream;
  271|       |
  272|  2.94k|  (void)ctx;
  273|  2.94k|  stream = curlx_calloc(1, sizeof(*stream));
  ------------------
  |  | 1480|  2.94k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  274|  2.94k|  if(!stream)
  ------------------
  |  Branch (274:6): [True: 0, False: 2.94k]
  ------------------
  275|      0|    return NULL;
  276|       |
  277|  2.94k|  stream->id = -1;
  278|  2.94k|  Curl_bufq_initp(&stream->sendbuf, &ctx->stream_bufcp,
  279|  2.94k|                  H2_STREAM_SEND_CHUNKS, BUFQ_OPT_NONE);
  ------------------
  |  |   79|  2.94k|#define H2_STREAM_SEND_CHUNKS   ((64 * 1024) / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   61|  2.94k|#define H2_CHUNK_SIZE           (16 * 1024)
  |  |  ------------------
  ------------------
                                H2_STREAM_SEND_CHUNKS, BUFQ_OPT_NONE);
  ------------------
  |  |  106|  2.94k|#define BUFQ_OPT_NONE        0
  ------------------
  280|  2.94k|  Curl_h1_req_parse_init(&stream->h1, H1_PARSE_DEFAULT_MAX_LINE_LEN);
  ------------------
  |  |   35|  2.94k|#define H1_PARSE_DEFAULT_MAX_LINE_LEN   DYN_HTTP_REQUEST
  |  |  ------------------
  |  |  |  |   69|  2.94k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  |  |  ------------------
  ------------------
  281|  2.94k|  Curl_dynhds_init(&stream->resp_trailers, 0, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  2.94k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
  282|  2.94k|  stream->bodystarted = FALSE;
  ------------------
  |  | 1058|  2.94k|#define FALSE false
  ------------------
  283|  2.94k|  stream->status_code = -1;
  284|  2.94k|  stream->closed = FALSE;
  ------------------
  |  | 1058|  2.94k|#define FALSE false
  ------------------
  285|  2.94k|  stream->close_handled = FALSE;
  ------------------
  |  | 1058|  2.94k|#define FALSE false
  ------------------
  286|  2.94k|  stream->error = NGHTTP2_NO_ERROR;
  287|  2.94k|  stream->local_window_size = H2_STREAM_WINDOW_SIZE_INITIAL;
  ------------------
  |  |   73|  2.94k|#define H2_STREAM_WINDOW_SIZE_INITIAL  (64 * 1024)
  ------------------
  288|  2.94k|  stream->nrcvd_data = 0;
  289|  2.94k|  return stream;
  290|  2.94k|}
http2.c:h2_stream_ctx_free:
  162|  2.94k|{
  163|  2.94k|  Curl_bufq_free(&stream->sendbuf);
  164|  2.94k|  Curl_h1_req_parse_free(&stream->h1);
  165|  2.94k|  Curl_dynhds_free(&stream->resp_trailers);
  166|  2.94k|  free_push_headers(stream);
  167|  2.94k|  curlx_free(stream);
  ------------------
  |  | 1483|  2.94k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  168|  2.94k|}
http2.c:h2_progress_ingress:
 1873|  9.97k|{
 1874|  9.97k|  struct cf_h2_ctx *ctx = cf->ctx;
 1875|  9.97k|  struct h2_stream_ctx *stream;
 1876|  9.97k|  CURLcode result = CURLE_OK;
 1877|  9.97k|  size_t nread;
 1878|       |
 1879|  9.97k|  if(should_close_session(ctx)) {
  ------------------
  |  Branch (1879:6): [True: 356, False: 9.62k]
  ------------------
 1880|    356|    CURL_TRC_CF(data, cf, "[0] ingress: session is closed");
  ------------------
  |  |  153|    356|  do {                                          \
  |  |  154|    356|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    356|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    712|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 356, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 356]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    712|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    356|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    356|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    356|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 356]
  |  |  ------------------
  ------------------
 1881|    356|    return CURLE_HTTP2;
 1882|    356|  }
 1883|       |
 1884|       |  /* Process network input buffer first */
 1885|  9.62k|  if(!Curl_bufq_is_empty(&ctx->inbufq)) {
  ------------------
  |  Branch (1885:6): [True: 36, False: 9.58k]
  ------------------
 1886|     36|    CURL_TRC_CF(data, cf, "Process %zu bytes in connection buffer",
  ------------------
  |  |  153|     36|  do {                                          \
  |  |  154|     36|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     36|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     72|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 36, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 36]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     72|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     36|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     36|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     36|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 36]
  |  |  ------------------
  ------------------
 1887|     36|                Curl_bufq_len(&ctx->inbufq));
 1888|     36|    result = h2_process_pending_input(cf, data);
 1889|     36|    if(result)
  ------------------
  |  Branch (1889:8): [True: 2, False: 34]
  ------------------
 1890|      2|      return result;
 1891|     36|  }
 1892|       |
 1893|  9.62k|  if(!data_max_bytes)
  ------------------
  |  Branch (1893:6): [True: 0, False: 9.62k]
  ------------------
 1894|      0|    data_max_bytes = H2_CHUNK_SIZE;
  ------------------
  |  |   61|      0|#define H2_CHUNK_SIZE           (16 * 1024)
  ------------------
 1895|       |
 1896|       |  /* Receive data from the "lower" filters, e.g. network until
 1897|       |   * it is time to stop due to connection close or us not processing
 1898|       |   * all network input */
 1899|  16.4k|  while(!ctx->conn_closed && Curl_bufq_is_empty(&ctx->inbufq)) {
  ------------------
  |  Branch (1899:9): [True: 16.4k, False: 0]
  |  Branch (1899:30): [True: 16.4k, False: 0]
  ------------------
 1900|  16.4k|    stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  16.4k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  16.4k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 16.4k, False: 0]
  |  |  ------------------
  ------------------
 1901|  16.4k|    if(stream && (stream->closed || !data_max_bytes)) {
  ------------------
  |  Branch (1901:8): [True: 16.4k, False: 0]
  |  Branch (1901:19): [True: 401, False: 16.0k]
  |  Branch (1901:37): [True: 3, False: 16.0k]
  ------------------
 1902|       |      /* We would like to abort here and stop processing, so that the transfer
 1903|       |       * loop can handle the data/close here. This may leave data in
 1904|       |       * underlying buffers that will not be consumed. */
 1905|    404|      if(!cf->next || !cf->next->cft->has_data_pending(cf->next, data))
  ------------------
  |  Branch (1905:10): [True: 0, False: 404]
  |  Branch (1905:23): [True: 404, False: 0]
  ------------------
 1906|    404|        Curl_multi_mark_dirty(data);
 1907|    404|      break;
 1908|    404|    }
 1909|  16.0k|    else if(!stream) {
  ------------------
  |  Branch (1909:13): [True: 0, False: 16.0k]
  ------------------
 1910|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1910:7): [Folded, False: 0]
  |  Branch (1910:7): [Folded, False: 0]
  ------------------
 1911|      0|      break;
 1912|      0|    }
 1913|       |
 1914|  16.0k|    result = Curl_cf_recv_bufq(cf->next, data, &ctx->inbufq, 0, &nread);
 1915|  16.0k|    if(result) {
  ------------------
  |  Branch (1915:8): [True: 7.12k, False: 8.96k]
  ------------------
 1916|  7.12k|      if(result != CURLE_AGAIN) {
  ------------------
  |  Branch (1916:10): [True: 0, False: 7.12k]
  ------------------
 1917|      0|        failf(data, "Failed receiving HTTP2 data: %d(%s)", result,
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1918|      0|              curl_easy_strerror(result));
 1919|      0|        return result;
 1920|      0|      }
 1921|  7.12k|      break;
 1922|  7.12k|    }
 1923|  8.96k|    else if(nread == 0) {
  ------------------
  |  Branch (1923:13): [True: 1.86k, False: 7.09k]
  ------------------
 1924|  1.86k|      CURL_TRC_CF(data, cf, "[0] ingress: connection closed");
  ------------------
  |  |  153|  1.86k|  do {                                          \
  |  |  154|  1.86k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  1.86k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  3.73k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.86k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.86k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  3.73k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  1.86k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.86k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.86k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.86k]
  |  |  ------------------
  ------------------
 1925|  1.86k|      ctx->conn_closed = TRUE;
  ------------------
  |  | 1055|  1.86k|#define TRUE true
  ------------------
 1926|  1.86k|      break;
 1927|  1.86k|    }
 1928|  7.09k|    else {
 1929|  7.09k|      CURL_TRC_CF(data, cf, "[0] ingress: read %zu bytes", nread);
  ------------------
  |  |  153|  7.09k|  do {                                          \
  |  |  154|  7.09k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  7.09k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  14.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7.09k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.09k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  14.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  7.09k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  7.09k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  7.09k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 7.09k]
  |  |  ------------------
  ------------------
 1930|  7.09k|      data_max_bytes = (data_max_bytes > nread) ? (data_max_bytes - nread) : 0;
  ------------------
  |  Branch (1930:24): [True: 7.08k, False: 9]
  ------------------
 1931|  7.09k|    }
 1932|       |
 1933|  7.09k|    result = h2_process_pending_input(cf, data);
 1934|  7.09k|    if(result)
  ------------------
  |  Branch (1934:8): [True: 230, False: 6.86k]
  ------------------
 1935|    230|      return result;
 1936|  6.86k|    CURL_TRC_CF(data, cf, "[0] ingress: nw-in buffered %zu",
  ------------------
  |  |  153|  6.86k|  do {                                          \
  |  |  154|  6.86k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  6.86k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  13.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 6.86k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 6.86k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  13.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  6.86k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.86k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.86k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.86k]
  |  |  ------------------
  ------------------
 1937|  6.86k|                Curl_bufq_len(&ctx->inbufq));
 1938|  6.86k|  }
 1939|       |
 1940|  9.39k|  if(ctx->conn_closed && Curl_bufq_is_empty(&ctx->inbufq)) {
  ------------------
  |  Branch (1940:6): [True: 1.86k, False: 7.52k]
  |  Branch (1940:26): [True: 1.86k, False: 0]
  ------------------
 1941|  1.86k|    connclose(cf->conn, ctx->rcvd_goaway ? "server closed with GOAWAY" :
  ------------------
  |  |  103|  3.73k|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|  1.86k|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  |  |  |  Branch (103:68): [True: 11, False: 1.85k]
  |  |  ------------------
  ------------------
 1942|  1.86k|              "server closed abruptly");
 1943|  1.86k|  }
 1944|       |
 1945|  9.39k|  CURL_TRC_CF(data, cf, "[0] ingress: done");
  ------------------
  |  |  153|  9.39k|  do {                                          \
  |  |  154|  9.39k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  9.39k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  18.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 9.39k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 9.39k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  18.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  9.39k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  9.39k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  9.39k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 9.39k]
  |  |  ------------------
  ------------------
 1946|  9.39k|  return CURLE_OK;
 1947|  9.62k|}
http2.c:should_close_session:
  487|  13.0k|{
  488|  13.0k|  return ctx->drain_total == 0 && !nghttp2_session_want_read(ctx->h2) &&
  ------------------
  |  Branch (488:10): [True: 13.0k, False: 0]
  |  Branch (488:35): [True: 371, False: 12.6k]
  ------------------
  489|    371|    !nghttp2_session_want_write(ctx->h2);
  ------------------
  |  Branch (489:5): [True: 371, False: 0]
  ------------------
  490|  13.0k|}
http2.c:h2_process_pending_input:
  499|  7.13k|{
  500|  7.13k|  struct cf_h2_ctx *ctx = cf->ctx;
  501|  7.13k|  const unsigned char *buf;
  502|  7.13k|  size_t blen, nread;
  503|  7.13k|  ssize_t rv;
  504|       |
  505|  7.13k|  while(Curl_bufq_peek(&ctx->inbufq, &buf, &blen)) {
  ------------------
  |  Branch (505:9): [True: 7.13k, False: 0]
  ------------------
  506|  7.13k|    rv = nghttp2_session_mem_recv(ctx->h2, (const uint8_t *)buf, blen);
  507|  7.13k|    if(!curlx_sztouz(rv, &nread)) {
  ------------------
  |  Branch (507:8): [True: 232, False: 6.90k]
  ------------------
  508|    232|      failf(data, "nghttp2 recv error %zd: %s", rv, nghttp2_strerror((int)rv));
  ------------------
  |  |   62|    232|#define failf Curl_failf
  ------------------
  509|    232|      return CURLE_HTTP2;
  510|    232|    }
  511|  6.90k|    Curl_bufq_skip(&ctx->inbufq, nread);
  512|  6.90k|    if(Curl_bufq_is_empty(&ctx->inbufq)) {
  ------------------
  |  Branch (512:8): [True: 6.90k, False: 0]
  ------------------
  513|  6.90k|      break;
  514|  6.90k|    }
  515|      0|    else {
  516|      0|      CURL_TRC_CF(data, cf, "process_pending_input: %zu bytes left "
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  517|      0|                  "in connection buffer", Curl_bufq_len(&ctx->inbufq));
  518|      0|    }
  519|  6.90k|  }
  520|       |
  521|  6.90k|  if(nghttp2_session_check_request_allowed(ctx->h2) == 0) {
  ------------------
  |  Branch (521:6): [True: 1.34k, False: 5.55k]
  ------------------
  522|       |    /* No more requests are allowed in the current session, so
  523|       |       the connection may not be reused. This is set when a
  524|       |       GOAWAY frame has been received or when the limit of stream
  525|       |       identifiers has been reached. */
  526|  1.34k|    connclose(cf->conn, "http/2: No new requests allowed");
  ------------------
  |  |  103|  1.34k|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|  1.34k|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
  527|  1.34k|  }
  528|       |
  529|  6.90k|  return CURLE_OK;
  530|  7.13k|}
http2.c:h2_progress_egress:
 1798|  17.5k|{
 1799|  17.5k|  struct cf_h2_ctx *ctx = cf->ctx;
 1800|  17.5k|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  17.5k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  17.5k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 17.5k, False: 0]
  |  |  ------------------
  ------------------
 1801|  17.5k|  int rv = 0;
 1802|       |
 1803|  17.5k|  if(stream && stream->id > 0 &&
  ------------------
  |  Branch (1803:6): [True: 14.1k, False: 3.42k]
  |  Branch (1803:16): [True: 14.1k, False: 3]
  ------------------
 1804|  14.1k|     (sweight_wanted(data) != sweight_in_effect(data))) {
  ------------------
  |  Branch (1804:6): [True: 0, False: 14.1k]
  ------------------
 1805|       |    /* send new weight and/or dependency */
 1806|      0|    nghttp2_priority_spec pri_spec;
 1807|       |
 1808|      0|    h2_pri_spec(data, &pri_spec);
 1809|      0|    CURL_TRC_CF(data, cf, "[%d] Queuing PRIORITY", stream->id);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1810|      0|    DEBUGASSERT(stream->id != -1);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1810:5): [True: 0, False: 0]
  |  Branch (1810:5): [True: 0, False: 0]
  ------------------
 1811|      0|    rv = nghttp2_submit_priority(ctx->h2, NGHTTP2_FLAG_NONE,
 1812|      0|                                 stream->id, &pri_spec);
 1813|      0|    if(rv)
  ------------------
  |  Branch (1813:8): [True: 0, False: 0]
  ------------------
 1814|      0|      goto out;
 1815|      0|  }
 1816|       |
 1817|  17.5k|  ctx->nw_out_blocked = 0;
 1818|  28.3k|  while(!rv && !ctx->nw_out_blocked && nghttp2_session_want_write(ctx->h2))
  ------------------
  |  Branch (1818:9): [True: 28.3k, False: 0]
  |  Branch (1818:16): [True: 26.7k, False: 1.56k]
  |  Branch (1818:40): [True: 10.7k, False: 16.0k]
  ------------------
 1819|  10.7k|    rv = nghttp2_session_send(ctx->h2);
 1820|       |
 1821|  17.5k|out:
 1822|  17.5k|  if(nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (1822:6): [True: 0, False: 17.5k]
  ------------------
 1823|      0|    CURL_TRC_CF(data, cf, "nghttp2_session_send error (%s)%d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1824|      0|                nghttp2_strerror(rv), rv);
 1825|      0|    return CURLE_SEND_ERROR;
 1826|      0|  }
 1827|       |  /* Defer flushing during the connect phase so that the SETTINGS and
 1828|       |   * other initial frames are sent together with the first request.
 1829|       |   * Unless we are 'connect_only' where the request will never come. */
 1830|  17.5k|  if(!cf->connected && !cf->conn->bits.connect_only)
  ------------------
  |  Branch (1830:6): [True: 2.94k, False: 14.6k]
  |  Branch (1830:24): [True: 2.92k, False: 20]
  ------------------
 1831|  2.92k|    return CURLE_OK;
 1832|  14.6k|  return nw_out_flush(cf, data);
 1833|  17.5k|}
http2.c:sweight_wanted:
 1762|  17.0k|{
 1763|       |  /* 0 weight is not set by user and we take the nghttp2 default one */
 1764|  17.0k|  return data->set.priority.weight ?
  ------------------
  |  Branch (1764:10): [True: 0, False: 17.0k]
  ------------------
 1765|      0|    data->set.priority.weight : NGHTTP2_DEFAULT_WEIGHT;
 1766|  17.0k|}
http2.c:sweight_in_effect:
 1769|  14.1k|{
 1770|       |  /* 0 weight is not set by user and we take the nghttp2 default one */
 1771|  14.1k|  return data->state.priority.weight ?
  ------------------
  |  Branch (1771:10): [True: 0, False: 14.1k]
  ------------------
 1772|      0|    data->state.priority.weight : NGHTTP2_DEFAULT_WEIGHT;
 1773|  14.1k|}
http2.c:h2_pri_spec:
 1783|  2.88k|{
 1784|  2.88k|  struct Curl_data_priority *prio = &data->set.priority;
 1785|  2.88k|  nghttp2_priority_spec_init(pri_spec, 0,
 1786|       |                             sweight_wanted(data), FALSE);
  ------------------
  |  | 1058|  2.88k|#define FALSE false
  ------------------
 1787|  2.88k|  data->state.priority = *prio;
 1788|  2.88k|}
http2.c:cf_h2_close:
 2554|  2.94k|{
 2555|  2.94k|  struct cf_h2_ctx *ctx = cf->ctx;
 2556|       |
 2557|  2.94k|  if(ctx) {
  ------------------
  |  Branch (2557:6): [True: 2.94k, False: 0]
  ------------------
 2558|  2.94k|    struct cf_call_data save;
 2559|       |
 2560|  2.94k|    CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  2.94k|  do { \
  |  |  671|  2.94k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|  2.94k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  2.94k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  2.94k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|  2.94k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  2.94k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|  2.94k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  2.94k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  2.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
  |  Branch (2560:5): [True: 2.94k, False: 0]
  |  Branch (2560:5): [True: 0, False: 0]
  |  Branch (2560:5): [True: 2.94k, False: 0]
  |  Branch (2560:5): [True: 0, False: 0]
  ------------------
 2561|  2.94k|    cf_h2_ctx_close(ctx);
 2562|  2.94k|    CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  2.94k|  do { \
  |  |  679|  2.94k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  2.94k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  2.94k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|  2.94k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  2.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
  |  Branch (2562:5): [True: 0, False: 2.94k]
  |  Branch (2562:5): [True: 2.94k, False: 0]
  |  Branch (2562:5): [True: 2.94k, False: 0]
  |  Branch (2562:5): [True: 0, False: 0]
  |  Branch (2562:5): [True: 2.94k, False: 0]
  |  Branch (2562:5): [True: 0, False: 0]
  ------------------
 2563|  2.94k|    cf->connected = FALSE;
  ------------------
  |  | 1058|  2.94k|#define FALSE false
  ------------------
 2564|  2.94k|  }
 2565|  2.94k|  if(cf->next)
  ------------------
  |  Branch (2565:6): [True: 2.94k, False: 0]
  ------------------
 2566|  2.94k|    cf->next->cft->do_close(cf->next, data);
 2567|  2.94k|}
http2.c:cf_h2_ctx_close:
  203|  2.94k|{
  204|  2.94k|  if(ctx->h2) {
  ------------------
  |  Branch (204:6): [True: 2.94k, False: 0]
  ------------------
  205|  2.94k|    nghttp2_session_del(ctx->h2);
  206|       |    ctx->h2 = NULL;
  207|  2.94k|  }
  208|  2.94k|}
http2.c:cf_h2_shutdown:
 2582|    519|{
 2583|    519|  struct cf_h2_ctx *ctx = cf->ctx;
 2584|    519|  struct cf_call_data save;
 2585|    519|  CURLcode result;
 2586|    519|  int rv;
 2587|       |
 2588|    519|  if(!cf->connected || !ctx->h2 || cf->shutdown || ctx->conn_closed) {
  ------------------
  |  Branch (2588:6): [True: 0, False: 519]
  |  Branch (2588:24): [True: 0, False: 519]
  |  Branch (2588:36): [True: 0, False: 519]
  |  Branch (2588:52): [True: 0, False: 519]
  ------------------
 2589|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2590|      0|    return CURLE_OK;
 2591|      0|  }
 2592|       |
 2593|    519|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|    519|  do { \
  |  |  671|    519|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|    519|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|    519|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|    519|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|    519|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|    519|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|    519|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|    519|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|    519|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|    519|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 519]
  |  |  ------------------
  ------------------
  |  Branch (2593:3): [True: 519, False: 0]
  |  Branch (2593:3): [True: 0, False: 0]
  |  Branch (2593:3): [True: 519, False: 0]
  |  Branch (2593:3): [True: 0, False: 0]
  ------------------
 2594|       |
 2595|    519|  if(!ctx->sent_goaway) {
  ------------------
  |  Branch (2595:6): [True: 493, False: 26]
  ------------------
 2596|    493|    ctx->sent_goaway = TRUE;
  ------------------
  |  | 1055|    493|#define TRUE true
  ------------------
 2597|    493|    rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE,
 2598|    493|                               ctx->local_max_sid, 0,
 2599|    493|                               (const uint8_t *)"shutdown",
 2600|    493|                               sizeof("shutdown"));
 2601|    493|    if(rv) {
  ------------------
  |  Branch (2601:8): [True: 0, False: 493]
  ------------------
 2602|      0|      failf(data, "nghttp2_submit_goaway() failed: %s(%d)",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2603|      0|            nghttp2_strerror(rv), rv);
 2604|      0|      result = CURLE_SEND_ERROR;
 2605|      0|      goto out;
 2606|      0|    }
 2607|    493|  }
 2608|       |  /* GOAWAY submitted, process egress and ingress until nghttp2 is done. */
 2609|    519|  result = CURLE_OK;
 2610|    519|  if(nghttp2_session_want_write(ctx->h2) ||
  ------------------
  |  Branch (2610:6): [True: 507, False: 12]
  ------------------
 2611|     12|     !Curl_bufq_is_empty(&ctx->outbufq))
  ------------------
  |  Branch (2611:6): [True: 8, False: 4]
  ------------------
 2612|    515|    result = h2_progress_egress(cf, data);
 2613|    519|  if(!result && nghttp2_session_want_read(ctx->h2))
  ------------------
  |  Branch (2613:6): [True: 467, False: 52]
  |  Branch (2613:17): [True: 0, False: 467]
  ------------------
 2614|      0|    result = h2_progress_ingress(cf, data, 0);
 2615|       |
 2616|    519|  if(result == CURLE_AGAIN)
  ------------------
  |  Branch (2616:6): [True: 52, False: 467]
  ------------------
 2617|     52|    result = CURLE_OK;
 2618|       |
 2619|    519|  *done = (ctx->conn_closed ||
  ------------------
  |  Branch (2619:12): [True: 0, False: 519]
  ------------------
 2620|    519|           (!result && !nghttp2_session_want_write(ctx->h2) &&
  ------------------
  |  Branch (2620:13): [True: 519, False: 0]
  |  Branch (2620:24): [True: 481, False: 38]
  ------------------
 2621|    481|            !nghttp2_session_want_read(ctx->h2) &&
  ------------------
  |  Branch (2621:13): [True: 481, False: 0]
  ------------------
 2622|    481|            Curl_bufq_is_empty(&ctx->outbufq)));
  ------------------
  |  Branch (2622:13): [True: 467, False: 14]
  ------------------
 2623|       |
 2624|    519|out:
 2625|    519|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|    519|  do { \
  |  |  679|    519|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|    519|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|    519|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|    519|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|    519|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|    519|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|    519|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 519]
  |  |  ------------------
  ------------------
  |  Branch (2625:3): [True: 0, False: 519]
  |  Branch (2625:3): [True: 519, False: 0]
  |  Branch (2625:3): [True: 519, False: 0]
  |  Branch (2625:3): [True: 0, False: 0]
  |  Branch (2625:3): [True: 519, False: 0]
  |  Branch (2625:3): [True: 0, False: 0]
  ------------------
 2626|    519|  cf->shutdown = (result || *done);
  ------------------
  |  Branch (2626:19): [True: 0, False: 519]
  |  Branch (2626:29): [True: 467, False: 52]
  ------------------
 2627|    519|  return result;
 2628|    519|}
http2.c:cf_h2_adjust_pollset:
 2339|  5.69k|{
 2340|  5.69k|  struct cf_h2_ctx *ctx = cf->ctx;
 2341|  5.69k|  struct cf_call_data save;
 2342|  5.69k|  curl_socket_t sock;
 2343|  5.69k|  bool want_recv, want_send;
 2344|  5.69k|  CURLcode result = CURLE_OK;
 2345|       |
 2346|  5.69k|  if(!ctx->h2)
  ------------------
  |  Branch (2346:6): [True: 0, False: 5.69k]
  ------------------
 2347|      0|    return CURLE_OK;
 2348|       |
 2349|  5.69k|  sock = Curl_conn_cf_get_socket(cf, data);
 2350|  5.69k|  Curl_pollset_check(data, ps, sock, &want_recv, &want_send);
 2351|  5.69k|  if(want_recv || want_send) {
  ------------------
  |  Branch (2351:6): [True: 5.69k, False: 0]
  |  Branch (2351:19): [True: 0, False: 0]
  ------------------
 2352|  5.69k|    struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  5.69k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  5.69k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 5.69k, False: 0]
  |  |  ------------------
  ------------------
 2353|  5.69k|    bool c_exhaust, s_exhaust;
 2354|       |
 2355|  5.69k|    CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  5.69k|  do { \
  |  |  671|  5.69k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|  5.69k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  5.69k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  5.69k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  5.69k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|  5.69k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  5.69k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|  5.69k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  5.69k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  5.69k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 5.69k]
  |  |  ------------------
  ------------------
  |  Branch (2355:5): [True: 5.69k, False: 0]
  |  Branch (2355:5): [True: 0, False: 0]
  |  Branch (2355:5): [True: 5.69k, False: 0]
  |  Branch (2355:5): [True: 0, False: 0]
  ------------------
 2356|  5.69k|    c_exhaust = want_send && !nghttp2_session_get_remote_window_size(ctx->h2);
  ------------------
  |  Branch (2356:17): [True: 937, False: 4.75k]
  |  Branch (2356:30): [True: 0, False: 937]
  ------------------
 2357|  5.69k|    s_exhaust = want_send && stream && stream->id >= 0 &&
  ------------------
  |  Branch (2357:17): [True: 937, False: 4.75k]
  |  Branch (2357:30): [True: 937, False: 0]
  |  Branch (2357:40): [True: 937, False: 0]
  ------------------
 2358|    937|                !nghttp2_session_get_stream_remote_window_size(ctx->h2,
  ------------------
  |  Branch (2358:17): [True: 52, False: 885]
  ------------------
 2359|    937|                                                               stream->id);
 2360|  5.69k|    want_recv = (want_recv || c_exhaust || s_exhaust);
  ------------------
  |  Branch (2360:18): [True: 5.69k, False: 0]
  |  Branch (2360:31): [True: 0, False: 0]
  |  Branch (2360:44): [True: 0, False: 0]
  ------------------
 2361|  5.69k|    want_send = (!s_exhaust && want_send) ||
  ------------------
  |  Branch (2361:18): [True: 5.64k, False: 52]
  |  Branch (2361:32): [True: 885, False: 4.75k]
  ------------------
 2362|  4.80k|                (!c_exhaust && nghttp2_session_want_write(ctx->h2)) ||
  ------------------
  |  Branch (2362:18): [True: 4.80k, False: 0]
  |  Branch (2362:32): [True: 24, False: 4.78k]
  ------------------
 2363|  4.78k|                !Curl_bufq_is_empty(&ctx->outbufq);
  ------------------
  |  Branch (2363:17): [True: 19, False: 4.76k]
  ------------------
 2364|       |
 2365|  5.69k|    result = Curl_pollset_set(data, ps, sock, want_recv, want_send);
 2366|  5.69k|    CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  5.69k|  do { \
  |  |  679|  5.69k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  5.69k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  5.69k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  5.69k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  5.69k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|  5.69k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  5.69k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 5.69k]
  |  |  ------------------
  ------------------
  |  Branch (2366:5): [True: 0, False: 5.69k]
  |  Branch (2366:5): [True: 5.69k, False: 0]
  |  Branch (2366:5): [True: 5.69k, False: 0]
  |  Branch (2366:5): [True: 0, False: 0]
  |  Branch (2366:5): [True: 5.69k, False: 0]
  |  Branch (2366:5): [True: 0, False: 0]
  ------------------
 2367|  5.69k|  }
 2368|      0|  else if(ctx->sent_goaway && !cf->shutdown) {
  ------------------
  |  Branch (2368:11): [True: 0, False: 0]
  |  Branch (2368:31): [True: 0, False: 0]
  ------------------
 2369|       |    /* shutdown in progress */
 2370|      0|    CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|      0|  do { \
  |  |  671|      0|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|      0|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|      0|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|      0|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|      0|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|      0|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|      0|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2370:5): [True: 0, False: 0]
  |  Branch (2370:5): [True: 0, False: 0]
  |  Branch (2370:5): [True: 0, False: 0]
  |  Branch (2370:5): [True: 0, False: 0]
  ------------------
 2371|      0|    want_send = nghttp2_session_want_write(ctx->h2) ||
  ------------------
  |  Branch (2371:17): [True: 0, False: 0]
  ------------------
 2372|      0|                !Curl_bufq_is_empty(&ctx->outbufq);
  ------------------
  |  Branch (2372:17): [True: 0, False: 0]
  ------------------
 2373|      0|    want_recv = nghttp2_session_want_read(ctx->h2);
 2374|      0|    result = Curl_pollset_set(data, ps, sock, want_recv, want_send);
 2375|      0|    CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|      0|  do { \
  |  |  679|      0|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|      0|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|      0|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|      0|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2375:5): [True: 0, False: 0]
  |  Branch (2375:5): [True: 0, False: 0]
  |  Branch (2375:5): [True: 0, False: 0]
  |  Branch (2375:5): [True: 0, False: 0]
  |  Branch (2375:5): [True: 0, False: 0]
  |  Branch (2375:5): [True: 0, False: 0]
  ------------------
 2376|      0|  }
 2377|  5.69k|  return result;
 2378|  5.69k|}
http2.c:cf_h2_data_pending:
 2700|  12.7k|{
 2701|  12.7k|  struct cf_h2_ctx *ctx = cf->ctx;
 2702|       |
 2703|  12.7k|  if(ctx && !Curl_bufq_is_empty(&ctx->inbufq))
  ------------------
  |  Branch (2703:6): [True: 12.7k, False: 0]
  |  Branch (2703:13): [True: 0, False: 12.7k]
  ------------------
 2704|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2705|  12.7k|  return cf->next ? cf->next->cft->has_data_pending(cf->next, data) : FALSE;
  ------------------
  |  | 1058|  12.7k|#define FALSE false
  ------------------
  |  Branch (2705:10): [True: 12.7k, False: 0]
  ------------------
 2706|  12.7k|}
http2.c:cf_h2_send:
 2207|  3.09k|{
 2208|  3.09k|  struct cf_h2_ctx *ctx = cf->ctx;
 2209|  3.09k|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  3.09k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  3.09k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 3.09k, False: 0]
  |  |  ------------------
  ------------------
 2210|  3.09k|  struct cf_call_data save;
 2211|  3.09k|  CURLcode result = CURLE_OK, r2;
 2212|       |
 2213|  3.09k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  3.09k|  do { \
  |  |  671|  3.09k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|  3.09k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  3.09k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  3.09k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  3.09k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|  3.09k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  3.09k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|  3.09k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  3.09k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  3.09k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 3.09k]
  |  |  ------------------
  ------------------
  |  Branch (2213:3): [True: 3.09k, False: 0]
  |  Branch (2213:3): [True: 0, False: 0]
  |  Branch (2213:3): [True: 3.09k, False: 0]
  |  Branch (2213:3): [True: 0, False: 0]
  ------------------
 2214|  3.09k|  *pnwritten = 0;
 2215|       |
 2216|  3.09k|  if(!stream || stream->id == -1) {
  ------------------
  |  Branch (2216:6): [True: 2.90k, False: 193]
  |  Branch (2216:17): [True: 0, False: 193]
  ------------------
 2217|  2.90k|    result = h2_submit(&stream, cf, data, buf, len, eos, pnwritten);
 2218|  2.90k|    if(result)
  ------------------
  |  Branch (2218:8): [True: 14, False: 2.89k]
  ------------------
 2219|     14|      goto out;
 2220|  2.89k|    DEBUGASSERT(stream);
  ------------------
  |  | 1081|  2.89k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2220:5): [True: 0, False: 2.89k]
  |  Branch (2220:5): [True: 2.89k, False: 0]
  ------------------
 2221|  2.89k|  }
 2222|    193|  else if(stream->body_eos) {
  ------------------
  |  Branch (2222:11): [True: 0, False: 193]
  ------------------
 2223|       |    /* We already wrote this, but CURLE_AGAIN-ed the call due to not
 2224|       |     * being able to flush stream->sendbuf. Make a 0-length write
 2225|       |     * to trigger flushing again.
 2226|       |     * If this works, we report to have written `len` bytes. */
 2227|      0|    size_t n;
 2228|      0|    DEBUGASSERT(eos);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2228:5): [True: 0, False: 0]
  |  Branch (2228:5): [True: 0, False: 0]
  ------------------
 2229|      0|    result = cf_h2_body_send(cf, data, stream, buf, 0, eos, &n);
 2230|      0|    CURL_TRC_CF(data, cf, "[%d] cf_body_send last CHUNK -> %d, %zu, eos=%d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2231|      0|                stream->id, result, n, eos);
 2232|      0|    if(result)
  ------------------
  |  Branch (2232:8): [True: 0, False: 0]
  ------------------
 2233|      0|      goto out;
 2234|      0|    *pnwritten = len;
 2235|      0|  }
 2236|    193|  else {
 2237|    193|    result = cf_h2_body_send(cf, data, stream, buf, len, eos, pnwritten);
 2238|    193|    CURL_TRC_CF(data, cf, "[%d] cf_body_send(len=%zu) -> %d, %zu, eos=%d",
  ------------------
  |  |  153|    193|  do {                                          \
  |  |  154|    193|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    193|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    386|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 193, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 193]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    386|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    193|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    193|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    193|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 193]
  |  |  ------------------
  ------------------
 2239|    193|                stream->id, len, result, *pnwritten, eos);
 2240|    193|  }
 2241|       |
 2242|       |  /* Call the nghttp2 send loop and flush to write ALL buffered data,
 2243|       |   * headers and/or request body completely out to the network */
 2244|  3.08k|  r2 = h2_progress_egress(cf, data);
 2245|       |
 2246|       |  /* if the stream has been closed in egress handling (nghttp2 does that
 2247|       |   * when it does not like the headers, for example */
 2248|  3.08k|  if(stream && stream->closed) {
  ------------------
  |  Branch (2248:6): [True: 3.08k, False: 0]
  |  Branch (2248:16): [True: 1, False: 3.08k]
  ------------------
 2249|      1|    infof(data, "stream %d closed", stream->id);
  ------------------
  |  |  143|      1|  do {                               \
  |  |  144|      1|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      1|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 1, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 1]
  |  |  |  |  ------------------
  |  |  |  |  320|      1|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      1|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      1|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1]
  |  |  ------------------
  ------------------
 2250|      1|    result = CURLE_SEND_ERROR;
 2251|      1|    goto out;
 2252|      1|  }
 2253|  3.08k|  else if(r2 && (r2 != CURLE_AGAIN)) {
  ------------------
  |  Branch (2253:11): [True: 173, False: 2.90k]
  |  Branch (2253:17): [True: 0, False: 173]
  ------------------
 2254|      0|    result = r2;
 2255|      0|    goto out;
 2256|      0|  }
 2257|       |
 2258|  3.08k|  if(should_close_session(ctx)) {
  ------------------
  |  Branch (2258:6): [True: 15, False: 3.06k]
  ------------------
 2259|       |    /* nghttp2 thinks this session is done. If the stream has not been
 2260|       |     * closed, this is an error state for out transfer */
 2261|     15|    if(stream && stream->closed) {
  ------------------
  |  Branch (2261:8): [True: 15, False: 0]
  |  Branch (2261:18): [True: 0, False: 15]
  ------------------
 2262|      0|      result = http2_handle_stream_close(cf, data, stream, pnwritten);
 2263|      0|    }
 2264|     15|    else {
 2265|     15|      CURL_TRC_CF(data, cf, "send: nothing to do in this session");
  ------------------
  |  |  153|     15|  do {                                          \
  |  |  154|     15|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     15|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     30|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 15, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 15]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     30|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     15|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     15|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     15|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 15]
  |  |  ------------------
  ------------------
 2266|     15|      result = CURLE_HTTP2;
 2267|     15|    }
 2268|     15|  }
 2269|       |
 2270|  3.09k|out:
 2271|  3.09k|  if(stream) {
  ------------------
  |  Branch (2271:6): [True: 3.09k, False: 0]
  ------------------
 2272|  3.09k|    CURL_TRC_CF(data, cf, "[%d] cf_send(len=%zu) -> %d, %zu, "
  ------------------
  |  |  153|  3.09k|  do {                                          \
  |  |  154|  3.09k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  3.09k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  6.19k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 3.09k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 3.09k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  6.19k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  3.09k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.09k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  3.09k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.09k]
  |  |  ------------------
  ------------------
 2273|  3.09k|                "eos=%d, h2 windows %d-%d (stream-conn), "
 2274|  3.09k|                "buffers %zu-%zu (stream-conn)",
 2275|  3.09k|                stream->id, len, result, *pnwritten,
 2276|  3.09k|                stream->body_eos,
 2277|  3.09k|                nghttp2_session_get_stream_remote_window_size(
 2278|  3.09k|                  ctx->h2, stream->id),
 2279|  3.09k|                nghttp2_session_get_remote_window_size(ctx->h2),
 2280|  3.09k|                Curl_bufq_len(&stream->sendbuf),
 2281|  3.09k|                Curl_bufq_len(&ctx->outbufq));
 2282|  3.09k|  }
 2283|      0|  else {
 2284|      0|    CURL_TRC_CF(data, cf, "cf_send(len=%zu) -> %d, %zu, "
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2285|      0|                "connection-window=%d, nw_send_buffer(%zu)",
 2286|      0|                len, result, *pnwritten,
 2287|      0|                nghttp2_session_get_remote_window_size(ctx->h2),
 2288|      0|                Curl_bufq_len(&ctx->outbufq));
 2289|      0|  }
 2290|  3.09k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  3.09k|  do { \
  |  |  679|  3.09k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  3.09k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  3.09k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  3.09k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  3.09k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|  3.09k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  3.09k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 3.09k]
  |  |  ------------------
  ------------------
  |  Branch (2290:3): [True: 0, False: 3.09k]
  |  Branch (2290:3): [True: 3.09k, False: 0]
  |  Branch (2290:3): [True: 3.09k, False: 0]
  |  Branch (2290:3): [True: 0, False: 0]
  |  Branch (2290:3): [True: 3.09k, False: 0]
  |  Branch (2290:3): [True: 0, False: 0]
  ------------------
 2291|  3.09k|  return result;
 2292|  3.09k|}
http2.c:h2_submit:
 2074|  2.90k|{
 2075|  2.90k|  struct cf_h2_ctx *ctx = cf->ctx;
 2076|  2.90k|  struct h2_stream_ctx *stream = NULL;
 2077|  2.90k|  struct dynhds h2_headers;
 2078|  2.90k|  nghttp2_nv *nva = NULL;
 2079|  2.90k|  const void *body = NULL;
 2080|  2.90k|  size_t nheader, bodylen;
 2081|  2.90k|  nghttp2_data_provider data_prd;
 2082|  2.90k|  int32_t stream_id;
 2083|  2.90k|  nghttp2_priority_spec pri_spec;
 2084|  2.90k|  size_t nwritten;
 2085|  2.90k|  CURLcode result = CURLE_OK;
 2086|  2.90k|  uint32_t initial_win_size;
 2087|       |
 2088|  2.90k|  *pnwritten = 0;
 2089|  2.90k|  Curl_dynhds_init(&h2_headers, 0, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  2.90k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 2090|       |
 2091|  2.90k|  result = http2_data_setup(cf, data, &stream);
 2092|  2.90k|  if(result)
  ------------------
  |  Branch (2092:6): [True: 0, False: 2.90k]
  ------------------
 2093|      0|    goto out;
 2094|       |
 2095|  2.90k|  result = Curl_h1_req_parse_read(&stream->h1, buf, len, NULL,
 2096|  2.90k|                                  !data->state.http_ignorecustom ?
  ------------------
  |  Branch (2096:35): [True: 2.90k, False: 0]
  ------------------
 2097|  2.90k|                                  data->set.str[STRING_CUSTOMREQUEST] : NULL,
 2098|  2.90k|                                  0, &nwritten);
 2099|  2.90k|  if(result)
  ------------------
  |  Branch (2099:6): [True: 14, False: 2.89k]
  ------------------
 2100|     14|    goto out;
 2101|  2.89k|  *pnwritten = nwritten;
 2102|  2.89k|  if(!stream->h1.done) {
  ------------------
  |  Branch (2102:6): [True: 3, False: 2.88k]
  ------------------
 2103|       |    /* need more data */
 2104|      3|    goto out;
 2105|      3|  }
 2106|  2.88k|  DEBUGASSERT(stream->h1.req);
  ------------------
  |  | 1081|  2.88k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2106:3): [True: 0, False: 2.88k]
  |  Branch (2106:3): [True: 2.88k, False: 0]
  ------------------
 2107|       |
 2108|  2.88k|  result = Curl_http_req_to_h2(&h2_headers, stream->h1.req, data);
 2109|  2.88k|  if(result)
  ------------------
  |  Branch (2109:6): [True: 0, False: 2.88k]
  ------------------
 2110|      0|    goto out;
 2111|       |  /* no longer needed */
 2112|  2.88k|  Curl_h1_req_parse_free(&stream->h1);
 2113|       |
 2114|  2.88k|  nva = Curl_dynhds_to_nva(&h2_headers, &nheader);
 2115|  2.88k|  if(!nva) {
  ------------------
  |  Branch (2115:6): [True: 0, False: 2.88k]
  ------------------
 2116|      0|    result = CURLE_OUT_OF_MEMORY;
 2117|      0|    goto out;
 2118|      0|  }
 2119|       |
 2120|  2.88k|  h2_pri_spec(data, &pri_spec);
 2121|  2.88k|  if(!nghttp2_session_check_request_allowed(ctx->h2))
  ------------------
  |  Branch (2121:6): [True: 0, False: 2.88k]
  ------------------
 2122|      0|    CURL_TRC_CF(data, cf, "send request NOT allowed (via nghttp2)");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2123|       |
 2124|       |  /* Check the initial windows size of the transfer (rate-limits?) and
 2125|       |   * send an updated settings on changes from previous value. */
 2126|  2.88k|  initial_win_size = cf_h2_initial_win_size(data);
 2127|  2.88k|  if(initial_win_size != ctx->initial_win_size) {
  ------------------
  |  Branch (2127:6): [True: 0, False: 2.88k]
  ------------------
 2128|      0|    result = cf_h2_update_settings(ctx, initial_win_size);
 2129|      0|    if(result)
  ------------------
  |  Branch (2129:8): [True: 0, False: 0]
  ------------------
 2130|      0|      goto out;
 2131|      0|  }
 2132|       |
 2133|  2.88k|  switch(data->state.httpreq) {
 2134|    519|  case HTTPREQ_POST:
  ------------------
  |  Branch (2134:3): [True: 519, False: 2.36k]
  ------------------
 2135|    519|  case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (2135:3): [True: 0, False: 2.88k]
  ------------------
 2136|    519|  case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (2136:3): [True: 0, False: 2.88k]
  ------------------
 2137|    717|  case HTTPREQ_PUT:
  ------------------
  |  Branch (2137:3): [True: 198, False: 2.68k]
  ------------------
 2138|    717|    data_prd.read_callback = req_body_read_callback;
 2139|    717|    data_prd.source.ptr = NULL;
 2140|    717|    stream_id = nghttp2_submit_request(ctx->h2, &pri_spec, nva, nheader,
 2141|    717|                                       &data_prd, data);
 2142|    717|    break;
 2143|  2.17k|  default:
  ------------------
  |  Branch (2143:3): [True: 2.17k, False: 717]
  ------------------
 2144|  2.17k|    stream_id = nghttp2_submit_request(ctx->h2, &pri_spec, nva, nheader,
 2145|  2.17k|                                       NULL, data);
 2146|  2.88k|  }
 2147|       |
 2148|  2.88k|  if(stream_id < 0) {
  ------------------
  |  Branch (2148:6): [True: 0, False: 2.88k]
  ------------------
 2149|      0|    CURL_TRC_CF(data, cf, "send: nghttp2_submit_request error (%s)%d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2150|      0|                nghttp2_strerror(stream_id), stream_id);
 2151|      0|    result = CURLE_SEND_ERROR;
 2152|      0|    goto out;
 2153|      0|  }
 2154|       |
 2155|  2.88k|#ifdef CURLVERBOSE
 2156|  2.88k|#define MAX_ACC 60000  /* <64KB to account for some overhead */
 2157|  2.88k|  if(Curl_trc_is_verbose(data)) {
  ------------------
  |  |  319|  2.88k|  ((data) && (data)->set.verbose &&                        \
  |  |  ------------------
  |  |  |  Branch (319:4): [True: 2.88k, False: 0]
  |  |  |  Branch (319:14): [True: 0, False: 2.88k]
  |  |  ------------------
  |  |  320|  2.88k|   (!(data)->state.feat ||                                 \
  |  |  ------------------
  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  ------------------
  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2158|      0|    size_t acc = 0, i;
 2159|       |
 2160|      0|    infof(data, "[HTTP/2] [%d] OPENED stream for %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2161|      0|          stream_id, Curl_bufref_ptr(&data->state.url));
 2162|      0|    for(i = 0; i < nheader; ++i) {
  ------------------
  |  Branch (2162:16): [True: 0, False: 0]
  ------------------
 2163|      0|      acc += nva[i].namelen + nva[i].valuelen;
 2164|       |
 2165|      0|      infof(data, "[HTTP/2] [%d] [%.*s: %.*s]", stream_id,
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2166|      0|            (int)nva[i].namelen, nva[i].name,
 2167|      0|            (int)nva[i].valuelen, nva[i].value);
 2168|      0|    }
 2169|       |
 2170|      0|    if(acc > MAX_ACC) {
  ------------------
  |  | 2156|      0|#define MAX_ACC 60000  /* <64KB to account for some overhead */
  ------------------
  |  Branch (2170:8): [True: 0, False: 0]
  ------------------
 2171|      0|      infof(data, "[HTTP/2] Warning: The cumulative length of all "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2172|      0|            "headers exceeds %d bytes and that could cause the "
 2173|      0|            "stream to be rejected.", MAX_ACC);
 2174|      0|    }
 2175|      0|  }
 2176|  2.88k|#endif
 2177|       |
 2178|  2.88k|  stream->id = stream_id;
 2179|       |
 2180|  2.88k|  body = (const char *)buf + *pnwritten;
 2181|  2.88k|  bodylen = len - *pnwritten;
 2182|       |
 2183|  2.88k|  if(bodylen || eos) {
  ------------------
  |  Branch (2183:6): [True: 693, False: 2.19k]
  |  Branch (2183:17): [True: 2.19k, False: 0]
  ------------------
 2184|  2.88k|    size_t n;
 2185|  2.88k|    result = cf_h2_body_send(cf, data, stream, body, bodylen, eos, &n);
 2186|  2.88k|    if(!result)
  ------------------
  |  Branch (2186:8): [True: 2.88k, False: 0]
  ------------------
 2187|  2.88k|      *pnwritten += n;
 2188|      0|    else if(result == CURLE_AGAIN)
  ------------------
  |  Branch (2188:13): [True: 0, False: 0]
  ------------------
 2189|      0|      result = CURLE_OK;
 2190|      0|    else {
 2191|      0|      result = CURLE_SEND_ERROR;
 2192|      0|    }
 2193|  2.88k|  }
 2194|       |
 2195|  2.90k|out:
 2196|  2.90k|  CURL_TRC_CF(data, cf, "[%d] submit -> %d, %zu",
  ------------------
  |  |  153|  2.90k|  do {                                          \
  |  |  154|  2.90k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.90k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.80k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.90k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.90k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.80k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.90k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.90k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  2.90k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.90k]
  |  |  ------------------
  ------------------
 2197|  2.90k|              stream ? stream->id : -1, result, *pnwritten);
 2198|       |  curlx_safefree(nva);
  ------------------
  |  | 1327|  2.90k|  do {                      \
  |  | 1328|  2.90k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  2.90k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  2.90k|    (ptr) = NULL;           \
  |  | 1330|  2.90k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 2.90k]
  |  |  ------------------
  ------------------
 2199|  2.90k|  *pstream = stream;
 2200|  2.90k|  Curl_dynhds_free(&h2_headers);
 2201|  2.90k|  return result;
 2202|  2.88k|}
http2.c:req_body_read_callback:
 1587|  1.24k|{
 1588|  1.24k|  struct Curl_cfilter *cf = userp;
 1589|  1.24k|  struct cf_h2_ctx *ctx = cf->ctx;
 1590|  1.24k|  struct Curl_easy *data_s;
 1591|  1.24k|  struct h2_stream_ctx *stream = NULL;
 1592|  1.24k|  CURLcode result;
 1593|  1.24k|  ssize_t nread;
 1594|  1.24k|  size_t n;
 1595|  1.24k|  (void)source;
 1596|       |
 1597|  1.24k|  (void)cf;
 1598|  1.24k|  if(!stream_id)
  ------------------
  |  Branch (1598:6): [True: 0, False: 1.24k]
  ------------------
 1599|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 1600|       |
 1601|       |  /* get the stream from the hash based on Stream ID, stream ID zero is for
 1602|       |     connection-oriented stuff */
 1603|  1.24k|  data_s = nghttp2_session_get_stream_user_data(session, stream_id);
 1604|  1.24k|  if(!data_s)
  ------------------
  |  Branch (1604:6): [True: 0, False: 1.24k]
  ------------------
 1605|       |    /* Receiving a Stream ID not in the hash should not happen, this is an
 1606|       |       internal error more than anything else! */
 1607|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1608|       |
 1609|  1.24k|  stream = H2_STREAM_CTX(ctx, data_s);
  ------------------
  |  |  265|  1.24k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  1.24k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 1.24k, False: 0]
  |  |  ------------------
  ------------------
 1610|  1.24k|  if(!stream)
  ------------------
  |  Branch (1610:6): [True: 0, False: 1.24k]
  ------------------
 1611|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1612|       |
 1613|  1.24k|  result = Curl_bufq_read(&stream->sendbuf, buf, length, &n);
 1614|  1.24k|  if(result) {
  ------------------
  |  Branch (1614:6): [True: 667, False: 581]
  ------------------
 1615|    667|    if(result != CURLE_AGAIN)
  ------------------
  |  Branch (1615:8): [True: 0, False: 667]
  ------------------
 1616|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1617|    667|    nread = 0;
 1618|    667|  }
 1619|    581|  else
 1620|    581|    nread = (ssize_t)n;
 1621|       |
 1622|  1.24k|  CURL_TRC_CF(data_s, cf, "[%d] req_body_read(len=%zu) eos=%d -> %zd, %d",
  ------------------
  |  |  153|  1.24k|  do {                                          \
  |  |  154|  1.24k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  1.24k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  2.49k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.24k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.24k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  2.49k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  1.24k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.24k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.24k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.24k]
  |  |  ------------------
  ------------------
 1623|  1.24k|              stream_id, length, stream->body_eos, nread, result);
 1624|       |
 1625|  1.24k|  if(stream->body_eos && Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  Branch (1625:6): [True: 413, False: 835]
  |  Branch (1625:26): [True: 412, False: 1]
  ------------------
 1626|    412|    *data_flags = NGHTTP2_DATA_FLAG_EOF;
 1627|    412|    return nread;
 1628|    412|  }
 1629|    836|  return (nread == 0) ? NGHTTP2_ERR_DEFERRED : nread;
  ------------------
  |  Branch (1629:10): [True: 338, False: 498]
  ------------------
 1630|  1.24k|}
http2.c:cf_h2_body_send:
 2029|  3.08k|{
 2030|  3.08k|  struct cf_h2_ctx *ctx = cf->ctx;
 2031|  3.08k|  CURLcode result;
 2032|       |
 2033|  3.08k|  *pnwritten = 0;
 2034|  3.08k|  if(stream->closed) {
  ------------------
  |  Branch (2034:6): [True: 0, False: 3.08k]
  ------------------
 2035|      0|    if(stream->resp_hds_complete) {
  ------------------
  |  Branch (2035:8): [True: 0, False: 0]
  ------------------
 2036|       |      /* Server decided to close the stream after having sent us a final
 2037|       |       * response. This is valid if it is not interested in the request
 2038|       |       * body. This happens on 30x or 40x responses.
 2039|       |       * We silently discard the data sent, since this is not a transport
 2040|       |       * error situation. */
 2041|      0|      CURL_TRC_CF(data, cf, "[%d] discarding data"
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2042|      0|                  "on closed stream with response", stream->id);
 2043|      0|      if(eos)
  ------------------
  |  Branch (2043:10): [True: 0, False: 0]
  ------------------
 2044|      0|        stream->body_eos = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2045|      0|      *pnwritten = blen;
 2046|      0|      return CURLE_OK;
 2047|      0|    }
 2048|       |    /* Server closed before we got a response, this is an error */
 2049|      0|    infof(data, "stream %d closed", stream->id);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2050|      0|    return CURLE_SEND_ERROR;
 2051|      0|  }
 2052|       |
 2053|  3.08k|  result = Curl_bufq_write(&stream->sendbuf, buf, blen, pnwritten);
 2054|  3.08k|  if(result)
  ------------------
  |  Branch (2054:6): [True: 0, False: 3.08k]
  ------------------
 2055|      0|    return result;
 2056|       |
 2057|  3.08k|  if(eos && (blen == *pnwritten))
  ------------------
  |  Branch (2057:6): [True: 2.61k, False: 467]
  |  Branch (2057:13): [True: 2.61k, False: 0]
  ------------------
 2058|  2.61k|    stream->body_eos = TRUE;
  ------------------
  |  | 1055|  2.61k|#define TRUE true
  ------------------
 2059|       |
 2060|  3.08k|  if(eos || !Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  Branch (2060:6): [True: 2.61k, False: 467]
  |  Branch (2060:13): [True: 467, False: 0]
  ------------------
 2061|       |    /* resume the potentially suspended stream */
 2062|  3.08k|    int rv = nghttp2_session_resume_data(ctx->h2, stream->id);
 2063|  3.08k|    if(nghttp2_is_fatal(rv))
  ------------------
  |  Branch (2063:8): [True: 0, False: 3.08k]
  ------------------
 2064|      0|      return CURLE_SEND_ERROR;
 2065|  3.08k|  }
 2066|       |
 2067|  3.08k|  return CURLE_OK;
 2068|  3.08k|}
http2.c:http2_handle_stream_close:
 1691|    364|{
 1692|    364|  CURLcode result;
 1693|       |
 1694|    364|  *pnlen = 0;
 1695|    364|  if(stream->reset) {
  ------------------
  |  Branch (1695:6): [True: 331, False: 33]
  ------------------
 1696|    331|    if(stream->error == NGHTTP2_REFUSED_STREAM) {
  ------------------
  |  Branch (1696:8): [True: 11, False: 320]
  ------------------
 1697|     11|      infof(data, "HTTP/2 stream %d refused by server, try again on a new "
  ------------------
  |  |  143|     11|  do {                               \
  |  |  144|     11|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     11|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 11, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 11]
  |  |  |  |  ------------------
  |  |  |  |  320|     11|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     11|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     11|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 11]
  |  |  ------------------
  ------------------
 1698|     11|                  "connection", stream->id);
 1699|     11|      connclose(cf->conn, "REFUSED_STREAM"); /* do not use this anymore */
  ------------------
  |  |  103|     11|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|     11|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
 1700|     11|      data->state.refused_stream = TRUE;
  ------------------
  |  | 1055|     11|#define TRUE true
  ------------------
 1701|     11|      return CURLE_RECV_ERROR; /* trigger Curl_retry_request() later */
 1702|     11|    }
 1703|    320|    else if(stream->resp_hds_complete && data->req.no_body) {
  ------------------
  |  Branch (1703:13): [True: 0, False: 320]
  |  Branch (1703:42): [True: 0, False: 0]
  ------------------
 1704|      0|      CURL_TRC_CF(data, cf, "[%d] error after response headers, but we did "
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1705|      0|                  "not want a body anyway, ignore: %s (err %u)",
 1706|      0|                  stream->id, nghttp2_http2_strerror(stream->error),
 1707|      0|                  stream->error);
 1708|      0|      stream->close_handled = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1709|      0|      return CURLE_OK;
 1710|      0|    }
 1711|    320|    failf(data, "HTTP/2 stream %d reset by %s (error 0x%x %s)",
  ------------------
  |  |   62|    320|#define failf Curl_failf
  ------------------
 1712|    320|          stream->id, stream->reset_by_server ? "server" : "curl",
  ------------------
  |  Branch (1712:23): [True: 10, False: 310]
  ------------------
 1713|    320|          stream->error, nghttp2_http2_strerror(stream->error));
 1714|    320|    return stream->error ? CURLE_HTTP2_STREAM :
  ------------------
  |  Branch (1714:12): [True: 320, False: 0]
  ------------------
 1715|    320|           (data->req.bytecount ? CURLE_PARTIAL_FILE : CURLE_HTTP2);
  ------------------
  |  Branch (1715:13): [True: 0, False: 0]
  ------------------
 1716|    331|  }
 1717|     33|  else if(!stream->bodystarted) {
  ------------------
  |  Branch (1717:11): [True: 3, False: 30]
  ------------------
 1718|      3|    failf(data, "HTTP/2 stream %d was closed cleanly, but before getting "
  ------------------
  |  |   62|      3|#define failf Curl_failf
  ------------------
 1719|      3|          "all response header fields, treated as error", stream->id);
 1720|      3|    return CURLE_HTTP2_STREAM;
 1721|      3|  }
 1722|       |
 1723|     30|  if(Curl_dynhds_count(&stream->resp_trailers)) {
  ------------------
  |  Branch (1723:6): [True: 0, False: 30]
  ------------------
 1724|      0|    struct dynhds_entry *e;
 1725|      0|    struct dynbuf dbuf;
 1726|      0|    size_t i;
 1727|       |
 1728|      0|    result = CURLE_OK;
 1729|      0|    curlx_dyn_init(&dbuf, DYN_TRAILERS);
  ------------------
  |  |   72|      0|#define DYN_TRAILERS        (64 * 1024)
  ------------------
 1730|      0|    for(i = 0; i < Curl_dynhds_count(&stream->resp_trailers); ++i) {
  ------------------
  |  Branch (1730:16): [True: 0, False: 0]
  ------------------
 1731|      0|      e = Curl_dynhds_getn(&stream->resp_trailers, i);
 1732|      0|      if(!e)
  ------------------
  |  Branch (1732:10): [True: 0, False: 0]
  ------------------
 1733|      0|        break;
 1734|      0|      curlx_dyn_reset(&dbuf);
 1735|      0|      result = curlx_dyn_addf(&dbuf, "%.*s: %.*s\x0d\x0a",
 1736|      0|                              (int)e->namelen, e->name,
 1737|      0|                              (int)e->valuelen, e->value);
 1738|      0|      if(result)
  ------------------
  |  Branch (1738:10): [True: 0, False: 0]
  ------------------
 1739|      0|        break;
 1740|      0|      Curl_debug(data, CURLINFO_HEADER_IN, curlx_dyn_ptr(&dbuf),
 1741|      0|                 curlx_dyn_len(&dbuf));
 1742|      0|      result = Curl_client_write(data,
 1743|      0|                                 CLIENTWRITE_HEADER | CLIENTWRITE_TRAILER,
  ------------------
  |  |   44|      0|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
                                               CLIENTWRITE_HEADER | CLIENTWRITE_TRAILER,
  ------------------
  |  |   48|      0|#define CLIENTWRITE_TRAILER (1 << 6) /* a trailer HEADER */
  ------------------
 1744|      0|                                 curlx_dyn_ptr(&dbuf), curlx_dyn_len(&dbuf));
 1745|      0|      if(result)
  ------------------
  |  Branch (1745:10): [True: 0, False: 0]
  ------------------
 1746|      0|        break;
 1747|      0|    }
 1748|      0|    curlx_dyn_free(&dbuf);
 1749|      0|    if(result)
  ------------------
  |  Branch (1749:8): [True: 0, False: 0]
  ------------------
 1750|      0|      goto out;
 1751|      0|  }
 1752|       |
 1753|     30|  stream->close_handled = TRUE;
  ------------------
  |  | 1055|     30|#define TRUE true
  ------------------
 1754|     30|  result = CURLE_OK;
 1755|       |
 1756|     30|out:
 1757|     30|  CURL_TRC_CF(data, cf, "handle_stream_close -> %d, %zu", result, *pnlen);
  ------------------
  |  |  153|     30|  do {                                          \
  |  |  154|     30|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     30|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     60|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 30, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 30]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     60|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     30|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     30|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     30|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 30]
  |  |  ------------------
  ------------------
 1758|     30|  return result;
 1759|     30|}
http2.c:cf_h2_recv:
 1951|  9.97k|{
 1952|  9.97k|  struct cf_h2_ctx *ctx = cf->ctx;
 1953|  9.97k|  struct h2_stream_ctx *stream;
 1954|  9.97k|  CURLcode result, r2;
 1955|  9.97k|  struct cf_call_data save;
 1956|       |
 1957|  9.97k|  if(!data)
  ------------------
  |  Branch (1957:6): [True: 0, False: 9.97k]
  ------------------
 1958|      0|    return CURLE_HTTP2;
 1959|       |
 1960|  9.97k|  stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  9.97k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  9.97k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 9.97k, False: 0]
  |  |  ------------------
  ------------------
 1961|       |
 1962|  9.97k|  *pnread = 0;
 1963|  9.97k|  if(!stream) {
  ------------------
  |  Branch (1963:6): [True: 0, False: 9.97k]
  ------------------
 1964|       |    /* Abnormal call sequence: either this transfer has never opened a stream
 1965|       |     * (unlikely) or the transfer has been done, cleaned up its resources, but
 1966|       |     * a read() is called anyway. It is not clear what the calling sequence
 1967|       |     * is for such a case. */
 1968|      0|    failf(data, "http/2 recv on a transfer never opened "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1969|      0|          "or already cleared, mid=%u", data->mid);
 1970|      0|    return CURLE_HTTP2;
 1971|      0|  }
 1972|       |
 1973|  9.97k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  9.97k|  do { \
  |  |  671|  9.97k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|  9.97k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  9.97k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  9.97k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  9.97k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|  9.97k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  9.97k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|  9.97k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  9.97k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  |  Branch (1973:3): [True: 9.97k, False: 0]
  |  Branch (1973:3): [True: 0, False: 0]
  |  Branch (1973:3): [True: 9.97k, False: 0]
  |  Branch (1973:3): [True: 0, False: 0]
  ------------------
 1974|       |
 1975|  9.97k|  result = stream_recv(cf, data, stream, buf, len, pnread);
 1976|  9.97k|  if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (1976:6): [True: 9.97k, False: 0]
  |  Branch (1976:16): [True: 0, False: 9.97k]
  ------------------
 1977|      0|    goto out;
 1978|       |
 1979|  9.97k|  if(result) {
  ------------------
  |  Branch (1979:6): [True: 9.97k, False: 0]
  ------------------
 1980|  9.97k|    result = h2_progress_ingress(cf, data, len);
 1981|  9.97k|    if(result)
  ------------------
  |  Branch (1981:8): [True: 588, False: 9.39k]
  ------------------
 1982|    588|      goto out;
 1983|       |
 1984|  9.39k|    result = stream_recv(cf, data, stream, buf, len, pnread);
 1985|  9.39k|  }
 1986|       |
 1987|  9.39k|  if(*pnread > 0) {
  ------------------
  |  Branch (1987:6): [True: 0, False: 9.39k]
  ------------------
 1988|       |    /* Now that we transferred this to the upper layer, we report
 1989|       |     * the actual amount of DATA consumed to the H2 session, so
 1990|       |     * that it adjusts stream flow control */
 1991|      0|    nghttp2_session_consume(ctx->h2, stream->id, *pnread);
 1992|      0|    if(stream->closed) {
  ------------------
  |  Branch (1992:8): [True: 0, False: 0]
  ------------------
 1993|      0|      CURL_TRC_CF(data, cf, "[%d] DRAIN closed stream", stream->id);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1994|      0|      Curl_multi_mark_dirty(data);
 1995|      0|    }
 1996|      0|  }
 1997|       |
 1998|  9.97k|out:
 1999|  9.97k|  r2 = h2_progress_egress(cf, data);
 2000|  9.97k|  if(r2 == CURLE_AGAIN) {
  ------------------
  |  Branch (2000:6): [True: 834, False: 9.14k]
  ------------------
 2001|       |    /* pending data to send, need to be called again. Ideally, we
 2002|       |     * monitor the socket for POLLOUT, but when not SENDING
 2003|       |     * any more, we force processing of the transfer. */
 2004|    834|    if(!CURL_REQ_WANT_SEND(data))
  ------------------
  |  |   39|    834|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|    834|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  |  Branch (2004:8): [True: 72, False: 762]
  ------------------
 2005|     72|      Curl_multi_mark_dirty(data);
 2006|    834|  }
 2007|  9.14k|  else if(r2) {
  ------------------
  |  Branch (2007:11): [True: 0, False: 9.14k]
  ------------------
 2008|      0|    result = r2;
 2009|      0|  }
 2010|  9.97k|  CURL_TRC_CF(data, cf, "[%d] cf_recv(len=%zu) -> %d, %zu, "
  ------------------
  |  |  153|  9.97k|  do {                                          \
  |  |  154|  9.97k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  9.97k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  9.97k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  9.97k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
 2011|  9.97k|              "window=%d/%d, connection %d/%d",
 2012|  9.97k|              stream->id, len, result, *pnread,
 2013|  9.97k|              nghttp2_session_get_stream_effective_recv_data_length(
 2014|  9.97k|                ctx->h2, stream->id),
 2015|  9.97k|              nghttp2_session_get_stream_effective_local_window_size(
 2016|  9.97k|                ctx->h2, stream->id),
 2017|  9.97k|              nghttp2_session_get_local_window_size(ctx->h2),
 2018|  9.97k|              HTTP2_HUGE_WINDOW_SIZE);
 2019|       |
 2020|  9.97k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  9.97k|  do { \
  |  |  679|  9.97k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  9.97k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  9.97k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  9.97k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  9.97k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|  9.97k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  |  Branch (2020:3): [True: 0, False: 9.97k]
  |  Branch (2020:3): [True: 9.97k, False: 0]
  |  Branch (2020:3): [True: 9.97k, False: 0]
  |  Branch (2020:3): [True: 0, False: 0]
  |  Branch (2020:3): [True: 9.97k, False: 0]
  |  Branch (2020:3): [True: 0, False: 0]
  ------------------
 2021|  9.97k|  return result;
 2022|  9.97k|}
http2.c:stream_recv:
 1838|  19.3k|{
 1839|  19.3k|  struct cf_h2_ctx *ctx = cf->ctx;
 1840|  19.3k|  CURLcode result = CURLE_AGAIN;
 1841|       |
 1842|  19.3k|  (void)buf;
 1843|  19.3k|  (void)len;
 1844|  19.3k|  *pnread = 0;
 1845|       |
 1846|  19.3k|  if(!stream->xfer_result)
  ------------------
  |  Branch (1846:6): [True: 19.2k, False: 95]
  ------------------
 1847|  19.2k|    stream->xfer_result = cf_h2_update_local_win(cf, data, stream);
 1848|       |
 1849|  19.3k|  if(stream->xfer_result) {
  ------------------
  |  Branch (1849:6): [True: 95, False: 19.2k]
  ------------------
 1850|     95|    CURL_TRC_CF(data, cf, "[%d] xfer write failed", stream->id);
  ------------------
  |  |  153|     95|  do {                                          \
  |  |  154|     95|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|     95|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    190|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 95, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 95]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    190|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|     95|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     95|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     95|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 95]
  |  |  ------------------
  ------------------
 1851|     95|    result = stream->xfer_result;
 1852|     95|  }
 1853|  19.2k|  else if(stream->closed) {
  ------------------
  |  Branch (1853:11): [True: 364, False: 18.9k]
  ------------------
 1854|    364|    CURL_TRC_CF(data, cf, "[%d] returning CLOSE", stream->id);
  ------------------
  |  |  153|    364|  do {                                          \
  |  |  154|    364|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    364|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    728|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 364, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 364]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    728|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    364|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    364|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    364|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 364]
  |  |  ------------------
  ------------------
 1855|    364|    result = http2_handle_stream_close(cf, data, stream, pnread);
 1856|    364|  }
 1857|  18.9k|  else if(stream->reset ||
  ------------------
  |  Branch (1857:11): [True: 0, False: 18.9k]
  ------------------
 1858|  18.9k|          (ctx->conn_closed && Curl_bufq_is_empty(&ctx->inbufq)) ||
  ------------------
  |  Branch (1858:12): [True: 1.82k, False: 17.0k]
  |  Branch (1858:32): [True: 1.82k, False: 0]
  ------------------
 1859|  17.0k|          (ctx->rcvd_goaway && ctx->remote_max_sid < stream->id)) {
  ------------------
  |  Branch (1859:12): [True: 206, False: 16.8k]
  |  Branch (1859:32): [True: 0, False: 206]
  ------------------
 1860|  1.82k|    CURL_TRC_CF(data, cf, "[%d] returning ERR", stream->id);
  ------------------
  |  |  153|  1.82k|  do {                                          \
  |  |  154|  1.82k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  1.82k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  3.65k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.82k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.82k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  3.65k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  1.82k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.82k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.82k]
  |  |  ------------------
  ------------------
 1861|  1.82k|    result = data->req.bytecount ? CURLE_PARTIAL_FILE : CURLE_HTTP2;
  ------------------
  |  Branch (1861:14): [True: 0, False: 1.82k]
  ------------------
 1862|  1.82k|  }
 1863|       |
 1864|  19.3k|  if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (1864:6): [True: 19.3k, False: 30]
  |  Branch (1864:16): [True: 2.25k, False: 17.0k]
  ------------------
 1865|  2.25k|    CURL_TRC_CF(data, cf, "[%d] stream_recv(len=%zu) -> %d, %zu",
  ------------------
  |  |  153|  2.25k|  do {                                          \
  |  |  154|  2.25k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  2.25k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  4.50k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.25k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.25k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  4.50k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  2.25k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.25k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.25k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.25k]
  |  |  ------------------
  ------------------
 1866|  19.3k|                stream->id, len, result, *pnread);
 1867|  19.3k|  return result;
 1868|  19.3k|}
http2.c:cf_h2_cntrl:
 2666|  6.65k|{
 2667|  6.65k|  CURLcode result = CURLE_OK;
 2668|  6.65k|  struct cf_call_data save;
 2669|       |
 2670|  6.65k|  (void)arg2;
 2671|       |
 2672|  6.65k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  6.65k|  do { \
  |  |  671|  6.65k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|  6.65k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  6.65k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  6.65k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  6.65k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|  6.65k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  6.65k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|  6.65k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  6.65k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  6.65k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 6.65k]
  |  |  ------------------
  ------------------
  |  Branch (2672:3): [True: 6.65k, False: 0]
  |  Branch (2672:3): [True: 0, False: 0]
  |  Branch (2672:3): [True: 6.64k, False: 8]
  |  Branch (2672:3): [True: 8, False: 0]
  ------------------
 2673|  6.65k|  switch(event) {
 2674|      0|  case CF_CTRL_DATA_SETUP:
  ------------------
  |  |  119|      0|#define CF_CTRL_DATA_SETUP              4  /* 0          NULL     first fail */
  ------------------
  |  Branch (2674:3): [True: 0, False: 6.65k]
  ------------------
 2675|      0|    break;
 2676|      0|  case CF_CTRL_DATA_PAUSE:
  ------------------
  |  |  121|      0|#define CF_CTRL_DATA_PAUSE              6  /* on/off     NULL     first fail */
  ------------------
  |  Branch (2676:3): [True: 0, False: 6.65k]
  ------------------
 2677|      0|    result = http2_data_pause(cf, data, (arg1 != 0));
 2678|      0|    break;
 2679|  1.05k|  case CF_CTRL_FLUSH:
  ------------------
  |  |  127|  1.05k|#define CF_CTRL_FLUSH            (256 + 2) /* 0          NULL     first fail */
  ------------------
  |  Branch (2679:3): [True: 1.05k, False: 5.59k]
  ------------------
 2680|  1.05k|    result = cf_h2_flush(cf, data);
 2681|  1.05k|    break;
 2682|  2.94k|  case CF_CTRL_DATA_DONE:
  ------------------
  |  |  122|  2.94k|#define CF_CTRL_DATA_DONE               7  /* premature  NULL     ignored */
  ------------------
  |  Branch (2682:3): [True: 2.94k, False: 3.71k]
  ------------------
 2683|  2.94k|    http2_data_done(cf, data);
 2684|  2.94k|    break;
 2685|     43|  case CF_CTRL_CONN_INFO_UPDATE:
  ------------------
  |  |  125|     43|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
  |  Branch (2685:3): [True: 43, False: 6.61k]
  ------------------
 2686|     43|    if(!cf->sockindex && cf->connected) {
  ------------------
  |  Branch (2686:8): [True: 43, False: 0]
  |  Branch (2686:26): [True: 43, False: 0]
  ------------------
 2687|     43|      cf->conn->httpversion_seen = 20;
 2688|     43|      Curl_conn_set_multiplex(cf->conn);
 2689|     43|    }
 2690|     43|    break;
 2691|  2.60k|  default:
  ------------------
  |  Branch (2691:3): [True: 2.60k, False: 4.04k]
  ------------------
 2692|  2.60k|    break;
 2693|  6.65k|  }
 2694|  6.65k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  6.65k|  do { \
  |  |  679|  6.65k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  6.65k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  6.65k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  6.65k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  6.65k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|  6.65k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  6.65k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 6.65k]
  |  |  ------------------
  ------------------
  |  Branch (2694:3): [True: 0, False: 6.65k]
  |  Branch (2694:3): [True: 6.65k, False: 0]
  |  Branch (2694:3): [True: 6.65k, False: 0]
  |  Branch (2694:3): [True: 0, False: 0]
  |  Branch (2694:3): [True: 6.64k, False: 8]
  |  Branch (2694:3): [True: 8, False: 0]
  ------------------
 2695|  6.65k|  return result;
 2696|  6.65k|}
http2.c:cf_h2_flush:
 2296|  1.05k|{
 2297|  1.05k|  struct cf_h2_ctx *ctx = cf->ctx;
 2298|  1.05k|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  1.05k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  1.05k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 1.05k, False: 0]
  |  |  ------------------
  ------------------
 2299|  1.05k|  struct cf_call_data save;
 2300|  1.05k|  CURLcode result = CURLE_OK;
 2301|       |
 2302|  1.05k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  1.05k|  do { \
  |  |  671|  1.05k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|  1.05k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  1.05k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  1.05k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  1.05k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|  1.05k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  1.05k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|  1.05k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  1.05k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  1.05k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 1.05k]
  |  |  ------------------
  ------------------
  |  Branch (2302:3): [True: 1.05k, False: 0]
  |  Branch (2302:3): [True: 0, False: 0]
  |  Branch (2302:3): [True: 0, False: 1.05k]
  |  Branch (2302:3): [True: 1.05k, False: 0]
  ------------------
 2303|  1.05k|  if(stream && !Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  Branch (2303:6): [True: 1.05k, False: 5]
  |  Branch (2303:16): [True: 457, False: 597]
  ------------------
 2304|       |    /* resume the potentially suspended stream */
 2305|    457|    int rv = nghttp2_session_resume_data(ctx->h2, stream->id);
 2306|    457|    if(nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2306:8): [True: 0, False: 457]
  ------------------
 2307|      0|      result = CURLE_SEND_ERROR;
 2308|      0|      goto out;
 2309|      0|    }
 2310|    457|  }
 2311|       |
 2312|  1.05k|  result = h2_progress_egress(cf, data);
 2313|       |
 2314|  1.05k|out:
 2315|  1.05k|  if(stream) {
  ------------------
  |  Branch (2315:6): [True: 1.05k, False: 5]
  ------------------
 2316|  1.05k|    CURL_TRC_CF(data, cf, "[%d] flush -> %d, "
  ------------------
  |  |  153|  1.05k|  do {                                          \
  |  |  154|  1.05k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  1.05k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  2.10k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.05k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.05k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  2.10k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  1.05k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.05k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.05k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.05k]
  |  |  ------------------
  ------------------
 2317|  1.05k|                "h2 windows %d-%d (stream-conn), "
 2318|  1.05k|                "buffers %zu-%zu (stream-conn)",
 2319|  1.05k|                stream->id, result,
 2320|  1.05k|                nghttp2_session_get_stream_remote_window_size(
 2321|  1.05k|                  ctx->h2, stream->id),
 2322|  1.05k|                nghttp2_session_get_remote_window_size(ctx->h2),
 2323|  1.05k|                Curl_bufq_len(&stream->sendbuf),
 2324|  1.05k|                Curl_bufq_len(&ctx->outbufq));
 2325|  1.05k|  }
 2326|      5|  else {
 2327|      5|    CURL_TRC_CF(data, cf, "flush -> %d, "
  ------------------
  |  |  153|      5|  do {                                          \
  |  |  154|      5|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      5|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     10|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 5, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 5]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     10|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      5|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      5|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      5|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 5]
  |  |  ------------------
  ------------------
 2328|      5|                "connection-window=%d, nw_send_buffer(%zu)",
 2329|      5|                result, nghttp2_session_get_remote_window_size(ctx->h2),
 2330|      5|                Curl_bufq_len(&ctx->outbufq));
 2331|      5|  }
 2332|  1.05k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  1.05k|  do { \
  |  |  679|  1.05k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  1.05k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  1.05k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  1.05k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  1.05k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|  1.05k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  1.05k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 1.05k]
  |  |  ------------------
  ------------------
  |  Branch (2332:3): [True: 0, False: 1.05k]
  |  Branch (2332:3): [True: 1.05k, False: 0]
  |  Branch (2332:3): [True: 1.05k, False: 0]
  |  Branch (2332:3): [True: 0, False: 0]
  |  Branch (2332:3): [True: 0, False: 1.05k]
  |  Branch (2332:3): [True: 1.05k, False: 0]
  ------------------
 2333|  1.05k|  return result;
 2334|  1.05k|}
http2.c:cf_h2_query:
 2740|  23.1k|{
 2741|  23.1k|  struct cf_h2_ctx *ctx = cf->ctx;
 2742|  23.1k|  struct cf_call_data save;
 2743|  23.1k|  size_t effective_max;
 2744|       |
 2745|  23.1k|  switch(query) {
 2746|    489|  case CF_QUERY_MAX_CONCURRENT:
  ------------------
  |  |  165|    489|#define CF_QUERY_MAX_CONCURRENT     1  /* number     -        */
  ------------------
  |  Branch (2746:3): [True: 489, False: 22.6k]
  ------------------
 2747|    489|    DEBUGASSERT(pres1);
  ------------------
  |  | 1081|    489|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2747:5): [True: 0, False: 489]
  |  Branch (2747:5): [True: 489, False: 0]
  ------------------
 2748|       |
 2749|    489|    CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|    489|  do { \
  |  |  671|    489|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  120|    489|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|    489|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|    489|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|    489|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  120|    489|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|    489|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  120|    489|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|    489|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|    489|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 489]
  |  |  ------------------
  ------------------
  |  Branch (2749:5): [True: 489, False: 0]
  |  Branch (2749:5): [True: 0, False: 0]
  |  Branch (2749:5): [True: 489, False: 0]
  |  Branch (2749:5): [True: 0, False: 0]
  ------------------
 2750|    489|    if(!ctx->h2 || !nghttp2_session_check_request_allowed(ctx->h2)) {
  ------------------
  |  Branch (2750:8): [True: 0, False: 489]
  |  Branch (2750:20): [True: 1, False: 488]
  ------------------
 2751|       |      /* the limit is what we have in use right now */
 2752|      1|      effective_max = cf->conn->attached_xfers;
 2753|      1|    }
 2754|    488|    else {
 2755|    488|      effective_max = ctx->max_concurrent_streams;
 2756|    488|    }
 2757|    489|    *pres1 = (effective_max > INT_MAX) ? INT_MAX : (int)effective_max;
  ------------------
  |  Branch (2757:14): [True: 330, False: 159]
  ------------------
 2758|    489|    CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|    489|  do { \
  |  |  679|    489|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|    489|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|    489|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|    489|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|    489|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  120|    489|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|    489|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 489]
  |  |  ------------------
  ------------------
  |  Branch (2758:5): [True: 0, False: 489]
  |  Branch (2758:5): [True: 489, False: 0]
  |  Branch (2758:5): [True: 489, False: 0]
  |  Branch (2758:5): [True: 0, False: 0]
  |  Branch (2758:5): [True: 489, False: 0]
  |  Branch (2758:5): [True: 0, False: 0]
  ------------------
 2759|    489|    return CURLE_OK;
 2760|    323|  case CF_QUERY_STREAM_ERROR: {
  ------------------
  |  |  170|    323|#define CF_QUERY_STREAM_ERROR       6  /* error code - */
  ------------------
  |  Branch (2760:3): [True: 323, False: 22.8k]
  ------------------
 2761|    323|    struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|    323|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|    323|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 323, False: 0]
  |  |  ------------------
  ------------------
 2762|    323|    *pres1 = stream ? (int)stream->error : 0;
  ------------------
  |  Branch (2762:14): [True: 323, False: 0]
  ------------------
 2763|    323|    return CURLE_OK;
 2764|    489|  }
 2765|  13.4k|  case CF_QUERY_NEED_FLUSH: {
  ------------------
  |  |  171|  13.4k|#define CF_QUERY_NEED_FLUSH         7  /* TRUE/FALSE - */
  ------------------
  |  Branch (2765:3): [True: 13.4k, False: 9.73k]
  ------------------
 2766|  13.4k|    struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  265|  13.4k|  ((struct h2_stream_ctx *)(                                             \
  |  |  266|  13.4k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 13.4k, False: 0]
  |  |  ------------------
  ------------------
 2767|  13.4k|    if(!Curl_bufq_is_empty(&ctx->outbufq) ||
  ------------------
  |  Branch (2767:8): [True: 937, False: 12.5k]
  ------------------
 2768|  12.5k|       (stream && !Curl_bufq_is_empty(&stream->sendbuf))) {
  ------------------
  |  Branch (2768:9): [True: 12.4k, False: 38]
  |  Branch (2768:19): [True: 1.68k, False: 10.7k]
  ------------------
 2769|  2.62k|      *pres1 = TRUE;
  ------------------
  |  | 1055|  2.62k|#define TRUE true
  ------------------
 2770|  2.62k|      return CURLE_OK;
 2771|  2.62k|    }
 2772|  10.8k|    break;
 2773|  13.4k|  }
 2774|  10.8k|  case CF_QUERY_HTTP_VERSION:
  ------------------
  |  |  173|  3.22k|#define CF_QUERY_HTTP_VERSION       9  /* number (10/11/20/30)   - */
  ------------------
  |  Branch (2774:3): [True: 3.22k, False: 19.9k]
  ------------------
 2775|  3.22k|    *pres1 = 20;
 2776|  3.22k|    return CURLE_OK;
 2777|  5.69k|  default:
  ------------------
  |  Branch (2777:3): [True: 5.69k, False: 17.4k]
  ------------------
 2778|  5.69k|    break;
 2779|  23.1k|  }
 2780|  16.5k|  return cf->next ?
  ------------------
  |  Branch (2780:10): [True: 16.5k, False: 0]
  ------------------
 2781|  16.5k|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
 2782|  16.5k|    CURLE_UNKNOWN_OPTION;
 2783|  23.1k|}
http2.c:http2_cfilter_add:
 2808|  2.94k|{
 2809|  2.94k|  struct Curl_cfilter *cf = NULL;
 2810|  2.94k|  struct cf_h2_ctx *ctx;
 2811|  2.94k|  CURLcode result = CURLE_OUT_OF_MEMORY;
 2812|       |
 2813|  2.94k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2813:3): [True: 0, False: 2.94k]
  |  Branch (2813:3): [True: 2.94k, False: 0]
  ------------------
 2814|  2.94k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1480|  2.94k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 2815|  2.94k|  if(!ctx)
  ------------------
  |  Branch (2815:6): [True: 0, False: 2.94k]
  ------------------
 2816|      0|    goto out;
 2817|  2.94k|  cf_h2_ctx_init(ctx, via_h1_upgrade);
 2818|       |
 2819|  2.94k|  result = Curl_cf_create(&cf, &Curl_cft_nghttp2, ctx);
 2820|  2.94k|  if(result)
  ------------------
  |  Branch (2820:6): [True: 0, False: 2.94k]
  ------------------
 2821|      0|    goto out;
 2822|       |
 2823|  2.94k|  ctx = NULL;
 2824|  2.94k|  Curl_conn_cf_add(data, conn, sockindex, cf);
 2825|       |
 2826|  2.94k|out:
 2827|  2.94k|  if(result)
  ------------------
  |  Branch (2827:6): [True: 0, False: 2.94k]
  ------------------
 2828|      0|    cf_h2_ctx_free(ctx);
 2829|  2.94k|  *pcf = result ? NULL : cf;
  ------------------
  |  Branch (2829:10): [True: 0, False: 2.94k]
  ------------------
 2830|  2.94k|  return result;
 2831|  2.94k|}
http2.c:cf_h2_ctx_init:
  178|  2.94k|{
  179|  2.94k|  Curl_bufcp_init(&ctx->stream_bufcp, H2_CHUNK_SIZE, H2_STREAM_POOL_SPARES);
  ------------------
  |  |   61|  2.94k|#define H2_CHUNK_SIZE           (16 * 1024)
  ------------------
                Curl_bufcp_init(&ctx->stream_bufcp, H2_CHUNK_SIZE, H2_STREAM_POOL_SPARES);
  ------------------
  |  |   81|  2.94k|#define H2_STREAM_POOL_SPARES   (H2_CONN_WINDOW_SIZE / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   63|  2.94k|#define H2_CONN_WINDOW_SIZE     (10 * 1024 * 1024)
  |  |  ------------------
  |  |               #define H2_STREAM_POOL_SPARES   (H2_CONN_WINDOW_SIZE / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   61|  2.94k|#define H2_CHUNK_SIZE           (16 * 1024)
  |  |  ------------------
  ------------------
  180|  2.94k|  Curl_bufq_initp(&ctx->inbufq, &ctx->stream_bufcp, H2_NW_RECV_CHUNKS, 0);
  ------------------
  |  |   65|  2.94k|#define H2_NW_RECV_CHUNKS       (H2_CONN_WINDOW_SIZE / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   63|  2.94k|#define H2_CONN_WINDOW_SIZE     (10 * 1024 * 1024)
  |  |  ------------------
  |  |               #define H2_NW_RECV_CHUNKS       (H2_CONN_WINDOW_SIZE / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   61|  2.94k|#define H2_CHUNK_SIZE           (16 * 1024)
  |  |  ------------------
  ------------------
  181|  2.94k|  Curl_bufq_initp(&ctx->outbufq, &ctx->stream_bufcp, H2_NW_SEND_CHUNKS, 0);
  ------------------
  |  |   67|  2.94k|#define H2_NW_SEND_CHUNKS       1
  ------------------
  182|  2.94k|  curlx_dyn_init(&ctx->scratch, CURL_MAX_HTTP_HEADER);
  ------------------
  |  |  272|  2.94k|#define CURL_MAX_HTTP_HEADER (100 * 1024)
  ------------------
  183|  2.94k|  Curl_uint32_hash_init(&ctx->streams, 63, h2_stream_hash_free);
  184|  2.94k|  ctx->remote_max_sid = 2147483647;
  185|  2.94k|  ctx->via_h1_upgrade = via_h1_upgrade;
  186|       |  ctx->initialized = TRUE;
  ------------------
  |  | 1055|  2.94k|#define TRUE true
  ------------------
  187|  2.94k|}
http2.c:h2_stream_hash_free:
  171|  2.94k|{
  172|  2.94k|  (void)id;
  173|  2.94k|  DEBUGASSERT(stream);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (173:3): [True: 0, False: 2.94k]
  |  Branch (173:3): [True: 2.94k, False: 0]
  ------------------
  174|  2.94k|  h2_stream_ctx_free((struct h2_stream_ctx *)stream);
  175|  2.94k|}

Curl_httpchunk_init:
   74|    208|{
   75|    208|  (void)data;
   76|    208|  ch->hexindex = 0;      /* start at 0 */
   77|    208|  ch->state = CHUNK_HEX; /* we get hex first! */
   78|    208|  ch->last_code = CHUNKE_OK;
   79|    208|  curlx_dyn_init(&ch->trailer, DYN_H1_TRAILER);
  ------------------
  |  |   75|    208|#define DYN_H1_TRAILER      4096
  ------------------
   80|    208|  ch->ignore_body = ignore_body;
   81|    208|}
Curl_httpchunk_reset:
   85|    135|{
   86|    135|  (void)data;
   87|    135|  ch->hexindex = 0;      /* start at 0 */
   88|    135|  ch->state = CHUNK_HEX; /* we get hex first! */
   89|    135|  ch->last_code = CHUNKE_OK;
   90|    135|  curlx_dyn_reset(&ch->trailer);
   91|    135|  ch->ignore_body = ignore_body;
   92|    135|}
Curl_httpchunk_free:
   95|    208|{
   96|    208|  (void)data;
   97|    208|  curlx_dyn_free(&ch->trailer);
   98|    208|}
Curl_httpchunk_add_reader:
  655|    185|{
  656|    185|  struct Curl_creader *reader = NULL;
  657|    185|  CURLcode result;
  658|       |
  659|    185|  result = Curl_creader_create(&reader, data, &Curl_httpchunk_encoder,
  660|    185|                               CURL_CR_TRANSFER_ENCODE);
  661|    185|  if(!result)
  ------------------
  |  Branch (661:6): [True: 185, False: 0]
  ------------------
  662|    185|    result = Curl_creader_add(data, reader);
  663|       |
  664|    185|  if(result && reader)
  ------------------
  |  Branch (664:6): [True: 0, False: 185]
  |  Branch (664:16): [True: 0, False: 0]
  ------------------
  665|      0|    Curl_creader_free(data, reader);
  666|    185|  return result;
  667|    185|}
http_chunks.c:httpchunk_readwrite:
  111|    778|{
  112|    778|  CURLcode result = CURLE_OK;
  113|    778|  size_t piece;
  114|       |
  115|    778|  *pconsumed = 0; /* nothing's written yet */
  116|       |  /* first check terminal states that will not progress anywhere */
  117|    778|  if(ch->state == CHUNK_DONE)
  ------------------
  |  Branch (117:6): [True: 0, False: 778]
  ------------------
  118|      0|    return CURLE_OK;
  119|    778|  if(ch->state == CHUNK_FAILED)
  ------------------
  |  Branch (119:6): [True: 0, False: 778]
  ------------------
  120|      0|    return CURLE_RECV_ERROR;
  121|       |
  122|       |  /* the original data is written to the client, but we go on with the
  123|       |     chunk read process, to properly calculate the content length */
  124|    778|  if(data->set.http_te_skip && !ch->ignore_body) {
  ------------------
  |  Branch (124:6): [True: 0, False: 778]
  |  Branch (124:32): [True: 0, False: 0]
  ------------------
  125|      0|    if(cw_next)
  ------------------
  |  Branch (125:8): [True: 0, False: 0]
  ------------------
  126|      0|      result = Curl_cwriter_write(data, cw_next, CLIENTWRITE_BODY, buf, blen);
  ------------------
  |  |   42|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  127|      0|    else
  128|      0|      result = Curl_client_write(data, CLIENTWRITE_BODY, buf, blen);
  ------------------
  |  |   42|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  129|      0|    if(result) {
  ------------------
  |  Branch (129:8): [True: 0, False: 0]
  ------------------
  130|      0|      ch->state = CHUNK_FAILED;
  131|      0|      ch->last_code = CHUNKE_PASSTHRU_ERROR;
  132|      0|      return result;
  133|      0|    }
  134|      0|  }
  135|       |
  136|  14.6k|  while(blen) {
  ------------------
  |  Branch (136:9): [True: 13.9k, False: 725]
  ------------------
  137|  13.9k|    switch(ch->state) {
  ------------------
  |  Branch (137:12): [True: 13.9k, False: 0]
  ------------------
  138|  1.55k|    case CHUNK_HEX:
  ------------------
  |  Branch (138:5): [True: 1.55k, False: 12.4k]
  ------------------
  139|  1.55k|      if(ISXDIGIT(*buf)) {
  ------------------
  |  |   39|  1.55k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|  3.10k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 1.28k, False: 264]
  |  |  |  |  |  Branch (44:38): [True: 424, False: 864]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|  2.68k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 489, False: 639]
  |  |  |  |  |  Branch (27:43): [True: 469, False: 20]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|    659|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 387, False: 272]
  |  |  |  |  |  Branch (28:43): [True: 349, False: 38]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  140|  1.24k|        if(ch->hexindex >= CHUNK_MAXNUM_LEN) {
  ------------------
  |  |   39|  1.24k|#define CHUNK_MAXNUM_LEN (SIZEOF_CURL_OFF_T * 2)
  |  |  ------------------
  |  |  |  |  632|  1.24k|#define SIZEOF_CURL_OFF_T 8
  |  |  ------------------
  ------------------
  |  Branch (140:12): [True: 4, False: 1.23k]
  ------------------
  141|      4|          failf(data, "chunk hex-length longer than %d", CHUNK_MAXNUM_LEN);
  ------------------
  |  |   62|      4|#define failf Curl_failf
  ------------------
                        failf(data, "chunk hex-length longer than %d", CHUNK_MAXNUM_LEN);
  ------------------
  |  |   39|      4|#define CHUNK_MAXNUM_LEN (SIZEOF_CURL_OFF_T * 2)
  |  |  ------------------
  |  |  |  |  632|      4|#define SIZEOF_CURL_OFF_T 8
  |  |  ------------------
  ------------------
  142|      4|          ch->state = CHUNK_FAILED;
  143|      4|          ch->last_code = CHUNKE_TOO_LONG_HEX; /* longer than we support */
  144|      4|          return CURLE_RECV_ERROR;
  145|      4|        }
  146|  1.23k|        ch->hexbuffer[ch->hexindex++] = *buf;
  147|  1.23k|        buf++;
  148|  1.23k|        blen--;
  149|  1.23k|        (*pconsumed)++;
  150|  1.23k|      }
  151|    310|      else {
  152|    310|        const char *p;
  153|    310|        if(ch->hexindex == 0) {
  ------------------
  |  Branch (153:12): [True: 8, False: 302]
  ------------------
  154|       |          /* This is illegal data, we received junk where we expected
  155|       |             a hexadecimal digit. */
  156|      8|          failf(data, "chunk hex-length char not a hex digit: 0x%x", *buf);
  ------------------
  |  |   62|      8|#define failf Curl_failf
  ------------------
  157|      8|          ch->state = CHUNK_FAILED;
  158|      8|          ch->last_code = CHUNKE_ILLEGAL_HEX;
  159|      8|          return CURLE_RECV_ERROR;
  160|      8|        }
  161|       |        /* blen and buf are unmodified */
  162|    302|        ch->hexbuffer[ch->hexindex] = 0;
  163|    302|        p = &ch->hexbuffer[0];
  164|    302|        if(curlx_str_hex(&p, &ch->datasize, CURL_OFF_T_MAX)) {
  ------------------
  |  |  594|    302|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (164:12): [True: 3, False: 299]
  ------------------
  165|      3|          failf(data, "invalid chunk size: '%s'", ch->hexbuffer);
  ------------------
  |  |   62|      3|#define failf Curl_failf
  ------------------
  166|      3|          ch->state = CHUNK_FAILED;
  167|      3|          ch->last_code = CHUNKE_ILLEGAL_HEX;
  168|      3|          return CURLE_RECV_ERROR;
  169|      3|        }
  170|    299|        ch->state = CHUNK_LF; /* now wait for the CRLF */
  171|    299|      }
  172|  1.53k|      break;
  173|       |
  174|  4.04k|    case CHUNK_LF:
  ------------------
  |  Branch (174:5): [True: 4.04k, False: 9.90k]
  ------------------
  175|       |      /* waiting for the LF after a chunk size */
  176|  4.04k|      if(*buf == 0x0a) {
  ------------------
  |  Branch (176:10): [True: 276, False: 3.76k]
  ------------------
  177|       |        /* we are now expecting data to come, unless size was zero! */
  178|    276|        if(ch->datasize == 0) {
  ------------------
  |  Branch (178:12): [True: 41, False: 235]
  ------------------
  179|     41|          ch->state = CHUNK_TRAILER; /* now check for trailers */
  180|     41|        }
  181|    235|        else {
  182|    235|          ch->state = CHUNK_DATA;
  183|    235|          CURL_TRC_WRITE(data, "http_chunked, chunk start of %"
  ------------------
  |  |  158|    235|  do {                                                     \
  |  |  159|    235|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|    235|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    470|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 235, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 235]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    470|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    235|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|    235|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|    235|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 235]
  |  |  ------------------
  ------------------
  184|    235|                         FMT_OFF_T " bytes", ch->datasize);
  185|    235|        }
  186|    276|      }
  187|       |
  188|  4.04k|      buf++;
  189|  4.04k|      blen--;
  190|  4.04k|      (*pconsumed)++;
  191|  4.04k|      break;
  192|       |
  193|    398|    case CHUNK_DATA:
  ------------------
  |  Branch (193:5): [True: 398, False: 13.5k]
  ------------------
  194|       |      /* We expect 'datasize' of data. We have 'blen' right now, it can be
  195|       |         more or less than 'datasize'. Get the smallest piece.
  196|       |      */
  197|    398|      piece = blen;
  198|    398|      if(ch->datasize < (curl_off_t)blen)
  ------------------
  |  Branch (198:10): [True: 149, False: 249]
  ------------------
  199|    149|        piece = curlx_sotouz(ch->datasize);
  200|       |
  201|       |      /* Write the data portion available */
  202|    398|      if(!data->set.http_te_skip && !ch->ignore_body) {
  ------------------
  |  Branch (202:10): [True: 398, False: 0]
  |  Branch (202:37): [True: 398, False: 0]
  ------------------
  203|    398|        if(cw_next)
  ------------------
  |  Branch (203:12): [True: 398, False: 0]
  ------------------
  204|    398|          result = Curl_cwriter_write(data, cw_next, CLIENTWRITE_BODY,
  ------------------
  |  |   42|    398|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  205|    398|                                      buf, piece);
  206|      0|        else
  207|      0|          result = Curl_client_write(data, CLIENTWRITE_BODY, buf, piece);
  ------------------
  |  |   42|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  208|    398|        if(result) {
  ------------------
  |  Branch (208:12): [True: 1, False: 397]
  ------------------
  209|      1|          ch->state = CHUNK_FAILED;
  210|      1|          ch->last_code = CHUNKE_PASSTHRU_ERROR;
  211|      1|          return result;
  212|      1|        }
  213|    398|      }
  214|       |
  215|    397|      *pconsumed += piece;
  216|    397|      ch->datasize -= piece; /* decrease amount left to expect */
  217|    397|      buf += piece;    /* move read pointer forward */
  218|    397|      blen -= piece;   /* decrease space left in this round */
  219|    397|      CURL_TRC_WRITE(data, "http_chunked, write %zu body bytes, %"
  ------------------
  |  |  158|    397|  do {                                                     \
  |  |  159|    397|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|    397|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    794|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 397, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 397]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    794|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    397|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|    397|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|    397|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 397]
  |  |  ------------------
  ------------------
  220|    397|                     FMT_OFF_T " bytes in chunk remain",
  221|    397|                     piece, ch->datasize);
  222|       |
  223|    397|      if(ch->datasize == 0)
  ------------------
  |  Branch (223:10): [True: 148, False: 249]
  ------------------
  224|       |        /* end of data this round, we now expect a trailing CRLF */
  225|    148|        ch->state = CHUNK_POSTLF;
  226|    397|      break;
  227|       |
  228|    771|    case CHUNK_POSTLF:
  ------------------
  |  Branch (228:5): [True: 771, False: 13.1k]
  ------------------
  229|    771|      if(*buf == 0x0a) {
  ------------------
  |  Branch (229:10): [True: 135, False: 636]
  ------------------
  230|       |        /* The last one before we go back to hex state and start all over. */
  231|    135|        Curl_httpchunk_reset(data, ch, (bool)ch->ignore_body);
  232|    135|      }
  233|    636|      else if(*buf != 0x0d) {
  ------------------
  |  Branch (233:15): [True: 13, False: 623]
  ------------------
  234|     13|        ch->state = CHUNK_FAILED;
  235|     13|        ch->last_code = CHUNKE_BAD_CHUNK;
  236|     13|        return CURLE_RECV_ERROR;
  237|     13|      }
  238|    758|      buf++;
  239|    758|      blen--;
  240|    758|      (*pconsumed)++;
  241|    758|      break;
  242|       |
  243|  7.00k|    case CHUNK_TRAILER:
  ------------------
  |  Branch (243:5): [True: 7.00k, False: 6.94k]
  ------------------
  244|  7.00k|      if((*buf == 0x0d) || (*buf == 0x0a)) {
  ------------------
  |  Branch (244:10): [True: 54, False: 6.95k]
  |  Branch (244:28): [True: 45, False: 6.90k]
  ------------------
  245|     99|        const char *tr = curlx_dyn_ptr(&ch->trailer);
  246|       |        /* this is the end of a trailer, but if the trailer was zero bytes
  247|       |           there was no trailer and we move on */
  248|       |
  249|     99|        if(tr) {
  ------------------
  |  Branch (249:12): [True: 91, False: 8]
  ------------------
  250|     91|          result = curlx_dyn_addn(&ch->trailer, STRCONST("\x0d\x0a"));
  ------------------
  |  | 1292|     91|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  251|     91|          if(result) {
  ------------------
  |  Branch (251:14): [True: 0, False: 91]
  ------------------
  252|      0|            ch->state = CHUNK_FAILED;
  253|      0|            ch->last_code = CHUNKE_OUT_OF_MEMORY;
  254|      0|            return result;
  255|      0|          }
  256|     91|          tr = curlx_dyn_ptr(&ch->trailer);
  257|     91|          if(!data->set.http_te_skip) {
  ------------------
  |  Branch (257:14): [True: 91, False: 0]
  ------------------
  258|     91|            size_t trlen = curlx_dyn_len(&ch->trailer);
  259|     91|            if(cw_next)
  ------------------
  |  Branch (259:16): [True: 91, False: 0]
  ------------------
  260|     91|              result = Curl_cwriter_write(data, cw_next,
  261|     91|                                          CLIENTWRITE_HEADER |
  ------------------
  |  |   44|     91|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
  262|     91|                                          CLIENTWRITE_TRAILER,
  ------------------
  |  |   48|     91|#define CLIENTWRITE_TRAILER (1 << 6) /* a trailer HEADER */
  ------------------
  263|     91|                                          tr, trlen);
  264|      0|            else
  265|      0|              result = Curl_client_write(data,
  266|      0|                                         CLIENTWRITE_HEADER |
  ------------------
  |  |   44|      0|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
  267|      0|                                         CLIENTWRITE_TRAILER,
  ------------------
  |  |   48|      0|#define CLIENTWRITE_TRAILER (1 << 6) /* a trailer HEADER */
  ------------------
  268|      0|                                         tr, trlen);
  269|     91|            if(result) {
  ------------------
  |  Branch (269:16): [True: 10, False: 81]
  ------------------
  270|     10|              ch->state = CHUNK_FAILED;
  271|     10|              ch->last_code = CHUNKE_PASSTHRU_ERROR;
  272|     10|              return result;
  273|     10|            }
  274|     91|          }
  275|     81|          curlx_dyn_reset(&ch->trailer);
  276|     81|          ch->state = CHUNK_TRAILER_CR;
  277|     81|          if(*buf == 0x0a)
  ------------------
  |  Branch (277:14): [True: 36, False: 45]
  ------------------
  278|       |            /* already on the LF */
  279|     36|            break;
  280|     81|        }
  281|      8|        else {
  282|       |          /* no trailer, we are on the final CRLF pair */
  283|      8|          ch->state = CHUNK_TRAILER_POSTCR;
  284|      8|          break; /* do not advance the pointer */
  285|      8|        }
  286|     99|      }
  287|  6.90k|      else {
  288|  6.90k|        result = curlx_dyn_addn(&ch->trailer, buf, 1);
  289|  6.90k|        if(result) {
  ------------------
  |  Branch (289:12): [True: 1, False: 6.90k]
  ------------------
  290|      1|          ch->state = CHUNK_FAILED;
  291|      1|          ch->last_code = CHUNKE_OUT_OF_MEMORY;
  292|      1|          return result;
  293|      1|        }
  294|  6.90k|      }
  295|  6.95k|      buf++;
  296|  6.95k|      blen--;
  297|  6.95k|      (*pconsumed)++;
  298|  6.95k|      break;
  299|       |
  300|     81|    case CHUNK_TRAILER_CR:
  ------------------
  |  Branch (300:5): [True: 81, False: 13.8k]
  ------------------
  301|     81|      if(*buf == 0x0a) {
  ------------------
  |  Branch (301:10): [True: 80, False: 1]
  ------------------
  302|     80|        ch->state = CHUNK_TRAILER_POSTCR;
  303|     80|        buf++;
  304|     80|        blen--;
  305|     80|        (*pconsumed)++;
  306|     80|      }
  307|      1|      else {
  308|      1|        ch->state = CHUNK_FAILED;
  309|      1|        ch->last_code = CHUNKE_BAD_CHUNK;
  310|      1|        return CURLE_RECV_ERROR;
  311|      1|      }
  312|     80|      break;
  313|       |
  314|     87|    case CHUNK_TRAILER_POSTCR:
  ------------------
  |  Branch (314:5): [True: 87, False: 13.8k]
  ------------------
  315|       |      /* We enter this state when a CR should arrive so we expect to
  316|       |         have to first pass a CR before we wait for LF */
  317|     87|      if((*buf != 0x0d) && (*buf != 0x0a)) {
  ------------------
  |  Branch (317:10): [True: 80, False: 7]
  |  Branch (317:28): [True: 75, False: 5]
  ------------------
  318|       |        /* not a CR then it must be another header in the trailer */
  319|     75|        ch->state = CHUNK_TRAILER;
  320|     75|        break;
  321|     75|      }
  322|     12|      if(*buf == 0x0d) {
  ------------------
  |  Branch (322:10): [True: 7, False: 5]
  ------------------
  323|       |        /* skip if CR */
  324|      7|        buf++;
  325|      7|        blen--;
  326|      7|        (*pconsumed)++;
  327|      7|      }
  328|       |      /* now wait for the final LF */
  329|     12|      ch->state = CHUNK_STOP;
  330|     12|      break;
  331|       |
  332|     12|    case CHUNK_STOP:
  ------------------
  |  Branch (332:5): [True: 12, False: 13.9k]
  ------------------
  333|     12|      if(*buf == 0x0a) {
  ------------------
  |  Branch (333:10): [True: 9, False: 3]
  ------------------
  334|      9|        blen--;
  335|      9|        (*pconsumed)++;
  336|       |        /* Record the length of any data left in the end of the buffer
  337|       |           even if there is no more chunks to read */
  338|      9|        ch->datasize = blen;
  339|      9|        ch->state = CHUNK_DONE;
  340|      9|        CURL_TRC_WRITE(data, "http_chunk, response complete");
  ------------------
  |  |  158|      9|  do {                                                     \
  |  |  159|      9|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|      9|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     18|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 9, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 9]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     18|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      9|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      9|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      9|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 9]
  |  |  ------------------
  ------------------
  341|      9|        return CURLE_OK;
  342|      9|      }
  343|      3|      else {
  344|      3|        ch->state = CHUNK_FAILED;
  345|      3|        ch->last_code = CHUNKE_BAD_CHUNK;
  346|      3|        CURL_TRC_WRITE(data, "http_chunk error, expected 0x0a, seeing 0x%ux",
  ------------------
  |  |  158|      3|  do {                                                     \
  |  |  159|      3|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|      3|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      6|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 3, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 3]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      6|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      3|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      3|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      3|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 3]
  |  |  ------------------
  ------------------
  347|      3|                       (unsigned int)*buf);
  348|      3|        return CURLE_RECV_ERROR;
  349|      3|      }
  350|      0|    case CHUNK_DONE:
  ------------------
  |  Branch (350:5): [True: 0, False: 13.9k]
  ------------------
  351|      0|      return CURLE_OK;
  352|       |
  353|      0|    case CHUNK_FAILED:
  ------------------
  |  Branch (353:5): [True: 0, False: 13.9k]
  ------------------
  354|      0|      return CURLE_RECV_ERROR;
  355|  13.9k|    }
  356|  13.9k|  }
  357|    725|  return CURLE_OK;
  358|    778|}
http_chunks.c:cw_chunked_init:
  395|    208|{
  396|    208|  struct chunked_writer *ctx = writer->ctx;
  397|       |
  398|    208|  data->req.chunk = TRUE;      /* chunks coming our way. */
  ------------------
  |  | 1055|    208|#define TRUE true
  ------------------
  399|       |  Curl_httpchunk_init(data, &ctx->ch, FALSE);
  ------------------
  |  | 1058|    208|#define FALSE false
  ------------------
  400|    208|  return CURLE_OK;
  401|    208|}
http_chunks.c:cw_chunked_write:
  413|  1.26k|{
  414|  1.26k|  struct chunked_writer *ctx = writer->ctx;
  415|  1.26k|  CURLcode result;
  416|  1.26k|  size_t consumed;
  417|       |
  418|  1.26k|  if(!(type & CLIENTWRITE_BODY))
  ------------------
  |  |   42|  1.26k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (418:6): [True: 490, False: 778]
  ------------------
  419|    490|    return Curl_cwriter_write(data, writer->next, type, buf, blen);
  420|       |
  421|    778|  consumed = 0;
  422|    778|  result = httpchunk_readwrite(data, &ctx->ch, writer->next, buf, blen,
  423|    778|                               &consumed);
  424|       |
  425|    778|  if(result) {
  ------------------
  |  Branch (425:6): [True: 44, False: 734]
  ------------------
  426|     44|    if(CHUNKE_PASSTHRU_ERROR == ctx->ch.last_code) {
  ------------------
  |  Branch (426:8): [True: 11, False: 33]
  ------------------
  427|     11|      failf(data, "Failed reading the chunked-encoded stream");
  ------------------
  |  |   62|     11|#define failf Curl_failf
  ------------------
  428|     11|    }
  429|     33|    else {
  430|     33|      failf(data, "%s in chunked-encoding",
  ------------------
  |  |   62|     33|#define failf Curl_failf
  ------------------
  431|     33|            Curl_chunked_strerror(ctx->ch.last_code));
  432|     33|    }
  433|     44|    return result;
  434|     44|  }
  435|       |
  436|    734|  blen -= consumed;
  437|    734|  if(CHUNK_DONE == ctx->ch.state) {
  ------------------
  |  Branch (437:6): [True: 9, False: 725]
  ------------------
  438|       |    /* chunks read successfully, download is complete */
  439|      9|    data->req.download_done = TRUE;
  ------------------
  |  | 1055|      9|#define TRUE true
  ------------------
  440|      9|    if(blen) {
  ------------------
  |  Branch (440:8): [True: 5, False: 4]
  ------------------
  441|      5|      infof(data, "Leftovers after chunking: %zu bytes", blen);
  ------------------
  |  |  143|      5|  do {                               \
  |  |  144|      5|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      5|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 5, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 5]
  |  |  |  |  ------------------
  |  |  |  |  320|      5|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      5|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      5|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 5]
  |  |  ------------------
  ------------------
  442|      5|    }
  443|      9|  }
  444|    725|  else if((type & CLIENTWRITE_EOS) && !data->req.no_body) {
  ------------------
  |  |   49|    725|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (444:11): [True: 139, False: 586]
  |  Branch (444:39): [True: 139, False: 0]
  ------------------
  445|    139|    failf(data, "transfer closed with outstanding read data remaining");
  ------------------
  |  |   62|    139|#define failf Curl_failf
  ------------------
  446|    139|    return CURLE_PARTIAL_FILE;
  447|    139|  }
  448|       |
  449|    595|  return CURLE_OK;
  450|    734|}
http_chunks.c:Curl_chunked_strerror:
  361|     33|{
  362|     33|  switch(code) {
  363|      0|  default:
  ------------------
  |  Branch (363:3): [True: 0, False: 33]
  ------------------
  364|      0|    return "OK";
  365|      4|  case CHUNKE_TOO_LONG_HEX:
  ------------------
  |  Branch (365:3): [True: 4, False: 29]
  ------------------
  366|      4|    return "Too long hexadecimal number";
  367|     11|  case CHUNKE_ILLEGAL_HEX:
  ------------------
  |  Branch (367:3): [True: 11, False: 22]
  ------------------
  368|     11|    return "Illegal or missing hexadecimal sequence";
  369|     17|  case CHUNKE_BAD_CHUNK:
  ------------------
  |  Branch (369:3): [True: 17, False: 16]
  ------------------
  370|     17|    return "Malformed encoding found";
  371|      0|  case CHUNKE_PASSTHRU_ERROR:
  ------------------
  |  Branch (371:3): [True: 0, False: 33]
  ------------------
  372|      0|    return "Error writing data to client";
  373|      0|  case CHUNKE_BAD_ENCODING:
  ------------------
  |  Branch (373:3): [True: 0, False: 33]
  ------------------
  374|      0|    return "Bad content-encoding found";
  375|      1|  case CHUNKE_OUT_OF_MEMORY:
  ------------------
  |  Branch (375:3): [True: 1, False: 32]
  ------------------
  376|      1|    return "Out of memory";
  377|     33|  }
  378|     33|}
http_chunks.c:cw_chunked_close:
  405|    208|{
  406|    208|  struct chunked_writer *ctx = writer->ctx;
  407|    208|  Curl_httpchunk_free(data, &ctx->ch);
  408|    208|}
http_chunks.c:cr_chunked_init:
  475|    185|{
  476|    185|  struct chunked_reader *ctx = reader->ctx;
  477|    185|  (void)data;
  478|    185|  Curl_bufq_init2(&ctx->chunkbuf, CURL_CHUNKED_MAXLEN, 2, BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  464|    185|#define CURL_CHUNKED_MAXLEN   (64 * 1024)
  ------------------
                Curl_bufq_init2(&ctx->chunkbuf, CURL_CHUNKED_MAXLEN, 2, BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|    185|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
  479|    185|  return CURLE_OK;
  480|    185|}
http_chunks.c:cr_chunked_read:
  600|  5.07k|{
  601|  5.07k|  struct chunked_reader *ctx = reader->ctx;
  602|  5.07k|  CURLcode result = CURLE_READ_ERROR;
  603|       |
  604|  5.07k|  *pnread = 0;
  605|  5.07k|  *peos = (bool)ctx->eos;
  606|       |
  607|  5.07k|  if(!ctx->eos) {
  ------------------
  |  Branch (607:6): [True: 5.07k, False: 0]
  ------------------
  608|  5.07k|    if(!ctx->read_eos && Curl_bufq_is_empty(&ctx->chunkbuf)) {
  ------------------
  |  Branch (608:8): [True: 5.07k, False: 0]
  |  Branch (608:26): [True: 5.07k, False: 0]
  ------------------
  609|       |      /* Still getting data form the next reader, buffer is empty */
  610|  5.07k|      result = add_chunk(data, reader, buf, blen);
  611|  5.07k|      if(result)
  ------------------
  |  Branch (611:10): [True: 0, False: 5.07k]
  ------------------
  612|      0|        return result;
  613|  5.07k|    }
  614|       |
  615|  5.07k|    if(!Curl_bufq_is_empty(&ctx->chunkbuf)) {
  ------------------
  |  Branch (615:8): [True: 163, False: 4.91k]
  ------------------
  616|    163|      result = Curl_bufq_cread(&ctx->chunkbuf, buf, blen, pnread);
  617|    163|      if(!result && ctx->read_eos && Curl_bufq_is_empty(&ctx->chunkbuf)) {
  ------------------
  |  Branch (617:10): [True: 163, False: 0]
  |  Branch (617:21): [True: 73, False: 90]
  |  Branch (617:38): [True: 73, False: 0]
  ------------------
  618|       |        /* no more data, read all, done. */
  619|     73|        ctx->eos = TRUE;
  ------------------
  |  | 1055|     73|#define TRUE true
  ------------------
  620|     73|        *peos = TRUE;
  ------------------
  |  | 1055|     73|#define TRUE true
  ------------------
  621|     73|      }
  622|    163|      return result;
  623|    163|    }
  624|  5.07k|  }
  625|       |  /* We may get here, because we are done or because callbacks paused */
  626|  4.91k|  DEBUGASSERT(ctx->eos || !ctx->read_eos);
  ------------------
  |  | 1081|  4.91k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (626:3): [True: 4.91k, False: 0]
  |  Branch (626:3): [True: 0, False: 0]
  |  Branch (626:3): [True: 0, False: 4.91k]
  |  Branch (626:3): [True: 4.91k, False: 0]
  ------------------
  627|  4.91k|  return CURLE_OK;
  628|  4.91k|}
http_chunks.c:add_chunk:
  545|  5.07k|{
  546|  5.07k|  struct chunked_reader *ctx = reader->ctx;
  547|  5.07k|  CURLcode result;
  548|  5.07k|  char tmp[CURL_CHUNKED_MINLEN];
  549|  5.07k|  size_t nread;
  550|  5.07k|  bool eos;
  551|       |
  552|  5.07k|  DEBUGASSERT(!ctx->read_eos);
  ------------------
  |  | 1081|  5.07k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (552:3): [True: 0, False: 5.07k]
  |  Branch (552:3): [True: 5.07k, False: 0]
  ------------------
  553|  5.07k|  blen = CURLMIN(blen, CURL_CHUNKED_MAXLEN); /* respect our buffer pref */
  ------------------
  |  | 1287|  5.07k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 230, False: 4.84k]
  |  |  ------------------
  ------------------
  554|  5.07k|  if(blen < sizeof(tmp)) {
  ------------------
  |  Branch (554:6): [True: 0, False: 5.07k]
  ------------------
  555|       |    /* small read, make a chunk of decent size */
  556|      0|    buf = tmp;
  557|      0|    blen = sizeof(tmp);
  558|      0|  }
  559|  5.07k|  else {
  560|       |    /* larger read, make a chunk that will fit when read back */
  561|  5.07k|    blen -= (8 + 2 + 2); /* deduct max overhead, 8 hex + 2*crlf */
  562|  5.07k|  }
  563|       |
  564|  5.07k|  result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos);
  565|  5.07k|  if(result)
  ------------------
  |  Branch (565:6): [True: 0, False: 5.07k]
  ------------------
  566|      0|    return result;
  567|  5.07k|  if(eos)
  ------------------
  |  Branch (567:6): [True: 73, False: 5.00k]
  ------------------
  568|     73|    ctx->read_eos = TRUE;
  ------------------
  |  | 1055|     73|#define TRUE true
  ------------------
  569|       |
  570|  5.07k|  if(nread) {
  ------------------
  |  Branch (570:6): [True: 90, False: 4.98k]
  ------------------
  571|       |    /* actually got bytes, wrap them into the chunkbuf */
  572|     90|    char hd[11] = "";
  573|     90|    int hdlen;
  574|     90|    size_t n;
  575|       |
  576|     90|    hdlen = curl_msnprintf(hd, sizeof(hd), "%zx\r\n", nread);
  577|     90|    if(hdlen <= 0)
  ------------------
  |  Branch (577:8): [True: 0, False: 90]
  ------------------
  578|      0|      return CURLE_READ_ERROR;
  579|       |    /* On a soft-limited bufq, we do not need to check that all was written */
  580|     90|    result = Curl_bufq_cwrite(&ctx->chunkbuf, hd, hdlen, &n);
  581|     90|    if(!result)
  ------------------
  |  Branch (581:8): [True: 90, False: 0]
  ------------------
  582|     90|      result = Curl_bufq_cwrite(&ctx->chunkbuf, buf, nread, &n);
  583|     90|    if(!result)
  ------------------
  |  Branch (583:8): [True: 90, False: 0]
  ------------------
  584|     90|      result = Curl_bufq_cwrite(&ctx->chunkbuf, "\r\n", 2, &n);
  585|     90|    CURL_TRC_READ(data, "http_chunk, made chunk of %zu bytes -> %d",
  ------------------
  |  |  163|     90|  do {                                                    \
  |  |  164|     90|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|     90|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    180|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 90, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 90]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    180|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     90|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|     90|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|     90|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 90]
  |  |  ------------------
  ------------------
  586|     90|                  nread, result);
  587|     90|    if(result)
  ------------------
  |  Branch (587:8): [True: 0, False: 90]
  ------------------
  588|      0|      return result;
  589|     90|  }
  590|       |
  591|  5.07k|  if(ctx->read_eos)
  ------------------
  |  Branch (591:6): [True: 73, False: 5.00k]
  ------------------
  592|     73|    return add_last_chunk(data, reader);
  593|  5.00k|  return CURLE_OK;
  594|  5.07k|}
http_chunks.c:add_last_chunk:
  492|     73|{
  493|     73|  struct chunked_reader *ctx = reader->ctx;
  494|     73|  struct curl_slist *trailers = NULL, *tr;
  495|     73|  CURLcode result;
  496|     73|  size_t n;
  497|     73|  int rc;
  498|       |
  499|     73|  if(!data->set.trailer_callback) {
  ------------------
  |  Branch (499:6): [True: 73, False: 0]
  ------------------
  500|     73|    CURL_TRC_READ(data, "http_chunk, added last, empty chunk");
  ------------------
  |  |  163|     73|  do {                                                    \
  |  |  164|     73|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|     73|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    146|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 73, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 73]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    146|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     73|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|     73|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|     73|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 73]
  |  |  ------------------
  ------------------
  501|     73|    return Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("0\r\n\r\n"), &n);
  ------------------
  |  | 1292|     73|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  502|     73|  }
  503|       |
  504|      0|  result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("0\r\n"), &n);
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  505|      0|  if(result)
  ------------------
  |  Branch (505:6): [True: 0, False: 0]
  ------------------
  506|      0|    goto out;
  507|       |
  508|      0|  Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  509|      0|  rc = data->set.trailer_callback(&trailers, data->set.trailer_data);
  510|      0|  Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  511|       |
  512|      0|  if(rc != CURL_TRAILERFUNC_OK) {
  ------------------
  |  |  397|      0|#define CURL_TRAILERFUNC_OK 0
  ------------------
  |  Branch (512:6): [True: 0, False: 0]
  ------------------
  513|      0|    failf(data, "operation aborted by trailing headers callback");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  514|      0|    result = CURLE_ABORTED_BY_CALLBACK;
  515|      0|    goto out;
  516|      0|  }
  517|       |
  518|      0|  for(tr = trailers; tr; tr = tr->next) {
  ------------------
  |  Branch (518:22): [True: 0, False: 0]
  ------------------
  519|       |    /* only add correctly formatted trailers */
  520|      0|    const char *ptr = strchr(tr->data, ':');
  521|      0|    if(!ptr || *(ptr + 1) != ' ') {
  ------------------
  |  Branch (521:8): [True: 0, False: 0]
  |  Branch (521:16): [True: 0, False: 0]
  ------------------
  522|      0|      infof(data, "Malformatted trailing header, skipping trailer");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  523|      0|      continue;
  524|      0|    }
  525|       |
  526|      0|    result = Curl_bufq_cwrite(&ctx->chunkbuf, tr->data, strlen(tr->data), &n);
  527|      0|    if(!result)
  ------------------
  |  Branch (527:8): [True: 0, False: 0]
  ------------------
  528|      0|      result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("\r\n"), &n);
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  529|      0|    if(result)
  ------------------
  |  Branch (529:8): [True: 0, False: 0]
  ------------------
  530|      0|      goto out;
  531|      0|  }
  532|       |
  533|      0|  result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("\r\n"), &n);
  ------------------
  |  | 1292|      0|#define STRCONST(x) x, sizeof(x) - 1
  ------------------
  534|       |
  535|      0|out:
  536|      0|  curl_slist_free_all(trailers);
  537|      0|  CURL_TRC_READ(data, "http_chunk, added last chunk with trailers "
  ------------------
  |  |  163|      0|  do {                                                    \
  |  |  164|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  538|      0|                "from client -> %d", result);
  539|      0|  return result;
  540|      0|}
http_chunks.c:cr_chunked_close:
  484|    185|{
  485|    185|  struct chunked_reader *ctx = reader->ctx;
  486|    185|  (void)data;
  487|    185|  Curl_bufq_free(&ctx->chunkbuf);
  488|    185|}
http_chunks.c:cr_chunked_total_length:
  632|    382|{
  633|       |  /* this reader changes length depending on input */
  634|    382|  (void)data;
  635|    382|  (void)reader;
  636|    382|  return -1;
  637|    382|}

Curl_http_auth_cleanup_digest:
  134|  15.6k|{
  135|  15.6k|  Curl_auth_digest_cleanup(&data->state.digest);
  136|  15.6k|  Curl_auth_digest_cleanup(&data->state.proxydigest);
  137|  15.6k|}

Curl_is_ASCII_str:
  236|  20.8k|{
  237|  20.8k|  if(s && s->len) {
  ------------------
  |  Branch (237:6): [True: 20.8k, False: 0]
  |  Branch (237:11): [True: 20.8k, False: 0]
  ------------------
  238|  20.8k|    const unsigned char *ch = (const unsigned char *)s->str;
  239|  20.8k|    size_t i;
  240|   531k|    for(i = 0; i < s->len; ++i) {
  ------------------
  |  Branch (240:16): [True: 510k, False: 20.7k]
  ------------------
  241|   510k|      if(ch[i] & 0x80)
  ------------------
  |  Branch (241:10): [True: 139, False: 510k]
  ------------------
  242|    139|        return FALSE;
  ------------------
  |  | 1058|    139|#define FALSE false
  ------------------
  243|   510k|    }
  244|  20.8k|  }
  245|  20.7k|  return TRUE;
  ------------------
  |  | 1055|  20.7k|#define TRUE true
  ------------------
  246|  20.8k|}
Curl_idn_decode:
  313|    139|{
  314|    139|  char *d = NULL;
  315|    139|  CURLcode result = idn_decode(input, &d);
  316|    139|#ifdef USE_LIBIDN2
  317|    139|  if(!result) {
  ------------------
  |  Branch (317:6): [True: 0, False: 139]
  ------------------
  318|      0|    char *c = curlx_strdup(d);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  319|      0|    idn2_free(d);
  320|      0|    if(c)
  ------------------
  |  Branch (320:8): [True: 0, False: 0]
  ------------------
  321|      0|      d = c;
  322|      0|    else
  323|      0|      result = CURLE_OUT_OF_MEMORY;
  324|      0|  }
  325|    139|#endif
  326|    139|  if(!result) {
  ------------------
  |  Branch (326:6): [True: 0, False: 139]
  ------------------
  327|      0|    if(!d[0]) { /* ended up zero length, not acceptable */
  ------------------
  |  Branch (327:8): [True: 0, False: 0]
  ------------------
  328|      0|      result = CURLE_URL_MALFORMAT;
  329|      0|      curlx_free(d);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  330|      0|    }
  331|      0|    else
  332|      0|      *output = d;
  333|      0|  }
  334|    139|  return result;
  335|    139|}
idn.c:idn_decode:
  258|    139|{
  259|    139|  char *decoded = NULL;
  260|    139|  CURLcode result = CURLE_OK;
  261|    139|#ifdef USE_LIBIDN2
  262|    139|  if(idn2_check_version(IDN2_VERSION)) {
  ------------------
  |  Branch (262:6): [True: 139, False: 0]
  ------------------
  263|    139|    int flags = IDN2_NFC_INPUT
  264|    139|#if IDN2_VERSION_NUMBER >= 0x00140000
  265|       |      /* IDN2_NFC_INPUT: Normalize input string using normalization form C.
  266|       |         IDN2_NONTRANSITIONAL: Perform Unicode TR46 non-transitional
  267|       |         processing. */
  268|    139|      | IDN2_NONTRANSITIONAL
  269|    139|#endif
  270|    139|      ;
  271|    139|    int rc = IDN2_LOOKUP(input, &decoded, flags);
  ------------------
  |  |   41|    139|  idn2_lookup_ul((const char *)(name), (char **)(host), flags)
  ------------------
  272|    139|    if(rc != IDN2_OK)
  ------------------
  |  Branch (272:8): [True: 139, False: 0]
  ------------------
  273|       |      /* fallback to TR46 Transitional mode for better IDNA2003
  274|       |         compatibility */
  275|    139|      rc = IDN2_LOOKUP(input, &decoded, IDN2_TRANSITIONAL);
  ------------------
  |  |   41|    139|  idn2_lookup_ul((const char *)(name), (char **)(host), flags)
  ------------------
  276|    139|    if(rc != IDN2_OK)
  ------------------
  |  Branch (276:8): [True: 139, False: 0]
  ------------------
  277|    139|      result = CURLE_URL_MALFORMAT;
  278|    139|  }
  279|      0|  else
  280|       |    /* a too old libidn2 version */
  281|      0|    result = CURLE_NOT_BUILT_IN;
  282|       |#elif defined(USE_WIN32_IDN)
  283|       |  result = win32_idn_to_ascii(input, &decoded);
  284|       |#elif defined(USE_APPLE_IDN)
  285|       |  result = mac_idn_to_ascii(input, &decoded);
  286|       |#endif
  287|    139|  if(!result)
  ------------------
  |  Branch (287:6): [True: 0, False: 139]
  ------------------
  288|      0|    *output = decoded;
  289|    139|  return result;
  290|    139|}

Curl_ipv6_scope:
   62|  7.02k|{
   63|  7.02k|  if(sa->sa_family == AF_INET6) {
  ------------------
  |  Branch (63:6): [True: 0, False: 7.02k]
  ------------------
   64|      0|    const struct sockaddr_in6 *sa6 =
   65|      0|      (const struct sockaddr_in6 *)(const void *)sa;
   66|      0|    const unsigned char *b = sa6->sin6_addr.s6_addr;
   67|      0|    unsigned short w = (unsigned short)((b[0] << 8) | b[1]);
   68|       |
   69|      0|    if((b[0] & 0xFE) == 0xFC) /* Handle ULAs */
  ------------------
  |  Branch (69:8): [True: 0, False: 0]
  ------------------
   70|      0|      return IPV6_SCOPE_UNIQUELOCAL;
  ------------------
  |  |   32|      0|#define IPV6_SCOPE_UNIQUELOCAL  3       /* Unique local */
  ------------------
   71|      0|    switch(w & 0xFFC0) {
   72|      0|    case 0xFE80:
  ------------------
  |  Branch (72:5): [True: 0, False: 0]
  ------------------
   73|      0|      return IPV6_SCOPE_LINKLOCAL;
  ------------------
  |  |   30|      0|#define IPV6_SCOPE_LINKLOCAL    1       /* Link-local scope. */
  ------------------
   74|      0|    case 0xFEC0:
  ------------------
  |  Branch (74:5): [True: 0, False: 0]
  ------------------
   75|      0|      return IPV6_SCOPE_SITELOCAL;
  ------------------
  |  |   31|      0|#define IPV6_SCOPE_SITELOCAL    2       /* Site-local scope (deprecated). */
  ------------------
   76|      0|    case 0x0000:
  ------------------
  |  Branch (76:5): [True: 0, False: 0]
  ------------------
   77|      0|      w = b[1] | b[2] | b[3] | b[4] | b[5] | b[6] | b[7] | b[8] | b[9] |
   78|      0|          b[10] | b[11] | b[12] | b[13] | b[14];
   79|      0|      if(w || b[15] != 0x01)
  ------------------
  |  Branch (79:10): [True: 0, False: 0]
  |  Branch (79:15): [True: 0, False: 0]
  ------------------
   80|      0|        break;
   81|      0|      return IPV6_SCOPE_NODELOCAL;
  ------------------
  |  |   33|      0|#define IPV6_SCOPE_NODELOCAL    4       /* Loopback. */
  ------------------
   82|      0|    default:
  ------------------
  |  Branch (82:5): [True: 0, False: 0]
  ------------------
   83|      0|      break;
   84|      0|    }
   85|      0|  }
   86|  7.02k|  return IPV6_SCOPE_GLOBAL;
  ------------------
  |  |   29|  7.02k|#define IPV6_SCOPE_GLOBAL       0       /* Global scope. */
  ------------------
   87|  7.02k|}

Curl_llist_init:
   46|   822k|{
   47|   822k|  l->_size = 0;
   48|   822k|  l->_dtor = dtor;
   49|   822k|  l->_head = NULL;
   50|   822k|  l->_tail = NULL;
   51|   822k|#ifdef DEBUGBUILD
   52|   822k|  l->_init = LLISTINIT;
  ------------------
  |  |   29|   822k|#define LLISTINIT 0x100cc001 /* random pattern */
  ------------------
   53|   822k|#endif
   54|   822k|}
Curl_llist_insert_next:
   71|   297k|{
   72|   297k|  DEBUGASSERT(list);
  ------------------
  |  | 1081|   297k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (72:3): [True: 0, False: 297k]
  |  Branch (72:3): [True: 297k, False: 0]
  ------------------
   73|   297k|  DEBUGASSERT(list->_init == LLISTINIT);
  ------------------
  |  | 1081|   297k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (73:3): [True: 0, False: 297k]
  |  Branch (73:3): [True: 297k, False: 0]
  ------------------
   74|   297k|  DEBUGASSERT(ne);
  ------------------
  |  | 1081|   297k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (74:3): [True: 0, False: 297k]
  |  Branch (74:3): [True: 297k, False: 0]
  ------------------
   75|       |
   76|   297k|#ifdef DEBUGBUILD
   77|   297k|  ne->_init = NODEINIT;
  ------------------
  |  |   30|   297k|#define NODEINIT  0x12344321 /* random pattern */
  ------------------
   78|   297k|#endif
   79|   297k|  ne->_ptr = CURL_UNCONST(p);
  ------------------
  |  |  866|   297k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
   80|   297k|  ne->_list = list;
   81|   297k|  if(list->_size == 0) {
  ------------------
  |  Branch (81:6): [True: 29.3k, False: 268k]
  ------------------
   82|  29.3k|    list->_head = ne;
   83|  29.3k|    list->_head->_prev = NULL;
   84|  29.3k|    list->_head->_next = NULL;
   85|  29.3k|    list->_tail = ne;
   86|  29.3k|  }
   87|   268k|  else {
   88|       |    /* if 'e' is NULL here, we insert the new element first in the list */
   89|   268k|    ne->_next = e ? e->_next : list->_head;
  ------------------
  |  Branch (89:17): [True: 183k, False: 84.6k]
  ------------------
   90|   268k|    ne->_prev = e;
   91|   268k|    if(!e) {
  ------------------
  |  Branch (91:8): [True: 84.6k, False: 183k]
  ------------------
   92|  84.6k|      list->_head->_prev = ne;
   93|  84.6k|      list->_head = ne;
   94|  84.6k|    }
   95|   183k|    else if(e->_next) {
  ------------------
  |  Branch (95:13): [True: 69.1k, False: 114k]
  ------------------
   96|  69.1k|      e->_next->_prev = ne;
   97|  69.1k|    }
   98|   114k|    else {
   99|   114k|      list->_tail = ne;
  100|   114k|    }
  101|   268k|    if(e)
  ------------------
  |  Branch (101:8): [True: 183k, False: 84.6k]
  ------------------
  102|   183k|      e->_next = ne;
  103|   268k|  }
  104|       |
  105|   297k|  ++list->_size;
  106|   297k|}
Curl_llist_append:
  119|  41.0k|{
  120|  41.0k|  DEBUGASSERT(list);
  ------------------
  |  | 1081|  41.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (120:3): [True: 0, False: 41.0k]
  |  Branch (120:3): [True: 41.0k, False: 0]
  ------------------
  121|  41.0k|  DEBUGASSERT(list->_init == LLISTINIT);
  ------------------
  |  | 1081|  41.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (121:3): [True: 0, False: 41.0k]
  |  Branch (121:3): [True: 41.0k, False: 0]
  ------------------
  122|  41.0k|  DEBUGASSERT(ne);
  ------------------
  |  | 1081|  41.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (122:3): [True: 0, False: 41.0k]
  |  Branch (122:3): [True: 41.0k, False: 0]
  ------------------
  123|  41.0k|  Curl_llist_insert_next(list, list->_tail, p, ne);
  124|  41.0k|}
Curl_node_take_elem:
  127|   272k|{
  128|   272k|  void *ptr;
  129|   272k|  struct Curl_llist *list;
  130|   272k|  if(!e)
  ------------------
  |  Branch (130:6): [True: 0, False: 272k]
  ------------------
  131|      0|    return NULL;
  132|       |
  133|   272k|  list = e->_list;
  134|   272k|  DEBUGASSERT(list);
  ------------------
  |  | 1081|   272k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (134:3): [True: 0, False: 272k]
  |  Branch (134:3): [True: 272k, False: 0]
  ------------------
  135|   272k|  DEBUGASSERT(list->_init == LLISTINIT);
  ------------------
  |  | 1081|   272k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (135:3): [True: 0, False: 272k]
  |  Branch (135:3): [True: 272k, False: 0]
  ------------------
  136|   272k|  DEBUGASSERT(list->_size);
  ------------------
  |  | 1081|   272k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (136:3): [True: 0, False: 272k]
  |  Branch (136:3): [True: 272k, False: 0]
  ------------------
  137|   272k|  DEBUGASSERT(e->_init == NODEINIT);
  ------------------
  |  | 1081|   272k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (137:3): [True: 0, False: 272k]
  |  Branch (137:3): [True: 272k, False: 0]
  ------------------
  138|   272k|  if(list) {
  ------------------
  |  Branch (138:6): [True: 272k, False: 0]
  ------------------
  139|   272k|    if(e == list->_head) {
  ------------------
  |  Branch (139:8): [True: 103k, False: 168k]
  ------------------
  140|   103k|      list->_head = e->_next;
  141|       |
  142|   103k|      if(!list->_head)
  ------------------
  |  Branch (142:10): [True: 25.7k, False: 77.7k]
  ------------------
  143|  25.7k|        list->_tail = NULL;
  144|  77.7k|      else
  145|  77.7k|        e->_next->_prev = NULL;
  146|   103k|    }
  147|   168k|    else {
  148|   168k|      if(e->_prev)
  ------------------
  |  Branch (148:10): [True: 168k, False: 0]
  ------------------
  149|   168k|        e->_prev->_next = e->_next;
  150|       |
  151|   168k|      if(!e->_next)
  ------------------
  |  Branch (151:10): [True: 106k, False: 62.3k]
  ------------------
  152|   106k|        list->_tail = e->_prev;
  153|  62.3k|      else
  154|  62.3k|        e->_next->_prev = e->_prev;
  155|   168k|    }
  156|   272k|    --list->_size;
  157|   272k|  }
  158|   272k|  ptr = e->_ptr;
  159|       |
  160|   272k|  e->_list = NULL;
  161|   272k|  e->_ptr  = NULL;
  162|   272k|  e->_prev = NULL;
  163|   272k|  e->_next = NULL;
  164|   272k|#ifdef DEBUGBUILD
  165|   272k|  e->_init = NODEREM; /* specific pattern on remove - not zero */
  ------------------
  |  |   31|   272k|#define NODEREM   0x54321012 /* random pattern */
  ------------------
  166|   272k|#endif
  167|       |
  168|   272k|  return ptr;
  169|   272k|}
Curl_node_remove:
  188|   250k|{
  189|       |  node_uremove(e, NULL);
  190|   250k|}
Curl_llist_destroy:
  193|   218k|{
  194|   218k|  if(list) {
  ------------------
  |  Branch (194:6): [True: 218k, False: 0]
  ------------------
  195|   218k|    DEBUGASSERT(list->_init == LLISTINIT);
  ------------------
  |  | 1081|   218k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (195:5): [True: 0, False: 218k]
  |  Branch (195:5): [True: 218k, False: 0]
  ------------------
  196|   240k|    while(list->_size > 0)
  ------------------
  |  Branch (196:11): [True: 21.9k, False: 218k]
  ------------------
  197|  21.9k|      node_uremove(list->_tail, user);
  198|   218k|  }
  199|   218k|}
Curl_llist_head:
  204|  2.00M|{
  205|  2.00M|  DEBUGASSERT(list);
  ------------------
  |  | 1081|  2.00M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (205:3): [True: 0, False: 2.00M]
  |  Branch (205:3): [True: 2.00M, False: 0]
  ------------------
  206|  2.00M|  DEBUGASSERT(list->_init == LLISTINIT);
  ------------------
  |  | 1081|  2.00M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (206:3): [True: 0, False: 2.00M]
  |  Branch (206:3): [True: 2.00M, False: 0]
  ------------------
  207|  2.00M|  return VERIFYNODE(list->_head);
  ------------------
  |  |   33|  2.00M|#define VERIFYNODE(x) verifynode(x)
  ------------------
  208|  2.00M|}
Curl_llist_count:
  227|   345k|{
  228|   345k|  DEBUGASSERT(list);
  ------------------
  |  | 1081|   345k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (228:3): [True: 0, False: 345k]
  |  Branch (228:3): [True: 345k, False: 0]
  ------------------
  229|   345k|  DEBUGASSERT(list->_init == LLISTINIT);
  ------------------
  |  | 1081|   345k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (229:3): [True: 0, False: 345k]
  |  Branch (229:3): [True: 345k, False: 0]
  ------------------
  230|   345k|  return list->_size;
  231|   345k|}
Curl_node_elem:
  235|   799k|{
  236|   799k|  DEBUGASSERT(n);
  ------------------
  |  | 1081|   799k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (236:3): [True: 0, False: 799k]
  |  Branch (236:3): [True: 799k, False: 0]
  ------------------
  237|   799k|  DEBUGASSERT(n->_init == NODEINIT);
  ------------------
  |  | 1081|   799k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (237:3): [True: 0, False: 799k]
  |  Branch (237:3): [True: 799k, False: 0]
  ------------------
  238|   799k|  return n->_ptr;
  239|   799k|}
Curl_node_next:
  244|   401k|{
  245|   401k|  DEBUGASSERT(n);
  ------------------
  |  | 1081|   401k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (245:3): [True: 0, False: 401k]
  |  Branch (245:3): [True: 401k, False: 0]
  ------------------
  246|   401k|  DEBUGASSERT(n->_init == NODEINIT);
  ------------------
  |  | 1081|   401k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (246:3): [True: 0, False: 401k]
  |  Branch (246:3): [True: 401k, False: 0]
  ------------------
  247|   401k|  return VERIFYNODE(n->_next);
  ------------------
  |  |   33|   401k|#define VERIFYNODE(x) verifynode(x)
  ------------------
  248|   401k|}
Curl_node_llist:
  268|  22.6k|{
  269|  22.6k|  DEBUGASSERT(n);
  ------------------
  |  | 1081|  22.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (269:3): [True: 0, False: 22.6k]
  |  Branch (269:3): [True: 22.6k, False: 0]
  ------------------
  270|  22.6k|  DEBUGASSERT(!n->_list || n->_init == NODEINIT);
  ------------------
  |  | 1081|  22.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (270:3): [True: 22.6k, False: 0]
  |  Branch (270:3): [True: 0, False: 0]
  |  Branch (270:3): [True: 7.53k, False: 15.0k]
  |  Branch (270:3): [True: 15.0k, False: 0]
  ------------------
  271|  22.6k|  return n->_list;
  272|  22.6k|}
llist.c:node_uremove:
  172|   272k|{
  173|   272k|  struct Curl_llist *list;
  174|   272k|  void *ptr;
  175|   272k|  if(!e)
  ------------------
  |  Branch (175:6): [True: 0, False: 272k]
  ------------------
  176|      0|    return;
  177|       |
  178|   272k|  list = e->_list;
  179|   272k|  DEBUGASSERT(list);
  ------------------
  |  | 1081|   272k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:3): [True: 0, False: 272k]
  |  Branch (179:3): [True: 272k, False: 0]
  ------------------
  180|   272k|  if(list) {
  ------------------
  |  Branch (180:6): [True: 272k, False: 0]
  ------------------
  181|   272k|    ptr = Curl_node_take_elem(e);
  182|   272k|    if(list->_dtor)
  ------------------
  |  Branch (182:8): [True: 0, False: 272k]
  ------------------
  183|      0|      list->_dtor(user, ptr);
  184|   272k|  }
  185|   272k|}
llist.c:verifynode:
   35|  2.40M|{
   36|  2.40M|  DEBUGASSERT(!n || (n->_init == NODEINIT));
  ------------------
  |  | 1081|  2.40M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (36:3): [True: 2.40M, False: 0]
  |  Branch (36:3): [True: 0, False: 0]
  |  Branch (36:3): [True: 1.60M, False: 800k]
  |  Branch (36:3): [True: 800k, False: 0]
  ------------------
   37|  2.40M|  return n;
   38|  2.40M|}

curl_dbg_malloc:
  212|   287k|{
  213|   287k|  struct memdebug *mem;
  214|   287k|  size_t size;
  215|       |
  216|   287k|  DEBUGASSERT(wantedsize != 0);
  ------------------
  |  | 1081|   287k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (216:3): [True: 0, False: 287k]
  |  Branch (216:3): [True: 287k, False: 0]
  ------------------
  217|       |
  218|   287k|  if(countcheck("malloc", line, source))
  ------------------
  |  Branch (218:6): [True: 0, False: 287k]
  ------------------
  219|      0|    return NULL;
  220|       |
  221|       |  /* alloc at least 64 bytes */
  222|   287k|  size = sizeof(struct memdebug) + wantedsize;
  223|       |
  224|   287k|  mem = Curl_cmalloc(size);
  225|   287k|  if(mem) {
  ------------------
  |  Branch (225:6): [True: 287k, False: 0]
  ------------------
  226|   287k|    mem->size = wantedsize;
  227|   287k|  }
  228|       |
  229|   287k|  if(source)
  ------------------
  |  Branch (229:6): [True: 112k, False: 175k]
  ------------------
  230|   112k|    curl_dbg_log("MEM %s:%d malloc(%zu) = %p\n",
  231|   112k|                 source, line, wantedsize,
  232|   112k|                 mem ? (void *)mem->mem : (void *)0);
  ------------------
  |  Branch (232:18): [True: 112k, False: 0]
  ------------------
  233|       |
  234|   287k|  return mem ? mem->mem : NULL;
  ------------------
  |  Branch (234:10): [True: 287k, False: 0]
  ------------------
  235|   287k|}
curl_dbg_calloc:
  240|   464k|{
  241|   464k|  struct memdebug *mem;
  242|   464k|  size_t size, user_size;
  243|       |
  244|   464k|  DEBUGASSERT(wanted_elements != 0);
  ------------------
  |  | 1081|   464k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (244:3): [True: 0, False: 464k]
  |  Branch (244:3): [True: 464k, False: 0]
  ------------------
  245|   464k|  DEBUGASSERT(wanted_size != 0);
  ------------------
  |  | 1081|   464k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (245:3): [True: 0, False: 464k]
  |  Branch (245:3): [True: 464k, False: 0]
  ------------------
  246|       |
  247|   464k|  if(countcheck("calloc", line, source))
  ------------------
  |  Branch (247:6): [True: 0, False: 464k]
  ------------------
  248|      0|    return NULL;
  249|       |
  250|       |  /* alloc at least 64 bytes */
  251|   464k|  user_size = wanted_size * wanted_elements;
  252|   464k|  size = sizeof(struct memdebug) + user_size;
  253|       |
  254|   464k|  mem = Curl_ccalloc(1, size);
  255|   464k|  if(mem)
  ------------------
  |  Branch (255:6): [True: 464k, False: 0]
  ------------------
  256|   464k|    mem->size = user_size;
  257|       |
  258|   464k|  if(source)
  ------------------
  |  Branch (258:6): [True: 464k, False: 0]
  ------------------
  259|   464k|    curl_dbg_log("MEM %s:%d calloc(%zu,%zu) = %p\n",
  260|   464k|                 source, line, wanted_elements, wanted_size,
  261|   464k|                 mem ? (void *)mem->mem : (void *)0);
  ------------------
  |  Branch (261:18): [True: 464k, False: 0]
  ------------------
  262|       |
  263|   464k|  return mem ? mem->mem : NULL;
  ------------------
  |  Branch (263:10): [True: 464k, False: 0]
  ------------------
  264|   464k|}
curl_dbg_strdup:
  268|   175k|{
  269|   175k|  char *mem;
  270|   175k|  size_t len;
  271|       |
  272|   175k|  DEBUGASSERT(str != NULL);
  ------------------
  |  | 1081|   175k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (272:3): [True: 0, False: 175k]
  |  Branch (272:3): [True: 175k, False: 0]
  ------------------
  273|       |
  274|   175k|  if(countcheck("strdup", line, source))
  ------------------
  |  Branch (274:6): [True: 0, False: 175k]
  ------------------
  275|      0|    return NULL;
  276|       |
  277|   175k|  len = strlen(str) + 1;
  278|       |
  279|   175k|  mem = curl_dbg_malloc(len, 0, NULL); /* NULL prevents logging */
  280|   175k|  if(mem)
  ------------------
  |  Branch (280:6): [True: 175k, False: 0]
  ------------------
  281|   175k|    memcpy(mem, str, len);
  282|       |
  283|   175k|  if(source)
  ------------------
  |  Branch (283:6): [True: 175k, False: 0]
  ------------------
  284|   175k|    curl_dbg_log("MEM %s:%d strdup(%p) (%zu) = %p\n",
  285|   175k|                 source, line, (const void *)str, len, (const void *)mem);
  286|       |
  287|   175k|  return mem;
  288|   175k|}
curl_dbg_realloc:
  321|   210k|{
  322|   210k|  struct memdebug *mem = NULL;
  323|   210k|  bool was_locked;
  324|       |
  325|   210k|  size_t size = sizeof(struct memdebug) + wantedsize;
  326|       |
  327|   210k|  DEBUGASSERT(wantedsize != 0);
  ------------------
  |  | 1081|   210k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (327:3): [True: 0, False: 210k]
  |  Branch (327:3): [True: 210k, False: 0]
  ------------------
  328|       |
  329|   210k|  if(countcheck("realloc", line, source))
  ------------------
  |  Branch (329:6): [True: 0, False: 210k]
  ------------------
  330|      0|    return NULL;
  331|       |
  332|       |  /* need to realloc under lock, as we get out-of-order log
  333|       |   * entries otherwise, since another thread might alloc the
  334|       |   * memory released by realloc() before otherwise would log it. */
  335|   210k|  was_locked = curl_dbg_lock();
  336|       |#ifdef __INTEL_COMPILER
  337|       |#  pragma warning(push)
  338|       |#  pragma warning(disable:1684)
  339|       |   /* 1684: conversion from pointer to same-sized integral type */
  340|       |#endif
  341|       |
  342|   210k|  if(ptr)
  ------------------
  |  Branch (342:6): [True: 73.2k, False: 137k]
  ------------------
  343|  73.2k|    mem = (void *)((char *)ptr - offsetof(struct memdebug, mem));
  344|       |
  345|       |#ifdef __INTEL_COMPILER
  346|       |#  pragma warning(pop)
  347|       |#endif
  348|       |
  349|   210k|  mem = Curl_crealloc(mem, size);
  350|   210k|  if(source)
  ------------------
  |  Branch (350:6): [True: 210k, False: 0]
  ------------------
  351|   210k|    curl_dbg_log_locked("MEM %s:%d realloc(%p, %zu) = %p\n",
  352|   210k|                        source, line, (void *)ptr, wantedsize,
  353|   210k|                        mem ? (void *)mem->mem : (void *)0);
  ------------------
  |  Branch (353:25): [True: 210k, False: 0]
  ------------------
  354|       |
  355|   210k|  curl_dbg_unlock(was_locked);
  356|   210k|  if(mem) {
  ------------------
  |  Branch (356:6): [True: 210k, False: 0]
  ------------------
  357|   210k|    mem->size = wantedsize;
  358|   210k|    return mem->mem;
  359|   210k|  }
  360|       |
  361|      0|  return NULL;
  362|   210k|}
curl_dbg_free:
  365|  5.17M|{
  366|  5.17M|  if(ptr) {
  ------------------
  |  Branch (366:6): [True: 889k, False: 4.28M]
  ------------------
  367|   889k|    struct memdebug *mem;
  368|       |
  369|   889k|    if(source)
  ------------------
  |  Branch (369:8): [True: 889k, False: 0]
  ------------------
  370|   889k|      curl_dbg_log("MEM %s:%d free(%p)\n", source, line, (void *)ptr);
  371|       |
  372|       |#ifdef __INTEL_COMPILER
  373|       |#  pragma warning(push)
  374|       |#  pragma warning(disable:1684)
  375|       |   /* 1684: conversion from pointer to same-sized integral type */
  376|       |#endif
  377|       |
  378|   889k|    mem = (void *)((char *)ptr - offsetof(struct memdebug, mem));
  379|       |
  380|       |#ifdef __INTEL_COMPILER
  381|       |#  pragma warning(pop)
  382|       |#endif
  383|       |
  384|       |    /* free for real */
  385|   889k|    Curl_cfree(mem);
  386|   889k|  }
  387|  5.17M|}
curl_dbg_socket:
  391|  7.82k|{
  392|  7.82k|  curl_socket_t sockfd;
  393|       |
  394|  7.82k|  if(countcheck("socket", line, source))
  ------------------
  |  Branch (394:6): [True: 0, False: 7.82k]
  ------------------
  395|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  396|       |
  397|       |  /* !checksrc! disable BANNEDFUNC 1 */
  398|  7.82k|  sockfd = socket(domain, type, protocol);
  399|       |
  400|  7.82k|  if(source && (sockfd != CURL_SOCKET_BAD))
  ------------------
  |  |  145|  7.82k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (400:6): [True: 7.82k, False: 0]
  |  Branch (400:16): [True: 7.82k, False: 0]
  ------------------
  401|  7.82k|    curl_dbg_log("FD %s:%d socket() = %" FMT_SOCKET_T "\n",
  402|  7.82k|                 source, line, sockfd);
  403|       |
  404|  7.82k|  return sockfd;
  405|  7.82k|}
curl_dbg_mark_sclose:
  461|  14.8k|{
  462|  14.8k|  if(source)
  ------------------
  |  Branch (462:6): [True: 14.8k, False: 0]
  ------------------
  463|  14.8k|    curl_dbg_log("FD %s:%d sclose(%" FMT_SOCKET_T ")\n",
  464|  14.8k|                 source, line, sockfd);
  465|  14.8k|}
curl_dbg_sclose:
  469|  14.8k|{
  470|  14.8k|  curl_dbg_mark_sclose(sockfd, line, source);
  471|  14.8k|  return CURL_SCLOSE(sockfd);
  ------------------
  |  |  999|  14.8k|#  define CURL_SCLOSE(x)  close(x)
  ------------------
  472|  14.8k|}
curl_dbg_fopen:
  477|  39.1k|{
  478|  39.1k|  FILE *res = CURLX_FOPEN_LOW(file, mode);
  ------------------
  |  |   64|  39.1k|#define CURLX_FOPEN_LOW         fopen
  ------------------
  479|  39.1k|  if(source)
  ------------------
  |  Branch (479:6): [True: 39.1k, False: 0]
  ------------------
  480|  39.1k|    curl_dbg_log("FILE %s:%d fopen(\"%s\",\"%s\") = %p\n",
  481|  39.1k|                 source, line, file, mode, (void *)res);
  482|       |
  483|  39.1k|  return res;
  484|  39.1k|}
curl_dbg_fclose:
  510|  39.1k|{
  511|  39.1k|  int res;
  512|       |
  513|  39.1k|  DEBUGASSERT(file != NULL);
  ------------------
  |  | 1081|  39.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (513:3): [True: 0, False: 39.1k]
  |  Branch (513:3): [True: 39.1k, False: 0]
  ------------------
  514|       |
  515|  39.1k|  if(source)
  ------------------
  |  Branch (515:6): [True: 39.1k, False: 0]
  ------------------
  516|  39.1k|    curl_dbg_log("FILE %s:%d fclose(%p)\n", source, line, (void *)file);
  517|       |
  518|       |  /* !checksrc! disable BANNEDFUNC 1 */
  519|  39.1k|  res = fclose(file);
  520|       |
  521|  39.1k|  return res;
  522|  39.1k|}
curl_dbg_log:
  565|  1.74M|{
  566|  1.74M|  bool was_locked;
  567|  1.74M|  va_list ap;
  568|       |
  569|  1.74M|  if(!curl_dbg_logfile)
  ------------------
  |  Branch (569:6): [True: 1.74M, False: 0]
  ------------------
  570|  1.74M|    return;
  571|       |
  572|      0|  was_locked = curl_dbg_lock();
  573|      0|  va_start(ap, format);
  574|      0|  curl_dbg_vlog(format, ap);
  575|       |  va_end(ap);
  576|      0|  curl_dbg_unlock(was_locked);
  577|      0|}
memdebug.c:countcheck:
  187|  1.14M|{
  188|       |  /* if source is NULL, then the call is made internally and this check
  189|       |     should not be made */
  190|  1.14M|  if(memlimit && source) {
  ------------------
  |  Branch (190:6): [True: 0, False: 1.14M]
  |  Branch (190:18): [True: 0, False: 0]
  ------------------
  191|      0|    if(!memsize) {
  ------------------
  |  Branch (191:8): [True: 0, False: 0]
  ------------------
  192|       |      /* log to file */
  193|      0|      curl_dbg_log("LIMIT %s:%d %s reached memlimit\n", source, line, func);
  194|       |      /* log to stderr also */
  195|      0|      curl_mfprintf(stderr, "LIMIT %s:%d %s reached memlimit\n",
  196|      0|                    source, line, func);
  197|      0|      dump_bt();
  198|      0|      fflush(curl_dbg_logfile); /* because it might crash now */
  199|       |      /* !checksrc! disable ERRNOVAR 1 */
  200|      0|      errno = ENOMEM;
  201|      0|      return TRUE; /* RETURN ERROR! */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  202|      0|    }
  203|      0|    else
  204|      0|      memsize--; /* countdown */
  205|      0|  }
  206|       |
  207|  1.14M|  return FALSE; /* allow this */
  ------------------
  |  | 1058|  1.14M|#define FALSE false
  ------------------
  208|  1.14M|}
memdebug.c:curl_dbg_lock:
   74|   210k|{
   75|   210k|#ifdef USE_MUTEX
   76|   210k|  if(dbg_mutex_init) {
  ------------------
  |  Branch (76:6): [True: 0, False: 210k]
  ------------------
   77|      0|    Curl_mutex_acquire(&dbg_mutex);
  ------------------
  |  |   36|      0|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
   78|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
   79|      0|  }
   80|   210k|#endif
   81|   210k|  return FALSE;
  ------------------
  |  | 1058|   210k|#define FALSE false
  ------------------
   82|   210k|}
memdebug.c:curl_dbg_unlock:
   85|   210k|{
   86|   210k|#ifdef USE_MUTEX
   87|   210k|  if(was_locked)
  ------------------
  |  Branch (87:6): [True: 0, False: 210k]
  ------------------
   88|      0|    Curl_mutex_release(&dbg_mutex);
  ------------------
  |  |   37|      0|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
   89|       |#else
   90|       |  (void)was_locked;
   91|       |#endif
   92|   210k|}
memdebug.c:curl_dbg_log_locked:
  552|   210k|{
  553|   210k|  va_list ap;
  554|       |
  555|   210k|  if(!curl_dbg_logfile)
  ------------------
  |  Branch (555:6): [True: 210k, False: 0]
  ------------------
  556|   210k|    return;
  557|       |
  558|   210k|  va_start(ap, format);
  559|      0|  curl_dbg_vlog(format, ap);
  560|       |  va_end(ap);
  561|      0|}

Curl_mime_cleanpart:
 1090|  31.2k|{
 1091|  31.2k|  if(part) {
  ------------------
  |  Branch (1091:6): [True: 0, False: 31.2k]
  ------------------
 1092|      0|    cleanup_part_content(part);
 1093|      0|    curl_slist_free_all(part->curlheaders);
 1094|      0|    if(part->flags & MIME_USERHEADERS_OWNER)
  ------------------
  |  |   34|      0|#define MIME_USERHEADERS_OWNER  (1 << 0)
  ------------------
  |  Branch (1094:8): [True: 0, False: 0]
  ------------------
 1095|      0|      curl_slist_free_all(part->userheaders);
 1096|      0|    curlx_safefree(part->mimetype);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1097|      0|    curlx_safefree(part->name);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1098|       |    curlx_safefree(part->filename);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1099|      0|    Curl_mime_initpart(part);
 1100|      0|  }
 1101|  31.2k|}

curl_mvsnprintf:
 1106|  55.0k|{
 1107|  55.0k|  int retcode;
 1108|  55.0k|  struct nsprintf info;
 1109|       |
 1110|  55.0k|  info.buffer = buffer;
 1111|  55.0k|  info.length = 0;
 1112|  55.0k|  info.max = maxlength;
 1113|       |
 1114|  55.0k|  retcode = formatf(&info, addbyter, format, args);
 1115|  55.0k|  if(info.max) {
  ------------------
  |  Branch (1115:6): [True: 55.0k, False: 0]
  ------------------
 1116|       |    /* we terminate this with a zero byte */
 1117|  55.0k|    if(info.max == info.length) {
  ------------------
  |  Branch (1117:8): [True: 0, False: 55.0k]
  ------------------
 1118|       |      /* we are at maximum, scrap the last letter */
 1119|      0|      info.buffer[-1] = 0;
 1120|      0|      DEBUGASSERT(retcode);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1120:7): [True: 0, False: 0]
  |  Branch (1120:7): [True: 0, False: 0]
  ------------------
 1121|      0|      retcode--; /* do not count the nul byte */
 1122|      0|    }
 1123|  55.0k|    else
 1124|  55.0k|      info.buffer[0] = 0;
 1125|  55.0k|  }
 1126|  55.0k|  return retcode;
 1127|  55.0k|}
curl_msnprintf:
 1130|  55.0k|{
 1131|  55.0k|  int retcode;
 1132|  55.0k|  va_list args; /* argument pointer */
 1133|  55.0k|  va_start(args, format);
 1134|  55.0k|  retcode = curl_mvsnprintf(buffer, maxlength, format, args);
 1135|       |  va_end(args);
 1136|  55.0k|  return retcode;
 1137|  55.0k|}
curlx_dyn_vprintf:
 1153|  38.9k|{
 1154|  38.9k|  struct asprintf info;
 1155|  38.9k|  info.b = dyn;
 1156|  38.9k|  info.merr = MERR_OK;
  ------------------
  |  |   27|  38.9k|#define MERR_OK        0
  ------------------
 1157|       |
 1158|  38.9k|  (void)formatf(&info, alloc_addbyter, format, args);
 1159|  38.9k|  if(info.merr) {
  ------------------
  |  Branch (1159:6): [True: 9, False: 38.8k]
  ------------------
 1160|      9|    curlx_dyn_free(info.b);
 1161|      9|    return info.merr;
 1162|      9|  }
 1163|  38.8k|  return 0;
 1164|  38.9k|}
curl_mvaprintf:
 1167|  42.8k|{
 1168|  42.8k|  struct asprintf info;
 1169|  42.8k|  struct dynbuf dyn;
 1170|  42.8k|  info.b = &dyn;
 1171|  42.8k|  curlx_dyn_init(info.b, DYN_APRINTF);
  ------------------
  |  |   70|  42.8k|#define DYN_APRINTF         8000000
  ------------------
 1172|  42.8k|  info.merr = MERR_OK;
  ------------------
  |  |   27|  42.8k|#define MERR_OK        0
  ------------------
 1173|       |
 1174|  42.8k|  (void)formatf(&info, alloc_addbyter, format, args);
 1175|  42.8k|  if(info.merr) {
  ------------------
  |  Branch (1175:6): [True: 0, False: 42.8k]
  ------------------
 1176|      0|    curlx_dyn_free(info.b);
 1177|      0|    return NULL;
 1178|      0|  }
 1179|  42.8k|  if(curlx_dyn_len(info.b))
  ------------------
  |  Branch (1179:6): [True: 42.8k, False: 0]
  ------------------
 1180|  42.8k|    return curlx_dyn_ptr(info.b);
 1181|      0|  return curlx_strdup("");
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1182|  42.8k|}
curl_maprintf:
 1185|  42.8k|{
 1186|  42.8k|  va_list args;
 1187|  42.8k|  char *s;
 1188|  42.8k|  va_start(args, format);
 1189|  42.8k|  s = curl_mvaprintf(format, args);
 1190|       |  va_end(args);
 1191|  42.8k|  return s;
 1192|  42.8k|}
curl_mfprintf:
 1232|     62|{
 1233|     62|  int retcode;
 1234|     62|  va_list args; /* argument pointer */
 1235|     62|  va_start(args, format);
 1236|     62|  retcode = formatf(fd, fputc_wrapper, format, args);
 1237|       |  va_end(args);
 1238|     62|  return retcode;
 1239|     62|}
mprintf.c:formatf:
  976|   136k|{
  977|   136k|  int done = 0;   /* number of characters written */
  978|   136k|  int i;
  979|   136k|  int ocount = 0; /* number of output segments */
  980|   136k|  int icount = 0; /* number of input arguments */
  981|       |
  982|   136k|  struct outsegment output[MAX_SEGMENTS];
  983|   136k|  struct va_input input[MAX_PARAMETERS];
  984|   136k|  char work[BUFFSIZE + 2];
  985|       |
  986|       |  /* Parse the format string */
  987|   136k|  if(parsefmt(format, output, input, &ocount, &icount, ap_save))
  ------------------
  |  Branch (987:6): [True: 0, False: 136k]
  ------------------
  988|      0|    return 0;
  989|       |
  990|   639k|  for(i = 0; i < ocount; i++) {
  ------------------
  |  Branch (990:14): [True: 502k, False: 136k]
  ------------------
  991|   502k|    struct outsegment *optr = &output[i];
  992|   502k|    struct va_input *iptr = &input[optr->input];
  993|   502k|    struct mproperty p;
  994|   502k|    size_t outlen = optr->outlen;
  995|       |
  996|   502k|    if(outlen) {
  ------------------
  |  Branch (996:8): [True: 153k, False: 349k]
  ------------------
  997|   153k|      const char *str = optr->start;
  998|   636k|      for(; outlen && *str; outlen--) {
  ------------------
  |  Branch (998:13): [True: 483k, False: 153k]
  |  Branch (998:23): [True: 483k, False: 0]
  ------------------
  999|   483k|        if(stream(*str++, userp))
  ------------------
  |  Branch (999:12): [True: 2, False: 483k]
  ------------------
 1000|      2|          return done;
 1001|   483k|        done++;
 1002|   483k|      }
 1003|   153k|      if(optr->flags & FLAGS_SUBSTR)
  ------------------
  |  Branch (1003:10): [True: 68.7k, False: 84.5k]
  ------------------
 1004|       |        /* this is a substring */
 1005|  68.7k|        continue;
 1006|   153k|    }
 1007|       |
 1008|   433k|    p.flags = optr->flags;
 1009|       |
 1010|       |    /* pick up the specified width */
 1011|   433k|    if(p.flags & FLAGS_WIDTHPARAM) {
  ------------------
  |  Branch (1011:8): [True: 0, False: 433k]
  ------------------
 1012|      0|      p.width = (int)input[optr->width].val.nums;
 1013|      0|      if(p.width < 0) {
  ------------------
  |  Branch (1013:10): [True: 0, False: 0]
  ------------------
 1014|       |        /* "A negative field width is taken as a '-' flag followed by a
 1015|       |           positive field width." */
 1016|      0|        if(p.width == INT_MIN)
  ------------------
  |  Branch (1016:12): [True: 0, False: 0]
  ------------------
 1017|      0|          p.width = INT_MAX;
 1018|      0|        else
 1019|      0|          p.width = -p.width;
 1020|      0|        p.flags |= FLAGS_LEFT;
 1021|      0|        p.flags &= ~(unsigned int)FLAGS_PAD_NIL;
 1022|      0|      }
 1023|      0|    }
 1024|   433k|    else
 1025|   433k|      p.width = optr->width;
 1026|       |
 1027|       |    /* pick up the specified precision */
 1028|   433k|    if(p.flags & FLAGS_PRECPARAM) {
  ------------------
  |  Branch (1028:8): [True: 0, False: 433k]
  ------------------
 1029|      0|      p.prec = (int)input[optr->precision].val.nums;
 1030|      0|      if(p.prec < 0)
  ------------------
  |  Branch (1030:10): [True: 0, False: 0]
  ------------------
 1031|       |        /* "A negative precision is taken as if the precision were
 1032|       |           omitted." */
 1033|      0|        p.prec = -1;
 1034|      0|    }
 1035|   433k|    else if(p.flags & FLAGS_PREC)
  ------------------
  |  Branch (1035:13): [True: 0, False: 433k]
  ------------------
 1036|      0|      p.prec = optr->precision;
 1037|   433k|    else
 1038|   433k|      p.prec = -1;
 1039|       |
 1040|   433k|    switch(iptr->type) {
 1041|  65.4k|    case MTYPE_INTU:
  ------------------
  |  Branch (1041:5): [True: 65.4k, False: 368k]
  ------------------
 1042|  65.4k|    case MTYPE_LONGU:
  ------------------
  |  Branch (1042:5): [True: 90, False: 433k]
  ------------------
 1043|  65.4k|    case MTYPE_LONGLONGU:
  ------------------
  |  Branch (1043:5): [True: 0, False: 433k]
  ------------------
 1044|  65.4k|      p.flags |= FLAGS_UNSIGNED;
 1045|  65.4k|      if(out_number(userp, stream, &p, iptr->val.numu, 0, work, &done))
  ------------------
  |  Branch (1045:10): [True: 1, False: 65.4k]
  ------------------
 1046|      1|        return done;
 1047|  65.4k|      break;
 1048|       |
 1049|  65.4k|    case MTYPE_INT:
  ------------------
  |  Branch (1049:5): [True: 2.32k, False: 431k]
  ------------------
 1050|  4.63k|    case MTYPE_LONG:
  ------------------
  |  Branch (1050:5): [True: 2.31k, False: 431k]
  ------------------
 1051|  4.63k|    case MTYPE_LONGLONG:
  ------------------
  |  Branch (1051:5): [True: 0, False: 433k]
  ------------------
 1052|  4.63k|      if(out_number(userp, stream, &p, iptr->val.numu,
  ------------------
  |  Branch (1052:10): [True: 2, False: 4.63k]
  ------------------
 1053|  4.63k|                    iptr->val.nums, work, &done))
 1054|      2|        return done;
 1055|  4.63k|      break;
 1056|       |
 1057|   363k|    case MTYPE_STRING:
  ------------------
  |  Branch (1057:5): [True: 363k, False: 70.1k]
  ------------------
 1058|   363k|      if(out_string(userp, stream, &p, iptr->val.str, &done))
  ------------------
  |  Branch (1058:10): [True: 4, False: 363k]
  ------------------
 1059|      4|        return done;
 1060|   363k|      break;
 1061|       |
 1062|   363k|    case MTYPE_PTR:
  ------------------
  |  Branch (1062:5): [True: 0, False: 433k]
  ------------------
 1063|      0|      if(out_pointer(userp, stream, &p, iptr->val.ptr, work, &done))
  ------------------
  |  Branch (1063:10): [True: 0, False: 0]
  ------------------
 1064|      0|        return done;
 1065|      0|      break;
 1066|       |
 1067|      0|    case MTYPE_DOUBLE:
  ------------------
  |  Branch (1067:5): [True: 0, False: 433k]
  ------------------
 1068|      0|      if(out_double(userp, stream, &p, iptr->val.dnum, work, &done))
  ------------------
  |  Branch (1068:10): [True: 0, False: 0]
  ------------------
 1069|      0|        return done;
 1070|      0|      break;
 1071|       |
 1072|      0|    case MTYPE_INTPTR:
  ------------------
  |  Branch (1072:5): [True: 0, False: 433k]
  ------------------
 1073|       |      /* Answer the count of characters written. */
 1074|      0|      if(p.flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (1074:10): [True: 0, False: 0]
  ------------------
 1075|      0|        *(int64_t *)iptr->val.ptr = (int64_t)done;
 1076|      0|      else if(p.flags & FLAGS_LONG)
  ------------------
  |  Branch (1076:15): [True: 0, False: 0]
  ------------------
 1077|      0|        *(long *)iptr->val.ptr = (long)done;
 1078|      0|      else if(!(p.flags & FLAGS_SHORT))
  ------------------
  |  Branch (1078:15): [True: 0, False: 0]
  ------------------
 1079|      0|        *(int *)iptr->val.ptr = done;
 1080|      0|      else
 1081|      0|        *(short *)iptr->val.ptr = (short)done;
 1082|      0|      break;
 1083|       |
 1084|      0|    default:
  ------------------
  |  Branch (1084:5): [True: 0, False: 433k]
  ------------------
 1085|      0|      break;
 1086|   433k|    }
 1087|   433k|  }
 1088|   136k|  return done;
 1089|   136k|}
mprintf.c:parsefmt:
  431|   136k|{
  432|   136k|  const char *fmt = format;
  433|   136k|  int param_num = 0;
  434|   136k|  int max_param = -1;
  435|   136k|  int i;
  436|   136k|  int ocount = 0;
  437|   136k|  unsigned char usedinput[MAX_PARAMETERS / 8];
  438|   136k|  size_t outlen = 0;
  439|   136k|  struct outsegment *optr;
  440|   136k|  int use_dollar = DOLLAR_UNKNOWN;
  441|   136k|  const char *start = fmt;
  442|       |
  443|       |  /* clear, set a bit for each used input */
  444|   136k|  memset(usedinput, 0, sizeof(usedinput));
  445|       |
  446|  1.05M|  while(*fmt) {
  ------------------
  |  Branch (446:9): [True: 916k, False: 136k]
  ------------------
  447|   916k|    if(*fmt == '%') {
  ------------------
  |  Branch (447:8): [True: 433k, False: 483k]
  ------------------
  448|   433k|      struct va_input *iptr;
  449|   433k|      FormatType type;
  450|   433k|      unsigned int flags = 0;
  451|   433k|      int width = 0;
  452|   433k|      int precision = 0;
  453|   433k|      int param = -1;
  454|   433k|      int rc;
  455|   433k|      fmt++;
  456|   433k|      outlen = (size_t)(fmt - start - 1);
  457|   433k|      if(*fmt == '%') {
  ------------------
  |  Branch (457:10): [True: 0, False: 433k]
  ------------------
  458|       |        /* this means a %% that should be output only as %. Create an output
  459|       |           segment. */
  460|      0|        if(outlen) {
  ------------------
  |  Branch (460:12): [True: 0, False: 0]
  ------------------
  461|      0|          optr = &out[ocount++];
  462|      0|          if(ocount > MAX_SEGMENTS)
  ------------------
  |  |   34|      0|#define MAX_SEGMENTS   128 /* number of output segments */
  ------------------
  |  Branch (462:14): [True: 0, False: 0]
  ------------------
  463|      0|            return PFMT_MANYSEGS;
  ------------------
  |  |  170|      0|#define PFMT_MANYSEGS   11 /* maxed out output segments */
  ------------------
  464|      0|          optr->input = 0;
  465|      0|          optr->flags = FLAGS_SUBSTR;
  466|      0|          optr->start = start;
  467|      0|          optr->outlen = outlen;
  468|      0|        }
  469|      0|        start = fmt;
  470|      0|        fmt++;
  471|      0|        continue; /* while */
  472|      0|      }
  473|       |
  474|   433k|      if(use_dollar != DOLLAR_NOPE) {
  ------------------
  |  Branch (474:10): [True: 136k, False: 297k]
  ------------------
  475|   136k|        param = dollarstring(fmt, &fmt);
  476|   136k|        if(param < 0) {
  ------------------
  |  Branch (476:12): [True: 136k, False: 0]
  ------------------
  477|   136k|          if(use_dollar == DOLLAR_USE)
  ------------------
  |  Branch (477:14): [True: 0, False: 136k]
  ------------------
  478|       |            /* illegal combo */
  479|      0|            return PFMT_DOLLAR;
  ------------------
  |  |  160|      0|#define PFMT_DOLLAR      1 /* bad dollar for main param */
  ------------------
  480|       |
  481|       |          /* we got no positional, get the next arg */
  482|   136k|          param = -1;
  483|   136k|          use_dollar = DOLLAR_NOPE;
  484|   136k|        }
  485|      0|        else
  486|      0|          use_dollar = DOLLAR_USE;
  487|   136k|      }
  488|       |
  489|   433k|      rc = parse_flags(&fmt, &flags, use_dollar, &precision, &width);
  490|   433k|      if(rc)
  ------------------
  |  Branch (490:10): [True: 0, False: 433k]
  ------------------
  491|      0|        return rc;
  492|       |
  493|   433k|      if(parse_conversion(*fmt, &flags, &type))
  ------------------
  |  Branch (493:10): [True: 0, False: 433k]
  ------------------
  494|      0|        continue;
  495|       |
  496|   433k|      if(flags & FLAGS_WIDTHPARAM) {
  ------------------
  |  Branch (496:10): [True: 0, False: 433k]
  ------------------
  497|      0|        if(width < 0)
  ------------------
  |  Branch (497:12): [True: 0, False: 0]
  ------------------
  498|      0|          width = param_num++;
  499|      0|        else {
  500|       |          /* if this identifies a parameter already used, this is illegal */
  501|      0|          if(is_arg_used(usedinput, width))
  ------------------
  |  |  148|      0|#define is_arg_used(x, y)   ((x)[(y) / 8] & (1 << ((y) & 7)))
  |  |  ------------------
  |  |  |  Branch (148:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  502|      0|            return PFMT_WIDTHARG;
  ------------------
  |  |  168|      0|#define PFMT_WIDTHARG    9 /* attempted to use same arg twice, for width */
  ------------------
  503|      0|        }
  504|      0|        if(width >= MAX_PARAMETERS)
  ------------------
  |  |   33|      0|#define MAX_PARAMETERS 128 /* number of input arguments */
  ------------------
  |  Branch (504:12): [True: 0, False: 0]
  ------------------
  505|      0|          return PFMT_MANYARGS;
  ------------------
  |  |  163|      0|#define PFMT_MANYARGS    4 /* too many input arguments used */
  ------------------
  506|      0|        if(width >= max_param)
  ------------------
  |  Branch (506:12): [True: 0, False: 0]
  ------------------
  507|      0|          max_param = width;
  508|       |
  509|      0|        in[width].type = MTYPE_WIDTH;
  510|       |        /* mark as used */
  511|      0|        mark_arg_used(usedinput, width);
  ------------------
  |  |  149|      0|#define mark_arg_used(x, y) ((x)[(y) / 8] |= (unsigned char)(1 << ((y) & 7)))
  ------------------
  512|      0|      }
  513|       |
  514|   433k|      if(flags & FLAGS_PRECPARAM) {
  ------------------
  |  Branch (514:10): [True: 0, False: 433k]
  ------------------
  515|      0|        if(precision < 0)
  ------------------
  |  Branch (515:12): [True: 0, False: 0]
  ------------------
  516|      0|          precision = param_num++;
  517|      0|        else {
  518|       |          /* if this identifies a parameter already used, this is illegal */
  519|      0|          if(is_arg_used(usedinput, precision))
  ------------------
  |  |  148|      0|#define is_arg_used(x, y)   ((x)[(y) / 8] & (1 << ((y) & 7)))
  |  |  ------------------
  |  |  |  Branch (148:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  520|      0|            return PFMT_PRECARG;
  ------------------
  |  |  169|      0|#define PFMT_PRECARG    10 /* attempted to use same arg twice, for prec */
  ------------------
  521|      0|        }
  522|      0|        if(precision >= MAX_PARAMETERS)
  ------------------
  |  |   33|      0|#define MAX_PARAMETERS 128 /* number of input arguments */
  ------------------
  |  Branch (522:12): [True: 0, False: 0]
  ------------------
  523|      0|          return PFMT_MANYARGS;
  ------------------
  |  |  163|      0|#define PFMT_MANYARGS    4 /* too many input arguments used */
  ------------------
  524|      0|        if(precision >= max_param)
  ------------------
  |  Branch (524:12): [True: 0, False: 0]
  ------------------
  525|      0|          max_param = precision;
  526|       |
  527|      0|        in[precision].type = MTYPE_PRECISION;
  528|      0|        mark_arg_used(usedinput, precision);
  ------------------
  |  |  149|      0|#define mark_arg_used(x, y) ((x)[(y) / 8] |= (unsigned char)(1 << ((y) & 7)))
  ------------------
  529|      0|      }
  530|       |
  531|       |      /* Handle the specifier */
  532|   433k|      if(param < 0)
  ------------------
  |  Branch (532:10): [True: 433k, False: 0]
  ------------------
  533|   433k|        param = param_num++;
  534|   433k|      if(param >= MAX_PARAMETERS)
  ------------------
  |  |   33|   433k|#define MAX_PARAMETERS 128 /* number of input arguments */
  ------------------
  |  Branch (534:10): [True: 0, False: 433k]
  ------------------
  535|      0|        return PFMT_MANYARGS;
  ------------------
  |  |  163|      0|#define PFMT_MANYARGS    4 /* too many input arguments used */
  ------------------
  536|   433k|      if(param >= max_param)
  ------------------
  |  Branch (536:10): [True: 433k, False: 0]
  ------------------
  537|   433k|        max_param = param;
  538|       |
  539|   433k|      iptr = &in[param];
  540|   433k|      iptr->type = type;
  541|       |
  542|       |      /* mark this input as used */
  543|   433k|      mark_arg_used(usedinput, param);
  ------------------
  |  |  149|   433k|#define mark_arg_used(x, y) ((x)[(y) / 8] |= (unsigned char)(1 << ((y) & 7)))
  ------------------
  544|       |
  545|   433k|      fmt++;
  546|   433k|      optr = &out[ocount++];
  547|   433k|      if(ocount > MAX_SEGMENTS)
  ------------------
  |  |   34|   433k|#define MAX_SEGMENTS   128 /* number of output segments */
  ------------------
  |  Branch (547:10): [True: 0, False: 433k]
  ------------------
  548|      0|        return PFMT_MANYSEGS;
  ------------------
  |  |  170|      0|#define PFMT_MANYSEGS   11 /* maxed out output segments */
  ------------------
  549|   433k|      optr->input = (unsigned int)param;
  550|   433k|      optr->flags = flags;
  551|   433k|      optr->width = width;
  552|   433k|      optr->precision = precision;
  553|   433k|      optr->start = start;
  554|   433k|      optr->outlen = outlen;
  555|   433k|      start = fmt;
  556|   433k|    }
  557|   483k|    else
  558|   483k|      fmt++;
  559|   916k|  }
  560|       |
  561|       |  /* is there a trailing piece */
  562|   136k|  outlen = (size_t)(fmt - start);
  563|   136k|  if(outlen) {
  ------------------
  |  Branch (563:6): [True: 68.7k, False: 68.0k]
  ------------------
  564|  68.7k|    optr = &out[ocount++];
  565|  68.7k|    if(ocount > MAX_SEGMENTS)
  ------------------
  |  |   34|  68.7k|#define MAX_SEGMENTS   128 /* number of output segments */
  ------------------
  |  Branch (565:8): [True: 0, False: 68.7k]
  ------------------
  566|      0|      return PFMT_MANYSEGS;
  ------------------
  |  |  170|      0|#define PFMT_MANYSEGS   11 /* maxed out output segments */
  ------------------
  567|  68.7k|    optr->input = 0;
  568|  68.7k|    optr->flags = FLAGS_SUBSTR;
  569|  68.7k|    optr->start = start;
  570|  68.7k|    optr->outlen = outlen;
  571|  68.7k|  }
  572|       |
  573|       |  /* Read the arg list parameters into our data list */
  574|   570k|  for(i = 0; i < max_param + 1; i++) {
  ------------------
  |  Branch (574:14): [True: 433k, False: 136k]
  ------------------
  575|   433k|    struct va_input *iptr = &in[i];
  576|   433k|    if(!is_arg_used(usedinput, i))
  ------------------
  |  |  148|   433k|#define is_arg_used(x, y)   ((x)[(y) / 8] & (1 << ((y) & 7)))
  ------------------
  |  Branch (576:8): [True: 0, False: 433k]
  ------------------
  577|       |      /* bad input */
  578|      0|      return PFMT_INPUTGAP;
  ------------------
  |  |  167|      0|#define PFMT_INPUTGAP    8 /* gap in arguments */
  ------------------
  579|       |
  580|       |    /* based on the type, read the correct argument */
  581|   433k|    switch(iptr->type) {
  582|   363k|    case MTYPE_STRING:
  ------------------
  |  Branch (582:5): [True: 363k, False: 70.1k]
  ------------------
  583|   363k|      iptr->val.str = va_arg(arglist, const char *);
  584|   363k|      break;
  585|       |
  586|      0|    case MTYPE_INTPTR:
  ------------------
  |  Branch (586:5): [True: 0, False: 433k]
  ------------------
  587|      0|    case MTYPE_PTR:
  ------------------
  |  Branch (587:5): [True: 0, False: 433k]
  ------------------
  588|      0|      iptr->val.ptr = va_arg(arglist, void *);
  589|      0|      break;
  590|       |
  591|      0|    case MTYPE_LONGLONGU:
  ------------------
  |  Branch (591:5): [True: 0, False: 433k]
  ------------------
  592|      0|      iptr->val.numu = va_arg(arglist, uint64_t);
  593|      0|      break;
  594|       |
  595|      0|    case MTYPE_LONGLONG:
  ------------------
  |  Branch (595:5): [True: 0, False: 433k]
  ------------------
  596|      0|      iptr->val.nums = va_arg(arglist, int64_t);
  597|      0|      break;
  598|       |
  599|     90|    case MTYPE_LONGU:
  ------------------
  |  Branch (599:5): [True: 90, False: 433k]
  ------------------
  600|     90|      iptr->val.numu = va_arg(arglist, unsigned long);
  601|     90|      break;
  602|       |
  603|  2.31k|    case MTYPE_LONG:
  ------------------
  |  Branch (603:5): [True: 2.31k, False: 431k]
  ------------------
  604|  2.31k|      iptr->val.nums = va_arg(arglist, long);
  605|  2.31k|      break;
  606|       |
  607|  65.4k|    case MTYPE_INTU:
  ------------------
  |  Branch (607:5): [True: 65.4k, False: 368k]
  ------------------
  608|  65.4k|      iptr->val.numu = va_arg(arglist, unsigned int);
  609|  65.4k|      break;
  610|       |
  611|  2.32k|    case MTYPE_INT:
  ------------------
  |  Branch (611:5): [True: 2.32k, False: 431k]
  ------------------
  612|  2.32k|    case MTYPE_WIDTH:
  ------------------
  |  Branch (612:5): [True: 0, False: 433k]
  ------------------
  613|  2.32k|    case MTYPE_PRECISION:
  ------------------
  |  Branch (613:5): [True: 0, False: 433k]
  ------------------
  614|  2.32k|      iptr->val.nums = va_arg(arglist, int);
  615|  2.32k|      break;
  616|       |
  617|      0|    case MTYPE_DOUBLE:
  ------------------
  |  Branch (617:5): [True: 0, False: 433k]
  ------------------
  618|      0|      iptr->val.dnum = va_arg(arglist, double);
  619|      0|      break;
  620|       |
  621|      0|    default:
  ------------------
  |  Branch (621:5): [True: 0, False: 433k]
  ------------------
  622|      0|      DEBUGASSERT(NULL); /* unexpected */
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (622:7): [True: 0, False: 0]
  |  Branch (622:7): [True: 0, False: 0]
  ------------------
  623|      0|      break;
  624|   433k|    }
  625|   433k|  }
  626|   136k|  *ipieces = max_param + 1;
  627|   136k|  *opieces = ocount;
  628|       |
  629|   136k|  return PFMT_OK;
  ------------------
  |  |  159|   136k|#define PFMT_OK          0
  ------------------
  630|   136k|}
mprintf.c:dollarstring:
  139|   136k|{
  140|   136k|  curl_off_t num;
  141|   136k|  if(curlx_str_number(&p, &num, MAX_PARAMETERS) ||
  ------------------
  |  |   33|   136k|#define MAX_PARAMETERS 128 /* number of input arguments */
  ------------------
  |  Branch (141:6): [True: 136k, False: 0]
  ------------------
  142|      0|     curlx_str_single(&p, '$') || !num)
  ------------------
  |  Branch (142:6): [True: 0, False: 0]
  |  Branch (142:35): [True: 0, False: 0]
  ------------------
  143|   136k|    return -1;
  144|      0|  *end = p;
  145|      0|  return (int)num - 1;
  146|   136k|}
mprintf.c:parse_flags:
  174|   433k|{
  175|   433k|  const char *fmt = *fmtp;
  176|   433k|  bool loopit = TRUE;
  ------------------
  |  | 1055|   433k|#define TRUE true
  ------------------
  177|   433k|  unsigned int flags = 0;
  178|   433k|  int width = 0;
  179|   433k|  int precision = 0;
  180|       |
  181|       |  /* Handle the flags */
  182|   436k|  do {
  183|   436k|    switch(*fmt++) {
  184|      0|    case ' ':
  ------------------
  |  Branch (184:5): [True: 0, False: 436k]
  ------------------
  185|      0|      flags |= FLAGS_SPACE;
  186|      0|      break;
  187|      0|    case '+':
  ------------------
  |  Branch (187:5): [True: 0, False: 436k]
  ------------------
  188|      0|      flags |= FLAGS_SHOWSIGN;
  189|      0|      break;
  190|      0|    case '-':
  ------------------
  |  Branch (190:5): [True: 0, False: 436k]
  ------------------
  191|      0|      flags |= FLAGS_LEFT;
  192|      0|      flags &= ~(unsigned int)FLAGS_PAD_NIL;
  193|      0|      break;
  194|      0|    case '#':
  ------------------
  |  Branch (194:5): [True: 0, False: 436k]
  ------------------
  195|      0|      flags |= FLAGS_ALT;
  196|      0|      break;
  197|      0|    case '.':
  ------------------
  |  Branch (197:5): [True: 0, False: 436k]
  ------------------
  198|      0|      if('*' == *fmt) {
  ------------------
  |  Branch (198:10): [True: 0, False: 0]
  ------------------
  199|       |        /* The precision is picked from a specified parameter */
  200|      0|        flags |= FLAGS_PRECPARAM;
  201|      0|        fmt++;
  202|       |
  203|      0|        if(use_dollar == DOLLAR_USE) {
  ------------------
  |  Branch (203:12): [True: 0, False: 0]
  ------------------
  204|      0|          precision = dollarstring(fmt, &fmt);
  205|      0|          if(precision < 0)
  ------------------
  |  Branch (205:14): [True: 0, False: 0]
  ------------------
  206|       |            /* illegal combo */
  207|      0|            return PFMT_DOLLARPREC;
  ------------------
  |  |  162|      0|#define PFMT_DOLLARPREC  3 /* bad dollar use for precision */
  ------------------
  208|      0|        }
  209|      0|        else
  210|       |          /* get it from the next argument */
  211|      0|          precision = -1;
  212|      0|      }
  213|      0|      else {
  214|      0|        bool is_neg;
  215|      0|        curl_off_t num;
  216|      0|        flags |= FLAGS_PREC;
  217|      0|        is_neg = ('-' == *fmt);
  218|      0|        if(is_neg)
  ------------------
  |  Branch (218:12): [True: 0, False: 0]
  ------------------
  219|      0|          fmt++;
  220|      0|        if(curlx_str_number(&fmt, &num, INT_MAX))
  ------------------
  |  Branch (220:12): [True: 0, False: 0]
  ------------------
  221|      0|          return PFMT_PREC;
  ------------------
  |  |  164|      0|#define PFMT_PREC        5 /* precision overflow */
  ------------------
  222|      0|        precision = (int)num;
  223|      0|        if(is_neg)
  ------------------
  |  Branch (223:12): [True: 0, False: 0]
  ------------------
  224|      0|          precision = -precision;
  225|      0|      }
  226|      0|      if((flags & (FLAGS_PREC | FLAGS_PRECPARAM)) ==
  ------------------
  |  Branch (226:10): [True: 0, False: 0]
  ------------------
  227|      0|         (FLAGS_PREC | FLAGS_PRECPARAM))
  228|       |        /* it is not permitted to use both kinds of precision for the same
  229|       |           argument */
  230|      0|        return PFMT_PRECMIX;
  ------------------
  |  |  165|      0|#define PFMT_PRECMIX     6 /* bad mix of precision specifiers */
  ------------------
  231|      0|      break;
  232|      0|    case 'h':
  ------------------
  |  Branch (232:5): [True: 0, False: 436k]
  ------------------
  233|      0|      flags |= FLAGS_SHORT;
  234|      0|      break;
  235|       |#ifdef _WIN32
  236|       |    case 'I':
  237|       |      /* Non-ANSI integer extensions I32 I64 */
  238|       |      if((fmt[0] == '3') && (fmt[1] == '2')) {
  239|       |        flags |= FLAGS_LONG;
  240|       |        fmt += 2;
  241|       |      }
  242|       |      else if((fmt[0] == '6') && (fmt[1] == '4')) {
  243|       |        flags |= FLAGS_LONGLONG;
  244|       |        fmt += 2;
  245|       |      }
  246|       |      else {
  247|       |#if (SIZEOF_CURL_OFF_T > SIZEOF_LONG)
  248|       |        flags |= FLAGS_LONGLONG;
  249|       |#else
  250|       |        flags |= FLAGS_LONG;
  251|       |#endif
  252|       |      }
  253|       |      break;
  254|       |#endif /* _WIN32 */
  255|  2.31k|    case 'l':
  ------------------
  |  Branch (255:5): [True: 2.31k, False: 433k]
  ------------------
  256|  2.31k|      if(flags & FLAGS_LONG)
  ------------------
  |  Branch (256:10): [True: 0, False: 2.31k]
  ------------------
  257|      0|        flags |= FLAGS_LONGLONG;
  258|  2.31k|      else
  259|  2.31k|        flags |= FLAGS_LONG;
  260|  2.31k|      break;
  261|      0|    case 'L':
  ------------------
  |  Branch (261:5): [True: 0, False: 436k]
  ------------------
  262|      0|      flags |= FLAGS_LONGDOUBLE;
  263|      0|      break;
  264|      0|    case 'q':
  ------------------
  |  Branch (264:5): [True: 0, False: 436k]
  ------------------
  265|      0|      flags |= FLAGS_LONGLONG;
  266|      0|      break;
  267|     90|    case 'z':
  ------------------
  |  Branch (267:5): [True: 90, False: 435k]
  ------------------
  268|       |      /* the code below generates a warning if -Wunreachable-code is
  269|       |         used */
  270|       |#if (SIZEOF_SIZE_T > SIZEOF_LONG)
  271|       |      flags |= FLAGS_LONGLONG;
  272|       |#else
  273|     90|      flags |= FLAGS_LONG;
  274|     90|#endif
  275|     90|      break;
  276|      0|    case 'O':
  ------------------
  |  Branch (276:5): [True: 0, False: 436k]
  ------------------
  277|       |#if (SIZEOF_CURL_OFF_T > SIZEOF_LONG)
  278|       |      flags |= FLAGS_LONGLONG;
  279|       |#else
  280|      0|      flags |= FLAGS_LONG;
  281|      0|#endif
  282|      0|      break;
  283|      0|    case '0':
  ------------------
  |  Branch (283:5): [True: 0, False: 436k]
  ------------------
  284|      0|      if(!(flags & FLAGS_LEFT))
  ------------------
  |  Branch (284:10): [True: 0, False: 0]
  ------------------
  285|      0|        flags |= FLAGS_PAD_NIL;
  286|      0|      FALLTHROUGH();
  ------------------
  |  |  821|      0|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  287|      0|    case '1':
  ------------------
  |  Branch (287:5): [True: 0, False: 436k]
  ------------------
  288|      0|    case '2':
  ------------------
  |  Branch (288:5): [True: 0, False: 436k]
  ------------------
  289|      0|    case '3':
  ------------------
  |  Branch (289:5): [True: 0, False: 436k]
  ------------------
  290|      0|    case '4':
  ------------------
  |  Branch (290:5): [True: 0, False: 436k]
  ------------------
  291|      0|    case '5':
  ------------------
  |  Branch (291:5): [True: 0, False: 436k]
  ------------------
  292|      0|    case '6':
  ------------------
  |  Branch (292:5): [True: 0, False: 436k]
  ------------------
  293|      0|    case '7':
  ------------------
  |  Branch (293:5): [True: 0, False: 436k]
  ------------------
  294|      0|    case '8':
  ------------------
  |  Branch (294:5): [True: 0, False: 436k]
  ------------------
  295|      0|    case '9': {
  ------------------
  |  Branch (295:5): [True: 0, False: 436k]
  ------------------
  296|      0|      curl_off_t num;
  297|      0|      flags |= FLAGS_WIDTH;
  298|      0|      fmt--;
  299|      0|      if(curlx_str_number(&fmt, &num, INT_MAX))
  ------------------
  |  Branch (299:10): [True: 0, False: 0]
  ------------------
  300|      0|        return PFMT_WIDTH;
  ------------------
  |  |  166|      0|#define PFMT_WIDTH       7 /* width overflow */
  ------------------
  301|      0|      width = (int)num;
  302|      0|      break;
  303|      0|    }
  304|      0|    case '*':  /* read width from argument list */
  ------------------
  |  Branch (304:5): [True: 0, False: 436k]
  ------------------
  305|      0|      flags |= FLAGS_WIDTHPARAM;
  306|      0|      if(use_dollar == DOLLAR_USE) {
  ------------------
  |  Branch (306:10): [True: 0, False: 0]
  ------------------
  307|      0|        width = dollarstring(fmt, &fmt);
  308|      0|        if(width < 0)
  ------------------
  |  Branch (308:12): [True: 0, False: 0]
  ------------------
  309|       |          /* illegal combo */
  310|      0|          return PFMT_DOLLARWIDTH;
  ------------------
  |  |  161|      0|#define PFMT_DOLLARWIDTH 2 /* bad dollar use for width */
  ------------------
  311|      0|      }
  312|      0|      else
  313|       |        /* pick from the next argument */
  314|      0|        width = -1;
  315|      0|      break;
  316|   433k|    default:
  ------------------
  |  Branch (316:5): [True: 433k, False: 2.40k]
  ------------------
  317|   433k|      loopit = FALSE;
  ------------------
  |  | 1058|   433k|#define FALSE false
  ------------------
  318|   433k|      fmt--;
  319|   433k|      break;
  320|   436k|    } /* switch */
  321|   436k|  } while(loopit); /* do */
  ------------------
  |  Branch (321:11): [True: 2.40k, False: 433k]
  ------------------
  322|   433k|  *flagsp = flags;
  323|   433k|  *precp = precision;
  324|   433k|  *widthp = width;
  325|   433k|  *fmtp = fmt;
  326|   433k|  return PFMT_OK;
  ------------------
  |  |  159|   433k|#define PFMT_OK          0
  ------------------
  327|   433k|}
mprintf.c:parse_conversion:
  331|   433k|{
  332|   433k|  unsigned int flags = *flagp;
  333|   433k|  FormatType type;
  334|   433k|  switch(f) {
  335|      0|  case 'S':
  ------------------
  |  Branch (335:3): [True: 0, False: 433k]
  ------------------
  336|      0|    flags |= FLAGS_ALT;
  337|      0|    type = MTYPE_STRING;
  338|      0|    break;
  339|   363k|  case 's':
  ------------------
  |  Branch (339:3): [True: 363k, False: 70.1k]
  ------------------
  340|   363k|    type = MTYPE_STRING;
  341|   363k|    break;
  342|      0|  case 'n':
  ------------------
  |  Branch (342:3): [True: 0, False: 433k]
  ------------------
  343|      0|    type = MTYPE_INTPTR;
  344|      0|    break;
  345|      0|  case 'p':
  ------------------
  |  Branch (345:3): [True: 0, False: 433k]
  ------------------
  346|      0|    type = MTYPE_PTR;
  347|      0|    break;
  348|  4.63k|  case 'd':
  ------------------
  |  Branch (348:3): [True: 4.63k, False: 428k]
  ------------------
  349|  4.63k|  case 'i':
  ------------------
  |  Branch (349:3): [True: 0, False: 433k]
  ------------------
  350|  4.63k|    if(flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (350:8): [True: 0, False: 4.63k]
  ------------------
  351|      0|      type = MTYPE_LONGLONG;
  352|  4.63k|    else if(flags & FLAGS_LONG)
  ------------------
  |  Branch (352:13): [True: 2.31k, False: 2.32k]
  ------------------
  353|  2.31k|      type = MTYPE_LONG;
  354|  2.32k|    else
  355|  2.32k|      type = MTYPE_INT;
  356|  4.63k|    break;
  357|  65.4k|  case 'u':
  ------------------
  |  Branch (357:3): [True: 65.4k, False: 368k]
  ------------------
  358|  65.4k|    if(flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (358:8): [True: 0, False: 65.4k]
  ------------------
  359|      0|      type = MTYPE_LONGLONGU;
  360|  65.4k|    else if(flags & FLAGS_LONG)
  ------------------
  |  Branch (360:13): [True: 0, False: 65.4k]
  ------------------
  361|      0|      type = MTYPE_LONGU;
  362|  65.4k|    else
  363|  65.4k|      type = MTYPE_INTU;
  364|  65.4k|    flags |= FLAGS_UNSIGNED;
  365|  65.4k|    break;
  366|      0|  case 'o':
  ------------------
  |  Branch (366:3): [True: 0, False: 433k]
  ------------------
  367|      0|    if(flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (367:8): [True: 0, False: 0]
  ------------------
  368|      0|      type = MTYPE_LONGLONGU;
  369|      0|    else if(flags & FLAGS_LONG)
  ------------------
  |  Branch (369:13): [True: 0, False: 0]
  ------------------
  370|      0|      type = MTYPE_LONGU;
  371|      0|    else
  372|      0|      type = MTYPE_INTU;
  373|      0|    flags |= FLAGS_OCTAL | FLAGS_UNSIGNED;
  374|      0|    break;
  375|     90|  case 'x':
  ------------------
  |  Branch (375:3): [True: 90, False: 433k]
  ------------------
  376|     90|    if(flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (376:8): [True: 0, False: 90]
  ------------------
  377|      0|      type = MTYPE_LONGLONGU;
  378|     90|    else if(flags & FLAGS_LONG)
  ------------------
  |  Branch (378:13): [True: 90, False: 0]
  ------------------
  379|     90|      type = MTYPE_LONGU;
  380|      0|    else
  381|      0|      type = MTYPE_INTU;
  382|     90|    flags |= FLAGS_HEX | FLAGS_UNSIGNED;
  383|     90|    break;
  384|      0|  case 'X':
  ------------------
  |  Branch (384:3): [True: 0, False: 433k]
  ------------------
  385|      0|    if(flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (385:8): [True: 0, False: 0]
  ------------------
  386|      0|      type = MTYPE_LONGLONGU;
  387|      0|    else if(flags & FLAGS_LONG)
  ------------------
  |  Branch (387:13): [True: 0, False: 0]
  ------------------
  388|      0|      type = MTYPE_LONGU;
  389|      0|    else
  390|      0|      type = MTYPE_INTU;
  391|      0|    flags |= FLAGS_HEX | FLAGS_UPPER | FLAGS_UNSIGNED;
  392|      0|    break;
  393|      0|  case 'c':
  ------------------
  |  Branch (393:3): [True: 0, False: 433k]
  ------------------
  394|      0|    type = MTYPE_INT;
  395|      0|    flags |= FLAGS_CHAR;
  396|      0|    break;
  397|      0|  case 'f':
  ------------------
  |  Branch (397:3): [True: 0, False: 433k]
  ------------------
  398|      0|    type = MTYPE_DOUBLE;
  399|      0|    break;
  400|      0|  case 'e':
  ------------------
  |  Branch (400:3): [True: 0, False: 433k]
  ------------------
  401|      0|    type = MTYPE_DOUBLE;
  402|      0|    flags |= FLAGS_FLOATE;
  403|      0|    break;
  404|      0|  case 'E':
  ------------------
  |  Branch (404:3): [True: 0, False: 433k]
  ------------------
  405|      0|    type = MTYPE_DOUBLE;
  406|      0|    flags |= FLAGS_FLOATE | FLAGS_UPPER;
  407|      0|    break;
  408|      0|  case 'g':
  ------------------
  |  Branch (408:3): [True: 0, False: 433k]
  ------------------
  409|      0|    type = MTYPE_DOUBLE;
  410|      0|    flags |= FLAGS_FLOATG;
  411|      0|    break;
  412|      0|  case 'G':
  ------------------
  |  Branch (412:3): [True: 0, False: 433k]
  ------------------
  413|      0|    type = MTYPE_DOUBLE;
  414|      0|    flags |= FLAGS_FLOATG | FLAGS_UPPER;
  415|      0|    break;
  416|      0|  default:
  ------------------
  |  Branch (416:3): [True: 0, False: 433k]
  ------------------
  417|       |    /* invalid instruction, disregard and continue */
  418|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  419|   433k|  } /* switch */
  420|       |
  421|   433k|  *flagp |= flags;
  422|   433k|  *typep = type;
  423|       |  return FALSE;
  ------------------
  |  | 1058|   433k|#define FALSE false
  ------------------
  424|   433k|}
mprintf.c:out_number:
  738|  70.1k|{
  739|  70.1k|  const unsigned char *digits = Curl_ldigits;
  740|  70.1k|  int flags = p->flags;
  741|  70.1k|  int width = p->width;
  742|  70.1k|  int prec = p->prec;
  743|  70.1k|  bool is_alt = flags & FLAGS_ALT;
  744|  70.1k|  bool is_neg = FALSE;
  ------------------
  |  | 1058|  70.1k|#define FALSE false
  ------------------
  745|  70.1k|  int base = 10;
  746|       |
  747|       |  /* 'workend' points to the final buffer byte position, but with an extra
  748|       |     byte as margin to avoid the (FALSE?) warning Coverity gives us
  749|       |     otherwise */
  750|  70.1k|  char *workend = &work[BUFFSIZE - 2];
  ------------------
  |  |   31|  70.1k|#define BUFFSIZE 326 /* buffer for long-to-str and float-to-str calcs, should
  ------------------
  751|  70.1k|  char *w;
  752|       |
  753|  70.1k|  if(flags & FLAGS_CHAR) {
  ------------------
  |  Branch (753:6): [True: 0, False: 70.1k]
  ------------------
  754|       |    /* Character. */
  755|      0|    if(!(flags & FLAGS_LEFT))
  ------------------
  |  Branch (755:8): [True: 0, False: 0]
  ------------------
  756|      0|      while(--width > 0)
  ------------------
  |  Branch (756:13): [True: 0, False: 0]
  ------------------
  757|      0|        OUTCHAR(' ');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  758|      0|    OUTCHAR((char)num);
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  759|      0|    if(flags & FLAGS_LEFT)
  ------------------
  |  Branch (759:8): [True: 0, False: 0]
  ------------------
  760|      0|      while(--width > 0)
  ------------------
  |  Branch (760:13): [True: 0, False: 0]
  ------------------
  761|      0|        OUTCHAR(' ');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  762|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  763|      0|  }
  764|  70.1k|  if(flags & FLAGS_OCTAL)
  ------------------
  |  Branch (764:6): [True: 0, False: 70.1k]
  ------------------
  765|       |    /* Octal unsigned integer */
  766|      0|    base = 8;
  767|       |
  768|  70.1k|  else if(flags & FLAGS_HEX) {
  ------------------
  |  Branch (768:11): [True: 90, False: 70.0k]
  ------------------
  769|       |    /* Hexadecimal unsigned integer */
  770|     90|    digits = (flags & FLAGS_UPPER) ? Curl_udigits : Curl_ldigits;
  ------------------
  |  Branch (770:14): [True: 0, False: 90]
  ------------------
  771|     90|    base = 16;
  772|     90|  }
  773|  70.0k|  else if(flags & FLAGS_UNSIGNED)
  ------------------
  |  Branch (773:11): [True: 65.4k, False: 4.63k]
  ------------------
  774|       |    /* Decimal unsigned integer */
  775|  65.4k|    ;
  776|       |
  777|  4.63k|  else {
  778|       |    /* Decimal integer. */
  779|  4.63k|    is_neg = (nums < 0);
  780|  4.63k|    if(is_neg) {
  ------------------
  |  Branch (780:8): [True: 0, False: 4.63k]
  ------------------
  781|       |      /* signed_num might fail to hold absolute negative minimum by 1 */
  782|      0|      int64_t signed_num; /* Used to convert negative in positive. */
  783|      0|      signed_num = nums + (int64_t)1;
  784|      0|      signed_num = -signed_num;
  785|      0|      num = (uint64_t)signed_num;
  786|      0|      num += (uint64_t)1;
  787|      0|    }
  788|  4.63k|  }
  789|       |
  790|       |  /* Supply a default precision if none was given. */
  791|  70.1k|  if(prec == -1)
  ------------------
  |  Branch (791:6): [True: 70.1k, False: 0]
  ------------------
  792|  70.1k|    prec = 1;
  793|       |
  794|       |  /* Put the number in WORK. */
  795|  70.1k|  w = workend;
  796|  70.1k|  DEBUGASSERT(base <= 16);
  ------------------
  |  | 1081|  70.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (796:3): [True: 0, False: 70.1k]
  |  Branch (796:3): [True: 70.1k, False: 0]
  ------------------
  797|  70.1k|  switch(base) {
  798|  70.0k|  case 10:
  ------------------
  |  Branch (798:3): [True: 70.0k, False: 90]
  ------------------
  799|   176k|    while(num > 0) {
  ------------------
  |  Branch (799:11): [True: 106k, False: 70.0k]
  ------------------
  800|   106k|      *w-- = (char)('0' + (num % 10));
  801|   106k|      num /= 10;
  802|   106k|    }
  803|  70.0k|    break;
  804|     90|  default:
  ------------------
  |  Branch (804:3): [True: 90, False: 70.0k]
  ------------------
  805|    450|    while(num > 0) {
  ------------------
  |  Branch (805:11): [True: 360, False: 90]
  ------------------
  806|    360|      *w-- = digits[num % base];
  807|    360|      num /= base;
  808|    360|    }
  809|     90|    break;
  810|  70.1k|  }
  811|  70.1k|  width -= (int)(workend - w);
  812|  70.1k|  prec -= (int)(workend - w);
  813|       |
  814|  70.1k|  if(is_alt && base == 8 && prec <= 0) {
  ------------------
  |  Branch (814:6): [True: 0, False: 70.1k]
  |  Branch (814:16): [True: 0, False: 0]
  |  Branch (814:29): [True: 0, False: 0]
  ------------------
  815|      0|    *w-- = '0';
  816|      0|    --width;
  817|      0|  }
  818|       |
  819|  70.1k|  if(prec > 0) {
  ------------------
  |  Branch (819:6): [True: 18.1k, False: 51.9k]
  ------------------
  820|  18.1k|    width -= prec;
  821|  36.3k|    while(prec-- > 0 && w >= work)
  ------------------
  |  Branch (821:11): [True: 18.1k, False: 18.1k]
  |  Branch (821:25): [True: 18.1k, False: 0]
  ------------------
  822|  18.1k|      *w-- = '0';
  823|  18.1k|  }
  824|       |
  825|  70.1k|  if(is_alt && base == 16)
  ------------------
  |  Branch (825:6): [True: 0, False: 70.1k]
  |  Branch (825:16): [True: 0, False: 0]
  ------------------
  826|      0|    width -= 2;
  827|       |
  828|  70.1k|  if(is_neg || (flags & FLAGS_SHOWSIGN) || (flags & FLAGS_SPACE))
  ------------------
  |  Branch (828:6): [True: 0, False: 70.1k]
  |  Branch (828:16): [True: 0, False: 70.1k]
  |  Branch (828:44): [True: 0, False: 70.1k]
  ------------------
  829|      0|    --width;
  830|       |
  831|  70.1k|  if(!(flags & FLAGS_LEFT) && !(flags & FLAGS_PAD_NIL))
  ------------------
  |  Branch (831:6): [True: 70.1k, False: 0]
  |  Branch (831:31): [True: 70.1k, False: 0]
  ------------------
  832|  70.1k|    while(width-- > 0)
  ------------------
  |  Branch (832:11): [True: 0, False: 70.1k]
  ------------------
  833|      0|      OUTCHAR(' ');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  834|       |
  835|  70.1k|  if(is_neg)
  ------------------
  |  Branch (835:6): [True: 0, False: 70.1k]
  ------------------
  836|      0|    OUTCHAR('-');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  837|  70.1k|  else if(flags & FLAGS_SHOWSIGN)
  ------------------
  |  Branch (837:11): [True: 0, False: 70.1k]
  ------------------
  838|      0|    OUTCHAR('+');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  839|  70.1k|  else if(flags & FLAGS_SPACE)
  ------------------
  |  Branch (839:11): [True: 0, False: 70.1k]
  ------------------
  840|      0|    OUTCHAR(' ');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  841|       |
  842|  70.1k|  if(is_alt && base == 16) {
  ------------------
  |  Branch (842:6): [True: 0, False: 70.1k]
  |  Branch (842:16): [True: 0, False: 0]
  ------------------
  843|      0|    OUTCHAR('0');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  844|      0|    if(flags & FLAGS_UPPER)
  ------------------
  |  Branch (844:8): [True: 0, False: 0]
  ------------------
  845|      0|      OUTCHAR('X');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  846|      0|    else
  847|      0|      OUTCHAR('x');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  848|      0|  }
  849|       |
  850|  70.1k|  if(!(flags & FLAGS_LEFT) && (flags & FLAGS_PAD_NIL))
  ------------------
  |  Branch (850:6): [True: 70.1k, False: 0]
  |  Branch (850:31): [True: 0, False: 70.1k]
  ------------------
  851|      0|    while(width-- > 0)
  ------------------
  |  Branch (851:11): [True: 0, False: 0]
  ------------------
  852|      0|      OUTCHAR('0');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  853|       |
  854|       |  /* Write the number. */
  855|   195k|  while(++w <= workend) {
  ------------------
  |  Branch (855:9): [True: 125k, False: 70.1k]
  ------------------
  856|   125k|    OUTCHAR(*w);
  ------------------
  |  |   43|   125k|  do {                                    \
  |  |   44|   125k|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 3, False: 125k]
  |  |  ------------------
  |  |   45|   125k|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      3|#define TRUE true
  |  |  ------------------
  |  |   46|   125k|    (*donep)++;                           \
  |  |   47|   125k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 125k]
  |  |  ------------------
  ------------------
  857|   125k|  }
  858|       |
  859|  70.1k|  if(flags & FLAGS_LEFT)
  ------------------
  |  Branch (859:6): [True: 0, False: 70.1k]
  ------------------
  860|      0|    while(width-- > 0)
  ------------------
  |  Branch (860:11): [True: 0, False: 0]
  ------------------
  861|      0|      OUTCHAR(' ');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  862|       |
  863|  70.1k|  return FALSE;
  ------------------
  |  | 1058|  70.1k|#define FALSE false
  ------------------
  864|  70.1k|}
mprintf.c:out_string:
  873|   363k|{
  874|   363k|  int flags = p->flags;
  875|   363k|  int width = p->width;
  876|   363k|  int prec = p->prec;
  877|   363k|  size_t len;
  878|       |
  879|   363k|  if(!str) {
  ------------------
  |  Branch (879:6): [True: 0, False: 363k]
  ------------------
  880|       |    /* Write null string if there is space. */
  881|      0|    if(prec == -1 || prec >= (int)sizeof(nilstr) - 1) {
  ------------------
  |  Branch (881:8): [True: 0, False: 0]
  |  Branch (881:22): [True: 0, False: 0]
  ------------------
  882|      0|      str = nilstr;
  883|      0|      len = sizeof(nilstr) - 1;
  884|       |      /* Disable quotes around (nil) */
  885|      0|      flags &= ~(unsigned int)FLAGS_ALT;
  886|      0|    }
  887|      0|    else {
  888|      0|      str = "";
  889|      0|      len = 0;
  890|      0|    }
  891|      0|  }
  892|   363k|  else if(prec != -1)
  ------------------
  |  Branch (892:11): [True: 0, False: 363k]
  ------------------
  893|      0|    len = (size_t)prec;
  894|   363k|  else if(*str == '\0')
  ------------------
  |  Branch (894:11): [True: 205k, False: 157k]
  ------------------
  895|   205k|    len = 0;
  896|   157k|  else
  897|   157k|    len = strlen(str);
  898|       |
  899|   363k|  width -= (len > INT_MAX) ? INT_MAX : (int)len;
  ------------------
  |  Branch (899:12): [True: 0, False: 363k]
  ------------------
  900|       |
  901|   363k|  if(flags & FLAGS_ALT)
  ------------------
  |  Branch (901:6): [True: 0, False: 363k]
  ------------------
  902|      0|    OUTCHAR('"');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  903|       |
  904|   363k|  if(!(flags & FLAGS_LEFT))
  ------------------
  |  Branch (904:6): [True: 363k, False: 0]
  ------------------
  905|   363k|    while(width-- > 0)
  ------------------
  |  Branch (905:11): [True: 0, False: 363k]
  ------------------
  906|      0|      OUTCHAR(' ');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  907|       |
  908|  3.86M|  for(; len && *str; len--)
  ------------------
  |  Branch (908:9): [True: 3.50M, False: 363k]
  |  Branch (908:16): [True: 3.50M, False: 0]
  ------------------
  909|  3.50M|    OUTCHAR(*str++);
  ------------------
  |  |   43|  3.86M|  do {                                    \
  |  |   44|  3.50M|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 4, False: 3.50M]
  |  |  ------------------
  |  |   45|  3.50M|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      4|#define TRUE true
  |  |  ------------------
  |  |   46|  3.50M|    (*donep)++;                           \
  |  |   47|  3.50M|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 3.50M]
  |  |  ------------------
  ------------------
  910|   363k|  if(flags & FLAGS_LEFT)
  ------------------
  |  Branch (910:6): [True: 0, False: 363k]
  ------------------
  911|      0|    while(width-- > 0)
  ------------------
  |  Branch (911:11): [True: 0, False: 0]
  ------------------
  912|      0|      OUTCHAR(' ');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  913|       |
  914|   363k|  if(flags & FLAGS_ALT)
  ------------------
  |  Branch (914:6): [True: 0, False: 363k]
  ------------------
  915|      0|    OUTCHAR('"');
  ------------------
  |  |   43|      0|  do {                                    \
  |  |   44|      0|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  916|       |
  917|   363k|  return FALSE;
  ------------------
  |  | 1058|   363k|#define FALSE false
  ------------------
  918|   363k|}
mprintf.c:addbyter:
 1093|   335k|{
 1094|   335k|  struct nsprintf *infop = f;
 1095|   335k|  if(infop->length < infop->max) {
  ------------------
  |  Branch (1095:6): [True: 335k, False: 0]
  ------------------
 1096|       |    /* only do this if we have not reached max length yet */
 1097|   335k|    *infop->buffer++ = (char)outc; /* store */
 1098|   335k|    infop->length++; /* we are now one byte larger */
 1099|   335k|    return 0;     /* fputc() returns like this on success */
 1100|   335k|  }
 1101|      0|  return 1;
 1102|   335k|}
mprintf.c:alloc_addbyter:
 1141|  3.77M|{
 1142|  3.77M|  struct asprintf *infop = f;
 1143|  3.77M|  CURLcode result = curlx_dyn_addn(infop->b, &outc, 1);
 1144|  3.77M|  if(result) {
  ------------------
  |  Branch (1144:6): [True: 9, False: 3.77M]
  ------------------
 1145|      9|    infop->merr = result == CURLE_TOO_LARGE ? MERR_TOO_LARGE : MERR_MEM;
  ------------------
  |  |   29|      9|#define MERR_TOO_LARGE 2
  ------------------
                  infop->merr = result == CURLE_TOO_LARGE ? MERR_TOO_LARGE : MERR_MEM;
  ------------------
  |  |   28|      9|#define MERR_MEM       1
  ------------------
  |  Branch (1145:19): [True: 9, False: 0]
  ------------------
 1146|      9|    return 1; /* fail */
 1147|      9|  }
 1148|  3.77M|  return 0;
 1149|  3.77M|}
mprintf.c:fputc_wrapper:
 1214|  2.70k|{
 1215|  2.70k|  int out = outc;
 1216|  2.70k|  FILE *s = f;
 1217|  2.70k|  int rc = fputc(out, s);
 1218|       |  return rc == EOF;
 1219|  2.70k|}

Curl_multi_handle:
  232|  7.82k|{
  233|  7.82k|  struct Curl_multi *multi = curlx_calloc(1, sizeof(struct Curl_multi));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  234|       |
  235|  7.82k|  if(!multi)
  ------------------
  |  Branch (235:6): [True: 0, False: 7.82k]
  ------------------
  236|      0|    return NULL;
  237|       |
  238|  7.82k|  multi->magic = CURL_MULTI_HANDLE;
  ------------------
  |  |   75|  7.82k|#define CURL_MULTI_HANDLE 0x000bab1e
  ------------------
  239|       |
  240|  7.82k|  Curl_dnscache_init(&multi->dnscache, dnssize);
  241|  7.82k|  Curl_mntfy_init(multi);
  242|  7.82k|  Curl_multi_ev_init(multi, ev_hashsize);
  243|  7.82k|  Curl_uint32_tbl_init(&multi->xfers, NULL);
  244|  7.82k|  Curl_uint32_bset_init(&multi->process);
  245|  7.82k|  Curl_uint32_bset_init(&multi->dirty);
  246|  7.82k|  Curl_uint32_bset_init(&multi->pending);
  247|  7.82k|  Curl_uint32_bset_init(&multi->msgsent);
  248|  7.82k|  Curl_hash_init(&multi->proto_hash, 23,
  249|  7.82k|                 Curl_hash_str, curlx_str_key_compare, ph_freeentry);
  250|  7.82k|  Curl_llist_init(&multi->msglist, NULL);
  251|       |
  252|  7.82k|  multi->multiplexing = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  253|  7.82k|  multi->max_concurrent_streams = 100;
  254|  7.82k|  multi->last_timeout_ms = -1;
  255|  7.82k|#ifdef ENABLE_WAKEUP
  256|  7.82k|  multi->wakeup_pair[0] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  7.82k|#define CURL_SOCKET_BAD (-1)
  ------------------
  257|  7.82k|  multi->wakeup_pair[1] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  7.82k|#define CURL_SOCKET_BAD (-1)
  ------------------
  258|  7.82k|#endif
  259|       |
  260|  7.82k|  if(Curl_mntfy_resize(multi) ||
  ------------------
  |  Branch (260:6): [True: 0, False: 7.82k]
  ------------------
  261|  7.82k|     Curl_uint32_bset_resize(&multi->process, xfer_table_size) ||
  ------------------
  |  Branch (261:6): [True: 0, False: 7.82k]
  ------------------
  262|  7.82k|     Curl_uint32_bset_resize(&multi->pending, xfer_table_size) ||
  ------------------
  |  Branch (262:6): [True: 0, False: 7.82k]
  ------------------
  263|  7.82k|     Curl_uint32_bset_resize(&multi->dirty, xfer_table_size) ||
  ------------------
  |  Branch (263:6): [True: 0, False: 7.82k]
  ------------------
  264|  7.82k|     Curl_uint32_bset_resize(&multi->msgsent, xfer_table_size) ||
  ------------------
  |  Branch (264:6): [True: 0, False: 7.82k]
  ------------------
  265|  7.82k|     Curl_uint32_tbl_resize(&multi->xfers, xfer_table_size))
  ------------------
  |  Branch (265:6): [True: 0, False: 7.82k]
  ------------------
  266|      0|    goto error;
  267|       |
  268|  7.82k|  multi->admin = curl_easy_init();
  269|  7.82k|  if(!multi->admin)
  ------------------
  |  Branch (269:6): [True: 0, False: 7.82k]
  ------------------
  270|      0|    goto error;
  271|       |  /* Initialize admin handle to operate inside this multi */
  272|  7.82k|  multi->admin->multi = multi;
  273|  7.82k|  multi->admin->state.internal = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  274|  7.82k|  Curl_llist_init(&multi->admin->state.timeoutlist, NULL);
  275|       |
  276|  7.82k|#ifdef DEBUGBUILD
  277|  7.82k|  if(getenv("CURL_DEBUG"))
  ------------------
  |  Branch (277:6): [True: 0, False: 7.82k]
  ------------------
  278|      0|    multi->admin->set.verbose = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  279|  7.82k|#endif
  280|  7.82k|  Curl_uint32_tbl_add(&multi->xfers, multi->admin, &multi->admin->mid);
  281|  7.82k|  Curl_uint32_bset_add(&multi->process, multi->admin->mid);
  282|       |
  283|  7.82k|  if(Curl_cshutdn_init(&multi->cshutdn, multi))
  ------------------
  |  Branch (283:6): [True: 0, False: 7.82k]
  ------------------
  284|      0|    goto error;
  285|       |
  286|  7.82k|  Curl_cpool_init(&multi->cpool, multi->admin, NULL, chashsize);
  287|       |
  288|  7.82k|#ifdef USE_SSL
  289|  7.82k|  if(Curl_ssl_scache_create(sesssize, 2, &multi->ssl_scache))
  ------------------
  |  Branch (289:6): [True: 0, False: 7.82k]
  ------------------
  290|      0|    goto error;
  291|       |#else
  292|       |  (void)sesssize;
  293|       |#endif
  294|       |
  295|       |#ifdef USE_WINSOCK
  296|       |  multi->wsa_event = WSACreateEvent();
  297|       |  if(multi->wsa_event == WSA_INVALID_EVENT)
  298|       |    goto error;
  299|       |#endif
  300|  7.82k|#ifdef ENABLE_WAKEUP
  301|       |  /* When enabled, rely on this to work. We ignore this in previous
  302|       |   * versions, but that seems an unnecessary complication. */
  303|  7.82k|  if(Curl_wakeup_init(multi->wakeup_pair, TRUE) < 0)
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  |  Branch (303:6): [True: 0, False: 7.82k]
  ------------------
  304|      0|    goto error;
  305|  7.82k|#endif
  306|       |
  307|  7.82k|  if(Curl_probeipv6(multi))
  ------------------
  |  Branch (307:6): [True: 0, False: 7.82k]
  ------------------
  308|      0|    goto error;
  309|       |
  310|  7.82k|#ifdef USE_RESOLV_THREADED
  311|  7.82k|  if(xfer_table_size < CURL_XFER_TABLE_SIZE) { /* easy multi */
  ------------------
  |  |   52|  7.82k|#define CURL_XFER_TABLE_SIZE 512
  ------------------
  |  Branch (311:6): [True: 0, False: 7.82k]
  ------------------
  312|      0|    if(Curl_async_thrdd_multi_init(multi, 0, 2, 10))
  ------------------
  |  Branch (312:8): [True: 0, False: 0]
  ------------------
  313|      0|      goto error;
  314|      0|  }
  315|  7.82k|  else { /* real multi handle */
  316|  7.82k|    if(Curl_async_thrdd_multi_init(multi, 0, 20, 2000))
  ------------------
  |  Branch (316:8): [True: 0, False: 7.82k]
  ------------------
  317|      0|      goto error;
  318|  7.82k|  }
  319|  7.82k|#endif
  320|       |
  321|  7.82k|  return multi;
  322|       |
  323|      0|error:
  324|       |
  325|      0|#ifdef USE_RESOLV_THREADED
  326|      0|  Curl_async_thrdd_multi_destroy(multi, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  327|      0|#endif
  328|      0|  Curl_multi_ev_cleanup(multi);
  329|      0|  Curl_hash_destroy(&multi->proto_hash);
  330|      0|  Curl_dnscache_destroy(&multi->dnscache);
  331|      0|  Curl_cpool_destroy(&multi->cpool);
  332|      0|  Curl_cshutdn_destroy(&multi->cshutdn, multi->admin);
  333|      0|#ifdef USE_SSL
  334|      0|  Curl_ssl_scache_destroy(multi->ssl_scache);
  335|      0|#endif
  336|      0|  if(multi->admin) {
  ------------------
  |  Branch (336:6): [True: 0, False: 0]
  ------------------
  337|      0|    Curl_multi_ev_xfer_done(multi, multi->admin);
  338|      0|    multi->admin->multi = NULL;
  339|      0|    Curl_close(&multi->admin);
  340|      0|  }
  341|      0|  Curl_mntfy_cleanup(multi);
  342|       |
  343|      0|  Curl_uint32_bset_destroy(&multi->process);
  344|      0|  Curl_uint32_bset_destroy(&multi->dirty);
  345|      0|  Curl_uint32_bset_destroy(&multi->pending);
  346|      0|  Curl_uint32_bset_destroy(&multi->msgsent);
  347|      0|  Curl_uint32_tbl_destroy(&multi->xfers);
  348|      0|#ifdef ENABLE_WAKEUP
  349|      0|  Curl_wakeup_destroy(multi->wakeup_pair);
  350|      0|#endif
  351|       |
  352|      0|  curlx_free(multi);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  353|       |  return NULL;
  354|  7.82k|}
curl_multi_init:
  357|  7.82k|{
  358|  7.82k|  return Curl_multi_handle(CURL_XFER_TABLE_SIZE,
  ------------------
  |  |   52|  7.82k|#define CURL_XFER_TABLE_SIZE 512
  ------------------
  359|  7.82k|                           CURL_SOCKET_HASH_TABLE_SIZE,
  ------------------
  |  |   60|  7.82k|#define CURL_SOCKET_HASH_TABLE_SIZE 911
  ------------------
  360|  7.82k|                           CURL_CONNECTION_HASH_SIZE,
  ------------------
  |  |   64|  7.82k|#define CURL_CONNECTION_HASH_SIZE 97
  ------------------
  361|  7.82k|                           CURL_DNS_HASH_SIZE,
  ------------------
  |  |   68|  7.82k|#define CURL_DNS_HASH_SIZE 71
  ------------------
  362|  7.82k|                           CURL_TLS_SESSION_SIZE);
  ------------------
  |  |   72|  7.82k|#define CURL_TLS_SESSION_SIZE 25
  ------------------
  363|  7.82k|}
Curl_is_connecting:
  380|   311k|{
  381|   311k|  return data->mstate < MSTATE_DO;
  382|   311k|}
curl_multi_add_handle:
  455|  7.82k|{
  456|  7.82k|  CURLMcode mresult;
  457|  7.82k|  struct Curl_multi *multi = m;
  458|  7.82k|  struct Curl_easy *data = curl;
  459|       |
  460|       |  /* First, make some basic checks that the CURLM handle is a good handle */
  461|  7.82k|  if(!GOOD_MULTI_HANDLE(multi))
  ------------------
  |  |   82|  7.82k|  (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  |   75|  7.82k|#define CURL_MULTI_HANDLE 0x000bab1e
  |  |  ------------------
  |  |                 (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (82:5): [True: 7.82k, False: 0]
  |  |  |  Branch (82:12): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |   83|  7.82k|  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                 (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (461:6): [True: 0, False: 7.82k]
  |  Branch (461:7): [True: 0, False: 0]
  |  Branch (461:7): [True: 0, False: 0]
  ------------------
  462|      0|    return CURLM_BAD_HANDLE;
  463|       |
  464|       |  /* Verify that we got a somewhat good easy handle too */
  465|  7.82k|  if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |  136|  7.82k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  7.82k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 7.82k, False: 0]
  |  |  |  Branch (136:12): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |  137|  7.82k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (465:6): [True: 0, False: 7.82k]
  |  Branch (465:7): [True: 0, False: 0]
  |  Branch (465:7): [True: 0, False: 0]
  ------------------
  466|      0|    return CURLM_BAD_EASY_HANDLE;
  467|       |
  468|       |  /* Prevent users from adding same easy handle more than once and prevent
  469|       |     adding to more than one multi stack */
  470|  7.82k|  if(data->multi)
  ------------------
  |  Branch (470:6): [True: 0, False: 7.82k]
  ------------------
  471|      0|    return CURLM_ADDED_ALREADY;
  472|       |
  473|  7.82k|  if(multi->in_callback)
  ------------------
  |  Branch (473:6): [True: 0, False: 7.82k]
  ------------------
  474|      0|    return CURLM_RECURSIVE_API_CALL;
  475|       |
  476|  7.82k|  if(multi->dead) {
  ------------------
  |  Branch (476:6): [True: 0, False: 7.82k]
  ------------------
  477|       |    /* a "dead" handle cannot get added transfers while any existing easy
  478|       |       handles are still alive - but if there are none alive anymore, it is
  479|       |       fine to start over and unmark the "deadness" of this handle.
  480|       |       This means only the admin handle MUST be present. */
  481|      0|    if((Curl_uint32_tbl_count(&multi->xfers) != 1) ||
  ------------------
  |  Branch (481:8): [True: 0, False: 0]
  ------------------
  482|      0|       !Curl_uint32_tbl_contains(&multi->xfers, 0))
  ------------------
  |  Branch (482:8): [True: 0, False: 0]
  ------------------
  483|      0|      return CURLM_ABORTED_BY_CALLBACK;
  484|      0|    multi->dead = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  485|      0|    Curl_uint32_bset_clear(&multi->process);
  486|      0|    Curl_uint32_bset_clear(&multi->dirty);
  487|      0|    Curl_uint32_bset_clear(&multi->pending);
  488|      0|    Curl_uint32_bset_clear(&multi->msgsent);
  489|      0|  }
  490|       |
  491|  7.82k|  if(data->multi_easy) {
  ------------------
  |  Branch (491:6): [True: 0, False: 7.82k]
  ------------------
  492|       |    /* if this easy handle was previously used for curl_easy_perform(), there
  493|       |       is a private multi handle here that we can kill */
  494|      0|    curl_multi_cleanup(data->multi_easy);
  495|      0|    data->multi_easy = NULL;
  496|      0|  }
  497|       |
  498|       |  /* Insert the easy into the multi->xfers table, assigning it a `mid`. */
  499|  7.82k|  if(multi_xfers_add(multi, data))
  ------------------
  |  Branch (499:6): [True: 0, False: 7.82k]
  ------------------
  500|      0|    return CURLM_OUT_OF_MEMORY;
  501|       |
  502|       |  /* Initialize timeout list for this handle */
  503|  7.82k|  Curl_llist_init(&data->state.timeoutlist, NULL);
  504|       |
  505|       |  /*
  506|       |   * No failure allowed in this function beyond this point. No modification of
  507|       |   * easy nor multi handle allowed before this except for potential multi's
  508|       |   * connection pool growing which will not be undone in this function no
  509|       |   * matter what.
  510|       |   */
  511|  7.82k|  if(data->set.errorbuffer)
  ------------------
  |  Branch (511:6): [True: 0, False: 7.82k]
  ------------------
  512|      0|    data->set.errorbuffer[0] = 0;
  513|       |
  514|  7.82k|  data->state.os_errno = 0;
  515|       |
  516|       |  /* make the Curl_easy refer back to this multi handle - before Curl_expire()
  517|       |     is called. */
  518|  7.82k|  data->multi = multi;
  519|       |
  520|       |  /* set the easy handle */
  521|  7.82k|  multistate(data, MSTATE_INIT);
  ------------------
  |  |  200|  7.82k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
  522|       |
  523|       |#ifdef USE_LIBPSL
  524|       |  /* Do the same for PSL. */
  525|       |  if(data->share && (data->share->specifier & (1 << CURL_LOCK_DATA_PSL)))
  526|       |    data->psl = &data->share->psl;
  527|       |  else
  528|       |    data->psl = &multi->psl;
  529|       |#endif
  530|       |
  531|       |  /* add the easy handle to the process set */
  532|  7.82k|  Curl_uint32_bset_add(&multi->process, data->mid);
  533|  7.82k|  ++multi->xfers_alive;
  534|  7.82k|  ++multi->xfers_total_ever;
  535|       |
  536|  7.82k|  Curl_cpool_xfer_init(data);
  537|  7.82k|  multi_warn_debug(multi, data);
  538|       |
  539|       |  /* Make sure the new handle will run */
  540|  7.82k|  Curl_multi_mark_dirty(data);
  541|       |
  542|       |  /* Necessary in event based processing, where dirty handles trigger
  543|       |   * a timeout callback invocation. */
  544|  7.82k|  mresult = Curl_update_timer(multi);
  545|  7.82k|  if(mresult) {
  ------------------
  |  Branch (545:6): [True: 0, False: 7.82k]
  ------------------
  546|      0|    data->multi = NULL; /* not anymore */
  547|      0|    Curl_uint32_tbl_remove(&multi->xfers, data->mid);
  548|      0|    data->mid = UINT32_MAX;
  549|      0|    return mresult;
  550|      0|  }
  551|       |
  552|       |  /* The admin handle only ever has default timeouts set. To improve the
  553|       |     state somewhat we clone the timeouts from each added handle so that the
  554|       |     admin handle always has the same timeouts as the most recently added
  555|       |     easy handle. */
  556|  7.82k|  multi->admin->set.timeout = data->set.timeout;
  557|  7.82k|  multi->admin->set.server_response_timeout =
  558|  7.82k|    data->set.server_response_timeout;
  559|  7.82k|  multi->admin->set.no_signal = data->set.no_signal;
  560|       |
  561|  7.82k|  mresult = multi_assess_wakeup(multi);
  562|  7.82k|  if(mresult) {
  ------------------
  |  Branch (562:6): [True: 0, False: 7.82k]
  ------------------
  563|      0|    failf(data, "error enabling wakeup listening: %d", mresult);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  564|      0|    return mresult;
  565|      0|  }
  566|       |
  567|  7.82k|  CURL_TRC_M(data, "added to multi, mid=%u, running=%u, total=%u",
  ------------------
  |  |  148|  7.82k|  do {                                   \
  |  |  149|  7.82k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.82k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.82k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.82k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.82k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  568|  7.82k|             data->mid, Curl_multi_xfers_running(multi),
  569|  7.82k|             Curl_uint32_tbl_count(&multi->xfers));
  570|  7.82k|  return CURLM_OK;
  571|  7.82k|}
curl_multi_remove_handle:
  777|  7.82k|{
  778|  7.82k|  struct Curl_multi *multi = m;
  779|  7.82k|  struct Curl_easy *data = curl;
  780|  7.82k|  bool premature;
  781|  7.82k|  struct Curl_llist_node *e;
  782|  7.82k|  CURLMcode mresult;
  783|  7.82k|  uint32_t mid;
  784|       |
  785|       |  /* First, make some basic checks that the CURLM handle is a good handle */
  786|  7.82k|  if(!GOOD_MULTI_HANDLE(multi))
  ------------------
  |  |   82|  7.82k|  (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  |   75|  7.82k|#define CURL_MULTI_HANDLE 0x000bab1e
  |  |  ------------------
  |  |                 (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (82:5): [True: 7.82k, False: 0]
  |  |  |  Branch (82:12): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |   83|  7.82k|  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                 (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (786:6): [True: 0, False: 7.82k]
  |  Branch (786:7): [True: 0, False: 0]
  |  Branch (786:7): [True: 0, False: 0]
  ------------------
  787|      0|    return CURLM_BAD_HANDLE;
  788|       |
  789|       |  /* Verify that we got a somewhat good easy handle too */
  790|  7.82k|  if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |  136|  7.82k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  7.82k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 7.82k, False: 0]
  |  |  |  Branch (136:12): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |  137|  7.82k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (790:6): [True: 0, False: 7.82k]
  |  Branch (790:7): [True: 0, False: 0]
  |  Branch (790:7): [True: 0, False: 0]
  ------------------
  791|      0|    return CURLM_BAD_EASY_HANDLE;
  792|       |
  793|       |  /* Prevent users from trying to remove same easy handle more than once */
  794|  7.82k|  if(!data->multi)
  ------------------
  |  Branch (794:6): [True: 0, False: 7.82k]
  ------------------
  795|      0|    return CURLM_OK; /* it is already removed so let's say it is fine! */
  796|       |
  797|       |  /* Prevent users from trying to remove an easy handle from the wrong multi */
  798|  7.82k|  if(data->multi != multi)
  ------------------
  |  Branch (798:6): [True: 0, False: 7.82k]
  ------------------
  799|      0|    return CURLM_BAD_EASY_HANDLE;
  800|       |
  801|  7.82k|  if(data->mid == UINT32_MAX) {
  ------------------
  |  Branch (801:6): [True: 0, False: 7.82k]
  ------------------
  802|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (802:5): [Folded, False: 0]
  |  Branch (802:5): [Folded, False: 0]
  ------------------
  803|      0|    return CURLM_INTERNAL_ERROR;
  804|      0|  }
  805|  7.82k|  if(Curl_uint32_tbl_get(&multi->xfers, data->mid) != data) {
  ------------------
  |  Branch (805:6): [True: 0, False: 7.82k]
  ------------------
  806|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (806:5): [Folded, False: 0]
  |  Branch (806:5): [Folded, False: 0]
  ------------------
  807|      0|    return CURLM_INTERNAL_ERROR;
  808|      0|  }
  809|       |
  810|  7.82k|  if(multi->in_callback)
  ------------------
  |  Branch (810:6): [True: 0, False: 7.82k]
  ------------------
  811|      0|    return CURLM_RECURSIVE_API_CALL;
  812|       |
  813|  7.82k|  premature = (data->mstate < MSTATE_COMPLETED);
  814|       |
  815|       |  /* If the 'state' is not INIT or COMPLETED, we might need to do something
  816|       |     nice to put the easy_handle in a good known state when this returns. */
  817|  7.82k|  if(data->conn &&
  ------------------
  |  Branch (817:6): [True: 408, False: 7.41k]
  ------------------
  818|    408|     data->mstate > MSTATE_DO &&
  ------------------
  |  Branch (818:6): [True: 408, False: 0]
  ------------------
  819|    408|     data->mstate < MSTATE_COMPLETED) {
  ------------------
  |  Branch (819:6): [True: 18, False: 390]
  ------------------
  820|       |    /* Set connection owner so that the DONE function closes it. We can
  821|       |       safely do this here since connection is killed. */
  822|     18|    streamclose(data->conn, "Removed with partial response");
  ------------------
  |  |  102|     18|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|     18|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
  823|     18|  }
  824|       |
  825|  7.82k|  if(data->conn) {
  ------------------
  |  Branch (825:6): [True: 408, False: 7.41k]
  ------------------
  826|       |    /* multi_done() clears the association between the easy handle and the
  827|       |       connection.
  828|       |
  829|       |       Note that this ignores the return code because there is
  830|       |       nothing really useful to do with it anyway! */
  831|    408|    (void)multi_done(data, data->result, premature);
  832|    408|  }
  833|       |
  834|       |  /* The timer must be shut down before data->multi is set to NULL, else the
  835|       |     timenode will remain in the splay tree after curl_easy_cleanup is
  836|       |     called. Do it after multi_done() in case that sets another time! */
  837|  7.82k|  Curl_expire_clear(data);
  838|       |
  839|       |  /* If in `msgsent`, it was deducted from `multi->xfers_alive` already. */
  840|  7.82k|  if(!Curl_uint32_bset_contains(&multi->msgsent, data->mid))
  ------------------
  |  Branch (840:6): [True: 18, False: 7.80k]
  ------------------
  841|     18|    --multi->xfers_alive;
  842|       |
  843|  7.82k|  Curl_wildcard_dtor(&data->wildcard);
  844|       |
  845|  7.82k|  data->mstate = MSTATE_COMPLETED;
  846|       |
  847|       |  /* Remove the association between the connection and the handle */
  848|  7.82k|  Curl_detach_connection(data);
  849|       |
  850|       |  /* Tell event handling that this transfer is definitely going away */
  851|  7.82k|  Curl_multi_ev_xfer_done(multi, data);
  852|       |
  853|  7.82k|  if(data->set.connect_only && !data->multi_easy) {
  ------------------
  |  Branch (853:6): [True: 458, False: 7.36k]
  |  Branch (853:32): [True: 458, False: 0]
  ------------------
  854|       |    /* This removes a handle that was part the multi interface that used
  855|       |       CONNECT_ONLY, that connection is now left alive but since this handle
  856|       |       has bits.close set nothing can use that transfer anymore and it is
  857|       |       forbidden from reuse. This easy handle cannot find the connection
  858|       |       anymore once removed from the multi handle
  859|       |
  860|       |       Better close the connection here, at once.
  861|       |    */
  862|    458|    struct connectdata *c;
  863|    458|    curl_socket_t s;
  864|    458|    s = Curl_getconnectinfo(data, &c);
  865|    458|    if((s != CURL_SOCKET_BAD) && c) {
  ------------------
  |  |  145|    458|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (865:8): [True: 407, False: 51]
  |  Branch (865:34): [True: 407, False: 0]
  ------------------
  866|    407|      Curl_conn_terminate(data, c, TRUE);
  ------------------
  |  | 1055|    407|#define TRUE true
  ------------------
  867|    407|    }
  868|    458|  }
  869|       |
  870|  7.82k|  if(data->state.lastconnect_id != -1) {
  ------------------
  |  Branch (870:6): [True: 1.85k, False: 5.97k]
  ------------------
  871|       |    /* Mark any connect-only connection for closure */
  872|  1.85k|    Curl_cpool_do_by_id(data, data->state.lastconnect_id,
  873|  1.85k|                        close_connect_only, NULL);
  874|  1.85k|  }
  875|       |
  876|       |#ifdef USE_LIBPSL
  877|       |  /* Remove the PSL association. */
  878|       |  if(data->psl == &multi->psl)
  879|       |    data->psl = NULL;
  880|       |#endif
  881|       |
  882|       |  /* make sure there is no pending message in the queue sent from this easy
  883|       |     handle */
  884|  7.82k|  for(e = Curl_llist_head(&multi->msglist); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (884:45): [True: 7.80k, False: 18]
  ------------------
  885|  7.80k|    struct Curl_message *msg = Curl_node_elem(e);
  886|       |
  887|  7.80k|    if(msg->extmsg.easy_handle == data) {
  ------------------
  |  Branch (887:8): [True: 7.80k, False: 0]
  ------------------
  888|  7.80k|      Curl_node_remove(e);
  889|       |      /* there can only be one from this specific handle */
  890|  7.80k|      break;
  891|  7.80k|    }
  892|  7.80k|  }
  893|       |
  894|       |  /* clear the association to this multi handle */
  895|  7.82k|  mid = data->mid;
  896|  7.82k|  DEBUGASSERT(Curl_uint32_tbl_contains(&multi->xfers, mid));
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (896:3): [True: 0, False: 7.82k]
  |  Branch (896:3): [True: 7.82k, False: 0]
  ------------------
  897|  7.82k|  Curl_uint32_tbl_remove(&multi->xfers, mid);
  898|  7.82k|  Curl_uint32_bset_remove(&multi->process, mid);
  899|  7.82k|  Curl_uint32_bset_remove(&multi->dirty, mid);
  900|  7.82k|  Curl_uint32_bset_remove(&multi->pending, mid);
  901|  7.82k|  Curl_uint32_bset_remove(&multi->msgsent, mid);
  902|  7.82k|  data->multi = NULL;
  903|  7.82k|  data->mid = UINT32_MAX;
  904|  7.82k|  data->master_mid = UINT32_MAX;
  905|       |
  906|       |  /* NOTE NOTE NOTE
  907|       |     We do not touch the easy handle here! */
  908|  7.82k|  process_pending_handles(multi);
  909|       |
  910|  7.82k|  mresult = Curl_update_timer(multi);
  911|  7.82k|  if(mresult)
  ------------------
  |  Branch (911:6): [True: 0, False: 7.82k]
  ------------------
  912|      0|    return mresult;
  913|       |
  914|  7.82k|  mresult = multi_assess_wakeup(multi);
  915|  7.82k|  if(mresult) {
  ------------------
  |  Branch (915:6): [True: 0, False: 7.82k]
  ------------------
  916|      0|    failf(data, "error enabling wakeup listening: %d", mresult);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  917|      0|    return mresult;
  918|      0|  }
  919|       |
  920|  7.82k|  CURL_TRC_M(data, "removed from multi, mid=%u, running=%u, total=%u",
  ------------------
  |  |  148|  7.82k|  do {                                   \
  |  |  149|  7.82k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.82k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.82k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.82k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.82k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  921|  7.82k|             mid, Curl_multi_xfers_running(multi),
  922|  7.82k|             Curl_uint32_tbl_count(&multi->xfers));
  923|  7.82k|  return CURLM_OK;
  924|  7.82k|}
Curl_multiplex_wanted:
  928|  9.87k|{
  929|  9.87k|  return multi && multi->multiplexing;
  ------------------
  |  Branch (929:10): [True: 9.87k, False: 0]
  |  Branch (929:19): [True: 9.87k, False: 0]
  ------------------
  930|  9.87k|}
Curl_detach_connection:
  939|  54.6k|{
  940|  54.6k|  struct connectdata *conn = data->conn;
  941|  54.6k|  if(conn) {
  ------------------
  |  Branch (941:6): [True: 23.7k, False: 30.8k]
  ------------------
  942|       |    /* this should never happen, prevent underflow */
  943|  23.7k|    DEBUGASSERT(conn->attached_xfers);
  ------------------
  |  | 1081|  23.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (943:5): [True: 0, False: 23.7k]
  |  Branch (943:5): [True: 23.7k, False: 0]
  ------------------
  944|  23.7k|    if(conn->attached_xfers) {
  ------------------
  |  Branch (944:8): [True: 23.7k, False: 0]
  ------------------
  945|  23.7k|      conn->attached_xfers--;
  946|  23.7k|      if(!conn->attached_xfers)
  ------------------
  |  Branch (946:10): [True: 23.7k, False: 0]
  ------------------
  947|  23.7k|        conn->attached_multi = NULL;
  948|  23.7k|    }
  949|  23.7k|  }
  950|  54.6k|  data->conn = NULL;
  951|  54.6k|}
Curl_attach_connection:
  960|  23.7k|{
  961|  23.7k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  23.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (961:3): [True: 0, False: 23.7k]
  |  Branch (961:3): [True: 23.7k, False: 0]
  ------------------
  962|  23.7k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1081|  23.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (962:3): [True: 0, False: 23.7k]
  |  Branch (962:3): [True: 23.7k, False: 0]
  ------------------
  963|  23.7k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  23.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (963:3): [True: 0, False: 23.7k]
  |  Branch (963:3): [True: 23.7k, False: 0]
  ------------------
  964|  23.7k|  DEBUGASSERT(conn->attached_xfers < UINT32_MAX);
  ------------------
  |  | 1081|  23.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (964:3): [True: 0, False: 23.7k]
  |  Branch (964:3): [True: 23.7k, False: 0]
  ------------------
  965|  23.7k|  data->conn = conn;
  966|  23.7k|  conn->attached_xfers++;
  967|       |  /* all attached transfers must be from the same multi */
  968|  23.7k|  if(!conn->attached_multi)
  ------------------
  |  Branch (968:6): [True: 23.7k, False: 0]
  ------------------
  969|  23.7k|    conn->attached_multi = data->multi;
  970|  23.7k|  DEBUGASSERT(conn->attached_multi == data->multi);
  ------------------
  |  | 1081|  23.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (970:3): [True: 0, False: 23.7k]
  |  Branch (970:3): [True: 23.7k, False: 0]
  ------------------
  971|       |
  972|  23.7k|  if(conn->scheme && conn->scheme->run->attach)
  ------------------
  |  Branch (972:6): [True: 23.7k, False: 0]
  |  Branch (972:22): [True: 0, False: 23.7k]
  ------------------
  973|      0|    conn->scheme->run->attach(data, conn);
  974|  23.7k|}
Curl_multi_pollset:
 1134|   229k|{
 1135|   229k|  CURLcode result = CURLE_OK;
 1136|       |
 1137|   229k|  Curl_pollset_reset(ps);
 1138|   229k|#ifdef ENABLE_WAKEUP
 1139|       |  /* The admin handle always listens on the wakeup socket when there
 1140|       |   * are transfers alive. */
 1141|   229k|  if(data->multi && (data == data->multi->admin) &&
  ------------------
  |  Branch (1141:6): [True: 229k, False: 0]
  |  Branch (1141:21): [True: 114k, False: 114k]
  ------------------
 1142|   114k|     data->multi->xfers_alive) {
  ------------------
  |  Branch (1142:6): [True: 114k, False: 0]
  ------------------
 1143|   114k|    result = Curl_pollset_add_in(data, ps, data->multi->wakeup_pair[0]);
  ------------------
  |  |  162|   114k|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, 0)
  |  |  ------------------
  |  |  |  |  283|   114k|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1144|   114k|  }
 1145|   229k|#endif
 1146|       |  /* If the transfer has no connection, this is fine. Happens when
 1147|       |     called via curl_multi_remove_handle() => Curl_multi_ev_assess() =>
 1148|       |     Curl_multi_pollset(). */
 1149|   229k|  if(!result && data->conn) {
  ------------------
  |  Branch (1149:6): [True: 229k, False: 0]
  |  Branch (1149:17): [True: 114k, False: 114k]
  ------------------
 1150|   114k|    switch(data->mstate) {
 1151|      0|    case MSTATE_INIT:
  ------------------
  |  Branch (1151:5): [True: 0, False: 114k]
  ------------------
 1152|      0|    case MSTATE_PENDING:
  ------------------
  |  Branch (1152:5): [True: 0, False: 114k]
  ------------------
 1153|      0|    case MSTATE_SETUP:
  ------------------
  |  Branch (1153:5): [True: 0, False: 114k]
  ------------------
 1154|      0|    case MSTATE_CONNECT:
  ------------------
  |  Branch (1154:5): [True: 0, False: 114k]
  ------------------
 1155|       |      /* nothing to poll for yet */
 1156|      0|      break;
 1157|       |
 1158|  4.13k|    case MSTATE_CONNECTING:
  ------------------
  |  Branch (1158:5): [True: 4.13k, False: 110k]
  ------------------
 1159|  4.13k|      if(data->conn && !data->conn->bits.dns_resolved)
  ------------------
  |  Branch (1159:10): [True: 4.13k, False: 0]
  |  Branch (1159:24): [True: 0, False: 4.13k]
  ------------------
 1160|      0|        result = Curl_resolv_pollset(data, ps);
 1161|  4.13k|      if(!result)
  ------------------
  |  Branch (1161:10): [True: 4.13k, False: 0]
  ------------------
 1162|  4.13k|        result = mstate_connecting_pollset(data, ps);
 1163|  4.13k|      break;
 1164|       |
 1165|      0|    case MSTATE_PROTOCONNECT:
  ------------------
  |  Branch (1165:5): [True: 0, False: 114k]
  ------------------
 1166|      0|    case MSTATE_PROTOCONNECTING:
  ------------------
  |  Branch (1166:5): [True: 0, False: 114k]
  ------------------
 1167|      0|      result = mstate_protocol_pollset(data, ps);
 1168|      0|      break;
 1169|       |
 1170|      0|    case MSTATE_DO:
  ------------------
  |  Branch (1170:5): [True: 0, False: 114k]
  ------------------
 1171|      0|    case MSTATE_DOING:
  ------------------
  |  Branch (1171:5): [True: 0, False: 114k]
  ------------------
 1172|      0|      result = mstate_do_pollset(data, ps);
 1173|      0|      break;
 1174|       |
 1175|      0|    case MSTATE_DOING_MORE:
  ------------------
  |  Branch (1175:5): [True: 0, False: 114k]
  ------------------
 1176|      0|      result = mstate_domore_pollset(data, ps);
 1177|      0|      break;
 1178|       |
 1179|      0|    case MSTATE_DID: /* same as PERFORMING in regard to polling */
  ------------------
  |  Branch (1179:5): [True: 0, False: 114k]
  ------------------
 1180|   110k|    case MSTATE_PERFORMING:
  ------------------
  |  Branch (1180:5): [True: 110k, False: 4.44k]
  ------------------
 1181|   110k|      result = mstate_perform_pollset(data, ps);
 1182|   110k|      break;
 1183|       |
 1184|    304|    case MSTATE_RATELIMITING:
  ------------------
  |  Branch (1184:5): [True: 304, False: 114k]
  ------------------
 1185|       |      /* we need to let time pass, ignore socket(s) */
 1186|    304|      break;
 1187|       |
 1188|      0|    case MSTATE_DONE:
  ------------------
  |  Branch (1188:5): [True: 0, False: 114k]
  ------------------
 1189|      0|    case MSTATE_COMPLETED:
  ------------------
  |  Branch (1189:5): [True: 0, False: 114k]
  ------------------
 1190|      0|    case MSTATE_MSGSENT:
  ------------------
  |  Branch (1190:5): [True: 0, False: 114k]
  ------------------
 1191|       |      /* nothing more to poll for */
 1192|      0|      break;
 1193|       |
 1194|      0|    default:
  ------------------
  |  Branch (1194:5): [True: 0, False: 114k]
  ------------------
 1195|      0|      failf(data, "multi_getsock: unexpected multi state %d", data->mstate);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1196|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1196:7): [Folded, False: 0]
  |  Branch (1196:7): [Folded, False: 0]
  ------------------
 1197|      0|      break;
 1198|   114k|    }
 1199|   114k|  }
 1200|       |
 1201|   229k|  if(result) {
  ------------------
  |  Branch (1201:6): [True: 0, False: 229k]
  ------------------
 1202|      0|    if(result == CURLE_OUT_OF_MEMORY)
  ------------------
  |  Branch (1202:8): [True: 0, False: 0]
  ------------------
 1203|      0|      return CURLM_OUT_OF_MEMORY;
 1204|      0|    failf(data, "error determining pollset: %d", result);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1205|      0|    return CURLM_INTERNAL_ERROR;
 1206|      0|  }
 1207|       |
 1208|   229k|#ifdef CURLVERBOSE
 1209|   229k|  if(CURL_TRC_M_is_verbose(data)) {
  ------------------
  |  |  135|   229k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  ------------------
  |  |  |  |  326|   229k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|   458k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 229k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 229k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|   458k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|   229k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1210|      0|    size_t timeout_count = Curl_llist_count(&data->state.timeoutlist);
 1211|      0|    switch(ps->n) {
 1212|      0|    case 0:
  ------------------
  |  Branch (1212:5): [True: 0, False: 0]
  ------------------
 1213|      0|      CURL_TRC_M(data, "pollset[], timeouts=%zu, paused %d/%d (r/w)",
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1214|      0|                 timeout_count,
 1215|      0|                 Curl_xfer_send_is_paused(data),
 1216|      0|                 Curl_xfer_recv_is_paused(data));
 1217|      0|      break;
 1218|      0|    case 1:
  ------------------
  |  Branch (1218:5): [True: 0, False: 0]
  ------------------
 1219|      0|      CURL_TRC_M(data, "pollset[fd=%" FMT_SOCKET_T " %s%s], timeouts=%zu",
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1220|      0|                 ps->sockets[0],
 1221|      0|                 (ps->actions[0] & CURL_POLL_IN) ? "IN" : "",
 1222|      0|                 (ps->actions[0] & CURL_POLL_OUT) ? "OUT" : "",
 1223|      0|                 timeout_count);
 1224|      0|      break;
 1225|      0|    case 2:
  ------------------
  |  Branch (1225:5): [True: 0, False: 0]
  ------------------
 1226|      0|      CURL_TRC_M(data, "pollset[fd=%" FMT_SOCKET_T " %s%s, "
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1227|      0|                 "fd=%" FMT_SOCKET_T " %s%s], timeouts=%zu",
 1228|      0|                 ps->sockets[0],
 1229|      0|                 (ps->actions[0] & CURL_POLL_IN) ? "IN" : "",
 1230|      0|                 (ps->actions[0] & CURL_POLL_OUT) ? "OUT" : "",
 1231|      0|                 ps->sockets[1],
 1232|      0|                 (ps->actions[1] & CURL_POLL_IN) ? "IN" : "",
 1233|      0|                 (ps->actions[1] & CURL_POLL_OUT) ? "OUT" : "",
 1234|      0|                 timeout_count);
 1235|      0|      break;
 1236|      0|    default:
  ------------------
  |  Branch (1236:5): [True: 0, False: 0]
  ------------------
 1237|      0|      CURL_TRC_M(data, "pollset[fds=%u], timeouts=%zu", ps->n, timeout_count);
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1238|      0|      break;
 1239|      0|    }
 1240|      0|    CURL_TRC_EASY_TIMERS(data);
  ------------------
  |  |  330|      0|  do {                                  \
  |  |  331|      0|    if(CURL_TRC_TIMER_is_verbose(data)) \
  |  |  ------------------
  |  |  |  |  139|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_timer)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  332|      0|      Curl_trc_easy_timers(data);       \
  |  |  333|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (333:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1241|      0|  }
 1242|   229k|#endif
 1243|       |
 1244|   229k|  return CURLM_OK;
 1245|   229k|}
curl_multi_fdset:
 1250|   114k|{
 1251|       |  /* Scan through all the easy handles to get the file descriptors set.
 1252|       |     Some easy handles may not have connected to the remote host yet,
 1253|       |     and then we must make sure that is done. */
 1254|   114k|  int this_max_fd = -1;
 1255|   114k|  struct Curl_multi *multi = m;
 1256|   114k|  struct easy_pollset ps;
 1257|   114k|  unsigned int i;
 1258|   114k|  uint32_t mid;
 1259|   114k|  (void)exc_fd_set;
 1260|       |
 1261|   114k|  if(!GOOD_MULTI_HANDLE(multi))
  ------------------
  |  |   82|   114k|  (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  |   75|   114k|#define CURL_MULTI_HANDLE 0x000bab1e
  |  |  ------------------
  |  |                 (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|   114k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (82:5): [True: 114k, False: 0]
  |  |  |  Branch (82:12): [True: 114k, False: 0]
  |  |  ------------------
  |  |   83|   114k|  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                 (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1261:6): [True: 0, False: 114k]
  |  Branch (1261:7): [True: 0, False: 0]
  |  Branch (1261:7): [True: 0, False: 0]
  ------------------
 1262|      0|    return CURLM_BAD_HANDLE;
 1263|       |
 1264|   114k|  if(multi->in_callback)
  ------------------
  |  Branch (1264:6): [True: 0, False: 114k]
  ------------------
 1265|      0|    return CURLM_RECURSIVE_API_CALL;
 1266|       |
 1267|   114k|  Curl_pollset_init(&ps);
 1268|   114k|  if(Curl_uint32_bset_first(&multi->process, &mid)) {
  ------------------
  |  Branch (1268:6): [True: 114k, False: 0]
  ------------------
 1269|   229k|    do {
 1270|   229k|      struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
 1271|       |
 1272|   229k|      if(!data) {
  ------------------
  |  Branch (1272:10): [True: 0, False: 229k]
  ------------------
 1273|      0|        DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1273:9): [Folded, False: 0]
  |  Branch (1273:9): [Folded, False: 0]
  ------------------
 1274|      0|        continue;
 1275|      0|      }
 1276|       |
 1277|   229k|      Curl_multi_pollset(data, &ps);
 1278|   453k|      for(i = 0; i < ps.n; i++) {
  ------------------
  |  Branch (1278:18): [True: 224k, False: 229k]
  ------------------
 1279|   224k|        if(!FDSET_SOCK(ps.sockets[i]))
  ------------------
  |  |  101|   224k|#define FDSET_SOCK(s) ((s) < FD_SETSIZE)
  ------------------
  |  Branch (1279:12): [True: 0, False: 224k]
  ------------------
 1280|       |          /* pretend it does not exist */
 1281|      0|          continue;
 1282|   224k|        if(ps.actions[i] & CURL_POLL_IN)
  ------------------
  |  |  283|   224k|#define CURL_POLL_IN     1
  ------------------
  |  Branch (1282:12): [True: 216k, False: 7.71k]
  ------------------
 1283|   224k|          FD_SET(ps.sockets[i], read_fd_set);
 1284|   224k|        if(ps.actions[i] & CURL_POLL_OUT)
  ------------------
  |  |  284|   224k|#define CURL_POLL_OUT    2
  ------------------
  |  Branch (1284:12): [True: 9.44k, False: 214k]
  ------------------
 1285|   224k|          FD_SET(ps.sockets[i], write_fd_set);
 1286|   224k|        if((int)ps.sockets[i] > this_max_fd)
  ------------------
  |  Branch (1286:12): [True: 224k, False: 0]
  ------------------
 1287|   224k|          this_max_fd = (int)ps.sockets[i];
 1288|   224k|      }
 1289|   229k|    } while(Curl_uint32_bset_next(&multi->process, mid, &mid));
  ------------------
  |  Branch (1289:13): [True: 114k, False: 114k]
  ------------------
 1290|   114k|  }
 1291|       |
 1292|   114k|  Curl_cshutdn_setfds(&multi->cshutdn, multi->admin,
 1293|   114k|                      read_fd_set, write_fd_set, &this_max_fd);
 1294|       |
 1295|   114k|  *max_fd = this_max_fd;
 1296|   114k|  Curl_pollset_cleanup(&ps);
 1297|       |
 1298|   114k|  return CURLM_OK;
 1299|   114k|}
Curl_multi_connchanged:
 1728|  14.2k|{
 1729|       |  multi->recheckstate = TRUE;
  ------------------
  |  | 1055|  14.2k|#define TRUE true
  ------------------
 1730|  14.2k|}
curl_multi_perform:
 2937|   122k|{
 2938|   122k|  struct Curl_multi *multi = m;
 2939|       |
 2940|   122k|  if(!GOOD_MULTI_HANDLE(multi))
  ------------------
  |  |   82|   122k|  (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  |   75|   122k|#define CURL_MULTI_HANDLE 0x000bab1e
  |  |  ------------------
  |  |                 (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|   122k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (82:5): [True: 122k, False: 0]
  |  |  |  Branch (82:12): [True: 122k, False: 0]
  |  |  ------------------
  |  |   83|   122k|  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                 (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (2940:6): [True: 0, False: 122k]
  |  Branch (2940:7): [True: 0, False: 0]
  |  Branch (2940:7): [True: 0, False: 0]
  ------------------
 2941|      0|    return CURLM_BAD_HANDLE;
 2942|       |
 2943|   122k|  return multi_perform(multi, running_handles);
 2944|   122k|}
curl_multi_cleanup:
 2947|  7.82k|{
 2948|  7.82k|  struct Curl_multi *multi = m;
 2949|  7.82k|  if(GOOD_MULTI_HANDLE(multi)) {
  ------------------
  |  |   82|  7.82k|  (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  |   75|  7.82k|#define CURL_MULTI_HANDLE 0x000bab1e
  |  |  ------------------
  |  |                 (((x) && (x)->magic == CURL_MULTI_HANDLE) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (82:3): [True: 7.82k, False: 0]
  |  |  |  Branch (82:5): [True: 7.82k, False: 0]
  |  |  |  Branch (82:12): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |   83|  7.82k|  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                 (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (2949:6): [True: 0, False: 0]
  |  Branch (2949:6): [True: 0, False: 0]
  ------------------
 2950|  7.82k|    void *entry;
 2951|  7.82k|    uint32_t mid;
 2952|  7.82k|    if(multi->in_callback)
  ------------------
  |  Branch (2952:8): [True: 0, False: 7.82k]
  ------------------
 2953|      0|      return CURLM_RECURSIVE_API_CALL;
 2954|  7.82k|    if(multi->in_ntfy_callback)
  ------------------
  |  Branch (2954:8): [True: 0, False: 7.82k]
  ------------------
 2955|      0|      return CURLM_RECURSIVE_API_CALL;
 2956|       |
 2957|       |    /* First remove all remaining easy handles,
 2958|       |     * close internal ones. admin handle is special */
 2959|  7.82k|    if(Curl_uint32_tbl_first(&multi->xfers, &mid, &entry)) {
  ------------------
  |  Branch (2959:8): [True: 7.82k, False: 0]
  ------------------
 2960|  7.82k|      do {
 2961|  7.82k|        struct Curl_easy *data = entry;
 2962|  7.82k|        if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |  136|  7.82k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  7.82k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  7.82k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 7.82k, False: 0]
  |  |  |  Branch (136:12): [True: 7.82k, False: 0]
  |  |  ------------------
  |  |  137|  7.82k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (2962:12): [True: 0, False: 7.82k]
  |  Branch (2962:13): [True: 0, False: 0]
  |  Branch (2962:13): [True: 0, False: 0]
  ------------------
 2963|      0|          return CURLM_BAD_HANDLE;
 2964|       |
 2965|  7.82k|#ifdef DEBUGBUILD
 2966|  7.82k|        if(mid != data->mid) {
  ------------------
  |  Branch (2966:12): [True: 0, False: 7.82k]
  ------------------
 2967|      0|          CURL_TRC_M(data, "multi_cleanup: still present with mid=%u, "
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2968|      0|                     "but unexpected data->mid=%u\n", mid, data->mid);
 2969|      0|          DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2969:11): [Folded, False: 0]
  |  Branch (2969:11): [Folded, False: 0]
  ------------------
 2970|      0|        }
 2971|  7.82k|#endif
 2972|       |
 2973|  7.82k|        if(data == multi->admin)
  ------------------
  |  Branch (2973:12): [True: 7.82k, False: 0]
  ------------------
 2974|  7.82k|          continue;
 2975|       |
 2976|      0|        if(!data->state.done && data->conn)
  ------------------
  |  Branch (2976:12): [True: 0, False: 0]
  |  Branch (2976:33): [True: 0, False: 0]
  ------------------
 2977|       |          /* if DONE was never called for this handle */
 2978|      0|          (void)multi_done(data, CURLE_OK, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2979|       |
 2980|      0|        data->multi = NULL; /* clear the association */
 2981|      0|        Curl_uint32_tbl_remove(&multi->xfers, mid);
 2982|      0|        data->mid = UINT32_MAX;
 2983|       |
 2984|       |#ifdef USE_LIBPSL
 2985|       |        if(data->psl == &multi->psl)
 2986|       |          data->psl = NULL;
 2987|       |#endif
 2988|      0|        if(data->state.internal)
  ------------------
  |  Branch (2988:12): [True: 0, False: 0]
  ------------------
 2989|      0|          Curl_close(&data);
 2990|  7.82k|      } while(Curl_uint32_tbl_next(&multi->xfers, mid, &mid, &entry));
  ------------------
  |  Branch (2990:15): [True: 0, False: 7.82k]
  ------------------
 2991|  7.82k|    }
 2992|       |
 2993|  7.82k|#ifdef USE_RESOLV_THREADED
 2994|  7.82k|    Curl_async_thrdd_multi_destroy(multi, !multi->quick_exit);
 2995|  7.82k|#endif
 2996|  7.82k|    Curl_cpool_destroy(&multi->cpool);
 2997|  7.82k|    Curl_cshutdn_destroy(&multi->cshutdn, multi->admin);
 2998|  7.82k|    if(multi->admin) {
  ------------------
  |  Branch (2998:8): [True: 7.82k, False: 0]
  ------------------
 2999|  7.82k|      CURL_TRC_M(multi->admin, "multi_cleanup, closing admin handle, done");
  ------------------
  |  |  148|  7.82k|  do {                                   \
  |  |  149|  7.82k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.82k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.82k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.82k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.82k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
 3000|  7.82k|      multi->admin->multi = NULL;
 3001|  7.82k|      Curl_uint32_tbl_remove(&multi->xfers, multi->admin->mid);
 3002|  7.82k|      Curl_close(&multi->admin);
 3003|  7.82k|    }
 3004|       |
 3005|  7.82k|    multi->magic = 0; /* not good anymore */
 3006|       |
 3007|  7.82k|    Curl_multi_ev_cleanup(multi);
 3008|  7.82k|    Curl_hash_destroy(&multi->proto_hash);
 3009|  7.82k|    Curl_dnscache_destroy(&multi->dnscache);
 3010|  7.82k|    Curl_psl_destroy(&multi->psl);
 3011|  7.82k|#ifdef USE_SSL
 3012|  7.82k|    Curl_ssl_scache_destroy(multi->ssl_scache);
 3013|  7.82k|#endif
 3014|       |
 3015|       |#ifdef USE_WINSOCK
 3016|       |    WSACloseEvent(multi->wsa_event);
 3017|       |#endif
 3018|  7.82k|#ifdef ENABLE_WAKEUP
 3019|  7.82k|  Curl_wakeup_destroy(multi->wakeup_pair);
 3020|  7.82k|#endif
 3021|       |
 3022|  7.82k|    multi_xfer_bufs_free(multi);
 3023|  7.82k|    Curl_mntfy_cleanup(multi);
 3024|  7.82k|#ifdef DEBUGBUILD
 3025|  7.82k|    if(Curl_uint32_tbl_count(&multi->xfers)) {
  ------------------
  |  Branch (3025:8): [True: 0, False: 7.82k]
  ------------------
 3026|      0|      multi_xfer_tbl_dump(multi);
 3027|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3027:7): [Folded, False: 0]
  |  Branch (3027:7): [Folded, False: 0]
  ------------------
 3028|      0|    }
 3029|  7.82k|#endif
 3030|  7.82k|    Curl_uint32_bset_destroy(&multi->process);
 3031|  7.82k|    Curl_uint32_bset_destroy(&multi->dirty);
 3032|  7.82k|    Curl_uint32_bset_destroy(&multi->pending);
 3033|  7.82k|    Curl_uint32_bset_destroy(&multi->msgsent);
 3034|  7.82k|    Curl_uint32_tbl_destroy(&multi->xfers);
 3035|  7.82k|    curlx_free(multi);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3036|       |
 3037|  7.82k|    return CURLM_OK;
 3038|  7.82k|  }
 3039|      0|  return CURLM_BAD_HANDLE;
 3040|  7.82k|}
Curl_multi_will_close:
 3081|  7.02k|{
 3082|  7.02k|  if(data) {
  ------------------
  |  Branch (3082:6): [True: 7.02k, False: 0]
  ------------------
 3083|  7.02k|    struct Curl_multi *multi = data->multi;
 3084|  7.02k|    if(multi) {
  ------------------
  |  Branch (3084:8): [True: 7.02k, False: 0]
  ------------------
 3085|  7.02k|      CURL_TRC_M(data, "Curl_multi_will_close fd=%" FMT_SOCKET_T, s);
  ------------------
  |  |  148|  7.02k|  do {                                   \
  |  |  149|  7.02k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.02k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.02k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  14.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.02k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.02k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  14.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.02k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.02k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.02k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.02k]
  |  |  ------------------
  ------------------
 3086|  7.02k|      Curl_multi_ev_socket_done(multi, data, s);
 3087|  7.02k|    }
 3088|  7.02k|  }
 3089|  7.02k|}
Curl_update_timer:
 3566|   137k|{
 3567|   137k|  struct curltime expire_ts;
 3568|   137k|  long timeout_ms;
 3569|   137k|  int rc;
 3570|   137k|  bool set_value = FALSE;
  ------------------
  |  | 1058|   137k|#define FALSE false
  ------------------
 3571|       |
 3572|   137k|  if(!multi->timer_cb || multi->dead)
  ------------------
  |  Branch (3572:6): [True: 137k, False: 0]
  |  Branch (3572:26): [True: 0, False: 0]
  ------------------
 3573|   137k|    return CURLM_OK;
 3574|      0|  multi_timeout(multi, &expire_ts, &timeout_ms);
 3575|       |
 3576|      0|  if(timeout_ms < 0 && multi->last_timeout_ms < 0) {
  ------------------
  |  Branch (3576:6): [True: 0, False: 0]
  |  Branch (3576:24): [True: 0, False: 0]
  ------------------
 3577|       |    /* nothing to do */
 3578|      0|  }
 3579|      0|  else if(timeout_ms < 0) {
  ------------------
  |  Branch (3579:11): [True: 0, False: 0]
  ------------------
 3580|       |    /* there is no timeout now but there was one previously */
 3581|      0|    CURL_TRC_M(multi->admin, "[TIMER] clear");
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3582|      0|    timeout_ms = -1; /* normalize */
 3583|      0|    set_value = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3584|      0|  }
 3585|      0|  else if(multi->last_timeout_ms < 0) {
  ------------------
  |  Branch (3585:11): [True: 0, False: 0]
  ------------------
 3586|      0|    CURL_TRC_M(multi->admin, "[TIMER] set %ldms, none before", timeout_ms);
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3587|      0|    set_value = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3588|      0|  }
 3589|      0|  else if(curlx_ptimediff_us(&multi->last_expire_ts, &expire_ts)) {
  ------------------
  |  Branch (3589:11): [True: 0, False: 0]
  ------------------
 3590|       |    /* We had a timeout before and have one now, the absolute timestamp
 3591|       |     * differs. The relative timeout_ms may be the same, but the starting
 3592|       |     * point differs. Let the application restart its timer. */
 3593|      0|    CURL_TRC_M(multi->admin, "[TIMER] set %ldms, replace previous",
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3594|      0|               timeout_ms);
 3595|      0|    set_value = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3596|      0|  }
 3597|      0|  else {
 3598|       |    /* We have same expire time as previously. Our relative 'timeout_ms'
 3599|       |     * may be different now, but the application has the timer running
 3600|       |     * and we do not to tell it to start this again. */
 3601|      0|  }
 3602|       |
 3603|      0|  if(set_value) {
  ------------------
  |  Branch (3603:6): [True: 0, False: 0]
  ------------------
 3604|      0|    multi->last_expire_ts = expire_ts;
 3605|      0|    multi->last_timeout_ms = timeout_ms;
 3606|      0|    set_in_callback(multi, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3607|      0|    rc = multi->timer_cb(multi, timeout_ms, multi->timer_userp);
 3608|      0|    set_in_callback(multi, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 3609|      0|    if(rc == -1) {
  ------------------
  |  Branch (3609:8): [True: 0, False: 0]
  ------------------
 3610|      0|      multi->dead = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3611|      0|      return CURLM_ABORTED_BY_CALLBACK;
 3612|      0|    }
 3613|      0|  }
 3614|      0|  return CURLM_OK;
 3615|      0|}
Curl_expire_ex:
 3681|   256k|{
 3682|   256k|  struct Curl_multi *multi = data->multi;
 3683|   256k|  struct curltime *curr_expire = &data->state.expiretime;
 3684|   256k|  struct curltime set;
 3685|       |
 3686|       |  /* this is only interesting while there is still an associated multi struct
 3687|       |     remaining! */
 3688|   256k|  if(!multi)
  ------------------
  |  Branch (3688:6): [True: 0, False: 256k]
  ------------------
 3689|      0|    return;
 3690|       |
 3691|   256k|  DEBUGASSERT(id < EXPIRE_LAST);
  ------------------
  |  | 1081|   256k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3691:3): [True: 0, False: 256k]
  |  Branch (3691:3): [True: 256k, False: 0]
  ------------------
 3692|       |
 3693|   256k|  set = *Curl_pgrs_now(data);
 3694|   256k|  set.tv_sec += (time_t)(milli / 1000); /* may be a 64 to 32-bit conversion */
 3695|   256k|  set.tv_usec += (int)(milli % 1000) * 1000;
 3696|       |
 3697|   256k|  if(set.tv_usec >= 1000000) {
  ------------------
  |  Branch (3697:6): [True: 124k, False: 131k]
  ------------------
 3698|   124k|    set.tv_sec++;
 3699|   124k|    set.tv_usec -= 1000000;
 3700|   124k|  }
 3701|       |
 3702|       |  /* Remove any timer with the same id */
 3703|   256k|  multi_deltimeout(data, id);
 3704|       |
 3705|       |  /* Add it to the timer list. It must stay in the list until it has expired
 3706|       |     in case we need to recompute the minimum timer later. */
 3707|   256k|  multi_addtimeout(data, &set, id);
 3708|       |
 3709|   256k|  if(curr_expire->tv_sec || curr_expire->tv_usec) {
  ------------------
  |  Branch (3709:6): [True: 248k, False: 7.82k]
  |  Branch (3709:29): [True: 0, False: 7.82k]
  ------------------
 3710|       |    /* This means that the struct is added as a node in the splay tree.
 3711|       |       Compare if the new time is earlier, and only remove-old/add-new if it
 3712|       |       is. */
 3713|   248k|    timediff_t diff = curlx_ptimediff_ms(&set, curr_expire);
 3714|   248k|    int rc;
 3715|       |
 3716|   248k|    if(diff > 0) {
  ------------------
  |  Branch (3716:8): [True: 69.8k, False: 178k]
  ------------------
 3717|       |      /* The current splay tree entry is sooner than this new expiry time.
 3718|       |         We do not need to update our splay tree entry. */
 3719|  69.8k|      return;
 3720|  69.8k|    }
 3721|       |
 3722|       |    /* Since this is an updated time, we must remove the previous entry from
 3723|       |       the splay tree first and then re-add the new value */
 3724|   178k|    rc = Curl_splayremove(multi->timetree, &data->state.timenode,
 3725|   178k|                          &multi->timetree);
 3726|   178k|    if(rc)
  ------------------
  |  Branch (3726:8): [True: 0, False: 178k]
  ------------------
 3727|      0|      infof(data, "Internal error removing splay node = %d", rc);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3728|   178k|  }
 3729|       |
 3730|       |  /* Indicate that we are in the splay tree and insert the new timer expiry
 3731|       |     value since it is our local minimum. */
 3732|   186k|  *curr_expire = set;
 3733|   186k|  Curl_splayset(&data->state.timenode, data);
 3734|   186k|  multi->timetree = Curl_splayinsert(curr_expire, multi->timetree,
 3735|   186k|                                     &data->state.timenode);
 3736|   186k|}
Curl_expire:
 3750|   256k|{
 3751|   256k|  Curl_expire_ex(data, milli, id);
 3752|   256k|}
Curl_expire_done:
 3761|  7.23k|{
 3762|       |  /* remove the timer, if there */
 3763|  7.23k|  multi_deltimeout(data, id);
 3764|  7.23k|  CURL_TRC_TIMER(data, id, "cleared");
  ------------------
  |  |  173|  7.23k|  do {                                        \
  |  |  174|  7.23k|    if(CURL_TRC_TIMER_is_verbose(data))       \
  |  |  ------------------
  |  |  |  |  139|  7.23k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_timer)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.23k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  14.4k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.23k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.23k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  14.4k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.23k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  175|  7.23k|      Curl_trc_timer(data, tid, __VA_ARGS__); \
  |  |  176|  7.23k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (176:11): [Folded, False: 7.23k]
  |  |  ------------------
  ------------------
 3765|  7.23k|}
Curl_expire_clear:
 3773|  31.2k|{
 3774|  31.2k|  struct Curl_multi *multi = data->multi;
 3775|  31.2k|  struct curltime *nowp = &data->state.expiretime;
 3776|       |
 3777|       |  /* this is only interesting while there is still an associated multi struct
 3778|       |     remaining! */
 3779|  31.2k|  if(!multi)
  ------------------
  |  Branch (3779:6): [True: 15.6k, False: 15.6k]
  ------------------
 3780|  15.6k|    return;
 3781|       |
 3782|  15.6k|  if(nowp->tv_sec || nowp->tv_usec) {
  ------------------
  |  Branch (3782:6): [True: 7.82k, False: 7.80k]
  |  Branch (3782:22): [True: 0, False: 7.80k]
  ------------------
 3783|       |    /* Since this is an cleared time, we must remove the previous entry from
 3784|       |       the splay tree */
 3785|  7.82k|    struct Curl_llist *list = &data->state.timeoutlist;
 3786|  7.82k|    int rc;
 3787|       |
 3788|  7.82k|    rc = Curl_splayremove(multi->timetree, &data->state.timenode,
 3789|  7.82k|                          &multi->timetree);
 3790|  7.82k|    if(rc)
  ------------------
  |  Branch (3790:8): [True: 0, False: 7.82k]
  ------------------
 3791|      0|      infof(data, "Internal error clearing splay node = %d", rc);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3792|       |
 3793|       |    /* clear the timeout list too */
 3794|  7.82k|    Curl_llist_destroy(list, NULL);
 3795|       |
 3796|  7.82k|    if(data->id >= 0)
  ------------------
  |  Branch (3796:8): [True: 7.82k, False: 0]
  ------------------
 3797|  7.82k|      CURL_TRC_M(data, "[TIMEOUT] all cleared");
  ------------------
  |  |  148|  7.82k|  do {                                   \
  |  |  149|  7.82k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.82k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.82k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.82k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.82k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
 3798|  7.82k|    nowp->tv_sec = 0;
 3799|  7.82k|    nowp->tv_usec = 0;
 3800|  7.82k|  }
 3801|  15.6k|}
Curl_set_in_callback:
 3877|   115k|{
 3878|   115k|  if(data && data->multi)
  ------------------
  |  Branch (3878:6): [True: 115k, False: 0]
  |  Branch (3878:14): [True: 115k, False: 0]
  ------------------
 3879|   115k|    data->multi->in_callback = value;
 3880|   115k|}
Curl_is_in_callback:
 3883|  10.5k|{
 3884|  10.5k|  return data && data->multi && data->multi->in_callback;
  ------------------
  |  Branch (3884:10): [True: 10.5k, False: 0]
  |  Branch (3884:18): [True: 10.5k, False: 0]
  |  Branch (3884:33): [True: 4.48k, False: 6.08k]
  ------------------
 3885|  10.5k|}
Curl_multi_max_concurrent_streams:
 3888|  3.42k|{
 3889|  3.42k|  DEBUGASSERT(multi);
  ------------------
  |  | 1081|  3.42k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3889:3): [True: 0, False: 3.42k]
  |  Branch (3889:3): [True: 3.42k, False: 0]
  ------------------
 3890|  3.42k|  return multi->max_concurrent_streams;
 3891|  3.42k|}
Curl_multi_xfer_buf_borrow:
 3958|   109k|{
 3959|   109k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|   109k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3959:3): [True: 0, False: 109k]
  |  Branch (3959:3): [True: 109k, False: 0]
  ------------------
 3960|   109k|  DEBUGASSERT(data->multi);
  ------------------
  |  | 1081|   109k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3960:3): [True: 0, False: 109k]
  |  Branch (3960:3): [True: 109k, False: 0]
  ------------------
 3961|   109k|  *pbuf = NULL;
 3962|   109k|  *pbuflen = 0;
 3963|   109k|  if(!data->multi) {
  ------------------
  |  Branch (3963:6): [True: 0, False: 109k]
  ------------------
 3964|      0|    failf(data, "transfer has no multi handle");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3965|      0|    return CURLE_FAILED_INIT;
 3966|      0|  }
 3967|   109k|  if(!data->set.buffer_size) {
  ------------------
  |  Branch (3967:6): [True: 0, False: 109k]
  ------------------
 3968|      0|    failf(data, "transfer buffer size is 0");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3969|      0|    return CURLE_FAILED_INIT;
 3970|      0|  }
 3971|   109k|  if(data->multi->xfer_buf_borrowed) {
  ------------------
  |  Branch (3971:6): [True: 0, False: 109k]
  ------------------
 3972|      0|    failf(data, "attempt to borrow xfer_buf when already borrowed");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3973|      0|    return CURLE_AGAIN;
 3974|      0|  }
 3975|       |
 3976|   109k|  if(data->multi->xfer_buf &&
  ------------------
  |  Branch (3976:6): [True: 102k, False: 6.77k]
  ------------------
 3977|   102k|     data->set.buffer_size > data->multi->xfer_buf_len) {
  ------------------
  |  Branch (3977:6): [True: 0, False: 102k]
  ------------------
 3978|       |    /* not large enough, get a new one */
 3979|      0|    curlx_safefree(data->multi->xfer_buf);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3980|      0|    data->multi->xfer_buf_len = 0;
 3981|      0|  }
 3982|       |
 3983|   109k|  if(!data->multi->xfer_buf) {
  ------------------
  |  Branch (3983:6): [True: 6.77k, False: 102k]
  ------------------
 3984|  6.77k|    data->multi->xfer_buf = curlx_malloc(curlx_uitouz(data->set.buffer_size));
  ------------------
  |  | 1478|  6.77k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
 3985|  6.77k|    if(!data->multi->xfer_buf) {
  ------------------
  |  Branch (3985:8): [True: 0, False: 6.77k]
  ------------------
 3986|      0|      failf(data, "could not allocate xfer_buf of %u bytes",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3987|      0|            data->set.buffer_size);
 3988|      0|      return CURLE_OUT_OF_MEMORY;
 3989|      0|    }
 3990|  6.77k|    data->multi->xfer_buf_len = data->set.buffer_size;
 3991|  6.77k|  }
 3992|       |
 3993|   109k|  data->multi->xfer_buf_borrowed = TRUE;
  ------------------
  |  | 1055|   109k|#define TRUE true
  ------------------
 3994|   109k|  *pbuf = data->multi->xfer_buf;
 3995|   109k|  *pbuflen = data->multi->xfer_buf_len;
 3996|   109k|  return CURLE_OK;
 3997|   109k|}
Curl_multi_xfer_buf_release:
 4000|   109k|{
 4001|   109k|  (void)buf;
 4002|   109k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|   109k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4002:3): [True: 0, False: 109k]
  |  Branch (4002:3): [True: 109k, False: 0]
  ------------------
 4003|   109k|  DEBUGASSERT(data->multi);
  ------------------
  |  | 1081|   109k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4003:3): [True: 0, False: 109k]
  |  Branch (4003:3): [True: 109k, False: 0]
  ------------------
 4004|   109k|  DEBUGASSERT(!buf || data->multi->xfer_buf == buf);
  ------------------
  |  | 1081|   109k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4004:3): [True: 109k, False: 0]
  |  Branch (4004:3): [True: 0, False: 0]
  |  Branch (4004:3): [True: 0, False: 109k]
  |  Branch (4004:3): [True: 109k, False: 0]
  ------------------
 4005|   109k|  data->multi->xfer_buf_borrowed = FALSE;
  ------------------
  |  | 1058|   109k|#define FALSE false
  ------------------
 4006|   109k|}
Curl_multi_get_easy:
 4121|   473k|{
 4122|   473k|  struct Curl_easy *data = Curl_uint32_tbl_get(&multi->xfers, mid);
 4123|   473k|  if(GOOD_EASY_HANDLE(data))
  ------------------
  |  |  136|   473k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|   473k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|   473k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:3): [True: 473k, False: 0]
  |  |  |  Branch (136:5): [True: 473k, False: 0]
  |  |  |  Branch (136:12): [True: 473k, False: 0]
  |  |  ------------------
  |  |  137|   473k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (4123:6): [True: 0, False: 0]
  |  Branch (4123:6): [True: 0, False: 0]
  ------------------
 4124|   473k|    return data;
 4125|      0|  CURL_TRC_M(multi->admin, "invalid easy handle in xfer table for mid=%u",
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4126|      0|             mid);
 4127|      0|  Curl_uint32_tbl_remove(&multi->xfers, mid);
 4128|       |  return NULL;
 4129|   473k|}
Curl_multi_xfers_running:
 4132|   126k|{
 4133|   126k|  DEBUGASSERT(multi);
  ------------------
  |  | 1081|   126k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4133:3): [True: 0, False: 126k]
  |  Branch (4133:3): [True: 126k, False: 0]
  ------------------
 4134|   126k|  if(!multi)
  ------------------
  |  Branch (4134:6): [True: 0, False: 126k]
  ------------------
 4135|      0|    return 0;
 4136|   126k|  return multi->xfers_alive;
 4137|   126k|}
Curl_multi_mark_dirty:
 4140|  8.91k|{
 4141|  8.91k|  if(data->multi && data->mid != UINT32_MAX)
  ------------------
  |  Branch (4141:6): [True: 8.91k, False: 0]
  |  Branch (4141:21): [True: 8.91k, False: 0]
  ------------------
 4142|  8.91k|    Curl_uint32_bset_add(&data->multi->dirty, data->mid);
 4143|  8.91k|}
Curl_multi_clear_dirty:
 4146|    306|{
 4147|    306|  if(data->multi && data->mid != UINT32_MAX)
  ------------------
  |  Branch (4147:6): [True: 306, False: 0]
  |  Branch (4147:21): [True: 306, False: 0]
  ------------------
 4148|    306|    Curl_uint32_bset_remove(&data->multi->dirty, data->mid);
 4149|    306|}
multi.c:multi_xfers_add:
  397|  7.82k|{
  398|  7.82k|  uint32_t capacity = Curl_uint32_tbl_capacity(&multi->xfers);
  399|  7.82k|  uint32_t new_size = 0;
  400|       |  /* Prepare to make this into a CURLMOPT_MAX_TRANSFERS, because some
  401|       |   * applications may want to prevent a run-away of their memory use. */
  402|       |  /* UINT_MAX is our "invalid" id, do not let the table grow up to that. */
  403|  7.82k|  const uint32_t max_capacity = UINT_MAX - 1;
  404|       |
  405|  7.82k|  if(capacity < max_capacity) {
  ------------------
  |  Branch (405:6): [True: 7.82k, False: 0]
  ------------------
  406|       |    /* We want `multi->xfers` to have "sufficient" free rows, so that we do
  407|       |     * not have to reuse the `mid` from a removed easy right away.
  408|       |     * Since uint_tbl and uint_bset are memory efficient,
  409|       |     * regard less than 25% free as insufficient.
  410|       |     * (for low capacities, e.g. multi_easy, 4 or less). */
  411|  7.82k|    uint32_t used = Curl_uint32_tbl_count(&multi->xfers);
  412|  7.82k|    uint32_t unused = capacity - used;
  413|  7.82k|    uint32_t min_unused = CURLMAX(capacity >> 2, 4);
  ------------------
  |  | 1286|  7.82k|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1286:24): [True: 7.82k, False: 0]
  |  |  ------------------
  ------------------
  414|  7.82k|    if(unused <= min_unused) {
  ------------------
  |  Branch (414:8): [True: 0, False: 7.82k]
  ------------------
  415|       |      /* Make sure the uint arithmetic here works on the corner
  416|       |       * cases where we are close to max_capacity or UINT_MAX */
  417|      0|      if((min_unused >= max_capacity) ||
  ------------------
  |  Branch (417:10): [True: 0, False: 0]
  ------------------
  418|      0|         ((max_capacity - min_unused) <= capacity) ||
  ------------------
  |  Branch (418:10): [True: 0, False: 0]
  ------------------
  419|      0|         ((UINT_MAX - min_unused - 63) <= capacity)) {
  ------------------
  |  Branch (419:10): [True: 0, False: 0]
  ------------------
  420|      0|        new_size = max_capacity; /* can not be larger than this */
  421|      0|      }
  422|      0|      else {
  423|       |        /* make it a 64 multiple, since our bitsets grow by that and
  424|       |         * small (easy_multi) grows to at least 64 on first resize. */
  425|      0|        new_size = (((used + min_unused) + 63) / 64) * 64;
  426|      0|      }
  427|      0|    }
  428|  7.82k|  }
  429|       |
  430|  7.82k|  if(new_size > capacity) {
  ------------------
  |  Branch (430:6): [True: 0, False: 7.82k]
  ------------------
  431|       |    /* Grow the bitsets first. Should one fail, we do not need
  432|       |     * to downsize the already resized ones. The sets continue
  433|       |     * to work properly when larger than the table, but not
  434|       |     * the other way around. */
  435|      0|    CURL_TRC_M(data, "increasing xfer table size to %u", new_size);
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  436|      0|    if(Curl_uint32_bset_resize(&multi->process, new_size) ||
  ------------------
  |  Branch (436:8): [True: 0, False: 0]
  ------------------
  437|      0|       Curl_uint32_bset_resize(&multi->dirty, new_size) ||
  ------------------
  |  Branch (437:8): [True: 0, False: 0]
  ------------------
  438|      0|       Curl_uint32_bset_resize(&multi->pending, new_size) ||
  ------------------
  |  Branch (438:8): [True: 0, False: 0]
  ------------------
  439|      0|       Curl_uint32_bset_resize(&multi->msgsent, new_size) ||
  ------------------
  |  Branch (439:8): [True: 0, False: 0]
  ------------------
  440|      0|       Curl_uint32_tbl_resize(&multi->xfers, new_size))
  ------------------
  |  Branch (440:8): [True: 0, False: 0]
  ------------------
  441|      0|      return CURLM_OUT_OF_MEMORY;
  442|      0|  }
  443|       |
  444|       |  /* Insert the easy into the table now */
  445|  7.82k|  if(!Curl_uint32_tbl_add(&multi->xfers, data, &data->mid)) {
  ------------------
  |  Branch (445:6): [True: 0, False: 7.82k]
  ------------------
  446|       |    /* MUST only happen when table is full */
  447|      0|    DEBUGASSERT(Curl_uint32_tbl_capacity(&multi->xfers) <=
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (447:5): [True: 0, False: 0]
  |  Branch (447:5): [True: 0, False: 0]
  ------------------
  448|      0|                Curl_uint32_tbl_count(&multi->xfers));
  449|      0|    return CURLM_OUT_OF_MEMORY;
  450|      0|  }
  451|  7.82k|  return CURLM_OK;
  452|  7.82k|}
multi.c:mstate:
  135|  96.1k|{
  136|  96.1k|  CURLMstate oldstate = data->mstate;
  137|  96.1k|  static const init_multistate_func finit[MSTATE_LAST] = {
  138|  96.1k|    NULL,              /* INIT */
  139|  96.1k|    NULL,              /* PENDING */
  140|  96.1k|    NULL,              /* SETUP */
  141|  96.1k|    Curl_init_CONNECT, /* CONNECT */
  142|  96.1k|    NULL,              /* CONNECTING */
  143|  96.1k|    NULL,              /* PROTOCONNECT */
  144|  96.1k|    NULL,              /* PROTOCONNECTING */
  145|  96.1k|    NULL,              /* DO */
  146|  96.1k|    NULL,              /* DOING */
  147|  96.1k|    NULL,              /* DOING_MORE */
  148|  96.1k|    before_perform,    /* DID */
  149|  96.1k|    NULL,              /* PERFORMING */
  150|  96.1k|    NULL,              /* RATELIMITING */
  151|  96.1k|    NULL,              /* DONE */
  152|  96.1k|    init_completed,    /* COMPLETED */
  153|       |    NULL               /* MSGSENT */
  154|  96.1k|  };
  155|       |
  156|  96.1k|  if(oldstate == state)
  ------------------
  |  Branch (156:6): [True: 7.82k, False: 88.3k]
  ------------------
  157|       |    /* do not bother when the new state is the same as the old state */
  158|  7.82k|    return;
  159|       |
  160|  88.3k|#ifdef DEBUGBUILD
  161|  88.3k|  NOVERBOSE((void)lineno);
  ------------------
  |  | 1619|  88.3k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1180|  88.3k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1180:35): [Folded, False: 88.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  162|  88.3k|  CURL_TRC_M(data, "-> [%s] (line %d)", CURL_MSTATE_NAME(state), lineno);
  ------------------
  |  |  148|  88.3k|  do {                                   \
  |  |  149|  88.3k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  88.3k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  88.3k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|   176k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 88.3k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 88.3k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|   176k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  88.3k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  88.3k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  88.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 88.3k]
  |  |  ------------------
  ------------------
  163|       |#else
  164|       |  CURL_TRC_M(data, "-> [%s]", CURL_MSTATE_NAME(state));
  165|       |#endif
  166|       |
  167|       |  /* really switching state */
  168|  88.3k|  data->mstate = state;
  169|  88.3k|  switch(state) {
  170|  1.82k|  case MSTATE_DONE:
  ------------------
  |  Branch (170:3): [True: 1.82k, False: 86.5k]
  ------------------
  171|  1.82k|    CURLM_NTFY(data, CURLMNOTIFY_EASY_DONE);
  ------------------
  |  |   51|  1.82k|  do {                                                \
  |  |   52|  1.82k|    if((d) && (d)->multi && (d)->multi->ntfy.ntfy_cb) \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 1.82k, False: 0]
  |  |  |  Branch (52:15): [True: 1.82k, False: 0]
  |  |  |  Branch (52:29): [True: 0, False: 1.82k]
  |  |  ------------------
  |  |   53|  1.82k|      Curl_mntfy_add((d), (t));                       \
  |  |   54|  1.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (54:11): [Folded, False: 1.82k]
  |  |  ------------------
  ------------------
  172|  1.82k|    break;
  173|  7.80k|  case MSTATE_COMPLETED:
  ------------------
  |  Branch (173:3): [True: 7.80k, False: 80.5k]
  ------------------
  174|       |    /* we sometimes directly jump to COMPLETED, trigger also a notification
  175|       |     * in that case. */
  176|  7.80k|    if(oldstate < MSTATE_DONE)
  ------------------
  |  Branch (176:8): [True: 5.97k, False: 1.82k]
  ------------------
  177|  5.97k|      CURLM_NTFY(data, CURLMNOTIFY_EASY_DONE);
  ------------------
  |  |   51|  5.97k|  do {                                                \
  |  |   52|  5.97k|    if((d) && (d)->multi && (d)->multi->ntfy.ntfy_cb) \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 5.97k, False: 0]
  |  |  |  Branch (52:15): [True: 5.97k, False: 0]
  |  |  |  Branch (52:29): [True: 0, False: 5.97k]
  |  |  ------------------
  |  |   53|  5.97k|      Curl_mntfy_add((d), (t));                       \
  |  |   54|  5.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (54:11): [Folded, False: 5.97k]
  |  |  ------------------
  ------------------
  178|       |    /* changing to COMPLETED means it is in process and needs to go */
  179|  7.80k|    DEBUGASSERT(Curl_uint32_bset_contains(&data->multi->process, data->mid));
  ------------------
  |  | 1081|  7.80k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:5): [True: 0, False: 7.80k]
  |  Branch (179:5): [True: 7.80k, False: 0]
  ------------------
  180|  7.80k|    Curl_uint32_bset_remove(&data->multi->process, data->mid);
  181|  7.80k|    Curl_uint32_bset_remove(&data->multi->pending, data->mid); /* to be sure */
  182|       |
  183|  7.80k|    if(Curl_uint32_bset_empty(&data->multi->process)) {
  ------------------
  |  Branch (183:8): [True: 0, False: 7.80k]
  ------------------
  184|       |      /* free the transfer buffer when we have no more active transfers */
  185|      0|      multi_xfer_bufs_free(data->multi);
  186|      0|    }
  187|  7.80k|    break;
  188|  78.7k|  default:
  ------------------
  |  Branch (188:3): [True: 78.7k, False: 9.62k]
  ------------------
  189|  78.7k|    break;
  190|  88.3k|  }
  191|       |
  192|       |  /* if this state has an init-function, run it */
  193|  88.3k|  if(finit[state])
  ------------------
  |  Branch (193:6): [True: 28.5k, False: 59.8k]
  ------------------
  194|  28.5k|    finit[state](data);
  195|  88.3k|}
multi.c:before_perform:
  114|  9.56k|{
  115|       |  data->req.chunk = FALSE;
  ------------------
  |  | 1058|  9.56k|#define FALSE false
  ------------------
  116|  9.56k|  Curl_pgrsTime(data, TIMER_PRETRANSFER);
  117|  9.56k|}
multi.c:init_completed:
  120|  7.80k|{
  121|       |  /* this is a completed transfer */
  122|       |
  123|       |  /* Important: reset the conn pointer so that we do not point to memory
  124|       |     that could be freed anytime */
  125|  7.80k|  Curl_detach_connection(data);
  126|  7.80k|  Curl_expire_clear(data); /* stop all timers */
  127|  7.80k|}
multi.c:multi_warn_debug:
  367|   252k|{
  368|   252k|  if(!multi->warned) {
  ------------------
  |  Branch (368:6): [True: 7.82k, False: 244k]
  ------------------
  369|  7.82k|    infof(data, "!!! WARNING !!!");
  ------------------
  |  |  143|  7.82k|  do {                               \
  |  |  144|  7.82k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  7.82k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  ------------------
  |  |  |  |  320|  7.82k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  7.82k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  370|  7.82k|    infof(data, "This is a debug build of libcurl, "
  ------------------
  |  |  143|  7.82k|  do {                               \
  |  |  144|  7.82k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  7.82k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 7.82k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.82k]
  |  |  |  |  ------------------
  |  |  |  |  320|  7.82k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  7.82k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  371|  7.82k|                "do not use in production.");
  372|       |    multi->warned = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  373|  7.82k|  }
  374|   252k|}
multi.c:multi_assess_wakeup:
  385|  23.4k|{
  386|  23.4k|#ifdef ENABLE_WAKEUP
  387|  23.4k|  if(multi->socket_cb)
  ------------------
  |  Branch (387:6): [True: 0, False: 23.4k]
  ------------------
  388|      0|    return Curl_multi_ev_assess_xfer(multi, multi->admin);
  389|       |#else
  390|       |  (void)multi;
  391|       |#endif
  392|  23.4k|  return CURLM_OK;
  393|  23.4k|}
multi.c:multi_done:
  690|  10.7k|{
  691|  10.7k|  CURLcode result;
  692|  10.7k|  struct connectdata *conn = data->conn;
  693|       |
  694|  10.7k|  CURL_TRC_M(data, "multi_done: status: %d prem: %d done: %d",
  ------------------
  |  |  148|  10.7k|  do {                                   \
  |  |  149|  10.7k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  10.7k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  10.7k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  21.4k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 10.7k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 10.7k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  21.4k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  10.7k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  10.7k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  10.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 10.7k]
  |  |  ------------------
  ------------------
  695|  10.7k|             (int)status, (int)premature, data->state.done);
  696|       |
  697|  10.7k|  if(data->state.done)
  ------------------
  |  Branch (697:6): [True: 390, False: 10.3k]
  ------------------
  698|       |    /* Stop if multi_done() has already been called */
  699|    390|    return CURLE_OK;
  700|       |
  701|       |  /* Shut down any ongoing async resolver operation. */
  702|  10.3k|  Curl_resolv_shutdown_all(data);
  703|       |
  704|       |  /* Cleanup possible redirect junk */
  705|  10.3k|  curlx_safefree(data->req.newurl);
  ------------------
  |  | 1327|  10.3k|  do {                      \
  |  | 1328|  10.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  10.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  10.3k|    (ptr) = NULL;           \
  |  | 1330|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  706|  10.3k|  curlx_safefree(data->req.location);
  ------------------
  |  | 1327|  10.3k|  do {                      \
  |  | 1328|  10.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  10.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  10.3k|    (ptr) = NULL;           \
  |  | 1330|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  707|       |
  708|  10.3k|  switch(status) {
  709|      0|  case CURLE_ABORTED_BY_CALLBACK:
  ------------------
  |  Branch (709:3): [True: 0, False: 10.3k]
  ------------------
  710|     58|  case CURLE_READ_ERROR:
  ------------------
  |  Branch (710:3): [True: 58, False: 10.2k]
  ------------------
  711|     58|  case CURLE_WRITE_ERROR:
  ------------------
  |  Branch (711:3): [True: 0, False: 10.3k]
  ------------------
  712|       |    /* When we are aborted due to a callback return code it has to be counted
  713|       |       as premature as there is trouble ahead if we do not. We have many
  714|       |       callbacks and protocols work differently, we could potentially do this
  715|       |       more fine-grained in the future. */
  716|     58|    premature = TRUE;
  ------------------
  |  | 1055|     58|#define TRUE true
  ------------------
  717|     58|    FALLTHROUGH();
  ------------------
  |  |  821|     58|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  718|  10.3k|  default:
  ------------------
  |  Branch (718:3): [True: 10.2k, False: 58]
  ------------------
  719|  10.3k|    break;
  720|  10.3k|  }
  721|       |
  722|       |  /* this calls the protocol-specific function pointer previously set */
  723|  10.3k|  if(conn && conn->scheme->run->done && (data->mstate >= MSTATE_PROTOCONNECT))
  ------------------
  |  Branch (723:6): [True: 10.3k, False: 0]
  |  Branch (723:14): [True: 10.3k, False: 0]
  |  Branch (723:41): [True: 9.58k, False: 740]
  ------------------
  724|  9.58k|    result = conn->scheme->run->done(data, status, premature);
  725|    740|  else
  726|    740|    result = status;
  727|       |
  728|  10.3k|  if(data->mstate > MSTATE_CONNECTING &&
  ------------------
  |  Branch (728:6): [True: 9.58k, False: 740]
  ------------------
  729|  9.58k|     (result != CURLE_ABORTED_BY_CALLBACK)) {
  ------------------
  |  Branch (729:6): [True: 9.58k, False: 0]
  ------------------
  730|       |    /* avoid this if
  731|       |     * - the transfer has not connected
  732|       |     * - we already aborted by callback to avoid this calling another callback
  733|       |     */
  734|  9.58k|    int rc = Curl_pgrsDone(data);
  735|  9.58k|    if(!result && rc)
  ------------------
  |  Branch (735:8): [True: 4.72k, False: 4.85k]
  |  Branch (735:19): [True: 0, False: 4.72k]
  ------------------
  736|      0|      result = CURLE_ABORTED_BY_CALLBACK;
  737|  9.58k|  }
  738|       |
  739|       |  /* Make sure that transfer client writes are really done now. */
  740|  10.3k|  result = Curl_1st_fatal(result, Curl_xfer_write_done(data, premature));
  741|       |
  742|       |  /* Inform connection filters that this transfer is done */
  743|  10.3k|  if(conn)
  ------------------
  |  Branch (743:6): [True: 10.3k, False: 0]
  ------------------
  744|  10.3k|    Curl_conn_ev_data_done(data, premature);
  745|       |
  746|  10.3k|  process_pending_handles(data->multi); /* connection / multiplex */
  747|       |
  748|  10.3k|  if(!result)
  ------------------
  |  Branch (748:6): [True: 4.72k, False: 5.59k]
  ------------------
  749|  4.72k|    result = Curl_req_done(&data->req, data, premature);
  750|       |
  751|  10.3k|  if(conn) {
  ------------------
  |  Branch (751:6): [True: 10.3k, False: 0]
  ------------------
  752|       |    /* Under the potential connection pool's share lock, decide what to
  753|       |     * do with the transfer's connection. */
  754|  10.3k|    struct multi_done_ctx mdctx;
  755|       |
  756|  10.3k|    memset(&mdctx, 0, sizeof(mdctx));
  757|  10.3k|    mdctx.premature = premature;
  758|  10.3k|    Curl_cpool_do_locked(data, data->conn, multi_done_locked, &mdctx);
  759|  10.3k|  }
  760|       |
  761|       |  /* flush the netrc cache */
  762|  10.3k|  Curl_netrc_cleanup(&data->state.netrc);
  763|  10.3k|  return result;
  764|  10.3k|}
multi.c:multi_done_locked:
  637|  10.3k|{
  638|  10.3k|  struct multi_done_ctx *mdctx = userdata;
  639|       |
  640|  10.3k|  Curl_detach_connection(data);
  641|       |
  642|  10.3k|  CURL_TRC_M(data, "multi_done_locked, in use=%u", conn->attached_xfers);
  ------------------
  |  |  148|  10.3k|  do {                                   \
  |  |  149|  10.3k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  10.3k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  10.3k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  20.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 10.3k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 10.3k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  20.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  10.3k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  10.3k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  643|  10.3k|  if(CONN_INUSE(conn)) {
  ------------------
  |  |  346|  10.3k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (346:23): [True: 0, False: 10.3k]
  |  |  ------------------
  ------------------
  644|       |    /* Stop if still used. */
  645|      0|    CURL_TRC_M(data, "Connection still in use %u, no more multi_done now!",
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  646|      0|               conn->attached_xfers);
  647|      0|    return;
  648|      0|  }
  649|       |
  650|  10.3k|  data->state.done = TRUE; /* called now! */
  ------------------
  |  | 1055|  10.3k|#define TRUE true
  ------------------
  651|  10.3k|  data->state.recent_conn_id = conn->connection_id;
  652|       |
  653|  10.3k|  Curl_dnscache_prune(data);
  654|       |
  655|  10.3k|  if(multi_conn_should_close(conn, data, (bool)mdctx->premature)) {
  ------------------
  |  Branch (655:6): [True: 6.05k, False: 4.27k]
  ------------------
  656|  6.05k|    CURL_TRC_M(data, "multi_done, terminating conn #%" FMT_OFF_T " to %s, "
  ------------------
  |  |  148|  6.05k|  do {                                   \
  |  |  149|  6.05k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  6.05k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  6.05k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  12.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 6.05k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 6.05k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  12.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  6.05k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  6.05k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  6.05k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 6.05k]
  |  |  ------------------
  ------------------
  657|  6.05k|               "forbid=%d, close=%d, premature=%d, conn_multiplex=%d",
  658|  6.05k|               conn->connection_id, conn->destination,
  659|  6.05k|               data->set.reuse_forbid, conn->bits.close, mdctx->premature,
  660|  6.05k|               Curl_conn_is_multiplex(conn, FIRSTSOCKET));
  661|  6.05k|    connclose(conn, "disconnecting");
  ------------------
  |  |  103|  6.05k|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|  6.05k|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
  662|  6.05k|    Curl_conn_terminate(data, conn, (bool)mdctx->premature);
  663|  6.05k|  }
  664|  4.27k|  else if(!Curl_conn_get_max_concurrent(data, conn, FIRSTSOCKET)) {
  ------------------
  |  |  303|  4.27k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (664:11): [True: 3, False: 4.26k]
  ------------------
  665|      3|    CURL_TRC_M(data, "multi_done, conn #%" FMT_OFF_T " to %s was shutdown"
  ------------------
  |  |  148|      3|  do {                                   \
  |  |  149|      3|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      3|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      3|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      6|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 3, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 3]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      6|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      3|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      3|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      3|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 3]
  |  |  ------------------
  ------------------
  666|      3|               " by server, not reusing", conn->connection_id,
  667|      3|               conn->destination);
  668|      3|    connclose(conn, "server shutdown");
  ------------------
  |  |  103|      3|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|      3|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
  669|      3|    Curl_conn_terminate(data, conn, (bool)mdctx->premature);
  670|      3|  }
  671|  4.26k|  else {
  672|       |    /* the connection is no longer in use by any transfer */
  673|  4.26k|    if(Curl_cpool_conn_now_idle(data, conn)) {
  ------------------
  |  Branch (673:8): [True: 4.26k, False: 0]
  ------------------
  674|       |      /* connection kept in the cpool */
  675|  4.26k|      data->state.lastconnect_id = conn->connection_id;
  676|  4.26k|      infof(data, "Connection #%" FMT_OFF_T " to host %s left intact",
  ------------------
  |  |  143|  4.26k|  do {                               \
  |  |  144|  4.26k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  4.26k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 4.26k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.26k]
  |  |  |  |  ------------------
  |  |  |  |  320|  4.26k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  4.26k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  4.26k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 4.26k]
  |  |  ------------------
  ------------------
  677|  4.26k|            conn->connection_id, conn->destination);
  678|  4.26k|    }
  679|      0|    else {
  680|       |      /* connection was removed from the cpool and destroyed. */
  681|      0|      data->state.lastconnect_id = -1;
  682|      0|    }
  683|  4.26k|  }
  684|  10.3k|}
multi.c:multi_conn_should_close:
  596|  10.3k|{
  597|       |  /* if conn->bits.close is TRUE, it means that the connection should be
  598|       |     closed in spite of everything else. */
  599|  10.3k|  if(conn->bits.close)
  ------------------
  |  Branch (599:6): [True: 4.98k, False: 5.33k]
  ------------------
  600|  4.98k|    return TRUE;
  ------------------
  |  | 1055|  4.98k|#define TRUE true
  ------------------
  601|       |
  602|       |  /* if data->set.reuse_forbid is TRUE, it means the libcurl client has
  603|       |     forced us to close this connection. This is ignored for requests taking
  604|       |     place in a NTLM/NEGOTIATE authentication handshake. */
  605|  5.33k|  if(data->set.reuse_forbid
  ------------------
  |  Branch (605:6): [True: 0, False: 5.33k]
  ------------------
  606|       |#ifdef USE_NTLM
  607|       |     && !(conn->http_ntlm_state == NTLMSTATE_TYPE2 ||
  608|       |          conn->proxy_ntlm_state == NTLMSTATE_TYPE2)
  609|       |#endif
  610|       |#ifdef USE_SPNEGO
  611|       |     && !(conn->http_negotiate_state == GSS_AUTHRECV ||
  612|       |          conn->proxy_negotiate_state == GSS_AUTHRECV)
  613|       |#endif
  614|  5.33k|    )
  615|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  616|       |
  617|       |  /* Unless this connection is for a "connect-only" transfer, it
  618|       |   * needs to be closed if the protocol handler does not support reuse. */
  619|  5.33k|  if(!data->set.connect_only && conn->scheme &&
  ------------------
  |  Branch (619:6): [True: 4.92k, False: 411]
  |  Branch (619:33): [True: 4.92k, False: 0]
  ------------------
  620|  4.92k|     !(conn->scheme->flags & PROTOPT_CONN_REUSE))
  ------------------
  |  |  238|  4.92k|#define PROTOPT_CONN_REUSE (1 << 16)  /* this protocol can reuse connections */
  ------------------
  |  Branch (620:6): [True: 553, False: 4.37k]
  ------------------
  621|    553|    return TRUE;
  ------------------
  |  | 1055|    553|#define TRUE true
  ------------------
  622|       |
  623|       |  /* if premature is TRUE, it means this connection was said to be DONE before
  624|       |     the entire request operation is complete and thus we cannot know in what
  625|       |     state it is for reusing, so we are forced to close it. In a perfect world
  626|       |     we can add code that keep track of if we really must close it here or not,
  627|       |     but currently we have no such detail knowledge. */
  628|  4.78k|  if(premature && !Curl_conn_is_multiplex(conn, FIRSTSOCKET))
  ------------------
  |  |  303|    953|#define FIRSTSOCKET     0
  ------------------
  |  Branch (628:6): [True: 953, False: 3.83k]
  |  Branch (628:19): [True: 513, False: 440]
  ------------------
  629|    513|    return TRUE;
  ------------------
  |  | 1055|    513|#define TRUE true
  ------------------
  630|       |
  631|  4.27k|  return FALSE;
  ------------------
  |  | 1058|  4.27k|#define FALSE false
  ------------------
  632|  4.78k|}
multi.c:close_connect_only:
  769|    830|{
  770|    830|  (void)userdata;
  771|    830|  (void)data;
  772|    830|  if(conn->bits.connect_only)
  ------------------
  |  Branch (772:6): [True: 0, False: 830]
  ------------------
  773|      0|    connclose(conn, "Removing connect-only easy handle");
  ------------------
  |  |  103|      0|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|      0|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
  774|    830|}
multi.c:mstate_connecting_pollset:
 1024|  4.13k|{
 1025|  4.13k|  struct connectdata *conn = data->conn;
 1026|  4.13k|  curl_socket_t sockfd;
 1027|  4.13k|  CURLcode result = CURLE_OK;
 1028|       |
 1029|  4.13k|  if(Curl_xfer_recv_is_paused(data))
  ------------------
  |  Branch (1029:6): [True: 0, False: 4.13k]
  ------------------
 1030|      0|    return CURLE_OK;
 1031|       |  /* If a socket is set, receiving is default. If the socket
 1032|       |   * has not been determined yet (eyeballing), always ask the
 1033|       |   * connection filters for what to monitor. */
 1034|  4.13k|  sockfd = Curl_conn_get_first_socket(data);
 1035|  4.13k|  if(sockfd != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  4.13k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1035:6): [True: 4.13k, False: 0]
  ------------------
 1036|  4.13k|    result = Curl_pollset_change(data, ps, sockfd, CURL_POLL_IN, 0);
  ------------------
  |  |  283|  4.13k|#define CURL_POLL_IN     1
  ------------------
 1037|  4.13k|    if(!result)
  ------------------
  |  Branch (1037:8): [True: 4.13k, False: 0]
  ------------------
 1038|  4.13k|      result = multi_adjust_pollset(data, ps);
 1039|  4.13k|  }
 1040|  4.13k|  if(!result)
  ------------------
  |  Branch (1040:6): [True: 4.13k, False: 0]
  ------------------
 1041|  4.13k|    result = Curl_conn_adjust_pollset(data, conn, ps);
 1042|  4.13k|  return result;
 1043|  4.13k|}
multi.c:multi_adjust_pollset:
  979|   114k|{
  980|   114k|  CURLcode result = CURLE_OK;
  981|       |
  982|   114k|  if(ps->n) {
  ------------------
  |  Branch (982:6): [True: 109k, False: 4.64k]
  ------------------
  983|   109k|    const struct curltime *pnow = Curl_pgrs_now(data);
  984|   109k|    bool send_blocked, recv_blocked;
  985|       |
  986|   109k|    recv_blocked = (Curl_rlimit_avail(&data->progress.dl.rlimit, pnow) <= 0);
  987|   109k|    send_blocked = (Curl_rlimit_avail(&data->progress.ul.rlimit, pnow) <= 0);
  988|   109k|    if(send_blocked || recv_blocked) {
  ------------------
  |  Branch (988:8): [True: 0, False: 109k]
  |  Branch (988:24): [True: 0, False: 109k]
  ------------------
  989|      0|      int i;
  990|      0|      for(i = 0; i <= SECONDARYSOCKET; ++i) {
  ------------------
  |  |  304|      0|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (990:18): [True: 0, False: 0]
  ------------------
  991|      0|        curl_socket_t sock = data->conn->sock[i];
  992|      0|        if(sock == CURL_SOCKET_BAD)
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (992:12): [True: 0, False: 0]
  ------------------
  993|      0|          continue;
  994|      0|        if(recv_blocked && Curl_pollset_want_recv(data, ps, sock)) {
  ------------------
  |  Branch (994:12): [True: 0, False: 0]
  |  Branch (994:28): [True: 0, False: 0]
  ------------------
  995|      0|          result = Curl_pollset_remove_in(data, ps, sock);
  ------------------
  |  |  164|      0|  Curl_pollset_change(data, ps, sock, 0, CURL_POLL_IN)
  |  |  ------------------
  |  |  |  |  283|      0|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
  996|      0|          if(result)
  ------------------
  |  Branch (996:14): [True: 0, False: 0]
  ------------------
  997|      0|            break;
  998|      0|        }
  999|      0|        if(send_blocked && Curl_pollset_want_send(data, ps, sock)) {
  ------------------
  |  Branch (999:12): [True: 0, False: 0]
  |  Branch (999:28): [True: 0, False: 0]
  ------------------
 1000|      0|          result = Curl_pollset_remove_out(data, ps, sock);
  ------------------
  |  |  168|      0|  Curl_pollset_change(data, ps, sock, 0, CURL_POLL_OUT)
  |  |  ------------------
  |  |  |  |  284|      0|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
 1001|      0|          if(result)
  ------------------
  |  Branch (1001:14): [True: 0, False: 0]
  ------------------
 1002|      0|            break;
 1003|      0|        }
 1004|      0|      }
 1005|      0|    }
 1006|       |
 1007|       |    /* Not blocked and wanting to receive. If there is data pending
 1008|       |     * in the connection filters, make transfer run again. */
 1009|   109k|    if(!recv_blocked &&
  ------------------
  |  Branch (1009:8): [True: 109k, False: 0]
  ------------------
 1010|   109k|       ((Curl_pollset_want_recv(data, ps, data->conn->sock[FIRSTSOCKET]) &&
  ------------------
  |  |  303|   109k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (1010:10): [True: 97.7k, False: 11.8k]
  ------------------
 1011|  97.7k|         Curl_conn_data_pending(data, FIRSTSOCKET)) ||
  ------------------
  |  |  303|  97.7k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (1011:10): [True: 0, False: 97.7k]
  ------------------
 1012|   109k|        (Curl_pollset_want_recv(data, ps, data->conn->sock[SECONDARYSOCKET]) &&
  ------------------
  |  |  304|   109k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (1012:10): [True: 0, False: 109k]
  ------------------
 1013|      0|         Curl_conn_data_pending(data, SECONDARYSOCKET)))) {
  ------------------
  |  |  304|      0|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (1013:10): [True: 0, False: 0]
  ------------------
 1014|      0|      CURL_TRC_M(data, "pollset[] has POLLIN, but there is still "
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1015|      0|                 "buffered input -> mark as dirty");
 1016|      0|      Curl_multi_mark_dirty(data);
 1017|      0|    }
 1018|   109k|  }
 1019|   114k|  return result;
 1020|   114k|}
multi.c:mstate_perform_pollset:
 1107|   110k|{
 1108|   110k|  struct connectdata *conn = data->conn;
 1109|   110k|  CURLcode result = CURLE_OK;
 1110|       |
 1111|   110k|  if(conn->scheme->run->perform_pollset)
  ------------------
  |  Branch (1111:6): [True: 110k, False: 0]
  ------------------
 1112|   110k|    result = conn->scheme->run->perform_pollset(data, ps);
 1113|      0|  else {
 1114|       |    /* Default is to obey the request flags for send/recv */
 1115|      0|    if(Curl_req_want_recv(data) && CONN_SOCK_IDX_VALID(conn->recv_idx)) {
  ------------------
  |  |  382|      0|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 0, False: 0]
  |  |  |  Branch (382:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1115:8): [True: 0, False: 0]
  ------------------
 1116|      0|      result = Curl_pollset_add_in(data, ps, conn->sock[conn->recv_idx]);
  ------------------
  |  |  162|      0|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, 0)
  |  |  ------------------
  |  |  |  |  283|      0|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1117|      0|    }
 1118|      0|    if(!result && Curl_req_want_send(data) &&
  ------------------
  |  Branch (1118:8): [True: 0, False: 0]
  |  Branch (1118:19): [True: 0, False: 0]
  ------------------
 1119|      0|       CONN_SOCK_IDX_VALID(conn->send_idx)) {
  ------------------
  |  |  382|      0|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 0, False: 0]
  |  |  |  Branch (382:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1120|      0|      result = Curl_pollset_add_out(data, ps, conn->sock[conn->send_idx]);
  ------------------
  |  |  166|      0|  Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, 0)
  |  |  ------------------
  |  |  |  |  284|      0|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
 1121|      0|    }
 1122|      0|  }
 1123|   110k|  if(!result)
  ------------------
  |  Branch (1123:6): [True: 110k, False: 0]
  ------------------
 1124|   110k|    result = multi_adjust_pollset(data, ps);
 1125|   110k|  if(!result)
  ------------------
  |  Branch (1125:6): [True: 110k, False: 0]
  ------------------
 1126|   110k|    result = Curl_conn_adjust_pollset(data, conn, ps);
 1127|   110k|  return result;
 1128|   110k|}
multi.c:multi_perform:
 2856|   122k|{
 2857|   122k|  CURLMcode returncode = CURLM_OK;
 2858|   122k|  struct curltime start = *multi_now(multi);
 2859|   122k|  uint32_t mid;
 2860|   122k|  struct Curl_sigpipe_ctx sigpipe_ctx;
 2861|       |
 2862|   122k|  if(multi->in_callback)
  ------------------
  |  Branch (2862:6): [True: 0, False: 122k]
  ------------------
 2863|      0|    return CURLM_RECURSIVE_API_CALL;
 2864|       |
 2865|   122k|  if(multi->in_ntfy_callback)
  ------------------
  |  Branch (2865:6): [True: 0, False: 122k]
  ------------------
 2866|      0|    return CURLM_RECURSIVE_API_CALL;
 2867|       |
 2868|   122k|  sigpipe_init(&sigpipe_ctx);
 2869|       |
 2870|   122k|  if(Curl_uint32_bset_first(&multi->process, &mid)) {
  ------------------
  |  Branch (2870:6): [True: 122k, False: 0]
  ------------------
 2871|   122k|    CURL_TRC_M(multi->admin, "multi_perform(running=%u)",
  ------------------
  |  |  148|   122k|  do {                                   \
  |  |  149|   122k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|   122k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|   122k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|   244k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 122k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 122k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|   244k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|   122k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|   122k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|   122k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 122k]
  |  |  ------------------
  ------------------
 2872|   122k|               Curl_multi_xfers_running(multi));
 2873|   244k|    do {
 2874|   244k|      struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
 2875|   244k|      CURLMcode mresult;
 2876|   244k|      if(!data) {
  ------------------
  |  Branch (2876:10): [True: 0, False: 244k]
  ------------------
 2877|      0|        DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2877:9): [Folded, False: 0]
  |  Branch (2877:9): [Folded, False: 0]
  ------------------
 2878|      0|        Curl_uint32_bset_remove(&multi->process, mid);
 2879|      0|        Curl_uint32_bset_remove(&multi->dirty, mid);
 2880|      0|        continue;
 2881|      0|      }
 2882|   244k|      mresult = multi_runsingle(multi, data, &sigpipe_ctx);
 2883|   244k|      if(mresult)
  ------------------
  |  Branch (2883:10): [True: 0, False: 244k]
  ------------------
 2884|      0|        returncode = mresult;
 2885|   244k|    } while(Curl_uint32_bset_next(&multi->process, mid, &mid));
  ------------------
  |  Branch (2885:13): [True: 122k, False: 122k]
  ------------------
 2886|   122k|  }
 2887|   122k|  sigpipe_restore(&sigpipe_ctx);
 2888|       |
 2889|   122k|  if(multi_ischanged(multi, TRUE))
  ------------------
  |  | 1055|   122k|#define TRUE true
  ------------------
  |  Branch (2889:6): [True: 5.92k, False: 116k]
  ------------------
 2890|  5.92k|    process_pending_handles(multi);
 2891|       |
 2892|   122k|  if(!returncode && CURL_MNTFY_HAS_ENTRIES(multi))
  ------------------
  |  |   56|   122k|#define CURL_MNTFY_HAS_ENTRIES(m)       ((m)->ntfy.has_entries)
  |  |  ------------------
  |  |  |  Branch (56:41): [True: 0, False: 122k]
  |  |  ------------------
  ------------------
  |  Branch (2892:6): [True: 122k, False: 0]
  ------------------
 2893|      0|    returncode = Curl_mntfy_dispatch_all(multi);
 2894|       |
 2895|       |  /*
 2896|       |   * Remove all expired timers from the splay since handles are dealt
 2897|       |   * with unconditionally by this function and curl_multi_timeout() requires
 2898|       |   * that already passed/handled expire times are removed from the splay.
 2899|       |   *
 2900|       |   * It is important that the 'now' value is set at the entry of this function
 2901|       |   * and not for the current time as it may have ticked a little while since
 2902|       |   * then and then we risk this loop to remove timers that actually have not
 2903|       |   * been handled!
 2904|       |   */
 2905|   122k|  if(multi->timetree) {
  ------------------
  |  Branch (2905:6): [True: 114k, False: 7.80k]
  ------------------
 2906|   114k|    struct Curl_tree *t = NULL;
 2907|   115k|    do {
 2908|   115k|      multi->timetree = Curl_splaygetbest(&start, multi->timetree, &t);
 2909|   115k|      if(t) {
  ------------------
  |  Branch (2909:10): [True: 1.39k, False: 114k]
  ------------------
 2910|       |        /* the removed may have another timeout in queue */
 2911|  1.39k|        struct Curl_easy *data = Curl_splayget(t);
 2912|  1.39k|        (void)add_next_timeout(&start, multi, data);
 2913|  1.39k|        if(data->mstate == MSTATE_PENDING) {
  ------------------
  |  Branch (2913:12): [True: 0, False: 1.39k]
  ------------------
 2914|      0|          bool stream_unused;
 2915|      0|          CURLcode result_unused;
 2916|      0|          if(multi_handle_timeout(data, &stream_unused, &result_unused)) {
  ------------------
  |  Branch (2916:14): [True: 0, False: 0]
  ------------------
 2917|      0|            infof(data, "PENDING handle timeout");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2918|      0|            move_pending_to_connect(multi, data);
 2919|      0|          }
 2920|      0|        }
 2921|  1.39k|      }
 2922|   115k|    } while(t);
  ------------------
  |  Branch (2922:13): [True: 1.39k, False: 114k]
  ------------------
 2923|   114k|  }
 2924|       |
 2925|   122k|  if(running_handles) {
  ------------------
  |  Branch (2925:6): [True: 122k, False: 0]
  ------------------
 2926|   122k|    unsigned int running = Curl_multi_xfers_running(multi);
 2927|   122k|    *running_handles = (running < INT_MAX) ? (int)running : INT_MAX;
  ------------------
  |  Branch (2927:24): [True: 122k, False: 0]
  ------------------
 2928|   122k|  }
 2929|       |
 2930|   122k|  if(CURLM_OK >= returncode)
  ------------------
  |  Branch (2930:6): [True: 122k, False: 0]
  ------------------
 2931|   122k|    returncode = Curl_update_timer(multi);
 2932|       |
 2933|   122k|  return returncode;
 2934|   122k|}
multi.c:multi_now:
  104|   122k|{
  105|   122k|  curlx_pnow(&multi->now);
  106|   122k|  return &multi->now;
  107|   122k|}
multi.c:multi_runsingle:
 2687|   244k|{
 2688|   244k|  CURLMcode mresult;
 2689|   244k|  CURLcode result = CURLE_OK;
 2690|       |
 2691|   244k|  if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |  136|   244k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|   244k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|   244k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 244k, False: 0]
  |  |  |  Branch (136:12): [True: 244k, False: 0]
  |  |  ------------------
  |  |  137|   244k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (2691:6): [True: 0, False: 244k]
  |  Branch (2691:7): [True: 0, False: 0]
  |  Branch (2691:7): [True: 0, False: 0]
  ------------------
 2692|      0|    return CURLM_BAD_EASY_HANDLE;
 2693|       |
 2694|   244k|  if(multi->dead) {
  ------------------
  |  Branch (2694:6): [True: 0, False: 244k]
  ------------------
 2695|       |    /* a multi-level callback returned error before, meaning every individual
 2696|       |     transfer now has failed */
 2697|      0|    result = CURLE_ABORTED_BY_CALLBACK;
 2698|      0|    multi_posttransfer(data);
 2699|      0|    multi_done(data, result, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2700|      0|    multistate(data, MSTATE_COMPLETED);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2701|      0|  }
 2702|       |
 2703|   244k|  multi_warn_debug(multi, data);
 2704|       |
 2705|       |  /* transfer runs now, clear the dirty bit. This may be set
 2706|       |   * again during processing, triggering a re-run later. */
 2707|   244k|  Curl_uint32_bset_remove(&multi->dirty, data->mid);
 2708|       |
 2709|   244k|  if(data == multi->admin) {
  ------------------
  |  Branch (2709:6): [True: 122k, False: 122k]
  ------------------
 2710|   122k|#ifdef ENABLE_WAKEUP
 2711|       |    /* Consume any pending wakeup signals before processing.
 2712|       |     * This is necessary for event based processing. See #21547 */
 2713|   122k|    (void)Curl_wakeup_consume(multi->wakeup_pair, TRUE);
  ------------------
  |  | 1055|   122k|#define TRUE true
  ------------------
 2714|   122k|#endif
 2715|   122k|#ifdef USE_RESOLV_THREADED
 2716|   122k|    Curl_async_thrdd_multi_process(multi);
 2717|   122k|#endif
 2718|   122k|    Curl_cshutdn_perform(&multi->cshutdn, multi->admin, sigpipe_ctx);
 2719|   122k|    return CURLM_OK;
 2720|   122k|  }
 2721|       |
 2722|   122k|  sigpipe_apply(data, sigpipe_ctx);
 2723|   197k|  do {
 2724|       |    /* A "stream" here is a logical stream if the protocol can handle that
 2725|       |       (HTTP/2), or the full connection for older protocols */
 2726|   197k|    bool stream_error = FALSE;
  ------------------
  |  | 1058|   197k|#define FALSE false
  ------------------
 2727|   197k|    mresult = CURLM_OK;
 2728|       |
 2729|   197k|    if(multi_ischanged(multi, TRUE)) {
  ------------------
  |  | 1055|   197k|#define TRUE true
  ------------------
  |  Branch (2729:8): [True: 6.36k, False: 190k]
  ------------------
 2730|  6.36k|      CURL_TRC_M(data, "multi changed, check CONNECT_PEND queue");
  ------------------
  |  |  148|  6.36k|  do {                                   \
  |  |  149|  6.36k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  6.36k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  6.36k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  12.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 6.36k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 6.36k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  12.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  6.36k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  6.36k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  6.36k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 6.36k]
  |  |  ------------------
  ------------------
 2731|  6.36k|      process_pending_handles(multi); /* multiplexed */
 2732|  6.36k|    }
 2733|       |
 2734|   197k|    if(data->mstate > MSTATE_CONNECT &&
  ------------------
  |  Branch (2734:8): [True: 167k, False: 30.0k]
  ------------------
 2735|   167k|       data->mstate < MSTATE_COMPLETED) {
  ------------------
  |  Branch (2735:8): [True: 167k, False: 0]
  ------------------
 2736|       |      /* Make sure we set the connection's current owner */
 2737|   167k|      DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|   167k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2737:7): [True: 0, False: 167k]
  |  Branch (2737:7): [True: 167k, False: 0]
  ------------------
 2738|   167k|      if(!data->conn)
  ------------------
  |  Branch (2738:10): [True: 0, False: 167k]
  ------------------
 2739|      0|        return CURLM_INTERNAL_ERROR;
 2740|   167k|    }
 2741|       |
 2742|       |    /* Wait for the connect state as only then is the start time stored, but
 2743|       |       we must not check already completed handles */
 2744|   197k|    if((data->mstate >= MSTATE_CONNECT) && (data->mstate < MSTATE_COMPLETED) &&
  ------------------
  |  Branch (2744:8): [True: 178k, False: 18.9k]
  |  Branch (2744:44): [True: 178k, False: 0]
  ------------------
 2745|   178k|       multi_handle_timeout(data, &stream_error, &result))
  ------------------
  |  Branch (2745:8): [True: 653, False: 177k]
  ------------------
 2746|       |      /* Skip the statemachine and go directly to error handling section. */
 2747|    653|      goto statemachine_end;
 2748|       |
 2749|   196k|    switch(data->mstate) {
 2750|  7.82k|    case MSTATE_INIT:
  ------------------
  |  Branch (2750:5): [True: 7.82k, False: 188k]
  ------------------
 2751|       |      /* Transitional state. init this transfer. A handle never comes back to
 2752|       |         this state. */
 2753|  7.82k|      mresult = multistate_init(data, &result);
 2754|  7.82k|      break;
 2755|       |
 2756|  11.1k|    case MSTATE_SETUP:
  ------------------
  |  Branch (2756:5): [True: 11.1k, False: 185k]
  ------------------
 2757|       |      /* Transitional state. Setup things for a new transfer. The handle
 2758|       |         can come back to this state on a redirect. */
 2759|  11.1k|      mresult = multistate_setup(data);
 2760|  11.1k|      break;
 2761|       |
 2762|  11.1k|    case MSTATE_CONNECT:
  ------------------
  |  Branch (2762:5): [True: 11.1k, False: 185k]
  ------------------
 2763|  11.1k|      mresult = multistate_connect(multi, data, &result);
 2764|  11.1k|      break;
 2765|       |
 2766|  14.2k|    case MSTATE_CONNECTING:
  ------------------
  |  Branch (2766:5): [True: 14.2k, False: 182k]
  ------------------
 2767|       |      /* awaiting a completion of an asynch TCP connect */
 2768|  14.2k|      mresult = multistate_connecting(data, &stream_error, &result);
 2769|  14.2k|      break;
 2770|       |
 2771|  9.58k|    case MSTATE_PROTOCONNECT:
  ------------------
  |  Branch (2771:5): [True: 9.58k, False: 186k]
  ------------------
 2772|  9.58k|      mresult = multistate_protoconnect(data, &stream_error, &result);
 2773|  9.58k|      break;
 2774|       |
 2775|      0|    case MSTATE_PROTOCONNECTING:
  ------------------
  |  Branch (2775:5): [True: 0, False: 196k]
  ------------------
 2776|       |      /* protocol-specific connect phase */
 2777|      0|      mresult = multistate_protoconnecting(data, &stream_error, &result);
 2778|      0|      break;
 2779|       |
 2780|  9.58k|    case MSTATE_DO:
  ------------------
  |  Branch (2780:5): [True: 9.58k, False: 186k]
  ------------------
 2781|  9.58k|      mresult = multistate_do(data, &stream_error, &result);
 2782|  9.58k|      break;
 2783|       |
 2784|      0|    case MSTATE_DOING:
  ------------------
  |  Branch (2784:5): [True: 0, False: 196k]
  ------------------
 2785|       |      /* we continue DOING until the DO phase is complete */
 2786|      0|      mresult = multistate_doing(data, &stream_error, &result);
 2787|      0|      break;
 2788|       |
 2789|      0|    case MSTATE_DOING_MORE:
  ------------------
  |  Branch (2789:5): [True: 0, False: 196k]
  ------------------
 2790|       |      /*
 2791|       |       * When we are connected, DOING MORE and then go DID
 2792|       |       */
 2793|      0|      mresult = multistate_doing_more(data, &stream_error, &result);
 2794|      0|      break;
 2795|       |
 2796|  9.56k|    case MSTATE_DID:
  ------------------
  |  Branch (2796:5): [True: 9.56k, False: 187k]
  ------------------
 2797|  9.56k|      mresult = multistate_did(multi, data);
 2798|  9.56k|      break;
 2799|       |
 2800|    306|    case MSTATE_RATELIMITING: /* limit-rate exceeded in either direction */
  ------------------
  |  Branch (2800:5): [True: 306, False: 196k]
  ------------------
 2801|    306|      mresult = multistate_ratelimiting(data, &result);
 2802|    306|      break;
 2803|       |
 2804|   121k|    case MSTATE_PERFORMING:
  ------------------
  |  Branch (2804:5): [True: 121k, False: 75.2k]
  ------------------
 2805|   121k|      mresult = multistate_performing(data, &stream_error, &result);
 2806|   121k|      break;
 2807|       |
 2808|  1.82k|    case MSTATE_DONE:
  ------------------
  |  Branch (2808:5): [True: 1.82k, False: 194k]
  ------------------
 2809|  1.82k|      mresult = multistate_done(data, &result);
 2810|  1.82k|      break;
 2811|       |
 2812|      0|    case MSTATE_COMPLETED:
  ------------------
  |  Branch (2812:5): [True: 0, False: 196k]
  ------------------
 2813|      0|      break;
 2814|       |
 2815|      0|    case MSTATE_PENDING:
  ------------------
  |  Branch (2815:5): [True: 0, False: 196k]
  ------------------
 2816|      0|    case MSTATE_MSGSENT:
  ------------------
  |  Branch (2816:5): [True: 0, False: 196k]
  ------------------
 2817|       |      /* handles in these states should NOT be in this list */
 2818|      0|      break;
 2819|       |
 2820|      0|    default:
  ------------------
  |  Branch (2820:5): [True: 0, False: 196k]
  ------------------
 2821|      0|      return CURLM_INTERNAL_ERROR;
 2822|   196k|    }
 2823|       |
 2824|   196k|    if(data->mstate >= MSTATE_CONNECT &&
  ------------------
  |  Branch (2824:8): [True: 185k, False: 11.1k]
  ------------------
 2825|   185k|       data->mstate < MSTATE_DO &&
  ------------------
  |  Branch (2825:8): [True: 36.5k, False: 148k]
  ------------------
 2826|  36.5k|       mresult != CURLM_CALL_MULTI_PERFORM &&
  ------------------
  |  Branch (2826:8): [True: 5.47k, False: 31.0k]
  ------------------
 2827|  5.47k|       !multi_ischanged(multi, FALSE)) {
  ------------------
  |  | 1058|  5.47k|#define FALSE false
  ------------------
  |  Branch (2827:8): [True: 4.94k, False: 521]
  ------------------
 2828|       |      /* We now handle stream timeouts if and only if this will be the last
 2829|       |       * loop iteration. We only check this on the last iteration to ensure
 2830|       |       * that if we know we have additional work to do immediately
 2831|       |       * (i.e. CURLM_CALL_MULTI_PERFORM == TRUE) then we should do that before
 2832|       |       * declaring the connection timed out as we may almost have a completed
 2833|       |       * connection. */
 2834|  4.94k|      multi_handle_timeout(data, &stream_error, &result);
 2835|  4.94k|    }
 2836|       |
 2837|   197k|statemachine_end:
 2838|       |
 2839|   197k|    result = is_finished(multi, data, stream_error, result);
 2840|   197k|    if(result)
  ------------------
  |  Branch (2840:8): [True: 6.47k, False: 190k]
  ------------------
 2841|  6.47k|      mresult = CURLM_CALL_MULTI_PERFORM;
 2842|       |
 2843|   197k|    if(MSTATE_COMPLETED == data->mstate) {
  ------------------
  |  Branch (2843:8): [True: 7.80k, False: 189k]
  ------------------
 2844|  7.80k|      handle_completed(multi, data, result);
 2845|  7.80k|      return CURLM_OK;
 2846|  7.80k|    }
 2847|   197k|  } while((mresult == CURLM_CALL_MULTI_PERFORM) ||
  ------------------
  |  Branch (2847:11): [True: 72.7k, False: 116k]
  ------------------
 2848|   116k|          multi_ischanged(multi, FALSE));
  ------------------
  |  | 1058|   116k|#define FALSE false
  ------------------
  |  Branch (2848:11): [True: 2.16k, False: 114k]
  ------------------
 2849|       |
 2850|   114k|  data->result = result;
 2851|   114k|  return mresult;
 2852|   122k|}
multi.c:multi_posttransfer:
 1931|  10.4k|{
 1932|       |#if defined(HAVE_SIGNAL) && defined(SIGPIPE) && !defined(MSG_NOSIGNAL)
 1933|       |  /* restore the signal handler for SIGPIPE before we get back */
 1934|       |  if(!data->set.no_signal)
 1935|       |    signal(SIGPIPE, data->state.prev_signal);
 1936|       |#else
 1937|  10.4k|  (void)data;
 1938|  10.4k|#endif
 1939|  10.4k|}
multi.c:multistate_init:
 2457|  7.82k|{
 2458|  7.82k|  *result = Curl_pretransfer(data);
 2459|  7.82k|  if(*result)
  ------------------
  |  Branch (2459:6): [True: 0, False: 7.82k]
  ------------------
 2460|      0|    return CURLM_OK;
 2461|       |
 2462|       |  /* after init, go SETUP */
 2463|  7.82k|  multistate(data, MSTATE_SETUP);
  ------------------
  |  |  200|  7.82k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2464|  7.82k|  Curl_pgrsTime(data, TIMER_STARTOP);
 2465|  7.82k|  return CURLM_CALL_MULTI_PERFORM;
 2466|  7.82k|}
multi.c:multistate_setup:
 2469|  11.1k|{
 2470|  11.1k|  Curl_pgrsTime(data, TIMER_STARTSINGLE);
 2471|  11.1k|  if(data->set.timeout)
  ------------------
  |  Branch (2471:6): [True: 11.1k, False: 0]
  ------------------
 2472|  11.1k|    Curl_expire(data, data->set.timeout, EXPIRE_TIMEOUT);
 2473|  11.1k|  if(data->set.connecttimeout)
  ------------------
  |  Branch (2473:6): [True: 11.1k, False: 0]
  ------------------
 2474|       |    /* Since a connection might go to pending and back to CONNECT several
 2475|       |       times before it actually takes off, we need to set the timeout once
 2476|       |       in SETUP before we enter CONNECT the first time. */
 2477|  11.1k|    Curl_expire(data, data->set.connecttimeout, EXPIRE_CONNECTTIMEOUT);
 2478|       |
 2479|  11.1k|  multistate(data, MSTATE_CONNECT);
  ------------------
  |  |  200|  11.1k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2480|  11.1k|  return CURLM_CALL_MULTI_PERFORM;
 2481|  11.1k|}
multi.c:multistate_connect:
 2311|  11.1k|{
 2312|       |  /* Connect. We want to get a connection identifier filled in. This state can
 2313|       |     be entered from SETUP and from PENDING. */
 2314|  11.1k|  bool connected;
 2315|  11.1k|  CURLMcode mresult = CURLM_OK;
 2316|  11.1k|  CURLcode result = Curl_connect(data, &connected);
 2317|  11.1k|  if(result == CURLE_NO_CONNECTION_AVAILABLE) {
  ------------------
  |  Branch (2317:6): [True: 0, False: 11.1k]
  ------------------
 2318|       |    /* There was no connection available. We will go to the pending state and
 2319|       |       wait for an available connection. */
 2320|      0|    multistate(data, MSTATE_PENDING);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2321|       |    /* move from process to pending set */
 2322|      0|    Curl_uint32_bset_remove(&multi->process, data->mid);
 2323|      0|    Curl_uint32_bset_remove(&multi->dirty, data->mid);
 2324|      0|    Curl_uint32_bset_add(&multi->pending, data->mid);
 2325|      0|    *resultp = CURLE_OK;
 2326|      0|    return mresult;
 2327|      0|  }
 2328|  11.1k|  else
 2329|  11.1k|    process_pending_handles(data->multi);
 2330|       |
 2331|  11.1k|  if(!result) {
  ------------------
  |  Branch (2331:6): [True: 10.3k, False: 812]
  ------------------
 2332|       |    /* after the connect has been sent off, go WAITCONNECT unless the
 2333|       |       protocol connect is already done and we can go directly to WAITDO or
 2334|       |       DO! */
 2335|  10.3k|    mresult = CURLM_CALL_MULTI_PERFORM;
 2336|       |
 2337|  10.3k|    if(connected) {
  ------------------
  |  Branch (2337:8): [True: 0, False: 10.3k]
  ------------------
 2338|      0|      if(!data->conn->bits.reuse &&
  ------------------
  |  Branch (2338:10): [True: 0, False: 0]
  ------------------
 2339|      0|         Curl_conn_is_multiplex(data->conn, FIRSTSOCKET)) {
  ------------------
  |  |  303|      0|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2339:10): [True: 0, False: 0]
  ------------------
 2340|       |        /* new connection, can multiplex, wake pending handles */
 2341|      0|        process_pending_handles(data->multi);
 2342|      0|      }
 2343|      0|      multistate(data, MSTATE_PROTOCONNECT);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2344|      0|    }
 2345|  10.3k|    else {
 2346|  10.3k|      multistate(data, MSTATE_CONNECTING);
  ------------------
  |  |  200|  10.3k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2347|  10.3k|    }
 2348|  10.3k|  }
 2349|  11.1k|  *resultp = result;
 2350|  11.1k|  return mresult;
 2351|  11.1k|}
multi.c:multistate_connecting:
 2486|  14.2k|{
 2487|  14.2k|  bool connected;
 2488|       |
 2489|  14.2k|  if(!data->conn) {
  ------------------
  |  Branch (2489:6): [True: 0, False: 14.2k]
  ------------------
 2490|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2490:5): [Folded, False: 0]
  |  Branch (2490:5): [Folded, False: 0]
  ------------------
 2491|      0|    *result = CURLE_FAILED_INIT;
 2492|      0|    return CURLM_OK;
 2493|      0|  }
 2494|  14.2k|  if(!Curl_xfer_recv_is_paused(data)) {
  ------------------
  |  Branch (2494:6): [True: 14.2k, False: 0]
  ------------------
 2495|  14.2k|    *result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &connected);
  ------------------
  |  |  303|  14.2k|#define FIRSTSOCKET     0
  ------------------
                  *result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &connected);
  ------------------
  |  | 1058|  14.2k|#define FALSE false
  ------------------
 2496|  14.2k|    if(connected && !(*result)) {
  ------------------
  |  Branch (2496:8): [True: 9.58k, False: 4.65k]
  |  Branch (2496:21): [True: 9.58k, False: 0]
  ------------------
 2497|  9.58k|      if(!data->conn->bits.reuse &&
  ------------------
  |  Branch (2497:10): [True: 6.79k, False: 2.79k]
  ------------------
 2498|  6.79k|         Curl_conn_is_multiplex(data->conn, FIRSTSOCKET)) {
  ------------------
  |  |  303|  6.79k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2498:10): [True: 0, False: 6.79k]
  ------------------
 2499|       |        /* new connection, can multiplex, wake pending handles */
 2500|      0|        process_pending_handles(data->multi);
 2501|      0|      }
 2502|  9.58k|      multistate(data, MSTATE_PROTOCONNECT);
  ------------------
  |  |  200|  9.58k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2503|  9.58k|      return CURLM_CALL_MULTI_PERFORM;
 2504|  9.58k|    }
 2505|  4.65k|    else if(*result) {
  ------------------
  |  Branch (2505:13): [True: 521, False: 4.13k]
  ------------------
 2506|       |      /* failure detected */
 2507|    521|      CURL_TRC_M(data, "connect failed -> %d", *result);
  ------------------
  |  |  148|    521|  do {                                   \
  |  |  149|    521|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|    521|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|    521|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  1.04k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 521, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 521]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  1.04k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|    521|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|    521|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|    521|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 521]
  |  |  ------------------
  ------------------
 2508|    521|      multi_posttransfer(data);
 2509|    521|      multi_done(data, *result, TRUE);
  ------------------
  |  | 1055|    521|#define TRUE true
  ------------------
 2510|    521|      *stream_error = TRUE;
  ------------------
  |  | 1055|    521|#define TRUE true
  ------------------
 2511|    521|      return CURLM_OK;
 2512|    521|    }
 2513|  14.2k|  }
 2514|  4.13k|  return CURLM_OK;
 2515|  14.2k|}
multi.c:multistate_protoconnect:
 2520|  9.58k|{
 2521|  9.58k|  bool protocol_connected = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 2522|       |
 2523|  9.58k|  if(!(*result) && data->conn->bits.reuse) {
  ------------------
  |  Branch (2523:6): [True: 9.58k, False: 0]
  |  Branch (2523:20): [True: 2.79k, False: 6.79k]
  ------------------
 2524|       |    /* ftp seems to hang when protoconnect on reused connection since we
 2525|       |     * handle PROTOCONNECT in general inside the filters, it seems wrong to
 2526|       |     * restart this on a reused connection.
 2527|       |     */
 2528|  2.79k|    multistate(data, MSTATE_DO);
  ------------------
  |  |  200|  2.79k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2529|  2.79k|    return CURLM_CALL_MULTI_PERFORM;
 2530|  2.79k|  }
 2531|  6.79k|  if(!(*result))
  ------------------
  |  Branch (2531:6): [True: 6.79k, False: 0]
  ------------------
 2532|  6.79k|    *result = protocol_connect(data, &protocol_connected);
 2533|  6.79k|  if(!(*result) && !protocol_connected) {
  ------------------
  |  Branch (2533:6): [True: 6.79k, False: 0]
  |  Branch (2533:20): [True: 0, False: 6.79k]
  ------------------
 2534|       |    /* switch to waiting state */
 2535|      0|    multistate(data, MSTATE_PROTOCONNECTING);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2536|      0|    return CURLM_CALL_MULTI_PERFORM;
 2537|      0|  }
 2538|  6.79k|  else if(!(*result)) {
  ------------------
  |  Branch (2538:11): [True: 6.79k, False: 0]
  ------------------
 2539|       |    /* protocol connect has completed, go WAITDO or DO */
 2540|  6.79k|    multistate(data, MSTATE_DO);
  ------------------
  |  |  200|  6.79k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2541|  6.79k|    return CURLM_CALL_MULTI_PERFORM;
 2542|  6.79k|  }
 2543|       |
 2544|       |  /* failure detected */
 2545|      0|  multi_posttransfer(data);
 2546|      0|  multi_done(data, *result, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2547|       |  *stream_error = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2548|      0|  return CURLM_OK;
 2549|  6.79k|}
multi.c:protocol_connect:
 1896|  6.79k|{
 1897|  6.79k|  struct connectdata *conn = data->conn;
 1898|  6.79k|  CURLcode result = CURLE_OK;
 1899|       |
 1900|  6.79k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  6.79k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1900:3): [True: 0, False: 6.79k]
  |  Branch (1900:3): [True: 6.79k, False: 0]
  ------------------
 1901|  6.79k|  DEBUGASSERT(protocol_done);
  ------------------
  |  | 1081|  6.79k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1901:3): [True: 0, False: 6.79k]
  |  Branch (1901:3): [True: 6.79k, False: 0]
  ------------------
 1902|  6.79k|  DEBUGASSERT(Curl_conn_is_connected(conn, FIRSTSOCKET));
  ------------------
  |  | 1081|  6.79k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1902:3): [True: 0, False: 6.79k]
  |  Branch (1902:3): [True: 6.79k, False: 0]
  ------------------
 1903|       |
 1904|  6.79k|  *protocol_done = FALSE;
  ------------------
  |  | 1058|  6.79k|#define FALSE false
  ------------------
 1905|  6.79k|  if(!conn->bits.protoconnstart) {
  ------------------
  |  Branch (1905:6): [True: 6.79k, False: 0]
  ------------------
 1906|  6.79k|    if(conn->scheme->run->connect_it) {
  ------------------
  |  Branch (1906:8): [True: 0, False: 6.79k]
  ------------------
 1907|       |      /* Call the protocol-specific connect function */
 1908|      0|      result = conn->scheme->run->connect_it(data, protocol_done);
 1909|      0|      if(result)
  ------------------
  |  Branch (1909:10): [True: 0, False: 0]
  ------------------
 1910|      0|        return result;
 1911|      0|    }
 1912|  6.79k|    conn->bits.protoconnstart = TRUE;
  ------------------
  |  | 1055|  6.79k|#define TRUE true
  ------------------
 1913|  6.79k|  }
 1914|       |
 1915|       |  /* Unless this protocol does not have any protocol-connect callback, as
 1916|       |     then we know we are done. */
 1917|  6.79k|  if(!conn->scheme->run->connecting)
  ------------------
  |  Branch (1917:6): [True: 6.79k, False: 0]
  ------------------
 1918|  6.79k|    *protocol_done = TRUE;
  ------------------
  |  | 1055|  6.79k|#define TRUE true
  ------------------
 1919|  6.79k|  return CURLE_OK;
 1920|  6.79k|}
multi.c:multistate_do:
 2149|  9.58k|{
 2150|  9.58k|  CURLMcode mresult = CURLM_OK;
 2151|  9.58k|  CURLcode result = CURLE_OK;
 2152|  9.58k|  if(data->set.fprereq) {
  ------------------
  |  Branch (2152:6): [True: 0, False: 9.58k]
  ------------------
 2153|      0|    int prereq_rc;
 2154|       |
 2155|       |    /* call the prerequest callback function */
 2156|      0|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2157|      0|    prereq_rc = data->set.fprereq(data->set.prereq_userp,
 2158|      0|                                  data->info.primary.remote_ip,
 2159|      0|                                  data->info.primary.local_ip,
 2160|      0|                                  data->info.primary.remote_port,
 2161|      0|                                  data->info.primary.local_port);
 2162|      0|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2163|      0|    if(prereq_rc != CURL_PREREQFUNC_OK) {
  ------------------
  |  |  506|      0|#define CURL_PREREQFUNC_OK 0
  ------------------
  |  Branch (2163:8): [True: 0, False: 0]
  ------------------
 2164|      0|      failf(data, "operation aborted by pre-request callback");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2165|       |      /* failure in pre-request callback - do not do any other processing */
 2166|      0|      result = CURLE_ABORTED_BY_CALLBACK;
 2167|      0|      multi_posttransfer(data);
 2168|      0|      multi_done(data, result, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2169|      0|      *stream_errorp = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2170|      0|      goto end;
 2171|      0|    }
 2172|      0|  }
 2173|       |
 2174|  9.58k|  if(data->set.connect_only && !data->set.connect_only_ws) {
  ------------------
  |  Branch (2174:6): [True: 445, False: 9.14k]
  |  Branch (2174:32): [True: 2, False: 443]
  ------------------
 2175|      2|    multistate(data, MSTATE_DONE);
  ------------------
  |  |  200|      2|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2176|      2|    mresult = CURLM_CALL_MULTI_PERFORM;
 2177|      2|  }
 2178|  9.58k|  else {
 2179|  9.58k|    bool dophase_done = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
 2180|       |    /* Perform the protocol's DO action */
 2181|  9.58k|    result = multi_do(data, &dophase_done);
 2182|       |
 2183|       |    /* When multi_do() returns failure, data->conn might be NULL! */
 2184|       |
 2185|  9.58k|    if(!result) {
  ------------------
  |  Branch (2185:8): [True: 9.56k, False: 15]
  ------------------
 2186|  9.56k|      if(!dophase_done) {
  ------------------
  |  Branch (2186:10): [True: 0, False: 9.56k]
  ------------------
 2187|      0|#ifndef CURL_DISABLE_FTP
 2188|       |        /* some steps needed for wildcard matching */
 2189|      0|        if(data->state.wildcardmatch) {
  ------------------
  |  Branch (2189:12): [True: 0, False: 0]
  ------------------
 2190|      0|          struct WildcardData *wc = data->wildcard;
 2191|      0|          if(wc->state == CURLWC_DONE || wc->state == CURLWC_SKIP) {
  ------------------
  |  Branch (2191:14): [True: 0, False: 0]
  |  Branch (2191:42): [True: 0, False: 0]
  ------------------
 2192|       |            /* skip some states if it is important */
 2193|      0|            multi_done(data, CURLE_OK, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2194|       |
 2195|       |            /* if there is no connection left, skip the DONE state */
 2196|      0|            multistate(data, data->conn ? MSTATE_DONE : MSTATE_COMPLETED);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  |  |  ------------------
  |  |  |  Branch (200:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2197|      0|            mresult = CURLM_CALL_MULTI_PERFORM;
 2198|      0|            goto end;
 2199|      0|          }
 2200|      0|        }
 2201|      0|#endif
 2202|       |        /* DO was not completed in one function call, we must continue
 2203|       |           DOING... */
 2204|      0|        multistate(data, MSTATE_DOING);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2205|      0|        mresult = CURLM_CALL_MULTI_PERFORM;
 2206|      0|      }
 2207|       |
 2208|       |      /* after DO, go DO_DONE... or DO_MORE */
 2209|  9.56k|      else if(data->conn->bits.do_more) {
  ------------------
  |  Branch (2209:15): [True: 0, False: 9.56k]
  ------------------
 2210|       |        /* we are supposed to do more, but we need to sit down, relax and wait
 2211|       |           a little while first */
 2212|      0|        multistate(data, MSTATE_DOING_MORE);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2213|      0|        mresult = CURLM_CALL_MULTI_PERFORM;
 2214|      0|      }
 2215|  9.56k|      else {
 2216|       |        /* we are done with the DO, now DID */
 2217|  9.56k|        multistate(data, MSTATE_DID);
  ------------------
  |  |  200|  9.56k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2218|  9.56k|        mresult = CURLM_CALL_MULTI_PERFORM;
 2219|  9.56k|      }
 2220|  9.56k|    }
 2221|     15|    else if((result == CURLE_SEND_ERROR) &&
  ------------------
  |  Branch (2221:13): [True: 0, False: 15]
  ------------------
 2222|      0|            data->conn->bits.reuse) {
  ------------------
  |  Branch (2222:13): [True: 0, False: 0]
  ------------------
 2223|       |      /*
 2224|       |       * In this situation, a connection that we were trying to use may have
 2225|       |       * unexpectedly died. If possible, send the connection back to the
 2226|       |       * CONNECT phase so we can try again.
 2227|       |       */
 2228|      0|      const struct Curl_scheme *handler = data->conn->scheme;
 2229|      0|      char *newurl = NULL;
 2230|      0|      followtype follow = FOLLOW_NONE;
 2231|      0|      CURLcode drc;
 2232|       |
 2233|      0|      drc = Curl_retry_request(data, &newurl);
 2234|      0|      if(drc) {
  ------------------
  |  Branch (2234:10): [True: 0, False: 0]
  ------------------
 2235|       |        /* a failure here pretty much implies an out of memory */
 2236|      0|        result = drc;
 2237|      0|        *stream_errorp = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2238|      0|      }
 2239|       |
 2240|      0|      multi_posttransfer(data);
 2241|      0|      drc = multi_done(data, result, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2242|       |
 2243|       |      /* When set to retry the connection, we must go back to the CONNECT
 2244|       |       * state */
 2245|      0|      if(newurl) {
  ------------------
  |  Branch (2245:10): [True: 0, False: 0]
  ------------------
 2246|      0|        if(!drc || (drc == CURLE_SEND_ERROR)) {
  ------------------
  |  Branch (2246:12): [True: 0, False: 0]
  |  Branch (2246:20): [True: 0, False: 0]
  ------------------
 2247|      0|          follow = FOLLOW_RETRY;
 2248|      0|          drc = multi_follow(data, handler, newurl, follow);
 2249|      0|          if(!drc) {
  ------------------
  |  Branch (2249:14): [True: 0, False: 0]
  ------------------
 2250|      0|            multistate(data, MSTATE_SETUP);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2251|      0|            mresult = CURLM_CALL_MULTI_PERFORM;
 2252|      0|            result = CURLE_OK;
 2253|      0|          }
 2254|      0|          else {
 2255|       |            /* Follow failed */
 2256|      0|            result = drc;
 2257|      0|          }
 2258|      0|        }
 2259|      0|        else {
 2260|       |          /* done did not return OK or SEND_ERROR */
 2261|      0|          result = drc;
 2262|      0|        }
 2263|      0|      }
 2264|      0|      else {
 2265|       |        /* Have error handler disconnect conn if we cannot retry */
 2266|      0|        *stream_errorp = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2267|      0|      }
 2268|      0|      curlx_free(newurl);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2269|      0|    }
 2270|     15|    else {
 2271|       |      /* failure detected */
 2272|     15|      multi_posttransfer(data);
 2273|     15|      if(data->conn)
  ------------------
  |  Branch (2273:10): [True: 15, False: 0]
  ------------------
 2274|     15|        multi_done(data, result, FALSE);
  ------------------
  |  | 1058|     15|#define FALSE false
  ------------------
 2275|     15|      *stream_errorp = TRUE;
  ------------------
  |  | 1055|     15|#define TRUE true
  ------------------
 2276|     15|    }
 2277|  9.58k|  }
 2278|  9.58k|end:
 2279|  9.58k|  *resultp = result;
 2280|  9.58k|  return mresult;
 2281|  9.58k|}
multi.c:multi_do:
 1762|  9.58k|{
 1763|  9.58k|  CURLcode result = CURLE_OK;
 1764|  9.58k|  struct connectdata *conn = data->conn;
 1765|       |
 1766|  9.58k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1766:3): [True: 0, False: 9.58k]
  |  Branch (1766:3): [True: 9.58k, False: 0]
  ------------------
 1767|  9.58k|  DEBUGASSERT(conn->scheme);
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1767:3): [True: 0, False: 9.58k]
  |  Branch (1767:3): [True: 9.58k, False: 0]
  ------------------
 1768|       |
 1769|  9.58k|  if(conn->scheme->run->do_it)
  ------------------
  |  Branch (1769:6): [True: 9.58k, False: 0]
  ------------------
 1770|  9.58k|    result = conn->scheme->run->do_it(data, done);
 1771|       |
 1772|  9.58k|  return result;
 1773|  9.58k|}
multi.c:multi_follow:
 1951|  3.65k|{
 1952|  3.65k|  if(handler && handler->run->follow)
  ------------------
  |  Branch (1952:6): [True: 3.65k, False: 0]
  |  Branch (1952:17): [True: 3.65k, False: 0]
  ------------------
 1953|  3.65k|    return handler->run->follow(data, newurl, type);
 1954|       |
 1955|      0|  if(type == FOLLOW_RETRY)
  ------------------
  |  Branch (1955:6): [True: 0, False: 0]
  ------------------
 1956|       |    /* Retries are generic and do not require protocol-specific redirect
 1957|       |       handling. */
 1958|      0|    return CURLE_OK;
 1959|       |
 1960|      0|  return CURLE_TOO_MANY_REDIRECTS;
 1961|      0|}
multi.c:multistate_did:
 2632|  9.56k|{
 2633|  9.56k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  9.56k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2633:3): [True: 0, False: 9.56k]
  |  Branch (2633:3): [True: 9.56k, False: 0]
  ------------------
 2634|  9.56k|  if(data->conn->bits.multiplex)
  ------------------
  |  Branch (2634:6): [True: 2.88k, False: 6.68k]
  ------------------
 2635|       |    /* Check if we can move pending requests to send pipe */
 2636|  2.88k|    process_pending_handles(multi); /* multiplexed */
 2637|       |
 2638|       |  /* Only perform the transfer if there is a good socket to work with.
 2639|       |     Having both BAD is a signal to skip immediately to DONE */
 2640|  9.56k|  if(CONN_SOCK_IDX_VALID(data->conn->recv_idx) ||
  ------------------
  |  |  382|  19.1k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 9.56k, False: 0]
  |  |  |  Branch (382:50): [True: 9.56k, False: 0]
  |  |  ------------------
  ------------------
 2641|      0|     CONN_SOCK_IDX_VALID(data->conn->send_idx))
  ------------------
  |  |  382|      0|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (382:36): [True: 0, False: 0]
  |  |  |  Branch (382:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2642|  9.56k|    multistate(data, MSTATE_PERFORMING);
  ------------------
  |  |  200|  9.56k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2643|      0|  else {
 2644|      0|#ifndef CURL_DISABLE_FTP
 2645|      0|    if(data->state.wildcardmatch &&
  ------------------
  |  Branch (2645:8): [True: 0, False: 0]
  ------------------
 2646|      0|       ((data->conn->scheme->flags & PROTOPT_WILDCARD) == 0)) {
  ------------------
  |  |  231|      0|#define PROTOPT_WILDCARD (1 << 12)  /* protocol supports wildcard matching */
  ------------------
  |  Branch (2646:8): [True: 0, False: 0]
  ------------------
 2647|      0|      data->wildcard->state = CURLWC_DONE;
 2648|      0|    }
 2649|      0|#endif
 2650|      0|    multistate(data, MSTATE_DONE);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2651|      0|  }
 2652|  9.56k|  return CURLM_CALL_MULTI_PERFORM;
 2653|  9.56k|}
multi.c:multistate_ratelimiting:
 2285|    306|{
 2286|    306|  CURLcode result = CURLE_OK;
 2287|    306|  CURLMcode mresult = CURLM_OK;
 2288|    306|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|    306|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2288:3): [True: 0, False: 306]
  |  Branch (2288:3): [True: 306, False: 0]
  ------------------
 2289|       |  /* if both rates are within spec, resume transfer */
 2290|    306|  result = Curl_pgrsCheck(data);
 2291|       |
 2292|    306|  if(result) {
  ------------------
  |  Branch (2292:6): [True: 0, False: 306]
  ------------------
 2293|      0|    if(!(data->conn->scheme->flags & PROTOPT_DUAL) &&
  ------------------
  |  |  208|      0|#define PROTOPT_DUAL (1 << 1)      /* this protocol uses two connections */
  ------------------
  |  Branch (2293:8): [True: 0, False: 0]
  ------------------
 2294|      0|       result != CURLE_HTTP2_STREAM)
  ------------------
  |  Branch (2294:8): [True: 0, False: 0]
  ------------------
 2295|      0|      streamclose(data->conn, "Transfer returned error");
  ------------------
  |  |  102|      0|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|      0|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 2296|       |
 2297|      0|    multi_posttransfer(data);
 2298|      0|    multi_done(data, result, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2299|      0|  }
 2300|    306|  else {
 2301|    306|    if(!mspeed_check(data))
  ------------------
  |  Branch (2301:8): [True: 16, False: 290]
  ------------------
 2302|     16|      mresult = CURLM_CALL_MULTI_PERFORM;
 2303|    306|  }
 2304|    306|  *resultp = result;
 2305|    306|  return mresult;
 2306|    306|}
multi.c:mspeed_check:
 1964|   233k|{
 1965|   233k|  if(Curl_rlimit_active(&data->progress.dl.rlimit) ||
  ------------------
  |  Branch (1965:6): [True: 233k, False: 0]
  ------------------
 1966|   233k|     Curl_rlimit_active(&data->progress.ul.rlimit)) {
  ------------------
  |  Branch (1966:6): [True: 0, False: 0]
  ------------------
 1967|       |    /* check if our send/recv limits require idle waits */
 1968|   233k|    const struct curltime *pnow = Curl_pgrs_now(data);
 1969|   233k|    timediff_t recv_ms, send_ms;
 1970|       |
 1971|   233k|    send_ms = Curl_rlimit_wait_ms(&data->progress.ul.rlimit, pnow);
 1972|   233k|    recv_ms = Curl_rlimit_wait_ms(&data->progress.dl.rlimit, pnow);
 1973|       |
 1974|   233k|    if(send_ms || recv_ms) {
  ------------------
  |  Branch (1974:8): [True: 0, False: 233k]
  |  Branch (1974:19): [True: 306, False: 233k]
  ------------------
 1975|    306|      if(data->mstate != MSTATE_RATELIMITING) {
  ------------------
  |  Branch (1975:10): [True: 16, False: 290]
  ------------------
 1976|     16|        multistate(data, MSTATE_RATELIMITING);
  ------------------
  |  |  200|     16|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 1977|     16|      }
 1978|    306|      Curl_expire(data, CURLMAX(send_ms, recv_ms), EXPIRE_TOOFAST);
  ------------------
  |  | 1286|    306|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1286:24): [True: 0, False: 306]
  |  |  ------------------
  ------------------
 1979|    306|      Curl_multi_clear_dirty(data);
 1980|    306|      CURL_TRC_M(data, "[RLIMIT] waiting %" FMT_TIMEDIFF_T "ms",
  ------------------
  |  |  148|    306|  do {                                   \
  |  |  149|    306|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|    306|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|    306|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|    612|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 306, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 306]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|    612|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|    306|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|    306|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|    306|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 306]
  |  |  ------------------
  ------------------
 1981|    306|                 CURLMAX(send_ms, recv_ms));
 1982|    306|      return CURLE_AGAIN;
 1983|    306|    }
 1984|   233k|    else {
 1985|       |      /* when will the rate limits increase next? The transfer needs
 1986|       |       * to run again at that time or it may stall. */
 1987|   233k|      send_ms = Curl_rlimit_next_step_ms(&data->progress.ul.rlimit, pnow);
 1988|   233k|      recv_ms = Curl_rlimit_next_step_ms(&data->progress.dl.rlimit, pnow);
 1989|   233k|      if(send_ms || recv_ms) {
  ------------------
  |  Branch (1989:10): [True: 0, False: 233k]
  |  Branch (1989:21): [True: 233k, False: 0]
  ------------------
 1990|   233k|        timediff_t next_ms = CURLMIN(send_ms, recv_ms);
  ------------------
  |  | 1287|   233k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 233k, False: 0]
  |  |  ------------------
  ------------------
 1991|   233k|        if(!next_ms)
  ------------------
  |  Branch (1991:12): [True: 233k, False: 0]
  ------------------
 1992|   233k|          next_ms = CURLMAX(send_ms, recv_ms);
  ------------------
  |  | 1286|   233k|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1286:24): [True: 0, False: 233k]
  |  |  ------------------
  ------------------
 1993|   233k|        Curl_expire(data, next_ms, EXPIRE_TOOFAST);
 1994|   233k|        CURL_TRC_M(data, "[RLIMIT] next token update in %" FMT_TIMEDIFF_T "ms",
  ------------------
  |  |  148|   233k|  do {                                   \
  |  |  149|   233k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|   233k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|   233k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|   467k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 233k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 233k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|   467k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|   233k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|   233k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|   233k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 233k]
  |  |  ------------------
  ------------------
 1995|   233k|                   next_ms);
 1996|   233k|      }
 1997|   233k|    }
 1998|   233k|  }
 1999|       |
 2000|   233k|  if(data->mstate != MSTATE_PERFORMING) {
  ------------------
  |  Branch (2000:6): [True: 16, False: 233k]
  ------------------
 2001|     16|    CURL_TRC_M(data, "[RLIMIT] wait over, continue");
  ------------------
  |  |  148|     16|  do {                                   \
  |  |  149|     16|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|     16|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|     16|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|     32|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 16, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 16]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|     32|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|     16|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|     16|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|     16|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 16]
  |  |  ------------------
  ------------------
 2002|     16|    multistate(data, MSTATE_PERFORMING);
  ------------------
  |  |  200|     16|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2003|     16|  }
 2004|   233k|  return CURLE_OK;
 2005|   233k|}
multi.c:multistate_performing:
 2010|   121k|{
 2011|   121k|  char *newurl = NULL;
 2012|   121k|  bool retry = FALSE;
  ------------------
  |  | 1058|   121k|#define FALSE false
  ------------------
 2013|   121k|  CURLMcode mresult = CURLM_OK;
 2014|   121k|  CURLcode result = *resultp = CURLE_OK;
 2015|   121k|  *stream_errorp = FALSE;
  ------------------
  |  | 1058|   121k|#define FALSE false
  ------------------
 2016|       |
 2017|   121k|  if(mspeed_check(data) == CURLE_AGAIN)
  ------------------
  |  Branch (2017:6): [True: 2, False: 121k]
  ------------------
 2018|      2|    return CURLM_OK;
 2019|       |
 2020|       |  /* read/write data if it is ready to do so */
 2021|   121k|  result = Curl_sendrecv(data);
 2022|       |
 2023|   121k|  if(data->req.done || (result == CURLE_RECV_ERROR)) {
  ------------------
  |  Branch (2023:6): [True: 5.19k, False: 116k]
  |  Branch (2023:24): [True: 226, False: 115k]
  ------------------
 2024|       |    /* If CURLE_RECV_ERROR happens early enough, we assume it was a race
 2025|       |     * condition and the server closed the reused connection exactly when we
 2026|       |     * wanted to use it, so figure out if that is indeed the case.
 2027|       |     */
 2028|  5.41k|    CURLcode ret = Curl_retry_request(data, &newurl);
 2029|  5.41k|    if(!ret)
  ------------------
  |  Branch (2029:8): [True: 5.41k, False: 0]
  ------------------
 2030|  5.41k|      retry = !!newurl;
 2031|      0|    else if(!result)
  ------------------
  |  Branch (2031:13): [True: 0, False: 0]
  ------------------
 2032|      0|      result = ret;
 2033|       |
 2034|  5.41k|    if(retry) {
  ------------------
  |  Branch (2034:8): [True: 157, False: 5.26k]
  ------------------
 2035|       |      /* if we are to retry, set the result to OK and consider the
 2036|       |         request as done */
 2037|    157|      result = CURLE_OK;
 2038|    157|      data->req.done = TRUE;
  ------------------
  |  | 1055|    157|#define TRUE true
  ------------------
 2039|    157|    }
 2040|  5.41k|  }
 2041|   115k|#ifndef CURL_DISABLE_HTTP
 2042|   115k|  else if((result == CURLE_HTTP2_STREAM) &&
  ------------------
  |  Branch (2042:11): [True: 323, False: 115k]
  ------------------
 2043|    323|          Curl_h2_http_1_1_error(data)) {
  ------------------
  |  Branch (2043:11): [True: 5, False: 318]
  ------------------
 2044|      5|    CURLcode ret = Curl_retry_request(data, &newurl);
 2045|       |
 2046|      5|    if(!ret) {
  ------------------
  |  Branch (2046:8): [True: 5, False: 0]
  ------------------
 2047|      5|      infof(data, "Downgrades to HTTP/1.1");
  ------------------
  |  |  143|      5|  do {                               \
  |  |  144|      5|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      5|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 5, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 5]
  |  |  |  |  ------------------
  |  |  |  |  320|      5|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      5|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      5|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 5]
  |  |  ------------------
  ------------------
 2048|      5|      streamclose(data->conn, "Disconnect HTTP/2 for HTTP/1");
  ------------------
  |  |  102|      5|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|      5|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 2049|      5|      data->state.http_neg.wanted = CURL_HTTP_V1x;
  ------------------
  |  |   40|      5|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 2050|      5|      data->state.http_neg.allowed = CURL_HTTP_V1x;
  ------------------
  |  |   40|      5|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 2051|       |      /* clear the error message bit too as we ignore the one we got */
 2052|      5|      data->state.errorbuf = FALSE;
  ------------------
  |  | 1058|      5|#define FALSE false
  ------------------
 2053|      5|      if(!newurl)
  ------------------
  |  Branch (2053:10): [True: 5, False: 0]
  ------------------
 2054|       |        /* typically for HTTP_1_1_REQUIRED error on first flight */
 2055|      5|        newurl = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|      5|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1477|      5|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
 2056|      5|      if(!newurl) {
  ------------------
  |  Branch (2056:10): [True: 0, False: 5]
  ------------------
 2057|      0|        result = CURLE_OUT_OF_MEMORY;
 2058|      0|      }
 2059|      5|      else {
 2060|       |        /* if we are to retry, set the result to OK and consider the request
 2061|       |          as done */
 2062|      5|        retry = TRUE;
  ------------------
  |  | 1055|      5|#define TRUE true
  ------------------
 2063|      5|        result = CURLE_OK;
 2064|      5|        data->req.done = TRUE;
  ------------------
  |  | 1055|      5|#define TRUE true
  ------------------
 2065|      5|      }
 2066|      5|    }
 2067|      0|    else
 2068|      0|      result = ret;
 2069|      5|  }
 2070|   121k|#endif
 2071|       |
 2072|   121k|  if(result) {
  ------------------
  |  Branch (2072:6): [True: 3.91k, False: 117k]
  ------------------
 2073|       |    /*
 2074|       |     * The transfer phase returned error, we mark the connection to get closed
 2075|       |     * to prevent being reused. This is because we cannot possibly know if the
 2076|       |     * connection is in a good shape or not now. Unless it is a protocol which
 2077|       |     * uses two "channels" like FTP, as then the error happened in the data
 2078|       |     * connection.
 2079|       |     */
 2080|       |
 2081|  3.91k|    if(!(data->conn->scheme->flags & PROTOPT_DUAL) &&
  ------------------
  |  |  208|  3.91k|#define PROTOPT_DUAL (1 << 1)      /* this protocol uses two connections */
  ------------------
  |  Branch (2081:8): [True: 3.91k, False: 0]
  ------------------
 2082|  3.91k|       result != CURLE_HTTP2_STREAM)
  ------------------
  |  Branch (2082:8): [True: 3.59k, False: 318]
  ------------------
 2083|  3.59k|      streamclose(data->conn, "Transfer returned error");
  ------------------
  |  |  102|  3.59k|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|  3.59k|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 2084|       |
 2085|  3.91k|    multi_posttransfer(data);
 2086|  3.91k|    multi_done(data, result, TRUE);
  ------------------
  |  | 1055|  3.91k|#define TRUE true
  ------------------
 2087|  3.91k|  }
 2088|   117k|  else if(data->req.done && !Curl_cwriter_is_paused(data)) {
  ------------------
  |  Branch (2088:11): [True: 5.20k, False: 112k]
  |  Branch (2088:29): [True: 5.20k, False: 0]
  ------------------
 2089|  5.20k|    const struct Curl_scheme *handler = data->conn->scheme;
 2090|       |
 2091|       |    /* call this even if the readwrite function returned error */
 2092|  5.20k|    multi_posttransfer(data);
 2093|       |
 2094|       |    /* When we follow redirects or is set to retry the connection, we must to
 2095|       |       go back to the CONNECT state */
 2096|  5.20k|    if(data->req.newurl || retry) {
  ------------------
  |  Branch (2096:8): [True: 3.22k, False: 1.98k]
  |  Branch (2096:28): [True: 162, False: 1.82k]
  ------------------
 2097|  3.38k|      followtype follow = FOLLOW_NONE;
 2098|  3.38k|      if(!retry) {
  ------------------
  |  Branch (2098:10): [True: 3.22k, False: 162]
  ------------------
 2099|       |        /* if the URL is a follow-location and not a retried request then
 2100|       |           figure out the URL here */
 2101|  3.22k|        curlx_free(newurl);
  ------------------
  |  | 1483|  3.22k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2102|  3.22k|        newurl = data->req.newurl;
 2103|  3.22k|        data->req.newurl = NULL;
 2104|  3.22k|        follow = FOLLOW_REDIR;
 2105|  3.22k|      }
 2106|    162|      else
 2107|    162|        follow = FOLLOW_RETRY;
 2108|  3.38k|      (void)multi_done(data, CURLE_OK, FALSE);
  ------------------
  |  | 1058|  3.38k|#define FALSE false
  ------------------
 2109|       |      /* multi_done() might return CURLE_GOT_NOTHING */
 2110|  3.38k|      result = multi_follow(data, handler, newurl, follow);
 2111|  3.38k|      if(!result) {
  ------------------
  |  Branch (2111:10): [True: 3.31k, False: 66]
  ------------------
 2112|  3.31k|        multistate(data, MSTATE_SETUP);
  ------------------
  |  |  200|  3.31k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2113|  3.31k|        mresult = CURLM_CALL_MULTI_PERFORM;
 2114|  3.31k|      }
 2115|  3.38k|    }
 2116|  1.82k|    else {
 2117|       |      /* after the transfer is done, go DONE */
 2118|       |
 2119|       |      /* but first check to see if we got a location info even though we are
 2120|       |         not following redirects */
 2121|  1.82k|      if(data->req.location) {
  ------------------
  |  Branch (2121:10): [True: 275, False: 1.55k]
  ------------------
 2122|    275|        curlx_free(newurl);
  ------------------
  |  | 1483|    275|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2123|    275|        newurl = data->req.location;
 2124|    275|        data->req.location = NULL;
 2125|    275|        result = multi_follow(data, handler, newurl, FOLLOW_FAKE);
 2126|    275|        if(result) {
  ------------------
  |  Branch (2126:12): [True: 1, False: 274]
  ------------------
 2127|      1|          *stream_errorp = TRUE;
  ------------------
  |  | 1055|      1|#define TRUE true
  ------------------
 2128|      1|          result = multi_done(data, result, TRUE);
  ------------------
  |  | 1055|      1|#define TRUE true
  ------------------
 2129|      1|        }
 2130|    275|      }
 2131|       |
 2132|  1.82k|      if(!result) {
  ------------------
  |  Branch (2132:10): [True: 1.82k, False: 1]
  ------------------
 2133|  1.82k|        multistate(data, MSTATE_DONE);
  ------------------
  |  |  200|  1.82k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2134|  1.82k|        mresult = CURLM_CALL_MULTI_PERFORM;
 2135|  1.82k|      }
 2136|  1.82k|    }
 2137|  5.20k|  }
 2138|   112k|  else { /* not errored, not done */
 2139|   112k|    mspeed_check(data);
 2140|   112k|  }
 2141|   121k|  curlx_free(newurl);
  ------------------
  |  | 1483|   121k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2142|   121k|  *resultp = result;
 2143|   121k|  return mresult;
 2144|   121k|}
multi.c:multistate_done:
 2656|  1.82k|{
 2657|  1.82k|  if(data->conn) {
  ------------------
  |  Branch (2657:6): [True: 1.82k, False: 0]
  ------------------
 2658|  1.82k|    CURLcode result;
 2659|       |
 2660|       |    /* post-transfer command */
 2661|  1.82k|    result = multi_done(data, *presult, FALSE);
  ------------------
  |  | 1058|  1.82k|#define FALSE false
  ------------------
 2662|       |
 2663|       |    /* allow a previously set error code take precedence */
 2664|  1.82k|    if(!(*presult))
  ------------------
  |  Branch (2664:8): [True: 1.82k, False: 0]
  ------------------
 2665|  1.82k|      *presult = result;
 2666|  1.82k|  }
 2667|       |
 2668|  1.82k|#ifndef CURL_DISABLE_FTP
 2669|  1.82k|  if(data->state.wildcardmatch) {
  ------------------
  |  Branch (2669:6): [True: 0, False: 1.82k]
  ------------------
 2670|      0|    if(data->wildcard->state != CURLWC_DONE) {
  ------------------
  |  Branch (2670:8): [True: 0, False: 0]
  ------------------
 2671|       |      /* if a wildcard is set and we are not ending -> lets start again
 2672|       |         with MSTATE_INIT */
 2673|      0|      multistate(data, MSTATE_INIT);
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2674|      0|      return CURLM_CALL_MULTI_PERFORM;
 2675|      0|    }
 2676|      0|  }
 2677|  1.82k|#endif
 2678|       |  /* after we have DONE what we are supposed to do, go COMPLETED, and
 2679|       |     it does not matter what the multi_done() returned! */
 2680|  1.82k|  multistate(data, MSTATE_COMPLETED);
  ------------------
  |  |  200|  1.82k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2681|  1.82k|  return CURLM_CALL_MULTI_PERFORM;
 2682|  1.82k|}
multi.c:is_finished:
 2358|   197k|{
 2359|   197k|  if(data->mstate < MSTATE_COMPLETED) {
  ------------------
  |  Branch (2359:6): [True: 195k, False: 1.82k]
  ------------------
 2360|   195k|    if(result) {
  ------------------
  |  Branch (2360:8): [True: 5.97k, False: 189k]
  ------------------
 2361|       |      /*
 2362|       |       * If an error was returned, and we are not in completed state now,
 2363|       |       * then we go to completed and consider this transfer aborted.
 2364|       |       */
 2365|       |
 2366|       |      /* No attempt to disconnect connections must be made before this -
 2367|       |         connection detach and termination happens only here */
 2368|       |
 2369|       |      /* Check if we can move pending requests to send pipe */
 2370|  5.97k|      process_pending_handles(multi); /* connection */
 2371|       |
 2372|  5.97k|      if(data->conn) {
  ------------------
  |  Branch (2372:10): [True: 0, False: 5.97k]
  ------------------
 2373|      0|        if(stream_error) {
  ------------------
  |  Branch (2373:12): [True: 0, False: 0]
  ------------------
 2374|       |          /* Do not attempt to send data over a connection that timed out */
 2375|      0|          bool dead_connection = result == CURLE_OPERATION_TIMEDOUT;
 2376|      0|          struct connectdata *conn = data->conn;
 2377|       |
 2378|       |          /* This is where we make sure that the conn pointer is reset.
 2379|       |             We do not have to do this in every case block above where a
 2380|       |             failure is detected */
 2381|      0|          Curl_detach_connection(data);
 2382|      0|          Curl_conn_terminate(data, conn, dead_connection);
 2383|      0|        }
 2384|      0|      }
 2385|  5.97k|      else if(data->mstate == MSTATE_CONNECT) {
  ------------------
  |  Branch (2385:15): [True: 812, False: 5.16k]
  ------------------
 2386|       |        /* Curl_connect() failed */
 2387|    812|        multi_posttransfer(data);
 2388|    812|        Curl_pgrsUpdate_nometer(data);
 2389|    812|      }
 2390|       |
 2391|  5.97k|      multistate(data, MSTATE_COMPLETED);
  ------------------
  |  |  200|  5.97k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2392|  5.97k|      return result;
 2393|  5.97k|    }
 2394|       |    /* if there is still a connection to use, call the progress function */
 2395|   189k|    else if(data->conn && Curl_conn_is_connected(data->conn, FIRSTSOCKET)) {
  ------------------
  |  |  303|   167k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2395:13): [True: 167k, False: 22.2k]
  |  Branch (2395:27): [True: 155k, False: 11.6k]
  ------------------
 2396|   155k|      result = Curl_pgrsUpdate(data);
 2397|   155k|      if(result) {
  ------------------
  |  Branch (2397:10): [True: 0, False: 155k]
  ------------------
 2398|       |        /* aborted due to progress callback return code must close the
 2399|       |           connection */
 2400|      0|        streamclose(data->conn, "Aborted by callback");
  ------------------
  |  |  102|      0|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|      0|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 2401|       |
 2402|       |        /* if not yet in DONE state, go there, otherwise COMPLETED */
 2403|      0|        multistate(data, (data->mstate < MSTATE_DONE) ?
  ------------------
  |  |  200|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  |  |  ------------------
  |  |  |  Branch (200:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2404|      0|                   MSTATE_DONE : MSTATE_COMPLETED);
 2405|      0|        return result;
 2406|      0|      }
 2407|   155k|    }
 2408|   195k|  }
 2409|   191k|  return result;
 2410|   197k|}
multi.c:handle_completed:
 2415|  7.80k|{
 2416|  7.80k|  if(data->master_mid != UINT32_MAX) {
  ------------------
  |  Branch (2416:6): [True: 0, False: 7.80k]
  ------------------
 2417|       |    /* A sub transfer, not for msgsent to application */
 2418|      0|    struct Curl_easy *mdata;
 2419|       |
 2420|      0|    CURL_TRC_M(data, "sub xfer done for master %u", data->master_mid);
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2421|      0|    mdata = Curl_multi_get_easy(multi, data->master_mid);
 2422|      0|    if(mdata) {
  ------------------
  |  Branch (2422:8): [True: 0, False: 0]
  ------------------
 2423|      0|      if(mdata->sub_xfer_done)
  ------------------
  |  Branch (2423:10): [True: 0, False: 0]
  ------------------
 2424|      0|        mdata->sub_xfer_done(mdata, data, result);
 2425|      0|      else
 2426|      0|        CURL_TRC_M(data, "master easy %u without sub_xfer_done callback.",
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2427|      0|                   data->master_mid);
 2428|      0|    }
 2429|      0|    else {
 2430|      0|      CURL_TRC_M(data, "master easy %u already gone.", data->master_mid);
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2431|      0|    }
 2432|      0|  }
 2433|  7.80k|  else {
 2434|       |    /* now fill in the Curl_message with this info */
 2435|  7.80k|    struct Curl_message *msg = &data->msg;
 2436|       |
 2437|  7.80k|    msg->extmsg.msg = CURLMSG_DONE;
 2438|  7.80k|    msg->extmsg.easy_handle = data;
 2439|  7.80k|    msg->extmsg.data.result = result;
 2440|       |
 2441|  7.80k|    multi_addmsg(multi, msg);
 2442|  7.80k|    DEBUGASSERT(!data->conn);
  ------------------
  |  | 1081|  7.80k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2442:5): [True: 0, False: 7.80k]
  |  Branch (2442:5): [True: 7.80k, False: 0]
  ------------------
 2443|  7.80k|  }
 2444|  7.80k|  multistate(data, MSTATE_MSGSENT);
  ------------------
  |  |  200|  7.80k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2445|       |
 2446|       |  /* remove from the other sets, add to msgsent */
 2447|  7.80k|  Curl_uint32_bset_remove(&multi->process, data->mid);
 2448|  7.80k|  Curl_uint32_bset_remove(&multi->dirty, data->mid);
 2449|  7.80k|  Curl_uint32_bset_remove(&multi->pending, data->mid);
 2450|  7.80k|  Curl_uint32_bset_add(&multi->msgsent, data->mid);
 2451|  7.80k|  --multi->xfers_alive;
 2452|  7.80k|  if(!multi->xfers_alive)
  ------------------
  |  Branch (2452:6): [True: 7.80k, False: 0]
  ------------------
 2453|  7.80k|    multi_assess_wakeup(multi);
 2454|  7.80k|}
multi.c:multi_addmsg:
  221|  7.80k|{
  222|  7.80k|  if(!Curl_llist_count(&multi->msglist))
  ------------------
  |  Branch (222:6): [True: 7.80k, False: 0]
  ------------------
  223|  7.80k|    CURLM_NTFY(multi->admin, CURLMNOTIFY_INFO_READ);
  ------------------
  |  |   51|  7.80k|  do {                                                \
  |  |   52|  7.80k|    if((d) && (d)->multi && (d)->multi->ntfy.ntfy_cb) \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 7.80k, False: 0]
  |  |  |  Branch (52:15): [True: 7.80k, False: 0]
  |  |  |  Branch (52:29): [True: 0, False: 7.80k]
  |  |  ------------------
  |  |   53|  7.80k|      Curl_mntfy_add((d), (t));                       \
  |  |   54|  7.80k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (54:11): [Folded, False: 7.80k]
  |  |  ------------------
  ------------------
  224|  7.80k|  Curl_llist_append(&multi->msglist, msg, &msg->list);
  225|  7.80k|}
multi.c:multi_ischanged:
 1709|   441k|{
 1710|   441k|  bool retval = FALSE;
  ------------------
  |  | 1058|   441k|#define FALSE false
  ------------------
 1711|   441k|  DEBUGASSERT(multi);
  ------------------
  |  | 1081|   441k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1711:3): [True: 0, False: 441k]
  |  Branch (1711:3): [True: 441k, False: 0]
  ------------------
 1712|   441k|  if(multi) {
  ------------------
  |  Branch (1712:6): [True: 441k, False: 0]
  ------------------
 1713|   441k|    retval = (bool)multi->recheckstate;
 1714|   441k|    if(clear)
  ------------------
  |  Branch (1714:8): [True: 319k, False: 122k]
  ------------------
 1715|   319k|      multi->recheckstate = FALSE;
  ------------------
  |  | 1058|   319k|#define FALSE false
  ------------------
 1716|   441k|  }
 1717|   441k|  return retval;
 1718|   441k|}
multi.c:add_next_timeout:
 3106|  1.39k|{
 3107|  1.39k|  struct curltime *tv = &d->state.expiretime;
 3108|  1.39k|  struct Curl_llist *list = &d->state.timeoutlist;
 3109|  1.39k|  struct Curl_llist_node *e;
 3110|       |
 3111|       |  /* move over the timeout list for this specific handle and remove all
 3112|       |     timeouts that are now passed tense and store the next pending
 3113|       |     timeout in *tv */
 3114|  1.93k|  for(e = Curl_llist_head(list); e;) {
  ------------------
  |  Branch (3114:34): [True: 1.93k, False: 0]
  ------------------
 3115|  1.93k|    struct Curl_llist_node *n = Curl_node_next(e);
 3116|  1.93k|    struct time_node *node = Curl_node_elem(e);
 3117|  1.93k|    timediff_t diff = curlx_ptimediff_us(&node->time, pnow);
 3118|  1.93k|    if(diff <= 0)
  ------------------
  |  Branch (3118:8): [True: 537, False: 1.39k]
  ------------------
 3119|       |      /* remove outdated entry */
 3120|    537|      Curl_node_remove(e);
 3121|  1.39k|    else
 3122|       |      /* the list is sorted so get out on the first mismatch */
 3123|  1.39k|      break;
 3124|    537|    e = n;
 3125|    537|  }
 3126|  1.39k|  e = Curl_llist_head(list);
 3127|  1.39k|  if(!e) {
  ------------------
  |  Branch (3127:6): [True: 0, False: 1.39k]
  ------------------
 3128|       |    /* clear the expire times within the handles that we remove from the
 3129|       |       splay tree */
 3130|      0|    tv->tv_sec = 0;
 3131|      0|    tv->tv_usec = 0;
 3132|      0|  }
 3133|  1.39k|  else {
 3134|  1.39k|    struct time_node *node = Curl_node_elem(e);
 3135|       |    /* copy the first entry to 'tv' */
 3136|  1.39k|    memcpy(tv, &node->time, sizeof(*tv));
 3137|       |
 3138|       |    /* Insert this node again into the splay. Keep the timer in the list in
 3139|       |       case we need to recompute future timers. */
 3140|  1.39k|    multi->timetree = Curl_splayinsert(tv, multi->timetree,
 3141|  1.39k|                                       &d->state.timenode);
 3142|  1.39k|  }
 3143|  1.39k|  return CURLM_OK;
 3144|  1.39k|}
multi.c:multi_handle_timeout:
 1803|   183k|{
 1804|   183k|  timediff_t timeout_ms;
 1805|       |
 1806|   183k|  timeout_ms = Curl_timeleft_ms(data);
 1807|   183k|  if(timeout_ms < 0) {
  ------------------
  |  Branch (1807:6): [True: 653, False: 182k]
  ------------------
 1808|       |    /* Handle timed out */
 1809|    653|    struct curltime since;
 1810|    653|    if(Curl_is_connecting(data))
  ------------------
  |  Branch (1810:8): [True: 219, False: 434]
  ------------------
 1811|    219|      since = data->progress.t_startsingle;
 1812|    434|    else
 1813|    434|      since = data->progress.t_startop;
 1814|    653|    if(data->mstate == MSTATE_CONNECTING)
  ------------------
  |  Branch (1814:8): [True: 219, False: 434]
  ------------------
 1815|    219|      failf(data, "%s timed out after %" FMT_TIMEDIFF_T " milliseconds",
  ------------------
  |  |   62|    219|#define failf Curl_failf
  ------------------
 1816|    219|            data->conn->bits.dns_resolved ? "Connection" : "Resolving",
  ------------------
  |  Branch (1816:13): [True: 219, False: 0]
  ------------------
 1817|    219|            curlx_ptimediff_ms(Curl_pgrs_now(data), &since));
 1818|    434|    else {
 1819|    434|      struct SingleRequest *k = &data->req;
 1820|    434|      if(k->size != -1) {
  ------------------
  |  Branch (1820:10): [True: 4, False: 430]
  ------------------
 1821|      4|        failf(data, "Operation timed out after %" FMT_TIMEDIFF_T
  ------------------
  |  |   62|      4|#define failf Curl_failf
  ------------------
 1822|      4|              " milliseconds with %" FMT_OFF_T " out of %"
 1823|      4|              FMT_OFF_T " bytes received",
 1824|      4|              curlx_ptimediff_ms(Curl_pgrs_now(data), &since),
 1825|      4|              k->bytecount, k->size);
 1826|      4|      }
 1827|    430|      else {
 1828|    430|        failf(data, "Operation timed out after %" FMT_TIMEDIFF_T
  ------------------
  |  |   62|    430|#define failf Curl_failf
  ------------------
 1829|    430|              " milliseconds with %" FMT_OFF_T " bytes received",
 1830|    430|              curlx_ptimediff_ms(Curl_pgrs_now(data), &since),
 1831|    430|              k->bytecount);
 1832|    430|      }
 1833|    434|    }
 1834|    653|    *result = CURLE_OPERATION_TIMEDOUT;
 1835|    653|    if(data->conn) {
  ------------------
  |  Branch (1835:8): [True: 653, False: 0]
  ------------------
 1836|       |      /* Force connection closed if the connection has indeed been used */
 1837|    653|      if(data->mstate > MSTATE_DO) {
  ------------------
  |  Branch (1837:10): [True: 434, False: 219]
  ------------------
 1838|    434|        streamclose(data->conn, "Disconnect due to timeout");
  ------------------
  |  |  102|    434|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|    434|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
 1839|    434|        *stream_error = TRUE;
  ------------------
  |  | 1055|    434|#define TRUE true
  ------------------
 1840|    434|      }
 1841|    653|      (void)multi_done(data, *result, TRUE);
  ------------------
  |  | 1055|    653|#define TRUE true
  ------------------
 1842|    653|    }
 1843|    653|    return TRUE;
  ------------------
  |  | 1055|    653|#define TRUE true
  ------------------
 1844|    653|  }
 1845|       |
 1846|   182k|  return FALSE;
  ------------------
  |  | 1058|   182k|#define FALSE false
  ------------------
 1847|   183k|}
multi.c:multi_deltimeout:
 3623|   263k|{
 3624|   263k|  struct Curl_llist_node *e;
 3625|   263k|  struct Curl_llist *timeoutlist = &data->state.timeoutlist;
 3626|       |  /* find and remove the specific node from the list */
 3627|   459k|  for(e = Curl_llist_head(timeoutlist); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (3627:41): [True: 429k, False: 29.7k]
  ------------------
 3628|   429k|    struct time_node *n = Curl_node_elem(e);
 3629|   429k|    if(n->eid == eid) {
  ------------------
  |  Branch (3629:8): [True: 233k, False: 195k]
  ------------------
 3630|   233k|      Curl_node_remove(e);
 3631|   233k|      return;
 3632|   233k|    }
 3633|   429k|  }
 3634|   263k|}
multi.c:multi_addtimeout:
 3646|   256k|{
 3647|   256k|  struct Curl_llist_node *e;
 3648|   256k|  struct time_node *node;
 3649|   256k|  struct Curl_llist_node *prev = NULL;
 3650|   256k|  size_t n;
 3651|   256k|  struct Curl_llist *timeoutlist = &data->state.timeoutlist;
 3652|       |
 3653|   256k|  node = &data->state.expires[eid];
 3654|       |
 3655|       |  /* copy the timestamp and id */
 3656|   256k|  memcpy(&node->time, stamp, sizeof(*stamp));
 3657|   256k|  node->eid = eid; /* also marks it as in use */
 3658|       |
 3659|   256k|  n = Curl_llist_count(timeoutlist);
 3660|   256k|  if(n) {
  ------------------
  |  Branch (3660:6): [True: 246k, False: 10.0k]
  ------------------
 3661|       |    /* find the correct spot in the list */
 3662|   413k|    for(e = Curl_llist_head(timeoutlist); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (3662:43): [True: 321k, False: 92.5k]
  ------------------
 3663|   321k|      struct time_node *check = Curl_node_elem(e);
 3664|   321k|      timediff_t diff = curlx_ptimediff_ms(&check->time, &node->time);
 3665|   321k|      if(diff > 0)
  ------------------
  |  Branch (3665:10): [True: 153k, False: 167k]
  ------------------
 3666|   153k|        break;
 3667|   167k|      prev = e;
 3668|   167k|    }
 3669|   246k|  }
 3670|       |  /* else
 3671|       |     this is the first timeout on the list */
 3672|       |
 3673|   256k|  Curl_llist_insert_next(timeoutlist, prev, node, &node->list);
 3674|   256k|  CURL_TRC_TIMER(data, eid, "set for %" FMT_TIMEDIFF_T "ns",
  ------------------
  |  |  173|   256k|  do {                                        \
  |  |  174|   256k|    if(CURL_TRC_TIMER_is_verbose(data))       \
  |  |  ------------------
  |  |  |  |  139|   256k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_timer)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|   256k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|   512k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 256k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 256k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|   512k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|   256k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  175|   256k|      Curl_trc_timer(data, tid, __VA_ARGS__); \
  |  |  176|   256k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (176:11): [Folded, False: 256k]
  |  |  ------------------
  ------------------
 3675|   256k|                 curlx_ptimediff_us(&node->time, Curl_pgrs_now(data)));
 3676|   256k|  return CURLM_OK;
 3677|   256k|}
multi.c:process_pending_handles:
 3841|  50.4k|{
 3842|  50.4k|  uint32_t mid = multi->last_pending_mid;
 3843|       |
 3844|  50.4k|  if(mid) {
  ------------------
  |  Branch (3844:6): [True: 0, False: 50.4k]
  ------------------
 3845|      0|    while(Curl_uint32_bset_next(&multi->pending, mid, &mid)) {
  ------------------
  |  Branch (3845:11): [True: 0, False: 0]
  ------------------
 3846|      0|      struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
 3847|      0|      if(data) {
  ------------------
  |  Branch (3847:10): [True: 0, False: 0]
  ------------------
 3848|      0|        move_pending_to_connect(multi, data);
 3849|      0|        multi->last_pending_mid = mid;
 3850|      0|        return;
 3851|      0|      }
 3852|       |      /* transfer no longer known, should not happen */
 3853|      0|      Curl_uint32_bset_remove(&multi->pending, mid);
 3854|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3854:7): [Folded, False: 0]
  |  Branch (3854:7): [Folded, False: 0]
  ------------------
 3855|      0|    }
 3856|       |    /* found no pending transfers with `mid` larger than `last_pending_mid`.
 3857|       |     * Start at the beginning of the pending set again. */
 3858|      0|    multi->last_pending_mid = 0;
 3859|      0|  }
 3860|       |
 3861|  50.4k|  if(Curl_uint32_bset_first(&multi->pending, &mid)) {
  ------------------
  |  Branch (3861:6): [True: 0, False: 50.4k]
  ------------------
 3862|      0|    do {
 3863|      0|      struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
 3864|      0|      if(data) {
  ------------------
  |  Branch (3864:10): [True: 0, False: 0]
  ------------------
 3865|      0|        move_pending_to_connect(multi, data);
 3866|      0|        multi->last_pending_mid = mid;
 3867|      0|        return;
 3868|      0|      }
 3869|       |      /* transfer no longer known, should not happen */
 3870|      0|      Curl_uint32_bset_remove(&multi->pending, mid);
 3871|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3871:7): [Folded, False: 0]
  |  Branch (3871:7): [Folded, False: 0]
  ------------------
 3872|      0|    } while(Curl_uint32_bset_next(&multi->pending, mid, &mid));
  ------------------
  |  Branch (3872:13): [True: 0, False: 0]
  ------------------
 3873|      0|  }
 3874|  50.4k|}
multi.c:multi_xfer_bufs_free:
 4106|  7.82k|{
 4107|  7.82k|  DEBUGASSERT(multi);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4107:3): [True: 0, False: 7.82k]
  |  Branch (4107:3): [True: 7.82k, False: 0]
  ------------------
 4108|  7.82k|  curlx_safefree(multi->xfer_buf);
  ------------------
  |  | 1327|  7.82k|  do {                      \
  |  | 1328|  7.82k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  7.82k|    (ptr) = NULL;           \
  |  | 1330|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
 4109|  7.82k|  multi->xfer_buf_len = 0;
 4110|  7.82k|  multi->xfer_buf_borrowed = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
 4111|  7.82k|  curlx_safefree(multi->xfer_ulbuf);
  ------------------
  |  | 1327|  7.82k|  do {                      \
  |  | 1328|  7.82k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  7.82k|    (ptr) = NULL;           \
  |  | 1330|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
 4112|  7.82k|  multi->xfer_ulbuf_len = 0;
 4113|  7.82k|  multi->xfer_ulbuf_borrowed = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
 4114|  7.82k|  curlx_safefree(multi->xfer_sockbuf);
  ------------------
  |  | 1327|  7.82k|  do {                      \
  |  | 1328|  7.82k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  7.82k|    (ptr) = NULL;           \
  |  | 1330|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
 4115|  7.82k|  multi->xfer_sockbuf_len = 0;
 4116|       |  multi->xfer_sockbuf_borrowed = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
 4117|  7.82k|}

Curl_multi_ev_socket_done:
  617|  7.02k|{
  618|  7.02k|  mev_forget_socket(multi, data, s, "socket done");
  619|  7.02k|}
Curl_multi_ev_xfer_done:
  623|  7.82k|{
  624|  7.82k|  DEBUGASSERT(!data->conn); /* transfer should have been detached */
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (624:3): [True: 0, False: 7.82k]
  |  Branch (624:3): [True: 7.82k, False: 0]
  ------------------
  625|  7.82k|  (void)mev_assess(multi, data, NULL);
  626|  7.82k|  Curl_meta_remove(data, CURL_META_MEV_POLLSET);
  ------------------
  |  |   34|  7.82k|#define CURL_META_MEV_POLLSET   "meta:mev:ps"
  ------------------
  627|  7.82k|}
Curl_multi_ev_conn_done:
  632|  7.53k|{
  633|  7.53k|  (void)mev_assess(multi, data, conn);
  634|  7.53k|  Curl_conn_meta_remove(conn, CURL_META_MEV_POLLSET);
  ------------------
  |  |   34|  7.53k|#define CURL_META_MEV_POLLSET   "meta:mev:ps"
  ------------------
  635|  7.53k|}
Curl_multi_ev_init:
  638|  7.82k|{
  639|  7.82k|  Curl_hash_init(&multi->ev.sh_entries, hashsize, mev_sh_entry_hash,
  640|  7.82k|                 mev_sh_entry_compare, mev_sh_entry_dtor);
  641|  7.82k|}
Curl_multi_ev_cleanup:
  644|  7.82k|{
  645|  7.82k|  Curl_hash_destroy(&multi->ev.sh_entries);
  646|  7.82k|}
multi_ev.c:mev_assess:
  499|  15.3k|{
  500|  15.3k|  struct easy_pollset ps, *last_ps;
  501|  15.3k|  CURLMcode mresult = CURLM_OK;
  502|       |
  503|  15.3k|  if(!multi || !multi->socket_cb)
  ------------------
  |  Branch (503:6): [True: 0, False: 15.3k]
  |  Branch (503:16): [True: 15.3k, False: 0]
  ------------------
  504|  15.3k|    return CURLM_OK;
  505|       |
  506|      0|  Curl_pollset_init(&ps);
  507|      0|  if(conn) {
  ------------------
  |  Branch (507:6): [True: 0, False: 0]
  ------------------
  508|      0|    CURLcode result = Curl_conn_adjust_pollset(data, conn, &ps);
  509|      0|    if(result) {
  ------------------
  |  Branch (509:8): [True: 0, False: 0]
  ------------------
  510|      0|      mresult = (result == CURLE_OUT_OF_MEMORY) ?
  ------------------
  |  Branch (510:17): [True: 0, False: 0]
  ------------------
  511|      0|        CURLM_OUT_OF_MEMORY : CURLM_INTERNAL_ERROR;
  512|      0|      goto out;
  513|      0|    }
  514|      0|  }
  515|      0|  else
  516|      0|    Curl_multi_pollset(data, &ps);
  517|      0|  last_ps = mev_get_last_pollset(data, conn);
  518|       |
  519|      0|  if(!last_ps && ps.n) {
  ------------------
  |  Branch (519:6): [True: 0, False: 0]
  |  Branch (519:18): [True: 0, False: 0]
  ------------------
  520|      0|    if(conn)
  ------------------
  |  Branch (520:8): [True: 0, False: 0]
  ------------------
  521|      0|      last_ps = mev_add_new_conn_pollset(conn);
  522|      0|    else
  523|      0|      last_ps = mev_add_new_xfer_pollset(data);
  524|      0|    if(!last_ps) {
  ------------------
  |  Branch (524:8): [True: 0, False: 0]
  ------------------
  525|      0|      mresult = CURLM_OUT_OF_MEMORY;
  526|      0|      goto out;
  527|      0|    }
  528|      0|  }
  529|       |
  530|      0|  if(last_ps)
  ------------------
  |  Branch (530:6): [True: 0, False: 0]
  ------------------
  531|      0|    mresult = mev_pollset_diff(multi, data, conn, &ps, last_ps);
  532|      0|  else
  533|      0|    DEBUGASSERT(!ps.n);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (533:5): [True: 0, False: 0]
  |  Branch (533:5): [True: 0, False: 0]
  ------------------
  534|      0|out:
  535|      0|  Curl_pollset_cleanup(&ps);
  536|      0|  return mresult;
  537|      0|}
multi_ev.c:mev_sh_entry_get:
   94|  7.02k|{
   95|  7.02k|  if(s != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  7.02k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (95:6): [True: 7.02k, False: 0]
  ------------------
   96|       |    /* only look for proper sockets */
   97|  7.02k|    return Curl_hash_pick(sh, (char *)&s, sizeof(curl_socket_t));
   98|  7.02k|  }
   99|      0|  return NULL;
  100|  7.02k|}
multi_ev.c:mev_forget_socket:
  201|  7.02k|{
  202|  7.02k|  struct mev_sh_entry *entry = mev_sh_entry_get(&multi->ev.sh_entries, s);
  203|  7.02k|  int rc = 0;
  204|       |
  205|  7.02k|  if(!entry) /* we never knew or already forgot about this socket */
  ------------------
  |  Branch (205:6): [True: 7.02k, False: 0]
  ------------------
  206|  7.02k|    return CURLM_OK;
  207|       |
  208|       |  /* We managed this socket before, tell the socket callback to forget it. */
  209|      0|  if(entry->announced && multi->socket_cb) {
  ------------------
  |  Branch (209:6): [True: 0, False: 0]
  |  Branch (209:26): [True: 0, False: 0]
  ------------------
  210|      0|    NOVERBOSE((void)cause);
  ------------------
  |  | 1619|      0|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1180|      0|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1180:35): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  211|      0|    CURL_TRC_M(data, "ev %s, call(fd=%" FMT_SOCKET_T ", ev=REMOVE)", cause, s);
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  212|      0|    mev_in_callback(multi, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  213|      0|    rc = multi->socket_cb(data, s, CURL_POLL_REMOVE,
  ------------------
  |  |  286|      0|#define CURL_POLL_REMOVE 4
  ------------------
  214|      0|                          multi->socket_userp, entry->user_data);
  215|      0|    mev_in_callback(multi, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  216|      0|    entry->announced = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  217|      0|  }
  218|       |
  219|      0|  mev_sh_entry_kill(multi, s);
  220|      0|  if(rc == -1) {
  ------------------
  |  Branch (220:6): [True: 0, False: 0]
  ------------------
  221|      0|    multi->dead = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  222|      0|    return CURLM_ABORTED_BY_CALLBACK;
  223|      0|  }
  224|      0|  return CURLM_OK;
  225|      0|}

Curl_mntfy_init:
  125|  7.82k|{
  126|  7.82k|  memset(&multi->ntfy, 0, sizeof(multi->ntfy));
  127|  7.82k|  Curl_uint32_bset_init(&multi->ntfy.enabled);
  128|  7.82k|}
Curl_mntfy_resize:
  131|  7.82k|{
  132|  7.82k|  if(Curl_uint32_bset_resize(&multi->ntfy.enabled, CURLMNOTIFY_EASY_DONE + 1))
  ------------------
  |  |  540|  7.82k|#define CURLMNOTIFY_EASY_DONE    1
  ------------------
  |  Branch (132:6): [True: 0, False: 7.82k]
  ------------------
  133|      0|    return CURLM_OUT_OF_MEMORY;
  134|  7.82k|  return CURLM_OK;
  135|  7.82k|}
Curl_mntfy_cleanup:
  138|  7.82k|{
  139|  7.82k|  while(multi->ntfy.head) {
  ------------------
  |  Branch (139:9): [True: 0, False: 7.82k]
  ------------------
  140|      0|    struct mntfy_chunk *chunk = multi->ntfy.head;
  141|      0|    multi->ntfy.head = chunk->next;
  142|      0|    mnfty_chunk_destroy(chunk);
  143|      0|  }
  144|       |  multi->ntfy.tail = NULL;
  145|  7.82k|  Curl_uint32_bset_destroy(&multi->ntfy.enabled);
  146|  7.82k|}

Curl_netrc_init:
  656|  15.6k|{
  657|  15.6k|  curlx_dyn_init(&store->filebuf, MAX_NETRC_FILE);
  ------------------
  |  |   77|  15.6k|#define MAX_NETRC_FILE  (128 * 1024)
  ------------------
  658|       |  store->loaded = FALSE;
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  659|  15.6k|}
Curl_netrc_cleanup:
  661|  25.9k|{
  662|  25.9k|  curlx_dyn_free(&store->filebuf);
  663|       |  store->loaded = FALSE;
  ------------------
  |  | 1058|  25.9k|#define FALSE false
  ------------------
  664|  25.9k|}

Curl_check_noproxy:
  190|  10.3k|{
  191|       |  /*
  192|       |   * If we do not have a hostname at all, like for example with a FILE
  193|       |   * transfer, we have nothing to interrogate the noproxy list with.
  194|       |   */
  195|  10.3k|  if(!name || name[0] == '\0')
  ------------------
  |  Branch (195:6): [True: 0, False: 10.3k]
  |  Branch (195:15): [True: 0, False: 10.3k]
  ------------------
  196|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  197|       |
  198|       |  /* no_proxy=domain1.dom,host.domain2.dom
  199|       |   *   (a comma-separated list of hosts which should
  200|       |   *   not be proxied, or an asterisk to override
  201|       |   *   all proxy variables)
  202|       |   */
  203|  10.3k|  if(no_proxy && no_proxy[0]) {
  ------------------
  |  Branch (203:6): [True: 0, False: 10.3k]
  |  Branch (203:18): [True: 0, False: 0]
  ------------------
  204|      0|    const char *p = no_proxy;
  205|      0|    size_t namelen;
  206|      0|    char address[16];
  207|      0|    enum nametype type = TYPE_HOST;
  208|      0|    if(!strcmp("*", no_proxy))
  ------------------
  |  Branch (208:8): [True: 0, False: 0]
  ------------------
  209|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  210|       |
  211|       |    /* NO_PROXY was specified and it was not only an asterisk */
  212|       |
  213|       |    /* Check if name is an IP address; if not, assume it being a hostname. */
  214|      0|    namelen = strlen(name);
  215|      0|    if(curlx_inet_pton(AF_INET, name, &address) == 1)
  ------------------
  |  |   43|      0|  inet_pton(x, y, z)
  ------------------
  |  Branch (215:8): [True: 0, False: 0]
  ------------------
  216|      0|      type = TYPE_IPV4;
  217|      0|#ifdef USE_IPV6
  218|      0|    else if(curlx_inet_pton(AF_INET6, name, &address) == 1)
  ------------------
  |  |   43|      0|  inet_pton(x, y, z)
  ------------------
  |  Branch (218:13): [True: 0, False: 0]
  ------------------
  219|      0|      type = TYPE_IPV6;
  220|      0|#endif
  221|      0|    else {
  222|       |      /* ignore trailing dots in the hostname */
  223|      0|      if(name[namelen - 1] == '.')
  ------------------
  |  Branch (223:10): [True: 0, False: 0]
  ------------------
  224|      0|        namelen--;
  225|      0|    }
  226|       |
  227|      0|    while(*p) {
  ------------------
  |  Branch (227:11): [True: 0, False: 0]
  ------------------
  228|      0|      const char *token;
  229|      0|      size_t tokenlen = 0;
  230|       |
  231|       |      /* pass blanks */
  232|      0|      curlx_str_passblanks(&p);
  233|       |
  234|      0|      token = p;
  235|       |      /* pass over the pattern */
  236|      0|      while(*p && !ISBLANK(*p) && (*p != ',')) {
  ------------------
  |  |   45|      0|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (45:22): [True: 0, False: 0]
  |  |  |  Branch (45:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (236:13): [True: 0, False: 0]
  |  Branch (236:35): [True: 0, False: 0]
  ------------------
  237|      0|        p++;
  238|      0|        tokenlen++;
  239|      0|      }
  240|       |
  241|      0|      if(tokenlen) {
  ------------------
  |  Branch (241:10): [True: 0, False: 0]
  ------------------
  242|      0|        bool match = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  243|      0|        if(type == TYPE_HOST)
  ------------------
  |  Branch (243:12): [True: 0, False: 0]
  ------------------
  244|      0|          match = match_host(token, tokenlen, name, namelen);
  245|      0|        else
  246|      0|          match = match_ip(type, token, tokenlen, name);
  247|       |
  248|      0|        if(match)
  ------------------
  |  Branch (248:12): [True: 0, False: 0]
  ------------------
  249|      0|          return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  250|      0|      }
  251|       |
  252|       |      /* pass blanks after pattern */
  253|      0|      curlx_str_passblanks(&p);
  254|       |      /* if not a comma, this ends the loop */
  255|      0|      if(*p != ',')
  ------------------
  |  Branch (255:10): [True: 0, False: 0]
  ------------------
  256|      0|        break;
  257|       |      /* pass any number of commas */
  258|      0|      while(*p == ',')
  ------------------
  |  Branch (258:13): [True: 0, False: 0]
  ------------------
  259|      0|        p++;
  260|      0|    } /* while(*p) */
  261|      0|  } /* NO_PROXY was specified and it was not only an asterisk */
  262|       |
  263|  10.3k|  return FALSE;
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
  264|  10.3k|}

Curl_getdate_capped:
  606|  1.85k|{
  607|  1.85k|  int rc = parsedate(p, tp);
  608|  1.85k|  return (rc == PARSEDATE_FAIL);
  ------------------
  |  |   97|  1.85k|#define PARSEDATE_FAIL   (-1)
  ------------------
  609|  1.85k|}
parsedate.c:parsedate:
  543|  1.85k|{
  544|  1.85k|  curl_off_t seconds = 0;
  545|  1.85k|  enum assume dignext = DATE_MDAY;
  546|  1.85k|  const char *indate = date; /* save the original pointer */
  547|  1.85k|  int part = 0; /* max 6 parts */
  548|  1.85k|  int rc = 0;
  549|  1.85k|  struct when w;
  550|  1.85k|  initwhen(&w);
  551|       |
  552|  5.56k|  while(*date && (part < 6)) {
  ------------------
  |  Branch (552:9): [True: 4.98k, False: 583]
  |  Branch (552:18): [True: 4.98k, False: 0]
  ------------------
  553|  4.98k|    skip(&date);
  554|       |
  555|  4.98k|    if(ISALPHA(*date))
  ------------------
  |  |   38|  4.98k|#define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   43|  9.96k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (43:22): [True: 831, False: 4.15k]
  |  |  |  |  |  Branch (43:38): [True: 831, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   42|  4.15k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 723, False: 3.43k]
  |  |  |  |  |  Branch (42:38): [True: 723, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  556|  1.55k|      rc = datestring(&date, &w);
  557|  3.43k|    else if(ISDIGIT(*date))
  ------------------
  |  |   44|  3.43k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 2.84k, False: 583]
  |  |  |  Branch (44:38): [True: 2.84k, False: 0]
  |  |  ------------------
  ------------------
  558|  2.84k|      rc = datenum(indate, &date, &w, &dignext);
  559|  4.98k|    if(rc)
  ------------------
  |  Branch (559:8): [True: 1.27k, False: 3.70k]
  ------------------
  560|  1.27k|      return rc;
  561|       |
  562|  3.70k|    part++;
  563|  3.70k|  }
  564|       |
  565|    583|  rc = datecheck(&w);
  566|    583|  if(rc)
  ------------------
  |  Branch (566:6): [True: 356, False: 227]
  ------------------
  567|    356|    return rc;
  568|       |
  569|    227|  seconds = time2epoch(&w); /* get number of seconds */
  570|    227|  tzadjust(&seconds, &w); /* handle the time zone offset */
  571|    227|  rc = mktimet(seconds, output); /* squeeze seconds into a time_t */
  572|       |
  573|    227|  return rc;
  574|    583|}
parsedate.c:initwhen:
  360|  1.85k|{
  361|  1.85k|  w->wday = w->mon = w->mday = w->hour = w->min = w->sec = w->year = w->tzoff =
  362|  1.85k|    -1;
  363|  1.85k|}
parsedate.c:skip:
  256|  4.98k|{
  257|       |  /* skip everything that are not letters or digits */
  258|  16.2k|  while(**date && !ISALNUM(**date))
  ------------------
  |  |   41|  15.6k|#define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   44|  31.2k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 6.39k, False: 9.22k]
  |  |  |  |  |  Branch (44:38): [True: 2.84k, False: 3.55k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   43|  28.4k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (43:22): [True: 1.49k, False: 11.2k]
  |  |  |  |  |  Branch (43:38): [True: 831, False: 664]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   42|  11.9k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 1.48k, False: 10.4k]
  |  |  |  |  |  Branch (42:38): [True: 723, False: 765]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (258:9): [True: 15.6k, False: 583]
  ------------------
  259|  11.2k|    (*date)++;
  260|  4.98k|}
parsedate.c:datestring:
  366|  1.55k|{
  367|       |  /* a name coming up */
  368|  1.55k|  size_t len = 0;
  369|  1.55k|  const char *p = *datep;
  370|  1.55k|  bool found = FALSE;
  ------------------
  |  | 1058|  1.55k|#define FALSE false
  ------------------
  371|  5.57k|  while(ISALPHA(*p) && (len < NAME_LEN)) {
  ------------------
  |  |   38|  11.1k|#define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   43|  11.1k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (43:22): [True: 2.69k, False: 2.88k]
  |  |  |  |  |  Branch (43:38): [True: 2.67k, False: 14]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   42|  2.89k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 1.47k, False: 1.42k]
  |  |  |  |  |  Branch (42:38): [True: 1.42k, False: 48]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                while(ISALPHA(*p) && (len < NAME_LEN)) {
  ------------------
  |  |  357|  4.10k|#define NAME_LEN 12
  ------------------
  |  Branch (371:24): [True: 4.02k, False: 86]
  ------------------
  372|  4.02k|    p++;
  373|  4.02k|    len++;
  374|  4.02k|  }
  375|       |
  376|  1.55k|  if(len != NAME_LEN) {
  ------------------
  |  |  357|  1.55k|#define NAME_LEN 12
  ------------------
  |  Branch (376:6): [True: 1.46k, False: 88]
  ------------------
  377|  1.46k|    if(w->wday == -1) {
  ------------------
  |  Branch (377:8): [True: 1.37k, False: 89]
  ------------------
  378|  1.37k|      w->wday = checkday(*datep, len);
  379|  1.37k|      if(w->wday != -1)
  ------------------
  |  Branch (379:10): [True: 110, False: 1.26k]
  ------------------
  380|    110|        found = TRUE;
  ------------------
  |  | 1055|    110|#define TRUE true
  ------------------
  381|  1.37k|    }
  382|  1.46k|    if(!found && (w->mon == -1)) {
  ------------------
  |  Branch (382:8): [True: 1.35k, False: 110]
  |  Branch (382:18): [True: 975, False: 381]
  ------------------
  383|    975|      w->mon = checkmonth(*datep, len);
  384|    975|      if(w->mon != -1)
  ------------------
  |  Branch (384:10): [True: 109, False: 866]
  ------------------
  385|    109|        found = TRUE;
  ------------------
  |  | 1055|    109|#define TRUE true
  ------------------
  386|    975|    }
  387|       |
  388|  1.46k|    if(!found && (w->tzoff == -1)) {
  ------------------
  |  Branch (388:8): [True: 1.24k, False: 219]
  |  Branch (388:18): [True: 981, False: 266]
  ------------------
  389|       |      /* this must be a time zone string */
  390|    981|      w->tzoff = checktz(*datep, len);
  391|    981|      if(w->tzoff != -1)
  ------------------
  |  Branch (391:10): [True: 490, False: 491]
  ------------------
  392|    490|        found = TRUE;
  ------------------
  |  | 1055|    490|#define TRUE true
  ------------------
  393|    981|    }
  394|  1.46k|  }
  395|  1.55k|  if(!found)
  ------------------
  |  Branch (395:6): [True: 845, False: 709]
  ------------------
  396|    845|    return PARSEDATE_FAIL; /* bad string */
  ------------------
  |  |   97|    845|#define PARSEDATE_FAIL   (-1)
  ------------------
  397|       |
  398|    709|  *datep += len;
  399|    709|  return PARSEDATE_OK;
  ------------------
  |  |   96|    709|#define PARSEDATE_OK     0
  ------------------
  400|  1.55k|}
parsedate.c:checkday:
  199|  1.37k|{
  200|  1.37k|  int i;
  201|  1.37k|  const char * const *what;
  202|  1.37k|  if(len > 3)
  ------------------
  |  Branch (202:6): [True: 152, False: 1.22k]
  ------------------
  203|    152|    what = &weekday[0];
  204|  1.22k|  else if(len == 3)
  ------------------
  |  Branch (204:11): [True: 381, False: 844]
  ------------------
  205|    381|    what = &Curl_wkday[0];
  206|    844|  else
  207|    844|    return -1; /* too short */
  208|  3.98k|  for(i = 0; i < 7; i++) {
  ------------------
  |  Branch (208:14): [True: 3.55k, False: 423]
  ------------------
  209|  3.55k|    size_t ilen = strlen(what[0]);
  210|  3.55k|    if((ilen == len) &&
  ------------------
  |  Branch (210:8): [True: 2.51k, False: 1.04k]
  ------------------
  211|  2.51k|       curl_strnequal(check, what[0], len))
  ------------------
  |  Branch (211:8): [True: 110, False: 2.40k]
  ------------------
  212|    110|      return i;
  213|  3.44k|    what++;
  214|  3.44k|  }
  215|    423|  return -1;
  216|    533|}
parsedate.c:checkmonth:
  219|    975|{
  220|    975|  int i;
  221|    975|  const char * const *what = &Curl_month[0];
  222|    975|  if(len != 3)
  ------------------
  |  Branch (222:6): [True: 720, False: 255]
  ------------------
  223|    720|    return -1; /* not a month */
  224|       |
  225|  2.76k|  for(i = 0; i < 12; i++) {
  ------------------
  |  Branch (225:14): [True: 2.62k, False: 146]
  ------------------
  226|  2.62k|    if(curl_strnequal(check, what[0], 3))
  ------------------
  |  Branch (226:8): [True: 109, False: 2.51k]
  ------------------
  227|    109|      return i;
  228|  2.51k|    what++;
  229|  2.51k|  }
  230|    146|  return -1; /* return the offset or -1, no real offset is -1 */
  231|    255|}
parsedate.c:checktz:
  243|    981|{
  244|    981|  if(len <= 4) {
  ------------------
  |  Branch (244:6): [True: 934, False: 47]
  ------------------
  245|    934|    const struct tzinfo *what;
  246|    934|    struct tzinfo find;
  247|    934|    curlx_strcopy(find.name, sizeof(find.name), check, len);
  248|    934|    what = bsearch(&find, tz, CURL_ARRAYSIZE(tz), sizeof(tz[0]), tzcompare);
  ------------------
  |  | 1294|    934|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  249|    934|    if(what)
  ------------------
  |  Branch (249:8): [True: 490, False: 444]
  ------------------
  250|    490|      return what->offset * 60;
  251|    934|  }
  252|    491|  return -1;
  253|    981|}
parsedate.c:tzcompare:
  234|  5.28k|{
  235|  5.28k|  const struct tzinfo *tz1 = m1;
  236|  5.28k|  const struct tzinfo *tz2 = m2;
  237|  5.28k|  return strcmp(tz1->name, tz2->name);
  238|  5.28k|}
parsedate.c:datenum:
  404|  2.84k|{
  405|       |  /* a digit */
  406|  2.84k|  unsigned int val;
  407|  2.84k|  char *end;
  408|  2.84k|  const char *date = *datep;
  409|  2.84k|  enum assume dignext = *dignextp;
  410|       |
  411|  2.84k|  if((w->sec == -1) && match_time(date, w, &end)) {
  ------------------
  |  Branch (411:6): [True: 2.75k, False: 94]
  |  Branch (411:24): [True: 167, False: 2.58k]
  ------------------
  412|       |    /* time stamp */
  413|    167|    date = end;
  414|    167|  }
  415|  2.68k|  else {
  416|  2.68k|    bool found = FALSE;
  ------------------
  |  | 1058|  2.68k|#define FALSE false
  ------------------
  417|  2.68k|    curl_off_t lval;
  418|  2.68k|    int num_digits = 0;
  419|  2.68k|    const char *p = *datep;
  420|  2.68k|    if(curlx_str_number(&p, &lval, 99999999))
  ------------------
  |  Branch (420:8): [True: 41, False: 2.63k]
  ------------------
  421|     41|      return PARSEDATE_FAIL;
  ------------------
  |  |   97|     41|#define PARSEDATE_FAIL   (-1)
  ------------------
  422|       |
  423|       |    /* we know num_digits cannot be larger than 8 */
  424|  2.63k|    num_digits = (int)(p - *datep);
  425|  2.63k|    val = (unsigned int)lval;
  426|       |
  427|  2.63k|    if((w->tzoff == -1) &&
  ------------------
  |  Branch (427:8): [True: 2.23k, False: 405]
  ------------------
  428|  2.23k|       (num_digits == 4) &&
  ------------------
  |  Branch (428:8): [True: 575, False: 1.65k]
  ------------------
  429|    575|       (val <= 1400) &&
  ------------------
  |  Branch (429:8): [True: 303, False: 272]
  ------------------
  430|    303|       (indate < date) &&
  ------------------
  |  Branch (430:8): [True: 241, False: 62]
  ------------------
  431|    241|       (date[-1] == '+' || date[-1] == '-')) {
  ------------------
  |  Branch (431:9): [True: 79, False: 162]
  |  Branch (431:28): [True: 42, False: 120]
  ------------------
  432|       |      /* four digits and a value less than or equal to 1400 (to take into
  433|       |         account all sorts of funny time zone diffs) and it is preceded
  434|       |         with a plus or minus. This is a time zone indication. 1400 is
  435|       |         picked since +1300 is frequently used and +1400 is mentioned as
  436|       |         an edge number in the document "ISO C 200X Proposal: Timezone
  437|       |         Functions" at http://david.tribble.com/text/c0xtimezone.html If
  438|       |         anyone has a more authoritative source for the exact maximum time
  439|       |         zone offsets, please speak up! */
  440|    121|      found = TRUE;
  ------------------
  |  | 1055|    121|#define TRUE true
  ------------------
  441|    121|      w->tzoff = ((val / 100 * 60) + (val % 100)) * 60;
  442|       |
  443|       |      /* the + and - prefix indicates the local time compared to GMT,
  444|       |         this we need their reversed math to get what we want */
  445|    121|      w->tzoff = date[-1] == '+' ? -w->tzoff : w->tzoff;
  ------------------
  |  Branch (445:18): [True: 79, False: 42]
  ------------------
  446|    121|    }
  447|       |
  448|  2.51k|    else if((num_digits == 8) && (w->year == -1) &&
  ------------------
  |  Branch (448:13): [True: 552, False: 1.96k]
  |  Branch (448:34): [True: 519, False: 33]
  ------------------
  449|    519|            (w->mon == -1) && (w->mday == -1)) {
  ------------------
  |  Branch (449:13): [True: 519, False: 0]
  |  Branch (449:31): [True: 510, False: 9]
  ------------------
  450|       |      /* 8 digits, no year, month or day yet. This is YYYYMMDD */
  451|    510|      found = TRUE;
  ------------------
  |  | 1055|    510|#define TRUE true
  ------------------
  452|    510|      w->year = val / 10000;
  453|    510|      w->mon = ((val % 10000) / 100) - 1; /* month is 0 - 11 */
  454|    510|      w->mday = val % 100;
  455|    510|    }
  456|       |
  457|  2.63k|    if(!found && (dignext == DATE_MDAY) && (w->mday == -1)) {
  ------------------
  |  Branch (457:8): [True: 2.00k, False: 631]
  |  Branch (457:18): [True: 1.42k, False: 585]
  |  Branch (457:44): [True: 1.36k, False: 57]
  ------------------
  458|  1.36k|      if((val > 0) && (val < 32)) {
  ------------------
  |  Branch (458:10): [True: 1.16k, False: 200]
  |  Branch (458:23): [True: 737, False: 429]
  ------------------
  459|    737|        w->mday = val;
  460|    737|        found = TRUE;
  ------------------
  |  | 1055|    737|#define TRUE true
  ------------------
  461|    737|      }
  462|  1.36k|      dignext = DATE_YEAR;
  463|  1.36k|    }
  464|       |
  465|  2.63k|    if(!found && (dignext == DATE_YEAR) && (w->year == -1)) {
  ------------------
  |  Branch (465:8): [True: 1.27k, False: 1.36k]
  |  Branch (465:18): [True: 1.21k, False: 57]
  |  Branch (465:44): [True: 881, False: 333]
  ------------------
  466|    881|      w->year = val;
  467|    881|      found = TRUE;
  ------------------
  |  | 1055|    881|#define TRUE true
  ------------------
  468|    881|      if(w->year < 100) {
  ------------------
  |  Branch (468:10): [True: 521, False: 360]
  ------------------
  469|    521|        if(w->year > 70)
  ------------------
  |  Branch (469:12): [True: 38, False: 483]
  ------------------
  470|     38|          w->year += 1900;
  471|    483|        else
  472|    483|          w->year += 2000;
  473|    521|      }
  474|    881|      if(w->mday == -1)
  ------------------
  |  Branch (474:10): [True: 486, False: 395]
  ------------------
  475|    486|        dignext = DATE_MDAY;
  476|    881|    }
  477|       |
  478|  2.63k|    if(!found)
  ------------------
  |  Branch (478:8): [True: 390, False: 2.24k]
  ------------------
  479|    390|      return PARSEDATE_FAIL;
  ------------------
  |  |   97|    390|#define PARSEDATE_FAIL   (-1)
  ------------------
  480|       |
  481|  2.24k|    date = p;
  482|  2.24k|  }
  483|  2.41k|  *datep = date;
  484|  2.41k|  *dignextp = dignext;
  485|  2.41k|  return PARSEDATE_OK;
  ------------------
  |  |   96|  2.41k|#define PARSEDATE_OK     0
  ------------------
  486|  2.84k|}
parsedate.c:match_time:
  316|  2.75k|{
  317|  2.75k|  const char *p;
  318|  2.75k|  int hh, mm, ss = 0;
  319|  2.75k|  hh = oneortwodigit(date, &p);
  320|  2.75k|  if((hh < 24) && (*p == ':') && ISDIGIT(p[1])) {
  ------------------
  |  |   44|    359|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 304, False: 55]
  |  |  |  Branch (44:38): [True: 266, False: 38]
  |  |  ------------------
  ------------------
  |  Branch (320:6): [True: 2.35k, False: 394]
  |  Branch (320:19): [True: 359, False: 2.00k]
  ------------------
  321|    266|    mm = oneortwodigit(&p[1], &p);
  322|    266|    if(mm < 60) {
  ------------------
  |  Branch (322:8): [True: 203, False: 63]
  ------------------
  323|    203|      if((*p == ':') && ISDIGIT(p[1])) {
  ------------------
  |  |   44|    161|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 121, False: 40]
  |  |  |  Branch (44:38): [True: 103, False: 18]
  |  |  ------------------
  ------------------
  |  Branch (323:10): [True: 161, False: 42]
  ------------------
  324|    103|        ss = oneortwodigit(&p[1], &p);
  325|    103|        if(ss <= 60) {
  ------------------
  |  Branch (325:12): [True: 67, False: 36]
  ------------------
  326|       |          /* valid HH:MM:SS */
  327|     67|          goto match;
  328|     67|        }
  329|    103|      }
  330|    100|      else {
  331|       |        /* valid HH:MM */
  332|    100|        goto match;
  333|    100|      }
  334|    203|    }
  335|    266|  }
  336|  2.58k|  return FALSE; /* not a time string */
  ------------------
  |  | 1058|  2.58k|#define FALSE false
  ------------------
  337|    167|match:
  338|    167|  w->hour = hh;
  339|    167|  w->min = mm;
  340|    167|  w->sec = ss;
  341|    167|  *endp = (char *)CURL_UNCONST(p);
  ------------------
  |  |  866|    167|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  342|       |  return TRUE;
  ------------------
  |  | 1055|    167|#define TRUE true
  ------------------
  343|  2.75k|}
parsedate.c:oneortwodigit:
  304|  3.12k|{
  305|  3.12k|  int num = date[0] - '0';
  306|  3.12k|  if(ISDIGIT(date[1])) {
  ------------------
  |  |   44|  3.12k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (44:22): [True: 2.89k, False: 230]
  |  |  |  Branch (44:38): [True: 1.81k, False: 1.07k]
  |  |  ------------------
  ------------------
  307|  1.81k|    *endp = &date[2];
  308|  1.81k|    return (num * 10) + (date[1] - '0');
  309|  1.81k|  }
  310|  1.30k|  *endp = &date[1];
  311|  1.30k|  return num;
  312|  3.12k|}
parsedate.c:datecheck:
  489|    583|{
  490|    583|  if(w->sec == -1)
  ------------------
  |  Branch (490:6): [True: 436, False: 147]
  ------------------
  491|    436|    w->sec = w->min = w->hour = 0; /* no time, make it zero */
  492|       |
  493|    583|  if((w->mday == -1) || (w->mon == -1) || (w->year == -1))
  ------------------
  |  Branch (493:6): [True: 212, False: 371]
  |  Branch (493:25): [True: 92, False: 279]
  |  Branch (493:43): [True: 0, False: 279]
  ------------------
  494|       |    /* lacks vital info, fail */
  495|    304|    return PARSEDATE_FAIL;
  ------------------
  |  |   97|    304|#define PARSEDATE_FAIL   (-1)
  ------------------
  496|       |
  497|       |  /* The Gregorian calendar was introduced 1582 */
  498|    279|  else if(w->year < 1583)
  ------------------
  |  Branch (498:11): [True: 1, False: 278]
  ------------------
  499|      1|    return PARSEDATE_FAIL;
  ------------------
  |  |   97|      1|#define PARSEDATE_FAIL   (-1)
  ------------------
  500|       |
  501|    278|  else if((w->mday > 31) || (w->mon > 11) || (w->hour > 23) ||
  ------------------
  |  Branch (501:11): [True: 39, False: 239]
  |  Branch (501:29): [True: 12, False: 227]
  |  Branch (501:46): [True: 0, False: 227]
  ------------------
  502|    227|          (w->min > 59) || (w->sec > 60))
  ------------------
  |  Branch (502:11): [True: 0, False: 227]
  |  Branch (502:28): [True: 0, False: 227]
  ------------------
  503|     51|    return PARSEDATE_FAIL; /* clearly an illegal date */
  ------------------
  |  |   97|     51|#define PARSEDATE_FAIL   (-1)
  ------------------
  504|       |
  505|    227|  return PARSEDATE_OK;
  ------------------
  |  |   96|    227|#define PARSEDATE_OK     0
  ------------------
  506|    583|}
parsedate.c:time2epoch:
  288|    227|{
  289|    227|  static const int cumulative_days[12] = {
  290|    227|    0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
  291|    227|  };
  292|    227|  int y = w->year - (w->mon <= 1);
  293|    227|  int leap_days = (y / 4) - (y / 100) + (y / 400) - LEAP_DAYS_BEFORE_1969;
  ------------------
  |  |  281|    227|#define LEAP_DAYS_BEFORE_1969 477
  ------------------
  294|    227|  curl_off_t days = (curl_off_t)(w->year - 1970) * 365 + leap_days +
  295|    227|    cumulative_days[w->mon] + w->mday - 1;
  296|       |
  297|    227|  return (((days * 24 + w->hour) * 60 + w->min) * 60) + w->sec;
  298|    227|}
parsedate.c:tzadjust:
  509|    227|{
  510|    227|  if(w->tzoff == -1) /* unknown tz means no offset */
  ------------------
  |  Branch (510:6): [True: 93, False: 134]
  ------------------
  511|     93|    w->tzoff = 0;
  512|       |
  513|       |  /* Add the time zone diff between local time zone and GMT. */
  514|    227|  if((w->tzoff > 0) && (*tp > (curl_off_t)(CURL_OFF_T_MAX - w->tzoff)))
  ------------------
  |  |  594|    134|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (514:6): [True: 134, False: 93]
  |  Branch (514:24): [True: 0, False: 134]
  ------------------
  515|      0|    *tp = CURL_OFF_T_MAX;
  ------------------
  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  516|    227|  else
  517|    227|    *tp += w->tzoff;
  518|       |  /* this needs no minimum check since we require a year > 1582 */
  519|    227|}
parsedate.c:mktimet:
  522|    227|{
  523|       |#if SIZEOF_TIME_T < 5
  524|       |  if(seconds > TIME_T_MAX) {
  525|       |    *output = TIME_T_MAX;
  526|       |    return PARSEDATE_LATER;
  527|       |  }
  528|       |  else if(seconds < TIME_T_MIN) {
  529|       |    *output = TIME_T_MIN;
  530|       |    return PARSEDATE_SOONER;
  531|       |  }
  532|       |#elif defined(HAVE_TIME_T_UNSIGNED)
  533|       |  if(seconds < 0) {
  534|       |    *output = 0;
  535|       |    return PARSEDATE_SOONER;
  536|       |  }
  537|       |#endif
  538|    227|  *output = (time_t)seconds;
  539|    227|  return PARSEDATE_OK;
  ------------------
  |  |   96|    227|#define PARSEDATE_OK     0
  ------------------
  540|    227|}

Curl_peer_link:
  287|  33.4k|{
  288|  33.4k|  if(*pdest != src) {
  ------------------
  |  Branch (288:6): [True: 27.8k, False: 5.60k]
  ------------------
  289|  27.8k|    Curl_peer_unlink(pdest);
  290|  27.8k|    *pdest = src;
  291|  27.8k|    if(src) {
  ------------------
  |  Branch (291:8): [True: 27.8k, False: 0]
  ------------------
  292|  27.8k|      DEBUGASSERT(src->refcount < UINT32_MAX);
  ------------------
  |  | 1081|  27.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (292:7): [True: 0, False: 27.8k]
  |  Branch (292:7): [True: 27.8k, False: 0]
  ------------------
  293|  27.8k|      src->refcount++;
  294|  27.8k|    }
  295|  27.8k|  }
  296|  33.4k|}
Curl_peer_unlink:
  299|   164k|{
  300|   164k|  if(*ppeer) {
  ------------------
  |  Branch (300:6): [True: 48.6k, False: 116k]
  ------------------
  301|  48.6k|    struct Curl_peer *peer = *ppeer;
  302|       |
  303|  48.6k|    DEBUGASSERT(peer->refcount);
  ------------------
  |  | 1081|  48.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (303:5): [True: 0, False: 48.6k]
  |  Branch (303:5): [True: 48.6k, False: 0]
  ------------------
  304|  48.6k|    *ppeer = NULL;
  305|  48.6k|    if(peer->refcount)
  ------------------
  |  Branch (305:8): [True: 48.6k, False: 0]
  ------------------
  306|  48.6k|      peer->refcount--;
  307|  48.6k|    if(!peer->refcount) {
  ------------------
  |  Branch (307:8): [True: 20.7k, False: 27.8k]
  ------------------
  308|  20.7k|      curlx_free(peer);
  ------------------
  |  | 1483|  20.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  309|  20.7k|    }
  310|  48.6k|  }
  311|   164k|}
Curl_peer_equal:
  314|  10.3k|{
  315|  10.3k|  return (p1 == p2) ||
  ------------------
  |  Branch (315:10): [True: 0, False: 10.3k]
  ------------------
  316|  10.3k|         (p1 && p2 &&
  ------------------
  |  Branch (316:11): [True: 10.3k, False: 0]
  |  Branch (316:17): [True: 10.3k, False: 0]
  ------------------
  317|  10.3k|          (p1->scheme == p2->scheme) &&
  ------------------
  |  Branch (317:11): [True: 10.3k, False: 0]
  ------------------
  318|  10.3k|          Curl_peer_same_destination(p1, p2));
  ------------------
  |  Branch (318:11): [True: 35, False: 10.2k]
  ------------------
  319|  10.3k|}
Curl_peer_same_destination:
  334|  16.3k|{
  335|  16.3k|  return (p1 == p2) ||
  ------------------
  |  Branch (335:10): [True: 26, False: 16.3k]
  ------------------
  336|  16.3k|         (p1 && p2 &&
  ------------------
  |  Branch (336:11): [True: 16.3k, False: 0]
  |  Branch (336:17): [True: 16.3k, False: 0]
  ------------------
  337|  16.3k|          (p1->port == p2->port) &&
  ------------------
  |  Branch (337:11): [True: 16.3k, False: 0]
  ------------------
  338|  16.3k|          peer_same_hostname(p1, p2) &&
  ------------------
  |  Branch (338:11): [True: 6.06k, False: 10.3k]
  ------------------
  339|  6.06k|          (p1->scopeid == p2->scopeid) &&
  ------------------
  |  Branch (339:11): [True: 6.06k, False: 0]
  ------------------
  340|  6.06k|          (p1->scopeid || curl_strequal(p1->zoneid, p2->zoneid)));
  ------------------
  |  Branch (340:12): [True: 0, False: 6.06k]
  |  Branch (340:27): [True: 6.06k, False: 0]
  ------------------
  341|  16.3k|}
Curl_peer_from_url:
  348|  10.5k|{
  349|  10.5k|  struct peer_parse pp;
  350|  10.5k|  char *zoneid = NULL;
  351|  10.5k|  CURLUcode uc;
  352|  10.5k|  CURLcode result;
  353|       |
  354|  10.5k|  Curl_peer_unlink(ppeer);
  355|  10.5k|  memset(&pp, 0, sizeof(pp));
  356|       |
  357|  10.5k|  curlx_safefree(up->scheme);
  ------------------
  |  | 1327|  10.5k|  do {                      \
  |  | 1328|  10.5k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  10.5k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  10.5k|    (ptr) = NULL;           \
  |  | 1330|  10.5k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 10.5k]
  |  |  ------------------
  ------------------
  358|  10.5k|  uc = curl_url_get(uh, CURLUPART_SCHEME, &up->scheme, 0);
  359|  10.5k|  if(uc)
  ------------------
  |  Branch (359:6): [True: 0, False: 10.5k]
  ------------------
  360|      0|    return Curl_uc_to_curlcode(uc);
  361|  10.5k|  pp.scheme = Curl_get_scheme(up->scheme);
  362|  10.5k|  if(!pp.scheme) {
  ------------------
  |  Branch (362:6): [True: 0, False: 10.5k]
  ------------------
  363|      0|    failf(data, "Protocol \"%s\" not supported%s", up->scheme,
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  364|      0|          data->state.this_is_a_follow ? " (in redirect)" : "");
  ------------------
  |  Branch (364:11): [True: 0, False: 0]
  ------------------
  365|      0|    result = CURLE_UNSUPPORTED_PROTOCOL;
  366|      0|    goto out;
  367|      0|  }
  368|       |
  369|  10.5k|  curlx_safefree(up->hostname);
  ------------------
  |  | 1327|  10.5k|  do {                      \
  |  | 1328|  10.5k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  10.5k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  10.5k|    (ptr) = NULL;           \
  |  | 1330|  10.5k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 10.5k]
  |  |  ------------------
  ------------------
  370|  10.5k|  uc = curl_url_get(uh, CURLUPART_HOST, &up->hostname, 0);
  371|  10.5k|  if(uc) {
  ------------------
  |  Branch (371:6): [True: 6, False: 10.5k]
  ------------------
  372|      6|    if((uc == CURLUE_NO_HOST) && (pp.scheme->flags & PROTOPT_NONETWORK))
  ------------------
  |  |  215|      6|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (372:8): [True: 6, False: 0]
  |  Branch (372:34): [True: 6, False: 0]
  ------------------
  373|      6|      ; /* acceptable */
  374|      0|    else {
  375|      0|      result = CURLE_OUT_OF_MEMORY;
  376|      0|      goto out;
  377|      0|    }
  378|      6|  }
  379|  10.5k|  else if(strlen(up->hostname) > MAX_URL_LEN) {
  ------------------
  |  |   29|  10.5k|#define MAX_URL_LEN 0xffff
  ------------------
  |  Branch (379:11): [True: 0, False: 10.5k]
  ------------------
  380|      0|    failf(data, "Too long hostname (maximum is %d)", MAX_URL_LEN);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
                  failf(data, "Too long hostname (maximum is %d)", MAX_URL_LEN);
  ------------------
  |  |   29|      0|#define MAX_URL_LEN 0xffff
  ------------------
  381|      0|    result = CURLE_URL_MALFORMAT;
  382|      0|    goto out;
  383|      0|  }
  384|       |
  385|  10.5k|  pp.host_user.str = up->hostname ? up->hostname : "";
  ------------------
  |  Branch (385:22): [True: 10.5k, False: 6]
  ------------------
  386|  10.5k|  pp.host_user.len = strlen(pp.host_user.str);
  387|  10.5k|  if(pp.host_user.len) {
  ------------------
  |  Branch (387:6): [True: 10.5k, False: 6]
  ------------------
  388|  10.5k|    result = peer_parse_host(data, &pp, FALSE);
  ------------------
  |  | 1058|  10.5k|#define FALSE false
  ------------------
  389|  10.5k|    if(result)
  ------------------
  |  Branch (389:8): [True: 139, False: 10.4k]
  ------------------
  390|    139|      goto out;
  391|  10.5k|  }
  392|      6|  else
  393|      6|    pp.host = pp.host_user;
  394|       |
  395|  10.4k|  curlx_safefree(up->port);
  ------------------
  |  | 1327|  10.4k|  do {                      \
  |  | 1328|  10.4k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  10.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  10.4k|    (ptr) = NULL;           \
  |  | 1330|  10.4k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 10.4k]
  |  |  ------------------
  ------------------
  396|  10.4k|  if(port_override) {
  ------------------
  |  Branch (396:6): [True: 0, False: 10.4k]
  ------------------
  397|       |    /* if set, we use this instead of the port possibly given in the URL */
  398|      0|    char portbuf[16];
  399|      0|    curl_msnprintf(portbuf, sizeof(portbuf), "%d", port_override);
  400|      0|    uc = curl_url_set(uh, CURLUPART_PORT, portbuf, 0);
  401|      0|    if(uc) {
  ------------------
  |  Branch (401:8): [True: 0, False: 0]
  ------------------
  402|      0|      result = CURLE_OUT_OF_MEMORY;
  403|      0|      goto out;
  404|      0|    }
  405|      0|    else
  406|      0|      pp.port = port_override;
  407|      0|  }
  408|  10.4k|  else {
  409|  10.4k|    uc = curl_url_get(uh, CURLUPART_PORT, &up->port, CURLU_DEFAULT_PORT);
  ------------------
  |  |   84|  10.4k|#define CURLU_DEFAULT_PORT (1 << 0)       /* return default port number */
  ------------------
  410|  10.4k|    if(uc) {
  ------------------
  |  Branch (410:8): [True: 0, False: 10.4k]
  ------------------
  411|      0|      if(uc == CURLUE_OUT_OF_MEMORY) {
  ------------------
  |  Branch (411:10): [True: 0, False: 0]
  ------------------
  412|      0|        result = CURLE_OUT_OF_MEMORY;
  413|      0|        goto out;
  414|      0|      }
  415|      0|      else if(!(pp.scheme->flags & PROTOPT_NONETWORK)) {
  ------------------
  |  |  215|      0|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (415:15): [True: 0, False: 0]
  ------------------
  416|      0|        result = CURLE_URL_MALFORMAT;
  417|      0|        goto out;
  418|      0|      }
  419|       |      /* no port ok when not a network scheme */
  420|      0|    }
  421|  10.4k|    else {
  422|  10.4k|      const char *p = up->port;
  423|  10.4k|      curl_off_t offt;
  424|  10.4k|      if(curlx_str_number(&p, &offt, 0xffff))
  ------------------
  |  Branch (424:10): [True: 0, False: 10.4k]
  ------------------
  425|      0|        return CURLE_URL_MALFORMAT;
  426|  10.4k|      pp.port = (uint16_t)offt;
  427|  10.4k|    }
  428|  10.4k|  }
  429|       |
  430|  10.4k|  if(scopeid_override)
  ------------------
  |  Branch (430:6): [True: 0, False: 10.4k]
  ------------------
  431|       |    /* Override any scope id from an url zone. */
  432|      0|    pp.scopeid = scopeid_override;
  433|  10.4k|  else {
  434|  10.4k|    if(curl_url_get(uh, CURLUPART_ZONEID, &zoneid, 0) ==
  ------------------
  |  Branch (434:8): [True: 0, False: 10.4k]
  ------------------
  435|  10.4k|       CURLUE_OUT_OF_MEMORY) {
  436|      0|      result = CURLE_OUT_OF_MEMORY;
  437|      0|      goto out;
  438|      0|    }
  439|  10.4k|    if(zoneid) {
  ------------------
  |  Branch (439:8): [True: 0, False: 10.4k]
  ------------------
  440|      0|      pp.zoneid.str = zoneid;
  441|      0|      pp.zoneid.len = strlen(zoneid);
  442|      0|    }
  443|  10.4k|  }
  444|       |
  445|  10.4k|  result = peer_create(&pp, ppeer);
  446|  10.4k|  if(result)
  ------------------
  |  Branch (446:6): [True: 0, False: 10.4k]
  ------------------
  447|      0|    failf(data, "Error %d creating peer for %s:%u",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  448|      0|          result, pp.host_user.str, pp.port);
  449|       |
  450|  10.5k|out:
  451|  10.5k|  peer_parse_clear(&pp);
  452|  10.5k|  curlx_free(zoneid);
  ------------------
  |  | 1483|  10.5k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  453|  10.5k|  return result;
  454|  10.4k|}
Curl_peer_from_connect_to:
  462|  10.3k|{
  463|  10.3k|  struct peer_parse pp;
  464|  10.3k|  const char *portstr = NULL;
  465|  10.3k|  CURLcode result;
  466|       |
  467|  10.3k|  Curl_peer_unlink(ppeer);
  468|  10.3k|  memset(&pp, 0, sizeof(pp));
  469|  10.3k|  if(!connect_to || !*connect_to)
  ------------------
  |  Branch (469:6): [True: 0, False: 10.3k]
  |  Branch (469:21): [True: 0, False: 10.3k]
  ------------------
  470|      0|    return CURLE_FAILED_INIT;
  471|       |
  472|  10.3k|  pp.scheme = dest->scheme;
  473|       |
  474|       |  /* detect and extract RFC6874-style IPv6-addresses */
  475|  10.3k|  if(connect_to[0] == '[') {
  ------------------
  |  Branch (475:6): [True: 0, False: 10.3k]
  ------------------
  476|      0|    const char *s = strchr(connect_to + 1, ']');
  477|      0|    if(!s) {
  ------------------
  |  Branch (477:8): [True: 0, False: 0]
  ------------------
  478|      0|      failf(data, "Invalid IPv6 address format in '%s'", connect_to);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  479|      0|      result = CURLE_SETOPT_OPTION_SYNTAX;
  480|      0|      goto out;
  481|      0|    }
  482|      0|    portstr = strchr(s, ':');
  483|      0|    pp.host_user.str = connect_to;
  484|      0|    pp.host_user.len = s - pp.host_user.str + 1;
  485|      0|    pp.ipv6 = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  486|      0|  }
  487|  10.3k|  else {
  488|  10.3k|    portstr = strchr(connect_to, ':');
  489|  10.3k|    pp.host_user.str = connect_to;
  490|  10.3k|    pp.host_user.len = portstr ?
  ------------------
  |  Branch (490:24): [True: 10.3k, False: 0]
  ------------------
  491|  10.3k|      (size_t)(portstr - connect_to) : strlen(connect_to);
  492|  10.3k|  }
  493|       |
  494|  10.3k|  if(!pp.host_user.len) { /* no hostname found, only port switch */
  ------------------
  |  Branch (494:6): [True: 0, False: 10.3k]
  ------------------
  495|      0|    pp.host_user.str = dest->user_hostname;
  496|      0|    pp.host_user.len = strlen(dest->user_hostname);
  497|      0|  }
  498|       |
  499|  10.3k|  result = peer_parse_host(data, &pp, FALSE);
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
  500|  10.3k|  if(result)
  ------------------
  |  Branch (500:6): [True: 0, False: 10.3k]
  ------------------
  501|      0|    goto out;
  502|       |
  503|  10.3k|  if(portstr && portstr[1]) {
  ------------------
  |  Branch (503:6): [True: 10.3k, False: 0]
  |  Branch (503:17): [True: 0, False: 10.3k]
  ------------------
  504|      0|    const char *p = portstr + 1;
  505|      0|    curl_off_t portparse;
  506|      0|    if(curlx_str_number(&p, &portparse, 0xffff)) {
  ------------------
  |  Branch (506:8): [True: 0, False: 0]
  ------------------
  507|      0|      failf(data, "No valid port number in '%s'", connect_to);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  508|      0|      result = CURLE_SETOPT_OPTION_SYNTAX;
  509|      0|      goto out;
  510|      0|    }
  511|      0|    pp.port = (uint16_t)portparse; /* we know it will fit */
  512|      0|  }
  513|  10.3k|  else
  514|  10.3k|    pp.port = dest->port;
  515|       |
  516|       |#ifndef USE_IPV6
  517|       |  if(pp.ipv6) {
  518|       |    failf(data, "Use of IPv6 in *_CONNECT_TO without IPv6 support built-in");
  519|       |    result = CURLE_NOT_BUILT_IN;
  520|       |    goto out;
  521|       |  }
  522|       |#endif
  523|       |
  524|  10.3k|  result = peer_create(&pp, ppeer);
  525|  10.3k|  CURL_TRC_M(data, "connect-to peer_create2 -> %d", result);
  ------------------
  |  |  148|  10.3k|  do {                                   \
  |  |  149|  10.3k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  10.3k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  10.3k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  20.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 10.3k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 10.3k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  20.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  10.3k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  10.3k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  526|       |
  527|  10.3k|out:
  528|  10.3k|  CURL_TRC_M(data, "parse connect_to peer: %s -> %d", connect_to, result);
  ------------------
  |  |  148|  10.3k|  do {                                   \
  |  |  149|  10.3k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  10.3k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  10.3k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  20.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 10.3k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 10.3k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  20.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  10.3k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  10.3k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
  529|  10.3k|  peer_parse_clear(&pp);
  530|  10.3k|  return result;
  531|  10.3k|}
peer.c:peer_parse_host:
  185|  20.8k|{
  186|  20.8k|  if(!pp || !pp->host_user.str || !pp->host_user.len)
  ------------------
  |  Branch (186:6): [True: 0, False: 20.8k]
  |  Branch (186:13): [True: 0, False: 20.8k]
  |  Branch (186:35): [True: 0, False: 20.8k]
  ------------------
  187|      0|    return CURLE_FAILED_INIT;
  188|       |
  189|  20.8k|  if(pp->host_user.str[0] == '[') {
  ------------------
  |  Branch (189:6): [True: 11, False: 20.8k]
  ------------------
  190|     11|    const char *s = pp->host_user.str + 1;
  191|     11|    struct Curl_str tmp;
  192|     11|    if(curlx_str_until(&s, &tmp, pp->host_user.len - 1, ']'))
  ------------------
  |  Branch (192:8): [True: 0, False: 11]
  ------------------
  193|      0|      return CURLE_URL_MALFORMAT;
  194|       |
  195|     11|    if(!Curl_looks_like_ipv6(tmp.str, tmp.len, TRUE,
  ------------------
  |  | 1055|     11|#define TRUE true
  ------------------
  |  Branch (195:8): [True: 0, False: 11]
  ------------------
  196|     11|                             &pp->host, &pp->zoneid)) {
  197|      0|      failf(data, "Invalid IPv6 address format in '%.*s'",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  198|      0|            (int)pp->host_user.len, pp->host_user.str);
  199|      0|      return CURLE_URL_MALFORMAT;
  200|      0|    }
  201|     11|    pp->ipv6 = TRUE;
  ------------------
  |  | 1055|     11|#define TRUE true
  ------------------
  202|     11|  }
  203|  20.8k|  else {
  204|  20.8k|#ifdef USE_IDN
  205|  20.8k|    if(!Curl_is_ASCII_str(&pp->host_user)) {
  ------------------
  |  Branch (205:8): [True: 139, False: 20.7k]
  ------------------
  206|    139|      CURLcode result;
  207|    139|      if(!pp->tmp_host_user) {
  ------------------
  |  Branch (207:10): [True: 139, False: 0]
  ------------------
  208|       |        /* need a null-terminated string for IDN */
  209|    139|        pp->tmp_host_user = curlx_memdup0(pp->host_user.str,
  210|    139|                                          pp->host_user.len);
  211|    139|        if(!pp->tmp_host_user)
  ------------------
  |  Branch (211:12): [True: 0, False: 139]
  ------------------
  212|      0|          return CURLE_OUT_OF_MEMORY;
  213|    139|      }
  214|    139|      result = Curl_idn_decode(pp->tmp_host_user, &pp->tmp_host);
  215|    139|      if(result)
  ------------------
  |  Branch (215:10): [True: 139, False: 0]
  ------------------
  216|    139|        return result;
  217|      0|      pp->host.str = pp->tmp_host;
  218|      0|      pp->host.len = strlen(pp->host.str);
  219|      0|    }
  220|  20.7k|    else
  221|  20.7k|#endif
  222|  20.7k|    if(scan_for_ipv6 &&
  ------------------
  |  Branch (222:8): [True: 0, False: 20.7k]
  ------------------
  223|      0|       Curl_looks_like_ipv6(pp->host_user.str, pp->host_user.len, TRUE,
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  |  Branch (223:8): [True: 0, False: 0]
  ------------------
  224|      0|                            &pp->host, &pp->zoneid)) {
  225|      0|      pp->ipv6 = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  226|      0|    }
  227|  20.7k|    else
  228|  20.7k|      pp->host = pp->host_user;
  229|  20.8k|  }
  230|  20.7k|  return CURLE_OK;
  231|  20.8k|}
peer.c:peer_create:
  104|  20.7k|{
  105|  20.7k|  struct Curl_peer *peer = NULL;
  106|  20.7k|  CURLcode result = CURLE_OK;
  107|  20.7k|  size_t zone_alen = 0, host_alen = 0;
  108|       |
  109|  20.7k|  if(!pp || !pp->scheme)
  ------------------
  |  Branch (109:6): [True: 0, False: 20.7k]
  |  Branch (109:13): [True: 0, False: 20.7k]
  ------------------
  110|      0|    return CURLE_FAILED_INIT;
  111|  20.7k|  if(!pp->host.len && !(pp->scheme->flags & PROTOPT_NONETWORK))
  ------------------
  |  |  215|      6|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (111:6): [True: 6, False: 20.7k]
  |  Branch (111:23): [True: 0, False: 6]
  ------------------
  112|      0|    return CURLE_FAILED_INIT;
  113|       |
  114|  20.7k|  if((pp->host.str != pp->host_user.str) ||
  ------------------
  |  Branch (114:6): [True: 11, False: 20.7k]
  ------------------
  115|  20.7k|     (pp->host.len != pp->host_user.len)) {
  ------------------
  |  Branch (115:6): [True: 0, False: 20.7k]
  ------------------
  116|     11|    host_alen = pp->host.len + 1;
  117|     11|  }
  118|  20.7k|  zone_alen = pp->zoneid.len ? (pp->zoneid.len + 1) : 0;
  ------------------
  |  Branch (118:15): [True: 0, False: 20.7k]
  ------------------
  119|       |
  120|       |  /* null-terminator already part of struct */
  121|  20.7k|  peer = curlx_calloc(1, sizeof(*peer) +
  ------------------
  |  | 1480|  20.7k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  122|  20.7k|                         pp->host_user.len + host_alen + zone_alen);
  123|  20.7k|  if(!peer) {
  ------------------
  |  Branch (123:6): [True: 0, False: 20.7k]
  ------------------
  124|      0|    result = CURLE_OUT_OF_MEMORY;
  125|      0|    goto out;
  126|      0|  }
  127|       |
  128|  20.7k|  peer->refcount = 1;
  129|  20.7k|  peer->scheme = pp->scheme;
  130|  20.7k|  peer->hostname = peer->user_hostname;
  131|  20.7k|  peer->port = pp->port;
  132|  20.7k|  peer->scopeid = pp->scopeid;
  133|  20.7k|  peer->ipv6 = pp->ipv6;
  134|  20.7k|  peer->unix_socket = pp->unix_socket;
  135|  20.7k|  peer->abstract_uds = pp->abstract_uds;
  136|       |
  137|  20.7k|  if(pp->host_user.len)
  ------------------
  |  Branch (137:6): [True: 20.7k, False: 6]
  ------------------
  138|  20.7k|    memcpy(peer->user_hostname, pp->host_user.str, pp->host_user.len);
  139|       |
  140|  20.7k|  if(host_alen) {
  ------------------
  |  Branch (140:6): [True: 11, False: 20.7k]
  ------------------
  141|     11|    peer->hostname = peer->user_hostname + pp->host_user.len + 1;
  142|     11|    memcpy(peer->hostname, pp->host.str, pp->host.len);
  143|     11|  }
  144|       |
  145|  20.7k|  if(zone_alen) {
  ------------------
  |  Branch (145:6): [True: 0, False: 20.7k]
  ------------------
  146|      0|    peer->zoneid = peer->user_hostname + pp->host_user.len + 1 + host_alen;
  147|      0|    memcpy(peer->zoneid, pp->zoneid.str, pp->zoneid.len);
  148|      0|#ifdef USE_IPV6
  149|       |    /* Determine scope_id if not already provided */
  150|      0|    if(!peer->scopeid) {
  ------------------
  |  Branch (150:8): [True: 0, False: 0]
  ------------------
  151|      0|      const char *p = peer->zoneid;
  152|      0|      curl_off_t scope;
  153|      0|      if(!curlx_str_number(&p, &scope, UINT_MAX)) {
  ------------------
  |  Branch (153:10): [True: 0, False: 0]
  ------------------
  154|       |        /* A plain number, use it directly as a scope id. */
  155|      0|        peer->scopeid = (uint32_t)scope;
  156|      0|      }
  157|      0|#ifdef HAVE_IF_NAMETOINDEX
  158|      0|      else {
  159|       |        /* Zone identifier is not numeric */
  160|      0|        unsigned int idx = 0;
  161|      0|        idx = if_nametoindex(peer->zoneid);
  162|      0|        if(idx) {
  ------------------
  |  Branch (162:12): [True: 0, False: 0]
  ------------------
  163|      0|          peer->scopeid = (uint32_t)idx;
  164|      0|        }
  165|      0|        else {
  166|       |          /* Do we want to return an error here? */
  167|      0|        }
  168|      0|      }
  169|      0|#endif /* HAVE_IF_NAMETOINDEX */
  170|      0|    }
  171|      0|#endif /* USE_IPV6 */
  172|      0|  }
  173|       |
  174|  20.7k|out:
  175|  20.7k|  if(!result)
  ------------------
  |  Branch (175:6): [True: 20.7k, False: 0]
  ------------------
  176|  20.7k|    *ppeer = peer;
  177|      0|  else
  178|      0|    Curl_peer_unlink(&peer);
  179|  20.7k|  return result;
  180|  20.7k|}
peer.c:peer_parse_clear:
   95|  20.8k|{
   96|  20.8k|  curlx_free(pp->tmp_host_user);
  ------------------
  |  | 1483|  20.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   97|  20.8k|  curlx_free(pp->tmp_host);
  ------------------
  |  | 1483|  20.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   98|  20.8k|  curlx_free(pp->tmp_zoneid);
  ------------------
  |  | 1483|  20.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   99|  20.8k|  memset(pp, 0, sizeof(*pp));
  100|  20.8k|}
peer.c:peer_same_hostname:
  322|  16.3k|{
  323|       |  /* UNIX domain socket paths must be compared case-sensitive,
  324|       |   * as many filesystem are like that. */
  325|  16.3k|  return (p1->unix_socket == p2->unix_socket) &&
  ------------------
  |  Branch (325:10): [True: 16.3k, False: 0]
  ------------------
  326|  16.3k|         (p1->abstract_uds == p2->abstract_uds) &&
  ------------------
  |  Branch (326:10): [True: 16.3k, False: 0]
  ------------------
  327|  16.3k|         (p1->ipv6 == p2->ipv6) &&
  ------------------
  |  Branch (327:10): [True: 16.3k, False: 11]
  ------------------
  328|  16.3k|         (p1->unix_socket ?
  ------------------
  |  Branch (328:10): [True: 6.06k, False: 10.2k]
  |  Branch (328:11): [True: 0, False: 16.3k]
  ------------------
  329|      0|          !strcmp(p1->hostname, p2->hostname) :
  330|  16.3k|          curl_strequal(p1->hostname, p2->hostname));
  331|  16.3k|}

pgrs_speedcheck:
  136|   117k|{
  137|   117k|  if(!data->set.low_speed_time || !data->set.low_speed_limit ||
  ------------------
  |  Branch (137:6): [True: 117k, False: 0]
  |  Branch (137:35): [True: 0, False: 0]
  ------------------
  138|      0|     Curl_xfer_recv_is_paused(data) || Curl_xfer_send_is_paused(data))
  ------------------
  |  Branch (138:6): [True: 0, False: 0]
  |  Branch (138:40): [True: 0, False: 0]
  ------------------
  139|       |    /* A paused transfer is not qualified for speed checks */
  140|   117k|    return CURLE_OK;
  141|       |
  142|      0|  if(data->progress.current_speed >= 0) {
  ------------------
  |  Branch (142:6): [True: 0, False: 0]
  ------------------
  143|      0|    if(data->progress.current_speed < data->set.low_speed_limit) {
  ------------------
  |  Branch (143:8): [True: 0, False: 0]
  ------------------
  144|      0|      if(!data->state.keeps_speed.tv_sec)
  ------------------
  |  Branch (144:10): [True: 0, False: 0]
  ------------------
  145|       |        /* under the limit at this moment */
  146|      0|        data->state.keeps_speed = *pnow;
  147|      0|      else {
  148|       |        /* how long has it been under the limit */
  149|      0|        timediff_t howlong =
  150|      0|          curlx_ptimediff_ms(pnow, &data->state.keeps_speed);
  151|       |
  152|      0|        if(howlong >= data->set.low_speed_time * 1000) {
  ------------------
  |  Branch (152:12): [True: 0, False: 0]
  ------------------
  153|       |          /* too long */
  154|      0|          failf(data, "Operation too slow. Less than %" FMT_OFF_T
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  155|      0|                " bytes/sec transferred the last %u seconds",
  156|      0|                data->set.low_speed_limit, data->set.low_speed_time);
  157|      0|          return CURLE_OPERATION_TIMEDOUT;
  158|      0|        }
  159|      0|      }
  160|      0|    }
  161|      0|    else
  162|       |      /* faster right now */
  163|      0|      data->state.keeps_speed.tv_sec = 0;
  164|      0|  }
  165|       |
  166|       |  /* since low speed limit is enabled, set the expire timer to make this
  167|       |     connection's speed get checked again in a second */
  168|      0|  Curl_expire(data, 1000, EXPIRE_SPEEDCHECK);
  169|       |
  170|      0|  return CURLE_OK;
  171|      0|}
Curl_pgrs_now:
  174|  1.79M|{
  175|  1.79M|  struct curltime *pnow = data->multi ?
  ------------------
  |  Branch (175:27): [True: 1.78M, False: 7.82k]
  ------------------
  176|  1.78M|                          &data->multi->now : &data->progress.now;
  177|  1.79M|  curlx_pnow(pnow);
  178|  1.79M|  return pnow;
  179|  1.79M|}
Curl_pgrsDone:
  194|  9.58k|{
  195|  9.58k|  int rc;
  196|  9.58k|  data->progress.lastshow = 0;
  197|  9.58k|  rc = Curl_pgrsUpdate(data); /* the final (forced) update */
  198|  9.58k|  if(rc)
  ------------------
  |  Branch (198:6): [True: 0, False: 9.58k]
  ------------------
  199|      0|    return rc;
  200|       |
  201|  9.58k|  if(!data->progress.hide && !data->progress.callback)
  ------------------
  |  Branch (201:6): [True: 0, False: 9.58k]
  |  Branch (201:30): [True: 0, False: 0]
  ------------------
  202|       |    /* only output if we do not use a progress callback and we are not
  203|       |     * hidden */
  204|      0|    curl_mfprintf(data->set.err, "\n");
  205|       |
  206|  9.58k|  return 0;
  207|  9.58k|}
Curl_pgrsReset:
  210|  10.3k|{
  211|  10.3k|  Curl_pgrsSetUploadCounter(data, 0);
  212|  10.3k|  data->progress.dl.cur_size = 0;
  213|  10.3k|  Curl_pgrsSetUploadSize(data, -1);
  214|  10.3k|  Curl_pgrsSetDownloadSize(data, -1);
  215|  10.3k|  data->progress.speeder_c = 0; /* reset speed records */
  216|  10.3k|  data->progress.deliver = 0;
  217|  10.3k|  pgrs_speedinit(data);
  218|  10.3k|}
Curl_pgrsResetTransferSizes:
  222|  11.1k|{
  223|  11.1k|  Curl_pgrsSetDownloadSize(data, -1);
  224|  11.1k|  Curl_pgrsSetUploadSize(data, -1);
  225|  11.1k|}
Curl_pgrsTimeWas:
  248|  71.8k|{
  249|  71.8k|  timediff_t *delta = NULL;
  250|       |
  251|  71.8k|  switch(timer) {
  252|      0|  default:
  ------------------
  |  Branch (252:3): [True: 0, False: 71.8k]
  ------------------
  253|      0|  case TIMER_NONE:
  ------------------
  |  Branch (253:3): [True: 0, False: 71.8k]
  ------------------
  254|       |    /* mistake filter */
  255|      0|    break;
  256|  7.82k|  case TIMER_STARTOP:
  ------------------
  |  Branch (256:3): [True: 7.82k, False: 64.0k]
  ------------------
  257|       |    /* This is set at the start of a transfer */
  258|  7.82k|    data->progress.t_startop = timestamp;
  259|  7.82k|    data->progress.t_startqueue = timestamp;
  260|  7.82k|    data->progress.t_postqueue = 0;
  261|  7.82k|    break;
  262|  11.1k|  case TIMER_STARTSINGLE:
  ------------------
  |  Branch (262:3): [True: 11.1k, False: 60.7k]
  ------------------
  263|       |    /* This is set at the start of each single transfer */
  264|  11.1k|    data->progress.t_startsingle = timestamp;
  265|  11.1k|    data->progress.is_t_startransfer_set = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  266|  11.1k|    break;
  267|  10.3k|  case TIMER_POSTQUEUE:
  ------------------
  |  Branch (267:3): [True: 10.3k, False: 61.5k]
  ------------------
  268|       |    /* Queue time is accumulative from all involved redirects */
  269|  10.3k|    data->progress.t_postqueue +=
  270|  10.3k|      curlx_ptimediff_us(&timestamp, &data->progress.t_startqueue);
  271|  10.3k|    break;
  272|      0|  case TIMER_STARTACCEPT:
  ------------------
  |  Branch (272:3): [True: 0, False: 71.8k]
  ------------------
  273|      0|    data->progress.t_acceptdata = timestamp;
  274|      0|    break;
  275|  7.53k|  case TIMER_NAMELOOKUP:
  ------------------
  |  Branch (275:3): [True: 7.53k, False: 64.3k]
  ------------------
  276|  7.53k|    delta = &data->progress.t_nslookup;
  277|  7.53k|    break;
  278|  6.80k|  case TIMER_CONNECT:
  ------------------
  |  Branch (278:3): [True: 6.80k, False: 65.0k]
  ------------------
  279|  6.80k|    delta = &data->progress.t_connect;
  280|  6.80k|    break;
  281|      0|  case TIMER_APPCONNECT:
  ------------------
  |  Branch (281:3): [True: 0, False: 71.8k]
  ------------------
  282|      0|    delta = &data->progress.t_appconnect;
  283|      0|    break;
  284|  9.56k|  case TIMER_PRETRANSFER:
  ------------------
  |  Branch (284:3): [True: 9.56k, False: 62.3k]
  ------------------
  285|  9.56k|    delta = &data->progress.t_pretransfer;
  286|  9.56k|    break;
  287|  6.18k|  case TIMER_STARTTRANSFER:
  ------------------
  |  Branch (287:3): [True: 6.18k, False: 65.7k]
  ------------------
  288|  6.18k|    delta = &data->progress.t_starttransfer;
  289|       |    /* prevent updating t_starttransfer unless:
  290|       |     *   1. this is the first time we are setting t_starttransfer
  291|       |     *   2. a redirect has occurred since the last time t_starttransfer was set
  292|       |     * This prevents repeated invocations of the function from incorrectly
  293|       |     * changing the t_starttransfer time.
  294|       |     */
  295|  6.18k|    if(data->progress.is_t_startransfer_set) {
  ------------------
  |  Branch (295:8): [True: 0, False: 6.18k]
  ------------------
  296|      0|      return;
  297|      0|    }
  298|  6.18k|    else {
  299|  6.18k|      data->progress.is_t_startransfer_set = TRUE;
  ------------------
  |  | 1055|  6.18k|#define TRUE true
  ------------------
  300|  6.18k|      break;
  301|  6.18k|    }
  302|  9.20k|  case TIMER_POSTRANSFER:
  ------------------
  |  Branch (302:3): [True: 9.20k, False: 62.6k]
  ------------------
  303|  9.20k|    delta = &data->progress.t_posttransfer;
  304|  9.20k|    break;
  305|  3.31k|  case TIMER_REDIRECT:
  ------------------
  |  Branch (305:3): [True: 3.31k, False: 68.5k]
  ------------------
  306|  3.31k|    data->progress.t_redirect = curlx_ptimediff_us(&timestamp,
  307|  3.31k|                                                   &data->progress.start);
  308|  3.31k|    data->progress.t_startqueue = timestamp;
  309|  3.31k|    break;
  310|  71.8k|  }
  311|  71.8k|  if(delta) {
  ------------------
  |  Branch (311:6): [True: 39.2k, False: 32.5k]
  ------------------
  312|  39.2k|    timediff_t us = curlx_ptimediff_us(&timestamp,
  313|  39.2k|                                       &data->progress.t_startsingle);
  314|  39.2k|    if(us < 1)
  ------------------
  |  Branch (314:8): [True: 0, False: 39.2k]
  ------------------
  315|      0|      us = 1; /* make sure at least one microsecond passed */
  316|  39.2k|    *delta += us;
  317|  39.2k|  }
  318|  71.8k|}
Curl_pgrsTime:
  327|  65.0k|{
  328|  65.0k|  Curl_pgrsTimeWas(data, timer, *Curl_pgrs_now(data));
  329|  65.0k|}
Curl_pgrsStartNow:
  332|  7.82k|{
  333|  7.82k|  struct Progress *p = &data->progress;
  334|       |
  335|  7.82k|  p->speeder_c = 0; /* reset the progress meter display */
  336|  7.82k|  p->start = *Curl_pgrs_now(data);
  337|  7.82k|  p->is_t_startransfer_set = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  338|  7.82k|  p->dl.cur_size = 0;
  339|  7.82k|  p->ul.cur_size = 0;
  340|       |  /* the sizes are unknown at start */
  341|  7.82k|  p->dl_size_known = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  342|       |  p->ul_size_known = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  343|  7.82k|}
Curl_pgrs_deliver_check:
  348|  2.62k|{
  349|  2.62k|  if(data->set.max_filesize &&
  ------------------
  |  Branch (349:6): [True: 0, False: 2.62k]
  ------------------
  350|      0|     ((curl_off_t)delta > data->set.max_filesize - data->progress.deliver)) {
  ------------------
  |  Branch (350:6): [True: 0, False: 0]
  ------------------
  351|      0|    failf(data, "Would have exceeded max file size");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  352|      0|    return CURLE_FILESIZE_EXCEEDED;
  353|      0|  }
  354|  2.62k|  return CURLE_OK;
  355|  2.62k|}
Curl_pgrs_deliver_inc:
  360|  2.62k|{
  361|  2.62k|  data->progress.deliver += delta;
  362|  2.62k|}
Curl_pgrs_download_inc:
  365|  2.56k|{
  366|  2.56k|  if(delta) {
  ------------------
  |  Branch (366:6): [True: 2.56k, False: 0]
  ------------------
  367|  2.56k|    data->progress.dl.cur_size += delta;
  368|  2.56k|    Curl_rlimit_drain(&data->progress.dl.rlimit, delta, Curl_pgrs_now(data));
  369|  2.56k|  }
  370|  2.56k|}
Curl_pgrs_upload_inc:
  373|  1.05k|{
  374|  1.05k|  if(delta) {
  ------------------
  |  Branch (374:6): [True: 1.05k, False: 0]
  ------------------
  375|  1.05k|    data->progress.ul.cur_size += delta;
  376|  1.05k|    Curl_rlimit_drain(&data->progress.ul.rlimit, delta, Curl_pgrs_now(data));
  377|  1.05k|  }
  378|  1.05k|}
Curl_pgrsSetUploadCounter:
  384|  10.3k|{
  385|  10.3k|  data->progress.ul.cur_size = size;
  386|  10.3k|}
Curl_pgrsSetDownloadSize:
  389|  24.6k|{
  390|  24.6k|  if(size >= 0) {
  ------------------
  |  Branch (390:6): [True: 3.18k, False: 21.4k]
  ------------------
  391|  3.18k|    data->progress.dl.total_size = size;
  392|  3.18k|    data->progress.dl_size_known = TRUE;
  ------------------
  |  | 1055|  3.18k|#define TRUE true
  ------------------
  393|  3.18k|  }
  394|  21.4k|  else {
  395|  21.4k|    data->progress.dl.total_size = 0;
  396|       |    data->progress.dl_size_known = FALSE;
  ------------------
  |  | 1058|  21.4k|#define FALSE false
  ------------------
  397|  21.4k|  }
  398|  24.6k|}
Curl_pgrsSetUploadSize:
  401|  31.0k|{
  402|  31.0k|  if(size >= 0) {
  ------------------
  |  Branch (402:6): [True: 8.99k, False: 22.0k]
  ------------------
  403|  8.99k|    data->progress.ul.total_size = size;
  404|  8.99k|    data->progress.ul_size_known = TRUE;
  ------------------
  |  | 1055|  8.99k|#define TRUE true
  ------------------
  405|  8.99k|  }
  406|  22.0k|  else {
  407|  22.0k|    data->progress.ul.total_size = 0;
  408|       |    data->progress.ul_size_known = FALSE;
  ------------------
  |  | 1058|  22.0k|#define FALSE false
  ------------------
  409|  22.0k|  }
  410|  31.0k|}
Curl_pgrsUpdate:
  685|   282k|{
  686|   282k|  return pgrs_update(data, Curl_pgrs_now(data));
  687|   282k|}
Curl_pgrsCheck:
  690|   117k|{
  691|   117k|  CURLcode result;
  692|       |
  693|   117k|  result = pgrs_update(data, Curl_pgrs_now(data));
  694|   117k|  if(!result && !data->req.done)
  ------------------
  |  Branch (694:6): [True: 117k, False: 0]
  |  Branch (694:17): [True: 117k, False: 0]
  ------------------
  695|   117k|    result = pgrs_speedcheck(data, Curl_pgrs_now(data));
  696|   117k|  return result;
  697|   117k|}
Curl_pgrsUpdate_nometer:
  703|    812|{
  704|    812|  (void)progress_calc(data, Curl_pgrs_now(data));
  705|    812|}
progress.c:pgrs_speedinit:
  125|  10.3k|{
  126|  10.3k|  memset(&data->state.keeps_speed, 0, sizeof(struct curltime));
  127|  10.3k|}
progress.c:pgrs_update:
  679|   400k|{
  680|       |  bool showprogress = progress_calc(data, pnow);
  681|   400k|  return pgrsupdate(data, showprogress);
  682|   400k|}
progress.c:pgrsupdate:
  632|   400k|{
  633|   400k|  if(!data->progress.hide) {
  ------------------
  |  Branch (633:6): [True: 0, False: 400k]
  ------------------
  634|      0|    int rc;
  635|      0|    if(data->set.fxferinfo) {
  ------------------
  |  Branch (635:8): [True: 0, False: 0]
  ------------------
  636|       |      /* There is a callback set, call that */
  637|      0|      Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  638|      0|      rc = data->set.fxferinfo(data->set.progress_client,
  639|      0|                               data->progress.dl.total_size,
  640|      0|                               data->progress.dl.cur_size,
  641|      0|                               data->progress.ul.total_size,
  642|      0|                               data->progress.ul.cur_size);
  643|      0|      Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  644|      0|      if(rc != CURL_PROGRESSFUNC_CONTINUE) {
  ------------------
  |  |  234|      0|#define CURL_PROGRESSFUNC_CONTINUE 0x10000001
  ------------------
  |  Branch (644:10): [True: 0, False: 0]
  ------------------
  645|      0|        if(rc) {
  ------------------
  |  Branch (645:12): [True: 0, False: 0]
  ------------------
  646|      0|          failf(data, "Callback aborted");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  647|      0|          return CURLE_ABORTED_BY_CALLBACK;
  648|      0|        }
  649|      0|        return CURLE_OK;
  650|      0|      }
  651|      0|    }
  652|      0|    else if(data->set.fprogress) {
  ------------------
  |  Branch (652:13): [True: 0, False: 0]
  ------------------
  653|       |      /* The older deprecated callback is set, call that */
  654|      0|      Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  655|      0|      rc = data->set.fprogress(data->set.progress_client,
  656|      0|                               (double)data->progress.dl.total_size,
  657|      0|                               (double)data->progress.dl.cur_size,
  658|      0|                               (double)data->progress.ul.total_size,
  659|      0|                               (double)data->progress.ul.cur_size);
  660|      0|      Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  661|      0|      if(rc != CURL_PROGRESSFUNC_CONTINUE) {
  ------------------
  |  |  234|      0|#define CURL_PROGRESSFUNC_CONTINUE 0x10000001
  ------------------
  |  Branch (661:10): [True: 0, False: 0]
  ------------------
  662|      0|        if(rc) {
  ------------------
  |  Branch (662:12): [True: 0, False: 0]
  ------------------
  663|      0|          failf(data, "Callback aborted");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  664|      0|          return CURLE_ABORTED_BY_CALLBACK;
  665|      0|        }
  666|      0|        return CURLE_OK;
  667|      0|      }
  668|      0|    }
  669|       |
  670|      0|    if(showprogress)
  ------------------
  |  Branch (670:8): [True: 0, False: 0]
  ------------------
  671|      0|      progress_meter(data);
  672|      0|  }
  673|       |
  674|   400k|  return CURLE_OK;
  675|   400k|}
progress.c:progress_calc:
  434|   400k|{
  435|   400k|  struct Progress * const p = &data->progress;
  436|   400k|  int i_next, i_oldest, i_latest;
  437|   400k|  timediff_t duration_us;
  438|   400k|  curl_off_t amount;
  439|       |
  440|       |  /* The time spent so far (from the start) in microseconds */
  441|   400k|  p->timespent = curlx_ptimediff_us(pnow, &p->start);
  442|   400k|  p->dl.speed = trspeed(p->dl.cur_size, p->timespent);
  443|   400k|  p->ul.speed = trspeed(p->ul.cur_size, p->timespent);
  444|       |
  445|   400k|  if(!p->speeder_c) { /* no previous record exists */
  ------------------
  |  Branch (445:6): [True: 10.3k, False: 390k]
  ------------------
  446|  10.3k|    p->speed_amount[0] = p->dl.cur_size + p->ul.cur_size;
  447|  10.3k|    p->speed_time[0] = *pnow;
  448|  10.3k|    p->speeder_c++;
  449|       |    /* use the overall average at the start */
  450|  10.3k|    p->current_speed = p->ul.speed + p->dl.speed;
  451|  10.3k|    p->lastshow = pnow->tv_sec;
  452|  10.3k|    return TRUE;
  ------------------
  |  | 1055|  10.3k|#define TRUE true
  ------------------
  453|  10.3k|  }
  454|       |  /* We have at least one record now. Where to put the next and
  455|       |   * where is the latest one? */
  456|   390k|  i_next = p->speeder_c % CURL_SPEED_RECORDS;
  ------------------
  |  |  542|   390k|#define CURL_SPEED_RECORDS (5 + 1) /* 6 entries for 5 seconds */
  ------------------
  457|   390k|  i_latest = (i_next > 0) ? (i_next - 1) : (CURL_SPEED_RECORDS - 1);
  ------------------
  |  |  542|      0|#define CURL_SPEED_RECORDS (5 + 1) /* 6 entries for 5 seconds */
  ------------------
  |  Branch (457:14): [True: 390k, False: 0]
  ------------------
  458|       |
  459|       |  /* Make a new record only when some time has passed.
  460|       |   * Too frequent calls otherwise ruin the history. */
  461|   390k|  if(curlx_ptimediff_ms(pnow, &p->speed_time[i_latest]) >= 1000) {
  ------------------
  |  Branch (461:6): [True: 659, False: 389k]
  ------------------
  462|    659|    p->speeder_c++;
  463|    659|    i_latest = i_next;
  464|    659|    p->speed_amount[i_latest] = p->dl.cur_size + p->ul.cur_size;
  465|    659|    p->speed_time[i_latest] = *pnow;
  466|    659|  }
  467|   389k|  else if(data->req.done) {
  ------------------
  |  Branch (467:11): [True: 12.0k, False: 377k]
  ------------------
  468|       |    /* When a transfer is done, and we did not have a current speed
  469|       |     * already, update the last record. Otherwise, stay at the speed
  470|       |     * we have. The last chunk of data, when rate limiting, would increase
  471|       |     * reported speed since it no longer measures a full second. */
  472|  12.0k|    if(!p->current_speed) {
  ------------------
  |  Branch (472:8): [True: 11.9k, False: 102]
  ------------------
  473|  11.9k|      p->speed_amount[i_latest] = p->dl.cur_size + p->ul.cur_size;
  474|  11.9k|      p->speed_time[i_latest] = *pnow;
  475|  11.9k|    }
  476|  12.0k|  }
  477|   377k|  else {
  478|       |    /* transfer ongoing, wait for more time to pass. */
  479|   377k|    return FALSE;
  ------------------
  |  | 1058|   377k|#define FALSE false
  ------------------
  480|   377k|  }
  481|       |
  482|  12.7k|  i_oldest = (p->speeder_c < CURL_SPEED_RECORDS) ? 0 :
  ------------------
  |  |  542|  12.7k|#define CURL_SPEED_RECORDS (5 + 1) /* 6 entries for 5 seconds */
  ------------------
  |  Branch (482:14): [True: 12.7k, False: 0]
  ------------------
  483|  12.7k|             ((i_latest + 1) % CURL_SPEED_RECORDS);
  ------------------
  |  |  542|      0|#define CURL_SPEED_RECORDS (5 + 1) /* 6 entries for 5 seconds */
  ------------------
  484|       |
  485|       |  /* How much we transferred between oldest and current records */
  486|  12.7k|  amount = p->speed_amount[i_latest] - p->speed_amount[i_oldest];
  487|       |  /* How long this took */
  488|  12.7k|  duration_us = curlx_ptimediff_us(&p->speed_time[i_latest],
  489|  12.7k|                                   &p->speed_time[i_oldest]);
  490|  12.7k|  if(duration_us <= 0)
  ------------------
  |  Branch (490:6): [True: 11.9k, False: 806]
  ------------------
  491|  11.9k|    duration_us = 1;
  492|       |
  493|  12.7k|  if(amount > (CURL_OFF_T_MAX / 1000000)) {
  ------------------
  |  |  594|  12.7k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (493:6): [True: 0, False: 12.7k]
  ------------------
  494|       |    /* the 'amount' value is bigger than would fit in 64 bits if
  495|       |       multiplied with 1000000, so we use the double math for this */
  496|      0|    p->current_speed =
  497|      0|      (curl_off_t)(((double)amount * 1000000.0) / (double)duration_us);
  498|      0|  }
  499|  12.7k|  else {
  500|  12.7k|    p->current_speed = amount * 1000000 / duration_us;
  501|  12.7k|  }
  502|       |
  503|  12.7k|  if((p->lastshow == pnow->tv_sec) && !data->req.done)
  ------------------
  |  Branch (503:6): [True: 6.82k, False: 5.92k]
  |  Branch (503:39): [True: 0, False: 6.82k]
  ------------------
  504|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  505|  12.7k|  p->lastshow = pnow->tv_sec;
  506|       |  return TRUE;
  ------------------
  |  | 1055|  12.7k|#define TRUE true
  ------------------
  507|  12.7k|}
progress.c:trspeed:
  420|   801k|{
  421|   801k|  if(us < 1)
  ------------------
  |  Branch (421:6): [True: 0, False: 801k]
  ------------------
  422|      0|    return size * 1000000;
  423|   801k|  else if(size < CURL_OFF_T_MAX / 1000000)
  ------------------
  |  |  594|   801k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (423:11): [True: 801k, False: 0]
  ------------------
  424|   801k|    return (size * 1000000) / us;
  425|      0|  else if(us >= 1000000)
  ------------------
  |  Branch (425:11): [True: 0, False: 0]
  ------------------
  426|      0|    return size / (us / 1000000);
  427|      0|  else
  428|      0|    return CURL_OFF_T_MAX;
  ------------------
  |  |  594|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  429|   801k|}

Curl_getn_scheme:
  469|   108k|{
  470|       |  /* table generated by schemetable.c:
  471|       |     1. gcc schemetable.c && ./a.out
  472|       |     2. check how small the table gets
  473|       |     3. tweak the hash algorithm, then rerun from 1
  474|       |     4. when the table is good enough
  475|       |     5. copy the table into this source code
  476|       |     6. make sure this function uses the same hash function that worked for
  477|       |     schemetable.c
  478|       |     */
  479|   108k|  static const struct Curl_scheme * const all_schemes[59] = { NULL,
  480|   108k|    &Curl_scheme_pop3, NULL,
  481|   108k|    &Curl_scheme_smtps,
  482|   108k|    &Curl_scheme_socks,
  483|   108k|    &Curl_scheme_socks4,
  484|   108k|    &Curl_scheme_socks5, NULL, NULL,
  485|   108k|    &Curl_scheme_gophers,
  486|   108k|    &Curl_scheme_ws,
  487|   108k|    &Curl_scheme_sftp,
  488|   108k|    &Curl_scheme_socks4a,
  489|   108k|    &Curl_scheme_scp,
  490|   108k|    &Curl_scheme_rtsp,
  491|   108k|    &Curl_scheme_dict, NULL, NULL,
  492|   108k|    &Curl_scheme_gopher, NULL, NULL, NULL,
  493|   108k|    &Curl_scheme_wss, NULL,
  494|   108k|    &Curl_scheme_smb, NULL,
  495|   108k|    &Curl_scheme_ldap,
  496|   108k|    &Curl_scheme_ldaps,
  497|   108k|    &Curl_scheme_imap, NULL, NULL, NULL,
  498|   108k|    &Curl_scheme_imaps,
  499|   108k|    &Curl_scheme_https,
  500|   108k|    &Curl_scheme_tftp,
  501|   108k|    &Curl_scheme_telnet, NULL, NULL, NULL,
  502|   108k|    &Curl_scheme_file,
  503|   108k|    &Curl_scheme_smtp, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  504|   108k|    &Curl_scheme_ftp,
  505|   108k|    &Curl_scheme_mqtt, NULL,
  506|   108k|    &Curl_scheme_socks5h,
  507|   108k|    &Curl_scheme_http,
  508|   108k|    &Curl_scheme_pop3s, NULL,
  509|   108k|    &Curl_scheme_mqtts, NULL,
  510|   108k|    &Curl_scheme_smbs,
  511|   108k|    &Curl_scheme_ftps,
  512|   108k|  };
  513|       |
  514|   108k|  if(len && (len <= 7)) {
  ------------------
  |  Branch (514:6): [True: 108k, False: 0]
  |  Branch (514:13): [True: 108k, False: 33]
  ------------------
  515|   108k|    const char *s = scheme;
  516|   108k|    size_t l = len;
  517|   108k|    const struct Curl_scheme *h;
  518|   108k|    unsigned int c = 443;
  519|   481k|    while(l) {
  ------------------
  |  Branch (519:11): [True: 373k, False: 108k]
  ------------------
  520|   373k|      c <<= 5;
  521|   373k|      c += (unsigned int)Curl_raw_tolower(*s);
  522|   373k|      s++;
  523|   373k|      l--;
  524|   373k|    }
  525|       |
  526|   108k|    h = all_schemes[c % 59];
  527|   108k|    if(h && curl_strnequal(scheme, h->name, len) && !h->name[len])
  ------------------
  |  Branch (527:8): [True: 108k, False: 11]
  |  Branch (527:13): [True: 108k, False: 17]
  |  Branch (527:53): [True: 108k, False: 1]
  ------------------
  528|   108k|      return h;
  529|   108k|  }
  530|     62|  return NULL;
  531|   108k|}
Curl_get_scheme:
  534|  61.3k|{
  535|  61.3k|  return Curl_getn_scheme(scheme, strlen(scheme));
  536|  61.3k|}

Curl_rand_bytes:
  160|  3.23k|{
  161|  3.23k|  CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
  162|       |#ifndef DEBUGBUILD
  163|       |  const bool env_override = FALSE;
  164|       |#endif
  165|       |
  166|  3.23k|  DEBUGASSERT(num);
  ------------------
  |  | 1081|  3.23k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 0, False: 3.23k]
  |  Branch (166:3): [True: 3.23k, False: 0]
  ------------------
  167|       |
  168|  10.5k|  while(num) {
  ------------------
  |  Branch (168:9): [True: 7.28k, False: 3.23k]
  ------------------
  169|  7.28k|    unsigned int r;
  170|  7.28k|    size_t left = num < sizeof(unsigned int) ? num : sizeof(unsigned int);
  ------------------
  |  Branch (170:19): [True: 0, False: 7.28k]
  ------------------
  171|       |
  172|  7.28k|    result = randit(data, &r, env_override);
  173|  7.28k|    if(result)
  ------------------
  |  Branch (173:8): [True: 0, False: 7.28k]
  ------------------
  174|      0|      return result;
  175|       |
  176|  36.4k|    while(left) {
  ------------------
  |  Branch (176:11): [True: 29.1k, False: 7.28k]
  ------------------
  177|  29.1k|      *rnd++ = (unsigned char)(r & 0xFF);
  178|  29.1k|      r >>= 8;
  179|  29.1k|      --num;
  180|  29.1k|      --left;
  181|  29.1k|    }
  182|  7.28k|  }
  183|       |
  184|  3.23k|  return result;
  185|  3.23k|}
rand.c:randit:
  105|  7.28k|{
  106|  7.28k|#ifdef DEBUGBUILD
  107|  7.28k|  if(env_override) {
  ------------------
  |  Branch (107:6): [True: 7.28k, False: 0]
  ------------------
  108|  7.28k|    char *force_entropy = getenv("CURL_ENTROPY");
  109|  7.28k|    if(force_entropy) {
  ------------------
  |  Branch (109:8): [True: 0, False: 7.28k]
  ------------------
  110|      0|      static unsigned int randseed;
  111|      0|      static bool seeded = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  112|       |
  113|      0|      if(!seeded) {
  ------------------
  |  Branch (113:10): [True: 0, False: 0]
  ------------------
  114|      0|        unsigned int seed = 0;
  115|      0|        size_t elen = strlen(force_entropy);
  116|      0|        size_t clen = sizeof(seed);
  117|      0|        size_t min = elen < clen ? elen : clen;
  ------------------
  |  Branch (117:22): [True: 0, False: 0]
  ------------------
  118|      0|        memcpy((char *)&seed, force_entropy, min);
  119|      0|        randseed = ntohl(seed);
  120|      0|        seeded = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  121|      0|      }
  122|      0|      else
  123|      0|        randseed++;
  124|      0|      *rnd = randseed;
  125|      0|      return CURLE_OK;
  126|      0|    }
  127|  7.28k|  }
  128|       |#else
  129|       |  (void)env_override;
  130|       |#endif
  131|       |
  132|       |  /* data may be NULL! */
  133|  7.28k|#ifdef USE_SSL
  134|  7.28k|  return Curl_ssl_random(data, (unsigned char *)rnd, sizeof(*rnd));
  135|       |#else
  136|       |  return weak_random(data, (unsigned char *)rnd, sizeof(*rnd));
  137|       |#endif
  138|  7.28k|}

Curl_rlimit_init:
  156|  7.82k|{
  157|  7.82k|  DEBUGASSERT(rate_per_sec >= 0);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (157:3): [True: 0, False: 7.82k]
  |  Branch (157:3): [True: 7.82k, False: 0]
  ------------------
  158|  7.82k|  DEBUGASSERT(burst_per_sec >= rate_per_sec || !burst_per_sec);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (158:3): [True: 7.82k, False: 0]
  |  Branch (158:3): [True: 0, False: 0]
  |  Branch (158:3): [True: 7.82k, False: 0]
  |  Branch (158:3): [True: 0, False: 0]
  ------------------
  159|  7.82k|  DEBUGASSERT(pts);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (159:3): [True: 0, False: 7.82k]
  |  Branch (159:3): [True: 7.82k, False: 0]
  ------------------
  160|  7.82k|  r->rate_per_step = r->rate_per_sec = rate_per_sec;
  161|  7.82k|  r->burst_per_step = r->burst_per_sec = burst_per_sec;
  162|  7.82k|  r->step_us = CURL_US_PER_SEC;
  ------------------
  |  |   29|  7.82k|#define CURL_US_PER_SEC         1000000
  ------------------
  163|  7.82k|  r->spare_us = 0;
  164|  7.82k|  r->tokens = r->rate_per_step;
  165|  7.82k|  r->ts = *pts;
  166|       |  r->blocked = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  167|  7.82k|}
Curl_rlimit_start:
  171|  2.59k|{
  172|       |  /* A start always resets the values to initial defaults, then
  173|       |   * fine tunes the intervals for the total_tokens expected. */
  174|  2.59k|  r->rate_per_step = r->rate_per_sec;
  175|  2.59k|  r->burst_per_step = r->burst_per_sec;
  176|  2.59k|  r->step_us = CURL_US_PER_SEC;
  ------------------
  |  |   29|  2.59k|#define CURL_US_PER_SEC         1000000
  ------------------
  177|  2.59k|  r->spare_us = 0;
  178|  2.59k|  r->tokens = r->rate_per_step;
  179|  2.59k|  r->ts = *pts;
  180|  2.59k|  rlimit_tune_steps(r, total_tokens);
  181|  2.59k|}
Curl_rlimit_per_step:
  184|  6.31k|{
  185|  6.31k|  return r->rate_per_step;
  186|  6.31k|}
Curl_rlimit_active:
  189|   354k|{
  190|   354k|  return (r->rate_per_step > 0) || r->blocked;
  ------------------
  |  Branch (190:10): [True: 347k, False: 6.46k]
  |  Branch (190:36): [True: 0, False: 6.46k]
  ------------------
  191|   354k|}
Curl_rlimit_is_blocked:
  194|   375k|{
  195|   375k|  return (bool)r->blocked;
  196|   375k|}
Curl_rlimit_avail:
  200|   362k|{
  201|   362k|  if(r->blocked)
  ------------------
  |  Branch (201:6): [True: 0, False: 362k]
  ------------------
  202|      0|    return 0;
  203|   362k|  else if(r->rate_per_step) {
  ------------------
  |  Branch (203:11): [True: 252k, False: 109k]
  ------------------
  204|   252k|    rlimit_update(r, pts);
  205|   252k|    return r->tokens;
  206|   252k|  }
  207|   109k|  else
  208|   109k|    return INT64_MAX;
  209|   362k|}
Curl_rlimit_drain:
  214|  3.62k|{
  215|  3.62k|  if(r->blocked || !r->rate_per_step)
  ------------------
  |  Branch (215:6): [True: 0, False: 3.62k]
  |  Branch (215:20): [True: 1.05k, False: 2.56k]
  ------------------
  216|  1.05k|    return;
  217|       |
  218|  2.56k|  rlimit_update(r, pts);
  219|  2.56k|#if 8 <= SIZEOF_SIZE_T
  220|  2.56k|  if(tokens > INT64_MAX) {
  ------------------
  |  Branch (220:6): [True: 0, False: 2.56k]
  ------------------
  221|      0|    r->tokens = INT64_MAX;
  222|      0|  }
  223|  2.56k|  else
  224|  2.56k|#endif
  225|  2.56k|  {
  226|  2.56k|    int64_t val = (int64_t)tokens;
  227|  2.56k|    if((INT64_MIN + val) < r->tokens)
  ------------------
  |  Branch (227:8): [True: 2.56k, False: 0]
  ------------------
  228|  2.56k|      r->tokens -= val;
  229|      0|    else
  230|      0|      r->tokens = INT64_MIN;
  231|  2.56k|  }
  232|  2.56k|}
Curl_rlimit_wait_ms:
  236|   467k|{
  237|   467k|  timediff_t wait_us, elapsed_us;
  238|       |
  239|   467k|  if(r->blocked || !r->rate_per_step)
  ------------------
  |  Branch (239:6): [True: 0, False: 467k]
  |  Branch (239:20): [True: 233k, False: 233k]
  ------------------
  240|   233k|    return 0;
  241|   233k|  rlimit_update(r, pts);
  242|   233k|  if(r->tokens > 0)
  ------------------
  |  Branch (242:6): [True: 233k, False: 306]
  ------------------
  243|   233k|    return 0;
  244|       |
  245|       |  /* How much time will it take tokens to become positive again?
  246|       |   * Deduct `spare_us` and check against already elapsed time */
  247|    306|  wait_us = r->step_us - r->spare_us;
  248|    306|  if(r->tokens < 0) {
  ------------------
  |  Branch (248:6): [True: 3, False: 303]
  ------------------
  249|      3|    curl_off_t debt_pct = ((-r->tokens) * 100 / r->rate_per_step);
  250|      3|    if(debt_pct)
  ------------------
  |  Branch (250:8): [True: 3, False: 0]
  ------------------
  251|      3|      wait_us += (r->step_us * debt_pct / 100);
  252|      3|  }
  253|       |
  254|    306|  elapsed_us = curlx_ptimediff_us(pts, &r->ts);
  255|    306|  if(elapsed_us >= wait_us)
  ------------------
  |  Branch (255:6): [True: 0, False: 306]
  ------------------
  256|      0|    return 0;
  257|    306|  wait_us -= elapsed_us;
  258|    306|  return (wait_us + 999) / 1000; /* in milliseconds */
  259|    306|}
Curl_rlimit_next_step_ms:
  263|   467k|{
  264|   467k|  if(!r->blocked && r->rate_per_step) {
  ------------------
  |  Branch (264:6): [True: 467k, False: 0]
  |  Branch (264:21): [True: 233k, False: 233k]
  ------------------
  265|   233k|    timediff_t elapsed_us, next_us;
  266|       |
  267|   233k|    elapsed_us = curlx_ptimediff_us(pts, &r->ts) + r->spare_us;
  268|   233k|    if(r->step_us > elapsed_us) {
  ------------------
  |  Branch (268:8): [True: 233k, False: 0]
  ------------------
  269|   233k|      next_us = r->step_us - elapsed_us;
  270|   233k|      return (next_us + 999) / 1000; /* in milliseconds */
  271|   233k|    }
  272|   233k|  }
  273|   233k|  return 0;
  274|   467k|}
Curl_rlimit_block:
  279|  22.2k|{
  280|  22.2k|  if(!activate == !r->blocked)
  ------------------
  |  Branch (280:6): [True: 22.2k, False: 0]
  ------------------
  281|  22.2k|    return;
  282|       |
  283|      0|  r->ts = *pts;
  284|      0|  r->blocked = activate;
  285|      0|  if(!r->blocked) {
  ------------------
  |  Branch (285:6): [True: 0, False: 0]
  ------------------
  286|       |    /* Start rate limiting fresh. The amount of time this was blocked
  287|       |     * does not generate extra tokens. */
  288|      0|    Curl_rlimit_start(r, pts, -1);
  289|      0|  }
  290|      0|  else {
  291|      0|    r->tokens = 0;
  292|      0|  }
  293|      0|}
ratelimit.c:rlimit_tune_steps:
   79|  2.59k|{
   80|  2.59k|  int64_t tokens_last, tokens_main, msteps;
   81|       |
   82|       |  /* Tune the ratelimit at the start *if* we know how many tokens
   83|       |   * are expected to be consumed in total.
   84|       |   * The reason for tuning is that rlimit provides tokens to be consumed
   85|       |   * per "step" which starts out to be a second. The tokens may be consumed
   86|       |   * in full at the beginning of a step. The remainder of the second will
   87|       |   * have no tokens available, effectively blocking the consumption and
   88|       |   * so keeping the "step average" in line.
   89|       |   * This works will up to the last step. When no more tokens are needed,
   90|       |   * no wait will happen and the last step would be too fast. This is
   91|       |   * especially noticeable when only a few steps are needed.
   92|       |   *
   93|       |   * Example: downloading 1.5kb with a ratelimit of 1k could be done in
   94|       |   * roughly 1 second (1k in the first second and the 0.5 at the start of
   95|       |   * the second one).
   96|       |   *
   97|       |   * The tuning tries to make the last step small, using only
   98|       |   * 1 percent of the total tokens (at least 1). The rest of the tokens
   99|       |   * are to be consumed in the steps before by adjusting the duration of
  100|       |   * the step and the amount of tokens it provides. */
  101|  2.59k|  if(!r->rate_per_step ||
  ------------------
  |  Branch (101:6): [True: 1.12k, False: 1.47k]
  ------------------
  102|  1.47k|     (tokens_total <= 1) ||
  ------------------
  |  Branch (102:6): [True: 1.34k, False: 135]
  ------------------
  103|    135|     (tokens_total > (INT64_MAX / 1000)))
  ------------------
  |  Branch (103:6): [True: 13, False: 122]
  ------------------
  104|  2.47k|    return;
  105|       |
  106|       |  /* Calculate tokens for the last step and the ones before. */
  107|    122|  tokens_last = tokens_total / 100;
  108|    122|  if(!tokens_last) /* less than 100 total, use 1 */
  ------------------
  |  Branch (108:6): [True: 89, False: 33]
  ------------------
  109|     89|    tokens_last = 1;
  110|     33|  else if(tokens_last > CURL_RLIMIT_MIN_RATE)
  ------------------
  |  |   30|     33|#define CURL_RLIMIT_MIN_RATE    (4 * 1024)  /* minimum step rate */
  ------------------
  |  Branch (110:11): [True: 23, False: 10]
  ------------------
  111|     23|    tokens_last = CURL_RLIMIT_MIN_RATE;
  ------------------
  |  |   30|     23|#define CURL_RLIMIT_MIN_RATE    (4 * 1024)  /* minimum step rate */
  ------------------
  112|    122|  DEBUGASSERT(tokens_last);
  ------------------
  |  | 1081|    122|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (112:3): [True: 0, False: 122]
  |  Branch (112:3): [True: 122, False: 0]
  ------------------
  113|    122|  tokens_main = tokens_total - tokens_last;
  114|    122|  DEBUGASSERT(tokens_main);
  ------------------
  |  | 1081|    122|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (114:3): [True: 0, False: 122]
  |  Branch (114:3): [True: 122, False: 0]
  ------------------
  115|       |
  116|       |  /* how many milli-steps will it take to consume those, give the
  117|       |  * original rate limit per second? */
  118|    122|  DEBUGASSERT(r->step_us == CURL_US_PER_SEC);
  ------------------
  |  | 1081|    122|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (118:3): [True: 0, False: 122]
  |  Branch (118:3): [True: 122, False: 0]
  ------------------
  119|       |
  120|    122|  msteps = (tokens_main * 1000 / r->rate_per_step);
  121|    122|  if(msteps < CURL_RLIMIT_STEP_MIN_MS) {
  ------------------
  |  |   31|    122|#define CURL_RLIMIT_STEP_MIN_MS 2  /* minimum step duration */
  ------------------
  |  Branch (121:6): [True: 54, False: 68]
  ------------------
  122|       |    /* Steps this small will not work. Do not tune. */
  123|     54|    return;
  124|     54|  }
  125|     68|  else if(msteps < 1000) {
  ------------------
  |  Branch (125:11): [True: 42, False: 26]
  ------------------
  126|       |    /* It needs less than one step to provide the needed tokens.
  127|       |     * Make it exactly that long and with exactly those tokens. */
  128|     42|    r->step_us = (timediff_t)msteps * 1000;
  129|     42|    r->rate_per_step = tokens_main;
  130|     42|    r->tokens = r->rate_per_step;
  131|     42|  }
  132|     26|  else {
  133|       |    /* More than 1 step. Spread the remainder milli steps and
  134|       |     * the tokens they need to provide across all steps. If integer
  135|       |     * arithmetic can do it. */
  136|     26|    curl_off_t ms_unaccounted = (msteps % 1000);
  137|     26|    curl_off_t mstep_inc = (ms_unaccounted / (msteps / 1000));
  138|     26|    if(mstep_inc) {
  ------------------
  |  Branch (138:8): [True: 3, False: 23]
  ------------------
  139|      3|      curl_off_t rate_inc = ((r->rate_per_step * mstep_inc) / 1000);
  140|      3|      if(rate_inc) {
  ------------------
  |  Branch (140:10): [True: 3, False: 0]
  ------------------
  141|      3|        r->step_us = CURL_US_PER_SEC + ((timediff_t)mstep_inc * 1000);
  ------------------
  |  |   29|      3|#define CURL_US_PER_SEC         1000000
  ------------------
  142|      3|        r->rate_per_step += rate_inc;
  143|      3|        r->tokens = r->rate_per_step;
  144|      3|      }
  145|      3|    }
  146|     26|  }
  147|       |
  148|     68|  if(r->burst_per_step)
  ------------------
  |  Branch (148:6): [True: 68, False: 0]
  ------------------
  149|     68|    r->burst_per_step = r->rate_per_step;
  150|     68|}
ratelimit.c:rlimit_update:
   35|   488k|{
   36|   488k|  timediff_t elapsed_us, elapsed_steps;
   37|   488k|  int64_t token_gain;
   38|       |
   39|   488k|  DEBUGASSERT(r->rate_per_step);
  ------------------
  |  | 1081|   488k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (39:3): [True: 0, False: 488k]
  |  Branch (39:3): [True: 488k, False: 0]
  ------------------
   40|   488k|  if((r->ts.tv_sec == pts->tv_sec) && (r->ts.tv_usec == pts->tv_usec))
  ------------------
  |  Branch (40:6): [True: 311k, False: 177k]
  |  Branch (40:39): [True: 134, False: 311k]
  ------------------
   41|    134|    return;
   42|       |
   43|   488k|  elapsed_us = curlx_ptimediff_us(pts, &r->ts);
   44|   488k|  if(elapsed_us < 0) { /* not going back in time */
  ------------------
  |  Branch (44:6): [True: 0, False: 488k]
  ------------------
   45|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (45:5): [Folded, False: 0]
  |  Branch (45:5): [Folded, False: 0]
  ------------------
   46|      0|    return;
   47|      0|  }
   48|       |
   49|   488k|  elapsed_us += r->spare_us;
   50|   488k|  if(elapsed_us < r->step_us)
  ------------------
  |  Branch (50:6): [True: 487k, False: 893]
  ------------------
   51|   487k|    return;
   52|       |
   53|       |  /* we do the update */
   54|    893|  r->ts = *pts;
   55|    893|  elapsed_steps = elapsed_us / r->step_us;
   56|    893|  r->spare_us = elapsed_us % r->step_us;
   57|       |
   58|       |  /* How many tokens did we gain since the last update? */
   59|    893|  if(r->rate_per_step > (INT64_MAX / elapsed_steps))
  ------------------
  |  Branch (59:6): [True: 0, False: 893]
  ------------------
   60|      0|    token_gain = INT64_MAX;
   61|    893|  else {
   62|    893|    token_gain = r->rate_per_step * elapsed_steps;
   63|    893|  }
   64|       |
   65|    893|  if((INT64_MAX - token_gain) > r->tokens)
  ------------------
  |  Branch (65:6): [True: 893, False: 0]
  ------------------
   66|    893|    r->tokens += token_gain;
   67|      0|  else
   68|      0|    r->tokens = INT64_MAX;
   69|       |
   70|       |  /* Limit the token again by the burst rate (if set), so we
   71|       |   * do not suddenly have a huge number of tokens after inactivity. */
   72|    893|  if(r->burst_per_step && (r->tokens > r->burst_per_step)) {
  ------------------
  |  Branch (72:6): [True: 893, False: 0]
  |  Branch (72:27): [True: 888, False: 5]
  ------------------
   73|    888|    r->tokens = r->burst_per_step;
   74|    888|  }
   75|    893|}

Curl_req_init:
   39|  15.6k|{
   40|  15.6k|  memset(req, 0, sizeof(*req));
   41|  15.6k|}
Curl_req_soft_reset:
   45|  13.6k|{
   46|  13.6k|  CURLcode result;
   47|       |
   48|  13.6k|  req->done = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   49|  13.6k|  req->upload_done = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   50|  13.6k|  req->upload_aborted = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   51|  13.6k|  req->download_done = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   52|  13.6k|  req->eos_written = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   53|  13.6k|  req->eos_read = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   54|  13.6k|  req->eos_sent = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   55|  13.6k|  req->ignorebody = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   56|  13.6k|  req->shutdown = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   57|  13.6k|  req->bytecount = 0;
   58|  13.6k|  req->writebytecount = 0;
   59|  13.6k|  req->header = FALSE;
  ------------------
  |  | 1058|  13.6k|#define FALSE false
  ------------------
   60|  13.6k|  req->headerline = 0;
   61|  13.6k|  req->headerbytecount = 0;
   62|  13.6k|  req->allheadercount = 0;
   63|  13.6k|  req->deductheadercount = 0;
   64|  13.6k|  req->httpversion_sent = 0;
   65|  13.6k|  req->httpversion = 0;
   66|  13.6k|  req->sendbuf_hds_len = 0;
   67|       |
   68|  13.6k|  curlx_safefree(req->hd_auth);
  ------------------
  |  | 1327|  13.6k|  do {                      \
  |  | 1328|  13.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  13.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  13.6k|    (ptr) = NULL;           \
  |  | 1330|  13.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 13.6k]
  |  |  ------------------
  ------------------
   69|  13.6k|#ifndef CURL_DISABLE_PROXY
   70|  13.6k|  curlx_safefree(req->hd_proxy_auth);
  ------------------
  |  | 1327|  13.6k|  do {                      \
  |  | 1328|  13.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  13.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  13.6k|    (ptr) = NULL;           \
  |  | 1330|  13.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 13.6k]
  |  |  ------------------
  ------------------
   71|  13.6k|#endif
   72|       |
   73|  13.6k|  result = Curl_client_start(data);
   74|  13.6k|  if(result)
  ------------------
  |  Branch (74:6): [True: 14, False: 13.6k]
  ------------------
   75|     14|    return result;
   76|       |
   77|  13.6k|  if(!req->sendbuf_init) {
  ------------------
  |  Branch (77:6): [True: 7.02k, False: 6.61k]
  ------------------
   78|  7.02k|    Curl_bufq_init2(&req->sendbuf, data->set.upload_buffer_size, 1,
   79|  7.02k|                    BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|  7.02k|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
   80|  7.02k|    req->sendbuf_init = TRUE;
  ------------------
  |  | 1055|  7.02k|#define TRUE true
  ------------------
   81|  7.02k|  }
   82|  6.61k|  else {
   83|  6.61k|    Curl_bufq_reset(&req->sendbuf);
   84|  6.61k|    if(data->set.upload_buffer_size != req->sendbuf.chunk_size) {
  ------------------
  |  Branch (84:8): [True: 0, False: 6.61k]
  ------------------
   85|      0|      Curl_bufq_free(&req->sendbuf);
   86|      0|      Curl_bufq_init2(&req->sendbuf, data->set.upload_buffer_size, 1,
   87|      0|                      BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|      0|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
   88|      0|    }
   89|  6.61k|  }
   90|       |
   91|  13.6k|  return CURLE_OK;
   92|  13.6k|}
Curl_req_start:
   96|  10.3k|{
   97|  10.3k|  req->start = *Curl_pgrs_now(data);
   98|  10.3k|  return Curl_req_soft_reset(req, data);
   99|  10.3k|}
Curl_req_done:
  105|  4.72k|{
  106|  4.72k|  (void)req;
  107|  4.72k|  if(!aborted)
  ------------------
  |  Branch (107:6): [True: 4.70k, False: 18]
  ------------------
  108|  4.70k|    (void)req_flush(data);
  109|  4.72k|  Curl_client_reset(data);
  110|  4.72k|  return CURLE_OK;
  111|  4.72k|}
Curl_req_hard_reset:
  114|  11.1k|{
  115|  11.1k|  struct curltime t0 = { 0, 0 };
  116|       |
  117|  11.1k|  curlx_safefree(req->newurl);
  ------------------
  |  | 1327|  11.1k|  do {                      \
  |  | 1328|  11.1k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  11.1k|    (ptr) = NULL;           \
  |  | 1330|  11.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  118|  11.1k|  curlx_safefree(req->hd_auth);
  ------------------
  |  | 1327|  11.1k|  do {                      \
  |  | 1328|  11.1k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  11.1k|    (ptr) = NULL;           \
  |  | 1330|  11.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  119|  11.1k|#ifndef CURL_DISABLE_PROXY
  120|  11.1k|  curlx_safefree(req->hd_proxy_auth);
  ------------------
  |  | 1327|  11.1k|  do {                      \
  |  | 1328|  11.1k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  11.1k|    (ptr) = NULL;           \
  |  | 1330|  11.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  121|  11.1k|#endif
  122|  11.1k|#ifndef CURL_DISABLE_COOKIES
  123|  11.1k|  curlx_safefree(req->cookiehost);
  ------------------
  |  | 1327|  11.1k|  do {                      \
  |  | 1328|  11.1k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  11.1k|    (ptr) = NULL;           \
  |  | 1330|  11.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  124|  11.1k|#endif
  125|  11.1k|  Curl_client_reset(data);
  126|  11.1k|  if(req->sendbuf_init)
  ------------------
  |  Branch (126:6): [True: 3.31k, False: 7.82k]
  ------------------
  127|  3.31k|    Curl_bufq_reset(&req->sendbuf);
  128|       |
  129|       |  /* clear any resolve data */
  130|  11.1k|  Curl_resolv_destroy_all(data);
  131|       |  /* Can no longer memset() this struct as we need to keep some state */
  132|  11.1k|  req->size = -1;
  133|  11.1k|  req->maxdownload = -1;
  134|  11.1k|  req->bytecount = 0;
  135|  11.1k|  req->writebytecount = 0;
  136|  11.1k|  req->start = t0;
  137|  11.1k|  req->headerbytecount = 0;
  138|  11.1k|  req->allheadercount = 0;
  139|  11.1k|  req->deductheadercount = 0;
  140|  11.1k|  req->headerline = 0;
  141|  11.1k|  req->offset = 0;
  142|  11.1k|  req->httpcode = 0;
  143|  11.1k|  req->io_flags = 0;
  144|  11.1k|  req->upgr101 = UPGR101_NONE;
  145|  11.1k|  req->sendbuf_hds_len = 0;
  146|  11.1k|  req->timeofdoc = 0;
  147|  11.1k|  req->location = NULL;
  148|  11.1k|  req->newurl = NULL;
  149|  11.1k|#ifndef CURL_DISABLE_COOKIES
  150|  11.1k|  req->setcookies = 0;
  151|  11.1k|#endif
  152|  11.1k|  req->header = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  153|  11.1k|  req->content_range = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  154|  11.1k|  req->download_done = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  155|  11.1k|  req->eos_written = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  156|  11.1k|  req->eos_read = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  157|  11.1k|  req->eos_sent = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  158|  11.1k|  req->rewind_read = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  159|  11.1k|  req->upload_done = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  160|  11.1k|  req->upload_aborted = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  161|  11.1k|  req->ignorebody = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  162|  11.1k|  req->http_bodyless = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  163|  11.1k|  req->chunk = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  164|  11.1k|  req->resp_trailer = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  165|  11.1k|  req->ignore_cl = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  166|  11.1k|  req->upload_chunky = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  167|  11.1k|  req->no_body = data->set.opt_no_body;
  168|  11.1k|  req->authneg = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  169|  11.1k|  req->shutdown = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  170|       |  /* Unpause all directions */
  171|  11.1k|  Curl_rlimit_block(&data->progress.dl.rlimit, FALSE, &t0);
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  172|       |  Curl_rlimit_block(&data->progress.ul.rlimit, FALSE, &t0);
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
  173|  11.1k|}
Curl_req_free:
  176|  15.6k|{
  177|  15.6k|  curlx_safefree(req->newurl);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  178|  15.6k|  curlx_safefree(req->hd_auth);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  179|  15.6k|#ifndef CURL_DISABLE_PROXY
  180|  15.6k|  curlx_safefree(req->hd_proxy_auth);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  181|  15.6k|#endif
  182|  15.6k|  if(req->sendbuf_init)
  ------------------
  |  Branch (182:6): [True: 7.02k, False: 8.61k]
  ------------------
  183|  7.02k|    Curl_bufq_free(&req->sendbuf);
  184|  15.6k|  Curl_client_cleanup(data);
  185|  15.6k|}
Curl_req_send:
  382|  9.58k|{
  383|  9.58k|  CURLcode result;
  384|  9.58k|  const char *buf;
  385|  9.58k|  size_t blen, nwritten;
  386|       |
  387|  9.58k|  if(!data || !data->conn)
  ------------------
  |  Branch (387:6): [True: 0, False: 9.58k]
  |  Branch (387:15): [True: 0, False: 9.58k]
  ------------------
  388|      0|    return CURLE_FAILED_INIT;
  389|       |
  390|  9.58k|  data->req.httpversion_sent = httpversion;
  391|  9.58k|  buf = curlx_dyn_ptr(req);
  392|  9.58k|  blen = curlx_dyn_len(req);
  393|       |  /* if the sendbuf is empty and the request without body and
  394|       |   * the length to send fits info a sendbuf chunk, we send it directly.
  395|       |   * If `blen` is larger then `chunk_size`, we can not. Because we
  396|       |   * might have to retry a blocked send later from sendbuf and that
  397|       |   * would result in retry sends with a shrunken length. That is trouble. */
  398|  9.58k|  if(Curl_bufq_is_empty(&data->req.sendbuf) &&
  ------------------
  |  Branch (398:6): [True: 9.58k, False: 0]
  ------------------
  399|  9.58k|     !Curl_creader_total_length(data) &&
  ------------------
  |  Branch (399:6): [True: 8.54k, False: 1.03k]
  ------------------
  400|  8.54k|     (blen <= data->req.sendbuf.chunk_size)) {
  ------------------
  |  Branch (400:6): [True: 8.54k, False: 0]
  ------------------
  401|  8.54k|    data->req.eos_read = TRUE;
  ------------------
  |  | 1055|  8.54k|#define TRUE true
  ------------------
  402|  8.54k|    result = xfer_send(data, buf, blen, blen, &nwritten);
  403|  8.54k|    if(result)
  ------------------
  |  Branch (403:8): [True: 11, False: 8.53k]
  ------------------
  404|     11|      return result;
  405|  8.53k|    buf += nwritten;
  406|  8.53k|    blen -= nwritten;
  407|  8.53k|    if(!blen) {
  ------------------
  |  Branch (407:8): [True: 8.44k, False: 86]
  ------------------
  408|  8.44k|      result = req_set_upload_done(data);
  409|  8.44k|      if(result)
  ------------------
  |  Branch (409:10): [True: 0, False: 8.44k]
  ------------------
  410|      0|        return result;
  411|  8.44k|    }
  412|  8.53k|  }
  413|       |
  414|  9.57k|  if(blen) {
  ------------------
  |  Branch (414:6): [True: 1.12k, False: 8.44k]
  ------------------
  415|       |    /* Either we have a request body, or we could not send the complete
  416|       |     * request in one go. Buffer the remainder and try to add as much
  417|       |     * body bytes as room is left in the buffer. Then flush. */
  418|  1.12k|    result = req_send_buffer_add(data, buf, blen, blen);
  419|  1.12k|    if(result)
  ------------------
  |  Branch (419:8): [True: 0, False: 1.12k]
  ------------------
  420|      0|      return result;
  421|       |
  422|  1.12k|    return Curl_req_send_more(data);
  423|  1.12k|  }
  424|  8.44k|  return CURLE_OK;
  425|  9.57k|}
Curl_req_sendbuf_empty:
  428|   200k|{
  429|   200k|  return !data->req.sendbuf_init || Curl_bufq_is_empty(&data->req.sendbuf);
  ------------------
  |  Branch (429:10): [True: 0, False: 200k]
  |  Branch (429:37): [True: 200k, False: 247]
  ------------------
  430|   200k|}
Curl_req_want_send:
  433|   228k|{
  434|       |  /* Not done and upload not blocked and either one of
  435|       |   * - REQ_IO_SEND
  436|       |   * - request has buffered data to send
  437|       |   * - connection has pending data to send */
  438|   228k|  return !data->req.done &&
  ------------------
  |  Branch (438:10): [True: 228k, False: 0]
  ------------------
  439|   228k|         !Curl_rlimit_is_blocked(&data->progress.ul.rlimit) &&
  ------------------
  |  Branch (439:10): [True: 228k, False: 0]
  ------------------
  440|   228k|         (CURL_REQ_WANT_SEND(data) ||
  ------------------
  |  |   39|   457k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|   228k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 28.3k, False: 200k]
  |  |  ------------------
  ------------------
  441|   200k|          !Curl_req_sendbuf_empty(data) ||
  ------------------
  |  Branch (441:11): [True: 0, False: 200k]
  ------------------
  442|   200k|          Curl_xfer_needs_flush(data));
  ------------------
  |  Branch (442:11): [True: 1.56k, False: 198k]
  ------------------
  443|   228k|}
Curl_req_done_sending:
  454|  30.3k|{
  455|  30.3k|  return data->req.upload_done && !Curl_req_want_send(data);
  ------------------
  |  Branch (455:10): [True: 1.31k, False: 28.9k]
  |  Branch (455:35): [True: 515, False: 803]
  ------------------
  456|  30.3k|}
Curl_req_send_more:
  459|  16.0k|{
  460|  16.0k|  CURLcode result;
  461|       |
  462|       |  /* Fill our send buffer if more from client can be read. */
  463|  16.0k|  if(!data->req.upload_aborted &&
  ------------------
  |  Branch (463:6): [True: 15.9k, False: 25]
  ------------------
  464|  15.9k|     !data->req.eos_read &&
  ------------------
  |  Branch (464:6): [True: 6.46k, False: 9.51k]
  ------------------
  465|  6.46k|     !Curl_xfer_send_is_paused(data) &&
  ------------------
  |  Branch (465:6): [True: 6.46k, False: 0]
  ------------------
  466|  6.46k|     !Curl_bufq_is_full(&data->req.sendbuf)) {
  ------------------
  |  Branch (466:6): [True: 6.46k, False: 0]
  ------------------
  467|  6.46k|    size_t nread;
  468|  6.46k|    result = Curl_bufq_sipn(&data->req.sendbuf, 0,
  469|  6.46k|                            add_from_client, data, &nread);
  470|  6.46k|    if(result && result != CURLE_AGAIN)
  ------------------
  |  Branch (470:8): [True: 58, False: 6.40k]
  |  Branch (470:18): [True: 58, False: 0]
  ------------------
  471|     58|      return result;
  472|  6.46k|  }
  473|       |
  474|  15.9k|  result = req_flush(data);
  475|  15.9k|  if(result == CURLE_AGAIN)
  ------------------
  |  Branch (475:6): [True: 9.36k, False: 6.58k]
  ------------------
  476|  9.36k|    result = CURLE_OK;
  477|       |
  478|  15.9k|  return result;
  479|  16.0k|}
Curl_req_abort_sending:
  482|    173|{
  483|    173|  if(!data->req.upload_done) {
  ------------------
  |  Branch (483:6): [True: 172, False: 1]
  ------------------
  484|    172|    Curl_bufq_reset(&data->req.sendbuf);
  485|    172|    data->req.upload_aborted = TRUE;
  ------------------
  |  | 1055|    172|#define TRUE true
  ------------------
  486|    172|    CURL_REQ_CLEAR_SEND(data);
  ------------------
  |  |   47|    172|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|    172|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  487|    172|    return req_set_upload_done(data);
  488|    172|  }
  489|      1|  return CURLE_OK;
  490|    173|}
Curl_req_stop_send_recv:
  493|  1.73k|{
  494|       |  /* stop receiving and ALL sending as well, including PAUSE and HOLD.
  495|       |   * We might still be paused on receive client writes though, so
  496|       |   * keep those bits around. */
  497|  1.73k|  CURLcode result = CURLE_OK;
  498|  1.73k|  if(CURL_REQ_WANT_SEND(data))
  ------------------
  |  |   39|  1.73k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  1.73k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 155, False: 1.57k]
  |  |  ------------------
  ------------------
  499|    155|    result = Curl_req_abort_sending(data);
  500|  1.73k|  CURL_REQ_CLEAR_IO(data);
  ------------------
  |  |   51|  1.73k|  ((d)->req.io_flags &= (uint8_t)~(REQ_IO_RECV | REQ_IO_SEND))
  |  |  ------------------
  |  |  |  |   35|  1.73k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  |  |                 ((d)->req.io_flags &= (uint8_t)~(REQ_IO_RECV | REQ_IO_SEND))
  |  |  ------------------
  |  |  |  |   36|  1.73k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  501|  1.73k|  return result;
  502|  1.73k|}
request.c:req_flush:
  299|  20.6k|{
  300|  20.6k|  CURLcode result;
  301|       |
  302|  20.6k|  if(!data || !data->conn)
  ------------------
  |  Branch (302:6): [True: 0, False: 20.6k]
  |  Branch (302:15): [True: 0, False: 20.6k]
  ------------------
  303|      0|    return CURLE_FAILED_INIT;
  304|       |
  305|  20.6k|  if(!Curl_bufq_is_empty(&data->req.sendbuf)) {
  ------------------
  |  Branch (305:6): [True: 9.87k, False: 10.7k]
  ------------------
  306|  9.87k|    result = req_send_buffer_flush(data);
  307|  9.87k|    if(result)
  ------------------
  |  Branch (307:8): [True: 4, False: 9.87k]
  ------------------
  308|      4|      return result;
  309|  9.87k|    if(!Curl_bufq_is_empty(&data->req.sendbuf)) {
  ------------------
  |  Branch (309:8): [True: 8.66k, False: 1.20k]
  ------------------
  310|  8.66k|      DEBUGF(infof(data, "Curl_req_flush(len=%zu) -> EAGAIN",
  ------------------
  |  | 1067|  60.6k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 8.66k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 8.66k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 8.66k]
  |  |  ------------------
  ------------------
  311|  8.66k|                   Curl_bufq_len(&data->req.sendbuf)));
  312|  8.66k|      return CURLE_AGAIN;
  313|  8.66k|    }
  314|  9.87k|  }
  315|  10.7k|  else if(Curl_xfer_needs_flush(data)) {
  ------------------
  |  Branch (315:11): [True: 1.05k, False: 9.72k]
  ------------------
  316|  1.05k|    DEBUGF(infof(data, "Curl_req_flush(), xfer send_pending"));
  ------------------
  |  | 1067|  7.41k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 1.05k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 1.05k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 1.05k]
  |  |  ------------------
  ------------------
  317|  1.05k|    return Curl_xfer_flush(data);
  318|  1.05k|  }
  319|       |
  320|  10.9k|  if(data->req.eos_read && !data->req.eos_sent) {
  ------------------
  |  Branch (320:6): [True: 5.21k, False: 5.71k]
  |  Branch (320:28): [True: 182, False: 5.03k]
  ------------------
  321|    182|    char tmp = 0;
  322|    182|    size_t nwritten;
  323|    182|    result = xfer_send(data, &tmp, 0, 0, &nwritten);
  324|    182|    if(result)
  ------------------
  |  Branch (324:8): [True: 15, False: 167]
  ------------------
  325|     15|      return result;
  326|    167|    DEBUGASSERT(data->req.eos_sent);
  ------------------
  |  | 1081|    167|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (326:5): [True: 0, False: 167]
  |  Branch (326:5): [True: 167, False: 0]
  ------------------
  327|    167|  }
  328|       |
  329|  10.9k|  if(!data->req.upload_done && data->req.eos_read && data->req.eos_sent) {
  ------------------
  |  Branch (329:6): [True: 6.26k, False: 4.64k]
  |  Branch (329:32): [True: 587, False: 5.68k]
  |  Branch (329:54): [True: 587, False: 0]
  ------------------
  330|    587|    DEBUGASSERT(Curl_bufq_is_empty(&data->req.sendbuf));
  ------------------
  |  | 1081|    587|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (330:5): [True: 0, False: 587]
  |  Branch (330:5): [True: 587, False: 0]
  ------------------
  331|    587|    if(data->req.shutdown) {
  ------------------
  |  Branch (331:8): [True: 0, False: 587]
  ------------------
  332|      0|      bool done;
  333|      0|      result = Curl_xfer_send_shutdown(data, &done);
  334|      0|      if(result && data->req.shutdown_err_ignore) {
  ------------------
  |  Branch (334:10): [True: 0, False: 0]
  |  Branch (334:20): [True: 0, False: 0]
  ------------------
  335|      0|        infof(data, "Shutdown send direction error: %d. Broken server? "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  336|      0|              "Proceeding as if everything is ok.", result);
  337|      0|        result = CURLE_OK;
  338|      0|        done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  339|      0|      }
  340|       |
  341|      0|      if(result)
  ------------------
  |  Branch (341:10): [True: 0, False: 0]
  ------------------
  342|      0|        return result;
  343|      0|      if(!done)
  ------------------
  |  Branch (343:10): [True: 0, False: 0]
  ------------------
  344|      0|        return CURLE_AGAIN;
  345|      0|    }
  346|    587|    return req_set_upload_done(data);
  347|    587|  }
  348|  10.3k|  return CURLE_OK;
  349|  10.9k|}
request.c:req_send_buffer_flush:
  245|  9.87k|{
  246|  9.87k|  CURLcode result = CURLE_OK;
  247|  9.87k|  const unsigned char *buf;
  248|  9.87k|  size_t blen;
  249|       |
  250|  11.0k|  while(Curl_bufq_peek(&data->req.sendbuf, &buf, &blen)) {
  ------------------
  |  Branch (250:9): [True: 9.87k, False: 1.20k]
  ------------------
  251|  9.87k|    size_t nwritten, hds_len = CURLMIN(data->req.sendbuf_hds_len, blen);
  ------------------
  |  | 1287|  9.87k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 5.62k, False: 4.25k]
  |  |  ------------------
  ------------------
  252|  9.87k|    result = xfer_send(data, (const char *)buf, blen, hds_len, &nwritten);
  253|  9.87k|    if(result)
  ------------------
  |  Branch (253:8): [True: 4, False: 9.87k]
  ------------------
  254|      4|      break;
  255|       |
  256|  9.87k|    Curl_bufq_skip(&data->req.sendbuf, nwritten);
  257|  9.87k|    if(hds_len) {
  ------------------
  |  Branch (257:8): [True: 5.58k, False: 4.28k]
  ------------------
  258|  5.58k|      data->req.sendbuf_hds_len -= CURLMIN(hds_len, nwritten);
  ------------------
  |  | 1287|  5.58k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 788, False: 4.79k]
  |  |  ------------------
  ------------------
  259|  5.58k|    }
  260|       |    /* leave if we could not send all. Maybe network blocking or
  261|       |     * speed limits on transfer */
  262|  9.87k|    if(nwritten < blen)
  ------------------
  |  Branch (262:8): [True: 8.66k, False: 1.20k]
  ------------------
  263|  8.66k|      break;
  264|  9.87k|  }
  265|  9.87k|  return result;
  266|  9.87k|}
request.c:xfer_send:
  190|  18.5k|{
  191|  18.5k|  CURLcode result = CURLE_OK;
  192|  18.5k|  bool eos = FALSE;
  ------------------
  |  | 1058|  18.5k|#define FALSE false
  ------------------
  193|       |
  194|  18.5k|  *pnwritten = 0;
  195|  18.5k|  DEBUGASSERT(hds_len <= blen);
  ------------------
  |  | 1081|  18.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (195:3): [True: 0, False: 18.5k]
  |  Branch (195:3): [True: 18.5k, False: 0]
  ------------------
  196|  18.5k|#ifdef DEBUGBUILD
  197|  18.5k|  {
  198|       |    /* Allow debug builds to override this logic to force short initial
  199|       |       sends */
  200|  18.5k|    size_t body_len = blen - hds_len;
  201|  18.5k|    if(body_len) {
  ------------------
  |  Branch (201:8): [True: 5.62k, False: 12.9k]
  ------------------
  202|  5.62k|      const char *p = getenv("CURL_SMALLREQSEND");
  203|  5.62k|      if(p) {
  ------------------
  |  Branch (203:10): [True: 0, False: 5.62k]
  ------------------
  204|      0|        curl_off_t body_small;
  205|      0|        if(!curlx_str_number(&p, &body_small, body_len))
  ------------------
  |  Branch (205:12): [True: 0, False: 0]
  ------------------
  206|      0|          blen = hds_len + (size_t)body_small;
  207|      0|      }
  208|  5.62k|    }
  209|  18.5k|  }
  210|  18.5k|#endif
  211|       |  /* Make sure this does not send more body bytes than what the max send
  212|       |     speed says. The headers do not count to the max speed. */
  213|  18.5k|  if(data->set.max_send_speed) {
  ------------------
  |  Branch (213:6): [True: 0, False: 18.5k]
  ------------------
  214|      0|    size_t body_bytes = blen - hds_len;
  215|      0|    if((curl_off_t)body_bytes > data->set.max_send_speed)
  ------------------
  |  Branch (215:8): [True: 0, False: 0]
  ------------------
  216|      0|      blen = hds_len + (size_t)data->set.max_send_speed;
  217|      0|  }
  218|       |
  219|  18.5k|  if(data->req.eos_read &&
  ------------------
  |  Branch (219:6): [True: 17.6k, False: 928]
  ------------------
  220|  17.6k|    (Curl_bufq_is_empty(&data->req.sendbuf) ||
  ------------------
  |  Branch (220:6): [True: 8.72k, False: 8.94k]
  ------------------
  221|  17.6k|     Curl_bufq_len(&data->req.sendbuf) == blen)) {
  ------------------
  |  Branch (221:6): [True: 8.94k, False: 0]
  ------------------
  222|  17.6k|    DEBUGF(infof(data, "sending last upload chunk of %zu bytes", blen));
  ------------------
  |  | 1067|   123k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 17.6k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 17.6k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 17.6k]
  |  |  ------------------
  ------------------
  223|  17.6k|    eos = TRUE;
  ------------------
  |  | 1055|  17.6k|#define TRUE true
  ------------------
  224|  17.6k|  }
  225|  18.5k|  result = Curl_xfer_send(data, buf, blen, eos, pnwritten);
  226|  18.5k|  if(!result) {
  ------------------
  |  Branch (226:6): [True: 18.5k, False: 30]
  ------------------
  227|  18.5k|    if(eos && (blen == *pnwritten))
  ------------------
  |  Branch (227:8): [True: 17.6k, False: 926]
  |  Branch (227:15): [True: 8.98k, False: 8.66k]
  ------------------
  228|  8.98k|      data->req.eos_sent = TRUE;
  ------------------
  |  | 1055|  8.98k|#define TRUE true
  ------------------
  229|  18.5k|    if(*pnwritten) {
  ------------------
  |  Branch (229:8): [True: 9.86k, False: 8.70k]
  ------------------
  230|  9.86k|      if(hds_len)
  ------------------
  |  Branch (230:10): [True: 9.59k, False: 270]
  ------------------
  231|  9.59k|        Curl_debug(data, CURLINFO_HEADER_OUT, buf,
  232|  9.59k|                   CURLMIN(hds_len, *pnwritten));
  ------------------
  |  | 1287|  9.59k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 788, False: 8.80k]
  |  |  ------------------
  ------------------
  233|  9.86k|      if(*pnwritten > hds_len) {
  ------------------
  |  Branch (233:10): [True: 1.05k, False: 8.80k]
  ------------------
  234|  1.05k|        size_t body_len = *pnwritten - hds_len;
  235|  1.05k|        Curl_debug(data, CURLINFO_DATA_OUT, buf + hds_len, body_len);
  236|  1.05k|        data->req.writebytecount += body_len;
  237|  1.05k|        Curl_pgrs_upload_inc(data, body_len);
  238|  1.05k|      }
  239|  9.86k|    }
  240|  18.5k|  }
  241|  18.5k|  return result;
  242|  18.5k|}
request.c:req_set_upload_done:
  269|  9.20k|{
  270|  9.20k|  DEBUGASSERT(!data->req.upload_done);
  ------------------
  |  | 1081|  9.20k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (270:3): [True: 0, False: 9.20k]
  |  Branch (270:3): [True: 9.20k, False: 0]
  ------------------
  271|  9.20k|  data->req.upload_done = TRUE;
  ------------------
  |  | 1055|  9.20k|#define TRUE true
  ------------------
  272|  9.20k|  CURL_REQ_CLEAR_SEND(data);
  ------------------
  |  |   47|  9.20k|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  9.20k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  273|       |
  274|  9.20k|  Curl_pgrsTime(data, TIMER_POSTRANSFER);
  275|  9.20k|  Curl_creader_done(data, data->req.upload_aborted);
  276|       |
  277|  9.20k|  if(data->req.upload_aborted) {
  ------------------
  |  Branch (277:6): [True: 172, False: 9.03k]
  ------------------
  278|    172|    Curl_bufq_reset(&data->req.sendbuf);
  279|    172|    if(data->req.writebytecount)
  ------------------
  |  Branch (279:8): [True: 47, False: 125]
  ------------------
  280|     47|      infof(data, "abort upload after having sent %" FMT_OFF_T " bytes",
  ------------------
  |  |  143|     47|  do {                               \
  |  |  144|     47|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     47|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 47, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 47]
  |  |  |  |  ------------------
  |  |  |  |  320|     47|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     47|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     47|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 47]
  |  |  ------------------
  ------------------
  281|    172|            data->req.writebytecount);
  282|    125|    else
  283|    125|      infof(data, "abort upload");
  ------------------
  |  |  143|    125|  do {                               \
  |  |  144|    125|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    125|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 125, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 125]
  |  |  |  |  ------------------
  |  |  |  |  320|    125|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    125|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    125|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 125]
  |  |  ------------------
  ------------------
  284|    172|  }
  285|  9.03k|  else if(data->req.writebytecount)
  ------------------
  |  Branch (285:11): [True: 516, False: 8.51k]
  ------------------
  286|    516|    infof(data, "upload completely sent off: %" FMT_OFF_T " bytes",
  ------------------
  |  |  143|    516|  do {                               \
  |  |  144|    516|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    516|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 516, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 516]
  |  |  |  |  ------------------
  |  |  |  |  320|    516|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    516|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    516|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 516]
  |  |  ------------------
  ------------------
  287|  9.03k|          data->req.writebytecount);
  288|  8.51k|  else if(!data->req.download_done) {
  ------------------
  |  Branch (288:11): [True: 8.46k, False: 53]
  ------------------
  289|  8.46k|    DEBUGASSERT(Curl_bufq_is_empty(&data->req.sendbuf));
  ------------------
  |  | 1081|  8.46k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (289:5): [True: 0, False: 8.46k]
  |  Branch (289:5): [True: 8.46k, False: 0]
  ------------------
  290|  8.46k|    infof(data, Curl_creader_total_length(data) ?
  ------------------
  |  |  143|  8.46k|  do {                               \
  |  |  144|  8.46k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  8.46k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 8.46k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 8.46k]
  |  |  |  |  ------------------
  |  |  |  |  320|  8.46k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  8.46k|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|  8.46k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 8.46k]
  |  |  ------------------
  ------------------
  291|  8.46k|          "We are completely uploaded and fine" :
  292|  8.46k|          "Request completely sent off");
  293|  8.46k|  }
  294|       |
  295|  9.20k|  return Curl_xfer_send_close(data);
  296|  9.20k|}
request.c:req_send_buffer_add:
  368|  1.12k|{
  369|  1.12k|  CURLcode result = CURLE_OK;
  370|  1.12k|  size_t n;
  371|  1.12k|  result = Curl_bufq_cwrite(&data->req.sendbuf, buf, blen, &n);
  372|  1.12k|  if(result)
  ------------------
  |  Branch (372:6): [True: 0, False: 1.12k]
  ------------------
  373|      0|    return result;
  374|       |  /* We rely on a SOFTLIMIT on sendbuf, so it can take all data in */
  375|  1.12k|  DEBUGASSERT(n == blen);
  ------------------
  |  | 1081|  1.12k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (375:3): [True: 0, False: 1.12k]
  |  Branch (375:3): [True: 1.12k, False: 0]
  ------------------
  376|  1.12k|  data->req.sendbuf_hds_len += hds_len;
  377|  1.12k|  return CURLE_OK;
  378|  1.12k|}
request.c:add_from_client:
  354|  6.46k|{
  355|  6.46k|  struct Curl_easy *data = reader_ctx;
  356|  6.46k|  CURLcode result;
  357|  6.46k|  bool eos;
  358|       |
  359|  6.46k|  result = Curl_client_read(data, (char *)buf, buflen, pnread, &eos);
  360|  6.46k|  if(!result && eos)
  ------------------
  |  Branch (360:6): [True: 6.40k, False: 58]
  |  Branch (360:17): [True: 690, False: 5.71k]
  ------------------
  361|    690|    data->req.eos_read = TRUE;
  ------------------
  |  | 1055|    690|#define TRUE true
  ------------------
  362|  6.46k|  return result;
  363|  6.46k|}

Curl_socket_check:
  124|      7|{
  125|      7|  struct pollfd pfd[3];
  126|      7|  int num;
  127|      7|  int r;
  128|       |
  129|      7|  if((readfd0 == CURL_SOCKET_BAD) && (readfd1 == CURL_SOCKET_BAD) &&
  ------------------
  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  ------------------
                if((readfd0 == CURL_SOCKET_BAD) && (readfd1 == CURL_SOCKET_BAD) &&
  ------------------
  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (129:6): [True: 7, False: 0]
  |  Branch (129:38): [True: 7, False: 0]
  ------------------
  130|      7|     (writefd == CURL_SOCKET_BAD)) {
  ------------------
  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (130:6): [True: 0, False: 7]
  ------------------
  131|       |    /* no sockets, wait */
  132|      0|    return curlx_wait_ms(timeout_ms);
  133|      0|  }
  134|       |
  135|       |  /* Avoid initial timestamp, avoid curlx_now() call, when elapsed
  136|       |     time in this function does not need to be measured. This happens
  137|       |     when function is called with a zero timeout or a negative timeout
  138|       |     value indicating a blocking call should be performed. */
  139|       |
  140|      7|  num = 0;
  141|      7|  if(readfd0 != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (141:6): [True: 0, False: 7]
  ------------------
  142|      0|    pfd[num].fd = readfd0;
  143|      0|    pfd[num].events = POLLRDNORM | POLLIN | POLLRDBAND | POLLPRI;
  144|      0|    pfd[num].revents = 0;
  145|      0|    num++;
  146|      0|  }
  147|      7|  if(readfd1 != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (147:6): [True: 0, False: 7]
  ------------------
  148|      0|    pfd[num].fd = readfd1;
  149|      0|    pfd[num].events = POLLRDNORM | POLLIN | POLLRDBAND | POLLPRI;
  150|      0|    pfd[num].revents = 0;
  151|      0|    num++;
  152|      0|  }
  153|      7|  if(writefd != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (153:6): [True: 7, False: 0]
  ------------------
  154|      7|    pfd[num].fd = writefd;
  155|      7|    pfd[num].events = POLLWRNORM | POLLOUT | POLLPRI;
  156|      7|    pfd[num].revents = 0;
  157|      7|    num++;
  158|      7|  }
  159|       |
  160|      7|  r = Curl_poll(pfd, (unsigned int)num, timeout_ms);
  161|      7|  if(r <= 0)
  ------------------
  |  Branch (161:6): [True: 7, False: 0]
  ------------------
  162|      7|    return r;
  163|       |
  164|      0|  r = 0;
  165|      0|  num = 0;
  166|      0|  if(readfd0 != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (166:6): [True: 0, False: 0]
  ------------------
  167|      0|    if(pfd[num].revents & (POLLRDNORM | POLLIN | POLLERR | POLLHUP))
  ------------------
  |  Branch (167:8): [True: 0, False: 0]
  ------------------
  168|      0|      r |= CURL_CSELECT_IN;
  ------------------
  |  |  290|      0|#define CURL_CSELECT_IN   0x01
  ------------------
  169|      0|    if(pfd[num].revents & (POLLPRI | POLLNVAL))
  ------------------
  |  Branch (169:8): [True: 0, False: 0]
  ------------------
  170|      0|      r |= CURL_CSELECT_ERR;
  ------------------
  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  ------------------
  171|      0|    num++;
  172|      0|  }
  173|      0|  if(readfd1 != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (173:6): [True: 0, False: 0]
  ------------------
  174|      0|    if(pfd[num].revents & (POLLRDNORM | POLLIN | POLLERR | POLLHUP))
  ------------------
  |  Branch (174:8): [True: 0, False: 0]
  ------------------
  175|      0|      r |= CURL_CSELECT_IN2;
  ------------------
  |  |   70|      0|#define CURL_CSELECT_IN2 (CURL_CSELECT_ERR << 1)
  |  |  ------------------
  |  |  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  |  |  ------------------
  ------------------
  176|      0|    if(pfd[num].revents & (POLLPRI | POLLNVAL))
  ------------------
  |  Branch (176:8): [True: 0, False: 0]
  ------------------
  177|      0|      r |= CURL_CSELECT_ERR;
  ------------------
  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  ------------------
  178|      0|    num++;
  179|      0|  }
  180|      0|  if(writefd != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (180:6): [True: 0, False: 0]
  ------------------
  181|      0|    if(pfd[num].revents & (POLLWRNORM | POLLOUT))
  ------------------
  |  Branch (181:8): [True: 0, False: 0]
  ------------------
  182|      0|      r |= CURL_CSELECT_OUT;
  ------------------
  |  |  291|      0|#define CURL_CSELECT_OUT  0x02
  ------------------
  183|      0|    if(pfd[num].revents & (POLLERR | POLLHUP | POLLPRI | POLLNVAL))
  ------------------
  |  Branch (183:8): [True: 0, False: 0]
  ------------------
  184|      0|      r |= CURL_CSELECT_ERR;
  ------------------
  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  ------------------
  185|      0|  }
  186|       |
  187|      0|  return r;
  188|      7|}
Curl_poll:
  204|  3.03k|{
  205|  3.03k|#ifdef HAVE_POLL
  206|  3.03k|  int pending_ms;
  207|       |#else
  208|       |  fd_set fds_read;
  209|       |  fd_set fds_write;
  210|       |  fd_set fds_err;
  211|       |  curl_socket_t maxfd;
  212|       |#endif
  213|  3.03k|  bool fds_none = TRUE;
  ------------------
  |  | 1055|  3.03k|#define TRUE true
  ------------------
  214|  3.03k|  unsigned int i;
  215|  3.03k|  int r;
  216|       |
  217|  3.03k|  if(ufds) {
  ------------------
  |  Branch (217:6): [True: 3.03k, False: 0]
  ------------------
  218|  3.03k|    for(i = 0; i < nfds; i++) {
  ------------------
  |  Branch (218:16): [True: 3.03k, False: 0]
  ------------------
  219|  3.03k|      if(ufds[i].fd != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  3.03k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (219:10): [True: 3.03k, False: 0]
  ------------------
  220|  3.03k|        fds_none = FALSE;
  ------------------
  |  | 1058|  3.03k|#define FALSE false
  ------------------
  221|  3.03k|        break;
  222|  3.03k|      }
  223|  3.03k|    }
  224|  3.03k|  }
  225|  3.03k|  if(fds_none) {
  ------------------
  |  Branch (225:6): [True: 0, False: 3.03k]
  ------------------
  226|       |    /* no sockets, wait */
  227|      0|    return curlx_wait_ms(timeout_ms);
  228|      0|  }
  229|       |
  230|       |  /* Avoid initial timestamp, avoid curlx_now() call, when elapsed
  231|       |     time in this function does not need to be measured. This happens
  232|       |     when function is called with a zero timeout or a negative timeout
  233|       |     value indicating a blocking call should be performed. */
  234|       |
  235|  3.03k|#ifdef HAVE_POLL
  236|       |
  237|       |  /* prevent overflow, timeout_ms is typecast to int. */
  238|  3.03k|#if TIMEDIFF_T_MAX > INT_MAX
  239|  3.03k|  if(timeout_ms > INT_MAX)
  ------------------
  |  Branch (239:6): [True: 0, False: 3.03k]
  ------------------
  240|      0|    timeout_ms = INT_MAX;
  241|  3.03k|#endif
  242|  3.03k|  if(timeout_ms > 0)
  ------------------
  |  Branch (242:6): [True: 7, False: 3.03k]
  ------------------
  243|      7|    pending_ms = (int)timeout_ms;
  244|  3.03k|  else if(timeout_ms < 0)
  ------------------
  |  Branch (244:11): [True: 0, False: 3.03k]
  ------------------
  245|      0|    pending_ms = -1;
  246|  3.03k|  else
  247|  3.03k|    pending_ms = 0;
  248|  3.03k|  r = poll(ufds, nfds, pending_ms);
  249|  3.03k|  if(r <= 0) {
  ------------------
  |  Branch (249:6): [True: 2.79k, False: 240]
  ------------------
  250|  2.79k|    if((r == -1) && (SOCKERRNO == SOCKEINTR))
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
                  if((r == -1) && (SOCKERRNO == SOCKEINTR))
  ------------------
  |  | 1129|      0|#define SOCKEINTR         EINTR
  ------------------
  |  Branch (250:8): [True: 0, False: 2.79k]
  |  Branch (250:21): [True: 0, False: 0]
  ------------------
  251|       |      /* make EINTR from select or poll not a "lethal" error */
  252|      0|      r = 0;
  253|  2.79k|    return r;
  254|  2.79k|  }
  255|       |
  256|    480|  for(i = 0; i < nfds; i++) {
  ------------------
  |  Branch (256:14): [True: 240, False: 240]
  ------------------
  257|    240|    if(ufds[i].fd == CURL_SOCKET_BAD)
  ------------------
  |  |  145|    240|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (257:8): [True: 0, False: 240]
  ------------------
  258|      0|      continue;
  259|    240|    if(ufds[i].revents & POLLHUP)
  ------------------
  |  Branch (259:8): [True: 0, False: 240]
  ------------------
  260|      0|      ufds[i].revents |= POLLIN;
  261|    240|    if(ufds[i].revents & POLLERR)
  ------------------
  |  Branch (261:8): [True: 0, False: 240]
  ------------------
  262|      0|      ufds[i].revents |= POLLIN | POLLOUT;
  263|    240|  }
  264|       |
  265|       |#else /* !HAVE_POLL */
  266|       |
  267|       |  FD_ZERO(&fds_read);
  268|       |  FD_ZERO(&fds_write);
  269|       |  FD_ZERO(&fds_err);
  270|       |  maxfd = (curl_socket_t)-1;
  271|       |
  272|       |  for(i = 0; i < nfds; i++) {
  273|       |    ufds[i].revents = 0;
  274|       |    if(ufds[i].fd == CURL_SOCKET_BAD)
  275|       |      continue;
  276|       |    VERIFY_SOCK(ufds[i].fd);
  277|       |    if(ufds[i].events & (POLLIN | POLLOUT | POLLPRI |
  278|       |                         POLLRDNORM | POLLWRNORM | POLLRDBAND)) {
  279|       |      if(ufds[i].fd > maxfd)
  280|       |        maxfd = ufds[i].fd;
  281|       |      if(ufds[i].events & (POLLRDNORM | POLLIN))
  282|       |        FD_SET(ufds[i].fd, &fds_read);
  283|       |      if(ufds[i].events & (POLLWRNORM | POLLOUT))
  284|       |        FD_SET(ufds[i].fd, &fds_write);
  285|       |      if(ufds[i].events & (POLLRDBAND | POLLPRI))
  286|       |        FD_SET(ufds[i].fd, &fds_err);
  287|       |    }
  288|       |  }
  289|       |
  290|       |  /*
  291|       |     Note also that Winsock ignores the first argument, so we do not worry
  292|       |     about the fact that maxfd is computed incorrectly with Winsock (since
  293|       |     curl_socket_t is unsigned in such cases and thus -1 is the largest
  294|       |     value).
  295|       |  */
  296|       |  r = our_select(maxfd, &fds_read, &fds_write, &fds_err, timeout_ms);
  297|       |  if(r <= 0) {
  298|       |    if((r == -1) && (SOCKERRNO == SOCKEINTR))
  299|       |      /* make EINTR from select or poll not a "lethal" error */
  300|       |      r = 0;
  301|       |    return r;
  302|       |  }
  303|       |
  304|       |  r = 0;
  305|       |  for(i = 0; i < nfds; i++) {
  306|       |    ufds[i].revents = 0;
  307|       |    if(ufds[i].fd == CURL_SOCKET_BAD)
  308|       |      continue;
  309|       |    if(FD_ISSET(ufds[i].fd, &fds_read)) {
  310|       |      if(ufds[i].events & POLLRDNORM)
  311|       |        ufds[i].revents |= POLLRDNORM;
  312|       |      if(ufds[i].events & POLLIN)
  313|       |        ufds[i].revents |= POLLIN;
  314|       |    }
  315|       |    if(FD_ISSET(ufds[i].fd, &fds_write)) {
  316|       |      if(ufds[i].events & POLLWRNORM)
  317|       |        ufds[i].revents |= POLLWRNORM;
  318|       |      if(ufds[i].events & POLLOUT)
  319|       |        ufds[i].revents |= POLLOUT;
  320|       |    }
  321|       |    if(FD_ISSET(ufds[i].fd, &fds_err)) {
  322|       |      if(ufds[i].events & POLLRDBAND)
  323|       |        ufds[i].revents |= POLLRDBAND;
  324|       |      if(ufds[i].events & POLLPRI)
  325|       |        ufds[i].revents |= POLLPRI;
  326|       |    }
  327|       |    if(ufds[i].revents)
  328|       |      r++;
  329|       |  }
  330|       |
  331|       |#endif /* HAVE_POLL */
  332|       |
  333|    240|  return r;
  334|  3.03k|}
Curl_pollfds_init:
  339|  11.4k|{
  340|  11.4k|  DEBUGASSERT(cpfds);
  ------------------
  |  | 1081|  11.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (340:3): [True: 0, False: 11.4k]
  |  Branch (340:3): [True: 11.4k, False: 0]
  ------------------
  341|  11.4k|  memset(cpfds, 0, sizeof(*cpfds));
  342|  11.4k|  if(static_pfds && static_count) {
  ------------------
  |  Branch (342:6): [True: 11.4k, False: 0]
  |  Branch (342:21): [True: 11.4k, False: 0]
  ------------------
  343|  11.4k|    cpfds->pfds = static_pfds;
  344|  11.4k|    cpfds->count = static_count;
  345|  11.4k|  }
  346|  11.4k|}
Curl_pollfds_cleanup:
  354|  11.4k|{
  355|  11.4k|  DEBUGASSERT(cpfds);
  ------------------
  |  | 1081|  11.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (355:3): [True: 0, False: 11.4k]
  |  Branch (355:3): [True: 11.4k, False: 0]
  ------------------
  356|  11.4k|  if(cpfds->allocated_pfds) {
  ------------------
  |  Branch (356:6): [True: 0, False: 11.4k]
  ------------------
  357|      0|    curlx_free(cpfds->pfds);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  358|      0|  }
  359|  11.4k|  memset(cpfds, 0, sizeof(*cpfds));
  360|  11.4k|}
Curl_pollset_reset:
  488|   480k|{
  489|   480k|  unsigned int i;
  490|   480k|  ps->n = 0;
  491|   480k|#ifdef DEBUGBUILD
  492|   480k|  DEBUGASSERT(ps->init == CURL_EASY_POLLSET_MAGIC);
  ------------------
  |  | 1081|   480k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (492:3): [True: 0, False: 480k]
  |  Branch (492:3): [True: 480k, False: 0]
  ------------------
  493|   480k|#endif
  494|   480k|  DEBUGASSERT(ps->count);
  ------------------
  |  | 1081|   480k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (494:3): [True: 0, False: 480k]
  |  Branch (494:3): [True: 480k, False: 0]
  ------------------
  495|  1.44M|  for(i = 0; i < ps->count; i++)
  ------------------
  |  Branch (495:14): [True: 961k, False: 480k]
  ------------------
  496|   961k|    ps->sockets[i] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  1.44M|#define CURL_SOCKET_BAD (-1)
  ------------------
  497|   480k|  memset(ps->actions, 0, ps->count * sizeof(ps->actions[0]));
  498|   480k|}
Curl_pollset_init:
  501|   125k|{
  502|   125k|#ifdef DEBUGBUILD
  503|   125k|  ps->init = CURL_EASY_POLLSET_MAGIC;
  ------------------
  |  |  131|   125k|#define CURL_EASY_POLLSET_MAGIC  0x7a657370
  ------------------
  504|   125k|#endif
  505|   125k|  ps->sockets = ps->def_sockets;
  506|   125k|  ps->actions = ps->def_actions;
  507|   125k|  ps->count = CURL_ARRAYSIZE(ps->def_sockets);
  ------------------
  |  | 1294|   125k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  508|   125k|  ps->n = 0;
  509|   125k|  Curl_pollset_reset(ps);
  510|   125k|}
Curl_pollset_cleanup:
  521|   125k|{
  522|   125k|#ifdef DEBUGBUILD
  523|   125k|  DEBUGASSERT(ps->init == CURL_EASY_POLLSET_MAGIC);
  ------------------
  |  | 1081|   125k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (523:3): [True: 0, False: 125k]
  |  Branch (523:3): [True: 125k, False: 0]
  ------------------
  524|   125k|#endif
  525|   125k|  if(ps->sockets != ps->def_sockets) {
  ------------------
  |  Branch (525:6): [True: 0, False: 125k]
  ------------------
  526|      0|    curlx_free(ps->sockets);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  527|      0|    ps->sockets = ps->def_sockets;
  528|      0|  }
  529|   125k|  if(ps->actions != ps->def_actions) {
  ------------------
  |  Branch (529:6): [True: 0, False: 125k]
  ------------------
  530|      0|    curlx_free(ps->actions);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  531|      0|    ps->actions = ps->def_actions;
  532|      0|  }
  533|   125k|  ps->count = CURL_ARRAYSIZE(ps->def_sockets);
  ------------------
  |  | 1294|   125k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  534|   125k|  Curl_pollset_reset(ps);
  535|   125k|}
Curl_pollset_change:
  564|   239k|{
  565|   239k|  unsigned int i;
  566|       |
  567|   239k|#ifdef DEBUGBUILD
  568|   239k|  DEBUGASSERT(ps->init == CURL_EASY_POLLSET_MAGIC);
  ------------------
  |  | 1081|   239k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (568:3): [True: 0, False: 239k]
  |  Branch (568:3): [True: 239k, False: 0]
  ------------------
  569|   239k|#endif
  570|       |
  571|   239k|  DEBUGASSERT(VALID_SOCK(sock));
  ------------------
  |  | 1081|   239k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (571:3): [True: 0, False: 239k]
  |  Branch (571:3): [True: 239k, False: 0]
  ------------------
  572|   239k|  if(!VALID_SOCK(sock))
  ------------------
  |  |   98|   239k|#define VALID_SOCK(s) ((s) >= 0)
  ------------------
  |  Branch (572:6): [True: 0, False: 239k]
  ------------------
  573|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  574|       |
  575|   239k|  DEBUGASSERT(add_flags <= (CURL_POLL_IN | CURL_POLL_OUT));
  ------------------
  |  | 1081|   239k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (575:3): [True: 0, False: 239k]
  |  Branch (575:3): [True: 239k, False: 0]
  ------------------
  576|   239k|  DEBUGASSERT(remove_flags <= (CURL_POLL_IN | CURL_POLL_OUT));
  ------------------
  |  | 1081|   239k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (576:3): [True: 0, False: 239k]
  |  Branch (576:3): [True: 239k, False: 0]
  ------------------
  577|   239k|  DEBUGASSERT((add_flags & remove_flags) == 0); /* no overlap */
  ------------------
  |  | 1081|   239k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (577:3): [True: 0, False: 239k]
  |  Branch (577:3): [True: 239k, False: 0]
  ------------------
  578|   239k|  for(i = 0; i < ps->n; ++i) {
  ------------------
  |  Branch (578:14): [True: 15.7k, False: 224k]
  ------------------
  579|  15.7k|    if(ps->sockets[i] == sock) {
  ------------------
  |  Branch (579:8): [True: 15.7k, False: 0]
  ------------------
  580|  15.7k|      ps->actions[i] &= (unsigned char)(~remove_flags);
  581|  15.7k|      ps->actions[i] |= (unsigned char)add_flags;
  582|       |      /* all gone? remove socket */
  583|  15.7k|      if(!ps->actions[i]) {
  ------------------
  |  Branch (583:10): [True: 0, False: 15.7k]
  ------------------
  584|      0|        if((i + 1) < ps->n) {
  ------------------
  |  Branch (584:12): [True: 0, False: 0]
  ------------------
  585|      0|          memmove(&ps->sockets[i], &ps->sockets[i + 1],
  586|      0|                  (ps->n - (i + 1)) * sizeof(ps->sockets[0]));
  587|      0|          memmove(&ps->actions[i], &ps->actions[i + 1],
  588|      0|                  (ps->n - (i + 1)) * sizeof(ps->actions[0]));
  589|      0|        }
  590|      0|        --ps->n;
  591|      0|      }
  592|  15.7k|      return CURLE_OK;
  593|  15.7k|    }
  594|  15.7k|  }
  595|       |  /* not present */
  596|   224k|  if(add_flags) {
  ------------------
  |  Branch (596:6): [True: 224k, False: 0]
  ------------------
  597|   224k|    if(i >= ps->count) { /* need to grow */
  ------------------
  |  Branch (597:8): [True: 0, False: 224k]
  ------------------
  598|      0|      unsigned int new_count = CURLMAX(ps->count * 2, 8);
  ------------------
  |  | 1286|      0|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1286:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  599|      0|      curl_socket_t *nsockets;
  600|      0|      unsigned char *nactions;
  601|       |
  602|      0|      CURL_TRC_M(data, "growing pollset capacity from %u to %u",
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  603|      0|                 ps->count, new_count);
  604|      0|      if(new_count <= ps->count)
  ------------------
  |  Branch (604:10): [True: 0, False: 0]
  ------------------
  605|      0|        return CURLE_OUT_OF_MEMORY;
  606|      0|      nsockets = curlx_calloc(new_count, sizeof(nsockets[0]));
  ------------------
  |  | 1480|      0|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  607|      0|      if(!nsockets)
  ------------------
  |  Branch (607:10): [True: 0, False: 0]
  ------------------
  608|      0|        return CURLE_OUT_OF_MEMORY;
  609|      0|      nactions = curlx_calloc(new_count, sizeof(nactions[0]));
  ------------------
  |  | 1480|      0|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  610|      0|      if(!nactions) {
  ------------------
  |  Branch (610:10): [True: 0, False: 0]
  ------------------
  611|      0|        curlx_free(nsockets);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  612|      0|        return CURLE_OUT_OF_MEMORY;
  613|      0|      }
  614|      0|      memcpy(nsockets, ps->sockets, ps->count * sizeof(ps->sockets[0]));
  615|      0|      memcpy(nactions, ps->actions, ps->count * sizeof(ps->actions[0]));
  616|      0|      if(ps->sockets != ps->def_sockets)
  ------------------
  |  Branch (616:10): [True: 0, False: 0]
  ------------------
  617|      0|        curlx_free(ps->sockets);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  618|      0|      ps->sockets = nsockets;
  619|      0|      if(ps->actions != ps->def_actions)
  ------------------
  |  Branch (619:10): [True: 0, False: 0]
  ------------------
  620|      0|        curlx_free(ps->actions);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  621|      0|      ps->actions = nactions;
  622|      0|      ps->count = new_count;
  623|      0|    }
  624|   224k|    DEBUGASSERT(i < ps->count);
  ------------------
  |  | 1081|   224k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (624:5): [True: 0, False: 224k]
  |  Branch (624:5): [True: 224k, False: 0]
  ------------------
  625|   224k|    if(i < ps->count) {
  ------------------
  |  Branch (625:8): [True: 224k, False: 0]
  ------------------
  626|   224k|      ps->sockets[i] = sock;
  627|   224k|      ps->actions[i] = (unsigned char)add_flags;
  628|   224k|      ps->n = i + 1;
  629|   224k|    }
  630|   224k|  }
  631|   224k|  return CURLE_OK;
  632|   224k|}
Curl_pollset_set:
  637|  5.69k|{
  638|  5.69k|  return Curl_pollset_change(data, ps, sock,
  639|  5.69k|                             (do_in ? CURL_POLL_IN : 0) |
  ------------------
  |  |  283|  5.69k|#define CURL_POLL_IN     1
  ------------------
  |  Branch (639:31): [True: 5.69k, False: 0]
  ------------------
  640|  5.69k|                             (do_out ? CURL_POLL_OUT : 0),
  ------------------
  |  |  284|    928|#define CURL_POLL_OUT    2
  ------------------
  |  Branch (640:31): [True: 928, False: 4.76k]
  ------------------
  641|  5.69k|                             (!do_in ? CURL_POLL_IN : 0) |
  ------------------
  |  |  283|      0|#define CURL_POLL_IN     1
  ------------------
  |  Branch (641:31): [True: 0, False: 5.69k]
  ------------------
  642|  5.69k|                             (!do_out ? CURL_POLL_OUT : 0));
  ------------------
  |  |  284|  4.76k|#define CURL_POLL_OUT    2
  ------------------
  |  Branch (642:31): [True: 4.76k, False: 928]
  ------------------
  643|  5.69k|}
Curl_pollset_check:
  694|  5.69k|{
  695|  5.69k|  unsigned int i;
  696|       |
  697|  5.69k|  (void)data;
  698|  5.69k|  DEBUGASSERT(VALID_SOCK(sock));
  ------------------
  |  | 1081|  5.69k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (698:3): [True: 0, False: 5.69k]
  |  Branch (698:3): [True: 5.69k, False: 0]
  ------------------
  699|  5.69k|  for(i = 0; i < ps->n; ++i) {
  ------------------
  |  Branch (699:14): [True: 5.69k, False: 0]
  ------------------
  700|  5.69k|    if(ps->sockets[i] == sock) {
  ------------------
  |  Branch (700:8): [True: 5.69k, False: 0]
  ------------------
  701|  5.69k|      *pwant_read = !!(ps->actions[i] & CURL_POLL_IN);
  ------------------
  |  |  283|  5.69k|#define CURL_POLL_IN     1
  ------------------
  702|  5.69k|      *pwant_write = !!(ps->actions[i] & CURL_POLL_OUT);
  ------------------
  |  |  284|  5.69k|#define CURL_POLL_OUT    2
  ------------------
  703|  5.69k|      return;
  704|  5.69k|    }
  705|  5.69k|  }
  706|      0|  *pwant_read = *pwant_write = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  707|      0|}
Curl_pollset_want_recv:
  712|   219k|{
  713|   219k|  unsigned int i;
  714|   219k|  (void)data;
  715|   340k|  for(i = 0; i < ps->n; ++i) {
  ------------------
  |  Branch (715:14): [True: 219k, False: 121k]
  ------------------
  716|   219k|    if((ps->sockets[i] == sock) && (ps->actions[i] & CURL_POLL_IN))
  ------------------
  |  |  283|   105k|#define CURL_POLL_IN     1
  ------------------
  |  Branch (716:8): [True: 105k, False: 113k]
  |  Branch (716:36): [True: 97.7k, False: 7.71k]
  ------------------
  717|  97.7k|      return TRUE;
  ------------------
  |  | 1055|  97.7k|#define TRUE true
  ------------------
  718|   219k|  }
  719|   121k|  return FALSE;
  ------------------
  |  | 1058|   121k|#define FALSE false
  ------------------
  720|   219k|}

Curl_client_cleanup:
   71|  15.6k|{
   72|  15.6k|  cl_reset_reader(data);
   73|  15.6k|  cl_reset_writer(data);
   74|       |
   75|  15.6k|  data->req.bytecount = 0;
   76|  15.6k|  data->req.headerline = 0;
   77|  15.6k|}
Curl_client_reset:
   80|  15.8k|{
   81|  15.8k|  if(data->req.rewind_read) {
  ------------------
  |  Branch (81:6): [True: 286, False: 15.5k]
  ------------------
   82|       |    /* already requested */
   83|    286|    CURL_TRC_READ(data, "client_reset, will rewind reader");
  ------------------
  |  |  163|    286|  do {                                                    \
  |  |  164|    286|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|    286|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    572|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 286, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 286]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    572|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    286|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    286|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    286|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 286]
  |  |  ------------------
  ------------------
   84|    286|  }
   85|  15.5k|  else {
   86|  15.5k|    CURL_TRC_READ(data, "client_reset, clear readers");
  ------------------
  |  |  163|  15.5k|  do {                                                    \
  |  |  164|  15.5k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|  15.5k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  31.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 15.5k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 15.5k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  31.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  15.5k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|  15.5k|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|  15.5k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 15.5k]
  |  |  ------------------
  ------------------
   87|  15.5k|    cl_reset_reader(data);
   88|  15.5k|  }
   89|  15.8k|  cl_reset_writer(data);
   90|       |
   91|  15.8k|  data->req.bytecount = 0;
   92|  15.8k|  data->req.headerline = 0;
   93|  15.8k|}
Curl_client_start:
   96|  13.6k|{
   97|  13.6k|  if(data->req.rewind_read) {
  ------------------
  |  Branch (97:6): [True: 283, False: 13.3k]
  ------------------
   98|    283|    struct Curl_creader *r = data->req.reader_stack;
   99|    283|    CURLcode result = CURLE_OK;
  100|       |
  101|    283|    CURL_TRC_READ(data, "client start, rewind readers");
  ------------------
  |  |  163|    283|  do {                                                    \
  |  |  164|    283|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|    283|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    566|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 283, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 283]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    566|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    283|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    283|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    283|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 283]
  |  |  ------------------
  ------------------
  102|    555|    while(r) {
  ------------------
  |  Branch (102:11): [True: 286, False: 269]
  ------------------
  103|    286|      result = r->crt->cntrl(data, r, CURL_CRCNTRL_REWIND);
  104|    286|      if(result) {
  ------------------
  |  Branch (104:10): [True: 14, False: 272]
  ------------------
  105|     14|        failf(data, "rewind of client reader '%s' failed: %d",
  ------------------
  |  |   62|     14|#define failf Curl_failf
  ------------------
  106|     14|              r->crt->name, result);
  107|     14|        return result;
  108|     14|      }
  109|    272|      r = r->next;
  110|    272|    }
  111|    269|    data->req.rewind_read = FALSE;
  ------------------
  |  | 1058|    269|#define FALSE false
  ------------------
  112|    269|    cl_reset_reader(data);
  113|    269|  }
  114|  13.6k|  return CURLE_OK;
  115|  13.6k|}
Curl_creader_will_rewind:
  118|  6.74k|{
  119|  6.74k|  return (bool)data->req.rewind_read;
  120|  6.74k|}
Curl_creader_set_rewind:
  123|    362|{
  124|    362|  data->req.rewind_read = !!enable;
  125|    362|}
Curl_cwriter_write:
  131|   207k|{
  132|   207k|  if(!writer)
  ------------------
  |  Branch (132:6): [True: 0, False: 207k]
  ------------------
  133|      0|    return CURLE_WRITE_ERROR;
  134|   207k|  return writer->cwt->do_write(data, writer, type, buf, nbytes);
  135|   207k|}
Curl_cwriter_def_init:
  139|  30.9k|{
  140|  30.9k|  (void)data;
  141|  30.9k|  (void)writer;
  142|  30.9k|  return CURLE_OK;
  143|  30.9k|}
Curl_cwriter_def_close:
  154|  30.9k|{
  155|  30.9k|  (void)data;
  156|  30.9k|  (void)writer;
  157|  30.9k|}
Curl_client_write:
  377|  41.1k|{
  378|  41.1k|  CURLcode result;
  379|       |
  380|       |  /* it is one of those, at least */
  381|  41.1k|  DEBUGASSERT(type &
  ------------------
  |  | 1081|  41.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (381:3): [True: 0, False: 41.1k]
  |  Branch (381:3): [True: 41.1k, False: 0]
  ------------------
  382|  41.1k|              (CLIENTWRITE_BODY | CLIENTWRITE_HEADER | CLIENTWRITE_INFO));
  383|       |  /* BODY is only BODY (with optional EOS) */
  384|  41.1k|  DEBUGASSERT(!(type & CLIENTWRITE_BODY) ||
  ------------------
  |  | 1081|  41.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (384:3): [True: 41.1k, False: 0]
  |  Branch (384:3): [True: 0, False: 0]
  |  Branch (384:3): [True: 36.9k, False: 4.20k]
  |  Branch (384:3): [True: 4.20k, False: 0]
  ------------------
  385|  41.1k|              ((type & ~(CLIENTWRITE_BODY | CLIENTWRITE_EOS)) == 0));
  386|       |  /* INFO is only INFO (with optional EOS) */
  387|  41.1k|  DEBUGASSERT(!(type & CLIENTWRITE_INFO) ||
  ------------------
  |  | 1081|  41.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (387:3): [True: 41.1k, False: 0]
  |  Branch (387:3): [True: 0, False: 0]
  |  Branch (387:3): [True: 41.1k, False: 0]
  |  Branch (387:3): [True: 0, False: 0]
  ------------------
  388|  41.1k|              ((type & ~(CLIENTWRITE_INFO | CLIENTWRITE_EOS)) == 0));
  389|       |
  390|  41.1k|  if(!data->req.writer_stack) {
  ------------------
  |  Branch (390:6): [True: 0, False: 41.1k]
  ------------------
  391|      0|    result = do_init_writer_stack(data);
  392|      0|    if(result)
  ------------------
  |  Branch (392:8): [True: 0, False: 0]
  ------------------
  393|      0|      return result;
  394|      0|    DEBUGASSERT(data->req.writer_stack);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (394:5): [True: 0, False: 0]
  |  Branch (394:5): [True: 0, False: 0]
  ------------------
  395|      0|  }
  396|       |
  397|  41.1k|  result = Curl_cwriter_write(data, data->req.writer_stack, type, buf, len);
  398|  41.1k|  CURL_TRC_WRITE(data, "client_write(type=%x, len=%zu) -> %d",
  ------------------
  |  |  158|  41.1k|  do {                                                     \
  |  |  159|  41.1k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  41.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  82.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 41.1k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 41.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  82.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  41.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  41.1k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  41.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 41.1k]
  |  |  ------------------
  ------------------
  399|  41.1k|                 type, len, result);
  400|  41.1k|  return result;
  401|  41.1k|}
Curl_cwriter_create:
  408|  53.2k|{
  409|  53.2k|  struct Curl_cwriter *writer = NULL;
  410|  53.2k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  411|  53.2k|  void *p;
  412|       |
  413|  53.2k|  DEBUGASSERT(cwt->cwriter_size >= sizeof(struct Curl_cwriter));
  ------------------
  |  | 1081|  53.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (413:3): [True: 0, False: 53.2k]
  |  Branch (413:3): [True: 53.2k, False: 0]
  ------------------
  414|  53.2k|  p = curlx_calloc(1, cwt->cwriter_size);
  ------------------
  |  | 1480|  53.2k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  415|  53.2k|  if(!p)
  ------------------
  |  Branch (415:6): [True: 0, False: 53.2k]
  ------------------
  416|      0|    goto out;
  417|       |
  418|  53.2k|  writer = (struct Curl_cwriter *)p;
  419|  53.2k|  writer->cwt = cwt;
  420|  53.2k|  writer->ctx = p;
  421|  53.2k|  writer->phase = phase;
  422|  53.2k|  result = cwt->do_init(data, writer);
  423|       |
  424|  53.2k|out:
  425|  53.2k|  *pwriter = result ? NULL : writer;
  ------------------
  |  Branch (425:14): [True: 0, False: 53.2k]
  ------------------
  426|  53.2k|  if(result)
  ------------------
  |  Branch (426:6): [True: 0, False: 53.2k]
  ------------------
  427|      0|    curlx_free(writer);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  428|  53.2k|  return result;
  429|  53.2k|}
Curl_cwriter_count:
  441|    313|{
  442|    313|  struct Curl_cwriter *w;
  443|    313|  size_t n = 0;
  444|       |
  445|  2.04k|  for(w = data->req.writer_stack; w; w = w->next) {
  ------------------
  |  Branch (445:35): [True: 1.72k, False: 313]
  ------------------
  446|  1.72k|    if(w->phase == phase)
  ------------------
  |  Branch (446:8): [True: 144, False: 1.58k]
  ------------------
  447|    144|      ++n;
  448|  1.72k|  }
  449|    313|  return n;
  450|    313|}
Curl_cwriter_add:
  454|  42.9k|{
  455|  42.9k|  CURLcode result;
  456|  42.9k|  struct Curl_cwriter **anchor = &data->req.writer_stack;
  457|       |
  458|  42.9k|  if(!*anchor) {
  ------------------
  |  Branch (458:6): [True: 10.3k, False: 32.6k]
  ------------------
  459|  10.3k|    result = do_init_writer_stack(data);
  460|  10.3k|    if(result)
  ------------------
  |  Branch (460:8): [True: 0, False: 10.3k]
  ------------------
  461|      0|      return result;
  462|  10.3k|  }
  463|       |
  464|       |  /* Insert the writer as first in its phase.
  465|       |   * Skip existing writers of lower phases. */
  466|  59.2k|  while(*anchor && (*anchor)->phase < writer->phase)
  ------------------
  |  Branch (466:9): [True: 59.2k, False: 0]
  |  Branch (466:20): [True: 16.2k, False: 42.9k]
  ------------------
  467|  16.2k|    anchor = &((*anchor)->next);
  468|  42.9k|  writer->next = *anchor;
  469|  42.9k|  *anchor = writer;
  470|  42.9k|  return CURLE_OK;
  471|  42.9k|}
Curl_cwriter_get_by_name:
  475|  17.1k|{
  476|  17.1k|  struct Curl_cwriter *writer;
  477|  23.9k|  for(writer = data->req.writer_stack; writer; writer = writer->next) {
  ------------------
  |  Branch (477:40): [True: 13.5k, False: 10.3k]
  ------------------
  478|  13.5k|    if(!strcmp(name, writer->cwt->name))
  ------------------
  |  Branch (478:8): [True: 6.79k, False: 6.79k]
  ------------------
  479|  6.79k|      return writer;
  480|  13.5k|  }
  481|  10.3k|  return NULL;
  482|  17.1k|}
Curl_cwriter_get_by_type:
  486|  65.7k|{
  487|  65.7k|  struct Curl_cwriter *writer;
  488|   324k|  for(writer = data->req.writer_stack; writer; writer = writer->next) {
  ------------------
  |  Branch (488:40): [True: 324k, False: 208]
  ------------------
  489|   324k|    if(writer->cwt == cwt)
  ------------------
  |  Branch (489:8): [True: 65.5k, False: 259k]
  ------------------
  490|  65.5k|      return writer;
  491|   324k|  }
  492|    208|  return NULL;
  493|  65.7k|}
Curl_cwriter_is_content_decoding:
  496|  49.9k|{
  497|  49.9k|  struct Curl_cwriter *writer;
  498|   297k|  for(writer = data->req.writer_stack; writer; writer = writer->next) {
  ------------------
  |  Branch (498:40): [True: 250k, False: 46.2k]
  ------------------
  499|   250k|    if(writer->phase == CURL_CW_CONTENT_DECODE)
  ------------------
  |  Branch (499:8): [True: 3.70k, False: 247k]
  ------------------
  500|  3.70k|      return TRUE;
  ------------------
  |  | 1055|  3.70k|#define TRUE true
  ------------------
  501|   250k|  }
  502|  46.2k|  return FALSE;
  ------------------
  |  | 1058|  46.2k|#define FALSE false
  ------------------
  503|  49.9k|}
Curl_cwriter_is_paused:
  506|  44.8k|{
  507|  44.8k|  return Curl_cw_out_is_paused(data);
  508|  44.8k|}
Curl_creader_read:
  518|  11.8k|{
  519|  11.8k|  *nread = 0;
  520|  11.8k|  *eos = FALSE;
  ------------------
  |  | 1058|  11.8k|#define FALSE false
  ------------------
  521|  11.8k|  if(!reader)
  ------------------
  |  Branch (521:6): [True: 0, False: 11.8k]
  ------------------
  522|      0|    return CURLE_READ_ERROR;
  523|  11.8k|  return reader->crt->do_read(data, reader, buf, blen, nread, eos);
  524|  11.8k|}
Curl_creader_def_init:
  537|  9.00k|{
  538|  9.00k|  (void)data;
  539|  9.00k|  (void)reader;
  540|  9.00k|  return CURLE_OK;
  541|  9.00k|}
Curl_creader_def_close:
  545|  9.91k|{
  546|  9.91k|  (void)data;
  547|  9.91k|  (void)reader;
  548|  9.91k|}
Curl_creader_def_needs_rewind:
  567|  3.12k|{
  568|  3.12k|  (void)data;
  569|  3.12k|  (void)reader;
  570|       |  return FALSE;
  ------------------
  |  | 1058|  3.12k|#define FALSE false
  ------------------
  571|  3.12k|}
Curl_creader_def_total_length:
  575|    141|{
  576|    141|  return reader->next ?
  ------------------
  |  Branch (576:10): [True: 141, False: 0]
  ------------------
  577|    141|         reader->next->crt->total_length(data, reader->next) : -1;
  578|    141|}
Curl_creader_def_cntrl:
  593|    148|{
  594|    148|  (void)data;
  595|    148|  (void)reader;
  596|    148|  (void)opcode;
  597|    148|  return CURLE_OK;
  598|    148|}
Curl_creader_def_done:
  610|  9.40k|{
  611|  9.40k|  (void)data;
  612|  9.40k|  (void)reader;
  613|  9.40k|  (void)premature;
  614|  9.40k|}
Curl_creader_create:
  926|  10.1k|{
  927|  10.1k|  struct Curl_creader *reader = NULL;
  928|  10.1k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  929|  10.1k|  void *p;
  930|       |
  931|  10.1k|  DEBUGASSERT(crt->creader_size >= sizeof(struct Curl_creader));
  ------------------
  |  | 1081|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (931:3): [True: 0, False: 10.1k]
  |  Branch (931:3): [True: 10.1k, False: 0]
  ------------------
  932|  10.1k|  p = curlx_calloc(1, crt->creader_size);
  ------------------
  |  | 1480|  10.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  933|  10.1k|  if(!p)
  ------------------
  |  Branch (933:6): [True: 0, False: 10.1k]
  ------------------
  934|      0|    goto out;
  935|       |
  936|  10.1k|  reader = (struct Curl_creader *)p;
  937|  10.1k|  reader->crt = crt;
  938|  10.1k|  reader->ctx = p;
  939|  10.1k|  reader->phase = phase;
  940|  10.1k|  result = crt->do_init(data, reader);
  941|       |
  942|  10.1k|out:
  943|  10.1k|  *preader = result ? NULL : reader;
  ------------------
  |  Branch (943:14): [True: 0, False: 10.1k]
  ------------------
  944|  10.1k|  if(result)
  ------------------
  |  Branch (944:6): [True: 0, False: 10.1k]
  ------------------
  945|      0|    curlx_free(reader);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  946|  10.1k|  return result;
  947|  10.1k|}
Curl_creader_set_fread:
 1127|    915|{
 1128|    915|  CURLcode result;
 1129|    915|  struct Curl_creader *r;
 1130|    915|  struct cr_in_ctx *ctx;
 1131|       |
 1132|    915|  result = Curl_creader_create(&r, data, &cr_in, CURL_CR_CLIENT);
 1133|    915|  if(result || !r)
  ------------------
  |  Branch (1133:6): [True: 0, False: 915]
  |  Branch (1133:16): [True: 0, False: 915]
  ------------------
 1134|      0|    goto out;
 1135|    915|  ctx = r->ctx;
 1136|    915|  ctx->total_len = len;
 1137|       |
 1138|    915|  cl_reset_reader(data);
 1139|    915|  result = do_init_reader_stack(data, r);
 1140|    915|out:
 1141|    915|  CURL_TRC_READ(data, "add fread reader, len=%" FMT_OFF_T " -> %d",
  ------------------
  |  |  163|    915|  do {                                                    \
  |  |  164|    915|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|    915|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.83k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 915, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 915]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.83k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    915|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    915|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    915|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 915]
  |  |  ------------------
  ------------------
 1142|    915|                len, result);
 1143|    915|  return result;
 1144|    915|}
Curl_creader_add:
 1148|    515|{
 1149|    515|  CURLcode result;
 1150|    515|  struct Curl_creader **anchor = &data->req.reader_stack;
 1151|       |
 1152|    515|  if(!*anchor) {
  ------------------
  |  Branch (1152:6): [True: 0, False: 515]
  ------------------
 1153|      0|    result = Curl_creader_set_fread(data, data->state.infilesize);
 1154|      0|    if(result)
  ------------------
  |  Branch (1154:8): [True: 0, False: 0]
  ------------------
 1155|      0|      return result;
 1156|      0|  }
 1157|       |
 1158|       |  /* Insert the writer as first in its phase.
 1159|       |   * Skip existing readers of lower phases. */
 1160|    662|  while(*anchor && (*anchor)->phase < reader->phase)
  ------------------
  |  Branch (1160:9): [True: 662, False: 0]
  |  Branch (1160:20): [True: 147, False: 515]
  ------------------
 1161|    147|    anchor = &((*anchor)->next);
 1162|    515|  reader->next = *anchor;
 1163|    515|  *anchor = reader;
 1164|    515|  return CURLE_OK;
 1165|    515|}
Curl_client_read:
 1184|  6.46k|{
 1185|  6.46k|  CURLcode result;
 1186|       |
 1187|  6.46k|  DEBUGASSERT(buf);
  ------------------
  |  | 1081|  6.46k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1187:3): [True: 0, False: 6.46k]
  |  Branch (1187:3): [True: 6.46k, False: 0]
  ------------------
 1188|  6.46k|  DEBUGASSERT(blen);
  ------------------
  |  | 1081|  6.46k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1188:3): [True: 0, False: 6.46k]
  |  Branch (1188:3): [True: 6.46k, False: 0]
  ------------------
 1189|  6.46k|  DEBUGASSERT(nread);
  ------------------
  |  | 1081|  6.46k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1189:3): [True: 0, False: 6.46k]
  |  Branch (1189:3): [True: 6.46k, False: 0]
  ------------------
 1190|  6.46k|  DEBUGASSERT(eos);
  ------------------
  |  | 1081|  6.46k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1190:3): [True: 0, False: 6.46k]
  |  Branch (1190:3): [True: 6.46k, False: 0]
  ------------------
 1191|  6.46k|  *nread = 0;
 1192|       |
 1193|  6.46k|  if(!data->req.reader_stack) {
  ------------------
  |  Branch (1193:6): [True: 0, False: 6.46k]
  ------------------
 1194|      0|    result = Curl_creader_set_fread(data, data->state.infilesize);
 1195|      0|    if(result)
  ------------------
  |  Branch (1195:8): [True: 0, False: 0]
  ------------------
 1196|      0|      return result;
 1197|      0|    DEBUGASSERT(data->req.reader_stack);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1197:5): [True: 0, False: 0]
  |  Branch (1197:5): [True: 0, False: 0]
  ------------------
 1198|      0|  }
 1199|  6.46k|  if(!data->req.reader_started) {
  ------------------
  |  Branch (1199:6): [True: 1.12k, False: 5.34k]
  ------------------
 1200|  1.12k|    Curl_rlimit_start(&data->progress.ul.rlimit, Curl_pgrs_now(data), -1);
 1201|  1.12k|    data->req.reader_started = TRUE;
  ------------------
  |  | 1055|  1.12k|#define TRUE true
  ------------------
 1202|  1.12k|  }
 1203|       |
 1204|  6.46k|  if(Curl_rlimit_active(&data->progress.ul.rlimit)) {
  ------------------
  |  Branch (1204:6): [True: 0, False: 6.46k]
  ------------------
 1205|      0|    curl_off_t ul_avail = Curl_rlimit_avail(&data->progress.ul.rlimit,
 1206|      0|                                            Curl_pgrs_now(data));
 1207|      0|    if(ul_avail <= 0) {
  ------------------
  |  Branch (1207:8): [True: 0, False: 0]
  ------------------
 1208|      0|      result = CURLE_OK;
 1209|      0|      *eos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1210|      0|      goto out;
 1211|      0|    }
 1212|      0|    if(ul_avail < (curl_off_t)blen)
  ------------------
  |  Branch (1212:8): [True: 0, False: 0]
  ------------------
 1213|      0|      blen = (size_t)ul_avail;
 1214|      0|  }
 1215|  6.46k|  result = Curl_creader_read(data, data->req.reader_stack, buf, blen,
 1216|  6.46k|                             nread, eos);
 1217|       |
 1218|  6.46k|out:
 1219|  6.46k|  CURL_TRC_READ(data, "client_read(len=%zu) -> %d, nread=%zu, eos=%d",
  ------------------
  |  |  163|  6.46k|  do {                                                    \
  |  |  164|  6.46k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|  6.46k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  12.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 6.46k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 6.46k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  12.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.46k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|  6.46k|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|  6.46k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 6.46k]
  |  |  ------------------
  ------------------
 1220|  6.46k|                blen, result, *nread, *eos);
 1221|  6.46k|  return result;
 1222|  6.46k|}
Curl_creader_needs_rewind:
 1225|  3.24k|{
 1226|  3.24k|  struct Curl_creader *reader = data->req.reader_stack;
 1227|  6.42k|  while(reader) {
  ------------------
  |  Branch (1227:9): [True: 3.30k, False: 3.11k]
  ------------------
 1228|  3.30k|    if(reader->crt->needs_rewind(data, reader)) {
  ------------------
  |  Branch (1228:8): [True: 131, False: 3.17k]
  ------------------
 1229|    131|      CURL_TRC_READ(data, "client reader needs rewind before next request");
  ------------------
  |  |  163|    131|  do {                                                    \
  |  |  164|    131|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|    131|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    262|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 131, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 131]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    262|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    131|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    131|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    131|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 131]
  |  |  ------------------
  ------------------
 1230|    131|      return TRUE;
  ------------------
  |  | 1055|    131|#define TRUE true
  ------------------
 1231|    131|    }
 1232|  3.17k|    reader = reader->next;
 1233|  3.17k|  }
 1234|  3.11k|  return FALSE;
  ------------------
  |  | 1058|  3.11k|#define FALSE false
  ------------------
 1235|  3.24k|}
Curl_creader_set_null:
 1275|  8.54k|{
 1276|  8.54k|  struct Curl_creader *r;
 1277|  8.54k|  CURLcode result;
 1278|       |
 1279|  8.54k|  result = Curl_creader_create(&r, data, &cr_null, CURL_CR_CLIENT);
 1280|  8.54k|  if(result)
  ------------------
  |  Branch (1280:6): [True: 0, False: 8.54k]
  ------------------
 1281|      0|    return result;
 1282|       |
 1283|  8.54k|  cl_reset_reader(data);
 1284|  8.54k|  return do_init_reader_stack(data, r);
 1285|  8.54k|}
Curl_creader_set_buf:
 1390|    213|{
 1391|    213|  CURLcode result;
 1392|    213|  struct Curl_creader *r;
 1393|    213|  struct cr_buf_ctx *ctx;
 1394|       |
 1395|    213|  result = Curl_creader_create(&r, data, &cr_buf, CURL_CR_CLIENT);
 1396|    213|  if(result)
  ------------------
  |  Branch (1396:6): [True: 0, False: 213]
  ------------------
 1397|      0|    goto out;
 1398|    213|  ctx = r->ctx;
 1399|    213|  ctx->buf = buf;
 1400|    213|  ctx->blen = blen;
 1401|    213|  ctx->index = 0;
 1402|       |
 1403|    213|  cl_reset_reader(data);
 1404|    213|  result = do_init_reader_stack(data, r);
 1405|    213|out:
 1406|    213|  CURL_TRC_READ(data, "add buf reader, len=%zu -> %d", blen, result);
  ------------------
  |  |  163|    213|  do {                                                    \
  |  |  164|    213|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|    213|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    426|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 213, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 213]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    426|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    213|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    213|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    213|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 213]
  |  |  ------------------
  ------------------
 1407|    213|  return result;
 1408|    213|}
Curl_creader_total_length:
 1411|  31.9k|{
 1412|  31.9k|  struct Curl_creader *r = data->req.reader_stack;
 1413|  31.9k|  return r ? r->crt->total_length(data, r) : -1;
  ------------------
  |  Branch (1413:10): [True: 31.9k, False: 0]
  ------------------
 1414|  31.9k|}
Curl_creader_client_length:
 1417|    799|{
 1418|    799|  struct Curl_creader *r = data->req.reader_stack;
 1419|    946|  while(r && r->phase != CURL_CR_CLIENT)
  ------------------
  |  Branch (1419:9): [True: 946, False: 0]
  |  Branch (1419:14): [True: 147, False: 799]
  ------------------
 1420|    147|    r = r->next;
 1421|    799|  return r ? r->crt->total_length(data, r) : -1;
  ------------------
  |  Branch (1421:10): [True: 799, False: 0]
  ------------------
 1422|    799|}
Curl_creader_done:
 1460|  9.20k|{
 1461|  9.20k|  struct Curl_creader *reader = data->req.reader_stack;
 1462|  18.7k|  while(reader) {
  ------------------
  |  Branch (1462:9): [True: 9.56k, False: 9.20k]
  ------------------
 1463|  9.56k|    reader->crt->done(data, reader, premature);
 1464|  9.56k|    reader = reader->next;
 1465|  9.56k|  }
 1466|  9.20k|}
Curl_creader_get_by_type:
 1470|  14.2k|{
 1471|  14.2k|  struct Curl_creader *r;
 1472|  29.2k|  for(r = data->req.reader_stack; r; r = r->next) {
  ------------------
  |  Branch (1472:35): [True: 23.2k, False: 5.99k]
  ------------------
 1473|  23.2k|    if(r->crt == crt)
  ------------------
  |  Branch (1473:8): [True: 8.28k, False: 15.0k]
  ------------------
 1474|  8.28k|      return r;
 1475|  23.2k|  }
 1476|  5.99k|  return NULL;
 1477|  14.2k|}
sendf.c:cl_reset_reader:
   59|  41.1k|{
   60|  41.1k|  struct Curl_creader *reader = data->req.reader_stack;
   61|  41.1k|  data->req.reader_started = FALSE;
  ------------------
  |  | 1058|  41.1k|#define FALSE false
  ------------------
   62|  51.3k|  while(reader) {
  ------------------
  |  Branch (62:9): [True: 10.1k, False: 41.1k]
  ------------------
   63|  10.1k|    data->req.reader_stack = reader->next;
   64|  10.1k|    reader->crt->do_close(data, reader);
   65|  10.1k|    curlx_free(reader);
  ------------------
  |  | 1483|  10.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   66|  10.1k|    reader = data->req.reader_stack;
   67|  10.1k|  }
   68|  41.1k|}
sendf.c:cl_reset_writer:
   48|  31.5k|{
   49|  31.5k|  struct Curl_cwriter *writer = data->req.writer_stack;
   50|  84.7k|  while(writer) {
  ------------------
  |  Branch (50:9): [True: 53.2k, False: 31.5k]
  ------------------
   51|  53.2k|    data->req.writer_stack = writer->next;
   52|  53.2k|    writer->cwt->do_close(data, writer);
   53|  53.2k|    curlx_free(writer);
  ------------------
  |  | 1483|  53.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   54|  53.2k|    writer = data->req.writer_stack;
   55|  53.2k|  }
   56|  31.5k|}
sendf.c:do_init_writer_stack:
  326|  10.3k|{
  327|  10.3k|  struct Curl_cwriter *writer;
  328|  10.3k|  CURLcode result;
  329|       |
  330|  10.3k|  DEBUGASSERT(!data->req.writer_stack);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (330:3): [True: 0, False: 10.3k]
  |  Branch (330:3): [True: 10.3k, False: 0]
  ------------------
  331|  10.3k|  result = Curl_cwriter_create(&data->req.writer_stack,
  332|  10.3k|                               data, &Curl_cwt_out, CURL_CW_CLIENT);
  333|  10.3k|  if(result)
  ------------------
  |  Branch (333:6): [True: 0, False: 10.3k]
  ------------------
  334|      0|    return result;
  335|       |
  336|       |  /* This places the "pause" writer behind the "download" writer that
  337|       |   * is added below. Meaning the "download" can do checks on content length
  338|       |   * and other things *before* write outs are buffered for paused transfers. */
  339|  10.3k|  result = Curl_cwriter_create(&writer, data, &Curl_cwt_pause,
  340|  10.3k|                               CURL_CW_PROTOCOL);
  341|  10.3k|  if(!result) {
  ------------------
  |  Branch (341:6): [True: 10.3k, False: 0]
  ------------------
  342|  10.3k|    result = Curl_cwriter_add(data, writer);
  343|  10.3k|    if(result)
  ------------------
  |  Branch (343:8): [True: 0, False: 10.3k]
  ------------------
  344|      0|      Curl_cwriter_free(data, writer);
  345|  10.3k|  }
  346|  10.3k|  if(result)
  ------------------
  |  Branch (346:6): [True: 0, False: 10.3k]
  ------------------
  347|      0|    return result;
  348|       |
  349|  10.3k|  result = Curl_cwriter_create(&writer, data, &cw_download, CURL_CW_PROTOCOL);
  350|  10.3k|  if(!result) {
  ------------------
  |  Branch (350:6): [True: 10.3k, False: 0]
  ------------------
  351|  10.3k|    result = Curl_cwriter_add(data, writer);
  352|  10.3k|    if(result)
  ------------------
  |  Branch (352:8): [True: 0, False: 10.3k]
  ------------------
  353|      0|      Curl_cwriter_free(data, writer);
  354|  10.3k|  }
  355|  10.3k|  if(result)
  ------------------
  |  Branch (355:6): [True: 0, False: 10.3k]
  ------------------
  356|      0|    return result;
  357|       |
  358|  10.3k|  result = Curl_cwriter_create(&writer, data, &cw_raw, CURL_CW_RAW);
  359|  10.3k|  if(!result) {
  ------------------
  |  Branch (359:6): [True: 10.3k, False: 0]
  ------------------
  360|  10.3k|    result = Curl_cwriter_add(data, writer);
  361|  10.3k|    if(result)
  ------------------
  |  Branch (361:8): [True: 0, False: 10.3k]
  ------------------
  362|      0|      Curl_cwriter_free(data, writer);
  363|  10.3k|  }
  364|  10.3k|  if(result)
  ------------------
  |  Branch (364:6): [True: 0, False: 10.3k]
  ------------------
  365|      0|    return result;
  366|       |
  367|  10.3k|  return result;
  368|  10.3k|}
sendf.c:cw_download_write:
  179|  40.1k|{
  180|  40.1k|  struct cw_download_ctx *ctx = writer->ctx;
  181|  40.1k|  CURLcode result;
  182|  40.1k|  size_t nwrite, excess_len = 0;
  183|  40.1k|  bool is_connect = !!(type & CLIENTWRITE_CONNECT);
  ------------------
  |  |   46|  40.1k|#define CLIENTWRITE_CONNECT (1 << 4) /* a CONNECT related HEADER */
  ------------------
  184|       |
  185|  40.1k|  if(!ctx->started_response &&
  ------------------
  |  Branch (185:6): [True: 6.18k, False: 33.9k]
  ------------------
  186|  6.18k|     !(type & (CLIENTWRITE_INFO | CLIENTWRITE_CONNECT))) {
  ------------------
  |  |   43|  6.18k|#define CLIENTWRITE_INFO    (1 << 1) /* meta information, not a HEADER */
  ------------------
                   !(type & (CLIENTWRITE_INFO | CLIENTWRITE_CONNECT))) {
  ------------------
  |  |   46|  6.18k|#define CLIENTWRITE_CONNECT (1 << 4) /* a CONNECT related HEADER */
  ------------------
  |  Branch (186:6): [True: 6.18k, False: 0]
  ------------------
  187|  6.18k|    Curl_pgrsTime(data, TIMER_STARTTRANSFER);
  188|  6.18k|    ctx->started_response = TRUE;
  ------------------
  |  | 1055|  6.18k|#define TRUE true
  ------------------
  189|  6.18k|  }
  190|       |
  191|  40.1k|  if(!(type & CLIENTWRITE_BODY)) {
  ------------------
  |  |   42|  40.1k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (191:6): [True: 36.3k, False: 3.82k]
  ------------------
  192|  36.3k|    if(is_connect && data->set.suppress_connect_headers)
  ------------------
  |  Branch (192:8): [True: 0, False: 36.3k]
  |  Branch (192:22): [True: 0, False: 0]
  ------------------
  193|      0|      return CURLE_OK;
  194|  36.3k|    result = Curl_cwriter_write(data, writer->next, type, buf, nbytes);
  195|  36.3k|    CURL_TRC_WRITE(data, "download_write header(type=%x, blen=%zu) -> %d",
  ------------------
  |  |  158|  36.3k|  do {                                                     \
  |  |  159|  36.3k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  36.3k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  72.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 36.3k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 36.3k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  72.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  36.3k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  36.3k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  36.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 36.3k]
  |  |  ------------------
  ------------------
  196|  36.3k|                   type, nbytes, result);
  197|  36.3k|    return result;
  198|  36.3k|  }
  199|       |
  200|  3.82k|  if(!ctx->started_body &&
  ------------------
  |  Branch (200:6): [True: 1.47k, False: 2.34k]
  ------------------
  201|  1.47k|     !(type & (CLIENTWRITE_INFO | CLIENTWRITE_CONNECT))) {
  ------------------
  |  |   43|  1.47k|#define CLIENTWRITE_INFO    (1 << 1) /* meta information, not a HEADER */
  ------------------
                   !(type & (CLIENTWRITE_INFO | CLIENTWRITE_CONNECT))) {
  ------------------
  |  |   46|  1.47k|#define CLIENTWRITE_CONNECT (1 << 4) /* a CONNECT related HEADER */
  ------------------
  |  Branch (201:6): [True: 1.47k, False: 0]
  ------------------
  202|  1.47k|    Curl_rlimit_start(&data->progress.dl.rlimit, Curl_pgrs_now(data),
  203|  1.47k|                      data->req.size);
  204|  1.47k|    ctx->started_body = TRUE;
  ------------------
  |  | 1055|  1.47k|#define TRUE true
  ------------------
  205|  1.47k|  }
  206|       |
  207|       |  /* Here, we deal with REAL BODY bytes. All filtering and transfer
  208|       |   * encodings have been applied and only the true content, e.g. BODY,
  209|       |   * bytes are passed here.
  210|       |   * This allows us to check sizes, update stats, etc. independent
  211|       |   * from the protocol in play. */
  212|       |
  213|  3.82k|  if(data->req.no_body && nbytes > 0) {
  ------------------
  |  Branch (213:6): [True: 14, False: 3.80k]
  |  Branch (213:27): [True: 7, False: 7]
  ------------------
  214|       |    /* BODY arrives although we want none, bail out */
  215|      7|    streamclose(data->conn, "ignoring body");
  ------------------
  |  |  102|      7|#define streamclose(x, y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
  |  |  ------------------
  |  |  |  |   92|      7|#define CONNCTRL_STREAM     2
  |  |  ------------------
  ------------------
  216|      7|    CURL_TRC_WRITE(data, "download_write body(type=%x, blen=%zu), "
  ------------------
  |  |  158|      7|  do {                                                     \
  |  |  159|      7|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|      7|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     14|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 7, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     14|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      7|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      7|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      7|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 7]
  |  |  ------------------
  ------------------
  217|      7|                   "did not want a BODY", type, nbytes);
  218|      7|    data->req.download_done = TRUE;
  ------------------
  |  | 1055|      7|#define TRUE true
  ------------------
  219|      7|    if(data->info.header_size)
  ------------------
  |  Branch (219:8): [True: 6, False: 1]
  ------------------
  220|       |      /* if headers have been received, this is fine */
  221|      6|      return CURLE_OK;
  222|      1|    return CURLE_WEIRD_SERVER_REPLY;
  223|      7|  }
  224|       |
  225|       |  /* Determine if we see any bytes in excess to what is allowed.
  226|       |   * We write the allowed bytes and handle excess further below.
  227|       |   * This gives deterministic BODY writes on varying buffer receive
  228|       |   * lengths. */
  229|  3.81k|  nwrite = nbytes;
  230|  3.81k|  if(data->req.maxdownload != -1) {
  ------------------
  |  Branch (230:6): [True: 821, False: 2.99k]
  ------------------
  231|    821|    size_t wmax = get_max_body_write_len(data, data->req.maxdownload);
  232|    821|    if(nwrite > wmax) {
  ------------------
  |  Branch (232:8): [True: 422, False: 399]
  ------------------
  233|    422|      excess_len = nbytes - wmax;
  234|    422|      nwrite = wmax;
  235|    422|    }
  236|       |
  237|    821|    if(nwrite == wmax) {
  ------------------
  |  Branch (237:8): [True: 514, False: 307]
  ------------------
  238|    514|      data->req.download_done = TRUE;
  ------------------
  |  | 1055|    514|#define TRUE true
  ------------------
  239|    514|    }
  240|       |
  241|    821|    if((type & CLIENTWRITE_EOS) && !data->req.no_body &&
  ------------------
  |  |   49|    821|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (241:8): [True: 95, False: 726]
  |  Branch (241:36): [True: 90, False: 5]
  ------------------
  242|     90|       (data->req.size > data->req.bytecount)) {
  ------------------
  |  Branch (242:8): [True: 68, False: 22]
  ------------------
  243|     68|      failf(data, "end of response with %" FMT_OFF_T " bytes missing",
  ------------------
  |  |   62|     68|#define failf Curl_failf
  ------------------
  244|     68|            data->req.size - data->req.bytecount);
  245|     68|      return CURLE_PARTIAL_FILE;
  246|     68|    }
  247|    821|  }
  248|       |
  249|       |  /* Error on too large filesize is handled below, after writing
  250|       |   * the permitted bytes */
  251|  3.74k|  if(data->set.max_filesize && !data->req.ignorebody) {
  ------------------
  |  Branch (251:6): [True: 0, False: 3.74k]
  |  Branch (251:32): [True: 0, False: 0]
  ------------------
  252|      0|    size_t wmax = get_max_body_write_len(data, data->set.max_filesize);
  253|      0|    if(nwrite > wmax) {
  ------------------
  |  Branch (253:8): [True: 0, False: 0]
  ------------------
  254|      0|      nwrite = wmax;
  255|      0|    }
  256|      0|  }
  257|       |
  258|  3.74k|  if(!data->req.ignorebody && (nwrite || (type & CLIENTWRITE_EOS))) {
  ------------------
  |  |   49|    587|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (258:6): [True: 3.29k, False: 455]
  |  Branch (258:32): [True: 2.70k, False: 587]
  |  Branch (258:42): [True: 577, False: 10]
  ------------------
  259|  3.28k|    result = Curl_cwriter_write(data, writer->next, type, buf, nwrite);
  260|  3.28k|    CURL_TRC_WRITE(data, "download_write body(type=%x, blen=%zu) -> %d",
  ------------------
  |  |  158|  3.28k|  do {                                                     \
  |  |  159|  3.28k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  3.28k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  6.56k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 3.28k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 3.28k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  6.56k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.28k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  3.28k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  3.28k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 3.28k]
  |  |  ------------------
  ------------------
  261|  3.28k|                   type, nbytes, result);
  262|  3.28k|    if(result)
  ------------------
  |  Branch (262:8): [True: 188, False: 3.09k]
  ------------------
  263|    188|      return result;
  264|  3.28k|  }
  265|       |
  266|       |  /* Update stats, write and report progress */
  267|  3.55k|  if(nwrite) {
  ------------------
  |  Branch (267:6): [True: 2.56k, False: 995]
  ------------------
  268|  2.56k|    data->req.bytecount += nwrite;
  269|  2.56k|    Curl_pgrs_download_inc(data, nwrite);
  270|  2.56k|  }
  271|       |
  272|  3.55k|  if(excess_len) {
  ------------------
  |  Branch (272:6): [True: 422, False: 3.13k]
  ------------------
  273|    422|    if(!data->req.ignorebody) {
  ------------------
  |  Branch (273:8): [True: 12, False: 410]
  ------------------
  274|     12|      infof(data,
  ------------------
  |  |  143|     12|  do {                               \
  |  |  144|     12|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     12|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 12, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 12]
  |  |  |  |  ------------------
  |  |  |  |  320|     12|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     12|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     12|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 12]
  |  |  ------------------
  ------------------
  275|     12|            "Excess found writing body:"
  276|     12|            " excess = %zu"
  277|     12|            ", size = %" FMT_OFF_T
  278|     12|            ", maxdownload = %" FMT_OFF_T
  279|     12|            ", bytecount = %" FMT_OFF_T,
  280|     12|            excess_len, data->req.size, data->req.maxdownload,
  281|     12|            data->req.bytecount);
  282|     12|      connclose(data->conn, "excess found in a read");
  ------------------
  |  |  103|     12|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|     12|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
  283|     12|    }
  284|    422|  }
  285|  3.13k|  else if((nwrite < nbytes) && !data->req.ignorebody) {
  ------------------
  |  Branch (285:11): [True: 0, False: 3.13k]
  |  Branch (285:32): [True: 0, False: 0]
  ------------------
  286|      0|    failf(data, "Exceeded the maximum allowed file size "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  287|      0|          "(%" FMT_OFF_T ") with %" FMT_OFF_T " bytes",
  288|      0|          data->set.max_filesize, data->req.bytecount);
  289|      0|    return CURLE_FILESIZE_EXCEEDED;
  290|      0|  }
  291|       |
  292|  3.55k|  return CURLE_OK;
  293|  3.55k|}
sendf.c:get_max_body_write_len:
  160|    821|{
  161|    821|  if(limit != -1) {
  ------------------
  |  Branch (161:6): [True: 821, False: 0]
  ------------------
  162|       |    /* How much more are we allowed to write? */
  163|    821|    return curlx_sotouz_range(limit - data->req.bytecount, 0, SIZE_MAX);
  164|    821|  }
  165|      0|  return SIZE_MAX;
  166|    821|}
sendf.c:cw_raw_write:
  309|  41.1k|{
  310|  41.1k|  if(type & CLIENTWRITE_BODY && data->set.verbose && !data->req.ignorebody) {
  ------------------
  |  |   42|  82.2k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (310:6): [True: 4.20k, False: 36.9k]
  |  Branch (310:33): [True: 0, False: 4.20k]
  |  Branch (310:54): [True: 0, False: 0]
  ------------------
  311|      0|    Curl_debug(data, CURLINFO_DATA_IN, buf, nbytes);
  312|      0|  }
  313|  41.1k|  return Curl_cwriter_write(data, writer->next, type, buf, nbytes);
  314|  41.1k|}
sendf.c:cr_in_init:
  630|    915|{
  631|    915|  struct cr_in_ctx *ctx = reader->ctx;
  632|    915|  ctx->read_cb = data->state.fread_func;
  633|    915|  ctx->cb_user_data = data->state.in;
  634|    915|  ctx->total_len = -1;
  635|    915|  ctx->read_len = 0;
  636|    915|  return CURLE_OK;
  637|    915|}
sendf.c:cr_in_read:
  644|  1.21k|{
  645|  1.21k|  struct cr_in_ctx *ctx = reader->ctx;
  646|  1.21k|  CURLcode result = CURLE_OK;
  647|  1.21k|  size_t nread;
  648|       |
  649|  1.21k|  ctx->is_paused = FALSE;
  ------------------
  |  | 1058|  1.21k|#define FALSE false
  ------------------
  650|       |
  651|       |  /* Once we have errored, we will return the same error forever */
  652|  1.21k|  if(ctx->errored) {
  ------------------
  |  Branch (652:6): [True: 0, False: 1.21k]
  ------------------
  653|      0|    *pnread = 0;
  654|      0|    *peos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  655|      0|    return ctx->error_result;
  656|      0|  }
  657|  1.21k|  if(ctx->seen_eos) {
  ------------------
  |  Branch (657:6): [True: 0, False: 1.21k]
  ------------------
  658|      0|    *pnread = 0;
  659|      0|    *peos = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  660|      0|    return CURLE_OK;
  661|      0|  }
  662|       |  /* respect length limitations */
  663|  1.21k|  if(ctx->total_len >= 0) {
  ------------------
  |  Branch (663:6): [True: 199, False: 1.01k]
  ------------------
  664|    199|    blen = curlx_sotouz_range(ctx->total_len - ctx->read_len, 0, blen);
  665|    199|  }
  666|  1.21k|  nread = 0;
  667|  1.21k|  if(ctx->read_cb && blen) {
  ------------------
  |  Branch (667:6): [True: 1.21k, False: 0]
  |  Branch (667:22): [True: 1.21k, False: 0]
  ------------------
  668|  1.21k|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|  1.21k|#define TRUE true
  ------------------
  669|  1.21k|    nread = ctx->read_cb(buf, 1, blen, ctx->cb_user_data);
  670|  1.21k|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|  1.21k|#define FALSE false
  ------------------
  671|  1.21k|    ctx->has_used_cb = TRUE;
  ------------------
  |  | 1055|  1.21k|#define TRUE true
  ------------------
  672|  1.21k|  }
  673|       |
  674|  1.21k|  switch(nread) {
  675|    499|  case 0:
  ------------------
  |  Branch (675:3): [True: 499, False: 715]
  ------------------
  676|    499|    if((ctx->total_len >= 0) && (ctx->read_len < ctx->total_len)) {
  ------------------
  |  Branch (676:8): [True: 58, False: 441]
  |  Branch (676:33): [True: 58, False: 0]
  ------------------
  677|     58|      failf(data, "client read function EOF fail, "
  ------------------
  |  |   62|     58|#define failf Curl_failf
  ------------------
  678|     58|            "only %" FMT_OFF_T "/%" FMT_OFF_T " of needed bytes read",
  679|     58|            ctx->read_len, ctx->total_len);
  680|     58|      result = CURLE_READ_ERROR;
  681|     58|      break;
  682|     58|    }
  683|    441|    *pnread = 0;
  684|    441|    *peos = TRUE;
  ------------------
  |  | 1055|    441|#define TRUE true
  ------------------
  685|    441|    ctx->seen_eos = TRUE;
  ------------------
  |  | 1055|    441|#define TRUE true
  ------------------
  686|    441|    break;
  687|       |
  688|      0|  case CURL_READFUNC_ABORT:
  ------------------
  |  |  390|      0|#define CURL_READFUNC_ABORT 0x10000000
  ------------------
  |  Branch (688:3): [True: 0, False: 1.21k]
  ------------------
  689|      0|    failf(data, "operation aborted by callback");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  690|      0|    *pnread = 0;
  691|      0|    *peos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  692|      0|    ctx->errored = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  693|      0|    ctx->error_result = CURLE_ABORTED_BY_CALLBACK;
  694|      0|    result = CURLE_ABORTED_BY_CALLBACK;
  695|      0|    break;
  696|       |
  697|      0|  case CURL_READFUNC_PAUSE:
  ------------------
  |  |  393|      0|#define CURL_READFUNC_PAUSE 0x10000001
  ------------------
  |  Branch (697:3): [True: 0, False: 1.21k]
  ------------------
  698|      0|    if(data->conn->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  215|      0|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (698:8): [True: 0, False: 0]
  ------------------
  699|       |      /* protocols that work without network cannot be paused. This is
  700|       |         actually only file:// now, and it cannot pause since the transfer
  701|       |         is not done using the "normal" procedure. */
  702|      0|      failf(data, "Read callback asked for PAUSE when not supported");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  703|      0|      result = CURLE_READ_ERROR;
  704|      0|      break;
  705|      0|    }
  706|       |    /* CURL_READFUNC_PAUSE pauses read callbacks that feed socket writes */
  707|      0|    CURL_TRC_READ(data, "cr_in_read, callback returned CURL_READFUNC_PAUSE");
  ------------------
  |  |  163|      0|  do {                                                    \
  |  |  164|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  708|      0|    ctx->is_paused = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  709|      0|    *pnread = 0;
  710|      0|    *peos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  711|      0|    result = Curl_xfer_pause_send(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  712|      0|    break; /* nothing was read */
  713|       |
  714|    715|  default:
  ------------------
  |  Branch (714:3): [True: 715, False: 499]
  ------------------
  715|    715|    if(nread > blen) {
  ------------------
  |  Branch (715:8): [True: 0, False: 715]
  ------------------
  716|       |      /* the read function returned a too large value */
  717|      0|      failf(data, "read function returned funny value");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  718|      0|      *pnread = 0;
  719|      0|      *peos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  720|      0|      ctx->errored = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  721|      0|      ctx->error_result = CURLE_READ_ERROR;
  722|      0|      result = CURLE_READ_ERROR;
  723|      0|      break;
  724|      0|    }
  725|    715|    ctx->read_len += nread;
  726|    715|    if(ctx->total_len >= 0)
  ------------------
  |  Branch (726:8): [True: 141, False: 574]
  ------------------
  727|    141|      ctx->seen_eos = (ctx->read_len >= ctx->total_len);
  728|    715|    *pnread = nread;
  729|    715|    *peos = (bool)ctx->seen_eos;
  730|    715|    break;
  731|  1.21k|  }
  732|  1.21k|  CURL_TRC_READ(data, "cr_in_read(len=%zu, total=%" FMT_OFF_T
  ------------------
  |  |  163|  1.21k|  do {                                                    \
  |  |  164|  1.21k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|  1.21k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  2.42k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.21k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.21k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  2.42k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  1.21k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|  1.21k|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|  1.21k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 1.21k]
  |  |  ------------------
  ------------------
  733|  1.21k|                ", read=%" FMT_OFF_T ") -> %d, nread=%zu, eos=%d",
  734|  1.21k|                blen, ctx->total_len, ctx->read_len, result,
  735|  1.21k|                *pnread, *peos);
  736|  1.21k|  return result;
  737|  1.21k|}
sendf.c:cr_in_needs_rewind:
  741|     60|{
  742|     60|  struct cr_in_ctx *ctx = reader->ctx;
  743|     60|  (void)data;
  744|     60|  return (bool)ctx->has_used_cb;
  745|     60|}
sendf.c:cr_in_total_length:
  749|  3.35k|{
  750|  3.35k|  struct cr_in_ctx *ctx = reader->ctx;
  751|  3.35k|  (void)data;
  752|  3.35k|  return ctx->total_len;
  753|  3.35k|}
sendf.c:cr_in_cntrl:
  882|     14|{
  883|     14|  struct cr_in_ctx *ctx = reader->ctx;
  884|       |
  885|     14|  switch(opcode) {
  886|     14|  case CURL_CRCNTRL_REWIND:
  ------------------
  |  Branch (886:3): [True: 14, False: 0]
  ------------------
  887|     14|    return cr_in_rewind(data, reader);
  888|      0|  case CURL_CRCNTRL_UNPAUSE:
  ------------------
  |  Branch (888:3): [True: 0, False: 14]
  ------------------
  889|      0|    ctx->is_paused = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  890|      0|    break;
  891|      0|  case CURL_CRCNTRL_CLEAR_EOS:
  ------------------
  |  Branch (891:3): [True: 0, False: 14]
  ------------------
  892|      0|    ctx->seen_eos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  893|      0|    break;
  894|      0|  default:
  ------------------
  |  Branch (894:3): [True: 0, False: 14]
  ------------------
  895|      0|    break;
  896|     14|  }
  897|      0|  return CURLE_OK;
  898|     14|}
sendf.c:cr_in_rewind:
  820|     14|{
  821|     14|  struct cr_in_ctx *ctx = reader->ctx;
  822|       |
  823|       |  /* If we never invoked the callback, there is noting to rewind */
  824|     14|  if(!ctx->has_used_cb)
  ------------------
  |  Branch (824:6): [True: 0, False: 14]
  ------------------
  825|      0|    return CURLE_OK;
  826|       |
  827|     14|  if(data->set.seek_func) {
  ------------------
  |  Branch (827:6): [True: 0, False: 14]
  ------------------
  828|      0|    int err;
  829|       |
  830|      0|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  831|      0|    err = (data->set.seek_func)(data->set.seek_client, 0, SEEK_SET);
  832|      0|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  833|      0|    CURL_TRC_READ(data, "cr_in, rewind via set.seek_func -> %d", err);
  ------------------
  |  |  163|      0|  do {                                                    \
  |  |  164|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  834|      0|    if(err) {
  ------------------
  |  Branch (834:8): [True: 0, False: 0]
  ------------------
  835|      0|      failf(data, "seek callback returned error %d", err);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  836|      0|      return CURLE_SEND_FAIL_REWIND;
  837|      0|    }
  838|      0|  }
  839|     14|  else if(data->set.ioctl_func) {
  ------------------
  |  Branch (839:11): [True: 0, False: 14]
  ------------------
  840|      0|    curlioerr err;
  841|       |
  842|      0|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  843|      0|    err = (data->set.ioctl_func)(data, CURLIOCMD_RESTARTREAD,
  844|      0|                                 data->set.ioctl_client);
  845|      0|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  846|      0|    CURL_TRC_READ(data, "cr_in, rewind via set.ioctl_func -> %d", (int)err);
  ------------------
  |  |  163|      0|  do {                                                    \
  |  |  164|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  847|      0|    if(err) {
  ------------------
  |  Branch (847:8): [True: 0, False: 0]
  ------------------
  848|      0|      failf(data, "ioctl callback returned error %d", (int)err);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  849|      0|      return CURLE_SEND_FAIL_REWIND;
  850|      0|    }
  851|      0|  }
  852|     14|  else {
  853|       |    /* If no CURLOPT_READFUNCTION is used, we know that we operate on a
  854|       |       given FILE * stream and we can actually attempt to rewind that
  855|       |       ourselves with fseek() */
  856|     14|#if defined(__clang__) && __clang_major__ >= 16
  857|     14|#pragma clang diagnostic push
  858|     14|#pragma clang diagnostic ignored "-Wcast-function-type-strict"
  859|     14|#endif
  860|     14|    if(data->state.fread_func == (curl_read_callback)fread) {
  ------------------
  |  Branch (860:8): [True: 0, False: 14]
  ------------------
  861|      0|#if defined(__clang__) && __clang_major__ >= 16
  862|      0|#pragma clang diagnostic pop
  863|      0|#endif
  864|      0|      int err = fseek(data->state.in, 0, SEEK_SET);
  865|      0|      CURL_TRC_READ(data, "cr_in, rewind via fseek -> %d(%d)",
  ------------------
  |  |  163|      0|  do {                                                    \
  |  |  164|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  866|      0|                    (int)err, (int)errno);
  867|      0|      if(err != -1)
  ------------------
  |  Branch (867:10): [True: 0, False: 0]
  ------------------
  868|       |        /* successful rewind */
  869|      0|        return CURLE_OK;
  870|      0|    }
  871|       |
  872|       |    /* no callback set or failure above, makes us fail at once */
  873|     14|    failf(data, "necessary data rewind was not possible");
  ------------------
  |  |   62|     14|#define failf Curl_failf
  ------------------
  874|     14|    return CURLE_SEND_FAIL_REWIND;
  875|     14|  }
  876|      0|  return CURLE_OK;
  877|     14|}
sendf.c:do_init_reader_stack:
 1100|  9.67k|{
 1101|  9.67k|  CURLcode result = CURLE_OK;
 1102|  9.67k|  curl_off_t clen;
 1103|       |
 1104|  9.67k|  DEBUGASSERT(r);
  ------------------
  |  | 1081|  9.67k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1104:3): [True: 0, False: 9.67k]
  |  Branch (1104:3): [True: 9.67k, False: 0]
  ------------------
 1105|  9.67k|  DEBUGASSERT(r->crt);
  ------------------
  |  | 1081|  9.67k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1105:3): [True: 0, False: 9.67k]
  |  Branch (1105:3): [True: 9.67k, False: 0]
  ------------------
 1106|  9.67k|  DEBUGASSERT(r->phase == CURL_CR_CLIENT);
  ------------------
  |  | 1081|  9.67k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1106:3): [True: 0, False: 9.67k]
  |  Branch (1106:3): [True: 9.67k, False: 0]
  ------------------
 1107|  9.67k|  DEBUGASSERT(!data->req.reader_stack);
  ------------------
  |  | 1081|  9.67k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1107:3): [True: 0, False: 9.67k]
  |  Branch (1107:3): [True: 9.67k, False: 0]
  ------------------
 1108|       |
 1109|  9.67k|  data->req.reader_stack = r;
 1110|  9.67k|  clen = r->crt->total_length(data, r);
 1111|       |  /* if we do not have 0 length init, and crlf conversion is wanted,
 1112|       |   * add the reader for it */
 1113|  9.67k|  if(clen && (data->set.crlf
  ------------------
  |  Branch (1113:6): [True: 1.12k, False: 8.54k]
  |  Branch (1113:15): [True: 0, False: 1.12k]
  ------------------
 1114|  1.12k|#ifdef CURL_PREFER_LF_LINEENDS
 1115|  1.12k|     || data->state.prefer_ascii
  ------------------
  |  Branch (1115:9): [True: 0, False: 1.12k]
  ------------------
 1116|  1.12k|#endif
 1117|  1.12k|    )) {
 1118|      0|    result = cr_lc_add(data);
 1119|      0|    if(result)
  ------------------
  |  Branch (1119:8): [True: 0, False: 0]
  ------------------
 1120|      0|      return result;
 1121|      0|  }
 1122|       |
 1123|  9.67k|  return result;
 1124|  9.67k|}
sendf.c:cr_null_total_length:
 1253|  37.6k|{
 1254|       |  /* this reader changes length depending on input */
 1255|  37.6k|  (void)data;
 1256|  37.6k|  (void)reader;
 1257|  37.6k|  return 0;
 1258|  37.6k|}
sendf.c:cr_buf_read:
 1298|    213|{
 1299|    213|  struct cr_buf_ctx *ctx = reader->ctx;
 1300|    213|  size_t nread = ctx->blen - ctx->index;
 1301|       |
 1302|    213|  if(!nread || !ctx->buf) {
  ------------------
  |  Branch (1302:6): [True: 0, False: 213]
  |  Branch (1302:16): [True: 0, False: 213]
  ------------------
 1303|      0|    *pnread = 0;
 1304|      0|    *peos = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1305|      0|  }
 1306|    213|  else {
 1307|    213|    if(nread > blen)
  ------------------
  |  Branch (1307:8): [True: 0, False: 213]
  ------------------
 1308|      0|      nread = blen;
 1309|    213|    memcpy(buf, ctx->buf + ctx->index, nread);
 1310|    213|    *pnread = nread;
 1311|    213|    ctx->index += nread;
 1312|    213|    *peos = (ctx->index == ctx->blen);
 1313|    213|  }
 1314|    213|  CURL_TRC_READ(data, "cr_buf_read(len=%zu) -> 0, nread=%zu, eos=%d",
  ------------------
  |  |  163|    213|  do {                                                    \
  |  |  164|    213|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|    213|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    426|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 213, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 213]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    426|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    213|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    213|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    213|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 213]
  |  |  ------------------
  ------------------
 1315|    213|                blen, *pnread, *peos);
 1316|    213|  return CURLE_OK;
 1317|    213|}
sendf.c:cr_buf_needs_rewind:
 1321|    120|{
 1322|    120|  struct cr_buf_ctx *ctx = reader->ctx;
 1323|    120|  (void)data;
 1324|    120|  return ctx->index > 0;
 1325|    120|}
sendf.c:cr_buf_total_length:
 1345|  1.11k|{
 1346|  1.11k|  struct cr_buf_ctx *ctx = reader->ctx;
 1347|  1.11k|  (void)data;
 1348|  1.11k|  return (curl_off_t)ctx->blen;
 1349|  1.11k|}
sendf.c:cr_buf_cntrl:
 1330|    124|{
 1331|    124|  struct cr_buf_ctx *ctx = reader->ctx;
 1332|    124|  (void)data;
 1333|    124|  switch(opcode) {
 1334|    124|  case CURL_CRCNTRL_REWIND:
  ------------------
  |  Branch (1334:3): [True: 124, False: 0]
  ------------------
 1335|    124|    ctx->index = 0;
 1336|    124|    break;
 1337|      0|  default:
  ------------------
  |  Branch (1337:3): [True: 0, False: 124]
  ------------------
 1338|      0|    break;
 1339|    124|  }
 1340|    124|  return CURLE_OK;
 1341|    124|}

Curl_setstropt:
   83|  75.8k|{
   84|       |  /* Release the previous storage at `charp' and replace by a dynamic storage
   85|       |     copy of `s'. Return CURLE_OK or CURLE_OUT_OF_MEMORY. */
   86|       |
   87|  75.8k|  curlx_safefree(*charp);
  ------------------
  |  | 1327|  75.8k|  do {                      \
  |  | 1328|  75.8k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  75.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  75.8k|    (ptr) = NULL;           \
  |  | 1330|  75.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 75.8k]
  |  |  ------------------
  ------------------
   88|       |
   89|  75.8k|  if(s) {
  ------------------
  |  Branch (89:6): [True: 75.8k, False: 0]
  ------------------
   90|  75.8k|    if(strlen(s) > CURL_MAX_INPUT_LENGTH)
  ------------------
  |  |   45|  75.8k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (90:8): [True: 0, False: 75.8k]
  ------------------
   91|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
   92|       |
   93|  75.8k|    *charp = curlx_strdup(s);
  ------------------
  |  | 1477|  75.8k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
   94|  75.8k|    if(!*charp)
  ------------------
  |  Branch (94:8): [True: 0, False: 75.8k]
  ------------------
   95|      0|      return CURLE_OUT_OF_MEMORY;
   96|  75.8k|  }
   97|       |
   98|  75.8k|  return CURLE_OK;
   99|  75.8k|}
Curl_setopt_SSLVERSION:
  317|  31.2k|{
  318|       |  /*
  319|       |   * Set explicit SSL version to try to connect with, as some SSL
  320|       |   * implementations are lame.
  321|       |   */
  322|  31.2k|  {
  323|  31.2k|    long version, version_max;
  324|  31.2k|    struct ssl_primary_config *primary = &data->set.ssl.primary;
  325|  31.2k|#ifndef CURL_DISABLE_PROXY
  326|  31.2k|    if(option != CURLOPT_SSLVERSION)
  ------------------
  |  Branch (326:8): [True: 15.6k, False: 15.6k]
  ------------------
  327|  15.6k|      primary = &data->set.proxy_ssl.primary;
  328|       |#else
  329|       |    if(option) {}
  330|       |#endif
  331|  31.2k|    version = C_SSLVERSION_VALUE(arg);
  ------------------
  |  |  194|  31.2k|#define C_SSLVERSION_VALUE(x)     ((x) & 0xffff)
  ------------------
  332|  31.2k|    version_max = (long)C_SSLVERSION_MAX_VALUE(arg);
  ------------------
  |  |  195|  31.2k|#define C_SSLVERSION_MAX_VALUE(x) ((unsigned long)(x) & 0xffff0000)
  ------------------
  333|       |
  334|  31.2k|    if(version < CURL_SSLVERSION_DEFAULT ||
  ------------------
  |  | 2368|  62.5k|#define CURL_SSLVERSION_DEFAULT 0L
  ------------------
  |  Branch (334:8): [True: 0, False: 31.2k]
  ------------------
  335|  31.2k|       version == CURL_SSLVERSION_SSLv2 ||
  ------------------
  |  | 2370|  62.5k|#define CURL_SSLVERSION_SSLv2   2L
  ------------------
  |  Branch (335:8): [True: 0, False: 31.2k]
  ------------------
  336|  31.2k|       version == CURL_SSLVERSION_SSLv3 ||
  ------------------
  |  | 2371|  62.5k|#define CURL_SSLVERSION_SSLv3   3L
  ------------------
  |  Branch (336:8): [True: 0, False: 31.2k]
  ------------------
  337|  31.2k|       version >= CURL_SSLVERSION_LAST ||
  ------------------
  |  | 2377|  62.5k|#define CURL_SSLVERSION_LAST    8L /* never use, keep last */
  ------------------
  |  Branch (337:8): [True: 0, False: 31.2k]
  ------------------
  338|  31.2k|       version_max < CURL_SSLVERSION_MAX_NONE ||
  ------------------
  |  | 2379|  62.5k|#define CURL_SSLVERSION_MAX_NONE 0L
  ------------------
  |  Branch (338:8): [True: 0, False: 31.2k]
  ------------------
  339|  31.2k|       version_max >= CURL_SSLVERSION_MAX_LAST)
  ------------------
  |  | 2387|  31.2k|#define CURL_SSLVERSION_MAX_LAST    (CURL_SSLVERSION_LAST    << 16)
  |  |  ------------------
  |  |  |  | 2377|  31.2k|#define CURL_SSLVERSION_LAST    8L /* never use, keep last */
  |  |  ------------------
  ------------------
  |  Branch (339:8): [True: 0, False: 31.2k]
  ------------------
  340|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  341|  31.2k|    if(version == CURL_SSLVERSION_DEFAULT)
  ------------------
  |  | 2368|  31.2k|#define CURL_SSLVERSION_DEFAULT 0L
  ------------------
  |  Branch (341:8): [True: 31.2k, False: 0]
  ------------------
  342|  31.2k|      version = CURL_SSLVERSION_TLSv1_2;
  ------------------
  |  | 2374|  31.2k|#define CURL_SSLVERSION_TLSv1_2 6L
  ------------------
  343|       |
  344|  31.2k|    primary->version = (unsigned char)version;
  345|  31.2k|    primary->version_max = (unsigned int)version_max;
  346|  31.2k|  }
  347|      0|  return CURLE_OK;
  348|  31.2k|}
Curl_vsetopt:
 2896|   207k|{
 2897|   207k|  if(option < CURLOPTTYPE_OBJECTPOINT)
  ------------------
  |  | 1114|   207k|#define CURLOPTTYPE_OBJECTPOINT   10000
  ------------------
  |  Branch (2897:6): [True: 62.2k, False: 145k]
  ------------------
 2898|  62.2k|    return setopt_long(data, option, va_arg(param, long));
 2899|   145k|  else if(option < CURLOPTTYPE_FUNCTIONPOINT) {
  ------------------
  |  | 1115|   145k|#define CURLOPTTYPE_FUNCTIONPOINT 20000
  ------------------
  |  Branch (2899:11): [True: 91.7k, False: 53.8k]
  ------------------
 2900|       |    /* unfortunately, different pointer types cannot be identified any other
 2901|       |       way than being listed explicitly */
 2902|  91.7k|    switch(option) {
 2903|      0|    case CURLOPT_HTTPHEADER:
  ------------------
  |  Branch (2903:5): [True: 0, False: 91.7k]
  ------------------
 2904|      0|    case CURLOPT_QUOTE:
  ------------------
  |  Branch (2904:5): [True: 0, False: 91.7k]
  ------------------
 2905|      0|    case CURLOPT_POSTQUOTE:
  ------------------
  |  Branch (2905:5): [True: 0, False: 91.7k]
  ------------------
 2906|      0|    case CURLOPT_TELNETOPTIONS:
  ------------------
  |  Branch (2906:5): [True: 0, False: 91.7k]
  ------------------
 2907|      0|    case CURLOPT_PREQUOTE:
  ------------------
  |  Branch (2907:5): [True: 0, False: 91.7k]
  ------------------
 2908|      0|    case CURLOPT_HTTP200ALIASES:
  ------------------
  |  Branch (2908:5): [True: 0, False: 91.7k]
  ------------------
 2909|      0|    case CURLOPT_MAIL_RCPT:
  ------------------
  |  Branch (2909:5): [True: 0, False: 91.7k]
  ------------------
 2910|      0|    case CURLOPT_RESOLVE:
  ------------------
  |  Branch (2910:5): [True: 0, False: 91.7k]
  ------------------
 2911|      0|    case CURLOPT_PROXYHEADER:
  ------------------
  |  Branch (2911:5): [True: 0, False: 91.7k]
  ------------------
 2912|  7.82k|    case CURLOPT_CONNECT_TO:
  ------------------
  |  Branch (2912:5): [True: 7.82k, False: 83.9k]
  ------------------
 2913|  7.82k|      return setopt_slist(data, option, va_arg(param, struct curl_slist *));
 2914|      0|    case CURLOPT_HTTPPOST:         /* curl_httppost * */
  ------------------
  |  Branch (2914:5): [True: 0, False: 91.7k]
  ------------------
 2915|      0|    case CURLOPT_MIMEPOST:         /* curl_mime * */
  ------------------
  |  Branch (2915:5): [True: 0, False: 91.7k]
  ------------------
 2916|      0|    case CURLOPT_STDERR:           /* FILE * */
  ------------------
  |  Branch (2916:5): [True: 0, False: 91.7k]
  ------------------
 2917|      0|    case CURLOPT_SHARE:            /* CURLSH * */
  ------------------
  |  Branch (2917:5): [True: 0, False: 91.7k]
  ------------------
 2918|      0|    case CURLOPT_STREAM_DEPENDS:   /* CURL * */
  ------------------
  |  Branch (2918:5): [True: 0, False: 91.7k]
  ------------------
 2919|      0|    case CURLOPT_STREAM_DEPENDS_E: /* CURL * */
  ------------------
  |  Branch (2919:5): [True: 0, False: 91.7k]
  ------------------
 2920|      0|    case CURLOPT_CURLU:            /* CURLU * */
  ------------------
  |  Branch (2920:5): [True: 0, False: 91.7k]
  ------------------
 2921|      0|      return setopt_pointers(data, option, param);
 2922|  83.9k|    default:
  ------------------
  |  Branch (2922:5): [True: 83.9k, False: 7.82k]
  ------------------
 2923|  83.9k|      break;
 2924|  91.7k|    }
 2925|       |    /* the char pointer options */
 2926|  83.9k|    return setopt_cptr(data, option, va_arg(param, char *));
 2927|  91.7k|  }
 2928|  53.8k|  else if(option < CURLOPTTYPE_OFF_T)
  ------------------
  |  | 1116|  53.8k|#define CURLOPTTYPE_OFF_T         30000
  ------------------
  |  Branch (2928:11): [True: 43.0k, False: 10.7k]
  ------------------
 2929|  43.0k|    return setopt_func(data, option, param);
 2930|  10.7k|  else if(option < CURLOPTTYPE_BLOB)
  ------------------
  |  | 1117|  10.7k|#define CURLOPTTYPE_BLOB          40000
  ------------------
  |  Branch (2930:11): [True: 10.7k, False: 0]
  ------------------
 2931|  10.7k|    return setopt_offt(data, option, va_arg(param, curl_off_t));
 2932|      0|  return setopt_blob(data, option, va_arg(param, struct curl_blob *));
 2933|   207k|}
curl_easy_setopt:
 2945|   207k|{
 2946|   207k|  va_list arg;
 2947|   207k|  CURLcode result;
 2948|   207k|  struct Curl_easy *data = curl;
 2949|       |
 2950|   207k|  if(!data)
  ------------------
  |  Branch (2950:6): [True: 0, False: 207k]
  ------------------
 2951|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 2952|       |
 2953|   207k|  va_start(arg, option);
 2954|       |
 2955|   207k|  result = Curl_vsetopt(data, option, arg);
 2956|       |
 2957|   207k|  va_end(arg);
 2958|   207k|  if(result == CURLE_BAD_FUNCTION_ARGUMENT)
  ------------------
  |  Branch (2958:6): [True: 843, False: 207k]
  ------------------
 2959|    843|    failf(data, "setopt 0x%x got bad argument", option);
  ------------------
  |  |   62|    843|#define failf Curl_failf
  ------------------
 2960|   207k|  return result;
 2961|   207k|}
setopt.c:setopt_long:
 1317|  62.2k|{
 1318|  62.2k|  typedef CURLcode (*setoptfunc)(struct Curl_easy *data,
 1319|  62.2k|                                 CURLoption option, long arg);
 1320|  62.2k|  static const setoptfunc setopt_call[] = {
 1321|  62.2k|    setopt_long_bool,
 1322|  62.2k|    setopt_long_net,
 1323|  62.2k|    setopt_long_http,
 1324|  62.2k|    setopt_long_proxy,
 1325|  62.2k|    setopt_long_ssl,
 1326|  62.2k|    setopt_long_proto,
 1327|  62.2k|    setopt_long_misc
 1328|  62.2k|  };
 1329|  62.2k|  size_t i;
 1330|       |
 1331|   112k|  for(i = 0; i < CURL_ARRAYSIZE(setopt_call); i++) {
  ------------------
  |  | 1294|   112k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (1331:14): [True: 112k, False: 0]
  ------------------
 1332|   112k|    CURLcode result = setopt_call[i](data, option, arg);
 1333|   112k|    if(result != CURLE_UNKNOWN_OPTION)
  ------------------
  |  Branch (1333:8): [True: 62.2k, False: 50.1k]
  ------------------
 1334|  62.2k|      return result;
 1335|   112k|  }
 1336|      0|  return CURLE_UNKNOWN_OPTION;
 1337|  62.2k|}
setopt.c:setopt_long_bool:
  420|  62.2k|{
  421|  62.2k|  bool enabled = !!arg;
  422|  62.2k|  int ok = 1;
  423|  62.2k|  struct UserDefined *s = &data->set;
  424|  62.2k|  switch(option) {
  425|      0|  case CURLOPT_FORBID_REUSE:
  ------------------
  |  Branch (425:3): [True: 0, False: 62.2k]
  ------------------
  426|       |    /*
  427|       |     * When this transfer is done, it must not be left to be reused by a
  428|       |     * subsequent transfer but shall be closed immediately.
  429|       |     */
  430|      0|    s->reuse_forbid = enabled;
  431|      0|    break;
  432|      0|  case CURLOPT_FRESH_CONNECT:
  ------------------
  |  Branch (432:3): [True: 0, False: 62.2k]
  ------------------
  433|       |    /*
  434|       |     * This transfer shall not use a previously cached connection but
  435|       |     * should be made with a fresh new connect!
  436|       |     */
  437|      0|    s->reuse_fresh = enabled;
  438|      0|    break;
  439|      0|  case CURLOPT_VERBOSE:
  ------------------
  |  Branch (439:3): [True: 0, False: 62.2k]
  ------------------
  440|       |    /*
  441|       |     * Verbose means infof() calls that give a lot of information about
  442|       |     * the connection and transfer procedures as well as internal choices.
  443|       |     */
  444|      0|    s->verbose = enabled;
  445|      0|    break;
  446|    906|  case CURLOPT_HEADER:
  ------------------
  |  Branch (446:3): [True: 906, False: 61.3k]
  ------------------
  447|       |    /*
  448|       |     * Set to include the header in the general data output stream.
  449|       |     */
  450|    906|    s->include_header = enabled;
  451|    906|    break;
  452|      0|  case CURLOPT_NOPROGRESS:
  ------------------
  |  Branch (452:3): [True: 0, False: 62.2k]
  ------------------
  453|       |    /*
  454|       |     * Shut off the internal supported progress meter
  455|       |     */
  456|      0|    data->progress.hide = enabled;
  457|      0|    break;
  458|  17.3k|  case CURLOPT_NOBODY:
  ------------------
  |  Branch (458:3): [True: 17.3k, False: 44.9k]
  ------------------
  459|       |    /*
  460|       |     * Do not include the body part in the output data stream.
  461|       |     */
  462|  17.3k|    s->opt_no_body = enabled;
  463|  17.3k|#ifndef CURL_DISABLE_HTTP
  464|  17.3k|    if(s->opt_no_body)
  ------------------
  |  Branch (464:8): [True: 371, False: 16.9k]
  ------------------
  465|       |      /* in HTTP lingo, no body means using the HEAD request... */
  466|    371|      s->method = HTTPREQ_HEAD;
  467|  16.9k|    else if(s->method == HTTPREQ_HEAD)
  ------------------
  |  Branch (467:13): [True: 132, False: 16.8k]
  ------------------
  468|    132|      s->method = HTTPREQ_GET;
  469|  17.3k|#endif
  470|  17.3k|    break;
  471|    695|  case CURLOPT_FAILONERROR:
  ------------------
  |  Branch (471:3): [True: 695, False: 61.5k]
  ------------------
  472|       |    /*
  473|       |     * Do not output the >=400 error code HTML-page, but instead only
  474|       |     * return error.
  475|       |     */
  476|    695|    s->http_fail_on_error = enabled;
  477|    695|    break;
  478|      0|  case CURLOPT_KEEP_SENDING_ON_ERROR:
  ------------------
  |  Branch (478:3): [True: 0, False: 62.2k]
  ------------------
  479|      0|    s->http_keep_sending_on_error = enabled;
  480|      0|    break;
  481|  1.73k|  case CURLOPT_UPLOAD:
  ------------------
  |  Branch (481:3): [True: 1.73k, False: 60.5k]
  ------------------
  482|  1.73k|  case CURLOPT_PUT:
  ------------------
  |  Branch (482:3): [True: 0, False: 62.2k]
  ------------------
  483|       |    /*
  484|       |     * We want to send data to the remote host. If this is HTTP, that equals
  485|       |     * using the PUT request.
  486|       |     */
  487|  1.73k|    if(enabled) {
  ------------------
  |  Branch (487:8): [True: 925, False: 810]
  ------------------
  488|       |      /* If this is HTTP, PUT is what's needed to "upload" */
  489|    925|      s->method = HTTPREQ_PUT;
  490|    925|      s->opt_no_body = FALSE; /* this is implied */
  ------------------
  |  | 1058|    925|#define FALSE false
  ------------------
  491|    925|    }
  492|    810|    else
  493|       |      /* In HTTP, the opposite of upload is GET (unless NOBODY is true as
  494|       |         then this can be changed to HEAD later on) */
  495|    810|      s->method = HTTPREQ_GET;
  496|  1.73k|    break;
  497|      0|  case CURLOPT_FILETIME:
  ------------------
  |  Branch (497:3): [True: 0, False: 62.2k]
  ------------------
  498|       |    /*
  499|       |     * Try to get the file time of the remote document. The time will
  500|       |     * later (possibly) become available using curl_easy_getinfo().
  501|       |     */
  502|      0|    s->get_filetime = enabled;
  503|      0|    break;
  504|      0|#ifndef CURL_DISABLE_HTTP
  505|    680|  case CURLOPT_HTTP09_ALLOWED:
  ------------------
  |  Branch (505:3): [True: 680, False: 61.5k]
  ------------------
  506|    680|    s->http09_allowed = enabled;
  507|    680|    break;
  508|      0|#ifndef CURL_DISABLE_COOKIES
  509|      0|  case CURLOPT_COOKIESESSION:
  ------------------
  |  Branch (509:3): [True: 0, False: 62.2k]
  ------------------
  510|       |    /*
  511|       |     * Set this option to TRUE to start a new "cookie session". It will
  512|       |     * prevent the forthcoming read-cookies-from-file actions to accept
  513|       |     * cookies that are marked as being session cookies, as they belong to a
  514|       |     * previous session.
  515|       |     */
  516|      0|    s->cookiesession = enabled;
  517|      0|    break;
  518|      0|#endif
  519|  1.09k|  case CURLOPT_AUTOREFERER:
  ------------------
  |  Branch (519:3): [True: 1.09k, False: 61.1k]
  ------------------
  520|       |    /*
  521|       |     * Switch on automatic referer that gets set if curl follows locations.
  522|       |     */
  523|  1.09k|    s->http_auto_referer = enabled;
  524|  1.09k|    break;
  525|      0|  case CURLOPT_TRANSFER_ENCODING:
  ------------------
  |  Branch (525:3): [True: 0, False: 62.2k]
  ------------------
  526|      0|    s->http_transfer_encoding = enabled;
  527|      0|    break;
  528|      0|  case CURLOPT_UNRESTRICTED_AUTH:
  ------------------
  |  Branch (528:3): [True: 0, False: 62.2k]
  ------------------
  529|       |    /*
  530|       |     * Send authentication (user+password) when following locations, even when
  531|       |     * hostname changed.
  532|       |     */
  533|      0|    s->allow_auth_to_other_hosts = enabled;
  534|      0|    break;
  535|      0|  case CURLOPT_HTTP_TRANSFER_DECODING:
  ------------------
  |  Branch (535:3): [True: 0, False: 62.2k]
  ------------------
  536|       |    /*
  537|       |     * disable libcurl transfer encoding is used
  538|       |     */
  539|      0|    s->http_te_skip = !enabled; /* reversed */
  540|      0|    break;
  541|      0|  case CURLOPT_HTTP_CONTENT_DECODING:
  ------------------
  |  Branch (541:3): [True: 0, False: 62.2k]
  ------------------
  542|       |    /*
  543|       |     * raw data passed to the application when content encoding is used
  544|       |     */
  545|      0|    s->http_ce_skip = !enabled; /* reversed */
  546|      0|    break;
  547|  4.04k|  case CURLOPT_HTTPGET:
  ------------------
  |  Branch (547:3): [True: 4.04k, False: 58.1k]
  ------------------
  548|       |    /*
  549|       |     * Set to force us do HTTP GET
  550|       |     */
  551|  4.04k|    if(enabled) {
  ------------------
  |  Branch (551:8): [True: 158, False: 3.88k]
  ------------------
  552|    158|      s->method = HTTPREQ_GET;
  553|    158|      s->opt_no_body = FALSE; /* this is implied */
  ------------------
  |  | 1058|    158|#define FALSE false
  ------------------
  554|    158|    }
  555|  4.04k|    break;
  556|  2.08k|  case CURLOPT_POST:
  ------------------
  |  Branch (556:3): [True: 2.08k, False: 60.1k]
  ------------------
  557|       |    /* Does this option serve a purpose anymore? Yes it does, when
  558|       |       CURLOPT_POSTFIELDS is not used and the POST data is read off the
  559|       |       callback! */
  560|  2.08k|    if(enabled) {
  ------------------
  |  Branch (560:8): [True: 574, False: 1.51k]
  ------------------
  561|    574|      s->method = HTTPREQ_POST;
  562|    574|      s->opt_no_body = FALSE; /* this is implied */
  ------------------
  |  | 1058|    574|#define FALSE false
  ------------------
  563|    574|    }
  564|  1.51k|    else
  565|  1.51k|      s->method = HTTPREQ_GET;
  566|  2.08k|    break;
  567|      0|#endif /* !CURL_DISABLE_HTTP */
  568|      0|#ifndef CURL_DISABLE_PROXY
  569|      0|  case CURLOPT_HTTPPROXYTUNNEL:
  ------------------
  |  Branch (569:3): [True: 0, False: 62.2k]
  ------------------
  570|       |    /*
  571|       |     * Tunnel operations through the proxy instead of normal proxy use
  572|       |     */
  573|      0|    s->tunnel_thru_httpproxy = enabled;
  574|      0|    break;
  575|      0|  case CURLOPT_HAPROXYPROTOCOL:
  ------------------
  |  Branch (575:3): [True: 0, False: 62.2k]
  ------------------
  576|       |    /*
  577|       |     * Set to send the HAProxy Proxy Protocol header
  578|       |     */
  579|      0|    s->haproxyprotocol = enabled;
  580|      0|    break;
  581|      0|  case CURLOPT_PROXY_SSL_VERIFYPEER:
  ------------------
  |  Branch (581:3): [True: 0, False: 62.2k]
  ------------------
  582|       |    /*
  583|       |     * Enable peer SSL verifying for proxy.
  584|       |     */
  585|      0|    s->proxy_ssl.primary.verifypeer = enabled;
  586|       |
  587|       |    /* Update the current connection proxy_ssl_config. */
  588|      0|    Curl_ssl_conn_config_update(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  589|      0|    break;
  590|      0|  case CURLOPT_PROXY_SSL_VERIFYHOST:
  ------------------
  |  Branch (590:3): [True: 0, False: 62.2k]
  ------------------
  591|       |    /*
  592|       |     * Enable verification of the hostname in the peer certificate for proxy
  593|       |     */
  594|      0|    s->proxy_ssl.primary.verifyhost = enabled;
  595|      0|    ok = 2;
  596|       |    /* Update the current connection proxy_ssl_config. */
  597|      0|    Curl_ssl_conn_config_update(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  598|      0|    break;
  599|      0|  case CURLOPT_PROXY_TRANSFER_MODE:
  ------------------
  |  Branch (599:3): [True: 0, False: 62.2k]
  ------------------
  600|       |    /*
  601|       |     * set transfer mode (;type=<a|i>) when doing FTP via an HTTP proxy
  602|       |     */
  603|      0|    s->proxy_transfer_mode = enabled;
  604|      0|    break;
  605|      0|#endif /* !CURL_DISABLE_PROXY */
  606|       |#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
  607|       |  case CURLOPT_SOCKS5_GSSAPI_NEC:
  608|       |    /*
  609|       |     * Set flag for NEC SOCKS5 support
  610|       |     */
  611|       |    s->socks5_gssapi_nec = enabled;
  612|       |    break;
  613|       |#endif
  614|      0|#ifdef CURL_LIST_ONLY_PROTOCOL
  615|      0|  case CURLOPT_DIRLISTONLY:
  ------------------
  |  Branch (615:3): [True: 0, False: 62.2k]
  ------------------
  616|       |    /*
  617|       |     * An option that changes the command to one that asks for a list only, no
  618|       |     * file info details. Used for FTP, POP3 and SFTP.
  619|       |     */
  620|      0|    s->list_only = enabled;
  621|      0|    break;
  622|      0|#endif
  623|      0|  case CURLOPT_APPEND:
  ------------------
  |  Branch (623:3): [True: 0, False: 62.2k]
  ------------------
  624|       |    /*
  625|       |     * We want to upload and append to an existing file. Used for FTP and
  626|       |     * SFTP.
  627|       |     */
  628|      0|    s->remote_append = enabled;
  629|      0|    break;
  630|      0|#ifndef CURL_DISABLE_FTP
  631|      0|  case CURLOPT_FTP_USE_EPRT:
  ------------------
  |  Branch (631:3): [True: 0, False: 62.2k]
  ------------------
  632|      0|    s->ftp_use_eprt = enabled;
  633|      0|    break;
  634|      0|  case CURLOPT_FTP_USE_EPSV:
  ------------------
  |  Branch (634:3): [True: 0, False: 62.2k]
  ------------------
  635|      0|    s->ftp_use_epsv = enabled;
  636|      0|    break;
  637|      0|  case CURLOPT_FTP_USE_PRET:
  ------------------
  |  Branch (637:3): [True: 0, False: 62.2k]
  ------------------
  638|      0|    s->ftp_use_pret = enabled;
  639|      0|    break;
  640|      0|  case CURLOPT_FTP_SKIP_PASV_IP:
  ------------------
  |  Branch (640:3): [True: 0, False: 62.2k]
  ------------------
  641|       |    /*
  642|       |     * Enable or disable FTP_SKIP_PASV_IP, which will disable/enable the
  643|       |     * bypass of the IP address in PASV responses.
  644|       |     */
  645|      0|    s->ftp_skip_ip = enabled;
  646|      0|    break;
  647|      0|  case CURLOPT_WILDCARDMATCH:
  ------------------
  |  Branch (647:3): [True: 0, False: 62.2k]
  ------------------
  648|      0|    s->wildcard_enabled = enabled;
  649|      0|    break;
  650|      0|#endif
  651|      0|  case CURLOPT_CRLF:
  ------------------
  |  Branch (651:3): [True: 0, False: 62.2k]
  ------------------
  652|       |    /*
  653|       |     * Kludgy option to enable CRLF conversions. Subject for removal.
  654|       |     */
  655|      0|    s->crlf = enabled;
  656|      0|    break;
  657|      0|#ifndef CURL_DISABLE_TFTP
  658|      0|  case CURLOPT_TFTP_NO_OPTIONS:
  ------------------
  |  Branch (658:3): [True: 0, False: 62.2k]
  ------------------
  659|       |    /*
  660|       |     * Option that prevents libcurl from sending TFTP option requests to the
  661|       |     * server.
  662|       |     */
  663|      0|    s->tftp_no_options = enabled;
  664|      0|    break;
  665|      0|#endif /* !CURL_DISABLE_TFTP */
  666|      0|  case CURLOPT_TRANSFERTEXT:
  ------------------
  |  Branch (666:3): [True: 0, False: 62.2k]
  ------------------
  667|       |    /*
  668|       |     * This option was previously named 'FTPASCII'. Renamed to work with
  669|       |     * more protocols than merely FTP.
  670|       |     *
  671|       |     * Transfer using ASCII (instead of BINARY).
  672|       |     */
  673|      0|    s->prefer_ascii = enabled;
  674|      0|    break;
  675|      0|  case CURLOPT_SSL_VERIFYPEER:
  ------------------
  |  Branch (675:3): [True: 0, False: 62.2k]
  ------------------
  676|       |    /*
  677|       |     * Enable peer SSL verifying.
  678|       |     */
  679|      0|    s->ssl.primary.verifypeer = enabled;
  680|       |
  681|       |    /* Update the current connection ssl_config. */
  682|      0|    Curl_ssl_conn_config_update(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  683|      0|    break;
  684|      0|#ifndef CURL_DISABLE_DOH
  685|      0|  case CURLOPT_DOH_SSL_VERIFYPEER:
  ------------------
  |  Branch (685:3): [True: 0, False: 62.2k]
  ------------------
  686|       |    /*
  687|       |     * Enable peer SSL verifying for DoH.
  688|       |     */
  689|      0|    s->doh_verifypeer = enabled;
  690|      0|    break;
  691|      0|  case CURLOPT_DOH_SSL_VERIFYHOST:
  ------------------
  |  Branch (691:3): [True: 0, False: 62.2k]
  ------------------
  692|       |    /*
  693|       |     * Enable verification of the hostname in the peer certificate for DoH
  694|       |     */
  695|      0|    s->doh_verifyhost = enabled;
  696|      0|    ok = 2;
  697|      0|    break;
  698|      0|  case CURLOPT_DOH_SSL_VERIFYSTATUS:
  ------------------
  |  Branch (698:3): [True: 0, False: 62.2k]
  ------------------
  699|       |    /*
  700|       |     * Enable certificate status verifying for DoH.
  701|       |     */
  702|      0|    if(!Curl_ssl_cert_status_request())
  ------------------
  |  Branch (702:8): [True: 0, False: 0]
  ------------------
  703|      0|      return CURLE_NOT_BUILT_IN;
  704|       |
  705|      0|    s->doh_verifystatus = enabled;
  706|      0|    ok = 2;
  707|      0|    break;
  708|      0|#endif /* !CURL_DISABLE_DOH */
  709|      0|  case CURLOPT_SSL_VERIFYHOST:
  ------------------
  |  Branch (709:3): [True: 0, False: 62.2k]
  ------------------
  710|       |    /*
  711|       |     * Enable verification of the hostname in the peer certificate
  712|       |     */
  713|       |
  714|       |    /* Obviously people are not reading documentation and too many thought
  715|       |       this argument took a boolean when it was not and misused it.
  716|       |       Treat 1 and 2 the same */
  717|      0|    s->ssl.primary.verifyhost = enabled;
  718|      0|    ok = 2;
  719|       |
  720|       |    /* Update the current connection ssl_config. */
  721|      0|    Curl_ssl_conn_config_update(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  722|      0|    break;
  723|      0|  case CURLOPT_SSL_VERIFYSTATUS:
  ------------------
  |  Branch (723:3): [True: 0, False: 62.2k]
  ------------------
  724|       |    /*
  725|       |     * Enable certificate status verifying.
  726|       |     */
  727|      0|    if(!Curl_ssl_cert_status_request())
  ------------------
  |  Branch (727:8): [True: 0, False: 0]
  ------------------
  728|      0|      return CURLE_NOT_BUILT_IN;
  729|       |
  730|      0|    s->ssl.primary.verifystatus = enabled;
  731|       |
  732|       |    /* Update the current connection ssl_config. */
  733|      0|    Curl_ssl_conn_config_update(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  734|      0|    break;
  735|      0|  case CURLOPT_CERTINFO:
  ------------------
  |  Branch (735:3): [True: 0, False: 62.2k]
  ------------------
  736|      0|#ifdef USE_SSL
  737|      0|    if(Curl_ssl_supports(data, SSLSUPP_CERTINFO))
  ------------------
  |  |   36|      0|#define SSLSUPP_CERTINFO     (1 << 1) /* supports CURLOPT_CERTINFO */
  ------------------
  |  Branch (737:8): [True: 0, False: 0]
  ------------------
  738|      0|      s->ssl.certinfo = enabled;
  739|      0|    else
  740|      0|#endif
  741|      0|      return CURLE_NOT_BUILT_IN;
  742|      0|    break;
  743|      0|  case CURLOPT_NOSIGNAL:
  ------------------
  |  Branch (743:3): [True: 0, False: 62.2k]
  ------------------
  744|       |    /*
  745|       |     * The application asks not to set any signal() or alarm() handlers,
  746|       |     * even when using a timeout.
  747|       |     */
  748|      0|    s->no_signal = enabled;
  749|      0|    break;
  750|      0|  case CURLOPT_TCP_NODELAY:
  ------------------
  |  Branch (750:3): [True: 0, False: 62.2k]
  ------------------
  751|       |    /*
  752|       |     * Enable or disable TCP_NODELAY, which will disable/enable the Nagle
  753|       |     * algorithm
  754|       |     */
  755|      0|    s->tcp_nodelay = enabled;
  756|      0|    break;
  757|      0|  case CURLOPT_IGNORE_CONTENT_LENGTH:
  ------------------
  |  Branch (757:3): [True: 0, False: 62.2k]
  ------------------
  758|      0|    s->ignorecl = enabled;
  759|      0|    break;
  760|      0|  case CURLOPT_SSL_SESSIONID_CACHE:
  ------------------
  |  Branch (760:3): [True: 0, False: 62.2k]
  ------------------
  761|      0|    s->ssl.primary.cache_session = enabled;
  762|      0|#ifndef CURL_DISABLE_PROXY
  763|      0|    s->proxy_ssl.primary.cache_session = s->ssl.primary.cache_session;
  764|      0|#endif
  765|      0|    break;
  766|       |#ifdef USE_SSH
  767|       |  case CURLOPT_SSH_COMPRESSION:
  768|       |    s->ssh_compression = enabled;
  769|       |    break;
  770|       |#endif /* !USE_SSH */
  771|      0|#ifndef CURL_DISABLE_SMTP
  772|      0|  case CURLOPT_MAIL_RCPT_ALLOWFAILS:
  ------------------
  |  Branch (772:3): [True: 0, False: 62.2k]
  ------------------
  773|       |    /* allow RCPT TO command to fail for some recipients */
  774|      0|    s->mail_rcpt_allowfails = enabled;
  775|      0|    break;
  776|      0|#endif /* !CURL_DISABLE_SMTP */
  777|      0|  case CURLOPT_SASL_IR:
  ------------------
  |  Branch (777:3): [True: 0, False: 62.2k]
  ------------------
  778|       |    /* Enable/disable SASL initial response */
  779|      0|    s->sasl_ir = enabled;
  780|      0|    break;
  781|      0|  case CURLOPT_TCP_KEEPALIVE:
  ------------------
  |  Branch (781:3): [True: 0, False: 62.2k]
  ------------------
  782|      0|    s->tcp_keepalive = enabled;
  783|      0|    break;
  784|      0|  case CURLOPT_TCP_FASTOPEN:
  ------------------
  |  Branch (784:3): [True: 0, False: 62.2k]
  ------------------
  785|      0|#if defined(CONNECT_DATA_IDEMPOTENT) || defined(MSG_FASTOPEN) || \
  786|      0|  defined(TCP_FASTOPEN_CONNECT)
  787|      0|    s->tcp_fastopen = enabled;
  788|      0|    break;
  789|       |#else
  790|       |    return CURLE_NOT_BUILT_IN;
  791|       |#endif
  792|      0|  case CURLOPT_SSL_ENABLE_ALPN:
  ------------------
  |  Branch (792:3): [True: 0, False: 62.2k]
  ------------------
  793|      0|    s->ssl_enable_alpn = enabled;
  794|      0|    break;
  795|      0|  case CURLOPT_PATH_AS_IS:
  ------------------
  |  Branch (795:3): [True: 0, False: 62.2k]
  ------------------
  796|      0|    s->path_as_is = enabled;
  797|      0|    break;
  798|      0|  case CURLOPT_PIPEWAIT:
  ------------------
  |  Branch (798:3): [True: 0, False: 62.2k]
  ------------------
  799|      0|    s->pipewait = enabled;
  800|      0|    break;
  801|      0|  case CURLOPT_SUPPRESS_CONNECT_HEADERS:
  ------------------
  |  Branch (801:3): [True: 0, False: 62.2k]
  ------------------
  802|      0|    s->suppress_connect_headers = enabled;
  803|      0|    break;
  804|      0|#ifndef CURL_DISABLE_SHUFFLE_DNS
  805|      0|  case CURLOPT_DNS_SHUFFLE_ADDRESSES:
  ------------------
  |  Branch (805:3): [True: 0, False: 62.2k]
  ------------------
  806|      0|    s->dns_shuffle_addresses = enabled;
  807|      0|    break;
  808|      0|#endif
  809|      0|  case CURLOPT_DISALLOW_USERNAME_IN_URL:
  ------------------
  |  Branch (809:3): [True: 0, False: 62.2k]
  ------------------
  810|      0|    s->disallow_username_in_url = enabled;
  811|      0|    break;
  812|      0|  case CURLOPT_QUICK_EXIT:
  ------------------
  |  Branch (812:3): [True: 0, False: 62.2k]
  ------------------
  813|      0|    s->quick_exit = enabled;
  814|      0|    break;
  815|  33.6k|  default:
  ------------------
  |  Branch (815:3): [True: 33.6k, False: 28.5k]
  ------------------
  816|  33.6k|    return CURLE_UNKNOWN_OPTION;
  817|  62.2k|  }
  818|  28.5k|  if((arg > ok) || (arg < 0))
  ------------------
  |  Branch (818:6): [True: 732, False: 27.8k]
  |  Branch (818:20): [True: 175, False: 27.6k]
  ------------------
  819|       |    /* reserve other values for future use */
  820|    907|    infof(data, "boolean setopt(%d) got unsupported argument %ld,"
  ------------------
  |  |  143|    907|  do {                               \
  |  |  144|    907|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    907|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 907, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 907]
  |  |  |  |  ------------------
  |  |  |  |  320|    907|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    907|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    907|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 907]
  |  |  ------------------
  ------------------
  821|  28.5k|          " treated as %d", option, arg, enabled);
  822|       |
  823|  28.5k|  return CURLE_OK;
  824|  62.2k|}
setopt.c:setopt_long_net:
  839|  33.6k|{
  840|  33.6k|  CURLcode result = CURLE_OK;
  841|  33.6k|  struct UserDefined *s = &data->set;
  842|       |
  843|  33.6k|  switch(option) {
  844|      0|  case CURLOPT_DNS_CACHE_TIMEOUT:
  ------------------
  |  Branch (844:3): [True: 0, False: 33.6k]
  ------------------
  845|      0|    if(arg != -1)
  ------------------
  |  Branch (845:8): [True: 0, False: 0]
  ------------------
  846|      0|      return setopt_set_timeout_sec(&s->dns_cache_timeout_ms, arg);
  847|      0|    s->dns_cache_timeout_ms = -1;
  848|      0|    break;
  849|      0|  case CURLOPT_MAXCONNECTS:
  ------------------
  |  Branch (849:3): [True: 0, False: 33.6k]
  ------------------
  850|      0|    result = value_range(&arg, 1, 1, INT_MAX);
  851|      0|    if(!result)
  ------------------
  |  Branch (851:8): [True: 0, False: 0]
  ------------------
  852|      0|      s->maxconnects = (uint32_t)arg;
  853|      0|    break;
  854|      0|  case CURLOPT_SERVER_RESPONSE_TIMEOUT:
  ------------------
  |  Branch (854:3): [True: 0, False: 33.6k]
  ------------------
  855|      0|    return setopt_set_timeout_sec(&s->server_response_timeout, arg);
  856|      0|  case CURLOPT_SERVER_RESPONSE_TIMEOUT_MS:
  ------------------
  |  Branch (856:3): [True: 0, False: 33.6k]
  ------------------
  857|      0|    return setopt_set_timeout_ms(&s->server_response_timeout, arg);
  858|      0|  case CURLOPT_LOW_SPEED_LIMIT:
  ------------------
  |  Branch (858:3): [True: 0, False: 33.6k]
  ------------------
  859|      0|    if(arg < 0)
  ------------------
  |  Branch (859:8): [True: 0, False: 0]
  ------------------
  860|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  861|      0|    else
  862|      0|      s->low_speed_limit = arg;
  863|      0|    break;
  864|      0|  case CURLOPT_LOW_SPEED_TIME:
  ------------------
  |  Branch (864:3): [True: 0, False: 33.6k]
  ------------------
  865|      0|    result = value_range(&arg, 0, 0, USHRT_MAX);
  866|      0|    if(!result)
  ------------------
  |  Branch (866:8): [True: 0, False: 0]
  ------------------
  867|      0|      s->low_speed_time = (uint16_t)arg;
  868|      0|    break;
  869|      0|  case CURLOPT_PORT:
  ------------------
  |  Branch (869:3): [True: 0, False: 33.6k]
  ------------------
  870|      0|    if((arg < 0) || (arg > 65535))
  ------------------
  |  Branch (870:8): [True: 0, False: 0]
  |  Branch (870:21): [True: 0, False: 0]
  ------------------
  871|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  872|      0|    s->use_port = (unsigned short)arg;
  873|      0|    break;
  874|      0|  case CURLOPT_TIMEOUT:
  ------------------
  |  Branch (874:3): [True: 0, False: 33.6k]
  ------------------
  875|      0|    return setopt_set_timeout_sec(&s->timeout, arg);
  876|  7.82k|  case CURLOPT_TIMEOUT_MS:
  ------------------
  |  Branch (876:3): [True: 7.82k, False: 25.8k]
  ------------------
  877|  7.82k|    return setopt_set_timeout_ms(&s->timeout, arg);
  878|      0|  case CURLOPT_CONNECTTIMEOUT:
  ------------------
  |  Branch (878:3): [True: 0, False: 33.6k]
  ------------------
  879|      0|    return setopt_set_timeout_sec(&s->connecttimeout, arg);
  880|  7.82k|  case CURLOPT_CONNECTTIMEOUT_MS:
  ------------------
  |  Branch (880:3): [True: 7.82k, False: 25.8k]
  ------------------
  881|  7.82k|    return setopt_set_timeout_ms(&s->connecttimeout, arg);
  882|      0|#ifndef CURL_DISABLE_BINDLOCAL
  883|      0|  case CURLOPT_LOCALPORT:
  ------------------
  |  Branch (883:3): [True: 0, False: 33.6k]
  ------------------
  884|      0|    if((arg < 0) || (arg > 65535))
  ------------------
  |  Branch (884:8): [True: 0, False: 0]
  |  Branch (884:21): [True: 0, False: 0]
  ------------------
  885|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  886|      0|    s->localport = curlx_sltous(arg);
  887|      0|    break;
  888|      0|  case CURLOPT_LOCALPORTRANGE:
  ------------------
  |  Branch (888:3): [True: 0, False: 33.6k]
  ------------------
  889|      0|    if((arg < 0) || (arg > 65535))
  ------------------
  |  Branch (889:8): [True: 0, False: 0]
  |  Branch (889:21): [True: 0, False: 0]
  ------------------
  890|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  891|      0|    s->localportrange = curlx_sltous(arg);
  892|      0|    break;
  893|      0|#endif
  894|      0|  case CURLOPT_BUFFERSIZE:
  ------------------
  |  Branch (894:3): [True: 0, False: 33.6k]
  ------------------
  895|      0|    result = value_range(&arg, 0, READBUFFER_MIN, READBUFFER_MAX);
  ------------------
  |  |  116|      0|#define READBUFFER_MIN  1024
  ------------------
                  result = value_range(&arg, 0, READBUFFER_MIN, READBUFFER_MAX);
  ------------------
  |  |  115|      0|#define READBUFFER_MAX  CURL_MAX_READ_SIZE
  |  |  ------------------
  |  |  |  |  255|      0|#define CURL_MAX_READ_SIZE (10 * 1024 * 1024)
  |  |  ------------------
  ------------------
  896|      0|    if(!result)
  ------------------
  |  Branch (896:8): [True: 0, False: 0]
  ------------------
  897|      0|      s->buffer_size = (unsigned int)arg;
  898|      0|    break;
  899|      0|  case CURLOPT_UPLOAD_BUFFERSIZE:
  ------------------
  |  Branch (899:3): [True: 0, False: 33.6k]
  ------------------
  900|      0|    result = value_range(&arg, 0, UPLOADBUFFER_MIN, UPLOADBUFFER_MAX);
  ------------------
  |  |  128|      0|#define UPLOADBUFFER_MIN     CURL_MAX_WRITE_SIZE
  |  |  ------------------
  |  |  |  |  265|      0|#define CURL_MAX_WRITE_SIZE 16384
  |  |  ------------------
  ------------------
                  result = value_range(&arg, 0, UPLOADBUFFER_MIN, UPLOADBUFFER_MAX);
  ------------------
  |  |  127|      0|#define UPLOADBUFFER_MAX     (2 * 1024 * 1024)
  ------------------
  901|      0|    if(!result)
  ------------------
  |  Branch (901:8): [True: 0, False: 0]
  ------------------
  902|      0|      s->upload_buffer_size = (unsigned int)arg;
  903|      0|    break;
  904|      0|  case CURLOPT_MAXFILESIZE:
  ------------------
  |  Branch (904:3): [True: 0, False: 33.6k]
  ------------------
  905|      0|    if(arg < 0)
  ------------------
  |  Branch (905:8): [True: 0, False: 0]
  ------------------
  906|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  907|      0|    else
  908|      0|      s->max_filesize = arg;
  909|      0|    break;
  910|      0|  case CURLOPT_IPRESOLVE:
  ------------------
  |  Branch (910:3): [True: 0, False: 33.6k]
  ------------------
  911|      0|    if((arg < CURL_IPRESOLVE_WHATEVER) || (arg > CURL_IPRESOLVE_V6))
  ------------------
  |  | 2303|      0|#define CURL_IPRESOLVE_WHATEVER 0L /* default, uses addresses to all IP
  ------------------
                  if((arg < CURL_IPRESOLVE_WHATEVER) || (arg > CURL_IPRESOLVE_V6))
  ------------------
  |  | 2306|      0|#define CURL_IPRESOLVE_V6       2L /* uses only IPv6 addresses/connections */
  ------------------
  |  Branch (911:8): [True: 0, False: 0]
  |  Branch (911:43): [True: 0, False: 0]
  ------------------
  912|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  913|      0|    else
  914|      0|      s->ipver = (unsigned char)arg;
  915|      0|    break;
  916|  2.99k|  case CURLOPT_CONNECT_ONLY:
  ------------------
  |  Branch (916:3): [True: 2.99k, False: 30.6k]
  ------------------
  917|  2.99k|    if(arg < 0 || arg > 2)
  ------------------
  |  Branch (917:8): [True: 90, False: 2.90k]
  |  Branch (917:19): [True: 263, False: 2.64k]
  ------------------
  918|    353|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  919|  2.64k|    else {
  920|  2.64k|      s->connect_only = !!arg;
  921|  2.64k|      s->connect_only_ws = (arg == 2);
  922|  2.64k|    }
  923|  2.99k|    break;
  924|      0|#ifdef USE_IPV6
  925|      0|  case CURLOPT_ADDRESS_SCOPE:
  ------------------
  |  Branch (925:3): [True: 0, False: 33.6k]
  ------------------
  926|      0|#if SIZEOF_LONG > 4
  927|      0|    if((unsigned long)arg > UINT_MAX)
  ------------------
  |  Branch (927:8): [True: 0, False: 0]
  ------------------
  928|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  929|      0|    else
  930|      0|#endif
  931|      0|    s->scope_id = (unsigned int)arg;
  932|      0|    break;
  933|      0|#endif
  934|      0|  case CURLOPT_TCP_KEEPIDLE:
  ------------------
  |  Branch (934:3): [True: 0, False: 33.6k]
  ------------------
  935|      0|    result = value_range(&arg, 0, 0, INT_MAX);
  936|      0|    if(!result)
  ------------------
  |  Branch (936:8): [True: 0, False: 0]
  ------------------
  937|      0|      s->tcp_keepidle = (int)arg;
  938|      0|    break;
  939|      0|  case CURLOPT_TCP_KEEPINTVL:
  ------------------
  |  Branch (939:3): [True: 0, False: 33.6k]
  ------------------
  940|      0|    result = value_range(&arg, 0, 0, INT_MAX);
  941|      0|    if(!result)
  ------------------
  |  Branch (941:8): [True: 0, False: 0]
  ------------------
  942|      0|      s->tcp_keepintvl = (int)arg;
  943|      0|    break;
  944|      0|  case CURLOPT_TCP_KEEPCNT:
  ------------------
  |  Branch (944:3): [True: 0, False: 33.6k]
  ------------------
  945|      0|    result = value_range(&arg, 0, 0, INT_MAX);
  946|      0|    if(!result)
  ------------------
  |  Branch (946:8): [True: 0, False: 0]
  ------------------
  947|      0|      s->tcp_keepcnt = (int)arg;
  948|      0|    break;
  949|      0|  case CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS:
  ------------------
  |  Branch (949:3): [True: 0, False: 33.6k]
  ------------------
  950|      0|    return setopt_set_timeout_ms(&s->happy_eyeballs_timeout, arg);
  951|      0|  case CURLOPT_UPKEEP_INTERVAL_MS:
  ------------------
  |  Branch (951:3): [True: 0, False: 33.6k]
  ------------------
  952|      0|    return setopt_set_timeout_ms(&s->upkeep_interval_ms, arg);
  953|      0|  case CURLOPT_MAXAGE_CONN:
  ------------------
  |  Branch (953:3): [True: 0, False: 33.6k]
  ------------------
  954|      0|    return setopt_set_timeout_sec(&s->conn_max_idle_ms, arg);
  955|      0|  case CURLOPT_MAXLIFETIME_CONN:
  ------------------
  |  Branch (955:3): [True: 0, False: 33.6k]
  ------------------
  956|      0|    return setopt_set_timeout_sec(&s->conn_max_age_ms, arg);
  957|      0|  case CURLOPT_DNS_USE_GLOBAL_CACHE:
  ------------------
  |  Branch (957:3): [True: 0, False: 33.6k]
  ------------------
  958|       |    /* deprecated */
  959|      0|    break;
  960|  15.0k|  default:
  ------------------
  |  Branch (960:3): [True: 15.0k, False: 18.6k]
  ------------------
  961|  15.0k|    return CURLE_UNKNOWN_OPTION;
  962|  33.6k|  }
  963|  2.99k|  return result;
  964|  33.6k|}
setopt.c:value_range:
  827|  2.63k|{
  828|  2.63k|  if(*value < below_error)
  ------------------
  |  Branch (828:6): [True: 107, False: 2.52k]
  ------------------
  829|    107|    return CURLE_BAD_FUNCTION_ARGUMENT;
  830|  2.52k|  else if(*value < min)
  ------------------
  |  Branch (830:11): [True: 0, False: 2.52k]
  ------------------
  831|      0|    *value = min;
  832|  2.52k|  else if(*value > max)
  ------------------
  |  Branch (832:11): [True: 142, False: 2.38k]
  ------------------
  833|    142|    *value = max;
  834|  2.52k|  return CURLE_OK;
  835|  2.63k|}
setopt.c:setopt_set_timeout_ms:
   69|  15.6k|{
   70|  15.6k|  if(ms < 0)
  ------------------
  |  Branch (70:6): [True: 0, False: 15.6k]
  ------------------
   71|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
   72|       |#if LONG_MAX > TIMEDIFF_T_MAX
   73|       |  if(ms > TIMEDIFF_T_MAX) {
   74|       |    *ptimeout_ms = TIMEDIFF_T_MAX;
   75|       |    return CURLE_OK;
   76|       |  }
   77|       |#endif
   78|  15.6k|  *ptimeout_ms = (timediff_t)ms;
   79|  15.6k|  return CURLE_OK;
   80|  15.6k|}
setopt.c:setopt_long_http:
 1076|  15.0k|{
 1077|  15.0k|#ifndef CURL_DISABLE_HTTP
 1078|  15.0k|  CURLcode result = CURLE_OK;
 1079|  15.0k|  struct UserDefined *s = &data->set;
 1080|       |
 1081|  15.0k|  switch(option) {
 1082|  6.53k|  case CURLOPT_FOLLOWLOCATION:
  ------------------
  |  Branch (1082:3): [True: 6.53k, False: 8.49k]
  ------------------
 1083|  6.53k|    if((unsigned long)arg > 3)
  ------------------
  |  Branch (1083:8): [True: 0, False: 6.53k]
  ------------------
 1084|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1085|  6.53k|    else
 1086|  6.53k|      s->http_follow_mode = (unsigned char)arg;
 1087|  6.53k|    break;
 1088|  2.63k|  case CURLOPT_MAXREDIRS:
  ------------------
  |  Branch (1088:3): [True: 2.63k, False: 12.3k]
  ------------------
 1089|  2.63k|    result = value_range(&arg, -1, -1, 0x7fff);
 1090|  2.63k|    if(!result)
  ------------------
  |  Branch (1090:8): [True: 2.52k, False: 107]
  ------------------
 1091|  2.52k|      s->maxredirs = (short)arg;
 1092|  2.63k|    break;
 1093|      0|  case CURLOPT_POSTREDIR:
  ------------------
  |  Branch (1093:3): [True: 0, False: 15.0k]
  ------------------
 1094|      0|    if(arg < CURL_REDIR_GET_ALL)
  ------------------
  |  | 2403|      0|#define CURL_REDIR_GET_ALL  0L
  ------------------
  |  Branch (1094:8): [True: 0, False: 0]
  ------------------
 1095|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1096|      0|    else {
 1097|      0|      s->post301 = !!(arg & CURL_REDIR_POST_301);
  ------------------
  |  | 2404|      0|#define CURL_REDIR_POST_301 1L
  ------------------
 1098|      0|      s->post302 = !!(arg & CURL_REDIR_POST_302);
  ------------------
  |  | 2405|      0|#define CURL_REDIR_POST_302 2L
  ------------------
 1099|      0|      s->post303 = !!(arg & CURL_REDIR_POST_303);
  ------------------
  |  | 2406|      0|#define CURL_REDIR_POST_303 4L
  ------------------
 1100|      0|    }
 1101|      0|    break;
 1102|      0|  case CURLOPT_HEADEROPT:
  ------------------
  |  Branch (1102:3): [True: 0, False: 15.0k]
  ------------------
 1103|      0|    s->sep_headers = !!(arg & CURLHEADER_SEPARATE);
  ------------------
  |  | 1031|      0|#define CURLHEADER_SEPARATE (1L << 0)
  ------------------
 1104|      0|    break;
 1105|      0|  case CURLOPT_HTTPAUTH:
  ------------------
  |  Branch (1105:3): [True: 0, False: 15.0k]
  ------------------
 1106|      0|    return httpauth(data, FALSE, (unsigned long)arg);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1107|  5.36k|  case CURLOPT_HTTP_VERSION:
  ------------------
  |  Branch (1107:3): [True: 5.36k, False: 9.65k]
  ------------------
 1108|  5.36k|    return setopt_HTTP_VERSION(data, arg);
 1109|      0|  case CURLOPT_EXPECT_100_TIMEOUT_MS:
  ------------------
  |  Branch (1109:3): [True: 0, False: 15.0k]
  ------------------
 1110|      0|    result = value_range(&arg, 0, 0, 0xffff);
 1111|      0|    if(!result)
  ------------------
  |  Branch (1111:8): [True: 0, False: 0]
  ------------------
 1112|      0|      s->expect_100_timeout = (unsigned short)arg;
 1113|      0|    break;
 1114|      0|  case CURLOPT_STREAM_WEIGHT:
  ------------------
  |  Branch (1114:3): [True: 0, False: 15.0k]
  ------------------
 1115|      0|#if defined(USE_HTTP2) || defined(USE_HTTP3)
 1116|      0|    if((arg >= 1) && (arg <= 256))
  ------------------
  |  Branch (1116:8): [True: 0, False: 0]
  |  Branch (1116:22): [True: 0, False: 0]
  ------------------
 1117|      0|      s->priority.weight = (int)arg;
 1118|      0|    break;
 1119|       |#else
 1120|       |    result = CURLE_NOT_BUILT_IN;
 1121|       |    break;
 1122|       |#endif
 1123|    489|  default:
  ------------------
  |  Branch (1123:3): [True: 489, False: 14.5k]
  ------------------
 1124|    489|    return CURLE_UNKNOWN_OPTION;
 1125|  15.0k|  }
 1126|  9.16k|  return result;
 1127|       |#else
 1128|       |  (void)data;
 1129|       |  (void)option;
 1130|       |  (void)arg;
 1131|       |  return CURLE_UNKNOWN_OPTION;
 1132|       |#endif
 1133|  15.0k|}
setopt.c:setopt_HTTP_VERSION:
  277|  5.36k|{
  278|       |  /*
  279|       |   * This sets a requested HTTP version to be used. The value is one of
  280|       |   * the listed enums in curl/curl.h.
  281|       |   */
  282|  5.36k|  switch(arg) {
  283|  1.10k|  case CURL_HTTP_VERSION_NONE:
  ------------------
  |  | 2312|  1.10k|#define CURL_HTTP_VERSION_NONE  0L /* setting this means we do not care, and
  ------------------
  |  Branch (283:3): [True: 1.10k, False: 4.26k]
  ------------------
  284|       |    /* accepted */
  285|  1.10k|    break;
  286|     18|  case CURL_HTTP_VERSION_1_0:
  ------------------
  |  | 2315|     18|#define CURL_HTTP_VERSION_1_0   1L /* please use HTTP 1.0 in the request */
  ------------------
  |  Branch (286:3): [True: 18, False: 5.35k]
  ------------------
  287|     46|  case CURL_HTTP_VERSION_1_1:
  ------------------
  |  | 2316|     46|#define CURL_HTTP_VERSION_1_1   2L /* please use HTTP 1.1 in the request */
  ------------------
  |  Branch (287:3): [True: 28, False: 5.34k]
  ------------------
  288|       |    /* accepted */
  289|     46|    break;
  290|      0|#ifdef USE_HTTP2
  291|    178|  case CURL_HTTP_VERSION_2_0:
  ------------------
  |  | 2317|    178|#define CURL_HTTP_VERSION_2_0   3L /* please use HTTP 2 in the request */
  ------------------
  |  Branch (291:3): [True: 178, False: 5.19k]
  ------------------
  292|    180|  case CURL_HTTP_VERSION_2TLS:
  ------------------
  |  | 2318|    180|#define CURL_HTTP_VERSION_2TLS  4L /* use version 2 for HTTPS, version 1.1 for
  ------------------
  |  Branch (292:3): [True: 2, False: 5.36k]
  ------------------
  293|  3.76k|  case CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE:
  ------------------
  |  | 2320|  3.76k|#define CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE 5L /* please use HTTP 2 without
  ------------------
  |  Branch (293:3): [True: 3.58k, False: 1.78k]
  ------------------
  294|       |    /* accepted */
  295|  3.76k|    break;
  296|      0|#endif
  297|       |#ifdef USE_HTTP3
  298|       |  case CURL_HTTP_VERSION_3:
  299|       |  case CURL_HTTP_VERSION_3ONLY:
  300|       |    /* accepted */
  301|       |    break;
  302|       |#endif
  303|    456|  default:
  ------------------
  |  Branch (303:3): [True: 456, False: 4.91k]
  ------------------
  304|       |    /* not accepted */
  305|    456|    if(arg < CURL_HTTP_VERSION_NONE)
  ------------------
  |  | 2312|    456|#define CURL_HTTP_VERSION_NONE  0L /* setting this means we do not care, and
  ------------------
  |  Branch (305:8): [True: 170, False: 286]
  ------------------
  306|    170|      return CURLE_BAD_FUNCTION_ARGUMENT;
  307|    286|    return CURLE_UNSUPPORTED_PROTOCOL;
  308|  5.36k|  }
  309|  4.91k|  data->set.httpwant = (unsigned char)arg;
  310|  4.91k|  return CURLE_OK;
  311|  5.36k|}
setopt.c:setopt_long_proxy:
 1031|    489|{
 1032|    489|  struct UserDefined *s = &data->set;
 1033|       |
 1034|    489|  switch(option) {
 1035|      0|  case CURLOPT_PROXYPORT:
  ------------------
  |  Branch (1035:3): [True: 0, False: 489]
  ------------------
 1036|      0|    if((arg < 0) || (arg > UINT16_MAX))
  ------------------
  |  Branch (1036:8): [True: 0, False: 0]
  |  Branch (1036:21): [True: 0, False: 0]
  ------------------
 1037|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1038|      0|    if(arg != s->proxyport)
  ------------------
  |  Branch (1038:8): [True: 0, False: 0]
  ------------------
 1039|      0|      changeproxy(data);
 1040|      0|    s->proxyport = (uint16_t)arg;
 1041|      0|    break;
 1042|      0|  case CURLOPT_PROXYAUTH:
  ------------------
  |  Branch (1042:3): [True: 0, False: 489]
  ------------------
 1043|      0|    return httpauth(data, TRUE, (unsigned long)arg);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1044|      0|  case CURLOPT_PROXYTYPE:
  ------------------
  |  Branch (1044:3): [True: 0, False: 489]
  ------------------
 1045|      0|    if((arg < CURLPROXY_HTTP) || (arg > CURLPROXY_HTTPS3))
  ------------------
  |  |  790|      0|#define CURLPROXY_HTTP            0L /* added in 7.10, new in 7.19.4 default is
  ------------------
                  if((arg < CURLPROXY_HTTP) || (arg > CURLPROXY_HTTPS3))
  ------------------
  |  |  805|      0|#define CURLPROXY_HTTPS3          8L /* HTTPS and attempt HTTP/3
  ------------------
  |  Branch (1045:8): [True: 0, False: 0]
  |  Branch (1045:34): [True: 0, False: 0]
  ------------------
 1046|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1047|      0|#ifndef USE_PROXY_HTTP3
 1048|      0|    if(arg == CURLPROXY_HTTPS3)
  ------------------
  |  |  805|      0|#define CURLPROXY_HTTPS3          8L /* HTTPS and attempt HTTP/3
  ------------------
  |  Branch (1048:8): [True: 0, False: 0]
  ------------------
 1049|      0|      return CURLE_NOT_BUILT_IN;
 1050|      0|#endif
 1051|      0|    s->proxytype = (unsigned char)arg;
 1052|      0|    break;
 1053|      0|  case CURLOPT_SOCKS5_AUTH:
  ------------------
  |  Branch (1053:3): [True: 0, False: 489]
  ------------------
 1054|      0|    if(arg & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI))
  ------------------
  |  |  831|      0|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
                  if(arg & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI))
  ------------------
  |  |  837|      0|#define CURLAUTH_GSSAPI CURLAUTH_NEGOTIATE
  |  |  ------------------
  |  |  |  |  833|      0|#define CURLAUTH_NEGOTIATE    (((unsigned long)1) << 2)
  |  |  ------------------
  ------------------
  |  Branch (1054:8): [True: 0, False: 0]
  ------------------
 1055|      0|      return CURLE_NOT_BUILT_IN;
 1056|      0|    s->socks5auth = (unsigned char)arg;
 1057|      0|    break;
 1058|    489|  default:
  ------------------
  |  Branch (1058:3): [True: 489, False: 0]
  ------------------
 1059|    489|    return CURLE_UNKNOWN_OPTION;
 1060|    489|  }
 1061|      0|  return CURLE_OK;
 1062|    489|}
setopt.c:setopt_long_ssl:
  968|    489|{
  969|    489|#ifdef USE_SSL
  970|    489|  CURLcode result = CURLE_OK;
  971|    489|  struct UserDefined *s = &data->set;
  972|    489|  switch(option) {
  973|      0|  case CURLOPT_CA_CACHE_TIMEOUT:
  ------------------
  |  Branch (973:3): [True: 0, False: 489]
  ------------------
  974|      0|    if(Curl_ssl_supports(data, SSLSUPP_CA_CACHE)) {
  ------------------
  |  |   43|      0|#define SSLSUPP_CA_CACHE     (1 << 8)
  ------------------
  |  Branch (974:8): [True: 0, False: 0]
  ------------------
  975|      0|      result = value_range(&arg, -1, -1, INT_MAX);
  976|      0|      if(!result)
  ------------------
  |  Branch (976:10): [True: 0, False: 0]
  ------------------
  977|      0|        s->general_ssl.ca_cache_timeout = (int)arg;
  978|      0|    }
  979|      0|    else
  980|      0|      result = CURLE_NOT_BUILT_IN;
  981|      0|    break;
  982|      0|  case CURLOPT_SSLVERSION:
  ------------------
  |  Branch (982:3): [True: 0, False: 489]
  ------------------
  983|      0|#ifndef CURL_DISABLE_PROXY
  984|      0|  case CURLOPT_PROXY_SSLVERSION:
  ------------------
  |  Branch (984:3): [True: 0, False: 489]
  ------------------
  985|      0|#endif
  986|      0|    return Curl_setopt_SSLVERSION(data, option, arg);
  987|      0|  case CURLOPT_SSL_FALSESTART:
  ------------------
  |  Branch (987:3): [True: 0, False: 489]
  ------------------
  988|      0|    result = CURLE_NOT_BUILT_IN;
  989|      0|    break;
  990|      0|  case CURLOPT_USE_SSL:
  ------------------
  |  Branch (990:3): [True: 0, False: 489]
  ------------------
  991|      0|    if((arg < CURLUSESSL_NONE) || (arg >= CURLUSESSL_LAST))
  ------------------
  |  |  924|      0|#define CURLUSESSL_NONE    0L /* do not attempt to use SSL */
  ------------------
  |  Branch (991:8): [True: 0, False: 0]
  |  Branch (991:35): [True: 0, False: 0]
  ------------------
  992|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  993|      0|    else
  994|      0|      s->use_ssl = (unsigned char)arg;
  995|      0|    break;
  996|      0|  case CURLOPT_SSL_OPTIONS:
  ------------------
  |  Branch (996:3): [True: 0, False: 489]
  ------------------
  997|      0|    set_ssl_options(&s->ssl, &s->ssl.primary, arg);
  998|      0|    break;
  999|      0|#ifndef CURL_DISABLE_PROXY
 1000|      0|  case CURLOPT_PROXY_SSL_OPTIONS:
  ------------------
  |  Branch (1000:3): [True: 0, False: 489]
  ------------------
 1001|      0|    set_ssl_options(&s->proxy_ssl, &s->proxy_ssl.primary, arg);
 1002|      0|    break;
 1003|      0|#endif
 1004|      0|  case CURLOPT_SSL_ENABLE_NPN:
  ------------------
  |  Branch (1004:3): [True: 0, False: 489]
  ------------------
 1005|      0|    break;
 1006|      0|  case CURLOPT_SSLENGINE_DEFAULT:
  ------------------
  |  Branch (1006:3): [True: 0, False: 489]
  ------------------
 1007|      0|    curlx_safefree(s->str[STRING_SSL_ENGINE]);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1008|      0|    result = Curl_ssl_set_engine_default(data);
 1009|      0|    break;
 1010|    489|  default:
  ------------------
  |  Branch (1010:3): [True: 489, False: 0]
  ------------------
 1011|    489|    return CURLE_UNKNOWN_OPTION;
 1012|    489|  }
 1013|      0|  return result;
 1014|       |#else  /* USE_SSL */
 1015|       |  (void)data;
 1016|       |  (void)option;
 1017|       |  (void)arg;
 1018|       |  return CURLE_UNKNOWN_OPTION;
 1019|       |#endif /* !USE_SSL */
 1020|    489|}
setopt.c:setopt_long_proto:
 1137|    489|{
 1138|    489|  CURLcode result = CURLE_OK;
 1139|    489|  struct UserDefined *s = &data->set;
 1140|       |
 1141|    489|  switch(option) {
 1142|      0|#ifndef CURL_DISABLE_TFTP
 1143|      0|  case CURLOPT_TFTP_BLKSIZE:
  ------------------
  |  Branch (1143:3): [True: 0, False: 489]
  ------------------
 1144|      0|    result = value_range(&arg, 0, TFTP_BLKSIZE_MIN, TFTP_BLKSIZE_MAX);
  ------------------
  |  |   30|      0|#define TFTP_BLKSIZE_MIN 8
  ------------------
                  result = value_range(&arg, 0, TFTP_BLKSIZE_MIN, TFTP_BLKSIZE_MAX);
  ------------------
  |  |   31|      0|#define TFTP_BLKSIZE_MAX 65464
  ------------------
 1145|      0|    if(!result)
  ------------------
  |  Branch (1145:8): [True: 0, False: 0]
  ------------------
 1146|      0|      s->tftp_blksize = (unsigned short)arg;
 1147|      0|    break;
 1148|      0|#endif
 1149|      0|#ifndef CURL_DISABLE_NETRC
 1150|      0|  case CURLOPT_NETRC:
  ------------------
  |  Branch (1150:3): [True: 0, False: 489]
  ------------------
 1151|      0|    if((arg < CURL_NETRC_IGNORED) || (arg >= CURL_NETRC_LAST))
  ------------------
  |  | 2355|      0|#define CURL_NETRC_IGNORED  0L /* The .netrc is never read.
  ------------------
  |  Branch (1151:8): [True: 0, False: 0]
  |  Branch (1151:38): [True: 0, False: 0]
  ------------------
 1152|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1153|      0|    else
 1154|      0|      s->use_netrc = (unsigned char)arg;
 1155|      0|    break;
 1156|      0|#endif
 1157|      0|#ifndef CURL_DISABLE_FTP
 1158|      0|  case CURLOPT_FTP_FILEMETHOD:
  ------------------
  |  Branch (1158:3): [True: 0, False: 489]
  ------------------
 1159|      0|    if((arg < CURLFTPMETHOD_DEFAULT) || (arg >= CURLFTPMETHOD_LAST))
  ------------------
  |  | 1019|      0|#define CURLFTPMETHOD_DEFAULT   0L /* let libcurl pick */
  ------------------
  |  Branch (1159:8): [True: 0, False: 0]
  |  Branch (1159:41): [True: 0, False: 0]
  ------------------
 1160|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1161|      0|    else
 1162|      0|      s->ftp_filemethod = (unsigned char)arg;
 1163|      0|    break;
 1164|      0|  case CURLOPT_FTP_SSL_CCC:
  ------------------
  |  Branch (1164:3): [True: 0, False: 489]
  ------------------
 1165|      0|    if((arg < CURLFTPSSL_CCC_NONE) || (arg >= CURLFTPSSL_CCC_LAST))
  ------------------
  |  |  989|      0|#define CURLFTPSSL_CCC_NONE    0L /* do not send CCC */
  ------------------
  |  Branch (1165:8): [True: 0, False: 0]
  |  Branch (1165:39): [True: 0, False: 0]
  ------------------
 1166|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1167|      0|    else
 1168|      0|      s->ftp_ccc = (unsigned char)arg;
 1169|      0|    break;
 1170|      0|  case CURLOPT_FTPSSLAUTH:
  ------------------
  |  Branch (1170:3): [True: 0, False: 489]
  ------------------
 1171|      0|    if((arg < CURLFTPAUTH_DEFAULT) || (arg >= CURLFTPAUTH_LAST))
  ------------------
  |  |  998|      0|#define CURLFTPAUTH_DEFAULT 0L /* let libcurl decide */
  ------------------
  |  Branch (1171:8): [True: 0, False: 0]
  |  Branch (1171:39): [True: 0, False: 0]
  ------------------
 1172|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1173|      0|    else
 1174|      0|      s->ftpsslauth = (unsigned char)arg;
 1175|      0|    break;
 1176|      0|  case CURLOPT_ACCEPTTIMEOUT_MS:
  ------------------
  |  Branch (1176:3): [True: 0, False: 489]
  ------------------
 1177|      0|    return setopt_set_timeout_ms(&s->accepttimeout, arg);
 1178|      0|#endif
 1179|      0|#if !defined(CURL_DISABLE_FTP) || defined(USE_SSH)
 1180|      0|  case CURLOPT_FTP_CREATE_MISSING_DIRS:
  ------------------
  |  Branch (1180:3): [True: 0, False: 489]
  ------------------
 1181|      0|    if((arg < CURLFTP_CREATE_DIR_NONE) || (arg > CURLFTP_CREATE_DIR_RETRY))
  ------------------
  |  | 1007|      0|#define CURLFTP_CREATE_DIR_NONE  0L /* do NOT create missing dirs! */
  ------------------
                  if((arg < CURLFTP_CREATE_DIR_NONE) || (arg > CURLFTP_CREATE_DIR_RETRY))
  ------------------
  |  | 1011|      0|#define CURLFTP_CREATE_DIR_RETRY 2L /* (FTP only) if CWD fails, try MKD and
  ------------------
  |  Branch (1181:8): [True: 0, False: 0]
  |  Branch (1181:43): [True: 0, False: 0]
  ------------------
 1182|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1183|      0|    else
 1184|      0|      s->ftp_create_missing_dirs = (unsigned char)arg;
 1185|      0|    break;
 1186|      0|  case CURLOPT_NEW_FILE_PERMS:
  ------------------
  |  Branch (1186:3): [True: 0, False: 489]
  ------------------
 1187|      0|    if((arg < 0) || (arg > 0777))
  ------------------
  |  Branch (1187:8): [True: 0, False: 0]
  |  Branch (1187:21): [True: 0, False: 0]
  ------------------
 1188|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1189|      0|    else
 1190|      0|      s->new_file_perms = (unsigned int)arg;
 1191|      0|    break;
 1192|      0|#endif
 1193|      0|#ifndef CURL_DISABLE_RTSP
 1194|      0|  case CURLOPT_RTSP_REQUEST:
  ------------------
  |  Branch (1194:3): [True: 0, False: 489]
  ------------------
 1195|      0|    return setopt_RTSP_REQUEST(data, arg);
 1196|      0|  case CURLOPT_RTSP_CLIENT_CSEQ:
  ------------------
  |  Branch (1196:3): [True: 0, False: 489]
  ------------------
 1197|      0|    result = value_range(&arg, 0, 0, INT_MAX);
 1198|      0|    if(!result)
  ------------------
  |  Branch (1198:8): [True: 0, False: 0]
  ------------------
 1199|      0|      data->state.rtsp_next_client_CSeq = (uint32_t)arg;
 1200|      0|    break;
 1201|      0|  case CURLOPT_RTSP_SERVER_CSEQ:
  ------------------
  |  Branch (1201:3): [True: 0, False: 489]
  ------------------
 1202|      0|    result = value_range(&arg, 0, 0, INT_MAX);
 1203|      0|    if(!result)
  ------------------
  |  Branch (1203:8): [True: 0, False: 0]
  ------------------
 1204|      0|      data->state.rtsp_next_server_CSeq = (uint32_t)arg;
 1205|      0|    break;
 1206|      0|#endif
 1207|       |#ifdef USE_SSH
 1208|       |  case CURLOPT_SSH_AUTH_TYPES:
 1209|       |    s->ssh_auth_types = (uint32_t)arg;
 1210|       |    break;
 1211|       |  case CURLOPT_NEW_DIRECTORY_PERMS:
 1212|       |    if((arg < 0) || (arg > 0777))
 1213|       |      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1214|       |    else
 1215|       |      s->new_directory_perms = (unsigned int)arg;
 1216|       |    break;
 1217|       |#endif
 1218|      0|  case CURLOPT_PROTOCOLS:
  ------------------
  |  Branch (1218:3): [True: 0, False: 489]
  ------------------
 1219|      0|    s->allowed_protocols = (curl_prot_t)arg;
 1220|      0|    break;
 1221|      0|  case CURLOPT_REDIR_PROTOCOLS:
  ------------------
  |  Branch (1221:3): [True: 0, False: 489]
  ------------------
 1222|      0|    s->redir_protocols = (curl_prot_t)arg;
 1223|      0|    break;
 1224|      0|#ifndef CURL_DISABLE_WEBSOCKETS
 1225|    489|  case CURLOPT_WS_OPTIONS:
  ------------------
  |  Branch (1225:3): [True: 489, False: 0]
  ------------------
 1226|    489|    s->ws_raw_mode = (bool)(arg & CURLWS_RAW_MODE);
  ------------------
  |  |   89|    489|#define CURLWS_RAW_MODE   (1L << 0)
  ------------------
 1227|    489|    s->ws_no_auto_pong = (bool)(arg & CURLWS_NOAUTOPONG);
  ------------------
  |  |   90|    489|#define CURLWS_NOAUTOPONG (1L << 1)
  ------------------
 1228|    489|    break;
 1229|      0|#endif
 1230|      0|  default:
  ------------------
  |  Branch (1230:3): [True: 0, False: 489]
  ------------------
 1231|      0|    return CURLE_UNKNOWN_OPTION;
 1232|    489|  }
 1233|    489|  return result;
 1234|    489|}
setopt.c:setopt_slist:
 1341|  7.82k|{
 1342|  7.82k|  CURLcode result = CURLE_OK;
 1343|  7.82k|  struct UserDefined *s = &data->set;
 1344|  7.82k|  switch(option) {
 1345|      0|#ifndef CURL_DISABLE_PROXY
 1346|      0|  case CURLOPT_PROXYHEADER:
  ------------------
  |  Branch (1346:3): [True: 0, False: 7.82k]
  ------------------
 1347|       |    /*
 1348|       |     * Set a list with proxy headers to use (or replace internals with)
 1349|       |     *
 1350|       |     * Since CURLOPT_HTTPHEADER was the only way to set HTTP headers for a
 1351|       |     * long time we remain doing it this way until CURLOPT_PROXYHEADER is
 1352|       |     * used. As soon as this option has been used, if set to anything but
 1353|       |     * NULL, custom headers for proxies are only picked from this list.
 1354|       |     *
 1355|       |     * Set this option to NULL to restore the previous behavior.
 1356|       |     */
 1357|      0|    s->proxyheaders = slist;
 1358|      0|    break;
 1359|      0|#endif
 1360|      0|#ifndef CURL_DISABLE_HTTP
 1361|      0|  case CURLOPT_HTTP200ALIASES:
  ------------------
  |  Branch (1361:3): [True: 0, False: 7.82k]
  ------------------
 1362|       |    /*
 1363|       |     * Set a list of aliases for HTTP 200 in response header
 1364|       |     */
 1365|      0|    s->http200aliases = slist;
 1366|      0|    break;
 1367|      0|#endif
 1368|      0|#if !defined(CURL_DISABLE_FTP) || defined(USE_SSH)
 1369|      0|  case CURLOPT_POSTQUOTE:
  ------------------
  |  Branch (1369:3): [True: 0, False: 7.82k]
  ------------------
 1370|       |    /*
 1371|       |     * List of RAW FTP commands to use after a transfer
 1372|       |     */
 1373|      0|    s->postquote = slist;
 1374|      0|    break;
 1375|      0|  case CURLOPT_PREQUOTE:
  ------------------
  |  Branch (1375:3): [True: 0, False: 7.82k]
  ------------------
 1376|       |    /*
 1377|       |     * List of RAW FTP commands to use prior to RETR (Wesley Laxton)
 1378|       |     */
 1379|      0|    s->prequote = slist;
 1380|      0|    break;
 1381|      0|  case CURLOPT_QUOTE:
  ------------------
  |  Branch (1381:3): [True: 0, False: 7.82k]
  ------------------
 1382|       |    /*
 1383|       |     * List of RAW FTP commands to use before a transfer
 1384|       |     */
 1385|      0|    s->quote = slist;
 1386|      0|    break;
 1387|      0|#endif
 1388|      0|  case CURLOPT_RESOLVE:
  ------------------
  |  Branch (1388:3): [True: 0, False: 7.82k]
  ------------------
 1389|       |    /*
 1390|       |     * List of HOST:PORT:[addresses] strings to populate the DNS cache with
 1391|       |     * Entries added this way will remain in the cache until explicitly
 1392|       |     * removed or the handle is cleaned up.
 1393|       |     *
 1394|       |     * Prefix the HOST with plus sign (+) to have the entry expire like
 1395|       |     * automatically added entries.
 1396|       |     *
 1397|       |     * Prefix the HOST with dash (-) to _remove_ the entry from the cache.
 1398|       |     *
 1399|       |     * This API can remove any entry from the DNS cache, but only entries
 1400|       |     * that are not actually in use right now will be pruned immediately.
 1401|       |     */
 1402|      0|    s->resolve = slist;
 1403|      0|    data->state.resolve = s->resolve;
 1404|      0|    break;
 1405|      0|#if !defined(CURL_DISABLE_HTTP) || !defined(CURL_DISABLE_MIME)
 1406|      0|  case CURLOPT_HTTPHEADER:
  ------------------
  |  Branch (1406:3): [True: 0, False: 7.82k]
  ------------------
 1407|       |    /*
 1408|       |     * Set a list with HTTP headers to use (or replace internals with)
 1409|       |     */
 1410|      0|    s->headers = slist;
 1411|      0|    break;
 1412|      0|#endif
 1413|      0|#ifndef CURL_DISABLE_TELNET
 1414|      0|  case CURLOPT_TELNETOPTIONS:
  ------------------
  |  Branch (1414:3): [True: 0, False: 7.82k]
  ------------------
 1415|       |    /*
 1416|       |     * Set a linked list of telnet options
 1417|       |     */
 1418|      0|    s->telnet_options = slist;
 1419|      0|    break;
 1420|      0|#endif
 1421|      0|#ifndef CURL_DISABLE_SMTP
 1422|      0|  case CURLOPT_MAIL_RCPT:
  ------------------
  |  Branch (1422:3): [True: 0, False: 7.82k]
  ------------------
 1423|       |    /* Set the list of mail recipients */
 1424|      0|    s->mail_rcpt = slist;
 1425|      0|    break;
 1426|      0|#endif
 1427|  7.82k|  case CURLOPT_CONNECT_TO:
  ------------------
  |  Branch (1427:3): [True: 7.82k, False: 0]
  ------------------
 1428|  7.82k|    s->connect_to = slist;
 1429|  7.82k|    break;
 1430|      0|  default:
  ------------------
  |  Branch (1430:3): [True: 0, False: 7.82k]
  ------------------
 1431|      0|    return CURLE_UNKNOWN_OPTION;
 1432|  7.82k|  }
 1433|  7.82k|  return result;
 1434|  7.82k|}
setopt.c:setopt_cptr:
 1903|  83.9k|{
 1904|  83.9k|  CURLcode result;
 1905|  83.9k|  struct UserDefined *s = &data->set;
 1906|  83.9k|#ifndef CURL_DISABLE_PROXY
 1907|  83.9k|  result = setopt_cptr_proxy(data, option, ptr);
 1908|  83.9k|  if(result != CURLE_UNKNOWN_OPTION)
  ------------------
  |  Branch (1908:6): [True: 0, False: 83.9k]
  ------------------
 1909|      0|    return result;
 1910|  83.9k|#endif
 1911|  83.9k|  result = CURLE_OK;
 1912|       |
 1913|  83.9k|  switch(option) {
 1914|      0|  case CURLOPT_CAINFO:
  ------------------
  |  Branch (1914:3): [True: 0, False: 83.9k]
  ------------------
 1915|       |    /*
 1916|       |     * Set CA info for SSL connection. Specify filename of the CA certificate
 1917|       |     */
 1918|      0|    s->ssl.custom_cafile = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1919|      0|    return Curl_setstropt(&s->str[STRING_SSL_CAFILE], ptr);
 1920|      0|  case CURLOPT_CAPATH:
  ------------------
  |  Branch (1920:3): [True: 0, False: 83.9k]
  ------------------
 1921|       |    /*
 1922|       |     * Set CA path info for SSL connection. Specify directory name of the CA
 1923|       |     * certificates which have been prepared using openssl c_rehash utility.
 1924|       |     */
 1925|      0|#ifdef USE_SSL
 1926|      0|    if(Curl_ssl_supports(data, SSLSUPP_CA_PATH)) {
  ------------------
  |  |   35|      0|#define SSLSUPP_CA_PATH      (1 << 0) /* supports CAPATH */
  ------------------
  |  Branch (1926:8): [True: 0, False: 0]
  ------------------
 1927|       |      /* This does not work on Windows. */
 1928|      0|      s->ssl.custom_capath = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1929|      0|      return Curl_setstropt(&s->str[STRING_SSL_CAPATH], ptr);
 1930|      0|    }
 1931|      0|#endif
 1932|      0|    return CURLE_NOT_BUILT_IN;
 1933|      0|  case CURLOPT_CRLFILE:
  ------------------
  |  Branch (1933:3): [True: 0, False: 83.9k]
  ------------------
 1934|       |    /*
 1935|       |     * Set CRL file info for SSL connection. Specify filename of the CRL
 1936|       |     * to check certificates revocation
 1937|       |     */
 1938|      0|    if(Curl_ssl_supports(data, SSLSUPP_CRLFILE))
  ------------------
  |  |   48|      0|#define SSLSUPP_CRLFILE      (1 << 13) /* supports CURLOPT_CRLFILE */
  ------------------
  |  Branch (1938:8): [True: 0, False: 0]
  ------------------
 1939|      0|      return Curl_setstropt(&s->str[STRING_SSL_CRLFILE], ptr);
 1940|      0|    return CURLE_NOT_BUILT_IN;
 1941|      0|  case CURLOPT_SSL_CIPHER_LIST:
  ------------------
  |  Branch (1941:3): [True: 0, False: 83.9k]
  ------------------
 1942|      0|    if(Curl_ssl_supports(data, SSLSUPP_CIPHER_LIST))
  ------------------
  |  |   44|      0|#define SSLSUPP_CIPHER_LIST  (1 << 9) /* supports TLS 1.0-1.2 ciphersuites */
  ------------------
  |  Branch (1942:8): [True: 0, False: 0]
  ------------------
 1943|       |      /* set a list of cipher we want to use in the SSL connection */
 1944|      0|      return Curl_setstropt(&s->str[STRING_SSL_CIPHER_LIST], ptr);
 1945|      0|    else
 1946|      0|      return CURLE_NOT_BUILT_IN;
 1947|      0|  case CURLOPT_TLS13_CIPHERS:
  ------------------
  |  Branch (1947:3): [True: 0, False: 83.9k]
  ------------------
 1948|      0|    if(Curl_ssl_supports(data, SSLSUPP_TLS13_CIPHERSUITES)) {
  ------------------
  |  |   40|      0|#define SSLSUPP_TLS13_CIPHERSUITES (1 << 5) /* supports TLS 1.3 ciphersuites */
  ------------------
  |  Branch (1948:8): [True: 0, False: 0]
  ------------------
 1949|       |      /* set preferred list of TLS 1.3 cipher suites */
 1950|      0|      return Curl_setstropt(&s->str[STRING_SSL_CIPHER13_LIST], ptr);
 1951|      0|    }
 1952|      0|    else
 1953|      0|      return CURLE_NOT_BUILT_IN;
 1954|      0|  case CURLOPT_RANDOM_FILE:
  ------------------
  |  Branch (1954:3): [True: 0, False: 83.9k]
  ------------------
 1955|      0|    break;
 1956|      0|  case CURLOPT_EGDSOCKET:
  ------------------
  |  Branch (1956:3): [True: 0, False: 83.9k]
  ------------------
 1957|      0|    break;
 1958|      0|  case CURLOPT_REQUEST_TARGET:
  ------------------
  |  Branch (1958:3): [True: 0, False: 83.9k]
  ------------------
 1959|      0|    return Curl_setstropt(&s->str[STRING_TARGET], ptr);
 1960|      0|#ifndef CURL_DISABLE_NETRC
 1961|  7.82k|  case CURLOPT_NETRC_FILE:
  ------------------
  |  Branch (1961:3): [True: 7.82k, False: 76.1k]
  ------------------
 1962|       |    /*
 1963|       |     * Use this file instead of the $HOME/.netrc file
 1964|       |     */
 1965|  7.82k|    return Curl_setstropt(&s->str[STRING_NETRC_FILE], ptr);
 1966|      0|#endif
 1967|       |
 1968|      0|#if !defined(CURL_DISABLE_HTTP) || !defined(CURL_DISABLE_MQTT)
 1969|      0|  case CURLOPT_COPYPOSTFIELDS:
  ------------------
  |  Branch (1969:3): [True: 0, False: 83.9k]
  ------------------
 1970|      0|    return setopt_copypostfields(ptr, s);
 1971|       |
 1972|  1.56k|  case CURLOPT_POSTFIELDS:
  ------------------
  |  Branch (1972:3): [True: 1.56k, False: 82.4k]
  ------------------
 1973|       |    /*
 1974|       |     * Like above, but use static data instead of copying it.
 1975|       |     */
 1976|  1.56k|    s->postfields = ptr;
 1977|       |    /* Release old copied data. */
 1978|  1.56k|    curlx_safefree(s->str[STRING_COPYPOSTFIELDS]);
  ------------------
  |  | 1327|  1.56k|  do {                      \
  |  | 1328|  1.56k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  1.56k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  1.56k|    (ptr) = NULL;           \
  |  | 1330|  1.56k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 1.56k]
  |  |  ------------------
  ------------------
 1979|  1.56k|    s->method = HTTPREQ_POST;
 1980|  1.56k|    break;
 1981|      0|#endif /* !CURL_DISABLE_HTTP || !CURL_DISABLE_MQTT */
 1982|       |
 1983|      0|#ifndef CURL_DISABLE_HTTP
 1984|      0|  case CURLOPT_TRAILERDATA:
  ------------------
  |  Branch (1984:3): [True: 0, False: 83.9k]
  ------------------
 1985|      0|    s->trailer_data = ptr;
 1986|      0|    break;
 1987|  1.64k|  case CURLOPT_ACCEPT_ENCODING:
  ------------------
  |  Branch (1987:3): [True: 1.64k, False: 82.3k]
  ------------------
 1988|       |    /*
 1989|       |     * String to use at the value of Accept-Encoding header.
 1990|       |     *
 1991|       |     * If the encoding is set to "" we use an Accept-Encoding header that
 1992|       |     * encompasses all the encodings we support.
 1993|       |     * If the encoding is set to NULL we do not send an Accept-Encoding header
 1994|       |     * and ignore an received Content-Encoding header.
 1995|       |     *
 1996|       |     */
 1997|  1.64k|    if(ptr && !*ptr) {
  ------------------
  |  Branch (1997:8): [True: 1.64k, False: 0]
  |  Branch (1997:15): [True: 1.36k, False: 275]
  ------------------
 1998|  1.36k|      ptr = Curl_get_content_encodings();
 1999|  1.36k|      if(ptr) {
  ------------------
  |  Branch (1999:10): [True: 1.36k, False: 0]
  ------------------
 2000|  1.36k|        curlx_free(s->str[STRING_ENCODING]);
  ------------------
  |  | 1483|  1.36k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2001|  1.36k|        s->str[STRING_ENCODING] = ptr;
 2002|  1.36k|      }
 2003|      0|      else
 2004|      0|        result = CURLE_OUT_OF_MEMORY;
 2005|  1.36k|      return result;
 2006|  1.36k|    }
 2007|    275|    return Curl_setstropt(&s->str[STRING_ENCODING], ptr);
 2008|       |
 2009|      0|#ifndef CURL_DISABLE_AWS
 2010|      0|  case CURLOPT_AWS_SIGV4:
  ------------------
  |  Branch (2010:3): [True: 0, False: 83.9k]
  ------------------
 2011|       |    /*
 2012|       |     * String that is merged to some authentication
 2013|       |     * parameters are used by the algorithm.
 2014|       |     */
 2015|      0|    result = Curl_setstropt(&s->str[STRING_AWS_SIGV4], ptr);
 2016|       |    /*
 2017|       |     * Basic been set by default it need to be unset here
 2018|       |     */
 2019|      0|    if(s->str[STRING_AWS_SIGV4])
  ------------------
  |  Branch (2019:8): [True: 0, False: 0]
  ------------------
 2020|      0|      s->httpauth = CURLAUTH_AWS_SIGV4;
  ------------------
  |  |  845|      0|#define CURLAUTH_AWS_SIGV4    (((unsigned long)1) << 7)
  ------------------
 2021|      0|    break;
 2022|      0|#endif
 2023|  1.70k|  case CURLOPT_REFERER:
  ------------------
  |  Branch (2023:3): [True: 1.70k, False: 82.2k]
  ------------------
 2024|       |    /*
 2025|       |     * String to set in the HTTP Referer: field.
 2026|       |     */
 2027|  1.70k|    result = Curl_setstropt(&s->str[STRING_SET_REFERER], ptr);
 2028|  1.70k|    break;
 2029|       |
 2030|  6.45k|  case CURLOPT_USERAGENT:
  ------------------
  |  Branch (2030:3): [True: 6.45k, False: 77.5k]
  ------------------
 2031|       |    /*
 2032|       |     * String to use in the HTTP User-Agent field
 2033|       |     */
 2034|  6.45k|    return Curl_setstropt(&s->str[STRING_USERAGENT], ptr);
 2035|       |
 2036|      0|#ifndef CURL_DISABLE_COOKIES
 2037|      0|  case CURLOPT_COOKIE:
  ------------------
  |  Branch (2037:3): [True: 0, False: 83.9k]
  ------------------
 2038|       |    /*
 2039|       |     * Cookie string to send to the remote server in the request.
 2040|       |     */
 2041|      0|    return Curl_setstropt(&s->str[STRING_COOKIE], ptr);
 2042|       |
 2043|      0|  case CURLOPT_COOKIEFILE:
  ------------------
  |  Branch (2043:3): [True: 0, False: 83.9k]
  ------------------
 2044|      0|    return cookiefile(data, ptr);
 2045|       |
 2046|  7.82k|  case CURLOPT_COOKIEJAR:
  ------------------
  |  Branch (2046:3): [True: 7.82k, False: 76.1k]
  ------------------
 2047|       |    /*
 2048|       |     * Set cookie filename to dump all cookies to when we are done.
 2049|       |     */
 2050|  7.82k|    result = Curl_setstropt(&s->str[STRING_COOKIEJAR], ptr);
 2051|  7.82k|    if(!result) {
  ------------------
  |  Branch (2051:8): [True: 7.82k, False: 0]
  ------------------
 2052|       |      /*
 2053|       |       * Activate the cookie parser. This may or may not already
 2054|       |       * have been made.
 2055|       |       */
 2056|  7.82k|      if(!data->cookies)
  ------------------
  |  Branch (2056:10): [True: 7.82k, False: 0]
  ------------------
 2057|  7.82k|        data->cookies = Curl_cookie_init();
 2058|  7.82k|      if(!data->cookies)
  ------------------
  |  Branch (2058:10): [True: 0, False: 7.82k]
  ------------------
 2059|      0|        result = CURLE_OUT_OF_MEMORY;
 2060|  7.82k|      else
 2061|  7.82k|        data->state.cookie_engine = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
 2062|  7.82k|    }
 2063|  7.82k|    break;
 2064|       |
 2065|      0|  case CURLOPT_COOKIELIST:
  ------------------
  |  Branch (2065:3): [True: 0, False: 83.9k]
  ------------------
 2066|      0|    return cookielist(data, ptr);
 2067|      0|#endif /* !CURL_DISABLE_COOKIES */
 2068|       |
 2069|      0|#endif /* !CURL_DISABLE_HTTP */
 2070|       |
 2071|    238|  case CURLOPT_CUSTOMREQUEST:
  ------------------
  |  Branch (2071:3): [True: 238, False: 83.7k]
  ------------------
 2072|       |    /*
 2073|       |     * Set a custom string to use as request
 2074|       |     */
 2075|    238|    return Curl_setstropt(&s->str[STRING_CUSTOMREQUEST], ptr);
 2076|       |
 2077|       |    /* we do not set s->method = HTTPREQ_CUSTOM; here, we continue as if we
 2078|       |       were using the already set type and this changes the actual request
 2079|       |       keyword */
 2080|      0|  case CURLOPT_SERVICE_NAME:
  ------------------
  |  Branch (2080:3): [True: 0, False: 83.9k]
  ------------------
 2081|       |    /*
 2082|       |     * Set authentication service name for DIGEST-MD5, Kerberos 5 and SPNEGO
 2083|       |     */
 2084|      0|    return Curl_setstropt(&s->str[STRING_SERVICE_NAME], ptr);
 2085|       |
 2086|      0|  case CURLOPT_HEADERDATA:
  ------------------
  |  Branch (2086:3): [True: 0, False: 83.9k]
  ------------------
 2087|       |    /*
 2088|       |     * Custom pointer to pass the header write callback function
 2089|       |     */
 2090|      0|    s->writeheader = ptr;
 2091|      0|    break;
 2092|  7.82k|  case CURLOPT_READDATA:
  ------------------
  |  Branch (2092:3): [True: 7.82k, False: 76.1k]
  ------------------
 2093|       |    /*
 2094|       |     * FILE pointer to read the file to be uploaded from. Or possibly used as
 2095|       |     * argument to the read callback.
 2096|       |     */
 2097|  7.82k|    s->in_set = ptr;
 2098|  7.82k|    break;
 2099|  1.98k|  case CURLOPT_WRITEDATA:
  ------------------
  |  Branch (2099:3): [True: 1.98k, False: 81.9k]
  ------------------
 2100|       |    /*
 2101|       |     * FILE pointer to write to. Or possibly used as argument to the write
 2102|       |     * callback.
 2103|       |     */
 2104|  1.98k|    s->out = ptr;
 2105|  1.98k|    break;
 2106|      0|  case CURLOPT_DEBUGDATA:
  ------------------
  |  Branch (2106:3): [True: 0, False: 83.9k]
  ------------------
 2107|       |    /*
 2108|       |     * Set to a void * that should receive all error writes. This
 2109|       |     * defaults to CURLOPT_STDERR for normal operations.
 2110|       |     */
 2111|      0|    s->debugdata = ptr;
 2112|      0|    break;
 2113|      0|  case CURLOPT_PROGRESSDATA:
  ------------------
  |  | 1343|      0|#define CURLOPT_PROGRESSDATA CURLOPT_XFERINFODATA
  ------------------
  |  Branch (2113:3): [True: 0, False: 83.9k]
  ------------------
 2114|       |    /*
 2115|       |     * Custom client data to pass to the progress callback
 2116|       |     */
 2117|      0|    s->progress_client = ptr;
 2118|      0|    break;
 2119|      0|  case CURLOPT_SEEKDATA:
  ------------------
  |  Branch (2119:3): [True: 0, False: 83.9k]
  ------------------
 2120|       |    /*
 2121|       |     * Seek control callback. Might be NULL.
 2122|       |     */
 2123|      0|    s->seek_client = ptr;
 2124|      0|    break;
 2125|      0|  case CURLOPT_IOCTLDATA:
  ------------------
  |  Branch (2125:3): [True: 0, False: 83.9k]
  ------------------
 2126|       |    /*
 2127|       |     * I/O control data pointer. Might be NULL.
 2128|       |     */
 2129|      0|    s->ioctl_client = ptr;
 2130|      0|    break;
 2131|      0|  case CURLOPT_SSL_CTX_DATA:
  ------------------
  |  Branch (2131:3): [True: 0, False: 83.9k]
  ------------------
 2132|       |    /*
 2133|       |     * Set an SSL_CTX callback parameter pointer
 2134|       |     */
 2135|      0|#ifdef USE_SSL
 2136|      0|    if(Curl_ssl_supports(data, SSLSUPP_SSL_CTX)) {
  ------------------
  |  |   38|      0|#define SSLSUPP_SSL_CTX      (1 << 3) /* supports CURLOPT_SSL_CTX */
  ------------------
  |  Branch (2136:8): [True: 0, False: 0]
  ------------------
 2137|      0|      s->ssl.fsslctxp = ptr;
 2138|      0|      break;
 2139|      0|    }
 2140|      0|    else
 2141|      0|#endif
 2142|      0|      return CURLE_NOT_BUILT_IN;
 2143|      0|  case CURLOPT_SOCKOPTDATA:
  ------------------
  |  Branch (2143:3): [True: 0, False: 83.9k]
  ------------------
 2144|       |    /*
 2145|       |     * socket callback data pointer. Might be NULL.
 2146|       |     */
 2147|      0|    s->sockopt_client = ptr;
 2148|      0|    break;
 2149|  7.82k|  case CURLOPT_OPENSOCKETDATA:
  ------------------
  |  Branch (2149:3): [True: 7.82k, False: 76.1k]
  ------------------
 2150|       |    /*
 2151|       |     * socket callback data pointer. Might be NULL.
 2152|       |     */
 2153|  7.82k|    s->opensocket_client = ptr;
 2154|  7.82k|    break;
 2155|      0|  case CURLOPT_RESOLVER_START_DATA:
  ------------------
  |  Branch (2155:3): [True: 0, False: 83.9k]
  ------------------
 2156|       |    /*
 2157|       |     * resolver start callback data pointer. Might be NULL.
 2158|       |     */
 2159|      0|    s->resolver_start_client = ptr;
 2160|      0|    break;
 2161|      0|  case CURLOPT_CLOSESOCKETDATA:
  ------------------
  |  Branch (2161:3): [True: 0, False: 83.9k]
  ------------------
 2162|       |    /*
 2163|       |     * socket callback data pointer. Might be NULL.
 2164|       |     */
 2165|      0|    s->closesocket_client = ptr;
 2166|      0|    break;
 2167|      0|  case CURLOPT_PREREQDATA:
  ------------------
  |  Branch (2167:3): [True: 0, False: 83.9k]
  ------------------
 2168|      0|    s->prereq_userp = ptr;
 2169|      0|    break;
 2170|      0|  case CURLOPT_ERRORBUFFER:
  ------------------
  |  Branch (2170:3): [True: 0, False: 83.9k]
  ------------------
 2171|       |    /*
 2172|       |     * Error buffer provided by the caller to get the human readable error
 2173|       |     * string in.
 2174|       |     */
 2175|      0|    s->errorbuffer = ptr;
 2176|      0|    break;
 2177|       |
 2178|      0|#ifndef CURL_DISABLE_FTP
 2179|      0|  case CURLOPT_FTPPORT:
  ------------------
  |  Branch (2179:3): [True: 0, False: 83.9k]
  ------------------
 2180|       |    /*
 2181|       |     * Use FTP PORT, this also specifies which IP address to use
 2182|       |     */
 2183|      0|    result = Curl_setstropt(&s->str[STRING_FTPPORT], ptr);
 2184|      0|    s->ftp_use_port = !!(s->str[STRING_FTPPORT]);
 2185|      0|    break;
 2186|       |
 2187|      0|  case CURLOPT_FTP_ACCOUNT:
  ------------------
  |  Branch (2187:3): [True: 0, False: 83.9k]
  ------------------
 2188|      0|    return Curl_setstropt(&s->str[STRING_FTP_ACCOUNT], ptr);
 2189|       |
 2190|      0|  case CURLOPT_FTP_ALTERNATIVE_TO_USER:
  ------------------
  |  Branch (2190:3): [True: 0, False: 83.9k]
  ------------------
 2191|      0|    return Curl_setstropt(&s->str[STRING_FTP_ALTERNATIVE_TO_USER], ptr);
 2192|       |
 2193|      0|  case CURLOPT_KRBLEVEL:
  ------------------
  |  Branch (2193:3): [True: 0, False: 83.9k]
  ------------------
 2194|      0|    return CURLE_NOT_BUILT_IN; /* removed in 8.17.0 */
 2195|      0|  case CURLOPT_CHUNK_DATA:
  ------------------
  |  Branch (2195:3): [True: 0, False: 83.9k]
  ------------------
 2196|      0|    s->wildcardptr = ptr;
 2197|      0|    break;
 2198|      0|  case CURLOPT_FNMATCH_DATA:
  ------------------
  |  Branch (2198:3): [True: 0, False: 83.9k]
  ------------------
 2199|      0|    s->fnmatch_data = ptr;
 2200|      0|    break;
 2201|      0|#endif
 2202|  7.82k|  case CURLOPT_URL:
  ------------------
  |  Branch (2202:3): [True: 7.82k, False: 76.1k]
  ------------------
 2203|       |    /*
 2204|       |     * The URL to fetch.
 2205|       |     */
 2206|  7.82k|    result = Curl_setstropt(&s->str[STRING_SET_URL], ptr);
 2207|  7.82k|    Curl_bufref_set(&data->state.url, s->str[STRING_SET_URL], 0, NULL);
 2208|  7.82k|    break;
 2209|       |
 2210|      0|  case CURLOPT_USERPWD:
  ------------------
  |  Branch (2210:3): [True: 0, False: 83.9k]
  ------------------
 2211|       |    /*
 2212|       |     * user:password to use in the operation
 2213|       |     */
 2214|      0|    return setstropt_userpwd(ptr, &s->str[STRING_USERNAME],
 2215|      0|                             &s->str[STRING_PASSWORD]);
 2216|       |
 2217|      0|  case CURLOPT_USERNAME:
  ------------------
  |  Branch (2217:3): [True: 0, False: 83.9k]
  ------------------
 2218|       |    /*
 2219|       |     * authentication username to use in the operation
 2220|       |     */
 2221|      0|    return Curl_setstropt(&s->str[STRING_USERNAME], ptr);
 2222|       |
 2223|      0|  case CURLOPT_PASSWORD:
  ------------------
  |  Branch (2223:3): [True: 0, False: 83.9k]
  ------------------
 2224|       |    /*
 2225|       |     * authentication password to use in the operation
 2226|       |     */
 2227|      0|    return Curl_setstropt(&s->str[STRING_PASSWORD], ptr);
 2228|       |
 2229|      0|  case CURLOPT_LOGIN_OPTIONS:
  ------------------
  |  Branch (2229:3): [True: 0, False: 83.9k]
  ------------------
 2230|       |    /*
 2231|       |     * authentication options to use in the operation
 2232|       |     */
 2233|      0|    return Curl_setstropt(&s->str[STRING_OPTIONS], ptr);
 2234|       |
 2235|      0|  case CURLOPT_XOAUTH2_BEARER:
  ------------------
  |  Branch (2235:3): [True: 0, False: 83.9k]
  ------------------
 2236|       |    /*
 2237|       |     * OAuth 2.0 bearer token to use in the operation
 2238|       |     */
 2239|      0|    return Curl_setstropt(&s->str[STRING_BEARER], ptr);
 2240|      0|  case CURLOPT_RANGE:
  ------------------
  |  Branch (2240:3): [True: 0, False: 83.9k]
  ------------------
 2241|       |    /*
 2242|       |     * What range of the file you want to transfer
 2243|       |     */
 2244|      0|    return Curl_setstropt(&s->str[STRING_SET_RANGE], ptr);
 2245|      0|  case CURLOPT_SSLCERT:
  ------------------
  |  Branch (2245:3): [True: 0, False: 83.9k]
  ------------------
 2246|       |    /*
 2247|       |     * String that holds filename of the SSL certificate to use
 2248|       |     */
 2249|      0|    return Curl_setstropt(&s->str[STRING_CERT], ptr);
 2250|      0|  case CURLOPT_SSLCERTTYPE:
  ------------------
  |  Branch (2250:3): [True: 0, False: 83.9k]
  ------------------
 2251|       |    /*
 2252|       |     * String that holds file type of the SSL certificate to use
 2253|       |     */
 2254|      0|    return Curl_setstropt(&s->str[STRING_CERT_TYPE], ptr);
 2255|      0|  case CURLOPT_SSLKEY:
  ------------------
  |  Branch (2255:3): [True: 0, False: 83.9k]
  ------------------
 2256|       |    /*
 2257|       |     * String that holds filename of the SSL key to use
 2258|       |     */
 2259|      0|    return Curl_setstropt(&s->str[STRING_KEY], ptr);
 2260|      0|  case CURLOPT_SSLKEYTYPE:
  ------------------
  |  Branch (2260:3): [True: 0, False: 83.9k]
  ------------------
 2261|       |    /*
 2262|       |     * String that holds file type of the SSL key to use
 2263|       |     */
 2264|      0|    return Curl_setstropt(&s->str[STRING_KEY_TYPE], ptr);
 2265|      0|  case CURLOPT_KEYPASSWD:
  ------------------
  |  Branch (2265:3): [True: 0, False: 83.9k]
  ------------------
 2266|       |    /*
 2267|       |     * String that holds the SSL or SSH private key password.
 2268|       |     */
 2269|      0|    return Curl_setstropt(&s->str[STRING_KEY_PASSWD], ptr);
 2270|      0|  case CURLOPT_SSLENGINE:
  ------------------
  |  Branch (2270:3): [True: 0, False: 83.9k]
  ------------------
 2271|       |    /*
 2272|       |     * String that holds the SSL crypto engine.
 2273|       |     */
 2274|      0|    if(ptr && ptr[0]) {
  ------------------
  |  Branch (2274:8): [True: 0, False: 0]
  |  Branch (2274:15): [True: 0, False: 0]
  ------------------
 2275|      0|      result = Curl_setstropt(&s->str[STRING_SSL_ENGINE], ptr);
 2276|      0|      if(!result) {
  ------------------
  |  Branch (2276:10): [True: 0, False: 0]
  ------------------
 2277|      0|        result = Curl_ssl_set_engine(data, ptr);
 2278|      0|      }
 2279|      0|    }
 2280|      0|    break;
 2281|      0|  case CURLOPT_INTERFACE:
  ------------------
  |  Branch (2281:3): [True: 0, False: 83.9k]
  ------------------
 2282|       |    /*
 2283|       |     * Set what interface or address/hostname to bind the socket to when
 2284|       |     * performing an operation and thus what from-IP your connection will use.
 2285|       |     */
 2286|      0|    return setstropt_interface(ptr,
 2287|      0|                               &s->str[STRING_DEVICE],
 2288|      0|                               &s->str[STRING_INTERFACE],
 2289|      0|                               &s->str[STRING_BINDHOST]);
 2290|      0|  case CURLOPT_ISSUERCERT:
  ------------------
  |  Branch (2290:3): [True: 0, False: 83.9k]
  ------------------
 2291|       |    /*
 2292|       |     * Set Issuer certificate file
 2293|       |     * to check certificates issuer
 2294|       |     */
 2295|      0|    if(Curl_ssl_supports(data, SSLSUPP_ISSUERCERT))
  ------------------
  |  |   46|      0|#define SSLSUPP_ISSUERCERT   (1 << 11) /* supports CURLOPT_ISSUERCERT */
  ------------------
  |  Branch (2295:8): [True: 0, False: 0]
  ------------------
 2296|      0|      return Curl_setstropt(&s->str[STRING_SSL_ISSUERCERT], ptr);
 2297|      0|    return CURLE_NOT_BUILT_IN;
 2298|      0|  case CURLOPT_PRIVATE:
  ------------------
  |  Branch (2298:3): [True: 0, False: 83.9k]
  ------------------
 2299|       |    /*
 2300|       |     * Set private data pointer.
 2301|       |     */
 2302|      0|    s->private_data = ptr;
 2303|      0|    break;
 2304|      0|#ifdef USE_SSL
 2305|      0|  case CURLOPT_SSL_EC_CURVES:
  ------------------
  |  Branch (2305:3): [True: 0, False: 83.9k]
  ------------------
 2306|       |    /*
 2307|       |     * Set accepted curves in SSL connection setup.
 2308|       |     * Specify colon-delimited list of curve algorithm names.
 2309|       |     */
 2310|      0|    if(Curl_ssl_supports(data, SSLSUPP_SSL_EC_CURVES))
  ------------------
  |  |   47|      0|#define SSLSUPP_SSL_EC_CURVES (1 << 12) /* supports CURLOPT_SSL_EC_CURVES */
  ------------------
  |  Branch (2310:8): [True: 0, False: 0]
  ------------------
 2311|      0|      return Curl_setstropt(&s->str[STRING_SSL_EC_CURVES], ptr);
 2312|      0|    return CURLE_NOT_BUILT_IN;
 2313|      0|  case CURLOPT_SSL_SIGNATURE_ALGORITHMS:
  ------------------
  |  Branch (2313:3): [True: 0, False: 83.9k]
  ------------------
 2314|       |    /*
 2315|       |     * Set accepted signature algorithms.
 2316|       |     * Specify colon-delimited list of signature scheme names.
 2317|       |     */
 2318|      0|    if(Curl_ssl_supports(data, SSLSUPP_SIGNATURE_ALGORITHMS))
  ------------------
  |  |   45|      0|#define SSLSUPP_SIGNATURE_ALGORITHMS (1 << 10) /* supports TLS sigalgs */
  ------------------
  |  Branch (2318:8): [True: 0, False: 0]
  ------------------
 2319|      0|      return Curl_setstropt(&s->str[STRING_SSL_SIGNATURE_ALGORITHMS], ptr);
 2320|      0|    return CURLE_NOT_BUILT_IN;
 2321|      0|  case CURLOPT_PINNEDPUBLICKEY:
  ------------------
  |  Branch (2321:3): [True: 0, False: 83.9k]
  ------------------
 2322|       |    /*
 2323|       |     * Set pinned public key for SSL connection.
 2324|       |     * Specify filename of the public key in DER format.
 2325|       |     */
 2326|      0|    if(Curl_ssl_supports(data, SSLSUPP_PINNEDPUBKEY))
  ------------------
  |  |   37|      0|#define SSLSUPP_PINNEDPUBKEY (1 << 2) /* supports CURLOPT_PINNEDPUBLICKEY */
  ------------------
  |  Branch (2326:8): [True: 0, False: 0]
  ------------------
 2327|      0|      return Curl_setstropt(&s->str[STRING_SSL_PINNEDPUBLICKEY], ptr);
 2328|      0|    return CURLE_NOT_BUILT_IN;
 2329|      0|#endif
 2330|       |#ifdef USE_SSH
 2331|       |  case CURLOPT_SSH_PUBLIC_KEYFILE:
 2332|       |    /*
 2333|       |     * Use this file instead of the $HOME/.ssh/id_dsa.pub file
 2334|       |     */
 2335|       |    return Curl_setstropt(&s->str[STRING_SSH_PUBLIC_KEY], ptr);
 2336|       |  case CURLOPT_SSH_PRIVATE_KEYFILE:
 2337|       |    /*
 2338|       |     * Use this file instead of the $HOME/.ssh/id_dsa file
 2339|       |     */
 2340|       |    return Curl_setstropt(&s->str[STRING_SSH_PRIVATE_KEY], ptr);
 2341|       |  case CURLOPT_SSH_KEYDATA:
 2342|       |    /*
 2343|       |     * Custom client data to pass to the SSH keyfunc callback
 2344|       |     */
 2345|       |    s->ssh_keyfunc_userp = ptr;
 2346|       |    break;
 2347|       |#if defined(USE_LIBSSH2) || defined(USE_LIBSSH)
 2348|       |  case CURLOPT_SSH_HOST_PUBLIC_KEY_MD5:
 2349|       |    /*
 2350|       |     * Option to allow for the MD5 of the host public key to be checked
 2351|       |     * for validation purposes.
 2352|       |     */
 2353|       |    return Curl_setstropt(&s->str[STRING_SSH_HOST_PUBLIC_KEY_MD5], ptr);
 2354|       |  case CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256:
 2355|       |    /*
 2356|       |     * Option to allow for the SHA256 of the host public key to be checked
 2357|       |     * for validation purposes.
 2358|       |     */
 2359|       |    return Curl_setstropt(&s->str[STRING_SSH_HOST_PUBLIC_KEY_SHA256], ptr);
 2360|       |  case CURLOPT_SSH_KNOWNHOSTS:
 2361|       |    /*
 2362|       |     * Store the filename to read known hosts from.
 2363|       |     */
 2364|       |    return Curl_setstropt(&s->str[STRING_SSH_KNOWNHOSTS], ptr);
 2365|       |#endif
 2366|       |#ifdef USE_LIBSSH2
 2367|       |  case CURLOPT_SSH_HOSTKEYDATA:
 2368|       |    /*
 2369|       |     * Custom client data to pass to the SSH keyfunc callback
 2370|       |     */
 2371|       |    s->ssh_hostkeyfunc_userp = ptr;
 2372|       |    break;
 2373|       |#endif /* USE_LIBSSH2 */
 2374|       |#endif /* USE_SSH */
 2375|  7.82k|  case CURLOPT_PROTOCOLS_STR:
  ------------------
  |  Branch (2375:3): [True: 7.82k, False: 76.1k]
  ------------------
 2376|  7.82k|    if(ptr) {
  ------------------
  |  Branch (2376:8): [True: 7.82k, False: 0]
  ------------------
 2377|  7.82k|      curl_prot_t protos;
 2378|  7.82k|      result = protocol2num(ptr, &protos);
 2379|  7.82k|      if(!result)
  ------------------
  |  Branch (2379:10): [True: 7.82k, False: 0]
  ------------------
 2380|  7.82k|        s->allowed_protocols = protos;
 2381|  7.82k|    }
 2382|      0|    else
 2383|       |      /* make a NULL argument reset to default */
 2384|      0|      s->allowed_protocols = (curl_prot_t)CURLPROTO_64ALL;
  ------------------
  |  |   68|      0|#define CURLPROTO_64ALL ((uint64_t)0xffffffffffffffff)
  ------------------
 2385|  7.82k|    break;
 2386|  7.82k|  case CURLOPT_REDIR_PROTOCOLS_STR:
  ------------------
  |  Branch (2386:3): [True: 7.82k, False: 76.1k]
  ------------------
 2387|  7.82k|    if(ptr) {
  ------------------
  |  Branch (2387:8): [True: 7.82k, False: 0]
  ------------------
 2388|  7.82k|      curl_prot_t protos;
 2389|  7.82k|      result = protocol2num(ptr, &protos);
 2390|  7.82k|      if(!result)
  ------------------
  |  Branch (2390:10): [True: 7.82k, False: 0]
  ------------------
 2391|  7.82k|        s->redir_protocols = protos;
 2392|  7.82k|    }
 2393|      0|    else
 2394|       |      /* make a NULL argument reset to default */
 2395|      0|      s->redir_protocols = (curl_prot_t)CURLPROTO_REDIR;
  ------------------
  |  |   71|      0|#define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1078|      0|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1079|      0|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1080|      0|#define CURLPROTO_FTP     (1L << 2)
  |  |  ------------------
  |  |   72|      0|                         CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1081|      0|#define CURLPROTO_FTPS    (1L << 3)
  |  |  ------------------
  ------------------
 2396|  7.82k|    break;
 2397|      0|  case CURLOPT_DEFAULT_PROTOCOL:
  ------------------
  |  Branch (2397:3): [True: 0, False: 83.9k]
  ------------------
 2398|       |    /* Set the protocol to use when the URL does not include any protocol */
 2399|      0|    return Curl_setstropt(&s->str[STRING_DEFAULT_PROTOCOL], ptr);
 2400|      0|#ifndef CURL_DISABLE_SMTP
 2401|      0|  case CURLOPT_MAIL_FROM:
  ------------------
  |  Branch (2401:3): [True: 0, False: 83.9k]
  ------------------
 2402|       |    /* Set the SMTP mail originator */
 2403|      0|    return Curl_setstropt(&s->str[STRING_MAIL_FROM], ptr);
 2404|      0|  case CURLOPT_MAIL_AUTH:
  ------------------
  |  Branch (2404:3): [True: 0, False: 83.9k]
  ------------------
 2405|       |    /* Set the SMTP auth originator */
 2406|      0|    return Curl_setstropt(&s->str[STRING_MAIL_AUTH], ptr);
 2407|      0|#endif
 2408|      0|  case CURLOPT_SASL_AUTHZID:
  ------------------
  |  Branch (2408:3): [True: 0, False: 83.9k]
  ------------------
 2409|       |    /* Authorization identity (identity to act as) */
 2410|      0|    return Curl_setstropt(&s->str[STRING_SASL_AUTHZID], ptr);
 2411|      0|#ifndef CURL_DISABLE_RTSP
 2412|      0|  case CURLOPT_RTSP_SESSION_ID:
  ------------------
  |  Branch (2412:3): [True: 0, False: 83.9k]
  ------------------
 2413|       |    /*
 2414|       |     * Set the RTSP Session ID manually. Useful if the application is
 2415|       |     * resuming a previously established RTSP session
 2416|       |     */
 2417|      0|    return Curl_setstropt(&s->str[STRING_RTSP_SESSION_ID], ptr);
 2418|      0|  case CURLOPT_RTSP_STREAM_URI:
  ------------------
  |  Branch (2418:3): [True: 0, False: 83.9k]
  ------------------
 2419|       |    /*
 2420|       |     * Set the Stream URI for the RTSP request. Unless the request is
 2421|       |     * for generic server options, the application will need to set this.
 2422|       |     */
 2423|      0|    return Curl_setstropt(&s->str[STRING_RTSP_STREAM_URI], ptr);
 2424|      0|  case CURLOPT_RTSP_TRANSPORT:
  ------------------
  |  Branch (2424:3): [True: 0, False: 83.9k]
  ------------------
 2425|       |    /*
 2426|       |     * The content of the Transport: header for the RTSP request
 2427|       |     */
 2428|      0|    return Curl_setstropt(&s->str[STRING_RTSP_TRANSPORT], ptr);
 2429|      0|  case CURLOPT_INTERLEAVEDATA:
  ------------------
  |  Branch (2429:3): [True: 0, False: 83.9k]
  ------------------
 2430|      0|    s->rtp_out = ptr;
 2431|      0|    break;
 2432|      0|#endif /* !CURL_DISABLE_RTSP */
 2433|      0|#ifdef USE_TLS_SRP
 2434|      0|  case CURLOPT_TLSAUTH_USERNAME:
  ------------------
  |  Branch (2434:3): [True: 0, False: 83.9k]
  ------------------
 2435|      0|    return Curl_setstropt(&s->str[STRING_TLSAUTH_USERNAME], ptr);
 2436|      0|  case CURLOPT_TLSAUTH_PASSWORD:
  ------------------
  |  Branch (2436:3): [True: 0, False: 83.9k]
  ------------------
 2437|      0|    return Curl_setstropt(&s->str[STRING_TLSAUTH_PASSWORD], ptr);
 2438|      0|  case CURLOPT_TLSAUTH_TYPE:
  ------------------
  |  Branch (2438:3): [True: 0, False: 83.9k]
  ------------------
 2439|      0|    if(ptr && !curl_strequal(ptr, "SRP"))
  ------------------
  |  Branch (2439:8): [True: 0, False: 0]
  |  Branch (2439:15): [True: 0, False: 0]
  ------------------
 2440|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 2441|      0|    break;
 2442|      0|#ifndef CURL_DISABLE_PROXY
 2443|      0|  case CURLOPT_PROXY_TLSAUTH_USERNAME:
  ------------------
  |  Branch (2443:3): [True: 0, False: 83.9k]
  ------------------
 2444|      0|    return Curl_setstropt(&s->str[STRING_TLSAUTH_USERNAME_PROXY], ptr);
 2445|      0|  case CURLOPT_PROXY_TLSAUTH_PASSWORD:
  ------------------
  |  Branch (2445:3): [True: 0, False: 83.9k]
  ------------------
 2446|      0|    return Curl_setstropt(&s->str[STRING_TLSAUTH_PASSWORD_PROXY], ptr);
 2447|      0|  case CURLOPT_PROXY_TLSAUTH_TYPE:
  ------------------
  |  Branch (2447:3): [True: 0, False: 83.9k]
  ------------------
 2448|      0|    if(ptr && !curl_strequal(ptr, "SRP"))
  ------------------
  |  Branch (2448:8): [True: 0, False: 0]
  |  Branch (2448:15): [True: 0, False: 0]
  ------------------
 2449|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 2450|      0|    break;
 2451|      0|#endif
 2452|      0|#endif
 2453|       |#ifdef USE_RESOLV_ARES
 2454|       |  case CURLOPT_DNS_SERVERS:
 2455|       |    return Curl_setstropt(&s->str[STRING_DNS_SERVERS], ptr);
 2456|       |
 2457|       |  case CURLOPT_DNS_INTERFACE:
 2458|       |    return Curl_setstropt(&s->str[STRING_DNS_INTERFACE], ptr);
 2459|       |
 2460|       |  case CURLOPT_DNS_LOCAL_IP4:
 2461|       |    return Curl_setstropt(&s->str[STRING_DNS_LOCAL_IP4], ptr);
 2462|       |
 2463|       |  case CURLOPT_DNS_LOCAL_IP6:
 2464|       |    return Curl_setstropt(&s->str[STRING_DNS_LOCAL_IP6], ptr);
 2465|       |
 2466|       |#endif
 2467|      0|#ifdef USE_UNIX_SOCKETS
 2468|      0|  case CURLOPT_UNIX_SOCKET_PATH:
  ------------------
  |  Branch (2468:3): [True: 0, False: 83.9k]
  ------------------
 2469|      0|    s->abstract_unix_socket = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2470|      0|    return Curl_setstropt(&s->str[STRING_UNIX_SOCKET_PATH], ptr);
 2471|       |
 2472|      0|  case CURLOPT_ABSTRACT_UNIX_SOCKET:
  ------------------
  |  Branch (2472:3): [True: 0, False: 83.9k]
  ------------------
 2473|      0|    s->abstract_unix_socket = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2474|      0|    return Curl_setstropt(&s->str[STRING_UNIX_SOCKET_PATH], ptr);
 2475|       |
 2476|      0|#endif
 2477|       |
 2478|      0|#ifndef CURL_DISABLE_DOH
 2479|      0|  case CURLOPT_DOH_URL:
  ------------------
  |  Branch (2479:3): [True: 0, False: 83.9k]
  ------------------
 2480|      0|    result = Curl_setstropt(&s->str[STRING_DOH], ptr);
 2481|      0|    s->doh = !!(s->str[STRING_DOH]);
 2482|      0|    break;
 2483|      0|#endif
 2484|      0|#ifndef CURL_DISABLE_HSTS
 2485|      0|  case CURLOPT_HSTSREADDATA:
  ------------------
  |  Branch (2485:3): [True: 0, False: 83.9k]
  ------------------
 2486|      0|    s->hsts_read_userp = ptr;
 2487|      0|    break;
 2488|      0|  case CURLOPT_HSTSWRITEDATA:
  ------------------
  |  Branch (2488:3): [True: 0, False: 83.9k]
  ------------------
 2489|      0|    s->hsts_write_userp = ptr;
 2490|      0|    break;
 2491|  7.82k|  case CURLOPT_HSTS: {
  ------------------
  |  Branch (2491:3): [True: 7.82k, False: 76.1k]
  ------------------
 2492|  7.82k|    struct curl_slist *h;
 2493|  7.82k|    if(!data->hsts) {
  ------------------
  |  Branch (2493:8): [True: 7.82k, False: 0]
  ------------------
 2494|  7.82k|      data->hsts = Curl_hsts_init();
 2495|  7.82k|      if(!data->hsts)
  ------------------
  |  Branch (2495:10): [True: 0, False: 7.82k]
  ------------------
 2496|      0|        return CURLE_OUT_OF_MEMORY;
 2497|  7.82k|    }
 2498|  7.82k|    if(ptr) {
  ------------------
  |  Branch (2498:8): [True: 7.82k, False: 0]
  ------------------
 2499|  7.82k|      result = Curl_setstropt(&s->str[STRING_HSTS], ptr);
 2500|  7.82k|      if(result)
  ------------------
  |  Branch (2500:10): [True: 0, False: 7.82k]
  ------------------
 2501|      0|        return result;
 2502|       |      /* this needs to build a list of filenames to read from, so that it can
 2503|       |         read them later, as we might get a shared HSTS handle to load them
 2504|       |         into */
 2505|  7.82k|      h = curl_slist_append(data->state.hstslist, ptr);
 2506|  7.82k|      if(!h) {
  ------------------
  |  Branch (2506:10): [True: 0, False: 7.82k]
  ------------------
 2507|      0|        curl_slist_free_all(data->state.hstslist);
 2508|      0|        data->state.hstslist = NULL;
 2509|      0|        return CURLE_OUT_OF_MEMORY;
 2510|      0|      }
 2511|  7.82k|      data->state.hstslist = h; /* store the list for later use */
 2512|  7.82k|    }
 2513|      0|    else {
 2514|       |      /* clear the list of HSTS files */
 2515|      0|      curl_slist_free_all(data->state.hstslist);
 2516|      0|      data->state.hstslist = NULL;
 2517|      0|      if(!data->share || !data->share->hsts)
  ------------------
  |  Branch (2517:10): [True: 0, False: 0]
  |  Branch (2517:26): [True: 0, False: 0]
  ------------------
 2518|       |        /* throw away the HSTS cache unless shared */
 2519|      0|        Curl_hsts_cleanup(&data->hsts);
 2520|      0|    }
 2521|  7.82k|    break;
 2522|  7.82k|  }
 2523|  7.82k|#endif /* !CURL_DISABLE_HSTS */
 2524|  7.82k|#ifndef CURL_DISABLE_ALTSVC
 2525|  7.82k|  case CURLOPT_ALTSVC:
  ------------------
  |  Branch (2525:3): [True: 7.82k, False: 76.1k]
  ------------------
 2526|  7.82k|    if(!data->asi) {
  ------------------
  |  Branch (2526:8): [True: 7.82k, False: 0]
  ------------------
 2527|  7.82k|      data->asi = Curl_altsvc_init();
 2528|  7.82k|      if(!data->asi)
  ------------------
  |  Branch (2528:10): [True: 0, False: 7.82k]
  ------------------
 2529|      0|        return CURLE_OUT_OF_MEMORY;
 2530|  7.82k|    }
 2531|  7.82k|    result = Curl_setstropt(&s->str[STRING_ALTSVC], ptr);
 2532|  7.82k|    if(result)
  ------------------
  |  Branch (2532:8): [True: 0, False: 7.82k]
  ------------------
 2533|      0|      break;
 2534|  7.82k|    if(ptr)
  ------------------
  |  Branch (2534:8): [True: 7.82k, False: 0]
  ------------------
 2535|  7.82k|      return Curl_altsvc_load(data->asi, ptr);
 2536|      0|    break;
 2537|      0|#endif /* !CURL_DISABLE_ALTSVC */
 2538|      0|  case CURLOPT_ECH:
  ------------------
  |  Branch (2538:3): [True: 0, False: 83.9k]
  ------------------
 2539|      0|    return setopt_ech(data, ptr);
  ------------------
  |  | 1898|      0|#define setopt_ech(x,y) CURLE_NOT_BUILT_IN
  ------------------
 2540|      0|  default:
  ------------------
  |  Branch (2540:3): [True: 0, False: 83.9k]
  ------------------
 2541|      0|    return CURLE_UNKNOWN_OPTION;
 2542|  83.9k|  }
 2543|  60.0k|  return result;
 2544|  83.9k|}
setopt.c:setopt_cptr_proxy:
 1652|  83.9k|{
 1653|  83.9k|  CURLcode result = CURLE_OK;
 1654|  83.9k|  struct UserDefined *s = &data->set;
 1655|  83.9k|  switch(option) {
 1656|      0|  case CURLOPT_PROXYUSERPWD: {
  ------------------
  |  Branch (1656:3): [True: 0, False: 83.9k]
  ------------------
 1657|       |    /*
 1658|       |     * user:password needed to use the proxy
 1659|       |     */
 1660|      0|    char *u = NULL;
 1661|      0|    char *p = NULL;
 1662|      0|    result = setstropt_userpwd(ptr, &u, &p);
 1663|       |
 1664|       |    /* URL decode the components */
 1665|      0|    if(!result) {
  ------------------
  |  Branch (1665:8): [True: 0, False: 0]
  ------------------
 1666|      0|      curlx_safefree(s->str[STRING_PROXYUSERNAME]);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1667|      0|      curlx_safefree(s->str[STRING_PROXYPASSWORD]);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1668|      0|      if(u)
  ------------------
  |  Branch (1668:10): [True: 0, False: 0]
  ------------------
 1669|      0|        result = Curl_urldecode(u, 0, &s->str[STRING_PROXYUSERNAME], NULL,
 1670|      0|                                REJECT_ZERO);
 1671|      0|    }
 1672|      0|    if(!result && p)
  ------------------
  |  Branch (1672:8): [True: 0, False: 0]
  |  Branch (1672:19): [True: 0, False: 0]
  ------------------
 1673|      0|      result = Curl_urldecode(p, 0, &s->str[STRING_PROXYPASSWORD], NULL,
 1674|      0|                              REJECT_ZERO);
 1675|      0|    curlx_free(u);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1676|      0|    curlx_free(p);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1677|      0|    break;
 1678|      0|  }
 1679|      0|  case CURLOPT_PROXYUSERNAME:
  ------------------
  |  Branch (1679:3): [True: 0, False: 83.9k]
  ------------------
 1680|       |    /*
 1681|       |     * authentication username to use in the operation
 1682|       |     */
 1683|      0|    return Curl_setstropt(&s->str[STRING_PROXYUSERNAME], ptr);
 1684|       |
 1685|      0|  case CURLOPT_PROXYPASSWORD:
  ------------------
  |  Branch (1685:3): [True: 0, False: 83.9k]
  ------------------
 1686|       |    /*
 1687|       |     * authentication password to use in the operation
 1688|       |     */
 1689|      0|    return Curl_setstropt(&s->str[STRING_PROXYPASSWORD], ptr);
 1690|       |
 1691|      0|  case CURLOPT_NOPROXY:
  ------------------
  |  Branch (1691:3): [True: 0, False: 83.9k]
  ------------------
 1692|       |    /*
 1693|       |     * proxy exception list
 1694|       |     */
 1695|      0|    return Curl_setstropt(&s->str[STRING_NOPROXY], ptr);
 1696|      0|  case CURLOPT_PROXY_SSLCERT:
  ------------------
  |  Branch (1696:3): [True: 0, False: 83.9k]
  ------------------
 1697|       |    /*
 1698|       |     * String that holds filename of the SSL certificate to use for proxy
 1699|       |     */
 1700|      0|    return Curl_setstropt(&s->str[STRING_CERT_PROXY], ptr);
 1701|      0|  case CURLOPT_PROXY_SSLCERTTYPE:
  ------------------
  |  Branch (1701:3): [True: 0, False: 83.9k]
  ------------------
 1702|       |    /*
 1703|       |     * String that holds file type of the SSL certificate to use for proxy
 1704|       |     */
 1705|      0|    return Curl_setstropt(&s->str[STRING_CERT_TYPE_PROXY], ptr);
 1706|      0|  case CURLOPT_PROXY_SSLKEY:
  ------------------
  |  Branch (1706:3): [True: 0, False: 83.9k]
  ------------------
 1707|       |    /*
 1708|       |     * String that holds filename of the SSL key to use for proxy
 1709|       |     */
 1710|      0|    return Curl_setstropt(&s->str[STRING_KEY_PROXY], ptr);
 1711|      0|  case CURLOPT_PROXY_KEYPASSWD:
  ------------------
  |  Branch (1711:3): [True: 0, False: 83.9k]
  ------------------
 1712|       |    /*
 1713|       |     * String that holds the SSL private key password for proxy.
 1714|       |     */
 1715|      0|    return Curl_setstropt(&s->str[STRING_KEY_PASSWD_PROXY], ptr);
 1716|      0|  case CURLOPT_PROXY_SSLKEYTYPE:
  ------------------
  |  Branch (1716:3): [True: 0, False: 83.9k]
  ------------------
 1717|       |    /*
 1718|       |     * String that holds file type of the SSL key to use for proxy
 1719|       |     */
 1720|      0|    return Curl_setstropt(&s->str[STRING_KEY_TYPE_PROXY], ptr);
 1721|      0|  case CURLOPT_PROXY_SSL_CIPHER_LIST:
  ------------------
  |  Branch (1721:3): [True: 0, False: 83.9k]
  ------------------
 1722|      0|    if(Curl_ssl_supports(data, SSLSUPP_CIPHER_LIST)) {
  ------------------
  |  |   44|      0|#define SSLSUPP_CIPHER_LIST  (1 << 9) /* supports TLS 1.0-1.2 ciphersuites */
  ------------------
  |  Branch (1722:8): [True: 0, False: 0]
  ------------------
 1723|       |      /* set a list of cipher we want to use in the SSL connection for proxy */
 1724|      0|      return Curl_setstropt(&s->str[STRING_SSL_CIPHER_LIST_PROXY], ptr);
 1725|      0|    }
 1726|      0|    else
 1727|      0|      return CURLE_NOT_BUILT_IN;
 1728|      0|  case CURLOPT_PROXY_TLS13_CIPHERS:
  ------------------
  |  Branch (1728:3): [True: 0, False: 83.9k]
  ------------------
 1729|      0|    if(Curl_ssl_supports(data, SSLSUPP_TLS13_CIPHERSUITES))
  ------------------
  |  |   40|      0|#define SSLSUPP_TLS13_CIPHERSUITES (1 << 5) /* supports TLS 1.3 ciphersuites */
  ------------------
  |  Branch (1729:8): [True: 0, False: 0]
  ------------------
 1730|       |      /* set preferred list of TLS 1.3 cipher suites for proxy */
 1731|      0|      return Curl_setstropt(&s->str[STRING_SSL_CIPHER13_LIST_PROXY], ptr);
 1732|      0|    else
 1733|      0|      return CURLE_NOT_BUILT_IN;
 1734|      0|  case CURLOPT_PROXY:
  ------------------
  |  Branch (1734:3): [True: 0, False: 83.9k]
  ------------------
 1735|       |    /*
 1736|       |     * Set proxy server:port to use as proxy.
 1737|       |     *
 1738|       |     * If the proxy is set to "" (and CURLOPT_PRE_PROXY is set to "" or NULL)
 1739|       |     * we explicitly say that we do not want to use a proxy (even though there
 1740|       |     * might be environment variables saying so).
 1741|       |     *
 1742|       |     * Setting it to NULL, means no proxy but allows the environment variables
 1743|       |     * to decide for us (if CURLOPT_PRE_PROXY setting it to NULL).
 1744|       |     */
 1745|      0|    return setproxy(data, ptr);
 1746|      0|  case CURLOPT_PRE_PROXY:
  ------------------
  |  Branch (1746:3): [True: 0, False: 83.9k]
  ------------------
 1747|       |    /*
 1748|       |     * Set proxy server:port to use as SOCKS proxy.
 1749|       |     *
 1750|       |     * If the proxy is set to "" or NULL we explicitly say that we do not want
 1751|       |     * to use the socks proxy.
 1752|       |     */
 1753|      0|    return Curl_setstropt(&s->str[STRING_PRE_PROXY], ptr);
 1754|      0|  case CURLOPT_SOCKS5_GSSAPI_SERVICE:
  ------------------
  |  Branch (1754:3): [True: 0, False: 83.9k]
  ------------------
 1755|      0|  case CURLOPT_PROXY_SERVICE_NAME:
  ------------------
  |  Branch (1755:3): [True: 0, False: 83.9k]
  ------------------
 1756|       |    /*
 1757|       |     * Set proxy authentication service name for Kerberos 5 and SPNEGO
 1758|       |     */
 1759|      0|    return Curl_setstropt(&s->str[STRING_PROXY_SERVICE_NAME], ptr);
 1760|      0|  case CURLOPT_PROXY_PINNEDPUBLICKEY:
  ------------------
  |  Branch (1760:3): [True: 0, False: 83.9k]
  ------------------
 1761|       |    /*
 1762|       |     * Set pinned public key for SSL connection.
 1763|       |     * Specify filename of the public key in DER format.
 1764|       |     */
 1765|      0|#ifdef USE_SSL
 1766|      0|    if(Curl_ssl_supports(data, SSLSUPP_PINNEDPUBKEY))
  ------------------
  |  |   37|      0|#define SSLSUPP_PINNEDPUBKEY (1 << 2) /* supports CURLOPT_PINNEDPUBLICKEY */
  ------------------
  |  Branch (1766:8): [True: 0, False: 0]
  ------------------
 1767|      0|      return Curl_setstropt(&s->str[STRING_SSL_PINNEDPUBLICKEY_PROXY], ptr);
 1768|      0|#endif
 1769|      0|    return CURLE_NOT_BUILT_IN;
 1770|       |
 1771|      0|  case CURLOPT_HAPROXY_CLIENT_IP:
  ------------------
  |  Branch (1771:3): [True: 0, False: 83.9k]
  ------------------
 1772|       |    /*
 1773|       |     * Set the client IP to send through HAProxy PROXY protocol
 1774|       |     */
 1775|      0|    result = Curl_setstropt(&s->str[STRING_HAPROXY_CLIENT_IP], ptr);
 1776|       |
 1777|       |    /* enable the HAProxy protocol if an IP is provided */
 1778|      0|    s->haproxyprotocol = !!s->str[STRING_HAPROXY_CLIENT_IP];
 1779|      0|    break;
 1780|      0|  case CURLOPT_PROXY_CAINFO:
  ------------------
  |  Branch (1780:3): [True: 0, False: 83.9k]
  ------------------
 1781|       |    /*
 1782|       |     * Set CA info SSL connection for proxy. Specify filename of the
 1783|       |     * CA certificate
 1784|       |     */
 1785|      0|    s->proxy_ssl.custom_cafile = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1786|      0|    return Curl_setstropt(&s->str[STRING_SSL_CAFILE_PROXY], ptr);
 1787|      0|  case CURLOPT_PROXY_CRLFILE:
  ------------------
  |  Branch (1787:3): [True: 0, False: 83.9k]
  ------------------
 1788|       |    /*
 1789|       |     * Set CRL file info for SSL connection for proxy. Specify filename of the
 1790|       |     * CRL to check certificates revocation
 1791|       |     */
 1792|      0|    if(Curl_ssl_supports(data, SSLSUPP_CRLFILE))
  ------------------
  |  |   48|      0|#define SSLSUPP_CRLFILE      (1 << 13) /* supports CURLOPT_CRLFILE */
  ------------------
  |  Branch (1792:8): [True: 0, False: 0]
  ------------------
 1793|      0|      return Curl_setstropt(&s->str[STRING_SSL_CRLFILE_PROXY], ptr);
 1794|      0|    return CURLE_NOT_BUILT_IN;
 1795|      0|  case CURLOPT_PROXY_ISSUERCERT:
  ------------------
  |  Branch (1795:3): [True: 0, False: 83.9k]
  ------------------
 1796|       |    /*
 1797|       |     * Set Issuer certificate file to check certificates issuer
 1798|       |     */
 1799|      0|    if(Curl_ssl_supports(data, SSLSUPP_ISSUERCERT))
  ------------------
  |  |   46|      0|#define SSLSUPP_ISSUERCERT   (1 << 11) /* supports CURLOPT_ISSUERCERT */
  ------------------
  |  Branch (1799:8): [True: 0, False: 0]
  ------------------
 1800|      0|      return Curl_setstropt(&s->str[STRING_SSL_ISSUERCERT_PROXY], ptr);
 1801|      0|    return CURLE_NOT_BUILT_IN;
 1802|      0|  case CURLOPT_PROXY_CAPATH:
  ------------------
  |  Branch (1802:3): [True: 0, False: 83.9k]
  ------------------
 1803|       |    /*
 1804|       |     * Set CA path info for SSL connection proxy. Specify directory name of the
 1805|       |     * CA certificates which have been prepared using openssl c_rehash utility.
 1806|       |     */
 1807|      0|#ifdef USE_SSL
 1808|      0|    if(Curl_ssl_supports(data, SSLSUPP_CA_PATH)) {
  ------------------
  |  |   35|      0|#define SSLSUPP_CA_PATH      (1 << 0) /* supports CAPATH */
  ------------------
  |  Branch (1808:8): [True: 0, False: 0]
  ------------------
 1809|       |      /* This does not work on Windows. */
 1810|      0|      s->proxy_ssl.custom_capath = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1811|      0|      return Curl_setstropt(&s->str[STRING_SSL_CAPATH_PROXY], ptr);
 1812|      0|    }
 1813|      0|#endif
 1814|      0|    return CURLE_NOT_BUILT_IN;
 1815|  83.9k|  default:
  ------------------
  |  Branch (1815:3): [True: 83.9k, False: 0]
  ------------------
 1816|  83.9k|    return CURLE_UNKNOWN_OPTION;
 1817|  83.9k|  }
 1818|      0|  return result;
 1819|  83.9k|}
setopt.c:protocol2num:
  199|  15.6k|{
  200|       |  /*
  201|       |   * We are asked to cherry-pick protocols, so play it safe and disallow all
  202|       |   * protocols to start with, and re-add the wanted ones back in.
  203|       |   */
  204|  15.6k|  *val = 0;
  205|       |
  206|  15.6k|  if(!str)
  ------------------
  |  Branch (206:6): [True: 0, False: 15.6k]
  ------------------
  207|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  208|       |
  209|  15.6k|  if(curl_strequal(str, "all")) {
  ------------------
  |  Branch (209:6): [True: 0, False: 15.6k]
  ------------------
  210|      0|    *val = ~(curl_prot_t)0;
  211|      0|    return CURLE_OK;
  212|      0|  }
  213|       |
  214|  46.9k|  do {
  215|  46.9k|    const char *token = str;
  216|  46.9k|    size_t tlen;
  217|       |
  218|  46.9k|    str = strchr(str, ',');
  219|  46.9k|    tlen = str ? (size_t)(str - token) : strlen(token);
  ------------------
  |  Branch (219:12): [True: 31.2k, False: 15.6k]
  ------------------
  220|  46.9k|    if(tlen) {
  ------------------
  |  Branch (220:8): [True: 46.9k, False: 0]
  ------------------
  221|  46.9k|      const struct Curl_scheme *h = Curl_getn_scheme(token, tlen);
  222|       |
  223|  46.9k|      if(!h || !h->run)
  ------------------
  |  Branch (223:10): [True: 0, False: 46.9k]
  |  Branch (223:16): [True: 0, False: 46.9k]
  ------------------
  224|      0|        return CURLE_UNSUPPORTED_PROTOCOL;
  225|       |
  226|  46.9k|      *val |= h->protocol;
  227|  46.9k|    }
  228|  46.9k|  } while(str && str++);
  ------------------
  |  Branch (228:11): [True: 31.2k, False: 15.6k]
  |  Branch (228:18): [True: 31.2k, False: 0]
  ------------------
  229|       |
  230|  15.6k|  if(!*val)
  ------------------
  |  Branch (230:6): [True: 0, False: 15.6k]
  ------------------
  231|       |    /* no protocol listed */
  232|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  233|  15.6k|  return CURLE_OK;
  234|  15.6k|}
setopt.c:setopt_func:
 2548|  43.0k|{
 2549|  43.0k|  struct UserDefined *s = &data->set;
 2550|  43.0k|  switch(option) {
 2551|      0|  case CURLOPT_PROGRESSFUNCTION:
  ------------------
  |  Branch (2551:3): [True: 0, False: 43.0k]
  ------------------
 2552|       |    /*
 2553|       |     * Progress callback function
 2554|       |     */
 2555|      0|    s->fprogress = va_arg(param, curl_progress_callback);
 2556|      0|    if(s->fprogress)
  ------------------
  |  Branch (2556:8): [True: 0, False: 0]
  ------------------
 2557|      0|      data->progress.callback = TRUE; /* no longer internal */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2558|      0|    else
 2559|      0|      data->progress.callback = FALSE; /* NULL enforces internal */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2560|      0|    break;
 2561|       |
 2562|      0|  case CURLOPT_XFERINFOFUNCTION:
  ------------------
  |  Branch (2562:3): [True: 0, False: 43.0k]
  ------------------
 2563|       |    /*
 2564|       |     * Transfer info callback function
 2565|       |     */
 2566|      0|    s->fxferinfo = va_arg(param, curl_xferinfo_callback);
 2567|      0|    if(s->fxferinfo)
  ------------------
  |  Branch (2567:8): [True: 0, False: 0]
  ------------------
 2568|      0|      data->progress.callback = TRUE; /* no longer internal */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2569|      0|    else
 2570|      0|      data->progress.callback = FALSE; /* NULL enforces internal */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2571|       |
 2572|      0|    break;
 2573|      0|  case CURLOPT_DEBUGFUNCTION:
  ------------------
  |  Branch (2573:3): [True: 0, False: 43.0k]
  ------------------
 2574|       |    /*
 2575|       |     * stderr write callback.
 2576|       |     */
 2577|      0|    s->fdebug = va_arg(param, curl_debug_callback);
 2578|       |    /*
 2579|       |     * if the callback provided is NULL, it will use the default callback
 2580|       |     */
 2581|      0|    break;
 2582|  9.80k|  case CURLOPT_HEADERFUNCTION:
  ------------------
  |  Branch (2582:3): [True: 9.80k, False: 33.2k]
  ------------------
 2583|       |    /*
 2584|       |     * Set header write callback
 2585|       |     */
 2586|  9.80k|    s->fwrite_header = va_arg(param, curl_write_callback);
 2587|  9.80k|    break;
 2588|  9.80k|  case CURLOPT_WRITEFUNCTION:
  ------------------
  |  Branch (2588:3): [True: 9.80k, False: 33.2k]
  ------------------
 2589|       |    /*
 2590|       |     * Set data write callback
 2591|       |     */
 2592|  9.80k|    s->fwrite_func = va_arg(param, curl_write_callback);
 2593|  9.80k|    if(!s->fwrite_func)
  ------------------
  |  Branch (2593:8): [True: 0, False: 9.80k]
  ------------------
 2594|      0|#if defined(__clang__) && __clang_major__ >= 16
 2595|      0|#pragma clang diagnostic push
 2596|      0|#pragma clang diagnostic ignored "-Wcast-function-type-strict"
 2597|      0|#endif
 2598|       |      /* When set to NULL, reset to our internal default function */
 2599|      0|      s->fwrite_func = (curl_write_callback)fwrite;
 2600|  9.80k|#if defined(__clang__) && __clang_major__ >= 16
 2601|  9.80k|#pragma clang diagnostic pop
 2602|  9.80k|#endif
 2603|  9.80k|    break;
 2604|  7.82k|  case CURLOPT_READFUNCTION:
  ------------------
  |  Branch (2604:3): [True: 7.82k, False: 35.2k]
  ------------------
 2605|       |    /*
 2606|       |     * Read data callback
 2607|       |     */
 2608|  7.82k|    s->fread_func_set = va_arg(param, curl_read_callback);
 2609|  7.82k|    if(!s->fread_func_set) {
  ------------------
  |  Branch (2609:8): [True: 0, False: 7.82k]
  ------------------
 2610|      0|      s->is_fread_set = 0;
 2611|      0|#if defined(__clang__) && __clang_major__ >= 16
 2612|      0|#pragma clang diagnostic push
 2613|      0|#pragma clang diagnostic ignored "-Wcast-function-type-strict"
 2614|      0|#endif
 2615|       |      /* When set to NULL, reset to our internal default function */
 2616|      0|      s->fread_func_set = (curl_read_callback)fread;
 2617|      0|#if defined(__clang__) && __clang_major__ >= 16
 2618|      0|#pragma clang diagnostic pop
 2619|      0|#endif
 2620|      0|    }
 2621|  7.82k|    else
 2622|  7.82k|      s->is_fread_set = 1;
 2623|  7.82k|    break;
 2624|      0|  case CURLOPT_SEEKFUNCTION:
  ------------------
  |  Branch (2624:3): [True: 0, False: 43.0k]
  ------------------
 2625|       |    /*
 2626|       |     * Seek callback. Might be NULL.
 2627|       |     */
 2628|      0|    s->seek_func = va_arg(param, curl_seek_callback);
 2629|      0|    break;
 2630|      0|  case CURLOPT_IOCTLFUNCTION:
  ------------------
  |  Branch (2630:3): [True: 0, False: 43.0k]
  ------------------
 2631|       |    /*
 2632|       |     * I/O control callback. Might be NULL.
 2633|       |     */
 2634|      0|    s->ioctl_func = va_arg(param, curl_ioctl_callback);
 2635|      0|    break;
 2636|      0|  case CURLOPT_SSL_CTX_FUNCTION:
  ------------------
  |  Branch (2636:3): [True: 0, False: 43.0k]
  ------------------
 2637|       |    /*
 2638|       |     * Set an SSL_CTX callback
 2639|       |     */
 2640|      0|#ifdef USE_SSL
 2641|      0|    if(Curl_ssl_supports(data, SSLSUPP_SSL_CTX)) {
  ------------------
  |  |   38|      0|#define SSLSUPP_SSL_CTX      (1 << 3) /* supports CURLOPT_SSL_CTX */
  ------------------
  |  Branch (2641:8): [True: 0, False: 0]
  ------------------
 2642|      0|      s->ssl.fsslctx = va_arg(param, curl_ssl_ctx_callback);
 2643|      0|      break;
 2644|      0|    }
 2645|      0|    else
 2646|      0|#endif
 2647|      0|      return CURLE_NOT_BUILT_IN;
 2648|       |
 2649|  7.82k|  case CURLOPT_SOCKOPTFUNCTION:
  ------------------
  |  Branch (2649:3): [True: 7.82k, False: 35.2k]
  ------------------
 2650|       |    /*
 2651|       |     * socket callback function: called after socket() but before connect()
 2652|       |     */
 2653|  7.82k|    s->fsockopt = va_arg(param, curl_sockopt_callback);
 2654|  7.82k|    break;
 2655|       |
 2656|  7.82k|  case CURLOPT_OPENSOCKETFUNCTION:
  ------------------
  |  Branch (2656:3): [True: 7.82k, False: 35.2k]
  ------------------
 2657|       |    /*
 2658|       |     * open/create socket callback function: called instead of socket(),
 2659|       |     * before connect()
 2660|       |     */
 2661|  7.82k|    s->fopensocket = va_arg(param, curl_opensocket_callback);
 2662|  7.82k|    break;
 2663|       |
 2664|      0|  case CURLOPT_CLOSESOCKETFUNCTION:
  ------------------
  |  Branch (2664:3): [True: 0, False: 43.0k]
  ------------------
 2665|       |    /*
 2666|       |     * close socket callback function: called instead of close()
 2667|       |     * when shutting down a connection
 2668|       |     */
 2669|      0|    s->fclosesocket = va_arg(param, curl_closesocket_callback);
 2670|      0|    break;
 2671|       |
 2672|      0|  case CURLOPT_RESOLVER_START_FUNCTION:
  ------------------
  |  Branch (2672:3): [True: 0, False: 43.0k]
  ------------------
 2673|       |    /*
 2674|       |     * resolver start callback function: called before a new resolver request
 2675|       |     * is started
 2676|       |     */
 2677|      0|    s->resolver_start = va_arg(param, curl_resolver_start_callback);
 2678|      0|    break;
 2679|       |
 2680|       |#ifdef USE_SSH
 2681|       |#ifdef USE_LIBSSH2
 2682|       |  case CURLOPT_SSH_HOSTKEYFUNCTION:
 2683|       |    /* the callback to check the hostkey without the knownhost file */
 2684|       |    s->ssh_hostkeyfunc = va_arg(param, curl_sshhostkeycallback);
 2685|       |    break;
 2686|       |#endif
 2687|       |
 2688|       |  case CURLOPT_SSH_KEYFUNCTION:
 2689|       |    /* setting to NULL is fine since the ssh.c functions themselves will
 2690|       |       then revert to use the internal default */
 2691|       |    s->ssh_keyfunc = va_arg(param, curl_sshkeycallback);
 2692|       |    break;
 2693|       |
 2694|       |#endif /* USE_SSH */
 2695|       |
 2696|      0|#ifndef CURL_DISABLE_RTSP
 2697|      0|  case CURLOPT_INTERLEAVEFUNCTION:
  ------------------
  |  Branch (2697:3): [True: 0, False: 43.0k]
  ------------------
 2698|       |    /* Set the user defined RTP write function */
 2699|      0|    s->fwrite_rtp = va_arg(param, curl_write_callback);
 2700|      0|    break;
 2701|      0|#endif
 2702|      0|#ifndef CURL_DISABLE_FTP
 2703|      0|  case CURLOPT_CHUNK_BGN_FUNCTION:
  ------------------
  |  Branch (2703:3): [True: 0, False: 43.0k]
  ------------------
 2704|      0|    s->chunk_bgn = va_arg(param, curl_chunk_bgn_callback);
 2705|      0|    break;
 2706|      0|  case CURLOPT_CHUNK_END_FUNCTION:
  ------------------
  |  Branch (2706:3): [True: 0, False: 43.0k]
  ------------------
 2707|      0|    s->chunk_end = va_arg(param, curl_chunk_end_callback);
 2708|      0|    break;
 2709|      0|  case CURLOPT_FNMATCH_FUNCTION:
  ------------------
  |  Branch (2709:3): [True: 0, False: 43.0k]
  ------------------
 2710|      0|    s->fnmatch = va_arg(param, curl_fnmatch_callback);
 2711|      0|    break;
 2712|      0|#endif
 2713|      0|#ifndef CURL_DISABLE_HTTP
 2714|      0|  case CURLOPT_TRAILERFUNCTION:
  ------------------
  |  Branch (2714:3): [True: 0, False: 43.0k]
  ------------------
 2715|      0|    s->trailer_callback = va_arg(param, curl_trailer_callback);
 2716|      0|    break;
 2717|      0|#endif
 2718|      0|#ifndef CURL_DISABLE_HSTS
 2719|      0|  case CURLOPT_HSTSREADFUNCTION:
  ------------------
  |  Branch (2719:3): [True: 0, False: 43.0k]
  ------------------
 2720|      0|    s->hsts_read = va_arg(param, curl_hstsread_callback);
 2721|      0|    break;
 2722|      0|  case CURLOPT_HSTSWRITEFUNCTION:
  ------------------
  |  Branch (2722:3): [True: 0, False: 43.0k]
  ------------------
 2723|      0|    s->hsts_write = va_arg(param, curl_hstswrite_callback);
 2724|      0|    break;
 2725|      0|#endif
 2726|      0|  case CURLOPT_PREREQFUNCTION:
  ------------------
  |  Branch (2726:3): [True: 0, False: 43.0k]
  ------------------
 2727|      0|    s->fprereq = va_arg(param, curl_prereq_callback);
 2728|      0|    break;
 2729|      0|  default:
  ------------------
  |  Branch (2729:3): [True: 0, False: 43.0k]
  ------------------
 2730|      0|    return CURLE_UNKNOWN_OPTION;
 2731|  43.0k|  }
 2732|  43.0k|  return CURLE_OK;
 2733|  43.0k|}
setopt.c:setopt_offt:
 2737|  10.7k|{
 2738|  10.7k|  struct UserDefined *s = &data->set;
 2739|  10.7k|  switch(option) {
 2740|      0|  case CURLOPT_TIMEVALUE_LARGE:
  ------------------
  |  Branch (2740:3): [True: 0, False: 10.7k]
  ------------------
 2741|       |    /*
 2742|       |     * This is the value to compare with the remote document with the
 2743|       |     * method set with CURLOPT_TIMECONDITION
 2744|       |     */
 2745|      0|    s->timevalue = (time_t)offt;
 2746|      0|    break;
 2747|       |
 2748|       |    /* MQTT "borrows" some of the HTTP options */
 2749|  1.56k|  case CURLOPT_POSTFIELDSIZE_LARGE:
  ------------------
  |  Branch (2749:3): [True: 1.56k, False: 9.17k]
  ------------------
 2750|       |    /*
 2751|       |     * The size of the POSTFIELD data to prevent libcurl to do strlen() to
 2752|       |     * figure it out. Enables binary posts.
 2753|       |     */
 2754|  1.56k|    if(offt < -1)
  ------------------
  |  Branch (2754:8): [True: 0, False: 1.56k]
  ------------------
 2755|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2756|       |
 2757|  1.56k|    if(s->postfieldsize < offt &&
  ------------------
  |  Branch (2757:8): [True: 794, False: 770]
  ------------------
 2758|    794|       s->postfields == s->str[STRING_COPYPOSTFIELDS]) {
  ------------------
  |  Branch (2758:8): [True: 532, False: 262]
  ------------------
 2759|       |      /* Previous CURLOPT_COPYPOSTFIELDS is no longer valid. */
 2760|    532|      curlx_safefree(s->str[STRING_COPYPOSTFIELDS]);
  ------------------
  |  | 1327|    532|  do {                      \
  |  | 1328|    532|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|    532|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|    532|    (ptr) = NULL;           \
  |  | 1330|    532|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 532]
  |  |  ------------------
  ------------------
 2761|    532|      s->postfields = NULL;
 2762|    532|    }
 2763|  1.56k|    s->postfieldsize = offt;
 2764|  1.56k|    break;
 2765|  1.35k|  case CURLOPT_INFILESIZE_LARGE:
  ------------------
  |  Branch (2765:3): [True: 1.35k, False: 9.38k]
  ------------------
 2766|       |    /*
 2767|       |     * If known, this should inform curl about the file size of the
 2768|       |     * to-be-uploaded file.
 2769|       |     */
 2770|  1.35k|    if(offt < -1)
  ------------------
  |  Branch (2770:8): [True: 213, False: 1.14k]
  ------------------
 2771|    213|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2772|  1.14k|    s->filesize = offt;
 2773|  1.14k|    break;
 2774|      0|  case CURLOPT_MAX_SEND_SPEED_LARGE:
  ------------------
  |  Branch (2774:3): [True: 0, False: 10.7k]
  ------------------
 2775|       |    /*
 2776|       |     * When transfer uploads are faster then CURLOPT_MAX_SEND_SPEED_LARGE
 2777|       |     * bytes per second the transfer is throttled..
 2778|       |     */
 2779|      0|    if(offt < 0)
  ------------------
  |  Branch (2779:8): [True: 0, False: 0]
  ------------------
 2780|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2781|      0|    s->max_send_speed = offt;
 2782|      0|    Curl_rlimit_init(&data->progress.ul.rlimit, offt, offt,
 2783|      0|                     Curl_pgrs_now(data));
 2784|      0|    break;
 2785|  7.82k|  case CURLOPT_MAX_RECV_SPEED_LARGE:
  ------------------
  |  Branch (2785:3): [True: 7.82k, False: 2.92k]
  ------------------
 2786|       |    /*
 2787|       |     * When receiving data faster than CURLOPT_MAX_RECV_SPEED_LARGE bytes per
 2788|       |     * second the transfer is throttled..
 2789|       |     */
 2790|  7.82k|    if(offt < 0)
  ------------------
  |  Branch (2790:8): [True: 0, False: 7.82k]
  ------------------
 2791|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2792|  7.82k|    s->max_recv_speed = offt;
 2793|  7.82k|    Curl_rlimit_init(&data->progress.dl.rlimit, offt, offt,
 2794|  7.82k|                     Curl_pgrs_now(data));
 2795|  7.82k|    break;
 2796|      0|  case CURLOPT_RESUME_FROM_LARGE:
  ------------------
  |  Branch (2796:3): [True: 0, False: 10.7k]
  ------------------
 2797|       |    /*
 2798|       |     * Resume transfer at the given file position
 2799|       |     */
 2800|      0|    if(offt < -1)
  ------------------
  |  Branch (2800:8): [True: 0, False: 0]
  ------------------
 2801|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2802|      0|    s->set_resume_from = offt;
 2803|      0|    break;
 2804|      0|  case CURLOPT_MAXFILESIZE_LARGE:
  ------------------
  |  Branch (2804:3): [True: 0, False: 10.7k]
  ------------------
 2805|       |    /*
 2806|       |     * Set the maximum size of a file to download.
 2807|       |     */
 2808|      0|    if(offt < 0)
  ------------------
  |  Branch (2808:8): [True: 0, False: 0]
  ------------------
 2809|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2810|      0|    s->max_filesize = offt;
 2811|      0|    break;
 2812|       |
 2813|      0|  default:
  ------------------
  |  Branch (2813:3): [True: 0, False: 10.7k]
  ------------------
 2814|      0|    return CURLE_UNKNOWN_OPTION;
 2815|  10.7k|  }
 2816|  10.5k|  return CURLE_OK;
 2817|  10.7k|}

easy.c:sigpipe_ignore:
   49|  9.99k|{
   50|       |  /* get a local copy of no_signal because the Curl_easy might not be
   51|       |     around when we restore */
   52|  9.99k|  ig->no_signal = data->set.no_signal;
   53|  9.99k|  if(!data->set.no_signal) {
  ------------------
  |  Branch (53:6): [True: 9.99k, False: 0]
  ------------------
   54|  9.99k|    struct sigaction action;
   55|       |    /* first, extract the existing situation */
   56|  9.99k|    sigaction(SIGPIPE, NULL, &ig->old_pipe_act);
   57|  9.99k|    action = ig->old_pipe_act;
   58|       |    /* ignore this signal */
   59|  9.99k|    action.sa_handler = SIG_IGN;
   60|  9.99k|#ifdef SA_SIGINFO
   61|       |    /* clear SA_SIGINFO flag since we are using sa_handler */
   62|  9.99k|    action.sa_flags &= ~SA_SIGINFO;
   63|  9.99k|#endif
   64|  9.99k|    sigaction(SIGPIPE, &action, NULL);
   65|  9.99k|  }
   66|  9.99k|}
easy.c:sigpipe_restore:
   74|  9.99k|{
   75|  9.99k|  if(!ig->no_signal)
  ------------------
  |  Branch (75:6): [True: 9.99k, False: 0]
  ------------------
   76|       |    /* restore the outside state */
   77|  9.99k|    sigaction(SIGPIPE, &ig->old_pipe_act, NULL);
   78|  9.99k|}
multi.c:sigpipe_init:
   37|   122k|{
   38|   122k|  memset(ig, 0, sizeof(*ig));
   39|       |  ig->no_signal = TRUE;
  ------------------
  |  | 1055|   122k|#define TRUE true
  ------------------
   40|   122k|}
multi.c:sigpipe_apply:
   82|   122k|{
   83|   122k|  if(data && (data->set.no_signal != ig->no_signal)) {
  ------------------
  |  Branch (83:6): [True: 122k, False: 0]
  |  Branch (83:14): [True: 122k, False: 0]
  ------------------
   84|   122k|    sigpipe_restore(ig);
   85|   122k|    sigpipe_ignore(data, ig);
   86|   122k|  }
   87|   122k|}
multi.c:sigpipe_ignore:
   49|   122k|{
   50|       |  /* get a local copy of no_signal because the Curl_easy might not be
   51|       |     around when we restore */
   52|   122k|  ig->no_signal = data->set.no_signal;
   53|   122k|  if(!data->set.no_signal) {
  ------------------
  |  Branch (53:6): [True: 122k, False: 0]
  ------------------
   54|   122k|    struct sigaction action;
   55|       |    /* first, extract the existing situation */
   56|   122k|    sigaction(SIGPIPE, NULL, &ig->old_pipe_act);
   57|   122k|    action = ig->old_pipe_act;
   58|       |    /* ignore this signal */
   59|   122k|    action.sa_handler = SIG_IGN;
   60|   122k|#ifdef SA_SIGINFO
   61|       |    /* clear SA_SIGINFO flag since we are using sa_handler */
   62|   122k|    action.sa_flags &= ~SA_SIGINFO;
   63|   122k|#endif
   64|   122k|    sigaction(SIGPIPE, &action, NULL);
   65|   122k|  }
   66|   122k|}
multi.c:sigpipe_restore:
   74|   244k|{
   75|   244k|  if(!ig->no_signal)
  ------------------
  |  Branch (75:6): [True: 122k, False: 122k]
  ------------------
   76|       |    /* restore the outside state */
   77|   122k|    sigaction(SIGPIPE, &ig->old_pipe_act, NULL);
   78|   244k|}
conncache.c:sigpipe_init:
   37|  7.82k|{
   38|  7.82k|  memset(ig, 0, sizeof(*ig));
   39|       |  ig->no_signal = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
   40|  7.82k|}
conncache.c:sigpipe_apply:
   82|    830|{
   83|    830|  if(data && (data->set.no_signal != ig->no_signal)) {
  ------------------
  |  Branch (83:6): [True: 830, False: 0]
  |  Branch (83:14): [True: 830, False: 0]
  ------------------
   84|    830|    sigpipe_restore(ig);
   85|    830|    sigpipe_ignore(data, ig);
   86|    830|  }
   87|    830|}
conncache.c:sigpipe_ignore:
   49|    830|{
   50|       |  /* get a local copy of no_signal because the Curl_easy might not be
   51|       |     around when we restore */
   52|    830|  ig->no_signal = data->set.no_signal;
   53|    830|  if(!data->set.no_signal) {
  ------------------
  |  Branch (53:6): [True: 830, False: 0]
  ------------------
   54|    830|    struct sigaction action;
   55|       |    /* first, extract the existing situation */
   56|    830|    sigaction(SIGPIPE, NULL, &ig->old_pipe_act);
   57|    830|    action = ig->old_pipe_act;
   58|       |    /* ignore this signal */
   59|    830|    action.sa_handler = SIG_IGN;
   60|    830|#ifdef SA_SIGINFO
   61|       |    /* clear SA_SIGINFO flag since we are using sa_handler */
   62|    830|    action.sa_flags &= ~SA_SIGINFO;
   63|    830|#endif
   64|    830|    sigaction(SIGPIPE, &action, NULL);
   65|    830|  }
   66|    830|}
conncache.c:sigpipe_restore:
   74|  8.65k|{
   75|  8.65k|  if(!ig->no_signal)
  ------------------
  |  Branch (75:6): [True: 830, False: 7.82k]
  ------------------
   76|       |    /* restore the outside state */
   77|    830|    sigaction(SIGPIPE, &ig->old_pipe_act, NULL);
   78|  8.65k|}
cshutdn.c:sigpipe_init:
   37|  7.82k|{
   38|  7.82k|  memset(ig, 0, sizeof(*ig));
   39|       |  ig->no_signal = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
   40|  7.82k|}
cshutdn.c:sigpipe_apply:
   82|     26|{
   83|     26|  if(data && (data->set.no_signal != ig->no_signal)) {
  ------------------
  |  Branch (83:6): [True: 26, False: 0]
  |  Branch (83:14): [True: 26, False: 0]
  ------------------
   84|     26|    sigpipe_restore(ig);
   85|     26|    sigpipe_ignore(data, ig);
   86|     26|  }
   87|     26|}
cshutdn.c:sigpipe_ignore:
   49|     26|{
   50|       |  /* get a local copy of no_signal because the Curl_easy might not be
   51|       |     around when we restore */
   52|     26|  ig->no_signal = data->set.no_signal;
   53|     26|  if(!data->set.no_signal) {
  ------------------
  |  Branch (53:6): [True: 26, False: 0]
  ------------------
   54|     26|    struct sigaction action;
   55|       |    /* first, extract the existing situation */
   56|     26|    sigaction(SIGPIPE, NULL, &ig->old_pipe_act);
   57|     26|    action = ig->old_pipe_act;
   58|       |    /* ignore this signal */
   59|     26|    action.sa_handler = SIG_IGN;
   60|     26|#ifdef SA_SIGINFO
   61|       |    /* clear SA_SIGINFO flag since we are using sa_handler */
   62|     26|    action.sa_flags &= ~SA_SIGINFO;
   63|     26|#endif
   64|     26|    sigaction(SIGPIPE, &action, NULL);
   65|     26|  }
   66|     26|}
cshutdn.c:sigpipe_restore:
   74|  7.84k|{
   75|  7.84k|  if(!ig->no_signal)
  ------------------
  |  Branch (75:6): [True: 26, False: 7.82k]
  ------------------
   76|       |    /* restore the outside state */
   77|     26|    sigaction(SIGPIPE, &ig->old_pipe_act, NULL);
   78|  7.84k|}

Curl_slist_append_nodup:
   56|  15.6k|{
   57|  15.6k|  struct curl_slist *last;
   58|  15.6k|  struct curl_slist *new_item;
   59|       |
   60|  15.6k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  15.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (60:3): [True: 0, False: 15.6k]
  |  Branch (60:3): [True: 15.6k, False: 0]
  ------------------
   61|       |
   62|  15.6k|  new_item = curlx_malloc(sizeof(struct curl_slist));
  ------------------
  |  | 1478|  15.6k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
   63|  15.6k|  if(!new_item)
  ------------------
  |  Branch (63:6): [True: 0, False: 15.6k]
  ------------------
   64|      0|    return NULL;
   65|       |
   66|  15.6k|  new_item->next = NULL;
   67|  15.6k|  new_item->data = CURL_UNCONST(data);
  ------------------
  |  |  866|  15.6k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
   68|       |
   69|       |  /* if this is the first item, then new_item *is* the list */
   70|  15.6k|  if(!list)
  ------------------
  |  Branch (70:6): [True: 15.6k, False: 0]
  ------------------
   71|  15.6k|    return new_item;
   72|       |
   73|      0|  last = slist_get_last(list);
   74|      0|  last->next = new_item;
   75|      0|  return list;
   76|  15.6k|}
curl_slist_append:
   86|  15.6k|{
   87|  15.6k|  char *dupdata = curlx_strdup(data);
  ------------------
  |  | 1477|  15.6k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
   88|       |
   89|  15.6k|  if(!dupdata)
  ------------------
  |  Branch (89:6): [True: 0, False: 15.6k]
  ------------------
   90|      0|    return NULL;
   91|       |
   92|  15.6k|  list = Curl_slist_append_nodup(list, dupdata);
   93|  15.6k|  if(!list)
  ------------------
  |  Branch (93:6): [True: 0, False: 15.6k]
  ------------------
   94|      0|    curlx_free(dupdata);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   95|       |
   96|  15.6k|  return list;
   97|  15.6k|}
curl_slist_free_all:
  125|  39.1k|{
  126|  39.1k|  struct curl_slist *next;
  127|  39.1k|  struct curl_slist *item;
  128|       |
  129|  39.1k|  if(!list)
  ------------------
  |  Branch (129:6): [True: 23.4k, False: 15.6k]
  ------------------
  130|  23.4k|    return;
  131|       |
  132|  15.6k|  item = list;
  133|  15.6k|  do {
  134|  15.6k|    next = item->next;
  135|  15.6k|    curlx_safefree(item->data);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  136|  15.6k|    curlx_free(item);
  ------------------
  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  137|  15.6k|    item = next;
  138|  15.6k|  } while(next);
  ------------------
  |  Branch (138:11): [True: 0, False: 15.6k]
  ------------------
  139|  15.6k|}

Curl_wakeup_init:
  284|  7.82k|{
  285|  7.82k|#ifdef USE_EVENTFD
  286|  7.82k|  return wakeup_eventfd(socks, nonblocking);
  287|       |#elif defined(HAVE_PIPE)
  288|       |  return wakeup_pipe(socks, nonblocking);
  289|       |#elif defined(HAVE_SOCKETPAIR)
  290|       |  return wakeup_socketpair(socks, nonblocking);
  291|       |#else
  292|       |  return wakeup_inet(socks, nonblocking);
  293|       |#endif
  294|  7.82k|}
Curl_wakeup_consume:
  339|   122k|{
  340|   122k|  char buf[64];
  341|   122k|  ssize_t rc;
  342|   122k|  CURLcode result = CURLE_OK;
  343|       |
  344|   122k|  do {
  345|   122k|    rc = wakeup_read(socks[0], buf, sizeof(buf));
  ------------------
  |  |  299|   122k|#define wakeup_read         read
  ------------------
  346|   122k|    if(!rc)
  ------------------
  |  Branch (346:8): [True: 0, False: 122k]
  ------------------
  347|      0|      break;
  348|   122k|    else if(rc < 0) {
  ------------------
  |  Branch (348:13): [True: 122k, False: 0]
  ------------------
  349|       |#ifdef USE_WINSOCK
  350|       |      if(SOCKERRNO == SOCKEWOULDBLOCK)
  351|       |        break;
  352|       |#else
  353|   122k|      if(SOCKEINTR == SOCKERRNO)
  ------------------
  |  | 1129|   122k|#define SOCKEINTR         EINTR
  ------------------
                    if(SOCKEINTR == SOCKERRNO)
  ------------------
  |  | 1095|   122k|#define SOCKERRNO         errno
  ------------------
  |  Branch (353:10): [True: 0, False: 122k]
  ------------------
  354|      0|        continue;
  355|   122k|      if((SOCKERRNO == SOCKEWOULDBLOCK) || (SOCKERRNO == EAGAIN))
  ------------------
  |  | 1095|   122k|#define SOCKERRNO         errno
  ------------------
                    if((SOCKERRNO == SOCKEWOULDBLOCK) || (SOCKERRNO == EAGAIN))
  ------------------
  |  | 1137|   122k|#define SOCKEWOULDBLOCK   EWOULDBLOCK
  ------------------
                    if((SOCKERRNO == SOCKEWOULDBLOCK) || (SOCKERRNO == EAGAIN))
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
  |  Branch (355:10): [True: 122k, False: 0]
  |  Branch (355:44): [True: 0, False: 0]
  ------------------
  356|   122k|        break;
  357|      0|#endif
  358|      0|      result = CURLE_READ_ERROR;
  359|      0|      break;
  360|   122k|    }
  361|   122k|  } while(all);
  ------------------
  |  Branch (361:11): [True: 0, False: 0]
  ------------------
  362|   122k|  return result;
  363|   122k|}
Curl_wakeup_destroy:
  366|  7.82k|{
  367|       |#ifndef USE_EVENTFD
  368|       |  if(socks[1] != CURL_SOCKET_BAD)
  369|       |    wakeup_close(socks[1]);
  370|       |#endif
  371|  7.82k|  if(socks[0] != CURL_SOCKET_BAD)
  ------------------
  |  |  145|  7.82k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (371:6): [True: 7.82k, False: 0]
  ------------------
  372|  7.82k|    wakeup_close(socks[0]);
  ------------------
  |  |  300|  7.82k|#define wakeup_close        close
  ------------------
  373|  7.82k|  socks[0] = socks[1] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  7.82k|#define CURL_SOCKET_BAD (-1)
  ------------------
  374|  7.82k|}
socketpair.c:wakeup_eventfd:
   39|  7.82k|{
   40|  7.82k|  int efd = eventfd(0, nonblocking ? EFD_CLOEXEC | EFD_NONBLOCK : EFD_CLOEXEC);
  ------------------
  |  Branch (40:24): [True: 7.82k, False: 0]
  ------------------
   41|  7.82k|  if(efd == -1) {
  ------------------
  |  Branch (41:6): [True: 0, False: 7.82k]
  ------------------
   42|      0|    socks[0] = socks[1] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
   43|      0|    return -1;
   44|      0|  }
   45|  7.82k|  socks[0] = socks[1] = efd;
   46|  7.82k|  return 0;
   47|  7.82k|}

Curl_splay:
   43|   302k|{
   44|   302k|  struct Curl_tree N, *l, *r, *y;
   45|       |
   46|   302k|  if(!t)
  ------------------
  |  Branch (46:6): [True: 0, False: 302k]
  ------------------
   47|      0|    return NULL;
   48|   302k|  N.smaller = N.larger = NULL;
   49|   302k|  l = r = &N;
   50|       |
   51|   302k|  for(;;) {
   52|   302k|    timediff_t comp = splay_compare(pkey, &t->key);
  ------------------
  |  |   35|   302k|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
   53|   302k|    if(comp < 0) {
  ------------------
  |  Branch (53:8): [True: 115k, False: 186k]
  ------------------
   54|   115k|      if(!t->smaller)
  ------------------
  |  Branch (54:10): [True: 115k, False: 0]
  ------------------
   55|   115k|        break;
   56|      0|      if(splay_compare(pkey, &t->smaller->key) < 0) {
  ------------------
  |  |   35|      0|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
  |  Branch (56:10): [True: 0, False: 0]
  ------------------
   57|      0|        y = t->smaller;                           /* rotate smaller */
   58|      0|        t->smaller = y->larger;
   59|      0|        y->larger = t;
   60|      0|        t = y;
   61|      0|        if(!t->smaller)
  ------------------
  |  Branch (61:12): [True: 0, False: 0]
  ------------------
   62|      0|          break;
   63|      0|      }
   64|      0|      r->smaller = t;                               /* link smaller */
   65|      0|      r = t;
   66|      0|      t = t->smaller;
   67|      0|    }
   68|   186k|    else if(comp > 0) {
  ------------------
  |  Branch (68:13): [True: 0, False: 186k]
  ------------------
   69|      0|      if(!t->larger)
  ------------------
  |  Branch (69:10): [True: 0, False: 0]
  ------------------
   70|      0|        break;
   71|      0|      if(splay_compare(pkey, &t->larger->key) > 0) {
  ------------------
  |  |   35|      0|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
  |  Branch (71:10): [True: 0, False: 0]
  ------------------
   72|      0|        y = t->larger;                          /* rotate larger */
   73|      0|        t->larger = y->smaller;
   74|      0|        y->smaller = t;
   75|      0|        t = y;
   76|      0|        if(!t->larger)
  ------------------
  |  Branch (76:12): [True: 0, False: 0]
  ------------------
   77|      0|          break;
   78|      0|      }
   79|      0|      l->larger = t;                              /* link larger */
   80|      0|      l = t;
   81|      0|      t = t->larger;
   82|      0|    }
   83|   186k|    else
   84|   186k|      break;
   85|   302k|  }
   86|       |
   87|   302k|  l->larger = t->smaller;                                /* assemble */
   88|   302k|  r->smaller = t->larger;
   89|   302k|  t->smaller = N.larger;
   90|   302k|  t->larger = N.smaller;
   91|       |
   92|   302k|  return t;
   93|   302k|}
Curl_splayinsert:
  107|   187k|{
  108|   187k|  DEBUGASSERT(node);
  ------------------
  |  | 1081|   187k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (108:3): [True: 0, False: 187k]
  |  Branch (108:3): [True: 187k, False: 0]
  ------------------
  109|       |
  110|   187k|  if(t) {
  ------------------
  |  Branch (110:6): [True: 0, False: 187k]
  ------------------
  111|      0|    t = Curl_splay(pkey, t);
  112|      0|    DEBUGASSERT(t);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (112:5): [True: 0, False: 0]
  |  Branch (112:5): [True: 0, False: 0]
  ------------------
  113|      0|    if(splay_compare(pkey, &t->key) == 0) {
  ------------------
  |  |   35|      0|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
  |  Branch (113:8): [True: 0, False: 0]
  ------------------
  114|       |      /* There already exists a node in the tree with the same key. Build a
  115|       |         doubly-linked circular list of nodes. We add the new 'node' struct to
  116|       |         the end of this list. */
  117|       |
  118|      0|      node->key = SPLAY_SUBNODE; /* identify this node as a subnode */
  119|      0|      node->samen = t;
  120|      0|      node->samep = t->samep;
  121|      0|      t->samep->samen = node;
  122|      0|      t->samep = node;
  123|       |
  124|      0|      return t; /* the root node always stays the same */
  125|      0|    }
  126|      0|  }
  127|       |
  128|   187k|  if(!t) {
  ------------------
  |  Branch (128:6): [True: 187k, False: 0]
  ------------------
  129|   187k|    node->smaller = node->larger = NULL;
  130|   187k|  }
  131|      0|  else if(splay_compare(pkey, &t->key) < 0) {
  ------------------
  |  |   35|      0|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
  |  Branch (131:11): [True: 0, False: 0]
  ------------------
  132|      0|    node->smaller = t->smaller;
  133|      0|    node->larger = t;
  134|      0|    t->smaller = NULL;
  135|      0|  }
  136|      0|  else {
  137|      0|    node->larger = t->larger;
  138|      0|    node->smaller = t;
  139|      0|    t->larger = NULL;
  140|      0|  }
  141|   187k|  node->key = *pkey;
  142|       |
  143|       |  /* no identical nodes (yet), we are the only one in the list of nodes */
  144|   187k|  node->samen = node;
  145|   187k|  node->samep = node;
  146|   187k|  return node;
  147|   187k|}
Curl_splaygetbest:
  155|   115k|{
  156|   115k|  static const struct curltime tv_zero = { 0, 0 };
  157|   115k|  struct Curl_tree *x;
  158|       |
  159|   115k|  if(!t) {
  ------------------
  |  Branch (159:6): [True: 0, False: 115k]
  ------------------
  160|      0|    *removed = NULL; /* none removed since there was no root */
  161|      0|    return NULL;
  162|      0|  }
  163|       |
  164|       |  /* find smallest */
  165|   115k|  t = Curl_splay(&tv_zero, t);
  166|   115k|  DEBUGASSERT(t);
  ------------------
  |  | 1081|   115k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 0, False: 115k]
  |  Branch (166:3): [True: 115k, False: 0]
  ------------------
  167|   115k|  if(splay_compare(pkey, &t->key) < 0) {
  ------------------
  |  |   35|   115k|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
  |  Branch (167:6): [True: 114k, False: 1.39k]
  ------------------
  168|       |    /* even the smallest is too big */
  169|   114k|    *removed = NULL;
  170|   114k|    return t;
  171|   114k|  }
  172|       |
  173|       |  /* FIRST! Check if there is a list with identical keys */
  174|  1.39k|  x = t->samen;
  175|  1.39k|  if(x != t) {
  ------------------
  |  Branch (175:6): [True: 0, False: 1.39k]
  ------------------
  176|       |    /* there is, pick one from the list */
  177|       |
  178|       |    /* 'x' is the new root node */
  179|       |
  180|      0|    x->key = t->key;
  181|      0|    x->larger = t->larger;
  182|      0|    x->smaller = t->smaller;
  183|      0|    x->samep = t->samep;
  184|      0|    t->samep->samen = x;
  185|       |
  186|      0|    *removed = t;
  187|      0|    return x; /* new root */
  188|      0|  }
  189|       |
  190|       |  /* we splayed the tree to the smallest element, there is no smaller */
  191|  1.39k|  x = t->larger;
  192|  1.39k|  *removed = t;
  193|       |
  194|  1.39k|  return x;
  195|  1.39k|}
Curl_splayremove:
  211|   186k|{
  212|   186k|  struct Curl_tree *x;
  213|       |
  214|   186k|  if(!t)
  ------------------
  |  Branch (214:6): [True: 0, False: 186k]
  ------------------
  215|      0|    return 1;
  216|       |
  217|   186k|  DEBUGASSERT(removenode);
  ------------------
  |  | 1081|   186k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (217:3): [True: 0, False: 186k]
  |  Branch (217:3): [True: 186k, False: 0]
  ------------------
  218|       |
  219|   186k|  if(splay_compare(&SPLAY_SUBNODE, &removenode->key) == 0) {
  ------------------
  |  |   35|   186k|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
  |  Branch (219:6): [True: 0, False: 186k]
  ------------------
  220|       |    /* It is a subnode within a 'same' linked list and thus we can unlink it
  221|       |       easily. */
  222|      0|    DEBUGASSERT(removenode->samen != removenode);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (222:5): [True: 0, False: 0]
  |  Branch (222:5): [True: 0, False: 0]
  ------------------
  223|      0|    if(removenode->samen == removenode)
  ------------------
  |  Branch (223:8): [True: 0, False: 0]
  ------------------
  224|       |      /* A non-subnode should never be set to SPLAY_SUBNODE */
  225|      0|      return 3;
  226|       |
  227|      0|    removenode->samep->samen = removenode->samen;
  228|      0|    removenode->samen->samep = removenode->samep;
  229|       |
  230|       |    /* Ensures that double-remove gets caught. */
  231|      0|    removenode->samen = removenode;
  232|       |
  233|      0|    *newroot = t; /* return the same root */
  234|      0|    return 0;
  235|      0|  }
  236|       |
  237|   186k|  t = Curl_splay(&removenode->key, t);
  238|   186k|  DEBUGASSERT(t);
  ------------------
  |  | 1081|   186k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (238:3): [True: 0, False: 186k]
  |  Branch (238:3): [True: 186k, False: 0]
  ------------------
  239|       |
  240|       |  /* First make sure that we got the same root node as the one we want
  241|       |     to remove, as otherwise we might be trying to remove a node that
  242|       |     is not actually in the tree.
  243|       |
  244|       |     We cannot compare the keys here as a double remove in quick
  245|       |     succession of a node with key != SPLAY_SUBNODE && same != NULL
  246|       |     could return the same key but a different node. */
  247|   186k|  DEBUGASSERT(t == removenode);
  ------------------
  |  | 1081|   186k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (247:3): [True: 0, False: 186k]
  |  Branch (247:3): [True: 186k, False: 0]
  ------------------
  248|   186k|  if(t != removenode)
  ------------------
  |  Branch (248:6): [True: 0, False: 186k]
  ------------------
  249|      0|    return 2;
  250|       |
  251|       |  /* Check if there is a list with identical sizes, as then we are trying to
  252|       |     remove the root node of a list of nodes with identical keys. */
  253|   186k|  x = t->samen;
  254|   186k|  if(x != t) {
  ------------------
  |  Branch (254:6): [True: 0, False: 186k]
  ------------------
  255|       |    /* 'x' is the new root node, we make it use the root node's
  256|       |       smaller/larger links */
  257|       |
  258|      0|    x->key = t->key;
  259|      0|    x->larger = t->larger;
  260|      0|    x->smaller = t->smaller;
  261|      0|    x->samep = t->samep;
  262|      0|    t->samep->samen = x;
  263|      0|  }
  264|   186k|  else {
  265|       |    /* Remove the root node */
  266|   186k|    if(!t->smaller)
  ------------------
  |  Branch (266:8): [True: 186k, False: 0]
  ------------------
  267|   186k|      x = t->larger;
  268|      0|    else {
  269|      0|      x = Curl_splay(&removenode->key, t->smaller);
  270|      0|      DEBUGASSERT(x);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (270:7): [True: 0, False: 0]
  |  Branch (270:7): [True: 0, False: 0]
  ------------------
  271|      0|      x->larger = t->larger;
  272|      0|    }
  273|   186k|  }
  274|       |
  275|   186k|  *newroot = x; /* store new root pointer */
  276|       |
  277|   186k|  return 0;
  278|   186k|}
Curl_splayset:
  282|   186k|{
  283|   186k|  DEBUGASSERT(node);
  ------------------
  |  | 1081|   186k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (283:3): [True: 0, False: 186k]
  |  Branch (283:3): [True: 186k, False: 0]
  ------------------
  284|   186k|  node->ptr = payload;
  285|   186k|}
Curl_splayget:
  288|  1.39k|{
  289|  1.39k|  DEBUGASSERT(node);
  ------------------
  |  | 1081|  1.39k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (289:3): [True: 0, False: 1.39k]
  |  Branch (289:3): [True: 1.39k, False: 0]
  ------------------
  290|  1.39k|  return node->ptr;
  291|  1.39k|}

Curl_raw_toupper:
   75|  2.29M|{
   76|  2.29M|  return (char)touppermap[(unsigned char)in];
   77|  2.29M|}
Curl_raw_tolower:
   82|  1.07M|{
   83|  1.07M|  return (char)tolowermap[(unsigned char)in];
   84|  1.07M|}
Curl_strntoupper:
   92|  1.58k|{
   93|  1.58k|  if(n < 1)
  ------------------
  |  Branch (93:6): [True: 0, False: 1.58k]
  ------------------
   94|      0|    return;
   95|       |
   96|  14.4k|  do {
   97|  14.4k|    *dest++ = Curl_raw_toupper(*src);
   98|  14.4k|  } while(*src++ && --n);
  ------------------
  |  Branch (98:11): [True: 12.8k, False: 1.58k]
  |  Branch (98:21): [True: 12.8k, False: 0]
  ------------------
   99|  1.58k|}
Curl_strntolower:
  107|  78.3k|{
  108|  78.3k|  if(n < 1)
  ------------------
  |  Branch (108:6): [True: 276, False: 78.1k]
  ------------------
  109|    276|    return;
  110|       |
  111|   702k|  do {
  112|   702k|    *dest++ = Curl_raw_tolower(*src);
  113|   702k|  } while(*src++ && --n);
  ------------------
  |  Branch (113:11): [True: 702k, False: 0]
  |  Branch (113:21): [True: 624k, False: 78.1k]
  ------------------
  114|  78.1k|}

curl_strequal:
   77|   135k|{
   78|   135k|  if(s1 && s2)
  ------------------
  |  Branch (78:6): [True: 125k, False: 9.22k]
  |  Branch (78:12): [True: 125k, False: 1]
  ------------------
   79|       |    /* both pointers point to something then compare them */
   80|   125k|    return casecompare(s1, s2);
   81|       |
   82|       |  /* if both pointers are NULL then treat them as equal */
   83|  9.22k|  return NULL == s1 && NULL == s2;
  ------------------
  |  Branch (83:10): [True: 9.22k, False: 1]
  |  Branch (83:24): [True: 9.21k, False: 1]
  ------------------
   84|   135k|}
curl_strnequal:
   88|   157k|{
   89|   157k|  if(s1 && s2)
  ------------------
  |  Branch (89:6): [True: 157k, False: 0]
  |  Branch (89:12): [True: 157k, False: 0]
  ------------------
   90|       |    /* both pointers point to something then compare them */
   91|   157k|    return ncasecompare(s1, s2, n);
   92|       |
   93|       |  /* if both pointers are NULL then treat them as equal if max is non-zero */
   94|      0|  return NULL == s1 && NULL == s2 && n;
  ------------------
  |  Branch (94:10): [True: 0, False: 0]
  |  Branch (94:24): [True: 0, False: 0]
  |  Branch (94:38): [True: 0, False: 0]
  ------------------
   95|   157k|}
strequal.c:casecompare:
   36|   125k|{
   37|   392k|  while(*first) {
  ------------------
  |  Branch (37:9): [True: 363k, False: 29.3k]
  ------------------
   38|   363k|    if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second))
  ------------------
  |  Branch (38:8): [True: 96.5k, False: 267k]
  ------------------
   39|       |      /* get out of the loop as soon as they do not match */
   40|  96.5k|      return 0;
   41|   267k|    first++;
   42|   267k|    second++;
   43|   267k|  }
   44|       |  /* If we are here either the strings are the same or the length is different.
   45|       |     We can test if the "current" character is non-zero for one and zero
   46|       |     for the other. Note that the characters may not be exactly the same even
   47|       |     if they match, we only want to compare zero-ness. */
   48|  29.3k|  return !*first == !*second;
   49|   125k|}
strequal.c:ncasecompare:
   52|   157k|{
   53|   798k|  while(*first && max) {
  ------------------
  |  Branch (53:9): [True: 697k, False: 100k]
  |  Branch (53:19): [True: 664k, False: 33.3k]
  ------------------
   54|   664k|    if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second))
  ------------------
  |  Branch (54:8): [True: 23.5k, False: 640k]
  ------------------
   55|  23.5k|      return 0;
   56|   640k|    max--;
   57|   640k|    first++;
   58|   640k|    second++;
   59|   640k|  }
   60|   133k|  if(max == 0)
  ------------------
  |  Branch (60:6): [True: 133k, False: 3]
  ------------------
   61|   133k|    return 1; /* they are equal this far */
   62|       |
   63|      3|  return Curl_raw_toupper(*first) == Curl_raw_toupper(*second);
   64|   133k|}

curl_easy_strerror:
   35|    511|{
   36|    511|#ifdef CURLVERBOSE
   37|    511|  switch(error) {
   38|      0|  case CURLE_OK:
  ------------------
  |  Branch (38:3): [True: 0, False: 511]
  ------------------
   39|      0|    return "No error";
   40|       |
   41|      0|  case CURLE_UNSUPPORTED_PROTOCOL:
  ------------------
  |  Branch (41:3): [True: 0, False: 511]
  ------------------
   42|      0|    return "Unsupported protocol";
   43|       |
   44|      0|  case CURLE_FAILED_INIT:
  ------------------
  |  Branch (44:3): [True: 0, False: 511]
  ------------------
   45|      0|    return "Failed initialization";
   46|       |
   47|      0|  case CURLE_URL_MALFORMAT:
  ------------------
  |  Branch (47:3): [True: 0, False: 511]
  ------------------
   48|      0|    return "URL using bad/illegal format or missing URL";
   49|       |
   50|      0|  case CURLE_NOT_BUILT_IN:
  ------------------
  |  Branch (50:3): [True: 0, False: 511]
  ------------------
   51|      0|    return "A requested feature, protocol or option was not found built-in in"
   52|      0|           " this libcurl due to a build-time decision.";
   53|       |
   54|      0|  case CURLE_COULDNT_RESOLVE_PROXY:
  ------------------
  |  Branch (54:3): [True: 0, False: 511]
  ------------------
   55|      0|    return "Could not resolve proxy name";
   56|       |
   57|      0|  case CURLE_COULDNT_RESOLVE_HOST:
  ------------------
  |  Branch (57:3): [True: 0, False: 511]
  ------------------
   58|      0|    return "Could not resolve hostname";
   59|       |
   60|    511|  case CURLE_COULDNT_CONNECT:
  ------------------
  |  Branch (60:3): [True: 511, False: 0]
  ------------------
   61|    511|    return "Could not connect to server";
   62|       |
   63|      0|  case CURLE_WEIRD_SERVER_REPLY:
  ------------------
  |  Branch (63:3): [True: 0, False: 511]
  ------------------
   64|      0|    return "Weird server reply";
   65|       |
   66|      0|  case CURLE_REMOTE_ACCESS_DENIED:
  ------------------
  |  Branch (66:3): [True: 0, False: 511]
  ------------------
   67|      0|    return "Access denied to remote resource";
   68|       |
   69|      0|  case CURLE_FTP_ACCEPT_FAILED:
  ------------------
  |  Branch (69:3): [True: 0, False: 511]
  ------------------
   70|      0|    return "FTP: The server failed to connect to data port";
   71|       |
   72|      0|  case CURLE_FTP_ACCEPT_TIMEOUT:
  ------------------
  |  Branch (72:3): [True: 0, False: 511]
  ------------------
   73|      0|    return "FTP: Accepting server connect has timed out";
   74|       |
   75|      0|  case CURLE_FTP_PRET_FAILED:
  ------------------
  |  Branch (75:3): [True: 0, False: 511]
  ------------------
   76|      0|    return "FTP: The server did not accept the PRET command.";
   77|       |
   78|      0|  case CURLE_FTP_WEIRD_PASS_REPLY:
  ------------------
  |  Branch (78:3): [True: 0, False: 511]
  ------------------
   79|      0|    return "FTP: unknown PASS reply";
   80|       |
   81|      0|  case CURLE_FTP_WEIRD_PASV_REPLY:
  ------------------
  |  Branch (81:3): [True: 0, False: 511]
  ------------------
   82|      0|    return "FTP: unknown PASV reply";
   83|       |
   84|      0|  case CURLE_FTP_WEIRD_227_FORMAT:
  ------------------
  |  Branch (84:3): [True: 0, False: 511]
  ------------------
   85|      0|    return "FTP: unknown 227 response format";
   86|       |
   87|      0|  case CURLE_FTP_CANT_GET_HOST:
  ------------------
  |  Branch (87:3): [True: 0, False: 511]
  ------------------
   88|      0|    return "FTP: cannot figure out the host in the PASV response";
   89|       |
   90|      0|  case CURLE_HTTP2:
  ------------------
  |  Branch (90:3): [True: 0, False: 511]
  ------------------
   91|      0|    return "Error in the HTTP2 framing layer";
   92|       |
   93|      0|  case CURLE_FTP_COULDNT_SET_TYPE:
  ------------------
  |  Branch (93:3): [True: 0, False: 511]
  ------------------
   94|      0|    return "FTP: could not set file type";
   95|       |
   96|      0|  case CURLE_PARTIAL_FILE:
  ------------------
  |  Branch (96:3): [True: 0, False: 511]
  ------------------
   97|      0|    return "Transferred a partial file";
   98|       |
   99|      0|  case CURLE_FTP_COULDNT_RETR_FILE:
  ------------------
  |  Branch (99:3): [True: 0, False: 511]
  ------------------
  100|      0|    return "FTP: could not retrieve (RETR failed) the specified file";
  101|       |
  102|      0|  case CURLE_QUOTE_ERROR:
  ------------------
  |  Branch (102:3): [True: 0, False: 511]
  ------------------
  103|      0|    return "Quote command returned error";
  104|       |
  105|      0|  case CURLE_HTTP_RETURNED_ERROR:
  ------------------
  |  Branch (105:3): [True: 0, False: 511]
  ------------------
  106|      0|    return "HTTP response code said error";
  107|       |
  108|      0|  case CURLE_WRITE_ERROR:
  ------------------
  |  Branch (108:3): [True: 0, False: 511]
  ------------------
  109|      0|    return "Failed writing received data to disk/application";
  110|       |
  111|      0|  case CURLE_UPLOAD_FAILED:
  ------------------
  |  Branch (111:3): [True: 0, False: 511]
  ------------------
  112|      0|    return "Upload failed (at start/before it took off)";
  113|       |
  114|      0|  case CURLE_READ_ERROR:
  ------------------
  |  Branch (114:3): [True: 0, False: 511]
  ------------------
  115|      0|    return "Failed to open/read local data from file/application";
  116|       |
  117|      0|  case CURLE_OUT_OF_MEMORY:
  ------------------
  |  Branch (117:3): [True: 0, False: 511]
  ------------------
  118|      0|    return "Out of memory";
  119|       |
  120|      0|  case CURLE_OPERATION_TIMEDOUT:
  ------------------
  |  Branch (120:3): [True: 0, False: 511]
  ------------------
  121|      0|    return "Timeout was reached";
  122|       |
  123|      0|  case CURLE_FTP_PORT_FAILED:
  ------------------
  |  Branch (123:3): [True: 0, False: 511]
  ------------------
  124|      0|    return "FTP: command PORT failed";
  125|       |
  126|      0|  case CURLE_FTP_COULDNT_USE_REST:
  ------------------
  |  Branch (126:3): [True: 0, False: 511]
  ------------------
  127|      0|    return "FTP: command REST failed";
  128|       |
  129|      0|  case CURLE_RANGE_ERROR:
  ------------------
  |  Branch (129:3): [True: 0, False: 511]
  ------------------
  130|      0|    return "Requested range was not delivered by the server";
  131|       |
  132|      0|  case CURLE_SSL_CONNECT_ERROR:
  ------------------
  |  Branch (132:3): [True: 0, False: 511]
  ------------------
  133|      0|    return "SSL connect error";
  134|       |
  135|      0|  case CURLE_BAD_DOWNLOAD_RESUME:
  ------------------
  |  Branch (135:3): [True: 0, False: 511]
  ------------------
  136|      0|    return "Could not resume download";
  137|       |
  138|      0|  case CURLE_FILE_COULDNT_READ_FILE:
  ------------------
  |  Branch (138:3): [True: 0, False: 511]
  ------------------
  139|      0|    return "Could not read a file:// file";
  140|       |
  141|      0|  case CURLE_LDAP_CANNOT_BIND:
  ------------------
  |  Branch (141:3): [True: 0, False: 511]
  ------------------
  142|      0|    return "LDAP: cannot bind";
  143|       |
  144|      0|  case CURLE_LDAP_SEARCH_FAILED:
  ------------------
  |  Branch (144:3): [True: 0, False: 511]
  ------------------
  145|      0|    return "LDAP: search failed";
  146|       |
  147|      0|  case CURLE_ABORTED_BY_CALLBACK:
  ------------------
  |  Branch (147:3): [True: 0, False: 511]
  ------------------
  148|      0|    return "Operation was aborted by an application callback";
  149|       |
  150|      0|  case CURLE_BAD_FUNCTION_ARGUMENT:
  ------------------
  |  Branch (150:3): [True: 0, False: 511]
  ------------------
  151|      0|    return "A libcurl function was given a bad argument";
  152|       |
  153|      0|  case CURLE_INTERFACE_FAILED:
  ------------------
  |  Branch (153:3): [True: 0, False: 511]
  ------------------
  154|      0|    return "Failed binding local connection end";
  155|       |
  156|      0|  case CURLE_TOO_MANY_REDIRECTS:
  ------------------
  |  Branch (156:3): [True: 0, False: 511]
  ------------------
  157|      0|    return "Number of redirects hit maximum amount";
  158|       |
  159|      0|  case CURLE_UNKNOWN_OPTION:
  ------------------
  |  Branch (159:3): [True: 0, False: 511]
  ------------------
  160|      0|    return "An unknown option was passed in to libcurl";
  161|       |
  162|      0|  case CURLE_SETOPT_OPTION_SYNTAX:
  ------------------
  |  Branch (162:3): [True: 0, False: 511]
  ------------------
  163|      0|    return "Malformed option provided in a setopt";
  164|       |
  165|      0|  case CURLE_GOT_NOTHING:
  ------------------
  |  Branch (165:3): [True: 0, False: 511]
  ------------------
  166|      0|    return "Server returned nothing (no headers, no data)";
  167|       |
  168|      0|  case CURLE_SSL_ENGINE_NOTFOUND:
  ------------------
  |  Branch (168:3): [True: 0, False: 511]
  ------------------
  169|      0|    return "SSL crypto engine not found";
  170|       |
  171|      0|  case CURLE_SSL_ENGINE_SETFAILED:
  ------------------
  |  Branch (171:3): [True: 0, False: 511]
  ------------------
  172|      0|    return "Can not set SSL crypto engine as default";
  173|       |
  174|      0|  case CURLE_SSL_ENGINE_INITFAILED:
  ------------------
  |  Branch (174:3): [True: 0, False: 511]
  ------------------
  175|      0|    return "Failed to initialize SSL crypto engine";
  176|       |
  177|      0|  case CURLE_SEND_ERROR:
  ------------------
  |  Branch (177:3): [True: 0, False: 511]
  ------------------
  178|      0|    return "Failed sending data to the peer";
  179|       |
  180|      0|  case CURLE_RECV_ERROR:
  ------------------
  |  Branch (180:3): [True: 0, False: 511]
  ------------------
  181|      0|    return "Failure when receiving data from the peer";
  182|       |
  183|      0|  case CURLE_SSL_CERTPROBLEM:
  ------------------
  |  Branch (183:3): [True: 0, False: 511]
  ------------------
  184|      0|    return "Problem with the local SSL certificate";
  185|       |
  186|      0|  case CURLE_SSL_CIPHER:
  ------------------
  |  Branch (186:3): [True: 0, False: 511]
  ------------------
  187|      0|    return "Could not use specified SSL cipher";
  188|       |
  189|      0|  case CURLE_PEER_FAILED_VERIFICATION:
  ------------------
  |  Branch (189:3): [True: 0, False: 511]
  ------------------
  190|      0|    return "SSL peer certificate or SSH remote key was not OK";
  191|       |
  192|      0|  case CURLE_SSL_CACERT_BADFILE:
  ------------------
  |  Branch (192:3): [True: 0, False: 511]
  ------------------
  193|      0|    return "Problem with the SSL CA cert (path? access rights?)";
  194|       |
  195|      0|  case CURLE_BAD_CONTENT_ENCODING:
  ------------------
  |  Branch (195:3): [True: 0, False: 511]
  ------------------
  196|      0|    return "Unrecognized or bad HTTP Content or Transfer-Encoding";
  197|       |
  198|      0|  case CURLE_FILESIZE_EXCEEDED:
  ------------------
  |  Branch (198:3): [True: 0, False: 511]
  ------------------
  199|      0|    return "Maximum file size exceeded";
  200|       |
  201|      0|  case CURLE_USE_SSL_FAILED:
  ------------------
  |  Branch (201:3): [True: 0, False: 511]
  ------------------
  202|      0|    return "Requested SSL level failed";
  203|       |
  204|      0|  case CURLE_SSL_SHUTDOWN_FAILED:
  ------------------
  |  Branch (204:3): [True: 0, False: 511]
  ------------------
  205|      0|    return "Failed to shut down the SSL connection";
  206|       |
  207|      0|  case CURLE_SSL_CRL_BADFILE:
  ------------------
  |  Branch (207:3): [True: 0, False: 511]
  ------------------
  208|      0|    return "Failed to load CRL file (path? access rights?, format?)";
  209|       |
  210|      0|  case CURLE_SSL_ISSUER_ERROR:
  ------------------
  |  Branch (210:3): [True: 0, False: 511]
  ------------------
  211|      0|    return "Issuer check against peer certificate failed";
  212|       |
  213|      0|  case CURLE_SEND_FAIL_REWIND:
  ------------------
  |  Branch (213:3): [True: 0, False: 511]
  ------------------
  214|      0|    return "Send failed since rewinding of the data stream failed";
  215|       |
  216|      0|  case CURLE_LOGIN_DENIED:
  ------------------
  |  Branch (216:3): [True: 0, False: 511]
  ------------------
  217|      0|    return "Login denied";
  218|       |
  219|      0|  case CURLE_TFTP_NOTFOUND:
  ------------------
  |  Branch (219:3): [True: 0, False: 511]
  ------------------
  220|      0|    return "TFTP: File Not Found";
  221|       |
  222|      0|  case CURLE_TFTP_PERM:
  ------------------
  |  Branch (222:3): [True: 0, False: 511]
  ------------------
  223|      0|    return "TFTP: Access Violation";
  224|       |
  225|      0|  case CURLE_REMOTE_DISK_FULL:
  ------------------
  |  Branch (225:3): [True: 0, False: 511]
  ------------------
  226|      0|    return "Disk full or allocation exceeded";
  227|       |
  228|      0|  case CURLE_TFTP_ILLEGAL:
  ------------------
  |  Branch (228:3): [True: 0, False: 511]
  ------------------
  229|      0|    return "TFTP: Illegal operation";
  230|       |
  231|      0|  case CURLE_TFTP_UNKNOWNID:
  ------------------
  |  Branch (231:3): [True: 0, False: 511]
  ------------------
  232|      0|    return "TFTP: Unknown transfer ID";
  233|       |
  234|      0|  case CURLE_REMOTE_FILE_EXISTS:
  ------------------
  |  Branch (234:3): [True: 0, False: 511]
  ------------------
  235|      0|    return "Remote file already exists";
  236|       |
  237|      0|  case CURLE_TFTP_NOSUCHUSER:
  ------------------
  |  Branch (237:3): [True: 0, False: 511]
  ------------------
  238|      0|    return "TFTP: No such user";
  239|       |
  240|      0|  case CURLE_REMOTE_FILE_NOT_FOUND:
  ------------------
  |  Branch (240:3): [True: 0, False: 511]
  ------------------
  241|      0|    return "Remote file not found";
  242|       |
  243|      0|  case CURLE_SSH:
  ------------------
  |  Branch (243:3): [True: 0, False: 511]
  ------------------
  244|      0|    return "Error in the SSH layer";
  245|       |
  246|      0|  case CURLE_AGAIN:
  ------------------
  |  Branch (246:3): [True: 0, False: 511]
  ------------------
  247|      0|    return "Socket not ready for send/recv";
  248|       |
  249|      0|  case CURLE_RTSP_CSEQ_ERROR:
  ------------------
  |  Branch (249:3): [True: 0, False: 511]
  ------------------
  250|      0|    return "RTSP CSeq mismatch or invalid CSeq";
  251|       |
  252|      0|  case CURLE_RTSP_SESSION_ERROR:
  ------------------
  |  Branch (252:3): [True: 0, False: 511]
  ------------------
  253|      0|    return "RTSP session error";
  254|       |
  255|      0|  case CURLE_FTP_BAD_FILE_LIST:
  ------------------
  |  Branch (255:3): [True: 0, False: 511]
  ------------------
  256|      0|    return "Unable to parse FTP file list";
  257|       |
  258|      0|  case CURLE_CHUNK_FAILED:
  ------------------
  |  Branch (258:3): [True: 0, False: 511]
  ------------------
  259|      0|    return "Chunk callback failed";
  260|       |
  261|      0|  case CURLE_NO_CONNECTION_AVAILABLE:
  ------------------
  |  Branch (261:3): [True: 0, False: 511]
  ------------------
  262|      0|    return "The max connection limit is reached";
  263|       |
  264|      0|  case CURLE_SSL_PINNEDPUBKEYNOTMATCH:
  ------------------
  |  Branch (264:3): [True: 0, False: 511]
  ------------------
  265|      0|    return "SSL public key does not match pinned public key";
  266|       |
  267|      0|  case CURLE_SSL_INVALIDCERTSTATUS:
  ------------------
  |  Branch (267:3): [True: 0, False: 511]
  ------------------
  268|      0|    return "SSL server certificate status verification FAILED";
  269|       |
  270|      0|  case CURLE_HTTP2_STREAM:
  ------------------
  |  Branch (270:3): [True: 0, False: 511]
  ------------------
  271|      0|    return "Stream error in the HTTP/2 framing layer";
  272|       |
  273|      0|  case CURLE_RECURSIVE_API_CALL:
  ------------------
  |  Branch (273:3): [True: 0, False: 511]
  ------------------
  274|      0|    return "API function called from within callback";
  275|       |
  276|      0|  case CURLE_AUTH_ERROR:
  ------------------
  |  Branch (276:3): [True: 0, False: 511]
  ------------------
  277|      0|    return "An authentication function returned an error";
  278|       |
  279|      0|  case CURLE_HTTP3:
  ------------------
  |  Branch (279:3): [True: 0, False: 511]
  ------------------
  280|      0|    return "HTTP/3 error";
  281|       |
  282|      0|  case CURLE_QUIC_CONNECT_ERROR:
  ------------------
  |  Branch (282:3): [True: 0, False: 511]
  ------------------
  283|      0|    return "QUIC connection error";
  284|       |
  285|      0|  case CURLE_PROXY:
  ------------------
  |  Branch (285:3): [True: 0, False: 511]
  ------------------
  286|      0|    return "proxy handshake error";
  287|       |
  288|      0|  case CURLE_SSL_CLIENTCERT:
  ------------------
  |  Branch (288:3): [True: 0, False: 511]
  ------------------
  289|      0|    return "SSL Client Certificate required";
  290|       |
  291|      0|  case CURLE_UNRECOVERABLE_POLL:
  ------------------
  |  Branch (291:3): [True: 0, False: 511]
  ------------------
  292|      0|    return "Unrecoverable error in select/poll";
  293|       |
  294|      0|  case CURLE_TOO_LARGE:
  ------------------
  |  Branch (294:3): [True: 0, False: 511]
  ------------------
  295|      0|    return "A value or data field grew larger than allowed";
  296|       |
  297|      0|  case CURLE_ECH_REQUIRED:
  ------------------
  |  Branch (297:3): [True: 0, False: 511]
  ------------------
  298|      0|    return "ECH attempted but failed";
  299|       |
  300|       |    /* error codes not used by current libcurl */
  301|      0|  default:
  ------------------
  |  Branch (301:3): [True: 0, False: 511]
  ------------------
  302|      0|    break;
  303|    511|  }
  304|       |  /*
  305|       |   * By using a switch, gcc -Wall will complain about enum values
  306|       |   * which do not appear, helping keep this function up-to-date.
  307|       |   * By using gcc -Wall -Werror, you cannot forget.
  308|       |   *
  309|       |   * A table would not have the same benefit. Most compilers will generate
  310|       |   * code similar to a table in any case, so there is little performance gain
  311|       |   * from a table. Something is broken for the user's application, anyways, so
  312|       |   * does it matter how fast it _does not_ work?
  313|       |   *
  314|       |   * The line number for the error will be near this comment, which is why it
  315|       |   * is here, and not at the start of the switch.
  316|       |   */
  317|      0|  return "Unknown error";
  318|       |#else
  319|       |  if(!error)
  320|       |    return "No error";
  321|       |  else
  322|       |    return "Error";
  323|       |#endif
  324|    511|}
curl_url_strerror:
  421|    619|{
  422|    619|#ifdef CURLVERBOSE
  423|    619|  switch(error) {
  ------------------
  |  Branch (423:10): [True: 619, False: 0]
  ------------------
  424|      0|  case CURLUE_OK:
  ------------------
  |  Branch (424:3): [True: 0, False: 619]
  ------------------
  425|      0|    return "No error";
  426|       |
  427|      0|  case CURLUE_BAD_HANDLE:
  ------------------
  |  Branch (427:3): [True: 0, False: 619]
  ------------------
  428|      0|    return "An invalid CURLU pointer was passed as argument";
  429|       |
  430|      0|  case CURLUE_BAD_PARTPOINTER:
  ------------------
  |  Branch (430:3): [True: 0, False: 619]
  ------------------
  431|      0|    return "An invalid 'part' argument was passed as argument";
  432|       |
  433|    120|  case CURLUE_MALFORMED_INPUT:
  ------------------
  |  Branch (433:3): [True: 120, False: 499]
  ------------------
  434|    120|    return "Malformed input to a URL function";
  435|       |
  436|     14|  case CURLUE_BAD_PORT_NUMBER:
  ------------------
  |  Branch (436:3): [True: 14, False: 605]
  ------------------
  437|     14|    return "Port number was not a decimal number between 0 and 65535";
  438|       |
  439|     21|  case CURLUE_UNSUPPORTED_SCHEME:
  ------------------
  |  Branch (439:3): [True: 21, False: 598]
  ------------------
  440|     21|    return "Unsupported URL scheme";
  441|       |
  442|      0|  case CURLUE_URLDECODE:
  ------------------
  |  Branch (442:3): [True: 0, False: 619]
  ------------------
  443|      0|    return "URL decode error, most likely because of rubbish in the input";
  444|       |
  445|      0|  case CURLUE_OUT_OF_MEMORY:
  ------------------
  |  Branch (445:3): [True: 0, False: 619]
  ------------------
  446|      0|    return "A memory function failed";
  447|       |
  448|      0|  case CURLUE_USER_NOT_ALLOWED:
  ------------------
  |  Branch (448:3): [True: 0, False: 619]
  ------------------
  449|      0|    return "Credentials was passed in the URL when prohibited";
  450|       |
  451|      0|  case CURLUE_UNKNOWN_PART:
  ------------------
  |  Branch (451:3): [True: 0, False: 619]
  ------------------
  452|      0|    return "An unknown part ID was passed to a URL API function";
  453|       |
  454|      0|  case CURLUE_NO_SCHEME:
  ------------------
  |  Branch (454:3): [True: 0, False: 619]
  ------------------
  455|      0|    return "No scheme part in the URL";
  456|       |
  457|      0|  case CURLUE_NO_USER:
  ------------------
  |  Branch (457:3): [True: 0, False: 619]
  ------------------
  458|      0|    return "No user part in the URL";
  459|       |
  460|      0|  case CURLUE_NO_PASSWORD:
  ------------------
  |  Branch (460:3): [True: 0, False: 619]
  ------------------
  461|      0|    return "No password part in the URL";
  462|       |
  463|      0|  case CURLUE_NO_OPTIONS:
  ------------------
  |  Branch (463:3): [True: 0, False: 619]
  ------------------
  464|      0|    return "No options part in the URL";
  465|       |
  466|    101|  case CURLUE_NO_HOST:
  ------------------
  |  Branch (466:3): [True: 101, False: 518]
  ------------------
  467|    101|    return "No host part in the URL";
  468|       |
  469|      0|  case CURLUE_NO_PORT:
  ------------------
  |  Branch (469:3): [True: 0, False: 619]
  ------------------
  470|      0|    return "No port part in the URL";
  471|       |
  472|      0|  case CURLUE_NO_QUERY:
  ------------------
  |  Branch (472:3): [True: 0, False: 619]
  ------------------
  473|      0|    return "No query part in the URL";
  474|       |
  475|      0|  case CURLUE_NO_FRAGMENT:
  ------------------
  |  Branch (475:3): [True: 0, False: 619]
  ------------------
  476|      0|    return "No fragment part in the URL";
  477|       |
  478|      0|  case CURLUE_NO_ZONEID:
  ------------------
  |  Branch (478:3): [True: 0, False: 619]
  ------------------
  479|      0|    return "No zoneid part in the URL";
  480|       |
  481|      0|  case CURLUE_BAD_LOGIN:
  ------------------
  |  Branch (481:3): [True: 0, False: 619]
  ------------------
  482|      0|    return "Bad login part";
  483|       |
  484|     33|  case CURLUE_BAD_IPV6:
  ------------------
  |  Branch (484:3): [True: 33, False: 586]
  ------------------
  485|     33|    return "Bad IPv6 address";
  486|       |
  487|    312|  case CURLUE_BAD_HOSTNAME:
  ------------------
  |  Branch (487:3): [True: 312, False: 307]
  ------------------
  488|    312|    return "Bad hostname";
  489|       |
  490|     16|  case CURLUE_BAD_FILE_URL:
  ------------------
  |  Branch (490:3): [True: 16, False: 603]
  ------------------
  491|     16|    return "Bad file:// URL";
  492|       |
  493|      2|  case CURLUE_BAD_SLASHES:
  ------------------
  |  Branch (493:3): [True: 2, False: 617]
  ------------------
  494|      2|    return "Unsupported number of slashes following scheme";
  495|       |
  496|      0|  case CURLUE_BAD_SCHEME:
  ------------------
  |  Branch (496:3): [True: 0, False: 619]
  ------------------
  497|      0|    return "Bad scheme";
  498|       |
  499|      0|  case CURLUE_BAD_PATH:
  ------------------
  |  Branch (499:3): [True: 0, False: 619]
  ------------------
  500|      0|    return "Bad path";
  501|       |
  502|      0|  case CURLUE_BAD_FRAGMENT:
  ------------------
  |  Branch (502:3): [True: 0, False: 619]
  ------------------
  503|      0|    return "Bad fragment";
  504|       |
  505|      0|  case CURLUE_BAD_QUERY:
  ------------------
  |  Branch (505:3): [True: 0, False: 619]
  ------------------
  506|      0|    return "Bad query";
  507|       |
  508|      0|  case CURLUE_BAD_PASSWORD:
  ------------------
  |  Branch (508:3): [True: 0, False: 619]
  ------------------
  509|      0|    return "Bad password";
  510|       |
  511|      0|  case CURLUE_BAD_USER:
  ------------------
  |  Branch (511:3): [True: 0, False: 619]
  ------------------
  512|      0|    return "Bad user";
  513|       |
  514|      0|  case CURLUE_LACKS_IDN:
  ------------------
  |  Branch (514:3): [True: 0, False: 619]
  ------------------
  515|      0|    return "libcurl lacks IDN support";
  516|       |
  517|      0|  case CURLUE_TOO_LARGE:
  ------------------
  |  Branch (517:3): [True: 0, False: 619]
  ------------------
  518|      0|    return "A value or data field is larger than allowed";
  519|       |
  520|      0|  case CURLUE_LAST:
  ------------------
  |  Branch (520:3): [True: 0, False: 619]
  ------------------
  521|      0|    break;
  522|    619|  }
  523|       |
  524|      0|  return "CURLUcode unknown";
  525|       |#else
  526|       |  if(error == CURLUE_OK)
  527|       |    return "No error";
  528|       |  else
  529|       |    return "Error";
  530|       |#endif
  531|    619|}

Curl_thrdpool_set_props:
  272|  7.82k|{
  273|  7.82k|  CURLcode result = CURLE_OK;
  274|  7.82k|  size_t running;
  275|       |
  276|  7.82k|  if(!max_threads || (min_threads > max_threads))
  ------------------
  |  Branch (276:6): [True: 0, False: 7.82k]
  |  Branch (276:22): [True: 0, False: 7.82k]
  ------------------
  277|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  278|       |
  279|  7.82k|  Curl_mutex_acquire(&tpool->lock);
  ------------------
  |  |   36|  7.82k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  280|  7.82k|  tpool->min_threads = min_threads;
  281|  7.82k|  tpool->max_threads = max_threads;
  282|  7.82k|  tpool->idle_time_ms = idle_time_ms;
  283|  7.82k|  running = Curl_llist_count(&tpool->slots);
  284|  7.82k|  if(tpool->min_threads > running) {
  ------------------
  |  Branch (284:6): [True: 0, False: 7.82k]
  ------------------
  285|      0|    result = thrdpool_signal(tpool, tpool->min_threads - (uint32_t)running);
  286|      0|  }
  287|  7.82k|  Curl_mutex_release(&tpool->lock);
  ------------------
  |  |   37|  7.82k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  288|       |
  289|  7.82k|  return result;
  290|  7.82k|}
Curl_thrdpool_create:
  301|  7.82k|{
  302|  7.82k|  struct curl_thrdpool *tpool;
  303|  7.82k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  304|       |
  305|  7.82k|  tpool = curlx_calloc(1, sizeof(*tpool));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  306|  7.82k|  if(!tpool)
  ------------------
  |  Branch (306:6): [True: 0, False: 7.82k]
  ------------------
  307|      0|    goto out;
  308|  7.82k|  tpool->refcount = 1;
  309|       |
  310|  7.82k|  Curl_mutex_init(&tpool->lock);
  ------------------
  |  |   35|  7.82k|#  define Curl_mutex_init(m)     pthread_mutex_init(m, NULL)
  ------------------
  311|  7.82k|  Curl_cond_init(&tpool->await);
  ------------------
  |  |   40|  7.82k|#  define Curl_cond_init(c)      pthread_cond_init(c, NULL)
  ------------------
  312|  7.82k|  Curl_llist_init(&tpool->slots, NULL);
  313|  7.82k|  Curl_llist_init(&tpool->zombies, NULL);
  314|  7.82k|  tpool->fn_take = fn_take;
  315|  7.82k|  tpool->fn_process = fn_process;
  316|  7.82k|  tpool->fn_return = fn_return;
  317|  7.82k|  tpool->fn_user_data = user_data;
  318|       |
  319|  7.82k|  tpool->name = curlx_strdup(name);
  ------------------
  |  | 1477|  7.82k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  320|  7.82k|  if(!tpool->name)
  ------------------
  |  Branch (320:6): [True: 0, False: 7.82k]
  ------------------
  321|      0|    goto out;
  322|       |
  323|  7.82k|  result = Curl_thrdpool_set_props(tpool, min_threads, max_threads,
  324|  7.82k|                                   idle_time_ms);
  325|       |
  326|  7.82k|out:
  327|  7.82k|  if(result && tpool) {
  ------------------
  |  Branch (327:6): [True: 0, False: 7.82k]
  |  Branch (327:16): [True: 0, False: 0]
  ------------------
  328|      0|    tpool->aborted = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  329|      0|    thrdpool_unlink(tpool, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  330|       |    tpool = NULL;
  331|      0|  }
  332|  7.82k|  *ptpool = tpool;
  333|  7.82k|  return result;
  334|  7.82k|}
Curl_thrdpool_destroy:
  337|  7.82k|{
  338|  7.82k|  Curl_mutex_acquire(&tpool->lock);
  ------------------
  |  |   36|  7.82k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  339|       |
  340|  7.82k|  tpool->aborted = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  341|       |
  342|  7.82k|  while(join && Curl_llist_count(&tpool->slots)) {
  ------------------
  |  Branch (342:9): [True: 7.82k, False: 0]
  |  Branch (342:17): [True: 0, False: 7.82k]
  ------------------
  343|      0|    thrdpool_wake_all(tpool);
  344|      0|    Curl_cond_wait(&tpool->await, &tpool->lock);
  345|      0|  }
  346|       |
  347|  7.82k|  thrdpool_join_zombies(tpool);
  348|       |
  349|       |  /* detach all still running threads */
  350|  7.82k|  if(Curl_llist_count(&tpool->slots)) {
  ------------------
  |  Branch (350:6): [True: 0, False: 7.82k]
  ------------------
  351|      0|    struct Curl_llist_node *e;
  352|      0|    for(e = Curl_llist_head(&tpool->slots); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (352:45): [True: 0, False: 0]
  ------------------
  353|      0|      struct thrdslot *tslot = Curl_node_elem(e);
  354|      0|      if(tslot->thread != curl_thread_t_null)
  ------------------
  |  |   34|      0|#  define curl_thread_t_null     (pthread_t *)0
  ------------------
  |  Branch (354:10): [True: 0, False: 0]
  ------------------
  355|      0|        Curl_thread_destroy(&tslot->thread);
  356|      0|    }
  357|      0|    tpool->detached = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  358|      0|  }
  359|       |
  360|  7.82k|  if(!thrdpool_unlink(tpool, TRUE)) {
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  |  Branch (360:6): [True: 0, False: 7.82k]
  ------------------
  361|       |    /* tpool not destroyed */
  362|      0|    Curl_mutex_release(&tpool->lock);
  ------------------
  |  |   37|      0|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  363|      0|  }
  364|  7.82k|}
thrdpool.c:thrdpool_unlink:
  216|  7.82k|{
  217|  7.82k|  DEBUGASSERT(tpool->refcount);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (217:3): [True: 0, False: 7.82k]
  |  Branch (217:3): [True: 7.82k, False: 0]
  ------------------
  218|  7.82k|  if(tpool->refcount)
  ------------------
  |  Branch (218:6): [True: 7.82k, False: 0]
  ------------------
  219|  7.82k|    tpool->refcount--;
  220|  7.82k|  if(tpool->refcount)
  ------------------
  |  Branch (220:6): [True: 0, False: 7.82k]
  ------------------
  221|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  222|       |
  223|       |  /* no more references, free */
  224|  7.82k|  DEBUGASSERT(tpool->aborted);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (224:3): [True: 0, False: 7.82k]
  |  Branch (224:3): [True: 7.82k, False: 0]
  ------------------
  225|  7.82k|  thrdpool_join_zombies(tpool);
  226|  7.82k|  if(locked)
  ------------------
  |  Branch (226:6): [True: 7.82k, False: 0]
  ------------------
  227|  7.82k|    Curl_mutex_release(&tpool->lock);
  ------------------
  |  |   37|  7.82k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  228|  7.82k|  curlx_free(tpool->name);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  229|  7.82k|  Curl_cond_destroy(&tpool->await);
  ------------------
  |  |   41|  7.82k|#  define Curl_cond_destroy(c)   pthread_cond_destroy(c)
  ------------------
  230|  7.82k|  Curl_mutex_destroy(&tpool->lock);
  ------------------
  |  |   38|  7.82k|#  define Curl_mutex_destroy(m)  pthread_mutex_destroy(m)
  ------------------
  231|  7.82k|  curlx_free(tpool);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  232|       |  return TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  233|  7.82k|}
thrdpool.c:thrdpool_join_zombies:
  197|  15.6k|{
  198|  15.6k|  struct Curl_llist_node *e;
  199|       |
  200|  15.6k|  for(e = Curl_llist_head(&tpool->zombies); e;
  ------------------
  |  Branch (200:45): [True: 0, False: 15.6k]
  ------------------
  201|  15.6k|      e = Curl_llist_head(&tpool->zombies)) {
  202|      0|    struct thrdslot *tslot = Curl_node_elem(e);
  203|       |
  204|      0|    Curl_node_remove(&tslot->node);
  205|      0|    if(tslot->thread != curl_thread_t_null) {
  ------------------
  |  |   34|      0|#  define curl_thread_t_null     (pthread_t *)0
  ------------------
  |  Branch (205:8): [True: 0, False: 0]
  ------------------
  206|      0|      Curl_mutex_release(&tpool->lock);
  ------------------
  |  |   37|      0|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  207|      0|      Curl_thread_join(&tslot->thread);
  208|      0|      Curl_mutex_acquire(&tpool->lock);
  ------------------
  |  |   36|      0|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  209|      0|      tslot->thread = curl_thread_t_null;
  ------------------
  |  |   34|      0|#  define curl_thread_t_null     (pthread_t *)0
  ------------------
  210|      0|    }
  211|      0|    thrdslot_destroy(tslot);
  212|      0|  }
  213|  15.6k|}

Curl_thrdq_create:
  209|  7.82k|{
  210|  7.82k|  struct curl_thrdq *tqueue;
  211|  7.82k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  212|       |
  213|  7.82k|  tqueue = curlx_calloc(1, sizeof(*tqueue));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  214|  7.82k|  if(!tqueue)
  ------------------
  |  Branch (214:6): [True: 0, False: 7.82k]
  ------------------
  215|      0|    goto out;
  216|       |
  217|  7.82k|  Curl_mutex_init(&tqueue->lock);
  ------------------
  |  |   35|  7.82k|#  define Curl_mutex_init(m)     pthread_mutex_init(m, NULL)
  ------------------
  218|  7.82k|  Curl_cond_init(&tqueue->await);
  ------------------
  |  |   40|  7.82k|#  define Curl_cond_init(c)      pthread_cond_init(c, NULL)
  ------------------
  219|  7.82k|  Curl_llist_init(&tqueue->sendq, thrdq_item_list_dtor);
  220|  7.82k|  Curl_llist_init(&tqueue->recvq, thrdq_item_list_dtor);
  221|  7.82k|  tqueue->fn_free = fn_free;
  222|  7.82k|  tqueue->fn_process = fn_process;
  223|  7.82k|  tqueue->fn_event = fn_event;
  224|  7.82k|  tqueue->fn_user_data = user_data;
  225|  7.82k|  tqueue->send_max_len = max_len;
  226|       |
  227|  7.82k|  tqueue->name = curlx_strdup(name);
  ------------------
  |  | 1477|  7.82k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  228|  7.82k|  if(!tqueue->name)
  ------------------
  |  Branch (228:6): [True: 0, False: 7.82k]
  ------------------
  229|      0|    goto out;
  230|       |
  231|  7.82k|  result = Curl_thrdpool_create(&tqueue->tpool, name,
  232|  7.82k|                                min_threads, max_threads, idle_time_ms,
  233|  7.82k|                                thrdq_tpool_take,
  234|  7.82k|                                thrdq_tpool_process,
  235|  7.82k|                                thrdq_tpool_return,
  236|  7.82k|                                tqueue);
  237|       |
  238|  7.82k|out:
  239|  7.82k|  if(result && tqueue) {
  ------------------
  |  Branch (239:6): [True: 0, False: 7.82k]
  |  Branch (239:16): [True: 0, False: 0]
  ------------------
  240|      0|    tqueue->aborted = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  241|      0|    thrdq_unlink(tqueue, FALSE, TRUE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
                  thrdq_unlink(tqueue, FALSE, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  242|       |    tqueue = NULL;
  243|      0|  }
  244|  7.82k|  *ptqueue = tqueue;
  245|  7.82k|  return result;
  246|  7.82k|}
Curl_thrdq_destroy:
  249|  7.82k|{
  250|  7.82k|  Curl_mutex_acquire(&tqueue->lock);
  ------------------
  |  |   36|  7.82k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  251|  7.82k|  DEBUGASSERT(!tqueue->aborted);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (251:3): [True: 0, False: 7.82k]
  |  Branch (251:3): [True: 7.82k, False: 0]
  ------------------
  252|  7.82k|  tqueue->aborted = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  253|       |  thrdq_unlink(tqueue, TRUE, join);
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  254|  7.82k|}
Curl_thrdq_recv:
  299|   122k|{
  300|   122k|  CURLcode result = CURLE_AGAIN;
  301|   122k|  struct Curl_llist_node *e;
  302|       |
  303|   122k|  *pitem = NULL;
  304|   122k|  Curl_mutex_acquire(&tqueue->lock);
  ------------------
  |  |   36|   122k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  305|   122k|  if(tqueue->aborted) {
  ------------------
  |  Branch (305:6): [True: 0, False: 122k]
  ------------------
  306|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (306:5): [Folded, False: 0]
  |  Branch (306:5): [Folded, False: 0]
  ------------------
  307|      0|    result = CURLE_RECV_ERROR;
  308|      0|    goto out;
  309|      0|  }
  310|       |
  311|   122k|  e = Curl_llist_head(&tqueue->recvq);
  312|   122k|  if(e) {
  ------------------
  |  Branch (312:6): [True: 0, False: 122k]
  ------------------
  313|      0|    struct thrdq_item *qitem = Curl_node_take_elem(e);
  314|      0|    *pitem = qitem->item;
  315|      0|    qitem->item = NULL;
  316|      0|    thrdq_item_destroy(qitem);
  317|      0|    result = CURLE_OK;
  318|      0|  }
  319|   122k|out:
  320|   122k|  Curl_mutex_release(&tqueue->lock);
  ------------------
  |  |   37|   122k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  321|   122k|  return result;
  322|   122k|}
Curl_thrdq_trace:
  389|   130k|{
  390|   130k|  struct curl_trc_feat *feat = &Curl_trc_feat_threads;
  391|   130k|  if(Curl_trc_ft_is_verbose(data, feat)) {
  ------------------
  |  |  326|   130k|  (Curl_trc_is_verbose(data) &&          \
  |  |  ------------------
  |  |  |  |  319|   260k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 130k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 130k]
  |  |  |  |  ------------------
  |  |  |  |  320|   260k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  327|   130k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  392|      0|    struct Curl_llist_node *e;
  393|      0|    struct thrdq_item *qitem;
  394|       |
  395|      0|    Curl_thrdpool_trace(tqueue->tpool, data);
  396|      0|    Curl_mutex_acquire(&tqueue->lock);
  ------------------
  |  |   36|      0|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  397|      0|    if(!Curl_llist_count(&tqueue->sendq) &&
  ------------------
  |  Branch (397:8): [True: 0, False: 0]
  ------------------
  398|      0|       !Curl_llist_count(&tqueue->recvq)) {
  ------------------
  |  Branch (398:8): [True: 0, False: 0]
  ------------------
  399|      0|      Curl_trc_feat_infof(data, feat, "[TQUEUE-%s] empty", tqueue->name);
  400|      0|    }
  401|      0|    for(e = Curl_llist_head(&tqueue->sendq); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (401:46): [True: 0, False: 0]
  ------------------
  402|      0|      qitem = Curl_node_elem(e);
  403|      0|      Curl_trc_feat_infof(data, feat, "[TQUEUE-%s] in: %s",
  404|      0|                          tqueue->name, qitem->description);
  405|      0|    }
  406|      0|    for(e = Curl_llist_head(&tqueue->recvq); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (406:46): [True: 0, False: 0]
  ------------------
  407|      0|      qitem = Curl_node_elem(e);
  408|      0|      Curl_trc_feat_infof(data, feat, "[TQUEUE-%s] out: %s",
  409|      0|                          tqueue->name, qitem->description);
  410|      0|    }
  411|      0|    Curl_mutex_release(&tqueue->lock);
  ------------------
  |  |   37|      0|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  412|      0|  }
  413|   130k|}
thrdqueue.c:thrdq_unlink:
  178|  7.82k|{
  179|  7.82k|  DEBUGASSERT(tqueue->aborted);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:3): [True: 0, False: 7.82k]
  |  Branch (179:3): [True: 7.82k, False: 0]
  ------------------
  180|  7.82k|  if(tqueue->tpool) {
  ------------------
  |  Branch (180:6): [True: 7.82k, False: 0]
  ------------------
  181|  7.82k|    if(locked)
  ------------------
  |  Branch (181:8): [True: 7.82k, False: 0]
  ------------------
  182|  7.82k|      Curl_mutex_release(&tqueue->lock);
  ------------------
  |  |   37|  7.82k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  183|  7.82k|    Curl_thrdpool_destroy(tqueue->tpool, join);
  184|  7.82k|    tqueue->tpool = NULL;
  185|  7.82k|    if(locked)
  ------------------
  |  Branch (185:8): [True: 7.82k, False: 0]
  ------------------
  186|  7.82k|      Curl_mutex_acquire(&tqueue->lock);
  ------------------
  |  |   36|  7.82k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  187|  7.82k|  }
  188|       |
  189|  7.82k|  Curl_llist_destroy(&tqueue->sendq, NULL);
  190|  7.82k|  Curl_llist_destroy(&tqueue->recvq, NULL);
  191|  7.82k|  curlx_free(tqueue->name);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  192|  7.82k|  Curl_cond_destroy(&tqueue->await);
  ------------------
  |  |   41|  7.82k|#  define Curl_cond_destroy(c)   pthread_cond_destroy(c)
  ------------------
  193|  7.82k|  if(locked)
  ------------------
  |  Branch (193:6): [True: 7.82k, False: 0]
  ------------------
  194|  7.82k|    Curl_mutex_release(&tqueue->lock);
  ------------------
  |  |   37|  7.82k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  195|  7.82k|  Curl_mutex_destroy(&tqueue->lock);
  ------------------
  |  |   38|  7.82k|#  define Curl_mutex_destroy(m)  pthread_mutex_destroy(m)
  ------------------
  196|  7.82k|  curlx_free(tqueue);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  197|  7.82k|}

Curl_checkheaders:
   88|  71.6k|{
   89|  71.6k|  struct curl_slist *head;
   90|  71.6k|  DEBUGASSERT(thislen);
  ------------------
  |  | 1081|  71.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (90:3): [True: 0, False: 71.6k]
  |  Branch (90:3): [True: 71.6k, False: 0]
  ------------------
   91|  71.6k|  DEBUGASSERT(thisheader[thislen - 1] != ':');
  ------------------
  |  | 1081|  71.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (91:3): [True: 0, False: 71.6k]
  |  Branch (91:3): [True: 71.6k, False: 0]
  ------------------
   92|       |
   93|  71.6k|  for(head = data->set.headers; head; head = head->next) {
  ------------------
  |  Branch (93:33): [True: 0, False: 71.6k]
  ------------------
   94|      0|    if(curl_strnequal(head->data, thisheader, thislen) &&
  ------------------
  |  Branch (94:8): [True: 0, False: 0]
  ------------------
   95|      0|       Curl_headersep(head->data[thislen]))
  ------------------
  |  |   26|      0|#define Curl_headersep(x) ((((x) == ':') || ((x) == ';')))
  |  |  ------------------
  |  |  |  Branch (26:29): [True: 0, False: 0]
  |  |  |  Branch (26:45): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   96|      0|      return head->data;
   97|      0|  }
   98|       |
   99|  71.6k|  return NULL;
  100|  71.6k|}
Curl_sendrecv:
  357|   121k|{
  358|   121k|  struct SingleRequest *k = &data->req;
  359|   121k|  CURLcode result = CURLE_OK;
  360|       |
  361|   121k|  if(Curl_xfer_is_blocked(data)) {
  ------------------
  |  Branch (361:6): [True: 0, False: 121k]
  ------------------
  362|      0|    result = CURLE_OK;
  363|      0|    goto out;
  364|      0|  }
  365|       |
  366|       |  /* We go ahead and do a read if we have a readable socket or if the stream
  367|       |     was rewound (in which case we have data in a buffer) */
  368|   121k|  if(CURL_REQ_WANT_RECV(data)) {
  ------------------
  |  |   40|   121k|#define CURL_REQ_WANT_RECV(d)  ((d)->req.io_flags & REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|   121k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  |  |  |  Branch (40:32): [True: 109k, False: 12.3k]
  |  |  ------------------
  ------------------
  369|   109k|    result = sendrecv_dl(data, k);
  370|   109k|    if(result || data->req.done)
  ------------------
  |  Branch (370:8): [True: 3.84k, False: 105k]
  |  Branch (370:18): [True: 138, False: 105k]
  ------------------
  371|  3.98k|      goto out;
  372|   109k|  }
  373|       |
  374|       |  /* If we still have writing to do, we check if we have a writable socket. */
  375|   117k|  if(Curl_req_want_send(data)) {
  ------------------
  |  Branch (375:6): [True: 14.8k, False: 102k]
  ------------------
  376|  14.8k|    result = sendrecv_ul(data);
  377|  14.8k|    if(result)
  ------------------
  |  Branch (377:8): [True: 71, False: 14.8k]
  ------------------
  378|     71|      goto out;
  379|  14.8k|  }
  380|       |
  381|   117k|  result = Curl_pgrsCheck(data);
  382|   117k|  if(result)
  ------------------
  |  Branch (382:6): [True: 0, False: 117k]
  ------------------
  383|      0|    goto out;
  384|       |
  385|   117k|  if(CURL_REQ_WANT_IO(data)) {
  ------------------
  |  |   42|   117k|  ((d)->req.io_flags & (REQ_IO_RECV | REQ_IO_SEND))
  |  |  ------------------
  |  |  |  |   35|   117k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  |  |                 ((d)->req.io_flags & (REQ_IO_RECV | REQ_IO_SEND))
  |  |  ------------------
  |  |  |  |   36|   117k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (42:3): [True: 112k, False: 5.06k]
  |  |  ------------------
  ------------------
  386|   112k|    if(Curl_timeleft_ms(data) < 0) {
  ------------------
  |  Branch (386:8): [True: 4, False: 112k]
  ------------------
  387|      4|      if(k->size != -1) {
  ------------------
  |  Branch (387:10): [True: 0, False: 4]
  ------------------
  388|      0|        failf(data, "Operation timed out after %" FMT_TIMEDIFF_T
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  389|      0|              " milliseconds with %" FMT_OFF_T " out of %"
  390|      0|              FMT_OFF_T " bytes received",
  391|      0|              curlx_ptimediff_ms(Curl_pgrs_now(data),
  392|      0|                                 &data->progress.t_startsingle),
  393|      0|              k->bytecount, k->size);
  394|      0|      }
  395|      4|      else {
  396|      4|        failf(data, "Operation timed out after %" FMT_TIMEDIFF_T
  ------------------
  |  |   62|      4|#define failf Curl_failf
  ------------------
  397|      4|              " milliseconds with %" FMT_OFF_T " bytes received",
  398|      4|              curlx_ptimediff_ms(Curl_pgrs_now(data),
  399|      4|                                 &data->progress.t_startsingle),
  400|      4|              k->bytecount);
  401|      4|      }
  402|      4|      result = CURLE_OPERATION_TIMEDOUT;
  403|      4|      goto out;
  404|      4|    }
  405|   112k|  }
  406|  5.06k|  else {
  407|       |    /*
  408|       |     * The transfer has been performed. Make some general checks before
  409|       |     * returning.
  410|       |     */
  411|  5.06k|    if(!(data->req.no_body) && (k->size != -1) &&
  ------------------
  |  Branch (411:8): [True: 4.71k, False: 350]
  |  Branch (411:32): [True: 2.89k, False: 1.81k]
  ------------------
  412|  2.89k|       (k->bytecount != k->size) && !k->newurl) {
  ------------------
  |  Branch (412:8): [True: 7, False: 2.88k]
  |  Branch (412:37): [True: 6, False: 1]
  ------------------
  413|      6|      failf(data, "transfer closed with %" FMT_OFF_T
  ------------------
  |  |   62|      6|#define failf Curl_failf
  ------------------
  414|      6|            " bytes remaining to read", k->size - k->bytecount);
  415|      6|      result = CURLE_PARTIAL_FILE;
  416|      6|      goto out;
  417|      6|    }
  418|  5.06k|  }
  419|       |
  420|       |  /* If there is nothing more to send/recv, the request is done */
  421|   117k|  if(!CURL_REQ_WANT_IO(data))
  ------------------
  |  |   42|   117k|  ((d)->req.io_flags & (REQ_IO_RECV | REQ_IO_SEND))
  |  |  ------------------
  |  |  |  |   35|   117k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  |  |                 ((d)->req.io_flags & (REQ_IO_RECV | REQ_IO_SEND))
  |  |  ------------------
  |  |  |  |   36|   117k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  |  Branch (421:6): [True: 5.05k, False: 112k]
  ------------------
  422|  5.05k|    data->req.done = TRUE;
  ------------------
  |  | 1055|  5.05k|#define TRUE true
  ------------------
  423|       |
  424|   117k|  result = Curl_pgrsUpdate(data);
  425|       |
  426|   121k|out:
  427|   121k|  if(result)
  ------------------
  |  Branch (427:6): [True: 3.92k, False: 117k]
  ------------------
  428|  3.92k|    DEBUGF(infof(data, "Curl_sendrecv() -> %d", result));
  ------------------
  |  | 1067|   148k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 3.92k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 3.92k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 3.92k]
  |  |  ------------------
  ------------------
  429|   121k|  return result;
  430|   117k|}
Curl_init_CONNECT:
  435|  11.1k|{
  436|  11.1k|  data->state.fread_func = data->set.fread_func_set;
  437|  11.1k|  data->state.in = data->set.in_set;
  438|  11.1k|  data->state.upload = (data->state.httpreq == HTTPREQ_PUT);
  439|  11.1k|}
Curl_pretransfer:
  447|  7.82k|{
  448|  7.82k|  CURLcode result = CURLE_OK;
  449|       |
  450|       |  /* Reset the retry count at the start of each request.
  451|       |   * If the retry count is not reset, when the connection drops,
  452|       |   * it will not enter the retry mechanism on CONN_MAX_RETRIES + 1 attempts
  453|       |   * and will immediately throw
  454|       |   * "Connection died, tried CONN_MAX_RETRIES times before giving up".
  455|       |   * By resetting it here, we ensure each new request starts fresh. */
  456|  7.82k|  data->state.retrycount = 0;
  457|       |
  458|  7.82k|  if(!data->set.str[STRING_SET_URL] && !data->set.uh) {
  ------------------
  |  Branch (458:6): [True: 0, False: 7.82k]
  |  Branch (458:40): [True: 0, False: 0]
  ------------------
  459|       |    /* we cannot do anything without URL */
  460|      0|    failf(data, "No URL set");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  461|      0|    return CURLE_URL_MALFORMAT;
  462|      0|  }
  463|       |
  464|       |  /* CURLOPT_CURLU overrides CURLOPT_URL and the contents of the CURLU handle
  465|       |     is allowed to be changed by the user between transfers */
  466|  7.82k|  if(data->set.uh) {
  ------------------
  |  Branch (466:6): [True: 0, False: 7.82k]
  ------------------
  467|      0|    CURLUcode uc;
  468|      0|    curlx_free(data->set.str[STRING_SET_URL]);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  469|      0|    uc = curl_url_get(data->set.uh,
  470|      0|                      CURLUPART_URL, &data->set.str[STRING_SET_URL], 0);
  471|      0|    if(uc) {
  ------------------
  |  Branch (471:8): [True: 0, False: 0]
  ------------------
  472|       |      /* clear the pointer to not point to freed memory anymore */
  473|      0|      Curl_bufref_set(&data->state.url, NULL, 0, NULL);
  474|      0|      failf(data, "No URL set");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  475|      0|      return CURLE_URL_MALFORMAT;
  476|      0|    }
  477|      0|  }
  478|       |
  479|  7.82k|  Curl_bufref_set(&data->state.url, data->set.str[STRING_SET_URL], 0, NULL);
  480|       |
  481|  7.82k|  if(data->set.postfields && data->set.set_resume_from) {
  ------------------
  |  Branch (481:6): [True: 532, False: 7.28k]
  |  Branch (481:30): [True: 0, False: 532]
  ------------------
  482|       |    /* we cannot */
  483|      0|    failf(data, "cannot mix POSTFIELDS with RESUME_FROM");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  484|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  485|      0|  }
  486|       |
  487|  7.82k|  data->state.prefer_ascii = data->set.prefer_ascii;
  488|  7.82k|#ifdef CURL_LIST_ONLY_PROTOCOL
  489|  7.82k|  data->state.list_only = data->set.list_only;
  490|  7.82k|#endif
  491|  7.82k|  data->state.httpreq = data->set.method;
  492|       |
  493|       |  /* initial transfer request coming up, forget the initial origin
  494|       |   * from a previous perform() on this handle. */
  495|  7.82k|  Curl_peer_unlink(&data->state.initial_origin);
  496|  7.82k|  data->state.requests = 0;
  497|  7.82k|  data->state.followlocation = 0; /* reset the location-follow counter */
  498|  7.82k|  data->state.this_is_a_follow = FALSE; /* reset this */
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  499|  7.82k|  data->state.http_ignorecustom = FALSE; /* use custom HTTP method */
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  500|  7.82k|  data->state.errorbuf = FALSE; /* no error has occurred */
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  501|  7.82k|#ifndef CURL_DISABLE_HTTP
  502|  7.82k|  Curl_http_neg_init(data, &data->state.http_neg);
  503|  7.82k|#endif
  504|  7.82k|  data->state.authproblem = FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  505|  7.82k|  data->state.authhost.want = data->set.httpauth;
  506|  7.82k|  data->state.authproxy.want = data->set.proxyauth;
  507|  7.82k|  curlx_safefree(data->info.wouldredirect);
  ------------------
  |  | 1327|  7.82k|  do {                      \
  |  | 1328|  7.82k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  7.82k|    (ptr) = NULL;           \
  |  | 1330|  7.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 7.82k]
  |  |  ------------------
  ------------------
  508|  7.82k|  Curl_data_priority_clear_state(data);
  509|  7.82k|  if(data->set.http_auto_referer)
  ------------------
  |  Branch (509:6): [True: 195, False: 7.62k]
  ------------------
  510|    195|    Curl_bufref_free(&data->state.referer);
  511|  7.82k|  if(data->set.str[STRING_SET_REFERER])
  ------------------
  |  Branch (511:6): [True: 621, False: 7.19k]
  ------------------
  512|    621|    Curl_bufref_set(&data->state.referer, data->set.str[STRING_SET_REFERER],
  513|    621|                    0, NULL);
  514|  7.19k|  else
  515|  7.19k|    Curl_bufref_free(&data->state.referer);
  516|       |
  517|  7.82k|  if(data->state.httpreq == HTTPREQ_PUT)
  ------------------
  |  Branch (517:6): [True: 630, False: 7.19k]
  ------------------
  518|    630|    data->state.infilesize = data->set.filesize;
  519|  7.19k|  else if((data->state.httpreq != HTTPREQ_GET) &&
  ------------------
  |  Branch (519:11): [True: 1.01k, False: 6.17k]
  ------------------
  520|  1.01k|          (data->state.httpreq != HTTPREQ_HEAD)) {
  ------------------
  |  Branch (520:11): [True: 882, False: 133]
  ------------------
  521|    882|    data->state.infilesize = data->set.postfieldsize;
  522|    882|    if(data->set.postfields && (data->state.infilesize == -1))
  ------------------
  |  Branch (522:8): [True: 483, False: 399]
  |  Branch (522:32): [True: 0, False: 483]
  ------------------
  523|      0|      data->state.infilesize = (curl_off_t)strlen(data->set.postfields);
  524|    882|  }
  525|  6.30k|  else
  526|  6.30k|    data->state.infilesize = 0;
  527|       |
  528|       |  /* If there is a list of cookie files to read, do it now! */
  529|  7.82k|  result = Curl_cookie_loadfiles(data);
  530|  7.82k|  if(!result)
  ------------------
  |  Branch (530:6): [True: 7.82k, False: 0]
  ------------------
  531|  7.82k|    Curl_cookie_run(data); /* activate */
  532|       |
  533|       |  /* If there is a list of host pairs to deal with */
  534|  7.82k|  if(!result && data->state.resolve)
  ------------------
  |  Branch (534:6): [True: 7.82k, False: 0]
  |  Branch (534:17): [True: 0, False: 7.82k]
  ------------------
  535|      0|    result = Curl_loadhostpairs(data);
  536|       |
  537|  7.82k|  if(!result)
  ------------------
  |  Branch (537:6): [True: 7.82k, False: 0]
  ------------------
  538|       |    /* If there is a list of hsts files to read */
  539|  7.82k|    result = Curl_hsts_loadfiles(data);
  540|       |
  541|  7.82k|  if(!result) {
  ------------------
  |  Branch (541:6): [True: 7.82k, False: 0]
  ------------------
  542|       |    /* Allow data->set.use_port to set which port to use. This needs to be
  543|       |     * disabled for example when we follow Location: headers to URLs using
  544|       |     * different ports! */
  545|  7.82k|    data->state.allow_port = TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  546|       |
  547|       |#if defined(HAVE_SIGNAL) && defined(SIGPIPE) && !defined(MSG_NOSIGNAL)
  548|       |    /*************************************************************
  549|       |     * Tell signal handler to ignore SIGPIPE
  550|       |     *************************************************************/
  551|       |    if(!data->set.no_signal)
  552|       |      data->state.prev_signal = signal(SIGPIPE, SIG_IGN);
  553|       |#endif
  554|       |
  555|  7.82k|    Curl_initinfo(data); /* reset session-specific information "variables" */
  556|  7.82k|    Curl_pgrsResetTransferSizes(data);
  557|  7.82k|    Curl_pgrsStartNow(data);
  558|       |
  559|       |    /* In case the handle is reused and an authentication method was picked
  560|       |       in the session we need to make sure we only use the one(s) we now
  561|       |       consider to be fine */
  562|  7.82k|    data->state.authhost.picked &= data->state.authhost.want;
  563|  7.82k|    data->state.authproxy.picked &= data->state.authproxy.want;
  564|       |
  565|  7.82k|#ifndef CURL_DISABLE_FTP
  566|  7.82k|    data->state.wildcardmatch = data->set.wildcard_enabled;
  567|  7.82k|    if(data->state.wildcardmatch) {
  ------------------
  |  Branch (567:8): [True: 0, False: 7.82k]
  ------------------
  568|      0|      struct WildcardData *wc;
  569|      0|      if(!data->wildcard) {
  ------------------
  |  Branch (569:10): [True: 0, False: 0]
  ------------------
  570|      0|        data->wildcard = curlx_calloc(1, sizeof(struct WildcardData));
  ------------------
  |  | 1480|      0|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  571|      0|        if(!data->wildcard)
  ------------------
  |  Branch (571:12): [True: 0, False: 0]
  ------------------
  572|      0|          return CURLE_OUT_OF_MEMORY;
  573|      0|      }
  574|      0|      wc = data->wildcard;
  575|      0|      if(wc->state < CURLWC_INIT) {
  ------------------
  |  Branch (575:10): [True: 0, False: 0]
  ------------------
  576|      0|        if(wc->ftpwc)
  ------------------
  |  Branch (576:12): [True: 0, False: 0]
  ------------------
  577|      0|          wc->dtor(wc->ftpwc);
  578|      0|        curlx_safefree(wc->pattern);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  579|      0|        curlx_safefree(wc->path);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  580|      0|        Curl_wildcard_init(wc); /* init wildcard structures */
  581|      0|      }
  582|      0|    }
  583|  7.82k|#endif
  584|  7.82k|    result = Curl_hsts_loadcb(data, data->hsts);
  585|  7.82k|  }
  586|       |
  587|       |  /*
  588|       |   * Set user-agent. Used for HTTP, but since we can attempt to tunnel
  589|       |   * anything through an HTTP proxy we cannot limit this based on protocol.
  590|       |   */
  591|  7.82k|  if(!result && data->set.str[STRING_USERAGENT]) {
  ------------------
  |  Branch (591:6): [True: 7.82k, False: 0]
  |  Branch (591:17): [True: 971, False: 6.84k]
  ------------------
  592|    971|    curlx_free(data->state.aptr.uagent);
  ------------------
  |  | 1483|    971|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  593|    971|    data->state.aptr.uagent =
  594|    971|      curl_maprintf("User-Agent: %s\r\n", data->set.str[STRING_USERAGENT]);
  595|    971|    if(!data->state.aptr.uagent)
  ------------------
  |  Branch (595:8): [True: 0, False: 971]
  ------------------
  596|      0|      return CURLE_OUT_OF_MEMORY;
  597|    971|  }
  598|       |
  599|  7.82k|  data->req.headerbytecount = 0;
  600|  7.82k|  Curl_headers_cleanup(data);
  601|  7.82k|  return result;
  602|  7.82k|}
Curl_retry_request:
  608|  5.42k|{
  609|  5.42k|  struct connectdata *conn = data->conn;
  610|  5.42k|  bool retry = FALSE;
  ------------------
  |  | 1058|  5.42k|#define FALSE false
  ------------------
  611|  5.42k|  *url = NULL;
  612|       |
  613|       |  /* if we are talking upload, we cannot do the checks below, unless the
  614|       |     protocol is HTTP as when uploading over HTTP we will still get a
  615|       |     response */
  616|  5.42k|  if(data->state.upload &&
  ------------------
  |  Branch (616:6): [True: 329, False: 5.09k]
  ------------------
  617|    329|     !(conn->scheme->protocol & (PROTO_FAMILY_HTTP | CURLPROTO_RTSP)))
  ------------------
  |  |   84|    329|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1078|    329|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1079|    329|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|    329|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|    329|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|    329|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
                   !(conn->scheme->protocol & (PROTO_FAMILY_HTTP | CURLPROTO_RTSP)))
  ------------------
  |  | 1096|    329|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (617:6): [True: 0, False: 329]
  ------------------
  618|      0|    return CURLE_OK;
  619|       |
  620|  5.42k|  if(conn->bits.reuse &&
  ------------------
  |  Branch (620:6): [True: 2.58k, False: 2.83k]
  ------------------
  621|  2.58k|     (data->req.bytecount + data->req.headerbytecount == 0) &&
  ------------------
  |  Branch (621:6): [True: 146, False: 2.44k]
  ------------------
  622|    146|     ((!data->req.no_body && !data->req.done) ||
  ------------------
  |  Branch (622:8): [True: 123, False: 23]
  |  Branch (622:30): [True: 0, False: 123]
  ------------------
  623|    146|      (conn->scheme->protocol & PROTO_FAMILY_HTTP))
  ------------------
  |  |   84|    146|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1078|    146|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1079|    146|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|    146|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|    146|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|    146|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (623:7): [True: 146, False: 0]
  ------------------
  624|    146|#ifndef CURL_DISABLE_RTSP
  625|    146|     && (data->set.rtspreq != RTSPREQ_RECEIVE)
  ------------------
  |  Branch (625:9): [True: 146, False: 0]
  ------------------
  626|  5.42k|#endif
  627|  5.42k|    )
  628|       |    /* We got no data, we attempted to reuse a connection. For HTTP this
  629|       |       can be a retry so we try again regardless if we expected a body.
  630|       |       For other protocols we only try again only if we expected a body.
  631|       |
  632|       |       This might happen if the connection was left alive when we were
  633|       |       done using it before, but that was closed when we wanted to read from
  634|       |       it again. Bad luck. Retry the same request on a fresh connect! */
  635|    146|    retry = TRUE;
  ------------------
  |  | 1055|    146|#define TRUE true
  ------------------
  636|  5.27k|  else if(data->state.refused_stream &&
  ------------------
  |  Branch (636:11): [True: 11, False: 5.26k]
  ------------------
  637|     11|          (data->req.bytecount + data->req.headerbytecount == 0)) {
  ------------------
  |  Branch (637:11): [True: 11, False: 0]
  ------------------
  638|       |    /* This was sent on a refused stream, safe to rerun. A refused stream
  639|       |       error can typically only happen on HTTP/2 level if the stream is safe
  640|       |       to issue again, but the nghttp2 API can deliver the message to other
  641|       |       streams as well, which is why this adds the check the data counters
  642|       |       too. */
  643|     11|    infof(data, "REFUSED_STREAM, retrying a fresh connect");
  ------------------
  |  |  143|     11|  do {                               \
  |  |  144|     11|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|     11|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 11, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 11]
  |  |  |  |  ------------------
  |  |  |  |  320|     11|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     11|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     11|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 11]
  |  |  ------------------
  ------------------
  644|     11|    data->state.refused_stream = FALSE; /* clear again */
  ------------------
  |  | 1058|     11|#define FALSE false
  ------------------
  645|     11|    retry = TRUE;
  ------------------
  |  | 1055|     11|#define TRUE true
  ------------------
  646|     11|  }
  647|  5.42k|  if(retry) {
  ------------------
  |  Branch (647:6): [True: 157, False: 5.26k]
  ------------------
  648|    157|#define CONN_MAX_RETRIES 5
  649|    157|    if(data->state.retrycount++ >= CONN_MAX_RETRIES) {
  ------------------
  |  |  648|    157|#define CONN_MAX_RETRIES 5
  ------------------
  |  Branch (649:8): [True: 0, False: 157]
  ------------------
  650|      0|      failf(data, "Connection died, tried %d times before giving up",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  651|      0|            CONN_MAX_RETRIES);
  ------------------
  |  |  648|      0|#define CONN_MAX_RETRIES 5
  ------------------
  652|      0|      data->state.retrycount = 0;
  653|      0|      return CURLE_SEND_ERROR;
  654|      0|    }
  655|    157|    infof(data, "Connection died, retrying a fresh connect (retry count: %d)",
  ------------------
  |  |  143|    157|  do {                               \
  |  |  144|    157|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    157|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 157, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 157]
  |  |  |  |  ------------------
  |  |  |  |  320|    157|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    157|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    157|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 157]
  |  |  ------------------
  ------------------
  656|    157|          data->state.retrycount);
  657|    157|    *url = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|    157|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1477|    157|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
  658|    157|    if(!*url)
  ------------------
  |  Branch (658:8): [True: 0, False: 157]
  ------------------
  659|      0|      return CURLE_OUT_OF_MEMORY;
  660|       |
  661|    157|    connclose(conn, "retry"); /* close this connection */
  ------------------
  |  |  103|    157|#define connclose(x, y)   Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
  |  |  ------------------
  |  |  |  |   91|    157|#define CONNCTRL_CONNECTION 1
  |  |  ------------------
  ------------------
  662|    157|    conn->bits.retry = TRUE; /* mark this as a connection we are about to
  ------------------
  |  | 1055|    157|#define TRUE true
  ------------------
  663|       |                                retry. Marking it this way should prevent i.e
  664|       |                                HTTP transfers to return error because nothing
  665|       |                                has been transferred! */
  666|    157|    Curl_creader_set_rewind(data, TRUE);
  ------------------
  |  | 1055|    157|#define TRUE true
  ------------------
  667|    157|  }
  668|  5.42k|  return CURLE_OK;
  669|  5.42k|}
Curl_xfer_setup_sendrecv:
  724|  9.58k|{
  725|  9.58k|  xfer_setup(data, sockindex, sockindex, recv_size);
  726|  9.58k|}
Curl_xfer_write_resp:
  755|  10.8k|{
  756|  10.8k|  CURLcode result = CURLE_OK;
  757|       |
  758|  10.8k|  if(data->conn->scheme->run->write_resp) {
  ------------------
  |  Branch (758:6): [True: 10.8k, False: 0]
  ------------------
  759|       |    /* protocol handlers offering this function take full responsibility
  760|       |     * for writing all received download data to the client. */
  761|  10.8k|    result = data->conn->scheme->run->write_resp(data, buf, blen, is_eos);
  762|  10.8k|  }
  763|      0|  else {
  764|       |    /* No special handling by protocol handler, write all received data
  765|       |     * as BODY to the client. */
  766|      0|    if(blen || is_eos) {
  ------------------
  |  Branch (766:8): [True: 0, False: 0]
  |  Branch (766:16): [True: 0, False: 0]
  ------------------
  767|      0|      int cwtype = CLIENTWRITE_BODY;
  ------------------
  |  |   42|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  768|      0|      if(is_eos)
  ------------------
  |  Branch (768:10): [True: 0, False: 0]
  ------------------
  769|      0|        cwtype |= CLIENTWRITE_EOS;
  ------------------
  |  |   49|      0|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  770|      0|      result = Curl_client_write(data, cwtype, buf, blen);
  771|      0|    }
  772|      0|  }
  773|       |
  774|  10.8k|  if(!result && is_eos) {
  ------------------
  |  Branch (774:6): [True: 9.82k, False: 1.00k]
  |  Branch (774:17): [True: 1.52k, False: 8.30k]
  ------------------
  775|       |    /* If we wrote the EOS, we are definitely done */
  776|  1.52k|    data->req.eos_written = TRUE;
  ------------------
  |  | 1055|  1.52k|#define TRUE true
  ------------------
  777|  1.52k|    data->req.download_done = TRUE;
  ------------------
  |  | 1055|  1.52k|#define TRUE true
  ------------------
  778|  1.52k|  }
  779|  10.8k|  CURL_TRC_WRITE(data, "xfer_write_resp(len=%zu, eos=%d) -> %d",
  ------------------
  |  |  158|  10.8k|  do {                                                     \
  |  |  159|  10.8k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  10.8k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  21.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 10.8k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 10.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  21.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.8k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  10.8k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  10.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 10.8k]
  |  |  ------------------
  ------------------
  780|  10.8k|                 blen, is_eos, result);
  781|  10.8k|  return result;
  782|  10.8k|}
Curl_xfer_write_resp_hd:
  791|  10.0k|{
  792|  10.0k|  if(data->conn->scheme->run->write_resp_hd) {
  ------------------
  |  Branch (792:6): [True: 10.0k, False: 0]
  ------------------
  793|  10.0k|    DEBUGASSERT(!hd0[hdlen]); /* null-terminated */
  ------------------
  |  | 1081|  10.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (793:5): [True: 0, False: 10.0k]
  |  Branch (793:5): [True: 10.0k, False: 0]
  ------------------
  794|       |    /* protocol handlers offering this function take full responsibility
  795|       |     * for writing all received download data to the client. */
  796|  10.0k|    return data->conn->scheme->run->write_resp_hd(data, hd0, hdlen, is_eos);
  797|  10.0k|  }
  798|       |  /* No special handling by protocol handler, write as response bytes */
  799|      0|  return Curl_xfer_write_resp(data, hd0, hdlen, is_eos);
  800|  10.0k|}
Curl_xfer_write_done:
  803|  10.3k|{
  804|  10.3k|  (void)premature;
  805|  10.3k|  return Curl_cw_out_done(data);
  806|  10.3k|}
Curl_xfer_needs_flush:
  809|   211k|{
  810|   211k|  return Curl_conn_needs_flush(data, data->conn->send_idx);
  811|   211k|}
Curl_xfer_flush:
  814|  1.05k|{
  815|  1.05k|  return Curl_conn_flush(data, data->conn->send_idx);
  816|  1.05k|}
Curl_xfer_send:
  821|  18.7k|{
  822|  18.7k|  CURLcode result;
  823|       |
  824|  18.7k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  18.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (824:3): [True: 0, False: 18.7k]
  |  Branch (824:3): [True: 18.7k, False: 0]
  ------------------
  825|  18.7k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  18.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (825:3): [True: 0, False: 18.7k]
  |  Branch (825:3): [True: 18.7k, False: 0]
  ------------------
  826|       |
  827|  18.7k|  result = Curl_conn_send(data, data->conn->send_idx,
  828|  18.7k|                          buf, blen, eos, pnwritten);
  829|  18.7k|  if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (829:6): [True: 8.57k, False: 10.1k]
  ------------------
  830|  8.57k|    result = CURLE_OK;
  831|  8.57k|    *pnwritten = 0;
  832|  8.57k|  }
  833|  10.1k|  else if(!result && *pnwritten)
  ------------------
  |  Branch (833:11): [True: 10.1k, False: 30]
  |  Branch (833:22): [True: 9.97k, False: 167]
  ------------------
  834|  9.97k|    data->info.request_size += *pnwritten;
  835|       |
  836|  18.7k|  DEBUGF(infof(data, "Curl_xfer_send(len=%zu, eos=%d) -> %d, %zu",
  ------------------
  |  | 1067|   131k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 18.7k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 18.7k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 18.7k]
  |  |  ------------------
  ------------------
  837|  18.7k|               blen, eos, result, *pnwritten));
  838|  18.7k|  return result;
  839|  18.7k|}
Curl_xfer_recv:
  844|   113k|{
  845|   113k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|   113k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (845:3): [True: 0, False: 113k]
  |  Branch (845:3): [True: 113k, False: 0]
  ------------------
  846|   113k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|   113k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (846:3): [True: 0, False: 113k]
  |  Branch (846:3): [True: 113k, False: 0]
  ------------------
  847|   113k|  DEBUGASSERT(data->set.buffer_size > 0);
  ------------------
  |  | 1081|   113k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (847:3): [True: 0, False: 113k]
  |  Branch (847:3): [True: 113k, False: 0]
  ------------------
  848|       |
  849|   113k|  if(curlx_uitouz(data->set.buffer_size) < blen)
  ------------------
  |  Branch (849:6): [True: 0, False: 113k]
  ------------------
  850|      0|    blen = curlx_uitouz(data->set.buffer_size);
  851|   113k|  return Curl_conn_recv(data, data->conn->recv_idx, buf, blen, pnrcvd);
  852|   113k|}
Curl_xfer_send_close:
  855|  9.20k|{
  856|  9.20k|  Curl_conn_ev_data_done_send(data);
  857|  9.20k|  return CURLE_OK;
  858|  9.20k|}
Curl_xfer_is_blocked:
  861|   121k|{
  862|   121k|  bool want_send = CURL_REQ_WANT_SEND(data);
  ------------------
  |  |   39|   121k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|   121k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  863|   121k|  bool want_recv = CURL_REQ_WANT_RECV(data);
  ------------------
  |  |   40|   121k|#define CURL_REQ_WANT_RECV(d)  ((d)->req.io_flags & REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|   121k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
  864|   121k|  if(!want_send)
  ------------------
  |  Branch (864:6): [True: 106k, False: 14.9k]
  ------------------
  865|   106k|    return want_recv && Curl_xfer_recv_is_paused(data);
  ------------------
  |  Branch (865:12): [True: 106k, False: 0]
  |  Branch (865:25): [True: 0, False: 106k]
  ------------------
  866|  14.9k|  else if(!want_recv)
  ------------------
  |  Branch (866:11): [True: 12.3k, False: 2.57k]
  ------------------
  867|  12.3k|    return want_send && Curl_xfer_send_is_paused(data);
  ------------------
  |  Branch (867:12): [True: 12.3k, False: 0]
  |  Branch (867:25): [True: 0, False: 12.3k]
  ------------------
  868|  2.57k|  else
  869|  2.57k|    return Curl_xfer_recv_is_paused(data) && Curl_xfer_send_is_paused(data);
  ------------------
  |  Branch (869:12): [True: 0, False: 2.57k]
  |  Branch (869:46): [True: 0, False: 0]
  ------------------
  870|   121k|}
Curl_xfer_send_is_paused:
  873|  18.8k|{
  874|  18.8k|  return Curl_rlimit_is_blocked(&data->progress.ul.rlimit);
  875|  18.8k|}
Curl_xfer_recv_is_paused:
  878|   127k|{
  879|   127k|  return Curl_rlimit_is_blocked(&data->progress.dl.rlimit);
  880|   127k|}
Curl_xfer_is_secure:
  904|  5.56k|{
  905|  5.56k|  const struct Curl_scheme *scheme = NULL;
  906|       |
  907|  5.56k|  if(data->conn) {
  ------------------
  |  Branch (907:6): [True: 5.56k, False: 0]
  ------------------
  908|  5.56k|    scheme = data->conn->scheme;
  909|       |    /* if we are connected, but not use SSL, the transfer is not secure.
  910|       |     * This covers an insecure http:// proxy that is not tunneling.
  911|       |     * We enforce tunneling for such cases, but better be sure here. */
  912|  5.56k|    if(Curl_conn_is_connected(data->conn, FIRSTSOCKET) &&
  ------------------
  |  |  303|  5.56k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (912:8): [True: 5.56k, False: 0]
  ------------------
  913|  5.56k|       !Curl_conn_is_ssl(data->conn, FIRSTSOCKET))
  ------------------
  |  |  303|  5.56k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (913:8): [True: 5.56k, False: 0]
  ------------------
  914|  5.56k|      return FALSE;
  ------------------
  |  | 1058|  5.56k|#define FALSE false
  ------------------
  915|  5.56k|  }
  916|      0|  else if(data->info.conn_scheme) { /* was connected once */
  ------------------
  |  Branch (916:11): [True: 0, False: 0]
  ------------------
  917|      0|    scheme = Curl_get_scheme(data->info.conn_scheme);
  918|      0|  }
  919|      0|  else { /* never connected (yet?) */
  920|      0|    DEBUGASSERT(0); /* not implemented, would need to parse URL */
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (920:5): [Folded, False: 0]
  |  Branch (920:5): [Folded, False: 0]
  ------------------
  921|      0|  }
  922|      0|  return scheme ? (scheme->flags & PROTOPT_SSL) : FALSE;
  ------------------
  |  |  207|      0|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
                return scheme ? (scheme->flags & PROTOPT_SSL) : FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  |  Branch (922:10): [True: 0, False: 0]
  ------------------
  923|  5.56k|}
transfer.c:sendrecv_dl:
  223|   109k|{
  224|   109k|  struct connectdata *conn = data->conn;
  225|   109k|  CURLcode result = CURLE_OK;
  226|   109k|  char *buf, *xfer_buf;
  227|   109k|  size_t blen, xfer_blen;
  228|   109k|  int maxloops = 10;
  229|   109k|  bool is_multiplex = FALSE;
  ------------------
  |  | 1058|   109k|#define FALSE false
  ------------------
  230|   109k|  bool rcvd_eagain = FALSE;
  ------------------
  |  | 1058|   109k|#define FALSE false
  ------------------
  231|   109k|  bool is_eos = FALSE, rate_limited = FALSE;
  ------------------
  |  | 1058|   109k|#define FALSE false
  ------------------
                bool is_eos = FALSE, rate_limited = FALSE;
  ------------------
  |  | 1058|   109k|#define FALSE false
  ------------------
  232|       |
  233|   109k|  result = Curl_multi_xfer_buf_borrow(data, &xfer_buf, &xfer_blen);
  234|   109k|  if(result)
  ------------------
  |  Branch (234:6): [True: 0, False: 109k]
  ------------------
  235|      0|    goto out;
  236|       |
  237|       |  /* This is where we loop until we have read everything there is to
  238|       |     read or we get a CURLE_AGAIN */
  239|   113k|  do {
  240|   113k|    size_t bytestoread;
  241|       |
  242|   113k|    if(!is_multiplex) {
  ------------------
  |  Branch (242:8): [True: 113k, False: 0]
  ------------------
  243|       |      /* Multiplexed connection have inherent handling of EOF and we do not
  244|       |       * have to carefully restrict the amount we try to read.
  245|       |       * Multiplexed changes only in one direction. */
  246|   113k|      is_multiplex = Curl_conn_is_multiplex(conn, FIRSTSOCKET);
  ------------------
  |  |  303|   113k|#define FIRSTSOCKET     0
  ------------------
  247|   113k|    }
  248|       |
  249|   113k|    buf = xfer_buf;
  250|   113k|    bytestoread = xfer_blen;
  251|       |
  252|   113k|    if(bytestoread && Curl_rlimit_active(&data->progress.dl.rlimit)) {
  ------------------
  |  Branch (252:8): [True: 113k, False: 0]
  |  Branch (252:23): [True: 113k, False: 0]
  ------------------
  253|   113k|      curl_off_t dl_avail = Curl_rlimit_avail(&data->progress.dl.rlimit,
  254|   113k|                                              Curl_pgrs_now(data));
  255|       |#if 0
  256|       |      DEBUGF(infof(data, "dl_rlimit, available=%" FMT_OFF_T, dl_avail));
  257|       |#endif
  258|       |      /* In case of rate limited downloads: if this loop already got data and
  259|       |       * less than 16k is left in the limit, break out. We want to stutter a
  260|       |       * bit to keep in the limit, but too small receives will cost cpu
  261|       |       * unnecessarily. */
  262|   113k|      if(dl_avail <= 0) {
  ------------------
  |  Branch (262:10): [True: 10, False: 113k]
  ------------------
  263|     10|        rate_limited = TRUE;
  ------------------
  |  | 1055|     10|#define TRUE true
  ------------------
  264|     10|        break;
  265|     10|      }
  266|   113k|      if(dl_avail < (curl_off_t)bytestoread)
  ------------------
  |  Branch (266:10): [True: 4.96k, False: 108k]
  ------------------
  267|  4.96k|        bytestoread = (size_t)dl_avail;
  268|   113k|    }
  269|       |
  270|   113k|    rcvd_eagain = FALSE;
  ------------------
  |  | 1058|   113k|#define FALSE false
  ------------------
  271|   113k|    result = xfer_recv_resp(data, buf, bytestoread, is_multiplex, &blen);
  272|   113k|    if(result) {
  ------------------
  |  Branch (272:8): [True: 102k, False: 10.8k]
  ------------------
  273|   102k|      if(result != CURLE_AGAIN)
  ------------------
  |  Branch (273:10): [True: 2.84k, False: 99.9k]
  ------------------
  274|  2.84k|        goto out; /* real error */
  275|  99.9k|      rcvd_eagain = TRUE;
  ------------------
  |  | 1055|  99.9k|#define TRUE true
  ------------------
  276|  99.9k|      result = CURLE_OK;
  277|  99.9k|      if(data->req.download_done && data->req.no_body &&
  ------------------
  |  Branch (277:10): [True: 1, False: 99.9k]
  |  Branch (277:37): [True: 1, False: 0]
  ------------------
  278|      1|         !data->req.resp_trailer) {
  ------------------
  |  Branch (278:10): [True: 1, False: 0]
  ------------------
  279|      1|        DEBUGF(infof(data, "EAGAIN, download done, no trailer announced, "
  ------------------
  |  | 1067|      7|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 1, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 1]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 1]
  |  |  ------------------
  ------------------
  280|      1|                     "not waiting for EOS"));
  281|      1|        blen = 0;
  282|       |        /* continue as if we received the EOS */
  283|      1|      }
  284|  99.9k|      else
  285|  99.9k|        break; /* get out of loop */
  286|  99.9k|    }
  287|       |
  288|       |    /* We only get a 0-length receive at the end of the response */
  289|  10.8k|    is_eos = (blen == 0);
  290|       |
  291|  10.8k|    if(!blen) {
  ------------------
  |  Branch (291:8): [True: 1.73k, False: 9.10k]
  ------------------
  292|  1.73k|      result = Curl_req_stop_send_recv(data);
  293|  1.73k|      if(result)
  ------------------
  |  Branch (293:10): [True: 0, False: 1.73k]
  ------------------
  294|      0|        goto out;
  295|  1.73k|      if(k->eos_written) /* already did write this to client, leave */
  ------------------
  |  Branch (295:10): [True: 0, False: 1.73k]
  ------------------
  296|      0|        break;
  297|  1.73k|    }
  298|       |
  299|  10.8k|    result = Curl_xfer_write_resp(data, buf, blen, is_eos);
  300|  10.8k|    if(result || data->req.done)
  ------------------
  |  Branch (300:8): [True: 1.00k, False: 9.82k]
  |  Branch (300:18): [True: 138, False: 9.69k]
  ------------------
  301|  1.14k|      goto out;
  302|       |
  303|       |    /* if we are done, we stop receiving. On multiplexed connections,
  304|       |     * we should read the EOS. Which may arrive as meta data after
  305|       |     * the bytes. Not taking it in might lead to RST of streams. */
  306|  9.69k|    if((!is_multiplex && data->req.download_done) || is_eos) {
  ------------------
  |  Branch (306:9): [True: 9.66k, False: 31]
  |  Branch (306:26): [True: 4.66k, False: 4.99k]
  |  Branch (306:54): [True: 31, False: 4.99k]
  ------------------
  307|  4.69k|      CURL_REQ_CLEAR_RECV(data);
  ------------------
  |  |   49|  4.69k|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|  4.69k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
  308|  4.69k|    }
  309|       |    /* if we stopped receiving, leave the loop */
  310|  9.69k|    if(!CURL_REQ_WANT_RECV(data))
  ------------------
  |  |   40|  9.69k|#define CURL_REQ_WANT_RECV(d)  ((d)->req.io_flags & REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|  9.69k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
  |  Branch (310:8): [True: 5.08k, False: 4.60k]
  ------------------
  311|  5.08k|      break;
  312|       |
  313|  9.69k|  } while(maxloops--);
  ------------------
  |  Branch (313:11): [True: 4.60k, False: 0]
  ------------------
  314|       |
  315|   105k|  if(!is_eos && !rate_limited && CURL_REQ_WANT_RECV(data) &&
  ------------------
  |  |   40|   208k|#define CURL_REQ_WANT_RECV(d)  ((d)->req.io_flags & REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|   103k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  |  |  |  Branch (40:32): [True: 99.9k, False: 3.55k]
  |  |  ------------------
  ------------------
  |  Branch (315:6): [True: 103k, False: 1.52k]
  |  Branch (315:17): [True: 103k, False: 10]
  ------------------
  316|  99.9k|     (!rcvd_eagain || data_pending(data, rcvd_eagain))) {
  ------------------
  |  Branch (316:7): [True: 0, False: 99.9k]
  |  Branch (316:23): [True: 0, False: 99.9k]
  ------------------
  317|       |    /* Did not read until EAGAIN/EOS or there is still data pending
  318|       |     * in buffers. Mark as read-again via simulated SELECT results. */
  319|      0|    Curl_multi_mark_dirty(data);
  320|      0|    CURL_TRC_M(data, "sendrecv_dl() no EAGAIN/pending data, mark as dirty");
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  321|      0|  }
  322|       |
  323|   105k|  if(!CURL_REQ_WANT_RECV(data) && CURL_REQ_WANT_SEND(data) &&
  ------------------
  |  |   40|   210k|#define CURL_REQ_WANT_RECV(d)  ((d)->req.io_flags & REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|   105k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
                if(!CURL_REQ_WANT_RECV(data) && CURL_REQ_WANT_SEND(data) &&
  ------------------
  |  |   39|   110k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  5.08k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 111, False: 4.97k]
  |  |  ------------------
  ------------------
  |  Branch (323:6): [True: 5.08k, False: 99.9k]
  ------------------
  324|    111|     (conn->bits.close || is_multiplex)) {
  ------------------
  |  Branch (324:7): [True: 1, False: 110]
  |  Branch (324:27): [True: 0, False: 110]
  ------------------
  325|       |    /* When we have read the entire thing and the close bit is set, the server
  326|       |       may now close the connection. If there is now any kind of sending going
  327|       |       on from our side, we need to stop that immediately. */
  328|      1|    infof(data, "we are done reading and this is set to close, stop send");
  ------------------
  |  |  143|      1|  do {                               \
  |  |  144|      1|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      1|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 1, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 1]
  |  |  |  |  ------------------
  |  |  |  |  320|      1|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      1|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      1|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1]
  |  |  ------------------
  ------------------
  329|      1|    Curl_req_abort_sending(data);
  330|      1|  }
  331|       |
  332|   109k|out:
  333|   109k|  Curl_multi_xfer_buf_release(data, xfer_buf);
  334|   109k|  if(result)
  ------------------
  |  Branch (334:6): [True: 3.84k, False: 105k]
  ------------------
  335|  3.84k|    DEBUGF(infof(data, "sendrecv_dl() -> %d", result));
  ------------------
  |  | 1067|   135k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 3.84k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 3.84k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 3.84k]
  |  |  ------------------
  ------------------
  336|   109k|  return result;
  337|   105k|}
transfer.c:xfer_recv_resp:
  180|   113k|{
  181|   113k|  CURLcode result;
  182|       |
  183|   113k|  DEBUGASSERT(blen > 0);
  ------------------
  |  | 1081|   113k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (183:3): [True: 0, False: 113k]
  |  Branch (183:3): [True: 113k, False: 0]
  ------------------
  184|   113k|  *pnread = 0;
  185|       |  /* If we are reading BODY data and the connection does NOT handle EOF
  186|       |   * and we know the size of the BODY data, limit the read amount */
  187|   113k|  if(!eos_reliable && !data->req.header && data->req.size != -1) {
  ------------------
  |  Branch (187:6): [True: 103k, False: 9.97k]
  |  Branch (187:23): [True: 90.3k, False: 13.3k]
  |  Branch (187:44): [True: 542, False: 89.7k]
  ------------------
  188|    542|    blen = curlx_sotouz_range(data->req.size - data->req.bytecount, 0, blen);
  189|    542|  }
  190|   113k|  else if(xfer_recv_shutdown_started(data)) {
  ------------------
  |  Branch (190:11): [True: 0, False: 113k]
  ------------------
  191|       |    /* we already received everything. Do not try more. */
  192|      0|    blen = 0;
  193|      0|  }
  194|       |
  195|   113k|  if(blen) {
  ------------------
  |  Branch (195:6): [True: 113k, False: 3]
  ------------------
  196|   113k|    result = Curl_xfer_recv(data, buf, blen, pnread);
  197|   113k|    if(result)
  ------------------
  |  Branch (197:8): [True: 102k, False: 10.8k]
  ------------------
  198|   102k|      return result;
  199|   113k|  }
  200|       |
  201|  10.8k|  if(*pnread == 0) {
  ------------------
  |  Branch (201:6): [True: 1.73k, False: 9.10k]
  ------------------
  202|  1.73k|    if(data->req.shutdown) {
  ------------------
  |  Branch (202:8): [True: 0, False: 1.73k]
  ------------------
  203|      0|      bool done;
  204|      0|      result = xfer_recv_shutdown(data, &done);
  205|      0|      if(result)
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|        return result;
  207|      0|      if(!done) {
  ------------------
  |  Branch (207:10): [True: 0, False: 0]
  ------------------
  208|      0|        return CURLE_AGAIN;
  209|      0|      }
  210|      0|    }
  211|  1.73k|    DEBUGF(infof(data, "sendrecv_dl: we are done"));
  ------------------
  |  | 1067|  12.1k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 1.73k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 1.73k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 1.73k]
  |  |  ------------------
  ------------------
  212|  1.73k|  }
  213|  10.8k|  return CURLE_OK;
  214|  10.8k|}
transfer.c:xfer_recv_shutdown_started:
  155|   113k|{
  156|   113k|  if(!data || !data->conn)
  ------------------
  |  Branch (156:6): [True: 0, False: 113k]
  |  Branch (156:15): [True: 0, False: 113k]
  ------------------
  157|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  158|   113k|  return Curl_shutdown_started(data, data->conn->recv_idx);
  159|   113k|}
transfer.c:data_pending:
  104|  99.9k|{
  105|  99.9k|  struct connectdata *conn = data->conn;
  106|       |
  107|  99.9k|  if(conn->scheme->protocol & PROTO_FAMILY_FTP)
  ------------------
  |  |   86|  99.9k|#define PROTO_FAMILY_FTP  (CURLPROTO_FTP | CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1080|  99.9k|#define CURLPROTO_FTP     (1L << 2)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_FTP  (CURLPROTO_FTP | CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1081|  99.9k|#define CURLPROTO_FTPS    (1L << 3)
  |  |  ------------------
  ------------------
  |  Branch (107:6): [True: 0, False: 99.9k]
  ------------------
  108|      0|    return Curl_conn_data_pending(data, SECONDARYSOCKET);
  ------------------
  |  |  304|      0|#define SECONDARYSOCKET 1
  ------------------
  109|       |
  110|       |  /* in the case of libssh2, we can never be really sure that we have emptied
  111|       |     its internal buffers so we MUST always try until we get EAGAIN back */
  112|  99.9k|  return (!rcvd_eagain &&
  ------------------
  |  Branch (112:11): [True: 0, False: 99.9k]
  ------------------
  113|      0|          conn->scheme->protocol & (CURLPROTO_SCP | CURLPROTO_SFTP)) ||
  ------------------
  |  | 1082|      0|#define CURLPROTO_SCP     (1L << 4)
  ------------------
                        conn->scheme->protocol & (CURLPROTO_SCP | CURLPROTO_SFTP)) ||
  ------------------
  |  | 1083|      0|#define CURLPROTO_SFTP    (1L << 5)
  ------------------
  |  Branch (113:11): [True: 0, False: 0]
  ------------------
  114|  99.9k|         Curl_conn_data_pending(data, FIRSTSOCKET);
  ------------------
  |  |  303|  99.9k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (114:10): [True: 0, False: 99.9k]
  ------------------
  115|  99.9k|}
transfer.c:sendrecv_ul:
  343|  14.8k|{
  344|       |  /* We should not get here when the sending is already done. */
  345|  14.8k|  DEBUGASSERT(!Curl_req_done_sending(data));
  ------------------
  |  | 1081|  14.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (345:3): [True: 0, False: 14.8k]
  |  Branch (345:3): [True: 14.8k, False: 0]
  ------------------
  346|       |
  347|  14.8k|  if(!Curl_req_done_sending(data))
  ------------------
  |  Branch (347:6): [True: 14.8k, False: 0]
  ------------------
  348|  14.8k|    return Curl_req_send_more(data);
  349|      0|  return CURLE_OK;
  350|  14.8k|}
transfer.c:xfer_setup:
  677|  9.58k|{
  678|  9.58k|  struct SingleRequest *k = &data->req;
  679|  9.58k|  struct connectdata *conn = data->conn;
  680|       |
  681|  9.58k|  DEBUGASSERT(conn != NULL);
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (681:3): [True: 0, False: 9.58k]
  |  Branch (681:3): [True: 9.58k, False: 0]
  ------------------
  682|       |  /* indexes are in range */
  683|  9.58k|  DEBUGASSERT((send_idx <= 1) && (send_idx >= -1));
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (683:3): [True: 0, False: 9.58k]
  |  Branch (683:3): [True: 0, False: 0]
  |  Branch (683:3): [True: 9.58k, False: 0]
  |  Branch (683:3): [True: 9.58k, False: 0]
  ------------------
  684|  9.58k|  DEBUGASSERT((recv_idx <= 1) && (recv_idx >= -1));
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (684:3): [True: 0, False: 9.58k]
  |  Branch (684:3): [True: 0, False: 0]
  |  Branch (684:3): [True: 9.58k, False: 0]
  |  Branch (684:3): [True: 9.58k, False: 0]
  ------------------
  685|       |  /* if request wants to send, switching off the send direction is wrong */
  686|  9.58k|  DEBUGASSERT((send_idx >= 0) || !Curl_req_want_send(data));
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (686:3): [True: 9.58k, False: 0]
  |  Branch (686:3): [True: 0, False: 0]
  |  Branch (686:3): [True: 9.58k, False: 0]
  |  Branch (686:3): [True: 0, False: 0]
  ------------------
  687|       |
  688|  9.58k|  conn->send_idx = send_idx;
  689|  9.58k|  conn->recv_idx = recv_idx;
  690|       |
  691|       |  /* without receiving, there should be not recv_size */
  692|  9.58k|  DEBUGASSERT((conn->recv_idx >= 0) || (recv_size == -1));
  ------------------
  |  | 1081|  9.58k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (692:3): [True: 9.58k, False: 0]
  |  Branch (692:3): [True: 0, False: 0]
  |  Branch (692:3): [True: 9.58k, False: 0]
  |  Branch (692:3): [True: 0, False: 0]
  ------------------
  693|  9.58k|  k->size = recv_size;
  694|  9.58k|  k->header = !!conn->scheme->run->write_resp_hd;
  695|       |  /* by default, we do not shutdown at the end of the transfer */
  696|  9.58k|  k->shutdown = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
  697|  9.58k|  k->shutdown_err_ignore = FALSE;
  ------------------
  |  | 1058|  9.58k|#define FALSE false
  ------------------
  698|       |
  699|       |  /* The code sequence below is placed in this function because all necessary
  700|       |     input is not always known in do_complete() as this function may be called
  701|       |     after that */
  702|  9.58k|  if(!k->header && (recv_size > 0))
  ------------------
  |  Branch (702:6): [True: 0, False: 9.58k]
  |  Branch (702:20): [True: 0, False: 0]
  ------------------
  703|      0|    Curl_pgrsSetDownloadSize(data, recv_size);
  704|       |
  705|       |  /* we want header and/or body, if neither then do not do this! */
  706|  9.58k|  if(conn->scheme->run->write_resp_hd || !data->req.no_body) {
  ------------------
  |  Branch (706:6): [True: 9.58k, False: 0]
  |  Branch (706:42): [True: 0, False: 0]
  ------------------
  707|  9.58k|    if(conn->recv_idx != -1)
  ------------------
  |  Branch (707:8): [True: 9.58k, False: 0]
  ------------------
  708|  9.58k|      CURL_REQ_SET_RECV(data);
  ------------------
  |  |   45|  9.58k|#define CURL_REQ_SET_RECV(d)   ((d)->req.io_flags |= REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|  9.58k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
  709|  9.58k|    if(conn->send_idx != -1)
  ------------------
  |  Branch (709:8): [True: 9.58k, False: 0]
  ------------------
  710|  9.58k|      CURL_REQ_SET_SEND(data);
  ------------------
  |  |   44|  9.58k|#define CURL_REQ_SET_SEND(d)   ((d)->req.io_flags |= REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  9.58k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  711|  9.58k|  }
  712|  9.58k|  CURL_TRC_M(data, "xfer_setup: recv_idx=%d, send_idx=%d",
  ------------------
  |  |  148|  9.58k|  do {                                   \
  |  |  149|  9.58k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.58k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  9.58k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  19.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 9.58k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 9.58k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  19.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  9.58k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.58k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.58k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.58k]
  |  |  ------------------
  ------------------
  713|  9.58k|             conn->recv_idx, conn->send_idx);
  714|  9.58k|}

Curl_uint32_bset_init:
   33|  39.1k|{
   34|  39.1k|  memset(bset, 0, sizeof(*bset));
   35|  39.1k|#ifdef DEBUGBUILD
   36|  39.1k|  bset->init = CURL_UINT32_BSET_MAGIC;
  ------------------
  |  |   29|  39.1k|#define CURL_UINT32_BSET_MAGIC  0x62757473
  ------------------
   37|  39.1k|#endif
   38|  39.1k|}
Curl_uint32_bset_resize:
   41|  39.1k|{
   42|  39.1k|  uint32_t nslots = (nmax < (UINT32_MAX - 63)) ?
  ------------------
  |  Branch (42:21): [True: 39.1k, False: 0]
  ------------------
   43|  39.1k|                    ((nmax + 63) / 64) : (UINT32_MAX / 64);
   44|       |
   45|  39.1k|  DEBUGASSERT(bset->init == CURL_UINT32_BSET_MAGIC);
  ------------------
  |  | 1081|  39.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (45:3): [True: 0, False: 39.1k]
  |  Branch (45:3): [True: 39.1k, False: 0]
  ------------------
   46|  39.1k|  if(nslots != bset->nslots) {
  ------------------
  |  Branch (46:6): [True: 39.1k, False: 0]
  ------------------
   47|  39.1k|    uint64_t *slots = curlx_calloc(nslots, sizeof(uint64_t));
  ------------------
  |  | 1480|  39.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   48|  39.1k|    if(!slots)
  ------------------
  |  Branch (48:8): [True: 0, False: 39.1k]
  ------------------
   49|      0|      return CURLE_OUT_OF_MEMORY;
   50|       |
   51|  39.1k|    if(bset->slots) {
  ------------------
  |  Branch (51:8): [True: 0, False: 39.1k]
  ------------------
   52|      0|      memcpy(slots, bset->slots,
   53|      0|             (CURLMIN(nslots, bset->nslots) * sizeof(uint64_t)));
  ------------------
  |  | 1287|      0|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   54|      0|      curlx_free(bset->slots);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   55|      0|    }
   56|  39.1k|    bset->slots = slots;
   57|  39.1k|    bset->nslots = nslots;
   58|  39.1k|    bset->first_slot_used = 0;
   59|  39.1k|  }
   60|  39.1k|  return CURLE_OK;
   61|  39.1k|}
Curl_uint32_bset_destroy:
   64|  39.1k|{
   65|  39.1k|  DEBUGASSERT(bset->init == CURL_UINT32_BSET_MAGIC);
  ------------------
  |  | 1081|  39.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (65:3): [True: 0, False: 39.1k]
  |  Branch (65:3): [True: 39.1k, False: 0]
  ------------------
   66|  39.1k|  curlx_free(bset->slots);
  ------------------
  |  | 1483|  39.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   67|  39.1k|  memset(bset, 0, sizeof(*bset));
   68|  39.1k|}
Curl_uint32_bset_empty:
   91|  7.80k|{
   92|  7.80k|  uint32_t i;
   93|  7.80k|  for(i = bset->first_slot_used; i < bset->nslots; ++i) {
  ------------------
  |  Branch (93:34): [True: 7.80k, False: 0]
  ------------------
   94|  7.80k|    if(bset->slots[i])
  ------------------
  |  Branch (94:8): [True: 7.80k, False: 0]
  ------------------
   95|  7.80k|      return FALSE;
  ------------------
  |  | 1058|  7.80k|#define FALSE false
  ------------------
   96|  7.80k|  }
   97|      0|  return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
   98|  7.80k|}
Curl_uint32_bset_add:
  109|  32.3k|{
  110|  32.3k|  uint32_t islot = i / 64;
  111|  32.3k|  if(islot >= bset->nslots)
  ------------------
  |  Branch (111:6): [True: 0, False: 32.3k]
  ------------------
  112|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  113|  32.3k|  bset->slots[islot] |= ((uint64_t)1 << (i % 64));
  114|  32.3k|  if(islot < bset->first_slot_used)
  ------------------
  |  Branch (114:6): [True: 0, False: 32.3k]
  ------------------
  115|      0|    bset->first_slot_used = islot;
  116|       |  return TRUE;
  ------------------
  |  | 1055|  32.3k|#define TRUE true
  ------------------
  117|  32.3k|}
Curl_uint32_bset_remove:
  120|   315k|{
  121|   315k|  size_t islot = i / 64;
  122|   315k|  if(islot < bset->nslots)
  ------------------
  |  Branch (122:6): [True: 315k, False: 0]
  ------------------
  123|   315k|    bset->slots[islot] &= ~((uint64_t)1 << (i % 64));
  124|   315k|}
Curl_uint32_bset_contains:
  127|  15.6k|{
  128|  15.6k|  uint32_t islot = i / 64;
  129|  15.6k|  if(islot >= bset->nslots)
  ------------------
  |  Branch (129:6): [True: 0, False: 15.6k]
  ------------------
  130|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  131|  15.6k|  return (bset->slots[islot] & ((uint64_t)1 << (i % 64))) != 0;
  132|  15.6k|}
Curl_uint32_bset_first:
  135|   287k|{
  136|   287k|  uint32_t i;
  137|   349k|  for(i = bset->first_slot_used; i < bset->nslots; ++i) {
  ------------------
  |  Branch (137:34): [True: 299k, False: 50.4k]
  ------------------
  138|   299k|    if(bset->slots[i]) {
  ------------------
  |  Branch (138:8): [True: 236k, False: 62.5k]
  ------------------
  139|   236k|      *pfirst = (i * 64) + CURL_CTZ64(bset->slots[i]);
  ------------------
  |  |  348|   236k|#      define CURL_CTZ64(x)            __builtin_ctzl(x)
  ------------------
  140|   236k|      bset->first_slot_used = i;
  141|   236k|      return TRUE;
  ------------------
  |  | 1055|   236k|#define TRUE true
  ------------------
  142|   236k|    }
  143|   299k|  }
  144|  50.4k|  bset->first_slot_used = *pfirst = UINT32_MAX;
  145|       |  return FALSE;
  ------------------
  |  | 1058|  50.4k|#define FALSE false
  ------------------
  146|   287k|}
Curl_uint32_bset_next:
  150|   473k|{
  151|   473k|  uint32_t islot;
  152|   473k|  uint64_t x;
  153|       |
  154|   473k|  ++last; /* look for number one higher than last */
  155|   473k|  islot = last / 64; /* the slot this would be in */
  156|   473k|  if(islot < bset->nslots) {
  ------------------
  |  Branch (156:6): [True: 473k, False: 0]
  ------------------
  157|       |    /* shift away the bits we already iterated in this slot */
  158|   473k|    x = (bset->slots[islot] >> (last % 64));
  159|   473k|    if(x) {
  ------------------
  |  Branch (159:8): [True: 236k, False: 236k]
  ------------------
  160|       |      /* more bits set, next is `last` + trailing 0s of the shifted slot */
  161|   236k|      *pnext = last + CURL_CTZ64(x);
  ------------------
  |  |  348|   236k|#      define CURL_CTZ64(x)            __builtin_ctzl(x)
  ------------------
  162|   236k|      return TRUE;
  ------------------
  |  | 1055|   236k|#define TRUE true
  ------------------
  163|   236k|    }
  164|       |    /* no more bits set in the last slot, scan forward */
  165|  1.89M|    for(islot = islot + 1; islot < bset->nslots; ++islot) {
  ------------------
  |  Branch (165:28): [True: 1.65M, False: 236k]
  ------------------
  166|  1.65M|      if(bset->slots[islot]) {
  ------------------
  |  Branch (166:10): [True: 0, False: 1.65M]
  ------------------
  167|      0|        *pnext = (islot * 64) + CURL_CTZ64(bset->slots[islot]);
  ------------------
  |  |  348|      0|#      define CURL_CTZ64(x)            __builtin_ctzl(x)
  ------------------
  168|      0|        return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  169|      0|      }
  170|  1.65M|    }
  171|   236k|  }
  172|   236k|  *pnext = UINT32_MAX; /* a value we cannot store */
  173|       |  return FALSE;
  ------------------
  |  | 1058|   236k|#define FALSE false
  ------------------
  174|   473k|}

Curl_uint32_hash_init:
   47|  2.94k|{
   48|  2.94k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (48:3): [True: 0, False: 2.94k]
  |  Branch (48:3): [True: 2.94k, False: 0]
  ------------------
   49|  2.94k|  DEBUGASSERT(slots);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (49:3): [True: 0, False: 2.94k]
  |  Branch (49:3): [True: 2.94k, False: 0]
  ------------------
   50|       |
   51|  2.94k|  h->table = NULL;
   52|  2.94k|  h->dtor = dtor;
   53|  2.94k|  h->size = 0;
   54|  2.94k|  h->slots = slots;
   55|  2.94k|#ifdef DEBUGBUILD
   56|  2.94k|  h->init = CURL_UINT32_HASHINIT;
  ------------------
  |  |   30|  2.94k|#define CURL_UINT32_HASHINIT 0x7117e779
  ------------------
   57|  2.94k|#endif
   58|  2.94k|}
Curl_uint32_hash_set:
  114|  2.94k|{
  115|  2.94k|  struct uint_hash_entry *he, **slot;
  116|       |
  117|  2.94k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (117:3): [True: 0, False: 2.94k]
  |  Branch (117:3): [True: 2.94k, False: 0]
  ------------------
  118|  2.94k|  DEBUGASSERT(h->slots);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (118:3): [True: 0, False: 2.94k]
  |  Branch (118:3): [True: 2.94k, False: 0]
  ------------------
  119|  2.94k|  DEBUGASSERT(h->init == CURL_UINT32_HASHINIT);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (119:3): [True: 0, False: 2.94k]
  |  Branch (119:3): [True: 2.94k, False: 0]
  ------------------
  120|  2.94k|  if(!h->table) {
  ------------------
  |  Branch (120:6): [True: 2.94k, False: 3]
  ------------------
  121|  2.94k|    h->table = curlx_calloc(h->slots, sizeof(*he));
  ------------------
  |  | 1480|  2.94k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  122|  2.94k|    if(!h->table)
  ------------------
  |  Branch (122:8): [True: 0, False: 2.94k]
  ------------------
  123|      0|      return FALSE; /* OOM */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  124|  2.94k|  }
  125|       |
  126|  2.94k|  slot = CURL_UINT32_HASH_SLOT_ADDR(h, id);
  ------------------
  |  |  111|  2.94k|#define CURL_UINT32_HASH_SLOT_ADDR(h, id) &CURL_UINT32_HASH_SLOT(h, id)
  |  |  ------------------
  |  |  |  |  110|  2.94k|#define CURL_UINT32_HASH_SLOT(h, id) h->table[uint32_hash_hash(id, (h)->slots)]
  |  |  ------------------
  ------------------
  127|  2.94k|  for(he = *slot; he; he = he->next) {
  ------------------
  |  Branch (127:19): [True: 0, False: 2.94k]
  ------------------
  128|      0|    if(he->id == id) {
  ------------------
  |  Branch (128:8): [True: 0, False: 0]
  ------------------
  129|       |      /* existing key entry, overwrite by clearing old pointer */
  130|      0|      uint32_hash_entry_clear(h, he);
  131|      0|      he->value = value;
  132|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  133|      0|    }
  134|      0|  }
  135|       |
  136|  2.94k|  he = uint32_hash_mk_entry(id, value);
  137|  2.94k|  if(!he)
  ------------------
  |  Branch (137:6): [True: 0, False: 2.94k]
  ------------------
  138|      0|    return FALSE; /* OOM */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  139|       |
  140|  2.94k|  uint32_hash_elem_link(h, slot, he);
  141|       |  return TRUE;
  ------------------
  |  | 1055|  2.94k|#define TRUE true
  ------------------
  142|  2.94k|}
Curl_uint32_hash_remove:
  145|  2.94k|{
  146|  2.94k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (146:3): [True: 0, False: 2.94k]
  |  Branch (146:3): [True: 2.94k, False: 0]
  ------------------
  147|  2.94k|  DEBUGASSERT(h->slots);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (147:3): [True: 0, False: 2.94k]
  |  Branch (147:3): [True: 2.94k, False: 0]
  ------------------
  148|  2.94k|  DEBUGASSERT(h->init == CURL_UINT32_HASHINIT);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (148:3): [True: 0, False: 2.94k]
  |  Branch (148:3): [True: 2.94k, False: 0]
  ------------------
  149|  2.94k|  if(h->table) {
  ------------------
  |  Branch (149:6): [True: 2.94k, False: 0]
  ------------------
  150|  2.94k|    struct uint_hash_entry *he, **he_anchor;
  151|       |
  152|  2.94k|    he_anchor = CURL_UINT32_HASH_SLOT_ADDR(h, id);
  ------------------
  |  |  111|  2.94k|#define CURL_UINT32_HASH_SLOT_ADDR(h, id) &CURL_UINT32_HASH_SLOT(h, id)
  |  |  ------------------
  |  |  |  |  110|  2.94k|#define CURL_UINT32_HASH_SLOT(h, id) h->table[uint32_hash_hash(id, (h)->slots)]
  |  |  ------------------
  ------------------
  153|  2.94k|    while(*he_anchor) {
  ------------------
  |  Branch (153:11): [True: 2.94k, False: 0]
  ------------------
  154|  2.94k|      he = *he_anchor;
  155|  2.94k|      if(id == he->id) {
  ------------------
  |  Branch (155:10): [True: 2.94k, False: 0]
  ------------------
  156|  2.94k|        uint32_hash_entry_unlink(h, he_anchor, he);
  157|  2.94k|        uint32_hash_entry_destroy(h, he);
  158|  2.94k|        return TRUE;
  ------------------
  |  | 1055|  2.94k|#define TRUE true
  ------------------
  159|  2.94k|      }
  160|      0|      he_anchor = &he->next;
  161|      0|    }
  162|  2.94k|  }
  163|      0|  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  164|  2.94k|}
Curl_uint32_hash_get:
  167|  91.9k|{
  168|  91.9k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  91.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (168:3): [True: 0, False: 91.9k]
  |  Branch (168:3): [True: 91.9k, False: 0]
  ------------------
  169|  91.9k|  DEBUGASSERT(h->init == CURL_UINT32_HASHINIT);
  ------------------
  |  | 1081|  91.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (169:3): [True: 0, False: 91.9k]
  |  Branch (169:3): [True: 91.9k, False: 0]
  ------------------
  170|  91.9k|  if(h->table) {
  ------------------
  |  Branch (170:6): [True: 83.2k, False: 8.74k]
  ------------------
  171|  83.2k|    struct uint_hash_entry *he;
  172|  83.2k|    DEBUGASSERT(h->slots);
  ------------------
  |  | 1081|  83.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (172:5): [True: 0, False: 83.2k]
  |  Branch (172:5): [True: 83.2k, False: 0]
  ------------------
  173|  83.2k|    he = CURL_UINT32_HASH_SLOT(h, id);
  ------------------
  |  |  110|  83.2k|#define CURL_UINT32_HASH_SLOT(h, id) h->table[uint32_hash_hash(id, (h)->slots)]
  ------------------
  174|  83.2k|    while(he) {
  ------------------
  |  Branch (174:11): [True: 82.6k, False: 574]
  ------------------
  175|  82.6k|      if(id == he->id) {
  ------------------
  |  Branch (175:10): [True: 82.6k, False: 0]
  ------------------
  176|  82.6k|        return he->value;
  177|  82.6k|      }
  178|      0|      he = he->next;
  179|      0|    }
  180|  83.2k|  }
  181|  9.32k|  return NULL;
  182|  91.9k|}
uint_hash_clear:
  187|  2.94k|{
  188|  2.94k|  if(h && h->table) {
  ------------------
  |  Branch (188:6): [True: 2.94k, False: 0]
  |  Branch (188:11): [True: 2.94k, False: 0]
  ------------------
  189|  2.94k|    struct uint_hash_entry *he, **he_anchor;
  190|  2.94k|    size_t i;
  191|  2.94k|    DEBUGASSERT(h->init == CURL_UINT32_HASHINIT);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (191:5): [True: 0, False: 2.94k]
  |  Branch (191:5): [True: 2.94k, False: 0]
  ------------------
  192|   188k|    for(i = 0; i < h->slots; ++i) {
  ------------------
  |  Branch (192:16): [True: 185k, False: 2.94k]
  ------------------
  193|   185k|      he_anchor = &h->table[i];
  194|   185k|      while(*he_anchor) {
  ------------------
  |  Branch (194:13): [True: 3, False: 185k]
  ------------------
  195|      3|        he = *he_anchor;
  196|      3|        uint32_hash_entry_unlink(h, he_anchor, he);
  197|      3|        uint32_hash_entry_destroy(h, he);
  198|      3|      }
  199|   185k|    }
  200|  2.94k|  }
  201|  2.94k|}
Curl_uint32_hash_destroy:
  204|  2.94k|{
  205|  2.94k|  DEBUGASSERT(h->init == CURL_UINT32_HASHINIT);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (205:3): [True: 0, False: 2.94k]
  |  Branch (205:3): [True: 2.94k, False: 0]
  ------------------
  206|  2.94k|  if(h->table) {
  ------------------
  |  Branch (206:6): [True: 2.94k, False: 0]
  ------------------
  207|  2.94k|    uint_hash_clear(h);
  208|  2.94k|    curlx_safefree(h->table);
  ------------------
  |  | 1327|  2.94k|  do {                      \
  |  | 1328|  2.94k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  2.94k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  2.94k|    (ptr) = NULL;           \
  |  | 1330|  2.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
  209|  2.94k|  }
  210|  2.94k|  DEBUGASSERT(h->size == 0);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (210:3): [True: 0, False: 2.94k]
  |  Branch (210:3): [True: 2.94k, False: 0]
  ------------------
  211|  2.94k|  h->slots = 0;
  212|  2.94k|}
uint-hash.c:uint32_hash_hash:
   34|  89.1k|{
   35|  89.1k|  return (id % slots);
   36|  89.1k|}
uint-hash.c:uint32_hash_entry_clear:
   76|  2.94k|{
   77|  2.94k|  DEBUGASSERT(h);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (77:3): [True: 0, False: 2.94k]
  |  Branch (77:3): [True: 2.94k, False: 0]
  ------------------
   78|  2.94k|  DEBUGASSERT(e);
  ------------------
  |  | 1081|  2.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (78:3): [True: 0, False: 2.94k]
  |  Branch (78:3): [True: 2.94k, False: 0]
  ------------------
   79|  2.94k|  if(e->value) {
  ------------------
  |  Branch (79:6): [True: 2.94k, False: 0]
  ------------------
   80|  2.94k|    if(h->dtor)
  ------------------
  |  Branch (80:8): [True: 2.94k, False: 0]
  ------------------
   81|  2.94k|      h->dtor(e->id, e->value);
   82|       |    e->value = NULL;
   83|  2.94k|  }
   84|  2.94k|}
uint-hash.c:uint32_hash_mk_entry:
   61|  2.94k|{
   62|  2.94k|  struct uint_hash_entry *e;
   63|       |
   64|       |  /* allocate the struct for the hash entry */
   65|  2.94k|  e = curlx_malloc(sizeof(*e));
  ------------------
  |  | 1478|  2.94k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
   66|  2.94k|  if(e) {
  ------------------
  |  Branch (66:6): [True: 2.94k, False: 0]
  ------------------
   67|  2.94k|    e->id = id;
   68|       |    e->next = NULL;
   69|  2.94k|    e->value = value;
   70|  2.94k|  }
   71|  2.94k|  return e;
   72|  2.94k|}
uint-hash.c:uint32_hash_elem_link:
  104|  2.94k|{
  105|  2.94k|  he->next = *he_anchor;
  106|  2.94k|  *he_anchor = he;
  107|  2.94k|  ++h->size;
  108|  2.94k|}
uint-hash.c:uint32_hash_entry_unlink:
   96|  2.94k|{
   97|  2.94k|  *he_anchor = he->next;
   98|  2.94k|  --h->size;
   99|  2.94k|}
uint-hash.c:uint32_hash_entry_destroy:
   88|  2.94k|{
   89|  2.94k|  uint32_hash_entry_clear(h, e);
   90|  2.94k|  curlx_free(e);
  ------------------
  |  | 1483|  2.94k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   91|  2.94k|}

Curl_uint32_tbl_init:
   34|  7.82k|{
   35|  7.82k|  memset(tbl, 0, sizeof(*tbl));
   36|  7.82k|  tbl->entry_dtor = entry_dtor;
   37|  7.82k|  tbl->last_key_added = UINT32_MAX;
   38|  7.82k|#ifdef DEBUGBUILD
   39|  7.82k|  tbl->init = CURL_UINT32_TBL_MAGIC;
  ------------------
  |  |   29|  7.82k|#define CURL_UINT32_TBL_MAGIC  0x62757473
  ------------------
   40|  7.82k|#endif
   41|  7.82k|}
Curl_uint32_tbl_resize:
   61|  7.82k|{
   62|       |  /* we use `tbl->nrows + 1` during iteration, want that to work */
   63|  7.82k|  DEBUGASSERT(tbl->init == CURL_UINT32_TBL_MAGIC);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (63:3): [True: 0, False: 7.82k]
  |  Branch (63:3): [True: 7.82k, False: 0]
  ------------------
   64|  7.82k|  if(!nrows)
  ------------------
  |  Branch (64:6): [True: 0, False: 7.82k]
  ------------------
   65|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
   66|  7.82k|  if(nrows != tbl->nrows) {
  ------------------
  |  Branch (66:6): [True: 7.82k, False: 0]
  ------------------
   67|  7.82k|    void **rows = curlx_calloc(nrows, sizeof(void *));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   68|  7.82k|    if(!rows)
  ------------------
  |  Branch (68:8): [True: 0, False: 7.82k]
  ------------------
   69|      0|      return CURLE_OUT_OF_MEMORY;
   70|  7.82k|    if(tbl->rows) {
  ------------------
  |  Branch (70:8): [True: 0, False: 7.82k]
  ------------------
   71|      0|      memcpy(rows, tbl->rows, (CURLMIN(nrows, tbl->nrows) * sizeof(void *)));
  ------------------
  |  | 1287|      0|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   72|      0|      if(nrows < tbl->nrows)
  ------------------
  |  Branch (72:10): [True: 0, False: 0]
  ------------------
   73|      0|        uint32_tbl_clear_rows(tbl, nrows, tbl->nrows);
   74|      0|      curlx_free(tbl->rows);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   75|      0|    }
   76|  7.82k|    tbl->rows = rows;
   77|  7.82k|    tbl->nrows = nrows;
   78|  7.82k|  }
   79|  7.82k|  return CURLE_OK;
   80|  7.82k|}
uint32_tbl_clear:
   88|  7.82k|{
   89|  7.82k|  DEBUGASSERT(tbl->init == CURL_UINT32_TBL_MAGIC);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (89:3): [True: 0, False: 7.82k]
  |  Branch (89:3): [True: 7.82k, False: 0]
  ------------------
   90|  7.82k|  uint32_tbl_clear_rows(tbl, 0, tbl->nrows);
   91|  7.82k|  DEBUGASSERT(!tbl->nentries);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (91:3): [True: 0, False: 7.82k]
  |  Branch (91:3): [True: 7.82k, False: 0]
  ------------------
   92|  7.82k|  tbl->last_key_added = UINT32_MAX;
   93|  7.82k|}
Curl_uint32_tbl_destroy:
   96|  7.82k|{
   97|  7.82k|  DEBUGASSERT(tbl->init == CURL_UINT32_TBL_MAGIC);
  ------------------
  |  | 1081|  7.82k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (97:3): [True: 0, False: 7.82k]
  |  Branch (97:3): [True: 7.82k, False: 0]
  ------------------
   98|  7.82k|  uint32_tbl_clear(tbl);
   99|  7.82k|  curlx_free(tbl->rows);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  100|  7.82k|  memset(tbl, 0, sizeof(*tbl));
  101|  7.82k|}
Curl_uint32_tbl_capacity:
  104|  7.82k|{
  105|  7.82k|  return tbl->nrows;
  106|  7.82k|}
Curl_uint32_tbl_count:
  109|  15.6k|{
  110|  15.6k|  return tbl->nentries;
  111|  15.6k|}
Curl_uint32_tbl_get:
  114|   481k|{
  115|   481k|  return (key < tbl->nrows) ? tbl->rows[key] : NULL;
  ------------------
  |  Branch (115:10): [True: 481k, False: 0]
  ------------------
  116|   481k|}
Curl_uint32_tbl_add:
  119|  15.6k|{
  120|  15.6k|  uint32_t key, start_pos;
  121|       |
  122|  15.6k|  DEBUGASSERT(tbl->init == CURL_UINT32_TBL_MAGIC);
  ------------------
  |  | 1081|  15.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (122:3): [True: 0, False: 15.6k]
  |  Branch (122:3): [True: 15.6k, False: 0]
  ------------------
  123|  15.6k|  if(!entry || !pkey)
  ------------------
  |  Branch (123:6): [True: 0, False: 15.6k]
  |  Branch (123:16): [True: 0, False: 15.6k]
  ------------------
  124|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  125|  15.6k|  *pkey = UINT32_MAX;
  126|  15.6k|  if(tbl->nentries == tbl->nrows)  /* full */
  ------------------
  |  Branch (126:6): [True: 0, False: 15.6k]
  ------------------
  127|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  128|       |
  129|  15.6k|  start_pos = CURLMIN(tbl->last_key_added, tbl->nrows) + 1;
  ------------------
  |  | 1287|  15.6k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 7.82k, False: 7.82k]
  |  |  ------------------
  ------------------
  130|  15.6k|  for(key = start_pos; key < tbl->nrows; ++key) {
  ------------------
  |  Branch (130:24): [True: 7.82k, False: 7.82k]
  ------------------
  131|  7.82k|    if(!tbl->rows[key]) {
  ------------------
  |  Branch (131:8): [True: 7.82k, False: 0]
  ------------------
  132|  7.82k|      tbl->rows[key] = entry;
  133|  7.82k|      tbl->nentries++;
  134|  7.82k|      tbl->last_key_added = key;
  135|  7.82k|      *pkey = key;
  136|  7.82k|      return TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  137|  7.82k|    }
  138|  7.82k|  }
  139|       |  /* no free entry at or above tbl->maybe_next_key, wrap around */
  140|  7.82k|  for(key = 0; key < start_pos; ++key) {
  ------------------
  |  Branch (140:16): [True: 7.82k, False: 0]
  ------------------
  141|  7.82k|    if(!tbl->rows[key]) {
  ------------------
  |  Branch (141:8): [True: 7.82k, False: 0]
  ------------------
  142|  7.82k|      tbl->rows[key] = entry;
  143|  7.82k|      tbl->nentries++;
  144|  7.82k|      tbl->last_key_added = key;
  145|  7.82k|      *pkey = key;
  146|  7.82k|      return TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  147|  7.82k|    }
  148|  7.82k|  }
  149|       |  /* Did not find any free row? Should not happen */
  150|      0|  DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (150:3): [Folded, False: 0]
  |  Branch (150:3): [Folded, False: 0]
  ------------------
  151|      0|  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  152|      0|}
Curl_uint32_tbl_remove:
  155|  15.6k|{
  156|  15.6k|  uint32_tbl_clear_rows(tbl, key, key + 1);
  157|  15.6k|}
Curl_uint32_tbl_contains:
  160|  7.82k|{
  161|  7.82k|  return (key < tbl->nrows) ? !!tbl->rows[key] : FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  |  Branch (161:10): [True: 7.82k, False: 0]
  ------------------
  162|  7.82k|}
Curl_uint32_tbl_first:
  181|  7.82k|{
  182|  7.82k|  if(!pkey || !pentry)
  ------------------
  |  Branch (182:6): [True: 0, False: 7.82k]
  |  Branch (182:15): [True: 0, False: 7.82k]
  ------------------
  183|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  184|  7.82k|  if(tbl->nentries && uint32_tbl_next_at(tbl, 0, pkey, pentry))
  ------------------
  |  Branch (184:6): [True: 7.82k, False: 0]
  |  Branch (184:23): [True: 7.82k, False: 0]
  ------------------
  185|  7.82k|    return TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  186|      0|  DEBUGASSERT(!tbl->nentries);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (186:3): [True: 0, False: 0]
  |  Branch (186:3): [True: 0, False: 0]
  ------------------
  187|      0|  *pkey = UINT32_MAX;  /* always invalid */
  188|      0|  *pentry = NULL;
  189|       |  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  190|      0|}
Curl_uint32_tbl_next:
  194|  7.82k|{
  195|  7.82k|  if(!pkey || !pentry)
  ------------------
  |  Branch (195:6): [True: 0, False: 7.82k]
  |  Branch (195:15): [True: 0, False: 7.82k]
  ------------------
  196|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  197|  7.82k|  if(uint32_tbl_next_at(tbl, last_key + 1, pkey, pentry))
  ------------------
  |  Branch (197:6): [True: 0, False: 7.82k]
  ------------------
  198|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  199|  7.82k|  *pkey = UINT32_MAX;  /* always invalid */
  200|  7.82k|  *pentry = NULL;
  201|       |  return FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  202|  7.82k|}
uint-table.c:uint32_tbl_clear_rows:
   46|  23.4k|{
   47|  23.4k|  uint32_t i, end;
   48|       |
   49|  23.4k|  end = CURLMIN(upto_excluding, tbl->nrows);
  ------------------
  |  | 1287|  23.4k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 15.6k, False: 7.82k]
  |  |  ------------------
  ------------------
   50|  4.04M|  for(i = from; i < end; ++i) {
  ------------------
  |  Branch (50:17): [True: 4.01M, False: 23.4k]
  ------------------
   51|  4.01M|    if(tbl->rows[i]) {
  ------------------
  |  Branch (51:8): [True: 15.6k, False: 4.00M]
  ------------------
   52|  15.6k|      if(tbl->entry_dtor)
  ------------------
  |  Branch (52:10): [True: 0, False: 15.6k]
  ------------------
   53|      0|        tbl->entry_dtor(i, tbl->rows[i]);
   54|       |      tbl->rows[i] = NULL;
   55|  15.6k|      tbl->nentries--;
   56|  15.6k|    }
   57|  4.01M|  }
   58|  23.4k|}
uint-table.c:uint32_tbl_next_at:
  166|  15.6k|{
  167|  4.01M|  for(; key < tbl->nrows; ++key) {
  ------------------
  |  Branch (167:9): [True: 4.00M, False: 7.82k]
  ------------------
  168|  4.00M|    if(tbl->rows[key]) {
  ------------------
  |  Branch (168:8): [True: 7.82k, False: 3.99M]
  ------------------
  169|  7.82k|      *pkey = key;
  170|  7.82k|      *pentry = tbl->rows[key];
  171|  7.82k|      return TRUE;
  ------------------
  |  | 1055|  7.82k|#define TRUE true
  ------------------
  172|  7.82k|    }
  173|  4.00M|  }
  174|  7.82k|  *pkey = UINT32_MAX;  /* always invalid */
  175|  7.82k|  *pentry = NULL;
  176|       |  return FALSE;
  ------------------
  |  | 1058|  7.82k|#define FALSE false
  ------------------
  177|  15.6k|}

Curl_freeset:
  150|  15.6k|{
  151|       |  /* Free all dynamic strings stored in the data->set substructure. */
  152|  15.6k|  enum dupstring i;
  153|  15.6k|  enum dupblob j;
  154|       |
  155|  1.18M|  for(i = (enum dupstring)0; i < STRING_LAST; i++) {
  ------------------
  |  Branch (155:30): [True: 1.17M, False: 15.6k]
  ------------------
  156|  1.17M|    curlx_safefree(data->set.str[i]);
  ------------------
  |  | 1327|  1.17M|  do {                      \
  |  | 1328|  1.17M|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  1.17M|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  1.17M|    (ptr) = NULL;           \
  |  | 1330|  1.17M|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 1.17M]
  |  |  ------------------
  ------------------
  157|  1.17M|  }
  158|       |
  159|   140k|  for(j = (enum dupblob)0; j < BLOB_LAST; j++) {
  ------------------
  |  Branch (159:28): [True: 125k, False: 15.6k]
  ------------------
  160|   125k|    curlx_safefree(data->set.blobs[j]);
  ------------------
  |  | 1327|   125k|  do {                      \
  |  | 1328|   125k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|   125k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|   125k|    (ptr) = NULL;           \
  |  | 1330|   125k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 125k]
  |  |  ------------------
  ------------------
  161|   125k|  }
  162|       |
  163|  15.6k|  Curl_bufref_free(&data->state.referer);
  164|  15.6k|  Curl_bufref_free(&data->state.url);
  165|       |
  166|  15.6k|#if !defined(CURL_DISABLE_MIME) || !defined(CURL_DISABLE_FORM_API)
  167|  15.6k|  Curl_mime_cleanpart(data->set.mimepostp);
  168|  15.6k|  curlx_safefree(data->set.mimepostp);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  169|  15.6k|#endif
  170|       |
  171|  15.6k|#ifndef CURL_DISABLE_COOKIES
  172|  15.6k|  curl_slist_free_all(data->state.cookielist);
  173|       |  data->state.cookielist = NULL;
  174|  15.6k|#endif
  175|  15.6k|}
Curl_close:
  201|  15.6k|{
  202|  15.6k|  struct Curl_easy *data;
  203|       |
  204|  15.6k|  if(!datap || !*datap)
  ------------------
  |  Branch (204:6): [True: 0, False: 15.6k]
  |  Branch (204:16): [True: 0, False: 15.6k]
  ------------------
  205|      0|    return CURLE_OK;
  206|       |
  207|  15.6k|  data = *datap;
  208|  15.6k|  *datap = NULL;
  209|       |
  210|  15.6k|  if(!data->state.internal && data->multi) {
  ------------------
  |  Branch (210:6): [True: 7.82k, False: 7.82k]
  |  Branch (210:31): [True: 0, False: 7.82k]
  ------------------
  211|       |    /* This handle is still part of a multi handle, take care of this first
  212|       |       and detach this handle from there.
  213|       |       This detaches the connection. */
  214|      0|    curl_multi_remove_handle(data->multi, data);
  215|      0|  }
  216|  15.6k|  else {
  217|       |    /* Detach connection if any is left. This should not be normal, but can be
  218|       |       the case for example with CONNECT_ONLY + recv/send (test 556) */
  219|  15.6k|    Curl_detach_connection(data);
  220|  15.6k|    if(!data->state.internal && data->multi_easy) {
  ------------------
  |  Branch (220:8): [True: 7.82k, False: 7.82k]
  |  Branch (220:33): [True: 0, False: 7.82k]
  ------------------
  221|       |      /* when curl_easy_perform() is used, it creates its own multi handle to
  222|       |         use and this is the one */
  223|      0|      curl_multi_cleanup(data->multi_easy);
  224|      0|      data->multi_easy = NULL;
  225|      0|    }
  226|  15.6k|  }
  227|  15.6k|  DEBUGASSERT(!data->conn || data->state.internal);
  ------------------
  |  | 1081|  15.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (227:3): [True: 15.6k, False: 0]
  |  Branch (227:3): [True: 0, False: 0]
  |  Branch (227:3): [True: 15.6k, False: 0]
  |  Branch (227:3): [True: 0, False: 0]
  ------------------
  228|       |
  229|  15.6k|  Curl_expire_clear(data); /* shut off any timers left */
  230|       |
  231|  15.6k|  if(data->state.rangestringalloc)
  ------------------
  |  Branch (231:6): [True: 0, False: 15.6k]
  ------------------
  232|      0|    curlx_free(data->state.range);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  233|       |
  234|       |  /* release any resolve information this transfer kept */
  235|  15.6k|  Curl_resolv_destroy_all(data);
  236|       |
  237|  15.6k|  data->set.verbose = FALSE; /* no more calls to DEBUGFUNCTION */
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  238|  15.6k|  data->magic = 0; /* force a clear AFTER the possibly enforced removal from
  239|       |                    * the multi handle and async dns shutdown. The multi
  240|       |                    * handle might check the magic and so might any
  241|       |                    * DEBUGFUNCTION invoked for tracing */
  242|       |
  243|       |  /* freed here in case DONE was not called */
  244|  15.6k|  Curl_req_free(&data->req, data);
  245|       |
  246|       |  /* Close down all open SSL info and sessions */
  247|  15.6k|  Curl_ssl_close_all(data);
  248|  15.6k|  Curl_peer_unlink(&data->state.initial_origin);
  249|  15.6k|  Curl_ssl_free_certinfo(data);
  250|       |
  251|  15.6k|  Curl_bufref_free(&data->state.referer);
  252|       |
  253|  15.6k|  up_free(data);
  254|  15.6k|  curlx_dyn_free(&data->state.headerb);
  255|  15.6k|  Curl_flush_cookies(data, TRUE);
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  256|  15.6k|#ifndef CURL_DISABLE_ALTSVC
  257|  15.6k|  Curl_altsvc_save(data, data->asi, data->set.str[STRING_ALTSVC]);
  258|  15.6k|  Curl_altsvc_cleanup(&data->asi);
  259|  15.6k|#endif
  260|  15.6k|#ifndef CURL_DISABLE_HSTS
  261|  15.6k|  Curl_hsts_save(data, data->hsts, data->set.str[STRING_HSTS]);
  262|  15.6k|  if(!data->share || !data->share->hsts)
  ------------------
  |  Branch (262:6): [True: 15.6k, False: 0]
  |  Branch (262:22): [True: 0, False: 0]
  ------------------
  263|  15.6k|    Curl_hsts_cleanup(&data->hsts);
  264|  15.6k|  curl_slist_free_all(data->state.hstslist); /* clean up list */
  265|  15.6k|#endif
  266|  15.6k|#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_DIGEST_AUTH)
  267|  15.6k|  Curl_http_auth_cleanup_digest(data);
  268|  15.6k|#endif
  269|  15.6k|  curlx_safefree(data->state.most_recent_ftp_entrypath);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  270|  15.6k|  curlx_safefree(data->info.contenttype);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  271|  15.6k|  curlx_safefree(data->info.wouldredirect);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  272|       |
  273|       |  /* No longer a dirty share, if it exists */
  274|  15.6k|  if(Curl_share_easy_unlink(data))
  ------------------
  |  Branch (274:6): [True: 0, False: 15.6k]
  ------------------
  275|  15.6k|    DEBUGASSERT(0);
  ------------------
  |  | 1081|  15.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (275:5): [Folded, False: 0]
  |  Branch (275:5): [Folded, False: 0]
  ------------------
  276|       |
  277|  15.6k|  Curl_hash_destroy(&data->meta_hash);
  278|  15.6k|  Curl_creds_unlink(&data->state.creds);
  279|  15.6k|  curlx_safefree(data->state.aptr.uagent);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  280|  15.6k|  curlx_safefree(data->state.aptr.accept_encoding);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  281|  15.6k|  curlx_safefree(data->state.aptr.rangeline);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  282|  15.6k|  curlx_safefree(data->state.aptr.ref);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  283|  15.6k|  curlx_safefree(data->state.aptr.host);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  284|  15.6k|#ifndef CURL_DISABLE_COOKIES
  285|  15.6k|  curlx_safefree(data->req.cookiehost);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  286|  15.6k|#endif
  287|  15.6k|#ifndef CURL_DISABLE_RTSP
  288|  15.6k|  curlx_safefree(data->state.aptr.rtsp_transport);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  289|  15.6k|#endif
  290|       |
  291|  15.6k|#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_FORM_API)
  292|  15.6k|  Curl_mime_cleanpart(data->state.formp);
  293|  15.6k|  curlx_safefree(data->state.formp);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
  294|  15.6k|#endif
  295|       |
  296|       |  /* destruct wildcard structures if it is needed */
  297|  15.6k|  Curl_wildcard_dtor(&data->wildcard);
  298|  15.6k|  Curl_freeset(data);
  299|  15.6k|  Curl_headers_cleanup(data);
  300|  15.6k|  Curl_netrc_cleanup(&data->state.netrc);
  301|  15.6k|#ifndef CURL_DISABLE_DIGEST_AUTH
  302|  15.6k|  curlx_free(data->state.envproxy);
  ------------------
  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  303|  15.6k|#endif
  304|  15.6k|  curlx_free(data);
  ------------------
  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  305|  15.6k|  return CURLE_OK;
  306|  15.6k|}
Curl_init_userdefined:
  313|  15.6k|{
  314|  15.6k|  struct UserDefined *set = &data->set;
  315|       |
  316|  15.6k|  set->out = stdout;  /* default output to stdout */
  317|  15.6k|  set->in_set = stdin;  /* default input from stdin */
  318|  15.6k|  set->err = stderr;  /* default stderr to stderr */
  319|       |
  320|  15.6k|#if defined(__clang__) && __clang_major__ >= 16
  321|  15.6k|#pragma clang diagnostic push
  322|  15.6k|#pragma clang diagnostic ignored "-Wcast-function-type-strict"
  323|  15.6k|#endif
  324|       |  /* use fwrite as default function to store output */
  325|  15.6k|  set->fwrite_func = (curl_write_callback)fwrite;
  326|       |
  327|       |  /* use fread as default function to read input */
  328|  15.6k|  set->fread_func_set = (curl_read_callback)fread;
  329|  15.6k|#if defined(__clang__) && __clang_major__ >= 16
  330|  15.6k|#pragma clang diagnostic pop
  331|  15.6k|#endif
  332|  15.6k|  set->is_fread_set = 0;
  333|       |
  334|  15.6k|  set->seek_client = ZERO_NULL;
  ------------------
  |  | 1155|  15.6k|#define ZERO_NULL 0
  ------------------
  335|       |
  336|  15.6k|  set->filesize = -1;        /* we do not know the size */
  337|  15.6k|  set->postfieldsize = -1;   /* unknown size */
  338|  15.6k|  set->maxredirs = 30;       /* sensible default */
  339|       |
  340|  15.6k|  set->method = HTTPREQ_GET; /* Default HTTP request */
  341|  15.6k|#ifndef CURL_DISABLE_RTSP
  342|  15.6k|  set->rtspreq = RTSPREQ_OPTIONS; /* Default RTSP request */
  343|  15.6k|#endif
  344|  15.6k|#ifndef CURL_DISABLE_FTP
  345|  15.6k|  set->ftp_use_epsv = TRUE;   /* FTP defaults to EPSV operations */
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  346|  15.6k|  set->ftp_use_eprt = TRUE;   /* FTP defaults to EPRT operations */
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  347|  15.6k|  set->ftp_use_pret = FALSE;  /* mainly useful for drftpd servers */
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  348|  15.6k|  set->ftp_filemethod = FTPFILE_MULTICWD;
  349|  15.6k|  set->ftp_skip_ip = TRUE;    /* skip PASV IP by default */
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  350|  15.6k|#endif
  351|  15.6k|  set->dns_cache_timeout_ms = 60000; /* Timeout every 60 seconds by default */
  352|       |
  353|       |  /* Timeout every 24 hours by default */
  354|  15.6k|  set->general_ssl.ca_cache_timeout = 24 * 60 * 60;
  355|       |
  356|  15.6k|  set->httpauth = CURLAUTH_BASIC;  /* defaults to basic */
  ------------------
  |  |  831|  15.6k|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  357|       |
  358|  15.6k|#ifndef CURL_DISABLE_PROXY
  359|  15.6k|  set->proxyport = 0;
  360|  15.6k|  set->proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */
  ------------------
  |  |  790|  15.6k|#define CURLPROXY_HTTP            0L /* added in 7.10, new in 7.19.4 default is
  ------------------
  361|  15.6k|  set->proxyauth = CURLAUTH_BASIC; /* defaults to basic */
  ------------------
  |  |  831|  15.6k|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  362|       |  /* SOCKS5 proxy auth defaults to username/password + GSS-API */
  363|  15.6k|  set->socks5auth = CURLAUTH_BASIC | CURLAUTH_GSSAPI;
  ------------------
  |  |  831|  15.6k|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
                set->socks5auth = CURLAUTH_BASIC | CURLAUTH_GSSAPI;
  ------------------
  |  |  837|  15.6k|#define CURLAUTH_GSSAPI CURLAUTH_NEGOTIATE
  |  |  ------------------
  |  |  |  |  833|  15.6k|#define CURLAUTH_NEGOTIATE    (((unsigned long)1) << 2)
  |  |  ------------------
  ------------------
  364|  15.6k|#endif
  365|       |
  366|  15.6k|  Curl_ssl_easy_config_init(data);
  367|  15.6k|#ifndef CURL_DISABLE_DOH
  368|  15.6k|  set->doh_verifyhost = TRUE;
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  369|  15.6k|  set->doh_verifypeer = TRUE;
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  370|  15.6k|#endif
  371|       |#ifdef USE_SSH
  372|       |  /* defaults to any auth type */
  373|       |  set->ssh_auth_types = CURLSSH_AUTH_DEFAULT;
  374|       |  set->new_directory_perms = 0755; /* Default permissions */
  375|       |#endif
  376|       |
  377|  15.6k|  set->new_file_perms = 0644;    /* Default permissions */
  378|  15.6k|  set->allowed_protocols = (curl_prot_t)CURLPROTO_64ALL;
  ------------------
  |  |   68|  15.6k|#define CURLPROTO_64ALL ((uint64_t)0xffffffffffffffff)
  ------------------
  379|  15.6k|  set->redir_protocols = CURLPROTO_REDIR;
  ------------------
  |  |   71|  15.6k|#define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1078|  15.6k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1079|  15.6k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1080|  15.6k|#define CURLPROTO_FTP     (1L << 2)
  |  |  ------------------
  |  |   72|  15.6k|                         CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1081|  15.6k|#define CURLPROTO_FTPS    (1L << 3)
  |  |  ------------------
  ------------------
  380|       |
  381|       |#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
  382|       |  /*
  383|       |   * disallow unprotected protection negotiation NEC reference implementation
  384|       |   * seem not to follow rfc1961 section 4.3/4.4
  385|       |   */
  386|       |  set->socks5_gssapi_nec = FALSE;
  387|       |#endif
  388|       |
  389|       |  /* set default minimum TLS version */
  390|  15.6k|#ifdef USE_SSL
  391|  15.6k|  Curl_setopt_SSLVERSION(data, CURLOPT_SSLVERSION, CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 2368|  15.6k|#define CURL_SSLVERSION_DEFAULT 0L
  ------------------
  392|  15.6k|#ifndef CURL_DISABLE_PROXY
  393|  15.6k|  Curl_setopt_SSLVERSION(data, CURLOPT_PROXY_SSLVERSION,
  394|  15.6k|                         CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 2368|  15.6k|#define CURL_SSLVERSION_DEFAULT 0L
  ------------------
  395|  15.6k|#endif
  396|  15.6k|#endif
  397|  15.6k|#ifndef CURL_DISABLE_FTP
  398|  15.6k|  set->wildcard_enabled = FALSE;
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  399|  15.6k|  set->chunk_bgn = ZERO_NULL;
  ------------------
  |  | 1155|  15.6k|#define ZERO_NULL 0
  ------------------
  400|  15.6k|  set->chunk_end = ZERO_NULL;
  ------------------
  |  | 1155|  15.6k|#define ZERO_NULL 0
  ------------------
  401|  15.6k|  set->fnmatch = ZERO_NULL;
  ------------------
  |  | 1155|  15.6k|#define ZERO_NULL 0
  ------------------
  402|  15.6k|#endif
  403|  15.6k|  set->tcp_keepalive = FALSE;
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  404|  15.6k|  set->tcp_keepintvl = 60;
  405|  15.6k|  set->tcp_keepidle = 60;
  406|  15.6k|  set->tcp_keepcnt = 9;
  407|  15.6k|  set->tcp_fastopen = FALSE;
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  408|  15.6k|  set->tcp_nodelay = TRUE;
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  409|  15.6k|  set->ssl_enable_alpn = TRUE;
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  410|  15.6k|  set->expect_100_timeout = 1000L; /* Wait for a second by default. */
  411|  15.6k|  set->sep_headers = TRUE; /* separated header lists by default */
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  412|  15.6k|  set->buffer_size = READBUFFER_SIZE;
  ------------------
  |  |  114|  15.6k|#define READBUFFER_SIZE CURL_MAX_WRITE_SIZE
  |  |  ------------------
  |  |  |  |  265|  15.6k|#define CURL_MAX_WRITE_SIZE 16384
  |  |  ------------------
  ------------------
  413|  15.6k|  set->upload_buffer_size = UPLOADBUFFER_DEFAULT;
  ------------------
  |  |  126|  15.6k|#define UPLOADBUFFER_DEFAULT 65536
  ------------------
  414|  15.6k|  set->upload_flags = CURLULFLAG_SEEN;
  ------------------
  |  | 1044|  15.6k|#define CURLULFLAG_SEEN     (1L << 4)
  ------------------
  415|  15.6k|  set->happy_eyeballs_timeout = CURL_HET_DEFAULT;
  ------------------
  |  |  969|  15.6k|#define CURL_HET_DEFAULT 200L
  ------------------
  416|  15.6k|  set->upkeep_interval_ms = CURL_UPKEEP_INTERVAL_DEFAULT;
  ------------------
  |  |  972|  15.6k|#define CURL_UPKEEP_INTERVAL_DEFAULT 60000L
  ------------------
  417|  15.6k|  set->maxconnects = DEFAULT_CONNCACHE_SIZE; /* for easy handles */
  ------------------
  |  |   38|  15.6k|#define DEFAULT_CONNCACHE_SIZE 5
  ------------------
  418|  15.6k|  set->conn_max_idle_ms = 118 * 1000;
  419|  15.6k|  set->conn_max_age_ms = 24 * 3600 * 1000;
  420|  15.6k|  set->http09_allowed = FALSE;
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  421|  15.6k|  set->httpwant = CURL_HTTP_VERSION_NONE;
  ------------------
  |  | 2312|  15.6k|#define CURL_HTTP_VERSION_NONE  0L /* setting this means we do not care, and
  ------------------
  422|  15.6k|#if defined(USE_HTTP2) || defined(USE_HTTP3)
  423|  15.6k|  memset(&set->priority, 0, sizeof(set->priority));
  424|  15.6k|#endif
  425|  15.6k|  set->quick_exit = 0L;
  426|  15.6k|#ifndef CURL_DISABLE_WEBSOCKETS
  427|  15.6k|  set->ws_raw_mode = FALSE;
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  428|       |  set->ws_no_auto_pong = FALSE;
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
  429|  15.6k|#endif
  430|  15.6k|}
Curl_open:
  452|  15.6k|{
  453|  15.6k|  struct Curl_easy *data;
  454|       |
  455|       |  /* simple start-up: alloc the struct, init it with zeroes and return */
  456|  15.6k|  data = curlx_calloc(1, sizeof(struct Curl_easy));
  ------------------
  |  | 1480|  15.6k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  457|  15.6k|  if(!data) {
  ------------------
  |  Branch (457:6): [True: 0, False: 15.6k]
  ------------------
  458|       |    /* this is a serious error */
  459|      0|    DEBUGF(curl_mfprintf(stderr, "Error: calloc of Curl_easy failed\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
  460|      0|    return CURLE_OUT_OF_MEMORY;
  461|      0|  }
  462|       |
  463|  15.6k|  data->magic = CURLEASY_MAGIC_NUMBER;
  ------------------
  |  |  130|  15.6k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  ------------------
  464|       |  /* most recent connection is not yet defined */
  465|  15.6k|  data->state.lastconnect_id = -1;
  466|  15.6k|  data->state.recent_conn_id = -1;
  467|       |  /* and not assigned an id yet */
  468|  15.6k|  data->id = -1;
  469|  15.6k|  data->mid = UINT32_MAX;
  470|  15.6k|  data->master_mid = UINT32_MAX;
  471|  15.6k|  data->progress.hide = TRUE;
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  472|  15.6k|  data->state.current_speed = -1; /* init to negative == impossible */
  473|       |
  474|  15.6k|  Curl_hash_init(&data->meta_hash, 23,
  475|  15.6k|                 Curl_hash_str, curlx_str_key_compare, easy_meta_freeentry);
  476|  15.6k|  curlx_dyn_init(&data->state.headerb, CURL_MAX_HTTP_HEADER);
  ------------------
  |  |  272|  15.6k|#define CURL_MAX_HTTP_HEADER (100 * 1024)
  ------------------
  477|  15.6k|  Curl_bufref_init(&data->state.url);
  478|  15.6k|  Curl_bufref_init(&data->state.referer);
  479|  15.6k|  Curl_req_init(&data->req);
  480|  15.6k|  Curl_initinfo(data);
  481|  15.6k|#ifndef CURL_DISABLE_HTTP
  482|  15.6k|  Curl_llist_init(&data->state.httphdrs, NULL);
  483|  15.6k|#endif
  484|  15.6k|  Curl_netrc_init(&data->state.netrc);
  485|  15.6k|  Curl_init_userdefined(data);
  486|       |
  487|  15.6k|  *curl = data;
  488|  15.6k|  return CURLE_OK;
  489|  15.6k|}
Curl_conn_free:
  492|  11.1k|{
  493|  11.1k|  size_t i;
  494|       |
  495|  11.1k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  11.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (495:3): [True: 0, False: 11.1k]
  |  Branch (495:3): [True: 11.1k, False: 0]
  ------------------
  496|       |
  497|  11.1k|  if(conn->scheme && conn->scheme->run->disconnect &&
  ------------------
  |  Branch (497:6): [True: 10.3k, False: 811]
  |  Branch (497:22): [True: 0, False: 10.3k]
  ------------------
  498|      0|     !conn->bits.shutdown_handler)
  ------------------
  |  Branch (498:6): [True: 0, False: 0]
  ------------------
  499|      0|    conn->scheme->run->disconnect(data, conn, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  500|       |
  501|  33.4k|  for(i = 0; i < CURL_ARRAYSIZE(conn->cfilter); ++i) {
  ------------------
  |  | 1294|  33.4k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (501:14): [True: 22.2k, False: 11.1k]
  ------------------
  502|  22.2k|    Curl_conn_cf_discard_all(data, conn, (int)i);
  503|  22.2k|  }
  504|       |
  505|  11.1k|#ifndef CURL_DISABLE_PROXY
  506|  11.1k|  Curl_peer_unlink(&conn->http_proxy.peer);
  507|  11.1k|  Curl_peer_unlink(&conn->socks_proxy.peer);
  508|  11.1k|  Curl_creds_unlink(&conn->http_proxy.creds);
  509|  11.1k|  Curl_creds_unlink(&conn->socks_proxy.creds);
  510|  11.1k|#endif
  511|  11.1k|  Curl_creds_unlink(&conn->creds);
  512|  11.1k|  curlx_safefree(conn->options);
  ------------------
  |  | 1327|  11.1k|  do {                      \
  |  | 1328|  11.1k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  11.1k|    (ptr) = NULL;           \
  |  | 1330|  11.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  513|  11.1k|  curlx_safefree(conn->localdev);
  ------------------
  |  | 1327|  11.1k|  do {                      \
  |  | 1328|  11.1k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  11.1k|    (ptr) = NULL;           \
  |  | 1330|  11.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  514|  11.1k|  Curl_ssl_conn_config_cleanup(conn);
  515|       |
  516|  11.1k|  curlx_safefree(conn->destination);
  ------------------
  |  | 1327|  11.1k|  do {                      \
  |  | 1328|  11.1k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  11.1k|    (ptr) = NULL;           \
  |  | 1330|  11.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  517|  11.1k|  Curl_hash_destroy(&conn->meta_hash);
  518|  11.1k|  Curl_peer_unlink(&conn->origin);
  519|  11.1k|  Curl_peer_unlink(&conn->via_peer);
  520|  11.1k|  Curl_peer_unlink(&conn->origin2);
  521|  11.1k|  Curl_peer_unlink(&conn->via_peer2);
  522|       |
  523|  11.1k|  curlx_free(conn); /* free all the connection oriented data */
  ------------------
  |  | 1483|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  524|  11.1k|}
Curl_conn_seems_dead:
  603|  3.03k|{
  604|  3.03k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1081|  3.03k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (604:3): [True: 0, False: 3.03k]
  |  Branch (604:3): [True: 3.03k, False: 0]
  ------------------
  605|  3.03k|  if(!CONN_INUSE(conn)) {
  ------------------
  |  |  346|  3.03k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  ------------------
  |  Branch (605:6): [True: 3.03k, False: 0]
  ------------------
  606|       |    /* The check for a dead socket makes sense only if the connection is not in
  607|       |       use */
  608|  3.03k|    bool dead;
  609|       |
  610|  3.03k|    if(conn_maxage(data, conn, *Curl_pgrs_now(data))) {
  ------------------
  |  Branch (610:8): [True: 0, False: 3.03k]
  ------------------
  611|       |      /* avoid check if already too old */
  612|      0|      dead = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  613|      0|    }
  614|  3.03k|    else if(conn->scheme->run->connection_is_dead) {
  ------------------
  |  Branch (614:13): [True: 0, False: 3.03k]
  ------------------
  615|       |      /* The protocol has a special method for checking the state of the
  616|       |         connection. Use it to check if the connection is dead. */
  617|       |      /* briefly attach the connection for the check */
  618|      0|      Curl_attach_connection(data, conn);
  619|      0|      dead = conn->scheme->run->connection_is_dead(data, conn);
  620|      0|      Curl_detach_connection(data);
  621|      0|    }
  622|  3.03k|    else {
  623|  3.03k|      bool input_pending = FALSE;
  ------------------
  |  | 1058|  3.03k|#define FALSE false
  ------------------
  624|       |
  625|  3.03k|      Curl_attach_connection(data, conn);
  626|  3.03k|      dead = !Curl_conn_is_alive(data, conn, &input_pending);
  627|  3.03k|      if(input_pending) {
  ------------------
  |  Branch (627:10): [True: 240, False: 2.79k]
  ------------------
  628|       |        /* For reuse, we want a "clean" connection state. This includes
  629|       |         * that we expect - in general - no waiting input data. Input
  630|       |         * waiting might be a TLS Notify Close, for example. We reject
  631|       |         * that.
  632|       |         * For protocols where data from other end may arrive at
  633|       |         * any time (HTTP/2 PING for example), the protocol handler needs
  634|       |         * to install its own `connection_check` callback.
  635|       |         */
  636|    240|        DEBUGF(infof(data, "connection has input pending, not reusable"));
  ------------------
  |  | 1067|  1.68k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 240, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 240]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 240]
  |  |  ------------------
  ------------------
  637|    240|        dead = TRUE;
  ------------------
  |  | 1055|    240|#define TRUE true
  ------------------
  638|    240|      }
  639|  3.03k|      Curl_detach_connection(data);
  640|  3.03k|    }
  641|       |
  642|  3.03k|    if(dead) {
  ------------------
  |  Branch (642:8): [True: 240, False: 2.79k]
  ------------------
  643|       |      /* remove connection from cpool */
  644|    240|      infof(data, "Connection %" FMT_OFF_T " seems to be dead",
  ------------------
  |  |  143|    240|  do {                               \
  |  |  144|    240|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    240|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 240, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 240]
  |  |  |  |  ------------------
  |  |  |  |  320|    240|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    240|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    240|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 240]
  |  |  ------------------
  ------------------
  645|    240|            conn->connection_id);
  646|    240|      return TRUE;
  ------------------
  |  | 1055|    240|#define TRUE true
  ------------------
  647|    240|    }
  648|  3.03k|  }
  649|  2.79k|  return FALSE;
  ------------------
  |  | 1058|  2.79k|#define FALSE false
  ------------------
  650|  3.03k|}
Curl_uc_to_curlcode:
 1373|    622|{
 1374|    622|  switch(uc) {
 1375|    601|  default:
  ------------------
  |  Branch (1375:3): [True: 601, False: 21]
  ------------------
 1376|    601|    return CURLE_URL_MALFORMAT;
 1377|     21|  case CURLUE_UNSUPPORTED_SCHEME:
  ------------------
  |  Branch (1377:3): [True: 21, False: 601]
  ------------------
 1378|     21|    return CURLE_UNSUPPORTED_PROTOCOL;
 1379|      0|  case CURLUE_OUT_OF_MEMORY:
  ------------------
  |  Branch (1379:3): [True: 0, False: 622]
  ------------------
 1380|      0|    return CURLE_OUT_OF_MEMORY;
 1381|      0|  case CURLUE_USER_NOT_ALLOWED:
  ------------------
  |  Branch (1381:3): [True: 0, False: 622]
  ------------------
 1382|      0|    return CURLE_LOGIN_DENIED;
 1383|    622|  }
 1384|    622|}
Curl_parse_login_details:
 2103|  3.43k|{
 2104|  3.43k|  char *ubuf = NULL;
 2105|  3.43k|  char *pbuf = NULL;
 2106|  3.43k|  const char *psep = NULL;
 2107|  3.43k|  const char *osep = NULL;
 2108|  3.43k|  size_t ulen;
 2109|  3.43k|  size_t plen;
 2110|  3.43k|  size_t olen;
 2111|       |
 2112|  3.43k|  DEBUGASSERT(userp);
  ------------------
  |  | 1081|  3.43k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2112:3): [True: 0, False: 3.43k]
  |  Branch (2112:3): [True: 3.43k, False: 0]
  ------------------
 2113|  3.43k|  DEBUGASSERT(passwdp);
  ------------------
  |  | 1081|  3.43k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2113:3): [True: 0, False: 3.43k]
  |  Branch (2113:3): [True: 3.43k, False: 0]
  ------------------
 2114|       |
 2115|       |  /* Attempt to find the password separator */
 2116|  3.43k|  psep = memchr(login, ':', len);
 2117|       |
 2118|       |  /* Attempt to find the options separator */
 2119|  3.43k|  if(optionsp)
  ------------------
  |  Branch (2119:6): [True: 0, False: 3.43k]
  ------------------
 2120|      0|    osep = memchr(login, ';', len);
 2121|       |
 2122|       |  /* Calculate the portion lengths */
 2123|  3.43k|  ulen = (psep ?
  ------------------
  |  Branch (2123:11): [True: 838, False: 2.59k]
  ------------------
 2124|    838|          (size_t)(osep && psep > osep ? osep - login : psep - login) :
  ------------------
  |  Branch (2124:20): [True: 0, False: 838]
  |  Branch (2124:28): [True: 0, False: 0]
  ------------------
 2125|  3.43k|          (osep ? (size_t)(osep - login) : len));
  ------------------
  |  Branch (2125:12): [True: 0, False: 2.59k]
  ------------------
 2126|  3.43k|  plen = (psep ?
  ------------------
  |  Branch (2126:11): [True: 838, False: 2.59k]
  ------------------
 2127|    838|          (osep && osep > psep ? (size_t)(osep - psep) :
  ------------------
  |  Branch (2127:12): [True: 0, False: 838]
  |  Branch (2127:20): [True: 0, False: 0]
  ------------------
 2128|  2.59k|           (size_t)(login + len - psep)) - 1 : 0);
 2129|  3.43k|  olen = (osep ?
  ------------------
  |  Branch (2129:11): [True: 0, False: 3.43k]
  ------------------
 2130|      0|          (psep && psep > osep ? (size_t)(psep - osep) :
  ------------------
  |  Branch (2130:12): [True: 0, False: 0]
  |  Branch (2130:20): [True: 0, False: 0]
  ------------------
 2131|  3.43k|           (size_t)(login + len - osep)) - 1 : 0);
 2132|       |
 2133|       |  /* Clone the user portion buffer, which can be zero length */
 2134|  3.43k|  ubuf = curlx_memdup0(login, ulen);
 2135|  3.43k|  if(!ubuf)
  ------------------
  |  Branch (2135:6): [True: 0, False: 3.43k]
  ------------------
 2136|      0|    goto error;
 2137|       |
 2138|       |  /* Clone the password portion buffer */
 2139|  3.43k|  if(psep) {
  ------------------
  |  Branch (2139:6): [True: 838, False: 2.59k]
  ------------------
 2140|    838|    pbuf = curlx_memdup0(&psep[1], plen);
 2141|    838|    if(!pbuf)
  ------------------
  |  Branch (2141:8): [True: 0, False: 838]
  ------------------
 2142|      0|      goto error;
 2143|    838|  }
 2144|       |
 2145|       |  /* Allocate the options portion buffer */
 2146|  3.43k|  if(optionsp) {
  ------------------
  |  Branch (2146:6): [True: 0, False: 3.43k]
  ------------------
 2147|      0|    char *obuf = NULL;
 2148|      0|    if(olen) {
  ------------------
  |  Branch (2148:8): [True: 0, False: 0]
  ------------------
 2149|      0|      obuf = curlx_memdup0(&osep[1], olen);
 2150|      0|      if(!obuf)
  ------------------
  |  Branch (2150:10): [True: 0, False: 0]
  ------------------
 2151|      0|        goto error;
 2152|      0|    }
 2153|      0|    *optionsp = obuf;
 2154|      0|  }
 2155|  3.43k|  *userp = ubuf;
 2156|  3.43k|  *passwdp = pbuf;
 2157|  3.43k|  return CURLE_OK;
 2158|      0|error:
 2159|      0|  curlx_free(ubuf);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2160|      0|  curlx_free(pbuf);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2161|      0|  return CURLE_OUT_OF_MEMORY;
 2162|  3.43k|}
Curl_connect:
 2935|  11.1k|{
 2936|  11.1k|  CURLcode result;
 2937|  11.1k|  struct connectdata *conn;
 2938|       |
 2939|  11.1k|  *pconnected = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
 2940|       |
 2941|       |  /* Set the request to virgin state based on transfer settings */
 2942|  11.1k|  Curl_req_hard_reset(&data->req, data);
 2943|       |
 2944|       |  /* Get or create a connection for the transfer. */
 2945|  11.1k|  result = url_find_or_create_conn(data);
 2946|  11.1k|  conn = data->conn;
 2947|       |
 2948|  11.1k|  if(result)
  ------------------
  |  Branch (2948:6): [True: 812, False: 10.3k]
  ------------------
 2949|    812|    goto out;
 2950|       |
 2951|  10.3k|  DEBUGASSERT(conn);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2951:3): [True: 0, False: 10.3k]
  |  Branch (2951:3): [True: 10.3k, False: 0]
  ------------------
 2952|  10.3k|  Curl_pgrsTime(data, TIMER_POSTQUEUE);
 2953|  10.3k|  if(conn->bits.reuse) {
  ------------------
  |  Branch (2953:6): [True: 2.79k, False: 7.53k]
  ------------------
 2954|  2.79k|    if(conn->attached_xfers > 1)
  ------------------
  |  Branch (2954:8): [True: 0, False: 2.79k]
  ------------------
 2955|       |      /* multiplexed */
 2956|      0|      *pconnected = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2957|  2.79k|  }
 2958|  7.53k|  else if(conn->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  215|  7.53k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (2958:11): [True: 0, False: 7.53k]
  ------------------
 2959|      0|    Curl_pgrsTime(data, TIMER_NAMELOOKUP);
 2960|      0|    *pconnected = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2961|      0|  }
 2962|  7.53k|  else {
 2963|  7.53k|    result = Curl_conn_setup(data, conn, FIRSTSOCKET, CURL_CF_SSL_DEFAULT);
  ------------------
  |  |  303|  7.53k|#define FIRSTSOCKET     0
  ------------------
                  result = Curl_conn_setup(data, conn, FIRSTSOCKET, CURL_CF_SSL_DEFAULT);
  ------------------
  |  |  363|  7.53k|#define CURL_CF_SSL_DEFAULT  (-1)
  ------------------
 2964|  7.53k|    if(!result)
  ------------------
  |  Branch (2964:8): [True: 7.53k, False: 0]
  ------------------
 2965|  7.53k|      result = Curl_headers_init(data);
 2966|  7.53k|    CURL_TRC_M(data, "Curl_conn_setup() -> %d", result);
  ------------------
  |  |  148|  7.53k|  do {                                   \
  |  |  149|  7.53k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  7.53k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  7.53k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|  15.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 7.53k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 7.53k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|  15.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|  7.53k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  7.53k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  7.53k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
 2967|  7.53k|  }
 2968|       |
 2969|  11.1k|out:
 2970|  11.1k|  if(result == CURLE_NO_CONNECTION_AVAILABLE)
  ------------------
  |  Branch (2970:6): [True: 0, False: 11.1k]
  ------------------
 2971|  11.1k|    DEBUGASSERT(!conn);
  ------------------
  |  | 1081|  11.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2971:5): [True: 0, False: 0]
  |  Branch (2971:5): [True: 0, False: 0]
  ------------------
 2972|       |
 2973|  11.1k|  if(result && conn) {
  ------------------
  |  Branch (2973:6): [True: 812, False: 10.3k]
  |  Branch (2973:16): [True: 0, False: 812]
  ------------------
 2974|       |    /* We are not allowed to return failure with memory left allocated in the
 2975|       |       connectdata struct, free those here */
 2976|      0|    Curl_detach_connection(data);
 2977|      0|    Curl_conn_terminate(data, conn, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2978|      0|  }
 2979|       |
 2980|  11.1k|  return result;
 2981|  11.1k|}
Curl_init_do:
 2994|  10.3k|{
 2995|  10.3k|  CURLcode result;
 2996|       |
 2997|  10.3k|  if(conn) {
  ------------------
  |  Branch (2997:6): [True: 10.3k, False: 0]
  ------------------
 2998|  10.3k|    conn->bits.do_more = FALSE; /* by default there is no curl_do_more() to
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 2999|       |                                   use */
 3000|       |    /* if the protocol used does not support wildcards, switch it off */
 3001|  10.3k|    if(data->state.wildcardmatch &&
  ------------------
  |  Branch (3001:8): [True: 0, False: 10.3k]
  ------------------
 3002|      0|       !(conn->scheme->flags & PROTOPT_WILDCARD))
  ------------------
  |  |  231|      0|#define PROTOPT_WILDCARD (1 << 12)  /* protocol supports wildcard matching */
  ------------------
  |  Branch (3002:8): [True: 0, False: 0]
  ------------------
 3003|      0|      data->state.wildcardmatch = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 3004|  10.3k|  }
 3005|       |
 3006|  10.3k|  data->state.done = FALSE; /* *_done() is not called yet */
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 3007|       |
 3008|  10.3k|  data->req.no_body = data->set.opt_no_body;
 3009|  10.3k|  if(data->req.no_body)
  ------------------
  |  Branch (3009:6): [True: 456, False: 9.86k]
  ------------------
 3010|       |    /* in HTTP lingo, no body means using the HEAD request... */
 3011|    456|    data->state.httpreq = HTTPREQ_HEAD;
 3012|       |
 3013|  10.3k|  result = Curl_req_start(&data->req, data);
 3014|  10.3k|  if(!result) {
  ------------------
  |  Branch (3014:6): [True: 10.3k, False: 0]
  ------------------
 3015|  10.3k|    Curl_pgrsReset(data);
 3016|  10.3k|  }
 3017|  10.3k|  return result;
 3018|  10.3k|}
Curl_data_priority_clear_state:
 3023|  7.82k|{
 3024|  7.82k|  memset(&data->state.priority, 0, sizeof(data->state.priority));
 3025|  7.82k|}
Curl_conn_meta_set:
 3031|  1.34k|{
 3032|  1.34k|  if(!Curl_hash_add2(&conn->meta_hash, CURL_UNCONST(key), strlen(key) + 1,
  ------------------
  |  |  866|  1.34k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  |  Branch (3032:6): [True: 0, False: 1.34k]
  ------------------
 3033|  1.34k|                     meta_data, meta_dtor)) {
 3034|      0|    meta_dtor(CURL_UNCONST(key), strlen(key) + 1, meta_data);
  ------------------
  |  |  866|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 3035|      0|    return CURLE_OUT_OF_MEMORY;
 3036|      0|  }
 3037|  1.34k|  return CURLE_OK;
 3038|  1.34k|}
Curl_conn_meta_remove:
 3041|  7.53k|{
 3042|  7.53k|  Curl_hash_delete(&conn->meta_hash, CURL_UNCONST(key), strlen(key) + 1);
  ------------------
  |  |  866|  7.53k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 3043|  7.53k|}
Curl_conn_meta_get:
 3046|  17.7k|{
 3047|  17.7k|  return Curl_hash_pick(&conn->meta_hash, CURL_UNCONST(key), strlen(key) + 1);
  ------------------
  |  |  866|  17.7k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 3048|  17.7k|}
Curl_1st_fatal:
 3051|  14.1k|{
 3052|  14.1k|  if(r1 && (r1 != CURLE_AGAIN))
  ------------------
  |  Branch (3052:6): [True: 5.60k, False: 8.51k]
  |  Branch (3052:12): [True: 5.60k, False: 0]
  ------------------
 3053|  5.60k|    return r1;
 3054|  8.51k|  if(r2 && (r2 != CURLE_AGAIN))
  ------------------
  |  Branch (3054:6): [True: 0, False: 8.51k]
  |  Branch (3054:12): [True: 0, False: 0]
  ------------------
 3055|      0|    return r2;
 3056|  8.51k|  return r1;
 3057|  8.51k|}
url.c:up_free:
  179|  26.7k|{
  180|  26.7k|  struct urlpieces *up = &data->state.up;
  181|  26.7k|  curlx_safefree(up->scheme);
  ------------------
  |  | 1327|  26.7k|  do {                      \
  |  | 1328|  26.7k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  26.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  26.7k|    (ptr) = NULL;           \
  |  | 1330|  26.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
  182|  26.7k|  curlx_safefree(up->hostname);
  ------------------
  |  | 1327|  26.7k|  do {                      \
  |  | 1328|  26.7k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  26.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  26.7k|    (ptr) = NULL;           \
  |  | 1330|  26.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
  183|  26.7k|  curlx_safefree(up->port);
  ------------------
  |  | 1327|  26.7k|  do {                      \
  |  | 1328|  26.7k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  26.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  26.7k|    (ptr) = NULL;           \
  |  | 1330|  26.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
  184|  26.7k|  curlx_safefree(up->user);
  ------------------
  |  | 1327|  26.7k|  do {                      \
  |  | 1328|  26.7k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  26.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  26.7k|    (ptr) = NULL;           \
  |  | 1330|  26.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
  185|  26.7k|  curlx_safefree(up->password);
  ------------------
  |  | 1327|  26.7k|  do {                      \
  |  | 1328|  26.7k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  26.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  26.7k|    (ptr) = NULL;           \
  |  | 1330|  26.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
  186|  26.7k|  curlx_safefree(up->options);
  ------------------
  |  | 1327|  26.7k|  do {                      \
  |  | 1328|  26.7k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  26.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  26.7k|    (ptr) = NULL;           \
  |  | 1330|  26.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
  187|  26.7k|  curlx_safefree(up->path);
  ------------------
  |  | 1327|  26.7k|  do {                      \
  |  | 1328|  26.7k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  26.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  26.7k|    (ptr) = NULL;           \
  |  | 1330|  26.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
  188|  26.7k|  curlx_safefree(up->query);
  ------------------
  |  | 1327|  26.7k|  do {                      \
  |  | 1328|  26.7k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  26.7k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  26.7k|    (ptr) = NULL;           \
  |  | 1330|  26.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
  189|  26.7k|  curl_url_cleanup(data->state.uh);
  190|       |  data->state.uh = NULL;
  191|  26.7k|}
url.c:conn_maxage:
  571|  3.03k|{
  572|  3.03k|  timediff_t age_ms;
  573|       |
  574|  3.03k|  if(data->set.conn_max_idle_ms) {
  ------------------
  |  Branch (574:6): [True: 3.03k, False: 0]
  ------------------
  575|  3.03k|    age_ms = curlx_ptimediff_ms(&now, &conn->lastused);
  576|  3.03k|    if(age_ms > data->set.conn_max_idle_ms) {
  ------------------
  |  Branch (576:8): [True: 0, False: 3.03k]
  ------------------
  577|      0|      infof(data, "Too old connection (%" FMT_TIMEDIFF_T
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  578|      0|            " ms idle, max idle is %" FMT_TIMEDIFF_T " ms), disconnect it",
  579|      0|            age_ms, data->set.conn_max_idle_ms);
  580|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  581|      0|    }
  582|  3.03k|  }
  583|       |
  584|  3.03k|  if(data->set.conn_max_age_ms) {
  ------------------
  |  Branch (584:6): [True: 3.03k, False: 0]
  ------------------
  585|  3.03k|    age_ms = curlx_ptimediff_ms(&now, &conn->created);
  586|  3.03k|    if(age_ms > data->set.conn_max_age_ms) {
  ------------------
  |  Branch (586:8): [True: 0, False: 3.03k]
  ------------------
  587|      0|      infof(data,
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  588|      0|            "Too old connection (created %" FMT_TIMEDIFF_T
  589|      0|            " ms ago, max lifetime is %" FMT_TIMEDIFF_T " ms), disconnect it",
  590|      0|            age_ms, data->set.conn_max_age_ms);
  591|      0|      return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  592|      0|    }
  593|  3.03k|  }
  594|       |
  595|  3.03k|  return FALSE;
  ------------------
  |  | 1058|  3.03k|#define FALSE false
  ------------------
  596|  3.03k|}
url.c:url_find_or_create_conn:
 2736|  11.1k|{
 2737|  11.1k|  struct connectdata *needle = NULL;
 2738|  11.1k|  bool waitpipe = FALSE;
  ------------------
  |  | 1058|  11.1k|#define FALSE false
  ------------------
 2739|  11.1k|  CURLcode result;
 2740|       |
 2741|       |  /* create the template connection for transfer data. Use this needle to
 2742|       |   * find an existing connection or, if none exists, convert needle
 2743|       |   * to a full connection and attach it to data. */
 2744|  11.1k|  result = url_create_needle(data, &needle);
 2745|  11.1k|  if(result)
  ------------------
  |  Branch (2745:6): [True: 812, False: 10.3k]
  ------------------
 2746|    812|    goto out;
 2747|  10.3k|  DEBUGASSERT(needle);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2747:3): [True: 0, False: 10.3k]
  |  Branch (2747:3): [True: 10.3k, False: 0]
  ------------------
 2748|       |
 2749|       |  /***********************************************************************
 2750|       |   * file: is a special case in that it does not need a network connection
 2751|       |   ***********************************************************************/
 2752|  10.3k|#ifndef CURL_DISABLE_FILE
 2753|  10.3k|  if(needle->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  215|  10.3k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (2753:6): [True: 0, False: 10.3k]
  ------------------
 2754|      0|    bool done;
 2755|       |    /* this is supposed to be the connect function so we better at least check
 2756|       |       that the file is present here! */
 2757|      0|    DEBUGASSERT(needle->scheme->run->connect_it);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2757:5): [True: 0, False: 0]
  |  Branch (2757:5): [True: 0, False: 0]
  ------------------
 2758|      0|    data->info.conn_scheme = needle->scheme->name;
 2759|       |    /* conn_protocol can only provide "old" protocols */
 2760|      0|    data->info.conn_protocol = (needle->scheme->protocol) & CURLPROTO_MASK;
  ------------------
  |  |   79|      0|#define CURLPROTO_MASK   0x3fffffff
  ------------------
 2761|      0|    result = needle->scheme->run->connect_it(data, &done);
 2762|      0|    if(result)
  ------------------
  |  Branch (2762:8): [True: 0, False: 0]
  ------------------
 2763|      0|      goto out;
 2764|       |
 2765|       |    /* Setup a "faked" transfer that will do nothing */
 2766|      0|    Curl_attach_connection(data, needle);
 2767|      0|    needle = NULL;
 2768|      0|    result = Curl_cpool_add(data, data->conn);
 2769|      0|    if(!result) {
  ------------------
  |  Branch (2769:8): [True: 0, False: 0]
  ------------------
 2770|       |      /* Setup whatever necessary for a resumed transfer */
 2771|      0|      result = setup_range(data);
 2772|      0|      if(!result) {
  ------------------
  |  Branch (2772:10): [True: 0, False: 0]
  ------------------
 2773|      0|        Curl_xfer_setup_nop(data);
 2774|      0|        result = Curl_init_do(data, data->conn);
 2775|      0|      }
 2776|      0|    }
 2777|       |
 2778|      0|    if(result) {
  ------------------
  |  Branch (2778:8): [True: 0, False: 0]
  ------------------
 2779|      0|      DEBUGASSERT(data->conn->scheme->run->done);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2779:7): [True: 0, False: 0]
  |  Branch (2779:7): [True: 0, False: 0]
  ------------------
 2780|       |      /* we ignore the return code for the protocol-specific DONE */
 2781|      0|      (void)data->conn->scheme->run->done(data, result, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2782|      0|    }
 2783|      0|    goto out;
 2784|      0|  }
 2785|  10.3k|#endif
 2786|       |
 2787|       |  /* Complete the easy's SSL configuration for connection cache matching */
 2788|  10.3k|  result = Curl_ssl_easy_config_complete(data);
 2789|  10.3k|  if(result)
  ------------------
  |  Branch (2789:6): [True: 0, False: 10.3k]
  ------------------
 2790|      0|    goto out;
 2791|       |
 2792|       |  /* Get rid of any dead connections so limit are easier kept. */
 2793|  10.3k|  Curl_cpool_prune_dead(data);
 2794|       |
 2795|       |  /*************************************************************
 2796|       |   * Reuse of existing connection is not allowed when
 2797|       |   * - connect_only is set or
 2798|       |   * - reuse_fresh is set and this is not a follow-up request
 2799|       |   *   (like with HTTP followlocation)
 2800|       |   *************************************************************/
 2801|  10.3k|  if((!data->set.reuse_fresh || data->state.followlocation) &&
  ------------------
  |  Branch (2801:7): [True: 10.3k, False: 0]
  |  Branch (2801:33): [True: 0, False: 0]
  ------------------
 2802|  10.3k|     !data->set.connect_only) {
  ------------------
  |  Branch (2802:6): [True: 9.87k, False: 449]
  ------------------
 2803|       |    /* Ok, try to find and attach an existing one */
 2804|  9.87k|    url_attach_existing(data, needle, &waitpipe);
 2805|  9.87k|  }
 2806|       |
 2807|  10.3k|  if(data->conn) {
  ------------------
  |  Branch (2807:6): [True: 2.79k, False: 7.53k]
  ------------------
 2808|       |    /* We attached an existing connection for this transfer. Copy
 2809|       |     * over transfer specific properties over from needle. */
 2810|  2.79k|    struct connectdata *conn = data->conn;
 2811|  2.79k|    VERBOSE(bool tls_upgraded = (!(needle->given->flags & PROTOPT_SSL) &&
  ------------------
  |  | 1618|  8.37k|#define VERBOSE(x) x
  |  |  ------------------
  |  |  |  Branch (1618:20): [True: 2.79k, False: 0]
  |  |  |  Branch (1618:20): [True: 0, False: 2.79k]
  |  |  ------------------
  ------------------
 2812|  2.79k|                                 Curl_conn_is_ssl(conn, FIRSTSOCKET)));
 2813|       |
 2814|  2.79k|    conn->bits.reuse = TRUE;
  ------------------
  |  | 1055|  2.79k|#define TRUE true
  ------------------
 2815|  2.79k|    url_conn_reuse_adjust(data, needle);
 2816|       |
 2817|  2.79k|#ifndef CURL_DISABLE_PROXY
 2818|  2.79k|    infof(data, "Reusing existing %s: connection%s with %s %s",
  ------------------
  |  |  143|  2.79k|  do {                               \
  |  |  144|  2.79k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  2.79k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 2.79k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.79k]
  |  |  |  |  ------------------
  |  |  |  |  320|  2.79k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  2.79k|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|  2.79k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 2.79k]
  |  |  ------------------
  ------------------
 2819|  2.79k|          conn->given->name,
 2820|  2.79k|          tls_upgraded ? " (upgraded to SSL)" : "",
 2821|  2.79k|          conn->bits.proxy ? "proxy" : "host",
 2822|  2.79k|          conn->socks_proxy.peer ? conn->socks_proxy.peer->user_hostname :
 2823|  2.79k|          conn->http_proxy.peer ? conn->http_proxy.peer->user_hostname :
 2824|  2.79k|          conn->origin->hostname);
 2825|       |#else
 2826|       |    infof(data, "Reusing existing %s: connection%s with host %s",
 2827|       |          conn->given->name,
 2828|       |          tls_upgraded ? " (upgraded to SSL)" : "",
 2829|       |          conn->origin->hostname);
 2830|       |#endif
 2831|  2.79k|  }
 2832|  7.53k|  else {
 2833|       |    /* We have decided that we want a new connection. We may not be able to do
 2834|       |       that if we have reached the limit of how many connections we are
 2835|       |       allowed to open. */
 2836|  7.53k|    DEBUGF(infof(data, "new connection, bits.close=%d", needle->bits.close));
  ------------------
  |  | 1067|  52.7k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 7.53k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 7.53k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 7.53k]
  |  |  ------------------
  ------------------
 2837|       |
 2838|  7.53k|    if(waitpipe) {
  ------------------
  |  Branch (2838:8): [True: 0, False: 7.53k]
  ------------------
 2839|       |      /* There is a connection that *might* become usable for multiplexing
 2840|       |         "soon", and we wait for that */
 2841|      0|      infof(data, "Waiting on connection to negotiate possible multiplexing.");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2842|      0|      result = CURLE_NO_CONNECTION_AVAILABLE;
 2843|      0|      goto out;
 2844|      0|    }
 2845|  7.53k|    else {
 2846|  7.53k|      switch(Curl_cpool_check_limits(data, needle)) {
 2847|      0|      case CPOOL_LIMIT_DEST:
  ------------------
  |  |   91|      0|#define CPOOL_LIMIT_DEST   1
  ------------------
  |  Branch (2847:7): [True: 0, False: 7.53k]
  ------------------
 2848|      0|        infof(data, "No more connections allowed to host");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2849|      0|        result = CURLE_NO_CONNECTION_AVAILABLE;
 2850|      0|        goto out;
 2851|      0|      case CPOOL_LIMIT_TOTAL:
  ------------------
  |  |   92|      0|#define CPOOL_LIMIT_TOTAL  2
  ------------------
  |  Branch (2851:7): [True: 0, False: 7.53k]
  ------------------
 2852|      0|        if(data->master_mid != UINT32_MAX)
  ------------------
  |  Branch (2852:12): [True: 0, False: 0]
  ------------------
 2853|      0|          CURL_TRC_M(data, "Allowing sub-requests (like DoH) to override "
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2854|      0|                     "max connection limit");
 2855|      0|        else {
 2856|      0|          infof(data, "No connections available, total of %zu reached.",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2857|      0|                data->multi->max_total_connections);
 2858|      0|          result = CURLE_NO_CONNECTION_AVAILABLE;
 2859|      0|          goto out;
 2860|      0|        }
 2861|      0|        break;
 2862|  7.53k|      default:
  ------------------
  |  Branch (2862:7): [True: 7.53k, False: 0]
  ------------------
 2863|  7.53k|        break;
 2864|  7.53k|      }
 2865|  7.53k|    }
 2866|       |
 2867|       |    /* Convert needle into a full connection by filling in all the
 2868|       |     * remaining parts like the cloned SSL configuration. */
 2869|  7.53k|    result = Curl_ssl_conn_config_init(data, needle);
 2870|  7.53k|    if(result) {
  ------------------
  |  Branch (2870:8): [True: 0, False: 7.53k]
  ------------------
 2871|      0|      DEBUGF(curl_mfprintf(stderr, "Error: init connection SSL config\n"));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  ------------------
 2872|      0|      goto out;
 2873|      0|    }
 2874|       |    /* attach it and no longer own it */
 2875|  7.53k|    Curl_attach_connection(data, needle);
 2876|  7.53k|    needle = NULL;
 2877|       |
 2878|  7.53k|    result = Curl_cpool_add(data, data->conn);
 2879|  7.53k|    if(result)
  ------------------
  |  Branch (2879:8): [True: 0, False: 7.53k]
  ------------------
 2880|      0|      goto out;
 2881|       |
 2882|       |#ifdef USE_NTLM
 2883|       |    /* If NTLM is requested in a part of this connection, make sure we do not
 2884|       |       assume the state is fine as this is a fresh connection and NTLM is
 2885|       |       connection based. */
 2886|       |    if((data->state.authhost.picked & CURLAUTH_NTLM) &&
 2887|       |       data->state.authhost.done) {
 2888|       |      infof(data, "NTLM picked AND auth done set, clear picked");
 2889|       |      data->state.authhost.picked = CURLAUTH_NONE;
 2890|       |      data->state.authhost.done = FALSE;
 2891|       |    }
 2892|       |
 2893|       |    if((data->state.authproxy.picked & CURLAUTH_NTLM) &&
 2894|       |       data->state.authproxy.done) {
 2895|       |      infof(data, "NTLM-proxy picked AND auth done set, clear picked");
 2896|       |      data->state.authproxy.picked = CURLAUTH_NONE;
 2897|       |      data->state.authproxy.done = FALSE;
 2898|       |    }
 2899|       |#endif
 2900|  7.53k|  }
 2901|       |
 2902|       |  /* Setup and init stuff before DO starts, in preparing for the transfer. */
 2903|  10.3k|  result = Curl_init_do(data, data->conn);
 2904|  10.3k|  if(result)
  ------------------
  |  Branch (2904:6): [True: 0, False: 10.3k]
  ------------------
 2905|      0|    goto out;
 2906|       |
 2907|       |  /* Setup whatever necessary for a resumed transfer */
 2908|  10.3k|  result = setup_range(data);
 2909|  10.3k|  if(result)
  ------------------
  |  Branch (2909:6): [True: 0, False: 10.3k]
  ------------------
 2910|      0|    goto out;
 2911|       |
 2912|       |  /* persist the scheme and handler the transfer is using */
 2913|  10.3k|  data->info.conn_scheme = data->conn->scheme->name;
 2914|       |  /* conn_protocol can only provide "old" protocols */
 2915|  10.3k|  data->info.conn_protocol = (data->conn->scheme->protocol) & CURLPROTO_MASK;
  ------------------
  |  |   79|  10.3k|#define CURLPROTO_MASK   0x3fffffff
  ------------------
 2916|  10.3k|  data->info.used_proxy =
 2917|       |#ifdef CURL_DISABLE_PROXY
 2918|       |    0
 2919|       |#else
 2920|  10.3k|    data->conn->bits.proxy
 2921|  10.3k|#endif
 2922|  10.3k|    ;
 2923|       |
 2924|       |  /* Lastly, inform connection filters that a new transfer is attached */
 2925|  10.3k|  result = Curl_conn_ev_data_setup(data);
 2926|       |
 2927|  11.1k|out:
 2928|  11.1k|  if(needle)
  ------------------
  |  Branch (2928:6): [True: 2.79k, False: 8.34k]
  ------------------
 2929|  2.79k|    Curl_conn_free(data, needle);
 2930|  11.1k|  DEBUGASSERT(result || data->conn);
  ------------------
  |  | 1081|  11.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2930:3): [True: 11.1k, False: 0]
  |  Branch (2930:3): [True: 0, False: 0]
  |  Branch (2930:3): [True: 812, False: 10.3k]
  |  Branch (2930:3): [True: 10.3k, False: 0]
  ------------------
 2931|  11.1k|  return result;
 2932|  11.1k|}
url.c:url_create_needle:
 2575|  11.1k|{
 2576|  11.1k|  struct connectdata *needle = NULL;
 2577|  11.1k|  CURLcode result = CURLE_OK;
 2578|  11.1k|  bool network_scheme = TRUE; /* almost all are */
  ------------------
  |  | 1055|  11.1k|#define TRUE true
  ------------------
 2579|       |
 2580|       |  /*************************************************************
 2581|       |   * Check input data
 2582|       |   *************************************************************/
 2583|  11.1k|  if(!Curl_bufref_ptr(&data->state.url)) {
  ------------------
  |  Branch (2583:6): [True: 0, False: 11.1k]
  ------------------
 2584|      0|    result = CURLE_URL_MALFORMAT;
 2585|      0|    goto out;
 2586|      0|  }
 2587|       |
 2588|       |  /* First, split up the current URL in parts so that we can use the
 2589|       |     parts for checking against the already present connections. In order
 2590|       |     to not have to modify everything at once, we allocate a temporary
 2591|       |     connection data struct and fill in for comparison purposes. */
 2592|  11.1k|  needle = allocate_conn(data);
 2593|  11.1k|  if(!needle) {
  ------------------
  |  Branch (2593:6): [True: 0, False: 11.1k]
  ------------------
 2594|      0|    result = CURLE_OUT_OF_MEMORY;
 2595|      0|    goto out;
 2596|      0|  }
 2597|       |
 2598|       |  /* Do the unfailable inits first, before checks that may early return */
 2599|  11.1k|  Curl_hash_init(&needle->meta_hash, 23,
 2600|  11.1k|                 Curl_hash_str, curlx_str_key_compare, conn_meta_freeentry);
 2601|       |
 2602|       |  /*************************************************************
 2603|       |   * Determine `conn->origin` and propulate `data->state.up` and
 2604|       |   * other URL related properties.
 2605|       |   *************************************************************/
 2606|  11.1k|  result = parseurlandfillconn(data, needle);
 2607|  11.1k|  if(result)
  ------------------
  |  Branch (2607:6): [True: 812, False: 10.3k]
  ------------------
 2608|    812|    goto out;
 2609|  10.3k|  DEBUGASSERT(needle->origin);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2609:3): [True: 0, False: 10.3k]
  |  Branch (2609:3): [True: 10.3k, False: 0]
  ------------------
 2610|  10.3k|  network_scheme = !(needle->origin->scheme->flags & PROTOPT_NONETWORK);
  ------------------
  |  |  215|  10.3k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
 2611|       |
 2612|  10.3k|#ifdef USE_UNIX_SOCKETS
 2613|       |  /*************************************************************
 2614|       |   * Set UDS first. It overrides "via_peer" and proxy settings.
 2615|       |   *************************************************************/
 2616|  10.3k|  if(network_scheme && data->set.str[STRING_UNIX_SOCKET_PATH]) {
  ------------------
  |  Branch (2616:6): [True: 10.3k, False: 0]
  |  Branch (2616:24): [True: 0, False: 10.3k]
  ------------------
 2617|      0|    result = Curl_peer_uds_create(needle->origin->scheme,
 2618|      0|                                  data->set.str[STRING_UNIX_SOCKET_PATH],
 2619|      0|                                  (bool)data->set.abstract_unix_socket,
 2620|      0|                                  &needle->via_peer);
 2621|      0|    if(result)
  ------------------
  |  Branch (2621:8): [True: 0, False: 0]
  ------------------
 2622|      0|      goto out;
 2623|      0|  }
 2624|  10.3k|#endif /* USE_UNIX_SOCKETS */
 2625|       |
 2626|  10.3k|  if(network_scheme && !needle->via_peer) {
  ------------------
  |  Branch (2626:6): [True: 10.3k, False: 0]
  |  Branch (2626:24): [True: 10.3k, False: 0]
  ------------------
 2627|       |    /*************************************************************
 2628|       |     * If the `via_peer` is not already set (via UDS above),
 2629|       |     * determine if we talk to `conn->origin` directly or use
 2630|       |     * `conn->via_peer` using "connect to" and "alt-svc" properties.
 2631|       |     *************************************************************/
 2632|  10.3k|    result = url_set_conn_peer(data, needle);
 2633|  10.3k|    if(result)
  ------------------
  |  Branch (2633:8): [True: 0, False: 10.3k]
  ------------------
 2634|      0|      goto out;
 2635|  10.3k|  }
 2636|       |
 2637|  10.3k|#ifndef CURL_DISABLE_PROXY
 2638|       |  /* Going via a unix socket ignores any proxy settings */
 2639|  10.3k|  if(needle->via_peer && needle->via_peer->unix_socket) {
  ------------------
  |  Branch (2639:6): [True: 10.3k, False: 0]
  |  Branch (2639:26): [True: 0, False: 10.3k]
  ------------------
 2640|      0|    needle->bits.socksproxy = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2641|      0|    needle->bits.httpproxy = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2642|      0|    needle->bits.proxy = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2643|      0|  }
 2644|  10.3k|  else if(network_scheme) {
  ------------------
  |  Branch (2644:11): [True: 10.3k, False: 0]
  ------------------
 2645|  10.3k|    result = url_set_conn_proxies(data, needle);
 2646|  10.3k|    if(result)
  ------------------
  |  Branch (2646:8): [True: 0, False: 10.3k]
  ------------------
 2647|      0|      goto out;
 2648|       |
 2649|       |    /*************************************************************
 2650|       |     * If the protocol is using SSL and HTTP proxy is used, we set
 2651|       |     * the tunnel_proxy bit.
 2652|       |     *************************************************************/
 2653|  10.3k|    if((needle->given->flags & PROTOPT_SSL) && needle->bits.httpproxy)
  ------------------
  |  |  207|  10.3k|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
  |  Branch (2653:8): [True: 229, False: 10.0k]
  |  Branch (2653:48): [True: 0, False: 229]
  ------------------
 2654|      0|      needle->bits.tunnel_proxy = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2655|  10.3k|  }
 2656|  10.3k|#endif /* CURL_DISABLE_PROXY */
 2657|       |
 2658|       |  /* Check for overridden login details and set them accordingly so that
 2659|       |     they are known when protocol->setup_connection is called! */
 2660|  10.3k|  result = override_login(data, needle);
 2661|  10.3k|  if(result)
  ------------------
  |  Branch (2661:6): [True: 0, False: 10.3k]
  ------------------
 2662|      0|    goto out;
 2663|       |
 2664|  10.3k|  result = url_set_conn_login(data, needle); /* default credentials */
 2665|  10.3k|  if(result)
  ------------------
  |  Branch (2665:6): [True: 0, False: 10.3k]
  ------------------
 2666|      0|    goto out;
 2667|       |
 2668|       |  /*************************************************************
 2669|       |   * Check whether the host and the "connect to host" are equal.
 2670|       |   * Do this after the hostnames have been IDN-converted.
 2671|       |   *************************************************************/
 2672|  10.3k|  if(Curl_peer_equal(needle->origin, needle->via_peer)) {
  ------------------
  |  Branch (2672:6): [True: 35, False: 10.2k]
  ------------------
 2673|     35|    Curl_peer_unlink(&needle->via_peer);
 2674|     35|  }
 2675|       |
 2676|  10.3k|#ifndef CURL_DISABLE_PROXY
 2677|       |  /*************************************************************
 2678|       |   * If the "connect to" feature is used with an HTTP proxy,
 2679|       |   * we set the tunnel_proxy bit.
 2680|       |   *************************************************************/
 2681|  10.3k|  if(needle->via_peer && needle->bits.httpproxy)
  ------------------
  |  Branch (2681:6): [True: 10.2k, False: 35]
  |  Branch (2681:26): [True: 0, False: 10.2k]
  ------------------
 2682|      0|    needle->bits.tunnel_proxy = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2683|  10.3k|#endif
 2684|       |
 2685|       |  /*************************************************************
 2686|       |   * Setup internals depending on protocol. Needs to be done after
 2687|       |   * we figured out what/if proxy to use.
 2688|       |   *************************************************************/
 2689|  10.3k|  result = setup_connection_internals(data, needle);
 2690|  10.3k|  if(result)
  ------------------
  |  Branch (2690:6): [True: 0, False: 10.3k]
  ------------------
 2691|      0|    goto out;
 2692|       |
 2693|  10.3k|  if(needle->scheme->flags & PROTOPT_ALPN) {
  ------------------
  |  |  223|  10.3k|#define PROTOPT_ALPN (1 << 8) /* set ALPN for this */
  ------------------
  |  Branch (2693:6): [True: 0, False: 10.3k]
  ------------------
 2694|       |    /* The protocol wants it, so set the bits if enabled in the easy handle
 2695|       |       (default) */
 2696|      0|    if(data->set.ssl_enable_alpn)
  ------------------
  |  Branch (2696:8): [True: 0, False: 0]
  ------------------
 2697|      0|      needle->bits.tls_enable_alpn = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2698|      0|  }
 2699|       |
 2700|  10.3k|  if(network_scheme) {
  ------------------
  |  Branch (2700:6): [True: 10.3k, False: 0]
  ------------------
 2701|       |    /* Setup callbacks for network connections */
 2702|  10.3k|    needle->recv[FIRSTSOCKET] = Curl_cf_recv;
  ------------------
  |  |  303|  10.3k|#define FIRSTSOCKET     0
  ------------------
 2703|  10.3k|    needle->send[FIRSTSOCKET] = Curl_cf_send;
  ------------------
  |  |  303|  10.3k|#define FIRSTSOCKET     0
  ------------------
 2704|  10.3k|    needle->recv[SECONDARYSOCKET] = Curl_cf_recv;
  ------------------
  |  |  304|  10.3k|#define SECONDARYSOCKET 1
  ------------------
 2705|  10.3k|    needle->send[SECONDARYSOCKET] = Curl_cf_send;
  ------------------
  |  |  304|  10.3k|#define SECONDARYSOCKET 1
  ------------------
 2706|  10.3k|    needle->bits.tcp_fastopen = data->set.tcp_fastopen;
 2707|  10.3k|#ifdef USE_UNIX_SOCKETS
 2708|  10.3k|    if(Curl_conn_get_first_peer(needle, FIRSTSOCKET)->unix_socket)
  ------------------
  |  |  303|  10.3k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2708:8): [True: 0, False: 10.3k]
  ------------------
 2709|      0|      needle->transport_wanted = TRNSPRT_UNIX;
  ------------------
  |  |  310|      0|#define TRNSPRT_UNIX 6
  ------------------
 2710|  10.3k|#endif
 2711|  10.3k|  }
 2712|       |
 2713|  11.1k|out:
 2714|  11.1k|  if(!result) {
  ------------------
  |  Branch (2714:6): [True: 10.3k, False: 812]
  ------------------
 2715|  10.3k|    DEBUGASSERT(needle);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2715:5): [True: 0, False: 10.3k]
  |  Branch (2715:5): [True: 10.3k, False: 0]
  ------------------
 2716|  10.3k|    DEBUGASSERT(needle->origin);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2716:5): [True: 0, False: 10.3k]
  |  Branch (2716:5): [True: 10.3k, False: 0]
  ------------------
 2717|  10.3k|    *pneedle = needle;
 2718|  10.3k|  }
 2719|    812|  else {
 2720|    812|    *pneedle = NULL;
 2721|    812|    if(needle)
  ------------------
  |  Branch (2721:8): [True: 812, False: 0]
  ------------------
 2722|    812|      Curl_conn_free(data, needle);
 2723|    812|  }
 2724|  11.1k|  return result;
 2725|  11.1k|}
url.c:allocate_conn:
 1272|  11.1k|{
 1273|  11.1k|  struct connectdata *conn = curlx_calloc(1, sizeof(struct connectdata));
  ------------------
  |  | 1480|  11.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1274|  11.1k|  if(!conn)
  ------------------
  |  Branch (1274:6): [True: 0, False: 11.1k]
  ------------------
 1275|      0|    return NULL;
 1276|       |
 1277|       |  /* and we setup a few fields in case we end up actually using this struct */
 1278|       |
 1279|  11.1k|  conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD;     /* no file descriptor */
  ------------------
  |  |  303|  11.1k|#define FIRSTSOCKET     0
  ------------------
                conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD;     /* no file descriptor */
  ------------------
  |  |  145|  11.1k|#define CURL_SOCKET_BAD (-1)
  ------------------
 1280|  11.1k|  conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
  ------------------
  |  |  304|  11.1k|#define SECONDARYSOCKET 1
  ------------------
                conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
  ------------------
  |  |  145|  11.1k|#define CURL_SOCKET_BAD (-1)
  ------------------
 1281|  11.1k|  conn->recv_idx = 0; /* default for receiving transfer data */
 1282|  11.1k|  conn->send_idx = 0; /* default for sending transfer data */
 1283|  11.1k|  conn->connection_id = -1;    /* no ID */
 1284|  11.1k|  conn->attached_xfers = 0;
 1285|       |
 1286|       |  /* Store creation time to help future close decision making */
 1287|  11.1k|  conn->created = *Curl_pgrs_now(data);
 1288|       |
 1289|       |  /* Store current time to give a baseline to keepalive connection times. */
 1290|  11.1k|  conn->keepalive = conn->created;
 1291|       |
 1292|  11.1k|#ifndef CURL_DISABLE_PROXY
 1293|  11.1k|  conn->http_proxy.proxytype = data->set.proxytype;
 1294|  11.1k|  conn->socks_proxy.proxytype = CURLPROXY_SOCKS4;
  ------------------
  |  |  798|  11.1k|#define CURLPROXY_SOCKS4          4L /* support added in 7.15.2, enum existed
  ------------------
 1295|       |
 1296|       |  /* note that these two proxy bits are set on what looks to be
 1297|       |     requested, they may be altered down the road */
 1298|  11.1k|  conn->bits.proxy = (data->set.str[STRING_PROXY] &&
  ------------------
  |  Branch (1298:23): [True: 0, False: 11.1k]
  ------------------
 1299|      0|                      *data->set.str[STRING_PROXY]);
  ------------------
  |  Branch (1299:23): [True: 0, False: 0]
  ------------------
 1300|  11.1k|  conn->bits.httpproxy = (conn->bits.proxy &&
  ------------------
  |  Branch (1300:27): [True: 0, False: 11.1k]
  ------------------
 1301|      0|                          (conn->http_proxy.proxytype == CURLPROXY_HTTP ||
  ------------------
  |  |  790|      0|#define CURLPROXY_HTTP            0L /* added in 7.10, new in 7.19.4 default is
  ------------------
  |  Branch (1301:28): [True: 0, False: 0]
  ------------------
 1302|      0|                           conn->http_proxy.proxytype == CURLPROXY_HTTP_1_0 ||
  ------------------
  |  |  792|      0|#define CURLPROXY_HTTP_1_0        1L /* force to use CONNECT HTTP/1.0
  ------------------
  |  Branch (1302:28): [True: 0, False: 0]
  ------------------
 1303|      0|                           IS_HTTPS_PROXY(conn->http_proxy.proxytype)));
  ------------------
  |  |   80|      0|  (((t) == CURLPROXY_HTTPS) ||  \
  |  |  ------------------
  |  |  |  |  794|      0|#define CURLPROXY_HTTPS           2L /* HTTPS but stick to HTTP/1
  |  |  ------------------
  |  |  |  Branch (80:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   81|      0|   ((t) == CURLPROXY_HTTPS2) || \
  |  |  ------------------
  |  |  |  |  796|      0|#define CURLPROXY_HTTPS2          3L /* HTTPS and attempt HTTP/2
  |  |  ------------------
  |  |  |  Branch (81:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   82|      0|   ((t) == CURLPROXY_HTTPS3))
  |  |  ------------------
  |  |  |  |  805|      0|#define CURLPROXY_HTTPS3          8L /* HTTPS and attempt HTTP/3
  |  |  ------------------
  |  |  |  Branch (82:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1304|  11.1k|  conn->bits.socksproxy = (conn->bits.proxy && !conn->bits.httpproxy);
  ------------------
  |  Branch (1304:28): [True: 0, False: 11.1k]
  |  Branch (1304:48): [True: 0, False: 0]
  ------------------
 1305|       |
 1306|  11.1k|  if(data->set.str[STRING_PRE_PROXY] && *data->set.str[STRING_PRE_PROXY]) {
  ------------------
  |  Branch (1306:6): [True: 0, False: 11.1k]
  |  Branch (1306:41): [True: 0, False: 0]
  ------------------
 1307|      0|    conn->bits.proxy = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1308|      0|    conn->bits.socksproxy = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1309|      0|  }
 1310|       |
 1311|  11.1k|  conn->bits.tunnel_proxy = data->set.tunnel_thru_httpproxy;
 1312|  11.1k|#endif /* CURL_DISABLE_PROXY */
 1313|       |
 1314|  11.1k|#ifndef CURL_DISABLE_FTP
 1315|  11.1k|  conn->bits.ftp_use_epsv = data->set.ftp_use_epsv;
 1316|  11.1k|  conn->bits.ftp_use_eprt = data->set.ftp_use_eprt;
 1317|  11.1k|#endif
 1318|  11.1k|  conn->ip_version = data->set.ipver;
 1319|  11.1k|  conn->bits.connect_only = (bool)data->set.connect_only;
 1320|  11.1k|  conn->transport_wanted = TRNSPRT_TCP; /* most of them are TCP streams */
  ------------------
  |  |  307|  11.1k|#define TRNSPRT_TCP  3
  ------------------
 1321|       |
 1322|       |  /* Store the local bind parameters that will be used for this connection */
 1323|  11.1k|  if(data->set.str[STRING_DEVICE]) {
  ------------------
  |  Branch (1323:6): [True: 0, False: 11.1k]
  ------------------
 1324|      0|    conn->localdev = curlx_strdup(data->set.str[STRING_DEVICE]);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1325|      0|    if(!conn->localdev)
  ------------------
  |  Branch (1325:8): [True: 0, False: 0]
  ------------------
 1326|      0|      goto error;
 1327|      0|  }
 1328|  11.1k|#ifndef CURL_DISABLE_BINDLOCAL
 1329|  11.1k|  conn->localportrange = data->set.localportrange;
 1330|  11.1k|  conn->localport = data->set.localport;
 1331|  11.1k|#endif
 1332|       |
 1333|       |  /* the close socket stuff needs to be copied to the connection struct as
 1334|       |     it may live on without (this specific) Curl_easy */
 1335|  11.1k|  conn->fclosesocket = data->set.fclosesocket;
 1336|  11.1k|  conn->closesocket_client = data->set.closesocket_client;
 1337|  11.1k|  conn->lastused = conn->created;
 1338|       |#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
 1339|       |  conn->gssapi_delegation = data->set.gssapi_delegation;
 1340|       |#endif
 1341|  11.1k|  DEBUGF(infof(data, "alloc connection, bits.close=%d", conn->bits.close));
  ------------------
  |  | 1067|  77.9k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 11.1k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 11.1k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
 1342|  11.1k|  return conn;
 1343|      0|error:
 1344|       |
 1345|      0|  curlx_free(conn->localdev);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1346|      0|  curlx_free(conn);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1347|       |  return NULL;
 1348|  11.1k|}
url.c:parseurlandfillconn:
 1492|  11.1k|{
 1493|  11.1k|  CURLcode result = CURLE_OK;
 1494|  11.1k|  CURLU *uh;
 1495|  11.1k|  CURLUcode uc;
 1496|  11.1k|  bool use_set_uh = (data->set.uh && !data->state.this_is_a_follow);
  ------------------
  |  Branch (1496:22): [True: 0, False: 11.1k]
  |  Branch (1496:38): [True: 0, False: 0]
  ------------------
 1497|  11.1k|  uint16_t port_override = data->state.allow_port ? data->set.use_port : 0;
  ------------------
  |  Branch (1497:28): [True: 10.6k, False: 496]
  ------------------
 1498|  11.1k|  uint32_t scope_id = 0;
 1499|       |
 1500|  11.1k|  up_free(data); /* cleanup previous leftovers first */
 1501|       |
 1502|       |  /* parse the URL */
 1503|  11.1k|  if(use_set_uh)
  ------------------
  |  Branch (1503:6): [True: 0, False: 11.1k]
  ------------------
 1504|      0|    uh = data->state.uh = curl_url_dup(data->set.uh);
 1505|  11.1k|  else
 1506|  11.1k|    uh = data->state.uh = curl_url();
 1507|  11.1k|  if(!uh) {
  ------------------
  |  Branch (1507:6): [True: 0, False: 11.1k]
  ------------------
 1508|      0|    result = CURLE_OUT_OF_MEMORY;
 1509|      0|    goto out;
 1510|      0|  }
 1511|       |
 1512|       |  /* Calculate the *real* URL this transfer uses, applying defaults
 1513|       |   * where information is missing. */
 1514|  11.1k|  if(data->set.str[STRING_DEFAULT_PROTOCOL] &&
  ------------------
  |  Branch (1514:6): [True: 0, False: 11.1k]
  ------------------
 1515|      0|     !Curl_is_absolute_url(Curl_bufref_ptr(&data->state.url), NULL, 0, TRUE)) {
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  |  Branch (1515:6): [True: 0, False: 0]
  ------------------
 1516|      0|    char *url = curl_maprintf("%s://%s",
 1517|      0|                              data->set.str[STRING_DEFAULT_PROTOCOL],
 1518|      0|                              Curl_bufref_ptr(&data->state.url));
 1519|      0|    if(!url) {
  ------------------
  |  Branch (1519:8): [True: 0, False: 0]
  ------------------
 1520|      0|      result = CURLE_OUT_OF_MEMORY;
 1521|      0|      goto out;
 1522|      0|    }
 1523|      0|    Curl_bufref_set(&data->state.url, url, 0, curl_free);
 1524|      0|  }
 1525|       |
 1526|  11.1k|  if(!use_set_uh) {
  ------------------
  |  Branch (1526:6): [True: 11.1k, False: 0]
  ------------------
 1527|  11.1k|    char *newurl;
 1528|  11.1k|    uc = curl_url_set(uh, CURLUPART_URL, Curl_bufref_ptr(&data->state.url),
 1529|  11.1k|                      (unsigned int)(CURLU_GUESS_SCHEME |
  ------------------
  |  |   96|  11.1k|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
 1530|  11.1k|                       CURLU_NON_SUPPORT_SCHEME |
  ------------------
  |  |   90|  11.1k|#define CURLU_NON_SUPPORT_SCHEME (1 << 3) /* allow non-supported scheme */
  ------------------
 1531|  11.1k|                       (data->set.disallow_username_in_url ?
  ------------------
  |  Branch (1531:25): [True: 0, False: 11.1k]
  ------------------
 1532|  11.1k|                        CURLU_DISALLOW_USER : 0) |
  ------------------
  |  |   92|      0|#define CURLU_DISALLOW_USER (1 << 5)      /* no user+password allowed */
  ------------------
 1533|  11.1k|                       (data->set.path_as_is ? CURLU_PATH_AS_IS : 0)));
  ------------------
  |  |   91|      0|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  ------------------
  |  Branch (1533:25): [True: 0, False: 11.1k]
  ------------------
 1534|  11.1k|    if(uc) {
  ------------------
  |  Branch (1534:8): [True: 579, False: 10.5k]
  ------------------
 1535|    579|      failf(data, "URL rejected: %s", curl_url_strerror(uc));
  ------------------
  |  |   62|    579|#define failf Curl_failf
  ------------------
 1536|    579|      result = Curl_uc_to_curlcode(uc);
 1537|    579|      goto out;
 1538|    579|    }
 1539|       |
 1540|       |    /* after it was parsed, get the generated normalized version */
 1541|  10.5k|    uc = curl_url_get(uh, CURLUPART_URL, &newurl, CURLU_GET_EMPTY);
  ------------------
  |  |  102|  10.5k|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
 1542|  10.5k|    if(uc) {
  ------------------
  |  Branch (1542:8): [True: 0, False: 10.5k]
  ------------------
 1543|      0|      result = Curl_uc_to_curlcode(uc);
 1544|      0|      goto out;
 1545|      0|    }
 1546|  10.5k|    Curl_bufref_set(&data->state.url, newurl, 0, curl_free);
 1547|  10.5k|  }
 1548|       |
 1549|  10.5k|#ifdef USE_IPV6
 1550|  10.5k|  scope_id = data->set.scope_id;
 1551|  10.5k|#endif
 1552|       |
 1553|       |  /* `uh` is now as the connection should use it, probably. */
 1554|  10.5k|  result = Curl_peer_from_url(uh, data, port_override, scope_id,
 1555|  10.5k|                              &data->state.up, &conn->origin);
 1556|  10.5k|  if(result)
  ------------------
  |  Branch (1556:6): [True: 139, False: 10.4k]
  ------------------
 1557|    139|    goto out;
 1558|       |
 1559|  10.4k|  result = hsts_upgrade(data, conn, uh, port_override, scope_id);
 1560|  10.4k|  if(result)
  ------------------
  |  Branch (1560:6): [True: 0, False: 10.4k]
  ------------------
 1561|      0|    goto out;
 1562|       |
 1563|       |  /* now that the origin is fixed, check and set the connection scheme */
 1564|  10.4k|  result = url_set_conn_scheme(data, conn, conn->origin->scheme);
 1565|  10.4k|  if(result)
  ------------------
  |  Branch (1565:6): [True: 93, False: 10.3k]
  ------------------
 1566|     93|    goto out;
 1567|       |
 1568|       |  /* When the transfers initial_origin is not set, this is the initial
 1569|       |   * request. Remember this starting point. This is used to
 1570|       |   * select credentials. */
 1571|  10.3k|  if(!data->state.initial_origin)
  ------------------
  |  Branch (1571:6): [True: 7.02k, False: 3.30k]
  ------------------
 1572|  7.02k|    Curl_peer_link(&data->state.initial_origin, conn->origin);
 1573|       |
 1574|  10.3k|  result = url_set_data_creds(data, conn, uh);
 1575|  10.3k|  if(result)
  ------------------
  |  Branch (1575:6): [True: 1, False: 10.3k]
  ------------------
 1576|      1|    goto out;
 1577|       |
 1578|  10.3k|  uc = curl_url_get(uh, CURLUPART_OPTIONS, &data->state.up.options,
 1579|  10.3k|                    CURLU_URLDECODE);
  ------------------
  |  |   93|  10.3k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  ------------------
 1580|  10.3k|  if(!uc) {
  ------------------
  |  Branch (1580:6): [True: 0, False: 10.3k]
  ------------------
 1581|      0|    conn->options = curlx_strdup(data->state.up.options);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1582|      0|    if(!conn->options) {
  ------------------
  |  Branch (1582:8): [True: 0, False: 0]
  ------------------
 1583|      0|      result = CURLE_OUT_OF_MEMORY;
 1584|      0|      goto out;
 1585|      0|    }
 1586|      0|  }
 1587|  10.3k|  else if(uc != CURLUE_NO_OPTIONS) {
  ------------------
  |  Branch (1587:11): [True: 0, False: 10.3k]
  ------------------
 1588|      0|    result = Curl_uc_to_curlcode(uc);
 1589|      0|    goto out;
 1590|      0|  }
 1591|       |
 1592|  10.3k|  uc = curl_url_get(uh, CURLUPART_PATH, &data->state.up.path, CURLU_URLENCODE);
  ------------------
  |  |   94|  10.3k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 1593|  10.3k|  if(uc) {
  ------------------
  |  Branch (1593:6): [True: 0, False: 10.3k]
  ------------------
 1594|      0|    result = Curl_uc_to_curlcode(uc);
 1595|      0|    goto out;
 1596|      0|  }
 1597|       |
 1598|  10.3k|  uc = curl_url_get(uh, CURLUPART_QUERY, &data->state.up.query,
 1599|  10.3k|                    CURLU_GET_EMPTY);
  ------------------
  |  |  102|  10.3k|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
 1600|  10.3k|  if(uc && (uc != CURLUE_NO_QUERY)) {
  ------------------
  |  Branch (1600:6): [True: 9.80k, False: 523]
  |  Branch (1600:12): [True: 0, False: 9.80k]
  ------------------
 1601|      0|    result = CURLE_OUT_OF_MEMORY;
 1602|      0|    goto out;
 1603|      0|  }
 1604|       |
 1605|  10.3k|#ifdef USE_IPV6
 1606|       |  /* Fill in the conn parts that do not use authority, yet. */
 1607|  10.3k|  conn->scope_id = conn->origin->scopeid;
 1608|  10.3k|#endif
 1609|       |
 1610|  10.3k|#ifdef CURLVERBOSE
 1611|  10.3k|  Curl_creds_trace(data, data->state.creds, "transfer credentials");
 1612|  10.3k|#endif
 1613|       |
 1614|  11.1k|out:
 1615|  11.1k|  return result;
 1616|  10.3k|}
url.c:hsts_upgrade:
 1392|  10.4k|{
 1393|       |  /* HSTS upgrade */
 1394|  10.4k|  if(data->hsts && (conn->origin->scheme == &Curl_scheme_http) &&
  ------------------
  |  Branch (1394:6): [True: 10.4k, False: 0]
  |  Branch (1394:20): [True: 8.74k, False: 1.67k]
  ------------------
 1395|  8.74k|     Curl_hsts_applies(data->hsts, conn->origin)) {
  ------------------
  |  Branch (1395:6): [True: 0, False: 8.74k]
  ------------------
 1396|      0|    char *url;
 1397|      0|    CURLUcode uc;
 1398|      0|    CURLcode result;
 1399|       |
 1400|      0|    curlx_safefree(data->state.up.scheme);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1401|      0|    uc = curl_url_set(uh, CURLUPART_SCHEME, "https", 0);
 1402|      0|    if(uc)
  ------------------
  |  Branch (1402:8): [True: 0, False: 0]
  ------------------
 1403|      0|      return Curl_uc_to_curlcode(uc);
 1404|      0|    Curl_bufref_free(&data->state.url);
 1405|       |    /* after update, get the updated version */
 1406|      0|    uc = curl_url_get(uh, CURLUPART_URL, &url, 0);
 1407|      0|    if(uc)
  ------------------
  |  Branch (1407:8): [True: 0, False: 0]
  ------------------
 1408|      0|      return Curl_uc_to_curlcode(uc);
 1409|      0|    Curl_bufref_set(&data->state.url, url, 0, curl_free);
 1410|       |
 1411|      0|    result = Curl_peer_from_url(uh, data, port_override, scope_id,
 1412|      0|                                &data->state.up, &conn->origin);
 1413|      0|    if(result)
  ------------------
  |  Branch (1413:8): [True: 0, False: 0]
  ------------------
 1414|      0|      return result;
 1415|      0|    infof(data, "Switched from HTTP to HTTPS due to HSTS => %s", url);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1416|      0|  }
 1417|  10.4k|  return CURLE_OK;
 1418|  10.4k|}
url.c:url_set_conn_scheme:
 1353|  10.4k|{
 1354|       |  /* URL scheme is usable for connection when it is
 1355|       |   * - allowed
 1356|       |   * - not from a redirect or an allowed redirect protocol */
 1357|  10.4k|  if(scheme->run &&
  ------------------
  |  Branch (1357:6): [True: 10.4k, False: 0]
  ------------------
 1358|  10.4k|     (data->set.allowed_protocols & scheme->protocol) &&
  ------------------
  |  Branch (1358:6): [True: 10.3k, False: 93]
  ------------------
 1359|  10.3k|     (!data->state.this_is_a_follow ||
  ------------------
  |  Branch (1359:7): [True: 7.03k, False: 3.29k]
  ------------------
 1360|  10.3k|       (data->set.redir_protocols & scheme->protocol))) {
  ------------------
  |  Branch (1360:8): [True: 3.29k, False: 0]
  ------------------
 1361|  10.3k|    conn->scheme = conn->given = scheme;
 1362|  10.3k|    return CURLE_OK;
 1363|  10.3k|  }
 1364|     93|  if(scheme->flags & PROTOPT_NO_TRANSFER)
  ------------------
  |  |  239|     93|#define PROTOPT_NO_TRANSFER (1 << 17) /* this protocol is not for transfers */
  ------------------
  |  Branch (1364:6): [True: 0, False: 93]
  ------------------
 1365|      0|    failf(data, "Protocol \"%s\" is not for transfers", scheme->name);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1366|     93|  else
 1367|     93|    failf(data, "Protocol \"%s\" is disabled%s", scheme->name,
  ------------------
  |  |   62|     93|#define failf Curl_failf
  ------------------
 1368|     93|          data->state.this_is_a_follow ? " (in redirect)" : "");
  ------------------
  |  Branch (1368:11): [True: 6, False: 87]
  ------------------
 1369|     93|  return CURLE_UNSUPPORTED_PROTOCOL;
 1370|  10.4k|}
url.c:url_set_data_creds:
 1426|  10.3k|{
 1427|  10.3k|  CURLcode result = CURLE_OK;
 1428|       |
 1429|       |  /* We reset any existing credentials on the transfer. Then
 1430|       |   * set the CURLOPT_* credentials ONLY IF the origin is the initial one. */
 1431|  10.3k|  Curl_creds_unlink(&data->state.creds);
 1432|  10.3k|  if((data->set.str[STRING_USERNAME] ||
  ------------------
  |  Branch (1432:7): [True: 0, False: 10.3k]
  ------------------
 1433|  10.3k|      data->set.str[STRING_PASSWORD] ||
  ------------------
  |  Branch (1433:7): [True: 0, False: 10.3k]
  ------------------
 1434|  10.3k|      data->set.str[STRING_BEARER] ||
  ------------------
  |  Branch (1434:7): [True: 0, False: 10.3k]
  ------------------
 1435|  10.3k|      data->set.str[STRING_SASL_AUTHZID] ||
  ------------------
  |  Branch (1435:7): [True: 0, False: 10.3k]
  ------------------
 1436|  10.3k|      data->set.str[STRING_SERVICE_NAME]) &&
  ------------------
  |  Branch (1436:7): [True: 0, False: 10.3k]
  ------------------
 1437|      0|     Curl_auth_allowed_to_origin(data, conn->origin)) {
  ------------------
  |  Branch (1437:6): [True: 0, False: 0]
  ------------------
 1438|      0|    result = Curl_creds_create(data->set.str[STRING_USERNAME],
 1439|      0|                               data->set.str[STRING_PASSWORD],
 1440|      0|                               data->set.str[STRING_BEARER],
 1441|      0|                               data->set.str[STRING_SASL_AUTHZID],
 1442|      0|                               data->set.str[STRING_SERVICE_NAME],
 1443|      0|                               CREDS_OPTION, &data->state.creds);
  ------------------
  |  |   31|      0|#define CREDS_OPTION 2 /* username/passwd set with a CURLOPT_ */
  ------------------
 1444|      0|    if(result)
  ------------------
  |  Branch (1444:8): [True: 0, False: 0]
  ------------------
 1445|      0|      return result;
 1446|      0|  }
 1447|       |
 1448|       |  /* Extract credentials from the URL only if there are none OR
 1449|       |   * if no CURLOPT_USER was set. */
 1450|  10.3k|  if(!data->state.creds || !Curl_creds_has_user(data->state.creds)) {
  ------------------
  |  |   71|      0|#define Curl_creds_has_user(c)           ((c) && (c)->user[0])
  |  |  ------------------
  |  |  |  Branch (71:43): [True: 0, False: 0]
  |  |  |  Branch (71:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1450:6): [True: 10.3k, False: 0]
  ------------------
 1451|  10.3k|    char *udecoded = NULL;
 1452|  10.3k|    char *pdecoded = NULL;
 1453|  10.3k|    CURLUcode uc;
 1454|       |
 1455|  10.3k|    uc = curl_url_get(uh, CURLUPART_USER, &data->state.up.user, 0);
 1456|  10.3k|    if(uc && (uc != CURLUE_NO_USER)) {
  ------------------
  |  Branch (1456:8): [True: 8.85k, False: 1.46k]
  |  Branch (1456:14): [True: 0, False: 8.85k]
  ------------------
 1457|      0|      result = Curl_uc_to_curlcode(uc);
 1458|      0|      goto out;
 1459|      0|    }
 1460|  10.3k|    uc = curl_url_get(uh, CURLUPART_PASSWORD, &data->state.up.password, 0);
 1461|  10.3k|    if(uc && (uc != CURLUE_NO_PASSWORD)) {
  ------------------
  |  Branch (1461:8): [True: 10.0k, False: 305]
  |  Branch (1461:14): [True: 0, False: 10.0k]
  ------------------
 1462|      0|      result = Curl_uc_to_curlcode(uc);
 1463|      0|      goto out;
 1464|      0|    }
 1465|  10.3k|    if(data->state.up.user) {
  ------------------
  |  Branch (1465:8): [True: 1.46k, False: 8.85k]
  ------------------
 1466|  1.46k|      result = Curl_urldecode(data->state.up.user, 0, &udecoded, NULL,
 1467|  1.46k|                              conn->scheme->flags&PROTOPT_USERPWDCTRL ?
  ------------------
  |  |  232|  1.46k|#define PROTOPT_USERPWDCTRL (1 << 13) /* Allow "control bytes" (< 32 ASCII) in
  ------------------
  |  Branch (1467:31): [True: 1.46k, False: 0]
  ------------------
 1468|  1.46k|                              REJECT_ZERO : REJECT_CTRL);
 1469|  1.46k|    }
 1470|  10.3k|    if(!result && data->state.up.password) {
  ------------------
  |  Branch (1470:8): [True: 10.3k, False: 1]
  |  Branch (1470:19): [True: 305, False: 10.0k]
  ------------------
 1471|    305|      result = Curl_urldecode(data->state.up.password, 0, &pdecoded, NULL,
 1472|    305|                              conn->scheme->flags&PROTOPT_USERPWDCTRL ?
  ------------------
  |  |  232|    305|#define PROTOPT_USERPWDCTRL (1 << 13) /* Allow "control bytes" (< 32 ASCII) in
  ------------------
  |  Branch (1472:31): [True: 305, False: 0]
  ------------------
 1473|    305|                              REJECT_ZERO : REJECT_CTRL);
 1474|    305|    }
 1475|  10.3k|    if(!result)
  ------------------
  |  Branch (1475:8): [True: 10.3k, False: 1]
  ------------------
 1476|  10.3k|      result = Curl_creds_merge(udecoded, pdecoded, data->state.creds,
 1477|  10.3k|                                CREDS_URL, &data->state.creds);
  ------------------
  |  |   30|  10.3k|#define CREDS_URL    1 /* username/passwd from URL */
  ------------------
 1478|  10.3k|out:
 1479|  10.3k|    curlx_free(udecoded);
  ------------------
  |  | 1483|  10.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1480|  10.3k|    curlx_free(pdecoded);
  ------------------
  |  | 1483|  10.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1481|  10.3k|    if(result)
  ------------------
  |  Branch (1481:8): [True: 1, False: 10.3k]
  ------------------
 1482|      1|      failf(data, "error extracting credentials from URL");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 1483|  10.3k|  }
 1484|  10.3k|  return result;
 1485|  10.3k|}
url.c:url_set_conn_peer:
 2387|  10.3k|{
 2388|  10.3k|  CURLcode result = CURLE_OK;
 2389|  10.3k|  const struct Curl_peer *origin = conn->origin;
 2390|  10.3k|  struct Curl_peer *via_peer = NULL;
 2391|  10.3k|  struct curl_slist *conn_to_entry = data->set.connect_to;
 2392|       |
 2393|  10.3k|  DEBUGASSERT(!conn->via_peer);
  ------------------
  |  | 1081|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2393:3): [True: 0, False: 10.3k]
  |  Branch (2393:3): [True: 10.3k, False: 0]
  ------------------
 2394|  10.3k|  Curl_peer_unlink(&conn->via_peer);
 2395|       |
 2396|  20.6k|  while(conn_to_entry && !via_peer) {
  ------------------
  |  Branch (2396:9): [True: 10.3k, False: 10.3k]
  |  Branch (2396:26): [True: 10.3k, False: 0]
  ------------------
 2397|  10.3k|    result = parse_connect_to_string(data, origin, conn_to_entry->data,
 2398|  10.3k|                                     &via_peer);
 2399|  10.3k|    if(result)
  ------------------
  |  Branch (2399:8): [True: 0, False: 10.3k]
  ------------------
 2400|      0|      return result;
 2401|  10.3k|    conn_to_entry = conn_to_entry->next;
 2402|  10.3k|  }
 2403|       |
 2404|  10.3k|#ifndef CURL_DISABLE_ALTSVC
 2405|  10.3k|  if(data->asi && !via_peer &&
  ------------------
  |  Branch (2405:6): [True: 10.3k, False: 0]
  |  Branch (2405:19): [True: 0, False: 10.3k]
  ------------------
 2406|      0|     ((conn->scheme->protocol == CURLPROTO_HTTPS) ||
  ------------------
  |  | 1079|      0|#define CURLPROTO_HTTPS   (1L << 1)
  ------------------
  |  Branch (2406:7): [True: 0, False: 0]
  ------------------
 2407|      0|#ifdef DEBUGBUILD
 2408|       |      /* allow debug builds to circumvent the HTTPS restriction */
 2409|      0|      getenv("CURL_ALTSVC_HTTP")
  ------------------
  |  Branch (2409:7): [True: 0, False: 0]
  ------------------
 2410|       |#else
 2411|       |      0
 2412|       |#endif
 2413|      0|       )) {
 2414|       |    /* no connect_to match, try alt-svc! */
 2415|      0|    enum alpnid srcalpnid = ALPN_none;
 2416|      0|    bool hit = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2417|      0|    struct altsvc *as = NULL;
 2418|      0|    int allowed_alpns = ALPN_none;
 2419|      0|    struct http_negotiation *neg = &data->state.http_neg;
 2420|      0|    bool same_dest = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2421|       |
 2422|      0|    DEBUGF(infof(data, "Alt-svc check wanted=%x, allowed=%x",
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2423|      0|                 neg->wanted, neg->allowed));
 2424|       |#ifdef USE_HTTP3
 2425|       |    if(neg->allowed & CURL_HTTP_V3x)
 2426|       |      allowed_alpns |= ALPN_h3;
 2427|       |#endif
 2428|      0|#ifdef USE_HTTP2
 2429|      0|    if(neg->allowed & CURL_HTTP_V2x)
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (2429:8): [True: 0, False: 0]
  ------------------
 2430|      0|      allowed_alpns |= ALPN_h2;
 2431|      0|#endif
 2432|      0|    if(neg->allowed & CURL_HTTP_V1x)
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (2432:8): [True: 0, False: 0]
  ------------------
 2433|      0|      allowed_alpns |= ALPN_h1;
 2434|      0|    allowed_alpns &= (int)data->asi->flags;
 2435|       |
 2436|      0|    DEBUGF(infof(data, "check Alt-Svc for host '%s'", origin->hostname));
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2437|       |#ifdef USE_HTTP3
 2438|       |    if(!hit && (neg->wanted & CURL_HTTP_V3x)) {
 2439|       |      srcalpnid = ALPN_h3;
 2440|       |      hit = Curl_altsvc_lookup(data->asi,
 2441|       |                               ALPN_h3, origin->hostname,
 2442|       |                               origin->port, /* from */
 2443|       |                               &as /* to */,
 2444|       |                               allowed_alpns, &same_dest);
 2445|       |    }
 2446|       |#endif
 2447|      0|#ifdef USE_HTTP2
 2448|      0|    if(!hit && (neg->wanted & CURL_HTTP_V2x) &&
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (2448:8): [True: 0, False: 0]
  |  Branch (2448:16): [True: 0, False: 0]
  ------------------
 2449|      0|       !neg->h2_prior_knowledge) {
  ------------------
  |  Branch (2449:8): [True: 0, False: 0]
  ------------------
 2450|      0|      srcalpnid = ALPN_h2;
 2451|      0|      hit = Curl_altsvc_lookup(data->asi,
 2452|      0|                               ALPN_h2, origin->hostname,
 2453|      0|                               origin->port, /* from */
 2454|      0|                               &as /* to */,
 2455|      0|                               allowed_alpns, &same_dest);
 2456|      0|    }
 2457|      0|#endif
 2458|      0|    if(!hit && (neg->wanted & CURL_HTTP_V1x) &&
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (2458:8): [True: 0, False: 0]
  |  Branch (2458:16): [True: 0, False: 0]
  ------------------
 2459|      0|       !neg->only_10) {
  ------------------
  |  Branch (2459:8): [True: 0, False: 0]
  ------------------
 2460|      0|      srcalpnid = ALPN_h1;
 2461|      0|      hit = Curl_altsvc_lookup(data->asi,
 2462|      0|                               ALPN_h1, origin->hostname,
 2463|      0|                               origin->port, /* from */
 2464|      0|                               &as /* to */,
 2465|      0|                               allowed_alpns, &same_dest);
 2466|      0|    }
 2467|       |
 2468|      0|    if(hit && same_dest) {
  ------------------
  |  Branch (2468:8): [True: 0, False: 0]
  |  Branch (2468:15): [True: 0, False: 0]
  ------------------
 2469|       |      /* same destination, but more HTTPS version options */
 2470|      0|      switch(as->dst.alpnid) {
 2471|      0|      case ALPN_h1:
  ------------------
  |  Branch (2471:7): [True: 0, False: 0]
  ------------------
 2472|      0|        neg->wanted |= CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 2473|      0|        neg->preferred = CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 2474|      0|        break;
 2475|      0|      case ALPN_h2:
  ------------------
  |  Branch (2475:7): [True: 0, False: 0]
  ------------------
 2476|      0|        neg->wanted |= CURL_HTTP_V2x;
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
 2477|      0|        neg->preferred = CURL_HTTP_V2x;
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
 2478|      0|        break;
 2479|      0|      case ALPN_h3:
  ------------------
  |  Branch (2479:7): [True: 0, False: 0]
  ------------------
 2480|      0|        neg->wanted |= CURL_HTTP_V3x;
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
 2481|      0|        neg->preferred = CURL_HTTP_V3x;
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
 2482|      0|        break;
 2483|      0|      default: /* should not be possible */
  ------------------
  |  Branch (2483:7): [True: 0, False: 0]
  ------------------
 2484|      0|        break;
 2485|      0|      }
 2486|      0|    }
 2487|      0|    else if(hit) {
  ------------------
  |  Branch (2487:13): [True: 0, False: 0]
  ------------------
 2488|      0|      result = Curl_peer_create(data, conn->origin->scheme,
 2489|      0|                                as->dst.host, as->dst.port,
 2490|      0|                                &via_peer);
 2491|      0|      if(result)
  ------------------
  |  Branch (2491:10): [True: 0, False: 0]
  ------------------
 2492|      0|        return result;
 2493|      0|      infof(data, "Alt-svc connecting from [%s]%s:%u to [%s]%s:%u",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2494|      0|            Curl_alpnid2str(srcalpnid), origin->hostname, origin->port,
 2495|      0|            Curl_alpnid2str(as->dst.alpnid),
 2496|      0|            via_peer->hostname, via_peer->port);
 2497|      0|      conn->bits.altused = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2498|      0|      if(srcalpnid != as->dst.alpnid) {
  ------------------
  |  Branch (2498:10): [True: 0, False: 0]
  ------------------
 2499|       |        /* protocol version switch */
 2500|      0|        switch(as->dst.alpnid) {
 2501|      0|        case ALPN_h1:
  ------------------
  |  Branch (2501:9): [True: 0, False: 0]
  ------------------
 2502|      0|          neg->wanted = neg->allowed = CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 2503|      0|          neg->only_10 = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2504|      0|          break;
 2505|      0|        case ALPN_h2:
  ------------------
  |  Branch (2505:9): [True: 0, False: 0]
  ------------------
 2506|      0|          neg->wanted = neg->allowed = CURL_HTTP_V2x;
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
 2507|      0|          break;
 2508|      0|        case ALPN_h3:
  ------------------
  |  Branch (2508:9): [True: 0, False: 0]
  ------------------
 2509|      0|          conn->transport_wanted = TRNSPRT_QUIC;
  ------------------
  |  |  309|      0|#define TRNSPRT_QUIC 5
  ------------------
 2510|      0|          neg->wanted = neg->allowed = CURL_HTTP_V3x;
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
 2511|      0|          break;
 2512|      0|        default: /* should not be possible */
  ------------------
  |  Branch (2512:9): [True: 0, False: 0]
  ------------------
 2513|      0|          break;
 2514|      0|        }
 2515|      0|      }
 2516|      0|    }
 2517|      0|  }
 2518|  10.3k|#endif
 2519|       |
 2520|  10.3k|  if(via_peer)
  ------------------
  |  Branch (2520:6): [True: 10.3k, False: 0]
  ------------------
 2521|  10.3k|    conn->via_peer = via_peer;
 2522|       |
 2523|  10.3k|  return result;
 2524|  10.3k|}
url.c:parse_connect_to_string:
 2329|  10.3k|{
 2330|  10.3k|  CURLcode result = CURLE_OK;
 2331|  10.3k|  const char *ptr = conn_to_line;
 2332|  10.3k|  bool host_match = FALSE;
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 2333|  10.3k|  bool port_match = FALSE;
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 2334|       |
 2335|  10.3k|  *pvia_dest = NULL;
 2336|       |
 2337|  10.3k|  if(*ptr == ':') {
  ------------------
  |  Branch (2337:6): [True: 10.3k, False: 0]
  ------------------
 2338|       |    /* an empty hostname always matches */
 2339|  10.3k|    host_match = TRUE;
  ------------------
  |  | 1055|  10.3k|#define TRUE true
  ------------------
 2340|  10.3k|    ptr++;
 2341|  10.3k|  }
 2342|      0|  else {
 2343|       |    /* check whether the URL's hostname matches. Use the URL hostname
 2344|       |     * when it was an IPv6 address. Otherwise use the connection's hostname
 2345|       |     * that has IDN conversion. */
 2346|      0|    const char *hostname_to_match = (dest->user_hostname[0] == '[') ?
  ------------------
  |  Branch (2346:37): [True: 0, False: 0]
  ------------------
 2347|      0|      dest->user_hostname : dest->hostname;
 2348|      0|    size_t hlen = strlen(hostname_to_match);
 2349|      0|    host_match = curl_strnequal(ptr, hostname_to_match, hlen);
 2350|      0|    ptr += hlen;
 2351|       |
 2352|      0|    host_match = host_match && *ptr == ':';
  ------------------
  |  Branch (2352:18): [True: 0, False: 0]
  |  Branch (2352:32): [True: 0, False: 0]
  ------------------
 2353|      0|    ptr++;
 2354|      0|  }
 2355|       |
 2356|  10.3k|  if(host_match) {
  ------------------
  |  Branch (2356:6): [True: 10.3k, False: 0]
  ------------------
 2357|  10.3k|    if(*ptr == ':') {
  ------------------
  |  Branch (2357:8): [True: 10.3k, False: 0]
  ------------------
 2358|       |      /* an empty port always matches */
 2359|  10.3k|      port_match = TRUE;
  ------------------
  |  | 1055|  10.3k|#define TRUE true
  ------------------
 2360|  10.3k|      ptr++;
 2361|  10.3k|    }
 2362|      0|    else {
 2363|       |      /* check whether the URL's port matches */
 2364|      0|      const char *ptr_next = strchr(ptr, ':');
 2365|      0|      if(ptr_next) {
  ------------------
  |  Branch (2365:10): [True: 0, False: 0]
  ------------------
 2366|      0|        curl_off_t port_to_match;
 2367|      0|        if(!curlx_str_number(&ptr, &port_to_match, 0xffff) &&
  ------------------
  |  Branch (2367:12): [True: 0, False: 0]
  ------------------
 2368|      0|           ((uint16_t)port_to_match == dest->port)) {
  ------------------
  |  Branch (2368:12): [True: 0, False: 0]
  ------------------
 2369|      0|          port_match = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2370|      0|        }
 2371|      0|        ptr = ptr_next + 1;
 2372|      0|      }
 2373|      0|    }
 2374|  10.3k|  }
 2375|       |
 2376|  10.3k|  if(host_match && port_match && ptr && *ptr)
  ------------------
  |  Branch (2376:6): [True: 10.3k, False: 0]
  |  Branch (2376:20): [True: 10.3k, False: 0]
  |  Branch (2376:34): [True: 10.3k, False: 0]
  |  Branch (2376:41): [True: 10.3k, False: 0]
  ------------------
 2377|  10.3k|    result = Curl_peer_from_connect_to(data, dest, ptr, pvia_dest);
 2378|       |
 2379|  10.3k|  return result;
 2380|  10.3k|}
url.c:url_set_conn_proxies:
 1913|  10.3k|{
 1914|  10.3k|  char *proxy = NULL;
 1915|  10.3k|  char *pre_proxy = NULL;
 1916|  10.3k|  char *no_proxy = NULL;
 1917|  10.3k|  CURLcode result = CURLE_OK;
 1918|       |
 1919|       |  /*************************************************************
 1920|       |   * Detect what (if any) proxy to use
 1921|       |   *************************************************************/
 1922|  10.3k|  if(data->set.str[STRING_PROXY]) {
  ------------------
  |  Branch (1922:6): [True: 0, False: 10.3k]
  ------------------
 1923|      0|    proxy = curlx_strdup(data->set.str[STRING_PROXY]);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1924|       |    /* if global proxy is set, this is it */
 1925|      0|    if(!proxy) {
  ------------------
  |  Branch (1925:8): [True: 0, False: 0]
  ------------------
 1926|      0|      failf(data, "memory shortage");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1927|      0|      result = CURLE_OUT_OF_MEMORY;
 1928|      0|      goto out;
 1929|      0|    }
 1930|      0|  }
 1931|       |
 1932|  10.3k|  if(data->set.str[STRING_PRE_PROXY]) {
  ------------------
  |  Branch (1932:6): [True: 0, False: 10.3k]
  ------------------
 1933|      0|    pre_proxy = curlx_strdup(data->set.str[STRING_PRE_PROXY]);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1934|       |    /* if global socks proxy is set, this is it */
 1935|      0|    if(!pre_proxy) {
  ------------------
  |  Branch (1935:8): [True: 0, False: 0]
  ------------------
 1936|      0|      failf(data, "memory shortage");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1937|      0|      result = CURLE_OUT_OF_MEMORY;
 1938|      0|      goto out;
 1939|      0|    }
 1940|      0|  }
 1941|       |
 1942|  10.3k|  if(!data->set.str[STRING_NOPROXY]) {
  ------------------
  |  Branch (1942:6): [True: 10.3k, False: 0]
  ------------------
 1943|  10.3k|    const char *p = "no_proxy";
 1944|  10.3k|    no_proxy = curl_getenv(p);
 1945|  10.3k|    if(!no_proxy) {
  ------------------
  |  Branch (1945:8): [True: 10.3k, False: 0]
  ------------------
 1946|  10.3k|      p = "NO_PROXY";
 1947|  10.3k|      no_proxy = curl_getenv(p);
 1948|  10.3k|    }
 1949|  10.3k|    if(no_proxy) {
  ------------------
  |  Branch (1949:8): [True: 0, False: 10.3k]
  ------------------
 1950|      0|      infof(data, "Uses proxy env variable %s == '%s'", p, no_proxy);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1951|      0|    }
 1952|  10.3k|  }
 1953|       |
 1954|  10.3k|  if(Curl_check_noproxy(conn->origin->hostname, data->set.str[STRING_NOPROXY] ?
  ------------------
  |  Branch (1954:6): [True: 0, False: 10.3k]
  |  Branch (1954:49): [True: 0, False: 10.3k]
  ------------------
 1955|  10.3k|                        data->set.str[STRING_NOPROXY] : no_proxy)) {
 1956|      0|    curlx_safefree(proxy);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1957|      0|    curlx_safefree(pre_proxy);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1958|      0|  }
 1959|  10.3k|#ifndef CURL_DISABLE_HTTP
 1960|  10.3k|  else if(!proxy && !pre_proxy)
  ------------------
  |  Branch (1960:11): [True: 10.3k, False: 0]
  |  Branch (1960:21): [True: 10.3k, False: 0]
  ------------------
 1961|       |    /* if the host is not in the noproxy list, detect proxy. */
 1962|  10.3k|    proxy = url_detect_proxy(data, conn);
 1963|  10.3k|#endif /* CURL_DISABLE_HTTP */
 1964|  10.3k|  curlx_safefree(no_proxy);
  ------------------
  |  | 1327|  10.3k|  do {                      \
  |  | 1328|  10.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  10.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  10.3k|    (ptr) = NULL;           \
  |  | 1330|  10.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
 1965|       |
 1966|  10.3k|  if(proxy && (!*proxy || (conn->scheme->flags & PROTOPT_NONETWORK))) {
  ------------------
  |  |  215|      0|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (1966:6): [True: 0, False: 10.3k]
  |  Branch (1966:16): [True: 0, False: 0]
  |  Branch (1966:27): [True: 0, False: 0]
  ------------------
 1967|      0|    curlx_safefree(proxy);  /* Do not bother with an empty proxy string
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1968|       |                               or if the protocol does not work with network */
 1969|      0|  }
 1970|  10.3k|  if(pre_proxy && (!*pre_proxy ||
  ------------------
  |  Branch (1970:6): [True: 0, False: 10.3k]
  |  Branch (1970:20): [True: 0, False: 0]
  ------------------
 1971|      0|                    (conn->scheme->flags & PROTOPT_NONETWORK))) {
  ------------------
  |  |  215|      0|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (1971:21): [True: 0, False: 0]
  ------------------
 1972|      0|    curlx_safefree(pre_proxy);  /* Do not bother with an empty socks proxy
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1973|       |                                   string or if the protocol does not work
 1974|       |                                   with network */
 1975|      0|  }
 1976|       |
 1977|       |  /***********************************************************************
 1978|       |   * If this is supposed to use a proxy, we need to figure out the proxy host
 1979|       |   * name, proxy type and port number, so that we can reuse an existing
 1980|       |   * connection that may exist registered to the same proxy host.
 1981|       |   ***********************************************************************/
 1982|  10.3k|  if(proxy || pre_proxy) {
  ------------------
  |  Branch (1982:6): [True: 0, False: 10.3k]
  |  Branch (1982:15): [True: 0, False: 10.3k]
  ------------------
 1983|      0|    if(pre_proxy) {
  ------------------
  |  Branch (1983:8): [True: 0, False: 0]
  ------------------
 1984|      0|      result = parse_proxy(data, pre_proxy, TRUE, &conn->socks_proxy);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1985|      0|      if(result)
  ------------------
  |  Branch (1985:10): [True: 0, False: 0]
  ------------------
 1986|      0|        goto out;
 1987|      0|    }
 1988|       |
 1989|      0|    if(proxy) {
  ------------------
  |  Branch (1989:8): [True: 0, False: 0]
  ------------------
 1990|      0|      result = parse_proxy(data, proxy, FALSE, &conn->http_proxy);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1991|      0|      if(result)
  ------------------
  |  Branch (1991:10): [True: 0, False: 0]
  ------------------
 1992|      0|        goto out;
 1993|      0|      switch(conn->http_proxy.proxytype) {
 1994|      0|      case CURLPROXY_SOCKS4:
  ------------------
  |  |  798|      0|#define CURLPROXY_SOCKS4          4L /* support added in 7.15.2, enum existed
  ------------------
  |  Branch (1994:7): [True: 0, False: 0]
  ------------------
 1995|      0|      case CURLPROXY_SOCKS4A:
  ------------------
  |  |  801|      0|#define CURLPROXY_SOCKS4A         6L /* added in 7.18.0 */
  ------------------
  |  Branch (1995:7): [True: 0, False: 0]
  ------------------
 1996|      0|      case CURLPROXY_SOCKS5:
  ------------------
  |  |  800|      0|#define CURLPROXY_SOCKS5          5L /* added in 7.10 */
  ------------------
  |  Branch (1996:7): [True: 0, False: 0]
  ------------------
 1997|      0|      case CURLPROXY_SOCKS5_HOSTNAME:
  ------------------
  |  |  802|      0|#define CURLPROXY_SOCKS5_HOSTNAME 7L /* Use the SOCKS5 protocol but pass along
  ------------------
  |  Branch (1997:7): [True: 0, False: 0]
  ------------------
 1998|       |        /* Whoops, it's not a HTTP proxy */
 1999|      0|        if(conn->socks_proxy.peer) {
  ------------------
  |  Branch (1999:12): [True: 0, False: 0]
  ------------------
 2000|       |          /* and we already have a SOCKS pre-proxy. Cannot have both */
 2001|      0|          failf(data, "Having a SOCKS pre-proxy and proxy is not "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2002|      0|                "supported with \'%s\'", proxy);
 2003|      0|          result = CURLE_COULDNT_RESOLVE_PROXY;
 2004|      0|          goto out;
 2005|      0|        }
 2006|       |        /* switch */
 2007|      0|        conn->socks_proxy = conn->http_proxy;
 2008|      0|        memset(&conn->http_proxy, 0, sizeof(conn->http_proxy));
 2009|      0|        break;
 2010|      0|      default:
  ------------------
  |  Branch (2010:7): [True: 0, False: 0]
  ------------------
 2011|      0|        break;
 2012|      0|      }
 2013|      0|    }
 2014|       |
 2015|      0|    if(conn->http_proxy.peer) {
  ------------------
  |  Branch (2015:8): [True: 0, False: 0]
  ------------------
 2016|       |#ifdef CURL_DISABLE_HTTP
 2017|       |      /* asking for an HTTP proxy is a bit funny when HTTP is disabled... */
 2018|       |      result = CURLE_UNSUPPORTED_PROTOCOL;
 2019|       |      goto out;
 2020|       |#else
 2021|      0|#ifndef CURL_DISABLE_DIGEST_AUTH
 2022|      0|      if(!Curl_safecmp(data->state.envproxy, proxy)) {
  ------------------
  |  Branch (2022:10): [True: 0, False: 0]
  ------------------
 2023|       |        /* proxy changed */
 2024|      0|        Curl_auth_digest_cleanup(&data->state.proxydigest);
 2025|      0|        curlx_free(data->state.envproxy);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2026|      0|        data->state.envproxy = curlx_strdup(proxy);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 2027|      0|      }
 2028|      0|#endif
 2029|      0|      if(conn->scheme->flags & PROTOPT_HTTP_PROXY_TUNNEL) {
  ------------------
  |  |  240|      0|#define PROTOPT_HTTP_PROXY_TUNNEL (1 << 18) /* Using this protocol with a
  ------------------
  |  Branch (2029:10): [True: 0, False: 0]
  ------------------
 2030|      0|        conn->bits.tunnel_proxy = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2031|      0|      }
 2032|      0|      else if(!(conn->scheme->protocol & PROTO_FAMILY_HTTP)) {
  ------------------
  |  |   84|      0|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1078|      0|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1079|      0|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|      0|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|      0|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|      0|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (2032:15): [True: 0, False: 0]
  ------------------
 2033|       |        /* force this connection's protocol to become HTTP if compatible */
 2034|      0|        if((conn->scheme->flags & PROTOPT_PROXY_AS_HTTP) &&
  ------------------
  |  |  227|      0|#define PROTOPT_PROXY_AS_HTTP (1 << 11) /* allow this non-HTTP scheme over a
  ------------------
  |  Branch (2034:12): [True: 0, False: 0]
  ------------------
 2035|      0|           !conn->bits.tunnel_proxy)
  ------------------
  |  Branch (2035:12): [True: 0, False: 0]
  ------------------
 2036|      0|          conn->scheme = &Curl_scheme_http;
 2037|      0|        else
 2038|       |          /* if not converting to HTTP over the proxy, enforce tunneling */
 2039|      0|          conn->bits.tunnel_proxy = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2040|      0|      }
 2041|      0|#endif
 2042|      0|    }
 2043|      0|    else
 2044|      0|      conn->bits.tunnel_proxy = FALSE; /* no tunneling if not HTTP */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2045|      0|  }
 2046|       |
 2047|  10.3k|  conn->bits.socksproxy = !!conn->socks_proxy.peer;
 2048|  10.3k|  conn->bits.httpproxy = !!conn->http_proxy.peer;
 2049|  10.3k|  conn->bits.proxy = conn->bits.httpproxy || conn->bits.socksproxy;
  ------------------
  |  Branch (2049:22): [True: 0, False: 10.3k]
  |  Branch (2049:46): [True: 0, False: 10.3k]
  ------------------
 2050|       |
 2051|  10.3k|  if(!conn->bits.proxy) {
  ------------------
  |  Branch (2051:6): [True: 10.3k, False: 0]
  ------------------
 2052|       |    /* we are not using the proxy after all... */
 2053|  10.3k|    conn->bits.proxy = FALSE;
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 2054|  10.3k|    conn->bits.httpproxy = FALSE;
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 2055|  10.3k|    conn->bits.socksproxy = FALSE;
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 2056|  10.3k|    conn->bits.tunnel_proxy = FALSE;
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 2057|       |    /* CURLPROXY_HTTPS does not have its own flag in conn->bits, yet we need
 2058|       |       to signal that CURLPROXY_HTTPS is not used for this connection */
 2059|  10.3k|    conn->http_proxy.proxytype = CURLPROXY_HTTP;
  ------------------
  |  |  790|  10.3k|#define CURLPROXY_HTTP            0L /* added in 7.10, new in 7.19.4 default is
  ------------------
 2060|  10.3k|  }
 2061|       |
 2062|  10.3k|out:
 2063|       |
 2064|  10.3k|  curlx_free(pre_proxy);
  ------------------
  |  | 1483|  10.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2065|  10.3k|  curlx_free(proxy);
  ------------------
  |  | 1483|  10.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2066|  10.3k|  return result;
 2067|  10.3k|}
url.c:url_detect_proxy:
 1707|  10.3k|{
 1708|  10.3k|  char *proxy = NULL;
 1709|       |
 1710|       |  /* If proxy was not specified, we check for default proxy environment
 1711|       |   * variables, to enable i.e Lynx compliance:
 1712|       |   *
 1713|       |   * http_proxy=http://some.server.dom:port/
 1714|       |   * https_proxy=http://some.server.dom:port/
 1715|       |   * ftp_proxy=http://some.server.dom:port/
 1716|       |   * no_proxy=domain1.dom,host.domain2.dom
 1717|       |   *   (a comma-separated list of hosts which should
 1718|       |   *   not be proxied, or an asterisk to override
 1719|       |   *   all proxy variables)
 1720|       |   * all_proxy=http://some.server.dom:port/
 1721|       |   *   (seems to exist for the CERN www lib. Probably
 1722|       |   *   the first to check for.)
 1723|       |   *
 1724|       |   * For compatibility, the all-uppercase versions of these variables are
 1725|       |   * checked if the lowercase versions do not exist.
 1726|       |   */
 1727|  10.3k|  char proxy_env[20];
 1728|  10.3k|  const char *envp;
 1729|  10.3k|  VERBOSE(envp = proxy_env);
  ------------------
  |  | 1618|  10.3k|#define VERBOSE(x) x
  ------------------
 1730|       |
 1731|  10.3k|  curl_msnprintf(proxy_env, sizeof(proxy_env), "%s_proxy",
 1732|  10.3k|                 conn->scheme->name);
 1733|       |
 1734|       |  /* read the protocol proxy: */
 1735|  10.3k|  proxy = curl_getenv(proxy_env);
 1736|       |
 1737|       |  /*
 1738|       |   * We do not try the uppercase version of HTTP_PROXY because of
 1739|       |   * security reasons:
 1740|       |   *
 1741|       |   * When curl is used in a webserver application
 1742|       |   * environment (cgi or php), this environment variable can
 1743|       |   * be controlled by the web server user by setting the
 1744|       |   * http header 'Proxy:' to some value.
 1745|       |   *
 1746|       |   * This can cause 'internal' http/ftp requests to be
 1747|       |   * arbitrarily redirected by any external attacker.
 1748|       |   */
 1749|  10.3k|  if(!proxy && !curl_strequal("http_proxy", proxy_env)) {
  ------------------
  |  Branch (1749:6): [True: 10.3k, False: 0]
  |  Branch (1749:16): [True: 1.58k, False: 8.74k]
  ------------------
 1750|       |    /* There was no lowercase variable, try the uppercase version: */
 1751|  1.58k|    Curl_strntoupper(proxy_env, proxy_env, sizeof(proxy_env));
 1752|  1.58k|    proxy = curl_getenv(proxy_env);
 1753|  1.58k|  }
 1754|       |
 1755|  10.3k|  if(!proxy) {
  ------------------
  |  Branch (1755:6): [True: 10.3k, False: 0]
  ------------------
 1756|  10.3k|#ifndef CURL_DISABLE_WEBSOCKETS
 1757|       |    /* websocket proxy fallbacks */
 1758|  10.3k|    if(curl_strequal("ws_proxy", proxy_env)) {
  ------------------
  |  Branch (1758:8): [True: 1.35k, False: 8.97k]
  ------------------
 1759|  1.35k|      proxy = curl_getenv("http_proxy");
 1760|  1.35k|    }
 1761|  8.97k|    else if(curl_strequal("wss_proxy", proxy_env)) {
  ------------------
  |  Branch (1761:13): [True: 229, False: 8.74k]
  ------------------
 1762|    229|      proxy = curl_getenv("https_proxy");
 1763|    229|      if(!proxy)
  ------------------
  |  Branch (1763:10): [True: 229, False: 0]
  ------------------
 1764|    229|        proxy = curl_getenv("HTTPS_PROXY");
 1765|    229|    }
 1766|  10.3k|    if(!proxy) {
  ------------------
  |  Branch (1766:8): [True: 10.3k, False: 0]
  ------------------
 1767|  10.3k|#endif
 1768|  10.3k|      envp = "all_proxy";
 1769|  10.3k|      proxy = curl_getenv(envp); /* default proxy to use */
 1770|  10.3k|      if(!proxy) {
  ------------------
  |  Branch (1770:10): [True: 10.3k, False: 0]
  ------------------
 1771|  10.3k|        envp = "ALL_PROXY";
 1772|  10.3k|        proxy = curl_getenv(envp);
 1773|  10.3k|      }
 1774|  10.3k|#ifndef CURL_DISABLE_WEBSOCKETS
 1775|  10.3k|    }
 1776|  10.3k|#endif
 1777|  10.3k|  }
 1778|  10.3k|  if(proxy)
  ------------------
  |  Branch (1778:6): [True: 0, False: 10.3k]
  ------------------
 1779|      0|    infof(data, "Uses proxy env variable %s == '%s'", envp, proxy);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1780|       |
 1781|  10.3k|  return proxy;
 1782|  10.3k|}
url.c:override_login:
 2185|  10.3k|{
 2186|  10.3k|  char **optionsp = &conn->options;
 2187|  10.3k|#ifndef CURL_DISABLE_NETRC
 2188|  10.3k|  struct Curl_creds *ncreds_out = NULL;
 2189|  10.3k|#endif
 2190|  10.3k|  CURLcode result = CURLE_OK;
 2191|       |
 2192|  10.3k|  if(data->set.str[STRING_OPTIONS]) {
  ------------------
  |  Branch (2192:6): [True: 0, False: 10.3k]
  ------------------
 2193|      0|    curlx_free(*optionsp);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2194|      0|    *optionsp = curlx_strdup(data->set.str[STRING_OPTIONS]);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 2195|      0|    if(!*optionsp) {
  ------------------
  |  Branch (2195:8): [True: 0, False: 0]
  ------------------
 2196|      0|      result = CURLE_OUT_OF_MEMORY;
 2197|      0|      goto out;
 2198|      0|    }
 2199|      0|  }
 2200|       |
 2201|  10.3k|#ifndef CURL_DISABLE_NETRC
 2202|  10.3k|  if(data->set.use_netrc) { /* not CURL_NETRC_IGNORED */
  ------------------
  |  Branch (2202:6): [True: 0, False: 10.3k]
  ------------------
 2203|      0|    struct Curl_creds *ncreds_in = NULL;
 2204|      0|    bool scan_netrc = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2205|      0|    NETRCcode ret;
 2206|      0|    CURLUcode uc;
 2207|       |
 2208|      0|    if(data->state.creds) {
  ------------------
  |  Branch (2208:8): [True: 0, False: 0]
  ------------------
 2209|      0|      switch(data->state.creds->source) {
 2210|      0|      case CREDS_OPTION:
  ------------------
  |  |   31|      0|#define CREDS_OPTION 2 /* username/passwd set with a CURLOPT_ */
  ------------------
  |  Branch (2210:7): [True: 0, False: 0]
  ------------------
 2211|       |        /* we never override credentials set via CURLOPT_*, leave. */
 2212|      0|        scan_netrc = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2213|      0|        break;
 2214|      0|      case CREDS_URL: /* only apply when netrc is not required */
  ------------------
  |  |   30|      0|#define CREDS_URL    1 /* username/passwd from URL */
  ------------------
  |  Branch (2214:7): [True: 0, False: 0]
  ------------------
 2215|      0|        if(data->set.use_netrc == CURL_NETRC_REQUIRED) {
  ------------------
  |  | 2359|      0|#define CURL_NETRC_REQUIRED 2L /* A user:password in the URL is ignored.
  ------------------
  |  Branch (2215:12): [True: 0, False: 0]
  ------------------
 2216|       |          /* We ignore password from URL */
 2217|      0|          ncreds_in = data->state.creds;
 2218|      0|        }
 2219|      0|        else if(!Curl_creds_has_user(data->state.creds) ||
  ------------------
  |  |   71|      0|#define Curl_creds_has_user(c)           ((c) && (c)->user[0])
  |  |  ------------------
  |  |  |  Branch (71:43): [True: 0, False: 0]
  |  |  |  Branch (71:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2220|      0|                !Curl_creds_has_passwd(data->state.creds)) {
  ------------------
  |  |   72|      0|#define Curl_creds_has_passwd(c)         ((c) && (c)->passwd[0])
  |  |  ------------------
  |  |  |  Branch (72:43): [True: 0, False: 0]
  |  |  |  Branch (72:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2221|       |          /* We use netrc to complete what is missing */
 2222|      0|          ncreds_in = data->state.creds;
 2223|      0|        }
 2224|      0|        else
 2225|      0|          scan_netrc = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2226|      0|        break;
 2227|      0|      default: /* ignore credentials from other sources */
  ------------------
  |  Branch (2227:7): [True: 0, False: 0]
  ------------------
 2228|      0|        break;
 2229|      0|      }
 2230|      0|    }
 2231|       |
 2232|      0|    if(!scan_netrc)
  ------------------
  |  Branch (2232:8): [True: 0, False: 0]
  ------------------
 2233|      0|      goto out;
 2234|       |
 2235|      0|    ret = Curl_netrc_scan(data, &data->state.netrc,
 2236|      0|                          conn->origin->hostname,
 2237|      0|                          Curl_creds_user(ncreds_in),
  ------------------
  |  |   75|      0|#define Curl_creds_user(c)               ((c) ? (c)->user : "")
  |  |  ------------------
  |  |  |  Branch (75:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2238|      0|                          data->set.str[STRING_NETRC_FILE],
 2239|      0|                          &ncreds_out);
 2240|      0|    DEBUGASSERT(!ret || !ncreds_out);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2240:5): [True: 0, False: 0]
  |  Branch (2240:5): [True: 0, False: 0]
  |  Branch (2240:5): [True: 0, False: 0]
  |  Branch (2240:5): [True: 0, False: 0]
  ------------------
 2241|      0|    if(ret == NETRC_OUT_OF_MEMORY) {
  ------------------
  |  Branch (2241:8): [True: 0, False: 0]
  ------------------
 2242|      0|      result = CURLE_OUT_OF_MEMORY;
 2243|      0|      goto out;
 2244|      0|    }
 2245|      0|    else if(ret && ((ret == NETRC_NO_MATCH) ||
  ------------------
  |  Branch (2245:13): [True: 0, False: 0]
  |  Branch (2245:21): [True: 0, False: 0]
  ------------------
 2246|      0|                    (data->set.use_netrc == CURL_NETRC_OPTIONAL))) {
  ------------------
  |  | 2357|      0|#define CURL_NETRC_OPTIONAL 1L /* A user:password in the URL is preferred
  ------------------
  |  Branch (2246:21): [True: 0, False: 0]
  ------------------
 2247|      0|      infof(data, "Could not find host %s in the %s file; using defaults",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2248|      0|            conn->origin->hostname,
 2249|      0|            (data->set.str[STRING_NETRC_FILE] ?
 2250|      0|             data->set.str[STRING_NETRC_FILE] : ".netrc"));
 2251|      0|    }
 2252|      0|    else if(ret) {
  ------------------
  |  Branch (2252:13): [True: 0, False: 0]
  ------------------
 2253|      0|      const char *m = Curl_netrc_strerror(ret);
 2254|      0|      failf(data, ".netrc error: %s", m);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2255|      0|      result = CURLE_READ_ERROR;
 2256|      0|      goto out;
 2257|      0|    }
 2258|      0|    else if(ncreds_out) {
  ------------------
  |  Branch (2258:13): [True: 0, False: 0]
  ------------------
 2259|      0|      if(!(conn->scheme->flags & PROTOPT_USERPWDCTRL)) {
  ------------------
  |  |  232|      0|#define PROTOPT_USERPWDCTRL (1 << 13) /* Allow "control bytes" (< 32 ASCII) in
  ------------------
  |  Branch (2259:10): [True: 0, False: 0]
  ------------------
 2260|       |        /* if the protocol cannot handle control codes in credentials, make
 2261|       |           sure there are none */
 2262|      0|        if(str_has_ctrl(ncreds_out->user) ||
  ------------------
  |  Branch (2262:12): [True: 0, False: 0]
  ------------------
 2263|      0|           str_has_ctrl(ncreds_out->passwd)) {
  ------------------
  |  Branch (2263:12): [True: 0, False: 0]
  ------------------
 2264|      0|          failf(data, "control code detected in .netrc credentials");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2265|      0|          result = CURLE_READ_ERROR;
 2266|      0|          goto out;
 2267|      0|        }
 2268|      0|      }
 2269|      0|      CURL_TRC_M(data, "netrc: using credentials for %s as %s",
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2270|      0|                 conn->origin->hostname, ncreds_out->user);
 2271|      0|      result = Curl_creds_merge(ncreds_out->user, ncreds_out->passwd,
 2272|      0|                                data->state.creds, CREDS_NETRC,
  ------------------
  |  |   32|      0|#define CREDS_NETRC  3 /* username/passwd found in netrc */
  ------------------
 2273|      0|                                &data->state.creds);
 2274|      0|      if(result)
  ------------------
  |  Branch (2274:10): [True: 0, False: 0]
  ------------------
 2275|      0|        goto out;
 2276|       |      /* for updated strings, we update them in the URL */
 2277|      0|      uc = curl_url_set(data->state.uh, CURLUPART_USER,
 2278|      0|                        Curl_creds_user(data->state.creds), CURLU_URLENCODE);
  ------------------
  |  |   75|      0|#define Curl_creds_user(c)               ((c) ? (c)->user : "")
  |  |  ------------------
  |  |  |  Branch (75:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                                      Curl_creds_user(data->state.creds), CURLU_URLENCODE);
  ------------------
  |  |   94|      0|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 2279|      0|      if(!uc)
  ------------------
  |  Branch (2279:10): [True: 0, False: 0]
  ------------------
 2280|      0|        uc = curl_url_set(data->state.uh, CURLUPART_PASSWORD,
 2281|      0|                          Curl_creds_passwd(data->state.creds),
  ------------------
  |  |   76|      0|#define Curl_creds_passwd(c)             ((c) ? (c)->passwd : "")
  |  |  ------------------
  |  |  |  Branch (76:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2282|      0|                          CURLU_URLENCODE);
  ------------------
  |  |   94|      0|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 2283|      0|      if(uc)
  ------------------
  |  Branch (2283:10): [True: 0, False: 0]
  ------------------
 2284|      0|        result = Curl_uc_to_curlcode(uc);
 2285|      0|    }
 2286|      0|    else
 2287|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2287:7): [Folded, False: 0]
  |  Branch (2287:7): [Folded, False: 0]
  ------------------
 2288|      0|  }
 2289|  10.3k|#endif
 2290|       |
 2291|  10.3k|out:
 2292|  10.3k|#ifndef CURL_DISABLE_NETRC
 2293|  10.3k|  Curl_creds_unlink(&ncreds_out);
 2294|  10.3k|#endif
 2295|  10.3k|  return result;
 2296|  10.3k|}
url.c:url_set_conn_login:
 2303|  10.3k|{
 2304|       |  /* If our protocol needs a password and we have none, use the defaults */
 2305|  10.3k|  if((conn->scheme->flags & PROTOPT_NEEDSPWD) && !conn->creds) {
  ------------------
  |  |  216|  10.3k|#define PROTOPT_NEEDSPWD (1 << 5)  /* needs a password, and if none is set it
  ------------------
  |  Branch (2305:6): [True: 0, False: 10.3k]
  |  Branch (2305:50): [True: 0, False: 0]
  ------------------
 2306|      0|    if(data->state.creds)
  ------------------
  |  Branch (2306:8): [True: 0, False: 0]
  ------------------
 2307|      0|      Curl_creds_link(&conn->creds, data->state.creds);
 2308|      0|    else
 2309|      0|      return Curl_creds_create(CURL_DEFAULT_USER, CURL_DEFAULT_PASSWORD,
  ------------------
  |  |   29|      0|#define CURL_DEFAULT_USER     "anonymous"
  ------------------
                    return Curl_creds_create(CURL_DEFAULT_USER, CURL_DEFAULT_PASSWORD,
  ------------------
  |  |   30|      0|#define CURL_DEFAULT_PASSWORD "ftp@example.com"
  ------------------
 2310|      0|                               NULL, NULL, NULL, CREDS_NONE, &conn->creds);
  ------------------
  |  |   29|      0|#define CREDS_NONE   0 /* used for default username/passwd */
  ------------------
 2311|      0|  }
 2312|  10.3k|  else if(!(conn->scheme->flags & PROTOPT_CREDSPERREQUEST)) {
  ------------------
  |  |  220|  10.3k|#define PROTOPT_CREDSPERREQUEST (1 << 7) /* requires login credentials per
  ------------------
  |  Branch (2312:11): [True: 0, False: 10.3k]
  ------------------
 2313|       |    /* for protocols that do not handle credentials per request,
 2314|       |     * the connection credentials are set by the initial transfer. */
 2315|      0|    Curl_creds_link(&conn->creds, data->state.creds);
 2316|      0|  }
 2317|       |
 2318|  10.3k|  return CURLE_OK;
 2319|  10.3k|}
url.c:setup_connection_internals:
 1660|  10.3k|{
 1661|  10.3k|  struct Curl_peer *peer = NULL;
 1662|  10.3k|  CURLcode result;
 1663|       |
 1664|  10.3k|  DEBUGF(infof(data, "setup connection, bits.close=%d", conn->bits.close));
  ------------------
  |  | 1067|  72.2k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 10.3k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 10.3k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
 1665|  10.3k|  if(conn->scheme->run->setup_connection) {
  ------------------
  |  Branch (1665:6): [True: 10.3k, False: 0]
  ------------------
 1666|  10.3k|    result = conn->scheme->run->setup_connection(data, conn);
 1667|  10.3k|    if(result)
  ------------------
  |  Branch (1667:8): [True: 0, False: 10.3k]
  ------------------
 1668|      0|      return result;
 1669|  10.3k|  }
 1670|  10.3k|  DEBUGF(infof(data, "setup connection, bits.close=%d", conn->bits.close));
  ------------------
  |  | 1067|  72.2k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 10.3k, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 10.3k]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
 1671|       |
 1672|       |  /* Now create the destination name */
 1673|  10.3k|  peer = Curl_conn_get_destination(conn, FIRSTSOCKET);
  ------------------
  |  |  303|  10.3k|#define FIRSTSOCKET     0
  ------------------
 1674|  10.3k|  if(!peer)
  ------------------
  |  Branch (1674:6): [True: 0, False: 10.3k]
  ------------------
 1675|      0|    return CURLE_FAILED_INIT;
 1676|       |
 1677|       |  /* IPv6 addresses with a scope_id (0 is default == global) have a
 1678|       |   * printable representation with a '%<scope_id>' suffix. */
 1679|  10.3k|  if(peer->ipv6)
  ------------------
  |  Branch (1679:6): [True: 0, False: 10.3k]
  ------------------
 1680|      0|    if(peer->scopeid)
  ------------------
  |  Branch (1680:8): [True: 0, False: 0]
  ------------------
 1681|      0|      conn->destination = curl_maprintf("[%s%%%u]:%u",
 1682|      0|        peer->hostname, peer->scopeid, peer->port);
 1683|      0|    else
 1684|      0|      conn->destination = curl_maprintf("[%s]:%u",
 1685|      0|        peer->hostname, peer->port);
 1686|  10.3k|  else
 1687|  10.3k|    conn->destination = curl_maprintf("%s:%u", peer->hostname, peer->port);
 1688|  10.3k|  if(!conn->destination)
  ------------------
  |  Branch (1688:6): [True: 0, False: 10.3k]
  ------------------
 1689|      0|    return CURLE_OUT_OF_MEMORY;
 1690|       |
 1691|  10.3k|  Curl_strntolower(conn->destination, conn->destination,
 1692|  10.3k|                   strlen(conn->destination));
 1693|       |
 1694|  10.3k|  return CURLE_OK;
 1695|  10.3k|}
url.c:setup_range:
 1623|  10.3k|{
 1624|  10.3k|  struct UrlState *s = &data->state;
 1625|  10.3k|  s->resume_from = data->set.set_resume_from;
 1626|  10.3k|  if(s->resume_from || data->set.str[STRING_SET_RANGE]) {
  ------------------
  |  Branch (1626:6): [True: 0, False: 10.3k]
  |  Branch (1626:24): [True: 0, False: 10.3k]
  ------------------
 1627|      0|    if(s->rangestringalloc)
  ------------------
  |  Branch (1627:8): [True: 0, False: 0]
  ------------------
 1628|      0|      curlx_free(s->range);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1629|       |
 1630|      0|    if(s->resume_from)
  ------------------
  |  Branch (1630:8): [True: 0, False: 0]
  ------------------
 1631|      0|      s->range = curl_maprintf("%" FMT_OFF_T "-", s->resume_from);
 1632|      0|    else
 1633|      0|      s->range = curlx_strdup(data->set.str[STRING_SET_RANGE]);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1634|       |
 1635|      0|    if(!s->range)
  ------------------
  |  Branch (1635:8): [True: 0, False: 0]
  ------------------
 1636|      0|      return CURLE_OUT_OF_MEMORY;
 1637|       |
 1638|      0|    s->rangestringalloc = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1639|       |
 1640|       |    /* tell ourselves to fetch this range */
 1641|      0|    s->use_range = TRUE;        /* enable range download */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1642|      0|  }
 1643|  10.3k|  else
 1644|  10.3k|    s->use_range = FALSE; /* disable range download */
  ------------------
  |  | 1058|  10.3k|#define FALSE false
  ------------------
 1645|       |
 1646|  10.3k|  return CURLE_OK;
 1647|  10.3k|}
url.c:url_attach_existing:
 1221|  9.87k|{
 1222|  9.87k|  struct url_conn_match match;
 1223|  9.87k|  bool success;
 1224|       |
 1225|  9.87k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1081|  9.87k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1225:3): [True: 0, False: 9.87k]
  |  Branch (1225:3): [True: 9.87k, False: 0]
  ------------------
 1226|  9.87k|  memset(&match, 0, sizeof(match));
 1227|  9.87k|  match.data = data;
 1228|  9.87k|  match.needle = needle;
 1229|  9.87k|  match.may_multiplex = xfer_may_multiplex(data, needle);
 1230|       |
 1231|       |#ifdef USE_NTLM
 1232|       |  match.want_ntlm_http =
 1233|       |    (data->state.authhost.want & CURLAUTH_NTLM) &&
 1234|       |    (needle->scheme->protocol & PROTO_FAMILY_HTTP);
 1235|       |#ifndef CURL_DISABLE_PROXY
 1236|       |  match.want_proxy_ntlm_http =
 1237|       |    needle->http_proxy.creds &&
 1238|       |    (data->state.authproxy.want & CURLAUTH_NTLM) &&
 1239|       |    (needle->scheme->protocol & PROTO_FAMILY_HTTP);
 1240|       |#endif
 1241|       |#endif
 1242|       |
 1243|       |#if !defined(CURL_DISABLE_HTTP) && defined(USE_SPNEGO)
 1244|       |  match.want_nego_http =
 1245|       |    (data->state.authhost.want & CURLAUTH_NEGOTIATE) &&
 1246|       |    (needle->scheme->protocol & PROTO_FAMILY_HTTP);
 1247|       |#ifndef CURL_DISABLE_PROXY
 1248|       |  match.want_proxy_nego_http =
 1249|       |    needle->http_proxy.creds &&
 1250|       |    (data->state.authproxy.want & CURLAUTH_NEGOTIATE) &&
 1251|       |    (needle->scheme->protocol & PROTO_FAMILY_HTTP);
 1252|       |#endif
 1253|       |#endif
 1254|  9.87k|  match.require_tls = data->set.use_ssl >= CURLUSESSL_CONTROL;
  ------------------
  |  |  926|  9.87k|#define CURLUSESSL_CONTROL 2L /* SSL for the control connection or fail */
  ------------------
 1255|  9.87k|  match.may_tls = data->set.use_ssl > CURLUSESSL_NONE;
  ------------------
  |  |  924|  9.87k|#define CURLUSESSL_NONE    0L /* do not attempt to use SSL */
  ------------------
 1256|       |
 1257|       |  /* Find a connection in the pool that matches what "data + needle"
 1258|       |   * requires. If a suitable candidate is found, it is attached to "data". */
 1259|  9.87k|  success = Curl_cpool_find(data, needle->destination,
 1260|  9.87k|                            url_match_conn, url_match_result, &match);
 1261|       |
 1262|       |  /* wait_pipe is TRUE if we encounter a bundle that is undecided. There
 1263|       |   * is no matching connection then, yet. */
 1264|  9.87k|  *waitpipe = (bool)match.wait_pipe;
 1265|  9.87k|  return success;
 1266|  9.87k|}
url.c:xfer_may_multiplex:
  534|  9.87k|{
  535|  9.87k|#ifndef CURL_DISABLE_HTTP
  536|       |  /* If an HTTP protocol and multiplexing is enabled */
  537|  9.87k|  if((conn->scheme->protocol & PROTO_FAMILY_HTTP) &&
  ------------------
  |  |   84|  9.87k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1078|  9.87k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1079|  9.87k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  9.87k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  9.87k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  9.87k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (537:6): [True: 9.87k, False: 0]
  ------------------
  538|  9.87k|     (!conn->bits.protoconnstart || !conn->bits.close)) {
  ------------------
  |  Branch (538:7): [True: 9.87k, False: 0]
  |  Branch (538:37): [True: 0, False: 0]
  ------------------
  539|       |
  540|  9.87k|    if(Curl_multiplex_wanted(data->multi) &&
  ------------------
  |  Branch (540:8): [True: 9.87k, False: 0]
  ------------------
  541|  9.87k|       (data->state.http_neg.allowed & (CURL_HTTP_V2x | CURL_HTTP_V3x)))
  ------------------
  |  |   41|  9.87k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
                     (data->state.http_neg.allowed & (CURL_HTTP_V2x | CURL_HTTP_V3x)))
  ------------------
  |  |   42|  9.87k|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  |  Branch (541:8): [True: 8.54k, False: 1.33k]
  ------------------
  542|       |      /* allows HTTP/2 or newer */
  543|  8.54k|      return TRUE;
  ------------------
  |  | 1055|  8.54k|#define TRUE true
  ------------------
  544|  9.87k|  }
  545|       |#else
  546|       |  (void)data;
  547|       |  (void)conn;
  548|       |#endif
  549|  1.33k|  return FALSE;
  ------------------
  |  | 1058|  1.33k|#define FALSE false
  ------------------
  550|  9.87k|}
url.c:url_match_conn:
 1126|  3.03k|{
 1127|  3.03k|  struct url_conn_match *m = userdata;
 1128|       |  /* Check if `conn` can be used for transfer `m->data` */
 1129|       |
 1130|       |  /* general connect config setting match? */
 1131|  3.03k|  if(!url_match_connect_config(conn, m))
  ------------------
  |  Branch (1131:6): [True: 1, False: 3.03k]
  ------------------
 1132|      1|    return FALSE;
  ------------------
  |  | 1058|      1|#define FALSE false
  ------------------
 1133|       |
 1134|       |  /* match for destination and protocol? */
 1135|  3.03k|  if(!url_match_destination(conn, m))
  ------------------
  |  Branch (1135:6): [True: 15, False: 3.01k]
  ------------------
 1136|     15|    return FALSE;
  ------------------
  |  | 1058|     15|#define FALSE false
  ------------------
 1137|       |
 1138|  3.01k|  if(!url_match_fully_connected(conn, m))
  ------------------
  |  Branch (1138:6): [True: 5, False: 3.01k]
  ------------------
 1139|      5|    return FALSE;
  ------------------
  |  | 1058|      5|#define FALSE false
  ------------------
 1140|       |
 1141|  3.01k|  if(!url_match_multiplex_needs(conn, m))
  ------------------
  |  Branch (1141:6): [True: 0, False: 3.01k]
  ------------------
 1142|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1143|       |
 1144|  3.01k|  if(!url_match_proxy_use(conn, m))
  ------------------
  |  Branch (1144:6): [True: 0, False: 3.01k]
  ------------------
 1145|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1146|  3.01k|  if(!url_match_ssl_config(conn, m))
  ------------------
  |  Branch (1146:6): [True: 0, False: 3.01k]
  ------------------
 1147|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1148|       |
 1149|  3.01k|  if(!url_match_http_multiplex(conn, m))
  ------------------
  |  Branch (1149:6): [True: 0, False: 3.01k]
  ------------------
 1150|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1151|  3.01k|  else if(m->wait_pipe)
  ------------------
  |  Branch (1151:11): [True: 0, False: 3.01k]
  ------------------
 1152|       |    /* we decided to wait on PIPELINING */
 1153|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1154|       |
 1155|  3.01k|  if(!url_match_auth(conn, m))
  ------------------
  |  Branch (1155:6): [True: 0, False: 3.01k]
  ------------------
 1156|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1157|       |
 1158|  3.01k|  if(!url_match_proto_config(conn, m))
  ------------------
  |  Branch (1158:6): [True: 4, False: 3.01k]
  ------------------
 1159|      4|    return FALSE;
  ------------------
  |  | 1058|      4|#define FALSE false
  ------------------
 1160|       |
 1161|  3.01k|  if(!url_match_auth_ntlm(conn, m))
  ------------------
  |  | 1069|  3.01k|#define url_match_auth_ntlm(c, m) ((void)(c), (void)(m), TRUE)
  |  |  ------------------
  |  |  |  | 1055|  3.01k|#define TRUE true
  |  |  ------------------
  ------------------
  |  Branch (1161:6): [True: 0, False: 3.01k]
  ------------------
 1162|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1163|  3.01k|  else if(m->force_reuse)
  ------------------
  |  Branch (1163:11): [True: 0, False: 3.01k]
  ------------------
 1164|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1165|       |
 1166|  3.01k|  if(!url_match_auth_nego(conn, m))
  ------------------
  |  | 1122|  3.01k|#define url_match_auth_nego(c, m) ((void)(c), (void)(m), TRUE)
  |  |  ------------------
  |  |  |  | 1055|  3.01k|#define TRUE true
  |  |  ------------------
  ------------------
  |  Branch (1166:6): [True: 0, False: 3.01k]
  ------------------
 1167|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1168|  3.01k|  else if(m->force_reuse)
  ------------------
  |  Branch (1168:11): [True: 0, False: 3.01k]
  ------------------
 1169|      0|    return TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1170|       |
 1171|  3.01k|  if(!url_match_multiplex_limits(conn, m))
  ------------------
  |  Branch (1171:6): [True: 0, False: 3.01k]
  ------------------
 1172|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1173|       |
 1174|  3.01k|  if(!CONN_INUSE(conn) && Curl_conn_seems_dead(conn, m->data)) {
  ------------------
  |  |  346|  6.02k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  ------------------
  |  Branch (1174:6): [True: 3.01k, False: 0]
  |  Branch (1174:27): [True: 219, False: 2.79k]
  ------------------
 1175|       |    /* remove and disconnect. */
 1176|    219|    Curl_conn_terminate(m->data, conn, FALSE);
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
 1177|    219|    return FALSE;
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
 1178|    219|  }
 1179|       |
 1180|       |  /* conn matches our needs. */
 1181|  2.79k|  m->found = conn;
 1182|       |  return TRUE;
  ------------------
  |  | 1055|  2.79k|#define TRUE true
  ------------------
 1183|  3.01k|}
url.c:url_match_connect_config:
  692|  3.03k|{
  693|       |  /* connect-only or to-be-closed connections will not be reused */
  694|  3.03k|  if(conn->bits.connect_only || conn->bits.close || conn->bits.no_reuse)
  ------------------
  |  Branch (694:6): [True: 0, False: 3.03k]
  |  Branch (694:33): [True: 0, False: 3.03k]
  |  Branch (694:53): [True: 0, False: 3.03k]
  ------------------
  695|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  696|       |
  697|       |  /* ip_version must match */
  698|  3.03k|  if(m->data->set.ipver != CURL_IPRESOLVE_WHATEVER &&
  ------------------
  |  | 2303|  6.07k|#define CURL_IPRESOLVE_WHATEVER 0L /* default, uses addresses to all IP
  ------------------
  |  Branch (698:6): [True: 0, False: 3.03k]
  ------------------
  699|      0|     m->data->set.ipver != conn->ip_version)
  ------------------
  |  Branch (699:6): [True: 0, False: 0]
  ------------------
  700|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  701|       |
  702|  3.03k|  if(m->needle->localdev || m->needle->localport) {
  ------------------
  |  Branch (702:6): [True: 0, False: 3.03k]
  |  Branch (702:29): [True: 0, False: 3.03k]
  ------------------
  703|       |    /* If we are bound to a specific local end (IP+port), we must not reuse a
  704|       |       random other one, although if we did not ask for a particular one we
  705|       |       can reuse one that was bound.
  706|       |
  707|       |       This comparison is a bit rough and too strict. Since the input
  708|       |       parameters can be specified in numerous ways and still end up the same
  709|       |       it would take a lot of processing to make it really accurate. Instead,
  710|       |       this matching will assume that reuses of bound connections will most
  711|       |       likely also reuse the exact same binding parameters and missing out a
  712|       |       few edge cases should not hurt anyone much.
  713|       |    */
  714|      0|    if((conn->localport != m->needle->localport) ||
  ------------------
  |  Branch (714:8): [True: 0, False: 0]
  ------------------
  715|      0|       (conn->localportrange != m->needle->localportrange) ||
  ------------------
  |  Branch (715:8): [True: 0, False: 0]
  ------------------
  716|      0|       (m->needle->localdev &&
  ------------------
  |  Branch (716:9): [True: 0, False: 0]
  ------------------
  717|      0|        (!conn->localdev || strcmp(conn->localdev, m->needle->localdev))))
  ------------------
  |  Branch (717:10): [True: 0, False: 0]
  |  Branch (717:29): [True: 0, False: 0]
  ------------------
  718|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  719|      0|  }
  720|       |
  721|  3.03k|  if(!m->needle->via_peer != !conn->via_peer)
  ------------------
  |  Branch (721:6): [True: 1, False: 3.03k]
  ------------------
  722|       |    /* do not mix connections that use the "connect to host" feature and
  723|       |     * connections that do not use this feature */
  724|      1|    return FALSE;
  ------------------
  |  | 1058|      1|#define FALSE false
  ------------------
  725|       |
  726|  3.03k|  return TRUE;
  ------------------
  |  | 1055|  3.03k|#define TRUE true
  ------------------
  727|  3.03k|}
url.c:url_match_destination:
  955|  3.03k|{
  956|       |  /* Different connect-to peers never match */
  957|  3.03k|  if(!Curl_peer_same_destination(m->needle->via_peer, conn->via_peer))
  ------------------
  |  Branch (957:6): [True: 0, False: 3.03k]
  ------------------
  958|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  959|       |
  960|  3.03k|#ifndef CURL_DISABLE_PROXY
  961|  3.03k|  if(m->needle->bits.httpproxy && !m->needle->bits.tunnel_proxy) {
  ------------------
  |  Branch (961:6): [True: 0, False: 3.03k]
  |  Branch (961:35): [True: 0, False: 0]
  ------------------
  962|       |    /* Talking to a non-tunneling HTTP proxy matches on proxy peers. */
  963|      0|    return Curl_peer_equal(m->needle->http_proxy.peer,
  964|      0|                           conn->http_proxy.peer);
  965|      0|  }
  966|  3.03k|#endif
  967|       |
  968|  3.03k|  if(m->needle->origin->scheme != conn->origin->scheme) {
  ------------------
  |  Branch (968:6): [True: 0, False: 3.03k]
  ------------------
  969|       |    /* `needle` and `conn` not having the same scheme.
  970|       |     * This is allowed for the same family *if* conn is using TLS.
  971|       |     * - IMAP+STARTTLS works for IMAPS.
  972|       |     * - IMAPS works for IMAP. */
  973|      0|    if(get_protocol_family(conn->origin->scheme) !=
  ------------------
  |  Branch (973:8): [True: 0, False: 0]
  ------------------
  974|      0|       m->needle->scheme->protocol) {
  975|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  976|      0|    }
  977|      0|    if(!url_match_ssl_use(conn, m)) {
  ------------------
  |  Branch (977:8): [True: 0, False: 0]
  ------------------
  978|      0|      DEBUGF(infof(m->data, "Connection #%" FMT_OFF_T
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  979|      0|                   " has compatible protocol family, but no SSL, no match",
  980|      0|                   conn->connection_id));
  981|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  982|      0|    }
  983|      0|  }
  984|       |  /* Scheme mismatch is acceptable, just compare hostname/port */
  985|  3.03k|  return Curl_peer_same_destination(m->needle->origin, conn->origin);
  986|  3.03k|}
url.c:get_protocol_family:
  143|  3.01k|{
  144|  3.01k|  DEBUGASSERT(s);
  ------------------
  |  | 1081|  3.01k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (144:3): [True: 0, False: 3.01k]
  |  Branch (144:3): [True: 3.01k, False: 0]
  ------------------
  145|  3.01k|  DEBUGASSERT(s->family);
  ------------------
  |  | 1081|  3.01k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (145:3): [True: 0, False: 3.01k]
  |  Branch (145:3): [True: 3.01k, False: 0]
  ------------------
  146|  3.01k|  return s->family;
  147|  3.01k|}
url.c:url_match_fully_connected:
  731|  3.01k|{
  732|  3.01k|  if(!Curl_conn_is_connected(conn, FIRSTSOCKET) ||
  ------------------
  |  |  303|  3.01k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (732:6): [True: 0, False: 3.01k]
  ------------------
  733|  3.01k|     conn->bits.upgrade_in_progress) {
  ------------------
  |  Branch (733:6): [True: 5, False: 3.01k]
  ------------------
  734|       |    /* Not yet connected, or a protocol upgrade is in progress. The later
  735|       |     * happens for HTTP/2 Upgrade: requests that need a response. */
  736|      5|    if(m->may_multiplex) {
  ------------------
  |  Branch (736:8): [True: 5, False: 0]
  ------------------
  737|      5|      m->seen_pending_conn = TRUE;
  ------------------
  |  | 1055|      5|#define TRUE true
  ------------------
  738|       |      /* Do not pick a connection that has not connected yet */
  739|      5|      infof(m->data, "Connection #%" FMT_OFF_T
  ------------------
  |  |  143|      5|  do {                               \
  |  |  144|      5|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      5|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 5, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 5]
  |  |  |  |  ------------------
  |  |  |  |  320|      5|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      5|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      5|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 5]
  |  |  ------------------
  ------------------
  740|      5|            " is not open enough, cannot reuse", conn->connection_id);
  741|      5|    }
  742|       |    /* Do not pick a connection that has not connected yet */
  743|      5|    return FALSE;
  ------------------
  |  | 1058|      5|#define FALSE false
  ------------------
  744|      5|  }
  745|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
  746|  3.01k|}
url.c:url_match_multiplex_needs:
  761|  3.01k|{
  762|  3.01k|  if(CONN_INUSE(conn)) {
  ------------------
  |  |  346|  3.01k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (346:23): [True: 0, False: 3.01k]
  |  |  ------------------
  ------------------
  763|      0|    if(!conn->bits.multiplex) {
  ------------------
  |  Branch (763:8): [True: 0, False: 0]
  ------------------
  764|       |      /* conn busy and conn cannot take more transfers */
  765|      0|      m->seen_single_use_conn = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  766|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  767|      0|    }
  768|      0|    m->seen_multiplex_conn = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  769|      0|    if(!m->may_multiplex || !url_match_multi(conn, m))
  ------------------
  |  Branch (769:8): [True: 0, False: 0]
  |  Branch (769:29): [True: 0, False: 0]
  ------------------
  770|       |      /* conn busy and transfer cannot be multiplexed */
  771|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  772|      0|  }
  773|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
  774|  3.01k|}
url.c:url_match_proxy_use:
  824|  3.01k|{
  825|  3.01k|  if(m->needle->bits.httpproxy != conn->bits.httpproxy ||
  ------------------
  |  Branch (825:6): [True: 0, False: 3.01k]
  ------------------
  826|  3.01k|     m->needle->bits.socksproxy != conn->bits.socksproxy)
  ------------------
  |  Branch (826:6): [True: 0, False: 3.01k]
  ------------------
  827|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  828|       |
  829|  3.01k|  if(m->needle->bits.socksproxy &&
  ------------------
  |  Branch (829:6): [True: 0, False: 3.01k]
  ------------------
  830|      0|     !proxy_info_matches(&m->needle->socks_proxy, &conn->socks_proxy))
  ------------------
  |  Branch (830:6): [True: 0, False: 0]
  ------------------
  831|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  832|       |
  833|  3.01k|  if(m->needle->bits.httpproxy) {
  ------------------
  |  Branch (833:6): [True: 0, False: 3.01k]
  ------------------
  834|      0|    if(m->needle->bits.tunnel_proxy != conn->bits.tunnel_proxy)
  ------------------
  |  Branch (834:8): [True: 0, False: 0]
  ------------------
  835|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  836|       |
  837|      0|    if(!proxy_info_matches(&m->needle->http_proxy, &conn->http_proxy))
  ------------------
  |  Branch (837:8): [True: 0, False: 0]
  ------------------
  838|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  839|       |
  840|      0|    if(IS_HTTPS_PROXY(m->needle->http_proxy.proxytype)) {
  ------------------
  |  |   80|      0|  (((t) == CURLPROXY_HTTPS) ||  \
  |  |  ------------------
  |  |  |  |  794|      0|#define CURLPROXY_HTTPS           2L /* HTTPS but stick to HTTP/1
  |  |  ------------------
  |  |  |  Branch (80:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   81|      0|   ((t) == CURLPROXY_HTTPS2) || \
  |  |  ------------------
  |  |  |  |  796|      0|#define CURLPROXY_HTTPS2          3L /* HTTPS and attempt HTTP/2
  |  |  ------------------
  |  |  |  Branch (81:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   82|      0|   ((t) == CURLPROXY_HTTPS3))
  |  |  ------------------
  |  |  |  |  805|      0|#define CURLPROXY_HTTPS3          8L /* HTTPS and attempt HTTP/3
  |  |  ------------------
  |  |  |  Branch (82:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  841|       |      /* https proxies come in different types, http/1.1, h2, ... */
  842|      0|      if(m->needle->http_proxy.proxytype != conn->http_proxy.proxytype)
  ------------------
  |  Branch (842:10): [True: 0, False: 0]
  ------------------
  843|      0|        return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  844|       |      /* match SSL config to proxy */
  845|      0|      if(!Curl_ssl_conn_config_match(m->data, conn, TRUE)) {
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  |  Branch (845:10): [True: 0, False: 0]
  ------------------
  846|      0|        DEBUGF(infof(m->data,
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  847|      0|                     "Connection #%" FMT_OFF_T
  848|      0|                     " has different SSL proxy parameters, cannot reuse",
  849|      0|                     conn->connection_id));
  850|      0|        return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  851|      0|      }
  852|       |      /* the SSL config to the server, which may apply here is checked
  853|       |       * further below */
  854|      0|    }
  855|      0|  }
  856|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
  857|  3.01k|}
url.c:url_match_ssl_config:
  990|  3.01k|{
  991|       |  /* If talking/upgrading to TLS, conn needs to use the same SSL options. */
  992|  3.01k|  if(((m->needle->scheme->flags & PROTOPT_SSL) || m->may_tls) &&
  ------------------
  |  |  207|  3.01k|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
  |  Branch (992:7): [True: 0, False: 3.01k]
  |  Branch (992:51): [True: 0, False: 3.01k]
  ------------------
  993|      0|     !Curl_ssl_conn_config_match(m->data, conn, FALSE)) {
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  |  Branch (993:6): [True: 0, False: 0]
  ------------------
  994|      0|    DEBUGF(infof(m->data, "Connection #%" FMT_OFF_T
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  995|      0|                 " has different SSL parameters, cannot reuse",
  996|      0|                 conn->connection_id));
  997|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  998|      0|  }
  999|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
 1000|  3.01k|}
url.c:url_match_http_multiplex:
  865|  3.01k|{
  866|  3.01k|  if(m->may_multiplex &&
  ------------------
  |  Branch (866:6): [True: 2.90k, False: 111]
  ------------------
  867|  2.90k|     (m->data->state.http_neg.allowed & (CURL_HTTP_V2x | CURL_HTTP_V3x)) &&
  ------------------
  |  |   41|  2.90k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
                   (m->data->state.http_neg.allowed & (CURL_HTTP_V2x | CURL_HTTP_V3x)) &&
  ------------------
  |  |   42|  2.90k|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  |  Branch (867:6): [True: 2.90k, False: 0]
  ------------------
  868|  2.90k|     (m->needle->scheme->protocol & CURLPROTO_HTTP) &&
  ------------------
  |  | 1078|  2.90k|#define CURLPROTO_HTTP    (1L << 0)
  ------------------
  |  Branch (868:6): [True: 2.90k, False: 0]
  ------------------
  869|  2.90k|     !conn->httpversion_seen) {
  ------------------
  |  Branch (869:6): [True: 0, False: 2.90k]
  ------------------
  870|      0|    if(m->data->set.pipewait) {
  ------------------
  |  Branch (870:8): [True: 0, False: 0]
  ------------------
  871|      0|      infof(m->data, "Server upgrade does not support multiplex yet, wait");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  872|      0|      m->found = NULL;
  873|      0|      m->wait_pipe = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  874|      0|      return TRUE; /* stop searching, we want to wait */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  875|      0|    }
  876|      0|    infof(m->data, "Server upgrade cannot be used");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  877|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  878|      0|  }
  879|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
  880|  3.01k|}
url.c:url_match_auth:
  936|  3.01k|{
  937|  3.01k|  if(!Curl_creds_same(m->needle->creds, conn->creds)) {
  ------------------
  |  Branch (937:6): [True: 0, False: 3.01k]
  ------------------
  938|      0|    if(m->needle->creds)
  ------------------
  |  Branch (938:8): [True: 0, False: 0]
  ------------------
  939|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  940|      0|    if(!Curl_creds_same(m->data->state.creds, conn->creds))
  ------------------
  |  Branch (940:8): [True: 0, False: 0]
  ------------------
  941|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  942|      0|  }
  943|       |#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
  944|       |  /* GSS delegation differences do not actually affect every connection and
  945|       |     auth method, but this check takes precaution before efficiency */
  946|       |  if(m->needle->gssapi_delegation != conn->gssapi_delegation)
  947|       |    return FALSE;
  948|       |#endif
  949|       |
  950|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
  951|  3.01k|}
url.c:url_match_proto_config:
  921|  3.01k|{
  922|  3.01k|  if(!url_match_http_version(conn, m))
  ------------------
  |  Branch (922:6): [True: 4, False: 3.01k]
  ------------------
  923|      4|    return FALSE;
  ------------------
  |  | 1058|      4|#define FALSE false
  ------------------
  924|       |
  925|  3.01k|#ifndef CURL_DISABLE_FTP
  926|  3.01k|  else if(get_protocol_family(m->needle->scheme) & PROTO_FAMILY_FTP) {
  ------------------
  |  |   86|  3.01k|#define PROTO_FAMILY_FTP  (CURLPROTO_FTP | CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1080|  3.01k|#define CURLPROTO_FTP     (1L << 2)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_FTP  (CURLPROTO_FTP | CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1081|  3.01k|#define CURLPROTO_FTPS    (1L << 3)
  |  |  ------------------
  ------------------
  |  Branch (926:11): [True: 0, False: 3.01k]
  ------------------
  927|      0|    if(!ftp_conns_match(m->needle, conn))
  ------------------
  |  Branch (927:8): [True: 0, False: 0]
  ------------------
  928|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  929|      0|  }
  930|  3.01k|#endif
  931|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
  932|  3.01k|}
url.c:url_match_http_version:
  884|  3.01k|{
  885|       |  /* If looking for HTTP and the HTTP versions allowed do not include
  886|       |   * the HTTP version of conn, continue looking. */
  887|  3.01k|  if((m->needle->scheme->protocol & PROTO_FAMILY_HTTP)) {
  ------------------
  |  |   84|  3.01k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1078|  3.01k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1079|  3.01k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  3.01k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  3.01k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  3.01k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (887:6): [True: 3.01k, False: 0]
  ------------------
  888|  3.01k|    switch(Curl_conn_http_version(m->data, conn)) {
  889|      0|    case 30:
  ------------------
  |  Branch (889:5): [True: 0, False: 3.01k]
  ------------------
  890|      0|      if(!(m->data->state.http_neg.allowed & CURL_HTTP_V3x)) {
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  |  Branch (890:10): [True: 0, False: 0]
  ------------------
  891|      0|        DEBUGF(infof(m->data, "not reusing conn #%" CURL_FORMAT_CURL_OFF_T
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  892|      0|                     ", we do not want h3", conn->connection_id));
  893|      0|        return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  894|      0|      }
  895|      0|      break;
  896|      4|    case 20:
  ------------------
  |  Branch (896:5): [True: 4, False: 3.01k]
  ------------------
  897|      4|      if(!(m->data->state.http_neg.allowed & CURL_HTTP_V2x)) {
  ------------------
  |  |   41|      4|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (897:10): [True: 4, False: 0]
  ------------------
  898|      4|        DEBUGF(infof(m->data, "not reusing conn #%" CURL_FORMAT_CURL_OFF_T
  ------------------
  |  | 1067|     28|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 4, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 4]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 4]
  |  |  ------------------
  ------------------
  899|      4|                     ", we do not want h2", conn->connection_id));
  900|      4|        return FALSE;
  ------------------
  |  | 1058|      4|#define FALSE false
  ------------------
  901|      4|      }
  902|      0|      break;
  903|  3.01k|    default:
  ------------------
  |  Branch (903:5): [True: 3.01k, False: 4]
  ------------------
  904|  3.01k|      if(!(m->data->state.http_neg.allowed & CURL_HTTP_V1x)) {
  ------------------
  |  |   40|  3.01k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (904:10): [True: 0, False: 3.01k]
  ------------------
  905|      0|        DEBUGF(infof(m->data, "not reusing conn #%" CURL_FORMAT_CURL_OFF_T
  ------------------
  |  | 1067|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [True: 0, False: 0]
  |  |  |  Branch (1067:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  906|      0|                     ", we do not want h1", conn->connection_id));
  907|      0|        return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  908|      0|      }
  909|  3.01k|      break;
  910|  3.01k|    }
  911|  3.01k|  }
  912|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
  913|  3.01k|}
url.c:url_match_multiplex_limits:
  778|  3.01k|{
  779|  3.01k|  if(CONN_INUSE(conn) && m->may_multiplex) {
  ------------------
  |  |  346|  6.02k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (346:23): [True: 0, False: 3.01k]
  |  |  ------------------
  ------------------
  |  Branch (779:26): [True: 0, False: 0]
  ------------------
  780|      0|    DEBUGASSERT(conn->bits.multiplex);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (780:5): [True: 0, False: 0]
  |  Branch (780:5): [True: 0, False: 0]
  ------------------
  781|       |    /* If multiplexed, make sure we do not go over concurrency limit */
  782|      0|    if(conn->attached_xfers >=
  ------------------
  |  Branch (782:8): [True: 0, False: 0]
  ------------------
  783|      0|            Curl_multi_max_concurrent_streams(m->data->multi)) {
  784|      0|      infof(m->data, "client side MAX_CONCURRENT_STREAMS reached"
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  785|      0|            ", skip (%u)", conn->attached_xfers);
  786|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  787|      0|    }
  788|      0|    if(conn->attached_xfers >=
  ------------------
  |  Branch (788:8): [True: 0, False: 0]
  ------------------
  789|      0|       Curl_conn_get_max_concurrent(m->data, conn, FIRSTSOCKET)) {
  ------------------
  |  |  303|      0|#define FIRSTSOCKET     0
  ------------------
  790|      0|      infof(m->data, "MAX_CONCURRENT_STREAMS reached, skip (%u)",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  791|      0|            conn->attached_xfers);
  792|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  793|      0|    }
  794|       |    /* When not multiplexed, we have a match here! */
  795|      0|    infof(m->data, "Multiplexed connection found");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  796|      0|  }
  797|  3.01k|  return TRUE;
  ------------------
  |  | 1055|  3.01k|#define TRUE true
  ------------------
  798|  3.01k|}
url.c:url_match_result:
 1186|  9.87k|{
 1187|  9.87k|  struct url_conn_match *match = userdata;
 1188|  9.87k|  if(match->found) {
  ------------------
  |  Branch (1188:6): [True: 2.79k, False: 7.08k]
  ------------------
 1189|       |    /* Attach it now while still under lock, so the connection does
 1190|       |     * no longer appear idle and can be reaped. */
 1191|  2.79k|    Curl_attach_connection(match->data, match->found);
 1192|  2.79k|    return TRUE;
  ------------------
  |  | 1055|  2.79k|#define TRUE true
  ------------------
 1193|  2.79k|  }
 1194|  7.08k|  else if(match->seen_single_use_conn && !match->seen_multiplex_conn) {
  ------------------
  |  Branch (1194:11): [True: 0, False: 7.08k]
  |  Branch (1194:42): [True: 0, False: 0]
  ------------------
 1195|       |    /* We have seen a single-use, existing connection to the destination and
 1196|       |     * no multiplexed one. It seems safe to assume that the server does
 1197|       |     * not support multiplexing. */
 1198|      0|    match->wait_pipe = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1199|      0|  }
 1200|  7.08k|  else if(match->seen_pending_conn && match->data->set.pipewait) {
  ------------------
  |  Branch (1200:11): [True: 5, False: 7.08k]
  |  Branch (1200:39): [True: 0, False: 5]
  ------------------
 1201|      0|    infof(match->data,
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1202|      0|          "Found pending candidate for reuse and CURLOPT_PIPEWAIT is set");
 1203|      0|    match->wait_pipe = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1204|      0|  }
 1205|  7.08k|  match->force_reuse = FALSE;
  ------------------
  |  | 1058|  7.08k|#define FALSE false
  ------------------
 1206|       |  return FALSE;
  ------------------
  |  | 1058|  7.08k|#define FALSE false
  ------------------
 1207|  9.87k|}
url.c:url_conn_reuse_adjust:
 2531|  2.79k|{
 2532|  2.79k|  struct connectdata *conn = data->conn;
 2533|       |
 2534|       |  /* get the user+password information from the needle since it may
 2535|       |   * be new for this request even when we reuse conn */
 2536|  2.79k|  if(needle->creds) {
  ------------------
  |  Branch (2536:6): [True: 0, False: 2.79k]
  ------------------
 2537|       |    /* use the new username and password though */
 2538|      0|    Curl_creds_link(&conn->creds, needle->creds);
 2539|      0|  }
 2540|       |
 2541|  2.79k|#ifndef CURL_DISABLE_PROXY
 2542|       |  /* use the new proxy username and proxy password though */
 2543|  2.79k|  Curl_creds_link(&conn->http_proxy.creds, needle->http_proxy.creds);
 2544|  2.79k|  Curl_creds_link(&conn->socks_proxy.creds, needle->socks_proxy.creds);
 2545|  2.79k|#endif
 2546|       |
 2547|       |  /* Finding a connection for reuse in the cpool matches, among other
 2548|       |   * things on the "remote-relevant" hostname. This is not necessarily
 2549|       |   * the authority of the URL, e.g. conn->origin. For example:
 2550|       |   * - we use a proxy (not tunneling). we want to send all requests
 2551|       |   *   that use the same proxy on this connection.
 2552|       |   * - we have a "connect-to" setting that may redirect the hostname of
 2553|       |   *   a new request to the same remote endpoint of an existing conn.
 2554|       |   *   We want to reuse an existing conn to the remote endpoint.
 2555|       |   * Since connection reuse does not match on conn->origin necessarily, we
 2556|       |   * switch conn to needle's host settings.
 2557|       |   */
 2558|  2.79k|  Curl_peer_link(&conn->origin, needle->origin);
 2559|  2.79k|  Curl_peer_link(&conn->via_peer, needle->via_peer);
 2560|  2.79k|  Curl_peer_link(&conn->origin2, needle->origin2);
 2561|  2.79k|  Curl_peer_link(&conn->via_peer2, needle->via_peer2);
 2562|  2.79k|}

urlencode_str:
  129|  21.1k|{
  130|       |  /* we must add this with whitespace-replacing */
  131|  21.1k|  const unsigned char *iptr;
  132|  21.1k|  const unsigned char *host_sep = (const unsigned char *)url;
  133|  21.1k|  CURLcode result = CURLE_OK;
  134|       |
  135|  21.1k|  DEBUGASSERT((query >= QUERY_NO) && (query <= QUERY_YES));
  ------------------
  |  | 1081|  21.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (135:3): [True: 0, False: 21.1k]
  |  Branch (135:3): [True: 0, False: 0]
  |  Branch (135:3): [True: 21.1k, False: 0]
  |  Branch (135:3): [True: 21.1k, False: 0]
  ------------------
  136|       |
  137|  21.1k|  if(!relative) {
  ------------------
  |  Branch (137:6): [True: 44, False: 21.0k]
  ------------------
  138|     44|    size_t n;
  139|     44|    host_sep = (const unsigned char *)find_host_sep(url);
  140|       |
  141|       |    /* output the first piece as-is */
  142|     44|    n = (const char *)host_sep - url;
  143|     44|    result = curlx_dyn_addn(o, url, n);
  144|     44|    len -= n;
  145|     44|  }
  146|       |
  147|   895k|  for(iptr = host_sep; len && !result; iptr++, len--) {
  ------------------
  |  Branch (147:24): [True: 873k, False: 21.1k]
  |  Branch (147:31): [True: 873k, False: 0]
  ------------------
  148|   873k|    if(*iptr == ' ') {
  ------------------
  |  Branch (148:8): [True: 1.67k, False: 872k]
  ------------------
  149|  1.67k|      if(query != QUERY_YES)
  ------------------
  |  |   54|  1.67k|#define QUERY_YES     4
  ------------------
  |  Branch (149:10): [True: 1.38k, False: 291]
  ------------------
  150|  1.38k|        result = curlx_dyn_addn(o, "%20", 3);
  151|    291|      else
  152|    291|        result = curlx_dyn_addn(o, "+", 1);
  153|  1.67k|    }
  154|   872k|    else if((*iptr < ' ') || (*iptr >= 0x7f)) {
  ------------------
  |  Branch (154:13): [True: 4.06k, False: 868k]
  |  Branch (154:30): [True: 31.9k, False: 836k]
  ------------------
  155|  36.0k|      unsigned char out[3] = { '%' };
  156|  36.0k|      Curl_hexbyte(&out[1], *iptr);
  157|  36.0k|      result = curlx_dyn_addn(o, out, 3);
  158|  36.0k|    }
  159|   836k|    else if(*iptr == '%' && (len >= 3) &&
  ------------------
  |  Branch (159:13): [True: 167k, False: 669k]
  |  Branch (159:29): [True: 167k, False: 138]
  ------------------
  160|   167k|            ISXDIGIT(iptr[1]) && ISXDIGIT(iptr[2]) &&
  ------------------
  |  |   39|  1.00M|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|   334k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 161k, False: 5.31k]
  |  |  |  |  |  Branch (44:38): [True: 48.5k, False: 113k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|   285k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 1.78k, False: 116k]
  |  |  |  |  |  Branch (27:43): [True: 1.05k, False: 729]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|   117k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 111k, False: 5.42k]
  |  |  |  |  |  Branch (28:43): [True: 111k, False: 763]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          ISXDIGIT(iptr[1]) && ISXDIGIT(iptr[2]) &&
  ------------------
  |  |   39|   997k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|   321k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 159k, False: 995]
  |  |  |  |  |  Branch (44:38): [True: 69.5k, False: 90.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|   252k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 626, False: 90.6k]
  |  |  |  |  |  Branch (27:43): [True: 332, False: 294]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|  90.9k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 89.9k, False: 996]
  |  |  |  |  |  Branch (28:43): [True: 89.5k, False: 352]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  161|   159k|            (ISLOWER(iptr[1]) || ISLOWER(iptr[2]))) {
  ------------------
  |  |   43|   318k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 264, False: 159k]
  |  |  |  Branch (43:38): [True: 264, False: 0]
  |  |  ------------------
  ------------------
                          (ISLOWER(iptr[1]) || ISLOWER(iptr[2]))) {
  ------------------
  |  |   43|   159k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 82, False: 159k]
  |  |  |  Branch (43:38): [True: 82, False: 0]
  |  |  ------------------
  ------------------
  162|       |      /* uppercase it */
  163|    346|      unsigned char hex = (unsigned char)((curlx_hexval(iptr[1]) << 4) |
  ------------------
  |  |  112|    346|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  164|    346|                                          curlx_hexval(iptr[2]));
  ------------------
  |  |  112|    346|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  165|    346|      unsigned char out[3] = { '%' };
  166|    346|      Curl_hexbyte(&out[1], hex);
  167|    346|      result = curlx_dyn_addn(o, out, 3);
  168|    346|      iptr += 2;
  169|    346|      len -= 2;
  170|    346|    }
  171|   835k|    else {
  172|   835k|      result = curlx_dyn_addn(o, iptr, 1);
  173|   835k|      if(*iptr == '?' && (query == QUERY_NOT_YET))
  ------------------
  |  |   53|  1.07k|#define QUERY_NOT_YET 3 /* allow to change to query */
  ------------------
  |  Branch (173:10): [True: 1.07k, False: 834k]
  |  Branch (173:26): [True: 434, False: 640]
  ------------------
  174|    434|        query = QUERY_YES;
  ------------------
  |  |   54|    434|#define QUERY_YES     4
  ------------------
  175|   835k|    }
  176|   873k|  }
  177|       |
  178|  21.1k|  if(result)
  ------------------
  |  Branch (178:6): [True: 0, False: 21.1k]
  ------------------
  179|      0|    return cc2cu(result);
  ------------------
  |  |  104|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (104:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  180|  21.1k|  return CURLUE_OK;
  181|  21.1k|}
Curl_is_absolute_url:
  193|  41.6k|{
  194|  41.6k|  size_t i = 0;
  195|  41.6k|  DEBUGASSERT(!buf || (buflen > MAX_SCHEME_LEN));
  ------------------
  |  | 1081|  41.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (195:3): [True: 41.6k, False: 0]
  |  Branch (195:3): [True: 0, False: 0]
  |  Branch (195:3): [True: 22.6k, False: 19.0k]
  |  Branch (195:3): [True: 19.0k, False: 0]
  ------------------
  196|  41.6k|  (void)buflen; /* only used in debug-builds */
  197|  41.6k|  if(buf)
  ------------------
  |  Branch (197:6): [True: 19.0k, False: 22.6k]
  ------------------
  198|  19.0k|    buf[0] = 0; /* always leave a defined value in buf */
  199|       |#ifdef _WIN32
  200|       |  if(guess_scheme && STARTS_WITH_DRIVE_PREFIX(url))
  201|       |    return 0;
  202|       |#endif
  203|  41.6k|  if(ISALPHA(url[0]))
  ------------------
  |  |   38|  41.6k|#define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   43|  83.3k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (43:22): [True: 40.6k, False: 1.04k]
  |  |  |  |  |  Branch (43:38): [True: 40.6k, False: 2]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   42|  1.04k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 72, False: 976]
  |  |  |  |  |  Branch (42:38): [True: 34, False: 38]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|   151k|    for(i = 1; i < MAX_SCHEME_LEN; ++i) {
  ------------------
  |  |   55|   151k|#define MAX_SCHEME_LEN 40
  ------------------
  |  Branch (204:16): [True: 151k, False: 30]
  ------------------
  205|   151k|      char s = url[i];
  206|   151k|      if(s && (ISALNUM(s) || (s == '+') || (s == '-') || (s == '.'))) {
  ------------------
  |  |   41|   302k|#define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   44|   302k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 144k, False: 6.12k]
  |  |  |  |  |  Branch (44:38): [True: 967, False: 143k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   43|   301k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (43:22): [True: 107k, False: 42.1k]
  |  |  |  |  |  Branch (43:38): [True: 107k, False: 28]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   42|  42.1k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 422, False: 41.7k]
  |  |  |  |  |  Branch (42:38): [True: 386, False: 36]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (206:10): [True: 151k, False: 144]
  |  Branch (206:30): [True: 402, False: 41.3k]
  |  Branch (206:44): [True: 489, False: 40.8k]
  |  Branch (206:58): [True: 422, False: 40.4k]
  ------------------
  207|       |        /* RFC 3986 3.1 explains:
  208|       |           scheme      = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  209|       |        */
  210|   110k|      }
  211|  40.6k|      else {
  212|  40.6k|        break;
  213|  40.6k|      }
  214|   151k|    }
  215|  41.6k|  if(i && (url[i] == ':') && ((url[i + 1] == '/') || !guess_scheme)) {
  ------------------
  |  Branch (215:6): [True: 40.6k, False: 1.01k]
  |  Branch (215:11): [True: 35.5k, False: 5.12k]
  |  Branch (215:31): [True: 35.3k, False: 208]
  |  Branch (215:54): [True: 208, False: 0]
  ------------------
  216|       |    /* If this does not guess scheme, the scheme always ends with the colon so
  217|       |       that this also detects data: URLs etc. In guessing mode, data: could
  218|       |       be the hostname "data" with a specified port number. */
  219|       |
  220|       |    /* the length of the scheme is the name part only */
  221|  35.5k|    size_t len = i;
  222|  35.5k|    if(buf) {
  ------------------
  |  Branch (222:8): [True: 19.0k, False: 16.5k]
  ------------------
  223|  19.0k|      Curl_strntolower(buf, url, i);
  224|  19.0k|      buf[i] = 0;
  225|  19.0k|    }
  226|  35.5k|    return len;
  227|  35.5k|  }
  228|  6.13k|  return 0;
  229|  41.6k|}
Curl_junkscan:
  233|  19.1k|{
  234|  19.1k|  size_t n = strlen(url);
  235|  19.1k|  size_t i;
  236|  19.1k|  unsigned char control;
  237|  19.1k|  const unsigned char *p = (const unsigned char *)url;
  238|  19.1k|  if(n > CURL_MAX_INPUT_LENGTH)
  ------------------
  |  |   45|  19.1k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (238:6): [True: 0, False: 19.1k]
  ------------------
  239|      0|    return CURLUE_MALFORMED_INPUT;
  240|       |
  241|  19.1k|  control = allowspace ? 0x1f : 0x20;
  ------------------
  |  Branch (241:13): [True: 6.92k, False: 12.2k]
  ------------------
  242|  1.68M|  for(i = 0; i < n; i++) {
  ------------------
  |  Branch (242:14): [True: 1.66M, False: 19.0k]
  ------------------
  243|  1.66M|    if(p[i] <= control || p[i] == 127)
  ------------------
  |  Branch (243:8): [True: 132, False: 1.66M]
  |  Branch (243:27): [True: 11, False: 1.66M]
  ------------------
  244|    143|      return CURLUE_MALFORMED_INPUT;
  245|  1.66M|  }
  246|  19.0k|  *urllen = n;
  247|  19.0k|  return CURLUE_OK;
  248|  19.1k|}
parse_port:
  349|  18.8k|{
  350|  18.8k|  const char *portptr;
  351|  18.8k|  const char *hostname = curlx_dyn_ptr(host);
  352|       |  /*
  353|       |   * Find the end of an IPv6 address on the ']' ending bracket.
  354|       |   */
  355|  18.8k|  if(hostname[0] == '[') {
  ------------------
  |  Branch (355:6): [True: 53, False: 18.7k]
  ------------------
  356|     53|    portptr = strchr(hostname, ']');
  357|     53|    if(!portptr)
  ------------------
  |  Branch (357:8): [True: 12, False: 41]
  ------------------
  358|     12|      return CURLUE_BAD_IPV6;
  359|     41|    portptr++;
  360|       |    /* this is a RFC2732-style specified IP-address */
  361|     41|    if(*portptr) {
  ------------------
  |  Branch (361:8): [True: 3, False: 38]
  ------------------
  362|      3|      if(*portptr != ':')
  ------------------
  |  Branch (362:10): [True: 1, False: 2]
  ------------------
  363|      1|        return CURLUE_BAD_PORT_NUMBER;
  364|      3|    }
  365|     38|    else
  366|     38|      portptr = NULL;
  367|     41|  }
  368|  18.7k|  else
  369|  18.7k|    portptr = strchr(hostname, ':');
  370|       |
  371|  18.8k|  if(portptr) {
  ------------------
  |  Branch (371:6): [True: 1.16k, False: 17.6k]
  ------------------
  372|  1.16k|    curl_off_t port;
  373|  1.16k|    size_t keep = portptr - hostname;
  374|       |
  375|       |    /* Browser behavior adaptation. If there is a colon with no digits after,
  376|       |       cut off the name there which makes us ignore the colon and use the
  377|       |       default port. Firefox, Chrome and Safari all do that.
  378|       |
  379|       |       Do not do it if the URL has no scheme, to make something that looks like
  380|       |       a scheme not work!
  381|       |    */
  382|  1.16k|    curlx_dyn_setlen(host, keep);
  383|  1.16k|    portptr++;
  384|  1.16k|    if(!*portptr)
  ------------------
  |  Branch (384:8): [True: 36, False: 1.12k]
  ------------------
  385|     36|      return has_scheme ? CURLUE_OK : CURLUE_BAD_PORT_NUMBER;
  ------------------
  |  Branch (385:14): [True: 36, False: 0]
  ------------------
  386|       |
  387|  1.12k|    if(curlx_str_number(&portptr, &port, 0xffff) || *portptr)
  ------------------
  |  Branch (387:8): [True: 9, False: 1.11k]
  |  Branch (387:53): [True: 5, False: 1.11k]
  ------------------
  388|     14|      return CURLUE_BAD_PORT_NUMBER;
  389|       |
  390|  1.11k|    u->portnum = (unsigned short)port;
  391|       |    /* generate a new port number string to get rid of leading zeroes etc */
  392|  1.11k|    curlx_free(u->port);
  ------------------
  |  | 1483|  1.11k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  393|  1.11k|    u->port = curl_maprintf("%" CURL_FORMAT_CURL_OFF_T, port);
  ------------------
  |  |  341|  1.11k|#    define CURL_FORMAT_CURL_OFF_T     "ld"
  ------------------
  394|  1.11k|    if(!u->port)
  ------------------
  |  Branch (394:8): [True: 0, False: 1.11k]
  ------------------
  395|      0|      return CURLUE_OUT_OF_MEMORY;
  396|  1.11k|  }
  397|       |
  398|  18.7k|  return CURLUE_OK;
  399|  18.8k|}
ipv6_parse:
  410|     39|{
  411|     39|  size_t len;
  412|     39|  DEBUGASSERT(*hostname == '[');
  ------------------
  |  | 1081|     39|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (412:3): [True: 0, False: 39]
  |  Branch (412:3): [True: 39, False: 0]
  ------------------
  413|     39|  if(hlen < 4) /* '[::]' is the shortest possible valid string */
  ------------------
  |  Branch (413:6): [True: 2, False: 37]
  ------------------
  414|      2|    return CURLUE_BAD_IPV6;
  415|     37|  hostname++;
  416|     37|  hlen -= 2;
  417|       |
  418|       |  /* only valid IPv6 letters are ok */
  419|     37|  len = strspn(hostname, "0123456789abcdefABCDEF:.");
  420|       |
  421|     37|  if(hlen != len) {
  ------------------
  |  Branch (421:6): [True: 18, False: 19]
  ------------------
  422|     18|    hlen = len;
  423|     18|    if(hostname[len] == '%') {
  ------------------
  |  Branch (423:8): [True: 15, False: 3]
  ------------------
  424|       |      /* this could now be '%[zone id]' */
  425|     15|      char zoneid[16];
  426|     15|      int i = 0;
  427|     15|      char *h = &hostname[len + 1];
  428|       |      /* pass '25' if present and is a URL encoded percent sign */
  429|     15|      if(!strncmp(h, "25", 2) && h[2] && (h[2] != ']'))
  ------------------
  |  Branch (429:10): [True: 2, False: 13]
  |  Branch (429:34): [True: 2, False: 0]
  |  Branch (429:42): [True: 1, False: 1]
  ------------------
  430|      1|        h += 2;
  431|    136|      while(*h && (*h != ']') && (i < 15))
  ------------------
  |  Branch (431:13): [True: 136, False: 0]
  |  Branch (431:19): [True: 124, False: 12]
  |  Branch (431:34): [True: 121, False: 3]
  ------------------
  432|    121|        zoneid[i++] = *h++;
  433|     15|      if(!i || (']' != *h))
  ------------------
  |  Branch (433:10): [True: 1, False: 14]
  |  Branch (433:16): [True: 3, False: 11]
  ------------------
  434|      4|        return CURLUE_BAD_IPV6;
  435|     11|      zoneid[i] = 0;
  436|     11|      u->zoneid = curlx_strdup(zoneid);
  ------------------
  |  | 1477|     11|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  437|     11|      if(!u->zoneid)
  ------------------
  |  Branch (437:10): [True: 0, False: 11]
  ------------------
  438|      0|        return CURLUE_OUT_OF_MEMORY;
  439|     11|      hostname[len] = ']'; /* insert end bracket */
  440|     11|      hostname[len + 1] = 0; /* terminate the hostname */
  441|     11|    }
  442|      3|    else
  443|      3|      return CURLUE_BAD_IPV6;
  444|       |    /* hostname is fine */
  445|     18|  }
  446|       |
  447|       |  /* Normalize the IPv6 address */
  448|     30|  {
  449|     30|    char dest[16]; /* fits a binary IPv6 address */
  450|     30|    hostname[hlen] = 0; /* end the address there */
  451|     30|    if(curlx_inet_pton(AF_INET6, hostname, dest) != 1)
  ------------------
  |  |   43|     30|  inet_pton(x, y, z)
  ------------------
  |  Branch (451:8): [True: 12, False: 18]
  ------------------
  452|     12|      return CURLUE_BAD_IPV6;
  453|     18|    if(curlx_inet_ntop(AF_INET6, dest, hostname, hlen + 1)) {
  ------------------
  |  |   44|     18|  inet_ntop(af, src, buf, (curl_socklen_t)(size))
  |  |  ------------------
  |  |  |  Branch (44:3): [True: 18, False: 0]
  |  |  ------------------
  ------------------
  454|     18|      hlen = strlen(hostname); /* might be shorter now */
  455|     18|      hostname[hlen + 1] = 0;
  456|     18|    }
  457|     18|    hostname[hlen] = ']'; /* restore ending bracket */
  458|     18|  }
  459|      0|  return CURLUE_OK;
  460|     30|}
ipv4_normalize:
  509|  18.7k|{
  510|  18.7k|  bool done = FALSE;
  ------------------
  |  | 1058|  18.7k|#define FALSE false
  ------------------
  511|  18.7k|  int n = 0;
  512|  18.7k|  const char *c = curlx_dyn_ptr(host);
  513|  18.7k|  unsigned int parts[4] = { 0, 0, 0, 0 };
  514|  18.7k|  CURLcode result = CURLE_OK;
  515|       |
  516|  18.7k|  if(*c == '[')
  ------------------
  |  Branch (516:6): [True: 38, False: 18.7k]
  ------------------
  517|     38|    return HOST_IPV6;
  ------------------
  |  |   50|     38|#define HOST_IPV6    3
  ------------------
  518|       |
  519|  50.0k|  while(!done) {
  ------------------
  |  Branch (519:9): [True: 41.6k, False: 8.41k]
  ------------------
  520|  41.6k|    int rc;
  521|  41.6k|    curl_off_t l;
  522|  41.6k|    if(*c == '0') {
  ------------------
  |  Branch (522:8): [True: 15.2k, False: 26.3k]
  ------------------
  523|  15.2k|      if(c[1] == 'x') {
  ------------------
  |  Branch (523:10): [True: 138, False: 15.1k]
  ------------------
  524|    138|        c += 2; /* skip the prefix */
  525|    138|        rc = curlx_str_hex(&c, &l, UINT_MAX);
  526|    138|        if(rc)
  ------------------
  |  Branch (526:12): [True: 96, False: 42]
  ------------------
  527|     96|          return HOST_NAME;
  ------------------
  |  |   48|     96|#define HOST_NAME    1
  ------------------
  528|    138|      }
  529|  15.1k|      else
  530|  15.1k|        rc = curlx_str_octal(&c, &l, UINT_MAX);
  531|  15.2k|    }
  532|  26.3k|    else
  533|  26.3k|      rc = curlx_str_number(&c, &l, UINT_MAX);
  534|       |
  535|  41.5k|    if(rc) {
  ------------------
  |  Branch (535:8): [True: 9.29k, False: 32.2k]
  ------------------
  536|  9.29k|      if(!n || (rc != STRE_NO_NUM) || *c)
  ------------------
  |  |   36|    956|#define STRE_NO_NUM   8
  ------------------
  |  Branch (536:10): [True: 8.34k, False: 956]
  |  Branch (536:16): [True: 46, False: 910]
  |  Branch (536:39): [True: 526, False: 384]
  ------------------
  537|  8.91k|        return HOST_NAME;
  ------------------
  |  |   48|  8.91k|#define HOST_NAME    1
  ------------------
  538|    384|      n--;
  539|    384|    }
  540|  32.2k|    else
  541|  32.2k|      parts[n] = (unsigned int)l;
  542|       |
  543|  32.5k|    switch(*c) {
  544|  23.1k|    case '.':
  ------------------
  |  Branch (544:5): [True: 23.1k, False: 9.42k]
  ------------------
  545|  23.1k|      if(n == 3) {
  ------------------
  |  Branch (545:10): [True: 315, False: 22.8k]
  ------------------
  546|    315|        if(c[1])
  ------------------
  |  Branch (546:12): [True: 233, False: 82]
  ------------------
  547|       |          /* something follows this dot */
  548|    233|          return HOST_NAME;
  ------------------
  |  |   48|    233|#define HOST_NAME    1
  ------------------
  549|     82|        done = TRUE;
  ------------------
  |  | 1055|     82|#define TRUE true
  ------------------
  550|     82|      }
  551|  22.8k|      else {
  552|  22.8k|        n++;
  553|  22.8k|        c++;
  554|  22.8k|      }
  555|  22.9k|      break;
  556|       |
  557|  22.9k|    case '\0':
  ------------------
  |  Branch (557:5): [True: 8.33k, False: 24.2k]
  ------------------
  558|  8.33k|      done = TRUE;
  ------------------
  |  | 1055|  8.33k|#define TRUE true
  ------------------
  559|  8.33k|      break;
  560|       |
  561|  1.09k|    default:
  ------------------
  |  Branch (561:5): [True: 1.09k, False: 31.5k]
  ------------------
  562|  1.09k|      return HOST_NAME;
  ------------------
  |  |   48|  1.09k|#define HOST_NAME    1
  ------------------
  563|  32.5k|    }
  564|  32.5k|  }
  565|       |
  566|  8.41k|  switch(n) {
  ------------------
  |  Branch (566:10): [True: 8.41k, False: 0]
  ------------------
  567|    757|  case 0: /* a -- 32 bits */
  ------------------
  |  Branch (567:3): [True: 757, False: 7.65k]
  ------------------
  568|    757|    curlx_dyn_reset(host);
  569|       |
  570|    757|    result = curlx_dyn_addf(host, "%u.%u.%u.%u",
  571|    757|                            (parts[0] >> 24),
  572|    757|                            ((parts[0] >> 16) & 0xff),
  573|    757|                            ((parts[0] >> 8) & 0xff),
  574|    757|                            (parts[0] & 0xff));
  575|    757|    break;
  576|    622|  case 1: /* a.b -- 8.24 bits */
  ------------------
  |  Branch (576:3): [True: 622, False: 7.79k]
  ------------------
  577|    622|    if((parts[0] > 0xff) || (parts[1] > 0xffffff))
  ------------------
  |  Branch (577:8): [True: 213, False: 409]
  |  Branch (577:29): [True: 76, False: 333]
  ------------------
  578|    289|      return HOST_NAME;
  ------------------
  |  |   48|    289|#define HOST_NAME    1
  ------------------
  579|    333|    curlx_dyn_reset(host);
  580|    333|    result = curlx_dyn_addf(host, "%u.%u.%u.%u",
  581|    333|                            (parts[0]),
  582|    333|                            ((parts[1] >> 16) & 0xff),
  583|    333|                            ((parts[1] >> 8) & 0xff),
  584|    333|                            (parts[1] & 0xff));
  585|    333|    break;
  586|  1.14k|  case 2: /* a.b.c -- 8.8.16 bits */
  ------------------
  |  Branch (586:3): [True: 1.14k, False: 7.27k]
  ------------------
  587|  1.14k|    if((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xffff))
  ------------------
  |  Branch (587:8): [True: 127, False: 1.01k]
  |  Branch (587:29): [True: 82, False: 932]
  |  Branch (587:50): [True: 70, False: 862]
  ------------------
  588|    279|      return HOST_NAME;
  ------------------
  |  |   48|    279|#define HOST_NAME    1
  ------------------
  589|    862|    curlx_dyn_reset(host);
  590|    862|    result = curlx_dyn_addf(host, "%u.%u.%u.%u",
  591|    862|                            (parts[0]),
  592|    862|                            (parts[1]),
  593|    862|                            ((parts[2] >> 8) & 0xff),
  594|    862|                            (parts[2] & 0xff));
  595|    862|    break;
  596|  5.89k|  case 3: /* a.b.c.d -- 8.8.8.8 bits */
  ------------------
  |  Branch (596:3): [True: 5.89k, False: 2.52k]
  ------------------
  597|  5.89k|    if((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff) ||
  ------------------
  |  Branch (597:8): [True: 157, False: 5.73k]
  |  Branch (597:29): [True: 77, False: 5.65k]
  |  Branch (597:50): [True: 88, False: 5.57k]
  ------------------
  598|  5.57k|       (parts[3] > 0xff))
  ------------------
  |  Branch (598:8): [True: 82, False: 5.48k]
  ------------------
  599|    404|      return HOST_NAME;
  ------------------
  |  |   48|    404|#define HOST_NAME    1
  ------------------
  600|  5.48k|    curlx_dyn_reset(host);
  601|  5.48k|    result = curlx_dyn_addf(host, "%u.%u.%u.%u",
  602|  5.48k|                            (parts[0]),
  603|  5.48k|                            (parts[1]),
  604|  5.48k|                            (parts[2]),
  605|  5.48k|                            (parts[3]));
  606|  5.48k|    break;
  607|  8.41k|  }
  608|  7.44k|  if(result)
  ------------------
  |  Branch (608:6): [True: 0, False: 7.44k]
  ------------------
  609|      0|    return HOST_ERROR;
  ------------------
  |  |   47|      0|#define HOST_ERROR   (-1) /* out of memory */
  ------------------
  610|  7.44k|  return HOST_IPV4;
  ------------------
  |  |   49|  7.44k|#define HOST_IPV4    2
  ------------------
  611|  7.44k|}
dedotdotify:
  754|  13.0k|{
  755|  13.0k|  struct dynbuf out;
  756|  13.0k|  CURLcode result = CURLE_OK;
  757|       |
  758|       |  /* variables for leading dot checks */
  759|  13.0k|  const char *dinput = input;
  760|  13.0k|  size_t dlen = clen;
  761|       |
  762|  13.0k|  *outp = NULL;
  763|       |  /* a single byte path cannot be cleaned up */
  764|  13.0k|  if(clen < 2)
  ------------------
  |  Branch (764:6): [True: 4, False: 13.0k]
  ------------------
  765|      4|    return 0;
  766|       |
  767|  13.0k|  curlx_dyn_init(&out, clen + 1);
  768|       |
  769|       |  /* if the input buffer begins with a prefix of "../" or "./", then remove
  770|       |     that prefix from the input buffer; otherwise, */
  771|  13.0k|  if(is_dot(&dinput, &dlen)) {
  ------------------
  |  Branch (771:6): [True: 0, False: 13.0k]
  ------------------
  772|      0|    if(ISSLASH(*dinput)) {
  ------------------
  |  |  735|      0|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (735:20): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  773|       |      /* one dot followed by a slash */
  774|      0|      input = dinput + 1;
  775|      0|      clen = dlen - 1;
  776|      0|    }
  777|       |
  778|       |    /* if the input buffer consists only of "." or "..", then remove
  779|       |       that from the input buffer; otherwise, */
  780|      0|    else if(is_dot(&dinput, &dlen)) {
  ------------------
  |  Branch (780:13): [True: 0, False: 0]
  ------------------
  781|      0|      if(!dlen)
  ------------------
  |  Branch (781:10): [True: 0, False: 0]
  ------------------
  782|       |        /* .. [end] */
  783|      0|        goto end;
  784|      0|      else if(ISSLASH(*dinput)) {
  ------------------
  |  |  735|      0|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (735:20): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  785|       |        /* ../ */
  786|      0|        input = dinput + 1;
  787|      0|        clen = dlen - 1;
  788|      0|      }
  789|      0|    }
  790|      0|  }
  791|       |
  792|   872k|  while(clen && !result) { /* until end of path content */
  ------------------
  |  Branch (792:9): [True: 859k, False: 12.9k]
  |  Branch (792:17): [True: 859k, False: 0]
  ------------------
  793|   859k|    if(ISSLASH(*input)) {
  ------------------
  |  |  735|   859k|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (735:20): [True: 50.8k, False: 808k]
  |  |  ------------------
  ------------------
  794|  50.8k|      const char *p = &input[1];
  795|  50.8k|      size_t blen = clen - 1;
  796|       |      /* if the input buffer begins with a prefix of "/./" or "/.", where "."
  797|       |         is a complete path segment, then replace that prefix with "/" in the
  798|       |         input buffer; otherwise, */
  799|  50.8k|      if(is_dot(&p, &blen)) {
  ------------------
  |  Branch (799:10): [True: 3.18k, False: 47.7k]
  ------------------
  800|  3.18k|        if(!blen) { /* /. */
  ------------------
  |  Branch (800:12): [True: 38, False: 3.14k]
  ------------------
  801|     38|          result = curlx_dyn_addn(&out, "/", 1);
  802|     38|          break;
  803|     38|        }
  804|  3.14k|        else if(ISSLASH(*p)) { /* /./ */
  ------------------
  |  |  735|  3.14k|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (735:20): [True: 61, False: 3.08k]
  |  |  ------------------
  ------------------
  805|     61|          input = p;
  806|     61|          clen = blen;
  807|     61|          continue;
  808|     61|        }
  809|       |
  810|       |        /* if the input buffer begins with a prefix of "/../" or "/..", where
  811|       |           ".." is a complete path segment, then replace that prefix with "/"
  812|       |           in the input buffer and remove the last segment and its preceding
  813|       |           "/" (if any) from the output buffer; otherwise, */
  814|  3.08k|        else if(is_dot(&p, &blen) && (ISSLASH(*p) || !blen)) {
  ------------------
  |  |  735|  1.74k|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (735:20): [True: 115, False: 756]
  |  |  ------------------
  ------------------
  |  Branch (814:17): [True: 871, False: 2.21k]
  |  Branch (814:54): [True: 3, False: 753]
  ------------------
  815|       |          /* remove the last segment from the output buffer */
  816|    118|          size_t len = curlx_dyn_len(&out);
  817|    118|          if(len) {
  ------------------
  |  Branch (817:14): [True: 69, False: 49]
  ------------------
  818|     69|            const char *ptr = curlx_dyn_ptr(&out);
  819|     69|            const char *last = memrchr(ptr, '/', len);
  820|     69|            if(last)
  ------------------
  |  Branch (820:16): [True: 69, False: 0]
  ------------------
  821|       |              /* trim the output at the slash */
  822|     69|              curlx_dyn_setlen(&out, last - ptr);
  823|     69|          }
  824|       |
  825|    118|          if(blen) { /* /../ */
  ------------------
  |  Branch (825:14): [True: 115, False: 3]
  ------------------
  826|    115|            input = p;
  827|    115|            clen = blen;
  828|    115|            continue;
  829|    115|          }
  830|      3|          result = curlx_dyn_addn(&out, "/", 1);
  831|      3|          break;
  832|    118|        }
  833|  3.18k|      }
  834|  50.8k|    }
  835|       |
  836|       |    /* move the first path segment in the input buffer to the end of the
  837|       |       output buffer, including the initial "/" character (if any) and any
  838|       |       subsequent characters up to, but not including, the next "/" character
  839|       |       or the end of the input buffer. */
  840|       |
  841|   859k|    result = curlx_dyn_addn(&out, input, 1);
  842|   859k|    input++;
  843|   859k|    clen--;
  844|   859k|  }
  845|  13.0k|end:
  846|  13.0k|  if(!result) {
  ------------------
  |  Branch (846:6): [True: 13.0k, False: 0]
  ------------------
  847|  13.0k|    if(curlx_dyn_len(&out))
  ------------------
  |  Branch (847:8): [True: 13.0k, False: 0]
  ------------------
  848|  13.0k|      *outp = curlx_dyn_ptr(&out);
  849|      0|    else {
  850|      0|      *outp = curlx_strdup("");
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  851|      0|      if(!*outp)
  ------------------
  |  Branch (851:10): [True: 0, False: 0]
  ------------------
  852|      0|        return 1;
  853|      0|    }
  854|  13.0k|  }
  855|  13.0k|  return result ? 1 : 0; /* success */
  ------------------
  |  Branch (855:10): [True: 0, False: 13.0k]
  ------------------
  856|  13.0k|}
parse_file:
  865|     54|{
  866|     54|  const char *path;
  867|     54|  size_t pathlen;
  868|       |
  869|     54|  *pathp = NULL;
  870|     54|  *pathlenp = 0;
  871|     54|  if(urllen <= 6)
  ------------------
  |  Branch (871:6): [True: 1, False: 53]
  ------------------
  872|       |    /* file:/ is not enough to actually be a complete file: URL */
  873|      1|    return CURLUE_BAD_FILE_URL;
  874|       |
  875|       |  /* path has been allocated large enough to hold this */
  876|     53|  path = &url[5];
  877|     53|  pathlen = urllen - 5;
  878|       |
  879|       |  /* RFC 8089: file-hier-part = ( "//" auth-path ) / local-path, where
  880|       |     local-path also starts with a "/". So reject anything that doesn't
  881|       |     start with at least one "/" */
  882|     53|  if(path[0] != '/')
  ------------------
  |  Branch (882:6): [True: 30, False: 23]
  ------------------
  883|     30|    return CURLUE_BAD_FILE_URL;
  884|       |
  885|       |  /* Extra handling URLs with an authority component (i.e. that start with
  886|       |   * "file://")
  887|       |   *
  888|       |   * We allow omitted hostname (e.g. file:/<path>) -- valid according to
  889|       |   * RFC 8089, but not the (current) WHAT-WG URL spec.
  890|       |   */
  891|     23|  if(path[1] == '/') {
  ------------------
  |  Branch (891:6): [True: 18, False: 5]
  ------------------
  892|       |    /* swallow the two slashes */
  893|     18|    const char *ptr = &path[2];
  894|       |
  895|       |    /*
  896|       |     * According to RFC 8089, a file: URL can be reliably dereferenced if:
  897|       |     *
  898|       |     *  o it has no/blank hostname, or
  899|       |     *
  900|       |     *  o the hostname matches "localhost" (case-insensitively), or
  901|       |     *
  902|       |     *  o the hostname is a FQDN that resolves to this machine, or
  903|       |     *
  904|       |     * For brevity, we only consider URLs with empty, "localhost", or
  905|       |     * "127.0.0.1" hostnames as local, otherwise as an UNC String.
  906|       |     *
  907|       |     * Additionally, there is an exception for URLs with a Windows drive
  908|       |     * letter in the authority (which was accidentally omitted from RFC 8089
  909|       |     * Appendix E, but believe me, it was meant to be there. --MK)
  910|       |     */
  911|     18|    if(ptr[0] != '/' && !STARTS_WITH_URL_DRIVE_PREFIX(ptr)) {
  ------------------
  |  |   49|      9|  ((('a' <= (str)[0] && (str)[0] <= 'z') ||                \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 1, False: 8]
  |  |  |  Branch (49:25): [True: 1, False: 0]
  |  |  ------------------
  |  |   50|      9|    ('A' <= (str)[0] && (str)[0] <= 'Z')) &&               \
  |  |  ------------------
  |  |  |  Branch (50:6): [True: 0, False: 8]
  |  |  |  Branch (50:25): [True: 0, False: 0]
  |  |  ------------------
  |  |   51|      9|   ((str)[1] == ':' || (str)[1] == '|') &&                 \
  |  |  ------------------
  |  |  |  Branch (51:5): [True: 0, False: 1]
  |  |  |  Branch (51:24): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      9|   ((str)[2] == '/' || (str)[2] == '\\' || (str)[2] == 0))
  |  |  ------------------
  |  |  |  Branch (52:5): [True: 0, False: 1]
  |  |  |  Branch (52:24): [True: 1, False: 0]
  |  |  |  Branch (52:44): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (911:8): [True: 9, False: 9]
  ------------------
  912|       |      /* the URL includes a hostname, it must match "localhost" or
  913|       |         "127.0.0.1" to be valid */
  914|      8|      if(checkprefix("localhost/", ptr) ||
  ------------------
  |  |   33|     16|#define checkprefix(a, b) curl_strnequal(b, STRCONST(a))
  |  |  ------------------
  |  |  |  | 1292|      8|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 0, False: 8]
  |  |  ------------------
  ------------------
  915|      8|         checkprefix("127.0.0.1/", ptr)) {
  ------------------
  |  |   33|      8|#define checkprefix(a, b) curl_strnequal(b, STRCONST(a))
  |  |  ------------------
  |  |  |  | 1292|      8|#define STRCONST(x) x, sizeof(x) - 1
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 6, False: 2]
  |  |  ------------------
  ------------------
  916|      6|        ptr += 9; /* now points to the slash after the host */
  917|      6|      }
  918|      2|      else
  919|       |        /* Invalid file://hostname/, expected localhost or 127.0.0.1 or
  920|       |           none */
  921|      2|        return CURLUE_BAD_FILE_URL;
  922|      8|    }
  923|       |
  924|     16|    path = ptr;
  925|     16|    pathlen = urllen - (ptr - url);
  926|     16|  }
  927|       |
  928|     21|#if !defined(_WIN32) && !defined(MSDOS) && !defined(__CYGWIN__)
  929|       |  /* Do not allow Windows drive letters when not in Windows.
  930|       |   * This catches both "file:/c:" and "file:c:" */
  931|     21|  if(('/' == path[0] && STARTS_WITH_URL_DRIVE_PREFIX(&path[1])) ||
  ------------------
  |  |   49|     20|  ((('a' <= (str)[0] && (str)[0] <= 'z') ||                \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 9, False: 11]
  |  |  |  Branch (49:25): [True: 9, False: 0]
  |  |  ------------------
  |  |   50|     20|    ('A' <= (str)[0] && (str)[0] <= 'Z')) &&               \
  |  |  ------------------
  |  |  |  Branch (50:6): [True: 3, False: 8]
  |  |  |  Branch (50:25): [True: 3, False: 0]
  |  |  ------------------
  |  |   51|     20|   ((str)[1] == ':' || (str)[1] == '|') &&                 \
  |  |  ------------------
  |  |  |  Branch (51:5): [True: 5, False: 7]
  |  |  |  Branch (51:24): [True: 3, False: 4]
  |  |  ------------------
  |  |   52|     20|   ((str)[2] == '/' || (str)[2] == '\\' || (str)[2] == 0))
  |  |  ------------------
  |  |  |  Branch (52:5): [True: 1, False: 7]
  |  |  |  Branch (52:24): [True: 1, False: 6]
  |  |  |  Branch (52:44): [True: 1, False: 5]
  |  |  ------------------
  ------------------
  |  Branch (931:7): [True: 20, False: 1]
  ------------------
  932|     18|     STARTS_WITH_URL_DRIVE_PREFIX(path)) {
  ------------------
  |  |   49|     18|  ((('a' <= (str)[0] && (str)[0] <= 'z') ||                \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 1, False: 17]
  |  |  |  Branch (49:25): [True: 1, False: 0]
  |  |  ------------------
  |  |   50|     18|    ('A' <= (str)[0] && (str)[0] <= 'Z')) &&               \
  |  |  ------------------
  |  |  |  Branch (50:6): [True: 0, False: 17]
  |  |  |  Branch (50:25): [True: 0, False: 0]
  |  |  ------------------
  |  |   51|     18|   ((str)[1] == ':' || (str)[1] == '|') &&                 \
  |  |  ------------------
  |  |  |  Branch (51:5): [True: 0, False: 1]
  |  |  |  Branch (51:24): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|     18|   ((str)[2] == '/' || (str)[2] == '\\' || (str)[2] == 0))
  |  |  ------------------
  |  |  |  Branch (52:5): [True: 0, False: 1]
  |  |  |  Branch (52:24): [True: 1, False: 0]
  |  |  |  Branch (52:44): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  933|       |    /* File drive letters are only accepted in MS-DOS/Windows */
  934|      4|    return CURLUE_BAD_FILE_URL;
  935|      4|  }
  936|       |#else
  937|       |  /* If the path starts with a slash and a drive letter, ditch the slash */
  938|       |  if('/' == path[0] && STARTS_WITH_URL_DRIVE_PREFIX(&path[1])) {
  939|       |    /* This cannot be done with strcpy, as the memory chunks overlap! */
  940|       |    path++;
  941|       |    pathlen--;
  942|       |  }
  943|       |#endif
  944|     17|  u->scheme = curlx_strdup("file");
  ------------------
  |  | 1477|     17|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  945|     17|  if(!u->scheme)
  ------------------
  |  Branch (945:6): [True: 0, False: 17]
  ------------------
  946|      0|    return CURLUE_OUT_OF_MEMORY;
  947|       |
  948|     17|  *pathp = path;
  949|     17|  *pathlenp = pathlen;
  950|     17|  return CURLUE_OK;
  951|     17|}
curl_url:
 1312|  15.4k|{
 1313|  15.4k|  return curlx_calloc(1, sizeof(struct Curl_URL));
  ------------------
  |  | 1480|  15.4k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1314|  15.4k|}
curl_url_cleanup:
 1317|  34.0k|{
 1318|  34.0k|  if(u) {
  ------------------
  |  Branch (1318:6): [True: 15.4k, False: 18.5k]
  ------------------
 1319|  15.4k|    free_urlhandle(u);
 1320|  15.4k|    curlx_free(u);
  ------------------
  |  | 1483|  15.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1321|  15.4k|  }
 1322|  34.0k|}
curl_url_get:
 1564|   111k|{
 1565|   111k|  const char *ptr;
 1566|   111k|  CURLUcode ifmissing = CURLUE_UNKNOWN_PART;
 1567|   111k|  char portbuf[7];
 1568|   111k|  bool plusdecode = FALSE;
  ------------------
  |  | 1058|   111k|#define FALSE false
  ------------------
 1569|   111k|  if(!u)
  ------------------
  |  Branch (1569:6): [True: 0, False: 111k]
  ------------------
 1570|      0|    return CURLUE_BAD_HANDLE;
 1571|   111k|  if(!part)
  ------------------
  |  Branch (1571:6): [True: 0, False: 111k]
  ------------------
 1572|      0|    return CURLUE_BAD_PARTPOINTER;
 1573|   111k|  *part = NULL;
 1574|       |
 1575|   111k|  switch(what) {
 1576|  10.5k|  case CURLUPART_SCHEME:
  ------------------
  |  Branch (1576:3): [True: 10.5k, False: 101k]
  ------------------
 1577|  10.5k|    ptr = u->scheme;
 1578|  10.5k|    ifmissing = CURLUE_NO_SCHEME;
 1579|  10.5k|    flags &= ~U_CURLU_URLDECODE; /* never for schemes */
  ------------------
  |  |   63|  10.5k|#define U_CURLU_URLDECODE  (unsigned int)CURLU_URLDECODE
  |  |  ------------------
  |  |  |  |   93|  10.5k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  |  |  ------------------
  ------------------
 1580|  10.5k|    if((flags & CURLU_NO_GUESS_SCHEME) && u->guessed_scheme)
  ------------------
  |  |  105|  10.5k|#define CURLU_NO_GUESS_SCHEME (1 << 15)   /* for get, do not accept a guess */
  ------------------
  |  Branch (1580:8): [True: 0, False: 10.5k]
  |  Branch (1580:43): [True: 0, False: 0]
  ------------------
 1581|      0|      return CURLUE_NO_SCHEME;
 1582|  10.5k|    break;
 1583|  10.5k|  case CURLUPART_USER:
  ------------------
  |  Branch (1583:3): [True: 10.3k, False: 101k]
  ------------------
 1584|  10.3k|    ptr = u->user;
 1585|  10.3k|    ifmissing = CURLUE_NO_USER;
 1586|  10.3k|    break;
 1587|  10.3k|  case CURLUPART_PASSWORD:
  ------------------
  |  Branch (1587:3): [True: 10.3k, False: 101k]
  ------------------
 1588|  10.3k|    ptr = u->password;
 1589|  10.3k|    ifmissing = CURLUE_NO_PASSWORD;
 1590|  10.3k|    break;
 1591|  10.3k|  case CURLUPART_OPTIONS:
  ------------------
  |  Branch (1591:3): [True: 10.3k, False: 101k]
  ------------------
 1592|  10.3k|    ptr = u->options;
 1593|  10.3k|    ifmissing = CURLUE_NO_OPTIONS;
 1594|  10.3k|    break;
 1595|  10.5k|  case CURLUPART_HOST:
  ------------------
  |  Branch (1595:3): [True: 10.5k, False: 101k]
  ------------------
 1596|  10.5k|    ptr = u->host;
 1597|  10.5k|    ifmissing = CURLUE_NO_HOST;
 1598|  10.5k|    break;
 1599|  10.4k|  case CURLUPART_ZONEID:
  ------------------
  |  Branch (1599:3): [True: 10.4k, False: 101k]
  ------------------
 1600|  10.4k|    ptr = u->zoneid;
 1601|  10.4k|    ifmissing = CURLUE_NO_ZONEID;
 1602|  10.4k|    break;
 1603|  10.4k|  case CURLUPART_PORT:
  ------------------
  |  Branch (1603:3): [True: 10.4k, False: 101k]
  ------------------
 1604|  10.4k|    ptr = u->port;
 1605|  10.4k|    ifmissing = CURLUE_NO_PORT;
 1606|  10.4k|    flags &= ~U_CURLU_URLDECODE; /* never for port */
  ------------------
  |  |   63|  10.4k|#define U_CURLU_URLDECODE  (unsigned int)CURLU_URLDECODE
  |  |  ------------------
  |  |  |  |   93|  10.4k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  |  |  ------------------
  ------------------
 1607|  10.4k|    if(!ptr && (flags & CURLU_DEFAULT_PORT) && u->scheme) {
  ------------------
  |  |   84|  10.0k|#define CURLU_DEFAULT_PORT (1 << 0)       /* return default port number */
  ------------------
  |  Branch (1607:8): [True: 10.0k, False: 392]
  |  Branch (1607:16): [True: 10.0k, False: 0]
  |  Branch (1607:48): [True: 10.0k, False: 0]
  ------------------
 1608|       |      /* there is no stored port number, but asked to deliver
 1609|       |         a default one for the scheme */
 1610|  10.0k|      const struct Curl_scheme *h = Curl_get_scheme(u->scheme);
 1611|  10.0k|      if(h) {
  ------------------
  |  Branch (1611:10): [True: 10.0k, False: 0]
  ------------------
 1612|  10.0k|        curl_msnprintf(portbuf, sizeof(portbuf), "%u", h->defport);
 1613|  10.0k|        ptr = portbuf;
 1614|  10.0k|      }
 1615|  10.0k|    }
 1616|    392|    else if(ptr && u->scheme) {
  ------------------
  |  Branch (1616:13): [True: 392, False: 0]
  |  Branch (1616:20): [True: 392, False: 0]
  ------------------
 1617|       |      /* there is a stored port number, but ask to inhibit if
 1618|       |         it matches the default one for the scheme */
 1619|    392|      const struct Curl_scheme *h = Curl_get_scheme(u->scheme);
 1620|    392|      if(h && (h->defport == u->portnum) &&
  ------------------
  |  Branch (1620:10): [True: 392, False: 0]
  |  Branch (1620:15): [True: 1, False: 391]
  ------------------
 1621|      1|         (flags & CURLU_NO_DEFAULT_PORT))
  ------------------
  |  |   85|      1|#define CURLU_NO_DEFAULT_PORT (1 << 1)    /* act as if no port number was set,
  ------------------
  |  Branch (1621:10): [True: 0, False: 1]
  ------------------
 1622|      0|        ptr = NULL;
 1623|    392|    }
 1624|  10.4k|    break;
 1625|  10.3k|  case CURLUPART_PATH:
  ------------------
  |  Branch (1625:3): [True: 10.3k, False: 101k]
  ------------------
 1626|  10.3k|    ptr = u->path;
 1627|  10.3k|    if(!ptr)
  ------------------
  |  Branch (1627:8): [True: 4.37k, False: 5.94k]
  ------------------
 1628|  4.37k|      ptr = "/";
 1629|  10.3k|    break;
 1630|  10.3k|  case CURLUPART_QUERY:
  ------------------
  |  Branch (1630:3): [True: 10.3k, False: 101k]
  ------------------
 1631|  10.3k|    ptr = u->query;
 1632|  10.3k|    ifmissing = CURLUE_NO_QUERY;
 1633|  10.3k|    plusdecode = flags & CURLU_URLDECODE;
  ------------------
  |  |   93|  10.3k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  ------------------
 1634|  10.3k|    if(ptr && !ptr[0] && !(flags & CURLU_GET_EMPTY))
  ------------------
  |  |  102|     31|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
  |  Branch (1634:8): [True: 523, False: 9.80k]
  |  Branch (1634:15): [True: 31, False: 492]
  |  Branch (1634:26): [True: 0, False: 31]
  ------------------
 1635|       |      /* there was a blank query and the user do not ask for it */
 1636|      0|      ptr = NULL;
 1637|  10.3k|    break;
 1638|      0|  case CURLUPART_FRAGMENT:
  ------------------
  |  Branch (1638:3): [True: 0, False: 111k]
  ------------------
 1639|      0|    ptr = u->fragment;
 1640|      0|    ifmissing = CURLUE_NO_FRAGMENT;
 1641|      0|    if(!ptr && u->fragment_present && flags & CURLU_GET_EMPTY)
  ------------------
  |  |  102|      0|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
  |  Branch (1641:8): [True: 0, False: 0]
  |  Branch (1641:16): [True: 0, False: 0]
  |  Branch (1641:39): [True: 0, False: 0]
  ------------------
 1642|       |      /* there was a blank fragment and the user asks for it */
 1643|      0|      ptr = "";
 1644|      0|    break;
 1645|  17.9k|  case CURLUPART_URL:
  ------------------
  |  Branch (1645:3): [True: 17.9k, False: 93.5k]
  ------------------
 1646|  17.9k|    return urlget_url(u, part, flags);
 1647|      0|  default:
  ------------------
  |  Branch (1647:3): [True: 0, False: 111k]
  ------------------
 1648|      0|    ptr = NULL;
 1649|      0|    break;
 1650|   111k|  }
 1651|  93.5k|  if(ptr)
  ------------------
  |  Branch (1651:6): [True: 44.1k, False: 49.4k]
  ------------------
 1652|  44.1k|    return urlget_format(u, what, ptr, part, plusdecode, flags);
 1653|       |
 1654|  49.4k|  return ifmissing;
 1655|  93.5k|}
curl_url_set:
 1830|  21.5k|{
 1831|  21.5k|  char **storep = NULL;
 1832|  21.5k|  bool urlencode = (flags & CURLU_URLENCODE) ? 1 : 0;
  ------------------
  |  |   94|  21.5k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1832:20): [True: 6.75k, False: 14.8k]
  ------------------
 1833|  21.5k|  bool plusencode = FALSE;
  ------------------
  |  | 1058|  21.5k|#define FALSE false
  ------------------
 1834|  21.5k|  bool pathmode = FALSE;
  ------------------
  |  | 1058|  21.5k|#define FALSE false
  ------------------
 1835|  21.5k|  bool leadingslash = FALSE;
  ------------------
  |  | 1058|  21.5k|#define FALSE false
  ------------------
 1836|  21.5k|  bool appendquery = FALSE;
  ------------------
  |  | 1058|  21.5k|#define FALSE false
  ------------------
 1837|  21.5k|  bool equalsencode = FALSE;
  ------------------
  |  | 1058|  21.5k|#define FALSE false
  ------------------
 1838|  21.5k|  size_t nalloc;
 1839|       |
 1840|  21.5k|  if(!u)
  ------------------
  |  Branch (1840:6): [True: 0, False: 21.5k]
  ------------------
 1841|      0|    return CURLUE_BAD_HANDLE;
 1842|  21.5k|  if(!part)
  ------------------
  |  Branch (1842:6): [True: 2.42k, False: 19.1k]
  ------------------
 1843|       |    /* setting a part to NULL clears it */
 1844|  2.42k|    return urlset_clear(u, what);
 1845|       |
 1846|  19.1k|  nalloc = strlen(part);
 1847|  19.1k|  if(nalloc > CURL_MAX_INPUT_LENGTH)
  ------------------
  |  |   45|  19.1k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (1847:6): [True: 0, False: 19.1k]
  ------------------
 1848|       |    /* excessive input length */
 1849|      0|    return CURLUE_MALFORMED_INPUT;
 1850|       |
 1851|  19.1k|  switch(what) {
 1852|      0|  case CURLUPART_SCHEME: {
  ------------------
  |  Branch (1852:3): [True: 0, False: 19.1k]
  ------------------
 1853|      0|    CURLUcode status = set_url_scheme(u, part, flags);
 1854|      0|    if(status)
  ------------------
  |  Branch (1854:8): [True: 0, False: 0]
  ------------------
 1855|      0|      return status;
 1856|      0|    storep = &u->scheme;
 1857|      0|    urlencode = FALSE; /* never */
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1858|      0|    break;
 1859|      0|  }
 1860|      0|  case CURLUPART_USER:
  ------------------
  |  Branch (1860:3): [True: 0, False: 19.1k]
  ------------------
 1861|      0|    storep = &u->user;
 1862|      0|    break;
 1863|      0|  case CURLUPART_PASSWORD:
  ------------------
  |  Branch (1863:3): [True: 0, False: 19.1k]
  ------------------
 1864|      0|    storep = &u->password;
 1865|      0|    break;
 1866|      0|  case CURLUPART_OPTIONS:
  ------------------
  |  Branch (1866:3): [True: 0, False: 19.1k]
  ------------------
 1867|      0|    storep = &u->options;
 1868|      0|    break;
 1869|      0|  case CURLUPART_HOST:
  ------------------
  |  Branch (1869:3): [True: 0, False: 19.1k]
  ------------------
 1870|      0|    storep = &u->host;
 1871|      0|    curlx_safefree(u->zoneid);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1872|      0|    break;
 1873|      0|  case CURLUPART_ZONEID:
  ------------------
  |  Branch (1873:3): [True: 0, False: 19.1k]
  ------------------
 1874|      0|    storep = &u->zoneid;
 1875|      0|    break;
 1876|      0|  case CURLUPART_PORT:
  ------------------
  |  Branch (1876:3): [True: 0, False: 19.1k]
  ------------------
 1877|      0|    return set_url_port(u, part);
 1878|      0|  case CURLUPART_PATH:
  ------------------
  |  Branch (1878:3): [True: 0, False: 19.1k]
  ------------------
 1879|      0|    pathmode = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1880|      0|    leadingslash = TRUE; /* enforce */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1881|      0|    storep = &u->path;
 1882|      0|    break;
 1883|      0|  case CURLUPART_QUERY:
  ------------------
  |  Branch (1883:3): [True: 0, False: 19.1k]
  ------------------
 1884|      0|    plusencode = urlencode;
 1885|      0|    appendquery = (flags & CURLU_APPENDQUERY) ? 1 : 0;
  ------------------
  |  |   95|      0|#define CURLU_APPENDQUERY (1 << 8)        /* append a form style part */
  ------------------
  |  Branch (1885:19): [True: 0, False: 0]
  ------------------
 1886|      0|    equalsencode = appendquery;
 1887|      0|    storep = &u->query;
 1888|      0|    u->query_present = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1889|      0|    break;
 1890|      0|  case CURLUPART_FRAGMENT:
  ------------------
  |  Branch (1890:3): [True: 0, False: 19.1k]
  ------------------
 1891|      0|    storep = &u->fragment;
 1892|      0|    u->fragment_present = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1893|      0|    break;
 1894|  19.1k|  case CURLUPART_URL:
  ------------------
  |  Branch (1894:3): [True: 19.1k, False: 0]
  ------------------
 1895|  19.1k|    return set_url(u, part, nalloc, flags);
 1896|      0|  default:
  ------------------
  |  Branch (1896:3): [True: 0, False: 19.1k]
  ------------------
 1897|      0|    return CURLUE_UNKNOWN_PART;
 1898|  19.1k|  }
 1899|      0|  DEBUGASSERT(storep);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1899:3): [True: 0, False: 0]
  |  Branch (1899:3): [True: 0, False: 0]
  ------------------
 1900|      0|  {
 1901|      0|    const char *newp;
 1902|      0|    struct dynbuf enc;
 1903|      0|    curlx_dyn_init(&enc, (nalloc * 3) + 1 + leadingslash);
 1904|       |
 1905|      0|    if(leadingslash && (part[0] != '/')) {
  ------------------
  |  Branch (1905:8): [True: 0, False: 0]
  |  Branch (1905:24): [True: 0, False: 0]
  ------------------
 1906|      0|      CURLcode result = curlx_dyn_addn(&enc, "/", 1);
 1907|      0|      if(result)
  ------------------
  |  Branch (1907:10): [True: 0, False: 0]
  ------------------
 1908|      0|        return cc2cu(result);
  ------------------
  |  |  104|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (104:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1909|      0|    }
 1910|      0|    if(urlencode) {
  ------------------
  |  Branch (1910:8): [True: 0, False: 0]
  ------------------
 1911|      0|      const unsigned char *i;
 1912|       |
 1913|      0|      for(i = (const unsigned char *)part; *i; i++) {
  ------------------
  |  Branch (1913:44): [True: 0, False: 0]
  ------------------
 1914|      0|        CURLcode result;
 1915|      0|        if((*i == ' ') && plusencode) {
  ------------------
  |  Branch (1915:12): [True: 0, False: 0]
  |  Branch (1915:27): [True: 0, False: 0]
  ------------------
 1916|      0|          result = curlx_dyn_addn(&enc, "+", 1);
 1917|      0|          if(result)
  ------------------
  |  Branch (1917:14): [True: 0, False: 0]
  ------------------
 1918|      0|            return CURLUE_OUT_OF_MEMORY;
 1919|      0|        }
 1920|      0|        else if(ISUNRESERVED(*i) ||
  ------------------
  |  |   49|      0|#define ISUNRESERVED(x) (ISALNUM(x) || ISURLPUNTCS(x))
  |  |  ------------------
  |  |  |  |   41|      0|#define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   44|      0|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (44:22): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (44:38): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   43|      0|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (43:22): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (43:38): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   42|      0|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (42:22): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (42:38): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISUNRESERVED(x) (ISALNUM(x) || ISURLPUNTCS(x))
  |  |  ------------------
  |  |  |  |   48|      0|  (((x) == '-') || ((x) == '.') || ((x) == '_') || ((x) == '~'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (48:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (48:20): [True: 0, False: 0]
  |  |  |  |  |  Branch (48:36): [True: 0, False: 0]
  |  |  |  |  |  Branch (48:52): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1921|      0|                (pathmode && allowed_in_path(*i)) ||
  ------------------
  |  Branch (1921:18): [True: 0, False: 0]
  |  Branch (1921:30): [True: 0, False: 0]
  ------------------
 1922|      0|                ((*i == '=') && equalsencode)) {
  ------------------
  |  Branch (1922:18): [True: 0, False: 0]
  |  Branch (1922:33): [True: 0, False: 0]
  ------------------
 1923|      0|          if((*i == '=') && equalsencode)
  ------------------
  |  Branch (1923:14): [True: 0, False: 0]
  |  Branch (1923:29): [True: 0, False: 0]
  ------------------
 1924|       |            /* only skip the first equals sign */
 1925|      0|            equalsencode = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1926|      0|          result = curlx_dyn_addn(&enc, i, 1);
 1927|      0|          if(result)
  ------------------
  |  Branch (1927:14): [True: 0, False: 0]
  ------------------
 1928|      0|            return cc2cu(result);
  ------------------
  |  |  104|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (104:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1929|      0|        }
 1930|      0|        else {
 1931|      0|          unsigned char out[3] = { '%' };
 1932|      0|          Curl_hexbyte(&out[1], *i);
 1933|      0|          result = curlx_dyn_addn(&enc, out, 3);
 1934|      0|          if(result)
  ------------------
  |  Branch (1934:14): [True: 0, False: 0]
  ------------------
 1935|      0|            return cc2cu(result);
  ------------------
  |  |  104|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (104:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1936|      0|        }
 1937|      0|      }
 1938|      0|    }
 1939|      0|    else {
 1940|      0|      char *p;
 1941|      0|      CURLcode result = curlx_dyn_add(&enc, part);
 1942|      0|      if(result)
  ------------------
  |  Branch (1942:10): [True: 0, False: 0]
  ------------------
 1943|      0|        return cc2cu(result);
  ------------------
  |  |  104|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (104:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1944|      0|      p = curlx_dyn_ptr(&enc);
 1945|      0|      while(*p) {
  ------------------
  |  Branch (1945:13): [True: 0, False: 0]
  ------------------
 1946|       |        /* make sure percent encoded are upper case */
 1947|      0|        if((*p == '%') && ISXDIGIT(p[1]) && ISXDIGIT(p[2]) &&
  ------------------
  |  |   39|      0|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|      0|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (44:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|      0|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 0, False: 0]
  |  |  |  |  |  Branch (27:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|      0|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 0, False: 0]
  |  |  |  |  |  Branch (28:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      if((*p == '%') && ISXDIGIT(p[1]) && ISXDIGIT(p[2]) &&
  ------------------
  |  |   39|      0|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   44|      0|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (44:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (44:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|      0|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 0, False: 0]
  |  |  |  |  |  Branch (27:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|      0|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 0, False: 0]
  |  |  |  |  |  Branch (28:43): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1947:12): [True: 0, False: 0]
  ------------------
 1948|      0|           (ISLOWER(p[1]) || ISLOWER(p[2]))) {
  ------------------
  |  |   43|      0|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 0, False: 0]
  |  |  |  Branch (43:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                         (ISLOWER(p[1]) || ISLOWER(p[2]))) {
  ------------------
  |  |   43|      0|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 0, False: 0]
  |  |  |  Branch (43:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1949|      0|          p[1] = Curl_raw_toupper(p[1]);
 1950|      0|          p[2] = Curl_raw_toupper(p[2]);
 1951|      0|          p += 3;
 1952|      0|        }
 1953|      0|        else
 1954|      0|          p++;
 1955|      0|      }
 1956|      0|    }
 1957|      0|    newp = curlx_dyn_ptr(&enc);
 1958|       |
 1959|      0|    if(appendquery && newp) {
  ------------------
  |  Branch (1959:8): [True: 0, False: 0]
  |  Branch (1959:23): [True: 0, False: 0]
  ------------------
 1960|       |      /* Append the 'newp' string onto the old query. Add a '&' separator if
 1961|       |         none is present at the end of the existing query already */
 1962|       |
 1963|      0|      size_t querylen = u->query ? strlen(u->query) : 0;
  ------------------
  |  Branch (1963:25): [True: 0, False: 0]
  ------------------
 1964|      0|      bool addamperand = querylen && (u->query[querylen - 1] != '&');
  ------------------
  |  Branch (1964:26): [True: 0, False: 0]
  |  Branch (1964:38): [True: 0, False: 0]
  ------------------
 1965|      0|      if(querylen) {
  ------------------
  |  Branch (1965:10): [True: 0, False: 0]
  ------------------
 1966|      0|        struct dynbuf qbuf;
 1967|      0|        curlx_dyn_init(&qbuf, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|      0|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1968|       |
 1969|      0|        if(curlx_dyn_addn(&qbuf, u->query, querylen)) /* add original query */
  ------------------
  |  Branch (1969:12): [True: 0, False: 0]
  ------------------
 1970|      0|          goto nomem;
 1971|       |
 1972|      0|        if(addamperand) {
  ------------------
  |  Branch (1972:12): [True: 0, False: 0]
  ------------------
 1973|      0|          if(curlx_dyn_addn(&qbuf, "&", 1))
  ------------------
  |  Branch (1973:14): [True: 0, False: 0]
  ------------------
 1974|      0|            goto nomem;
 1975|      0|        }
 1976|      0|        if(curlx_dyn_add(&qbuf, newp))
  ------------------
  |  Branch (1976:12): [True: 0, False: 0]
  ------------------
 1977|      0|          goto nomem;
 1978|      0|        curlx_dyn_free(&enc);
 1979|      0|        curlx_free(*storep);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1980|      0|        *storep = curlx_dyn_ptr(&qbuf);
 1981|      0|        return CURLUE_OK;
 1982|      0|nomem:
 1983|      0|        curlx_dyn_free(&enc);
 1984|      0|        return CURLUE_OUT_OF_MEMORY;
 1985|      0|      }
 1986|      0|    }
 1987|      0|    else if(what == CURLUPART_HOST) {
  ------------------
  |  Branch (1987:13): [True: 0, False: 0]
  ------------------
 1988|      0|      size_t n = curlx_dyn_len(&enc);
 1989|      0|      if(!n && (flags & CURLU_NO_AUTHORITY)) {
  ------------------
  |  |   97|      0|#define CURLU_NO_AUTHORITY (1 << 10)      /* Allow empty authority when the
  ------------------
  |  Branch (1989:10): [True: 0, False: 0]
  |  Branch (1989:16): [True: 0, False: 0]
  ------------------
 1990|       |        /* Skip hostname check, it is allowed to be empty. */
 1991|      0|      }
 1992|      0|      else {
 1993|      0|        bool bad = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1994|      0|        if(!n)
  ------------------
  |  Branch (1994:12): [True: 0, False: 0]
  ------------------
 1995|      0|          bad = TRUE; /* empty hostname is not okay */
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1996|      0|        else if(!urlencode) {
  ------------------
  |  Branch (1996:17): [True: 0, False: 0]
  ------------------
 1997|       |          /* if the hostname part was not URL encoded here, it was set ready
 1998|       |             URL encoded so we need to decode it to check */
 1999|      0|          size_t dlen;
 2000|      0|          char *decoded = NULL;
 2001|      0|          CURLcode result =
 2002|      0|            Curl_urldecode(newp, n, &decoded, &dlen, REJECT_CTRL);
 2003|      0|          if(result || hostname_check(u, decoded, dlen))
  ------------------
  |  Branch (2003:14): [True: 0, False: 0]
  |  Branch (2003:24): [True: 0, False: 0]
  ------------------
 2004|      0|            bad = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2005|      0|          curlx_free(decoded);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2006|      0|        }
 2007|      0|        else if(hostname_check(u, (char *)CURL_UNCONST(newp), n))
  ------------------
  |  |  866|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  |  Branch (2007:17): [True: 0, False: 0]
  ------------------
 2008|      0|          bad = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 2009|      0|        if(bad) {
  ------------------
  |  Branch (2009:12): [True: 0, False: 0]
  ------------------
 2010|      0|          curlx_dyn_free(&enc);
 2011|      0|          return CURLUE_BAD_HOSTNAME;
 2012|      0|        }
 2013|      0|      }
 2014|      0|    }
 2015|       |
 2016|      0|    curlx_free(*storep);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2017|      0|    *storep = (char *)CURL_UNCONST(newp);
  ------------------
  |  |  866|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 2018|      0|  }
 2019|      0|  return CURLUE_OK;
 2020|      0|}
Curl_url_same_origin:
 2023|  3.54k|{
 2024|  3.54k|  const struct Curl_scheme *s = NULL;
 2025|       |
 2026|       |  /* base must be an absolute URL */
 2027|  3.54k|  if(!base->scheme || !base->host)
  ------------------
  |  Branch (2027:6): [True: 0, False: 3.54k]
  |  Branch (2027:23): [True: 0, False: 3.54k]
  ------------------
 2028|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2029|  3.54k|  if(href->scheme && !curl_strequal(base->scheme, href->scheme))
  ------------------
  |  Branch (2029:6): [True: 3.54k, False: 0]
  |  Branch (2029:22): [True: 23, False: 3.52k]
  ------------------
 2030|     23|    return FALSE;
  ------------------
  |  | 1058|     23|#define FALSE false
  ------------------
 2031|  3.52k|  if(href->host) {
  ------------------
  |  Branch (2031:6): [True: 3.52k, False: 0]
  ------------------
 2032|  3.52k|    if(!curl_strequal(base->host, href->host))
  ------------------
  |  Branch (2032:8): [True: 82, False: 3.44k]
  ------------------
 2033|     82|      return FALSE;
  ------------------
  |  | 1058|     82|#define FALSE false
  ------------------
 2034|  3.44k|    if(!curl_strequal(base->zoneid ? base->zoneid : "",
  ------------------
  |  Branch (2034:8): [True: 0, False: 3.44k]
  |  Branch (2034:23): [True: 0, False: 3.44k]
  ------------------
 2035|  3.44k|                      href->zoneid ? href->zoneid : ""))
  ------------------
  |  Branch (2035:23): [True: 0, False: 3.44k]
  ------------------
 2036|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2037|  3.44k|    if(!curl_strequal(base->port, href->port)) {
  ------------------
  |  Branch (2037:8): [True: 3, False: 3.43k]
  ------------------
 2038|       |      /* This may still match if only one has an explicit port
 2039|       |       * and it is the default for the scheme. */
 2040|      3|      if(base->port && href->port)
  ------------------
  |  Branch (2040:10): [True: 2, False: 1]
  |  Branch (2040:24): [True: 1, False: 1]
  ------------------
 2041|      1|        return FALSE;
  ------------------
  |  | 1058|      1|#define FALSE false
  ------------------
 2042|       |
 2043|      2|      s = Curl_get_scheme(base->scheme);
 2044|      2|      if(!s) /* Cannot match default port for unknown scheme */
  ------------------
  |  Branch (2044:10): [True: 0, False: 2]
  ------------------
 2045|      0|        return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2046|       |
 2047|       |      /* The port which is set must be the default one */
 2048|      2|      if((base->port && (base->portnum != s->defport)) ||
  ------------------
  |  Branch (2048:11): [True: 1, False: 1]
  |  Branch (2048:25): [True: 1, False: 0]
  ------------------
 2049|      1|         (href->port && (href->portnum != s->defport)))
  ------------------
  |  Branch (2049:11): [True: 1, False: 0]
  |  Branch (2049:25): [True: 1, False: 0]
  ------------------
 2050|      2|        return FALSE;
  ------------------
  |  | 1058|      2|#define FALSE false
  ------------------
 2051|      2|    }
 2052|  3.44k|  }
 2053|      0|  else if(href->port) /* no host in href, then there must be no port */
  ------------------
  |  Branch (2053:11): [True: 0, False: 0]
  ------------------
 2054|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 2055|  3.43k|  return TRUE;
  ------------------
  |  | 1055|  3.43k|#define TRUE true
  ------------------
 2056|  3.52k|}
urlapi.c:find_host_sep:
   87|     44|{
   88|       |  /* Find the start of the hostname */
   89|     44|  const char *sep = strstr(url, "//");
   90|     44|  if(!sep)
  ------------------
  |  Branch (90:6): [True: 39, False: 5]
  ------------------
   91|     39|    sep = url;
   92|      5|  else
   93|      5|    sep += 2;
   94|       |
   95|       |  /* Find first / or ? */
   96|    298|  while(*sep && *sep != '/' && *sep != '?')
  ------------------
  |  Branch (96:9): [True: 292, False: 6]
  |  Branch (96:17): [True: 256, False: 36]
  |  Branch (96:32): [True: 254, False: 2]
  ------------------
   97|    254|    sep++;
   98|       |
   99|     44|  return sep;
  100|     44|}
urlapi.c:parse_authority:
  645|  18.8k|{
  646|  18.8k|  size_t offset;
  647|  18.8k|  CURLUcode uc;
  648|  18.8k|  CURLcode result;
  649|       |
  650|       |  /*
  651|       |   * Parse the login details and strip them out of the hostname.
  652|       |   */
  653|  18.8k|  uc = parse_hostname_login(u, auth, authlen, flags, &offset);
  654|  18.8k|  if(uc)
  ------------------
  |  Branch (654:6): [True: 0, False: 18.8k]
  ------------------
  655|      0|    goto out;
  656|       |
  657|  18.8k|  result = curlx_dyn_addn(host, auth + offset, authlen - offset);
  658|  18.8k|  if(result) {
  ------------------
  |  Branch (658:6): [True: 0, False: 18.8k]
  ------------------
  659|      0|    uc = cc2cu(result);
  ------------------
  |  |  104|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (104:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  660|      0|    goto out;
  661|      0|  }
  662|       |
  663|  18.8k|  uc = parse_port(u, host, has_scheme);
  664|  18.8k|  if(uc)
  ------------------
  |  Branch (664:6): [True: 27, False: 18.8k]
  ------------------
  665|     27|    goto out;
  666|       |
  667|  18.8k|  if(!curlx_dyn_len(host))
  ------------------
  |  Branch (667:6): [True: 24, False: 18.7k]
  ------------------
  668|     24|    return CURLUE_NO_HOST;
  669|       |
  670|  18.7k|  switch(ipv4_normalize(host)) {
  671|  7.44k|  case HOST_IPV4:
  ------------------
  |  |   49|  7.44k|#define HOST_IPV4    2
  ------------------
  |  Branch (671:3): [True: 7.44k, False: 11.3k]
  ------------------
  672|  7.44k|    break;
  673|     38|  case HOST_IPV6:
  ------------------
  |  |   50|     38|#define HOST_IPV6    3
  ------------------
  |  Branch (673:3): [True: 38, False: 18.7k]
  ------------------
  674|     38|    uc = ipv6_parse(u, curlx_dyn_ptr(host), curlx_dyn_len(host));
  675|     38|    break;
  676|  11.3k|  case HOST_NAME:
  ------------------
  |  |   48|  11.3k|#define HOST_NAME    1
  ------------------
  |  Branch (676:3): [True: 11.3k, False: 7.47k]
  ------------------
  677|  11.3k|    uc = urldecode_host(host);
  678|  11.3k|    if(!uc)
  ------------------
  |  Branch (678:8): [True: 11.3k, False: 7]
  ------------------
  679|  11.3k|      uc = hostname_check(u, curlx_dyn_ptr(host), curlx_dyn_len(host));
  680|  11.3k|    break;
  681|      0|  case HOST_ERROR:
  ------------------
  |  |   47|      0|#define HOST_ERROR   (-1) /* out of memory */
  ------------------
  |  Branch (681:3): [True: 0, False: 18.7k]
  ------------------
  682|      0|    uc = CURLUE_OUT_OF_MEMORY;
  683|      0|    break;
  684|      0|  default:
  ------------------
  |  Branch (684:3): [True: 0, False: 18.7k]
  ------------------
  685|      0|    uc = CURLUE_BAD_HOSTNAME; /* Bad IPv4 address even */
  686|      0|    break;
  687|  18.7k|  }
  688|       |
  689|  18.8k|out:
  690|  18.8k|  return uc;
  691|  18.7k|}
urlapi.c:parse_hostname_login:
  262|  18.8k|{
  263|  18.8k|  CURLUcode ures = CURLUE_OK;
  264|  18.8k|  CURLcode result;
  265|  18.8k|  char *userp = NULL;
  266|  18.8k|  char *passwdp = NULL;
  267|  18.8k|  char *optionsp = NULL;
  268|  18.8k|  const struct Curl_scheme *h = NULL;
  269|       |
  270|       |  /* At this point, we assume all the other special cases have been taken
  271|       |   * care of, so the host is at most
  272|       |   *
  273|       |   *   [user[:password][;options]]@]hostname
  274|       |   *
  275|       |   * We need somewhere to put the embedded details, so do that first.
  276|       |   */
  277|  18.8k|  const char *ptr;
  278|       |
  279|  18.8k|  DEBUGASSERT(login);
  ------------------
  |  | 1081|  18.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (279:3): [True: 0, False: 18.8k]
  |  Branch (279:3): [True: 18.8k, False: 0]
  ------------------
  280|       |
  281|  18.8k|  *offset = 0;
  282|  18.8k|  ptr = memchr(login, '@', len);
  283|  18.8k|  if(!ptr)
  ------------------
  |  Branch (283:6): [True: 15.4k, False: 3.43k]
  ------------------
  284|  15.4k|    goto out;
  285|       |
  286|       |  /* We will now try to extract the
  287|       |   * possible login information in a string like:
  288|       |   * ftp://user:password@ftp.site.example:8021/README */
  289|  3.43k|  ptr++;
  290|       |
  291|       |  /* if this is a known scheme, get some details */
  292|  3.43k|  if(u->scheme)
  ------------------
  |  Branch (292:6): [True: 3.43k, False: 0]
  ------------------
  293|  3.43k|    h = Curl_get_scheme(u->scheme);
  294|       |
  295|       |  /* We could use the login information in the URL so extract it. Only parse
  296|       |     options if the handler says we should. Note that 'h' might be NULL! */
  297|  3.43k|  result = Curl_parse_login_details(login, ptr - login - 1,
  298|  3.43k|                                    &userp, &passwdp,
  299|  3.43k|                                    (h && (h->flags & PROTOPT_URLOPTIONS)) ?
  ------------------
  |  |  225|  3.42k|#define PROTOPT_URLOPTIONS (1 << 10) /* allow options part in the userinfo
  ------------------
  |  Branch (299:38): [True: 3.42k, False: 4]
  |  Branch (299:43): [True: 0, False: 3.42k]
  ------------------
  300|  3.43k|                                    &optionsp : NULL);
  301|  3.43k|  if(result) {
  ------------------
  |  Branch (301:6): [True: 0, False: 3.43k]
  ------------------
  302|       |    /* the only possible error from Curl_parse_login_details is out of
  303|       |       memory: */
  304|      0|    ures = CURLUE_OUT_OF_MEMORY;
  305|      0|    goto out;
  306|      0|  }
  307|       |
  308|  3.43k|  if(userp) {
  ------------------
  |  Branch (308:6): [True: 3.43k, False: 0]
  ------------------
  309|  3.43k|    if(flags & CURLU_DISALLOW_USER) {
  ------------------
  |  |   92|  3.43k|#define CURLU_DISALLOW_USER (1 << 5)      /* no user+password allowed */
  ------------------
  |  Branch (309:8): [True: 0, False: 3.43k]
  ------------------
  310|       |      /* Option DISALLOW_USER is set and URL contains username. */
  311|      0|      ures = CURLUE_USER_NOT_ALLOWED;
  312|      0|      goto out;
  313|      0|    }
  314|  3.43k|    curlx_free(u->user);
  ------------------
  |  | 1483|  3.43k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  315|  3.43k|    u->user = userp;
  316|  3.43k|  }
  317|       |
  318|  3.43k|  if(passwdp) {
  ------------------
  |  Branch (318:6): [True: 838, False: 2.59k]
  ------------------
  319|    838|    curlx_free(u->password);
  ------------------
  |  | 1483|    838|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  320|    838|    u->password = passwdp;
  321|    838|  }
  322|       |
  323|  3.43k|  if(optionsp) {
  ------------------
  |  Branch (323:6): [True: 0, False: 3.43k]
  ------------------
  324|      0|    curlx_free(u->options);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  325|      0|    u->options = optionsp;
  326|      0|  }
  327|       |
  328|       |  /* the hostname starts at this offset */
  329|  3.43k|  *offset = ptr - login;
  330|  3.43k|  return CURLUE_OK;
  331|       |
  332|  15.4k|out:
  333|       |
  334|  15.4k|  curlx_free(userp);
  ------------------
  |  | 1483|  15.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  335|  15.4k|  curlx_free(passwdp);
  ------------------
  |  | 1483|  15.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  336|  15.4k|  curlx_free(optionsp);
  ------------------
  |  | 1483|  15.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  337|  15.4k|  u->user = NULL;
  338|  15.4k|  u->password = NULL;
  339|  15.4k|  u->options = NULL;
  340|       |
  341|  15.4k|  return ures;
  342|  3.43k|}
urlapi.c:urldecode_host:
  615|  11.3k|{
  616|  11.3k|  const char *per;
  617|  11.3k|  const char *hostname = curlx_dyn_ptr(host);
  618|  11.3k|  per = strchr(hostname, '%');
  619|  11.3k|  if(!per)
  ------------------
  |  Branch (619:6): [True: 11.1k, False: 151]
  ------------------
  620|       |    /* nothing to decode */
  621|  11.1k|    return CURLUE_OK;
  622|    151|  else {
  623|       |    /* encoded */
  624|    151|    size_t dlen;
  625|    151|    char *decoded;
  626|    151|    CURLcode result = Curl_urldecode(hostname, 0, &decoded, &dlen,
  627|    151|                                     REJECT_CTRL);
  628|    151|    if(result)
  ------------------
  |  Branch (628:8): [True: 7, False: 144]
  ------------------
  629|      7|      return CURLUE_BAD_HOSTNAME;
  630|    144|    curlx_dyn_reset(host);
  631|    144|    result = curlx_dyn_addn(host, decoded, dlen);
  632|    144|    curlx_free(decoded);
  ------------------
  |  | 1483|    144|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  633|    144|    if(result)
  ------------------
  |  Branch (633:8): [True: 0, False: 144]
  ------------------
  634|      0|      return cc2cu(result);
  ------------------
  |  |  104|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (104:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  635|    144|  }
  636|       |
  637|    144|  return CURLUE_OK;
  638|  11.3k|}
urlapi.c:is_dot:
  719|  67.0k|{
  720|  67.0k|  const char *p = *str;
  721|  67.0k|  if(*p == '.') {
  ------------------
  |  Branch (721:6): [True: 3.65k, False: 63.3k]
  ------------------
  722|  3.65k|    (*str)++;
  723|  3.65k|    (*clen)--;
  724|  3.65k|    return TRUE;
  ------------------
  |  | 1055|  3.65k|#define TRUE true
  ------------------
  725|  3.65k|  }
  726|  63.3k|  else if((*clen >= 3) &&
  ------------------
  |  Branch (726:11): [True: 62.0k, False: 1.31k]
  ------------------
  727|  62.0k|          (p[0] == '%') && (p[1] == '2') && ((p[2] | 0x20) == 'e')) {
  ------------------
  |  Branch (727:11): [True: 5.03k, False: 57.0k]
  |  Branch (727:28): [True: 1.57k, False: 3.46k]
  |  Branch (727:45): [True: 401, False: 1.17k]
  ------------------
  728|    401|    *str += 3;
  729|    401|    *clen -= 3;
  730|    401|    return TRUE;
  ------------------
  |  | 1055|    401|#define TRUE true
  ------------------
  731|    401|  }
  732|  62.9k|  return FALSE;
  ------------------
  |  | 1058|  62.9k|#define FALSE false
  ------------------
  733|  67.0k|}
urlapi.c:free_urlhandle:
   69|  34.6k|{
   70|  34.6k|  curlx_free(u->scheme);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   71|  34.6k|  curlx_free(u->user);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   72|  34.6k|  curlx_free(u->password);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   73|  34.6k|  curlx_free(u->options);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   74|  34.6k|  curlx_free(u->host);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   75|  34.6k|  curlx_free(u->zoneid);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   76|  34.6k|  curlx_free(u->port);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   77|  34.6k|  curlx_free(u->path);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   78|  34.6k|  curlx_free(u->query);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   79|  34.6k|  curlx_free(u->fragment);
  ------------------
  |  | 1483|  34.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   80|  34.6k|}
urlapi.c:urlget_url:
 1451|  17.9k|{
 1452|  17.9k|  char *url;
 1453|  17.9k|  char *allochost = NULL;
 1454|  17.9k|  const char *fragmentsep =
 1455|  17.9k|    (u->fragment || (u->fragment_present && flags & CURLU_GET_EMPTY)) ?
  ------------------
  |  |  102|     66|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
  |  Branch (1455:6): [True: 543, False: 17.4k]
  |  Branch (1455:22): [True: 66, False: 17.3k]
  |  Branch (1455:45): [True: 45, False: 21]
  ------------------
 1456|  17.3k|    "#" : "";
 1457|  17.9k|  const char *querysep = ((u->query && u->query[0]) ||
  ------------------
  |  Branch (1457:28): [True: 1.42k, False: 16.5k]
  |  Branch (1457:40): [True: 1.39k, False: 35]
  ------------------
 1458|  16.5k|                          (u->query_present && flags & CURLU_GET_EMPTY)) ?
  ------------------
  |  |  102|     35|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
  |  Branch (1458:28): [True: 35, False: 16.5k]
  |  Branch (1458:48): [True: 31, False: 4]
  ------------------
 1459|  16.5k|    "?" : "";
 1460|  17.9k|  char portbuf[7];
 1461|  17.9k|  if(u->scheme && curl_strequal("file", u->scheme)) {
  ------------------
  |  Branch (1461:6): [True: 17.9k, False: 0]
  |  Branch (1461:19): [True: 16, False: 17.9k]
  ------------------
 1462|     16|    url = curl_maprintf("file://%s%s%s%s%s",
 1463|     16|                        u->path, querysep, u->query ? u->query : "",
  ------------------
  |  Branch (1463:44): [True: 4, False: 12]
  ------------------
 1464|     16|                        fragmentsep, u->fragment ? u->fragment : "");
  ------------------
  |  Branch (1464:38): [True: 0, False: 16]
  ------------------
 1465|     16|  }
 1466|  17.9k|  else if(!u->host)
  ------------------
  |  Branch (1466:11): [True: 0, False: 17.9k]
  ------------------
 1467|      0|    return CURLUE_NO_HOST;
 1468|  17.9k|  else {
 1469|  17.9k|    const char *scheme;
 1470|  17.9k|    char *options = u->options;
 1471|  17.9k|    char *port = u->port;
 1472|  17.9k|    const struct Curl_scheme *h = NULL;
 1473|  17.9k|    char schemebuf[MAX_SCHEME_LEN + 5];
 1474|  17.9k|    if(u->scheme)
  ------------------
  |  Branch (1474:8): [True: 17.9k, False: 0]
  ------------------
 1475|  17.9k|      scheme = u->scheme;
 1476|      0|    else if(flags & CURLU_DEFAULT_SCHEME)
  ------------------
  |  |   88|      0|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
  |  Branch (1476:13): [True: 0, False: 0]
  ------------------
 1477|      0|      scheme = DEFAULT_SCHEME;
  ------------------
  |  |   66|      0|#define DEFAULT_SCHEME "https"
  ------------------
 1478|      0|    else
 1479|      0|      return CURLUE_NO_SCHEME;
 1480|       |
 1481|  17.9k|    h = Curl_get_scheme(scheme);
 1482|  17.9k|    if(!port && (flags & CURLU_DEFAULT_PORT)) {
  ------------------
  |  |   84|  16.8k|#define CURLU_DEFAULT_PORT (1 << 0)       /* return default port number */
  ------------------
  |  Branch (1482:8): [True: 16.8k, False: 1.08k]
  |  Branch (1482:17): [True: 0, False: 16.8k]
  ------------------
 1483|       |      /* there is no stored port number, but asked to deliver
 1484|       |         a default one for the scheme */
 1485|      0|      if(h) {
  ------------------
  |  Branch (1485:10): [True: 0, False: 0]
  ------------------
 1486|      0|        curl_msnprintf(portbuf, sizeof(portbuf), "%u", h->defport);
 1487|      0|        port = portbuf;
 1488|      0|      }
 1489|      0|    }
 1490|  17.9k|    else if(port) {
  ------------------
  |  Branch (1490:13): [True: 1.08k, False: 16.8k]
  ------------------
 1491|       |      /* there is a stored port number, but asked to inhibit if it matches
 1492|       |         the default one for the scheme */
 1493|  1.08k|      if(h && (h->defport == u->portnum) &&
  ------------------
  |  Branch (1493:10): [True: 1.08k, False: 2]
  |  Branch (1493:15): [True: 3, False: 1.08k]
  ------------------
 1494|      3|         (flags & CURLU_NO_DEFAULT_PORT))
  ------------------
  |  |   85|      3|#define CURLU_NO_DEFAULT_PORT (1 << 1)    /* act as if no port number was set,
  ------------------
  |  Branch (1494:10): [True: 0, False: 3]
  ------------------
 1495|      0|        port = NULL;
 1496|  1.08k|    }
 1497|       |
 1498|  17.9k|    if(h && !(h->flags & PROTOPT_URLOPTIONS))
  ------------------
  |  |  225|  17.9k|#define PROTOPT_URLOPTIONS (1 << 10) /* allow options part in the userinfo
  ------------------
  |  Branch (1498:8): [True: 17.9k, False: 13]
  |  Branch (1498:13): [True: 17.9k, False: 0]
  ------------------
 1499|  17.9k|      options = NULL;
 1500|       |
 1501|  17.9k|    if(u->host[0] == '[') {
  ------------------
  |  Branch (1501:8): [True: 17, False: 17.9k]
  ------------------
 1502|     17|      if(u->zoneid) {
  ------------------
  |  Branch (1502:10): [True: 0, False: 17]
  ------------------
 1503|       |        /* make it '[ host %25 zoneid ]' */
 1504|      0|        struct dynbuf enc;
 1505|      0|        size_t hostlen = strlen(u->host);
 1506|      0|        curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|      0|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1507|      0|        if(curlx_dyn_addf(&enc, "%.*s%%25%s]", (int)hostlen - 1, u->host,
  ------------------
  |  Branch (1507:12): [True: 0, False: 0]
  ------------------
 1508|      0|                          u->zoneid))
 1509|      0|          return CURLUE_OUT_OF_MEMORY;
 1510|      0|        allochost = curlx_dyn_ptr(&enc);
 1511|      0|      }
 1512|     17|    }
 1513|  17.9k|    else if(flags & CURLU_URLENCODE) {
  ------------------
  |  |   94|  17.9k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1513:13): [True: 2.87k, False: 15.0k]
  ------------------
 1514|  2.87k|      allochost = curl_easy_escape(NULL, u->host, 0);
 1515|  2.87k|      if(!allochost)
  ------------------
  |  Branch (1515:10): [True: 0, False: 2.87k]
  ------------------
 1516|      0|        return CURLUE_OUT_OF_MEMORY;
 1517|  2.87k|    }
 1518|  15.0k|    else if(flags & CURLU_PUNYCODE) {
  ------------------
  |  |  100|  15.0k|#define CURLU_PUNYCODE (1 << 12)          /* get the hostname in punycode */
  ------------------
  |  Branch (1518:13): [True: 0, False: 15.0k]
  ------------------
 1519|      0|      if(!Curl_is_ASCII_name(u->host)) {
  ------------------
  |  Branch (1519:10): [True: 0, False: 0]
  ------------------
 1520|      0|        CURLUcode ret = host_decode(u->host, &allochost);
 1521|      0|        if(ret)
  ------------------
  |  Branch (1521:12): [True: 0, False: 0]
  ------------------
 1522|      0|          return ret;
 1523|      0|      }
 1524|      0|    }
 1525|  15.0k|    else if(flags & CURLU_PUNY2IDN) {
  ------------------
  |  |  101|  15.0k|#define CURLU_PUNY2IDN (1 << 13)          /* punycode => IDN conversion */
  ------------------
  |  Branch (1525:13): [True: 0, False: 15.0k]
  ------------------
 1526|      0|      if(Curl_is_ASCII_name(u->host)) {
  ------------------
  |  Branch (1526:10): [True: 0, False: 0]
  ------------------
 1527|      0|        CURLUcode ret = host_encode(u->host, &allochost);
 1528|      0|        if(ret)
  ------------------
  |  Branch (1528:12): [True: 0, False: 0]
  ------------------
 1529|      0|          return ret;
 1530|      0|      }
 1531|      0|    }
 1532|       |
 1533|  17.9k|    if(!(flags & CURLU_NO_GUESS_SCHEME) || !u->guessed_scheme)
  ------------------
  |  |  105|  17.9k|#define CURLU_NO_GUESS_SCHEME (1 << 15)   /* for get, do not accept a guess */
  ------------------
  |  Branch (1533:8): [True: 17.9k, False: 0]
  |  Branch (1533:44): [True: 0, False: 0]
  ------------------
 1534|  17.9k|      curl_msnprintf(schemebuf, sizeof(schemebuf), "%s://", scheme);
 1535|      0|    else
 1536|      0|      schemebuf[0] = 0;
 1537|       |
 1538|  17.9k|    url = curl_maprintf("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
 1539|  17.9k|                        schemebuf,
 1540|  17.9k|                        u->user ? u->user : "",
  ------------------
  |  Branch (1540:25): [True: 3.19k, False: 14.7k]
  ------------------
 1541|  17.9k|                        u->password ? ":" : "",
  ------------------
  |  Branch (1541:25): [True: 759, False: 17.2k]
  ------------------
 1542|  17.9k|                        u->password ? u->password : "",
  ------------------
  |  Branch (1542:25): [True: 759, False: 17.2k]
  ------------------
 1543|  17.9k|                        options ? ";" : "",
  ------------------
  |  Branch (1543:25): [True: 0, False: 17.9k]
  ------------------
 1544|  17.9k|                        options ? options : "",
  ------------------
  |  Branch (1544:25): [True: 0, False: 17.9k]
  ------------------
 1545|  17.9k|                        (u->user || u->password || options) ? "@" : "",
  ------------------
  |  Branch (1545:26): [True: 3.19k, False: 14.7k]
  |  Branch (1545:37): [True: 0, False: 14.7k]
  |  Branch (1545:52): [True: 0, False: 14.7k]
  ------------------
 1546|  17.9k|                        allochost ? allochost : u->host,
  ------------------
  |  Branch (1546:25): [True: 2.87k, False: 15.0k]
  ------------------
 1547|  17.9k|                        port ? ":" : "",
  ------------------
  |  Branch (1547:25): [True: 1.08k, False: 16.8k]
  ------------------
 1548|  17.9k|                        port ? port : "",
  ------------------
  |  Branch (1548:25): [True: 1.08k, False: 16.8k]
  ------------------
 1549|  17.9k|                        u->path ? u->path : "/",
  ------------------
  |  Branch (1549:25): [True: 12.6k, False: 5.31k]
  ------------------
 1550|  17.9k|                        querysep,
 1551|  17.9k|                        u->query ? u->query : "",
  ------------------
  |  Branch (1551:25): [True: 1.42k, False: 16.5k]
  ------------------
 1552|  17.9k|                        fragmentsep,
 1553|  17.9k|                        u->fragment ? u->fragment : "");
  ------------------
  |  Branch (1553:25): [True: 543, False: 17.4k]
  ------------------
 1554|  17.9k|    curlx_free(allochost);
  ------------------
  |  | 1483|  17.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1555|  17.9k|  }
 1556|  17.9k|  if(!url)
  ------------------
  |  Branch (1556:6): [True: 0, False: 17.9k]
  ------------------
 1557|      0|    return CURLUE_OUT_OF_MEMORY;
 1558|  17.9k|  *part = url;
 1559|  17.9k|  return CURLUE_OK;
 1560|  17.9k|}
urlapi.c:urlget_format:
 1383|  44.1k|{
 1384|  44.1k|  CURLUcode uc = CURLUE_OK;
 1385|  44.1k|  size_t partlen = strlen(ptr);
 1386|  44.1k|  bool urldecode = (flags & CURLU_URLDECODE) ? 1 : 0;
  ------------------
  |  |   93|  44.1k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  ------------------
  |  Branch (1386:20): [True: 0, False: 44.1k]
  ------------------
 1387|  44.1k|  bool urlencode = (flags & CURLU_URLENCODE) ? 1 : 0;
  ------------------
  |  |   94|  44.1k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1387:20): [True: 10.3k, False: 33.8k]
  ------------------
 1388|  44.1k|  bool punycode = (flags & CURLU_PUNYCODE) && (what == CURLUPART_HOST);
  ------------------
  |  |  100|  44.1k|#define CURLU_PUNYCODE (1 << 12)          /* get the hostname in punycode */
  ------------------
  |  Branch (1388:19): [True: 0, False: 44.1k]
  |  Branch (1388:47): [True: 0, False: 0]
  ------------------
 1389|  44.1k|  bool depunyfy = (flags & CURLU_PUNY2IDN) && (what == CURLUPART_HOST);
  ------------------
  |  |  101|  44.1k|#define CURLU_PUNY2IDN (1 << 13)          /* punycode => IDN conversion */
  ------------------
  |  Branch (1389:19): [True: 0, False: 44.1k]
  |  Branch (1389:47): [True: 0, False: 0]
  ------------------
 1390|  44.1k|  char *part = curlx_memdup0(ptr, partlen);
 1391|  44.1k|  *partp = NULL;
 1392|  44.1k|  if(!part)
  ------------------
  |  Branch (1392:6): [True: 0, False: 44.1k]
  ------------------
 1393|      0|    return CURLUE_OUT_OF_MEMORY;
 1394|  44.1k|  if(plusdecode) {
  ------------------
  |  Branch (1394:6): [True: 0, False: 44.1k]
  ------------------
 1395|       |    /* convert + to space */
 1396|      0|    char *plus = part;
 1397|      0|    size_t i = 0;
 1398|      0|    for(i = 0; i < partlen; ++plus, i++) {
  ------------------
  |  Branch (1398:16): [True: 0, False: 0]
  ------------------
 1399|      0|      if(*plus == '+')
  ------------------
  |  Branch (1399:10): [True: 0, False: 0]
  ------------------
 1400|      0|        *plus = ' ';
 1401|      0|    }
 1402|      0|  }
 1403|  44.1k|  if(urldecode) {
  ------------------
  |  Branch (1403:6): [True: 0, False: 44.1k]
  ------------------
 1404|      0|    char *decoded;
 1405|      0|    size_t dlen;
 1406|       |    /* this unconditional rejection of control bytes is documented API
 1407|       |       behavior */
 1408|      0|    CURLcode result = Curl_urldecode(part, partlen, &decoded, &dlen,
 1409|      0|                                     REJECT_CTRL);
 1410|      0|    curlx_free(part);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1411|      0|    if(result)
  ------------------
  |  Branch (1411:8): [True: 0, False: 0]
  ------------------
 1412|      0|      return CURLUE_URLDECODE;
 1413|      0|    part = decoded;
 1414|      0|    partlen = dlen;
 1415|      0|  }
 1416|  44.1k|  if(urlencode) {
  ------------------
  |  Branch (1416:6): [True: 10.3k, False: 33.8k]
  ------------------
 1417|  10.3k|    struct dynbuf enc;
 1418|  10.3k|    curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  10.3k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1419|  10.3k|    uc = urlencode_str(&enc, part, partlen, TRUE, what == CURLUPART_QUERY ?
  ------------------
  |  | 1055|  10.3k|#define TRUE true
  ------------------
  |  Branch (1419:51): [True: 0, False: 10.3k]
  ------------------
 1420|  10.3k|                       QUERY_YES : QUERY_NO);
  ------------------
  |  |   54|      0|#define QUERY_YES     4
  ------------------
                                     QUERY_YES : QUERY_NO);
  ------------------
  |  |   52|  20.6k|#define QUERY_NO      2
  ------------------
 1421|  10.3k|    curlx_free(part);
  ------------------
  |  | 1483|  10.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1422|  10.3k|    if(uc)
  ------------------
  |  Branch (1422:8): [True: 0, False: 10.3k]
  ------------------
 1423|      0|      return uc;
 1424|  10.3k|    part = curlx_dyn_ptr(&enc);
 1425|  10.3k|  }
 1426|  33.8k|  else if(punycode) {
  ------------------
  |  Branch (1426:11): [True: 0, False: 33.8k]
  ------------------
 1427|      0|    if(!Curl_is_ASCII_name(u->host)) {
  ------------------
  |  Branch (1427:8): [True: 0, False: 0]
  ------------------
 1428|      0|      char *punyversion = NULL;
 1429|      0|      uc = host_decode(part, &punyversion);
 1430|      0|      curlx_free(part);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1431|      0|      if(uc)
  ------------------
  |  Branch (1431:10): [True: 0, False: 0]
  ------------------
 1432|      0|        return uc;
 1433|      0|      part = punyversion;
 1434|      0|    }
 1435|      0|  }
 1436|  33.8k|  else if(depunyfy) {
  ------------------
  |  Branch (1436:11): [True: 0, False: 33.8k]
  ------------------
 1437|      0|    if(Curl_is_ASCII_name(u->host)) {
  ------------------
  |  Branch (1437:8): [True: 0, False: 0]
  ------------------
 1438|      0|      char *unpunified = NULL;
 1439|      0|      uc = host_encode(part, &unpunified);
 1440|      0|      curlx_free(part);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1441|      0|      if(uc)
  ------------------
  |  Branch (1441:10): [True: 0, False: 0]
  ------------------
 1442|      0|        return uc;
 1443|      0|      part = unpunified;
 1444|      0|    }
 1445|      0|  }
 1446|  44.1k|  *partp = part;
 1447|  44.1k|  return CURLUE_OK;
 1448|  44.1k|}
urlapi.c:urlset_clear:
 1756|  2.42k|{
 1757|  2.42k|  switch(what) {
 1758|      0|  case CURLUPART_URL:
  ------------------
  |  Branch (1758:3): [True: 0, False: 2.42k]
  ------------------
 1759|      0|    free_urlhandle(u);
 1760|      0|    memset(u, 0, sizeof(struct Curl_URL));
 1761|      0|    break;
 1762|      0|  case CURLUPART_SCHEME:
  ------------------
  |  Branch (1762:3): [True: 0, False: 2.42k]
  ------------------
 1763|      0|    curlx_safefree(u->scheme);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1764|      0|    u->guessed_scheme = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1765|      0|    break;
 1766|    807|  case CURLUPART_USER:
  ------------------
  |  Branch (1766:3): [True: 807, False: 1.61k]
  ------------------
 1767|    807|    curlx_safefree(u->user);
  ------------------
  |  | 1327|    807|  do {                      \
  |  | 1328|    807|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|    807|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|    807|    (ptr) = NULL;           \
  |  | 1330|    807|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 807]
  |  |  ------------------
  ------------------
 1768|    807|    break;
 1769|    807|  case CURLUPART_PASSWORD:
  ------------------
  |  Branch (1769:3): [True: 807, False: 1.61k]
  ------------------
 1770|    807|    curlx_safefree(u->password);
  ------------------
  |  | 1327|    807|  do {                      \
  |  | 1328|    807|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|    807|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|    807|    (ptr) = NULL;           \
  |  | 1330|    807|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 807]
  |  |  ------------------
  ------------------
 1771|    807|    break;
 1772|      0|  case CURLUPART_OPTIONS:
  ------------------
  |  Branch (1772:3): [True: 0, False: 2.42k]
  ------------------
 1773|      0|    curlx_safefree(u->options);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1774|      0|    break;
 1775|      0|  case CURLUPART_HOST:
  ------------------
  |  Branch (1775:3): [True: 0, False: 2.42k]
  ------------------
 1776|      0|    curlx_safefree(u->host);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1777|      0|    break;
 1778|      0|  case CURLUPART_ZONEID:
  ------------------
  |  Branch (1778:3): [True: 0, False: 2.42k]
  ------------------
 1779|      0|    curlx_safefree(u->zoneid);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1780|      0|    break;
 1781|      0|  case CURLUPART_PORT:
  ------------------
  |  Branch (1781:3): [True: 0, False: 2.42k]
  ------------------
 1782|      0|    u->portnum = 0;
 1783|      0|    curlx_safefree(u->port);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1784|      0|    break;
 1785|      0|  case CURLUPART_PATH:
  ------------------
  |  Branch (1785:3): [True: 0, False: 2.42k]
  ------------------
 1786|      0|    curlx_safefree(u->path);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1787|      0|    break;
 1788|      0|  case CURLUPART_QUERY:
  ------------------
  |  Branch (1788:3): [True: 0, False: 2.42k]
  ------------------
 1789|      0|    curlx_safefree(u->query);
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1790|      0|    u->query_present = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1791|      0|    break;
 1792|    807|  case CURLUPART_FRAGMENT:
  ------------------
  |  Branch (1792:3): [True: 807, False: 1.61k]
  ------------------
 1793|    807|    curlx_safefree(u->fragment);
  ------------------
  |  | 1327|    807|  do {                      \
  |  | 1328|    807|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|    807|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|    807|    (ptr) = NULL;           \
  |  | 1330|    807|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 807]
  |  |  ------------------
  ------------------
 1794|    807|    u->fragment_present = FALSE;
  ------------------
  |  | 1058|    807|#define FALSE false
  ------------------
 1795|    807|    break;
 1796|      0|  default:
  ------------------
  |  Branch (1796:3): [True: 0, False: 2.42k]
  ------------------
 1797|      0|    return CURLUE_UNKNOWN_PART;
 1798|  2.42k|  }
 1799|  2.42k|  return CURLUE_OK;
 1800|  2.42k|}
urlapi.c:set_url:
 1709|  19.1k|{
 1710|       |  /*
 1711|       |   * Allow a new URL to replace the existing (if any) contents.
 1712|       |   *
 1713|       |   * If the existing contents is enough for a URL, allow a relative URL to
 1714|       |   * replace it.
 1715|       |   */
 1716|  19.1k|  CURLUcode uc;
 1717|  19.1k|  char *oldurl = NULL;
 1718|       |
 1719|  19.1k|  if(!part_size) {
  ------------------
  |  Branch (1719:6): [True: 0, False: 19.1k]
  ------------------
 1720|       |    /* a blank URL is not a valid URL unless we already have a complete one
 1721|       |       and this is a redirect */
 1722|      0|    uc = curl_url_get(u, CURLUPART_URL, &oldurl, flags);
 1723|      0|    if(!uc) {
  ------------------
  |  Branch (1723:8): [True: 0, False: 0]
  ------------------
 1724|       |      /* success, meaning the "" is a fine relative URL, but nothing
 1725|       |         changes */
 1726|      0|      curlx_free(oldurl);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1727|      0|      return CURLUE_OK;
 1728|      0|    }
 1729|      0|    if(uc == CURLUE_OUT_OF_MEMORY)
  ------------------
  |  Branch (1729:8): [True: 0, False: 0]
  ------------------
 1730|      0|      return uc;
 1731|      0|    return CURLUE_MALFORMED_INPUT;
 1732|      0|  }
 1733|       |
 1734|       |  /* if the new URL is absolute replace the existing with the new. */
 1735|  19.1k|  if(Curl_is_absolute_url(url, NULL, 0,
  ------------------
  |  Branch (1735:6): [True: 16.0k, False: 3.07k]
  ------------------
 1736|  19.1k|                          flags & (CURLU_GUESS_SCHEME | CURLU_DEFAULT_SCHEME)))
  ------------------
  |  |   96|  19.1k|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
                                        flags & (CURLU_GUESS_SCHEME | CURLU_DEFAULT_SCHEME)))
  ------------------
  |  |   88|  19.1k|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
 1737|  16.0k|    return parseurl_and_replace(url, u, flags);
 1738|       |
 1739|       |  /* if the old URL is incomplete (we cannot get an absolute URL in
 1740|       |     'oldurl'), replace the existing with the new.
 1741|       |     Always include "scheme://" to make the URL "complete" */
 1742|  3.07k|  uc = curl_url_get(u, CURLUPART_URL, &oldurl, flags& ~CURLU_NO_GUESS_SCHEME);
  ------------------
  |  |  105|  3.07k|#define CURLU_NO_GUESS_SCHEME (1 << 15)   /* for get, do not accept a guess */
  ------------------
 1743|  3.07k|  if(uc == CURLUE_OUT_OF_MEMORY)
  ------------------
  |  Branch (1743:6): [True: 0, False: 3.07k]
  ------------------
 1744|      0|    return uc;
 1745|  3.07k|  else if(uc)
  ------------------
  |  Branch (1745:11): [True: 0, False: 3.07k]
  ------------------
 1746|      0|    return parseurl_and_replace(url, u, flags);
 1747|       |
 1748|  3.07k|  DEBUGASSERT(oldurl); /* it is set here */
  ------------------
  |  | 1081|  3.07k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1748:3): [True: 0, False: 3.07k]
  |  Branch (1748:3): [True: 3.07k, False: 0]
  ------------------
 1749|       |  /* apply the relative part to create a new URL */
 1750|  3.07k|  uc = redirect_url(oldurl, url, u, flags);
 1751|  3.07k|  curlx_free(oldurl);
  ------------------
  |  | 1483|  3.07k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1752|  3.07k|  return uc;
 1753|  3.07k|}
urlapi.c:parseurl_and_replace:
 1218|  19.1k|{
 1219|  19.1k|  CURLUcode ures;
 1220|  19.1k|  CURLU tmpurl;
 1221|  19.1k|  memset(&tmpurl, 0, sizeof(tmpurl));
 1222|  19.1k|  ures = parseurl(url, &tmpurl, flags);
 1223|  19.1k|  if(!ures) {
  ------------------
  |  Branch (1223:6): [True: 18.4k, False: 691]
  ------------------
 1224|  18.4k|    free_urlhandle(u);
 1225|  18.4k|    *u = tmpurl;
 1226|  18.4k|  }
 1227|  19.1k|  return ures;
 1228|  19.1k|}
urlapi.c:parseurl:
 1127|  19.1k|{
 1128|  19.1k|  const char *path;
 1129|  19.1k|  size_t pathlen;
 1130|  19.1k|  char schemebuf[MAX_SCHEME_LEN + 1];
 1131|  19.1k|  size_t schemelen = 0;
 1132|  19.1k|  size_t urllen;
 1133|  19.1k|  CURLUcode ures = CURLUE_OK;
 1134|  19.1k|  struct dynbuf host;
 1135|  19.1k|  bool is_file = FALSE;
  ------------------
  |  | 1058|  19.1k|#define FALSE false
  ------------------
 1136|       |
 1137|  19.1k|  DEBUGASSERT(url);
  ------------------
  |  | 1081|  19.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1137:3): [True: 0, False: 19.1k]
  |  Branch (1137:3): [True: 19.1k, False: 0]
  ------------------
 1138|       |
 1139|  19.1k|  curlx_dyn_init(&host, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  19.1k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1140|       |
 1141|  19.1k|  ures = Curl_junkscan(url, &urllen, !!(flags & CURLU_ALLOW_SPACE));
  ------------------
  |  |   99|  19.1k|#define CURLU_ALLOW_SPACE (1 << 11)       /* Allow spaces in the URL */
  ------------------
 1142|  19.1k|  if(ures)
  ------------------
  |  Branch (1142:6): [True: 143, False: 19.0k]
  ------------------
 1143|    143|    goto fail;
 1144|       |
 1145|  19.0k|  schemelen = Curl_is_absolute_url(url, schemebuf, sizeof(schemebuf),
 1146|  19.0k|                                   flags & (CURLU_GUESS_SCHEME |
  ------------------
  |  |   96|  19.0k|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
 1147|  19.0k|                                            CURLU_DEFAULT_SCHEME));
  ------------------
  |  |   88|  19.0k|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
 1148|       |
 1149|       |  /* handle the file: scheme */
 1150|  19.0k|  if(schemelen && !strcmp(schemebuf, "file")) {
  ------------------
  |  Branch (1150:6): [True: 19.0k, False: 0]
  |  Branch (1150:19): [True: 54, False: 18.9k]
  ------------------
 1151|     54|    is_file = TRUE;
  ------------------
  |  | 1055|     54|#define TRUE true
  ------------------
 1152|     54|    ures = parse_file(url, urllen, u, &path, &pathlen);
 1153|     54|  }
 1154|  18.9k|  else {
 1155|  18.9k|    const char *hostp = NULL;
 1156|  18.9k|    size_t hostlen;
 1157|  18.9k|    ures = parse_scheme(url, u, schemebuf, schemelen, flags, &hostp);
 1158|  18.9k|    if(ures)
  ------------------
  |  Branch (1158:8): [True: 38, False: 18.9k]
  ------------------
 1159|     38|      goto fail;
 1160|       |
 1161|       |    /* find the end of the hostname + port number */
 1162|  18.9k|    hostlen = strcspn(hostp, "/?#");
 1163|  18.9k|    path = &hostp[hostlen];
 1164|       |
 1165|       |    /* this pathlen also contains the query and the fragment */
 1166|  18.9k|    pathlen = urllen - (path - url);
 1167|  18.9k|    if(hostlen) {
  ------------------
  |  Branch (1167:8): [True: 18.8k, False: 77]
  ------------------
 1168|  18.8k|      ures = parse_authority(u, hostp, hostlen, flags, &host,
 1169|  18.8k|                             u->scheme != NULL);
 1170|  18.8k|      if(!ures && (flags & CURLU_GUESS_SCHEME) && !u->scheme)
  ------------------
  |  |   96|  18.4k|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
  |  Branch (1170:10): [True: 18.4k, False: 396]
  |  Branch (1170:19): [True: 10.5k, False: 7.89k]
  |  Branch (1170:51): [True: 0, False: 10.5k]
  ------------------
 1171|      0|        ures = guess_scheme(u, &host);
 1172|  18.8k|    }
 1173|     77|    else if(flags & CURLU_NO_AUTHORITY) {
  ------------------
  |  |   97|     77|#define CURLU_NO_AUTHORITY (1 << 10)      /* Allow empty authority when the
  ------------------
  |  Branch (1173:13): [True: 0, False: 77]
  ------------------
 1174|       |      /* allowed to be empty. */
 1175|      0|      if(curlx_dyn_add(&host, ""))
  ------------------
  |  Branch (1175:10): [True: 0, False: 0]
  ------------------
 1176|      0|        ures = CURLUE_OUT_OF_MEMORY;
 1177|      0|    }
 1178|     77|    else
 1179|     77|      ures = CURLUE_NO_HOST;
 1180|  18.9k|  }
 1181|  18.9k|  if(!ures) {
  ------------------
  |  Branch (1181:6): [True: 18.4k, False: 510]
  ------------------
 1182|       |    /* The path might at this point contain a fragment and/or a query to
 1183|       |       handle */
 1184|  18.4k|    const char *fragment = strchr(path, '#');
 1185|  18.4k|    if(fragment) {
  ------------------
  |  Branch (1185:8): [True: 659, False: 17.8k]
  ------------------
 1186|    659|      size_t fraglen = pathlen - (fragment - path);
 1187|    659|      ures = handle_fragment(u, fragment, fraglen, flags);
 1188|       |      /* after this, pathlen still contains the query */
 1189|    659|      pathlen -= fraglen;
 1190|    659|    }
 1191|  18.4k|  }
 1192|  18.9k|  if(!ures) {
  ------------------
  |  Branch (1192:6): [True: 18.4k, False: 510]
  ------------------
 1193|  18.4k|    const char *query = memchr(path, '?', pathlen);
 1194|  18.4k|    if(query) {
  ------------------
  |  Branch (1194:8): [True: 1.47k, False: 16.9k]
  ------------------
 1195|  1.47k|      size_t qlen = pathlen - (query - path);
 1196|  1.47k|      ures = handle_query(u, query, qlen, flags);
 1197|  1.47k|      pathlen -= qlen;
 1198|  1.47k|    }
 1199|  18.4k|  }
 1200|  18.9k|  if(!ures)
  ------------------
  |  Branch (1200:6): [True: 18.4k, False: 510]
  ------------------
 1201|       |    /* the fragment and query parts are trimmed off from the path */
 1202|  18.4k|    ures = handle_path(u, path, pathlen, flags, is_file);
 1203|  18.9k|  if(!ures) {
  ------------------
  |  Branch (1203:6): [True: 18.4k, False: 510]
  ------------------
 1204|  18.4k|    u->host = curlx_dyn_ptr(&host);
 1205|  18.4k|    return CURLUE_OK;
 1206|  18.4k|  }
 1207|    691|fail:
 1208|    691|  curlx_dyn_free(&host);
 1209|    691|  free_urlhandle(u);
 1210|    691|  return ures;
 1211|  18.9k|}
urlapi.c:parse_scheme:
  956|  18.9k|{
  957|       |  /* clear path */
  958|  18.9k|  const char *schemep = NULL;
  959|       |
  960|  18.9k|  if(schemelen) {
  ------------------
  |  Branch (960:6): [True: 18.9k, False: 0]
  ------------------
  961|  18.9k|    int i = 0;
  962|  18.9k|    const char *p = &url[schemelen + 1];
  963|  56.9k|    while((*p == '/') && (i < 4)) {
  ------------------
  |  Branch (963:11): [True: 37.9k, False: 18.9k]
  |  Branch (963:26): [True: 37.9k, False: 0]
  ------------------
  964|  37.9k|      p++;
  965|  37.9k|      i++;
  966|  37.9k|    }
  967|       |
  968|  18.9k|    schemep = schemebuf;
  969|  18.9k|    if(!Curl_get_scheme(schemep) &&
  ------------------
  |  Branch (969:8): [True: 45, False: 18.9k]
  ------------------
  970|     45|       !(flags & CURLU_NON_SUPPORT_SCHEME))
  ------------------
  |  |   90|     45|#define CURLU_NON_SUPPORT_SCHEME (1 << 3) /* allow non-supported scheme */
  ------------------
  |  Branch (970:8): [True: 21, False: 24]
  ------------------
  971|     21|      return CURLUE_UNSUPPORTED_SCHEME;
  972|       |
  973|  18.9k|    if((i < 1) || (i > 3))
  ------------------
  |  Branch (973:8): [True: 12, False: 18.9k]
  |  Branch (973:19): [True: 5, False: 18.9k]
  ------------------
  974|       |      /* less than one or more than three slashes */
  975|     17|      return CURLUE_BAD_SLASHES;
  976|       |
  977|  18.9k|    *hostpp = p; /* hostname starts here */
  978|  18.9k|  }
  979|      0|  else {
  980|       |    /* no scheme! */
  981|       |
  982|      0|    if(!(flags & (CURLU_DEFAULT_SCHEME | CURLU_GUESS_SCHEME)))
  ------------------
  |  |   88|      0|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
                  if(!(flags & (CURLU_DEFAULT_SCHEME | CURLU_GUESS_SCHEME)))
  ------------------
  |  |   96|      0|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
  |  Branch (982:8): [True: 0, False: 0]
  ------------------
  983|      0|      return CURLUE_BAD_SCHEME;
  984|       |
  985|      0|    if(flags & CURLU_DEFAULT_SCHEME)
  ------------------
  |  |   88|      0|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
  |  Branch (985:8): [True: 0, False: 0]
  ------------------
  986|      0|      schemep = DEFAULT_SCHEME;
  ------------------
  |  |   66|      0|#define DEFAULT_SCHEME "https"
  ------------------
  987|       |
  988|       |    /*
  989|       |     * The URL was badly formatted, let's try without scheme specified.
  990|       |     */
  991|      0|    *hostpp = url;
  992|      0|  }
  993|       |
  994|  18.9k|  if(schemep) {
  ------------------
  |  Branch (994:6): [True: 18.9k, False: 0]
  ------------------
  995|  18.9k|    u->scheme = curlx_strdup(schemep);
  ------------------
  |  | 1477|  18.9k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  996|  18.9k|    if(!u->scheme)
  ------------------
  |  Branch (996:8): [True: 0, False: 18.9k]
  ------------------
  997|      0|      return CURLUE_OUT_OF_MEMORY;
  998|  18.9k|  }
  999|  18.9k|  return CURLUE_OK;
 1000|  18.9k|}
urlapi.c:handle_fragment:
 1032|    659|{
 1033|    659|  CURLUcode ures;
 1034|    659|  u->fragment_present = TRUE;
  ------------------
  |  | 1055|    659|#define TRUE true
  ------------------
 1035|    659|  if(fraglen > 1) {
  ------------------
  |  Branch (1035:6): [True: 590, False: 69]
  ------------------
 1036|       |    /* skip the leading '#' in the copy but include the terminating null */
 1037|    590|    if(flags & CURLU_URLENCODE) {
  ------------------
  |  |   94|    590|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1037:8): [True: 291, False: 299]
  ------------------
 1038|    291|      struct dynbuf enc;
 1039|    291|      curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|    291|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1040|    291|      ures = urlencode_str(&enc, fragment + 1, fraglen - 1, TRUE, QUERY_NO);
  ------------------
  |  | 1055|    291|#define TRUE true
  ------------------
                    ures = urlencode_str(&enc, fragment + 1, fraglen - 1, TRUE, QUERY_NO);
  ------------------
  |  |   52|    291|#define QUERY_NO      2
  ------------------
 1041|    291|      if(ures)
  ------------------
  |  Branch (1041:10): [True: 0, False: 291]
  ------------------
 1042|      0|        return ures;
 1043|    291|      u->fragment = curlx_dyn_ptr(&enc);
 1044|    291|    }
 1045|    299|    else {
 1046|    299|      u->fragment = curlx_memdup0(fragment + 1, fraglen - 1);
 1047|    299|      if(!u->fragment)
  ------------------
  |  Branch (1047:10): [True: 0, False: 299]
  ------------------
 1048|      0|        return CURLUE_OUT_OF_MEMORY;
 1049|    299|    }
 1050|    590|  }
 1051|    659|  return CURLUE_OK;
 1052|    659|}
urlapi.c:handle_query:
 1056|  1.47k|{
 1057|  1.47k|  u->query_present = TRUE;
  ------------------
  |  | 1055|  1.47k|#define TRUE true
  ------------------
 1058|  1.47k|  if(qlen > 1) {
  ------------------
  |  Branch (1058:6): [True: 1.44k, False: 35]
  ------------------
 1059|  1.44k|    if(flags & CURLU_URLENCODE) {
  ------------------
  |  |   94|  1.44k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1059:8): [True: 769, False: 673]
  ------------------
 1060|    769|      struct dynbuf enc;
 1061|    769|      CURLUcode ures;
 1062|    769|      curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|    769|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1063|       |      /* skip the leading question mark */
 1064|    769|      ures = urlencode_str(&enc, query + 1, qlen - 1, TRUE, QUERY_YES);
  ------------------
  |  | 1055|    769|#define TRUE true
  ------------------
                    ures = urlencode_str(&enc, query + 1, qlen - 1, TRUE, QUERY_YES);
  ------------------
  |  |   54|    769|#define QUERY_YES     4
  ------------------
 1065|    769|      if(ures)
  ------------------
  |  Branch (1065:10): [True: 0, False: 769]
  ------------------
 1066|      0|        return ures;
 1067|    769|      u->query = curlx_dyn_ptr(&enc);
 1068|    769|    }
 1069|    673|    else {
 1070|    673|      u->query = curlx_memdup0(query + 1, qlen - 1);
 1071|    673|      if(!u->query)
  ------------------
  |  Branch (1071:10): [True: 0, False: 673]
  ------------------
 1072|      0|        return CURLUE_OUT_OF_MEMORY;
 1073|    673|    }
 1074|  1.44k|  }
 1075|     35|  else {
 1076|       |    /* single byte query */
 1077|     35|    u->query = curlx_strdup("");
  ------------------
  |  | 1477|     35|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1078|     35|    if(!u->query)
  ------------------
  |  Branch (1078:8): [True: 0, False: 35]
  ------------------
 1079|      0|      return CURLUE_OUT_OF_MEMORY;
 1080|     35|  }
 1081|  1.47k|  return CURLUE_OK;
 1082|  1.47k|}
urlapi.c:handle_path:
 1087|  18.4k|{
 1088|  18.4k|  CURLUcode ures;
 1089|  18.4k|  if(pathlen && (flags & CURLU_URLENCODE)) {
  ------------------
  |  |   94|  13.9k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1089:6): [True: 13.9k, False: 4.50k]
  |  Branch (1089:17): [True: 6.68k, False: 7.26k]
  ------------------
 1090|  6.68k|    struct dynbuf enc;
 1091|  6.68k|    curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  6.68k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1092|  6.68k|    ures = urlencode_str(&enc, path, pathlen, TRUE, QUERY_NO);
  ------------------
  |  | 1055|  6.68k|#define TRUE true
  ------------------
                  ures = urlencode_str(&enc, path, pathlen, TRUE, QUERY_NO);
  ------------------
  |  |   52|  6.68k|#define QUERY_NO      2
  ------------------
 1093|  6.68k|    if(ures)
  ------------------
  |  Branch (1093:8): [True: 0, False: 6.68k]
  ------------------
 1094|      0|      return ures;
 1095|  6.68k|    pathlen = curlx_dyn_len(&enc);
 1096|  6.68k|    path = u->path = curlx_dyn_ptr(&enc);
 1097|  6.68k|  }
 1098|       |
 1099|  18.4k|  if(pathlen >= (size_t)(1 + !is_file)) {
  ------------------
  |  Branch (1099:6): [True: 13.0k, False: 5.42k]
  ------------------
 1100|       |    /* paths for file:// scheme can be one byte, others need to be two */
 1101|  13.0k|    if(!u->path) {
  ------------------
  |  Branch (1101:8): [True: 7.03k, False: 6.00k]
  ------------------
 1102|  7.03k|      u->path = curlx_memdup0(path, pathlen);
 1103|  7.03k|      if(!u->path)
  ------------------
  |  Branch (1103:10): [True: 0, False: 7.03k]
  ------------------
 1104|      0|        return CURLUE_OUT_OF_MEMORY;
 1105|  7.03k|      path = u->path;
 1106|  7.03k|    }
 1107|  6.00k|    else if(flags & CURLU_URLENCODE)
  ------------------
  |  |   94|  6.00k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1107:13): [True: 6.00k, False: 0]
  ------------------
 1108|       |      /* it might have encoded more than the path so cut it */
 1109|  6.00k|      u->path[pathlen] = 0;
 1110|       |
 1111|  13.0k|    if(!(flags & CURLU_PATH_AS_IS)) {
  ------------------
  |  |   91|  13.0k|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  ------------------
  |  Branch (1111:8): [True: 13.0k, False: 0]
  ------------------
 1112|       |      /* remove ../ and ./ sequences according to RFC3986 */
 1113|  13.0k|      char *dedot;
 1114|  13.0k|      int err = dedotdotify(path, pathlen, &dedot);
 1115|  13.0k|      if(err)
  ------------------
  |  Branch (1115:10): [True: 0, False: 13.0k]
  ------------------
 1116|      0|        return CURLUE_OUT_OF_MEMORY;
 1117|  13.0k|      if(dedot) {
  ------------------
  |  Branch (1117:10): [True: 13.0k, False: 4]
  ------------------
 1118|  13.0k|        curlx_free(u->path);
  ------------------
  |  | 1483|  13.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1119|  13.0k|        u->path = dedot;
 1120|  13.0k|      }
 1121|  13.0k|    }
 1122|  13.0k|  }
 1123|  18.4k|  return CURLUE_OK;
 1124|  18.4k|}
urlapi.c:redirect_url:
 1235|  3.07k|{
 1236|  3.07k|  struct dynbuf urlbuf;
 1237|  3.07k|  bool host_changed = FALSE;
  ------------------
  |  | 1058|  3.07k|#define FALSE false
  ------------------
 1238|  3.07k|  const char *useurl = relurl;
 1239|  3.07k|  const char *cutoff = NULL;
 1240|  3.07k|  size_t prelen;
 1241|  3.07k|  CURLUcode uc;
 1242|       |  /* this can get here with a NULL u->scheme only if asked to use the default
 1243|       |     scheme, so allow fallback to that */
 1244|  3.07k|  const char *scheme = u->scheme ? u->scheme : DEFAULT_SCHEME;
  ------------------
  |  |   66|      0|#define DEFAULT_SCHEME "https"
  ------------------
  |  Branch (1244:24): [True: 3.07k, False: 0]
  ------------------
 1245|       |
 1246|       |  /* protsep points to the start of the hostname, after [scheme]:// */
 1247|  3.07k|  const char *protsep = base + strlen(scheme) + 3;
 1248|  3.07k|  DEBUGASSERT(base && relurl && u); /* all set here */
  ------------------
  |  | 1081|  3.07k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1248:3): [True: 0, False: 3.07k]
  |  Branch (1248:3): [True: 0, False: 0]
  |  Branch (1248:3): [True: 0, False: 0]
  |  Branch (1248:3): [True: 3.07k, False: 0]
  |  Branch (1248:3): [True: 3.07k, False: 0]
  |  Branch (1248:3): [True: 3.07k, False: 0]
  ------------------
 1249|  3.07k|  if(!base)
  ------------------
  |  Branch (1249:6): [True: 0, False: 3.07k]
  ------------------
 1250|      0|    return CURLUE_MALFORMED_INPUT; /* should never happen */
 1251|       |
 1252|       |  /* handle different relative URL types */
 1253|  3.07k|  switch(relurl[0]) {
 1254|     51|  case '/':
  ------------------
  |  Branch (1254:3): [True: 51, False: 3.01k]
  ------------------
 1255|     51|    if(relurl[1] == '/') {
  ------------------
  |  Branch (1255:8): [True: 44, False: 7]
  ------------------
 1256|       |      /* protocol-relative URL: //example.com/path */
 1257|     44|      cutoff = protsep;
 1258|     44|      useurl = &relurl[2];
 1259|     44|      host_changed = TRUE;
  ------------------
  |  | 1055|     44|#define TRUE true
  ------------------
 1260|     44|    }
 1261|      7|    else
 1262|       |      /* absolute /path */
 1263|      7|      cutoff = strchr(protsep, '/');
 1264|     51|    break;
 1265|       |
 1266|     94|  case '#':
  ------------------
  |  Branch (1266:3): [True: 94, False: 2.97k]
  ------------------
 1267|       |    /* fragment-only change */
 1268|     94|    if(u->fragment)
  ------------------
  |  Branch (1268:8): [True: 70, False: 24]
  ------------------
 1269|     70|      cutoff = strchr(protsep, '#');
 1270|     94|    break;
 1271|       |
 1272|  2.92k|  default:
  ------------------
  |  Branch (1272:3): [True: 2.92k, False: 145]
  ------------------
 1273|       |    /* path or query-only change */
 1274|  2.92k|    if(u->query && u->query[0])
  ------------------
  |  Branch (1274:8): [True: 305, False: 2.62k]
  |  Branch (1274:20): [True: 302, False: 3]
  ------------------
 1275|       |      /* remove existing query */
 1276|    302|      cutoff = strchr(protsep, '?');
 1277|  2.62k|    else if(u->fragment && u->fragment[0])
  ------------------
  |  Branch (1277:13): [True: 85, False: 2.53k]
  |  Branch (1277:28): [True: 85, False: 0]
  ------------------
 1278|       |      /* Remove existing fragment */
 1279|     85|      cutoff = strchr(protsep, '#');
 1280|       |
 1281|  2.92k|    if(relurl[0] != '?') {
  ------------------
  |  Branch (1281:8): [True: 2.89k, False: 26]
  ------------------
 1282|       |      /* append a relative path after the last slash */
 1283|  2.89k|      cutoff = memrchr(protsep, '/',
 1284|  2.89k|                       cutoff ? (size_t)(cutoff - protsep) : strlen(protsep));
  ------------------
  |  Branch (1284:24): [True: 378, False: 2.52k]
  ------------------
 1285|  2.89k|      if(cutoff)
  ------------------
  |  Branch (1285:10): [True: 2.89k, False: 0]
  ------------------
 1286|  2.89k|        cutoff++; /* truncate after last slash */
 1287|  2.89k|    }
 1288|  2.92k|    break;
 1289|  3.07k|  }
 1290|       |
 1291|  3.07k|  prelen = cutoff ? (size_t)(cutoff - base) : strlen(base);
  ------------------
  |  Branch (1291:12): [True: 3.02k, False: 41]
  ------------------
 1292|       |
 1293|       |  /* build new URL */
 1294|  3.07k|  curlx_dyn_init(&urlbuf, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  3.07k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1295|       |
 1296|  3.07k|  if(!curlx_dyn_addn(&urlbuf, base, prelen) &&
  ------------------
  |  Branch (1296:6): [True: 3.07k, False: 0]
  ------------------
 1297|  3.07k|     !urlencode_str(&urlbuf, useurl, strlen(useurl), !host_changed,
  ------------------
  |  Branch (1297:6): [True: 3.07k, False: 0]
  ------------------
 1298|  3.07k|                    QUERY_NOT_YET)) {
  ------------------
  |  |   53|  3.07k|#define QUERY_NOT_YET 3 /* allow to change to query */
  ------------------
 1299|  3.07k|    uc = parseurl_and_replace(curlx_dyn_ptr(&urlbuf), u,
 1300|  3.07k|                              flags & ~U_CURLU_PATH_AS_IS);
  ------------------
  |  |   64|  3.07k|#define U_CURLU_PATH_AS_IS (unsigned int)CURLU_PATH_AS_IS
  |  |  ------------------
  |  |  |  |   91|  3.07k|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  |  |  ------------------
  ------------------
 1301|  3.07k|  }
 1302|      0|  else
 1303|      0|    uc = CURLUE_OUT_OF_MEMORY;
 1304|       |
 1305|  3.07k|  curlx_dyn_free(&urlbuf);
 1306|  3.07k|  return uc;
 1307|  3.07k|}
urlapi.c:hostname_check:
  464|  11.3k|{
  465|  11.3k|  size_t len;
  466|  11.3k|  DEBUGASSERT(hostname);
  ------------------
  |  | 1081|  11.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (466:3): [True: 0, False: 11.3k]
  |  Branch (466:3): [True: 11.3k, False: 0]
  ------------------
  467|       |
  468|  11.3k|  if(!hlen)
  ------------------
  |  Branch (468:6): [True: 0, False: 11.3k]
  ------------------
  469|      0|    return CURLUE_NO_HOST;
  470|  11.3k|  else if(hostname[0] == '[')
  ------------------
  |  Branch (470:11): [True: 1, False: 11.3k]
  ------------------
  471|      1|    return ipv6_parse(u, hostname, hlen);
  472|  11.3k|  else {
  473|       |    /* letters from the second string are not ok */
  474|  11.3k|    len = strcspn(hostname, " \r\n\t/:#?!@{}[]\\$\'\"^`*<>=;,+&()%|");
  475|  11.3k|    if(hlen != len)
  ------------------
  |  Branch (475:8): [True: 235, False: 11.0k]
  ------------------
  476|       |      /* hostname with bad content */
  477|    235|      return CURLUE_BAD_HOSTNAME;
  478|  11.0k|    else if((hlen >= 2) &&
  ------------------
  |  Branch (478:13): [True: 8.25k, False: 2.81k]
  ------------------
  479|  8.25k|            (hostname[hlen - 1] == '.') && (hostname[hlen - 2] == '.'))
  ------------------
  |  Branch (479:13): [True: 801, False: 7.45k]
  |  Branch (479:44): [True: 4, False: 797]
  ------------------
  480|       |      /* more than one trailing dot is not allowed */
  481|      4|      return CURLUE_BAD_HOSTNAME;
  482|  11.0k|    else if((hlen == 1) && (hostname[0] == '.'))
  ------------------
  |  Branch (482:13): [True: 2.81k, False: 8.25k]
  |  Branch (482:28): [True: 78, False: 2.73k]
  ------------------
  483|       |      /* just a single dot is not allowed */
  484|     78|      return CURLUE_BAD_HOSTNAME;
  485|  11.3k|  }
  486|  10.9k|  return CURLUE_OK;
  487|  11.3k|}

Curl_auth_digest_cleanup:
 1035|  31.3k|{
 1036|  31.3k|  curlx_safefree(digest->nonce);
  ------------------
  |  | 1327|  31.3k|  do {                      \
  |  | 1328|  31.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  31.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  31.3k|    (ptr) = NULL;           \
  |  | 1330|  31.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 31.3k]
  |  |  ------------------
  ------------------
 1037|  31.3k|  curlx_safefree(digest->cnonce);
  ------------------
  |  | 1327|  31.3k|  do {                      \
  |  | 1328|  31.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  31.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  31.3k|    (ptr) = NULL;           \
  |  | 1330|  31.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 31.3k]
  |  |  ------------------
  ------------------
 1038|  31.3k|  curlx_safefree(digest->realm);
  ------------------
  |  | 1327|  31.3k|  do {                      \
  |  | 1328|  31.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  31.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  31.3k|    (ptr) = NULL;           \
  |  | 1330|  31.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 31.3k]
  |  |  ------------------
  ------------------
 1039|  31.3k|  curlx_safefree(digest->opaque);
  ------------------
  |  | 1327|  31.3k|  do {                      \
  |  | 1328|  31.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  31.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  31.3k|    (ptr) = NULL;           \
  |  | 1330|  31.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 31.3k]
  |  |  ------------------
  ------------------
 1040|  31.3k|  curlx_safefree(digest->qop);
  ------------------
  |  | 1327|  31.3k|  do {                      \
  |  | 1328|  31.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  31.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  31.3k|    (ptr) = NULL;           \
  |  | 1330|  31.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 31.3k]
  |  |  ------------------
  ------------------
 1041|  31.3k|  curlx_safefree(digest->algorithm);
  ------------------
  |  | 1327|  31.3k|  do {                      \
  |  | 1328|  31.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  31.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  31.3k|    (ptr) = NULL;           \
  |  | 1330|  31.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 31.3k]
  |  |  ------------------
  ------------------
 1042|       |
 1043|  31.3k|  digest->nc = 0;
 1044|  31.3k|  digest->algo = ALGO_MD5; /* default algorithm */
  ------------------
  |  |   43|  31.3k|#define ALGO_MD5 0
  ------------------
 1045|  31.3k|  digest->stale = FALSE;   /* default means normal, not stale */
  ------------------
  |  | 1058|  31.3k|#define FALSE false
  ------------------
 1046|       |  digest->userhash = FALSE;
  ------------------
  |  | 1058|  31.3k|#define FALSE false
  ------------------
 1047|  31.3k|}

Curl_tls_keylog_open:
   39|      2|{
   40|      2|  if(!keylog_file_fp) {
  ------------------
  |  Branch (40:6): [True: 2, False: 0]
  ------------------
   41|      2|    keylog_file_name = getenv("SSLKEYLOGFILE");
   42|      2|    if(keylog_file_name) {
  ------------------
  |  Branch (42:8): [True: 0, False: 2]
  ------------------
   43|      0|      keylog_file_fp = curlx_fopen(keylog_file_name, FOPEN_APPENDTEXT);
  ------------------
  |  |   74|      0|#define curlx_fopen(file, mode) curl_dbg_fopen(file, mode, __LINE__, __FILE__)
  ------------------
   44|      0|      if(keylog_file_fp) {
  ------------------
  |  Branch (44:10): [True: 0, False: 0]
  ------------------
   45|       |#ifdef _WIN32
   46|       |        if(setvbuf(keylog_file_fp, NULL, _IONBF, 0))
   47|       |#else
   48|      0|        if(setvbuf(keylog_file_fp, NULL, _IOLBF, 4096))
  ------------------
  |  Branch (48:12): [True: 0, False: 0]
  ------------------
   49|      0|#endif
   50|      0|        {
   51|      0|          curlx_fclose(keylog_file_fp);
  ------------------
  |  |   79|      0|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
   52|       |          keylog_file_fp = NULL;
   53|      0|        }
   54|      0|      }
   55|      0|    }
   56|      2|  }
   57|      2|}
Curl_tls_keylog_enabled:
   68|    220|{
   69|       |  return keylog_file_fp != NULL;
   70|    220|}

Curl_ssl_setup_x509_store:
 3289|    219|{
 3290|    219|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3291|    219|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 3292|    219|  CURLcode result = CURLE_OK;
 3293|    219|  X509_STORE *cached_store;
 3294|    219|  bool cache_criteria_met, is_empty;
 3295|       |
 3296|       |  /* Consider the X509 store cacheable if it comes exclusively from a CAfile,
 3297|       |     or no source is provided and we are falling back to OpenSSL's built-in
 3298|       |     default. */
 3299|    219|  cache_criteria_met = (data->set.general_ssl.ca_cache_timeout != 0) &&
  ------------------
  |  Branch (3299:24): [True: 219, False: 0]
  ------------------
 3300|    219|    conn_config->verifypeer &&
  ------------------
  |  Branch (3300:5): [True: 219, False: 0]
  ------------------
 3301|    219|    !conn_config->CApath &&
  ------------------
  |  Branch (3301:5): [True: 0, False: 219]
  ------------------
 3302|      0|    !conn_config->ca_info_blob &&
  ------------------
  |  Branch (3302:5): [True: 0, False: 0]
  ------------------
 3303|      0|    !ssl_config->primary.CRLfile &&
  ------------------
  |  Branch (3303:5): [True: 0, False: 0]
  ------------------
 3304|      0|    !ssl_config->native_ca_store;
  ------------------
  |  Branch (3304:5): [True: 0, False: 0]
  ------------------
 3305|       |
 3306|    219|  ERR_set_mark();
 3307|       |
 3308|    219|  cached_store = ossl_get_cached_x509_store(cf, data, &is_empty);
 3309|    219|  if(cached_store && cache_criteria_met && X509_STORE_up_ref(cached_store)) {
  ------------------
  |  Branch (3309:6): [True: 0, False: 219]
  |  Branch (3309:22): [True: 0, False: 0]
  |  Branch (3309:44): [True: 0, False: 0]
  ------------------
 3310|      0|    SSL_CTX_set_cert_store(octx->ssl_ctx, cached_store);
 3311|      0|    octx->store_is_empty = is_empty;
 3312|      0|  }
 3313|    219|  else {
 3314|    219|    X509_STORE *store = SSL_CTX_get_cert_store(octx->ssl_ctx);
 3315|       |
 3316|    219|    result = ossl_populate_x509_store(cf, data, octx, store);
 3317|    219|    if(result == CURLE_OK && cache_criteria_met) {
  ------------------
  |  Branch (3317:8): [True: 219, False: 0]
  |  Branch (3317:30): [True: 0, False: 219]
  ------------------
 3318|      0|      ossl_set_cached_x509_store(cf, data, store, (bool)octx->store_is_empty);
 3319|      0|    }
 3320|    219|  }
 3321|       |
 3322|    219|  ERR_pop_to_mark();
 3323|       |
 3324|    219|  return result;
 3325|    219|}
Curl_ossl_need_httpsrr:
 3557|    220|{
 3558|    220|  (void)data;
 3559|       |  return FALSE;
  ------------------
  |  | 1058|    220|#define FALSE false
  ------------------
 3560|    220|}
Curl_ossl_ctx_init:
 3671|    220|{
 3672|    220|  CURLcode result = CURLE_OK;
 3673|    220|  const char *ciphers;
 3674|    220|  const SSL_METHOD *req_method = NULL;
 3675|    220|  ctx_option_t ctx_options = 0;
 3676|    220|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3677|    220|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 3678|    220|  char * const ssl_cert = ssl_config->primary.clientcert;
 3679|    220|  const struct curl_blob *ssl_cert_blob = ssl_config->primary.cert_blob;
 3680|    220|  const char * const ssl_cert_type = ssl_config->primary.cert_type;
 3681|    220|  unsigned int ssl_version_min;
 3682|    220|  char error_buffer[256];
 3683|       |
 3684|       |  /* Make funny stuff to get random input */
 3685|    220|  result = ossl_seed(data);
 3686|    220|  if(result)
  ------------------
  |  Branch (3686:6): [True: 0, False: 220]
  ------------------
 3687|      0|    return result;
 3688|       |
 3689|    220|  ssl_config->certverifyresult = !X509_V_OK;
 3690|       |
 3691|    220|  result = ossl_init_method(cf, data, peer, &req_method, &ssl_version_min);
 3692|    220|  if(result)
  ------------------
  |  Branch (3692:6): [True: 0, False: 220]
  ------------------
 3693|      0|    return result;
 3694|    220|  DEBUGASSERT(req_method);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3694:3): [True: 0, False: 220]
  |  Branch (3694:3): [True: 220, False: 0]
  ------------------
 3695|       |
 3696|    220|  DEBUGASSERT(!octx->ssl_ctx);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3696:3): [True: 0, False: 220]
  |  Branch (3696:3): [True: 220, False: 0]
  ------------------
 3697|    220|  octx->ssl_ctx =
 3698|    220|#ifdef OPENSSL_HAS_PROVIDERS
 3699|    220|    data->state.libctx ?
  ------------------
  |  Branch (3699:5): [True: 0, False: 220]
  ------------------
 3700|      0|    SSL_CTX_new_ex(data->state.libctx, data->state.propq, req_method):
 3701|    220|#endif
 3702|    220|    SSL_CTX_new(req_method);
 3703|       |
 3704|    220|  if(!octx->ssl_ctx) {
  ------------------
  |  Branch (3704:6): [True: 0, False: 220]
  ------------------
 3705|      0|    failf(data, "SSL: could not create a context: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3706|      0|          ossl_strerror(ERR_peek_error(), error_buffer, sizeof(error_buffer)));
 3707|      0|    return CURLE_OUT_OF_MEMORY;
 3708|      0|  }
 3709|       |
 3710|    220|  if(cb_setup) {
  ------------------
  |  Branch (3710:6): [True: 0, False: 220]
  ------------------
 3711|      0|    result = cb_setup(cf, data, cb_user_data);
 3712|      0|    if(result)
  ------------------
  |  Branch (3712:8): [True: 0, False: 0]
  ------------------
 3713|      0|      return result;
 3714|      0|  }
 3715|       |
 3716|    220|  if(data->set.fdebug && data->set.verbose &&
  ------------------
  |  Branch (3716:6): [True: 0, False: 220]
  |  Branch (3716:26): [True: 0, False: 0]
  ------------------
 3717|      0|     (peer->transport != TRNSPRT_QUIC)) {
  ------------------
  |  |  309|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (3717:6): [True: 0, False: 0]
  ------------------
 3718|       |    /* the SSL trace callback is only used for verbose logging;
 3719|       |     * QUIC connections use a different TLS record format that
 3720|       |     * ossl_trace cannot handle */
 3721|      0|    SSL_CTX_set_msg_callback(octx->ssl_ctx, ossl_trace);
 3722|      0|    SSL_CTX_set_msg_callback_arg(octx->ssl_ctx, cf);
 3723|      0|  }
 3724|       |
 3725|       |  /* OpenSSL contains code to work around lots of bugs and flaws in various
 3726|       |     SSL-implementations. SSL_CTX_set_options() is used to enabled those
 3727|       |     work-arounds. The man page for this option states that SSL_OP_ALL enables
 3728|       |     all the work-arounds and that "It is usually safe to use SSL_OP_ALL to
 3729|       |     enable the bug workaround options if compatibility with somewhat broken
 3730|       |     implementations is desired."
 3731|       |
 3732|       |     The "-no_ticket" option was introduced in OpenSSL 0.9.8j. it is a flag to
 3733|       |     disable "rfc4507bis session ticket support". rfc4507bis was later turned
 3734|       |     into the proper RFC5077: https://datatracker.ietf.org/doc/html/rfc5077
 3735|       |
 3736|       |     The enabled extension concerns the session management. I wonder how often
 3737|       |     libcurl stops a connection and then resumes a TLS session. Also, sending
 3738|       |     the session data is some overhead. I suggest that you use your proposed
 3739|       |     patch (which explicitly disables TICKET).
 3740|       |
 3741|       |     If someone writes an application with libcurl and OpenSSL who wants to
 3742|       |     enable the feature, one can do this in the SSL callback.
 3743|       |
 3744|       |     SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG option enabling allowed proper
 3745|       |     interoperability with web server Netscape Enterprise Server 2.0.1 which
 3746|       |     was released back in 1996.
 3747|       |
 3748|       |     Due to CVE-2010-4180, option SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG has
 3749|       |     become ineffective as of OpenSSL 0.9.8q and 1.0.0c. In order to mitigate
 3750|       |     CVE-2010-4180 when using previous OpenSSL versions we no longer enable
 3751|       |     this option regardless of OpenSSL version and SSL_OP_ALL definition.
 3752|       |
 3753|       |     OpenSSL added a work-around for an SSL 3.0/TLS 1.0 CBC vulnerability:
 3754|       |     https://web.archive.org/web/20240114184648/openssl.org/~bodo/tls-cbc.txt.
 3755|       |     In 0.9.6e they added a bit to SSL_OP_ALL that _disables_ that work-around
 3756|       |     despite the fact that SSL_OP_ALL is documented to do "rather harmless"
 3757|       |     workarounds. In order to keep the secure work-around, the
 3758|       |     SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS bit must not be set.
 3759|       |  */
 3760|       |
 3761|    220|  ctx_options = SSL_OP_ALL | SSL_OP_NO_TICKET | SSL_OP_NO_COMPRESSION;
 3762|       |
 3763|       |  /* mitigate CVE-2010-4180 */
 3764|    220|  ctx_options &= ~(ctx_option_t)SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG;
 3765|       |
 3766|       |  /* unless the user explicitly asks to allow the protocol vulnerability we
 3767|       |     use the work-around */
 3768|    220|  if(!ssl_config->enable_beast)
  ------------------
  |  Branch (3768:6): [True: 220, False: 0]
  ------------------
 3769|    220|    ctx_options &= ~(ctx_option_t)SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS;
 3770|       |
 3771|    220|  DEBUGASSERT(ssl_version_min != CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3771:3): [True: 0, False: 220]
  |  Branch (3771:3): [True: 220, False: 0]
  ------------------
 3772|    220|  switch(ssl_version_min) {
 3773|      0|  case CURL_SSLVERSION_SSLv2:
  ------------------
  |  | 2370|      0|#define CURL_SSLVERSION_SSLv2   2L
  ------------------
  |  Branch (3773:3): [True: 0, False: 220]
  ------------------
 3774|      0|  case CURL_SSLVERSION_SSLv3:
  ------------------
  |  | 2371|      0|#define CURL_SSLVERSION_SSLv3   3L
  ------------------
  |  Branch (3774:3): [True: 0, False: 220]
  ------------------
 3775|      0|    return CURLE_NOT_BUILT_IN;
 3776|       |
 3777|       |    /* "--tlsv<x.y>" options mean TLS >= version <x.y> */
 3778|      0|  case CURL_SSLVERSION_TLSv1:   /* TLS >= version 1.0 */
  ------------------
  |  | 2369|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  ------------------
  |  Branch (3778:3): [True: 0, False: 220]
  ------------------
 3779|      0|  case CURL_SSLVERSION_TLSv1_0: /* TLS >= version 1.0 */
  ------------------
  |  | 2372|      0|#define CURL_SSLVERSION_TLSv1_0 4L
  ------------------
  |  Branch (3779:3): [True: 0, False: 220]
  ------------------
 3780|      0|  case CURL_SSLVERSION_TLSv1_1: /* TLS >= version 1.1 */
  ------------------
  |  | 2373|      0|#define CURL_SSLVERSION_TLSv1_1 5L
  ------------------
  |  Branch (3780:3): [True: 0, False: 220]
  ------------------
 3781|    220|  case CURL_SSLVERSION_TLSv1_2: /* TLS >= version 1.2 */
  ------------------
  |  | 2374|    220|#define CURL_SSLVERSION_TLSv1_2 6L
  ------------------
  |  Branch (3781:3): [True: 220, False: 0]
  ------------------
 3782|    220|  case CURL_SSLVERSION_TLSv1_3: /* TLS >= version 1.3 */
  ------------------
  |  | 2375|    220|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
  |  Branch (3782:3): [True: 0, False: 220]
  ------------------
 3783|       |    /* asking for any TLS version as the minimum, means no SSL versions
 3784|       |       allowed */
 3785|    220|    ctx_options |= SSL_OP_NO_SSLv2;
 3786|    220|    ctx_options |= SSL_OP_NO_SSLv3;
 3787|       |
 3788|    220|    result = ossl_set_ssl_version_min_max(cf, octx->ssl_ctx, ssl_version_min);
 3789|    220|    if(result)
  ------------------
  |  Branch (3789:8): [True: 0, False: 220]
  ------------------
 3790|      0|      return result;
 3791|    220|    break;
 3792|       |
 3793|    220|  default:
  ------------------
  |  Branch (3793:3): [True: 0, False: 220]
  ------------------
 3794|      0|    failf(data, "Unrecognized parameter passed via CURLOPT_SSLVERSION");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3795|      0|    return CURLE_SSL_CONNECT_ERROR;
 3796|    220|  }
 3797|       |
 3798|    220|  SSL_CTX_set_options(octx->ssl_ctx, ctx_options);
 3799|    220|  SSL_CTX_set_read_ahead(octx->ssl_ctx, 1);
 3800|       |
 3801|       |  /* Max TLS1.2 record size 0x4000 + 0x800.
 3802|       |     OpenSSL supports processing "jumbo TLS record" (8 TLS records) in one go
 3803|       |     for some algorithms, so match that here.
 3804|       |     Experimentation shows that a slightly larger buffer is needed
 3805|       |     to avoid short reads.
 3806|       |
 3807|       |     However using a large buffer (8 packets) actually decreases performance.
 3808|       |     4 packets is better.
 3809|       |   */
 3810|    220|#ifdef HAVE_SSL_CTX_SET_DEFAULT_READ_BUFFER_LEN
 3811|    220|  SSL_CTX_set_default_read_buffer_len(octx->ssl_ctx, 0x401e * 4);
 3812|    220|#endif
 3813|       |
 3814|       |  /* We do retry writes sometimes from another buffer address */
 3815|    220|  SSL_CTX_set_mode(octx->ssl_ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
 3816|       |
 3817|    220|  ciphers = conn_config->cipher_list;
 3818|    220|  if(!ciphers && (peer->transport != TRNSPRT_QUIC))
  ------------------
  |  |  309|    220|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (3818:6): [True: 220, False: 0]
  |  Branch (3818:18): [True: 220, False: 0]
  ------------------
 3819|    220|    ciphers = NULL;
 3820|    220|  if(ciphers && (ssl_version_min < CURL_SSLVERSION_TLSv1_3)) {
  ------------------
  |  | 2375|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
  |  Branch (3820:6): [True: 0, False: 220]
  |  Branch (3820:17): [True: 0, False: 0]
  ------------------
 3821|      0|    if(!SSL_CTX_set_cipher_list(octx->ssl_ctx, ciphers)) {
  ------------------
  |  Branch (3821:8): [True: 0, False: 0]
  ------------------
 3822|      0|      failf(data, "failed setting cipher list: %s", ciphers);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3823|      0|      return CURLE_SSL_CIPHER;
 3824|      0|    }
 3825|      0|    infof(data, "Cipher selection: %s", ciphers);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3826|      0|  }
 3827|       |
 3828|    220|#ifdef HAVE_SSL_CTX_SET_CIPHERSUITES
 3829|    220|  {
 3830|    220|    const char *ciphers13 = conn_config->cipher_list13;
 3831|    220|    if(ciphers13 &&
  ------------------
  |  Branch (3831:8): [True: 0, False: 220]
  ------------------
 3832|      0|       (!conn_config->version_max ||
  ------------------
  |  Branch (3832:9): [True: 0, False: 0]
  ------------------
 3833|      0|        (conn_config->version_max == CURL_SSLVERSION_MAX_DEFAULT) ||
  ------------------
  |  | 2380|      0|#define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1   << 16)
  |  |  ------------------
  |  |  |  | 2369|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  |  |  ------------------
  ------------------
  |  Branch (3833:9): [True: 0, False: 0]
  ------------------
 3834|      0|        (conn_config->version_max >= CURL_SSLVERSION_MAX_TLSv1_3))) {
  ------------------
  |  | 2384|      0|#define CURL_SSLVERSION_MAX_TLSv1_3 (CURL_SSLVERSION_TLSv1_3 << 16)
  |  |  ------------------
  |  |  |  | 2375|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  |  |  ------------------
  ------------------
  |  Branch (3834:9): [True: 0, False: 0]
  ------------------
 3835|      0|      if(!SSL_CTX_set_ciphersuites(octx->ssl_ctx, ciphers13)) {
  ------------------
  |  Branch (3835:10): [True: 0, False: 0]
  ------------------
 3836|      0|        failf(data, "failed setting TLS 1.3 cipher suite: %s", ciphers13);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3837|      0|        return CURLE_SSL_CIPHER;
 3838|      0|      }
 3839|      0|      infof(data, "TLS 1.3 cipher selection: %s", ciphers13);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3840|      0|    }
 3841|    220|  }
 3842|    220|#endif
 3843|       |
 3844|    220|  if(ssl_cert || ssl_cert_blob || ssl_cert_type) {
  ------------------
  |  Branch (3844:6): [True: 0, False: 220]
  |  Branch (3844:18): [True: 0, False: 220]
  |  Branch (3844:35): [True: 0, False: 220]
  ------------------
 3845|      0|    result = client_cert(data, octx->ssl_ctx,
 3846|      0|                         ssl_cert, ssl_cert_blob, ssl_cert_type,
 3847|      0|                         ssl_config->primary.key, ssl_config->primary.key_blob,
 3848|      0|                         ssl_config->primary.key_type,
 3849|      0|                         ssl_config->primary.key_passwd);
 3850|      0|    if(result)
  ------------------
  |  Branch (3850:8): [True: 0, False: 0]
  ------------------
 3851|       |      /* failf() is already done in client_cert() */
 3852|      0|      return result;
 3853|      0|  }
 3854|       |
 3855|    220|#ifdef HAVE_SSL_CTX_SET_POST_HANDSHAKE_AUTH
 3856|       |  /* OpenSSL 1.1.1 requires clients to opt-in for PHA */
 3857|    220|  SSL_CTX_set_post_handshake_auth(octx->ssl_ctx, 1);
 3858|    220|#endif
 3859|       |
 3860|    220|  {
 3861|    220|    const char *curves = conn_config->curves;
 3862|    220|    if(curves) {
  ------------------
  |  Branch (3862:8): [True: 0, False: 220]
  ------------------
 3863|       |#ifdef HAVE_BORINGSSL_LIKE
 3864|       |#define OSSL_CURVE_CAST(x) (x)
 3865|       |#else
 3866|      0|#define OSSL_CURVE_CAST(x) (char *)CURL_UNCONST(x)
 3867|      0|#endif
 3868|      0|      if(!SSL_CTX_set1_curves_list(octx->ssl_ctx, OSSL_CURVE_CAST(curves))) {
  ------------------
  |  Branch (3868:10): [True: 0, False: 0]
  ------------------
 3869|      0|        failf(data, "failed setting curves list: '%s'", curves);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3870|      0|        return CURLE_SSL_CIPHER;
 3871|      0|      }
 3872|      0|    }
 3873|    220|  }
 3874|       |
 3875|    220|#ifdef HAVE_SSL_CTX_SET1_SIGALGS
 3876|    220|#define OSSL_SIGALG_CAST(x) OSSL_CURVE_CAST(x)
 3877|    220|  {
 3878|    220|    const char *signature_algorithms = conn_config->signature_algorithms;
 3879|    220|    if(signature_algorithms) {
  ------------------
  |  Branch (3879:8): [True: 0, False: 220]
  ------------------
 3880|      0|      if(!SSL_CTX_set1_sigalgs_list(octx->ssl_ctx,
  ------------------
  |  Branch (3880:10): [True: 0, False: 0]
  ------------------
 3881|      0|                                    OSSL_SIGALG_CAST(signature_algorithms))) {
 3882|      0|        failf(data, "failed setting signature algorithms: '%s'",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3883|      0|              signature_algorithms);
 3884|      0|        return CURLE_SSL_CIPHER;
 3885|      0|      }
 3886|      0|    }
 3887|    220|  }
 3888|    220|#endif
 3889|       |
 3890|    220|#if defined(HAVE_OPENSSL_SRP) && defined(USE_TLS_SRP)
 3891|    220|  if(ssl_config->primary.username && Curl_auth_allowed_to_host(data)) {
  ------------------
  |  Branch (3891:6): [True: 0, False: 220]
  |  Branch (3891:38): [True: 0, False: 0]
  ------------------
 3892|      0|    char * const ssl_username = ssl_config->primary.username;
 3893|      0|    char * const ssl_password = ssl_config->primary.password;
 3894|      0|    infof(data, "Using TLS-SRP username: %s", ssl_username);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3895|       |
 3896|      0|    if(!SSL_CTX_set_srp_username(octx->ssl_ctx, ssl_username)) {
  ------------------
  |  Branch (3896:8): [True: 0, False: 0]
  ------------------
 3897|      0|      failf(data, "Unable to set SRP username");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3898|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 3899|      0|    }
 3900|      0|    if(!SSL_CTX_set_srp_password(octx->ssl_ctx, ssl_password)) {
  ------------------
  |  Branch (3900:8): [True: 0, False: 0]
  ------------------
 3901|      0|      failf(data, "failed setting SRP password");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3902|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 3903|      0|    }
 3904|      0|    if(!conn_config->cipher_list) {
  ------------------
  |  Branch (3904:8): [True: 0, False: 0]
  ------------------
 3905|      0|      infof(data, "Setting cipher list SRP");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3906|       |
 3907|      0|      if(!SSL_CTX_set_cipher_list(octx->ssl_ctx, "SRP")) {
  ------------------
  |  Branch (3907:10): [True: 0, False: 0]
  ------------------
 3908|      0|        failf(data, "failed setting SRP cipher list");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3909|      0|        return CURLE_SSL_CIPHER;
 3910|      0|      }
 3911|      0|    }
 3912|      0|  }
 3913|    220|#endif /* HAVE_OPENSSL_SRP && USE_TLS_SRP */
 3914|       |
 3915|       |  /* OpenSSL always tries to verify the peer. By setting the failure mode
 3916|       |   * to NONE, we allow the connect to complete, regardless of the outcome.
 3917|       |   * We then explicitly check the result and may try alternatives like
 3918|       |   * Apple's SecTrust for verification. */
 3919|    220|  SSL_CTX_set_verify(octx->ssl_ctx, SSL_VERIFY_NONE, NULL);
 3920|       |
 3921|       |  /* Enable logging of secrets to the file specified in env SSLKEYLOGFILE. */
 3922|    220|#if !defined(HAVE_KEYLOG_UPSTREAM) && defined(HAVE_KEYLOG_CALLBACK)
 3923|    220|  if(Curl_tls_keylog_enabled()) {
  ------------------
  |  Branch (3923:6): [True: 0, False: 220]
  ------------------
 3924|      0|    SSL_CTX_set_keylog_callback(octx->ssl_ctx, ossl_keylog_callback);
 3925|      0|  }
 3926|    220|#endif
 3927|       |
 3928|    220|  if(cb_new_session) {
  ------------------
  |  Branch (3928:6): [True: 220, False: 0]
  ------------------
 3929|       |    /* Enable the session cache because it is a prerequisite for the
 3930|       |     * "new session" callback. Use the "external storage" mode to prevent
 3931|       |     * OpenSSL from creating an internal session cache.
 3932|       |     */
 3933|    220|    SSL_CTX_set_session_cache_mode(octx->ssl_ctx,
 3934|    220|                                   SSL_SESS_CACHE_CLIENT |
 3935|    220|                                   SSL_SESS_CACHE_NO_INTERNAL);
 3936|    220|    SSL_CTX_sess_set_new_cb(octx->ssl_ctx, cb_new_session);
 3937|    220|  }
 3938|       |
 3939|       |  /* give application a chance to interfere with SSL set up. */
 3940|    220|  if(data->set.ssl.fsslctx) {
  ------------------
  |  Branch (3940:6): [True: 0, False: 220]
  ------------------
 3941|       |    /* When a user callback is installed to modify the SSL_CTX,
 3942|       |     * we need to do the full initialization before calling it.
 3943|       |     * See: #11800 */
 3944|      0|    if(!octx->x509_store_setup) {
  ------------------
  |  Branch (3944:8): [True: 0, False: 0]
  ------------------
 3945|      0|      result = Curl_ssl_setup_x509_store(cf, data, octx);
 3946|      0|      if(result)
  ------------------
  |  Branch (3946:10): [True: 0, False: 0]
  ------------------
 3947|      0|        return result;
 3948|      0|      octx->x509_store_setup = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3949|      0|    }
 3950|      0|    Curl_set_in_callback(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3951|      0|    result = (*data->set.ssl.fsslctx)(data, octx->ssl_ctx,
 3952|      0|                                      data->set.ssl.fsslctxp);
 3953|      0|    Curl_set_in_callback(data, FALSE);
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 3954|      0|    if(result) {
  ------------------
  |  Branch (3954:8): [True: 0, False: 0]
  ------------------
 3955|      0|      failf(data, "error signaled by SSL ctx callback");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3956|      0|      return result;
 3957|      0|    }
 3958|      0|  }
 3959|       |
 3960|    220|  return ossl_init_ssl(octx, cf, data, peer, alpns_requested,
 3961|    220|                       ssl_user_data, sess_reuse_cb);
 3962|    220|}
Curl_ossl_version:
 5408|    229|{
 5409|       |#ifdef LIBRESSL_VERSION_NUMBER
 5410|       |  char *p;
 5411|       |  size_t count;
 5412|       |  const char *ver = OpenSSL_version(OPENSSL_VERSION);
 5413|       |  const char expected[] = OSSL_PACKAGE " "; /* ie "LibreSSL " */
 5414|       |  if(curl_strnequal(ver, expected, sizeof(expected) - 1)) {
 5415|       |    ver += sizeof(expected) - 1;
 5416|       |  }
 5417|       |  count = curl_msnprintf(buffer, size, "%s/%s", OSSL_PACKAGE, ver);
 5418|       |  for(p = buffer; *p; ++p) {
 5419|       |    if(ISBLANK(*p))
 5420|       |      *p = '_';
 5421|       |  }
 5422|       |  return count;
 5423|       |#elif defined(OPENSSL_IS_AWSLC)
 5424|       |  return curl_msnprintf(buffer, size, "%s/%s",
 5425|       |                        OSSL_PACKAGE, AWSLC_VERSION_NUMBER_STRING);
 5426|       |#elif defined(OPENSSL_IS_BORINGSSL)
 5427|       |#ifdef CURL_BORINGSSL_VERSION
 5428|       |  return curl_msnprintf(buffer, size, "%s/%s",
 5429|       |                        OSSL_PACKAGE, CURL_BORINGSSL_VERSION);
 5430|       |#else
 5431|       |  return curl_msnprintf(buffer, size, OSSL_PACKAGE);
 5432|       |#endif
 5433|       |#else /* OpenSSL 3+ */
 5434|    229|  return curl_msnprintf(buffer, size, "%s/%s",
 5435|    229|                        OSSL_PACKAGE, OpenSSL_version(OPENSSL_VERSION_STRING));
  ------------------
  |  |  163|    229|#define OSSL_PACKAGE "OpenSSL"
  ------------------
 5436|    229|#endif
 5437|    229|}
openssl.c:ossl_get_cached_x509_store:
 3211|    219|{
 3212|    219|  struct Curl_multi *multi = data->multi;
 3213|    219|  struct ossl_x509_share *share;
 3214|    219|  X509_STORE *store = NULL;
 3215|       |
 3216|    219|  DEBUGASSERT(multi);
  ------------------
  |  | 1081|    219|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3216:3): [True: 0, False: 219]
  |  Branch (3216:3): [True: 219, False: 0]
  ------------------
 3217|    219|  *pempty = TRUE;
  ------------------
  |  | 1055|    219|#define TRUE true
  ------------------
 3218|    219|  share = multi ? Curl_hash_pick(&multi->proto_hash,
  ------------------
  |  Branch (3218:11): [True: 219, False: 0]
  ------------------
 3219|    219|                                 CURL_UNCONST(MPROTO_OSSL_X509_KEY),
  ------------------
  |  |  866|    219|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 3220|    219|                                 sizeof(MPROTO_OSSL_X509_KEY) - 1) : NULL;
  ------------------
  |  | 3156|    219|#define MPROTO_OSSL_X509_KEY  "tls:ossl:x509:share"
  ------------------
 3221|    219|  if(share && share->store &&
  ------------------
  |  Branch (3221:6): [True: 0, False: 219]
  |  Branch (3221:15): [True: 0, False: 0]
  ------------------
 3222|      0|     !ossl_cached_x509_store_expired(data, share) &&
  ------------------
  |  Branch (3222:6): [True: 0, False: 0]
  ------------------
 3223|      0|     !ossl_cached_x509_store_different(cf, data, share)) {
  ------------------
  |  Branch (3223:6): [True: 0, False: 0]
  ------------------
 3224|      0|    store = share->store;
 3225|      0|    *pempty = (bool)share->store_is_empty;
 3226|      0|  }
 3227|       |
 3228|    219|  return store;
 3229|    219|}
openssl.c:ossl_populate_x509_store:
 3095|    219|{
 3096|    219|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3097|    219|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 3098|    219|  CURLcode result = CURLE_OK;
 3099|    219|  X509_LOOKUP *lookup = NULL;
 3100|    219|  const char * const ssl_crlfile = ssl_config->primary.CRLfile;
 3101|    219|  unsigned long x509flags = 0;
 3102|       |
 3103|    219|  CURL_TRC_CF(data, cf, "configuring OpenSSL's x509 trust store");
  ------------------
  |  |  153|    219|  do {                                          \
  |  |  154|    219|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    219|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    438|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 219, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 219]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    438|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    219|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    219|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    219|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 219]
  |  |  ------------------
  ------------------
 3104|    219|  if(!store)
  ------------------
  |  Branch (3104:6): [True: 0, False: 219]
  ------------------
 3105|      0|    return CURLE_OUT_OF_MEMORY;
 3106|       |
 3107|    219|  if(!conn_config->verifypeer) {
  ------------------
  |  Branch (3107:6): [True: 0, False: 219]
  ------------------
 3108|      0|    infof(data, "SSL Trust: peer verification disabled");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3109|      0|    return CURLE_OK;
 3110|      0|  }
 3111|       |
 3112|    219|  infof(data, "SSL Trust Anchors:");
  ------------------
  |  |  143|    219|  do {                               \
  |  |  144|    219|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    219|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 219, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |  320|    219|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    219|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    219|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 219]
  |  |  ------------------
  ------------------
 3113|    219|  result = ossl_load_trust_anchors(cf, data, octx, store);
 3114|    219|  if(result)
  ------------------
  |  Branch (3114:6): [True: 0, False: 219]
  ------------------
 3115|      0|    return result;
 3116|       |
 3117|       |  /* Does not make sense to load a CRL file without peer verification */
 3118|    219|  if(ssl_crlfile) {
  ------------------
  |  Branch (3118:6): [True: 0, False: 219]
  ------------------
 3119|       |    /* tell OpenSSL where to find CRL file that is used to check certificate
 3120|       |     * revocation */
 3121|      0|    lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file());
 3122|      0|    if(!lookup ||
  ------------------
  |  Branch (3122:8): [True: 0, False: 0]
  ------------------
 3123|      0|       (!X509_load_crl_file(lookup, ssl_crlfile, X509_FILETYPE_PEM))) {
  ------------------
  |  Branch (3123:8): [True: 0, False: 0]
  ------------------
 3124|      0|      failf(data, "error loading CRL file: %s", ssl_crlfile);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3125|      0|      return CURLE_SSL_CRL_BADFILE;
 3126|      0|    }
 3127|      0|    x509flags = X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL;
 3128|      0|    infof(data, " CRLfile: %s", ssl_crlfile);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3129|      0|  }
 3130|       |
 3131|       |  /* Try building a chain using issuers in the trusted store first to avoid
 3132|       |     problems with server-sent legacy intermediates. Newer versions of
 3133|       |     OpenSSL do alternate chain checking by default but we do not know how to
 3134|       |     determine that in a reliable manner.
 3135|       |     https://web.archive.org/web/20190422050538/rt.openssl.org/Ticket/Display.html?id=3621
 3136|       |  */
 3137|    219|  x509flags |= X509_V_FLAG_TRUSTED_FIRST;
 3138|       |
 3139|    219|  if(!ssl_config->no_partialchain && !ssl_crlfile) {
  ------------------
  |  Branch (3139:6): [True: 219, False: 0]
  |  Branch (3139:38): [True: 219, False: 0]
  ------------------
 3140|       |    /* Have intermediate certificates in the trust store be treated as
 3141|       |       trust-anchors, in the same way as self-signed root CA certificates are.
 3142|       |       This allows users to verify servers using the intermediate cert only,
 3143|       |       instead of needing the whole chain.
 3144|       |
 3145|       |       Due to OpenSSL bug https://github.com/openssl/openssl/issues/5081 we
 3146|       |       cannot do partial chains with a CRL check.
 3147|       |    */
 3148|    219|    x509flags |= X509_V_FLAG_PARTIAL_CHAIN;
 3149|    219|  }
 3150|    219|  (void)X509_STORE_set_flags(store, x509flags);
 3151|       |
 3152|    219|  return result;
 3153|    219|}
openssl.c:ossl_load_trust_anchors:
 2984|    219|{
 2985|    219|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 2986|    219|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 2987|    219|  CURLcode result = CURLE_OK;
 2988|    219|  const char * const ssl_cafile =
 2989|       |    /* CURLOPT_CAINFO_BLOB overrides CURLOPT_CAINFO */
 2990|    219|    (conn_config->ca_info_blob ? NULL : conn_config->CAfile);
  ------------------
  |  Branch (2990:6): [True: 0, False: 219]
  ------------------
 2991|    219|  const char * const ssl_capath = conn_config->CApath;
 2992|    219|  bool have_native_check = FALSE;
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
 2993|       |
 2994|    219|  octx->store_is_empty = TRUE;
  ------------------
  |  | 1055|    219|#define TRUE true
  ------------------
 2995|    219|  if(ssl_config->native_ca_store) {
  ------------------
  |  Branch (2995:6): [True: 0, False: 219]
  ------------------
 2996|       |#ifdef USE_WIN32_CRYPTO
 2997|       |    bool added = FALSE;
 2998|       |    result = ossl_windows_load_anchors(cf, data, store, &added);
 2999|       |    if(result)
 3000|       |      return result;
 3001|       |    if(added) {
 3002|       |      infof(data, "  Native: Windows System Stores ROOT+CA");
 3003|       |      octx->store_is_empty = FALSE;
 3004|       |    }
 3005|       |#elif defined(USE_APPLE_SECTRUST)
 3006|       |    infof(data, "  Native: Apple SecTrust");
 3007|       |    have_native_check = TRUE;
 3008|       |#endif
 3009|      0|  }
 3010|       |
 3011|    219|  if(conn_config->ca_info_blob) {
  ------------------
  |  Branch (3011:6): [True: 0, False: 219]
  ------------------
 3012|      0|    result = load_cacert_from_memory(store, conn_config->ca_info_blob);
 3013|      0|    if(result) {
  ------------------
  |  Branch (3013:8): [True: 0, False: 0]
  ------------------
 3014|      0|      failf(data, "error adding trust anchors from certificate blob: %d",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3015|      0|            result);
 3016|      0|      return result;
 3017|      0|    }
 3018|      0|    infof(data, "  CA Blob from configuration");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3019|      0|    octx->store_is_empty = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 3020|      0|  }
 3021|       |
 3022|    219|  if(ssl_cafile || ssl_capath) {
  ------------------
  |  Branch (3022:6): [True: 219, False: 0]
  |  Branch (3022:20): [True: 0, False: 0]
  ------------------
 3023|    219|#ifdef HAVE_OPENSSL3
 3024|       |    /* OpenSSL 3.0.0 has deprecated SSL_CTX_load_verify_locations */
 3025|    219|    if(ssl_cafile) {
  ------------------
  |  Branch (3025:8): [True: 219, False: 0]
  ------------------
 3026|    219|      if(!X509_STORE_load_file(store, ssl_cafile)) {
  ------------------
  |  Branch (3026:10): [True: 0, False: 219]
  ------------------
 3027|      0|        if(octx->store_is_empty && !have_native_check) {
  ------------------
  |  Branch (3027:12): [True: 0, False: 0]
  |  Branch (3027:36): [True: 0, False: 0]
  ------------------
 3028|       |          /* Fail if we insist on successfully verifying the server. */
 3029|      0|          failf(data, "error adding trust anchors from file: %s", ssl_cafile);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3030|      0|          return CURLE_SSL_CACERT_BADFILE;
 3031|      0|        }
 3032|      0|        else
 3033|      0|          infof(data, "error setting certificate file, continuing anyway");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3034|      0|      }
 3035|    219|      infof(data, "  CAfile: %s", ssl_cafile);
  ------------------
  |  |  143|    219|  do {                               \
  |  |  144|    219|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    219|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 219, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |  320|    219|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    219|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    219|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 219]
  |  |  ------------------
  ------------------
 3036|    219|      octx->store_is_empty = FALSE;
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
 3037|    219|    }
 3038|    219|    if(ssl_capath) {
  ------------------
  |  Branch (3038:8): [True: 219, False: 0]
  ------------------
 3039|    219|      if(!X509_STORE_load_path(store, ssl_capath)) {
  ------------------
  |  Branch (3039:10): [True: 0, False: 219]
  ------------------
 3040|      0|        if(octx->store_is_empty && !have_native_check) {
  ------------------
  |  Branch (3040:12): [True: 0, False: 0]
  |  Branch (3040:36): [True: 0, False: 0]
  ------------------
 3041|       |          /* Fail if we insist on successfully verifying the server. */
 3042|      0|          failf(data, "error adding trust anchors from path: %s", ssl_capath);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3043|      0|          return CURLE_SSL_CACERT_BADFILE;
 3044|      0|        }
 3045|      0|        else
 3046|      0|          infof(data, "error setting certificate path, continuing anyway");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3047|      0|      }
 3048|    219|      infof(data, "  CApath: %s", ssl_capath);
  ------------------
  |  |  143|    219|  do {                               \
  |  |  144|    219|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    219|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 219, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |  320|    219|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    219|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    219|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 219]
  |  |  ------------------
  ------------------
 3049|    219|      octx->store_is_empty = FALSE;
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
 3050|    219|    }
 3051|       |#else
 3052|       |    /* tell OpenSSL where to find CA certificates that are used to verify the
 3053|       |       server's certificate. */
 3054|       |    if(!X509_STORE_load_locations(store, ssl_cafile, ssl_capath)) {
 3055|       |      if(octx->store_is_empty && !have_native_check) {
 3056|       |        /* Fail if we insist on successfully verifying the server. */
 3057|       |        failf(data, "error adding trust anchors from locations:"
 3058|       |              "  CAfile: %s CApath: %s",
 3059|       |              ssl_cafile ? ssl_cafile : "none",
 3060|       |              ssl_capath ? ssl_capath : "none");
 3061|       |        return CURLE_SSL_CACERT_BADFILE;
 3062|       |      }
 3063|       |      else {
 3064|       |        infof(data, "error setting certificate verify locations,"
 3065|       |              " continuing anyway");
 3066|       |      }
 3067|       |    }
 3068|       |    if(ssl_cafile)
 3069|       |      infof(data, "  CAfile: %s", ssl_cafile);
 3070|       |    if(ssl_capath)
 3071|       |      infof(data, "  CApath: %s", ssl_capath);
 3072|       |    octx->store_is_empty = FALSE;
 3073|       |#endif
 3074|    219|  }
 3075|       |
 3076|       |#ifdef CURL_CA_FALLBACK
 3077|       |  if(octx->store_is_empty) {
 3078|       |    /* verifying the peer without any CA certificates does not
 3079|       |       work so use OpenSSL's built-in default as fallback */
 3080|       |    X509_STORE_set_default_paths(store);
 3081|       |    infof(data, "  OpenSSL default paths (fallback)");
 3082|       |    octx->store_is_empty = FALSE;
 3083|       |  }
 3084|       |#endif
 3085|    219|  if(octx->store_is_empty && !have_native_check)
  ------------------
  |  Branch (3085:6): [True: 0, False: 219]
  |  Branch (3085:30): [True: 0, False: 0]
  ------------------
 3086|      0|    infof(data, "  no trust anchors configured");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3087|       |
 3088|    219|  return result;
 3089|    219|}
openssl.c:ossl_seed:
  801|  7.50k|{
  802|       |  /* This might get called before it has been added to a multi handle */
  803|  7.50k|  if(data->multi && data->multi->ssl_seeded)
  ------------------
  |  Branch (803:6): [True: 7.50k, False: 0]
  |  Branch (803:21): [True: 5.93k, False: 1.56k]
  ------------------
  804|  5.93k|    return CURLE_OK;
  805|       |
  806|  1.56k|  if(rand_enough()) {
  ------------------
  |  Branch (806:6): [True: 1.56k, False: 0]
  ------------------
  807|       |    /* OpenSSL 1.1.0+ should return here */
  808|  1.56k|    if(data->multi)
  ------------------
  |  Branch (808:8): [True: 1.56k, False: 0]
  ------------------
  809|  1.56k|      data->multi->ssl_seeded = TRUE;
  ------------------
  |  | 1055|  1.56k|#define TRUE true
  ------------------
  810|  1.56k|    return CURLE_OK;
  811|  1.56k|  }
  812|      0|  failf(data, "Insufficient randomness");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  813|      0|  return CURLE_SSL_CONNECT_ERROR;
  814|  1.56k|}
openssl.c:rand_enough:
  796|  1.56k|{
  797|  1.56k|  return RAND_status() != 0;
  798|  1.56k|}
openssl.c:ossl_init_method:
 3613|    220|{
 3614|    220|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3615|       |
 3616|    220|  *pmethod = NULL;
 3617|    220|  *pssl_version_min = conn_config->version;
 3618|    220|  DEBUGASSERT(conn_config->version != CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3618:3): [True: 0, False: 220]
  |  Branch (3618:3): [True: 220, False: 0]
  ------------------
 3619|    220|  switch(peer->transport) {
 3620|    220|  case TRNSPRT_TCP:
  ------------------
  |  |  307|    220|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (3620:3): [True: 220, False: 0]
  ------------------
 3621|       |    /* check to see if we have been told to use an explicit SSL/TLS version */
 3622|    220|    switch(*pssl_version_min) {
 3623|      0|    case CURL_SSLVERSION_TLSv1:
  ------------------
  |  | 2369|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  ------------------
  |  Branch (3623:5): [True: 0, False: 220]
  ------------------
 3624|      0|    case CURL_SSLVERSION_TLSv1_0:
  ------------------
  |  | 2372|      0|#define CURL_SSLVERSION_TLSv1_0 4L
  ------------------
  |  Branch (3624:5): [True: 0, False: 220]
  ------------------
 3625|      0|    case CURL_SSLVERSION_TLSv1_1:
  ------------------
  |  | 2373|      0|#define CURL_SSLVERSION_TLSv1_1 5L
  ------------------
  |  Branch (3625:5): [True: 0, False: 220]
  ------------------
 3626|    220|    case CURL_SSLVERSION_TLSv1_2:
  ------------------
  |  | 2374|    220|#define CURL_SSLVERSION_TLSv1_2 6L
  ------------------
  |  Branch (3626:5): [True: 220, False: 0]
  ------------------
 3627|    220|    case CURL_SSLVERSION_TLSv1_3:
  ------------------
  |  | 2375|    220|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
  |  Branch (3627:5): [True: 0, False: 220]
  ------------------
 3628|       |      /* it is handled later with the context options */
 3629|    220|      *pmethod = TLS_client_method();
 3630|    220|      break;
 3631|      0|    case CURL_SSLVERSION_SSLv2:
  ------------------
  |  | 2370|      0|#define CURL_SSLVERSION_SSLv2   2L
  ------------------
  |  Branch (3631:5): [True: 0, False: 220]
  ------------------
 3632|      0|      failf(data, "No SSLv2 support");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3633|      0|      return CURLE_NOT_BUILT_IN;
 3634|      0|    case CURL_SSLVERSION_SSLv3:
  ------------------
  |  | 2371|      0|#define CURL_SSLVERSION_SSLv3   3L
  ------------------
  |  Branch (3634:5): [True: 0, False: 220]
  ------------------
 3635|      0|      failf(data, "No SSLv3 support");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3636|      0|      return CURLE_NOT_BUILT_IN;
 3637|      0|    default:
  ------------------
  |  Branch (3637:5): [True: 0, False: 220]
  ------------------
 3638|      0|      failf(data, "Unrecognized parameter passed via CURLOPT_SSLVERSION");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3639|      0|      return CURLE_SSL_CONNECT_ERROR;
 3640|    220|    }
 3641|    220|    break;
 3642|    220|  case TRNSPRT_QUIC:
  ------------------
  |  |  309|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (3642:3): [True: 0, False: 220]
  ------------------
 3643|      0|    *pssl_version_min = CURL_SSLVERSION_TLSv1_3;
  ------------------
  |  | 2375|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
 3644|      0|    if(conn_config->version_max &&
  ------------------
  |  Branch (3644:8): [True: 0, False: 0]
  ------------------
 3645|      0|       (conn_config->version_max != CURL_SSLVERSION_MAX_DEFAULT) &&
  ------------------
  |  | 2380|      0|#define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1   << 16)
  |  |  ------------------
  |  |  |  | 2369|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  |  |  ------------------
  ------------------
  |  Branch (3645:8): [True: 0, False: 0]
  ------------------
 3646|      0|       (conn_config->version_max != CURL_SSLVERSION_MAX_TLSv1_3)) {
  ------------------
  |  | 2384|      0|#define CURL_SSLVERSION_MAX_TLSv1_3 (CURL_SSLVERSION_TLSv1_3 << 16)
  |  |  ------------------
  |  |  |  | 2375|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  |  |  ------------------
  ------------------
  |  Branch (3646:8): [True: 0, False: 0]
  ------------------
 3647|      0|      failf(data, "QUIC needs at least TLS version 1.3");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3648|      0|      return CURLE_SSL_CONNECT_ERROR;
 3649|      0|    }
 3650|       |
 3651|      0|    *pmethod = TLS_method();
 3652|      0|    break;
 3653|      0|  default:
  ------------------
  |  Branch (3653:3): [True: 0, False: 220]
  ------------------
 3654|      0|    failf(data, "unsupported transport %d in SSL init", peer->transport);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3655|      0|    return CURLE_SSL_CONNECT_ERROR;
 3656|    220|  }
 3657|       |
 3658|    220|  return *pmethod ? CURLE_OK : CURLE_SSL_CONNECT_ERROR;
  ------------------
  |  Branch (3658:10): [True: 220, False: 0]
  ------------------
 3659|    220|}
openssl.c:ossl_set_ssl_version_min_max:
 2567|    220|{
 2568|    220|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 2569|       |  /* first, TLS min version... */
 2570|    220|  long curl_ssl_version_min = (long)ssl_version_min;
 2571|    220|  long curl_ssl_version_max;
 2572|       |
 2573|       |  /* convert curl min SSL version option to OpenSSL constant */
 2574|       |#if defined(HAVE_BORINGSSL_LIKE) || defined(LIBRESSL_VERSION_NUMBER)
 2575|       |  uint16_t ossl_ssl_version_min = 0;
 2576|       |  uint16_t ossl_ssl_version_max = 0;
 2577|       |#else
 2578|    220|  long ossl_ssl_version_min = 0;
 2579|    220|  long ossl_ssl_version_max = 0;
 2580|    220|#endif
 2581|       |  /* it cannot be default here */
 2582|    220|  DEBUGASSERT(curl_ssl_version_min != CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2582:3): [True: 0, False: 220]
  |  Branch (2582:3): [True: 220, False: 0]
  ------------------
 2583|    220|  switch(curl_ssl_version_min) {
  ------------------
  |  Branch (2583:10): [True: 220, False: 0]
  ------------------
 2584|      0|  case CURL_SSLVERSION_TLSv1: /* TLS 1.x */
  ------------------
  |  | 2369|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  ------------------
  |  Branch (2584:3): [True: 0, False: 220]
  ------------------
 2585|      0|  case CURL_SSLVERSION_TLSv1_0:
  ------------------
  |  | 2372|      0|#define CURL_SSLVERSION_TLSv1_0 4L
  ------------------
  |  Branch (2585:3): [True: 0, False: 220]
  ------------------
 2586|      0|    ossl_ssl_version_min = TLS1_VERSION;
 2587|      0|    break;
 2588|      0|  case CURL_SSLVERSION_TLSv1_1:
  ------------------
  |  | 2373|      0|#define CURL_SSLVERSION_TLSv1_1 5L
  ------------------
  |  Branch (2588:3): [True: 0, False: 220]
  ------------------
 2589|      0|    ossl_ssl_version_min = TLS1_1_VERSION;
 2590|      0|    break;
 2591|    220|  case CURL_SSLVERSION_TLSv1_2:
  ------------------
  |  | 2374|    220|#define CURL_SSLVERSION_TLSv1_2 6L
  ------------------
  |  Branch (2591:3): [True: 220, False: 0]
  ------------------
 2592|    220|    ossl_ssl_version_min = TLS1_2_VERSION;
 2593|    220|    break;
 2594|      0|  case CURL_SSLVERSION_TLSv1_3:
  ------------------
  |  | 2375|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
  |  Branch (2594:3): [True: 0, False: 220]
  ------------------
 2595|      0|    ossl_ssl_version_min = TLS1_3_VERSION;
 2596|      0|    break;
 2597|    220|  }
 2598|       |
 2599|       |  /* ... then, TLS max version */
 2600|    220|  curl_ssl_version_max = (long)conn_config->version_max;
 2601|       |
 2602|       |  /* convert curl max SSL version option to OpenSSL constant */
 2603|    220|  switch(curl_ssl_version_max) {
 2604|      0|  case CURL_SSLVERSION_MAX_TLSv1_0:
  ------------------
  |  | 2381|      0|#define CURL_SSLVERSION_MAX_TLSv1_0 (CURL_SSLVERSION_TLSv1_0 << 16)
  |  |  ------------------
  |  |  |  | 2372|      0|#define CURL_SSLVERSION_TLSv1_0 4L
  |  |  ------------------
  ------------------
  |  Branch (2604:3): [True: 0, False: 220]
  ------------------
 2605|      0|    ossl_ssl_version_max = TLS1_VERSION;
 2606|      0|    break;
 2607|      0|  case CURL_SSLVERSION_MAX_TLSv1_1:
  ------------------
  |  | 2382|      0|#define CURL_SSLVERSION_MAX_TLSv1_1 (CURL_SSLVERSION_TLSv1_1 << 16)
  |  |  ------------------
  |  |  |  | 2373|      0|#define CURL_SSLVERSION_TLSv1_1 5L
  |  |  ------------------
  ------------------
  |  Branch (2607:3): [True: 0, False: 220]
  ------------------
 2608|      0|    ossl_ssl_version_max = TLS1_1_VERSION;
 2609|      0|    break;
 2610|      0|  case CURL_SSLVERSION_MAX_TLSv1_2:
  ------------------
  |  | 2383|      0|#define CURL_SSLVERSION_MAX_TLSv1_2 (CURL_SSLVERSION_TLSv1_2 << 16)
  |  |  ------------------
  |  |  |  | 2374|      0|#define CURL_SSLVERSION_TLSv1_2 6L
  |  |  ------------------
  ------------------
  |  Branch (2610:3): [True: 0, False: 220]
  ------------------
 2611|      0|    ossl_ssl_version_max = TLS1_2_VERSION;
 2612|      0|    break;
 2613|      0|  case CURL_SSLVERSION_MAX_TLSv1_3:
  ------------------
  |  | 2384|      0|#define CURL_SSLVERSION_MAX_TLSv1_3 (CURL_SSLVERSION_TLSv1_3 << 16)
  |  |  ------------------
  |  |  |  | 2375|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  |  |  ------------------
  ------------------
  |  Branch (2613:3): [True: 0, False: 220]
  ------------------
 2614|      0|    ossl_ssl_version_max = TLS1_3_VERSION;
 2615|      0|    break;
 2616|    220|  case CURL_SSLVERSION_MAX_NONE:  /* none selected */
  ------------------
  |  | 2379|    220|#define CURL_SSLVERSION_MAX_NONE 0L
  ------------------
  |  Branch (2616:3): [True: 220, False: 0]
  ------------------
 2617|    220|  case CURL_SSLVERSION_MAX_DEFAULT:  /* max selected */
  ------------------
  |  | 2380|    220|#define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1   << 16)
  |  |  ------------------
  |  |  |  | 2369|    220|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  |  |  ------------------
  ------------------
  |  Branch (2617:3): [True: 0, False: 220]
  ------------------
 2618|    220|  default:
  ------------------
  |  Branch (2618:3): [True: 0, False: 220]
  ------------------
 2619|       |    /* SSL_CTX_set_max_proto_version states that: setting the maximum to 0
 2620|       |       enables protocol versions up to the highest version supported by
 2621|       |       the library */
 2622|    220|    ossl_ssl_version_max = 0;
 2623|    220|    break;
 2624|    220|  }
 2625|       |
 2626|    220|  if(!SSL_CTX_set_min_proto_version(ctx, ossl_ssl_version_min) ||
  ------------------
  |  Branch (2626:6): [True: 0, False: 220]
  ------------------
 2627|    220|     !SSL_CTX_set_max_proto_version(ctx, ossl_ssl_version_max))
  ------------------
  |  Branch (2627:6): [True: 0, False: 220]
  ------------------
 2628|      0|    return CURLE_SSL_CONNECT_ERROR;
 2629|       |
 2630|    220|  return CURLE_OK;
 2631|    220|}
openssl.c:ossl_provider_cleanup:
 1742|  15.6k|{
 1743|  15.6k|  if(data->state.baseprov) {
  ------------------
  |  Branch (1743:6): [True: 0, False: 15.6k]
  ------------------
 1744|      0|    OSSL_PROVIDER_unload(data->state.baseprov);
 1745|      0|    data->state.baseprov = NULL;
 1746|      0|  }
 1747|  15.6k|  if(data->state.provider) {
  ------------------
  |  Branch (1747:6): [True: 0, False: 15.6k]
  ------------------
 1748|      0|    OSSL_PROVIDER_unload(data->state.provider);
 1749|      0|    data->state.provider = NULL;
 1750|      0|  }
 1751|  15.6k|  OSSL_LIB_CTX_free(data->state.libctx);
 1752|  15.6k|  data->state.libctx = NULL;
 1753|  15.6k|  curlx_safefree(data->state.propq);
  ------------------
  |  | 1327|  15.6k|  do {                      \
  |  | 1328|  15.6k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  15.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  15.6k|    (ptr) = NULL;           \
  |  | 1330|  15.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 15.6k]
  |  |  ------------------
  ------------------
 1754|       |  data->state.provider_loaded = FALSE;
  ------------------
  |  | 1058|  15.6k|#define FALSE false
  ------------------
 1755|  15.6k|}
openssl.c:ossl_init_ssl:
 3570|    220|{
 3571|       |  /* Let's make an SSL structure */
 3572|    220|  if(octx->ssl)
  ------------------
  |  Branch (3572:6): [True: 0, False: 220]
  ------------------
 3573|      0|    SSL_free(octx->ssl);
 3574|    220|  octx->ssl = SSL_new(octx->ssl_ctx);
 3575|    220|  if(!octx->ssl) {
  ------------------
  |  Branch (3575:6): [True: 0, False: 220]
  ------------------
 3576|      0|    failf(data, "SSL: could not create a context (handle)");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3577|      0|    return CURLE_OUT_OF_MEMORY;
 3578|      0|  }
 3579|       |
 3580|    220|  SSL_set_app_data(octx->ssl, ssl_user_data);
 3581|       |
 3582|    220|#ifndef OPENSSL_NO_OCSP
 3583|    220|  if(Curl_ssl_cf_get_primary_config(cf)->verifystatus)
  ------------------
  |  Branch (3583:6): [True: 0, False: 220]
  ------------------
 3584|    220|    SSL_set_tlsext_status_type(octx->ssl, TLSEXT_STATUSTYPE_ocsp);
 3585|    220|#endif
 3586|       |
 3587|    220|  SSL_set_connect_state(octx->ssl);
 3588|       |
 3589|    220|  if(peer->sni) {
  ------------------
  |  Branch (3589:6): [True: 157, False: 63]
  ------------------
 3590|    157|    if(!SSL_set_tlsext_host_name(octx->ssl, peer->sni)) {
  ------------------
  |  Branch (3590:8): [True: 1, False: 156]
  ------------------
 3591|      1|      failf(data, "Failed set SNI");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 3592|      1|      return CURLE_SSL_CONNECT_ERROR;
 3593|      1|    }
 3594|    157|  }
 3595|       |
 3596|       |#ifdef HAVE_SSL_SET1_ECH_CONFIG_LIST
 3597|       |  {
 3598|       |    CURLcode result = ossl_init_ech(octx, cf, data, peer);
 3599|       |    if(result)
 3600|       |      return result;
 3601|       |  }
 3602|       |#endif /* HAVE_SSL_SET1_ECH_CONFIG_LIST */
 3603|       |
 3604|    219|  return ossl_init_session_and_alpns(octx, cf, data, peer,
 3605|    219|                                     alpns_requested, sess_reuse_cb);
 3606|    220|}
openssl.c:ossl_init_session_and_alpns:
 3334|    219|{
 3335|    219|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 3336|    219|  struct ssl_primary_config *conn_cfg = Curl_ssl_cf_get_primary_config(cf);
 3337|    219|  struct alpn_spec alpns;
 3338|    219|  CURLcode result;
 3339|       |
 3340|    219|  Curl_alpn_copy(&alpns, alpns_requested);
 3341|       |
 3342|    219|  octx->reused_session = FALSE;
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
 3343|    219|  if(Curl_ssl_scache_use(cf, data) && !conn_cfg->verifystatus) {
  ------------------
  |  Branch (3343:6): [True: 219, False: 0]
  |  Branch (3343:39): [True: 219, False: 0]
  ------------------
 3344|    219|    struct Curl_ssl_session *scs = NULL;
 3345|       |
 3346|    219|    result = Curl_ssl_scache_take(cf, data, peer->scache_key, &scs);
 3347|    219|    if(!result && scs && scs->sdata && scs->sdata_len) {
  ------------------
  |  Branch (3347:8): [True: 219, False: 0]
  |  Branch (3347:19): [True: 0, False: 219]
  |  Branch (3347:26): [True: 0, False: 0]
  |  Branch (3347:40): [True: 0, False: 0]
  ------------------
 3348|      0|      const unsigned char *der_sessionid = scs->sdata;
 3349|      0|      size_t der_sessionid_size = scs->sdata_len;
 3350|      0|      SSL_SESSION *ssl_session = NULL;
 3351|       |
 3352|       |      /* If OpenSSL does not accept the session from the cache, this
 3353|       |       * is not an error. We continue without it. */
 3354|      0|      ssl_session = d2i_SSL_SESSION(NULL, &der_sessionid,
 3355|      0|                                    (long)der_sessionid_size);
 3356|      0|      if(ssl_session) {
  ------------------
  |  Branch (3356:10): [True: 0, False: 0]
  ------------------
 3357|      0|        if(!SSL_set_session(octx->ssl, ssl_session)) {
  ------------------
  |  Branch (3357:12): [True: 0, False: 0]
  ------------------
 3358|      0|          VERBOSE(char error_buffer[256]);
  ------------------
  |  | 1618|      0|#define VERBOSE(x) x
  ------------------
 3359|      0|          infof(data, "SSL: SSL_set_session not accepted, "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3360|      0|                "continuing without: %s",
 3361|      0|                ossl_strerror(ERR_get_error(), error_buffer,
 3362|      0|                              sizeof(error_buffer)));
 3363|      0|        }
 3364|      0|        else {
 3365|      0|          if(conn_cfg->verifypeer &&
  ------------------
  |  Branch (3365:14): [True: 0, False: 0]
  ------------------
 3366|      0|             (SSL_get_verify_result(octx->ssl) != X509_V_OK)) {
  ------------------
  |  Branch (3366:14): [True: 0, False: 0]
  ------------------
 3367|       |            /* Session was from unverified connection, cannot reuse here */
 3368|      0|            SSL_set_session(octx->ssl, NULL);
 3369|      0|            infof(data, "SSL session not peer verified, not reusing");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3370|      0|          }
 3371|      0|          else {
 3372|      0|            infof(data, "SSL reusing session with ALPN '%s'",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3373|      0|                  scs->alpn ? scs->alpn : "-");
 3374|      0|            octx->reused_session = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 3375|      0|            infof(data, "SSL verify result: %lx",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3376|      0|                  SSL_get_verify_result(octx->ssl));
 3377|      0|#ifdef HAVE_OPENSSL_EARLYDATA
 3378|      0|            if(ssl_config->earlydata && scs->alpn &&
  ------------------
  |  Branch (3378:16): [True: 0, False: 0]
  |  Branch (3378:41): [True: 0, False: 0]
  ------------------
 3379|      0|               SSL_SESSION_get_max_early_data(ssl_session) &&
  ------------------
  |  Branch (3379:16): [True: 0, False: 0]
  ------------------
 3380|      0|               !cf->conn->bits.connect_only &&
  ------------------
  |  Branch (3380:16): [True: 0, False: 0]
  ------------------
 3381|      0|               (SSL_version(octx->ssl) == TLS1_3_VERSION)) {
  ------------------
  |  Branch (3381:16): [True: 0, False: 0]
  ------------------
 3382|      0|              bool do_early_data = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 3383|      0|              if(sess_reuse_cb) {
  ------------------
  |  Branch (3383:18): [True: 0, False: 0]
  ------------------
 3384|      0|                result = sess_reuse_cb(cf, data, &alpns, scs, &do_early_data);
 3385|      0|                if(result) {
  ------------------
  |  Branch (3385:20): [True: 0, False: 0]
  ------------------
 3386|      0|                  SSL_SESSION_free(ssl_session);
 3387|      0|                  return result;
 3388|      0|                }
 3389|      0|              }
 3390|      0|              if(do_early_data) {
  ------------------
  |  Branch (3390:18): [True: 0, False: 0]
  ------------------
 3391|       |                /* We only try the ALPN protocol the session used before,
 3392|       |                 * otherwise we might send early data for the wrong protocol */
 3393|      0|                Curl_alpn_restrict_to(&alpns, scs->alpn);
 3394|      0|              }
 3395|      0|            }
 3396|       |#else
 3397|       |            (void)ssl_config;
 3398|       |            (void)sess_reuse_cb;
 3399|       |#endif
 3400|      0|          }
 3401|      0|        }
 3402|      0|        SSL_SESSION_free(ssl_session);
 3403|      0|      }
 3404|      0|      else {
 3405|      0|        infof(data, "SSL session not accepted by OpenSSL, continuing without");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3406|      0|      }
 3407|      0|    }
 3408|    219|    Curl_ssl_scache_return(cf, data, peer->scache_key, scs);
 3409|    219|  }
 3410|       |
 3411|    219|  if(alpns.count) {
  ------------------
  |  Branch (3411:6): [True: 0, False: 219]
  ------------------
 3412|      0|    struct alpn_proto_buf proto;
 3413|      0|    memset(&proto, 0, sizeof(proto));
 3414|      0|    result = Curl_alpn_to_proto_buf(&proto, &alpns);
 3415|      0|    if(result) {
  ------------------
  |  Branch (3415:8): [True: 0, False: 0]
  ------------------
 3416|      0|      failf(data, "Error determining ALPN");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3417|      0|      return CURLE_SSL_CONNECT_ERROR;
 3418|      0|    }
 3419|      0|    if(SSL_set_alpn_protos(octx->ssl, proto.data, proto.len)) {
  ------------------
  |  Branch (3419:8): [True: 0, False: 0]
  ------------------
 3420|      0|      failf(data, "Error setting ALPN");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3421|      0|      return CURLE_SSL_CONNECT_ERROR;
 3422|      0|    }
 3423|      0|  }
 3424|       |
 3425|    219|  return CURLE_OK;
 3426|    219|}
openssl.c:ossl_init:
 1626|      2|{
 1627|      2|  const uint64_t flags =
 1628|      2|#ifdef OPENSSL_INIT_ENGINE_ALL_BUILTIN
 1629|       |    /* not present in BoringSSL */
 1630|      2|    OPENSSL_INIT_ENGINE_ALL_BUILTIN |
 1631|      2|#endif
 1632|       |#ifdef CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG
 1633|       |    OPENSSL_INIT_NO_LOAD_CONFIG |
 1634|       |#else
 1635|      2|    OPENSSL_INIT_LOAD_CONFIG |
 1636|      2|#endif
 1637|      2|    0;
 1638|      2|  OPENSSL_init_ssl(flags, NULL);
 1639|       |
 1640|      2|#ifndef HAVE_KEYLOG_UPSTREAM
 1641|      2|  Curl_tls_keylog_open();
 1642|      2|#endif
 1643|       |
 1644|      2|  return 1;
 1645|      2|}
openssl.c:ossl_random:
 5442|  7.28k|{
 5443|  7.28k|  int rc;
 5444|  7.28k|  if(data) {
  ------------------
  |  Branch (5444:6): [True: 7.28k, False: 0]
  ------------------
 5445|  7.28k|    if(ossl_seed(data)) /* Initiate the seed if not already done */
  ------------------
  |  Branch (5445:8): [True: 0, False: 7.28k]
  ------------------
 5446|      0|      return CURLE_FAILED_INIT; /* could not seed for some reason */
 5447|  7.28k|  }
 5448|      0|  else {
 5449|      0|    if(!rand_enough())
  ------------------
  |  Branch (5449:8): [True: 0, False: 0]
  ------------------
 5450|      0|      return CURLE_FAILED_INIT;
 5451|      0|  }
 5452|       |  /* RAND_bytes() returns 1 on success, 0 otherwise. */
 5453|  7.28k|  rc = RAND_bytes(entropy, (ossl_valsize_t)curlx_uztosi(length));
 5454|  7.28k|  return rc == 1 ? CURLE_OK : CURLE_FAILED_INIT;
  ------------------
  |  Branch (5454:10): [True: 7.28k, False: 0]
  ------------------
 5455|  7.28k|}
openssl.c:ossl_connect:
 4964|  4.13k|{
 4965|  4.13k|  CURLcode result = CURLE_OK;
 4966|  4.13k|  struct ssl_connect_data *connssl = cf->ctx;
 4967|       |
 4968|       |  /* check if the connection has already been established */
 4969|  4.13k|  if(ssl_connection_complete == connssl->state) {
  ------------------
  |  Branch (4969:6): [True: 0, False: 4.13k]
  ------------------
 4970|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 4971|      0|    return CURLE_OK;
 4972|      0|  }
 4973|       |
 4974|  4.13k|  *done = FALSE;
  ------------------
  |  | 1058|  4.13k|#define FALSE false
  ------------------
 4975|  4.13k|  connssl->io_need = CURL_SSL_IO_NEED_NONE;
  ------------------
  |  |  105|  4.13k|#define CURL_SSL_IO_NEED_NONE   0
  ------------------
 4976|       |
 4977|  4.13k|  if(ssl_connect_1 == connssl->connecting_state) {
  ------------------
  |  Branch (4977:6): [True: 220, False: 3.91k]
  ------------------
 4978|    220|    if(Curl_ossl_need_httpsrr(data) &&
  ------------------
  |  Branch (4978:8): [True: 0, False: 220]
  ------------------
 4979|      0|       !Curl_conn_dns_resolved_https(data, cf->sockindex)) {
  ------------------
  |  |   66|      0|#define Curl_conn_dns_resolved_https(a, b)   TRUE
  |  |  ------------------
  |  |  |  | 1055|      0|#define TRUE true
  |  |  ------------------
  ------------------
  |  Branch (4979:8): [Folded, False: 0]
  ------------------
 4980|      0|      CURL_TRC_CF(data, cf, "need HTTPS-RR, delaying connect");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4981|      0|      return CURLE_OK;
 4982|      0|    }
 4983|    220|    CURL_TRC_CF(data, cf, "ossl_connect, step1");
  ------------------
  |  |  153|    220|  do {                                          \
  |  |  154|    220|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    220|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    440|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 220, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 220]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    440|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    220|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    220|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    220|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 220]
  |  |  ------------------
  ------------------
 4984|    220|    result = ossl_connect_step1(cf, data);
 4985|    220|    if(result)
  ------------------
  |  Branch (4985:8): [True: 1, False: 219]
  ------------------
 4986|      1|      goto out;
 4987|    220|  }
 4988|       |
 4989|  4.13k|  if(ssl_connect_2 == connssl->connecting_state) {
  ------------------
  |  Branch (4989:6): [True: 4.13k, False: 0]
  ------------------
 4990|  4.13k|    CURL_TRC_CF(data, cf, "ossl_connect, step2");
  ------------------
  |  |  153|  4.13k|  do {                                          \
  |  |  154|  4.13k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  4.13k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  8.27k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 4.13k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.13k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  8.27k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  4.13k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.13k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.13k]
  |  |  ------------------
  ------------------
 4991|  4.13k|#ifdef HAVE_OPENSSL_EARLYDATA
 4992|  4.13k|    if(connssl->earlydata_state == ssl_earlydata_await) {
  ------------------
  |  Branch (4992:8): [True: 0, False: 4.13k]
  ------------------
 4993|      0|      goto out;
 4994|      0|    }
 4995|  4.13k|    else if(connssl->earlydata_state == ssl_earlydata_sending) {
  ------------------
  |  Branch (4995:13): [True: 0, False: 4.13k]
  ------------------
 4996|      0|      result = ossl_send_earlydata(cf, data);
 4997|      0|      if(result)
  ------------------
  |  Branch (4997:10): [True: 0, False: 0]
  ------------------
 4998|      0|        goto out;
 4999|      0|      connssl->earlydata_state = ssl_earlydata_sent;
 5000|      0|    }
 5001|  4.13k|#endif
 5002|  4.13k|    DEBUGASSERT((connssl->earlydata_state == ssl_earlydata_none) ||
  ------------------
  |  | 1081|  4.13k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (5002:5): [True: 4.13k, False: 0]
  |  Branch (5002:5): [True: 0, False: 0]
  |  Branch (5002:5): [True: 4.13k, False: 0]
  |  Branch (5002:5): [True: 0, False: 0]
  ------------------
 5003|  4.13k|                (connssl->earlydata_state == ssl_earlydata_sent));
 5004|       |
 5005|  4.13k|    result = ossl_connect_step2(cf, data);
 5006|  4.13k|    if(result)
  ------------------
  |  Branch (5006:8): [True: 4.13k, False: 0]
  ------------------
 5007|  4.13k|      goto out;
 5008|  4.13k|  }
 5009|       |
 5010|      0|  if(ssl_connect_3 == connssl->connecting_state) {
  ------------------
  |  Branch (5010:6): [True: 0, False: 0]
  ------------------
 5011|      0|    CURL_TRC_CF(data, cf, "ossl_connect, step3");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 5012|      0|    result = ossl_connect_step3(cf, data);
 5013|      0|    if(result)
  ------------------
  |  Branch (5013:8): [True: 0, False: 0]
  ------------------
 5014|      0|      goto out;
 5015|      0|    connssl->connecting_state = ssl_connect_done;
 5016|      0|#ifdef HAVE_OPENSSL_EARLYDATA
 5017|      0|    if(connssl->earlydata_state > ssl_earlydata_none) {
  ------------------
  |  Branch (5017:8): [True: 0, False: 0]
  ------------------
 5018|      0|      struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
 5019|       |      /* We should be in this state by now */
 5020|      0|      DEBUGASSERT(connssl->earlydata_state == ssl_earlydata_sent);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (5020:7): [True: 0, False: 0]
  |  Branch (5020:7): [True: 0, False: 0]
  ------------------
 5021|      0|      connssl->earlydata_state =
 5022|      0|        (SSL_get_early_data_status(octx->ssl) == SSL_EARLY_DATA_ACCEPTED) ?
  ------------------
  |  Branch (5022:9): [True: 0, False: 0]
  ------------------
 5023|      0|        ssl_earlydata_accepted : ssl_earlydata_rejected;
 5024|      0|    }
 5025|      0|#endif
 5026|      0|  }
 5027|       |
 5028|      0|  if(ssl_connect_done == connssl->connecting_state) {
  ------------------
  |  Branch (5028:6): [True: 0, False: 0]
  ------------------
 5029|      0|    CURL_TRC_CF(data, cf, "ossl_connect, done");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 5030|      0|    connssl->state = ssl_connection_complete;
 5031|      0|  }
 5032|       |
 5033|  4.13k|out:
 5034|  4.13k|  if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (5034:6): [True: 4.13k, False: 1]
  ------------------
 5035|  4.13k|    *done = FALSE;
  ------------------
  |  | 1058|  4.13k|#define FALSE false
  ------------------
 5036|  4.13k|    return CURLE_OK;
 5037|  4.13k|  }
 5038|      1|  *done = ((connssl->state == ssl_connection_complete) ||
  ------------------
  |  Branch (5038:12): [True: 0, False: 1]
  ------------------
 5039|      1|           (connssl->state == ssl_connection_deferred));
  ------------------
  |  Branch (5039:12): [True: 0, False: 1]
  ------------------
 5040|      1|  return result;
 5041|  4.13k|}
openssl.c:ossl_connect_step1:
 4010|    220|{
 4011|    220|  struct ssl_connect_data *connssl = cf->ctx;
 4012|    220|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
 4013|    220|  char tls_id[80];
 4014|    220|  BIO *bio;
 4015|    220|  CURLcode result;
 4016|       |
 4017|    220|  DEBUGASSERT(ssl_connect_1 == connssl->connecting_state);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4017:3): [True: 0, False: 220]
  |  Branch (4017:3): [True: 220, False: 0]
  ------------------
 4018|    220|  DEBUGASSERT(octx);
  ------------------
  |  | 1081|    220|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4018:3): [True: 0, False: 220]
  |  Branch (4018:3): [True: 220, False: 0]
  ------------------
 4019|       |
 4020|    220|  if(!connssl->peer.dest) {
  ------------------
  |  Branch (4020:6): [True: 0, False: 220]
  ------------------
 4021|      0|    Curl_ossl_version(tls_id, sizeof(tls_id));
 4022|      0|    result = Curl_ssl_peer_init(&connssl->peer, cf, tls_id, TRNSPRT_TCP);
  ------------------
  |  |  307|      0|#define TRNSPRT_TCP  3
  ------------------
 4023|      0|    if(result)
  ------------------
  |  Branch (4023:8): [True: 0, False: 0]
  ------------------
 4024|      0|      return result;
 4025|      0|  }
 4026|       |
 4027|    220|  result = Curl_ossl_ctx_init(octx, cf, data, &connssl->peer,
 4028|    220|                              connssl->alpn, NULL, NULL,
 4029|    220|                              ossl_new_session_cb, cf,
 4030|    220|                              ossl_on_session_reuse);
 4031|    220|  if(result)
  ------------------
  |  Branch (4031:6): [True: 1, False: 219]
  ------------------
 4032|      1|    return result;
 4033|       |
 4034|    219|  octx->bio_method = ossl_bio_cf_method_create();
 4035|    219|  if(!octx->bio_method)
  ------------------
  |  Branch (4035:6): [True: 0, False: 219]
  ------------------
 4036|      0|    return CURLE_OUT_OF_MEMORY;
 4037|    219|  bio = BIO_new(octx->bio_method);
 4038|    219|  if(!bio)
  ------------------
  |  Branch (4038:6): [True: 0, False: 219]
  ------------------
 4039|      0|    return CURLE_OUT_OF_MEMORY;
 4040|       |
 4041|    219|  BIO_set_data(bio, cf);
 4042|    219|#ifdef HAVE_SSL_SET0_WBIO
 4043|       |  /* with OpenSSL v1.1.1 we get an alternative to SSL_set_bio() that works
 4044|       |   * without backward compat quirks. Every call takes one reference, so we
 4045|       |   * up it and pass. SSL* then owns and frees it.
 4046|       |   * We check on the function in configure, since LibreSSL and friends
 4047|       |   * each have their own versions to add support for this. */
 4048|    219|  BIO_up_ref(bio);
 4049|    219|  SSL_set0_rbio(octx->ssl, bio);
 4050|    219|  SSL_set0_wbio(octx->ssl, bio);
 4051|       |#else
 4052|       |  SSL_set_bio(octx->ssl, bio, bio);
 4053|       |#endif
 4054|       |
 4055|    219|  if(connssl->alpn && (connssl->state != ssl_connection_deferred)) {
  ------------------
  |  Branch (4055:6): [True: 0, False: 219]
  |  Branch (4055:23): [True: 0, False: 0]
  ------------------
 4056|      0|    struct alpn_proto_buf proto;
 4057|      0|    memset(&proto, 0, sizeof(proto));
 4058|      0|    Curl_alpn_to_proto_str(&proto, connssl->alpn);
 4059|      0|    infof(data, VTLS_INFOF_ALPN_OFFER_1STR, proto.data);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4060|      0|  }
 4061|       |
 4062|    219|  connssl->connecting_state = ssl_connect_2;
 4063|    219|  return CURLE_OK;
 4064|    219|}
openssl.c:ossl_bio_cf_method_create:
  642|    219|{
  643|    219|  BIO_METHOD *m = BIO_meth_new(BIO_TYPE_MEM, "OpenSSL CF BIO");
  644|    219|  if(m) {
  ------------------
  |  Branch (644:6): [True: 219, False: 0]
  ------------------
  645|    219|    BIO_meth_set_write(m, &ossl_bio_cf_out_write);
  646|    219|    BIO_meth_set_read(m, &ossl_bio_cf_in_read);
  647|    219|    BIO_meth_set_ctrl(m, &ossl_bio_cf_ctrl);
  648|    219|    BIO_meth_set_create(m, &ossl_bio_cf_create);
  649|    219|    BIO_meth_set_destroy(m, &ossl_bio_cf_destroy);
  650|    219|  }
  651|    219|  return m;
  652|    219|}
openssl.c:ossl_bio_cf_out_write:
  568|    219|{
  569|    219|  struct Curl_cfilter *cf = BIO_get_data(bio);
  570|    219|  struct ssl_connect_data *connssl = cf->ctx;
  571|    219|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
  572|    219|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  699|    219|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  213|    219|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  573|    219|  size_t nwritten;
  574|    219|  CURLcode result;
  575|       |
  576|    219|  DEBUGASSERT(data);
  ------------------
  |  | 1081|    219|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (576:3): [True: 0, False: 219]
  |  Branch (576:3): [True: 219, False: 0]
  ------------------
  577|    219|  if(blen < 0)
  ------------------
  |  Branch (577:6): [True: 0, False: 219]
  ------------------
  578|      0|    return 0;
  579|       |
  580|    219|  result = Curl_conn_cf_send(cf->next, data,
  581|    219|                             (const uint8_t *)buf, (size_t)blen, FALSE,
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
  582|    219|                             &nwritten);
  583|    219|  CURL_TRC_CF(data, cf, "ossl_bio_cf_out_write(len=%d) -> %d, %zu",
  ------------------
  |  |  153|    219|  do {                                          \
  |  |  154|    219|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|    219|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    438|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 219, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 219]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    438|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|    219|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    219|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    219|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 219]
  |  |  ------------------
  ------------------
  584|    219|              blen, result, nwritten);
  585|    219|  BIO_clear_retry_flags(bio);
  586|    219|  octx->io_result = result;
  587|    219|  if(result) {
  ------------------
  |  Branch (587:6): [True: 0, False: 219]
  ------------------
  588|      0|    if(result == CURLE_AGAIN)
  ------------------
  |  Branch (588:8): [True: 0, False: 0]
  ------------------
  589|      0|      BIO_set_retry_write(bio);
  590|      0|    return -1;
  591|      0|  }
  592|    219|  return (int)nwritten;
  593|    219|}
openssl.c:ossl_bio_cf_in_read:
  596|  4.13k|{
  597|  4.13k|  struct Curl_cfilter *cf = BIO_get_data(bio);
  598|  4.13k|  struct ssl_connect_data *connssl = cf->ctx;
  599|  4.13k|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
  600|  4.13k|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  699|  4.13k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  213|  4.13k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (699:30): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
  601|  4.13k|  size_t nread;
  602|  4.13k|  CURLcode result, r2;
  603|       |
  604|  4.13k|  DEBUGASSERT(data);
  ------------------
  |  | 1081|  4.13k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (604:3): [True: 0, False: 4.13k]
  |  Branch (604:3): [True: 4.13k, False: 0]
  ------------------
  605|       |  /* OpenSSL catches this case, so should we. */
  606|  4.13k|  if(!buf)
  ------------------
  |  Branch (606:6): [True: 0, False: 4.13k]
  ------------------
  607|      0|    return 0;
  608|  4.13k|  if(blen < 0)
  ------------------
  |  Branch (608:6): [True: 0, False: 4.13k]
  ------------------
  609|      0|    return 0;
  610|       |
  611|  4.13k|  result = Curl_conn_cf_recv(cf->next, data, buf, (size_t)blen, &nread);
  612|  4.13k|  CURL_TRC_CF(data, cf, "ossl_bio_cf_in_read(len=%d) -> %d, %zu",
  ------------------
  |  |  153|  4.13k|  do {                                          \
  |  |  154|  4.13k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  4.13k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  8.27k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 4.13k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.13k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  8.27k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  4.13k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.13k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.13k]
  |  |  ------------------
  ------------------
  613|  4.13k|              blen, result, nread);
  614|  4.13k|  BIO_clear_retry_flags(bio);
  615|  4.13k|  octx->io_result = result;
  616|  4.13k|  if(result) {
  ------------------
  |  Branch (616:6): [True: 4.13k, False: 0]
  ------------------
  617|  4.13k|    if(result == CURLE_AGAIN)
  ------------------
  |  Branch (617:8): [True: 4.13k, False: 0]
  ------------------
  618|  4.13k|      BIO_set_retry_read(bio);
  619|  4.13k|  }
  620|      0|  else {
  621|       |    /* feeding data to OpenSSL means SSL_read() might succeed */
  622|      0|    connssl->input_pending = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  623|      0|    if(nread == 0)
  ------------------
  |  Branch (623:8): [True: 0, False: 0]
  ------------------
  624|      0|      connssl->peer_closed = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
  625|      0|  }
  626|       |
  627|       |  /* Before returning server replies to the SSL instance, we need
  628|       |   * to have setup the x509 store or verification fails. */
  629|  4.13k|  if(!octx->x509_store_setup) {
  ------------------
  |  Branch (629:6): [True: 219, False: 3.91k]
  ------------------
  630|    219|    r2 = Curl_ssl_setup_x509_store(cf, data, octx);
  631|    219|    if(r2) {
  ------------------
  |  Branch (631:8): [True: 0, False: 219]
  ------------------
  632|      0|      BIO_clear_retry_flags(bio);
  633|      0|      octx->io_result = r2;
  634|      0|      return -1;
  635|      0|    }
  636|    219|    octx->x509_store_setup = TRUE;
  ------------------
  |  | 1055|    219|#define TRUE true
  ------------------
  637|    219|  }
  638|  4.13k|  return result ? -1 : (int)nread;
  ------------------
  |  Branch (638:10): [True: 4.13k, False: 0]
  ------------------
  639|  4.13k|}
openssl.c:ossl_bio_cf_ctrl:
  534|    657|{
  535|    657|  struct Curl_cfilter *cf = BIO_get_data(bio);
  536|    657|  long ret = 1;
  537|       |
  538|    657|  (void)cf;
  539|    657|  (void)ptr;
  540|    657|  switch(cmd) {
  541|      0|  case BIO_CTRL_GET_CLOSE:
  ------------------
  |  Branch (541:3): [True: 0, False: 657]
  ------------------
  542|      0|    ret = (long)BIO_get_shutdown(bio);
  543|      0|    break;
  544|      0|  case BIO_CTRL_SET_CLOSE:
  ------------------
  |  Branch (544:3): [True: 0, False: 657]
  ------------------
  545|      0|    BIO_set_shutdown(bio, (int)num);
  546|      0|    break;
  547|    219|  case BIO_CTRL_FLUSH:
  ------------------
  |  Branch (547:3): [True: 219, False: 438]
  ------------------
  548|       |    /* we do no delayed writes, but if we ever would, this
  549|       |     * needs to trigger it. */
  550|    219|    ret = 1;
  551|    219|    break;
  552|      0|  case BIO_CTRL_DUP:
  ------------------
  |  Branch (552:3): [True: 0, False: 657]
  ------------------
  553|      0|    ret = 1;
  554|      0|    break;
  555|      0|  case BIO_CTRL_EOF: {
  ------------------
  |  Branch (555:3): [True: 0, False: 657]
  ------------------
  556|       |    /* EOF has been reached on input? */
  557|      0|    struct ssl_connect_data *connssl = cf->ctx;
  558|      0|    return connssl->peer_closed;
  559|      0|  }
  560|    438|  default:
  ------------------
  |  Branch (560:3): [True: 438, False: 219]
  ------------------
  561|    438|    ret = 0;
  562|    438|    break;
  563|    657|  }
  564|    657|  return ret;
  565|    657|}
openssl.c:ossl_bio_cf_create:
  519|    219|{
  520|    219|  BIO_set_shutdown(bio, 1);
  521|    219|  BIO_set_init(bio, 1);
  522|       |  BIO_set_data(bio, NULL);
  523|    219|  return 1;
  524|    219|}
openssl.c:ossl_bio_cf_destroy:
  527|    219|{
  528|    219|  if(!bio)
  ------------------
  |  Branch (528:6): [True: 0, False: 219]
  ------------------
  529|      0|    return 0;
  530|    219|  return 1;
  531|    219|}
openssl.c:ossl_connect_step2:
 4133|  4.13k|{
 4134|  4.13k|  int err;
 4135|  4.13k|  struct ssl_connect_data *connssl = cf->ctx;
 4136|  4.13k|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
 4137|  4.13k|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 4138|  4.13k|  DEBUGASSERT(ssl_connect_2 == connssl->connecting_state);
  ------------------
  |  | 1081|  4.13k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4138:3): [True: 0, False: 4.13k]
  |  Branch (4138:3): [True: 4.13k, False: 0]
  ------------------
 4139|  4.13k|  DEBUGASSERT(octx);
  ------------------
  |  | 1081|  4.13k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4139:3): [True: 0, False: 4.13k]
  |  Branch (4139:3): [True: 4.13k, False: 0]
  ------------------
 4140|       |
 4141|  4.13k|  connssl->io_need = CURL_SSL_IO_NEED_NONE;
  ------------------
  |  |  105|  4.13k|#define CURL_SSL_IO_NEED_NONE   0
  ------------------
 4142|  4.13k|  ERR_clear_error();
 4143|       |
 4144|  4.13k|  err = SSL_connect(octx->ssl);
 4145|       |
 4146|  4.13k|  if(!octx->x509_store_setup) {
  ------------------
  |  Branch (4146:6): [True: 0, False: 4.13k]
  ------------------
 4147|       |    /* After having send off the ClientHello, we prepare the x509
 4148|       |     * store to verify the coming certificate from the server */
 4149|      0|    CURLcode result = Curl_ssl_setup_x509_store(cf, data, octx);
 4150|      0|    if(result)
  ------------------
  |  Branch (4150:8): [True: 0, False: 0]
  ------------------
 4151|      0|      return result;
 4152|      0|    octx->x509_store_setup = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 4153|      0|  }
 4154|       |
 4155|       |#if !defined(HAVE_KEYLOG_UPSTREAM) && !defined(HAVE_KEYLOG_CALLBACK)
 4156|       |  /* If key logging is enabled, wait for the handshake to complete and then
 4157|       |   * proceed with logging secrets (for TLS 1.2 or older).
 4158|       |   */
 4159|       |  if(Curl_tls_keylog_enabled() && !octx->keylog_done)
 4160|       |    ossl_log_tls12_secret(octx->ssl, &octx->keylog_done);
 4161|       |#endif
 4162|       |
 4163|       |  /* 1  is fine
 4164|       |     0  is "not successful but was shut down controlled"
 4165|       |     <0 is "handshake was not successful, because a fatal error occurred" */
 4166|  4.13k|  if(err != 1) {
  ------------------
  |  Branch (4166:6): [True: 4.13k, False: 0]
  ------------------
 4167|  4.13k|    int detail = SSL_get_error(octx->ssl, err);
 4168|  4.13k|    CURL_TRC_CF(data, cf, "SSL_connect() -> err=%d, detail=%d", err, detail);
  ------------------
  |  |  153|  4.13k|  do {                                          \
  |  |  154|  4.13k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  4.13k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  8.27k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 4.13k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.13k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  8.27k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  4.13k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.13k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.13k]
  |  |  ------------------
  ------------------
 4169|       |
 4170|  4.13k|    if(SSL_ERROR_WANT_READ == detail) {
  ------------------
  |  Branch (4170:8): [True: 4.13k, False: 0]
  ------------------
 4171|  4.13k|      CURL_TRC_CF(data, cf, "SSL_connect() -> want recv");
  ------------------
  |  |  153|  4.13k|  do {                                          \
  |  |  154|  4.13k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  4.13k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  8.27k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 4.13k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.13k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  8.27k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  4.13k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.13k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.13k]
  |  |  ------------------
  ------------------
 4172|  4.13k|      connssl->io_need = CURL_SSL_IO_NEED_RECV;
  ------------------
  |  |  106|  4.13k|#define CURL_SSL_IO_NEED_RECV   (1 << 0)
  ------------------
 4173|  4.13k|      return CURLE_AGAIN;
 4174|  4.13k|    }
 4175|      0|    if(SSL_ERROR_WANT_WRITE == detail) {
  ------------------
  |  Branch (4175:8): [True: 0, False: 0]
  ------------------
 4176|      0|      CURL_TRC_CF(data, cf, "SSL_connect() -> want send");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4177|      0|      connssl->io_need = CURL_SSL_IO_NEED_SEND;
  ------------------
  |  |  107|      0|#define CURL_SSL_IO_NEED_SEND   (1 << 1)
  ------------------
 4178|      0|      return CURLE_AGAIN;
 4179|      0|    }
 4180|      0|#ifdef SSL_ERROR_WANT_ASYNC
 4181|      0|    if(SSL_ERROR_WANT_ASYNC == detail) {
  ------------------
  |  Branch (4181:8): [True: 0, False: 0]
  ------------------
 4182|      0|      CURL_TRC_CF(data, cf, "SSL_connect() -> want async");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4183|      0|      connssl->io_need = CURL_SSL_IO_NEED_RECV;
  ------------------
  |  |  106|      0|#define CURL_SSL_IO_NEED_RECV   (1 << 0)
  ------------------
 4184|      0|      return CURLE_AGAIN;
 4185|      0|    }
 4186|      0|#endif
 4187|      0|#ifdef SSL_ERROR_WANT_RETRY_VERIFY
 4188|      0|    if(SSL_ERROR_WANT_RETRY_VERIFY == detail) {
  ------------------
  |  Branch (4188:8): [True: 0, False: 0]
  ------------------
 4189|      0|      CURL_TRC_CF(data, cf, "SSL_connect() -> want retry_verify");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4190|      0|      Curl_xfer_pause_recv(data, TRUE);
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 4191|      0|      return CURLE_AGAIN;
 4192|      0|    }
 4193|      0|#endif
 4194|      0|    else {
 4195|       |      /* untreated error */
 4196|      0|      sslerr_t errdetail;
 4197|      0|      char error_buffer[256] = "";
 4198|      0|      CURLcode result;
 4199|      0|      long lerr;
 4200|      0|      int lib;
 4201|      0|      int reason;
 4202|       |
 4203|       |      /* the connection failed, we are not waiting for anything else. */
 4204|      0|      connssl->connecting_state = ssl_connect_2;
 4205|       |
 4206|       |      /* Get the earliest error code from the thread's error queue and remove
 4207|       |         the entry. */
 4208|      0|      errdetail = ERR_get_error();
 4209|       |
 4210|       |      /* Extract which lib and reason */
 4211|      0|      lib = ERR_GET_LIB(errdetail);
 4212|      0|      reason = ERR_GET_REASON(errdetail);
 4213|       |
 4214|      0|      if((lib == ERR_LIB_SSL) &&
  ------------------
  |  Branch (4214:10): [True: 0, False: 0]
  ------------------
 4215|      0|         ((reason == SSL_R_CERTIFICATE_VERIFY_FAILED)
  ------------------
  |  Branch (4215:11): [True: 0, False: 0]
  ------------------
 4216|       |/* Missing from OpenSSL 4+ OPENSSL_NO_DEPRECATED_3_0 builds */
 4217|      0|#ifdef SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED
 4218|      0|          || (reason == SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED)
  ------------------
  |  Branch (4218:14): [True: 0, False: 0]
  ------------------
 4219|      0|#endif
 4220|      0|         )) {
 4221|      0|        result = CURLE_PEER_FAILED_VERIFICATION;
 4222|       |
 4223|      0|        lerr = SSL_get_verify_result(octx->ssl);
 4224|      0|        if(lerr != X509_V_OK) {
  ------------------
  |  Branch (4224:12): [True: 0, False: 0]
  ------------------
 4225|      0|          ssl_config->certverifyresult = lerr;
 4226|      0|          failf(data, "SSL certificate problem: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4227|      0|                X509_verify_cert_error_string(lerr));
 4228|      0|        }
 4229|      0|        else
 4230|      0|          failf(data, "%s", "SSL certificate verification failed");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4231|      0|      }
 4232|      0|#ifdef SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED
 4233|       |      /* SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED is only available on
 4234|       |         OpenSSL version above v1.1.1, not AWS-LC, BoringSSL, or LibreSSL */
 4235|      0|      else if((lib == ERR_LIB_SSL) &&
  ------------------
  |  Branch (4235:15): [True: 0, False: 0]
  ------------------
 4236|      0|              (reason == SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED)) {
  ------------------
  |  Branch (4236:15): [True: 0, False: 0]
  ------------------
 4237|       |        /* If client certificate is required, communicate the
 4238|       |           error to client */
 4239|      0|        result = CURLE_SSL_CLIENTCERT;
 4240|      0|        failf(data, "TLS cert problem: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4241|      0|              ossl_strerror(errdetail, error_buffer, sizeof(error_buffer)));
 4242|      0|      }
 4243|      0|#endif
 4244|       |#ifdef HAVE_SSL_SET1_ECH_CONFIG_LIST
 4245|       |      else if((lib == ERR_LIB_SSL) &&
 4246|       |#ifndef HAVE_BORINGSSL_LIKE
 4247|       |              (reason == SSL_R_ECH_REQUIRED)) {
 4248|       |#else
 4249|       |              (reason == SSL_R_ECH_REJECTED)) {
 4250|       |#endif /* HAVE_BORINGSSL_LIKE */
 4251|       |
 4252|       |        /* trace retry_configs if we got some */
 4253|       |        ossl_trace_ech_retry_configs(data, octx->ssl, reason);
 4254|       |
 4255|       |        result = CURLE_ECH_REQUIRED;
 4256|       |        failf(data, "ECH required: %s",
 4257|       |              ossl_strerror(errdetail, error_buffer, sizeof(error_buffer)));
 4258|       |      }
 4259|       |#endif
 4260|      0|      else {
 4261|      0|        result = CURLE_SSL_CONNECT_ERROR;
 4262|      0|        failf(data, "TLS connect error: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4263|      0|              ossl_strerror(errdetail, error_buffer, sizeof(error_buffer)));
 4264|      0|      }
 4265|       |
 4266|       |      /* detail is already set to the SSL error above */
 4267|       |
 4268|       |      /* If we e.g. use SSLv2 request-method and the server does not like us
 4269|       |       * (RST connection, etc.), OpenSSL gives no explanation whatsoever and
 4270|       |       * the SO_ERROR is also lost.
 4271|       |       */
 4272|      0|      if(result == CURLE_SSL_CONNECT_ERROR && errdetail == 0) {
  ------------------
  |  Branch (4272:10): [True: 0, False: 0]
  |  Branch (4272:47): [True: 0, False: 0]
  ------------------
 4273|      0|        char extramsg[80] = "";
 4274|      0|        int sockerr = SOCKERRNO;
  ------------------
  |  | 1095|      0|#define SOCKERRNO         errno
  ------------------
 4275|       |
 4276|      0|        if(sockerr && detail == SSL_ERROR_SYSCALL)
  ------------------
  |  Branch (4276:12): [True: 0, False: 0]
  |  Branch (4276:23): [True: 0, False: 0]
  ------------------
 4277|      0|          curlx_strerror(sockerr, extramsg, sizeof(extramsg));
 4278|      0|        failf(data, OSSL_PACKAGE " SSL_connect: %s in connection to %s:%d ",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
                      failf(data, OSSL_PACKAGE " SSL_connect: %s in connection to %s:%d ",
  ------------------
  |  |  163|      0|#define OSSL_PACKAGE "OpenSSL"
  ------------------
 4279|      0|              extramsg[0] ? extramsg : SSL_ERROR_to_str(detail),
  ------------------
  |  Branch (4279:15): [True: 0, False: 0]
  ------------------
 4280|      0|              connssl->peer.dest->hostname, connssl->peer.dest->port);
 4281|      0|      }
 4282|       |
 4283|      0|      return result;
 4284|      0|    }
 4285|      0|  }
 4286|      0|  else {
 4287|       |    /* we connected fine, we are not waiting for anything else. */
 4288|      0|    connssl->connecting_state = ssl_connect_3;
 4289|      0|    Curl_ossl_report_handshake(data, octx);
 4290|       |
 4291|       |#if defined(HAVE_SSL_SET1_ECH_CONFIG_LIST) && !defined(HAVE_BORINGSSL_LIKE)
 4292|       |    if(CURLECH_ENABLED(data)) {
 4293|       |      char *inner = NULL, *outer = NULL;
 4294|       |      int rv;
 4295|       |      VERBOSE(const char *status);
 4296|       |
 4297|       |      rv = SSL_ech_get1_status(octx->ssl, &inner, &outer);
 4298|       |      switch(rv) {
 4299|       |      case SSL_ECH_STATUS_SUCCESS:
 4300|       |        VERBOSE(status = "succeeded");
 4301|       |        break;
 4302|       |      case SSL_ECH_STATUS_GREASE_ECH:
 4303|       |        VERBOSE(status = "sent GREASE, got retry-configs");
 4304|       |        break;
 4305|       |      case SSL_ECH_STATUS_GREASE:
 4306|       |        VERBOSE(status = "sent GREASE");
 4307|       |        break;
 4308|       |      case SSL_ECH_STATUS_NOT_TRIED:
 4309|       |        VERBOSE(status = "not attempted");
 4310|       |        break;
 4311|       |      case SSL_ECH_STATUS_NOT_CONFIGURED:
 4312|       |        VERBOSE(status = "not configured");
 4313|       |        break;
 4314|       |      case SSL_ECH_STATUS_BACKEND:
 4315|       |        VERBOSE(status = "backend (unexpected)");
 4316|       |        break;
 4317|       |      case SSL_ECH_STATUS_FAILED:
 4318|       |        VERBOSE(status = "failed");
 4319|       |        break;
 4320|       |      case SSL_ECH_STATUS_BAD_CALL:
 4321|       |        VERBOSE(status = "bad call (unexpected)");
 4322|       |        break;
 4323|       |      case SSL_ECH_STATUS_BAD_NAME: {
 4324|       |        struct ssl_primary_config *conn_config =
 4325|       |          Curl_ssl_cf_get_primary_config(cf);
 4326|       |        if(!conn_config->verifypeer && !conn_config->verifyhost &&
 4327|       |           inner && !strcmp(inner, connssl->peer.dest->hostname)) {
 4328|       |          VERBOSE(status = "bad name (tolerated without peer verification)");
 4329|       |          rv = SSL_ECH_STATUS_SUCCESS;
 4330|       |        }
 4331|       |        else {
 4332|       |          VERBOSE(status = "bad name (unexpected)");
 4333|       |        }
 4334|       |        break;
 4335|       |      }
 4336|       |      default:
 4337|       |        VERBOSE(status = "unexpected status");
 4338|       |        infof(data, "ECH: unexpected status %d", rv);
 4339|       |      }
 4340|       |      infof(data, "ECH: result: status is %s, inner is %s, outer is %s",
 4341|       |            (status ? status : "NULL"),
 4342|       |            (inner ? inner : "NULL"),
 4343|       |            (outer ? outer : "NULL"));
 4344|       |      OPENSSL_free(inner);
 4345|       |      OPENSSL_free(outer);
 4346|       |      if(rv == SSL_ECH_STATUS_GREASE_ECH) {
 4347|       |        /* trace retry_configs if we got some */
 4348|       |        ossl_trace_ech_retry_configs(data, octx->ssl, 0);
 4349|       |      }
 4350|       |      if(rv != SSL_ECH_STATUS_SUCCESS && (data->set.tls_ech == CURLECH_HARD)) {
 4351|       |        infof(data, "ECH: ech-hard failed");
 4352|       |        return CURLE_SSL_CONNECT_ERROR;
 4353|       |      }
 4354|       |    }
 4355|       |    else {
 4356|       |      infof(data, "ECH: result: status is not attempted");
 4357|       |    }
 4358|       |#endif /* HAVE_SSL_SET1_ECH_CONFIG_LIST && !HAVE_BORINGSSL_LIKE */
 4359|       |
 4360|       |    /* Sets data and len to negotiated protocol, len is 0 if no protocol was
 4361|       |     * negotiated
 4362|       |     */
 4363|      0|    if(connssl->alpn) {
  ------------------
  |  Branch (4363:8): [True: 0, False: 0]
  ------------------
 4364|      0|      const unsigned char *neg_protocol;
 4365|      0|      unsigned int len;
 4366|      0|      SSL_get0_alpn_selected(octx->ssl, &neg_protocol, &len);
 4367|       |
 4368|      0|      return Curl_alpn_set_negotiated(cf, data, connssl, neg_protocol, len);
 4369|      0|    }
 4370|       |
 4371|      0|    return CURLE_OK;
 4372|      0|  }
 4373|  4.13k|}
openssl.c:ossl_close:
 1961|    458|{
 1962|    458|  struct ssl_connect_data *connssl = cf->ctx;
 1963|    458|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
 1964|       |
 1965|    458|  (void)data;
 1966|    458|  DEBUGASSERT(octx);
  ------------------
  |  | 1081|    458|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1966:3): [True: 0, False: 458]
  |  Branch (1966:3): [True: 458, False: 0]
  ------------------
 1967|       |
 1968|    458|  connssl->input_pending = FALSE;
  ------------------
  |  | 1058|    458|#define FALSE false
  ------------------
 1969|    458|  if(octx->ssl) {
  ------------------
  |  Branch (1969:6): [True: 220, False: 238]
  ------------------
 1970|    220|    SSL_free(octx->ssl);
 1971|    220|    octx->ssl = NULL;
 1972|    220|  }
 1973|    458|  if(octx->ssl_ctx) {
  ------------------
  |  Branch (1973:6): [True: 220, False: 238]
  ------------------
 1974|    220|    SSL_CTX_free(octx->ssl_ctx);
 1975|    220|    octx->ssl_ctx = NULL;
 1976|    220|    octx->x509_store_setup = FALSE;
  ------------------
  |  | 1058|    220|#define FALSE false
  ------------------
 1977|    220|  }
 1978|    458|  if(octx->bio_method) {
  ------------------
  |  Branch (1978:6): [True: 219, False: 239]
  ------------------
 1979|    219|    ossl_bio_cf_method_free(octx->bio_method);
 1980|       |    octx->bio_method = NULL;
 1981|    219|  }
 1982|    458|}
openssl.c:ossl_bio_cf_method_free:
  655|    219|{
  656|    219|  if(m)
  ------------------
  |  Branch (656:6): [True: 219, False: 0]
  ------------------
  657|    219|    BIO_meth_free(m);
  658|    219|}
openssl.c:ossl_close_all:
 1989|  15.6k|{
 1990|  15.6k|#ifdef USE_OPENSSL_ENGINE
 1991|  15.6k|  if(data->state.engine) {
  ------------------
  |  Branch (1991:6): [True: 0, False: 15.6k]
  ------------------
 1992|      0|    ENGINE_finish(data->state.engine);
 1993|      0|    ENGINE_free(data->state.engine);
 1994|      0|    data->state.engine = NULL;
 1995|      0|  }
 1996|       |#else
 1997|       |  (void)data;
 1998|       |#endif
 1999|  15.6k|#ifdef OPENSSL_HAS_PROVIDERS
 2000|  15.6k|  ossl_provider_cleanup(data);
 2001|  15.6k|#endif
 2002|  15.6k|}

Curl_ssl_easy_config_init:
  181|  15.6k|{
  182|       |  /*
  183|       |   * libcurl 7.10 introduced SSL verification *by default*! This needs to be
  184|       |   * switched off unless wanted.
  185|       |   */
  186|  15.6k|  data->set.ssl.primary.verifypeer = TRUE;
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  187|  15.6k|  data->set.ssl.primary.verifyhost = TRUE;
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  188|       |  data->set.ssl.primary.cache_session = TRUE; /* caching by default */
  ------------------
  |  | 1055|  15.6k|#define TRUE true
  ------------------
  189|  15.6k|#ifndef CURL_DISABLE_PROXY
  190|  15.6k|  data->set.proxy_ssl = data->set.ssl;
  191|  15.6k|#endif
  192|  15.6k|}
Curl_ssl_easy_config_complete:
  311|  10.3k|{
  312|  10.3k|  struct ssl_config_data *sslc = &data->set.ssl;
  313|  10.3k|#if defined(CURL_CA_PATH) || defined(CURL_CA_BUNDLE)
  314|  10.3k|  struct UserDefined *set = &data->set;
  315|  10.3k|  CURLcode result;
  316|  10.3k|#endif
  317|       |
  318|  10.3k|  if(Curl_ssl_backend() != CURLSSLBACKEND_SCHANNEL) {
  ------------------
  |  Branch (318:6): [True: 10.3k, False: 0]
  ------------------
  319|       |#if defined(USE_APPLE_SECTRUST) || defined(CURL_CA_NATIVE)
  320|       |    if(!sslc->custom_capath && !sslc->custom_cafile && !sslc->custom_cablob)
  321|       |      sslc->native_ca_store = TRUE;
  322|       |#endif
  323|  10.3k|#ifdef CURL_CA_PATH
  324|  10.3k|    if(!sslc->custom_capath && !set->str[STRING_SSL_CAPATH]) {
  ------------------
  |  Branch (324:8): [True: 10.3k, False: 0]
  |  Branch (324:32): [True: 7.02k, False: 3.30k]
  ------------------
  325|  7.02k|      result = Curl_setstropt(&set->str[STRING_SSL_CAPATH], CURL_CA_PATH);
  ------------------
  |  |   32|  7.02k|#define CURL_CA_PATH "/etc/ssl/certs"
  ------------------
  326|  7.02k|      if(result)
  ------------------
  |  Branch (326:10): [True: 0, False: 7.02k]
  ------------------
  327|      0|        return result;
  328|  7.02k|    }
  329|  10.3k|#endif
  330|  10.3k|#ifdef CURL_CA_BUNDLE
  331|  10.3k|    if(!sslc->custom_cafile && !set->str[STRING_SSL_CAFILE]) {
  ------------------
  |  Branch (331:8): [True: 10.3k, False: 0]
  |  Branch (331:32): [True: 7.02k, False: 3.30k]
  ------------------
  332|  7.02k|      result = Curl_setstropt(&set->str[STRING_SSL_CAFILE], CURL_CA_BUNDLE);
  ------------------
  |  |   26|  7.02k|#define CURL_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt"
  ------------------
  333|  7.02k|      if(result)
  ------------------
  |  Branch (333:10): [True: 0, False: 7.02k]
  ------------------
  334|      0|        return result;
  335|  7.02k|    }
  336|  10.3k|#endif
  337|  10.3k|  }
  338|  10.3k|  sslc->primary.CAfile = data->set.str[STRING_SSL_CAFILE];
  339|  10.3k|  sslc->primary.CRLfile = data->set.str[STRING_SSL_CRLFILE];
  340|  10.3k|  sslc->primary.CApath = data->set.str[STRING_SSL_CAPATH];
  341|  10.3k|  sslc->primary.issuercert = data->set.str[STRING_SSL_ISSUERCERT];
  342|  10.3k|  sslc->primary.issuercert_blob = data->set.blobs[BLOB_SSL_ISSUERCERT];
  343|  10.3k|  sslc->primary.cipher_list = data->set.str[STRING_SSL_CIPHER_LIST];
  344|  10.3k|  sslc->primary.cipher_list13 = data->set.str[STRING_SSL_CIPHER13_LIST];
  345|  10.3k|  sslc->primary.signature_algorithms =
  346|  10.3k|    data->set.str[STRING_SSL_SIGNATURE_ALGORITHMS];
  347|  10.3k|  sslc->primary.pinned_key = data->set.str[STRING_SSL_PINNEDPUBLICKEY];
  348|  10.3k|  sslc->primary.cert_blob = data->set.blobs[BLOB_CERT];
  349|  10.3k|  sslc->primary.ca_info_blob = data->set.blobs[BLOB_CAINFO];
  350|  10.3k|  sslc->primary.curves = data->set.str[STRING_SSL_EC_CURVES];
  351|  10.3k|#ifdef USE_TLS_SRP
  352|  10.3k|  sslc->primary.username = data->set.str[STRING_TLSAUTH_USERNAME];
  353|  10.3k|  sslc->primary.password = data->set.str[STRING_TLSAUTH_PASSWORD];
  354|  10.3k|#endif
  355|  10.3k|  sslc->primary.cert_type = data->set.str[STRING_CERT_TYPE];
  356|  10.3k|  sslc->primary.key = data->set.str[STRING_KEY];
  357|  10.3k|  sslc->primary.key_type = data->set.str[STRING_KEY_TYPE];
  358|  10.3k|  sslc->primary.key_passwd = data->set.str[STRING_KEY_PASSWD];
  359|  10.3k|  sslc->primary.clientcert = data->set.str[STRING_CERT];
  360|  10.3k|  sslc->primary.key_blob = data->set.blobs[BLOB_KEY];
  361|       |
  362|  10.3k|#ifndef CURL_DISABLE_PROXY
  363|  10.3k|  sslc = &data->set.proxy_ssl;
  364|  10.3k|  if(Curl_ssl_backend() != CURLSSLBACKEND_SCHANNEL) {
  ------------------
  |  Branch (364:6): [True: 10.3k, False: 0]
  ------------------
  365|       |#if defined(USE_APPLE_SECTRUST) || defined(CURL_CA_NATIVE)
  366|       |    if(!sslc->custom_capath && !sslc->custom_cafile && !sslc->custom_cablob)
  367|       |      sslc->native_ca_store = TRUE;
  368|       |#endif
  369|  10.3k|#ifdef CURL_CA_PATH
  370|  10.3k|    if(!sslc->custom_capath && !set->str[STRING_SSL_CAPATH_PROXY]) {
  ------------------
  |  Branch (370:8): [True: 10.3k, False: 0]
  |  Branch (370:32): [True: 7.02k, False: 3.30k]
  ------------------
  371|  7.02k|      result = Curl_setstropt(&set->str[STRING_SSL_CAPATH_PROXY],
  372|  7.02k|                              CURL_CA_PATH);
  ------------------
  |  |   32|  7.02k|#define CURL_CA_PATH "/etc/ssl/certs"
  ------------------
  373|  7.02k|      if(result)
  ------------------
  |  Branch (373:10): [True: 0, False: 7.02k]
  ------------------
  374|      0|        return result;
  375|  7.02k|    }
  376|  10.3k|#endif
  377|  10.3k|#ifdef CURL_CA_BUNDLE
  378|  10.3k|    if(!sslc->custom_cafile && !set->str[STRING_SSL_CAFILE_PROXY]) {
  ------------------
  |  Branch (378:8): [True: 10.3k, False: 0]
  |  Branch (378:32): [True: 7.02k, False: 3.30k]
  ------------------
  379|  7.02k|      result = Curl_setstropt(&set->str[STRING_SSL_CAFILE_PROXY],
  380|  7.02k|                              CURL_CA_BUNDLE);
  ------------------
  |  |   26|  7.02k|#define CURL_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt"
  ------------------
  381|  7.02k|      if(result)
  ------------------
  |  Branch (381:10): [True: 0, False: 7.02k]
  ------------------
  382|      0|        return result;
  383|  7.02k|    }
  384|  10.3k|#endif
  385|  10.3k|  }
  386|  10.3k|  sslc->primary.CAfile = data->set.str[STRING_SSL_CAFILE_PROXY];
  387|  10.3k|  sslc->primary.CApath = data->set.str[STRING_SSL_CAPATH_PROXY];
  388|  10.3k|  sslc->primary.cipher_list = data->set.str[STRING_SSL_CIPHER_LIST_PROXY];
  389|  10.3k|  sslc->primary.cipher_list13 = data->set.str[STRING_SSL_CIPHER13_LIST_PROXY];
  390|  10.3k|  sslc->primary.pinned_key = data->set.str[STRING_SSL_PINNEDPUBLICKEY_PROXY];
  391|  10.3k|  sslc->primary.cert_blob = data->set.blobs[BLOB_CERT_PROXY];
  392|  10.3k|  sslc->primary.ca_info_blob = data->set.blobs[BLOB_CAINFO_PROXY];
  393|  10.3k|  sslc->primary.issuercert = data->set.str[STRING_SSL_ISSUERCERT_PROXY];
  394|  10.3k|  sslc->primary.issuercert_blob = data->set.blobs[BLOB_SSL_ISSUERCERT_PROXY];
  395|  10.3k|  sslc->primary.CRLfile = data->set.str[STRING_SSL_CRLFILE_PROXY];
  396|  10.3k|  sslc->primary.cert_type = data->set.str[STRING_CERT_TYPE_PROXY];
  397|  10.3k|  sslc->primary.key = data->set.str[STRING_KEY_PROXY];
  398|  10.3k|  sslc->primary.key_type = data->set.str[STRING_KEY_TYPE_PROXY];
  399|  10.3k|  sslc->primary.key_passwd = data->set.str[STRING_KEY_PASSWD_PROXY];
  400|  10.3k|  sslc->primary.clientcert = data->set.str[STRING_CERT_PROXY];
  401|  10.3k|  sslc->primary.key_blob = data->set.blobs[BLOB_KEY_PROXY];
  402|  10.3k|#ifdef USE_TLS_SRP
  403|  10.3k|  sslc->primary.username = data->set.str[STRING_TLSAUTH_USERNAME_PROXY];
  404|  10.3k|  sslc->primary.password = data->set.str[STRING_TLSAUTH_PASSWORD_PROXY];
  405|  10.3k|#endif
  406|  10.3k|#endif /* CURL_DISABLE_PROXY */
  407|       |
  408|  10.3k|  return CURLE_OK;
  409|  10.3k|}
Curl_ssl_conn_config_init:
  413|  7.53k|{
  414|       |  /* Clone "primary" SSL configurations from the easy handle to
  415|       |   * the connection. They are used for connection cache matching and
  416|       |   * probably outlive the easy handle */
  417|  7.53k|  if(!clone_ssl_primary_config(&data->set.ssl.primary, &conn->ssl_config))
  ------------------
  |  Branch (417:6): [True: 0, False: 7.53k]
  ------------------
  418|      0|    return CURLE_OUT_OF_MEMORY;
  419|  7.53k|#ifndef CURL_DISABLE_PROXY
  420|  7.53k|  if(!clone_ssl_primary_config(&data->set.proxy_ssl.primary,
  ------------------
  |  Branch (420:6): [True: 0, False: 7.53k]
  ------------------
  421|  7.53k|                               &conn->proxy_ssl_config))
  422|      0|    return CURLE_OUT_OF_MEMORY;
  423|  7.53k|#endif
  424|  7.53k|  return CURLE_OK;
  425|  7.53k|}
Curl_ssl_conn_config_cleanup:
  428|  11.1k|{
  429|  11.1k|  free_primary_ssl_config(&conn->ssl_config);
  430|  11.1k|#ifndef CURL_DISABLE_PROXY
  431|  11.1k|  free_primary_ssl_config(&conn->proxy_ssl_config);
  432|  11.1k|#endif
  433|  11.1k|}
Curl_ssl_backend:
  459|  20.6k|{
  460|  20.6k|#ifdef USE_SSL
  461|  20.6k|  multissl_setup(NULL);
  462|  20.6k|  return Curl_ssl->info.id;
  463|       |#else
  464|       |  return CURLSSLBACKEND_NONE;
  465|       |#endif
  466|  20.6k|}
Curl_ssl_init:
  480|      2|{
  481|       |  /* make sure this is only done once */
  482|      2|  if(init_ssl)
  ------------------
  |  Branch (482:6): [True: 0, False: 2]
  ------------------
  483|      0|    return 1;
  484|      2|  init_ssl = TRUE; /* never again */
  ------------------
  |  | 1055|      2|#define TRUE true
  ------------------
  485|       |
  486|      2|  if(Curl_ssl->init)
  ------------------
  |  Branch (486:6): [True: 2, False: 0]
  ------------------
  487|      2|    return Curl_ssl->init();
  488|      0|  return 1;
  489|      2|}
Curl_ssl_close_all:
  555|  15.6k|{
  556|  15.6k|  if(Curl_ssl->close_all)
  ------------------
  |  Branch (556:6): [True: 15.6k, False: 0]
  ------------------
  557|  15.6k|    Curl_ssl->close_all(data);
  558|  15.6k|}
Curl_ssl_adjust_pollset:
  563|  4.13k|{
  564|  4.13k|  struct ssl_connect_data *connssl = cf->ctx;
  565|       |
  566|  4.13k|  if(connssl->io_need) {
  ------------------
  |  Branch (566:6): [True: 4.13k, False: 0]
  ------------------
  567|  4.13k|    curl_socket_t sock = Curl_conn_cf_get_socket(cf->next, data);
  568|  4.13k|    CURLcode result = CURLE_OK;
  569|  4.13k|    if(sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  4.13k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (569:8): [True: 4.13k, False: 0]
  ------------------
  570|  4.13k|      if(connssl->io_need & CURL_SSL_IO_NEED_SEND) {
  ------------------
  |  |  107|  4.13k|#define CURL_SSL_IO_NEED_SEND   (1 << 1)
  ------------------
  |  Branch (570:10): [True: 0, False: 4.13k]
  ------------------
  571|      0|        result = Curl_pollset_set_out_only(data, ps, sock);
  ------------------
  |  |  174|      0|  Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, CURL_POLL_IN)
  |  |  ------------------
  |  |  |  |  284|      0|#define CURL_POLL_OUT    2
  |  |  ------------------
  |  |                 Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, CURL_POLL_IN)
  |  |  ------------------
  |  |  |  |  283|      0|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
  572|      0|        CURL_TRC_CF(data, cf, "adjust_pollset, POLLOUT fd=%" FMT_SOCKET_T,
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  573|      0|                    sock);
  574|      0|      }
  575|  4.13k|      else {
  576|  4.13k|        result = Curl_pollset_set_in_only(data, ps, sock);
  ------------------
  |  |  172|  4.13k|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, CURL_POLL_OUT)
  |  |  ------------------
  |  |  |  |  283|  4.13k|#define CURL_POLL_IN     1
  |  |  ------------------
  |  |                 Curl_pollset_change(data, ps, sock, CURL_POLL_IN, CURL_POLL_OUT)
  |  |  ------------------
  |  |  |  |  284|  4.13k|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
  577|  4.13k|        CURL_TRC_CF(data, cf, "adjust_pollset, POLLIN fd=%" FMT_SOCKET_T,
  ------------------
  |  |  153|  4.13k|  do {                                          \
  |  |  154|  4.13k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  4.13k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  8.27k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 4.13k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.13k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  8.27k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  4.13k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.13k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.13k]
  |  |  ------------------
  ------------------
  578|  4.13k|                    sock);
  579|  4.13k|      }
  580|  4.13k|    }
  581|  4.13k|    return result;
  582|  4.13k|  }
  583|      0|  return CURLE_OK;
  584|  4.13k|}
Curl_ssl_free_certinfo:
  624|  39.1k|{
  625|  39.1k|  struct curl_certinfo *ci = &data->info.certs;
  626|       |
  627|  39.1k|  if(ci->num_of_certs) {
  ------------------
  |  Branch (627:6): [True: 0, False: 39.1k]
  ------------------
  628|       |    /* free all individual lists used */
  629|      0|    int i;
  630|      0|    for(i = 0; i < ci->num_of_certs; i++) {
  ------------------
  |  Branch (630:16): [True: 0, False: 0]
  ------------------
  631|      0|      curl_slist_free_all(ci->certinfo[i]);
  632|      0|      ci->certinfo[i] = NULL;
  633|      0|    }
  634|       |
  635|       |    curlx_safefree(ci->certinfo); /* free the actual array too */
  ------------------
  |  | 1327|      0|  do {                      \
  |  | 1328|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|      0|    (ptr) = NULL;           \
  |  | 1330|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  636|      0|    ci->num_of_certs = 0;
  637|      0|  }
  638|  39.1k|}
Curl_ssl_random:
  696|  7.28k|{
  697|  7.28k|  DEBUGASSERT(length == sizeof(int));
  ------------------
  |  | 1081|  7.28k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (697:3): [True: 0, False: 7.28k]
  |  Branch (697:3): [True: 7.28k, False: 0]
  ------------------
  698|  7.28k|  if(Curl_ssl->random)
  ------------------
  |  Branch (698:6): [True: 7.28k, False: 0]
  ------------------
  699|  7.28k|    return Curl_ssl->random(data, buffer, length);
  700|      0|  else
  701|      0|    return CURLE_NOT_BUILT_IN;
  702|  7.28k|}
Curl_ssl_peer_cleanup:
 1196|    467|{
 1197|    467|  Curl_peer_unlink(&peer->dest);
 1198|    467|  curlx_safefree(peer->sni);
  ------------------
  |  | 1327|    467|  do {                      \
  |  | 1328|    467|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|    467|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|    467|    (ptr) = NULL;           \
  |  | 1330|    467|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 467]
  |  |  ------------------
  ------------------
 1199|    467|  curlx_safefree(peer->scache_key);
  ------------------
  |  | 1327|    467|  do {                      \
  |  | 1328|    467|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|    467|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|    467|    (ptr) = NULL;           \
  |  | 1330|    467|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 467]
  |  |  ------------------
  ------------------
 1200|    467|  peer->transport = TRNSPRT_NONE;
  ------------------
  |  |  306|    467|#define TRNSPRT_NONE 0
  ------------------
 1201|    467|  peer->type = CURL_SSL_PEER_DNS;
 1202|    467|}
Curl_ssl_peer_init:
 1240|    229|{
 1241|    229|  struct Curl_peer *dest = NULL;
 1242|    229|  CURLcode result = CURLE_OUT_OF_MEMORY;
 1243|       |
 1244|       |  /* We expect a clean struct, e.g. called only ONCE */
 1245|    229|  DEBUGASSERT(peer);
  ------------------
  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1245:3): [True: 0, False: 229]
  |  Branch (1245:3): [True: 229, False: 0]
  ------------------
 1246|    229|  DEBUGASSERT(!peer->dest);
  ------------------
  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1246:3): [True: 0, False: 229]
  |  Branch (1246:3): [True: 229, False: 0]
  ------------------
 1247|    229|  DEBUGASSERT(!peer->sni);
  ------------------
  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1247:3): [True: 0, False: 229]
  |  Branch (1247:3): [True: 229, False: 0]
  ------------------
 1248|       |  /* We need the hostname for SNI negotiation. Once handshaked, this remains
 1249|       |   * the SNI hostname for the TLS connection. When the connection is reused,
 1250|       |   * the settings in cf->conn might change. We keep a copy of the hostname we
 1251|       |   * use for SNI.
 1252|       |   */
 1253|    229|  peer->transport = transport;
 1254|    229|#ifndef CURL_DISABLE_PROXY
 1255|    229|  if(Curl_ssl_cf_is_proxy(cf)) {
  ------------------
  |  Branch (1255:6): [True: 0, False: 229]
  ------------------
 1256|      0|    dest = cf->conn->http_proxy.peer;
 1257|      0|  }
 1258|    229|  else
 1259|    229|#endif
 1260|    229|  {
 1261|    229|    dest = cf->conn->origin;
 1262|    229|  }
 1263|       |
 1264|       |  /* hostname MUST exist and not be empty */
 1265|    229|  if(!dest) {
  ------------------
  |  Branch (1265:6): [True: 0, False: 229]
  ------------------
 1266|      0|    result = CURLE_FAILED_INIT;
 1267|      0|    goto out;
 1268|      0|  }
 1269|       |
 1270|    229|  Curl_peer_link(&peer->dest, dest);
 1271|    229|  peer->type = get_peer_type(dest->hostname);
 1272|    229|  if(peer->type == CURL_SSL_PEER_DNS) {
  ------------------
  |  Branch (1272:6): [True: 166, False: 63]
  ------------------
 1273|       |    /* not an IP address, normalize according to RCC 6066 ch. 3,
 1274|       |     * max len of SNI is 2^16-1, no trailing dot */
 1275|    166|    size_t len = strlen(dest->hostname);
 1276|    166|    if(len && (dest->hostname[len - 1] == '.'))
  ------------------
  |  Branch (1276:8): [True: 166, False: 0]
  |  Branch (1276:15): [True: 2, False: 164]
  ------------------
 1277|      2|      len--;
 1278|    166|    if(len < USHRT_MAX) {
  ------------------
  |  Branch (1278:8): [True: 166, False: 0]
  ------------------
 1279|    166|      peer->sni = curlx_calloc(1, len + 1);
  ------------------
  |  | 1480|    166|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1280|    166|      if(!peer->sni)
  ------------------
  |  Branch (1280:10): [True: 0, False: 166]
  ------------------
 1281|      0|        goto out;
 1282|    166|      Curl_strntolower(peer->sni, dest->hostname, len);
 1283|    166|      peer->sni[len] = 0;
 1284|    166|    }
 1285|    166|  }
 1286|       |
 1287|    229|  result = Curl_ssl_peer_key_make(cf, peer, tls_id, &peer->scache_key);
 1288|       |
 1289|    229|out:
 1290|    229|  if(result)
  ------------------
  |  Branch (1290:6): [True: 9, False: 220]
  ------------------
 1291|      9|    Curl_ssl_peer_cleanup(peer);
 1292|    229|  return result;
 1293|    229|}
Curl_cf_ssl_insert_after:
 1763|    229|{
 1764|    229|  struct Curl_cfilter *cf;
 1765|    229|  CURLcode result;
 1766|       |
 1767|    229|  result = cf_ssl_create(&cf, data, cf_at->conn);
 1768|    229|  if(!result)
  ------------------
  |  Branch (1768:6): [True: 229, False: 0]
  ------------------
 1769|    229|    Curl_conn_cf_insert_after(cf_at, cf);
 1770|    229|  return result;
 1771|    229|}
Curl_ssl_cf_is_proxy:
 1907|  7.88k|{
 1908|  7.88k|  return (cf->cft->flags & CF_TYPE_SSL) && (cf->cft->flags & CF_TYPE_PROXY);
  ------------------
  |  |  207|  7.88k|#define CF_TYPE_SSL         (1 << 1)
  ------------------
                return (cf->cft->flags & CF_TYPE_SSL) && (cf->cft->flags & CF_TYPE_PROXY);
  ------------------
  |  |  209|  7.88k|#define CF_TYPE_PROXY       (1 << 3)
  ------------------
  |  Branch (1908:10): [True: 7.88k, False: 0]
  |  Branch (1908:44): [True: 0, False: 7.88k]
  ------------------
 1909|  7.88k|}
Curl_ssl_cf_get_config:
 1913|  5.45k|{
 1914|       |#ifdef CURL_DISABLE_PROXY
 1915|       |  (void)cf;
 1916|       |  return &data->set.ssl;
 1917|       |#else
 1918|  5.45k|  return Curl_ssl_cf_is_proxy(cf) ? &data->set.proxy_ssl : &data->set.ssl;
  ------------------
  |  Branch (1918:10): [True: 0, False: 5.45k]
  ------------------
 1919|  5.45k|#endif
 1920|  5.45k|}
Curl_ssl_cf_get_primary_config:
 1924|  2.20k|{
 1925|       |#ifdef CURL_DISABLE_PROXY
 1926|       |  return &cf->conn->ssl_config;
 1927|       |#else
 1928|  2.20k|  return Curl_ssl_cf_is_proxy(cf) ?
  ------------------
  |  Branch (1928:10): [True: 0, False: 2.20k]
  ------------------
 1929|  2.20k|    &cf->conn->proxy_ssl_config : &cf->conn->ssl_config;
 1930|  2.20k|#endif
 1931|  2.20k|}
Curl_alpn_copy:
 2002|    219|{
 2003|    219|  if(src)
  ------------------
  |  Branch (2003:6): [True: 0, False: 219]
  ------------------
 2004|      0|    memcpy(dest, src, sizeof(*dest));
 2005|    219|  else
 2006|    219|    memset(dest, 0, sizeof(*dest));
 2007|    219|}
vtls.c:clone_ssl_primary_config:
  249|  15.0k|{
  250|  15.0k|  dest->version = source->version;
  251|  15.0k|  dest->version_max = source->version_max;
  252|  15.0k|  dest->verifypeer = source->verifypeer;
  253|  15.0k|  dest->verifyhost = source->verifyhost;
  254|  15.0k|  dest->verifystatus = source->verifystatus;
  255|  15.0k|  dest->cache_session = source->cache_session;
  256|  15.0k|  dest->ssl_options = source->ssl_options;
  257|       |
  258|  15.0k|  CLONE_BLOB(cert_blob);
  ------------------
  |  |   94|  15.0k|  do {                                   \
  |  |   95|  15.0k|    if(blobdup(&dest->var, source->var)) \
  |  |  ------------------
  |  |  |  Branch (95:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   96|  15.0k|      return FALSE;                      \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   97|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (97:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  259|  15.0k|  CLONE_BLOB(ca_info_blob);
  ------------------
  |  |   94|  15.0k|  do {                                   \
  |  |   95|  15.0k|    if(blobdup(&dest->var, source->var)) \
  |  |  ------------------
  |  |  |  Branch (95:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   96|  15.0k|      return FALSE;                      \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   97|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (97:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  260|  15.0k|  CLONE_BLOB(issuercert_blob);
  ------------------
  |  |   94|  15.0k|  do {                                   \
  |  |   95|  15.0k|    if(blobdup(&dest->var, source->var)) \
  |  |  ------------------
  |  |  |  Branch (95:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   96|  15.0k|      return FALSE;                      \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   97|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (97:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  261|  15.0k|  CLONE_BLOB(key_blob);
  ------------------
  |  |   94|  15.0k|  do {                                   \
  |  |   95|  15.0k|    if(blobdup(&dest->var, source->var)) \
  |  |  ------------------
  |  |  |  Branch (95:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   96|  15.0k|      return FALSE;                      \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   97|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (97:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  262|  15.0k|  CLONE_STRING(CApath);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 15.0k, False: 0]
  |  |  ------------------
  |  |   85|  15.0k|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|  15.0k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|  15.0k|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   87|  15.0k|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|  15.0k|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  263|  15.0k|  CLONE_STRING(CAfile);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 15.0k, False: 0]
  |  |  ------------------
  |  |   85|  15.0k|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|  15.0k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|  15.0k|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   87|  15.0k|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|  15.0k|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  264|  15.0k|  CLONE_STRING(issuercert);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  265|  15.0k|  CLONE_STRING(clientcert);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  266|  15.0k|  CLONE_STRING(cipher_list);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  267|  15.0k|  CLONE_STRING(cipher_list13);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  268|  15.0k|  CLONE_STRING(pinned_key);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  269|  15.0k|  CLONE_STRING(curves);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  270|  15.0k|  CLONE_STRING(signature_algorithms);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  271|  15.0k|  CLONE_STRING(CRLfile);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  272|  15.0k|  CLONE_STRING(cert_type);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  273|  15.0k|  CLONE_STRING(key);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  274|  15.0k|  CLONE_STRING(key_type);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  275|  15.0k|  CLONE_STRING(key_passwd);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  276|  15.0k|#ifdef USE_TLS_SRP
  277|  15.0k|  CLONE_STRING(username);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  278|  15.0k|  CLONE_STRING(password);
  ------------------
  |  |   83|  15.0k|  do {                                       \
  |  |   84|  15.0k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   85|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   86|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (86:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   87|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  |  |   88|      0|    }                                        \
  |  |   89|  15.0k|    else                                     \
  |  |   90|  15.0k|      dest->var = NULL;                      \
  |  |   91|  15.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (91:11): [Folded, False: 15.0k]
  |  |  ------------------
  ------------------
  279|  15.0k|#endif
  280|       |
  281|  15.0k|  return TRUE;
  ------------------
  |  | 1055|  15.0k|#define TRUE true
  ------------------
  282|  15.0k|}
vtls.c:blobdup:
  100|  60.2k|{
  101|  60.2k|  DEBUGASSERT(dest);
  ------------------
  |  | 1081|  60.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (101:3): [True: 0, False: 60.2k]
  |  Branch (101:3): [True: 60.2k, False: 0]
  ------------------
  102|  60.2k|  DEBUGASSERT(!*dest);
  ------------------
  |  | 1081|  60.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (102:3): [True: 0, False: 60.2k]
  |  Branch (102:3): [True: 60.2k, False: 0]
  ------------------
  103|  60.2k|  if(src) {
  ------------------
  |  Branch (103:6): [True: 0, False: 60.2k]
  ------------------
  104|       |    /* only if there is data to dupe! */
  105|      0|    struct curl_blob *d;
  106|      0|    d = curlx_malloc(sizeof(struct curl_blob) + src->len);
  ------------------
  |  | 1478|      0|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  107|      0|    if(!d)
  ------------------
  |  Branch (107:8): [True: 0, False: 0]
  ------------------
  108|      0|      return CURLE_OUT_OF_MEMORY;
  109|      0|    d->len = src->len;
  110|       |    /* Always duplicate because the connection may survive longer than the
  111|       |       handle that passed in the blob. */
  112|      0|    d->flags = CURL_BLOB_COPY;
  ------------------
  |  |   31|      0|#define CURL_BLOB_COPY   1 /* tell libcurl to copy the data */
  ------------------
  113|      0|    d->data = (void *)((char *)d + sizeof(struct curl_blob));
  114|      0|    memcpy(d->data, src->data, src->len);
  115|      0|    *dest = d;
  116|      0|  }
  117|  60.2k|  return CURLE_OK;
  118|  60.2k|}
vtls.c:free_primary_ssl_config:
  285|  22.2k|{
  286|  22.2k|  curlx_safefree(sslc->CApath);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  287|  22.2k|  curlx_safefree(sslc->CAfile);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  288|  22.2k|  curlx_safefree(sslc->issuercert);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  289|  22.2k|  curlx_safefree(sslc->clientcert);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  290|  22.2k|  curlx_safefree(sslc->cipher_list);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  291|  22.2k|  curlx_safefree(sslc->cipher_list13);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  292|  22.2k|  curlx_safefree(sslc->pinned_key);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  293|  22.2k|  curlx_safefree(sslc->cert_blob);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  294|  22.2k|  curlx_safefree(sslc->ca_info_blob);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  295|  22.2k|  curlx_safefree(sslc->issuercert_blob);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  296|  22.2k|  curlx_safefree(sslc->key_blob);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  297|  22.2k|  curlx_safefree(sslc->curves);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  298|  22.2k|  curlx_safefree(sslc->signature_algorithms);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  299|  22.2k|  curlx_safefree(sslc->CRLfile);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  300|  22.2k|  curlx_safefree(sslc->cert_type);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  301|  22.2k|  curlx_safefree(sslc->key);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  302|  22.2k|  curlx_safefree(sslc->key_type);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  303|  22.2k|  curlx_safefree(sslc->key_passwd);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  304|  22.2k|#ifdef USE_TLS_SRP
  305|  22.2k|  curlx_safefree(sslc->username);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  306|       |  curlx_safefree(sslc->password);
  ------------------
  |  | 1327|  22.2k|  do {                      \
  |  | 1328|  22.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|  22.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|  22.2k|    (ptr) = NULL;           \
  |  | 1330|  22.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 22.2k]
  |  |  ------------------
  ------------------
  307|  22.2k|#endif
  308|  22.2k|}
vtls.c:multissl_setup:
 1107|  20.6k|{
 1108|  20.6k|  int i;
 1109|  20.6k|  char *env;
 1110|       |
 1111|  20.6k|  if(Curl_ssl != &Curl_ssl_multi)
  ------------------
  |  Branch (1111:6): [True: 20.6k, False: 0]
  ------------------
 1112|  20.6k|    return 1;
 1113|       |
 1114|      0|  if(backend) {
  ------------------
  |  Branch (1114:6): [True: 0, False: 0]
  ------------------
 1115|      0|    Curl_ssl = backend;
 1116|      0|    return 0;
 1117|      0|  }
 1118|       |
 1119|      0|  if(!available_backends[0])
  ------------------
  |  Branch (1119:6): [True: 0, False: 0]
  ------------------
 1120|      0|    return 1;
 1121|       |
 1122|      0|  env = curl_getenv("CURL_SSL_BACKEND");
 1123|      0|  if(env) {
  ------------------
  |  Branch (1123:6): [True: 0, False: 0]
  ------------------
 1124|      0|    for(i = 0; available_backends[i]; i++) {
  ------------------
  |  Branch (1124:16): [True: 0, False: 0]
  ------------------
 1125|      0|      if(curl_strequal(env, available_backends[i]->info.name)) {
  ------------------
  |  Branch (1125:10): [True: 0, False: 0]
  ------------------
 1126|      0|        Curl_ssl = available_backends[i];
 1127|      0|        curlx_free(env);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1128|      0|        return 0;
 1129|      0|      }
 1130|      0|    }
 1131|      0|  }
 1132|       |
 1133|       |#ifdef CURL_DEFAULT_SSL_BACKEND
 1134|       |  for(i = 0; available_backends[i]; i++) {
 1135|       |    if(curl_strequal(CURL_DEFAULT_SSL_BACKEND,
 1136|       |                     available_backends[i]->info.name)) {
 1137|       |      Curl_ssl = available_backends[i];
 1138|       |      curlx_free(env);
 1139|       |      return 0;
 1140|       |    }
 1141|       |  }
 1142|       |#endif
 1143|       |
 1144|       |  /* Fall back to first available backend */
 1145|      0|  Curl_ssl = available_backends[0];
 1146|      0|  curlx_free(env);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1147|      0|  return 0;
 1148|      0|}
vtls.c:get_peer_type:
 1218|    229|{
 1219|    229|  if(hostname && hostname[0]) {
  ------------------
  |  Branch (1219:6): [True: 229, False: 0]
  |  Branch (1219:18): [True: 229, False: 0]
  ------------------
 1220|    229|#ifdef USE_IPV6
 1221|    229|    struct in6_addr addr;
 1222|       |#else
 1223|       |    struct in_addr addr;
 1224|       |#endif
 1225|    229|    if(curlx_inet_pton(AF_INET, hostname, &addr))
  ------------------
  |  |   43|    229|  inet_pton(x, y, z)
  |  |  ------------------
  |  |  |  Branch (43:3): [True: 62, False: 167]
  |  |  ------------------
  ------------------
 1226|     62|      return CURL_SSL_PEER_IPV4;
 1227|    167|#ifdef USE_IPV6
 1228|    167|    else if(curlx_inet_pton(AF_INET6, hostname, &addr)) {
  ------------------
  |  |   43|    167|  inet_pton(x, y, z)
  |  |  ------------------
  |  |  |  Branch (43:3): [True: 1, False: 166]
  |  |  ------------------
  ------------------
 1229|      1|      return CURL_SSL_PEER_IPV6;
 1230|      1|    }
 1231|    229|#endif
 1232|    229|  }
 1233|    166|  return CURL_SSL_PEER_DNS;
 1234|    229|}
vtls.c:ssl_cf_destroy:
 1296|    229|{
 1297|    229|  struct cf_call_data save;
 1298|       |
 1299|    229|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|    229|  do { \
  |  |  671|    229|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  213|    229|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|    229|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|    229|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  213|    229|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|    229|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  213|    229|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|    229|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|    229|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 229]
  |  |  ------------------
  ------------------
  |  Branch (1299:3): [True: 229, False: 0]
  |  Branch (1299:3): [True: 0, False: 0]
  |  Branch (1299:3): [True: 229, False: 0]
  |  Branch (1299:3): [True: 0, False: 0]
  ------------------
 1300|    229|  cf_close(cf, data);
 1301|    229|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|    229|  do { \
  |  |  679|    229|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|    229|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|    229|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  213|    229|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|    229|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 229]
  |  |  ------------------
  ------------------
  |  Branch (1301:3): [True: 0, False: 229]
  |  Branch (1301:3): [True: 229, False: 0]
  |  Branch (1301:3): [True: 229, False: 0]
  |  Branch (1301:3): [True: 0, False: 0]
  |  Branch (1301:3): [True: 229, False: 0]
  |  Branch (1301:3): [True: 0, False: 0]
  ------------------
 1302|    229|  cf_ctx_free(cf->ctx);
 1303|       |  cf->ctx = NULL;
 1304|    229|}
vtls.c:cf_close:
 1205|    458|{
 1206|    458|  struct ssl_connect_data *connssl = cf->ctx;
 1207|    458|  if(connssl) {
  ------------------
  |  Branch (1207:6): [True: 458, False: 0]
  ------------------
 1208|    458|    connssl->ssl_impl->close(cf, data);
 1209|    458|    connssl->state = ssl_connection_none;
 1210|    458|    connssl->connecting_state = ssl_connect_1;
 1211|    458|    connssl->prefs_checked = FALSE;
  ------------------
  |  | 1058|    458|#define FALSE false
  ------------------
 1212|    458|    Curl_ssl_peer_cleanup(&connssl->peer);
 1213|    458|  }
 1214|       |  cf->connected = FALSE;
  ------------------
  |  | 1058|    458|#define FALSE false
  ------------------
 1215|    458|}
vtls.c:cf_ctx_free:
  537|    229|{
  538|    229|  if(ctx) {
  ------------------
  |  Branch (538:6): [True: 229, False: 0]
  ------------------
  539|    229|    curlx_safefree(ctx->negotiated.alpn);
  ------------------
  |  | 1327|    229|  do {                      \
  |  | 1328|    229|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|    229|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|    229|    (ptr) = NULL;           \
  |  | 1330|    229|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 229]
  |  |  ------------------
  ------------------
  540|    229|    Curl_bufq_free(&ctx->earlydata);
  541|    229|    curlx_free(ctx->backend);
  ------------------
  |  | 1483|    229|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  542|    229|    curlx_free(ctx);
  ------------------
  |  | 1483|    229|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  543|    229|  }
  544|    229|}
vtls.c:ssl_cf_connect:
 1321|  4.14k|{
 1322|  4.14k|  struct ssl_connect_data *connssl = cf->ctx;
 1323|  4.14k|  struct cf_call_data save;
 1324|  4.14k|  CURLcode result;
 1325|       |
 1326|  4.14k|  if(cf->connected && (connssl->state != ssl_connection_deferred)) {
  ------------------
  |  Branch (1326:6): [True: 0, False: 4.14k]
  |  Branch (1326:23): [True: 0, False: 0]
  ------------------
 1327|      0|    *done = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1328|      0|    return CURLE_OK;
 1329|      0|  }
 1330|       |
 1331|  4.14k|  if(!cf->next) {
  ------------------
  |  Branch (1331:6): [True: 0, False: 4.14k]
  ------------------
 1332|      0|    *done = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1333|      0|    return CURLE_FAILED_INIT;
 1334|      0|  }
 1335|       |
 1336|  4.14k|  if(!cf->next->connected) {
  ------------------
  |  Branch (1336:6): [True: 0, False: 4.14k]
  ------------------
 1337|      0|    result = cf->next->cft->do_connect(cf->next, data, done);
 1338|      0|    if(result || !*done)
  ------------------
  |  Branch (1338:8): [True: 0, False: 0]
  |  Branch (1338:18): [True: 0, False: 0]
  ------------------
 1339|      0|      return result;
 1340|      0|  }
 1341|       |
 1342|  4.14k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  4.14k|  do { \
  |  |  671|  4.14k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  213|  4.14k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  4.14k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  4.14k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  4.14k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  213|  4.14k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  4.14k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  213|  4.14k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  4.14k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  4.14k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 4.14k]
  |  |  ------------------
  ------------------
  |  Branch (1342:3): [True: 4.14k, False: 0]
  |  Branch (1342:3): [True: 0, False: 0]
  |  Branch (1342:3): [True: 4.14k, False: 0]
  |  Branch (1342:3): [True: 0, False: 0]
  ------------------
 1343|  4.14k|  CURL_TRC_CF(data, cf, "cf_connect()");
  ------------------
  |  |  153|  4.14k|  do {                                          \
  |  |  154|  4.14k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  4.14k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  8.29k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 4.14k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.14k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  8.29k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  4.14k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.14k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.14k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.14k]
  |  |  ------------------
  ------------------
 1344|  4.14k|  DEBUGASSERT(connssl);
  ------------------
  |  | 1081|  4.14k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1344:3): [True: 0, False: 4.14k]
  |  Branch (1344:3): [True: 4.14k, False: 0]
  ------------------
 1345|       |
 1346|  4.14k|  *done = FALSE;
  ------------------
  |  | 1058|  4.14k|#define FALSE false
  ------------------
 1347|       |
 1348|  4.14k|  if(!connssl->prefs_checked) {
  ------------------
  |  Branch (1348:6): [True: 229, False: 3.91k]
  ------------------
 1349|    229|    if(!ssl_prefs_check(data)) {
  ------------------
  |  Branch (1349:8): [True: 0, False: 229]
  ------------------
 1350|      0|      result = CURLE_SSL_CONNECT_ERROR;
 1351|      0|      goto out;
 1352|      0|    }
 1353|    229|    connssl->prefs_checked = TRUE;
  ------------------
  |  | 1055|    229|#define TRUE true
  ------------------
 1354|    229|  }
 1355|       |
 1356|  4.14k|  if(!connssl->peer.dest) {
  ------------------
  |  Branch (1356:6): [True: 229, False: 3.91k]
  ------------------
 1357|    229|    char tls_id[80];
 1358|    229|    connssl->ssl_impl->version(tls_id, sizeof(tls_id) - 1);
 1359|    229|    result = Curl_ssl_peer_init(&connssl->peer, cf, tls_id, TRNSPRT_TCP);
  ------------------
  |  |  307|    229|#define TRNSPRT_TCP  3
  ------------------
 1360|    229|    if(result)
  ------------------
  |  Branch (1360:8): [True: 9, False: 220]
  ------------------
 1361|      9|      goto out;
 1362|    229|  }
 1363|       |
 1364|  4.13k|  result = connssl->ssl_impl->do_connect(cf, data, done);
 1365|       |
 1366|  4.13k|  if(!result && *done) {
  ------------------
  |  Branch (1366:6): [True: 4.13k, False: 1]
  |  Branch (1366:17): [True: 0, False: 4.13k]
  ------------------
 1367|      0|    cf->connected = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1368|      0|    if(connssl->state == ssl_connection_complete) {
  ------------------
  |  Branch (1368:8): [True: 0, False: 0]
  ------------------
 1369|      0|      connssl->handshake_done = *Curl_pgrs_now(data);
 1370|      0|    }
 1371|      0|    if(Curl_tls_keylog_enabled()) {
  ------------------
  |  Branch (1371:8): [True: 0, False: 0]
  ------------------
 1372|      0|      infof(data, "SSLKEYLOGFILE set, all TLS secrets are logged to '%s'",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1373|      0|            Curl_tls_keylog_file_name());
 1374|       |#ifdef LIBRESSL_VERSION_NUMBER
 1375|       |      infof(data, "Note LibreSSL only supports SSLKEYLOGFILE for TLS <= 1.2");
 1376|       |#endif
 1377|      0|    }
 1378|       |    /* Connection can be deferred when sending early data */
 1379|      0|    DEBUGASSERT(connssl->state == ssl_connection_complete ||
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1379:5): [True: 0, False: 0]
  |  Branch (1379:5): [True: 0, False: 0]
  |  Branch (1379:5): [True: 0, False: 0]
  |  Branch (1379:5): [True: 0, False: 0]
  ------------------
 1380|      0|                connssl->state == ssl_connection_deferred);
 1381|      0|    DEBUGASSERT(connssl->state != ssl_connection_deferred ||
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1381:5): [True: 0, False: 0]
  |  Branch (1381:5): [True: 0, False: 0]
  |  Branch (1381:5): [True: 0, False: 0]
  |  Branch (1381:5): [True: 0, False: 0]
  ------------------
 1382|      0|                connssl->earlydata_state > ssl_earlydata_none);
 1383|      0|  }
 1384|  4.14k|out:
 1385|  4.14k|  CURL_TRC_CF(data, cf, "cf_connect() -> %d, done=%d", result, *done);
  ------------------
  |  |  153|  4.14k|  do {                                          \
  |  |  154|  4.14k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|  4.14k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  8.29k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 4.14k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 4.14k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  8.29k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|  4.14k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.14k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.14k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.14k]
  |  |  ------------------
  ------------------
 1386|  4.14k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  4.14k|  do { \
  |  |  679|  4.14k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  4.14k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  4.14k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  4.14k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  4.14k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  213|  4.14k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  4.14k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 4.14k]
  |  |  ------------------
  ------------------
  |  Branch (1386:3): [True: 0, False: 4.14k]
  |  Branch (1386:3): [True: 4.14k, False: 0]
  |  Branch (1386:3): [True: 4.14k, False: 0]
  |  Branch (1386:3): [True: 0, False: 0]
  |  Branch (1386:3): [True: 4.14k, False: 0]
  |  Branch (1386:3): [True: 0, False: 0]
  ------------------
 1387|  4.14k|  return result;
 1388|  4.14k|}
vtls.c:ssl_prefs_check:
  492|    229|{
  493|       |  /* check for CURLOPT_SSLVERSION invalid parameter value */
  494|    229|  const unsigned char sslver = data->set.ssl.primary.version;
  495|    229|  if(sslver >= CURL_SSLVERSION_LAST) {
  ------------------
  |  | 2377|    229|#define CURL_SSLVERSION_LAST    8L /* never use, keep last */
  ------------------
  |  Branch (495:6): [True: 0, False: 229]
  ------------------
  496|      0|    failf(data, "Unrecognized parameter value passed via CURLOPT_SSLVERSION");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  497|      0|    return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  498|      0|  }
  499|       |
  500|    229|  switch(data->set.ssl.primary.version_max) {
  501|    229|  case CURL_SSLVERSION_MAX_NONE:
  ------------------
  |  | 2379|    229|#define CURL_SSLVERSION_MAX_NONE 0L
  ------------------
  |  Branch (501:3): [True: 229, False: 0]
  ------------------
  502|    229|  case CURL_SSLVERSION_MAX_DEFAULT:
  ------------------
  |  | 2380|    229|#define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1   << 16)
  |  |  ------------------
  |  |  |  | 2369|    229|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  |  |  ------------------
  ------------------
  |  Branch (502:3): [True: 0, False: 229]
  ------------------
  503|    229|    break;
  504|       |
  505|      0|  default:
  ------------------
  |  Branch (505:3): [True: 0, False: 229]
  ------------------
  506|      0|    if((data->set.ssl.primary.version_max >> 16) < sslver) {
  ------------------
  |  Branch (506:8): [True: 0, False: 0]
  ------------------
  507|      0|      failf(data, "CURL_SSLVERSION_MAX incompatible with CURL_SSLVERSION");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  508|      0|      return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  509|      0|    }
  510|    229|  }
  511|       |
  512|    229|  return TRUE;
  ------------------
  |  | 1055|    229|#define TRUE true
  ------------------
  513|    229|}
vtls.c:ssl_cf_close:
 1308|    229|{
 1309|    229|  struct cf_call_data save;
 1310|       |
 1311|    229|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|    229|  do { \
  |  |  671|    229|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  213|    229|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|    229|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|    229|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  213|    229|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|    229|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  213|    229|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|    229|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|    229|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 229]
  |  |  ------------------
  ------------------
  |  Branch (1311:3): [True: 229, False: 0]
  |  Branch (1311:3): [True: 0, False: 0]
  |  Branch (1311:3): [True: 229, False: 0]
  |  Branch (1311:3): [True: 0, False: 0]
  ------------------
 1312|    229|  cf_close(cf, data);
 1313|    229|  if(cf->next)
  ------------------
  |  Branch (1313:6): [True: 229, False: 0]
  ------------------
 1314|    229|    cf->next->cft->do_close(cf->next, data);
 1315|       |  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|    229|  do { \
  |  |  679|    229|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|    229|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|    229|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  213|    229|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|    229|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 229]
  |  |  ------------------
  ------------------
  |  Branch (1315:3): [True: 0, False: 229]
  |  Branch (1315:3): [True: 229, False: 0]
  |  Branch (1315:3): [True: 229, False: 0]
  |  Branch (1315:3): [True: 0, False: 0]
  |  Branch (1315:3): [True: 229, False: 0]
  |  Branch (1315:3): [True: 0, False: 0]
  ------------------
 1316|    229|}
vtls.c:ssl_cf_adjust_pollset:
 1585|  4.13k|{
 1586|  4.13k|  struct ssl_connect_data *connssl = cf->ctx;
 1587|  4.13k|  struct cf_call_data save;
 1588|  4.13k|  CURLcode result;
 1589|       |
 1590|  4.13k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|  4.13k|  do { \
  |  |  671|  4.13k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  213|  4.13k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|  4.13k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  4.13k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|  4.13k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  213|  4.13k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|  4.13k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  213|  4.13k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|  4.13k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|  4.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 4.13k]
  |  |  ------------------
  ------------------
  |  Branch (1590:3): [True: 4.13k, False: 0]
  |  Branch (1590:3): [True: 0, False: 0]
  |  Branch (1590:3): [True: 4.13k, False: 0]
  |  Branch (1590:3): [True: 0, False: 0]
  ------------------
 1591|  4.13k|  result = connssl->ssl_impl->adjust_pollset(cf, data, ps);
 1592|  4.13k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|  4.13k|  do { \
  |  |  679|  4.13k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|  4.13k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|  4.13k|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|  4.13k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|  4.13k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  213|  4.13k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|  4.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 4.13k]
  |  |  ------------------
  ------------------
  |  Branch (1592:3): [True: 0, False: 4.13k]
  |  Branch (1592:3): [True: 4.13k, False: 0]
  |  Branch (1592:3): [True: 4.13k, False: 0]
  |  Branch (1592:3): [True: 0, False: 0]
  |  Branch (1592:3): [True: 4.13k, False: 0]
  |  Branch (1592:3): [True: 0, False: 0]
  ------------------
 1593|  4.13k|  return result;
 1594|  4.13k|}
vtls.c:ssl_cf_cntrl:
 1641|    229|{
 1642|    229|  struct ssl_connect_data *connssl = cf->ctx;
 1643|       |
 1644|    229|  (void)arg1;
 1645|    229|  (void)arg2;
 1646|    229|  (void)data;
 1647|    229|  switch(event) {
  ------------------
  |  Branch (1647:10): [True: 0, False: 229]
  ------------------
 1648|      0|  case CF_CTRL_CONN_INFO_UPDATE:
  ------------------
  |  |  125|      0|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
  |  Branch (1648:3): [True: 0, False: 229]
  ------------------
 1649|      0|    if(connssl->negotiated.alpn && !cf->sockindex) {
  ------------------
  |  Branch (1649:8): [True: 0, False: 0]
  |  Branch (1649:36): [True: 0, False: 0]
  ------------------
 1650|      0|      if(!strcmp("http/1.1", connssl->negotiated.alpn))
  ------------------
  |  Branch (1650:10): [True: 0, False: 0]
  ------------------
 1651|      0|        cf->conn->httpversion_seen = 11;
 1652|      0|      else if(!strcmp("h2", connssl->negotiated.alpn))
  ------------------
  |  Branch (1652:15): [True: 0, False: 0]
  ------------------
 1653|      0|        cf->conn->httpversion_seen = 20;
 1654|      0|      else if(!strcmp("h3", connssl->negotiated.alpn))
  ------------------
  |  Branch (1654:15): [True: 0, False: 0]
  ------------------
 1655|      0|        cf->conn->httpversion_seen = 30;
 1656|      0|    }
 1657|      0|    break;
 1658|    229|  }
 1659|    229|  return CURLE_OK;
 1660|    229|}
vtls.c:ssl_cf_query:
 1599|  8.07k|{
 1600|  8.07k|  struct ssl_connect_data *connssl = cf->ctx;
 1601|       |
 1602|  8.07k|  switch(query) {
 1603|     10|  case CF_QUERY_TIMER_APPCONNECT: {
  ------------------
  |  |  169|     10|#define CF_QUERY_TIMER_APPCONNECT   5  /* -          struct curltime */
  ------------------
  |  Branch (1603:3): [True: 10, False: 8.06k]
  ------------------
 1604|     10|    struct curltime *when = pres2;
 1605|     10|    if(cf->connected && !Curl_ssl_cf_is_proxy(cf))
  ------------------
  |  Branch (1605:8): [True: 0, False: 10]
  |  Branch (1605:25): [True: 0, False: 0]
  ------------------
 1606|      0|      *when = connssl->handshake_done;
 1607|     10|    return CURLE_OK;
 1608|      0|  }
 1609|      0|  case CF_QUERY_SSL_INFO:
  ------------------
  |  |  178|      0|#define CF_QUERY_SSL_INFO          12  /* -    struct curl_tlssessioninfo * */
  ------------------
  |  Branch (1609:3): [True: 0, False: 8.07k]
  ------------------
 1610|      0|  case CF_QUERY_SSL_CTX_INFO:
  ------------------
  |  |  179|      0|#define CF_QUERY_SSL_CTX_INFO      13  /* -    struct curl_tlssessioninfo * */
  ------------------
  |  Branch (1610:3): [True: 0, False: 8.07k]
  ------------------
 1611|      0|    if(!Curl_ssl_cf_is_proxy(cf)) {
  ------------------
  |  Branch (1611:8): [True: 0, False: 0]
  ------------------
 1612|      0|      struct curl_tlssessioninfo *info = pres2;
 1613|      0|      struct cf_call_data save;
 1614|      0|      CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  670|      0|  do { \
  |  |  671|      0|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  213|      0|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  672|      0|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  673|      0|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  213|      0|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  674|      0|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  213|      0|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |                   CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  866|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  675|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (675:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1614:7): [True: 0, False: 0]
  |  Branch (1614:7): [True: 0, False: 0]
  |  Branch (1614:7): [True: 0, False: 0]
  |  Branch (1614:7): [True: 0, False: 0]
  ------------------
 1615|      0|      info->backend = Curl_ssl_backend();
 1616|      0|      info->internals = connssl->ssl_impl->get_internals(
 1617|      0|        cf->ctx, (query == CF_QUERY_SSL_INFO) ?
  ------------------
  |  |  178|      0|#define CF_QUERY_SSL_INFO          12  /* -    struct curl_tlssessioninfo * */
  ------------------
  |  Branch (1617:18): [True: 0, False: 0]
  ------------------
 1618|      0|        CURLINFO_TLS_SSL_PTR : CURLINFO_TLS_SESSION);
 1619|      0|      CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  678|      0|  do { \
  |  |  679|      0|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  680|      0|    DEBUGASSERT((save).data == NULL || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  681|      0|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  213|      0|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  682|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (682:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1619:7): [True: 0, False: 0]
  |  Branch (1619:7): [True: 0, False: 0]
  |  Branch (1619:7): [True: 0, False: 0]
  |  Branch (1619:7): [True: 0, False: 0]
  |  Branch (1619:7): [True: 0, False: 0]
  |  Branch (1619:7): [True: 0, False: 0]
  ------------------
 1620|      0|      return CURLE_OK;
 1621|      0|    }
 1622|      0|    break;
 1623|      0|  case CF_QUERY_ALPN_NEGOTIATED: {
  ------------------
  |  |  181|      0|#define CF_QUERY_ALPN_NEGOTIATED   15  /* -          const char * */
  ------------------
  |  Branch (1623:3): [True: 0, False: 8.07k]
  ------------------
 1624|      0|    const char **palpn = pres2;
 1625|      0|    DEBUGASSERT(palpn);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1625:5): [True: 0, False: 0]
  |  Branch (1625:5): [True: 0, False: 0]
  ------------------
 1626|      0|    *palpn = connssl->negotiated.alpn;
 1627|      0|    CURL_TRC_CF(data, cf, "query ALPN: returning '%s'", *palpn);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  323|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  324|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (324:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1628|      0|    return CURLE_OK;
 1629|      0|  }
 1630|  8.06k|  default:
  ------------------
  |  Branch (1630:3): [True: 8.06k, False: 10]
  ------------------
 1631|  8.06k|    break;
 1632|  8.07k|  }
 1633|  8.06k|  return cf->next ?
  ------------------
  |  Branch (1633:10): [True: 8.06k, False: 0]
  ------------------
 1634|  8.06k|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
 1635|  8.06k|    CURLE_UNKNOWN_OPTION;
 1636|  8.07k|}
vtls.c:cf_ssl_create:
 1716|    229|{
 1717|    229|  struct Curl_cfilter *cf = NULL;
 1718|    229|  struct ssl_connect_data *ctx;
 1719|    229|  CURLcode result;
 1720|       |
 1721|    229|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|    229|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1721:3): [True: 0, False: 229]
  |  Branch (1721:3): [True: 229, False: 0]
  ------------------
 1722|       |
 1723|       |#ifdef CURL_DISABLE_HTTP
 1724|       |  (void)conn;
 1725|       |  /* We only support ALPN for HTTP so far. */
 1726|       |  DEBUGASSERT(!conn->bits.tls_enable_alpn);
 1727|       |  ctx = cf_ctx_new(data, NULL);
 1728|       |#else
 1729|    229|  ctx = cf_ctx_new(data, alpn_get_spec(data->state.http_neg.wanted,
 1730|    229|                                       data->state.http_neg.preferred,
 1731|    229|                                       (bool)data->state.http_neg.only_10,
 1732|    229|                                       (bool)conn->bits.tls_enable_alpn));
 1733|    229|#endif
 1734|    229|  if(!ctx) {
  ------------------
  |  Branch (1734:6): [True: 0, False: 229]
  ------------------
 1735|      0|    result = CURLE_OUT_OF_MEMORY;
 1736|      0|    goto out;
 1737|      0|  }
 1738|       |
 1739|    229|  result = Curl_cf_create(&cf, &Curl_cft_ssl, ctx);
 1740|       |
 1741|    229|out:
 1742|    229|  if(result)
  ------------------
  |  Branch (1742:6): [True: 0, False: 229]
  ------------------
 1743|      0|    cf_ctx_free(ctx);
 1744|    229|  *pcf = result ? NULL : cf;
  ------------------
  |  Branch (1744:10): [True: 0, False: 229]
  ------------------
 1745|    229|  return result;
 1746|    229|}
vtls.c:cf_ctx_new:
  517|    229|{
  518|    229|  struct ssl_connect_data *ctx;
  519|       |
  520|    229|  (void)data;
  521|    229|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1480|    229|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  522|    229|  if(!ctx)
  ------------------
  |  Branch (522:6): [True: 0, False: 229]
  ------------------
  523|      0|    return NULL;
  524|       |
  525|    229|  ctx->ssl_impl = Curl_ssl;
  526|    229|  ctx->alpn = alpn;
  527|    229|  Curl_bufq_init2(&ctx->earlydata, CURL_SSL_EARLY_MAX, 1, BUFQ_OPT_NO_SPARES);
  ------------------
  |  |  110|    229|#define CURL_SSL_EARLY_MAX      (64 * 1024)
  ------------------
                Curl_bufq_init2(&ctx->earlydata, CURL_SSL_EARLY_MAX, 1, BUFQ_OPT_NO_SPARES);
  ------------------
  |  |  115|    229|#define BUFQ_OPT_NO_SPARES   (1 << 1)
  ------------------
  528|    229|  ctx->backend = curlx_calloc(1, ctx->ssl_impl->sizeof_ssl_backend_data);
  ------------------
  |  | 1480|    229|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  529|    229|  if(!ctx->backend) {
  ------------------
  |  Branch (529:6): [True: 0, False: 229]
  ------------------
  530|      0|    curlx_free(ctx);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  531|      0|    return NULL;
  532|      0|  }
  533|    229|  return ctx;
  534|    229|}
vtls.c:alpn_get_spec:
  156|    229|{
  157|    229|  if(!use_alpn)
  ------------------
  |  Branch (157:6): [True: 229, False: 0]
  ------------------
  158|    229|    return NULL;
  159|       |  /* If HTTP/1.0 is the wanted protocol then use ALPN http/1.0 and http/1.1.
  160|       |     This is for compatibility reasons since some HTTP/1.0 servers with old
  161|       |     ALPN implementations understand ALPN http/1.1 but not http/1.0. */
  162|      0|  if(only_http_10 && (wanted & CURL_HTTP_V1x))
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (162:6): [True: 0, False: 0]
  |  Branch (162:22): [True: 0, False: 0]
  ------------------
  163|      0|    return &ALPN_SPEC_H10_H11;
  164|      0|#ifdef USE_HTTP2
  165|      0|  if(wanted & CURL_HTTP_V2x) {
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (165:6): [True: 0, False: 0]
  ------------------
  166|      0|    if(wanted & CURL_HTTP_V1x)
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (166:8): [True: 0, False: 0]
  ------------------
  167|      0|      return (preferred == CURL_HTTP_V1x) ?
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (167:14): [True: 0, False: 0]
  ------------------
  168|      0|        &ALPN_SPEC_H11_H2 : &ALPN_SPEC_H2_H11;
  169|      0|    return &ALPN_SPEC_H2;
  170|      0|  }
  171|       |#else
  172|       |  (void)wanted;
  173|       |  (void)preferred;
  174|       |#endif
  175|      0|  return &ALPN_SPEC_H11;
  176|      0|}

Curl_ssl_peer_key_build:
  185|    229|{
  186|    229|  struct dynbuf buf;
  187|    229|  size_t key_len;
  188|    229|  bool is_local = FALSE;
  ------------------
  |  | 1058|    229|#define FALSE false
  ------------------
  189|    229|  CURLcode result;
  190|       |
  191|    229|  *ppeer_key = NULL;
  192|    229|  curlx_dyn_init(&buf, 10 * 1024);
  193|       |
  194|    229|  result = curlx_dyn_addf(&buf, "%s:%d",
  195|    229|                          peer->dest->hostname, peer->dest->port);
  196|    229|  if(result)
  ------------------
  |  Branch (196:6): [True: 2, False: 227]
  ------------------
  197|      2|    goto out;
  198|       |
  199|    227|  switch(peer->transport) {
  200|    227|  case TRNSPRT_TCP:
  ------------------
  |  |  307|    227|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (200:3): [True: 227, False: 0]
  ------------------
  201|    227|    break;
  202|      0|  case TRNSPRT_UDP:
  ------------------
  |  |  308|      0|#define TRNSPRT_UDP  4
  ------------------
  |  Branch (202:3): [True: 0, False: 227]
  ------------------
  203|      0|    result = curlx_dyn_add(&buf, ":UDP");
  204|      0|    break;
  205|      0|  case TRNSPRT_QUIC:
  ------------------
  |  |  309|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (205:3): [True: 0, False: 227]
  ------------------
  206|      0|    result = curlx_dyn_add(&buf, ":QUIC");
  207|      0|    break;
  208|      0|  case TRNSPRT_UNIX:
  ------------------
  |  |  310|      0|#define TRNSPRT_UNIX 6
  ------------------
  |  Branch (208:3): [True: 0, False: 227]
  ------------------
  209|      0|    result = curlx_dyn_add(&buf, ":UNIX");
  210|      0|    break;
  211|      0|  default:
  ------------------
  |  Branch (211:3): [True: 0, False: 227]
  ------------------
  212|      0|    result = curlx_dyn_addf(&buf, ":TRNSPRT-%d", peer->transport);
  213|      0|    break;
  214|    227|  }
  215|    227|  if(result)
  ------------------
  |  Branch (215:6): [True: 0, False: 227]
  ------------------
  216|      0|    goto out;
  217|       |
  218|    227|  if(!ssl->verifypeer) {
  ------------------
  |  Branch (218:6): [True: 0, False: 227]
  ------------------
  219|      0|    result = curlx_dyn_add(&buf, ":NO-VRFY-PEER");
  220|      0|    if(result)
  ------------------
  |  Branch (220:8): [True: 0, False: 0]
  ------------------
  221|      0|      goto out;
  222|      0|  }
  223|    227|  if(!ssl->verifyhost) {
  ------------------
  |  Branch (223:6): [True: 0, False: 227]
  ------------------
  224|      0|    result = curlx_dyn_add(&buf, ":NO-VRFY-HOST");
  225|      0|    if(result)
  ------------------
  |  Branch (225:8): [True: 0, False: 0]
  ------------------
  226|      0|      goto out;
  227|      0|  }
  228|    227|  if(ssl->verifystatus) {
  ------------------
  |  Branch (228:6): [True: 0, False: 227]
  ------------------
  229|      0|    result = curlx_dyn_add(&buf, ":VRFY-STATUS");
  230|      0|    if(result)
  ------------------
  |  Branch (230:8): [True: 0, False: 0]
  ------------------
  231|      0|      goto out;
  232|      0|  }
  233|    227|  if(!ssl->verifypeer || !ssl->verifyhost) {
  ------------------
  |  Branch (233:6): [True: 0, False: 227]
  |  Branch (233:26): [True: 0, False: 227]
  ------------------
  234|      0|    if(via_peer) {
  ------------------
  |  Branch (234:8): [True: 0, False: 0]
  ------------------
  235|      0|      result = curlx_dyn_addf(&buf, ":CHOST-%s:CPORT-%u",
  236|      0|                              via_peer->hostname,
  237|      0|                              via_peer->port);
  238|      0|      if(result)
  ------------------
  |  Branch (238:10): [True: 0, False: 0]
  ------------------
  239|      0|        goto out;
  240|      0|    }
  241|      0|  }
  242|       |
  243|    227|  if(ssl->version || ssl->version_max) {
  ------------------
  |  Branch (243:6): [True: 227, False: 0]
  |  Branch (243:22): [True: 0, False: 0]
  ------------------
  244|    227|    result = curlx_dyn_addf(&buf, ":TLSVER-%d-%u", ssl->version,
  245|    227|                            (ssl->version_max >> 16));
  246|    227|    if(result)
  ------------------
  |  Branch (246:8): [True: 2, False: 225]
  ------------------
  247|      2|      goto out;
  248|    227|  }
  249|    225|  if(ssl->ssl_options) {
  ------------------
  |  Branch (249:6): [True: 0, False: 225]
  ------------------
  250|      0|    result = curlx_dyn_addf(&buf, ":TLSOPT-%x", ssl->ssl_options);
  251|      0|    if(result)
  ------------------
  |  Branch (251:8): [True: 0, False: 0]
  ------------------
  252|      0|      goto out;
  253|      0|  }
  254|    225|  if(ssl->cipher_list) {
  ------------------
  |  Branch (254:6): [True: 0, False: 225]
  ------------------
  255|      0|    result = curlx_dyn_addf(&buf, ":CIPHER-%s", ssl->cipher_list);
  256|      0|    if(result)
  ------------------
  |  Branch (256:8): [True: 0, False: 0]
  ------------------
  257|      0|      goto out;
  258|      0|  }
  259|    225|  if(ssl->cipher_list13) {
  ------------------
  |  Branch (259:6): [True: 0, False: 225]
  ------------------
  260|      0|    result = curlx_dyn_addf(&buf, ":CIPHER13-%s", ssl->cipher_list13);
  261|      0|    if(result)
  ------------------
  |  Branch (261:8): [True: 0, False: 0]
  ------------------
  262|      0|      goto out;
  263|      0|  }
  264|    225|  if(ssl->curves) {
  ------------------
  |  Branch (264:6): [True: 0, False: 225]
  ------------------
  265|      0|    result = curlx_dyn_addf(&buf, ":CURVES-%s", ssl->curves);
  266|      0|    if(result)
  ------------------
  |  Branch (266:8): [True: 0, False: 0]
  ------------------
  267|      0|      goto out;
  268|      0|  }
  269|    225|  if(ssl->signature_algorithms) {
  ------------------
  |  Branch (269:6): [True: 0, False: 225]
  ------------------
  270|      0|    result = curlx_dyn_addf(&buf, ":SIGALGS-%s",
  271|      0|                            ssl->signature_algorithms);
  272|      0|    if(result)
  ------------------
  |  Branch (272:8): [True: 0, False: 0]
  ------------------
  273|      0|      goto out;
  274|      0|  }
  275|    225|  if(ssl->verifypeer) {
  ------------------
  |  Branch (275:6): [True: 225, False: 0]
  ------------------
  276|    225|    result = cf_ssl_peer_key_add_path(&buf, "CA", ssl->CAfile, &is_local);
  277|    225|    if(result)
  ------------------
  |  Branch (277:8): [True: 2, False: 223]
  ------------------
  278|      2|      goto out;
  279|    223|    result = cf_ssl_peer_key_add_path(&buf, "CApath", ssl->CApath, &is_local);
  280|    223|    if(result)
  ------------------
  |  Branch (280:8): [True: 1, False: 222]
  ------------------
  281|      1|      goto out;
  282|    222|    result = cf_ssl_peer_key_add_path(&buf, "CRL", ssl->CRLfile, &is_local);
  283|    222|    if(result)
  ------------------
  |  Branch (283:8): [True: 0, False: 222]
  ------------------
  284|      0|      goto out;
  285|    222|    result = cf_ssl_peer_key_add_path(&buf, "Issuer", ssl->issuercert,
  286|    222|                                      &is_local);
  287|    222|    if(result)
  ------------------
  |  Branch (287:8): [True: 0, False: 222]
  ------------------
  288|      0|      goto out;
  289|    222|    if(ssl->ca_info_blob) {
  ------------------
  |  Branch (289:8): [True: 0, False: 222]
  ------------------
  290|      0|      result = cf_ssl_peer_key_add_hash(&buf, "CAInfoBlob", ssl->ca_info_blob);
  291|      0|      if(result)
  ------------------
  |  Branch (291:10): [True: 0, False: 0]
  ------------------
  292|      0|        goto out;
  293|      0|    }
  294|    222|    if(ssl->issuercert_blob) {
  ------------------
  |  Branch (294:8): [True: 0, False: 222]
  ------------------
  295|      0|      result = cf_ssl_peer_key_add_hash(&buf, "IssuerBlob",
  296|      0|                                        ssl->issuercert_blob);
  297|      0|      if(result)
  ------------------
  |  Branch (297:10): [True: 0, False: 0]
  ------------------
  298|      0|        goto out;
  299|      0|    }
  300|    222|  }
  301|    222|  if(ssl->cert_blob) {
  ------------------
  |  Branch (301:6): [True: 0, False: 222]
  ------------------
  302|      0|    result = cf_ssl_peer_key_add_hash(&buf, "CertBlob", ssl->cert_blob);
  303|      0|    if(result)
  ------------------
  |  Branch (303:8): [True: 0, False: 0]
  ------------------
  304|      0|      goto out;
  305|      0|  }
  306|    222|  if(ssl->pinned_key && ssl->pinned_key[0]) {
  ------------------
  |  Branch (306:6): [True: 0, False: 222]
  |  Branch (306:25): [True: 0, False: 0]
  ------------------
  307|      0|    result = curlx_dyn_addf(&buf, ":Pinned-%s", ssl->pinned_key);
  308|      0|    if(result)
  ------------------
  |  Branch (308:8): [True: 0, False: 0]
  ------------------
  309|      0|      goto out;
  310|      0|  }
  311|       |
  312|    222|  result = cf_ssl_peer_key_add_mtls(&buf, ssl, &is_local);
  313|    222|  if(result)
  ------------------
  |  Branch (313:6): [True: 0, False: 222]
  ------------------
  314|      0|    goto out;
  315|    222|#ifdef USE_TLS_SRP
  316|    222|  if(ssl->username || ssl->password) {
  ------------------
  |  Branch (316:6): [True: 0, False: 222]
  |  Branch (316:23): [True: 0, False: 222]
  ------------------
  317|      0|    result = curlx_dyn_add(&buf, ":SRP-AUTH");
  318|      0|    if(result)
  ------------------
  |  Branch (318:8): [True: 0, False: 0]
  ------------------
  319|      0|      goto out;
  320|      0|  }
  321|    222|#endif
  322|       |
  323|    222|  if(!tls_id || !tls_id[0]) {
  ------------------
  |  Branch (323:6): [True: 0, False: 222]
  |  Branch (323:17): [True: 0, False: 222]
  ------------------
  324|      0|    result = CURLE_FAILED_INIT;
  325|      0|    goto out;
  326|      0|  }
  327|    222|  result = curlx_dyn_addf(&buf, ":IMPL-%s", tls_id);
  328|    222|  if(result)
  ------------------
  |  Branch (328:6): [True: 1, False: 221]
  ------------------
  329|      1|    goto out;
  330|       |
  331|    221|  result = curlx_dyn_addf(&buf, is_local ?
  ------------------
  |  Branch (331:33): [True: 0, False: 221]
  ------------------
  332|    221|                          CURL_SSLS_LOCAL_SUFFIX : CURL_SSLS_GLOBAL_SUFFIX);
  ------------------
  |  |  169|      0|#define CURL_SSLS_LOCAL_SUFFIX     ":L"
  ------------------
                                        CURL_SSLS_LOCAL_SUFFIX : CURL_SSLS_GLOBAL_SUFFIX);
  ------------------
  |  |  170|    221|#define CURL_SSLS_GLOBAL_SUFFIX    ":G"
  ------------------
  333|    221|  if(result)
  ------------------
  |  Branch (333:6): [True: 1, False: 220]
  ------------------
  334|      1|    goto out;
  335|       |
  336|    220|  *ppeer_key = curlx_dyn_take(&buf, &key_len);
  337|       |  /* we added printable char, and dynbuf always null-terminates, no need
  338|       |   * to track length */
  339|       |
  340|    229|out:
  341|    229|  curlx_dyn_free(&buf);
  342|    229|  return result;
  343|    220|}
Curl_ssl_peer_key_make:
  349|    229|{
  350|    229|  struct ssl_primary_config *ssl = Curl_ssl_cf_get_primary_config(cf);
  351|    229|  return Curl_ssl_peer_key_build(ssl, peer, cf->conn->via_peer, tls_id,
  352|    229|                                 ppeer_key);
  353|    229|}
Curl_ssl_session_destroy:
  441|    219|{
  442|    219|  if(s) {
  ------------------
  |  Branch (442:6): [True: 0, False: 219]
  ------------------
  443|       |    /* if in the list, the list destructor takes care of it */
  444|      0|    if(Curl_node_llist(&s->list))
  ------------------
  |  Branch (444:8): [True: 0, False: 0]
  ------------------
  445|      0|      Curl_node_remove(&s->list);
  446|      0|    else {
  447|       |      cf_ssl_scache_session_ldestroy(NULL, s);
  448|      0|    }
  449|      0|  }
  450|    219|}
Curl_ssl_scache_create:
  594|  7.82k|{
  595|  7.82k|  struct Curl_ssl_scache *scache;
  596|  7.82k|  struct Curl_ssl_scache_peer *peers;
  597|  7.82k|  size_t i;
  598|       |
  599|  7.82k|  *pscache = NULL;
  600|  7.82k|  peers = curlx_calloc(max_peers, sizeof(*peers));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  601|  7.82k|  if(!peers)
  ------------------
  |  Branch (601:6): [True: 0, False: 7.82k]
  ------------------
  602|      0|    return CURLE_OUT_OF_MEMORY;
  603|       |
  604|  7.82k|  scache = curlx_calloc(1, sizeof(*scache));
  ------------------
  |  | 1480|  7.82k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  605|  7.82k|  if(!scache) {
  ------------------
  |  Branch (605:6): [True: 0, False: 7.82k]
  ------------------
  606|      0|    curlx_free(peers);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  607|      0|    return CURLE_OUT_OF_MEMORY;
  608|      0|  }
  609|       |
  610|  7.82k|  scache->magic = CURL_SCACHE_MAGIC;
  ------------------
  |  |   67|  7.82k|#define CURL_SCACHE_MAGIC 0x000e1551
  ------------------
  611|  7.82k|  scache->default_lifetime_secs = (24 * 60 * 60); /* 1 day */
  612|  7.82k|  scache->peer_count = max_peers;
  613|  7.82k|  scache->peers = peers;
  614|  7.82k|  scache->age = 1;
  615|   203k|  for(i = 0; i < scache->peer_count; ++i) {
  ------------------
  |  Branch (615:14): [True: 195k, False: 7.82k]
  ------------------
  616|   195k|    scache->peers[i].max_sessions = max_sessions_per_peer;
  617|   195k|    Curl_llist_init(&scache->peers[i].sessions,
  618|   195k|                    cf_ssl_scache_session_ldestroy);
  619|   195k|  }
  620|       |
  621|  7.82k|  *pscache = scache;
  622|  7.82k|  return CURLE_OK;
  623|  7.82k|}
Curl_ssl_scache_destroy:
  626|  7.82k|{
  627|  7.82k|  if(GOOD_SCACHE(scache)) {
  ------------------
  |  |   69|  7.82k|#define GOOD_SCACHE(x) ((x) && (x)->magic == CURL_SCACHE_MAGIC)
  |  |  ------------------
  |  |  |  |   67|  7.82k|#define CURL_SCACHE_MAGIC 0x000e1551
  |  |  ------------------
  |  |  |  Branch (69:25): [True: 7.82k, False: 0]
  |  |  |  Branch (69:32): [True: 7.82k, False: 0]
  |  |  ------------------
  ------------------
  628|  7.82k|    size_t i;
  629|  7.82k|    scache->magic = 0;
  630|   203k|    for(i = 0; i < scache->peer_count; ++i) {
  ------------------
  |  Branch (630:16): [True: 195k, False: 7.82k]
  ------------------
  631|   195k|      cf_ssl_scache_clear_peer(&scache->peers[i]);
  632|   195k|    }
  633|  7.82k|    curlx_free(scache->peers);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  634|  7.82k|    curlx_free(scache);
  ------------------
  |  | 1483|  7.82k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  635|  7.82k|  }
  636|  7.82k|}
Curl_ssl_scache_use:
  639|    219|{
  640|    219|  if(cf_ssl_scache_get(data)) {
  ------------------
  |  Branch (640:6): [True: 219, False: 0]
  ------------------
  641|    219|    struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
  642|    219|    return ssl_config ? ssl_config->primary.cache_session : FALSE;
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
  |  Branch (642:12): [True: 219, False: 0]
  ------------------
  643|    219|  }
  644|      0|  return FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
  645|    219|}
Curl_ssl_scache_lock:
  649|    219|{
  650|    219|  struct Curl_ssl_scache *scache = cf_ssl_scache_get(data);
  651|    219|  if(scache) {
  ------------------
  |  Branch (651:6): [True: 219, False: 0]
  ------------------
  652|    219|    if(CURL_SHARE_ssl_scache(data))
  ------------------
  |  |   85|    219|  ((data)->share &&                                                \
  |  |  ------------------
  |  |  |  Branch (85:4): [True: 0, False: 219]
  |  |  ------------------
  |  |   86|    219|   ((data)->share->specifier & (1 << CURL_LOCK_DATA_SSL_SESSION)))
  |  |  ------------------
  |  |  |  Branch (86:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  653|      0|      Curl_share_lock(data, CURL_LOCK_DATA_SSL_SESSION,
  654|      0|                      CURL_LOCK_ACCESS_SINGLE);
  655|    219|    DEBUGASSERT(!scache->is_locked);
  ------------------
  |  | 1081|    219|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (655:5): [True: 0, False: 219]
  |  Branch (655:5): [True: 219, False: 0]
  ------------------
  656|    219|    scache->is_locked = TRUE;
  ------------------
  |  | 1055|    219|#define TRUE true
  ------------------
  657|    219|  }
  658|    219|}
Curl_ssl_scache_unlock:
  662|    219|{
  663|    219|  struct Curl_ssl_scache *scache = cf_ssl_scache_get(data);
  664|    219|  if(scache) {
  ------------------
  |  Branch (664:6): [True: 219, False: 0]
  ------------------
  665|    219|    DEBUGASSERT(scache->is_locked);
  ------------------
  |  | 1081|    219|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (665:5): [True: 0, False: 219]
  |  Branch (665:5): [True: 219, False: 0]
  ------------------
  666|    219|    scache->is_locked = FALSE;
  ------------------
  |  | 1058|    219|#define FALSE false
  ------------------
  667|    219|    if(CURL_SHARE_ssl_scache(data))
  ------------------
  |  |   85|    219|  ((data)->share &&                                                \
  |  |  ------------------
  |  |  |  Branch (85:4): [True: 0, False: 219]
  |  |  ------------------
  |  |   86|    219|   ((data)->share->specifier & (1 << CURL_LOCK_DATA_SSL_SESSION)))
  |  |  ------------------
  |  |  |  Branch (86:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  668|      0|      Curl_share_unlock(data, CURL_LOCK_DATA_SSL_SESSION);
  669|    219|  }
  670|    219|}
Curl_ssl_scache_return:
  945|    219|{
  946|       |  /* See RFC 8446 C.4:
  947|       |   * "Clients SHOULD NOT reuse a ticket for multiple connections." */
  948|    219|  if(s && s->ietf_tls_id < 0x304)
  ------------------
  |  Branch (948:6): [True: 0, False: 219]
  |  Branch (948:11): [True: 0, False: 0]
  ------------------
  949|      0|    (void)Curl_ssl_scache_put(cf, data, ssl_peer_key, s);
  950|    219|  else
  951|    219|    Curl_ssl_session_destroy(s);
  952|    219|}
Curl_ssl_scache_take:
  958|    219|{
  959|    219|  struct Curl_ssl_scache *scache = cf_ssl_scache_get(data);
  960|    219|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
  961|    219|  struct Curl_ssl_scache_peer *peer = NULL;
  962|    219|  struct Curl_llist_node *n;
  963|    219|  struct Curl_ssl_session *s = NULL;
  964|    219|  CURLcode result;
  965|       |
  966|    219|  *ps = NULL;
  967|    219|  if(!scache)
  ------------------
  |  Branch (967:6): [True: 0, False: 219]
  ------------------
  968|      0|    return CURLE_OK;
  969|       |
  970|    219|  Curl_ssl_scache_lock(data);
  971|    219|  result = cf_ssl_find_peer_by_key(data, scache, ssl_peer_key, conn_config,
  972|    219|                                   &peer);
  973|    219|  if(!result && peer) {
  ------------------
  |  Branch (973:6): [True: 219, False: 0]
  |  Branch (973:17): [True: 0, False: 219]
  ------------------
  974|      0|    cf_scache_peer_remove_expired(peer, (curl_off_t)time(NULL));
  975|      0|    n = Curl_llist_head(&peer->sessions);
  976|      0|    if(n) {
  ------------------
  |  Branch (976:8): [True: 0, False: 0]
  ------------------
  977|      0|      s = Curl_node_take_elem(n);
  978|      0|      (scache->age)++;            /* increase general age */
  979|      0|      peer->age = scache->age; /* set this as used in this age */
  980|      0|    }
  981|      0|  }
  982|    219|  if(s) {
  ------------------
  |  Branch (982:6): [True: 0, False: 219]
  ------------------
  983|      0|    *ps = s;
  984|      0|    CURL_TRC_SSLS(data, "took session for %s [proto=0x%x, "
  ------------------
  |  |  194|      0|  do {                                                    \
  |  |  195|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ssls)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|      0|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (196:27): [True: 0, False: 0]
  |  |  ------------------
  |  |  197|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  985|      0|                  "alpn=%s, earlydata=%zu, quic_tp=%s], %zu sessions remain",
  986|      0|                  ssl_peer_key, s->ietf_tls_id, s->alpn,
  987|      0|                  s->earlydata_max, s->quic_tp ? "yes" : "no",
  988|      0|                  Curl_llist_count(&peer->sessions));
  989|      0|  }
  990|    219|  else {
  991|    219|    CURL_TRC_SSLS(data, "no cached session for %s", ssl_peer_key);
  ------------------
  |  |  194|    219|  do {                                                    \
  |  |  195|    219|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ssls)) \
  |  |  ------------------
  |  |  |  |  326|    219|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    438|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 219, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 219]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    438|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    219|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|    219|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  197|    219|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 219]
  |  |  ------------------
  ------------------
  992|    219|  }
  993|    219|  Curl_ssl_scache_unlock(data);
  994|    219|  return result;
  995|    219|}
vtls_scache.c:cf_ssl_peer_key_add_path:
   75|    892|{
   76|    892|  if(path && path[0]) {
  ------------------
  |  Branch (76:6): [True: 448, False: 444]
  |  Branch (76:14): [True: 448, False: 0]
  ------------------
   77|       |    /* We try to add absolute paths, so that the session key can stay valid
   78|       |     * when used in another process with different CWD. When a path does not
   79|       |     * exist, this does not work. Then, we add the path as is. */
   80|       |#ifdef _WIN32
   81|       |    char abspath[_MAX_PATH];
   82|       |    if(_fullpath(abspath, path, _MAX_PATH))
   83|       |      return curlx_dyn_addf(buf, ":%s-%s", name, abspath);
   84|       |    *is_local = TRUE;
   85|       |#elif defined(HAVE_REALPATH)
   86|    448|    if(path[0] != '/') {
  ------------------
  |  Branch (86:8): [True: 0, False: 448]
  ------------------
   87|      0|      char *abspath = realpath(path, NULL);
   88|      0|      if(abspath) {
  ------------------
  |  Branch (88:10): [True: 0, False: 0]
  ------------------
   89|      0|        CURLcode result = curlx_dyn_addf(buf, ":%s-%s", name, abspath);
   90|       |        /* !checksrc! disable BANNEDFUNC 1 */
   91|      0|        free(abspath); /* allocated by libc, free without memdebug */
   92|      0|        return result;
   93|      0|      }
   94|      0|      *is_local = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
   95|      0|    }
   96|    448|#endif
   97|    448|    return curlx_dyn_addf(buf, ":%s-%s", name, path);
   98|    448|  }
   99|    444|  return CURLE_OK;
  100|    892|}
vtls_scache.c:cf_ssl_peer_key_add_mtls:
  130|    222|{
  131|    222|  CURLcode result = CURLE_OK;
  132|    222|  if(ssl->clientcert && ssl->clientcert[0]) {
  ------------------
  |  Branch (132:6): [True: 0, False: 222]
  |  Branch (132:25): [True: 0, False: 0]
  ------------------
  133|      0|    result = cf_ssl_peer_key_add_path(buf, "CCERT", ssl->clientcert, is_local);
  134|      0|    if(result)
  ------------------
  |  Branch (134:8): [True: 0, False: 0]
  ------------------
  135|      0|      goto out;
  136|      0|  }
  137|    222|  if(ssl->key && ssl->key[0]) {
  ------------------
  |  Branch (137:6): [True: 0, False: 222]
  |  Branch (137:18): [True: 0, False: 0]
  ------------------
  138|      0|    result = cf_ssl_peer_key_add_path(buf, "KEY", ssl->key, is_local);
  139|      0|    if(result)
  ------------------
  |  Branch (139:8): [True: 0, False: 0]
  ------------------
  140|      0|      goto out;
  141|      0|  }
  142|    222|  if(ssl->key_blob) {
  ------------------
  |  Branch (142:6): [True: 0, False: 222]
  ------------------
  143|      0|    result = cf_ssl_peer_key_add_hash(buf, "KEYBlob", ssl->key_blob);
  144|      0|    if(result)
  ------------------
  |  Branch (144:8): [True: 0, False: 0]
  ------------------
  145|      0|      goto out;
  146|      0|  }
  147|    222|  if(ssl->cert_type && ssl->cert_type[0]) {
  ------------------
  |  Branch (147:6): [True: 0, False: 222]
  |  Branch (147:24): [True: 0, False: 0]
  ------------------
  148|      0|    size_t i;
  149|      0|    result = curlx_dyn_add(buf, ":CT-");
  150|      0|    for(i = 0; !result && ssl->cert_type[i]; i++) {
  ------------------
  |  Branch (150:16): [True: 0, False: 0]
  |  Branch (150:27): [True: 0, False: 0]
  ------------------
  151|      0|      char c = Curl_raw_toupper(ssl->cert_type[i]);
  152|      0|      result = curlx_dyn_addn(buf, &c, 1);
  153|      0|    }
  154|      0|    if(result)
  ------------------
  |  Branch (154:8): [True: 0, False: 0]
  ------------------
  155|      0|      goto out;
  156|      0|  }
  157|    222|  if(ssl->key_type && ssl->key_type[0]) {
  ------------------
  |  Branch (157:6): [True: 0, False: 222]
  |  Branch (157:23): [True: 0, False: 0]
  ------------------
  158|      0|    size_t i;
  159|      0|    result = curlx_dyn_add(buf, ":KT-");
  160|      0|    for(i = 0; !result && ssl->key_type[i]; i++) {
  ------------------
  |  Branch (160:16): [True: 0, False: 0]
  |  Branch (160:27): [True: 0, False: 0]
  ------------------
  161|      0|      char c = Curl_raw_toupper(ssl->key_type[i]);
  162|      0|      result = curlx_dyn_addn(buf, &c, 1);
  163|      0|    }
  164|      0|  }
  165|    222|out:
  166|    222|  return result;
  167|    222|}
vtls_scache.c:cf_ssl_scache_clear_peer:
  453|   195k|{
  454|   195k|  Curl_llist_destroy(&peer->sessions, NULL);
  455|   195k|  if(peer->sobj) {
  ------------------
  |  Branch (455:6): [True: 0, False: 195k]
  ------------------
  456|      0|    DEBUGASSERT(peer->sobj_free);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (456:5): [True: 0, False: 0]
  |  Branch (456:5): [True: 0, False: 0]
  ------------------
  457|      0|    if(peer->sobj_free)
  ------------------
  |  Branch (457:8): [True: 0, False: 0]
  ------------------
  458|      0|      peer->sobj_free(peer->sobj);
  459|      0|    peer->sobj = NULL;
  460|      0|  }
  461|   195k|  peer->sobj_free = NULL;
  462|   195k|  curlx_safefree(peer->clientcert);
  ------------------
  |  | 1327|   195k|  do {                      \
  |  | 1328|   195k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|   195k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|   195k|    (ptr) = NULL;           \
  |  | 1330|   195k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 195k]
  |  |  ------------------
  ------------------
  463|   195k|  curlx_safefree(peer->key_passwd);
  ------------------
  |  | 1327|   195k|  do {                      \
  |  | 1328|   195k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|   195k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|   195k|    (ptr) = NULL;           \
  |  | 1330|   195k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 195k]
  |  |  ------------------
  ------------------
  464|   195k|#ifdef USE_TLS_SRP
  465|   195k|  curlx_safefree(peer->srp_username);
  ------------------
  |  | 1327|   195k|  do {                      \
  |  | 1328|   195k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|   195k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|   195k|    (ptr) = NULL;           \
  |  | 1330|   195k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 195k]
  |  |  ------------------
  ------------------
  466|   195k|  curlx_safefree(peer->srp_password);
  ------------------
  |  | 1327|   195k|  do {                      \
  |  | 1328|   195k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|   195k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|   195k|    (ptr) = NULL;           \
  |  | 1330|   195k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 195k]
  |  |  ------------------
  ------------------
  467|   195k|#endif
  468|   195k|  curlx_safefree(peer->ssl_peer_key);
  ------------------
  |  | 1327|   195k|  do {                      \
  |  | 1328|   195k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1483|   195k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1329|   195k|    (ptr) = NULL;           \
  |  | 1330|   195k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1330:11): [Folded, False: 195k]
  |  |  ------------------
  ------------------
  469|   195k|  peer->age = 0;
  470|       |  peer->hmac_set = FALSE;
  ------------------
  |  | 1058|   195k|#define FALSE false
  ------------------
  471|   195k|}
vtls_scache.c:cf_ssl_scache_get:
  365|    876|{
  366|    876|  struct Curl_ssl_scache *scache = NULL;
  367|       |  /* If a share is present, its ssl_scache has preference over the multi */
  368|    876|  if(data->share && data->share->ssl_scache)
  ------------------
  |  Branch (368:6): [True: 0, False: 876]
  |  Branch (368:21): [True: 0, False: 0]
  ------------------
  369|      0|    scache = data->share->ssl_scache;
  370|    876|  else if(data->multi && data->multi->ssl_scache)
  ------------------
  |  Branch (370:11): [True: 876, False: 0]
  |  Branch (370:26): [True: 876, False: 0]
  ------------------
  371|    876|    scache = data->multi->ssl_scache;
  372|    876|  if(scache && !GOOD_SCACHE(scache)) {
  ------------------
  |  |   69|    876|#define GOOD_SCACHE(x) ((x) && (x)->magic == CURL_SCACHE_MAGIC)
  |  |  ------------------
  |  |  |  |   67|    876|#define CURL_SCACHE_MAGIC 0x000e1551
  |  |  ------------------
  |  |  |  Branch (69:25): [True: 876, False: 0]
  |  |  |  Branch (69:32): [True: 876, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (372:6): [True: 876, False: 0]
  ------------------
  373|      0|    failf(data, "transfer would use an invalid scache at %p, denied",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  374|      0|          (void *)scache);
  375|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (375:5): [Folded, False: 0]
  |  Branch (375:5): [Folded, False: 0]
  ------------------
  376|      0|    return NULL;
  377|      0|  }
  378|    876|  return scache;
  379|    876|}
vtls_scache.c:cf_ssl_find_peer_by_key:
  701|    219|{
  702|    219|  size_t i, peer_key_len = 0;
  703|    219|  CURLcode result = CURLE_OK;
  704|       |
  705|    219|  *ppeer = NULL;
  706|    219|  if(!GOOD_SCACHE(scache)) {
  ------------------
  |  |   69|    219|#define GOOD_SCACHE(x) ((x) && (x)->magic == CURL_SCACHE_MAGIC)
  |  |  ------------------
  |  |  |  |   67|    219|#define CURL_SCACHE_MAGIC 0x000e1551
  |  |  ------------------
  |  |  |  Branch (69:25): [True: 219, False: 0]
  |  |  |  Branch (69:32): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  707|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  708|      0|  }
  709|       |
  710|    219|  CURL_TRC_SSLS(data, "find peer slot for %s among %zu slots",
  ------------------
  |  |  194|    219|  do {                                                    \
  |  |  195|    219|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ssls)) \
  |  |  ------------------
  |  |  |  |  326|    219|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    438|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 219, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 219]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    438|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    219|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|    219|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  197|    219|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 219]
  |  |  ------------------
  ------------------
  711|    219|                ssl_peer_key, scache->peer_count);
  712|       |
  713|       |  /* check for entries with known peer_key */
  714|  5.69k|  for(i = 0; scache && i < scache->peer_count; i++) {
  ------------------
  |  Branch (714:14): [True: 5.69k, False: 0]
  |  Branch (714:24): [True: 5.47k, False: 219]
  ------------------
  715|  5.47k|    if(scache->peers[i].ssl_peer_key &&
  ------------------
  |  Branch (715:8): [True: 0, False: 5.47k]
  ------------------
  716|      0|       curl_strequal(ssl_peer_key, scache->peers[i].ssl_peer_key) &&
  ------------------
  |  Branch (716:8): [True: 0, False: 0]
  ------------------
  717|      0|       cf_ssl_scache_match_auth(&scache->peers[i], conn_config)) {
  ------------------
  |  Branch (717:8): [True: 0, False: 0]
  ------------------
  718|       |      /* yes, we have a cached session for this! */
  719|      0|      *ppeer = &scache->peers[i];
  720|      0|      goto out;
  721|      0|    }
  722|  5.47k|  }
  723|       |  /* check for entries with HMAC set but no known peer_key */
  724|  5.69k|  for(i = 0; scache && i < scache->peer_count; i++) {
  ------------------
  |  Branch (724:14): [True: 5.69k, False: 0]
  |  Branch (724:24): [True: 5.47k, False: 219]
  ------------------
  725|  5.47k|    if(!scache->peers[i].ssl_peer_key &&
  ------------------
  |  Branch (725:8): [True: 5.47k, False: 0]
  ------------------
  726|  5.47k|       scache->peers[i].hmac_set &&
  ------------------
  |  Branch (726:8): [True: 0, False: 5.47k]
  ------------------
  727|      0|       cf_ssl_scache_match_auth(&scache->peers[i], conn_config)) {
  ------------------
  |  Branch (727:8): [True: 0, False: 0]
  ------------------
  728|       |      /* possible entry with unknown peer_key, check hmac */
  729|      0|      unsigned char my_hmac[CURL_SHA256_DIGEST_LENGTH];
  730|      0|      if(!peer_key_len) /* we are lazy */
  ------------------
  |  Branch (730:10): [True: 0, False: 0]
  ------------------
  731|      0|        peer_key_len = strlen(ssl_peer_key);
  732|      0|      result = Curl_hmacit(&Curl_HMAC_SHA256,
  733|      0|                           scache->peers[i].key_salt,
  734|      0|                           sizeof(scache->peers[i].key_salt),
  735|      0|                           (const unsigned char *)ssl_peer_key,
  736|      0|                           peer_key_len,
  737|      0|                           my_hmac);
  738|      0|      if(result)
  ------------------
  |  Branch (738:10): [True: 0, False: 0]
  ------------------
  739|      0|        goto out;
  740|      0|      if(!memcmp(scache->peers[i].key_hmac, my_hmac, sizeof(my_hmac))) {
  ------------------
  |  Branch (740:10): [True: 0, False: 0]
  ------------------
  741|       |        /* remember peer_key for future lookups */
  742|      0|        CURL_TRC_SSLS(data, "peer entry %zu key recovered: %s",
  ------------------
  |  |  194|      0|  do {                                                    \
  |  |  195|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ssls)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|      0|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  197|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  743|      0|                      i, ssl_peer_key);
  744|      0|        scache->peers[i].ssl_peer_key = curlx_strdup(ssl_peer_key);
  ------------------
  |  | 1477|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  745|      0|        if(!scache->peers[i].ssl_peer_key) {
  ------------------
  |  Branch (745:12): [True: 0, False: 0]
  ------------------
  746|      0|          result = CURLE_OUT_OF_MEMORY;
  747|      0|          goto out;
  748|      0|        }
  749|      0|        cf_ssl_cache_peer_update(&scache->peers[i]);
  750|      0|        *ppeer = &scache->peers[i];
  751|      0|        goto out;
  752|      0|      }
  753|      0|    }
  754|  5.47k|  }
  755|    219|  CURL_TRC_SSLS(data, "peer not found for %s", ssl_peer_key);
  ------------------
  |  |  194|    219|  do {                                                    \
  |  |  195|    219|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ssls)) \
  |  |  ------------------
  |  |  |  |  326|    219|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    438|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 219, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 219]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    438|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    219|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|    219|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  197|    219|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 219]
  |  |  ------------------
  ------------------
  756|    219|out:
  757|    219|  return result;
  758|    219|}

Curl_ws_request:
 1246|  1.34k|{
 1247|  1.34k|  unsigned int i;
 1248|  1.34k|  CURLcode result = CURLE_OK;
 1249|  1.34k|  uint8_t rand[16];
 1250|  1.34k|  char *randstr;
 1251|  1.34k|  size_t randlen;
 1252|  1.34k|  char keyval[40];
 1253|  1.34k|  struct SingleRequest *k = &data->req;
 1254|  1.34k|  struct wsfield heads[] = {
 1255|  1.34k|    {
 1256|       |      /* The request MUST contain an |Upgrade| header field whose value
 1257|       |         MUST include the "websocket" keyword. */
 1258|  1.34k|      "Upgrade", "websocket"
 1259|  1.34k|    },
 1260|  1.34k|    {
 1261|       |      /* The request MUST include a header field with the name
 1262|       |         |Sec-WebSocket-Version|. The value of this header field MUST be
 1263|       |         13. */
 1264|  1.34k|      "Sec-WebSocket-Version", "13",
 1265|  1.34k|    },
 1266|  1.34k|    {
 1267|       |      /* The request MUST include a header field with the name
 1268|       |         |Sec-WebSocket-Key|. The value of this header field MUST be a nonce
 1269|       |         consisting of a randomly selected 16-byte value that has been
 1270|       |         base64-encoded (see Section 4 of [RFC4648]). The nonce MUST be
 1271|       |         selected randomly for each connection. */
 1272|  1.34k|      "Sec-WebSocket-Key", NULL,
 1273|  1.34k|    }
 1274|  1.34k|  };
 1275|  1.34k|  heads[2].val = &keyval[0];
 1276|       |
 1277|       |  /* 16 bytes random */
 1278|  1.34k|  result = Curl_rand(data, rand, sizeof(rand));
  ------------------
  |  |   33|  1.34k|#define Curl_rand(a, b, c) Curl_rand_bytes(a, TRUE, b, c)
  |  |  ------------------
  |  |  |  | 1055|  1.34k|#define TRUE true
  |  |  ------------------
  ------------------
 1279|  1.34k|  if(result)
  ------------------
  |  Branch (1279:6): [True: 0, False: 1.34k]
  ------------------
 1280|      0|    return result;
 1281|  1.34k|  result = curlx_base64_encode(rand, sizeof(rand), &randstr, &randlen);
 1282|  1.34k|  if(result)
  ------------------
  |  Branch (1282:6): [True: 0, False: 1.34k]
  ------------------
 1283|      0|    return result;
 1284|  1.34k|  DEBUGASSERT(randlen < sizeof(keyval));
  ------------------
  |  | 1081|  1.34k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1284:3): [True: 0, False: 1.34k]
  |  Branch (1284:3): [True: 1.34k, False: 0]
  ------------------
 1285|  1.34k|  if(randlen >= sizeof(keyval)) {
  ------------------
  |  Branch (1285:6): [True: 0, False: 1.34k]
  ------------------
 1286|      0|    curlx_free(randstr);
  ------------------
  |  | 1483|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1287|      0|    return CURLE_FAILED_INIT;
 1288|      0|  }
 1289|  1.34k|  curlx_strcopy(keyval, sizeof(keyval), randstr, randlen);
 1290|  1.34k|  curlx_free(randstr);
  ------------------
  |  | 1483|  1.34k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1291|  5.39k|  for(i = 0; !result && (i < CURL_ARRAYSIZE(heads)); i++) {
  ------------------
  |  | 1294|  5.39k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (1291:14): [True: 5.39k, False: 0]
  |  Branch (1291:25): [True: 4.04k, False: 1.34k]
  ------------------
 1292|  4.04k|    if(!Curl_checkheaders(data, heads[i].name, strlen(heads[i].name))) {
  ------------------
  |  Branch (1292:8): [True: 4.04k, False: 0]
  ------------------
 1293|  4.04k|      result = curlx_dyn_addf(req, "%s: %s\r\n", heads[i].name, heads[i].val);
 1294|  4.04k|    }
 1295|  4.04k|  }
 1296|  1.34k|  data->state.http_hd_upgrade = TRUE;
  ------------------
  |  | 1055|  1.34k|#define TRUE true
  ------------------
 1297|  1.34k|  k->upgr101 = UPGR101_WS;
 1298|       |  data->conn->bits.upgrade_in_progress = TRUE;
  ------------------
  |  | 1055|  1.34k|#define TRUE true
  ------------------
 1299|  1.34k|  return result;
 1300|  1.34k|}
Curl_ws_accept:
 1318|  1.34k|{
 1319|  1.34k|  struct SingleRequest *k = &data->req;
 1320|  1.34k|  struct websocket *ws;
 1321|  1.34k|  struct Curl_cwriter *ws_dec_writer = NULL;
 1322|  1.34k|  struct Curl_creader *ws_enc_reader = NULL;
 1323|  1.34k|  CURLcode result;
 1324|       |
 1325|  1.34k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1081|  1.34k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1325:3): [True: 0, False: 1.34k]
  |  Branch (1325:3): [True: 1.34k, False: 0]
  ------------------
 1326|  1.34k|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  1.34k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1327|  1.34k|  if(!ws) {
  ------------------
  |  Branch (1327:6): [True: 1.34k, False: 0]
  ------------------
 1328|  1.34k|    size_t chunk_size = WS_CHUNK_SIZE;
  ------------------
  |  |   73|  1.34k|#define WS_CHUNK_SIZE  65535
  ------------------
 1329|  1.34k|    ws = curlx_calloc(1, sizeof(*ws));
  ------------------
  |  | 1480|  1.34k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1330|  1.34k|    if(!ws)
  ------------------
  |  Branch (1330:8): [True: 0, False: 1.34k]
  ------------------
 1331|      0|      return CURLE_OUT_OF_MEMORY;
 1332|  1.34k|#ifdef DEBUGBUILD
 1333|  1.34k|    {
 1334|  1.34k|      const char *p = getenv("CURL_WS_CHUNK_SIZE");
 1335|  1.34k|      if(p) {
  ------------------
  |  Branch (1335:10): [True: 0, False: 1.34k]
  ------------------
 1336|      0|        curl_off_t l;
 1337|      0|        if(!curlx_str_number(&p, &l, 1 * 1024 * 1024))
  ------------------
  |  Branch (1337:12): [True: 0, False: 0]
  ------------------
 1338|      0|          chunk_size = (size_t)l;
 1339|      0|      }
 1340|  1.34k|    }
 1341|  1.34k|#endif
 1342|  1.34k|    CURL_TRC_WS(data, "WS, using chunk size %zu", chunk_size);
  ------------------
  |  |  208|  1.34k|  do {                                                  \
  |  |  209|  1.34k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  1.34k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  2.69k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.34k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.34k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  2.69k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  1.34k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.34k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  1.34k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.34k]
  |  |  ------------------
  ------------------
 1343|  1.34k|    Curl_bufq_init2(&ws->recvbuf, chunk_size, WS_CHUNK_COUNT,
  ------------------
  |  |   74|  1.34k|#define WS_CHUNK_COUNT 2
  ------------------
 1344|  1.34k|                    BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|  1.34k|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
 1345|  1.34k|    Curl_bufq_init2(&ws->sendbuf, chunk_size, WS_CHUNK_COUNT,
  ------------------
  |  |   74|  1.34k|#define WS_CHUNK_COUNT 2
  ------------------
 1346|  1.34k|                    BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|  1.34k|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
 1347|  1.34k|    ws_dec_init(&ws->dec);
 1348|  1.34k|    ws_enc_init(&ws->enc);
 1349|  1.34k|    result = Curl_conn_meta_set(data->conn, CURL_META_PROTO_WS_CONN,
  ------------------
  |  |   33|  1.34k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1350|  1.34k|                                ws, ws_conn_dtor);
 1351|  1.34k|    if(result)
  ------------------
  |  Branch (1351:8): [True: 0, False: 1.34k]
  ------------------
 1352|      0|      return result;
 1353|  1.34k|  }
 1354|      0|  else {
 1355|      0|    Curl_bufq_reset(&ws->recvbuf);
 1356|      0|    ws_dec_reset(&ws->dec);
 1357|      0|    ws_enc_reset(&ws->enc);
 1358|      0|  }
 1359|       |  /* Verify the Sec-WebSocket-Accept response.
 1360|       |
 1361|       |     The sent value is the base64 encoded version of a SHA-1 hash done on the
 1362|       |     |Sec-WebSocket-Key| header field concatenated with
 1363|       |     the string "258EAFA5-E914-47DA-95CA-C5AB0DC85B11".
 1364|       |  */
 1365|       |
 1366|       |  /* If the response includes a |Sec-WebSocket-Extensions| header field and
 1367|       |     this header field indicates the use of an extension that was not present
 1368|       |     in the client's handshake (the server has indicated an extension not
 1369|       |     requested by the client), the client MUST Fail the WebSocket Connection.
 1370|       |  */
 1371|       |
 1372|       |  /* If the response includes a |Sec-WebSocket-Protocol| header field
 1373|       |     and this header field indicates the use of a subprotocol that was
 1374|       |     not present in the client's handshake (the server has indicated a
 1375|       |     subprotocol not requested by the client), the client MUST Fail
 1376|       |     the WebSocket Connection. */
 1377|       |
 1378|  1.34k|  infof(data, "[WS] Received 101, switch to WebSocket");
  ------------------
  |  |  143|  1.34k|  do {                               \
  |  |  144|  1.34k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|  1.34k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 1.34k, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.34k]
  |  |  |  |  ------------------
  |  |  |  |  320|  1.34k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  1.34k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  1.34k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1.34k]
  |  |  ------------------
  ------------------
 1379|       |
 1380|       |  /* Install our client writer that decodes WS frames payload */
 1381|  1.34k|  result = Curl_cwriter_create(&ws_dec_writer, data, &ws_cw_decode,
 1382|  1.34k|                               CURL_CW_CONTENT_DECODE);
 1383|  1.34k|  if(result)
  ------------------
  |  Branch (1383:6): [True: 0, False: 1.34k]
  ------------------
 1384|      0|    goto out;
 1385|  1.34k|  result = Curl_cwriter_add(data, ws_dec_writer);
 1386|  1.34k|  if(result)
  ------------------
  |  Branch (1386:6): [True: 0, False: 1.34k]
  ------------------
 1387|      0|    goto out;
 1388|  1.34k|  ws_dec_writer = NULL; /* owned by transfer now */
 1389|       |
 1390|  1.34k|  k->header = FALSE; /* we will not get more response headers */
  ------------------
  |  | 1058|  1.34k|#define FALSE false
  ------------------
 1391|       |
 1392|  1.34k|  if(data->set.connect_only) {
  ------------------
  |  Branch (1392:6): [True: 390, False: 959]
  ------------------
 1393|    390|    size_t nwritten;
 1394|       |    /* In CONNECT_ONLY setup, the payloads from `mem` need to be received
 1395|       |     * when using `curl_ws_recv` later on after this transfer is already
 1396|       |     * marked as DONE. */
 1397|    390|    result = Curl_bufq_write(&ws->recvbuf, (const uint8_t *)mem,
 1398|    390|                             nread, &nwritten);
 1399|    390|    if(result)
  ------------------
  |  Branch (1399:8): [True: 0, False: 390]
  ------------------
 1400|      0|      goto out;
 1401|    390|    DEBUGASSERT(nread == nwritten);
  ------------------
  |  | 1081|    390|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1401:5): [True: 0, False: 390]
  |  Branch (1401:5): [True: 390, False: 0]
  ------------------
 1402|    390|    CURL_REQ_CLEAR_RECV(data); /* read no more content */
  ------------------
  |  |   49|    390|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|    390|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
 1403|    390|  }
 1404|    959|  else { /* !connect_only */
 1405|    959|    if(data->set.method == HTTPREQ_PUT) {
  ------------------
  |  Branch (1405:8): [True: 88, False: 871]
  ------------------
 1406|     88|      CURL_TRC_WS(data, "UPLOAD set, add ws-encode reader");
  ------------------
  |  |  208|     88|  do {                                                  \
  |  |  209|     88|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|     88|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    176|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 88, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 88]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    176|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     88|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|     88|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|     88|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 88]
  |  |  ------------------
  ------------------
 1407|     88|      result = Curl_creader_set_fread(data, -1);
 1408|     88|      if(result)
  ------------------
  |  Branch (1408:10): [True: 0, False: 88]
  ------------------
 1409|      0|        goto out;
 1410|       |
 1411|     88|      if(!data->set.ws_raw_mode) {
  ------------------
  |  Branch (1411:10): [True: 83, False: 5]
  ------------------
 1412|       |        /* Add our client reader encoding WS BINARY frames */
 1413|     83|        result = Curl_creader_create(&ws_enc_reader, data, &ws_cr_encode,
 1414|     83|                                     CURL_CR_CONTENT_ENCODE);
 1415|     83|        if(result)
  ------------------
  |  Branch (1415:12): [True: 0, False: 83]
  ------------------
 1416|      0|          goto out;
 1417|     83|        result = Curl_creader_add(data, ws_enc_reader);
 1418|     83|        if(result)
  ------------------
  |  Branch (1418:12): [True: 0, False: 83]
  ------------------
 1419|      0|          goto out;
 1420|     83|        ws_enc_reader = NULL; /* owned by transfer now */
 1421|     83|      }
 1422|       |
 1423|       |      /* start over with sending */
 1424|     88|      data->req.eos_read = FALSE;
  ------------------
  |  | 1058|     88|#define FALSE false
  ------------------
 1425|     88|      data->req.upload_done = FALSE;
  ------------------
  |  | 1058|     88|#define FALSE false
  ------------------
 1426|     88|      CURL_REQ_SET_SEND(data);
  ------------------
  |  |   44|     88|#define CURL_REQ_SET_SEND(d)   ((d)->req.io_flags |= REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|     88|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
 1427|     88|    }
 1428|       |
 1429|       |    /* Then pass any additional data to the writers */
 1430|    959|    if(nread) {
  ------------------
  |  Branch (1430:8): [True: 489, False: 470]
  ------------------
 1431|    489|      result = Curl_client_write(data, CLIENTWRITE_BODY, mem, nread);
  ------------------
  |  |   42|    489|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
 1432|    489|      if(result)
  ------------------
  |  Branch (1432:10): [True: 114, False: 375]
  ------------------
 1433|    114|        goto out;
 1434|    489|    }
 1435|    959|  }
 1436|       |
 1437|  1.23k|  k->upgr101 = UPGR101_RECEIVED;
 1438|  1.23k|  k->header = FALSE; /* we will not get more responses */
  ------------------
  |  | 1058|  1.23k|#define FALSE false
  ------------------
 1439|       |
 1440|  1.34k|out:
 1441|  1.34k|  if(ws_dec_writer)
  ------------------
  |  Branch (1441:6): [True: 0, False: 1.34k]
  ------------------
 1442|      0|    Curl_cwriter_free(data, ws_dec_writer);
 1443|  1.34k|  if(ws_enc_reader)
  ------------------
  |  Branch (1443:6): [True: 0, False: 1.34k]
  ------------------
 1444|      0|    Curl_creader_free(data, ws_enc_reader);
 1445|  1.34k|  if(result)
  ------------------
  |  Branch (1445:6): [True: 114, False: 1.23k]
  ------------------
 1446|    114|    CURL_TRC_WS(data, "Curl_ws_accept() failed -> %d", result);
  ------------------
  |  |  208|    114|  do {                                                  \
  |  |  209|    114|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    114|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    228|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 114, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 114]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    228|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    114|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    114|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    114|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 114]
  |  |  ------------------
  ------------------
 1447|  1.23k|  else
 1448|  1.23k|    CURL_TRC_WS(data, "websocket established, %s mode",
  ------------------
  |  |  208|  1.23k|  do {                                                  \
  |  |  209|  1.23k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  1.23k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  2.47k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.23k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.23k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  2.47k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  1.23k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.23k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|  1.23k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.23k]
  |  |  ------------------
  ------------------
 1449|  1.34k|                data->set.connect_only ? "connect-only" : "callback");
 1450|  1.34k|  return result;
 1451|  1.23k|}
curl_ws_recv:
 1533|  4.99k|{
 1534|  4.99k|  struct Curl_easy *data = curl;
 1535|  4.99k|  struct connectdata *conn;
 1536|  4.99k|  struct websocket *ws;
 1537|  4.99k|  struct ws_collect ctx;
 1538|       |
 1539|  4.99k|  *recv = 0;
 1540|  4.99k|  *metap = NULL;
 1541|  4.99k|  if(!GOOD_EASY_HANDLE(data) || (buflen && !buffer))
  ------------------
  |  |  136|  9.98k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  4.99k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  4.99k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 4.99k, False: 0]
  |  |  |  Branch (136:12): [True: 4.99k, False: 0]
  |  |  ------------------
  |  |  137|  9.98k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1541:6): [True: 0, False: 4.99k]
  |  Branch (1541:7): [True: 0, False: 0]
  |  Branch (1541:7): [True: 0, False: 0]
  |  Branch (1541:34): [True: 4.99k, False: 0]
  |  Branch (1541:44): [True: 0, False: 4.99k]
  ------------------
 1542|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1543|       |
 1544|  4.99k|  conn = data->conn;
 1545|  4.99k|  if(!conn) {
  ------------------
  |  Branch (1545:6): [True: 418, False: 4.57k]
  ------------------
 1546|       |    /* Unhappy hack with lifetimes of transfers and connection */
 1547|    418|    if(!data->set.connect_only) {
  ------------------
  |  Branch (1547:8): [True: 28, False: 390]
  ------------------
 1548|     28|      failf(data, "[WS] CONNECT_ONLY is required");
  ------------------
  |  |   62|     28|#define failf Curl_failf
  ------------------
 1549|     28|      return CURLE_UNSUPPORTED_PROTOCOL;
 1550|     28|    }
 1551|       |
 1552|    390|    Curl_getconnectinfo(data, &conn);
 1553|    390|    if(!conn) {
  ------------------
  |  Branch (1553:8): [True: 0, False: 390]
  ------------------
 1554|      0|      failf(data, "[WS] connection not found");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1555|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1556|      0|    }
 1557|    390|  }
 1558|  4.96k|  ws = Curl_conn_meta_get(conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  4.96k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1559|  4.96k|  if(!ws) {
  ------------------
  |  Branch (1559:6): [True: 0, False: 4.96k]
  ------------------
 1560|      0|    failf(data, "[WS] connection is not setup for websocket");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1561|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1562|      0|  }
 1563|       |
 1564|  4.96k|  memset(&ctx, 0, sizeof(ctx));
 1565|  4.96k|  ctx.data = data;
 1566|  4.96k|  ctx.ws = ws;
 1567|  4.96k|  ctx.buffer = buffer;
 1568|  4.96k|  ctx.buflen = buflen;
 1569|       |
 1570|  5.76k|  while(1) {
  ------------------
  |  Branch (1570:9): [True: 5.76k, Folded]
  ------------------
 1571|  5.76k|    CURLcode result;
 1572|       |
 1573|       |    /* receive more when our buffer is empty */
 1574|  5.76k|    if(Curl_bufq_is_empty(&ws->recvbuf)) {
  ------------------
  |  Branch (1574:8): [True: 3.20k, False: 2.55k]
  ------------------
 1575|  3.20k|      size_t n;
 1576|  3.20k|      result = Curl_bufq_slurp(&ws->recvbuf, nw_in_recv, data, &n);
 1577|  3.20k|      if(result)
  ------------------
  |  Branch (1577:10): [True: 1.61k, False: 1.59k]
  ------------------
 1578|  1.61k|        return result;
 1579|  1.59k|      else if(n == 0) {
  ------------------
  |  Branch (1579:15): [True: 0, False: 1.59k]
  ------------------
 1580|       |        /* connection closed */
 1581|      0|        infof(data, "[WS] connection expectedly closed?");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1582|      0|        return CURLE_GOT_NOTHING;
 1583|      0|      }
 1584|  1.59k|      CURL_TRC_WS(data, "curl_ws_recv, added %zu bytes from network",
  ------------------
  |  |  208|  1.59k|  do {                                                  \
  |  |  209|  1.59k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  1.59k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  3.18k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.59k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.59k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  3.18k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  1.59k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.59k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  1.59k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.59k]
  |  |  ------------------
  ------------------
 1585|  1.59k|                  Curl_bufq_len(&ws->recvbuf));
 1586|  1.59k|    }
 1587|       |
 1588|  4.14k|    result = ws_dec_pass(&ws->dec, data, &ws->recvbuf,
 1589|  4.14k|                         ws_client_collect, &ctx);
 1590|  4.14k|    if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (1590:8): [True: 1.01k, False: 3.12k]
  ------------------
 1591|  1.01k|      if(!ctx.written) {
  ------------------
  |  Branch (1591:10): [True: 461, False: 556]
  ------------------
 1592|    461|        ws_dec_info(&ws->dec, data, "need more input");
 1593|    461|        continue;  /* nothing written, try more input */
 1594|    461|      }
 1595|    556|      break;
 1596|  1.01k|    }
 1597|  3.12k|    else if(result) {
  ------------------
  |  Branch (1597:13): [True: 865, False: 2.26k]
  ------------------
 1598|    865|      return result;
 1599|    865|    }
 1600|  2.26k|    else if(ctx.written) {
  ------------------
  |  Branch (1600:13): [True: 1.92k, False: 338]
  ------------------
 1601|       |      /* The decoded frame is passed back to our caller.
 1602|       |       * There are frames like PING were we auto-respond to and
 1603|       |       * that we do not return. For these `ctx.written` is not set. */
 1604|  1.92k|      break;
 1605|  1.92k|    }
 1606|  4.14k|  }
 1607|       |
 1608|       |  /* update frame information to be passed back */
 1609|  2.48k|  update_meta(ws, ctx.frame_age, ctx.frame_flags, ctx.payload_offset,
 1610|  2.48k|              ctx.payload_len, ctx.bufidx);
 1611|  2.48k|  *metap = &ws->recvframe;
 1612|  2.48k|  *recv = ws->recvframe.len;
 1613|  2.48k|  CURL_TRC_WS(data, "curl_ws_recv(len=%zu) -> %zu bytes (frame at %"
  ------------------
  |  |  208|  2.48k|  do {                                                  \
  |  |  209|  2.48k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  2.48k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  4.96k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.48k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.48k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  4.96k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  2.48k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  2.48k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  2.48k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 2.48k]
  |  |  ------------------
  ------------------
 1614|  2.48k|              FMT_OFF_T ", %" FMT_OFF_T " left)",
 1615|  2.48k|              buflen, *recv, ws->recvframe.offset,
 1616|  2.48k|              ws->recvframe.bytesleft);
 1617|       |  /* all's well, try to send any pending control. we do not know
 1618|       |   * when the application will call `curl_ws_send()` again. */
 1619|  2.48k|  if(!data->set.ws_raw_mode && ws->pending.type) {
  ------------------
  |  Branch (1619:6): [True: 2.40k, False: 75]
  |  Branch (1619:32): [True: 0, False: 2.40k]
  ------------------
 1620|      0|    CURLcode r2 = ws_enc_add_pending(data, ws);
 1621|      0|    if(!r2)
  ------------------
  |  Branch (1621:8): [True: 0, False: 0]
  ------------------
 1622|      0|      (void)ws_flush(data, ws, Curl_is_in_callback(data));
 1623|      0|  }
 1624|  2.48k|  return CURLE_OK;
 1625|  4.96k|}
curl_ws_send:
 1772|  2.98k|{
 1773|  2.98k|  struct websocket *ws;
 1774|  2.98k|  const uint8_t *buffer = buffer_arg;
 1775|  2.98k|  CURLcode result = CURLE_OK;
 1776|  2.98k|  struct Curl_easy *data = curl;
 1777|  2.98k|  size_t ndummy;
 1778|  2.98k|  size_t *pnsent = sent ? sent : &ndummy;
  ------------------
  |  Branch (1778:20): [True: 2.98k, False: 0]
  ------------------
 1779|       |
 1780|  2.98k|  if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |  136|  2.98k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  2.98k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  2.98k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 2.98k, False: 0]
  |  |  |  Branch (136:12): [True: 2.98k, False: 0]
  |  |  ------------------
  |  |  137|  2.98k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1780:6): [True: 0, False: 2.98k]
  |  Branch (1780:7): [True: 0, False: 0]
  |  Branch (1780:7): [True: 0, False: 0]
  ------------------
 1781|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1782|  2.98k|  CURL_TRC_WS(data, "curl_ws_send(len=%zu, fragsize=%" FMT_OFF_T
  ------------------
  |  |  208|  2.98k|  do {                                                  \
  |  |  209|  2.98k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  2.98k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.97k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.98k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.98k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.97k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  2.98k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  2.98k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  2.98k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 2.98k]
  |  |  ------------------
  ------------------
 1783|  2.98k|              ", flags=%x), raw=%d",
 1784|  2.98k|              buflen, fragsize, flags, data->set.ws_raw_mode);
 1785|       |
 1786|  2.98k|  *pnsent = 0;
 1787|       |
 1788|  2.98k|  if(!buffer && buflen) {
  ------------------
  |  Branch (1788:6): [True: 0, False: 2.98k]
  |  Branch (1788:17): [True: 0, False: 0]
  ------------------
 1789|      0|    failf(data, "[WS] buffer is NULL when buflen is not");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1790|      0|    result = CURLE_BAD_FUNCTION_ARGUMENT;
 1791|      0|    goto out;
 1792|      0|  }
 1793|       |
 1794|  2.98k|  if(!data->conn && data->set.connect_only) {
  ------------------
  |  Branch (1794:6): [True: 25, False: 2.96k]
  |  Branch (1794:21): [True: 0, False: 25]
  ------------------
 1795|      0|    result = Curl_connect_only_attach(data);
 1796|      0|    if(result)
  ------------------
  |  Branch (1796:8): [True: 0, False: 0]
  ------------------
 1797|      0|      goto out;
 1798|      0|  }
 1799|  2.98k|  if(!data->conn) {
  ------------------
  |  Branch (1799:6): [True: 25, False: 2.96k]
  ------------------
 1800|     25|    failf(data, "[WS] No associated connection");
  ------------------
  |  |   62|     25|#define failf Curl_failf
  ------------------
 1801|     25|    result = CURLE_SEND_ERROR;
 1802|     25|    goto out;
 1803|     25|  }
 1804|  2.96k|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  2.96k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1805|  2.96k|  if(!ws) {
  ------------------
  |  Branch (1805:6): [True: 11, False: 2.94k]
  ------------------
 1806|     11|    failf(data, "[WS] Not a websocket transfer");
  ------------------
  |  |   62|     11|#define failf Curl_failf
  ------------------
 1807|     11|    result = CURLE_SEND_ERROR;
 1808|     11|    goto out;
 1809|     11|  }
 1810|       |
 1811|  2.94k|  if(data->set.ws_raw_mode) {
  ------------------
  |  Branch (1811:6): [True: 288, False: 2.66k]
  ------------------
 1812|       |    /* In raw mode, we write directly to the connection */
 1813|       |    /* try flushing any content still waiting to be sent. */
 1814|    288|    result = ws_flush(data, ws, FALSE);
  ------------------
  |  | 1058|    288|#define FALSE false
  ------------------
 1815|    288|    if(result)
  ------------------
  |  Branch (1815:8): [True: 72, False: 216]
  ------------------
 1816|     72|      goto out;
 1817|       |
 1818|    216|    if(!buffer) {
  ------------------
  |  Branch (1818:8): [True: 0, False: 216]
  ------------------
 1819|      0|      failf(data, "[WS] buffer is NULL in raw mode");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1820|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1821|      0|    }
 1822|    216|    if(!sent) {
  ------------------
  |  Branch (1822:8): [True: 0, False: 216]
  ------------------
 1823|      0|      failf(data, "[WS] sent is NULL in raw mode");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1824|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1825|      0|    }
 1826|    216|    if(fragsize || flags) {
  ------------------
  |  Branch (1826:8): [True: 28, False: 188]
  |  Branch (1826:20): [True: 142, False: 46]
  ------------------
 1827|    170|      failf(data, "[WS] fragsize and flags must be zero in raw mode");
  ------------------
  |  |   62|    170|#define failf Curl_failf
  ------------------
 1828|    170|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1829|    170|    }
 1830|     46|    result = ws_send_raw(data, buffer, buflen, pnsent);
 1831|     46|    goto out;
 1832|    216|  }
 1833|       |
 1834|       |  /* Not RAW mode, we do the frame encoding */
 1835|  2.66k|  result = ws_enc_send(data, ws, buffer, buflen, fragsize, flags, pnsent);
 1836|       |
 1837|  2.81k|out:
 1838|  2.81k|  CURL_TRC_WS(data, "curl_ws_send(len=%zu, fragsize=%" FMT_OFF_T
  ------------------
  |  |  208|  2.81k|  do {                                                  \
  |  |  209|  2.81k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  2.81k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  5.63k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.81k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.81k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  5.63k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  2.81k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  2.81k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  2.81k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 2.81k]
  |  |  ------------------
  ------------------
 1839|  2.81k|              ", flags=%x, raw=%d) -> %d, %zu",
 1840|  2.81k|              buflen, fragsize, flags, data->set.ws_raw_mode, result,
 1841|  2.81k|              *pnsent);
 1842|  2.81k|  return result;
 1843|  2.66k|}
curl_ws_meta:
 1857|  4.15k|{
 1858|       |  /* we only return something for websocket, called from within the callback
 1859|       |     when not using raw mode */
 1860|  4.15k|  struct Curl_easy *data = curl;
 1861|  4.15k|  if(GOOD_EASY_HANDLE(data) && Curl_is_in_callback(data) &&
  ------------------
  |  |  136|  8.30k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  4.15k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  4.15k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:3): [True: 4.15k, False: 0]
  |  |  |  Branch (136:5): [True: 4.15k, False: 0]
  |  |  |  Branch (136:12): [True: 4.15k, False: 0]
  |  |  ------------------
  |  |  137|  8.30k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1861:6): [True: 0, False: 0]
  |  Branch (1861:6): [True: 0, False: 0]
  |  Branch (1861:32): [True: 4.15k, False: 0]
  ------------------
 1862|  4.15k|     data->conn && !data->set.ws_raw_mode) {
  ------------------
  |  Branch (1862:6): [True: 4.15k, False: 0]
  |  Branch (1862:20): [True: 4.03k, False: 111]
  ------------------
 1863|  4.03k|    struct websocket *ws;
 1864|  4.03k|    ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  4.03k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1865|  4.03k|    if(ws)
  ------------------
  |  Branch (1865:8): [True: 3.98k, False: 55]
  ------------------
 1866|  3.98k|      return &ws->recvframe;
 1867|  4.03k|  }
 1868|    166|  return NULL;
 1869|  4.15k|}
curl_ws_start_frame:
 1874|  2.49k|{
 1875|  2.49k|  struct websocket *ws;
 1876|  2.49k|  CURLcode result = CURLE_OK;
 1877|  2.49k|  struct Curl_easy *data = curl;
 1878|       |
 1879|  2.49k|  if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |  136|  2.49k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |  130|  2.49k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1055|  2.49k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (136:5): [True: 2.49k, False: 0]
  |  |  |  Branch (136:12): [True: 2.49k, False: 0]
  |  |  ------------------
  |  |  137|  2.49k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1058|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1879:6): [True: 0, False: 2.49k]
  |  Branch (1879:7): [True: 0, False: 0]
  |  Branch (1879:7): [True: 0, False: 0]
  ------------------
 1880|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1881|       |
 1882|  2.49k|  if(data->set.ws_raw_mode) {
  ------------------
  |  Branch (1882:6): [True: 254, False: 2.23k]
  ------------------
 1883|    254|    failf(data, "cannot curl_ws_start_frame() with CURLWS_RAW_MODE enabled");
  ------------------
  |  |   62|    254|#define failf Curl_failf
  ------------------
 1884|    254|    return CURLE_FAILED_INIT;
 1885|    254|  }
 1886|       |
 1887|  2.23k|  CURL_TRC_WS(data, "curl_ws_start_frame(flags=%x, frame_len=%" FMT_OFF_T,
  ------------------
  |  |  208|  2.23k|  do {                                                  \
  |  |  209|  2.23k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  2.23k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  4.47k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.23k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.23k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  4.47k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  2.23k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  2.23k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  2.23k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 2.23k]
  |  |  ------------------
  ------------------
 1888|  2.23k|              flags, frame_len);
 1889|       |
 1890|  2.23k|  if(!data->conn) {
  ------------------
  |  Branch (1890:6): [True: 21, False: 2.21k]
  ------------------
 1891|     21|    failf(data, "[WS] No associated connection");
  ------------------
  |  |   62|     21|#define failf Curl_failf
  ------------------
 1892|     21|    result = CURLE_SEND_ERROR;
 1893|     21|    goto out;
 1894|     21|  }
 1895|  2.21k|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  2.21k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1896|  2.21k|  if(!ws) {
  ------------------
  |  Branch (1896:6): [True: 0, False: 2.21k]
  ------------------
 1897|      0|    failf(data, "[WS] Not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1898|      0|    result = CURLE_SEND_ERROR;
 1899|      0|    goto out;
 1900|      0|  }
 1901|       |
 1902|  2.21k|  if(ws->enc.payload_remain) {
  ------------------
  |  Branch (1902:6): [True: 289, False: 1.92k]
  ------------------
 1903|    289|    failf(data, "[WS] previous frame not finished");
  ------------------
  |  |   62|    289|#define failf Curl_failf
  ------------------
 1904|    289|    result = CURLE_SEND_ERROR;
 1905|    289|    goto out;
 1906|    289|  }
 1907|       |
 1908|  1.92k|  result = ws_enc_write_head(data, ws, &ws->enc, flags, frame_len,
 1909|  1.92k|                             &ws->sendbuf);
 1910|  1.92k|  if(result)
  ------------------
  |  Branch (1910:6): [True: 576, False: 1.35k]
  ------------------
 1911|    576|    CURL_TRC_WS(data, "curl_start_frame(), error adding frame head %d",
  ------------------
  |  |  208|    576|  do {                                                  \
  |  |  209|    576|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    576|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.15k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 576, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 576]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.15k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    576|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    576|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    576|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 576]
  |  |  ------------------
  ------------------
 1912|  1.92k|                result);
 1913|       |
 1914|  2.23k|out:
 1915|  2.23k|  return result;
 1916|  1.92k|}
ws.c:ws_dec_init:
  356|  1.34k|{
  357|  1.34k|  ws_dec_reset(dec);
  358|  1.34k|}
ws.c:ws_enc_init:
  799|  1.34k|{
  800|  1.34k|  ws_enc_reset(enc);
  801|  1.34k|}
ws.c:ws_conn_dtor:
 1303|  1.34k|{
 1304|  1.34k|  struct websocket *ws = entry;
 1305|  1.34k|  (void)key;
 1306|  1.34k|  (void)klen;
 1307|  1.34k|  Curl_bufq_free(&ws->recvbuf);
 1308|  1.34k|  Curl_bufq_free(&ws->sendbuf);
 1309|  1.34k|  curlx_free(ws);
  ------------------
  |  | 1483|  1.34k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1310|  1.34k|}
ws.c:ws_dec_reset:
  345|  2.35k|{
  346|  2.35k|  dec->frame_age = 0;
  347|  2.35k|  dec->frame_flags = 0;
  348|  2.35k|  dec->payload_offset = 0;
  349|  2.35k|  dec->payload_len = 0;
  350|  2.35k|  dec->head_len = dec->head_total = 0;
  351|  2.35k|  dec->state = WS_DEC_INIT;
  352|  2.35k|  dec->cont_flags = 0;
  353|  2.35k|}
ws.c:ws_enc_reset:
  792|  1.34k|{
  793|  1.34k|  enc->payload_remain = 0;
  794|  1.34k|  enc->xori = 0;
  795|       |  enc->contfragment = FALSE;
  ------------------
  |  | 1058|  1.34k|#define FALSE false
  ------------------
  796|  1.34k|}
ws.c:ws_cw_init:
  596|  1.34k|{
  597|  1.34k|  struct ws_cw_ctx *ctx = writer->ctx;
  598|  1.34k|  (void)data;
  599|  1.34k|  Curl_bufq_init2(&ctx->buf, WS_CHUNK_SIZE, 1, BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |   73|  1.34k|#define WS_CHUNK_SIZE  65535
  ------------------
                Curl_bufq_init2(&ctx->buf, WS_CHUNK_SIZE, 1, BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|  1.34k|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
  600|  1.34k|  return CURLE_OK;
  601|  1.34k|}
ws.c:ws_cw_write:
  716|  2.19k|{
  717|  2.19k|  struct ws_cw_ctx *ctx = writer->ctx;
  718|  2.19k|  struct websocket *ws;
  719|  2.19k|  CURLcode result;
  720|       |
  721|  2.19k|  CURL_TRC_WRITE(data, "ws_cw_write(len=%zu, type=%d)", nbytes, type);
  ------------------
  |  |  158|  2.19k|  do {                                                     \
  |  |  159|  2.19k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  326|  2.19k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  4.39k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.19k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.19k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  4.39k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  2.19k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  2.19k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  2.19k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 2.19k]
  |  |  ------------------
  ------------------
  722|  2.19k|  if(!(type & CLIENTWRITE_BODY) || data->set.ws_raw_mode)
  ------------------
  |  |   42|  2.19k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (722:6): [True: 0, False: 2.19k]
  |  Branch (722:36): [True: 131, False: 2.06k]
  ------------------
  723|    131|    return Curl_cwriter_write(data, writer->next, type, buf, nbytes);
  724|       |
  725|  2.06k|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  2.06k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
  726|  2.06k|  if(!ws) {
  ------------------
  |  Branch (726:6): [True: 0, False: 2.06k]
  ------------------
  727|      0|    failf(data, "[WS] not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  728|      0|    return CURLE_FAILED_INIT;
  729|      0|  }
  730|       |
  731|  2.06k|  if(nbytes) {
  ------------------
  |  Branch (731:6): [True: 1.74k, False: 322]
  ------------------
  732|  1.74k|    size_t nwritten;
  733|  1.74k|    result = Curl_bufq_write(&ctx->buf, (const uint8_t *)buf,
  734|  1.74k|                             nbytes, &nwritten);
  735|  1.74k|    if(result) {
  ------------------
  |  Branch (735:8): [True: 0, False: 1.74k]
  ------------------
  736|      0|      infof(data, "[WS] error adding data to buffer %d", result);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  737|      0|      return result;
  738|      0|    }
  739|  1.74k|  }
  740|       |
  741|  5.52k|  while(!Curl_bufq_is_empty(&ctx->buf)) {
  ------------------
  |  Branch (741:9): [True: 4.87k, False: 657]
  ------------------
  742|  4.87k|    struct ws_cw_dec_ctx pass_ctx;
  743|  4.87k|    pass_ctx.data = data;
  744|  4.87k|    pass_ctx.ws = ws;
  745|  4.87k|    pass_ctx.next_writer = writer->next;
  746|  4.87k|    pass_ctx.cw_type = type;
  747|  4.87k|    result = ws_dec_pass(&ws->dec, data, &ctx->buf,
  748|  4.87k|                         ws_cw_dec_next, &pass_ctx);
  749|  4.87k|    if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (749:8): [True: 1.22k, False: 3.64k]
  ------------------
  750|       |      /* insufficient amount of data, keep it for later.
  751|       |       * we pretend to have written all since we have a copy */
  752|  1.22k|      return CURLE_OK;
  753|  1.22k|    }
  754|  3.64k|    else if(result) {
  ------------------
  |  Branch (754:13): [True: 183, False: 3.46k]
  ------------------
  755|    183|      failf(data, "[WS] decode payload error %d", (int)result);
  ------------------
  |  |   62|    183|#define failf Curl_failf
  ------------------
  756|    183|      return result;
  757|    183|    }
  758|  4.87k|  }
  759|       |
  760|    657|  if((type & CLIENTWRITE_EOS) && !Curl_bufq_is_empty(&ctx->buf)) {
  ------------------
  |  |   49|    657|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (760:6): [True: 322, False: 335]
  |  Branch (760:34): [True: 0, False: 322]
  ------------------
  761|      0|    failf(data, "[WS] decode ending with %zu frame bytes remaining",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  762|      0|          Curl_bufq_len(&ctx->buf));
  763|      0|    return CURLE_RECV_ERROR;
  764|      0|  }
  765|       |
  766|    657|  return CURLE_OK;
  767|    657|}
ws.c:ws_cw_dec_next:
  673|  4.10k|{
  674|  4.10k|  struct ws_cw_dec_ctx *ctx = user_data;
  675|  4.10k|  struct Curl_easy *data = ctx->data;
  676|  4.10k|  struct websocket *ws = ctx->ws;
  677|  4.10k|  bool auto_pong = !data->set.ws_no_auto_pong;
  678|  4.10k|  curl_off_t remain;
  679|  4.10k|  CURLcode result;
  680|       |
  681|  4.10k|  (void)frame_age;
  682|  4.10k|  *pnwritten = 0;
  683|  4.10k|  remain = ws_payload_remain(payload_len, payload_offset, buflen);
  684|  4.10k|  if(remain < 0) {
  ------------------
  |  Branch (684:6): [True: 0, False: 4.10k]
  ------------------
  685|      0|    DEBUGASSERT(0); /* parameter mismatch */
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (685:5): [Folded, False: 0]
  |  Branch (685:5): [Folded, False: 0]
  ------------------
  686|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  687|      0|  }
  688|       |
  689|  4.10k|  if(auto_pong && (frame_flags & CURLWS_PING) && !remain) {
  ------------------
  |  |   44|  3.87k|#define CURLWS_PING       (1 << 4)
  ------------------
  |  Branch (689:6): [True: 3.87k, False: 225]
  |  Branch (689:19): [True: 144, False: 3.73k]
  |  Branch (689:50): [True: 119, False: 25]
  ------------------
  690|       |    /* auto-respond to PINGs, only works for single-frame payloads atm */
  691|    119|    CURL_TRC_WS(data, "auto PONG to [PING payload=%" FMT_OFF_T
  ------------------
  |  |  208|    119|  do {                                                  \
  |  |  209|    119|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    119|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    238|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 119, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 119]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    238|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    119|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    119|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    119|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 119]
  |  |  ------------------
  ------------------
  692|    119|                "/%" FMT_OFF_T "]", payload_offset, payload_len);
  693|       |    /* send back the exact same content as a PONG */
  694|    119|    result = ws_enc_add_cntrl(data, ws, buf, buflen, CURLWS_PONG);
  ------------------
  |  |   60|    119|#define CURLWS_PONG       (1 << 6)
  ------------------
  695|    119|    if(result)
  ------------------
  |  Branch (695:8): [True: 0, False: 119]
  ------------------
  696|      0|      return result;
  697|    119|  }
  698|  3.98k|  else if(buflen || !remain) {
  ------------------
  |  Branch (698:11): [True: 908, False: 3.07k]
  |  Branch (698:21): [True: 3.07k, False: 0]
  ------------------
  699|       |    /* forward the decoded frame to the next client writer. */
  700|  3.98k|    update_meta(ws, frame_age, frame_flags, payload_offset,
  701|  3.98k|                payload_len, buflen);
  702|       |
  703|  3.98k|    result = Curl_cwriter_write(data, ctx->next_writer,
  704|  3.98k|                                (ctx->cw_type | CLIENTWRITE_0LEN),
  ------------------
  |  |   50|  3.98k|#define CLIENTWRITE_0LEN    (1 << 8) /* write even 0-length buffers */
  ------------------
  705|  3.98k|                                (const char *)buf, buflen);
  706|  3.98k|    if(result)
  ------------------
  |  Branch (706:8): [True: 0, False: 3.98k]
  ------------------
  707|      0|      return result;
  708|  3.98k|  }
  709|  4.10k|  *pnwritten = buflen;
  710|  4.10k|  return CURLE_OK;
  711|  4.10k|}
ws.c:ws_payload_remain:
  657|  6.93k|{
  658|  6.93k|  curl_off_t buffered, remain = payload_total - payload_offset;
  659|  6.93k|  if((payload_total < 0) || (payload_offset < 0) || (remain < 0))
  ------------------
  |  Branch (659:6): [True: 0, False: 6.93k]
  |  Branch (659:29): [True: 0, False: 6.93k]
  |  Branch (659:53): [True: 0, False: 6.93k]
  ------------------
  660|      0|    return -1;
  661|  6.93k|  buffered = curlx_uztoso(payload_buffered);
  662|  6.93k|  if(remain < buffered)
  ------------------
  |  Branch (662:6): [True: 0, False: 6.93k]
  ------------------
  663|      0|    return -1;
  664|  6.93k|  return remain - buffered;
  665|  6.93k|}
ws.c:ws_enc_add_cntrl:
  634|    457|{
  635|    457|  DEBUGASSERT(plen <= WS_MAX_CNTRL_LEN);
  ------------------
  |  | 1081|    457|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (635:3): [True: 0, False: 457]
  |  Branch (635:3): [True: 457, False: 0]
  ------------------
  636|    457|  if(plen > WS_MAX_CNTRL_LEN)
  ------------------
  |  |  107|    457|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (636:6): [True: 0, False: 457]
  ------------------
  637|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  638|       |
  639|       |  /* Overwrite any pending frame with the new one, we keep
  640|       |   * only one. */
  641|    457|  ws->pending.type = frame_type;
  642|    457|  ws->pending.payload_len = plen;
  643|    457|  memcpy(ws->pending.payload, payload, plen);
  644|       |
  645|    457|  if(!ws->enc.payload_remain) { /* not in the middle of another frame */
  ------------------
  |  Branch (645:6): [True: 457, False: 0]
  ------------------
  646|    457|    CURLcode result = ws_enc_add_pending(data, ws);
  647|    457|    if(!result)
  ------------------
  |  Branch (647:8): [True: 457, False: 0]
  ------------------
  648|    457|      (void)ws_flush(data, ws, Curl_is_in_callback(data));
  649|    457|    return result;
  650|    457|  }
  651|      0|  return CURLE_OK;
  652|    457|}
ws.c:ws_cw_close:
  604|  1.34k|{
  605|  1.34k|  struct ws_cw_ctx *ctx = writer->ctx;
  606|  1.34k|  (void)data;
  607|  1.34k|  Curl_bufq_free(&ctx->buf);
  608|  1.34k|}
ws.c:cr_ws_init:
 1129|     83|{
 1130|     83|  (void)data;
 1131|     83|  (void)reader;
 1132|     83|  return CURLE_OK;
 1133|     83|}
ws.c:cr_ws_read:
 1145|    158|{
 1146|    158|  struct cr_ws_ctx *ctx = reader->ctx;
 1147|    158|  CURLcode result = CURLE_OK;
 1148|    158|  size_t nread, n;
 1149|    158|  struct websocket *ws;
 1150|    158|  bool eos;
 1151|       |
 1152|    158|  *pnread = 0;
 1153|    158|  if(ctx->eos) {
  ------------------
  |  Branch (1153:6): [True: 0, False: 158]
  ------------------
 1154|      0|    *peos = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1155|      0|    return CURLE_OK;
 1156|      0|  }
 1157|       |
 1158|    158|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|    158|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1159|    158|  if(!ws) {
  ------------------
  |  Branch (1159:6): [True: 0, False: 158]
  ------------------
 1160|      0|    failf(data, "[WS] not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1161|      0|    return CURLE_FAILED_INIT;
 1162|      0|  }
 1163|       |
 1164|    158|  if(Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1164:6): [True: 158, False: 0]
  ------------------
 1165|    158|    if(ctx->read_eos) {
  ------------------
  |  Branch (1165:8): [True: 0, False: 158]
  ------------------
 1166|      0|      ctx->eos = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1167|      0|      *peos = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1168|      0|      return CURLE_OK;
 1169|      0|    }
 1170|       |
 1171|    158|    if(ws->enc.payload_remain) {
  ------------------
  |  Branch (1171:8): [True: 0, False: 158]
  ------------------
 1172|      0|      CURL_TRC_WS(data, "current frame, %" FMT_OFF_T " remaining",
  ------------------
  |  |  208|      0|  do {                                                  \
  |  |  209|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|      0|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1173|      0|                  ws->enc.payload_remain);
 1174|      0|      blen = curlx_sotouz_range(ws->enc.payload_remain, 0, blen);
 1175|      0|    }
 1176|       |
 1177|    158|    result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos);
 1178|    158|    if(result)
  ------------------
  |  Branch (1178:8): [True: 0, False: 158]
  ------------------
 1179|      0|      return result;
 1180|    158|    ctx->read_eos = eos;
 1181|       |
 1182|    158|    if(!Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1182:8): [True: 0, False: 158]
  ------------------
 1183|       |      /* client_read started a new frame, we disregard any eos reported */
 1184|      0|      ctx->read_eos = FALSE;
  ------------------
  |  | 1058|      0|#define FALSE false
  ------------------
 1185|      0|      Curl_creader_clear_eos(data, reader->next);
 1186|      0|    }
 1187|    158|    else if(!nread) {
  ------------------
  |  Branch (1187:13): [True: 79, False: 79]
  ------------------
 1188|       |      /* nothing to convert, return this right away */
 1189|     79|      if(ctx->read_eos)
  ------------------
  |  Branch (1189:10): [True: 79, False: 0]
  ------------------
 1190|     79|        ctx->eos = TRUE;
  ------------------
  |  | 1055|     79|#define TRUE true
  ------------------
 1191|     79|      *pnread = nread;
 1192|     79|      *peos = (bool)ctx->eos;
 1193|     79|      goto out;
 1194|     79|    }
 1195|       |
 1196|     79|    if(!ws->enc.payload_remain && Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1196:8): [True: 79, False: 0]
  |  Branch (1196:35): [True: 79, False: 0]
  ------------------
 1197|       |      /* encode the data as a new BINARY frame */
 1198|     79|      result = ws_enc_write_head(data, ws, &ws->enc, CURLWS_BINARY, nread,
  ------------------
  |  |   41|     79|#define CURLWS_BINARY     (1 << 1)
  ------------------
 1199|     79|                                 &ws->sendbuf);
 1200|     79|      if(result)
  ------------------
  |  Branch (1200:10): [True: 0, False: 79]
  ------------------
 1201|      0|        goto out;
 1202|     79|    }
 1203|       |
 1204|     79|    result = ws_enc_write_payload(&ws->enc, data, (uint8_t *)buf,
 1205|     79|                                  nread, &ws->sendbuf, &n);
 1206|     79|    if(result)
  ------------------
  |  Branch (1206:8): [True: 0, False: 79]
  ------------------
 1207|      0|      goto out;
 1208|     79|    CURL_TRC_READ(data, "cr_ws_read, added %zu payload, len=%zu", nread, n);
  ------------------
  |  |  163|     79|  do {                                                    \
  |  |  164|     79|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|     79|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    158|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 79, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 79]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    158|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     79|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|     79|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|     79|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 79]
  |  |  ------------------
  ------------------
 1209|     79|  }
 1210|       |
 1211|     79|  DEBUGASSERT(!Curl_bufq_is_empty(&ws->sendbuf));
  ------------------
  |  | 1081|     79|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1211:3): [True: 0, False: 79]
  |  Branch (1211:3): [True: 79, False: 0]
  ------------------
 1212|     79|  *peos = FALSE;
  ------------------
  |  | 1058|     79|#define FALSE false
  ------------------
 1213|     79|  result = Curl_bufq_cread(&ws->sendbuf, buf, blen, pnread);
 1214|     79|  if(!result && ctx->read_eos && Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1214:6): [True: 79, False: 0]
  |  Branch (1214:17): [True: 0, False: 79]
  |  Branch (1214:34): [True: 0, False: 0]
  ------------------
 1215|       |    /* no more data, read all, done. */
 1216|      0|    ctx->eos = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1217|      0|    *peos = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1218|      0|  }
 1219|       |
 1220|    158|out:
 1221|    158|  CURL_TRC_READ(data, "cr_ws_read(len=%zu) -> %d, nread=%zu, eos=%d",
  ------------------
  |  |  163|    158|  do {                                                    \
  |  |  164|    158|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  326|    158|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    316|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 158, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 158]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    316|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    158|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    158|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    158|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 158]
  |  |  ------------------
  ------------------
 1222|    158|                blen, result, *pnread, *peos);
 1223|    158|  return result;
 1224|     79|}
ws.c:ws_enc_write_payload:
  951|  1.89k|{
  952|  1.89k|  CURLcode result;
  953|  1.89k|  size_t i, len, n, remain;
  954|       |
  955|  1.89k|  *pnwritten = 0;
  956|  1.89k|  if(Curl_bufq_is_full(out))
  ------------------
  |  Branch (956:6): [True: 0, False: 1.89k]
  ------------------
  957|      0|    return CURLE_AGAIN;
  958|       |
  959|       |  /* not the most performant way to do this */
  960|  1.89k|  len = buflen;
  961|  1.89k|  remain = curlx_sotouz_range(enc->payload_remain, 0, SIZE_MAX);
  962|  1.89k|  if(remain < len)
  ------------------
  |  Branch (962:6): [True: 0, False: 1.89k]
  ------------------
  963|      0|    len = remain;
  964|       |
  965|  1.32M|  for(i = 0; i < len; ++i) {
  ------------------
  |  Branch (965:14): [True: 1.32M, False: 1.89k]
  ------------------
  966|  1.32M|    uint8_t c = buf[i] ^ enc->mask[enc->xori];
  967|  1.32M|    result = Curl_bufq_write(out, &c, 1, &n);
  968|  1.32M|    if(result) {
  ------------------
  |  Branch (968:8): [True: 0, False: 1.32M]
  ------------------
  969|      0|      if((result != CURLE_AGAIN) || !i)
  ------------------
  |  Branch (969:10): [True: 0, False: 0]
  |  Branch (969:37): [True: 0, False: 0]
  ------------------
  970|      0|        return result;
  971|      0|      break;
  972|      0|    }
  973|  1.32M|    enc->xori++;
  974|  1.32M|    enc->xori &= 3;
  975|  1.32M|  }
  976|  1.89k|  *pnwritten = i;
  977|  1.89k|  enc->payload_remain -= (curl_off_t)i;
  978|  1.89k|  ws_enc_info(enc, data, "buffered");
  979|  1.89k|  return CURLE_OK;
  980|  1.89k|}
ws.c:ws_enc_info:
  781|  3.78k|{
  782|  3.78k|  NOVERBOSE((void)enc);
  ------------------
  |  | 1619|  3.78k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1180|  3.78k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1180:35): [Folded, False: 3.78k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  783|  3.78k|  NOVERBOSE((void)msg);
  ------------------
  |  | 1619|  3.78k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1180|  3.78k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1180:35): [Folded, False: 3.78k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  784|  3.78k|  CURL_TRC_WS(data, "WS-ENC: %s [%s%s payload=%"
  ------------------
  |  |  208|  3.78k|  do {                                                  \
  |  |  209|  3.78k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  3.78k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  7.56k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 3.78k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 3.78k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  7.56k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.78k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  3.78k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|  3.78k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 3.78k]
  |  |  ------------------
  ------------------
  785|  3.78k|              FMT_OFF_T "/%" FMT_OFF_T "]",
  786|  3.78k|              msg, ws_frame_name_of_op(enc->firstbyte),
  787|  3.78k|              (enc->firstbyte & WSBIT_FIN) ? "" : " NON-FIN",
  788|  3.78k|              enc->payload_len - enc->payload_remain, enc->payload_len);
  789|  3.78k|}
ws.c:cr_ws_close:
 1136|     83|{
 1137|     83|  (void)data;
 1138|     83|  (void)reader;
 1139|     83|}
ws.c:nw_in_recv:
 1525|  3.20k|{
 1526|  3.20k|  struct Curl_easy *data = reader_ctx;
 1527|  3.20k|  return curl_easy_recv(data, buf, buflen, pnread);
 1528|  3.20k|}
ws.c:ws_dec_pass:
  522|  9.01k|{
  523|  9.01k|  CURLcode result;
  524|       |
  525|  9.01k|  if(Curl_bufq_is_empty(inraw))
  ------------------
  |  Branch (525:6): [True: 0, False: 9.01k]
  ------------------
  526|      0|    return CURLE_AGAIN;
  527|       |
  528|  9.01k|  switch(dec->state) {
  529|  7.16k|  case WS_DEC_INIT:
  ------------------
  |  Branch (529:3): [True: 7.16k, False: 1.85k]
  ------------------
  530|  7.16k|    ws_dec_next_frame(dec);
  531|  7.16k|    dec->state = WS_DEC_HEAD;
  532|  7.16k|    FALLTHROUGH();
  ------------------
  |  |  821|  7.16k|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  533|  8.06k|  case WS_DEC_HEAD:
  ------------------
  |  Branch (533:3): [True: 902, False: 8.11k]
  ------------------
  534|  8.06k|    result = ws_dec_read_head(dec, data, inraw);
  535|  8.06k|    if(result) {
  ------------------
  |  Branch (535:8): [True: 1.96k, False: 6.10k]
  ------------------
  536|  1.96k|      if(result != CURLE_AGAIN) {
  ------------------
  |  Branch (536:10): [True: 1.04k, False: 915]
  ------------------
  537|  1.04k|        failf(data, "[WS] decode frame error %d", (int)result);
  ------------------
  |  |   62|  1.04k|#define failf Curl_failf
  ------------------
  538|  1.04k|        break;  /* real error */
  539|  1.04k|      }
  540|       |      /* incomplete ws frame head */
  541|    915|      DEBUGASSERT(Curl_bufq_is_empty(inraw));
  ------------------
  |  | 1081|    915|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (541:7): [True: 0, False: 915]
  |  Branch (541:7): [True: 915, False: 0]
  ------------------
  542|    915|      break;
  543|    915|    }
  544|       |    /* head parsing done */
  545|  6.10k|    dec->state = WS_DEC_PAYLOAD;
  546|  6.10k|    if(dec->payload_len == 0) {
  ------------------
  |  Branch (546:8): [True: 4.74k, False: 1.35k]
  ------------------
  547|  4.74k|      size_t nwritten;
  548|  4.74k|      const uint8_t tmp = '\0';
  549|       |      /* special case of a 0 length frame, need to write once */
  550|  4.74k|      result = write_cb(&tmp, 0, dec->frame_age, dec->frame_flags,
  551|  4.74k|                        0, 0, write_ctx, &nwritten);
  552|  4.74k|      if(result)
  ------------------
  |  Branch (552:10): [True: 0, False: 4.74k]
  ------------------
  553|      0|        return result;
  554|  4.74k|      dec->state = WS_DEC_INIT;
  555|  4.74k|      break;
  556|  4.74k|    }
  557|  1.35k|    FALLTHROUGH();
  ------------------
  |  |  821|  1.35k|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  558|  2.30k|  case WS_DEC_PAYLOAD:
  ------------------
  |  Branch (558:3): [True: 951, False: 8.06k]
  ------------------
  559|  2.30k|    result = ws_dec_pass_payload(dec, data, inraw, write_cb, write_ctx);
  560|  2.30k|    ws_dec_info(dec, data, "passing");
  561|  2.30k|    if(result)
  ------------------
  |  Branch (561:8): [True: 1.32k, False: 979]
  ------------------
  562|  1.32k|      return result;
  563|       |    /* payload parsing done */
  564|    979|    dec->state = WS_DEC_INIT;
  565|    979|    break;
  566|      0|  default:
  ------------------
  |  Branch (566:3): [True: 0, False: 9.01k]
  ------------------
  567|       |    /* we covered all enums above, but some code analyzers are wimps */
  568|      0|    result = CURLE_FAILED_INIT;
  569|  9.01k|  }
  570|  7.68k|  return result;
  571|  9.01k|}
ws.c:ws_dec_next_frame:
  334|  7.16k|{
  335|  7.16k|  dec->frame_age = 0;
  336|  7.16k|  dec->frame_flags = 0;
  337|  7.16k|  dec->payload_offset = 0;
  338|  7.16k|  dec->payload_len = 0;
  339|  7.16k|  dec->head_len = dec->head_total = 0;
  340|  7.16k|  dec->state = WS_DEC_INIT;
  341|       |  /* dec->cont_flags must be carried over to next frame */
  342|  7.16k|}
ws.c:ws_dec_read_head:
  363|  8.06k|{
  364|  8.06k|  const uint8_t *inbuf;
  365|  8.06k|  size_t inlen;
  366|       |
  367|  16.9k|  while(Curl_bufq_peek(inraw, &inbuf, &inlen)) {
  ------------------
  |  Branch (367:9): [True: 16.0k, False: 915]
  ------------------
  368|  16.0k|    if(dec->head_len == 0) {
  ------------------
  |  Branch (368:8): [True: 7.16k, False: 8.87k]
  ------------------
  369|  7.16k|      dec->head[0] = *inbuf;
  370|  7.16k|      Curl_bufq_skip(inraw, 1);
  371|       |
  372|  7.16k|      dec->frame_flags = ws_frame_firstbyte2flags(data, dec->head[0],
  373|  7.16k|                                                  dec->cont_flags);
  374|  7.16k|      if(!dec->frame_flags) {
  ------------------
  |  Branch (374:10): [True: 939, False: 6.22k]
  ------------------
  375|    939|        ws_dec_reset(dec);
  376|    939|        return CURLE_RECV_ERROR;
  377|    939|      }
  378|       |
  379|       |      /* fragmentation only applies to data frames (text/binary);
  380|       |       * control frames (close/ping/pong) do not affect the CONT status */
  381|  6.22k|      if(dec->frame_flags & (CURLWS_TEXT | CURLWS_BINARY)) {
  ------------------
  |  |   40|  6.22k|#define CURLWS_TEXT       (1 << 0)
  ------------------
                    if(dec->frame_flags & (CURLWS_TEXT | CURLWS_BINARY)) {
  ------------------
  |  |   41|  6.22k|#define CURLWS_BINARY     (1 << 1)
  ------------------
  |  Branch (381:10): [True: 5.65k, False: 568]
  ------------------
  382|  5.65k|        dec->cont_flags = dec->frame_flags;
  383|  5.65k|      }
  384|       |
  385|  6.22k|      dec->head_len = 1;
  386|       |#if 0
  387|       |      ws_dec_info(dec, data, "seeing opcode");
  388|       |#endif
  389|  6.22k|      continue;
  390|  7.16k|    }
  391|  8.87k|    else if(dec->head_len == 1) {
  ------------------
  |  Branch (391:13): [True: 6.20k, False: 2.67k]
  ------------------
  392|  6.20k|      dec->head[1] = *inbuf;
  393|  6.20k|      Curl_bufq_skip(inraw, 1);
  394|  6.20k|      dec->head_len = 2;
  395|       |
  396|  6.20k|      if(dec->head[1] & WSBIT_MASK) {
  ------------------
  |  |   70|  6.20k|#define WSBIT_MASK 0x80
  ------------------
  |  Branch (396:10): [True: 65, False: 6.13k]
  ------------------
  397|       |        /* A client MUST close a connection if it detects a masked frame. */
  398|     65|        failf(data, "[WS] masked input frame");
  ------------------
  |  |   62|     65|#define failf Curl_failf
  ------------------
  399|     65|        ws_dec_reset(dec);
  400|     65|        return CURLE_RECV_ERROR;
  401|     65|      }
  402|  6.13k|      if(dec->frame_flags & CURLWS_PING && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   44|  12.2k|#define CURLWS_PING       (1 << 4)
  ------------------
                    if(dec->frame_flags & CURLWS_PING && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|    473|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (402:10): [True: 473, False: 5.66k]
  |  Branch (402:44): [True: 1, False: 472]
  ------------------
  403|       |        /* The maximum valid size of PING frames is 125 bytes.
  404|       |           Accepting overlong pings would mean sending equivalent pongs! */
  405|      1|        failf(data, "[WS] received PING frame is too big");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
  406|      1|        ws_dec_reset(dec);
  407|      1|        return CURLE_RECV_ERROR;
  408|      1|      }
  409|  6.13k|      if(dec->frame_flags & CURLWS_PONG && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   60|  12.2k|#define CURLWS_PONG       (1 << 6)
  ------------------
                    if(dec->frame_flags & CURLWS_PONG && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|     43|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (409:10): [True: 43, False: 6.09k]
  |  Branch (409:44): [True: 1, False: 42]
  ------------------
  410|       |        /* The maximum valid size of PONG frames is 125 bytes. */
  411|      1|        failf(data, "[WS] received PONG frame is too big");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
  412|      1|        ws_dec_reset(dec);
  413|      1|        return CURLE_RECV_ERROR;
  414|      1|      }
  415|  6.13k|      if(dec->frame_flags & CURLWS_CLOSE && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   43|  12.2k|#define CURLWS_CLOSE      (1 << 3)
  ------------------
                    if(dec->frame_flags & CURLWS_CLOSE && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|     23|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (415:10): [True: 23, False: 6.11k]
  |  Branch (415:45): [True: 1, False: 22]
  ------------------
  416|      1|        failf(data, "[WS] received CLOSE frame is too big");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
  417|      1|        ws_dec_reset(dec);
  418|      1|        return CURLE_RECV_ERROR;
  419|      1|      }
  420|       |
  421|       |      /* How long is the frame head? */
  422|  6.13k|      if(dec->head[1] == 126) {
  ------------------
  |  Branch (422:10): [True: 49, False: 6.08k]
  ------------------
  423|     49|        dec->head_total = 4;
  424|     49|        continue;
  425|     49|      }
  426|  6.08k|      else if(dec->head[1] == 127) {
  ------------------
  |  Branch (426:15): [True: 330, False: 5.75k]
  ------------------
  427|    330|        dec->head_total = 10;
  428|    330|        continue;
  429|    330|      }
  430|  5.75k|      else {
  431|  5.75k|        dec->head_total = 2;
  432|  5.75k|      }
  433|  6.13k|    }
  434|       |
  435|  8.42k|    if(dec->head_len < dec->head_total) {
  ------------------
  |  Branch (435:8): [True: 2.64k, False: 5.78k]
  ------------------
  436|  2.64k|      dec->head[dec->head_len] = *inbuf;
  437|  2.64k|      Curl_bufq_skip(inraw, 1);
  438|  2.64k|      ++dec->head_len;
  439|  2.64k|      if(dec->head_len < dec->head_total) {
  ------------------
  |  Branch (439:10): [True: 2.28k, False: 357]
  ------------------
  440|       |#if 0
  441|       |        ws_dec_info(dec, data, "decoding head");
  442|       |#endif
  443|  2.28k|        continue;
  444|  2.28k|      }
  445|  2.64k|    }
  446|       |    /* got the complete frame head */
  447|  6.14k|    DEBUGASSERT(dec->head_len == dec->head_total);
  ------------------
  |  | 1081|  6.14k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (447:5): [True: 0, False: 6.14k]
  |  Branch (447:5): [True: 6.14k, False: 0]
  ------------------
  448|  6.14k|    switch(dec->head_total) {
  449|  5.75k|    case 2:
  ------------------
  |  Branch (449:5): [True: 5.75k, False: 390]
  ------------------
  450|  5.75k|      dec->payload_len = dec->head[1];
  451|  5.75k|      break;
  452|     49|    case 4:
  ------------------
  |  Branch (452:5): [True: 49, False: 6.09k]
  ------------------
  453|     49|      dec->payload_len = (dec->head[2] << 8) | dec->head[3];
  454|     49|      break;
  455|    341|    case 10:
  ------------------
  |  Branch (455:5): [True: 341, False: 5.80k]
  ------------------
  456|    341|      if(dec->head[2] > 127) {
  ------------------
  |  Branch (456:10): [True: 41, False: 300]
  ------------------
  457|     41|        failf(data, "[WS] frame length longer than 63 bits not supported");
  ------------------
  |  |   62|     41|#define failf Curl_failf
  ------------------
  458|     41|        return CURLE_RECV_ERROR;
  459|     41|      }
  460|    300|      dec->payload_len =
  461|    300|        (curl_off_t)dec->head[2] << 56 |
  462|    300|        (curl_off_t)dec->head[3] << 48 |
  463|    300|        (curl_off_t)dec->head[4] << 40 |
  464|    300|        (curl_off_t)dec->head[5] << 32 |
  465|    300|        (curl_off_t)dec->head[6] << 24 |
  466|    300|        (curl_off_t)dec->head[7] << 16 |
  467|    300|        (curl_off_t)dec->head[8] <<  8 |
  468|    300|        dec->head[9];
  469|    300|      break;
  470|      0|    default:
  ------------------
  |  Branch (470:5): [True: 0, False: 6.14k]
  ------------------
  471|       |      /* this should never happen */
  472|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (472:7): [Folded, False: 0]
  |  Branch (472:7): [Folded, False: 0]
  ------------------
  473|      0|      failf(data, "[WS] unexpected frame header length");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  474|      0|      return CURLE_RECV_ERROR;
  475|  6.14k|    }
  476|       |
  477|  6.10k|    dec->frame_age = 0;
  478|  6.10k|    dec->payload_offset = 0;
  479|  6.10k|    ws_dec_info(dec, data, "decoded");
  480|  6.10k|    return CURLE_OK;
  481|  6.14k|  }
  482|    915|  return CURLE_AGAIN;
  483|  8.06k|}
ws.c:ws_frame_firstbyte2flags:
  152|  7.16k|{
  153|  7.16k|  switch(firstbyte) {
  154|       |  /* 0x00 - intermediate TEXT/BINARY fragment */
  155|  5.17k|  case WSBIT_OPCODE_CONT:
  ------------------
  |  |   60|  5.17k|#define WSBIT_OPCODE_CONT  0x0
  ------------------
  |  Branch (155:3): [True: 5.17k, False: 1.98k]
  ------------------
  156|  5.17k|    if(!(cont_flags & CURLWS_CONT)) {
  ------------------
  |  |   42|  5.17k|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (156:8): [True: 300, False: 4.87k]
  ------------------
  157|    300|      failf(data, "[WS] no ongoing fragmented message to resume");
  ------------------
  |  |   62|    300|#define failf Curl_failf
  ------------------
  158|    300|      return 0;
  159|    300|    }
  160|  4.87k|    return cont_flags | CURLWS_CONT;
  ------------------
  |  |   42|  4.87k|#define CURLWS_CONT       (1 << 2)
  ------------------
  161|       |  /* 0x80 - final TEXT/BIN fragment */
  162|     75|  case (WSBIT_OPCODE_CONT | WSBIT_FIN):
  ------------------
  |  |   60|     75|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                case (WSBIT_OPCODE_CONT | WSBIT_FIN):
  ------------------
  |  |   55|     75|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (162:3): [True: 75, False: 7.08k]
  ------------------
  163|     75|    if(!(cont_flags & CURLWS_CONT)) {
  ------------------
  |  |   42|     75|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (163:8): [True: 57, False: 18]
  ------------------
  164|     57|      failf(data, "[WS] no ongoing fragmented message to resume");
  ------------------
  |  |   62|     57|#define failf Curl_failf
  ------------------
  165|     57|      return 0;
  166|     57|    }
  167|     18|    return cont_flags & ~CURLWS_CONT;
  ------------------
  |  |   42|     18|#define CURLWS_CONT       (1 << 2)
  ------------------
  168|       |  /* 0x01 - first TEXT fragment */
  169|    579|  case WSBIT_OPCODE_TEXT:
  ------------------
  |  |   61|    579|#define WSBIT_OPCODE_TEXT  0x1
  ------------------
  |  Branch (169:3): [True: 579, False: 6.58k]
  ------------------
  170|    579|    if(cont_flags & CURLWS_CONT) {
  ------------------
  |  |   42|    579|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (170:8): [True: 38, False: 541]
  ------------------
  171|     38|      failf(data, "[WS] fragmented message interrupted by new TEXT msg");
  ------------------
  |  |   62|     38|#define failf Curl_failf
  ------------------
  172|     38|      return 0;
  173|     38|    }
  174|    541|    return CURLWS_TEXT | CURLWS_CONT;
  ------------------
  |  |   40|    541|#define CURLWS_TEXT       (1 << 0)
  ------------------
                  return CURLWS_TEXT | CURLWS_CONT;
  ------------------
  |  |   42|    541|#define CURLWS_CONT       (1 << 2)
  ------------------
  175|       |  /* 0x81 - unfragmented TEXT msg */
  176|     96|  case (WSBIT_OPCODE_TEXT | WSBIT_FIN):
  ------------------
  |  |   61|     96|#define WSBIT_OPCODE_TEXT  0x1
  ------------------
                case (WSBIT_OPCODE_TEXT | WSBIT_FIN):
  ------------------
  |  |   55|     96|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (176:3): [True: 96, False: 7.06k]
  ------------------
  177|     96|    if(cont_flags & CURLWS_CONT) {
  ------------------
  |  |   42|     96|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (177:8): [True: 14, False: 82]
  ------------------
  178|     14|      failf(data, "[WS] fragmented message interrupted by new TEXT msg");
  ------------------
  |  |   62|     14|#define failf Curl_failf
  ------------------
  179|     14|      return 0;
  180|     14|    }
  181|     82|    return CURLWS_TEXT;
  ------------------
  |  |   40|     82|#define CURLWS_TEXT       (1 << 0)
  ------------------
  182|       |  /* 0x02 - first BINARY fragment */
  183|    145|  case WSBIT_OPCODE_BIN:
  ------------------
  |  |   62|    145|#define WSBIT_OPCODE_BIN   0x2
  ------------------
  |  Branch (183:3): [True: 145, False: 7.01k]
  ------------------
  184|    145|    if(cont_flags & CURLWS_CONT) {
  ------------------
  |  |   42|    145|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (184:8): [True: 45, False: 100]
  ------------------
  185|     45|      failf(data, "[WS] fragmented message interrupted by new BINARY msg");
  ------------------
  |  |   62|     45|#define failf Curl_failf
  ------------------
  186|     45|      return 0;
  187|     45|    }
  188|    100|    return CURLWS_BINARY | CURLWS_CONT;
  ------------------
  |  |   41|    100|#define CURLWS_BINARY     (1 << 1)
  ------------------
                  return CURLWS_BINARY | CURLWS_CONT;
  ------------------
  |  |   42|    100|#define CURLWS_CONT       (1 << 2)
  ------------------
  189|       |  /* 0x82 - unfragmented BINARY msg */
  190|     43|  case (WSBIT_OPCODE_BIN | WSBIT_FIN):
  ------------------
  |  |   62|     43|#define WSBIT_OPCODE_BIN   0x2
  ------------------
                case (WSBIT_OPCODE_BIN | WSBIT_FIN):
  ------------------
  |  |   55|     43|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (190:3): [True: 43, False: 7.12k]
  ------------------
  191|     43|    if(cont_flags & CURLWS_CONT) {
  ------------------
  |  |   42|     43|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (191:8): [True: 3, False: 40]
  ------------------
  192|      3|      failf(data, "[WS] fragmented message interrupted by new BINARY msg");
  ------------------
  |  |   62|      3|#define failf Curl_failf
  ------------------
  193|      3|      return 0;
  194|      3|    }
  195|     40|    return CURLWS_BINARY;
  ------------------
  |  |   41|     40|#define CURLWS_BINARY     (1 << 1)
  ------------------
  196|       |  /* 0x08 - first CLOSE fragment */
  197|     38|  case WSBIT_OPCODE_CLOSE:
  ------------------
  |  |   63|     38|#define WSBIT_OPCODE_CLOSE 0x8
  ------------------
  |  Branch (197:3): [True: 38, False: 7.12k]
  ------------------
  198|     38|    failf(data, "[WS] invalid fragmented CLOSE frame");
  ------------------
  |  |   62|     38|#define failf Curl_failf
  ------------------
  199|     38|    return 0;
  200|       |  /* 0x88 - unfragmented CLOSE */
  201|     32|  case (WSBIT_OPCODE_CLOSE | WSBIT_FIN):
  ------------------
  |  |   63|     32|#define WSBIT_OPCODE_CLOSE 0x8
  ------------------
                case (WSBIT_OPCODE_CLOSE | WSBIT_FIN):
  ------------------
  |  |   55|     32|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (201:3): [True: 32, False: 7.13k]
  ------------------
  202|     32|    return CURLWS_CLOSE;
  ------------------
  |  |   43|     32|#define CURLWS_CLOSE      (1 << 3)
  ------------------
  203|       |  /* 0x09 - first PING fragment */
  204|     29|  case WSBIT_OPCODE_PING:
  ------------------
  |  |   64|     29|#define WSBIT_OPCODE_PING  0x9
  ------------------
  |  Branch (204:3): [True: 29, False: 7.13k]
  ------------------
  205|     29|    failf(data, "[WS] invalid fragmented PING frame");
  ------------------
  |  |   62|     29|#define failf Curl_failf
  ------------------
  206|     29|    return 0;
  207|       |  /* 0x89 - unfragmented PING */
  208|    479|  case (WSBIT_OPCODE_PING | WSBIT_FIN):
  ------------------
  |  |   64|    479|#define WSBIT_OPCODE_PING  0x9
  ------------------
                case (WSBIT_OPCODE_PING | WSBIT_FIN):
  ------------------
  |  |   55|    479|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (208:3): [True: 479, False: 6.68k]
  ------------------
  209|    479|    return CURLWS_PING;
  ------------------
  |  |   44|    479|#define CURLWS_PING       (1 << 4)
  ------------------
  210|       |  /* 0x0a - first PONG fragment */
  211|     21|  case WSBIT_OPCODE_PONG:
  ------------------
  |  |   65|     21|#define WSBIT_OPCODE_PONG  0xa
  ------------------
  |  Branch (211:3): [True: 21, False: 7.14k]
  ------------------
  212|     21|    failf(data, "[WS] invalid fragmented PONG frame");
  ------------------
  |  |   62|     21|#define failf Curl_failf
  ------------------
  213|     21|    return 0;
  214|       |  /* 0x8a - unfragmented PONG */
  215|     57|  case (WSBIT_OPCODE_PONG | WSBIT_FIN):
  ------------------
  |  |   65|     57|#define WSBIT_OPCODE_PONG  0xa
  ------------------
                case (WSBIT_OPCODE_PONG | WSBIT_FIN):
  ------------------
  |  |   55|     57|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (215:3): [True: 57, False: 7.10k]
  ------------------
  216|     57|    return CURLWS_PONG;
  ------------------
  |  |   60|     57|#define CURLWS_PONG       (1 << 6)
  ------------------
  217|       |  /* invalid first byte */
  218|    394|  default:
  ------------------
  |  Branch (218:3): [True: 394, False: 6.76k]
  ------------------
  219|    394|    if(firstbyte & WSBIT_RSV_MASK)
  ------------------
  |  |   59|    394|#define WSBIT_RSV_MASK     (WSBIT_RSV1 | WSBIT_RSV2 | WSBIT_RSV3)
  |  |  ------------------
  |  |  |  |   56|    394|#define WSBIT_RSV1         0x40
  |  |  ------------------
  |  |               #define WSBIT_RSV_MASK     (WSBIT_RSV1 | WSBIT_RSV2 | WSBIT_RSV3)
  |  |  ------------------
  |  |  |  |   57|    394|#define WSBIT_RSV2         0x20
  |  |  ------------------
  |  |               #define WSBIT_RSV_MASK     (WSBIT_RSV1 | WSBIT_RSV2 | WSBIT_RSV3)
  |  |  ------------------
  |  |  |  |   58|    394|#define WSBIT_RSV3         0x10
  |  |  ------------------
  ------------------
  |  Branch (219:8): [True: 316, False: 78]
  ------------------
  220|       |      /* any of the reserved bits 0x40/0x20/0x10 are set */
  221|    316|      failf(data, "[WS] invalid reserved bits: %02x", firstbyte);
  ------------------
  |  |   62|    316|#define failf Curl_failf
  ------------------
  222|     78|    else
  223|       |      /* any of the reserved opcodes 0x3-0x7 or 0xb-0xf is used */
  224|     78|      failf(data, "[WS] invalid opcode: %02x", firstbyte);
  ------------------
  |  |   62|     78|#define failf Curl_failf
  ------------------
  225|    394|    return 0;
  226|  7.16k|  }
  227|  7.16k|}
ws.c:ws_dec_pass_payload:
  490|  2.30k|{
  491|  2.30k|  const uint8_t *inbuf;
  492|  2.30k|  size_t inlen;
  493|  2.30k|  size_t nwritten;
  494|  2.30k|  CURLcode result;
  495|  2.30k|  size_t remain = curlx_sotouz_range(dec->payload_len - dec->payload_offset,
  496|  2.30k|                                     0, SIZE_MAX);
  497|       |
  498|  4.48k|  while(remain && Curl_bufq_peek(inraw, &inbuf, &inlen)) {
  ------------------
  |  Branch (498:9): [True: 3.50k, False: 979]
  |  Branch (498:19): [True: 2.18k, False: 1.31k]
  ------------------
  499|  2.18k|    if(inlen > remain)
  ------------------
  |  Branch (499:8): [True: 538, False: 1.65k]
  ------------------
  500|    538|      inlen = remain;
  501|  2.18k|    result = write_cb(inbuf, inlen, dec->frame_age, dec->frame_flags,
  502|  2.18k|                      dec->payload_offset, dec->payload_len,
  503|  2.18k|                      write_ctx, &nwritten);
  504|  2.18k|    if(result)
  ------------------
  |  Branch (504:8): [True: 11, False: 2.17k]
  ------------------
  505|     11|      return result;
  506|  2.17k|    Curl_bufq_skip(inraw, nwritten);
  507|  2.17k|    dec->payload_offset += nwritten;
  508|  2.17k|    remain = curlx_sotouz_range(dec->payload_len - dec->payload_offset,
  509|  2.17k|                                0, SIZE_MAX);
  510|  2.17k|    CURL_TRC_WS(data, "passed %zu bytes payload, %zu remain",
  ------------------
  |  |  208|  2.17k|  do {                                                  \
  |  |  209|  2.17k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  2.17k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  4.35k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 2.17k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 2.17k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  4.35k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  2.17k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  2.17k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  2.17k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 2.17k]
  |  |  ------------------
  ------------------
  511|  2.17k|                nwritten, remain);
  512|  2.17k|  }
  513|       |
  514|  2.29k|  return remain ? CURLE_AGAIN : CURLE_OK;
  ------------------
  |  Branch (514:10): [True: 1.31k, False: 979]
  ------------------
  515|  2.30k|}
ws.c:ws_client_collect:
 1472|  2.83k|{
 1473|  2.83k|  struct ws_collect *ctx = userp;
 1474|  2.83k|  struct Curl_easy *data = ctx->data;
 1475|  2.83k|  bool auto_pong = !data->set.ws_no_auto_pong;
 1476|  2.83k|  curl_off_t remain;
 1477|  2.83k|  CURLcode result = CURLE_OK;
 1478|       |
 1479|  2.83k|  *pnwritten = 0;
 1480|  2.83k|  remain = ws_payload_remain(payload_len, payload_offset, buflen);
 1481|  2.83k|  if(remain < 0) {
  ------------------
  |  Branch (1481:6): [True: 0, False: 2.83k]
  ------------------
 1482|      0|    DEBUGASSERT(0); /* parameter mismatch */
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1482:5): [Folded, False: 0]
  |  Branch (1482:5): [Folded, False: 0]
  ------------------
 1483|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1484|      0|  }
 1485|       |
 1486|  2.83k|  if(!ctx->bufidx) {
  ------------------
  |  Branch (1486:6): [True: 2.82k, False: 11]
  ------------------
 1487|       |    /* first write */
 1488|  2.82k|    ctx->frame_age = frame_age;
 1489|  2.82k|    ctx->frame_flags = frame_flags;
 1490|  2.82k|    ctx->payload_offset = payload_offset;
 1491|  2.82k|    ctx->payload_len = payload_len;
 1492|  2.82k|  }
 1493|       |
 1494|  2.83k|  if(auto_pong && (frame_flags & CURLWS_PING) && !remain) {
  ------------------
  |  |   44|  2.61k|#define CURLWS_PING       (1 << 4)
  ------------------
  |  Branch (1494:6): [True: 2.61k, False: 216]
  |  Branch (1494:19): [True: 356, False: 2.25k]
  |  Branch (1494:50): [True: 338, False: 18]
  ------------------
 1495|       |    /* auto-respond to PINGs, only works for single-frame payloads atm */
 1496|    338|    CURL_TRC_WS(data, "auto PONG to [PING payload=%" FMT_OFF_T
  ------------------
  |  |  208|    338|  do {                                                  \
  |  |  209|    338|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    338|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    676|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 338, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 338]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    676|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    338|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    338|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    338|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 338]
  |  |  ------------------
  ------------------
 1497|    338|                "/%" FMT_OFF_T "]", payload_offset, payload_len);
 1498|       |    /* send back the exact same content as a PONG */
 1499|    338|    result = ws_enc_add_cntrl(ctx->data, ctx->ws, buf, buflen, CURLWS_PONG);
  ------------------
  |  |   60|    338|#define CURLWS_PONG       (1 << 6)
  ------------------
 1500|    338|    if(result)
  ------------------
  |  Branch (1500:8): [True: 0, False: 338]
  ------------------
 1501|      0|      return result;
 1502|    338|    *pnwritten = buflen;
 1503|    338|  }
 1504|  2.49k|  else {
 1505|  2.49k|    size_t write_len;
 1506|       |
 1507|  2.49k|    ctx->written = TRUE;
  ------------------
  |  | 1055|  2.49k|#define TRUE true
  ------------------
 1508|  2.49k|    DEBUGASSERT(ctx->buflen >= ctx->bufidx);
  ------------------
  |  | 1081|  2.49k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1508:5): [True: 0, False: 2.49k]
  |  Branch (1508:5): [True: 2.49k, False: 0]
  ------------------
 1509|  2.49k|    write_len = CURLMIN(buflen, ctx->buflen - ctx->bufidx);
  ------------------
  |  | 1287|  2.49k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1287:24): [True: 2.47k, False: 22]
  |  |  ------------------
  ------------------
 1510|  2.49k|    if(!write_len) {
  ------------------
  |  Branch (1510:8): [True: 1.61k, False: 875]
  ------------------
 1511|  1.61k|      if(!buflen)  /* 0 length write, we accept that */
  ------------------
  |  Branch (1511:10): [True: 1.60k, False: 11]
  ------------------
 1512|  1.60k|        return CURLE_OK;
 1513|     11|      return CURLE_AGAIN;  /* no more space */
 1514|  1.61k|    }
 1515|    875|    memcpy(ctx->buffer + ctx->bufidx, buf, write_len);
 1516|    875|    ctx->bufidx += write_len;
 1517|    875|    *pnwritten = write_len;
 1518|    875|  }
 1519|  1.21k|  return result;
 1520|  2.83k|}
ws.c:ws_dec_info:
  294|  8.87k|{
  295|  8.87k|  NOVERBOSE((void)msg);
  ------------------
  |  | 1619|  8.87k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1180|  8.87k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1180:35): [Folded, False: 8.87k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  296|  8.87k|  switch(dec->head_len) {
  297|      0|  case 0:
  ------------------
  |  Branch (297:3): [True: 0, False: 8.87k]
  ------------------
  298|      0|    break;
  299|    118|  case 1:
  ------------------
  |  Branch (299:3): [True: 118, False: 8.75k]
  ------------------
  300|    118|    CURL_TRC_WS(data, "decoded %s [%s%s]", msg,
  ------------------
  |  |  208|    118|  do {                                                  \
  |  |  209|    118|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    118|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    236|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 118, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 118]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    236|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    118|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    118|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|    118|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 118]
  |  |  ------------------
  ------------------
  301|    118|                ws_frame_name_of_op(dec->head[0]),
  302|    118|                (dec->head[0] & WSBIT_FIN) ? "" : " NON-FINAL");
  303|    118|    break;
  304|  8.75k|  default:
  ------------------
  |  Branch (304:3): [True: 8.75k, False: 118]
  ------------------
  305|  8.75k|    if(dec->head_len < dec->head_total) {
  ------------------
  |  Branch (305:8): [True: 293, False: 8.46k]
  ------------------
  306|    293|      CURL_TRC_WS(data, "decoded %s [%s%s](%d/%d)", msg,
  ------------------
  |  |  208|    293|  do {                                                  \
  |  |  209|    293|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    293|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    586|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 293, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 293]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    586|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    293|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    293|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|    293|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 293]
  |  |  ------------------
  ------------------
  307|    293|                  ws_frame_name_of_op(dec->head[0]),
  308|    293|                  (dec->head[0] & WSBIT_FIN) ? "" : " NON-FINAL",
  309|    293|                  dec->head_len, dec->head_total);
  310|    293|    }
  311|  8.46k|    else {
  312|  8.46k|      CURL_TRC_WS(data, "decoded %s [%s%s payload=%"
  ------------------
  |  |  208|  8.46k|  do {                                                  \
  |  |  209|  8.46k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  8.46k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  16.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 8.46k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 8.46k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  16.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  8.46k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  8.46k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|  8.46k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 8.46k]
  |  |  ------------------
  ------------------
  313|  8.46k|                  FMT_OFF_T "/%" FMT_OFF_T "]",
  314|  8.46k|                  msg, ws_frame_name_of_op(dec->head[0]),
  315|  8.46k|                  (dec->head[0] & WSBIT_FIN) ? "" : " NON-FINAL",
  316|  8.46k|                  dec->payload_offset, dec->payload_len);
  317|  8.46k|    }
  318|  8.75k|    break;
  319|  8.87k|  }
  320|  8.87k|}
ws.c:update_meta:
  578|  6.46k|{
  579|  6.46k|  curl_off_t bytesleft = (payload_len - payload_offset - cur_len);
  580|       |
  581|  6.46k|  ws->recvframe.age = frame_age;
  582|  6.46k|  ws->recvframe.flags = frame_flags;
  583|  6.46k|  ws->recvframe.offset = payload_offset;
  584|  6.46k|  ws->recvframe.len = cur_len;
  585|  6.46k|  ws->recvframe.bytesleft = bytesleft;
  586|  6.46k|}
ws.c:ws_enc_add_pending:
  984|    457|{
  985|    457|  CURLcode result;
  986|    457|  size_t n;
  987|       |
  988|    457|  if(!ws->pending.type) /* no pending frame here */
  ------------------
  |  Branch (988:6): [True: 0, False: 457]
  ------------------
  989|      0|    return CURLE_OK;
  990|    457|  if(ws->enc.payload_remain) /* in the middle of another frame */
  ------------------
  |  Branch (990:6): [True: 0, False: 457]
  ------------------
  991|      0|    return CURLE_AGAIN;
  992|       |
  993|    457|  result = ws_enc_add_frame(data, &ws->enc, ws->pending.type,
  994|    457|                            (curl_off_t)ws->pending.payload_len,
  995|    457|                            &ws->sendbuf);
  996|    457|  if(result) {
  ------------------
  |  Branch (996:6): [True: 0, False: 457]
  ------------------
  997|      0|    CURL_TRC_WS(data, "ws_enc_cntrl(), error adding head: %d",
  ------------------
  |  |  208|      0|  do {                                                  \
  |  |  209|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|      0|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  998|      0|                result);
  999|      0|    goto out;
 1000|      0|  }
 1001|    457|  result = ws_enc_write_payload(&ws->enc, data, ws->pending.payload,
 1002|    457|                                ws->pending.payload_len,
 1003|    457|                                &ws->sendbuf, &n);
 1004|    457|  if(result) {
  ------------------
  |  Branch (1004:6): [True: 0, False: 457]
  ------------------
 1005|      0|    CURL_TRC_WS(data, "ws_enc_cntrl(), error adding payload: %d",
  ------------------
  |  |  208|      0|  do {                                                  \
  |  |  209|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|      0|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1006|      0|                result);
 1007|      0|    goto out;
 1008|      0|  }
 1009|    457|  if(n != ws->pending.payload_len) {
  ------------------
  |  Branch (1009:6): [True: 0, False: 457]
  ------------------
 1010|      0|    DEBUGASSERT(0); /* buffer should always be able to take all */
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1010:5): [Folded, False: 0]
  |  Branch (1010:5): [Folded, False: 0]
  ------------------
 1011|      0|    CURL_TRC_WS(data, "ws_enc_cntrl(), error added only %zu/%zu payload,",
  ------------------
  |  |  208|      0|  do {                                                  \
  |  |  209|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|      0|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1012|      0|                n, ws->pending.payload_len);
 1013|      0|    result = CURLE_SEND_ERROR;
 1014|      0|    goto out;
 1015|      0|  }
 1016|       |  /* the frame should be complete now */
 1017|    457|  DEBUGASSERT(!ws->enc.payload_remain);
  ------------------
  |  | 1081|    457|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1017:3): [True: 0, False: 457]
  |  Branch (1017:3): [True: 457, False: 0]
  ------------------
 1018|    457|  memset(&ws->pending, 0, sizeof(ws->pending));
 1019|       |
 1020|    457|out:
 1021|    457|  return result;
 1022|    457|}
ws.c:ws_enc_add_frame:
  831|  3.31k|{
  832|  3.31k|  uint8_t firstb = 0;
  833|  3.31k|  uint8_t head[14];
  834|  3.31k|  CURLcode result;
  835|  3.31k|  size_t hlen, nwritten;
  836|       |
  837|  3.31k|  if(payload_len < 0) {
  ------------------
  |  Branch (837:6): [True: 0, False: 3.31k]
  ------------------
  838|      0|    failf(data, "[WS] starting new frame with negative payload length %"
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  839|      0|                FMT_OFF_T, payload_len);
  ------------------
  |  |  598|      0|#define FMT_OFF_T  CURL_FORMAT_CURL_OFF_T
  |  |  ------------------
  |  |  |  |  341|      0|#    define CURL_FORMAT_CURL_OFF_T     "ld"
  |  |  ------------------
  ------------------
  840|      0|    return CURLE_SEND_ERROR;
  841|      0|  }
  842|       |
  843|  3.31k|  if(enc->payload_remain > 0) {
  ------------------
  |  Branch (843:6): [True: 0, False: 3.31k]
  ------------------
  844|       |    /* trying to write a new frame before the previous one is finished */
  845|      0|    failf(data, "[WS] starting new frame with %" FMT_OFF_T " bytes "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  846|      0|                "from last one remaining to be sent", enc->payload_remain);
  847|      0|    return CURLE_SEND_ERROR;
  848|      0|  }
  849|       |
  850|  3.31k|  result = ws_frame_flags2firstbyte(data, flags, (bool)enc->contfragment,
  851|  3.31k|                                    &firstb);
  852|  3.31k|  if(result)
  ------------------
  |  Branch (852:6): [True: 1.42k, False: 1.88k]
  ------------------
  853|  1.42k|    return result;
  854|       |
  855|       |  /* fragmentation only applies to data frames (text/binary);
  856|       |   * control frames (close/ping/pong) do not affect the CONT status */
  857|  1.88k|  if(flags & (CURLWS_TEXT | CURLWS_BINARY)) {
  ------------------
  |  |   40|  1.88k|#define CURLWS_TEXT       (1 << 0)
  ------------------
                if(flags & (CURLWS_TEXT | CURLWS_BINARY)) {
  ------------------
  |  |   41|  1.88k|#define CURLWS_BINARY     (1 << 1)
  ------------------
  |  Branch (857:6): [True: 966, False: 922]
  ------------------
  858|    966|    enc->contfragment = (curl_bit)((flags & CURLWS_CONT) ? TRUE : FALSE);
  ------------------
  |  |   42|    966|#define CURLWS_CONT       (1 << 2)
  ------------------
                  enc->contfragment = (curl_bit)((flags & CURLWS_CONT) ? TRUE : FALSE);
  ------------------
  |  | 1055|    966|#define TRUE true
  ------------------
                  enc->contfragment = (curl_bit)((flags & CURLWS_CONT) ? TRUE : FALSE);
  ------------------
  |  | 1058|    966|#define FALSE false
  ------------------
  |  Branch (858:36): [True: 196, False: 770]
  ------------------
  859|    966|  }
  860|       |
  861|  1.88k|  if(flags & CURLWS_PING && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   44|  3.77k|#define CURLWS_PING       (1 << 4)
  ------------------
                if(flags & CURLWS_PING && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|     91|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (861:6): [True: 91, False: 1.79k]
  |  Branch (861:29): [True: 0, False: 91]
  ------------------
  862|      0|    failf(data, "[WS] given PING frame is too big");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  863|      0|    return CURLE_TOO_LARGE;
  864|      0|  }
  865|  1.88k|  if(flags & CURLWS_PONG && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   60|  3.77k|#define CURLWS_PONG       (1 << 6)
  ------------------
                if(flags & CURLWS_PONG && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|    543|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (865:6): [True: 543, False: 1.34k]
  |  Branch (865:29): [True: 0, False: 543]
  ------------------
  866|      0|    failf(data, "[WS] given PONG frame is too big");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  867|      0|    return CURLE_TOO_LARGE;
  868|      0|  }
  869|  1.88k|  if(flags & CURLWS_CLOSE && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   43|  3.77k|#define CURLWS_CLOSE      (1 << 3)
  ------------------
                if(flags & CURLWS_CLOSE && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|     84|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (869:6): [True: 84, False: 1.80k]
  |  Branch (869:30): [True: 0, False: 84]
  ------------------
  870|      0|    failf(data, "[WS] given CLOSE frame is too big");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  871|      0|    return CURLE_TOO_LARGE;
  872|      0|  }
  873|       |
  874|  1.88k|  head[0] = enc->firstbyte = firstb;
  875|  1.88k|  if(payload_len > 65535) {
  ------------------
  |  Branch (875:6): [True: 0, False: 1.88k]
  ------------------
  876|      0|    head[1] = 127 | WSBIT_MASK;
  ------------------
  |  |   70|      0|#define WSBIT_MASK 0x80
  ------------------
  877|      0|    head[2] = (uint8_t)((payload_len >> 56) & 0xff);
  878|      0|    head[3] = (uint8_t)((payload_len >> 48) & 0xff);
  879|      0|    head[4] = (uint8_t)((payload_len >> 40) & 0xff);
  880|      0|    head[5] = (uint8_t)((payload_len >> 32) & 0xff);
  881|      0|    head[6] = (uint8_t)((payload_len >> 24) & 0xff);
  882|      0|    head[7] = (uint8_t)((payload_len >> 16) & 0xff);
  883|      0|    head[8] = (uint8_t)((payload_len >> 8) & 0xff);
  884|      0|    head[9] = (uint8_t)(payload_len & 0xff);
  885|      0|    hlen = 10;
  886|      0|  }
  887|  1.88k|  else if(payload_len >= 126) {
  ------------------
  |  Branch (887:11): [True: 142, False: 1.74k]
  ------------------
  888|    142|    head[1] = 126 | WSBIT_MASK;
  ------------------
  |  |   70|    142|#define WSBIT_MASK 0x80
  ------------------
  889|    142|    head[2] = (uint8_t)((payload_len >> 8) & 0xff);
  890|    142|    head[3] = (uint8_t)(payload_len & 0xff);
  891|    142|    hlen = 4;
  892|    142|  }
  893|  1.74k|  else {
  894|  1.74k|    head[1] = (uint8_t)payload_len | WSBIT_MASK;
  ------------------
  |  |   70|  1.74k|#define WSBIT_MASK 0x80
  ------------------
  895|  1.74k|    hlen = 2;
  896|  1.74k|  }
  897|       |
  898|  1.88k|  enc->payload_remain = enc->payload_len = payload_len;
  899|  1.88k|  ws_enc_info(enc, data, "sending");
  900|       |
  901|       |  /* 4 bytes random */
  902|       |
  903|  1.88k|  result = Curl_rand(data, (uint8_t *)&enc->mask, sizeof(enc->mask));
  ------------------
  |  |   33|  1.88k|#define Curl_rand(a, b, c) Curl_rand_bytes(a, TRUE, b, c)
  |  |  ------------------
  |  |  |  | 1055|  1.88k|#define TRUE true
  |  |  ------------------
  ------------------
  904|  1.88k|  if(result)
  ------------------
  |  Branch (904:6): [True: 0, False: 1.88k]
  ------------------
  905|      0|    return result;
  906|       |
  907|  1.88k|#ifdef DEBUGBUILD
  908|  1.88k|  if(getenv("CURL_WS_FORCE_ZERO_MASK"))
  ------------------
  |  Branch (908:6): [True: 0, False: 1.88k]
  ------------------
  909|       |    /* force the bit mask to 0x00000000, effectively disabling masking */
  910|      0|    memset(&enc->mask, 0, sizeof(enc->mask));
  911|  1.88k|#endif
  912|       |
  913|       |  /* add 4 bytes mask */
  914|  1.88k|  memcpy(&head[hlen], &enc->mask, 4);
  915|  1.88k|  hlen += 4;
  916|       |  /* reset for payload to come */
  917|  1.88k|  enc->xori = 0;
  918|       |
  919|  1.88k|  result = Curl_bufq_write(out, head, hlen, &nwritten);
  920|  1.88k|  if(result)
  ------------------
  |  Branch (920:6): [True: 0, False: 1.88k]
  ------------------
  921|      0|    return result;
  922|  1.88k|  if(nwritten != hlen) {
  ------------------
  |  Branch (922:6): [True: 0, False: 1.88k]
  ------------------
  923|       |    /* We use a bufq with SOFT_LIMIT, writing should always succeed */
  924|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1081|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (924:5): [Folded, False: 0]
  |  Branch (924:5): [Folded, False: 0]
  ------------------
  925|      0|    return CURLE_SEND_ERROR;
  926|      0|  }
  927|  1.88k|  return CURLE_OK;
  928|  1.88k|}
ws.c:ws_frame_flags2firstbyte:
  233|  3.31k|{
  234|  3.31k|  *pfirstbyte = 0;
  235|  3.31k|  switch(flags & ~CURLWS_OFFSET) {
  ------------------
  |  |   45|  3.31k|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  236|    610|  case 0:
  ------------------
  |  Branch (236:3): [True: 610, False: 2.70k]
  ------------------
  237|    610|    if(contfragment) {
  ------------------
  |  Branch (237:8): [True: 104, False: 506]
  ------------------
  238|    104|      CURL_TRC_WS(data, "no flags given; interpreting as continuation "
  ------------------
  |  |  208|    104|  do {                                                  \
  |  |  209|    104|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    104|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    208|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 104, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 104]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    208|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    104|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    104|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    104|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 104]
  |  |  ------------------
  ------------------
  239|    104|                  "fragment for compatibility");
  240|    104|      *pfirstbyte = (WSBIT_OPCODE_CONT | WSBIT_FIN);
  ------------------
  |  |   60|    104|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                    *pfirstbyte = (WSBIT_OPCODE_CONT | WSBIT_FIN);
  ------------------
  |  |   55|    104|#define WSBIT_FIN          0x80
  ------------------
  241|    104|      return CURLE_OK;
  242|    104|    }
  243|    506|    failf(data, "[WS] no flags given");
  ------------------
  |  |   62|    506|#define failf Curl_failf
  ------------------
  244|    506|    return CURLE_BAD_FUNCTION_ARGUMENT;
  245|    326|  case CURLWS_CONT:
  ------------------
  |  |   42|    326|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (245:3): [True: 326, False: 2.98k]
  ------------------
  246|    326|    if(contfragment) {
  ------------------
  |  Branch (246:8): [True: 100, False: 226]
  ------------------
  247|    100|      infof(data, "[WS] setting CURLWS_CONT flag without message type is "
  ------------------
  |  |  143|    100|  do {                               \
  |  |  144|    100|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  319|    100|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (319:4): [True: 100, False: 0]
  |  |  |  |  |  Branch (319:14): [True: 0, False: 100]
  |  |  |  |  ------------------
  |  |  |  |  320|    100|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    100|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    100|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 100]
  |  |  ------------------
  ------------------
  248|    100|                  "supported for compatibility but highly discouraged");
  249|    100|      *pfirstbyte = WSBIT_OPCODE_CONT;
  ------------------
  |  |   60|    100|#define WSBIT_OPCODE_CONT  0x0
  ------------------
  250|    100|      return CURLE_OK;
  251|    100|    }
  252|    226|    failf(data, "[WS] No ongoing fragmented message to continue");
  ------------------
  |  |   62|    226|#define failf Curl_failf
  ------------------
  253|    226|    return CURLE_BAD_FUNCTION_ARGUMENT;
  254|    387|  case CURLWS_TEXT:
  ------------------
  |  |   40|    387|#define CURLWS_TEXT       (1 << 0)
  ------------------
  |  Branch (254:3): [True: 387, False: 2.92k]
  ------------------
  255|    387|    *pfirstbyte = contfragment ? (WSBIT_OPCODE_CONT | WSBIT_FIN)
  ------------------
  |  |   60|     98|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                  *pfirstbyte = contfragment ? (WSBIT_OPCODE_CONT | WSBIT_FIN)
  ------------------
  |  |   55|     98|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (255:19): [True: 98, False: 289]
  ------------------
  256|    387|                               : (WSBIT_OPCODE_TEXT | WSBIT_FIN);
  ------------------
  |  |   61|    289|#define WSBIT_OPCODE_TEXT  0x1
  ------------------
                                             : (WSBIT_OPCODE_TEXT | WSBIT_FIN);
  ------------------
  |  |   55|    289|#define WSBIT_FIN          0x80
  ------------------
  257|    387|    return CURLE_OK;
  258|    103|  case (CURLWS_TEXT | CURLWS_CONT):
  ------------------
  |  |   40|    103|#define CURLWS_TEXT       (1 << 0)
  ------------------
                case (CURLWS_TEXT | CURLWS_CONT):
  ------------------
  |  |   42|    103|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (258:3): [True: 103, False: 3.21k]
  ------------------
  259|    103|    *pfirstbyte = contfragment ? WSBIT_OPCODE_CONT : WSBIT_OPCODE_TEXT;
  ------------------
  |  |   60|      0|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                  *pfirstbyte = contfragment ? WSBIT_OPCODE_CONT : WSBIT_OPCODE_TEXT;
  ------------------
  |  |   61|    206|#define WSBIT_OPCODE_TEXT  0x1
  ------------------
  |  Branch (259:19): [True: 0, False: 103]
  ------------------
  260|    103|    return CURLE_OK;
  261|    383|  case CURLWS_BINARY:
  ------------------
  |  |   41|    383|#define CURLWS_BINARY     (1 << 1)
  ------------------
  |  Branch (261:3): [True: 383, False: 2.93k]
  ------------------
  262|    383|    *pfirstbyte = contfragment ? (WSBIT_OPCODE_CONT | WSBIT_FIN)
  ------------------
  |  |   60|     85|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                  *pfirstbyte = contfragment ? (WSBIT_OPCODE_CONT | WSBIT_FIN)
  ------------------
  |  |   55|     85|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (262:19): [True: 85, False: 298]
  ------------------
  263|    383|                               : (WSBIT_OPCODE_BIN | WSBIT_FIN);
  ------------------
  |  |   62|    298|#define WSBIT_OPCODE_BIN   0x2
  ------------------
                                             : (WSBIT_OPCODE_BIN | WSBIT_FIN);
  ------------------
  |  |   55|    298|#define WSBIT_FIN          0x80
  ------------------
  264|    383|    return CURLE_OK;
  265|     93|  case (CURLWS_BINARY | CURLWS_CONT):
  ------------------
  |  |   41|     93|#define CURLWS_BINARY     (1 << 1)
  ------------------
                case (CURLWS_BINARY | CURLWS_CONT):
  ------------------
  |  |   42|     93|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (265:3): [True: 93, False: 3.22k]
  ------------------
  266|     93|    *pfirstbyte = contfragment ? WSBIT_OPCODE_CONT : WSBIT_OPCODE_BIN;
  ------------------
  |  |   60|      2|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                  *pfirstbyte = contfragment ? WSBIT_OPCODE_CONT : WSBIT_OPCODE_BIN;
  ------------------
  |  |   62|    184|#define WSBIT_OPCODE_BIN   0x2
  ------------------
  |  Branch (266:19): [True: 2, False: 91]
  ------------------
  267|     93|    return CURLE_OK;
  268|     84|  case CURLWS_CLOSE:
  ------------------
  |  |   43|     84|#define CURLWS_CLOSE      (1 << 3)
  ------------------
  |  Branch (268:3): [True: 84, False: 3.23k]
  ------------------
  269|     84|    *pfirstbyte = WSBIT_OPCODE_CLOSE | WSBIT_FIN;
  ------------------
  |  |   63|     84|#define WSBIT_OPCODE_CLOSE 0x8
  ------------------
                  *pfirstbyte = WSBIT_OPCODE_CLOSE | WSBIT_FIN;
  ------------------
  |  |   55|     84|#define WSBIT_FIN          0x80
  ------------------
  270|     84|    return CURLE_OK;
  271|    162|  case (CURLWS_CLOSE | CURLWS_CONT):
  ------------------
  |  |   43|    162|#define CURLWS_CLOSE      (1 << 3)
  ------------------
                case (CURLWS_CLOSE | CURLWS_CONT):
  ------------------
  |  |   42|    162|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (271:3): [True: 162, False: 3.15k]
  ------------------
  272|    162|    failf(data, "[WS] CLOSE frame must not be fragmented");
  ------------------
  |  |   62|    162|#define failf Curl_failf
  ------------------
  273|    162|    return CURLE_BAD_FUNCTION_ARGUMENT;
  274|     91|  case CURLWS_PING:
  ------------------
  |  |   44|     91|#define CURLWS_PING       (1 << 4)
  ------------------
  |  Branch (274:3): [True: 91, False: 3.22k]
  ------------------
  275|     91|    *pfirstbyte = WSBIT_OPCODE_PING | WSBIT_FIN;
  ------------------
  |  |   64|     91|#define WSBIT_OPCODE_PING  0x9
  ------------------
                  *pfirstbyte = WSBIT_OPCODE_PING | WSBIT_FIN;
  ------------------
  |  |   55|     91|#define WSBIT_FIN          0x80
  ------------------
  276|     91|    return CURLE_OK;
  277|    172|  case (CURLWS_PING | CURLWS_CONT):
  ------------------
  |  |   44|    172|#define CURLWS_PING       (1 << 4)
  ------------------
                case (CURLWS_PING | CURLWS_CONT):
  ------------------
  |  |   42|    172|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (277:3): [True: 172, False: 3.14k]
  ------------------
  278|    172|    failf(data, "[WS] PING frame must not be fragmented");
  ------------------
  |  |   62|    172|#define failf Curl_failf
  ------------------
  279|    172|    return CURLE_BAD_FUNCTION_ARGUMENT;
  280|    543|  case CURLWS_PONG:
  ------------------
  |  |   60|    543|#define CURLWS_PONG       (1 << 6)
  ------------------
  |  Branch (280:3): [True: 543, False: 2.77k]
  ------------------
  281|    543|    *pfirstbyte = WSBIT_OPCODE_PONG | WSBIT_FIN;
  ------------------
  |  |   65|    543|#define WSBIT_OPCODE_PONG  0xa
  ------------------
                  *pfirstbyte = WSBIT_OPCODE_PONG | WSBIT_FIN;
  ------------------
  |  |   55|    543|#define WSBIT_FIN          0x80
  ------------------
  282|    543|    return CURLE_OK;
  283|    176|  case (CURLWS_PONG | CURLWS_CONT):
  ------------------
  |  |   60|    176|#define CURLWS_PONG       (1 << 6)
  ------------------
                case (CURLWS_PONG | CURLWS_CONT):
  ------------------
  |  |   42|    176|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (283:3): [True: 176, False: 3.13k]
  ------------------
  284|    176|    failf(data, "[WS] PONG frame must not be fragmented");
  ------------------
  |  |   62|    176|#define failf Curl_failf
  ------------------
  285|    176|    return CURLE_BAD_FUNCTION_ARGUMENT;
  286|    184|  default:
  ------------------
  |  Branch (286:3): [True: 184, False: 3.13k]
  ------------------
  287|    184|    failf(data, "[WS] unknown flags: %x", flags);
  ------------------
  |  |   62|    184|#define failf Curl_failf
  ------------------
  288|    184|    return CURLE_BAD_FUNCTION_ARGUMENT;
  289|  3.31k|  }
  290|  3.31k|}
ws.c:ws_flush:
 1629|  3.37k|{
 1630|  3.37k|  if(!Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1630:6): [True: 2.27k, False: 1.10k]
  ------------------
 1631|  2.27k|    CURLcode result;
 1632|  2.27k|    const uint8_t *out;
 1633|  2.27k|    size_t outlen, n;
 1634|  2.27k|#ifdef DEBUGBUILD
 1635|       |    /* Simulate a blocking send after this chunk has been sent */
 1636|  2.27k|    bool eagain_next = FALSE;
  ------------------
  |  | 1058|  2.27k|#define FALSE false
  ------------------
 1637|  2.27k|    size_t chunk_egain = 0;
 1638|  2.27k|    const char *p = getenv("CURL_WS_CHUNK_EAGAIN");
 1639|  2.27k|    if(p) {
  ------------------
  |  Branch (1639:8): [True: 0, False: 2.27k]
  ------------------
 1640|      0|      curl_off_t l;
 1641|      0|      if(!curlx_str_number(&p, &l, 1 * 1024 * 1024))
  ------------------
  |  Branch (1641:10): [True: 0, False: 0]
  ------------------
 1642|      0|        chunk_egain = (size_t)l;
 1643|      0|    }
 1644|  2.27k|#endif
 1645|       |
 1646|  4.01k|    while(Curl_bufq_peek(&ws->sendbuf, &out, &outlen)) {
  ------------------
  |  Branch (1646:11): [True: 2.27k, False: 1.74k]
  ------------------
 1647|  2.27k|#ifdef DEBUGBUILD
 1648|  2.27k|      if(eagain_next)
  ------------------
  |  Branch (1648:10): [True: 0, False: 2.27k]
  ------------------
 1649|      0|        return CURLE_AGAIN;
 1650|  2.27k|      if(chunk_egain && (outlen > chunk_egain)) {
  ------------------
  |  Branch (1650:10): [True: 0, False: 2.27k]
  |  Branch (1650:25): [True: 0, False: 0]
  ------------------
 1651|      0|        outlen = chunk_egain;
 1652|      0|        eagain_next = TRUE;
  ------------------
  |  | 1055|      0|#define TRUE true
  ------------------
 1653|      0|      }
 1654|  2.27k|#endif
 1655|  2.27k|      if(blocking) {
  ------------------
  |  Branch (1655:10): [True: 0, False: 2.27k]
  ------------------
 1656|      0|        result = ws_send_raw_blocking(data, ws, (const char *)out, outlen);
 1657|      0|        n = result ? 0 : outlen;
  ------------------
  |  Branch (1657:13): [True: 0, False: 0]
  ------------------
 1658|      0|      }
 1659|  2.27k|      else if(data->set.connect_only || Curl_is_in_callback(data))
  ------------------
  |  Branch (1659:15): [True: 2.15k, False: 119]
  |  Branch (1659:41): [True: 0, False: 119]
  ------------------
 1660|  2.15k|        result = Curl_senddata(data, out, outlen, &n);
 1661|    119|      else {
 1662|    119|        result = Curl_xfer_send(data, out, outlen, FALSE, &n);
  ------------------
  |  | 1058|    119|#define FALSE false
  ------------------
 1663|    119|        if(!result && !n && outlen)
  ------------------
  |  Branch (1663:12): [True: 119, False: 0]
  |  Branch (1663:23): [True: 23, False: 96]
  |  Branch (1663:29): [True: 23, False: 0]
  ------------------
 1664|     23|          result = CURLE_AGAIN;
 1665|    119|      }
 1666|       |
 1667|  2.27k|      if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (1667:10): [True: 531, False: 1.74k]
  ------------------
 1668|    531|        CURL_TRC_WS(data, "flush EAGAIN, %zu bytes remain in buffer",
  ------------------
  |  |  208|    531|  do {                                                  \
  |  |  209|    531|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    531|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.06k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 531, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 531]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.06k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    531|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    531|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    531|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 531]
  |  |  ------------------
  ------------------
 1669|    531|                    Curl_bufq_len(&ws->sendbuf));
 1670|    531|        return result;
 1671|    531|      }
 1672|  1.74k|      else if(result) {
  ------------------
  |  Branch (1672:15): [True: 0, False: 1.74k]
  ------------------
 1673|      0|        failf(data, "[WS] flush, write error %d", result);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1674|      0|        return result;
 1675|      0|      }
 1676|  1.74k|      else {
 1677|  1.74k|        CURL_TRC_WS(data, "flushed %zu bytes", n);
  ------------------
  |  |  208|  1.74k|  do {                                                  \
  |  |  209|  1.74k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|  1.74k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  3.48k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 1.74k, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 1.74k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  3.48k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  1.74k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.74k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  1.74k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.74k]
  |  |  ------------------
  ------------------
 1678|  1.74k|        Curl_bufq_skip(&ws->sendbuf, n);
 1679|  1.74k|      }
 1680|  2.27k|    }
 1681|  2.27k|  }
 1682|  2.84k|  return CURLE_OK;
 1683|  3.37k|}
ws.c:ws_send_raw_blocking:
 1688|     22|{
 1689|     22|  CURLcode result = CURLE_OK;
 1690|     22|  size_t nwritten;
 1691|       |
 1692|     22|  if(!data)
  ------------------
  |  Branch (1692:6): [True: 0, False: 22]
  ------------------
 1693|      0|    return result;
 1694|       |
 1695|     22|  (void)ws;
 1696|     44|  while(buflen) {
  ------------------
  |  Branch (1696:9): [True: 29, False: 15]
  ------------------
 1697|     29|    result = Curl_xfer_send(data, buffer, buflen, FALSE, &nwritten);
  ------------------
  |  | 1058|     29|#define FALSE false
  ------------------
 1698|     29|    if(result)
  ------------------
  |  Branch (1698:8): [True: 0, False: 29]
  ------------------
 1699|      0|      return result;
 1700|     29|    DEBUGASSERT(nwritten <= buflen);
  ------------------
  |  | 1081|     29|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1700:5): [True: 0, False: 29]
  |  Branch (1700:5): [True: 29, False: 0]
  ------------------
 1701|     29|    buffer += nwritten;
 1702|     29|    buflen -= nwritten;
 1703|     29|    if(buflen) {
  ------------------
  |  Branch (1703:8): [True: 14, False: 15]
  ------------------
 1704|     14|      curl_socket_t sock = data->conn->sock[FIRSTSOCKET];
  ------------------
  |  |  303|     14|#define FIRSTSOCKET     0
  ------------------
 1705|     14|      timediff_t left_ms;
 1706|     14|      int ev;
 1707|       |
 1708|     14|      CURL_TRC_WS(data, "ws_send_raw_blocking() partial, %zu left to send",
  ------------------
  |  |  208|     14|  do {                                                  \
  |  |  209|     14|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|     14|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     28|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 14, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 14]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     28|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     14|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|     14|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|     14|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 14]
  |  |  ------------------
  ------------------
 1709|     14|                  buflen);
 1710|     14|      left_ms = Curl_timeleft_ms(data);
 1711|     14|      if(left_ms < 0) {
  ------------------
  |  Branch (1711:10): [True: 7, False: 7]
  ------------------
 1712|      7|        failf(data, "[WS] Timeout waiting for socket becoming writable");
  ------------------
  |  |   62|      7|#define failf Curl_failf
  ------------------
 1713|      7|        return CURLE_SEND_ERROR;
 1714|      7|      }
 1715|       |
 1716|       |      /* POLLOUT socket */
 1717|      7|      if(sock == CURL_SOCKET_BAD)
  ------------------
  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1717:10): [True: 0, False: 7]
  ------------------
 1718|      0|        return CURLE_SEND_ERROR;
 1719|      7|      ev = SOCKET_WRITABLE(sock, left_ms ? left_ms : 500);
  ------------------
  |  |   79|     14|  Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
  |  |  ------------------
  |  |  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  |  |  ------------------
  |  |                 Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
  |  |  ------------------
  |  |  |  |  145|      7|#define CURL_SOCKET_BAD (-1)
  |  |  ------------------
  |  |  |  Branch (79:58): [True: 7, False: 0]
  |  |  ------------------
  ------------------
 1720|      7|      if(ev < 0) {
  ------------------
  |  Branch (1720:10): [True: 0, False: 7]
  ------------------
 1721|      0|        failf(data, "[WS] Error while waiting for socket becoming writable");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1722|      0|        return CURLE_SEND_ERROR;
 1723|      0|      }
 1724|      7|    }
 1725|     29|  }
 1726|     15|  return result;
 1727|     22|}
ws.c:ws_send_raw:
 1731|     46|{
 1732|     46|  struct websocket *ws;
 1733|     46|  CURLcode result;
 1734|       |
 1735|     46|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|     46|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1736|     46|  if(!ws) {
  ------------------
  |  Branch (1736:6): [True: 0, False: 46]
  ------------------
 1737|      0|    failf(data, "[WS] Not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1738|      0|    return CURLE_SEND_ERROR;
 1739|      0|  }
 1740|     46|  if(!buflen)
  ------------------
  |  Branch (1740:6): [True: 0, False: 46]
  ------------------
 1741|      0|    return CURLE_OK;
 1742|       |
 1743|     46|  if(Curl_is_in_callback(data)) {
  ------------------
  |  Branch (1743:6): [True: 22, False: 24]
  ------------------
 1744|       |    /* When invoked from inside callbacks, we do a blocking send as the
 1745|       |     * callback will probably not implement partial writes that may then
 1746|       |     * mess up the ws framing subsequently.
 1747|       |     * We need any pending data to be flushed before sending. */
 1748|     22|    result = ws_flush(data, ws, TRUE);
  ------------------
  |  | 1055|     22|#define TRUE true
  ------------------
 1749|     22|    if(result)
  ------------------
  |  Branch (1749:8): [True: 0, False: 22]
  ------------------
 1750|      0|      return result;
 1751|     22|    result = ws_send_raw_blocking(data, ws, buffer, buflen);
 1752|     22|    if(!result)
  ------------------
  |  Branch (1752:8): [True: 15, False: 7]
  ------------------
 1753|     15|      *pnwritten = buflen;
 1754|     22|  }
 1755|     24|  else {
 1756|       |    /* We need any pending data to be sent or EAGAIN this call. */
 1757|     24|    result = ws_flush(data, ws, FALSE);
  ------------------
  |  | 1058|     24|#define FALSE false
  ------------------
 1758|     24|    if(result)
  ------------------
  |  Branch (1758:8): [True: 0, False: 24]
  ------------------
 1759|      0|      return result;
 1760|     24|    result = Curl_senddata(data, buffer, buflen, pnwritten);
 1761|     24|  }
 1762|       |
 1763|     46|  CURL_TRC_WS(data, "ws_send_raw(len=%zu) -> %d, %zu",
  ------------------
  |  |  208|     46|  do {                                                  \
  |  |  209|     46|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|     46|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|     92|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 46, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 46]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|     92|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     46|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|     46|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|     46|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 46]
  |  |  ------------------
  ------------------
 1764|     46|              buflen, result, *pnwritten);
 1765|     46|  return result;
 1766|     46|}
ws.c:ws_enc_send:
 1031|  2.66k|{
 1032|  2.66k|  size_t n;
 1033|  2.66k|  CURLcode result = CURLE_OK;
 1034|       |
 1035|  2.66k|  DEBUGASSERT(!data->set.ws_raw_mode);
  ------------------
  |  | 1081|  2.66k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1035:3): [True: 0, False: 2.66k]
  |  Branch (1035:3): [True: 2.66k, False: 0]
  ------------------
 1036|  2.66k|  *pnsent = 0;
 1037|       |
 1038|  2.66k|  if(ws->enc.payload_remain || !Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1038:6): [True: 1.73k, False: 925]
  |  Branch (1038:32): [True: 74, False: 851]
  ------------------
 1039|       |    /* a frame is ongoing with payload buffered or more payload
 1040|       |     * that needs to be encoded into the buffer */
 1041|  1.81k|    if(buflen < ws->sendbuf_payload) {
  ------------------
  |  Branch (1041:8): [True: 0, False: 1.81k]
  ------------------
 1042|       |      /* We have been called with LESS buffer data than before. This
 1043|       |       * is not how it is supposed too work. */
 1044|      0|      failf(data, "[WS] curl_ws_send() called with smaller 'buflen' than "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1045|      0|            "bytes already buffered in previous call, %zu vs %zu",
 1046|      0|            buflen, ws->sendbuf_payload);
 1047|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1048|      0|    }
 1049|  1.81k|    if((curl_off_t)buflen >
  ------------------
  |  Branch (1049:8): [True: 76, False: 1.73k]
  ------------------
 1050|  1.81k|       (ws->enc.payload_remain + (curl_off_t)ws->sendbuf_payload)) {
 1051|       |      /* too large buflen beyond payload length of frame */
 1052|     76|      failf(data, "[WS] unaligned frame size (sending %zu instead of "
  ------------------
  |  |   62|     76|#define failf Curl_failf
  ------------------
 1053|     76|            "%" FMT_OFF_T ")", buflen,
 1054|     76|            (curl_off_t)(ws->enc.payload_remain + ws->sendbuf_payload));
 1055|     76|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1056|     76|    }
 1057|  1.81k|  }
 1058|    851|  else {
 1059|    851|    result = ws_flush(data, ws, Curl_is_in_callback(data));
 1060|    851|    if(result)
  ------------------
  |  Branch (1060:8): [True: 0, False: 851]
  ------------------
 1061|      0|      return result;
 1062|       |
 1063|    851|    result = ws_enc_write_head(data, ws, &ws->enc, flags,
 1064|    851|                               (flags & CURLWS_OFFSET) ?
  ------------------
  |  |   45|    851|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  |  Branch (1064:32): [True: 0, False: 851]
  ------------------
 1065|    851|                               fragsize : (curl_off_t)buflen,
 1066|    851|                               &ws->sendbuf);
 1067|    851|    if(result) {
  ------------------
  |  Branch (1067:8): [True: 850, False: 1]
  ------------------
 1068|    850|      CURL_TRC_WS(data, "curl_ws_send(), error writing frame head %d", result);
  ------------------
  |  |  208|    850|  do {                                                  \
  |  |  209|    850|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    850|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|  1.70k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 850, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 850]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|  1.70k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    850|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    850|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    850|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 850]
  |  |  ------------------
  ------------------
 1069|    850|      return result;
 1070|    850|    }
 1071|    851|  }
 1072|       |
 1073|       |  /* While there is either sendbuf to flush OR more payload to encode... */
 1074|  3.06k|  while(!Curl_bufq_is_empty(&ws->sendbuf) || (buflen > ws->sendbuf_payload)) {
  ------------------
  |  Branch (1074:9): [True: 1.65k, False: 1.41k]
  |  Branch (1074:46): [True: 84, False: 1.33k]
  ------------------
 1075|       |    /* Try to add more payload to sendbuf */
 1076|  1.73k|    if(buflen > ws->sendbuf_payload) {
  ------------------
  |  Branch (1076:8): [True: 1.35k, False: 376]
  ------------------
 1077|  1.35k|      size_t prev_len = Curl_bufq_len(&ws->sendbuf);
 1078|  1.35k|      result = ws_enc_write_payload(&ws->enc, data,
 1079|  1.35k|                                    buffer + ws->sendbuf_payload,
 1080|  1.35k|                                    buflen - ws->sendbuf_payload,
 1081|  1.35k|                                    &ws->sendbuf, &n);
 1082|  1.35k|      if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (1082:10): [True: 0, False: 1.35k]
  |  Branch (1082:20): [True: 0, False: 0]
  ------------------
 1083|      0|        return result;
 1084|  1.35k|      ws->sendbuf_payload += Curl_bufq_len(&ws->sendbuf) - prev_len;
 1085|  1.35k|      if(!ws->sendbuf_payload) {
  ------------------
  |  Branch (1085:10): [True: 0, False: 1.35k]
  ------------------
 1086|      0|        return CURLE_AGAIN;
 1087|      0|      }
 1088|  1.35k|    }
 1089|       |
 1090|       |    /* flush, blocking when in callback */
 1091|  1.73k|    result = ws_flush(data, ws, Curl_is_in_callback(data));
 1092|  1.73k|    if(!result && ws->sendbuf_payload > 0) {
  ------------------
  |  Branch (1092:8): [True: 1.33k, False: 403]
  |  Branch (1092:19): [True: 1.33k, False: 0]
  ------------------
 1093|  1.33k|      *pnsent += ws->sendbuf_payload;
 1094|  1.33k|      buffer += ws->sendbuf_payload;
 1095|  1.33k|      buflen -= ws->sendbuf_payload;
 1096|  1.33k|      ws->sendbuf_payload = 0;
 1097|  1.33k|    }
 1098|    403|    else if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (1098:13): [True: 403, False: 0]
  ------------------
 1099|    403|      if(ws->sendbuf_payload > Curl_bufq_len(&ws->sendbuf)) {
  ------------------
  |  Branch (1099:10): [True: 0, False: 403]
  ------------------
 1100|       |        /* blocked, part of payload bytes remain, report length
 1101|       |         * that we managed to send. */
 1102|      0|        size_t flushed = (ws->sendbuf_payload - Curl_bufq_len(&ws->sendbuf));
 1103|      0|        *pnsent += flushed;
 1104|      0|        ws->sendbuf_payload -= flushed;
 1105|      0|        return CURLE_OK;
 1106|      0|      }
 1107|    403|      else {
 1108|       |        /* blocked before sending headers or 1st payload byte. We cannot report
 1109|       |         * OK on 0-length send (caller counts only payload) and EAGAIN */
 1110|    403|        CURL_TRC_WS(data, "EAGAIN flushing sendbuf, payload_encoded: %zu/%zu",
  ------------------
  |  |  208|    403|  do {                                                  \
  |  |  209|    403|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  326|    403|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  319|    806|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (319:4): [True: 403, False: 0]
  |  |  |  |  |  |  |  Branch (319:14): [True: 0, False: 403]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  320|    806|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (320:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  321|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (321:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    403|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    403|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    403|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 403]
  |  |  ------------------
  ------------------
 1111|    403|                    ws->sendbuf_payload, buflen);
 1112|    403|        DEBUGASSERT(*pnsent == 0);
  ------------------
  |  | 1081|    403|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1112:9): [True: 0, False: 403]
  |  Branch (1112:9): [True: 403, False: 0]
  ------------------
 1113|    403|        return CURLE_AGAIN;
 1114|    403|      }
 1115|    403|    }
 1116|      0|    else
 1117|      0|      return result;  /* real error sending the data */
 1118|  1.73k|  }
 1119|  1.33k|  return CURLE_OK;
 1120|  1.73k|}
ws.c:ws_enc_write_head:
  936|  2.85k|{
  937|       |  /* starting a new frame, we want a clean sendbuf.
  938|       |   * Any pending control frame we can add now as part of the flush. */
  939|  2.85k|  if(ws->pending.type) {
  ------------------
  |  Branch (939:6): [True: 0, False: 2.85k]
  ------------------
  940|      0|    CURLcode result = ws_enc_add_pending(data, ws);
  941|      0|    if(result)
  ------------------
  |  Branch (941:8): [True: 0, False: 0]
  ------------------
  942|      0|      return result;
  943|      0|  }
  944|  2.85k|  return ws_enc_add_frame(data, enc, flags, payload_len, out);
  945|  2.85k|}
ws.c:ws_setup_conn:
 1847|  1.58k|{
 1848|       |  /* WebSocket is 1.1 only (for now) */
 1849|  1.58k|  data->state.http_neg.accept_09 = FALSE;
  ------------------
  |  | 1058|  1.58k|#define FALSE false
  ------------------
 1850|  1.58k|  data->state.http_neg.only_10 = FALSE;
  ------------------
  |  | 1058|  1.58k|#define FALSE false
  ------------------
 1851|  1.58k|  data->state.http_neg.wanted = CURL_HTTP_V1x;
  ------------------
  |  |   40|  1.58k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 1852|  1.58k|  data->state.http_neg.allowed = CURL_HTTP_V1x;
  ------------------
  |  |   40|  1.58k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 1853|  1.58k|  return Curl_http_setup_conn(data, conn);
 1854|  1.58k|}

_ZN4curl6fuzzer5proto8ScenarioC2EPN6google8protobuf5ArenaE:
  413|  7.93k|    : ::google::protobuf::Message(arena) {
  414|  7.93k|#endif  // PROTOBUF_CUSTOM_VTABLE
  415|  7.93k|  SharedCtor(arena);
  416|       |  // @@protoc_insertion_point(arena_constructor:curl.fuzzer.proto.Scenario)
  417|  7.93k|}
_ZN4curl6fuzzer5proto8ScenarioD2Ev:
  463|  7.93k|Scenario::~Scenario() {
  464|       |  // @@protoc_insertion_point(destructor:curl.fuzzer.proto.Scenario)
  465|  7.93k|  SharedDtor(*this);
  466|  7.93k|}
_ZNK4curl6fuzzer5proto8Scenario12GetClassDataEv:
  518|  55.1k|const ::google::protobuf::internal::ClassData* Scenario::GetClassData() const {
  519|  55.1k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  520|  55.1k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  521|  55.1k|  return _class_data_.base();
  522|  55.1k|}
_ZN4curl6fuzzer5proto8Scenario5ClearEv:
  576|  15.9k|PROTOBUF_NOINLINE void Scenario::Clear() {
  577|       |// @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.Scenario)
  578|  15.9k|  ::google::protobuf::internal::TSanWrite(&_impl_);
  579|  15.9k|  ::uint32_t cached_has_bits = 0;
  580|       |  // Prevent compiler warnings about cached_has_bits being unused
  581|  15.9k|  (void) cached_has_bits;
  582|       |
  583|  15.9k|  _impl_.options_.Clear();
  584|  15.9k|  _impl_.host_path_.ClearToEmpty();
  585|  15.9k|  cached_has_bits = _impl_._has_bits_[0];
  586|  15.9k|  if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (586:7): [True: 48, False: 15.8k]
  ------------------
  587|     48|    ABSL_DCHECK(_impl_.connection_ != nullptr);
  ------------------
  |  |   47|     48|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|     48|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     96|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     48|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     96|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     96|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 48, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     48|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 48]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     96|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 48, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 48]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 48]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     96|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     96|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  588|     48|    _impl_.connection_->Clear();
  589|     48|  }
  590|  15.9k|  _impl_.scheme_ = 0;
  591|  15.9k|  _impl_._has_bits_.Clear();
  592|  15.9k|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  593|  15.9k|}
_ZN4curl6fuzzer5proto9SetOptionD2Ev:
  824|  70.3k|SetOption::~SetOption() {
  825|       |  // @@protoc_insertion_point(destructor:curl.fuzzer.proto.SetOption)
  826|  70.3k|  SharedDtor(*this);
  827|  70.3k|}
_ZN4curl6fuzzer5proto9SetOption11clear_valueEv:
  838|  30.3k|void SetOption::clear_value() {
  839|       |// @@protoc_insertion_point(one_of_clear_start:curl.fuzzer.proto.SetOption)
  840|  30.3k|  ::google::protobuf::internal::TSanWrite(&_impl_);
  841|  30.3k|  switch (value_case()) {
  ------------------
  |  Branch (841:11): [True: 30.3k, False: 0]
  ------------------
  842|  4.97k|    case kStringValue: {
  ------------------
  |  Branch (842:5): [True: 4.97k, False: 25.3k]
  ------------------
  843|  4.97k|      _impl_.value_.string_value_.Destroy();
  844|  4.97k|      break;
  845|      0|    }
  846|  11.2k|    case kUintValue: {
  ------------------
  |  Branch (846:5): [True: 11.2k, False: 19.1k]
  ------------------
  847|       |      // No need to clear
  848|  11.2k|      break;
  849|      0|    }
  850|  10.6k|    case kBoolValue: {
  ------------------
  |  Branch (850:5): [True: 10.6k, False: 19.6k]
  ------------------
  851|       |      // No need to clear
  852|  10.6k|      break;
  853|      0|    }
  854|  3.49k|    case VALUE_NOT_SET: {
  ------------------
  |  Branch (854:5): [True: 3.49k, False: 26.8k]
  ------------------
  855|  3.49k|      break;
  856|      0|    }
  857|  30.3k|  }
  858|  30.3k|  _impl_._oneof_case_[0] = VALUE_NOT_SET;
  859|  30.3k|}
_ZNK4curl6fuzzer5proto9SetOption12GetClassDataEv:
  892|   395k|const ::google::protobuf::internal::ClassData* SetOption::GetClassData() const {
  893|   395k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  894|   395k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  895|   395k|  return _class_data_.base();
  896|   395k|}
_ZN4curl6fuzzer5proto9SetOption5ClearEv:
  940|  4.47k|PROTOBUF_NOINLINE void SetOption::Clear() {
  941|       |// @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.SetOption)
  942|  4.47k|  ::google::protobuf::internal::TSanWrite(&_impl_);
  943|  4.47k|  ::uint32_t cached_has_bits = 0;
  944|       |  // Prevent compiler warnings about cached_has_bits being unused
  945|  4.47k|  (void) cached_has_bits;
  946|       |
  947|  4.47k|  _impl_.option_id_ = 0;
  948|  4.47k|  clear_value();
  949|  4.47k|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  950|  4.47k|}
_ZN4curl6fuzzer5proto10ConnectionD2Ev:
 1183|  5.61k|Connection::~Connection() {
 1184|       |  // @@protoc_insertion_point(destructor:curl.fuzzer.proto.Connection)
 1185|  5.61k|  SharedDtor(*this);
 1186|  5.61k|}
_ZNK4curl6fuzzer5proto10Connection12GetClassDataEv:
 1243|  33.4k|const ::google::protobuf::internal::ClassData* Connection::GetClassData() const {
 1244|  33.4k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 1245|  33.4k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 1246|  33.4k|  return _class_data_.base();
 1247|  33.4k|}
_ZN4curl6fuzzer5proto10Connection5ClearEv:
 1311|     48|PROTOBUF_NOINLINE void Connection::Clear() {
 1312|       |// @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.Connection)
 1313|     48|  ::google::protobuf::internal::TSanWrite(&_impl_);
 1314|     48|  ::uint32_t cached_has_bits = 0;
 1315|       |  // Prevent compiler warnings about cached_has_bits being unused
 1316|     48|  (void) cached_has_bits;
 1317|       |
 1318|     48|  _impl_.on_readable_.Clear();
 1319|     48|  _impl_.server_frames_.Clear();
 1320|     48|  _impl_.initial_response_.ClearToEmpty();
 1321|     48|  cached_has_bits = _impl_._has_bits_[0];
 1322|     48|  if (cached_has_bits & 0x00000003u) {
  ------------------
  |  Branch (1322:7): [True: 9, False: 39]
  ------------------
 1323|      9|    if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (1323:9): [True: 7, False: 2]
  ------------------
 1324|      7|      ABSL_DCHECK(_impl_.backpressure_ != nullptr);
  ------------------
  |  |   47|      7|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|      7|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     14|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      7|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     14|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     14|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      7|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     14|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 7]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 7]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     14|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     14|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1325|      7|      _impl_.backpressure_->Clear();
 1326|      7|    }
 1327|      9|    if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (1327:9): [True: 3, False: 6]
  ------------------
 1328|      3|      ABSL_DCHECK(_impl_.manual_probes_ != nullptr);
  ------------------
  |  |   47|      3|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|      3|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      6|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      3|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      6|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      6|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 3, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      3|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 3]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      6|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 3, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 3]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 3]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      6|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      6|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1329|      3|      _impl_.manual_probes_->Clear();
 1330|      3|    }
 1331|      9|  }
 1332|     48|  _impl_._has_bits_.Clear();
 1333|     48|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
 1334|     48|}
_ZN4curl6fuzzer5proto14WsManualProbesD2Ev:
 1557|  1.26k|WsManualProbes::~WsManualProbes() {
 1558|       |  // @@protoc_insertion_point(destructor:curl.fuzzer.proto.WsManualProbes)
 1559|  1.26k|  SharedDtor(*this);
 1560|  1.26k|}
_ZNK4curl6fuzzer5proto14WsManualProbes12GetClassDataEv:
 1598|  7.59k|const ::google::protobuf::internal::ClassData* WsManualProbes::GetClassData() const {
 1599|  7.59k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 1600|  7.59k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 1601|  7.59k|  return _class_data_.base();
 1602|  7.59k|}
_ZN4curl6fuzzer5proto14WsManualProbes5ClearEv:
 1650|      3|PROTOBUF_NOINLINE void WsManualProbes::Clear() {
 1651|       |// @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.WsManualProbes)
 1652|      3|  ::google::protobuf::internal::TSanWrite(&_impl_);
 1653|      3|  ::uint32_t cached_has_bits = 0;
 1654|       |  // Prevent compiler warnings about cached_has_bits being unused
 1655|      3|  (void) cached_has_bits;
 1656|       |
 1657|      3|  ::memset(&_impl_.flag_matrix_, 0, static_cast<::size_t>(
 1658|      3|      reinterpret_cast<char*>(&_impl_.raw_send_) -
 1659|      3|      reinterpret_cast<char*>(&_impl_.flag_matrix_)) + sizeof(_impl_.raw_send_));
 1660|      3|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
 1661|      3|}
_ZN4curl6fuzzer5proto18BackpressureConfigD2Ev:
 1817|  1.74k|BackpressureConfig::~BackpressureConfig() {
 1818|       |  // @@protoc_insertion_point(destructor:curl.fuzzer.proto.BackpressureConfig)
 1819|  1.74k|  SharedDtor(*this);
 1820|  1.74k|}
_ZNK4curl6fuzzer5proto18BackpressureConfig12GetClassDataEv:
 1858|  10.3k|const ::google::protobuf::internal::ClassData* BackpressureConfig::GetClassData() const {
 1859|  10.3k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 1860|  10.3k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 1861|  10.3k|  return _class_data_.base();
 1862|  10.3k|}
_ZN4curl6fuzzer5proto18BackpressureConfig5ClearEv:
 1903|      7|PROTOBUF_NOINLINE void BackpressureConfig::Clear() {
 1904|       |// @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.BackpressureConfig)
 1905|      7|  ::google::protobuf::internal::TSanWrite(&_impl_);
 1906|      7|  ::uint32_t cached_has_bits = 0;
 1907|       |  // Prevent compiler warnings about cached_has_bits being unused
 1908|      7|  (void) cached_has_bits;
 1909|       |
 1910|      7|  ::memset(&_impl_.recv_buf_bytes_, 0, static_cast<::size_t>(
 1911|      7|      reinterpret_cast<char*>(&_impl_.drain_limit_) -
 1912|      7|      reinterpret_cast<char*>(&_impl_.recv_buf_bytes_)) + sizeof(_impl_.drain_limit_));
 1913|      7|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
 1914|      7|}
_ZN4curl6fuzzer5proto14WebSocketFrameD2Ev:
 2083|  7.65k|WebSocketFrame::~WebSocketFrame() {
 2084|       |  // @@protoc_insertion_point(destructor:curl.fuzzer.proto.WebSocketFrame)
 2085|  7.65k|  SharedDtor(*this);
 2086|  7.65k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame12GetClassDataEv:
 2125|  41.7k|const ::google::protobuf::internal::ClassData* WebSocketFrame::GetClassData() const {
 2126|  41.7k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 2127|  41.7k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 2128|  41.7k|  return _class_data_.base();
 2129|  41.7k|}
_ZN4curl6fuzzer5proto14WebSocketFrame5ClearEv:
 2219|    689|PROTOBUF_NOINLINE void WebSocketFrame::Clear() {
 2220|       |// @@protoc_insertion_point(message_clear_start:curl.fuzzer.proto.WebSocketFrame)
 2221|    689|  ::google::protobuf::internal::TSanWrite(&_impl_);
 2222|    689|  ::uint32_t cached_has_bits = 0;
 2223|       |  // Prevent compiler warnings about cached_has_bits being unused
 2224|    689|  (void) cached_has_bits;
 2225|       |
 2226|    689|  _impl_.payload_.ClearToEmpty();
 2227|    689|  ::memset(&_impl_.fin_, 0, static_cast<::size_t>(
 2228|    689|      reinterpret_cast<char*>(&_impl_.length_form_) -
 2229|    689|      reinterpret_cast<char*>(&_impl_.fin_)) + sizeof(_impl_.length_form_));
 2230|    689|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
 2231|    689|}
_ZN4curl6fuzzer5proto8Scenario10SharedCtorEPN6google8protobuf5ArenaE:
  454|  7.93k|inline void Scenario::SharedCtor(::_pb::Arena* arena) {
  455|  7.93k|  new (&_impl_) Impl_(internal_visibility(), arena);
  456|  7.93k|  ::memset(reinterpret_cast<char *>(&_impl_) +
  457|  7.93k|               offsetof(Impl_, connection_),
  458|  7.93k|           0,
  459|  7.93k|           offsetof(Impl_, scheme_) -
  460|       |               offsetof(Impl_, connection_) +
  461|  7.93k|               sizeof(Impl_::scheme_));
  462|  7.93k|}
_ZN4curl6fuzzer5proto8Scenario5Impl_C2EN6google8protobuf8internal18InternalVisibilityEPNS5_5ArenaE:
  450|  7.93k|      : _cached_size_{0},
  451|  7.93k|        options_{visibility, arena},
  452|  7.93k|        host_path_(arena) {}
_ZN4curl6fuzzer5proto8Scenario10SharedDtorERN6google8protobuf11MessageLiteE:
  467|  7.93k|inline void Scenario::SharedDtor(MessageLite& self) {
  468|  7.93k|  Scenario& this_ = static_cast<Scenario&>(self);
  469|  7.93k|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  470|  7.93k|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|  7.93k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|  7.93k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  15.8k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.93k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  15.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  15.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.93k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.93k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.93k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  15.8k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.93k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 7.93k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 7.93k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  15.8k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  15.8k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  471|  7.93k|  this_._impl_.host_path_.Destroy();
  472|  7.93k|  delete this_._impl_.connection_;
  473|  7.93k|  this_._impl_.~Impl_();
  474|  7.93k|}
_ZN4curl6fuzzer5proto9SetOption10SharedDtorERN6google8protobuf11MessageLiteE:
  828|  70.3k|inline void SetOption::SharedDtor(MessageLite& self) {
  829|  70.3k|  SetOption& this_ = static_cast<SetOption&>(self);
  830|  70.3k|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  831|  70.3k|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|  70.3k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|  70.3k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   140k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  70.3k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   140k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   140k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 70.3k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  70.3k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 70.3k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   140k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 70.3k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 70.3k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 70.3k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   140k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   140k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  832|  70.3k|  if (this_.has_value()) {
  ------------------
  |  Branch (832:7): [True: 25.8k, False: 44.4k]
  ------------------
  833|  25.8k|    this_.clear_value();
  834|  25.8k|  }
  835|  70.3k|  this_._impl_.~Impl_();
  836|  70.3k|}
_ZN4curl6fuzzer5proto10Connection10SharedDtorERN6google8protobuf11MessageLiteE:
 1187|  5.61k|inline void Connection::SharedDtor(MessageLite& self) {
 1188|  5.61k|  Connection& this_ = static_cast<Connection&>(self);
 1189|  5.61k|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 1190|  5.61k|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|  5.61k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|  5.61k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  11.2k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  5.61k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  11.2k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  11.2k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 5.61k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  5.61k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 5.61k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  11.2k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 5.61k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 5.61k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 5.61k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  11.2k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  11.2k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1191|  5.61k|  this_._impl_.initial_response_.Destroy();
 1192|  5.61k|  delete this_._impl_.backpressure_;
 1193|  5.61k|  delete this_._impl_.manual_probes_;
 1194|  5.61k|  this_._impl_.~Impl_();
 1195|  5.61k|}
_ZN4curl6fuzzer5proto14WsManualProbes10SharedDtorERN6google8protobuf11MessageLiteE:
 1561|  1.26k|inline void WsManualProbes::SharedDtor(MessageLite& self) {
 1562|  1.26k|  WsManualProbes& this_ = static_cast<WsManualProbes&>(self);
 1563|  1.26k|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 1564|  1.26k|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|  1.26k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|  1.26k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  2.53k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  1.26k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  2.53k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  2.53k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 1.26k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  1.26k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 1.26k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  2.53k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 1.26k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 1.26k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 1.26k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  2.53k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  2.53k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1565|  1.26k|  this_._impl_.~Impl_();
 1566|  1.26k|}
_ZN4curl6fuzzer5proto18BackpressureConfig10SharedDtorERN6google8protobuf11MessageLiteE:
 1821|  1.74k|inline void BackpressureConfig::SharedDtor(MessageLite& self) {
 1822|  1.74k|  BackpressureConfig& this_ = static_cast<BackpressureConfig&>(self);
 1823|  1.74k|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 1824|  1.74k|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|  1.74k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|  1.74k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  3.48k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  1.74k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  3.48k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  3.48k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 1.74k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  1.74k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 1.74k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  3.48k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 1.74k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 1.74k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 1.74k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  3.48k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  3.48k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1825|  1.74k|  this_._impl_.~Impl_();
 1826|  1.74k|}
_ZN4curl6fuzzer5proto14WebSocketFrame10SharedDtorERN6google8protobuf11MessageLiteE:
 2087|  7.65k|inline void WebSocketFrame::SharedDtor(MessageLite& self) {
 2088|  7.65k|  WebSocketFrame& this_ = static_cast<WebSocketFrame&>(self);
 2089|  7.65k|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 2090|  7.65k|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|  7.65k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|  7.65k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  15.3k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.65k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  15.3k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  15.3k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.65k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.65k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.65k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  15.3k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.65k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 7.65k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 7.65k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  15.3k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  15.3k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2091|  7.65k|  this_._impl_.payload_.Destroy();
 2092|  7.65k|  this_._impl_.~Impl_();
 2093|  7.65k|}

_ZN4curl6fuzzer5proto8ScenarioC2Ev:
 1412|  7.93k|  inline Scenario() : Scenario(nullptr) {}
_ZNK4curl6fuzzer5proto8Scenario6schemeEv:
 1674|  15.6k|inline ::curl::fuzzer::proto::Scheme Scenario::scheme() const {
 1675|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.Scenario.scheme)
 1676|  15.6k|  return _internal_scheme();
 1677|  15.6k|}
_ZNK4curl6fuzzer5proto8Scenario16_internal_schemeEv:
 1682|  15.6k|inline ::curl::fuzzer::proto::Scheme Scenario::_internal_scheme() const {
 1683|  15.6k|  ::google::protobuf::internal::TSanRead(&_impl_);
 1684|  15.6k|  return static_cast<::curl::fuzzer::proto::Scheme>(_impl_.scheme_);
 1685|  15.6k|}
_ZNK4curl6fuzzer5proto8Scenario9host_pathEv:
 1697|  15.6k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1698|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.Scenario.host_path)
 1699|  15.6k|  return _internal_host_path();
 1700|  15.6k|}
_ZNK4curl6fuzzer5proto8Scenario19_internal_host_pathEv:
 1713|  15.6k|inline const std::string& Scenario::_internal_host_path() const {
 1714|  15.6k|  ::google::protobuf::internal::TSanRead(&_impl_);
 1715|  15.6k|  return _impl_.host_path_.Get();
 1716|  15.6k|}
_ZNK4curl6fuzzer5proto8Scenario22_internal_options_sizeEv:
 1740|  7.82k|inline int Scenario::_internal_options_size() const {
 1741|  7.82k|  return _internal_options().size();
 1742|  7.82k|}
_ZNK4curl6fuzzer5proto8Scenario12options_sizeEv:
 1743|  7.82k|inline int Scenario::options_size() const {
 1744|  7.82k|  return _internal_options_size();
 1745|  7.82k|}
_ZNK4curl6fuzzer5proto8Scenario7optionsEv:
 1773|  9.80k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1774|       |  // @@protoc_insertion_point(field_list:curl.fuzzer.proto.Scenario.options)
 1775|  9.80k|  return _internal_options();
 1776|  9.80k|}
_ZNK4curl6fuzzer5proto8Scenario17_internal_optionsEv:
 1778|  17.6k|Scenario::_internal_options() const {
 1779|  17.6k|  ::google::protobuf::internal::TSanRead(&_impl_);
 1780|  17.6k|  return _impl_.options_;
 1781|  17.6k|}
_ZNK4curl6fuzzer5proto8Scenario20_internal_connectionEv:
 1799|  16.0k|inline const ::curl::fuzzer::proto::Connection& Scenario::_internal_connection() const {
 1800|  16.0k|  ::google::protobuf::internal::TSanRead(&_impl_);
 1801|  16.0k|  const ::curl::fuzzer::proto::Connection* p = _impl_.connection_;
 1802|  16.0k|  return p != nullptr ? *p : reinterpret_cast<const ::curl::fuzzer::proto::Connection&>(::curl::fuzzer::proto::_Connection_default_instance_);
  ------------------
  |  Branch (1802:10): [True: 11.4k, False: 4.54k]
  ------------------
 1803|  16.0k|}
_ZNK4curl6fuzzer5proto8Scenario10connectionEv:
 1804|  16.0k|inline const ::curl::fuzzer::proto::Connection& Scenario::connection() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1805|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.Scenario.connection)
 1806|  16.0k|  return _internal_connection();
 1807|  16.0k|}
_ZNK4curl6fuzzer5proto9SetOption9option_idEv:
 1893|   101k|inline ::curl::fuzzer::proto::CurlOptionId SetOption::option_id() const {
 1894|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.SetOption.option_id)
 1895|   101k|  return _internal_option_id();
 1896|   101k|}
_ZNK4curl6fuzzer5proto9SetOption19_internal_option_idEv:
 1901|   101k|inline ::curl::fuzzer::proto::CurlOptionId SetOption::_internal_option_id() const {
 1902|   101k|  ::google::protobuf::internal::TSanRead(&_impl_);
 1903|   101k|  return static_cast<::curl::fuzzer::proto::CurlOptionId>(_impl_.option_id_);
 1904|   101k|}
_ZNK4curl6fuzzer5proto9SetOption12string_valueEv:
 1925|  11.6k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1926|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.SetOption.string_value)
 1927|  11.6k|  return _internal_string_value();
 1928|  11.6k|}
_ZNK4curl6fuzzer5proto9SetOption22_internal_string_valueEv:
 1947|  11.6k|inline const std::string& SetOption::_internal_string_value() const {
 1948|  11.6k|  ::google::protobuf::internal::TSanRead(&_impl_);
 1949|  11.6k|  if (value_case() != kStringValue) {
  ------------------
  |  Branch (1949:7): [True: 8.06k, False: 3.54k]
  ------------------
 1950|  8.06k|    return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
 1951|  8.06k|  }
 1952|  3.54k|  return _impl_.value_.string_value_.Get();
 1953|  11.6k|}
_ZNK4curl6fuzzer5proto9SetOption10uint_valueEv:
 2009|  15.5k|inline ::uint64_t SetOption::uint_value() const {
 2010|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.SetOption.uint_value)
 2011|  15.5k|  return _internal_uint_value();
 2012|  15.5k|}
_ZNK4curl6fuzzer5proto9SetOption20_internal_uint_valueEv:
 2021|  15.5k|inline ::uint64_t SetOption::_internal_uint_value() const {
 2022|  15.5k|  if (value_case() == kUintValue) {
  ------------------
  |  Branch (2022:7): [True: 9.60k, False: 5.91k]
  ------------------
 2023|  9.60k|    return _impl_.value_.uint_value_;
 2024|  9.60k|  }
 2025|  5.91k|  return ::uint64_t{0u};
 2026|  15.5k|}
_ZNK4curl6fuzzer5proto9SetOption10bool_valueEv:
 2042|  33.3k|inline bool SetOption::bool_value() const {
 2043|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.SetOption.bool_value)
 2044|  33.3k|  return _internal_bool_value();
 2045|  33.3k|}
_ZNK4curl6fuzzer5proto9SetOption20_internal_bool_valueEv:
 2054|  33.3k|inline bool SetOption::_internal_bool_value() const {
 2055|  33.3k|  if (value_case() == kBoolValue) {
  ------------------
  |  Branch (2055:7): [True: 6.41k, False: 26.9k]
  ------------------
 2056|  6.41k|    return _impl_.value_.bool_value_;
 2057|  6.41k|  }
 2058|  26.9k|  return false;
 2059|  33.3k|}
_ZNK4curl6fuzzer5proto9SetOption9has_valueEv:
 2061|  70.3k|inline bool SetOption::has_value() const {
 2062|  70.3k|  return value_case() != VALUE_NOT_SET;
 2063|  70.3k|}
_ZNK4curl6fuzzer5proto9SetOption10value_caseEv:
 2067|   162k|inline SetOption::ValueCase SetOption::value_case() const {
 2068|   162k|  return SetOption::ValueCase(_impl_._oneof_case_[0]);
 2069|   162k|}
_ZNK4curl6fuzzer5proto10Connection16initial_responseEv:
 2080|  5.83k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2081|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.Connection.initial_response)
 2082|  5.83k|  return _internal_initial_response();
 2083|  5.83k|}
_ZNK4curl6fuzzer5proto10Connection26_internal_initial_responseEv:
 2096|  5.83k|inline const std::string& Connection::_internal_initial_response() const {
 2097|  5.83k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2098|  5.83k|  return _impl_.initial_response_.Get();
 2099|  5.83k|}
_ZNK4curl6fuzzer5proto10Connection26_internal_on_readable_sizeEv:
 2123|  7.82k|inline int Connection::_internal_on_readable_size() const {
 2124|  7.82k|  return _internal_on_readable().size();
 2125|  7.82k|}
_ZNK4curl6fuzzer5proto10Connection16on_readable_sizeEv:
 2126|  7.82k|inline int Connection::on_readable_size() const {
 2127|  7.82k|  return _internal_on_readable_size();
 2128|  7.82k|}
_ZNK4curl6fuzzer5proto10Connection11on_readableEi:
 2140|  11.1k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2141|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.Connection.on_readable)
 2142|  11.1k|  return _internal_on_readable().Get(index);
 2143|  11.1k|}
_ZNK4curl6fuzzer5proto10Connection21_internal_on_readableEv:
 2176|  18.9k|Connection::_internal_on_readable() const {
 2177|  18.9k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2178|  18.9k|  return _impl_.on_readable_;
 2179|  18.9k|}
_ZNK4curl6fuzzer5proto10Connection28_internal_server_frames_sizeEv:
 2187|  7.82k|inline int Connection::_internal_server_frames_size() const {
 2188|  7.82k|  return _internal_server_frames().size();
 2189|  7.82k|}
_ZNK4curl6fuzzer5proto10Connection18server_frames_sizeEv:
 2190|  7.82k|inline int Connection::server_frames_size() const {
 2191|  7.82k|  return _internal_server_frames_size();
 2192|  7.82k|}
_ZNK4curl6fuzzer5proto10Connection13server_framesEi:
 2209|  6.69k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2210|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.Connection.server_frames)
 2211|  6.69k|  return _internal_server_frames().Get(index);
 2212|  6.69k|}
_ZNK4curl6fuzzer5proto10Connection23_internal_server_framesEv:
 2225|  14.5k|Connection::_internal_server_frames() const {
 2226|  14.5k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2227|  14.5k|  return _impl_.server_frames_;
 2228|  14.5k|}
_ZNK4curl6fuzzer5proto10Connection22_internal_backpressureEv:
 2246|  7.82k|inline const ::curl::fuzzer::proto::BackpressureConfig& Connection::_internal_backpressure() const {
 2247|  7.82k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2248|  7.82k|  const ::curl::fuzzer::proto::BackpressureConfig* p = _impl_.backpressure_;
 2249|  7.82k|  return p != nullptr ? *p : reinterpret_cast<const ::curl::fuzzer::proto::BackpressureConfig&>(::curl::fuzzer::proto::_BackpressureConfig_default_instance_);
  ------------------
  |  Branch (2249:10): [True: 1.73k, False: 6.08k]
  ------------------
 2250|  7.82k|}
_ZNK4curl6fuzzer5proto10Connection12backpressureEv:
 2251|  7.82k|inline const ::curl::fuzzer::proto::BackpressureConfig& Connection::backpressure() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2252|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.Connection.backpressure)
 2253|  7.82k|  return _internal_backpressure();
 2254|  7.82k|}
_ZNK4curl6fuzzer5proto10Connection23_internal_manual_probesEv:
 2342|    398|inline const ::curl::fuzzer::proto::WsManualProbes& Connection::_internal_manual_probes() const {
 2343|    398|  ::google::protobuf::internal::TSanRead(&_impl_);
 2344|    398|  const ::curl::fuzzer::proto::WsManualProbes* p = _impl_.manual_probes_;
 2345|    398|  return p != nullptr ? *p : reinterpret_cast<const ::curl::fuzzer::proto::WsManualProbes&>(::curl::fuzzer::proto::_WsManualProbes_default_instance_);
  ------------------
  |  Branch (2345:10): [True: 193, False: 205]
  ------------------
 2346|    398|}
_ZNK4curl6fuzzer5proto10Connection13manual_probesEv:
 2347|    398|inline const ::curl::fuzzer::proto::WsManualProbes& Connection::manual_probes() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2348|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.Connection.manual_probes)
 2349|    398|  return _internal_manual_probes();
 2350|    398|}
_ZNK4curl6fuzzer5proto14WsManualProbes11flag_matrixEv:
 2436|    398|inline bool WsManualProbes::flag_matrix() const {
 2437|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WsManualProbes.flag_matrix)
 2438|    398|  return _internal_flag_matrix();
 2439|    398|}
_ZNK4curl6fuzzer5proto14WsManualProbes21_internal_flag_matrixEv:
 2444|    398|inline bool WsManualProbes::_internal_flag_matrix() const {
 2445|    398|  ::google::protobuf::internal::TSanRead(&_impl_);
 2446|    398|  return _impl_.flag_matrix_;
 2447|    398|}
_ZNK4curl6fuzzer5proto14WsManualProbes14unaligned_sendEv:
 2458|    398|inline bool WsManualProbes::unaligned_send() const {
 2459|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WsManualProbes.unaligned_send)
 2460|    398|  return _internal_unaligned_send();
 2461|    398|}
_ZNK4curl6fuzzer5proto14WsManualProbes24_internal_unaligned_sendEv:
 2466|    398|inline bool WsManualProbes::_internal_unaligned_send() const {
 2467|    398|  ::google::protobuf::internal::TSanRead(&_impl_);
 2468|    398|  return _impl_.unaligned_send_;
 2469|    398|}
_ZNK4curl6fuzzer5proto14WsManualProbes8raw_sendEv:
 2480|    398|inline bool WsManualProbes::raw_send() const {
 2481|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WsManualProbes.raw_send)
 2482|    398|  return _internal_raw_send();
 2483|    398|}
_ZNK4curl6fuzzer5proto14WsManualProbes18_internal_raw_sendEv:
 2488|    398|inline bool WsManualProbes::_internal_raw_send() const {
 2489|    398|  ::google::protobuf::internal::TSanRead(&_impl_);
 2490|    398|  return _impl_.raw_send_;
 2491|    398|}
_ZNK4curl6fuzzer5proto18BackpressureConfig14recv_buf_bytesEv:
 2506|  7.82k|inline ::uint32_t BackpressureConfig::recv_buf_bytes() const {
 2507|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.BackpressureConfig.recv_buf_bytes)
 2508|  7.82k|  return _internal_recv_buf_bytes();
 2509|  7.82k|}
_ZNK4curl6fuzzer5proto18BackpressureConfig24_internal_recv_buf_bytesEv:
 2514|  7.82k|inline ::uint32_t BackpressureConfig::_internal_recv_buf_bytes() const {
 2515|  7.82k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2516|  7.82k|  return _impl_.recv_buf_bytes_;
 2517|  7.82k|}
_ZNK4curl6fuzzer5proto18BackpressureConfig11drain_limitEv:
 2528|  7.82k|inline ::uint32_t BackpressureConfig::drain_limit() const {
 2529|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.BackpressureConfig.drain_limit)
 2530|  7.82k|  return _internal_drain_limit();
 2531|  7.82k|}
_ZNK4curl6fuzzer5proto18BackpressureConfig21_internal_drain_limitEv:
 2536|  7.82k|inline ::uint32_t BackpressureConfig::_internal_drain_limit() const {
 2537|  7.82k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2538|  7.82k|  return _impl_.drain_limit_;
 2539|  7.82k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame3finEv:
 2554|  6.69k|inline bool WebSocketFrame::fin() const {
 2555|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.fin)
 2556|  6.69k|  return _internal_fin();
 2557|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame13_internal_finEv:
 2562|  6.69k|inline bool WebSocketFrame::_internal_fin() const {
 2563|  6.69k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2564|  6.69k|  return _impl_.fin_;
 2565|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame4rsv1Ev:
 2576|  6.69k|inline bool WebSocketFrame::rsv1() const {
 2577|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.rsv1)
 2578|  6.69k|  return _internal_rsv1();
 2579|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame14_internal_rsv1Ev:
 2584|  6.69k|inline bool WebSocketFrame::_internal_rsv1() const {
 2585|  6.69k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2586|  6.69k|  return _impl_.rsv1_;
 2587|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame4rsv2Ev:
 2598|  6.69k|inline bool WebSocketFrame::rsv2() const {
 2599|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.rsv2)
 2600|  6.69k|  return _internal_rsv2();
 2601|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame14_internal_rsv2Ev:
 2606|  6.69k|inline bool WebSocketFrame::_internal_rsv2() const {
 2607|  6.69k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2608|  6.69k|  return _impl_.rsv2_;
 2609|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame4rsv3Ev:
 2620|  6.69k|inline bool WebSocketFrame::rsv3() const {
 2621|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.rsv3)
 2622|  6.69k|  return _internal_rsv3();
 2623|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame14_internal_rsv3Ev:
 2628|  6.69k|inline bool WebSocketFrame::_internal_rsv3() const {
 2629|  6.69k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2630|  6.69k|  return _impl_.rsv3_;
 2631|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame6opcodeEv:
 2642|  6.69k|inline ::uint32_t WebSocketFrame::opcode() const {
 2643|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.opcode)
 2644|  6.69k|  return _internal_opcode();
 2645|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame16_internal_opcodeEv:
 2650|  6.69k|inline ::uint32_t WebSocketFrame::_internal_opcode() const {
 2651|  6.69k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2652|  6.69k|  return _impl_.opcode_;
 2653|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame6maskedEv:
 2664|  13.3k|inline bool WebSocketFrame::masked() const {
 2665|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.masked)
 2666|  13.3k|  return _internal_masked();
 2667|  13.3k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame16_internal_maskedEv:
 2672|  13.3k|inline bool WebSocketFrame::_internal_masked() const {
 2673|  13.3k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2674|  13.3k|  return _impl_.masked_;
 2675|  13.3k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame8mask_keyEv:
 2686|  1.93k|inline ::uint32_t WebSocketFrame::mask_key() const {
 2687|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.mask_key)
 2688|  1.93k|  return _internal_mask_key();
 2689|  1.93k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame18_internal_mask_keyEv:
 2694|  1.93k|inline ::uint32_t WebSocketFrame::_internal_mask_key() const {
 2695|  1.93k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2696|  1.93k|  return _impl_.mask_key_;
 2697|  1.93k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame7payloadEv:
 2709|  6.69k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2710|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.payload)
 2711|  6.69k|  return _internal_payload();
 2712|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame17_internal_payloadEv:
 2725|  6.69k|inline const std::string& WebSocketFrame::_internal_payload() const {
 2726|  6.69k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2727|  6.69k|  return _impl_.payload_.Get();
 2728|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame11length_formEv:
 2756|  6.69k|inline ::uint32_t WebSocketFrame::length_form() const {
 2757|       |  // @@protoc_insertion_point(field_get:curl.fuzzer.proto.WebSocketFrame.length_form)
 2758|  6.69k|  return _internal_length_form();
 2759|  6.69k|}
_ZNK4curl6fuzzer5proto14WebSocketFrame21_internal_length_formEv:
 2764|  6.69k|inline ::uint32_t WebSocketFrame::_internal_length_form() const {
 2765|  6.69k|  ::google::protobuf::internal::TSanRead(&_impl_);
 2766|  6.69k|  return _impl_.length_form_;
 2767|  6.69k|}

freea:
  107|    278|{
  108|       |  /* Check argument.  */
  109|    278|  uintptr_t u = (uintptr_t) p;
  110|    278|  if (u & (sa_alignment_max - 1))
  ------------------
  |  Branch (110:7): [True: 0, False: 278]
  ------------------
  111|      0|    {
  112|       |      /* p was not the result of a malloca() call.  Invalid argument.  */
  113|      0|      abort ();
  114|      0|    }
  115|       |  /* Determine whether p was a non-NULL pointer returned by mmalloca().  */
  116|    278|  if (u & sa_alignment_max)
  ------------------
  |  Branch (116:7): [True: 0, False: 278]
  ------------------
  117|      0|    {
  118|      0|      char *cp = p;
  119|      0|      small_t *sp = p;
  120|       |# if defined __CHERI_PURE_CAPABILITY__
  121|       |      void *mem = (void *) sp[-1];
  122|       |# else
  123|      0|      void *mem = cp - sp[-1];
  124|      0|# endif
  125|      0|      free (mem);
  126|      0|    }
  127|    278|}

idn2_lookup_ul:
  656|    278|{
  657|    278|  uint8_t *utf8src = NULL;
  658|    278|  int rc;
  659|       |
  660|    278|  if (src)
  ------------------
  |  Branch (660:7): [True: 278, False: 0]
  ------------------
  661|    278|    {
  662|    278|      const char *encoding = locale_charset ();
  663|       |
  664|    278|      utf8src = u8_strconv_from_encoding (src, encoding, iconveh_error);
  665|       |
  666|    278|      if (!utf8src)
  ------------------
  |  Branch (666:11): [True: 278, False: 0]
  ------------------
  667|    278|	{
  668|    278|	  if (errno == ENOMEM)
  ------------------
  |  Branch (668:8): [True: 0, False: 278]
  ------------------
  669|      0|	    return IDN2_MALLOC;
  670|    278|	  return IDN2_ICONV_FAIL;
  671|    278|	}
  672|    278|    }
  673|       |
  674|      0|  rc = idn2_lookup_u8 (utf8src, (uint8_t **) lookupname,
  675|      0|		       flags | IDN2_NFC_INPUT);
  676|       |
  677|      0|  free (utf8src);
  678|       |
  679|      0|  return rc;
  680|    278|}

idn2_check_version:
   62|    139|{
   63|    139|  if (!req_version || strverscmp (req_version, IDN2_VERSION) <= 0)
  ------------------
  |  |  119|    139|# define IDN2_VERSION "2.3.8"
  ------------------
  |  Branch (63:7): [True: 0, False: 139]
  |  Branch (63:23): [True: 139, False: 0]
  ------------------
   64|    139|    return IDN2_VERSION;
  ------------------
  |  |  119|    139|# define IDN2_VERSION "2.3.8"
  ------------------
   65|       |
   66|      0|  return NULL;
   67|    139|}

c_tolower:
  338|  9.45k|{
  339|  9.45k|  switch (c)
  340|  9.45k|    {
  341|  6.67k|    _C_CTYPE_UPPER:
  ------------------
  |  |  148|      0|#define _C_CTYPE_UPPER _C_CTYPE_LOWER_N ('A' - 'a')
  |  |  ------------------
  |  |  |  |  122|  1.39k|   _C_CTYPE_LOWER_A_THRU_F_N(N): \
  |  |  |  |  ------------------
  |  |  |  |  |  |  119|    834|   case 'a' + (N): case 'b' + (N): case 'c' + (N): case 'd' + (N): \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (119:4): [True: 834, False: 8.61k]
  |  |  |  |  |  |  |  Branch (119:20): [True: 0, False: 9.45k]
  |  |  |  |  |  |  |  Branch (119:36): [True: 0, False: 9.45k]
  |  |  |  |  |  |  |  Branch (119:52): [True: 0, False: 9.45k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  120|  1.39k|   case 'e' + (N): case 'f' + (N)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (120:4): [True: 0, False: 9.45k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (122:4): [True: 556, False: 8.89k]
  |  |  |  |  ------------------
  |  |  |  |  123|  1.94k|   case 'g' + (N): case 'h' + (N): case 'i' + (N): case 'j' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (123:4): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (123:20): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (123:36): [True: 556, False: 8.89k]
  |  |  |  |  |  Branch (123:52): [True: 0, False: 9.45k]
  |  |  |  |  ------------------
  |  |  |  |  124|  3.05k|   case 'k' + (N): case 'l' + (N): case 'm' + (N): case 'n' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (124:4): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (124:20): [True: 556, False: 8.89k]
  |  |  |  |  |  Branch (124:36): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (124:52): [True: 556, False: 8.89k]
  |  |  |  |  ------------------
  |  |  |  |  125|  3.61k|   case 'o' + (N): case 'p' + (N): case 'q' + (N): case 'r' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (125:4): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (125:20): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (125:36): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (125:52): [True: 556, False: 8.89k]
  |  |  |  |  ------------------
  |  |  |  |  126|  6.67k|   case 's' + (N): case 't' + (N): case 'u' + (N): case 'v' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (126:4): [True: 556, False: 8.89k]
  |  |  |  |  |  Branch (126:20): [True: 1.66k, False: 7.78k]
  |  |  |  |  |  Branch (126:36): [True: 834, False: 8.61k]
  |  |  |  |  |  Branch (126:52): [True: 0, False: 9.45k]
  |  |  |  |  ------------------
  |  |  |  |  127|  6.67k|   case 'w' + (N): case 'x' + (N): case 'y' + (N): case 'z' + (N)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (127:4): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (127:20): [True: 0, False: 9.45k]
  |  |  |  |  |  Branch (127:36): [True: 0, False: 9.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  342|  6.67k|      return c - 'A' + 'a';
  343|  2.78k|    default:
  ------------------
  |  Branch (343:5): [True: 2.78k, False: 6.67k]
  ------------------
  344|  2.78k|      return c;
  345|  9.45k|    }
  346|  9.45k|}
c_isupper:
  313|  2.22k|{
  314|  2.22k|  switch (c)
  315|  2.22k|    {
  316|  1.39k|    _C_CTYPE_UPPER:
  ------------------
  |  |  148|      0|#define _C_CTYPE_UPPER _C_CTYPE_LOWER_N ('A' - 'a')
  |  |  ------------------
  |  |  |  |  122|    278|   _C_CTYPE_LOWER_A_THRU_F_N(N): \
  |  |  |  |  ------------------
  |  |  |  |  |  |  119|      0|   case 'a' + (N): case 'b' + (N): case 'c' + (N): case 'd' + (N): \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (119:4): [True: 0, False: 2.22k]
  |  |  |  |  |  |  |  Branch (119:20): [True: 0, False: 2.22k]
  |  |  |  |  |  |  |  Branch (119:36): [True: 0, False: 2.22k]
  |  |  |  |  |  |  |  Branch (119:52): [True: 0, False: 2.22k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  120|    278|   case 'e' + (N): case 'f' + (N)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (120:4): [True: 0, False: 2.22k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (122:4): [True: 278, False: 1.94k]
  |  |  |  |  ------------------
  |  |  |  |  123|    278|   case 'g' + (N): case 'h' + (N): case 'i' + (N): case 'j' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (123:4): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (123:20): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (123:36): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (123:52): [True: 0, False: 2.22k]
  |  |  |  |  ------------------
  |  |  |  |  124|    278|   case 'k' + (N): case 'l' + (N): case 'm' + (N): case 'n' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (124:4): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (124:20): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (124:36): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (124:52): [True: 0, False: 2.22k]
  |  |  |  |  ------------------
  |  |  |  |  125|    278|   case 'o' + (N): case 'p' + (N): case 'q' + (N): case 'r' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (125:4): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (125:20): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (125:36): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (125:52): [True: 0, False: 2.22k]
  |  |  |  |  ------------------
  |  |  |  |  126|  1.39k|   case 's' + (N): case 't' + (N): case 'u' + (N): case 'v' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (126:4): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (126:20): [True: 278, False: 1.94k]
  |  |  |  |  |  Branch (126:36): [True: 834, False: 1.39k]
  |  |  |  |  |  Branch (126:52): [True: 0, False: 2.22k]
  |  |  |  |  ------------------
  |  |  |  |  127|  1.39k|   case 'w' + (N): case 'x' + (N): case 'y' + (N): case 'z' + (N)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (127:4): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (127:20): [True: 0, False: 2.22k]
  |  |  |  |  |  Branch (127:36): [True: 0, False: 2.22k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  317|  1.39k|      return true;
  318|    834|    default:
  ------------------
  |  Branch (318:5): [True: 834, False: 1.39k]
  ------------------
  319|       |      return false;
  320|  2.22k|    }
  321|  2.22k|}

c_strcasecmp:
   28|    556|{
   29|    556|  register const unsigned char *p1 = (const unsigned char *) s1;
   30|    556|  register const unsigned char *p2 = (const unsigned char *) s2;
   31|    556|  unsigned char c1, c2;
   32|       |
   33|    556|  if (p1 == p2)
  ------------------
  |  Branch (33:7): [True: 0, False: 556]
  ------------------
   34|      0|    return 0;
   35|       |
   36|    556|  do
   37|  4.72k|    {
   38|  4.72k|      c1 = c_tolower (*p1);
   39|  4.72k|      c2 = c_tolower (*p2);
   40|       |
   41|  4.72k|      if (c1 == '\0')
  ------------------
  |  Branch (41:11): [True: 278, False: 4.44k]
  ------------------
   42|    278|        break;
   43|       |
   44|  4.44k|      ++p1;
   45|  4.44k|      ++p2;
   46|  4.44k|    }
   47|  4.44k|  while (c1 == c2);
  ------------------
  |  Branch (47:10): [True: 4.17k, False: 278]
  ------------------
   48|       |
   49|    556|  if (UCHAR_MAX <= INT_MAX)
  ------------------
  |  Branch (49:7): [True: 556, Folded]
  ------------------
   50|    556|    return c1 - c2;
   51|      0|  else
   52|       |    /* On machines where 'char' and 'int' are types of the same size, the
   53|       |       difference of two 'unsigned char' values - including the sign bit -
   54|       |       doesn't fit in an 'int'.  */
   55|      0|    return _GL_CMP (c1, c2);
  ------------------
  |  | 1797|      0|#define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2)))
  ------------------
   56|    556|}

u8-conv-from-enc.c:strcaseeq0:
  166|    278|{
  167|    278|  if (CASEEQ (s1[0], s20))
  ------------------
  |  |   40|    278|     (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper))
  |  |  ------------------
  |  |  |  Branch (40:6): [True: 0, False: 278]
  |  |  |  Branch (40:7): [True: 278, False: 0]
  |  |  ------------------
  ------------------
  168|      0|    {
  169|      0|      if (s20 == 0)
  ------------------
  |  Branch (169:11): [True: 0, False: 0]
  ------------------
  170|      0|        return 1;
  171|      0|      else
  172|      0|        return strcaseeq1 (s1, s2, s21, s22, s23, s24, s25, s26, s27, s28);
  173|      0|    }
  174|    278|  else
  175|    278|    return 0;
  176|    278|}
striconveh.c:strcaseeq0:
  166|    556|{
  167|    556|  if (CASEEQ (s1[0], s20))
  ------------------
  |  |   40|    556|     (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper))
  |  |  ------------------
  |  |  |  Branch (40:6): [True: 278, False: 278]
  |  |  |  Branch (40:7): [True: 556, False: 0]
  |  |  ------------------
  ------------------
  168|    278|    {
  169|    278|      if (s20 == 0)
  ------------------
  |  Branch (169:11): [True: 0, False: 278]
  ------------------
  170|      0|        return 1;
  171|    278|      else
  172|    278|        return strcaseeq1 (s1, s2, s21, s22, s23, s24, s25, s26, s27, s28);
  173|    278|    }
  174|    278|  else
  175|    278|    return 0;
  176|    556|}
striconveh.c:strcaseeq1:
  152|    278|{
  153|    278|  if (CASEEQ (s1[1], s21))
  ------------------
  |  |   40|    278|     (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper))
  |  |  ------------------
  |  |  |  Branch (40:6): [True: 278, False: 0]
  |  |  |  Branch (40:7): [True: 278, False: 0]
  |  |  ------------------
  ------------------
  154|    278|    {
  155|    278|      if (s21 == 0)
  ------------------
  |  Branch (155:11): [True: 0, False: 278]
  ------------------
  156|      0|        return 1;
  157|    278|      else
  158|    278|        return strcaseeq2 (s1, s2, s22, s23, s24, s25, s26, s27, s28);
  159|    278|    }
  160|      0|  else
  161|      0|    return 0;
  162|    278|}
striconveh.c:strcaseeq2:
  138|    278|{
  139|    278|  if (CASEEQ (s1[2], s22))
  ------------------
  |  |   40|    278|     (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper))
  |  |  ------------------
  |  |  |  Branch (40:6): [True: 278, False: 0]
  |  |  |  Branch (40:7): [True: 278, False: 0]
  |  |  ------------------
  ------------------
  140|    278|    {
  141|    278|      if (s22 == 0)
  ------------------
  |  Branch (141:11): [True: 0, False: 278]
  ------------------
  142|      0|        return 1;
  143|    278|      else
  144|    278|        return strcaseeq3 (s1, s2, s23, s24, s25, s26, s27, s28);
  145|    278|    }
  146|      0|  else
  147|      0|    return 0;
  148|    278|}
striconveh.c:strcaseeq3:
  124|    278|{
  125|    278|  if (CASEEQ (s1[3], s23))
  ------------------
  |  |   40|    278|     (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper))
  |  |  ------------------
  |  |  |  Branch (40:6): [True: 278, False: 0]
  |  |  |  Branch (40:7): [True: 0, False: 278]
  |  |  ------------------
  ------------------
  126|    278|    {
  127|    278|      if (s23 == 0)
  ------------------
  |  Branch (127:11): [True: 0, False: 278]
  ------------------
  128|      0|        return 1;
  129|    278|      else
  130|    278|        return strcaseeq4 (s1, s2, s24, s25, s26, s27, s28);
  131|    278|    }
  132|      0|  else
  133|      0|    return 0;
  134|    278|}
striconveh.c:strcaseeq4:
  110|    278|{
  111|    278|  if (CASEEQ (s1[4], s24))
  ------------------
  |  |   40|    278|     (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper))
  |  |  ------------------
  |  |  |  Branch (40:6): [True: 278, False: 0]
  |  |  |  Branch (40:7): [True: 0, False: 278]
  |  |  ------------------
  ------------------
  112|    278|    {
  113|    278|      if (s24 == 0)
  ------------------
  |  Branch (113:11): [True: 0, False: 278]
  ------------------
  114|      0|        return 1;
  115|    278|      else
  116|    278|        return strcaseeq5 (s1, s2, s25, s26, s27, s28);
  117|    278|    }
  118|      0|  else
  119|      0|    return 0;
  120|    278|}
striconveh.c:strcaseeq5:
   96|    278|{
   97|    278|  if (CASEEQ (s1[5], s25))
  ------------------
  |  |   40|    278|     (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper))
  |  |  ------------------
  |  |  |  Branch (40:6): [True: 0, False: 278]
  |  |  |  Branch (40:7): [True: 0, False: 278]
  |  |  ------------------
  ------------------
   98|      0|    {
   99|      0|      if (s25 == 0)
  ------------------
  |  Branch (99:11): [True: 0, False: 0]
  ------------------
  100|      0|        return 1;
  101|      0|      else
  102|      0|        return strcaseeq6 (s1, s2, s26, s27, s28);
  103|      0|    }
  104|    278|  else
  105|    278|    return 0;
  106|    278|}

locale_charset:
  832|    278|{
  833|    278|  const char *codeset;
  834|       |
  835|       |  /* This function must be multithread-safe.  To achieve this without using
  836|       |     thread-local storage, we use a simple strcpy or memcpy to fill this static
  837|       |     buffer.  Filling it through, for example, strcpy + strcat would not be
  838|       |     guaranteed to leave the buffer's contents intact if another thread is
  839|       |     currently accessing it.  If necessary, the contents is first assembled in
  840|       |     a stack-allocated buffer.  */
  841|       |
  842|    278|#if HAVE_LANGINFO_CODESET || defined WINDOWS_NATIVE || defined OS2
  843|       |
  844|    278|# if HAVE_LANGINFO_CODESET
  845|       |
  846|       |  /* Most systems support nl_langinfo (CODESET) nowadays.  */
  847|    278|  codeset = nl_langinfo (CODESET);
  848|       |
  849|       |#  ifdef __CYGWIN__
  850|       |  /* Cygwin < 1.7 does not have locales.  nl_langinfo (CODESET) always
  851|       |     returns "US-ASCII".  Return the suffix of the locale name from the
  852|       |     environment variables (if present) or the codepage as a number.  */
  853|       |  if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0)
  854|       |    {
  855|       |      const char *locale;
  856|       |      static char resultbuf[2 + 10 + 1];
  857|       |
  858|       |      locale = getenv ("LC_ALL");
  859|       |      if (locale == NULL || locale[0] == '\0')
  860|       |        {
  861|       |          locale = getenv ("LC_CTYPE");
  862|       |          if (locale == NULL || locale[0] == '\0')
  863|       |            locale = getenv ("LANG");
  864|       |        }
  865|       |      if (locale != NULL && locale[0] != '\0')
  866|       |        {
  867|       |          /* If the locale name contains an encoding after the dot, return
  868|       |             it.  */
  869|       |          const char *dot = strchr (locale, '.');
  870|       |
  871|       |          if (dot != NULL)
  872|       |            {
  873|       |              const char *modifier;
  874|       |
  875|       |              dot++;
  876|       |              /* Look for the possible @... trailer and remove it, if any.  */
  877|       |              modifier = strchr (dot, '@');
  878|       |              if (modifier == NULL)
  879|       |                return dot;
  880|       |              if (modifier - dot < sizeof (resultbuf))
  881|       |                {
  882|       |                  /* This way of filling resultbuf is multithread-safe.  */
  883|       |                  memcpy (resultbuf, dot, modifier - dot);
  884|       |                  resultbuf [modifier - dot] = '\0';
  885|       |                  return resultbuf;
  886|       |                }
  887|       |            }
  888|       |        }
  889|       |
  890|       |      /* The Windows API has a function returning the locale's codepage as a
  891|       |         number: GetACP().  This encoding is used by Cygwin, unless the user
  892|       |         has set the environment variable CYGWIN=codepage:oem (which very few
  893|       |         people do).
  894|       |         Output directed to console windows needs to be converted (to
  895|       |         GetOEMCP() if the console is using a raster font, or to
  896|       |         GetConsoleOutputCP() if it is using a TrueType font).  Cygwin does
  897|       |         this conversion transparently (see winsup/cygwin/fhandler_console.cc),
  898|       |         converting to GetConsoleOutputCP().  This leads to correct results,
  899|       |         except when SetConsoleOutputCP has been called and a raster font is
  900|       |         in use.  */
  901|       |      {
  902|       |        char buf[2 + 10 + 1];
  903|       |
  904|       |        sprintf (buf, "CP%u", GetACP ());
  905|       |        strcpy (resultbuf, buf);
  906|       |        codeset = resultbuf;
  907|       |      }
  908|       |    }
  909|       |#  endif
  910|       |
  911|    278|  if (codeset == NULL)
  ------------------
  |  Branch (911:7): [True: 0, False: 278]
  ------------------
  912|       |    /* The canonical name cannot be determined.  */
  913|      0|    codeset = "";
  914|       |
  915|       |# elif defined WINDOWS_NATIVE
  916|       |
  917|       |  char buf[2 + 10 + 1];
  918|       |  static char resultbuf[2 + 10 + 1];
  919|       |
  920|       |  /* The Windows API has a function returning the locale's codepage as
  921|       |     a number, but the value doesn't change according to what the
  922|       |     'setlocale' call specified.  So we use it as a last resort, in
  923|       |     case the string returned by 'setlocale' doesn't specify the
  924|       |     codepage.  */
  925|       |  char *current_locale = setlocale (LC_CTYPE, NULL);
  926|       |  char *pdot = strrchr (current_locale, '.');
  927|       |
  928|       |  if (pdot && 2 + strlen (pdot + 1) + 1 <= sizeof (buf))
  929|       |    sprintf (buf, "CP%s", pdot + 1);
  930|       |  else
  931|       |    {
  932|       |      /* The Windows API has a function returning the locale's codepage as a
  933|       |         number: GetACP().
  934|       |         When the output goes to a console window, it needs to be provided in
  935|       |         GetOEMCP() encoding if the console is using a raster font, or in
  936|       |         GetConsoleOutputCP() encoding if it is using a TrueType font.
  937|       |         But in GUI programs and for output sent to files and pipes, GetACP()
  938|       |         encoding is the best bet.  */
  939|       |      sprintf (buf, "CP%u", GetACP ());
  940|       |    }
  941|       |  /* For a locale name such as "French_France.65001", in Windows 10,
  942|       |     setlocale now returns "French_France.utf8" instead, or in the UTF-8
  943|       |     environment (with modern system settings) "fr_FR.UTF-8".  */
  944|       |  if (strcmp (buf + 2, "65001") == 0 || strcmp (buf + 2, "utf8") == 0
  945|       |      || strcmp (buf + 2, "UTF-8") == 0)
  946|       |    codeset = "UTF-8";
  947|       |  else
  948|       |    {
  949|       |      strcpy (resultbuf, buf);
  950|       |      codeset = resultbuf;
  951|       |    }
  952|       |
  953|       |# elif defined OS2
  954|       |
  955|       |  const char *locale;
  956|       |  static char resultbuf[2 + 10 + 1];
  957|       |  ULONG cp[3];
  958|       |  ULONG cplen;
  959|       |
  960|       |  codeset = NULL;
  961|       |
  962|       |  /* Allow user to override the codeset, as set in the operating system,
  963|       |     with standard language environment variables.  */
  964|       |  locale = getenv ("LC_ALL");
  965|       |  if (locale == NULL || locale[0] == '\0')
  966|       |    {
  967|       |      locale = getenv ("LC_CTYPE");
  968|       |      if (locale == NULL || locale[0] == '\0')
  969|       |        locale = getenv ("LANG");
  970|       |    }
  971|       |  if (locale != NULL && locale[0] != '\0')
  972|       |    {
  973|       |      /* If the locale name contains an encoding after the dot, return it.  */
  974|       |      const char *dot = strchr (locale, '.');
  975|       |
  976|       |      if (dot != NULL)
  977|       |        {
  978|       |          const char *modifier;
  979|       |
  980|       |          dot++;
  981|       |          /* Look for the possible @... trailer and remove it, if any.  */
  982|       |          modifier = strchr (dot, '@');
  983|       |          if (modifier == NULL)
  984|       |            return dot;
  985|       |          if (modifier - dot < sizeof (resultbuf))
  986|       |            {
  987|       |              /* This way of filling resultbuf is multithread-safe.  */
  988|       |              memcpy (resultbuf, dot, modifier - dot);
  989|       |              resultbuf [modifier - dot] = '\0';
  990|       |              return resultbuf;
  991|       |            }
  992|       |        }
  993|       |
  994|       |      /* For the POSIX locale, don't use the system's codepage.  */
  995|       |      if (strcmp (locale, "C") == 0 || strcmp (locale, "POSIX") == 0)
  996|       |        codeset = "";
  997|       |    }
  998|       |
  999|       |  if (codeset == NULL)
 1000|       |    {
 1001|       |      /* OS/2 has a function returning the locale's codepage as a number.  */
 1002|       |      if (DosQueryCp (sizeof (cp), cp, &cplen))
 1003|       |        codeset = "";
 1004|       |      else
 1005|       |        {
 1006|       |          char buf[2 + 10 + 1];
 1007|       |
 1008|       |          sprintf (buf, "CP%u", cp[0]);
 1009|       |          strcpy (resultbuf, buf);
 1010|       |          codeset = resultbuf;
 1011|       |        }
 1012|       |    }
 1013|       |
 1014|       |# else
 1015|       |
 1016|       |#  error "Add code for other platforms here."
 1017|       |
 1018|       |# endif
 1019|       |
 1020|       |  /* Resolve alias.  */
 1021|    278|  {
 1022|       |# ifdef alias_table_defined
 1023|       |    /* On some platforms, UTF-8 locales are the most frequently used ones.
 1024|       |       Speed up the common case and slow down the less common cases by
 1025|       |       testing for this case first.  */
 1026|       |#  if defined __OpenBSD__ || (defined __APPLE__ && defined __MACH__) || defined __sun || defined __CYGWIN__
 1027|       |    if (strcmp (codeset, "UTF-8") == 0)
 1028|       |      goto done_table_lookup;
 1029|       |    else
 1030|       |#  endif
 1031|       |      {
 1032|       |        const struct table_entry * const table = alias_table;
 1033|       |        size_t const table_size =
 1034|       |          sizeof (alias_table) / sizeof (struct table_entry);
 1035|       |        /* The table is sorted.  Perform a binary search.  */
 1036|       |        size_t hi = table_size;
 1037|       |        size_t lo = 0;
 1038|       |        while (lo < hi)
 1039|       |          {
 1040|       |            /* Invariant:
 1041|       |               for i < lo, strcmp (table[i].alias, codeset) < 0,
 1042|       |               for i >= hi, strcmp (table[i].alias, codeset) > 0.  */
 1043|       |            size_t mid = (hi + lo) >> 1; /* >= lo, < hi */
 1044|       |            int cmp = strcmp (table[mid].alias, codeset);
 1045|       |            if (cmp < 0)
 1046|       |              lo = mid + 1;
 1047|       |            else if (cmp > 0)
 1048|       |              hi = mid;
 1049|       |            else
 1050|       |              {
 1051|       |                /* Found an i with
 1052|       |                     strcmp (table[i].alias, codeset) == 0.  */
 1053|       |                codeset = table[mid].canonical;
 1054|       |                goto done_table_lookup;
 1055|       |              }
 1056|       |          }
 1057|       |      }
 1058|       |    if (0)
 1059|       |      done_table_lookup: {}
 1060|       |    else
 1061|       |# endif
 1062|    278|      {
 1063|       |        /* Did not find it in the table.  */
 1064|       |        /* On Mac OS X, all modern locales use the UTF-8 encoding.
 1065|       |           BeOS and Haiku have a single locale, and it has UTF-8 encoding.  */
 1066|       |# if (defined __APPLE__ && defined __MACH__) || defined __BEOS__ || defined __HAIKU__
 1067|       |        codeset = "UTF-8";
 1068|       |# else
 1069|       |        /* Don't return an empty string.  GNU libc and GNU libiconv interpret
 1070|       |           the empty string as denoting "the locale's character encoding",
 1071|       |           thus GNU libiconv would call this function a second time.  */
 1072|    278|        if (codeset[0] == '\0')
  ------------------
  |  Branch (1072:13): [True: 0, False: 278]
  ------------------
 1073|      0|          codeset = "ASCII";
 1074|    278|# endif
 1075|    278|      }
 1076|    278|  }
 1077|       |
 1078|       |#else
 1079|       |
 1080|       |  /* On old systems which lack it, use setlocale or getenv.  */
 1081|       |  const char *locale = NULL;
 1082|       |
 1083|       |  /* But most old systems don't have a complete set of locales.  Some
 1084|       |     (like DJGPP) have only the C locale.  Therefore we don't use setlocale
 1085|       |     here; it would return "C" when it doesn't support the locale name the
 1086|       |     user has set.  */
 1087|       |# if 0
 1088|       |  locale = setlocale (LC_CTYPE, NULL);
 1089|       |# endif
 1090|       |  if (locale == NULL || locale[0] == '\0')
 1091|       |    {
 1092|       |      locale = getenv ("LC_ALL");
 1093|       |      if (locale == NULL || locale[0] == '\0')
 1094|       |        {
 1095|       |          locale = getenv ("LC_CTYPE");
 1096|       |          if (locale == NULL || locale[0] == '\0')
 1097|       |            locale = getenv ("LANG");
 1098|       |            if (locale == NULL)
 1099|       |              locale = "";
 1100|       |        }
 1101|       |    }
 1102|       |
 1103|       |  /* Map locale name to canonical encoding name.  */
 1104|       |  {
 1105|       |# ifdef locale_table_defined
 1106|       |    const struct table_entry * const table = locale_table;
 1107|       |    size_t const table_size =
 1108|       |      sizeof (locale_table) / sizeof (struct table_entry);
 1109|       |    /* The table is sorted.  Perform a binary search.  */
 1110|       |    size_t hi = table_size;
 1111|       |    size_t lo = 0;
 1112|       |    while (lo < hi)
 1113|       |      {
 1114|       |        /* Invariant:
 1115|       |           for i < lo, strcmp (table[i].locale, locale) < 0,
 1116|       |           for i >= hi, strcmp (table[i].locale, locale) > 0.  */
 1117|       |        size_t mid = (hi + lo) >> 1; /* >= lo, < hi */
 1118|       |        int cmp = strcmp (table[mid].locale, locale);
 1119|       |        if (cmp < 0)
 1120|       |          lo = mid + 1;
 1121|       |        else if (cmp > 0)
 1122|       |          hi = mid;
 1123|       |        else
 1124|       |          {
 1125|       |            /* Found an i with
 1126|       |                 strcmp (table[i].locale, locale) == 0.  */
 1127|       |            codeset = table[mid].canonical;
 1128|       |            goto done_table_lookup;
 1129|       |          }
 1130|       |      }
 1131|       |    if (0)
 1132|       |      done_table_lookup: ;
 1133|       |    else
 1134|       |# endif
 1135|       |      {
 1136|       |        /* Did not find it in the table.  */
 1137|       |        /* On Mac OS X, all modern locales use the UTF-8 encoding.
 1138|       |           BeOS and Haiku have a single locale, and it has UTF-8 encoding.  */
 1139|       |# if (defined __APPLE__ && defined __MACH__) || defined __BEOS__ || defined __HAIKU__
 1140|       |        codeset = "UTF-8";
 1141|       |# else
 1142|       |        /* The canonical name cannot be determined.  */
 1143|       |        /* Don't return an empty string.  GNU libc and GNU libiconv interpret
 1144|       |           the empty string as denoting "the locale's character encoding",
 1145|       |           thus GNU libiconv would call this function a second time.  */
 1146|       |        codeset = "ASCII";
 1147|       |# endif
 1148|       |      }
 1149|       |  }
 1150|       |
 1151|       |#endif
 1152|       |
 1153|       |#ifdef DARWIN7
 1154|       |  /* Mac OS X sets MB_CUR_MAX to 1 when LC_ALL=C, and "UTF-8"
 1155|       |     (the default codeset) does not work when MB_CUR_MAX is 1.  */
 1156|       |  if (strcmp (codeset, "UTF-8") == 0 && MB_CUR_MAX_L (uselocale (NULL)) <= 1)
 1157|       |    codeset = "ASCII";
 1158|       |#endif
 1159|       |
 1160|    278|  return codeset;
 1161|    278|}

iconveh_open:
   48|    278|{
   49|    278|  iconv_t cd;
   50|    278|  iconv_t cd1;
   51|    278|  iconv_t cd2;
   52|       |
   53|    278|  cd = iconv_open (to_codeset, from_codeset);
   54|       |
   55|    278|  if (STRCASEEQ (from_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
  ------------------
  |  |  179|    278|  strcaseeq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28)
  |  |  ------------------
  |  |  |  Branch (179:3): [True: 0, False: 278]
  |  |  ------------------
  ------------------
   56|      0|    cd1 = (iconv_t)(-1);
   57|    278|  else
   58|    278|    {
   59|    278|      cd1 = iconv_open ("UTF-8", from_codeset);
   60|    278|      if (cd1 == (iconv_t)(-1))
  ------------------
  |  Branch (60:11): [True: 0, False: 278]
  ------------------
   61|      0|        {
   62|      0|          int saved_errno = errno;
   63|      0|          if (cd != (iconv_t)(-1))
  ------------------
  |  Branch (63:15): [True: 0, False: 0]
  ------------------
   64|      0|            iconv_close (cd);
   65|      0|          errno = saved_errno;
   66|      0|          return -1;
   67|      0|        }
   68|    278|    }
   69|       |
   70|    278|  if (STRCASEEQ (to_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0)
  ------------------
  |  |  179|    556|  strcaseeq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28)
  |  |  ------------------
  |  |  |  Branch (179:3): [True: 0, False: 278]
  |  |  ------------------
  ------------------
   71|    278|# if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) \
   72|    278|      && !defined __UCLIBC__) \
   73|    278|     || _LIBICONV_VERSION >= 0x0105 \
   74|    278|     || defined ICONV_SET_TRANSLITERATE
   75|    278|      || c_strcasecmp (to_codeset, "UTF-8//TRANSLIT") == 0
  ------------------
  |  Branch (75:10): [True: 278, False: 0]
  ------------------
   76|    278|# endif
   77|    278|     )
   78|    278|    cd2 = (iconv_t)(-1);
   79|      0|  else
   80|      0|    {
   81|      0|      cd2 = iconv_open (to_codeset, "UTF-8");
   82|      0|      if (cd2 == (iconv_t)(-1))
  ------------------
  |  Branch (82:11): [True: 0, False: 0]
  ------------------
   83|      0|        {
   84|      0|          int saved_errno = errno;
   85|      0|          if (cd1 != (iconv_t)(-1))
  ------------------
  |  Branch (85:15): [True: 0, False: 0]
  ------------------
   86|      0|            iconv_close (cd1);
   87|      0|          if (cd != (iconv_t)(-1))
  ------------------
  |  Branch (87:15): [True: 0, False: 0]
  ------------------
   88|      0|            iconv_close (cd);
   89|      0|          errno = saved_errno;
   90|      0|          return -1;
   91|      0|        }
   92|      0|    }
   93|       |
   94|    278|  cdp->cd = cd;
   95|    278|  cdp->cd1 = cd1;
   96|    278|  cdp->cd2 = cd2;
   97|    278|  return 0;
   98|    278|}
iconveh_close:
  102|    278|{
  103|    278|  if (cd->cd2 != (iconv_t)(-1) && iconv_close (cd->cd2) < 0)
  ------------------
  |  Branch (103:7): [True: 0, False: 278]
  |  Branch (103:35): [True: 0, False: 0]
  ------------------
  104|      0|    {
  105|       |      /* Return -1, but preserve the errno from iconv_close.  */
  106|      0|      int saved_errno = errno;
  107|      0|      if (cd->cd1 != (iconv_t)(-1))
  ------------------
  |  Branch (107:11): [True: 0, False: 0]
  ------------------
  108|      0|        iconv_close (cd->cd1);
  109|      0|      if (cd->cd != (iconv_t)(-1))
  ------------------
  |  Branch (109:11): [True: 0, False: 0]
  ------------------
  110|      0|        iconv_close (cd->cd);
  111|      0|      errno = saved_errno;
  112|      0|      return -1;
  113|      0|    }
  114|    278|  if (cd->cd1 != (iconv_t)(-1) && iconv_close (cd->cd1) < 0)
  ------------------
  |  Branch (114:7): [True: 278, False: 0]
  |  Branch (114:35): [True: 0, False: 278]
  ------------------
  115|      0|    {
  116|       |      /* Return -1, but preserve the errno from iconv_close.  */
  117|      0|      int saved_errno = errno;
  118|      0|      if (cd->cd != (iconv_t)(-1))
  ------------------
  |  Branch (118:11): [True: 0, False: 0]
  ------------------
  119|      0|        iconv_close (cd->cd);
  120|      0|      errno = saved_errno;
  121|      0|      return -1;
  122|      0|    }
  123|    278|  if (cd->cd != (iconv_t)(-1) && iconv_close (cd->cd) < 0)
  ------------------
  |  Branch (123:7): [True: 278, False: 0]
  |  Branch (123:34): [True: 0, False: 278]
  ------------------
  124|      0|    return -1;
  125|    278|  return 0;
  126|    278|}
mem_cd_iconveh:
 1055|    278|{
 1056|    278|  return mem_cd_iconveh_internal (src, srclen, cd->cd, cd->cd1, cd->cd2,
 1057|    278|                                  handler, 0, offsets, resultp, lengthp);
 1058|    278|}
mem_iconveh:
 1095|    278|{
 1096|    278|  if (srclen == 0)
  ------------------
  |  Branch (1096:7): [True: 0, False: 278]
  ------------------
 1097|      0|    {
 1098|       |      /* Nothing to convert.  */
 1099|      0|      *lengthp = 0;
 1100|      0|      return 0;
 1101|      0|    }
 1102|    278|  else if (offsets == NULL && c_strcasecmp (from_codeset, to_codeset) == 0)
  ------------------
  |  Branch (1102:12): [True: 278, False: 0]
  |  Branch (1102:31): [True: 0, False: 278]
  ------------------
 1103|      0|    {
 1104|      0|      char *result;
 1105|       |
 1106|      0|      if (*resultp != NULL && *lengthp >= srclen)
  ------------------
  |  Branch (1106:11): [True: 0, False: 0]
  |  Branch (1106:31): [True: 0, False: 0]
  ------------------
 1107|      0|        result = *resultp;
 1108|      0|      else
 1109|      0|        {
 1110|      0|          result = (char *) malloc (srclen);
 1111|      0|          if (result == NULL)
  ------------------
  |  Branch (1111:15): [True: 0, False: 0]
  ------------------
 1112|      0|            {
 1113|      0|              errno = ENOMEM;
 1114|      0|              return -1;
 1115|      0|            }
 1116|      0|        }
 1117|      0|      memcpy (result, src, srclen);
 1118|      0|      *resultp = result;
 1119|      0|      *lengthp = srclen;
 1120|      0|      return 0;
 1121|      0|    }
 1122|    278|  else
 1123|    278|    {
 1124|    278|#if HAVE_ICONV
 1125|    278|      iconveh_t cd;
 1126|    278|      char *result;
 1127|    278|      size_t length;
 1128|    278|      int retval;
 1129|       |
 1130|    278|      if (iconveh_open (to_codeset, from_codeset, &cd) < 0)
  ------------------
  |  Branch (1130:11): [True: 0, False: 278]
  ------------------
 1131|      0|        return -1;
 1132|       |
 1133|    278|      result = *resultp;
 1134|    278|      length = *lengthp;
 1135|    278|      retval = mem_cd_iconveh (src, srclen, &cd, handler, offsets,
 1136|    278|                               &result, &length);
 1137|       |
 1138|    278|      if (retval < 0)
  ------------------
  |  Branch (1138:11): [True: 278, False: 0]
  ------------------
 1139|    278|        {
 1140|       |          /* Close cd, but preserve the errno from str_cd_iconv.  */
 1141|    278|          int saved_errno = errno;
 1142|    278|          iconveh_close (&cd);
 1143|    278|          errno = saved_errno;
 1144|    278|        }
 1145|      0|      else
 1146|      0|        {
 1147|      0|          if (iconveh_close (&cd) < 0)
  ------------------
  |  Branch (1147:15): [True: 0, False: 0]
  ------------------
 1148|      0|            {
 1149|      0|              if (result != *resultp)
  ------------------
  |  Branch (1149:19): [True: 0, False: 0]
  ------------------
 1150|      0|                free (result);
 1151|      0|              return -1;
 1152|      0|            }
 1153|      0|          *resultp = result;
 1154|      0|          *lengthp = length;
 1155|      0|        }
 1156|    278|      return retval;
 1157|       |#else
 1158|       |      /* This is a different error code than if iconv_open existed but didn't
 1159|       |         support from_codeset and to_codeset, so that the caller can emit
 1160|       |         an error message such as
 1161|       |           "iconv() is not supported. Installing GNU libiconv and
 1162|       |            then reinstalling this package would fix this."  */
 1163|       |      errno = ENOSYS;
 1164|       |      return -1;
 1165|       |#endif
 1166|    278|    }
 1167|    278|}
striconveh.c:mem_cd_iconveh_internal:
  347|    278|{
  348|       |  /* When a conversion error occurs, we cannot start using CD1 and CD2 at
  349|       |     this point: FROM_CODESET may be a stateful encoding like ISO-2022-KR.
  350|       |     Instead, we have to start afresh from the beginning of SRC.  */
  351|       |  /* Use a temporary buffer, so that for small strings, a single malloc()
  352|       |     call will be sufficient.  */
  353|    278|# define tmpbufsize 4096
  354|       |  /* The alignment is needed when converting e.g. to glibc's WCHAR_T or
  355|       |     libiconv's UCS-4-INTERNAL encoding.  */
  356|    278|  union { unsigned int align; char buf[tmpbufsize]; } tmp;
  357|    278|# define tmpbuf tmp.buf
  358|       |
  359|    278|  char *initial_result;
  360|    278|  char *result;
  361|    278|  size_t allocated;
  362|    278|  size_t length;
  363|    278|  size_t last_length = (size_t)(-1); /* only needed if offsets != NULL */
  364|       |
  365|    278|  if (*resultp != NULL && *lengthp >= sizeof (tmpbuf))
  ------------------
  |  |  357|      0|# define tmpbuf tmp.buf
  ------------------
  |  Branch (365:7): [True: 0, False: 278]
  |  Branch (365:27): [True: 0, False: 0]
  ------------------
  366|      0|    {
  367|      0|      initial_result = *resultp;
  368|      0|      allocated = *lengthp;
  369|      0|    }
  370|    278|  else
  371|    278|    {
  372|    278|      initial_result = tmpbuf;
  ------------------
  |  |  357|    278|# define tmpbuf tmp.buf
  ------------------
  373|    278|      allocated = sizeof (tmpbuf);
  ------------------
  |  |  357|    278|# define tmpbuf tmp.buf
  ------------------
  374|    278|    }
  375|    278|  result = initial_result;
  376|       |
  377|       |  /* Test whether a direct conversion is possible at all.  */
  378|    278|  if (cd == (iconv_t)(-1))
  ------------------
  |  Branch (378:7): [True: 0, False: 278]
  ------------------
  379|      0|    goto indirectly;
  380|       |
  381|    278|  if (offsets != NULL)
  ------------------
  |  Branch (381:7): [True: 0, False: 278]
  ------------------
  382|      0|    {
  383|      0|      size_t i;
  384|       |
  385|      0|      for (i = 0; i < srclen; i++)
  ------------------
  |  Branch (385:19): [True: 0, False: 0]
  ------------------
  386|      0|        offsets[i] = (size_t)(-1);
  387|       |
  388|      0|      last_length = (size_t)(-1);
  389|      0|    }
  390|    278|  length = 0;
  391|       |
  392|       |  /* First, try a direct conversion, and see whether a conversion error
  393|       |     occurs at all.  */
  394|    278|  {
  395|    278|    const char *inptr = src;
  396|    278|    size_t insize = srclen;
  397|       |
  398|       |    /* Set to the initial state.  */
  399|    278|    iconv (cd, NULL, NULL, NULL, NULL);
  400|       |
  401|    288|    while (insize > 0)
  ------------------
  |  Branch (401:12): [True: 288, False: 0]
  ------------------
  402|    288|      {
  403|    288|        char *outptr = result + length;
  404|    288|        size_t outsize = allocated - extra_alloc - length;
  405|    288|        bool incremented;
  406|    288|        size_t res;
  407|    288|        bool grow;
  408|       |
  409|    288|        if (offsets != NULL)
  ------------------
  |  Branch (409:13): [True: 0, False: 288]
  ------------------
  410|      0|          {
  411|      0|            if (length != last_length) /* ensure that offset[] be increasing */
  ------------------
  |  Branch (411:17): [True: 0, False: 0]
  ------------------
  412|      0|              {
  413|      0|                offsets[inptr - src] = length;
  414|      0|                last_length = length;
  415|      0|              }
  416|      0|            res = iconv_carefully_1 (cd,
  417|      0|                                     &inptr, &insize,
  418|      0|                                     &outptr, &outsize,
  419|      0|                                     &incremented);
  420|      0|          }
  421|    288|        else
  422|       |          /* Use iconv_carefully instead of iconv here, because:
  423|       |             - If TO_CODESET is UTF-8, we can do the error handling in this
  424|       |               loop, no need for a second loop,
  425|       |             - With iconv() implementations other than GNU libiconv and GNU
  426|       |               libc, if we use iconv() in a big swoop, checking for an E2BIG
  427|       |               return, we lose the number of irreversible conversions.  */
  428|    288|          res = iconv_carefully (cd,
  ------------------
  |  |  201|    288|     (*(incremented) = false, \
  |  |  202|    288|      iconv (cd, (ICONV_CONST char **) (inbuf), inbytesleft, outbuf, outbytesleft))
  ------------------
  429|    288|                                 &inptr, &insize,
  430|    288|                                 &outptr, &outsize,
  431|    288|                                 &incremented);
  432|       |
  433|    288|        length = outptr - result;
  434|    288|        grow = (length + extra_alloc > allocated / 2);
  435|    288|        if (res == (size_t)(-1))
  ------------------
  |  Branch (435:13): [True: 288, False: 0]
  ------------------
  436|    288|          {
  437|    288|            if (errno == E2BIG)
  ------------------
  |  Branch (437:17): [True: 10, False: 278]
  ------------------
  438|     10|              grow = true;
  439|    278|            else if (errno == EINVAL)
  ------------------
  |  Branch (439:22): [True: 0, False: 278]
  ------------------
  440|      0|              break;
  441|    278|            else if (errno == EILSEQ && handler != iconveh_error)
  ------------------
  |  Branch (441:22): [True: 278, False: 0]
  |  Branch (441:41): [True: 0, False: 278]
  ------------------
  442|      0|              {
  443|      0|                if (cd2 == (iconv_t)(-1))
  ------------------
  |  Branch (443:21): [True: 0, False: 0]
  ------------------
  444|      0|                  {
  445|       |                    /* TO_CODESET is UTF-8.  */
  446|       |                    /* Error handling can produce up to 1 or 3 bytes of
  447|       |                       output.  */
  448|      0|                    size_t extra_need =
  449|      0|                      (handler == iconveh_replacement_character ? 3 : 1);
  ------------------
  |  Branch (449:24): [True: 0, False: 0]
  ------------------
  450|      0|                    if (length + extra_need + extra_alloc > allocated)
  ------------------
  |  Branch (450:25): [True: 0, False: 0]
  ------------------
  451|      0|                      {
  452|      0|                        char *memory;
  453|       |
  454|      0|                        allocated = 2 * allocated;
  455|      0|                        if (length + extra_need + extra_alloc > allocated)
  ------------------
  |  Branch (455:29): [True: 0, False: 0]
  ------------------
  456|      0|                          allocated = 2 * allocated;
  457|      0|                        if (length + extra_need + extra_alloc > allocated)
  ------------------
  |  Branch (457:29): [True: 0, False: 0]
  ------------------
  458|      0|                          abort ();
  459|      0|                        if (result == initial_result)
  ------------------
  |  Branch (459:29): [True: 0, False: 0]
  ------------------
  460|      0|                          memory = (char *) malloc (allocated);
  461|      0|                        else
  462|      0|                          memory = (char *) realloc (result, allocated);
  463|      0|                        if (memory == NULL)
  ------------------
  |  Branch (463:29): [True: 0, False: 0]
  ------------------
  464|      0|                          {
  465|      0|                            if (result != initial_result)
  ------------------
  |  Branch (465:33): [True: 0, False: 0]
  ------------------
  466|      0|                              free (result);
  467|      0|                            errno = ENOMEM;
  468|      0|                            return -1;
  469|      0|                          }
  470|      0|                        if (result == initial_result)
  ------------------
  |  Branch (470:29): [True: 0, False: 0]
  ------------------
  471|      0|                          memcpy (memory, initial_result, length);
  472|      0|                        result = memory;
  473|      0|                        grow = false;
  474|      0|                      }
  475|       |                    /* The input is invalid in FROM_CODESET.  Eat up one byte
  476|       |                       and emit a replacement character or a question mark.  */
  477|      0|                    if (!incremented)
  ------------------
  |  Branch (477:25): [True: 0, False: 0]
  ------------------
  478|      0|                      {
  479|      0|                        if (insize == 0)
  ------------------
  |  Branch (479:29): [True: 0, False: 0]
  ------------------
  480|      0|                          abort ();
  481|      0|                        inptr++;
  482|      0|                        insize--;
  483|      0|                      }
  484|      0|                    if (handler == iconveh_replacement_character)
  ------------------
  |  Branch (484:25): [True: 0, False: 0]
  ------------------
  485|      0|                      {
  486|       |                        /* U+FFFD in UTF-8 encoding.  */
  487|      0|                        result[length+0] = '\357';
  488|      0|                        result[length+1] = '\277';
  489|      0|                        result[length+2] = '\275';
  490|      0|                        length += 3;
  491|      0|                      }
  492|      0|                    else
  493|      0|                      {
  494|      0|                        result[length] = '?';
  495|      0|                        length++;
  496|      0|                      }
  497|      0|                  }
  498|      0|                else
  499|      0|                  goto indirectly;
  500|      0|              }
  501|    278|            else
  502|    278|              {
  503|    278|                if (result != initial_result)
  ------------------
  |  Branch (503:21): [True: 6, False: 272]
  ------------------
  504|      6|                  free (result);
  505|    278|                return -1;
  506|    278|              }
  507|    288|          }
  508|     10|        if (insize == 0)
  ------------------
  |  Branch (508:13): [True: 0, False: 10]
  ------------------
  509|      0|          break;
  510|     10|        if (grow)
  ------------------
  |  Branch (510:13): [True: 10, False: 0]
  ------------------
  511|     10|          {
  512|     10|            char *memory;
  513|       |
  514|     10|            allocated = 2 * allocated;
  515|     10|            if (result == initial_result)
  ------------------
  |  Branch (515:17): [True: 6, False: 4]
  ------------------
  516|      6|              memory = (char *) malloc (allocated);
  517|      4|            else
  518|      4|              memory = (char *) realloc (result, allocated);
  519|     10|            if (memory == NULL)
  ------------------
  |  Branch (519:17): [True: 0, False: 10]
  ------------------
  520|      0|              {
  521|      0|                if (result != initial_result)
  ------------------
  |  Branch (521:21): [True: 0, False: 0]
  ------------------
  522|      0|                  free (result);
  523|      0|                errno = ENOMEM;
  524|      0|                return -1;
  525|      0|              }
  526|     10|            if (result == initial_result)
  ------------------
  |  Branch (526:17): [True: 6, False: 4]
  ------------------
  527|      6|              memcpy (memory, initial_result, length);
  528|     10|            result = memory;
  529|     10|          }
  530|     10|      }
  531|    278|  }
  532|       |
  533|       |  /* Now get the conversion state back to the initial state.
  534|       |     But avoid glibc-2.1 bug and Solaris 2.7 bug.  */
  535|      0|#if defined _LIBICONV_VERSION \
  536|      0|    || !(((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) && !defined __UCLIBC__) \
  537|      0|         || defined __sun)
  538|      0|  for (;;)
  539|      0|    {
  540|      0|      char *outptr = result + length;
  541|      0|      size_t outsize = allocated - extra_alloc - length;
  542|      0|      size_t res;
  543|       |
  544|      0|      res = iconv (cd, NULL, NULL, &outptr, &outsize);
  545|      0|      length = outptr - result;
  546|      0|      if (res == (size_t)(-1))
  ------------------
  |  Branch (546:11): [True: 0, False: 0]
  ------------------
  547|      0|        {
  548|      0|          if (errno == E2BIG)
  ------------------
  |  Branch (548:15): [True: 0, False: 0]
  ------------------
  549|      0|            {
  550|      0|              char *memory;
  551|       |
  552|      0|              allocated = 2 * allocated;
  553|      0|              if (result == initial_result)
  ------------------
  |  Branch (553:19): [True: 0, False: 0]
  ------------------
  554|      0|                memory = (char *) malloc (allocated);
  555|      0|              else
  556|      0|                memory = (char *) realloc (result, allocated);
  557|      0|              if (memory == NULL)
  ------------------
  |  Branch (557:19): [True: 0, False: 0]
  ------------------
  558|      0|                {
  559|      0|                  if (result != initial_result)
  ------------------
  |  Branch (559:23): [True: 0, False: 0]
  ------------------
  560|      0|                    free (result);
  561|      0|                  errno = ENOMEM;
  562|      0|                  return -1;
  563|      0|                }
  564|      0|              if (result == initial_result)
  ------------------
  |  Branch (564:19): [True: 0, False: 0]
  ------------------
  565|      0|                memcpy (memory, initial_result, length);
  566|      0|              result = memory;
  567|      0|            }
  568|      0|          else
  569|      0|            {
  570|      0|              if (result != initial_result)
  ------------------
  |  Branch (570:19): [True: 0, False: 0]
  ------------------
  571|      0|                free (result);
  572|      0|              return -1;
  573|      0|            }
  574|      0|        }
  575|      0|      else
  576|      0|        break;
  577|      0|    }
  578|      0|#endif
  579|       |
  580|       |  /* The direct conversion succeeded.  */
  581|      0|  goto done;
  582|       |
  583|      0| indirectly:
  584|       |  /* The direct conversion failed.
  585|       |     Use a conversion through UTF-8.  */
  586|      0|  if (offsets != NULL)
  ------------------
  |  Branch (586:7): [True: 0, False: 0]
  ------------------
  587|      0|    {
  588|      0|      size_t i;
  589|       |
  590|      0|      for (i = 0; i < srclen; i++)
  ------------------
  |  Branch (590:19): [True: 0, False: 0]
  ------------------
  591|      0|        offsets[i] = (size_t)(-1);
  592|       |
  593|      0|      last_length = (size_t)(-1);
  594|      0|    }
  595|      0|  length = 0;
  596|      0|  {
  597|      0|    const bool slowly = (offsets != NULL || handler == iconveh_error);
  ------------------
  |  Branch (597:26): [True: 0, False: 0]
  |  Branch (597:45): [True: 0, False: 0]
  ------------------
  598|      0|# define utf8bufsize 4096 /* may also be smaller or larger than tmpbufsize */
  599|      0|    char utf8buf[utf8bufsize + 3];
  600|      0|    size_t utf8len = 0;
  601|      0|    const char *in1ptr = src;
  602|      0|    size_t in1size = srclen;
  603|      0|    bool do_final_flush1 = true;
  604|      0|    bool do_final_flush2 = true;
  605|       |
  606|       |    /* Set to the initial state.  */
  607|      0|    if (cd1 != (iconv_t)(-1))
  ------------------
  |  Branch (607:9): [True: 0, False: 0]
  ------------------
  608|      0|      iconv (cd1, NULL, NULL, NULL, NULL);
  609|      0|    if (cd2 != (iconv_t)(-1))
  ------------------
  |  Branch (609:9): [True: 0, False: 0]
  ------------------
  610|      0|      iconv (cd2, NULL, NULL, NULL, NULL);
  611|       |
  612|      0|    while (in1size > 0 || do_final_flush1 || utf8len > 0 || do_final_flush2)
  ------------------
  |  Branch (612:12): [True: 0, False: 0]
  |  Branch (612:27): [True: 0, False: 0]
  |  Branch (612:46): [True: 0, False: 0]
  |  Branch (612:61): [True: 0, False: 0]
  ------------------
  613|      0|      {
  614|      0|        char *out1ptr = utf8buf + utf8len;
  615|      0|        size_t out1size = utf8bufsize - utf8len;
  ------------------
  |  |  598|      0|# define utf8bufsize 4096 /* may also be smaller or larger than tmpbufsize */
  ------------------
  616|      0|        bool incremented1;
  617|      0|        size_t res1;
  618|      0|        int errno1;
  619|       |
  620|       |        /* Conversion step 1: from FROM_CODESET to UTF-8.  */
  621|      0|        if (in1size > 0)
  ------------------
  |  Branch (621:13): [True: 0, False: 0]
  ------------------
  622|      0|          {
  623|      0|            if (offsets != NULL
  ------------------
  |  Branch (623:17): [True: 0, False: 0]
  ------------------
  624|      0|                && length != last_length) /* ensure that offset[] be increasing */
  ------------------
  |  Branch (624:20): [True: 0, False: 0]
  ------------------
  625|      0|              {
  626|      0|                offsets[in1ptr - src] = length;
  627|      0|                last_length = length;
  628|      0|              }
  629|      0|            if (cd1 != (iconv_t)(-1))
  ------------------
  |  Branch (629:17): [True: 0, False: 0]
  ------------------
  630|      0|              {
  631|      0|                if (slowly)
  ------------------
  |  Branch (631:21): [True: 0, False: 0]
  ------------------
  632|      0|                  res1 = iconv_carefully_1 (cd1,
  633|      0|                                            &in1ptr, &in1size,
  634|      0|                                            &out1ptr, &out1size,
  635|      0|                                            &incremented1);
  636|      0|                else
  637|      0|                  res1 = iconv_carefully (cd1,
  ------------------
  |  |  201|      0|     (*(incremented) = false, \
  |  |  202|      0|      iconv (cd, (ICONV_CONST char **) (inbuf), inbytesleft, outbuf, outbytesleft))
  ------------------
  638|      0|                                          &in1ptr, &in1size,
  639|      0|                                          &out1ptr, &out1size,
  640|      0|                                          &incremented1);
  641|      0|              }
  642|      0|            else
  643|      0|              {
  644|       |                /* FROM_CODESET is UTF-8.  */
  645|      0|                res1 = utf8conv_carefully (slowly,
  646|      0|                                           &in1ptr, &in1size,
  647|      0|                                           &out1ptr, &out1size,
  648|      0|                                           &incremented1);
  649|      0|              }
  650|      0|          }
  651|      0|        else if (do_final_flush1)
  ------------------
  |  Branch (651:18): [True: 0, False: 0]
  ------------------
  652|      0|          {
  653|       |            /* Now get the conversion state of CD1 back to the initial state.
  654|       |               But avoid glibc-2.1 bug and Solaris 2.7 bug.  */
  655|      0|# if defined _LIBICONV_VERSION \
  656|      0|     || !(((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) && !defined __UCLIBC__) \
  657|      0|          || defined __sun)
  658|      0|            if (cd1 != (iconv_t)(-1))
  ------------------
  |  Branch (658:17): [True: 0, False: 0]
  ------------------
  659|      0|              res1 = iconv (cd1, NULL, NULL, &out1ptr, &out1size);
  660|      0|            else
  661|      0|# endif
  662|      0|              res1 = 0;
  663|      0|            do_final_flush1 = false;
  664|      0|            incremented1 = true;
  665|      0|          }
  666|      0|        else
  667|      0|          {
  668|      0|            res1 = 0;
  669|      0|            incremented1 = true;
  670|      0|          }
  671|      0|        if (res1 == (size_t)(-1)
  ------------------
  |  Branch (671:13): [True: 0, False: 0]
  ------------------
  672|      0|            && !(errno == E2BIG || errno == EINVAL || errno == EILSEQ))
  ------------------
  |  Branch (672:18): [True: 0, False: 0]
  |  Branch (672:36): [True: 0, False: 0]
  |  Branch (672:55): [True: 0, False: 0]
  ------------------
  673|      0|          {
  674|      0|            if (result != initial_result)
  ------------------
  |  Branch (674:17): [True: 0, False: 0]
  ------------------
  675|      0|              free (result);
  676|      0|            return -1;
  677|      0|          }
  678|      0|        if (res1 == (size_t)(-1)
  ------------------
  |  Branch (678:13): [True: 0, False: 0]
  ------------------
  679|      0|            && errno == EILSEQ && handler != iconveh_error)
  ------------------
  |  Branch (679:16): [True: 0, False: 0]
  |  Branch (679:35): [True: 0, False: 0]
  ------------------
  680|      0|          {
  681|       |            /* The input is invalid in FROM_CODESET.  Eat up one byte and
  682|       |               emit a U+FFFD character or a question mark.  Room for this
  683|       |               character was allocated at the end of utf8buf.  */
  684|      0|            if (!incremented1)
  ------------------
  |  Branch (684:17): [True: 0, False: 0]
  ------------------
  685|      0|              {
  686|      0|                if (in1size == 0)
  ------------------
  |  Branch (686:21): [True: 0, False: 0]
  ------------------
  687|      0|                  abort ();
  688|      0|                in1ptr++;
  689|      0|                in1size--;
  690|      0|              }
  691|      0|            if (handler == iconveh_replacement_character)
  ------------------
  |  Branch (691:17): [True: 0, False: 0]
  ------------------
  692|      0|              {
  693|       |                /* U+FFFD in UTF-8 encoding.  */
  694|      0|                out1ptr[0] = '\357';
  695|      0|                out1ptr[1] = '\277';
  696|      0|                out1ptr[2] = '\275';
  697|      0|                out1ptr += 3;
  698|      0|              }
  699|      0|            else
  700|      0|              *out1ptr++ = '?';
  701|      0|            res1 = 0;
  702|      0|          }
  703|      0|        errno1 = errno;
  704|      0|        utf8len = out1ptr - utf8buf;
  705|       |
  706|      0|        if (offsets != NULL
  ------------------
  |  Branch (706:13): [True: 0, False: 0]
  ------------------
  707|      0|            || in1size == 0
  ------------------
  |  Branch (707:16): [True: 0, False: 0]
  ------------------
  708|      0|            || utf8len > utf8bufsize / 2
  ------------------
  |  |  598|      0|# define utf8bufsize 4096 /* may also be smaller or larger than tmpbufsize */
  ------------------
  |  Branch (708:16): [True: 0, False: 0]
  ------------------
  709|      0|            || (res1 == (size_t)(-1) && errno1 == E2BIG))
  ------------------
  |  Branch (709:17): [True: 0, False: 0]
  |  Branch (709:41): [True: 0, False: 0]
  ------------------
  710|      0|          {
  711|       |            /* Conversion step 2: from UTF-8 to TO_CODESET.  */
  712|      0|            const char *in2ptr = utf8buf;
  713|      0|            size_t in2size = utf8len;
  714|       |
  715|      0|            while (in2size > 0
  ------------------
  |  Branch (715:20): [True: 0, False: 0]
  ------------------
  716|      0|                   || (in1size == 0 && !do_final_flush1 && do_final_flush2))
  ------------------
  |  Branch (716:24): [True: 0, False: 0]
  |  Branch (716:40): [True: 0, False: 0]
  |  Branch (716:60): [True: 0, False: 0]
  ------------------
  717|      0|              {
  718|      0|                char *out2ptr = result + length;
  719|      0|                size_t out2size = allocated - extra_alloc - length;
  720|      0|                bool incremented2;
  721|      0|                size_t res2;
  722|      0|                bool grow;
  723|       |
  724|      0|                if (in2size > 0)
  ------------------
  |  Branch (724:21): [True: 0, False: 0]
  ------------------
  725|      0|                  {
  726|      0|                    if (cd2 != (iconv_t)(-1))
  ------------------
  |  Branch (726:25): [True: 0, False: 0]
  ------------------
  727|      0|                      res2 = iconv_carefully (cd2,
  ------------------
  |  |  201|      0|     (*(incremented) = false, \
  |  |  202|      0|      iconv (cd, (ICONV_CONST char **) (inbuf), inbytesleft, outbuf, outbytesleft))
  ------------------
  728|      0|                                              &in2ptr, &in2size,
  729|      0|                                              &out2ptr, &out2size,
  730|      0|                                              &incremented2);
  731|      0|                    else
  732|       |                      /* TO_CODESET is UTF-8.  */
  733|      0|                      res2 = utf8conv_carefully (false,
  734|      0|                                                 &in2ptr, &in2size,
  735|      0|                                                 &out2ptr, &out2size,
  736|      0|                                                 &incremented2);
  737|      0|                  }
  738|      0|                else /* in1size == 0 && !do_final_flush1
  739|       |                        && in2size == 0 && do_final_flush2 */
  740|      0|                  {
  741|       |                    /* Now get the conversion state of CD1 back to the initial
  742|       |                       state.  But avoid glibc-2.1 bug and Solaris 2.7 bug.  */
  743|      0|# if defined _LIBICONV_VERSION \
  744|      0|     || !(((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) && !defined __UCLIBC__) \
  745|      0|          || defined __sun)
  746|      0|                    if (cd2 != (iconv_t)(-1))
  ------------------
  |  Branch (746:25): [True: 0, False: 0]
  ------------------
  747|      0|                      res2 = iconv (cd2, NULL, NULL, &out2ptr, &out2size);
  748|      0|                    else
  749|      0|# endif
  750|      0|                      res2 = 0;
  751|      0|                    do_final_flush2 = false;
  752|      0|                    incremented2 = true;
  753|      0|                  }
  754|       |
  755|      0|                length = out2ptr - result;
  756|      0|                grow = (length + extra_alloc > allocated / 2);
  757|      0|                if (res2 == (size_t)(-1))
  ------------------
  |  Branch (757:21): [True: 0, False: 0]
  ------------------
  758|      0|                  {
  759|      0|                    if (errno == E2BIG)
  ------------------
  |  Branch (759:25): [True: 0, False: 0]
  ------------------
  760|      0|                      grow = true;
  761|      0|                    else if (errno == EINVAL)
  ------------------
  |  Branch (761:30): [True: 0, False: 0]
  ------------------
  762|      0|                      break;
  763|      0|                    else if (errno == EILSEQ && handler != iconveh_error)
  ------------------
  |  Branch (763:30): [True: 0, False: 0]
  |  Branch (763:49): [True: 0, False: 0]
  ------------------
  764|      0|                      {
  765|       |                        /* Error handling can produce up to 10 bytes of UTF-8
  766|       |                           output.  But TO_CODESET may be UCS-2, UTF-16 or
  767|       |                           UCS-4, so use CD2 here as well.  */
  768|      0|                        char scratchbuf[10];
  769|      0|                        size_t scratchlen;
  770|      0|                        ucs4_t uc;
  771|      0|                        const char *inptr;
  772|      0|                        size_t insize;
  773|      0|                        size_t res;
  774|       |
  775|      0|                        if (incremented2)
  ------------------
  |  Branch (775:29): [True: 0, False: 0]
  ------------------
  776|      0|                          {
  777|      0|                            if (u8_prev (&uc, (const uint8_t *) in2ptr,
  ------------------
  |  Branch (777:33): [True: 0, False: 0]
  ------------------
  778|      0|                                         (const uint8_t *) utf8buf)
  779|      0|                                == NULL)
  780|      0|                              abort ();
  781|      0|                          }
  782|      0|                        else
  783|      0|                          {
  784|      0|                            int n;
  785|      0|                            if (in2size == 0)
  ------------------
  |  Branch (785:33): [True: 0, False: 0]
  ------------------
  786|      0|                              abort ();
  787|      0|                            n = u8_mbtouc_unsafe (&uc, (const uint8_t *) in2ptr,
  788|      0|                                                  in2size);
  789|      0|                            in2ptr += n;
  790|      0|                            in2size -= n;
  791|      0|                          }
  792|       |
  793|      0|                        if (handler == iconveh_escape_sequence)
  ------------------
  |  Branch (793:29): [True: 0, False: 0]
  ------------------
  794|      0|                          {
  795|      0|                            static char const hex[16] = "0123456789ABCDEF";
  796|      0|                            scratchlen = 0;
  797|      0|                            scratchbuf[scratchlen++] = '\\';
  798|      0|                            if (uc < 0x10000)
  ------------------
  |  Branch (798:33): [True: 0, False: 0]
  ------------------
  799|      0|                              scratchbuf[scratchlen++] = 'u';
  800|      0|                            else
  801|      0|                              {
  802|      0|                                scratchbuf[scratchlen++] = 'U';
  803|      0|                                scratchbuf[scratchlen++] = hex[(uc>>28) & 15];
  804|      0|                                scratchbuf[scratchlen++] = hex[(uc>>24) & 15];
  805|      0|                                scratchbuf[scratchlen++] = hex[(uc>>20) & 15];
  806|      0|                                scratchbuf[scratchlen++] = hex[(uc>>16) & 15];
  807|      0|                              }
  808|      0|                            scratchbuf[scratchlen++] = hex[(uc>>12) & 15];
  809|      0|                            scratchbuf[scratchlen++] = hex[(uc>>8) & 15];
  810|      0|                            scratchbuf[scratchlen++] = hex[(uc>>4) & 15];
  811|      0|                            scratchbuf[scratchlen++] = hex[uc & 15];
  812|      0|                          }
  813|      0|                        else if (handler == iconveh_replacement_character)
  ------------------
  |  Branch (813:34): [True: 0, False: 0]
  ------------------
  814|      0|                          {
  815|       |                            /* U+FFFD in UTF-8 encoding.  */
  816|      0|                            scratchbuf[0] = '\357';
  817|      0|                            scratchbuf[1] = '\277';
  818|      0|                            scratchbuf[2] = '\275';
  819|      0|                            scratchlen = 3;
  820|      0|                          }
  821|      0|                        else
  822|      0|                          {
  823|      0|                            scratchbuf[0] = '?';
  824|      0|                            scratchlen = 1;
  825|      0|                          }
  826|       |
  827|      0|                        inptr = scratchbuf;
  828|      0|                        insize = scratchlen;
  829|      0|                        if (cd2 != (iconv_t)(-1))
  ------------------
  |  Branch (829:29): [True: 0, False: 0]
  ------------------
  830|      0|                          {
  831|      0|                            char *out2ptr_try = out2ptr;
  832|      0|                            size_t out2size_try = out2size;
  833|      0|                            res = iconv (cd2,
  834|      0|                                         (ICONV_CONST char **) &inptr, &insize,
  835|      0|                                         &out2ptr_try, &out2size_try);
  836|      0|                            if (handler == iconveh_replacement_character
  ------------------
  |  Branch (836:33): [True: 0, False: 0]
  ------------------
  837|      0|                                && (res == (size_t)(-1)
  ------------------
  |  Branch (837:36): [True: 0, False: 0]
  |  Branch (837:37): [True: 0, False: 0]
  ------------------
  838|      0|                                    ? errno == EILSEQ
  839|       |                                    /* FreeBSD iconv(), NetBSD iconv(), and
  840|       |                                       Solaris 11 iconv() insert a '?' if they
  841|       |                                       cannot convert.  This is what we want.
  842|       |                                       But IRIX iconv() inserts a NUL byte if it
  843|       |                                       cannot convert.
  844|       |                                       And musl libc iconv() inserts a '*' if it
  845|       |                                       cannot convert.  */
  846|      0|                                    : (res > 0
  ------------------
  |  Branch (846:40): [True: 0, False: 0]
  ------------------
  847|      0|                                       && !(out2ptr_try - out2ptr == 1
  ------------------
  |  Branch (847:45): [True: 0, False: 0]
  ------------------
  848|      0|                                            && *out2ptr == '?'))))
  ------------------
  |  Branch (848:48): [True: 0, False: 0]
  ------------------
  849|      0|                              {
  850|       |                                /* The iconv() call failed.
  851|       |                                   U+FFFD can't be converted to TO_CODESET.
  852|       |                                   Use '?' instead.  */
  853|      0|                                scratchbuf[0] = '?';
  854|      0|                                scratchlen = 1;
  855|      0|                                inptr = scratchbuf;
  856|      0|                                insize = scratchlen;
  857|      0|                                res = iconv (cd2,
  858|      0|                                             (ICONV_CONST char **) &inptr, &insize,
  859|      0|                                             &out2ptr, &out2size);
  860|      0|                              }
  861|      0|                            else
  862|      0|                              {
  863|       |                                /* Accept the results of the iconv() call.  */
  864|      0|                                out2ptr = out2ptr_try;
  865|      0|                                out2size = out2size_try;
  866|      0|                                res = 0;
  867|      0|                              }
  868|      0|                          }
  869|      0|                        else
  870|      0|                          {
  871|       |                            /* TO_CODESET is UTF-8.  */
  872|      0|                            if (out2size >= insize)
  ------------------
  |  Branch (872:33): [True: 0, False: 0]
  ------------------
  873|      0|                              {
  874|      0|                                memcpy (out2ptr, inptr, insize);
  875|      0|                                out2ptr += insize;
  876|      0|                                out2size -= insize;
  877|      0|                                inptr += insize;
  878|      0|                                insize = 0;
  879|      0|                                res = 0;
  880|      0|                              }
  881|      0|                            else
  882|      0|                              {
  883|      0|                                errno = E2BIG;
  884|      0|                                res = (size_t)(-1);
  885|      0|                              }
  886|      0|                          }
  887|      0|                        length = out2ptr - result;
  888|      0|                        if (res == (size_t)(-1) && errno == E2BIG)
  ------------------
  |  Branch (888:29): [True: 0, False: 0]
  |  Branch (888:52): [True: 0, False: 0]
  ------------------
  889|      0|                          {
  890|      0|                            char *memory;
  891|       |
  892|      0|                            allocated = 2 * allocated;
  893|      0|                            if (length + 1 + extra_alloc > allocated)
  ------------------
  |  Branch (893:33): [True: 0, False: 0]
  ------------------
  894|      0|                              abort ();
  895|      0|                            if (result == initial_result)
  ------------------
  |  Branch (895:33): [True: 0, False: 0]
  ------------------
  896|      0|                              memory = (char *) malloc (allocated);
  897|      0|                            else
  898|      0|                              memory = (char *) realloc (result, allocated);
  899|      0|                            if (memory == NULL)
  ------------------
  |  Branch (899:33): [True: 0, False: 0]
  ------------------
  900|      0|                              {
  901|      0|                                if (result != initial_result)
  ------------------
  |  Branch (901:37): [True: 0, False: 0]
  ------------------
  902|      0|                                  free (result);
  903|      0|                                errno = ENOMEM;
  904|      0|                                return -1;
  905|      0|                              }
  906|      0|                            if (result == initial_result)
  ------------------
  |  Branch (906:33): [True: 0, False: 0]
  ------------------
  907|      0|                              memcpy (memory, initial_result, length);
  908|      0|                            result = memory;
  909|      0|                            grow = false;
  910|       |
  911|      0|                            out2ptr = result + length;
  912|      0|                            out2size = allocated - extra_alloc - length;
  913|      0|                            if (cd2 != (iconv_t)(-1))
  ------------------
  |  Branch (913:33): [True: 0, False: 0]
  ------------------
  914|      0|                              res = iconv (cd2,
  915|      0|                                           (ICONV_CONST char **) &inptr,
  916|      0|                                           &insize,
  917|      0|                                           &out2ptr, &out2size);
  918|      0|                            else
  919|      0|                              {
  920|       |                                /* TO_CODESET is UTF-8.  */
  921|      0|                                if (!(out2size >= insize))
  ------------------
  |  Branch (921:37): [True: 0, False: 0]
  ------------------
  922|      0|                                  abort ();
  923|      0|                                memcpy (out2ptr, inptr, insize);
  924|      0|                                out2ptr += insize;
  925|      0|                                out2size -= insize;
  926|      0|                                inptr += insize;
  927|      0|                                insize = 0;
  928|      0|                                res = 0;
  929|      0|                              }
  930|      0|                            length = out2ptr - result;
  931|      0|                          }
  932|       |# if !(defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
  933|       |     && !(defined __GLIBC__ && !defined __UCLIBC__)
  934|       |                        /* IRIX iconv() inserts a NUL byte if it cannot convert.
  935|       |                           FreeBSD iconv(), NetBSD iconv(), and Solaris 11
  936|       |                           iconv() insert a '?' if they cannot convert.
  937|       |                           musl libc iconv() inserts a '*' if it cannot convert.
  938|       |                           Only GNU libiconv (excluding the bastard Apple iconv)
  939|       |                           and GNU libc are known to prefer to fail rather than
  940|       |                           doing a lossy conversion.  */
  941|       |                        if (res != (size_t)(-1) && res > 0)
  942|       |                          {
  943|       |                            errno = EILSEQ;
  944|       |                            res = (size_t)(-1);
  945|       |                          }
  946|       |# endif
  947|      0|                        if (res == (size_t)(-1))
  ------------------
  |  Branch (947:29): [True: 0, False: 0]
  ------------------
  948|      0|                          {
  949|       |                            /* Failure converting the ASCII replacement.  */
  950|      0|                            if (result != initial_result)
  ------------------
  |  Branch (950:33): [True: 0, False: 0]
  ------------------
  951|      0|                              free (result);
  952|      0|                            return -1;
  953|      0|                          }
  954|      0|                      }
  955|      0|                    else
  956|      0|                      {
  957|      0|                        if (result != initial_result)
  ------------------
  |  Branch (957:29): [True: 0, False: 0]
  ------------------
  958|      0|                          free (result);
  959|      0|                        return -1;
  960|      0|                      }
  961|      0|                  }
  962|      0|                if (!(in2size > 0
  ------------------
  |  Branch (962:23): [True: 0, False: 0]
  ------------------
  963|      0|                      || (in1size == 0 && !do_final_flush1 && do_final_flush2)))
  ------------------
  |  Branch (963:27): [True: 0, False: 0]
  |  Branch (963:43): [True: 0, False: 0]
  |  Branch (963:63): [True: 0, False: 0]
  ------------------
  964|      0|                  break;
  965|      0|                if (grow)
  ------------------
  |  Branch (965:21): [True: 0, False: 0]
  ------------------
  966|      0|                  {
  967|      0|                    char *memory;
  968|       |
  969|      0|                    allocated = 2 * allocated;
  970|      0|                    if (result == initial_result)
  ------------------
  |  Branch (970:25): [True: 0, False: 0]
  ------------------
  971|      0|                      memory = (char *) malloc (allocated);
  972|      0|                    else
  973|      0|                      memory = (char *) realloc (result, allocated);
  974|      0|                    if (memory == NULL)
  ------------------
  |  Branch (974:25): [True: 0, False: 0]
  ------------------
  975|      0|                      {
  976|      0|                        if (result != initial_result)
  ------------------
  |  Branch (976:29): [True: 0, False: 0]
  ------------------
  977|      0|                          free (result);
  978|      0|                        errno = ENOMEM;
  979|      0|                        return -1;
  980|      0|                      }
  981|      0|                    if (result == initial_result)
  ------------------
  |  Branch (981:25): [True: 0, False: 0]
  ------------------
  982|      0|                      memcpy (memory, initial_result, length);
  983|      0|                    result = memory;
  984|      0|                  }
  985|      0|              }
  986|       |
  987|       |            /* Move the remaining bytes to the beginning of utf8buf.  */
  988|      0|            if (in2size > 0)
  ------------------
  |  Branch (988:17): [True: 0, False: 0]
  ------------------
  989|      0|              memmove (utf8buf, in2ptr, in2size);
  990|      0|            utf8len = in2size;
  991|      0|          }
  992|       |
  993|      0|        if (res1 == (size_t)(-1))
  ------------------
  |  Branch (993:13): [True: 0, False: 0]
  ------------------
  994|      0|          {
  995|      0|            if (errno1 == EINVAL)
  ------------------
  |  Branch (995:17): [True: 0, False: 0]
  ------------------
  996|      0|              in1size = 0;
  997|      0|            else if (errno1 == EILSEQ)
  ------------------
  |  Branch (997:22): [True: 0, False: 0]
  ------------------
  998|      0|              {
  999|      0|                if (result != initial_result)
  ------------------
  |  Branch (999:21): [True: 0, False: 0]
  ------------------
 1000|      0|                  free (result);
 1001|      0|                errno = errno1;
 1002|      0|                return -1;
 1003|      0|              }
 1004|      0|          }
 1005|      0|      }
 1006|      0|# undef utf8bufsize
 1007|      0|  }
 1008|       |
 1009|      0| done:
 1010|       |  /* Now the final memory allocation.  */
 1011|      0|  if (result == tmpbuf)
  ------------------
  |  |  357|      0|# define tmpbuf tmp.buf
  ------------------
  |  Branch (1011:7): [True: 0, False: 0]
  ------------------
 1012|      0|    {
 1013|      0|      size_t memsize = length + extra_alloc;
 1014|       |
 1015|      0|      if (*resultp != NULL && *lengthp >= memsize)
  ------------------
  |  Branch (1015:11): [True: 0, False: 0]
  |  Branch (1015:31): [True: 0, False: 0]
  ------------------
 1016|      0|        result = *resultp;
 1017|      0|      else
 1018|      0|        {
 1019|      0|          char *memory;
 1020|       |
 1021|      0|          memory = (char *) malloc (memsize > 0 ? memsize : 1);
  ------------------
  |  Branch (1021:37): [True: 0, False: 0]
  ------------------
 1022|      0|          if (memory != NULL)
  ------------------
  |  Branch (1022:15): [True: 0, False: 0]
  ------------------
 1023|      0|            result = memory;
 1024|      0|          else
 1025|      0|            {
 1026|      0|              errno = ENOMEM;
 1027|      0|              return -1;
 1028|      0|            }
 1029|      0|        }
 1030|      0|      memcpy (result, tmpbuf, length);
  ------------------
  |  |  357|      0|# define tmpbuf tmp.buf
  ------------------
 1031|      0|    }
 1032|      0|  else if (result != *resultp && length + extra_alloc < allocated)
  ------------------
  |  Branch (1032:12): [True: 0, False: 0]
  |  Branch (1032:34): [True: 0, False: 0]
  ------------------
 1033|      0|    {
 1034|       |      /* Shrink the allocated memory if possible.  */
 1035|      0|      size_t memsize = length + extra_alloc;
 1036|      0|      char *memory;
 1037|       |
 1038|      0|      memory = (char *) realloc (result, memsize > 0 ? memsize : 1);
  ------------------
  |  Branch (1038:42): [True: 0, False: 0]
  ------------------
 1039|      0|      if (memory != NULL)
  ------------------
  |  Branch (1039:11): [True: 0, False: 0]
  ------------------
 1040|      0|        result = memory;
 1041|      0|    }
 1042|      0|  *resultp = result;
 1043|      0|  *lengthp = length;
 1044|      0|  return 0;
 1045|      0|# undef tmpbuf
 1046|      0|# undef tmpbufsize
 1047|      0|}

mem_iconveha:
  214|    278|{
  215|    278|  if (srclen == 0)
  ------------------
  |  Branch (215:7): [True: 0, False: 278]
  ------------------
  216|      0|    {
  217|       |      /* Nothing to convert.  */
  218|      0|      *lengthp = 0;
  219|      0|      return 0;
  220|      0|    }
  221|       |
  222|       |  /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5 or Citrus/FreeBSD/macOS
  223|       |     iconv, we want to use transliteration.  */
  224|    278|#if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) \
  225|    278|     && !defined __UCLIBC__) \
  226|    278|    || _LIBICONV_VERSION >= 0x0105 \
  227|    278|    || defined ICONV_SET_TRANSLITERATE
  228|    278|  if (transliterate)
  ------------------
  |  Branch (228:7): [True: 278, False: 0]
  ------------------
  229|    278|    {
  230|    278|      int retval;
  231|    278|      size_t len = strlen (to_codeset);
  232|    278|      char *to_codeset_suffixed = (char *) malloca (len + 10 + 1);
  ------------------
  |  |   86|    278|    ((N) < 4032 - (2 * sa_alignment_max - 1)                                   \
  |  |  ------------------
  |  |  |  Branch (86:6): [True: 278, False: 0]
  |  |  ------------------
  |  |   87|    278|     ? (void *) (((uintptr_t) (char *) alloca ((N) + 2 * sa_alignment_max - 1) \
  |  |   88|    278|                  + (2 * sa_alignment_max - 1))                                \
  |  |   89|    278|                 & ~(uintptr_t)(2 * sa_alignment_max - 1))                     \
  |  |   90|    278|     : mmalloca (N))
  ------------------
  233|    278|      if (to_codeset_suffixed == NULL)
  ------------------
  |  Branch (233:11): [True: 0, False: 278]
  ------------------
  234|      0|        {
  235|      0|          errno = ENOMEM;
  236|      0|          return -1;
  237|      0|        }
  238|    278|      memcpy (to_codeset_suffixed, to_codeset, len);
  239|    278|      memcpy (to_codeset_suffixed + len, "//TRANSLIT", 10 + 1);
  240|       |
  241|    278|      retval = mem_iconveha_notranslit (src, srclen,
  242|    278|                                        from_codeset, to_codeset_suffixed,
  243|    278|                                        handler, offsets, resultp, lengthp);
  244|       |
  245|    278|      freea (to_codeset_suffixed);
  246|       |
  247|    278|      return retval;
  248|    278|    }
  249|      0|  else
  250|      0|#endif
  251|      0|    return mem_iconveha_notranslit (src, srclen,
  252|      0|                                    from_codeset, to_codeset,
  253|      0|                                    handler, offsets, resultp, lengthp);
  254|    278|}
striconveha.c:mem_iconveha_notranslit:
  151|    278|{
  152|    278|  int retval = mem_iconveh (src, srclen, from_codeset, to_codeset, handler,
  153|    278|                            offsets, resultp, lengthp);
  154|    278|  if (retval >= 0 || errno != EINVAL)
  ------------------
  |  Branch (154:7): [True: 0, False: 278]
  |  Branch (154:22): [True: 278, False: 0]
  ------------------
  155|    278|    return retval;
  156|      0|  else
  157|      0|    {
  158|      0|      struct autodetect_alias *alias;
  159|       |
  160|       |      /* Unsupported from_codeset or to_codeset. Check whether the caller
  161|       |         requested autodetection.  */
  162|      0|      for (alias = autodetect_list; alias != NULL; alias = alias->next)
  ------------------
  |  Branch (162:37): [True: 0, False: 0]
  ------------------
  163|      0|        if (strcmp (from_codeset, alias->name) == 0)
  ------------------
  |  Branch (163:13): [True: 0, False: 0]
  ------------------
  164|      0|          {
  165|      0|            const char * const *encodings;
  166|       |
  167|      0|            if (handler != iconveh_error)
  ------------------
  |  Branch (167:17): [True: 0, False: 0]
  ------------------
  168|      0|              {
  169|       |                /* First try all encodings without any forgiving.  */
  170|      0|                encodings = alias->encodings_to_try;
  171|      0|                do
  172|      0|                  {
  173|      0|                    retval = mem_iconveha_notranslit (src, srclen,
  174|      0|                                                      *encodings, to_codeset,
  175|      0|                                                      iconveh_error, offsets,
  176|      0|                                                      resultp, lengthp);
  177|      0|                    if (!(retval < 0 && errno == EILSEQ))
  ------------------
  |  Branch (177:27): [True: 0, False: 0]
  |  Branch (177:41): [True: 0, False: 0]
  ------------------
  178|      0|                      return retval;
  179|      0|                    encodings++;
  180|      0|                  }
  181|      0|                while (*encodings != NULL);
  ------------------
  |  Branch (181:24): [True: 0, False: 0]
  ------------------
  182|      0|              }
  183|       |
  184|      0|            encodings = alias->encodings_to_try;
  185|      0|            do
  186|      0|              {
  187|      0|                retval = mem_iconveha_notranslit (src, srclen,
  188|      0|                                                  *encodings, to_codeset,
  189|      0|                                                  handler, offsets,
  190|      0|                                                  resultp, lengthp);
  191|      0|                if (!(retval < 0 && errno == EILSEQ))
  ------------------
  |  Branch (191:23): [True: 0, False: 0]
  |  Branch (191:37): [True: 0, False: 0]
  ------------------
  192|      0|                  return retval;
  193|      0|                encodings++;
  194|      0|              }
  195|      0|            while (*encodings != NULL);
  ------------------
  |  Branch (195:20): [True: 0, False: 0]
  ------------------
  196|       |
  197|       |            /* Return the last call's result.  */
  198|      0|            return -1;
  199|      0|          }
  200|       |
  201|       |      /* It wasn't an autodetection name.  */
  202|      0|      errno = EINVAL;
  203|      0|      return -1;
  204|      0|    }
  205|    278|}

u8_strconv_from_encoding:
   21|    278|{
   22|    278|  UNIT *result;
  ------------------
  |  |   31|    278|#define UNIT uint8_t
  ------------------
   23|    278|  size_t length;
   24|       |
   25|    278|  result =
   26|    278|    U_CONV_FROM_ENCODING (fromcode, handler,
  ------------------
  |  |   32|    278|#define U_CONV_FROM_ENCODING u8_conv_from_encoding
  ------------------
   27|    278|                          string, strlen (string) + 1, NULL,
   28|    278|                          NULL, &length);
   29|    278|  if (result == NULL)
  ------------------
  |  Branch (29:7): [True: 278, False: 0]
  ------------------
   30|    278|    return NULL;
   31|       |  /* Verify the result has exactly one NUL unit, at the end.  */
   32|      0|  if (!(length > 0 && result[length-1] == 0
  ------------------
  |  Branch (32:9): [True: 0, False: 0]
  |  Branch (32:23): [True: 0, False: 0]
  ------------------
   33|      0|        && U_STRLEN (result) == length-1))
  ------------------
  |  |   33|      0|#define U_STRLEN u8_strlen
  ------------------
  |  Branch (33:12): [True: 0, False: 0]
  ------------------
   34|      0|    {
   35|      0|      free (result);
   36|      0|      errno = EILSEQ;
   37|      0|      return NULL;
   38|      0|    }
   39|      0|  return result;
   40|      0|}

u8_conv_from_encoding:
   38|    278|{
   39|    278|  if (STRCASEEQ (fromcode, "UTF-8", 'U','T','F','-','8',0,0,0,0))
  ------------------
  |  |  179|    278|  strcaseeq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28)
  |  |  ------------------
  |  |  |  Branch (179:3): [True: 0, False: 278]
  |  |  ------------------
  ------------------
   40|      0|    {
   41|       |      /* Conversion from UTF-8 to UTF-8.  No need to go through iconv().  */
   42|      0|      uint8_t *result;
   43|       |
   44|      0|      if (u8_check ((const uint8_t *) src, srclen))
  ------------------
  |  Branch (44:11): [True: 0, False: 0]
  ------------------
   45|      0|        {
   46|      0|          errno = EILSEQ;
   47|      0|          return NULL;
   48|      0|        }
   49|       |
   50|      0|      if (offsets != NULL)
  ------------------
  |  Branch (50:11): [True: 0, False: 0]
  ------------------
   51|      0|        {
   52|      0|          size_t i;
   53|       |
   54|      0|          for (i = 0; i < srclen; )
  ------------------
  |  Branch (54:23): [True: 0, False: 0]
  ------------------
   55|      0|            {
   56|      0|              int count = u8_mblen ((const uint8_t *) src + i, srclen - i);
   57|       |              /* We can rely on count > 0 because of the previous u8_check.  */
   58|      0|              if (count <= 0)
  ------------------
  |  Branch (58:19): [True: 0, False: 0]
  ------------------
   59|      0|                abort ();
   60|      0|              offsets[i] = i;
   61|      0|              i++;
   62|      0|              while (--count > 0)
  ------------------
  |  Branch (62:22): [True: 0, False: 0]
  ------------------
   63|      0|                offsets[i++] = (size_t)(-1);
   64|      0|            }
   65|      0|        }
   66|       |
   67|       |      /* Memory allocation.  */
   68|      0|      if (resultbuf != NULL && *lengthp >= srclen)
  ------------------
  |  Branch (68:11): [True: 0, False: 0]
  |  Branch (68:32): [True: 0, False: 0]
  ------------------
   69|      0|        result = resultbuf;
   70|      0|      else
   71|      0|        {
   72|      0|          result = (uint8_t *) malloc (srclen > 0 ? srclen : 1);
  ------------------
  |  Branch (72:40): [True: 0, False: 0]
  ------------------
   73|      0|          if (result == NULL)
  ------------------
  |  Branch (73:15): [True: 0, False: 0]
  ------------------
   74|      0|            {
   75|      0|              errno = ENOMEM;
   76|      0|              return NULL;
   77|      0|            }
   78|      0|        }
   79|       |
   80|      0|      if (srclen > 0)
  ------------------
  |  Branch (80:11): [True: 0, False: 0]
  ------------------
   81|      0|        memcpy ((char *) result, src, srclen);
   82|      0|      *lengthp = srclen;
   83|      0|      return result;
   84|      0|    }
   85|    278|  else
   86|    278|    {
   87|    278|      char *result = (char *) resultbuf;
   88|    278|      size_t length = *lengthp;
   89|       |
   90|    278|      if (mem_iconveha (src, srclen, fromcode, "UTF-8", true, handler,
  ------------------
  |  Branch (90:11): [True: 278, False: 0]
  ------------------
   91|    278|                        offsets, &result, &length) < 0)
   92|    278|        return NULL;
   93|       |
   94|      0|      if (result == NULL) /* when (resultbuf == NULL && length == 0)  */
  ------------------
  |  Branch (94:11): [True: 0, False: 0]
  ------------------
   95|      0|        {
   96|      0|          result = (char *) malloc (1);
   97|      0|          if (result == NULL)
  ------------------
  |  Branch (97:15): [True: 0, False: 0]
  ------------------
   98|      0|            {
   99|      0|              errno = ENOMEM;
  100|      0|              return NULL;
  101|      0|            }
  102|      0|        }
  103|      0|      *lengthp = length;
  104|      0|      return (uint8_t *) result;
  105|      0|    }
  106|    278|}

_ZN4absl12lts_2024011620PrefetchToLocalCacheEPKv:
  146|  1.53M|    const void* addr) {
  147|  1.53M|  __builtin_prefetch(addr, 0, 3);
  148|  1.53M|}

_ZN4absl12lts_2024011612log_internal12Check_EQImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|  2.52k|                                             const char* exprtext) {     \
  349|  2.52k|    using U1 = CheckOpStreamType<T1>;                                    \
  350|  2.52k|    using U2 = CheckOpStreamType<T2>;                                    \
  351|  2.52k|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|  2.52k|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 2.52k, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 2.52k]
  |  |  |  Branch (179:57): [True: 2.52k, False: 0]
  |  |  ------------------
  ------------------
  352|  2.52k|               ? nullptr                                                 \
  353|  2.52k|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|  2.52k|                                                        exprtext);       \
  355|  2.52k|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_LTImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|  17.8k|                                             const char* exprtext) {     \
  349|  17.8k|    using U1 = CheckOpStreamType<T1>;                                    \
  350|  17.8k|    using U2 = CheckOpStreamType<T2>;                                    \
  351|  17.8k|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|  17.8k|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 17.8k, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 17.8k]
  |  |  |  Branch (179:57): [True: 17.8k, False: 0]
  |  |  ------------------
  ------------------
  352|  17.8k|               ? nullptr                                                 \
  353|  17.8k|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|  17.8k|                                                        exprtext);       \
  355|  17.8k|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_GEImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|  33.8k|                                             const char* exprtext) {     \
  349|  33.8k|    using U1 = CheckOpStreamType<T1>;                                    \
  350|  33.8k|    using U2 = CheckOpStreamType<T2>;                                    \
  351|  33.8k|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|  33.8k|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 33.8k, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 33.8k]
  |  |  |  Branch (179:57): [True: 33.8k, False: 0]
  |  |  ------------------
  ------------------
  352|  33.8k|               ? nullptr                                                 \
  353|  33.8k|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|  33.8k|                                                        exprtext);       \
  355|  33.8k|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_GTImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|    112|                                             const char* exprtext) {     \
  349|    112|    using U1 = CheckOpStreamType<T1>;                                    \
  350|    112|    using U2 = CheckOpStreamType<T2>;                                    \
  351|    112|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|    112|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 112, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 112]
  |  |  |  Branch (179:57): [True: 112, False: 0]
  |  |  ------------------
  ------------------
  352|    112|               ? nullptr                                                 \
  353|    112|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|    112|                                                        exprtext);       \
  355|    112|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_EQImplEiiPKc:
  357|  2.52k|                                             const char* exprtext) {     \
  358|  2.52k|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|  2.52k|  }
_ZN4absl12lts_2024011612log_internal12Check_LTImplEiiPKc:
  357|  17.8k|                                             const char* exprtext) {     \
  358|  17.8k|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|  17.8k|  }
_ZN4absl12lts_2024011612log_internal12Check_GEImplEiiPKc:
  357|  33.8k|                                             const char* exprtext) {     \
  358|  33.8k|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|  33.8k|  }
_ZN4absl12lts_2024011612log_internal12Check_GTImplEiiPKc:
  357|    112|                                             const char* exprtext) {     \
  358|    112|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|    112|  }
_ZN4absl12lts_2024011612log_internal21GetReferenceableValueEi:
  399|   110k|inline constexpr int GetReferenceableValue(int t) { return t; }
_ZN4absl12lts_2024011612log_internal21GetReferenceableValueEm:
  405|  1.17k|    unsigned long t) {                                             // NOLINT
  406|  1.17k|  return t;
  407|  1.17k|}

_ZN4absl12lts_2024011611countl_zeroImEENSt3__19enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeES4_:
  103|  1.69k|    countl_zero(T x) noexcept {
  104|  1.69k|  return numeric_internal::CountLeadingZeroes(x);
  105|  1.69k|}
_ZN4absl12lts_2024011611countl_zeroIjEENSt3__19enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeES4_:
  103|    876|    countl_zero(T x) noexcept {
  104|    876|  return numeric_internal::CountLeadingZeroes(x);
  105|    876|}

_ZN4absl12lts_2024011616numeric_internal20CountLeadingZeroes32Ej:
  133|    876|CountLeadingZeroes32(uint32_t x) {
  134|    876|#if ABSL_NUMERIC_INTERNAL_HAVE_BUILTIN_OR_GCC(__builtin_clz)
  135|       |  // Use __builtin_clz, which uses the following instructions:
  136|       |  //  x86: bsr, lzcnt
  137|       |  //  ARM64: clz
  138|       |  //  PPC: cntlzd
  139|       |
  140|    876|  static_assert(sizeof(unsigned int) == sizeof(x),
  141|    876|                "__builtin_clz does not take 32-bit arg");
  142|       |  // Handle 0 as a special case because __builtin_clz(0) is undefined.
  143|    876|  return x == 0 ? 32 : __builtin_clz(x);
  ------------------
  |  Branch (143:10): [True: 0, False: 876]
  ------------------
  144|       |#elif defined(_MSC_VER) && !defined(__clang__)
  145|       |  unsigned long result = 0;  // NOLINT(runtime/int)
  146|       |  if (_BitScanReverse(&result, x)) {
  147|       |    return 31 - result;
  148|       |  }
  149|       |  return 32;
  150|       |#else
  151|       |  int zeroes = 28;
  152|       |  if (x >> 16) {
  153|       |    zeroes -= 16;
  154|       |    x >>= 16;
  155|       |  }
  156|       |  if (x >> 8) {
  157|       |    zeroes -= 8;
  158|       |    x >>= 8;
  159|       |  }
  160|       |  if (x >> 4) {
  161|       |    zeroes -= 4;
  162|       |    x >>= 4;
  163|       |  }
  164|       |  return "\4\3\2\2\1\1\1\1\0\0\0\0\0\0\0"[x] + zeroes;
  165|       |#endif
  166|    876|}
_ZN4absl12lts_2024011616numeric_internal20CountLeadingZeroes64Em:
  180|  1.69k|CountLeadingZeroes64(uint64_t x) {
  181|  1.69k|#if ABSL_NUMERIC_INTERNAL_HAVE_BUILTIN_OR_GCC(__builtin_clzll)
  182|       |  // Use __builtin_clzll, which uses the following instructions:
  183|       |  //  x86: bsr, lzcnt
  184|       |  //  ARM64: clz
  185|       |  //  PPC: cntlzd
  186|  1.69k|  static_assert(sizeof(unsigned long long) == sizeof(x),  // NOLINT(runtime/int)
  187|  1.69k|                "__builtin_clzll does not take 64-bit arg");
  188|       |
  189|       |  // Handle 0 as a special case because __builtin_clzll(0) is undefined.
  190|  1.69k|  return x == 0 ? 64 : __builtin_clzll(x);
  ------------------
  |  Branch (190:10): [True: 0, False: 1.69k]
  ------------------
  191|       |#elif defined(_MSC_VER) && !defined(__clang__) && \
  192|       |    (defined(_M_X64) || defined(_M_ARM64))
  193|       |  // MSVC does not have __buitin_clzll. Use _BitScanReverse64.
  194|       |  unsigned long result = 0;  // NOLINT(runtime/int)
  195|       |  if (_BitScanReverse64(&result, x)) {
  196|       |    return 63 - result;
  197|       |  }
  198|       |  return 64;
  199|       |#elif defined(_MSC_VER) && !defined(__clang__)
  200|       |  // MSVC does not have __buitin_clzll. Compose two calls to _BitScanReverse
  201|       |  unsigned long result = 0;  // NOLINT(runtime/int)
  202|       |  if ((x >> 32) &&
  203|       |      _BitScanReverse(&result, static_cast<unsigned long>(x >> 32))) {
  204|       |    return 31 - result;
  205|       |  }
  206|       |  if (_BitScanReverse(&result, static_cast<unsigned long>(x))) {
  207|       |    return 63 - result;
  208|       |  }
  209|       |  return 64;
  210|       |#else
  211|       |  int zeroes = 60;
  212|       |  if (x >> 32) {
  213|       |    zeroes -= 32;
  214|       |    x >>= 32;
  215|       |  }
  216|       |  if (x >> 16) {
  217|       |    zeroes -= 16;
  218|       |    x >>= 16;
  219|       |  }
  220|       |  if (x >> 8) {
  221|       |    zeroes -= 8;
  222|       |    x >>= 8;
  223|       |  }
  224|       |  if (x >> 4) {
  225|       |    zeroes -= 4;
  226|       |    x >>= 4;
  227|       |  }
  228|       |  return "\4\3\2\2\1\1\1\1\0\0\0\0\0\0\0"[x] + zeroes;
  229|       |#endif
  230|  1.69k|}
_ZN4absl12lts_2024011616numeric_internal18CountLeadingZeroesImEEiT_:
  234|  1.69k|CountLeadingZeroes(T x) {
  235|  1.69k|  static_assert(std::is_unsigned<T>::value, "T must be unsigned");
  236|  1.69k|  static_assert(IsPowerOf2(std::numeric_limits<T>::digits),
  237|  1.69k|                "T must have a power-of-2 size");
  238|  1.69k|  static_assert(sizeof(T) <= sizeof(uint64_t), "T too large");
  239|  1.69k|  return sizeof(T) <= sizeof(uint16_t)
  ------------------
  |  Branch (239:10): [Folded, False: 1.69k]
  ------------------
  240|  1.69k|             ? CountLeadingZeroes16(static_cast<uint16_t>(x)) -
  241|      0|                   (std::numeric_limits<uint16_t>::digits -
  242|      0|                    std::numeric_limits<T>::digits)
  243|  1.69k|             : (sizeof(T) <= sizeof(uint32_t)
  ------------------
  |  Branch (243:17): [Folded, False: 1.69k]
  ------------------
  244|  1.69k|                    ? CountLeadingZeroes32(static_cast<uint32_t>(x)) -
  245|      0|                          (std::numeric_limits<uint32_t>::digits -
  246|      0|                           std::numeric_limits<T>::digits)
  247|  1.69k|                    : CountLeadingZeroes64(x));
  248|  1.69k|}
_ZN4absl12lts_2024011616numeric_internal18CountLeadingZeroesIjEEiT_:
  234|    876|CountLeadingZeroes(T x) {
  235|    876|  static_assert(std::is_unsigned<T>::value, "T must be unsigned");
  236|    876|  static_assert(IsPowerOf2(std::numeric_limits<T>::digits),
  237|    876|                "T must have a power-of-2 size");
  238|    876|  static_assert(sizeof(T) <= sizeof(uint64_t), "T too large");
  239|    876|  return sizeof(T) <= sizeof(uint16_t)
  ------------------
  |  Branch (239:10): [Folded, False: 876]
  ------------------
  240|    876|             ? CountLeadingZeroes16(static_cast<uint16_t>(x)) -
  241|      0|                   (std::numeric_limits<uint16_t>::digits -
  242|      0|                    std::numeric_limits<T>::digits)
  243|    876|             : (sizeof(T) <= sizeof(uint32_t)
  ------------------
  |  Branch (243:17): [True: 876, Folded]
  ------------------
  244|    876|                    ? CountLeadingZeroes32(static_cast<uint32_t>(x)) -
  245|    876|                          (std::numeric_limits<uint32_t>::digits -
  246|    876|                           std::numeric_limits<T>::digits)
  247|    876|                    : CountLeadingZeroes64(x));
  248|    876|}

_ZN4absl12lts_2024011611string_viewC2EPKc:
  200|    841|      : ptr_(str), length_(str ? StrlenInternal(str) : 0) {}
  ------------------
  |  Branch (200:28): [True: 841, False: 0]
  ------------------
_ZN4absl12lts_2024011611string_viewC2EPKcmNS1_18SkipCheckLengthTagE:
  663|  22.4k|      : ptr_(data), length_(len) {}
_ZN4absl12lts_2024011611string_view14StrlenInternalEPKc:
  672|    841|  static constexpr size_type StrlenInternal(absl::Nonnull<const char*> str) {
  673|       |#if defined(_MSC_VER) && _MSC_VER >= 1910 && !defined(__clang__)
  674|       |    // MSVC 2017+ can evaluate this at compile-time.
  675|       |    const char* begin = str;
  676|       |    while (*str != '\0') ++str;
  677|       |    return str - begin;
  678|       |#elif ABSL_HAVE_BUILTIN(__builtin_strlen) || \
  679|       |    (defined(__GNUC__) && !defined(__clang__))
  680|       |    // GCC has __builtin_strlen according to
  681|       |    // https://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Other-Builtins.html, but
  682|       |    // ABSL_HAVE_BUILTIN doesn't detect that, so we use the extra checks above.
  683|       |    // __builtin_strlen is constexpr.
  684|    841|    return __builtin_strlen(str);
  685|       |#else
  686|       |    return str ? strlen(str) : 0;
  687|       |#endif
  688|    841|  }
_ZN4absl12lts_2024011611string_viewC2INSt3__19allocatorIcEEEERKNS3_12basic_stringIcNS3_11char_traitsIcEET_EE:
  192|  22.4k|      : string_view(str.data(), str.size(), SkipCheckLengthTag{}) {}

_ZN6google8protobuf3Any10descriptorEv:
  113|   178k|  static const ::google::protobuf::Descriptor* descriptor() {
  114|   178k|    return GetDescriptor();
  115|   178k|  }
_ZN6google8protobuf3Any13GetDescriptorEv:
  116|   178k|  static const ::google::protobuf::Descriptor* GetDescriptor() {
  117|   178k|    return default_instance().GetMetadata().descriptor;
  118|   178k|  }
_ZN6google8protobuf3Any16default_instanceEv:
  122|   178k|  static const Any& default_instance() {
  123|   178k|    return *internal_default_instance();
  124|   178k|  }
_ZN6google8protobuf3Any25internal_default_instanceEv:
  125|   178k|  static inline const Any* internal_default_instance() {
  126|   178k|    return reinterpret_cast<const Any*>(
  127|   178k|        &_Any_default_instance_);
  128|   178k|  }

_ZN6google8protobuf5Arena15AllocateAlignedEmm:
  264|    455|  void* AllocateAligned(size_t size, size_t align = 8) {
  265|    455|    if (align <= internal::ArenaAlignDefault::align) {
  ------------------
  |  Branch (265:9): [True: 455, False: 0]
  ------------------
  266|    455|      return Allocate(internal::ArenaAlignDefault::Ceil(size));
  267|    455|    } else {
  268|       |      // We are wasting space by over allocating align - 8 bytes. Compared
  269|       |      // to a dedicated function that takes current alignment in consideration.
  270|       |      // Such a scheme would only waste (align - 8)/2 bytes on average, but
  271|       |      // requires a dedicated function in the outline arena allocation
  272|       |      // functions. Possibly re-evaluate tradeoffs later.
  273|      0|      auto align_as = internal::ArenaAlignAs(align);
  274|      0|      return align_as.Ceil(Allocate(align_as.Padded(size)));
  275|      0|    }
  276|    455|  }

_ZN6google8protobuf8internal17ArenaAlignDefault4CeilEm:
   79|    584|  static inline PROTOBUF_ALWAYS_INLINE constexpr size_t Ceil(size_t n) {
   80|    584|    return (n + align - 1) & ~(align - 1);
   81|    584|  }

_ZN6google8protobuf8internal15TaggedStringPtrC2EPNS1_21ExplicitlyConstructedINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm8EEE:
  111|  12.9k|      : ptr_(ptr) {}
_ZNK6google8protobuf8internal15TaggedStringPtr9IsDefaultEv:
  144|  16.6k|  inline bool IsDefault() const { return (as_int() & kMask) == kDefault; }
_ZNK6google8protobuf8internal15TaggedStringPtr3GetEv:
  167|  39.2k|  inline std::string* Get() const {
  168|  39.2k|    return reinterpret_cast<std::string*>(as_int() & ~kMask);
  169|  39.2k|  }
_ZNK6google8protobuf8internal15TaggedStringPtr6as_intEv:
  203|   104k|  uintptr_t as_int() const { return reinterpret_cast<uintptr_t>(ptr_); }
_ZN6google8protobuf8internal14ArenaStringPtrC2EPNS0_5ArenaE:
  242|  7.98k|      : tagged_ptr_(&fixed_address_empty_string) {
  243|  7.98k|    if (DebugHardenForceCopyDefaultString()) {
  ------------------
  |  Branch (243:9): [Folded, False: 7.98k]
  ------------------
  244|      0|      Set(absl::string_view(""), arena);
  245|      0|    }
  246|  7.98k|  }
_ZNK6google8protobuf8internal14ArenaStringPtr3GetEv:
  335|  38.2k|  PROTOBUF_NDEBUG_INLINE const std::string& Get() const {
  336|       |    // Unconditionally mask away the tag.
  337|  38.2k|    return *tagged_ptr_.Get();
  338|  38.2k|  }
_ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv:
  451|  4.97k|inline void ArenaStringPtr::InitDefault() {
  452|  4.97k|  tagged_ptr_ = TaggedStringPtr(&fixed_address_empty_string);
  453|  4.97k|}

_ZNK6google8protobuf10Descriptor4fileEv:
 2510|    220|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor11field_countEv:
 2510|   965k|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor5fieldEi:
 2529|   786k|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|   786k|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|   786k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|   786k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   786k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 786k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   786k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|   786k|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|   786k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|   786k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   786k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 786k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   786k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|   786k|    return FIELD##s_ + index;                              \
 2533|   786k|  }
_ZNK6google8protobuf10Descriptor7optionsEv:
 2536|   565k|  inline const TYPE& CLASS::options() const { return *options_; }
_ZNK6google8protobuf15OneofDescriptor11field_countEv:
 2510|      5|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14EnumDescriptor11value_countEv:
 2510|    677|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14EnumDescriptor5valueEi:
 2529|    688|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|    688|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|    688|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|    688|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    688|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 688]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    688|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|    688|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|    688|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|    688|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    688|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 688]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    688|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|    688|    return FIELD##s_ + index;                              \
 2533|    688|  }
_ZNK6google8protobuf19EnumValueDescriptor4typeEv:
 2510|  1.10k|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf15FieldDescriptor16containing_oneofEv:
 2711|    613|inline const OneofDescriptor* FieldDescriptor::containing_oneof() const {
 2712|    613|  if (is_oneof_) {
  ------------------
  |  Branch (2712:7): [True: 14, False: 599]
  ------------------
 2713|     14|    auto* res = scope_.containing_oneof;
 2714|     14|    PROTOBUF_ASSUME(res != nullptr);
  ------------------
  |  |  941|     14|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
 2715|     14|    return res;
 2716|     14|  }
 2717|    599|  return nullptr;
 2718|    613|}
_ZNK6google8protobuf15FieldDescriptor4typeEv:
 2734|  1.33M|inline FieldDescriptor::Type FieldDescriptor::type() const {
 2735|  1.33M|  return static_cast<Type>(type_);
 2736|  1.33M|}
_ZNK6google8protobuf15FieldDescriptor11is_repeatedEv:
 2742|  64.8k|inline bool FieldDescriptor::is_repeated() const {
 2743|  64.8k|  ABSL_DCHECK_EQ(is_repeated_, label() == LABEL_REPEATED);
  ------------------
  |  |   74|  64.8k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  64.8k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  64.8k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 64.8k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  64.8k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2744|  64.8k|  return is_repeated_;
 2745|  64.8k|}
_ZNK6google8protobuf19EnumValueDescriptor5indexEv:
 2813|    111|inline int EnumValueDescriptor::index() const {
 2814|    111|  return static_cast<int>(this - type_->values_);
 2815|    111|}
_ZNK6google8protobuf15FieldDescriptor8cpp_typeEv:
 2833|   975k|inline FieldDescriptor::CppType FieldDescriptor::cpp_type() const {
 2834|   975k|  return kTypeToCppTypeMap[type()];
 2835|   975k|}

_ZNK6google8protobuf14MessageOptions9map_entryEv:
17247|   565k|inline bool MessageOptions::map_entry() const {
17248|       |  // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
17249|   565k|  return _internal_map_entry();
17250|   565k|}
_ZNK6google8protobuf14MessageOptions19_internal_map_entryEv:
17256|   565k|inline bool MessageOptions::_internal_map_entry() const {
17257|   565k|  ::google::protobuf::internal::TSanRead(&_impl_);
17258|   565k|  return _impl_.map_entry_;
17259|   565k|}

_ZNK6google8protobuf8internal21ExplicitlyConstructedINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm8EE3getEv:
   49|  8.11k|  constexpr const T& get() const { return reinterpret_cast<const T&>(union_); }

_ZNK6google8protobuf8internal7HasBitsILi1EEixEi:
   45|  7.79k|  PROTOBUF_NDEBUG_INLINE const uint32_t& operator[](int index) const {
   46|  7.79k|    return has_bits_[index];
   47|  7.79k|  }
_ZN6google8protobuf8internal7HasBitsILi1EEixEi:
   41|  17.5k|  PROTOBUF_NDEBUG_INLINE uint32_t& operator[](int index) {
   42|  17.5k|    return has_bits_[index];
   43|  17.5k|  }
_ZN6google8protobuf8internal7HasBitsILi1EEC2Ev:
   31|  8.19k|  PROTOBUF_NDEBUG_INLINE constexpr HasBits() : has_bits_{} {}
_ZN6google8protobuf8internal7HasBitsILi1EE5ClearEv:
   37|  16.0k|  PROTOBUF_NDEBUG_INLINE void Clear() {
   38|  16.0k|    memset(has_bits_, 0, sizeof(has_bits_));
   39|  16.0k|  }

_ZN6google8protobuf8internal18InternalVisibilityC2Ev:
   38|  15.5k|inline constexpr InternalVisibility::InternalVisibility() = default;

_ZN6google8protobuf2io19EpsCopyOutputStream11EnsureSpaceEPh:
  662|  2.16k|  PROTOBUF_NODISCARD uint8_t* EnsureSpace(uint8_t* ptr) {
  663|  2.16k|    if (PROTOBUF_PREDICT_FALSE(ptr >= end_)) {
  ------------------
  |  |  365|  2.16k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 2.16k]
  |  |  |  Branch (365:54): [Folded, False: 2.16k]
  |  |  |  Branch (365:63): [True: 0, False: 2.16k]
  |  |  ------------------
  ------------------
  664|      0|      return EnsureSpaceFallback(ptr);
  665|      0|    }
  666|  2.16k|    return ptr;
  667|  2.16k|  }
_ZN6google8protobuf2io19EpsCopyOutputStream23WriteStringMaybeAliasedEjRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPh:
  697|     29|                                   uint8_t* ptr) {
  698|     29|    std::ptrdiff_t size = s.size();
  699|     29|    if (PROTOBUF_PREDICT_FALSE(
  ------------------
  |  |  365|     57|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1, False: 28]
  |  |  |  Branch (365:54): [Folded, False: 29]
  |  |  |  Branch (365:64): [True: 1, False: 28]
  |  |  |  Branch (365:64): [True: 0, False: 28]
  |  |  ------------------
  ------------------
  700|     29|            size >= 128 || end_ - ptr + 16 - TagSize(num << 3) - 1 < size)) {
  701|      1|      return WriteStringMaybeAliasedOutline(num, s, ptr);
  702|      1|    }
  703|     28|    ptr = UnsafeVarint((num << 3) | 2, ptr);
  704|     28|    *ptr++ = static_cast<uint8_t>(size);
  705|     28|    std::memcpy(ptr, s.data(), size);
  706|     28|    return ptr + size;
  707|     29|  }
_ZN6google8protobuf2io19EpsCopyOutputStream7TagSizeEj:
  843|     28|  static constexpr int TagSize(uint32_t tag) {
  844|     28|    return (tag < (1 << 7))    ? 1
  ------------------
  |  Branch (844:12): [True: 24, False: 4]
  ------------------
  845|     28|           : (tag < (1 << 14)) ? 2
  ------------------
  |  Branch (845:14): [True: 4, False: 0]
  ------------------
  846|      4|           : (tag < (1 << 21)) ? 3
  ------------------
  |  Branch (846:14): [True: 0, False: 0]
  ------------------
  847|      0|           : (tag < (1 << 28)) ? 4
  ------------------
  |  Branch (847:14): [True: 0, False: 0]
  ------------------
  848|      0|                               : 5;
  849|     28|  }
_ZN6google8protobuf2io17CodedOutputStream20WriteVarint32ToArrayEjPh:
 1641|  2.82k|                                                        uint8_t* target) {
 1642|  2.82k|  return EpsCopyOutputStream::UnsafeVarint(value, target);
 1643|  2.82k|}
_ZN6google8protobuf2io17CodedOutputStream20WriteVarint64ToArrayEmPh:
 1646|  1.50k|                                                        uint8_t* target) {
 1647|  1.50k|  return EpsCopyOutputStream::UnsafeVarint(value, target);
 1648|  1.50k|}
_ZN6google8protobuf2io17CodedOutputStream32WriteVarint32SignExtendedToArrayEiPh:
 1655|  1.50k|    int32_t value, uint8_t* target) {
 1656|  1.50k|  return WriteVarint64ToArray(static_cast<uint64_t>(value), target);
 1657|  1.50k|}
_ZN6google8protobuf2io17CodedOutputStream15WriteTagToArrayEjPh:
 1716|  2.16k|                                                   uint8_t* target) {
 1717|  2.16k|  return WriteVarint32ToArray(value, target);
 1718|  2.16k|}
_ZN6google8protobuf2io17CodedOutputStream12VarintSize32Ej:
 1730|    876|inline size_t CodedOutputStream::VarintSize32(uint32_t value) {
 1731|    876|#if PROTOBUF_CODED_STREAM_H_PREFER_BSR
 1732|       |  // Explicit OR 0x1 to avoid calling absl::countl_zero(0), which
 1733|       |  // requires a branch to check for on platforms without a clz instruction.
 1734|    876|  uint32_t log2value = (std::numeric_limits<uint32_t>::digits - 1) -
 1735|    876|                       absl::countl_zero(value | 0x1);
 1736|    876|  return static_cast<size_t>((log2value * 9 + (64 + 9)) / 64);
 1737|       |#else
 1738|       |  uint32_t clz = absl::countl_zero(value);
 1739|       |  return static_cast<size_t>(
 1740|       |      ((std::numeric_limits<uint32_t>::digits * 9 + 64) - (clz * 9)) / 64);
 1741|       |#endif
 1742|    876|}
_ZN6google8protobuf2io17CodedOutputStream12VarintSize64Em:
 1757|  1.51k|inline size_t CodedOutputStream::VarintSize64(uint64_t value) {
 1758|  1.51k|#if PROTOBUF_CODED_STREAM_H_PREFER_BSR
 1759|       |  // Explicit OR 0x1 to avoid calling absl::countl_zero(0), which
 1760|       |  // requires a branch to check for on platforms without a clz instruction.
 1761|  1.51k|  uint32_t log2value = (std::numeric_limits<uint64_t>::digits - 1) -
 1762|  1.51k|                       absl::countl_zero(value | 0x1);
 1763|  1.51k|  return static_cast<size_t>((log2value * 9 + (64 + 9)) / 64);
 1764|       |#else
 1765|       |  uint32_t clz = absl::countl_zero(value);
 1766|       |  return static_cast<size_t>(
 1767|       |      ((std::numeric_limits<uint64_t>::digits * 9 + 64) - (clz * 9)) / 64);
 1768|       |#endif
 1769|  1.51k|}
_ZN6google8protobuf2io17CodedOutputStream24VarintSize32SignExtendedEi:
 1784|  1.51k|inline size_t CodedOutputStream::VarintSize32SignExtended(int32_t value) {
 1785|  1.51k|  return VarintSize64(static_cast<uint64_t>(int64_t{value}));
 1786|  1.51k|}
_ZN6google8protobuf2io19EpsCopyOutputStream12UnsafeVarintIjEEPhT_S4_:
  898|  2.84k|  PROTOBUF_ALWAYS_INLINE static uint8_t* UnsafeVarint(T value, uint8_t* ptr) {
  899|  2.84k|    static_assert(std::is_unsigned<T>::value,
  900|  2.84k|                  "Varint serialization must be unsigned");
  901|  3.11k|    while (PROTOBUF_PREDICT_FALSE(value >= 0x80)) {
  ------------------
  |  |  365|  3.11k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 270, False: 2.84k]
  |  |  |  Branch (365:54): [Folded, False: 3.11k]
  |  |  |  Branch (365:63): [True: 270, False: 2.84k]
  |  |  ------------------
  ------------------
  902|    270|      *ptr = static_cast<uint8_t>(value | 0x80);
  903|    270|      value >>= 7;
  904|    270|      ++ptr;
  905|    270|    }
  906|  2.84k|    *ptr++ = static_cast<uint8_t>(value);
  907|  2.84k|    return ptr;
  908|  2.84k|  }
_ZN6google8protobuf2io19EpsCopyOutputStream12UnsafeVarintImEEPhT_S4_:
  898|  1.50k|  PROTOBUF_ALWAYS_INLINE static uint8_t* UnsafeVarint(T value, uint8_t* ptr) {
  899|  1.50k|    static_assert(std::is_unsigned<T>::value,
  900|  1.50k|                  "Varint serialization must be unsigned");
  901|  1.53k|    while (PROTOBUF_PREDICT_FALSE(value >= 0x80)) {
  ------------------
  |  |  365|  1.53k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 28, False: 1.50k]
  |  |  |  Branch (365:54): [Folded, False: 1.53k]
  |  |  |  Branch (365:63): [True: 28, False: 1.50k]
  |  |  ------------------
  ------------------
  902|     28|      *ptr = static_cast<uint8_t>(value | 0x80);
  903|     28|      value >>= 7;
  904|     28|      ++ptr;
  905|     28|    }
  906|  1.50k|    *ptr++ = static_cast<uint8_t>(value);
  907|  1.50k|    return ptr;
  908|  1.50k|  }

_ZNK6google8protobuf7Message13GetDescriptorEv:
  363|   357k|  const Descriptor* GetDescriptor() const { return GetMetadata().descriptor; }
_ZNK6google8protobuf7Message13GetReflectionEv:
  369|   178k|  const Reflection* GetReflection() const { return GetMetadata().reflection; }

_ZN6google8protobuf8internal10CachedSizeC2Ei:
  173|  8.81k|  constexpr CachedSize(Scalar desired) noexcept : atom_(desired) {}
_ZNK6google8protobuf8internal10CachedSize3GetEv:
  178|    628|  Scalar Get() const noexcept {
  179|    628|    return __atomic_load_n(&atom_, __ATOMIC_RELAXED);
  180|    628|  }
_ZNK6google8protobuf8internal13ClassDataFull4baseEv:
  454|   724k|  constexpr const ClassData* base() const { return this; }
_ZNK6google8protobuf11MessageLite8GetArenaEv:
  531|   125k|  Arena* GetArena() const { return _internal_metadata_.arena(); }
_ZN6google8protobuf11MessageLite19internal_visibilityEv:
  816|  8.81k|  static constexpr internal::InternalVisibility internal_visibility() {
  817|  8.81k|    return internal::InternalVisibility{};
  818|  8.81k|  }
_ZN6google8protobuf11MessageLiteC2EPNS0_5ArenaE:
  879|  8.81k|  explicit MessageLite(Arena* arena) : _internal_metadata_(arena) {}
_ZN6google8protobuf8internal11FromIntSizeEi:
  288|     17|inline size_t FromIntSize(int size) {
  289|       |  // Convert to unsigned before widening so sign extension is not necessary.
  290|     17|  return static_cast<unsigned int>(size);
  291|     17|}
_ZN6google8protobuf8internal27GetEmptyStringAlreadyInitedEv:
  314|  8.11k|PROTOBUF_EXPORT constexpr const std::string& GetEmptyStringAlreadyInited() {
  315|  8.11k|  return fixed_address_empty_string.get();
  316|  8.11k|}
_ZNK6google8protobuf8internal9ClassData4fullEv:
  474|   714k|inline const ClassDataFull& ClassData::full() const {
  475|   714k|  ABSL_DCHECK(!is_lite);
  ------------------
  |  |   47|   714k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|   714k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  1.42M|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   714k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  1.42M|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  1.42M|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 714k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   714k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 714k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   714k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 714k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  1.42M|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  1.42M|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  476|   714k|  return *static_cast<const ClassDataFull*>(this);
  477|   714k|}
_ZN6google8protobuf11MessageLiteD2Ev:
  511|  96.3k|  PROTOBUF_VIRTUAL ~MessageLite() = default;

_ZN6google8protobuf8internal16InternalMetadataC2EPNS0_5ArenaE:
   46|  8.81k|  explicit InternalMetadata(Arena* arena) {
   47|  8.81k|    ptr_ = reinterpret_cast<intptr_t>(arena);
   48|  8.81k|  }
_ZNK6google8protobuf8internal16InternalMetadata5arenaEv:
   65|   132k|  PROTOBUF_NDEBUG_INLINE Arena* arena() const {
   66|   132k|    if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) {
  ------------------
  |  |  365|   132k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 781, False: 131k]
  |  |  |  Branch (365:54): [Folded, False: 132k]
  |  |  |  Branch (365:63): [True: 781, False: 131k]
  |  |  ------------------
  ------------------
   67|    781|      return PtrValue<ContainerBase>()->arena;
   68|   131k|    } else {
   69|   131k|      return PtrValue<Arena>();
   70|   131k|    }
   71|   132k|  }
_ZNK6google8protobuf8internal16InternalMetadata19have_unknown_fieldsEv:
   73|   309k|  PROTOBUF_NDEBUG_INLINE bool have_unknown_fields() const {
   74|   309k|    return HasUnknownFieldsTag();
   75|   309k|  }
_ZN6google8protobuf8internal16InternalMetadata12InternalSwapEPS2_:
  114|    227|      InternalMetadata* PROTOBUF_RESTRICT other) {
  115|    227|    std::swap(ptr_, other->ptr_);
  116|    227|  }
_ZNK6google8protobuf8internal16InternalMetadata19HasUnknownFieldsTagEv:
  141|   309k|  PROTOBUF_ALWAYS_INLINE bool HasUnknownFieldsTag() const {
  142|   309k|    return ptr_ & kUnknownFieldsTagMask;
  143|   309k|  }
_ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_13ContainerBaseEEEPT_v:
  146|    781|  U* PtrValue() const {
  147|    781|    return reinterpret_cast<U*>(ptr_ & kPtrValueMask);
  148|    781|  }
_ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS0_5ArenaEEEPT_v:
  146|   131k|  U* PtrValue() const {
  147|   131k|    return reinterpret_cast<U*>(ptr_ & kPtrValueMask);
  148|   131k|  }
_ZNK6google8protobuf8internal16InternalMetadata14unknown_fieldsINS0_15UnknownFieldSetEEERKT_PFS7_vE:
   83|     19|      const T& (*default_instance)()) const {
   84|     19|    if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) {
  ------------------
  |  |  365|     19|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 19]
  |  |  |  Branch (365:54): [Folded, False: 19]
  |  |  |  Branch (365:63): [True: 0, False: 19]
  |  |  ------------------
  ------------------
   85|      0|      return PtrValue<Container<T>>()->unknown_fields;
   86|     19|    } else {
   87|     19|      return default_instance();
   88|     19|    }
   89|     19|  }
_ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v:
  146|  56.4k|  U* PtrValue() const {
  147|  56.4k|    return reinterpret_cast<U*>(ptr_ & kPtrValueMask);
  148|  56.4k|  }
_ZN6google8protobuf8internal16InternalMetadata6DeleteINS0_15UnknownFieldSetEEEvv:
   58|  96.3k|  void Delete() {
   59|       |    // Note that Delete<> should be called not more than once.
   60|  96.3k|    if (have_unknown_fields()) {
  ------------------
  |  Branch (60:9): [True: 6.69k, False: 89.6k]
  ------------------
   61|  6.69k|      DeleteOutOfLineHelper<T>();
   62|  6.69k|    }
   63|  96.3k|  }
_ZN6google8protobuf8internal16InternalMetadata9MergeFromINS0_15UnknownFieldSetEEEvRKS2_:
  119|  1.70k|  PROTOBUF_NDEBUG_INLINE void MergeFrom(const InternalMetadata& other) {
  120|  1.70k|    if (other.have_unknown_fields()) {
  ------------------
  |  Branch (120:9): [True: 0, False: 1.70k]
  ------------------
  121|      0|      DoMergeFrom<T>(other.unknown_fields<T>(nullptr));
  122|      0|    }
  123|  1.70k|  }
_ZN6google8protobuf8internal16InternalMetadata5ClearINS0_15UnknownFieldSetEEEvv:
  126|  21.1k|  PROTOBUF_NDEBUG_INLINE void Clear() {
  127|  21.1k|    if (have_unknown_fields()) {
  ------------------
  |  Branch (127:9): [True: 622, False: 20.5k]
  ------------------
  128|    622|      DoClear<T>();
  129|    622|    }
  130|  21.1k|  }

_ZN6google8protobuf8internal11SizedDeleteEPvm:
  139|  29.8k|inline void SizedDelete(void* p, size_t size) {
  140|  29.8k|#if defined(__cpp_sized_deallocation)
  141|  29.8k|  ::operator delete(p, size);
  142|       |#else
  143|       |  // Avoid -Wunused-parameter
  144|       |  (void)size;
  145|       |  ::operator delete(p);
  146|       |#endif
  147|  29.8k|}
_ZN6google8protobuf8internal24Prefetch5LinesFrom7LinesEPKv:
  314|  1.05k|inline PROTOBUF_ALWAYS_INLINE void Prefetch5LinesFrom7Lines(const void* ptr) {
  315|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 448);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  316|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 512);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  317|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 576);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  318|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 640);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  319|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 704);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  320|  1.05k|}
_ZN6google8protobuf8internal8TSanReadEPKv:
  365|  1.27M|inline PROTOBUF_ALWAYS_INLINE void TSanRead(const void*) {}
_ZN6google8protobuf8internal9TSanWriteEPKv:
  366|  51.5k|inline PROTOBUF_ALWAYS_INLINE void TSanWrite(const void*) {}
_ZN6google8protobuf8internal20PrefetchToLocalCacheEPKv:
  371|  1.44M|inline void PrefetchToLocalCache(const void* ptr) {
  372|  1.44M|  absl::PrefetchToLocalCache(ptr);
  373|  1.44M|}

_ZN6google8protobuf8internal20RepeatedPtrFieldBaseC2EPNS0_5ArenaE:
  146|  8.02k|      : tagged_rep_or_elem_(nullptr),
  147|  8.02k|        current_size_(0),
  148|  8.02k|        capacity_proxy_(0),
  149|  8.02k|        arena_(arena) {}
_ZN6google8protobuf8internal20RepeatedPtrFieldBaseD2Ev:
  154|  19.6k|  ~RepeatedPtrFieldBase() {
  155|  19.6k|#ifndef NDEBUG
  156|       |    // Try to trigger segfault / asan failure in non-opt builds if arena_
  157|       |    // lifetime has ended before the destructor.
  158|  19.6k|    if (arena_) (void)arena_->SpaceAllocated();
  ------------------
  |  Branch (158:9): [True: 0, False: 19.6k]
  ------------------
  159|  19.6k|#endif
  160|  19.6k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase4sizeEv:
  163|  63.9k|  int size() const { return current_size_; }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase8CapacityEv:
  170|  94.6k|  int Capacity() const { return capacity_proxy_ + kSSOCapacity; }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase12NeedsDestroyEv:
  239|  23.1k|  inline bool NeedsDestroy() const {
  240|       |    // Either there is an allocated element in SSO buffer or there is an
  241|       |    // allocated Rep.
  242|  23.1k|    return tagged_rep_or_elem_ != nullptr;
  243|  23.1k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase8raw_dataEv:
  347|  20.6k|  void* const* raw_data() const { return elements(); }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase19ExchangeCurrentSizeEi:
  602|  92.4k|  inline int ExchangeCurrentSize(int new_size) {
  603|  92.4k|    return std::exchange(current_size_, new_size);
  604|  92.4k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase8elementsEv:
  625|  20.6k|  void* const* elements() const {
  626|  20.6k|    return using_sso() ? &tagged_rep_or_elem_ : +rep()->elements;
  ------------------
  |  Branch (626:12): [True: 9.08k, False: 11.5k]
  ------------------
  627|  20.6k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase8elementsEv:
  628|  12.8k|  void** elements() {
  629|  12.8k|    return using_sso() ? &tagged_rep_or_elem_ : +rep()->elements;
  ------------------
  |  Branch (629:12): [True: 3.90k, False: 8.90k]
  ------------------
  630|  12.8k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase10element_atEi:
  632|   166k|  void*& element_at(int index) {
  633|   166k|    if (using_sso()) {
  ------------------
  |  Branch (633:9): [True: 7.68k, False: 158k]
  ------------------
  634|  7.68k|      ABSL_DCHECK_EQ(index, 0);
  ------------------
  |  |   74|  7.68k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   73|  7.68k|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   48|  7.68k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  7.68k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  7.68k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 7.68k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  7.68k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  7.68k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  7.68k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  7.68k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  7.68k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  7.68k|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  635|  7.68k|      return tagged_rep_or_elem_;
  636|  7.68k|    }
  637|   158k|    return rep()->elements[index];
  638|   166k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase10element_atEi:
  639|  93.6k|  const void* element_at(int index) const {
  640|  93.6k|    return const_cast<RepeatedPtrFieldBase*>(this)->element_at(index);
  641|  93.6k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase14allocated_sizeEv:
  643|  12.6k|  int allocated_size() const {
  644|  12.6k|    return using_sso() ? (tagged_rep_or_elem_ != nullptr ? 1 : 0)
  ------------------
  |  Branch (644:12): [True: 3.87k, False: 8.82k]
  |  Branch (644:27): [True: 3.87k, False: 3]
  ------------------
  645|  12.6k|                       : rep()->allocated_size;
  646|  12.6k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase3repEv:
  647|   289k|  Rep* rep() {
  648|   289k|    ABSL_DCHECK(!using_sso());
  ------------------
  |  |   47|   289k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|   289k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   578k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   289k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   578k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   578k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 289k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   289k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 289k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   322k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 289k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 33.2k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 33.2k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   578k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   578k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  649|   289k|    return reinterpret_cast<Rep*>(
  650|   289k|        reinterpret_cast<uintptr_t>(tagged_rep_or_elem_) - 1);
  651|   289k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3repEv:
  652|  20.3k|  const Rep* rep() const {
  653|  20.3k|    return const_cast<RepeatedPtrFieldBase*>(this)->rep();
  654|  20.3k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase9using_ssoEv:
  656|   353k|  bool using_sso() const {
  657|   353k|    return (reinterpret_cast<uintptr_t>(tagged_rep_or_elem_) & 1) == 0;
  658|   353k|  }
_ZN6google8protobuf8internal18GenericTypeHandlerINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE6DeleteEPS9_PNS0_5ArenaE:
  912|  13.4k|  static inline void Delete(Type* value, Arena* arena) {
  913|  13.4k|    if (arena == nullptr) {
  ------------------
  |  Branch (913:9): [True: 13.4k, False: 0]
  ------------------
  914|  13.4k|      delete value;
  915|  13.4k|    }
  916|  13.4k|  }
_ZN6google8protobuf8internal18GenericTypeHandlerINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE5ClearEPS9_:
  917|  1.50k|  static inline void Clear(Type* value) { value->clear(); }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEPNT_4TypeEPv:
  661|  28.3k|  static inline Value<TypeHandler>* cast(void* element) {
  662|  28.3k|    return reinterpret_cast<Value<TypeHandler>*>(element);
  663|  28.3k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase13ClearNonEmptyINS1_18GenericTypeHandlerINS0_11MessageLiteEEEEEvv:
  676|     82|  PROTOBUF_NOINLINE void ClearNonEmpty() {
  677|     82|    const int n = current_size_;
  678|     82|    void* const* elems = elements();
  679|     82|    int i = 0;
  680|     82|    ABSL_DCHECK_GT(n, 0);
  ------------------
  |  |   84|     82|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   83|     82|  ABSL_LOG_INTERNAL_CHECK_GT_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|     82|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GT, >, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|     82|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|     82|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 82]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|     82|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|     82|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|     82|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|     82|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|     82|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|     82|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|       |    // do/while loop to avoid initial test because we know n > 0
  682|  5.16k|    do {
  683|  5.16k|      TypeHandler::Clear(cast<TypeHandler>(elems[i++]));
  684|  5.16k|    } while (i < n);
  ------------------
  |  Branch (684:14): [True: 5.07k, False: 82]
  ------------------
  685|     82|    ExchangeCurrentSize(0);
  686|     82|  }
_ZN6google8protobuf8internal18GenericTypeHandlerINS0_11MessageLiteEE5ClearEPS3_:
  851|  5.16k|  static inline void Clear(Type* value) { value->Clear(); }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_11MessageLiteEEEEEPNT_4TypeEPv:
  661|  83.6k|  static inline Value<TypeHandler>* cast(void* element) {
  662|  83.6k|    return reinterpret_cast<Value<TypeHandler>*>(element);
  663|  83.6k|  }
_ZNK6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE4sizeEv:
 1340|  8.08k|inline int RepeatedPtrField<Element>::size() const {
 1341|  8.08k|  return RepeatedPtrFieldBase::size();
 1342|  8.08k|}
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE5ClearEv:
 1469|     58|inline void RepeatedPtrField<Element>::Clear() {
 1470|     58|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     58|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEvv:
  265|     58|  void Clear() {
  266|     58|    const int n = current_size_;
  267|     58|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     58|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|     58|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     58|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|     58|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|     58|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 58]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|     58|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|     58|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|     58|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|     58|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|     58|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|     58|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     58|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 30, False: 28]
  ------------------
  269|     30|      using H = CommonHandler<TypeHandler>;
  270|     30|      ClearNonEmpty<H>();
  271|     30|    }
  272|     58|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase13ClearNonEmptyINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEvv:
  676|     30|  PROTOBUF_NOINLINE void ClearNonEmpty() {
  677|     30|    const int n = current_size_;
  678|     30|    void* const* elems = elements();
  679|     30|    int i = 0;
  680|     30|    ABSL_DCHECK_GT(n, 0);
  ------------------
  |  |   84|     30|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   83|     30|  ABSL_LOG_INTERNAL_CHECK_GT_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|     30|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GT, >, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|     30|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|     30|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 30]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|     30|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|     30|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|     30|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|     30|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|     30|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|     30|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|       |    // do/while loop to avoid initial test because we know n > 0
  682|  1.50k|    do {
  683|  1.50k|      TypeHandler::Clear(cast<TypeHandler>(elems[i++]));
  684|  1.50k|    } while (i < n);
  ------------------
  |  Branch (684:14): [True: 1.47k, False: 30]
  ------------------
  685|     30|    ExchangeCurrentSize(0);
  686|     30|  }
_ZNK6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE3GetEi:
 1346|  11.1k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|  11.1k|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|  11.1k|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEERKNT_4TypeEi:
  252|  11.1k|  const Value<TypeHandler>& Get(int index) const {
  253|  11.1k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  11.1k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|  11.1k|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  11.1k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  11.1k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  11.1k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 11.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  11.1k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  11.1k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  11.1k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  11.1k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  11.1k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  11.1k|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|  11.1k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  11.1k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   79|  11.1k|  ABSL_LOG_INTERNAL_CHECK_LT_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|  11.1k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LT, <, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  11.1k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  11.1k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 11.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  11.1k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  11.1k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  11.1k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  11.1k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  11.1k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  11.1k|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|  11.1k|    return *cast<TypeHandler>(element_at(index));
  256|  11.1k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEPKNT_4TypeEPKv:
  665|  11.1k|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|  11.1k|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|  11.1k|  }
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE4sizeEv:
 1340|  17.6k|inline int RepeatedPtrField<Element>::size() const {
 1341|  17.6k|  return RepeatedPtrFieldBase::size();
 1342|  17.6k|}
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE5ClearEv:
 1469|  15.9k|inline void RepeatedPtrField<Element>::Clear() {
 1470|  15.9k|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|  15.9k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerIN4curl6fuzzer5proto9SetOptionEEEEEvv:
  265|  15.9k|  void Clear() {
  266|  15.9k|    const int n = current_size_;
  267|  15.9k|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|  15.9k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|  15.9k|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  15.9k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  15.9k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  15.9k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 15.9k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  15.9k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  15.9k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  15.9k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  15.9k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  15.9k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  15.9k|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|  15.9k|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 55, False: 15.8k]
  ------------------
  269|     55|      using H = CommonHandler<TypeHandler>;
  270|     55|      ClearNonEmpty<H>();
  271|     55|    }
  272|  15.9k|  }
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEE4sizeEv:
 1340|  7.82k|inline int RepeatedPtrField<Element>::size() const {
 1341|  7.82k|  return RepeatedPtrFieldBase::size();
 1342|  7.82k|}
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEE5ClearEv:
 1469|     48|inline void RepeatedPtrField<Element>::Clear() {
 1470|     48|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     48|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerIN4curl6fuzzer5proto14WebSocketFrameEEEEEvv:
  265|     48|  void Clear() {
  266|     48|    const int n = current_size_;
  267|     48|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     48|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|     48|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     48|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|     48|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|     48|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 48]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|     48|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|     48|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|     48|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|     48|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|     48|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|     48|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     48|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 27, False: 21]
  ------------------
  269|     27|      using H = CommonHandler<TypeHandler>;
  270|     27|      ClearNonEmpty<H>();
  271|     27|    }
  272|     48|  }
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEE3GetEi:
 1346|  6.69k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|  6.69k|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|  6.69k|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerIN4curl6fuzzer5proto14WebSocketFrameEEEEERKNT_4TypeEi:
  252|  6.69k|  const Value<TypeHandler>& Get(int index) const {
  253|  6.69k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  6.69k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|  6.69k|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  6.69k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  6.69k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  6.69k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 6.69k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  6.69k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  6.69k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  6.69k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  6.69k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  6.69k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  6.69k|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|  6.69k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  6.69k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   79|  6.69k|  ABSL_LOG_INTERNAL_CHECK_LT_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|  6.69k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LT, <, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  6.69k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  6.69k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 6.69k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  6.69k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  6.69k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  6.69k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  6.69k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  6.69k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  6.69k|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|  6.69k|    return *cast<TypeHandler>(element_at(index));
  256|  6.69k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerIN4curl6fuzzer5proto14WebSocketFrameEEEEEPKNT_4TypeEPKv:
  665|  6.69k|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|  6.69k|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|  6.69k|  }
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE5beginEv:
 1836|  9.80k|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|  9.80k|  return iterator(raw_data());
 1838|  9.80k|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIN4curl6fuzzer5proto9SetOptionEEC2EPKPv:
 1617|  19.6k|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKN4curl6fuzzer5proto9SetOptionEEC2IS6_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS7_EE5valueEvE4typeELPv0EEERKNS2_ISC_EE:
 1625|  19.6k|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE3endEv:
 1851|  9.80k|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|  9.80k|  return iterator(raw_data() + size());
 1853|  9.80k|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKN4curl6fuzzer5proto9SetOptionEEESA_:
 1647|   110k|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|   110k|    return x.it_ != y.it_;
 1649|   110k|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKN4curl6fuzzer5proto9SetOptionEEppEv:
 1632|   100k|  iterator& operator++() {
 1633|   100k|    ++it_;
 1634|   100k|    return *this;
 1635|   100k|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKN4curl6fuzzer5proto9SetOptionEEdeEv:
 1628|   101k|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE19StaticValidityCheckEv:
  938|  7.93k|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|  7.93k|    static_assert(
  940|  7.93k|        absl::disjunction<
  941|  7.93k|            internal::is_supported_string_type<Element>,
  942|  7.93k|            internal::is_supported_message_type<Element>>::value,
  943|  7.93k|        "We only support string and Message types in RepeatedPtrField.");
  944|  7.93k|  }
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEED2Ev:
 1285|  7.93k|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|  7.93k|  StaticValidityCheck();
 1287|  7.93k|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 1.59k, False: 6.34k]
  ------------------
 1288|  6.34k|#ifdef __cpp_if_constexpr
 1289|  6.34k|  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|       |  if (std::is_base_of<MessageLite, Element>::value) {
 1292|       |#endif
 1293|  6.34k|    DestroyProtos();
 1294|       |  } else {
 1295|       |    Destroy<TypeHandler>();
 1296|       |  }
 1297|  6.34k|}
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|  7.93k|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEEC2EPNS0_5ArenaE:
 1263|  7.93k|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|  7.93k|}
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE19StaticValidityCheckEv:
  938|  5.69k|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|  5.69k|    static_assert(
  940|  5.69k|        absl::disjunction<
  941|  5.69k|            internal::is_supported_string_type<Element>,
  942|  5.69k|            internal::is_supported_message_type<Element>>::value,
  943|  5.69k|        "We only support string and Message types in RepeatedPtrField.");
  944|  5.69k|  }
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEE19StaticValidityCheckEv:
  938|  5.61k|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|  5.61k|    static_assert(
  940|  5.61k|        absl::disjunction<
  941|  5.61k|            internal::is_supported_string_type<Element>,
  942|  5.61k|            internal::is_supported_message_type<Element>>::value,
  943|  5.61k|        "We only support string and Message types in RepeatedPtrField.");
  944|  5.61k|  }
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEED2Ev:
 1285|  5.61k|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|  5.61k|  StaticValidityCheck();
 1287|  5.61k|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 2.86k, False: 2.74k]
  ------------------
 1288|  2.74k|#ifdef __cpp_if_constexpr
 1289|  2.74k|  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|       |  if (std::is_base_of<MessageLite, Element>::value) {
 1292|       |#endif
 1293|  2.74k|    DestroyProtos();
 1294|       |  } else {
 1295|       |    Destroy<TypeHandler>();
 1296|       |  }
 1297|  2.74k|}
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEED2Ev:
 1285|  5.69k|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|  5.69k|  StaticValidityCheck();
 1287|  5.69k|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 2.21k, False: 3.47k]
  ------------------
 1288|  3.47k|#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|       |  if (std::is_base_of<MessageLite, Element>::value) {
 1292|       |#endif
 1293|       |    DestroyProtos();
 1294|  3.47k|  } else {
 1295|  3.47k|    Destroy<TypeHandler>();
 1296|  3.47k|  }
 1297|  3.47k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase7DestroyINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEvv:
  220|  3.47k|  void Destroy() {
  221|  3.47k|    ABSL_DCHECK(NeedsDestroy());
  ------------------
  |  |   47|  3.47k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|  3.47k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  6.95k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  3.47k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  6.95k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  6.95k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 3.47k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  3.47k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 3.47k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  6.95k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 3.47k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 3.47k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 3.47k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  6.95k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  6.95k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|       |
  223|       |    // TODO: arena check is redundant once all `RepeatedPtrField`s
  224|       |    // with non-null arena are owned by the arena.
  225|  3.47k|    if (PROTOBUF_PREDICT_FALSE(arena_ != nullptr)) return;
  ------------------
  |  |  365|  3.47k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 3.47k]
  |  |  |  Branch (365:54): [Folded, False: 3.47k]
  |  |  |  Branch (365:63): [True: 0, False: 3.47k]
  |  |  ------------------
  ------------------
  226|       |
  227|  3.47k|    using H = CommonHandler<TypeHandler>;
  228|  3.47k|    int n = allocated_size();
  229|  3.47k|    void** elems = elements();
  230|  16.9k|    for (int i = 0; i < n; i++) {
  ------------------
  |  Branch (230:21): [True: 13.4k, False: 3.47k]
  ------------------
  231|  13.4k|      Delete<H>(elems[i], nullptr);
  232|  13.4k|    }
  233|  3.47k|    if (!using_sso()) {
  ------------------
  |  Branch (233:9): [True: 2.15k, False: 1.31k]
  ------------------
  234|  2.15k|      internal::SizedDelete(rep(),
  235|  2.15k|                            Capacity() * sizeof(elems[0]) + kRepHeaderSize);
  236|  2.15k|    }
  237|  3.47k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase6DeleteINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEvPvPNS0_5ArenaE:
  669|  13.4k|  static inline void Delete(void* obj, Arena* arena) {
  670|  13.4k|    TypeHandler::Delete(cast<TypeHandler>(obj), arena);
  671|  13.4k|  }
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|     10|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEC2EPNS0_5ArenaE:
 1263|     10|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|     10|}

_ZN6google8protobuf15UnknownFieldSet16default_instanceEv:
  320|     19|inline const UnknownFieldSet& UnknownFieldSet::default_instance() {
  321|     19|  PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT static const UnknownFieldSet
  ------------------
  |  |  481|     19|#define PROTOBUF_ATTRIBUTE_NO_DESTROY [[clang::no_destroy]]
  ------------------
  322|     19|      instance;
  323|     19|  return instance;
  324|     19|}

_ZN6google8protobuf8internal14WireFormatLite7MakeTagEiNS2_8WireTypeE:
  828|  2.16k|                                                  WireType type) {
  829|  2.16k|  return GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(field_number, type);
  ------------------
  |  |  191|  2.16k|  static_cast<uint32_t>((static_cast<uint32_t>(FIELD_NUMBER) << 3) | (TYPE))
  ------------------
  830|  2.16k|}
_ZN6google8protobuf8internal14WireFormatLite15WriteTagToArrayEiNS2_8WireTypeEPh:
 1415|  2.16k|                                                uint8_t* target) {
 1416|  2.16k|  return io::CodedOutputStream::WriteTagToArray(MakeTag(field_number, type),
 1417|  2.16k|                                                target);
 1418|  2.16k|}
_ZN6google8protobuf8internal14WireFormatLite21WriteBoolNoTagToArrayEbPh:
 1476|    422|                                                      uint8_t* target) {
 1477|    422|  return io::CodedOutputStream::WriteVarint32ToArray(value ? 1 : 0, target);
  ------------------
  |  Branch (1477:54): [True: 184, False: 238]
  ------------------
 1478|    422|}
_ZN6google8protobuf8internal14WireFormatLite21WriteEnumNoTagToArrayEiPh:
 1480|  1.50k|                                                      uint8_t* target) {
 1481|  1.50k|  return io::CodedOutputStream::WriteVarint32SignExtendedToArray(value, target);
 1482|  1.50k|}
_ZN6google8protobuf8internal14WireFormatLite16WriteBoolToArrayEibPh:
 1648|    422|                                                 uint8_t* target) {
 1649|    422|  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
 1650|    422|  return WriteBoolNoTagToArray(value, target);
 1651|    422|}
_ZN6google8protobuf8internal14WireFormatLite16WriteEnumToArrayEiiPh:
 1653|  1.50k|                                                 uint8_t* target) {
 1654|  1.50k|  target = WriteTagToArray(field_number, WIRETYPE_VARINT, target);
 1655|  1.50k|  return WriteEnumNoTagToArray(value, target);
 1656|  1.50k|}
_ZN6google8protobuf8internal14WireFormatLite8EnumSizeEi:
 1799|  1.49k|inline size_t WireFormatLite::EnumSize(int value) {
 1800|  1.49k|  return io::CodedOutputStream::VarintSize32SignExtended(value);
 1801|  1.49k|}
_ZN6google8protobuf8internal14WireFormatLite19LengthDelimitedSizeEm:
 1873|    466|inline size_t WireFormatLite::LengthDelimitedSize(size_t length) {
 1874|       |  // The static_cast here prevents an error in certain compiler configurations
 1875|       |  // but is not technically correct--if length is too large to fit in a uint32_t
 1876|       |  // then it will be silently truncated. We will need to fix this if we ever
 1877|       |  // decide to start supporting serialized messages greater than 2 GiB in size.
 1878|    466|  return length +
 1879|    466|         io::CodedOutputStream::VarintSize32(static_cast<uint32_t>(length));
 1880|    466|}

_ZNK6google8protobuf3Any12GetClassDataEv:
  220|   178k|const ::google::protobuf::internal::ClassData* Any::GetClassData() const {
  221|   178k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  222|   178k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  223|   178k|  return _class_data_.base();
  224|   178k|}
_ZNK6google8protobuf3Any11GetMetadataEv:
  383|   178k|::google::protobuf::Metadata Any::GetMetadata() const {
  384|   178k|  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
  385|   178k|}

_ZN6google8protobuf8internal7cleanup9ChunkList7CleanupERKNS1_11SerialArenaE:
  148|      4|void ChunkList::Cleanup(const SerialArena& arena) {
  149|      4|  Chunk* c = head_;
  150|      4|  if (c == nullptr) return;
  ------------------
  |  Branch (150:7): [True: 4, False: 0]
  ------------------
  151|      0|  GetDeallocator deallocator(arena.parent_.AllocPolicy());
  152|       |
  153|       |  // Iterate backwards in order to destroy in the right order.
  154|      0|  CleanupNode* it = next_ - 1;
  155|      0|  while (true) {
  ------------------
  |  Branch (155:10): [True: 0, Folded]
  ------------------
  156|      0|    CleanupNode* first = c->First();
  157|       |    // A prefetch distance of 8 here was chosen arbitrarily.
  158|      0|    constexpr int kPrefetchDistance = 8;
  159|      0|    CleanupNode* prefetch = it;
  160|       |    // Prefetch the first kPrefetchDistance nodes.
  161|      0|    for (int i = 0; prefetch >= first && i < kPrefetchDistance;
  ------------------
  |  Branch (161:21): [True: 0, False: 0]
  |  Branch (161:42): [True: 0, False: 0]
  ------------------
  162|      0|         --prefetch, ++i) {
  163|      0|      prefetch->Prefetch();
  164|      0|    }
  165|       |    // For the middle nodes, run destructor and prefetch the node
  166|       |    // kPrefetchDistance after the current one.
  167|      0|    for (; prefetch >= first; --it, --prefetch) {
  ------------------
  |  Branch (167:12): [True: 0, False: 0]
  ------------------
  168|      0|      it->Destroy();
  169|      0|      prefetch->Prefetch();
  170|      0|    }
  171|       |    // Note: we could consider prefetching `next` chunk earlier.
  172|      0|    absl::PrefetchToLocalCacheNta(c->next);
  173|       |    // Destroy the rest without prefetching.
  174|      0|    for (; it >= first; --it) {
  ------------------
  |  Branch (174:12): [True: 0, False: 0]
  ------------------
  175|      0|      it->Destroy();
  176|      0|    }
  177|      0|    Chunk* next = c->next;
  178|      0|    deallocator({c, c->size});
  179|      0|    if (next == nullptr) return;
  ------------------
  |  Branch (179:9): [True: 0, False: 0]
  ------------------
  180|      0|    c = next;
  181|      0|    it = c->Last();
  182|      0|  };
  183|      0|}
_ZN6google8protobuf8internal11SerialArena23AllocateAlignedFallbackEm:
  272|     21|void* SerialArena::AllocateAlignedFallback(size_t n) {
  273|     21|  AllocateNewBlock(n);
  274|     21|  void* ret = nullptr;
  275|     21|  bool res = MaybeAllocateAligned(n, &ret);
  276|     21|  ABSL_DCHECK(res);
  ------------------
  |  |   47|     21|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     21|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     42|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     21|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     42|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     42|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 21, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     21|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 21]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     21|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 21, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     42|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     42|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  277|     21|  return ret;
  278|     21|}
_ZN6google8protobuf8internal11SerialArena31AllocateFromStringBlockFallbackEv:
  281|     16|void* SerialArena::AllocateFromStringBlockFallback() {
  282|     16|  ABSL_DCHECK_EQ(string_block_unused_.load(std::memory_order_relaxed), 0U);
  ------------------
  |  |   74|     16|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|     16|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     16|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 16]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     16|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  283|     16|  StringBlock* sb = string_block_.load(std::memory_order_relaxed);
  284|     16|  if (sb) {
  ------------------
  |  Branch (284:7): [True: 12, False: 4]
  ------------------
  285|     12|    AddSpaceUsed(sb->effective_size());
  286|     12|  }
  287|       |
  288|     16|  void* ptr;
  289|     16|  StringBlock* new_sb;
  290|     16|  size_t size = StringBlock::NextSize(sb);
  291|     16|  if (MaybeAllocateAligned(size, &ptr)) {
  ------------------
  |  Branch (291:7): [True: 11, False: 5]
  ------------------
  292|       |    // Correct space_used_ to avoid double counting
  293|     11|    AddSpaceUsed(-size);
  294|     11|    new_sb = StringBlock::Emplace(ptr, size, sb);
  295|     11|  } else {
  296|      5|    new_sb = StringBlock::New(sb);
  297|      5|    AddSpaceAllocated(new_sb->allocated_size());
  298|      5|  }
  299|     16|  string_block_.store(new_sb, std::memory_order_release);
  300|     16|  size_t unused = new_sb->effective_size() - sizeof(std::string);
  301|     16|  string_block_unused_.store(unused, std::memory_order_relaxed);
  302|     16|  return new_sb->AtOffset(unused);
  303|     16|}
_ZN6google8protobuf8internal11SerialArena16FreeStringBlocksEPNS1_11StringBlockEm:
  369|      4|                                     size_t unused_bytes) {
  370|      4|  ABSL_DCHECK(string_block != nullptr);
  ------------------
  |  |   47|      4|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      4|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  371|      4|  StringBlock* next = string_block->next();
  372|      4|  absl::PrefetchToLocalCacheNta(next);
  373|      4|  std::string* end = string_block->end();
  374|    130|  for (std::string* s = string_block->AtOffset(unused_bytes); s != end; ++s) {
  ------------------
  |  Branch (374:63): [True: 126, False: 4]
  ------------------
  375|    126|    s->~basic_string();
  376|    126|  }
  377|      4|  size_t deallocated = StringBlock::Delete(string_block);
  378|       |
  379|     16|  while ((string_block = next) != nullptr) {
  ------------------
  |  Branch (379:10): [True: 12, False: 4]
  ------------------
  380|     12|    next = string_block->next();
  381|     12|    absl::PrefetchToLocalCacheNta(next);
  382|    406|    for (std::string& s : *string_block) {
  ------------------
  |  Branch (382:25): [True: 406, False: 12]
  ------------------
  383|    406|      s.~basic_string();
  384|    406|    }
  385|     12|    deallocated += StringBlock::Delete(string_block);
  386|     12|  }
  387|      4|  return deallocated;
  388|      4|}
_ZN6google8protobuf8internal15ThreadSafeArena22SentrySerialArenaChunkEv:
  539|      4|ThreadSafeArena::SerialArenaChunk* ThreadSafeArena::SentrySerialArenaChunk() {
  540|       |  // const_cast is okay because the sentry chunk is never mutated. Also,
  541|       |  // reinterpret_cast is acceptable here as it should be identical to
  542|       |  // SerialArenaChunk with zero payload. This is a necessary trick to
  543|       |  // constexpr initialize kSentryArenaChunk.
  544|      4|  return reinterpret_cast<SerialArenaChunk*>(
  545|      4|      const_cast<SerialArenaChunkHeader*>(&kSentryArenaChunk));
  546|      4|}
_ZN6google8protobuf8internal15ThreadSafeArenaC2Ev:
  567|      4|ThreadSafeArena::ThreadSafeArena() : first_arena_(*this) { Init(); }
_ZN6google8protobuf8internal15ThreadSafeArena18GetNextLifeCycleIdEv:
  638|      4|uint64_t ThreadSafeArena::GetNextLifeCycleId() {
  639|      4|  ThreadCache& tc = thread_cache();
  640|      4|  uint64_t id = tc.next_lifecycle_id;
  641|      4|  constexpr uint64_t kInc = ThreadCache::kPerThreadIds;
  642|      4|  if (PROTOBUF_PREDICT_FALSE((id & (kInc - 1)) == 0)) {
  ------------------
  |  |  365|      4|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 4]
  |  |  |  Branch (365:63): [True: 1, False: 3]
  |  |  ------------------
  ------------------
  643|       |    // On platforms that don't support uint64_t atomics we can certainly not
  644|       |    // afford to increment by large intervals and expect uniqueness due to
  645|       |    // wrapping, hence we only add by 1.
  646|      1|    id = lifecycle_id_.fetch_add(1, std::memory_order_relaxed) * kInc;
  647|      1|  }
  648|      4|  tc.next_lifecycle_id = id + 1;
  649|      4|  return id;
  650|      4|}
_ZN6google8protobuf8internal15ThreadSafeArena4InitEv:
  719|      4|void ThreadSafeArena::Init() {
  720|      4|  tag_and_id_ = GetNextLifeCycleId();
  721|      4|  arena_stats_ = Sample();
  722|      4|  head_.store(SentrySerialArenaChunk(), std::memory_order_relaxed);
  723|      4|  first_owner_ = &thread_cache();
  724|       |
  725|       |  // Record allocation for the first block that was either user-provided or
  726|       |  // newly allocated.
  727|      4|  ThreadSafeArenaStats::RecordAllocateStats(
  728|      4|      arena_stats_.MutableStats(),
  729|      4|      /*used=*/0,
  730|      4|      /*allocated=*/first_arena_.SpaceAllocated(),
  731|      4|      /*wasted=*/0);
  732|       |
  733|      4|  CacheSerialArena(&first_arena_);
  734|      4|}
_ZN6google8protobuf8internal15ThreadSafeArenaD2Ev:
  736|      4|ThreadSafeArena::~ThreadSafeArena() {
  737|       |  // Have to do this in a first pass, because some of the destructors might
  738|       |  // refer to memory in other blocks.
  739|      4|  CleanupList();
  740|       |
  741|      4|  auto mem = Free();
  742|      4|  if (alloc_policy_.is_user_owned_initial_block()) {
  ------------------
  |  Branch (742:7): [True: 0, False: 4]
  ------------------
  743|       |    // Unpoison the initial block, now that it's going back to the user.
  744|      0|    PROTOBUF_UNPOISON_MEMORY_REGION(mem.p, mem.n);
  745|      4|  } else if (mem.n > 0) {
  ------------------
  |  Branch (745:14): [True: 0, False: 4]
  ------------------
  746|      0|    GetDeallocator(alloc_policy_.get())(mem);
  747|      0|  }
  748|      4|}
_ZN6google8protobuf8internal15ThreadSafeArena4FreeEv:
  750|      4|SizedPtr ThreadSafeArena::Free() {
  751|      4|  auto deallocator = GetDeallocator(alloc_policy_.get());
  752|       |
  753|      4|  WalkSerialArenaChunk([&](SerialArenaChunk* chunk) {
  754|      4|    absl::Span<std::atomic<SerialArena*>> span = chunk->arenas();
  755|       |    // Walks arenas backward to handle the first serial arena the last. Freeing
  756|       |    // in reverse-order to the order in which objects were created may not be
  757|       |    // necessary to Free and we should revisit this. (b/247560530)
  758|      4|    for (auto it = span.rbegin(); it != span.rend(); ++it) {
  759|      4|      SerialArena* serial = it->load(std::memory_order_relaxed);
  760|      4|      ABSL_DCHECK_NE(serial, nullptr);
  761|       |      // Always frees the first block of "serial" as it cannot be user-provided.
  762|      4|      SizedPtr mem = serial->Free(deallocator);
  763|      4|      ABSL_DCHECK_NE(mem.p, nullptr);
  764|      4|      deallocator(mem);
  765|      4|    }
  766|       |
  767|       |    // Delete the chunk as we're done with it.
  768|      4|    internal::SizedDelete(chunk,
  769|      4|                          SerialArenaChunk::AllocSize(chunk->capacity()));
  770|      4|  });
  771|       |
  772|       |  // The first block of the first arena is special and let the caller handle it.
  773|      4|  return first_arena_.Free(deallocator);
  774|      4|}
_ZN6google8protobuf8internal15ThreadSafeArena14GetSerialArenaEv:
  823|    529|SerialArena* ThreadSafeArena::GetSerialArena() {
  824|    529|  SerialArena* arena;
  825|    529|  if (PROTOBUF_PREDICT_FALSE(!GetSerialArenaFast(&arena))) {
  ------------------
  |  |  365|    529|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 529]
  |  |  |  Branch (365:54): [Folded, False: 529]
  |  |  |  Branch (365:63): [True: 0, False: 529]
  |  |  ------------------
  ------------------
  826|      0|    arena = GetSerialArenaFallback(kMaxCleanupNodeSize);
  827|      0|  }
  828|    529|  return arena;
  829|    529|}
_ZN6google8protobuf8internal15ThreadSafeArena23AllocateFromStringBlockEv:
  839|    529|void* ThreadSafeArena::AllocateFromStringBlock() {
  840|    529|  return GetSerialArena()->AllocateFromStringBlock();
  841|    529|}
_ZN6google8protobuf8internal15ThreadSafeArena11CleanupListEv:
  917|      4|void ThreadSafeArena::CleanupList() {
  918|       |#ifdef PROTOBUF_ASAN
  919|       |  UnpoisonAllArenaBlocks();
  920|       |#endif
  921|       |
  922|      4|  WalkSerialArenaChunk([](SerialArenaChunk* chunk) {
  923|      4|    absl::Span<std::atomic<SerialArena*>> span = chunk->arenas();
  924|       |    // Walks arenas backward to handle the first serial arena the last.
  925|       |    // Destroying in reverse-order to the construction is often assumed by users
  926|       |    // and required not to break inter-object dependencies. (b/247560530)
  927|      4|    for (auto it = span.rbegin(); it != span.rend(); ++it) {
  928|      4|      SerialArena* serial = it->load(std::memory_order_relaxed);
  929|      4|      ABSL_DCHECK_NE(serial, nullptr);
  930|      4|      serial->CleanupList();
  931|      4|    }
  932|      4|  });
  933|       |  // First arena must be cleaned up last. (b/247560530)
  934|      4|  first_arena_.CleanupList();
  935|      4|}
_ZN6google8protobuf5Arena8AllocateEm:
  974|    455|void* Arena::Allocate(size_t n) { return impl_.AllocateAligned(n); }
_ZN6google8protobuf5Arena16AllocateForArrayEm:
  976|    129|void* Arena::AllocateForArray(size_t n) {
  977|    129|  return impl_.AllocateAligned<internal::AllocationClient::kArray>(n);
  978|    129|}
arena.cc:_ZN6google8protobuf8internal12_GLOBAL__N_114AllocationSizeEmmm:
   64|     21|                             size_t max_size) {
   65|     21|  if (last_size == 0) return start_size;
  ------------------
  |  Branch (65:7): [True: 4, False: 17]
  ------------------
   66|       |  // Double the current block size, up to a limit.
   67|     17|  return std::min(2 * last_size, max_size);
   68|     21|}
arena.cc:_ZN6google8protobuf8internal12_GLOBAL__N_114AllocateMemoryERKNS1_16AllocationPolicyEm:
   70|     21|SizedPtr AllocateMemory(const AllocationPolicy& policy, size_t size) {
   71|     21|  if (policy.block_alloc == nullptr) {
  ------------------
  |  Branch (71:7): [True: 21, False: 0]
  ------------------
   72|     21|    return AllocateAtLeast(size);
   73|     21|  }
   74|      0|  return {policy.block_alloc(size), size};
   75|     21|}
arena.cc:_ZN6google8protobuf8internal12_GLOBAL__N_114GetDeallocatorC2EPKNS1_16AllocationPolicyE:
  105|      4|      : dealloc_(policy ? policy->block_dealloc : nullptr) {}
  ------------------
  |  Branch (105:18): [True: 0, False: 4]
  ------------------
arena.cc:_ZNK6google8protobuf8internal12_GLOBAL__N_114GetDeallocatorclENS1_8SizedPtrE:
  107|     21|  void operator()(SizedPtr mem) const {
  108|     21|    if (dealloc_) {
  ------------------
  |  Branch (108:9): [True: 0, False: 21]
  ------------------
  109|      0|      dealloc_(mem.p, mem.n);
  110|     21|    } else {
  111|     21|      internal::SizedDelete(mem.p, mem.n);
  112|     21|    }
  113|     21|  }
_ZN6google8protobuf8internal11SerialArena16AllocateNewBlockEm:
  313|     21|void SerialArena::AllocateNewBlock(size_t n) {
  314|     21|  size_t used = 0;
  315|     21|  size_t wasted = 0;
  316|     21|  ArenaBlock* old_head = head();
  317|     21|  if (!old_head->IsSentry()) {
  ------------------
  |  Branch (317:7): [True: 17, False: 4]
  ------------------
  318|       |    // Record how much used in this block.
  319|     17|    used = static_cast<size_t>(ptr() - old_head->Pointer(kBlockHeaderSize));
  320|     17|    wasted = old_head->size - used - kBlockHeaderSize;
  321|     17|    AddSpaceUsed(used);
  322|     17|  }
  323|       |
  324|       |  // TODO: Evaluate if pushing unused space into the cached blocks is a
  325|       |  // win. In preliminary testing showed increased memory savings as expected,
  326|       |  // but with a CPU regression. The regression might have been an artifact of
  327|       |  // the microbenchmark.
  328|       |
  329|     21|  auto mem = AllocateBlock(parent_.AllocPolicy(), old_head->size, n);
  330|     21|  AddSpaceAllocated(mem.n);
  331|     21|  ThreadSafeArenaStats::RecordAllocateStats(parent_.arena_stats_.MutableStats(),
  332|     21|                                            /*used=*/used,
  333|     21|                                            /*allocated=*/mem.n, wasted);
  334|     21|  auto* new_head = new (mem.p) ArenaBlock{old_head, mem.n};
  335|     21|  set_range(new_head->Pointer(kBlockHeaderSize), new_head->Limit());
  336|       |  // Previous writes must take effect before writing new head.
  337|     21|  head_.store(new_head, std::memory_order_release);
  338|       |
  339|     21|  PROTOBUF_POISON_MEMORY_REGION(ptr(), limit_ - ptr());
  340|     21|}
_ZN6google8protobuf8internal11SerialArenaC2ERNS1_15ThreadSafeArenaE:
  218|      4|    : head_{SentryArenaBlock()}, parent_{parent} {}
arena.cc:_ZN6google8protobuf8internal12_GLOBAL__N_116SentryArenaBlockEv:
   56|      4|ArenaBlock* SentryArenaBlock() {
   57|      4|  static const ArenaBlock kSentryArenaBlock;
   58|       |  // const_cast<> is okay as kSentryArenaBlock will never be mutated.
   59|      4|  return const_cast<ArenaBlock*>(&kSentryArenaBlock);
   60|      4|}
arena.cc:_ZN6google8protobuf8internal12_GLOBAL__N_113AllocateBlockEPKNS1_16AllocationPolicyEmm:
   78|     21|                       size_t min_bytes) {
   79|     21|  AllocationPolicy policy;  // default policy
   80|     21|  if (policy_ptr) policy = *policy_ptr;
  ------------------
  |  Branch (80:7): [True: 0, False: 21]
  ------------------
   81|     21|  size_t size =
   82|     21|      AllocationSize(last_size, policy.start_block_size, policy.max_block_size);
   83|       |  // Verify that min_bytes + kBlockHeaderSize won't overflow.
   84|     21|  ABSL_CHECK_LE(min_bytes, std::numeric_limits<size_t>::max() -
  ------------------
  |  |   54|     21|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     21|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     21|  while (                                                                      \
  |  |  |  |  |  |   62|     21|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 21]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     21|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     21|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     21|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     21|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     21|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     21|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   85|     21|                               SerialArena::kBlockHeaderSize);
   86|     21|  size = std::max(size, SerialArena::kBlockHeaderSize + min_bytes);
   87|       |
   88|     21|  return AllocateMemory(policy, size);
   89|     21|}
_ZNK6google8protobuf8internal15ThreadSafeArena16SerialArenaChunk8IsSentryEv:
  439|      8|  bool IsSentry() const { return capacity() == 0; }
_ZNK6google8protobuf8internal15ThreadSafeArena16SerialArenaChunk8capacityEv:
  449|      8|  uint32_t capacity() const { return header().capacity; }
_ZNK6google8protobuf8internal15ThreadSafeArena16SerialArenaChunk6headerEv:
  518|      8|  const SerialArenaChunkHeader& header() const {
  519|      8|    return *layout_type::Partial().Pointer<kHeader>(ptr());
  520|      8|  }
_ZNK6google8protobuf8internal15ThreadSafeArena16SerialArenaChunk3ptrEv:
  512|      8|  const char* ptr() const { return reinterpret_cast<const char*>(this); }
arena.cc:_ZN6google8protobuf8internal11SerialArena4FreeINS1_12_GLOBAL__N_114GetDeallocatorEEENS1_8SizedPtrET_:
  258|      4|SizedPtr SerialArena::Free(Deallocator deallocator) {
  259|      4|  FreeStringBlocks();
  260|       |
  261|      4|  ArenaBlock* b = head();
  262|      4|  SizedPtr mem = {b, b->size};
  263|     25|  while (b->next) {
  ------------------
  |  Branch (263:10): [True: 21, False: 4]
  ------------------
  264|     21|    b = b->next;  // We must first advance before deleting this block
  265|     21|    deallocator(mem);
  266|     21|    mem = {b, b->size};
  267|     21|  }
  268|      4|  return mem;
  269|      4|}
arena.cc:_ZN6google8protobuf8internal15ThreadSafeArena20WalkSerialArenaChunkIZNS2_4FreeEvE3$_0EEvT_:
  855|      4|void ThreadSafeArena::WalkSerialArenaChunk(Callback fn) {
  856|       |  // By omitting an Acquire barrier we help the sanitizer that any user code
  857|       |  // that doesn't properly synchronize Reset() or the destructor will throw a
  858|       |  // TSAN warning.
  859|      4|  SerialArenaChunk* chunk = head_.load(std::memory_order_relaxed);
  860|       |
  861|      4|  while (!chunk->IsSentry()) {
  ------------------
  |  Branch (861:10): [True: 0, False: 4]
  ------------------
  862|       |    // Cache next chunk in case this chunk is destroyed.
  863|      0|    SerialArenaChunk* next_chunk = chunk->next_chunk();
  864|       |    // Prefetch the next chunk.
  865|      0|    absl::PrefetchToLocalCache(next_chunk);
  866|      0|    fn(chunk);
  867|      0|    chunk = next_chunk;
  868|      0|  }
  869|      4|}
arena.cc:_ZN6google8protobuf8internal15ThreadSafeArena20WalkSerialArenaChunkIZNS2_11CleanupListEvE3$_0EEvT_:
  855|      4|void ThreadSafeArena::WalkSerialArenaChunk(Callback fn) {
  856|       |  // By omitting an Acquire barrier we help the sanitizer that any user code
  857|       |  // that doesn't properly synchronize Reset() or the destructor will throw a
  858|       |  // TSAN warning.
  859|      4|  SerialArenaChunk* chunk = head_.load(std::memory_order_relaxed);
  860|       |
  861|      4|  while (!chunk->IsSentry()) {
  ------------------
  |  Branch (861:10): [True: 0, False: 4]
  ------------------
  862|       |    // Cache next chunk in case this chunk is destroyed.
  863|      0|    SerialArenaChunk* next_chunk = chunk->next_chunk();
  864|       |    // Prefetch the next chunk.
  865|      0|    absl::PrefetchToLocalCache(next_chunk);
  866|      0|    fn(chunk);
  867|      0|    chunk = next_chunk;
  868|      0|  }
  869|      4|}

_ZN6google8protobuf5ArenaC2Ev:
  173|      4|  inline Arena() : impl_() {}
_ZN6google8protobuf5Arena17ReturnArrayMemoryEPvm:
  527|     49|  void ReturnArrayMemory(void* p, size_t size) {
  528|     49|    impl_.ReturnArrayMemory(p, size);
  529|     49|  }
_ZN6google8protobuf5Arena23AllocateAlignedForArrayEmm:
  634|    129|  void* AllocateAlignedForArray(size_t n, size_t align) {
  635|    129|    if (align <= internal::ArenaAlignDefault::align) {
  ------------------
  |  Branch (635:9): [True: 129, False: 0]
  ------------------
  636|    129|      return AllocateForArray(internal::ArenaAlignDefault::Ceil(n));
  637|    129|    } else {
  638|       |      // We are wasting space by over allocating align - 8 bytes. Compared
  639|       |      // to a dedicated function that takes current alignment in consideration.
  640|       |      // Such a scheme would only waste (align - 8)/2 bytes on average, but
  641|       |      // requires a dedicated function in the outline arena allocation
  642|       |      // functions. Possibly re-evaluate tradeoffs later.
  643|      0|      auto align_as = internal::ArenaAlignAs(align);
  644|      0|      return align_as.Ceil(AllocateForArray(align_as.Padded(n)));
  645|      0|    }
  646|    129|  }
_ZN6google8protobuf8internal23CanMoveWithInternalSwapEPNS0_5ArenaES3_:
  101|    227|inline bool CanMoveWithInternalSwap(Arena* lhs, Arena* rhs) {
  102|    227|  if (DebugHardenForceCopyInMove()) {
  ------------------
  |  Branch (102:7): [Folded, False: 227]
  ------------------
  103|       |    // We force copy in move when we are not using an arena.
  104|       |    // If we did with an arena we would grow arena usage too much.
  105|      0|    return lhs != nullptr && lhs == rhs;
  ------------------
  |  Branch (105:12): [True: 0, False: 0]
  |  Branch (105:30): [True: 0, False: 0]
  ------------------
  106|    227|  } else {
  107|    227|    return lhs == rhs;
  108|    227|  }
  109|    227|}
_ZN6google8protobuf5Arena16AllocateInternalINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELb0EEEPvv:
  706|    529|inline void* Arena::AllocateInternal<std::string, false>() {
  707|    529|  return impl_.AllocateFromStringBlock();
  708|    529|}
_ZZN6google8protobuf5Arena6CreateINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJEEEPT_PS1_DpOT0_ENKUlDpOT_E0_clIJEEEDaSI_:
  244|  24.4k|        [arena](auto&&... args) {
  245|  24.4k|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|  24.4k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 23.8k, False: 529]
  |  |  |  Branch (365:54): [Folded, False: 24.4k]
  |  |  |  Branch (365:63): [True: 23.8k, False: 529]
  |  |  ------------------
  ------------------
  246|  23.8k|            return new T(std::forward<Args>(args)...);
  247|  23.8k|          }
  248|    529|          return new (arena->AllocateInternal<T>())
  249|    529|              T(std::forward<Args>(args)...);
  250|  24.4k|        },
_ZN6google8protobuf5Arena6CreateINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJEEEPT_PS1_DpOT0_:
  216|  24.4k|  PROTOBUF_NDEBUG_INLINE static T* Create(Arena* arena, Args&&... args) {
  217|  24.4k|    return absl::utility_internal::IfConstexprElse<
  218|  24.4k|        is_arena_constructable<T>::value>(
  219|       |        // Arena-constructable
  220|  24.4k|        [arena](auto&&... args) {
  221|  24.4k|          using Type = std::remove_const_t<T>;
  222|       |#ifdef __cpp_if_constexpr
  223|       |          // DefaultConstruct/CopyConstruct are optimized for messages, which
  224|       |          // are both arena constructible and destructor skippable and they
  225|       |          // assume much. Don't use these functions unless the invariants
  226|       |          // hold.
  227|       |          if constexpr (is_destructor_skippable<T>::value) {
  228|       |            constexpr auto construct_type = GetConstructType<T, Args&&...>();
  229|       |            // We delegate to DefaultConstruct/CopyConstruct where appropriate
  230|       |            // because protobuf generated classes have external templates for
  231|       |            // these functions for code size reasons. When `if constexpr` is not
  232|       |            // available always use the fallback.
  233|       |            if constexpr (construct_type == ConstructType::kDefault) {
  234|       |              return static_cast<Type*>(DefaultConstruct<Type>(arena));
  235|       |            } else if constexpr (construct_type == ConstructType::kCopy) {
  236|       |              return static_cast<Type*>(CopyConstruct<Type>(arena, &args...));
  237|       |            }
  238|       |          }
  239|       |#endif
  240|  24.4k|          return CreateArenaCompatible<Type>(arena,
  241|  24.4k|                                             std::forward<Args>(args)...);
  242|  24.4k|        },
  243|       |        // Non arena-constructable
  244|  24.4k|        [arena](auto&&... args) {
  245|  24.4k|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  246|  24.4k|            return new T(std::forward<Args>(args)...);
  247|  24.4k|          }
  248|  24.4k|          return new (arena->AllocateInternal<T>())
  249|  24.4k|              T(std::forward<Args>(args)...);
  250|  24.4k|        },
  251|  24.4k|        std::forward<Args>(args)...);
  252|  24.4k|  }
_ZN6google8protobuf5Arena11CreateArrayIcEEPT_PS1_m:
  286|    129|                                               size_t num_elements) {
  287|    129|    static_assert(std::is_trivial<T>::value,
  288|    129|                  "CreateArray requires a trivially constructible type");
  289|    129|    static_assert(std::is_trivially_destructible<T>::value,
  290|    129|                  "CreateArray requires a trivially destructible type");
  291|    129|    ABSL_CHECK_LE(num_elements, std::numeric_limits<size_t>::max() / sizeof(T))
  ------------------
  |  |   54|      0|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|    129|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|    129|  while (                                                                      \
  |  |  |  |  |  |   62|    129|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 129]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|    129|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|    129|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|    129|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|    129|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|    129|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|    129|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|    129|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|    129|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|      0|        << "Requested size is too large to fit into size_t.";
  293|    129|    if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|    129|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 129]
  |  |  |  Branch (365:54): [Folded, False: 129]
  |  |  |  Branch (365:63): [True: 0, False: 129]
  |  |  ------------------
  ------------------
  294|      0|      return new T[num_elements];
  295|    129|    } else {
  296|       |      // We count on compiler to realize that if sizeof(T) is a multiple of
  297|       |      // 8 AlignUpTo can be elided.
  298|    129|      return static_cast<T*>(
  299|    129|          arena->AllocateAlignedForArray(sizeof(T) * num_elements, alignof(T)));
  300|    129|    }
  301|    129|  }
_ZZN6google8protobuf5Arena6CreateINS0_8internal16InternalMetadata9ContainerINS0_15UnknownFieldSetEEEJEEEPT_PS1_DpOT0_ENKUlDpOT_E_clIJEEEDaSG_:
  220|  6.69k|        [arena](auto&&... args) {
  221|  6.69k|          using Type = std::remove_const_t<T>;
  222|       |#ifdef __cpp_if_constexpr
  223|       |          // DefaultConstruct/CopyConstruct are optimized for messages, which
  224|       |          // are both arena constructible and destructor skippable and they
  225|       |          // assume much. Don't use these functions unless the invariants
  226|       |          // hold.
  227|       |          if constexpr (is_destructor_skippable<T>::value) {
  228|       |            constexpr auto construct_type = GetConstructType<T, Args&&...>();
  229|       |            // We delegate to DefaultConstruct/CopyConstruct where appropriate
  230|       |            // because protobuf generated classes have external templates for
  231|       |            // these functions for code size reasons. When `if constexpr` is not
  232|       |            // available always use the fallback.
  233|       |            if constexpr (construct_type == ConstructType::kDefault) {
  234|       |              return static_cast<Type*>(DefaultConstruct<Type>(arena));
  235|       |            } else if constexpr (construct_type == ConstructType::kCopy) {
  236|       |              return static_cast<Type*>(CopyConstruct<Type>(arena, &args...));
  237|       |            }
  238|       |          }
  239|       |#endif
  240|  6.69k|          return CreateArenaCompatible<Type>(arena,
  241|  6.69k|                                             std::forward<Args>(args)...);
  242|  6.69k|        },
_ZN6google8protobuf5Arena6CreateINS0_8internal16InternalMetadata9ContainerINS0_15UnknownFieldSetEEEJEEEPT_PS1_DpOT0_:
  216|  6.69k|  PROTOBUF_NDEBUG_INLINE static T* Create(Arena* arena, Args&&... args) {
  217|  6.69k|    return absl::utility_internal::IfConstexprElse<
  218|  6.69k|        is_arena_constructable<T>::value>(
  219|       |        // Arena-constructable
  220|  6.69k|        [arena](auto&&... args) {
  221|  6.69k|          using Type = std::remove_const_t<T>;
  222|       |#ifdef __cpp_if_constexpr
  223|       |          // DefaultConstruct/CopyConstruct are optimized for messages, which
  224|       |          // are both arena constructible and destructor skippable and they
  225|       |          // assume much. Don't use these functions unless the invariants
  226|       |          // hold.
  227|       |          if constexpr (is_destructor_skippable<T>::value) {
  228|       |            constexpr auto construct_type = GetConstructType<T, Args&&...>();
  229|       |            // We delegate to DefaultConstruct/CopyConstruct where appropriate
  230|       |            // because protobuf generated classes have external templates for
  231|       |            // these functions for code size reasons. When `if constexpr` is not
  232|       |            // available always use the fallback.
  233|       |            if constexpr (construct_type == ConstructType::kDefault) {
  234|       |              return static_cast<Type*>(DefaultConstruct<Type>(arena));
  235|       |            } else if constexpr (construct_type == ConstructType::kCopy) {
  236|       |              return static_cast<Type*>(CopyConstruct<Type>(arena, &args...));
  237|       |            }
  238|       |          }
  239|       |#endif
  240|  6.69k|          return CreateArenaCompatible<Type>(arena,
  241|  6.69k|                                             std::forward<Args>(args)...);
  242|  6.69k|        },
  243|       |        // Non arena-constructable
  244|  6.69k|        [arena](auto&&... args) {
  245|  6.69k|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  246|  6.69k|            return new T(std::forward<Args>(args)...);
  247|  6.69k|          }
  248|  6.69k|          return new (arena->AllocateInternal<T>())
  249|  6.69k|              T(std::forward<Args>(args)...);
  250|  6.69k|        },
  251|  6.69k|        std::forward<Args>(args)...);
  252|  6.69k|  }
_ZN6google8protobuf5Arena21CreateArenaCompatibleINS0_8internal16InternalMetadata9ContainerINS0_15UnknownFieldSetEEEEEPT_PS1_:
  547|  6.69k|  PROTOBUF_NDEBUG_INLINE static T* CreateArenaCompatible(Arena* arena) {
  548|  6.69k|    static_assert(is_arena_constructable<T>::value,
  549|  6.69k|                  "Can only construct types that are ArenaConstructable");
  550|  6.69k|    if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|  6.69k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 6.69k, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 6.69k]
  |  |  |  Branch (365:63): [True: 6.69k, False: 0]
  |  |  ------------------
  ------------------
  551|       |      // Generated arena constructor T(Arena*) is protected. Call via
  552|       |      // InternalHelper.
  553|  6.69k|      return InternalHelper<T>::New();
  554|  6.69k|    } else {
  555|      0|      return arena->DoCreateMessage<T>();
  556|      0|    }
  557|  6.69k|  }
_ZN6google8protobuf5Arena14InternalHelperINS0_8internal16InternalMetadata9ContainerINS0_15UnknownFieldSetEEEE3NewEv:
  461|  6.69k|    static inline PROTOBUF_ALWAYS_INLINE T* New() {
  462|  6.69k|      return new T(nullptr);
  463|  6.69k|    }
_ZN6google8protobuf5Arena11CreateArrayINS0_8internal12ExtensionSet8KeyValueEEEPT_PS1_m:
  286|    438|                                               size_t num_elements) {
  287|    438|    static_assert(std::is_trivial<T>::value,
  288|    438|                  "CreateArray requires a trivially constructible type");
  289|    438|    static_assert(std::is_trivially_destructible<T>::value,
  290|    438|                  "CreateArray requires a trivially destructible type");
  291|    438|    ABSL_CHECK_LE(num_elements, std::numeric_limits<size_t>::max() / sizeof(T))
  ------------------
  |  |   54|      0|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|    438|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|    438|  while (                                                                      \
  |  |  |  |  |  |   62|    438|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 438]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|    438|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|    438|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|    438|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|    438|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|    438|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|    438|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|    438|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|    438|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|      0|        << "Requested size is too large to fit into size_t.";
  293|    438|    if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|    438|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 438, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 438]
  |  |  |  Branch (365:63): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  294|    438|      return new T[num_elements];
  295|    438|    } else {
  296|       |      // We count on compiler to realize that if sizeof(T) is a multiple of
  297|       |      // 8 AlignUpTo can be elided.
  298|      0|      return static_cast<T*>(
  299|      0|          arena->AllocateAlignedForArray(sizeof(T) * num_elements, alignof(T)));
  300|      0|    }
  301|    438|  }
_ZN6google8protobuf5ArenaD2Ev:
  198|      4|  inline ~Arena() = default;
_ZN6google8protobuf5Arena6CreateINS0_19FileDescriptorProtoEJEEEPT_PS1_DpOT0_:
  216|      4|  PROTOBUF_NDEBUG_INLINE static T* Create(Arena* arena, Args&&... args) {
  217|      4|    return absl::utility_internal::IfConstexprElse<
  218|      4|        is_arena_constructable<T>::value>(
  219|       |        // Arena-constructable
  220|      4|        [arena](auto&&... args) {
  221|      4|          using Type = std::remove_const_t<T>;
  222|       |#ifdef __cpp_if_constexpr
  223|       |          // DefaultConstruct/CopyConstruct are optimized for messages, which
  224|       |          // are both arena constructible and destructor skippable and they
  225|       |          // assume much. Don't use these functions unless the invariants
  226|       |          // hold.
  227|       |          if constexpr (is_destructor_skippable<T>::value) {
  228|       |            constexpr auto construct_type = GetConstructType<T, Args&&...>();
  229|       |            // We delegate to DefaultConstruct/CopyConstruct where appropriate
  230|       |            // because protobuf generated classes have external templates for
  231|       |            // these functions for code size reasons. When `if constexpr` is not
  232|       |            // available always use the fallback.
  233|       |            if constexpr (construct_type == ConstructType::kDefault) {
  234|       |              return static_cast<Type*>(DefaultConstruct<Type>(arena));
  235|       |            } else if constexpr (construct_type == ConstructType::kCopy) {
  236|       |              return static_cast<Type*>(CopyConstruct<Type>(arena, &args...));
  237|       |            }
  238|       |          }
  239|       |#endif
  240|      4|          return CreateArenaCompatible<Type>(arena,
  241|      4|                                             std::forward<Args>(args)...);
  242|      4|        },
  243|       |        // Non arena-constructable
  244|      4|        [arena](auto&&... args) {
  245|      4|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  246|      4|            return new T(std::forward<Args>(args)...);
  247|      4|          }
  248|      4|          return new (arena->AllocateInternal<T>())
  249|      4|              T(std::forward<Args>(args)...);
  250|      4|        },
  251|      4|        std::forward<Args>(args)...);
  252|      4|  }
_ZZN6google8protobuf5Arena6CreateINS0_19FileDescriptorProtoEJEEEPT_PS1_DpOT0_ENKUlDpOT_E_clIJEEEDaSC_:
  220|      4|        [arena](auto&&... args) {
  221|      4|          using Type = std::remove_const_t<T>;
  222|       |#ifdef __cpp_if_constexpr
  223|       |          // DefaultConstruct/CopyConstruct are optimized for messages, which
  224|       |          // are both arena constructible and destructor skippable and they
  225|       |          // assume much. Don't use these functions unless the invariants
  226|       |          // hold.
  227|       |          if constexpr (is_destructor_skippable<T>::value) {
  228|       |            constexpr auto construct_type = GetConstructType<T, Args&&...>();
  229|       |            // We delegate to DefaultConstruct/CopyConstruct where appropriate
  230|       |            // because protobuf generated classes have external templates for
  231|       |            // these functions for code size reasons. When `if constexpr` is not
  232|       |            // available always use the fallback.
  233|       |            if constexpr (construct_type == ConstructType::kDefault) {
  234|       |              return static_cast<Type*>(DefaultConstruct<Type>(arena));
  235|       |            } else if constexpr (construct_type == ConstructType::kCopy) {
  236|       |              return static_cast<Type*>(CopyConstruct<Type>(arena, &args...));
  237|       |            }
  238|       |          }
  239|       |#endif
  240|      4|          return CreateArenaCompatible<Type>(arena,
  241|      4|                                             std::forward<Args>(args)...);
  242|      4|        },
_ZN6google8protobuf5Arena21CreateArenaCompatibleINS0_19FileDescriptorProtoEEEPT_PS1_:
  547|      4|  PROTOBUF_NDEBUG_INLINE static T* CreateArenaCompatible(Arena* arena) {
  548|      4|    static_assert(is_arena_constructable<T>::value,
  549|      4|                  "Can only construct types that are ArenaConstructable");
  550|      4|    if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|      4|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 4]
  |  |  |  Branch (365:54): [Folded, False: 4]
  |  |  |  Branch (365:63): [True: 0, False: 4]
  |  |  ------------------
  ------------------
  551|       |      // Generated arena constructor T(Arena*) is protected. Call via
  552|       |      // InternalHelper.
  553|      0|      return InternalHelper<T>::New();
  554|      4|    } else {
  555|      4|      return arena->DoCreateMessage<T>();
  556|      4|    }
  557|      4|  }
_ZN6google8protobuf5Arena15DoCreateMessageINS0_19FileDescriptorProtoEJEEEPT_DpOT0_:
  588|      4|  PROTOBUF_NDEBUG_INLINE T* DoCreateMessage(Args&&... args) {
  589|      4|    return InternalHelper<T>::Construct(
  590|      4|        AllocateInternal<T, is_destructor_skippable<T>::value>(), this,
  591|      4|        std::forward<Args>(args)...);
  592|      4|  }
_ZN6google8protobuf5Arena14InternalHelperINS0_19FileDescriptorProtoEE9ConstructIJPS1_EEEPS3_PvDpOT_:
  457|      4|    static T* Construct(void* ptr, Args&&... args) {
  458|      4|      return new (ptr) T(static_cast<Args&&>(args)...);
  459|      4|    }
_ZN6google8protobuf5Arena16AllocateInternalINS0_19FileDescriptorProtoELb1EEEPvv:
  560|      4|  PROTOBUF_NDEBUG_INLINE void* AllocateInternal() {
  561|      4|    if (trivial) {
  ------------------
  |  Branch (561:9): [True: 4, Folded]
  ------------------
  562|      4|      return AllocateAligned(sizeof(T), alignof(T));
  563|      4|    } else {
  564|       |      // We avoid instantiating arena_destruct_object<T> in the trivial case.
  565|      0|      constexpr auto dtor = &internal::cleanup::arena_destruct_object<
  566|      0|          std::conditional_t<trivial, std::string, T>>;
  567|      0|      return AllocateAlignedWithCleanup(sizeof(T), alignof(T), dtor);
  568|      0|    }
  569|      4|  }
_ZN6google8protobuf5Arena6CreateINS0_15UnknownFieldSetEJEEEPT_PS1_DpOT0_:
  216|    989|  PROTOBUF_NDEBUG_INLINE static T* Create(Arena* arena, Args&&... args) {
  217|    989|    return absl::utility_internal::IfConstexprElse<
  218|    989|        is_arena_constructable<T>::value>(
  219|       |        // Arena-constructable
  220|    989|        [arena](auto&&... args) {
  221|    989|          using Type = std::remove_const_t<T>;
  222|       |#ifdef __cpp_if_constexpr
  223|       |          // DefaultConstruct/CopyConstruct are optimized for messages, which
  224|       |          // are both arena constructible and destructor skippable and they
  225|       |          // assume much. Don't use these functions unless the invariants
  226|       |          // hold.
  227|       |          if constexpr (is_destructor_skippable<T>::value) {
  228|       |            constexpr auto construct_type = GetConstructType<T, Args&&...>();
  229|       |            // We delegate to DefaultConstruct/CopyConstruct where appropriate
  230|       |            // because protobuf generated classes have external templates for
  231|       |            // these functions for code size reasons. When `if constexpr` is not
  232|       |            // available always use the fallback.
  233|       |            if constexpr (construct_type == ConstructType::kDefault) {
  234|       |              return static_cast<Type*>(DefaultConstruct<Type>(arena));
  235|       |            } else if constexpr (construct_type == ConstructType::kCopy) {
  236|       |              return static_cast<Type*>(CopyConstruct<Type>(arena, &args...));
  237|       |            }
  238|       |          }
  239|       |#endif
  240|    989|          return CreateArenaCompatible<Type>(arena,
  241|    989|                                             std::forward<Args>(args)...);
  242|    989|        },
  243|       |        // Non arena-constructable
  244|    989|        [arena](auto&&... args) {
  245|    989|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  246|    989|            return new T(std::forward<Args>(args)...);
  247|    989|          }
  248|    989|          return new (arena->AllocateInternal<T>())
  249|    989|              T(std::forward<Args>(args)...);
  250|    989|        },
  251|    989|        std::forward<Args>(args)...);
  252|    989|  }
_ZZN6google8protobuf5Arena6CreateINS0_15UnknownFieldSetEJEEEPT_PS1_DpOT0_ENKUlDpOT_E_clIJEEEDaSC_:
  220|    989|        [arena](auto&&... args) {
  221|    989|          using Type = std::remove_const_t<T>;
  222|       |#ifdef __cpp_if_constexpr
  223|       |          // DefaultConstruct/CopyConstruct are optimized for messages, which
  224|       |          // are both arena constructible and destructor skippable and they
  225|       |          // assume much. Don't use these functions unless the invariants
  226|       |          // hold.
  227|       |          if constexpr (is_destructor_skippable<T>::value) {
  228|       |            constexpr auto construct_type = GetConstructType<T, Args&&...>();
  229|       |            // We delegate to DefaultConstruct/CopyConstruct where appropriate
  230|       |            // because protobuf generated classes have external templates for
  231|       |            // these functions for code size reasons. When `if constexpr` is not
  232|       |            // available always use the fallback.
  233|       |            if constexpr (construct_type == ConstructType::kDefault) {
  234|       |              return static_cast<Type*>(DefaultConstruct<Type>(arena));
  235|       |            } else if constexpr (construct_type == ConstructType::kCopy) {
  236|       |              return static_cast<Type*>(CopyConstruct<Type>(arena, &args...));
  237|       |            }
  238|       |          }
  239|       |#endif
  240|    989|          return CreateArenaCompatible<Type>(arena,
  241|    989|                                             std::forward<Args>(args)...);
  242|    989|        },
_ZN6google8protobuf5Arena21CreateArenaCompatibleINS0_15UnknownFieldSetEEEPT_PS1_:
  547|    989|  PROTOBUF_NDEBUG_INLINE static T* CreateArenaCompatible(Arena* arena) {
  548|    989|    static_assert(is_arena_constructable<T>::value,
  549|    989|                  "Can only construct types that are ArenaConstructable");
  550|    989|    if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|    989|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 989, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 989]
  |  |  |  Branch (365:63): [True: 989, False: 0]
  |  |  ------------------
  ------------------
  551|       |      // Generated arena constructor T(Arena*) is protected. Call via
  552|       |      // InternalHelper.
  553|    989|      return InternalHelper<T>::New();
  554|    989|    } else {
  555|      0|      return arena->DoCreateMessage<T>();
  556|      0|    }
  557|    989|  }
_ZN6google8protobuf5Arena14InternalHelperINS0_15UnknownFieldSetEE3NewEv:
  461|    989|    static inline PROTOBUF_ALWAYS_INLINE T* New() {
  462|    989|      return new T(nullptr);
  463|    989|    }

_ZN6google8protobuf8internal25TaggedAllocationPolicyPtrC2Ev:
   43|      4|  constexpr TaggedAllocationPolicyPtr() : policy_(0) {}
_ZN6google8protobuf8internal25TaggedAllocationPolicyPtr3getEv:
   53|      4|  AllocationPolicy* get() {
   54|      4|    return reinterpret_cast<AllocationPolicy*>(policy_ & kPtrMask);
   55|      4|  }
_ZNK6google8protobuf8internal25TaggedAllocationPolicyPtr3getEv:
   56|     21|  const AllocationPolicy* get() const {
   57|     21|    return reinterpret_cast<const AllocationPolicy*>(policy_ & kPtrMask);
   58|     21|  }
_ZNK6google8protobuf8internal25TaggedAllocationPolicyPtr27is_user_owned_initial_blockEv:
   66|      4|  bool is_user_owned_initial_block() const {
   67|      4|    return static_cast<bool>(get_mask<kUserOwnedInitialBlock>());
   68|      4|  }
_ZNK6google8protobuf8internal25TaggedAllocationPolicyPtr8get_maskILm1EEEmv:
   84|      4|  uintptr_t get_mask() const {
   85|      4|    return policy_ & kMask;
   86|      4|  }

_ZN6google8protobuf8internal14ArenaStringPtr13MutableNoCopyEPNS0_5ArenaE:
  182|  21.3k|std::string* ArenaStringPtr::MutableNoCopy(Arena* arena) {
  183|  21.3k|  ScopedCheckPtrInvariants check(&tagged_ptr_);
  184|  21.3k|  if (tagged_ptr_.IsMutable()) {
  ------------------
  |  Branch (184:7): [True: 922, False: 20.4k]
  ------------------
  185|    922|    return tagged_ptr_.Get();
  186|  20.4k|  } else {
  187|  20.4k|    ABSL_DCHECK(IsDefault());
  ------------------
  |  |   47|  20.4k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  20.4k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  40.8k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  20.4k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  40.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  40.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 20.4k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  20.4k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 20.4k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  20.4k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 20.4k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  40.8k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  40.8k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  188|       |    // Allocate empty. The contents are not relevant.
  189|  20.4k|    return NewString(arena);
  190|  20.4k|  }
  191|  21.3k|}
_ZN6google8protobuf8internal14ArenaStringPtr7DestroyEv:
  237|  27.6k|void ArenaStringPtr::Destroy() {
  238|  27.6k|  delete tagged_ptr_.GetIfAllocated();
  239|  27.6k|}
_ZN6google8protobuf8internal14ArenaStringPtr12ClearToEmptyEv:
  241|  16.6k|void ArenaStringPtr::ClearToEmpty() {
  242|  16.6k|  ScopedCheckPtrInvariants check(&tagged_ptr_);
  243|  16.6k|  if (IsDefault()) {
  ------------------
  |  Branch (243:7): [True: 16.6k, False: 81]
  ------------------
  244|       |    // Already set to default -- do nothing.
  245|  16.6k|  } else {
  246|       |    // Unconditionally mask away the tag.
  247|       |    //
  248|       |    // UpdateArenaString uses assign when capacity is larger than the new
  249|       |    // value, which is trivially true in the donated string case.
  250|       |    // const_cast<std::string*>(PtrValue<std::string>())->clear();
  251|     81|    tagged_ptr_.Get()->clear();
  252|     81|  }
  253|  16.6k|}
_ZN6google8protobuf8internal18EpsCopyInputStream15ReadArenaStringEPKcPNS1_14ArenaStringPtrEPNS0_5ArenaE:
  268|    529|                                                Arena* arena) {
  269|    529|  ScopedCheckPtrInvariants check(&s->tagged_ptr_);
  270|    529|  ABSL_DCHECK(arena != nullptr);
  ------------------
  |  |   47|    529|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    529|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  1.05k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    529|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  1.05k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  1.05k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 529, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    529|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 529]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    529|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 529, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  1.05k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  1.05k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  271|       |
  272|    529|  int size = ReadSize(&ptr);
  273|    529|  if (!ptr) return nullptr;
  ------------------
  |  Branch (273:7): [True: 0, False: 529]
  ------------------
  274|       |
  275|    529|  auto* str = s->NewString(arena);
  276|    529|  ptr = ReadString(ptr, size, str);
  277|    529|  GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|    529|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|    529|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 0, False: 529]
  |  |  |  |  ------------------
  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  | 1154|      0|  }
  |  |  ------------------
  ------------------
  278|    529|  return ptr;
  279|    529|}
arenastring.cc:_ZN6google8protobuf8internal12_GLOBAL__N_124ScopedCheckPtrInvariantsC2EPKNS1_15TaggedStringPtrE:
   70|  38.5k|  explicit ScopedCheckPtrInvariants(const TaggedStringPtr*) {}

_ZN6google8protobuf8internal15TaggedStringPtr12SetAllocatedEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  122|  20.4k|  inline std::string* SetAllocated(std::string* p) {
  123|  20.4k|    return TagAs(kAllocated, p);
  124|  20.4k|  }
_ZN6google8protobuf8internal15TaggedStringPtr15SetMutableArenaEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  136|    529|  inline std::string* SetMutableArena(std::string* p) {
  137|    529|    return TagAs(kMutableArena, p);
  138|    529|  }
_ZNK6google8protobuf8internal15TaggedStringPtr9IsMutableEv:
  141|  21.3k|  inline bool IsMutable() const { return as_int() & kMutableBit; }
_ZNK6google8protobuf8internal15TaggedStringPtr14GetIfAllocatedEv:
  148|  27.6k|  inline std::string* GetIfAllocated() const {
  149|  27.6k|    auto allocated = as_int() ^ kAllocated;
  150|  27.6k|    if (allocated & kMask) return nullptr;
  ------------------
  |  Branch (150:9): [True: 7.23k, False: 20.3k]
  ------------------
  151|       |
  152|  20.3k|    auto ptr = reinterpret_cast<std::string*>(allocated);
  153|  20.3k|    PROTOBUF_ASSUME(ptr != nullptr);
  ------------------
  |  |  941|  20.3k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  154|  20.3k|    return ptr;
  155|  27.6k|  }
_ZN6google8protobuf8internal15TaggedStringPtr14assert_alignedEPKv:
  186|  20.9k|  static inline void assert_aligned(const void* p) {
  187|  20.9k|    static_assert(kMask <= alignof(void*), "Pointer underaligned for bit mask");
  188|  20.9k|    static_assert(kMask <= alignof(std::string),
  189|  20.9k|                  "std::string underaligned for bit mask");
  190|  20.9k|    ABSL_DCHECK_EQ(reinterpret_cast<uintptr_t>(p) & kMask, 0UL);
  ------------------
  |  |   74|  20.9k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  20.9k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  20.9k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 20.9k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  20.9k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  191|  20.9k|  }
_ZN6google8protobuf8internal15TaggedStringPtr5TagAsENS2_4TypeEPNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  196|  20.9k|  inline std::string* TagAs(Type type, std::string* p) {
  197|  20.9k|    ABSL_DCHECK(p != nullptr);
  ------------------
  |  |   47|  20.9k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  20.9k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  41.9k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  20.9k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  41.9k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  41.9k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 20.9k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  20.9k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 20.9k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  20.9k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 20.9k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  41.9k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  41.9k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  198|  20.9k|    assert_aligned(p);
  199|  20.9k|    ptr_ = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(p) | type);
  200|  20.9k|    return p;
  201|  20.9k|  }
_ZNK6google8protobuf8internal14ArenaStringPtr9IsDefaultEv:
  392|  16.6k|  inline bool IsDefault() const { return tagged_ptr_.IsDefault(); }
_ZN6google8protobuf8internal14ArenaStringPtr9NewStringIJEEEPNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPNS0_5ArenaEDpOT_:
  396|  20.9k|  inline std::string* NewString(Arena* arena, Args&&... args) {
  397|  20.9k|    if (arena == nullptr) {
  ------------------
  |  Branch (397:9): [True: 20.4k, False: 529]
  ------------------
  398|  20.4k|      auto* s = new std::string(std::forward<Args>(args)...);
  399|  20.4k|      return tagged_ptr_.SetAllocated(s);
  400|  20.4k|    } else {
  401|    529|      auto* s = Arena::Create<std::string>(arena, std::forward<Args>(args)...);
  402|    529|      return tagged_ptr_.SetMutableArena(s);
  403|    529|    }
  404|  20.9k|  }

_ZN6google8protobuf8internal20ThreadSafeArenaStats19RecordAllocateStatsEPS2_mmm:
  169|     25|                                  size_t /*allocated*/, size_t /*wasted*/) {}
_ZN6google8protobuf8internal26ThreadSafeArenaStatsHandleC2EPNS1_20ThreadSafeArenaStatsE:
  178|      4|  explicit ThreadSafeArenaStatsHandle(ThreadSafeArenaStats*) {}
_ZN6google8protobuf8internal26ThreadSafeArenaStatsHandle12MutableStatsEv:
  182|     25|  ThreadSafeArenaStats* MutableStats() { return nullptr; }
_ZN6google8protobuf8internal6SampleEv:
  198|      4|inline ThreadSafeArenaStatsHandle Sample() {
  199|      4|  return ThreadSafeArenaStatsHandle(nullptr);
  200|      4|}

_ZN2pb11CppFeaturesD2Ev:
  187|    426|CppFeatures::~CppFeatures() {
  188|       |  // @@protoc_insertion_point(destructor:pb.CppFeatures)
  189|    426|  SharedDtor(*this);
  190|    426|}
_ZNK2pb11CppFeatures12GetClassDataEv:
  228|  1.97k|const ::google::protobuf::internal::ClassData* CppFeatures::GetClassData() const {
  229|  1.97k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  230|  1.97k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  231|  1.97k|  return _class_data_.base();
  232|  1.97k|}
_ZNK2pb11CppFeatures18_InternalSerializeEPhPN6google8protobuf2io19EpsCopyOutputStreamE:
  305|    207|            ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  306|    207|          const CppFeatures& this_ = *this;
  307|    207|#endif  // PROTOBUF_CUSTOM_VTABLE
  308|       |          // @@protoc_insertion_point(serialize_to_array_start:pb.CppFeatures)
  309|    207|          ::uint32_t cached_has_bits = 0;
  310|    207|          (void)cached_has_bits;
  311|       |
  312|    207|          cached_has_bits = this_._impl_._has_bits_[0];
  313|       |          // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
  314|    207|          if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (314:15): [True: 207, False: 0]
  ------------------
  315|    207|            target = stream->EnsureSpace(target);
  316|    207|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
  317|    207|                1, this_._internal_legacy_closed_enum(), target);
  318|    207|          }
  319|       |
  320|       |          // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
  321|    207|          if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (321:15): [True: 207, False: 0]
  ------------------
  322|    207|            target = stream->EnsureSpace(target);
  323|    207|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
  324|    207|                2, this_._internal_string_type(), target);
  325|    207|          }
  326|       |
  327|       |          // optional bool enum_name_uses_string_view = 3 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
  328|    207|          if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (328:15): [True: 207, False: 0]
  ------------------
  329|    207|            target = stream->EnsureSpace(target);
  330|    207|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
  331|    207|                3, this_._internal_enum_name_uses_string_view(), target);
  332|    207|          }
  333|       |
  334|    207|          if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  ------------------
  |  |  365|    207|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 207]
  |  |  |  Branch (365:54): [Folded, False: 207]
  |  |  |  Branch (365:63): [True: 0, False: 207]
  |  |  ------------------
  ------------------
  335|      0|            target =
  336|      0|                ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  337|      0|                    this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  338|      0|          }
  339|       |          // @@protoc_insertion_point(serialize_to_array_end:pb.CppFeatures)
  340|    207|          return target;
  341|    207|        }
_ZNK2pb11CppFeatures12ByteSizeLongEv:
  347|    410|        ::size_t CppFeatures::ByteSizeLong() const {
  348|    410|          const CppFeatures& this_ = *this;
  349|    410|#endif  // PROTOBUF_CUSTOM_VTABLE
  350|       |          // @@protoc_insertion_point(message_byte_size_start:pb.CppFeatures)
  351|    410|          ::size_t total_size = 0;
  352|       |
  353|    410|          ::uint32_t cached_has_bits = 0;
  354|       |          // Prevent compiler warnings about cached_has_bits being unused
  355|    410|          (void)cached_has_bits;
  356|       |
  357|    410|          ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  358|    410|          cached_has_bits = this_._impl_._has_bits_[0];
  359|    410|          if (cached_has_bits & 0x00000007u) {
  ------------------
  |  Branch (359:15): [True: 207, False: 203]
  ------------------
  360|       |            // optional .pb.CppFeatures.StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
  361|    207|            if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (361:17): [True: 207, False: 0]
  ------------------
  362|    207|              total_size += 1 +
  363|    207|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_string_type());
  364|    207|            }
  365|       |            // optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
  366|    207|            if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (366:17): [True: 207, False: 0]
  ------------------
  367|    207|              total_size += 2;
  368|    207|            }
  369|       |            // optional bool enum_name_uses_string_view = 3 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
  370|    207|            if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (370:17): [True: 207, False: 0]
  ------------------
  371|    207|              total_size += 2;
  372|    207|            }
  373|    207|          }
  374|    410|          return this_.MaybeComputeUnknownFieldsSize(total_size,
  375|    410|                                                     &this_._impl_._cached_size_);
  376|    410|        }
_ZN2pb11CppFeatures9MergeImplERN6google8protobuf11MessageLiteERKS3_:
  378|    653|void CppFeatures::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
  379|    653|  auto* const _this = static_cast<CppFeatures*>(&to_msg);
  380|    653|  auto& from = static_cast<const CppFeatures&>(from_msg);
  381|       |  // @@protoc_insertion_point(class_specific_merge_from_start:pb.CppFeatures)
  382|    653|  ABSL_DCHECK_NE(&from, _this);
  ------------------
  |  |   76|    653|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|    653|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    653|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 653]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    653|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  383|    653|  ::uint32_t cached_has_bits = 0;
  384|    653|  (void) cached_has_bits;
  385|       |
  386|    653|  cached_has_bits = from._impl_._has_bits_[0];
  387|    653|  if (cached_has_bits & 0x00000007u) {
  ------------------
  |  Branch (387:7): [True: 434, False: 219]
  ------------------
  388|    434|    if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (388:9): [True: 430, False: 4]
  ------------------
  389|    430|      _this->_impl_.string_type_ = from._impl_.string_type_;
  390|    430|    }
  391|    434|    if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (391:9): [True: 430, False: 4]
  ------------------
  392|    430|      _this->_impl_.legacy_closed_enum_ = from._impl_.legacy_closed_enum_;
  393|    430|    }
  394|    434|    if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (394:9): [True: 430, False: 4]
  ------------------
  395|    430|      _this->_impl_.enum_name_uses_string_view_ = from._impl_.enum_name_uses_string_view_;
  396|    430|    }
  397|    434|  }
  398|    653|  _this->_impl_._has_bits_[0] |= cached_has_bits;
  399|    653|  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  400|    653|}
_ZNK2pb11CppFeatures11GetMetadataEv:
  422|      2|::google::protobuf::Metadata CppFeatures::GetMetadata() const {
  423|      2|  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
  424|      2|}
_ZN2pb11CppFeatures10SharedDtorERN6google8protobuf11MessageLiteE:
  191|    426|inline void CppFeatures::SharedDtor(MessageLite& self) {
  192|    426|  CppFeatures& this_ = static_cast<CppFeatures&>(self);
  193|    426|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  194|    426|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|    426|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    426|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|    852|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    426|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    852|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    852|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 426, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    426|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 426]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    426|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 426, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    852|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    852|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  195|    426|  this_._impl_.~Impl_();
  196|    426|}

_ZN2pb11CppFeatures10descriptorEv:
  147|      2|  static const ::google::protobuf::Descriptor* descriptor() {
  148|      2|    return GetDescriptor();
  149|      2|  }
_ZN2pb11CppFeatures13GetDescriptorEv:
  150|      2|  static const ::google::protobuf::Descriptor* GetDescriptor() {
  151|      2|    return default_instance().GetMetadata().descriptor;
  152|      2|  }
_ZNK2pb11CppFeatures15has_string_typeEv:
  392|    203|inline bool CppFeatures::has_string_type() const {
  393|    203|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  394|    203|  return value;
  395|    203|}
_ZNK2pb11CppFeatures28_internal_legacy_closed_enumEv:
  382|    207|inline bool CppFeatures::_internal_legacy_closed_enum() const {
  383|    207|  ::google::protobuf::internal::TSanRead(&_impl_);
  384|    207|  return _impl_.legacy_closed_enum_;
  385|    207|}
_ZNK2pb11CppFeatures21_internal_string_typeEv:
  410|    414|inline ::pb::CppFeatures_StringType CppFeatures::_internal_string_type() const {
  411|    414|  ::google::protobuf::internal::TSanRead(&_impl_);
  412|    414|  return static_cast<::pb::CppFeatures_StringType>(_impl_.string_type_);
  413|    414|}
_ZN2pb11CppFeatures16default_instanceEv:
  156|    206|  static const CppFeatures& default_instance() {
  157|    206|    return *internal_default_instance();
  158|    206|  }
_ZN2pb11CppFeatures25internal_default_instanceEv:
  159|    206|  static inline const CppFeatures* internal_default_instance() {
  160|    206|    return reinterpret_cast<const CppFeatures*>(
  161|    206|        &_CppFeatures_default_instance_);
  162|    206|  }
_ZNK2pb11CppFeatures36_internal_enum_name_uses_string_viewEv:
  439|    207|inline bool CppFeatures::_internal_enum_name_uses_string_view() const {
  440|    207|  ::google::protobuf::internal::TSanRead(&_impl_);
  441|    207|  return _impl_.enum_name_uses_string_view_;
  442|    207|}

_ZN6google8protobuf14DescriptorPool6TablesC2Ev:
 1609|      2|DescriptorPool::Tables::Tables() {
 1610|      2|  well_known_types_.insert({
 1611|      2|      {"google.protobuf.DoubleValue", Descriptor::WELLKNOWNTYPE_DOUBLEVALUE},
 1612|      2|      {"google.protobuf.FloatValue", Descriptor::WELLKNOWNTYPE_FLOATVALUE},
 1613|      2|      {"google.protobuf.Int64Value", Descriptor::WELLKNOWNTYPE_INT64VALUE},
 1614|      2|      {"google.protobuf.UInt64Value", Descriptor::WELLKNOWNTYPE_UINT64VALUE},
 1615|      2|      {"google.protobuf.Int32Value", Descriptor::WELLKNOWNTYPE_INT32VALUE},
 1616|      2|      {"google.protobuf.UInt32Value", Descriptor::WELLKNOWNTYPE_UINT32VALUE},
 1617|      2|      {"google.protobuf.StringValue", Descriptor::WELLKNOWNTYPE_STRINGVALUE},
 1618|      2|      {"google.protobuf.BytesValue", Descriptor::WELLKNOWNTYPE_BYTESVALUE},
 1619|      2|      {"google.protobuf.BoolValue", Descriptor::WELLKNOWNTYPE_BOOLVALUE},
 1620|      2|      {"google.protobuf.Any", Descriptor::WELLKNOWNTYPE_ANY},
 1621|      2|      {"google.protobuf.FieldMask", Descriptor::WELLKNOWNTYPE_FIELDMASK},
 1622|      2|      {"google.protobuf.Duration", Descriptor::WELLKNOWNTYPE_DURATION},
 1623|      2|      {"google.protobuf.Timestamp", Descriptor::WELLKNOWNTYPE_TIMESTAMP},
 1624|      2|      {"google.protobuf.Value", Descriptor::WELLKNOWNTYPE_VALUE},
 1625|      2|      {"google.protobuf.ListValue", Descriptor::WELLKNOWNTYPE_LISTVALUE},
 1626|      2|      {"google.protobuf.Struct", Descriptor::WELLKNOWNTYPE_STRUCT},
 1627|      2|  });
 1628|      2|}
_ZN6google8protobuf20FileDescriptorTablesC2Ev:
 1632|      4|FileDescriptorTables::FileDescriptorTables() = default;
_ZN6google8protobuf14DescriptorPool6Tables13AddCheckpointEv:
 1645|      4|void DescriptorPool::Tables::AddCheckpoint() {
 1646|      4|  checkpoints_.emplace_back(this);
 1647|      4|}
_ZN6google8protobuf14DescriptorPool6Tables19ClearLastCheckpointEv:
 1649|      4|void DescriptorPool::Tables::ClearLastCheckpoint() {
 1650|      4|  ABSL_DCHECK(!checkpoints_.empty());
  ------------------
  |  |   47|      4|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      4|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1651|      4|  checkpoints_.pop_back();
 1652|      4|  if (checkpoints_.empty()) {
  ------------------
  |  Branch (1652:7): [True: 4, False: 0]
  ------------------
 1653|       |    // All checkpoints have been cleared: we can now commit all of the pending
 1654|       |    // data.
 1655|      4|    symbols_after_checkpoint_.clear();
 1656|      4|    files_after_checkpoint_.clear();
 1657|      4|    extensions_after_checkpoint_.clear();
 1658|      4|  }
 1659|      4|}
_ZN6google8protobuf14DescriptorPool6Tables9AddSymbolEN4absl12lts_2024011611string_viewENS0_6SymbolE:
 1929|    382|                                       Symbol symbol) {
 1930|    382|  ABSL_DCHECK_EQ(full_name, symbol.full_name());
  ------------------
  |  |   74|    382|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    382|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    382|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 382]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    382|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1931|    382|  if (symbols_by_name_.insert(symbol).second) {
  ------------------
  |  Branch (1931:7): [True: 382, False: 0]
  ------------------
 1932|    382|    symbols_after_checkpoint_.push_back(symbol);
 1933|    382|    return true;
 1934|    382|  } else {
 1935|      0|    return false;
 1936|      0|  }
 1937|    382|}
_ZN6google8protobuf20FileDescriptorTables19AddAliasUnderParentEPKvN4absl12lts_2024011611string_viewENS0_6SymbolE:
 1941|    487|                                               Symbol symbol) {
 1942|    487|  ABSL_DCHECK_EQ(name, symbol.parent_name_key().second);
  ------------------
  |  |   74|    487|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    487|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    487|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 487]
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 487]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    487|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1943|    487|  ABSL_DCHECK_EQ(parent, symbol.parent_name_key().first);
  ------------------
  |  |   74|    487|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    487|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    487|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 487]
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 487]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    487|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1944|    487|  return symbols_by_parent_.insert(symbol).second;
 1945|    487|}
_ZN6google8protobuf14DescriptorPool6Tables7AddFileEPKNS0_14FileDescriptorE:
 1947|      4|bool DescriptorPool::Tables::AddFile(const FileDescriptor* file) {
 1948|      4|  if (files_by_name_.insert(file).second) {
  ------------------
  |  Branch (1948:7): [True: 4, False: 0]
  ------------------
 1949|      4|    files_after_checkpoint_.push_back(file);
 1950|      4|    return true;
 1951|      4|  } else {
 1952|      0|    return false;
 1953|      0|  }
 1954|      4|}
_ZN6google8protobuf20FileDescriptorTables14FinalizeTablesEv:
 1956|      4|void FileDescriptorTables::FinalizeTables() {}
_ZN6google8protobuf20FileDescriptorTables16AddFieldByNumberEPNS0_15FieldDescriptorE:
 1958|    203|bool FileDescriptorTables::AddFieldByNumber(FieldDescriptor* field) {
 1959|       |  // Skip fields that are at the start of the sequence.
 1960|    203|  if (field->containing_type() != nullptr && field->number() >= 1 &&
  ------------------
  |  Branch (1960:7): [True: 203, False: 0]
  |  Branch (1960:46): [True: 203, False: 0]
  ------------------
 1961|    203|      field->number() <= field->containing_type()->sequential_field_limit_) {
  ------------------
  |  Branch (1961:7): [True: 100, False: 103]
  ------------------
 1962|    100|    if (field->is_extension()) {
  ------------------
  |  Branch (1962:9): [True: 0, False: 100]
  ------------------
 1963|       |      // Conflicts with the field that already exists in the sequential range.
 1964|      0|      return false;
 1965|      0|    }
 1966|       |    // Only return true if the field at that index matches. Otherwise it
 1967|       |    // conflicts with the existing field in the sequential range.
 1968|    100|    return field->containing_type()->field(field->number() - 1) == field;
 1969|    100|  }
 1970|       |
 1971|    103|  return fields_by_number_.insert(field).second;
 1972|    203|}
_ZN6google8protobuf20FileDescriptorTables20AddEnumValueByNumberEPNS0_19EnumValueDescriptorE:
 1974|    111|bool FileDescriptorTables::AddEnumValueByNumber(EnumValueDescriptor* value) {
 1975|       |  // Skip values that are at the start of the sequence.
 1976|    111|  const int base = value->type()->value(0)->number();
 1977|    111|  if (base <= value->number() &&
  ------------------
  |  Branch (1977:7): [True: 111, False: 0]
  ------------------
 1978|    111|      value->number() <=
  ------------------
  |  Branch (1978:7): [True: 77, False: 34]
  ------------------
 1979|    111|          static_cast<int64_t>(base) + value->type()->sequential_value_limit_)
 1980|     77|    return true;
 1981|     34|  return enum_values_by_number_.insert(value).second;
 1982|    111|}
_ZN6google8protobuf14DescriptorPool6Tables12AddExtensionEPKNS0_15FieldDescriptorE:
 1984|      1|bool DescriptorPool::Tables::AddExtension(const FieldDescriptor* field) {
 1985|      1|  auto it_inserted =
 1986|      1|      extensions_.insert({{field->containing_type(), field->number()}, field});
 1987|      1|  if (it_inserted.second) {
  ------------------
  |  Branch (1987:7): [True: 1, False: 0]
  ------------------
 1988|      1|    extensions_after_checkpoint_.push_back(it_inserted.first->first);
 1989|      1|    return true;
 1990|      1|  } else {
 1991|      0|    return false;
 1992|      0|  }
 1993|      1|}
_ZN6google8protobuf14DescriptorPool6Tables16InternFeatureSetEONS0_10FeatureSetE:
 1996|    207|    FeatureSet&& features) {
 1997|       |  // Use the serialized feature set as the cache key.  If multiple equivalent
 1998|       |  // feature sets serialize to different strings, that just bloats the cache a
 1999|       |  // little.
 2000|    207|  auto& result = feature_set_cache_[features.SerializeAsString()];
 2001|    207|  if (result == nullptr) {
  ------------------
  |  Branch (2001:7): [True: 4, False: 203]
  ------------------
 2002|      4|    result = absl::make_unique<FeatureSet>(std::move(features));
 2003|      4|  }
 2004|    207|  return result.get();
 2005|    207|}
_ZN6google8protobuf14DescriptorPool6Tables13AllocateBytesEi:
 2016|      3|void* DescriptorPool::Tables::AllocateBytes(int size) {
 2017|      3|  if (size == 0) return nullptr;
  ------------------
  |  Branch (2017:7): [True: 0, False: 3]
  ------------------
 2018|      3|  void* p = ::operator new(size + RoundUpTo<8>(sizeof(int)));
 2019|      3|  int* sizep = static_cast<int*>(p);
 2020|      3|  misc_allocs_.emplace_back(sizep);
 2021|      3|  *sizep = size;
 2022|      3|  return static_cast<char*>(p) + RoundUpTo<8>(sizeof(int));
 2023|      3|}
_ZN6google8protobuf14DescriptorPoolC2EPNS0_18DescriptorDatabaseEPNS1_14ErrorCollectorE:
 2113|      2|    : mutex_(new absl::Mutex),
 2114|      2|      fallback_database_(fallback_database),
 2115|      2|      default_error_collector_(error_collector),
 2116|      2|      underlay_(nullptr),
 2117|      2|      tables_(new Tables),
 2118|      2|      enforce_dependencies_(true),
 2119|      2|      lazily_build_dependencies_(false),
 2120|      2|      allow_unknown_(false),
 2121|      2|      enforce_weak_(false),
 2122|      2|      enforce_extension_declarations_(false),
 2123|      2|      disallow_enforce_utf8_(false),
 2124|      2|      deprecated_legacy_json_field_conflicts_(false) {}
_ZN6google8protobuf14DescriptorPool31InternalDontEnforceDependenciesEv:
 2147|      2|void DescriptorPool::InternalDontEnforceDependencies() {
 2148|      2|  enforce_dependencies_ = false;
 2149|      2|}
_ZN6google8protobuf14DescriptorPool23internal_generated_poolEv:
 2204|     57|DescriptorPool* DescriptorPool::internal_generated_pool() {
 2205|     57|  static DescriptorPool* generated_pool =
 2206|     57|      internal::OnShutdownDelete(NewGeneratedPool());
 2207|     57|  return generated_pool;
 2208|     57|}
_ZN6google8protobuf14DescriptorPool14generated_poolEv:
 2210|      2|const DescriptorPool* DescriptorPool::generated_pool() {
 2211|      2|  const DescriptorPool* pool = internal_generated_pool();
 2212|       |  // Ensure that descriptor.proto and cpp_features.proto get registered in the
 2213|       |  // generated pool. They're special cases because they're included in the full
 2214|       |  // runtime. We have to avoid registering it pre-main, because we need to
 2215|       |  // ensure that the linker --gc-sections step can strip out the full runtime if
 2216|       |  // it is unused.
 2217|      2|  DescriptorProto::descriptor();
 2218|      2|  pb::CppFeatures::descriptor();
 2219|      2|  return pool;
 2220|      2|}
_ZN6google8protobuf14DescriptorPool24InternalAddGeneratedFileEPKvi:
 2224|      6|    const void* encoded_file_descriptor, int size) {
 2225|       |  // So, this function is called in the process of initializing the
 2226|       |  // descriptors for generated proto classes.  Each generated .pb.cc file
 2227|       |  // has an internal procedure called AddDescriptors() which is called at
 2228|       |  // process startup, and that function calls this one in order to register
 2229|       |  // the raw bytes of the FileDescriptorProto representing the file.
 2230|       |  //
 2231|       |  // We do not actually construct the descriptor objects right away.  We just
 2232|       |  // hang on to the bytes until they are actually needed.  We actually construct
 2233|       |  // the descriptor the first time one of the following things happens:
 2234|       |  // * Someone calls a method like descriptor(), GetDescriptor(), or
 2235|       |  //   GetReflection() on the generated types, which requires returning the
 2236|       |  //   descriptor or an object based on it.
 2237|       |  // * Someone looks up the descriptor in DescriptorPool::generated_pool().
 2238|       |  //
 2239|       |  // Once one of these happens, the DescriptorPool actually parses the
 2240|       |  // FileDescriptorProto and generates a FileDescriptor (and all its children)
 2241|       |  // based on it.
 2242|       |  //
 2243|       |  // Note that FileDescriptorProto is itself a generated protocol message.
 2244|       |  // Therefore, when we parse one, we have to be very careful to avoid using
 2245|       |  // any descriptor-based operations, since this might cause infinite recursion
 2246|       |  // or deadlock.
 2247|      6|  absl::MutexLockMaybe lock(internal_generated_pool()->mutex_);
 2248|      6|  ABSL_CHECK(GeneratedDatabase()->Add(encoded_file_descriptor, size));
  ------------------
  |  |   41|      6|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     12|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      6|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     12|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     12|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 6, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      6|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 6]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     12|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 6, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 6]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 6]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     12|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     12|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2249|      6|}
_ZNK6google8protobuf14DescriptorPool14FindFileByNameEN4absl12lts_2024011611string_viewE:
 2259|      4|    absl::string_view name) const {
 2260|      4|  DeferredValidation deferred_validation(this);
 2261|      4|  const FileDescriptor* result = nullptr;
 2262|      4|  {
 2263|      4|    absl::MutexLockMaybe lock(mutex_);
 2264|      4|    if (fallback_database_ != nullptr) {
  ------------------
  |  Branch (2264:9): [True: 4, False: 0]
  ------------------
 2265|      4|      tables_->known_bad_symbols_.clear();
 2266|      4|      tables_->known_bad_files_.clear();
 2267|      4|    }
 2268|      4|    result = tables_->FindFile(name);
 2269|      4|    if (result != nullptr) return result;
  ------------------
  |  Branch (2269:9): [True: 0, False: 4]
  ------------------
 2270|      4|    if (underlay_ != nullptr) {
  ------------------
  |  Branch (2270:9): [True: 0, False: 4]
  ------------------
 2271|      0|      result = underlay_->FindFileByName(name);
 2272|      0|      if (result != nullptr) return result;
  ------------------
  |  Branch (2272:11): [True: 0, False: 0]
  ------------------
 2273|      0|    }
 2274|      4|    if (TryFindFileInFallbackDatabase(name, deferred_validation)) {
  ------------------
  |  Branch (2274:9): [True: 4, False: 0]
  ------------------
 2275|      4|      result = tables_->FindFile(name);
 2276|      4|    }
 2277|      4|  }
 2278|      4|  if (!deferred_validation.Validate()) {
  ------------------
  |  Branch (2278:7): [True: 0, False: 4]
  ------------------
 2279|      0|    return nullptr;
 2280|      0|  }
 2281|      4|  return result;
 2282|      4|}
_ZNK6google8protobuf10Descriptor34FindExtensionRangeContainingNumberEi:
 2665|      1|Descriptor::FindExtensionRangeContainingNumber(int number) const {
 2666|       |  // Linear search should be fine because we don't expect a message to have
 2667|       |  // more than a couple extension ranges.
 2668|      1|  for (int i = 0; i < extension_range_count(); i++) {
  ------------------
  |  Branch (2668:19): [True: 1, False: 0]
  ------------------
 2669|      1|    if (number >= extension_range(i)->start_number() &&
  ------------------
  |  Branch (2669:9): [True: 1, False: 0]
  ------------------
 2670|      1|        number < extension_range(i)->end_number()) {
  ------------------
  |  Branch (2670:9): [True: 1, False: 0]
  ------------------
 2671|      1|      return extension_range(i);
 2672|      1|    }
 2673|      1|  }
 2674|      0|  return nullptr;
 2675|      1|}
_ZNK6google8protobuf14DescriptorPool29TryFindFileInFallbackDatabaseEN4absl12lts_2024011611string_viewERNS1_18DeferredValidationE:
 2703|      4|    absl::string_view name, DeferredValidation& deferred_validation) const {
 2704|      4|  if (fallback_database_ == nullptr) return false;
  ------------------
  |  Branch (2704:7): [True: 0, False: 4]
  ------------------
 2705|       |
 2706|      4|  if (tables_->known_bad_files_.contains(name)) return false;
  ------------------
  |  Branch (2706:7): [True: 0, False: 4]
  ------------------
 2707|       |
 2708|       |  // NOINLINE to reduce the stack cost of the operation in the caller.
 2709|      4|  const auto find_file = [](DescriptorDatabase& database,
 2710|      4|                            absl::string_view filename,
 2711|      4|                            FileDescriptorProto& output) PROTOBUF_NOINLINE {
 2712|      4|    return database.FindFileByName(std::string(filename), &output);
 2713|      4|  };
 2714|       |
 2715|      4|  auto& file_proto = deferred_validation.CreateProto();
 2716|      4|  if (!find_file(*fallback_database_, name, file_proto) ||
  ------------------
  |  Branch (2716:7): [True: 0, False: 4]
  ------------------
 2717|      4|      BuildFileFromDatabase(file_proto, deferred_validation) == nullptr) {
  ------------------
  |  Branch (2717:7): [True: 0, False: 4]
  ------------------
 2718|      0|    tables_->known_bad_files_.emplace(name);
 2719|      0|    return false;
 2720|      0|  }
 2721|      4|  return true;
 2722|      4|}
_ZNK6google8protobuf15FieldDescriptor19is_map_message_typeEv:
 2816|   172k|bool FieldDescriptor::is_map_message_type() const {
 2817|   172k|  return message_type()->options().map_entry();
 2818|   172k|}
_ZNK6google8protobuf15FieldDescriptor11is_requiredEv:
 3945|   392k|bool FieldDescriptor::is_required() const {
 3946|   392k|  return features().field_presence() == FeatureSet::LEGACY_REQUIRED;
 3947|   392k|}
_ZNK6google8protobuf10Descriptor15GetLocationPathEPNSt3__16vectorIiNS2_9allocatorIiEEEE:
 4058|    396|void Descriptor::GetLocationPath(std::vector<int>* output) const {
 4059|    396|  if (containing_type()) {
  ------------------
  |  Branch (4059:7): [True: 47, False: 349]
  ------------------
 4060|     47|    containing_type()->GetLocationPath(output);
 4061|     47|    output->push_back(DescriptorProto::kNestedTypeFieldNumber);
 4062|     47|    output->push_back(index());
 4063|    349|  } else {
 4064|    349|    output->push_back(FileDescriptorProto::kMessageTypeFieldNumber);
 4065|    349|    output->push_back(index());
 4066|    349|  }
 4067|    396|}
_ZNK6google8protobuf15FieldDescriptor15GetLocationPathEPNSt3__16vectorIiNS2_9allocatorIiEEEE:
 4069|    203|void FieldDescriptor::GetLocationPath(std::vector<int>* output) const {
 4070|    203|  if (is_extension()) {
  ------------------
  |  Branch (4070:7): [True: 1, False: 202]
  ------------------
 4071|      1|    if (extension_scope() == nullptr) {
  ------------------
  |  Branch (4071:9): [True: 1, False: 0]
  ------------------
 4072|      1|      output->push_back(FileDescriptorProto::kExtensionFieldNumber);
 4073|      1|      output->push_back(index());
 4074|      1|    } else {
 4075|      0|      extension_scope()->GetLocationPath(output);
 4076|      0|      output->push_back(DescriptorProto::kExtensionFieldNumber);
 4077|      0|      output->push_back(index());
 4078|      0|    }
 4079|    202|  } else {
 4080|    202|    containing_type()->GetLocationPath(output);
 4081|    202|    output->push_back(DescriptorProto::kFieldFieldNumber);
 4082|    202|    output->push_back(index());
 4083|    202|  }
 4084|    203|}
_ZNK6google8protobuf15OneofDescriptor15GetLocationPathEPNSt3__16vectorIiNS2_9allocatorIiEEEE:
 4086|      1|void OneofDescriptor::GetLocationPath(std::vector<int>* output) const {
 4087|      1|  containing_type()->GetLocationPath(output);
 4088|      1|  output->push_back(DescriptorProto::kOneofDeclFieldNumber);
 4089|      1|  output->push_back(index());
 4090|      1|}
_ZNK6google8protobuf10Descriptor14ExtensionRange15GetLocationPathEPNSt3__16vectorIiNS3_9allocatorIiEEEE:
 4093|     14|    std::vector<int>* output) const {
 4094|     14|  containing_type()->GetLocationPath(output);
 4095|     14|  output->push_back(DescriptorProto::kExtensionRangeFieldNumber);
 4096|     14|  output->push_back(index());
 4097|     14|}
_ZNK6google8protobuf14EnumDescriptor15GetLocationPathEPNSt3__16vectorIiNS2_9allocatorIiEEEE:
 4099|    131|void EnumDescriptor::GetLocationPath(std::vector<int>* output) const {
 4100|    131|  if (containing_type()) {
  ------------------
  |  Branch (4100:7): [True: 91, False: 40]
  ------------------
 4101|     91|    containing_type()->GetLocationPath(output);
 4102|     91|    output->push_back(DescriptorProto::kEnumTypeFieldNumber);
 4103|     91|    output->push_back(index());
 4104|     91|  } else {
 4105|     40|    output->push_back(FileDescriptorProto::kEnumTypeFieldNumber);
 4106|     40|    output->push_back(index());
 4107|     40|  }
 4108|    131|}
_ZNK6google8protobuf19EnumValueDescriptor15GetLocationPathEPNSt3__16vectorIiNS2_9allocatorIiEEEE:
 4110|    111|void EnumValueDescriptor::GetLocationPath(std::vector<int>* output) const {
 4111|    111|  type()->GetLocationPath(output);
 4112|    111|  output->push_back(EnumDescriptorProto::kValueFieldNumber);
 4113|    111|  output->push_back(index());
 4114|    111|}
_ZNK6google8protobuf14DescriptorPool21BuildFileFromDatabaseERKNS0_19FileDescriptorProtoERNS1_18DeferredValidationE:
 4740|      4|    DeferredValidation& deferred_validation) const {
 4741|      4|  mutex_->AssertHeld();
 4742|      4|  build_started_ = true;
 4743|      4|  if (tables_->known_bad_files_.contains(proto.name())) {
  ------------------
  |  Branch (4743:7): [True: 0, False: 4]
  ------------------
 4744|      0|    return nullptr;
 4745|      0|  }
 4746|      4|  const FileDescriptor* result;
 4747|      4|  const auto build_file = [&] {
 4748|      4|    result = DescriptorBuilder::New(this, tables_.get(), deferred_validation,
 4749|      4|                                    default_error_collector_)
 4750|      4|                 ->BuildFile(proto);
 4751|      4|  };
 4752|      4|  if (dispatcher_ != nullptr) {
  ------------------
  |  Branch (4752:7): [True: 0, False: 4]
  ------------------
 4753|      0|    (*dispatcher_)(build_file);
 4754|      4|  } else {
 4755|      4|    build_file();
 4756|      4|  }
 4757|      4|  if (result == nullptr) {
  ------------------
  |  Branch (4757:7): [True: 0, False: 4]
  ------------------
 4758|      0|    tables_->known_bad_files_.insert(proto.name());
 4759|      0|  }
 4760|      4|  return result;
 4761|      4|}
_ZN6google8protobuf17DescriptorBuilderC2EPKNS0_14DescriptorPoolEPNS2_6TablesERNS2_18DeferredValidationEPNS2_14ErrorCollectorE:
 4797|      4|    : pool_(pool),
 4798|      4|      tables_(tables),
 4799|      4|      deferred_validation_(deferred_validation),
 4800|      4|      error_collector_(error_collector),
 4801|      4|      had_errors_(false),
 4802|      4|      possible_undeclared_dependency_(nullptr),
 4803|      4|      undefine_resolved_name_("") {
 4804|       |  // Ensure that any lazily loaded static initializers from the generated pool
 4805|       |  // (e.g. from bootstrapped protos) are run before building any descriptors. We
 4806|       |  // have to avoid registering these pre-main, because we need to ensure that
 4807|       |  // the linker --gc-sections step can strip out the full runtime if it is
 4808|       |  // unused.
 4809|      4|  PROTOBUF_UNUSED static std::true_type lazy_register =
  ------------------
  |  |  620|      4|#define PROTOBUF_UNUSED [[maybe_unused]]
  ------------------
 4810|      4|      (internal::ExtensionSet::RegisterMessageExtension(
 4811|      4|           &FeatureSet::default_instance(), pb::cpp.number(),
 4812|      4|           FieldDescriptor::TYPE_MESSAGE, false, false,
 4813|      4|           &pb::CppFeatures::default_instance(),
 4814|      4|           nullptr,
 4815|      4|           internal::LazyAnnotation::kUndefined),
 4816|      4|       std::true_type{});
 4817|      4|}
_ZN6google8protobuf17DescriptorBuilderD2Ev:
 4819|      4|DescriptorBuilder::~DescriptorBuilder() = default;
_ZN6google8protobuf17DescriptorBuilder32FindSymbolNotEnforcingDepsHelperEPKNS0_14DescriptorPoolEN4absl12lts_2024011611string_viewEb:
 4916|     92|    const DescriptorPool* pool, const absl::string_view name, bool build_it) {
 4917|       |  // If we are looking at an underlay, we must lock its mutex_, since we are
 4918|       |  // accessing the underlay's tables_ directly.
 4919|     92|  absl::MutexLockMaybe lock((pool == pool_) ? nullptr : pool->mutex_);
  ------------------
  |  Branch (4919:29): [True: 92, False: 0]
  ------------------
 4920|       |
 4921|     92|  Symbol result = pool->tables_->FindSymbol(name);
 4922|     92|  if (result.IsNull() && pool->underlay_ != nullptr) {
  ------------------
  |  Branch (4922:7): [True: 0, False: 92]
  |  Branch (4922:26): [True: 0, False: 0]
  ------------------
 4923|       |    // Symbol not found; check the underlay.
 4924|      0|    result = FindSymbolNotEnforcingDepsHelper(pool->underlay_, name);
 4925|      0|  }
 4926|       |
 4927|     92|  if (result.IsNull()) {
  ------------------
  |  Branch (4927:7): [True: 0, False: 92]
  ------------------
 4928|       |    // With lazily_build_dependencies_, a symbol lookup at cross link time is
 4929|       |    // not guaranteed to be successful. In most cases, build_it will be false,
 4930|       |    // which intentionally prevents us from building an import until it's
 4931|       |    // actually needed. In some cases, like registering an extension, we want
 4932|       |    // to build the file containing the symbol, and build_it will be set.
 4933|       |    // Also, build_it will be true when !lazily_build_dependencies_, to provide
 4934|       |    // better error reporting of missing dependencies.
 4935|      0|    if (build_it &&
  ------------------
  |  Branch (4935:9): [True: 0, False: 0]
  ------------------
 4936|      0|        pool->TryFindSymbolInFallbackDatabase(name, deferred_validation_)) {
  ------------------
  |  Branch (4936:9): [True: 0, False: 0]
  ------------------
 4937|      0|      result = pool->tables_->FindSymbol(name);
 4938|      0|    }
 4939|      0|  }
 4940|       |
 4941|     92|  return result;
 4942|     92|}
_ZN6google8protobuf17DescriptorBuilder26FindSymbolNotEnforcingDepsEN4absl12lts_2024011611string_viewEb:
 4945|     92|    const absl::string_view name, bool build_it) {
 4946|     92|  Symbol result = FindSymbolNotEnforcingDepsHelper(pool_, name, build_it);
 4947|       |  // Only find symbols which were defined in this file or one of its
 4948|       |  // dependencies.
 4949|     92|  const FileDescriptor* file = result.GetFile();
 4950|     92|  if ((file == file_ || dependencies_.contains(file)) && !result.IsPackage()) {
  ------------------
  |  Branch (4950:8): [True: 91, False: 1]
  |  Branch (4950:25): [True: 0, False: 1]
  |  Branch (4950:58): [True: 91, False: 0]
  ------------------
 4951|     91|    unused_dependency_.erase(file);
 4952|     91|  }
 4953|     92|  return result;
 4954|     92|}
_ZN6google8protobuf17DescriptorBuilder10FindSymbolEN4absl12lts_2024011611string_viewEb:
 4957|     92|                                     bool build_it) {
 4958|     92|  Symbol result = FindSymbolNotEnforcingDeps(name, build_it);
 4959|       |
 4960|     92|  if (result.IsNull()) return result;
  ------------------
  |  Branch (4960:7): [True: 0, False: 92]
  ------------------
 4961|       |
 4962|     92|  if (!pool_->enforce_dependencies_) {
  ------------------
  |  Branch (4962:7): [True: 92, False: 0]
  ------------------
 4963|       |    // Hack for CompilerUpgrader, and also used for lazily_build_dependencies_
 4964|     92|    return result;
 4965|     92|  }
 4966|       |
 4967|       |  // Only find symbols which were defined in this file or one of its
 4968|       |  // dependencies.
 4969|      0|  const FileDescriptor* file = result.GetFile();
 4970|      0|  if (file == file_ || dependencies_.contains(file)) {
  ------------------
  |  Branch (4970:7): [True: 0, False: 0]
  |  Branch (4970:24): [True: 0, False: 0]
  ------------------
 4971|      0|    return result;
 4972|      0|  }
 4973|       |
 4974|      0|  if (result.IsPackage()) {
  ------------------
  |  Branch (4974:7): [True: 0, False: 0]
  ------------------
 4975|       |    // Arg, this is overcomplicated.  The symbol is a package name.  It could
 4976|       |    // be that the package was defined in multiple files.  result.GetFile()
 4977|       |    // returns the first file we saw that used this package.  We've determined
 4978|       |    // that that file is not a direct dependency of the file we are currently
 4979|       |    // building, but it could be that some other file which *is* a direct
 4980|       |    // dependency also defines the same package.  We can't really rule out this
 4981|       |    // symbol unless none of the dependencies define it.
 4982|      0|    if (IsInPackage(file_, name)) return result;
  ------------------
  |  Branch (4982:9): [True: 0, False: 0]
  ------------------
 4983|      0|    for (const auto* dep : dependencies_) {
  ------------------
  |  Branch (4983:26): [True: 0, False: 0]
  ------------------
 4984|       |      // Note:  A dependency may be nullptr if it was not found or had errors.
 4985|      0|      if (dep != nullptr && IsInPackage(dep, name)) return result;
  ------------------
  |  Branch (4985:11): [True: 0, False: 0]
  |  Branch (4985:29): [True: 0, False: 0]
  ------------------
 4986|      0|    }
 4987|      0|  }
 4988|       |
 4989|      0|  possible_undeclared_dependency_ = file;
 4990|      0|  possible_undeclared_dependency_name_ = std::string(name);
 4991|      0|  return Symbol();
 4992|      0|}
_ZN6google8protobuf17DescriptorBuilder25LookupSymbolNoPlaceholderEN4absl12lts_2024011611string_viewES4_NS1_11ResolveModeEb:
 4996|     92|    ResolveMode resolve_mode, bool build_it) {
 4997|     92|  possible_undeclared_dependency_ = nullptr;
 4998|     92|  undefine_resolved_name_.clear();
 4999|       |
 5000|     92|  if (!name.empty() && name[0] == '.') {
  ------------------
  |  Branch (5000:7): [True: 92, False: 0]
  |  Branch (5000:24): [True: 87, False: 5]
  ------------------
 5001|       |    // Fully-qualified name.
 5002|     87|    return FindSymbol(name.substr(1), build_it);
 5003|     87|  }
 5004|       |
 5005|       |  // If name is something like "Foo.Bar.baz", and symbols named "Foo" are
 5006|       |  // defined in multiple parent scopes, we only want to find "Bar.baz" in the
 5007|       |  // innermost one.  E.g., the following should produce an error:
 5008|       |  //   message Bar { message Baz {} }
 5009|       |  //   message Foo {
 5010|       |  //     message Bar {
 5011|       |  //     }
 5012|       |  //     optional Bar.Baz baz = 1;
 5013|       |  //   }
 5014|       |  // So, we look for just "Foo" first, then look for "Bar.baz" within it if
 5015|       |  // found.
 5016|      5|  std::string::size_type name_dot_pos = name.find_first_of('.');
 5017|      5|  absl::string_view first_part_of_name;
 5018|      5|  if (name_dot_pos == std::string::npos) {
  ------------------
  |  Branch (5018:7): [True: 5, False: 0]
  ------------------
 5019|      5|    first_part_of_name = name;
 5020|      5|  } else {
 5021|      0|    first_part_of_name = name.substr(0, name_dot_pos);
 5022|      0|  }
 5023|       |
 5024|      5|  std::string scope_to_try(relative_to);
 5025|       |
 5026|      5|  while (true) {
  ------------------
  |  Branch (5026:10): [True: 5, Folded]
  ------------------
 5027|       |    // Chop off the last component of the scope.
 5028|      5|    std::string::size_type dot_pos = scope_to_try.find_last_of('.');
 5029|      5|    if (dot_pos == std::string::npos) {
  ------------------
  |  Branch (5029:9): [True: 0, False: 5]
  ------------------
 5030|      0|      return FindSymbol(name, build_it);
 5031|      5|    } else {
 5032|      5|      scope_to_try.erase(dot_pos);
 5033|      5|    }
 5034|       |
 5035|       |    // Append ".first_part_of_name" and try to find.
 5036|      5|    std::string::size_type old_size = scope_to_try.size();
 5037|      5|    absl::StrAppend(&scope_to_try, ".", first_part_of_name);
 5038|      5|    Symbol result = FindSymbol(scope_to_try, build_it);
 5039|      5|    if (!result.IsNull()) {
  ------------------
  |  Branch (5039:9): [True: 5, False: 0]
  ------------------
 5040|      5|      if (first_part_of_name.size() < name.size()) {
  ------------------
  |  Branch (5040:11): [True: 0, False: 5]
  ------------------
 5041|       |        // name is a compound symbol, of which we only found the first part.
 5042|       |        // Now try to look up the rest of it.
 5043|      0|        if (result.IsAggregate()) {
  ------------------
  |  Branch (5043:13): [True: 0, False: 0]
  ------------------
 5044|      0|          absl::StrAppend(&scope_to_try,
 5045|      0|                          name.substr(first_part_of_name.size()));
 5046|      0|          result = FindSymbol(scope_to_try, build_it);
 5047|      0|          if (result.IsNull()) {
  ------------------
  |  Branch (5047:15): [True: 0, False: 0]
  ------------------
 5048|      0|            undefine_resolved_name_ = scope_to_try;
 5049|      0|          }
 5050|      0|          return result;
 5051|      0|        } else {
 5052|       |          // We found a symbol but it's not an aggregate.  Continue the loop.
 5053|      0|        }
 5054|      5|      } else {
 5055|      5|        if (resolve_mode == LOOKUP_TYPES && !result.IsType()) {
  ------------------
  |  Branch (5055:13): [True: 0, False: 5]
  |  Branch (5055:45): [True: 0, False: 0]
  ------------------
 5056|       |          // We found a symbol but it's not a type.  Continue the loop.
 5057|      5|        } else {
 5058|      5|          return result;
 5059|      5|        }
 5060|      5|      }
 5061|      5|    }
 5062|       |
 5063|       |    // Not found.  Remove the name so we can try again.
 5064|      0|    scope_to_try.erase(old_size);
 5065|      0|  }
 5066|      5|}
_ZN6google8protobuf17DescriptorBuilder12LookupSymbolEN4absl12lts_2024011611string_viewES4_NS0_14DescriptorPool15PlaceholderTypeENS1_11ResolveModeEb:
 5071|     87|    bool build_it) {
 5072|     87|  Symbol result =
 5073|     87|      LookupSymbolNoPlaceholder(name, relative_to, resolve_mode, build_it);
 5074|     87|  if (result.IsNull() && pool_->allow_unknown_) {
  ------------------
  |  Branch (5074:7): [True: 0, False: 87]
  |  Branch (5074:26): [True: 0, False: 0]
  ------------------
 5075|       |    // Not found, but AllowUnknownDependencies() is enabled.  Return a
 5076|       |    // placeholder instead.
 5077|      0|    result = pool_->NewPlaceholderWithMutexHeld(name, placeholder_type);
 5078|      0|  }
 5079|     87|  return result;
 5080|     87|}
_ZN6google8protobuf17DescriptorBuilder9AddSymbolEN4absl12lts_2024011611string_viewEPKvS4_RKNS0_7MessageENS0_6SymbolE:
 5269|    376|                                  const Message& proto, Symbol symbol) {
 5270|       |  // If the caller passed nullptr for the parent, the symbol is at file scope.
 5271|       |  // Use its file as the parent instead.
 5272|    376|  if (parent == nullptr) parent = file_;
  ------------------
  |  Branch (5272:7): [True: 72, False: 304]
  ------------------
 5273|       |
 5274|    376|  if (absl::StrContains(full_name, '\0')) {
  ------------------
  |  Branch (5274:7): [True: 0, False: 376]
  ------------------
 5275|      0|    AddError(full_name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 5276|      0|      return absl::StrCat("\"", full_name, "\" contains null character.");
 5277|      0|    });
 5278|      0|    return false;
 5279|      0|  }
 5280|    376|  if (tables_->AddSymbol(full_name, symbol)) {
  ------------------
  |  Branch (5280:7): [True: 376, False: 0]
  ------------------
 5281|    376|    if (!file_tables_->AddAliasUnderParent(parent, name, symbol)) {
  ------------------
  |  Branch (5281:9): [True: 0, False: 376]
  ------------------
 5282|       |      // This is only possible if there was already an error adding something of
 5283|       |      // the same name.
 5284|      0|      if (!had_errors_) {
  ------------------
  |  Branch (5284:11): [True: 0, False: 0]
  ------------------
 5285|      0|        ABSL_DLOG(FATAL) << "\"" << full_name
  ------------------
  |  |   40|      0|#define ABSL_DLOG(severity) ABSL_LOG_INTERNAL_DLOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   41|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, false) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   42|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5286|      0|                         << "\" not previously defined in "
 5287|      0|                            "symbols_by_name_, but was defined in "
 5288|      0|                            "symbols_by_parent_; this shouldn't be possible.";
 5289|      0|      }
 5290|      0|      return false;
 5291|      0|    }
 5292|    376|    return true;
 5293|    376|  } else {
 5294|      0|    const FileDescriptor* other_file = tables_->FindSymbol(full_name).GetFile();
 5295|      0|    if (other_file == file_) {
  ------------------
  |  Branch (5295:9): [True: 0, False: 0]
  ------------------
 5296|      0|      std::string::size_type dot_pos = full_name.find_last_of('.');
 5297|      0|      if (dot_pos == std::string::npos) {
  ------------------
  |  Branch (5297:11): [True: 0, False: 0]
  ------------------
 5298|      0|        AddError(full_name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 5299|      0|          return absl::StrCat("\"", full_name, "\" is already defined.");
 5300|      0|        });
 5301|      0|      } else {
 5302|      0|        AddError(full_name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 5303|      0|          return absl::StrCat("\"", full_name.substr(dot_pos + 1),
 5304|      0|                              "\" is already defined in \"",
 5305|      0|                              full_name.substr(0, dot_pos), "\".");
 5306|      0|        });
 5307|      0|      }
 5308|      0|    } else {
 5309|       |      // Symbol seems to have been defined in a different file.
 5310|      0|      AddError(full_name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 5311|      0|        return absl::StrCat(
 5312|      0|            "\"", full_name, "\" is already defined in file \"",
 5313|      0|            (other_file == nullptr ? "null" : other_file->name()), "\".");
 5314|      0|      });
 5315|      0|    }
 5316|      0|    return false;
 5317|      0|  }
 5318|    376|}
_ZN6google8protobuf17DescriptorBuilder10AddPackageEN4absl12lts_2024011611string_viewERKNS0_7MessageEPNS0_14FileDescriptorEb:
 5322|      7|                                   bool toplevel) {
 5323|      7|  if (absl::StrContains(name, '\0')) {
  ------------------
  |  Branch (5323:7): [True: 0, False: 7]
  ------------------
 5324|      0|    AddError(name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 5325|      0|      return absl::StrCat("\"", name, "\" contains null character.");
 5326|      0|    });
 5327|      0|    return;
 5328|      0|  }
 5329|       |
 5330|      7|  Symbol existing_symbol = tables_->FindSymbol(name);
 5331|       |  // It's OK to redefine a package.
 5332|      7|  if (existing_symbol.IsNull()) {
  ------------------
  |  Branch (5332:7): [True: 6, False: 1]
  ------------------
 5333|      6|    if (toplevel) {
  ------------------
  |  Branch (5333:9): [True: 3, False: 3]
  ------------------
 5334|       |      // It is the toplevel package name, so insert the descriptor directly.
 5335|      3|      tables_->AddSymbol(file->package(), Symbol(file));
 5336|      3|    } else {
 5337|      3|      auto* package = tables_->Allocate<Symbol::Subpackage>();
 5338|       |      // If the name is the package name, then it is already in the arena.
 5339|       |      // If not, copy it there. It came from the call to AddPackage below.
 5340|      3|      package->name_size = static_cast<int>(name.size());
 5341|      3|      package->file = file;
 5342|      3|      tables_->AddSymbol(name, Symbol(package));
 5343|      3|    }
 5344|       |    // Also add parent package, if any.
 5345|      6|    std::string::size_type dot_pos = name.find_last_of('.');
 5346|      6|    if (dot_pos == std::string::npos) {
  ------------------
  |  Branch (5346:9): [True: 3, False: 3]
  ------------------
 5347|       |      // No parents.
 5348|      3|      ValidateSymbolName(name, name, proto);
 5349|      3|    } else {
 5350|       |      // Has parent.
 5351|      3|      AddPackage(name.substr(0, dot_pos), proto, file, false);
 5352|      3|      ValidateSymbolName(name.substr(dot_pos + 1), name, proto);
 5353|      3|    }
 5354|      6|  } else if (!existing_symbol.IsPackage()) {
  ------------------
  |  Branch (5354:14): [True: 0, False: 1]
  ------------------
 5355|       |    // Symbol seems to have been defined in a different file.
 5356|      0|    const FileDescriptor* other_file = existing_symbol.GetFile();
 5357|      0|    AddError(name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 5358|      0|      return absl::StrCat("\"", name,
 5359|      0|                          "\" is already defined (as something other than "
 5360|      0|                          "a package) in file \"",
 5361|      0|                          (other_file == nullptr ? "null" : other_file->name()),
 5362|      0|                          "\".");
 5363|      0|    });
 5364|      0|  }
 5365|      7|}
_ZN6google8protobuf17DescriptorBuilder18ValidateSymbolNameEN4absl12lts_2024011611string_viewES4_RKNS0_7MessageE:
 5369|    382|                                           const Message& proto) {
 5370|    382|  if (name.empty()) {
  ------------------
  |  Branch (5370:7): [True: 0, False: 382]
  ------------------
 5371|      0|    AddError(full_name, proto, DescriptorPool::ErrorCollector::NAME,
 5372|      0|             "Missing name.");
 5373|    382|  } else {
 5374|  4.67k|    for (char character : name) {
  ------------------
  |  Branch (5374:25): [True: 4.67k, False: 382]
  ------------------
 5375|       |      // I don't trust isalnum() due to locales.  :(
 5376|  4.67k|      if ((character < 'a' || 'z' < character) &&
  ------------------
  |  Branch (5376:12): [True: 1.82k, False: 2.85k]
  |  Branch (5376:31): [True: 0, False: 2.85k]
  ------------------
 5377|  1.82k|          (character < 'A' || 'Z' < character) &&
  ------------------
  |  Branch (5377:12): [True: 57, False: 1.76k]
  |  Branch (5377:31): [True: 271, False: 1.49k]
  ------------------
 5378|    328|          (character < '0' || '9' < character) && (character != '_')) {
  ------------------
  |  Branch (5378:12): [True: 0, False: 328]
  |  Branch (5378:31): [True: 271, False: 57]
  |  Branch (5378:51): [True: 0, False: 271]
  ------------------
 5379|      0|        AddError(full_name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 5380|      0|          return absl::StrCat("\"", name, "\" is not a valid identifier.");
 5381|      0|        });
 5382|      0|        return;
 5383|      0|      }
 5384|  4.67k|    }
 5385|    382|  }
 5386|    382|}
_ZN6google8protobuf17DescriptorBuilder15AllocateOptionsERKNS0_19FileDescriptorProtoEPNS0_14FileDescriptorERNS0_8internal13FlatAllocatorE:
 5411|      4|                                        internal::FlatAllocator& alloc) {
 5412|      4|  std::vector<int> options_path;
 5413|      4|  options_path.push_back(FileDescriptorProto::kOptionsFieldNumber);
 5414|       |  // We add the dummy token so that LookupSymbol does the right thing.
 5415|      4|  auto options = AllocateOptionsImpl<FileDescriptor>(
 5416|      4|      absl::StrCat(descriptor->package(), ".dummy"), descriptor->name(), proto,
 5417|      4|      options_path, "google.protobuf.FileOptions", alloc);
 5418|      4|  descriptor->options_ = options;
 5419|      4|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5420|      4|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5421|      4|}
_ZN6google8protobuf17DescriptorBuilder15ResolveFeaturesERKNS0_19FileDescriptorProtoEPNS0_14FileDescriptorEPNS0_11FileOptionsERNS0_8internal13FlatAllocatorE:
 5593|      4|                                        internal::FlatAllocator& alloc) {
 5594|       |  // File descriptors always need their own merged feature set, even without
 5595|       |  // any explicit features.
 5596|      4|  ResolveFeaturesImpl(descriptor->edition(), proto, descriptor, options, alloc,
 5597|      4|                      DescriptorPool::ErrorCollector::EDITIONS,
 5598|      4|                      /*force_merge=*/true);
 5599|      4|}
_ZN6google8protobuf17DescriptorBuilder24PostProcessFieldFeaturesERNS0_15FieldDescriptorERKNS0_20FieldDescriptorProtoE:
 5602|    203|    FieldDescriptor& field, const FieldDescriptorProto& proto) {
 5603|       |  // TODO This can be replace by a runtime check in `is_required`
 5604|       |  // once the `label` getter is hidden.
 5605|    203|  if (field.features().field_presence() == FeatureSet::LEGACY_REQUIRED &&
  ------------------
  |  Branch (5605:7): [True: 2, False: 201]
  ------------------
 5606|      2|      field.label_ == FieldDescriptor::LABEL_OPTIONAL) {
  ------------------
  |  Branch (5606:7): [True: 0, False: 2]
  ------------------
 5607|      0|    field.label_ = FieldDescriptor::LABEL_REQUIRED;
 5608|      0|  }
 5609|       |  // TODO This can be replace by a runtime check of `is_delimited`
 5610|       |  // once the `TYPE_GROUP` value is removed.
 5611|    203|  if (field.type_ == FieldDescriptor::TYPE_MESSAGE &&
  ------------------
  |  Branch (5611:7): [True: 59, False: 144]
  ------------------
 5612|     59|      !field.containing_type()->options().map_entry() &&
  ------------------
  |  Branch (5612:7): [True: 59, False: 0]
  ------------------
 5613|     59|      field.features().message_encoding() == FeatureSet::DELIMITED) {
  ------------------
  |  Branch (5613:7): [True: 0, False: 59]
  ------------------
 5614|      0|    Symbol type =
 5615|      0|        LookupSymbol(proto.type_name(), field.full_name(),
 5616|      0|                     DescriptorPool::PLACEHOLDER_MESSAGE, LOOKUP_TYPES, false);
 5617|      0|    if (type.descriptor() == nullptr ||
  ------------------
  |  Branch (5617:9): [True: 0, False: 0]
  ------------------
 5618|      0|        !type.descriptor()->options().map_entry()) {
  ------------------
  |  Branch (5618:9): [True: 0, False: 0]
  ------------------
 5619|      0|      field.type_ = FieldDescriptor::TYPE_GROUP;
 5620|      0|    }
 5621|      0|  }
 5622|    203|}
_ZN6google8protobuf17DescriptorBuilder9BuildFileERKNS0_19FileDescriptorProtoE:
 5816|      4|    const FileDescriptorProto& proto) {
 5817|       |  // Ensure the generated pool has been lazily initialized.  This is most
 5818|       |  // important for protos that use C++-specific features, since that extension
 5819|       |  // is only registered lazily and we always parse options into the generated
 5820|       |  // pool.
 5821|      4|  if (pool_ != DescriptorPool::internal_generated_pool()) {
  ------------------
  |  Branch (5821:7): [True: 0, False: 4]
  ------------------
 5822|      0|    DescriptorPool::generated_pool();
 5823|      0|  }
 5824|       |
 5825|      4|  filename_ = proto.name();
 5826|       |
 5827|       |  // Check if the file already exists and is identical to the one being built.
 5828|       |  // Note:  This only works if the input is canonical -- that is, it
 5829|       |  //   fully-qualifies all type names, has no UninterpretedOptions, etc.
 5830|       |  //   This is fine, because this idempotency "feature" really only exists to
 5831|       |  //   accommodate one hack in the proto1->proto2 migration layer.
 5832|      4|  const FileDescriptor* existing_file = tables_->FindFile(filename_);
 5833|      4|  if (existing_file != nullptr) {
  ------------------
  |  Branch (5833:7): [True: 0, False: 4]
  ------------------
 5834|       |    // File already in pool.  Compare the existing one to the input.
 5835|      0|    if (ExistingFileMatchesProto(existing_file->edition(), existing_file,
  ------------------
  |  Branch (5835:9): [True: 0, False: 0]
  ------------------
 5836|      0|                                 proto)) {
 5837|       |      // They're identical.  Return the existing descriptor.
 5838|      0|      return existing_file;
 5839|      0|    }
 5840|       |
 5841|       |    // Not a match.  The error will be detected and handled later.
 5842|      0|  }
 5843|       |
 5844|       |  // Check to see if this file is already on the pending files list.
 5845|       |  // TODO:  Allow recursive imports?  It may not work with some
 5846|       |  //   (most?) programming languages.  E.g., in C++, a forward declaration
 5847|       |  //   of a type is not sufficient to allow it to be used even in a
 5848|       |  //   generated header file due to inlining.  This could perhaps be
 5849|       |  //   worked around using tricks involving inserting #include statements
 5850|       |  //   mid-file, but that's pretty ugly, and I'm pretty sure there are
 5851|       |  //   some languages out there that do not allow recursive dependencies
 5852|       |  //   at all.
 5853|      4|  for (size_t i = 0; i < tables_->pending_files_.size(); i++) {
  ------------------
  |  Branch (5853:22): [True: 0, False: 4]
  ------------------
 5854|      0|    if (tables_->pending_files_[i] == proto.name()) {
  ------------------
  |  Branch (5854:9): [True: 0, False: 0]
  ------------------
 5855|      0|      AddRecursiveImportError(proto, i);
 5856|      0|      return nullptr;
 5857|      0|    }
 5858|      0|  }
 5859|       |
 5860|      4|  static const int kMaximumPackageLength = 511;
 5861|      4|  if (proto.package().size() > kMaximumPackageLength) {
  ------------------
  |  Branch (5861:7): [True: 0, False: 4]
  ------------------
 5862|      0|    AddError(proto.package(), proto, DescriptorPool::ErrorCollector::NAME,
 5863|      0|             "Package name is too long");
 5864|      0|    return nullptr;
 5865|      0|  }
 5866|       |
 5867|       |  // If we have a fallback_database_, and we aren't doing lazy import building,
 5868|       |  // attempt to load all dependencies now, before checkpointing tables_.  This
 5869|       |  // avoids confusion with recursive checkpoints.
 5870|      4|  if (!pool_->lazily_build_dependencies_) {
  ------------------
  |  Branch (5870:7): [True: 0, False: 4]
  ------------------
 5871|      0|    if (pool_->fallback_database_ != nullptr) {
  ------------------
  |  Branch (5871:9): [True: 0, False: 0]
  ------------------
 5872|      0|      tables_->pending_files_.push_back(proto.name());
 5873|      0|      for (int i = 0; i < proto.dependency_size(); i++) {
  ------------------
  |  Branch (5873:23): [True: 0, False: 0]
  ------------------
 5874|      0|        if (tables_->FindFile(proto.dependency(i)) == nullptr &&
  ------------------
  |  Branch (5874:13): [True: 0, False: 0]
  |  Branch (5874:13): [True: 0, False: 0]
  ------------------
 5875|      0|            (pool_->underlay_ == nullptr ||
  ------------------
  |  Branch (5875:14): [True: 0, False: 0]
  ------------------
 5876|      0|             pool_->underlay_->FindFileByName(proto.dependency(i)) ==
  ------------------
  |  Branch (5876:14): [True: 0, False: 0]
  ------------------
 5877|      0|                 nullptr)) {
 5878|       |          // We don't care what this returns since we'll find out below anyway.
 5879|      0|          pool_->TryFindFileInFallbackDatabase(proto.dependency(i),
 5880|      0|                                               deferred_validation_);
 5881|      0|        }
 5882|      0|      }
 5883|      0|      tables_->pending_files_.pop_back();
 5884|      0|    }
 5885|      0|  }
 5886|       |
 5887|       |  // Checkpoint the tables so that we can roll back if something goes wrong.
 5888|      4|  tables_->AddCheckpoint();
 5889|       |
 5890|      4|  auto alloc = absl::make_unique<internal::FlatAllocator>();
 5891|      4|  PlanAllocationSize(proto, *alloc);
 5892|      4|  alloc->FinalizePlanning(tables_);
 5893|      4|  FileDescriptor* result = BuildFileImpl(proto, *alloc);
 5894|       |
 5895|      4|  file_tables_->FinalizeTables();
 5896|      4|  if (result) {
  ------------------
  |  Branch (5896:7): [True: 4, False: 0]
  ------------------
 5897|      4|    tables_->ClearLastCheckpoint();
 5898|      4|    result->finished_building_ = true;
 5899|      4|    alloc->ExpectConsumed();
 5900|      4|  } else {
 5901|      0|    tables_->RollbackToLastCheckpoint(deferred_validation_);
 5902|      0|  }
 5903|       |
 5904|      4|  return result;
 5905|      4|}
_ZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorE:
 5908|      4|    const FileDescriptorProto& proto, internal::FlatAllocator& alloc) {
 5909|      4|  FileDescriptor* result = alloc.AllocateArray<FileDescriptor>(1);
 5910|      4|  file_ = result;
 5911|       |
 5912|      4|  if (proto.has_edition()) {
  ------------------
  |  Branch (5912:7): [True: 0, False: 4]
  ------------------
 5913|      0|    file_->edition_ = proto.edition();
 5914|      4|  } else if (proto.syntax().empty() || proto.syntax() == "proto2") {
  ------------------
  |  Branch (5914:14): [True: 2, False: 2]
  |  Branch (5914:40): [True: 0, False: 2]
  ------------------
 5915|      2|    file_->edition_ = Edition::EDITION_PROTO2;
 5916|      2|  } else if (proto.syntax() == "proto3") {
  ------------------
  |  Branch (5916:14): [True: 2, False: 0]
  ------------------
 5917|      2|    file_->edition_ = Edition::EDITION_PROTO3;
 5918|      2|  } else {
 5919|      0|    file_->edition_ = Edition::EDITION_UNKNOWN;
 5920|      0|    AddError(proto.name(), proto, DescriptorPool::ErrorCollector::OTHER, [&] {
 5921|      0|      return absl::StrCat("Unrecognized syntax: ", proto.syntax());
 5922|      0|    });
 5923|      0|  }
 5924|       |
 5925|      4|  const FeatureSetDefaults& defaults =
 5926|      4|      pool_->feature_set_defaults_spec_ == nullptr
  ------------------
  |  Branch (5926:7): [True: 4, False: 0]
  ------------------
 5927|      4|          ? GetCppFeatureSetDefaults()
 5928|      4|          : *pool_->feature_set_defaults_spec_;
 5929|       |
 5930|      4|  absl::StatusOr<FeatureResolver> feature_resolver =
 5931|      4|      FeatureResolver::Create(file_->edition_, defaults);
 5932|      4|  if (!feature_resolver.ok()) {
  ------------------
  |  Branch (5932:7): [True: 0, False: 4]
  ------------------
 5933|      0|    AddError(proto.name(), proto, DescriptorPool::ErrorCollector::EDITIONS,
 5934|      0|             [&] { return std::string(feature_resolver.status().message()); });
 5935|      4|  } else {
 5936|      4|    feature_resolver_.emplace(std::move(feature_resolver).value());
 5937|      4|  }
 5938|       |
 5939|      4|  result->is_placeholder_ = false;
 5940|      4|  result->finished_building_ = false;
 5941|      4|  SourceCodeInfo* info = nullptr;
 5942|      4|  if (proto.has_source_code_info()) {
  ------------------
  |  Branch (5942:7): [True: 0, False: 4]
  ------------------
 5943|      0|    info = alloc.AllocateArray<SourceCodeInfo>(1);
 5944|      0|    *info = proto.source_code_info();
 5945|      0|    result->source_code_info_ = info;
 5946|      4|  } else {
 5947|      4|    result->source_code_info_ = &SourceCodeInfo::default_instance();
 5948|      4|  }
 5949|       |
 5950|      4|  file_tables_ = alloc.AllocateArray<FileDescriptorTables>(1);
 5951|      4|  file_->tables_ = file_tables_;
 5952|       |
 5953|      4|  if (!proto.has_name()) {
  ------------------
  |  Branch (5953:7): [True: 0, False: 4]
  ------------------
 5954|      0|    AddError("", proto, DescriptorPool::ErrorCollector::OTHER,
 5955|      0|             "Missing field: FileDescriptorProto.name.");
 5956|      0|  }
 5957|       |
 5958|      4|  result->name_ = alloc.AllocateStrings(proto.name());
 5959|      4|  if (proto.has_package()) {
  ------------------
  |  Branch (5959:7): [True: 4, False: 0]
  ------------------
 5960|      4|    result->package_ = alloc.AllocateStrings(proto.package());
 5961|      4|  } else {
 5962|       |    // We cannot rely on proto.package() returning a valid string if
 5963|       |    // proto.has_package() is false, because we might be running at static
 5964|       |    // initialization time, in which case default values have not yet been
 5965|       |    // initialized.
 5966|      0|    result->package_ = alloc.AllocateStrings("");
 5967|      0|  }
 5968|      4|  result->pool_ = pool_;
 5969|       |
 5970|      4|  if (absl::StrContains(result->name(), '\0')) {
  ------------------
  |  Branch (5970:7): [True: 0, False: 4]
  ------------------
 5971|      0|    AddError(result->name(), proto, DescriptorPool::ErrorCollector::NAME, [&] {
 5972|      0|      return absl::StrCat("\"", result->name(), "\" contains null character.");
 5973|      0|    });
 5974|      0|    return nullptr;
 5975|      0|  }
 5976|       |
 5977|       |  // Add to tables.
 5978|      4|  if (!tables_->AddFile(result)) {
  ------------------
  |  Branch (5978:7): [True: 0, False: 4]
  ------------------
 5979|      0|    AddError(proto.name(), proto, DescriptorPool::ErrorCollector::OTHER,
 5980|      0|             "A file with this name is already in the pool.");
 5981|       |    // Bail out early so that if this is actually the exact same file, we
 5982|       |    // don't end up reporting that every single symbol is already defined.
 5983|      0|    return nullptr;
 5984|      0|  }
 5985|      4|  if (!result->package().empty()) {
  ------------------
  |  Branch (5985:7): [True: 4, False: 0]
  ------------------
 5986|      4|    if (std::count(result->package().begin(), result->package().end(), '.') >
  ------------------
  |  Branch (5986:9): [True: 0, False: 4]
  ------------------
 5987|      4|        kPackageLimit) {
 5988|      0|      AddError(result->package(), proto, DescriptorPool::ErrorCollector::NAME,
 5989|      0|               "Exceeds Maximum Package Depth");
 5990|      0|      return nullptr;
 5991|      0|    }
 5992|      4|    AddPackage(result->package(), proto, result, true);
 5993|      4|  }
 5994|       |
 5995|       |  // Make sure all dependencies are loaded.
 5996|      4|  absl::flat_hash_set<absl::string_view> seen_dependencies;
 5997|      4|  result->dependency_count_ = proto.dependency_size();
 5998|      4|  result->dependencies_ =
 5999|      4|      alloc.AllocateArray<const FileDescriptor*>(proto.dependency_size());
 6000|      4|  result->dependencies_once_ = nullptr;
 6001|      4|  unused_dependency_.clear();
 6002|      4|  absl::flat_hash_set<int> weak_deps;
 6003|      4|  for (int i = 0; i < proto.weak_dependency_size(); ++i) {
  ------------------
  |  Branch (6003:19): [True: 0, False: 4]
  ------------------
 6004|      0|    weak_deps.insert(proto.weak_dependency(i));
 6005|      0|  }
 6006|       |
 6007|      4|  bool need_lazy_deps = false;
 6008|      5|  for (int i = 0; i < proto.dependency_size(); i++) {
  ------------------
  |  Branch (6008:19): [True: 1, False: 4]
  ------------------
 6009|      1|    if (!seen_dependencies.insert(proto.dependency(i)).second) {
  ------------------
  |  Branch (6009:9): [True: 0, False: 1]
  ------------------
 6010|      0|      AddTwiceListedError(proto, i);
 6011|      0|    }
 6012|       |
 6013|      1|    const FileDescriptor* dependency = tables_->FindFile(proto.dependency(i));
 6014|      1|    if (dependency == nullptr && pool_->underlay_ != nullptr) {
  ------------------
  |  Branch (6014:9): [True: 0, False: 1]
  |  Branch (6014:34): [True: 0, False: 0]
  ------------------
 6015|      0|      dependency = pool_->underlay_->FindFileByName(proto.dependency(i));
 6016|      0|    }
 6017|       |
 6018|      1|    if (dependency == result) {
  ------------------
  |  Branch (6018:9): [True: 0, False: 1]
  ------------------
 6019|       |      // Recursive import.  dependency/result is not fully initialized, and it's
 6020|       |      // dangerous to try to do anything with it.  The recursive import error
 6021|       |      // will be detected and reported in DescriptorBuilder::BuildFile().
 6022|      0|      return nullptr;
 6023|      0|    }
 6024|       |
 6025|      1|    if (dependency == nullptr) {
  ------------------
  |  Branch (6025:9): [True: 0, False: 1]
  ------------------
 6026|      0|      if (!pool_->lazily_build_dependencies_) {
  ------------------
  |  Branch (6026:11): [True: 0, False: 0]
  ------------------
 6027|      0|        if (pool_->allow_unknown_ ||
  ------------------
  |  Branch (6027:13): [True: 0, False: 0]
  ------------------
 6028|      0|            (!pool_->enforce_weak_ && weak_deps.contains(i))) {
  ------------------
  |  Branch (6028:14): [True: 0, False: 0]
  |  Branch (6028:39): [True: 0, False: 0]
  ------------------
 6029|      0|          internal::FlatAllocator lazy_dep_alloc;
 6030|      0|          lazy_dep_alloc.PlanArray<FileDescriptor>(1);
 6031|      0|          lazy_dep_alloc.PlanArray<std::string>(1);
 6032|      0|          lazy_dep_alloc.FinalizePlanning(tables_);
 6033|      0|          dependency = pool_->NewPlaceholderFileWithMutexHeld(
 6034|      0|              proto.dependency(i), lazy_dep_alloc);
 6035|      0|        } else {
 6036|      0|          AddImportError(proto, i);
 6037|      0|        }
 6038|      0|      }
 6039|      1|    } else {
 6040|       |      // Add to unused_dependency_ to track unused imported files.
 6041|       |      // Note: do not track unused imported files for public import.
 6042|      1|      if (pool_->enforce_dependencies_ &&
  ------------------
  |  Branch (6042:11): [True: 0, False: 1]
  |  Branch (6042:11): [True: 0, False: 1]
  ------------------
 6043|      0|          (pool_->direct_input_files_.find(proto.name()) !=
  ------------------
  |  Branch (6043:11): [True: 0, False: 0]
  ------------------
 6044|      0|           pool_->direct_input_files_.end()) &&
 6045|      0|          (dependency->public_dependency_count() == 0)) {
  ------------------
  |  Branch (6045:11): [True: 0, False: 0]
  ------------------
 6046|      0|        unused_dependency_.insert(dependency);
 6047|      0|      }
 6048|      1|    }
 6049|       |
 6050|      1|    result->dependencies_[i] = dependency;
 6051|      1|    if (pool_->lazily_build_dependencies_ && !dependency) {
  ------------------
  |  Branch (6051:9): [True: 1, False: 0]
  |  Branch (6051:46): [True: 0, False: 1]
  ------------------
 6052|      0|      need_lazy_deps = true;
 6053|      0|    }
 6054|      1|  }
 6055|      4|  if (need_lazy_deps) {
  ------------------
  |  Branch (6055:7): [True: 0, False: 4]
  ------------------
 6056|      0|    int total_char_size = 0;
 6057|      0|    for (int i = 0; i < proto.dependency_size(); i++) {
  ------------------
  |  Branch (6057:21): [True: 0, False: 0]
  ------------------
 6058|      0|      if (result->dependencies_[i] == nullptr) {
  ------------------
  |  Branch (6058:11): [True: 0, False: 0]
  ------------------
 6059|      0|        total_char_size += static_cast<int>(proto.dependency(i).size());
 6060|      0|      }
 6061|      0|      ++total_char_size;  // For NUL char
 6062|      0|    }
 6063|       |
 6064|      0|    void* data = tables_->AllocateBytes(
 6065|      0|        static_cast<int>(sizeof(absl::once_flag)) + total_char_size);
 6066|      0|    result->dependencies_once_ = ::new (data) absl::once_flag{};
 6067|      0|    char* name_data = reinterpret_cast<char*>(result->dependencies_once_ + 1);
 6068|       |
 6069|      0|    for (int i = 0; i < proto.dependency_size(); i++) {
  ------------------
  |  Branch (6069:21): [True: 0, False: 0]
  ------------------
 6070|      0|      if (result->dependencies_[i] == nullptr) {
  ------------------
  |  Branch (6070:11): [True: 0, False: 0]
  ------------------
 6071|      0|        memcpy(name_data, proto.dependency(i).data(),
 6072|      0|               proto.dependency(i).size());
 6073|      0|        name_data += proto.dependency(i).size();
 6074|      0|      }
 6075|      0|      *name_data++ = '\0';
 6076|      0|    }
 6077|      0|  }
 6078|       |
 6079|       |  // Check public dependencies.
 6080|      4|  int public_dependency_count = 0;
 6081|      4|  result->public_dependencies_ =
 6082|      4|      alloc.AllocateArray<int>(proto.public_dependency_size());
 6083|      4|  for (int i = 0; i < proto.public_dependency_size(); i++) {
  ------------------
  |  Branch (6083:19): [True: 0, False: 4]
  ------------------
 6084|       |    // Only put valid public dependency indexes.
 6085|      0|    int index = proto.public_dependency(i);
 6086|      0|    if (index >= 0 && index < proto.dependency_size()) {
  ------------------
  |  Branch (6086:9): [True: 0, False: 0]
  |  Branch (6086:23): [True: 0, False: 0]
  ------------------
 6087|      0|      result->public_dependencies_[public_dependency_count++] = index;
 6088|       |      // Do not track unused imported files for public import.
 6089|       |      // Calling dependency(i) builds that file when doing lazy imports,
 6090|       |      // need to avoid doing this. Unused dependency detection isn't done
 6091|       |      // when building lazily, anyways.
 6092|      0|      if (!pool_->lazily_build_dependencies_) {
  ------------------
  |  Branch (6092:11): [True: 0, False: 0]
  ------------------
 6093|      0|        unused_dependency_.erase(result->dependency(index));
 6094|      0|      }
 6095|      0|    } else {
 6096|      0|      AddError(proto.name(), proto, DescriptorPool::ErrorCollector::OTHER,
 6097|      0|               "Invalid public dependency index.");
 6098|      0|    }
 6099|      0|  }
 6100|      4|  result->public_dependency_count_ = public_dependency_count;
 6101|       |
 6102|       |  // Build dependency set
 6103|      4|  dependencies_.clear();
 6104|       |  // We don't/can't do proper dependency error checking when
 6105|       |  // lazily_build_dependencies_, and calling dependency(i) will force
 6106|       |  // a dependency to be built, which we don't want.
 6107|      4|  if (!pool_->lazily_build_dependencies_) {
  ------------------
  |  Branch (6107:7): [True: 0, False: 4]
  ------------------
 6108|      0|    for (int i = 0; i < result->dependency_count(); i++) {
  ------------------
  |  Branch (6108:21): [True: 0, False: 0]
  ------------------
 6109|      0|      RecordPublicDependencies(result->dependency(i));
 6110|      0|    }
 6111|      0|  }
 6112|       |
 6113|       |  // Check weak dependencies.
 6114|      4|  int weak_dependency_count = 0;
 6115|      4|  result->weak_dependencies_ =
 6116|      4|      alloc.AllocateArray<int>(proto.weak_dependency_size());
 6117|      4|  for (int i = 0; i < proto.weak_dependency_size(); i++) {
  ------------------
  |  Branch (6117:19): [True: 0, False: 4]
  ------------------
 6118|      0|    int index = proto.weak_dependency(i);
 6119|      0|    if (index >= 0 && index < proto.dependency_size()) {
  ------------------
  |  Branch (6119:9): [True: 0, False: 0]
  |  Branch (6119:23): [True: 0, False: 0]
  ------------------
 6120|      0|      result->weak_dependencies_[weak_dependency_count++] = index;
 6121|      0|    } else {
 6122|      0|      AddError(proto.name(), proto, DescriptorPool::ErrorCollector::OTHER,
 6123|      0|               "Invalid weak dependency index.");
 6124|      0|    }
 6125|      0|  }
 6126|      4|  result->weak_dependency_count_ = weak_dependency_count;
 6127|       |
 6128|       |  // Convert children.
 6129|      4|  BUILD_ARRAY(proto, result, message_type, BuildMessage, nullptr);
  ------------------
  |  | 5627|      4|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|      4|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|      4|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|      4|      INPUT.NAME##_size());                                            \
  |  | 5631|     35|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 31, False: 4]
  |  |  ------------------
  |  | 5632|     31|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|     31|  }
  ------------------
 6130|      4|  BUILD_ARRAY(proto, result, enum_type, BuildEnum, nullptr);
  ------------------
  |  | 5627|      4|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|      4|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|      4|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|      4|      INPUT.NAME##_size());                                            \
  |  | 5631|      7|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 3, False: 4]
  |  |  ------------------
  |  | 5632|      3|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|      3|  }
  ------------------
 6131|      4|  BUILD_ARRAY(proto, result, service, BuildService, nullptr);
  ------------------
  |  | 5627|      4|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|      4|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|      4|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|      4|      INPUT.NAME##_size());                                            \
  |  | 5631|      4|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 0, False: 4]
  |  |  ------------------
  |  | 5632|      0|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|      0|  }
  ------------------
 6132|      4|  BUILD_ARRAY(proto, result, extension, BuildExtension, nullptr);
  ------------------
  |  | 5627|      4|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|      4|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|      4|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|      4|      INPUT.NAME##_size());                                            \
  |  | 5631|      5|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 1, False: 4]
  |  |  ------------------
  |  | 5632|      1|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|      1|  }
  ------------------
 6133|       |
 6134|       |  // Copy options.
 6135|      4|  AllocateOptions(proto, result, alloc);
 6136|       |
 6137|       |  // Note that the following steps must occur in exactly the specified order.
 6138|       |
 6139|       |  // Cross-link.
 6140|      4|  CrossLinkFile(result, proto);
 6141|       |
 6142|      4|  if (!message_hints_.empty()) {
  ------------------
  |  Branch (6142:7): [True: 0, False: 4]
  ------------------
 6143|      0|    SuggestFieldNumbers(result, proto);
 6144|      0|  }
 6145|       |
 6146|       |  // Interpret only the non-extension options first, including features and
 6147|       |  // their extensions.  This has to be done in two passes, since option
 6148|       |  // extensions defined in this file may have features attached to them.
 6149|      4|  if (!had_errors_) {
  ------------------
  |  Branch (6149:7): [True: 4, False: 0]
  ------------------
 6150|      4|    OptionInterpreter option_interpreter(this);
 6151|      4|    for (std::vector<OptionsToInterpret>::iterator iter =
 6152|      4|             options_to_interpret_.begin();
 6153|      4|         iter != options_to_interpret_.end(); ++iter) {
  ------------------
  |  Branch (6153:10): [True: 0, False: 4]
  ------------------
 6154|      0|      option_interpreter.InterpretNonExtensionOptions(&(*iter));
 6155|      0|    }
 6156|       |
 6157|       |    // TODO: move this check back to generator.cc once we no longer
 6158|       |    // need to set both ctype and string_type internally.
 6159|      4|    internal::VisitDescriptors(
 6160|      4|        *result, proto,
 6161|      4|        [&](const FieldDescriptor& field, const FieldDescriptorProto& proto) {
 6162|      4|          if (field.options_->has_ctype() && field.options_->features()
 6163|      4|                                                 .GetExtension(pb::cpp)
 6164|      4|                                                 .has_string_type()) {
 6165|      4|            AddError(field.full_name(), proto,
 6166|      4|                     DescriptorPool::ErrorCollector::TYPE, [&] {
 6167|      4|                       return absl::StrFormat(
 6168|      4|                           "Field %s specifies both string_type and ctype "
 6169|      4|                           "which is not supported.",
 6170|      4|                           field.full_name());
 6171|      4|                     });
 6172|      4|          }
 6173|      4|        });
 6174|       |
 6175|       |    // Handle feature resolution.  This must occur after option interpretation,
 6176|       |    // but before validation.
 6177|      4|    {
 6178|      4|      auto cleanup = DisableTracking();
 6179|      4|      internal::VisitDescriptors(
 6180|      4|          *result, proto, [&](const auto& descriptor, const auto& proto) {
 6181|      4|            using OptionsT =
 6182|      4|                typename std::remove_const<typename std::remove_pointer<
 6183|      4|                    decltype(descriptor.options_)>::type>::type;
 6184|      4|            using DescriptorT =
 6185|      4|                typename std::remove_const<typename std::remove_reference<
 6186|      4|                    decltype(descriptor)>::type>::type;
 6187|       |
 6188|      4|            ResolveFeatures(
 6189|      4|                proto, const_cast<DescriptorT*>(&descriptor),
 6190|      4|                const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6191|      4|                    OptionsT*>(descriptor.options_),
 6192|      4|                alloc);
 6193|      4|          });
 6194|      4|    }
 6195|       |
 6196|      4|    internal::VisitDescriptors(*result, [&](const FieldDescriptor& field) {
 6197|      4|      if (result->edition() >= Edition::EDITION_2024 &&
 6198|      4|          field.options().has_ctype()) {
 6199|       |        // "ctype" is no longer supported in edition 2024 and beyond.
 6200|      4|        AddError(
 6201|      4|            field.full_name(), proto, DescriptorPool::ErrorCollector::NAME,
 6202|      4|            "ctype option is not allowed under edition 2024 and beyond. Use "
 6203|      4|            "the feature string_type = VIEW|CORD|STRING|... instead.");
 6204|      4|      }
 6205|      4|      EnforceCTypeStringTypeConsistency(
 6206|      4|          field.file()->edition(), field.cpp_type(),
 6207|      4|          field.merged_features_->GetExtension(pb::cpp),
 6208|      4|          const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6209|      4|              FieldOptions&>(*field.options_));
 6210|      4|    });
 6211|       |
 6212|       |    // Post-process cleanup for field features.
 6213|      4|    internal::VisitDescriptors(
 6214|      4|        *result, proto,
 6215|      4|        [&](const FieldDescriptor& field, const FieldDescriptorProto& proto) {
 6216|      4|          PostProcessFieldFeatures(const_cast<FieldDescriptor&>(field), proto);
 6217|      4|        });
 6218|       |
 6219|       |    // Interpret any remaining uninterpreted options gathered into
 6220|       |    // options_to_interpret_ during descriptor building.  Cross-linking has made
 6221|       |    // extension options known, so all interpretations should now succeed.
 6222|      4|    for (std::vector<OptionsToInterpret>::iterator iter =
 6223|      4|             options_to_interpret_.begin();
 6224|      4|         iter != options_to_interpret_.end(); ++iter) {
  ------------------
  |  Branch (6224:10): [True: 0, False: 4]
  ------------------
 6225|      0|      option_interpreter.InterpretOptionExtensions(&(*iter));
 6226|      0|    }
 6227|      4|    options_to_interpret_.clear();
 6228|      4|    if (info != nullptr) {
  ------------------
  |  Branch (6228:9): [True: 0, False: 4]
  ------------------
 6229|      0|      option_interpreter.UpdateSourceCodeInfo(info);
 6230|      0|    }
 6231|      4|  }
 6232|       |
 6233|       |  // Validate options. See comments at InternalSetLazilyBuildDependencies about
 6234|       |  // error checking and lazy import building.
 6235|      4|  if (!had_errors_ && !pool_->lazily_build_dependencies_) {
  ------------------
  |  Branch (6235:7): [True: 4, False: 0]
  |  Branch (6235:23): [True: 0, False: 4]
  ------------------
 6236|      0|    internal::VisitDescriptors(
 6237|      0|        *result, proto, [&](const auto& descriptor, const auto& desc_proto) {
 6238|      0|          ValidateOptions(&descriptor, desc_proto);
 6239|      0|        });
 6240|      0|  }
 6241|       |
 6242|       |  // Additional naming conflict check for map entry types. Only need to check
 6243|       |  // this if there are already errors.
 6244|      4|  if (had_errors_) {
  ------------------
  |  Branch (6244:7): [True: 0, False: 4]
  ------------------
 6245|      0|    for (int i = 0; i < proto.message_type_size(); ++i) {
  ------------------
  |  Branch (6245:21): [True: 0, False: 0]
  ------------------
 6246|      0|      DetectMapConflicts(result->message_type(i), proto.message_type(i));
 6247|      0|    }
 6248|      0|  }
 6249|       |
 6250|       |
 6251|       |  // Again, see comments at InternalSetLazilyBuildDependencies about error
 6252|       |  // checking. Also, don't log unused dependencies if there were previous
 6253|       |  // errors, since the results might be inaccurate.
 6254|      4|  if (!had_errors_ && !unused_dependency_.empty() &&
  ------------------
  |  Branch (6254:7): [True: 4, False: 0]
  |  Branch (6254:23): [True: 0, False: 4]
  ------------------
 6255|      0|      !pool_->lazily_build_dependencies_) {
  ------------------
  |  Branch (6255:7): [True: 0, False: 0]
  ------------------
 6256|      0|    LogUnusedDependency(proto, result);
 6257|      0|  }
 6258|       |
 6259|       |  // Store feature information for deferred validation outside of the database
 6260|       |  // mutex.
 6261|      4|  if (!had_errors_ && !pool_->lazily_build_dependencies_) {
  ------------------
  |  Branch (6261:7): [True: 4, False: 0]
  |  Branch (6261:23): [True: 0, False: 4]
  ------------------
 6262|      0|    internal::VisitDescriptors(
 6263|      0|        *result, proto, [&](const auto& descriptor, const auto& desc_proto) {
 6264|      0|          if (descriptor.proto_features_ != &FeatureSet::default_instance()) {
 6265|      0|            deferred_validation_.ValidateFeatureLifetimes(
 6266|      0|                GetFile(descriptor), {descriptor.proto_features_, &desc_proto,
 6267|      0|                                      GetFullName(descriptor), proto.name()});
 6268|      0|          }
 6269|      0|        });
 6270|      0|  }
 6271|       |
 6272|      4|  if (had_errors_) {
  ------------------
  |  Branch (6272:7): [True: 0, False: 4]
  ------------------
 6273|      0|    return nullptr;
 6274|      4|  } else {
 6275|      4|    return result;
 6276|      4|  }
 6277|      4|}
_ZN6google8protobuf17DescriptorBuilder19AllocateNameStringsEN4absl12lts_2024011611string_viewES4_RNS0_8internal13FlatAllocatorE:
 6282|     62|    internal::FlatAllocator& alloc) {
 6283|     62|  if (scope.empty()) {
  ------------------
  |  Branch (6283:7): [True: 0, False: 62]
  ------------------
 6284|      0|    return alloc.AllocateStrings(proto_name, proto_name);
 6285|     62|  } else {
 6286|     62|    return alloc.AllocateStrings(proto_name,
 6287|     62|                                 absl::StrCat(scope, ".", proto_name));
 6288|     62|  }
 6289|     62|}
_ZN6google8protobuf17DescriptorBuilder12BuildMessageERKNS0_15DescriptorProtoEPKNS0_10DescriptorEPS5_RNS0_8internal13FlatAllocatorE:
 6316|     41|                                     internal::FlatAllocator& alloc) {
 6317|     41|  const absl::string_view scope =
 6318|     41|      (parent == nullptr) ? file_->package() : parent->full_name();
  ------------------
  |  Branch (6318:7): [True: 31, False: 10]
  ------------------
 6319|     41|  result->all_names_ = AllocateNameStrings(scope, proto.name(), alloc);
 6320|     41|  ValidateSymbolName(proto.name(), result->full_name(), proto);
 6321|       |
 6322|     41|  result->file_ = file_;
 6323|     41|  result->containing_type_ = parent;
 6324|     41|  result->is_placeholder_ = false;
 6325|     41|  result->is_unqualified_placeholder_ = false;
 6326|     41|  result->well_known_type_ = Descriptor::WELLKNOWNTYPE_UNSPECIFIED;
 6327|     41|  result->options_ = nullptr;  // Set to default_instance later if necessary.
 6328|       |
 6329|     41|  auto it = pool_->tables_->well_known_types_.find(result->full_name());
 6330|     41|  if (it != pool_->tables_->well_known_types_.end()) {
  ------------------
  |  Branch (6330:7): [True: 1, False: 40]
  ------------------
 6331|      1|    result->well_known_type_ = it->second;
 6332|      1|  }
 6333|       |
 6334|       |  // Calculate the continuous sequence of fields.
 6335|       |  // These can be fast-path'd during lookup and don't need to be added to the
 6336|       |  // tables.
 6337|       |  // We use uint16_t to save space for sequential_field_limit_, so stop before
 6338|       |  // overflowing it. Worst case, we are not taking full advantage on huge
 6339|       |  // messages, but it is unlikely.
 6340|     41|  result->sequential_field_limit_ = 0;
 6341|    141|  for (int i = 0; i < std::numeric_limits<uint16_t>::max() &&
  ------------------
  |  Branch (6341:19): [True: 141, False: 0]
  ------------------
 6342|    141|                  i < proto.field_size() && proto.field(i).number() == i + 1;
  ------------------
  |  Branch (6342:19): [True: 119, False: 22]
  |  Branch (6342:45): [True: 100, False: 19]
  ------------------
 6343|    100|       ++i) {
 6344|    100|    result->sequential_field_limit_ = i + 1;
 6345|    100|  }
 6346|       |
 6347|       |  // Build oneofs first so that fields and extension ranges can refer to them.
 6348|     41|  BUILD_ARRAY(proto, result, oneof_decl, BuildOneof, result);
  ------------------
  |  | 5627|     41|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     41|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     41|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     41|      INPUT.NAME##_size());                                            \
  |  | 5631|     42|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 1, False: 41]
  |  |  ------------------
  |  | 5632|      1|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|      1|  }
  ------------------
 6349|     41|  BUILD_ARRAY(proto, result, field, BuildField, result);
  ------------------
  |  | 5627|     41|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     41|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     41|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     41|      INPUT.NAME##_size());                                            \
  |  | 5631|    243|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 202, False: 41]
  |  |  ------------------
  |  | 5632|    202|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|    202|  }
  ------------------
 6350|     41|  BUILD_ARRAY(proto, result, enum_type, BuildEnum, result);
  ------------------
  |  | 5627|     41|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     41|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     41|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     41|      INPUT.NAME##_size());                                            \
  |  | 5631|     58|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 17, False: 41]
  |  |  ------------------
  |  | 5632|     17|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|     17|  }
  ------------------
 6351|     41|  BUILD_ARRAY(proto, result, extension_range, BuildExtensionRange, result);
  ------------------
  |  | 5627|     41|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     41|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     41|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     41|      INPUT.NAME##_size());                                            \
  |  | 5631|     55|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 14, False: 41]
  |  |  ------------------
  |  | 5632|     14|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|     14|  }
  ------------------
 6352|     41|  BUILD_ARRAY(proto, result, extension, BuildExtension, result);
  ------------------
  |  | 5627|     41|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     41|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     41|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     41|      INPUT.NAME##_size());                                            \
  |  | 5631|     41|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 0, False: 41]
  |  |  ------------------
  |  | 5632|      0|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|      0|  }
  ------------------
 6353|     41|  BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
  ------------------
  |  | 5627|     41|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     41|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     41|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     41|      INPUT.NAME##_size());                                            \
  |  | 5631|     55|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 14, False: 41]
  |  |  ------------------
  |  | 5632|     14|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|     14|  }
  ------------------
 6354|       |
 6355|       |  // Copy options.
 6356|     41|  AllocateOptions(proto, result, DescriptorProto::kOptionsFieldNumber,
 6357|     41|                  "google.protobuf.MessageOptions", alloc);
 6358|       |
 6359|       |  // Before building submessages, check recursion limit.
 6360|     41|  --recursion_depth_;
 6361|     41|  IncrementWhenDestroyed revert{recursion_depth_};
 6362|     41|  if (recursion_depth_ <= 0) {
  ------------------
  |  Branch (6362:7): [True: 0, False: 41]
  ------------------
 6363|      0|    AddError(result->full_name(), proto, DescriptorPool::ErrorCollector::OTHER,
 6364|      0|             "Reached maximum recursion limit for nested messages.");
 6365|      0|    result->nested_types_ = nullptr;
 6366|      0|    result->nested_type_count_ = 0;
 6367|      0|    return;
 6368|      0|  }
 6369|     41|  BUILD_ARRAY(proto, result, nested_type, BuildMessage, result);
  ------------------
  |  | 5627|     41|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     41|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     41|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     41|      INPUT.NAME##_size());                                            \
  |  | 5631|     51|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 10, False: 41]
  |  |  ------------------
  |  | 5632|     10|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|     10|  }
  ------------------
 6370|       |
 6371|       |  // Copy reserved names.
 6372|     41|  int reserved_name_count = proto.reserved_name_size();
 6373|     41|  result->reserved_name_count_ = reserved_name_count;
 6374|     41|  result->reserved_names_ =
 6375|     41|      alloc.AllocateArray<const std::string*>(reserved_name_count);
 6376|     43|  for (int i = 0; i < reserved_name_count; ++i) {
  ------------------
  |  Branch (6376:19): [True: 2, False: 41]
  ------------------
 6377|      2|    result->reserved_names_[i] = alloc.AllocateStrings(proto.reserved_name(i));
 6378|      2|  }
 6379|       |
 6380|     41|  AddSymbol(result->full_name(), parent, result->name(), proto, Symbol(result));
 6381|       |
 6382|     55|  for (int i = 0; i < proto.reserved_range_size(); i++) {
  ------------------
  |  Branch (6382:19): [True: 14, False: 41]
  ------------------
 6383|     14|    const DescriptorProto_ReservedRange& range1 = proto.reserved_range(i);
 6384|     27|    for (int j = i + 1; j < proto.reserved_range_size(); j++) {
  ------------------
  |  Branch (6384:25): [True: 13, False: 14]
  ------------------
 6385|     13|      const DescriptorProto_ReservedRange& range2 = proto.reserved_range(j);
 6386|     13|      if (range1.end() > range2.start() && range2.end() > range1.start()) {
  ------------------
  |  Branch (6386:11): [True: 1, False: 12]
  |  Branch (6386:44): [True: 0, False: 1]
  ------------------
 6387|      0|        AddError(result->full_name(), proto.reserved_range(i),
 6388|      0|                 DescriptorPool::ErrorCollector::NUMBER, [&] {
 6389|      0|                   return absl::Substitute(
 6390|      0|                       "Reserved range $0 to $1 overlaps with "
 6391|      0|                       "already-defined range $2 to $3.",
 6392|      0|                       range2.start(), range2.end() - 1, range1.start(),
 6393|      0|                       range1.end() - 1);
 6394|      0|                 });
 6395|      0|      }
 6396|     13|    }
 6397|     14|  }
 6398|       |
 6399|     41|  absl::flat_hash_set<absl::string_view> reserved_name_set;
 6400|     41|  for (const std::string& name : proto.reserved_name()) {
  ------------------
  |  Branch (6400:32): [True: 2, False: 41]
  ------------------
 6401|      2|    if (!reserved_name_set.insert(name).second) {
  ------------------
  |  Branch (6401:9): [True: 0, False: 2]
  ------------------
 6402|      0|      AddError(name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 6403|      0|        return absl::Substitute("Field name \"$0\" is reserved multiple times.",
 6404|      0|                                name);
 6405|      0|      });
 6406|      0|    }
 6407|      2|  }
 6408|       |  // Check that fields aren't using reserved names or numbers and that they
 6409|       |  // aren't using extension numbers.
 6410|    243|  for (int i = 0; i < result->field_count(); i++) {
  ------------------
  |  Branch (6410:19): [True: 202, False: 41]
  ------------------
 6411|    202|    const FieldDescriptor* field = result->field(i);
 6412|    287|    for (int j = 0; j < result->extension_range_count(); j++) {
  ------------------
  |  Branch (6412:21): [True: 85, False: 202]
  ------------------
 6413|     85|      const Descriptor::ExtensionRange* range = result->extension_range(j);
 6414|     85|      if (range->start_number() <= field->number() &&
  ------------------
  |  Branch (6414:11): [True: 0, False: 85]
  ------------------
 6415|      0|          field->number() < range->end_number()) {
  ------------------
  |  Branch (6415:11): [True: 0, False: 0]
  ------------------
 6416|      0|        message_hints_[result].RequestHintOnFieldNumbers(
 6417|      0|            proto.extension_range(j), DescriptorPool::ErrorCollector::NUMBER);
 6418|      0|        AddError(field->full_name(), proto.extension_range(j),
 6419|      0|                 DescriptorPool::ErrorCollector::NUMBER, [&] {
 6420|      0|                   return absl::Substitute(
 6421|      0|                       "Extension range $0 to $1 includes field \"$2\" ($3).",
 6422|      0|                       range->start_number(), range->end_number() - 1,
 6423|      0|                       field->name(), field->number());
 6424|      0|                 });
 6425|      0|      }
 6426|     85|    }
 6427|    329|    for (int j = 0; j < result->reserved_range_count(); j++) {
  ------------------
  |  Branch (6427:21): [True: 127, False: 202]
  ------------------
 6428|    127|      const Descriptor::ReservedRange* range = result->reserved_range(j);
 6429|    127|      if (range->start <= field->number() && field->number() < range->end) {
  ------------------
  |  Branch (6429:11): [True: 56, False: 71]
  |  Branch (6429:46): [True: 0, False: 56]
  ------------------
 6430|      0|        message_hints_[result].RequestHintOnFieldNumbers(
 6431|      0|            proto.reserved_range(j), DescriptorPool::ErrorCollector::NUMBER);
 6432|      0|        AddError(field->full_name(), proto.reserved_range(j),
 6433|      0|                 DescriptorPool::ErrorCollector::NUMBER, [&] {
 6434|      0|                   return absl::Substitute(
 6435|      0|                       "Field \"$0\" uses reserved number $1.", field->name(),
 6436|      0|                       field->number());
 6437|      0|                 });
 6438|      0|      }
 6439|    127|    }
 6440|    202|    if (reserved_name_set.contains(field->name())) {
  ------------------
  |  Branch (6440:9): [True: 0, False: 202]
  ------------------
 6441|      0|      AddError(field->full_name(), proto.field(i),
 6442|      0|               DescriptorPool::ErrorCollector::NAME, [&] {
 6443|      0|                 return absl::Substitute("Field name \"$0\" is reserved.",
 6444|      0|                                         field->name());
 6445|      0|               });
 6446|      0|    }
 6447|    202|  }
 6448|       |
 6449|       |  // Check that extension ranges don't overlap and don't include
 6450|       |  // reserved field numbers or names.
 6451|     55|  for (int i = 0; i < result->extension_range_count(); i++) {
  ------------------
  |  Branch (6451:19): [True: 14, False: 41]
  ------------------
 6452|     14|    const Descriptor::ExtensionRange* range1 = result->extension_range(i);
 6453|     27|    for (int j = 0; j < result->reserved_range_count(); j++) {
  ------------------
  |  Branch (6453:21): [True: 13, False: 14]
  ------------------
 6454|     13|      const Descriptor::ReservedRange* range2 = result->reserved_range(j);
 6455|     13|      if (range1->end_number() > range2->start &&
  ------------------
  |  Branch (6455:11): [True: 13, False: 0]
  ------------------
 6456|     13|          range2->end > range1->start_number()) {
  ------------------
  |  Branch (6456:11): [True: 0, False: 13]
  ------------------
 6457|      0|        AddError(result->full_name(), proto.extension_range(i),
 6458|      0|                 DescriptorPool::ErrorCollector::NUMBER, [&] {
 6459|      0|                   return absl::Substitute(
 6460|      0|                       "Extension range $0 to $1 overlaps with "
 6461|      0|                       "reserved range $2 to $3.",
 6462|      0|                       range1->start_number(), range1->end_number() - 1,
 6463|      0|                       range2->start, range2->end - 1);
 6464|      0|                 });
 6465|      0|      }
 6466|     13|    }
 6467|     17|    for (int j = i + 1; j < result->extension_range_count(); j++) {
  ------------------
  |  Branch (6467:25): [True: 3, False: 14]
  ------------------
 6468|      3|      const Descriptor::ExtensionRange* range2 = result->extension_range(j);
 6469|      3|      if (range1->end_number() > range2->start_number() &&
  ------------------
  |  Branch (6469:11): [True: 0, False: 3]
  ------------------
 6470|      0|          range2->end_number() > range1->start_number()) {
  ------------------
  |  Branch (6470:11): [True: 0, False: 0]
  ------------------
 6471|      0|        AddError(result->full_name(), proto.extension_range(i),
 6472|      0|                 DescriptorPool::ErrorCollector::NUMBER, [&] {
 6473|      0|                   return absl::Substitute(
 6474|      0|                       "Extension range $0 to $1 overlaps with "
 6475|      0|                       "already-defined range $2 to $3.",
 6476|      0|                       range2->start_number(), range2->end_number() - 1,
 6477|      0|                       range1->start_number(), range1->end_number() - 1);
 6478|      0|                 });
 6479|      0|      }
 6480|      3|    }
 6481|     14|  }
 6482|     41|}
_ZN6google8protobuf17DescriptorBuilder21BuildFieldOrExtensionERKNS0_20FieldDescriptorProtoEPNS0_10DescriptorEPNS0_15FieldDescriptorEbRNS0_8internal13FlatAllocatorE:
 6585|    203|                                              internal::FlatAllocator& alloc) {
 6586|    203|  const absl::string_view scope =
 6587|    203|      (parent == nullptr) ? file_->package() : parent->full_name();
  ------------------
  |  Branch (6587:7): [True: 1, False: 202]
  ------------------
 6588|       |
 6589|       |  // We allocate all names in a single array, and dedup them.
 6590|       |  // We remember the indices for the potentially deduped values.
 6591|    203|  auto all_names = alloc.AllocateFieldNames(
 6592|    203|      proto.name(), scope,
 6593|    203|      proto.has_json_name() ? &proto.json_name() : nullptr);
  ------------------
  |  Branch (6593:7): [True: 0, False: 203]
  ------------------
 6594|    203|  result->all_names_ = all_names.array;
 6595|    203|  result->lowercase_name_index_ = all_names.lowercase_index;
 6596|    203|  result->camelcase_name_index_ = all_names.camelcase_index;
 6597|    203|  result->json_name_index_ = all_names.json_index;
 6598|       |
 6599|    203|  ValidateSymbolName(proto.name(), result->full_name(), proto);
 6600|       |
 6601|    203|  result->file_ = file_;
 6602|    203|  result->number_ = proto.number();
 6603|    203|  result->is_extension_ = is_extension;
 6604|    203|  result->is_oneof_ = false;
 6605|    203|  result->in_real_oneof_ = false;
 6606|    203|  result->proto3_optional_ = proto.proto3_optional();
 6607|       |
 6608|    203|  if (proto.proto3_optional() && file_->edition() != Edition::EDITION_PROTO3) {
  ------------------
  |  Branch (6608:7): [True: 0, False: 203]
  |  Branch (6608:34): [True: 0, False: 0]
  ------------------
 6609|      0|    AddError(result->full_name(), proto, DescriptorPool::ErrorCollector::TYPE,
 6610|      0|             [&] {
 6611|      0|               return absl::StrCat(
 6612|      0|                   "The [proto3_optional=true] option may only be set on proto3"
 6613|      0|                   "fields, not ",
 6614|      0|                   result->full_name());
 6615|      0|             });
 6616|      0|  }
 6617|       |
 6618|    203|  result->has_json_name_ = proto.has_json_name();
 6619|       |
 6620|    203|  result->type_ = proto.type();
 6621|    203|  result->label_ = proto.label();
 6622|    203|  result->is_repeated_ = result->label_ == FieldDescriptor::LABEL_REPEATED;
 6623|       |
 6624|    203|  if (result->label() == FieldDescriptor::LABEL_REQUIRED) {
  ------------------
  |  Branch (6624:7): [True: 2, False: 201]
  ------------------
 6625|       |    // An extension cannot have a required field (b/13365836).
 6626|      2|    if (result->is_extension_) {
  ------------------
  |  Branch (6626:9): [True: 0, False: 2]
  ------------------
 6627|      0|      AddError(result->full_name(), proto,
 6628|       |               // Error location `TYPE`: we would really like to indicate
 6629|       |               // `LABEL`, but the `ErrorLocation` enum has no entry for this,
 6630|       |               // and we don't necessarily know about all implementations of the
 6631|       |               // `ErrorCollector` interface to extend them to handle the new
 6632|       |               // error location type properly.
 6633|      0|               DescriptorPool::ErrorCollector::TYPE, [&] {
 6634|      0|                 return absl::StrCat("The extension ", result->full_name(),
 6635|      0|                                     " cannot be required.");
 6636|      0|               });
 6637|      0|    }
 6638|      2|  }
 6639|       |
 6640|       |  // Some of these may be filled in when cross-linking.
 6641|    203|  result->containing_type_ = nullptr;
 6642|    203|  result->type_once_ = nullptr;
 6643|    203|  result->default_value_enum_ = nullptr;
 6644|       |
 6645|    203|  result->has_default_value_ = proto.has_default_value();
 6646|    203|  if (proto.has_default_value() && result->is_repeated()) {
  ------------------
  |  Branch (6646:7): [True: 27, False: 176]
  |  Branch (6646:36): [True: 0, False: 27]
  ------------------
 6647|      0|    AddError(result->full_name(), proto,
 6648|      0|             DescriptorPool::ErrorCollector::DEFAULT_VALUE,
 6649|      0|             "Repeated fields can't have default values.");
 6650|      0|  }
 6651|       |
 6652|    203|  if (proto.has_type()) {
  ------------------
  |  Branch (6652:7): [True: 203, False: 0]
  ------------------
 6653|    203|    if (proto.has_default_value()) {
  ------------------
  |  Branch (6653:9): [True: 27, False: 176]
  ------------------
 6654|     27|      char* end_pos = nullptr;
 6655|     27|      switch (result->cpp_type()) {
  ------------------
  |  Branch (6655:15): [True: 27, False: 0]
  ------------------
 6656|      0|        case FieldDescriptor::CPPTYPE_INT32:
  ------------------
  |  Branch (6656:9): [True: 0, False: 27]
  ------------------
 6657|      0|          result->default_value_int32_t_ =
 6658|      0|              std::strtol(proto.default_value().c_str(), &end_pos, 0);
 6659|      0|          break;
 6660|      0|        case FieldDescriptor::CPPTYPE_INT64:
  ------------------
  |  Branch (6660:9): [True: 0, False: 27]
  ------------------
 6661|      0|          static_assert(sizeof(int64_t) == sizeof(long long),  // NOLINT
 6662|      0|                        "sizeof int64_t is not sizeof long long");
 6663|      0|          result->default_value_int64_t_ =
 6664|      0|              std::strtoll(proto.default_value().c_str(), &end_pos, 0);
 6665|      0|          break;
 6666|      0|        case FieldDescriptor::CPPTYPE_UINT32:
  ------------------
  |  Branch (6666:9): [True: 0, False: 27]
  ------------------
 6667|      0|          result->default_value_uint32_t_ =
 6668|      0|              std::strtoul(proto.default_value().c_str(), &end_pos, 0);
 6669|      0|          break;
 6670|      0|        case FieldDescriptor::CPPTYPE_UINT64:
  ------------------
  |  Branch (6670:9): [True: 0, False: 27]
  ------------------
 6671|      0|          static_assert(
 6672|      0|              sizeof(uint64_t) == sizeof(unsigned long long),  // NOLINT
 6673|      0|              "sizeof uint64_t is not sizeof unsigned long long");
 6674|      0|          result->default_value_uint64_t_ =
 6675|      0|              std::strtoull(proto.default_value().c_str(), &end_pos, 0);
 6676|      0|          break;
 6677|      0|        case FieldDescriptor::CPPTYPE_FLOAT:
  ------------------
  |  Branch (6677:9): [True: 0, False: 27]
  ------------------
 6678|      0|          if (proto.default_value() == "inf") {
  ------------------
  |  Branch (6678:15): [True: 0, False: 0]
  ------------------
 6679|      0|            result->default_value_float_ =
 6680|      0|                std::numeric_limits<float>::infinity();
 6681|      0|          } else if (proto.default_value() == "-inf") {
  ------------------
  |  Branch (6681:22): [True: 0, False: 0]
  ------------------
 6682|      0|            result->default_value_float_ =
 6683|      0|                -std::numeric_limits<float>::infinity();
 6684|      0|          } else if (proto.default_value() == "nan") {
  ------------------
  |  Branch (6684:22): [True: 0, False: 0]
  ------------------
 6685|      0|            result->default_value_float_ =
 6686|      0|                std::numeric_limits<float>::quiet_NaN();
 6687|      0|          } else {
 6688|      0|            result->default_value_float_ = io::SafeDoubleToFloat(
 6689|      0|                io::NoLocaleStrtod(proto.default_value().c_str(), &end_pos));
 6690|      0|          }
 6691|      0|          break;
 6692|      0|        case FieldDescriptor::CPPTYPE_DOUBLE:
  ------------------
  |  Branch (6692:9): [True: 0, False: 27]
  ------------------
 6693|      0|          if (proto.default_value() == "inf") {
  ------------------
  |  Branch (6693:15): [True: 0, False: 0]
  ------------------
 6694|      0|            result->default_value_double_ =
 6695|      0|                std::numeric_limits<double>::infinity();
 6696|      0|          } else if (proto.default_value() == "-inf") {
  ------------------
  |  Branch (6696:22): [True: 0, False: 0]
  ------------------
 6697|      0|            result->default_value_double_ =
 6698|      0|                -std::numeric_limits<double>::infinity();
 6699|      0|          } else if (proto.default_value() == "nan") {
  ------------------
  |  Branch (6699:22): [True: 0, False: 0]
  ------------------
 6700|      0|            result->default_value_double_ =
 6701|      0|                std::numeric_limits<double>::quiet_NaN();
 6702|      0|          } else {
 6703|      0|            result->default_value_double_ =
 6704|      0|                io::NoLocaleStrtod(proto.default_value().c_str(), &end_pos);
 6705|      0|          }
 6706|      0|          break;
 6707|     22|        case FieldDescriptor::CPPTYPE_BOOL:
  ------------------
  |  Branch (6707:9): [True: 22, False: 5]
  ------------------
 6708|     22|          if (proto.default_value() == "true") {
  ------------------
  |  Branch (6708:15): [True: 1, False: 21]
  ------------------
 6709|      1|            result->default_value_bool_ = true;
 6710|     21|          } else if (proto.default_value() == "false") {
  ------------------
  |  Branch (6710:22): [True: 21, False: 0]
  ------------------
 6711|     21|            result->default_value_bool_ = false;
 6712|     21|          } else {
 6713|      0|            AddError(result->full_name(), proto,
 6714|      0|                     DescriptorPool::ErrorCollector::DEFAULT_VALUE,
 6715|      0|                     "Boolean default must be true or false.");
 6716|      0|          }
 6717|     22|          break;
 6718|      5|        case FieldDescriptor::CPPTYPE_ENUM:
  ------------------
  |  Branch (6718:9): [True: 5, False: 22]
  ------------------
 6719|       |          // This will be filled in when cross-linking.
 6720|      5|          result->default_value_enum_ = nullptr;
 6721|      5|          break;
 6722|      0|        case FieldDescriptor::CPPTYPE_STRING:
  ------------------
  |  Branch (6722:9): [True: 0, False: 27]
  ------------------
 6723|      0|          if (result->type() == FieldDescriptor::TYPE_BYTES) {
  ------------------
  |  Branch (6723:15): [True: 0, False: 0]
  ------------------
 6724|      0|            std::string value;
 6725|      0|            if (absl::CUnescape(proto.default_value(), &value)) {
  ------------------
  |  Branch (6725:17): [True: 0, False: 0]
  ------------------
 6726|      0|              result->default_value_string_ = alloc.AllocateStrings(value);
 6727|      0|            } else {
 6728|      0|              AddError(result->full_name(), proto,
 6729|      0|                       DescriptorPool::ErrorCollector::DEFAULT_VALUE,
 6730|      0|                       "Invalid escaping in default value.");
 6731|      0|            }
 6732|      0|          } else {
 6733|      0|            result->default_value_string_ =
 6734|      0|                alloc.AllocateStrings(proto.default_value());
 6735|      0|          }
 6736|      0|          break;
 6737|      0|        case FieldDescriptor::CPPTYPE_MESSAGE:
  ------------------
  |  Branch (6737:9): [True: 0, False: 27]
  ------------------
 6738|      0|          AddError(result->full_name(), proto,
 6739|      0|                   DescriptorPool::ErrorCollector::DEFAULT_VALUE,
 6740|      0|                   "Messages can't have default values.");
 6741|      0|          result->has_default_value_ = false;
 6742|      0|          result->default_generated_instance_ = nullptr;
 6743|      0|          break;
 6744|     27|      }
 6745|       |
 6746|     27|      if (end_pos != nullptr) {
  ------------------
  |  Branch (6746:11): [True: 0, False: 27]
  ------------------
 6747|       |        // end_pos is only set non-null by the parsers for numeric types,
 6748|       |        // above. This checks that the default was non-empty and had no extra
 6749|       |        // junk after the end of the number.
 6750|      0|        if (proto.default_value().empty() || *end_pos != '\0') {
  ------------------
  |  Branch (6750:13): [True: 0, False: 0]
  |  Branch (6750:46): [True: 0, False: 0]
  ------------------
 6751|      0|          AddError(result->full_name(), proto,
 6752|      0|                   DescriptorPool::ErrorCollector::DEFAULT_VALUE, [&] {
 6753|      0|                     return absl::StrCat("Couldn't parse default value \"",
 6754|      0|                                         proto.default_value(), "\".");
 6755|      0|                   });
 6756|      0|        }
 6757|      0|      }
 6758|    176|    } else {
 6759|       |      // No explicit default value
 6760|    176|      switch (result->cpp_type()) {
  ------------------
  |  Branch (6760:15): [True: 176, False: 0]
  ------------------
 6761|     17|        case FieldDescriptor::CPPTYPE_INT32:
  ------------------
  |  Branch (6761:9): [True: 17, False: 159]
  ------------------
 6762|     17|          result->default_value_int32_t_ = 0;
 6763|     17|          break;
 6764|      1|        case FieldDescriptor::CPPTYPE_INT64:
  ------------------
  |  Branch (6764:9): [True: 1, False: 175]
  ------------------
 6765|      1|          result->default_value_int64_t_ = 0;
 6766|      1|          break;
 6767|      5|        case FieldDescriptor::CPPTYPE_UINT32:
  ------------------
  |  Branch (6767:9): [True: 5, False: 171]
  ------------------
 6768|      5|          result->default_value_uint32_t_ = 0;
 6769|      5|          break;
 6770|      2|        case FieldDescriptor::CPPTYPE_UINT64:
  ------------------
  |  Branch (6770:9): [True: 2, False: 174]
  ------------------
 6771|      2|          result->default_value_uint64_t_ = 0;
 6772|      2|          break;
 6773|      0|        case FieldDescriptor::CPPTYPE_FLOAT:
  ------------------
  |  Branch (6773:9): [True: 0, False: 176]
  ------------------
 6774|      0|          result->default_value_float_ = 0.0f;
 6775|      0|          break;
 6776|      1|        case FieldDescriptor::CPPTYPE_DOUBLE:
  ------------------
  |  Branch (6776:9): [True: 1, False: 175]
  ------------------
 6777|      1|          result->default_value_double_ = 0.0;
 6778|      1|          break;
 6779|     21|        case FieldDescriptor::CPPTYPE_BOOL:
  ------------------
  |  Branch (6779:9): [True: 21, False: 155]
  ------------------
 6780|     21|          result->default_value_bool_ = false;
 6781|     21|          break;
 6782|     22|        case FieldDescriptor::CPPTYPE_ENUM:
  ------------------
  |  Branch (6782:9): [True: 22, False: 154]
  ------------------
 6783|       |          // This will be filled in when cross-linking.
 6784|     22|          result->default_value_enum_ = nullptr;
 6785|     22|          break;
 6786|     48|        case FieldDescriptor::CPPTYPE_STRING:
  ------------------
  |  Branch (6786:9): [True: 48, False: 128]
  ------------------
 6787|     48|          result->default_value_string_ = &internal::GetEmptyString();
 6788|     48|          break;
 6789|     59|        case FieldDescriptor::CPPTYPE_MESSAGE:
  ------------------
  |  Branch (6789:9): [True: 59, False: 117]
  ------------------
 6790|     59|          result->default_generated_instance_ = nullptr;
 6791|     59|          break;
 6792|    176|      }
 6793|    176|    }
 6794|    203|  }
 6795|       |
 6796|    203|  if (result->number() <= 0) {
  ------------------
  |  Branch (6796:7): [True: 0, False: 203]
  ------------------
 6797|      0|    message_hints_[parent].RequestHintOnFieldNumbers(
 6798|      0|        proto, DescriptorPool::ErrorCollector::NUMBER);
 6799|      0|    AddError(result->full_name(), proto, DescriptorPool::ErrorCollector::NUMBER,
 6800|      0|             "Field numbers must be positive integers.");
 6801|    203|  } else if (!is_extension && result->number() > FieldDescriptor::kMaxNumber) {
  ------------------
  |  Branch (6801:14): [True: 202, False: 1]
  |  Branch (6801:31): [True: 0, False: 202]
  ------------------
 6802|       |    // Only validate that the number is within the valid field range if it is
 6803|       |    // not an extension. Since extension numbers are validated with the
 6804|       |    // extendee's valid set of extension numbers, and those are in turn
 6805|       |    // validated against the max allowed number, the check is unnecessary for
 6806|       |    // extension fields.
 6807|       |    // This avoids cross-linking issues that arise when attempting to check if
 6808|       |    // the extendee is a message_set_wire_format message, which has a higher max
 6809|       |    // on extension numbers.
 6810|      0|    message_hints_[parent].RequestHintOnFieldNumbers(
 6811|      0|        proto, DescriptorPool::ErrorCollector::NUMBER);
 6812|      0|    AddError(result->full_name(), proto, DescriptorPool::ErrorCollector::NUMBER,
 6813|      0|             [&] {
 6814|      0|               return absl::Substitute(
 6815|      0|                   "Field numbers cannot be greater than $0.",
 6816|      0|                   FieldDescriptor::kMaxNumber);
 6817|      0|             });
 6818|      0|  }
 6819|       |
 6820|    203|  if (is_extension) {
  ------------------
  |  Branch (6820:7): [True: 1, False: 202]
  ------------------
 6821|      1|    if (!proto.has_extendee()) {
  ------------------
  |  Branch (6821:9): [True: 0, False: 1]
  ------------------
 6822|      0|      AddError(result->full_name(), proto,
 6823|      0|               DescriptorPool::ErrorCollector::EXTENDEE,
 6824|      0|               "FieldDescriptorProto.extendee not set for extension field.");
 6825|      0|    }
 6826|       |
 6827|      1|    result->scope_.extension_scope = parent;
 6828|       |
 6829|      1|    if (proto.has_oneof_index()) {
  ------------------
  |  Branch (6829:9): [True: 0, False: 1]
  ------------------
 6830|      0|      AddError(result->full_name(), proto, DescriptorPool::ErrorCollector::TYPE,
 6831|      0|               "FieldDescriptorProto.oneof_index should not be set for "
 6832|      0|               "extensions.");
 6833|      0|    }
 6834|    202|  } else {
 6835|    202|    if (proto.has_extendee()) {
  ------------------
  |  Branch (6835:9): [True: 0, False: 202]
  ------------------
 6836|      0|      AddError(result->full_name(), proto,
 6837|      0|               DescriptorPool::ErrorCollector::EXTENDEE,
 6838|      0|               "FieldDescriptorProto.extendee set for non-extension field.");
 6839|      0|    }
 6840|       |
 6841|    202|    result->containing_type_ = parent;
 6842|       |
 6843|    202|    if (proto.has_oneof_index()) {
  ------------------
  |  Branch (6843:9): [True: 3, False: 199]
  ------------------
 6844|      3|      if (proto.oneof_index() < 0 ||
  ------------------
  |  Branch (6844:11): [True: 0, False: 3]
  ------------------
 6845|      3|          proto.oneof_index() >= parent->oneof_decl_count()) {
  ------------------
  |  Branch (6845:11): [True: 0, False: 3]
  ------------------
 6846|      0|        AddError(result->full_name(), proto,
 6847|      0|                 DescriptorPool::ErrorCollector::TYPE, [&] {
 6848|      0|                   return absl::Substitute(
 6849|      0|                       "FieldDescriptorProto.oneof_index $0 is "
 6850|      0|                       "out of range for type \"$1\".",
 6851|      0|                       proto.oneof_index(), parent->name());
 6852|      0|                 });
 6853|      3|      } else {
 6854|      3|        result->is_oneof_ = true;
 6855|      3|        result->scope_.containing_oneof =
 6856|      3|            parent->oneof_decl(proto.oneof_index());
 6857|      3|        result->in_real_oneof_ = !result->proto3_optional_;
 6858|      3|      }
 6859|      3|    }
 6860|    202|  }
 6861|       |
 6862|       |  // Copy options.
 6863|    203|  AllocateOptions(proto, result, FieldDescriptorProto::kOptionsFieldNumber,
 6864|    203|                  "google.protobuf.FieldOptions", alloc);
 6865|       |
 6866|    203|  AddSymbol(result->full_name(), parent, result->name(), proto, Symbol(result));
 6867|    203|}
_ZN6google8protobuf17DescriptorBuilder19BuildExtensionRangeERKNS0_30DescriptorProto_ExtensionRangeEPKNS0_10DescriptorEPNS5_14ExtensionRangeERNS0_8internal13FlatAllocatorE:
 6871|     14|    Descriptor::ExtensionRange* result, internal::FlatAllocator& alloc) {
 6872|     14|  result->start_ = proto.start();
 6873|     14|  result->end_ = proto.end();
 6874|     14|  result->containing_type_ = parent;
 6875|       |
 6876|     14|  if (result->start_number() <= 0) {
  ------------------
  |  Branch (6876:7): [True: 0, False: 14]
  ------------------
 6877|      0|    message_hints_[parent].RequestHintOnFieldNumbers(
 6878|      0|        proto, DescriptorPool::ErrorCollector::NUMBER, result->start_number(),
 6879|      0|        result->end_number());
 6880|      0|    AddError(parent->full_name(), proto, DescriptorPool::ErrorCollector::NUMBER,
 6881|      0|             "Extension numbers must be positive integers.");
 6882|      0|  }
 6883|       |
 6884|       |  // Checking of the upper bound of the extension range is deferred until after
 6885|       |  // options interpreting. This allows messages with message_set_wire_format to
 6886|       |  // have extensions beyond FieldDescriptor::kMaxNumber, since the extension
 6887|       |  // numbers are actually used as int32s in the message_set_wire_format.
 6888|       |
 6889|     14|  if (result->start_number() >= result->end_number()) {
  ------------------
  |  Branch (6889:7): [True: 0, False: 14]
  ------------------
 6890|      0|    AddError(parent->full_name(), proto, DescriptorPool::ErrorCollector::NUMBER,
 6891|      0|             "Extension range end number must be greater than start number.");
 6892|      0|  }
 6893|       |
 6894|       |  // Copy options
 6895|     14|  AllocateOptions(proto, result,
 6896|     14|                  DescriptorProto_ExtensionRange::kOptionsFieldNumber,
 6897|     14|                  "google.protobuf.ExtensionRangeOptions", alloc);
 6898|     14|}
_ZN6google8protobuf17DescriptorBuilder18BuildReservedRangeERKNS0_29DescriptorProto_ReservedRangeEPKNS0_10DescriptorEPNS5_13ReservedRangeERNS0_8internal13FlatAllocatorE:
 6902|     14|    Descriptor::ReservedRange* result, internal::FlatAllocator&) {
 6903|     14|  result->start = proto.start();
 6904|     14|  result->end = proto.end();
 6905|     14|  if (result->start <= 0) {
  ------------------
  |  Branch (6905:7): [True: 0, False: 14]
  ------------------
 6906|      0|    message_hints_[parent].RequestHintOnFieldNumbers(
 6907|      0|        proto, DescriptorPool::ErrorCollector::NUMBER, result->start,
 6908|      0|        result->end);
 6909|      0|    AddError(parent->full_name(), proto, DescriptorPool::ErrorCollector::NUMBER,
 6910|      0|             "Reserved numbers must be positive integers.");
 6911|      0|  }
 6912|     14|  if (result->start >= result->end) {
  ------------------
  |  Branch (6912:7): [True: 0, False: 14]
  ------------------
 6913|      0|    AddError(parent->full_name(), proto, DescriptorPool::ErrorCollector::NUMBER,
 6914|      0|             "Reserved range end number must be greater than start number.");
 6915|      0|  }
 6916|     14|}
_ZN6google8protobuf17DescriptorBuilder18BuildReservedRangeERKNS0_37EnumDescriptorProto_EnumReservedRangeEPKNS0_14EnumDescriptorEPNS5_13ReservedRangeERNS0_8internal13FlatAllocatorE:
 6921|      1|    internal::FlatAllocator&) {
 6922|      1|  result->start = proto.start();
 6923|      1|  result->end = proto.end();
 6924|       |
 6925|      1|  if (result->start > result->end) {
  ------------------
  |  Branch (6925:7): [True: 0, False: 1]
  ------------------
 6926|      0|    AddError(parent->full_name(), proto, DescriptorPool::ErrorCollector::NUMBER,
 6927|      0|             "Reserved range end number must be greater than start number.");
 6928|      0|  }
 6929|      1|}
_ZN6google8protobuf17DescriptorBuilder10BuildOneofERKNS0_20OneofDescriptorProtoEPNS0_10DescriptorEPNS0_15OneofDescriptorERNS0_8internal13FlatAllocatorE:
 6933|      1|                                   internal::FlatAllocator& alloc) {
 6934|      1|  result->all_names_ =
 6935|      1|      AllocateNameStrings(parent->full_name(), proto.name(), alloc);
 6936|      1|  ValidateSymbolName(proto.name(), result->full_name(), proto);
 6937|       |
 6938|      1|  result->containing_type_ = parent;
 6939|       |
 6940|       |  // We need to fill these in later.
 6941|      1|  result->field_count_ = 0;
 6942|      1|  result->fields_ = nullptr;
 6943|       |
 6944|       |  // Copy options.
 6945|      1|  AllocateOptions(proto, result, OneofDescriptorProto::kOptionsFieldNumber,
 6946|      1|                  "google.protobuf.OneofOptions", alloc);
 6947|       |
 6948|      1|  AddSymbol(result->full_name(), parent, result->name(), proto, Symbol(result));
 6949|      1|}
_ZN6google8protobuf17DescriptorBuilder9BuildEnumERKNS0_19EnumDescriptorProtoEPKNS0_10DescriptorEPNS0_14EnumDescriptorERNS0_8internal13FlatAllocatorE:
 7021|     20|                                  internal::FlatAllocator& alloc) {
 7022|     20|  const absl::string_view scope =
 7023|     20|      (parent == nullptr) ? file_->package() : parent->full_name();
  ------------------
  |  Branch (7023:7): [True: 3, False: 17]
  ------------------
 7024|       |
 7025|     20|  result->all_names_ = AllocateNameStrings(scope, proto.name(), alloc);
 7026|     20|  ValidateSymbolName(proto.name(), result->full_name(), proto);
 7027|     20|  result->file_ = file_;
 7028|     20|  result->containing_type_ = parent;
 7029|     20|  result->is_placeholder_ = false;
 7030|     20|  result->is_unqualified_placeholder_ = false;
 7031|       |
 7032|     20|  if (proto.value_size() == 0) {
  ------------------
  |  Branch (7032:7): [True: 0, False: 20]
  ------------------
 7033|       |    // We cannot allow enums with no values because this would mean there
 7034|       |    // would be no valid default value for fields of this type.
 7035|      0|    AddError(result->full_name(), proto, DescriptorPool::ErrorCollector::NAME,
 7036|      0|             "Enums must contain at least one value.");
 7037|      0|  }
 7038|       |
 7039|       |  // Calculate the continuous sequence of the labels.
 7040|       |  // These can be fast-path'd during lookup and don't need to be added to the
 7041|       |  // tables.
 7042|       |  // We use uint16_t to save space for sequential_value_limit_, so stop before
 7043|       |  // overflowing it. Worst case, we are not taking full advantage on huge
 7044|       |  // enums, but it is unlikely.
 7045|     20|  for (int i = 0;
 7046|     97|       i < std::numeric_limits<uint16_t>::max() && i < proto.value_size() &&
  ------------------
  |  Branch (7046:8): [True: 97, False: 0]
  |  Branch (7046:52): [True: 81, False: 16]
  ------------------
 7047|       |       // We do the math in int64_t to avoid overflows.
 7048|     81|       proto.value(i).number() ==
  ------------------
  |  Branch (7048:8): [True: 77, False: 4]
  ------------------
 7049|     81|           static_cast<int64_t>(i) + proto.value(0).number();
 7050|     77|       ++i) {
 7051|     77|    result->sequential_value_limit_ = i;
 7052|     77|  }
 7053|       |
 7054|     20|  BUILD_ARRAY(proto, result, value, BuildEnumValue, result);
  ------------------
  |  | 5627|     20|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     20|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     20|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     20|      INPUT.NAME##_size());                                            \
  |  | 5631|    131|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 111, False: 20]
  |  |  ------------------
  |  | 5632|    111|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|    111|  }
  ------------------
 7055|     20|  BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
  ------------------
  |  | 5627|     20|  OUTPUT->NAME##_count_ = INPUT.NAME##_size();                         \
  |  | 5628|     20|  OUTPUT->NAME##s_ = alloc.AllocateArray<                              \
  |  | 5629|     20|      typename std::remove_pointer<decltype(OUTPUT->NAME##s_)>::type>( \
  |  | 5630|     20|      INPUT.NAME##_size());                                            \
  |  | 5631|     21|  for (int i = 0; i < INPUT.NAME##_size(); i++) {                      \
  |  |  ------------------
  |  |  |  Branch (5631:19): [True: 1, False: 20]
  |  |  ------------------
  |  | 5632|      1|    METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i, alloc);        \
  |  | 5633|      1|  }
  ------------------
 7056|       |
 7057|       |  // Copy reserved names.
 7058|     20|  int reserved_name_count = proto.reserved_name_size();
 7059|     20|  result->reserved_name_count_ = reserved_name_count;
 7060|     20|  result->reserved_names_ =
 7061|     20|      alloc.AllocateArray<const std::string*>(reserved_name_count);
 7062|     20|  for (int i = 0; i < reserved_name_count; ++i) {
  ------------------
  |  Branch (7062:19): [True: 0, False: 20]
  ------------------
 7063|      0|    result->reserved_names_[i] = alloc.AllocateStrings(proto.reserved_name(i));
 7064|      0|  }
 7065|       |
 7066|       |  // Copy options.
 7067|     20|  AllocateOptions(proto, result, EnumDescriptorProto::kOptionsFieldNumber,
 7068|     20|                  "google.protobuf.EnumOptions", alloc);
 7069|       |
 7070|     20|  AddSymbol(result->full_name(), parent, result->name(), proto, Symbol(result));
 7071|       |
 7072|     21|  for (int i = 0; i < proto.reserved_range_size(); i++) {
  ------------------
  |  Branch (7072:19): [True: 1, False: 20]
  ------------------
 7073|      1|    const EnumDescriptorProto_EnumReservedRange& range1 =
 7074|      1|        proto.reserved_range(i);
 7075|      1|    for (int j = i + 1; j < proto.reserved_range_size(); j++) {
  ------------------
  |  Branch (7075:25): [True: 0, False: 1]
  ------------------
 7076|      0|      const EnumDescriptorProto_EnumReservedRange& range2 =
 7077|      0|          proto.reserved_range(j);
 7078|      0|      if (range1.end() >= range2.start() && range2.end() >= range1.start()) {
  ------------------
  |  Branch (7078:11): [True: 0, False: 0]
  |  Branch (7078:45): [True: 0, False: 0]
  ------------------
 7079|      0|        AddError(result->full_name(), proto.reserved_range(i),
 7080|      0|                 DescriptorPool::ErrorCollector::NUMBER, [&] {
 7081|      0|                   return absl::Substitute(
 7082|      0|                       "Reserved range $0 to $1 overlaps with "
 7083|      0|                       "already-defined range $2 to $3.",
 7084|      0|                       range2.start(), range2.end(), range1.start(),
 7085|      0|                       range1.end());
 7086|      0|                 });
 7087|      0|      }
 7088|      0|    }
 7089|      1|  }
 7090|       |
 7091|     20|  absl::flat_hash_set<absl::string_view> reserved_name_set;
 7092|     20|  for (const std::string& name : proto.reserved_name()) {
  ------------------
  |  Branch (7092:32): [True: 0, False: 20]
  ------------------
 7093|      0|    if (!reserved_name_set.insert(name).second) {
  ------------------
  |  Branch (7093:9): [True: 0, False: 0]
  ------------------
 7094|      0|      AddError(name, proto, DescriptorPool::ErrorCollector::NAME, [&] {
 7095|      0|        return absl::Substitute("Enum value \"$0\" is reserved multiple times.",
 7096|      0|                                name);
 7097|      0|      });
 7098|      0|    }
 7099|      0|  }
 7100|       |
 7101|    131|  for (int i = 0; i < result->value_count(); i++) {
  ------------------
  |  Branch (7101:19): [True: 111, False: 20]
  ------------------
 7102|    111|    const EnumValueDescriptor* value = result->value(i);
 7103|    114|    for (int j = 0; j < result->reserved_range_count(); j++) {
  ------------------
  |  Branch (7103:21): [True: 3, False: 111]
  ------------------
 7104|      3|      const EnumDescriptor::ReservedRange* range = result->reserved_range(j);
 7105|      3|      if (range->start <= value->number() && value->number() <= range->end) {
  ------------------
  |  Branch (7105:11): [True: 2, False: 1]
  |  Branch (7105:46): [True: 0, False: 2]
  ------------------
 7106|      0|        AddError(value->full_name(), proto.reserved_range(j),
 7107|      0|                 DescriptorPool::ErrorCollector::NUMBER, [&] {
 7108|      0|                   return absl::Substitute(
 7109|      0|                       "Enum value \"$0\" uses reserved number $1.",
 7110|      0|                       value->name(), value->number());
 7111|      0|                 });
 7112|      0|      }
 7113|      3|    }
 7114|    111|    if (reserved_name_set.contains(value->name())) {
  ------------------
  |  Branch (7114:9): [True: 0, False: 111]
  ------------------
 7115|      0|      AddError(value->full_name(), proto.value(i),
 7116|      0|               DescriptorPool::ErrorCollector::NAME, [&] {
 7117|      0|                 return absl::Substitute("Enum value \"$0\" is reserved.",
 7118|      0|                                         value->name());
 7119|      0|               });
 7120|      0|    }
 7121|    111|  }
 7122|     20|}
_ZN6google8protobuf17DescriptorBuilder14BuildEnumValueERKNS0_24EnumValueDescriptorProtoEPKNS0_14EnumDescriptorEPNS0_19EnumValueDescriptorERNS0_8internal13FlatAllocatorE:
 7127|    111|                                       internal::FlatAllocator& alloc) {
 7128|       |  // Note:  full_name for enum values is a sibling to the parent's name, not a
 7129|       |  //   child of it.
 7130|    111|  std::string full_name;
 7131|    111|  size_t scope_len = parent->full_name().size() - parent->name().size();
 7132|    111|  full_name.reserve(scope_len + proto.name().size());
 7133|    111|  full_name.append(parent->full_name().data(), scope_len);
 7134|    111|  full_name.append(proto.name());
 7135|       |
 7136|    111|  result->all_names_ =
 7137|    111|      alloc.AllocateStrings(proto.name(), std::move(full_name));
 7138|    111|  result->number_ = proto.number();
 7139|    111|  result->type_ = parent;
 7140|       |
 7141|    111|  ValidateSymbolName(proto.name(), result->full_name(), proto);
 7142|       |
 7143|       |  // Copy options.
 7144|    111|  AllocateOptions(proto, result, EnumValueDescriptorProto::kOptionsFieldNumber,
 7145|    111|                  "google.protobuf.EnumValueOptions", alloc);
 7146|       |
 7147|       |  // Again, enum values are weird because we makes them appear as siblings
 7148|       |  // of the enum type instead of children of it.  So, we use
 7149|       |  // parent->containing_type() as the value's parent.
 7150|    111|  bool added_to_outer_scope =
 7151|    111|      AddSymbol(result->full_name(), parent->containing_type(), result->name(),
 7152|    111|                proto, Symbol::EnumValue(result, 0));
 7153|       |
 7154|       |  // However, we also want to be able to search for values within a single
 7155|       |  // enum type, so we add it as a child of the enum type itself, too.
 7156|       |  // Note:  This could fail, but if it does, the error has already been
 7157|       |  //   reported by the above AddSymbol() call, so we ignore the return code.
 7158|    111|  bool added_to_inner_scope = file_tables_->AddAliasUnderParent(
 7159|    111|      parent, result->name(), Symbol::EnumValue(result, 1));
 7160|       |
 7161|    111|  if (added_to_inner_scope && !added_to_outer_scope) {
  ------------------
  |  Branch (7161:7): [True: 111, False: 0]
  |  Branch (7161:31): [True: 0, False: 111]
  ------------------
 7162|       |    // This value did not conflict with any values defined in the same enum,
 7163|       |    // but it did conflict with some other symbol defined in the enum type's
 7164|       |    // scope.  Let's print an additional error to explain this.
 7165|      0|    std::string outer_scope;
 7166|      0|    if (parent->containing_type() == nullptr) {
  ------------------
  |  Branch (7166:9): [True: 0, False: 0]
  ------------------
 7167|      0|      outer_scope = file_->package();
 7168|      0|    } else {
 7169|      0|      outer_scope = parent->containing_type()->full_name();
 7170|      0|    }
 7171|       |
 7172|      0|    if (outer_scope.empty()) {
  ------------------
  |  Branch (7172:9): [True: 0, False: 0]
  ------------------
 7173|      0|      outer_scope = "the global scope";
 7174|      0|    } else {
 7175|      0|      outer_scope = absl::StrCat("\"", outer_scope, "\"");
 7176|      0|    }
 7177|       |
 7178|      0|    AddError(
 7179|      0|        result->full_name(), proto, DescriptorPool::ErrorCollector::NAME, [&] {
 7180|      0|          return absl::StrCat(
 7181|      0|              "Note that enum values use C++ scoping rules, meaning that "
 7182|      0|              "enum values are siblings of their type, not children of it.  "
 7183|      0|              "Therefore, \"",
 7184|      0|              result->name(), "\" must be unique within ", outer_scope,
 7185|      0|              ", not just within \"", parent->name(), "\".");
 7186|      0|        });
 7187|      0|  }
 7188|       |
 7189|       |  // An enum is allowed to define two numbers that refer to the same value.
 7190|       |  // FindValueByNumber() should return the first such value, so we simply
 7191|       |  // ignore AddEnumValueByNumber()'s return code.
 7192|    111|  file_tables_->AddEnumValueByNumber(result);
 7193|    111|}
_ZN6google8protobuf17DescriptorBuilder13CrossLinkFileEPNS0_14FileDescriptorERKNS0_19FileDescriptorProtoE:
 7243|      4|                                      const FileDescriptorProto& proto) {
 7244|     35|  for (int i = 0; i < file->message_type_count(); i++) {
  ------------------
  |  Branch (7244:19): [True: 31, False: 4]
  ------------------
 7245|     31|    CrossLinkMessage(&file->message_types_[i], proto.message_type(i));
 7246|     31|  }
 7247|       |
 7248|      5|  for (int i = 0; i < file->extension_count(); i++) {
  ------------------
  |  Branch (7248:19): [True: 1, False: 4]
  ------------------
 7249|      1|    CrossLinkField(&file->extensions_[i], proto.extension(i));
 7250|      1|  }
 7251|       |
 7252|      4|  for (int i = 0; i < file->service_count(); i++) {
  ------------------
  |  Branch (7252:19): [True: 0, False: 4]
  ------------------
 7253|      0|    CrossLinkService(&file->services_[i], proto.service(i));
 7254|      0|  }
 7255|      4|}
_ZN6google8protobuf17DescriptorBuilder16CrossLinkMessageEPNS0_10DescriptorERKNS0_15DescriptorProtoE:
 7258|     41|                                         const DescriptorProto& proto) {
 7259|     51|  for (int i = 0; i < message->nested_type_count(); i++) {
  ------------------
  |  Branch (7259:19): [True: 10, False: 41]
  ------------------
 7260|     10|    CrossLinkMessage(&message->nested_types_[i], proto.nested_type(i));
 7261|     10|  }
 7262|       |
 7263|    243|  for (int i = 0; i < message->field_count(); i++) {
  ------------------
  |  Branch (7263:19): [True: 202, False: 41]
  ------------------
 7264|    202|    CrossLinkField(&message->fields_[i], proto.field(i));
 7265|    202|  }
 7266|       |
 7267|     41|  for (int i = 0; i < message->extension_count(); i++) {
  ------------------
  |  Branch (7267:19): [True: 0, False: 41]
  ------------------
 7268|      0|    CrossLinkField(&message->extensions_[i], proto.extension(i));
 7269|      0|  }
 7270|       |
 7271|       |  // Set up field array for each oneof.
 7272|       |
 7273|       |  // First count the number of fields per oneof.
 7274|    243|  for (int i = 0; i < message->field_count(); i++) {
  ------------------
  |  Branch (7274:19): [True: 202, False: 41]
  ------------------
 7275|    202|    const OneofDescriptor* oneof_decl = message->field(i)->containing_oneof();
 7276|    202|    if (oneof_decl != nullptr) {
  ------------------
  |  Branch (7276:9): [True: 3, False: 199]
  ------------------
 7277|       |      // Make sure fields belonging to the same oneof are defined consecutively.
 7278|       |      // This enables optimizations in codegens and reflection libraries to
 7279|       |      // skip fields in the oneof group, as only one of the field can be set.
 7280|       |      // Note that field_count() returns how many fields in this oneof we have
 7281|       |      // seen so far. field_count() > 0 guarantees that i > 0, so field(i-1) is
 7282|       |      // safe.
 7283|      3|      if (oneof_decl->field_count() > 0 &&
  ------------------
  |  Branch (7283:11): [True: 2, False: 1]
  ------------------
 7284|      2|          message->field(i - 1)->containing_oneof() != oneof_decl) {
  ------------------
  |  Branch (7284:11): [True: 0, False: 2]
  ------------------
 7285|      0|        AddError(
 7286|      0|            absl::StrCat(message->full_name(), ".",
 7287|      0|                         message->field(i - 1)->name()),
 7288|      0|            proto.field(i - 1), DescriptorPool::ErrorCollector::TYPE, [&] {
 7289|      0|              return absl::Substitute(
 7290|      0|                  "Fields in the same oneof must be defined consecutively. "
 7291|      0|                  "\"$0\" cannot be defined before the completion of the "
 7292|      0|                  "\"$1\" oneof definition.",
 7293|      0|                  message->field(i - 1)->name(), oneof_decl->name());
 7294|      0|            });
 7295|      0|      }
 7296|       |      // Must go through oneof_decls_ array to get a non-const version of the
 7297|       |      // OneofDescriptor.
 7298|      3|      auto& out_oneof_decl = message->oneof_decls_[oneof_decl->index()];
 7299|      3|      if (out_oneof_decl.field_count_ == 0) {
  ------------------
  |  Branch (7299:11): [True: 1, False: 2]
  ------------------
 7300|      1|        out_oneof_decl.fields_ = message->field(i);
 7301|      1|      }
 7302|       |
 7303|      3|      if (!had_errors_) {
  ------------------
  |  Branch (7303:11): [True: 3, False: 0]
  ------------------
 7304|       |        // Verify that they are contiguous.
 7305|       |        // This is assumed by OneofDescriptor::field(i).
 7306|       |        // But only if there are no errors.
 7307|      3|        ABSL_CHECK_EQ(out_oneof_decl.fields_ + out_oneof_decl.field_count_,
  ------------------
  |  |   50|      3|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      3|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      3|  while (                                                                      \
  |  |  |  |  |  |   62|      3|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 3]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      3|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      3|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      3|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      3|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      3|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      3|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 7308|      3|                      message->field(i));
 7309|      3|      }
 7310|      3|      ++out_oneof_decl.field_count_;
 7311|      3|    }
 7312|    202|  }
 7313|       |
 7314|       |  // Then verify the sizes.
 7315|     42|  for (int i = 0; i < message->oneof_decl_count(); i++) {
  ------------------
  |  Branch (7315:19): [True: 1, False: 41]
  ------------------
 7316|      1|    OneofDescriptor* oneof_decl = &message->oneof_decls_[i];
 7317|       |
 7318|      1|    if (oneof_decl->field_count() == 0) {
  ------------------
  |  Branch (7318:9): [True: 0, False: 1]
  ------------------
 7319|      0|      AddError(absl::StrCat(message->full_name(), ".", oneof_decl->name()),
 7320|      0|               proto.oneof_decl(i), DescriptorPool::ErrorCollector::NAME,
 7321|      0|               "Oneof must have at least one field.");
 7322|      0|    }
 7323|      1|  }
 7324|       |
 7325|    243|  for (int i = 0; i < message->field_count(); i++) {
  ------------------
  |  Branch (7325:19): [True: 202, False: 41]
  ------------------
 7326|    202|    const FieldDescriptor* field = message->field(i);
 7327|    202|    if (field->proto3_optional_) {
  ------------------
  |  Branch (7327:9): [True: 0, False: 202]
  ------------------
 7328|      0|      if (!field->containing_oneof() ||
  ------------------
  |  Branch (7328:11): [True: 0, False: 0]
  ------------------
 7329|      0|          !field->containing_oneof()->is_synthetic()) {
  ------------------
  |  Branch (7329:11): [True: 0, False: 0]
  ------------------
 7330|      0|        AddError(message->full_name(), proto.field(i),
 7331|      0|                 DescriptorPool::ErrorCollector::OTHER,
 7332|      0|                 "Fields with proto3_optional set must be "
 7333|      0|                 "a member of a one-field oneof");
 7334|      0|      }
 7335|      0|    }
 7336|    202|  }
 7337|       |
 7338|       |  // Synthetic oneofs must be last.
 7339|     41|  int first_synthetic = -1;
 7340|     42|  for (int i = 0; i < message->oneof_decl_count(); i++) {
  ------------------
  |  Branch (7340:19): [True: 1, False: 41]
  ------------------
 7341|      1|    if (message->oneof_decl(i)->is_synthetic()) {
  ------------------
  |  Branch (7341:9): [True: 0, False: 1]
  ------------------
 7342|      0|      if (first_synthetic == -1) {
  ------------------
  |  Branch (7342:11): [True: 0, False: 0]
  ------------------
 7343|      0|        first_synthetic = i;
 7344|      0|      }
 7345|      1|    } else {
 7346|      1|      if (first_synthetic != -1) {
  ------------------
  |  Branch (7346:11): [True: 0, False: 1]
  ------------------
 7347|      0|        AddError(message->full_name(), proto.oneof_decl(i),
 7348|      0|                 DescriptorPool::ErrorCollector::OTHER,
 7349|      0|                 "Synthetic oneofs must be after all other oneofs");
 7350|      0|      }
 7351|      1|    }
 7352|      1|  }
 7353|       |
 7354|     41|  if (first_synthetic == -1) {
  ------------------
  |  Branch (7354:7): [True: 41, False: 0]
  ------------------
 7355|     41|    message->real_oneof_decl_count_ = message->oneof_decl_count_;
 7356|     41|  } else {
 7357|      0|    message->real_oneof_decl_count_ = first_synthetic;
 7358|      0|  }
 7359|     41|}
_ZN6google8protobuf17DescriptorBuilder14CrossLinkFieldEPNS0_15FieldDescriptorERKNS0_20FieldDescriptorProtoE:
 7425|    203|                                       const FieldDescriptorProto& proto) {
 7426|    203|  if (proto.has_extendee()) {
  ------------------
  |  Branch (7426:7): [True: 1, False: 202]
  ------------------
 7427|      1|    Symbol extendee =
 7428|      1|        LookupSymbol(proto.extendee(), field->full_name(),
 7429|      1|                     DescriptorPool::PLACEHOLDER_EXTENDABLE_MESSAGE);
 7430|      1|    if (extendee.IsNull()) {
  ------------------
  |  Branch (7430:9): [True: 0, False: 1]
  ------------------
 7431|      0|      AddNotDefinedError(field->full_name(), proto,
 7432|      0|                         DescriptorPool::ErrorCollector::EXTENDEE,
 7433|      0|                         proto.extendee());
 7434|      0|      return;
 7435|      1|    } else if (extendee.type() != Symbol::MESSAGE) {
  ------------------
  |  Branch (7435:16): [True: 0, False: 1]
  ------------------
 7436|      0|      AddError(field->full_name(), proto,
 7437|      0|               DescriptorPool::ErrorCollector::EXTENDEE, [&] {
 7438|      0|                 return absl::StrCat("\"", proto.extendee(),
 7439|      0|                                     "\" is not a message type.");
 7440|      0|               });
 7441|      0|      return;
 7442|      0|    }
 7443|      1|    field->containing_type_ = extendee.descriptor();
 7444|       |
 7445|      1|    const Descriptor::ExtensionRange* extension_range =
 7446|      1|        field->containing_type()->FindExtensionRangeContainingNumber(
 7447|      1|            field->number());
 7448|       |
 7449|      1|    if (extension_range == nullptr) {
  ------------------
  |  Branch (7449:9): [True: 0, False: 1]
  ------------------
 7450|      0|      AddError(field->full_name(), proto,
 7451|      0|               DescriptorPool::ErrorCollector::NUMBER, [&] {
 7452|      0|                 return absl::Substitute(
 7453|      0|                     "\"$0\" does not declare $1 as an "
 7454|      0|                     "extension number.",
 7455|      0|                     field->containing_type()->full_name(), field->number());
 7456|      0|               });
 7457|      0|    }
 7458|      1|  }
 7459|       |
 7460|    203|  if (field->containing_oneof() != nullptr) {
  ------------------
  |  Branch (7460:7): [True: 3, False: 200]
  ------------------
 7461|      3|    if (field->label() != FieldDescriptor::LABEL_OPTIONAL) {
  ------------------
  |  Branch (7461:9): [True: 0, False: 3]
  ------------------
 7462|       |      // Note that this error will never happen when parsing .proto files.
 7463|       |      // It can only happen if you manually construct a FileDescriptorProto
 7464|       |      // that is incorrect.
 7465|      0|      AddError(field->full_name(), proto, DescriptorPool::ErrorCollector::NAME,
 7466|      0|               "Fields of oneofs must themselves have label LABEL_OPTIONAL.");
 7467|      0|    }
 7468|      3|  }
 7469|       |
 7470|    203|  if (proto.has_type_name()) {
  ------------------
  |  Branch (7470:7): [True: 86, False: 117]
  ------------------
 7471|       |    // Assume we are expecting a message type unless the proto contains some
 7472|       |    // evidence that it expects an enum type.  This only makes a difference if
 7473|       |    // we end up creating a placeholder.
 7474|     86|    bool expecting_enum = (proto.type() == FieldDescriptorProto::TYPE_ENUM) ||
  ------------------
  |  Branch (7474:27): [True: 27, False: 59]
  ------------------
 7475|     59|                          proto.has_default_value();
  ------------------
  |  Branch (7475:27): [True: 0, False: 59]
  ------------------
 7476|       |
 7477|       |    // In case of weak fields we force building the dependency. We need to know
 7478|       |    // if the type exist or not. If it doesn't exist we substitute Empty which
 7479|       |    // should only be done if the type can't be found in the generated pool.
 7480|       |    // TODO Ideally we should query the database directly to check
 7481|       |    // if weak fields exist or not so that we don't need to force building
 7482|       |    // weak dependencies. However the name lookup rules for symbols are
 7483|       |    // somewhat complicated, so I defer it too another CL.
 7484|     86|    bool is_weak = !pool_->enforce_weak_ && proto.options().weak();
  ------------------
  |  Branch (7484:20): [True: 86, False: 0]
  |  Branch (7484:45): [True: 0, False: 86]
  ------------------
 7485|     86|    bool is_lazy = pool_->lazily_build_dependencies_ && !is_weak;
  ------------------
  |  Branch (7485:20): [True: 86, False: 0]
  |  Branch (7485:57): [True: 86, False: 0]
  ------------------
 7486|       |
 7487|     86|    Symbol type =
 7488|     86|        LookupSymbol(proto.type_name(), field->full_name(),
 7489|     86|                     expecting_enum ? DescriptorPool::PLACEHOLDER_ENUM
  ------------------
  |  Branch (7489:22): [True: 27, False: 59]
  ------------------
 7490|     86|                                    : DescriptorPool::PLACEHOLDER_MESSAGE,
 7491|     86|                     LOOKUP_TYPES, !is_lazy);
 7492|       |
 7493|     86|    if (type.IsNull()) {
  ------------------
  |  Branch (7493:9): [True: 0, False: 86]
  ------------------
 7494|      0|      if (is_lazy) {
  ------------------
  |  Branch (7494:11): [True: 0, False: 0]
  ------------------
 7495|      0|        ABSL_CHECK(field->type_ == FieldDescriptor::TYPE_MESSAGE ||
  ------------------
  |  |   41|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 7496|      0|                   field->type_ == FieldDescriptor::TYPE_GROUP ||
 7497|      0|                   field->type_ == FieldDescriptor::TYPE_ENUM)
 7498|      0|            << proto;
 7499|       |        // Save the symbol names for later for lookup, and allocate the once
 7500|       |        // object needed for the accessors.
 7501|      0|        const std::string& name = proto.type_name();
 7502|       |
 7503|      0|        int name_sizes = static_cast<int>(name.size() + 1 +
 7504|      0|                                          proto.default_value().size() + 1);
 7505|       |
 7506|      0|        field->type_once_ = ::new (tables_->AllocateBytes(
 7507|      0|            static_cast<int>(sizeof(absl::once_flag)) + name_sizes))
 7508|      0|            absl::once_flag{};
 7509|      0|        char* names = reinterpret_cast<char*>(field->type_once_ + 1);
 7510|       |
 7511|      0|        memcpy(names, name.c_str(), name.size() + 1);
 7512|      0|        memcpy(names + name.size() + 1, proto.default_value().c_str(),
 7513|      0|               proto.default_value().size() + 1);
 7514|       |
 7515|       |        // AddFieldByNumber and AddExtension are done later in this function,
 7516|       |        // and can/must be done if the field type was not found. The related
 7517|       |        // error checking is not necessary when in lazily_build_dependencies_
 7518|       |        // mode, and can't be done without building the type's descriptor,
 7519|       |        // which we don't want to do.
 7520|      0|        file_tables_->AddFieldByNumber(field);
 7521|      0|        if (field->is_extension()) {
  ------------------
  |  Branch (7521:13): [True: 0, False: 0]
  ------------------
 7522|      0|          tables_->AddExtension(field);
 7523|      0|        }
 7524|      0|        return;
 7525|      0|      } else {
 7526|       |        // If the type is a weak type, we change the type to a google.protobuf.Empty
 7527|       |        // field.
 7528|      0|        if (is_weak) {
  ------------------
  |  Branch (7528:13): [True: 0, False: 0]
  ------------------
 7529|      0|          type = FindSymbol(kNonLinkedWeakMessageReplacementName);
 7530|      0|        }
 7531|      0|        if (type.IsNull()) {
  ------------------
  |  Branch (7531:13): [True: 0, False: 0]
  ------------------
 7532|      0|          AddNotDefinedError(field->full_name(), proto,
 7533|      0|                             DescriptorPool::ErrorCollector::TYPE,
 7534|      0|                             proto.type_name());
 7535|      0|          return;
 7536|      0|        }
 7537|      0|      }
 7538|      0|    }
 7539|       |
 7540|     86|    if (!proto.has_type()) {
  ------------------
  |  Branch (7540:9): [True: 0, False: 86]
  ------------------
 7541|       |      // Choose field type based on symbol.
 7542|      0|      if (type.type() == Symbol::MESSAGE) {
  ------------------
  |  Branch (7542:11): [True: 0, False: 0]
  ------------------
 7543|      0|        field->type_ = FieldDescriptor::TYPE_MESSAGE;
 7544|      0|      } else if (type.type() == Symbol::ENUM) {
  ------------------
  |  Branch (7544:18): [True: 0, False: 0]
  ------------------
 7545|      0|        field->type_ = FieldDescriptor::TYPE_ENUM;
 7546|      0|      } else {
 7547|      0|        AddError(field->full_name(), proto,
 7548|      0|                 DescriptorPool::ErrorCollector::TYPE, [&] {
 7549|      0|                   return absl::StrCat("\"", proto.type_name(),
 7550|      0|                                       "\" is not a type.");
 7551|      0|                 });
 7552|      0|        return;
 7553|      0|      }
 7554|      0|    }
 7555|       |
 7556|     86|    if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
  ------------------
  |  Branch (7556:9): [True: 59, False: 27]
  ------------------
 7557|     59|      field->type_descriptor_.message_type = type.descriptor();
 7558|     59|      if (field->type_descriptor_.message_type == nullptr) {
  ------------------
  |  Branch (7558:11): [True: 0, False: 59]
  ------------------
 7559|      0|        AddError(field->full_name(), proto,
 7560|      0|                 DescriptorPool::ErrorCollector::TYPE, [&] {
 7561|      0|                   return absl::StrCat("\"", proto.type_name(),
 7562|      0|                                       "\" is not a message type.");
 7563|      0|                 });
 7564|      0|        return;
 7565|      0|      }
 7566|       |
 7567|     59|      if (field->has_default_value()) {
  ------------------
  |  Branch (7567:11): [True: 0, False: 59]
  ------------------
 7568|      0|        AddError(field->full_name(), proto,
 7569|      0|                 DescriptorPool::ErrorCollector::DEFAULT_VALUE,
 7570|      0|                 "Messages can't have default values.");
 7571|      0|      }
 7572|     59|    } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) {
  ------------------
  |  Branch (7572:16): [True: 27, False: 0]
  ------------------
 7573|     27|      field->type_descriptor_.enum_type = type.enum_descriptor();
 7574|     27|      if (field->type_descriptor_.enum_type == nullptr) {
  ------------------
  |  Branch (7574:11): [True: 0, False: 27]
  ------------------
 7575|      0|        AddError(field->full_name(), proto,
 7576|      0|                 DescriptorPool::ErrorCollector::TYPE, [&] {
 7577|      0|                   return absl::StrCat("\"", proto.type_name(),
 7578|      0|                                       "\" is not an enum type.");
 7579|      0|                 });
 7580|      0|        return;
 7581|      0|      }
 7582|       |
 7583|     27|      if (field->enum_type()->is_placeholder_) {
  ------------------
  |  Branch (7583:11): [True: 0, False: 27]
  ------------------
 7584|       |        // We can't look up default values for placeholder types.  We'll have
 7585|       |        // to just drop them.
 7586|      0|        field->has_default_value_ = false;
 7587|      0|      }
 7588|       |
 7589|     27|      if (field->has_default_value()) {
  ------------------
  |  Branch (7589:11): [True: 5, False: 22]
  ------------------
 7590|       |        // Ensure that the default value is an identifier. Parser cannot always
 7591|       |        // verify this because it does not have complete type information.
 7592|       |        // N.B. that this check yields better error messages but is not
 7593|       |        // necessary for correctness (an enum symbol must be a valid identifier
 7594|       |        // anyway), only for better errors.
 7595|      5|        if (!io::Tokenizer::IsIdentifier(proto.default_value())) {
  ------------------
  |  Branch (7595:13): [True: 0, False: 5]
  ------------------
 7596|      0|          AddError(field->full_name(), proto,
 7597|      0|                   DescriptorPool::ErrorCollector::DEFAULT_VALUE,
 7598|      0|                   "Default value for an enum field must be an identifier.");
 7599|      5|        } else {
 7600|       |          // We can't just use field->enum_type()->FindValueByName() here
 7601|       |          // because that locks the pool's mutex, which we have already locked
 7602|       |          // at this point.
 7603|      5|          const EnumValueDescriptor* default_value =
 7604|      5|              LookupSymbolNoPlaceholder(proto.default_value(),
 7605|      5|                                        field->enum_type()->full_name())
 7606|      5|                  .enum_value_descriptor();
 7607|       |
 7608|      5|          if (default_value != nullptr &&
  ------------------
  |  Branch (7608:15): [True: 5, False: 0]
  ------------------
 7609|      5|              default_value->type() == field->enum_type()) {
  ------------------
  |  Branch (7609:15): [True: 5, False: 0]
  ------------------
 7610|      5|            field->default_value_enum_ = default_value;
 7611|      5|          } else {
 7612|      0|            AddError(field->full_name(), proto,
 7613|      0|                     DescriptorPool::ErrorCollector::DEFAULT_VALUE, [&] {
 7614|      0|                       return absl::StrCat("Enum type \"",
 7615|      0|                                           field->enum_type()->full_name(),
 7616|      0|                                           "\" has no value named \"",
 7617|      0|                                           proto.default_value(), "\".");
 7618|      0|                     });
 7619|      0|          }
 7620|      5|        }
 7621|     22|      } else if (field->enum_type()->value_count() > 0) {
  ------------------
  |  Branch (7621:18): [True: 22, False: 0]
  ------------------
 7622|       |        // All enums must have at least one value, or we would have reported
 7623|       |        // an error elsewhere.  We use the first defined value as the default
 7624|       |        // if a default is not explicitly defined.
 7625|     22|        field->default_value_enum_ = field->enum_type()->value(0);
 7626|     22|      }
 7627|     27|    } else {
 7628|      0|      AddError(field->full_name(), proto, DescriptorPool::ErrorCollector::TYPE,
 7629|      0|               "Field with primitive type has type_name.");
 7630|      0|    }
 7631|    117|  } else {
 7632|    117|    if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE ||
  ------------------
  |  Branch (7632:9): [True: 0, False: 117]
  ------------------
 7633|    117|        field->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) {
  ------------------
  |  Branch (7633:9): [True: 0, False: 117]
  ------------------
 7634|      0|      AddError(field->full_name(), proto, DescriptorPool::ErrorCollector::TYPE,
 7635|      0|               "Field with message or enum type missing type_name.");
 7636|      0|    }
 7637|    117|  }
 7638|       |
 7639|       |  // Add the field to the fields-by-number table.
 7640|       |  // Note:  We have to do this *after* cross-linking because extensions do not
 7641|       |  // know their containing type until now. If we're in
 7642|       |  // lazily_build_dependencies_ mode, we're guaranteed there's no errors, so no
 7643|       |  // risk to calling containing_type() or other accessors that will build
 7644|       |  // dependencies.
 7645|    203|  if (!file_tables_->AddFieldByNumber(field)) {
  ------------------
  |  Branch (7645:7): [True: 0, False: 203]
  ------------------
 7646|      0|    const FieldDescriptor* conflicting_field = file_tables_->FindFieldByNumber(
 7647|      0|        field->containing_type(), field->number());
 7648|      0|    const absl::string_view containing_type_name =
 7649|      0|        field->containing_type() == nullptr
  ------------------
  |  Branch (7649:9): [True: 0, False: 0]
  ------------------
 7650|      0|            ? absl::string_view("unknown")
 7651|      0|            : field->containing_type()->full_name();
 7652|      0|    if (field->is_extension()) {
  ------------------
  |  Branch (7652:9): [True: 0, False: 0]
  ------------------
 7653|      0|      AddError(field->full_name(), proto,
 7654|      0|               DescriptorPool::ErrorCollector::NUMBER, [&] {
 7655|      0|                 return absl::Substitute(
 7656|      0|                     "Extension number $0 has already been used "
 7657|      0|                     "in \"$1\" by extension \"$2\".",
 7658|      0|                     field->number(), containing_type_name,
 7659|      0|                     conflicting_field->full_name());
 7660|      0|               });
 7661|      0|    } else {
 7662|      0|      AddError(field->full_name(), proto,
 7663|      0|               DescriptorPool::ErrorCollector::NUMBER, [&] {
 7664|      0|                 return absl::Substitute(
 7665|      0|                     "Field number $0 has already been used in "
 7666|      0|                     "\"$1\" by field \"$2\".",
 7667|      0|                     field->number(), containing_type_name,
 7668|      0|                     conflicting_field->name());
 7669|      0|               });
 7670|      0|    }
 7671|    203|  } else {
 7672|    203|    if (field->is_extension()) {
  ------------------
  |  Branch (7672:9): [True: 1, False: 202]
  ------------------
 7673|      1|      if (!tables_->AddExtension(field)) {
  ------------------
  |  Branch (7673:11): [True: 0, False: 1]
  ------------------
 7674|      0|        auto make_error = [&] {
 7675|      0|          const FieldDescriptor* conflicting_field =
 7676|      0|              tables_->FindExtension(field->containing_type(), field->number());
 7677|      0|          const absl::string_view containing_type_name =
 7678|      0|              field->containing_type() == nullptr
 7679|      0|                  ? absl::string_view("unknown")
 7680|      0|                  : field->containing_type()->full_name();
 7681|      0|          return absl::Substitute(
 7682|      0|              "Extension number $0 has already been used in \"$1\" by "
 7683|      0|              "extension "
 7684|      0|              "\"$2\" defined in $3.",
 7685|      0|              field->number(), containing_type_name,
 7686|      0|              conflicting_field->full_name(),
 7687|      0|              conflicting_field->file()->name());
 7688|      0|        };
 7689|       |        // Conflicting extension numbers should be an error. However, before
 7690|       |        // turning this into an error we need to fix all existing broken
 7691|       |        // protos first.
 7692|       |        // TODO: Change this to an error.
 7693|      0|        AddWarning(field->full_name(), proto,
 7694|      0|                   DescriptorPool::ErrorCollector::NUMBER, make_error);
 7695|      0|      }
 7696|      1|    }
 7697|    203|  }
 7698|    203|}
_ZN6google8protobuf17DescriptorBuilder17OptionInterpreterC2EPS1_:
 8612|      4|    : builder_(builder) {
 8613|      4|  ABSL_CHECK(builder_);
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 8614|      4|}
_ZN6google8protobuf17DescriptorBuilder17OptionInterpreterD2Ev:
 8616|      4|DescriptorBuilder::OptionInterpreter::~OptionInterpreter() = default;
_ZNK6google8protobuf15FieldDescriptor12message_typeEv:
 9676|   172k|const Descriptor* FieldDescriptor::message_type() const {
 9677|   172k|  if (type_ == TYPE_MESSAGE || type_ == TYPE_GROUP) {
  ------------------
  |  Branch (9677:7): [True: 172k, False: 0]
  |  Branch (9677:32): [True: 0, False: 0]
  ------------------
 9678|   172k|    if (type_once_) {
  ------------------
  |  Branch (9678:9): [True: 0, False: 172k]
  ------------------
 9679|      0|      absl::call_once(*type_once_, FieldDescriptor::TypeOnceInit, this);
 9680|      0|    }
 9681|   172k|    return type_descriptor_.message_type;
 9682|   172k|  }
 9683|      0|  return nullptr;
 9684|   172k|}
_ZNK6google8protobuf15FieldDescriptor9enum_typeEv:
 9686|     81|const EnumDescriptor* FieldDescriptor::enum_type() const {
 9687|     81|  if (type_ == TYPE_ENUM) {
  ------------------
  |  Branch (9687:7): [True: 81, False: 0]
  ------------------
 9688|     81|    if (type_once_) {
  ------------------
  |  Branch (9688:9): [True: 0, False: 81]
  ------------------
 9689|      0|      absl::call_once(*type_once_, FieldDescriptor::TypeOnceInit, this);
 9690|      0|    }
 9691|     81|    return type_descriptor_.enum_type;
 9692|     81|  }
 9693|      0|  return nullptr;
 9694|     81|}
_ZN6google8protobuf8internal17ParseNoReflectionEN4absl12lts_2024011611string_viewERNS0_11MessageLiteE:
 9780|     24|bool ParseNoReflection(absl::string_view from, google::protobuf::MessageLite& to) {
 9781|     24|  auto cleanup = DisableTracking();
 9782|       |
 9783|     24|  to.Clear();
 9784|     24|  const char* ptr;
 9785|     24|  internal::ParseContext ctx(io::CodedInputStream::GetDefaultRecursionLimit(),
 9786|     24|                             false, &ptr, from);
 9787|     24|  ptr = to._InternalParse(ptr, &ctx);
 9788|     24|  if (ptr == nullptr || !ctx.EndedAtLimit()) return false;
  ------------------
  |  Branch (9788:7): [True: 0, False: 24]
  |  Branch (9788:25): [True: 0, False: 24]
  ------------------
 9789|     24|  return to.IsInitializedWithErrors();
 9790|     24|}
_ZN6google8protobuf8internal3cpp23IsLazilyInitializedFileEN4absl12lts_2024011611string_viewE:
 9846|      4|bool IsLazilyInitializedFile(absl::string_view filename) {
 9847|      4|  if (filename == "third_party/protobuf/cpp_features.proto" ||
  ------------------
  |  Branch (9847:7): [True: 0, False: 4]
  |  Branch (9847:7): [True: 1, False: 3]
  ------------------
 9848|      4|      filename == "google/protobuf/cpp_features.proto") {
  ------------------
  |  Branch (9848:7): [True: 1, False: 3]
  ------------------
 9849|      1|    return true;
 9850|      1|  }
 9851|      3|  return filename == "net/proto2/proto/descriptor.proto" ||
  ------------------
  |  Branch (9851:10): [True: 0, False: 3]
  ------------------
 9852|      3|         filename == "google/protobuf/descriptor.proto";
  ------------------
  |  Branch (9852:10): [True: 1, False: 2]
  ------------------
 9853|      4|}
_ZNK6google8protobuf14FileDescriptor7editionEv:
 9860|    800|Edition FileDescriptor::edition() const { return edition_; }
_ZNK6google8protobuf14DescriptorPool6Tables10FindSymbolEN4absl12lts_2024011611string_viewE:
 1693|     99|inline Symbol DescriptorPool::Tables::FindSymbol(absl::string_view key) const {
 1694|     99|  auto it = symbols_by_name_.find(FullNameQuery{key});
 1695|     99|  return it == symbols_by_name_.end() ? Symbol() : *it;
  ------------------
  |  Branch (1695:10): [True: 6, False: 93]
  ------------------
 1696|     99|}
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_118SymbolByFullNameEqclINS0_6SymbolENS1_13FullNameQueryEEEbRKT_RKT0_:
  958|     93|  bool operator()(const T& a, const U& b) const {
  959|     93|    return a.full_name() == b.full_name();
  960|     93|  }
_ZNK6google8protobuf6Symbol9full_nameEv:
  707|    977|  absl::string_view full_name() const {
  708|    977|    switch (type()) {
  709|    160|      case MESSAGE:
  ------------------
  |  Branch (709:7): [True: 160, False: 817]
  ------------------
  710|    160|        return descriptor()->full_name();
  711|    534|      case FIELD:
  ------------------
  |  Branch (711:7): [True: 534, False: 443]
  ------------------
  712|    534|        return field_descriptor()->full_name();
  713|      1|      case ONEOF:
  ------------------
  |  Branch (713:7): [True: 1, False: 976]
  ------------------
  714|      1|        return oneof_descriptor()->full_name();
  715|     62|      case ENUM:
  ------------------
  |  Branch (715:7): [True: 62, False: 915]
  ------------------
  716|     62|        return enum_descriptor()->full_name();
  717|    201|      case ENUM_VALUE:
  ------------------
  |  Branch (717:7): [True: 201, False: 776]
  ------------------
  718|    201|        return enum_value_descriptor()->full_name();
  719|      0|      case SERVICE:
  ------------------
  |  Branch (719:7): [True: 0, False: 977]
  ------------------
  720|      0|        return service_descriptor()->full_name();
  721|      0|      case METHOD:
  ------------------
  |  Branch (721:7): [True: 0, False: 977]
  ------------------
  722|      0|        return method_descriptor()->full_name();
  723|      9|      case FULL_PACKAGE:
  ------------------
  |  Branch (723:7): [True: 9, False: 968]
  ------------------
  724|      9|        return file_descriptor()->package();
  725|     10|      case SUB_PACKAGE:
  ------------------
  |  Branch (725:7): [True: 10, False: 967]
  ------------------
  726|     10|        return absl::string_view(sub_package_file_descriptor()->file->package())
  727|     10|            .substr(0, sub_package_file_descriptor()->name_size);
  728|      0|      default:
  ------------------
  |  Branch (728:7): [True: 0, False: 977]
  ------------------
  729|      0|        ABSL_CHECK(false);
  ------------------
  |  |   41|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  730|    977|    }
  731|      0|    return "";
  732|    977|  }
_ZNK6google8protobuf6Symbol15file_descriptorEv:
  622|      9|  const TYPE* FIELD() const {                                                  \
  623|      9|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 9, False: 0]
  ------------------
  624|      9|  }
_ZNK6google8protobuf6Symbol27sub_package_file_descriptorEv:
  622|     20|  const TYPE* FIELD() const {                                                  \
  623|     20|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 20, False: 0]
  ------------------
  624|     20|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_113FullNameQuery9full_nameEv:
  944|    192|  absl::string_view full_name() const { return query; }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashclINS1_13FullNameQueryEEEmRKT_:
  950|     99|  size_t operator()(const T& s) const {
  951|     99|    return absl::HashOf(s.full_name());
  952|     99|  }
_ZNK6google8protobuf6Symbol6IsNullEv:
  673|    462|  bool IsNull() const { return type() == NULL_SYMBOL; }
_ZN6google8protobuf14DescriptorPool18DeferredValidationC2EPKS1_:
 1337|      4|      : pool_(pool), error_collector_(pool->default_error_collector_) {}
_ZN6google8protobuf6SymbolC2Ev:
  607|    228|  Symbol() {
  608|    228|    static constexpr internal::SymbolBase null_symbol{};
  609|    228|    static_assert(null_symbol.symbol_type_ == NULL_SYMBOL, "");
  610|       |    // Initialize with a sentinel to make sure `ptr_` is never null.
  611|    228|    ptr_ = &null_symbol;
  612|    228|  }
_ZN6google8protobuf14DescriptorPool18DeferredValidation8ValidateEv:
 1373|      4|  bool Validate() {
 1374|      4|    if (lifetimes_info_map_.empty()) return true;
  ------------------
  |  Branch (1374:9): [True: 4, False: 0]
  ------------------
 1375|       |
 1376|      0|    static absl::string_view feature_set_name = "google.protobuf.FeatureSet";
 1377|      0|    const Descriptor* feature_set =
 1378|      0|        pool_->FindMessageTypeByName(feature_set_name);
 1379|       |
 1380|      0|    bool has_errors = false;
 1381|      0|    for (const auto& it : lifetimes_info_map_) {
  ------------------
  |  Branch (1381:25): [True: 0, False: 0]
  ------------------
 1382|      0|      const FileDescriptor* file = it.first;
 1383|       |
 1384|      0|      for (const auto& info : it.second) {
  ------------------
  |  Branch (1384:29): [True: 0, False: 0]
  ------------------
 1385|      0|        auto results = FeatureResolver::ValidateFeatureLifetimes(
 1386|      0|            file->edition(), *info.proto_features, feature_set);
 1387|      0|        for (const auto& error : results.errors) {
  ------------------
  |  Branch (1387:32): [True: 0, False: 0]
  ------------------
 1388|      0|          has_errors = true;
 1389|      0|          if (error_collector_ == nullptr) {
  ------------------
  |  Branch (1389:15): [True: 0, False: 0]
  ------------------
 1390|      0|            ABSL_LOG(ERROR)
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1391|      0|                << info.filename << " " << info.full_name << ": " << error;
 1392|      0|          } else {
 1393|      0|            error_collector_->RecordError(
 1394|      0|                info.filename, info.full_name, info.proto,
 1395|      0|                DescriptorPool::ErrorCollector::NAME, error);
 1396|      0|          }
 1397|      0|        }
 1398|      0|        if (pool_->direct_input_files_.find(file->name()) !=
  ------------------
  |  Branch (1398:13): [True: 0, False: 0]
  ------------------
 1399|      0|            pool_->direct_input_files_.end()) {
 1400|      0|          for (const auto& warning : results.warnings) {
  ------------------
  |  Branch (1400:36): [True: 0, False: 0]
  ------------------
 1401|      0|            if (error_collector_ == nullptr) {
  ------------------
  |  Branch (1401:17): [True: 0, False: 0]
  ------------------
 1402|      0|              ABSL_LOG(WARNING)
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  168|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   49|      0|  ::absl::log_internal::LogMessage(       \
  |  |  |  |  |  |   50|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::WarningTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1403|      0|                  << info.filename << " " << info.full_name << ": " << warning;
 1404|      0|            } else {
 1405|      0|              error_collector_->RecordWarning(
 1406|      0|                  info.filename, info.full_name, info.proto,
 1407|      0|                  DescriptorPool::ErrorCollector::NAME, warning);
 1408|      0|            }
 1409|      0|          }
 1410|      0|        }
 1411|      0|      }
 1412|      0|    }
 1413|      0|    lifetimes_info_map_.clear();
 1414|      0|    return !has_errors;
 1415|      0|  }
_ZN6google8protobuf14DescriptorPool18DeferredValidationD2Ev:
 1344|      4|  ~DeferredValidation() {
 1345|      8|    ABSL_CHECK(lifetimes_info_map_.empty())
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      4|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      4|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1346|      8|        << "DeferredValidation destroyed with unvalidated features";
 1347|      4|  }
_ZNK6google8protobuf6Symbol16field_descriptorEv:
  622|  1.10k|  const TYPE* FIELD() const {                                                  \
  623|  1.10k|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 1.10k, False: 0]
  ------------------
  624|  1.10k|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_19RoundUpToILi8EEEmm:
  162|    910|constexpr size_t RoundUpTo(size_t n) {
  163|    910|  static_assert((R & (R - 1)) == 0, "Must be power of two");
  164|    910|  return (n + (R - 1)) & ~(R - 1);
  165|    910|}
_ZNK6google8protobuf14DescriptorPool6Tables8FindFileEN4absl12lts_2024011611string_viewE:
 1745|     13|    absl::string_view key) const {
 1746|     13|  auto it = files_by_name_.find(key);
 1747|     13|  if (it == files_by_name_.end()) return nullptr;
  ------------------
  |  Branch (1747:7): [True: 8, False: 5]
  ------------------
 1748|      5|  return *it;
 1749|     13|}
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_119DescriptorsByNameEqINS0_14FileDescriptorEEclEPKS3_N4absl12lts_2024011611string_viewE:
 1011|      5|  bool operator()(const DescriptorT* lhs, absl::string_view rhs) const {
 1012|      5|    return lhs->name() == rhs;
 1013|      5|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS0_14FileDescriptorEEclEN4absl12lts_2024011611string_viewE:
  994|     13|  size_t operator()(absl::string_view name) const { return absl::HashOf(name); }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117GeneratedDatabaseEv:
 2186|      8|EncodedDescriptorDatabase* GeneratedDatabase() {
 2187|      8|  static auto generated_database =
 2188|      8|      internal::OnShutdownDelete(new EncodedDescriptorDatabase());
 2189|      8|  return generated_database;
 2190|      8|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_116NewGeneratedPoolEv:
 2192|      2|DescriptorPool* NewGeneratedPool() {
 2193|      2|  auto generated_pool = new DescriptorPool(GeneratedDatabase());
 2194|      2|  generated_pool->InternalSetLazilyBuildDependencies();
 2195|      2|  return generated_pool;
 2196|      2|}
_ZNK6google8protobuf6Symbol7GetFileEv:
  682|    223|  const FileDescriptor* GetFile() const {
  683|    223|    switch (type()) {
  684|    133|      case MESSAGE:
  ------------------
  |  Branch (684:7): [True: 133, False: 90]
  ------------------
  685|    133|        return descriptor()->file();
  686|      1|      case FIELD:
  ------------------
  |  Branch (686:7): [True: 1, False: 222]
  ------------------
  687|      1|        return field_descriptor()->file();
  688|      0|      case ONEOF:
  ------------------
  |  Branch (688:7): [True: 0, False: 223]
  ------------------
  689|      0|        return oneof_descriptor()->containing_type()->file();
  690|     31|      case ENUM:
  ------------------
  |  Branch (690:7): [True: 31, False: 192]
  ------------------
  691|     31|        return enum_descriptor()->file();
  692|     58|      case ENUM_VALUE:
  ------------------
  |  Branch (692:7): [True: 58, False: 165]
  ------------------
  693|     58|        return enum_value_descriptor()->type()->file();
  694|      0|      case SERVICE:
  ------------------
  |  Branch (694:7): [True: 0, False: 223]
  ------------------
  695|      0|        return service_descriptor()->file();
  696|      0|      case METHOD:
  ------------------
  |  Branch (696:7): [True: 0, False: 223]
  ------------------
  697|      0|        return method_descriptor()->service()->file();
  698|      0|      case FULL_PACKAGE:
  ------------------
  |  Branch (698:7): [True: 0, False: 223]
  ------------------
  699|      0|        return file_descriptor();
  700|      0|      case SUB_PACKAGE:
  ------------------
  |  Branch (700:7): [True: 0, False: 223]
  ------------------
  701|      0|        return sub_package_file_descriptor()->file;
  702|      0|      default:
  ------------------
  |  Branch (702:7): [True: 0, False: 223]
  ------------------
  703|      0|        return nullptr;
  704|    223|    }
  705|    223|  }
_ZNK6google8protobuf6Symbol10descriptorEv:
  622|    547|  const TYPE* FIELD() const {                                                  \
  623|    547|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 547, False: 0]
  ------------------
  624|    547|  }
_ZNK6google8protobuf6Symbol16oneof_descriptorEv:
  622|      9|  const TYPE* FIELD() const {                                                  \
  623|      9|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 9, False: 0]
  ------------------
  624|      9|  }
_ZNK6google8protobuf6Symbol15enum_descriptorEv:
  622|    184|  const TYPE* FIELD() const {                                                  \
  623|    184|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 184, False: 0]
  ------------------
  624|    184|  }
_ZNK6google8protobuf6Symbol21enum_value_descriptorEv:
  660|  1.10k|  const EnumValueDescriptor* enum_value_descriptor() const {
  661|  1.10k|    return type() == ENUM_VALUE
  ------------------
  |  Branch (661:12): [True: 680, False: 424]
  ------------------
  662|  1.10k|               ? static_cast<const EnumValueDescriptor*>(
  663|    680|                     static_cast<const internal::SymbolBaseN<0>*>(ptr_))
  664|  1.10k|           : type() == ENUM_VALUE_OTHER_PARENT
  ------------------
  |  Branch (664:14): [True: 424, False: 0]
  ------------------
  665|    424|               ? static_cast<const EnumValueDescriptor*>(
  666|    424|                     static_cast<const internal::SymbolBaseN<1>*>(ptr_))
  667|    424|               : nullptr;
  668|  1.10k|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_120ObjectToParentNumberEPKNS0_15FieldDescriptorE:
 1031|    213|std::pair<const void*, int> ObjectToParentNumber(const FieldDescriptor* field) {
 1032|    213|  return {field->containing_type(), field->number()};
 1033|    213|}
_ZNK6google8protobuf6Symbol15parent_name_keyEv:
  734|  1.12k|  std::pair<const void*, absl::string_view> parent_name_key() const {
  735|  1.12k|    const auto or_file = [&](const void* p) { return p ? p : GetFile(); };
  736|  1.12k|    switch (type()) {
  737|     97|      case MESSAGE:
  ------------------
  |  Branch (737:7): [True: 97, False: 1.02k]
  ------------------
  738|     97|        return {or_file(descriptor()->containing_type()), descriptor()->name()};
  739|    570|      case FIELD: {
  ------------------
  |  Branch (739:7): [True: 570, False: 553]
  ------------------
  740|    570|        auto* field = field_descriptor();
  741|    570|        return {or_file(field->is_extension() ? field->extension_scope()
  ------------------
  |  Branch (741:25): [True: 1, False: 569]
  ------------------
  742|    570|                                              : field->containing_type()),
  743|    570|                field->name()};
  744|      0|      }
  745|      4|      case ONEOF:
  ------------------
  |  Branch (745:7): [True: 4, False: 1.11k]
  ------------------
  746|      4|        return {oneof_descriptor()->containing_type(),
  747|      4|                oneof_descriptor()->name()};
  748|     32|      case ENUM:
  ------------------
  |  Branch (748:7): [True: 32, False: 1.09k]
  ------------------
  749|     32|        return {or_file(enum_descriptor()->containing_type()),
  750|     32|                enum_descriptor()->name()};
  751|    208|      case ENUM_VALUE:
  ------------------
  |  Branch (751:7): [True: 208, False: 915]
  ------------------
  752|    208|        return {or_file(enum_value_descriptor()->type()->containing_type()),
  753|    208|                enum_value_descriptor()->name()};
  754|    212|      case ENUM_VALUE_OTHER_PARENT:
  ------------------
  |  Branch (754:7): [True: 212, False: 911]
  ------------------
  755|    212|        return {enum_value_descriptor()->type(),
  756|    212|                enum_value_descriptor()->name()};
  757|      0|      case SERVICE:
  ------------------
  |  Branch (757:7): [True: 0, False: 1.12k]
  ------------------
  758|      0|        return {GetFile(), service_descriptor()->name()};
  759|      0|      case METHOD:
  ------------------
  |  Branch (759:7): [True: 0, False: 1.12k]
  ------------------
  760|      0|        return {method_descriptor()->service(), method_descriptor()->name()};
  761|      0|      default:
  ------------------
  |  Branch (761:7): [True: 0, False: 1.12k]
  ------------------
  762|      0|        ABSL_CHECK(false);
  ------------------
  |  |   41|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  763|  1.12k|    }
  764|      0|    return {};
  765|  1.12k|  }
_ZZNK6google8protobuf6Symbol15parent_name_keyEvENKUlPKvE_clES3_:
  735|    907|    const auto or_file = [&](const void* p) { return p ? p : GetFile(); };
  ------------------
  |  Branch (735:54): [True: 776, False: 131]
  ------------------
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_120ObjectToParentNumberEPKNS0_19EnumValueDescriptorE:
 1035|     64|    const EnumValueDescriptor* enum_value) {
 1036|     64|  return {enum_value->type(), enum_value->number()};
 1037|     64|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayIS9_EEPT_i:
  400|    386|  U* AllocateArray(int array_size) {
  401|    386|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|    386|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|    386|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|    386|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    772|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|    386|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    772|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    772|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 386, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|    386|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 386]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    772|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 386, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 386]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 386]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    772|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    772|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|    386|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|    386|    int& used = used_.template Get<TypeToUse>();
  409|    386|    U* res = reinterpret_cast<U*>(data + used);
  410|    386|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [Folded, False: 386]
  ------------------
  411|    386|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|    386|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|    386|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|    386|  while (                                                                      \
  |  |  |  |  |  |   62|    386|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 386]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|    386|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|    386|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|    386|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|    386|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|    386|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|    386|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|    386|    return res;
  413|    386|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13has_allocatedEv:
  541|  2.10k|  bool has_allocated() const {
  542|  2.10k|    return pointers_.template Get<char>() != nullptr;
  543|  2.10k|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetIcEERKPT_v:
  243|  2.10k|  const ValueT<K>& Get() const {
  244|  2.10k|    return static_cast<const Base<K>&>(payload_).value;
  245|  2.10k|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISA_EERPT_v:
  238|    390|  ValueT<K>& Get() {
  239|    390|    return static_cast<Base<K>&>(payload_).value;
  240|    390|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISA_EERiv:
  238|  1.20k|  ValueT<K>& Get() {
  239|  1.20k|    return static_cast<Base<K>&>(payload_).value;
  240|  1.20k|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_14FoldESt16initializer_listINS1_15ExpressionEaterEE:
  159|    406|void Fold(std::initializer_list<ExpressionEater>) {}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEOT_:
  157|    871|  ExpressionEater(T&&) {}  // NOLINT
_ZN6google8protobuf14DescriptorPool18DeferredValidation11CreateProtoEv:
 1368|      4|  FileDescriptorProto& CreateProto() {
 1369|      4|    owned_protos_.push_back(Arena::Create<FileDescriptorProto>(&arena_));
 1370|      4|    return *owned_protos_.back();
 1371|      4|  }
descriptor.cc:_ZZNK6google8protobuf14DescriptorPool29TryFindFileInFallbackDatabaseEN4absl12lts_2024011611string_viewERNS1_18DeferredValidationEENK3$_0clERNS0_18DescriptorDatabaseES4_RNS0_19FileDescriptorProtoE:
 2711|      4|                            FileDescriptorProto& output) PROTOBUF_NOINLINE {
 2712|      4|    return database.FindFileByName(std::string(filename), &output);
 2713|      4|  };
_ZNK6google8protobuf6Symbol9IsPackageEv:
  678|     92|  bool IsPackage() const {
  679|     92|    return type() == FULL_PACKAGE || type() == SUB_PACKAGE;
  ------------------
  |  Branch (679:12): [True: 1, False: 91]
  |  Branch (679:38): [True: 0, False: 91]
  ------------------
  680|     92|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115IsLegacyEditionENS0_7EditionE:
 1198|    597|bool IsLegacyEdition(Edition edition) {
 1199|    597|  return edition < Edition::EDITION_2023;
 1200|    597|}
_ZN6google8protobuf17DescriptorBuilder3NewEPKNS0_14DescriptorPoolEPNS2_6TablesERNS2_18DeferredValidationEPNS2_14ErrorCollectorE:
 4159|      4|      DescriptorPool::ErrorCollector* error_collector) {
 4160|      4|    return std::unique_ptr<DescriptorBuilder>(new DescriptorBuilder(
 4161|      4|        pool, tables, deferred_validation, error_collector));
 4162|      4|  }
descriptor.cc:_ZZNK6google8protobuf14DescriptorPool21BuildFileFromDatabaseERKNS0_19FileDescriptorProtoERNS1_18DeferredValidationEENK3$_0clEv:
 4747|      4|  const auto build_file = [&] {
 4748|      4|    result = DescriptorBuilder::New(this, tables_.get(), deferred_validation,
 4749|      4|                                    default_error_collector_)
 4750|      4|                 ->BuildFile(proto);
 4751|      4|  };
_ZN6google8protobuf6SymbolC2EPNS0_14EnumDescriptorE:
  619|     20|  explicit Symbol(TYPE* value) : ptr_(value) {                                 \
  620|     20|    value->symbol_type_ = TYPE_CONSTANT;                                       \
  621|     20|  }                                                                            \
_ZN6google8protobuf6SymbolC2EPNS0_10DescriptorE:
  619|     41|  explicit Symbol(TYPE* value) : ptr_(value) {                                 \
  620|     41|    value->symbol_type_ = TYPE_CONSTANT;                                       \
  621|     41|  }                                                                            \
_ZN6google8protobuf6SymbolC2EPNS0_14FileDescriptorE:
  619|      3|  explicit Symbol(TYPE* value) : ptr_(value) {                                 \
  620|      3|    value->symbol_type_ = TYPE_CONSTANT;                                       \
  621|      3|  }                                                                            \
_ZN6google8protobuf6SymbolC2EPNS1_10SubpackageE:
  619|      3|  explicit Symbol(TYPE* value) : ptr_(value) {                                 \
  620|      3|    value->symbol_type_ = TYPE_CONSTANT;                                       \
  621|      3|  }                                                                            \
descriptor.cc:_ZN6google8protobufL18PlanAllocationSizeERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorE:
 5798|      4|                               internal::FlatAllocator& alloc) {
 5799|      4|  alloc.PlanArray<FileDescriptor>(1);
 5800|      4|  alloc.PlanArray<FileDescriptorTables>(1);
 5801|      4|  alloc.PlanArray<std::string>(2);  // name + package
 5802|      4|  if (proto.has_options()) alloc.PlanArray<FileOptions>(1);
  ------------------
  |  Branch (5802:7): [True: 2, False: 2]
  ------------------
 5803|      4|  if (proto.has_source_code_info()) alloc.PlanArray<SourceCodeInfo>(1);
  ------------------
  |  Branch (5803:7): [True: 0, False: 4]
  ------------------
 5804|       |
 5805|      4|  PlanAllocationSize(proto.service(), alloc);
 5806|      4|  PlanAllocationSize(proto.message_type(), alloc);
 5807|      4|  PlanAllocationSize(proto.enum_type(), alloc);
 5808|      4|  PlanAllocationSize(proto.extension(), alloc);
 5809|       |
 5810|      4|  alloc.PlanArray<int>(proto.weak_dependency_size());
 5811|      4|  alloc.PlanArray<int>(proto.public_dependency_size());
 5812|      4|  alloc.PlanArray<const FileDescriptor*>(proto.dependency_size());
 5813|      4|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayISB_EEvi:
  382|      4|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|      4|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|      4|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [Folded, False: 4]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|      0|      static_assert(alignof(U) <= 8, "");
  388|      0|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|      4|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      4|      using TypeToUse =
  393|      4|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      4|                                    char, U>::type;
  395|      4|      total_.template Get<TypeToUse>() += array_size;
  396|      4|    }
  397|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISC_EERiv:
  238|     20|  ValueT<K>& Get() {
  239|     20|    return static_cast<Base<K>&>(payload_).value;
  240|     20|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayISL_EEvi:
  382|      2|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|      2|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|      2|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      4|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      2|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      4|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      4|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      2|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      4|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 2]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      4|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      4|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|      2|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [Folded, False: 2]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|      0|      static_assert(alignof(U) <= 8, "");
  388|      0|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|      2|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      2|      using TypeToUse =
  393|      2|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      2|                                    char, U>::type;
  395|      2|      total_.template Get<TypeToUse>() += array_size;
  396|      2|    }
  397|      2|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISM_EERiv:
  238|     18|  ValueT<K>& Get() {
  239|     18|    return static_cast<Base<K>&>(payload_).value;
  240|     18|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISB_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobufL18PlanAllocationSizeERKNS0_16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEEERNS0_8internal13FlatAllocatorE:
 5788|      4|    internal::FlatAllocator& alloc) {
 5789|      4|  alloc.PlanArray<ServiceDescriptor>(services.size());
 5790|      4|  alloc.PlanArray<std::string>(2 * services.size());  // name + full_name
 5791|      4|  for (const auto& service : services) {
  ------------------
  |  Branch (5791:28): [True: 0, False: 4]
  ------------------
 5792|      0|    if (service.has_options()) alloc.PlanArray<ServiceOptions>(1);
  ------------------
  |  Branch (5792:9): [True: 0, False: 0]
  ------------------
 5793|      0|    PlanAllocationSize(service.method(), alloc);
 5794|      0|  }
 5795|      4|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_17ServiceDescriptorEEEvi:
  382|      4|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|      4|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|      4|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 4, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|      4|      static_assert(alignof(U) <= 8, "");
  388|      4|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|      4|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetIcEERiv:
  238|  1.26k|  ValueT<K>& Get() {
  239|  1.26k|    return static_cast<Base<K>&>(payload_).value;
  240|  1.26k|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISK_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISL_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobufL18PlanAllocationSizeERKNS0_16RepeatedPtrFieldINS0_15DescriptorProtoEEERNS0_8internal13FlatAllocatorE:
 5758|     45|    internal::FlatAllocator& alloc) {
 5759|     45|  alloc.PlanArray<Descriptor>(messages.size());
 5760|     45|  alloc.PlanArray<std::string>(2 * messages.size());  // name + full_name
 5761|       |
 5762|     45|  for (const auto& message : messages) {
  ------------------
  |  Branch (5762:28): [True: 41, False: 45]
  ------------------
 5763|     41|    if (message.has_options()) alloc.PlanArray<MessageOptions>(1);
  ------------------
  |  Branch (5763:9): [True: 0, False: 41]
  ------------------
 5764|     41|    PlanAllocationSize(message.nested_type(), alloc);
 5765|     41|    PlanAllocationSize(message.field(), alloc);
 5766|     41|    PlanAllocationSize(message.extension(), alloc);
 5767|     41|    PlanAllocationSize(message.extension_range(), alloc);
 5768|     41|    alloc.PlanArray<Descriptor::ReservedRange>(message.reserved_range_size());
 5769|     41|    alloc.PlanArray<const std::string*>(message.reserved_name_size());
 5770|     41|    alloc.PlanArray<std::string>(message.reserved_name_size());
 5771|     41|    PlanAllocationSize(message.enum_type(), alloc);
 5772|     41|    PlanAllocationSize(message.oneof_decl(), alloc);
 5773|     41|  }
 5774|     45|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISE_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobufL18PlanAllocationSizeERKNS0_16RepeatedPtrFieldINS0_30DescriptorProto_ExtensionRangeEEERNS0_8internal13FlatAllocatorE:
 5749|     41|    internal::FlatAllocator& alloc) {
 5750|     41|  alloc.PlanArray<Descriptor::ExtensionRange>(ranges.size());
 5751|     41|  for (const auto& r : ranges) {
  ------------------
  |  Branch (5751:22): [True: 14, False: 41]
  ------------------
 5752|     14|    if (r.has_options()) alloc.PlanArray<ExtensionRangeOptions>(1);
  ------------------
  |  Branch (5752:9): [True: 0, False: 14]
  ------------------
 5753|     14|  }
 5754|     41|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISI_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_10Descriptor13ReservedRangeEEEvi:
  382|     41|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     41|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     41|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     82|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     41|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     82|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     82|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     41|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     82|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 41]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     82|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     82|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     41|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 41, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     41|      static_assert(alignof(U) <= 8, "");
  388|     41|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     41|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     41|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayIPKS9_EEvi:
  382|     61|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     61|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     61|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    122|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     61|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    122|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    122|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 61, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     61|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 61]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    122|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 61, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 61]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 61]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    122|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    122|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     61|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 61, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     61|      static_assert(alignof(U) <= 8, "");
  388|     61|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     61|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     61|  }
descriptor.cc:_ZN6google8protobufL18PlanAllocationSizeERKNS0_16RepeatedPtrFieldINS0_20OneofDescriptorProtoEEERNS0_8internal13FlatAllocatorE:
 5722|     41|    internal::FlatAllocator& alloc) {
 5723|     41|  alloc.PlanArray<OneofDescriptor>(oneofs.size());
 5724|     41|  alloc.PlanArray<std::string>(2 * oneofs.size());  // name + full_name
 5725|     41|  for (const auto& oneof : oneofs) {
  ------------------
  |  Branch (5725:26): [True: 1, False: 41]
  ------------------
 5726|      1|    if (oneof.has_options()) alloc.PlanArray<OneofOptions>(1);
  ------------------
  |  Branch (5726:9): [True: 0, False: 1]
  ------------------
 5727|      1|  }
 5728|     41|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_15OneofDescriptorEEEvi:
  382|     41|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     41|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     41|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     82|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     41|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     82|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     82|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     41|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     82|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 41]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     82|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     82|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     41|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 41, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     41|      static_assert(alignof(U) <= 8, "");
  388|     41|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     41|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     41|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISJ_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobufL18PlanAllocationSizeERKNS0_16RepeatedPtrFieldINS0_19EnumDescriptorProtoEEERNS0_8internal13FlatAllocatorE:
 5708|     45|    internal::FlatAllocator& alloc) {
 5709|     45|  alloc.PlanArray<EnumDescriptor>(enums.size());
 5710|     45|  alloc.PlanArray<std::string>(2 * enums.size());  // name + full_name
 5711|     45|  for (const auto& e : enums) {
  ------------------
  |  Branch (5711:22): [True: 20, False: 45]
  ------------------
 5712|     20|    if (e.has_options()) alloc.PlanArray<EnumOptions>(1);
  ------------------
  |  Branch (5712:9): [True: 0, False: 20]
  ------------------
 5713|     20|    PlanAllocationSize(e.value(), alloc);
 5714|     20|    alloc.PlanArray<EnumDescriptor::ReservedRange>(e.reserved_range_size());
 5715|     20|    alloc.PlanArray<const std::string*>(e.reserved_name_size());
 5716|     20|    alloc.PlanArray<std::string>(e.reserved_name_size());
 5717|     20|  }
 5718|     45|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISG_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobufL18PlanAllocationSizeERKNS0_16RepeatedPtrFieldINS0_24EnumValueDescriptorProtoEEERNS0_8internal13FlatAllocatorE:
 5698|     20|    internal::FlatAllocator& alloc) {
 5699|     20|  alloc.PlanArray<EnumValueDescriptor>(values.size());
 5700|     20|  alloc.PlanArray<std::string>(2 * values.size());  // name + full_name
 5701|    111|  for (const auto& v : values) {
  ------------------
  |  Branch (5701:22): [True: 111, False: 20]
  ------------------
 5702|    111|    if (v.has_options()) alloc.PlanArray<EnumValueOptions>(1);
  ------------------
  |  Branch (5702:9): [True: 0, False: 111]
  ------------------
 5703|    111|  }
 5704|     20|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISH_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_14EnumDescriptor13ReservedRangeEEEvi:
  382|     20|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     20|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     20|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     40|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     20|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     40|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     40|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     20|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     40|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 20]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     40|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     40|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     20|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 20, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     20|      static_assert(alignof(U) <= 8, "");
  388|     20|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     20|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     20|  }
descriptor.cc:_ZN6google8protobufL18PlanAllocationSizeERKNS0_16RepeatedPtrFieldINS0_20FieldDescriptorProtoEEERNS0_8internal13FlatAllocatorE:
 5732|     86|    internal::FlatAllocator& alloc) {
 5733|     86|  alloc.PlanArray<FieldDescriptor>(fields.size());
 5734|    203|  for (const auto& field : fields) {
  ------------------
  |  Branch (5734:26): [True: 203, False: 86]
  ------------------
 5735|    203|    if (field.has_options()) alloc.PlanArray<FieldOptions>(1);
  ------------------
  |  Branch (5735:9): [True: 17, False: 186]
  ------------------
 5736|    203|    alloc.PlanFieldNames(field.name(),
 5737|    203|                         field.has_json_name() ? &field.json_name() : nullptr);
  ------------------
  |  Branch (5737:26): [True: 0, False: 203]
  ------------------
 5738|    203|    if (field.has_default_value() && field.has_type() &&
  ------------------
  |  Branch (5738:9): [True: 27, False: 176]
  |  Branch (5738:38): [True: 27, False: 0]
  ------------------
 5739|     27|        (field.type() == FieldDescriptorProto::TYPE_STRING ||
  ------------------
  |  Branch (5739:10): [True: 0, False: 27]
  ------------------
 5740|     27|         field.type() == FieldDescriptorProto::TYPE_BYTES)) {
  ------------------
  |  Branch (5740:10): [True: 0, False: 27]
  ------------------
 5741|       |      // For the default string value.
 5742|      0|      alloc.PlanArray<std::string>(1);
 5743|      0|    }
 5744|    203|  }
 5745|     86|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_15FieldDescriptorEEEvi:
  382|     86|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     86|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     86|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    172|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     86|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    172|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    172|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 86, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     86|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 86]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    172|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 86, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 86]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 86]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    172|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    172|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     86|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 86, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     86|      static_assert(alignof(U) <= 8, "");
  388|     86|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     86|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     86|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayISE_EEvi:
  382|     17|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     17|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     17|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     34|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     17|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     34|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     34|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 17, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     17|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 17]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     34|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 17, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 17]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 17]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     34|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     34|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     17|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [Folded, False: 17]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|      0|      static_assert(alignof(U) <= 8, "");
  388|      0|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     17|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|     17|      using TypeToUse =
  393|     17|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|     17|                                    char, U>::type;
  395|     17|      total_.template Get<TypeToUse>() += array_size;
  396|     17|    }
  397|     17|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISF_EERiv:
  238|     59|  ValueT<K>& Get() {
  239|     59|    return static_cast<Base<K>&>(payload_).value;
  240|     59|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14PlanFieldNamesERKS9_PSN_:
  429|    203|                      const std::string* opt_json_name) {
  430|    203|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|    203|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    406|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|    203|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    406|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    406|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 203, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|    203|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 203]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    406|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 203, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 203]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 203]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    406|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    406|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  431|       |
  432|       |    // Fast path for snake_case names, which follow the style guide.
  433|    203|    if (opt_json_name == nullptr) {
  ------------------
  |  Branch (433:9): [True: 203, False: 0]
  ------------------
  434|    203|      switch (GetFieldNameCase(name)) {
  435|     94|        case FieldNameCase::kAllLower:
  ------------------
  |  Branch (435:9): [True: 94, False: 109]
  ------------------
  436|       |          // Case 1: they are all the same.
  437|     94|          return PlanArray<std::string>(2);
  438|    109|        case FieldNameCase::kSnakeCase:
  ------------------
  |  Branch (438:9): [True: 109, False: 94]
  ------------------
  439|       |          // Case 2: name==lower, camel==json
  440|    109|          return PlanArray<std::string>(3);
  441|      0|        default:
  ------------------
  |  Branch (441:9): [True: 0, False: 203]
  ------------------
  442|      0|          break;
  443|    203|      }
  444|    203|    }
  445|       |
  446|      0|    std::string lowercase_name = name;
  447|      0|    absl::AsciiStrToLower(&lowercase_name);
  448|       |
  449|      0|    std::string camelcase_name = ToCamelCase(name, /* lower_first = */ true);
  450|      0|    std::string json_name =
  451|      0|        opt_json_name != nullptr ? *opt_json_name : ToJsonName(name);
  ------------------
  |  Branch (451:9): [True: 0, False: 0]
  ------------------
  452|       |
  453|      0|    absl::string_view all_names[] = {name, lowercase_name, camelcase_name,
  454|      0|                                     json_name};
  455|      0|    std::sort(all_names, all_names + 4);
  456|      0|    int unique =
  457|      0|        static_cast<int>(std::unique(all_names, all_names + 4) - all_names);
  458|       |
  459|      0|    PlanArray<std::string>(unique + 1);
  460|      0|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE16GetFieldNameCaseEN4absl12lts_2024011611string_viewE:
  550|    406|  FieldNameCase GetFieldNameCase(const absl::string_view name) {
  551|    406|    if (!name.empty() && !IsLower(name[0])) return FieldNameCase::kOther;
  ------------------
  |  Branch (551:9): [True: 406, False: 0]
  |  Branch (551:26): [True: 0, False: 406]
  ------------------
  552|    406|    FieldNameCase best = FieldNameCase::kAllLower;
  553|  4.56k|    for (char c : name) {
  ------------------
  |  Branch (553:17): [True: 4.56k, False: 406]
  ------------------
  554|  4.56k|      if (IsLowerOrDigit(c)) {
  ------------------
  |  Branch (554:11): [True: 4.27k, False: 286]
  ------------------
  555|       |        // nothing to do
  556|  4.27k|      } else if (c == '_') {
  ------------------
  |  Branch (556:18): [True: 286, False: 0]
  ------------------
  557|    286|        best = FieldNameCase::kSnakeCase;
  558|    286|      } else {
  559|      0|        return FieldNameCase::kOther;
  560|      0|      }
  561|  4.56k|    }
  562|    406|    return best;
  563|    406|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE7IsLowerEc:
  545|  4.96k|  static bool IsLower(char c) { return 'a' <= c && c <= 'z'; }
  ------------------
  |  Branch (545:40): [True: 4.67k, False: 298]
  |  Branch (545:52): [True: 4.67k, False: 0]
  ------------------
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14IsLowerOrDigitEc:
  547|  4.56k|  static bool IsLowerOrDigit(char c) { return IsLower(c) || IsDigit(c); }
  ------------------
  |  Branch (547:47): [True: 4.26k, False: 298]
  |  Branch (547:61): [True: 12, False: 286]
  ------------------
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE7IsDigitEc:
  546|    298|  static bool IsDigit(char c) { return '0' <= c && c <= '9'; }
  ------------------
  |  Branch (546:40): [True: 298, False: 0]
  |  Branch (546:52): [True: 12, False: 286]
  ------------------
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayIiEEvi:
  382|      8|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|      8|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|      8|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     16|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      8|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     16|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     16|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 8, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      8|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 8]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     16|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 8, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 8]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 8]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     16|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     16|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|      8|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 8, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|      8|      static_assert(alignof(U) <= 8, "");
  388|      8|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|      8|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|      8|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayIPKNS0_14FileDescriptorEEEvi:
  382|      4|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|      4|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|      4|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 4, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|      4|      static_assert(alignof(U) <= 8, "");
  388|      4|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|      4|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_124GetCppFeatureSetDefaultsEv:
 1105|      4|const FeatureSetDefaults& GetCppFeatureSetDefaults() {
 1106|      4|  static const FeatureSetDefaults* default_spec =
 1107|      4|      internal::OnShutdownDelete([] {
 1108|      4|        auto* defaults = new FeatureSetDefaults();
 1109|      4|        internal::ParseNoReflection(
 1110|      4|            absl::string_view{
 1111|      4|                PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS,
 1112|      4|                sizeof(PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS) - 1},
 1113|      4|            *defaults);
 1114|      4|        return defaults;
 1115|      4|      }());
 1116|      4|  return *default_spec;
 1117|      4|}
descriptor.cc:_ZZN6google8protobuf12_GLOBAL__N_124GetCppFeatureSetDefaultsEvENK3$_0clEv:
 1107|      1|      internal::OnShutdownDelete([] {
 1108|      1|        auto* defaults = new FeatureSetDefaults();
 1109|      1|        internal::ParseNoReflection(
 1110|      1|            absl::string_view{
 1111|      1|                PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS,
  ------------------
  |  |    8|      1|#define PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS "\n\037\030\204\007\"\003\302>\000*\025\010\001\020\002\030\002 \003(\0010\002\302>\006\010\001\020\003\030\000\n\037\030\347\007\"\003\302>\000*\025\010\002\020\001\030\001 \002(\0010\001\302>\006\010\000\020\003\030\000\n\037\030\350\007\"\023\010\001\020\001\030\001 \002(\0010\001\302>\004\010\000\020\003*\005\302>\002\030\000\n\037\030\351\007\"\025\010\001\020\001\030\001 \002(\0010\001\302>\006\010\000\020\001\030\001*\003\302>\000 \346\007(\351\007"
  ------------------
 1112|      1|                sizeof(PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS) - 1},
  ------------------
  |  |    8|      1|#define PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS "\n\037\030\204\007\"\003\302>\000*\025\010\001\020\002\030\002 \003(\0010\002\302>\006\010\001\020\003\030\000\n\037\030\347\007\"\003\302>\000*\025\010\002\020\001\030\001 \002(\0010\001\302>\006\010\000\020\003\030\000\n\037\030\350\007\"\023\010\001\020\001\030\001 \002(\0010\001\302>\004\010\000\020\003*\005\302>\002\030\000\n\037\030\351\007\"\025\010\001\020\001\030\001 \002(\0010\001\302>\006\010\000\020\001\030\001*\003\302>\000 \346\007(\351\007"
  ------------------
 1113|      1|            *defaults);
 1114|      1|        return defaults;
 1115|      1|      }());
_ZN6google8protobuf17DescriptorBuilder14BuildExtensionERKNS0_20FieldDescriptorProtoEPNS0_10DescriptorEPNS0_15FieldDescriptorERNS0_8internal13FlatAllocatorE:
 4423|      1|                      FieldDescriptor* result, internal::FlatAllocator& alloc) {
 4424|      1|    BuildFieldOrExtension(proto, parent, result, true, alloc);
 4425|      1|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115DisableTrackingEv:
  583|     28|auto DisableTracking() {
  584|     28|  bool old_value = is_tracking_enabled();
  585|     28|  is_tracking_enabled() = false;
  586|     28|  return absl::MakeCleanup([=] { is_tracking_enabled() = old_value; });
  587|     28|}
_ZN6google8protobuf17DescriptorBuilder10BuildFieldERKNS0_20FieldDescriptorProtoEPNS0_10DescriptorEPNS0_15FieldDescriptorERNS0_8internal13FlatAllocatorE:
 4419|    202|                  FieldDescriptor* result, internal::FlatAllocator& alloc) {
 4420|    202|    BuildFieldOrExtension(proto, parent, result, false, alloc);
 4421|    202|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_122IncrementWhenDestroyedD2Ev:
 6295|     41|  ~IncrementWhenDestroyed() { ++to_increment; }
_ZN6google8protobuf6SymbolC2EPNS0_15FieldDescriptorE:
  619|    203|  explicit Symbol(TYPE* value) : ptr_(value) {                                 \
  620|    203|    value->symbol_type_ = TYPE_CONSTANT;                                       \
  621|    203|  }                                                                            \
_ZN6google8protobuf6SymbolC2EPNS0_15OneofDescriptorE:
  619|      1|  explicit Symbol(TYPE* value) : ptr_(value) {                                 \
  620|      1|    value->symbol_type_ = TYPE_CONSTANT;                                       \
  621|      1|  }                                                                            \
_ZN6google8protobuf6Symbol9EnumValueEPNS0_19EnumValueDescriptorEi:
  646|    222|  static Symbol EnumValue(EnumValueDescriptor* value, int n) {
  647|    222|    Symbol s;
  648|    222|    internal::SymbolBase* ptr;
  649|    222|    if (n == 0) {
  ------------------
  |  Branch (649:9): [True: 111, False: 111]
  ------------------
  650|    111|      ptr = static_cast<internal::SymbolBaseN<0>*>(value);
  651|    111|      ptr->symbol_type_ = ENUM_VALUE;
  652|    111|    } else {
  653|    111|      ptr = static_cast<internal::SymbolBaseN<1>*>(value);
  654|    111|      ptr->symbol_type_ = ENUM_VALUE_OTHER_PARENT;
  655|    111|    }
  656|    222|    s.ptr_ = ptr;
  657|    222|    return s;
  658|    222|  }
_ZNK6google8protobuf6Symbol4typeEv:
  672|  6.37k|  Type type() const { return static_cast<Type>(ptr_->symbol_type_); }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_111ToCamelCaseEN4absl12lts_2024011611string_viewEb:
   97|    109|std::string ToCamelCase(const absl::string_view input, bool lower_first) {
   98|    109|  bool capitalize_next = !lower_first;
   99|    109|  std::string result;
  100|    109|  result.reserve(input.size());
  101|       |
  102|  1.67k|  for (char character : input) {
  ------------------
  |  Branch (102:23): [True: 1.67k, False: 109]
  ------------------
  103|  1.67k|    if (character == '_') {
  ------------------
  |  Branch (103:9): [True: 143, False: 1.52k]
  ------------------
  104|    143|      capitalize_next = true;
  105|  1.52k|    } else if (capitalize_next) {
  ------------------
  |  Branch (105:16): [True: 143, False: 1.38k]
  ------------------
  106|    143|      result.push_back(absl::ascii_toupper(character));
  107|    143|      capitalize_next = false;
  108|  1.38k|    } else {
  109|  1.38k|      result.push_back(character);
  110|  1.38k|    }
  111|  1.67k|  }
  112|       |
  113|       |  // Lower-case the first letter.
  114|    109|  if (lower_first && !result.empty()) {
  ------------------
  |  Branch (114:7): [True: 109, False: 0]
  |  Branch (114:22): [True: 109, False: 0]
  ------------------
  115|    109|    result[0] = absl::ascii_tolower(result[0]);
  116|    109|  }
  117|       |
  118|    109|  return result;
  119|    109|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_119is_tracking_enabledEv:
  578|     84|bool& is_tracking_enabled() {
  579|     84|  static PROTOBUF_THREAD_LOCAL bool value = true;
  580|     84|  return value;
  581|     84|}
descriptor.cc:_ZZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvENK3$_0clEv:
  586|     28|  return absl::MakeCleanup([=] { is_tracking_enabled() = old_value; });
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IbEEOT_:
  157|    112|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginIS9_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 0, False: 4]
  ------------------
  327|      4|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetIS9_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetIcEERKiv:
  243|     24|  const ValueT<K>& Get() const {
  244|     24|    return static_cast<const Base<K>&>(payload_).value;
  245|     24|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetIS9_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISA_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4dataEv:
  357|    120|  char* data() const {
  358|    120|    return const_cast<char*>(reinterpret_cast<const char*>(this));
  359|    120|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISA_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISA_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISA_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISB_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISB_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 0, False: 4]
  ------------------
  327|      4|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISB_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISB_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISC_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISC_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISC_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISC_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISD_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISD_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISD_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISD_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISE_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISE_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 2, False: 2]
  ------------------
  327|      2|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISE_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISE_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISF_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISF_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISF_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISF_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISG_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISG_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISG_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISG_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISH_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISH_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISH_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISH_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISI_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISI_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISI_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISI_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISJ_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISJ_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISJ_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISJ_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISK_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISK_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 4, False: 0]
  ------------------
  327|      0|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISK_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISK_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISL_EERKiv:
  243|     28|  const ValueT<K>& Get() const {
  244|     28|    return static_cast<const Base<K>&>(payload_).value;
  245|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginISL_EEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 2, False: 2]
  ------------------
  327|      2|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISL_EEiv:
  302|      8|  int BeginOffset() const {
  303|      8|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      8|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [Folded, False: 8]
  ------------------
  306|      8|    using PrevType =
  307|      8|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      8|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      8|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [Folded, False: 8]
  ------------------
  311|      8|                           : ends_.template Get<PrevType>();
  312|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISL_EEiv:
  315|      8|  int EndOffset() const {
  316|      8|    return ends_.template Get<U>();
  317|      8|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISM_EERKiv:
  243|     20|  const ValueT<K>& Get() const {
  244|     20|    return static_cast<const Base<K>&>(payload_).value;
  245|     20|  }
_ZN6google8protobuf14DescriptorPool6Tables10CheckPointC2EPKS2_:
 1588|      4|              static_cast<int>(tables->flat_allocs_.size())),
 1589|       |          misc_allocations_before_checkpoint(
 1590|      4|              static_cast<int>(tables->misc_allocs_.size())),
 1591|       |          pending_symbols_before_checkpoint(
 1592|      4|              tables->symbols_after_checkpoint_.size()),
 1593|       |          pending_files_before_checkpoint(
 1594|      4|              tables->files_after_checkpoint_.size()),
 1595|       |          pending_extensions_before_checkpoint(
 1596|      4|              tables->extensions_after_checkpoint_.size()) {}
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_118SymbolByFullNameEqclINS0_6SymbolES4_EEbRKT_RKT0_:
  958|     34|  bool operator()(const T& a, const U& b) const {
  959|     34|    return a.full_name() == b.full_name();
  960|     34|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashclINS0_6SymbolEEEmRKT_:
  950|    816|  size_t operator()(const T& s) const {
  951|    816|    return absl::HashOf(s.full_name());
  952|    816|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS0_14FileDescriptorEEclEPKS3_:
  996|      4|  size_t operator()(const DescriptorT* file) const {
  997|      4|    return absl::HashOf(file->name());
  998|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_19EnumValueDescriptorEEEvi:
  382|     20|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     20|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     20|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     40|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     20|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     40|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     40|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     20|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     40|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 20]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     40|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     40|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     20|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 20, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     20|      static_assert(alignof(U) <= 8, "");
  388|     20|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     20|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     20|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayIS9_EEvi:
  382|    423|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|    423|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|    423|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    846|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|    423|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    846|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    846|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 423, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|    423|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 423]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    846|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 423, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 423]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 423]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    846|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    846|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|    423|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [Folded, False: 423]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|      0|      static_assert(alignof(U) <= 8, "");
  388|      0|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|    423|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|    423|      using TypeToUse =
  393|    423|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|    423|                                    char, U>::type;
  395|    423|      total_.template Get<TypeToUse>() += array_size;
  396|    423|    }
  397|    423|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE16FinalizePlanningIPNS0_14DescriptorPool6TablesEEEvRT_:
  526|      4|  void FinalizePlanning(Alloc& alloc) {
  527|      4|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  528|       |
  529|      4|    pointers_ = alloc->CreateFlatAlloc(total_)->Pointers();
  530|       |
  531|      4|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  532|      4|  }
descriptor.cc:_ZN6google8protobuf14DescriptorPool6Tables15CreateFlatAllocIJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEEEPNS0_12_GLOBAL__N_114FlatAllocationIJcSA_SB_SC_SD_SE_SF_SG_SH_SI_SJ_SK_SL_SM_EEERKNSN_7TypeMapINSN_4IntTEJDpT_EEE:
 2027|      4|    const TypeMap<IntT, T...>& sizes) {
 2028|      4|  auto ends = CalculateEnds(sizes);
 2029|      4|  using FlatAlloc = internal::FlatAllocator::Allocation;
 2030|       |
 2031|      4|  int last_end = ends.template Get<
 2032|      4|      typename std::tuple_element<sizeof...(T) - 1, std::tuple<T...>>::type>();
 2033|      4|  size_t total_size =
 2034|      4|      last_end + RoundUpTo<FlatAlloc::kMaxAlign>(sizeof(FlatAlloc));
 2035|      4|  char* data = static_cast<char*>(::operator new(total_size));
 2036|      4|  auto* res = ::new (data) FlatAlloc(ends);
 2037|      4|  flat_allocs_.emplace_back(res);
 2038|       |
 2039|      4|  return res;
 2040|      4|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_113CalculateEndsIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEEENS1_7TypeMapINS1_4IntTEJDpT_EEERKSQ_:
  365|      4|TypeMap<IntT, T...> CalculateEnds(const TypeMap<IntT, T...>& sizes) {
  366|      4|  int total = 0;
  367|      4|  TypeMap<IntT, T...> out;
  368|      4|  Fold({(out.template Get<T>() = total +=
  369|      4|         sizeof(T) * sizes.template Get<T>())...});
  370|      4|  return out;
  371|      4|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_:
  157|    112|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISD_EERiv:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEEC2ERKNS1_7TypeMapINS1_4IntTEJcS9_SA_SB_SC_SD_SE_SF_SG_SH_SI_SJ_SK_SL_EEE:
  269|      4|  explicit FlatAllocation(const TypeMap<IntT, T...>& ends) : ends_(ends) {
  270|       |    // The arrays start just after FlatAllocation, so adjust the ends.
  271|      4|    Fold({(ends_.template Get<T>() +=
  272|      4|           RoundUpTo<kMaxAlign>(sizeof(FlatAllocation)))...});
  273|      4|    Fold({Init<T>()...});
  274|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitIcEEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [True: 4, Folded]
  ------------------
  341|      0|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      0|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 0]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      0|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitIS9_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|    875|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 871, False: 4]
  ------------------
  343|    871|      ::new (p) U{};
  344|    871|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISA_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISB_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      8|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 4, False: 4]
  ------------------
  343|      4|      ::new (p) U{};
  344|      4|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISC_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISD_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISE_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|     21|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 17, False: 4]
  ------------------
  343|     17|      ::new (p) U{};
  344|     17|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISF_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISG_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISH_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISI_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISJ_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISK_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      4|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 0, False: 4]
  ------------------
  343|      0|      ::new (p) U{};
  344|      0|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISL_EEbv:
  338|      4|  bool Init() {
  339|       |    // Skip for the `char` block. No need to zero initialize it.
  340|      4|    if (std::is_same<U, char>::value) return true;
  ------------------
  |  Branch (340:9): [Folded, False: 4]
  ------------------
  341|      4|    for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
  342|      6|         p != end; p += sizeof(U)) {
  ------------------
  |  Branch (342:10): [True: 2, False: 4]
  ------------------
  343|      2|      ::new (p) U{};
  344|      2|    }
  345|      4|    return true;
  346|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE8PointersEv:
  285|      4|  TypeMap<PointerT, T...> Pointers() const {
  286|      4|    TypeMap<PointerT, T...> out;
  287|      4|    Fold({(out.template Get<T>() = Begin<T>())...});
  288|      4|    return out;
  289|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE5BeginIcEEPT_v:
  324|      4|  U* Begin() const {
  325|      4|    int begin = BeginOffset<U>(), end = EndOffset<U>();
  326|      4|    if (begin == end) return nullptr;
  ------------------
  |  Branch (326:9): [True: 0, False: 4]
  ------------------
  327|      4|    return reinterpret_cast<U*>(data() + begin);
  328|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetIcEEiv:
  302|      4|  int BeginOffset() const {
  303|      4|    constexpr int type_index = FindTypeIndex<U, T...>();
  304|       |    // Avoid a negative value here to keep it compiling when type_index == 0
  305|      4|    constexpr int prev_type_index = type_index == 0 ? 0 : type_index - 1;
  ------------------
  |  Branch (305:37): [True: 0, Folded]
  ------------------
  306|      4|    using PrevType =
  307|      4|        typename std::tuple_element<prev_type_index, std::tuple<T...>>::type;
  308|       |    // Ensure the types are properly aligned.
  309|      4|    static_assert(EffectiveAlignof<PrevType>() >= EffectiveAlignof<U>(), "");
  310|      4|    return type_index == 0 ? RoundUpTo<kMaxAlign>(sizeof(FlatAllocation))
  ------------------
  |  Branch (310:12): [True: 4, Folded]
  ------------------
  311|      4|                           : ends_.template Get<PrevType>();
  312|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetIcEEiv:
  315|      4|  int EndOffset() const {
  316|      4|    return ends_.template Get<U>();
  317|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetIcEERPT_v:
  238|    424|  ValueT<K>& Get() {
  239|    424|    return static_cast<Base<K>&>(payload_).value;
  240|    424|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPcEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISB_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_14SourceCodeInfoEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISC_EERPT_v:
  238|      8|  ValueT<K>& Get() {
  239|      8|    return static_cast<Base<K>&>(payload_).value;
  240|      8|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_20FileDescriptorTablesEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISD_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_10FeatureSetEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISE_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_14MessageOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISF_EERPT_v:
  238|     21|  ValueT<K>& Get() {
  239|     21|    return static_cast<Base<K>&>(payload_).value;
  240|     21|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_12FieldOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISG_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_11EnumOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISH_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_16EnumValueOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISI_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_21ExtensionRangeOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISJ_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_12OneofOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISK_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_14ServiceOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISL_EERPT_v:
  238|      4|  ValueT<K>& Get() {
  239|      4|    return static_cast<Base<K>&>(payload_).value;
  240|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_13MethodOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_8PointerTEJcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISM_EERPT_v:
  238|      6|  ValueT<K>& Get() {
  239|      6|    return static_cast<Base<K>&>(payload_).value;
  240|      6|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRPNS0_11FileOptionsEEEOT_:
  157|      4|  ExpressionEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_19EnumValueDescriptorEEEPT_i:
  400|     20|  U* AllocateArray(int array_size) {
  401|     20|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     20|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     20|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     20|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     40|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     20|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     40|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     40|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     20|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     40|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 20]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     40|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     40|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     20|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     20|    int& used = used_.template Get<TypeToUse>();
  409|     20|    U* res = reinterpret_cast<U*>(data + used);
  410|     20|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 20, Folded]
  ------------------
  411|     20|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     20|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     20|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     20|  while (                                                                      \
  |  |  |  |  |  |   62|     20|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 20]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     20|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     20|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     20|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     20|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     20|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     20|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     20|    return res;
  413|     20|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_116ParentNumberHashclIPNS0_19EnumValueDescriptorEEEmRKT_:
 1045|     34|  size_t operator()(const T& t) const {
 1046|     34|    return absl::HashOf(ObjectToParentNumber(t));
 1047|     34|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114ParentNumberEqclIPKNS0_19EnumValueDescriptorEPS4_EEbRKT_RKT0_:
 1053|      1|  bool operator()(const T& a, const U& b) const {
 1054|      1|    return ObjectToParentNumber(a) == ObjectToParentNumber(b);
 1055|      1|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_116ParentNumberHashclIPKNS0_19EnumValueDescriptorEEEmRKT_:
 1045|     28|  size_t operator()(const T& t) const {
 1046|     28|    return absl::HashOf(ObjectToParentNumber(t));
 1047|     28|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_118SymbolByParentHashclINS0_6SymbolEEEmRKT_:
  975|  1.01k|  size_t operator()(const T& s) const {
  976|  1.01k|    return absl::HashOf(s.parent_name_key());
  977|  1.01k|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_116SymbolByParentEqclINS0_6SymbolES4_EEbRKT_RKT0_:
  983|     52|  bool operator()(const T& a, const U& b) const {
  984|     52|    return a.parent_name_key() == b.parent_name_key();
  985|     52|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_116ParentNumberHashclIPNS0_15FieldDescriptorEEEmRKT_:
 1045|    103|  size_t operator()(const T& t) const {
 1046|    103|    return absl::HashOf(ObjectToParentNumber(t));
 1047|    103|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_114ParentNumberEqclIPKNS0_15FieldDescriptorEPS4_EEbRKT_RKT0_:
 1053|      6|  bool operator()(const T& a, const U& b) const {
 1054|      6|    return ObjectToParentNumber(a) == ObjectToParentNumber(b);
 1055|      6|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_116ParentNumberHashclIPKNS0_15FieldDescriptorEEEmRKT_:
 1045|     98|  size_t operator()(const T& t) const {
 1046|     98|    return absl::HashOf(ObjectToParentNumber(t));
 1047|     98|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_14FileDescriptorEEEvi:
  382|      4|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|      4|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|      4|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 4, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|      4|      static_assert(alignof(U) <= 8, "");
  388|      4|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|      4|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_14EnumDescriptorEEEvi:
  382|     45|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     45|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     45|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     90|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     45|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     90|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     90|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 45, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     45|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 45]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     90|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 45, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 45]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 45]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     90|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     90|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     45|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 45, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     45|      static_assert(alignof(U) <= 8, "");
  388|     45|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     45|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     45|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_10DescriptorEEEvi:
  382|     45|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     45|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     45|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     90|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     45|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     90|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     90|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 45, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     45|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 45]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     90|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 45, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 45]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 45]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     90|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     90|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     45|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 45, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     45|      static_assert(alignof(U) <= 8, "");
  388|     45|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     45|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     45|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_10Descriptor14ExtensionRangeEEEvi:
  382|     41|  void PlanArray(int array_size) {
  383|       |    // We can't call PlanArray after FinalizePlanning has been called.
  384|     41|    ABSL_CHECK(!has_allocated());
  ------------------
  |  |   41|     41|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     82|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     41|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     82|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     82|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     41|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     82|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 41]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     82|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     82|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|     41|    if (std::is_trivially_destructible<U>::value) {
  ------------------
  |  Branch (385:9): [True: 41, Folded]
  ------------------
  386|       |      // Trivial types are aligned to 8 bytes.
  387|     41|      static_assert(alignof(U) <= 8, "");
  388|     41|      total_.template Get<char>() += RoundUpTo<8>(array_size * sizeof(U));
  389|     41|    } else {
  390|       |      // Since we can't use `if constexpr`, just make the expression compile
  391|       |      // when this path is not taken.
  392|      0|      using TypeToUse =
  393|      0|          typename std::conditional<std::is_trivially_destructible<U>::value,
  394|      0|                                    char, U>::type;
  395|      0|      total_.template Get<TypeToUse>() += array_size;
  396|      0|    }
  397|     41|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_14EnumDescriptorEEEPT_i:
  400|     45|  U* AllocateArray(int array_size) {
  401|     45|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     45|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     45|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     45|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     90|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     45|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     90|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     90|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 45, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     45|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 45]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     90|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 45, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 45]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 45]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     90|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     90|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     45|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     45|    int& used = used_.template Get<TypeToUse>();
  409|     45|    U* res = reinterpret_cast<U*>(data + used);
  410|     45|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 45, Folded]
  ------------------
  411|     45|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     45|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     45|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     45|  while (                                                                      \
  |  |  |  |  |  |   62|     45|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 45]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     45|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     45|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     45|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     45|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     45|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     45|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     45|    return res;
  413|     45|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_10DescriptorEEEPT_i:
  400|     45|  U* AllocateArray(int array_size) {
  401|     45|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     45|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     45|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     45|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     90|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     45|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     90|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     90|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 45, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     45|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 45]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     90|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 45, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 45]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 45]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     90|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     90|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     45|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     45|    int& used = used_.template Get<TypeToUse>();
  409|     45|    U* res = reinterpret_cast<U*>(data + used);
  410|     45|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 45, Folded]
  ------------------
  411|     45|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     45|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     45|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     45|  while (                                                                      \
  |  |  |  |  |  |   62|     45|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 45]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     45|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     45|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     45|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     45|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     45|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     45|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     45|    return res;
  413|     45|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_10Descriptor14ExtensionRangeEEEPT_i:
  400|     41|  U* AllocateArray(int array_size) {
  401|     41|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     41|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     41|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     41|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     82|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     41|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     82|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     82|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     41|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     82|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 41]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     82|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     82|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     41|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     41|    int& used = used_.template Get<TypeToUse>();
  409|     41|    U* res = reinterpret_cast<U*>(data + used);
  410|     41|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 41, Folded]
  ------------------
  411|     41|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     41|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     41|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     41|  while (                                                                      \
  |  |  |  |  |  |   62|     41|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 41]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     41|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     41|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     41|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     41|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     41|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     41|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     41|    return res;
  413|     41|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_14FileDescriptorEEEPT_i:
  400|      4|  U* AllocateArray(int array_size) {
  401|      4|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|      4|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|      4|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|      4|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|      4|    int& used = used_.template Get<TypeToUse>();
  409|      4|    U* res = reinterpret_cast<U*>(data + used);
  410|      4|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 4, Folded]
  ------------------
  411|      4|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|      4|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|      4|    return res;
  413|      4|  }
_ZN6google8protobuf14DescriptorPool6Tables8AllocateINS0_6Symbol10SubpackageEEEPT_v:
 2010|      3|Type* DescriptorPool::Tables::Allocate() {
 2011|      3|  static_assert(std::is_trivially_destructible<Type>::value, "");
 2012|      3|  static_assert(alignof(Type) <= 8, "");
 2013|      3|  return ::new (AllocateBytes(sizeof(Type))) Type{};
 2014|      3|}
_ZN6google8protobuf17DescriptorBuilder19AllocateOptionsImplINS0_14FileDescriptorEEEPKNT_11OptionsTypeEN4absl12lts_2024011611string_viewESA_RKNS4_5ProtoENS9_4SpanIKiEESA_RNS0_8internal13FlatAllocatorE:
 5428|      4|    internal::FlatAllocator& alloc) {
 5429|      4|  if (!proto.has_options()) {
  ------------------
  |  Branch (5429:7): [True: 2, False: 2]
  ------------------
 5430|      2|    return &DescriptorT::OptionsType::default_instance();
 5431|      2|  }
 5432|      2|  const typename DescriptorT::OptionsType& orig_options = proto.options();
 5433|       |
 5434|      2|  auto* options = alloc.AllocateArray<typename DescriptorT::OptionsType>(1);
 5435|       |
 5436|      2|  if (!orig_options.IsInitialized()) {
  ------------------
  |  Branch (5436:7): [True: 0, False: 2]
  ------------------
 5437|      0|    AddError(absl::StrCat(name_scope, ".", element_name), orig_options,
 5438|      0|             DescriptorPool::ErrorCollector::OPTION_NAME,
 5439|      0|             "Uninterpreted option is missing name or value.");
 5440|      0|    return &DescriptorT::OptionsType::default_instance();
 5441|      0|  }
 5442|       |
 5443|      2|  const bool parse_success =
 5444|      2|      internal::ParseNoReflection(orig_options.SerializeAsString(), *options);
 5445|      2|  ABSL_DCHECK(parse_success);
  ------------------
  |  |   47|      2|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      2|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      4|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      2|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      4|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      4|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      2|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      2|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 2, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      4|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      4|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5446|       |
 5447|       |  // Don't add to options_to_interpret_ unless there were uninterpreted
 5448|       |  // options.  This not only avoids unnecessary work, but prevents a
 5449|       |  // bootstrapping problem when building descriptors for descriptor.proto.
 5450|       |  // descriptor.proto does not contain any uninterpreted options, but
 5451|       |  // attempting to interpret options anyway will cause
 5452|       |  // OptionsType::GetDescriptor() to be called which may then deadlock since
 5453|       |  // we're still trying to build it.
 5454|      2|  if (options->uninterpreted_option_size() > 0) {
  ------------------
  |  Branch (5454:7): [True: 0, False: 2]
  ------------------
 5455|      0|    options_to_interpret_.push_back(OptionsToInterpret(
 5456|      0|        name_scope, element_name, options_path, &orig_options, options));
 5457|      0|  }
 5458|       |
 5459|       |  // If the custom option is in unknown fields, no need to interpret it.
 5460|       |  // Remove the dependency file from unused_dependency.
 5461|      2|  const UnknownFieldSet& unknown_fields = orig_options.unknown_fields();
 5462|      2|  if (!unknown_fields.empty()) {
  ------------------
  |  Branch (5462:7): [True: 0, False: 2]
  ------------------
 5463|       |    // Can not use options->GetDescriptor() which may case deadlock.
 5464|      0|    Symbol msg_symbol = tables_->FindSymbol(option_name);
 5465|      0|    if (msg_symbol.type() == Symbol::MESSAGE) {
  ------------------
  |  Branch (5465:9): [True: 0, False: 0]
  ------------------
 5466|      0|      for (int i = 0; i < unknown_fields.field_count(); ++i) {
  ------------------
  |  Branch (5466:23): [True: 0, False: 0]
  ------------------
 5467|      0|        assert_mutex_held(pool_);
 5468|      0|        const FieldDescriptor* field =
 5469|      0|            pool_->InternalFindExtensionByNumberNoLock(
 5470|      0|                msg_symbol.descriptor(), unknown_fields.field(i).number());
 5471|      0|        if (field) {
  ------------------
  |  Branch (5471:13): [True: 0, False: 0]
  ------------------
 5472|      0|          unused_dependency_.erase(field->file());
 5473|      0|        }
 5474|      0|      }
 5475|      0|    }
 5476|      0|  }
 5477|      2|  return options;
 5478|      2|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayISL_EEPT_i:
  400|      2|  U* AllocateArray(int array_size) {
  401|      2|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|      2|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|      2|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|      2|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      4|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      2|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      4|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      4|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      2|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      4|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 2]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      4|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      4|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|      2|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|      2|    int& used = used_.template Get<TypeToUse>();
  409|      2|    U* res = reinterpret_cast<U*>(data + used);
  410|      2|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [Folded, False: 2]
  ------------------
  411|      2|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|      2|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|      2|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      2|  while (                                                                      \
  |  |  |  |  |  |   62|      2|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 2]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      2|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      2|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      2|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      2|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      2|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      2|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|      2|    return res;
  413|      2|  }
_ZN6google8protobuf17DescriptorBuilder19ResolveFeaturesImplINS0_14FileDescriptorEEEvNS0_7EditionERKNT_5ProtoEPS5_PNS5_11OptionsTypeERNS0_8internal13FlatAllocatorENS0_14DescriptorPool14ErrorCollector13ErrorLocationEb:
 5537|      4|    bool force_merge) {
 5538|      4|  const FeatureSet& parent_features = GetParentFeatures(descriptor);
 5539|      4|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5540|      4|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5541|       |
 5542|      4|  ABSL_CHECK(feature_resolver_.has_value());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5543|       |
 5544|      4|  if (options->has_features()) {
  ------------------
  |  Branch (5544:7): [True: 0, False: 4]
  ------------------
 5545|       |    // Remove the features from the child's options proto to avoid leaking
 5546|       |    // internal details.
 5547|      0|    descriptor->proto_features_ =
 5548|      0|        tables_->InternFeatureSet(std::move(*options->mutable_features()));
 5549|      0|    options->clear_features();
 5550|      0|  }
 5551|       |
 5552|      4|  FeatureSet base_features = *descriptor->proto_features_;
 5553|       |
 5554|       |  // Handle feature inference from proto2/proto3.
 5555|      4|  if (IsLegacyEdition(edition)) {
  ------------------
  |  Branch (5555:7): [True: 4, False: 0]
  ------------------
 5556|      4|    if (descriptor->proto_features_ != &FeatureSet::default_instance()) {
  ------------------
  |  Branch (5556:9): [True: 0, False: 4]
  ------------------
 5557|      0|      AddError(descriptor->name(), proto, error_location,
 5558|      0|               "Features are only valid under editions.");
 5559|      0|    }
 5560|      4|  }
 5561|      4|  InferLegacyProtoFeatures(proto, *options, edition, base_features);
 5562|       |
 5563|      4|  if (base_features.ByteSizeLong() == 0 && !force_merge) {
  ------------------
  |  Branch (5563:7): [True: 4, False: 0]
  |  Branch (5563:44): [True: 0, False: 4]
  ------------------
 5564|       |    // Nothing to merge, and we aren't forcing it.
 5565|      0|    descriptor->merged_features_ = &parent_features;
 5566|      0|    return;
 5567|      0|  }
 5568|       |
 5569|       |  // Calculate the merged features for this target.
 5570|      4|  absl::StatusOr<FeatureSet> merged =
 5571|      4|      feature_resolver_->MergeFeatures(parent_features, base_features);
 5572|      4|  if (!merged.ok()) {
  ------------------
  |  Branch (5572:7): [True: 0, False: 4]
  ------------------
 5573|      0|    AddError(descriptor->name(), proto, error_location,
 5574|      0|             [&] { return std::string(merged.status().message()); });
 5575|      0|    return;
 5576|      0|  }
 5577|       |
 5578|      4|  descriptor->merged_features_ = tables_->InternFeatureSet(*std::move(merged));
 5579|      4|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117GetParentFeaturesEPKNS0_14FileDescriptorE:
 1142|      4|const FeatureSet& GetParentFeatures(const FileDescriptor* file) {
 1143|      4|  return FeatureSet::default_instance();
 1144|      4|}
descriptor.cc:_ZN6google8protobufL24InferLegacyProtoFeaturesINS0_19FileDescriptorProtoENS0_11FileOptionsEEEvRKT_RKT0_NS0_7EditionERNS0_10FeatureSetE:
 5483|      4|                                     FeatureSet& features) {}
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedEv:
  534|      4|  void ExpectConsumed() const {
  535|       |    // We verify that we consumed all the memory requested if there was no
  536|       |    // error in processing.
  537|      4|    Fold({ExpectConsumed<T>()...});
  538|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedIcEEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedIS9_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISA_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISB_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISC_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISD_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISE_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISF_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISG_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISH_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISI_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISJ_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISK_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZNK6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE14ExpectConsumedISL_EEbv:
  566|      4|  bool ExpectConsumed() const {
  567|      4|    ABSL_CHECK_EQ(total_.template Get<U>(), used_.template Get<U>());
  ------------------
  |  |   50|      4|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      4|    return true;
  569|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayISB_EEPT_i:
  400|      4|  U* AllocateArray(int array_size) {
  401|      4|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|      4|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|      4|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|      4|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|      4|    int& used = used_.template Get<TypeToUse>();
  409|      4|    U* res = reinterpret_cast<U*>(data + used);
  410|      4|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [Folded, False: 4]
  ------------------
  411|      4|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|      4|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|      4|    return res;
  413|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE15AllocateStringsIJRKS9_EEEPSO_DpOT_:
  416|     10|  const std::string* AllocateStrings(In&&... in) {
  417|     10|    std::string* strings = AllocateArray<std::string>(sizeof...(in));
  418|     10|    std::string* res = strings;
  419|     10|    Fold({(*strings++ = std::string(std::forward<In>(in)))...});
  420|     10|    return res;
  421|     10|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayIPKNS0_14FileDescriptorEEEPT_i:
  400|      4|  U* AllocateArray(int array_size) {
  401|      4|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|      4|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|      4|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|      4|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|      4|    int& used = used_.template Get<TypeToUse>();
  409|      4|    U* res = reinterpret_cast<U*>(data + used);
  410|      4|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 4, Folded]
  ------------------
  411|      4|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|      4|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|      4|    return res;
  413|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayIiEEPT_i:
  400|      8|  U* AllocateArray(int array_size) {
  401|      8|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|      8|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|      8|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|      8|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     16|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      8|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     16|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     16|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 8, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      8|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 8]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     16|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 8, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 8]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 8]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     16|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     16|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|      8|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|      8|    int& used = used_.template Get<TypeToUse>();
  409|      8|    U* res = reinterpret_cast<U*>(data + used);
  410|      8|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 8, Folded]
  ------------------
  411|      8|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|      8|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|      8|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      8|  while (                                                                      \
  |  |  |  |  |  |   62|      8|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 8]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      8|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      8|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      8|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      8|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      8|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      8|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|      8|    return res;
  413|      8|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_17ServiceDescriptorEEEPT_i:
  400|      4|  U* AllocateArray(int array_size) {
  401|      4|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|      4|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|      4|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|      4|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|      4|    int& used = used_.template Get<TypeToUse>();
  409|      4|    U* res = reinterpret_cast<U*>(data + used);
  410|      4|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 4, Folded]
  ------------------
  411|      4|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|      4|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|      4|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|      4|  while (                                                                      \
  |  |  |  |  |  |   62|      4|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|      4|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|      4|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|      4|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|      4|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|      4|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|      4|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|      4|    return res;
  413|      4|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_15FieldDescriptorEEEPT_i:
  400|     86|  U* AllocateArray(int array_size) {
  401|     86|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     86|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     86|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     86|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    172|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     86|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    172|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    172|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 86, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     86|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 86]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    172|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 86, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 86]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 86]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    172|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    172|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     86|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     86|    int& used = used_.template Get<TypeToUse>();
  409|     86|    U* res = reinterpret_cast<U*>(data + used);
  410|     86|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 86, Folded]
  ------------------
  411|     86|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     86|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     86|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     86|  while (                                                                      \
  |  |  |  |  |  |   62|     86|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 86]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     86|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     86|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     86|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     86|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     86|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     86|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     86|    return res;
  413|     86|  }
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_3clERKNS0_15FieldDescriptorERKNS0_20FieldDescriptorProtoE:
 6161|    203|        [&](const FieldDescriptor& field, const FieldDescriptorProto& proto) {
 6162|    203|          if (field.options_->has_ctype() && field.options_->features()
  ------------------
  |  Branch (6162:15): [True: 0, False: 203]
  |  Branch (6162:46): [True: 0, False: 0]
  ------------------
 6163|      0|                                                 .GetExtension(pb::cpp)
 6164|      0|                                                 .has_string_type()) {
 6165|      0|            AddError(field.full_name(), proto,
 6166|      0|                     DescriptorPool::ErrorCollector::TYPE, [&] {
 6167|      0|                       return absl::StrFormat(
 6168|      0|                           "Field %s specifies both string_type and ctype "
 6169|      0|                           "which is not supported.",
 6170|      0|                           field.full_name());
 6171|      0|                     });
 6172|      0|          }
 6173|    203|        });
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_4clINS0_14FileDescriptorES2_EEDaRKT_RKT0_:
 6180|      4|          *result, proto, [&](const auto& descriptor, const auto& proto) {
 6181|      4|            using OptionsT =
 6182|      4|                typename std::remove_const<typename std::remove_pointer<
 6183|      4|                    decltype(descriptor.options_)>::type>::type;
 6184|      4|            using DescriptorT =
 6185|      4|                typename std::remove_const<typename std::remove_reference<
 6186|      4|                    decltype(descriptor)>::type>::type;
 6187|       |
 6188|      4|            ResolveFeatures(
 6189|      4|                proto, const_cast<DescriptorT*>(&descriptor),
 6190|      4|                const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6191|      4|                    OptionsT*>(descriptor.options_),
 6192|      4|                alloc);
 6193|      4|          });
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_4clINS0_10DescriptorENS0_15DescriptorProtoEEEDaRKT_RKT0_:
 6180|     41|          *result, proto, [&](const auto& descriptor, const auto& proto) {
 6181|     41|            using OptionsT =
 6182|     41|                typename std::remove_const<typename std::remove_pointer<
 6183|     41|                    decltype(descriptor.options_)>::type>::type;
 6184|     41|            using DescriptorT =
 6185|     41|                typename std::remove_const<typename std::remove_reference<
 6186|     41|                    decltype(descriptor)>::type>::type;
 6187|       |
 6188|     41|            ResolveFeatures(
 6189|     41|                proto, const_cast<DescriptorT*>(&descriptor),
 6190|     41|                const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6191|     41|                    OptionsT*>(descriptor.options_),
 6192|     41|                alloc);
 6193|     41|          });
_ZN6google8protobuf17DescriptorBuilder15ResolveFeaturesINS0_10DescriptorEEEvRKNT_5ProtoEPS4_PNS4_11OptionsTypeERNS0_8internal13FlatAllocatorE:
 5585|     41|    internal::FlatAllocator& alloc) {
 5586|     41|  ResolveFeaturesImpl(descriptor->file()->edition(), proto, descriptor, options,
 5587|     41|                      alloc, DescriptorPool::ErrorCollector::NAME);
 5588|     41|}
_ZN6google8protobuf17DescriptorBuilder19ResolveFeaturesImplINS0_10DescriptorEEEvNS0_7EditionERKNT_5ProtoEPS5_PNS5_11OptionsTypeERNS0_8internal13FlatAllocatorENS0_14DescriptorPool14ErrorCollector13ErrorLocationEb:
 5537|     41|    bool force_merge) {
 5538|     41|  const FeatureSet& parent_features = GetParentFeatures(descriptor);
 5539|     41|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5540|     41|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5541|       |
 5542|     41|  ABSL_CHECK(feature_resolver_.has_value());
  ------------------
  |  |   41|     41|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     82|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     41|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     82|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     82|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     41|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     82|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 41]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     82|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     82|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5543|       |
 5544|     41|  if (options->has_features()) {
  ------------------
  |  Branch (5544:7): [True: 0, False: 41]
  ------------------
 5545|       |    // Remove the features from the child's options proto to avoid leaking
 5546|       |    // internal details.
 5547|      0|    descriptor->proto_features_ =
 5548|      0|        tables_->InternFeatureSet(std::move(*options->mutable_features()));
 5549|      0|    options->clear_features();
 5550|      0|  }
 5551|       |
 5552|     41|  FeatureSet base_features = *descriptor->proto_features_;
 5553|       |
 5554|       |  // Handle feature inference from proto2/proto3.
 5555|     41|  if (IsLegacyEdition(edition)) {
  ------------------
  |  Branch (5555:7): [True: 41, False: 0]
  ------------------
 5556|     41|    if (descriptor->proto_features_ != &FeatureSet::default_instance()) {
  ------------------
  |  Branch (5556:9): [True: 0, False: 41]
  ------------------
 5557|      0|      AddError(descriptor->name(), proto, error_location,
 5558|      0|               "Features are only valid under editions.");
 5559|      0|    }
 5560|     41|  }
 5561|     41|  InferLegacyProtoFeatures(proto, *options, edition, base_features);
 5562|       |
 5563|     41|  if (base_features.ByteSizeLong() == 0 && !force_merge) {
  ------------------
  |  Branch (5563:7): [True: 41, False: 0]
  |  Branch (5563:44): [True: 41, False: 0]
  ------------------
 5564|       |    // Nothing to merge, and we aren't forcing it.
 5565|     41|    descriptor->merged_features_ = &parent_features;
 5566|     41|    return;
 5567|     41|  }
 5568|       |
 5569|       |  // Calculate the merged features for this target.
 5570|      0|  absl::StatusOr<FeatureSet> merged =
 5571|      0|      feature_resolver_->MergeFeatures(parent_features, base_features);
 5572|      0|  if (!merged.ok()) {
  ------------------
  |  Branch (5572:7): [True: 0, False: 0]
  ------------------
 5573|      0|    AddError(descriptor->name(), proto, error_location,
 5574|      0|             [&] { return std::string(merged.status().message()); });
 5575|      0|    return;
 5576|      0|  }
 5577|       |
 5578|      0|  descriptor->merged_features_ = tables_->InternFeatureSet(*std::move(merged));
 5579|      0|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117GetParentFeaturesEPKNS0_10DescriptorE:
 1146|     41|const FeatureSet& GetParentFeatures(const Descriptor* message) {
 1147|     41|  if (message->containing_type() == nullptr) {
  ------------------
  |  Branch (1147:7): [True: 31, False: 10]
  ------------------
 1148|     31|    return internal::InternalFeatureHelper::GetFeatures(*message->file());
 1149|     31|  }
 1150|     10|  return internal::InternalFeatureHelper::GetFeatures(
 1151|     10|      *message->containing_type());
 1152|     41|}
descriptor.cc:_ZN6google8protobufL24InferLegacyProtoFeaturesINS0_15DescriptorProtoENS0_14MessageOptionsEEEvRKT_RKT0_NS0_7EditionERNS0_10FeatureSetE:
 5483|     41|                                     FeatureSet& features) {}
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_4clINS0_15OneofDescriptorENS0_20OneofDescriptorProtoEEEDaRKT_RKT0_:
 6180|      1|          *result, proto, [&](const auto& descriptor, const auto& proto) {
 6181|      1|            using OptionsT =
 6182|      1|                typename std::remove_const<typename std::remove_pointer<
 6183|      1|                    decltype(descriptor.options_)>::type>::type;
 6184|      1|            using DescriptorT =
 6185|      1|                typename std::remove_const<typename std::remove_reference<
 6186|      1|                    decltype(descriptor)>::type>::type;
 6187|       |
 6188|      1|            ResolveFeatures(
 6189|      1|                proto, const_cast<DescriptorT*>(&descriptor),
 6190|      1|                const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6191|      1|                    OptionsT*>(descriptor.options_),
 6192|      1|                alloc);
 6193|      1|          });
_ZN6google8protobuf17DescriptorBuilder15ResolveFeaturesINS0_15OneofDescriptorEEEvRKNT_5ProtoEPS4_PNS4_11OptionsTypeERNS0_8internal13FlatAllocatorE:
 5585|      1|    internal::FlatAllocator& alloc) {
 5586|      1|  ResolveFeaturesImpl(descriptor->file()->edition(), proto, descriptor, options,
 5587|      1|                      alloc, DescriptorPool::ErrorCollector::NAME);
 5588|      1|}
_ZN6google8protobuf17DescriptorBuilder19ResolveFeaturesImplINS0_15OneofDescriptorEEEvNS0_7EditionERKNT_5ProtoEPS5_PNS5_11OptionsTypeERNS0_8internal13FlatAllocatorENS0_14DescriptorPool14ErrorCollector13ErrorLocationEb:
 5537|      1|    bool force_merge) {
 5538|      1|  const FeatureSet& parent_features = GetParentFeatures(descriptor);
 5539|      1|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5540|      1|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5541|       |
 5542|      1|  ABSL_CHECK(feature_resolver_.has_value());
  ------------------
  |  |   41|      1|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      2|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      1|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      2|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      2|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 1, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      1|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 1]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      2|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 1, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 1]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 1]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      2|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      2|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5543|       |
 5544|      1|  if (options->has_features()) {
  ------------------
  |  Branch (5544:7): [True: 0, False: 1]
  ------------------
 5545|       |    // Remove the features from the child's options proto to avoid leaking
 5546|       |    // internal details.
 5547|      0|    descriptor->proto_features_ =
 5548|      0|        tables_->InternFeatureSet(std::move(*options->mutable_features()));
 5549|      0|    options->clear_features();
 5550|      0|  }
 5551|       |
 5552|      1|  FeatureSet base_features = *descriptor->proto_features_;
 5553|       |
 5554|       |  // Handle feature inference from proto2/proto3.
 5555|      1|  if (IsLegacyEdition(edition)) {
  ------------------
  |  Branch (5555:7): [True: 1, False: 0]
  ------------------
 5556|      1|    if (descriptor->proto_features_ != &FeatureSet::default_instance()) {
  ------------------
  |  Branch (5556:9): [True: 0, False: 1]
  ------------------
 5557|      0|      AddError(descriptor->name(), proto, error_location,
 5558|      0|               "Features are only valid under editions.");
 5559|      0|    }
 5560|      1|  }
 5561|      1|  InferLegacyProtoFeatures(proto, *options, edition, base_features);
 5562|       |
 5563|      1|  if (base_features.ByteSizeLong() == 0 && !force_merge) {
  ------------------
  |  Branch (5563:7): [True: 1, False: 0]
  |  Branch (5563:44): [True: 1, False: 0]
  ------------------
 5564|       |    // Nothing to merge, and we aren't forcing it.
 5565|      1|    descriptor->merged_features_ = &parent_features;
 5566|      1|    return;
 5567|      1|  }
 5568|       |
 5569|       |  // Calculate the merged features for this target.
 5570|      0|  absl::StatusOr<FeatureSet> merged =
 5571|      0|      feature_resolver_->MergeFeatures(parent_features, base_features);
 5572|      0|  if (!merged.ok()) {
  ------------------
  |  Branch (5572:7): [True: 0, False: 0]
  ------------------
 5573|      0|    AddError(descriptor->name(), proto, error_location,
 5574|      0|             [&] { return std::string(merged.status().message()); });
 5575|      0|    return;
 5576|      0|  }
 5577|       |
 5578|      0|  descriptor->merged_features_ = tables_->InternFeatureSet(*std::move(merged));
 5579|      0|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117GetParentFeaturesEPKNS0_15OneofDescriptorE:
 1154|      1|const FeatureSet& GetParentFeatures(const OneofDescriptor* oneof) {
 1155|      1|  return internal::InternalFeatureHelper::GetFeatures(
 1156|      1|      *oneof->containing_type());
 1157|      1|}
descriptor.cc:_ZN6google8protobufL24InferLegacyProtoFeaturesINS0_20OneofDescriptorProtoENS0_12OneofOptionsEEEvRKT_RKT0_NS0_7EditionERNS0_10FeatureSetE:
 5483|      1|                                     FeatureSet& features) {}
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_4clINS0_10Descriptor14ExtensionRangeENS0_30DescriptorProto_ExtensionRangeEEEDaRKT_RKT0_:
 6180|     14|          *result, proto, [&](const auto& descriptor, const auto& proto) {
 6181|     14|            using OptionsT =
 6182|     14|                typename std::remove_const<typename std::remove_pointer<
 6183|     14|                    decltype(descriptor.options_)>::type>::type;
 6184|     14|            using DescriptorT =
 6185|     14|                typename std::remove_const<typename std::remove_reference<
 6186|     14|                    decltype(descriptor)>::type>::type;
 6187|       |
 6188|     14|            ResolveFeatures(
 6189|     14|                proto, const_cast<DescriptorT*>(&descriptor),
 6190|     14|                const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6191|     14|                    OptionsT*>(descriptor.options_),
 6192|     14|                alloc);
 6193|     14|          });
_ZN6google8protobuf17DescriptorBuilder15ResolveFeaturesINS0_10Descriptor14ExtensionRangeEEEvRKNT_5ProtoEPS5_PNS5_11OptionsTypeERNS0_8internal13FlatAllocatorE:
 5585|     14|    internal::FlatAllocator& alloc) {
 5586|     14|  ResolveFeaturesImpl(descriptor->file()->edition(), proto, descriptor, options,
 5587|     14|                      alloc, DescriptorPool::ErrorCollector::NAME);
 5588|     14|}
_ZN6google8protobuf17DescriptorBuilder19ResolveFeaturesImplINS0_10Descriptor14ExtensionRangeEEEvNS0_7EditionERKNT_5ProtoEPS6_PNS6_11OptionsTypeERNS0_8internal13FlatAllocatorENS0_14DescriptorPool14ErrorCollector13ErrorLocationEb:
 5537|     14|    bool force_merge) {
 5538|     14|  const FeatureSet& parent_features = GetParentFeatures(descriptor);
 5539|     14|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5540|     14|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5541|       |
 5542|     14|  ABSL_CHECK(feature_resolver_.has_value());
  ------------------
  |  |   41|     14|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     28|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     14|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     28|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     28|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 14, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     14|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 14]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     28|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 14, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 14]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 14]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     28|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     28|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5543|       |
 5544|     14|  if (options->has_features()) {
  ------------------
  |  Branch (5544:7): [True: 0, False: 14]
  ------------------
 5545|       |    // Remove the features from the child's options proto to avoid leaking
 5546|       |    // internal details.
 5547|      0|    descriptor->proto_features_ =
 5548|      0|        tables_->InternFeatureSet(std::move(*options->mutable_features()));
 5549|      0|    options->clear_features();
 5550|      0|  }
 5551|       |
 5552|     14|  FeatureSet base_features = *descriptor->proto_features_;
 5553|       |
 5554|       |  // Handle feature inference from proto2/proto3.
 5555|     14|  if (IsLegacyEdition(edition)) {
  ------------------
  |  Branch (5555:7): [True: 14, False: 0]
  ------------------
 5556|     14|    if (descriptor->proto_features_ != &FeatureSet::default_instance()) {
  ------------------
  |  Branch (5556:9): [True: 0, False: 14]
  ------------------
 5557|      0|      AddError(descriptor->name(), proto, error_location,
 5558|      0|               "Features are only valid under editions.");
 5559|      0|    }
 5560|     14|  }
 5561|     14|  InferLegacyProtoFeatures(proto, *options, edition, base_features);
 5562|       |
 5563|     14|  if (base_features.ByteSizeLong() == 0 && !force_merge) {
  ------------------
  |  Branch (5563:7): [True: 14, False: 0]
  |  Branch (5563:44): [True: 14, False: 0]
  ------------------
 5564|       |    // Nothing to merge, and we aren't forcing it.
 5565|     14|    descriptor->merged_features_ = &parent_features;
 5566|     14|    return;
 5567|     14|  }
 5568|       |
 5569|       |  // Calculate the merged features for this target.
 5570|      0|  absl::StatusOr<FeatureSet> merged =
 5571|      0|      feature_resolver_->MergeFeatures(parent_features, base_features);
 5572|      0|  if (!merged.ok()) {
  ------------------
  |  Branch (5572:7): [True: 0, False: 0]
  ------------------
 5573|      0|    AddError(descriptor->name(), proto, error_location,
 5574|      0|             [&] { return std::string(merged.status().message()); });
 5575|      0|    return;
 5576|      0|  }
 5577|       |
 5578|      0|  descriptor->merged_features_ = tables_->InternFeatureSet(*std::move(merged));
 5579|      0|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117GetParentFeaturesEPKNS0_10Descriptor14ExtensionRangeE:
 1159|     14|const FeatureSet& GetParentFeatures(const Descriptor::ExtensionRange* range) {
 1160|     14|  return internal::InternalFeatureHelper::GetFeatures(
 1161|     14|      *range->containing_type());
 1162|     14|}
descriptor.cc:_ZN6google8protobufL24InferLegacyProtoFeaturesINS0_30DescriptorProto_ExtensionRangeENS0_21ExtensionRangeOptionsEEEvRKT_RKT0_NS0_7EditionERNS0_10FeatureSetE:
 5483|     14|                                     FeatureSet& features) {}
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_4clINS0_14EnumDescriptorENS0_19EnumDescriptorProtoEEEDaRKT_RKT0_:
 6180|     20|          *result, proto, [&](const auto& descriptor, const auto& proto) {
 6181|     20|            using OptionsT =
 6182|     20|                typename std::remove_const<typename std::remove_pointer<
 6183|     20|                    decltype(descriptor.options_)>::type>::type;
 6184|     20|            using DescriptorT =
 6185|     20|                typename std::remove_const<typename std::remove_reference<
 6186|     20|                    decltype(descriptor)>::type>::type;
 6187|       |
 6188|     20|            ResolveFeatures(
 6189|     20|                proto, const_cast<DescriptorT*>(&descriptor),
 6190|     20|                const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6191|     20|                    OptionsT*>(descriptor.options_),
 6192|     20|                alloc);
 6193|     20|          });
_ZN6google8protobuf17DescriptorBuilder15ResolveFeaturesINS0_14EnumDescriptorEEEvRKNT_5ProtoEPS4_PNS4_11OptionsTypeERNS0_8internal13FlatAllocatorE:
 5585|     20|    internal::FlatAllocator& alloc) {
 5586|     20|  ResolveFeaturesImpl(descriptor->file()->edition(), proto, descriptor, options,
 5587|     20|                      alloc, DescriptorPool::ErrorCollector::NAME);
 5588|     20|}
_ZN6google8protobuf17DescriptorBuilder19ResolveFeaturesImplINS0_14EnumDescriptorEEEvNS0_7EditionERKNT_5ProtoEPS5_PNS5_11OptionsTypeERNS0_8internal13FlatAllocatorENS0_14DescriptorPool14ErrorCollector13ErrorLocationEb:
 5537|     20|    bool force_merge) {
 5538|     20|  const FeatureSet& parent_features = GetParentFeatures(descriptor);
 5539|     20|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5540|     20|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5541|       |
 5542|     20|  ABSL_CHECK(feature_resolver_.has_value());
  ------------------
  |  |   41|     20|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     40|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     20|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     40|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     40|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     20|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     40|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 20]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     40|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     40|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5543|       |
 5544|     20|  if (options->has_features()) {
  ------------------
  |  Branch (5544:7): [True: 0, False: 20]
  ------------------
 5545|       |    // Remove the features from the child's options proto to avoid leaking
 5546|       |    // internal details.
 5547|      0|    descriptor->proto_features_ =
 5548|      0|        tables_->InternFeatureSet(std::move(*options->mutable_features()));
 5549|      0|    options->clear_features();
 5550|      0|  }
 5551|       |
 5552|     20|  FeatureSet base_features = *descriptor->proto_features_;
 5553|       |
 5554|       |  // Handle feature inference from proto2/proto3.
 5555|     20|  if (IsLegacyEdition(edition)) {
  ------------------
  |  Branch (5555:7): [True: 20, False: 0]
  ------------------
 5556|     20|    if (descriptor->proto_features_ != &FeatureSet::default_instance()) {
  ------------------
  |  Branch (5556:9): [True: 0, False: 20]
  ------------------
 5557|      0|      AddError(descriptor->name(), proto, error_location,
 5558|      0|               "Features are only valid under editions.");
 5559|      0|    }
 5560|     20|  }
 5561|     20|  InferLegacyProtoFeatures(proto, *options, edition, base_features);
 5562|       |
 5563|     20|  if (base_features.ByteSizeLong() == 0 && !force_merge) {
  ------------------
  |  Branch (5563:7): [True: 20, False: 0]
  |  Branch (5563:44): [True: 20, False: 0]
  ------------------
 5564|       |    // Nothing to merge, and we aren't forcing it.
 5565|     20|    descriptor->merged_features_ = &parent_features;
 5566|     20|    return;
 5567|     20|  }
 5568|       |
 5569|       |  // Calculate the merged features for this target.
 5570|      0|  absl::StatusOr<FeatureSet> merged =
 5571|      0|      feature_resolver_->MergeFeatures(parent_features, base_features);
 5572|      0|  if (!merged.ok()) {
  ------------------
  |  Branch (5572:7): [True: 0, False: 0]
  ------------------
 5573|      0|    AddError(descriptor->name(), proto, error_location,
 5574|      0|             [&] { return std::string(merged.status().message()); });
 5575|      0|    return;
 5576|      0|  }
 5577|       |
 5578|      0|  descriptor->merged_features_ = tables_->InternFeatureSet(*std::move(merged));
 5579|      0|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117GetParentFeaturesEPKNS0_14EnumDescriptorE:
 1179|     20|const FeatureSet& GetParentFeatures(const EnumDescriptor* enm) {
 1180|     20|  if (enm->containing_type() == nullptr) {
  ------------------
  |  Branch (1180:7): [True: 3, False: 17]
  ------------------
 1181|      3|    return internal::InternalFeatureHelper::GetFeatures(*enm->file());
 1182|      3|  }
 1183|     17|  return internal::InternalFeatureHelper::GetFeatures(*enm->containing_type());
 1184|     20|}
descriptor.cc:_ZN6google8protobufL24InferLegacyProtoFeaturesINS0_19EnumDescriptorProtoENS0_11EnumOptionsEEEvRKT_RKT0_NS0_7EditionERNS0_10FeatureSetE:
 5483|     20|                                     FeatureSet& features) {}
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_4clINS0_19EnumValueDescriptorENS0_24EnumValueDescriptorProtoEEEDaRKT_RKT0_:
 6180|    111|          *result, proto, [&](const auto& descriptor, const auto& proto) {
 6181|    111|            using OptionsT =
 6182|    111|                typename std::remove_const<typename std::remove_pointer<
 6183|    111|                    decltype(descriptor.options_)>::type>::type;
 6184|    111|            using DescriptorT =
 6185|    111|                typename std::remove_const<typename std::remove_reference<
 6186|    111|                    decltype(descriptor)>::type>::type;
 6187|       |
 6188|    111|            ResolveFeatures(
 6189|    111|                proto, const_cast<DescriptorT*>(&descriptor),
 6190|    111|                const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6191|    111|                    OptionsT*>(descriptor.options_),
 6192|    111|                alloc);
 6193|    111|          });
_ZN6google8protobuf17DescriptorBuilder15ResolveFeaturesINS0_19EnumValueDescriptorEEEvRKNT_5ProtoEPS4_PNS4_11OptionsTypeERNS0_8internal13FlatAllocatorE:
 5585|    111|    internal::FlatAllocator& alloc) {
 5586|    111|  ResolveFeaturesImpl(descriptor->file()->edition(), proto, descriptor, options,
 5587|    111|                      alloc, DescriptorPool::ErrorCollector::NAME);
 5588|    111|}
_ZN6google8protobuf17DescriptorBuilder19ResolveFeaturesImplINS0_19EnumValueDescriptorEEEvNS0_7EditionERKNT_5ProtoEPS5_PNS5_11OptionsTypeERNS0_8internal13FlatAllocatorENS0_14DescriptorPool14ErrorCollector13ErrorLocationEb:
 5537|    111|    bool force_merge) {
 5538|    111|  const FeatureSet& parent_features = GetParentFeatures(descriptor);
 5539|    111|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5540|    111|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5541|       |
 5542|    111|  ABSL_CHECK(feature_resolver_.has_value());
  ------------------
  |  |   41|    111|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    222|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|    111|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    222|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    222|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 111, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|    111|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 111]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    222|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 111, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 111]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 111]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    222|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    222|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5543|       |
 5544|    111|  if (options->has_features()) {
  ------------------
  |  Branch (5544:7): [True: 0, False: 111]
  ------------------
 5545|       |    // Remove the features from the child's options proto to avoid leaking
 5546|       |    // internal details.
 5547|      0|    descriptor->proto_features_ =
 5548|      0|        tables_->InternFeatureSet(std::move(*options->mutable_features()));
 5549|      0|    options->clear_features();
 5550|      0|  }
 5551|       |
 5552|    111|  FeatureSet base_features = *descriptor->proto_features_;
 5553|       |
 5554|       |  // Handle feature inference from proto2/proto3.
 5555|    111|  if (IsLegacyEdition(edition)) {
  ------------------
  |  Branch (5555:7): [True: 111, False: 0]
  ------------------
 5556|    111|    if (descriptor->proto_features_ != &FeatureSet::default_instance()) {
  ------------------
  |  Branch (5556:9): [True: 0, False: 111]
  ------------------
 5557|      0|      AddError(descriptor->name(), proto, error_location,
 5558|      0|               "Features are only valid under editions.");
 5559|      0|    }
 5560|    111|  }
 5561|    111|  InferLegacyProtoFeatures(proto, *options, edition, base_features);
 5562|       |
 5563|    111|  if (base_features.ByteSizeLong() == 0 && !force_merge) {
  ------------------
  |  Branch (5563:7): [True: 111, False: 0]
  |  Branch (5563:44): [True: 111, False: 0]
  ------------------
 5564|       |    // Nothing to merge, and we aren't forcing it.
 5565|    111|    descriptor->merged_features_ = &parent_features;
 5566|    111|    return;
 5567|    111|  }
 5568|       |
 5569|       |  // Calculate the merged features for this target.
 5570|      0|  absl::StatusOr<FeatureSet> merged =
 5571|      0|      feature_resolver_->MergeFeatures(parent_features, base_features);
 5572|      0|  if (!merged.ok()) {
  ------------------
  |  Branch (5572:7): [True: 0, False: 0]
  ------------------
 5573|      0|    AddError(descriptor->name(), proto, error_location,
 5574|      0|             [&] { return std::string(merged.status().message()); });
 5575|      0|    return;
 5576|      0|  }
 5577|       |
 5578|      0|  descriptor->merged_features_ = tables_->InternFeatureSet(*std::move(merged));
 5579|      0|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117GetParentFeaturesEPKNS0_19EnumValueDescriptorE:
 1186|    111|const FeatureSet& GetParentFeatures(const EnumValueDescriptor* value) {
 1187|    111|  return internal::InternalFeatureHelper::GetFeatures(*value->type());
 1188|    111|}
descriptor.cc:_ZN6google8protobufL24InferLegacyProtoFeaturesINS0_24EnumValueDescriptorProtoENS0_16EnumValueOptionsEEEvRKT_RKT0_NS0_7EditionERNS0_10FeatureSetE:
 5483|    111|                                     FeatureSet& features) {}
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_4clINS0_15FieldDescriptorENS0_20FieldDescriptorProtoEEEDaRKT_RKT0_:
 6180|    203|          *result, proto, [&](const auto& descriptor, const auto& proto) {
 6181|    203|            using OptionsT =
 6182|    203|                typename std::remove_const<typename std::remove_pointer<
 6183|    203|                    decltype(descriptor.options_)>::type>::type;
 6184|    203|            using DescriptorT =
 6185|    203|                typename std::remove_const<typename std::remove_reference<
 6186|    203|                    decltype(descriptor)>::type>::type;
 6187|       |
 6188|    203|            ResolveFeatures(
 6189|    203|                proto, const_cast<DescriptorT*>(&descriptor),
 6190|    203|                const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6191|    203|                    OptionsT*>(descriptor.options_),
 6192|    203|                alloc);
 6193|    203|          });
_ZN6google8protobuf17DescriptorBuilder15ResolveFeaturesINS0_15FieldDescriptorEEEvRKNT_5ProtoEPS4_PNS4_11OptionsTypeERNS0_8internal13FlatAllocatorE:
 5585|    203|    internal::FlatAllocator& alloc) {
 5586|    203|  ResolveFeaturesImpl(descriptor->file()->edition(), proto, descriptor, options,
 5587|    203|                      alloc, DescriptorPool::ErrorCollector::NAME);
 5588|    203|}
_ZN6google8protobuf17DescriptorBuilder19ResolveFeaturesImplINS0_15FieldDescriptorEEEvNS0_7EditionERKNT_5ProtoEPS5_PNS5_11OptionsTypeERNS0_8internal13FlatAllocatorENS0_14DescriptorPool14ErrorCollector13ErrorLocationEb:
 5537|    203|    bool force_merge) {
 5538|    203|  const FeatureSet& parent_features = GetParentFeatures(descriptor);
 5539|    203|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5540|    203|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5541|       |
 5542|    203|  ABSL_CHECK(feature_resolver_.has_value());
  ------------------
  |  |   41|    203|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    406|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|    203|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    406|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    406|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 203, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|    203|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 203]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    406|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 203, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 203]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 203]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    406|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    406|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5543|       |
 5544|    203|  if (options->has_features()) {
  ------------------
  |  Branch (5544:7): [True: 0, False: 203]
  ------------------
 5545|       |    // Remove the features from the child's options proto to avoid leaking
 5546|       |    // internal details.
 5547|      0|    descriptor->proto_features_ =
 5548|      0|        tables_->InternFeatureSet(std::move(*options->mutable_features()));
 5549|      0|    options->clear_features();
 5550|      0|  }
 5551|       |
 5552|    203|  FeatureSet base_features = *descriptor->proto_features_;
 5553|       |
 5554|       |  // Handle feature inference from proto2/proto3.
 5555|    203|  if (IsLegacyEdition(edition)) {
  ------------------
  |  Branch (5555:7): [True: 203, False: 0]
  ------------------
 5556|    203|    if (descriptor->proto_features_ != &FeatureSet::default_instance()) {
  ------------------
  |  Branch (5556:9): [True: 0, False: 203]
  ------------------
 5557|      0|      AddError(descriptor->name(), proto, error_location,
 5558|      0|               "Features are only valid under editions.");
 5559|      0|    }
 5560|    203|  }
 5561|    203|  InferLegacyProtoFeatures(proto, *options, edition, base_features);
 5562|       |
 5563|    203|  if (base_features.ByteSizeLong() == 0 && !force_merge) {
  ------------------
  |  Branch (5563:7): [True: 0, False: 203]
  |  Branch (5563:44): [True: 0, False: 0]
  ------------------
 5564|       |    // Nothing to merge, and we aren't forcing it.
 5565|      0|    descriptor->merged_features_ = &parent_features;
 5566|      0|    return;
 5567|      0|  }
 5568|       |
 5569|       |  // Calculate the merged features for this target.
 5570|    203|  absl::StatusOr<FeatureSet> merged =
 5571|    203|      feature_resolver_->MergeFeatures(parent_features, base_features);
 5572|    203|  if (!merged.ok()) {
  ------------------
  |  Branch (5572:7): [True: 0, False: 203]
  ------------------
 5573|      0|    AddError(descriptor->name(), proto, error_location,
 5574|      0|             [&] { return std::string(merged.status().message()); });
 5575|      0|    return;
 5576|      0|  }
 5577|       |
 5578|    203|  descriptor->merged_features_ = tables_->InternFeatureSet(*std::move(merged));
 5579|    203|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117GetParentFeaturesEPKNS0_15FieldDescriptorE:
 1164|    203|const FeatureSet& GetParentFeatures(const FieldDescriptor* field) {
 1165|    203|  if (field->containing_oneof() != nullptr) {
  ------------------
  |  Branch (1165:7): [True: 3, False: 200]
  ------------------
 1166|      3|    return internal::InternalFeatureHelper::GetFeatures(
 1167|      3|        *field->containing_oneof());
 1168|    200|  } else if (field->is_extension()) {
  ------------------
  |  Branch (1168:14): [True: 1, False: 199]
  ------------------
 1169|      1|    if (field->extension_scope() == nullptr) {
  ------------------
  |  Branch (1169:9): [True: 1, False: 0]
  ------------------
 1170|      1|      return internal::InternalFeatureHelper::GetFeatures(*field->file());
 1171|      1|    }
 1172|      0|    return internal::InternalFeatureHelper::GetFeatures(
 1173|      0|        *field->extension_scope());
 1174|      1|  }
 1175|    199|  return internal::InternalFeatureHelper::GetFeatures(
 1176|    199|      *field->containing_type());
 1177|    203|}
descriptor.cc:_ZN6google8protobufL24InferLegacyProtoFeaturesERKNS0_20FieldDescriptorProtoERKNS0_12FieldOptionsENS0_7EditionERNS0_10FeatureSetE:
 5487|    203|                                     Edition edition, FeatureSet& features) {
 5488|    203|  if (!features.MutableExtension(pb::cpp)->has_string_type()) {
  ------------------
  |  Branch (5488:7): [True: 203, False: 0]
  ------------------
 5489|    203|    if (options.ctype() == FieldOptions::CORD) {
  ------------------
  |  Branch (5489:9): [True: 0, False: 203]
  ------------------
 5490|      0|      features.MutableExtension(pb::cpp)->set_string_type(
 5491|      0|          pb::CppFeatures::CORD);
 5492|      0|    }
 5493|    203|  }
 5494|       |
 5495|       |  // Everything below is specifically for proto2/proto.
 5496|    203|  if (!IsLegacyEdition(edition)) return;
  ------------------
  |  Branch (5496:7): [True: 0, False: 203]
  ------------------
 5497|       |
 5498|    203|  if (proto.label() == FieldDescriptorProto::LABEL_REQUIRED) {
  ------------------
  |  Branch (5498:7): [True: 2, False: 201]
  ------------------
 5499|      2|    features.set_field_presence(FeatureSet::LEGACY_REQUIRED);
 5500|      2|  }
 5501|    203|  if (proto.type() == FieldDescriptorProto::TYPE_GROUP) {
  ------------------
  |  Branch (5501:7): [True: 0, False: 203]
  ------------------
 5502|      0|    features.set_message_encoding(FeatureSet::DELIMITED);
 5503|      0|  }
 5504|    203|  if (options.packed()) {
  ------------------
  |  Branch (5504:7): [True: 3, False: 200]
  ------------------
 5505|      3|    features.set_repeated_field_encoding(FeatureSet::PACKED);
 5506|      3|  }
 5507|    203|  if (edition == Edition::EDITION_PROTO3) {
  ------------------
  |  Branch (5507:7): [True: 29, False: 174]
  ------------------
 5508|     29|    if (options.has_packed() && !options.packed()) {
  ------------------
  |  Branch (5508:9): [True: 0, False: 29]
  |  Branch (5508:33): [True: 0, False: 0]
  ------------------
 5509|      0|      features.set_repeated_field_encoding(FeatureSet::EXPANDED);
 5510|      0|    }
 5511|     29|  }
 5512|    203|}
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_5clERKNS0_15FieldDescriptorE:
 6196|    203|    internal::VisitDescriptors(*result, [&](const FieldDescriptor& field) {
 6197|    203|      if (result->edition() >= Edition::EDITION_2024 &&
  ------------------
  |  Branch (6197:11): [True: 0, False: 203]
  ------------------
 6198|      0|          field.options().has_ctype()) {
  ------------------
  |  Branch (6198:11): [True: 0, False: 0]
  ------------------
 6199|       |        // "ctype" is no longer supported in edition 2024 and beyond.
 6200|      0|        AddError(
 6201|      0|            field.full_name(), proto, DescriptorPool::ErrorCollector::NAME,
 6202|      0|            "ctype option is not allowed under edition 2024 and beyond. Use "
 6203|      0|            "the feature string_type = VIEW|CORD|STRING|... instead.");
 6204|      0|      }
 6205|    203|      EnforceCTypeStringTypeConsistency(
 6206|    203|          field.file()->edition(), field.cpp_type(),
 6207|    203|          field.merged_features_->GetExtension(pb::cpp),
 6208|    203|          const_cast<  // NOLINT(google3-runtime-proto-const-cast)
 6209|    203|              FieldOptions&>(*field.options_));
 6210|    203|    });
descriptor.cc:_ZN6google8protobufL33EnforceCTypeStringTypeConsistencyENS0_7EditionENS0_8internal19FieldDescriptorLite7CppTypeERKN2pb11CppFeaturesERNS0_12FieldOptionsE:
 5518|    203|    const pb::CppFeatures& cpp_features, FieldOptions& options) {
 5519|    203|  if (&options == &FieldOptions::default_instance()) return;
  ------------------
  |  Branch (5519:7): [True: 186, False: 17]
  ------------------
 5520|     17|  if (type == FieldDescriptor::CPPTYPE_STRING) {
  ------------------
  |  Branch (5520:7): [True: 0, False: 17]
  ------------------
 5521|      0|    switch (cpp_features.string_type()) {
 5522|      0|      case pb::CppFeatures::CORD:
  ------------------
  |  Branch (5522:7): [True: 0, False: 0]
  ------------------
 5523|      0|        options.set_ctype(FieldOptions::CORD);
 5524|      0|        break;
 5525|      0|      default:
  ------------------
  |  Branch (5525:7): [True: 0, False: 0]
  ------------------
 5526|      0|        break;
 5527|      0|    }
 5528|      0|  }
 5529|     17|}
descriptor.cc:_ZZN6google8protobuf17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS0_8internal13FlatAllocatorEENK3$_6clERKNS0_15FieldDescriptorERKNS0_20FieldDescriptorProtoE:
 6215|    203|        [&](const FieldDescriptor& field, const FieldDescriptorProto& proto) {
 6216|    203|          PostProcessFieldFeatures(const_cast<FieldDescriptor&>(field), proto);
 6217|    203|        });
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE15AllocateStringsIJRKN4absl12lts_2024011611string_viewES9_EEEPKS9_DpOT_:
  416|    156|  const std::string* AllocateStrings(In&&... in) {
  417|    156|    std::string* strings = AllocateArray<std::string>(sizeof...(in));
  418|    156|    std::string* res = strings;
  419|    156|    Fold({(*strings++ = std::string(std::forward<In>(in)))...});
  420|    156|    return res;
  421|    156|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_15OneofDescriptorEEEPT_i:
  400|     41|  U* AllocateArray(int array_size) {
  401|     41|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     41|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     41|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     41|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     82|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     41|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     82|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     82|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     41|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     82|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 41]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     82|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     82|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     41|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     41|    int& used = used_.template Get<TypeToUse>();
  409|     41|    U* res = reinterpret_cast<U*>(data + used);
  410|     41|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 41, Folded]
  ------------------
  411|     41|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     41|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     41|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     41|  while (                                                                      \
  |  |  |  |  |  |   62|     41|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 41]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     41|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     41|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     41|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     41|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     41|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     41|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     41|    return res;
  413|     41|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_10Descriptor13ReservedRangeEEEPT_i:
  400|     41|  U* AllocateArray(int array_size) {
  401|     41|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     41|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     41|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     41|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     82|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     41|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     82|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     82|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     41|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     82|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 41, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 41]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     82|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     82|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     41|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     41|    int& used = used_.template Get<TypeToUse>();
  409|     41|    U* res = reinterpret_cast<U*>(data + used);
  410|     41|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 41, Folded]
  ------------------
  411|     41|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     41|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     41|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     41|  while (                                                                      \
  |  |  |  |  |  |   62|     41|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 41]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     41|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     41|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     41|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     41|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     41|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     41|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     41|    return res;
  413|     41|  }
_ZN6google8protobuf17DescriptorBuilder15AllocateOptionsINS0_10DescriptorEEEvRKNT_5ProtoEPS4_iN4absl12lts_2024011611string_viewERNS0_8internal13FlatAllocatorE:
 5396|     41|    internal::FlatAllocator& alloc) {
 5397|     41|  std::vector<int> options_path;
 5398|     41|  descriptor->GetLocationPath(&options_path);
 5399|     41|  options_path.push_back(options_field_tag);
 5400|     41|  auto options = AllocateOptionsImpl<DescriptorT>(
 5401|     41|      descriptor->full_name(), descriptor->full_name(), proto, options_path,
 5402|     41|      option_name, alloc);
 5403|     41|  descriptor->options_ = options;
 5404|     41|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5405|     41|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5406|     41|}
_ZN6google8protobuf17DescriptorBuilder19AllocateOptionsImplINS0_10DescriptorEEEPKNT_11OptionsTypeEN4absl12lts_2024011611string_viewESA_RKNS4_5ProtoENS9_4SpanIKiEESA_RNS0_8internal13FlatAllocatorE:
 5428|     41|    internal::FlatAllocator& alloc) {
 5429|     41|  if (!proto.has_options()) {
  ------------------
  |  Branch (5429:7): [True: 41, False: 0]
  ------------------
 5430|     41|    return &DescriptorT::OptionsType::default_instance();
 5431|     41|  }
 5432|      0|  const typename DescriptorT::OptionsType& orig_options = proto.options();
 5433|       |
 5434|      0|  auto* options = alloc.AllocateArray<typename DescriptorT::OptionsType>(1);
 5435|       |
 5436|      0|  if (!orig_options.IsInitialized()) {
  ------------------
  |  Branch (5436:7): [True: 0, False: 0]
  ------------------
 5437|      0|    AddError(absl::StrCat(name_scope, ".", element_name), orig_options,
 5438|      0|             DescriptorPool::ErrorCollector::OPTION_NAME,
 5439|      0|             "Uninterpreted option is missing name or value.");
 5440|      0|    return &DescriptorT::OptionsType::default_instance();
 5441|      0|  }
 5442|       |
 5443|      0|  const bool parse_success =
 5444|      0|      internal::ParseNoReflection(orig_options.SerializeAsString(), *options);
 5445|      0|  ABSL_DCHECK(parse_success);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5446|       |
 5447|       |  // Don't add to options_to_interpret_ unless there were uninterpreted
 5448|       |  // options.  This not only avoids unnecessary work, but prevents a
 5449|       |  // bootstrapping problem when building descriptors for descriptor.proto.
 5450|       |  // descriptor.proto does not contain any uninterpreted options, but
 5451|       |  // attempting to interpret options anyway will cause
 5452|       |  // OptionsType::GetDescriptor() to be called which may then deadlock since
 5453|       |  // we're still trying to build it.
 5454|      0|  if (options->uninterpreted_option_size() > 0) {
  ------------------
  |  Branch (5454:7): [True: 0, False: 0]
  ------------------
 5455|      0|    options_to_interpret_.push_back(OptionsToInterpret(
 5456|      0|        name_scope, element_name, options_path, &orig_options, options));
 5457|      0|  }
 5458|       |
 5459|       |  // If the custom option is in unknown fields, no need to interpret it.
 5460|       |  // Remove the dependency file from unused_dependency.
 5461|      0|  const UnknownFieldSet& unknown_fields = orig_options.unknown_fields();
 5462|      0|  if (!unknown_fields.empty()) {
  ------------------
  |  Branch (5462:7): [True: 0, False: 0]
  ------------------
 5463|       |    // Can not use options->GetDescriptor() which may case deadlock.
 5464|      0|    Symbol msg_symbol = tables_->FindSymbol(option_name);
 5465|      0|    if (msg_symbol.type() == Symbol::MESSAGE) {
  ------------------
  |  Branch (5465:9): [True: 0, False: 0]
  ------------------
 5466|      0|      for (int i = 0; i < unknown_fields.field_count(); ++i) {
  ------------------
  |  Branch (5466:23): [True: 0, False: 0]
  ------------------
 5467|      0|        assert_mutex_held(pool_);
 5468|      0|        const FieldDescriptor* field =
 5469|      0|            pool_->InternalFindExtensionByNumberNoLock(
 5470|      0|                msg_symbol.descriptor(), unknown_fields.field(i).number());
 5471|      0|        if (field) {
  ------------------
  |  Branch (5471:13): [True: 0, False: 0]
  ------------------
 5472|      0|          unused_dependency_.erase(field->file());
 5473|      0|        }
 5474|      0|      }
 5475|      0|    }
 5476|      0|  }
 5477|      0|  return options;
 5478|      0|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayIPKS9_EEPT_i:
  400|     61|  U* AllocateArray(int array_size) {
  401|     61|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     61|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     61|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     61|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    122|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     61|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    122|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    122|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 61, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     61|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 61]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    122|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 61, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 61]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 61]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    122|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    122|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     61|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     61|    int& used = used_.template Get<TypeToUse>();
  409|     61|    U* res = reinterpret_cast<U*>(data + used);
  410|     61|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 61, Folded]
  ------------------
  411|     61|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     61|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     61|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     61|  while (                                                                      \
  |  |  |  |  |  |   62|     61|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 61]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     61|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     61|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     61|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     61|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     61|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     61|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     61|    return res;
  413|     61|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE18AllocateFieldNamesEN4absl12lts_2024011611string_viewESP_PKS9_:
  470|    203|                                      const std::string* opt_json_name) {
  471|    203|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|    203|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|    406|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|    203|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|    406|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|    406|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 203, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|    203|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 203]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|    406|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 203, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 203]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 203]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|    406|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|    406|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  472|       |
  473|    203|    std::string full_name =
  474|    203|        scope.empty() ? std::string(name) : absl::StrCat(scope, ".", name);
  ------------------
  |  Branch (474:9): [True: 0, False: 203]
  ------------------
  475|       |
  476|       |    // Fast path for snake_case names, which follow the style guide.
  477|    203|    if (opt_json_name == nullptr) {
  ------------------
  |  Branch (477:9): [True: 203, False: 0]
  ------------------
  478|    203|      switch (GetFieldNameCase(name)) {
  479|     94|        case FieldNameCase::kAllLower:
  ------------------
  |  Branch (479:9): [True: 94, False: 109]
  ------------------
  480|       |          // Case 1: they are all the same.
  481|     94|          return {AllocateStrings(name, std::move(full_name)), 0, 0, 0};
  482|    109|        case FieldNameCase::kSnakeCase:
  ------------------
  |  Branch (482:9): [True: 109, False: 94]
  ------------------
  483|       |          // Case 2: name==lower, camel==json
  484|    109|          return {AllocateStrings(name, std::move(full_name),
  485|    109|                                  ToCamelCase(name, /* lower_first = */ true)),
  486|    109|                  0, 2, 2};
  487|      0|        default:
  ------------------
  |  Branch (487:9): [True: 0, False: 203]
  ------------------
  488|      0|          break;
  489|    203|      }
  490|    203|    }
  491|       |
  492|      0|    std::vector<std::string> names;
  493|      0|    names.emplace_back(name);
  494|      0|    names.push_back(std::move(full_name));
  495|       |
  496|      0|    const auto push_name = [&](std::string new_name) {
  497|      0|      for (size_t i = 0; i < names.size(); ++i) {
  498|       |        // Do not compare the full_name. It is unlikely to match, except in
  499|       |        // custom json_name. We are not taking this into account in
  500|       |        // PlanFieldNames so better to not try it.
  501|      0|        if (i == 1) continue;
  502|      0|        if (names[i] == new_name) return i;
  503|      0|      }
  504|      0|      names.push_back(std::move(new_name));
  505|      0|      return names.size() - 1;
  506|      0|    };
  507|       |
  508|      0|    FieldNamesResult result{nullptr, 0, 0, 0};
  509|       |
  510|      0|    std::string lowercase_name = std::string(name);
  511|      0|    absl::AsciiStrToLower(&lowercase_name);
  512|      0|    result.lowercase_index = push_name(std::move(lowercase_name));
  513|      0|    result.camelcase_index =
  514|      0|        push_name(ToCamelCase(name, /* lower_first = */ true));
  515|      0|    result.json_index =
  516|      0|        push_name(opt_json_name != nullptr ? *opt_json_name : ToJsonName(name));
  ------------------
  |  Branch (516:19): [True: 0, False: 0]
  ------------------
  517|       |
  518|      0|    std::string* all_names = AllocateArray<std::string>(names.size());
  519|      0|    result.array = all_names;
  520|      0|    std::move(names.begin(), names.end(), all_names);
  521|       |
  522|      0|    return result;
  523|    203|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE15AllocateStringsIJRKN4absl12lts_2024011611string_viewES9_S9_EEEPKS9_DpOT_:
  416|    109|  const std::string* AllocateStrings(In&&... in) {
  417|    109|    std::string* strings = AllocateArray<std::string>(sizeof...(in));
  418|    109|    std::string* res = strings;
  419|    109|    Fold({(*strings++ = std::string(std::forward<In>(in)))...});
  420|    109|    return res;
  421|    109|  }
_ZN6google8protobuf17DescriptorBuilder15AllocateOptionsINS0_15FieldDescriptorEEEvRKNT_5ProtoEPS4_iN4absl12lts_2024011611string_viewERNS0_8internal13FlatAllocatorE:
 5396|    203|    internal::FlatAllocator& alloc) {
 5397|    203|  std::vector<int> options_path;
 5398|    203|  descriptor->GetLocationPath(&options_path);
 5399|    203|  options_path.push_back(options_field_tag);
 5400|    203|  auto options = AllocateOptionsImpl<DescriptorT>(
 5401|    203|      descriptor->full_name(), descriptor->full_name(), proto, options_path,
 5402|    203|      option_name, alloc);
 5403|    203|  descriptor->options_ = options;
 5404|    203|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5405|    203|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5406|    203|}
_ZN6google8protobuf17DescriptorBuilder19AllocateOptionsImplINS0_15FieldDescriptorEEEPKNT_11OptionsTypeEN4absl12lts_2024011611string_viewESA_RKNS4_5ProtoENS9_4SpanIKiEESA_RNS0_8internal13FlatAllocatorE:
 5428|    203|    internal::FlatAllocator& alloc) {
 5429|    203|  if (!proto.has_options()) {
  ------------------
  |  Branch (5429:7): [True: 186, False: 17]
  ------------------
 5430|    186|    return &DescriptorT::OptionsType::default_instance();
 5431|    186|  }
 5432|     17|  const typename DescriptorT::OptionsType& orig_options = proto.options();
 5433|       |
 5434|     17|  auto* options = alloc.AllocateArray<typename DescriptorT::OptionsType>(1);
 5435|       |
 5436|     17|  if (!orig_options.IsInitialized()) {
  ------------------
  |  Branch (5436:7): [True: 0, False: 17]
  ------------------
 5437|      0|    AddError(absl::StrCat(name_scope, ".", element_name), orig_options,
 5438|      0|             DescriptorPool::ErrorCollector::OPTION_NAME,
 5439|      0|             "Uninterpreted option is missing name or value.");
 5440|      0|    return &DescriptorT::OptionsType::default_instance();
 5441|      0|  }
 5442|       |
 5443|     17|  const bool parse_success =
 5444|     17|      internal::ParseNoReflection(orig_options.SerializeAsString(), *options);
 5445|     17|  ABSL_DCHECK(parse_success);
  ------------------
  |  |   47|     17|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     17|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     34|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     17|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     34|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     34|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 17, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     17|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 17]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     17|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 17, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     34|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     34|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5446|       |
 5447|       |  // Don't add to options_to_interpret_ unless there were uninterpreted
 5448|       |  // options.  This not only avoids unnecessary work, but prevents a
 5449|       |  // bootstrapping problem when building descriptors for descriptor.proto.
 5450|       |  // descriptor.proto does not contain any uninterpreted options, but
 5451|       |  // attempting to interpret options anyway will cause
 5452|       |  // OptionsType::GetDescriptor() to be called which may then deadlock since
 5453|       |  // we're still trying to build it.
 5454|     17|  if (options->uninterpreted_option_size() > 0) {
  ------------------
  |  Branch (5454:7): [True: 0, False: 17]
  ------------------
 5455|      0|    options_to_interpret_.push_back(OptionsToInterpret(
 5456|      0|        name_scope, element_name, options_path, &orig_options, options));
 5457|      0|  }
 5458|       |
 5459|       |  // If the custom option is in unknown fields, no need to interpret it.
 5460|       |  // Remove the dependency file from unused_dependency.
 5461|     17|  const UnknownFieldSet& unknown_fields = orig_options.unknown_fields();
 5462|     17|  if (!unknown_fields.empty()) {
  ------------------
  |  Branch (5462:7): [True: 0, False: 17]
  ------------------
 5463|       |    // Can not use options->GetDescriptor() which may case deadlock.
 5464|      0|    Symbol msg_symbol = tables_->FindSymbol(option_name);
 5465|      0|    if (msg_symbol.type() == Symbol::MESSAGE) {
  ------------------
  |  Branch (5465:9): [True: 0, False: 0]
  ------------------
 5466|      0|      for (int i = 0; i < unknown_fields.field_count(); ++i) {
  ------------------
  |  Branch (5466:23): [True: 0, False: 0]
  ------------------
 5467|      0|        assert_mutex_held(pool_);
 5468|      0|        const FieldDescriptor* field =
 5469|      0|            pool_->InternalFindExtensionByNumberNoLock(
 5470|      0|                msg_symbol.descriptor(), unknown_fields.field(i).number());
 5471|      0|        if (field) {
  ------------------
  |  Branch (5471:13): [True: 0, False: 0]
  ------------------
 5472|      0|          unused_dependency_.erase(field->file());
 5473|      0|        }
 5474|      0|      }
 5475|      0|    }
 5476|      0|  }
 5477|     17|  return options;
 5478|     17|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayISE_EEPT_i:
  400|     17|  U* AllocateArray(int array_size) {
  401|     17|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     17|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     17|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     17|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     34|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     17|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     34|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     34|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 17, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     17|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 17]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     34|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 17, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 17]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 17]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     34|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     34|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     17|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     17|    int& used = used_.template Get<TypeToUse>();
  409|     17|    U* res = reinterpret_cast<U*>(data + used);
  410|     17|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [Folded, False: 17]
  ------------------
  411|     17|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     17|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     17|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     17|  while (                                                                      \
  |  |  |  |  |  |   62|     17|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 17]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     17|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     17|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     17|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     17|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     17|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     17|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     17|    return res;
  413|     17|  }
_ZN6google8protobuf17DescriptorBuilder15AllocateOptionsINS0_10Descriptor14ExtensionRangeEEEvRKNT_5ProtoEPS5_iN4absl12lts_2024011611string_viewERNS0_8internal13FlatAllocatorE:
 5396|     14|    internal::FlatAllocator& alloc) {
 5397|     14|  std::vector<int> options_path;
 5398|     14|  descriptor->GetLocationPath(&options_path);
 5399|     14|  options_path.push_back(options_field_tag);
 5400|     14|  auto options = AllocateOptionsImpl<DescriptorT>(
 5401|     14|      descriptor->full_name(), descriptor->full_name(), proto, options_path,
 5402|     14|      option_name, alloc);
 5403|     14|  descriptor->options_ = options;
 5404|     14|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5405|     14|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5406|     14|}
_ZN6google8protobuf17DescriptorBuilder19AllocateOptionsImplINS0_10Descriptor14ExtensionRangeEEEPKNT_11OptionsTypeEN4absl12lts_2024011611string_viewESB_RKNS5_5ProtoENSA_4SpanIKiEESB_RNS0_8internal13FlatAllocatorE:
 5428|     14|    internal::FlatAllocator& alloc) {
 5429|     14|  if (!proto.has_options()) {
  ------------------
  |  Branch (5429:7): [True: 14, False: 0]
  ------------------
 5430|     14|    return &DescriptorT::OptionsType::default_instance();
 5431|     14|  }
 5432|      0|  const typename DescriptorT::OptionsType& orig_options = proto.options();
 5433|       |
 5434|      0|  auto* options = alloc.AllocateArray<typename DescriptorT::OptionsType>(1);
 5435|       |
 5436|      0|  if (!orig_options.IsInitialized()) {
  ------------------
  |  Branch (5436:7): [True: 0, False: 0]
  ------------------
 5437|      0|    AddError(absl::StrCat(name_scope, ".", element_name), orig_options,
 5438|      0|             DescriptorPool::ErrorCollector::OPTION_NAME,
 5439|      0|             "Uninterpreted option is missing name or value.");
 5440|      0|    return &DescriptorT::OptionsType::default_instance();
 5441|      0|  }
 5442|       |
 5443|      0|  const bool parse_success =
 5444|      0|      internal::ParseNoReflection(orig_options.SerializeAsString(), *options);
 5445|      0|  ABSL_DCHECK(parse_success);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5446|       |
 5447|       |  // Don't add to options_to_interpret_ unless there were uninterpreted
 5448|       |  // options.  This not only avoids unnecessary work, but prevents a
 5449|       |  // bootstrapping problem when building descriptors for descriptor.proto.
 5450|       |  // descriptor.proto does not contain any uninterpreted options, but
 5451|       |  // attempting to interpret options anyway will cause
 5452|       |  // OptionsType::GetDescriptor() to be called which may then deadlock since
 5453|       |  // we're still trying to build it.
 5454|      0|  if (options->uninterpreted_option_size() > 0) {
  ------------------
  |  Branch (5454:7): [True: 0, False: 0]
  ------------------
 5455|      0|    options_to_interpret_.push_back(OptionsToInterpret(
 5456|      0|        name_scope, element_name, options_path, &orig_options, options));
 5457|      0|  }
 5458|       |
 5459|       |  // If the custom option is in unknown fields, no need to interpret it.
 5460|       |  // Remove the dependency file from unused_dependency.
 5461|      0|  const UnknownFieldSet& unknown_fields = orig_options.unknown_fields();
 5462|      0|  if (!unknown_fields.empty()) {
  ------------------
  |  Branch (5462:7): [True: 0, False: 0]
  ------------------
 5463|       |    // Can not use options->GetDescriptor() which may case deadlock.
 5464|      0|    Symbol msg_symbol = tables_->FindSymbol(option_name);
 5465|      0|    if (msg_symbol.type() == Symbol::MESSAGE) {
  ------------------
  |  Branch (5465:9): [True: 0, False: 0]
  ------------------
 5466|      0|      for (int i = 0; i < unknown_fields.field_count(); ++i) {
  ------------------
  |  Branch (5466:23): [True: 0, False: 0]
  ------------------
 5467|      0|        assert_mutex_held(pool_);
 5468|      0|        const FieldDescriptor* field =
 5469|      0|            pool_->InternalFindExtensionByNumberNoLock(
 5470|      0|                msg_symbol.descriptor(), unknown_fields.field(i).number());
 5471|      0|        if (field) {
  ------------------
  |  Branch (5471:13): [True: 0, False: 0]
  ------------------
 5472|      0|          unused_dependency_.erase(field->file());
 5473|      0|        }
 5474|      0|      }
 5475|      0|    }
 5476|      0|  }
 5477|      0|  return options;
 5478|      0|}
_ZN6google8protobuf17DescriptorBuilder15AllocateOptionsINS0_15OneofDescriptorEEEvRKNT_5ProtoEPS4_iN4absl12lts_2024011611string_viewERNS0_8internal13FlatAllocatorE:
 5396|      1|    internal::FlatAllocator& alloc) {
 5397|      1|  std::vector<int> options_path;
 5398|      1|  descriptor->GetLocationPath(&options_path);
 5399|      1|  options_path.push_back(options_field_tag);
 5400|      1|  auto options = AllocateOptionsImpl<DescriptorT>(
 5401|      1|      descriptor->full_name(), descriptor->full_name(), proto, options_path,
 5402|      1|      option_name, alloc);
 5403|      1|  descriptor->options_ = options;
 5404|      1|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5405|      1|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5406|      1|}
_ZN6google8protobuf17DescriptorBuilder19AllocateOptionsImplINS0_15OneofDescriptorEEEPKNT_11OptionsTypeEN4absl12lts_2024011611string_viewESA_RKNS4_5ProtoENS9_4SpanIKiEESA_RNS0_8internal13FlatAllocatorE:
 5428|      1|    internal::FlatAllocator& alloc) {
 5429|      1|  if (!proto.has_options()) {
  ------------------
  |  Branch (5429:7): [True: 1, False: 0]
  ------------------
 5430|      1|    return &DescriptorT::OptionsType::default_instance();
 5431|      1|  }
 5432|      0|  const typename DescriptorT::OptionsType& orig_options = proto.options();
 5433|       |
 5434|      0|  auto* options = alloc.AllocateArray<typename DescriptorT::OptionsType>(1);
 5435|       |
 5436|      0|  if (!orig_options.IsInitialized()) {
  ------------------
  |  Branch (5436:7): [True: 0, False: 0]
  ------------------
 5437|      0|    AddError(absl::StrCat(name_scope, ".", element_name), orig_options,
 5438|      0|             DescriptorPool::ErrorCollector::OPTION_NAME,
 5439|      0|             "Uninterpreted option is missing name or value.");
 5440|      0|    return &DescriptorT::OptionsType::default_instance();
 5441|      0|  }
 5442|       |
 5443|      0|  const bool parse_success =
 5444|      0|      internal::ParseNoReflection(orig_options.SerializeAsString(), *options);
 5445|      0|  ABSL_DCHECK(parse_success);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5446|       |
 5447|       |  // Don't add to options_to_interpret_ unless there were uninterpreted
 5448|       |  // options.  This not only avoids unnecessary work, but prevents a
 5449|       |  // bootstrapping problem when building descriptors for descriptor.proto.
 5450|       |  // descriptor.proto does not contain any uninterpreted options, but
 5451|       |  // attempting to interpret options anyway will cause
 5452|       |  // OptionsType::GetDescriptor() to be called which may then deadlock since
 5453|       |  // we're still trying to build it.
 5454|      0|  if (options->uninterpreted_option_size() > 0) {
  ------------------
  |  Branch (5454:7): [True: 0, False: 0]
  ------------------
 5455|      0|    options_to_interpret_.push_back(OptionsToInterpret(
 5456|      0|        name_scope, element_name, options_path, &orig_options, options));
 5457|      0|  }
 5458|       |
 5459|       |  // If the custom option is in unknown fields, no need to interpret it.
 5460|       |  // Remove the dependency file from unused_dependency.
 5461|      0|  const UnknownFieldSet& unknown_fields = orig_options.unknown_fields();
 5462|      0|  if (!unknown_fields.empty()) {
  ------------------
  |  Branch (5462:7): [True: 0, False: 0]
  ------------------
 5463|       |    // Can not use options->GetDescriptor() which may case deadlock.
 5464|      0|    Symbol msg_symbol = tables_->FindSymbol(option_name);
 5465|      0|    if (msg_symbol.type() == Symbol::MESSAGE) {
  ------------------
  |  Branch (5465:9): [True: 0, False: 0]
  ------------------
 5466|      0|      for (int i = 0; i < unknown_fields.field_count(); ++i) {
  ------------------
  |  Branch (5466:23): [True: 0, False: 0]
  ------------------
 5467|      0|        assert_mutex_held(pool_);
 5468|      0|        const FieldDescriptor* field =
 5469|      0|            pool_->InternalFindExtensionByNumberNoLock(
 5470|      0|                msg_symbol.descriptor(), unknown_fields.field(i).number());
 5471|      0|        if (field) {
  ------------------
  |  Branch (5471:13): [True: 0, False: 0]
  ------------------
 5472|      0|          unused_dependency_.erase(field->file());
 5473|      0|        }
 5474|      0|      }
 5475|      0|    }
 5476|      0|  }
 5477|      0|  return options;
 5478|      0|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_14EnumDescriptor13ReservedRangeEEEPT_i:
  400|     20|  U* AllocateArray(int array_size) {
  401|     20|    constexpr bool trivial = std::is_trivially_destructible<U>::value;
  402|     20|    using TypeToUse = typename std::conditional<trivial, char, U>::type;
  403|       |
  404|       |    // We can only allocate after FinalizePlanning has been called.
  405|     20|    ABSL_CHECK(has_allocated());
  ------------------
  |  |   41|     20|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|     40|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|     20|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|     40|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|     40|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|     20|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|     40|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 20, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 20]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 20]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|     40|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|     40|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|       |
  407|     20|    TypeToUse*& data = pointers_.template Get<TypeToUse>();
  408|     20|    int& used = used_.template Get<TypeToUse>();
  409|     20|    U* res = reinterpret_cast<U*>(data + used);
  410|     20|    used += trivial ? RoundUpTo<8>(array_size * sizeof(U)) : array_size;
  ------------------
  |  Branch (410:13): [True: 20, Folded]
  ------------------
  411|     20|    ABSL_CHECK_LE(used, total_.template Get<TypeToUse>());
  ------------------
  |  |   54|     20|  ABSL_LOG_INTERNAL_CHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   52|     20|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LE, <=, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|     20|  while (                                                                      \
  |  |  |  |  |  |   62|     20|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 20]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|     20|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|     20|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|     20|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|     20|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|     20|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|     20|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|      0|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|     20|    return res;
  413|     20|  }
_ZN6google8protobuf17DescriptorBuilder15AllocateOptionsINS0_14EnumDescriptorEEEvRKNT_5ProtoEPS4_iN4absl12lts_2024011611string_viewERNS0_8internal13FlatAllocatorE:
 5396|     20|    internal::FlatAllocator& alloc) {
 5397|     20|  std::vector<int> options_path;
 5398|     20|  descriptor->GetLocationPath(&options_path);
 5399|     20|  options_path.push_back(options_field_tag);
 5400|     20|  auto options = AllocateOptionsImpl<DescriptorT>(
 5401|     20|      descriptor->full_name(), descriptor->full_name(), proto, options_path,
 5402|     20|      option_name, alloc);
 5403|     20|  descriptor->options_ = options;
 5404|     20|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5405|     20|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5406|     20|}
_ZN6google8protobuf17DescriptorBuilder19AllocateOptionsImplINS0_14EnumDescriptorEEEPKNT_11OptionsTypeEN4absl12lts_2024011611string_viewESA_RKNS4_5ProtoENS9_4SpanIKiEESA_RNS0_8internal13FlatAllocatorE:
 5428|     20|    internal::FlatAllocator& alloc) {
 5429|     20|  if (!proto.has_options()) {
  ------------------
  |  Branch (5429:7): [True: 20, False: 0]
  ------------------
 5430|     20|    return &DescriptorT::OptionsType::default_instance();
 5431|     20|  }
 5432|      0|  const typename DescriptorT::OptionsType& orig_options = proto.options();
 5433|       |
 5434|      0|  auto* options = alloc.AllocateArray<typename DescriptorT::OptionsType>(1);
 5435|       |
 5436|      0|  if (!orig_options.IsInitialized()) {
  ------------------
  |  Branch (5436:7): [True: 0, False: 0]
  ------------------
 5437|      0|    AddError(absl::StrCat(name_scope, ".", element_name), orig_options,
 5438|      0|             DescriptorPool::ErrorCollector::OPTION_NAME,
 5439|      0|             "Uninterpreted option is missing name or value.");
 5440|      0|    return &DescriptorT::OptionsType::default_instance();
 5441|      0|  }
 5442|       |
 5443|      0|  const bool parse_success =
 5444|      0|      internal::ParseNoReflection(orig_options.SerializeAsString(), *options);
 5445|      0|  ABSL_DCHECK(parse_success);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5446|       |
 5447|       |  // Don't add to options_to_interpret_ unless there were uninterpreted
 5448|       |  // options.  This not only avoids unnecessary work, but prevents a
 5449|       |  // bootstrapping problem when building descriptors for descriptor.proto.
 5450|       |  // descriptor.proto does not contain any uninterpreted options, but
 5451|       |  // attempting to interpret options anyway will cause
 5452|       |  // OptionsType::GetDescriptor() to be called which may then deadlock since
 5453|       |  // we're still trying to build it.
 5454|      0|  if (options->uninterpreted_option_size() > 0) {
  ------------------
  |  Branch (5454:7): [True: 0, False: 0]
  ------------------
 5455|      0|    options_to_interpret_.push_back(OptionsToInterpret(
 5456|      0|        name_scope, element_name, options_path, &orig_options, options));
 5457|      0|  }
 5458|       |
 5459|       |  // If the custom option is in unknown fields, no need to interpret it.
 5460|       |  // Remove the dependency file from unused_dependency.
 5461|      0|  const UnknownFieldSet& unknown_fields = orig_options.unknown_fields();
 5462|      0|  if (!unknown_fields.empty()) {
  ------------------
  |  Branch (5462:7): [True: 0, False: 0]
  ------------------
 5463|       |    // Can not use options->GetDescriptor() which may case deadlock.
 5464|      0|    Symbol msg_symbol = tables_->FindSymbol(option_name);
 5465|      0|    if (msg_symbol.type() == Symbol::MESSAGE) {
  ------------------
  |  Branch (5465:9): [True: 0, False: 0]
  ------------------
 5466|      0|      for (int i = 0; i < unknown_fields.field_count(); ++i) {
  ------------------
  |  Branch (5466:23): [True: 0, False: 0]
  ------------------
 5467|      0|        assert_mutex_held(pool_);
 5468|      0|        const FieldDescriptor* field =
 5469|      0|            pool_->InternalFindExtensionByNumberNoLock(
 5470|      0|                msg_symbol.descriptor(), unknown_fields.field(i).number());
 5471|      0|        if (field) {
  ------------------
  |  Branch (5471:13): [True: 0, False: 0]
  ------------------
 5472|      0|          unused_dependency_.erase(field->file());
 5473|      0|        }
 5474|      0|      }
 5475|      0|    }
 5476|      0|  }
 5477|      0|  return options;
 5478|      0|}
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_10FeatureSetENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE15AllocateStringsIJRKS9_S9_EEEPSO_DpOT_:
  416|    111|  const std::string* AllocateStrings(In&&... in) {
  417|    111|    std::string* strings = AllocateArray<std::string>(sizeof...(in));
  418|    111|    std::string* res = strings;
  419|    111|    Fold({(*strings++ = std::string(std::forward<In>(in)))...});
  420|    111|    return res;
  421|    111|  }
_ZN6google8protobuf17DescriptorBuilder15AllocateOptionsINS0_19EnumValueDescriptorEEEvRKNT_5ProtoEPS4_iN4absl12lts_2024011611string_viewERNS0_8internal13FlatAllocatorE:
 5396|    111|    internal::FlatAllocator& alloc) {
 5397|    111|  std::vector<int> options_path;
 5398|    111|  descriptor->GetLocationPath(&options_path);
 5399|    111|  options_path.push_back(options_field_tag);
 5400|    111|  auto options = AllocateOptionsImpl<DescriptorT>(
 5401|    111|      descriptor->full_name(), descriptor->full_name(), proto, options_path,
 5402|    111|      option_name, alloc);
 5403|    111|  descriptor->options_ = options;
 5404|    111|  descriptor->proto_features_ = &FeatureSet::default_instance();
 5405|    111|  descriptor->merged_features_ = &FeatureSet::default_instance();
 5406|    111|}
_ZN6google8protobuf17DescriptorBuilder19AllocateOptionsImplINS0_19EnumValueDescriptorEEEPKNT_11OptionsTypeEN4absl12lts_2024011611string_viewESA_RKNS4_5ProtoENS9_4SpanIKiEESA_RNS0_8internal13FlatAllocatorE:
 5428|    111|    internal::FlatAllocator& alloc) {
 5429|    111|  if (!proto.has_options()) {
  ------------------
  |  Branch (5429:7): [True: 111, False: 0]
  ------------------
 5430|    111|    return &DescriptorT::OptionsType::default_instance();
 5431|    111|  }
 5432|      0|  const typename DescriptorT::OptionsType& orig_options = proto.options();
 5433|       |
 5434|      0|  auto* options = alloc.AllocateArray<typename DescriptorT::OptionsType>(1);
 5435|       |
 5436|      0|  if (!orig_options.IsInitialized()) {
  ------------------
  |  Branch (5436:7): [True: 0, False: 0]
  ------------------
 5437|      0|    AddError(absl::StrCat(name_scope, ".", element_name), orig_options,
 5438|      0|             DescriptorPool::ErrorCollector::OPTION_NAME,
 5439|      0|             "Uninterpreted option is missing name or value.");
 5440|      0|    return &DescriptorT::OptionsType::default_instance();
 5441|      0|  }
 5442|       |
 5443|      0|  const bool parse_success =
 5444|      0|      internal::ParseNoReflection(orig_options.SerializeAsString(), *options);
 5445|      0|  ABSL_DCHECK(parse_success);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5446|       |
 5447|       |  // Don't add to options_to_interpret_ unless there were uninterpreted
 5448|       |  // options.  This not only avoids unnecessary work, but prevents a
 5449|       |  // bootstrapping problem when building descriptors for descriptor.proto.
 5450|       |  // descriptor.proto does not contain any uninterpreted options, but
 5451|       |  // attempting to interpret options anyway will cause
 5452|       |  // OptionsType::GetDescriptor() to be called which may then deadlock since
 5453|       |  // we're still trying to build it.
 5454|      0|  if (options->uninterpreted_option_size() > 0) {
  ------------------
  |  Branch (5454:7): [True: 0, False: 0]
  ------------------
 5455|      0|    options_to_interpret_.push_back(OptionsToInterpret(
 5456|      0|        name_scope, element_name, options_path, &orig_options, options));
 5457|      0|  }
 5458|       |
 5459|       |  // If the custom option is in unknown fields, no need to interpret it.
 5460|       |  // Remove the dependency file from unused_dependency.
 5461|      0|  const UnknownFieldSet& unknown_fields = orig_options.unknown_fields();
 5462|      0|  if (!unknown_fields.empty()) {
  ------------------
  |  Branch (5462:7): [True: 0, False: 0]
  ------------------
 5463|       |    // Can not use options->GetDescriptor() which may case deadlock.
 5464|      0|    Symbol msg_symbol = tables_->FindSymbol(option_name);
 5465|      0|    if (msg_symbol.type() == Symbol::MESSAGE) {
  ------------------
  |  Branch (5465:9): [True: 0, False: 0]
  ------------------
 5466|      0|      for (int i = 0; i < unknown_fields.field_count(); ++i) {
  ------------------
  |  Branch (5466:23): [True: 0, False: 0]
  ------------------
 5467|      0|        assert_mutex_held(pool_);
 5468|      0|        const FieldDescriptor* field =
 5469|      0|            pool_->InternalFindExtensionByNumberNoLock(
 5470|      0|                msg_symbol.descriptor(), unknown_fields.field(i).number());
 5471|      0|        if (field) {
  ------------------
  |  Branch (5471:13): [True: 0, False: 0]
  ------------------
 5472|      0|          unused_dependency_.erase(field->file());
 5473|      0|        }
 5474|      0|      }
 5475|      0|    }
 5476|      0|  }
 5477|      0|  return options;
 5478|      0|}

_ZNK6google8protobuf10Descriptor14ExtensionRange12start_numberEv:
  493|    130|    int start_number() const { return start_; }
_ZNK6google8protobuf10Descriptor14ExtensionRange10end_numberEv:
  496|     31|    int end_number() const { return end_; }
_ZNK6google8protobuf10Descriptor14ExtensionRange9full_nameEv:
  511|     28|    internal::DescriptorStringView full_name() const {
  512|     28|      return containing_type_->full_name();
  513|     28|    }
_ZNK6google8protobuf10Descriptor14ExtensionRange4fileEv:
  517|     14|    const FileDescriptor* file() const { return containing_type_->file(); }
_ZNK6google8protobuf10Descriptor14ExtensionRange15containing_typeEv:
  521|     28|    const Descriptor* containing_type() const { return containing_type_; }
_ZNK6google8protobuf10Descriptor8featuresEv:
  667|    241|  const FeatureSet& features() const { return *merged_features_; }
_ZNK6google8protobuf15FieldDescriptor8featuresEv:
 1077|   392k|  const FeatureSet& features() const { return *merged_features_; }
_ZNK6google8protobuf15OneofDescriptor8featuresEv:
 1261|      3|  const FeatureSet& features() const { return *merged_features_; }
_ZNK6google8protobuf14EnumDescriptor8featuresEv:
 1436|    111|  const FeatureSet& features() const { return *merged_features_; }
_ZNK6google8protobuf14FileDescriptor8featuresEv:
 1992|     35|  const FeatureSet& features() const { return *merged_features_; }
_ZN6google8protobuf14DescriptorPool34InternalSetLazilyBuildDependenciesEv:
 2356|      2|  void InternalSetLazilyBuildDependencies() {
 2357|      2|    lazily_build_dependencies_ = true;
 2358|       |    // This needs to be set when lazily building dependencies, as it breaks
 2359|       |    // dependency checking.
 2360|      2|    InternalDontEnforceDependencies();
 2361|      2|  }
_ZNK6google8protobuf10Descriptor4nameEv:
 2520|    138|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|    138|    return all_names_[0];                                          \
 2522|    138|  }                                                                \
_ZNK6google8protobuf10Descriptor9full_nameEv:
 2523|    623|  inline internal::DescriptorStringView CLASS::full_name() const { \
 2524|    623|    return all_names_[1];                                          \
 2525|    623|  }
_ZNK6google8protobuf10Descriptor15containing_typeEv:
 2510|    591|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor16oneof_decl_countEv:
 2510|    255|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor17nested_type_countEv:
 2510|    306|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor15enum_type_countEv:
 2510|    290|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor10oneof_declEi:
 2529|      8|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|      8|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|      8|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|      8|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      8|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 8]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      8|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|      8|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|      8|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|      8|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      8|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 8]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      8|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|      8|    return FIELD##s_ + index;                              \
 2533|      8|  }
_ZNK6google8protobuf10Descriptor11nested_typeEi:
 2529|     50|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|     50|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|     50|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|     50|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     50|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 50]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     50|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|     50|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|     50|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|     50|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     50|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 50]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     50|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|     50|    return FIELD##s_ + index;                              \
 2533|     50|  }
_ZNK6google8protobuf10Descriptor9enum_typeEi:
 2529|     85|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|     85|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|     85|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|     85|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     85|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 85]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     85|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|     85|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|     85|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|     85|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     85|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 85]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     85|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|     85|    return FIELD##s_ + index;                              \
 2533|     85|  }
_ZNK6google8protobuf10Descriptor21extension_range_countEv:
 2510|    580|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor15extension_countEv:
 2510|    205|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor15extension_rangeEi:
 2529|    161|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|    161|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|    161|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|    161|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    161|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 161]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    161|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|    161|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|    161|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|    161|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    161|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 161]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    161|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|    161|    return FIELD##s_ + index;                              \
 2533|    161|  }
_ZNK6google8protobuf10Descriptor20reserved_range_countEv:
 2510|    356|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor14reserved_rangeEi:
 2529|    140|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|    140|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|    140|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|    140|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    140|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 140]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    140|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|    140|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|    140|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|    140|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    140|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 140]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    140|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|    140|    return FIELD##s_ + index;                              \
 2533|    140|  }
_ZNK6google8protobuf15FieldDescriptor4nameEv:
 2520|    975|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|    975|    return all_names_[0];                                          \
 2522|    975|  }                                                                \
_ZNK6google8protobuf15FieldDescriptor9full_nameEv:
 2523|  1.43k|  inline internal::DescriptorStringView CLASS::full_name() const { \
 2524|  1.43k|    return all_names_[1];                                          \
 2525|  1.43k|  }
_ZNK6google8protobuf15FieldDescriptor4fileEv:
 2510|    408|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf15FieldDescriptor6numberEv:
 2510|  1.39k|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf15FieldDescriptor12is_extensionEv:
 2510|   228k|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf15FieldDescriptor15containing_typeEv:
 2510|   503k|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf15FieldDescriptor17has_default_valueEv:
 2510|     86|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf15OneofDescriptor4nameEv:
 2520|      5|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|      5|    return all_names_[0];                                          \
 2522|      5|  }                                                                \
_ZNK6google8protobuf15OneofDescriptor9full_nameEv:
 2523|      5|  inline internal::DescriptorStringView CLASS::full_name() const { \
 2524|      5|    return all_names_[1];                                          \
 2525|      5|  }
_ZNK6google8protobuf15OneofDescriptor15containing_typeEv:
 2510|      7|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14EnumDescriptor4nameEv:
 2520|    163|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|    163|    return all_names_[0];                                          \
 2522|    163|  }                                                                \
_ZNK6google8protobuf14EnumDescriptor9full_nameEv:
 2523|    369|  inline internal::DescriptorStringView CLASS::full_name() const { \
 2524|    369|    return all_names_[1];                                          \
 2525|    369|  }
_ZNK6google8protobuf14EnumDescriptor4fileEv:
 2510|    223|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14EnumDescriptor15containing_typeEv:
 2510|    610|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14EnumDescriptor20reserved_range_countEv:
 2510|    114|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14EnumDescriptor14reserved_rangeEi:
 2529|      3|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|      3|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|      3|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|      3|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      3|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 3]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      3|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|      3|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|      3|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|      3|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      3|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 3]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      3|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|      3|    return FIELD##s_ + index;                              \
 2533|      3|  }
_ZNK6google8protobuf19EnumValueDescriptor4nameEv:
 2520|    753|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|    753|    return all_names_[0];                                          \
 2522|    753|  }                                                                \
_ZNK6google8protobuf19EnumValueDescriptor9full_nameEv:
 2523|    645|  inline internal::DescriptorStringView CLASS::full_name() const { \
 2524|    645|    return all_names_[1];                                          \
 2525|    645|  }
_ZNK6google8protobuf19EnumValueDescriptor6numberEv:
 2510|    402|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14FileDescriptor4nameEv:
 2514|     17|  inline internal::DescriptorStringView CLASS::FIELD() const { \
 2515|     17|    return *FIELD##_;                                          \
 2516|     17|  }
_ZNK6google8protobuf14FileDescriptor7packageEv:
 2514|     77|  inline internal::DescriptorStringView CLASS::FIELD() const { \
 2515|     77|    return *FIELD##_;                                          \
 2516|     77|  }
_ZNK6google8protobuf14FileDescriptor18message_type_countEv:
 2510|    210|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14FileDescriptor15enum_type_countEv:
 2510|     35|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14FileDescriptor13service_countEv:
 2510|     20|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14FileDescriptor15extension_countEv:
 2510|     25|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14FileDescriptor7optionsEv:
 2536|      4|  inline const TYPE& CLASS::options() const { return *options_; }
_ZNK6google8protobuf14FileDescriptor12message_typeEi:
 2529|    155|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|    155|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|    155|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|    155|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    155|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 155]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    155|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|    155|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|    155|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|    155|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    155|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 155]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    155|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|    155|    return FIELD##s_ + index;                              \
 2533|    155|  }
_ZNK6google8protobuf14FileDescriptor9enum_typeEi:
 2529|     15|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|     15|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|     15|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|     15|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     15|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 15]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     15|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|     15|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|     15|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|     15|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     15|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 15]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     15|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|     15|    return FIELD##s_ + index;                              \
 2533|     15|  }
_ZNK6google8protobuf14FileDescriptor9extensionEi:
 2529|      4|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|      4|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|      4|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|      4|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      4|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 4]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      4|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|      4|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|      4|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|      4|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      4|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 4]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      4|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|      4|    return FIELD##s_ + index;                              \
 2533|      4|  }
_ZNK6google8protobuf15FieldDescriptor15extension_scopeEv:
 2725|      4|inline const Descriptor* FieldDescriptor::extension_scope() const {
 2726|      4|  ABSL_CHECK(is_extension_);
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2727|      4|  return scope_.extension_scope;
 2728|      4|}
_ZNK6google8protobuf15FieldDescriptor5labelEv:
 2730|   227k|inline FieldDescriptor::Label FieldDescriptor::label() const {
 2731|   227k|  return static_cast<Label>(label_);
 2732|   227k|}
_ZNK6google8protobuf15FieldDescriptor6is_mapEv:
 2751|   172k|inline bool FieldDescriptor::is_map() const {
 2752|   172k|  return type() == TYPE_MESSAGE && is_map_message_type();
  ------------------
  |  Branch (2752:10): [True: 172k, False: 0]
  |  Branch (2752:36): [True: 0, False: 172k]
  ------------------
 2753|   172k|}
_ZNK6google8protobuf15FieldDescriptor21real_containing_oneofEv:
 2755|   244k|inline const OneofDescriptor* FieldDescriptor::real_containing_oneof() const {
 2756|   244k|  if (in_real_oneof_) {
  ------------------
  |  Branch (2756:7): [True: 0, False: 244k]
  ------------------
 2757|      0|    auto* res = containing_oneof();
 2758|      0|    PROTOBUF_ASSUME(res != nullptr);
  ------------------
  |  |  941|      0|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
 2759|      0|    ABSL_DCHECK(!res->is_synthetic());
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2760|      0|    return res;
 2761|      0|  }
 2762|   244k|  return nullptr;
 2763|   244k|}
_ZNK6google8protobuf15FieldDescriptor5indexEv:
 2767|   274k|inline int FieldDescriptor::index() const {
 2768|   274k|  if (!is_extension_) {
  ------------------
  |  Branch (2768:7): [True: 274k, False: 1]
  ------------------
 2769|   274k|    return static_cast<int>(this - containing_type()->fields_);
 2770|   274k|  } else if (extension_scope() != nullptr) {
  ------------------
  |  Branch (2770:14): [True: 0, False: 1]
  ------------------
 2771|      0|    return static_cast<int>(this - extension_scope()->extensions_);
 2772|      1|  } else {
 2773|      1|    return static_cast<int>(this - file_->extensions_);
 2774|      1|  }
 2775|   274k|}
_ZNK6google8protobuf10Descriptor5indexEv:
 2777|    396|inline int Descriptor::index() const {
 2778|    396|  if (containing_type_ == nullptr) {
  ------------------
  |  Branch (2778:7): [True: 349, False: 47]
  ------------------
 2779|    349|    return static_cast<int>(this - file_->message_types_);
 2780|    349|  } else {
 2781|     47|    return static_cast<int>(this - containing_type_->nested_types_);
 2782|     47|  }
 2783|    396|}
_ZNK6google8protobuf10Descriptor14ExtensionRange5indexEv:
 2785|     14|inline int Descriptor::ExtensionRange::index() const {
 2786|     14|  return static_cast<int>(this - containing_type_->extension_ranges_);
 2787|     14|}
_ZNK6google8protobuf15OneofDescriptor4fileEv:
 2789|      1|inline const FileDescriptor* OneofDescriptor::file() const {
 2790|      1|  return containing_type()->file();
 2791|      1|}
_ZNK6google8protobuf15OneofDescriptor5indexEv:
 2793|      4|inline int OneofDescriptor::index() const {
 2794|      4|  return static_cast<int>(this - containing_type_->oneof_decls_);
 2795|      4|}
_ZNK6google8protobuf15OneofDescriptor12is_syntheticEv:
 2797|      1|inline bool OneofDescriptor::is_synthetic() const {
 2798|      1|  return field_count() == 1 && field(0)->proto3_optional_;
  ------------------
  |  Branch (2798:10): [True: 0, False: 1]
  |  Branch (2798:32): [True: 0, False: 0]
  ------------------
 2799|      1|}
_ZNK6google8protobuf14EnumDescriptor5indexEv:
 2801|    131|inline int EnumDescriptor::index() const {
 2802|    131|  if (containing_type_ == nullptr) {
  ------------------
  |  Branch (2802:7): [True: 40, False: 91]
  ------------------
 2803|     40|    return static_cast<int>(this - file_->enum_types_);
 2804|     91|  } else {
 2805|     91|    return static_cast<int>(this - containing_type_->enum_types_);
 2806|     91|  }
 2807|    131|}
_ZNK6google8protobuf19EnumValueDescriptor4fileEv:
 2809|    111|inline const FileDescriptor* EnumValueDescriptor::file() const {
 2810|    111|  return type()->file();
 2811|    111|}
_ZN6google8protobuf8internal3cpp33MaxMessageDeclarationNestingDepthEv:
 2942|      4|constexpr int MaxMessageDeclarationNestingDepth() { return 32; }
_ZN6google8protobuf8internal21InternalFeatureHelper11GetFeaturesINS0_14FileDescriptorEEERKNS0_10FeatureSetERKT_:
  264|     35|  static const FeatureSet& GetFeatures(const DescriptorT& desc) {
  265|     35|    return desc.features();
  266|     35|  }
_ZN6google8protobuf8internal21InternalFeatureHelper11GetFeaturesINS0_10DescriptorEEERKNS0_10FeatureSetERKT_:
  264|    241|  static const FeatureSet& GetFeatures(const DescriptorT& desc) {
  265|    241|    return desc.features();
  266|    241|  }
_ZN6google8protobuf8internal21InternalFeatureHelper11GetFeaturesINS0_14EnumDescriptorEEERKNS0_10FeatureSetERKT_:
  264|    111|  static const FeatureSet& GetFeatures(const DescriptorT& desc) {
  265|    111|    return desc.features();
  266|    111|  }
_ZN6google8protobuf8internal21InternalFeatureHelper11GetFeaturesINS0_15OneofDescriptorEEERKNS0_10FeatureSetERKT_:
  264|      3|  static const FeatureSet& GetFeatures(const DescriptorT& desc) {
  265|      3|    return desc.features();
  266|      3|  }

_ZN6google8protobuf32FeatureSet_FieldPresence_IsValidEi:
 2452|    223|bool FeatureSet_FieldPresence_IsValid(int value) {
 2453|    223|  return 0 <= value && value <= 3;
  ------------------
  |  Branch (2453:10): [True: 223, False: 0]
  |  Branch (2453:24): [True: 223, False: 0]
  ------------------
 2454|    223|}
_ZN6google8protobuf27FeatureSet_EnumType_IsValidEi:
 2474|    223|bool FeatureSet_EnumType_IsValid(int value) {
 2475|    223|  return 0 <= value && value <= 2;
  ------------------
  |  Branch (2475:10): [True: 223, False: 0]
  |  Branch (2475:24): [True: 223, False: 0]
  ------------------
 2476|    223|}
_ZN6google8protobuf40FeatureSet_RepeatedFieldEncoding_IsValidEi:
 2495|    223|bool FeatureSet_RepeatedFieldEncoding_IsValid(int value) {
 2496|    223|  return 0 <= value && value <= 2;
  ------------------
  |  Branch (2496:10): [True: 223, False: 0]
  |  Branch (2496:24): [True: 223, False: 0]
  ------------------
 2497|    223|}
_ZN6google8protobuf33FeatureSet_Utf8Validation_IsValidEi:
 2516|    223|bool FeatureSet_Utf8Validation_IsValid(int value) {
 2517|    223|  return 0 <= value && value <= 3 && ((13u >> value) & 1) != 0;
  ------------------
  |  Branch (2517:10): [True: 223, False: 0]
  |  Branch (2517:24): [True: 223, False: 0]
  |  Branch (2517:38): [True: 223, False: 0]
  ------------------
 2518|    223|}
_ZN6google8protobuf34FeatureSet_MessageEncoding_IsValidEi:
 2537|    223|bool FeatureSet_MessageEncoding_IsValid(int value) {
 2538|    223|  return 0 <= value && value <= 2;
  ------------------
  |  Branch (2538:10): [True: 223, False: 0]
  |  Branch (2538:24): [True: 223, False: 0]
  ------------------
 2539|    223|}
_ZN6google8protobuf29FeatureSet_JsonFormat_IsValidEi:
 2558|    223|bool FeatureSet_JsonFormat_IsValid(int value) {
 2559|    223|  return 0 <= value && value <= 2;
  ------------------
  |  Branch (2559:10): [True: 223, False: 0]
  |  Branch (2559:24): [True: 223, False: 0]
  ------------------
 2560|    223|}
_ZNK6google8protobuf17FileDescriptorSet12GetClassDataEv:
 2708|      1|const ::google::protobuf::internal::ClassData* FileDescriptorSet::GetClassData() const {
 2709|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 2710|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 2711|      1|  return _class_data_.base();
 2712|      1|}
_ZN6google8protobuf19FileDescriptorProtoC2EPNS0_5ArenaE:
 2882|     10|    : ::google::protobuf::Message(arena) {
 2883|     10|#endif  // PROTOBUF_CUSTOM_VTABLE
 2884|     10|  SharedCtor(arena);
 2885|       |  // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorProto)
 2886|     10|}
_ZN6google8protobuf19FileDescriptorProtoD2Ev:
 2951|      6|FileDescriptorProto::~FileDescriptorProto() {
 2952|       |  // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
 2953|      6|  SharedDtor(*this);
 2954|      6|}
_ZNK6google8protobuf19FileDescriptorProto12GetClassDataEv:
 3033|     21|const ::google::protobuf::internal::ClassData* FileDescriptorProto::GetClassData() const {
 3034|     21|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 3035|     21|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 3036|     21|  return _class_data_.base();
 3037|     21|}
_ZN6google8protobuf19FileDescriptorProto5ClearEv:
 3158|     10|PROTOBUF_NOINLINE void FileDescriptorProto::Clear() {
 3159|       |// @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorProto)
 3160|     10|  ::google::protobuf::internal::TSanWrite(&_impl_);
 3161|     10|  ::uint32_t cached_has_bits = 0;
 3162|       |  // Prevent compiler warnings about cached_has_bits being unused
 3163|     10|  (void) cached_has_bits;
 3164|       |
 3165|     10|  _impl_.dependency_.Clear();
 3166|     10|  _impl_.message_type_.Clear();
 3167|     10|  _impl_.enum_type_.Clear();
 3168|     10|  _impl_.service_.Clear();
 3169|     10|  _impl_.extension_.Clear();
 3170|     10|  _impl_.public_dependency_.Clear();
 3171|     10|  _impl_.weak_dependency_.Clear();
 3172|     10|  cached_has_bits = _impl_._has_bits_[0];
 3173|     10|  if (cached_has_bits & 0x0000001fu) {
  ------------------
  |  Branch (3173:7): [True: 0, False: 10]
  ------------------
 3174|      0|    if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (3174:9): [True: 0, False: 0]
  ------------------
 3175|      0|      _impl_.name_.ClearNonDefaultToEmpty();
 3176|      0|    }
 3177|      0|    if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (3177:9): [True: 0, False: 0]
  ------------------
 3178|      0|      _impl_.package_.ClearNonDefaultToEmpty();
 3179|      0|    }
 3180|      0|    if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (3180:9): [True: 0, False: 0]
  ------------------
 3181|      0|      _impl_.syntax_.ClearNonDefaultToEmpty();
 3182|      0|    }
 3183|      0|    if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (3183:9): [True: 0, False: 0]
  ------------------
 3184|      0|      ABSL_DCHECK(_impl_.options_ != nullptr);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3185|      0|      _impl_.options_->Clear();
 3186|      0|    }
 3187|      0|    if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (3187:9): [True: 0, False: 0]
  ------------------
 3188|      0|      ABSL_DCHECK(_impl_.source_code_info_ != nullptr);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3189|      0|      _impl_.source_code_info_->Clear();
 3190|      0|    }
 3191|      0|  }
 3192|     10|  _impl_.edition_ = 0;
 3193|     10|  _impl_._has_bits_.Clear();
 3194|     10|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
 3195|     10|}
_ZN6google8protobuf19FileDescriptorProto17IsInitializedImplERKNS0_11MessageLiteE:
 3505|     10|    const MessageLite& msg) {
 3506|     10|  auto& this_ = static_cast<const FileDescriptorProto&>(msg);
 3507|     10|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_message_type()))
  ------------------
  |  Branch (3507:7): [True: 0, False: 10]
  ------------------
 3508|      0|    return false;
 3509|     10|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_enum_type()))
  ------------------
  |  Branch (3509:7): [True: 0, False: 10]
  ------------------
 3510|      0|    return false;
 3511|     10|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_service()))
  ------------------
  |  Branch (3511:7): [True: 0, False: 10]
  ------------------
 3512|      0|    return false;
 3513|     10|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_extension()))
  ------------------
  |  Branch (3513:7): [True: 0, False: 10]
  ------------------
 3514|      0|    return false;
 3515|     10|  if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) {
  ------------------
  |  Branch (3515:7): [True: 5, False: 5]
  ------------------
 3516|      5|    if (!this_._impl_.options_->IsInitialized()) return false;
  ------------------
  |  Branch (3516:9): [True: 0, False: 5]
  ------------------
 3517|      5|  }
 3518|     10|  if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) {
  ------------------
  |  Branch (3518:7): [True: 0, False: 10]
  ------------------
 3519|      0|    if (!this_._impl_.source_code_info_->IsInitialized()) return false;
  ------------------
  |  Branch (3519:9): [True: 0, False: 0]
  ------------------
 3520|      0|  }
 3521|     10|  return true;
 3522|     10|}
_ZN6google8protobuf30DescriptorProto_ExtensionRangeD2Ev:
 3617|     14|DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
 3618|       |  // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
 3619|     14|  SharedDtor(*this);
 3620|     14|}
_ZNK6google8protobuf30DescriptorProto_ExtensionRange12GetClassDataEv:
 3659|      1|const ::google::protobuf::internal::ClassData* DescriptorProto_ExtensionRange::GetClassData() const {
 3660|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 3661|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 3662|      1|  return _class_data_.base();
 3663|      1|}
_ZN6google8protobuf30DescriptorProto_ExtensionRange17IsInitializedImplERKNS0_11MessageLiteE:
 3853|     28|    const MessageLite& msg) {
 3854|     28|  auto& this_ = static_cast<const DescriptorProto_ExtensionRange&>(msg);
 3855|     28|  if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
  ------------------
  |  Branch (3855:7): [True: 0, False: 28]
  ------------------
 3856|      0|    if (!this_._impl_.options_->IsInitialized()) return false;
  ------------------
  |  Branch (3856:9): [True: 0, False: 0]
  ------------------
 3857|      0|  }
 3858|     28|  return true;
 3859|     28|}
_ZN6google8protobuf29DescriptorProto_ReservedRangeD2Ev:
 3914|     14|DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
 3915|       |  // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange)
 3916|     14|  SharedDtor(*this);
 3917|     14|}
_ZNK6google8protobuf29DescriptorProto_ReservedRange12GetClassDataEv:
 3955|      1|const ::google::protobuf::internal::ClassData* DescriptorProto_ReservedRange::GetClassData() const {
 3956|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 3957|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 3958|      1|  return _class_data_.base();
 3959|      1|}
_ZN6google8protobuf15DescriptorProtoD2Ev:
 4203|     48|DescriptorProto::~DescriptorProto() {
 4204|       |  // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
 4205|     48|  SharedDtor(*this);
 4206|     48|}
_ZNK6google8protobuf15DescriptorProto12GetClassDataEv:
 4286|      3|const ::google::protobuf::internal::ClassData* DescriptorProto::GetClassData() const {
 4287|      3|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 4288|      3|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 4289|      3|  return _class_data_.base();
 4290|      3|}
_ZN6google8protobuf15DescriptorProto17IsInitializedImplERKNS0_11MessageLiteE:
 4692|     89|    const MessageLite& msg) {
 4693|     89|  auto& this_ = static_cast<const DescriptorProto&>(msg);
 4694|     89|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_field()))
  ------------------
  |  Branch (4694:7): [True: 0, False: 89]
  ------------------
 4695|      0|    return false;
 4696|     89|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_nested_type()))
  ------------------
  |  Branch (4696:7): [True: 0, False: 89]
  ------------------
 4697|      0|    return false;
 4698|     89|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_enum_type()))
  ------------------
  |  Branch (4698:7): [True: 0, False: 89]
  ------------------
 4699|      0|    return false;
 4700|     89|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_extension_range()))
  ------------------
  |  Branch (4700:7): [True: 0, False: 89]
  ------------------
 4701|      0|    return false;
 4702|     89|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_extension()))
  ------------------
  |  Branch (4702:7): [True: 0, False: 89]
  ------------------
 4703|      0|    return false;
 4704|     89|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_oneof_decl()))
  ------------------
  |  Branch (4704:7): [True: 0, False: 89]
  ------------------
 4705|      0|    return false;
 4706|     89|  if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
  ------------------
  |  Branch (4706:7): [True: 0, False: 89]
  ------------------
 4707|      0|    if (!this_._impl_.options_->IsInitialized()) return false;
  ------------------
  |  Branch (4707:9): [True: 0, False: 0]
  ------------------
 4708|      0|  }
 4709|     89|  return true;
 4710|     89|}
_ZNK6google8protobuf15DescriptorProto11GetMetadataEv:
 4730|      2|::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
 4731|      2|  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
 4732|      2|}
_ZNK6google8protobuf33ExtensionRangeOptions_Declaration12GetClassDataEv:
 4842|      1|const ::google::protobuf::internal::ClassData* ExtensionRangeOptions_Declaration::GetClassData() const {
 4843|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 4844|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 4845|      1|  return _class_data_.base();
 4846|      1|}
_ZNK6google8protobuf21ExtensionRangeOptions12GetClassDataEv:
 5224|      1|const ::google::protobuf::internal::ClassData* ExtensionRangeOptions::GetClassData() const {
 5225|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 5226|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 5227|      1|  return _class_data_.base();
 5228|      1|}
_ZN6google8protobuf20FieldDescriptorProtoD2Ev:
 5574|    232|FieldDescriptorProto::~FieldDescriptorProto() {
 5575|       |  // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
 5576|    232|  SharedDtor(*this);
 5577|    232|}
_ZNK6google8protobuf20FieldDescriptorProto12GetClassDataEv:
 5621|      1|const ::google::protobuf::internal::ClassData* FieldDescriptorProto::GetClassData() const {
 5622|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 5623|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 5624|      1|  return _class_data_.base();
 5625|      1|}
_ZN6google8protobuf20FieldDescriptorProto17IsInitializedImplERKNS0_11MessageLiteE:
 6024|    435|    const MessageLite& msg) {
 6025|    435|  auto& this_ = static_cast<const FieldDescriptorProto&>(msg);
 6026|    435|  if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) {
  ------------------
  |  Branch (6026:7): [True: 34, False: 401]
  ------------------
 6027|     34|    if (!this_._impl_.options_->IsInitialized()) return false;
  ------------------
  |  Branch (6027:9): [True: 0, False: 34]
  ------------------
 6028|     34|  }
 6029|    435|  return true;
 6030|    435|}
_ZN6google8protobuf20OneofDescriptorProtoD2Ev:
 6110|      2|OneofDescriptorProto::~OneofDescriptorProto() {
 6111|       |  // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
 6112|      2|  SharedDtor(*this);
 6113|      2|}
_ZNK6google8protobuf20OneofDescriptorProto12GetClassDataEv:
 6153|      1|const ::google::protobuf::internal::ClassData* OneofDescriptorProto::GetClassData() const {
 6154|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 6155|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 6156|      1|  return _class_data_.base();
 6157|      1|}
_ZN6google8protobuf20OneofDescriptorProto17IsInitializedImplERKNS0_11MessageLiteE:
 6329|      3|    const MessageLite& msg) {
 6330|      3|  auto& this_ = static_cast<const OneofDescriptorProto&>(msg);
 6331|      3|  if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
  ------------------
  |  Branch (6331:7): [True: 0, False: 3]
  ------------------
 6332|      0|    if (!this_._impl_.options_->IsInitialized()) return false;
  ------------------
  |  Branch (6332:9): [True: 0, False: 0]
  ------------------
 6333|      0|  }
 6334|      3|  return true;
 6335|      3|}
_ZN6google8protobuf37EnumDescriptorProto_EnumReservedRangeD2Ev:
 6388|      1|EnumDescriptorProto_EnumReservedRange::~EnumDescriptorProto_EnumReservedRange() {
 6389|       |  // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
 6390|      1|  SharedDtor(*this);
 6391|      1|}
_ZNK6google8protobuf37EnumDescriptorProto_EnumReservedRange12GetClassDataEv:
 6429|      1|const ::google::protobuf::internal::ClassData* EnumDescriptorProto_EnumReservedRange::GetClassData() const {
 6430|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 6431|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 6432|      1|  return _class_data_.base();
 6433|      1|}
_ZN6google8protobuf19EnumDescriptorProtoD2Ev:
 6667|     22|EnumDescriptorProto::~EnumDescriptorProto() {
 6668|       |  // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
 6669|     22|  SharedDtor(*this);
 6670|     22|}
_ZNK6google8protobuf19EnumDescriptorProto12GetClassDataEv:
 6730|      1|const ::google::protobuf::internal::ClassData* EnumDescriptorProto::GetClassData() const {
 6731|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 6732|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 6733|      1|  return _class_data_.base();
 6734|      1|}
_ZN6google8protobuf19EnumDescriptorProto17IsInitializedImplERKNS0_11MessageLiteE:
 6993|     42|    const MessageLite& msg) {
 6994|     42|  auto& this_ = static_cast<const EnumDescriptorProto&>(msg);
 6995|     42|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_value()))
  ------------------
  |  Branch (6995:7): [True: 0, False: 42]
  ------------------
 6996|      0|    return false;
 6997|     42|  if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
  ------------------
  |  Branch (6997:7): [True: 0, False: 42]
  ------------------
 6998|      0|    if (!this_._impl_.options_->IsInitialized()) return false;
  ------------------
  |  Branch (6998:9): [True: 0, False: 0]
  ------------------
 6999|      0|  }
 7000|     42|  return true;
 7001|     42|}
_ZN6google8protobuf24EnumValueDescriptorProtoD2Ev:
 7081|    136|EnumValueDescriptorProto::~EnumValueDescriptorProto() {
 7082|       |  // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto)
 7083|    136|  SharedDtor(*this);
 7084|    136|}
_ZNK6google8protobuf24EnumValueDescriptorProto12GetClassDataEv:
 7124|      1|const ::google::protobuf::internal::ClassData* EnumValueDescriptorProto::GetClassData() const {
 7125|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 7126|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 7127|      1|  return _class_data_.base();
 7128|      1|}
_ZN6google8protobuf24EnumValueDescriptorProto17IsInitializedImplERKNS0_11MessageLiteE:
 7323|    247|    const MessageLite& msg) {
 7324|    247|  auto& this_ = static_cast<const EnumValueDescriptorProto&>(msg);
 7325|    247|  if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
  ------------------
  |  Branch (7325:7): [True: 0, False: 247]
  ------------------
 7326|      0|    if (!this_._impl_.options_->IsInitialized()) return false;
  ------------------
  |  Branch (7326:9): [True: 0, False: 0]
  ------------------
 7327|      0|  }
 7328|    247|  return true;
 7329|    247|}
_ZNK6google8protobuf22ServiceDescriptorProto12GetClassDataEv:
 7462|      1|const ::google::protobuf::internal::ClassData* ServiceDescriptorProto::GetClassData() const {
 7463|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 7464|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 7465|      1|  return _class_data_.base();
 7466|      1|}
_ZNK6google8protobuf21MethodDescriptorProto12GetClassDataEv:
 7810|      1|const ::google::protobuf::internal::ClassData* MethodDescriptorProto::GetClassData() const {
 7811|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 7812|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 7813|      1|  return _class_data_.base();
 7814|      1|}
_ZN6google8protobuf11FileOptionsC2EPNS0_5ArenaE:
 8125|      2|    : ::google::protobuf::Message(arena) {
 8126|      2|#endif  // PROTOBUF_CUSTOM_VTABLE
 8127|      2|  SharedCtor(arena);
 8128|       |  // @@protoc_insertion_point(arena_constructor:google.protobuf.FileOptions)
 8129|      2|}
_ZN6google8protobuf11FileOptionsD2Ev:
 8204|      3|FileOptions::~FileOptions() {
 8205|       |  // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
 8206|      3|  SharedDtor(*this);
 8207|      3|}
_ZNK6google8protobuf11FileOptions12GetClassDataEv:
 8271|      5|const ::google::protobuf::internal::ClassData* FileOptions::GetClassData() const {
 8272|      5|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 8273|      5|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 8274|      5|  return _class_data_.base();
 8275|      5|}
_ZN6google8protobuf11FileOptions5ClearEv:
 8449|      2|PROTOBUF_NOINLINE void FileOptions::Clear() {
 8450|       |// @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions)
 8451|      2|  ::google::protobuf::internal::TSanWrite(&_impl_);
 8452|      2|  ::uint32_t cached_has_bits = 0;
 8453|       |  // Prevent compiler warnings about cached_has_bits being unused
 8454|      2|  (void) cached_has_bits;
 8455|       |
 8456|      2|  _impl_._extensions_.Clear();
 8457|      2|  _impl_.uninterpreted_option_.Clear();
 8458|      2|  cached_has_bits = _impl_._has_bits_[0];
 8459|      2|  if (cached_has_bits & 0x000000ffu) {
  ------------------
  |  Branch (8459:7): [True: 0, False: 2]
  ------------------
 8460|      0|    if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (8460:9): [True: 0, False: 0]
  ------------------
 8461|      0|      _impl_.java_package_.ClearNonDefaultToEmpty();
 8462|      0|    }
 8463|      0|    if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (8463:9): [True: 0, False: 0]
  ------------------
 8464|      0|      _impl_.java_outer_classname_.ClearNonDefaultToEmpty();
 8465|      0|    }
 8466|      0|    if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (8466:9): [True: 0, False: 0]
  ------------------
 8467|      0|      _impl_.go_package_.ClearNonDefaultToEmpty();
 8468|      0|    }
 8469|      0|    if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (8469:9): [True: 0, False: 0]
  ------------------
 8470|      0|      _impl_.objc_class_prefix_.ClearNonDefaultToEmpty();
 8471|      0|    }
 8472|      0|    if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (8472:9): [True: 0, False: 0]
  ------------------
 8473|      0|      _impl_.csharp_namespace_.ClearNonDefaultToEmpty();
 8474|      0|    }
 8475|      0|    if (cached_has_bits & 0x00000020u) {
  ------------------
  |  Branch (8475:9): [True: 0, False: 0]
  ------------------
 8476|      0|      _impl_.swift_prefix_.ClearNonDefaultToEmpty();
 8477|      0|    }
 8478|      0|    if (cached_has_bits & 0x00000040u) {
  ------------------
  |  Branch (8478:9): [True: 0, False: 0]
  ------------------
 8479|      0|      _impl_.php_class_prefix_.ClearNonDefaultToEmpty();
 8480|      0|    }
 8481|      0|    if (cached_has_bits & 0x00000080u) {
  ------------------
  |  Branch (8481:9): [True: 0, False: 0]
  ------------------
 8482|      0|      _impl_.php_namespace_.ClearNonDefaultToEmpty();
 8483|      0|    }
 8484|      0|  }
 8485|      2|  if (cached_has_bits & 0x00000700u) {
  ------------------
  |  Branch (8485:7): [True: 0, False: 2]
  ------------------
 8486|      0|    if (cached_has_bits & 0x00000100u) {
  ------------------
  |  Branch (8486:9): [True: 0, False: 0]
  ------------------
 8487|      0|      _impl_.php_metadata_namespace_.ClearNonDefaultToEmpty();
 8488|      0|    }
 8489|      0|    if (cached_has_bits & 0x00000200u) {
  ------------------
  |  Branch (8489:9): [True: 0, False: 0]
  ------------------
 8490|      0|      _impl_.ruby_package_.ClearNonDefaultToEmpty();
 8491|      0|    }
 8492|      0|    if (cached_has_bits & 0x00000400u) {
  ------------------
  |  Branch (8492:9): [True: 0, False: 0]
  ------------------
 8493|      0|      ABSL_DCHECK(_impl_.features_ != nullptr);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 8494|      0|      _impl_.features_->Clear();
 8495|      0|    }
 8496|      0|  }
 8497|      2|  if (cached_has_bits & 0x0000f800u) {
  ------------------
  |  Branch (8497:7): [True: 0, False: 2]
  ------------------
 8498|      0|    ::memset(&_impl_.java_multiple_files_, 0, static_cast<::size_t>(
 8499|      0|        reinterpret_cast<char*>(&_impl_.java_generic_services_) -
 8500|      0|        reinterpret_cast<char*>(&_impl_.java_multiple_files_)) + sizeof(_impl_.java_generic_services_));
 8501|      0|  }
 8502|      2|  if (cached_has_bits & 0x000f0000u) {
  ------------------
  |  Branch (8502:7): [True: 0, False: 2]
  ------------------
 8503|      0|    ::memset(&_impl_.py_generic_services_, 0, static_cast<::size_t>(
 8504|      0|        reinterpret_cast<char*>(&_impl_.deprecated_) -
 8505|      0|        reinterpret_cast<char*>(&_impl_.py_generic_services_)) + sizeof(_impl_.deprecated_));
 8506|      0|    _impl_.optimize_for_ = 1;
 8507|      0|    _impl_.cc_enable_arenas_ = true;
 8508|      0|  }
 8509|      2|  _impl_._has_bits_.Clear();
 8510|      2|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
 8511|      2|}
_ZNK6google8protobuf11FileOptions18_InternalSerializeEPhPNS0_2io19EpsCopyOutputStreamE:
 8521|      2|            ::google::protobuf::io::EpsCopyOutputStream* stream) const {
 8522|      2|          const FileOptions& this_ = *this;
 8523|      2|#endif  // PROTOBUF_CUSTOM_VTABLE
 8524|       |          // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
 8525|      2|          ::uint32_t cached_has_bits = 0;
 8526|      2|          (void)cached_has_bits;
 8527|       |
 8528|      2|          cached_has_bits = this_._impl_._has_bits_[0];
 8529|       |          // optional string java_package = 1;
 8530|      2|          if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (8530:15): [True: 2, False: 0]
  ------------------
 8531|      2|            const std::string& _s = this_._internal_java_package();
 8532|      2|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8533|      2|                                        "google.protobuf.FileOptions.java_package");
 8534|      2|            target = stream->WriteStringMaybeAliased(1, _s, target);
 8535|      2|          }
 8536|       |
 8537|       |          // optional string java_outer_classname = 8;
 8538|      2|          if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (8538:15): [True: 2, False: 0]
  ------------------
 8539|      2|            const std::string& _s = this_._internal_java_outer_classname();
 8540|      2|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8541|      2|                                        "google.protobuf.FileOptions.java_outer_classname");
 8542|      2|            target = stream->WriteStringMaybeAliased(8, _s, target);
 8543|      2|          }
 8544|       |
 8545|       |          // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
 8546|      2|          if (cached_has_bits & 0x00040000u) {
  ------------------
  |  Branch (8546:15): [True: 1, False: 1]
  ------------------
 8547|      1|            target = stream->EnsureSpace(target);
 8548|      1|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
 8549|      1|                9, this_._internal_optimize_for(), target);
 8550|      1|          }
 8551|       |
 8552|       |          // optional bool java_multiple_files = 10 [default = false];
 8553|      2|          if (cached_has_bits & 0x00000800u) {
  ------------------
  |  Branch (8553:15): [True: 1, False: 1]
  ------------------
 8554|      1|            target = stream->EnsureSpace(target);
 8555|      1|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
 8556|      1|                10, this_._internal_java_multiple_files(), target);
 8557|      1|          }
 8558|       |
 8559|       |          // optional string go_package = 11;
 8560|      2|          if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (8560:15): [True: 2, False: 0]
  ------------------
 8561|      2|            const std::string& _s = this_._internal_go_package();
 8562|      2|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8563|      2|                                        "google.protobuf.FileOptions.go_package");
 8564|      2|            target = stream->WriteStringMaybeAliased(11, _s, target);
 8565|      2|          }
 8566|       |
 8567|       |          // optional bool cc_generic_services = 16 [default = false];
 8568|      2|          if (cached_has_bits & 0x00004000u) {
  ------------------
  |  Branch (8568:15): [True: 0, False: 2]
  ------------------
 8569|      0|            target = stream->EnsureSpace(target);
 8570|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
 8571|      0|                16, this_._internal_cc_generic_services(), target);
 8572|      0|          }
 8573|       |
 8574|       |          // optional bool java_generic_services = 17 [default = false];
 8575|      2|          if (cached_has_bits & 0x00008000u) {
  ------------------
  |  Branch (8575:15): [True: 0, False: 2]
  ------------------
 8576|      0|            target = stream->EnsureSpace(target);
 8577|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
 8578|      0|                17, this_._internal_java_generic_services(), target);
 8579|      0|          }
 8580|       |
 8581|       |          // optional bool py_generic_services = 18 [default = false];
 8582|      2|          if (cached_has_bits & 0x00010000u) {
  ------------------
  |  Branch (8582:15): [True: 0, False: 2]
  ------------------
 8583|      0|            target = stream->EnsureSpace(target);
 8584|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
 8585|      0|                18, this_._internal_py_generic_services(), target);
 8586|      0|          }
 8587|       |
 8588|       |          // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
 8589|      2|          if (cached_has_bits & 0x00001000u) {
  ------------------
  |  Branch (8589:15): [True: 0, False: 2]
  ------------------
 8590|      0|            target = stream->EnsureSpace(target);
 8591|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
 8592|      0|                20, this_._internal_java_generate_equals_and_hash(), target);
 8593|      0|          }
 8594|       |
 8595|       |          // optional bool deprecated = 23 [default = false];
 8596|      2|          if (cached_has_bits & 0x00020000u) {
  ------------------
  |  Branch (8596:15): [True: 0, False: 2]
  ------------------
 8597|      0|            target = stream->EnsureSpace(target);
 8598|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
 8599|      0|                23, this_._internal_deprecated(), target);
 8600|      0|          }
 8601|       |
 8602|       |          // optional bool java_string_check_utf8 = 27 [default = false];
 8603|      2|          if (cached_has_bits & 0x00002000u) {
  ------------------
  |  Branch (8603:15): [True: 0, False: 2]
  ------------------
 8604|      0|            target = stream->EnsureSpace(target);
 8605|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
 8606|      0|                27, this_._internal_java_string_check_utf8(), target);
 8607|      0|          }
 8608|       |
 8609|       |          // optional bool cc_enable_arenas = 31 [default = true];
 8610|      2|          if (cached_has_bits & 0x00080000u) {
  ------------------
  |  Branch (8610:15): [True: 1, False: 1]
  ------------------
 8611|      1|            target = stream->EnsureSpace(target);
 8612|      1|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
 8613|      1|                31, this_._internal_cc_enable_arenas(), target);
 8614|      1|          }
 8615|       |
 8616|       |          // optional string objc_class_prefix = 36;
 8617|      2|          if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (8617:15): [True: 2, False: 0]
  ------------------
 8618|      2|            const std::string& _s = this_._internal_objc_class_prefix();
 8619|      2|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8620|      2|                                        "google.protobuf.FileOptions.objc_class_prefix");
 8621|      2|            target = stream->WriteStringMaybeAliased(36, _s, target);
 8622|      2|          }
 8623|       |
 8624|       |          // optional string csharp_namespace = 37;
 8625|      2|          if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (8625:15): [True: 2, False: 0]
  ------------------
 8626|      2|            const std::string& _s = this_._internal_csharp_namespace();
 8627|      2|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8628|      2|                                        "google.protobuf.FileOptions.csharp_namespace");
 8629|      2|            target = stream->WriteStringMaybeAliased(37, _s, target);
 8630|      2|          }
 8631|       |
 8632|       |          // optional string swift_prefix = 39;
 8633|      2|          if (cached_has_bits & 0x00000020u) {
  ------------------
  |  Branch (8633:15): [True: 0, False: 2]
  ------------------
 8634|      0|            const std::string& _s = this_._internal_swift_prefix();
 8635|      0|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8636|      0|                                        "google.protobuf.FileOptions.swift_prefix");
 8637|      0|            target = stream->WriteStringMaybeAliased(39, _s, target);
 8638|      0|          }
 8639|       |
 8640|       |          // optional string php_class_prefix = 40;
 8641|      2|          if (cached_has_bits & 0x00000040u) {
  ------------------
  |  Branch (8641:15): [True: 0, False: 2]
  ------------------
 8642|      0|            const std::string& _s = this_._internal_php_class_prefix();
 8643|      0|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8644|      0|                                        "google.protobuf.FileOptions.php_class_prefix");
 8645|      0|            target = stream->WriteStringMaybeAliased(40, _s, target);
 8646|      0|          }
 8647|       |
 8648|       |          // optional string php_namespace = 41;
 8649|      2|          if (cached_has_bits & 0x00000080u) {
  ------------------
  |  Branch (8649:15): [True: 0, False: 2]
  ------------------
 8650|      0|            const std::string& _s = this_._internal_php_namespace();
 8651|      0|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8652|      0|                                        "google.protobuf.FileOptions.php_namespace");
 8653|      0|            target = stream->WriteStringMaybeAliased(41, _s, target);
 8654|      0|          }
 8655|       |
 8656|       |          // optional string php_metadata_namespace = 44;
 8657|      2|          if (cached_has_bits & 0x00000100u) {
  ------------------
  |  Branch (8657:15): [True: 0, False: 2]
  ------------------
 8658|      0|            const std::string& _s = this_._internal_php_metadata_namespace();
 8659|      0|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8660|      0|                                        "google.protobuf.FileOptions.php_metadata_namespace");
 8661|      0|            target = stream->WriteStringMaybeAliased(44, _s, target);
 8662|      0|          }
 8663|       |
 8664|       |          // optional string ruby_package = 45;
 8665|      2|          if (cached_has_bits & 0x00000200u) {
  ------------------
  |  Branch (8665:15): [True: 0, False: 2]
  ------------------
 8666|      0|            const std::string& _s = this_._internal_ruby_package();
 8667|      0|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 8668|      0|                                        "google.protobuf.FileOptions.ruby_package");
 8669|      0|            target = stream->WriteStringMaybeAliased(45, _s, target);
 8670|      0|          }
 8671|       |
 8672|       |          // optional .google.protobuf.FeatureSet features = 50;
 8673|      2|          if (cached_has_bits & 0x00000400u) {
  ------------------
  |  Branch (8673:15): [True: 0, False: 2]
  ------------------
 8674|      0|            target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
 8675|      0|                50, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target,
 8676|      0|                stream);
 8677|      0|          }
 8678|       |
 8679|       |          // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
 8680|      2|          for (unsigned i = 0, n = static_cast<unsigned>(
 8681|      2|                                   this_._internal_uninterpreted_option_size());
 8682|      2|               i < n; i++) {
  ------------------
  |  Branch (8682:16): [True: 0, False: 2]
  ------------------
 8683|      0|            const auto& repfield = this_._internal_uninterpreted_option().Get(i);
 8684|      0|            target =
 8685|      0|                ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
 8686|      0|                    999, repfield, repfield.GetCachedSize(),
 8687|      0|                    target, stream);
 8688|      0|          }
 8689|       |
 8690|       |          // Extension range [1000, 536870912)
 8691|      2|          target = this_._impl_._extensions_._InternalSerialize(
 8692|      2|              internal_default_instance(), 1000, 536870912, target, stream);
 8693|      2|          if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  ------------------
  |  |  365|      2|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 2]
  |  |  |  Branch (365:54): [Folded, False: 2]
  |  |  |  Branch (365:63): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 8694|      0|            target =
 8695|      0|                ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
 8696|      0|                    this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
 8697|      0|          }
 8698|       |          // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions)
 8699|      2|          return target;
 8700|      2|        }
_ZNK6google8protobuf11FileOptions12ByteSizeLongEv:
 8706|      2|        ::size_t FileOptions::ByteSizeLong() const {
 8707|      2|          const FileOptions& this_ = *this;
 8708|      2|#endif  // PROTOBUF_CUSTOM_VTABLE
 8709|       |          // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions)
 8710|      2|          ::size_t total_size = 0;
 8711|      2|          total_size += this_._impl_._extensions_.ByteSize();
 8712|       |
 8713|      2|          ::uint32_t cached_has_bits = 0;
 8714|       |          // Prevent compiler warnings about cached_has_bits being unused
 8715|      2|          (void)cached_has_bits;
 8716|       |
 8717|      2|          ::_pbi::Prefetch5LinesFrom7Lines(&this_);
 8718|      2|           {
 8719|       |            // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
 8720|      2|            {
 8721|      2|              total_size += 2UL * this_._internal_uninterpreted_option_size();
 8722|      2|              for (const auto& msg : this_._internal_uninterpreted_option()) {
  ------------------
  |  Branch (8722:36): [True: 0, False: 2]
  ------------------
 8723|      0|                total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
 8724|      0|              }
 8725|      2|            }
 8726|      2|          }
 8727|      2|          cached_has_bits = this_._impl_._has_bits_[0];
 8728|      2|          if (cached_has_bits & 0x000000ffu) {
  ------------------
  |  Branch (8728:15): [True: 2, False: 0]
  ------------------
 8729|       |            // optional string java_package = 1;
 8730|      2|            if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (8730:17): [True: 2, False: 0]
  ------------------
 8731|      2|              total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8732|      2|                                              this_._internal_java_package());
 8733|      2|            }
 8734|       |            // optional string java_outer_classname = 8;
 8735|      2|            if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (8735:17): [True: 2, False: 0]
  ------------------
 8736|      2|              total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8737|      2|                                              this_._internal_java_outer_classname());
 8738|      2|            }
 8739|       |            // optional string go_package = 11;
 8740|      2|            if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (8740:17): [True: 2, False: 0]
  ------------------
 8741|      2|              total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8742|      2|                                              this_._internal_go_package());
 8743|      2|            }
 8744|       |            // optional string objc_class_prefix = 36;
 8745|      2|            if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (8745:17): [True: 2, False: 0]
  ------------------
 8746|      2|              total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8747|      2|                                              this_._internal_objc_class_prefix());
 8748|      2|            }
 8749|       |            // optional string csharp_namespace = 37;
 8750|      2|            if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (8750:17): [True: 2, False: 0]
  ------------------
 8751|      2|              total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8752|      2|                                              this_._internal_csharp_namespace());
 8753|      2|            }
 8754|       |            // optional string swift_prefix = 39;
 8755|      2|            if (cached_has_bits & 0x00000020u) {
  ------------------
  |  Branch (8755:17): [True: 0, False: 2]
  ------------------
 8756|      0|              total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8757|      0|                                              this_._internal_swift_prefix());
 8758|      0|            }
 8759|       |            // optional string php_class_prefix = 40;
 8760|      2|            if (cached_has_bits & 0x00000040u) {
  ------------------
  |  Branch (8760:17): [True: 0, False: 2]
  ------------------
 8761|      0|              total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8762|      0|                                              this_._internal_php_class_prefix());
 8763|      0|            }
 8764|       |            // optional string php_namespace = 41;
 8765|      2|            if (cached_has_bits & 0x00000080u) {
  ------------------
  |  Branch (8765:17): [True: 0, False: 2]
  ------------------
 8766|      0|              total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8767|      0|                                              this_._internal_php_namespace());
 8768|      0|            }
 8769|      2|          }
 8770|      2|          if (cached_has_bits & 0x0000ff00u) {
  ------------------
  |  Branch (8770:15): [True: 1, False: 1]
  ------------------
 8771|       |            // optional string php_metadata_namespace = 44;
 8772|      1|            if (cached_has_bits & 0x00000100u) {
  ------------------
  |  Branch (8772:17): [True: 0, False: 1]
  ------------------
 8773|      0|              total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8774|      0|                                              this_._internal_php_metadata_namespace());
 8775|      0|            }
 8776|       |            // optional string ruby_package = 45;
 8777|      1|            if (cached_has_bits & 0x00000200u) {
  ------------------
  |  Branch (8777:17): [True: 0, False: 1]
  ------------------
 8778|      0|              total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
 8779|      0|                                              this_._internal_ruby_package());
 8780|      0|            }
 8781|       |            // optional .google.protobuf.FeatureSet features = 50;
 8782|      1|            if (cached_has_bits & 0x00000400u) {
  ------------------
  |  Branch (8782:17): [True: 0, False: 1]
  ------------------
 8783|      0|              total_size += 2 +
 8784|      0|                            ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_);
 8785|      0|            }
 8786|       |            // optional bool java_multiple_files = 10 [default = false];
 8787|      1|            if (cached_has_bits & 0x00000800u) {
  ------------------
  |  Branch (8787:17): [True: 1, False: 0]
  ------------------
 8788|      1|              total_size += 2;
 8789|      1|            }
 8790|       |            // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
 8791|      1|            if (cached_has_bits & 0x00001000u) {
  ------------------
  |  Branch (8791:17): [True: 0, False: 1]
  ------------------
 8792|      0|              total_size += 3;
 8793|      0|            }
 8794|       |            // optional bool java_string_check_utf8 = 27 [default = false];
 8795|      1|            if (cached_has_bits & 0x00002000u) {
  ------------------
  |  Branch (8795:17): [True: 0, False: 1]
  ------------------
 8796|      0|              total_size += 3;
 8797|      0|            }
 8798|       |            // optional bool cc_generic_services = 16 [default = false];
 8799|      1|            if (cached_has_bits & 0x00004000u) {
  ------------------
  |  Branch (8799:17): [True: 0, False: 1]
  ------------------
 8800|      0|              total_size += 3;
 8801|      0|            }
 8802|       |            // optional bool java_generic_services = 17 [default = false];
 8803|      1|            if (cached_has_bits & 0x00008000u) {
  ------------------
  |  Branch (8803:17): [True: 0, False: 1]
  ------------------
 8804|      0|              total_size += 3;
 8805|      0|            }
 8806|      1|          }
 8807|      2|          if (cached_has_bits & 0x000f0000u) {
  ------------------
  |  Branch (8807:15): [True: 1, False: 1]
  ------------------
 8808|       |            // optional bool py_generic_services = 18 [default = false];
 8809|      1|            if (cached_has_bits & 0x00010000u) {
  ------------------
  |  Branch (8809:17): [True: 0, False: 1]
  ------------------
 8810|      0|              total_size += 3;
 8811|      0|            }
 8812|       |            // optional bool deprecated = 23 [default = false];
 8813|      1|            if (cached_has_bits & 0x00020000u) {
  ------------------
  |  Branch (8813:17): [True: 0, False: 1]
  ------------------
 8814|      0|              total_size += 3;
 8815|      0|            }
 8816|       |            // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
 8817|      1|            if (cached_has_bits & 0x00040000u) {
  ------------------
  |  Branch (8817:17): [True: 1, False: 0]
  ------------------
 8818|      1|              total_size += 1 +
 8819|      1|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_optimize_for());
 8820|      1|            }
 8821|       |            // optional bool cc_enable_arenas = 31 [default = true];
 8822|      1|            if (cached_has_bits & 0x00080000u) {
  ------------------
  |  Branch (8822:17): [True: 1, False: 0]
  ------------------
 8823|      1|              total_size += 3;
 8824|      1|            }
 8825|      1|          }
 8826|      2|          return this_.MaybeComputeUnknownFieldsSize(total_size,
 8827|      2|                                                     &this_._impl_._cached_size_);
 8828|      2|        }
_ZN6google8protobuf11FileOptions17IsInitializedImplERKNS0_11MessageLiteE:
 8927|      9|    const MessageLite& msg) {
 8928|      9|  auto& this_ = static_cast<const FileOptions&>(msg);
 8929|      9|  if (!this_._impl_._extensions_.IsInitialized(
  ------------------
  |  Branch (8929:7): [True: 0, False: 9]
  ------------------
 8930|      9|          internal_default_instance())) {
 8931|      0|    return false;
 8932|      0|  }
 8933|      9|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_uninterpreted_option()))
  ------------------
  |  Branch (8933:7): [True: 0, False: 9]
  ------------------
 8934|      0|    return false;
 8935|      9|  if ((this_._impl_._has_bits_[0] & 0x00000400u) != 0) {
  ------------------
  |  Branch (8935:7): [True: 0, False: 9]
  ------------------
 8936|      0|    if (!this_._impl_.features_->IsInitialized()) return false;
  ------------------
  |  Branch (8936:9): [True: 0, False: 0]
  ------------------
 8937|      0|  }
 8938|      9|  return true;
 8939|      9|}
_ZNK6google8protobuf14MessageOptions12GetClassDataEv:
 9098|      1|const ::google::protobuf::internal::ClassData* MessageOptions::GetClassData() const {
 9099|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 9100|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 9101|      1|  return _class_data_.base();
 9102|      1|}
_ZN6google8protobuf27FieldOptions_EditionDefaultD2Ev:
 9468|     18|FieldOptions_EditionDefault::~FieldOptions_EditionDefault() {
 9469|       |  // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions.EditionDefault)
 9470|     18|  SharedDtor(*this);
 9471|     18|}
_ZNK6google8protobuf27FieldOptions_EditionDefault12GetClassDataEv:
 9510|      1|const ::google::protobuf::internal::ClassData* FieldOptions_EditionDefault::GetClassData() const {
 9511|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 9512|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 9513|      1|  return _class_data_.base();
 9514|      1|}
_ZNK6google8protobuf27FieldOptions_EditionDefault18_InternalSerializeEPhPNS0_2io19EpsCopyOutputStreamE:
 9581|     18|            ::google::protobuf::io::EpsCopyOutputStream* stream) const {
 9582|     18|          const FieldOptions_EditionDefault& this_ = *this;
 9583|     18|#endif  // PROTOBUF_CUSTOM_VTABLE
 9584|       |          // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions.EditionDefault)
 9585|     18|          ::uint32_t cached_has_bits = 0;
 9586|     18|          (void)cached_has_bits;
 9587|       |
 9588|     18|          cached_has_bits = this_._impl_._has_bits_[0];
 9589|       |          // optional string value = 2;
 9590|     18|          if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (9590:15): [True: 18, False: 0]
  ------------------
 9591|     18|            const std::string& _s = this_._internal_value();
 9592|     18|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 9593|     18|                                        "google.protobuf.FieldOptions.EditionDefault.value");
 9594|     18|            target = stream->WriteStringMaybeAliased(2, _s, target);
 9595|     18|          }
 9596|       |
 9597|       |          // optional .google.protobuf.Edition edition = 3;
 9598|     18|          if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (9598:15): [True: 18, False: 0]
  ------------------
 9599|     18|            target = stream->EnsureSpace(target);
 9600|     18|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
 9601|     18|                3, this_._internal_edition(), target);
 9602|     18|          }
 9603|       |
 9604|     18|          if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  ------------------
  |  |  365|     18|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 18]
  |  |  |  Branch (365:54): [Folded, False: 18]
  |  |  |  Branch (365:63): [True: 0, False: 18]
  |  |  ------------------
  ------------------
 9605|      0|            target =
 9606|      0|                ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
 9607|      0|                    this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
 9608|      0|          }
 9609|       |          // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions.EditionDefault)
 9610|     18|          return target;
 9611|     18|        }
_ZNK6google8protobuf27FieldOptions_EditionDefault12ByteSizeLongEv:
 9617|     18|        ::size_t FieldOptions_EditionDefault::ByteSizeLong() const {
 9618|     18|          const FieldOptions_EditionDefault& this_ = *this;
 9619|     18|#endif  // PROTOBUF_CUSTOM_VTABLE
 9620|       |          // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions.EditionDefault)
 9621|     18|          ::size_t total_size = 0;
 9622|       |
 9623|     18|          ::uint32_t cached_has_bits = 0;
 9624|       |          // Prevent compiler warnings about cached_has_bits being unused
 9625|     18|          (void)cached_has_bits;
 9626|       |
 9627|     18|          ::_pbi::Prefetch5LinesFrom7Lines(&this_);
 9628|     18|          cached_has_bits = this_._impl_._has_bits_[0];
 9629|     18|          if (cached_has_bits & 0x00000003u) {
  ------------------
  |  Branch (9629:15): [True: 18, False: 0]
  ------------------
 9630|       |            // optional string value = 2;
 9631|     18|            if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (9631:17): [True: 18, False: 0]
  ------------------
 9632|     18|              total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
 9633|     18|                                              this_._internal_value());
 9634|     18|            }
 9635|       |            // optional .google.protobuf.Edition edition = 3;
 9636|     18|            if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (9636:17): [True: 18, False: 0]
  ------------------
 9637|     18|              total_size += 1 +
 9638|     18|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_edition());
 9639|     18|            }
 9640|     18|          }
 9641|     18|          return this_.MaybeComputeUnknownFieldsSize(total_size,
 9642|     18|                                                     &this_._impl_._cached_size_);
 9643|     18|        }
_ZN6google8protobuf27FieldOptions_FeatureSupportD2Ev:
 9751|      9|FieldOptions_FeatureSupport::~FieldOptions_FeatureSupport() {
 9752|       |  // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions.FeatureSupport)
 9753|      9|  SharedDtor(*this);
 9754|      9|}
_ZNK6google8protobuf27FieldOptions_FeatureSupport12GetClassDataEv:
 9793|      1|const ::google::protobuf::internal::ClassData* FieldOptions_FeatureSupport::GetClassData() const {
 9794|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
 9795|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
 9796|      1|  return _class_data_.base();
 9797|      1|}
_ZNK6google8protobuf27FieldOptions_FeatureSupport18_InternalSerializeEPhPNS0_2io19EpsCopyOutputStreamE:
 9882|      9|            ::google::protobuf::io::EpsCopyOutputStream* stream) const {
 9883|      9|          const FieldOptions_FeatureSupport& this_ = *this;
 9884|      9|#endif  // PROTOBUF_CUSTOM_VTABLE
 9885|       |          // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions.FeatureSupport)
 9886|      9|          ::uint32_t cached_has_bits = 0;
 9887|      9|          (void)cached_has_bits;
 9888|       |
 9889|      9|          cached_has_bits = this_._impl_._has_bits_[0];
 9890|       |          // optional .google.protobuf.Edition edition_introduced = 1;
 9891|      9|          if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (9891:15): [True: 9, False: 0]
  ------------------
 9892|      9|            target = stream->EnsureSpace(target);
 9893|      9|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
 9894|      9|                1, this_._internal_edition_introduced(), target);
 9895|      9|          }
 9896|       |
 9897|       |          // optional .google.protobuf.Edition edition_deprecated = 2;
 9898|      9|          if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (9898:15): [True: 1, False: 8]
  ------------------
 9899|      1|            target = stream->EnsureSpace(target);
 9900|      1|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
 9901|      1|                2, this_._internal_edition_deprecated(), target);
 9902|      1|          }
 9903|       |
 9904|       |          // optional string deprecation_warning = 3;
 9905|      9|          if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (9905:15): [True: 1, False: 8]
  ------------------
 9906|      1|            const std::string& _s = this_._internal_deprecation_warning();
 9907|      1|            ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
 9908|      1|                                        "google.protobuf.FieldOptions.FeatureSupport.deprecation_warning");
 9909|      1|            target = stream->WriteStringMaybeAliased(3, _s, target);
 9910|      1|          }
 9911|       |
 9912|       |          // optional .google.protobuf.Edition edition_removed = 4;
 9913|      9|          if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (9913:15): [True: 0, False: 9]
  ------------------
 9914|      0|            target = stream->EnsureSpace(target);
 9915|      0|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
 9916|      0|                4, this_._internal_edition_removed(), target);
 9917|      0|          }
 9918|       |
 9919|      9|          if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  ------------------
  |  |  365|      9|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 9]
  |  |  |  Branch (365:54): [Folded, False: 9]
  |  |  |  Branch (365:63): [True: 0, False: 9]
  |  |  ------------------
  ------------------
 9920|      0|            target =
 9921|      0|                ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
 9922|      0|                    this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
 9923|      0|          }
 9924|       |          // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions.FeatureSupport)
 9925|      9|          return target;
 9926|      9|        }
_ZNK6google8protobuf27FieldOptions_FeatureSupport12ByteSizeLongEv:
 9932|      9|        ::size_t FieldOptions_FeatureSupport::ByteSizeLong() const {
 9933|      9|          const FieldOptions_FeatureSupport& this_ = *this;
 9934|      9|#endif  // PROTOBUF_CUSTOM_VTABLE
 9935|       |          // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions.FeatureSupport)
 9936|      9|          ::size_t total_size = 0;
 9937|       |
 9938|      9|          ::uint32_t cached_has_bits = 0;
 9939|       |          // Prevent compiler warnings about cached_has_bits being unused
 9940|      9|          (void)cached_has_bits;
 9941|       |
 9942|      9|          ::_pbi::Prefetch5LinesFrom7Lines(&this_);
 9943|      9|          cached_has_bits = this_._impl_._has_bits_[0];
 9944|      9|          if (cached_has_bits & 0x0000000fu) {
  ------------------
  |  Branch (9944:15): [True: 9, False: 0]
  ------------------
 9945|       |            // optional string deprecation_warning = 3;
 9946|      9|            if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (9946:17): [True: 1, False: 8]
  ------------------
 9947|      1|              total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
 9948|      1|                                              this_._internal_deprecation_warning());
 9949|      1|            }
 9950|       |            // optional .google.protobuf.Edition edition_introduced = 1;
 9951|      9|            if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (9951:17): [True: 9, False: 0]
  ------------------
 9952|      9|              total_size += 1 +
 9953|      9|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_edition_introduced());
 9954|      9|            }
 9955|       |            // optional .google.protobuf.Edition edition_deprecated = 2;
 9956|      9|            if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (9956:17): [True: 1, False: 8]
  ------------------
 9957|      1|              total_size += 1 +
 9958|      1|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_edition_deprecated());
 9959|      1|            }
 9960|       |            // optional .google.protobuf.Edition edition_removed = 4;
 9961|      9|            if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (9961:17): [True: 0, False: 9]
  ------------------
 9962|      0|              total_size += 1 +
 9963|      0|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_edition_removed());
 9964|      0|            }
 9965|      9|          }
 9966|      9|          return this_.MaybeComputeUnknownFieldsSize(total_size,
 9967|      9|                                                     &this_._impl_._cached_size_);
 9968|      9|        }
_ZN6google8protobuf12FieldOptionsC2EPNS0_5ArenaE:
10037|     17|    : ::google::protobuf::Message(arena) {
10038|     17|#endif  // PROTOBUF_CUSTOM_VTABLE
10039|     17|  SharedCtor(arena);
10040|       |  // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldOptions)
10041|     17|}
_ZN6google8protobuf12FieldOptionsD2Ev:
10101|     17|FieldOptions::~FieldOptions() {
10102|       |  // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
10103|     17|  SharedDtor(*this);
10104|     17|}
_ZNK6google8protobuf12FieldOptions12GetClassDataEv:
10167|     35|const ::google::protobuf::internal::ClassData* FieldOptions::GetClassData() const {
10168|     35|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
10169|     35|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
10170|     35|  return _class_data_.base();
10171|     35|}
_ZN6google8protobuf12FieldOptions5ClearEv:
10286|     17|PROTOBUF_NOINLINE void FieldOptions::Clear() {
10287|       |// @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions)
10288|     17|  ::google::protobuf::internal::TSanWrite(&_impl_);
10289|     17|  ::uint32_t cached_has_bits = 0;
10290|       |  // Prevent compiler warnings about cached_has_bits being unused
10291|     17|  (void) cached_has_bits;
10292|       |
10293|     17|  _impl_._extensions_.Clear();
10294|     17|  _impl_.targets_.Clear();
10295|     17|  _impl_.edition_defaults_.Clear();
10296|     17|  _impl_.uninterpreted_option_.Clear();
10297|     17|  cached_has_bits = _impl_._has_bits_[0];
10298|     17|  if (cached_has_bits & 0x00000003u) {
  ------------------
  |  Branch (10298:7): [True: 0, False: 17]
  ------------------
10299|      0|    if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (10299:9): [True: 0, False: 0]
  ------------------
10300|      0|      ABSL_DCHECK(_impl_.features_ != nullptr);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
10301|      0|      _impl_.features_->Clear();
10302|      0|    }
10303|      0|    if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (10303:9): [True: 0, False: 0]
  ------------------
10304|      0|      ABSL_DCHECK(_impl_.feature_support_ != nullptr);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
10305|      0|      _impl_.feature_support_->Clear();
10306|      0|    }
10307|      0|  }
10308|     17|  if (cached_has_bits & 0x000000fcu) {
  ------------------
  |  Branch (10308:7): [True: 0, False: 17]
  ------------------
10309|      0|    ::memset(&_impl_.ctype_, 0, static_cast<::size_t>(
10310|      0|        reinterpret_cast<char*>(&_impl_.deprecated_) -
10311|      0|        reinterpret_cast<char*>(&_impl_.ctype_)) + sizeof(_impl_.deprecated_));
10312|      0|  }
10313|     17|  if (cached_has_bits & 0x00000700u) {
  ------------------
  |  Branch (10313:7): [True: 0, False: 17]
  ------------------
10314|      0|    ::memset(&_impl_.weak_, 0, static_cast<::size_t>(
10315|      0|        reinterpret_cast<char*>(&_impl_.retention_) -
10316|      0|        reinterpret_cast<char*>(&_impl_.weak_)) + sizeof(_impl_.retention_));
10317|      0|  }
10318|     17|  _impl_._has_bits_.Clear();
10319|     17|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
10320|     17|}
_ZNK6google8protobuf12FieldOptions18_InternalSerializeEPhPNS0_2io19EpsCopyOutputStreamE:
10330|     17|            ::google::protobuf::io::EpsCopyOutputStream* stream) const {
10331|     17|          const FieldOptions& this_ = *this;
10332|     17|#endif  // PROTOBUF_CUSTOM_VTABLE
10333|       |          // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
10334|     17|          ::uint32_t cached_has_bits = 0;
10335|     17|          (void)cached_has_bits;
10336|       |
10337|     17|          cached_has_bits = this_._impl_._has_bits_[0];
10338|       |          // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10339|     17|          if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (10339:15): [True: 0, False: 17]
  ------------------
10340|      0|            target = stream->EnsureSpace(target);
10341|      0|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
10342|      0|                1, this_._internal_ctype(), target);
10343|      0|          }
10344|       |
10345|       |          // optional bool packed = 2;
10346|     17|          if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (10346:15): [True: 3, False: 14]
  ------------------
10347|      3|            target = stream->EnsureSpace(target);
10348|      3|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
10349|      3|                2, this_._internal_packed(), target);
10350|      3|          }
10351|       |
10352|       |          // optional bool deprecated = 3 [default = false];
10353|     17|          if (cached_has_bits & 0x00000080u) {
  ------------------
  |  Branch (10353:15): [True: 3, False: 14]
  ------------------
10354|      3|            target = stream->EnsureSpace(target);
10355|      3|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
10356|      3|                3, this_._internal_deprecated(), target);
10357|      3|          }
10358|       |
10359|       |          // optional bool lazy = 5 [default = false];
10360|     17|          if (cached_has_bits & 0x00000020u) {
  ------------------
  |  Branch (10360:15): [True: 0, False: 17]
  ------------------
10361|      0|            target = stream->EnsureSpace(target);
10362|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
10363|      0|                5, this_._internal_lazy(), target);
10364|      0|          }
10365|       |
10366|       |          // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10367|     17|          if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (10367:15): [True: 0, False: 17]
  ------------------
10368|      0|            target = stream->EnsureSpace(target);
10369|      0|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
10370|      0|                6, this_._internal_jstype(), target);
10371|      0|          }
10372|       |
10373|       |          // optional bool weak = 10 [default = false];
10374|     17|          if (cached_has_bits & 0x00000100u) {
  ------------------
  |  Branch (10374:15): [True: 0, False: 17]
  ------------------
10375|      0|            target = stream->EnsureSpace(target);
10376|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
10377|      0|                10, this_._internal_weak(), target);
10378|      0|          }
10379|       |
10380|       |          // optional bool unverified_lazy = 15 [default = false];
10381|     17|          if (cached_has_bits & 0x00000040u) {
  ------------------
  |  Branch (10381:15): [True: 0, False: 17]
  ------------------
10382|      0|            target = stream->EnsureSpace(target);
10383|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
10384|      0|                15, this_._internal_unverified_lazy(), target);
10385|      0|          }
10386|       |
10387|       |          // optional bool debug_redact = 16 [default = false];
10388|     17|          if (cached_has_bits & 0x00000200u) {
  ------------------
  |  Branch (10388:15): [True: 0, False: 17]
  ------------------
10389|      0|            target = stream->EnsureSpace(target);
10390|      0|            target = ::_pbi::WireFormatLite::WriteBoolToArray(
10391|      0|                16, this_._internal_debug_redact(), target);
10392|      0|          }
10393|       |
10394|       |          // optional .google.protobuf.FieldOptions.OptionRetention retention = 17;
10395|     17|          if (cached_has_bits & 0x00000400u) {
  ------------------
  |  Branch (10395:15): [True: 11, False: 6]
  ------------------
10396|     11|            target = stream->EnsureSpace(target);
10397|     11|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
10398|     11|                17, this_._internal_retention(), target);
10399|     11|          }
10400|       |
10401|       |          // repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
10402|     36|          for (int i = 0, n = this_._internal_targets_size(); i < n; ++i) {
  ------------------
  |  Branch (10402:63): [True: 19, False: 17]
  ------------------
10403|     19|            target = stream->EnsureSpace(target);
10404|     19|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
10405|     19|                19, static_cast<::google::protobuf::FieldOptions_OptionTargetType>(this_._internal_targets().Get(i)),
10406|     19|                target);
10407|     19|          }
10408|       |
10409|       |          // repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
10410|     17|          for (unsigned i = 0, n = static_cast<unsigned>(
10411|     17|                                   this_._internal_edition_defaults_size());
10412|     35|               i < n; i++) {
  ------------------
  |  Branch (10412:16): [True: 18, False: 17]
  ------------------
10413|     18|            const auto& repfield = this_._internal_edition_defaults().Get(i);
10414|     18|            target =
10415|     18|                ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
10416|     18|                    20, repfield, repfield.GetCachedSize(),
10417|     18|                    target, stream);
10418|     18|          }
10419|       |
10420|       |          // optional .google.protobuf.FeatureSet features = 21;
10421|     17|          if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (10421:15): [True: 0, False: 17]
  ------------------
10422|      0|            target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
10423|      0|                21, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target,
10424|      0|                stream);
10425|      0|          }
10426|       |
10427|       |          // optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
10428|     17|          if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (10428:15): [True: 9, False: 8]
  ------------------
10429|      9|            target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
10430|      9|                22, *this_._impl_.feature_support_, this_._impl_.feature_support_->GetCachedSize(), target,
10431|      9|                stream);
10432|      9|          }
10433|       |
10434|       |          // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10435|     17|          for (unsigned i = 0, n = static_cast<unsigned>(
10436|     17|                                   this_._internal_uninterpreted_option_size());
10437|     17|               i < n; i++) {
  ------------------
  |  Branch (10437:16): [True: 0, False: 17]
  ------------------
10438|      0|            const auto& repfield = this_._internal_uninterpreted_option().Get(i);
10439|      0|            target =
10440|      0|                ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
10441|      0|                    999, repfield, repfield.GetCachedSize(),
10442|      0|                    target, stream);
10443|      0|          }
10444|       |
10445|       |          // Extension range [1000, 536870912)
10446|     17|          target = this_._impl_._extensions_._InternalSerialize(
10447|     17|              internal_default_instance(), 1000, 536870912, target, stream);
10448|     17|          if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  ------------------
  |  |  365|     17|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 17]
  |  |  |  Branch (365:54): [Folded, False: 17]
  |  |  |  Branch (365:63): [True: 0, False: 17]
  |  |  ------------------
  ------------------
10449|      0|            target =
10450|      0|                ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
10451|      0|                    this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
10452|      0|          }
10453|       |          // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions)
10454|     17|          return target;
10455|     17|        }
_ZNK6google8protobuf12FieldOptions12ByteSizeLongEv:
10461|     17|        ::size_t FieldOptions::ByteSizeLong() const {
10462|     17|          const FieldOptions& this_ = *this;
10463|     17|#endif  // PROTOBUF_CUSTOM_VTABLE
10464|       |          // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions)
10465|     17|          ::size_t total_size = 0;
10466|     17|          total_size += this_._impl_._extensions_.ByteSize();
10467|       |
10468|     17|          ::uint32_t cached_has_bits = 0;
10469|       |          // Prevent compiler warnings about cached_has_bits being unused
10470|     17|          (void)cached_has_bits;
10471|       |
10472|     17|          ::_pbi::Prefetch5LinesFrom7Lines(&this_);
10473|     17|           {
10474|       |            // repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
10475|     17|            {
10476|     17|              std::size_t data_size =
10477|     17|                  ::_pbi::WireFormatLite::EnumSize(this_._internal_targets());
10478|     17|              std::size_t tag_size = std::size_t{2} *
10479|     17|                  ::_pbi::FromIntSize(this_._internal_targets_size());
10480|     17|              total_size += data_size + tag_size;
10481|     17|            }
10482|       |            // repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
10483|     17|            {
10484|     17|              total_size += 2UL * this_._internal_edition_defaults_size();
10485|     18|              for (const auto& msg : this_._internal_edition_defaults()) {
  ------------------
  |  Branch (10485:36): [True: 18, False: 17]
  ------------------
10486|     18|                total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
10487|     18|              }
10488|     17|            }
10489|       |            // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
10490|     17|            {
10491|     17|              total_size += 2UL * this_._internal_uninterpreted_option_size();
10492|     17|              for (const auto& msg : this_._internal_uninterpreted_option()) {
  ------------------
  |  Branch (10492:36): [True: 0, False: 17]
  ------------------
10493|      0|                total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
10494|      0|              }
10495|     17|            }
10496|     17|          }
10497|     17|          cached_has_bits = this_._impl_._has_bits_[0];
10498|     17|          if (cached_has_bits & 0x000000ffu) {
  ------------------
  |  Branch (10498:15): [True: 15, False: 2]
  ------------------
10499|       |            // optional .google.protobuf.FeatureSet features = 21;
10500|     15|            if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (10500:17): [True: 0, False: 15]
  ------------------
10501|      0|              total_size += 2 +
10502|      0|                            ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_);
10503|      0|            }
10504|       |            // optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
10505|     15|            if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (10505:17): [True: 9, False: 6]
  ------------------
10506|      9|              total_size += 2 +
10507|      9|                            ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_support_);
10508|      9|            }
10509|       |            // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
10510|     15|            if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (10510:17): [True: 0, False: 15]
  ------------------
10511|      0|              total_size += 1 +
10512|      0|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_ctype());
10513|      0|            }
10514|       |            // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
10515|     15|            if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (10515:17): [True: 0, False: 15]
  ------------------
10516|      0|              total_size += 1 +
10517|      0|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_jstype());
10518|      0|            }
10519|       |            // optional bool packed = 2;
10520|     15|            if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (10520:17): [True: 3, False: 12]
  ------------------
10521|      3|              total_size += 2;
10522|      3|            }
10523|       |            // optional bool lazy = 5 [default = false];
10524|     15|            if (cached_has_bits & 0x00000020u) {
  ------------------
  |  Branch (10524:17): [True: 0, False: 15]
  ------------------
10525|      0|              total_size += 2;
10526|      0|            }
10527|       |            // optional bool unverified_lazy = 15 [default = false];
10528|     15|            if (cached_has_bits & 0x00000040u) {
  ------------------
  |  Branch (10528:17): [True: 0, False: 15]
  ------------------
10529|      0|              total_size += 2;
10530|      0|            }
10531|       |            // optional bool deprecated = 3 [default = false];
10532|     15|            if (cached_has_bits & 0x00000080u) {
  ------------------
  |  Branch (10532:17): [True: 3, False: 12]
  ------------------
10533|      3|              total_size += 2;
10534|      3|            }
10535|     15|          }
10536|     17|          if (cached_has_bits & 0x00000700u) {
  ------------------
  |  Branch (10536:15): [True: 11, False: 6]
  ------------------
10537|       |            // optional bool weak = 10 [default = false];
10538|     11|            if (cached_has_bits & 0x00000100u) {
  ------------------
  |  Branch (10538:17): [True: 0, False: 11]
  ------------------
10539|      0|              total_size += 2;
10540|      0|            }
10541|       |            // optional bool debug_redact = 16 [default = false];
10542|     11|            if (cached_has_bits & 0x00000200u) {
  ------------------
  |  Branch (10542:17): [True: 0, False: 11]
  ------------------
10543|      0|              total_size += 3;
10544|      0|            }
10545|       |            // optional .google.protobuf.FieldOptions.OptionRetention retention = 17;
10546|     11|            if (cached_has_bits & 0x00000400u) {
  ------------------
  |  Branch (10546:17): [True: 11, False: 0]
  ------------------
10547|     11|              total_size += 2 +
10548|     11|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_retention());
10549|     11|            }
10550|     11|          }
10551|     17|          return this_.MaybeComputeUnknownFieldsSize(total_size,
10552|     17|                                                     &this_._impl_._cached_size_);
10553|     17|        }
_ZN6google8protobuf12FieldOptions17IsInitializedImplERKNS0_11MessageLiteE:
10632|     68|    const MessageLite& msg) {
10633|     68|  auto& this_ = static_cast<const FieldOptions&>(msg);
10634|     68|  if (!this_._impl_._extensions_.IsInitialized(
  ------------------
  |  Branch (10634:7): [True: 0, False: 68]
  ------------------
10635|     68|          internal_default_instance())) {
10636|      0|    return false;
10637|      0|  }
10638|     68|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_uninterpreted_option()))
  ------------------
  |  Branch (10638:7): [True: 0, False: 68]
  ------------------
10639|      0|    return false;
10640|     68|  if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
  ------------------
  |  Branch (10640:7): [True: 0, False: 68]
  ------------------
10641|      0|    if (!this_._impl_.features_->IsInitialized()) return false;
  ------------------
  |  Branch (10641:9): [True: 0, False: 0]
  ------------------
10642|      0|  }
10643|     68|  return true;
10644|     68|}
_ZNK6google8protobuf12OneofOptions12GetClassDataEv:
10781|      1|const ::google::protobuf::internal::ClassData* OneofOptions::GetClassData() const {
10782|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
10783|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
10784|      1|  return _class_data_.base();
10785|      1|}
_ZNK6google8protobuf11EnumOptions12GetClassDataEv:
11119|      1|const ::google::protobuf::internal::ClassData* EnumOptions::GetClassData() const {
11120|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
11121|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
11122|      1|  return _class_data_.base();
11123|      1|}
_ZNK6google8protobuf16EnumValueOptions12GetClassDataEv:
11530|      1|const ::google::protobuf::internal::ClassData* EnumValueOptions::GetClassData() const {
11531|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
11532|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
11533|      1|  return _class_data_.base();
11534|      1|}
_ZNK6google8protobuf14ServiceOptions12GetClassDataEv:
11947|      1|const ::google::protobuf::internal::ClassData* ServiceOptions::GetClassData() const {
11948|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
11949|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
11950|      1|  return _class_data_.base();
11951|      1|}
_ZNK6google8protobuf13MethodOptions12GetClassDataEv:
12313|      1|const ::google::protobuf::internal::ClassData* MethodOptions::GetClassData() const {
12314|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
12315|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
12316|      1|  return _class_data_.base();
12317|      1|}
_ZNK6google8protobuf28UninterpretedOption_NamePart12GetClassDataEv:
12678|      1|const ::google::protobuf::internal::ClassData* UninterpretedOption_NamePart::GetClassData() const {
12679|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
12680|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
12681|      1|  return _class_data_.base();
12682|      1|}
_ZNK6google8protobuf19UninterpretedOption12GetClassDataEv:
12988|      1|const ::google::protobuf::internal::ClassData* UninterpretedOption::GetClassData() const {
12989|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
12990|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
12991|      1|  return _class_data_.base();
12992|      1|}
_ZN6google8protobuf10FeatureSetC2EPNS0_5ArenaE:
13320|    227|    : ::google::protobuf::Message(arena) {
13321|    227|#endif  // PROTOBUF_CUSTOM_VTABLE
13322|    227|  SharedCtor(arena);
13323|       |  // @@protoc_insertion_point(arena_constructor:google.protobuf.FeatureSet)
13324|    227|}
_ZN6google8protobuf10FeatureSetC2EPNS0_5ArenaERKS1_:
13338|    621|    : ::google::protobuf::Message(arena) {
13339|    621|#endif  // PROTOBUF_CUSTOM_VTABLE
13340|    621|  FeatureSet* const _this = this;
13341|    621|  (void)_this;
13342|    621|  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
13343|    621|      from._internal_metadata_);
13344|    621|  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
13345|    621|  _impl_._extensions_.MergeFrom(this, from._impl_._extensions_);
13346|    621|  ::memcpy(reinterpret_cast<char *>(&_impl_) +
13347|    621|               offsetof(Impl_, field_presence_),
13348|    621|           reinterpret_cast<const char *>(&from._impl_) +
13349|    621|               offsetof(Impl_, field_presence_),
13350|    621|           offsetof(Impl_, json_format_) -
13351|    621|               offsetof(Impl_, field_presence_) +
13352|    621|               sizeof(Impl_::json_format_));
13353|       |
13354|       |  // @@protoc_insertion_point(copy_constructor:google.protobuf.FeatureSet)
13355|    621|}
_ZN6google8protobuf10FeatureSetD2Ev:
13371|    844|FeatureSet::~FeatureSet() {
13372|       |  // @@protoc_insertion_point(destructor:google.protobuf.FeatureSet)
13373|    844|  SharedDtor(*this);
13374|    844|}
_ZNK6google8protobuf10FeatureSet12GetClassDataEv:
13423|      1|const ::google::protobuf::internal::ClassData* FeatureSet::GetClassData() const {
13424|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
13425|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
13426|      1|  return _class_data_.base();
13427|      1|}
_ZNK6google8protobuf10FeatureSet18_InternalSerializeEPhPNS0_2io19EpsCopyOutputStreamE:
13524|    207|            ::google::protobuf::io::EpsCopyOutputStream* stream) const {
13525|    207|          const FeatureSet& this_ = *this;
13526|    207|#endif  // PROTOBUF_CUSTOM_VTABLE
13527|       |          // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FeatureSet)
13528|    207|          ::uint32_t cached_has_bits = 0;
13529|    207|          (void)cached_has_bits;
13530|       |
13531|    207|          cached_has_bits = this_._impl_._has_bits_[0];
13532|       |          // optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
13533|    207|          if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (13533:15): [True: 207, False: 0]
  ------------------
13534|    207|            target = stream->EnsureSpace(target);
13535|    207|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
13536|    207|                1, this_._internal_field_presence(), target);
13537|    207|          }
13538|       |
13539|       |          // optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
13540|    207|          if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (13540:15): [True: 207, False: 0]
  ------------------
13541|    207|            target = stream->EnsureSpace(target);
13542|    207|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
13543|    207|                2, this_._internal_enum_type(), target);
13544|    207|          }
13545|       |
13546|       |          // optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
13547|    207|          if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (13547:15): [True: 207, False: 0]
  ------------------
13548|    207|            target = stream->EnsureSpace(target);
13549|    207|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
13550|    207|                3, this_._internal_repeated_field_encoding(), target);
13551|    207|          }
13552|       |
13553|       |          // optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
13554|    207|          if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (13554:15): [True: 207, False: 0]
  ------------------
13555|    207|            target = stream->EnsureSpace(target);
13556|    207|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
13557|    207|                4, this_._internal_utf8_validation(), target);
13558|    207|          }
13559|       |
13560|       |          // optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
13561|    207|          if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (13561:15): [True: 207, False: 0]
  ------------------
13562|    207|            target = stream->EnsureSpace(target);
13563|    207|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
13564|    207|                5, this_._internal_message_encoding(), target);
13565|    207|          }
13566|       |
13567|       |          // optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
13568|    207|          if (cached_has_bits & 0x00000020u) {
  ------------------
  |  Branch (13568:15): [True: 207, False: 0]
  ------------------
13569|    207|            target = stream->EnsureSpace(target);
13570|    207|            target = ::_pbi::WireFormatLite::WriteEnumToArray(
13571|    207|                6, this_._internal_json_format(), target);
13572|    207|          }
13573|       |
13574|       |          // Extension range [1000, 10001)
13575|    207|          target = this_._impl_._extensions_._InternalSerialize(
13576|    207|              internal_default_instance(), 1000, 10001, target, stream);
13577|    207|          if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  ------------------
  |  |  365|    207|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 207]
  |  |  |  Branch (365:54): [Folded, False: 207]
  |  |  |  Branch (365:63): [True: 0, False: 207]
  |  |  ------------------
  ------------------
13578|      0|            target =
13579|      0|                ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
13580|      0|                    this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
13581|      0|          }
13582|       |          // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FeatureSet)
13583|    207|          return target;
13584|    207|        }
_ZNK6google8protobuf10FeatureSet12ByteSizeLongEv:
13590|    601|        ::size_t FeatureSet::ByteSizeLong() const {
13591|    601|          const FeatureSet& this_ = *this;
13592|    601|#endif  // PROTOBUF_CUSTOM_VTABLE
13593|       |          // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FeatureSet)
13594|    601|          ::size_t total_size = 0;
13595|    601|          total_size += this_._impl_._extensions_.ByteSize();
13596|       |
13597|    601|          ::uint32_t cached_has_bits = 0;
13598|       |          // Prevent compiler warnings about cached_has_bits being unused
13599|    601|          (void)cached_has_bits;
13600|       |
13601|    601|          ::_pbi::Prefetch5LinesFrom7Lines(&this_);
13602|    601|          cached_has_bits = this_._impl_._has_bits_[0];
13603|    601|          if (cached_has_bits & 0x0000003fu) {
  ------------------
  |  Branch (13603:15): [True: 212, False: 389]
  ------------------
13604|       |            // optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
13605|    212|            if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (13605:17): [True: 209, False: 3]
  ------------------
13606|    209|              total_size += 1 +
13607|    209|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_field_presence());
13608|    209|            }
13609|       |            // optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
13610|    212|            if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (13610:17): [True: 207, False: 5]
  ------------------
13611|    207|              total_size += 1 +
13612|    207|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_enum_type());
13613|    207|            }
13614|       |            // optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
13615|    212|            if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (13615:17): [True: 210, False: 2]
  ------------------
13616|    210|              total_size += 1 +
13617|    210|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_repeated_field_encoding());
13618|    210|            }
13619|       |            // optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
13620|    212|            if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (13620:17): [True: 207, False: 5]
  ------------------
13621|    207|              total_size += 1 +
13622|    207|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_utf8_validation());
13623|    207|            }
13624|       |            // optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {
13625|    212|            if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (13625:17): [True: 207, False: 5]
  ------------------
13626|    207|              total_size += 1 +
13627|    207|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_message_encoding());
13628|    207|            }
13629|       |            // optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {
13630|    212|            if (cached_has_bits & 0x00000020u) {
  ------------------
  |  Branch (13630:17): [True: 207, False: 5]
  ------------------
13631|    207|              total_size += 1 +
13632|    207|                            ::_pbi::WireFormatLite::EnumSize(this_._internal_json_format());
13633|    207|            }
13634|    212|          }
13635|    601|          return this_.MaybeComputeUnknownFieldsSize(total_size,
13636|    601|                                                     &this_._impl_._cached_size_);
13637|    601|        }
_ZN6google8protobuf10FeatureSet9MergeImplERNS0_11MessageLiteERKS2_:
13639|    434|void FeatureSet::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
13640|    434|  auto* const _this = static_cast<FeatureSet*>(&to_msg);
13641|    434|  auto& from = static_cast<const FeatureSet&>(from_msg);
13642|       |  // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FeatureSet)
13643|    434|  ABSL_DCHECK_NE(&from, _this);
  ------------------
  |  |   76|    434|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|    434|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    434|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 434]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    434|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
13644|    434|  ::uint32_t cached_has_bits = 0;
13645|    434|  (void) cached_has_bits;
13646|       |
13647|    434|  cached_has_bits = from._impl_._has_bits_[0];
13648|    434|  if (cached_has_bits & 0x0000003fu) {
  ------------------
  |  Branch (13648:7): [True: 216, False: 218]
  ------------------
13649|    216|    if (cached_has_bits & 0x00000001u) {
  ------------------
  |  Branch (13649:9): [True: 213, False: 3]
  ------------------
13650|    213|      _this->_impl_.field_presence_ = from._impl_.field_presence_;
13651|    213|    }
13652|    216|    if (cached_has_bits & 0x00000002u) {
  ------------------
  |  Branch (13652:9): [True: 211, False: 5]
  ------------------
13653|    211|      _this->_impl_.enum_type_ = from._impl_.enum_type_;
13654|    211|    }
13655|    216|    if (cached_has_bits & 0x00000004u) {
  ------------------
  |  Branch (13655:9): [True: 214, False: 2]
  ------------------
13656|    214|      _this->_impl_.repeated_field_encoding_ = from._impl_.repeated_field_encoding_;
13657|    214|    }
13658|    216|    if (cached_has_bits & 0x00000008u) {
  ------------------
  |  Branch (13658:9): [True: 211, False: 5]
  ------------------
13659|    211|      _this->_impl_.utf8_validation_ = from._impl_.utf8_validation_;
13660|    211|    }
13661|    216|    if (cached_has_bits & 0x00000010u) {
  ------------------
  |  Branch (13661:9): [True: 211, False: 5]
  ------------------
13662|    211|      _this->_impl_.message_encoding_ = from._impl_.message_encoding_;
13663|    211|    }
13664|    216|    if (cached_has_bits & 0x00000020u) {
  ------------------
  |  Branch (13664:9): [True: 211, False: 5]
  ------------------
13665|    211|      _this->_impl_.json_format_ = from._impl_.json_format_;
13666|    211|    }
13667|    216|  }
13668|    434|  _this->_impl_._has_bits_[0] |= cached_has_bits;
13669|    434|  _this->_impl_._extensions_.MergeFrom(internal_default_instance(), from._impl_._extensions_);
13670|    434|  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
13671|    434|}
_ZN6google8protobuf10FeatureSet17IsInitializedImplERKNS0_11MessageLiteE:
13681|      8|    const MessageLite& msg) {
13682|      8|  auto& this_ = static_cast<const FeatureSet&>(msg);
13683|      8|  if (!this_._impl_._extensions_.IsInitialized(
  ------------------
  |  Branch (13683:7): [True: 0, False: 8]
  ------------------
13684|      8|          internal_default_instance())) {
13685|      0|    return false;
13686|      0|  }
13687|      8|  return true;
13688|      8|}
_ZN6google8protobuf10FeatureSet12InternalSwapEPS1_:
13690|    227|void FeatureSet::InternalSwap(FeatureSet* PROTOBUF_RESTRICT other) {
13691|    227|  using std::swap;
13692|    227|  _impl_._extensions_.InternalSwap(&other->_impl_._extensions_);
13693|    227|  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
13694|    227|  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
13695|    227|  ::google::protobuf::internal::memswap<
13696|    227|      PROTOBUF_FIELD_OFFSET(FeatureSet, _impl_.json_format_)
13697|    227|      + sizeof(FeatureSet::_impl_.json_format_)
13698|    227|      - PROTOBUF_FIELD_OFFSET(FeatureSet, _impl_.field_presence_)>(
13699|    227|          reinterpret_cast<char*>(&_impl_.field_presence_),
13700|    227|          reinterpret_cast<char*>(&other->_impl_.field_presence_));
13701|    227|}
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefaultC2EPNS0_5ArenaE:
13720|      4|    : ::google::protobuf::Message(arena) {
13721|      4|#endif  // PROTOBUF_CUSTOM_VTABLE
13722|      4|  SharedCtor(arena);
13723|       |  // @@protoc_insertion_point(arena_constructor:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)
13724|      4|}
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefaultD2Ev:
13769|      4|FeatureSetDefaults_FeatureSetEditionDefault::~FeatureSetDefaults_FeatureSetEditionDefault() {
13770|       |  // @@protoc_insertion_point(destructor:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)
13771|      4|  SharedDtor(*this);
13772|      4|}
_ZNK6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault12GetClassDataEv:
13812|      1|const ::google::protobuf::internal::ClassData* FeatureSetDefaults_FeatureSetEditionDefault::GetClassData() const {
13813|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
13814|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
13815|      1|  return _class_data_.base();
13816|      1|}
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault17IsInitializedImplERKNS0_11MessageLiteE:
14016|      4|    const MessageLite& msg) {
14017|      4|  auto& this_ = static_cast<const FeatureSetDefaults_FeatureSetEditionDefault&>(msg);
14018|      4|  if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
  ------------------
  |  Branch (14018:7): [True: 4, False: 0]
  ------------------
14019|      4|    if (!this_._impl_.overridable_features_->IsInitialized()) return false;
  ------------------
  |  Branch (14019:9): [True: 0, False: 4]
  ------------------
14020|      4|  }
14021|      4|  if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
  ------------------
  |  Branch (14021:7): [True: 4, False: 0]
  ------------------
14022|      4|    if (!this_._impl_.fixed_features_->IsInitialized()) return false;
  ------------------
  |  Branch (14022:9): [True: 0, False: 4]
  ------------------
14023|      4|  }
14024|      4|  return true;
14025|      4|}
_ZN6google8protobuf18FeatureSetDefaultsC2EPNS0_5ArenaE:
14056|      1|    : ::google::protobuf::Message(arena) {
14057|      1|#endif  // PROTOBUF_CUSTOM_VTABLE
14058|      1|  SharedCtor(arena);
14059|       |  // @@protoc_insertion_point(arena_constructor:google.protobuf.FeatureSetDefaults)
14060|      1|}
_ZNK6google8protobuf18FeatureSetDefaults12GetClassDataEv:
14159|      3|const ::google::protobuf::internal::ClassData* FeatureSetDefaults::GetClassData() const {
14160|      3|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
14161|      3|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
14162|      3|  return _class_data_.base();
14163|      3|}
_ZN6google8protobuf18FeatureSetDefaults5ClearEv:
14208|      1|PROTOBUF_NOINLINE void FeatureSetDefaults::Clear() {
14209|       |// @@protoc_insertion_point(message_clear_start:google.protobuf.FeatureSetDefaults)
14210|      1|  ::google::protobuf::internal::TSanWrite(&_impl_);
14211|      1|  ::uint32_t cached_has_bits = 0;
14212|       |  // Prevent compiler warnings about cached_has_bits being unused
14213|      1|  (void) cached_has_bits;
14214|       |
14215|      1|  _impl_.defaults_.Clear();
14216|      1|  cached_has_bits = _impl_._has_bits_[0];
14217|      1|  if (cached_has_bits & 0x00000003u) {
  ------------------
  |  Branch (14217:7): [True: 0, False: 1]
  ------------------
14218|      0|    ::memset(&_impl_.minimum_edition_, 0, static_cast<::size_t>(
14219|      0|        reinterpret_cast<char*>(&_impl_.maximum_edition_) -
14220|      0|        reinterpret_cast<char*>(&_impl_.minimum_edition_)) + sizeof(_impl_.maximum_edition_));
14221|      0|  }
14222|      1|  _impl_._has_bits_.Clear();
14223|      1|  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
14224|      1|}
_ZN6google8protobuf18FeatureSetDefaults17IsInitializedImplERKNS0_11MessageLiteE:
14348|      1|    const MessageLite& msg) {
14349|      1|  auto& this_ = static_cast<const FeatureSetDefaults&>(msg);
14350|      1|  if (!::google::protobuf::internal::AllAreInitialized(this_._internal_defaults()))
  ------------------
  |  Branch (14350:7): [True: 0, False: 1]
  ------------------
14351|      0|    return false;
14352|      1|  return true;
14353|      1|}
_ZNK6google8protobuf23SourceCodeInfo_Location12GetClassDataEv:
14497|      1|const ::google::protobuf::internal::ClassData* SourceCodeInfo_Location::GetClassData() const {
14498|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
14499|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
14500|      1|  return _class_data_.base();
14501|      1|}
_ZNK6google8protobuf14SourceCodeInfo12GetClassDataEv:
14867|      1|const ::google::protobuf::internal::ClassData* SourceCodeInfo::GetClassData() const {
14868|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
14869|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
14870|      1|  return _class_data_.base();
14871|      1|}
_ZNK6google8protobuf28GeneratedCodeInfo_Annotation12GetClassDataEv:
15147|      1|const ::google::protobuf::internal::ClassData* GeneratedCodeInfo_Annotation::GetClassData() const {
15148|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
15149|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
15150|      1|  return _class_data_.base();
15151|      1|}
_ZNK6google8protobuf17GeneratedCodeInfo12GetClassDataEv:
15504|      1|const ::google::protobuf::internal::ClassData* GeneratedCodeInfo::GetClassData() const {
15505|      1|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
15506|      1|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
15507|      1|  return _class_data_.base();
15508|      1|}
_ZN6google8protobuf19FileDescriptorProto10SharedCtorEPNS0_5ArenaE:
 2942|     10|inline void FileDescriptorProto::SharedCtor(::_pb::Arena* arena) {
 2943|     10|  new (&_impl_) Impl_(internal_visibility(), arena);
 2944|     10|  ::memset(reinterpret_cast<char *>(&_impl_) +
 2945|     10|               offsetof(Impl_, options_),
 2946|     10|           0,
 2947|     10|           offsetof(Impl_, edition_) -
 2948|       |               offsetof(Impl_, options_) +
 2949|     10|               sizeof(Impl_::edition_));
 2950|     10|}
_ZN6google8protobuf19FileDescriptorProto5Impl_C2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
 2930|     10|      : _cached_size_{0},
 2931|     10|        dependency_{visibility, arena},
 2932|     10|        message_type_{visibility, arena},
 2933|     10|        enum_type_{visibility, arena},
 2934|     10|        service_{visibility, arena},
 2935|     10|        extension_{visibility, arena},
 2936|     10|        public_dependency_{visibility, arena},
 2937|     10|        weak_dependency_{visibility, arena},
 2938|     10|        name_(arena),
 2939|     10|        package_(arena),
 2940|     10|        syntax_(arena) {}
_ZN6google8protobuf19FileDescriptorProto10SharedDtorERNS0_11MessageLiteE:
 2955|      6|inline void FileDescriptorProto::SharedDtor(MessageLite& self) {
 2956|      6|  FileDescriptorProto& this_ = static_cast<FileDescriptorProto&>(self);
 2957|      6|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 2958|      6|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|      6|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      6|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     12|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      6|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     12|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     12|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 6, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      6|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 6]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      6|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 6, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     12|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     12|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2959|      6|  this_._impl_.name_.Destroy();
 2960|      6|  this_._impl_.package_.Destroy();
 2961|      6|  this_._impl_.syntax_.Destroy();
 2962|      6|  delete this_._impl_.options_;
 2963|      6|  delete this_._impl_.source_code_info_;
 2964|      6|  this_._impl_.~Impl_();
 2965|      6|}
_ZN6google8protobuf30DescriptorProto_ExtensionRange10SharedDtorERNS0_11MessageLiteE:
 3621|     14|inline void DescriptorProto_ExtensionRange::SharedDtor(MessageLite& self) {
 3622|     14|  DescriptorProto_ExtensionRange& this_ = static_cast<DescriptorProto_ExtensionRange&>(self);
 3623|     14|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 3624|     14|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|     14|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     14|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     28|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     14|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     28|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     28|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 14, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     14|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 14]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     14|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 14, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     28|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     28|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3625|     14|  delete this_._impl_.options_;
 3626|     14|  this_._impl_.~Impl_();
 3627|     14|}
_ZN6google8protobuf29DescriptorProto_ReservedRange10SharedDtorERNS0_11MessageLiteE:
 3918|     14|inline void DescriptorProto_ReservedRange::SharedDtor(MessageLite& self) {
 3919|     14|  DescriptorProto_ReservedRange& this_ = static_cast<DescriptorProto_ReservedRange&>(self);
 3920|     14|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 3921|     14|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|     14|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     14|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     28|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     14|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     28|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     28|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 14, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     14|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 14]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     14|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 14, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     28|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     28|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3922|     14|  this_._impl_.~Impl_();
 3923|     14|}
_ZN6google8protobuf15DescriptorProto10SharedDtorERNS0_11MessageLiteE:
 4207|     48|inline void DescriptorProto::SharedDtor(MessageLite& self) {
 4208|     48|  DescriptorProto& this_ = static_cast<DescriptorProto&>(self);
 4209|     48|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 4210|     48|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|     48|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     48|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     96|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     48|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     96|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     96|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 48, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     48|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 48]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     48|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 48, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     96|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     96|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4211|     48|  this_._impl_.name_.Destroy();
 4212|     48|  delete this_._impl_.options_;
 4213|     48|  this_._impl_.~Impl_();
 4214|     48|}
_ZN6google8protobuf20FieldDescriptorProto10SharedDtorERNS0_11MessageLiteE:
 5578|    232|inline void FieldDescriptorProto::SharedDtor(MessageLite& self) {
 5579|    232|  FieldDescriptorProto& this_ = static_cast<FieldDescriptorProto&>(self);
 5580|    232|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 5581|    232|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|    232|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    232|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|    464|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    232|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    464|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    464|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 232, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    232|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 232]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    232|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 232, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    464|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    464|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5582|    232|  this_._impl_.name_.Destroy();
 5583|    232|  this_._impl_.extendee_.Destroy();
 5584|    232|  this_._impl_.type_name_.Destroy();
 5585|    232|  this_._impl_.default_value_.Destroy();
 5586|    232|  this_._impl_.json_name_.Destroy();
 5587|    232|  delete this_._impl_.options_;
 5588|    232|  this_._impl_.~Impl_();
 5589|    232|}
_ZN6google8protobuf20OneofDescriptorProto10SharedDtorERNS0_11MessageLiteE:
 6114|      2|inline void OneofDescriptorProto::SharedDtor(MessageLite& self) {
 6115|      2|  OneofDescriptorProto& this_ = static_cast<OneofDescriptorProto&>(self);
 6116|      2|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 6117|      2|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|      2|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      2|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      4|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      2|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      4|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      4|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      2|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      2|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 2, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      4|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      4|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6118|      2|  this_._impl_.name_.Destroy();
 6119|      2|  delete this_._impl_.options_;
 6120|      2|  this_._impl_.~Impl_();
 6121|      2|}
_ZN6google8protobuf37EnumDescriptorProto_EnumReservedRange10SharedDtorERNS0_11MessageLiteE:
 6392|      1|inline void EnumDescriptorProto_EnumReservedRange::SharedDtor(MessageLite& self) {
 6393|      1|  EnumDescriptorProto_EnumReservedRange& this_ = static_cast<EnumDescriptorProto_EnumReservedRange&>(self);
 6394|      1|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 6395|      1|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|      1|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      1|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      2|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      1|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      2|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      2|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 1, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      1|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 1]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      1|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 1, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      2|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      2|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6396|      1|  this_._impl_.~Impl_();
 6397|      1|}
_ZN6google8protobuf19EnumDescriptorProto10SharedDtorERNS0_11MessageLiteE:
 6671|     22|inline void EnumDescriptorProto::SharedDtor(MessageLite& self) {
 6672|     22|  EnumDescriptorProto& this_ = static_cast<EnumDescriptorProto&>(self);
 6673|     22|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 6674|     22|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|     22|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     22|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     44|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     22|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     44|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     44|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 22, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     22|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 22]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     22|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 22, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     44|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     44|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 6675|     22|  this_._impl_.name_.Destroy();
 6676|     22|  delete this_._impl_.options_;
 6677|     22|  this_._impl_.~Impl_();
 6678|     22|}
_ZN6google8protobuf24EnumValueDescriptorProto10SharedDtorERNS0_11MessageLiteE:
 7085|    136|inline void EnumValueDescriptorProto::SharedDtor(MessageLite& self) {
 7086|    136|  EnumValueDescriptorProto& this_ = static_cast<EnumValueDescriptorProto&>(self);
 7087|    136|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 7088|    136|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|    136|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    136|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|    272|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    136|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    272|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    272|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 136, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    136|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 136]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    136|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 136, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    272|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    272|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 7089|    136|  this_._impl_.name_.Destroy();
 7090|    136|  delete this_._impl_.options_;
 7091|    136|  this_._impl_.~Impl_();
 7092|    136|}
_ZN6google8protobuf11FileOptions10SharedCtorEPNS0_5ArenaE:
 8195|      2|inline void FileOptions::SharedCtor(::_pb::Arena* arena) {
 8196|      2|  new (&_impl_) Impl_(internal_visibility(), arena);
 8197|      2|  ::memset(reinterpret_cast<char *>(&_impl_) +
 8198|      2|               offsetof(Impl_, features_),
 8199|      2|           0,
 8200|      2|           offsetof(Impl_, deprecated_) -
 8201|       |               offsetof(Impl_, features_) +
 8202|      2|               sizeof(Impl_::deprecated_));
 8203|      2|}
_ZN6google8protobuf11FileOptions5Impl_C2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
 8179|      2|      : _extensions_{visibility, arena},
 8180|      2|        _cached_size_{0},
 8181|      2|        uninterpreted_option_{visibility, arena},
 8182|      2|        java_package_(arena),
 8183|      2|        java_outer_classname_(arena),
 8184|      2|        go_package_(arena),
 8185|      2|        objc_class_prefix_(arena),
 8186|      2|        csharp_namespace_(arena),
 8187|      2|        swift_prefix_(arena),
 8188|      2|        php_class_prefix_(arena),
 8189|      2|        php_namespace_(arena),
 8190|      2|        php_metadata_namespace_(arena),
 8191|      2|        ruby_package_(arena),
 8192|      2|        optimize_for_{static_cast< ::google::protobuf::FileOptions_OptimizeMode >(1)},
 8193|      2|        cc_enable_arenas_{true} {}
_ZN6google8protobuf11FileOptions10SharedDtorERNS0_11MessageLiteE:
 8208|      3|inline void FileOptions::SharedDtor(MessageLite& self) {
 8209|      3|  FileOptions& this_ = static_cast<FileOptions&>(self);
 8210|      3|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 8211|      3|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|      3|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      3|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      6|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      3|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      6|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      6|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 3, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      3|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 3]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      3|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 3, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      6|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      6|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 8212|      3|  this_._impl_.java_package_.Destroy();
 8213|      3|  this_._impl_.java_outer_classname_.Destroy();
 8214|      3|  this_._impl_.go_package_.Destroy();
 8215|      3|  this_._impl_.objc_class_prefix_.Destroy();
 8216|      3|  this_._impl_.csharp_namespace_.Destroy();
 8217|      3|  this_._impl_.swift_prefix_.Destroy();
 8218|      3|  this_._impl_.php_class_prefix_.Destroy();
 8219|      3|  this_._impl_.php_namespace_.Destroy();
 8220|      3|  this_._impl_.php_metadata_namespace_.Destroy();
 8221|      3|  this_._impl_.ruby_package_.Destroy();
 8222|      3|  delete this_._impl_.features_;
 8223|      3|  this_._impl_.~Impl_();
 8224|      3|}
_ZN6google8protobuf27FieldOptions_EditionDefault10SharedDtorERNS0_11MessageLiteE:
 9472|     18|inline void FieldOptions_EditionDefault::SharedDtor(MessageLite& self) {
 9473|     18|  FieldOptions_EditionDefault& this_ = static_cast<FieldOptions_EditionDefault&>(self);
 9474|     18|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 9475|     18|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|     18|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     18|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     36|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     18|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     36|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     36|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 18, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     18|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 18]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     18|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 18, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     36|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     36|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 9476|     18|  this_._impl_.value_.Destroy();
 9477|     18|  this_._impl_.~Impl_();
 9478|     18|}
_ZN6google8protobuf27FieldOptions_FeatureSupport10SharedDtorERNS0_11MessageLiteE:
 9755|      9|inline void FieldOptions_FeatureSupport::SharedDtor(MessageLite& self) {
 9756|      9|  FieldOptions_FeatureSupport& this_ = static_cast<FieldOptions_FeatureSupport&>(self);
 9757|      9|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
 9758|      9|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|      9|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      9|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     18|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      9|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     18|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     18|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 9, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      9|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 9]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      9|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 9, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     18|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     18|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 9759|      9|  this_._impl_.deprecation_warning_.Destroy();
 9760|      9|  this_._impl_.~Impl_();
 9761|      9|}
_ZN6google8protobuf12FieldOptions10SharedCtorEPNS0_5ArenaE:
10092|     17|inline void FieldOptions::SharedCtor(::_pb::Arena* arena) {
10093|     17|  new (&_impl_) Impl_(internal_visibility(), arena);
10094|     17|  ::memset(reinterpret_cast<char *>(&_impl_) +
10095|     17|               offsetof(Impl_, features_),
10096|     17|           0,
10097|     17|           offsetof(Impl_, retention_) -
10098|       |               offsetof(Impl_, features_) +
10099|     17|               sizeof(Impl_::retention_));
10100|     17|}
_ZN6google8protobuf12FieldOptions5Impl_C2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
10086|     17|      : _extensions_{visibility, arena},
10087|     17|        _cached_size_{0},
10088|     17|        targets_{visibility, arena},
10089|     17|        edition_defaults_{visibility, arena},
10090|     17|        uninterpreted_option_{visibility, arena} {}
_ZN6google8protobuf12FieldOptions10SharedDtorERNS0_11MessageLiteE:
10105|     17|inline void FieldOptions::SharedDtor(MessageLite& self) {
10106|     17|  FieldOptions& this_ = static_cast<FieldOptions&>(self);
10107|     17|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
10108|     17|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|     17|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     17|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     34|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     17|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     34|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     34|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 17, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     17|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 17]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     17|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 17, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     34|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     34|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
10109|     17|  delete this_._impl_.features_;
10110|     17|  delete this_._impl_.feature_support_;
10111|     17|  this_._impl_.~Impl_();
10112|     17|}
_ZN6google8protobuf10FeatureSet5Impl_C2ENS0_8internal18InternalVisibilityEPNS0_5ArenaERKS2_RKS1_:
13328|    621|      : _extensions_{visibility, arena},
13329|    621|        _has_bits_{from._has_bits_},
13330|    621|        _cached_size_{0} {}
_ZN6google8protobuf10FeatureSet10SharedCtorEPNS0_5ArenaE:
13362|    227|inline void FeatureSet::SharedCtor(::_pb::Arena* arena) {
13363|    227|  new (&_impl_) Impl_(internal_visibility(), arena);
13364|    227|  ::memset(reinterpret_cast<char *>(&_impl_) +
13365|    227|               offsetof(Impl_, field_presence_),
13366|    227|           0,
13367|    227|           offsetof(Impl_, json_format_) -
13368|       |               offsetof(Impl_, field_presence_) +
13369|    227|               sizeof(Impl_::json_format_));
13370|    227|}
_ZN6google8protobuf10FeatureSet5Impl_C2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
13359|    227|      : _extensions_{visibility, arena},
13360|    227|        _cached_size_{0} {}
_ZN6google8protobuf10FeatureSet10SharedDtorERNS0_11MessageLiteE:
13375|    844|inline void FeatureSet::SharedDtor(MessageLite& self) {
13376|    844|  FeatureSet& this_ = static_cast<FeatureSet&>(self);
13377|    844|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
13378|    844|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|    844|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    844|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  1.68k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    844|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  1.68k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  1.68k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 844, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    844|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 844]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    844|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 844, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  1.68k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  1.68k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
13379|    844|  this_._impl_.~Impl_();
13380|    844|}
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault10SharedCtorEPNS0_5ArenaE:
13760|      4|inline void FeatureSetDefaults_FeatureSetEditionDefault::SharedCtor(::_pb::Arena* arena) {
13761|      4|  new (&_impl_) Impl_(internal_visibility(), arena);
13762|      4|  ::memset(reinterpret_cast<char *>(&_impl_) +
13763|      4|               offsetof(Impl_, overridable_features_),
13764|      4|           0,
13765|      4|           offsetof(Impl_, edition_) -
13766|       |               offsetof(Impl_, overridable_features_) +
13767|      4|               sizeof(Impl_::edition_));
13768|      4|}
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault5Impl_C2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
13758|      4|      : _cached_size_{0} {}
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault10SharedDtorERNS0_11MessageLiteE:
13773|      4|inline void FeatureSetDefaults_FeatureSetEditionDefault::SharedDtor(MessageLite& self) {
13774|      4|  FeatureSetDefaults_FeatureSetEditionDefault& this_ = static_cast<FeatureSetDefaults_FeatureSetEditionDefault&>(self);
13775|      4|  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
13776|      4|  ABSL_DCHECK(this_.GetArena() == nullptr);
  ------------------
  |  |   47|      4|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      4|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
13777|      4|  delete this_._impl_.overridable_features_;
13778|      4|  delete this_._impl_.fixed_features_;
13779|      4|  this_._impl_.~Impl_();
13780|      4|}
_ZN6google8protobuf18FeatureSetDefaults10SharedCtorEPNS0_5ArenaE:
14097|      1|inline void FeatureSetDefaults::SharedCtor(::_pb::Arena* arena) {
14098|      1|  new (&_impl_) Impl_(internal_visibility(), arena);
14099|      1|  ::memset(reinterpret_cast<char *>(&_impl_) +
14100|      1|               offsetof(Impl_, minimum_edition_),
14101|      1|           0,
14102|      1|           offsetof(Impl_, maximum_edition_) -
14103|       |               offsetof(Impl_, minimum_edition_) +
14104|      1|               sizeof(Impl_::maximum_edition_));
14105|      1|}
_ZN6google8protobuf18FeatureSetDefaults5Impl_C2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
14094|      1|      : _cached_size_{0},
14095|      1|        defaults_{visibility, arena} {}

_ZNK6google8protobuf27FieldOptions_FeatureSupport13GetCachedSizeEv:
 1598|      9|  int GetCachedSize() const { return _impl_._cached_size_.Get(); }
_ZNK6google8protobuf27FieldOptions_EditionDefault13GetCachedSizeEv:
 1835|     18|  int GetCachedSize() const { return _impl_._cached_size_.Get(); }
_ZN6google8protobuf10FeatureSetC2ERKS1_:
 1948|    621|  inline FeatureSet(const FeatureSet& from) : FeatureSet(nullptr, from) {}
_ZN6google8protobuf10FeatureSetC2EOS1_:
 1950|    227|      : FeatureSet(nullptr, std::move(from)) {}
_ZN6google8protobuf10FeatureSetaSEOS1_:
 1955|    227|  inline FeatureSet& operator=(FeatureSet&& from) noexcept {
 1956|    227|    if (this == &from) return *this;
  ------------------
  |  Branch (1956:9): [True: 0, False: 227]
  ------------------
 1957|    227|    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
  ------------------
  |  Branch (1957:9): [True: 227, False: 0]
  ------------------
 1958|    227|      InternalSwap(&from);
 1959|    227|    } else {
 1960|      0|      CopyFrom(from);
 1961|      0|    }
 1962|    227|    return *this;
 1963|    227|  }
_ZN6google8protobuf10FeatureSet16default_instanceEv:
 1983|  1.97k|  static const FeatureSet& default_instance() {
 1984|  1.97k|    return *internal_default_instance();
 1985|  1.97k|  }
_ZN6google8protobuf10FeatureSet25internal_default_instanceEv:
 1986|  2.62k|  static inline const FeatureSet* internal_default_instance() {
 1987|  2.62k|    return reinterpret_cast<const FeatureSet*>(
 1988|  2.62k|        &_FeatureSet_default_instance_);
 1989|  2.62k|  }
_ZN6google8protobuf10FeatureSet9MergeFromERKS1_:
 2014|    434|  void MergeFrom(const FeatureSet& from) { FeatureSet::MergeImpl(*this, from); }
_ZNK6google8protobuf10FeatureSet13IsInitializedEv:
 2022|      8|  bool IsInitialized() const {
 2023|      8|    return IsInitializedImpl(*this);
 2024|      8|  }
_ZN6google8protobuf10FeatureSetC2EPNS0_5ArenaEOS1_:
 2067|    227|      : FeatureSet(arena) {
 2068|    227|    *this = ::std::move(from);
 2069|    227|  }
_ZN6google8protobuf10FeatureSet21FieldPresence_IsValidEi:
 2084|    223|  static inline bool FieldPresence_IsValid(int value) {
 2085|    223|    return FeatureSet_FieldPresence_IsValid(value);
 2086|    223|  }
_ZN6google8protobuf10FeatureSet16EnumType_IsValidEi:
 2104|    223|  static inline bool EnumType_IsValid(int value) {
 2105|    223|    return FeatureSet_EnumType_IsValid(value);
 2106|    223|  }
_ZN6google8protobuf10FeatureSet29RepeatedFieldEncoding_IsValidEi:
 2124|    223|  static inline bool RepeatedFieldEncoding_IsValid(int value) {
 2125|    223|    return FeatureSet_RepeatedFieldEncoding_IsValid(value);
 2126|    223|  }
_ZN6google8protobuf10FeatureSet22Utf8Validation_IsValidEi:
 2144|    223|  static inline bool Utf8Validation_IsValid(int value) {
 2145|    223|    return FeatureSet_Utf8Validation_IsValid(value);
 2146|    223|  }
_ZN6google8protobuf10FeatureSet23MessageEncoding_IsValidEi:
 2164|    223|  static inline bool MessageEncoding_IsValid(int value) {
 2165|    223|    return FeatureSet_MessageEncoding_IsValid(value);
 2166|    223|  }
_ZN6google8protobuf10FeatureSet18JsonFormat_IsValidEi:
 2184|    223|  static inline bool JsonFormat_IsValid(int value) {
 2185|    223|    return FeatureSet_JsonFormat_IsValid(value);
 2186|    223|  }
_ZN6google8protobuf14SourceCodeInfo16default_instanceEv:
 3512|      4|  static const SourceCodeInfo& default_instance() {
 3513|      4|    return *internal_default_instance();
 3514|      4|  }
_ZN6google8protobuf14SourceCodeInfo25internal_default_instanceEv:
 3515|      4|  static inline const SourceCodeInfo* internal_default_instance() {
 3516|      4|    return reinterpret_cast<const SourceCodeInfo*>(
 3517|      4|        &_SourceCodeInfo_default_instance_);
 3518|      4|  }
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefaultC2Ev:
 4044|      4|  inline FeatureSetDefaults_FeatureSetEditionDefault() : FeatureSetDefaults_FeatureSetEditionDefault(nullptr) {}
_ZNK6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault13IsInitializedEv:
 4132|      4|  bool IsInitialized() const {
 4133|      4|    return IsInitializedImpl(*this);
 4134|      4|  }
_ZN6google8protobuf12OneofOptions16default_instanceEv:
 4737|      1|  static const OneofOptions& default_instance() {
 4738|      1|    return *internal_default_instance();
 4739|      1|  }
_ZN6google8protobuf12OneofOptions25internal_default_instanceEv:
 4740|      1|  static inline const OneofOptions* internal_default_instance() {
 4741|      1|    return reinterpret_cast<const OneofOptions*>(
 4742|      1|        &_OneofOptions_default_instance_);
 4743|      1|  }
_ZN6google8protobuf14MessageOptions16default_instanceEv:
 5583|     41|  static const MessageOptions& default_instance() {
 5584|     41|    return *internal_default_instance();
 5585|     41|  }
_ZN6google8protobuf14MessageOptions25internal_default_instanceEv:
 5586|     41|  static inline const MessageOptions* internal_default_instance() {
 5587|     41|    return reinterpret_cast<const MessageOptions*>(
 5588|     41|        &_MessageOptions_default_instance_);
 5589|     41|  }
_ZN6google8protobuf11FileOptionsC2Ev:
 5999|      2|  inline FileOptions() : FileOptions(nullptr) {}
_ZNK6google8protobuf11FileOptions14unknown_fieldsEv:
 6031|      2|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 6032|      2|    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
 6033|      2|  }
_ZN6google8protobuf11FileOptions16default_instanceEv:
 6048|      2|  static const FileOptions& default_instance() {
 6049|      2|    return *internal_default_instance();
 6050|      2|  }
_ZN6google8protobuf11FileOptions25internal_default_instanceEv:
 6051|     13|  static inline const FileOptions* internal_default_instance() {
 6052|     13|    return reinterpret_cast<const FileOptions*>(
 6053|     13|        &_FileOptions_default_instance_);
 6054|     13|  }
_ZNK6google8protobuf11FileOptions13IsInitializedEv:
 6087|      7|  bool IsInitialized() const {
 6088|      7|    return IsInitializedImpl(*this);
 6089|      7|  }
_ZN6google8protobuf12FieldOptionsC2Ev:
 6726|     17|  inline FieldOptions() : FieldOptions(nullptr) {}
_ZNK6google8protobuf12FieldOptions14unknown_fieldsEv:
 6758|     17|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 6759|     17|    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
 6760|     17|  }
_ZN6google8protobuf12FieldOptions16default_instanceEv:
 6775|    389|  static const FieldOptions& default_instance() {
 6776|    389|    return *internal_default_instance();
 6777|    389|  }
_ZN6google8protobuf12FieldOptions25internal_default_instanceEv:
 6778|    474|  static inline const FieldOptions* internal_default_instance() {
 6779|    474|    return reinterpret_cast<const FieldOptions*>(
 6780|    474|        &_FieldOptions_default_instance_);
 6781|    474|  }
_ZNK6google8protobuf12FieldOptions13IsInitializedEv:
 6814|     51|  bool IsInitialized() const {
 6815|     51|    return IsInitializedImpl(*this);
 6816|     51|  }
_ZN6google8protobuf18FeatureSetDefaultsC2Ev:
 7389|      1|  inline FeatureSetDefaults() : FeatureSetDefaults(nullptr) {}
_ZN6google8protobuf21ExtensionRangeOptions16default_instanceEv:
 7668|     14|  static const ExtensionRangeOptions& default_instance() {
 7669|     14|    return *internal_default_instance();
 7670|     14|  }
_ZN6google8protobuf21ExtensionRangeOptions25internal_default_instanceEv:
 7671|     14|  static inline const ExtensionRangeOptions* internal_default_instance() {
 7672|     14|    return reinterpret_cast<const ExtensionRangeOptions*>(
 7673|     14|        &_ExtensionRangeOptions_default_instance_);
 7674|     14|  }
_ZN6google8protobuf16EnumValueOptions16default_instanceEv:
 8120|    111|  static const EnumValueOptions& default_instance() {
 8121|    111|    return *internal_default_instance();
 8122|    111|  }
_ZN6google8protobuf16EnumValueOptions25internal_default_instanceEv:
 8123|    111|  static inline const EnumValueOptions* internal_default_instance() {
 8124|    111|    return reinterpret_cast<const EnumValueOptions*>(
 8125|    111|        &_EnumValueOptions_default_instance_);
 8126|    111|  }
_ZN6google8protobuf11EnumOptions16default_instanceEv:
 8563|     20|  static const EnumOptions& default_instance() {
 8564|     20|    return *internal_default_instance();
 8565|     20|  }
_ZN6google8protobuf11EnumOptions25internal_default_instanceEv:
 8566|     20|  static inline const EnumOptions* internal_default_instance() {
 8567|     20|    return reinterpret_cast<const EnumOptions*>(
 8568|     20|        &_EnumOptions_default_instance_);
 8569|     20|  }
_ZNK6google8protobuf20OneofDescriptorProto13IsInitializedEv:
 9041|      3|  bool IsInitialized() const {
 9042|      3|    return IsInitializedImpl(*this);
 9043|      3|  }
_ZNK6google8protobuf20FieldDescriptorProto13IsInitializedEv:
 9545|    435|  bool IsInitialized() const {
 9546|    435|    return IsInitializedImpl(*this);
 9547|    435|  }
_ZNK6google8protobuf24EnumValueDescriptorProto13IsInitializedEv:
 9961|    247|  bool IsInitialized() const {
 9962|    247|    return IsInitializedImpl(*this);
 9963|    247|  }
_ZNK6google8protobuf30DescriptorProto_ExtensionRange13IsInitializedEv:
10194|     28|  bool IsInitialized() const {
10195|     28|    return IsInitializedImpl(*this);
10196|     28|  }
_ZNK6google8protobuf19EnumDescriptorProto13IsInitializedEv:
10660|     42|  bool IsInitialized() const {
10661|     42|    return IsInitializedImpl(*this);
10662|     42|  }
_ZN6google8protobuf15DescriptorProto10descriptorEv:
10895|      2|  static const ::google::protobuf::Descriptor* descriptor() {
10896|      2|    return GetDescriptor();
10897|      2|  }
_ZN6google8protobuf15DescriptorProto13GetDescriptorEv:
10898|      2|  static const ::google::protobuf::Descriptor* GetDescriptor() {
10899|      2|    return default_instance().GetMetadata().descriptor;
10900|      2|  }
_ZN6google8protobuf15DescriptorProto16default_instanceEv:
10904|      2|  static const DescriptorProto& default_instance() {
10905|      2|    return *internal_default_instance();
10906|      2|  }
_ZN6google8protobuf15DescriptorProto25internal_default_instanceEv:
10907|      2|  static inline const DescriptorProto* internal_default_instance() {
10908|      2|    return reinterpret_cast<const DescriptorProto*>(
10909|      2|        &_DescriptorProto_default_instance_);
10910|      2|  }
_ZNK6google8protobuf15DescriptorProto13IsInitializedEv:
10943|     89|  bool IsInitialized() const {
10944|     89|    return IsInitializedImpl(*this);
10945|     89|  }
_ZN6google8protobuf19FileDescriptorProtoC2Ev:
11234|      6|  inline FileDescriptorProto() : FileDescriptorProto(nullptr) {}
_ZNK6google8protobuf19FileDescriptorProto8has_nameEv:
12110|      4|inline bool FileDescriptorProto::has_name() const {
12111|      4|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
12112|      4|  return value;
12113|      4|}
_ZNK6google8protobuf19FileDescriptorProto4nameEv:
12120|     63|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12121|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
12122|     63|  return _internal_name();
12123|     63|}
_ZNK6google8protobuf19FileDescriptorProto14_internal_nameEv:
12137|     63|inline const std::string& FileDescriptorProto::_internal_name() const {
12138|     63|  ::google::protobuf::internal::TSanRead(&_impl_);
12139|     63|  return _impl_.name_.Get();
12140|     63|}
_ZNK6google8protobuf19FileDescriptorProto11has_packageEv:
12179|      4|inline bool FileDescriptorProto::has_package() const {
12180|      4|  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
12181|      4|  return value;
12182|      4|}
_ZNK6google8protobuf19FileDescriptorProto7packageEv:
12189|     20|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12190|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
12191|     20|  return _internal_package();
12192|     20|}
_ZNK6google8protobuf19FileDescriptorProto17_internal_packageEv:
12206|     20|inline const std::string& FileDescriptorProto::_internal_package() const {
12207|     20|  ::google::protobuf::internal::TSanRead(&_impl_);
12208|     20|  return _impl_.package_.Get();
12209|     20|}
_ZNK6google8protobuf19FileDescriptorProto25_internal_dependency_sizeEv:
12248|     17|inline int FileDescriptorProto::_internal_dependency_size() const {
12249|     17|  return _internal_dependency().size();
12250|     17|}
_ZNK6google8protobuf19FileDescriptorProto15dependency_sizeEv:
12251|     17|inline int FileDescriptorProto::dependency_size() const {
12252|     17|  return _internal_dependency_size();
12253|     17|}
_ZNK6google8protobuf19FileDescriptorProto10dependencyEi:
12265|      2|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12266|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
12267|      2|  return _internal_dependency().Get(index);
12268|      2|}
_ZNK6google8protobuf19FileDescriptorProto20_internal_dependencyEv:
12301|     19|FileDescriptorProto::_internal_dependency() const {
12302|     19|  ::google::protobuf::internal::TSanRead(&_impl_);
12303|     19|  return _impl_.dependency_;
12304|     19|}
_ZNK6google8protobuf19FileDescriptorProto32_internal_public_dependency_sizeEv:
12312|     12|inline int FileDescriptorProto::_internal_public_dependency_size() const {
12313|     12|  return _internal_public_dependency().size();
12314|     12|}
_ZNK6google8protobuf19FileDescriptorProto22public_dependency_sizeEv:
12315|     12|inline int FileDescriptorProto::public_dependency_size() const {
12316|     12|  return _internal_public_dependency_size();
12317|     12|}
_ZNK6google8protobuf19FileDescriptorProto27_internal_public_dependencyEv:
12347|     12|FileDescriptorProto::_internal_public_dependency() const {
12348|     12|  ::google::protobuf::internal::TSanRead(&_impl_);
12349|     12|  return _impl_.public_dependency_;
12350|     12|}
_ZNK6google8protobuf19FileDescriptorProto30_internal_weak_dependency_sizeEv:
12357|     16|inline int FileDescriptorProto::_internal_weak_dependency_size() const {
12358|     16|  return _internal_weak_dependency().size();
12359|     16|}
_ZNK6google8protobuf19FileDescriptorProto20weak_dependency_sizeEv:
12360|     16|inline int FileDescriptorProto::weak_dependency_size() const {
12361|     16|  return _internal_weak_dependency_size();
12362|     16|}
_ZNK6google8protobuf19FileDescriptorProto25_internal_weak_dependencyEv:
12392|     16|FileDescriptorProto::_internal_weak_dependency() const {
12393|     16|  ::google::protobuf::internal::TSanRead(&_impl_);
12394|     16|  return _impl_.weak_dependency_;
12395|     16|}
_ZNK6google8protobuf19FileDescriptorProto27_internal_message_type_sizeEv:
12402|     43|inline int FileDescriptorProto::_internal_message_type_size() const {
12403|     43|  return _internal_message_type().size();
12404|     43|}
_ZNK6google8protobuf19FileDescriptorProto17message_type_sizeEv:
12405|     43|inline int FileDescriptorProto::message_type_size() const {
12406|     43|  return _internal_message_type_size();
12407|     43|}
_ZNK6google8protobuf19FileDescriptorProto12message_typeEi:
12424|    155|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12425|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
12426|    155|  return _internal_message_type().Get(index);
12427|    155|}
_ZNK6google8protobuf19FileDescriptorProto12message_typeEv:
12435|     10|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12436|       |  // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
12437|     10|  return _internal_message_type();
12438|     10|}
_ZNK6google8protobuf19FileDescriptorProto22_internal_message_typeEv:
12440|    218|FileDescriptorProto::_internal_message_type() const {
12441|    218|  ::google::protobuf::internal::TSanRead(&_impl_);
12442|    218|  return _impl_.message_type_;
12443|    218|}
_ZNK6google8protobuf19FileDescriptorProto24_internal_enum_type_sizeEv:
12451|     15|inline int FileDescriptorProto::_internal_enum_type_size() const {
12452|     15|  return _internal_enum_type().size();
12453|     15|}
_ZNK6google8protobuf19FileDescriptorProto14enum_type_sizeEv:
12454|     15|inline int FileDescriptorProto::enum_type_size() const {
12455|     15|  return _internal_enum_type_size();
12456|     15|}
_ZNK6google8protobuf19FileDescriptorProto9enum_typeEi:
12473|     12|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12474|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
12475|     12|  return _internal_enum_type().Get(index);
12476|     12|}
_ZNK6google8protobuf19FileDescriptorProto9enum_typeEv:
12484|     10|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12485|       |  // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
12486|     10|  return _internal_enum_type();
12487|     10|}
_ZNK6google8protobuf19FileDescriptorProto19_internal_enum_typeEv:
12489|     47|FileDescriptorProto::_internal_enum_type() const {
12490|     47|  ::google::protobuf::internal::TSanRead(&_impl_);
12491|     47|  return _impl_.enum_type_;
12492|     47|}
_ZNK6google8protobuf19FileDescriptorProto22_internal_service_sizeEv:
12500|     12|inline int FileDescriptorProto::_internal_service_size() const {
12501|     12|  return _internal_service().size();
12502|     12|}
_ZNK6google8protobuf19FileDescriptorProto12service_sizeEv:
12503|     12|inline int FileDescriptorProto::service_size() const {
12504|     12|  return _internal_service_size();
12505|     12|}
_ZNK6google8protobuf19FileDescriptorProto7serviceEv:
12533|     10|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12534|       |  // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
12535|     10|  return _internal_service();
12536|     10|}
_ZNK6google8protobuf19FileDescriptorProto17_internal_serviceEv:
12538|     32|FileDescriptorProto::_internal_service() const {
12539|     32|  ::google::protobuf::internal::TSanRead(&_impl_);
12540|     32|  return _impl_.service_;
12541|     32|}
_ZNK6google8protobuf19FileDescriptorProto24_internal_extension_sizeEv:
12549|     13|inline int FileDescriptorProto::_internal_extension_size() const {
12550|     13|  return _internal_extension().size();
12551|     13|}
_ZNK6google8protobuf19FileDescriptorProto14extension_sizeEv:
12552|     13|inline int FileDescriptorProto::extension_size() const {
12553|     13|  return _internal_extension_size();
12554|     13|}
_ZNK6google8protobuf19FileDescriptorProto9extensionEi:
12571|      5|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12572|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
12573|      5|  return _internal_extension().Get(index);
12574|      5|}
_ZNK6google8protobuf19FileDescriptorProto9extensionEv:
12582|     10|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12583|       |  // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
12584|     10|  return _internal_extension();
12585|     10|}
_ZNK6google8protobuf19FileDescriptorProto19_internal_extensionEv:
12587|     38|FileDescriptorProto::_internal_extension() const {
12588|     38|  ::google::protobuf::internal::TSanRead(&_impl_);
12589|     38|  return _impl_.extension_;
12590|     38|}
_ZNK6google8protobuf19FileDescriptorProto11has_optionsEv:
12598|      8|inline bool FileDescriptorProto::has_options() const {
12599|      8|  bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
12600|      8|  PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  ------------------
  |  |  941|     12|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 4, False: 4]
  |  |  |  Branch (941:48): [True: 4, False: 0]
  |  |  ------------------
  ------------------
12601|      8|  return value;
12602|      8|}
_ZNK6google8protobuf19FileDescriptorProto17_internal_optionsEv:
12608|      2|inline const ::google::protobuf::FileOptions& FileDescriptorProto::_internal_options() const {
12609|      2|  ::google::protobuf::internal::TSanRead(&_impl_);
12610|      2|  const ::google::protobuf::FileOptions* p = _impl_.options_;
12611|      2|  return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::FileOptions&>(::google::protobuf::_FileOptions_default_instance_);
  ------------------
  |  Branch (12611:10): [True: 2, False: 0]
  ------------------
12612|      2|}
_ZNK6google8protobuf19FileDescriptorProto7optionsEv:
12613|      2|inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
12614|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
12615|      2|  return _internal_options();
12616|      2|}
_ZNK6google8protobuf19FileDescriptorProto20has_source_code_infoEv:
12694|      8|inline bool FileDescriptorProto::has_source_code_info() const {
12695|      8|  bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
12696|      8|  PROTOBUF_ASSUME(!value || _impl_.source_code_info_ != nullptr);
  ------------------
  |  |  941|      8|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 8, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
12697|      8|  return value;
12698|      8|}
_ZNK6google8protobuf19FileDescriptorProto6syntaxEv:
12800|      8|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
12801|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
12802|      8|  return _internal_syntax();
12803|      8|}
_ZNK6google8protobuf19FileDescriptorProto16_internal_syntaxEv:
12817|      8|inline const std::string& FileDescriptorProto::_internal_syntax() const {
12818|      8|  ::google::protobuf::internal::TSanRead(&_impl_);
12819|      8|  return _impl_.syntax_.Get();
12820|      8|}
_ZNK6google8protobuf19FileDescriptorProto11has_editionEv:
12859|      4|inline bool FileDescriptorProto::has_edition() const {
12860|      4|  bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
12861|      4|  return value;
12862|      4|}
_ZNK6google8protobuf30DescriptorProto_ExtensionRange5startEv:
12901|     14|inline ::int32_t DescriptorProto_ExtensionRange::start() const {
12902|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
12903|     14|  return _internal_start();
12904|     14|}
_ZNK6google8protobuf30DescriptorProto_ExtensionRange15_internal_startEv:
12910|     14|inline ::int32_t DescriptorProto_ExtensionRange::_internal_start() const {
12911|     14|  ::google::protobuf::internal::TSanRead(&_impl_);
12912|     14|  return _impl_.start_;
12913|     14|}
_ZNK6google8protobuf30DescriptorProto_ExtensionRange3endEv:
12929|     14|inline ::int32_t DescriptorProto_ExtensionRange::end() const {
12930|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
12931|     14|  return _internal_end();
12932|     14|}
_ZNK6google8protobuf30DescriptorProto_ExtensionRange13_internal_endEv:
12938|     14|inline ::int32_t DescriptorProto_ExtensionRange::_internal_end() const {
12939|     14|  ::google::protobuf::internal::TSanRead(&_impl_);
12940|     14|  return _impl_.end_;
12941|     14|}
_ZNK6google8protobuf30DescriptorProto_ExtensionRange11has_optionsEv:
12948|     28|inline bool DescriptorProto_ExtensionRange::has_options() const {
12949|     28|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
12950|     28|  PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  ------------------
  |  |  941|     28|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 28, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
12951|     28|  return value;
12952|     28|}
_ZNK6google8protobuf29DescriptorProto_ReservedRange5startEv:
13057|     28|inline ::int32_t DescriptorProto_ReservedRange::start() const {
13058|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
13059|     28|  return _internal_start();
13060|     28|}
_ZNK6google8protobuf29DescriptorProto_ReservedRange15_internal_startEv:
13066|     28|inline ::int32_t DescriptorProto_ReservedRange::_internal_start() const {
13067|     28|  ::google::protobuf::internal::TSanRead(&_impl_);
13068|     28|  return _impl_.start_;
13069|     28|}
_ZNK6google8protobuf29DescriptorProto_ReservedRange3endEv:
13085|     28|inline ::int32_t DescriptorProto_ReservedRange::end() const {
13086|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
13087|     28|  return _internal_end();
13088|     28|}
_ZNK6google8protobuf29DescriptorProto_ReservedRange13_internal_endEv:
13094|     28|inline ::int32_t DescriptorProto_ReservedRange::_internal_end() const {
13095|     28|  ::google::protobuf::internal::TSanRead(&_impl_);
13096|     28|  return _impl_.end_;
13097|     28|}
_ZNK6google8protobuf15DescriptorProto4nameEv:
13118|    120|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13119|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
13120|    120|  return _internal_name();
13121|    120|}
_ZNK6google8protobuf15DescriptorProto14_internal_nameEv:
13135|    120|inline const std::string& DescriptorProto::_internal_name() const {
13136|    120|  ::google::protobuf::internal::TSanRead(&_impl_);
13137|    120|  return _impl_.name_.Get();
13138|    120|}
_ZNK6google8protobuf15DescriptorProto20_internal_field_sizeEv:
13177|    466|inline int DescriptorProto::_internal_field_size() const {
13178|    466|  return _internal_field().size();
13179|    466|}
_ZNK6google8protobuf15DescriptorProto10field_sizeEv:
13180|    466|inline int DescriptorProto::field_size() const {
13181|    466|  return _internal_field_size();
13182|    466|}
_ZNK6google8protobuf15DescriptorProto5fieldEi:
13199|  1.12k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13200|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
13201|  1.12k|  return _internal_field().Get(index);
13202|  1.12k|}
_ZNK6google8protobuf15DescriptorProto5fieldEv:
13210|     41|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13211|       |  // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
13212|     41|  return _internal_field();
13213|     41|}
_ZNK6google8protobuf15DescriptorProto15_internal_fieldEv:
13215|  1.72k|DescriptorProto::_internal_field() const {
13216|  1.72k|  ::google::protobuf::internal::TSanRead(&_impl_);
13217|  1.72k|  return _impl_.field_;
13218|  1.72k|}
_ZNK6google8protobuf15DescriptorProto24_internal_extension_sizeEv:
13226|    123|inline int DescriptorProto::_internal_extension_size() const {
13227|    123|  return _internal_extension().size();
13228|    123|}
_ZNK6google8protobuf15DescriptorProto14extension_sizeEv:
13229|    123|inline int DescriptorProto::extension_size() const {
13230|    123|  return _internal_extension_size();
13231|    123|}
_ZNK6google8protobuf15DescriptorProto9extensionEv:
13259|     89|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13260|       |  // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
13261|     89|  return _internal_extension();
13262|     89|}
_ZNK6google8protobuf15DescriptorProto19_internal_extensionEv:
13264|    301|DescriptorProto::_internal_extension() const {
13265|    301|  ::google::protobuf::internal::TSanRead(&_impl_);
13266|    301|  return _impl_.extension_;
13267|    301|}
_ZNK6google8protobuf15DescriptorProto26_internal_nested_type_sizeEv:
13275|    133|inline int DescriptorProto::_internal_nested_type_size() const {
13276|    133|  return _internal_nested_type().size();
13277|    133|}
_ZNK6google8protobuf15DescriptorProto16nested_type_sizeEv:
13278|    133|inline int DescriptorProto::nested_type_size() const {
13279|    133|  return _internal_nested_type_size();
13280|    133|}
_ZNK6google8protobuf15DescriptorProto11nested_typeEi:
13297|     50|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13298|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
13299|     50|  return _internal_nested_type().Get(index);
13300|     50|}
_ZNK6google8protobuf15DescriptorProto11nested_typeEv:
13308|     89|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13309|       |  // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
13310|     89|  return _internal_nested_type();
13311|     89|}
_ZNK6google8protobuf15DescriptorProto21_internal_nested_typeEv:
13313|    361|DescriptorProto::_internal_nested_type() const {
13314|    361|  ::google::protobuf::internal::TSanRead(&_impl_);
13315|    361|  return _impl_.nested_type_;
13316|    361|}
_ZNK6google8protobuf15DescriptorProto24_internal_enum_type_sizeEv:
13324|    140|inline int DescriptorProto::_internal_enum_type_size() const {
13325|    140|  return _internal_enum_type().size();
13326|    140|}
_ZNK6google8protobuf15DescriptorProto14enum_type_sizeEv:
13327|    140|inline int DescriptorProto::enum_type_size() const {
13328|    140|  return _internal_enum_type_size();
13329|    140|}
_ZNK6google8protobuf15DescriptorProto9enum_typeEi:
13346|     68|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13347|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
13348|     68|  return _internal_enum_type().Get(index);
13349|     68|}
_ZNK6google8protobuf15DescriptorProto9enum_typeEv:
13357|     41|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13358|       |  // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
13359|     41|  return _internal_enum_type();
13360|     41|}
_ZNK6google8protobuf15DescriptorProto19_internal_enum_typeEv:
13362|    338|DescriptorProto::_internal_enum_type() const {
13363|    338|  ::google::protobuf::internal::TSanRead(&_impl_);
13364|    338|  return _impl_.enum_type_;
13365|    338|}
_ZNK6google8protobuf15DescriptorProto30_internal_extension_range_sizeEv:
13373|    137|inline int DescriptorProto::_internal_extension_range_size() const {
13374|    137|  return _internal_extension_range().size();
13375|    137|}
_ZNK6google8protobuf15DescriptorProto20extension_range_sizeEv:
13376|    137|inline int DescriptorProto::extension_range_size() const {
13377|    137|  return _internal_extension_range_size();
13378|    137|}
_ZNK6google8protobuf15DescriptorProto15extension_rangeEi:
13395|     56|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13396|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
13397|     56|  return _internal_extension_range().Get(index);
13398|     56|}
_ZNK6google8protobuf15DescriptorProto15extension_rangeEv:
13406|     41|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13407|       |  // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
13408|     41|  return _internal_extension_range();
13409|     41|}
_ZNK6google8protobuf15DescriptorProto25_internal_extension_rangeEv:
13411|    323|DescriptorProto::_internal_extension_range() const {
13412|    323|  ::google::protobuf::internal::TSanRead(&_impl_);
13413|    323|  return _impl_.extension_range_;
13414|    323|}
_ZNK6google8protobuf15DescriptorProto25_internal_oneof_decl_sizeEv:
13422|    124|inline int DescriptorProto::_internal_oneof_decl_size() const {
13423|    124|  return _internal_oneof_decl().size();
13424|    124|}
_ZNK6google8protobuf15DescriptorProto15oneof_decl_sizeEv:
13425|    124|inline int DescriptorProto::oneof_decl_size() const {
13426|    124|  return _internal_oneof_decl_size();
13427|    124|}
_ZNK6google8protobuf15DescriptorProto10oneof_declEi:
13444|      4|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13445|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
13446|      4|  return _internal_oneof_decl().Get(index);
13447|      4|}
_ZNK6google8protobuf15DescriptorProto10oneof_declEv:
13455|     41|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13456|       |  // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
13457|     41|  return _internal_oneof_decl();
13458|     41|}
_ZNK6google8protobuf15DescriptorProto20_internal_oneof_declEv:
13460|    258|DescriptorProto::_internal_oneof_decl() const {
13461|    258|  ::google::protobuf::internal::TSanRead(&_impl_);
13462|    258|  return _impl_.oneof_decl_;
13463|    258|}
_ZNK6google8protobuf15DescriptorProto11has_optionsEv:
13471|     82|inline bool DescriptorProto::has_options() const {
13472|     82|  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
13473|     82|  PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  ------------------
  |  |  941|     82|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 82, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
13474|     82|  return value;
13475|     82|}
_ZNK6google8protobuf15DescriptorProto29_internal_reserved_range_sizeEv:
13567|    260|inline int DescriptorProto::_internal_reserved_range_size() const {
13568|    260|  return _internal_reserved_range().size();
13569|    260|}
_ZNK6google8protobuf15DescriptorProto19reserved_range_sizeEv:
13570|    260|inline int DescriptorProto::reserved_range_size() const {
13571|    260|  return _internal_reserved_range_size();
13572|    260|}
_ZNK6google8protobuf15DescriptorProto14reserved_rangeEi:
13589|     41|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13590|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
13591|     41|  return _internal_reserved_range().Get(index);
13592|     41|}
_ZNK6google8protobuf15DescriptorProto24_internal_reserved_rangeEv:
13605|    301|DescriptorProto::_internal_reserved_range() const {
13606|    301|  ::google::protobuf::internal::TSanRead(&_impl_);
13607|    301|  return _impl_.reserved_range_;
13608|    301|}
_ZNK6google8protobuf15DescriptorProto28_internal_reserved_name_sizeEv:
13616|    123|inline int DescriptorProto::_internal_reserved_name_size() const {
13617|    123|  return _internal_reserved_name().size();
13618|    123|}
_ZNK6google8protobuf15DescriptorProto18reserved_name_sizeEv:
13619|    123|inline int DescriptorProto::reserved_name_size() const {
13620|    123|  return _internal_reserved_name_size();
13621|    123|}
_ZNK6google8protobuf15DescriptorProto13reserved_nameEi:
13633|      2|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
13634|       |  // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
13635|      2|  return _internal_reserved_name().Get(index);
13636|      2|}
_ZNK6google8protobuf15DescriptorProto13reserved_nameEv:
13658|     41|DescriptorProto::reserved_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
13659|       |  // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
13660|     41|  return _internal_reserved_name();
13661|     41|}
_ZNK6google8protobuf15DescriptorProto23_internal_reserved_nameEv:
13669|    166|DescriptorProto::_internal_reserved_name() const {
13670|    166|  ::google::protobuf::internal::TSanRead(&_impl_);
13671|    166|  return _impl_.reserved_name_;
13672|    166|}
_ZNK6google8protobuf21ExtensionRangeOptions12has_featuresEv:
14008|     14|inline bool ExtensionRangeOptions::has_features() const {
14009|     14|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
14010|     14|  PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr);
  ------------------
  |  |  941|     14|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 14, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
14011|     14|  return value;
14012|     14|}
_ZNK6google8protobuf20FieldDescriptorProto4nameEv:
14147|    610|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
14148|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
14149|    610|  return _internal_name();
14150|    610|}
_ZNK6google8protobuf20FieldDescriptorProto14_internal_nameEv:
14164|    610|inline const std::string& FieldDescriptorProto::_internal_name() const {
14165|    610|  ::google::protobuf::internal::TSanRead(&_impl_);
14166|    610|  return _impl_.name_.Get();
14167|    610|}
_ZNK6google8protobuf20FieldDescriptorProto6numberEv:
14215|    324|inline ::int32_t FieldDescriptorProto::number() const {
14216|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
14217|    324|  return _internal_number();
14218|    324|}
_ZNK6google8protobuf20FieldDescriptorProto16_internal_numberEv:
14224|    324|inline ::int32_t FieldDescriptorProto::_internal_number() const {
14225|    324|  ::google::protobuf::internal::TSanRead(&_impl_);
14226|    324|  return _impl_.number_;
14227|    324|}
_ZNK6google8protobuf20FieldDescriptorProto5labelEv:
14243|    406|inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
14244|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
14245|    406|  return _internal_label();
14246|    406|}
_ZNK6google8protobuf20FieldDescriptorProto15_internal_labelEv:
14252|    406|inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::_internal_label() const {
14253|    406|  ::google::protobuf::internal::TSanRead(&_impl_);
14254|    406|  return static_cast<::google::protobuf::FieldDescriptorProto_Label>(_impl_.label_);
14255|    406|}
_ZNK6google8protobuf20FieldDescriptorProto8has_typeEv:
14263|    316|inline bool FieldDescriptorProto::has_type() const {
14264|    316|  bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
14265|    316|  return value;
14266|    316|}
_ZNK6google8protobuf20FieldDescriptorProto4typeEv:
14272|    546|inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
14273|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
14274|    546|  return _internal_type();
14275|    546|}
_ZNK6google8protobuf20FieldDescriptorProto14_internal_typeEv:
14281|    546|inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::_internal_type() const {
14282|    546|  ::google::protobuf::internal::TSanRead(&_impl_);
14283|    546|  return static_cast<::google::protobuf::FieldDescriptorProto_Type>(_impl_.type_);
14284|    546|}
_ZNK6google8protobuf20FieldDescriptorProto13has_type_nameEv:
14292|    203|inline bool FieldDescriptorProto::has_type_name() const {
14293|    203|  bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
14294|    203|  return value;
14295|    203|}
_ZNK6google8protobuf20FieldDescriptorProto9type_nameEv:
14302|     86|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
14303|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
14304|     86|  return _internal_type_name();
14305|     86|}
_ZNK6google8protobuf20FieldDescriptorProto19_internal_type_nameEv:
14319|     86|inline const std::string& FieldDescriptorProto::_internal_type_name() const {
14320|     86|  ::google::protobuf::internal::TSanRead(&_impl_);
14321|     86|  return _impl_.type_name_.Get();
14322|     86|}
_ZNK6google8protobuf20FieldDescriptorProto12has_extendeeEv:
14361|    406|inline bool FieldDescriptorProto::has_extendee() const {
14362|    406|  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
14363|    406|  return value;
14364|    406|}
_ZNK6google8protobuf20FieldDescriptorProto8extendeeEv:
14371|      5|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
14372|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
14373|      5|  return _internal_extendee();
14374|      5|}
_ZNK6google8protobuf20FieldDescriptorProto18_internal_extendeeEv:
14388|      5|inline const std::string& FieldDescriptorProto::_internal_extendee() const {
14389|      5|  ::google::protobuf::internal::TSanRead(&_impl_);
14390|      5|  return _impl_.extendee_.Get();
14391|      5|}
_ZNK6google8protobuf20FieldDescriptorProto17has_default_valueEv:
14430|    871|inline bool FieldDescriptorProto::has_default_value() const {
14431|    871|  bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
14432|    871|  return value;
14433|    871|}
_ZNK6google8protobuf20FieldDescriptorProto13default_valueEv:
14440|     53|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
14441|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
14442|     53|  return _internal_default_value();
14443|     53|}
_ZNK6google8protobuf20FieldDescriptorProto23_internal_default_valueEv:
14457|     53|inline const std::string& FieldDescriptorProto::_internal_default_value() const {
14458|     53|  ::google::protobuf::internal::TSanRead(&_impl_);
14459|     53|  return _impl_.default_value_.Get();
14460|     53|}
_ZNK6google8protobuf20FieldDescriptorProto15has_oneof_indexEv:
14499|    203|inline bool FieldDescriptorProto::has_oneof_index() const {
14500|    203|  bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
14501|    203|  return value;
14502|    203|}
_ZNK6google8protobuf20FieldDescriptorProto11oneof_indexEv:
14508|      9|inline ::int32_t FieldDescriptorProto::oneof_index() const {
14509|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
14510|      9|  return _internal_oneof_index();
14511|      9|}
_ZNK6google8protobuf20FieldDescriptorProto21_internal_oneof_indexEv:
14517|      9|inline ::int32_t FieldDescriptorProto::_internal_oneof_index() const {
14518|      9|  ::google::protobuf::internal::TSanRead(&_impl_);
14519|      9|  return _impl_.oneof_index_;
14520|      9|}
_ZNK6google8protobuf20FieldDescriptorProto13has_json_nameEv:
14527|    609|inline bool FieldDescriptorProto::has_json_name() const {
14528|    609|  bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
14529|    609|  return value;
14530|    609|}
_ZNK6google8protobuf20FieldDescriptorProto11has_optionsEv:
14596|    406|inline bool FieldDescriptorProto::has_options() const {
14597|    406|  bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
14598|    406|  PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  ------------------
  |  |  941|    440|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 372, False: 34]
  |  |  |  Branch (941:48): [True: 34, False: 0]
  |  |  ------------------
  ------------------
14599|    406|  return value;
14600|    406|}
_ZNK6google8protobuf20FieldDescriptorProto17_internal_optionsEv:
14606|    103|inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::_internal_options() const {
14607|    103|  ::google::protobuf::internal::TSanRead(&_impl_);
14608|    103|  const ::google::protobuf::FieldOptions* p = _impl_.options_;
14609|    103|  return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::FieldOptions&>(::google::protobuf::_FieldOptions_default_instance_);
  ------------------
  |  Branch (14609:10): [True: 26, False: 77]
  ------------------
14610|    103|}
_ZNK6google8protobuf20FieldDescriptorProto7optionsEv:
14611|    103|inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
14612|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
14613|    103|  return _internal_options();
14614|    103|}
_ZNK6google8protobuf20FieldDescriptorProto15proto3_optionalEv:
14701|    406|inline bool FieldDescriptorProto::proto3_optional() const {
14702|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.proto3_optional)
14703|    406|  return _internal_proto3_optional();
14704|    406|}
_ZNK6google8protobuf20FieldDescriptorProto25_internal_proto3_optionalEv:
14710|    406|inline bool FieldDescriptorProto::_internal_proto3_optional() const {
14711|    406|  ::google::protobuf::internal::TSanRead(&_impl_);
14712|    406|  return _impl_.proto3_optional_;
14713|    406|}
_ZNK6google8protobuf20OneofDescriptorProto4nameEv:
14734|      2|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
14735|       |  // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
14736|      2|  return _internal_name();
14737|      2|}
_ZNK6google8protobuf20OneofDescriptorProto14_internal_nameEv:
14751|      2|inline const std::string& OneofDescriptorProto::_internal_name() const {
14752|      2|  ::google::protobuf::internal::TSanRead(&_impl_);
14753|      2|  return _impl_.name_.Get();
14754|      2|}
_ZNK6google8protobuf20OneofDescriptorProto11has_optionsEv:
14793|      2|inline bool OneofDescriptorProto::has_options() const {
14794|      2|  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
14795|      2|  PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  ------------------
  |  |  941|      2|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 2, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
14796|      2|  return value;
14797|      2|}
_ZNK6google8protobuf37EnumDescriptorProto_EnumReservedRange5startEv:
14902|      1|inline ::int32_t EnumDescriptorProto_EnumReservedRange::start() const {
14903|       |  // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
14904|      1|  return _internal_start();
14905|      1|}
_ZNK6google8protobuf37EnumDescriptorProto_EnumReservedRange15_internal_startEv:
14911|      1|inline ::int32_t EnumDescriptorProto_EnumReservedRange::_internal_start() const {
14912|      1|  ::google::protobuf::internal::TSanRead(&_impl_);
14913|      1|  return _impl_.start_;
14914|      1|}
_ZNK6google8protobuf37EnumDescriptorProto_EnumReservedRange3endEv:
14930|      1|inline ::int32_t EnumDescriptorProto_EnumReservedRange::end() const {
14931|       |  // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
14932|      1|  return _internal_end();
14933|      1|}
_ZNK6google8protobuf37EnumDescriptorProto_EnumReservedRange13_internal_endEv:
14939|      1|inline ::int32_t EnumDescriptorProto_EnumReservedRange::_internal_end() const {
14940|      1|  ::google::protobuf::internal::TSanRead(&_impl_);
14941|      1|  return _impl_.end_;
14942|      1|}
_ZNK6google8protobuf19EnumDescriptorProto4nameEv:
14963|     45|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
14964|       |  // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
14965|     45|  return _internal_name();
14966|     45|}
_ZNK6google8protobuf19EnumDescriptorProto14_internal_nameEv:
14980|     45|inline const std::string& EnumDescriptorProto::_internal_name() const {
14981|     45|  ::google::protobuf::internal::TSanRead(&_impl_);
14982|     45|  return _impl_.name_.Get();
14983|     45|}
_ZNK6google8protobuf19EnumDescriptorProto20_internal_value_sizeEv:
15022|    288|inline int EnumDescriptorProto::_internal_value_size() const {
15023|    288|  return _internal_value().size();
15024|    288|}
_ZNK6google8protobuf19EnumDescriptorProto10value_sizeEv:
15025|    288|inline int EnumDescriptorProto::value_size() const {
15026|    288|  return _internal_value_size();
15027|    288|}
_ZNK6google8protobuf19EnumDescriptorProto5valueEi:
15044|    606|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
15045|       |  // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
15046|    606|  return _internal_value().Get(index);
15047|    606|}
_ZNK6google8protobuf19EnumDescriptorProto5valueEv:
15055|     20|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
15056|       |  // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
15057|     20|  return _internal_value();
15058|     20|}
_ZNK6google8protobuf19EnumDescriptorProto15_internal_valueEv:
15060|    956|EnumDescriptorProto::_internal_value() const {
15061|    956|  ::google::protobuf::internal::TSanRead(&_impl_);
15062|    956|  return _impl_.value_;
15063|    956|}
_ZNK6google8protobuf19EnumDescriptorProto11has_optionsEv:
15071|     40|inline bool EnumDescriptorProto::has_options() const {
15072|     40|  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
15073|     40|  PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  ------------------
  |  |  941|     40|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 40, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
15074|     40|  return value;
15075|     40|}
_ZNK6google8protobuf19EnumDescriptorProto29_internal_reserved_range_sizeEv:
15167|    103|inline int EnumDescriptorProto::_internal_reserved_range_size() const {
15168|    103|  return _internal_reserved_range().size();
15169|    103|}
_ZNK6google8protobuf19EnumDescriptorProto19reserved_range_sizeEv:
15170|    103|inline int EnumDescriptorProto::reserved_range_size() const {
15171|    103|  return _internal_reserved_range_size();
15172|    103|}
_ZNK6google8protobuf19EnumDescriptorProto14reserved_rangeEi:
15189|      2|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
15190|       |  // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_range)
15191|      2|  return _internal_reserved_range().Get(index);
15192|      2|}
_ZNK6google8protobuf19EnumDescriptorProto24_internal_reserved_rangeEv:
15205|    105|EnumDescriptorProto::_internal_reserved_range() const {
15206|    105|  ::google::protobuf::internal::TSanRead(&_impl_);
15207|    105|  return _impl_.reserved_range_;
15208|    105|}
_ZNK6google8protobuf19EnumDescriptorProto28_internal_reserved_name_sizeEv:
15216|     60|inline int EnumDescriptorProto::_internal_reserved_name_size() const {
15217|     60|  return _internal_reserved_name().size();
15218|     60|}
_ZNK6google8protobuf19EnumDescriptorProto18reserved_name_sizeEv:
15219|     60|inline int EnumDescriptorProto::reserved_name_size() const {
15220|     60|  return _internal_reserved_name_size();
15221|     60|}
_ZNK6google8protobuf19EnumDescriptorProto13reserved_nameEv:
15258|     20|EnumDescriptorProto::reserved_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
15259|       |  // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_name)
15260|     20|  return _internal_reserved_name();
15261|     20|}
_ZNK6google8protobuf19EnumDescriptorProto23_internal_reserved_nameEv:
15269|     80|EnumDescriptorProto::_internal_reserved_name() const {
15270|     80|  ::google::protobuf::internal::TSanRead(&_impl_);
15271|     80|  return _impl_.reserved_name_;
15272|     80|}
_ZNK6google8protobuf24EnumValueDescriptorProto4nameEv:
15294|    444|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
15295|       |  // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
15296|    444|  return _internal_name();
15297|    444|}
_ZNK6google8protobuf24EnumValueDescriptorProto14_internal_nameEv:
15311|    444|inline const std::string& EnumValueDescriptorProto::_internal_name() const {
15312|    444|  ::google::protobuf::internal::TSanRead(&_impl_);
15313|    444|  return _impl_.name_.Get();
15314|    444|}
_ZNK6google8protobuf24EnumValueDescriptorProto6numberEv:
15362|    273|inline ::int32_t EnumValueDescriptorProto::number() const {
15363|       |  // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
15364|    273|  return _internal_number();
15365|    273|}
_ZNK6google8protobuf24EnumValueDescriptorProto16_internal_numberEv:
15371|    273|inline ::int32_t EnumValueDescriptorProto::_internal_number() const {
15372|    273|  ::google::protobuf::internal::TSanRead(&_impl_);
15373|    273|  return _impl_.number_;
15374|    273|}
_ZNK6google8protobuf24EnumValueDescriptorProto11has_optionsEv:
15381|    222|inline bool EnumValueDescriptorProto::has_options() const {
15382|    222|  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
15383|    222|  PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  ------------------
  |  |  941|    222|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 222, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
15384|    222|  return value;
15385|    222|}
_ZNK6google8protobuf11FileOptions22_internal_java_packageEv:
16089|      4|inline const std::string& FileOptions::_internal_java_package() const {
16090|      4|  ::google::protobuf::internal::TSanRead(&_impl_);
16091|      4|  return _impl_.java_package_.Get();
16092|      4|}
_ZNK6google8protobuf11FileOptions30_internal_java_outer_classnameEv:
16158|      4|inline const std::string& FileOptions::_internal_java_outer_classname() const {
16159|      4|  ::google::protobuf::internal::TSanRead(&_impl_);
16160|      4|  return _impl_.java_outer_classname_.Get();
16161|      4|}
_ZNK6google8protobuf11FileOptions29_internal_java_multiple_filesEv:
16218|      1|inline bool FileOptions::_internal_java_multiple_files() const {
16219|      1|  ::google::protobuf::internal::TSanRead(&_impl_);
16220|      1|  return _impl_.java_multiple_files_;
16221|      1|}
_ZNK6google8protobuf11FileOptions22_internal_optimize_forEv:
16302|      2|inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::_internal_optimize_for() const {
16303|      2|  ::google::protobuf::internal::TSanRead(&_impl_);
16304|      2|  return static_cast<::google::protobuf::FileOptions_OptimizeMode>(_impl_.optimize_for_);
16305|      2|}
_ZNK6google8protobuf11FileOptions20_internal_go_packageEv:
16340|      4|inline const std::string& FileOptions::_internal_go_package() const {
16341|      4|  ::google::protobuf::internal::TSanRead(&_impl_);
16342|      4|  return _impl_.go_package_.Get();
16343|      4|}
_ZNK6google8protobuf11FileOptions19cc_generic_servicesEv:
16391|      4|inline bool FileOptions::cc_generic_services() const {
16392|       |  // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
16393|      4|  return _internal_cc_generic_services();
16394|      4|}
_ZNK6google8protobuf11FileOptions29_internal_cc_generic_servicesEv:
16400|      4|inline bool FileOptions::_internal_cc_generic_services() const {
16401|      4|  ::google::protobuf::internal::TSanRead(&_impl_);
16402|      4|  return _impl_.cc_generic_services_;
16403|      4|}
_ZNK6google8protobuf11FileOptions26_internal_cc_enable_arenasEv:
16512|      1|inline bool FileOptions::_internal_cc_enable_arenas() const {
16513|      1|  ::google::protobuf::internal::TSanRead(&_impl_);
16514|      1|  return _impl_.cc_enable_arenas_;
16515|      1|}
_ZNK6google8protobuf11FileOptions27_internal_objc_class_prefixEv:
16549|      4|inline const std::string& FileOptions::_internal_objc_class_prefix() const {
16550|      4|  ::google::protobuf::internal::TSanRead(&_impl_);
16551|      4|  return _impl_.objc_class_prefix_.Get();
16552|      4|}
_ZNK6google8protobuf11FileOptions26_internal_csharp_namespaceEv:
16618|      4|inline const std::string& FileOptions::_internal_csharp_namespace() const {
16619|      4|  ::google::protobuf::internal::TSanRead(&_impl_);
16620|      4|  return _impl_.csharp_namespace_.Get();
16621|      4|}
_ZNK6google8protobuf11FileOptions12has_featuresEv:
17005|      4|inline bool FileOptions::has_features() const {
17006|      4|  bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
17007|      4|  PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr);
  ------------------
  |  |  941|      4|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 4, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
17008|      4|  return value;
17009|      4|}
_ZNK6google8protobuf11FileOptions35_internal_uninterpreted_option_sizeEv:
17101|      6|inline int FileOptions::_internal_uninterpreted_option_size() const {
17102|      6|  return _internal_uninterpreted_option().size();
17103|      6|}
_ZNK6google8protobuf11FileOptions25uninterpreted_option_sizeEv:
17104|      2|inline int FileOptions::uninterpreted_option_size() const {
17105|      2|  return _internal_uninterpreted_option_size();
17106|      2|}
_ZNK6google8protobuf11FileOptions30_internal_uninterpreted_optionEv:
17139|     17|FileOptions::_internal_uninterpreted_option() const {
17140|     17|  ::google::protobuf::internal::TSanRead(&_impl_);
17141|     17|  return _impl_.uninterpreted_option_;
17142|     17|}
_ZNK6google8protobuf14MessageOptions12has_featuresEv:
17294|     41|inline bool MessageOptions::has_features() const {
17295|     41|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
17296|     41|  PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr);
  ------------------
  |  |  941|     41|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 41, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
17297|     41|  return value;
17298|     41|}
_ZNK6google8protobuf27FieldOptions_EditionDefault17_internal_editionEv:
17461|     36|inline ::google::protobuf::Edition FieldOptions_EditionDefault::_internal_edition() const {
17462|     36|  ::google::protobuf::internal::TSanRead(&_impl_);
17463|     36|  return static_cast<::google::protobuf::Edition>(_impl_.edition_);
17464|     36|}
_ZNK6google8protobuf27FieldOptions_EditionDefault15_internal_valueEv:
17499|     36|inline const std::string& FieldOptions_EditionDefault::_internal_value() const {
17500|     36|  ::google::protobuf::internal::TSanRead(&_impl_);
17501|     36|  return _impl_.value_.Get();
17502|     36|}
_ZNK6google8protobuf27FieldOptions_FeatureSupport28_internal_edition_introducedEv:
17563|     18|inline ::google::protobuf::Edition FieldOptions_FeatureSupport::_internal_edition_introduced() const {
17564|     18|  ::google::protobuf::internal::TSanRead(&_impl_);
17565|     18|  return static_cast<::google::protobuf::Edition>(_impl_.edition_introduced_);
17566|     18|}
_ZNK6google8protobuf27FieldOptions_FeatureSupport28_internal_edition_deprecatedEv:
17592|      2|inline ::google::protobuf::Edition FieldOptions_FeatureSupport::_internal_edition_deprecated() const {
17593|      2|  ::google::protobuf::internal::TSanRead(&_impl_);
17594|      2|  return static_cast<::google::protobuf::Edition>(_impl_.edition_deprecated_);
17595|      2|}
_ZNK6google8protobuf27FieldOptions_FeatureSupport29_internal_deprecation_warningEv:
17630|      2|inline const std::string& FieldOptions_FeatureSupport::_internal_deprecation_warning() const {
17631|      2|  ::google::protobuf::internal::TSanRead(&_impl_);
17632|      2|  return _impl_.deprecation_warning_.Get();
17633|      2|}
_ZNK6google8protobuf12FieldOptions9has_ctypeEv:
17705|    203|inline bool FieldOptions::has_ctype() const {
17706|    203|  bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
17707|    203|  return value;
17708|    203|}
_ZNK6google8protobuf12FieldOptions5ctypeEv:
17714|    203|inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
17715|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
17716|    203|  return _internal_ctype();
17717|    203|}
_ZNK6google8protobuf12FieldOptions15_internal_ctypeEv:
17723|    203|inline ::google::protobuf::FieldOptions_CType FieldOptions::_internal_ctype() const {
17724|    203|  ::google::protobuf::internal::TSanRead(&_impl_);
17725|    203|  return static_cast<::google::protobuf::FieldOptions_CType>(_impl_.ctype_);
17726|    203|}
_ZNK6google8protobuf12FieldOptions10has_packedEv:
17734|     29|inline bool FieldOptions::has_packed() const {
17735|     29|  bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
17736|     29|  return value;
17737|     29|}
_ZNK6google8protobuf12FieldOptions6packedEv:
17743|    203|inline bool FieldOptions::packed() const {
17744|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
17745|    203|  return _internal_packed();
17746|    203|}
_ZNK6google8protobuf12FieldOptions16_internal_packedEv:
17752|    206|inline bool FieldOptions::_internal_packed() const {
17753|    206|  ::google::protobuf::internal::TSanRead(&_impl_);
17754|    206|  return _impl_.packed_;
17755|    206|}
_ZNK6google8protobuf12FieldOptions20_internal_deprecatedEv:
17865|      3|inline bool FieldOptions::_internal_deprecated() const {
17866|      3|  ::google::protobuf::internal::TSanRead(&_impl_);
17867|      3|  return _impl_.deprecated_;
17868|      3|}
_ZNK6google8protobuf12FieldOptions4weakEv:
17884|     86|inline bool FieldOptions::weak() const {
17885|       |  // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
17886|     86|  return _internal_weak();
17887|     86|}
_ZNK6google8protobuf12FieldOptions14_internal_weakEv:
17893|     86|inline bool FieldOptions::_internal_weak() const {
17894|     86|  ::google::protobuf::internal::TSanRead(&_impl_);
17895|     86|  return _impl_.weak_;
17896|     86|}
_ZNK6google8protobuf12FieldOptions19_internal_retentionEv:
17949|     22|inline ::google::protobuf::FieldOptions_OptionRetention FieldOptions::_internal_retention() const {
17950|     22|  ::google::protobuf::internal::TSanRead(&_impl_);
17951|     22|  return static_cast<::google::protobuf::FieldOptions_OptionRetention>(_impl_.retention_);
17952|     22|}
_ZNK6google8protobuf12FieldOptions22_internal_targets_sizeEv:
17960|     34|inline int FieldOptions::_internal_targets_size() const {
17961|     34|  return _internal_targets().size();
17962|     34|}
_ZNK6google8protobuf12FieldOptions17_internal_targetsEv:
17997|     70|    const {
17998|     70|  ::google::protobuf::internal::TSanRead(&_impl_);
17999|     70|  return _impl_.targets_;
18000|     70|}
_ZNK6google8protobuf12FieldOptions31_internal_edition_defaults_sizeEv:
18007|     34|inline int FieldOptions::_internal_edition_defaults_size() const {
18008|     34|  return _internal_edition_defaults().size();
18009|     34|}
_ZNK6google8protobuf12FieldOptions26_internal_edition_defaultsEv:
18045|     69|FieldOptions::_internal_edition_defaults() const {
18046|     69|  ::google::protobuf::internal::TSanRead(&_impl_);
18047|     69|  return _impl_.edition_defaults_;
18048|     69|}
_ZNK6google8protobuf12FieldOptions12has_featuresEv:
18056|    203|inline bool FieldOptions::has_features() const {
18057|    203|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
18058|    203|  PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr);
  ------------------
  |  |  941|    203|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 203, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
18059|    203|  return value;
18060|    203|}
_ZNK6google8protobuf12FieldOptions35_internal_uninterpreted_option_sizeEv:
18248|     51|inline int FieldOptions::_internal_uninterpreted_option_size() const {
18249|     51|  return _internal_uninterpreted_option().size();
18250|     51|}
_ZNK6google8protobuf12FieldOptions25uninterpreted_option_sizeEv:
18251|     17|inline int FieldOptions::uninterpreted_option_size() const {
18252|     17|  return _internal_uninterpreted_option_size();
18253|     17|}
_ZNK6google8protobuf12FieldOptions30_internal_uninterpreted_optionEv:
18286|    136|FieldOptions::_internal_uninterpreted_option() const {
18287|    136|  ::google::protobuf::internal::TSanRead(&_impl_);
18288|    136|  return _impl_.uninterpreted_option_;
18289|    136|}
_ZNK6google8protobuf12OneofOptions12has_featuresEv:
18301|      1|inline bool OneofOptions::has_features() const {
18302|      1|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
18303|      1|  PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr);
  ------------------
  |  |  941|      1|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 1, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
18304|      1|  return value;
18305|      1|}
_ZNK6google8protobuf11EnumOptions12has_featuresEv:
18534|     20|inline bool EnumOptions::has_features() const {
18535|     20|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
18536|     20|  PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr);
  ------------------
  |  |  941|     20|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 20, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
18537|     20|  return value;
18538|     20|}
_ZNK6google8protobuf16EnumValueOptions12has_featuresEv:
18711|    111|inline bool EnumValueOptions::has_features() const {
18712|    111|  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
18713|    111|  PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr);
  ------------------
  |  |  941|    111|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  |  |  ------------------
  |  |  |  Branch (941:48): [True: 111, False: 0]
  |  |  |  Branch (941:48): [True: 0, False: 0]
  |  |  ------------------
  ------------------
18714|    111|  return value;
18715|    111|}
_ZNK6google8protobuf10FeatureSet14field_presenceEv:
19821|   393k|inline ::google::protobuf::FeatureSet_FieldPresence FeatureSet::field_presence() const {
19822|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSet.field_presence)
19823|   393k|  return _internal_field_presence();
19824|   393k|}
_ZN6google8protobuf10FeatureSet18set_field_presenceENS0_24FeatureSet_FieldPresenceE:
19825|      2|inline void FeatureSet::set_field_presence(::google::protobuf::FeatureSet_FieldPresence value) {
19826|      2|  _internal_set_field_presence(value);
19827|      2|  _impl_._has_bits_[0] |= 0x00000001u;
19828|       |  // @@protoc_insertion_point(field_set:google.protobuf.FeatureSet.field_presence)
19829|      2|}
_ZNK6google8protobuf10FeatureSet24_internal_field_presenceEv:
19830|   393k|inline ::google::protobuf::FeatureSet_FieldPresence FeatureSet::_internal_field_presence() const {
19831|   393k|  ::google::protobuf::internal::TSanRead(&_impl_);
19832|   393k|  return static_cast<::google::protobuf::FeatureSet_FieldPresence>(_impl_.field_presence_);
19833|   393k|}
_ZN6google8protobuf10FeatureSet28_internal_set_field_presenceENS0_24FeatureSet_FieldPresenceE:
19834|      2|inline void FeatureSet::_internal_set_field_presence(::google::protobuf::FeatureSet_FieldPresence value) {
19835|      2|  ::google::protobuf::internal::TSanWrite(&_impl_);
19836|       |  assert(::google::protobuf::FeatureSet_FieldPresence_IsValid(value));
19837|      2|  _impl_.field_presence_ = value;
19838|      2|}
_ZNK6google8protobuf10FeatureSet9enum_typeEv:
19850|    446|inline ::google::protobuf::FeatureSet_EnumType FeatureSet::enum_type() const {
19851|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSet.enum_type)
19852|    446|  return _internal_enum_type();
19853|    446|}
_ZNK6google8protobuf10FeatureSet19_internal_enum_typeEv:
19859|    860|inline ::google::protobuf::FeatureSet_EnumType FeatureSet::_internal_enum_type() const {
19860|    860|  ::google::protobuf::internal::TSanRead(&_impl_);
19861|    860|  return static_cast<::google::protobuf::FeatureSet_EnumType>(_impl_.enum_type_);
19862|    860|}
_ZNK6google8protobuf10FeatureSet23repeated_field_encodingEv:
19879|    446|inline ::google::protobuf::FeatureSet_RepeatedFieldEncoding FeatureSet::repeated_field_encoding() const {
19880|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSet.repeated_field_encoding)
19881|    446|  return _internal_repeated_field_encoding();
19882|    446|}
_ZN6google8protobuf10FeatureSet27set_repeated_field_encodingENS0_32FeatureSet_RepeatedFieldEncodingE:
19883|      3|inline void FeatureSet::set_repeated_field_encoding(::google::protobuf::FeatureSet_RepeatedFieldEncoding value) {
19884|      3|  _internal_set_repeated_field_encoding(value);
19885|      3|  _impl_._has_bits_[0] |= 0x00000004u;
19886|       |  // @@protoc_insertion_point(field_set:google.protobuf.FeatureSet.repeated_field_encoding)
19887|      3|}
_ZNK6google8protobuf10FeatureSet33_internal_repeated_field_encodingEv:
19888|    863|inline ::google::protobuf::FeatureSet_RepeatedFieldEncoding FeatureSet::_internal_repeated_field_encoding() const {
19889|    863|  ::google::protobuf::internal::TSanRead(&_impl_);
19890|    863|  return static_cast<::google::protobuf::FeatureSet_RepeatedFieldEncoding>(_impl_.repeated_field_encoding_);
19891|    863|}
_ZN6google8protobuf10FeatureSet37_internal_set_repeated_field_encodingENS0_32FeatureSet_RepeatedFieldEncodingE:
19892|      3|inline void FeatureSet::_internal_set_repeated_field_encoding(::google::protobuf::FeatureSet_RepeatedFieldEncoding value) {
19893|      3|  ::google::protobuf::internal::TSanWrite(&_impl_);
19894|       |  assert(::google::protobuf::FeatureSet_RepeatedFieldEncoding_IsValid(value));
19895|      3|  _impl_.repeated_field_encoding_ = value;
19896|      3|}
_ZNK6google8protobuf10FeatureSet15utf8_validationEv:
19908|    446|inline ::google::protobuf::FeatureSet_Utf8Validation FeatureSet::utf8_validation() const {
19909|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSet.utf8_validation)
19910|    446|  return _internal_utf8_validation();
19911|    446|}
_ZNK6google8protobuf10FeatureSet25_internal_utf8_validationEv:
19917|    860|inline ::google::protobuf::FeatureSet_Utf8Validation FeatureSet::_internal_utf8_validation() const {
19918|    860|  ::google::protobuf::internal::TSanRead(&_impl_);
19919|    860|  return static_cast<::google::protobuf::FeatureSet_Utf8Validation>(_impl_.utf8_validation_);
19920|    860|}
_ZNK6google8protobuf10FeatureSet16message_encodingEv:
19937|    505|inline ::google::protobuf::FeatureSet_MessageEncoding FeatureSet::message_encoding() const {
19938|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSet.message_encoding)
19939|    505|  return _internal_message_encoding();
19940|    505|}
_ZNK6google8protobuf10FeatureSet26_internal_message_encodingEv:
19946|    919|inline ::google::protobuf::FeatureSet_MessageEncoding FeatureSet::_internal_message_encoding() const {
19947|    919|  ::google::protobuf::internal::TSanRead(&_impl_);
19948|    919|  return static_cast<::google::protobuf::FeatureSet_MessageEncoding>(_impl_.message_encoding_);
19949|    919|}
_ZNK6google8protobuf10FeatureSet11json_formatEv:
19966|    446|inline ::google::protobuf::FeatureSet_JsonFormat FeatureSet::json_format() const {
19967|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSet.json_format)
19968|    446|  return _internal_json_format();
19969|    446|}
_ZNK6google8protobuf10FeatureSet21_internal_json_formatEv:
19975|    860|inline ::google::protobuf::FeatureSet_JsonFormat FeatureSet::_internal_json_format() const {
19976|    860|  ::google::protobuf::internal::TSanRead(&_impl_);
19977|    860|  return static_cast<::google::protobuf::FeatureSet_JsonFormat>(_impl_.json_format_);
19978|    860|}
_ZNK6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault7editionEv:
19999|     64|inline ::google::protobuf::Edition FeatureSetDefaults_FeatureSetEditionDefault::edition() const {
20000|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition)
20001|     64|  return _internal_edition();
20002|     64|}
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault11set_editionENS0_7EditionE:
20003|      4|inline void FeatureSetDefaults_FeatureSetEditionDefault::set_edition(::google::protobuf::Edition value) {
20004|      4|  _internal_set_edition(value);
20005|      4|  _impl_._has_bits_[0] |= 0x00000004u;
20006|       |  // @@protoc_insertion_point(field_set:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition)
20007|      4|}
_ZNK6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault17_internal_editionEv:
20008|     64|inline ::google::protobuf::Edition FeatureSetDefaults_FeatureSetEditionDefault::_internal_edition() const {
20009|     64|  ::google::protobuf::internal::TSanRead(&_impl_);
20010|     64|  return static_cast<::google::protobuf::Edition>(_impl_.edition_);
20011|     64|}
_ZN6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault21_internal_set_editionENS0_7EditionE:
20012|      4|inline void FeatureSetDefaults_FeatureSetEditionDefault::_internal_set_edition(::google::protobuf::Edition value) {
20013|      4|  ::google::protobuf::internal::TSanWrite(&_impl_);
20014|       |  assert(::google::protobuf::Edition_IsValid(value));
20015|      4|  _impl_.edition_ = value;
20016|      4|}
_ZNK6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault30_internal_overridable_featuresEv:
20029|     20|inline const ::google::protobuf::FeatureSet& FeatureSetDefaults_FeatureSetEditionDefault::_internal_overridable_features() const {
20030|     20|  ::google::protobuf::internal::TSanRead(&_impl_);
20031|     20|  const ::google::protobuf::FeatureSet* p = _impl_.overridable_features_;
20032|     20|  return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::FeatureSet&>(::google::protobuf::_FeatureSet_default_instance_);
  ------------------
  |  Branch (20032:10): [True: 20, False: 0]
  ------------------
20033|     20|}
_ZNK6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault20overridable_featuresEv:
20034|     20|inline const ::google::protobuf::FeatureSet& FeatureSetDefaults_FeatureSetEditionDefault::overridable_features() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
20035|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridable_features)
20036|     20|  return _internal_overridable_features();
20037|     20|}
_ZNK6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault24_internal_fixed_featuresEv:
20125|     20|inline const ::google::protobuf::FeatureSet& FeatureSetDefaults_FeatureSetEditionDefault::_internal_fixed_features() const {
20126|     20|  ::google::protobuf::internal::TSanRead(&_impl_);
20127|     20|  const ::google::protobuf::FeatureSet* p = _impl_.fixed_features_;
20128|     20|  return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::FeatureSet&>(::google::protobuf::_FeatureSet_default_instance_);
  ------------------
  |  Branch (20128:10): [True: 20, False: 0]
  ------------------
20129|     20|}
_ZNK6google8protobuf43FeatureSetDefaults_FeatureSetEditionDefault14fixed_featuresEv:
20130|     20|inline const ::google::protobuf::FeatureSet& FeatureSetDefaults_FeatureSetEditionDefault::fixed_features() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
20131|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixed_features)
20132|     20|  return _internal_fixed_features();
20133|     20|}
_ZNK6google8protobuf18FeatureSetDefaults8defaultsEv:
20248|     12|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
20249|       |  // @@protoc_insertion_point(field_list:google.protobuf.FeatureSetDefaults.defaults)
20250|     12|  return _internal_defaults();
20251|     12|}
_ZNK6google8protobuf18FeatureSetDefaults18_internal_defaultsEv:
20253|     13|FeatureSetDefaults::_internal_defaults() const {
20254|     13|  ::google::protobuf::internal::TSanRead(&_impl_);
20255|     13|  return _impl_.defaults_;
20256|     13|}
_ZNK6google8protobuf18FeatureSetDefaults15minimum_editionEv:
20273|      4|inline ::google::protobuf::Edition FeatureSetDefaults::minimum_edition() const {
20274|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSetDefaults.minimum_edition)
20275|      4|  return _internal_minimum_edition();
20276|      4|}
_ZNK6google8protobuf18FeatureSetDefaults25_internal_minimum_editionEv:
20282|      4|inline ::google::protobuf::Edition FeatureSetDefaults::_internal_minimum_edition() const {
20283|      4|  ::google::protobuf::internal::TSanRead(&_impl_);
20284|      4|  return static_cast<::google::protobuf::Edition>(_impl_.minimum_edition_);
20285|      4|}
_ZNK6google8protobuf18FeatureSetDefaults15maximum_editionEv:
20302|      4|inline ::google::protobuf::Edition FeatureSetDefaults::maximum_edition() const {
20303|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSetDefaults.maximum_edition)
20304|      4|  return _internal_maximum_edition();
20305|      4|}
_ZNK6google8protobuf18FeatureSetDefaults25_internal_maximum_editionEv:
20311|      4|inline ::google::protobuf::Edition FeatureSetDefaults::_internal_maximum_edition() const {
20312|      4|  ::google::protobuf::internal::TSanRead(&_impl_);
20313|      4|  return static_cast<::google::protobuf::Edition>(_impl_.maximum_edition_);
20314|      4|}
_ZNK6google8protobuf10FeatureSet12GetExtensionINS0_8internal17MessageTypeTraitsIN2pb11CppFeaturesEEELh11ELb0ETnNSt3__19enable_ifIXsrT_14kLifetimeBoundEiE4typeELi0EEENSA_8Singular9ConstTypeERKNS3_19ExtensionIdentifierIS1_SA_XT0_EXT1_EEE:
 2317|    203|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2318|    203|    return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
 2319|    203|  }
_ZN6google8protobuf10FeatureSet16MutableExtensionINS0_8internal17MessageTypeTraitsIN2pb11CppFeaturesEEELh11ELb0EEENT_8Singular11MutableTypeERKNS3_19ExtensionIdentifierIS1_S8_XT0_EXT1_EEE:
 2326|    203|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2327|    203|    return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
 2328|    203|  }

_ZN6google8protobuf25EncodedDescriptorDatabase3AddEPKvi:
  545|      6|                                    int size) {
  546|      6|  FileDescriptorProto file;
  547|      6|  if (file.ParseFromArray(encoded_file_descriptor, size)) {
  ------------------
  |  Branch (547:7): [True: 6, False: 0]
  ------------------
  548|      6|    return index_->AddFile(file, std::make_pair(encoded_file_descriptor, size));
  549|      6|  } else {
  550|      0|    ABSL_LOG(ERROR) << "Invalid file descriptor data passed to "
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  551|      0|                       "EncodedDescriptorDatabase::Add().";
  552|      0|    return false;
  553|      0|  }
  554|      6|}
_ZN6google8protobuf25EncodedDescriptorDatabase14FindFileByNameERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPNS0_19FileDescriptorProtoE:
  565|      4|                                               FileDescriptorProto* output) {
  566|      4|  return MaybeParse(index_->FindFile(filename), output);
  567|      4|}
_ZN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9AddSymbolEN4absl12lts_2024011611string_viewE:
  684|     44|    absl::string_view symbol) {
  685|     44|  SymbolEntry entry = {static_cast<int>(all_values_.size() - 1),
  686|     44|                       EncodeString(symbol)};
  687|     44|  std::string entry_as_string = entry.AsString(*this);
  688|       |
  689|       |  // We need to make sure not to violate our map invariant.
  690|       |
  691|       |  // If the symbol name is invalid it could break our lookup algorithm (which
  692|       |  // relies on the fact that '.' sorts before all other characters that are
  693|       |  // valid in symbol names).
  694|     44|  if (!ValidateSymbolName(symbol)) {
  ------------------
  |  Branch (694:7): [True: 0, False: 44]
  ------------------
  695|      0|    ABSL_LOG(ERROR) << "Invalid symbol name: " << entry_as_string;
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  696|      0|    return false;
  697|      0|  }
  698|       |
  699|     44|  auto iter = FindLastLessOrEqual(&by_symbol_, entry);
  700|     44|  if (!CheckForMutualSubsymbols(entry_as_string, &iter, by_symbol_.end(),
  ------------------
  |  Branch (700:7): [True: 0, False: 44]
  ------------------
  701|     44|                                *this)) {
  702|      0|    return false;
  703|      0|  }
  704|       |
  705|       |  // Same, but on by_symbol_flat_
  706|     44|  auto flat_iter =
  707|     44|      FindLastLessOrEqual(&by_symbol_flat_, entry, by_symbol_.key_comp());
  708|     44|  if (!CheckForMutualSubsymbols(entry_as_string, &flat_iter,
  ------------------
  |  Branch (708:7): [True: 0, False: 44]
  ------------------
  709|     44|                                by_symbol_flat_.end(), *this)) {
  710|      0|    return false;
  711|      0|  }
  712|       |
  713|       |  // OK, no conflicts.
  714|       |
  715|       |  // Insert the new symbol using the iterator as a hint, the new entry will
  716|       |  // appear immediately before the one the iterator is pointing at.
  717|     44|  by_symbol_.insert(iter, entry);
  718|       |
  719|     44|  return true;
  720|     44|}
_ZN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex10EnsureFlatEv:
  806|      4|void EncodedDescriptorDatabase::DescriptorIndex::EnsureFlat() {
  807|      4|  all_values_.shrink_to_fit();
  808|       |  // Merge each of the sets into their flat counterpart.
  809|      4|  MergeIntoFlat(&by_name_, &by_name_flat_);
  810|      4|  MergeIntoFlat(&by_symbol_, &by_symbol_flat_);
  811|      4|  MergeIntoFlat(&by_extension_, &by_extension_flat_);
  812|      4|}
_ZN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex8FindFileEN4absl12lts_2024011611string_viewE:
  848|      4|    absl::string_view filename) {
  849|      4|  EnsureFlat();
  850|       |
  851|      4|  auto it = std::lower_bound(by_name_flat_.begin(), by_name_flat_.end(),
  852|      4|                             filename, by_name_.key_comp());
  853|      4|  return it == by_name_flat_.end() || it->name(*this) != filename
  ------------------
  |  Branch (853:10): [True: 0, False: 4]
  |  Branch (853:39): [True: 0, False: 4]
  ------------------
  854|      4|             ? std::make_pair(nullptr, 0)
  855|      4|             : all_values_[it->data_offset].value();
  856|      4|}
_ZN6google8protobuf25EncodedDescriptorDatabase10MaybeParseENSt3__14pairIPKviEEPNS0_19FileDescriptorProtoE:
  866|      4|    std::pair<const void*, int> encoded_file, FileDescriptorProto* output) {
  867|      4|  if (encoded_file.first == nullptr) return false;
  ------------------
  |  Branch (867:7): [True: 0, False: 4]
  ------------------
  868|      4|  absl::string_view source(static_cast<const char*>(encoded_file.first),
  869|      4|                           encoded_file.second);
  870|      4|  return internal::ParseNoReflection(source, *output);
  871|      4|}
_ZN6google8protobuf25EncodedDescriptorDatabaseC2Ev:
  874|      2|    : index_(new DescriptorIndex()) {}
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex12EncodeStringEN4absl12lts_2024011611string_viewE:
  420|     57|  String EncodeString(absl::string_view str) const { return String(str); }
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntry8AsStringERKS2_:
  470|    116|    std::string AsString(const DescriptorIndex& index) const {
  471|    116|      auto p = package(index);
  472|    116|      return absl::StrCat(p, p.empty() ? "" : ".", symbol(index));
  ------------------
  |  Branch (472:30): [True: 0, False: 116]
  ------------------
  473|    116|    }
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntry7packageERKS2_:
  462|    654|    absl::string_view package(const DescriptorIndex& index) const {
  463|    654|      return index.DecodeString(index.all_values_[data_offset].encoded_package,
  464|    654|                                data_offset);
  465|    654|    }
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex12DecodeStringERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEi:
  421|  1.33k|  absl::string_view DecodeString(const String& str, int) const { return str; }
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntry6symbolERKS2_:
  466|    654|    absl::string_view symbol(const DescriptorIndex& index) const {
  467|    654|      return index.DecodeString(encoded_symbol, data_offset);
  468|    654|    }
descriptor_database.cc:_ZN6google8protobuf12_GLOBAL__N_118ValidateSymbolNameEN4absl12lts_2024011611string_viewE:
  138|     50|bool ValidateSymbolName(absl::string_view name) {
  139|    669|  for (char c : name) {
  ------------------
  |  Branch (139:15): [True: 669, False: 50]
  ------------------
  140|       |    // I don't trust ctype.h due to locales.  :(
  141|    669|    if (c != '.' && c != '_' && (c < '0' || c > '9') && (c < 'A' || c > 'Z') &&
  ------------------
  |  Branch (141:9): [True: 662, False: 7]
  |  Branch (141:21): [True: 662, False: 0]
  |  Branch (141:34): [True: 0, False: 662]
  |  Branch (141:45): [True: 662, False: 0]
  |  Branch (141:58): [True: 0, False: 662]
  |  Branch (141:69): [True: 565, False: 97]
  ------------------
  142|    565|        (c < 'a' || c > 'z')) {
  ------------------
  |  Branch (142:10): [True: 0, False: 565]
  |  Branch (142:21): [True: 0, False: 565]
  ------------------
  143|      0|      return false;
  144|      0|    }
  145|    669|  }
  146|     50|  return true;
  147|     50|}
descriptor_database.cc:_ZN6google8protobuf12_GLOBAL__N_111IsSubSymbolEN4absl12lts_2024011611string_viewES4_:
  172|     72|bool IsSubSymbol(absl::string_view sub_symbol, absl::string_view super_symbol) {
  173|     72|  return sub_symbol == super_symbol ||
  ------------------
  |  Branch (173:10): [True: 0, False: 72]
  ------------------
  174|     72|         (absl::StartsWith(super_symbol, sub_symbol) &&
  ------------------
  |  Branch (174:11): [True: 1, False: 71]
  ------------------
  175|      1|          super_symbol[sub_symbol.size()] == '.');
  ------------------
  |  Branch (175:11): [True: 0, False: 1]
  ------------------
  176|     72|}
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex12EncodedEntry5valueEv:
  430|      4|    Value value() const { return {data, size}; }
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntry4nameERKS2_:
  438|     29|    absl::string_view name(const DescriptorIndex& index) const {
  439|     29|      return index.DecodeString(encoded_name, data_offset);
  440|     29|    }
_ZN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex7AddFileINS0_19FileDescriptorProtoEEEbRKT_NSt3__14pairIPKviEE:
  616|      6|                                                         Value value) {
  617|       |  // We push `value` into the array first. This is important because the AddXXX
  618|       |  // functions below will expect it to be there.
  619|      6|  all_values_.push_back({value.first, value.second, {}});
  620|       |
  621|      6|  if (!ValidateSymbolName(file.package())) {
  ------------------
  |  Branch (621:7): [True: 0, False: 6]
  ------------------
  622|      0|    ABSL_LOG(ERROR) << "Invalid package name: " << file.package();
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  623|      0|    return false;
  624|      0|  }
  625|      6|  all_values_.back().encoded_package = EncodeString(file.package());
  626|       |
  627|      6|  if (!by_name_
  ------------------
  |  Branch (627:7): [True: 0, False: 6]
  |  Branch (627:7): [True: 0, False: 6]
  ------------------
  628|      6|           .insert({static_cast<int>(all_values_.size() - 1),
  629|      6|                    EncodeString(file.name())})
  630|      6|           .second ||
  631|      6|      std::binary_search(by_name_flat_.begin(), by_name_flat_.end(),
  ------------------
  |  Branch (631:7): [True: 0, False: 6]
  ------------------
  632|      6|                         file.name(), by_name_.key_comp())) {
  633|      0|    ABSL_LOG(ERROR) << "File already exists in database: " << file.name();
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  634|      0|    return false;
  635|      0|  }
  636|       |
  637|     38|  for (const auto& message_type : file.message_type()) {
  ------------------
  |  Branch (637:33): [True: 38, False: 6]
  ------------------
  638|     38|    if (!AddSymbol(message_type.name())) return false;
  ------------------
  |  Branch (638:9): [True: 0, False: 38]
  ------------------
  639|     38|    if (!AddNestedExtensions(file.name(), message_type)) return false;
  ------------------
  |  Branch (639:9): [True: 0, False: 38]
  ------------------
  640|     38|  }
  641|      6|  for (const auto& enum_type : file.enum_type()) {
  ------------------
  |  Branch (641:30): [True: 5, False: 6]
  ------------------
  642|      5|    if (!AddSymbol(enum_type.name())) return false;
  ------------------
  |  Branch (642:9): [True: 0, False: 5]
  ------------------
  643|      5|  }
  644|      6|  for (const auto& extension : file.extension()) {
  ------------------
  |  Branch (644:30): [True: 1, False: 6]
  ------------------
  645|      1|    if (!AddSymbol(extension.name())) return false;
  ------------------
  |  Branch (645:9): [True: 0, False: 1]
  ------------------
  646|      1|    if (!AddExtension(file.name(), extension)) return false;
  ------------------
  |  Branch (646:9): [True: 0, False: 1]
  ------------------
  647|      1|  }
  648|      6|  for (const auto& service : file.service()) {
  ------------------
  |  Branch (648:28): [True: 0, False: 6]
  ------------------
  649|      0|    if (!AddSymbol(service.name())) return false;
  ------------------
  |  Branch (649:9): [True: 0, False: 0]
  ------------------
  650|      0|  }
  651|       |
  652|      6|  return true;
  653|      6|}
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareclERKNS2_9FileEntryES6_:
  445|      6|    bool operator()(const FileEntry& a, const FileEntry& b) const {
  446|      6|      return a.name(index) < b.name(index);
  447|      6|    }
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareclERKNS2_9FileEntryEN4absl12lts_2024011611string_viewE:
  448|     12|    bool operator()(const FileEntry& a, absl::string_view b) const {
  449|     12|      return a.name(index) < b;
  450|     12|    }
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareclEN4absl12lts_2024011611string_viewERKNS2_9FileEntryE:
  451|      1|    bool operator()(absl::string_view a, const FileEntry& b) const {
  452|      1|      return a < b.name(index);
  453|      1|    }
_ZN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex19AddNestedExtensionsINS0_15DescriptorProtoEEEbN4absl12lts_2024011611string_viewERKT_:
  724|     48|    absl::string_view filename, const DescProto& message_type) {
  725|     48|  for (const auto& nested_type : message_type.nested_type()) {
  ------------------
  |  Branch (725:32): [True: 10, False: 48]
  ------------------
  726|     10|    if (!AddNestedExtensions(filename, nested_type)) return false;
  ------------------
  |  Branch (726:9): [True: 0, False: 10]
  ------------------
  727|     10|  }
  728|     48|  for (const auto& extension : message_type.extension()) {
  ------------------
  |  Branch (728:30): [True: 0, False: 48]
  ------------------
  729|      0|    if (!AddExtension(filename, extension)) return false;
  ------------------
  |  Branch (729:9): [True: 0, False: 0]
  ------------------
  730|      0|  }
  731|     48|  return true;
  732|     48|}
_ZN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex12AddExtensionINS0_20FieldDescriptorProtoEEEbN4absl12lts_2024011611string_viewERKT_:
  736|      1|    absl::string_view filename, const FieldProto& field) {
  737|      1|  if (!field.extendee().empty() && field.extendee()[0] == '.') {
  ------------------
  |  Branch (737:7): [True: 1, False: 0]
  |  Branch (737:36): [True: 1, False: 0]
  ------------------
  738|       |    // The extension is fully-qualified.  We can use it as a lookup key in
  739|       |    // the by_symbol_ table.
  740|      1|    if (!by_extension_
  ------------------
  |  Branch (740:9): [True: 0, False: 1]
  |  Branch (740:9): [True: 0, False: 1]
  ------------------
  741|      1|             .insert({static_cast<int>(all_values_.size() - 1),
  742|      1|                      EncodeString(field.extendee()), field.number()})
  743|      1|             .second ||
  744|      1|        std::binary_search(
  ------------------
  |  Branch (744:9): [True: 0, False: 1]
  ------------------
  745|      1|            by_extension_flat_.begin(), by_extension_flat_.end(),
  746|      1|            std::make_pair(field.extendee().substr(1), field.number()),
  747|      1|            by_extension_.key_comp())) {
  748|      0|      ABSL_LOG(ERROR)
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  749|      0|          << "Extension conflicts with extension already in database: "
  750|      0|             "extend "
  751|      0|          << field.extendee() << " { " << field.name() << " = "
  752|      0|          << field.number() << " } from:" << filename;
  753|      0|      return false;
  754|      0|    }
  755|      1|  } else {
  756|       |    // Not fully-qualified.  We can't really do anything here, unfortunately.
  757|       |    // We don't consider this an error, though, because the descriptor is
  758|       |    // valid.
  759|      0|  }
  760|      1|  return true;
  761|      1|}
descriptor_database.cc:_ZN6google8protobuf12_GLOBAL__N_119FindLastLessOrEqualIN4absl12lts_202401169btree_setINS0_25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EEEES8_EENT_14const_iteratorEPKSE_RKT0_:
  154|     44|    const Container* container, const Key& key) {
  155|     44|  auto iter = container->upper_bound(key);
  156|     44|  if (iter != container->begin()) --iter;
  ------------------
  |  Branch (156:7): [True: 37, False: 7]
  ------------------
  157|     44|  return iter;
  158|     44|}
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareclINS2_11SymbolEntryES5_EEbRKT_RKT0_:
  496|    269|    bool operator()(const T& lhs, const U& rhs) const {
  497|    269|      auto lhs_parts = GetParts(lhs);
  498|    269|      auto rhs_parts = GetParts(rhs);
  499|       |
  500|       |      // Fast path to avoid making the whole string for common cases.
  501|    269|      if (int res =
  ------------------
  |  Branch (501:15): [True: 63, False: 206]
  ------------------
  502|    269|              lhs_parts.first.substr(0, rhs_parts.first.size())
  503|    269|                  .compare(rhs_parts.first.substr(0, lhs_parts.first.size()))) {
  504|       |        // If the packages already differ, exit early.
  505|     63|        return res < 0;
  506|    206|      } else if (lhs_parts.first.size() == rhs_parts.first.size()) {
  ------------------
  |  Branch (506:18): [True: 206, False: 0]
  ------------------
  507|    206|        return lhs_parts.second < rhs_parts.second;
  508|    206|      }
  509|      0|      return AsString(lhs) < AsString(rhs);
  510|    269|    }
_ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompare8GetPartsERKNS2_11SymbolEntryE:
  485|    538|        const SymbolEntry& entry) const {
  486|    538|      auto package = entry.package(index);
  487|    538|      if (package.empty()) return {entry.symbol(index), absl::string_view{}};
  ------------------
  |  Branch (487:11): [True: 0, False: 538]
  ------------------
  488|    538|      return {package, entry.symbol(index)};
  489|    538|    }
descriptor_database.cc:_ZN6google8protobufL24CheckForMutualSubsymbolsIN4absl12lts_2024011618container_internal14btree_iteratorIKNS4_10btree_nodeINS4_10set_paramsINS0_25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS9_13SymbolCompareENSt3__19allocatorISA_EELi256ELb0EEEEERKSA_PSI_EENS5_ISG_SJ_SK_EES9_EEbNS3_11string_viewEPT_T0_RKT1_:
  657|     44|                                     Iter2 end, const Index& index) {
  658|     44|  if (*iter != end) {
  ------------------
  |  Branch (658:7): [True: 41, False: 3]
  ------------------
  659|     41|    if (IsSubSymbol((*iter)->AsString(index), symbol_name)) {
  ------------------
  |  Branch (659:9): [True: 0, False: 41]
  ------------------
  660|      0|      ABSL_LOG(ERROR) << "Symbol name \"" << symbol_name
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  661|      0|                      << "\" conflicts with the existing symbol \""
  662|      0|                      << (*iter)->AsString(index) << "\".";
  663|      0|      return false;
  664|      0|    }
  665|       |
  666|       |    // OK, that worked.  Now we have to make sure that no symbol in the map is
  667|       |    // a sub-symbol of the one we are inserting.  The only symbol which could
  668|       |    // be so is the first symbol that is greater than the new symbol.  Since
  669|       |    // |iter| points at the last symbol that is less than or equal, we just have
  670|       |    // to increment it.
  671|     41|    ++*iter;
  672|       |
  673|     41|    if (*iter != end && IsSubSymbol(symbol_name, (*iter)->AsString(index))) {
  ------------------
  |  Branch (673:9): [True: 29, False: 12]
  |  Branch (673:9): [True: 0, False: 41]
  |  Branch (673:25): [True: 0, False: 29]
  ------------------
  674|      0|      ABSL_LOG(ERROR) << "Symbol name \"" << symbol_name
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  675|      0|                      << "\" conflicts with the existing symbol \""
  676|      0|                      << (*iter)->AsString(index) << "\".";
  677|      0|      return false;
  678|      0|    }
  679|     41|  }
  680|     44|  return true;
  681|     44|}
descriptor_database.cc:_ZN6google8protobuf12_GLOBAL__N_119FindLastLessOrEqualINSt3__16vectorINS0_25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS3_9allocatorIS7_EEEES7_NS6_13SymbolCompareEEENT_14const_iteratorEPKSC_RKT0_RKT1_:
  163|     44|    const Container* container, const Key& key, const Cmp& cmp) {
  164|     44|  auto iter = std::upper_bound(container->begin(), container->end(), key, cmp);
  165|     44|  if (iter != container->begin()) --iter;
  ------------------
  |  Branch (165:7): [True: 2, False: 42]
  ------------------
  166|     44|  return iter;
  167|     44|}
descriptor_database.cc:_ZN6google8protobufL24CheckForMutualSubsymbolsINSt3__111__wrap_iterIPKNS0_25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEENS3_IPS6_EES5_EEbN4absl12lts_2024011611string_viewEPT_T0_RKT1_:
  657|     44|                                     Iter2 end, const Index& index) {
  658|     44|  if (*iter != end) {
  ------------------
  |  Branch (658:7): [True: 2, False: 42]
  ------------------
  659|      2|    if (IsSubSymbol((*iter)->AsString(index), symbol_name)) {
  ------------------
  |  Branch (659:9): [True: 0, False: 2]
  ------------------
  660|      0|      ABSL_LOG(ERROR) << "Symbol name \"" << symbol_name
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  661|      0|                      << "\" conflicts with the existing symbol \""
  662|      0|                      << (*iter)->AsString(index) << "\".";
  663|      0|      return false;
  664|      0|    }
  665|       |
  666|       |    // OK, that worked.  Now we have to make sure that no symbol in the map is
  667|       |    // a sub-symbol of the one we are inserting.  The only symbol which could
  668|       |    // be so is the first symbol that is greater than the new symbol.  Since
  669|       |    // |iter| points at the last symbol that is less than or equal, we just have
  670|       |    // to increment it.
  671|      2|    ++*iter;
  672|       |
  673|      2|    if (*iter != end && IsSubSymbol(symbol_name, (*iter)->AsString(index))) {
  ------------------
  |  Branch (673:9): [True: 0, False: 2]
  |  Branch (673:9): [True: 0, False: 2]
  |  Branch (673:25): [True: 0, False: 0]
  ------------------
  674|      0|      ABSL_LOG(ERROR) << "Symbol name \"" << symbol_name
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  675|      0|                      << "\" conflicts with the existing symbol \""
  676|      0|                      << (*iter)->AsString(index) << "\".";
  677|      0|      return false;
  678|      0|    }
  679|      2|  }
  680|     44|  return true;
  681|     44|}
descriptor_database.cc:_ZN6google8protobufL13MergeIntoFlatINS0_25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS3_11FileCompareEEEvPN4absl12lts_202401169btree_setIT_T0_NSt3__19allocatorIS9_EEEEPNSB_6vectorIS9_SD_EE:
  797|      4|static void MergeIntoFlat(absl::btree_set<T, Less>* s, std::vector<T>* flat) {
  798|      4|  if (s->empty()) return;
  ------------------
  |  Branch (798:7): [True: 2, False: 2]
  ------------------
  799|      2|  std::vector<T> new_flat(s->size() + flat->size());
  800|      2|  std::merge(s->begin(), s->end(), flat->begin(), flat->end(), &new_flat[0],
  801|      2|             s->key_comp());
  802|      2|  *flat = std::move(new_flat);
  803|      2|  s->clear();
  804|      2|}
descriptor_database.cc:_ZN6google8protobufL13MergeIntoFlatINS0_25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS3_13SymbolCompareEEEvPN4absl12lts_202401169btree_setIT_T0_NSt3__19allocatorIS9_EEEEPNSB_6vectorIS9_SD_EE:
  797|      4|static void MergeIntoFlat(absl::btree_set<T, Less>* s, std::vector<T>* flat) {
  798|      4|  if (s->empty()) return;
  ------------------
  |  Branch (798:7): [True: 2, False: 2]
  ------------------
  799|      2|  std::vector<T> new_flat(s->size() + flat->size());
  800|      2|  std::merge(s->begin(), s->end(), flat->begin(), flat->end(), &new_flat[0],
  801|      2|             s->key_comp());
  802|      2|  *flat = std::move(new_flat);
  803|      2|  s->clear();
  804|      2|}
descriptor_database.cc:_ZN6google8protobufL13MergeIntoFlatINS0_25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS3_16ExtensionCompareEEEvPN4absl12lts_202401169btree_setIT_T0_NSt3__19allocatorIS9_EEEEPNSB_6vectorIS9_SD_EE:
  797|      4|static void MergeIntoFlat(absl::btree_set<T, Less>* s, std::vector<T>* flat) {
  798|      4|  if (s->empty()) return;
  ------------------
  |  Branch (798:7): [True: 3, False: 1]
  ------------------
  799|      1|  std::vector<T> new_flat(s->size() + flat->size());
  800|      1|  std::merge(s->begin(), s->end(), flat->begin(), flat->end(), &new_flat[0],
  801|      1|             s->key_comp());
  802|      1|  *flat = std::move(new_flat);
  803|      1|  s->clear();
  804|      1|}

_ZN6google8protobuf18DescriptorDatabaseC2Ev:
   52|      2|  inline DescriptorDatabase() {}

descriptor.cc:_ZN6google8protobuf8internal16VisitDescriptorsIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEvRKNS0_14FileDescriptorES6_T_:
  165|      4|                      const FileDescriptorProto& proto, Visitor visitor) {
  166|      4|  using VisitorImpl = internal::VisitorImpl<Visitor>;
  167|      4|  internal::VisitImpl<VisitorImpl>{VisitorImpl(visitor)}.Visit(file, proto);
  168|      4|}
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EC2ES9_:
  149|      4|  explicit VisitorImpl(Visitor visitor) : Visitor(visitor) {}
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5VisitIJS6_EEEvRKNS0_14FileDescriptorEDpRT_:
  108|      4|  void Visit(const FileDescriptor& descriptor, Proto&... proto) {
  109|      4|    visitor(descriptor, proto...);
  110|     35|    for (int i = 0; i < descriptor.message_type_count(); i++) {
  ------------------
  |  Branch (110:21): [True: 31, False: 4]
  ------------------
  111|     31|      Visit(*descriptor.message_type(i), message_type(proto, i)...);
  112|     31|    }
  113|      7|    for (int i = 0; i < descriptor.enum_type_count(); i++) {
  ------------------
  |  Branch (113:21): [True: 3, False: 4]
  ------------------
  114|      3|      Visit(*descriptor.enum_type(i), enum_type(proto, i)...);
  115|      3|    }
  116|      5|    for (int i = 0; i < descriptor.extension_count(); i++) {
  ------------------
  |  Branch (116:21): [True: 1, False: 4]
  ------------------
  117|      1|      Visit(*descriptor.extension(i), extension(proto, i)...);
  118|      1|    }
  119|      4|    for (int i = 0; i < descriptor.service_count(); i++) {
  ------------------
  |  Branch (119:21): [True: 0, False: 4]
  ------------------
  120|      0|      Visit(*descriptor.service(i), service(proto, i)...);
  121|      0|    }
  122|      4|  }
descriptor.cc:_ZNK6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EclENSA_15DescriptorEaterESB_:
  159|    191|  void operator()(DescriptorEater, DescriptorEater) const {}
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_14FileDescriptorEEEOT_:
  157|      4|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IS6_EEOT_:
  157|      4|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5VisitIJKNS0_15DescriptorProtoEEEEvRKNS0_10DescriptorEDpRT_:
   66|     41|  void Visit(const Descriptor& descriptor, Proto&... proto) {
   67|     41|    visitor(descriptor, proto...);
   68|       |
   69|     58|    for (int i = 0; i < descriptor.enum_type_count(); i++) {
  ------------------
  |  Branch (69:21): [True: 17, False: 41]
  ------------------
   70|     17|      Visit(*descriptor.enum_type(i), enum_type(proto, i)...);
   71|     17|    }
   72|       |
   73|     42|    for (int i = 0; i < descriptor.oneof_decl_count(); i++) {
  ------------------
  |  Branch (73:21): [True: 1, False: 41]
  ------------------
   74|      1|      Visit(*descriptor.oneof_decl(i), oneof_decl(proto, i)...);
   75|      1|    }
   76|       |
   77|    243|    for (int i = 0; i < descriptor.field_count(); i++) {
  ------------------
  |  Branch (77:21): [True: 202, False: 41]
  ------------------
   78|    202|      Visit(*descriptor.field(i), field(proto, i)...);
   79|    202|    }
   80|       |
   81|     51|    for (int i = 0; i < descriptor.nested_type_count(); i++) {
  ------------------
  |  Branch (81:21): [True: 10, False: 41]
  ------------------
   82|     10|      Visit(*descriptor.nested_type(i), nested_type(proto, i)...);
   83|     10|    }
   84|       |
   85|     41|    for (int i = 0; i < descriptor.extension_count(); i++) {
  ------------------
  |  Branch (85:21): [True: 0, False: 41]
  ------------------
   86|      0|      Visit(*descriptor.extension(i), extension(proto, i)...);
   87|      0|    }
   88|       |
   89|     55|    for (int i = 0; i < descriptor.extension_range_count(); i++) {
  ------------------
  |  Branch (89:21): [True: 14, False: 41]
  ------------------
   90|     14|      Visit(*descriptor.extension_range(i), extension_range(proto, i)...);
   91|     14|    }
   92|     41|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_10DescriptorEEEOT_:
  157|     41|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_15DescriptorProtoEEEOT_:
  157|     41|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE9enum_typeERKNS0_15DescriptorProtoEi:
  127|     17|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5VisitIJKNS0_20OneofDescriptorProtoEEEEvRKNS0_15OneofDescriptorEDpRT_:
   61|      1|  void Visit(const OneofDescriptor& descriptor, Proto&... proto) {
   62|      1|    visitor(descriptor, proto...);
   63|      1|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_15OneofDescriptorEEEOT_:
  157|      1|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_20OneofDescriptorProtoEEEOT_:
  157|      1|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE10oneof_declERKNS0_15DescriptorProtoEi:
  127|      1|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5fieldERKNS0_15DescriptorProtoEi:
  127|    202|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE11nested_typeERKNS0_15DescriptorProtoEi:
  127|     10|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5VisitIJKNS0_30DescriptorProto_ExtensionRangeEEEEvRKNS0_10Descriptor14ExtensionRangeEDpRT_:
   56|     14|  void Visit(const Descriptor::ExtensionRange& descriptor, Proto&... proto) {
   57|     14|    visitor(descriptor, proto...);
   58|     14|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_10Descriptor14ExtensionRangeEEEOT_:
  157|     14|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_30DescriptorProto_ExtensionRangeEEEOT_:
  157|     14|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE15extension_rangeERKNS0_15DescriptorProtoEi:
  127|     14|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE12message_typeES7_i:
  127|     31|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5VisitIJKNS0_19EnumDescriptorProtoEEEEvRKNS0_14EnumDescriptorEDpRT_:
   48|     20|  void Visit(const EnumDescriptor& descriptor, Proto&... proto) {
   49|     20|    visitor(descriptor, proto...);
   50|    131|    for (int i = 0; i < descriptor.value_count(); i++) {
  ------------------
  |  Branch (50:21): [True: 111, False: 20]
  ------------------
   51|    111|      Visit(*descriptor.value(i), value(proto, i)...);
   52|    111|    }
   53|     20|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_14EnumDescriptorEEEOT_:
  157|     20|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_19EnumDescriptorProtoEEEOT_:
  157|     20|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5VisitIJKNS0_24EnumValueDescriptorProtoEEEEvRKNS0_19EnumValueDescriptorEDpRT_:
   43|    111|  void Visit(const EnumValueDescriptor& descriptor, Proto&... proto) {
   44|    111|    visitor(descriptor, proto...);
   45|    111|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_19EnumValueDescriptorEEEOT_:
  157|    111|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3E15DescriptorEaterC2IRKNS0_24EnumValueDescriptorProtoEEEOT_:
  157|    111|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5valueERKNS0_19EnumDescriptorProtoEi:
  127|    111|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE9enum_typeES7_i:
  127|      3|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE5VisitIJKNS0_20FieldDescriptorProtoEEEEvRKNS0_15FieldDescriptorEDpRT_:
   38|    203|  void Visit(const FieldDescriptor& descriptor, Proto&... proto) {
   39|    203|    visitor(descriptor, proto...);
   40|    203|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_3EEE9extensionES7_i:
  127|      1|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal16VisitDescriptorsIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEvRKNS0_14FileDescriptorES6_T_:
  165|      4|                      const FileDescriptorProto& proto, Visitor visitor) {
  166|      4|  using VisitorImpl = internal::VisitorImpl<Visitor>;
  167|      4|  internal::VisitImpl<VisitorImpl>{VisitorImpl(visitor)}.Visit(file, proto);
  168|      4|}
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EC2ES9_:
  149|      4|  explicit VisitorImpl(Visitor visitor) : Visitor(visitor) {}
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5VisitIJS6_EEEvRKNS0_14FileDescriptorEDpRT_:
  108|      4|  void Visit(const FileDescriptor& descriptor, Proto&... proto) {
  109|      4|    visitor(descriptor, proto...);
  110|     35|    for (int i = 0; i < descriptor.message_type_count(); i++) {
  ------------------
  |  Branch (110:21): [True: 31, False: 4]
  ------------------
  111|     31|      Visit(*descriptor.message_type(i), message_type(proto, i)...);
  112|     31|    }
  113|      7|    for (int i = 0; i < descriptor.enum_type_count(); i++) {
  ------------------
  |  Branch (113:21): [True: 3, False: 4]
  ------------------
  114|      3|      Visit(*descriptor.enum_type(i), enum_type(proto, i)...);
  115|      3|    }
  116|      5|    for (int i = 0; i < descriptor.extension_count(); i++) {
  ------------------
  |  Branch (116:21): [True: 1, False: 4]
  ------------------
  117|      1|      Visit(*descriptor.extension(i), extension(proto, i)...);
  118|      1|    }
  119|      4|    for (int i = 0; i < descriptor.service_count(); i++) {
  ------------------
  |  Branch (119:21): [True: 0, False: 4]
  ------------------
  120|      0|      Visit(*descriptor.service(i), service(proto, i)...);
  121|      0|    }
  122|      4|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5VisitIJKNS0_15DescriptorProtoEEEEvRKNS0_10DescriptorEDpRT_:
   66|     41|  void Visit(const Descriptor& descriptor, Proto&... proto) {
   67|     41|    visitor(descriptor, proto...);
   68|       |
   69|     58|    for (int i = 0; i < descriptor.enum_type_count(); i++) {
  ------------------
  |  Branch (69:21): [True: 17, False: 41]
  ------------------
   70|     17|      Visit(*descriptor.enum_type(i), enum_type(proto, i)...);
   71|     17|    }
   72|       |
   73|     42|    for (int i = 0; i < descriptor.oneof_decl_count(); i++) {
  ------------------
  |  Branch (73:21): [True: 1, False: 41]
  ------------------
   74|      1|      Visit(*descriptor.oneof_decl(i), oneof_decl(proto, i)...);
   75|      1|    }
   76|       |
   77|    243|    for (int i = 0; i < descriptor.field_count(); i++) {
  ------------------
  |  Branch (77:21): [True: 202, False: 41]
  ------------------
   78|    202|      Visit(*descriptor.field(i), field(proto, i)...);
   79|    202|    }
   80|       |
   81|     51|    for (int i = 0; i < descriptor.nested_type_count(); i++) {
  ------------------
  |  Branch (81:21): [True: 10, False: 41]
  ------------------
   82|     10|      Visit(*descriptor.nested_type(i), nested_type(proto, i)...);
   83|     10|    }
   84|       |
   85|     41|    for (int i = 0; i < descriptor.extension_count(); i++) {
  ------------------
  |  Branch (85:21): [True: 0, False: 41]
  ------------------
   86|      0|      Visit(*descriptor.extension(i), extension(proto, i)...);
   87|      0|    }
   88|       |
   89|     55|    for (int i = 0; i < descriptor.extension_range_count(); i++) {
  ------------------
  |  Branch (89:21): [True: 14, False: 41]
  ------------------
   90|     14|      Visit(*descriptor.extension_range(i), extension_range(proto, i)...);
   91|     14|    }
   92|     41|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE9enum_typeERKNS0_15DescriptorProtoEi:
  127|     17|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5VisitIJKNS0_20OneofDescriptorProtoEEEEvRKNS0_15OneofDescriptorEDpRT_:
   61|      1|  void Visit(const OneofDescriptor& descriptor, Proto&... proto) {
   62|      1|    visitor(descriptor, proto...);
   63|      1|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE10oneof_declERKNS0_15DescriptorProtoEi:
  127|      1|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5fieldERKNS0_15DescriptorProtoEi:
  127|    202|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE11nested_typeERKNS0_15DescriptorProtoEi:
  127|     10|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5VisitIJKNS0_30DescriptorProto_ExtensionRangeEEEEvRKNS0_10Descriptor14ExtensionRangeEDpRT_:
   56|     14|  void Visit(const Descriptor::ExtensionRange& descriptor, Proto&... proto) {
   57|     14|    visitor(descriptor, proto...);
   58|     14|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE15extension_rangeERKNS0_15DescriptorProtoEi:
  127|     14|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE12message_typeES7_i:
  127|     31|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5VisitIJKNS0_19EnumDescriptorProtoEEEEvRKNS0_14EnumDescriptorEDpRT_:
   48|     20|  void Visit(const EnumDescriptor& descriptor, Proto&... proto) {
   49|     20|    visitor(descriptor, proto...);
   50|    131|    for (int i = 0; i < descriptor.value_count(); i++) {
  ------------------
  |  Branch (50:21): [True: 111, False: 20]
  ------------------
   51|    111|      Visit(*descriptor.value(i), value(proto, i)...);
   52|    111|    }
   53|     20|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5VisitIJKNS0_24EnumValueDescriptorProtoEEEEvRKNS0_19EnumValueDescriptorEDpRT_:
   43|    111|  void Visit(const EnumValueDescriptor& descriptor, Proto&... proto) {
   44|    111|    visitor(descriptor, proto...);
   45|    111|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5valueERKNS0_19EnumDescriptorProtoEi:
  127|    111|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE9enum_typeES7_i:
  127|      3|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE5VisitIJKNS0_20FieldDescriptorProtoEEEEvRKNS0_15FieldDescriptorEDpRT_:
   38|    203|  void Visit(const FieldDescriptor& descriptor, Proto&... proto) {
   39|    203|    visitor(descriptor, proto...);
   40|    203|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_4EEE9extensionES7_i:
  127|      1|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal16VisitDescriptorsIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EEvRKNS0_14FileDescriptorET_:
  178|      4|void VisitDescriptors(const FileDescriptor& file, Visitor visitor) {
  179|      4|  using VisitorImpl = internal::VisitorImpl<Visitor>;
  180|      4|  internal::VisitImpl<VisitorImpl>{VisitorImpl(visitor)}.Visit(file);
  181|      4|}
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EC2ES9_:
  149|      4|  explicit VisitorImpl(Visitor visitor) : Visitor(visitor) {}
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EEE5VisitIJEEEvRKNS0_14FileDescriptorEDpRT_:
  108|      4|  void Visit(const FileDescriptor& descriptor, Proto&... proto) {
  109|      4|    visitor(descriptor, proto...);
  110|     35|    for (int i = 0; i < descriptor.message_type_count(); i++) {
  ------------------
  |  Branch (110:21): [True: 31, False: 4]
  ------------------
  111|     31|      Visit(*descriptor.message_type(i), message_type(proto, i)...);
  112|     31|    }
  113|      7|    for (int i = 0; i < descriptor.enum_type_count(); i++) {
  ------------------
  |  Branch (113:21): [True: 3, False: 4]
  ------------------
  114|      3|      Visit(*descriptor.enum_type(i), enum_type(proto, i)...);
  115|      3|    }
  116|      5|    for (int i = 0; i < descriptor.extension_count(); i++) {
  ------------------
  |  Branch (116:21): [True: 1, False: 4]
  ------------------
  117|      1|      Visit(*descriptor.extension(i), extension(proto, i)...);
  118|      1|    }
  119|      4|    for (int i = 0; i < descriptor.service_count(); i++) {
  ------------------
  |  Branch (119:21): [True: 0, False: 4]
  ------------------
  120|      0|      Visit(*descriptor.service(i), service(proto, i)...);
  121|      0|    }
  122|      4|  }
descriptor.cc:_ZNK6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EclENSA_15DescriptorEaterE:
  160|    191|  void operator()(DescriptorEater) const {}
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5E15DescriptorEaterC2IRKNS0_14FileDescriptorEEEOT_:
  157|      4|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EEE5VisitIJEEEvRKNS0_10DescriptorEDpRT_:
   66|     41|  void Visit(const Descriptor& descriptor, Proto&... proto) {
   67|     41|    visitor(descriptor, proto...);
   68|       |
   69|     58|    for (int i = 0; i < descriptor.enum_type_count(); i++) {
  ------------------
  |  Branch (69:21): [True: 17, False: 41]
  ------------------
   70|     17|      Visit(*descriptor.enum_type(i), enum_type(proto, i)...);
   71|     17|    }
   72|       |
   73|     42|    for (int i = 0; i < descriptor.oneof_decl_count(); i++) {
  ------------------
  |  Branch (73:21): [True: 1, False: 41]
  ------------------
   74|      1|      Visit(*descriptor.oneof_decl(i), oneof_decl(proto, i)...);
   75|      1|    }
   76|       |
   77|    243|    for (int i = 0; i < descriptor.field_count(); i++) {
  ------------------
  |  Branch (77:21): [True: 202, False: 41]
  ------------------
   78|    202|      Visit(*descriptor.field(i), field(proto, i)...);
   79|    202|    }
   80|       |
   81|     51|    for (int i = 0; i < descriptor.nested_type_count(); i++) {
  ------------------
  |  Branch (81:21): [True: 10, False: 41]
  ------------------
   82|     10|      Visit(*descriptor.nested_type(i), nested_type(proto, i)...);
   83|     10|    }
   84|       |
   85|     41|    for (int i = 0; i < descriptor.extension_count(); i++) {
  ------------------
  |  Branch (85:21): [True: 0, False: 41]
  ------------------
   86|      0|      Visit(*descriptor.extension(i), extension(proto, i)...);
   87|      0|    }
   88|       |
   89|     55|    for (int i = 0; i < descriptor.extension_range_count(); i++) {
  ------------------
  |  Branch (89:21): [True: 14, False: 41]
  ------------------
   90|     14|      Visit(*descriptor.extension_range(i), extension_range(proto, i)...);
   91|     14|    }
   92|     41|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5E15DescriptorEaterC2IRKNS0_10DescriptorEEEOT_:
  157|     41|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EEE5VisitIJEEEvRKNS0_15OneofDescriptorEDpRT_:
   61|      1|  void Visit(const OneofDescriptor& descriptor, Proto&... proto) {
   62|      1|    visitor(descriptor, proto...);
   63|      1|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5E15DescriptorEaterC2IRKNS0_15OneofDescriptorEEEOT_:
  157|      1|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EEE5VisitIJEEEvRKNS0_10Descriptor14ExtensionRangeEDpRT_:
   56|     14|  void Visit(const Descriptor::ExtensionRange& descriptor, Proto&... proto) {
   57|     14|    visitor(descriptor, proto...);
   58|     14|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5E15DescriptorEaterC2IRKNS0_10Descriptor14ExtensionRangeEEEOT_:
  157|     14|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EEE5VisitIJEEEvRKNS0_14EnumDescriptorEDpRT_:
   48|     20|  void Visit(const EnumDescriptor& descriptor, Proto&... proto) {
   49|     20|    visitor(descriptor, proto...);
   50|    131|    for (int i = 0; i < descriptor.value_count(); i++) {
  ------------------
  |  Branch (50:21): [True: 111, False: 20]
  ------------------
   51|    111|      Visit(*descriptor.value(i), value(proto, i)...);
   52|    111|    }
   53|     20|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5E15DescriptorEaterC2IRKNS0_14EnumDescriptorEEEOT_:
  157|     20|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EEE5VisitIJEEEvRKNS0_19EnumValueDescriptorEDpRT_:
   43|    111|  void Visit(const EnumValueDescriptor& descriptor, Proto&... proto) {
   44|    111|    visitor(descriptor, proto...);
   45|    111|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5E15DescriptorEaterC2IRKNS0_19EnumValueDescriptorEEEOT_:
  157|    111|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_5EEE5VisitIJEEEvRKNS0_15FieldDescriptorEDpRT_:
   38|    203|  void Visit(const FieldDescriptor& descriptor, Proto&... proto) {
   39|    203|    visitor(descriptor, proto...);
   40|    203|  }
descriptor.cc:_ZN6google8protobuf8internal16VisitDescriptorsIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEvRKNS0_14FileDescriptorES6_T_:
  165|      4|                      const FileDescriptorProto& proto, Visitor visitor) {
  166|      4|  using VisitorImpl = internal::VisitorImpl<Visitor>;
  167|      4|  internal::VisitImpl<VisitorImpl>{VisitorImpl(visitor)}.Visit(file, proto);
  168|      4|}
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EC2ES9_:
  149|      4|  explicit VisitorImpl(Visitor visitor) : Visitor(visitor) {}
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5VisitIJS6_EEEvRKNS0_14FileDescriptorEDpRT_:
  108|      4|  void Visit(const FileDescriptor& descriptor, Proto&... proto) {
  109|      4|    visitor(descriptor, proto...);
  110|     35|    for (int i = 0; i < descriptor.message_type_count(); i++) {
  ------------------
  |  Branch (110:21): [True: 31, False: 4]
  ------------------
  111|     31|      Visit(*descriptor.message_type(i), message_type(proto, i)...);
  112|     31|    }
  113|      7|    for (int i = 0; i < descriptor.enum_type_count(); i++) {
  ------------------
  |  Branch (113:21): [True: 3, False: 4]
  ------------------
  114|      3|      Visit(*descriptor.enum_type(i), enum_type(proto, i)...);
  115|      3|    }
  116|      5|    for (int i = 0; i < descriptor.extension_count(); i++) {
  ------------------
  |  Branch (116:21): [True: 1, False: 4]
  ------------------
  117|      1|      Visit(*descriptor.extension(i), extension(proto, i)...);
  118|      1|    }
  119|      4|    for (int i = 0; i < descriptor.service_count(); i++) {
  ------------------
  |  Branch (119:21): [True: 0, False: 4]
  ------------------
  120|      0|      Visit(*descriptor.service(i), service(proto, i)...);
  121|      0|    }
  122|      4|  }
descriptor.cc:_ZNK6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EclENSA_15DescriptorEaterESB_:
  159|    191|  void operator()(DescriptorEater, DescriptorEater) const {}
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_14FileDescriptorEEEOT_:
  157|      4|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IS6_EEOT_:
  157|      4|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5VisitIJKNS0_15DescriptorProtoEEEEvRKNS0_10DescriptorEDpRT_:
   66|     41|  void Visit(const Descriptor& descriptor, Proto&... proto) {
   67|     41|    visitor(descriptor, proto...);
   68|       |
   69|     58|    for (int i = 0; i < descriptor.enum_type_count(); i++) {
  ------------------
  |  Branch (69:21): [True: 17, False: 41]
  ------------------
   70|     17|      Visit(*descriptor.enum_type(i), enum_type(proto, i)...);
   71|     17|    }
   72|       |
   73|     42|    for (int i = 0; i < descriptor.oneof_decl_count(); i++) {
  ------------------
  |  Branch (73:21): [True: 1, False: 41]
  ------------------
   74|      1|      Visit(*descriptor.oneof_decl(i), oneof_decl(proto, i)...);
   75|      1|    }
   76|       |
   77|    243|    for (int i = 0; i < descriptor.field_count(); i++) {
  ------------------
  |  Branch (77:21): [True: 202, False: 41]
  ------------------
   78|    202|      Visit(*descriptor.field(i), field(proto, i)...);
   79|    202|    }
   80|       |
   81|     51|    for (int i = 0; i < descriptor.nested_type_count(); i++) {
  ------------------
  |  Branch (81:21): [True: 10, False: 41]
  ------------------
   82|     10|      Visit(*descriptor.nested_type(i), nested_type(proto, i)...);
   83|     10|    }
   84|       |
   85|     41|    for (int i = 0; i < descriptor.extension_count(); i++) {
  ------------------
  |  Branch (85:21): [True: 0, False: 41]
  ------------------
   86|      0|      Visit(*descriptor.extension(i), extension(proto, i)...);
   87|      0|    }
   88|       |
   89|     55|    for (int i = 0; i < descriptor.extension_range_count(); i++) {
  ------------------
  |  Branch (89:21): [True: 14, False: 41]
  ------------------
   90|     14|      Visit(*descriptor.extension_range(i), extension_range(proto, i)...);
   91|     14|    }
   92|     41|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_10DescriptorEEEOT_:
  157|     41|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_15DescriptorProtoEEEOT_:
  157|     41|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE9enum_typeERKNS0_15DescriptorProtoEi:
  127|     17|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5VisitIJKNS0_20OneofDescriptorProtoEEEEvRKNS0_15OneofDescriptorEDpRT_:
   61|      1|  void Visit(const OneofDescriptor& descriptor, Proto&... proto) {
   62|      1|    visitor(descriptor, proto...);
   63|      1|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_15OneofDescriptorEEEOT_:
  157|      1|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_20OneofDescriptorProtoEEEOT_:
  157|      1|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE10oneof_declERKNS0_15DescriptorProtoEi:
  127|      1|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5fieldERKNS0_15DescriptorProtoEi:
  127|    202|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE11nested_typeERKNS0_15DescriptorProtoEi:
  127|     10|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5VisitIJKNS0_30DescriptorProto_ExtensionRangeEEEEvRKNS0_10Descriptor14ExtensionRangeEDpRT_:
   56|     14|  void Visit(const Descriptor::ExtensionRange& descriptor, Proto&... proto) {
   57|     14|    visitor(descriptor, proto...);
   58|     14|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_10Descriptor14ExtensionRangeEEEOT_:
  157|     14|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_30DescriptorProto_ExtensionRangeEEEOT_:
  157|     14|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE15extension_rangeERKNS0_15DescriptorProtoEi:
  127|     14|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE12message_typeES7_i:
  127|     31|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5VisitIJKNS0_19EnumDescriptorProtoEEEEvRKNS0_14EnumDescriptorEDpRT_:
   48|     20|  void Visit(const EnumDescriptor& descriptor, Proto&... proto) {
   49|     20|    visitor(descriptor, proto...);
   50|    131|    for (int i = 0; i < descriptor.value_count(); i++) {
  ------------------
  |  Branch (50:21): [True: 111, False: 20]
  ------------------
   51|    111|      Visit(*descriptor.value(i), value(proto, i)...);
   52|    111|    }
   53|     20|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_14EnumDescriptorEEEOT_:
  157|     20|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_19EnumDescriptorProtoEEEOT_:
  157|     20|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5VisitIJKNS0_24EnumValueDescriptorProtoEEEEvRKNS0_19EnumValueDescriptorEDpRT_:
   43|    111|  void Visit(const EnumValueDescriptor& descriptor, Proto&... proto) {
   44|    111|    visitor(descriptor, proto...);
   45|    111|  }
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_19EnumValueDescriptorEEEOT_:
  157|    111|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6E15DescriptorEaterC2IRKNS0_24EnumValueDescriptorProtoEEEOT_:
  157|    111|    DescriptorEater(T&&) {}  // NOLINT
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5valueERKNS0_19EnumDescriptorProtoEi:
  127|    111|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE9enum_typeES7_i:
  127|      3|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE5VisitIJKNS0_20FieldDescriptorProtoEEEEvRKNS0_15FieldDescriptorEDpRT_:
   38|    203|  void Visit(const FieldDescriptor& descriptor, Proto&... proto) {
   39|    203|    visitor(descriptor, proto...);
   40|    203|  }
descriptor.cc:_ZN6google8protobuf8internal9VisitImplINS1_11VisitorImplIZNS0_17DescriptorBuilder13BuildFileImplERKNS0_19FileDescriptorProtoERNS1_13FlatAllocatorEE3$_6EEE9extensionES7_i:
  127|      1|  inline auto& NESTED(const TYPE& desc, int i) { return desc.NESTED(i); }

_ZN6google8protobuf21DynamicMessageFactoryC2Ev:
  644|      6|    : pool_(nullptr), delegate_to_generated_factory_(false) {}
_ZN6google8protobuf21DynamicMessageFactoryD2Ev:
  649|      4|DynamicMessageFactory::~DynamicMessageFactory() {
  650|      4|  for (auto iter = prototypes_.begin(); iter != prototypes_.end(); ++iter) {
  ------------------
  |  Branch (650:41): [True: 0, False: 4]
  ------------------
  651|      0|    delete iter->second;
  652|      0|  }
  653|      4|}

_ZN6google8protobuf21DynamicMessageFactory29SetDelegateToGeneratedFactoryEb:
   94|      2|  void SetDelegateToGeneratedFactory(bool enable) {
   95|      2|    delegate_to_generated_factory_ = enable;
   96|      2|  }

_ZN6google8protobuf8internal13little_endian6ToHostEt:
   93|   219k|inline uint16_t ToHost(uint16_t value) {
   94|       |#if defined(ABSL_IS_BIG_ENDIAN)
   95|       |  return BSwap16(value);
   96|       |#else
   97|   219k|  return value;
   98|   219k|#endif
   99|   219k|}
_ZN6google8protobuf8internal13little_endian6ToHostEj:
  101|  3.26k|inline uint32_t ToHost(uint32_t value) {
  102|       |#if defined(ABSL_IS_BIG_ENDIAN)
  103|       |  return BSwap32(value);
  104|       |#else
  105|  3.26k|  return value;
  106|  3.26k|#endif
  107|  3.26k|}
_ZN6google8protobuf8internal13little_endian6ToHostEm:
  109|  6.25k|inline uint64_t ToHost(uint64_t value) {
  110|       |#if defined(ABSL_IS_BIG_ENDIAN)
  111|       |  return BSwap64(value);
  112|       |#else
  113|  6.25k|  return value;
  114|  6.25k|#endif
  115|  6.25k|}

_ZN6google8protobuf8internal21ExplicitlyConstructedINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm8EE16DefaultConstructEv:
   40|      2|  void DefaultConstruct() { new (&union_) T(); }
_ZN6google8protobuf8internal21ExplicitlyConstructedINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm8EE11get_mutableEv:
   50|      2|  T* get_mutable() { return reinterpret_cast<T*>(&union_); }

_ZN6google8protobuf8internal24GeneratedExtensionFinder4FindEiPNS1_13ExtensionInfoE:
  118|      8|bool GeneratedExtensionFinder::Find(int number, ExtensionInfo* output) {
  119|      8|  const ExtensionInfo* extension = FindRegisteredExtension(extendee_, number);
  120|      8|  if (extension == nullptr) {
  ------------------
  |  Branch (120:7): [True: 0, False: 8]
  ------------------
  121|      0|    return false;
  122|      8|  } else {
  123|      8|    *output = *extension;
  124|      8|    return true;
  125|      8|  }
  126|      8|}
_ZN6google8protobuf8internal12ExtensionSet24RegisterMessageExtensionEPKNS0_11MessageLiteEihbbS5_PFPKcS7_PNS1_12ParseContextEENS1_14LazyAnnotationE:
  168|      1|                                            LazyAnnotation is_lazy) {
  169|      1|  ABSL_CHECK(type == WireFormatLite::TYPE_MESSAGE ||
  ------------------
  |  |   41|      1|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      2|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      1|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      2|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      2|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 1, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      1|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 1]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      3|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 1, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 1, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 1]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      2|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      2|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  170|      1|             type == WireFormatLite::TYPE_GROUP);
  171|      1|  ExtensionInfo info(extendee, number, type, is_repeated, is_packed,
  172|      1|                     verify_func, is_lazy);
  173|      1|  info.message_info = {prototype,
  174|      1|#if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES)
  175|      1|                       prototype->GetTcParseTable()
  176|       |#else
  177|       |                       nullptr
  178|       |#endif
  179|      1|  };
  180|      1|  Register(info);
  181|      1|}
_ZN6google8protobuf8internal12ExtensionSetD2Ev:
  186|    864|ExtensionSet::~ExtensionSet() {
  187|       |  // Deletes all allocated extensions.
  188|    864|  if (arena_ == nullptr) {
  ------------------
  |  Branch (188:7): [True: 864, False: 0]
  ------------------
  189|    864|    ForEach([](int /* number */, Extension& ext) { ext.Free(); },
  190|    864|            PrefetchNta{});
  191|    864|    if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|    864|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 864]
  |  |  |  Branch (365:54): [Folded, False: 864]
  |  |  |  Branch (365:63): [True: 0, False: 864]
  |  |  ------------------
  ------------------
  192|      0|      delete map_.large;
  193|    864|    } else {
  194|    864|      DeleteFlatMap(map_.flat, flat_capacity_);
  195|    864|    }
  196|    864|  }
  197|    864|}
_ZN6google8protobuf8internal12ExtensionSet13DeleteFlatMapEPKNS2_8KeyValueEt:
  200|    864|                                 uint16_t flat_capacity) {
  201|       |  // Arena::CreateArray already requires a trivially destructible type, but
  202|       |  // ensure this constraint is not violated in the future.
  203|    864|  static_assert(std::is_trivially_destructible<KeyValue>::value,
  204|    864|                "CreateArray requires a trivially destructible type");
  205|       |  // A const-cast is needed, but this is safe as we are about to deallocate the
  206|       |  // array.
  207|    864|  internal::SizedArrayDelete(const_cast<KeyValue*>(flat),
  208|    864|                             sizeof(*flat) * flat_capacity);
  209|    864|}
_ZNK6google8protobuf8internal12ExtensionSet10GetMessageEiRKNS0_11MessageLiteE:
  633|    203|    int number, const MessageLite& default_value) const {
  634|    203|  const Extension* extension = FindOrNull(number);
  635|    203|  if (extension == nullptr) {
  ------------------
  |  Branch (635:7): [True: 0, False: 203]
  ------------------
  636|       |    // Not present.  Return the default value.
  637|      0|    return default_value;
  638|    203|  } else {
  639|    203|    ABSL_DCHECK_TYPE(*extension, OPTIONAL_FIELD, MESSAGE);
  ------------------
  |  |  272|    203|  ABSL_DCHECK_EQ((EXTENSION).is_repeated ? REPEATED_FIELD : OPTIONAL_FIELD, \
  |  |  ------------------
  |  |  |  |   74|    203|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   86|    203|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|    203|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 203]
  |  |  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (56:27): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|    203|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  273|    203|                 LABEL);                                                    \
  |  |  274|    203|  ABSL_DCHECK_EQ(cpp_type((EXTENSION).type), WireFormatLite::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  |  |  |  |   74|    203|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   86|    203|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|    203|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 203]
  |  |  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|    203|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  640|    203|    if (extension->is_lazy) {
  ------------------
  |  Branch (640:9): [True: 0, False: 203]
  ------------------
  641|      0|      return extension->ptr.lazymessage_value->GetMessage(default_value,
  642|      0|                                                          arena_);
  643|    203|    } else {
  644|    203|      return *extension->ptr.message_value;
  645|    203|    }
  646|    203|  }
  647|    203|}
_ZN6google8protobuf8internal12ExtensionSet14MutableMessageEihRKNS0_11MessageLiteEPKNS0_15FieldDescriptorE:
  656|    211|                                          const FieldDescriptor* descriptor) {
  657|    211|  Extension* extension;
  658|    211|  if (MaybeNewExtension(number, descriptor, &extension)) {
  ------------------
  |  Branch (658:7): [True: 211, False: 0]
  ------------------
  659|    211|    extension->type = type;
  660|    211|    ABSL_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_MESSAGE);
  ------------------
  |  |   74|    211|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    211|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    211|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 211]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    211|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  661|    211|    extension->is_repeated = false;
  662|    211|    extension->is_pointer = true;
  663|    211|    extension->is_lazy = false;
  664|    211|    extension->ptr.message_value = prototype.New(arena_);
  665|    211|    extension->is_cleared = false;
  666|    211|    return extension->ptr.message_value;
  667|    211|  } else {
  668|      0|    ABSL_DCHECK_TYPE(*extension, OPTIONAL_FIELD, MESSAGE);
  ------------------
  |  |  272|      0|  ABSL_DCHECK_EQ((EXTENSION).is_repeated ? REPEATED_FIELD : OPTIONAL_FIELD, \
  |  |  ------------------
  |  |  |  |   74|      0|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   86|      0|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (56:27): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      0|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  273|      0|                 LABEL);                                                    \
  |  |  274|      0|  ABSL_DCHECK_EQ(cpp_type((EXTENSION).type), WireFormatLite::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  |  |  |  |   74|      0|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   86|      0|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      0|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  669|      0|    extension->is_cleared = false;
  670|      0|    if (extension->is_lazy) {
  ------------------
  |  Branch (670:9): [True: 0, False: 0]
  ------------------
  671|      0|      return extension->ptr.lazymessage_value->MutableMessage(prototype,
  672|      0|                                                              arena_);
  673|      0|    } else {
  674|      0|      return extension->ptr.message_value;
  675|      0|    }
  676|      0|  }
  677|    211|}
_ZN6google8protobuf8internal12ExtensionSet5ClearEv:
  959|     19|void ExtensionSet::Clear() {
  960|     19|  ForEach([](int /* number */, Extension& ext) { ext.Clear(); }, Prefetch{});
  961|     19|}
_ZN6google8protobuf8internal12ExtensionSet9MergeFromEPKNS0_11MessageLiteERKS2_:
  998|  1.05k|                             const ExtensionSet& other) {
  999|  1.05k|  Prefetch5LinesFrom1Line(&other);
 1000|  1.05k|  if (PROTOBUF_PREDICT_TRUE(!is_large())) {
  ------------------
  |  |  364|  1.05k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 1.05k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 1.05k]
  |  |  |  Branch (364:62): [True: 1.05k, False: 0]
  |  |  ------------------
  ------------------
 1001|  1.05k|    if (PROTOBUF_PREDICT_TRUE(!other.is_large())) {
  ------------------
  |  |  364|  1.05k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 1.05k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 1.05k]
  |  |  |  Branch (364:62): [True: 1.05k, False: 0]
  |  |  ------------------
  ------------------
 1002|  1.05k|      GrowCapacity(SizeOfUnion(flat_begin(), flat_end(), other.flat_begin(),
 1003|  1.05k|                               other.flat_end()));
 1004|  1.05k|    } else {
 1005|      0|      GrowCapacity(SizeOfUnion(flat_begin(), flat_end(),
 1006|      0|                               other.map_.large->begin(),
 1007|      0|                               other.map_.large->end()));
 1008|      0|    }
 1009|  1.05k|  }
 1010|  1.05k|  other.ForEach(
 1011|  1.05k|      [extendee, this, &other](int number, const Extension& ext) {
 1012|  1.05k|        this->InternalExtensionMergeFrom(extendee, number, ext, other.arena_);
 1013|  1.05k|      },
 1014|  1.05k|      Prefetch{});
 1015|  1.05k|}
_ZN6google8protobuf8internal12ExtensionSet26InternalExtensionMergeFromEPKNS0_11MessageLiteEiRKNS2_9ExtensionEPNS0_5ArenaE:
 1020|    653|                                              Arena* other_arena) {
 1021|    653|  if (other_extension.is_repeated) {
  ------------------
  |  Branch (1021:7): [True: 0, False: 653]
  ------------------
 1022|      0|    Extension* extension;
 1023|      0|    bool is_new =
 1024|      0|        MaybeNewExtension(number, other_extension.descriptor, &extension);
 1025|      0|    if (is_new) {
  ------------------
  |  Branch (1025:9): [True: 0, False: 0]
  ------------------
 1026|       |      // Extension did not already exist in set.
 1027|      0|      extension->type = other_extension.type;
 1028|      0|      extension->is_packed = other_extension.is_packed;
 1029|      0|      extension->is_repeated = true;
 1030|      0|      extension->is_pointer = true;
 1031|      0|    } else {
 1032|      0|      ABSL_DCHECK_EQ(extension->type, other_extension.type);
  ------------------
  |  |   74|      0|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|      0|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 0]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      0|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1033|      0|      ABSL_DCHECK_EQ(extension->is_packed, other_extension.is_packed);
  ------------------
  |  |   74|      0|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|      0|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 0]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      0|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1034|      0|      ABSL_DCHECK(extension->is_repeated);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1035|      0|    }
 1036|       |
 1037|      0|    switch (cpp_type(other_extension.type)) {
  ------------------
  |  Branch (1037:13): [True: 0, False: 0]
  ------------------
 1038|      0|#define HANDLE_TYPE(UPPERCASE, LOWERCASE, REPEATED_TYPE)    \
 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
 1040|      0|    if (is_new) {                                           \
 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
 1043|      0|    }                                                       \
 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
 1046|      0|    break;
 1047|       |
 1048|      0|      HANDLE_TYPE(INT32, int32_t, RepeatedField<int32_t>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1049|      0|      HANDLE_TYPE(INT64, int64_t, RepeatedField<int64_t>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1050|      0|      HANDLE_TYPE(UINT32, uint32_t, RepeatedField<uint32_t>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1051|      0|      HANDLE_TYPE(UINT64, uint64_t, RepeatedField<uint64_t>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1052|      0|      HANDLE_TYPE(FLOAT, float, RepeatedField<float>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1053|      0|      HANDLE_TYPE(DOUBLE, double, RepeatedField<double>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1054|      0|      HANDLE_TYPE(BOOL, bool, RepeatedField<bool>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1055|      0|      HANDLE_TYPE(ENUM, enum, RepeatedField<int>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1056|      0|      HANDLE_TYPE(STRING, string, RepeatedPtrField<std::string>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1057|      0|      HANDLE_TYPE(MESSAGE, message, RepeatedPtrField<MessageLite>);
  ------------------
  |  | 1039|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1039:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1040|      0|    if (is_new) {                                           \
  |  |  ------------------
  |  |  |  Branch (1040:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 1041|      0|      extension->ptr.repeated_##LOWERCASE##_value =         \
  |  | 1042|      0|          Arena::Create<REPEATED_TYPE>(arena_);             \
  |  | 1043|      0|    }                                                       \
  |  | 1044|      0|    extension->ptr.repeated_##LOWERCASE##_value->MergeFrom( \
  |  | 1045|      0|        *other_extension.ptr.repeated_##LOWERCASE##_value); \
  |  | 1046|      0|    break;
  ------------------
 1058|      0|#undef HANDLE_TYPE
 1059|      0|    }
 1060|    653|  } else {
 1061|    653|    if (!other_extension.is_cleared) {
  ------------------
  |  Branch (1061:9): [True: 653, False: 0]
  ------------------
 1062|    653|      switch (cpp_type(other_extension.type)) {
  ------------------
  |  Branch (1062:15): [True: 653, False: 0]
  ------------------
 1063|      0|#define HANDLE_TYPE(UPPERCASE, LOWERCASE, CAMELCASE)  \
 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
 1066|      0|                   other_extension.LOWERCASE##_value, \
 1067|      0|                   other_extension.descriptor);       \
 1068|      0|    break;
 1069|       |
 1070|      0|        HANDLE_TYPE(INT32, int32_t, Int32);
  ------------------
  |  | 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
  |  |  ------------------
  |  |  |  Branch (1064:3): [True: 0, False: 653]
  |  |  ------------------
  |  | 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
  |  | 1066|      0|                   other_extension.LOWERCASE##_value, \
  |  | 1067|      0|                   other_extension.descriptor);       \
  |  | 1068|      0|    break;
  ------------------
 1071|      0|        HANDLE_TYPE(INT64, int64_t, Int64);
  ------------------
  |  | 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
  |  |  ------------------
  |  |  |  Branch (1064:3): [True: 0, False: 653]
  |  |  ------------------
  |  | 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
  |  | 1066|      0|                   other_extension.LOWERCASE##_value, \
  |  | 1067|      0|                   other_extension.descriptor);       \
  |  | 1068|      0|    break;
  ------------------
 1072|      0|        HANDLE_TYPE(UINT32, uint32_t, UInt32);
  ------------------
  |  | 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
  |  |  ------------------
  |  |  |  Branch (1064:3): [True: 0, False: 653]
  |  |  ------------------
  |  | 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
  |  | 1066|      0|                   other_extension.LOWERCASE##_value, \
  |  | 1067|      0|                   other_extension.descriptor);       \
  |  | 1068|      0|    break;
  ------------------
 1073|      0|        HANDLE_TYPE(UINT64, uint64_t, UInt64);
  ------------------
  |  | 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
  |  |  ------------------
  |  |  |  Branch (1064:3): [True: 0, False: 653]
  |  |  ------------------
  |  | 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
  |  | 1066|      0|                   other_extension.LOWERCASE##_value, \
  |  | 1067|      0|                   other_extension.descriptor);       \
  |  | 1068|      0|    break;
  ------------------
 1074|      0|        HANDLE_TYPE(FLOAT, float, Float);
  ------------------
  |  | 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
  |  |  ------------------
  |  |  |  Branch (1064:3): [True: 0, False: 653]
  |  |  ------------------
  |  | 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
  |  | 1066|      0|                   other_extension.LOWERCASE##_value, \
  |  | 1067|      0|                   other_extension.descriptor);       \
  |  | 1068|      0|    break;
  ------------------
 1075|      0|        HANDLE_TYPE(DOUBLE, double, Double);
  ------------------
  |  | 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
  |  |  ------------------
  |  |  |  Branch (1064:3): [True: 0, False: 653]
  |  |  ------------------
  |  | 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
  |  | 1066|      0|                   other_extension.LOWERCASE##_value, \
  |  | 1067|      0|                   other_extension.descriptor);       \
  |  | 1068|      0|    break;
  ------------------
 1076|      0|        HANDLE_TYPE(BOOL, bool, Bool);
  ------------------
  |  | 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
  |  |  ------------------
  |  |  |  Branch (1064:3): [True: 0, False: 653]
  |  |  ------------------
  |  | 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
  |  | 1066|      0|                   other_extension.LOWERCASE##_value, \
  |  | 1067|      0|                   other_extension.descriptor);       \
  |  | 1068|      0|    break;
  ------------------
 1077|      0|        HANDLE_TYPE(ENUM, enum, Enum);
  ------------------
  |  | 1064|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:           \
  |  |  ------------------
  |  |  |  Branch (1064:3): [True: 0, False: 653]
  |  |  ------------------
  |  | 1065|      0|    Set##CAMELCASE(number, other_extension.type,      \
  |  | 1066|      0|                   other_extension.LOWERCASE##_value, \
  |  | 1067|      0|                   other_extension.descriptor);       \
  |  | 1068|      0|    break;
  ------------------
 1078|      0|#undef HANDLE_TYPE
 1079|      0|        case WireFormatLite::CPPTYPE_STRING:
  ------------------
  |  Branch (1079:9): [True: 0, False: 653]
  ------------------
 1080|      0|          SetString(number, other_extension.type,
 1081|      0|                    *other_extension.ptr.string_value,
 1082|      0|                    other_extension.descriptor);
 1083|      0|          break;
 1084|    653|        case WireFormatLite::CPPTYPE_MESSAGE: {
  ------------------
  |  Branch (1084:9): [True: 653, False: 0]
  ------------------
 1085|    653|          Arena* const arena = arena_;
 1086|    653|          Extension* extension;
 1087|    653|          bool is_new =
 1088|    653|              MaybeNewExtension(number, other_extension.descriptor, &extension);
 1089|    653|          if (is_new) {
  ------------------
  |  Branch (1089:15): [True: 227, False: 426]
  ------------------
 1090|    227|            extension->type = other_extension.type;
 1091|    227|            extension->is_packed = other_extension.is_packed;
 1092|    227|            extension->is_repeated = false;
 1093|    227|            extension->is_pointer = true;
 1094|    227|            if (other_extension.is_lazy) {
  ------------------
  |  Branch (1094:17): [True: 0, False: 227]
  ------------------
 1095|      0|              extension->is_lazy = true;
 1096|      0|              extension->ptr.lazymessage_value =
 1097|      0|                  other_extension.ptr.lazymessage_value->New(arena);
 1098|      0|              extension->ptr.lazymessage_value->MergeFrom(
 1099|      0|                  GetPrototypeForLazyMessage(extendee, number),
 1100|      0|                  *other_extension.ptr.lazymessage_value, arena, other_arena);
 1101|    227|            } else {
 1102|    227|              extension->is_lazy = false;
 1103|    227|              extension->ptr.message_value =
 1104|    227|                  other_extension.ptr.message_value->New(arena);
 1105|    227|              extension->ptr.message_value->CheckTypeAndMergeFrom(
 1106|    227|                  *other_extension.ptr.message_value);
 1107|    227|            }
 1108|    426|          } else {
 1109|    426|            ABSL_DCHECK_EQ(extension->type, other_extension.type);
  ------------------
  |  |   74|    426|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    426|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    426|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 426]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    426|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1110|    426|            ABSL_DCHECK_EQ(extension->is_packed, other_extension.is_packed);
  ------------------
  |  |   74|    426|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    426|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    426|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 426]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    426|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1111|    426|            ABSL_DCHECK(!extension->is_repeated);
  ------------------
  |  |   47|    426|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    426|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|    852|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    426|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    852|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    852|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 426, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    426|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 426]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    426|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 426, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    852|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    852|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1112|    426|            if (other_extension.is_lazy) {
  ------------------
  |  Branch (1112:17): [True: 0, False: 426]
  ------------------
 1113|      0|              if (extension->is_lazy) {
  ------------------
  |  Branch (1113:19): [True: 0, False: 0]
  ------------------
 1114|      0|                extension->ptr.lazymessage_value->MergeFrom(
 1115|      0|                    GetPrototypeForLazyMessage(extendee, number),
 1116|      0|                    *other_extension.ptr.lazymessage_value, arena, other_arena);
 1117|      0|              } else {
 1118|      0|                extension->ptr.message_value->CheckTypeAndMergeFrom(
 1119|      0|                    other_extension.ptr.lazymessage_value->GetMessage(
 1120|      0|                        *extension->ptr.message_value, other_arena));
 1121|      0|              }
 1122|    426|            } else {
 1123|    426|              if (extension->is_lazy) {
  ------------------
  |  Branch (1123:19): [True: 0, False: 426]
  ------------------
 1124|      0|                extension->ptr.lazymessage_value
 1125|      0|                    ->MutableMessage(*other_extension.ptr.message_value, arena)
 1126|      0|                    ->CheckTypeAndMergeFrom(*other_extension.ptr.message_value);
 1127|    426|              } else {
 1128|    426|                extension->ptr.message_value->CheckTypeAndMergeFrom(
 1129|    426|                    *other_extension.ptr.message_value);
 1130|    426|              }
 1131|    426|            }
 1132|    426|          }
 1133|    653|          extension->is_cleared = false;
 1134|    653|          break;
 1135|    653|        }
 1136|    653|      }
 1137|    653|    }
 1138|    653|  }
 1139|    653|}
_ZN6google8protobuf8internal12ExtensionSet12InternalSwapEPS2_:
 1157|    227|void ExtensionSet::InternalSwap(ExtensionSet* other) {
 1158|    227|  using std::swap;
 1159|    227|  swap(arena_, other->arena_);
 1160|    227|  swap(flat_capacity_, other->flat_capacity_);
 1161|    227|  swap(flat_size_, other->flat_size_);
 1162|    227|  swap(map_, other->map_);
 1163|    227|}
_ZNK6google8protobuf8internal12ExtensionSet13IsInitializedEPKNS0_11MessageLiteE:
 1227|     85|bool ExtensionSet::IsInitialized(const MessageLite* extendee) const {
 1228|       |  // Extensions are never required.  However, we need to check that all
 1229|       |  // embedded messages are initialized.
 1230|     85|  Arena* const arena = arena_;
 1231|     85|  if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|     85|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 85]
  |  |  |  Branch (365:54): [Folded, False: 85]
  |  |  |  Branch (365:63): [True: 0, False: 85]
  |  |  ------------------
  ------------------
 1232|      0|    for (const auto& kv : *map_.large) {
  ------------------
  |  Branch (1232:25): [True: 0, False: 0]
  ------------------
 1233|      0|      if (!kv.second.IsInitialized(this, extendee, kv.first, arena)) {
  ------------------
  |  Branch (1233:11): [True: 0, False: 0]
  ------------------
 1234|      0|        return false;
 1235|      0|      }
 1236|      0|    }
 1237|      0|    return true;
 1238|      0|  }
 1239|     93|  for (const KeyValue* it = flat_begin(); it != flat_end(); ++it) {
  ------------------
  |  Branch (1239:43): [True: 8, False: 85]
  ------------------
 1240|      8|    if (!it->second.IsInitialized(this, extendee, it->first, arena)) {
  ------------------
  |  Branch (1240:9): [True: 0, False: 8]
  ------------------
 1241|      0|      return false;
 1242|      0|    }
 1243|      8|  }
 1244|     85|  return true;
 1245|     85|}
_ZNK6google8protobuf8internal12ExtensionSet22_InternalSerializeImplEPKNS0_11MessageLiteEiiPhPNS0_2io19EpsCopyOutputStreamE:
 1280|    207|    uint8_t* target, io::EpsCopyOutputStream* stream) const {
 1281|    207|  if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|    207|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 207]
  |  |  |  Branch (365:54): [Folded, False: 207]
  |  |  |  Branch (365:63): [True: 0, False: 207]
  |  |  ------------------
  ------------------
 1282|      0|    const auto& end = map_.large->end();
 1283|      0|    for (auto it = map_.large->lower_bound(start_field_number);
 1284|      0|         it != end && it->first < end_field_number; ++it) {
  ------------------
  |  Branch (1284:10): [True: 0, False: 0]
  |  Branch (1284:23): [True: 0, False: 0]
  ------------------
 1285|      0|      target = it->second.InternalSerializeFieldWithCachedSizesToArray(
 1286|      0|          extendee, this, it->first, target, stream);
 1287|      0|    }
 1288|      0|    return target;
 1289|      0|  }
 1290|    207|  const KeyValue* end = flat_end();
 1291|    207|  const KeyValue* it = flat_begin();
 1292|    207|  while (it != end && it->first < start_field_number) ++it;
  ------------------
  |  Branch (1292:10): [True: 207, False: 0]
  |  Branch (1292:23): [True: 0, False: 207]
  ------------------
 1293|    414|  for (; it != end && it->first < end_field_number; ++it) {
  ------------------
  |  Branch (1293:10): [True: 207, False: 207]
  |  Branch (1293:23): [True: 207, False: 0]
  ------------------
 1294|    207|    target = it->second.InternalSerializeFieldWithCachedSizesToArray(
 1295|    207|        extendee, this, it->first, target, stream);
 1296|    207|  }
 1297|    207|  return target;
 1298|    207|}
_ZNK6google8protobuf8internal12ExtensionSet8ByteSizeEv:
 1314|    620|size_t ExtensionSet::ByteSize() const {
 1315|    620|  size_t total_size = 0;
 1316|    620|  ForEach(
 1317|    620|      [&total_size](int number, const Extension& ext) {
 1318|    620|        total_size += ext.ByteSize(number);
 1319|    620|      },
 1320|    620|      Prefetch{});
 1321|    620|  return total_size;
 1322|    620|}
_ZN6google8protobuf8internal12ExtensionSet17MaybeNewExtensionEiPKNS0_15FieldDescriptorEPPNS2_9ExtensionE:
 1329|    864|                                     Extension** result) {
 1330|    864|  bool extension_is_new = false;
 1331|    864|  std::tie(*result, extension_is_new) = Insert(number);
 1332|    864|  (*result)->descriptor = descriptor;
 1333|    864|  return extension_is_new;
 1334|    864|}
_ZNK6google8protobuf8internal12ExtensionSet9Extension8ByteSizeEi:
 1384|    410|size_t ExtensionSet::Extension::ByteSize(int number) const {
 1385|    410|  size_t result = 0;
 1386|       |
 1387|    410|  if (is_repeated) {
  ------------------
  |  Branch (1387:7): [True: 0, False: 410]
  ------------------
 1388|      0|    if (is_packed) {
  ------------------
  |  Branch (1388:9): [True: 0, False: 0]
  ------------------
 1389|      0|      switch (real_type(type)) {
  ------------------
  |  Branch (1389:15): [True: 0, False: 0]
  ------------------
 1390|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, LOWERCASE)                     \
 1391|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
 1392|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
 1393|      0|      result += WireFormatLite::CAMELCASE##Size(                         \
 1394|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                     \
 1395|      0|    }                                                                    \
 1396|      0|    break
 1397|       |
 1398|      0|        HANDLE_TYPE(INT32, Int32, int32_t);
  ------------------
  |  | 1391|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1391:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1392|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1392:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1393|      0|      result += WireFormatLite::CAMELCASE##Size(                         \
  |  | 1394|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                     \
  |  | 1395|      0|    }                                                                    \
  |  | 1396|      0|    break
  ------------------
 1399|      0|        HANDLE_TYPE(INT64, Int64, int64_t);
  ------------------
  |  | 1391|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1391:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1392|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1392:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1393|      0|      result += WireFormatLite::CAMELCASE##Size(                         \
  |  | 1394|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                     \
  |  | 1395|      0|    }                                                                    \
  |  | 1396|      0|    break
  ------------------
 1400|      0|        HANDLE_TYPE(UINT32, UInt32, uint32_t);
  ------------------
  |  | 1391|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1391:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1392|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1392:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1393|      0|      result += WireFormatLite::CAMELCASE##Size(                         \
  |  | 1394|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                     \
  |  | 1395|      0|    }                                                                    \
  |  | 1396|      0|    break
  ------------------
 1401|      0|        HANDLE_TYPE(UINT64, UInt64, uint64_t);
  ------------------
  |  | 1391|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1391:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1392|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1392:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1393|      0|      result += WireFormatLite::CAMELCASE##Size(                         \
  |  | 1394|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                     \
  |  | 1395|      0|    }                                                                    \
  |  | 1396|      0|    break
  ------------------
 1402|      0|        HANDLE_TYPE(SINT32, SInt32, int32_t);
  ------------------
  |  | 1391|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1391:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1392|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1392:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1393|      0|      result += WireFormatLite::CAMELCASE##Size(                         \
  |  | 1394|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                     \
  |  | 1395|      0|    }                                                                    \
  |  | 1396|      0|    break
  ------------------
 1403|      0|        HANDLE_TYPE(SINT64, SInt64, int64_t);
  ------------------
  |  | 1391|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1391:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1392|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1392:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1393|      0|      result += WireFormatLite::CAMELCASE##Size(                         \
  |  | 1394|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                     \
  |  | 1395|      0|    }                                                                    \
  |  | 1396|      0|    break
  ------------------
 1404|      0|        HANDLE_TYPE(ENUM, Enum, enum);
  ------------------
  |  | 1391|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1391:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1392|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1392:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1393|      0|      result += WireFormatLite::CAMELCASE##Size(                         \
  |  | 1394|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                     \
  |  | 1395|      0|    }                                                                    \
  |  | 1396|      0|    break
  ------------------
 1405|      0|#undef HANDLE_TYPE
 1406|       |
 1407|       |        // Stuff with fixed size.
 1408|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, LOWERCASE)                 \
 1409|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
 1410|      0|    result += WireFormatLite::k##CAMELCASE##Size *                   \
 1411|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
 1412|      0|    break
 1413|      0|        HANDLE_TYPE(FIXED32, Fixed32, uint32_t);
  ------------------
  |  | 1409|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1409:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1410|      0|    result += WireFormatLite::k##CAMELCASE##Size *                   \
  |  | 1411|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1412|      0|    break
  ------------------
 1414|      0|        HANDLE_TYPE(FIXED64, Fixed64, uint64_t);
  ------------------
  |  | 1409|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1409:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1410|      0|    result += WireFormatLite::k##CAMELCASE##Size *                   \
  |  | 1411|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1412|      0|    break
  ------------------
 1415|      0|        HANDLE_TYPE(SFIXED32, SFixed32, int32_t);
  ------------------
  |  | 1409|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1409:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1410|      0|    result += WireFormatLite::k##CAMELCASE##Size *                   \
  |  | 1411|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1412|      0|    break
  ------------------
 1416|      0|        HANDLE_TYPE(SFIXED64, SFixed64, int64_t);
  ------------------
  |  | 1409|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1409:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1410|      0|    result += WireFormatLite::k##CAMELCASE##Size *                   \
  |  | 1411|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1412|      0|    break
  ------------------
 1417|      0|        HANDLE_TYPE(FLOAT, Float, float);
  ------------------
  |  | 1409|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1409:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1410|      0|    result += WireFormatLite::k##CAMELCASE##Size *                   \
  |  | 1411|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1412|      0|    break
  ------------------
 1418|      0|        HANDLE_TYPE(DOUBLE, Double, double);
  ------------------
  |  | 1409|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1409:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1410|      0|    result += WireFormatLite::k##CAMELCASE##Size *                   \
  |  | 1411|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1412|      0|    break
  ------------------
 1419|      0|        HANDLE_TYPE(BOOL, Bool, bool);
  ------------------
  |  | 1409|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1409:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1410|      0|    result += WireFormatLite::k##CAMELCASE##Size *                   \
  |  | 1411|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1412|      0|    break
  ------------------
 1420|      0|#undef HANDLE_TYPE
 1421|       |
 1422|      0|        case WireFormatLite::TYPE_STRING:
  ------------------
  |  Branch (1422:9): [True: 0, False: 0]
  ------------------
 1423|      0|        case WireFormatLite::TYPE_BYTES:
  ------------------
  |  Branch (1423:9): [True: 0, False: 0]
  ------------------
 1424|      0|        case WireFormatLite::TYPE_GROUP:
  ------------------
  |  Branch (1424:9): [True: 0, False: 0]
  ------------------
 1425|      0|        case WireFormatLite::TYPE_MESSAGE:
  ------------------
  |  Branch (1425:9): [True: 0, False: 0]
  ------------------
 1426|      0|          ABSL_LOG(FATAL) << "Non-primitive types can't be packed.";
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1427|      0|          break;
 1428|      0|      }
 1429|       |
 1430|      0|      cached_size.set(ToCachedSize(result));
 1431|      0|      if (result > 0) {
  ------------------
  |  Branch (1431:11): [True: 0, False: 0]
  ------------------
 1432|      0|        result += io::CodedOutputStream::VarintSize32(result);
 1433|      0|        result += io::CodedOutputStream::VarintSize32(WireFormatLite::MakeTag(
 1434|      0|            number, WireFormatLite::WIRETYPE_LENGTH_DELIMITED));
 1435|      0|      }
 1436|      0|    } else {
 1437|      0|      size_t tag_size = WireFormatLite::TagSize(number, real_type(type));
 1438|       |
 1439|      0|      switch (real_type(type)) {
  ------------------
  |  Branch (1439:15): [True: 0, False: 0]
  ------------------
 1440|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, LOWERCASE)                      \
 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
 1442|      0|    result +=                                                             \
 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
 1447|      0|    }                                                                     \
 1448|      0|    break
 1449|       |
 1450|      0|        HANDLE_TYPE(INT32, Int32, int32_t);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1451|      0|        HANDLE_TYPE(INT64, Int64, int64_t);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1452|      0|        HANDLE_TYPE(UINT32, UInt32, uint32_t);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1453|      0|        HANDLE_TYPE(UINT64, UInt64, uint64_t);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1454|      0|        HANDLE_TYPE(SINT32, SInt32, int32_t);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1455|      0|        HANDLE_TYPE(SINT64, SInt64, int64_t);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1456|      0|        HANDLE_TYPE(STRING, String, string);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1457|      0|        HANDLE_TYPE(BYTES, Bytes, string);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1458|      0|        HANDLE_TYPE(ENUM, Enum, enum);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1459|      0|        HANDLE_TYPE(GROUP, Group, message);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1460|      0|        HANDLE_TYPE(MESSAGE, Message, message);
  ------------------
  |  | 1441|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                  \
  |  |  ------------------
  |  |  |  Branch (1441:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1442|      0|    result +=                                                             \
  |  | 1443|      0|        tag_size * FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1444|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) {  \
  |  |  ------------------
  |  |  |  Branch (1444:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1445|      0|      result += WireFormatLite::CAMELCASE##Size(                          \
  |  | 1446|      0|          ptr.repeated_##LOWERCASE##_value->Get(i));                      \
  |  | 1447|      0|    }                                                                     \
  |  | 1448|      0|    break
  ------------------
 1461|      0|#undef HANDLE_TYPE
 1462|       |
 1463|       |        // Stuff with fixed size.
 1464|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, LOWERCASE)                 \
 1465|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
 1466|      0|    result += (tag_size + WireFormatLite::k##CAMELCASE##Size) *      \
 1467|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
 1468|      0|    break
 1469|      0|        HANDLE_TYPE(FIXED32, Fixed32, uint32_t);
  ------------------
  |  | 1465|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1465:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1466|      0|    result += (tag_size + WireFormatLite::k##CAMELCASE##Size) *      \
  |  | 1467|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1468|      0|    break
  ------------------
 1470|      0|        HANDLE_TYPE(FIXED64, Fixed64, uint64_t);
  ------------------
  |  | 1465|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1465:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1466|      0|    result += (tag_size + WireFormatLite::k##CAMELCASE##Size) *      \
  |  | 1467|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1468|      0|    break
  ------------------
 1471|      0|        HANDLE_TYPE(SFIXED32, SFixed32, int32_t);
  ------------------
  |  | 1465|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1465:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1466|      0|    result += (tag_size + WireFormatLite::k##CAMELCASE##Size) *      \
  |  | 1467|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1468|      0|    break
  ------------------
 1472|      0|        HANDLE_TYPE(SFIXED64, SFixed64, int64_t);
  ------------------
  |  | 1465|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1465:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1466|      0|    result += (tag_size + WireFormatLite::k##CAMELCASE##Size) *      \
  |  | 1467|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1468|      0|    break
  ------------------
 1473|      0|        HANDLE_TYPE(FLOAT, Float, float);
  ------------------
  |  | 1465|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1465:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1466|      0|    result += (tag_size + WireFormatLite::k##CAMELCASE##Size) *      \
  |  | 1467|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1468|      0|    break
  ------------------
 1474|      0|        HANDLE_TYPE(DOUBLE, Double, double);
  ------------------
  |  | 1465|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1465:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1466|      0|    result += (tag_size + WireFormatLite::k##CAMELCASE##Size) *      \
  |  | 1467|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1468|      0|    break
  ------------------
 1475|      0|        HANDLE_TYPE(BOOL, Bool, bool);
  ------------------
  |  | 1465|      0|  case WireFormatLite::TYPE_##UPPERCASE:                             \
  |  |  ------------------
  |  |  |  Branch (1465:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1466|      0|    result += (tag_size + WireFormatLite::k##CAMELCASE##Size) *      \
  |  | 1467|      0|              FromIntSize(ptr.repeated_##LOWERCASE##_value->size()); \
  |  | 1468|      0|    break
  ------------------
 1476|      0|#undef HANDLE_TYPE
 1477|      0|      }
 1478|      0|    }
 1479|    410|  } else if (!is_cleared) {
  ------------------
  |  Branch (1479:14): [True: 410, False: 0]
  ------------------
 1480|    410|    result += WireFormatLite::TagSize(number, real_type(type));
 1481|    410|    switch (real_type(type)) {
  ------------------
  |  Branch (1481:13): [True: 410, False: 0]
  ------------------
 1482|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, LOWERCASE)      \
 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
 1485|      0|    break
 1486|       |
 1487|      0|      HANDLE_TYPE(INT32, Int32, int32_t_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1488|      0|      HANDLE_TYPE(INT64, Int64, int64_t_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1489|      0|      HANDLE_TYPE(UINT32, UInt32, uint32_t_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1490|      0|      HANDLE_TYPE(UINT64, UInt64, uint64_t_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1491|      0|      HANDLE_TYPE(SINT32, SInt32, int32_t_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1492|      0|      HANDLE_TYPE(SINT64, SInt64, int64_t_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1493|      0|      HANDLE_TYPE(STRING, String, *ptr.string_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1494|      0|      HANDLE_TYPE(BYTES, Bytes, *ptr.string_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1495|      0|      HANDLE_TYPE(ENUM, Enum, enum_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1496|      0|      HANDLE_TYPE(GROUP, Group, *ptr.message_value);
  ------------------
  |  | 1483|      0|  case WireFormatLite::TYPE_##UPPERCASE:                  \
  |  |  ------------------
  |  |  |  Branch (1483:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1484|      0|    result += WireFormatLite::CAMELCASE##Size(LOWERCASE); \
  |  | 1485|      0|    break
  ------------------
 1497|      0|#undef HANDLE_TYPE
 1498|    410|      case WireFormatLite::TYPE_MESSAGE: {
  ------------------
  |  Branch (1498:7): [True: 410, False: 0]
  ------------------
 1499|    410|        result += WireFormatLite::LengthDelimitedSize(
 1500|    410|            is_lazy ? ptr.lazymessage_value->ByteSizeLong()
  ------------------
  |  Branch (1500:13): [True: 0, False: 410]
  ------------------
 1501|    410|                    : ptr.message_value->ByteSizeLong());
 1502|    410|        break;
 1503|      0|      }
 1504|       |
 1505|       |      // Stuff with fixed size.
 1506|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE)         \
 1507|      0|  case WireFormatLite::TYPE_##UPPERCASE:          \
 1508|      0|    result += WireFormatLite::k##CAMELCASE##Size; \
 1509|      0|    break
 1510|      0|        HANDLE_TYPE(FIXED32, Fixed32);
  ------------------
  |  | 1507|      0|  case WireFormatLite::TYPE_##UPPERCASE:          \
  |  |  ------------------
  |  |  |  Branch (1507:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1508|      0|    result += WireFormatLite::k##CAMELCASE##Size; \
  |  | 1509|      0|    break
  ------------------
 1511|      0|        HANDLE_TYPE(FIXED64, Fixed64);
  ------------------
  |  | 1507|      0|  case WireFormatLite::TYPE_##UPPERCASE:          \
  |  |  ------------------
  |  |  |  Branch (1507:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1508|      0|    result += WireFormatLite::k##CAMELCASE##Size; \
  |  | 1509|      0|    break
  ------------------
 1512|      0|        HANDLE_TYPE(SFIXED32, SFixed32);
  ------------------
  |  | 1507|      0|  case WireFormatLite::TYPE_##UPPERCASE:          \
  |  |  ------------------
  |  |  |  Branch (1507:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1508|      0|    result += WireFormatLite::k##CAMELCASE##Size; \
  |  | 1509|      0|    break
  ------------------
 1513|      0|        HANDLE_TYPE(SFIXED64, SFixed64);
  ------------------
  |  | 1507|      0|  case WireFormatLite::TYPE_##UPPERCASE:          \
  |  |  ------------------
  |  |  |  Branch (1507:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1508|      0|    result += WireFormatLite::k##CAMELCASE##Size; \
  |  | 1509|      0|    break
  ------------------
 1514|      0|        HANDLE_TYPE(FLOAT, Float);
  ------------------
  |  | 1507|      0|  case WireFormatLite::TYPE_##UPPERCASE:          \
  |  |  ------------------
  |  |  |  Branch (1507:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1508|      0|    result += WireFormatLite::k##CAMELCASE##Size; \
  |  | 1509|      0|    break
  ------------------
 1515|      0|        HANDLE_TYPE(DOUBLE, Double);
  ------------------
  |  | 1507|      0|  case WireFormatLite::TYPE_##UPPERCASE:          \
  |  |  ------------------
  |  |  |  Branch (1507:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1508|      0|    result += WireFormatLite::k##CAMELCASE##Size; \
  |  | 1509|      0|    break
  ------------------
 1516|    410|        HANDLE_TYPE(BOOL, Bool);
  ------------------
  |  | 1507|      0|  case WireFormatLite::TYPE_##UPPERCASE:          \
  |  |  ------------------
  |  |  |  Branch (1507:3): [True: 0, False: 410]
  |  |  ------------------
  |  | 1508|      0|    result += WireFormatLite::k##CAMELCASE##Size; \
  |  | 1509|      0|    break
  ------------------
 1517|    410|#undef HANDLE_TYPE
 1518|    410|    }
 1519|    410|  }
 1520|       |
 1521|    410|  return result;
 1522|    410|}
_ZN6google8protobuf8internal12ExtensionSet9Extension4FreeEv:
 1550|    426|void ExtensionSet::Extension::Free() {
 1551|    426|  if (is_repeated) {
  ------------------
  |  Branch (1551:7): [True: 0, False: 426]
  ------------------
 1552|      0|    switch (cpp_type(type)) {
  ------------------
  |  Branch (1552:13): [True: 0, False: 0]
  ------------------
 1553|      0|#define HANDLE_TYPE(UPPERCASE, LOWERCASE)    \
 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
 1556|      0|    break
 1557|       |
 1558|      0|      HANDLE_TYPE(INT32, int32_t);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1559|      0|      HANDLE_TYPE(INT64, int64_t);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1560|      0|      HANDLE_TYPE(UINT32, uint32_t);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1561|      0|      HANDLE_TYPE(UINT64, uint64_t);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1562|      0|      HANDLE_TYPE(FLOAT, float);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1563|      0|      HANDLE_TYPE(DOUBLE, double);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1564|      0|      HANDLE_TYPE(BOOL, bool);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1565|      0|      HANDLE_TYPE(ENUM, enum);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1566|      0|      HANDLE_TYPE(STRING, string);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1567|      0|      HANDLE_TYPE(MESSAGE, message);
  ------------------
  |  | 1554|      0|  case WireFormatLite::CPPTYPE_##UPPERCASE:  \
  |  |  ------------------
  |  |  |  Branch (1554:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1555|      0|    delete ptr.repeated_##LOWERCASE##_value; \
  |  | 1556|      0|    break
  ------------------
 1568|      0|#undef HANDLE_TYPE
 1569|      0|    }
 1570|    426|  } else {
 1571|    426|    switch (cpp_type(type)) {
 1572|      0|      case WireFormatLite::CPPTYPE_STRING:
  ------------------
  |  Branch (1572:7): [True: 0, False: 426]
  ------------------
 1573|      0|        delete ptr.string_value;
 1574|      0|        break;
 1575|    426|      case WireFormatLite::CPPTYPE_MESSAGE:
  ------------------
  |  Branch (1575:7): [True: 426, False: 0]
  ------------------
 1576|    426|        if (is_lazy) {
  ------------------
  |  Branch (1576:13): [True: 0, False: 426]
  ------------------
 1577|      0|          delete ptr.lazymessage_value;
 1578|    426|        } else {
 1579|    426|          delete ptr.message_value;
 1580|    426|        }
 1581|    426|        break;
 1582|      0|      default:
  ------------------
  |  Branch (1582:7): [True: 0, False: 426]
  ------------------
 1583|      0|        break;
 1584|    426|    }
 1585|    426|  }
 1586|    426|}
_ZNK6google8protobuf8internal12ExtensionSet9Extension13IsInitializedEPKS2_PKNS0_11MessageLiteEiPNS0_5ArenaE:
 1593|      8|                                            int number, Arena* arena) const {
 1594|      8|  if (cpp_type(type) != WireFormatLite::CPPTYPE_MESSAGE) return true;
  ------------------
  |  Branch (1594:7): [True: 0, False: 8]
  ------------------
 1595|       |
 1596|      8|  if (is_repeated) {
  ------------------
  |  Branch (1596:7): [True: 0, False: 8]
  ------------------
 1597|      0|    for (int i = 0; i < ptr.repeated_message_value->size(); i++) {
  ------------------
  |  Branch (1597:21): [True: 0, False: 0]
  ------------------
 1598|      0|      if (!ptr.repeated_message_value->Get(i).IsInitialized()) {
  ------------------
  |  Branch (1598:11): [True: 0, False: 0]
  ------------------
 1599|      0|        return false;
 1600|      0|      }
 1601|      0|    }
 1602|      0|    return true;
 1603|      0|  }
 1604|       |
 1605|      8|  if (is_cleared) return true;
  ------------------
  |  Branch (1605:7): [True: 0, False: 8]
  ------------------
 1606|       |
 1607|      8|  if (!is_lazy) return ptr.message_value->IsInitialized();
  ------------------
  |  Branch (1607:7): [True: 8, False: 0]
  ------------------
 1608|       |
 1609|      0|  const MessageLite* prototype =
 1610|      0|      ext_set->GetPrototypeForLazyMessage(extendee, number);
 1611|      0|  ABSL_DCHECK_NE(prototype, nullptr)
  ------------------
  |  |   76|      0|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|      0|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 0]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      0|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1612|      0|      << "extendee: " << extendee->GetTypeName() << "; number: " << number;
 1613|      0|  return ptr.lazymessage_value->IsInitialized(prototype, arena);
 1614|      8|}
_ZNK6google8protobuf8internal12ExtensionSet10FindOrNullEi:
 1619|    203|const ExtensionSet::Extension* ExtensionSet::FindOrNull(int key) const {
 1620|    203|  if (flat_size_ == 0) {
  ------------------
  |  Branch (1620:7): [True: 0, False: 203]
  ------------------
 1621|      0|    return nullptr;
 1622|    203|  } else if (PROTOBUF_PREDICT_TRUE(!is_large())) {
  ------------------
  |  |  364|    203|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 203, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 203]
  |  |  |  Branch (364:62): [True: 203, False: 0]
  |  |  ------------------
  ------------------
 1623|    203|    for (auto it = flat_begin(), end = flat_end();
 1624|    203|         it != end && it->first <= key; ++it) {
  ------------------
  |  Branch (1624:10): [True: 203, False: 0]
  |  Branch (1624:23): [True: 203, False: 0]
  ------------------
 1625|    203|      if (it->first == key) return &it->second;
  ------------------
  |  Branch (1625:11): [True: 203, False: 0]
  ------------------
 1626|    203|    }
 1627|      0|    return nullptr;
 1628|    203|  } else {
 1629|      0|    return FindOrNullInLargeMap(key);
 1630|      0|  }
 1631|    203|}
_ZN6google8protobuf8internal12ExtensionSet6InsertEi:
 1654|  1.07k|std::pair<ExtensionSet::Extension*, bool> ExtensionSet::Insert(int key) {
 1655|  1.07k|  if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|  1.07k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 1.07k]
  |  |  |  Branch (365:54): [Folded, False: 1.07k]
  |  |  |  Branch (365:63): [True: 0, False: 1.07k]
  |  |  ------------------
  ------------------
 1656|      0|    auto maybe = map_.large->insert({key, Extension()});
 1657|      0|    return {&maybe.first->second, maybe.second};
 1658|      0|  }
 1659|  1.07k|  KeyValue* end = flat_end();
 1660|  1.07k|  KeyValue* it = flat_begin();
 1661|  1.07k|  for (; it != end && it->first <= key; ++it) {
  ------------------
  |  Branch (1661:10): [True: 426, False: 649]
  |  Branch (1661:23): [True: 426, False: 0]
  ------------------
 1662|    426|    if (it->first == key) return {&it->second, false};
  ------------------
  |  Branch (1662:9): [True: 426, False: 0]
  ------------------
 1663|    426|  }
 1664|    649|  if (flat_size_ < flat_capacity_) {
  ------------------
  |  Branch (1664:7): [True: 438, False: 211]
  ------------------
 1665|    438|    std::copy_backward(it, end, end + 1);
 1666|    438|    ++flat_size_;
 1667|    438|    it->first = key;
 1668|    438|    it->second = Extension();
 1669|    438|    return {&it->second, true};
 1670|    438|  }
 1671|    211|  GrowCapacity(flat_size_ + 1);
 1672|    211|  return Insert(key);
 1673|    649|}
_ZN6google8protobuf8internal12ExtensionSet12GrowCapacityEm:
 1679|  1.26k|void ExtensionSet::GrowCapacity(size_t minimum_new_capacity) {
 1680|  1.26k|  if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|  1.26k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 1.26k]
  |  |  |  Branch (365:54): [Folded, False: 1.26k]
  |  |  |  Branch (365:63): [True: 0, False: 1.26k]
  |  |  ------------------
  ------------------
 1681|      0|    return;  // LargeMap does not have a "reserve" method.
 1682|      0|  }
 1683|  1.26k|  if (flat_capacity_ >= minimum_new_capacity) {
  ------------------
  |  Branch (1683:7): [True: 828, False: 438]
  ------------------
 1684|    828|    return;
 1685|    828|  }
 1686|       |
 1687|    438|  auto new_flat_capacity = flat_capacity_;
 1688|    438|  do {
 1689|    438|    new_flat_capacity = new_flat_capacity == 0 ? 1 : new_flat_capacity * 4;
  ------------------
  |  Branch (1689:25): [True: 438, False: 0]
  ------------------
 1690|    438|  } while (new_flat_capacity < minimum_new_capacity);
  ------------------
  |  Branch (1690:12): [True: 0, False: 438]
  ------------------
 1691|       |
 1692|    438|  KeyValue* begin = flat_begin();
 1693|    438|  KeyValue* end = flat_end();
 1694|    438|  AllocatedData new_map;
 1695|    438|  Arena* const arena = arena_;
 1696|    438|  if (new_flat_capacity > kMaximumFlatCapacity) {
  ------------------
  |  Branch (1696:7): [True: 0, False: 438]
  ------------------
 1697|      0|    new_map.large = Arena::Create<LargeMap>(arena);
 1698|      0|    LargeMap::iterator hint = new_map.large->begin();
 1699|      0|    for (const KeyValue* it = begin; it != end; ++it) {
  ------------------
  |  Branch (1699:38): [True: 0, False: 0]
  ------------------
 1700|      0|      hint = new_map.large->insert(hint, {it->first, it->second});
 1701|      0|    }
 1702|      0|    flat_size_ = static_cast<uint16_t>(-1);
 1703|      0|    ABSL_DCHECK(is_large());
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1704|    438|  } else {
 1705|    438|    new_map.flat = Arena::CreateArray<KeyValue>(arena, new_flat_capacity);
 1706|    438|    std::copy(begin, end, new_map.flat);
 1707|    438|  }
 1708|       |
 1709|       |  // ReturnArrayMemory is more efficient with power-of-2 bytes, and
 1710|       |  // sizeof(KeyValue) is a power-of-2 on 64-bit platforms. flat_capacity_ is
 1711|       |  // always a power-of-2.
 1712|    876|  ABSL_DCHECK(IsPowerOfTwo(sizeof(KeyValue)) || sizeof(void*) != 8)
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    438|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    438|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    876|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    876|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 438, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    438|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 438]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    438|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 438, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    438|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|    438|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1713|    876|      << sizeof(KeyValue) << " " << sizeof(void*);
 1714|    438|  ABSL_DCHECK(IsPowerOfTwo(flat_capacity_));
  ------------------
  |  |   47|    438|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    438|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  1.31k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    438|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    876|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    876|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 438, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    438|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 438]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    438|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 438, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  1.31k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  1.31k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1715|    438|  if (flat_capacity_ > 0) {
  ------------------
  |  Branch (1715:7): [True: 0, False: 438]
  ------------------
 1716|      0|    if (arena == nullptr) {
  ------------------
  |  Branch (1716:9): [True: 0, False: 0]
  ------------------
 1717|      0|      DeleteFlatMap(begin, flat_capacity_);
 1718|      0|    } else {
 1719|      0|      arena->ReturnArrayMemory(begin, sizeof(KeyValue) * flat_capacity_);
 1720|      0|    }
 1721|      0|  }
 1722|    438|  flat_capacity_ = new_flat_capacity;
 1723|    438|  map_ = new_map;
 1724|    438|}
_ZNK6google8protobuf8internal12ExtensionSet9Extension44InternalSerializeFieldWithCachedSizesToArrayEPKNS0_11MessageLiteEPKS2_iPhPNS0_2io19EpsCopyOutputStreamE:
 1764|    207|    uint8_t* target, io::EpsCopyOutputStream* stream) const {
 1765|    207|  if (is_repeated) {
  ------------------
  |  Branch (1765:7): [True: 0, False: 207]
  ------------------
 1766|      0|    if (is_packed) {
  ------------------
  |  Branch (1766:9): [True: 0, False: 0]
  ------------------
 1767|      0|      if (cached_size() == 0) return target;
  ------------------
  |  Branch (1767:11): [True: 0, False: 0]
  ------------------
 1768|       |
 1769|      0|      target = stream->EnsureSpace(target);
 1770|      0|      target = WireFormatLite::WriteTagToArray(
 1771|      0|          number, WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target);
 1772|      0|      target = WireFormatLite::WriteInt32NoTagToArray(cached_size(), target);
 1773|       |
 1774|      0|      switch (real_type(type)) {
  ------------------
  |  Branch (1774:15): [True: 0, False: 0]
  ------------------
 1775|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, LOWERCASE)                     \
 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
 1778|      0|      target = stream->EnsureSpace(target);                              \
 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
 1781|      0|    }                                                                    \
 1782|      0|    break
 1783|       |
 1784|      0|        HANDLE_TYPE(INT32, Int32, int32_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1785|      0|        HANDLE_TYPE(INT64, Int64, int64_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1786|      0|        HANDLE_TYPE(UINT32, UInt32, uint32_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1787|      0|        HANDLE_TYPE(UINT64, UInt64, uint64_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1788|      0|        HANDLE_TYPE(SINT32, SInt32, int32_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1789|      0|        HANDLE_TYPE(SINT64, SInt64, int64_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1790|      0|        HANDLE_TYPE(FIXED32, Fixed32, uint32_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1791|      0|        HANDLE_TYPE(FIXED64, Fixed64, uint64_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1792|      0|        HANDLE_TYPE(SFIXED32, SFixed32, int32_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1793|      0|        HANDLE_TYPE(SFIXED64, SFixed64, int64_t);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1794|      0|        HANDLE_TYPE(FLOAT, Float, float);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1795|      0|        HANDLE_TYPE(DOUBLE, Double, double);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1796|      0|        HANDLE_TYPE(BOOL, Bool, bool);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1797|      0|        HANDLE_TYPE(ENUM, Enum, enum);
  ------------------
  |  | 1776|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1776:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1777|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1777:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1778|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1779|      0|      target = WireFormatLite::Write##CAMELCASE##NoTagToArray(           \
  |  | 1780|      0|          ptr.repeated_##LOWERCASE##_value->Get(i), target);             \
  |  | 1781|      0|    }                                                                    \
  |  | 1782|      0|    break
  ------------------
 1798|      0|#undef HANDLE_TYPE
 1799|       |
 1800|      0|        case WireFormatLite::TYPE_STRING:
  ------------------
  |  Branch (1800:9): [True: 0, False: 0]
  ------------------
 1801|      0|        case WireFormatLite::TYPE_BYTES:
  ------------------
  |  Branch (1801:9): [True: 0, False: 0]
  ------------------
 1802|      0|        case WireFormatLite::TYPE_GROUP:
  ------------------
  |  Branch (1802:9): [True: 0, False: 0]
  ------------------
 1803|      0|        case WireFormatLite::TYPE_MESSAGE:
  ------------------
  |  Branch (1803:9): [True: 0, False: 0]
  ------------------
 1804|      0|          ABSL_LOG(FATAL) << "Non-primitive types can't be packed.";
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1805|      0|          break;
 1806|      0|      }
 1807|      0|    } else {
 1808|      0|      switch (real_type(type)) {
  ------------------
  |  Branch (1808:15): [True: 0, False: 0]
  ------------------
 1809|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, LOWERCASE)                     \
 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
 1812|      0|      target = stream->EnsureSpace(target);                              \
 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
 1815|      0|    }                                                                    \
 1816|      0|    break
 1817|       |
 1818|      0|        HANDLE_TYPE(INT32, Int32, int32_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1819|      0|        HANDLE_TYPE(INT64, Int64, int64_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1820|      0|        HANDLE_TYPE(UINT32, UInt32, uint32_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1821|      0|        HANDLE_TYPE(UINT64, UInt64, uint64_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1822|      0|        HANDLE_TYPE(SINT32, SInt32, int32_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1823|      0|        HANDLE_TYPE(SINT64, SInt64, int64_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1824|      0|        HANDLE_TYPE(FIXED32, Fixed32, uint32_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1825|      0|        HANDLE_TYPE(FIXED64, Fixed64, uint64_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1826|      0|        HANDLE_TYPE(SFIXED32, SFixed32, int32_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1827|      0|        HANDLE_TYPE(SFIXED64, SFixed64, int64_t);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1828|      0|        HANDLE_TYPE(FLOAT, Float, float);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1829|      0|        HANDLE_TYPE(DOUBLE, Double, double);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1830|      0|        HANDLE_TYPE(BOOL, Bool, bool);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1831|      0|        HANDLE_TYPE(ENUM, Enum, enum);
  ------------------
  |  | 1810|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1810:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1811|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1811:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1812|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1813|      0|      target = WireFormatLite::Write##CAMELCASE##ToArray(                \
  |  | 1814|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1815|      0|    }                                                                    \
  |  | 1816|      0|    break
  ------------------
 1832|      0|#undef HANDLE_TYPE
 1833|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, LOWERCASE)                     \
 1834|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
 1835|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
 1836|      0|      target = stream->EnsureSpace(target);                              \
 1837|      0|      target = stream->WriteString(                                      \
 1838|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
 1839|      0|    }                                                                    \
 1840|      0|    break
 1841|      0|        HANDLE_TYPE(STRING, String, string);
  ------------------
  |  | 1834|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1834:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1835|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1835:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1836|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1837|      0|      target = stream->WriteString(                                      \
  |  | 1838|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1839|      0|    }                                                                    \
  |  | 1840|      0|    break
  ------------------
 1842|      0|        HANDLE_TYPE(BYTES, Bytes, string);
  ------------------
  |  | 1834|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                 \
  |  |  ------------------
  |  |  |  Branch (1834:3): [True: 0, False: 0]
  |  |  ------------------
  |  | 1835|      0|    for (int i = 0; i < ptr.repeated_##LOWERCASE##_value->size(); i++) { \
  |  |  ------------------
  |  |  |  Branch (1835:21): [True: 0, False: 0]
  |  |  ------------------
  |  | 1836|      0|      target = stream->EnsureSpace(target);                              \
  |  | 1837|      0|      target = stream->WriteString(                                      \
  |  | 1838|      0|          number, ptr.repeated_##LOWERCASE##_value->Get(i), target);     \
  |  | 1839|      0|    }                                                                    \
  |  | 1840|      0|    break
  ------------------
 1843|      0|#undef HANDLE_TYPE
 1844|      0|        case WireFormatLite::TYPE_GROUP:
  ------------------
  |  Branch (1844:9): [True: 0, False: 0]
  ------------------
 1845|      0|          for (int i = 0; i < ptr.repeated_message_value->size(); i++) {
  ------------------
  |  Branch (1845:27): [True: 0, False: 0]
  ------------------
 1846|      0|            target = stream->EnsureSpace(target);
 1847|      0|            target = WireFormatLite::InternalWriteGroup(
 1848|      0|                number, ptr.repeated_message_value->Get(i), target, stream);
 1849|      0|          }
 1850|      0|          break;
 1851|      0|        case WireFormatLite::TYPE_MESSAGE:
  ------------------
  |  Branch (1851:9): [True: 0, False: 0]
  ------------------
 1852|      0|          for (int i = 0; i < ptr.repeated_message_value->size(); i++) {
  ------------------
  |  Branch (1852:27): [True: 0, False: 0]
  ------------------
 1853|      0|            auto& msg = ptr.repeated_message_value->Get(i);
 1854|      0|            target = WireFormatLite::InternalWriteMessage(
 1855|      0|                number, msg, msg.GetCachedSize(), target, stream);
 1856|      0|          }
 1857|      0|          break;
 1858|      0|      }
 1859|      0|    }
 1860|    207|  } else if (!is_cleared) {
  ------------------
  |  Branch (1860:14): [True: 207, False: 0]
  ------------------
 1861|    207|    switch (real_type(type)) {
  ------------------
  |  Branch (1861:13): [True: 207, False: 0]
  ------------------
 1862|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, VALUE)                               \
 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
 1864|      0|    target = stream->EnsureSpace(target);                                      \
 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
 1866|      0|    break
 1867|       |
 1868|      0|      HANDLE_TYPE(INT32, Int32, int32_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1869|      0|      HANDLE_TYPE(INT64, Int64, int64_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1870|      0|      HANDLE_TYPE(UINT32, UInt32, uint32_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1871|      0|      HANDLE_TYPE(UINT64, UInt64, uint64_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1872|      0|      HANDLE_TYPE(SINT32, SInt32, int32_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1873|      0|      HANDLE_TYPE(SINT64, SInt64, int64_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1874|      0|      HANDLE_TYPE(FIXED32, Fixed32, uint32_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1875|      0|      HANDLE_TYPE(FIXED64, Fixed64, uint64_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1876|      0|      HANDLE_TYPE(SFIXED32, SFixed32, int32_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1877|      0|      HANDLE_TYPE(SFIXED64, SFixed64, int64_t_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1878|      0|      HANDLE_TYPE(FLOAT, Float, float_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1879|      0|      HANDLE_TYPE(DOUBLE, Double, double_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1880|      0|      HANDLE_TYPE(BOOL, Bool, bool_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1881|      0|      HANDLE_TYPE(ENUM, Enum, enum_value);
  ------------------
  |  | 1863|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                       \
  |  |  ------------------
  |  |  |  Branch (1863:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1864|      0|    target = stream->EnsureSpace(target);                                      \
  |  | 1865|      0|    target = WireFormatLite::Write##CAMELCASE##ToArray(number, VALUE, target); \
  |  | 1866|      0|    break
  ------------------
 1882|      0|#undef HANDLE_TYPE
 1883|      0|#define HANDLE_TYPE(UPPERCASE, CAMELCASE, VALUE)         \
 1884|      0|  case WireFormatLite::TYPE_##UPPERCASE:                 \
 1885|      0|    target = stream->EnsureSpace(target);                \
 1886|      0|    target = stream->WriteString(number, VALUE, target); \
 1887|      0|    break
 1888|      0|      HANDLE_TYPE(STRING, String, *ptr.string_value);
  ------------------
  |  | 1884|      0|  case WireFormatLite::TYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1884:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1885|      0|    target = stream->EnsureSpace(target);                \
  |  | 1886|      0|    target = stream->WriteString(number, VALUE, target); \
  |  | 1887|      0|    break
  ------------------
 1889|      0|      HANDLE_TYPE(BYTES, Bytes, *ptr.string_value);
  ------------------
  |  | 1884|      0|  case WireFormatLite::TYPE_##UPPERCASE:                 \
  |  |  ------------------
  |  |  |  Branch (1884:3): [True: 0, False: 207]
  |  |  ------------------
  |  | 1885|      0|    target = stream->EnsureSpace(target);                \
  |  | 1886|      0|    target = stream->WriteString(number, VALUE, target); \
  |  | 1887|      0|    break
  ------------------
 1890|      0|#undef HANDLE_TYPE
 1891|      0|      case WireFormatLite::TYPE_GROUP:
  ------------------
  |  Branch (1891:7): [True: 0, False: 207]
  ------------------
 1892|      0|        target = stream->EnsureSpace(target);
 1893|      0|        target = WireFormatLite::InternalWriteGroup(number, *ptr.message_value,
 1894|      0|                                                    target, stream);
 1895|      0|        break;
 1896|    207|      case WireFormatLite::TYPE_MESSAGE:
  ------------------
  |  Branch (1896:7): [True: 207, False: 0]
  ------------------
 1897|    207|        if (is_lazy) {
  ------------------
  |  Branch (1897:13): [True: 0, False: 207]
  ------------------
 1898|      0|          const auto* prototype =
 1899|      0|              extension_set->GetPrototypeForLazyMessage(extendee, number);
 1900|      0|          target = ptr.lazymessage_value->WriteMessageToArray(prototype, number,
 1901|      0|                                                              target, stream);
 1902|    207|        } else {
 1903|    207|          target = WireFormatLite::InternalWriteMessage(
 1904|    207|              number, *ptr.message_value, ptr.message_value->GetCachedSize(),
 1905|    207|              target, stream);
 1906|    207|        }
 1907|    207|        break;
 1908|    207|    }
 1909|    207|  }
 1910|    207|  return target;
 1911|    207|}
extension_set.cc:_ZN6google8protobuf8internal12_GLOBAL__N_123FindRegisteredExtensionEPKNS0_11MessageLiteEi:
  101|      8|                                             int number) {
  102|      8|  if (!global_registry) return nullptr;
  ------------------
  |  Branch (102:7): [True: 0, False: 8]
  ------------------
  103|       |
  104|      8|  ExtensionInfoKey info;
  105|      8|  info.message = extendee;
  106|      8|  info.number = number;
  107|       |
  108|      8|  auto it = global_registry->find(info);
  109|      8|  if (it == global_registry->end()) {
  ------------------
  |  Branch (109:7): [True: 0, False: 8]
  ------------------
  110|      0|    return nullptr;
  111|      8|  } else {
  112|      8|    return &*it;
  113|      8|  }
  114|      8|}
extension_set.cc:_ZNK6google8protobuf8internal12_GLOBAL__N_111ExtensionEqclERKNS1_13ExtensionInfoERKNS2_16ExtensionInfoKeyE:
   65|      8|  bool operator()(const ExtensionInfo& lhs, const ExtensionInfoKey& rhs) const {
   66|      8|    return lhs.message == rhs.message && lhs.number == rhs.number;
  ------------------
  |  Branch (66:12): [True: 8, False: 0]
  |  Branch (66:42): [True: 8, False: 0]
  ------------------
   67|      8|  }
extension_set.cc:_ZNK6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherclERKNS2_16ExtensionInfoKeyE:
   78|      8|  std::size_t operator()(const ExtensionInfoKey& info) const {
   79|      8|    return absl::HashOf(info.message, info.number);
   80|      8|  }
extension_set.cc:_ZN6google8protobuf8internal12_GLOBAL__N_18RegisterERKNS1_13ExtensionInfoE:
   90|      1|void Register(const ExtensionInfo& info) {
   91|      1|  static auto local_static_registry = OnShutdownDelete(new ExtensionRegistry);
   92|      1|  global_registry = local_static_registry;
   93|      1|  if (!local_static_registry->insert(info).second) {
  ------------------
  |  Branch (93:7): [True: 0, False: 1]
  ------------------
   94|      0|    ABSL_LOG(FATAL) << "Multiple extension registrations for type \""
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   95|      0|                    << info.message->GetTypeName() << "\", field number "
   96|      0|                    << info.number << ".";
   97|      0|  }
   98|      1|}
extension_set.cc:_ZNK6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherclERKNS1_13ExtensionInfoE:
   75|      1|  std::size_t operator()(const ExtensionInfo& info) const {
   76|      1|    return absl::HashOf(info.message, info.number);
   77|      1|  }
extension_set.cc:_ZN6google8protobuf8internal12_GLOBAL__N_18cpp_typeEh:
   49|  1.08k|inline WireFormatLite::CppType cpp_type(FieldType type) {
   50|  1.08k|  return WireFormatLite::FieldTypeToCppType(real_type(type));
   51|  1.08k|}
extension_set.cc:_ZN6google8protobuf8internal12_GLOBAL__N_19real_typeEh:
   44|  2.11k|inline WireFormatLite::FieldType real_type(FieldType type) {
   45|  2.11k|  ABSL_DCHECK(type > 0 && type <= WireFormatLite::MAX_FIELD_TYPE);
  ------------------
  |  |   47|  2.11k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  2.11k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  4.22k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  2.11k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  4.22k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  4.22k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 2.11k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  2.11k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 2.11k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  2.11k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 2.11k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  4.22k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  4.22k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   46|  2.11k|  return static_cast<WireFormatLite::FieldType>(type);
   47|  2.11k|}
extension_set.cc:_ZZN6google8protobuf8internal12ExtensionSetD1EvENK3$_0clEiRNS2_9ExtensionE:
  189|    426|    ForEach([](int /* number */, Extension& ext) { ext.Free(); },
extension_set.cc:_ZN6google8protobuf8internal12_GLOBAL__N_111SizeOfUnionIPNS1_12ExtensionSet8KeyValueEPKS5_EEmT_S9_T0_SA_:
  970|  1.05k|size_t SizeOfUnion(ItX it_dest, ItX end_dest, ItY it_source, ItY end_source) {
  971|  1.05k|  size_t result = 0;
  972|  1.48k|  while (it_dest != end_dest && it_source != end_source) {
  ------------------
  |  Branch (972:10): [True: 434, False: 1.04k]
  |  Branch (972:33): [True: 426, False: 8]
  ------------------
  973|    426|    if (it_dest->first < it_source->first) {
  ------------------
  |  Branch (973:9): [True: 0, False: 426]
  ------------------
  974|      0|      ++result;
  975|      0|      ++it_dest;
  976|    426|    } else if (it_dest->first == it_source->first) {
  ------------------
  |  Branch (976:16): [True: 426, False: 0]
  ------------------
  977|    426|      ++result;
  978|    426|      ++it_dest;
  979|    426|      ++it_source;
  980|    426|    } else {
  981|      0|      if (!it_source->second.is_cleared) {
  ------------------
  |  Branch (981:11): [True: 0, False: 0]
  ------------------
  982|      0|        ++result;
  983|      0|      }
  984|      0|      ++it_source;
  985|      0|    }
  986|    426|  }
  987|  1.05k|  result += std::distance(it_dest, end_dest);
  988|  1.28k|  for (; it_source != end_source; ++it_source) {
  ------------------
  |  Branch (988:10): [True: 227, False: 1.05k]
  ------------------
  989|    227|    if (!it_source->second.is_cleared) {
  ------------------
  |  Branch (989:9): [True: 227, False: 0]
  ------------------
  990|    227|      ++result;
  991|    227|    }
  992|    227|  }
  993|  1.05k|  return result;
  994|  1.05k|}
extension_set.cc:_ZZN6google8protobuf8internal12ExtensionSet9MergeFromEPKNS0_11MessageLiteERKS2_ENK3$_0clEiRKNS2_9ExtensionE:
 1011|    653|      [extendee, this, &other](int number, const Extension& ext) {
 1012|    653|        this->InternalExtensionMergeFrom(extendee, number, ext, other.arena_);
 1013|    653|      },
extension_set.cc:_ZZNK6google8protobuf8internal12ExtensionSet8ByteSizeEvENK3$_0clEiRKNS2_9ExtensionE:
 1317|    410|      [&total_size](int number, const Extension& ext) {
 1318|    410|        total_size += ext.ByteSize(number);
 1319|    410|      },

_ZN6google8protobuf8internal13ExtensionInfoC2Ev:
  108|      8|  constexpr ExtensionInfo() : enum_validity_check() {}
_ZN6google8protobuf8internal13ExtensionInfoC2EPKNS0_11MessageLiteEihbbPFPKcS7_PNS1_12ParseContextEENS1_14LazyAnnotationE:
  121|      1|      : message(extendee),
  122|      1|        number(param_number),
  123|      1|        type(type_param),
  124|      1|        is_repeated(isrepeated),
  125|      1|        is_packed(ispacked),
  126|      1|        is_lazy(islazy),
  127|      1|        enum_validity_check(),
  128|      1|        lazy_eager_verify_func(verify_func) {}
_ZN6google8protobuf8internal24GeneratedExtensionFinderC2EPKNS0_11MessageLiteE:
  178|      8|      : extendee_(extendee) {}
_ZN6google8protobuf8internal12ExtensionSetC2ENS1_18InternalVisibilityEPNS0_5ArenaE:
  208|    867|      : ExtensionSet(arena) {}
_ZNK6google8protobuf8internal12ExtensionSet18_InternalSerializeEPKNS0_11MessageLiteEiiPhPNS0_2io19EpsCopyOutputStreamE:
  486|    226|                              io::EpsCopyOutputStream* stream) const {
  487|    226|    if (flat_size_ == 0) {
  ------------------
  |  Branch (487:9): [True: 19, False: 207]
  ------------------
  488|     19|      assert(!is_large());
  489|     19|      return target;
  490|     19|    }
  491|    207|    return _InternalSerializeImpl(extendee, start_field_number,
  492|    207|                                  end_field_number, target, stream);
  493|    226|  }
_ZNK6google8protobuf8internal12ExtensionSet9Extension11PrefetchPtrEv:
  682|  1.48k|    const void* PrefetchPtr() const {
  683|  1.48k|      ABSL_DCHECK_EQ(is_pointer, is_repeated || FieldTypeIsPointer(type));
  ------------------
  |  |   74|  1.48k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  1.48k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  1.48k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 1.48k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (56:38): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (56:38): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  1.48k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  684|       |      // We don't want to prefetch invalid/null pointers so if there isn't a
  685|       |      // pointer to prefetch, then return `this`.
  686|  1.48k|      return is_pointer ? absl::bit_cast<const void*>(ptr) : this;
  ------------------
  |  Branch (686:14): [True: 1.48k, False: 0]
  ------------------
  687|  1.48k|    }
_ZNK6google8protobuf8internal12ExtensionSet8is_largeEv:
  791|  8.36k|  bool is_large() const { return static_cast<int16_t>(flat_size_) < 0; }
_ZNK6google8protobuf8internal12ExtensionSet8PrefetchclEPKv:
  802|  1.06k|    void operator()(const void* ptr) const { absl::PrefetchToLocalCache(ptr); }
_ZNK6google8protobuf8internal12ExtensionSet11PrefetchNtaclEPKv:
  805|    426|    void operator()(const void* ptr) const {
  806|    426|      absl::PrefetchToLocalCacheNta(ptr);
  807|    426|    }
_ZN6google8protobuf8internal12ExtensionSet10flat_beginEv:
 1030|  3.45k|  KeyValue* flat_begin() {
 1031|       |    assert(!is_large());
 1032|  3.45k|    return map_.flat;
 1033|  3.45k|  }
_ZNK6google8protobuf8internal12ExtensionSet10flat_beginEv:
 1034|  3.22k|  const KeyValue* flat_begin() const {
 1035|       |    assert(!is_large());
 1036|  3.22k|    return map_.flat;
 1037|  3.22k|  }
_ZN6google8protobuf8internal12ExtensionSet8flat_endEv:
 1038|  3.45k|  KeyValue* flat_end() {
 1039|       |    assert(!is_large());
 1040|  3.45k|    return map_.flat + flat_size_;
 1041|  3.45k|  }
_ZNK6google8protobuf8internal12ExtensionSet8flat_endEv:
 1042|  3.23k|  const KeyValue* flat_end() const {
 1043|       |    assert(!is_large());
 1044|  3.23k|    return map_.flat + flat_size_;
 1045|  3.23k|  }
_ZNK6google8protobuf8internal12ExtensionSet32FindExtensionInfoFromFieldNumberINS1_24GeneratedExtensionFinderEEEbiiPT_PNS1_13ExtensionInfoEPb:
  937|      8|                                        bool* was_packed_on_wire) const {
  938|      8|    if (!extension_finder->Find(field_number, extension)) {
  ------------------
  |  Branch (938:9): [True: 0, False: 8]
  ------------------
  939|      0|      return false;
  940|      0|    }
  941|       |
  942|      8|    ABSL_DCHECK(extension->type > 0 &&
  ------------------
  |  |   47|      8|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      8|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     24|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      8|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     16|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     16|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 8, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      8|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 8]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 8, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     24|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     24|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  943|      8|                extension->type <= WireFormatLite::MAX_FIELD_TYPE);
  944|      8|    auto real_type = static_cast<WireFormatLite::FieldType>(extension->type);
  945|       |
  946|      8|    WireFormatLite::WireType expected_wire_type =
  947|      8|        WireFormatLite::WireTypeForFieldType(real_type);
  948|       |
  949|       |    // Check if this is a packed field.
  950|      8|    *was_packed_on_wire = false;
  951|      8|    if (extension->is_repeated &&
  ------------------
  |  Branch (951:9): [True: 0, False: 8]
  ------------------
  952|      0|        wire_type == WireFormatLite::WIRETYPE_LENGTH_DELIMITED &&
  ------------------
  |  Branch (952:9): [True: 0, False: 0]
  ------------------
  953|      0|        is_packable(expected_wire_type)) {
  ------------------
  |  Branch (953:9): [True: 0, False: 0]
  ------------------
  954|      0|      *was_packed_on_wire = true;
  955|      0|      return true;
  956|      0|    }
  957|       |    // Otherwise the wire type must match.
  958|      8|    return expected_wire_type == wire_type;
  959|      8|  }
_ZN6google8protobuf8internal12ExtensionSetC2EPNS0_5ArenaE:
 1066|    867|    : arena_(arena), flat_capacity_(0), flat_size_(0), map_{nullptr} {}
extension_set.cc:_ZN6google8protobuf8internal12ExtensionSet7ForEachIZNS2_D1EvE3$_0NS2_11PrefetchNtaEEEvT_T0_:
  839|    864|  void ForEach(KeyValueFunctor func, PrefetchFunctor prefetch_func) {
  840|    864|    if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|    864|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 864]
  |  |  |  Branch (365:54): [Folded, False: 864]
  |  |  |  Branch (365:63): [True: 0, False: 864]
  |  |  ------------------
  ------------------
  841|      0|      ForEachPrefetchImpl(map_.large->begin(), map_.large->end(),
  842|      0|                          std::move(func), std::move(prefetch_func));
  843|      0|      return;
  844|      0|    }
  845|    864|    ForEachPrefetchImpl(flat_begin(), flat_end(), std::move(func),
  846|    864|                        std::move(prefetch_func));
  847|    864|  }
extension_set.cc:_ZN6google8protobuf8internal12ExtensionSet19ForEachPrefetchImplIPNS2_8KeyValueEZNS2_D1EvE3$_0NS2_11PrefetchNtaEEEvT_S8_T0_T1_:
  814|    864|                                  PrefetchFunctor prefetch_func) {
  815|       |    // Note: based on arena's ChunkList::Cleanup().
  816|       |    // Prefetch distance 16 performs better than 8 in load tests.
  817|    864|    constexpr int kPrefetchDistance = 16;
  818|    864|    Iterator prefetch = it;
  819|       |    // Prefetch the first kPrefetchDistance extensions.
  820|  1.29k|    for (int i = 0; prefetch != end && i < kPrefetchDistance; ++prefetch, ++i) {
  ------------------
  |  Branch (820:21): [True: 426, False: 864]
  |  Branch (820:40): [True: 426, False: 0]
  ------------------
  821|    426|      prefetch_func(prefetch->second.PrefetchPtr());
  822|    426|    }
  823|       |    // For the middle extensions, call func and then prefetch the extension
  824|       |    // kPrefetchDistance after the current one.
  825|    864|    for (; prefetch != end; ++it, ++prefetch) {
  ------------------
  |  Branch (825:12): [True: 0, False: 864]
  ------------------
  826|      0|      func(it->first, it->second);
  827|      0|      prefetch_func(prefetch->second.PrefetchPtr());
  828|      0|    }
  829|       |    // Call func on the rest without prefetching.
  830|  1.29k|    for (; it != end; ++it) func(it->first, it->second);
  ------------------
  |  Branch (830:12): [True: 426, False: 864]
  ------------------
  831|    864|  }
extension_set.cc:_ZN6google8protobuf8internal12ExtensionSet7ForEachIZNS2_5ClearEvE3$_0NS2_8PrefetchEEEvT_T0_:
  839|     19|  void ForEach(KeyValueFunctor func, PrefetchFunctor prefetch_func) {
  840|     19|    if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|     19|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 19]
  |  |  |  Branch (365:54): [Folded, False: 19]
  |  |  |  Branch (365:63): [True: 0, False: 19]
  |  |  ------------------
  ------------------
  841|      0|      ForEachPrefetchImpl(map_.large->begin(), map_.large->end(),
  842|      0|                          std::move(func), std::move(prefetch_func));
  843|      0|      return;
  844|      0|    }
  845|     19|    ForEachPrefetchImpl(flat_begin(), flat_end(), std::move(func),
  846|     19|                        std::move(prefetch_func));
  847|     19|  }
extension_set.cc:_ZN6google8protobuf8internal12ExtensionSet19ForEachPrefetchImplIPNS2_8KeyValueEZNS2_5ClearEvE3$_0NS2_8PrefetchEEEvT_S8_T0_T1_:
  814|     19|                                  PrefetchFunctor prefetch_func) {
  815|       |    // Note: based on arena's ChunkList::Cleanup().
  816|       |    // Prefetch distance 16 performs better than 8 in load tests.
  817|     19|    constexpr int kPrefetchDistance = 16;
  818|     19|    Iterator prefetch = it;
  819|       |    // Prefetch the first kPrefetchDistance extensions.
  820|     19|    for (int i = 0; prefetch != end && i < kPrefetchDistance; ++prefetch, ++i) {
  ------------------
  |  Branch (820:21): [True: 0, False: 19]
  |  Branch (820:40): [True: 0, False: 0]
  ------------------
  821|      0|      prefetch_func(prefetch->second.PrefetchPtr());
  822|      0|    }
  823|       |    // For the middle extensions, call func and then prefetch the extension
  824|       |    // kPrefetchDistance after the current one.
  825|     19|    for (; prefetch != end; ++it, ++prefetch) {
  ------------------
  |  Branch (825:12): [True: 0, False: 19]
  ------------------
  826|      0|      func(it->first, it->second);
  827|      0|      prefetch_func(prefetch->second.PrefetchPtr());
  828|      0|    }
  829|       |    // Call func on the rest without prefetching.
  830|     19|    for (; it != end; ++it) func(it->first, it->second);
  ------------------
  |  Branch (830:12): [True: 0, False: 19]
  ------------------
  831|     19|  }
extension_set.cc:_ZNK6google8protobuf8internal12ExtensionSet7ForEachIZNS2_9MergeFromEPKNS0_11MessageLiteERKS2_E3$_0NS2_8PrefetchEEEvT_T0_:
  850|  1.05k|  void ForEach(KeyValueFunctor func, PrefetchFunctor prefetch_func) const {
  851|  1.05k|    if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|  1.05k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 1.05k]
  |  |  |  Branch (365:54): [Folded, False: 1.05k]
  |  |  |  Branch (365:63): [True: 0, False: 1.05k]
  |  |  ------------------
  ------------------
  852|      0|      ForEachPrefetchImpl(map_.large->begin(), map_.large->end(),
  853|      0|                          std::move(func), std::move(prefetch_func));
  854|      0|      return;
  855|      0|    }
  856|  1.05k|    ForEachPrefetchImpl(flat_begin(), flat_end(), std::move(func),
  857|  1.05k|                        std::move(prefetch_func));
  858|  1.05k|  }
extension_set.cc:_ZN6google8protobuf8internal12ExtensionSet19ForEachPrefetchImplIPKNS2_8KeyValueEZNS2_9MergeFromEPKNS0_11MessageLiteERKS2_E3$_0NS2_8PrefetchEEEvT_SE_T0_T1_:
  814|  1.05k|                                  PrefetchFunctor prefetch_func) {
  815|       |    // Note: based on arena's ChunkList::Cleanup().
  816|       |    // Prefetch distance 16 performs better than 8 in load tests.
  817|  1.05k|    constexpr int kPrefetchDistance = 16;
  818|  1.05k|    Iterator prefetch = it;
  819|       |    // Prefetch the first kPrefetchDistance extensions.
  820|  1.70k|    for (int i = 0; prefetch != end && i < kPrefetchDistance; ++prefetch, ++i) {
  ------------------
  |  Branch (820:21): [True: 653, False: 1.05k]
  |  Branch (820:40): [True: 653, False: 0]
  ------------------
  821|    653|      prefetch_func(prefetch->second.PrefetchPtr());
  822|    653|    }
  823|       |    // For the middle extensions, call func and then prefetch the extension
  824|       |    // kPrefetchDistance after the current one.
  825|  1.05k|    for (; prefetch != end; ++it, ++prefetch) {
  ------------------
  |  Branch (825:12): [True: 0, False: 1.05k]
  ------------------
  826|      0|      func(it->first, it->second);
  827|      0|      prefetch_func(prefetch->second.PrefetchPtr());
  828|      0|    }
  829|       |    // Call func on the rest without prefetching.
  830|  1.70k|    for (; it != end; ++it) func(it->first, it->second);
  ------------------
  |  Branch (830:12): [True: 653, False: 1.05k]
  ------------------
  831|  1.05k|  }
extension_set.cc:_ZNK6google8protobuf8internal12ExtensionSet7ForEachIZNKS2_8ByteSizeEvE3$_0NS2_8PrefetchEEEvT_T0_:
  850|    620|  void ForEach(KeyValueFunctor func, PrefetchFunctor prefetch_func) const {
  851|    620|    if (PROTOBUF_PREDICT_FALSE(is_large())) {
  ------------------
  |  |  365|    620|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 620]
  |  |  |  Branch (365:54): [Folded, False: 620]
  |  |  |  Branch (365:63): [True: 0, False: 620]
  |  |  ------------------
  ------------------
  852|      0|      ForEachPrefetchImpl(map_.large->begin(), map_.large->end(),
  853|      0|                          std::move(func), std::move(prefetch_func));
  854|      0|      return;
  855|      0|    }
  856|    620|    ForEachPrefetchImpl(flat_begin(), flat_end(), std::move(func),
  857|    620|                        std::move(prefetch_func));
  858|    620|  }
extension_set.cc:_ZN6google8protobuf8internal12ExtensionSet19ForEachPrefetchImplIPKNS2_8KeyValueEZNKS2_8ByteSizeEvE3$_0NS2_8PrefetchEEEvT_S9_T0_T1_:
  814|    620|                                  PrefetchFunctor prefetch_func) {
  815|       |    // Note: based on arena's ChunkList::Cleanup().
  816|       |    // Prefetch distance 16 performs better than 8 in load tests.
  817|    620|    constexpr int kPrefetchDistance = 16;
  818|    620|    Iterator prefetch = it;
  819|       |    // Prefetch the first kPrefetchDistance extensions.
  820|  1.03k|    for (int i = 0; prefetch != end && i < kPrefetchDistance; ++prefetch, ++i) {
  ------------------
  |  Branch (820:21): [True: 410, False: 620]
  |  Branch (820:40): [True: 410, False: 0]
  ------------------
  821|    410|      prefetch_func(prefetch->second.PrefetchPtr());
  822|    410|    }
  823|       |    // For the middle extensions, call func and then prefetch the extension
  824|       |    // kPrefetchDistance after the current one.
  825|    620|    for (; prefetch != end; ++it, ++prefetch) {
  ------------------
  |  Branch (825:12): [True: 0, False: 620]
  ------------------
  826|      0|      func(it->first, it->second);
  827|      0|      prefetch_func(prefetch->second.PrefetchPtr());
  828|      0|    }
  829|       |    // Call func on the rest without prefetching.
  830|  1.03k|    for (; it != end; ++it) func(it->first, it->second);
  ------------------
  |  Branch (830:12): [True: 410, False: 620]
  ------------------
  831|    620|  }
_ZN6google8protobuf8internal17MessageTypeTraitsIN2pb11CppFeaturesEE3GetEiRKNS1_12ExtensionSetERKS4_:
 1484|    203|                              ConstType default_value) {
 1485|    203|    return static_cast<const Type&>(set.GetMessage(number, default_value));
 1486|    203|  }
_ZNK6google8protobuf8internal19ExtensionIdentifierINS0_10FeatureSetENS1_17MessageTypeTraitsIN2pb11CppFeaturesEEELh11ELb0EE13default_valueEv:
 1622|    203|  typename TypeTraits::ConstType default_value() const {
 1623|    203|    return TypeTraits::FromInitType(default_value_);
 1624|    203|  }
_ZN6google8protobuf8internal17MessageTypeTraitsIN2pb11CppFeaturesEE12FromInitTypeEPKv:
 1477|    203|  static ConstType FromInitType(InitType v) {
 1478|    203|    return *static_cast<const Type*>(v);
 1479|    203|  }
_ZNK6google8protobuf8internal19ExtensionIdentifierINS0_10FeatureSetENS1_17MessageTypeTraitsIN2pb11CppFeaturesEEELh11ELb0EE6numberEv:
 1621|    407|  inline int number() const { return number_; }
_ZN6google8protobuf8internal17MessageTypeTraitsIN2pb11CppFeaturesEE7MutableEihPNS1_12ExtensionSetE:
 1494|    203|                                    ExtensionSet* set) {
 1495|    203|    return static_cast<Type*>(set->MutableMessage(
 1496|    203|        number, field_type, Type::default_instance(), nullptr));
 1497|    203|  }

_ZN6google8protobuf8internal12ExtensionSet10ParseFieldEmPKcPKNS0_7MessageEPNS1_16InternalMetadataEPNS1_12ParseContextE:
  328|      8|                                     internal::ParseContext* ctx) {
  329|      8|  int number = tag >> 3;
  330|      8|  bool was_packed_on_wire;
  331|      8|  ExtensionInfo extension;
  332|      8|  if (!FindExtension(tag & 7, number, extendee, ctx, &extension,
  ------------------
  |  Branch (332:7): [True: 0, False: 8]
  ------------------
  333|      8|                     &was_packed_on_wire)) {
  334|      0|    return UnknownFieldParse(
  335|      0|        tag, metadata->mutable_unknown_fields<UnknownFieldSet>(), ptr, ctx);
  336|      0|  }
  337|      8|  return ParseFieldWithExtensionInfo<UnknownFieldSet>(
  338|      8|      number, was_packed_on_wire, extension, metadata, ptr, ctx);
  339|      8|}
_ZN6google8protobuf8internal12ExtensionSet13FindExtensionEijPKNS0_7MessageEPKNS1_12ParseContextEPNS1_13ExtensionInfoEPb:
  306|      8|                                 bool* was_packed_on_wire) {
  307|      8|  if (ctx->data().pool == nullptr) {
  ------------------
  |  Branch (307:7): [True: 8, False: 0]
  ------------------
  308|      8|    GeneratedExtensionFinder finder(extendee);
  309|      8|    if (!FindExtensionInfoFromFieldNumber(wire_type, field, &finder, extension,
  ------------------
  |  Branch (309:9): [True: 0, False: 8]
  ------------------
  310|      8|                                          was_packed_on_wire)) {
  311|      0|      return false;
  312|      0|    }
  313|      8|  } else {
  314|      0|    DescriptorPoolExtensionFinder finder(ctx->data().pool, ctx->data().factory,
  315|      0|                                         extendee->GetDescriptor());
  316|      0|    if (!FindExtensionInfoFromFieldNumber(wire_type, field, &finder, extension,
  ------------------
  |  Branch (316:9): [True: 0, False: 0]
  ------------------
  317|      0|                                          was_packed_on_wire)) {
  318|      0|      return false;
  319|      0|    }
  320|      0|  }
  321|      8|  return true;
  322|      8|}

_ZN6google8protobuf8internal12ExtensionSet27ParseFieldWithExtensionInfoINS0_15UnknownFieldSetEEEPKcibRKNS1_13ExtensionInfoEPNS1_16InternalMetadataES6_PNS1_12ParseContextE:
   22|      8|    InternalMetadata* metadata, const char* ptr, internal::ParseContext* ctx) {
   23|      8|  if (was_packed_on_wire) {
  ------------------
  |  Branch (23:7): [True: 0, False: 8]
  ------------------
   24|      0|    switch (extension.type) {
  ------------------
  |  Branch (24:13): [True: 0, False: 0]
  ------------------
   25|      0|#define HANDLE_TYPE(UPPERCASE, CPP_CAMELCASE)                                \
   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
   29|      0|                                extension.descriptor),                       \
   30|      0|        ptr, ctx);
   31|      0|      HANDLE_TYPE(INT32, Int32);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   32|      0|      HANDLE_TYPE(INT64, Int64);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   33|      0|      HANDLE_TYPE(UINT32, UInt32);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   34|      0|      HANDLE_TYPE(UINT64, UInt64);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   35|      0|      HANDLE_TYPE(SINT32, SInt32);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   36|      0|      HANDLE_TYPE(SINT64, SInt64);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   37|      0|      HANDLE_TYPE(FIXED32, Fixed32);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   38|      0|      HANDLE_TYPE(FIXED64, Fixed64);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   39|      0|      HANDLE_TYPE(SFIXED32, SFixed32);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   40|      0|      HANDLE_TYPE(SFIXED64, SFixed64);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   41|      0|      HANDLE_TYPE(FLOAT, Float);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   42|      0|      HANDLE_TYPE(DOUBLE, Double);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   43|      0|      HANDLE_TYPE(BOOL, Bool);
  ------------------
  |  |   26|      0|  case WireFormatLite::TYPE_##UPPERCASE:                                     \
  |  |  ------------------
  |  |  |  Branch (26:3): [True: 0, False: 0]
  |  |  ------------------
  |  |   27|      0|    return internal::Packed##CPP_CAMELCASE##Parser(                          \
  |  |   28|      0|        MutableRawRepeatedField(number, extension.type, extension.is_packed, \
  |  |   29|      0|                                extension.descriptor),                       \
  |  |   30|      0|        ptr, ctx);
  ------------------
   44|      0|#undef HANDLE_TYPE
   45|       |
   46|      0|      case WireFormatLite::TYPE_ENUM:
  ------------------
  |  Branch (46:7): [True: 0, False: 0]
  ------------------
   47|      0|        return internal::PackedEnumParserArg<T>(
   48|      0|            MutableRawRepeatedField(number, extension.type, extension.is_packed,
   49|      0|                                    extension.descriptor),
   50|      0|            ptr, ctx, extension.enum_validity_check.func,
   51|      0|            extension.enum_validity_check.arg, metadata, number);
   52|      0|      case WireFormatLite::TYPE_STRING:
  ------------------
  |  Branch (52:7): [True: 0, False: 0]
  ------------------
   53|      0|      case WireFormatLite::TYPE_BYTES:
  ------------------
  |  Branch (53:7): [True: 0, False: 0]
  ------------------
   54|      0|      case WireFormatLite::TYPE_GROUP:
  ------------------
  |  Branch (54:7): [True: 0, False: 0]
  ------------------
   55|      0|      case WireFormatLite::TYPE_MESSAGE:
  ------------------
  |  Branch (55:7): [True: 0, False: 0]
  ------------------
   56|      0|        ABSL_LOG(FATAL) << "Non-primitive types can't be packed.";
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   57|      0|        break;
   58|      0|    }
   59|      8|  } else {
   60|      8|    switch (extension.type) {
  ------------------
  |  Branch (60:13): [True: 8, False: 0]
  ------------------
   61|      0|#define HANDLE_VARINT_TYPE(UPPERCASE, CPP_CAMELCASE)                        \
   62|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
   63|      0|    uint64_t value;                                                         \
   64|      0|    ptr = VarintParse(ptr, &value);                                         \
   65|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
   66|      0|    if (extension.is_repeated) {                                            \
   67|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
   68|      0|                         extension.is_packed, value, extension.descriptor); \
   69|      0|    } else {                                                                \
   70|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
   71|      0|                         extension.descriptor);                             \
   72|      0|    }                                                                       \
   73|      0|  } break
   74|       |
   75|      0|      HANDLE_VARINT_TYPE(INT32, Int32);
  ------------------
  |  |   62|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (62:3): [True: 0, False: 8]
  |  |  ------------------
  |  |   63|      0|    uint64_t value;                                                         \
  |  |   64|      0|    ptr = VarintParse(ptr, &value);                                         \
  |  |   65|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
  |  |  ------------------
  |  |  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  |  |  | 1154|      0|  }
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   66|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (66:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   67|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |   68|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |   69|      0|    } else {                                                                \
  |  |   70|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |   71|      0|                         extension.descriptor);                             \
  |  |   72|      0|    }                                                                       \
  |  |   73|      0|  } break
  ------------------
   76|      0|      HANDLE_VARINT_TYPE(INT64, Int64);
  ------------------
  |  |   62|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (62:3): [True: 0, False: 8]
  |  |  ------------------
  |  |   63|      0|    uint64_t value;                                                         \
  |  |   64|      0|    ptr = VarintParse(ptr, &value);                                         \
  |  |   65|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
  |  |  ------------------
  |  |  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  |  |  | 1154|      0|  }
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   66|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (66:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   67|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |   68|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |   69|      0|    } else {                                                                \
  |  |   70|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |   71|      0|                         extension.descriptor);                             \
  |  |   72|      0|    }                                                                       \
  |  |   73|      0|  } break
  ------------------
   77|      0|      HANDLE_VARINT_TYPE(UINT32, UInt32);
  ------------------
  |  |   62|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (62:3): [True: 0, False: 8]
  |  |  ------------------
  |  |   63|      0|    uint64_t value;                                                         \
  |  |   64|      0|    ptr = VarintParse(ptr, &value);                                         \
  |  |   65|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
  |  |  ------------------
  |  |  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  |  |  | 1154|      0|  }
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   66|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (66:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   67|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |   68|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |   69|      0|    } else {                                                                \
  |  |   70|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |   71|      0|                         extension.descriptor);                             \
  |  |   72|      0|    }                                                                       \
  |  |   73|      0|  } break
  ------------------
   78|      0|      HANDLE_VARINT_TYPE(UINT64, UInt64);
  ------------------
  |  |   62|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (62:3): [True: 0, False: 8]
  |  |  ------------------
  |  |   63|      0|    uint64_t value;                                                         \
  |  |   64|      0|    ptr = VarintParse(ptr, &value);                                         \
  |  |   65|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
  |  |  ------------------
  |  |  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  |  |  | 1154|      0|  }
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   66|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (66:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   67|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |   68|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |   69|      0|    } else {                                                                \
  |  |   70|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |   71|      0|                         extension.descriptor);                             \
  |  |   72|      0|    }                                                                       \
  |  |   73|      0|  } break
  ------------------
   79|      0|      HANDLE_VARINT_TYPE(BOOL, Bool);
  ------------------
  |  |   62|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (62:3): [True: 0, False: 8]
  |  |  ------------------
  |  |   63|      0|    uint64_t value;                                                         \
  |  |   64|      0|    ptr = VarintParse(ptr, &value);                                         \
  |  |   65|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
  |  |  ------------------
  |  |  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  |  |  | 1154|      0|  }
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   66|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (66:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   67|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |   68|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |   69|      0|    } else {                                                                \
  |  |   70|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |   71|      0|                         extension.descriptor);                             \
  |  |   72|      0|    }                                                                       \
  |  |   73|      0|  } break
  ------------------
   80|      0|#undef HANDLE_VARINT_TYPE
   81|      0|#define HANDLE_SVARINT_TYPE(UPPERCASE, CPP_CAMELCASE, SIZE)                 \
   82|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
   83|      0|    uint64_t val;                                                           \
   84|      0|    ptr = VarintParse(ptr, &val);                                           \
   85|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
   86|      0|    auto value = WireFormatLite::ZigZagDecode##SIZE(val);                   \
   87|      0|    if (extension.is_repeated) {                                            \
   88|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
   89|      0|                         extension.is_packed, value, extension.descriptor); \
   90|      0|    } else {                                                                \
   91|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
   92|      0|                         extension.descriptor);                             \
   93|      0|    }                                                                       \
   94|      0|  } break
   95|       |
   96|      0|      HANDLE_SVARINT_TYPE(SINT32, Int32, 32);
  ------------------
  |  |   82|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (82:3): [True: 0, False: 8]
  |  |  ------------------
  |  |   83|      0|    uint64_t val;                                                           \
  |  |   84|      0|    ptr = VarintParse(ptr, &val);                                           \
  |  |   85|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
  |  |  ------------------
  |  |  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  |  |  | 1154|      0|  }
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   86|      0|    auto value = WireFormatLite::ZigZagDecode##SIZE(val);                   \
  |  |   87|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (87:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   88|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |   89|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |   90|      0|    } else {                                                                \
  |  |   91|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |   92|      0|                         extension.descriptor);                             \
  |  |   93|      0|    }                                                                       \
  |  |   94|      0|  } break
  ------------------
   97|      0|      HANDLE_SVARINT_TYPE(SINT64, Int64, 64);
  ------------------
  |  |   82|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (82:3): [True: 0, False: 8]
  |  |  ------------------
  |  |   83|      0|    uint64_t val;                                                           \
  |  |   84|      0|    ptr = VarintParse(ptr, &val);                                           \
  |  |   85|      0|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);                                    \
  |  |  ------------------
  |  |  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  |  |  | 1154|      0|  }
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   86|      0|    auto value = WireFormatLite::ZigZagDecode##SIZE(val);                   \
  |  |   87|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (87:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   88|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |   89|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |   90|      0|    } else {                                                                \
  |  |   91|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |   92|      0|                         extension.descriptor);                             \
  |  |   93|      0|    }                                                                       \
  |  |   94|      0|  } break
  ------------------
   98|      0|#undef HANDLE_SVARINT_TYPE
   99|      0|#define HANDLE_FIXED_TYPE(UPPERCASE, CPP_CAMELCASE, CPPTYPE)                \
  100|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  101|      0|    auto value = UnalignedLoad<CPPTYPE>(ptr);                               \
  102|      0|    ptr += sizeof(CPPTYPE);                                                 \
  103|      0|    if (extension.is_repeated) {                                            \
  104|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  105|      0|                         extension.is_packed, value, extension.descriptor); \
  106|      0|    } else {                                                                \
  107|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  108|      0|                         extension.descriptor);                             \
  109|      0|    }                                                                       \
  110|      0|  } break
  111|       |
  112|      0|      HANDLE_FIXED_TYPE(FIXED32, UInt32, uint32_t);
  ------------------
  |  |  100|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (100:3): [True: 0, False: 8]
  |  |  ------------------
  |  |  101|      0|    auto value = UnalignedLoad<CPPTYPE>(ptr);                               \
  |  |  102|      0|    ptr += sizeof(CPPTYPE);                                                 \
  |  |  103|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (103:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  104|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |  105|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |  106|      0|    } else {                                                                \
  |  |  107|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |  108|      0|                         extension.descriptor);                             \
  |  |  109|      0|    }                                                                       \
  |  |  110|      0|  } break
  ------------------
  113|      0|      HANDLE_FIXED_TYPE(FIXED64, UInt64, uint64_t);
  ------------------
  |  |  100|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (100:3): [True: 0, False: 8]
  |  |  ------------------
  |  |  101|      0|    auto value = UnalignedLoad<CPPTYPE>(ptr);                               \
  |  |  102|      0|    ptr += sizeof(CPPTYPE);                                                 \
  |  |  103|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (103:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  104|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |  105|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |  106|      0|    } else {                                                                \
  |  |  107|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |  108|      0|                         extension.descriptor);                             \
  |  |  109|      0|    }                                                                       \
  |  |  110|      0|  } break
  ------------------
  114|      0|      HANDLE_FIXED_TYPE(SFIXED32, Int32, int32_t);
  ------------------
  |  |  100|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (100:3): [True: 0, False: 8]
  |  |  ------------------
  |  |  101|      0|    auto value = UnalignedLoad<CPPTYPE>(ptr);                               \
  |  |  102|      0|    ptr += sizeof(CPPTYPE);                                                 \
  |  |  103|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (103:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  104|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |  105|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |  106|      0|    } else {                                                                \
  |  |  107|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |  108|      0|                         extension.descriptor);                             \
  |  |  109|      0|    }                                                                       \
  |  |  110|      0|  } break
  ------------------
  115|      0|      HANDLE_FIXED_TYPE(SFIXED64, Int64, int64_t);
  ------------------
  |  |  100|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (100:3): [True: 0, False: 8]
  |  |  ------------------
  |  |  101|      0|    auto value = UnalignedLoad<CPPTYPE>(ptr);                               \
  |  |  102|      0|    ptr += sizeof(CPPTYPE);                                                 \
  |  |  103|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (103:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  104|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |  105|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |  106|      0|    } else {                                                                \
  |  |  107|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |  108|      0|                         extension.descriptor);                             \
  |  |  109|      0|    }                                                                       \
  |  |  110|      0|  } break
  ------------------
  116|      0|      HANDLE_FIXED_TYPE(FLOAT, Float, float);
  ------------------
  |  |  100|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (100:3): [True: 0, False: 8]
  |  |  ------------------
  |  |  101|      0|    auto value = UnalignedLoad<CPPTYPE>(ptr);                               \
  |  |  102|      0|    ptr += sizeof(CPPTYPE);                                                 \
  |  |  103|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (103:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  104|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |  105|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |  106|      0|    } else {                                                                \
  |  |  107|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |  108|      0|                         extension.descriptor);                             \
  |  |  109|      0|    }                                                                       \
  |  |  110|      0|  } break
  ------------------
  117|      0|      HANDLE_FIXED_TYPE(DOUBLE, Double, double);
  ------------------
  |  |  100|      0|  case WireFormatLite::TYPE_##UPPERCASE: {                                  \
  |  |  ------------------
  |  |  |  Branch (100:3): [True: 0, False: 8]
  |  |  ------------------
  |  |  101|      0|    auto value = UnalignedLoad<CPPTYPE>(ptr);                               \
  |  |  102|      0|    ptr += sizeof(CPPTYPE);                                                 \
  |  |  103|      0|    if (extension.is_repeated) {                                            \
  |  |  ------------------
  |  |  |  Branch (103:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  104|      0|      Add##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE,          \
  |  |  105|      0|                         extension.is_packed, value, extension.descriptor); \
  |  |  106|      0|    } else {                                                                \
  |  |  107|      0|      Set##CPP_CAMELCASE(number, WireFormatLite::TYPE_##UPPERCASE, value,   \
  |  |  108|      0|                         extension.descriptor);                             \
  |  |  109|      0|    }                                                                       \
  |  |  110|      0|  } break
  ------------------
  118|      0|#undef HANDLE_FIXED_TYPE
  119|       |
  120|      0|      case WireFormatLite::TYPE_ENUM: {
  ------------------
  |  Branch (120:7): [True: 0, False: 8]
  ------------------
  121|      0|        uint64_t tmp;
  122|      0|        ptr = VarintParse(ptr, &tmp);
  123|      0|        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  | 1154|      0|  }
  |  |  ------------------
  ------------------
  124|      0|        int value = tmp;
  125|       |
  126|      0|        if (!extension.enum_validity_check.func(
  ------------------
  |  Branch (126:13): [True: 0, False: 0]
  ------------------
  127|      0|                extension.enum_validity_check.arg, value)) {
  128|      0|          WriteVarint(number, value, metadata->mutable_unknown_fields<T>());
  129|      0|        } else if (extension.is_repeated) {
  ------------------
  |  Branch (129:20): [True: 0, False: 0]
  ------------------
  130|      0|          AddEnum(number, WireFormatLite::TYPE_ENUM, extension.is_packed, value,
  131|      0|                  extension.descriptor);
  132|      0|        } else {
  133|      0|          SetEnum(number, WireFormatLite::TYPE_ENUM, value,
  134|      0|                  extension.descriptor);
  135|      0|        }
  136|      0|        break;
  137|      0|      }
  138|       |
  139|      0|      case WireFormatLite::TYPE_BYTES:
  ------------------
  |  Branch (139:7): [True: 0, False: 8]
  ------------------
  140|      0|      case WireFormatLite::TYPE_STRING: {
  ------------------
  |  Branch (140:7): [True: 0, False: 8]
  ------------------
  141|      0|        std::string* value =
  142|      0|            extension.is_repeated
  ------------------
  |  Branch (142:13): [True: 0, False: 0]
  ------------------
  143|      0|                ? AddString(number, WireFormatLite::TYPE_STRING,
  144|      0|                            extension.descriptor)
  145|      0|                : MutableString(number, WireFormatLite::TYPE_STRING,
  146|      0|                                extension.descriptor);
  147|      0|        int size = ReadSize(&ptr);
  148|      0|        GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|      0|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|      0|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  | 1154|      0|  }
  |  |  ------------------
  ------------------
  149|      0|        return ctx->ReadString(ptr, size, value);
  150|      0|      }
  151|       |
  152|      0|      case WireFormatLite::TYPE_GROUP: {
  ------------------
  |  Branch (152:7): [True: 0, False: 8]
  ------------------
  153|      0|        MessageLite* value =
  154|      0|            extension.is_repeated
  ------------------
  |  Branch (154:13): [True: 0, False: 0]
  ------------------
  155|      0|                ? AddMessage(number, WireFormatLite::TYPE_GROUP,
  156|      0|                             *extension.message_info.prototype,
  157|      0|                             extension.descriptor)
  158|      0|                : MutableMessage(number, WireFormatLite::TYPE_GROUP,
  159|      0|                                 *extension.message_info.prototype,
  160|      0|                                 extension.descriptor);
  161|      0|        uint32_t tag = (number << 3) + WireFormatLite::WIRETYPE_START_GROUP;
  162|      0|        return ctx->ParseGroup(value, ptr, tag);
  163|      0|      }
  164|       |
  165|      8|      case WireFormatLite::TYPE_MESSAGE: {
  ------------------
  |  Branch (165:7): [True: 8, False: 0]
  ------------------
  166|      8|        MessageLite* value =
  167|      8|            extension.is_repeated
  ------------------
  |  Branch (167:13): [True: 0, False: 8]
  ------------------
  168|      8|                ? AddMessage(number, WireFormatLite::TYPE_MESSAGE,
  169|      0|                             *extension.message_info.prototype,
  170|      0|                             extension.descriptor)
  171|      8|                : MutableMessage(number, WireFormatLite::TYPE_MESSAGE,
  172|      8|                                 *extension.message_info.prototype,
  173|      8|                                 extension.descriptor);
  174|      8|        return ctx->ParseMessage(value, ptr);
  175|      0|      }
  176|      8|    }
  177|      8|  }
  178|      0|  return ptr;
  179|      8|}

_ZN6google8protobuf15FeatureResolver6CreateENS0_7EditionERKNS0_18FeatureSetDefaultsE:
  490|      4|    Edition edition, const FeatureSetDefaults& compiled_defaults) {
  491|      4|  if (edition < compiled_defaults.minimum_edition()) {
  ------------------
  |  Branch (491:7): [True: 0, False: 4]
  ------------------
  492|      0|    return Error("Edition ", edition,
  493|      0|                 " is earlier than the minimum supported edition ",
  494|      0|                 compiled_defaults.minimum_edition());
  495|      0|  }
  496|      4|  if (compiled_defaults.maximum_edition() < edition) {
  ------------------
  |  Branch (496:7): [True: 0, False: 4]
  ------------------
  497|      0|    return Error("Edition ", edition,
  498|      0|                 " is later than the maximum supported edition ",
  499|      0|                 compiled_defaults.maximum_edition());
  500|      0|  }
  501|       |
  502|       |  // Validate compiled defaults.
  503|      4|  Edition prev_edition = EDITION_UNKNOWN;
  504|     16|  for (const auto& edition_default : compiled_defaults.defaults()) {
  ------------------
  |  Branch (504:36): [True: 16, False: 4]
  ------------------
  505|     16|    if (edition_default.edition() == EDITION_UNKNOWN) {
  ------------------
  |  Branch (505:9): [True: 0, False: 16]
  ------------------
  506|      0|      return Error("Invalid edition ", edition_default.edition(),
  507|      0|                   " specified.");
  508|      0|    }
  509|     16|    if (prev_edition != EDITION_UNKNOWN) {
  ------------------
  |  Branch (509:9): [True: 12, False: 4]
  ------------------
  510|     12|      if (edition_default.edition() <= prev_edition) {
  ------------------
  |  Branch (510:11): [True: 0, False: 12]
  ------------------
  511|      0|        return Error(
  512|      0|            "Feature set defaults are not strictly increasing.  Edition ",
  513|      0|            prev_edition, " is greater than or equal to edition ",
  514|      0|            edition_default.edition(), ".");
  515|      0|      }
  516|     12|    }
  517|     16|    FeatureSet features = edition_default.fixed_features();
  518|     16|    features.MergeFrom(edition_default.overridable_features());
  519|     16|    RETURN_IF_ERROR(ValidateMergedFeatures(features));
  ------------------
  |  |   42|     16|  do {                                                         \
  |  |   43|     16|    const absl::Status _status = (expr);                       \
  |  |   44|     16|    if (PROTOBUF_PREDICT_FALSE(!_status.ok())) return _status; \
  |  |  ------------------
  |  |  |  |  365|     16|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (365:36): [True: 0, False: 16]
  |  |  |  |  |  Branch (365:54): [Folded, False: 16]
  |  |  |  |  |  Branch (365:63): [True: 0, False: 16]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|     16|  } while (0)
  |  |  ------------------
  |  |  |  Branch (45:12): [Folded, False: 16]
  |  |  ------------------
  ------------------
  520|       |
  521|     16|    prev_edition = edition_default.edition();
  522|     16|  }
  523|       |
  524|       |  // Select the matching edition defaults.
  525|      4|  auto comparator = [](const auto& a, const auto& b) {
  526|      4|    return a.edition() < b.edition();
  527|      4|  };
  528|      4|  FeatureSetDefaults::FeatureSetEditionDefault search;
  529|      4|  search.set_edition(edition);
  530|      4|  auto first_nonmatch =
  531|      4|      absl::c_upper_bound(compiled_defaults.defaults(), search, comparator);
  532|      4|  if (first_nonmatch == compiled_defaults.defaults().begin()) {
  ------------------
  |  Branch (532:7): [True: 0, False: 4]
  ------------------
  533|      0|    return Error("No valid default found for edition ", edition);
  534|      0|  }
  535|       |
  536|      4|  FeatureSet features = std::prev(first_nonmatch)->fixed_features();
  537|      4|  features.MergeFrom(std::prev(first_nonmatch)->overridable_features());
  538|      4|  return FeatureResolver(std::move(features));
  539|      4|}
_ZNK6google8protobuf15FeatureResolver13MergeFeaturesERKNS0_10FeatureSetES4_:
  542|    207|    const FeatureSet& merged_parent, const FeatureSet& unmerged_child) const {
  543|    207|  FeatureSet merged = defaults_;
  544|    207|  merged.MergeFrom(merged_parent);
  545|    207|  merged.MergeFrom(unmerged_child);
  546|       |
  547|    207|  RETURN_IF_ERROR(ValidateMergedFeatures(merged));
  ------------------
  |  |   42|    207|  do {                                                         \
  |  |   43|    207|    const absl::Status _status = (expr);                       \
  |  |   44|    207|    if (PROTOBUF_PREDICT_FALSE(!_status.ok())) return _status; \
  |  |  ------------------
  |  |  |  |  365|    207|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (365:36): [True: 0, False: 207]
  |  |  |  |  |  Branch (365:54): [Folded, False: 207]
  |  |  |  |  |  Branch (365:63): [True: 0, False: 207]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|    207|  } while (0)
  |  |  ------------------
  |  |  |  Branch (45:12): [Folded, False: 207]
  |  |  ------------------
  ------------------
  548|       |
  549|    207|  return merged;
  550|    207|}
feature_resolver.cc:_ZN6google8protobuf12_GLOBAL__N_122ValidateMergedFeaturesERKNS0_10FeatureSetE:
  334|    223|absl::Status ValidateMergedFeatures(const FeatureSet& features) {
  335|       |// Avoid using reflection here because this is called early in the descriptor
  336|       |// builds.  Instead, a reflection-based test will be used to keep this in sync
  337|       |// with descriptor.proto.  These checks should be run on every global feature
  338|       |// in FeatureSet.
  339|    223|#define CHECK_ENUM_FEATURE(FIELD, CAMELCASE, UPPERCASE)               \
  340|    223|  if (!FeatureSet::CAMELCASE##_IsValid(features.FIELD()) ||           \
  341|    223|      features.FIELD() == FeatureSet::UPPERCASE##_UNKNOWN) {          \
  342|    223|    return Error("Feature field `" #FIELD                             \
  343|    223|                 "` must resolve to a known value, found " #UPPERCASE \
  344|    223|                 "_UNKNOWN");                                         \
  345|    223|  }
  346|       |
  347|    223|  CHECK_ENUM_FEATURE(field_presence, FieldPresence, FIELD_PRESENCE)
  ------------------
  |  |  340|    223|  if (!FeatureSet::CAMELCASE##_IsValid(features.FIELD()) ||           \
  |  |  ------------------
  |  |  |  Branch (340:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  341|    223|      features.FIELD() == FeatureSet::UPPERCASE##_UNKNOWN) {          \
  |  |  ------------------
  |  |  |  Branch (341:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  342|      0|    return Error("Feature field `" #FIELD                             \
  |  |  343|      0|                 "` must resolve to a known value, found " #UPPERCASE \
  |  |  344|      0|                 "_UNKNOWN");                                         \
  |  |  345|      0|  }
  ------------------
  348|    223|  CHECK_ENUM_FEATURE(enum_type, EnumType, ENUM_TYPE)
  ------------------
  |  |  340|    223|  if (!FeatureSet::CAMELCASE##_IsValid(features.FIELD()) ||           \
  |  |  ------------------
  |  |  |  Branch (340:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  341|    223|      features.FIELD() == FeatureSet::UPPERCASE##_UNKNOWN) {          \
  |  |  ------------------
  |  |  |  Branch (341:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  342|      0|    return Error("Feature field `" #FIELD                             \
  |  |  343|      0|                 "` must resolve to a known value, found " #UPPERCASE \
  |  |  344|      0|                 "_UNKNOWN");                                         \
  |  |  345|      0|  }
  ------------------
  349|    223|  CHECK_ENUM_FEATURE(repeated_field_encoding, RepeatedFieldEncoding,
  ------------------
  |  |  340|    223|  if (!FeatureSet::CAMELCASE##_IsValid(features.FIELD()) ||           \
  |  |  ------------------
  |  |  |  Branch (340:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  341|    223|      features.FIELD() == FeatureSet::UPPERCASE##_UNKNOWN) {          \
  |  |  ------------------
  |  |  |  Branch (341:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  342|      0|    return Error("Feature field `" #FIELD                             \
  |  |  343|      0|                 "` must resolve to a known value, found " #UPPERCASE \
  |  |  344|      0|                 "_UNKNOWN");                                         \
  |  |  345|      0|  }
  ------------------
  350|    223|                     REPEATED_FIELD_ENCODING)
  351|    223|  CHECK_ENUM_FEATURE(utf8_validation, Utf8Validation, UTF8_VALIDATION)
  ------------------
  |  |  340|    223|  if (!FeatureSet::CAMELCASE##_IsValid(features.FIELD()) ||           \
  |  |  ------------------
  |  |  |  Branch (340:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  341|    223|      features.FIELD() == FeatureSet::UPPERCASE##_UNKNOWN) {          \
  |  |  ------------------
  |  |  |  Branch (341:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  342|      0|    return Error("Feature field `" #FIELD                             \
  |  |  343|      0|                 "` must resolve to a known value, found " #UPPERCASE \
  |  |  344|      0|                 "_UNKNOWN");                                         \
  |  |  345|      0|  }
  ------------------
  352|    223|  CHECK_ENUM_FEATURE(message_encoding, MessageEncoding, MESSAGE_ENCODING)
  ------------------
  |  |  340|    223|  if (!FeatureSet::CAMELCASE##_IsValid(features.FIELD()) ||           \
  |  |  ------------------
  |  |  |  Branch (340:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  341|    223|      features.FIELD() == FeatureSet::UPPERCASE##_UNKNOWN) {          \
  |  |  ------------------
  |  |  |  Branch (341:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  342|      0|    return Error("Feature field `" #FIELD                             \
  |  |  343|      0|                 "` must resolve to a known value, found " #UPPERCASE \
  |  |  344|      0|                 "_UNKNOWN");                                         \
  |  |  345|      0|  }
  ------------------
  353|    223|  CHECK_ENUM_FEATURE(json_format, JsonFormat, JSON_FORMAT)
  ------------------
  |  |  340|    223|  if (!FeatureSet::CAMELCASE##_IsValid(features.FIELD()) ||           \
  |  |  ------------------
  |  |  |  Branch (340:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  341|    223|      features.FIELD() == FeatureSet::UPPERCASE##_UNKNOWN) {          \
  |  |  ------------------
  |  |  |  Branch (341:7): [True: 0, False: 223]
  |  |  ------------------
  |  |  342|      0|    return Error("Feature field `" #FIELD                             \
  |  |  343|      0|                 "` must resolve to a known value, found " #UPPERCASE \
  |  |  344|      0|                 "_UNKNOWN");                                         \
  |  |  345|      0|  }
  ------------------
  354|       |
  355|    223|#undef CHECK_ENUM_FEATURE
  356|       |
  357|    223|  return absl::OkStatus();
  358|    223|}
feature_resolver.cc:_ZZN6google8protobuf15FeatureResolver6CreateENS0_7EditionERKNS0_18FeatureSetDefaultsEENK3$_0clINS0_43FeatureSetDefaults_FeatureSetEditionDefaultES8_EEDaRKT_RKT0_:
  525|     10|  auto comparator = [](const auto& a, const auto& b) {
  526|     10|    return a.edition() < b.edition();
  527|     10|  };

_ZN6google8protobuf15FeatureResolverC2EOS1_:
   35|      8|  FeatureResolver(FeatureResolver&&) = default;
_ZN6google8protobuf15FeatureResolverC2ENS0_10FeatureSetE:
   78|      4|      : defaults_(std::move(defaults)) {}

_ZN6google8protobuf8internal12ValidateEnumEiPKj:
   80|      1|bool ValidateEnum(int value, const uint32_t* data) {
   81|      1|  return ValidateEnumInlined(value, data);
   82|      1|}

_ZN6google8protobuf8internal19ValidateEnumInlinedEiPKj:
   79|     94|                                                       const uint32_t* data) {
   80|     94|  const int16_t min_seq = static_cast<int16_t>(data[0] & 0xFFFF);
   81|     94|  const uint16_t length_seq = static_cast<uint16_t>(data[0] >> 16);
   82|     94|  uint64_t adjusted =
   83|     94|      static_cast<uint64_t>(static_cast<int64_t>(value)) - min_seq;
   84|       |  // Check if the value is within the sequential part.
   85|     94|  if (PROTOBUF_PREDICT_TRUE(adjusted < length_seq)) {
  ------------------
  |  |  364|     94|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 94]
  |  |  |  Branch (364:53): [Folded, False: 94]
  |  |  |  Branch (364:62): [True: 0, False: 94]
  |  |  ------------------
  ------------------
   86|      0|    return true;
   87|      0|  }
   88|       |
   89|     94|  const uint16_t length_bitmap = static_cast<uint16_t>(data[1] & 0xFFFF);
   90|     94|  adjusted -= length_seq;
   91|       |  // Check if the value is within the bitmap.
   92|     94|  if (PROTOBUF_PREDICT_TRUE(adjusted < length_bitmap)) {
  ------------------
  |  |  364|     94|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 4, False: 90]
  |  |  |  Branch (364:53): [Folded, False: 94]
  |  |  |  Branch (364:62): [True: 4, False: 90]
  |  |  ------------------
  ------------------
   93|      4|    return ((data[2 + (adjusted / 32)] >> (adjusted % 32)) & 1) == 1;
   94|      4|  }
   95|       |
   96|       |  // Check if the value is on the ordered part.
   97|     90|  const uint16_t num_ordered = static_cast<uint16_t>(data[1] >> 16);
   98|     90|  data += 2 + length_bitmap / 32;
   99|     90|  size_t pos = 0;
  100|    286|  while (pos < num_ordered) {
  ------------------
  |  Branch (100:10): [True: 286, False: 0]
  ------------------
  101|    286|    const int32_t sample = static_cast<int32_t>(data[pos]);
  102|    286|    if (sample == value) return true;
  ------------------
  |  Branch (102:9): [True: 90, False: 196]
  ------------------
  103|    196|    pos = 2 * pos + (sample > value ? 1 : 2);
  ------------------
  |  Branch (103:22): [True: 166, False: 30]
  ------------------
  104|    196|  }
  105|      0|  return false;
  106|     90|}

_ZN6google8protobuf8internal40InitializeFileDescriptorDefaultInstancesEv:
   93|      6|void InitializeFileDescriptorDefaultInstances() {
   94|       |#if !defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES)
   95|       |  static std::true_type init =
   96|       |      (InitializeFileDescriptorDefaultInstancesSlow(), std::true_type{});
   97|       |  (void)init;
   98|       |#endif  // !defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES)
   99|      6|}
_ZN6google8protobuf8internal26InitializeLazyExtensionSetEv:
  101|      6|void InitializeLazyExtensionSet() {
  102|      6|}
_ZN6google8protobuf10ReflectionC2EPKNS0_10DescriptorERKNS0_8internal16ReflectionSchemaEPKNS0_14DescriptorPoolEPNS0_14MessageFactoryE:
  314|     41|    : descriptor_(descriptor),
  315|     41|      schema_(schema),
  316|       |      descriptor_pool_(
  317|     41|          (pool == nullptr) ? DescriptorPool::internal_generated_pool() : pool),
  ------------------
  |  Branch (317:11): [True: 0, False: 41]
  ------------------
  318|     41|      message_factory_(factory),
  319|     41|      last_non_weak_field_index_(-1) {
  320|     41|  last_non_weak_field_index_ = descriptor_->field_count() - 1;
  321|     41|}
_ZNK6google8protobuf10Reflection8HasFieldERKNS0_7MessageEPKNS0_15FieldDescriptorE:
 1224|  37.9k|                          const FieldDescriptor* field) const {
 1225|  37.9k|  USAGE_CHECK_MESSAGE(HasField, &message);
 1226|  37.9k|  USAGE_CHECK_MESSAGE_TYPE(HasField);
  ------------------
  |  |  286|  37.9k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  ------------------
  |  |  |  |  262|  37.9k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  |  |  |  |  259|  37.9k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 37.9k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  260|  37.9k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  287|  37.9k|                 "Field does not match message type.");
  ------------------
 1227|  37.9k|  USAGE_CHECK_SINGULAR(HasField);
  ------------------
  |  |  289|  37.9k|  USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  ------------------
  |  |  |  |  264|  37.9k|  USAGE_CHECK((A) != (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  |  |  |  |  259|  37.9k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 37.9k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  260|  37.9k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  290|  37.9k|                 "Field is repeated; the method requires a singular field.")
  ------------------
 1228|       |
 1229|  37.9k|  if (field->is_extension()) {
  ------------------
  |  Branch (1229:7): [True: 0, False: 37.9k]
  ------------------
 1230|      0|    return GetExtensionSet(message).Has(field->number());
 1231|  37.9k|  } else {
 1232|  37.9k|    if (schema_.InRealOneof(field)) {
  ------------------
  |  Branch (1232:9): [True: 0, False: 37.9k]
  ------------------
 1233|      0|      return HasOneofField(message, field);
 1234|  37.9k|    } else {
 1235|  37.9k|      return HasFieldSingular(message, field);
 1236|  37.9k|    }
 1237|  37.9k|  }
 1238|  37.9k|}
_ZNK6google8protobuf10Reflection9FieldSizeERKNS0_7MessageEPKNS0_15FieldDescriptorE:
 1325|  26.8k|                          const FieldDescriptor* field) const {
 1326|  26.8k|  USAGE_CHECK_MESSAGE(FieldSize, &message);
 1327|  26.8k|  USAGE_CHECK_MESSAGE_TYPE(FieldSize);
  ------------------
  |  |  286|  26.8k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  ------------------
  |  |  |  |  262|  26.8k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  |  |  |  |  259|  26.8k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 26.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  260|  26.8k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  287|  26.8k|                 "Field does not match message type.");
  ------------------
 1328|  26.8k|  USAGE_CHECK_REPEATED(FieldSize);
  ------------------
  |  |  292|  26.8k|  USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  ------------------
  |  |  |  |  262|  26.8k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  |  |  |  |  259|  26.8k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 26.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  260|  26.8k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  293|  26.8k|                 "Field is singular; the method requires a repeated field.")
  ------------------
 1329|       |
 1330|  26.8k|  if (field->is_extension()) {
  ------------------
  |  Branch (1330:7): [True: 0, False: 26.8k]
  ------------------
 1331|      0|    return GetExtensionSet(message).ExtensionSize(field->number());
 1332|  26.8k|  } else {
 1333|  26.8k|    switch (field->cpp_type()) {
  ------------------
  |  Branch (1333:13): [True: 26.8k, False: 0]
  ------------------
 1334|      0|#define HANDLE_TYPE(UPPERCASE, LOWERCASE)    \
 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
 1337|       |
 1338|      0|      HANDLE_TYPE(INT32, int32_t);
  ------------------
  |  | 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
  |  |  ------------------
  |  |  |  Branch (1335:3): [True: 0, False: 26.8k]
  |  |  ------------------
  |  | 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
  ------------------
 1339|      0|      HANDLE_TYPE(INT64, int64_t);
  ------------------
  |  | 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
  |  |  ------------------
  |  |  |  Branch (1335:3): [True: 0, False: 26.8k]
  |  |  ------------------
  |  | 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
  ------------------
 1340|      0|      HANDLE_TYPE(UINT32, uint32_t);
  ------------------
  |  | 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
  |  |  ------------------
  |  |  |  Branch (1335:3): [True: 0, False: 26.8k]
  |  |  ------------------
  |  | 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
  ------------------
 1341|      0|      HANDLE_TYPE(UINT64, uint64_t);
  ------------------
  |  | 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
  |  |  ------------------
  |  |  |  Branch (1335:3): [True: 0, False: 26.8k]
  |  |  ------------------
  |  | 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
  ------------------
 1342|      0|      HANDLE_TYPE(DOUBLE, double);
  ------------------
  |  | 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
  |  |  ------------------
  |  |  |  Branch (1335:3): [True: 0, False: 26.8k]
  |  |  ------------------
  |  | 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
  ------------------
 1343|      0|      HANDLE_TYPE(FLOAT, float);
  ------------------
  |  | 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
  |  |  ------------------
  |  |  |  Branch (1335:3): [True: 0, False: 26.8k]
  |  |  ------------------
  |  | 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
  ------------------
 1344|      0|      HANDLE_TYPE(BOOL, bool);
  ------------------
  |  | 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
  |  |  ------------------
  |  |  |  Branch (1335:3): [True: 0, False: 26.8k]
  |  |  ------------------
  |  | 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
  ------------------
 1345|      0|      HANDLE_TYPE(ENUM, int);
  ------------------
  |  | 1335|      0|  case FieldDescriptor::CPPTYPE_##UPPERCASE: \
  |  |  ------------------
  |  |  |  Branch (1335:3): [True: 0, False: 26.8k]
  |  |  ------------------
  |  | 1336|      0|    return GetRaw<RepeatedField<LOWERCASE> >(message, field).size()
  ------------------
 1346|      0|#undef HANDLE_TYPE
 1347|       |
 1348|      0|      case FieldDescriptor::CPPTYPE_STRING:
  ------------------
  |  Branch (1348:7): [True: 0, False: 26.8k]
  ------------------
 1349|      0|        if (field->cpp_string_type() == FieldDescriptor::CppStringType::kCord) {
  ------------------
  |  Branch (1349:13): [True: 0, False: 0]
  ------------------
 1350|      0|          return GetRaw<RepeatedField<absl::Cord> >(message, field).size();
 1351|      0|        }
 1352|      0|        ABSL_FALLTHROUGH_INTENDED;
  ------------------
  |  |  644|      0|#define ABSL_FALLTHROUGH_INTENDED [[fallthrough]]
  ------------------
 1353|  26.8k|      case FieldDescriptor::CPPTYPE_MESSAGE:
  ------------------
  |  Branch (1353:7): [True: 26.8k, False: 0]
  ------------------
 1354|  26.8k|        if (IsMapFieldInApi(field)) {
  ------------------
  |  Branch (1354:13): [True: 0, False: 26.8k]
  ------------------
 1355|      0|          const internal::MapFieldBase& map =
 1356|      0|              GetRaw<MapFieldBase>(message, field);
 1357|      0|          if (map.IsRepeatedFieldValid()) {
  ------------------
  |  Branch (1357:15): [True: 0, False: 0]
  ------------------
 1358|      0|            return map.GetRepeatedField().size();
 1359|      0|          } else {
 1360|       |            // No need to materialize the repeated field if it is out of sync:
 1361|       |            // its size will be the same as the map's size.
 1362|      0|            return map.size();
 1363|      0|          }
 1364|  26.8k|        } else {
 1365|  26.8k|          return GetRaw<RepeatedPtrFieldBase>(message, field).size();
 1366|  26.8k|        }
 1367|  26.8k|    }
 1368|       |
 1369|      0|    ABSL_LOG(FATAL) << "Can't get here.";
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|  26.8k|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|  26.8k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1370|      0|    return 0;
 1371|      0|  }
 1372|  26.8k|}
_ZNK6google8protobuf10Reflection10GetMessageERKNS0_7MessageEPKNS0_15FieldDescriptorEPNS0_14MessageFactoryE:
 2340|  8.56k|                                      MessageFactory* factory) const {
 2341|  8.56k|  USAGE_CHECK_ALL(GetMessage, SINGULAR, MESSAGE);
  ------------------
  |  |  296|  8.56k|  USAGE_CHECK_MESSAGE(METHOD, &message);        \
  |  |  297|  8.56k|  USAGE_CHECK_MESSAGE_TYPE(METHOD);             \
  |  |  ------------------
  |  |  |  |  286|  8.56k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  8.56k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  8.56k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 8.56k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  8.56k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  287|  8.56k|                 "Field does not match message type.");
  |  |  ------------------
  |  |  298|  8.56k|  USAGE_CHECK_##LABEL(METHOD);                  \
  |  |  ------------------
  |  |  |  |  289|  8.56k|  USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  264|  8.56k|  USAGE_CHECK((A) != (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  8.56k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 8.56k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  8.56k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  290|  8.56k|                 "Field is repeated; the method requires a singular field.")
  |  |  ------------------
  |  |  299|  8.56k|  USAGE_CHECK_TYPE(METHOD, CPPTYPE)
  |  |  ------------------
  |  |  |  |  267|  8.56k|  if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (267:7): [True: 0, False: 8.56k]
  |  |  |  |  ------------------
  |  |  |  |  268|  8.56k|  ReportReflectionUsageTypeError(descriptor_, field, #METHOD,  \
  |  |  |  |  269|      0|                                 FieldDescriptor::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  ------------------
 2342|       |
 2343|  8.56k|  if (factory == nullptr) factory = message_factory_;
  ------------------
  |  Branch (2343:7): [True: 8.56k, False: 0]
  ------------------
 2344|       |
 2345|  8.56k|  if (field->is_extension()) {
  ------------------
  |  Branch (2345:7): [True: 0, False: 8.56k]
  ------------------
 2346|      0|    return static_cast<const Message&>(GetExtensionSet(message).GetMessage(
 2347|      0|        field->number(), field->message_type(), factory));
 2348|  8.56k|  } else {
 2349|  8.56k|    if (schema_.InRealOneof(field) && !HasOneofField(message, field)) {
  ------------------
  |  Branch (2349:9): [True: 0, False: 8.56k]
  |  Branch (2349:39): [True: 0, False: 0]
  ------------------
 2350|      0|      return *GetDefaultMessageInstance(field);
 2351|      0|    }
 2352|  8.56k|    const Message* result = GetRaw<const Message*>(message, field);
 2353|  8.56k|    if (result == nullptr) {
  ------------------
  |  Branch (2353:9): [True: 0, False: 8.56k]
  ------------------
 2354|      0|      result = GetDefaultMessageInstance(field);
 2355|      0|    }
 2356|  8.56k|    return *result;
 2357|  8.56k|  }
 2358|  8.56k|}
_ZNK6google8protobuf10Reflection14MutableMessageEPNS0_7MessageEPKNS0_15FieldDescriptorEPNS0_14MessageFactoryE:
 2362|  8.56k|                                    MessageFactory* factory) const {
 2363|  8.56k|  USAGE_MUTABLE_CHECK_ALL(MutableMessage, SINGULAR, MESSAGE);
  ------------------
  |  |  302|  8.56k|  USAGE_CHECK_MESSAGE(METHOD, message);                 \
  |  |  303|  8.56k|  USAGE_CHECK_MESSAGE_TYPE(METHOD);                     \
  |  |  ------------------
  |  |  |  |  286|  8.56k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  8.56k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  8.56k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 8.56k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  8.56k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  287|  8.56k|                 "Field does not match message type.");
  |  |  ------------------
  |  |  304|  8.56k|  USAGE_CHECK_##LABEL(METHOD);                          \
  |  |  ------------------
  |  |  |  |  289|  8.56k|  USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  264|  8.56k|  USAGE_CHECK((A) != (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  8.56k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 8.56k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  8.56k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  290|  8.56k|                 "Field is repeated; the method requires a singular field.")
  |  |  ------------------
  |  |  305|  8.56k|  USAGE_CHECK_TYPE(METHOD, CPPTYPE)
  |  |  ------------------
  |  |  |  |  267|  8.56k|  if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (267:7): [True: 0, False: 8.56k]
  |  |  |  |  ------------------
  |  |  |  |  268|  8.56k|  ReportReflectionUsageTypeError(descriptor_, field, #METHOD,  \
  |  |  |  |  269|      0|                                 FieldDescriptor::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  ------------------
 2364|       |
 2365|  8.56k|  if (factory == nullptr) factory = message_factory_;
  ------------------
  |  Branch (2365:7): [True: 8.56k, False: 0]
  ------------------
 2366|       |
 2367|  8.56k|  if (field->is_extension()) {
  ------------------
  |  Branch (2367:7): [True: 0, False: 8.56k]
  ------------------
 2368|      0|    return static_cast<Message*>(
 2369|      0|        MutableExtensionSet(message)->MutableMessage(field, factory));
 2370|  8.56k|  } else {
 2371|  8.56k|    Message* result;
 2372|       |
 2373|  8.56k|    Message** result_holder = MutableRaw<Message*>(message, field);
 2374|       |
 2375|  8.56k|    if (schema_.InRealOneof(field)) {
  ------------------
  |  Branch (2375:9): [True: 0, False: 8.56k]
  ------------------
 2376|      0|      if (!HasOneofField(*message, field)) {
  ------------------
  |  Branch (2376:11): [True: 0, False: 0]
  ------------------
 2377|      0|        ClearOneof(message, field->containing_oneof());
 2378|      0|        result_holder = MutableField<Message*>(message, field);
 2379|      0|        const Message* default_message = GetDefaultMessageInstance(field);
 2380|      0|        *result_holder = default_message->New(message->GetArena());
 2381|      0|      }
 2382|  8.56k|    } else {
 2383|  8.56k|      SetHasBit(message, field);
 2384|  8.56k|    }
 2385|       |
 2386|  8.56k|    if (*result_holder == nullptr) {
  ------------------
  |  Branch (2386:9): [True: 0, False: 8.56k]
  ------------------
 2387|      0|      const Message* default_message = GetDefaultMessageInstance(field);
 2388|      0|      *result_holder = default_message->New(message->GetArena());
 2389|      0|    }
 2390|  8.56k|    result = *result_holder;
 2391|  8.56k|    return result;
 2392|  8.56k|  }
 2393|  8.56k|}
_ZNK6google8protobuf10Reflection18GetRepeatedMessageERKNS0_7MessageEPKNS0_15FieldDescriptorEi:
 2511|  72.8k|                                              int index) const {
 2512|  72.8k|  USAGE_CHECK_ALL(GetRepeatedMessage, REPEATED, MESSAGE);
  ------------------
  |  |  296|  72.8k|  USAGE_CHECK_MESSAGE(METHOD, &message);        \
  |  |  297|  72.8k|  USAGE_CHECK_MESSAGE_TYPE(METHOD);             \
  |  |  ------------------
  |  |  |  |  286|  72.8k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  72.8k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  72.8k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 72.8k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  72.8k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  287|  72.8k|                 "Field does not match message type.");
  |  |  ------------------
  |  |  298|  72.8k|  USAGE_CHECK_##LABEL(METHOD);                  \
  |  |  ------------------
  |  |  |  |  292|  72.8k|  USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  72.8k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  72.8k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 72.8k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  72.8k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  293|  72.8k|                 "Field is singular; the method requires a repeated field.")
  |  |  ------------------
  |  |  299|  72.8k|  USAGE_CHECK_TYPE(METHOD, CPPTYPE)
  |  |  ------------------
  |  |  |  |  267|  72.8k|  if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (267:7): [True: 0, False: 72.8k]
  |  |  |  |  ------------------
  |  |  |  |  268|  72.8k|  ReportReflectionUsageTypeError(descriptor_, field, #METHOD,  \
  |  |  |  |  269|      0|                                 FieldDescriptor::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  ------------------
 2513|       |
 2514|  72.8k|  if (field->is_extension()) {
  ------------------
  |  Branch (2514:7): [True: 0, False: 72.8k]
  ------------------
 2515|      0|    return static_cast<const Message&>(
 2516|      0|        GetExtensionSet(message).GetRepeatedMessage(field->number(), index));
 2517|  72.8k|  } else {
 2518|  72.8k|    if (IsMapFieldInApi(field)) {
  ------------------
  |  Branch (2518:9): [True: 0, False: 72.8k]
  ------------------
 2519|      0|      return GetRaw<MapFieldBase>(message, field)
 2520|      0|          .GetRepeatedField()
 2521|      0|          .Get<GenericTypeHandler<Message> >(index);
 2522|  72.8k|    } else {
 2523|  72.8k|      return GetRaw<RepeatedPtrFieldBase>(message, field)
 2524|  72.8k|          .Get<GenericTypeHandler<Message> >(index);
 2525|  72.8k|    }
 2526|  72.8k|  }
 2527|  72.8k|}
_ZNK6google8protobuf10Reflection22MutableRepeatedMessageEPNS0_7MessageEPKNS0_15FieldDescriptorEi:
 2531|  72.8k|                                            int index) const {
 2532|  72.8k|  USAGE_MUTABLE_CHECK_ALL(MutableRepeatedMessage, REPEATED, MESSAGE);
  ------------------
  |  |  302|  72.8k|  USAGE_CHECK_MESSAGE(METHOD, message);                 \
  |  |  303|  72.8k|  USAGE_CHECK_MESSAGE_TYPE(METHOD);                     \
  |  |  ------------------
  |  |  |  |  286|  72.8k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  72.8k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  72.8k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 72.8k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  72.8k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  287|  72.8k|                 "Field does not match message type.");
  |  |  ------------------
  |  |  304|  72.8k|  USAGE_CHECK_##LABEL(METHOD);                          \
  |  |  ------------------
  |  |  |  |  292|  72.8k|  USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  72.8k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  72.8k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 72.8k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  72.8k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  293|  72.8k|                 "Field is singular; the method requires a repeated field.")
  |  |  ------------------
  |  |  305|  72.8k|  USAGE_CHECK_TYPE(METHOD, CPPTYPE)
  |  |  ------------------
  |  |  |  |  267|  72.8k|  if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (267:7): [True: 0, False: 72.8k]
  |  |  |  |  ------------------
  |  |  |  |  268|  72.8k|  ReportReflectionUsageTypeError(descriptor_, field, #METHOD,  \
  |  |  |  |  269|      0|                                 FieldDescriptor::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  ------------------
 2533|       |
 2534|  72.8k|  if (field->is_extension()) {
  ------------------
  |  Branch (2534:7): [True: 0, False: 72.8k]
  ------------------
 2535|      0|    return static_cast<Message*>(
 2536|      0|        MutableExtensionSet(message)->MutableRepeatedMessage(field->number(),
 2537|      0|                                                             index));
 2538|  72.8k|  } else {
 2539|  72.8k|    if (IsMapFieldInApi(field)) {
  ------------------
  |  Branch (2539:9): [True: 0, False: 72.8k]
  ------------------
 2540|      0|      return MutableRaw<MapFieldBase>(message, field)
 2541|      0|          ->MutableRepeatedField()
 2542|      0|          ->Mutable<GenericTypeHandler<Message> >(index);
 2543|  72.8k|    } else {
 2544|  72.8k|      return MutableRaw<RepeatedPtrFieldBase>(message, field)
 2545|  72.8k|          ->Mutable<GenericTypeHandler<Message> >(index);
 2546|  72.8k|    }
 2547|  72.8k|  }
 2548|  72.8k|}
_ZNK6google8protobuf10Reflection22MutableRawNonOneofImplEPNS0_7MessageEPKNS0_15FieldDescriptorE:
 2825|  81.3k|                                         const FieldDescriptor* field) const {
 2826|  81.3k|  if (PROTOBUF_PREDICT_FALSE(schema_.IsSplit(field))) {
  ------------------
  |  |  365|  81.3k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 81.3k]
  |  |  |  Branch (365:54): [Folded, False: 81.3k]
  |  |  |  Branch (365:63): [True: 0, False: 81.3k]
  |  |  ------------------
  ------------------
 2827|      0|    return MutableRawSplitImpl(message, field);
 2828|      0|  }
 2829|       |
 2830|  81.3k|  const uint32_t field_offset = schema_.GetFieldOffsetNonOneof(field);
 2831|  81.3k|  return GetPointerAtOffset<void>(message, field_offset);
 2832|  81.3k|}
_ZNK6google8protobuf10Reflection14MutableRawImplEPNS0_7MessageEPKNS0_15FieldDescriptorE:
 2835|  81.3k|                                 const FieldDescriptor* field) const {
 2836|  81.3k|  if (PROTOBUF_PREDICT_TRUE(!schema_.InRealOneof(field))) {
  ------------------
  |  |  364|  81.3k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 81.3k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 81.3k]
  |  |  |  Branch (364:62): [True: 81.3k, False: 0]
  |  |  ------------------
  ------------------
 2837|  81.3k|    return MutableRawNonOneofImpl(message, field);
 2838|  81.3k|  }
 2839|       |
 2840|       |  // Oneof fields are not split.
 2841|      0|  ABSL_DCHECK(!schema_.IsSplit(field));
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  81.3k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2842|       |
 2843|      0|  const uint32_t field_offset = schema_.GetFieldOffset(field);
 2844|      0|  return GetPointerAtOffset<void>(message, field_offset);
 2845|      0|}
_ZNK6google8protobuf10Reflection10GetHasBitsERKNS0_7MessageE:
 2847|  37.9k|const uint32_t* Reflection::GetHasBits(const Message& message) const {
 2848|  37.9k|  ABSL_DCHECK(schema_.HasHasbits());
  ------------------
  |  |   47|  37.9k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  37.9k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  75.9k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  37.9k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  75.9k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  75.9k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 37.9k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  37.9k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 37.9k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  37.9k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 37.9k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  75.9k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  75.9k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2849|  37.9k|  return &GetConstRefAtOffset<uint32_t>(message, schema_.HasBitsOffset());
 2850|  37.9k|}
_ZNK6google8protobuf10Reflection16HasFieldSingularERKNS0_7MessageEPKNS0_15FieldDescriptorE:
 2954|  37.9k|                                  const FieldDescriptor* field) const {
 2955|  37.9k|  ABSL_DCHECK(!field->options().weak());
  ------------------
  |  |   47|  37.9k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  37.9k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  75.9k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  37.9k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  75.9k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  75.9k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 37.9k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  37.9k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 37.9k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  37.9k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 37.9k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  75.9k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  75.9k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2956|  37.9k|  if (schema_.HasBitIndex(field) != static_cast<uint32_t>(-1)) {
  ------------------
  |  Branch (2956:7): [True: 37.9k, False: 0]
  ------------------
 2957|  37.9k|    return IsIndexInHasBitSet(GetHasBits(message), schema_.HasBitIndex(field));
 2958|  37.9k|  }
 2959|       |
 2960|       |  // proto3: no has-bits. All fields present except messages, which are
 2961|       |  // present only if their message-field pointer is non-null.
 2962|      0|  if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
  ------------------
  |  Branch (2962:7): [True: 0, False: 0]
  ------------------
 2963|      0|    return !schema_.IsDefaultInstance(message) &&
  ------------------
  |  Branch (2963:12): [True: 0, False: 0]
  ------------------
 2964|      0|           GetRaw<const Message*>(message, field) != nullptr;
  ------------------
  |  Branch (2964:12): [True: 0, False: 0]
  ------------------
 2965|      0|  } else {
 2966|       |    // Non-message field (and non-oneof, since that was handled in HasField()
 2967|       |    // before calling us), and singular (again, checked in HasField). So, this
 2968|       |    // field must be a scalar.
 2969|       |
 2970|       |    // Scalar primitive (numeric or string/bytes) fields are present if
 2971|       |    // their value is non-zero (numeric) or non-empty (string/bytes). N.B.:
 2972|       |    // we must use this definition here, rather than the "scalar fields
 2973|       |    // always present" in the proto3 docs, because MergeFrom() semantics
 2974|       |    // require presence as "present on wire", and reflection-based merge
 2975|       |    // (which uses HasField()) needs to be consistent with this.
 2976|      0|    switch (field->cpp_type()) {
  ------------------
  |  Branch (2976:13): [True: 0, False: 0]
  ------------------
 2977|      0|      case FieldDescriptor::CPPTYPE_STRING:
  ------------------
  |  Branch (2977:7): [True: 0, False: 0]
  ------------------
 2978|      0|        switch (field->cpp_string_type()) {
  ------------------
  |  Branch (2978:17): [True: 0, False: 0]
  ------------------
 2979|      0|          case FieldDescriptor::CppStringType::kCord:
  ------------------
  |  Branch (2979:11): [True: 0, False: 0]
  ------------------
 2980|      0|            return !GetField<const absl::Cord>(message, field).empty();
 2981|      0|          case FieldDescriptor::CppStringType::kView:
  ------------------
  |  Branch (2981:11): [True: 0, False: 0]
  ------------------
 2982|      0|          case FieldDescriptor::CppStringType::kString: {
  ------------------
  |  Branch (2982:11): [True: 0, False: 0]
  ------------------
 2983|      0|            if (IsInlined(field)) {
  ------------------
  |  Branch (2983:17): [True: 0, False: 0]
  ------------------
 2984|      0|              return !GetField<InlinedStringField>(message, field)
 2985|      0|                          .GetNoArena()
 2986|      0|                          .empty();
 2987|      0|            }
 2988|       |
 2989|      0|            return GetField<ArenaStringPtr>(message, field).Get().size() > 0;
 2990|      0|          }
 2991|      0|        }
 2992|      0|        internal::Unreachable();
 2993|      0|      case FieldDescriptor::CPPTYPE_BOOL:
  ------------------
  |  Branch (2993:7): [True: 0, False: 0]
  ------------------
 2994|      0|        return GetRaw<bool>(message, field) != false;
 2995|      0|      case FieldDescriptor::CPPTYPE_INT32:
  ------------------
  |  Branch (2995:7): [True: 0, False: 0]
  ------------------
 2996|      0|        return GetRaw<int32_t>(message, field) != 0;
 2997|      0|      case FieldDescriptor::CPPTYPE_INT64:
  ------------------
  |  Branch (2997:7): [True: 0, False: 0]
  ------------------
 2998|      0|        return GetRaw<int64_t>(message, field) != 0;
 2999|      0|      case FieldDescriptor::CPPTYPE_UINT32:
  ------------------
  |  Branch (2999:7): [True: 0, False: 0]
  ------------------
 3000|      0|        return GetRaw<uint32_t>(message, field) != 0;
 3001|      0|      case FieldDescriptor::CPPTYPE_UINT64:
  ------------------
  |  Branch (3001:7): [True: 0, False: 0]
  ------------------
 3002|      0|        return GetRaw<uint64_t>(message, field) != 0;
 3003|      0|      case FieldDescriptor::CPPTYPE_FLOAT:
  ------------------
  |  Branch (3003:7): [True: 0, False: 0]
  ------------------
 3004|      0|        static_assert(sizeof(uint32_t) == sizeof(float),
 3005|      0|                      "Code assumes uint32_t and float are the same size.");
 3006|      0|        return GetRaw<uint32_t>(message, field) != 0;
 3007|      0|      case FieldDescriptor::CPPTYPE_DOUBLE:
  ------------------
  |  Branch (3007:7): [True: 0, False: 0]
  ------------------
 3008|      0|        static_assert(sizeof(uint64_t) == sizeof(double),
 3009|      0|                      "Code assumes uint64_t and double are the same size.");
 3010|      0|        return GetRaw<uint64_t>(message, field) != 0;
 3011|      0|      case FieldDescriptor::CPPTYPE_ENUM:
  ------------------
  |  Branch (3011:7): [True: 0, False: 0]
  ------------------
 3012|      0|        return GetRaw<int>(message, field) != 0;
 3013|      0|      case FieldDescriptor::CPPTYPE_MESSAGE:
  ------------------
  |  Branch (3013:7): [True: 0, False: 0]
  ------------------
 3014|       |        // handled above; avoid warning
 3015|      0|        break;
 3016|      0|    }
 3017|      0|    ABSL_LOG(FATAL) << "Reached impossible case in HasFieldSingular().";
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3018|      0|    return false;
 3019|      0|  }
 3020|      0|}
_ZNK6google8protobuf10Reflection9SetHasBitEPNS0_7MessageEPKNS0_15FieldDescriptorE:
 3023|  8.56k|                           const FieldDescriptor* field) const {
 3024|  8.56k|  ABSL_DCHECK(!field->options().weak());
  ------------------
  |  |   47|  8.56k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  8.56k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  17.1k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  8.56k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  17.1k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  17.1k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 8.56k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  8.56k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 8.56k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  8.56k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 8.56k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  17.1k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  17.1k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3025|  8.56k|  const uint32_t index = schema_.HasBitIndex(field);
 3026|  8.56k|  if (index == static_cast<uint32_t>(-1)) return;
  ------------------
  |  Branch (3026:7): [True: 0, False: 8.56k]
  ------------------
 3027|  8.56k|  MutableHasBits(message)[index / 32] |=
 3028|  8.56k|      (static_cast<uint32_t>(1) << (index % 32));
 3029|  8.56k|}
_ZN6google8protobuf8internal14AddDescriptorsEPKNS1_15DescriptorTableE:
 3720|      9|void AddDescriptors(const DescriptorTable* table) {
 3721|       |  // AddDescriptors is not thread safe. Callers need to ensure calls are
 3722|       |  // properly serialized. This function is only called pre-main by global
 3723|       |  // descriptors and we can assume single threaded access or it's called
 3724|       |  // by AssignDescriptorImpl which uses a mutex to sequence calls.
 3725|      9|  if (table->is_initialized) return;
  ------------------
  |  Branch (3725:7): [True: 3, False: 6]
  ------------------
 3726|      6|  table->is_initialized = true;
 3727|      6|  AddDescriptorsImpl(table);
 3728|      6|}
_ZN6google8protobuf8internal30AssignDescriptorsOnceInnerCallEPKNS1_15DescriptorTableE:
 3730|      4|void AssignDescriptorsOnceInnerCall(const DescriptorTable* table) {
 3731|      4|  MaybeInitializeLazyDescriptors(table);
 3732|      4|  AssignDescriptorsImpl(table, table->is_eager);
 3733|      4|}
generated_message_reflection.cc:_ZN6google8protobuf12_GLOBAL__N_115IsMapFieldInApiEPKNS0_15FieldDescriptorE:
   79|   172k|bool IsMapFieldInApi(const FieldDescriptor* field) { return field->is_map(); }
generated_message_reflection.cc:_ZN6google8protobuf12_GLOBAL__N_118IsIndexInHasBitSetEPKjj:
 1647|  37.9k|bool IsIndexInHasBitSet(const uint32_t* has_bit_set, uint32_t has_bit_index) {
 1648|  37.9k|  ABSL_DCHECK_NE(has_bit_index, ~0u);
  ------------------
  |  |   76|  37.9k|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|  37.9k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  37.9k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 37.9k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  37.9k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1649|  37.9k|  return ((has_bit_set[has_bit_index / 32] >> (has_bit_index % 32)) &
 1650|  37.9k|          static_cast<uint32_t>(1)) != 0;
 1651|  37.9k|}
_ZNK6google8protobuf10Reflection14MutableHasBitsEPNS0_7MessageE:
 2852|  8.56k|uint32_t* Reflection::MutableHasBits(Message* message) const {
 2853|  8.56k|  ABSL_DCHECK(schema_.HasHasbits());
  ------------------
  |  |   47|  8.56k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  8.56k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  17.1k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  8.56k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  17.1k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  17.1k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 8.56k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  8.56k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 8.56k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  8.56k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 8.56k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  17.1k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  17.1k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2854|  8.56k|  return GetPointerAtOffset<uint32_t>(message, schema_.HasBitsOffset());
 2855|  8.56k|}
generated_message_reflection.cc:_ZN6google8protobuf12_GLOBAL__N_118AddDescriptorsImplEPKNS0_8internal15DescriptorTableE:
 3697|      6|void AddDescriptorsImpl(const DescriptorTable* table) {
 3698|       |  // Reflection refers to the default fields so make sure they are initialized.
 3699|      6|  internal::InitProtobufDefaults();
 3700|      6|  internal::InitializeFileDescriptorDefaultInstances();
 3701|      6|  internal::InitializeLazyExtensionSet();
 3702|       |
 3703|       |  // Ensure all dependent descriptors are registered to the generated descriptor
 3704|       |  // pool and message factory.
 3705|      6|  int num_deps = table->num_deps;
 3706|      7|  for (int i = 0; i < num_deps; i++) {
  ------------------
  |  Branch (3706:19): [True: 1, False: 6]
  ------------------
 3707|       |    // In case of weak fields deps[i] could be null.
 3708|      1|    if (table->deps[i]) AddDescriptors(table->deps[i]);
  ------------------
  |  Branch (3708:9): [True: 1, False: 0]
  ------------------
 3709|      1|  }
 3710|       |
 3711|       |  // Register the descriptor of this file.
 3712|      6|  DescriptorPool::InternalAddGeneratedFile(table->descriptor, table->size);
 3713|      6|  MessageFactory::InternalRegisterGeneratedFile(table);
 3714|      6|}
generated_message_reflection.cc:_ZN6google8protobuf12_GLOBAL__N_130MaybeInitializeLazyDescriptorsEPKNS0_8internal15DescriptorTableE:
 3690|      4|void MaybeInitializeLazyDescriptors(const DescriptorTable* table) {
 3691|      4|  if (!IsLazilyInitializedFile(table->filename)) {
  ------------------
  |  Branch (3691:7): [True: 2, False: 2]
  ------------------
 3692|       |    // Ensure the generated pool has been lazily initialized.
 3693|      2|    DescriptorPool::generated_pool();
 3694|      2|  }
 3695|      4|}
generated_message_reflection.cc:_ZN6google8protobuf12_GLOBAL__N_121AssignDescriptorsImplEPKNS0_8internal15DescriptorTableEb:
 3631|      4|void AssignDescriptorsImpl(const DescriptorTable* table, bool eager) {
 3632|       |  // Ensure the file descriptor is added to the pool.
 3633|      4|  {
 3634|       |    // This only happens once per proto file. So a global mutex to serialize
 3635|       |    // calls to AddDescriptors.
 3636|      4|    static absl::Mutex mu{absl::kConstInit};
 3637|      4|    mu.Lock();
 3638|      4|    AddDescriptors(table);
 3639|      4|    mu.Unlock();
 3640|      4|  }
 3641|      4|  if (eager) {
  ------------------
  |  Branch (3641:7): [True: 0, False: 4]
  ------------------
 3642|       |    // Normally we do not want to eagerly build descriptors of our deps.
 3643|       |    // However if this proto is optimized for code size (ie using reflection)
 3644|       |    // and it has a message extending a custom option of a descriptor with that
 3645|       |    // message being optimized for code size as well. Building the descriptors
 3646|       |    // in this file requires parsing the serialized file descriptor, which now
 3647|       |    // requires parsing the message extension, which potentially requires
 3648|       |    // building the descriptor of the message extending one of the options.
 3649|       |    // However we are already updating descriptor pool under a lock. To prevent
 3650|       |    // this the compiler statically looks for this case and we just make sure we
 3651|       |    // first build the descriptors of all our dependencies, preventing the
 3652|       |    // deadlock.
 3653|      0|    int num_deps = table->num_deps;
 3654|      0|    for (int i = 0; i < num_deps; i++) {
  ------------------
  |  Branch (3654:21): [True: 0, False: 0]
  ------------------
 3655|       |      // In case of weak fields deps[i] could be null.
 3656|      0|      if (table->deps[i]) {
  ------------------
  |  Branch (3656:11): [True: 0, False: 0]
  ------------------
 3657|      0|        absl::call_once(*table->deps[i]->once, AssignDescriptorsImpl,
 3658|      0|                        table->deps[i],
 3659|      0|                        /*eager=*/true);
 3660|      0|      }
 3661|      0|    }
 3662|      0|  }
 3663|       |
 3664|       |  // Fill the arrays with pointers to descriptors and reflection classes.
 3665|      4|  const FileDescriptor* file =
 3666|      4|      DescriptorPool::internal_generated_pool()->FindFileByName(
 3667|      4|          table->filename);
 3668|      4|  ABSL_CHECK(file != nullptr);
  ------------------
  |  |   41|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      8|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4]
  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3669|       |
 3670|      4|  MessageFactory* factory = MessageFactory::generated_factory();
 3671|       |
 3672|      4|  AssignDescriptorsHelper helper(factory, table->file_level_enum_descriptors,
 3673|      4|                                 table->schemas, table->default_instances,
 3674|      4|                                 table->offsets);
 3675|       |
 3676|     35|  for (int i = 0; i < file->message_type_count(); i++) {
  ------------------
  |  Branch (3676:19): [True: 31, False: 4]
  ------------------
 3677|     31|    helper.AssignMessageDescriptor(file->message_type(i));
 3678|     31|  }
 3679|       |
 3680|      7|  for (int i = 0; i < file->enum_type_count(); i++) {
  ------------------
  |  Branch (3680:19): [True: 3, False: 4]
  ------------------
 3681|      3|    helper.AssignEnumDescriptor(file->enum_type(i));
 3682|      3|  }
 3683|      4|  if (file->options().cc_generic_services()) {
  ------------------
  |  Branch (3683:7): [True: 0, False: 4]
  ------------------
 3684|      0|    for (int i = 0; i < file->service_count(); i++) {
  ------------------
  |  Branch (3684:21): [True: 0, False: 0]
  ------------------
 3685|      0|      table->file_level_service_descriptors[i] = file->service(i);
 3686|      0|    }
 3687|      0|  }
 3688|      4|}
_ZN6google8protobuf23AssignDescriptorsHelperC2EPNS0_14MessageFactoryEPPKNS0_14EnumDescriptorEPKNS0_8internal15MigrationSchemaEPKPKNS0_7MessageEPKj:
 3582|      4|      : factory_(factory),
 3583|      4|        file_level_enum_descriptors_(file_level_enum_descriptors),
 3584|      4|        schemas_(schemas),
 3585|      4|        default_instance_data_(default_instance_data),
 3586|      4|        offsets_(offsets) {}
_ZN6google8protobuf23AssignDescriptorsHelper23AssignMessageDescriptorEPKNS0_10DescriptorE:
 3588|     41|  void AssignMessageDescriptor(const Descriptor* descriptor) {
 3589|     51|    for (int i = 0; i < descriptor->nested_type_count(); i++) {
  ------------------
  |  Branch (3589:21): [True: 10, False: 41]
  ------------------
 3590|     10|      AssignMessageDescriptor(descriptor->nested_type(i));
 3591|     10|    }
 3592|       |
 3593|       |    // If there is no default instance we only want to initialize the descriptor
 3594|       |    // without updating the reflection.
 3595|     41|    if (default_instance_data_[0] != nullptr) {
  ------------------
  |  Branch (3595:9): [True: 41, False: 0]
  ------------------
 3596|     41|      auto& class_data = default_instance_data_[0]->GetClassData()->full();
 3597|       |      // If there is no descriptor_table in the class data, then it is not
 3598|       |      // interested in receiving reflection information either.
 3599|     41|      if (class_data.descriptor_table != nullptr) {
  ------------------
  |  Branch (3599:11): [True: 41, False: 0]
  ------------------
 3600|     41|        class_data.descriptor = descriptor;
 3601|       |
 3602|     41|        class_data.reflection = OnShutdownDelete(new Reflection(
 3603|     41|            descriptor,
 3604|     41|            MigrationToReflectionSchema(default_instance_data_, offsets_,
 3605|     41|                                        *schemas_),
 3606|     41|            DescriptorPool::internal_generated_pool(), factory_));
 3607|     41|      }
 3608|     41|    }
 3609|     58|    for (int i = 0; i < descriptor->enum_type_count(); i++) {
  ------------------
  |  Branch (3609:21): [True: 17, False: 41]
  ------------------
 3610|     17|      AssignEnumDescriptor(descriptor->enum_type(i));
 3611|     17|    }
 3612|     41|    schemas_++;
 3613|     41|    default_instance_data_++;
 3614|     41|  }
generated_message_reflection.cc:_ZN6google8protobuf12_GLOBAL__N_127MigrationToReflectionSchemaEPKPKNS0_7MessageEPKjNS0_8internal15MigrationSchemaE:
 3549|     41|    MigrationSchema migration_schema) {
 3550|     41|  ReflectionSchema result;
 3551|     41|  result.default_instance_ = *default_instance;
 3552|       |  // First 9 offsets are offsets to the special fields. The following offsets
 3553|       |  // are the proto fields.
 3554|       |  //
 3555|       |  // TODO: Find a way to not encode sizeof_split_ in offsets.
 3556|     41|  result.offsets_ = offsets + migration_schema.offsets_index + 8;
 3557|     41|  result.has_bit_indices_ = offsets + migration_schema.has_bit_indices_index;
 3558|     41|  result.has_bits_offset_ = offsets[migration_schema.offsets_index + 0];
 3559|     41|  result.metadata_offset_ = offsets[migration_schema.offsets_index + 1];
 3560|     41|  result.extensions_offset_ = offsets[migration_schema.offsets_index + 2];
 3561|     41|  result.oneof_case_offset_ = offsets[migration_schema.offsets_index + 3];
 3562|     41|  result.object_size_ = migration_schema.object_size;
 3563|     41|  result.weak_field_map_offset_ = offsets[migration_schema.offsets_index + 4];
 3564|     41|  result.inlined_string_donated_offset_ =
 3565|     41|      offsets[migration_schema.offsets_index + 5];
 3566|     41|  result.split_offset_ = offsets[migration_schema.offsets_index + 6];
 3567|     41|  result.sizeof_split_ = offsets[migration_schema.offsets_index + 7];
 3568|     41|  result.inlined_string_indices_ =
 3569|     41|      offsets + migration_schema.inlined_string_indices_index;
 3570|     41|  return result;
 3571|     41|}
_ZN6google8protobuf23AssignDescriptorsHelper20AssignEnumDescriptorEPKNS0_14EnumDescriptorE:
 3616|     20|  void AssignEnumDescriptor(const EnumDescriptor* descriptor) {
 3617|     20|    *file_level_enum_descriptors_ = descriptor;
 3618|     20|    file_level_enum_descriptors_++;
 3619|     20|  }

_ZNK6google8protobuf8internal16ReflectionSchema11InRealOneofEPKNS0_15FieldDescriptorE:
  117|   244k|  bool InRealOneof(const FieldDescriptor* field) const {
  118|   244k|    return field->real_containing_oneof();
  119|   244k|  }
_ZNK6google8protobuf8internal16ReflectionSchema22GetFieldOffsetNonOneofEPKNS0_15FieldDescriptorE:
  123|   189k|  uint32_t GetFieldOffsetNonOneof(const FieldDescriptor* field) const {
  124|   189k|    ABSL_DCHECK(!InRealOneof(field));
  ------------------
  |  |   47|   189k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|   189k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   379k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   189k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   379k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   379k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 189k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   189k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 189k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   189k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 189k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   379k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   379k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|   189k|    return OffsetValue(offsets_[field->index()], field->type());
  126|   189k|  }
_ZNK6google8protobuf8internal16ReflectionSchema11HasBitIndexEPKNS0_15FieldDescriptorE:
  154|  84.5k|  uint32_t HasBitIndex(const FieldDescriptor* field) const {
  155|  84.5k|    if (has_bits_offset_ == -1) return static_cast<uint32_t>(-1);
  ------------------
  |  Branch (155:9): [True: 0, False: 84.5k]
  ------------------
  156|  84.5k|    ABSL_DCHECK(HasHasbits());
  ------------------
  |  |   47|  84.5k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  84.5k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   253k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  84.5k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   169k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   169k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 84.5k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  84.5k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 84.5k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  84.5k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 84.5k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   253k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   253k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  157|  84.5k|    return has_bit_indices_[field->index()];
  158|  84.5k|  }
_ZNK6google8protobuf8internal16ReflectionSchema13HasBitsOffsetEv:
  161|  46.5k|  uint32_t HasBitsOffset() const {
  162|  46.5k|    ABSL_DCHECK(HasHasbits());
  ------------------
  |  |   47|  46.5k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  46.5k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  93.1k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  46.5k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  93.1k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  93.1k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 46.5k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  46.5k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 46.5k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  46.5k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 46.5k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  93.1k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  93.1k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  163|  46.5k|    return static_cast<uint32_t>(has_bits_offset_);
  164|  46.5k|  }
_ZNK6google8protobuf8internal16ReflectionSchema7IsSplitEPKNS0_15FieldDescriptorE:
  222|   189k|  bool IsSplit(const FieldDescriptor* field) const {
  223|   189k|    return split_offset_ != -1 &&
  ------------------
  |  Branch (223:12): [True: 0, False: 189k]
  ------------------
  224|      0|           (offsets_[field->index()] & kSplitFieldOffsetMask) != 0;
  ------------------
  |  Branch (224:12): [True: 0, False: 0]
  ------------------
  225|   189k|  }
_ZN6google8protobuf8internal16ReflectionSchema11OffsetValueEjNS1_19FieldDescriptorLite4TypeE:
  263|   189k|  static uint32_t OffsetValue(uint32_t v, FieldDescriptor::Type type) {
  264|   189k|    if (type == FieldDescriptor::TYPE_MESSAGE ||
  ------------------
  |  Branch (264:9): [True: 189k, False: 0]
  ------------------
  265|      0|        type == FieldDescriptor::TYPE_STRING ||
  ------------------
  |  Branch (265:9): [True: 0, False: 0]
  ------------------
  266|   189k|        type == FieldDescriptor::TYPE_BYTES) {
  ------------------
  |  Branch (266:9): [True: 0, False: 0]
  ------------------
  267|   189k|      return v & (~kSplitFieldOffsetMask) & (~kInlinedMask) & (~kLazyMask);
  268|   189k|    }
  269|      0|    return v & (~kSplitFieldOffsetMask);
  270|   189k|  }

_ZN6google8protobuf8internal11TcFieldDataC2ENS2_11DefaultInitE:
   64|   619k|  TcFieldData(DefaultInit) {}  // NOLINT(google-explicit-constructor)
_ZNK6google8protobuf8internal11TcFieldData10hasbit_idxEv:
   85|   120k|  uint8_t hasbit_idx() const { return static_cast<uint8_t>(data >> 16); }
_ZNK6google8protobuf8internal11TcFieldData7aux_idxEv:
   86|  37.8k|  uint8_t aux_idx() const { return static_cast<uint8_t>(data >> 24); }
_ZNK6google8protobuf8internal11TcFieldData6offsetEv:
   87|   135k|  uint16_t offset() const { return static_cast<uint16_t>(data >> 48); }
_ZNK6google8protobuf8internal11TcFieldData3tagEv:
  122|   120k|  uint32_t tag() const { return static_cast<uint32_t>(data); }
_ZNK6google8protobuf8internal11TcFieldData12entry_offsetEv:
  123|  37.8k|  uint32_t entry_offset() const { return static_cast<uint32_t>(data >> 32); }
_ZNK6google8protobuf8internal16TcParseTableBase14FastFieldEntry6targetEv:
  370|   219k|    TailCallParseFunc target() const {
  371|   219k|      return target_atomic.load(std::memory_order_relaxed);
  372|   219k|    }
_ZNK6google8protobuf8internal16TcParseTableBase10fast_entryEm:
  378|   219k|  const FastFieldEntry* fast_entry(size_t idx) const {
  379|   219k|    return reinterpret_cast<const FastFieldEntry*>(this + 1) + idx;
  380|   219k|  }
_ZNK6google8protobuf8internal16TcParseTableBase18field_lookup_beginEv:
  386|  2.58k|  const uint16_t* field_lookup_begin() const {
  387|  2.58k|    return reinterpret_cast<const uint16_t*>(reinterpret_cast<uintptr_t>(this) +
  388|  2.58k|                                             lookup_table_offset);
  389|  2.58k|  }
_ZNK6google8protobuf8internal16TcParseTableBase19field_entries_beginEv:
  406|  83.9k|  const FieldEntry* field_entries_begin() const {
  407|  83.9k|    return reinterpret_cast<const FieldEntry*>(
  408|  83.9k|        reinterpret_cast<uintptr_t>(this) + field_entries_offset);
  409|  83.9k|  }
_ZN6google8protobuf8internal16TcParseTableBase8FieldAuxC2Ev:
  420|     27|    constexpr FieldAux() : message_default_p(nullptr) {}
_ZNK6google8protobuf8internal16TcParseTableBase9field_auxEj:
  451|  20.2k|  const FieldAux* field_aux(uint32_t idx) const {
  452|  20.2k|    return reinterpret_cast<const FieldAux*>(reinterpret_cast<uintptr_t>(this) +
  453|  20.2k|                                             aux_offset) +
  454|  20.2k|           idx;
  455|  20.2k|  }
_ZNK6google8protobuf8internal16TcParseTableBase9field_auxEPKNS2_10FieldEntryE:
  461|    157|  const FieldAux* field_aux(const FieldEntry* entry) const {
  462|    157|    return field_aux(entry->aux_idx);
  463|    157|  }
_ZNK6google8protobuf8internal16TcParseTableBase16default_instanceEv:
  477|      8|  const MessageLite* default_instance() const { return class_data->prototype; }
_ZNK6google8protobuf8internal11TcFieldData9coded_tagIhEET_v:
   82|   207k|  TagType coded_tag() const {
   83|   207k|    return static_cast<TagType>(data);
   84|   207k|  }
_ZNK6google8protobuf8internal11TcFieldData9coded_tagItEET_v:
   82|  10.4k|  TagType coded_tag() const {
   83|  10.4k|    return static_cast<TagType>(data);
   84|  10.4k|  }

_ZN6google8protobuf8internal8TcParser15GenericFallbackEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
   49|  55.8k|const char* TcParser::GenericFallback(PROTOBUF_TC_PARAM_DECL) {
   50|  55.8k|  PROTOBUF_MUSTTAIL return GenericFallbackImpl<Message, UnknownFieldSet>(
  ------------------
  |  |  236|  55.8k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
   51|  55.8k|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  55.8k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
   52|  55.8k|}

_ZN6google8protobuf8internal8TcParser11SyncHasbitsEPNS0_11MessageLiteEmPKNS1_16TcParseTableBaseE:
  860|   149k|      MessageLite* msg, uint64_t hasbits, const TcParseTableBase* table) {
  861|   149k|    const uint32_t has_bits_offset = table->has_bits_offset;
  862|   149k|    if (has_bits_offset) {
  ------------------
  |  Branch (862:9): [True: 68.7k, False: 80.7k]
  ------------------
  863|       |      // Only the first 32 has-bits are updated. Nothing above those is stored,
  864|       |      // but e.g. messages without has-bits update the upper bits.
  865|  68.7k|      RefAt<uint32_t>(msg, has_bits_offset) |= static_cast<uint32_t>(hasbits);
  866|  68.7k|    }
  867|   149k|  }
_ZN6google8protobuf8internal8TcParser11TagDispatchEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1098|   219k|    PROTOBUF_TC_PARAM_NO_DATA_DECL) {
 1099|   219k|  const auto coded_tag = UnalignedLoad<uint16_t>(ptr);
 1100|   219k|  const size_t idx = coded_tag & table->fast_idx_mask;
 1101|   219k|  PROTOBUF_ASSUME((idx & 7) == 0);
  ------------------
  |  |  941|   219k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
 1102|   219k|  auto* fast_entry = table->fast_entry(idx >> 3);
 1103|   219k|  TcFieldData data = fast_entry->bits;
 1104|   219k|  data.data ^= coded_tag;
 1105|   219k|  PROTOBUF_MUSTTAIL return fast_entry->target()(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|   219k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return fast_entry->target()(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|   219k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1106|   219k|}
_ZN6google8protobuf8internal8TcParser13ToTagDispatchEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1114|   149k|    PROTOBUF_TC_PARAM_NO_DATA_DECL) {
 1115|   149k|  constexpr bool always_return = !PROTOBUF_TAILCALL;
  ------------------
  |  |  237|   149k|#define PROTOBUF_TAILCALL true
  ------------------
 1116|   149k|  if (always_return || !ctx->DataAvailable(ptr)) {
  ------------------
  |  Branch (1116:7): [Folded, False: 149k]
  |  Branch (1116:24): [True: 79.4k, False: 69.7k]
  ------------------
 1117|  79.4k|    PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  79.4k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  79.4k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1118|  79.4k|  }
 1119|  69.7k|  PROTOBUF_MUSTTAIL return TagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  69.7k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return TagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  69.7k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1120|   149k|}
_ZN6google8protobuf8internal8TcParser11ToParseLoopEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1123|  84.4k|    PROTOBUF_TC_PARAM_NO_DATA_DECL) {
 1124|  84.4k|  (void)ctx;
 1125|  84.4k|  SyncHasbits(msg, hasbits, table);
 1126|  84.4k|  return ptr;
 1127|  84.4k|}
_ZN6google8protobuf8internal8TcParser9ParseLoopEPNS0_11MessageLiteEPKcPNS1_12ParseContextEPKNS1_16TcParseTableBaseE:
 1131|  96.0k|    const TcParseTableBase* table) {
 1132|       |  // Note: TagDispatch uses a dispatch table at "&table->fast_entries".
 1133|       |  // For fast dispatch, we'd like to have a pointer to that, but if we use
 1134|       |  // that expression, there's no easy way to get back to "table", which we also
 1135|       |  // need during dispatch.  It turns out that "table + 1" points exactly to
 1136|       |  // fast_entries, so we just increment table by 1 here, to get the register
 1137|       |  // holding the value we want.
 1138|  96.0k|  table += 1;
 1139|   245k|  while (!ctx->Done(&ptr)) {
  ------------------
  |  Branch (1139:10): [True: 149k, False: 95.9k]
  ------------------
 1140|   149k|#if defined(__GNUC__)
 1141|       |    // Note: this asm prevents the compiler (clang, specifically) from
 1142|       |    // believing (thanks to CSE) that it needs to dedicate a register both
 1143|       |    // to "table" and "&table->fast_entries".
 1144|       |    // TODO: remove this asm
 1145|   149k|    asm("" : "+r"(table));
 1146|   149k|#endif
 1147|   149k|    ptr = TagDispatch(msg, ptr, ctx, TcFieldData::DefaultInit(), table - 1, 0);
 1148|   149k|    if (ptr == nullptr) break;
  ------------------
  |  Branch (1148:9): [True: 108, False: 149k]
  ------------------
 1149|   149k|    if (ctx->LastTag() != 1) break;  // Ended on terminating tag
  ------------------
  |  Branch (1149:9): [True: 14, False: 149k]
  ------------------
 1150|   149k|  }
 1151|  96.0k|  table -= 1;
 1152|  96.0k|  if (ABSL_PREDICT_FALSE(table->has_post_loop_handler)) {
  ------------------
  |  |  178|  96.0k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 96.0k]
  |  |  |  Branch (178:49): [Folded, False: 96.0k]
  |  |  |  Branch (178:58): [True: 0, False: 96.0k]
  |  |  ------------------
  ------------------
 1153|      0|    return table->post_loop_handler(msg, ptr, ctx);
 1154|      0|  }
 1155|  96.0k|  return ptr;
 1156|  96.0k|}
_ZN6google8protobuf8internal8TcParser5RefAtIjEERT_Pvm:
  714|   179k|  static inline T& RefAt(void* x, size_t offset) {
  715|   179k|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|   179k|    return *target;
  728|   179k|  }
_ZN6google8protobuf8internal8TcParser5RefAtINS1_12ExtensionSetEEERT_Pvm:
  714|      8|  static inline T& RefAt(void* x, size_t offset) {
  715|      8|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|      8|    return *target;
  728|      8|  }
_ZN6google8protobuf8internal8TcParser5RefAtINS1_16TcParseTableBase10FieldEntryEEERKT_PKvm:
  731|  37.8k|  static inline const T& RefAt(const void* x, size_t offset) {
  732|  37.8k|    const T* target =
  733|  37.8k|        reinterpret_cast<const T*>(static_cast<const char*>(x) + offset);
  734|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  735|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  736|       |    // not respect the alignment as expressed by `alignof(T)`
  737|       |    if (PROTOBUF_PREDICT_FALSE(
  738|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  739|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  740|       |                reinterpret_cast<uintptr_t>(target));
  741|       |      // Explicit abort to let compilers know this code-path does not return
  742|       |      abort();
  743|       |    }
  744|       |#endif
  745|  37.8k|    return *target;
  746|  37.8k|  }
_ZN6google8protobuf8internal8TcParser29MaybeCreateRepeatedFieldRefAtIjLb0EEERNS0_13RepeatedFieldIT_EEPvmPNS0_11MessageLiteE:
  767|     27|      void* x, size_t offset, MessageLite* msg) {
  768|     27|    return MaybeCreateRepeatedRefAt<RepeatedField<T>, is_split>(x, offset, msg);
  769|     27|  }
_ZN6google8protobuf8internal8TcParser24MaybeCreateRepeatedRefAtINS0_13RepeatedFieldIjEELb0EEERT_PvmPNS0_11MessageLiteE:
  756|     27|                                            MessageLite* msg) {
  757|     27|    if (!is_split) return RefAt<T>(x, offset);
  ------------------
  |  Branch (757:9): [True: 27, Folded]
  ------------------
  758|      0|    void*& ptr = RefAt<void*>(x, offset);
  759|      0|    if (ptr == DefaultRawPtr()) {
  ------------------
  |  Branch (759:9): [True: 0, False: 0]
  ------------------
  760|      0|      ptr = Arena::Create<T>(msg->GetArena());
  761|      0|    }
  762|      0|    return *static_cast<T*>(ptr);
  763|     27|  }
_ZN6google8protobuf8internal8TcParser5RefAtINS0_13RepeatedFieldIjEEEERT_Pvm:
  714|     27|  static inline T& RefAt(void* x, size_t offset) {
  715|     27|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|     27|    return *target;
  728|     27|  }
_ZN6google8protobuf8internal8TcParser5RefAtImEERT_Pvm:
  714|  11.2k|  static inline T& RefAt(void* x, size_t offset) {
  715|  11.2k|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|  11.2k|    return *target;
  728|  11.2k|  }
_ZN6google8protobuf8internal8TcParser32MaybeCreateRepeatedPtrFieldRefAtINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELb0EEERNS0_16RepeatedPtrFieldIT_EEPvmPNS0_11MessageLiteE:
  773|    485|      void* x, size_t offset, MessageLite* msg) {
  774|    485|    return MaybeCreateRepeatedRefAt<RepeatedPtrField<T>, is_split>(x, offset,
  775|    485|                                                                   msg);
  776|    485|  }
_ZN6google8protobuf8internal8TcParser24MaybeCreateRepeatedRefAtINS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEELb0EEERT_PvmPNS0_11MessageLiteE:
  756|    485|                                            MessageLite* msg) {
  757|    485|    if (!is_split) return RefAt<T>(x, offset);
  ------------------
  |  Branch (757:9): [True: 485, Folded]
  ------------------
  758|      0|    void*& ptr = RefAt<void*>(x, offset);
  759|      0|    if (ptr == DefaultRawPtr()) {
  ------------------
  |  Branch (759:9): [True: 0, False: 0]
  ------------------
  760|      0|      ptr = Arena::Create<T>(msg->GetArena());
  761|      0|    }
  762|      0|    return *static_cast<T*>(ptr);
  763|    485|  }
_ZN6google8protobuf8internal8TcParser5RefAtINS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEERT_Pvm:
  714|  4.38k|  static inline T& RefAt(void* x, size_t offset) {
  715|  4.38k|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|  4.38k|    return *target;
  728|  4.38k|  }
_ZN6google8protobuf8internal8TcParser24MaybeCreateRepeatedRefAtINS1_20RepeatedPtrFieldBaseELb0EEERT_PvmPNS0_11MessageLiteE:
  756|     62|                                            MessageLite* msg) {
  757|     62|    if (!is_split) return RefAt<T>(x, offset);
  ------------------
  |  Branch (757:9): [True: 62, Folded]
  ------------------
  758|      0|    void*& ptr = RefAt<void*>(x, offset);
  759|      0|    if (ptr == DefaultRawPtr()) {
  ------------------
  |  Branch (759:9): [True: 0, False: 0]
  ------------------
  760|      0|      ptr = Arena::Create<T>(msg->GetArena());
  761|      0|    }
  762|      0|    return *static_cast<T*>(ptr);
  763|     62|  }
_ZN6google8protobuf8internal8TcParser5RefAtINS1_20RepeatedPtrFieldBaseEEERT_Pvm:
  714|  10.9k|  static inline T& RefAt(void* x, size_t offset) {
  715|  10.9k|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|  10.9k|    return *target;
  728|  10.9k|  }
_ZN6google8protobuf8internal8TcParser5RefAtIbEERT_Pvm:
  714|  20.9k|  static inline T& RefAt(void* x, size_t offset) {
  715|  20.9k|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|  20.9k|    return *target;
  728|  20.9k|  }
_ZN6google8protobuf8internal8TcParser5RefAtIiEERT_Pvm:
  714|    990|  static inline T& RefAt(void* x, size_t offset) {
  715|    990|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|    990|    return *target;
  728|    990|  }
_ZN6google8protobuf8internal8TcParser5RefAtINS1_14ArenaStringPtrEEERT_Pvm:
  714|  21.8k|  static inline T& RefAt(void* x, size_t offset) {
  715|  21.8k|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|  21.8k|    return *target;
  728|  21.8k|  }
_ZN6google8protobuf8internal8TcParser5RefAtIPNS0_11MessageLiteEEERT_Pvm:
  714|  9.15k|  static inline T& RefAt(void* x, size_t offset) {
  715|  9.15k|    T* target = reinterpret_cast<T*>(static_cast<char*>(x) + offset);
  716|       |#if !defined(NDEBUG) && !(defined(_MSC_VER) && defined(_M_IX86))
  717|       |    // Check the alignment in debug mode, except in 32-bit msvc because it does
  718|       |    // not respect the alignment as expressed by `alignof(T)`
  719|       |    if (PROTOBUF_PREDICT_FALSE(
  720|       |            reinterpret_cast<uintptr_t>(target) % alignof(T) != 0)) {
  721|       |      AlignFail(std::integral_constant<size_t, alignof(T)>(),
  722|       |                reinterpret_cast<uintptr_t>(target));
  723|       |      // Explicit abort to let compilers know this code-path does not return
  724|       |      abort();
  725|       |    }
  726|       |#endif
  727|  9.15k|    return *target;
  728|  9.15k|  }
_ZN6google8protobuf8internal8TcParser19GenericFallbackImplINS0_7MessageENS0_15UnknownFieldSetEEEPKcPNS0_11MessageLiteES7_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  906|  55.8k|  PROTOBUF_CC static const char* GenericFallbackImpl(PROTOBUF_TC_PARAM_DECL) {
  907|  55.8k|    if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  55.8k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 55.8k]
  |  |  |  Branch (365:54): [Folded, False: 55.8k]
  |  |  |  Branch (365:63): [True: 0, False: 55.8k]
  |  |  ------------------
  ------------------
  908|       |      // This is the ABI used by GetUnknownFieldOps(). Return the vtable.
  909|      0|      static constexpr UnknownFieldOps kOps = {
  910|      0|          WriteVarintToUnknown<UnknownFieldsT>,
  911|      0|          WriteLengthDelimitedToUnknown<UnknownFieldsT>};
  912|      0|      return reinterpret_cast<const char*>(&kOps);
  913|      0|    }
  914|       |
  915|  55.8k|    SyncHasbits(msg, hasbits, table);
  916|  55.8k|    uint32_t tag = data.tag();
  917|  55.8k|    if ((tag & 7) == WireFormatLite::WIRETYPE_END_GROUP || tag == 0) {
  ------------------
  |  Branch (917:9): [True: 3, False: 55.8k]
  |  Branch (917:60): [True: 11, False: 55.8k]
  ------------------
  918|     14|      ctx->SetLastTag(tag);
  919|     14|      return ptr;
  920|     14|    }
  921|       |
  922|  55.8k|    if (table->extension_offset != 0) {
  ------------------
  |  Branch (922:9): [True: 8, False: 55.8k]
  ------------------
  923|       |      // We don't need to check the extension ranges. If it is not an extension
  924|       |      // it will be handled just like if it was an unknown extension: sent to
  925|       |      // the unknown field set.
  926|      8|      return RefAt<ExtensionSet>(msg, table->extension_offset)
  927|      8|          .ParseField(
  928|      8|              tag, ptr,
  929|      8|              static_cast<const MessageBaseT*>(table->default_instance()),
  930|      8|              &msg->_internal_metadata_, ctx);
  931|  55.8k|    } else {
  932|       |      // Otherwise, we directly put it on the unknown field set.
  933|  55.8k|      return UnknownFieldParse(
  934|  55.8k|          tag,
  935|  55.8k|          msg->_internal_metadata_.mutable_unknown_fields<UnknownFieldsT>(),
  936|  55.8k|          ptr, ctx);
  937|  55.8k|    }
  938|  55.8k|  }

_ZN6google8protobuf8internal8TcParser21ParseLoopPreserveNoneEPNS0_11MessageLiteEPKcPNS1_12ParseContextEPKNS1_16TcParseTableBaseE:
   82|    329|    const TcParseTableBase* table) {
   83|    329|  return ParseLoop(msg, ptr, ctx, table);
   84|    329|}
_ZN6google8protobuf8internal8TcParser14FindFieldEntryEPKNS1_16TcParseTableBaseEj:
  138|  83.9k|    const TcParseTableBase* table, uint32_t field_num) {
  139|  83.9k|  const FieldEntry* const field_entries = table->field_entries_begin();
  140|       |
  141|  83.9k|  uint32_t fstart = 1;
  142|  83.9k|  uint32_t adj_fnum = field_num - fstart;
  143|       |
  144|  83.9k|  if (PROTOBUF_PREDICT_TRUE(adj_fnum < 32)) {
  ------------------
  |  |  364|  83.9k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 81.3k, False: 2.58k]
  |  |  |  Branch (364:53): [Folded, False: 83.9k]
  |  |  |  Branch (364:62): [True: 81.3k, False: 2.58k]
  |  |  ------------------
  ------------------
  145|  81.3k|    uint32_t skipmap = table->skipmap32;
  146|  81.3k|    uint32_t skipbit = 1 << adj_fnum;
  147|  81.3k|    if (PROTOBUF_PREDICT_FALSE(skipmap & skipbit)) return nullptr;
  ------------------
  |  |  365|  81.3k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 44.4k, False: 36.9k]
  |  |  |  Branch (365:54): [Folded, False: 81.3k]
  |  |  |  Branch (365:63): [True: 44.4k, False: 36.9k]
  |  |  ------------------
  ------------------
  148|  36.9k|    skipmap &= skipbit - 1;
  149|  36.9k|    adj_fnum -= absl::popcount(skipmap);
  150|  36.9k|    auto* entry = field_entries + adj_fnum;
  151|  36.9k|    PROTOBUF_ASSUME(entry != nullptr);
  ------------------
  |  |  941|  36.9k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  152|  36.9k|    return entry;
  153|  81.3k|  }
  154|  2.58k|  const uint16_t* lookup_table = table->field_lookup_begin();
  155|  2.58k|  for (;;) {
  156|  2.58k|#ifdef ABSL_IS_LITTLE_ENDIAN
  157|  2.58k|    memcpy(&fstart, lookup_table, sizeof(fstart));
  158|       |#else
  159|       |    fstart = lookup_table[0] | (lookup_table[1] << 16);
  160|       |#endif
  161|  2.58k|    lookup_table += sizeof(fstart) / sizeof(*lookup_table);
  162|  2.58k|    uint32_t num_skip_entries = *lookup_table++;
  163|  2.58k|    if (field_num < fstart) return nullptr;
  ------------------
  |  Branch (163:9): [True: 2.57k, False: 7]
  ------------------
  164|      7|    adj_fnum = field_num - fstart;
  165|      7|    uint32_t skip_num = adj_fnum / 16;
  166|      7|    if (PROTOBUF_PREDICT_TRUE(skip_num < num_skip_entries)) {
  ------------------
  |  |  364|      7|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 7, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 7]
  |  |  |  Branch (364:62): [True: 7, False: 0]
  |  |  ------------------
  ------------------
  167|       |      // for each group of 16 fields we have:
  168|       |      // a bitmap of 16 bits
  169|       |      // a 16-bit field-entry offset for the first of them.
  170|      7|      auto* skip_data = lookup_table + (adj_fnum / 16) * (sizeof(SkipEntry16) /
  171|      7|                                                          sizeof(uint16_t));
  172|      7|      SkipEntry16 se = {skip_data[0], skip_data[1]};
  173|      7|      adj_fnum &= 15;
  174|      7|      uint32_t skipmap = se.skipmap;
  175|      7|      uint16_t skipbit = 1 << adj_fnum;
  176|      7|      if (PROTOBUF_PREDICT_FALSE(skipmap & skipbit)) return nullptr;
  ------------------
  |  |  365|      7|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 7]
  |  |  |  Branch (365:54): [Folded, False: 7]
  |  |  |  Branch (365:63): [True: 0, False: 7]
  |  |  ------------------
  ------------------
  177|      7|      skipmap &= skipbit - 1;
  178|      7|      adj_fnum += se.field_entry_offset;
  179|      7|      adj_fnum -= absl::popcount(skipmap);
  180|      7|      auto* entry = field_entries + adj_fnum;
  181|      7|      PROTOBUF_ASSUME(entry != nullptr);
  ------------------
  |  |  941|      7|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  182|      7|      return entry;
  183|      7|    }
  184|      0|    lookup_table +=
  185|      0|        num_skip_entries * (sizeof(SkipEntry16) / sizeof(*lookup_table));
  186|      0|  }
  187|  2.58k|}
_ZN6google8protobuf8internal8TcParser5ErrorEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  229|     40|PROTOBUF_NOINLINE const char* TcParser::Error(PROTOBUF_TC_PARAM_NO_DATA_DECL) {
  230|     40|  (void)ctx;
  231|     40|  (void)ptr;
  232|     40|  SyncHasbits(msg, hasbits, table);
  233|     40|  return nullptr;
  234|     40|}
_ZN6google8protobuf8internal8TcParser9MiniParseEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  322|  83.9k|    PROTOBUF_TC_PARAM_NO_DATA_DECL) {
  323|  83.9k|  PROTOBUF_MUSTTAIL return MiniParse<false>(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  83.9k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return MiniParse<false>(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  83.9k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  324|  83.9k|}
_ZN6google8protobuf8internal8TcParser10AddMessageEPKNS1_16TcParseTableBaseERNS1_20RepeatedPtrFieldBaseE:
  364|  78.9k|                                  RepeatedPtrFieldBase& field) {
  365|  78.9k|  return static_cast<MessageLite*>(field.AddInternal(
  366|  78.9k|      [table](Arena* arena) { return NewMessage(table, arena); }));
  367|  78.9k|}
_ZN6google8protobuf8internal8TcParser8FastMtS1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  417|  15.1k|PROTOBUF_NOINLINE const char* TcParser::FastMtS1(PROTOBUF_TC_PARAM_DECL) {
  418|  15.1k|  PROTOBUF_MUSTTAIL return SingularParseMessageAuxImpl<uint8_t, false, true>(
  ------------------
  |  |  236|  15.1k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
  419|  15.1k|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  15.1k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  420|  15.1k|}
_ZN6google8protobuf8internal8TcParser8FastMtR1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  503|  32.3k|PROTOBUF_NOINLINE const char* TcParser::FastMtR1(PROTOBUF_TC_PARAM_DECL) {
  504|  32.3k|  PROTOBUF_MUSTTAIL return RepeatedParseMessageAuxImpl<uint8_t, false, true>(
  ------------------
  |  |  236|  32.3k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
  505|  32.3k|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  32.3k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  506|  32.3k|}
_ZN6google8protobuf8internal8TcParser8FastMtR2EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  508|     27|PROTOBUF_NOINLINE const char* TcParser::FastMtR2(PROTOBUF_TC_PARAM_DECL) {
  509|     27|  PROTOBUF_MUSTTAIL return RepeatedParseMessageAuxImpl<uint16_t, false, true>(
  ------------------
  |  |  236|     27|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
  510|     27|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|     27|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  511|     27|}
_ZN6google8protobuf8internal8TcParser8FastV8S1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  829|  10.4k|PROTOBUF_NOINLINE const char* TcParser::FastV8S1(PROTOBUF_TC_PARAM_DECL) {
  830|  10.4k|  using TagType = uint8_t;
  831|       |
  832|       |  // Special case for a varint bool field with a tag of 1 byte:
  833|       |  // The coded_tag() field will actually contain the value too and we can check
  834|       |  // both at the same time.
  835|  10.4k|  auto coded_tag = data.coded_tag<uint16_t>();
  836|  10.4k|  if (PROTOBUF_PREDICT_TRUE(coded_tag == 0x0000 || coded_tag == 0x0100)) {
  ------------------
  |  |  364|  20.8k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 9.66k, False: 794]
  |  |  |  Branch (364:53): [Folded, False: 10.4k]
  |  |  |  Branch (364:63): [True: 18, False: 10.4k]
  |  |  |  Branch (364:63): [True: 9.64k, False: 794]
  |  |  ------------------
  ------------------
  837|  9.66k|    auto& field = RefAt<bool>(msg, data.offset());
  838|       |    // Note: we use `data.data` because Clang generates suboptimal code when
  839|       |    // using coded_tag.
  840|       |    // In x86_64 this uses the CH register to read the second byte out of
  841|       |    // `data`.
  842|  9.66k|    uint8_t value = data.data >> 8;
  843|       |    // The assume allows using a mov instead of test+setne.
  844|  9.66k|    PROTOBUF_ASSUME(value <= 1);
  ------------------
  |  |  941|  9.66k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  845|  9.66k|    field = static_cast<bool>(value);
  846|       |
  847|  9.66k|    ptr += sizeof(TagType) + 1;  // Consume the tag and the value.
  848|  9.66k|    hasbits |= (uint64_t{1} << data.hasbit_idx());
  849|       |
  850|  9.66k|    PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  9.66k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  9.66k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  851|  9.66k|  }
  852|       |
  853|       |  // If it didn't match above either the tag is wrong, or the value is encoded
  854|       |  // non-canonically.
  855|       |  // Jump to MiniParse as wrong tag is the most probable reason.
  856|    794|  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|    794|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|    794|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  857|  10.4k|}
_ZN6google8protobuf8internal8TcParser8FastV8S2EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  859|     10|PROTOBUF_NOINLINE const char* TcParser::FastV8S2(PROTOBUF_TC_PARAM_DECL) {
  860|     10|  PROTOBUF_MUSTTAIL return SingularVarint<bool, uint16_t>(
  ------------------
  |  |  236|     10|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
  861|     10|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|     10|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  862|     10|}
_ZN6google8protobuf8internal8TcParser9FastV32S1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  863|   131k|PROTOBUF_NOINLINE const char* TcParser::FastV32S1(PROTOBUF_TC_PARAM_DECL) {
  864|   131k|  PROTOBUF_MUSTTAIL return FastVarintS1<uint32_t>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|   131k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return FastVarintS1<uint32_t>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|   131k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  865|   131k|}
_ZN6google8protobuf8internal8TcParser8FastEvS1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1095|     93|PROTOBUF_NOINLINE const char* TcParser::FastEvS1(PROTOBUF_TC_PARAM_DECL) {
 1096|     93|  PROTOBUF_MUSTTAIL return SingularEnum<uint8_t, field_layout::kTvEnum>(
  ------------------
  |  |  236|     93|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1097|     93|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|     93|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1098|     93|}
_ZN6google8protobuf8internal8TcParser9FastEr0S1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1231|     84|PROTOBUF_NOINLINE const char* TcParser::FastEr0S1(PROTOBUF_TC_PARAM_DECL) {
 1232|     84|  PROTOBUF_MUSTTAIL return SingularEnumSmallRange<uint8_t, 0>(
  ------------------
  |  |  236|     84|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1233|     84|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|     84|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1234|     84|}
_ZN6google8protobuf8internal8TcParser9FastEr1S1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1241|    873|PROTOBUF_NOINLINE const char* TcParser::FastEr1S1(PROTOBUF_TC_PARAM_DECL) {
 1242|    873|  PROTOBUF_MUSTTAIL return SingularEnumSmallRange<uint8_t, 1>(
  ------------------
  |  |  236|    873|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1243|    873|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|    873|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1244|    873|}
_ZN6google8protobuf8internal8TcParser7FastBS1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1448|  21.7k|PROTOBUF_NOINLINE const char* TcParser::FastBS1(PROTOBUF_TC_PARAM_DECL) {
 1449|  21.7k|  PROTOBUF_MUSTTAIL return SingularString<uint8_t, ArenaStringPtr, kNoUtf8>(
  ------------------
  |  |  236|  21.7k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1450|  21.7k|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  21.7k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1451|  21.7k|}
_ZN6google8protobuf8internal8TcParser7FastSS1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1456|  1.15k|PROTOBUF_NOINLINE const char* TcParser::FastSS1(PROTOBUF_TC_PARAM_DECL) {
 1457|  1.15k|  PROTOBUF_MUSTTAIL return SingularString<uint8_t, ArenaStringPtr,
  ------------------
  |  |  236|  1.15k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1458|  1.15k|                                          kUtf8ValidateOnly>(
 1459|  1.15k|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  1.15k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1460|  1.15k|}
_ZN6google8protobuf8internal8TcParser7FastSS2EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1461|      7|PROTOBUF_NOINLINE const char* TcParser::FastSS2(PROTOBUF_TC_PARAM_DECL) {
 1462|      7|  PROTOBUF_MUSTTAIL return SingularString<uint16_t, ArenaStringPtr,
  ------------------
  |  |  236|      7|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1463|      7|                                          kUtf8ValidateOnly>(
 1464|      7|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      7|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1465|      7|}
_ZN6google8protobuf8internal8TcParser7FastBR1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1573|  4.68k|PROTOBUF_NOINLINE const char* TcParser::FastBR1(PROTOBUF_TC_PARAM_DECL) {
 1574|  4.68k|  PROTOBUF_MUSTTAIL return RepeatedString<
  ------------------
  |  |  236|  4.68k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1575|  4.68k|      uint8_t, RepeatedPtrField<std::string>, kNoUtf8>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  4.68k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1576|  4.68k|}
_ZN6google8protobuf8internal8TcParser7FastSR1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1581|      6|PROTOBUF_NOINLINE const char* TcParser::FastSR1(PROTOBUF_TC_PARAM_DECL) {
 1582|      6|  PROTOBUF_MUSTTAIL return RepeatedString<
  ------------------
  |  |  236|      6|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1583|      6|      uint8_t, RepeatedPtrField<std::string>, kUtf8ValidateOnly>(
 1584|      6|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      6|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1585|      6|}
_ZN6google8protobuf8internal8TcParser11ChangeOneofEPKNS1_16TcParseTableBaseERKNS3_10FieldEntryEjPNS1_12ParseContextEPNS0_11MessageLiteE:
 1624|  26.8k|                           MessageLite* msg) {
 1625|       |  // The _oneof_case_ value offset is stored in the has-bit index.
 1626|  26.8k|  uint32_t* oneof_case = &TcParser::RefAt<uint32_t>(msg, entry.has_idx);
 1627|  26.8k|  uint32_t current_case = *oneof_case;
 1628|  26.8k|  *oneof_case = field_num;
 1629|       |
 1630|  26.8k|  if (current_case == 0) {
  ------------------
  |  Branch (1630:7): [True: 26.8k, False: 2]
  ------------------
 1631|       |    // If the member is empty, we don't have anything to clear. Caller is
 1632|       |    // responsible for creating a new member object.
 1633|  26.8k|    return true;
 1634|  26.8k|  }
 1635|      2|  if (current_case == field_num) {
  ------------------
  |  Branch (1635:7): [True: 2, False: 0]
  ------------------
 1636|       |    // If the member is already active, then it should be merged. We're done.
 1637|      2|    return false;
 1638|      2|  }
 1639|       |  // Look up the value that is already stored, and dispose of it if necessary.
 1640|      0|  const FieldEntry* current_entry = FindFieldEntry(table, current_case);
 1641|      0|  uint16_t current_kind = current_entry->type_card & field_layout::kFkMask;
 1642|      0|  uint16_t current_rep = current_entry->type_card & field_layout::kRepMask;
 1643|      0|  if (current_kind == field_layout::kFkString) {
  ------------------
  |  Branch (1643:7): [True: 0, False: 0]
  ------------------
 1644|      0|    switch (current_rep) {
 1645|      0|      case field_layout::kRepAString: {
  ------------------
  |  Branch (1645:7): [True: 0, False: 0]
  ------------------
 1646|      0|        auto& field = RefAt<ArenaStringPtr>(msg, current_entry->offset);
 1647|      0|        field.Destroy();
 1648|      0|        break;
 1649|      0|      }
 1650|      0|      case field_layout::kRepCord: {
  ------------------
  |  Branch (1650:7): [True: 0, False: 0]
  ------------------
 1651|      0|        if (msg->GetArena() == nullptr) {
  ------------------
  |  Branch (1651:13): [True: 0, False: 0]
  ------------------
 1652|      0|          delete RefAt<absl::Cord*>(msg, current_entry->offset);
 1653|      0|        }
 1654|      0|        break;
 1655|      0|      }
 1656|      0|      case field_layout::kRepSString:
  ------------------
  |  Branch (1656:7): [True: 0, False: 0]
  ------------------
 1657|      0|      case field_layout::kRepIString:
  ------------------
  |  Branch (1657:7): [True: 0, False: 0]
  ------------------
 1658|      0|      default:
  ------------------
  |  Branch (1658:7): [True: 0, False: 0]
  ------------------
 1659|      0|        ABSL_DLOG(FATAL) << "string rep not handled: "
  ------------------
  |  |   40|      0|#define ABSL_DLOG(severity) ABSL_LOG_INTERNAL_DLOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   41|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, false) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   42|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1660|      0|                         << (current_rep >> field_layout::kRepShift);
 1661|      0|        return true;
 1662|      0|    }
 1663|      0|  } else if (current_kind == field_layout::kFkMessage) {
  ------------------
  |  Branch (1663:14): [True: 0, False: 0]
  ------------------
 1664|      0|    switch (current_rep) {
 1665|      0|      case field_layout::kRepMessage:
  ------------------
  |  Branch (1665:7): [True: 0, False: 0]
  ------------------
 1666|      0|      case field_layout::kRepGroup: {
  ------------------
  |  Branch (1666:7): [True: 0, False: 0]
  ------------------
 1667|      0|        auto& field = RefAt<MessageLite*>(msg, current_entry->offset);
 1668|      0|        if (!msg->GetArena()) {
  ------------------
  |  Branch (1668:13): [True: 0, False: 0]
  ------------------
 1669|      0|          delete field;
 1670|      0|        }
 1671|      0|        break;
 1672|      0|      }
 1673|      0|      default:
  ------------------
  |  Branch (1673:7): [True: 0, False: 0]
  ------------------
 1674|      0|        ABSL_DLOG(FATAL) << "message rep not handled: "
  ------------------
  |  |   40|      0|#define ABSL_DLOG(severity) ABSL_LOG_INTERNAL_DLOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   41|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, false) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   42|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1675|      0|                         << (current_rep >> field_layout::kRepShift);
 1676|      0|        break;
 1677|      0|    }
 1678|      0|  }
 1679|      0|  return true;
 1680|      0|}
_ZN6google8protobuf8internal8TcParser17MaybeGetSplitBaseEPNS0_11MessageLiteEbPKNS1_16TcParseTableBaseE:
 1693|  28.1k|                                  const TcParseTableBase* table) {
 1694|  28.1k|  void* out = msg;
 1695|  28.1k|  if (is_split) {
  ------------------
  |  Branch (1695:7): [True: 0, False: 28.1k]
  ------------------
 1696|      0|    const uint32_t split_offset = GetSplitOffset(table);
 1697|      0|    void* default_split =
 1698|      0|        TcParser::RefAt<void*>(table->default_instance(), split_offset);
 1699|      0|    void*& split = TcParser::RefAt<void*>(msg, split_offset);
 1700|      0|    if (split == default_split) {
  ------------------
  |  Branch (1700:9): [True: 0, False: 0]
  ------------------
 1701|       |      // Allocate split instance when needed.
 1702|      0|      uint32_t size = GetSizeofSplit(table);
 1703|      0|      Arena* arena = msg->GetArena();
 1704|      0|      split = (arena == nullptr) ? ::operator new(size)
  ------------------
  |  Branch (1704:15): [True: 0, False: 0]
  ------------------
 1705|      0|                                 : arena->AllocateAligned(size);
 1706|      0|      memcpy(split, default_split, size);
 1707|      0|    }
 1708|      0|    out = split;
 1709|      0|  }
 1710|  28.1k|  return out;
 1711|  28.1k|}
_ZN6google8protobuf8internal8TcParser12MpVerifyUtf8EN4absl12lts_2024011611string_viewEPKNS1_16TcParseTableBaseERKNS6_10FieldEntryEt:
 2116|  6.34k|                            const FieldEntry& entry, uint16_t xform_val) {
 2117|  6.34k|  if (xform_val == field_layout::kTvUtf8) {
  ------------------
  |  Branch (2117:7): [True: 0, False: 6.34k]
  ------------------
 2118|      0|    if (!utf8_range::IsStructurallyValid(wire_bytes)) {
  ------------------
  |  Branch (2118:9): [True: 0, False: 0]
  ------------------
 2119|      0|      PrintUTF8ErrorLog(MessageName(table), FieldName(table, &entry), "parsing",
 2120|      0|                        false);
 2121|      0|      return false;
 2122|      0|    }
 2123|      0|    return true;
 2124|      0|  }
 2125|       |#ifndef NDEBUG
 2126|       |  if (xform_val == field_layout::kTvUtf8Debug) {
 2127|       |    if (!utf8_range::IsStructurallyValid(wire_bytes)) {
 2128|       |      PrintUTF8ErrorLog(MessageName(table), FieldName(table, &entry), "parsing",
 2129|       |                        false);
 2130|       |    }
 2131|       |  }
 2132|       |#endif  // NDEBUG
 2133|  6.34k|  return true;
 2134|  6.34k|}
_ZN6google8protobuf8internal8TcParser9MiniParseILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  238|  83.9k|    PROTOBUF_TC_PARAM_DECL) {
  239|  83.9k|  TestMiniParseResult* test_out;
  240|  83.9k|  if (export_called_function) {
  ------------------
  |  Branch (240:7): [Folded, False: 83.9k]
  ------------------
  241|      0|    test_out = reinterpret_cast<TestMiniParseResult*>(
  242|      0|        static_cast<uintptr_t>(data.data));
  243|      0|  }
  244|       |
  245|  83.9k|  uint32_t tag;
  246|  83.9k|  ptr = ReadTagInlined(ptr, &tag);
  247|  83.9k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  83.9k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 83.9k]
  |  |  |  Branch (365:54): [Folded, False: 83.9k]
  |  |  |  Branch (365:63): [True: 0, False: 83.9k]
  |  |  ------------------
  ------------------
  248|      0|    if (export_called_function) *test_out = {Error};
  ------------------
  |  Branch (248:9): [Folded, False: 0]
  ------------------
  249|      0|    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  250|      0|  }
  251|       |
  252|  83.9k|  auto* entry = FindFieldEntry(table, tag >> 3);
  253|  83.9k|  if (entry == nullptr) {
  ------------------
  |  Branch (253:7): [True: 47.0k, False: 36.9k]
  ------------------
  254|  47.0k|    if (export_called_function) *test_out = {table->fallback, tag};
  ------------------
  |  Branch (254:9): [Folded, False: 47.0k]
  ------------------
  255|  47.0k|    data.data = tag;
  256|  47.0k|    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|  47.0k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  47.0k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  257|  47.0k|  }
  258|       |
  259|       |  // The handler may need the tag and the entry to resolve fallback logic. Both
  260|       |  // of these are 32 bits, so pack them into (the 64-bit) `data`. Since we can't
  261|       |  // pack the entry pointer itself, just pack its offset from `table`.
  262|  36.9k|  uint64_t entry_offset = reinterpret_cast<const char*>(entry) -
  263|  36.9k|                          reinterpret_cast<const char*>(table);
  264|  36.9k|  data.data = entry_offset << 32 | tag;
  265|       |
  266|  36.9k|  using field_layout::FieldKind;
  267|  36.9k|  auto field_type =
  268|  36.9k|      entry->type_card & (+field_layout::kSplitMask | FieldKind::kFkMask);
  269|       |
  270|  36.9k|  static constexpr TailCallParseFunc kMiniParseTable[] = {
  271|  36.9k|      &MpFallback,             // FieldKind::kFkNone
  272|  36.9k|      &MpVarint<false>,        // FieldKind::kFkVarint
  273|  36.9k|      &MpPackedVarint<false>,  // FieldKind::kFkPackedVarint
  274|  36.9k|      &MpFixed<false>,         // FieldKind::kFkFixed
  275|  36.9k|      &MpPackedFixed<false>,   // FieldKind::kFkPackedFixed
  276|  36.9k|      &MpString<false>,        // FieldKind::kFkString
  277|  36.9k|      &MpMessage<false>,       // FieldKind::kFkMessage
  278|  36.9k|      &MpMap<false>,           // FieldKind::kFkMap
  279|  36.9k|      &Error,                  // kSplitMask | FieldKind::kFkNone
  280|  36.9k|      &MpVarint<true>,         // kSplitMask | FieldKind::kFkVarint
  281|  36.9k|      &MpPackedVarint<true>,   // kSplitMask | FieldKind::kFkPackedVarint
  282|  36.9k|      &MpFixed<true>,          // kSplitMask | FieldKind::kFkFixed
  283|  36.9k|      &MpPackedFixed<true>,    // kSplitMask | FieldKind::kFkPackedFixed
  284|  36.9k|      &MpString<true>,         // kSplitMask | FieldKind::kFkString
  285|  36.9k|      &MpMessage<true>,        // kSplitMask | FieldKind::kFkMessage
  286|  36.9k|      &MpMap<true>,            // kSplitMask | FieldKind::kFkMap
  287|  36.9k|  };
  288|       |  // Just to be sure we got the order right, above.
  289|  36.9k|  static_assert(0 == FieldKind::kFkNone, "Invalid table order");
  290|  36.9k|  static_assert(1 == FieldKind::kFkVarint, "Invalid table order");
  291|  36.9k|  static_assert(2 == FieldKind::kFkPackedVarint, "Invalid table order");
  292|  36.9k|  static_assert(3 == FieldKind::kFkFixed, "Invalid table order");
  293|  36.9k|  static_assert(4 == FieldKind::kFkPackedFixed, "Invalid table order");
  294|  36.9k|  static_assert(5 == FieldKind::kFkString, "Invalid table order");
  295|  36.9k|  static_assert(6 == FieldKind::kFkMessage, "Invalid table order");
  296|  36.9k|  static_assert(7 == FieldKind::kFkMap, "Invalid table order");
  297|       |
  298|  36.9k|  static_assert(8 == (+field_layout::kSplitMask | FieldKind::kFkNone),
  299|  36.9k|    "Invalid table order");
  300|  36.9k|  static_assert(9 == (+field_layout::kSplitMask | FieldKind::kFkVarint),
  301|  36.9k|    "Invalid table order");
  302|  36.9k|  static_assert(10 == (+field_layout::kSplitMask | FieldKind::kFkPackedVarint),
  303|  36.9k|    "Invalid table order");
  304|  36.9k|  static_assert(11 == (+field_layout::kSplitMask | FieldKind::kFkFixed),
  305|  36.9k|    "Invalid table order");
  306|  36.9k|  static_assert(12 == (+field_layout::kSplitMask | FieldKind::kFkPackedFixed),
  307|  36.9k|    "Invalid table order");
  308|  36.9k|  static_assert(13 == (+field_layout::kSplitMask | FieldKind::kFkString),
  309|  36.9k|    "Invalid table order");
  310|  36.9k|  static_assert(14 == (+field_layout::kSplitMask | FieldKind::kFkMessage),
  311|  36.9k|    "Invalid table order");
  312|  36.9k|  static_assert(15 == (+field_layout::kSplitMask | FieldKind::kFkMap),
  313|  36.9k|    "Invalid table order");
  314|       |
  315|  36.9k|  TailCallParseFunc parse_fn = kMiniParseTable[field_type];
  316|  36.9k|  if (export_called_function) *test_out = {parse_fn, tag, entry};
  ------------------
  |  Branch (316:7): [Folded, False: 36.9k]
  ------------------
  317|       |
  318|  36.9k|  PROTOBUF_MUSTTAIL return parse_fn(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|  36.9k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return parse_fn(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  36.9k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  319|  83.9k|}
_ZN6google8protobuf8internal8TcParser8MpVarintILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1845|  28.3k|PROTOBUF_NOINLINE const char* TcParser::MpVarint(PROTOBUF_TC_PARAM_DECL) {
 1846|  28.3k|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 1847|  28.3k|  const uint16_t type_card = entry.type_card;
 1848|  28.3k|  const uint16_t card = type_card & field_layout::kFcMask;
 1849|       |
 1850|       |  // Check for repeated parsing:
 1851|  28.3k|  if (card == field_layout::kFcRepeated) {
  ------------------
  |  Branch (1851:7): [True: 27, False: 28.3k]
  ------------------
 1852|     27|    PROTOBUF_MUSTTAIL return MpRepeatedVarint<is_split>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|     27|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MpRepeatedVarint<is_split>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|     27|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1853|     27|  }
 1854|       |  // Check for wire type mismatch:
 1855|  28.3k|  if ((data.tag() & 7) != WireFormatLite::WIRETYPE_VARINT) {
  ------------------
  |  Branch (1855:7): [True: 5.82k, False: 22.5k]
  ------------------
 1856|  5.82k|    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|  5.82k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  5.82k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1857|  5.82k|  }
 1858|  22.5k|  const uint16_t xform_val = type_card & field_layout::kTvMask;
 1859|  22.5k|  const bool is_zigzag = xform_val == field_layout::kTvZigZag;
 1860|  22.5k|  const bool is_validated_enum = xform_val & field_layout::kTvEnum;
 1861|       |
 1862|       |  // Parse the value:
 1863|  22.5k|  const char* ptr2 = ptr;  // save for unknown enum case
 1864|  22.5k|  uint64_t tmp;
 1865|  22.5k|  ptr = ParseVarint(ptr, &tmp);
 1866|  22.5k|  if (ptr == nullptr) {
  ------------------
  |  Branch (1866:7): [True: 0, False: 22.5k]
  ------------------
 1867|      0|    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1868|      0|  }
 1869|       |
 1870|       |  // Transform and/or validate the value
 1871|  22.5k|  uint16_t rep = type_card & field_layout::kRepMask;
 1872|  22.5k|  if (rep == field_layout::kRep64Bits) {
  ------------------
  |  Branch (1872:7): [True: 11.2k, False: 11.2k]
  ------------------
 1873|  11.2k|    if (is_zigzag) {
  ------------------
  |  Branch (1873:9): [True: 0, False: 11.2k]
  ------------------
 1874|      0|      tmp = WireFormatLite::ZigZagDecode64(tmp);
 1875|      0|    }
 1876|  11.2k|  } else if (rep == field_layout::kRep32Bits) {
  ------------------
  |  Branch (1876:14): [True: 35, False: 11.2k]
  ------------------
 1877|     35|    if (is_validated_enum) {
  ------------------
  |  Branch (1877:9): [True: 34, False: 1]
  ------------------
 1878|     34|      if (!EnumIsValidAux(tmp, xform_val, *table->field_aux(&entry))) {
  ------------------
  |  Branch (1878:11): [True: 0, False: 34]
  ------------------
 1879|      0|        ptr = ptr2;
 1880|      0|        PROTOBUF_MUSTTAIL return MpUnknownEnumFallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return MpUnknownEnumFallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1881|      0|      }
 1882|     34|    } else if (is_zigzag) {
  ------------------
  |  Branch (1882:16): [True: 0, False: 1]
  ------------------
 1883|      0|      tmp = WireFormatLite::ZigZagDecode32(static_cast<uint32_t>(tmp));
 1884|      0|    }
 1885|     35|  }
 1886|       |
 1887|       |  // Mark the field as present:
 1888|  22.5k|  const bool is_oneof = card == field_layout::kFcOneof;
 1889|  22.5k|  if (card == field_layout::kFcOptional) {
  ------------------
  |  Branch (1889:7): [True: 34, False: 22.4k]
  ------------------
 1890|     34|    SetHas(entry, msg);
 1891|  22.4k|  } else if (is_oneof) {
  ------------------
  |  Branch (1891:14): [True: 21.8k, False: 582]
  ------------------
 1892|  21.8k|    ChangeOneof(table, entry, data.tag() >> 3, ctx, msg);
 1893|  21.8k|  }
 1894|       |
 1895|  22.5k|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 1896|  22.5k|  if (rep == field_layout::kRep64Bits) {
  ------------------
  |  Branch (1896:7): [True: 11.2k, False: 11.2k]
  ------------------
 1897|  11.2k|    RefAt<uint64_t>(base, entry.offset) = tmp;
 1898|  11.2k|  } else if (rep == field_layout::kRep32Bits) {
  ------------------
  |  Branch (1898:14): [True: 35, False: 11.2k]
  ------------------
 1899|     35|    RefAt<uint32_t>(base, entry.offset) = static_cast<uint32_t>(tmp);
 1900|  11.2k|  } else {
 1901|  11.2k|    ABSL_DCHECK_EQ(rep, static_cast<uint16_t>(field_layout::kRep8Bits));
  ------------------
  |  |   74|  11.2k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  11.2k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  11.2k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 11.2k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  11.2k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1902|  11.2k|    RefAt<bool>(base, entry.offset) = static_cast<bool>(tmp);
 1903|  11.2k|  }
 1904|       |
 1905|  22.5k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  22.5k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  22.5k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1906|  22.5k|}
_ZN6google8protobuf8internal8TcParser16MpRepeatedVarintILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1958|     27|    PROTOBUF_TC_PARAM_DECL) {
 1959|     27|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 1960|     27|  const auto type_card = entry.type_card;
 1961|     27|  const uint32_t decoded_tag = data.tag();
 1962|     27|  const auto decoded_wiretype = decoded_tag & 7;
 1963|       |
 1964|       |  // Check for packed repeated fallback:
 1965|     27|  if (decoded_wiretype == WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (1965:7): [True: 0, False: 27]
  ------------------
 1966|      0|    PROTOBUF_MUSTTAIL return MpPackedVarint<is_split>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MpPackedVarint<is_split>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1967|      0|  }
 1968|       |  // Check for wire type mismatch:
 1969|     27|  if (decoded_wiretype != WireFormatLite::WIRETYPE_VARINT) {
  ------------------
  |  Branch (1969:7): [True: 0, False: 27]
  ------------------
 1970|      0|    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1971|      0|  }
 1972|       |  // For split we avoid the duplicate code and have the impl reload the value.
 1973|       |  // Less code bloat for uncommon paths.
 1974|     27|  const uint16_t xform_val = (type_card & field_layout::kTvMask);
 1975|     27|  const uint16_t rep = type_card & field_layout::kRepMask;
 1976|     27|  switch (rep >> field_layout::kRepShift) {
 1977|      0|    case field_layout::kRep64Bits >> field_layout::kRepShift:
  ------------------
  |  Branch (1977:5): [True: 0, False: 27]
  ------------------
 1978|      0|      if (xform_val == 0) {
  ------------------
  |  Branch (1978:11): [True: 0, False: 0]
  ------------------
 1979|      0|        PROTOBUF_MUSTTAIL return MpRepeatedVarintT<is_split, uint64_t, 0>(
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1980|      0|            PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1981|      0|      } else {
 1982|      0|        ABSL_DCHECK_EQ(xform_val, +field_layout::kTvZigZag);
  ------------------
  |  |   74|      0|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|      0|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 0]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      0|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1983|      0|        PROTOBUF_MUSTTAIL return MpRepeatedVarintT<
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1984|      0|            is_split, uint64_t, (is_split ? 0 : field_layout::kTvZigZag)>(
 1985|      0|            PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1986|      0|      }
 1987|     27|    case field_layout::kRep32Bits >> field_layout::kRepShift:
  ------------------
  |  Branch (1987:5): [True: 27, False: 0]
  ------------------
 1988|     27|      switch (xform_val >> field_layout::kTvShift) {
 1989|      0|        case 0:
  ------------------
  |  Branch (1989:9): [True: 0, False: 27]
  ------------------
 1990|      0|          PROTOBUF_MUSTTAIL return MpRepeatedVarintT<is_split, uint32_t, 0>(
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1991|      0|              PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1992|      0|        case field_layout::kTvZigZag >> field_layout::kTvShift:
  ------------------
  |  Branch (1992:9): [True: 0, False: 27]
  ------------------
 1993|      0|          PROTOBUF_MUSTTAIL return MpRepeatedVarintT<
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1994|      0|              is_split, uint32_t, (is_split ? 0 : field_layout::kTvZigZag)>(
 1995|      0|              PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1996|      0|        case field_layout::kTvEnum >> field_layout::kTvShift:
  ------------------
  |  Branch (1996:9): [True: 0, False: 27]
  ------------------
 1997|      0|          PROTOBUF_MUSTTAIL return MpRepeatedVarintT<
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1998|      0|              is_split, uint32_t, (is_split ? 0 : field_layout::kTvEnum)>(
 1999|      0|              PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2000|     27|        case field_layout::kTvRange >> field_layout::kTvShift:
  ------------------
  |  Branch (2000:9): [True: 27, False: 0]
  ------------------
 2001|     27|          PROTOBUF_MUSTTAIL return MpRepeatedVarintT<
  ------------------
  |  |  236|     27|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 2002|     27|              is_split, uint32_t, (is_split ? 0 : field_layout::kTvRange)>(
 2003|     27|              PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|     27|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2004|      0|        default:
  ------------------
  |  Branch (2004:9): [True: 0, False: 27]
  ------------------
 2005|      0|          Unreachable();
 2006|     27|      }
 2007|      0|    case field_layout::kRep8Bits >> field_layout::kRepShift:
  ------------------
  |  Branch (2007:5): [True: 0, False: 27]
  ------------------
 2008|      0|      PROTOBUF_MUSTTAIL return MpRepeatedVarintT<is_split, bool, 0>(
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 2009|      0|          PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2010|       |
 2011|      0|    default:
  ------------------
  |  Branch (2011:5): [True: 0, False: 27]
  ------------------
 2012|      0|      Unreachable();
 2013|      0|      return nullptr;  // To silence -Werror=return-type in some toolchains
 2014|     27|  }
 2015|     27|}
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal12_GLOBAL__N_116PrefetchEnumDataEtNS1_16TcParseTableBase8FieldAuxE:
  725|    120|    uint16_t xform_val, TcParseTableBase::FieldAux aux) {
  726|    120|}
_ZN6google8protobuf8internal8TcParser17MpRepeatedVarintTILb0EjLt1536EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1909|     27|const char* TcParser::MpRepeatedVarintT(PROTOBUF_TC_PARAM_DECL) {
 1910|     27|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 1911|     27|  const uint32_t decoded_tag = data.tag();
 1912|       |  // For is_split we ignore the incoming xform_val and read it from entry to
 1913|       |  // reduce duplication for the uncommon paths.
 1914|     27|  const uint16_t xform_val =
 1915|     27|      is_split ? (entry.type_card & field_layout::kTvMask) : xform_val_in;
  ------------------
  |  Branch (1915:7): [Folded, False: 27]
  ------------------
 1916|     27|  const bool is_zigzag = xform_val == field_layout::kTvZigZag;
 1917|     27|  const bool is_validated_enum = xform_val & field_layout::kTvEnum;
 1918|       |
 1919|     27|  const char* ptr2 = ptr;
 1920|     27|  uint32_t next_tag;
 1921|     27|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 1922|     27|  auto& field = MaybeCreateRepeatedFieldRefAt<FieldType, is_split>(
 1923|     27|      base, entry.offset, msg);
 1924|       |
 1925|     27|  TcParseTableBase::FieldAux aux;
 1926|     27|  if (is_validated_enum) {
  ------------------
  |  Branch (1926:7): [True: 27, Folded]
  ------------------
 1927|     27|    aux = *table->field_aux(&entry);
 1928|     27|    PrefetchEnumData(xform_val, aux);
 1929|     27|  }
 1930|       |
 1931|     57|  do {
 1932|     57|    uint64_t tmp;
 1933|     57|    ptr = ParseVarint(ptr2, &tmp);
 1934|     57|    if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) goto error;
  ------------------
  |  |  365|     57|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 57]
  |  |  |  Branch (365:54): [Folded, False: 57]
  |  |  |  Branch (365:63): [True: 0, False: 57]
  |  |  ------------------
  ------------------
 1935|     57|    if (is_validated_enum) {
  ------------------
  |  Branch (1935:9): [True: 57, Folded]
  ------------------
 1936|     57|      if (!EnumIsValidAux(static_cast<int32_t>(tmp), xform_val, aux)) {
  ------------------
  |  Branch (1936:11): [True: 0, False: 57]
  ------------------
 1937|      0|        ptr = ptr2;
 1938|      0|        PROTOBUF_MUSTTAIL return MpUnknownEnumFallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return MpUnknownEnumFallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1939|      0|      }
 1940|     57|    } else if (is_zigzag) {
  ------------------
  |  Branch (1940:16): [Folded, False: 0]
  ------------------
 1941|      0|      tmp = sizeof(FieldType) == 8 ? WireFormatLite::ZigZagDecode64(tmp)
  ------------------
  |  Branch (1941:13): [Folded, False: 0]
  ------------------
 1942|      0|                                   : WireFormatLite::ZigZagDecode32(tmp);
 1943|      0|    }
 1944|     57|    field.Add(static_cast<FieldType>(tmp));
 1945|     57|    if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|     57|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 57]
  |  |  |  Branch (365:54): [Folded, False: 57]
  |  |  |  Branch (365:63): [True: 0, False: 57]
  |  |  ------------------
  ------------------
 1946|     57|    ptr2 = ReadTag(ptr, &next_tag);
 1947|     57|    if (PROTOBUF_PREDICT_FALSE(ptr2 == nullptr)) goto error;
  ------------------
  |  |  365|     57|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 57]
  |  |  |  Branch (365:54): [Folded, False: 57]
  |  |  |  Branch (365:63): [True: 0, False: 57]
  |  |  ------------------
  ------------------
 1948|     57|  } while (next_tag == decoded_tag);
  ------------------
  |  Branch (1948:12): [True: 30, False: 27]
  ------------------
 1949|       |
 1950|     27|parse_loop:
 1951|     27|  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     27|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     27|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1952|      0|error:
 1953|      0|  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1954|     27|}
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal12_GLOBAL__N_114EnumIsValidAuxEitNS1_16TcParseTableBase8FieldAuxE:
  737|    184|    int32_t val, uint16_t xform_val, TcParseTableBase::FieldAux aux) {
  738|    184|  if (xform_val == field_layout::kTvRange) {
  ------------------
  |  Branch (738:7): [True: 90, False: 94]
  ------------------
  739|     90|    auto lo = aux.enum_range.start;
  740|     90|    return lo <= val && val < (lo + aux.enum_range.length);
  ------------------
  |  Branch (740:12): [True: 90, False: 0]
  |  Branch (740:25): [True: 90, False: 0]
  ------------------
  741|     90|  }
  742|     94|  if (PROTOBUF_BUILTIN_CONSTANT_P(xform_val)) {
  ------------------
  |  |  636|     94|#define PROTOBUF_BUILTIN_CONSTANT_P(x) __builtin_constant_p(x)
  |  |  ------------------
  |  |  |  Branch (636:40): [True: 93, False: 1]
  |  |  ------------------
  ------------------
  743|     93|    return internal::ValidateEnumInlined(val, aux.enum_data);
  744|     93|  } else {
  745|      1|    return internal::ValidateEnum(val, aux.enum_data);
  746|      1|  }
  747|     94|}
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal12_GLOBAL__N_16SetHasERKNS1_16TcParseTableBase10FieldEntryEPNS0_11MessageLiteE:
 1607|     75|inline void SetHas(const FieldEntry& entry, MessageLite* msg) {
 1608|     75|  auto has_idx = static_cast<uint32_t>(entry.has_idx);
 1609|     75|#if defined(__x86_64__) && defined(__GNUC__)
 1610|     75|  asm("bts %1, %0\n" : "+m"(*reinterpret_cast<char*>(msg)) : "r"(has_idx));
 1611|       |#else
 1612|       |  auto& hasblock = TcParser::RefAt<uint32_t>(msg, has_idx / 32 * 4);
 1613|       |  hasblock |= uint32_t{1} << (has_idx % 32);
 1614|       |#endif
 1615|     75|}
_ZN6google8protobuf8internal8TcParser8MpStringILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 2146|  7.55k|PROTOBUF_NOINLINE const char* TcParser::MpString(PROTOBUF_TC_PARAM_DECL) {
 2147|  7.55k|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 2148|  7.55k|  const uint16_t type_card = entry.type_card;
 2149|  7.55k|  const uint16_t card = type_card & field_layout::kFcMask;
 2150|  7.55k|  const uint32_t decoded_wiretype = data.tag() & 7;
 2151|       |
 2152|  7.55k|  if (decoded_wiretype != WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (2152:7): [True: 2.08k, False: 5.47k]
  ------------------
 2153|  2.08k|    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|  2.08k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  2.08k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2154|  2.08k|  }
 2155|  5.47k|  if (card == field_layout::kFcRepeated) {
  ------------------
  |  Branch (2155:7): [True: 485, False: 4.98k]
  ------------------
 2156|    485|    PROTOBUF_MUSTTAIL return MpRepeatedString<is_split>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|    485|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MpRepeatedString<is_split>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|    485|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2157|    485|  }
 2158|  4.98k|  const uint16_t xform_val = type_card & field_layout::kTvMask;
 2159|  4.98k|  const uint16_t rep = type_card & field_layout::kRepMask;
 2160|       |
 2161|       |  // Mark the field as present:
 2162|  4.98k|  const bool is_oneof = card == field_layout::kFcOneof;
 2163|  4.98k|  bool need_init = false;
 2164|  4.98k|  if (card == field_layout::kFcOptional) {
  ------------------
  |  Branch (2164:7): [True: 7, False: 4.97k]
  ------------------
 2165|      7|    SetHas(entry, msg);
 2166|  4.97k|  } else if (is_oneof) {
  ------------------
  |  Branch (2166:14): [True: 4.97k, False: 0]
  ------------------
 2167|  4.97k|    need_init = ChangeOneof(table, entry, data.tag() >> 3, ctx, msg);
 2168|  4.97k|  }
 2169|       |
 2170|  4.98k|  bool is_valid = false;
 2171|  4.98k|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 2172|  4.98k|  switch (rep) {
 2173|  4.98k|    case field_layout::kRepAString: {
  ------------------
  |  Branch (2173:5): [True: 4.98k, False: 0]
  ------------------
 2174|  4.98k|      auto& field = RefAt<ArenaStringPtr>(base, entry.offset);
 2175|  4.98k|      if (need_init) field.InitDefault();
  ------------------
  |  Branch (2175:11): [True: 4.97k, False: 9]
  ------------------
 2176|  4.98k|      Arena* arena = msg->GetArena();
 2177|  4.98k|      if (arena) {
  ------------------
  |  Branch (2177:11): [True: 2, False: 4.98k]
  ------------------
 2178|      2|        ptr = ctx->ReadArenaString(ptr, &field, arena);
 2179|  4.98k|      } else {
 2180|  4.98k|        std::string* str = field.MutableNoCopy(nullptr);
 2181|  4.98k|        ptr = InlineGreedyStringParser(str, ptr, ctx);
 2182|  4.98k|      }
 2183|  4.98k|      if (!ptr) break;
  ------------------
  |  Branch (2183:11): [True: 2, False: 4.98k]
  ------------------
 2184|  4.98k|      is_valid = MpVerifyUtf8(field.Get(), table, entry, xform_val);
 2185|  4.98k|      break;
 2186|  4.98k|    }
 2187|       |
 2188|       |
 2189|      0|    case field_layout::kRepCord: {
  ------------------
  |  Branch (2189:5): [True: 0, False: 4.98k]
  ------------------
 2190|      0|      absl::Cord* field;
 2191|      0|      if (is_oneof) {
  ------------------
  |  Branch (2191:11): [True: 0, False: 0]
  ------------------
 2192|      0|        if (need_init) {
  ------------------
  |  Branch (2192:13): [True: 0, False: 0]
  ------------------
 2193|      0|          field = Arena::Create<absl::Cord>(msg->GetArena());
 2194|      0|          RefAt<absl::Cord*>(msg, entry.offset) = field;
 2195|      0|        } else {
 2196|      0|          field = RefAt<absl::Cord*>(msg, entry.offset);
 2197|      0|        }
 2198|      0|      } else {
 2199|      0|        field = &RefAt<absl::Cord>(base, entry.offset);
 2200|      0|      }
 2201|      0|      ptr = InlineCordParser(field, ptr, ctx);
 2202|      0|      if (!ptr) break;
  ------------------
  |  Branch (2202:11): [True: 0, False: 0]
  ------------------
 2203|      0|      is_valid = MpVerifyUtf8(*field, table, entry, xform_val);
 2204|      0|      break;
 2205|      0|    }
 2206|       |
 2207|      0|    default:
  ------------------
  |  Branch (2207:5): [True: 0, False: 4.98k]
  ------------------
 2208|      0|      Unreachable();
 2209|  4.98k|  }
 2210|       |
 2211|  4.98k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr || !is_valid)) {
  ------------------
  |  |  365|  9.97k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 4.98k]
  |  |  |  Branch (365:54): [Folded, False: 4.98k]
  |  |  |  Branch (365:64): [True: 2, False: 4.98k]
  |  |  |  Branch (365:64): [True: 0, False: 4.98k]
  |  |  ------------------
  ------------------
 2212|      2|    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      2|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      2|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2213|      2|  }
 2214|  4.98k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  4.98k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  4.98k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2215|  4.98k|}
_ZN6google8protobuf8internal8TcParser16MpRepeatedStringILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 2232|    485|    PROTOBUF_TC_PARAM_DECL) {
 2233|    485|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 2234|    485|  const uint16_t type_card = entry.type_card;
 2235|    485|  const uint32_t decoded_tag = data.tag();
 2236|    485|  const uint32_t decoded_wiretype = decoded_tag & 7;
 2237|       |
 2238|    485|  if (decoded_wiretype != WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (2238:7): [True: 0, False: 485]
  ------------------
 2239|      0|    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2240|      0|  }
 2241|       |
 2242|    485|  const uint16_t rep = type_card & field_layout::kRepMask;
 2243|    485|  const uint16_t xform_val = type_card & field_layout::kTvMask;
 2244|    485|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 2245|    485|  switch (rep) {
  ------------------
  |  Branch (2245:11): [True: 485, False: 0]
  ------------------
 2246|    485|    case field_layout::kRepSString: {
  ------------------
  |  Branch (2246:5): [True: 485, False: 0]
  ------------------
 2247|    485|      auto& field = MaybeCreateRepeatedPtrFieldRefAt<std::string, is_split>(
 2248|    485|          base, entry.offset, msg);
 2249|    485|      const char* ptr2 = ptr;
 2250|    485|      uint32_t next_tag;
 2251|       |
 2252|    485|      auto* arena = field.GetArena();
 2253|    485|      SerialArena* serial_arena;
 2254|    485|      if (PROTOBUF_PREDICT_TRUE(
  ------------------
  |  |  364|    970|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 485]
  |  |  |  Branch (364:53): [Folded, False: 485]
  |  |  |  Branch (364:63): [True: 0, False: 485]
  |  |  |  Branch (364:63): [True: 0, False: 0]
  |  |  |  Branch (364:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2255|    485|              arena != nullptr &&
 2256|    485|              arena->impl_.GetSerialArenaFast(&serial_arena) &&
 2257|    485|              field.PrepareForParse())) {
 2258|      0|        do {
 2259|      0|          ptr = ptr2;
 2260|      0|          ptr = ParseRepeatedStringOnce(ptr, serial_arena, ctx, field);
 2261|      0|          if (PROTOBUF_PREDICT_FALSE(ptr == nullptr ||
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:64): [True: 0, False: 0]
  |  |  |  Branch (365:64): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2262|      0|                                     !MpVerifyUtf8(field[field.size() - 1],
 2263|      0|                                                   table, entry, xform_val))) {
 2264|      0|            PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                          PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2265|      0|          }
 2266|      0|          if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2267|      0|          ptr2 = ReadTag(ptr, &next_tag);
 2268|      0|        } while (next_tag == decoded_tag);
  ------------------
  |  Branch (2268:18): [True: 0, False: 0]
  ------------------
 2269|    485|      } else {
 2270|  1.35k|        do {
 2271|  1.35k|          ptr = ptr2;
 2272|  1.35k|          std::string* str = field.Add();
 2273|  1.35k|          ptr = InlineGreedyStringParser(str, ptr, ctx);
 2274|  1.35k|          if (PROTOBUF_PREDICT_FALSE(
  ------------------
  |  |  365|  2.71k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1, False: 1.35k]
  |  |  |  Branch (365:54): [Folded, False: 1.35k]
  |  |  |  Branch (365:64): [True: 1, False: 1.35k]
  |  |  |  Branch (365:64): [True: 0, False: 1.35k]
  |  |  ------------------
  ------------------
 2275|  1.35k|                  ptr == nullptr ||
 2276|  1.35k|                  !MpVerifyUtf8(*str, table, entry, xform_val))) {
 2277|      1|            PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      1|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                          PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      1|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2278|      1|          }
 2279|  1.35k|          if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|  1.35k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 12, False: 1.34k]
  |  |  |  Branch (365:54): [Folded, False: 1.35k]
  |  |  |  Branch (365:63): [True: 12, False: 1.34k]
  |  |  ------------------
  ------------------
 2280|  1.34k|          ptr2 = ReadTag(ptr, &next_tag);
 2281|  1.34k|        } while (next_tag == decoded_tag);
  ------------------
  |  Branch (2281:18): [True: 873, False: 472]
  ------------------
 2282|    485|      }
 2283|       |
 2284|    472|      break;
 2285|    485|    }
 2286|       |
 2287|       |#ifndef NDEBUG
 2288|       |    default:
 2289|       |      ABSL_LOG(FATAL) << "Unsupported repeated string rep: " << rep;
 2290|       |      break;
 2291|       |#endif
 2292|    485|  }
 2293|       |
 2294|    472|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|    472|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|    472|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2295|     12|parse_loop:
 2296|     12|  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     12|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     12|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2297|    485|}
_ZN6google8protobuf8internal8TcParser23ParseRepeatedStringOnceEPKcPNS1_11SerialArenaEPNS1_12ParseContextERNS0_16RepeatedPtrFieldINSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEEE:
 2219|      3|    RepeatedPtrField<std::string>& field) {
 2220|      3|  int size = ReadSize(&ptr);
 2221|      3|  if (PROTOBUF_PREDICT_FALSE(!ptr)) return {};
  ------------------
  |  |  365|      3|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:63): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 2222|      3|  auto* str = new (serial_arena->AllocateFromStringBlock()) std::string();
 2223|      3|  field.AddAllocatedForParse(str);
 2224|      3|  ptr = ctx->ReadString(ptr, size, str);
 2225|      3|  if (PROTOBUF_PREDICT_FALSE(!ptr)) return {};
  ------------------
  |  |  365|      3|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:63): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 2226|      3|  PROTOBUF_ASSUME(ptr != nullptr);
  ------------------
  |  |  941|      3|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
 2227|      3|  return ptr;
 2228|      3|}
_ZN6google8protobuf8internal8TcParser9MpMessageILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 2314|  1.00k|PROTOBUF_NOINLINE const char* TcParser::MpMessage(PROTOBUF_TC_PARAM_DECL) {
 2315|  1.00k|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 2316|  1.00k|  const uint16_t type_card = entry.type_card;
 2317|  1.00k|  const uint16_t card = type_card & field_layout::kFcMask;
 2318|       |
 2319|       |  // Check for repeated parsing:
 2320|  1.00k|  if (card == field_layout::kFcRepeated) {
  ------------------
  |  Branch (2320:7): [True: 444, False: 565]
  ------------------
 2321|    444|    const uint16_t rep = type_card & field_layout::kRepMask;
 2322|    444|    switch (rep) {
 2323|    444|      case field_layout::kRepMessage:
  ------------------
  |  Branch (2323:7): [True: 444, False: 0]
  ------------------
 2324|    444|        PROTOBUF_MUSTTAIL return MpRepeatedMessageOrGroup<is_split, false>(
  ------------------
  |  |  236|    444|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 2325|    444|            PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|    444|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2326|      0|      case field_layout::kRepGroup:
  ------------------
  |  Branch (2326:7): [True: 0, False: 444]
  ------------------
 2327|      0|        PROTOBUF_MUSTTAIL return MpRepeatedMessageOrGroup<is_split, true>(
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 2328|      0|            PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2329|      0|      default:
  ------------------
  |  Branch (2329:7): [True: 0, False: 444]
  ------------------
 2330|      0|        PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2331|    444|    }
 2332|    444|  }
 2333|       |
 2334|    565|  const uint32_t decoded_tag = data.tag();
 2335|    565|  const uint32_t decoded_wiretype = decoded_tag & 7;
 2336|    565|  const uint16_t rep = type_card & field_layout::kRepMask;
 2337|    565|  const bool is_group = rep == field_layout::kRepGroup;
 2338|       |
 2339|       |  // Validate wiretype:
 2340|    565|  switch (rep) {
 2341|    565|    case field_layout::kRepMessage:
  ------------------
  |  Branch (2341:5): [True: 565, False: 0]
  ------------------
 2342|    565|      if (decoded_wiretype != WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (2342:11): [True: 531, False: 34]
  ------------------
 2343|    531|        goto fallback;
 2344|    531|      }
 2345|     34|      break;
 2346|     34|    case field_layout::kRepGroup:
  ------------------
  |  Branch (2346:5): [True: 0, False: 565]
  ------------------
 2347|      0|      if (decoded_wiretype != WireFormatLite::WIRETYPE_START_GROUP) {
  ------------------
  |  Branch (2347:11): [True: 0, False: 0]
  ------------------
 2348|      0|        goto fallback;
 2349|      0|      }
 2350|      0|      break;
 2351|      0|    default: {
  ------------------
  |  Branch (2351:5): [True: 0, False: 565]
  ------------------
 2352|    531|    fallback:
 2353|    531|      PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|    531|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|    531|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2354|      0|    }
 2355|    565|  }
 2356|       |
 2357|     34|  const bool is_oneof = card == field_layout::kFcOneof;
 2358|     34|  bool need_init = false;
 2359|     34|  if (card == field_layout::kFcOptional) {
  ------------------
  |  Branch (2359:7): [True: 34, False: 0]
  ------------------
 2360|     34|    SetHas(entry, msg);
 2361|     34|  } else if (is_oneof) {
  ------------------
  |  Branch (2361:14): [True: 0, False: 0]
  ------------------
 2362|      0|    need_init = ChangeOneof(table, entry, data.tag() >> 3, ctx, msg);
 2363|      0|  }
 2364|       |
 2365|     34|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 2366|     34|  SyncHasbits(msg, hasbits, table);
 2367|     34|  MessageLite*& field = RefAt<MessageLite*>(base, entry.offset);
 2368|       |
 2369|     34|  const TcParseTableBase* inner_table =
 2370|     34|      GetTableFromAux(type_card, *table->field_aux(&entry));
 2371|     34|  if (need_init || field == nullptr) {
  ------------------
  |  Branch (2371:7): [True: 0, False: 34]
  |  Branch (2371:20): [True: 33, False: 1]
  ------------------
 2372|     33|    field = NewMessage(inner_table, msg->GetArena());
 2373|     33|  }
 2374|     34|  const auto inner_loop = [&](const char* ptr) {
 2375|     34|    return ParseLoopPreserveNone(field, ptr, ctx, inner_table);
 2376|     34|  };
 2377|     34|  return is_group ? ctx->ParseGroupInlined(ptr, decoded_tag, inner_loop)
  ------------------
  |  Branch (2377:10): [True: 0, False: 34]
  ------------------
 2378|     34|                  : ctx->ParseLengthDelimitedInlined(ptr, inner_loop);
 2379|    565|}
_ZN6google8protobuf8internal8TcParser24MpRepeatedMessageOrGroupILb0ELb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 2382|    444|const char* TcParser::MpRepeatedMessageOrGroup(PROTOBUF_TC_PARAM_DECL) {
 2383|    444|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 2384|    444|  const uint16_t type_card = entry.type_card;
 2385|    444|  ABSL_DCHECK_EQ(type_card & field_layout::kFcMask,
  ------------------
  |  |   74|    444|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    444|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    444|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 444]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    444|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2386|    444|                 static_cast<uint16_t>(field_layout::kFcRepeated));
 2387|    444|  const uint32_t decoded_tag = data.tag();
 2388|    444|  const uint32_t decoded_wiretype = decoded_tag & 7;
 2389|       |
 2390|       |  // Validate wiretype:
 2391|    444|  if (!is_group) {
  ------------------
  |  Branch (2391:7): [True: 444, Folded]
  ------------------
 2392|    444|    ABSL_DCHECK_EQ(type_card & field_layout::kRepMask,
  ------------------
  |  |   74|    444|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    444|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    444|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 444]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    444|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2393|    444|                   static_cast<uint16_t>(field_layout::kRepMessage));
 2394|    444|    if (decoded_wiretype != WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (2394:9): [True: 382, False: 62]
  ------------------
 2395|    382|      PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|    382|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|    382|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2396|    382|    }
 2397|    444|  } else {
 2398|      0|    ABSL_DCHECK_EQ(type_card & field_layout::kRepMask,
  ------------------
  |  |   74|      0|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|      0|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 0]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      0|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2399|      0|                   static_cast<uint16_t>(field_layout::kRepGroup));
 2400|      0|    if (decoded_wiretype != WireFormatLite::WIRETYPE_START_GROUP) {
  ------------------
  |  Branch (2400:9): [True: 0, False: 0]
  ------------------
 2401|      0|      PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2402|      0|    }
 2403|      0|  }
 2404|       |
 2405|     62|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 2406|     62|  RepeatedPtrFieldBase& field =
 2407|     62|      MaybeCreateRepeatedRefAt<RepeatedPtrFieldBase, is_split>(
 2408|     62|          base, entry.offset, msg);
 2409|     62|  const TcParseTableBase* inner_table =
 2410|     62|      GetTableFromAux(type_card, *table->field_aux(&entry));
 2411|       |
 2412|     62|  const char* ptr2 = ptr;
 2413|     62|  uint32_t next_tag;
 2414|    296|  do {
 2415|    296|    MessageLite* value = AddMessage(inner_table, field);
 2416|    296|    const auto inner_loop = [&](const char* ptr) {
 2417|    296|      return ParseLoopPreserveNone(value, ptr, ctx, inner_table);
 2418|    296|    };
 2419|    296|    ptr = is_group ? ctx->ParseGroupInlined(ptr2, decoded_tag, inner_loop)
  ------------------
  |  Branch (2419:11): [Folded, False: 296]
  ------------------
 2420|    296|                   : ctx->ParseLengthDelimitedInlined(ptr2, inner_loop);
 2421|    296|    if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) goto error;
  ------------------
  |  |  365|    296|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 13, False: 283]
  |  |  |  Branch (365:54): [Folded, False: 296]
  |  |  |  Branch (365:63): [True: 13, False: 283]
  |  |  ------------------
  ------------------
 2422|    283|    if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|    283|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 6, False: 277]
  |  |  |  Branch (365:54): [Folded, False: 283]
  |  |  |  Branch (365:63): [True: 6, False: 277]
  |  |  ------------------
  ------------------
 2423|    277|    ptr2 = ReadTag(ptr, &next_tag);
 2424|    277|    if (PROTOBUF_PREDICT_FALSE(ptr2 == nullptr)) goto error;
  ------------------
  |  |  365|    277|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 277]
  |  |  |  Branch (365:54): [Folded, False: 277]
  |  |  |  Branch (365:63): [True: 0, False: 277]
  |  |  ------------------
  ------------------
 2425|    277|  } while (next_tag == decoded_tag);
  ------------------
  |  Branch (2425:12): [True: 234, False: 43]
  ------------------
 2426|     43|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     43|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     43|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2427|      6|parse_loop:
 2428|      6|  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      6|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      6|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2429|     13|error:
 2430|     13|  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     13|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     13|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2431|     62|}
_ZZN6google8protobuf8internal8TcParser24MpRepeatedMessageOrGroupILb0ELb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
 2416|    295|    const auto inner_loop = [&](const char* ptr) {
 2417|    295|      return ParseLoopPreserveNone(value, ptr, ctx, inner_table);
 2418|    295|    };
_ZN6google8protobuf8internal8TcParser15GetTableFromAuxEtNS1_16TcParseTableBase8FieldAuxE:
 2301|     96|    uint16_t type_card, TcParseTableBase::FieldAux aux) {
 2302|     96|  uint16_t tv = type_card & field_layout::kTvMask;
 2303|     96|  if (ABSL_PREDICT_TRUE(tv == field_layout::kTvTable)) {
  ------------------
  |  |  179|     96|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 96, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 96]
  |  |  |  Branch (179:57): [True: 96, False: 0]
  |  |  ------------------
  ------------------
 2304|     96|    return aux.table;
 2305|     96|  }
 2306|      0|  ABSL_DCHECK(tv == field_layout::kTvDefault || tv == field_layout::kTvWeakPtr);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     96|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2307|      0|  const MessageLite* prototype = tv == field_layout::kTvDefault
  ------------------
  |  Branch (2307:34): [True: 0, False: 0]
  ------------------
 2308|      0|                                     ? aux.message_default()
 2309|      0|                                     : aux.message_default_weak();
 2310|      0|  return prototype->GetTcParseTable();
 2311|      0|}
_ZN6google8protobuf8internal8TcParser10NewMessageEPKNS1_16TcParseTableBaseEPNS0_5ArenaE:
  359|  87.6k|    const TcParseTableBase* table, Arena* arena) {
  360|  87.6k|  return table->class_data->New(arena);
  361|  87.6k|}
_ZZN6google8protobuf8internal8TcParser9MpMessageILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
 2374|     34|  const auto inner_loop = [&](const char* ptr) {
 2375|     34|    return ParseLoopPreserveNone(field, ptr, ctx, inner_table);
 2376|     34|  };
generated_message_tctable_lite.cc:_ZZN6google8protobuf8internal8TcParser10AddMessageEPKNS1_16TcParseTableBaseERNS1_20RepeatedPtrFieldBaseEENK3$_0clEPNS0_5ArenaE:
  366|  78.9k|      [table](Arena* arena) { return NewMessage(table, arena); }));
_ZN6google8protobuf8internal8TcParser27SingularParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  371|  15.1k|    PROTOBUF_TC_PARAM_DECL) {
  372|  15.1k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 192);
  ------------------
  |  |  670|  15.1k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  373|  15.1k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 256);
  ------------------
  |  |  670|  15.1k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  374|  15.1k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  15.1k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 5.98k, False: 9.12k]
  |  |  |  Branch (365:54): [Folded, False: 15.1k]
  |  |  |  Branch (365:63): [True: 5.98k, False: 9.12k]
  |  |  ------------------
  ------------------
  375|  5.98k|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  5.98k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  5.98k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  376|  5.98k|  }
  377|  9.12k|  auto saved_tag = UnalignedLoad<TagType>(ptr);
  378|  9.12k|  ptr += sizeof(TagType);
  379|  9.12k|  hasbits |= (uint64_t{1} << data.hasbit_idx());
  380|  9.12k|  SyncHasbits(msg, hasbits, table);
  381|  9.12k|  auto& field = RefAt<MessageLite*>(msg, data.offset());
  382|  9.12k|  const auto aux = *table->field_aux(data.aux_idx());
  383|  9.12k|  const auto* inner_table =
  384|  9.12k|      aux_is_table ? aux.table : aux.message_default()->GetTcParseTable();
  ------------------
  |  Branch (384:7): [True: 9.12k, Folded]
  ------------------
  385|       |
  386|  9.12k|  if (field == nullptr) {
  ------------------
  |  Branch (386:7): [True: 8.66k, False: 458]
  ------------------
  387|  8.66k|    field = NewMessage(inner_table, msg->GetArena());
  388|  8.66k|  }
  389|  9.12k|  const auto inner_loop = [&](const char* ptr) {
  390|  9.12k|    return ParseLoop(field, ptr, ctx, inner_table);
  391|  9.12k|  };
  392|  9.12k|  return group_coding
  ------------------
  |  Branch (392:10): [Folded, False: 9.12k]
  ------------------
  393|  9.12k|             ? ctx->ParseGroupInlined(ptr, FastDecodeTag(saved_tag), inner_loop)
  394|  9.12k|             : ctx->ParseLengthDelimitedInlined(ptr, inner_loop);
  395|  15.1k|}
_ZZN6google8protobuf8internal8TcParser27SingularParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
  389|  9.12k|  const auto inner_loop = [&](const char* ptr) {
  390|  9.12k|    return ParseLoop(field, ptr, ctx, inner_table);
  391|  9.12k|  };
_ZN6google8protobuf8internal8TcParser27RepeatedParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  453|  32.3k|    PROTOBUF_TC_PARAM_DECL) {
  454|  32.3k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  32.3k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 21.5k, False: 10.8k]
  |  |  |  Branch (365:54): [Folded, False: 32.3k]
  |  |  |  Branch (365:63): [True: 21.5k, False: 10.8k]
  |  |  ------------------
  ------------------
  455|  21.5k|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  21.5k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  21.5k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  456|  21.5k|  }
  457|  10.8k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 256);
  ------------------
  |  |  670|  10.8k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  458|  10.8k|  const auto expected_tag = UnalignedLoad<TagType>(ptr);
  459|  10.8k|  const auto aux = *table->field_aux(data.aux_idx());
  460|  10.8k|  auto& field = RefAt<RepeatedPtrFieldBase>(msg, data.offset());
  461|  10.8k|  const TcParseTableBase* inner_table =
  462|  10.8k|      aux_is_table ? aux.table : aux.message_default()->GetTcParseTable();
  ------------------
  |  Branch (462:7): [True: 10.8k, Folded]
  ------------------
  463|  78.5k|  do {
  464|  78.5k|    ptr += sizeof(TagType);
  465|  78.5k|    MessageLite* submsg = AddMessage(inner_table, field);
  466|  78.5k|    const auto inner_loop = [&](const char* ptr) {
  467|  78.5k|      return ParseLoop(submsg, ptr, ctx, inner_table);
  468|  78.5k|    };
  469|  78.5k|    ptr = group_coding ? ctx->ParseGroupInlined(
  ------------------
  |  Branch (469:11): [Folded, False: 78.5k]
  ------------------
  470|      0|                             ptr, FastDecodeTag(expected_tag), inner_loop)
  471|  78.5k|                       : ctx->ParseLengthDelimitedInlined(ptr, inner_loop);
  472|  78.5k|    if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  78.5k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 22, False: 78.5k]
  |  |  |  Branch (365:54): [Folded, False: 78.5k]
  |  |  |  Branch (365:63): [True: 22, False: 78.5k]
  |  |  ------------------
  ------------------
  473|     22|      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     22|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     22|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  474|     22|    }
  475|  78.5k|    if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) {
  ------------------
  |  |  365|  78.5k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 3.15k, False: 75.3k]
  |  |  |  Branch (365:54): [Folded, False: 78.5k]
  |  |  |  Branch (365:63): [True: 3.15k, False: 75.3k]
  |  |  ------------------
  ------------------
  476|  3.15k|      PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  3.15k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  3.15k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  477|  3.15k|    }
  478|  78.5k|  } while (UnalignedLoad<TagType>(ptr) == expected_tag);
  ------------------
  |  Branch (478:12): [True: 67.7k, False: 7.64k]
  ------------------
  479|       |
  480|  7.64k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  7.64k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  7.64k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  481|  10.8k|}
_ZZN6google8protobuf8internal8TcParser27RepeatedParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
  466|  78.5k|    const auto inner_loop = [&](const char* ptr) {
  467|  78.5k|      return ParseLoop(submsg, ptr, ctx, inner_table);
  468|  78.5k|    };
_ZN6google8protobuf8internal8TcParser27RepeatedParseMessageAuxImplItLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  453|     27|    PROTOBUF_TC_PARAM_DECL) {
  454|     27|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|     27|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 27]
  |  |  |  Branch (365:54): [Folded, False: 27]
  |  |  |  Branch (365:63): [True: 0, False: 27]
  |  |  ------------------
  ------------------
  455|      0|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  456|      0|  }
  457|     27|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 256);
  ------------------
  |  |  670|     27|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  458|     27|  const auto expected_tag = UnalignedLoad<TagType>(ptr);
  459|     27|  const auto aux = *table->field_aux(data.aux_idx());
  460|     27|  auto& field = RefAt<RepeatedPtrFieldBase>(msg, data.offset());
  461|     27|  const TcParseTableBase* inner_table =
  462|     27|      aux_is_table ? aux.table : aux.message_default()->GetTcParseTable();
  ------------------
  |  Branch (462:7): [True: 27, Folded]
  ------------------
  463|     54|  do {
  464|     54|    ptr += sizeof(TagType);
  465|     54|    MessageLite* submsg = AddMessage(inner_table, field);
  466|     54|    const auto inner_loop = [&](const char* ptr) {
  467|     54|      return ParseLoop(submsg, ptr, ctx, inner_table);
  468|     54|    };
  469|     54|    ptr = group_coding ? ctx->ParseGroupInlined(
  ------------------
  |  Branch (469:11): [Folded, False: 54]
  ------------------
  470|      0|                             ptr, FastDecodeTag(expected_tag), inner_loop)
  471|     54|                       : ctx->ParseLengthDelimitedInlined(ptr, inner_loop);
  472|     54|    if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|     54|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 54]
  |  |  |  Branch (365:54): [Folded, False: 54]
  |  |  |  Branch (365:63): [True: 0, False: 54]
  |  |  ------------------
  ------------------
  473|      0|      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  474|      0|    }
  475|     54|    if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) {
  ------------------
  |  |  365|     54|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 54]
  |  |  |  Branch (365:54): [Folded, False: 54]
  |  |  |  Branch (365:63): [True: 0, False: 54]
  |  |  ------------------
  ------------------
  476|      0|      PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  477|      0|    }
  478|     54|  } while (UnalignedLoad<TagType>(ptr) == expected_tag);
  ------------------
  |  Branch (478:12): [True: 27, False: 27]
  ------------------
  479|       |
  480|     27|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     27|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     27|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  481|     27|}
_ZZN6google8protobuf8internal8TcParser27RepeatedParseMessageAuxImplItLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
  466|     54|    const auto inner_loop = [&](const char* ptr) {
  467|     54|      return ParseLoop(submsg, ptr, ctx, inner_table);
  468|     54|    };
_ZN6google8protobuf8internal8TcParser14SingularVarintIbtLb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  753|     10|    PROTOBUF_TC_PARAM_DECL) {
  754|     10|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|     10|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 7, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 10]
  |  |  |  Branch (365:63): [True: 7, False: 3]
  |  |  ------------------
  ------------------
  755|      7|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      7|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      7|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  756|      7|  }
  757|      3|  ptr += sizeof(TagType);  // Consume tag
  758|      3|  hasbits |= (uint64_t{1} << data.hasbit_idx());
  759|       |
  760|       |  // clang isn't smart enough to be able to only conditionally save
  761|       |  // registers to the stack, so we turn the integer-greater-than-128
  762|       |  // case into a separate routine.
  763|      3|  if (PROTOBUF_PREDICT_FALSE(static_cast<int8_t>(*ptr) < 0)) {
  ------------------
  |  |  365|      3|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:63): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  764|      0|    PROTOBUF_MUSTTAIL return SingularVarBigint<FieldType, TagType, zigzag>(
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
  765|      0|        PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  766|      0|  }
  767|       |
  768|      3|  RefAt<FieldType>(msg, data.offset()) =
  769|      3|      ZigZagDecodeHelper<FieldType, zigzag>(static_cast<uint8_t>(*ptr++));
  770|      3|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      3|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      3|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  771|      3|}
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal12_GLOBAL__N_118ZigZagDecodeHelperIbLb0EEET_S4_:
  708|      3|inline FieldType ZigZagDecodeHelper(FieldType value) {
  709|      3|  return static_cast<FieldType>(value);
  710|      3|}
_ZN6google8protobuf8internal8TcParser12FastVarintS1IjEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  814|   131k|    PROTOBUF_TC_PARAM_DECL) {
  815|   131k|  using TagType = uint8_t;
  816|   131k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|   131k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 47.4k, False: 83.8k]
  |  |  |  Branch (365:54): [Folded, False: 131k]
  |  |  |  Branch (365:63): [True: 47.4k, False: 83.8k]
  |  |  ------------------
  ------------------
  817|  47.4k|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  47.4k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  47.4k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  818|  47.4k|  }
  819|  83.8k|  int64_t res;
  820|  83.8k|  ptr = ShiftMixParseVarint<FieldType>(ptr + sizeof(TagType), res);
  821|  83.8k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  83.8k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 83.8k]
  |  |  |  Branch (365:54): [Folded, False: 83.8k]
  |  |  |  Branch (365:63): [True: 0, False: 83.8k]
  |  |  ------------------
  ------------------
  822|      0|    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  823|      0|  }
  824|  83.8k|  hasbits |= (uint64_t{1} << data.hasbit_idx());
  825|  83.8k|  RefAt<FieldType>(msg, data.offset()) = res;
  826|  83.8k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  83.8k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  83.8k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  827|  83.8k|}
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal12_GLOBAL__N_111ParseVarintImEEPKcS5_PT_:
  634|  22.6k|                                                      Type* value) {
  635|  22.6k|  static_assert(sizeof(Type) == 4 || sizeof(Type) == 8,
  636|  22.6k|                "Only [u]int32_t and [u]int64_t please");
  637|       |#ifdef __aarch64__
  638|       |  // The VarintParse parser has a faster implementation on ARM.
  639|       |  absl::conditional_t<sizeof(Type) == 4, uint32_t, uint64_t> tmp;
  640|       |  p = VarintParse(p, &tmp);
  641|       |  if (p != nullptr) {
  642|       |    *value = tmp;
  643|       |  }
  644|       |  return p;
  645|       |#endif
  646|  22.6k|  int64_t res;
  647|  22.6k|  p = ShiftMixParseVarint<Type>(p, res);
  648|  22.6k|  *value = res;
  649|  22.6k|  return p;
  650|  22.6k|}
_ZN6google8protobuf8internal8TcParser12SingularEnumIhLt1024EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1064|     93|    PROTOBUF_TC_PARAM_DECL) {
 1065|     93|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|     93|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 93]
  |  |  |  Branch (365:54): [Folded, False: 93]
  |  |  |  Branch (365:63): [True: 0, False: 93]
  |  |  ------------------
  ------------------
 1066|      0|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1067|      0|  }
 1068|     93|  const TcParseTableBase::FieldAux aux = *table->field_aux(data.aux_idx());
 1069|     93|  PrefetchEnumData(xform_val, aux);
 1070|     93|  const char* ptr2 = ptr;  // Save for unknown enum case
 1071|     93|  ptr += sizeof(TagType);  // Consume tag
 1072|     93|  uint64_t tmp;
 1073|     93|  ptr = ParseVarint(ptr, &tmp);
 1074|     93|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|     93|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 93]
  |  |  |  Branch (365:54): [Folded, False: 93]
  |  |  |  Branch (365:63): [True: 0, False: 93]
  |  |  ------------------
  ------------------
 1075|      0|    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1076|      0|  }
 1077|     93|  if (PROTOBUF_PREDICT_FALSE(
  ------------------
  |  |  365|     93|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 93]
  |  |  |  Branch (365:54): [Folded, False: 93]
  |  |  |  Branch (365:63): [True: 0, False: 93]
  |  |  ------------------
  ------------------
 1078|     93|          !EnumIsValidAux(static_cast<int32_t>(tmp), xform_val, aux))) {
 1079|      0|    ptr = ptr2;
 1080|      0|    PROTOBUF_MUSTTAIL return FastUnknownEnumFallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return FastUnknownEnumFallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|      0|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1081|      0|  }
 1082|     93|  hasbits |= (uint64_t{1} << data.hasbit_idx());
 1083|     93|  RefAt<int32_t>(msg, data.offset()) = tmp;
 1084|     93|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     93|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     93|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1085|     93|}
_ZN6google8protobuf8internal8TcParser22SingularEnumSmallRangeIhLh0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1215|     84|    PROTOBUF_TC_PARAM_DECL) {
 1216|     84|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|     84|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 60, False: 24]
  |  |  |  Branch (365:54): [Folded, False: 84]
  |  |  |  Branch (365:63): [True: 60, False: 24]
  |  |  ------------------
  ------------------
 1217|     60|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     60|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     60|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1218|     60|  }
 1219|       |
 1220|     24|  uint8_t v = ptr[sizeof(TagType)];
 1221|     24|  if (PROTOBUF_PREDICT_FALSE(min > v || v > data.aux_idx())) {
  ------------------
  |  |  365|     48|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 24]
  |  |  |  Branch (365:54): [Folded, False: 24]
  |  |  |  Branch (365:64): [True: 0, False: 24]
  |  |  |  Branch (365:64): [True: 0, False: 24]
  |  |  ------------------
  ------------------
 1222|      0|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1223|      0|  }
 1224|       |
 1225|     24|  RefAt<int32_t>(msg, data.offset()) = v;
 1226|     24|  ptr += sizeof(TagType) + 1;
 1227|     24|  hasbits |= (uint64_t{1} << data.hasbit_idx());
 1228|     24|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     24|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     24|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1229|     24|}
_ZN6google8protobuf8internal8TcParser22SingularEnumSmallRangeIhLh1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1215|    873|    PROTOBUF_TC_PARAM_DECL) {
 1216|    873|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|    873|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 873]
  |  |  |  Branch (365:54): [Folded, False: 873]
  |  |  |  Branch (365:63): [True: 0, False: 873]
  |  |  ------------------
  ------------------
 1217|      0|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1218|      0|  }
 1219|       |
 1220|    873|  uint8_t v = ptr[sizeof(TagType)];
 1221|    873|  if (PROTOBUF_PREDICT_FALSE(min > v || v > data.aux_idx())) {
  ------------------
  |  |  365|  1.74k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 873]
  |  |  |  Branch (365:54): [Folded, False: 873]
  |  |  |  Branch (365:64): [True: 0, False: 873]
  |  |  |  Branch (365:64): [True: 0, False: 873]
  |  |  ------------------
  ------------------
 1222|      0|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1223|      0|  }
 1224|       |
 1225|    873|  RefAt<int32_t>(msg, data.offset()) = v;
 1226|    873|  ptr += sizeof(TagType) + 1;
 1227|    873|  hasbits |= (uint64_t{1} << data.hasbit_idx());
 1228|    873|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|    873|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|    873|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1229|    873|}
_ZN6google8protobuf8internal8TcParser14SingularStringIhNS1_14ArenaStringPtrELNS2_8Utf8TypeE0EEEPKcPNS0_11MessageLiteES7_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1410|  21.7k|    PROTOBUF_TC_PARAM_DECL) {
 1411|  21.7k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  21.7k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 6.02k, False: 15.7k]
  |  |  |  Branch (365:54): [Folded, False: 21.7k]
  |  |  |  Branch (365:63): [True: 6.02k, False: 15.7k]
  |  |  ------------------
  ------------------
 1412|  6.02k|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  6.02k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  6.02k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1413|  6.02k|  }
 1414|  15.7k|  auto saved_tag = UnalignedLoad<TagType>(ptr);
 1415|  15.7k|  ptr += sizeof(TagType);
 1416|  15.7k|  hasbits |= (uint64_t{1} << data.hasbit_idx());
 1417|  15.7k|  auto& field = RefAt<FieldType>(msg, data.offset());
 1418|  15.7k|  auto arena = msg->GetArena();
 1419|  15.7k|  if (arena) {
  ------------------
  |  Branch (1419:7): [True: 0, False: 15.7k]
  ------------------
 1420|      0|    ptr =
 1421|      0|        ReadStringIntoArena(msg, ptr, ctx, data.aux_idx(), table, field, arena);
 1422|  15.7k|  } else {
 1423|  15.7k|    ptr = ReadStringNoArena(msg, ptr, ctx, data.aux_idx(), table, field);
 1424|  15.7k|  }
 1425|  15.7k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  15.7k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 15.7k]
  |  |  |  Branch (365:54): [Folded, False: 15.7k]
  |  |  |  Branch (365:63): [True: 0, False: 15.7k]
  |  |  ------------------
  ------------------
 1426|      0|    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1427|      0|  }
 1428|  15.7k|  switch (utf8) {
 1429|  15.7k|    case kNoUtf8:
  ------------------
  |  Branch (1429:5): [True: 15.7k, False: 0]
  ------------------
 1430|  15.7k|#ifdef NDEBUG
 1431|  15.7k|    case kUtf8ValidateOnly:
  ------------------
  |  Branch (1431:5): [True: 0, False: 15.7k]
  ------------------
 1432|  15.7k|#endif
 1433|  15.7k|      break;
 1434|      0|    default:
  ------------------
  |  Branch (1434:5): [True: 0, False: 15.7k]
  ------------------
 1435|      0|      if (PROTOBUF_PREDICT_TRUE(IsValidUTF8(field))) {
  ------------------
  |  |  364|      0|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 0]
  |  |  |  Branch (364:62): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1436|      0|        break;
 1437|      0|      }
 1438|      0|      ReportFastUtf8Error(FastDecodeTag(saved_tag), table);
 1439|      0|      if (utf8 == kUtf8) {
  ------------------
  |  Branch (1439:11): [Folded, False: 0]
  ------------------
 1440|      0|        PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1441|      0|      }
 1442|      0|      break;
 1443|  15.7k|  }
 1444|       |
 1445|  15.7k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  15.7k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  15.7k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1446|  15.7k|}
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal12_GLOBAL__N_119ReadStringIntoArenaEPNS0_11MessageLiteEPKcPNS1_12ParseContextEjPKNS1_16TcParseTableBaseERNS1_14ArenaStringPtrEPNS0_5ArenaE:
 1387|    527|    ArenaStringPtr& field, Arena* arena) {
 1388|    527|  return ctx->ReadArenaString(ptr, &field, arena);
 1389|    527|}
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal12_GLOBAL__N_117ReadStringNoArenaEPNS0_11MessageLiteEPKcPNS1_12ParseContextEjPKNS1_16TcParseTableBaseERNS1_14ArenaStringPtrE:
 1395|  16.3k|                              ArenaStringPtr& field) {
 1396|  16.3k|  int size = ReadSize(&ptr);
 1397|  16.3k|  if (!ptr) return nullptr;
  ------------------
  |  Branch (1397:7): [True: 0, False: 16.3k]
  ------------------
 1398|  16.3k|  return ctx->ReadString(ptr, size, field.MutableNoCopy(nullptr));
 1399|  16.3k|}
_ZN6google8protobuf8internal8TcParser14SingularStringIhNS1_14ArenaStringPtrELNS2_8Utf8TypeE2EEEPKcPNS0_11MessageLiteES7_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1410|  1.15k|    PROTOBUF_TC_PARAM_DECL) {
 1411|  1.15k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  1.15k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 1.15k]
  |  |  |  Branch (365:54): [Folded, False: 1.15k]
  |  |  |  Branch (365:63): [True: 0, False: 1.15k]
  |  |  ------------------
  ------------------
 1412|      0|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1413|      0|  }
 1414|  1.15k|  auto saved_tag = UnalignedLoad<TagType>(ptr);
 1415|  1.15k|  ptr += sizeof(TagType);
 1416|  1.15k|  hasbits |= (uint64_t{1} << data.hasbit_idx());
 1417|  1.15k|  auto& field = RefAt<FieldType>(msg, data.offset());
 1418|  1.15k|  auto arena = msg->GetArena();
 1419|  1.15k|  if (arena) {
  ------------------
  |  Branch (1419:7): [True: 525, False: 630]
  ------------------
 1420|    525|    ptr =
 1421|    525|        ReadStringIntoArena(msg, ptr, ctx, data.aux_idx(), table, field, arena);
 1422|    630|  } else {
 1423|    630|    ptr = ReadStringNoArena(msg, ptr, ctx, data.aux_idx(), table, field);
 1424|    630|  }
 1425|  1.15k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  1.15k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 1.15k]
  |  |  |  Branch (365:54): [Folded, False: 1.15k]
  |  |  |  Branch (365:63): [True: 0, False: 1.15k]
  |  |  ------------------
  ------------------
 1426|      0|    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1427|      0|  }
 1428|  1.15k|  switch (utf8) {
 1429|      0|    case kNoUtf8:
  ------------------
  |  Branch (1429:5): [True: 0, False: 1.15k]
  ------------------
 1430|      0|#ifdef NDEBUG
 1431|  1.15k|    case kUtf8ValidateOnly:
  ------------------
  |  Branch (1431:5): [True: 1.15k, False: 0]
  ------------------
 1432|  1.15k|#endif
 1433|  1.15k|      break;
 1434|      0|    default:
  ------------------
  |  Branch (1434:5): [True: 0, False: 1.15k]
  ------------------
 1435|      0|      if (PROTOBUF_PREDICT_TRUE(IsValidUTF8(field))) {
  ------------------
  |  |  364|      0|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 0]
  |  |  |  Branch (364:62): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1436|      0|        break;
 1437|      0|      }
 1438|      0|      ReportFastUtf8Error(FastDecodeTag(saved_tag), table);
 1439|      0|      if (utf8 == kUtf8) {
  ------------------
  |  Branch (1439:11): [Folded, False: 0]
  ------------------
 1440|      0|        PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1441|      0|      }
 1442|      0|      break;
 1443|  1.15k|  }
 1444|       |
 1445|  1.15k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  1.15k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  1.15k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1446|  1.15k|}
_ZN6google8protobuf8internal8TcParser14SingularStringItNS1_14ArenaStringPtrELNS2_8Utf8TypeE2EEEPKcPNS0_11MessageLiteES7_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1410|      7|    PROTOBUF_TC_PARAM_DECL) {
 1411|      7|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|      7|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 7]
  |  |  |  Branch (365:54): [Folded, False: 7]
  |  |  |  Branch (365:63): [True: 0, False: 7]
  |  |  ------------------
  ------------------
 1412|      0|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1413|      0|  }
 1414|      7|  auto saved_tag = UnalignedLoad<TagType>(ptr);
 1415|      7|  ptr += sizeof(TagType);
 1416|      7|  hasbits |= (uint64_t{1} << data.hasbit_idx());
 1417|      7|  auto& field = RefAt<FieldType>(msg, data.offset());
 1418|      7|  auto arena = msg->GetArena();
 1419|      7|  if (arena) {
  ------------------
  |  Branch (1419:7): [True: 2, False: 5]
  ------------------
 1420|      2|    ptr =
 1421|      2|        ReadStringIntoArena(msg, ptr, ctx, data.aux_idx(), table, field, arena);
 1422|      5|  } else {
 1423|      5|    ptr = ReadStringNoArena(msg, ptr, ctx, data.aux_idx(), table, field);
 1424|      5|  }
 1425|      7|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|      7|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 7]
  |  |  |  Branch (365:54): [Folded, False: 7]
  |  |  |  Branch (365:63): [True: 0, False: 7]
  |  |  ------------------
  ------------------
 1426|      0|    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1427|      0|  }
 1428|      7|  switch (utf8) {
 1429|      0|    case kNoUtf8:
  ------------------
  |  Branch (1429:5): [True: 0, False: 7]
  ------------------
 1430|      0|#ifdef NDEBUG
 1431|      7|    case kUtf8ValidateOnly:
  ------------------
  |  Branch (1431:5): [True: 7, False: 0]
  ------------------
 1432|      7|#endif
 1433|      7|      break;
 1434|      0|    default:
  ------------------
  |  Branch (1434:5): [True: 0, False: 7]
  ------------------
 1435|      0|      if (PROTOBUF_PREDICT_TRUE(IsValidUTF8(field))) {
  ------------------
  |  |  364|      0|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 0]
  |  |  |  Branch (364:62): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1436|      0|        break;
 1437|      0|      }
 1438|      0|      ReportFastUtf8Error(FastDecodeTag(saved_tag), table);
 1439|      0|      if (utf8 == kUtf8) {
  ------------------
  |  Branch (1439:11): [Folded, False: 0]
  ------------------
 1440|      0|        PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1441|      0|      }
 1442|      0|      break;
 1443|      7|  }
 1444|       |
 1445|      7|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      7|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      7|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1446|      7|}
_ZN6google8protobuf8internal8TcParser14RepeatedStringIhNS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEELNS2_8Utf8TypeE0EEEPKcPNS0_11MessageLiteESF_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1518|  4.68k|    PROTOBUF_TC_PARAM_DECL) {
 1519|  4.68k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  4.68k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 791, False: 3.89k]
  |  |  |  Branch (365:54): [Folded, False: 4.68k]
  |  |  |  Branch (365:63): [True: 791, False: 3.89k]
  |  |  ------------------
  ------------------
 1520|    791|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|    791|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|    791|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1521|    791|  }
 1522|  3.89k|  const auto expected_tag = UnalignedLoad<TagType>(ptr);
 1523|  3.89k|  auto& field = RefAt<FieldType>(msg, data.offset());
 1524|       |
 1525|  3.89k|  const auto validate_last_string = [expected_tag, table, &field] {
 1526|  3.89k|    switch (utf8) {
 1527|  3.89k|      case kNoUtf8:
 1528|  3.89k|#ifdef NDEBUG
 1529|  3.89k|      case kUtf8ValidateOnly:
 1530|  3.89k|#endif
 1531|  3.89k|        return true;
 1532|  3.89k|      default:
 1533|  3.89k|        if (PROTOBUF_PREDICT_TRUE(
 1534|  3.89k|                utf8_range::IsStructurallyValid(field[field.size() - 1]))) {
 1535|  3.89k|          return true;
 1536|  3.89k|        }
 1537|  3.89k|        ReportFastUtf8Error(FastDecodeTag(expected_tag), table);
 1538|  3.89k|        if (utf8 == kUtf8) return false;
 1539|  3.89k|        return true;
 1540|  3.89k|    }
 1541|  3.89k|  };
 1542|       |
 1543|  3.89k|  auto* arena = field.GetArena();
 1544|  3.89k|  SerialArena* serial_arena;
 1545|  3.89k|  if (PROTOBUF_PREDICT_TRUE(arena != nullptr &&
  ------------------
  |  |  364|  7.78k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 3.89k]
  |  |  |  Branch (364:53): [Folded, False: 3.89k]
  |  |  |  Branch (364:63): [True: 0, False: 3.89k]
  |  |  |  Branch (364:63): [True: 0, False: 0]
  |  |  |  Branch (364:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1546|  3.89k|                            arena->impl_.GetSerialArenaFast(&serial_arena) &&
 1547|  3.89k|                            field.PrepareForParse())) {
 1548|      0|    do {
 1549|      0|      ptr += sizeof(TagType);
 1550|      0|      ptr = ParseRepeatedStringOnce(ptr, serial_arena, ctx, field);
 1551|       |
 1552|      0|      if (PROTOBUF_PREDICT_FALSE(ptr == nullptr || !validate_last_string())) {
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:64): [True: 0, False: 0]
  |  |  |  Branch (365:64): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1553|      0|        PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1554|      0|      }
 1555|      0|      if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1556|      0|    } while (UnalignedLoad<TagType>(ptr) == expected_tag);
  ------------------
  |  Branch (1556:14): [True: 0, False: 0]
  ------------------
 1557|  3.89k|  } else {
 1558|  12.0k|    do {
 1559|  12.0k|      ptr += sizeof(TagType);
 1560|  12.0k|      std::string* str = field.Add();
 1561|  12.0k|      ptr = InlineGreedyStringParser(str, ptr, ctx);
 1562|  12.0k|      if (PROTOBUF_PREDICT_FALSE(ptr == nullptr || !validate_last_string())) {
  ------------------
  |  |  365|  24.1k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 12.0k]
  |  |  |  Branch (365:54): [Folded, False: 12.0k]
  |  |  |  Branch (365:64): [True: 2, False: 12.0k]
  |  |  |  Branch (365:64): [True: 0, False: 12.0k]
  |  |  ------------------
  ------------------
 1563|      2|        PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      2|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      2|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1564|      2|      }
 1565|  12.0k|      if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|  12.0k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1.73k, False: 10.3k]
  |  |  |  Branch (365:54): [Folded, False: 12.0k]
  |  |  |  Branch (365:63): [True: 1.73k, False: 10.3k]
  |  |  ------------------
  ------------------
 1566|  12.0k|    } while (UnalignedLoad<TagType>(ptr) == expected_tag);
  ------------------
  |  Branch (1566:14): [True: 8.17k, False: 2.15k]
  ------------------
 1567|  3.89k|  }
 1568|  2.15k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  2.15k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  2.15k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1569|  1.73k|parse_loop:
 1570|  1.73k|  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  1.73k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  1.73k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1571|  3.89k|}
_ZZN6google8protobuf8internal8TcParser14RepeatedStringIhNS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEELNS2_8Utf8TypeE0EEEPKcPNS0_11MessageLiteESF_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlvE_clEv:
 1525|  12.0k|  const auto validate_last_string = [expected_tag, table, &field] {
 1526|  12.0k|    switch (utf8) {
 1527|  12.0k|      case kNoUtf8:
  ------------------
  |  Branch (1527:7): [True: 12.0k, False: 0]
  ------------------
 1528|  12.0k|#ifdef NDEBUG
 1529|  12.0k|      case kUtf8ValidateOnly:
  ------------------
  |  Branch (1529:7): [True: 0, False: 12.0k]
  ------------------
 1530|  12.0k|#endif
 1531|  12.0k|        return true;
 1532|      0|      default:
  ------------------
  |  Branch (1532:7): [True: 0, False: 12.0k]
  ------------------
 1533|      0|        if (PROTOBUF_PREDICT_TRUE(
  ------------------
  |  |  364|      0|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 0]
  |  |  |  Branch (364:62): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1534|      0|                utf8_range::IsStructurallyValid(field[field.size() - 1]))) {
 1535|      0|          return true;
 1536|      0|        }
 1537|      0|        ReportFastUtf8Error(FastDecodeTag(expected_tag), table);
 1538|      0|        if (utf8 == kUtf8) return false;
  ------------------
  |  Branch (1538:13): [Folded, False: 0]
  ------------------
 1539|      0|        return true;
 1540|  12.0k|    }
 1541|  12.0k|  };
_ZN6google8protobuf8internal8TcParser14RepeatedStringIhNS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEELNS2_8Utf8TypeE2EEEPKcPNS0_11MessageLiteESF_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1518|      6|    PROTOBUF_TC_PARAM_DECL) {
 1519|      6|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|      6|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 6]
  |  |  |  Branch (365:54): [Folded, False: 6]
  |  |  |  Branch (365:63): [True: 0, False: 6]
  |  |  ------------------
  ------------------
 1520|      0|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1521|      0|  }
 1522|      6|  const auto expected_tag = UnalignedLoad<TagType>(ptr);
 1523|      6|  auto& field = RefAt<FieldType>(msg, data.offset());
 1524|       |
 1525|      6|  const auto validate_last_string = [expected_tag, table, &field] {
 1526|      6|    switch (utf8) {
 1527|      6|      case kNoUtf8:
 1528|      6|#ifdef NDEBUG
 1529|      6|      case kUtf8ValidateOnly:
 1530|      6|#endif
 1531|      6|        return true;
 1532|      6|      default:
 1533|      6|        if (PROTOBUF_PREDICT_TRUE(
 1534|      6|                utf8_range::IsStructurallyValid(field[field.size() - 1]))) {
 1535|      6|          return true;
 1536|      6|        }
 1537|      6|        ReportFastUtf8Error(FastDecodeTag(expected_tag), table);
 1538|      6|        if (utf8 == kUtf8) return false;
 1539|      6|        return true;
 1540|      6|    }
 1541|      6|  };
 1542|       |
 1543|      6|  auto* arena = field.GetArena();
 1544|      6|  SerialArena* serial_arena;
 1545|      6|  if (PROTOBUF_PREDICT_TRUE(arena != nullptr &&
  ------------------
  |  |  364|     18|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 3, False: 3]
  |  |  |  Branch (364:53): [Folded, False: 6]
  |  |  |  Branch (364:63): [True: 3, False: 3]
  |  |  |  Branch (364:63): [True: 3, False: 0]
  |  |  |  Branch (364:63): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 1546|      6|                            arena->impl_.GetSerialArenaFast(&serial_arena) &&
 1547|      6|                            field.PrepareForParse())) {
 1548|      3|    do {
 1549|      3|      ptr += sizeof(TagType);
 1550|      3|      ptr = ParseRepeatedStringOnce(ptr, serial_arena, ctx, field);
 1551|       |
 1552|      3|      if (PROTOBUF_PREDICT_FALSE(ptr == nullptr || !validate_last_string())) {
  ------------------
  |  |  365|      6|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:64): [True: 0, False: 3]
  |  |  |  Branch (365:64): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1553|      0|        PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1554|      0|      }
 1555|      3|      if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|      3|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 1]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:63): [True: 2, False: 1]
  |  |  ------------------
  ------------------
 1556|      3|    } while (UnalignedLoad<TagType>(ptr) == expected_tag);
  ------------------
  |  Branch (1556:14): [True: 0, False: 1]
  ------------------
 1557|      3|  } else {
 1558|      3|    do {
 1559|      3|      ptr += sizeof(TagType);
 1560|      3|      std::string* str = field.Add();
 1561|      3|      ptr = InlineGreedyStringParser(str, ptr, ctx);
 1562|      3|      if (PROTOBUF_PREDICT_FALSE(ptr == nullptr || !validate_last_string())) {
  ------------------
  |  |  365|      6|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:64): [True: 0, False: 3]
  |  |  |  Branch (365:64): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1563|      0|        PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      0|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      0|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1564|      0|      }
 1565|      3|      if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|      3|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 1]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:63): [True: 2, False: 1]
  |  |  ------------------
  ------------------
 1566|      3|    } while (UnalignedLoad<TagType>(ptr) == expected_tag);
  ------------------
  |  Branch (1566:14): [True: 0, False: 1]
  ------------------
 1567|      3|  }
 1568|      2|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      2|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      2|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1569|      4|parse_loop:
 1570|      4|  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|      4|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|      4|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1571|      6|}
_ZZN6google8protobuf8internal8TcParser14RepeatedStringIhNS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEELNS2_8Utf8TypeE2EEEPKcPNS0_11MessageLiteESF_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlvE_clEv:
 1525|      6|  const auto validate_last_string = [expected_tag, table, &field] {
 1526|      6|    switch (utf8) {
 1527|      0|      case kNoUtf8:
  ------------------
  |  Branch (1527:7): [True: 0, False: 6]
  ------------------
 1528|      0|#ifdef NDEBUG
 1529|      6|      case kUtf8ValidateOnly:
  ------------------
  |  Branch (1529:7): [True: 6, False: 0]
  ------------------
 1530|      6|#endif
 1531|      6|        return true;
 1532|      0|      default:
  ------------------
  |  Branch (1532:7): [True: 0, False: 6]
  ------------------
 1533|      0|        if (PROTOBUF_PREDICT_TRUE(
  ------------------
  |  |  364|      0|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 0]
  |  |  |  Branch (364:62): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1534|      0|                utf8_range::IsStructurallyValid(field[field.size() - 1]))) {
 1535|      0|          return true;
 1536|      0|        }
 1537|      0|        ReportFastUtf8Error(FastDecodeTag(expected_tag), table);
 1538|      0|        if (utf8 == kUtf8) return false;
  ------------------
  |  Branch (1538:13): [Folded, False: 0]
  ------------------
 1539|      0|        return true;
 1540|      6|    }
 1541|      6|  };

_ZN6google8protobuf8internal24InitProtobufDefaultsSlowEv:
  101|      2|void InitProtobufDefaultsSlow() {
  102|      2|  static bool is_inited = InitProtobufDefaultsImpl();
  103|      2|  (void)is_inited;
  104|      2|}
generated_message_util.cc:_ZN6google8protobuf8internalL24InitProtobufDefaultsImplEv:
   91|      2|static bool InitProtobufDefaultsImpl() {
   92|      2|  fixed_address_empty_string.DefaultConstruct();
   93|      2|  OnShutdownDestroyString(fixed_address_empty_string.get_mutable());
   94|      2|  InitWeakDefaults();
   95|       |
   96|       |
   97|      2|  init_protobuf_defaults_state.store(true, std::memory_order_release);
   98|      2|  return true;
   99|      2|}
generated_message_util.cc:_ZN6google8protobuf8internalL16InitWeakDefaultsEv:
   71|      2|static void InitWeakDefaults() {
   72|       |  // force link the dummy entry.
   73|      2|  StrongPointer<DummyWeakDefault*, &dummy_weak_default>();
   74|       |  // We don't know the size of each object, but we know the layout of the tail.
   75|       |  // It contains a WeakDescriptorDefaultTail object.
   76|       |  // As such, we iterate the section backwards.
   77|      2|  const char* start = &__start_pb_defaults;
   78|      2|  const char* end = &__stop_pb_defaults;
   79|      4|  while (start != end) {
  ------------------
  |  Branch (79:10): [True: 2, False: 2]
  ------------------
   80|      2|    auto* tail = reinterpret_cast<const WeakDescriptorDefaultTail*>(end) - 1;
   81|      2|    end -= tail->size;
   82|      2|    const Message* instance = reinterpret_cast<const Message*>(end);
   83|      2|    *tail->target = instance;
   84|      2|  }
   85|      2|}

_ZN6google8protobuf8internal20InitProtobufDefaultsEv:
   71|     54|PROTOBUF_EXPORT inline void InitProtobufDefaults() {
   72|     54|  if (PROTOBUF_PREDICT_FALSE(
  ------------------
  |  |  365|     54|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 54]
  |  |  |  Branch (365:54): [Folded, False: 54]
  |  |  |  Branch (365:63): [True: 0, False: 54]
  |  |  ------------------
  ------------------
   73|     54|          !init_protobuf_defaults_state.load(std::memory_order_acquire))) {
   74|      0|    InitProtobufDefaultsSlow();
   75|      0|  }
   76|     54|}
_ZN6google8protobuf8internal14GetEmptyStringEv:
   79|     48|PROTOBUF_EXPORT inline const std::string& GetEmptyString() {
   80|     48|  InitProtobufDefaults();
   81|     48|  return GetEmptyStringAlreadyInited();
   82|     48|}
_ZN6google8protobuf8internal23OnShutdownDestroyStringEPKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  182|      2|inline void OnShutdownDestroyString(const std::string* ptr) {
  183|      2|  OnShutdownRun(DestroyString, ptr);
  184|      2|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_15DescriptorProtoEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|     99|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|    188|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 89, False: 99]
  ------------------
  105|     89|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 89]
  ------------------
  106|     89|  }
  107|     99|  return true;
  108|     99|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_19EnumDescriptorProtoEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|     99|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|    141|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 42, False: 99]
  ------------------
  105|     42|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 42]
  ------------------
  106|     42|  }
  107|     99|  return true;
  108|     99|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_22ServiceDescriptorProtoEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|     10|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|     10|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 0, False: 10]
  ------------------
  105|      0|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 0]
  ------------------
  106|      0|  }
  107|     10|  return true;
  108|     10|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_20FieldDescriptorProtoEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|    188|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|    623|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 435, False: 188]
  ------------------
  105|    435|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 435]
  ------------------
  106|    435|  }
  107|    188|  return true;
  108|    188|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_30DescriptorProto_ExtensionRangeEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|     89|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|    117|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 28, False: 89]
  ------------------
  105|     28|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 28]
  ------------------
  106|     28|  }
  107|     89|  return true;
  108|     89|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_20OneofDescriptorProtoEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|     89|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|     92|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 3, False: 89]
  ------------------
  105|      3|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 3]
  ------------------
  106|      3|  }
  107|     89|  return true;
  108|     89|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_19UninterpretedOptionEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|     77|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|     77|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 0, False: 77]
  ------------------
  105|      0|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 0]
  ------------------
  106|      0|  }
  107|     77|  return true;
  108|     77|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_24EnumValueDescriptorProtoEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|     42|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|    289|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 247, False: 42]
  ------------------
  105|    247|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 247]
  ------------------
  106|    247|  }
  107|     42|  return true;
  108|     42|}
_ZN6google8protobuf8internal17AllAreInitializedINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEEbRKNS0_16RepeatedPtrFieldIT_EE:
  103|      1|bool AllAreInitialized(const RepeatedPtrField<Msg>& t) {
  104|      5|  for (int i = t.size(); --i >= 0;) {
  ------------------
  |  Branch (104:26): [True: 4, False: 1]
  ------------------
  105|      4|    if (!t.Get(i).IsInitialized()) return false;
  ------------------
  |  Branch (105:9): [True: 0, False: 4]
  ------------------
  106|      4|  }
  107|      1|  return true;
  108|      1|}

_ZN6google8protobuf2io19EpsCopyOutputStream30WriteStringMaybeAliasedOutlineEjRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPh:
  990|      1|                                                           uint8_t* ptr) {
  991|      1|  ptr = EnsureSpace(ptr);
  992|      1|  uint32_t size = s.size();
  993|      1|  ptr = WriteLengthDelim(num, size, ptr);
  994|      1|  return WriteRawMaybeAliased(s.data(), size, ptr);
  995|      1|}

_ZN6google8protobuf2io16CodedInputStream24GetDefaultRecursionLimitEv:
  387|  7.96k|  static int GetDefaultRecursionLimit() { return default_recursion_limit_; }
_ZN6google8protobuf2io19EpsCopyOutputStreamC2EPvib:
  643|    226|      : end_(static_cast<uint8_t*>(data) + size),
  644|    226|        buffer_end_(nullptr),
  645|    226|        stream_(nullptr),
  646|    226|        is_serialization_deterministic_(deterministic) {}
_ZN6google8protobuf2io19EpsCopyOutputStream8WriteRawEPKviPh:
  669|      1|  uint8_t* WriteRaw(const void* data, int size, uint8_t* ptr) {
  670|      1|    if (PROTOBUF_PREDICT_FALSE(end_ - ptr < size)) {
  ------------------
  |  |  365|      1|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 1]
  |  |  |  Branch (365:54): [Folded, False: 1]
  |  |  |  Branch (365:63): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  671|      0|      return WriteRawFallback(data, size, ptr);
  672|      0|    }
  673|      1|    std::memcpy(ptr, data, static_cast<unsigned int>(size));
  674|      1|    return ptr + size;
  675|      1|  }
_ZN6google8protobuf2io19EpsCopyOutputStream20WriteRawMaybeAliasedEPKviPh:
  683|      1|  uint8_t* WriteRawMaybeAliased(const void* data, int size, uint8_t* ptr) {
  684|      1|    if (aliasing_enabled_) {
  ------------------
  |  Branch (684:9): [True: 0, False: 1]
  ------------------
  685|      0|      return WriteAliasedRaw(data, size, ptr);
  686|      1|    } else {
  687|      1|      return WriteRaw(data, size, ptr);
  688|      1|    }
  689|      1|  }
_ZN6google8protobuf2io19EpsCopyOutputStream8WriteTagEjjPh:
  852|      1|                                           uint8_t* ptr) {
  853|      1|    ABSL_DCHECK(ptr < end_);  // NOLINT
  ------------------
  |  |   47|      1|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      1|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      2|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      1|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      2|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      2|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 1, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      1|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 1]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      1|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 1, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      2|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      2|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  854|      1|    return UnsafeVarint((num << 3) | wt, ptr);
  855|      1|  }
_ZN6google8protobuf2io19EpsCopyOutputStream16WriteLengthDelimEijPh:
  858|      1|                                                   uint8_t* ptr) {
  859|      1|    ptr = WriteTag(num, 2, ptr);
  860|      1|    return UnsafeWriteSize(size, ptr);
  861|      1|  }
_ZN6google8protobuf2io19EpsCopyOutputStream15UnsafeWriteSizeEjPh:
  911|      1|                                                         uint8_t* ptr) {
  912|      2|    while (PROTOBUF_PREDICT_FALSE(value >= 0x80)) {
  ------------------
  |  |  365|      2|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1, False: 1]
  |  |  |  Branch (365:54): [Folded, False: 2]
  |  |  |  Branch (365:63): [True: 1, False: 1]
  |  |  ------------------
  ------------------
  913|      1|      *ptr = static_cast<uint8_t>(value | 0x80);
  914|      1|      value >>= 7;
  915|      1|      ++ptr;
  916|      1|    }
  917|      1|    *ptr++ = static_cast<uint8_t>(value);
  918|      1|    return ptr;
  919|      1|  }
_ZN6google8protobuf2io17CodedOutputStream35IsDefaultSerializationDeterministicEv:
 1258|    226|  static bool IsDefaultSerializationDeterministic() {
 1259|    226|    return default_serialization_deterministic_.load(
 1260|    226|               std::memory_order_relaxed) != 0;
 1261|    226|  }

_ZN6google8protobuf2io9Tokenizer12IsIdentifierERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
 1244|      5|bool Tokenizer::IsIdentifier(const std::string& text) {
 1245|       |  // Mirrors IDENTIFIER definition in Tokenizer::Next() above.
 1246|      5|  if (text.size() == 0) return false;
  ------------------
  |  Branch (1246:7): [True: 0, False: 5]
  ------------------
 1247|      5|  if (!Letter::InClass(text.at(0))) return false;
  ------------------
  |  Branch (1247:7): [True: 0, False: 5]
  ------------------
 1248|      5|  if (!AllInClass<Alphanumeric>(text.substr(1))) return false;
  ------------------
  |  Branch (1248:7): [True: 0, False: 5]
  ------------------
 1249|      5|  return true;
 1250|      5|}
tokenizer.cc:_ZN6google8protobuf2io12_GLOBAL__N_16Letter7InClassEc:
  100|     30|    static inline bool InClass(char c) { return EXPRESSION; } \
  ------------------
  |  Branch (100:49): [True: 0, False: 5]
  |  Branch (100:49): [True: 0, False: 0]
  |  Branch (100:49): [True: 5, False: 0]
  |  Branch (100:49): [True: 5, False: 0]
  |  Branch (100:49): [True: 0, False: 0]
  ------------------
tokenizer.cc:_ZN6google8protobuf2io12_GLOBAL__N_112Alphanumeric7InClassEc:
  100|    316|    static inline bool InClass(char c) { return EXPRESSION; } \
  ------------------
  |  Branch (100:49): [True: 0, False: 44]
  |  Branch (100:49): [True: 0, False: 0]
  |  Branch (100:49): [True: 44, False: 0]
  |  Branch (100:49): [True: 42, False: 2]
  |  Branch (100:49): [True: 2, False: 0]
  |  Branch (100:49): [True: 0, False: 2]
  |  Branch (100:49): [True: 2, False: 0]
  ------------------
tokenizer.cc:_ZN6google8protobuf2ioL10AllInClassINS1_12_GLOBAL__N_112AlphanumericEEEbRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
 1237|      5|static bool AllInClass(const std::string& s) {
 1238|     44|  for (const char character : s) {
  ------------------
  |  Branch (1238:29): [True: 44, False: 5]
  ------------------
 1239|     44|    if (!CharacterClass::InClass(character)) return false;
  ------------------
  |  Branch (1239:9): [True: 0, False: 44]
  ------------------
 1240|     44|  }
 1241|      5|  return true;
 1242|      5|}

_ZN6google8protobuf2io19mutable_string_dataEPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  499|    226|inline char* mutable_string_data(std::string* s) {
  500|    226|  return &(*s)[0];
  501|    226|}

_ZNK6google8protobuf7Message11GetMetadataEv:
  155|   535k|Metadata Message::GetMetadata() const {
  156|   535k|  return GetMetadataImpl(GetClassData()->full());
  157|   535k|}
_ZN6google8protobuf7Message15GetMetadataImplERKNS0_8internal13ClassDataFullE:
  159|   714k|Metadata Message::GetMetadataImpl(const internal::ClassDataFull& data) {
  160|   714k|  auto* table = data.descriptor_table;
  161|       |  // Only codegen types provide a table. DynamicMessage does not provide a table
  162|       |  // and instead eagerly initializes the descriptor/reflection members.
  163|   714k|  if (ABSL_PREDICT_TRUE(table != nullptr)) {
  ------------------
  |  |  179|   714k|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 714k, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 714k]
  |  |  |  Branch (179:57): [True: 714k, False: 0]
  |  |  ------------------
  ------------------
  164|   714k|    if (ABSL_PREDICT_FALSE(data.get_metadata_tracker != nullptr)) {
  ------------------
  |  |  178|   714k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 714k]
  |  |  |  Branch (178:49): [Folded, False: 714k]
  |  |  |  Branch (178:58): [True: 0, False: 714k]
  |  |  ------------------
  ------------------
  165|      0|      data.get_metadata_tracker();
  166|      0|    }
  167|   714k|    absl::call_once(*table->once, [table] {
  168|   714k|      internal::AssignDescriptorsOnceInnerCall(table);
  169|   714k|    });
  170|   714k|  }
  171|   714k|  return {data.descriptor, data.reflection};
  172|   714k|}
_ZNK6google8protobuf7Message29MaybeComputeUnknownFieldsSizeEmPKNS0_8internal10CachedSizeE:
  197|  1.05k|    size_t total_size, const internal::CachedSize* cached_size) const {
  198|  1.05k|  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  ------------------
  |  |  365|  1.05k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 1.05k]
  |  |  |  Branch (365:54): [Folded, False: 1.05k]
  |  |  |  Branch (365:63): [True: 0, False: 1.05k]
  |  |  ------------------
  ------------------
  199|      0|    return ComputeUnknownFieldsSize(total_size, cached_size);
  200|      0|  }
  201|  1.05k|  cached_size->Set(internal::ToCachedSize(total_size));
  202|  1.05k|  return total_size;
  203|  1.05k|}
_ZN6google8protobuf14MessageFactoryD2Ev:
  253|      4|MessageFactory::~MessageFactory() = default;
_ZN6google8protobuf14MessageFactory17generated_factoryEv:
  440|      4|MessageFactory* MessageFactory::generated_factory() {
  441|      4|  return GeneratedMessageFactory::singleton();
  442|      4|}
_ZN6google8protobuf14MessageFactory29InternalRegisterGeneratedFileEPKNS0_8internal15DescriptorTableE:
  445|      6|    const google::protobuf::internal::DescriptorTable* table) {
  446|      6|  GeneratedMessageFactory::singleton()->RegisterFile(table);
  447|      6|}
message.cc:_ZN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory9singletonEv:
  339|     10|GeneratedMessageFactory* GeneratedMessageFactory::singleton() {
  340|     10|  static auto instance =
  341|     10|      internal::OnShutdownDelete(new GeneratedMessageFactory);
  342|     10|  return instance;
  343|     10|}
message.cc:_ZN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactoryC2Ev:
  270|      2|  GeneratedMessageFactory() {
  271|      2|    dropped_defaults_factory_.SetDelegateToGeneratedFactory(true);
  272|      2|  }
message.cc:_ZN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory12RegisterFileEPKNS0_8internal15DescriptorTableE:
  346|      6|    const google::protobuf::internal::DescriptorTable* table) {
  347|      6|  if (!files_.insert(table).second) {
  ------------------
  |  Branch (347:7): [True: 0, False: 6]
  ------------------
  348|      0|    ABSL_LOG(FATAL) << "File is already registered: " << table->filename;
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  349|      0|  }
  350|      6|}
message.cc:_ZNK6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashclEPKNS0_8internal15DescriptorTableE:
  291|      6|    size_t operator()(const google::protobuf::internal::DescriptorTable* t) const {
  292|      6|      return absl::HashOf(absl::string_view{t->filename});
  293|      6|    }
message.cc:_ZZN6google8protobuf7Message15GetMetadataImplERKNS0_8internal13ClassDataFullEENK3$_0clEv:
  167|      4|    absl::call_once(*table->once, [table] {
  168|      4|      internal::AssignDescriptorsOnceInnerCall(table);
  169|      4|    });

_ZN6google8protobuf14MessageFactoryC2Ev:
 1365|      8|  inline MessageFactory() = default;
_ZN6google8protobuf8internal18GetPointerAtOffsetIjEEPT_Pvj:
  214|  8.56k|inline To* GetPointerAtOffset(void* message, uint32_t offset) {
  215|  8.56k|  return reinterpret_cast<To*>(reinterpret_cast<char*>(message) + offset);
  216|  8.56k|}
_ZNK6google8protobuf10Reflection6GetRawINS0_8internal20RepeatedPtrFieldBaseEEERKT_RKNS0_7MessageEPKNS0_15FieldDescriptorE:
 1624|  99.6k|                               const FieldDescriptor* field) const {
 1625|   199k|  ABSL_DCHECK(!schema_.InRealOneof(field) || HasOneofField(message, field))
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  99.6k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  99.6k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   199k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   199k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 99.6k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  99.6k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 99.6k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  99.6k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 99.6k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  99.6k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|  99.6k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1626|   199k|      << "Field = " << field->full_name();
 1627|       |
 1628|  99.6k|  if (PROTOBUF_PREDICT_TRUE(!schema_.InRealOneof(field))) {
  ------------------
  |  |  364|  99.6k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 99.6k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 99.6k]
  |  |  |  Branch (364:62): [True: 99.6k, False: 0]
  |  |  ------------------
  ------------------
 1629|  99.6k|    return GetRawNonOneof<Type>(message, field);
 1630|  99.6k|  }
 1631|       |
 1632|       |  // Oneof fields are not split.
 1633|      0|  ABSL_DCHECK(!schema_.IsSplit(field));
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  99.6k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1634|       |
 1635|      0|  const uint32_t field_offset = schema_.GetFieldOffset(field);
 1636|      0|  return internal::GetConstRefAtOffset<Type>(message, field_offset);
 1637|      0|}
_ZNK6google8protobuf10Reflection14GetRawNonOneofINS0_8internal20RepeatedPtrFieldBaseEEERKT_RKNS0_7MessageEPKNS0_15FieldDescriptorE:
 1614|  99.6k|                                       const FieldDescriptor* field) const {
 1615|  99.6k|  if (PROTOBUF_PREDICT_FALSE(schema_.IsSplit(field))) {
  ------------------
  |  |  365|  99.6k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 99.6k]
  |  |  |  Branch (365:54): [Folded, False: 99.6k]
  |  |  |  Branch (365:63): [True: 0, False: 99.6k]
  |  |  ------------------
  ------------------
 1616|      0|    return GetRawSplit<Type>(message, field);
 1617|      0|  }
 1618|  99.6k|  const uint32_t field_offset = schema_.GetFieldOffsetNonOneof(field);
 1619|  99.6k|  return internal::GetConstRefAtOffset<Type>(message, field_offset);
 1620|  99.6k|}
_ZN6google8protobuf8internal23GetConstPointerAtOffsetINS1_20RepeatedPtrFieldBaseEEEPKT_PKvj:
  219|  99.6k|const To* GetConstPointerAtOffset(const void* message, uint32_t offset) {
  220|  99.6k|  return reinterpret_cast<const To*>(reinterpret_cast<const char*>(message) +
  221|  99.6k|                                     offset);
  222|  99.6k|}
_ZN6google8protobuf8internal19GetConstRefAtOffsetINS1_20RepeatedPtrFieldBaseEEERKT_RKNS0_7MessageEj:
  225|  99.6k|const To& GetConstRefAtOffset(const Message& message, uint32_t offset) {
  226|  99.6k|  return *GetConstPointerAtOffset<To>(&message, offset);
  227|  99.6k|}
_ZNK6google8protobuf10Reflection6GetRawIPKNS0_7MessageEEERKT_RS4_PKNS0_15FieldDescriptorE:
 1624|  8.56k|                               const FieldDescriptor* field) const {
 1625|  17.1k|  ABSL_DCHECK(!schema_.InRealOneof(field) || HasOneofField(message, field))
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  8.56k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  8.56k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  17.1k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  17.1k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 8.56k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  8.56k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 8.56k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  8.56k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 8.56k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  8.56k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|  8.56k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1626|  17.1k|      << "Field = " << field->full_name();
 1627|       |
 1628|  8.56k|  if (PROTOBUF_PREDICT_TRUE(!schema_.InRealOneof(field))) {
  ------------------
  |  |  364|  8.56k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 8.56k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 8.56k]
  |  |  |  Branch (364:62): [True: 8.56k, False: 0]
  |  |  ------------------
  ------------------
 1629|  8.56k|    return GetRawNonOneof<Type>(message, field);
 1630|  8.56k|  }
 1631|       |
 1632|       |  // Oneof fields are not split.
 1633|      0|  ABSL_DCHECK(!schema_.IsSplit(field));
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  8.56k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1634|       |
 1635|      0|  const uint32_t field_offset = schema_.GetFieldOffset(field);
 1636|      0|  return internal::GetConstRefAtOffset<Type>(message, field_offset);
 1637|      0|}
_ZNK6google8protobuf10Reflection14GetRawNonOneofIPKNS0_7MessageEEERKT_RS4_PKNS0_15FieldDescriptorE:
 1614|  8.56k|                                       const FieldDescriptor* field) const {
 1615|  8.56k|  if (PROTOBUF_PREDICT_FALSE(schema_.IsSplit(field))) {
  ------------------
  |  |  365|  8.56k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 8.56k]
  |  |  |  Branch (365:54): [Folded, False: 8.56k]
  |  |  |  Branch (365:63): [True: 0, False: 8.56k]
  |  |  ------------------
  ------------------
 1616|      0|    return GetRawSplit<Type>(message, field);
 1617|      0|  }
 1618|  8.56k|  const uint32_t field_offset = schema_.GetFieldOffsetNonOneof(field);
 1619|  8.56k|  return internal::GetConstRefAtOffset<Type>(message, field_offset);
 1620|  8.56k|}
_ZN6google8protobuf8internal23GetConstPointerAtOffsetIPKNS0_7MessageEEEPKT_PKvj:
  219|  8.56k|const To* GetConstPointerAtOffset(const void* message, uint32_t offset) {
  220|  8.56k|  return reinterpret_cast<const To*>(reinterpret_cast<const char*>(message) +
  221|  8.56k|                                     offset);
  222|  8.56k|}
_ZN6google8protobuf8internal19GetConstRefAtOffsetIPKNS0_7MessageEEERKT_RS4_j:
  225|  8.56k|const To& GetConstRefAtOffset(const Message& message, uint32_t offset) {
  226|  8.56k|  return *GetConstPointerAtOffset<To>(&message, offset);
  227|  8.56k|}
_ZNK6google8protobuf10Reflection10MutableRawIPNS0_7MessageEEEPT_S4_PKNS0_15FieldDescriptorE:
 1207|  8.56k|  Type* MutableRaw(Message* message, const FieldDescriptor* field) const {
 1208|  8.56k|    return reinterpret_cast<Type*>(MutableRawImpl(message, field));
 1209|  8.56k|  }
_ZNK6google8protobuf10Reflection10MutableRawINS0_8internal20RepeatedPtrFieldBaseEEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE:
 1207|  72.8k|  Type* MutableRaw(Message* message, const FieldDescriptor* field) const {
 1208|  72.8k|    return reinterpret_cast<Type*>(MutableRawImpl(message, field));
 1209|  72.8k|  }
_ZN6google8protobuf8internal23GetConstPointerAtOffsetIjEEPKT_PKvj:
  219|  37.9k|const To* GetConstPointerAtOffset(const void* message, uint32_t offset) {
  220|  37.9k|  return reinterpret_cast<const To*>(reinterpret_cast<const char*>(message) +
  221|  37.9k|                                     offset);
  222|  37.9k|}
_ZN6google8protobuf8internal18GetPointerAtOffsetIvEEPT_Pvj:
  214|  81.3k|inline To* GetPointerAtOffset(void* message, uint32_t offset) {
  215|  81.3k|  return reinterpret_cast<To*>(reinterpret_cast<char*>(message) + offset);
  216|  81.3k|}
_ZN6google8protobuf8internal19GetConstRefAtOffsetIjEERKT_RKNS0_7MessageEj:
  225|  37.9k|const To& GetConstRefAtOffset(const Message& message, uint32_t offset) {
  226|  37.9k|  return *GetConstPointerAtOffset<To>(&message, offset);
  227|  37.9k|}

_ZN6google8protobuf8internal13MergeFromImplILb0EEEbN4absl12lts_2024011611string_viewEPNS0_11MessageLiteEPKNS1_16TcParseTableBaseENS6_10ParseFlagsE:
  214|  7.94k|                   MessageLite::ParseFlags parse_flags) {
  215|  7.94k|  const char* ptr;
  216|  7.94k|  internal::ParseContext ctx(io::CodedInputStream::GetDefaultRecursionLimit(),
  217|  7.94k|                             aliasing, &ptr, input);
  218|  7.94k|  ptr = internal::TcParser::ParseLoop(msg, ptr, &ctx, tc_table);
  219|       |  // ctx has an explicit limit set (length of string_view).
  220|  7.94k|  if (PROTOBUF_PREDICT_TRUE(ptr && ctx.EndedAtLimit())) {
  ------------------
  |  |  364|  15.8k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 7.86k, False: 75]
  |  |  |  Branch (364:53): [Folded, False: 7.94k]
  |  |  |  Branch (364:63): [True: 7.87k, False: 71]
  |  |  |  Branch (364:63): [True: 7.86k, False: 4]
  |  |  ------------------
  ------------------
  221|  7.86k|    return CheckFieldPresence(ctx, *msg, parse_flags);
  222|  7.86k|  }
  223|     75|  return false;
  224|  7.94k|}
_ZN6google8protobuf11MessageLite21CheckTypeAndMergeFromERKS1_:
   67|    653|void MessageLite::CheckTypeAndMergeFrom(const MessageLite& other) {
   68|    653|  auto* data = GetClassData();
   69|    653|  auto* other_data = other.GetClassData();
   70|       |
   71|    653|  ABSL_CHECK_EQ(data, other_data)
  ------------------
  |  |   50|      0|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   48|    653|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   61|    653|  while (                                                                      \
  |  |  |  |  |  |   62|    653|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 653]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   63|    653|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |   64|    653|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |   65|    653|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |   66|    653|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |   67|    653|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |   68|    653|    ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS, true)                         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   69|    653|  ABSL_LOG_INTERNAL_CHECK(*absl_log_internal_check_op_result).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|    653|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   72|      0|      << "Invalid call to CheckTypeAndMergeFrom between types " << GetTypeName()
   73|      0|      << " and " << other.GetTypeName();
   74|    653|  data->merge_to_from(*this, other);
   75|    653|}
_ZNK6google8protobuf11MessageLite3NewEPNS0_5ArenaE:
   77|    438|MessageLite* MessageLite::New(Arena* arena) const {
   78|    438|  auto* data = GetClassData();
   79|       |  // The `instance->New()` expression requires using the actual instance
   80|       |  // instead of the prototype for the inner function call.
   81|       |  // Certain custom instances have special per-instance state that needs to be
   82|       |  // copied.
   83|    438|  return data->message_creator.New(this, data->prototype, arena);
   84|    438|}
_ZNK6google8protobuf11MessageLite13IsInitializedEv:
   86|     38|bool MessageLite::IsInitialized() const {
   87|     38|  auto* data = GetClassData();
   88|     38|  return data->is_initialized != nullptr ? data->is_initialized(*this) : true;
  ------------------
  |  Branch (88:10): [True: 30, False: 8]
  ------------------
   89|     38|}
_ZN6google8protobuf11MessageLite14_InternalParseEPKcPNS0_8internal12ParseContextE:
   92|     32|                                        internal::ParseContext* ctx) {
   93|     32|  return internal::TcParser::ParseLoop(this, ptr, ctx, GetTcParseTable());
   94|     32|}
_ZNK6google8protobuf11MessageLite13GetCachedSizeEv:
  143|    207|int MessageLite::GetCachedSize() const { return AccessCachedSize().Get(); }
_ZN6google8protobuf11MessageLite22ParsePartialFromStringEN4absl12lts_2024011611string_viewE:
  404|  7.93k|bool MessageLite::ParsePartialFromString(absl::string_view data) {
  405|  7.93k|  return ParseFrom<kParsePartial>(data);
  406|  7.93k|}
_ZN6google8protobuf11MessageLite14ParseFromArrayEPKvi:
  408|      6|bool MessageLite::ParseFromArray(const void* data, int size) {
  409|      6|  return ParseFrom<kParse>(as_string_view(data, size));
  410|      6|}
_ZNK6google8protobuf11MessageLite14AppendToStringEPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  572|    226|bool MessageLite::AppendToString(std::string* output) const {
  573|    452|  ABSL_DCHECK(IsInitialized())
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    226|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    226|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    452|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    452|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 226, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    226|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 226]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    226|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 226, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    226|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|    226|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  574|    452|      << InitializationErrorMessage("serialize", *this);
  575|    226|  return AppendPartialToString(output);
  576|    226|}
_ZNK6google8protobuf11MessageLite21AppendPartialToStringEPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  578|    226|bool MessageLite::AppendPartialToString(std::string* output) const {
  579|    226|  size_t old_size = output->size();
  580|    226|  size_t byte_size = ByteSizeLong();
  581|    226|  if (byte_size > INT_MAX) {
  ------------------
  |  Branch (581:7): [True: 0, False: 226]
  ------------------
  582|      0|    ABSL_LOG(ERROR) << GetTypeName()
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  170|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|  ::absl::log_internal::LogMessage(     \
  |  |  |  |  |  |   53|      0|      __FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  583|      0|                    << " exceeded maximum protobuf size of 2GB: " << byte_size;
  584|      0|    return false;
  585|      0|  }
  586|       |
  587|    226|  absl::strings_internal::STLStringResizeUninitializedAmortized(
  588|    226|      output, old_size + byte_size);
  589|    226|  uint8_t* start =
  590|    226|      reinterpret_cast<uint8_t*>(io::mutable_string_data(output) + old_size);
  591|    226|  SerializeToArrayImpl(*this, start, byte_size);
  592|    226|  return true;
  593|    226|}
_ZNK6google8protobuf11MessageLite17SerializeAsStringEv:
  624|    226|std::string MessageLite::SerializeAsString() const {
  625|       |  // If the compiler implements the (Named) Return Value Optimization,
  626|       |  // the local variable 'output' will not actually reside on the stack
  627|       |  // of this function, but will be overlaid with the object that the
  628|       |  // caller supplied for the return value to be constructed in.
  629|    226|  std::string output;
  630|    226|  if (!AppendToString(&output)) output.clear();
  ------------------
  |  Branch (630:7): [True: 0, False: 226]
  ------------------
  631|    226|  return output;
  632|    226|}
_ZN6google8protobuf8internal13OnShutdownRunEPFvPKvES3_:
  783|     51|void OnShutdownRun(void (*f)(const void*), const void* arg) {
  784|     51|  auto shutdown_data = ShutdownData::get();
  785|     51|  absl::MutexLock lock(&shutdown_data->mutex);
  786|     51|  shutdown_data->functions.push_back(std::make_pair(f, arg));
  787|     51|}
message_lite.cc:_ZN6google8protobuf12_GLOBAL__N_118CheckFieldPresenceERKNS0_8internal12ParseContextERKNS0_11MessageLiteENS6_10ParseFlagsE:
  184|  7.86k|                               MessageLite::ParseFlags parse_flags) {
  185|  7.86k|  (void)ctx;  // Parameter is used by Google-internal code.
  186|  7.86k|  if (PROTOBUF_PREDICT_FALSE((parse_flags & MessageLite::kMergePartial) != 0)) {
  ------------------
  |  |  365|  7.86k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 7.86k, False: 6]
  |  |  |  Branch (365:54): [Folded, False: 7.86k]
  |  |  |  Branch (365:63): [True: 7.86k, False: 6]
  |  |  ------------------
  ------------------
  187|  7.86k|    return true;
  188|  7.86k|  }
  189|      6|  return msg.IsInitializedWithErrors();
  190|  7.86k|}
message_lite.cc:_ZN6google8protobuf12_GLOBAL__N_114as_string_viewEPKvi:
  177|      6|inline absl::string_view as_string_view(const void* data, int size) {
  178|      6|  return absl::string_view(static_cast<const char*>(data), size);
  179|      6|}
_ZN6google8protobuf20SerializeToArrayImplERKNS0_11MessageLiteEPhi:
  462|    226|                                     int size) {
  463|    226|  constexpr bool debug = false;
  464|    226|  if (debug) {
  ------------------
  |  Branch (464:7): [Folded, False: 226]
  ------------------
  465|       |    // Force serialization to a stream with a block size of 1, which forces
  466|       |    // all writes to the stream to cross buffers triggering all fallback paths
  467|       |    // in the unittests when serializing to string / array.
  468|      0|    io::ArrayOutputStream stream(target, size, 1);
  469|      0|    uint8_t* ptr;
  470|      0|    io::EpsCopyOutputStream out(
  471|      0|        &stream, io::CodedOutputStream::IsDefaultSerializationDeterministic(),
  472|      0|        &ptr);
  473|      0|    ptr = msg._InternalSerialize(ptr, &out);
  474|      0|    out.Trim(ptr);
  475|      0|    ABSL_DCHECK(!out.HadError() && stream.ByteCount() == size);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  476|      0|    return target + size;
  477|    226|  } else {
  478|    226|    io::EpsCopyOutputStream out(
  479|    226|        target, size,
  480|    226|        io::CodedOutputStream::IsDefaultSerializationDeterministic());
  481|    226|    uint8_t* res = msg._InternalSerialize(target, &out);
  482|    226|    ABSL_DCHECK(target + size == res);
  ------------------
  |  |   47|    226|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    226|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|    452|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    226|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    452|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    452|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 226, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    226|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 226]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    226|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 226, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    452|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    452|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|    226|    return res;
  484|    226|  }
  485|    226|}
_ZN6google8protobuf8internal12ShutdownData3getEv:
  765|     51|  static ShutdownData* get() {
  766|     51|    static auto* data = new ShutdownData;
  767|     51|    return data;
  768|     51|  }

_ZNK6google8protobuf8internal14MessageCreator3tagEv:
  131|  88.0k|  Tag tag() const { return tag_; }
_ZNK6google8protobuf8internal14MessageCreator10arena_bitsEv:
  137|  88.5k|  uintptr_t arena_bits() const {
  138|  88.5k|    ABSL_DCHECK_NE(+tag(), +kFunc);
  ------------------
  |  |   76|  88.5k|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|  88.5k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  88.5k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 88.5k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  88.5k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  139|  88.5k|    return arena_bits_;
  140|  88.5k|  }
_ZNK6google8protobuf8internal10CachedSize3SetEi:
  182|  1.05k|  void Set(Scalar desired) const noexcept {
  183|       |    // Avoid writing the value when it is zero. This prevents writing to global
  184|       |    // default instances, which might be in readonly memory.
  185|  1.05k|    if (ABSL_PREDICT_FALSE(desired == 0)) {
  ------------------
  |  |  178|  1.05k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 394, False: 663]
  |  |  |  Branch (178:49): [Folded, False: 1.05k]
  |  |  |  Branch (178:58): [True: 394, False: 663]
  |  |  ------------------
  ------------------
  186|    394|      if (Get() == 0) return;
  ------------------
  |  Branch (186:11): [True: 394, False: 0]
  ------------------
  187|    394|    }
  188|    663|    __atomic_store_n(&atom_, desired, __ATOMIC_RELAXED);
  189|    663|  }
_ZNK6google8protobuf8internal9ClassData3NewEPNS0_5ArenaE:
  410|  87.6k|  MessageLite* New(Arena* arena) const {
  411|  87.6k|    return message_creator.New(prototype, prototype, arena);
  412|  87.6k|  }
_ZNK6google8protobuf11MessageLite15GetTcParseTableEv:
  860|  7.97k|  const internal::TcParseTableBase* GetTcParseTable() const {
  861|  7.97k|    auto* data = GetClassData();
  862|  7.97k|    ABSL_DCHECK(data != nullptr);
  ------------------
  |  |   47|  7.97k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  7.97k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  15.9k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.97k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  15.9k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  15.9k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.97k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.97k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.97k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  7.97k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.97k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  15.9k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  15.9k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  863|       |
  864|  7.97k|    auto* tc_table = data->tc_table;
  865|  7.97k|    if (ABSL_PREDICT_FALSE(tc_table == nullptr)) {
  ------------------
  |  |  178|  7.97k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 7.97k]
  |  |  |  Branch (178:49): [Folded, False: 7.97k]
  |  |  |  Branch (178:58): [True: 0, False: 7.97k]
  |  |  ------------------
  ------------------
  866|      0|      ABSL_DCHECK(!data->is_lite);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  867|      0|      return data->full().descriptor_methods->get_tc_table(*this);
  868|      0|    }
  869|  7.97k|    return tc_table;
  870|  7.97k|  }
_ZNK6google8protobuf11MessageLite16AccessCachedSizeEv:
  918|    207|  const internal::CachedSize& AccessCachedSize() const {
  919|    207|    return *reinterpret_cast<const internal::CachedSize*>(
  920|    207|        reinterpret_cast<const char*>(this) +
  921|    207|        GetClassData()->cached_size_offset);
  922|    207|  }
_ZNK6google8protobuf11MessageLite23IsInitializedWithErrorsEv:
  966|     30|  bool IsInitializedWithErrors() const {
  967|     30|    if (IsInitialized()) return true;
  ------------------
  |  Branch (967:9): [True: 30, False: 0]
  ------------------
  968|      0|    LogInitializationErrorMessage();
  969|      0|    return false;
  970|     30|  }
_ZN6google8protobuf8internal12ToCachedSizeEm:
  281|  1.05k|inline int ToCachedSize(size_t size) { return static_cast<int>(size); }
_ZNK6google8protobuf8internal14MessageCreator3NewILb0ENS0_11MessageLiteEEEPT0_PKS5_S8_PNS0_5ArenaE:
 1299|  88.0k|    const MessageLite* prototype_for_copy, Arena* arena) const {
 1300|  88.0k|  return PlacementNew<test_call>(prototype_for_func, prototype_for_copy,
 1301|  88.0k|                                 arena != nullptr
  ------------------
  |  Branch (1301:34): [True: 451, False: 87.6k]
  ------------------
 1302|  88.0k|                                     ? arena->AllocateAligned(allocation_size_)
 1303|  88.0k|                                     : ::operator new(allocation_size_),
 1304|  88.0k|                                 arena);
 1305|  88.0k|}
_ZNK6google8protobuf8internal14MessageCreator12PlacementNewILb0ENS0_11MessageLiteEEEPT0_PKS5_S8_PvPNS0_5ArenaE:
 1193|  88.0k|    const MessageLite* prototype_for_copy, void* mem, Arena* arena) const {
 1194|  88.0k|  ABSL_DCHECK_EQ(reinterpret_cast<uintptr_t>(mem) % alignment_, 0u);
  ------------------
  |  |   74|  88.0k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  88.0k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  88.0k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 88.0k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  88.0k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1195|  88.0k|  const Tag as_tag = tag();
 1196|       |  // When the feature is not enabled we skip the `as_tag` check since it is
 1197|       |  // unnecessary. Except for testing, where we want to test the copy logic even
 1198|       |  // when we can't use it for real messages.
 1199|  88.0k|  constexpr bool kMustBeFunc = !test_call && !internal::EnableCustomNew();
  ------------------
  |  Branch (1199:32): [True: 0, Folded]
  |  Branch (1199:46): [Folded, False: 0]
  ------------------
 1200|  88.0k|  static_assert(kFunc < 0 && !(kZeroInit < 0) && !(kMemcpy < 0),
 1201|  88.0k|                "Only kFunc must be the only negative value");
 1202|  88.0k|  if (ABSL_PREDICT_FALSE(kMustBeFunc || as_tag < 0)) {
  ------------------
  |  |  178|   176k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 88.0k]
  |  |  |  Branch (178:49): [Folded, False: 88.0k]
  |  |  |  Branch (178:59): [Folded, False: 88.0k]
  |  |  |  Branch (178:59): [True: 0, False: 88.0k]
  |  |  ------------------
  ------------------
 1203|      0|    PROTOBUF_DEBUG_COUNTER("MessageCreator.Func").Inc();
  ------------------
  |  |  983|      0|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1204|      0|    return static_cast<MessageLite*>(func_(prototype_for_func, mem, arena));
 1205|      0|  }
 1206|       |
 1207|  88.0k|  char* dst = static_cast<char*>(mem);
 1208|  88.0k|  const size_t size = allocation_size_;
 1209|  88.0k|  const char* src = reinterpret_cast<const char*>(prototype_for_copy);
 1210|       |
 1211|       |  // These are a bit more efficient than calling normal memset/memcpy because:
 1212|       |  //  - We know the minimum size is 16. We have a fallback for when it is not.
 1213|       |  //  - We can "underflow" the buffer because those are the MessageLite bytes
 1214|       |  //    we will set later.
 1215|  88.0k|#ifndef PROTO2_OPENSOURCE
 1216|       |  // This manual handling shows a 1.85% improvement in the parsing
 1217|       |  // microbenchmark.
 1218|       |  // TODO: Verify this is still the case.
 1219|  88.0k|#endif  // !PROTO2_OPENSOUCE
 1220|  88.0k|  if (as_tag == kZeroInit) {
  ------------------
  |  Branch (1220:7): [True: 73.8k, False: 14.1k]
  ------------------
 1221|       |    // Make sure the input is really all zeros.
 1222|  73.8k|    ABSL_DCHECK(std::all_of(src + sizeof(MessageLite), src + size,
  ------------------
  |  |   47|  73.8k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  73.8k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   147k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  73.8k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   147k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   147k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 73.8k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  73.8k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 73.8k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  73.8k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 73.8k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   147k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   147k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1223|  73.8k|                            [](auto c) { return c == 0; }));
 1224|       |
 1225|  73.8k|    if (sizeof(MessageLite) != 16) {
  ------------------
  |  Branch (1225:9): [Folded, False: 73.8k]
  ------------------
 1226|      0|      memset(dst, 0, size);
 1227|  73.8k|    } else if (size <= 32) {
  ------------------
  |  Branch (1227:16): [True: 3.47k, False: 70.4k]
  ------------------
 1228|  3.47k|      memset(dst + size - 16, 0, 16);
 1229|  70.4k|    } else if (size <= 64) {
  ------------------
  |  Branch (1229:16): [True: 70.3k, False: 42]
  ------------------
 1230|  70.3k|      memset(dst + 16, 0, 16);
 1231|  70.3k|      memset(dst + size - 32, 0, 32);
 1232|  70.3k|    } else {
 1233|    110|      for (size_t offset = 16; offset + 64 < size; offset += 64) {
  ------------------
  |  Branch (1233:32): [True: 68, False: 42]
  ------------------
 1234|     68|        absl::PrefetchToLocalCacheForWrite(dst + offset + 64);
 1235|     68|        memset(dst + offset, 0, 64);
 1236|     68|      }
 1237|     42|      memset(dst + size - 64, 0, 64);
 1238|     42|    }
 1239|  73.8k|  } else {
 1240|  14.1k|    ABSL_DCHECK_EQ(+as_tag, +kMemcpy);
  ------------------
  |  |   74|  14.1k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  14.1k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  14.1k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 14.1k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  14.1k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1241|       |
 1242|  14.1k|    if (sizeof(MessageLite) != 16) {
  ------------------
  |  Branch (1242:9): [Folded, False: 14.1k]
  ------------------
 1243|      0|      memcpy(dst, src, size);
 1244|  14.1k|    } else if (size <= 32) {
  ------------------
  |  Branch (1244:16): [True: 0, False: 14.1k]
  ------------------
 1245|      0|      memcpy(dst + size - 16, src + size - 16, 16);
 1246|  14.1k|    } else if (size <= 64) {
  ------------------
  |  Branch (1246:16): [True: 7.98k, False: 6.18k]
  ------------------
 1247|  7.98k|      memcpy(dst + 16, src + 16, 16);
 1248|  7.98k|      memcpy(dst + size - 32, src + size - 32, 32);
 1249|  7.98k|    } else {
 1250|  12.5k|      for (size_t offset = 16; offset + 64 < size; offset += 64) {
  ------------------
  |  Branch (1250:32): [True: 6.36k, False: 6.18k]
  ------------------
 1251|  6.36k|        absl::PrefetchToLocalCache(src + offset + 64);
 1252|  6.36k|        absl::PrefetchToLocalCacheForWrite(dst + offset + 64);
 1253|  6.36k|        memcpy(dst + offset, src + offset, 64);
 1254|  6.36k|      }
 1255|  6.18k|      memcpy(dst + size - 64, src + size - 64, 64);
 1256|  6.18k|    }
 1257|  14.1k|  }
 1258|       |
 1259|  88.0k|  if (arena_bits() != 0) {
  ------------------
  |  Branch (1259:7): [True: 5.79k, False: 82.2k]
  ------------------
 1260|  5.79k|    if (as_tag == kZeroInit) {
  ------------------
  |  Branch (1260:9): [True: 42, False: 5.75k]
  ------------------
 1261|     42|      PROTOBUF_DEBUG_COUNTER("MessageCreator.ZeroArena").Inc();
  ------------------
  |  |  983|     42|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1262|  5.75k|    } else {
 1263|  5.75k|      PROTOBUF_DEBUG_COUNTER("MessageCreator.McpyArena").Inc();
  ------------------
  |  |  983|  5.75k|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1264|  5.75k|    }
 1265|  82.2k|  } else {
 1266|  82.2k|    if (as_tag == kZeroInit) {
  ------------------
  |  Branch (1266:9): [True: 73.8k, False: 8.41k]
  ------------------
 1267|  73.8k|      PROTOBUF_DEBUG_COUNTER("MessageCreator.Zero").Inc();
  ------------------
  |  |  983|  73.8k|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1268|  73.8k|    } else {
 1269|  8.41k|      PROTOBUF_DEBUG_COUNTER("MessageCreator.Mcpy").Inc();
  ------------------
  |  |  983|  8.41k|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1270|  8.41k|    }
 1271|  82.2k|  }
 1272|       |
 1273|  88.0k|  if (internal::PerformDebugChecks() || arena != nullptr) {
  ------------------
  |  Branch (1273:7): [Folded, False: 88.0k]
  |  Branch (1273:41): [True: 451, False: 87.6k]
  ------------------
 1274|    451|    if (uintptr_t offsets = arena_bits()) {
  ------------------
  |  Branch (1274:19): [True: 80, False: 371]
  ------------------
 1275|    460|      do {
 1276|    460|        const size_t offset = absl::countr_zero(offsets) * sizeof(Arena*);
 1277|    460|        ABSL_DCHECK_LE(offset + sizeof(Arena*), size);
  ------------------
  |  |   78|    460|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|    460|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    460|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 460]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    460|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1278|       |        // Verify we are overwriting a null pointer. If we are not, there is a
 1279|       |        // bug somewhere.
 1280|    460|        ABSL_DCHECK_EQ(*reinterpret_cast<Arena**>(dst + offset), nullptr);
  ------------------
  |  |   74|    460|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    460|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    460|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 460]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    460|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1281|    460|        memcpy(dst + offset, &arena, sizeof(arena));
 1282|    460|        offsets &= offsets - 1;
 1283|    460|      } while (offsets != 0);
  ------------------
  |  Branch (1283:16): [True: 380, False: 80]
  ------------------
 1284|     80|    }
 1285|    451|  }
 1286|       |
 1287|       |  // The second memcpy overwrites part of the first, but the compiler should
 1288|       |  // avoid the double-write. It's easier than trying to avoid the overlap.
 1289|  88.0k|  memcpy(dst, static_cast<const void*>(prototype_for_copy),
 1290|  88.0k|         sizeof(MessageLite));
 1291|  88.0k|  memcpy(dst + PROTOBUF_FIELD_OFFSET(MessageLite, _internal_metadata_), &arena,
  ------------------
  |  |  303|  88.0k|  _Pragma("clang diagnostic push")                           \
  |  |  304|  88.0k|  _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
  |  |  305|  88.0k|  __builtin_offsetof(TYPE, FIELD)                            \
  |  |  306|  88.0k|  _Pragma("clang diagnostic pop")
  ------------------
 1292|  88.0k|         sizeof(arena));
 1293|  88.0k|  return Launder(reinterpret_cast<MessageLite*>(mem));
 1294|  88.0k|}
_ZN6google8protobuf11MessageLite9ParseFromILNS1_10ParseFlagsE1EN4absl12lts_2024011611string_viewEEEbRKT0_:
 1144|      6|bool MessageLite::ParseFrom(const T& input) {
 1145|      6|  if (flags & kParse) Clear();
  ------------------
  |  Branch (1145:7): [True: 6, Folded]
  ------------------
 1146|      6|  constexpr bool alias = (flags & kMergeWithAliasing) != 0;
 1147|      6|  const internal::TcParseTableBase* tc_table;
 1148|      6|  PROTOBUF_ALWAYS_INLINE_CALL tc_table = GetTcParseTable();
  ------------------
  |  |  187|      6|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1149|      6|  return internal::MergeFromImpl<alias>(input, this, tc_table, flags);
 1150|      6|}
_ZN6google8protobuf11MessageLite9ParseFromILNS1_10ParseFlagsE3EN4absl12lts_2024011611string_viewEEEbRKT0_:
 1144|  7.93k|bool MessageLite::ParseFrom(const T& input) {
 1145|  7.93k|  if (flags & kParse) Clear();
  ------------------
  |  Branch (1145:7): [True: 7.93k, Folded]
  ------------------
 1146|  7.93k|  constexpr bool alias = (flags & kMergeWithAliasing) != 0;
 1147|  7.93k|  const internal::TcParseTableBase* tc_table;
 1148|  7.93k|  PROTOBUF_ALWAYS_INLINE_CALL tc_table = GetTcParseTable();
  ------------------
  |  |  187|  7.93k|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1149|  7.93k|  return internal::MergeFromImpl<alias>(input, this, tc_table, flags);
 1150|  7.93k|}
extension_set.cc:_ZN6google8protobuf8internal16OnShutdownDeleteIN4absl12lts_2024011613flat_hash_setINS1_13ExtensionInfoENS1_12_GLOBAL__N_115ExtensionHasherENS7_11ExtensionEqENSt3__19allocatorIS6_EEEEEEPT_SF_:
 1180|      1|T* OnShutdownDelete(T* p) {
 1181|      1|  OnShutdownRun([](const void* pp) { delete static_cast<const T*>(pp); }, p);
 1182|      1|  return p;
 1183|      1|}
_ZN6google8protobuf8internal16OnShutdownDeleteINS0_25EncodedDescriptorDatabaseEEEPT_S5_:
 1180|      2|T* OnShutdownDelete(T* p) {
 1181|      2|  OnShutdownRun([](const void* pp) { delete static_cast<const T*>(pp); }, p);
 1182|      2|  return p;
 1183|      2|}
_ZN6google8protobuf8internal16OnShutdownDeleteINS0_18FeatureSetDefaultsEEEPT_S5_:
 1180|      1|T* OnShutdownDelete(T* p) {
 1181|      1|  OnShutdownRun([](const void* pp) { delete static_cast<const T*>(pp); }, p);
 1182|      1|  return p;
 1183|      1|}
_ZN6google8protobuf8internal16OnShutdownDeleteINS0_14DescriptorPoolEEEPT_S5_:
 1180|      2|T* OnShutdownDelete(T* p) {
 1181|      2|  OnShutdownRun([](const void* pp) { delete static_cast<const T*>(pp); }, p);
 1182|      2|  return p;
 1183|      2|}
_ZN6google8protobuf8internal16OnShutdownDeleteINS0_10ReflectionEEEPT_S5_:
 1180|     41|T* OnShutdownDelete(T* p) {
 1181|     41|  OnShutdownRun([](const void* pp) { delete static_cast<const T*>(pp); }, p);
 1182|     41|  return p;
 1183|     41|}
message.cc:_ZN6google8protobuf8internal16OnShutdownDeleteINS0_12_GLOBAL__N_123GeneratedMessageFactoryEEEPT_S6_:
 1180|      2|T* OnShutdownDelete(T* p) {
 1181|      2|  OnShutdownRun([](const void* pp) { delete static_cast<const T*>(pp); }, p);
 1182|      2|  return p;
 1183|      2|}

_ZN6google8protobuf8internal16InternalMetadata22mutable_unknown_fieldsINS0_15UnknownFieldSetEEEPT_v:
   92|  56.4k|  PROTOBUF_NDEBUG_INLINE T* mutable_unknown_fields() {
   93|  56.4k|    if (PROTOBUF_PREDICT_TRUE(have_unknown_fields())) {
  ------------------
  |  |  364|  56.4k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 49.7k, False: 6.69k]
  |  |  |  Branch (364:53): [Folded, False: 56.4k]
  |  |  |  Branch (364:62): [True: 49.7k, False: 6.69k]
  |  |  ------------------
  ------------------
   94|  49.7k|      return &PtrValue<Container<T>>()->unknown_fields;
   95|  49.7k|    } else {
   96|  6.69k|      return mutable_unknown_fields_slow<T>();
   97|  6.69k|    }
   98|  56.4k|  }
_ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v:
  169|  6.69k|  PROTOBUF_NOINLINE T* mutable_unknown_fields_slow() {
  170|  6.69k|    Arena* my_arena = arena();
  171|  6.69k|    Container<T>* container = Arena::Create<Container<T>>(my_arena);
  172|       |    // Two-step assignment works around a bug in clang's static analyzer:
  173|       |    // https://bugs.llvm.org/show_bug.cgi?id=34198.
  174|  6.69k|    ptr_ = reinterpret_cast<intptr_t>(container);
  175|  6.69k|    ptr_ |= kUnknownFieldsTagMask;
  176|  6.69k|    container->arena = my_arena;
  177|  6.69k|    return &(container->unknown_fields);
  178|  6.69k|  }
_ZN6google8protobuf8internal16InternalMetadata21DeleteOutOfLineHelperINS0_15UnknownFieldSetEEEvv:
  161|  6.69k|  PROTOBUF_NOINLINE void DeleteOutOfLineHelper() {
  162|  6.69k|    delete PtrValue<Container<T>>();
  163|       |    // TODO:  This store is load-bearing.  Since we are destructing
  164|       |    // the message at this point, see if we can eliminate it.
  165|  6.69k|    ptr_ = 0;
  166|  6.69k|  }
_ZN6google8protobuf8internal16InternalMetadata7DoClearINS0_15UnknownFieldSetEEEvv:
  183|    622|  PROTOBUF_NOINLINE void DoClear() {
  184|    622|    mutable_unknown_fields<T>()->Clear();
  185|    622|  }

_ZN6google8protobuf8internal18EpsCopyInputStream4NextEv:
  134|      4|const char* EpsCopyInputStream::Next() {
  135|      4|  ABSL_DCHECK(limit_ > kSlopBytes);
  ------------------
  |  |   47|      4|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      4|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      8|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      4|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      8|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      8|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      4|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      4|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      8|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      8|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|      4|  auto p = NextBuffer(0 /* immaterial */, -1);
  137|      4|  if (p == nullptr) {
  ------------------
  |  Branch (137:7): [True: 0, False: 4]
  ------------------
  138|      0|    limit_end_ = buffer_end_;
  139|       |    // Distinguish ending on a pushed limit or ending on end-of-stream.
  140|      0|    SetEndOfStream();
  141|      0|    return nullptr;
  142|      0|  }
  143|      4|  limit_ -= buffer_end_ - p;  // Adjust limit_ relative to new anchor
  144|      4|  limit_end_ = buffer_end_ + std::min(0, limit_);
  145|      4|  return p;
  146|      4|}
_ZN6google8protobuf8internal18EpsCopyInputStream12DoneFallbackEii:
  149|  5.90k|                                                              int depth) {
  150|       |  // Did we exceeded the limit (parse error).
  151|  5.90k|  if (PROTOBUF_PREDICT_FALSE(overrun > limit_)) return {nullptr, true};
  ------------------
  |  |  365|  5.90k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 19, False: 5.89k]
  |  |  |  Branch (365:54): [Folded, False: 5.90k]
  |  |  |  Branch (365:63): [True: 19, False: 5.89k]
  |  |  ------------------
  ------------------
  152|  5.89k|  ABSL_DCHECK(overrun != limit_);  // Guaranteed by caller.
  ------------------
  |  |   47|  5.89k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  5.90k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  17.6k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  5.89k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  11.7k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  11.7k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 5.89k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  5.89k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 5.89k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  5.89k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 5.89k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  17.6k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  17.6k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  153|  5.89k|  ABSL_DCHECK(overrun < limit_);   // Follows from above
  ------------------
  |  |   47|  5.89k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  5.89k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  17.6k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  5.89k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  11.7k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  11.7k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 5.89k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  5.89k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 5.89k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  5.89k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 5.89k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  17.6k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  17.6k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  154|       |  // TODO Instead of this dcheck we could just assign, and remove
  155|       |  // updating the limit_end from PopLimit, ie.
  156|       |  // limit_end_ = buffer_end_ + (std::min)(0, limit_);
  157|       |  // if (ptr < limit_end_) return {ptr, false};
  158|  5.89k|  ABSL_DCHECK(limit_end_ == buffer_end_ + (std::min)(0, limit_));
  ------------------
  |  |   47|  5.89k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  5.89k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  17.6k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  5.89k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  11.7k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  11.7k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 5.89k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  5.89k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 5.89k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  5.89k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 5.89k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  17.6k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  17.6k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|       |  // At this point we know the following assertion holds.
  160|  5.89k|  ABSL_DCHECK_GT(limit_, 0);
  ------------------
  |  |   84|  5.89k|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|  5.89k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  5.89k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 5.89k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  5.89k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  161|  5.89k|  ABSL_DCHECK(limit_end_ == buffer_end_);  // because limit_ > 0
  ------------------
  |  |   47|  5.89k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  5.89k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  11.7k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  5.89k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  11.7k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  11.7k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 5.89k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  5.89k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 5.89k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  5.89k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 5.89k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  11.7k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  11.7k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  162|  5.89k|  const char* p;
  163|  5.89k|  do {
  164|       |    // We are past the end of buffer_end_, in the slop region.
  165|  5.89k|    ABSL_DCHECK_GE(overrun, 0);
  ------------------
  |  |   82|  5.89k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  5.89k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  5.89k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 5.89k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  5.89k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  166|  5.89k|    p = NextBuffer(overrun, depth);
  167|  5.89k|    if (p == nullptr) {
  ------------------
  |  Branch (167:9): [True: 9, False: 5.88k]
  ------------------
  168|       |      // We are at the end of the stream
  169|      9|      if (PROTOBUF_PREDICT_FALSE(overrun != 0)) return {nullptr, true};
  ------------------
  |  |  365|      9|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 3, False: 6]
  |  |  |  Branch (365:54): [Folded, False: 9]
  |  |  |  Branch (365:63): [True: 3, False: 6]
  |  |  ------------------
  ------------------
  170|      6|      ABSL_DCHECK_GT(limit_, 0);
  ------------------
  |  |   84|      6|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|      6|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      6|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 6]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      6|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|      6|      limit_end_ = buffer_end_;
  172|       |      // Distinguish ending on a pushed limit or ending on end-of-stream.
  173|      6|      SetEndOfStream();
  174|      6|      return {buffer_end_, true};
  175|      9|    }
  176|  5.88k|    limit_ -= buffer_end_ - p;  // Adjust limit_ relative to new anchor
  177|  5.88k|    p += overrun;
  178|  5.88k|    overrun = p - buffer_end_;
  179|  5.88k|  } while (overrun >= 0);
  ------------------
  |  Branch (179:12): [True: 0, False: 5.88k]
  ------------------
  180|  5.88k|  limit_end_ = buffer_end_ + std::min(0, limit_);
  181|  5.88k|  return {p, false};
  182|  5.89k|}
_ZN6google8protobuf8internal18EpsCopyInputStream18ReadStringFallbackEPKciPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  189|      8|                                                   std::string* str) {
  190|      8|  str->clear();
  191|      8|  if (PROTOBUF_PREDICT_TRUE(size <= buffer_end_ - ptr + limit_)) {
  ------------------
  |  |  364|      8|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 4, False: 4]
  |  |  |  Branch (364:53): [Folded, False: 8]
  |  |  |  Branch (364:62): [True: 4, False: 4]
  |  |  ------------------
  ------------------
  192|       |    // Reserve the string up to a static safe size. If strings are bigger than
  193|       |    // this we proceed by growing the string as needed. This protects against
  194|       |    // malicious payloads making protobuf hold on to a lot of memory.
  195|      4|    str->reserve(str->size() + std::min<int>(size, kSafeStringSize));
  196|      4|  }
  197|      8|  return AppendSize(ptr, size,
  198|      8|                    [str](const char* p, int s) { str->append(p, s); });
  199|      8|}
_ZN6google8protobuf8internal12ParseContext28ReadSizeAndPushLimitAndDepthEPKcPNS1_18EpsCopyInputStream10LimitTokenE:
  299|      8|                                                       LimitToken* old_limit) {
  300|      8|  return ReadSizeAndPushLimitAndDepthInlined(ptr, old_limit);
  301|      8|}
_ZN6google8protobuf8internal12ParseContext12ParseMessageEPNS0_11MessageLiteEPKc:
  303|      8|const char* ParseContext::ParseMessage(MessageLite* msg, const char* ptr) {
  304|      8|  LimitToken old;
  305|      8|  ptr = ReadSizeAndPushLimitAndDepth(ptr, &old);
  306|      8|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (306:7): [True: 0, False: 8]
  ------------------
  307|      8|  auto old_depth = depth_;
  308|      8|  ptr = msg->_InternalParse(ptr, this);
  309|      8|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|      8|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|      8|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      8|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 8]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      8|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (309:7): [True: 8, False: 0]
  ------------------
  310|      8|  depth_++;
  311|      8|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (311:7): [True: 0, False: 8]
  ------------------
  312|      8|  return ptr;
  313|      8|}
_ZN6google8protobuf8internal17VarintParseSlow64EPKcj:
  355|    739|                                                   uint32_t res32) {
  356|    739|  uint64_t res = res32;
  357|  2.41k|  for (std::uint32_t i = 1; i < 10; i++) {
  ------------------
  |  Branch (357:29): [True: 2.41k, False: 0]
  ------------------
  358|  2.41k|    uint64_t byte = static_cast<uint8_t>(p[i]);
  359|  2.41k|    res += (byte - 1) << (7 * i);
  360|  2.41k|    if (PROTOBUF_PREDICT_TRUE(byte < 128)) {
  ------------------
  |  |  364|  2.41k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 739, False: 1.67k]
  |  |  |  Branch (364:53): [Folded, False: 2.41k]
  |  |  |  Branch (364:62): [True: 739, False: 1.67k]
  |  |  ------------------
  ------------------
  361|    739|      return {p + i + 1, res};
  362|    739|    }
  363|  2.41k|  }
  364|      0|  return {nullptr, 0};
  365|    739|}
_ZN6google8protobuf8internal15ReadTagFallbackEPKcj:
  367|     95|std::pair<const char*, uint32_t> ReadTagFallback(const char* p, uint32_t res) {
  368|    109|  for (std::uint32_t i = 2; i < 5; i++) {
  ------------------
  |  Branch (368:29): [True: 109, False: 0]
  ------------------
  369|    109|    uint32_t byte = static_cast<uint8_t>(p[i]);
  370|    109|    res += (byte - 1) << (7 * i);
  371|    109|    if (PROTOBUF_PREDICT_TRUE(byte < 128)) {
  ------------------
  |  |  364|    109|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 95, False: 14]
  |  |  |  Branch (364:53): [Folded, False: 109]
  |  |  |  Branch (364:62): [True: 95, False: 14]
  |  |  ------------------
  ------------------
  372|     95|      return {p + i + 1, res};
  373|     95|    }
  374|    109|  }
  375|      0|  return {nullptr, 0};
  376|     95|}
_ZN6google8protobuf8internal16ReadSizeFallbackEPKcj:
  378|  3.80k|std::pair<const char*, int32_t> ReadSizeFallback(const char* p, uint32_t res) {
  379|  3.87k|  for (std::uint32_t i = 1; i < 4; i++) {
  ------------------
  |  Branch (379:29): [True: 3.87k, False: 9]
  ------------------
  380|  3.87k|    uint32_t byte = static_cast<uint8_t>(p[i]);
  381|  3.87k|    res += (byte - 1) << (7 * i);
  382|  3.87k|    if (PROTOBUF_PREDICT_TRUE(byte < 128)) {
  ------------------
  |  |  364|  3.87k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 3.79k, False: 73]
  |  |  |  Branch (364:53): [Folded, False: 3.87k]
  |  |  |  Branch (364:62): [True: 3.79k, False: 73]
  |  |  ------------------
  ------------------
  383|  3.79k|      return {p + i + 1, res};
  384|  3.79k|    }
  385|  3.87k|  }
  386|      9|  std::uint32_t byte = static_cast<uint8_t>(p[4]);
  387|      9|  if (PROTOBUF_PREDICT_FALSE(byte >= 8)) return {nullptr, 0};  // size >= 2gb
  ------------------
  |  |  365|      9|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 7]
  |  |  |  Branch (365:54): [Folded, False: 9]
  |  |  |  Branch (365:63): [True: 2, False: 7]
  |  |  ------------------
  ------------------
  388|      7|  res += (byte - 1) << 28;
  389|       |  // Protect against sign integer overflow in PushLimit. Limits are relative
  390|       |  // to buffer ends and ptr could potential be kSlopBytes beyond a buffer end.
  391|       |  // To protect against overflow we reject limits absurdly close to INT_MAX.
  392|      7|  if (PROTOBUF_PREDICT_FALSE(res > INT_MAX - ParseContext::kSlopBytes)) {
  ------------------
  |  |  365|      7|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 5]
  |  |  |  Branch (365:54): [Folded, False: 7]
  |  |  |  Branch (365:63): [True: 2, False: 5]
  |  |  ------------------
  ------------------
  393|      2|    return {nullptr, 0};
  394|      2|  }
  395|      5|  return {p + 5, res};
  396|      7|}
_ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcPNS1_12ParseContextE:
  419|  18.4k|                                     ParseContext* ctx) {
  420|  18.4k|  int size = ReadSize(&ptr);
  421|  18.4k|  if (!ptr) return nullptr;
  ------------------
  |  Branch (421:7): [True: 2, False: 18.4k]
  ------------------
  422|  18.4k|  return ctx->ReadString(ptr, size, s);
  423|  18.4k|}
_ZN6google8protobuf8internal18EpsCopyInputStream10NextBufferEii:
   79|  5.89k|const char* EpsCopyInputStream::NextBuffer(int overrun, int depth) {
   80|  5.89k|  if (next_chunk_ == nullptr) return nullptr;  // We've reached end of stream.
  ------------------
  |  Branch (80:7): [True: 9, False: 5.88k]
  ------------------
   81|  5.88k|  if (next_chunk_ != patch_buffer_) {
  ------------------
  |  Branch (81:7): [True: 0, False: 5.88k]
  ------------------
   82|      0|    ABSL_DCHECK(size_ > kSlopBytes);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|       |    // The chunk is large enough to be used directly
   84|      0|    buffer_end_ = next_chunk_ + size_ - kSlopBytes;
   85|      0|    auto res = next_chunk_;
   86|      0|    next_chunk_ = patch_buffer_;
   87|      0|    if (aliasing_ == kOnPatch) aliasing_ = kNoDelta;
  ------------------
  |  Branch (87:9): [True: 0, False: 0]
  ------------------
   88|      0|    return res;
   89|      0|  }
   90|       |  // Move the slop bytes of previous buffer to start of the patch buffer.
   91|       |  // Note we must use memmove because the previous buffer could be part of
   92|       |  // patch_buffer_.
   93|  5.88k|  std::memmove(patch_buffer_, buffer_end_, kSlopBytes);
   94|  5.88k|  if (overall_limit_ > 0 &&
  ------------------
  |  Branch (94:7): [True: 0, False: 5.88k]
  ------------------
   95|      0|      (depth < 0 || !ParseEndsInSlopRegion(patch_buffer_, overrun, depth))) {
  ------------------
  |  Branch (95:8): [True: 0, False: 0]
  |  Branch (95:21): [True: 0, False: 0]
  ------------------
   96|      0|    const void* data;
   97|       |    // ZeroCopyInputStream indicates Next may return 0 size buffers. Hence
   98|       |    // we loop.
   99|      0|    while (StreamNext(&data)) {
  ------------------
  |  Branch (99:12): [True: 0, False: 0]
  ------------------
  100|      0|      if (size_ > kSlopBytes) {
  ------------------
  |  Branch (100:11): [True: 0, False: 0]
  ------------------
  101|       |        // We got a large chunk
  102|      0|        std::memcpy(patch_buffer_ + kSlopBytes, data, kSlopBytes);
  103|      0|        next_chunk_ = static_cast<const char*>(data);
  104|      0|        buffer_end_ = patch_buffer_ + kSlopBytes;
  105|      0|        if (aliasing_ >= kNoDelta) aliasing_ = kOnPatch;
  ------------------
  |  Branch (105:13): [True: 0, False: 0]
  ------------------
  106|      0|        return patch_buffer_;
  107|      0|      } else if (size_ > 0) {
  ------------------
  |  Branch (107:18): [True: 0, False: 0]
  ------------------
  108|      0|        std::memcpy(patch_buffer_ + kSlopBytes, data, size_);
  109|      0|        next_chunk_ = patch_buffer_;
  110|      0|        buffer_end_ = patch_buffer_ + size_;
  111|      0|        if (aliasing_ >= kNoDelta) aliasing_ = kOnPatch;
  ------------------
  |  Branch (111:13): [True: 0, False: 0]
  ------------------
  112|      0|        return patch_buffer_;
  113|      0|      }
  114|      0|      ABSL_DCHECK(size_ == 0) << size_;
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      0|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      0|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  115|      0|    }
  116|      0|    overall_limit_ = 0;  // Next failed, no more needs for next
  117|      0|  }
  118|       |  // End of stream or array
  119|  5.88k|  if (aliasing_ == kNoDelta) {
  ------------------
  |  Branch (119:7): [True: 0, False: 5.88k]
  ------------------
  120|       |    // If there is no more block and aliasing is true, the previous block
  121|       |    // is still valid and we can alias. We have users relying on string_view's
  122|       |    // obtained from protos to outlive the proto, when the parse was from an
  123|       |    // array. This guarantees string_view's are always aliased if parsed from
  124|       |    // an array.
  125|      0|    aliasing_ = reinterpret_cast<std::uintptr_t>(buffer_end_) -
  126|      0|                reinterpret_cast<std::uintptr_t>(patch_buffer_);
  127|      0|  }
  128|  5.88k|  next_chunk_ = nullptr;
  129|  5.88k|  buffer_end_ = patch_buffer_ + kSlopBytes;
  130|  5.88k|  size_ = 0;
  131|  5.88k|  return patch_buffer_;
  132|  5.88k|}
parse_context.cc:_ZZN6google8protobuf8internal18EpsCopyInputStream18ReadStringFallbackEPKciPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEENK3$_0clES4_i:
  198|      7|                    [str](const char* p, int s) { str->append(p, s); });

_ZN6google8protobuf8internal18EpsCopyInputStreamC2Eb:
  100|  7.96k|      : aliasing_(enable_aliasing ? kOnPatch : kNoAliasing) {}
  ------------------
  |  Branch (100:19): [True: 0, False: 7.96k]
  ------------------
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenC2Ev:
  119|  88.0k|    LimitToken() { PROTOBUF_POISON_MEMORY_REGION(&token_, sizeof(token_)); }
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenC2Ei:
  121|  88.0k|    explicit LimitToken(int token) : token_(token) {
  122|  88.0k|      PROTOBUF_UNPOISON_MEMORY_REGION(&token_, sizeof(token_));
  123|  88.0k|    }
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenC2EOS3_:
  128|  88.0k|    LimitToken(LimitToken&& other) { *this = std::move(other); }
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenaSEOS3_:
  130|   176k|    LimitToken& operator=(LimitToken&& other) {
  131|   176k|      PROTOBUF_UNPOISON_MEMORY_REGION(&token_, sizeof(token_));
  132|   176k|      token_ = other.token_;
  133|   176k|      PROTOBUF_POISON_MEMORY_REGION(&other.token_, sizeof(token_));
  134|   176k|      return *this;
  135|   176k|    }
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenD2Ev:
  137|   264k|    ~LimitToken() { PROTOBUF_UNPOISON_MEMORY_REGION(&token_, sizeof(token_)); }
_ZNO6google8protobuf8internal18EpsCopyInputStream10LimitToken5tokenEv:
  139|  88.0k|    int token() && {
  140|  88.0k|      int t = token_;
  141|  88.0k|      PROTOBUF_POISON_MEMORY_REGION(&token_, sizeof(token_));
  142|  88.0k|      return t;
  143|  88.0k|    }
_ZN6google8protobuf8internal18EpsCopyInputStream9PushLimitEPKci:
  150|  88.0k|  PROTOBUF_NODISCARD LimitToken PushLimit(const char* ptr, int limit) {
  151|  88.0k|    ABSL_DCHECK(limit >= 0 && limit <= INT_MAX - kSlopBytes);
  ------------------
  |  |   47|  88.0k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  88.0k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   176k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  88.0k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   176k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   176k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 88.0k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  88.0k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 88.0k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  88.0k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 88.0k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   176k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   176k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  152|       |    // This add is safe due to the invariant above, because
  153|       |    // ptr - buffer_end_ <= kSlopBytes.
  154|  88.0k|    limit += static_cast<int>(ptr - buffer_end_);
  155|  88.0k|    limit_end_ = buffer_end_ + (std::min)(0, limit);
  156|  88.0k|    auto old_limit = limit_;
  157|  88.0k|    limit_ = limit;
  158|  88.0k|    return LimitToken(old_limit - limit);
  159|  88.0k|  }
_ZN6google8protobuf8internal18EpsCopyInputStream8PopLimitENS2_10LimitTokenE:
  161|  88.0k|  PROTOBUF_NODISCARD bool PopLimit(LimitToken delta) {
  162|       |    // We must update the limit first before the early return. Otherwise, we can
  163|       |    // end up with an invalid limit and it can lead to integer overflows.
  164|  88.0k|    limit_ = limit_ + std::move(delta).token();
  165|  88.0k|    if (PROTOBUF_PREDICT_FALSE(!EndedAtLimit())) return false;
  ------------------
  |  |  365|  88.0k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 21, False: 88.0k]
  |  |  |  Branch (365:54): [Folded, False: 88.0k]
  |  |  |  Branch (365:63): [True: 21, False: 88.0k]
  |  |  ------------------
  ------------------
  166|       |    // TODO We could remove this line and hoist the code to
  167|       |    // DoneFallback. Study the perf/bin-size effects.
  168|  88.0k|    limit_end_ = buffer_end_ + (std::min)(0, limit_);
  169|  88.0k|    return true;
  170|  88.0k|  }
_ZN6google8protobuf8internal18EpsCopyInputStream10ReadStringEPKciPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  179|  45.7k|                                            std::string* s) {
  180|  45.7k|    if (size <= buffer_end_ + kSlopBytes - ptr) {
  ------------------
  |  Branch (180:9): [True: 45.7k, False: 8]
  ------------------
  181|       |      // Fundamentally we just want to do assign to the string.
  182|       |      // However micro-benchmarks regress on string reading cases. So we copy
  183|       |      // the same logic from the old CodedInputStream ReadString. Note: as of
  184|       |      // Apr 2021, this is still a significant win over `assign()`.
  185|  45.7k|      absl::strings_internal::STLStringResizeUninitialized(s, size);
  186|  45.7k|      char* z = &(*s)[0];
  187|  45.7k|      memcpy(z, ptr, size);
  188|  45.7k|      return ptr + size;
  189|  45.7k|    }
  190|      8|    return ReadStringFallback(ptr, size, s);
  191|  45.7k|  }
_ZNK6google8protobuf8internal18EpsCopyInputStream7LastTagEv:
  232|   149k|  uint32_t LastTag() const { return last_tag_minus_1_ + 1; }
_ZN6google8protobuf8internal18EpsCopyInputStream15ConsumeEndGroupEj:
  233|    989|  bool ConsumeEndGroup(uint32_t start_tag) {
  234|    989|    bool res = last_tag_minus_1_ == start_tag;
  235|    989|    last_tag_minus_1_ = 0;
  236|    989|    return res;
  237|    989|  }
_ZNK6google8protobuf8internal18EpsCopyInputStream12EndedAtLimitEv:
  238|  95.9k|  bool EndedAtLimit() const { return last_tag_minus_1_ == 0; }
_ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj:
  240|    999|  void SetLastTag(uint32_t tag) { last_tag_minus_1_ = tag - 1; }
_ZN6google8protobuf8internal18EpsCopyInputStream14SetEndOfStreamEv:
  241|      6|  void SetEndOfStream() { last_tag_minus_1_ = 1; }
_ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc:
  256|   241k|  bool DataAvailable(const char* ptr) { return ptr < limit_end_; }
_ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci:
  262|   246k|  bool DoneWithCheck(const char** ptr, int d) {
  263|   246k|    ABSL_DCHECK(*ptr);
  ------------------
  |  |   47|   246k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|   246k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   492k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   246k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   492k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   492k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 246k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   246k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 246k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   246k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 246k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   492k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   492k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  264|   246k|    if (PROTOBUF_PREDICT_TRUE(*ptr < limit_end_)) return false;
  ------------------
  |  |  364|   246k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 144k, False: 101k]
  |  |  |  Branch (364:53): [Folded, False: 246k]
  |  |  |  Branch (364:62): [True: 144k, False: 101k]
  |  |  ------------------
  ------------------
  265|   101k|    int overrun = static_cast<int>(*ptr - buffer_end_);
  266|   101k|    ABSL_DCHECK_LE(overrun, kSlopBytes);  // Guaranteed by parse loop.
  ------------------
  |  |   78|   101k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|   101k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   101k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 101k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   101k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  267|   101k|    if (overrun ==
  ------------------
  |  Branch (267:9): [True: 95.9k, False: 5.90k]
  ------------------
  268|   101k|        limit_) {  //  No need to flip buffers if we ended on a limit.
  269|       |      // If we actually overrun the buffer and next_chunk_ is null, it means
  270|       |      // the stream ended and we passed the stream end.
  271|  95.9k|      if (overrun > 0 && next_chunk_ == nullptr) *ptr = nullptr;
  ------------------
  |  Branch (271:11): [True: 3.80k, False: 92.0k]
  |  Branch (271:26): [True: 8, False: 3.80k]
  ------------------
  272|  95.9k|      return true;
  273|  95.9k|    }
  274|  5.90k|    auto res = DoneFallback(overrun, d);
  275|  5.90k|    *ptr = res.first;
  276|  5.90k|    return res.second;
  277|   101k|  }
_ZN6google8protobuf8internal18EpsCopyInputStream8InitFromEN4absl12lts_2024011611string_viewE:
  279|  7.96k|  const char* InitFrom(absl::string_view flat) {
  280|  7.96k|    overall_limit_ = 0;
  281|  7.96k|    if (flat.size() > kSlopBytes) {
  ------------------
  |  Branch (281:9): [True: 7.37k, False: 587]
  ------------------
  282|  7.37k|      limit_ = kSlopBytes;
  283|  7.37k|      limit_end_ = buffer_end_ = flat.data() + flat.size() - kSlopBytes;
  284|  7.37k|      next_chunk_ = patch_buffer_;
  285|  7.37k|      if (aliasing_ == kOnPatch) aliasing_ = kNoDelta;
  ------------------
  |  Branch (285:11): [True: 0, False: 7.37k]
  ------------------
  286|  7.37k|      return flat.data();
  287|  7.37k|    } else {
  288|    587|      if (!flat.empty()) {
  ------------------
  |  Branch (288:11): [True: 587, False: 0]
  ------------------
  289|    587|        std::memcpy(patch_buffer_, flat.data(), flat.size());
  290|    587|      }
  291|    587|      limit_ = 0;
  292|    587|      limit_end_ = buffer_end_ = patch_buffer_ + flat.size();
  293|    587|      next_chunk_ = nullptr;
  294|    587|      if (aliasing_ == kOnPatch) {
  ------------------
  |  Branch (294:11): [True: 0, False: 587]
  ------------------
  295|      0|        aliasing_ = reinterpret_cast<std::uintptr_t>(flat.data()) -
  296|      0|                    reinterpret_cast<std::uintptr_t>(patch_buffer_);
  297|      0|      }
  298|    587|      return patch_buffer_;
  299|    587|    }
  300|  7.96k|  }
_ZN6google8protobuf8internal12ParseContext4DoneEPPKc:
  487|   246k|  bool Done(const char** ptr) { return DoneWithCheck(ptr, group_depth_); }
_ZNK6google8protobuf8internal12ParseContext4dataEv:
  492|      8|  const Data& data() const { return data_; }
_ZN6google8protobuf8internal12EndianHelperILi1EE4LoadEPKv:
  578|   126k|  static uint8_t Load(const void* p) { return *static_cast<const uint8_t*>(p); }
_ZN6google8protobuf8internal12EndianHelperILi2EE4LoadEPKv:
  583|   219k|  static uint16_t Load(const void* p) {
  584|   219k|    uint16_t tmp;
  585|   219k|    std::memcpy(&tmp, p, 2);
  586|   219k|    return little_endian::ToHost(tmp);
  587|   219k|  }
_ZN6google8protobuf8internal12EndianHelperILi4EE4LoadEPKv:
  592|  3.26k|  static uint32_t Load(const void* p) {
  593|  3.26k|    uint32_t tmp;
  594|  3.26k|    std::memcpy(&tmp, p, 4);
  595|  3.26k|    return little_endian::ToHost(tmp);
  596|  3.26k|  }
_ZN6google8protobuf8internal12EndianHelperILi8EE4LoadEPKv:
  601|  6.25k|  static uint64_t Load(const void* p) {
  602|  6.25k|    uint64_t tmp;
  603|  6.25k|    std::memcpy(&tmp, p, 8);
  604|  6.25k|    return little_endian::ToHost(tmp);
  605|  6.25k|  }
_ZN6google8protobuf8internal10RotateLeftImEET_S3_i:
  930|  3.46k|    T x, int s) noexcept {
  931|  3.46k|  return static_cast<T>(x << (s & (std::numeric_limits<T>::digits - 1))) |
  932|  3.46k|         static_cast<T>(x >> ((-s) & (std::numeric_limits<T>::digits - 1)));
  933|  3.46k|}
_ZN6google8protobuf8internal15VarintParseSlowEPKcjPm:
  632|    739|inline const char* VarintParseSlow(const char* p, uint32_t res, uint64_t* out) {
  633|    739|  auto tmp = VarintParseSlow64(p, res);
  634|    739|  *out = tmp.second;
  635|    739|  return tmp.first;
  636|    739|}
_ZN6google8protobuf8internal7ReadTagEPKcPjj:
  906|  2.66k|                           uint32_t /*max_tag*/ = 0) {
  907|  2.66k|  uint32_t res = static_cast<uint8_t>(p[0]);
  908|  2.66k|  if (res < 128) {
  ------------------
  |  Branch (908:7): [True: 1.47k, False: 1.19k]
  ------------------
  909|  1.47k|    *out = res;
  910|  1.47k|    return p + 1;
  911|  1.47k|  }
  912|  1.19k|  uint32_t second = static_cast<uint8_t>(p[1]);
  913|  1.19k|  res += (second - 1) << 7;
  914|  1.19k|  if (second < 128) {
  ------------------
  |  Branch (914:7): [True: 1.09k, False: 95]
  ------------------
  915|  1.09k|    *out = res;
  916|  1.09k|    return p + 2;
  917|  1.09k|  }
  918|     95|  auto tmp = ReadTagFallback(p, res);
  919|     95|  *out = tmp.second;
  920|     95|  return tmp.first;
  921|  1.19k|}
_ZN6google8protobuf8internal26RotRight7AndReplaceLowByteEmRKc:
  936|  3.93k|RotRight7AndReplaceLowByte(uint64_t res, const char& byte) {
  937|       |  // TODO: remove the inline assembly
  938|  3.93k|#if defined(__x86_64__) && defined(__GNUC__)
  939|       |  // This will only use one register for `res`.
  940|       |  // `byte` comes as a reference to allow the compiler to generate code like:
  941|       |  //
  942|       |  //   rorq    $7, %rcx
  943|       |  //   movb    1(%rax), %cl
  944|       |  //
  945|       |  // which avoids loading the incoming bytes into a separate register first.
  946|  3.93k|  asm("ror $7,%0\n\t"
  947|  3.93k|      "movb %1,%b0"
  948|  3.93k|      : "+r"(res)
  949|  3.93k|      : "m"(byte));
  950|       |#else
  951|       |  res = RotateLeft(res, -7);
  952|       |  res = res & ~0xFF;
  953|       |  res |= 0xFF & byte;
  954|       |#endif
  955|  3.93k|  return res;
  956|  3.93k|}
_ZN6google8protobuf8internal14ReadTagInlinedEPKcPj:
  959|  83.9k|                                                         uint32_t* out) {
  960|  83.9k|  uint64_t res = 0xFF & ptr[0];
  961|  83.9k|  if (PROTOBUF_PREDICT_FALSE(res >= 128)) {
  ------------------
  |  |  365|  83.9k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 3.46k, False: 80.5k]
  |  |  |  Branch (365:54): [Folded, False: 83.9k]
  |  |  |  Branch (365:63): [True: 3.46k, False: 80.5k]
  |  |  ------------------
  ------------------
  962|  3.46k|    res = RotRight7AndReplaceLowByte(res, ptr[1]);
  963|  3.46k|    if (PROTOBUF_PREDICT_FALSE(res & 0x80)) {
  ------------------
  |  |  365|  3.46k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 377, False: 3.09k]
  |  |  |  Branch (365:54): [Folded, False: 3.46k]
  |  |  |  Branch (365:63): [True: 377, False: 3.09k]
  |  |  ------------------
  ------------------
  964|    377|      res = RotRight7AndReplaceLowByte(res, ptr[2]);
  965|    377|      if (PROTOBUF_PREDICT_FALSE(res & 0x80)) {
  ------------------
  |  |  365|    377|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 64, False: 313]
  |  |  |  Branch (365:54): [Folded, False: 377]
  |  |  |  Branch (365:63): [True: 64, False: 313]
  |  |  ------------------
  ------------------
  966|     64|        res = RotRight7AndReplaceLowByte(res, ptr[3]);
  967|     64|        if (PROTOBUF_PREDICT_FALSE(res & 0x80)) {
  ------------------
  |  |  365|     64|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 27, False: 37]
  |  |  |  Branch (365:54): [Folded, False: 64]
  |  |  |  Branch (365:63): [True: 27, False: 37]
  |  |  ------------------
  ------------------
  968|       |          // Note: this wouldn't work if res were 32-bit,
  969|       |          // because then replacing the low byte would overwrite
  970|       |          // the bottom 4 bits of the result.
  971|     27|          res = RotRight7AndReplaceLowByte(res, ptr[4]);
  972|     27|          if (PROTOBUF_PREDICT_FALSE(res & 0x80)) {
  ------------------
  |  |  365|     27|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 27]
  |  |  |  Branch (365:54): [Folded, False: 27]
  |  |  |  Branch (365:63): [True: 0, False: 27]
  |  |  ------------------
  ------------------
  973|       |            // The proto format does not permit longer than 5-byte encodings for
  974|       |            // tags.
  975|      0|            *out = 0;
  976|      0|            return nullptr;
  977|      0|          }
  978|     27|          *out = static_cast<uint32_t>(RotateLeft(res, 28));
  979|     27|#if defined(__GNUC__)
  980|       |          // Note: this asm statement prevents the compiler from
  981|       |          // trying to share the "return ptr + constant" among all
  982|       |          // branches.
  983|     27|          asm("" : "+r"(ptr));
  984|     27|#endif
  985|     27|          return ptr + 5;
  986|     27|        }
  987|     37|        *out = static_cast<uint32_t>(RotateLeft(res, 21));
  988|     37|        return ptr + 4;
  989|     64|      }
  990|    313|      *out = static_cast<uint32_t>(RotateLeft(res, 14));
  991|    313|      return ptr + 3;
  992|    377|    }
  993|  3.09k|    *out = static_cast<uint32_t>(RotateLeft(res, 7));
  994|  3.09k|    return ptr + 2;
  995|  3.46k|  }
  996|  80.5k|  *out = static_cast<uint32_t>(res);
  997|  80.5k|  return ptr + 1;
  998|  83.9k|}
_ZN6google8protobuf8internal8ReadSizeEPPKc:
 1050|   133k|inline uint32_t ReadSize(const char** pp) {
 1051|   133k|  auto p = *pp;
 1052|   133k|  uint32_t res = static_cast<uint8_t>(p[0]);
 1053|   133k|  if (res < 128) {
  ------------------
  |  Branch (1053:7): [True: 130k, False: 3.80k]
  ------------------
 1054|   130k|    *pp = p + 1;
 1055|   130k|    return res;
 1056|   130k|  }
 1057|  3.80k|  auto x = ReadSizeFallback(p, res);
 1058|  3.80k|  *pp = x.first;
 1059|  3.80k|  return x.second;
 1060|   133k|}
_ZN6google8protobuf8internal12ParseContext35ReadSizeAndPushLimitAndDepthInlinedEPKcPNS1_18EpsCopyInputStream10LimitTokenE:
 1125|  88.0k|    const char* ptr, LimitToken* old_limit) {
 1126|  88.0k|  int size = ReadSize(&ptr);
 1127|  88.0k|  if (PROTOBUF_PREDICT_FALSE(!ptr) || depth_ <= 0) {
  ------------------
  |  |  365|   176k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 88.0k]
  |  |  |  Branch (365:54): [Folded, False: 88.0k]
  |  |  |  Branch (365:63): [True: 2, False: 88.0k]
  |  |  ------------------
  ------------------
  |  Branch (1127:39): [True: 0, False: 88.0k]
  ------------------
 1128|      2|    return nullptr;
 1129|      2|  }
 1130|  88.0k|  *old_limit = PushLimit(ptr, size);
 1131|  88.0k|  --depth_;
 1132|  88.0k|  return ptr;
 1133|  88.0k|}
_ZN6google8protobuf8internal13UnalignedLoadItEET_PKc:
  609|   219k|T UnalignedLoad(const char* p) {
  610|   219k|  auto tmp = EndianHelper<sizeof(T)>::Load(p);
  611|   219k|  T res;
  612|   219k|  memcpy(&res, &tmp, sizeof(T));
  613|   219k|  return res;
  614|   219k|}
_ZN6google8protobuf8internal11VarintParseImEEPKcS4_PT_:
  868|  34.8k|PROTOBUF_NODISCARD const char* VarintParse(const char* p, T* out) {
  869|       |#if defined(__aarch64__) && defined(ABSL_IS_LITTLE_ENDIAN) && !defined(_MSC_VER)
  870|       |  // This optimization is not supported in big endian mode
  871|       |  uint64_t first8;
  872|       |  std::memcpy(&first8, p, sizeof(first8));
  873|       |  if (PROTOBUF_PREDICT_TRUE((first8 & 0x80) == 0)) {
  874|       |    *out = static_cast<uint8_t>(first8);
  875|       |    return p + 1;
  876|       |  }
  877|       |  if (PROTOBUF_PREDICT_TRUE((first8 & 0x8000) == 0)) {
  878|       |    uint64_t chunk1;
  879|       |    uint64_t chunk2;
  880|       |    // Extracting the two chunks this way gives a speedup for this path.
  881|       |    chunk1 = Ubfx7(first8, 0);
  882|       |    chunk2 = Ubfx7(first8, 8);
  883|       |    *out = chunk1 | (chunk2 << 7);
  884|       |    return p + 2;
  885|       |  }
  886|       |  return VarintParseSlowArm(p, out, first8);
  887|       |#else   // __aarch64__
  888|  34.8k|  auto ptr = reinterpret_cast<const uint8_t*>(p);
  889|  34.8k|  uint32_t res = ptr[0];
  890|  34.8k|  if ((res & 0x80) == 0) {
  ------------------
  |  Branch (890:7): [True: 34.1k, False: 739]
  ------------------
  891|  34.1k|    *out = res;
  892|  34.1k|    return p + 1;
  893|  34.1k|  }
  894|    739|  return VarintParseSlow(p, res, out);
  895|  34.8k|#endif  // __aarch64__
  896|  34.8k|}
_ZN6google8protobuf8internal13UnalignedLoadImEET_PKc:
  609|  6.25k|T UnalignedLoad(const char* p) {
  610|  6.25k|  auto tmp = EndianHelper<sizeof(T)>::Load(p);
  611|  6.25k|  T res;
  612|  6.25k|  memcpy(&res, &tmp, sizeof(T));
  613|  6.25k|  return res;
  614|  6.25k|}
_ZN6google8protobuf8internal13UnalignedLoadIjEET_PKc:
  609|  3.26k|T UnalignedLoad(const char* p) {
  610|  3.26k|  auto tmp = EndianHelper<sizeof(T)>::Load(p);
  611|  3.26k|  T res;
  612|  3.26k|  memcpy(&res, &tmp, sizeof(T));
  613|  3.26k|  return res;
  614|  3.26k|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser24MpRepeatedMessageOrGroupILb0ELb0EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|    296|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|    296|  LimitToken old;
 1095|    296|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|    296|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 1, False: 295]
  ------------------
 1097|    295|  auto old_depth = depth_;
 1098|    295|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|    295|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|    295|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|    295|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    283|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    283|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 283]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    283|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 283, False: 12]
  ------------------
 1100|    295|  depth_++;
 1101|    295|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 0, False: 295]
  ------------------
 1102|    295|  return ptr;
 1103|    295|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser9MpMessageILb0EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|     34|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|     34|  LimitToken old;
 1095|     34|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|     34|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 0, False: 34]
  ------------------
 1097|     34|  auto old_depth = depth_;
 1098|     34|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|     34|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|     34|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|     34|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|     30|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     30|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 30]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     30|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 30, False: 4]
  ------------------
 1100|     34|  depth_++;
 1101|     34|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 3, False: 31]
  ------------------
 1102|     31|  return ptr;
 1103|     34|}
_ZN6google8protobuf8internal13UnalignedLoadIhEET_PKc:
  609|   126k|T UnalignedLoad(const char* p) {
  610|   126k|  auto tmp = EndianHelper<sizeof(T)>::Load(p);
  611|   126k|  T res;
  612|   126k|  memcpy(&res, &tmp, sizeof(T));
  613|   126k|  return res;
  614|   126k|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser27SingularParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|  9.12k|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|  9.12k|  LimitToken old;
 1095|  9.12k|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|  9.12k|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 0, False: 9.12k]
  ------------------
 1097|  9.12k|  auto old_depth = depth_;
 1098|  9.12k|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|  9.12k|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|  9.12k|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|  9.12k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  9.09k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  9.09k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 9.09k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  9.09k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 9.09k, False: 31]
  ------------------
 1100|  9.12k|  depth_++;
 1101|  9.12k|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 15, False: 9.10k]
  ------------------
 1102|  9.10k|  return ptr;
 1103|  9.12k|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser27RepeatedParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|  78.5k|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|  78.5k|  LimitToken old;
 1095|  78.5k|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|  78.5k|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 1, False: 78.5k]
  ------------------
 1097|  78.5k|  auto old_depth = depth_;
 1098|  78.5k|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|  78.5k|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|  78.5k|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|  78.5k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  78.5k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  78.5k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 78.5k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  78.5k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 78.5k, False: 18]
  ------------------
 1100|  78.5k|  depth_++;
 1101|  78.5k|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 3, False: 78.5k]
  ------------------
 1102|  78.5k|  return ptr;
 1103|  78.5k|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser27RepeatedParseMessageAuxImplItLb0ELb1EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|     54|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|     54|  LimitToken old;
 1095|     54|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|     54|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 0, False: 54]
  ------------------
 1097|     54|  auto old_depth = depth_;
 1098|     54|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|     54|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|     54|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|     54|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|     54|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     54|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 54]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     54|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 54, False: 0]
  ------------------
 1100|     54|  depth_++;
 1101|     54|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 0, False: 54]
  ------------------
 1102|     54|  return ptr;
 1103|     54|}
_ZN6google8protobuf8internal12ParseContextC2IJRN4absl12lts_2024011611string_viewEEEEibPPKcDpOT_:
  455|  7.96k|      : EpsCopyInputStream(aliasing), depth_(depth) {
  456|  7.96k|    *start = InitFrom(std::forward<T>(args)...);
  457|  7.96k|  }
parse_context.cc:_ZN6google8protobuf8internal18EpsCopyInputStream10AppendSizeIZNS2_18ReadStringFallbackEPKciPNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEE3$_0EES5_S5_iRKT_:
  384|      8|  const char* AppendSize(const char* ptr, int size, const A& append) {
  385|      8|    int chunk_size = static_cast<int>(buffer_end_ + kSlopBytes - ptr);
  386|     10|    do {
  387|     10|      ABSL_DCHECK(size > chunk_size);
  ------------------
  |  |   47|     10|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     10|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     20|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     10|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     20|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     20|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 10, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     10|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 10]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     10|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 10, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     20|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     20|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  388|     10|      if (next_chunk_ == nullptr) return nullptr;
  ------------------
  |  Branch (388:11): [True: 5, False: 5]
  ------------------
  389|      5|      append(ptr, chunk_size);
  390|      5|      ptr += chunk_size;
  391|      5|      size -= chunk_size;
  392|       |      // TODO Next calls NextBuffer which generates buffers with
  393|       |      // overlap and thus incurs cost of copying the slop regions. This is not
  394|       |      // necessary for reading strings. We should just call Next buffers.
  395|      5|      if (limit_ <= kSlopBytes) return nullptr;
  ------------------
  |  Branch (395:11): [True: 1, False: 4]
  ------------------
  396|      4|      ptr = Next();
  397|      4|      if (ptr == nullptr) return nullptr;  // passed the limit
  ------------------
  |  Branch (397:11): [True: 0, False: 4]
  ------------------
  398|      4|      ptr += kSlopBytes;
  399|      4|      chunk_size = static_cast<int>(buffer_end_ + kSlopBytes - ptr);
  400|      4|    } while (size > chunk_size);
  ------------------
  |  Branch (400:14): [True: 2, False: 2]
  ------------------
  401|      2|    append(ptr, size);
  402|      2|    return ptr + size;
  403|      8|  }
_ZN6google8protobuf8internal16WireFormatParserINS1_24UnknownFieldParserHelperEEEPKcRT_S5_PNS1_12ParseContextE:
 1320|    989|                                                ParseContext* ctx) {
 1321|    990|  while (!ctx->Done(&ptr)) {
  ------------------
  |  Branch (1321:10): [True: 987, False: 3]
  ------------------
 1322|    987|    uint32_t tag;
 1323|    987|    ptr = ReadTag(ptr, &tag);
 1324|    987|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
  ------------------
  |  | 1157|    987|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|    987|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 0, False: 987]
  |  |  |  |  ------------------
  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  | 1154|      0|  }
  |  |  ------------------
  ------------------
 1325|    987|    if (tag == 0 || (tag & 7) == 4) {
  ------------------
  |  Branch (1325:9): [True: 0, False: 987]
  |  Branch (1325:21): [True: 985, False: 2]
  ------------------
 1326|    985|      ctx->SetLastTag(tag);
 1327|    985|      return ptr;
 1328|    985|    }
 1329|      2|    ptr = FieldParser(tag, field_parser, ptr, ctx);
 1330|      2|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
  ------------------
  |  | 1157|      2|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|      2|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 1, False: 1]
  |  |  |  |  ------------------
  |  |  |  | 1151|      1|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      1|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      1|    return ret;                                        \
  |  |  |  | 1154|      1|  }
  |  |  ------------------
  ------------------
 1331|      1|  }
 1332|      3|  return ptr;
 1333|    989|}
_ZN6google8protobuf8internal11FieldParserINS1_24UnknownFieldParserHelperEEEPKcmRT_S5_PNS1_12ParseContextE:
 1273|  55.8k|                                           const char* ptr, ParseContext* ctx) {
 1274|  55.8k|  uint32_t number = tag >> 3;
 1275|  55.8k|  GOOGLE_PROTOBUF_PARSER_ASSERT(number != 0);
  ------------------
  |  | 1157|  55.8k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  55.8k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 4, False: 55.8k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      4|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      4|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      4|    return ret;                                        \
  |  |  |  | 1154|      4|  }
  |  |  ------------------
  ------------------
 1276|  55.8k|  using WireType = internal::WireFormatLite::WireType;
 1277|  55.8k|  switch (tag & 7) {
 1278|  34.8k|    case WireType::WIRETYPE_VARINT: {
  ------------------
  |  Branch (1278:5): [True: 34.8k, False: 20.9k]
  ------------------
 1279|  34.8k|      uint64_t value;
 1280|  34.8k|      ptr = VarintParse(ptr, &value);
 1281|  34.8k|      GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|  34.8k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  34.8k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 0, False: 34.8k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  | 1154|      0|  }
  |  |  ------------------
  ------------------
 1282|  34.8k|      field_parser.AddVarint(number, value);
 1283|  34.8k|      break;
 1284|  34.8k|    }
 1285|  6.25k|    case WireType::WIRETYPE_FIXED64: {
  ------------------
  |  Branch (1285:5): [True: 6.25k, False: 49.5k]
  ------------------
 1286|  6.25k|      uint64_t value = UnalignedLoad<uint64_t>(ptr);
 1287|  6.25k|      ptr += 8;
 1288|  6.25k|      field_parser.AddFixed64(number, value);
 1289|  6.25k|      break;
 1290|  34.8k|    }
 1291|  10.4k|    case WireType::WIRETYPE_LENGTH_DELIMITED: {
  ------------------
  |  Branch (1291:5): [True: 10.4k, False: 45.3k]
  ------------------
 1292|  10.4k|      ptr = field_parser.ParseLengthDelimited(number, ptr, ctx);
 1293|  10.4k|      GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|  10.4k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  10.4k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 3, False: 10.4k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      3|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      3|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      3|    return ret;                                        \
  |  |  |  | 1154|      3|  }
  |  |  ------------------
  ------------------
 1294|  10.4k|      break;
 1295|  10.4k|    }
 1296|    989|    case WireType::WIRETYPE_START_GROUP: {
  ------------------
  |  Branch (1296:5): [True: 989, False: 54.8k]
  ------------------
 1297|    989|      ptr = field_parser.ParseGroup(number, ptr, ctx);
 1298|    989|      GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|    989|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|    989|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 4, False: 985]
  |  |  |  |  ------------------
  |  |  |  | 1151|      4|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      4|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      4|    return ret;                                        \
  |  |  |  | 1154|      4|  }
  |  |  ------------------
  ------------------
 1299|    985|      break;
 1300|    989|    }
 1301|      0|    case WireType::WIRETYPE_END_GROUP: {
  ------------------
  |  Branch (1301:5): [True: 0, False: 55.8k]
  ------------------
 1302|      0|      ABSL_LOG(FATAL) << "Can't happen";
  ------------------
  |  |   38|      0|#define ABSL_LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
  |  |  ------------------
  |  |  |  |   25|      0|  ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
  |  |  |  |  ------------------
  |  |  |  |  |  |  172|      0|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   65|      0|  switch (0)                                             \
  |  |  |  |  |  |  |  |   66|      0|  case 0:                                                \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   67|      0|  default:                                               \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   68|      0|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (68:5): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|      0|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1303|      0|      break;
 1304|      0|    }
 1305|  3.26k|    case WireType::WIRETYPE_FIXED32: {
  ------------------
  |  Branch (1305:5): [True: 3.26k, False: 52.5k]
  ------------------
 1306|  3.26k|      uint32_t value = UnalignedLoad<uint32_t>(ptr);
 1307|  3.26k|      ptr += 4;
 1308|  3.26k|      field_parser.AddFixed32(number, value);
 1309|  3.26k|      break;
 1310|      0|    }
 1311|     10|    default:
  ------------------
  |  Branch (1311:5): [True: 10, False: 55.8k]
  ------------------
 1312|     10|      return nullptr;
 1313|  55.8k|  }
 1314|  55.8k|  return ptr;
 1315|  55.8k|}
_ZN6google8protobuf8internal12ParseContext17ParseGroupInlinedIZNS1_24UnknownFieldParserHelper10ParseGroupEjPKcPS2_EUlS6_E_EES6_S6_jRKT_:
 1108|    989|                                const Func& func) {
 1109|    989|  if (--depth_ < 0) return nullptr;
  ------------------
  |  Branch (1109:7): [True: 0, False: 989]
  ------------------
 1110|    989|  group_depth_++;
 1111|    989|  auto old_depth = depth_;
 1112|    989|  auto old_group_depth = group_depth_;
 1113|    989|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|    989|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1114|    989|  if (ptr != nullptr) {
  ------------------
  |  Branch (1114:7): [True: 986, False: 3]
  ------------------
 1115|    986|    ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|    986|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    986|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    986|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 986]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    986|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1116|    986|    ABSL_DCHECK_EQ(old_group_depth, group_depth_);
  ------------------
  |  |   74|    986|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    986|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    986|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 986]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    986|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1117|    986|  }
 1118|    989|  group_depth_--;
 1119|    989|  depth_++;
 1120|    989|  if (PROTOBUF_PREDICT_FALSE(!ConsumeEndGroup(start_tag))) return nullptr;
  ------------------
  |  |  365|    989|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 4, False: 985]
  |  |  |  Branch (365:54): [Folded, False: 989]
  |  |  |  Branch (365:63): [True: 4, False: 985]
  |  |  ------------------
  ------------------
 1121|    985|  return ptr;
 1122|    989|}

_ZN6google8protobuf8internal16NoopDebugCounter3IncEv:
  440|  88.0k|  constexpr void Inc() {}
_ZN6google8protobuf8internal15AllocateAtLeastEm:
  129|  29.8k|inline SizedPtr AllocateAtLeast(size_t size) {
  130|       |#if !defined(NDEBUG) && defined(ABSL_HAVE_THREAD_LOCAL) && \
  131|       |    defined(__cpp_inline_variables)
  132|       |  if (allocate_at_least_hook != nullptr) {
  133|       |    return allocate_at_least_hook(size, allocate_at_least_hook_context);
  134|       |  }
  135|       |#endif  // !NDEBUG && ABSL_HAVE_THREAD_LOCAL && __cpp_inline_variables
  136|  29.8k|  return {::operator new(size), size};
  137|  29.8k|}
_ZN6google8protobuf8internal16SizedArrayDeleteEPvm:
  148|    864|inline void SizedArrayDelete(void* p, size_t size) {
  149|    864|#if defined(__cpp_sized_deallocation)
  150|    864|  ::operator delete[](p, size);
  151|       |#else
  152|       |  // Avoid -Wunused-parameter
  153|       |  (void)size;
  154|       |  ::operator delete[](p);
  155|       |#endif
  156|    864|}
_ZN6google8protobuf8internal23Prefetch5LinesFrom1LineEPKv:
  323|  1.05k|inline PROTOBUF_ALWAYS_INLINE void Prefetch5LinesFrom1Line(const void* ptr) {
  324|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 64);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  325|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 128);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  326|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 192);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  327|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 256);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  328|  1.05k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 320);
  ------------------
  |  |  670|  1.05k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  329|  1.05k|}
_ZN6google8protobuf8internal7LaunderINS0_11MessageLiteEEEPT_S5_:
  376|  88.0k|constexpr T* Launder(T* p) {
  377|       |#if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606L
  378|       |  return std::launder(p);
  379|       |#elif ABSL_HAVE_BUILTIN(__builtin_launder)
  380|       |  return __builtin_launder(p);
  381|       |#else
  382|       |  return p;
  383|       |#endif
  384|  88.0k|}
_ZN6google8protobuf8internal13StrongPointerIPNS1_16DummyWeakDefaultETnT_XadL_ZNS1_18dummy_weak_defaultEEEEEvv:
   60|      2|inline PROTOBUF_ALWAYS_INLINE void StrongPointer() {
   61|       |  // This injects a relocation in the code path without having to run code, but
   62|       |  // we can only do it with a newer clang.
   63|      2|  asm(".reloc ., BFD_RELOC_NONE, %p0" ::"Ws"(ptr));
   64|      2|}

_ZNK6google8protobuf8internal10LongSooRep8elementsEv:
  150|   266k|  char* elements() const {
  151|   266k|    auto ret = reinterpret_cast<char*>(elements_int & kSooPtrMask);
  152|   266k|    ABSL_DCHECK_NE(ret, nullptr);
  ------------------
  |  |   76|   266k|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|   266k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   266k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 266k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   266k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  153|   266k|    return ret;
  154|   266k|  }
_ZN6google8protobuf8internal11ShortSooRepC2EPNS0_5ArenaE:
  163|  7.72k|      : arena_and_size(reinterpret_cast<uintptr_t>(arena)) {
  164|  7.72k|    ABSL_DCHECK_EQ(size(), 0);
  ------------------
  |  |   74|  7.72k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  7.72k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  7.72k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 7.72k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  7.72k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  165|  7.72k|  }
_ZNK6google8protobuf8internal11ShortSooRep4sizeEv:
  167|  23.4k|  int size() const { return arena_and_size & kSooSizeMask; }
_ZNK6google8protobuf8internal11ShortSooRep6is_sooEv:
  168|   396k|  bool is_soo() const { return (arena_and_size & kNotSooBit) == 0; }
_ZN6google8protobuf8internal6SooRepC2EPNS0_5ArenaE:
  181|  7.72k|  explicit SooRep(Arena* arena) : short_rep(arena) {}
_ZNK6google8protobuf8internal6SooRep6is_sooEv:
  183|   396k|  bool is_soo() const {
  184|   396k|    static_assert(sizeof(LongSooRep) == sizeof(ShortSooRep), "");
  185|   396k|    static_assert(offsetof(SooRep, long_rep) == offsetof(SooRep, short_rep),
  186|   396k|                  "");
  187|   396k|    static_assert(offsetof(LongSooRep, elements_int) ==
  188|   396k|                      offsetof(ShortSooRep, arena_and_size),
  189|   396k|                  "");
  190|   396k|    return short_rep.is_soo();
  191|   396k|  }
_ZNK6google8protobuf8internal6SooRep9soo_arenaEv:
  192|  6.69k|  Arena* soo_arena() const {
  193|  6.69k|    ABSL_DCHECK(is_soo());
  ------------------
  |  |   47|  6.69k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  6.69k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  13.3k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  6.69k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  13.3k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  13.3k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 6.69k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  6.69k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 6.69k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  6.69k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 6.69k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  13.3k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  13.3k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  194|  6.69k|    return reinterpret_cast<Arena*>(short_rep.arena_and_size & kSooPtrMask);
  195|  6.69k|  }
_ZNK6google8protobuf8internal6SooRep4sizeEb:
  196|   170k|  int size(bool is_soo) const {
  197|   170k|    ABSL_DCHECK_EQ(is_soo, this->is_soo());
  ------------------
  |  |   74|   170k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|   170k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   170k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 170k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   170k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  198|       |#if !defined(__clang__) && defined(__GNUC__)
  199|       |#pragma GCC diagnostic push
  200|       |#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  201|       |#endif
  202|   170k|    return is_soo ? short_rep.size() : long_rep.size;
  ------------------
  |  Branch (202:12): [True: 16.7k, False: 153k]
  ------------------
  203|       |#if !defined(__clang__) && defined(__GNUC__)
  204|       |#pragma GCC diagnostic pop
  205|       |#endif
  206|   170k|  }
_ZN6google8protobuf8internal6SooRep8set_sizeEbi:
  207|  62.6k|  void set_size(bool is_soo, int size) {
  208|  62.6k|    ABSL_DCHECK_EQ(is_soo, this->is_soo());
  ------------------
  |  |   74|  62.6k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  62.6k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  62.6k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 62.6k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  62.6k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  209|  62.6k|    if (is_soo) {
  ------------------
  |  Branch (209:9): [True: 91, False: 62.5k]
  ------------------
  210|     91|      ABSL_DCHECK_LE(size, kSooSizeMask);
  ------------------
  |  |   78|     91|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|     91|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     91|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 91]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     91|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  211|     91|      short_rep.arena_and_size &= kSooPtrMask;
  212|     91|      short_rep.arena_and_size |= size;
  213|  62.5k|    } else {
  214|  62.5k|      long_rep.size = size;
  215|  62.5k|    }
  216|  62.6k|  }
_ZN6google8protobuf8internal6SooRep11set_non_sooEbiPv:
  219|  14.7k|  void set_non_soo(bool was_soo, int capacity, void* elements) {
  220|  14.7k|    ABSL_DCHECK_EQ(was_soo, is_soo());
  ------------------
  |  |   74|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  14.7k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 14.7k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  14.7k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  221|  14.7k|    ABSL_DCHECK_NE(elements, nullptr);
  ------------------
  |  |   76|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  14.7k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 14.7k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  14.7k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|  14.7k|    ABSL_DCHECK_EQ(reinterpret_cast<uintptr_t>(elements) % kSooPtrAlignment,
  ------------------
  |  |   74|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  14.7k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 14.7k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  14.7k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|  14.7k|                   uintptr_t{0});
  224|  14.7k|    if (was_soo) long_rep.size = short_rep.size();
  ------------------
  |  Branch (224:9): [True: 6.69k, False: 8.06k]
  ------------------
  225|  14.7k|    long_rep.capacity = capacity;
  226|  14.7k|    long_rep.elements_int = reinterpret_cast<uintptr_t>(elements) | kNotSooBit;
  227|  14.7k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE19StaticValidityCheckEv:
  259|  15.3k|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  260|  15.3k|    static_assert(
  261|  15.3k|        absl::disjunction<internal::is_supported_integral_type<Element>,
  262|  15.3k|                          internal::is_supported_floating_point_type<Element>,
  263|  15.3k|                          std::is_same<absl::Cord, Element>,
  264|  15.3k|                          std::is_same<UnknownField, Element>,
  265|  15.3k|                          is_proto_enum<Element>>::value,
  266|  15.3k|        "We only support non-string scalars in RepeatedField.");
  267|  15.3k|  }
_ZN6google8protobuf13RepeatedFieldIjE3AddEj:
  841|     57|inline void RepeatedField<Element>::Add(Element value) {
  842|     57|  bool is_soo = this->is_soo();
  843|     57|  const int old_size = size(is_soo);
  844|     57|  int capacity = Capacity(is_soo);
  845|     57|  Element* elem = unsafe_elements(is_soo);
  846|     57|  if (ABSL_PREDICT_FALSE(old_size == capacity)) {
  ------------------
  |  |  178|     57|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 3, False: 54]
  |  |  |  Branch (178:49): [Folded, False: 57]
  |  |  |  Branch (178:58): [True: 3, False: 54]
  |  |  ------------------
  ------------------
  847|      3|    Grow(is_soo, old_size, old_size + 1);
  848|      3|    is_soo = false;
  849|      3|    capacity = Capacity(is_soo);
  850|      3|    elem = unsafe_elements(is_soo);
  851|      3|  }
  852|     57|  int new_size = old_size + 1;
  853|     57|  void* p = elem + ExchangeCurrentSize(is_soo, new_size);
  854|     57|  ::new (p) Element(std::move(value));
  855|       |
  856|       |  // The below helps the compiler optimize dense loops.
  857|       |  // Note: we can't call functions in PROTOBUF_ASSUME so use local variables.
  858|     57|  ABSL_ATTRIBUTE_UNUSED const bool final_is_soo = this->is_soo();
  ------------------
  |  |  557|     57|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  859|     57|  PROTOBUF_ASSUME(is_soo == final_is_soo);
  ------------------
  |  |  941|     57|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  860|     57|  ABSL_ATTRIBUTE_UNUSED const int final_size = size(is_soo);
  ------------------
  |  |  557|     57|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  861|     57|  PROTOBUF_ASSUME(new_size == final_size);
  ------------------
  |  |  941|     57|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  862|     57|  ABSL_ATTRIBUTE_UNUSED Element* const final_elements = unsafe_elements(is_soo);
  ------------------
  |  |  557|     57|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  863|     57|  PROTOBUF_ASSUME(elem == final_elements);
  ------------------
  |  |  941|     57|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  864|     57|  ABSL_ATTRIBUTE_UNUSED const int final_capacity = Capacity(is_soo);
  ------------------
  |  |  557|     57|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  865|     57|  PROTOBUF_ASSUME(capacity == final_capacity);
  ------------------
  |  |  941|     57|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  866|     57|}
_ZNK6google8protobuf13RepeatedFieldIjE6is_sooEv:
  476|    189|  bool is_soo() const { return soo_rep_.is_soo(); }
_ZNK6google8protobuf13RepeatedFieldIjE4sizeEb:
  477|    174|  int size(bool is_soo) const { return soo_rep_.size(is_soo); }
_ZNK6google8protobuf13RepeatedFieldIjE8CapacityEb:
  478|    126|  int Capacity(bool is_soo) const {
  479|       |#if !defined(__clang__) && defined(__GNUC__)
  480|       |#pragma GCC diagnostic push
  481|       |#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  482|       |#endif
  483|    126|    return is_soo ? kSooCapacityElements : soo_rep_.long_rep.capacity;
  ------------------
  |  Branch (483:12): [True: 117, False: 9]
  ------------------
  484|       |#if !defined(__clang__) && defined(__GNUC__)
  485|       |#pragma GCC diagnostic pop
  486|       |#endif
  487|    126|  }
_ZN6google8protobuf13RepeatedFieldIjE15unsafe_elementsEb:
  592|    180|  Element* unsafe_elements(bool is_soo) {
  593|    180|    return is_soo ? reinterpret_cast<Element*>(soo_rep_.short_rep.data)
  ------------------
  |  Branch (593:12): [True: 168, False: 12]
  ------------------
  594|    180|                  : reinterpret_cast<Element*>(soo_rep_.long_rep.elements());
  595|    180|  }
_ZN6google8protobuf13RepeatedFieldIjE4GrowEbii:
 1240|      3|                                                    int new_size) {
 1241|      3|  UnpoisonBuffer();
 1242|      3|  GrowNoAnnotate(was_soo, old_size, new_size);
 1243|      3|  AnnotateSize(Capacity(), old_size);
 1244|      3|}
_ZNK6google8protobuf13RepeatedFieldIjE14UnpoisonBufferEv:
  557|      3|  void UnpoisonBuffer() const {
  558|      3|    AnnotateSize(size(), Capacity());
  559|      3|    if (is_soo()) {
  ------------------
  |  Branch (559:9): [True: 3, False: 0]
  ------------------
  560|       |      // We need to manually unpoison the SOO buffer because in reflection for
  561|       |      // split repeated fields, we poison the whole SOO buffer even when we
  562|       |      // don't actually use the whole SOO buffer (e.g. for RepeatedField<bool>).
  563|      3|      PROTOBUF_UNPOISON_MEMORY_REGION(soo_rep_.short_rep.data,
  564|      3|                                      sizeof(soo_rep_.short_rep.data));
  565|      3|    }
  566|      3|  }
_ZN6google8protobuf13RepeatedFieldIjE14GrowNoAnnotateEbii:
 1184|      3|                                                              int new_size) {
 1185|      3|  const int old_capacity = Capacity(was_soo);
 1186|      3|  ABSL_DCHECK_GT(new_size, old_capacity);
  ------------------
  |  |   84|      3|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|      3|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      3|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 3]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      3|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1187|      3|  HeapRep* new_rep;
 1188|      3|  Arena* arena = GetArena();
 1189|       |
 1190|      3|  new_size = internal::CalculateReserveSize<Element, kHeapRepHeaderSize>(
 1191|      3|      old_capacity, new_size);
 1192|       |
 1193|      3|  ABSL_DCHECK_LE(static_cast<size_t>(new_size),
  ------------------
  |  |   78|      0|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|      3|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      3|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 3]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      3|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1194|      0|                 (std::numeric_limits<size_t>::max() - kHeapRepHeaderSize) /
 1195|      0|                     sizeof(Element))
 1196|      0|      << "Requested size is too large to fit into size_t.";
 1197|      3|  size_t bytes =
 1198|      3|      kHeapRepHeaderSize + sizeof(Element) * static_cast<size_t>(new_size);
 1199|      3|  if (arena == nullptr) {
  ------------------
  |  Branch (1199:7): [True: 2, False: 1]
  ------------------
 1200|      2|    ABSL_DCHECK_LE((bytes - kHeapRepHeaderSize) / sizeof(Element),
  ------------------
  |  |   78|      0|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|      2|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      2|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 2]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      2|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1201|      0|                   static_cast<size_t>(std::numeric_limits<int>::max()))
 1202|      0|        << "Requested size is too large to fit element count into int.";
 1203|      2|    internal::SizedPtr res = internal::AllocateAtLeast(bytes);
 1204|      2|    size_t num_available =
 1205|      2|        std::min((res.n - kHeapRepHeaderSize) / sizeof(Element),
 1206|      2|                 static_cast<size_t>(std::numeric_limits<int>::max()));
 1207|      2|    new_size = static_cast<int>(num_available);
 1208|      2|    new_rep = static_cast<HeapRep*>(res.p);
 1209|      2|  } else {
 1210|      1|    new_rep =
 1211|      1|        reinterpret_cast<HeapRep*>(Arena::CreateArray<char>(arena, bytes));
 1212|      1|  }
 1213|      3|  new_rep->arena = arena;
 1214|       |
 1215|      3|  if (old_size > 0) {
  ------------------
  |  Branch (1215:7): [True: 3, False: 0]
  ------------------
 1216|      3|    Element* pnew = static_cast<Element*>(new_rep->elements());
 1217|      3|    Element* pold = elements(was_soo);
 1218|       |    // TODO: add absl::is_trivially_relocatable<Element>
 1219|      3|    if (std::is_trivial<Element>::value) {
  ------------------
  |  Branch (1219:9): [True: 3, Folded]
  ------------------
 1220|      3|      memcpy(static_cast<void*>(pnew), pold, old_size * sizeof(Element));
 1221|      3|    } else {
 1222|      0|      for (Element* end = pnew + old_size; pnew != end; ++pnew, ++pold) {
  ------------------
  |  Branch (1222:44): [True: 0, False: 0]
  ------------------
 1223|      0|        ::new (static_cast<void*>(pnew)) Element(std::move(*pold));
 1224|      0|        pold->~Element();
 1225|      0|      }
 1226|      0|    }
 1227|      3|  }
 1228|      3|  if (!was_soo) InternalDeallocate();
  ------------------
  |  Branch (1228:7): [True: 0, False: 3]
  ------------------
 1229|       |
 1230|      3|  soo_rep_.set_non_soo(was_soo, new_size, new_rep->elements());
 1231|      3|}
_ZN6google8protobuf13RepeatedFieldIjE8GetArenaEv:
  440|      3|  inline Arena* GetArena() { return GetArena(is_soo()); }
_ZNK6google8protobuf13RepeatedFieldIjE8GetArenaEb:
  472|      3|  inline Arena* GetArena(bool is_soo) const {
  473|      3|    return is_soo ? soo_rep_.soo_arena() : heap_rep()->arena;
  ------------------
  |  Branch (473:12): [True: 3, False: 0]
  ------------------
  474|      3|  }
_ZN6google8protobuf8internal20CalculateReserveSizeIjLi8EEEiii:
 1142|      3|inline int CalculateReserveSize(int capacity, int new_size) {
 1143|      3|  constexpr int lower_limit =
 1144|      3|      RepeatedFieldLowerClampLimit<T, kHeapRepHeaderSize>();
 1145|      3|  if (new_size < lower_limit) {
  ------------------
  |  Branch (1145:7): [True: 0, False: 3]
  ------------------
 1146|       |    // Clamp to smallest allowed size.
 1147|      0|    return lower_limit;
 1148|      0|  }
 1149|      3|  constexpr int kMaxSizeBeforeClamp =
 1150|      3|      (std::numeric_limits<int>::max() - kHeapRepHeaderSize) / 2;
 1151|      3|  if (PROTOBUF_PREDICT_FALSE(capacity > kMaxSizeBeforeClamp)) {
  ------------------
  |  |  365|      3|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:63): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1152|      0|    return std::numeric_limits<int>::max();
 1153|      0|  }
 1154|      3|  constexpr int kSooCapacityElements = SooCapacityElements(sizeof(T));
 1155|      3|  if (kSooCapacityElements > 0 && kSooCapacityElements < lower_limit) {
  ------------------
  |  Branch (1155:7): [True: 0, Folded]
  |  Branch (1155:35): [Folded, False: 0]
  ------------------
 1156|       |    // In this case, we need to set capacity to 0 here to ensure power-of-two
 1157|       |    // sized allocations.
 1158|      0|    if (capacity < lower_limit) capacity = 0;
  ------------------
  |  Branch (1158:9): [True: 0, False: 0]
  ------------------
 1159|      3|  } else {
 1160|      6|    ABSL_DCHECK(capacity == 0 || capacity >= lower_limit)
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      3|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      3|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      6|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      6|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 3, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      3|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 3]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      3|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 3, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      3|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      3|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1161|      6|        << capacity << " " << lower_limit;
 1162|      3|  }
 1163|       |  // We want to double the number of bytes, not the number of elements, to try
 1164|       |  // to stay within power-of-two allocations.
 1165|       |  // The allocation has kHeapRepHeaderSize + sizeof(T) * capacity.
 1166|      3|  int doubled_size = 2 * capacity + kHeapRepHeaderSize / sizeof(T);
 1167|      3|  return std::max(doubled_size, new_size);
 1168|      3|}
_ZN6google8protobuf8internal7HeapRepILm8EE8elementsEv:
  107|      6|  void* elements() { return this + 1; }
_ZN6google8protobuf13RepeatedFieldIjE8elementsEb:
  581|      3|  Element* elements(bool is_soo) {
  582|      3|    ABSL_DCHECK_GT(Capacity(is_soo), 0);
  ------------------
  |  |   84|      3|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|      3|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      3|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 3]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      3|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  583|      3|    return unsafe_elements(is_soo);
  584|      3|  }
_ZNK6google8protobuf13RepeatedFieldIjE12AnnotateSizeEii:
  543|     63|  void AnnotateSize(int old_size, int new_size) const {
  544|     63|    if (old_size != new_size) {
  ------------------
  |  Branch (544:9): [True: 60, False: 3]
  ------------------
  545|     60|      ABSL_ATTRIBUTE_UNUSED const bool is_soo = this->is_soo();
  ------------------
  |  |  557|     60|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  546|     60|      ABSL_ATTRIBUTE_UNUSED const Element* elem = unsafe_elements(is_soo);
  ------------------
  |  |  557|     60|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  547|     60|      ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(elem, elem + Capacity(is_soo),
  548|     60|                                         elem + old_size, elem + new_size);
  549|     60|      if (new_size < old_size) {
  ------------------
  |  Branch (549:11): [True: 3, False: 57]
  ------------------
  550|      3|        ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(
  551|      3|            elem + new_size, (old_size - new_size) * sizeof(Element));
  552|      3|      }
  553|     60|    }
  554|     63|  }
_ZNK6google8protobuf13RepeatedFieldIjE15unsafe_elementsEb:
  596|     60|  const Element* unsafe_elements(bool is_soo) const {
  597|     60|    return const_cast<RepeatedField*>(this)->unsafe_elements(is_soo);
  598|     60|  }
_ZN6google8protobuf13RepeatedFieldIjE19ExchangeCurrentSizeEbi:
  572|     57|  inline int ExchangeCurrentSize(bool is_soo, int new_size) {
  573|     57|    const int prev_size = size(is_soo);
  574|     57|    AnnotateSize(prev_size, new_size);
  575|     57|    set_size(is_soo, new_size);
  576|     57|    return prev_size;
  577|     57|  }
_ZN6google8protobuf13RepeatedFieldIjE8set_sizeEbi:
  488|     57|  void set_size(bool is_soo, int size) {
  489|     57|    ABSL_DCHECK_LE(size, Capacity(is_soo));
  ------------------
  |  |   78|     57|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|     57|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     57|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 57]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     57|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  490|     57|    soo_rep_.set_size(is_soo, size);
  491|     57|  }
_ZNK6google8protobuf13RepeatedFieldIjE8CapacityEv:
  743|      6|inline int RepeatedField<Element>::Capacity() const {
  744|      6|  return Capacity(is_soo());
  745|      6|}
_ZNK6google8protobuf13RepeatedFieldIjE4sizeEv:
  738|      3|inline int RepeatedField<Element>::size() const {
  739|      3|  return size(is_soo());
  740|      3|}
_ZNK6google8protobuf13RepeatedFieldIiE8CapacityEv:
  743|     29|inline int RepeatedField<Element>::Capacity() const {
  744|     29|  return Capacity(is_soo());
  745|     29|}
_ZNK6google8protobuf13RepeatedFieldIiE6is_sooEv:
  476|    326|  bool is_soo() const { return soo_rep_.is_soo(); }
_ZNK6google8protobuf13RepeatedFieldIiE8CapacityEb:
  478|     30|  int Capacity(bool is_soo) const {
  479|       |#if !defined(__clang__) && defined(__GNUC__)
  480|       |#pragma GCC diagnostic push
  481|       |#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  482|       |#endif
  483|     30|    return is_soo ? kSooCapacityElements : soo_rep_.long_rep.capacity;
  ------------------
  |  Branch (483:12): [True: 28, False: 2]
  ------------------
  484|       |#if !defined(__clang__) && defined(__GNUC__)
  485|       |#pragma GCC diagnostic pop
  486|       |#endif
  487|     30|  }
_ZNK6google8protobuf13RepeatedFieldIiE4sizeEb:
  477|    211|  int size(bool is_soo) const { return soo_rep_.size(is_soo); }
_ZN6google8protobuf13RepeatedFieldIiE8elementsEb:
  581|     19|  Element* elements(bool is_soo) {
  582|     19|    ABSL_DCHECK_GT(Capacity(is_soo), 0);
  ------------------
  |  |   84|     19|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|     19|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     19|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 19]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     19|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  583|     19|    return unsafe_elements(is_soo);
  584|     19|  }
_ZN6google8protobuf13RepeatedFieldIiE15unsafe_elementsEb:
  592|    140|  Element* unsafe_elements(bool is_soo) {
  593|    140|    return is_soo ? reinterpret_cast<Element*>(soo_rep_.short_rep.data)
  ------------------
  |  Branch (593:12): [True: 134, False: 6]
  ------------------
  594|    140|                  : reinterpret_cast<Element*>(soo_rep_.long_rep.elements());
  595|    140|  }
_ZN6google8protobuf13RepeatedFieldIiE19ExchangeCurrentSizeEbi:
  572|     37|  inline int ExchangeCurrentSize(bool is_soo, int new_size) {
  573|     37|    const int prev_size = size(is_soo);
  574|     37|    AnnotateSize(prev_size, new_size);
  575|     37|    set_size(is_soo, new_size);
  576|     37|    return prev_size;
  577|     37|  }
_ZNK6google8protobuf13RepeatedFieldIiE12AnnotateSizeEii:
  543|    103|  void AnnotateSize(int old_size, int new_size) const {
  544|    103|    if (old_size != new_size) {
  ------------------
  |  Branch (544:9): [True: 58, False: 45]
  ------------------
  545|     58|      ABSL_ATTRIBUTE_UNUSED const bool is_soo = this->is_soo();
  ------------------
  |  |  557|     58|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  546|     58|      ABSL_ATTRIBUTE_UNUSED const Element* elem = unsafe_elements(is_soo);
  ------------------
  |  |  557|     58|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  547|     58|      ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(elem, elem + Capacity(is_soo),
  548|     58|                                         elem + old_size, elem + new_size);
  549|     58|      if (new_size < old_size) {
  ------------------
  |  Branch (549:11): [True: 37, False: 21]
  ------------------
  550|     37|        ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(
  551|     37|            elem + new_size, (old_size - new_size) * sizeof(Element));
  552|     37|      }
  553|     58|    }
  554|    103|  }
_ZNK6google8protobuf13RepeatedFieldIiE15unsafe_elementsEb:
  596|     75|  const Element* unsafe_elements(bool is_soo) const {
  597|     75|    return const_cast<RepeatedField*>(this)->unsafe_elements(is_soo);
  598|     75|  }
_ZN6google8protobuf13RepeatedFieldIiE8set_sizeEbi:
  488|     37|  void set_size(bool is_soo, int size) {
  489|     37|    ABSL_DCHECK_LE(size, Capacity(is_soo));
  ------------------
  |  |   78|     37|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|     37|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     37|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 37]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     37|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  490|     37|    soo_rep_.set_size(is_soo, size);
  491|     37|  }
_ZNK6google8protobuf13RepeatedFieldIiE14UnpoisonBufferEv:
  557|     29|  void UnpoisonBuffer() const {
  558|     29|    AnnotateSize(size(), Capacity());
  559|     29|    if (is_soo()) {
  ------------------
  |  Branch (559:9): [True: 28, False: 1]
  ------------------
  560|       |      // We need to manually unpoison the SOO buffer because in reflection for
  561|       |      // split repeated fields, we poison the whole SOO buffer even when we
  562|       |      // don't actually use the whole SOO buffer (e.g. for RepeatedField<bool>).
  563|     28|      PROTOBUF_UNPOISON_MEMORY_REGION(soo_rep_.short_rep.data,
  564|     28|                                      sizeof(soo_rep_.short_rep.data));
  565|     28|    }
  566|     29|  }
_ZNK6google8protobuf13RepeatedFieldIiE8heap_repEv:
  602|      2|  HeapRep* heap_rep() const {
  603|      2|    ABSL_DCHECK(!is_soo());
  ------------------
  |  |   47|      2|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      2|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      4|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      2|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      4|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      4|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      2|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      2|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 2, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      4|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      4|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  604|      2|    return reinterpret_cast<HeapRep*>(soo_rep_.long_rep.elements() -
  605|      2|                                      kHeapRepHeaderSize);
  606|      2|  }
_ZN6google8protobuf13RepeatedFieldIiE7DestroyEPKiS4_:
  518|     46|  static void Destroy(const Element* begin, const Element* end) {
  519|     46|    if (!std::is_trivial<Element>::value) {
  ------------------
  |  Branch (519:9): [Folded, False: 46]
  ------------------
  520|      0|      std::for_each(begin, end, [&](const Element& e) { e.~Element(); });
  521|      0|    }
  522|     46|  }
_ZNK6google8protobuf13RepeatedFieldIiE4dataEv:
 1043|     17|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1044|     17|  return unsafe_elements(is_soo());
 1045|     17|}
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE12AnnotateSizeEii:
  543|   107k|  void AnnotateSize(int old_size, int new_size) const {
  544|   107k|    if (old_size != new_size) {
  ------------------
  |  Branch (544:9): [True: 83.9k, False: 23.4k]
  ------------------
  545|  83.9k|      ABSL_ATTRIBUTE_UNUSED const bool is_soo = this->is_soo();
  ------------------
  |  |  557|  83.9k|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  546|  83.9k|      ABSL_ATTRIBUTE_UNUSED const Element* elem = unsafe_elements(is_soo);
  ------------------
  |  |  557|  83.9k|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  547|  83.9k|      ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(elem, elem + Capacity(is_soo),
  548|  83.9k|                                         elem + old_size, elem + new_size);
  549|  83.9k|      if (new_size < old_size) {
  ------------------
  |  Branch (549:11): [True: 21.4k, False: 62.5k]
  ------------------
  550|  21.4k|        ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(
  551|  21.4k|            elem + new_size, (old_size - new_size) * sizeof(Element));
  552|  21.4k|      }
  553|  83.9k|    }
  554|   107k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE6is_sooEv:
  476|   395k|  bool is_soo() const { return soo_rep_.is_soo(); }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE15unsafe_elementsEb:
  596|  83.9k|  const Element* unsafe_elements(bool is_soo) const {
  597|  83.9k|    return const_cast<RepeatedField*>(this)->unsafe_elements(is_soo);
  598|  83.9k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE15unsafe_elementsEb:
  592|   210k|  Element* unsafe_elements(bool is_soo) {
  593|   210k|    return is_soo ? reinterpret_cast<Element*>(soo_rep_.short_rep.data)
  ------------------
  |  Branch (593:12): [True: 0, False: 210k]
  ------------------
  594|   210k|                  : reinterpret_cast<Element*>(soo_rep_.long_rep.elements());
  595|   210k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8GetArenaEb:
  472|  32.8k|  inline Arena* GetArena(bool is_soo) const {
  473|  32.8k|    return is_soo ? soo_rep_.soo_arena() : heap_rep()->arena;
  ------------------
  |  Branch (473:12): [True: 6.68k, False: 26.2k]
  ------------------
  474|  32.8k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8heap_repEv:
  602|  55.7k|  HeapRep* heap_rep() const {
  603|  55.7k|    ABSL_DCHECK(!is_soo());
  ------------------
  |  |   47|  55.7k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  55.7k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   111k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  55.7k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   111k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   111k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 55.7k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  55.7k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 55.7k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  55.7k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 55.7k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   111k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   111k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  604|  55.7k|    return reinterpret_cast<HeapRep*>(soo_rep_.long_rep.elements() -
  605|  55.7k|                                      kHeapRepHeaderSize);
  606|  55.7k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE4sizeEb:
  477|   170k|  int size(bool is_soo) const { return soo_rep_.size(is_soo); }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE7DestroyEPKS2_S5_:
  518|  6.68k|  static void Destroy(const Element* begin, const Element* end) {
  519|  6.68k|    if (!std::is_trivial<Element>::value) {
  ------------------
  |  Branch (519:9): [Folded, False: 6.68k]
  ------------------
  520|      0|      std::for_each(begin, end, [&](const Element& e) { e.~Element(); });
  521|      0|    }
  522|  6.68k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE14UnpoisonBufferEv:
  557|  22.4k|  void UnpoisonBuffer() const {
  558|  22.4k|    AnnotateSize(size(), Capacity());
  559|  22.4k|    if (is_soo()) {
  ------------------
  |  Branch (559:9): [True: 7.68k, False: 14.7k]
  ------------------
  560|       |      // We need to manually unpoison the SOO buffer because in reflection for
  561|       |      // split repeated fields, we poison the whole SOO buffer even when we
  562|       |      // don't actually use the whole SOO buffer (e.g. for RepeatedField<bool>).
  563|  7.68k|      PROTOBUF_UNPOISON_MEMORY_REGION(soo_rep_.short_rep.data,
  564|  7.68k|                                      sizeof(soo_rep_.short_rep.data));
  565|  7.68k|    }
  566|  22.4k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8CapacityEv:
  743|  93.0k|inline int RepeatedField<Element>::Capacity() const {
  744|  93.0k|  return Capacity(is_soo());
  745|  93.0k|}
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8CapacityEb:
  478|   122k|  int Capacity(bool is_soo) const {
  479|       |#if !defined(__clang__) && defined(__GNUC__)
  480|       |#pragma GCC diagnostic push
  481|       |#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  482|       |#endif
  483|   122k|    return is_soo ? kSooCapacityElements : soo_rep_.long_rep.capacity;
  ------------------
  |  Branch (483:12): [True: 21.0k, False: 101k]
  ------------------
  484|       |#if !defined(__clang__) && defined(__GNUC__)
  485|       |#pragma GCC diagnostic pop
  486|       |#endif
  487|   122k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE18InternalDeallocateILb1EEEvv:
  610|  6.68k|  void InternalDeallocate() {
  611|  6.68k|    ABSL_DCHECK(!is_soo());
  ------------------
  |  |   47|  6.68k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  6.68k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  13.3k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  6.68k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  13.3k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  13.3k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 6.68k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  6.68k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 6.68k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  6.68k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 6.68k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  13.3k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  13.3k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  612|  6.68k|    const size_t bytes = Capacity(false) * sizeof(Element) + kHeapRepHeaderSize;
  613|  6.68k|    if (heap_rep()->arena == nullptr) {
  ------------------
  |  Branch (613:9): [True: 6.68k, False: 0]
  ------------------
  614|  6.68k|      internal::SizedDelete(heap_rep(), bytes);
  615|  6.68k|    } else if (!in_destructor) {
  ------------------
  |  Branch (615:16): [Folded, False: 0]
  ------------------
  616|       |      // If we are in the destructor, we might be being destroyed as part of
  617|       |      // the arena teardown. We can't try and return blocks to the arena then.
  618|      0|      heap_rep()->arena->ReturnArrayMemory(heap_rep(), bytes);
  619|      0|    }
  620|  6.68k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8GetArenaEv:
  440|  32.8k|  inline Arena* GetArena() { return GetArena(is_soo()); }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE5emptyEv:
  733|  8.32k|inline bool RepeatedField<Element>::empty() const {
  734|  8.32k|  return size() == 0;
  735|  8.32k|}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE4GrowEbii:
 1240|  14.7k|                                                    int new_size) {
 1241|  14.7k|  UnpoisonBuffer();
 1242|  14.7k|  GrowNoAnnotate(was_soo, old_size, new_size);
 1243|  14.7k|  AnnotateSize(Capacity(), old_size);
 1244|  14.7k|}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE14GrowNoAnnotateEbii:
 1184|  14.7k|                                                              int new_size) {
 1185|  14.7k|  const int old_capacity = Capacity(was_soo);
 1186|  14.7k|  ABSL_DCHECK_GT(new_size, old_capacity);
  ------------------
  |  |   84|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  14.7k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 14.7k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  14.7k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1187|  14.7k|  HeapRep* new_rep;
 1188|  14.7k|  Arena* arena = GetArena();
 1189|       |
 1190|  14.7k|  new_size = internal::CalculateReserveSize<Element, kHeapRepHeaderSize>(
 1191|  14.7k|      old_capacity, new_size);
 1192|       |
 1193|  14.7k|  ABSL_DCHECK_LE(static_cast<size_t>(new_size),
  ------------------
  |  |   78|      0|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  14.7k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 14.7k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  14.7k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1194|      0|                 (std::numeric_limits<size_t>::max() - kHeapRepHeaderSize) /
 1195|      0|                     sizeof(Element))
 1196|      0|      << "Requested size is too large to fit into size_t.";
 1197|  14.7k|  size_t bytes =
 1198|  14.7k|      kHeapRepHeaderSize + sizeof(Element) * static_cast<size_t>(new_size);
 1199|  14.7k|  if (arena == nullptr) {
  ------------------
  |  Branch (1199:7): [True: 14.7k, False: 0]
  ------------------
 1200|  14.7k|    ABSL_DCHECK_LE((bytes - kHeapRepHeaderSize) / sizeof(Element),
  ------------------
  |  |   78|      0|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  14.7k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  14.7k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 14.7k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  14.7k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1201|      0|                   static_cast<size_t>(std::numeric_limits<int>::max()))
 1202|      0|        << "Requested size is too large to fit element count into int.";
 1203|  14.7k|    internal::SizedPtr res = internal::AllocateAtLeast(bytes);
 1204|  14.7k|    size_t num_available =
 1205|  14.7k|        std::min((res.n - kHeapRepHeaderSize) / sizeof(Element),
 1206|  14.7k|                 static_cast<size_t>(std::numeric_limits<int>::max()));
 1207|  14.7k|    new_size = static_cast<int>(num_available);
 1208|  14.7k|    new_rep = static_cast<HeapRep*>(res.p);
 1209|  14.7k|  } else {
 1210|      0|    new_rep =
 1211|      0|        reinterpret_cast<HeapRep*>(Arena::CreateArray<char>(arena, bytes));
 1212|      0|  }
 1213|  14.7k|  new_rep->arena = arena;
 1214|       |
 1215|  14.7k|  if (old_size > 0) {
  ------------------
  |  Branch (1215:7): [True: 8.06k, False: 6.68k]
  ------------------
 1216|  8.06k|    Element* pnew = static_cast<Element*>(new_rep->elements());
 1217|  8.06k|    Element* pold = elements(was_soo);
 1218|       |    // TODO: add absl::is_trivially_relocatable<Element>
 1219|  8.06k|    if (std::is_trivial<Element>::value) {
  ------------------
  |  Branch (1219:9): [True: 8.06k, Folded]
  ------------------
 1220|  8.06k|      memcpy(static_cast<void*>(pnew), pold, old_size * sizeof(Element));
 1221|  8.06k|    } else {
 1222|      0|      for (Element* end = pnew + old_size; pnew != end; ++pnew, ++pold) {
  ------------------
  |  Branch (1222:44): [True: 0, False: 0]
  ------------------
 1223|      0|        ::new (static_cast<void*>(pnew)) Element(std::move(*pold));
 1224|      0|        pold->~Element();
 1225|      0|      }
 1226|      0|    }
 1227|  8.06k|  }
 1228|  14.7k|  if (!was_soo) InternalDeallocate();
  ------------------
  |  Branch (1228:7): [True: 8.06k, False: 6.68k]
  ------------------
 1229|       |
 1230|  14.7k|  soo_rep_.set_non_soo(was_soo, new_size, new_rep->elements());
 1231|  14.7k|}
_ZN6google8protobuf8internal20CalculateReserveSizeINS0_12UnknownFieldELi16EEEiii:
 1142|  14.7k|inline int CalculateReserveSize(int capacity, int new_size) {
 1143|  14.7k|  constexpr int lower_limit =
 1144|  14.7k|      RepeatedFieldLowerClampLimit<T, kHeapRepHeaderSize>();
 1145|  14.7k|  if (new_size < lower_limit) {
  ------------------
  |  Branch (1145:7): [True: 0, False: 14.7k]
  ------------------
 1146|       |    // Clamp to smallest allowed size.
 1147|      0|    return lower_limit;
 1148|      0|  }
 1149|  14.7k|  constexpr int kMaxSizeBeforeClamp =
 1150|  14.7k|      (std::numeric_limits<int>::max() - kHeapRepHeaderSize) / 2;
 1151|  14.7k|  if (PROTOBUF_PREDICT_FALSE(capacity > kMaxSizeBeforeClamp)) {
  ------------------
  |  |  365|  14.7k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 14.7k]
  |  |  |  Branch (365:54): [Folded, False: 14.7k]
  |  |  |  Branch (365:63): [True: 0, False: 14.7k]
  |  |  ------------------
  ------------------
 1152|      0|    return std::numeric_limits<int>::max();
 1153|      0|  }
 1154|  14.7k|  constexpr int kSooCapacityElements = SooCapacityElements(sizeof(T));
 1155|  14.7k|  if (kSooCapacityElements > 0 && kSooCapacityElements < lower_limit) {
  ------------------
  |  Branch (1155:7): [Folded, False: 14.7k]
  |  Branch (1155:35): [True: 0, Folded]
  ------------------
 1156|       |    // In this case, we need to set capacity to 0 here to ensure power-of-two
 1157|       |    // sized allocations.
 1158|      0|    if (capacity < lower_limit) capacity = 0;
  ------------------
  |  Branch (1158:9): [True: 0, False: 0]
  ------------------
 1159|  14.7k|  } else {
 1160|  29.5k|    ABSL_DCHECK(capacity == 0 || capacity >= lower_limit)
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  14.7k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  14.7k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  29.5k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  29.5k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 14.7k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  14.7k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 14.7k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  14.7k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 14.7k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  14.7k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|  14.7k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1161|  29.5k|        << capacity << " " << lower_limit;
 1162|  14.7k|  }
 1163|       |  // We want to double the number of bytes, not the number of elements, to try
 1164|       |  // to stay within power-of-two allocations.
 1165|       |  // The allocation has kHeapRepHeaderSize + sizeof(T) * capacity.
 1166|  14.7k|  int doubled_size = 2 * capacity + kHeapRepHeaderSize / sizeof(T);
 1167|  14.7k|  return std::max(doubled_size, new_size);
 1168|  14.7k|}
_ZN6google8protobuf8internal7HeapRepILm16EE8elementsEv:
  107|  22.8k|  void* elements() { return this + 1; }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE18InternalDeallocateILb0EEEvv:
  610|  8.06k|  void InternalDeallocate() {
  611|  8.06k|    ABSL_DCHECK(!is_soo());
  ------------------
  |  |   47|  8.06k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  8.06k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  16.1k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  8.06k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  16.1k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  16.1k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 8.06k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  8.06k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 8.06k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  8.06k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 8.06k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  16.1k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  16.1k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  612|  8.06k|    const size_t bytes = Capacity(false) * sizeof(Element) + kHeapRepHeaderSize;
  613|  8.06k|    if (heap_rep()->arena == nullptr) {
  ------------------
  |  Branch (613:9): [True: 8.06k, False: 0]
  ------------------
  614|  8.06k|      internal::SizedDelete(heap_rep(), bytes);
  615|  8.06k|    } else if (!in_destructor) {
  ------------------
  |  Branch (615:16): [True: 0, Folded]
  ------------------
  616|       |      // If we are in the destructor, we might be being destroyed as part of
  617|       |      // the arena teardown. We can't try and return blocks to the arena then.
  618|      0|      heap_rep()->arena->ReturnArrayMemory(heap_rep(), bytes);
  619|      0|    }
  620|  8.06k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8elementsEb:
  581|  63.9k|  Element* elements(bool is_soo) {
  582|  63.9k|    ABSL_DCHECK_GT(Capacity(is_soo), 0);
  ------------------
  |  |   84|  63.9k|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|  63.9k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  63.9k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 63.9k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  63.9k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  583|  63.9k|    return unsafe_elements(is_soo);
  584|  63.9k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE19ExchangeCurrentSizeEbi:
  572|  62.5k|  inline int ExchangeCurrentSize(bool is_soo, int new_size) {
  573|  62.5k|    const int prev_size = size(is_soo);
  574|  62.5k|    AnnotateSize(prev_size, new_size);
  575|  62.5k|    set_size(is_soo, new_size);
  576|  62.5k|    return prev_size;
  577|  62.5k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8set_sizeEbi:
  488|  62.5k|  void set_size(bool is_soo, int size) {
  489|  62.5k|    ABSL_DCHECK_LE(size, Capacity(is_soo));
  ------------------
  |  |   78|  62.5k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  62.5k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  62.5k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 62.5k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  62.5k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  490|  62.5k|    soo_rep_.set_size(is_soo, size);
  491|  62.5k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE5ClearEv:
  984|  6.68k|inline void RepeatedField<Element>::Clear() {
  985|  6.68k|  const bool is_soo = this->is_soo();
  986|  6.68k|  Element* elem = unsafe_elements(is_soo);
  987|  6.68k|  Destroy(elem, elem + size(is_soo));
  988|  6.68k|  ExchangeCurrentSize(is_soo, 0);
  989|  6.68k|}
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE4sizeEv:
  738|  37.4k|inline int RepeatedField<Element>::size() const {
  739|  37.4k|  return size(is_soo());
  740|  37.4k|}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEEixEi:
  319|  55.8k|  reference operator[](int index) ABSL_ATTRIBUTE_LIFETIME_BOUND {
  320|  55.8k|    return *Mutable(index);
  321|  55.8k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE7MutableEi:
  829|  55.8k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  830|  55.8k|  ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  55.8k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  55.8k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  55.8k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 55.8k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  55.8k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  831|  55.8k|  ABSL_DCHECK_LT(index, size());
  ------------------
  |  |   80|  55.8k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|  55.8k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  55.8k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 55.8k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  55.8k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  832|  55.8k|  return &elements(is_soo())[index];
  833|  55.8k|}
_ZNK6google8protobuf13RepeatedFieldIiE4sizeEv:
  738|    108|inline int RepeatedField<Element>::size() const {
  739|    108|  return size(is_soo());
  740|    108|}
_ZN6google8protobuf13RepeatedFieldIiE5ClearEv:
  984|     37|inline void RepeatedField<Element>::Clear() {
  985|     37|  const bool is_soo = this->is_soo();
  986|     37|  Element* elem = unsafe_elements(is_soo);
  987|     37|  Destroy(elem, elem + size(is_soo));
  988|     37|  ExchangeCurrentSize(is_soo, 0);
  989|     37|}
_ZNK6google8protobuf13RepeatedFieldIiE3GetEi:
  805|     19|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  806|     19|  ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|     19|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     19|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     19|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 19]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     19|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  807|     19|  ABSL_DCHECK_LT(index, size());
  ------------------
  |  |   80|     19|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|     19|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     19|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 19]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     19|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  808|     19|  return elements(is_soo())[index];
  809|     19|}
_ZNK6google8protobuf13RepeatedFieldIiE8elementsEb:
  585|     19|  const Element* elements(bool is_soo) const {
  586|     19|    return const_cast<RepeatedField*>(this)->elements(is_soo);
  587|     19|  }
_ZN6google8protobuf8internal20CalculateReserveSizeIPvLi8EEEiii:
 1142|  15.2k|inline int CalculateReserveSize(int capacity, int new_size) {
 1143|  15.2k|  constexpr int lower_limit =
 1144|  15.2k|      RepeatedFieldLowerClampLimit<T, kHeapRepHeaderSize>();
 1145|  15.2k|  if (new_size < lower_limit) {
  ------------------
  |  Branch (1145:7): [True: 0, False: 15.2k]
  ------------------
 1146|       |    // Clamp to smallest allowed size.
 1147|      0|    return lower_limit;
 1148|      0|  }
 1149|  15.2k|  constexpr int kMaxSizeBeforeClamp =
 1150|  15.2k|      (std::numeric_limits<int>::max() - kHeapRepHeaderSize) / 2;
 1151|  15.2k|  if (PROTOBUF_PREDICT_FALSE(capacity > kMaxSizeBeforeClamp)) {
  ------------------
  |  |  365|  15.2k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 15.2k]
  |  |  |  Branch (365:54): [Folded, False: 15.2k]
  |  |  |  Branch (365:63): [True: 0, False: 15.2k]
  |  |  ------------------
  ------------------
 1152|      0|    return std::numeric_limits<int>::max();
 1153|      0|  }
 1154|  15.2k|  constexpr int kSooCapacityElements = SooCapacityElements(sizeof(T));
 1155|  15.2k|  if (kSooCapacityElements > 0 && kSooCapacityElements < lower_limit) {
  ------------------
  |  Branch (1155:7): [True: 0, Folded]
  |  Branch (1155:35): [Folded, False: 0]
  ------------------
 1156|       |    // In this case, we need to set capacity to 0 here to ensure power-of-two
 1157|       |    // sized allocations.
 1158|      0|    if (capacity < lower_limit) capacity = 0;
  ------------------
  |  Branch (1158:9): [True: 0, False: 0]
  ------------------
 1159|  15.2k|  } else {
 1160|  30.4k|    ABSL_DCHECK(capacity == 0 || capacity >= lower_limit)
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  15.2k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  15.2k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  30.4k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  30.4k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 15.2k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  15.2k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 15.2k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  15.2k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 15.2k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  15.2k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|  15.2k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1161|  30.4k|        << capacity << " " << lower_limit;
 1162|  15.2k|  }
 1163|       |  // We want to double the number of bytes, not the number of elements, to try
 1164|       |  // to stay within power-of-two allocations.
 1165|       |  // The allocation has kHeapRepHeaderSize + sizeof(T) * capacity.
 1166|  15.2k|  int doubled_size = 2 * capacity + kHeapRepHeaderSize / sizeof(T);
 1167|  15.2k|  return std::max(doubled_size, new_size);
 1168|  15.2k|}
_ZN6google8protobuf13RepeatedFieldIiE19StaticValidityCheckEv:
  259|     66|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  260|     66|    static_assert(
  261|     66|        absl::disjunction<internal::is_supported_integral_type<Element>,
  262|     66|                          internal::is_supported_floating_point_type<Element>,
  263|     66|                          std::is_same<absl::Cord, Element>,
  264|     66|                          std::is_same<UnknownField, Element>,
  265|     66|                          is_proto_enum<Element>>::value,
  266|     66|        "We only support non-string scalars in RepeatedField.");
  267|     66|  }
_ZN6google8protobuf13RepeatedFieldIiEC2EPNS0_5ArenaE:
  648|     37|inline RepeatedField<Element>::RepeatedField(Arena* arena) : soo_rep_(arena) {
  649|     37|  StaticValidityCheck();
  650|     37|  AnnotateSize(kSooCapacityElements, 0);
  651|     37|}
_ZN6google8protobuf13RepeatedFieldIiED2Ev:
  680|     29|RepeatedField<Element>::~RepeatedField() {
  681|     29|  StaticValidityCheck();
  682|     29|  const bool is_soo = this->is_soo();
  683|       |#ifndef NDEBUG
  684|       |  // Try to trigger segfault / asan failure in non-opt builds if arena_
  685|       |  // lifetime has ended before the destructor.
  686|       |  auto arena = GetArena(is_soo);
  687|       |  if (arena) (void)arena->SpaceAllocated();
  688|       |#endif
  689|     29|  const int size = this->size(is_soo);
  690|     29|  if (size > 0) {
  ------------------
  |  Branch (690:7): [True: 9, False: 20]
  ------------------
  691|      9|    Element* elem = unsafe_elements(is_soo);
  692|      9|    Destroy(elem, elem + size);
  693|      9|  }
  694|     29|  UnpoisonBuffer();
  695|     29|  if (!is_soo) InternalDeallocate<true>();
  ------------------
  |  Branch (695:7): [True: 1, False: 28]
  ------------------
  696|     29|}
_ZN6google8protobuf13RepeatedFieldIiE18InternalDeallocateILb1EEEvv:
  610|      1|  void InternalDeallocate() {
  611|      1|    ABSL_DCHECK(!is_soo());
  ------------------
  |  |   47|      1|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      1|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      2|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      1|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      2|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      2|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 1, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      1|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 1]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      1|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 1, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      2|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      2|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  612|      1|    const size_t bytes = Capacity(false) * sizeof(Element) + kHeapRepHeaderSize;
  613|      1|    if (heap_rep()->arena == nullptr) {
  ------------------
  |  Branch (613:9): [True: 1, False: 0]
  ------------------
  614|      1|      internal::SizedDelete(heap_rep(), bytes);
  615|      1|    } else if (!in_destructor) {
  ------------------
  |  Branch (615:16): [Folded, False: 0]
  ------------------
  616|       |      // If we are in the destructor, we might be being destroyed as part of
  617|       |      // the arena teardown. We can't try and return blocks to the arena then.
  618|      0|      heap_rep()->arena->ReturnArrayMemory(heap_rep(), bytes);
  619|      0|    }
  620|      1|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEED2Ev:
  680|  7.68k|RepeatedField<Element>::~RepeatedField() {
  681|  7.68k|  StaticValidityCheck();
  682|  7.68k|  const bool is_soo = this->is_soo();
  683|       |#ifndef NDEBUG
  684|       |  // Try to trigger segfault / asan failure in non-opt builds if arena_
  685|       |  // lifetime has ended before the destructor.
  686|       |  auto arena = GetArena(is_soo);
  687|       |  if (arena) (void)arena->SpaceAllocated();
  688|       |#endif
  689|  7.68k|  const int size = this->size(is_soo);
  690|  7.68k|  if (size > 0) {
  ------------------
  |  Branch (690:7): [True: 0, False: 7.68k]
  ------------------
  691|      0|    Element* elem = unsafe_elements(is_soo);
  692|      0|    Destroy(elem, elem + size);
  693|      0|  }
  694|  7.68k|  UnpoisonBuffer();
  695|  7.68k|  if (!is_soo) InternalDeallocate<true>();
  ------------------
  |  Branch (695:7): [True: 6.68k, False: 995]
  ------------------
  696|  7.68k|}
_ZN6google8protobuf13RepeatedFieldIiEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  295|     37|      : RepeatedField(arena) {}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEEC2EPNS0_5ArenaE:
  648|  7.68k|inline RepeatedField<Element>::RepeatedField(Arena* arena) : soo_rep_(arena) {
  649|  7.68k|  StaticValidityCheck();
  650|  7.68k|  AnnotateSize(kSooCapacityElements, 0);
  651|  7.68k|}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE3AddEv:
  869|  55.8k|inline Element* RepeatedField<Element>::Add() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  870|  55.8k|  bool is_soo = this->is_soo();
  871|  55.8k|  const int old_size = size(is_soo);
  872|  55.8k|  if (ABSL_PREDICT_FALSE(old_size == Capacity())) {
  ------------------
  |  |  178|  55.8k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 14.7k, False: 41.0k]
  |  |  |  Branch (178:49): [Folded, False: 55.8k]
  |  |  |  Branch (178:58): [True: 14.7k, False: 41.0k]
  |  |  ------------------
  ------------------
  873|  14.7k|    Grow(is_soo, old_size, old_size + 1);
  874|  14.7k|    is_soo = false;
  875|  14.7k|  }
  876|  55.8k|  void* p = unsafe_elements(is_soo) + ExchangeCurrentSize(is_soo, old_size + 1);
  877|  55.8k|  return ::new (p) Element;
  878|  55.8k|}

_ZN6google8protobuf8internal20RepeatedPtrFieldBase14InternalExtendEi:
   36|  15.2k|void** RepeatedPtrFieldBase::InternalExtend(int extend_amount) {
   37|  15.2k|  ABSL_DCHECK(extend_amount > 0);
  ------------------
  |  |   47|  15.2k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  15.2k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  30.4k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  15.2k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  30.4k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  30.4k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 15.2k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  15.2k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 15.2k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  15.2k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 15.2k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  30.4k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  30.4k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   38|  15.2k|  constexpr size_t kPtrSize = sizeof(rep()->elements[0]);
   39|  15.2k|  constexpr size_t kMaxSize = std::numeric_limits<size_t>::max();
   40|  15.2k|  constexpr size_t kMaxCapacity = (kMaxSize - kRepHeaderSize) / kPtrSize;
   41|  15.2k|  const int old_capacity = Capacity();
   42|  15.2k|  Arena* arena = GetArena();
   43|  15.2k|  Rep* new_rep = nullptr;
   44|  15.2k|  {
   45|  15.2k|    int new_capacity = internal::CalculateReserveSize<void*, kRepHeaderSize>(
   46|  15.2k|        old_capacity, old_capacity + extend_amount);
   47|  15.2k|    ABSL_DCHECK_LE(new_capacity, kMaxCapacity)
  ------------------
  |  |   78|      0|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  15.2k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  15.2k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 15.2k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  15.2k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   48|      0|        << "New capacity is too large to fit into internal representation";
   49|  15.2k|    const size_t new_size = kRepHeaderSize + kPtrSize * new_capacity;
   50|  15.2k|    if (arena == nullptr) {
  ------------------
  |  Branch (50:9): [True: 15.1k, False: 128]
  ------------------
   51|  15.1k|      const internal::SizedPtr alloc = internal::AllocateAtLeast(new_size);
   52|  15.1k|      new_capacity = static_cast<int>((alloc.n - kRepHeaderSize) / kPtrSize);
   53|  15.1k|      new_rep = reinterpret_cast<Rep*>(alloc.p);
   54|  15.1k|    } else {
   55|    128|      auto* alloc = Arena::CreateArray<char>(arena, new_size);
   56|    128|      new_rep = reinterpret_cast<Rep*>(alloc);
   57|    128|    }
   58|  15.2k|    capacity_proxy_ = new_capacity - kSSOCapacity;
   59|  15.2k|  }
   60|       |
   61|  15.2k|  if (using_sso()) {
  ------------------
  |  Branch (61:7): [True: 8.91k, False: 6.31k]
  ------------------
   62|  8.91k|    new_rep->allocated_size = tagged_rep_or_elem_ != nullptr ? 1 : 0;
  ------------------
  |  Branch (62:31): [True: 8.91k, False: 0]
  ------------------
   63|  8.91k|    new_rep->elements[0] = tagged_rep_or_elem_;
   64|  8.91k|  } else {
   65|  6.31k|    Rep* old_rep = rep();
   66|  6.31k|    memcpy(new_rep, old_rep,
   67|  6.31k|           old_rep->allocated_size * kPtrSize + kRepHeaderSize);
   68|  6.31k|    size_t old_size = old_capacity * kPtrSize + kRepHeaderSize;
   69|  6.31k|    if (arena == nullptr) {
  ------------------
  |  Branch (69:9): [True: 6.27k, False: 49]
  ------------------
   70|  6.27k|      internal::SizedDelete(old_rep, old_size);
   71|  6.27k|    } else {
   72|     49|      arena->ReturnArrayMemory(old_rep, old_size);
   73|     49|    }
   74|  6.31k|  }
   75|       |
   76|  15.2k|  tagged_rep_or_elem_ =
   77|  15.2k|      reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(new_rep) + 1);
   78|       |
   79|  15.2k|  return &new_rep->elements[current_size_];
   80|  15.2k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase13DestroyProtosEv:
   89|  9.21k|void RepeatedPtrFieldBase::DestroyProtos() {
   90|  9.21k|  PROTOBUF_ALWAYS_INLINE_CALL Destroy<GenericTypeHandler<MessageLite>>();
  ------------------
  |  |  187|  9.21k|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
   91|       |
   92|       |  // TODO:  Eliminate this store when invoked from the destructor,
   93|       |  // since it is dead.
   94|  9.21k|  tagged_rep_or_elem_ = nullptr;
   95|  9.21k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase9AddStringEv:
  101|  13.4k|void* RepeatedPtrFieldBase::AddString() {
  102|  13.4k|  return AddInternal([](Arena* arena) { return NewStringElement(arena); });
  103|  13.4k|}
_ZN6google8protobuf8internal16NewStringElementEPNS0_5ArenaE:
  231|  13.4k|void* NewStringElement(Arena* arena) {
  232|  13.4k|  return Arena::Create<std::string>(arena);
  233|  13.4k|}
repeated_ptr_field.cc:_ZZN6google8protobuf8internal20RepeatedPtrFieldBase9AddStringEvENK3$_0clEPNS0_5ArenaE:
  102|  13.4k|  return AddInternal([](Arena* arena) { return NewStringElement(arena); });

_ZN6google8protobuf8internal20RepeatedPtrFieldBase15PrepareForParseEv:
  296|      3|  bool PrepareForParse() { return allocated_size() == current_size_; }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase20AddAllocatedForParseEPv:
  301|      3|  void AddAllocatedForParse(void* value) {
  302|      3|    ABSL_DCHECK(PrepareForParse());
  ------------------
  |  |   47|      3|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      3|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      6|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      3|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|      6|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|      6|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 3, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      3|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 3]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      3|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 3, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      6|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|      6|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      3|    if (PROTOBUF_PREDICT_FALSE(SizeAtCapacity())) {
  ------------------
  |  |  365|      3|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 3]
  |  |  |  Branch (365:63): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  304|      0|      *InternalExtend(1) = value;
  305|      0|      ++rep()->allocated_size;
  306|      3|    } else {
  307|      3|      if (using_sso()) {
  ------------------
  |  Branch (307:11): [True: 3, False: 0]
  ------------------
  308|      3|        tagged_rep_or_elem_ = value;
  309|      3|      } else {
  310|      0|        rep()->elements[current_size_] = value;
  311|      0|        ++rep()->allocated_size;
  312|      0|      }
  313|      3|    }
  314|      3|    ExchangeCurrentSize(current_size_ + 1);
  315|      3|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase8GetArenaEv:
  535|   111k|  inline Arena* GetArena() const { return arena_; }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase14SizeAtCapacityEv:
  605|  70.6k|  inline bool SizeAtCapacity() const {
  606|       |    // Harden invariant size() <= allocated_size() <= Capacity().
  607|  70.6k|    ABSL_DCHECK_LE(size(), allocated_size());
  ------------------
  |  |   78|  70.6k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  70.6k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  70.6k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 70.6k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  70.6k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  608|  70.6k|    ABSL_DCHECK_LE(allocated_size(), Capacity());
  ------------------
  |  |   78|  70.6k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  70.6k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  70.6k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 70.6k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  70.6k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  609|       |    // This is equivalent to `current_size_ == Capacity()`.
  610|       |    // Assuming `Capacity()` function is inlined, compiler is likely to optimize
  611|       |    // away "+ kSSOCapacity" and reduce it to "current_size_ > capacity_proxy_"
  612|       |    // which is an instruction less than "current_size_ == capacity_proxy_ + 1".
  613|  70.6k|    return current_size_ >= Capacity();
  614|  70.6k|  }
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE3AddEv:
 1370|  13.4k|inline Element* RepeatedPtrField<Element>::Add() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1371|  13.4k|  return RepeatedPtrFieldBase::Add<TypeHandler>();
 1372|  13.4k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase3AddINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEPNT_4TypeEv:
  194|  13.4k|  Value<TypeHandler>* Add() {
  195|  13.4k|    if (std::is_same<Value<TypeHandler>, std::string>{}) {
  ------------------
  |  Branch (195:9): [True: 13.4k, Folded]
  ------------------
  196|  13.4k|      return cast<TypeHandler>(AddString());
  197|  13.4k|    }
  198|      0|    return cast<TypeHandler>(AddMessageLite(TypeHandler::GetNewFunc()));
  199|  13.4k|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEE4sizeEv:
 1340|    464|inline int RepeatedPtrField<Element>::size() const {
 1341|    464|  return RepeatedPtrFieldBase::size();
 1342|    464|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEE5ClearEv:
 1469|     10|inline void RepeatedPtrField<Element>::Clear() {
 1470|     10|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     10|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINS0_15DescriptorProtoEEEEEvv:
  265|     10|  void Clear() {
  266|     10|    const int n = current_size_;
  267|     10|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     10|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     10|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     10|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 10]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     10|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     10|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 0, False: 10]
  ------------------
  269|      0|      using H = CommonHandler<TypeHandler>;
  270|      0|      ClearNonEmpty<H>();
  271|      0|    }
  272|     10|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEE3GetEi:
 1346|    294|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|    294|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|    294|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_15DescriptorProtoEEEEERKNT_4TypeEi:
  252|    294|  const Value<TypeHandler>& Get(int index) const {
  253|    294|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|    294|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|    294|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    294|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 294]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    294|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|    294|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|    294|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|    294|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    294|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 294]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    294|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|    294|    return *cast<TypeHandler>(element_at(index));
  256|    294|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_15DescriptorProtoEEEEEPKNT_4TypeEPKv:
  665|    294|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|    294|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|    294|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEE4sizeEv:
 1340|    395|inline int RepeatedPtrField<Element>::size() const {
 1341|    395|  return RepeatedPtrFieldBase::size();
 1342|    395|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEE5ClearEv:
 1469|     10|inline void RepeatedPtrField<Element>::Clear() {
 1470|     10|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     10|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINS0_19EnumDescriptorProtoEEEEEvv:
  265|     10|  void Clear() {
  266|     10|    const int n = current_size_;
  267|     10|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     10|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     10|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     10|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 10]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     10|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     10|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 0, False: 10]
  ------------------
  269|      0|      using H = CommonHandler<TypeHandler>;
  270|      0|      ClearNonEmpty<H>();
  271|      0|    }
  272|     10|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEE3GetEi:
 1346|    122|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|    122|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|    122|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_19EnumDescriptorProtoEEEEERKNT_4TypeEi:
  252|    122|  const Value<TypeHandler>& Get(int index) const {
  253|    122|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|    122|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|    122|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    122|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 122]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    122|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|    122|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|    122|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|    122|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    122|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 122]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    122|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|    122|    return *cast<TypeHandler>(element_at(index));
  256|    122|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_19EnumDescriptorProtoEEEEEPKNT_4TypeEPKv:
  665|    122|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|    122|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|    122|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEE4sizeEv:
 1340|     40|inline int RepeatedPtrField<Element>::size() const {
 1341|     40|  return RepeatedPtrFieldBase::size();
 1342|     40|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEE5ClearEv:
 1469|     10|inline void RepeatedPtrField<Element>::Clear() {
 1470|     10|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     10|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINS0_22ServiceDescriptorProtoEEEEEvv:
  265|     10|  void Clear() {
  266|     10|    const int n = current_size_;
  267|     10|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     10|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     10|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     10|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 10]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     10|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     10|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 0, False: 10]
  ------------------
  269|      0|      using H = CommonHandler<TypeHandler>;
  270|      0|      ClearNonEmpty<H>();
  271|      0|    }
  272|     10|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEE4sizeEv:
 1340|  1.01k|inline int RepeatedPtrField<Element>::size() const {
 1341|  1.01k|  return RepeatedPtrFieldBase::size();
 1342|  1.01k|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEE5ClearEv:
 1469|     10|inline void RepeatedPtrField<Element>::Clear() {
 1470|     10|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     10|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINS0_20FieldDescriptorProtoEEEEEvv:
  265|     10|  void Clear() {
  266|     10|    const int n = current_size_;
  267|     10|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     10|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     10|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     10|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 10]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     10|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     10|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 0, False: 10]
  ------------------
  269|      0|      using H = CommonHandler<TypeHandler>;
  270|      0|      ClearNonEmpty<H>();
  271|      0|    }
  272|     10|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEE3GetEi:
 1346|  1.56k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|  1.56k|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|  1.56k|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_20FieldDescriptorProtoEEEEERKNT_4TypeEi:
  252|  1.56k|  const Value<TypeHandler>& Get(int index) const {
  253|  1.56k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  1.56k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  1.56k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  1.56k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 1.56k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  1.56k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|  1.56k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  1.56k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|  1.56k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  1.56k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 1.56k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  1.56k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|  1.56k|    return *cast<TypeHandler>(element_at(index));
  256|  1.56k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_20FieldDescriptorProtoEEEEEPKNT_4TypeEPKv:
  665|  1.56k|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|  1.56k|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|  1.56k|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_30DescriptorProto_ExtensionRangeEE4sizeEv:
 1340|    308|inline int RepeatedPtrField<Element>::size() const {
 1341|    308|  return RepeatedPtrFieldBase::size();
 1342|    308|}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_30DescriptorProto_ExtensionRangeEE3GetEi:
 1346|     84|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|     84|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|     84|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_30DescriptorProto_ExtensionRangeEEEEERKNT_4TypeEi:
  252|     84|  const Value<TypeHandler>& Get(int index) const {
  253|     84|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|     84|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     84|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     84|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 84]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     84|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|     84|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|     84|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|     84|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     84|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 84]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     84|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|     84|    return *cast<TypeHandler>(element_at(index));
  256|     84|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_30DescriptorProto_ExtensionRangeEEEEEPKNT_4TypeEPKv:
  665|     84|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|     84|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|     84|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_20OneofDescriptorProtoEE4sizeEv:
 1340|    336|inline int RepeatedPtrField<Element>::size() const {
 1341|    336|  return RepeatedPtrFieldBase::size();
 1342|    336|}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_20OneofDescriptorProtoEE3GetEi:
 1346|      7|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|      7|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|      7|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_20OneofDescriptorProtoEEEEERKNT_4TypeEi:
  252|      7|  const Value<TypeHandler>& Get(int index) const {
  253|      7|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|      7|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|      7|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      7|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 7]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      7|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|      7|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|      7|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|      7|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      7|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 7]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      7|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|      7|    return *cast<TypeHandler>(element_at(index));
  256|      7|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_20OneofDescriptorProtoEEEEEPKNT_4TypeEPKv:
  665|      7|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|      7|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|      7|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_29DescriptorProto_ReservedRangeEE4sizeEv:
 1340|    260|inline int RepeatedPtrField<Element>::size() const {
 1341|    260|  return RepeatedPtrFieldBase::size();
 1342|    260|}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_29DescriptorProto_ReservedRangeEE3GetEi:
 1346|     41|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|     41|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|     41|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_29DescriptorProto_ReservedRangeEEEEERKNT_4TypeEi:
  252|     41|  const Value<TypeHandler>& Get(int index) const {
  253|     41|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|     41|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     41|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     41|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 41]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     41|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|     41|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|     41|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|     41|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     41|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 41]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     41|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|     41|    return *cast<TypeHandler>(element_at(index));
  256|     41|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_29DescriptorProto_ReservedRangeEEEEEPKNT_4TypeEPKv:
  665|     41|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|     41|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|     41|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE4sizeEv:
 1340|    153|inline int RepeatedPtrField<Element>::size() const {
 1341|    153|  return RepeatedPtrFieldBase::size();
 1342|    153|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE5ClearEv:
 1469|     19|inline void RepeatedPtrField<Element>::Clear() {
 1470|     19|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     19|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINS0_19UninterpretedOptionEEEEEvv:
  265|     19|  void Clear() {
  266|     19|    const int n = current_size_;
  267|     19|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     19|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     19|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     19|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 19]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     19|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     19|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 0, False: 19]
  ------------------
  269|      0|      using H = CommonHandler<TypeHandler>;
  270|      0|      ClearNonEmpty<H>();
  271|      0|    }
  272|     19|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_24EnumValueDescriptorProtoEE4sizeEv:
 1340|    390|inline int RepeatedPtrField<Element>::size() const {
 1341|    390|  return RepeatedPtrFieldBase::size();
 1342|    390|}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_24EnumValueDescriptorProtoEE3GetEi:
 1346|    853|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|    853|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|    853|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_24EnumValueDescriptorProtoEEEEERKNT_4TypeEi:
  252|    853|  const Value<TypeHandler>& Get(int index) const {
  253|    853|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|    853|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|    853|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    853|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 853]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    853|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|    853|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|    853|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|    853|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    853|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 853]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    853|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|    853|    return *cast<TypeHandler>(element_at(index));
  256|    853|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_24EnumValueDescriptorProtoEEEEEPKNT_4TypeEPKv:
  665|    853|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|    853|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|    853|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_37EnumDescriptorProto_EnumReservedRangeEE4sizeEv:
 1340|    103|inline int RepeatedPtrField<Element>::size() const {
 1341|    103|  return RepeatedPtrFieldBase::size();
 1342|    103|}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_37EnumDescriptorProto_EnumReservedRangeEE3GetEi:
 1346|      2|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|      2|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|      2|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_37EnumDescriptorProto_EnumReservedRangeEEEEERKNT_4TypeEi:
  252|      2|  const Value<TypeHandler>& Get(int index) const {
  253|      2|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|      2|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|      2|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      2|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 2]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      2|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|      2|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|      2|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|      2|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      2|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 2]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      2|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|      2|    return *cast<TypeHandler>(element_at(index));
  256|      2|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_37EnumDescriptorProto_EnumReservedRangeEEEEEPKNT_4TypeEPKv:
  665|      2|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|      2|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|      2|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEE4sizeEv:
 1340|     51|inline int RepeatedPtrField<Element>::size() const {
 1341|     51|  return RepeatedPtrFieldBase::size();
 1342|     51|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEE5ClearEv:
 1469|     17|inline void RepeatedPtrField<Element>::Clear() {
 1470|     17|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     17|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINS0_27FieldOptions_EditionDefaultEEEEEvv:
  265|     17|  void Clear() {
  266|     17|    const int n = current_size_;
  267|     17|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     17|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     17|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     17|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 17]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     17|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     17|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 0, False: 17]
  ------------------
  269|      0|      using H = CommonHandler<TypeHandler>;
  270|      0|      ClearNonEmpty<H>();
  271|      0|    }
  272|     17|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEE3GetEi:
 1346|     18|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|     18|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|     18|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_27FieldOptions_EditionDefaultEEEEERKNT_4TypeEi:
  252|     18|  const Value<TypeHandler>& Get(int index) const {
  253|     18|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|     18|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|     18|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     18|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 18]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     18|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|     18|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|     18|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|     18|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     18|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 18]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     18|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|     18|    return *cast<TypeHandler>(element_at(index));
  256|     18|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_27FieldOptions_EditionDefaultEEEEEPKNT_4TypeEPKv:
  665|     18|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|     18|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|     18|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEE4sizeEv:
 1340|      9|inline int RepeatedPtrField<Element>::size() const {
 1341|      9|  return RepeatedPtrFieldBase::size();
 1342|      9|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEE5ClearEv:
 1469|      1|inline void RepeatedPtrField<Element>::Clear() {
 1470|      1|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|      1|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEEEEvv:
  265|      1|  void Clear() {
  266|      1|    const int n = current_size_;
  267|      1|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|      1|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|      1|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      1|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 1]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      1|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|      1|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 0, False: 1]
  ------------------
  269|      0|      using H = CommonHandler<TypeHandler>;
  270|      0|      ClearNonEmpty<H>();
  271|      0|    }
  272|      1|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEE3GetEi:
 1346|      4|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|      4|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|      4|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEEEERKNT_4TypeEi:
  252|      4|  const Value<TypeHandler>& Get(int index) const {
  253|      4|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|      4|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|      4|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      4|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 4]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      4|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|      4|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|      4|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|      4|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      4|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 4]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      4|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|      4|    return *cast<TypeHandler>(element_at(index));
  256|      4|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEEEEPKNT_4TypeEPKv:
  665|      4|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|      4|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|      4|  }
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE8GetArenaEv:
 1541|  4.38k|inline Arena* RepeatedPtrField<Element>::GetArena() {
 1542|  4.38k|  return RepeatedPtrFieldBase::GetArena();
 1543|  4.38k|}
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE20AddAllocatedForParseEPS8_:
 1248|      3|  void AddAllocatedForParse(Element* p) {
 1249|      3|    return RepeatedPtrFieldBase::AddAllocatedForParse(p);
 1250|      3|  }
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal20RepeatedPtrFieldBase11AddInternalIZNS1_8TcParser10AddMessageEPKNS1_16TcParseTableBaseERS2_E3$_0EEPvT_:
  779|  78.9k|void* RepeatedPtrFieldBase::AddInternal(Factory factory) {
  780|  78.9k|  Arena* const arena = GetArena();
  781|  78.9k|  if (tagged_rep_or_elem_ == nullptr) {
  ------------------
  |  Branch (781:7): [True: 9.34k, False: 69.5k]
  ------------------
  782|  9.34k|    ExchangeCurrentSize(1);
  783|  9.34k|    tagged_rep_or_elem_ = factory(arena);
  784|  9.34k|    return tagged_rep_or_elem_;
  785|  9.34k|  }
  786|  69.5k|  absl::PrefetchToLocalCache(tagged_rep_or_elem_);
  787|  69.5k|  if (using_sso()) {
  ------------------
  |  Branch (787:7): [True: 6.75k, False: 62.8k]
  ------------------
  788|  6.75k|    if (current_size_ == 0) {
  ------------------
  |  Branch (788:9): [True: 0, False: 6.75k]
  ------------------
  789|      0|      ExchangeCurrentSize(1);
  790|      0|      return tagged_rep_or_elem_;
  791|      0|    }
  792|  6.75k|    void*& result = *InternalExtend(1);
  793|  6.75k|    result = factory(arena);
  794|  6.75k|    Rep* r = rep();
  795|  6.75k|    r->allocated_size = 2;
  796|  6.75k|    ExchangeCurrentSize(2);
  797|  6.75k|    return result;
  798|  6.75k|  }
  799|  62.8k|  Rep* r = rep();
  800|  62.8k|  if (PROTOBUF_PREDICT_FALSE(SizeAtCapacity())) {
  ------------------
  |  |  365|  62.8k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 4.91k, False: 57.9k]
  |  |  |  Branch (365:54): [Folded, False: 62.8k]
  |  |  |  Branch (365:63): [True: 4.91k, False: 57.9k]
  |  |  ------------------
  ------------------
  801|  4.91k|    InternalExtend(1);
  802|  4.91k|    r = rep();
  803|  57.9k|  } else {
  804|  57.9k|    if (current_size_ != r->allocated_size) {
  ------------------
  |  Branch (804:9): [True: 0, False: 57.9k]
  ------------------
  805|      0|      return r->elements[ExchangeCurrentSize(current_size_ + 1)];
  806|      0|    }
  807|  57.9k|  }
  808|  62.8k|  ++r->allocated_size;
  809|  62.8k|  void*& result = r->elements[ExchangeCurrentSize(current_size_ + 1)];
  810|  62.8k|  result = factory(arena);
  811|  62.8k|  return result;
  812|  62.8k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase7DestroyINS1_18GenericTypeHandlerINS0_11MessageLiteEEEEEvv:
  220|  9.21k|  void Destroy() {
  221|  9.21k|    ABSL_DCHECK(NeedsDestroy());
  ------------------
  |  |   47|  9.21k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  9.21k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  18.4k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  9.21k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  18.4k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  18.4k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 9.21k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  9.21k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 9.21k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  9.21k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 9.21k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  18.4k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  18.4k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|       |
  223|       |    // TODO: arena check is redundant once all `RepeatedPtrField`s
  224|       |    // with non-null arena are owned by the arena.
  225|  9.21k|    if (PROTOBUF_PREDICT_FALSE(arena_ != nullptr)) return;
  ------------------
  |  |  365|  9.21k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 9.21k]
  |  |  |  Branch (365:54): [Folded, False: 9.21k]
  |  |  |  Branch (365:63): [True: 0, False: 9.21k]
  |  |  ------------------
  ------------------
  226|       |
  227|  9.21k|    using H = CommonHandler<TypeHandler>;
  228|  9.21k|    int n = allocated_size();
  229|  9.21k|    void** elems = elements();
  230|  87.6k|    for (int i = 0; i < n; i++) {
  ------------------
  |  Branch (230:21): [True: 78.4k, False: 9.21k]
  ------------------
  231|  78.4k|      Delete<H>(elems[i], nullptr);
  232|  78.4k|    }
  233|  9.21k|    if (!using_sso()) {
  ------------------
  |  Branch (233:9): [True: 6.66k, False: 2.55k]
  ------------------
  234|  6.66k|      internal::SizedDelete(rep(),
  235|  6.66k|                            Capacity() * sizeof(elems[0]) + kRepHeaderSize);
  236|  6.66k|    }
  237|  9.21k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase6DeleteINS1_18GenericTypeHandlerINS0_11MessageLiteEEEEEvPvPNS0_5ArenaE:
  669|  78.4k|  static inline void Delete(void* obj, Arena* arena) {
  670|  78.4k|    TypeHandler::Delete(cast<TypeHandler>(obj), arena);
  671|  78.4k|  }
_ZN6google8protobuf8internal18GenericTypeHandlerINS0_11MessageLiteEE6DeleteEPS3_PNS0_5ArenaE:
  837|  78.4k|  static inline void Delete(Type* value, Arena* arena) {
  838|  78.4k|    if (arena != nullptr) return;
  ------------------
  |  Branch (838:9): [True: 0, False: 78.4k]
  ------------------
  839|       |#ifdef __cpp_if_constexpr
  840|       |    if constexpr (std::is_base_of<MessageLite, Type>::value) {
  841|       |      // Using virtual destructor to reduce generated code size that would have
  842|       |      // happened otherwise due to inlined `~Type()`.
  843|       |      InternalOutOfLineDeleteMessageLite(value);
  844|       |    } else {
  845|       |      delete value;
  846|       |    }
  847|       |#else
  848|  78.4k|    delete value;
  849|  78.4k|#endif
  850|  78.4k|  }
repeated_ptr_field.cc:_ZN6google8protobuf8internal20RepeatedPtrFieldBase11AddInternalIZNS2_9AddStringEvE3$_0EEPvT_:
  779|  13.4k|void* RepeatedPtrFieldBase::AddInternal(Factory factory) {
  780|  13.4k|  Arena* const arena = GetArena();
  781|  13.4k|  if (tagged_rep_or_elem_ == nullptr) {
  ------------------
  |  Branch (781:7): [True: 3.47k, False: 9.95k]
  ------------------
  782|  3.47k|    ExchangeCurrentSize(1);
  783|  3.47k|    tagged_rep_or_elem_ = factory(arena);
  784|  3.47k|    return tagged_rep_or_elem_;
  785|  3.47k|  }
  786|  9.95k|  absl::PrefetchToLocalCache(tagged_rep_or_elem_);
  787|  9.95k|  if (using_sso()) {
  ------------------
  |  Branch (787:7): [True: 2.15k, False: 7.79k]
  ------------------
  788|  2.15k|    if (current_size_ == 0) {
  ------------------
  |  Branch (788:9): [True: 0, False: 2.15k]
  ------------------
  789|      0|      ExchangeCurrentSize(1);
  790|      0|      return tagged_rep_or_elem_;
  791|      0|    }
  792|  2.15k|    void*& result = *InternalExtend(1);
  793|  2.15k|    result = factory(arena);
  794|  2.15k|    Rep* r = rep();
  795|  2.15k|    r->allocated_size = 2;
  796|  2.15k|    ExchangeCurrentSize(2);
  797|  2.15k|    return result;
  798|  2.15k|  }
  799|  7.79k|  Rep* r = rep();
  800|  7.79k|  if (PROTOBUF_PREDICT_FALSE(SizeAtCapacity())) {
  ------------------
  |  |  365|  7.79k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1.40k, False: 6.39k]
  |  |  |  Branch (365:54): [Folded, False: 7.79k]
  |  |  |  Branch (365:63): [True: 1.40k, False: 6.39k]
  |  |  ------------------
  ------------------
  801|  1.40k|    InternalExtend(1);
  802|  1.40k|    r = rep();
  803|  6.39k|  } else {
  804|  6.39k|    if (current_size_ != r->allocated_size) {
  ------------------
  |  Branch (804:9): [True: 0, False: 6.39k]
  ------------------
  805|      0|      return r->elements[ExchangeCurrentSize(current_size_ + 1)];
  806|      0|    }
  807|  6.39k|  }
  808|  7.79k|  ++r->allocated_size;
  809|  7.79k|  void*& result = r->elements[ExchangeCurrentSize(current_size_ + 1)];
  810|  7.79k|  result = factory(arena);
  811|  7.79k|  return result;
  812|  7.79k|}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEE5beginEv:
 1836|     10|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     10|  return iterator(raw_data());
 1838|     10|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_22ServiceDescriptorProtoEEC2EPKPv:
 1617|     20|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_22ServiceDescriptorProtoEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|     20|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEE3endEv:
 1851|     10|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     10|  return iterator(raw_data() + size());
 1853|     10|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_22ServiceDescriptorProtoEEES7_:
 1647|     10|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|     10|    return x.it_ != y.it_;
 1649|     10|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEE5beginEv:
 1836|     99|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     99|  return iterator(raw_data());
 1838|     99|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_15DescriptorProtoEEC2EPKPv:
 1617|    198|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_15DescriptorProtoEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|    198|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEE3endEv:
 1851|     99|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     99|  return iterator(raw_data() + size());
 1853|     99|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_15DescriptorProtoEEES7_:
 1647|    188|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|    188|    return x.it_ != y.it_;
 1649|    188|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_15DescriptorProtoEEdeEv:
 1628|     89|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_30DescriptorProto_ExtensionRangeEE5beginEv:
 1836|     41|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     41|  return iterator(raw_data());
 1838|     41|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_30DescriptorProto_ExtensionRangeEEC2EPKPv:
 1617|     82|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_30DescriptorProto_ExtensionRangeEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|     82|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_30DescriptorProto_ExtensionRangeEE3endEv:
 1851|     41|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     41|  return iterator(raw_data() + size());
 1853|     41|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_30DescriptorProto_ExtensionRangeEEES7_:
 1647|     55|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|     55|    return x.it_ != y.it_;
 1649|     55|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_30DescriptorProto_ExtensionRangeEEdeEv:
 1628|     14|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_30DescriptorProto_ExtensionRangeEEppEv:
 1632|     14|  iterator& operator++() {
 1633|     14|    ++it_;
 1634|     14|    return *this;
 1635|     14|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_20OneofDescriptorProtoEE5beginEv:
 1836|     41|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     41|  return iterator(raw_data());
 1838|     41|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_20OneofDescriptorProtoEEC2EPKPv:
 1617|     82|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_20OneofDescriptorProtoEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|     82|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_20OneofDescriptorProtoEE3endEv:
 1851|     41|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     41|  return iterator(raw_data() + size());
 1853|     41|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_20OneofDescriptorProtoEEES7_:
 1647|     42|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|     42|    return x.it_ != y.it_;
 1649|     42|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_20OneofDescriptorProtoEEdeEv:
 1628|      1|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_20OneofDescriptorProtoEEppEv:
 1632|      1|  iterator& operator++() {
 1633|      1|    ++it_;
 1634|      1|    return *this;
 1635|      1|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_15DescriptorProtoEEppEv:
 1632|     89|  iterator& operator++() {
 1633|     89|    ++it_;
 1634|     89|    return *this;
 1635|     89|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEE5beginEv:
 1836|     51|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     51|  return iterator(raw_data());
 1838|     51|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_19EnumDescriptorProtoEEC2EPKPv:
 1617|    102|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_19EnumDescriptorProtoEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|    102|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEE3endEv:
 1851|     51|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     51|  return iterator(raw_data() + size());
 1853|     51|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_19EnumDescriptorProtoEEES7_:
 1647|     76|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|     76|    return x.it_ != y.it_;
 1649|     76|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_19EnumDescriptorProtoEEdeEv:
 1628|     25|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_24EnumValueDescriptorProtoEE5beginEv:
 1836|     20|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     20|  return iterator(raw_data());
 1838|     20|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_24EnumValueDescriptorProtoEEC2EPKPv:
 1617|     40|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_24EnumValueDescriptorProtoEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|     40|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_24EnumValueDescriptorProtoEE3endEv:
 1851|     20|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     20|  return iterator(raw_data() + size());
 1853|     20|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_24EnumValueDescriptorProtoEEES7_:
 1647|    131|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|    131|    return x.it_ != y.it_;
 1649|    131|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_24EnumValueDescriptorProtoEEdeEv:
 1628|    111|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_24EnumValueDescriptorProtoEEppEv:
 1632|    111|  iterator& operator++() {
 1633|    111|    ++it_;
 1634|    111|    return *this;
 1635|    111|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_19EnumDescriptorProtoEEppEv:
 1632|     25|  iterator& operator++() {
 1633|     25|    ++it_;
 1634|     25|    return *this;
 1635|     25|  }
_ZNK6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE5beginEv:
 1836|     61|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     61|  return iterator(raw_data());
 1838|     61|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEC2EPKPv:
 1617|    122|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEC2IS9_TnPNS3_9enable_ifIXsr3std14is_convertibleIPT_PSA_EE5valueEvE4typeELPv0EEERKNS2_ISE_EE:
 1625|    122|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE3endEv:
 1851|     61|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     61|  return iterator(raw_data() + size());
 1853|     61|}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEE5beginEv:
 1836|     12|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     12|  return iterator(raw_data());
 1838|     12|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEC2EPKPv:
 1617|     20|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|     20|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEE3endEv:
 1851|      8|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|      8|  return iterator(raw_data() + size());
 1853|      8|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEES7_:
 1647|     20|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|     20|    return x.it_ != y.it_;
 1649|     20|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEppEv:
 1632|     20|  iterator& operator++() {
 1633|     20|    ++it_;
 1634|     20|    return *this;
 1635|     20|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEdeEv:
 1628|     34|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEE5beginEv:
 1836|    140|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|    140|  return iterator(raw_data());
 1838|    140|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_20FieldDescriptorProtoEEC2EPKPv:
 1617|    280|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_20FieldDescriptorProtoEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|    280|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEE3endEv:
 1851|    140|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|    140|  return iterator(raw_data() + size());
 1853|    140|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_20FieldDescriptorProtoEEES7_:
 1647|    344|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|    344|    return x.it_ != y.it_;
 1649|    344|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_20FieldDescriptorProtoEEppEv:
 1632|    204|  iterator& operator++() {
 1633|    204|    ++it_;
 1634|    204|    return *this;
 1635|    204|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_20FieldDescriptorProtoEEdeEv:
 1628|    204|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEESD_:
 1647|     63|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|     63|    return x.it_ != y.it_;
 1649|     63|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEppEv:
 1632|      2|  iterator& operator++() {
 1633|      2|    ++it_;
 1634|      2|    return *this;
 1635|      2|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEdeEv:
 1628|      2|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZN6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEE19StaticValidityCheckEv:
  938|     54|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     54|    static_assert(
  940|     54|        absl::disjunction<
  941|     54|            internal::is_supported_string_type<Element>,
  942|     54|            internal::is_supported_message_type<Element>>::value,
  943|     54|        "We only support string and Message types in RepeatedPtrField.");
  944|     54|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEE19StaticValidityCheckEv:
  938|     54|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     54|    static_assert(
  940|     54|        absl::disjunction<
  941|     54|            internal::is_supported_string_type<Element>,
  942|     54|            internal::is_supported_message_type<Element>>::value,
  943|     54|        "We only support string and Message types in RepeatedPtrField.");
  944|     54|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEE19StaticValidityCheckEv:
  938|      6|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|      6|    static_assert(
  940|      6|        absl::disjunction<
  941|      6|            internal::is_supported_string_type<Element>,
  942|      6|            internal::is_supported_message_type<Element>>::value,
  943|      6|        "We only support string and Message types in RepeatedPtrField.");
  944|      6|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEE19StaticValidityCheckEv:
  938|    102|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|    102|    static_assert(
  940|    102|        absl::disjunction<
  941|    102|            internal::is_supported_string_type<Element>,
  942|    102|            internal::is_supported_message_type<Element>>::value,
  943|    102|        "We only support string and Message types in RepeatedPtrField.");
  944|    102|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|     10|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEEC2EPNS0_5ArenaE:
 1263|     10|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|     10|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|     10|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEEC2EPNS0_5ArenaE:
 1263|     10|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|     10|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|     10|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEEC2EPNS0_5ArenaE:
 1263|     10|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|     10|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|     10|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEEC2EPNS0_5ArenaE:
 1263|     10|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|     10|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_20FieldDescriptorProtoEED2Ev:
 1285|    102|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|    102|  StaticValidityCheck();
 1287|    102|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 53, False: 49]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|     49|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 49, Folded]
  ------------------
 1292|     49|#endif
 1293|     49|    DestroyProtos();
 1294|     49|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|     49|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_22ServiceDescriptorProtoEED2Ev:
 1285|      6|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|      6|  StaticValidityCheck();
 1287|      6|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 6, False: 0]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|      0|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 0, Folded]
  ------------------
 1292|      0|#endif
 1293|      0|    DestroyProtos();
 1294|      0|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|      0|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_19EnumDescriptorProtoEED2Ev:
 1285|     54|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     54|  StaticValidityCheck();
 1287|     54|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 43, False: 11]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|     11|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 11, Folded]
  ------------------
 1292|     11|#endif
 1293|     11|    DestroyProtos();
 1294|     11|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|     11|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_15DescriptorProtoEED2Ev:
 1285|     54|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     54|  StaticValidityCheck();
 1287|     54|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 40, False: 14]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|     14|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 14, Folded]
  ------------------
 1292|     14|#endif
 1293|     14|    DestroyProtos();
 1294|     14|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|     14|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_30DescriptorProto_ExtensionRangeEE19StaticValidityCheckEv:
  938|     48|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     48|    static_assert(
  940|     48|        absl::disjunction<
  941|     48|            internal::is_supported_string_type<Element>,
  942|     48|            internal::is_supported_message_type<Element>>::value,
  943|     48|        "We only support string and Message types in RepeatedPtrField.");
  944|     48|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_20OneofDescriptorProtoEE19StaticValidityCheckEv:
  938|     48|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     48|    static_assert(
  940|     48|        absl::disjunction<
  941|     48|            internal::is_supported_string_type<Element>,
  942|     48|            internal::is_supported_message_type<Element>>::value,
  943|     48|        "We only support string and Message types in RepeatedPtrField.");
  944|     48|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_29DescriptorProto_ReservedRangeEE19StaticValidityCheckEv:
  938|     48|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     48|    static_assert(
  940|     48|        absl::disjunction<
  941|     48|            internal::is_supported_string_type<Element>,
  942|     48|            internal::is_supported_message_type<Element>>::value,
  943|     48|        "We only support string and Message types in RepeatedPtrField.");
  944|     48|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_29DescriptorProto_ReservedRangeEED2Ev:
 1285|     48|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     48|  StaticValidityCheck();
 1287|     48|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 41, False: 7]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|      7|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 7, Folded]
  ------------------
 1292|      7|#endif
 1293|      7|    DestroyProtos();
 1294|      7|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|      7|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_20OneofDescriptorProtoEED2Ev:
 1285|     48|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     48|  StaticValidityCheck();
 1287|     48|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 46, False: 2]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|      2|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 2, Folded]
  ------------------
 1292|      2|#endif
 1293|      2|    DestroyProtos();
 1294|      2|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|      2|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_30DescriptorProto_ExtensionRangeEED2Ev:
 1285|     48|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     48|  StaticValidityCheck();
 1287|     48|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 36, False: 12]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|     12|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 12, Folded]
  ------------------
 1292|     12|#endif
 1293|     12|    DestroyProtos();
 1294|     12|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|     12|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE19StaticValidityCheckEv:
  938|     20|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     20|    static_assert(
  940|     20|        absl::disjunction<
  941|     20|            internal::is_supported_string_type<Element>,
  942|     20|            internal::is_supported_message_type<Element>>::value,
  943|     20|        "We only support string and Message types in RepeatedPtrField.");
  944|     20|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|     19|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEEC2EPNS0_5ArenaE:
 1263|     19|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|     19|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEED2Ev:
 1285|     20|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     20|  StaticValidityCheck();
 1287|     20|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 20, False: 0]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|      0|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 0, Folded]
  ------------------
 1292|      0|#endif
 1293|      0|    DestroyProtos();
 1294|      0|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|      0|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_24EnumValueDescriptorProtoEE19StaticValidityCheckEv:
  938|     22|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     22|    static_assert(
  940|     22|        absl::disjunction<
  941|     22|            internal::is_supported_string_type<Element>,
  942|     22|            internal::is_supported_message_type<Element>>::value,
  943|     22|        "We only support string and Message types in RepeatedPtrField.");
  944|     22|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_37EnumDescriptorProto_EnumReservedRangeEE19StaticValidityCheckEv:
  938|     22|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     22|    static_assert(
  940|     22|        absl::disjunction<
  941|     22|            internal::is_supported_string_type<Element>,
  942|     22|            internal::is_supported_message_type<Element>>::value,
  943|     22|        "We only support string and Message types in RepeatedPtrField.");
  944|     22|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_37EnumDescriptorProto_EnumReservedRangeEED2Ev:
 1285|     22|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     22|  StaticValidityCheck();
 1287|     22|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 21, False: 1]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|      1|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 1, Folded]
  ------------------
 1292|      1|#endif
 1293|      1|    DestroyProtos();
 1294|      1|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|      1|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_24EnumValueDescriptorProtoEED2Ev:
 1285|     22|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     22|  StaticValidityCheck();
 1287|     22|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 0, False: 22]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|     22|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 22, Folded]
  ------------------
 1292|     22|#endif
 1293|     22|    DestroyProtos();
 1294|     22|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|     22|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEE19StaticValidityCheckEv:
  938|     17|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|     17|    static_assert(
  940|     17|        absl::disjunction<
  941|     17|            internal::is_supported_string_type<Element>,
  942|     17|            internal::is_supported_message_type<Element>>::value,
  943|     17|        "We only support string and Message types in RepeatedPtrField.");
  944|     17|  }
_ZN6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|     17|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEEC2EPNS0_5ArenaE:
 1263|     17|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|     17|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEED2Ev:
 1285|     17|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|     17|  StaticValidityCheck();
 1287|     17|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 8, False: 9]
  ------------------
 1288|       |#ifdef __cpp_if_constexpr
 1289|       |  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|      9|  if (std::is_base_of<MessageLite, Element>::value) {
  ------------------
  |  Branch (1291:7): [True: 9, Folded]
  ------------------
 1292|      9|#endif
 1293|      9|    DestroyProtos();
 1294|      9|  } else {
 1295|      0|    Destroy<TypeHandler>();
 1296|      0|  }
 1297|      9|}
_ZN6google8protobuf16RepeatedPtrFieldINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|      1|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldINS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEC2EPNS0_5ArenaE:
 1263|      1|    : RepeatedPtrFieldBase(arena) {
 1264|       |  // We can't have StaticValidityCheck here because that requires Element to be
 1265|       |  // a complete type, and in split repeated fields cases, we call
 1266|       |  // CreateMessage<RepeatedPtrField<T>> for incomplete Ts.
 1267|      1|}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE5beginEv:
 1836|     19|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     19|  return iterator(raw_data());
 1838|     19|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_19UninterpretedOptionEEC2EPKPv:
 1617|     38|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_19UninterpretedOptionEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|     38|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE3endEv:
 1851|     19|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     19|  return iterator(raw_data() + size());
 1853|     19|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_19UninterpretedOptionEEES7_:
 1647|     19|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|     19|    return x.it_ != y.it_;
 1649|     19|  }
_ZNK6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEE5beginEv:
 1836|     17|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|     17|  return iterator(raw_data());
 1838|     17|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorINS0_27FieldOptions_EditionDefaultEEC2EPKPv:
 1617|     34|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_27FieldOptions_EditionDefaultEEC2IS3_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS4_EE5valueEvE4typeELPv0EEERKNS2_IS9_EE:
 1625|     34|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldINS0_27FieldOptions_EditionDefaultEE3endEv:
 1851|     17|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|     17|  return iterator(raw_data() + size());
 1853|     17|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKNS0_27FieldOptions_EditionDefaultEEES7_:
 1647|     35|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|     35|    return x.it_ != y.it_;
 1649|     35|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_27FieldOptions_EditionDefaultEEppEv:
 1632|     18|  iterator& operator++() {
 1633|     18|    ++it_;
 1634|     18|    return *this;
 1635|     18|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_27FieldOptions_EditionDefaultEEdeEv:
 1628|     18|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZN6google8protobuf8internal7memswapILm24EEEvPcS3_:
   78|    227|inline void memswap(char* PROTOBUF_RESTRICT a, char* PROTOBUF_RESTRICT b) {
   79|       |  // `PROTOBUF_RESTRICT` tells compiler that blocks do not overlapping which
   80|       |  // allows it to generate optimized code for swap_ranges.
   81|    227|  std::swap_ranges(a, a + N, b);
   82|    227|}
_ZN6google8protobuf8internalmiENS1_19RepeatedPtrIteratorIKNS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEES5_:
 1691|      4|  friend difference_type operator-(iterator it1, iterator it2) {
 1692|      4|    return it1.it_ - it2.it_;
 1693|      4|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKNS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEpLEl:
 1666|     18|  iterator& operator+=(difference_type d) {
 1667|     18|    it_ += d;
 1668|     18|    return *this;
 1669|     18|  }
_ZN6google8protobuf8internaleqERKNS1_19RepeatedPtrIteratorIKNS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEES7_:
 1644|      4|  friend bool operator==(const iterator& x, const iterator& y) {
 1645|      4|    return x.it_ == y.it_;
 1646|      4|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKNS0_43FeatureSetDefaults_FeatureSetEditionDefaultEEptEv:
 1629|      8|  pointer operator->() const { return &(operator*()); }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_7MessageEEEEEPNT_4TypeEPv:
  661|  72.8k|  static inline Value<TypeHandler>* cast(void* element) {
  662|  72.8k|    return reinterpret_cast<Value<TypeHandler>*>(element);
  663|  72.8k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_7MessageEEEEERKNT_4TypeEi:
  252|  72.8k|  const Value<TypeHandler>& Get(int index) const {
  253|  72.8k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  72.8k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  72.8k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  72.8k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 72.8k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  72.8k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|  72.8k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  72.8k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|  72.8k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  72.8k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 72.8k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  72.8k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|  72.8k|    return *cast<TypeHandler>(element_at(index));
  256|  72.8k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_7MessageEEEEEPKNT_4TypeEPKv:
  665|  72.8k|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|  72.8k|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|  72.8k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase7MutableINS1_18GenericTypeHandlerINS0_7MessageEEEEEPNT_4TypeEi:
  187|  72.8k|  Value<TypeHandler>* Mutable(int index) {
  188|  72.8k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  72.8k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  72.8k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  72.8k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 72.8k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  72.8k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  189|  72.8k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  72.8k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|  72.8k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  72.8k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 72.8k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  72.8k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  190|  72.8k|    return cast<TypeHandler>(element_at(index));
  191|  72.8k|  }

_ZN6google8protobuf8internal10ArenaBlockC2EPS2_m:
   43|     21|  ArenaBlock(ArenaBlock* next, size_t size) : next(next), size(size) {
   44|     21|    ABSL_DCHECK_GT(size, sizeof(ArenaBlock));
  ------------------
  |  |   84|     21|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|     21|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     21|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 21]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     21|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   45|     21|  }
_ZN6google8protobuf8internal10ArenaBlock7PointerEm:
   47|     59|  char* Pointer(size_t n) {
   48|     59|    ABSL_DCHECK_LE(n, size);
  ------------------
  |  |   78|     59|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|     59|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     59|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 59]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     59|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   49|     59|    return reinterpret_cast<char*>(this) + n;
   50|     59|  }
_ZN6google8protobuf8internal10ArenaBlock5LimitEv:
   51|     21|  char* Limit() { return Pointer(size & static_cast<size_t>(-8)); }
_ZNK6google8protobuf8internal10ArenaBlock8IsSentryEv:
   53|     21|  bool IsSentry() const { return size == 0; }
_ZN6google8protobuf8internal11SerialArena11CleanupListEv:
   85|      4|  void CleanupList() { cleanup_list_.Cleanup(*this); }
_ZNK6google8protobuf8internal11SerialArena14SpaceAllocatedEv:
   86|      4|  uint64_t SpaceAllocated() const {
   87|      4|    return space_allocated_.load(std::memory_order_relaxed);
   88|      4|  }
_ZN6google8protobuf8internal11SerialArena26TryAllocateFromCachedBlockEm:
   92|    129|  PROTOBUF_ALWAYS_INLINE void* TryAllocateFromCachedBlock(size_t size) {
   93|    129|    if (PROTOBUF_PREDICT_FALSE(size < 16)) return nullptr;
  ------------------
  |  |  365|    129|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 129]
  |  |  |  Branch (365:54): [Folded, False: 129]
  |  |  |  Branch (365:63): [True: 0, False: 129]
  |  |  ------------------
  ------------------
   94|       |    // We round up to the next larger block in case the memory doesn't match
   95|       |    // the pattern we are looking for.
   96|    129|    const size_t index = absl::bit_width(size - 1) - 4;
   97|       |
   98|    129|    if (PROTOBUF_PREDICT_FALSE(index >= cached_block_length_)) return nullptr;
  ------------------
  |  |  365|    129|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 16, False: 113]
  |  |  |  Branch (365:54): [Folded, False: 129]
  |  |  |  Branch (365:63): [True: 16, False: 113]
  |  |  ------------------
  ------------------
   99|    113|    auto& cached_head = cached_blocks_[index];
  100|    113|    if (cached_head == nullptr) return nullptr;
  ------------------
  |  Branch (100:9): [True: 72, False: 41]
  ------------------
  101|       |
  102|     41|    void* ret = cached_head;
  103|     41|    PROTOBUF_UNPOISON_MEMORY_REGION(ret, size);
  104|     41|    cached_head = cached_head->next;
  105|     41|    return ret;
  106|    113|  }
_ZN6google8protobuf8internal11SerialArena17ReturnArrayMemoryEPvm:
  151|     49|  void ReturnArrayMemory(void* p, size_t size) {
  152|       |    // We only need to check for 32-bit platforms.
  153|       |    // In 64-bit platforms the minimum allocation size from Repeated*Field will
  154|       |    // be 16 guaranteed.
  155|     49|    if (sizeof(void*) < 8) {
  ------------------
  |  Branch (155:9): [Folded, False: 49]
  ------------------
  156|      0|      if (PROTOBUF_PREDICT_FALSE(size < 16)) return;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  157|     49|    } else {
  158|     49|      PROTOBUF_ASSUME(size >= 16);
  ------------------
  |  |  941|     49|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  159|     49|    }
  160|       |
  161|       |    // We round down to the next smaller block in case the memory doesn't match
  162|       |    // the pattern we are looking for. eg, someone might have called Reserve()
  163|       |    // on the repeated field.
  164|     49|    const size_t index = absl::bit_width(size) - 5;
  165|       |
  166|     49|    if (PROTOBUF_PREDICT_FALSE(index >= cached_block_length_)) {
  ------------------
  |  |  365|     49|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 3, False: 46]
  |  |  |  Branch (365:54): [Folded, False: 49]
  |  |  |  Branch (365:63): [True: 3, False: 46]
  |  |  ------------------
  ------------------
  167|       |      // We can't put this object on the freelist so make this object the
  168|       |      // freelist. It is guaranteed it is larger than the one we have, and
  169|       |      // large enough to hold another allocation of `size`.
  170|      3|      CachedBlock** new_list = static_cast<CachedBlock**>(p);
  171|      3|      size_t new_size = size / sizeof(CachedBlock*);
  172|       |
  173|      3|      std::copy(cached_blocks_, cached_blocks_ + cached_block_length_,
  174|      3|                new_list);
  175|       |
  176|       |      // We need to unpoison this memory before filling it in case it has been
  177|       |      // poisoned by another sanitizer client.
  178|      3|      PROTOBUF_UNPOISON_MEMORY_REGION(
  179|      3|          new_list + cached_block_length_,
  180|      3|          (new_size - cached_block_length_) * sizeof(CachedBlock*));
  181|       |
  182|      3|      std::fill(new_list + cached_block_length_, new_list + new_size, nullptr);
  183|       |
  184|      3|      cached_blocks_ = new_list;
  185|       |      // Make the size fit in uint8_t. This is the power of two, so we don't
  186|       |      // need anything larger.
  187|      3|      cached_block_length_ =
  188|      3|          static_cast<uint8_t>(std::min(size_t{64}, new_size));
  189|       |
  190|      3|      return;
  191|      3|    }
  192|       |
  193|     46|    auto& cached_head = cached_blocks_[index];
  194|     46|    auto* new_node = static_cast<CachedBlock*>(p);
  195|     46|    new_node->next = cached_head;
  196|     46|    cached_head = new_node;
  197|     46|    PROTOBUF_POISON_MEMORY_REGION(p, size);
  198|     46|  }
_ZN6google8protobuf8internal11SerialArena20MaybeAllocateAlignedEmPPv:
  202|    580|  bool MaybeAllocateAligned(size_t n, void** out) {
  203|    580|    ABSL_DCHECK(internal::ArenaAlignDefault::IsAligned(n));
  ------------------
  |  |   47|    580|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    580|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  1.16k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    580|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  1.16k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  1.16k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 580, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    580|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 580]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    580|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 580, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  1.16k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  1.16k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|    580|    ABSL_DCHECK_GE(limit_, ptr());
  ------------------
  |  |   82|    580|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|    580|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    580|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 580]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    580|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|    580|    char* ret = ptr();
  206|       |    // ret + n may point out of the block bounds, or ret may be nullptr.
  207|       |    // Both computations have undefined behavior when done on pointers,
  208|       |    // so do them on uintptr_t instead.
  209|    580|    if (PROTOBUF_PREDICT_FALSE(reinterpret_cast<uintptr_t>(ret) + n >
  ------------------
  |  |  365|    580|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 26, False: 554]
  |  |  |  Branch (365:54): [Folded, False: 580]
  |  |  |  Branch (365:63): [True: 26, False: 554]
  |  |  ------------------
  ------------------
  210|    580|                               reinterpret_cast<uintptr_t>(limit_))) {
  211|     26|      return false;
  212|     26|    }
  213|    554|    PROTOBUF_UNPOISON_MEMORY_REGION(ret, n);
  214|    554|    *out = ret;
  215|    554|    char* next = ret + n;
  216|    554|    set_ptr(next);
  217|    554|    MaybePrefetchData(next);
  218|    554|    return true;
  219|    580|  }
_ZN6google8protobuf8internal11SerialArena17MaybePrefetchImplElPKcS4_S4_:
  286|    554|                                       const char* prefetch_ptr) {
  287|    554|    if (PROTOBUF_PREDICT_TRUE(prefetch_ptr - next > prefetch_degree))
  ------------------
  |  |  364|    554|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 384, False: 170]
  |  |  |  Branch (364:53): [Folded, False: 554]
  |  |  |  Branch (364:62): [True: 384, False: 170]
  |  |  ------------------
  ------------------
  288|    384|      return prefetch_ptr;
  289|    170|    if (PROTOBUF_PREDICT_TRUE(prefetch_ptr < limit)) {
  ------------------
  |  |  364|    170|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 67, False: 103]
  |  |  |  Branch (364:53): [Folded, False: 170]
  |  |  |  Branch (364:62): [True: 67, False: 103]
  |  |  ------------------
  ------------------
  290|     67|      prefetch_ptr = std::max(next, prefetch_ptr);
  291|     67|      ABSL_DCHECK(prefetch_ptr != nullptr);
  ------------------
  |  |   47|     67|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     67|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|    134|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     67|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    134|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    134|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 67, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     67|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 67]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     67|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 67, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    134|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    134|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|     67|      const char* end = std::min(limit, prefetch_ptr + prefetch_degree);
  293|    993|      for (; prefetch_ptr < end; prefetch_ptr += ABSL_CACHELINE_SIZE) {
  ------------------
  |  |   77|    926|#define ABSL_CACHELINE_SIZE 64
  ------------------
  |  Branch (293:14): [True: 926, False: 67]
  ------------------
  294|    926|        absl::PrefetchToLocalCacheForWrite(prefetch_ptr);
  295|    926|      }
  296|     67|    }
  297|    170|    return prefetch_ptr;
  298|    170|  }
_ZN6google8protobuf8internal11SerialArena17MaybePrefetchDataEPKc:
  300|    554|  void MaybePrefetchData(const char* next) {
  301|    554|    ABSL_DCHECK(static_cast<const void*>(prefetch_ptr_) == nullptr ||
  ------------------
  |  |   47|    554|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    554|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  1.10k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    554|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  1.10k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  1.10k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 554, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    554|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 554]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    554|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 554, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  1.10k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  1.10k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|    554|                static_cast<const void*>(prefetch_ptr_) >= head());
  303|    554|    prefetch_ptr_ =
  304|    554|        MaybePrefetchImpl(kPrefetchDataDegree, next, limit_, prefetch_ptr_);
  305|    554|  }
_ZN6google8protobuf8internal11SerialArena16FreeStringBlocksEv:
  327|      4|  size_t FreeStringBlocks() {
  328|       |    // On the active block delete all strings skipping the unused instances.
  329|      4|    size_t unused_bytes = string_block_unused_.load(std::memory_order_relaxed);
  330|      4|    if (StringBlock* sb = string_block_.load(std::memory_order_relaxed)) {
  ------------------
  |  Branch (330:22): [True: 4, False: 0]
  ------------------
  331|      4|      return FreeStringBlocks(sb, unused_bytes);
  332|      4|    }
  333|      0|    return 0;
  334|      4|  }
_ZN6google8protobuf8internal11SerialArena12AddSpaceUsedEm:
  338|     40|  void AddSpaceUsed(size_t space_used) {
  339|     40|    space_used_.store(space_used_.load(std::memory_order_relaxed) + space_used,
  340|     40|                      std::memory_order_relaxed);
  341|     40|  }
_ZN6google8protobuf8internal11SerialArena17AddSpaceAllocatedEm:
  344|     26|  void AddSpaceAllocated(size_t space_allocated) {
  345|     26|    space_allocated_.store(
  346|     26|        space_allocated_.load(std::memory_order_relaxed) + space_allocated,
  347|     26|        std::memory_order_relaxed);
  348|     26|  }
_ZN6google8protobuf8internal11SerialArena4headEv:
  351|     25|  ArenaBlock* head() { return head_.load(std::memory_order_relaxed); }
_ZN6google8protobuf8internal11SerialArena3ptrEv:
  356|    597|  char* ptr() { return ptr_.load(std::memory_order_relaxed); }
_ZN6google8protobuf8internal11SerialArena7set_ptrEPc:
  358|    575|  void set_ptr(char* ptr) { return ptr_.store(ptr, std::memory_order_relaxed); }
_ZN6google8protobuf8internal11SerialArena9set_rangeEPcS3_:
  359|     21|  PROTOBUF_ALWAYS_INLINE void set_range(char* ptr, char* limit) {
  360|     21|    set_ptr(ptr);
  361|     21|    prefetch_ptr_ = ptr;
  362|     21|    limit_ = limit;
  363|     21|  }
_ZN6google8protobuf8internal11SerialArena19MaybeAllocateStringERPv:
  412|    532|inline PROTOBUF_ALWAYS_INLINE bool SerialArena::MaybeAllocateString(void*& p) {
  413|       |  // Check how many unused instances are in the current block.
  414|    532|  size_t unused_bytes = string_block_unused_.load(std::memory_order_relaxed);
  415|    532|  if (PROTOBUF_PREDICT_TRUE(unused_bytes != 0)) {
  ------------------
  |  |  364|    532|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 516, False: 16]
  |  |  |  Branch (364:53): [Folded, False: 532]
  |  |  |  Branch (364:62): [True: 516, False: 16]
  |  |  ------------------
  ------------------
  416|    516|    unused_bytes -= sizeof(std::string);
  417|    516|    string_block_unused_.store(unused_bytes, std::memory_order_relaxed);
  418|    516|    p = string_block_.load(std::memory_order_relaxed)->AtOffset(unused_bytes);
  419|    516|    return true;
  420|    516|  }
  421|     16|  return false;
  422|    532|}
_ZN6google8protobuf8internal11SerialArena23AllocateFromStringBlockEv:
  425|    532|SerialArena::AllocateFromStringBlock() {
  426|    532|  void* p;
  427|    532|  if (ABSL_PREDICT_TRUE(MaybeAllocateString(p))) return p;
  ------------------
  |  |  179|    532|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 516, False: 16]
  |  |  |  Branch (179:48): [Folded, False: 532]
  |  |  |  Branch (179:57): [True: 516, False: 16]
  |  |  ------------------
  ------------------
  428|     16|  return AllocateFromStringBlockFallback();
  429|    532|}
_ZN6google8protobuf8internal11SerialArena15AllocateAlignedILNS1_16AllocationClientE0EEEPvm:
  116|    455|  void* AllocateAligned(size_t n) {
  117|    455|    ABSL_DCHECK(internal::ArenaAlignDefault::IsAligned(n));
  ------------------
  |  |   47|    455|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    455|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|    910|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    455|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    910|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    910|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 455, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    455|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 455]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    455|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 455, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    910|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    910|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  118|    455|    ABSL_DCHECK_GE(limit_, ptr());
  ------------------
  |  |   82|    455|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|    455|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    455|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 455]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    455|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  119|       |
  120|    455|    if (alloc_client == AllocationClient::kArray) {
  ------------------
  |  Branch (120:9): [Folded, False: 455]
  ------------------
  121|      0|      if (void* res = TryAllocateFromCachedBlock(n)) {
  ------------------
  |  Branch (121:17): [True: 0, False: 0]
  ------------------
  122|      0|        return res;
  123|      0|      }
  124|      0|    }
  125|       |
  126|    455|    void* ptr;
  127|    455|    if (PROTOBUF_PREDICT_TRUE(MaybeAllocateAligned(n, &ptr))) {
  ------------------
  |  |  364|    455|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 435, False: 20]
  |  |  |  Branch (364:53): [Folded, False: 455]
  |  |  |  Branch (364:62): [True: 435, False: 20]
  |  |  ------------------
  ------------------
  128|    435|      return ptr;
  129|    435|    }
  130|     20|    return AllocateAlignedFallback(n);
  131|    455|  }
_ZN6google8protobuf8internal11SerialArena15AllocateAlignedILNS1_16AllocationClientE1EEEPvm:
  116|    129|  void* AllocateAligned(size_t n) {
  117|    129|    ABSL_DCHECK(internal::ArenaAlignDefault::IsAligned(n));
  ------------------
  |  |   47|    129|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    129|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|    258|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|    129|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|    258|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|    258|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 129, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|    129|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 129]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|    129|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 129, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    258|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|    258|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  118|    129|    ABSL_DCHECK_GE(limit_, ptr());
  ------------------
  |  |   82|    129|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|    129|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    129|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 129]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    129|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  119|       |
  120|    129|    if (alloc_client == AllocationClient::kArray) {
  ------------------
  |  Branch (120:9): [True: 129, Folded]
  ------------------
  121|    129|      if (void* res = TryAllocateFromCachedBlock(n)) {
  ------------------
  |  Branch (121:17): [True: 41, False: 88]
  ------------------
  122|     41|        return res;
  123|     41|      }
  124|    129|    }
  125|       |
  126|     88|    void* ptr;
  127|     88|    if (PROTOBUF_PREDICT_TRUE(MaybeAllocateAligned(n, &ptr))) {
  ------------------
  |  |  364|     88|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 87, False: 1]
  |  |  |  Branch (364:53): [Folded, False: 88]
  |  |  |  Branch (364:62): [True: 87, False: 1]
  |  |  ------------------
  ------------------
  128|     87|      return ptr;
  129|     87|    }
  130|      1|    return AllocateAlignedFallback(n);
  131|     88|  }

_ZNK6google8protobuf8internal11StringBlock14allocated_sizeEv:
   74|     10|  size_t allocated_size() const { return allocated_size_; }
_ZN6google8protobuf8internal11StringBlockC2EPS2_btt:
   94|     16|      : next_(next),
   95|     16|        allocated_size_(size),
   96|     16|        next_size_(next_size),
   97|     16|        heap_allocated_(heap_allocated) {}
_ZN6google8protobuf8internal11StringBlock8min_sizeEv:
   99|     14|  static constexpr size_type min_size() { return size_type{256}; }
_ZN6google8protobuf8internal11StringBlock8max_sizeEv:
  100|     12|  static constexpr size_type max_size() { return size_type{8192}; }
_ZNK6google8protobuf8internal11StringBlock9next_sizeEv:
  107|     12|  size_t next_size() const { return next_size_; }
_ZN6google8protobuf8internal11StringBlock11RoundedSizeEt:
  115|     16|constexpr StringBlock::size_type StringBlock::RoundedSize(size_type size) {
  116|     16|  return size - (size - sizeof(StringBlock)) % sizeof(std::string);
  117|     16|}
_ZN6google8protobuf8internal11StringBlock8NextSizeEPS2_:
  119|     16|inline size_t StringBlock::NextSize(StringBlock* block) {
  120|     16|  return block ? block->next_size() : min_size();
  ------------------
  |  Branch (120:10): [True: 12, False: 4]
  ------------------
  121|     16|}
_ZN6google8protobuf8internal11StringBlock7EmplaceEPvmPS2_:
  123|     11|inline StringBlock* StringBlock::Emplace(void* p, size_t n, StringBlock* next) {
  124|     11|  const auto count = static_cast<size_type>(n);
  125|     11|  ABSL_DCHECK_EQ(count, NextSize(next));
  ------------------
  |  |   74|     11|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|     11|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     11|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 11]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     11|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|     11|  size_type doubled = count * 2;
  127|     11|  size_type next_size = next ? std::min(doubled, max_size()) : min_size();
  ------------------
  |  Branch (127:25): [True: 11, False: 0]
  ------------------
  128|     11|  return new (p) StringBlock(next, false, RoundedSize(count), next_size);
  129|     11|}
_ZN6google8protobuf8internal11StringBlock3NewEPS2_:
  131|      5|inline StringBlock* StringBlock::New(StringBlock* next) {
  132|       |  // Compute required size, rounding down to a multiple of sizeof(std:string)
  133|       |  // so that we can optimize the allocation path. I.e., we incur a (constant
  134|       |  // size) MOD() operation cost here to avoid any MUL() later on.
  135|      5|  size_type size = min_size();
  136|      5|  size_type next_size = min_size();
  137|      5|  if (next) {
  ------------------
  |  Branch (137:7): [True: 1, False: 4]
  ------------------
  138|      1|    size = next->next_size_;
  139|      1|    next_size = std::min<size_type>(size * 2, max_size());
  140|      1|  }
  141|      5|  size = RoundedSize(size);
  142|      5|  void* p = ::operator new(size);
  143|      5|  return new (p) StringBlock(next, true, size, next_size);
  144|      5|}
_ZN6google8protobuf8internal11StringBlock6DeleteEPS2_:
  146|     16|inline size_t StringBlock::Delete(StringBlock* block) {
  147|     16|  ABSL_DCHECK(block != nullptr);
  ------------------
  |  |   47|     16|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|     16|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     32|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|     16|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     32|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     32|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 16, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|     16|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 16]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|     16|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 16, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     32|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     32|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  148|     16|  if (!block->heap_allocated_) return size_t{0};
  ------------------
  |  Branch (148:7): [True: 11, False: 5]
  ------------------
  149|      5|  size_t size = block->allocated_size();
  150|      5|  internal::SizedDelete(block, size);
  151|      5|  return size;
  152|     16|}
_ZNK6google8protobuf8internal11StringBlock4nextEv:
  154|     16|inline StringBlock* StringBlock::next() const { return next_; }
_ZNK6google8protobuf8internal11StringBlock14effective_sizeEv:
  156|     44|inline size_t StringBlock::effective_size() const {
  157|     44|  return allocated_size_ - sizeof(StringBlock);
  158|     44|}
_ZN6google8protobuf8internal11StringBlock8AtOffsetEm:
  161|    564|    size_t offset) {
  162|    564|  ABSL_DCHECK_LE(offset, effective_size());
  ------------------
  |  |   78|    564|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|    564|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    564|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 564]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    564|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  163|    564|  return reinterpret_cast<std::string*>(reinterpret_cast<char*>(this + 1) +
  164|    564|                                        offset);
  165|    564|}
_ZN6google8protobuf8internal11StringBlock5beginEv:
  167|     12|ABSL_ATTRIBUTE_RETURNS_NONNULL inline std::string* StringBlock::begin() {
  168|     12|  return AtOffset(0);
  169|     12|}
_ZN6google8protobuf8internal11StringBlock3endEv:
  171|     16|ABSL_ATTRIBUTE_RETURNS_NONNULL inline std::string* StringBlock::end() {
  172|     16|  return AtOffset(effective_size());
  173|     16|}

_ZN6google8protobuf8internal15ThreadSafeArena17ReturnArrayMemoryEPvm:
   78|     49|  void ReturnArrayMemory(void* p, size_t size) {
   79|     49|    SerialArena* arena;
   80|     49|    if (PROTOBUF_PREDICT_TRUE(GetSerialArenaFast(&arena))) {
  ------------------
  |  |  364|     49|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 49, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 49]
  |  |  |  Branch (364:62): [True: 49, False: 0]
  |  |  ------------------
  ------------------
   81|     49|      arena->ReturnArrayMemory(p, size);
   82|     49|    }
   83|     49|  }
_ZNK6google8protobuf8internal15ThreadSafeArena11AllocPolicyEv:
  158|     21|  const AllocationPolicy* AllocPolicy() const { return alloc_policy_.get(); }
_ZN6google8protobuf8internal15ThreadSafeArena16CacheSerialArenaEPNS1_11SerialArenaE:
  168|      4|  inline void CacheSerialArena(SerialArena* serial) {
  169|      4|    thread_cache().last_serial_arena = serial;
  170|      4|    thread_cache().last_lifecycle_id_seen = tag_and_id_;
  171|      4|  }
_ZN6google8protobuf8internal15ThreadSafeArena18GetSerialArenaFastEPPNS1_11SerialArenaE:
  173|  1.16k|  PROTOBUF_NDEBUG_INLINE bool GetSerialArenaFast(SerialArena** arena) {
  174|       |    // If this thread already owns a block in this arena then try to use that.
  175|       |    // This fast path optimizes the case where multiple threads allocate from
  176|       |    // the same arena.
  177|  1.16k|    ThreadCache* tc = &thread_cache();
  178|  1.16k|    if (PROTOBUF_PREDICT_TRUE(tc->last_lifecycle_id_seen == tag_and_id_)) {
  ------------------
  |  |  364|  1.16k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 1.16k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 1.16k]
  |  |  |  Branch (364:62): [True: 1.16k, False: 0]
  |  |  ------------------
  ------------------
  179|  1.16k|      *arena = tc->last_serial_arena;
  180|  1.16k|      return true;
  181|  1.16k|    }
  182|      0|    return false;
  183|  1.16k|  }
_ZN6google8protobuf8internal15ThreadSafeArena12thread_cacheEv:
  257|  1.18k|  static ThreadCache& thread_cache() { return thread_cache_; }
_ZN6google8protobuf8internal15ThreadSafeArena15AllocateAlignedILNS1_16AllocationClientE0EEEPvm:
   69|    455|  void* AllocateAligned(size_t n) {
   70|    455|    SerialArena* arena;
   71|    455|    if (PROTOBUF_PREDICT_TRUE(GetSerialArenaFast(&arena))) {
  ------------------
  |  |  364|    455|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 455, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 455]
  |  |  |  Branch (364:62): [True: 455, False: 0]
  |  |  ------------------
  ------------------
   72|    455|      return arena->AllocateAligned<alloc_client>(n);
   73|    455|    } else {
   74|      0|      return AllocateAlignedFallback<alloc_client>(n);
   75|      0|    }
   76|    455|  }
_ZN6google8protobuf8internal15ThreadSafeArena15AllocateAlignedILNS1_16AllocationClientE1EEEPvm:
   69|    129|  void* AllocateAligned(size_t n) {
   70|    129|    SerialArena* arena;
   71|    129|    if (PROTOBUF_PREDICT_TRUE(GetSerialArenaFast(&arena))) {
  ------------------
  |  |  364|    129|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 129, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 129]
  |  |  |  Branch (364:62): [True: 129, False: 0]
  |  |  ------------------
  ------------------
   72|    129|      return arena->AllocateAligned<alloc_client>(n);
   73|    129|    } else {
   74|      0|      return AllocateAlignedFallback<alloc_client>(n);
   75|      0|    }
   76|    129|  }

_ZN6google8protobuf15UnknownFieldSet13ClearFallbackEv:
   38|  6.68k|void UnknownFieldSet::ClearFallback() {
   39|  6.68k|  ABSL_DCHECK(!fields_.empty());
  ------------------
  |  |   47|  6.68k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  6.68k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  13.3k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  6.68k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  13.3k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  13.3k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 6.68k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  6.68k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 6.68k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  6.68k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 6.68k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  13.3k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  13.3k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   40|  6.68k|  if (arena() == nullptr) {
  ------------------
  |  Branch (40:7): [True: 6.68k, False: 0]
  ------------------
   41|  6.68k|    int n = fields_.size();
   42|  55.8k|    do {
   43|  55.8k|      (fields_)[--n].Delete();
   44|  55.8k|    } while (n > 0);
  ------------------
  |  Branch (44:14): [True: 49.1k, False: 6.68k]
  ------------------
   45|  6.68k|  }
   46|  6.68k|  fields_.Clear();
   47|  6.68k|}
_ZN6google8protobuf15UnknownFieldSet9AddVarintEim:
  103|  34.8k|void UnknownFieldSet::AddVarint(int number, uint64_t value) {
  104|  34.8k|  auto& field = *fields_.Add();
  105|  34.8k|  field.number_ = number;
  106|  34.8k|  field.SetType(UnknownField::TYPE_VARINT);
  107|  34.8k|  field.data_.varint_ = value;
  108|  34.8k|}
_ZN6google8protobuf15UnknownFieldSet10AddFixed32Eij:
  110|  3.26k|void UnknownFieldSet::AddFixed32(int number, uint32_t value) {
  111|  3.26k|  auto& field = *fields_.Add();
  112|  3.26k|  field.number_ = number;
  113|  3.26k|  field.SetType(UnknownField::TYPE_FIXED32);
  114|  3.26k|  field.data_.fixed32_ = value;
  115|  3.26k|}
_ZN6google8protobuf15UnknownFieldSet10AddFixed64Eim:
  117|  6.25k|void UnknownFieldSet::AddFixed64(int number, uint64_t value) {
  118|  6.25k|  auto& field = *fields_.Add();
  119|  6.25k|  field.number_ = number;
  120|  6.25k|  field.SetType(UnknownField::TYPE_FIXED64);
  121|  6.25k|  field.data_.fixed64_ = value;
  122|  6.25k|}
_ZN6google8protobuf15UnknownFieldSet18AddLengthDelimitedEi:
  138|  10.4k|std::string* UnknownFieldSet::AddLengthDelimited(int number) {
  139|  10.4k|  auto& field = *fields_.Add();
  140|  10.4k|  field.number_ = number;
  141|  10.4k|  field.SetType(UnknownField::TYPE_LENGTH_DELIMITED);
  142|  10.4k|  field.data_.string_value = Arena::Create<std::string>(arena());
  143|  10.4k|  return field.data_.string_value;
  144|  10.4k|}
_ZN6google8protobuf15UnknownFieldSet8AddGroupEi:
  146|    989|UnknownFieldSet* UnknownFieldSet::AddGroup(int number) {
  147|    989|  auto& field = *fields_.Add();
  148|    989|  field.number_ = number;
  149|    989|  field.SetType(UnknownField::TYPE_GROUP);
  150|    989|  field.data_.group_ = Arena::Create<UnknownFieldSet>(arena());
  151|    989|  return field.data_.group_;
  152|    989|}
_ZN6google8protobuf12UnknownField6DeleteEv:
  240|  55.8k|void UnknownField::Delete() {
  241|  55.8k|  switch (type()) {
  242|  10.4k|    case UnknownField::TYPE_LENGTH_DELIMITED:
  ------------------
  |  Branch (242:5): [True: 10.4k, False: 45.3k]
  ------------------
  243|  10.4k|      delete data_.string_value;
  244|  10.4k|      break;
  245|    989|    case UnknownField::TYPE_GROUP:
  ------------------
  |  Branch (245:5): [True: 989, False: 54.8k]
  ------------------
  246|    989|      delete data_.group_;
  247|    989|      break;
  248|  44.3k|    default:
  ------------------
  |  Branch (248:5): [True: 44.3k, False: 11.4k]
  ------------------
  249|  44.3k|      break;
  250|  55.8k|  }
  251|  55.8k|}
_ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE:
  331|  55.8k|                              const char* ptr, ParseContext* ctx) {
  332|  55.8k|  UnknownFieldParserHelper field_parser(unknown);
  333|  55.8k|  return FieldParser(tag, field_parser, ptr, ctx);
  334|  55.8k|}
_ZN6google8protobuf8internal24UnknownFieldParserHelperC2EPNS0_15UnknownFieldSetE:
  295|  56.8k|      : unknown_(unknown) {}
_ZN6google8protobuf8internal24UnknownFieldParserHelper9AddVarintEjm:
  297|  34.8k|  void AddVarint(uint32_t num, uint64_t value) {
  298|  34.8k|    unknown_->AddVarint(num, value);
  299|  34.8k|  }
_ZN6google8protobuf8internal24UnknownFieldParserHelper10AddFixed64Ejm:
  300|  6.25k|  void AddFixed64(uint32_t num, uint64_t value) {
  301|  6.25k|    unknown_->AddFixed64(num, value);
  302|  6.25k|  }
_ZN6google8protobuf8internal24UnknownFieldParserHelper20ParseLengthDelimitedEjPKcPNS1_12ParseContextE:
  304|  10.4k|                                   ParseContext* ctx) {
  305|  10.4k|    std::string* s = unknown_->AddLengthDelimited(num);
  306|  10.4k|    int size = ReadSize(&ptr);
  307|  10.4k|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|  10.4k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  10.4k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 0, False: 10.4k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  | 1154|      0|  }
  |  |  ------------------
  ------------------
  308|  10.4k|    return ctx->ReadString(ptr, size, s);
  309|  10.4k|  }
_ZN6google8protobuf8internal24UnknownFieldParserHelper10ParseGroupEjPKcPNS1_12ParseContextE:
  310|    989|  const char* ParseGroup(uint32_t num, const char* ptr, ParseContext* ctx) {
  311|    989|    return ctx->ParseGroupInlined(ptr, num * 8 + 3, [&](const char* ptr) {
  312|    989|      UnknownFieldParserHelper child(unknown_->AddGroup(num));
  313|    989|      return WireFormatParser(child, ptr, ctx);
  314|    989|    });
  315|    989|  }
_ZZN6google8protobuf8internal24UnknownFieldParserHelper10ParseGroupEjPKcPNS1_12ParseContextEENKUlS4_E_clES4_:
  311|    989|    return ctx->ParseGroupInlined(ptr, num * 8 + 3, [&](const char* ptr) {
  312|    989|      UnknownFieldParserHelper child(unknown_->AddGroup(num));
  313|    989|      return WireFormatParser(child, ptr, ctx);
  314|    989|    });
_ZN6google8protobuf8internal24UnknownFieldParserHelper10AddFixed32Ejj:
  316|  3.26k|  void AddFixed32(uint32_t num, uint32_t value) {
  317|  3.26k|    unknown_->AddFixed32(num, value);
  318|  3.26k|  }

_ZN6google8protobuf15UnknownFieldSetC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  248|  6.69k|      : UnknownFieldSet(arena) {}
_ZN6google8protobuf15UnknownFieldSetC2EPNS0_5ArenaE:
  263|  7.68k|  explicit UnknownFieldSet(Arena* arena) : fields_(arena) {}
_ZN6google8protobuf15UnknownFieldSet5arenaEv:
  265|  18.1k|  Arena* arena() { return fields_.GetArena(); }
_ZN6google8protobuf8internal16InternalMetadata9ContainerINS0_15UnknownFieldSetEEC2EPNS0_5ArenaE:
  445|  6.69k|      : unknown_fields(InternalVisibility{}, input_arena) {}
_ZN6google8protobuf15UnknownFieldSet5ClearEv:
  328|  8.30k|inline void UnknownFieldSet::Clear() {
  329|  8.30k|  if (!fields_.empty()) {
  ------------------
  |  Branch (329:7): [True: 6.68k, False: 1.61k]
  ------------------
  330|  6.68k|    ClearFallback();
  331|  6.68k|  }
  332|  8.30k|}
_ZNK6google8protobuf15UnknownFieldSet5emptyEv:
  334|     19|inline bool UnknownFieldSet::empty() const { return fields_.empty(); }
_ZNK6google8protobuf12UnknownField4typeEv:
  361|  55.8k|inline UnknownField::Type UnknownField::type() const {
  362|  55.8k|  return static_cast<Type>(type_);
  363|  55.8k|}
_ZN6google8protobuf12UnknownField7SetTypeENS1_4TypeE:
  432|  55.8k|inline void UnknownField::SetType(Type type) { type_ = type; }
_ZN6google8protobuf15UnknownFieldSetD2Ev:
  318|  7.68k|inline UnknownFieldSet::~UnknownFieldSet() { Clear(); }

_ZN6google8protobuf8internal19ShiftMixParseVarintIjLi10EEEPKcS4_Rl:
   53|  83.8k|                                                              int64_t& res1) {
   54|  83.8k|  using Signed = std::make_signed_t<VarintType>;
   55|  83.8k|  constexpr bool kIs64BitVarint = std::is_same<Signed, int64_t>::value;
   56|  83.8k|  constexpr bool kIs32BitVarint = std::is_same<Signed, int32_t>::value;
   57|  83.8k|  static_assert(kIs64BitVarint || kIs32BitVarint, "");
   58|       |
   59|       |  // The algorithm relies on sign extension for each byte to set all high bits
   60|       |  // when the varint continues. It also relies on asserting all of the lower
   61|       |  // bits for each successive byte read. This allows the result to be aggregated
   62|       |  // using a bitwise AND. For example:
   63|       |  //
   64|       |  //          8       1          64     57 ... 24     17  16      9  8       1
   65|       |  // ptr[0] = 1aaa aaaa ; res1 = 1111 1111 ... 1111 1111  1111 1111  1aaa aaaa
   66|       |  // ptr[1] = 1bbb bbbb ; res2 = 1111 1111 ... 1111 1111  11bb bbbb  b111 1111
   67|       |  // ptr[2] = 0ccc cccc ; res3 = 0000 0000 ... 000c cccc  cc11 1111  1111 1111
   68|       |  //                             ---------------------------------------------
   69|       |  //        res1 & res2 & res3 = 0000 0000 ... 000c cccc  ccbb bbbb  baaa aaaa
   70|       |  //
   71|       |  // On x86-64, a shld from a single register filled with enough 1s in the high
   72|       |  // bits can accomplish all this in one instruction. It so happens that res1
   73|       |  // has 57 high bits of ones, which is enough for the largest shift done.
   74|       |  //
   75|       |  // Just as importantly, by keeping results in res1, res2, and res3, we take
   76|       |  // advantage of the superscalar abilities of the CPU.
   77|  83.8k|  const auto next = [&p] { return static_cast<const int8_t>(*p++); };
   78|  83.8k|  const auto last = [&p] { return static_cast<const int8_t>(p[-1]); };
   79|       |
   80|  83.8k|  int64_t res2, res3;  // accumulated result chunks
   81|  83.8k|  res1 = next();
   82|  83.8k|  if (PROTOBUF_PREDICT_TRUE(res1 >= 0)) return p;
  ------------------
  |  |  364|  83.8k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 61.3k, False: 22.5k]
  |  |  |  Branch (364:53): [Folded, False: 83.8k]
  |  |  |  Branch (364:62): [True: 61.3k, False: 22.5k]
  |  |  ------------------
  ------------------
   83|  22.5k|  if (limit <= 1) goto limit0;
  ------------------
  |  Branch (83:7): [Folded, False: 22.5k]
  ------------------
   84|       |
   85|       |  // Densify all ops with explicit FALSE predictions from here on, except that
   86|       |  // we predict length = 5 as a common length for fields like timestamp.
   87|  22.5k|  if (PROTOBUF_PREDICT_FALSE(VarintShl<1>(next(), res1, res2))) goto done1;
  ------------------
  |  |  365|  22.5k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 18.2k, False: 4.26k]
  |  |  |  Branch (365:54): [Folded, False: 22.5k]
  |  |  |  Branch (365:63): [True: 18.2k, False: 4.26k]
  |  |  ------------------
  ------------------
   88|  4.26k|  if (limit <= 2) goto limit1;
  ------------------
  |  Branch (88:7): [Folded, False: 4.26k]
  ------------------
   89|  4.26k|  if (PROTOBUF_PREDICT_FALSE(VarintShl<2>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|  4.26k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2.11k, False: 2.15k]
  |  |  |  Branch (365:54): [Folded, False: 4.26k]
  |  |  |  Branch (365:63): [True: 2.11k, False: 2.15k]
  |  |  ------------------
  ------------------
   90|  2.15k|  if (limit <= 3) goto limit2;
  ------------------
  |  Branch (90:7): [Folded, False: 2.15k]
  ------------------
   91|  2.15k|  if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<3>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|  2.15k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 862, False: 1.28k]
  |  |  |  Branch (365:54): [Folded, False: 2.15k]
  |  |  |  Branch (365:63): [True: 862, False: 1.28k]
  |  |  ------------------
  ------------------
   92|  1.28k|  if (limit <= 4) goto limit2;
  ------------------
  |  Branch (92:7): [Folded, False: 1.28k]
  ------------------
   93|  1.28k|  if (PROTOBUF_PREDICT_TRUE(VarintShlAnd<4>(next(), res1, res3))) goto done2;
  ------------------
  |  |  364|  1.28k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 1.27k, False: 9]
  |  |  |  Branch (364:53): [Folded, False: 1.28k]
  |  |  |  Branch (364:62): [True: 1.27k, False: 9]
  |  |  ------------------
  ------------------
   94|      9|  if (limit <= 5) goto limit2;
  ------------------
  |  Branch (94:7): [Folded, False: 9]
  ------------------
   95|       |
   96|      9|  if (kIs64BitVarint) {
  ------------------
  |  Branch (96:7): [Folded, False: 9]
  ------------------
   97|      0|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<5>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   98|      0|    if (limit <= 6) goto limit2;
  ------------------
  |  Branch (98:9): [Folded, False: 0]
  ------------------
   99|      0|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<6>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  100|      0|    if (limit <= 7) goto limit2;
  ------------------
  |  Branch (100:9): [Folded, False: 0]
  ------------------
  101|      0|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<7>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  102|      0|    if (limit <= 8) goto limit2;
  ------------------
  |  Branch (102:9): [Folded, False: 0]
  ------------------
  103|      0|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<8>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  104|      0|    if (limit <= 9) goto limit2;
  ------------------
  |  Branch (104:9): [Folded, False: 0]
  ------------------
  105|      9|  } else {
  106|       |    // An overlong int32 is expected to span the full 10 bytes
  107|      9|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  365|      9|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 9]
  |  |  |  Branch (365:54): [Folded, False: 9]
  |  |  |  Branch (365:63): [True: 0, False: 9]
  |  |  ------------------
  ------------------
  108|      9|    if (limit <= 6) goto limit2;
  ------------------
  |  Branch (108:9): [Folded, False: 9]
  ------------------
  109|      9|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  365|      9|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 7]
  |  |  |  Branch (365:54): [Folded, False: 9]
  |  |  |  Branch (365:63): [True: 2, False: 7]
  |  |  ------------------
  ------------------
  110|      7|    if (limit <= 7) goto limit2;
  ------------------
  |  Branch (110:9): [Folded, False: 7]
  ------------------
  111|      7|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  365|      7|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 3, False: 4]
  |  |  |  Branch (365:54): [Folded, False: 7]
  |  |  |  Branch (365:63): [True: 3, False: 4]
  |  |  ------------------
  ------------------
  112|      4|    if (limit <= 8) goto limit2;
  ------------------
  |  Branch (112:9): [Folded, False: 4]
  ------------------
  113|      4|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  365|      4|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 4]
  |  |  |  Branch (365:54): [Folded, False: 4]
  |  |  |  Branch (365:63): [True: 0, False: 4]
  |  |  ------------------
  ------------------
  114|      4|    if (limit <= 9) goto limit2;
  ------------------
  |  Branch (114:9): [Folded, False: 4]
  ------------------
  115|      4|  }
  116|       |
  117|       |  // For valid 64bit varints, the 10th byte/ptr[9] should be exactly 1. In this
  118|       |  // case, the continuation bit of ptr[8] already set the top bit of res3
  119|       |  // correctly, so all we have to do is check that the expected case is true.
  120|      4|  if (PROTOBUF_PREDICT_TRUE(next() == 1)) goto done2;
  ------------------
  |  |  364|      4|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 4, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 4]
  |  |  |  Branch (364:62): [True: 4, False: 0]
  |  |  ------------------
  ------------------
  121|       |
  122|      0|  if (PROTOBUF_PREDICT_FALSE(last() & 0x80)) {
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  123|       |    // If the continue bit is set, it is an unterminated varint.
  124|      0|    return nullptr;
  125|      0|  }
  126|       |
  127|       |  // A zero value of the first bit of the 10th byte represents an
  128|       |  // over-serialized varint. This case should not happen, but if does (say, due
  129|       |  // to a nonconforming serializer), deassert the continuation bit that came
  130|       |  // from ptr[8].
  131|      0|  if (kIs64BitVarint && (last() & 1) == 0) {
  ------------------
  |  Branch (131:7): [Folded, False: 0]
  |  Branch (131:25): [True: 0, False: 0]
  ------------------
  132|      0|    static constexpr int bits = 64 - 1;
  133|      0|#if defined(__GCC_ASM_FLAG_OUTPUTS__) && defined(__x86_64__)
  134|       |    // Use a small instruction since this is an uncommon code path.
  135|      0|    asm("btc %[bits], %[res3]" : [res3] "+r"(res3) : [bits] "i"(bits));
  136|       |#else
  137|       |    res3 ^= int64_t{1} << bits;
  138|       |#endif
  139|      0|  }
  140|       |
  141|  4.26k|done2:
  142|  4.26k|  res2 &= res3;
  143|  22.5k|done1:
  144|  22.5k|  res1 &= res2;
  145|  22.5k|  PROTOBUF_ASSUME(p != nullptr);
  ------------------
  |  |  941|  22.5k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  146|  22.5k|  return p;
  147|      0|limit2:
  148|      0|  res2 &= res3;
  149|      0|limit1:
  150|      0|  res1 &= res2;
  151|      0|limit0:
  152|      0|  PROTOBUF_ASSUME(p != nullptr);
  ------------------
  |  |  941|      0|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  153|      0|  PROTOBUF_ASSUME(res1 < 0);
  ------------------
  |  |  941|      0|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  154|      0|  return p;
  155|      0|}
_ZZN6google8protobuf8internal19ShiftMixParseVarintIjLi10EEEPKcS4_RlENKUlvE_clEv:
   77|   114k|  const auto next = [&p] { return static_cast<const int8_t>(*p++); };
_ZN6google8protobuf8internal9VarintShlILi1EEEbalRl:
   46|  24.9k|                                             int64_t& res) {
   47|  24.9k|  res = VarintShlByte<n>(byte, ones);
   48|  24.9k|  return res >= 0;
   49|  24.9k|}
_ZN6google8protobuf8internal13VarintShlByteILi1EEElal:
   26|  24.9k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  24.9k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  24.9k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  24.9k|}
_ZN6google8protobuf8internal9VarintShlILi2EEEbalRl:
   46|  6.43k|                                             int64_t& res) {
   47|  6.43k|  res = VarintShlByte<n>(byte, ones);
   48|  6.43k|  return res >= 0;
   49|  6.43k|}
_ZN6google8protobuf8internal13VarintShlByteILi2EEElal:
   26|  6.43k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  6.43k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  6.43k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  6.43k|}
_ZN6google8protobuf8internal12VarintShlAndILi3EEEbalRl:
   36|  3.89k|                                                int64_t& res) {
   37|  3.89k|  res &= VarintShlByte<n>(byte, ones);
   38|  3.89k|  return res >= 0;
   39|  3.89k|}
_ZN6google8protobuf8internal13VarintShlByteILi3EEElal:
   26|  3.89k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  3.89k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  3.89k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  3.89k|}
_ZN6google8protobuf8internal12VarintShlAndILi4EEEbalRl:
   36|  2.88k|                                                int64_t& res) {
   37|  2.88k|  res &= VarintShlByte<n>(byte, ones);
   38|  2.88k|  return res >= 0;
   39|  2.88k|}
_ZN6google8protobuf8internal13VarintShlByteILi4EEElal:
   26|  2.88k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  2.88k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  2.88k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  2.88k|}
_ZN6google8protobuf8internal19ShiftMixParseVarintImLi10EEEPKcS4_Rl:
   53|  22.6k|                                                              int64_t& res1) {
   54|  22.6k|  using Signed = std::make_signed_t<VarintType>;
   55|  22.6k|  constexpr bool kIs64BitVarint = std::is_same<Signed, int64_t>::value;
   56|  22.6k|  constexpr bool kIs32BitVarint = std::is_same<Signed, int32_t>::value;
   57|  22.6k|  static_assert(kIs64BitVarint || kIs32BitVarint, "");
   58|       |
   59|       |  // The algorithm relies on sign extension for each byte to set all high bits
   60|       |  // when the varint continues. It also relies on asserting all of the lower
   61|       |  // bits for each successive byte read. This allows the result to be aggregated
   62|       |  // using a bitwise AND. For example:
   63|       |  //
   64|       |  //          8       1          64     57 ... 24     17  16      9  8       1
   65|       |  // ptr[0] = 1aaa aaaa ; res1 = 1111 1111 ... 1111 1111  1111 1111  1aaa aaaa
   66|       |  // ptr[1] = 1bbb bbbb ; res2 = 1111 1111 ... 1111 1111  11bb bbbb  b111 1111
   67|       |  // ptr[2] = 0ccc cccc ; res3 = 0000 0000 ... 000c cccc  cc11 1111  1111 1111
   68|       |  //                             ---------------------------------------------
   69|       |  //        res1 & res2 & res3 = 0000 0000 ... 000c cccc  ccbb bbbb  baaa aaaa
   70|       |  //
   71|       |  // On x86-64, a shld from a single register filled with enough 1s in the high
   72|       |  // bits can accomplish all this in one instruction. It so happens that res1
   73|       |  // has 57 high bits of ones, which is enough for the largest shift done.
   74|       |  //
   75|       |  // Just as importantly, by keeping results in res1, res2, and res3, we take
   76|       |  // advantage of the superscalar abilities of the CPU.
   77|  22.6k|  const auto next = [&p] { return static_cast<const int8_t>(*p++); };
   78|  22.6k|  const auto last = [&p] { return static_cast<const int8_t>(p[-1]); };
   79|       |
   80|  22.6k|  int64_t res2, res3;  // accumulated result chunks
   81|  22.6k|  res1 = next();
   82|  22.6k|  if (PROTOBUF_PREDICT_TRUE(res1 >= 0)) return p;
  ------------------
  |  |  364|  22.6k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 20.2k, False: 2.44k]
  |  |  |  Branch (364:53): [Folded, False: 22.6k]
  |  |  |  Branch (364:62): [True: 20.2k, False: 2.44k]
  |  |  ------------------
  ------------------
   83|  2.44k|  if (limit <= 1) goto limit0;
  ------------------
  |  Branch (83:7): [Folded, False: 2.44k]
  ------------------
   84|       |
   85|       |  // Densify all ops with explicit FALSE predictions from here on, except that
   86|       |  // we predict length = 5 as a common length for fields like timestamp.
   87|  2.44k|  if (PROTOBUF_PREDICT_FALSE(VarintShl<1>(next(), res1, res2))) goto done1;
  ------------------
  |  |  365|  2.44k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 277, False: 2.16k]
  |  |  |  Branch (365:54): [Folded, False: 2.44k]
  |  |  |  Branch (365:63): [True: 277, False: 2.16k]
  |  |  ------------------
  ------------------
   88|  2.16k|  if (limit <= 2) goto limit1;
  ------------------
  |  Branch (88:7): [Folded, False: 2.16k]
  ------------------
   89|  2.16k|  if (PROTOBUF_PREDICT_FALSE(VarintShl<2>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|  2.16k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 429, False: 1.74k]
  |  |  |  Branch (365:54): [Folded, False: 2.16k]
  |  |  |  Branch (365:63): [True: 429, False: 1.74k]
  |  |  ------------------
  ------------------
   90|  1.74k|  if (limit <= 3) goto limit2;
  ------------------
  |  Branch (90:7): [Folded, False: 1.74k]
  ------------------
   91|  1.74k|  if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<3>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|  1.74k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 139, False: 1.60k]
  |  |  |  Branch (365:54): [Folded, False: 1.74k]
  |  |  |  Branch (365:63): [True: 139, False: 1.60k]
  |  |  ------------------
  ------------------
   92|  1.60k|  if (limit <= 4) goto limit2;
  ------------------
  |  Branch (92:7): [Folded, False: 1.60k]
  ------------------
   93|  1.60k|  if (PROTOBUF_PREDICT_TRUE(VarintShlAnd<4>(next(), res1, res3))) goto done2;
  ------------------
  |  |  364|  1.60k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 125, False: 1.47k]
  |  |  |  Branch (364:53): [Folded, False: 1.60k]
  |  |  |  Branch (364:62): [True: 125, False: 1.47k]
  |  |  ------------------
  ------------------
   94|  1.47k|  if (limit <= 5) goto limit2;
  ------------------
  |  Branch (94:7): [Folded, False: 1.47k]
  ------------------
   95|       |
   96|  1.47k|  if (kIs64BitVarint) {
  ------------------
  |  Branch (96:7): [True: 1.47k, Folded]
  ------------------
   97|  1.47k|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<5>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|  1.47k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 124, False: 1.35k]
  |  |  |  Branch (365:54): [Folded, False: 1.47k]
  |  |  |  Branch (365:63): [True: 124, False: 1.35k]
  |  |  ------------------
  ------------------
   98|  1.35k|    if (limit <= 6) goto limit2;
  ------------------
  |  Branch (98:9): [Folded, False: 1.35k]
  ------------------
   99|  1.35k|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<6>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|  1.35k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 121, False: 1.23k]
  |  |  |  Branch (365:54): [Folded, False: 1.35k]
  |  |  |  Branch (365:63): [True: 121, False: 1.23k]
  |  |  ------------------
  ------------------
  100|  1.23k|    if (limit <= 7) goto limit2;
  ------------------
  |  Branch (100:9): [Folded, False: 1.23k]
  ------------------
  101|  1.23k|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<7>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|  1.23k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 219, False: 1.01k]
  |  |  |  Branch (365:54): [Folded, False: 1.23k]
  |  |  |  Branch (365:63): [True: 219, False: 1.01k]
  |  |  ------------------
  ------------------
  102|  1.01k|    if (limit <= 8) goto limit2;
  ------------------
  |  Branch (102:9): [Folded, False: 1.01k]
  ------------------
  103|  1.01k|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<8>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|  1.01k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 223, False: 789]
  |  |  |  Branch (365:54): [Folded, False: 1.01k]
  |  |  |  Branch (365:63): [True: 223, False: 789]
  |  |  ------------------
  ------------------
  104|    789|    if (limit <= 9) goto limit2;
  ------------------
  |  Branch (104:9): [Folded, False: 789]
  ------------------
  105|    789|  } else {
  106|       |    // An overlong int32 is expected to span the full 10 bytes
  107|      0|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  108|      0|    if (limit <= 6) goto limit2;
  ------------------
  |  Branch (108:9): [Folded, False: 0]
  ------------------
  109|      0|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  110|      0|    if (limit <= 7) goto limit2;
  ------------------
  |  Branch (110:9): [Folded, False: 0]
  ------------------
  111|      0|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  112|      0|    if (limit <= 8) goto limit2;
  ------------------
  |  Branch (112:9): [Folded, False: 0]
  ------------------
  113|      0|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  114|      0|    if (limit <= 9) goto limit2;
  ------------------
  |  Branch (114:9): [Folded, False: 0]
  ------------------
  115|      0|  }
  116|       |
  117|       |  // For valid 64bit varints, the 10th byte/ptr[9] should be exactly 1. In this
  118|       |  // case, the continuation bit of ptr[8] already set the top bit of res3
  119|       |  // correctly, so all we have to do is check that the expected case is true.
  120|    789|  if (PROTOBUF_PREDICT_TRUE(next() == 1)) goto done2;
  ------------------
  |  |  364|    789|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 789, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 789]
  |  |  |  Branch (364:62): [True: 789, False: 0]
  |  |  ------------------
  ------------------
  121|       |
  122|      0|  if (PROTOBUF_PREDICT_FALSE(last() & 0x80)) {
  ------------------
  |  |  365|      0|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 0]
  |  |  |  Branch (365:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  123|       |    // If the continue bit is set, it is an unterminated varint.
  124|      0|    return nullptr;
  125|      0|  }
  126|       |
  127|       |  // A zero value of the first bit of the 10th byte represents an
  128|       |  // over-serialized varint. This case should not happen, but if does (say, due
  129|       |  // to a nonconforming serializer), deassert the continuation bit that came
  130|       |  // from ptr[8].
  131|      0|  if (kIs64BitVarint && (last() & 1) == 0) {
  ------------------
  |  Branch (131:7): [True: 0, Folded]
  |  Branch (131:25): [True: 0, False: 0]
  ------------------
  132|      0|    static constexpr int bits = 64 - 1;
  133|      0|#if defined(__GCC_ASM_FLAG_OUTPUTS__) && defined(__x86_64__)
  134|       |    // Use a small instruction since this is an uncommon code path.
  135|      0|    asm("btc %[bits], %[res3]" : [res3] "+r"(res3) : [bits] "i"(bits));
  136|       |#else
  137|       |    res3 ^= int64_t{1} << bits;
  138|       |#endif
  139|      0|  }
  140|       |
  141|  2.16k|done2:
  142|  2.16k|  res2 &= res3;
  143|  2.44k|done1:
  144|  2.44k|  res1 &= res2;
  145|  2.44k|  PROTOBUF_ASSUME(p != nullptr);
  ------------------
  |  |  941|  2.44k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  146|  2.44k|  return p;
  147|      0|limit2:
  148|      0|  res2 &= res3;
  149|      0|limit1:
  150|      0|  res1 &= res2;
  151|      0|limit0:
  152|      0|  PROTOBUF_ASSUME(p != nullptr);
  ------------------
  |  |  941|      0|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  153|      0|  PROTOBUF_ASSUME(res1 < 0);
  ------------------
  |  |  941|      0|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  154|      0|  return p;
  155|      0|}
_ZZN6google8protobuf8internal19ShiftMixParseVarintImLi10EEEPKcS4_RlENKUlvE_clEv:
   77|  36.4k|  const auto next = [&p] { return static_cast<const int8_t>(*p++); };
_ZN6google8protobuf8internal12VarintShlAndILi5EEEbalRl:
   36|  1.47k|                                                int64_t& res) {
   37|  1.47k|  res &= VarintShlByte<n>(byte, ones);
   38|  1.47k|  return res >= 0;
   39|  1.47k|}
_ZN6google8protobuf8internal13VarintShlByteILi5EEElal:
   26|  1.47k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  1.47k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  1.47k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  1.47k|}
_ZN6google8protobuf8internal12VarintShlAndILi6EEEbalRl:
   36|  1.35k|                                                int64_t& res) {
   37|  1.35k|  res &= VarintShlByte<n>(byte, ones);
   38|  1.35k|  return res >= 0;
   39|  1.35k|}
_ZN6google8protobuf8internal13VarintShlByteILi6EEElal:
   26|  1.35k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  1.35k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  1.35k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  1.35k|}
_ZN6google8protobuf8internal12VarintShlAndILi7EEEbalRl:
   36|  1.23k|                                                int64_t& res) {
   37|  1.23k|  res &= VarintShlByte<n>(byte, ones);
   38|  1.23k|  return res >= 0;
   39|  1.23k|}
_ZN6google8protobuf8internal13VarintShlByteILi7EEElal:
   26|  1.23k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  1.23k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  1.23k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  1.23k|}
_ZN6google8protobuf8internal12VarintShlAndILi8EEEbalRl:
   36|  1.01k|                                                int64_t& res) {
   37|  1.01k|  res &= VarintShlByte<n>(byte, ones);
   38|  1.01k|  return res >= 0;
   39|  1.01k|}
_ZN6google8protobuf8internal13VarintShlByteILi8EEElal:
   26|  1.01k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  1.01k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  1.01k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  1.01k|}

_ZN6google8protobuf8internal10WireFormat26VerifyUTF8StringNamedFieldEPKciNS2_9OperationEN4absl12lts_2024011611string_viewE:
  357|     29|    const absl::string_view field_name) {
  358|       |#ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
  359|       |  WireFormatLite::VerifyUtf8String(
  360|       |      data, size, static_cast<WireFormatLite::Operation>(op), field_name);
  361|       |#else
  362|       |  // Avoid the compiler warning about unused variables.
  363|     29|  (void)data;
  364|     29|  (void)size;
  365|     29|  (void)op;
  366|     29|  (void)field_name;
  367|     29|#endif
  368|     29|}

_ZN6google8protobuf8internal14WireFormatLite20InternalWriteMessageEiRKNS0_11MessageLiteEiPhPNS0_2io19EpsCopyOutputStreamE:
  537|    234|                                              io::EpsCopyOutputStream* stream) {
  538|    234|  target = stream->EnsureSpace(target);
  539|    234|  target = WriteTagToArray(field_number, WIRETYPE_LENGTH_DELIMITED, target);
  540|    234|  target = io::CodedOutputStream::WriteVarint32ToArray(
  541|    234|      static_cast<uint32_t>(cached_size), target);
  542|    234|  return value._InternalSerialize(target, stream);
  543|    234|}
_ZN6google8protobuf8internal14WireFormatLite8EnumSizeERKNS0_13RepeatedFieldIiEE:
  753|     17|size_t WireFormatLite::EnumSize(const RepeatedField<int>& value) {
  754|       |  // On ILP64, sizeof(int) == 8, which would require a different template.
  755|     17|  return VarintSize<false, true>(value.data(), value.size());
  756|     17|}
wire_format_lite.cc:_ZN6google8protobuf8internalL10VarintSizeILb0ELb1EiEEmPKT1_i:
  635|     17|static size_t VarintSize(const T* data, const int n) {
  636|     17|  static_assert(sizeof(T) == 4, "This routine only works for 32 bit integers");
  637|       |  // is_unsigned<T> => !ZigZag
  638|     17|  static_assert(
  639|     17|      (std::is_unsigned<T>::value ^ ZigZag) || std::is_signed<T>::value,
  640|     17|      "Cannot ZigZag encode unsigned types");
  641|       |  // is_unsigned<T> => !SignExtended
  642|     17|  static_assert(
  643|     17|      (std::is_unsigned<T>::value ^ SignExtended) || std::is_signed<T>::value,
  644|     17|      "Cannot SignExtended unsigned types");
  645|     17|  static_assert(!(SignExtended && ZigZag),
  646|     17|                "Cannot SignExtended and ZigZag on the same type");
  647|       |  // This approach is only faster when vectorized, and the vectorized
  648|       |  // implementation only works in units of the platform's vector width, and is
  649|       |  // only faster once a certain number of iterations are used. Normally the
  650|       |  // compiler generates two loops - one partially unrolled vectorized loop that
  651|       |  // processes big chunks, and a second "epilogue" scalar loop to finish up the
  652|       |  // remainder. This is done manually here so that the faster scalar
  653|       |  // implementation is used for small inputs and for the epilogue.
  654|     17|  int vectorN = n & -32;
  655|     17|  uint32_t sum = vectorN;
  656|     17|  uint32_t msb_sum = 0;
  657|     17|  int i = 0;
  658|     17|  for (; i < vectorN; i++) {
  ------------------
  |  Branch (658:10): [True: 0, False: 17]
  ------------------
  659|      0|    uint32_t x = data[i];
  660|      0|    if (ZigZag) {
  ------------------
  |  Branch (660:9): [Folded, False: 0]
  ------------------
  661|      0|      x = WireFormatLite::ZigZagEncode32(x);
  662|      0|    } else if (SignExtended) {
  ------------------
  |  Branch (662:16): [True: 0, Folded]
  ------------------
  663|      0|      msb_sum += x >> 31;
  664|      0|    }
  665|       |    // clang is so smart that it produces optimal SIMD sequence unrolling
  666|       |    // the loop 8 ints at a time. With a sequence of 4
  667|       |    // cmpres = cmpgt x, sizeclass  ( -1 or 0)
  668|       |    // sum = sum - cmpres
  669|      0|    if (x > 0x7F) sum++;
  ------------------
  |  Branch (669:9): [True: 0, False: 0]
  ------------------
  670|      0|    if (x > 0x3FFF) sum++;
  ------------------
  |  Branch (670:9): [True: 0, False: 0]
  ------------------
  671|      0|    if (x > 0x1FFFFF) sum++;
  ------------------
  |  Branch (671:9): [True: 0, False: 0]
  ------------------
  672|      0|    if (x > 0xFFFFFFF) sum++;
  ------------------
  |  Branch (672:9): [True: 0, False: 0]
  ------------------
  673|      0|  }
  674|     17|#ifdef __clang__
  675|       |// Clang is not smart enough to see that this loop doesn't run many times
  676|       |// NOLINTNEXTLINE(google3-runtime-pragma-loop-hint): b/315043579
  677|     17|#pragma clang loop vectorize(disable) unroll(disable) interleave(disable)
  678|     17|#endif
  679|     36|  for (; i < n; i++) {
  ------------------
  |  Branch (679:10): [True: 19, False: 17]
  ------------------
  680|     19|    uint32_t x = data[i];
  681|     19|    if (ZigZag) {
  ------------------
  |  Branch (681:9): [Folded, False: 19]
  ------------------
  682|      0|      sum += WireFormatLite::SInt32Size(x);
  683|     19|    } else if (SignExtended) {
  ------------------
  |  Branch (683:16): [True: 19, Folded]
  ------------------
  684|     19|      sum += WireFormatLite::Int32Size(x);
  685|     19|    } else {
  686|      0|      sum += WireFormatLite::UInt32Size(x);
  687|      0|    }
  688|     19|  }
  689|     17|  if (SignExtended) sum += msb_sum * 5;
  ------------------
  |  Branch (689:7): [True: 17, Folded]
  ------------------
  690|     17|  return sum;
  691|     17|}

_ZN6google8protobuf8internal14WireFormatLite20WireTypeForFieldTypeENS2_9FieldTypeE:
  141|      8|      WireFormatLite::FieldType type) {
  142|      8|    return kWireTypeForFieldType[type];
  143|      8|  }
_ZN6google8protobuf8internal14WireFormatLite18FieldTypeToCppTypeENS2_9FieldTypeE:
  823|  1.08k|    FieldType type) {
  824|  1.08k|  return kFieldTypeToCppTypeMap[type];
  825|  1.08k|}
_ZN6google8protobuf8internal14WireFormatLite7TagSizeEiNS2_9FieldTypeE:
  841|    410|                                      WireFormatLite::FieldType type) {
  842|    410|  size_t result = io::CodedOutputStream::VarintSize32(
  843|    410|      static_cast<uint32_t>(field_number << kTagTypeBits));
  844|    410|  if (type == TYPE_GROUP) {
  ------------------
  |  Branch (844:7): [True: 0, False: 410]
  ------------------
  845|       |    // Groups have both a start and an end tag.
  846|      0|    return result * 2;
  847|    410|  } else {
  848|    410|    return result;
  849|    410|  }
  850|    410|}
_ZN6google8protobuf8internal14WireFormatLite9Int32SizeEi:
 1781|     19|inline size_t WireFormatLite::Int32Size(int32_t value) {
 1782|     19|  return io::CodedOutputStream::VarintSize32SignExtended(value);
 1783|     19|}
_ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
 1825|     29|inline size_t WireFormatLite::StringSize(const std::string& value) {
 1826|     29|  return LengthDelimitedSize(value.size());
 1827|     29|}
_ZN6google8protobuf8internal14WireFormatLite11MessageSizeINS0_27FieldOptions_EditionDefaultEEEmRKT_:
 1855|     18|inline size_t WireFormatLite::MessageSize(const MessageType& value) {
 1856|     18|  return LengthDelimitedSize(value.ByteSizeLong());
 1857|     18|}
_ZN6google8protobuf8internal14WireFormatLite11MessageSizeINS0_27FieldOptions_FeatureSupportEEEmRKT_:
 1855|      9|inline size_t WireFormatLite::MessageSize(const MessageType& value) {
 1856|      9|  return LengthDelimitedSize(value.ByteSizeLong());
 1857|      9|}

feature_resolver.cc:_ZN4absl12lts_2024011613c_upper_boundIKN6google8protobuf16RepeatedPtrFieldINS3_43FeatureSetDefaults_FeatureSetEditionDefaultEEES5_RZNS3_15FeatureResolver6CreateENS3_7EditionERKNS3_18FeatureSetDefaultsEE3$_0EEDTcl5beginclsr3stdE7declvalIRT_EEEESG_RKT0_OT1_:
 1086|      4|    Sequence& sequence, const T& value, LessThan&& comp) {
 1087|      4|  return std::upper_bound(container_algorithm_internal::c_begin(sequence),
 1088|      4|                          container_algorithm_internal::c_end(sequence), value,
 1089|      4|                          std::forward<LessThan>(comp));
 1090|      4|}
_ZN4absl12lts_2024011628container_algorithm_internal7c_beginIKN6google8protobuf16RepeatedPtrFieldINS4_43FeatureSetDefaults_FeatureSetEditionDefaultEEEEEDTcl5beginclsr3stdE7declvalIRT_EEEESA_:
  100|      4|ContainerIter<C> c_begin(C& c) {
  101|      4|  return begin(c);
  102|      4|}
_ZN4absl12lts_2024011628container_algorithm_internal5c_endIKN6google8protobuf16RepeatedPtrFieldINS4_43FeatureSetDefaults_FeatureSetEditionDefaultEEEEEDTcl5beginclsr3stdE7declvalIRT_EEEESA_:
  105|      4|ContainerIter<C> c_end(C& c) {
  106|      4|  return end(c);
  107|      4|}

_ZN4absl12lts_202401169once_flagC2Ev:
   89|     53|  constexpr once_flag() : control_(0) {}
_ZN4absl12lts_2024011613base_internal16SchedulingHelperC2ENS1_14SchedulingModeE:
  116|      4|  explicit SchedulingHelper(base_internal::SchedulingMode mode) : mode_(mode) {
  117|      4|    if (mode_ == base_internal::SCHEDULE_KERNEL_ONLY) {
  ------------------
  |  Branch (117:9): [True: 0, False: 4]
  ------------------
  118|      0|      guard_result_ = base_internal::SchedulingGuard::DisableRescheduling();
  119|      0|    }
  120|      4|  }
_ZN4absl12lts_2024011613base_internal16SchedulingHelperD2Ev:
  122|      4|  ~SchedulingHelper() {
  123|      4|    if (mode_ == base_internal::SCHEDULE_KERNEL_ONLY) {
  ------------------
  |  Branch (123:9): [True: 0, False: 4]
  ------------------
  124|      0|      base_internal::SchedulingGuard::EnableRescheduling(guard_result_);
  125|      0|    }
  126|      4|  }
_ZN4absl12lts_2024011613base_internal11ControlWordEPNS0_9once_flagE:
  193|   714k|    absl::Nonnull<once_flag*> flag) {
  194|   714k|  return &flag->control_;
  195|   714k|}
message.cc:_ZN4absl12lts_202401169call_onceIZN6google8protobuf7Message15GetMetadataImplERKNS3_8internal13ClassDataFullEE3$_0JEEEvRNS0_9once_flagEOT_DpOT0_:
  212|   714k|void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args) {
  213|   714k|  std::atomic<uint32_t>* once = base_internal::ControlWord(&flag);
  214|   714k|  uint32_t s = once->load(std::memory_order_acquire);
  215|   714k|  if (ABSL_PREDICT_FALSE(s != base_internal::kOnceDone)) {
  ------------------
  |  |  178|   714k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 4, False: 714k]
  |  |  |  Branch (178:49): [Folded, False: 714k]
  |  |  |  Branch (178:58): [True: 4, False: 714k]
  |  |  ------------------
  ------------------
  216|      4|    base_internal::CallOnceImpl(
  217|      4|        once, base_internal::SCHEDULE_COOPERATIVE_AND_KERNEL,
  218|      4|        std::forward<Callable>(fn), std::forward<Args>(args)...);
  219|      4|  }
  220|   714k|}
message.cc:_ZN4absl12lts_2024011613base_internal12CallOnceImplIZN6google8protobuf7Message15GetMetadataImplERKNS4_8internal13ClassDataFullEE3$_0JEEEvPNSt3__16atomicIjEENS1_14SchedulingModeEOT_DpOT0_:
  153|      4|    Args&&... args) {
  154|       |#ifndef NDEBUG
  155|       |  {
  156|       |    uint32_t old_control = control->load(std::memory_order_relaxed);
  157|       |    if (old_control != kOnceInit &&
  158|       |        old_control != kOnceRunning &&
  159|       |        old_control != kOnceWaiter &&
  160|       |        old_control != kOnceDone) {
  161|       |      ABSL_RAW_LOG(FATAL, "Unexpected value for control word: 0x%lx",
  162|       |                   static_cast<unsigned long>(old_control));  // NOLINT
  163|       |    }
  164|       |  }
  165|       |#endif  // NDEBUG
  166|      4|  static const base_internal::SpinLockWaitTransition trans[] = {
  167|      4|      {kOnceInit, kOnceRunning, true},
  168|      4|      {kOnceRunning, kOnceWaiter, false},
  169|      4|      {kOnceDone, kOnceDone, true}};
  170|       |
  171|       |  // Must do this before potentially modifying control word's state.
  172|      4|  base_internal::SchedulingHelper maybe_disable_scheduling(scheduling_mode);
  173|       |  // Short circuit the simplest case to avoid procedure call overhead.
  174|       |  // The base_internal::SpinLockWait() call returns either kOnceInit or
  175|       |  // kOnceDone. If it returns kOnceDone, it must have loaded the control word
  176|       |  // with std::memory_order_acquire and seen a value of kOnceDone.
  177|      4|  uint32_t old_control = kOnceInit;
  178|      4|  if (control->compare_exchange_strong(old_control, kOnceRunning,
  ------------------
  |  Branch (178:7): [True: 4, False: 0]
  ------------------
  179|      4|                                       std::memory_order_relaxed) ||
  180|      0|      base_internal::SpinLockWait(control, ABSL_ARRAYSIZE(trans), trans,
  ------------------
  |  |   45|      0|  (sizeof(::absl::macros_internal::ArraySizeHelper(array)))
  ------------------
  |  Branch (180:7): [True: 0, False: 0]
  ------------------
  181|      4|                                  scheduling_mode) == kOnceInit) {
  182|      4|    base_internal::invoke(std::forward<Callable>(fn),
  183|      4|                          std::forward<Args>(args)...);
  184|      4|    old_control =
  185|      4|        control->exchange(base_internal::kOnceDone, std::memory_order_release);
  186|      4|    if (old_control == base_internal::kOnceWaiter) {
  ------------------
  |  Branch (186:9): [True: 0, False: 4]
  ------------------
  187|      0|      base_internal::SpinLockWake(control, true);
  188|      0|    }
  189|      4|  }  // else *control is already kOnceDone
  190|      4|}

_ZN4absl12lts_202401168bit_castIPKvN6google8protobuf8internal12ExtensionSet9Extension7PointerETnNSt3__19enable_ifIXaaaaeqstT_stT0_sr3std21is_trivially_copyableISD_EE5valuesr3std21is_trivially_copyableISC_EE5valueEiE4typeELi0EEESC_RKSD_:
  163|  1.48k|inline constexpr Dest bit_cast(const Source& source) {
  164|  1.48k|  return __builtin_bit_cast(Dest, source);
  165|  1.48k|}

message.cc:_ZN4absl12lts_2024011613base_internal6invokeIZN6google8protobuf7Message15GetMetadataImplERKNS4_8internal13ClassDataFullEE3$_0JEEEDTclsr7InvokerIT_DpT0_E4typeE6Invokeclsr3stdE7declvalISB_EEspclsr3stdE7declvalISC_EEEEOSB_DpOSC_:
  211|      4|invoke_result_t<F, Args...> invoke(F&& f, Args&&... args) {
  212|      4|  return Invoker<F, Args...>::type::Invoke(std::forward<F>(f),
  213|      4|                                           std::forward<Args>(args)...);
  214|      4|}
message.cc:_ZN4absl12lts_2024011613base_internal8Callable6InvokeIZN6google8protobuf7Message15GetMetadataImplERKNS5_8internal13ClassDataFullEE3$_0JEEEDTclclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSC_DpOSD_:
  184|      4|      F&& f, Args&&... args) {
  185|      4|    return std::forward<F>(f)(std::forward<Args>(args)...);
  186|      4|  }

_ZN4absl12lts_2024011613base_internal15UnalignedLoad32EPKv:
   45|  13.1k|inline uint32_t UnalignedLoad32(absl::Nonnull<const void *> p) {
   46|  13.1k|  uint32_t t;
   47|  13.1k|  memcpy(&t, p, sizeof t);
   48|  13.1k|  return t;
   49|  13.1k|}
_ZN4absl12lts_2024011613base_internal15UnalignedLoad64EPKv:
   51|  7.63k|inline uint64_t UnalignedLoad64(absl::Nonnull<const void *> p) {
   52|  7.63k|  uint64_t t;
   53|  7.63k|  memcpy(&t, p, sizeof t);
   54|  7.63k|  return t;
   55|  7.63k|}

_ZN4absl12lts_2024011623PrefetchToLocalCacheNtaEPKv:
  151|    442|    const void* addr) {
  152|    442|  __builtin_prefetch(addr, 0, 0);
  153|    442|}
_ZN4absl12lts_2024011628PrefetchToLocalCacheForWriteEPKv:
  156|  7.36k|    const void* addr) {
  157|       |  // [x86] gcc/clang don't generate PREFETCHW for __builtin_prefetch(.., 1)
  158|       |  // unless -march=broadwell or newer; this is not generally the default, so we
  159|       |  // manually emit prefetchw. PREFETCHW is recognized as a no-op on older Intel
  160|       |  // processors and has been present on AMD processors since the K6-2.
  161|  7.36k|#if defined(__x86_64__) && !defined(__PRFCHW__)
  162|  7.36k|  asm("prefetchw %0" : : "m"(*reinterpret_cast<const char*>(addr)));
  163|       |#else
  164|       |  __builtin_prefetch(addr, 1, 3);
  165|       |#endif
  166|  7.36k|}

descriptor.cc:_ZN4absl12lts_2024011611MakeCleanupIJEZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0EENS0_7CleanupINS0_16cleanup_internal3TagET0_EES9_:
  127|     28|absl::Cleanup<cleanup_internal::Tag, Callback> MakeCleanup(Callback callback) {
  128|     28|  static_assert(cleanup_internal::WasDeduced<cleanup_internal::Tag, Args...>(),
  129|     28|                "Explicit template parameters are not supported.");
  130|       |
  131|     28|  static_assert(cleanup_internal::ReturnsVoid<Callback>(),
  132|     28|                "Callbacks that return values are not supported.");
  133|       |
  134|     28|  return {std::move(callback)};
  135|     28|}
descriptor.cc:_ZN4absl12lts_202401167CleanupINS0_16cleanup_internal3TagEZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0EC2ES7_:
   89|     28|  Cleanup(Callback callback) : storage_(std::move(callback)) {}  // NOLINT
descriptor.cc:_ZN4absl12lts_202401167CleanupINS0_16cleanup_internal3TagEZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0ED2Ev:
  104|     28|  ~Cleanup() {
  105|     28|    if (storage_.IsCallbackEngaged()) {
  ------------------
  |  Branch (105:9): [True: 28, False: 0]
  ------------------
  106|     28|      storage_.InvokeCallback();
  107|     28|      storage_.DestroyCallback();
  108|     28|    }
  109|     28|  }

descriptor.cc:_ZN4absl12lts_2024011616cleanup_internal7StorageIZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0EC2ES6_:
   50|     28|  explicit Storage(Callback callback) {
   51|       |    // Placement-new into a character buffer is used for eager destruction when
   52|       |    // the cleanup is invoked or cancelled. To ensure this optimizes well, the
   53|       |    // behavior is implemented locally instead of using an absl::optional.
   54|     28|    ::new (GetCallbackBuffer()) Callback(std::move(callback));
   55|     28|    is_callback_engaged_ = true;
   56|     28|  }
descriptor.cc:_ZN4absl12lts_2024011616cleanup_internal7StorageIZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0E17GetCallbackBufferEv:
   73|     84|  void* GetCallbackBuffer() { return static_cast<void*>(+callback_buffer_); }
descriptor.cc:_ZNK4absl12lts_2024011616cleanup_internal7StorageIZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0E17IsCallbackEngagedEv:
   79|     28|  bool IsCallbackEngaged() const { return is_callback_engaged_; }
descriptor.cc:_ZN4absl12lts_2024011616cleanup_internal7StorageIZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0E14InvokeCallbackEv:
   86|     28|  void InvokeCallback() ABSL_NO_THREAD_SAFETY_ANALYSIS {
   87|     28|    std::move(GetCallback())();
   88|     28|  }
descriptor.cc:_ZN4absl12lts_2024011616cleanup_internal7StorageIZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0E11GetCallbackEv:
   75|     56|  Callback& GetCallback() {
   76|     56|    return *reinterpret_cast<Callback*>(GetCallbackBuffer());
   77|     56|  }
descriptor.cc:_ZN4absl12lts_2024011616cleanup_internal7StorageIZN6google8protobuf12_GLOBAL__N_115DisableTrackingEvE3$_0E15DestroyCallbackEv:
   81|     28|  void DestroyCallback() {
   82|     28|    is_callback_engaged_ = false;
   83|     28|    GetCallback().~Callback();
   84|     28|  }

_ZN4absl12lts_202401169btree_mapINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS5_15FieldDescriptorENS2_4lessIS9_EENS2_9allocatorINS3_IKS9_SC_EEEEEC2Ev:
  134|      2|  btree_map() {}
_ZN4absl12lts_2024011618container_internal10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS6_15FieldDescriptorENS3_4lessISA_EENS3_9allocatorINS4_IKSA_SD_EEEELi256ELb0EE3keyISI_EEDTdtfp_5firstERKT_:
  869|      1|      -> decltype((value.first)) {
  870|      1|    return value.first;
  871|      1|  }

_ZN4absl12lts_2024011618container_internal10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS6_11FileCompareENSt3__19allocatorIS7_EELi256ELb0EE3keyEPKS7_:
  812|      3|  static const Key &key(const slot_type *slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEE9constructINSt3__19allocatorIS7_EEJS7_EEEvPT_PS7_DpOT0_:
  778|     10|  static void construct(Alloc *alloc, slot_type *slot, Args &&...args) {
  779|     10|    absl::allocator_traits<Alloc>::construct(*alloc, slot,
  780|     10|                                             std::forward<Args>(args)...);
  781|     10|  }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEE7elementEPS7_:
  774|     11|  static value_type &element(slot_type *slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEE7destroyINSt3__19allocatorIS7_EEEEvPT_PS7_:
  794|      8|  static void destroy(Alloc *alloc, slot_type *slot) {
  795|      8|    absl::allocator_traits<Alloc>::destroy(*alloc, slot);
  796|      8|  }
_ZN4absl12lts_2024011618container_internal10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS6_11FileCompareENSt3__19allocatorIS7_EELi256ELb0EE3keyIS7_EERKT_SG_:
  809|      6|  static const V &key(const V &value) {
  810|      6|    return value;
  811|      6|  }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEE9constructINSt3__19allocatorIS7_EEJS7_EEEvPT_PS7_DpOT0_:
  778|      1|  static void construct(Alloc *alloc, slot_type *slot, Args &&...args) {
  779|      1|    absl::allocator_traits<Alloc>::construct(*alloc, slot,
  780|      1|                                             std::forward<Args>(args)...);
  781|      1|  }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEE7elementEPS7_:
  774|      1|  static value_type &element(slot_type *slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEE7destroyINSt3__19allocatorIS7_EEEEvPT_PS7_:
  794|      1|  static void destroy(Alloc *alloc, slot_type *slot) {
  795|      1|    absl::allocator_traits<Alloc>::destroy(*alloc, slot);
  796|      1|  }
_ZN4absl12lts_2024011618container_internal10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS6_16ExtensionCompareENSt3__19allocatorIS7_EELi256ELb0EE3keyIS7_EERKT_SG_:
  809|      1|  static const V &key(const V &value) {
  810|      1|    return value;
  811|      1|  }
_ZN4absl12lts_2024011618container_internal10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS6_13SymbolCompareENSt3__19allocatorIS7_EELi256ELb0EE3keyEPKS7_:
  812|    226|  static const Key &key(const slot_type *slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEE7elementEPKS7_:
  775|     70|  static const value_type &element(const slot_type *slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEE9constructINSt3__19allocatorIS7_EEJS7_EEEvPT_PS7_DpOT0_:
  778|    160|  static void construct(Alloc *alloc, slot_type *slot, Args &&...args) {
  779|    160|    absl::allocator_traits<Alloc>::construct(*alloc, slot,
  780|    160|                                             std::forward<Args>(args)...);
  781|    160|  }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEE7elementEPS7_:
  774|    228|  static value_type &element(slot_type *slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEE7destroyINSt3__19allocatorIS7_EEEEvPT_PS7_:
  794|    201|  static void destroy(Alloc *alloc, slot_type *slot) {
  795|    201|    absl::allocator_traits<Alloc>::destroy(*alloc, slot);
  796|    201|  }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEE9constructINSt3__19allocatorIS7_EEEEvPT_PS7_SF_:
  784|      6|  static void construct(Alloc *alloc, slot_type *slot, slot_type *other) {
  785|      6|    absl::allocator_traits<Alloc>::construct(*alloc, slot, std::move(*other));
  786|      6|  }
_ZN4absl12lts_2024011618container_internal15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEE9constructINSt3__19allocatorIS7_EEJRKS7_EEEvPT_PS7_DpOT0_:
  778|     44|  static void construct(Alloc *alloc, slot_type *slot, Args &&...args) {
  779|     44|    absl::allocator_traits<Alloc>::construct(*alloc, slot,
  780|     44|                                             std::forward<Args>(args)...);
  781|     44|  }
_ZN4absl12lts_2024011618container_internal10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS6_13SymbolCompareENSt3__19allocatorIS7_EELi256ELb0EE3keyIS7_EERKT_SG_:
  809|     44|  static const V &key(const V &value) {
  810|     44|    return value;
  811|     44|  }

_ZN4absl12lts_2024011613flat_hash_mapIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS3_14DescriptorPool18DeferredValidation13LifetimesInfoENS7_9allocatorISB_EEEENS0_18container_internal6HashEqIS6_vE4HashENSH_2EqENSC_INS7_4pairIKS6_SE_EEEEEC2Ev:
  159|      4|  flat_hash_map() {}
_ZN4absl12lts_2024011613flat_hash_mapINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeENS0_18container_internal10StringHashENSD_8StringEqENS6_INS2_4pairIKS8_SC_EEEEEC2Ev:
  159|      2|  flat_hash_map() {}
_ZN4absl12lts_2024011613flat_hash_mapINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_10unique_ptrIN6google8protobuf10FeatureSetENS2_14default_deleteISC_EEEENS0_18container_internal10StringHashENSG_8StringEqENS6_INS2_4pairIKS8_SF_EEEEEC2Ev:
  159|      2|  flat_hash_map() {}
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE5applyINS1_12raw_hash_setISE_NS1_10StringHashENS1_8StringEqENS7_INS3_4pairIKS9_SD_EEEEE19EmplaceDecomposableEJRKNSJ_IS9_SD_EEEEEDTclsr4absl18container_internalE13DecomposePairclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSS_DpOST_:
  590|     32|  apply(F&& f, Args&&... args) {
  591|     32|    return absl::container_internal::DecomposePair(std::forward<F>(f),
  592|     32|                                                   std::forward<Args>(args)...);
  593|     32|  }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE5applyINS1_12raw_hash_setISE_NS1_10StringHashENS1_8StringEqENS7_INS3_4pairIKS9_SD_EEEEE12EqualElementIS9_EEJRSL_EEEDTclsr4absl18container_internalE13DecomposePairclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSR_DpOSS_:
  590|      4|  apply(F&& f, Args&&... args) {
  591|      4|    return absl::container_internal::DecomposePair(std::forward<F>(f),
  592|      4|                                                   std::forward<Args>(args)...);
  593|      4|  }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE7elementEPNS1_13map_slot_typeIS9_SD_EE:
  597|     33|  static std::pair<const K, V>& element(slot_type* slot) { return slot->value; }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE8transferINS7_INS3_4pairIKS9_SD_EEEEEEDaPT_PNS1_13map_slot_typeIS9_SD_EESO_:
  583|     50|                       slot_type* old_slot) {
  584|     50|    return slot_policy::transfer(alloc, new_slot, old_slot);
  585|     50|  }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE5applyINS1_12raw_hash_setISE_NS1_10StringHashENS1_8StringEqENS7_INS3_4pairIKS9_SD_EEEEE11HashElementEJRSL_EEEDTclsr4absl18container_internalE13DecomposePairclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSQ_DpOSR_:
  590|     28|  apply(F&& f, Args&&... args) {
  591|     28|    return absl::container_internal::DecomposePair(std::forward<F>(f),
  592|     28|                                                   std::forward<Args>(args)...);
  593|     28|  }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE9constructINS7_INS3_4pairIKS9_SD_EEEEJRKNS3_21piecewise_construct_tENS3_5tupleIJRSH_EEENSN_IJRKSD_EEEEEEvPT_PNS1_13map_slot_typeIS9_SD_EEDpOT0_:
  572|     32|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  573|     32|    slot_policy::construct(alloc, slot, std::forward<Args>(args)...);
  574|     32|  }
_ZN4absl12lts_2024011613flat_hash_mapINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKN6google8protobuf23SourceCodeInfo_LocationENS0_18container_internal10StringHashENSE_8StringEqENS6_INS2_4pairIKS8_SD_EEEEEC2Ev:
  159|      4|  flat_hash_map() {}
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE5valueEPNS3_4pairIKS9_SG_EE:
  599|    207|  static V& value(std::pair<const K, V>* kv) { return kv->second; }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE7elementEPNS1_13map_slot_typeIS9_SG_EE:
  597|    411|  static std::pair<const K, V>& element(slot_type* slot) { return slot->value; }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE5applyINS1_12raw_hash_setISH_NS1_10StringHashENS1_8StringEqENS7_INS3_4pairIKS9_SG_EEEEE12EqualElementIS9_EEJRSO_EEEDTclsr4absl18container_internalE13DecomposePairclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSU_DpOSV_:
  590|    204|  apply(F&& f, Args&&... args) {
  591|    204|    return absl::container_internal::DecomposePair(std::forward<F>(f),
  592|    204|                                                   std::forward<Args>(args)...);
  593|    204|  }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE8transferINS7_INS3_4pairIKS9_SG_EEEEEEDaPT_PNS1_13map_slot_typeIS9_SG_EESR_:
  583|      4|                       slot_type* old_slot) {
  584|      4|    return slot_policy::transfer(alloc, new_slot, old_slot);
  585|      4|  }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE9constructINS7_INS3_4pairIKS9_SG_EEEEJRKNS3_21piecewise_construct_tENS3_5tupleIJOS9_EEENSQ_IJEEEEEEvPT_PNS1_13map_slot_typeIS9_SG_EEDpOT0_:
  572|      4|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  573|      4|    slot_policy::construct(alloc, slot, std::forward<Args>(args)...);
  574|      4|  }
_ZN4absl12lts_2024011613flat_hash_mapINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS0_18container_internal10StringHashENS9_8StringEqENS6_INS2_4pairIKS8_bEEEEEC2Ev:
  159|      2|  flat_hash_map() {}
_ZN4absl12lts_2024011613flat_hash_mapIPKN6google8protobuf10DescriptorENS3_17DescriptorBuilder12MessageHintsENS0_18container_internal6HashEqIS6_vE4HashENSB_2EqENSt3__19allocatorINSE_4pairIKS6_S8_EEEEEC2Ev:
  159|      4|  flat_hash_map() {}
_ZN4absl12lts_2024011613flat_hash_mapINSt3__16vectorIiNS2_9allocatorIiEEEES6_NS0_13hash_internal4HashIS6_EENS2_8equal_toIS6_EENS4_INS2_4pairIKS6_S6_EEEEEC2Ev:
  159|      4|  flat_hash_map() {}
_ZN4absl12lts_2024011613flat_hash_mapINSt3__16vectorIiNS2_9allocatorIiEEEEiNS0_13hash_internal4HashIS6_EENS2_8equal_toIS6_EENS4_INS2_4pairIKS6_iEEEEEC2Ev:
  159|      4|  flat_hash_map() {}
_ZN4absl12lts_2024011613flat_hash_mapIPKN6google8protobuf10DescriptorEPKNS3_21DynamicMessageFactory8TypeInfoENS0_18container_internal6HashEqIS6_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS6_SA_EEEEEC2Ev:
  159|      6|  flat_hash_map() {}
message.cc:_ZN4absl12lts_2024011613flat_hash_mapIPKN6google8protobuf10DescriptorENS3_12_GLOBAL__N_123GeneratedMessageFactory10MessagePtrENS0_18container_internal6HashEqIS6_vE4HashENSC_2EqENSt3__19allocatorINSF_4pairIKS6_S9_EEEEEC2Ev:
  159|      2|  flat_hash_map() {}

extension_set.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_115ExtensionHasherENSA_11ExtensionEqENSt3__19allocatorIS6_EEE12EqualElementINSA_16ExtensionInfoKeyEEEJRS6_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSL_DpOSM_:
  486|      8|  apply(F&& f, Args&&... args) {
  487|      8|    return absl::container_internal::DecomposeValue(
  488|      8|        std::forward<F>(f), std::forward<Args>(args)...);
  489|      8|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEE7elementEPS6_:
  481|     16|  static T& element(slot_type* slot) { return *slot; }
extension_set.cc:_ZN4absl12lts_2024011613flat_hash_setIN6google8protobuf8internal13ExtensionInfoENS4_12_GLOBAL__N_115ExtensionHasherENS6_11ExtensionEqENSt3__19allocatorIS5_EEEC2Ev:
  151|      1|  flat_hash_set() {}
extension_set.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_115ExtensionHasherENSA_11ExtensionEqENSt3__19allocatorIS6_EEE19EmplaceDecomposableEJRKS6_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSK_DpOSL_:
  486|      1|  apply(F&& f, Args&&... args) {
  487|      1|    return absl::container_internal::DecomposeValue(
  488|      1|        std::forward<F>(f), std::forward<Args>(args)...);
  489|      1|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEE9constructINSt3__19allocatorIS6_EEJRKS6_EEEvPT_PS6_DpOT0_:
  471|      1|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|      1|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|      1|                                                 std::forward<Args>(args)...);
  474|      1|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEE7destroyINSt3__19allocatorIS7_EEEEvPT_PS7_:
  477|      4|  static void destroy(Allocator* alloc, slot_type* slot) {
  478|      4|    absl::allocator_traits<Allocator>::destroy(*alloc, slot);
  479|      4|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE7destroyINSt3__19allocatorIS5_EEEEvPT_PS5_:
  477|  1.01k|  static void destroy(Allocator* alloc, slot_type* slot) {
  478|  1.01k|    absl::allocator_traits<Allocator>::destroy(*alloc, slot);
  479|  1.01k|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEE7destroyINSt3__19allocatorIS7_EEEEvPT_PS7_:
  477|     50|  static void destroy(Allocator* alloc, slot_type* slot) {
  478|     50|    absl::allocator_traits<Allocator>::destroy(*alloc, slot);
  479|     50|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEE7destroyINSt3__19allocatorIS7_EEEEvPT_PS7_:
  477|    110|  static void destroy(Allocator* alloc, slot_type* slot) {
  478|    110|    absl::allocator_traits<Allocator>::destroy(*alloc, slot);
  479|    110|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE5applyINS1_12raw_hash_setIS6_NS4_12_GLOBAL__N_120SymbolByFullNameHashENS9_18SymbolByFullNameEqENSt3__19allocatorIS5_EEE12EqualElementINS9_13FullNameQueryEEEJRS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSK_DpOSL_:
  486|     93|  apply(F&& f, Args&&... args) {
  487|     93|    return absl::container_internal::DecomposeValue(
  488|     93|        std::forward<F>(f), std::forward<Args>(args)...);
  489|     93|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE7elementEPS5_:
  481|  2.24k|  static T& element(slot_type* slot) { return *slot; }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEE5applyINS1_12raw_hash_setIS8_NS4_12_GLOBAL__N_121DescriptorsByNameHashIS5_EENSB_19DescriptorsByNameEqIS5_EENSt3__19allocatorIS7_EEE12EqualElementINS0_11string_viewEEEJRS7_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSO_DpOSP_:
  486|      5|  apply(F&& f, Args&&... args) {
  487|      5|    return absl::container_internal::DecomposeValue(
  488|      5|        std::forward<F>(f), std::forward<Args>(args)...);
  489|      5|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEE7elementEPS7_:
  481|     14|  static T& element(slot_type* slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEE7elementEPS7_:
  481|    214|  static T& element(slot_type* slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEE7elementEPS7_:
  481|     79|  static T& element(slot_type* slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyINS0_11string_viewEE7destroyINSt3__19allocatorIS3_EEEEvPT_PS3_:
  477|      3|  static void destroy(Allocator* alloc, slot_type* slot) {
  478|      3|    absl::allocator_traits<Allocator>::destroy(*alloc, slot);
  479|      3|  }
_ZN4absl12lts_2024011613flat_hash_setINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS0_18container_internal10StringHashENS9_8StringEqENS6_IS8_EEEC2Ev:
  151|      4|  flat_hash_set() {}
_ZN4absl12lts_2024011613flat_hash_setIPKN6google8protobuf10DescriptorENS0_18container_internal6HashEqIS6_vE4HashENS9_2EqENSt3__19allocatorIS6_EEEC2Ev:
  151|      2|  flat_hash_set() {}
descriptor.cc:_ZN4absl12lts_2024011613flat_hash_setIN6google8protobuf6SymbolENS3_12_GLOBAL__N_120SymbolByFullNameHashENS5_18SymbolByFullNameEqENSt3__19allocatorIS4_EEEC2Ev:
  151|      2|  flat_hash_set() {}
descriptor.cc:_ZN4absl12lts_2024011613flat_hash_setIPKN6google8protobuf14FileDescriptorENS3_12_GLOBAL__N_121DescriptorsByNameHashIS4_EENS7_19DescriptorsByNameEqIS4_EENSt3__19allocatorIS6_EEEC2Ev:
  151|      2|  flat_hash_set() {}
descriptor.cc:_ZN4absl12lts_2024011613flat_hash_setIN6google8protobuf6SymbolENS3_12_GLOBAL__N_118SymbolByParentHashENS5_16SymbolByParentEqENSt3__19allocatorIS4_EEEC2Ev:
  151|      4|  flat_hash_set() {}
descriptor.cc:_ZN4absl12lts_2024011613flat_hash_setIPKN6google8protobuf15FieldDescriptorENS3_12_GLOBAL__N_116ParentNumberHashENS7_14ParentNumberEqENSt3__19allocatorIS6_EEEC2Ev:
  151|      4|  flat_hash_set() {}
descriptor.cc:_ZN4absl12lts_2024011613flat_hash_setIPKN6google8protobuf19EnumValueDescriptorENS3_12_GLOBAL__N_116ParentNumberHashENS7_14ParentNumberEqENSt3__19allocatorIS6_EEEC2Ev:
  151|      8|  flat_hash_set() {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE5applyINS1_12raw_hash_setIS6_NS4_12_GLOBAL__N_120SymbolByFullNameHashENS9_18SymbolByFullNameEqENSt3__19allocatorIS5_EEE12EqualElementIS5_EEJRS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSJ_DpOSK_:
  486|     34|  apply(F&& f, Args&&... args) {
  487|     34|    return absl::container_internal::DecomposeValue(
  488|     34|        std::forward<F>(f), std::forward<Args>(args)...);
  489|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEE5applyINS1_12raw_hash_setIS8_NS4_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS7_EEE19EmplaceDecomposableEJRKPS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSM_DpOSN_:
  486|     34|  apply(F&& f, Args&&... args) {
  487|     34|    return absl::container_internal::DecomposeValue(
  488|     34|        std::forward<F>(f), std::forward<Args>(args)...);
  489|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEE5applyINS1_12raw_hash_setIS8_NS4_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS7_EEE12EqualElementIPS5_EEJRS7_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSM_DpOSN_:
  486|      1|  apply(F&& f, Args&&... args) {
  487|      1|    return absl::container_internal::DecomposeValue(
  488|      1|        std::forward<F>(f), std::forward<Args>(args)...);
  489|      1|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEE9constructINSt3__19allocatorIS7_EEJS7_EEEvPT_PS7_DpOT0_:
  471|     50|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|     50|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|     50|                                                 std::forward<Args>(args)...);
  474|     50|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEE5applyINS1_12raw_hash_setIS8_NS4_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS7_EEE11HashElementEJRS7_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSK_DpOSL_:
  486|     28|  apply(F&& f, Args&&... args) {
  487|     28|    return absl::container_internal::DecomposeValue(
  488|     28|        std::forward<F>(f), std::forward<Args>(args)...);
  489|     28|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEE9constructINSt3__19allocatorIS7_EEJRKPS5_EEEvPT_PS7_DpOT0_:
  471|     34|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|     34|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|     34|                                                 std::forward<Args>(args)...);
  474|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE5applyINS1_12raw_hash_setIS6_NS4_12_GLOBAL__N_120SymbolByFullNameHashENS9_18SymbolByFullNameEqENSt3__19allocatorIS5_EEE19EmplaceDecomposableEJRKS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSJ_DpOSK_:
  486|    382|  apply(F&& f, Args&&... args) {
  487|    382|    return absl::container_internal::DecomposeValue(
  488|    382|        std::forward<F>(f), std::forward<Args>(args)...);
  489|    382|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE9constructINSt3__19allocatorIS5_EEJS5_EEEvPT_PS5_DpOT0_:
  471|  1.01k|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|  1.01k|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|  1.01k|                                                 std::forward<Args>(args)...);
  474|  1.01k|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE5applyINS1_12raw_hash_setIS6_NS4_12_GLOBAL__N_120SymbolByFullNameHashENS9_18SymbolByFullNameEqENSt3__19allocatorIS5_EEE11HashElementEJRS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSI_DpOSJ_:
  486|    434|  apply(F&& f, Args&&... args) {
  487|    434|    return absl::container_internal::DecomposeValue(
  488|    434|        std::forward<F>(f), std::forward<Args>(args)...);
  489|    434|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE9constructINSt3__19allocatorIS5_EEJRKS5_EEEvPT_PS5_DpOT0_:
  471|    869|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|    869|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|    869|                                                 std::forward<Args>(args)...);
  474|    869|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE5applyINS1_12raw_hash_setIS6_NS4_12_GLOBAL__N_118SymbolByParentHashENS9_16SymbolByParentEqENSt3__19allocatorIS5_EEE19EmplaceDecomposableEJRKS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSJ_DpOSK_:
  486|    487|  apply(F&& f, Args&&... args) {
  487|    487|    return absl::container_internal::DecomposeValue(
  488|    487|        std::forward<F>(f), std::forward<Args>(args)...);
  489|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE5applyINS1_12raw_hash_setIS6_NS4_12_GLOBAL__N_118SymbolByParentHashENS9_16SymbolByParentEqENSt3__19allocatorIS5_EEE12EqualElementIS5_EEJRS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSJ_DpOSK_:
  486|     52|  apply(F&& f, Args&&... args) {
  487|     52|    return absl::container_internal::DecomposeValue(
  488|     52|        std::forward<F>(f), std::forward<Args>(args)...);
  489|     52|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIN6google8protobuf6SymbolEE5applyINS1_12raw_hash_setIS6_NS4_12_GLOBAL__N_118SymbolByParentHashENS9_16SymbolByParentEqENSt3__19allocatorIS5_EEE11HashElementEJRS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSI_DpOSJ_:
  486|    532|  apply(F&& f, Args&&... args) {
  487|    532|    return absl::container_internal::DecomposeValue(
  488|    532|        std::forward<F>(f), std::forward<Args>(args)...);
  489|    532|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEE5applyINS1_12raw_hash_setIS8_NS4_12_GLOBAL__N_121DescriptorsByNameHashIS5_EENSB_19DescriptorsByNameEqIS5_EENSt3__19allocatorIS7_EEE19EmplaceDecomposableEJRKS7_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSN_DpOSO_:
  486|      4|  apply(F&& f, Args&&... args) {
  487|      4|    return absl::container_internal::DecomposeValue(
  488|      4|        std::forward<F>(f), std::forward<Args>(args)...);
  489|      4|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEE9constructINSt3__19allocatorIS7_EEJS7_EEEvPT_PS7_DpOT0_:
  471|      4|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|      4|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|      4|                                                 std::forward<Args>(args)...);
  474|      4|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEE9constructINSt3__19allocatorIS7_EEJRKS7_EEEvPT_PS7_DpOT0_:
  471|      4|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|      4|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|      4|                                                 std::forward<Args>(args)...);
  474|      4|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEE5applyINS1_12raw_hash_setIS8_NS4_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS7_EEE19EmplaceDecomposableEJRKPS5_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSM_DpOSN_:
  486|    103|  apply(F&& f, Args&&... args) {
  487|    103|    return absl::container_internal::DecomposeValue(
  488|    103|        std::forward<F>(f), std::forward<Args>(args)...);
  489|    103|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEE5applyINS1_12raw_hash_setIS8_NS4_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS7_EEE12EqualElementIPS5_EEJRS7_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSM_DpOSN_:
  486|      6|  apply(F&& f, Args&&... args) {
  487|      6|    return absl::container_internal::DecomposeValue(
  488|      6|        std::forward<F>(f), std::forward<Args>(args)...);
  489|      6|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEE9constructINSt3__19allocatorIS7_EEJS7_EEEvPT_PS7_DpOT0_:
  471|    110|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|    110|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|    110|                                                 std::forward<Args>(args)...);
  474|    110|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEE5applyINS1_12raw_hash_setIS8_NS4_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS7_EEE11HashElementEJRS7_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSK_DpOSL_:
  486|     98|  apply(F&& f, Args&&... args) {
  487|     98|    return absl::container_internal::DecomposeValue(
  488|     98|        std::forward<F>(f), std::forward<Args>(args)...);
  489|     98|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEE9constructINSt3__19allocatorIS7_EEJRKPS5_EEEvPT_PS7_DpOT0_:
  471|    103|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|    103|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|    103|                                                 std::forward<Args>(args)...);
  474|    103|  }
_ZN4absl12lts_2024011613flat_hash_setIPKN6google8protobuf14FileDescriptorENS0_18container_internal6HashEqIS6_vE4HashENS9_2EqENSt3__19allocatorIS6_EEEC2Ev:
  151|      8|  flat_hash_set() {}
_ZN4absl12lts_2024011613flat_hash_setINS0_11string_viewENS0_18container_internal10StringHashENS3_8StringEqENSt3__19allocatorIS2_EEEC2Ev:
  151|     65|  flat_hash_set() {}
_ZN4absl12lts_2024011613flat_hash_setIiNS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS5_9allocatorIiEEEC2Ev:
  151|      4|  flat_hash_set() {}
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyINS0_11string_viewEE5applyINS1_12raw_hash_setIS4_NS1_10StringHashENS1_8StringEqENSt3__19allocatorIS3_EEE19EmplaceDecomposableEJRKNS9_12basic_stringIcNS9_11char_traitsIcEENSA_IcEEEEEEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSL_DpOSM_:
  486|      3|  apply(F&& f, Args&&... args) {
  487|      3|    return absl::container_internal::DecomposeValue(
  488|      3|        std::forward<F>(f), std::forward<Args>(args)...);
  489|      3|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyINS0_11string_viewEE9constructINSt3__19allocatorIS3_EEJRKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEEEEvPT_PS3_DpOT0_:
  471|      3|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|      3|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|      3|                                                 std::forward<Args>(args)...);
  474|      3|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEE7destroyINSt3__19allocatorIS8_EEEEvPT_PS8_:
  477|      5|  static void destroy(Allocator* alloc, slot_type* slot) {
  478|      5|    absl::allocator_traits<Allocator>::destroy(*alloc, slot);
  479|      5|  }
message.cc:_ZN4absl12lts_2024011613flat_hash_setIPKN6google8protobuf8internal15DescriptorTableENS3_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENS9_18DescriptorByNameEqENSt3__19allocatorIS7_EEEC2Ev:
  151|      2|  flat_hash_set() {}
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEE7elementEPS8_:
  481|      5|  static T& element(slot_type* slot) { return *slot; }
message.cc:_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEE5applyINS1_12raw_hash_setIS9_NS4_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSD_18DescriptorByNameEqENSt3__19allocatorIS8_EEE19EmplaceDecomposableEJRKS8_EEEDTclsr4absl18container_internalE14DecomposeValueclsr3stdE7declvalIT_EEspclsr3stdE7declvalIT0_EEEEOSN_DpOSO_:
  486|      6|  apply(F&& f, Args&&... args) {
  487|      6|    return absl::container_internal::DecomposeValue(
  488|      6|        std::forward<F>(f), std::forward<Args>(args)...);
  489|      6|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEE9constructINSt3__19allocatorIS8_EEJS8_EEEvPT_PS8_DpOT0_:
  471|      5|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|      5|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|      5|                                                 std::forward<Args>(args)...);
  474|      5|  }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEE9constructINSt3__19allocatorIS8_EEJRKS8_EEEvPT_PS8_DpOT0_:
  471|      6|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  472|      6|    absl::allocator_traits<Allocator>::construct(*alloc, slot,
  473|      6|                                                 std::forward<Args>(args)...);
  474|      6|  }

_ZN4absl12lts_2024011618container_internal39btree_iterator_generation_info_disabledC2Ej:
 1096|    298|  explicit btree_iterator_generation_info_disabled(uint32_t) {}
_ZN4absl12lts_2024011618container_internal39btree_iterator_generation_info_disabled17update_generationEPKv:
 1097|    111|  static void update_generation(const void *) {}
_ZN4absl12lts_2024011618container_internal39btree_iterator_generation_info_disabled10generationEv:
 1098|     44|  static uint32_t generation() { return 0; }
_ZN4absl12lts_2024011618container_internal39btree_iterator_generation_info_disabled23assert_valid_generationEPKv:
 1099|    897|  static void assert_valid_generation(const void *) {}
_ZN4absl12lts_2024011618container_internal12SearchResultImLb0EEC2Em:
  479|     85|  explicit SearchResult(V v) : value(v) {}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE5emptyEv:
 1583|      1|  bool empty() const { return size_ == 0; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE7is_leafEv:
  685|      4|  bool is_leaf() const { return GetField<2>()[3] != kInternalNodeMaxCount; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8GetFieldILm2EEEPKNS4_13tuple_elementIXT_ENS4_5tupleIJPSM_jhNS1_13map_slot_typeISB_SE_EESQ_EEEE4typeEv:
  665|     12|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|     12|    return InternalLayout().template Pointer<N>(
  668|     12|        reinterpret_cast<const char *>(this));
  669|     12|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE14InternalLayoutEv:
  640|     23|  constexpr static layout_type InternalLayout() {
  641|     23|    return Layout(kNodeSlots, kNodeSlots + 1);
  642|     23|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE6LayoutEmm:
  627|     24|                                      const size_type child_count) {
  628|     24|    return layout_type(
  629|     24|        /*parent*/ 1,
  630|     24|        /*generation*/ BtreeGenerationsEnabled() ? 1 : 0,
  ------------------
  |  Branch (630:24): [Folded, False: 24]
  ------------------
  631|     24|        /*position, start, finish, max_count*/ 4,
  632|     24|        /*slots*/ slot_count,
  633|     24|        /*children*/ child_count);
  634|     24|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE15next_generationEv:
  747|      1|  void next_generation() {
  748|      1|    if (BtreeGenerationsEnabled()) ++*get_root_generation();
  ------------------
  |  Branch (748:9): [Folded, False: 1]
  ------------------
  749|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE4slotEm:
  672|      4|  slot_type *slot(size_type i) { return &GetField<3>()[i]; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8GetFieldILm3EEEPNS4_13tuple_elementIXT_ENS4_5tupleIJPSM_jhNS1_13map_slot_typeISB_SE_EESQ_EEEE4typeEv:
  659|      4|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|      4|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|      4|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE5startEv:
  694|      4|  field_type start() const {
  695|       |    // TODO(ezb): when floating storage is implemented, return GetField<2>()[1];
  696|       |    assert(GetField<2>()[1] == 0);
  697|      4|    return 0;
  698|      4|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE5countEv:
  704|      1|  field_type count() const {
  705|       |    assert(finish() >= start());
  706|      1|    return finish() - start();
  707|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8LeafSizeEm:
  643|      1|  constexpr static size_type LeafSize(const size_type slot_count = kNodeSlots) {
  644|      1|    return LeafLayout(slot_count).AllocSize();
  645|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE10LeafLayoutEm:
  637|      1|      const size_type slot_count = kNodeSlots) {
  638|      1|    return Layout(slot_count, 0);
  639|      1|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE9max_countEv:
  708|      1|  field_type max_count() const {
  709|       |    // Internal nodes have max_count==kInternalNodeMaxCount.
  710|       |    // Leaf nodes have max_count in [1, kNodeSlots].
  711|      1|    const field_type max_count = GetField<2>()[3];
  712|      1|    return max_count == field_type{kInternalNodeMaxCount}
  ------------------
  |  Branch (712:12): [True: 0, False: 1]
  ------------------
  713|      1|               ? field_type{kNodeSlots}
  714|      1|               : max_count;
  715|      1|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE6parentEv:
  718|      1|  btree_node *parent() const { return *GetField<0>(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8GetFieldILm0EEEPKNS4_13tuple_elementIXT_ENS4_5tupleIJPSM_jhNS1_13map_slot_typeISB_SE_EESQ_EEEE4typeEv:
  665|      1|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|      1|    return InternalLayout().template Pointer<N>(
  668|      1|        reinterpret_cast<const char *>(this));
  669|      1|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE11is_internalEv:
  688|      2|  bool is_internal() const { return !is_leaf(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8positionEv:
  691|      1|  field_type position() const { return GetField<2>()[0]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE6finishEv:
  701|      6|  field_type finish() const { return GetField<2>()[2]; }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE17mutable_allocatorEv:
 1676|      2|  allocator_type *mutable_allocator() noexcept {
 1677|      2|    return &rightmost_.template get<1>();
 1678|      2|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE9EmptyNodeEv:
 1340|      4|  static node_type *EmptyNode() {
 1341|      4|    alignas(node_type::Alignment()) static constexpr EmptyNodeType empty_node;
 1342|      4|    return const_cast<EmptyNodeType *>(&empty_node);
 1343|      4|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE17mutable_rightmostEv:
 1664|      1|  node_type *&mutable_rightmost() noexcept {
 1665|      1|    return rightmost_.template get<2>();
 1666|      1|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE12mutable_rootEv:
 1661|      1|  node_type *&mutable_root() noexcept { return root_; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE10generationEv:
  738|      1|  uint32_t generation() const {
  739|      1|    return BtreeGenerationsEnabled() ? *get_root_generation() : 0;
  ------------------
  |  Branch (739:12): [Folded, False: 1]
  ------------------
  740|      1|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE15internal_locateISB_EENS1_12SearchResultINS1_14btree_iteratorINS1_10btree_nodeISL_EERSJ_PSJ_EELb0EEERKT_:
 2898|      1|    -> SearchResult<iterator, is_key_compare_to::value> {
 2899|      1|  iterator iter(const_cast<node_type *>(root()));
 2900|      1|  for (;;) {
 2901|      1|    SearchResult<size_type, is_key_compare_to::value> res =
 2902|      1|        iter.node_->lower_bound(key, key_comp());
 2903|      1|    iter.position_ = static_cast<int>(res.value);
 2904|      1|    if (res.IsEq()) {
  ------------------
  |  Branch (2904:9): [Folded, False: 1]
  ------------------
 2905|      0|      return {iter, MatchKind::kEq};
 2906|      0|    }
 2907|       |    // Note: in the non-key-compare-to case, we don't need to walk all the way
 2908|       |    // down the tree if the keys are equal, but determining equality would
 2909|       |    // require doing an extra comparison on each node on the way down, and we
 2910|       |    // will need to go all the way to the leaf node in the expected case.
 2911|      1|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2911:9): [True: 1, False: 0]
  ------------------
 2912|      1|      break;
 2913|      1|    }
 2914|      0|    iter.node_ = iter.node_->child(static_cast<field_type>(iter.position_));
 2915|      0|  }
 2916|       |  // Note: in the non-key-compare-to case, the key may actually be equivalent
 2917|       |  // here (and the MatchKind::kNe is ignored).
 2918|      1|  return {iter, MatchKind::kNe};
 2919|      1|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE4rootEv:
 1660|      1|  const node_type *root() const { return root_; }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEERSK_PSK_EC2EPSN_:
 1142|      1|  explicit btree_iterator(Node *n) : btree_iterator(n, n->start()) {}
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEERSK_PSK_EC2EPSN_i:
 1144|      1|      : btree_iterator_generation_info(n != nullptr ? n->generation()
  ------------------
  |  Branch (1144:40): [True: 1, False: 0]
  ------------------
 1145|      1|                                                    : ~uint32_t{}),
 1146|      1|        node_(n),
 1147|      1|        position_(p) {}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE11lower_boundISB_EENS1_12SearchResultImLb0EEERKT_RKNS1_19key_compare_adapterISG_SB_E15checked_compareE:
  781|      1|      const K &k, const key_compare &comp) const {
  782|      1|    return use_linear_search::value ? linear_search(k, comp)
  ------------------
  |  Branch (782:12): [Folded, False: 1]
  ------------------
  783|      1|                                    : binary_search(k, comp);
  784|      1|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE13binary_searchISB_NS1_19key_compare_adapterISG_SB_E15checked_compareEEENS1_12SearchResultImXsr23btree_is_key_compare_toIT0_SB_EE5valueEEERKT_RKSS_:
  802|      1|  binary_search(const K &k, const Compare &comp) const {
  803|      1|    return binary_search_impl(k, start(), finish(), comp,
  804|      1|                              btree_is_key_compare_to<Compare, key_type>());
  805|      1|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE18binary_search_implISB_NS1_19key_compare_adapterISG_SB_E15checked_compareEEENS1_12SearchResultImLb0EEERKT_mmRKT0_NS4_17integral_constantIbLb0EEE:
  845|      1|      std::false_type /* IsCompareTo */) const {
  846|      1|    while (s != e) {
  ------------------
  |  Branch (846:12): [True: 0, False: 1]
  ------------------
  847|      0|      const size_type mid = (s + e) >> 1;
  848|      0|      if (comp(key(mid), k)) {
  ------------------
  |  Branch (848:11): [True: 0, False: 0]
  ------------------
  849|      0|        s = mid + 1;
  850|      0|      } else {
  851|      0|        e = mid;
  852|      0|      }
  853|      0|    }
  854|      1|    return SearchResult<size_type, false>{s};
  855|      1|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8key_compEv:
 1565|      1|  const key_compare &key_comp() const noexcept {
 1566|      1|    return rightmost_.template get<0>();
 1567|      1|  }
_ZN4absl12lts_2024011618container_internal12SearchResultINS1_14btree_iteratorINS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS9_15FieldDescriptorENS6_4lessISD_EENS6_9allocatorINS7_IKSD_SG_EEEELi256ELb0EEEEERSL_PSL_EELb0EEC2ESR_NS1_9MatchKindE:
  480|      1|  SearchResult(V v, MatchKind /*match*/) : value(v) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE13internal_lastINS1_14btree_iteratorINS1_10btree_nodeISL_EERSJ_PSJ_EEEET_SU_:
 2802|      1|inline IterType btree<P>::internal_last(IterType iter) {
 2803|      1|  assert(iter.node_ != nullptr);
 2804|      1|  while (iter.position_ == iter.node_->finish()) {
  ------------------
  |  Branch (2804:10): [True: 1, False: 0]
  ------------------
 2805|      1|    iter.position_ = iter.node_->position();
 2806|      1|    iter.node_ = iter.node_->parent();
 2807|      1|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2807:9): [True: 1, False: 0]
  ------------------
 2808|      1|      iter.node_ = nullptr;
 2809|      1|      break;
 2810|      1|    }
 2811|      1|  }
 2812|      1|  iter.update_generation();
 2813|      1|  return iter;
 2814|      1|}
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEERSK_PSK_E17update_generationEv:
 1304|      2|  void update_generation() {
 1305|      2|    btree_iterator_generation_info::update_generation(node_);
 1306|      2|  }
_ZN4absl12lts_2024011618container_internal19key_compare_adapterINSt3__14lessINS3_4pairIPKN6google8protobuf10DescriptorEiEEEESB_E15checked_compareC2ESC_:
  227|      2|    checked_compare(Compare comp) : Base(std::move(comp)) {}  // NOLINT
_ZN4absl12lts_2024011618container_internal20checked_compare_baseINSt3__14lessINS3_4pairIPKN6google8protobuf10DescriptorEiEEEELb1EEC2ESC_:
  174|      2|  explicit checked_compare_base(Compare c) : Compare(std::move(c)) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEEC2ERKNS1_19key_compare_adapterISG_SB_E15checked_compareERKSK_:
 1402|      2|      : root_(EmptyNode()), rightmost_(comp, alloc, EmptyNode()), size_(0) {}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE12set_positionEh:
  676|      1|  void set_position(field_type v) { GetField<2>()[0] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8GetFieldILm2EEEPNS4_13tuple_elementIXT_ENS4_5tupleIJPSM_jhNS1_13map_slot_typeISB_SE_EESQ_EEEE4typeEv:
  659|      5|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|      5|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|      5|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE10set_finishEh:
  678|      2|  void set_finish(field_type v) { GetField<2>()[2] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE14set_generationEj:
  743|      1|  void set_generation(uint32_t generation) {
  744|      1|    if (BtreeGenerationsEnabled()) GetField<1>()[0] = generation;
  ------------------
  |  Branch (744:9): [Folded, False: 1]
  ------------------
  745|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE10set_parentEPSM_:
  670|      1|  void set_parent(btree_node *p) { *GetField<0>() = p; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8GetFieldILm0EEEPNS4_13tuple_elementIXT_ENS4_5tupleIJPSM_jhNS1_13map_slot_typeISB_SE_EESQ_EEEE4typeEv:
  659|      1|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|      1|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|      1|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE13insert_uniqueISB_JSJ_EEENS5_INS1_14btree_iteratorINS1_10btree_nodeISL_EERSJ_PSJ_EEbEERKT_DpOT0_:
 2278|      1|    -> std::pair<iterator, bool> {
 2279|      1|  if (empty()) {
  ------------------
  |  Branch (2279:7): [True: 1, False: 0]
  ------------------
 2280|      1|    mutable_root() = mutable_rightmost() = new_leaf_root_node(1);
 2281|      1|  }
 2282|       |
 2283|      1|  SearchResult<iterator, is_key_compare_to::value> res = internal_locate(key);
 2284|      1|  iterator iter = res.value;
 2285|       |
 2286|      1|  if (res.HasMatch()) {
  ------------------
  |  Branch (2286:7): [Folded, False: 1]
  ------------------
 2287|      0|    if (res.IsEq()) {
  ------------------
  |  Branch (2287:9): [Folded, False: 0]
  ------------------
 2288|       |      // The key already exists in the tree, do nothing.
 2289|      0|      return {iter, false};
 2290|      0|    }
 2291|      1|  } else {
 2292|      1|    iterator last = internal_last(iter);
 2293|      1|    if (last.node_ && !compare_keys(key, last.key())) {
  ------------------
  |  Branch (2293:9): [True: 0, False: 1]
  |  Branch (2293:23): [True: 0, False: 0]
  ------------------
 2294|       |      // The key already exists in the tree, do nothing.
 2295|      0|      return {last, false};
 2296|      0|    }
 2297|      1|  }
 2298|      1|  return {internal_emplace(iter, std::forward<Args>(args)...), true};
 2299|      1|}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE18new_leaf_root_nodeEh:
 1702|      1|  node_type *new_leaf_root_node(field_type max_count) {
 1703|      1|    node_type *n = allocate(node_type::LeafSize(max_count));
 1704|      1|    n->init_leaf(/*position=*/0, max_count, /*parent=*/n);
 1705|      1|    return n;
 1706|      1|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE8allocateEm:
 1685|      1|  node_type *allocate(size_type size) {
 1686|      1|    return reinterpret_cast<node_type *>(
 1687|      1|        absl::container_internal::Allocate<node_type::Alignment()>(
 1688|      1|            mutable_allocator(), size));
 1689|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE9init_leafEhhPSM_:
  954|      1|                 btree_node *parent) {
  955|      1|    set_generation(0);
  956|      1|    set_parent(parent);
  957|      1|    set_position(position);
  958|      1|    set_start(0);
  959|      1|    set_finish(0);
  960|      1|    set_max_count(max_count);
  961|      1|    absl::container_internal::SanitizerPoisonMemoryRegion(
  962|      1|        start_slot(), max_count * sizeof(slot_type));
  963|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE9set_startEh:
  677|      1|  void set_start(field_type v) { GetField<2>()[1] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE13set_max_countEh:
  680|      1|  void set_max_count(field_type v) { GetField<2>()[3] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE10start_slotEv:
  673|      1|  slot_type *start_slot() { return slot(start()); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE16internal_emplaceIJSJ_EEENS1_14btree_iteratorINS1_10btree_nodeISL_EERSJ_PSJ_EEST_DpOT_:
 2819|      1|    -> iterator {
 2820|      1|  if (iter.node_->is_internal()) {
  ------------------
  |  Branch (2820:7): [True: 0, False: 1]
  ------------------
 2821|       |    // We can't insert on an internal node. Instead, we'll insert after the
 2822|       |    // previous value which is guaranteed to be on a leaf node.
 2823|      0|    --iter;
 2824|      0|    ++iter.position_;
 2825|      0|  }
 2826|      1|  const field_type max_count = iter.node_->max_count();
 2827|      1|  allocator_type *alloc = mutable_allocator();
 2828|       |
 2829|      1|  const auto transfer_and_delete = [&](node_type *old_node,
 2830|      1|                                       node_type *new_node) {
 2831|      1|    new_node->transfer_n(old_node->count(), new_node->start(),
 2832|      1|                         old_node->start(), old_node, alloc);
 2833|      1|    new_node->set_finish(old_node->finish());
 2834|      1|    old_node->set_finish(old_node->start());
 2835|      1|    new_node->set_generation(old_node->generation());
 2836|      1|    node_type::clear_and_delete(old_node, alloc);
 2837|      1|  };
 2838|      1|  const auto replace_leaf_root_node = [&](field_type new_node_size) {
 2839|      1|    assert(iter.node_ == root());
 2840|      1|    node_type *old_root = iter.node_;
 2841|      1|    node_type *new_root = iter.node_ = new_leaf_root_node(new_node_size);
 2842|      1|    transfer_and_delete(old_root, new_root);
 2843|      1|    mutable_root() = mutable_rightmost() = new_root;
 2844|      1|  };
 2845|       |
 2846|      1|  bool replaced_node = false;
 2847|      1|  if (iter.node_->count() == max_count) {
  ------------------
  |  Branch (2847:7): [True: 0, False: 1]
  ------------------
 2848|       |    // Make room in the leaf for the new item.
 2849|      0|    if (max_count < kNodeSlots) {
  ------------------
  |  Branch (2849:9): [True: 0, False: 0]
  ------------------
 2850|       |      // Insertion into the root where the root is smaller than the full node
 2851|       |      // size. Simply grow the size of the root node.
 2852|      0|      replace_leaf_root_node(static_cast<field_type>(
 2853|      0|          (std::min)(static_cast<int>(kNodeSlots), 2 * max_count)));
 2854|      0|      replaced_node = true;
 2855|      0|    } else {
 2856|      0|      rebalance_or_split(&iter);
 2857|      0|    }
 2858|      0|  }
 2859|      1|  (void)replaced_node;
 2860|       |#if defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
 2861|       |    defined(ABSL_HAVE_HWADDRESS_SANITIZER)
 2862|       |  if (!replaced_node) {
 2863|       |    assert(iter.node_->is_leaf());
 2864|       |    if (iter.node_->is_root()) {
 2865|       |      replace_leaf_root_node(max_count);
 2866|       |    } else {
 2867|       |      node_type *old_node = iter.node_;
 2868|       |      const bool was_rightmost = rightmost() == old_node;
 2869|       |      const bool was_leftmost = leftmost() == old_node;
 2870|       |      node_type *parent = old_node->parent();
 2871|       |      const field_type position = old_node->position();
 2872|       |      node_type *new_node = iter.node_ = new_leaf_node(position, parent);
 2873|       |      parent->set_child_noupdate_position(position, new_node);
 2874|       |      transfer_and_delete(old_node, new_node);
 2875|       |      if (was_rightmost) mutable_rightmost() = new_node;
 2876|       |      // The leftmost node is stored as the parent of the root node.
 2877|       |      if (was_leftmost) root()->set_parent(new_node);
 2878|       |    }
 2879|       |  }
 2880|       |#endif
 2881|      1|  iter.node_->emplace_value(static_cast<field_type>(iter.position_), alloc,
 2882|      1|                            std::forward<Args>(args)...);
 2883|       |  assert(
 2884|      1|      iter.node_->is_ordered_correctly(static_cast<field_type>(iter.position_),
 2885|      1|                                       original_key_compare(key_comp())) &&
 2886|      1|      "If this assert fails, then either (1) the comparator may violate "
 2887|      1|      "transitivity, i.e. comp(a,b) && comp(b,c) -> comp(a,c) (see "
 2888|      1|      "https://en.cppreference.com/w/cpp/named_req/Compare), or (2) a "
 2889|      1|      "key may have been mutated after it was inserted into the tree.");
 2890|      1|  ++size_;
 2891|      1|  iter.update_generation();
 2892|      1|  return iter;
 2893|      1|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE13emplace_valueIJSJ_EEEvhPSK_DpOT_:
 1807|      1|                                         Args &&...args) {
 1808|      1|  assert(i >= start());
 1809|      1|  assert(i <= finish());
 1810|       |  // Shift old values to create space for new value and then construct it in
 1811|       |  // place.
 1812|      1|  if (i < finish()) {
  ------------------
  |  Branch (1812:7): [True: 0, False: 1]
  ------------------
 1813|      0|    transfer_n_backward(finish() - i, /*dest_i=*/i + 1, /*src_i=*/i, this,
 1814|      0|                        alloc);
 1815|      0|  }
 1816|      1|  value_init(static_cast<field_type>(i), alloc, std::forward<Args>(args)...);
 1817|      1|  set_finish(finish() + 1);
 1818|       |
 1819|      1|  if (is_internal() && finish() > i + 1) {
  ------------------
  |  Branch (1819:7): [True: 0, False: 1]
  |  Branch (1819:24): [True: 0, False: 0]
  ------------------
 1820|      0|    for (field_type j = finish(); j > i + 1; --j) {
  ------------------
  |  Branch (1820:35): [True: 0, False: 0]
  ------------------
 1821|      0|      set_child(j, child(j - 1));
 1822|      0|    }
 1823|      0|    clear_child(i + 1);
 1824|      0|  }
 1825|      1|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE10value_initIJSJ_EEEvhPSK_DpOT_:
  984|      1|  void value_init(const field_type i, allocator_type *alloc, Args &&...args) {
  985|      1|    next_generation();
  986|      1|    absl::container_internal::SanitizerUnpoisonObject(slot(i));
  987|      1|    params_type::construct(alloc, slot(i), std::forward<Args>(args)...);
  988|      1|  }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEERSK_PSK_EptEv:
 1196|      1|  pointer operator->() const { return &operator*(); }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEERSK_PSK_EdeEv:
 1186|      1|  reference operator*() const {
 1187|      1|    ABSL_HARDENING_ASSERT(node_ != nullptr);
  ------------------
  |  |  128|      1|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      1|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1188|      1|    assert_valid_generation(node_);
 1189|      1|    ABSL_HARDENING_ASSERT(position_ >= node_->start());
  ------------------
  |  |  128|      1|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      1|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1190|      1|    if (position_ >= node_->finish()) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 1]
  ------------------
 1191|      0|      ABSL_HARDENING_ASSERT(!IsEndIterator() && "Dereferencing end() iterator");
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1192|      0|      ABSL_HARDENING_ASSERT(position_ < node_->finish());
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1193|      0|    }
 1194|      1|    return node_->value(static_cast<field_type>(position_));
 1195|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorENS4_4lessISB_EENS4_9allocatorINS5_IKSB_SE_EEEELi256ELb0EEEE5valueEm:
  753|      1|  reference value(size_type i) { return params_type::element(slot(i)); }
_ZN4absl12lts_2024011618container_internal19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS6_9FileEntryEE15checked_compareC2ES7_:
  227|      2|    checked_compare(Compare comp) : Base(std::move(comp)) {}  // NOLINT
_ZN4absl12lts_2024011618container_internal20checked_compare_baseIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareELb1EEC2ES7_:
  174|      2|  explicit checked_compare_base(Compare c) : Compare(std::move(c)) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEEC2ERKNS1_19key_compare_adapterIS9_S8_E15checked_compareERKSC_:
 1402|      2|      : root_(EmptyNode()), rightmost_(comp, alloc, EmptyNode()), size_(0) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9EmptyNodeEv:
 1340|      6|  static node_type *EmptyNode() {
 1341|      6|    alignas(node_type::Alignment()) static constexpr EmptyNodeType empty_node;
 1342|      6|    return const_cast<EmptyNodeType *>(&empty_node);
 1343|      6|  }
_ZN4absl12lts_2024011618container_internal19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS6_11SymbolEntryEE15checked_compareC2ES7_:
  227|      2|    checked_compare(Compare comp) : Base(std::move(comp)) {}  // NOLINT
_ZN4absl12lts_2024011618container_internal20checked_compare_baseIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareELb1EEC2ES7_:
  174|      2|  explicit checked_compare_base(Compare c) : Compare(std::move(c)) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEEC2ERKNS1_19key_compare_adapterIS9_S8_E15checked_compareERKSC_:
 1402|      2|      : root_(EmptyNode()), rightmost_(comp, alloc, EmptyNode()), size_(0) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9EmptyNodeEv:
 1340|      6|  static node_type *EmptyNode() {
 1341|      6|    alignas(node_type::Alignment()) static constexpr EmptyNodeType empty_node;
 1342|      6|    return const_cast<EmptyNodeType *>(&empty_node);
 1343|      6|  }
_ZN4absl12lts_2024011618container_internal19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS6_14ExtensionEntryEE15checked_compareC2ES7_:
  227|      2|    checked_compare(Compare comp) : Base(std::move(comp)) {}  // NOLINT
_ZN4absl12lts_2024011618container_internal20checked_compare_baseIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareELb1EEC2ES7_:
  174|      2|  explicit checked_compare_base(Compare c) : Compare(std::move(c)) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEEC2ERKNS1_19key_compare_adapterIS9_S8_E15checked_compareERKSC_:
 1402|      2|      : root_(EmptyNode()), rightmost_(comp, alloc, EmptyNode()), size_(0) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9EmptyNodeEv:
 1340|      5|  static node_type *EmptyNode() {
 1341|      5|    alignas(node_type::Alignment()) static constexpr EmptyNodeType empty_node;
 1342|      5|    return const_cast<EmptyNodeType *>(&empty_node);
 1343|      5|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13insert_uniqueIS8_JS8_EEENSA_4pairINS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSK_EEbEERKT_DpOT0_:
 2278|      6|    -> std::pair<iterator, bool> {
 2279|      6|  if (empty()) {
  ------------------
  |  Branch (2279:7): [True: 3, False: 3]
  ------------------
 2280|      3|    mutable_root() = mutable_rightmost() = new_leaf_root_node(1);
 2281|      3|  }
 2282|       |
 2283|      6|  SearchResult<iterator, is_key_compare_to::value> res = internal_locate(key);
 2284|      6|  iterator iter = res.value;
 2285|       |
 2286|      6|  if (res.HasMatch()) {
  ------------------
  |  Branch (2286:7): [Folded, False: 6]
  ------------------
 2287|      0|    if (res.IsEq()) {
  ------------------
  |  Branch (2287:9): [Folded, False: 0]
  ------------------
 2288|       |      // The key already exists in the tree, do nothing.
 2289|      0|      return {iter, false};
 2290|      0|    }
 2291|      6|  } else {
 2292|      6|    iterator last = internal_last(iter);
 2293|      6|    if (last.node_ && !compare_keys(key, last.key())) {
  ------------------
  |  Branch (2293:9): [True: 0, False: 6]
  |  Branch (2293:23): [True: 0, False: 0]
  ------------------
 2294|       |      // The key already exists in the tree, do nothing.
 2295|      0|      return {last, false};
 2296|      0|    }
 2297|      6|  }
 2298|      6|  return {internal_emplace(iter, std::forward<Args>(args)...), true};
 2299|      6|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5emptyEv:
 1583|     12|  bool empty() const { return size_ == 0; }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18new_leaf_root_nodeEh:
 1702|      6|  node_type *new_leaf_root_node(field_type max_count) {
 1703|      6|    node_type *n = allocate(node_type::LeafSize(max_count));
 1704|      6|    n->init_leaf(/*position=*/0, max_count, /*parent=*/n);
 1705|      6|    return n;
 1706|      6|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8allocateEm:
 1685|      6|  node_type *allocate(size_type size) {
 1686|      6|    return reinterpret_cast<node_type *>(
 1687|      6|        absl::container_internal::Allocate<node_type::Alignment()>(
 1688|      6|            mutable_allocator(), size));
 1689|      6|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE17mutable_allocatorEv:
 1676|     14|  allocator_type *mutable_allocator() noexcept {
 1677|     14|    return &rightmost_.template get<1>();
 1678|     14|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8LeafSizeEm:
  643|     11|  constexpr static size_type LeafSize(const size_type slot_count = kNodeSlots) {
  644|     11|    return LeafLayout(slot_count).AllocSize();
  645|     11|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10LeafLayoutEm:
  637|     11|      const size_type slot_count = kNodeSlots) {
  638|     11|    return Layout(slot_count, 0);
  639|     11|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6LayoutEmm:
  627|    219|                                      const size_type child_count) {
  628|    219|    return layout_type(
  629|    219|        /*parent*/ 1,
  630|    219|        /*generation*/ BtreeGenerationsEnabled() ? 1 : 0,
  ------------------
  |  Branch (630:24): [Folded, False: 219]
  ------------------
  631|    219|        /*position, start, finish, max_count*/ 4,
  632|    219|        /*slots*/ slot_count,
  633|    219|        /*children*/ child_count);
  634|    219|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9init_leafEhhPSE_:
  954|      6|                 btree_node *parent) {
  955|      6|    set_generation(0);
  956|      6|    set_parent(parent);
  957|      6|    set_position(position);
  958|      6|    set_start(0);
  959|      6|    set_finish(0);
  960|      6|    set_max_count(max_count);
  961|      6|    absl::container_internal::SanitizerPoisonMemoryRegion(
  962|      6|        start_slot(), max_count * sizeof(slot_type));
  963|      6|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE14set_generationEj:
  743|      9|  void set_generation(uint32_t generation) {
  744|      9|    if (BtreeGenerationsEnabled()) GetField<1>()[0] = generation;
  ------------------
  |  Branch (744:9): [Folded, False: 9]
  ------------------
  745|      9|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10set_parentEPSE_:
  670|      6|  void set_parent(btree_node *p) { *GetField<0>() = p; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm0EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|      6|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|      6|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|      6|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE14InternalLayoutEv:
  640|    208|  constexpr static layout_type InternalLayout() {
  641|    208|    return Layout(kNodeSlots, kNodeSlots + 1);
  642|    208|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12set_positionEh:
  676|      6|  void set_position(field_type v) { GetField<2>()[0] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm2EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|     36|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|     36|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|     36|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9set_startEh:
  677|      6|  void set_start(field_type v) { GetField<2>()[1] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10set_finishEh:
  678|     18|  void set_finish(field_type v) { GetField<2>()[2] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13set_max_countEh:
  680|      6|  void set_max_count(field_type v) { GetField<2>()[3] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10start_slotEv:
  673|      6|  slot_type *start_slot() { return slot(start()); }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4slotEm:
  672|     41|  slot_type *slot(size_type i) { return &GetField<3>()[i]; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm3EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|     41|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|     41|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|     41|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5startEv:
  694|     48|  field_type start() const {
  695|       |    // TODO(ezb): when floating storage is implemented, return GetField<2>()[1];
  696|       |    assert(GetField<2>()[1] == 0);
  697|     48|    return 0;
  698|     48|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE17mutable_rightmostEv:
 1664|      8|  node_type *&mutable_rightmost() noexcept {
 1665|      8|    return rightmost_.template get<2>();
 1666|      8|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12mutable_rootEv:
 1661|      8|  node_type *&mutable_root() noexcept { return root_; }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15internal_locateIS8_EENS1_12SearchResultINS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSK_EELb0EEERKT_:
 2898|      6|    -> SearchResult<iterator, is_key_compare_to::value> {
 2899|      6|  iterator iter(const_cast<node_type *>(root()));
 2900|      6|  for (;;) {
 2901|      6|    SearchResult<size_type, is_key_compare_to::value> res =
 2902|      6|        iter.node_->lower_bound(key, key_comp());
 2903|      6|    iter.position_ = static_cast<int>(res.value);
 2904|      6|    if (res.IsEq()) {
  ------------------
  |  Branch (2904:9): [Folded, False: 6]
  ------------------
 2905|      0|      return {iter, MatchKind::kEq};
 2906|      0|    }
 2907|       |    // Note: in the non-key-compare-to case, we don't need to walk all the way
 2908|       |    // down the tree if the keys are equal, but determining equality would
 2909|       |    // require doing an extra comparison on each node on the way down, and we
 2910|       |    // will need to go all the way to the leaf node in the expected case.
 2911|      6|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2911:9): [True: 6, False: 0]
  ------------------
 2912|      6|      break;
 2913|      6|    }
 2914|      0|    iter.node_ = iter.node_->child(static_cast<field_type>(iter.position_));
 2915|      0|  }
 2916|       |  // Note: in the non-key-compare-to case, the key may actually be equivalent
 2917|       |  // here (and the MatchKind::kNe is ignored).
 2918|      6|  return {iter, MatchKind::kNe};
 2919|      6|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4rootEv:
 1660|      6|  const node_type *root() const { return root_; }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EC2EPSF_:
 1142|      8|  explicit btree_iterator(Node *n) : btree_iterator(n, n->start()) {}
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EC2EPSF_i:
 1144|     10|      : btree_iterator_generation_info(n != nullptr ? n->generation()
  ------------------
  |  Branch (1144:40): [True: 10, False: 0]
  ------------------
 1145|     10|                                                    : ~uint32_t{}),
 1146|     10|        node_(n),
 1147|     10|        position_(p) {}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10generationEv:
  738|     13|  uint32_t generation() const {
  739|     13|    return BtreeGenerationsEnabled() ? *get_root_generation() : 0;
  ------------------
  |  Branch (739:12): [Folded, False: 13]
  ------------------
  740|     13|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11lower_boundIS8_EENS1_12SearchResultImLb0EEERKT_RKNS1_19key_compare_adapterIS9_S8_E15checked_compareE:
  781|      6|      const K &k, const key_compare &comp) const {
  782|      6|    return use_linear_search::value ? linear_search(k, comp)
  ------------------
  |  Branch (782:12): [Folded, False: 6]
  ------------------
  783|      6|                                    : binary_search(k, comp);
  784|      6|  }
_ZNK4absl12lts_2024011618container_internal19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS6_9FileEntryEE15checked_compareclIS8_S8_TnNSt3__19enable_ifIXsr3std7is_sameIbNSC_9result_ofIFKS7_RKT_RKT0_EE4typeEEE5valueEiE4typeELi0EEEbSI_SL_:
  236|      3|    bool operator()(const T &lhs, const U &rhs) const {
  237|       |      // NOTE: if any of these assertions fail, then the comparator does not
  238|       |      // establish a strict-weak-ordering (see
  239|       |      // https://en.cppreference.com/w/cpp/named_req/Compare).
  240|      3|      assert(is_self_equivalent(lhs));
  241|      3|      assert(is_self_equivalent(rhs));
  242|      3|      const bool lhs_comp_rhs = comp()(lhs, rhs);
  243|       |      assert(!lhs_comp_rhs || !comp()(rhs, lhs));
  244|      3|      return lhs_comp_rhs;
  245|      3|    }
_ZNK4absl12lts_2024011618container_internal20checked_compare_baseIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareELb1EE4compEv:
  175|      3|  const Compare &comp() const { return *this; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE3keyEm:
  752|      3|  const key_type &key(size_type i) const { return params_type::key(slot(i)); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4slotEm:
  675|      3|  const slot_type *slot(size_type i) const { return &GetField<3>()[i]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm3EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|      3|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|      3|    return InternalLayout().template Pointer<N>(
  668|      3|        reinterpret_cast<const char *>(this));
  669|      3|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6finishEv:
  701|     58|  field_type finish() const { return GetField<2>()[2]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm2EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|    112|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|    112|    return InternalLayout().template Pointer<N>(
  668|    112|        reinterpret_cast<const char *>(this));
  669|    112|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13binary_searchIS8_NS1_19key_compare_adapterIS9_S8_E15checked_compareEEENS1_12SearchResultImXsr23btree_is_key_compare_toIT0_S8_EE5valueEEERKT_RKSK_:
  802|      6|  binary_search(const K &k, const Compare &comp) const {
  803|      6|    return binary_search_impl(k, start(), finish(), comp,
  804|      6|                              btree_is_key_compare_to<Compare, key_type>());
  805|      6|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18binary_search_implIS8_NS1_19key_compare_adapterIS9_S8_E15checked_compareEEENS1_12SearchResultImLb0EEERKT_mmRKT0_NSA_17integral_constantIbLb0EEE:
  845|      6|      std::false_type /* IsCompareTo */) const {
  846|      9|    while (s != e) {
  ------------------
  |  Branch (846:12): [True: 3, False: 6]
  ------------------
  847|      3|      const size_type mid = (s + e) >> 1;
  848|      3|      if (comp(key(mid), k)) {
  ------------------
  |  Branch (848:11): [True: 3, False: 0]
  ------------------
  849|      3|        s = mid + 1;
  850|      3|      } else {
  851|      0|        e = mid;
  852|      0|      }
  853|      3|    }
  854|      6|    return SearchResult<size_type, false>{s};
  855|      6|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8key_compEv:
 1565|     18|  const key_compare &key_comp() const noexcept {
 1566|     18|    return rightmost_.template get<0>();
 1567|     18|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE7is_leafEv:
  685|     37|  bool is_leaf() const { return GetField<2>()[3] != kInternalNodeMaxCount; }
_ZN4absl12lts_2024011618container_internal12SearchResultINS1_14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS9_11FileCompareENSt3__19allocatorISA_EELi256ELb0EEEEERKSA_PSH_EELb0EEC2ESK_NS1_9MatchKindE:
  480|      6|  SearchResult(V v, MatchKind /*match*/) : value(v) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13internal_lastINS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSJ_EEEET_SN_:
 2802|      6|inline IterType btree<P>::internal_last(IterType iter) {
 2803|      6|  assert(iter.node_ != nullptr);
 2804|      6|  while (iter.position_ == iter.node_->finish()) {
  ------------------
  |  Branch (2804:10): [True: 6, False: 0]
  ------------------
 2805|      6|    iter.position_ = iter.node_->position();
 2806|      6|    iter.node_ = iter.node_->parent();
 2807|      6|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2807:9): [True: 6, False: 0]
  ------------------
 2808|      6|      iter.node_ = nullptr;
 2809|      6|      break;
 2810|      6|    }
 2811|      6|  }
 2812|      6|  iter.update_generation();
 2813|      6|  return iter;
 2814|      6|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8positionEv:
  691|      6|  field_type position() const { return GetField<2>()[0]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6parentEv:
  718|     10|  btree_node *parent() const { return *GetField<0>(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm0EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|     10|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|     10|    return InternalLayout().template Pointer<N>(
  668|     10|        reinterpret_cast<const char *>(this));
  669|     10|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E17update_generationEv:
 1304|     12|  void update_generation() {
 1305|     12|    btree_iterator_generation_info::update_generation(node_);
 1306|     12|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16internal_emplaceIJS8_EEENS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSJ_EESM_DpOT_:
 2819|      6|    -> iterator {
 2820|      6|  if (iter.node_->is_internal()) {
  ------------------
  |  Branch (2820:7): [True: 0, False: 6]
  ------------------
 2821|       |    // We can't insert on an internal node. Instead, we'll insert after the
 2822|       |    // previous value which is guaranteed to be on a leaf node.
 2823|      0|    --iter;
 2824|      0|    ++iter.position_;
 2825|      0|  }
 2826|      6|  const field_type max_count = iter.node_->max_count();
 2827|      6|  allocator_type *alloc = mutable_allocator();
 2828|       |
 2829|      6|  const auto transfer_and_delete = [&](node_type *old_node,
 2830|      6|                                       node_type *new_node) {
 2831|      6|    new_node->transfer_n(old_node->count(), new_node->start(),
 2832|      6|                         old_node->start(), old_node, alloc);
 2833|      6|    new_node->set_finish(old_node->finish());
 2834|      6|    old_node->set_finish(old_node->start());
 2835|      6|    new_node->set_generation(old_node->generation());
 2836|      6|    node_type::clear_and_delete(old_node, alloc);
 2837|      6|  };
 2838|      6|  const auto replace_leaf_root_node = [&](field_type new_node_size) {
 2839|      6|    assert(iter.node_ == root());
 2840|      6|    node_type *old_root = iter.node_;
 2841|      6|    node_type *new_root = iter.node_ = new_leaf_root_node(new_node_size);
 2842|      6|    transfer_and_delete(old_root, new_root);
 2843|      6|    mutable_root() = mutable_rightmost() = new_root;
 2844|      6|  };
 2845|       |
 2846|      6|  bool replaced_node = false;
 2847|      6|  if (iter.node_->count() == max_count) {
  ------------------
  |  Branch (2847:7): [True: 3, False: 3]
  ------------------
 2848|       |    // Make room in the leaf for the new item.
 2849|      3|    if (max_count < kNodeSlots) {
  ------------------
  |  Branch (2849:9): [True: 3, False: 0]
  ------------------
 2850|       |      // Insertion into the root where the root is smaller than the full node
 2851|       |      // size. Simply grow the size of the root node.
 2852|      3|      replace_leaf_root_node(static_cast<field_type>(
 2853|      3|          (std::min)(static_cast<int>(kNodeSlots), 2 * max_count)));
 2854|      3|      replaced_node = true;
 2855|      3|    } else {
 2856|      0|      rebalance_or_split(&iter);
 2857|      0|    }
 2858|      3|  }
 2859|      6|  (void)replaced_node;
 2860|       |#if defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
 2861|       |    defined(ABSL_HAVE_HWADDRESS_SANITIZER)
 2862|       |  if (!replaced_node) {
 2863|       |    assert(iter.node_->is_leaf());
 2864|       |    if (iter.node_->is_root()) {
 2865|       |      replace_leaf_root_node(max_count);
 2866|       |    } else {
 2867|       |      node_type *old_node = iter.node_;
 2868|       |      const bool was_rightmost = rightmost() == old_node;
 2869|       |      const bool was_leftmost = leftmost() == old_node;
 2870|       |      node_type *parent = old_node->parent();
 2871|       |      const field_type position = old_node->position();
 2872|       |      node_type *new_node = iter.node_ = new_leaf_node(position, parent);
 2873|       |      parent->set_child_noupdate_position(position, new_node);
 2874|       |      transfer_and_delete(old_node, new_node);
 2875|       |      if (was_rightmost) mutable_rightmost() = new_node;
 2876|       |      // The leftmost node is stored as the parent of the root node.
 2877|       |      if (was_leftmost) root()->set_parent(new_node);
 2878|       |    }
 2879|       |  }
 2880|       |#endif
 2881|      6|  iter.node_->emplace_value(static_cast<field_type>(iter.position_), alloc,
 2882|      6|                            std::forward<Args>(args)...);
 2883|       |  assert(
 2884|      6|      iter.node_->is_ordered_correctly(static_cast<field_type>(iter.position_),
 2885|      6|                                       original_key_compare(key_comp())) &&
 2886|      6|      "If this assert fails, then either (1) the comparator may violate "
 2887|      6|      "transitivity, i.e. comp(a,b) && comp(b,c) -> comp(a,c) (see "
 2888|      6|      "https://en.cppreference.com/w/cpp/named_req/Compare), or (2) a "
 2889|      6|      "key may have been mutated after it was inserted into the tree.");
 2890|      6|  ++size_;
 2891|      6|  iter.update_generation();
 2892|      6|  return iter;
 2893|      6|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11is_internalEv:
  688|     12|  bool is_internal() const { return !is_leaf(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE7is_rootEv:
  722|      2|  bool is_root() const { return parent()->is_leaf(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9max_countEv:
  708|     11|  field_type max_count() const {
  709|       |    // Internal nodes have max_count==kInternalNodeMaxCount.
  710|       |    // Leaf nodes have max_count in [1, kNodeSlots].
  711|     11|    const field_type max_count = GetField<2>()[3];
  712|     11|    return max_count == field_type{kInternalNodeMaxCount}
  ------------------
  |  Branch (712:12): [True: 0, False: 11]
  ------------------
  713|     11|               ? field_type{kNodeSlots}
  714|     11|               : max_count;
  715|     11|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5countEv:
  704|     14|  field_type count() const {
  705|       |    assert(finish() >= start());
  706|     14|    return finish() - start();
  707|     14|  }
_ZZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16internal_emplaceIJS8_EEENS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSJ_EESM_DpOT_ENKUlhE_clEh:
 2838|      3|  const auto replace_leaf_root_node = [&](field_type new_node_size) {
 2839|       |    assert(iter.node_ == root());
 2840|      3|    node_type *old_root = iter.node_;
 2841|      3|    node_type *new_root = iter.node_ = new_leaf_root_node(new_node_size);
 2842|      3|    transfer_and_delete(old_root, new_root);
 2843|      3|    mutable_root() = mutable_rightmost() = new_root;
 2844|      3|  };
_ZZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16internal_emplaceIJS8_EEENS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSJ_EESM_DpOT_ENKUlPSI_SQ_E_clESQ_SQ_:
 2830|      3|                                       node_type *new_node) {
 2831|      3|    new_node->transfer_n(old_node->count(), new_node->start(),
 2832|      3|                         old_node->start(), old_node, alloc);
 2833|      3|    new_node->set_finish(old_node->finish());
 2834|      3|    old_node->set_finish(old_node->start());
 2835|      3|    new_node->set_generation(old_node->generation());
 2836|      3|    node_type::clear_and_delete(old_node, alloc);
 2837|      3|  };
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10transfer_nEmmmPSE_PSC_:
 1020|      3|                  allocator_type *alloc) {
 1021|      3|    next_generation();
 1022|      3|    for (slot_type *src = src_node->slot(src_i), *end = src + n,
 1023|      3|                   *dest = slot(dest_i);
 1024|      7|         src != end; ++src, ++dest) {
  ------------------
  |  Branch (1024:10): [True: 4, False: 3]
  ------------------
 1025|      4|      transfer(dest, src, alloc);
 1026|      4|    }
 1027|      3|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15next_generationEv:
  747|     14|  void next_generation() {
  748|     14|    if (BtreeGenerationsEnabled()) ++*get_root_generation();
  ------------------
  |  Branch (748:9): [Folded, False: 14]
  ------------------
  749|     14|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8transferEPS8_SF_PSC_:
 1003|      4|  static void transfer(slot_type *dest, slot_type *src, allocator_type *alloc) {
 1004|      4|    absl::container_internal::SanitizerUnpoisonObject(dest);
 1005|      4|    params_type::transfer(alloc, dest, src);
 1006|      4|    absl::container_internal::SanitizerPoisonObject(src);
 1007|      4|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16clear_and_deleteEPSE_PSC_:
 2008|      5|void btree_node<P>::clear_and_delete(btree_node *node, allocator_type *alloc) {
 2009|      5|  if (node->is_leaf()) {
  ------------------
  |  Branch (2009:7): [True: 5, False: 0]
  ------------------
 2010|      5|    node->value_destroy_n(node->start(), node->count(), alloc);
 2011|      5|    deallocate(LeafSize(node->max_count()), node, alloc);
 2012|      5|    return;
 2013|      5|  }
 2014|      0|  if (node->count() == 0) {
  ------------------
  |  Branch (2014:7): [True: 0, False: 0]
  ------------------
 2015|      0|    deallocate(InternalSize(), node, alloc);
 2016|      0|    return;
 2017|      0|  }
 2018|       |
 2019|       |  // The parent of the root of the subtree we are deleting.
 2020|      0|  btree_node *delete_root_parent = node->parent();
 2021|       |
 2022|       |  // Navigate to the leftmost leaf under node, and then delete upwards.
 2023|      0|  while (node->is_internal()) node = node->start_child();
  ------------------
  |  Branch (2023:10): [True: 0, False: 0]
  ------------------
 2024|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2025|       |  // When generations are enabled, we delete the leftmost leaf last in case it's
 2026|       |  // the parent of the root and we need to check whether it's a leaf before we
 2027|       |  // can update the root's generation.
 2028|       |  // TODO(ezb): if we change btree_node::is_root to check a bool inside the node
 2029|       |  // instead of checking whether the parent is a leaf, we can remove this logic.
 2030|       |  btree_node *leftmost_leaf = node;
 2031|       |#endif
 2032|       |  // Use `size_type` because `pos` needs to be able to hold `kNodeSlots+1`,
 2033|       |  // which isn't guaranteed to be a valid `field_type`.
 2034|      0|  size_type pos = node->position();
 2035|      0|  btree_node *parent = node->parent();
 2036|      0|  for (;;) {
 2037|       |    // In each iteration of the next loop, we delete one leaf node and go right.
 2038|      0|    assert(pos <= parent->finish());
 2039|      0|    do {
 2040|      0|      node = parent->child(static_cast<field_type>(pos));
 2041|      0|      if (node->is_internal()) {
  ------------------
  |  Branch (2041:11): [True: 0, False: 0]
  ------------------
 2042|       |        // Navigate to the leftmost leaf under node.
 2043|      0|        while (node->is_internal()) node = node->start_child();
  ------------------
  |  Branch (2043:16): [True: 0, False: 0]
  ------------------
 2044|      0|        pos = node->position();
 2045|      0|        parent = node->parent();
 2046|      0|      }
 2047|      0|      node->value_destroy_n(node->start(), node->count(), alloc);
 2048|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2049|       |      if (leftmost_leaf != node)
 2050|       |#endif
 2051|      0|        deallocate(LeafSize(node->max_count()), node, alloc);
 2052|      0|      ++pos;
 2053|      0|    } while (pos <= parent->finish());
  ------------------
  |  Branch (2053:14): [True: 0, False: 0]
  ------------------
 2054|       |
 2055|       |    // Once we've deleted all children of parent, delete parent and go up/right.
 2056|      0|    assert(pos > parent->finish());
 2057|      0|    do {
 2058|      0|      node = parent;
 2059|      0|      pos = node->position();
 2060|      0|      parent = node->parent();
 2061|      0|      node->value_destroy_n(node->start(), node->count(), alloc);
 2062|      0|      deallocate(InternalSize(), node, alloc);
 2063|      0|      if (parent == delete_root_parent) {
  ------------------
  |  Branch (2063:11): [True: 0, False: 0]
  ------------------
 2064|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2065|       |        deallocate(LeafSize(leftmost_leaf->max_count()), leftmost_leaf, alloc);
 2066|       |#endif
 2067|      0|        return;
 2068|      0|      }
 2069|      0|      ++pos;
 2070|      0|    } while (pos > parent->finish());
  ------------------
  |  Branch (2070:14): [True: 0, False: 0]
  ------------------
 2071|      0|  }
 2072|      0|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15value_destroy_nEhhPSC_:
  995|      5|                       allocator_type *alloc) {
  996|      5|    next_generation();
  997|      9|    for (slot_type *s = slot(i), *end = slot(i + n); s != end; ++s) {
  ------------------
  |  Branch (997:54): [True: 4, False: 5]
  ------------------
  998|      4|      params_type::destroy(alloc, s);
  999|      4|      absl::container_internal::SanitizerPoisonObject(s);
 1000|      4|    }
 1001|      5|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10deallocateEmPSE_PSC_:
  974|      5|                         allocator_type *alloc) {
  975|      5|    absl::container_internal::SanitizerUnpoisonMemoryRegion(node, size);
  976|      5|    absl::container_internal::Deallocate<Alignment()>(alloc, node, size);
  977|      5|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4rootEv:
 1659|      4|  node_type *root() { return root_; }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9rightmostEv:
 1662|      4|  node_type *rightmost() { return rightmost_.template get<2>(); }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13emplace_valueIJS8_EEEvhPSC_DpOT_:
 1807|      6|                                         Args &&...args) {
 1808|      6|  assert(i >= start());
 1809|      6|  assert(i <= finish());
 1810|       |  // Shift old values to create space for new value and then construct it in
 1811|       |  // place.
 1812|      6|  if (i < finish()) {
  ------------------
  |  Branch (1812:7): [True: 0, False: 6]
  ------------------
 1813|      0|    transfer_n_backward(finish() - i, /*dest_i=*/i + 1, /*src_i=*/i, this,
 1814|      0|                        alloc);
 1815|      0|  }
 1816|      6|  value_init(static_cast<field_type>(i), alloc, std::forward<Args>(args)...);
 1817|      6|  set_finish(finish() + 1);
 1818|       |
 1819|      6|  if (is_internal() && finish() > i + 1) {
  ------------------
  |  Branch (1819:7): [True: 0, False: 6]
  |  Branch (1819:24): [True: 0, False: 0]
  ------------------
 1820|      0|    for (field_type j = finish(); j > i + 1; --j) {
  ------------------
  |  Branch (1820:35): [True: 0, False: 0]
  ------------------
 1821|      0|      set_child(j, child(j - 1));
 1822|      0|    }
 1823|      0|    clear_child(i + 1);
 1824|      0|  }
 1825|      6|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10value_initIJS8_EEEvhPSC_DpOT_:
  984|      6|  void value_init(const field_type i, allocator_type *alloc, Args &&...args) {
  985|      6|    next_generation();
  986|      6|    absl::container_internal::SanitizerUnpoisonObject(slot(i));
  987|      6|    params_type::construct(alloc, slot(i), std::forward<Args>(args)...);
  988|      6|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13insert_uniqueIS8_JS8_EEENSA_4pairINS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSK_EEbEERKT_DpOT0_:
 2278|      1|    -> std::pair<iterator, bool> {
 2279|      1|  if (empty()) {
  ------------------
  |  Branch (2279:7): [True: 1, False: 0]
  ------------------
 2280|      1|    mutable_root() = mutable_rightmost() = new_leaf_root_node(1);
 2281|      1|  }
 2282|       |
 2283|      1|  SearchResult<iterator, is_key_compare_to::value> res = internal_locate(key);
 2284|      1|  iterator iter = res.value;
 2285|       |
 2286|      1|  if (res.HasMatch()) {
  ------------------
  |  Branch (2286:7): [Folded, False: 1]
  ------------------
 2287|      0|    if (res.IsEq()) {
  ------------------
  |  Branch (2287:9): [Folded, False: 0]
  ------------------
 2288|       |      // The key already exists in the tree, do nothing.
 2289|      0|      return {iter, false};
 2290|      0|    }
 2291|      1|  } else {
 2292|      1|    iterator last = internal_last(iter);
 2293|      1|    if (last.node_ && !compare_keys(key, last.key())) {
  ------------------
  |  Branch (2293:9): [True: 0, False: 1]
  |  Branch (2293:23): [True: 0, False: 0]
  ------------------
 2294|       |      // The key already exists in the tree, do nothing.
 2295|      0|      return {last, false};
 2296|      0|    }
 2297|      1|  }
 2298|      1|  return {internal_emplace(iter, std::forward<Args>(args)...), true};
 2299|      1|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5emptyEv:
 1583|      6|  bool empty() const { return size_ == 0; }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18new_leaf_root_nodeEh:
 1702|      1|  node_type *new_leaf_root_node(field_type max_count) {
 1703|      1|    node_type *n = allocate(node_type::LeafSize(max_count));
 1704|      1|    n->init_leaf(/*position=*/0, max_count, /*parent=*/n);
 1705|      1|    return n;
 1706|      1|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8allocateEm:
 1685|      1|  node_type *allocate(size_type size) {
 1686|      1|    return reinterpret_cast<node_type *>(
 1687|      1|        absl::container_internal::Allocate<node_type::Alignment()>(
 1688|      1|            mutable_allocator(), size));
 1689|      1|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE17mutable_allocatorEv:
 1676|      3|  allocator_type *mutable_allocator() noexcept {
 1677|      3|    return &rightmost_.template get<1>();
 1678|      3|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8LeafSizeEm:
  643|      2|  constexpr static size_type LeafSize(const size_type slot_count = kNodeSlots) {
  644|      2|    return LeafLayout(slot_count).AllocSize();
  645|      2|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10LeafLayoutEm:
  637|      2|      const size_type slot_count = kNodeSlots) {
  638|      2|    return Layout(slot_count, 0);
  639|      2|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6LayoutEmm:
  627|     39|                                      const size_type child_count) {
  628|     39|    return layout_type(
  629|     39|        /*parent*/ 1,
  630|     39|        /*generation*/ BtreeGenerationsEnabled() ? 1 : 0,
  ------------------
  |  Branch (630:24): [Folded, False: 39]
  ------------------
  631|     39|        /*position, start, finish, max_count*/ 4,
  632|     39|        /*slots*/ slot_count,
  633|     39|        /*children*/ child_count);
  634|     39|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9init_leafEhhPSE_:
  954|      1|                 btree_node *parent) {
  955|      1|    set_generation(0);
  956|      1|    set_parent(parent);
  957|      1|    set_position(position);
  958|      1|    set_start(0);
  959|      1|    set_finish(0);
  960|      1|    set_max_count(max_count);
  961|      1|    absl::container_internal::SanitizerPoisonMemoryRegion(
  962|      1|        start_slot(), max_count * sizeof(slot_type));
  963|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE14set_generationEj:
  743|      1|  void set_generation(uint32_t generation) {
  744|      1|    if (BtreeGenerationsEnabled()) GetField<1>()[0] = generation;
  ------------------
  |  Branch (744:9): [Folded, False: 1]
  ------------------
  745|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10set_parentEPSE_:
  670|      1|  void set_parent(btree_node *p) { *GetField<0>() = p; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm0EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|      1|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|      1|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE14InternalLayoutEv:
  640|     37|  constexpr static layout_type InternalLayout() {
  641|     37|    return Layout(kNodeSlots, kNodeSlots + 1);
  642|     37|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12set_positionEh:
  676|      1|  void set_position(field_type v) { GetField<2>()[0] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm2EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|      5|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|      5|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|      5|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9set_startEh:
  677|      1|  void set_start(field_type v) { GetField<2>()[1] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10set_finishEh:
  678|      2|  void set_finish(field_type v) { GetField<2>()[2] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13set_max_countEh:
  680|      1|  void set_max_count(field_type v) { GetField<2>()[3] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10start_slotEv:
  673|      1|  slot_type *start_slot() { return slot(start()); }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4slotEm:
  672|      6|  slot_type *slot(size_type i) { return &GetField<3>()[i]; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm3EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|      6|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|      6|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|      6|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5startEv:
  694|      7|  field_type start() const {
  695|       |    // TODO(ezb): when floating storage is implemented, return GetField<2>()[1];
  696|       |    assert(GetField<2>()[1] == 0);
  697|      7|    return 0;
  698|      7|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE17mutable_rightmostEv:
 1664|      2|  node_type *&mutable_rightmost() noexcept {
 1665|      2|    return rightmost_.template get<2>();
 1666|      2|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12mutable_rootEv:
 1661|      2|  node_type *&mutable_root() noexcept { return root_; }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15internal_locateIS8_EENS1_12SearchResultINS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSK_EELb0EEERKT_:
 2898|      1|    -> SearchResult<iterator, is_key_compare_to::value> {
 2899|      1|  iterator iter(const_cast<node_type *>(root()));
 2900|      1|  for (;;) {
 2901|      1|    SearchResult<size_type, is_key_compare_to::value> res =
 2902|      1|        iter.node_->lower_bound(key, key_comp());
 2903|      1|    iter.position_ = static_cast<int>(res.value);
 2904|      1|    if (res.IsEq()) {
  ------------------
  |  Branch (2904:9): [Folded, False: 1]
  ------------------
 2905|      0|      return {iter, MatchKind::kEq};
 2906|      0|    }
 2907|       |    // Note: in the non-key-compare-to case, we don't need to walk all the way
 2908|       |    // down the tree if the keys are equal, but determining equality would
 2909|       |    // require doing an extra comparison on each node on the way down, and we
 2910|       |    // will need to go all the way to the leaf node in the expected case.
 2911|      1|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2911:9): [True: 1, False: 0]
  ------------------
 2912|      1|      break;
 2913|      1|    }
 2914|      0|    iter.node_ = iter.node_->child(static_cast<field_type>(iter.position_));
 2915|      0|  }
 2916|       |  // Note: in the non-key-compare-to case, the key may actually be equivalent
 2917|       |  // here (and the MatchKind::kNe is ignored).
 2918|      1|  return {iter, MatchKind::kNe};
 2919|      1|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4rootEv:
 1660|      1|  const node_type *root() const { return root_; }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EC2EPSF_:
 1142|      2|  explicit btree_iterator(Node *n) : btree_iterator(n, n->start()) {}
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EC2EPSF_i:
 1144|      3|      : btree_iterator_generation_info(n != nullptr ? n->generation()
  ------------------
  |  Branch (1144:40): [True: 3, False: 0]
  ------------------
 1145|      3|                                                    : ~uint32_t{}),
 1146|      3|        node_(n),
 1147|      3|        position_(p) {}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10generationEv:
  738|      3|  uint32_t generation() const {
  739|      3|    return BtreeGenerationsEnabled() ? *get_root_generation() : 0;
  ------------------
  |  Branch (739:12): [Folded, False: 3]
  ------------------
  740|      3|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11lower_boundIS8_EENS1_12SearchResultImLb0EEERKT_RKNS1_19key_compare_adapterIS9_S8_E15checked_compareE:
  781|      1|      const K &k, const key_compare &comp) const {
  782|      1|    return use_linear_search::value ? linear_search(k, comp)
  ------------------
  |  Branch (782:12): [Folded, False: 1]
  ------------------
  783|      1|                                    : binary_search(k, comp);
  784|      1|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6finishEv:
  701|     11|  field_type finish() const { return GetField<2>()[2]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm2EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|     22|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|     22|    return InternalLayout().template Pointer<N>(
  668|     22|        reinterpret_cast<const char *>(this));
  669|     22|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13binary_searchIS8_NS1_19key_compare_adapterIS9_S8_E15checked_compareEEENS1_12SearchResultImXsr23btree_is_key_compare_toIT0_S8_EE5valueEEERKT_RKSK_:
  802|      1|  binary_search(const K &k, const Compare &comp) const {
  803|      1|    return binary_search_impl(k, start(), finish(), comp,
  804|      1|                              btree_is_key_compare_to<Compare, key_type>());
  805|      1|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18binary_search_implIS8_NS1_19key_compare_adapterIS9_S8_E15checked_compareEEENS1_12SearchResultImLb0EEERKT_mmRKT0_NSA_17integral_constantIbLb0EEE:
  845|      1|      std::false_type /* IsCompareTo */) const {
  846|      1|    while (s != e) {
  ------------------
  |  Branch (846:12): [True: 0, False: 1]
  ------------------
  847|      0|      const size_type mid = (s + e) >> 1;
  848|      0|      if (comp(key(mid), k)) {
  ------------------
  |  Branch (848:11): [True: 0, False: 0]
  ------------------
  849|      0|        s = mid + 1;
  850|      0|      } else {
  851|      0|        e = mid;
  852|      0|      }
  853|      0|    }
  854|      1|    return SearchResult<size_type, false>{s};
  855|      1|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8key_compEv:
 1565|      3|  const key_compare &key_comp() const noexcept {
 1566|      3|    return rightmost_.template get<0>();
 1567|      3|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE7is_leafEv:
  685|      8|  bool is_leaf() const { return GetField<2>()[3] != kInternalNodeMaxCount; }
_ZN4absl12lts_2024011618container_internal12SearchResultINS1_14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS9_16ExtensionCompareENSt3__19allocatorISA_EELi256ELb0EEEEERKSA_PSH_EELb0EEC2ESK_NS1_9MatchKindE:
  480|      1|  SearchResult(V v, MatchKind /*match*/) : value(v) {}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13internal_lastINS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSJ_EEEET_SN_:
 2802|      1|inline IterType btree<P>::internal_last(IterType iter) {
 2803|      1|  assert(iter.node_ != nullptr);
 2804|      1|  while (iter.position_ == iter.node_->finish()) {
  ------------------
  |  Branch (2804:10): [True: 1, False: 0]
  ------------------
 2805|      1|    iter.position_ = iter.node_->position();
 2806|      1|    iter.node_ = iter.node_->parent();
 2807|      1|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2807:9): [True: 1, False: 0]
  ------------------
 2808|      1|      iter.node_ = nullptr;
 2809|      1|      break;
 2810|      1|    }
 2811|      1|  }
 2812|      1|  iter.update_generation();
 2813|      1|  return iter;
 2814|      1|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8positionEv:
  691|      1|  field_type position() const { return GetField<2>()[0]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6parentEv:
  718|      3|  btree_node *parent() const { return *GetField<0>(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm0EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|      3|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|      3|    return InternalLayout().template Pointer<N>(
  668|      3|        reinterpret_cast<const char *>(this));
  669|      3|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E17update_generationEv:
 1304|      2|  void update_generation() {
 1305|      2|    btree_iterator_generation_info::update_generation(node_);
 1306|      2|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16internal_emplaceIJS8_EEENS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSJ_EESM_DpOT_:
 2819|      1|    -> iterator {
 2820|      1|  if (iter.node_->is_internal()) {
  ------------------
  |  Branch (2820:7): [True: 0, False: 1]
  ------------------
 2821|       |    // We can't insert on an internal node. Instead, we'll insert after the
 2822|       |    // previous value which is guaranteed to be on a leaf node.
 2823|      0|    --iter;
 2824|      0|    ++iter.position_;
 2825|      0|  }
 2826|      1|  const field_type max_count = iter.node_->max_count();
 2827|      1|  allocator_type *alloc = mutable_allocator();
 2828|       |
 2829|      1|  const auto transfer_and_delete = [&](node_type *old_node,
 2830|      1|                                       node_type *new_node) {
 2831|      1|    new_node->transfer_n(old_node->count(), new_node->start(),
 2832|      1|                         old_node->start(), old_node, alloc);
 2833|      1|    new_node->set_finish(old_node->finish());
 2834|      1|    old_node->set_finish(old_node->start());
 2835|      1|    new_node->set_generation(old_node->generation());
 2836|      1|    node_type::clear_and_delete(old_node, alloc);
 2837|      1|  };
 2838|      1|  const auto replace_leaf_root_node = [&](field_type new_node_size) {
 2839|      1|    assert(iter.node_ == root());
 2840|      1|    node_type *old_root = iter.node_;
 2841|      1|    node_type *new_root = iter.node_ = new_leaf_root_node(new_node_size);
 2842|      1|    transfer_and_delete(old_root, new_root);
 2843|      1|    mutable_root() = mutable_rightmost() = new_root;
 2844|      1|  };
 2845|       |
 2846|      1|  bool replaced_node = false;
 2847|      1|  if (iter.node_->count() == max_count) {
  ------------------
  |  Branch (2847:7): [True: 0, False: 1]
  ------------------
 2848|       |    // Make room in the leaf for the new item.
 2849|      0|    if (max_count < kNodeSlots) {
  ------------------
  |  Branch (2849:9): [True: 0, False: 0]
  ------------------
 2850|       |      // Insertion into the root where the root is smaller than the full node
 2851|       |      // size. Simply grow the size of the root node.
 2852|      0|      replace_leaf_root_node(static_cast<field_type>(
 2853|      0|          (std::min)(static_cast<int>(kNodeSlots), 2 * max_count)));
 2854|      0|      replaced_node = true;
 2855|      0|    } else {
 2856|      0|      rebalance_or_split(&iter);
 2857|      0|    }
 2858|      0|  }
 2859|      1|  (void)replaced_node;
 2860|       |#if defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
 2861|       |    defined(ABSL_HAVE_HWADDRESS_SANITIZER)
 2862|       |  if (!replaced_node) {
 2863|       |    assert(iter.node_->is_leaf());
 2864|       |    if (iter.node_->is_root()) {
 2865|       |      replace_leaf_root_node(max_count);
 2866|       |    } else {
 2867|       |      node_type *old_node = iter.node_;
 2868|       |      const bool was_rightmost = rightmost() == old_node;
 2869|       |      const bool was_leftmost = leftmost() == old_node;
 2870|       |      node_type *parent = old_node->parent();
 2871|       |      const field_type position = old_node->position();
 2872|       |      node_type *new_node = iter.node_ = new_leaf_node(position, parent);
 2873|       |      parent->set_child_noupdate_position(position, new_node);
 2874|       |      transfer_and_delete(old_node, new_node);
 2875|       |      if (was_rightmost) mutable_rightmost() = new_node;
 2876|       |      // The leftmost node is stored as the parent of the root node.
 2877|       |      if (was_leftmost) root()->set_parent(new_node);
 2878|       |    }
 2879|       |  }
 2880|       |#endif
 2881|      1|  iter.node_->emplace_value(static_cast<field_type>(iter.position_), alloc,
 2882|      1|                            std::forward<Args>(args)...);
 2883|       |  assert(
 2884|      1|      iter.node_->is_ordered_correctly(static_cast<field_type>(iter.position_),
 2885|      1|                                       original_key_compare(key_comp())) &&
 2886|      1|      "If this assert fails, then either (1) the comparator may violate "
 2887|      1|      "transitivity, i.e. comp(a,b) && comp(b,c) -> comp(a,c) (see "
 2888|      1|      "https://en.cppreference.com/w/cpp/named_req/Compare), or (2) a "
 2889|      1|      "key may have been mutated after it was inserted into the tree.");
 2890|      1|  ++size_;
 2891|      1|  iter.update_generation();
 2892|      1|  return iter;
 2893|      1|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11is_internalEv:
  688|      2|  bool is_internal() const { return !is_leaf(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE7is_rootEv:
  722|      1|  bool is_root() const { return parent()->is_leaf(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9max_countEv:
  708|      2|  field_type max_count() const {
  709|       |    // Internal nodes have max_count==kInternalNodeMaxCount.
  710|       |    // Leaf nodes have max_count in [1, kNodeSlots].
  711|      2|    const field_type max_count = GetField<2>()[3];
  712|      2|    return max_count == field_type{kInternalNodeMaxCount}
  ------------------
  |  Branch (712:12): [True: 0, False: 2]
  ------------------
  713|      2|               ? field_type{kNodeSlots}
  714|      2|               : max_count;
  715|      2|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5countEv:
  704|      2|  field_type count() const {
  705|       |    assert(finish() >= start());
  706|      2|    return finish() - start();
  707|      2|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15next_generationEv:
  747|      2|  void next_generation() {
  748|      2|    if (BtreeGenerationsEnabled()) ++*get_root_generation();
  ------------------
  |  Branch (748:9): [Folded, False: 2]
  ------------------
  749|      2|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16clear_and_deleteEPSE_PSC_:
 2008|      1|void btree_node<P>::clear_and_delete(btree_node *node, allocator_type *alloc) {
 2009|      1|  if (node->is_leaf()) {
  ------------------
  |  Branch (2009:7): [True: 1, False: 0]
  ------------------
 2010|      1|    node->value_destroy_n(node->start(), node->count(), alloc);
 2011|      1|    deallocate(LeafSize(node->max_count()), node, alloc);
 2012|      1|    return;
 2013|      1|  }
 2014|      0|  if (node->count() == 0) {
  ------------------
  |  Branch (2014:7): [True: 0, False: 0]
  ------------------
 2015|      0|    deallocate(InternalSize(), node, alloc);
 2016|      0|    return;
 2017|      0|  }
 2018|       |
 2019|       |  // The parent of the root of the subtree we are deleting.
 2020|      0|  btree_node *delete_root_parent = node->parent();
 2021|       |
 2022|       |  // Navigate to the leftmost leaf under node, and then delete upwards.
 2023|      0|  while (node->is_internal()) node = node->start_child();
  ------------------
  |  Branch (2023:10): [True: 0, False: 0]
  ------------------
 2024|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2025|       |  // When generations are enabled, we delete the leftmost leaf last in case it's
 2026|       |  // the parent of the root and we need to check whether it's a leaf before we
 2027|       |  // can update the root's generation.
 2028|       |  // TODO(ezb): if we change btree_node::is_root to check a bool inside the node
 2029|       |  // instead of checking whether the parent is a leaf, we can remove this logic.
 2030|       |  btree_node *leftmost_leaf = node;
 2031|       |#endif
 2032|       |  // Use `size_type` because `pos` needs to be able to hold `kNodeSlots+1`,
 2033|       |  // which isn't guaranteed to be a valid `field_type`.
 2034|      0|  size_type pos = node->position();
 2035|      0|  btree_node *parent = node->parent();
 2036|      0|  for (;;) {
 2037|       |    // In each iteration of the next loop, we delete one leaf node and go right.
 2038|      0|    assert(pos <= parent->finish());
 2039|      0|    do {
 2040|      0|      node = parent->child(static_cast<field_type>(pos));
 2041|      0|      if (node->is_internal()) {
  ------------------
  |  Branch (2041:11): [True: 0, False: 0]
  ------------------
 2042|       |        // Navigate to the leftmost leaf under node.
 2043|      0|        while (node->is_internal()) node = node->start_child();
  ------------------
  |  Branch (2043:16): [True: 0, False: 0]
  ------------------
 2044|      0|        pos = node->position();
 2045|      0|        parent = node->parent();
 2046|      0|      }
 2047|      0|      node->value_destroy_n(node->start(), node->count(), alloc);
 2048|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2049|       |      if (leftmost_leaf != node)
 2050|       |#endif
 2051|      0|        deallocate(LeafSize(node->max_count()), node, alloc);
 2052|      0|      ++pos;
 2053|      0|    } while (pos <= parent->finish());
  ------------------
  |  Branch (2053:14): [True: 0, False: 0]
  ------------------
 2054|       |
 2055|       |    // Once we've deleted all children of parent, delete parent and go up/right.
 2056|      0|    assert(pos > parent->finish());
 2057|      0|    do {
 2058|      0|      node = parent;
 2059|      0|      pos = node->position();
 2060|      0|      parent = node->parent();
 2061|      0|      node->value_destroy_n(node->start(), node->count(), alloc);
 2062|      0|      deallocate(InternalSize(), node, alloc);
 2063|      0|      if (parent == delete_root_parent) {
  ------------------
  |  Branch (2063:11): [True: 0, False: 0]
  ------------------
 2064|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2065|       |        deallocate(LeafSize(leftmost_leaf->max_count()), leftmost_leaf, alloc);
 2066|       |#endif
 2067|      0|        return;
 2068|      0|      }
 2069|      0|      ++pos;
 2070|      0|    } while (pos > parent->finish());
  ------------------
  |  Branch (2070:14): [True: 0, False: 0]
  ------------------
 2071|      0|  }
 2072|      0|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15value_destroy_nEhhPSC_:
  995|      1|                       allocator_type *alloc) {
  996|      1|    next_generation();
  997|      2|    for (slot_type *s = slot(i), *end = slot(i + n); s != end; ++s) {
  ------------------
  |  Branch (997:54): [True: 1, False: 1]
  ------------------
  998|      1|      params_type::destroy(alloc, s);
  999|      1|      absl::container_internal::SanitizerPoisonObject(s);
 1000|      1|    }
 1001|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10deallocateEmPSE_PSC_:
  974|      1|                         allocator_type *alloc) {
  975|      1|    absl::container_internal::SanitizerUnpoisonMemoryRegion(node, size);
  976|      1|    absl::container_internal::Deallocate<Alignment()>(alloc, node, size);
  977|      1|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4rootEv:
 1659|      2|  node_type *root() { return root_; }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9rightmostEv:
 1662|      2|  node_type *rightmost() { return rightmost_.template get<2>(); }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13emplace_valueIJS8_EEEvhPSC_DpOT_:
 1807|      1|                                         Args &&...args) {
 1808|      1|  assert(i >= start());
 1809|      1|  assert(i <= finish());
 1810|       |  // Shift old values to create space for new value and then construct it in
 1811|       |  // place.
 1812|      1|  if (i < finish()) {
  ------------------
  |  Branch (1812:7): [True: 0, False: 1]
  ------------------
 1813|      0|    transfer_n_backward(finish() - i, /*dest_i=*/i + 1, /*src_i=*/i, this,
 1814|      0|                        alloc);
 1815|      0|  }
 1816|      1|  value_init(static_cast<field_type>(i), alloc, std::forward<Args>(args)...);
 1817|      1|  set_finish(finish() + 1);
 1818|       |
 1819|      1|  if (is_internal() && finish() > i + 1) {
  ------------------
  |  Branch (1819:7): [True: 0, False: 1]
  |  Branch (1819:24): [True: 0, False: 0]
  ------------------
 1820|      0|    for (field_type j = finish(); j > i + 1; --j) {
  ------------------
  |  Branch (1820:35): [True: 0, False: 0]
  ------------------
 1821|      0|      set_child(j, child(j - 1));
 1822|      0|    }
 1823|      0|    clear_child(i + 1);
 1824|      0|  }
 1825|      1|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10value_initIJS8_EEEvhPSC_DpOT_:
  984|      1|  void value_init(const field_type i, allocator_type *alloc, Args &&...args) {
  985|      1|    next_generation();
  986|      1|    absl::container_internal::SanitizerUnpoisonObject(slot(i));
  987|      1|    params_type::construct(alloc, slot(i), std::forward<Args>(args)...);
  988|      1|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11upper_boundIS8_EENS1_14btree_iteratorIKNS1_10btree_nodeISD_EERKS8_PSK_EERKT_:
 1472|     44|  const_iterator upper_bound(const K &key) const {
 1473|     44|    return internal_end(internal_upper_bound(key));
 1474|     44|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12internal_endENS1_14btree_iteratorIKNS1_10btree_nodeISD_EERKS8_PSJ_EE:
 1730|     44|  const_iterator internal_end(const_iterator iter) const {
 1731|     44|    return iter.node_ != nullptr ? iter : end();
  ------------------
  |  Branch (1731:12): [True: 29, False: 15]
  ------------------
 1732|     44|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE3endEv:
 1439|     15|  const_iterator end() const {
 1440|     15|    return const_iterator(rightmost(), rightmost()->finish());
 1441|     15|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9rightmostEv:
 1663|     30|  const node_type *rightmost() const { return rightmost_.template get<2>(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6finishEv:
  701|    839|  field_type finish() const { return GetField<2>()[2]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm2EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|  1.47k|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|  1.47k|    return InternalLayout().template Pointer<N>(
  668|  1.47k|        reinterpret_cast<const char *>(this));
  669|  1.47k|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE14InternalLayoutEv:
  640|  2.64k|  constexpr static layout_type InternalLayout() {
  641|  2.64k|    return Layout(kNodeSlots, kNodeSlots + 1);
  642|  2.64k|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6LayoutEmm:
  627|  2.67k|                                      const size_type child_count) {
  628|  2.67k|    return layout_type(
  629|  2.67k|        /*parent*/ 1,
  630|  2.67k|        /*generation*/ BtreeGenerationsEnabled() ? 1 : 0,
  ------------------
  |  Branch (630:24): [Folded, False: 2.67k]
  ------------------
  631|  2.67k|        /*position, start, finish, max_count*/ 4,
  632|  2.67k|        /*slots*/ slot_count,
  633|  2.67k|        /*children*/ child_count);
  634|  2.67k|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EC2EPSG_i:
 1144|     59|      : btree_iterator_generation_info(n != nullptr ? n->generation()
  ------------------
  |  Branch (1144:40): [True: 59, False: 0]
  ------------------
 1145|     59|                                                    : ~uint32_t{}),
 1146|     59|        node_(n),
 1147|     59|        position_(p) {}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10generationEv:
  738|    249|  uint32_t generation() const {
  739|    249|    return BtreeGenerationsEnabled() ? *get_root_generation() : 0;
  ------------------
  |  Branch (739:12): [Folded, False: 249]
  ------------------
  740|    249|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE20internal_upper_boundIS8_EENS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSJ_EERKT_:
 2948|     44|auto btree<P>::internal_upper_bound(const K &key) const -> iterator {
 2949|     44|  iterator iter(const_cast<node_type *>(root()));
 2950|     70|  for (;;) {
 2951|     70|    iter.position_ = static_cast<int>(iter.node_->upper_bound(key, key_comp()));
 2952|     70|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2952:9): [True: 44, False: 26]
  ------------------
 2953|     44|      break;
 2954|     44|    }
 2955|     26|    iter.node_ = iter.node_->child(static_cast<field_type>(iter.position_));
 2956|     26|  }
 2957|     44|  return internal_last(iter);
 2958|     44|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4rootEv:
 1660|     95|  const node_type *root() const { return root_; }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EC2EPSF_:
 1142|     94|  explicit btree_iterator(Node *n) : btree_iterator(n, n->start()) {}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5startEv:
  694|    569|  field_type start() const {
  695|       |    // TODO(ezb): when floating storage is implemented, return GetField<2>()[1];
  696|       |    assert(GetField<2>()[1] == 0);
  697|    569|    return 0;
  698|    569|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EC2EPSF_i:
 1144|    181|      : btree_iterator_generation_info(n != nullptr ? n->generation()
  ------------------
  |  Branch (1144:40): [True: 181, False: 0]
  ------------------
 1145|    181|                                                    : ~uint32_t{}),
 1146|    181|        node_(n),
 1147|    181|        position_(p) {}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11upper_boundIS8_EEmRKT_RKNS1_19key_compare_adapterIS9_S8_E15checked_compareE:
  787|     70|  size_type upper_bound(const K &k, const key_compare &comp) const {
  788|     70|    auto upper_compare = upper_bound_adapter<key_compare>(comp);
  789|     70|    return use_linear_search::value ? linear_search(k, upper_compare).value
  ------------------
  |  Branch (789:12): [Folded, False: 70]
  ------------------
  790|     70|                                    : binary_search(k, upper_compare).value;
  791|     70|  }
_ZN4absl12lts_2024011618container_internal19upper_bound_adapterINS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS7_11SymbolEntryEE15checked_compareEEC2ERKSB_:
  451|     70|  explicit upper_bound_adapter(const Compare &c) : comp(c) {}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13binary_searchIS8_NS1_19upper_bound_adapterINS1_19key_compare_adapterIS9_S8_E15checked_compareEEEEENS1_12SearchResultImXsr23btree_is_key_compare_toIT0_S8_EE5valueEEERKT_RKSM_:
  802|     70|  binary_search(const K &k, const Compare &comp) const {
  803|     70|    return binary_search_impl(k, start(), finish(), comp,
  804|     70|                              btree_is_key_compare_to<Compare, key_type>());
  805|     70|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18binary_search_implIS8_NS1_19upper_bound_adapterINS1_19key_compare_adapterIS9_S8_E15checked_compareEEEEENS1_12SearchResultImLb0EEERKT_mmRKT0_NSA_17integral_constantIbLb0EEE:
  845|     70|      std::false_type /* IsCompareTo */) const {
  846|    212|    while (s != e) {
  ------------------
  |  Branch (846:12): [True: 142, False: 70]
  ------------------
  847|    142|      const size_type mid = (s + e) >> 1;
  848|    142|      if (comp(key(mid), k)) {
  ------------------
  |  Branch (848:11): [True: 89, False: 53]
  ------------------
  849|     89|        s = mid + 1;
  850|     89|      } else {
  851|     53|        e = mid;
  852|     53|      }
  853|    142|    }
  854|     70|    return SearchResult<size_type, false>{s};
  855|     70|  }
_ZNK4absl12lts_2024011618container_internal19upper_bound_adapterINS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS7_11SymbolEntryEE15checked_compareEEclIS9_S9_EEbRKT_RKT0_:
  453|    142|  bool operator()(const K1 &a, const K2 &b) const {
  454|       |    // Returns true when a is not greater than b.
  455|    142|    return !compare_internal::compare_result_as_less_than(comp(b, a));
  456|    142|  }
_ZNK4absl12lts_2024011618container_internal19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS6_11SymbolEntryEE15checked_compareclIS8_S8_TnNSt3__19enable_ifIXsr3std7is_sameIbNSC_9result_ofIFKS7_RKT_RKT0_EE4typeEEE5valueEiE4typeELi0EEEbSI_SL_:
  236|    226|    bool operator()(const T &lhs, const U &rhs) const {
  237|       |      // NOTE: if any of these assertions fail, then the comparator does not
  238|       |      // establish a strict-weak-ordering (see
  239|       |      // https://en.cppreference.com/w/cpp/named_req/Compare).
  240|    226|      assert(is_self_equivalent(lhs));
  241|    226|      assert(is_self_equivalent(rhs));
  242|    226|      const bool lhs_comp_rhs = comp()(lhs, rhs);
  243|       |      assert(!lhs_comp_rhs || !comp()(rhs, lhs));
  244|    226|      return lhs_comp_rhs;
  245|    226|    }
_ZNK4absl12lts_2024011618container_internal20checked_compare_baseIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareELb1EE4compEv:
  175|    226|  const Compare &comp() const { return *this; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE3keyEm:
  752|    226|  const key_type &key(size_type i) const { return params_type::key(slot(i)); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4slotEm:
  675|    296|  const slot_type *slot(size_type i) const { return &GetField<3>()[i]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm3EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|    296|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|    296|    return InternalLayout().template Pointer<N>(
  668|    296|        reinterpret_cast<const char *>(this));
  669|    296|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8key_compEv:
 1565|    197|  const key_compare &key_comp() const noexcept {
 1566|    197|    return rightmost_.template get<0>();
 1567|    197|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE7is_leafEv:
  685|    465|  bool is_leaf() const { return GetField<2>()[3] != kInternalNodeMaxCount; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5childEh:
  759|     61|  btree_node *child(field_type i) const { return GetField<4>()[i]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm4EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|     61|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|     61|    return InternalLayout().template Pointer<N>(
  668|     61|        reinterpret_cast<const char *>(this));
  669|     61|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13internal_lastINS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSJ_EEEET_SN_:
 2802|     51|inline IterType btree<P>::internal_last(IterType iter) {
 2803|     51|  assert(iter.node_ != nullptr);
 2804|     59|  while (iter.position_ == iter.node_->finish()) {
  ------------------
  |  Branch (2804:10): [True: 26, False: 33]
  ------------------
 2805|     26|    iter.position_ = iter.node_->position();
 2806|     26|    iter.node_ = iter.node_->parent();
 2807|     26|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2807:9): [True: 18, False: 8]
  ------------------
 2808|     18|      iter.node_ = nullptr;
 2809|     18|      break;
 2810|     18|    }
 2811|     26|  }
 2812|     51|  iter.update_generation();
 2813|     51|  return iter;
 2814|     51|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8positionEv:
  691|    110|  field_type position() const { return GetField<2>()[0]; }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE6parentEv:
  718|    208|  btree_node *parent() const { return *GetField<0>(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm0EEEPKNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  665|    208|  inline const typename layout_type::template ElementType<N> *GetField() const {
  666|       |    assert(N < 4 || is_internal());
  667|    208|    return InternalLayout().template Pointer<N>(
  668|    208|        reinterpret_cast<const char *>(this));
  669|    208|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E17update_generationEv:
 1304|     95|  void update_generation() {
 1305|     95|    btree_iterator_generation_info::update_generation(node_);
 1306|     95|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EC2ISF_SI_SJ_TnNSB_9enable_ifIXaasr3std7is_sameINS2_IT_T0_T1_EENS2_ISF_SI_SJ_EEEE5valueL_ZNSB_17integral_constantIbLb1EE5valueEEEiE4typeELi0EEESQ_:
 1158|    283|      : btree_iterator_generation_info(other),
 1159|    283|        node_(other.node_),
 1160|    283|        position_(other.position_) {}
_ZNK4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EneERKSK_:
 1171|     44|  bool operator!=(const const_iterator &other) const {
 1172|     44|    return !Equals(other);
 1173|     44|  }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_E6EqualsESK_:
 1248|    129|  bool Equals(const const_iterator other) const {
 1249|    129|    ABSL_HARDENING_ASSERT(((node_ == nullptr && other.node_ == nullptr) ||
  ------------------
  |  |  128|    129|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|    129|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 129]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1250|    129|                           (node_ != nullptr && other.node_ != nullptr)) &&
 1251|    129|                          "Comparing default-constructed iterator with "
 1252|    129|                          "non-default-constructed iterator.");
 1253|       |    // Note: we use assert instead of ABSL_HARDENING_ASSERT here because this
 1254|       |    // changes the complexity of Equals from O(1) to O(log(N) + log(M)) where
 1255|       |    // N/M are sizes of the containers containing node_/other.node_.
 1256|    129|    assert(AreNodesFromSameContainer(node_, other.node_) &&
 1257|    129|           "Comparing iterators from different containers.");
 1258|    129|    assert_valid_generation(node_);
 1259|    129|    other.assert_valid_generation(other.node_);
 1260|    129|    return node_ == other.node_ && position_ == other.position_;
  ------------------
  |  Branch (1260:12): [True: 88, False: 41]
  |  Branch (1260:36): [True: 22, False: 66]
  ------------------
 1261|    129|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5beginEv:
 1437|     44|  const_iterator begin() const { return const_iterator(leftmost()); }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8leftmostEv:
 1673|     44|  const node_type *leftmost() const { return root()->parent(); }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EC2EPSG_:
 1142|     44|  explicit btree_iterator(Node *n) : btree_iterator(n, n->start()) {}
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EmmEv:
 1202|     37|  btree_iterator &operator--() {
 1203|     37|    decrement();
 1204|     37|    return *this;
 1205|     37|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_E9decrementEv:
 1288|     37|  void decrement() {
 1289|     37|    assert_valid_generation(node_);
 1290|     37|    if (node_->is_leaf() && --position_ >= node_->start()) {
  ------------------
  |  Branch (1290:9): [True: 36, False: 1]
  |  Branch (1290:29): [True: 34, False: 2]
  ------------------
 1291|     34|      return;
 1292|     34|    }
 1293|      3|    decrement_slow();
 1294|      3|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_E14decrement_slowEv:
 2159|      3|void btree_iterator<N, R, P>::decrement_slow() {
 2160|      3|  if (node_->is_leaf()) {
  ------------------
  |  Branch (2160:7): [True: 2, False: 1]
  ------------------
 2161|      2|    assert(position_ <= -1);
 2162|      2|    btree_iterator save(*this);
 2163|      4|    while (position_ < node_->start() && !node_->is_root()) {
  ------------------
  |  Branch (2163:12): [True: 2, False: 2]
  |  Branch (2163:42): [True: 2, False: 0]
  ------------------
 2164|      2|      assert(node_->parent()->child(node_->position()) == node_);
 2165|      2|      position_ = node_->position() - 1;
 2166|      2|      node_ = node_->parent();
 2167|      2|    }
 2168|       |    // TODO(ezb): assert we aren't decrementing begin() instead of handling.
 2169|      2|    if (position_ < node_->start()) {
  ------------------
  |  Branch (2169:9): [True: 0, False: 2]
  ------------------
 2170|      0|      *this = save;
 2171|      0|    }
 2172|      2|  } else {
 2173|      1|    assert(position_ >= node_->start());
 2174|      1|    node_ = node_->child(static_cast<field_type>(position_));
 2175|      1|    while (node_->is_internal()) {
  ------------------
  |  Branch (2175:12): [True: 0, False: 1]
  ------------------
 2176|      0|      node_ = node_->child(node_->finish());
 2177|      0|    }
 2178|      1|    position_ = node_->finish() - 1;
 2179|      1|  }
 2180|      3|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE7is_rootEv:
  722|     32|  bool is_root() const { return parent()->is_leaf(); }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11is_internalEv:
  688|    126|  bool is_internal() const { return !is_leaf(); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE3endEv:
 1438|     87|  iterator end() { return iterator(rightmost(), rightmost()->finish()); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9rightmostEv:
 1662|    180|  node_type *rightmost() { return rightmost_.template get<2>(); }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EneERKNS2_ISF_SI_SJ_EE:
 1168|     85|  bool operator!=(const iterator &other) const {
 1169|     85|    return !Equals(other);
 1170|     85|  }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EptEv:
 1196|     70|  pointer operator->() const { return &operator*(); }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EdeEv:
 1186|     70|  reference operator*() const {
 1187|     70|    ABSL_HARDENING_ASSERT(node_ != nullptr);
  ------------------
  |  |  128|     70|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|     70|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 70]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1188|     70|    assert_valid_generation(node_);
 1189|     70|    ABSL_HARDENING_ASSERT(position_ >= node_->start());
  ------------------
  |  |  128|     70|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|     70|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 70]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1190|     70|    if (position_ >= node_->finish()) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 70]
  ------------------
 1191|      0|      ABSL_HARDENING_ASSERT(!IsEndIterator() && "Dereferencing end() iterator");
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1192|      0|      ABSL_HARDENING_ASSERT(position_ < node_->finish());
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1193|      0|    }
 1194|     70|    return node_->value(static_cast<field_type>(position_));
 1195|     70|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5valueEm:
  754|     70|  const_reference value(size_type i) const {
  755|     70|    return params_type::element(slot(i));
  756|     70|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EppEv:
 1198|     41|  btree_iterator &operator++() {
 1199|     41|    increment();
 1200|     41|    return *this;
 1201|     41|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_E9incrementEv:
 1279|     41|  void increment() {
 1280|     41|    assert_valid_generation(node_);
 1281|     41|    if (node_->is_leaf() && ++position_ < node_->finish()) {
  ------------------
  |  Branch (1281:9): [True: 39, False: 2]
  |  Branch (1281:29): [True: 26, False: 13]
  ------------------
 1282|     26|      return;
 1283|     26|    }
 1284|     15|    increment_slow();
 1285|     15|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_E14increment_slowEv:
 2135|     15|void btree_iterator<N, R, P>::increment_slow() {
 2136|     15|  if (node_->is_leaf()) {
  ------------------
  |  Branch (2136:7): [True: 13, False: 2]
  ------------------
 2137|     13|    assert(position_ >= node_->finish());
 2138|     13|    btree_iterator save(*this);
 2139|     21|    while (position_ == node_->finish() && !node_->is_root()) {
  ------------------
  |  Branch (2139:12): [True: 20, False: 1]
  |  Branch (2139:44): [True: 8, False: 12]
  ------------------
 2140|      8|      assert(node_->parent()->child(node_->position()) == node_);
 2141|      8|      position_ = node_->position();
 2142|      8|      node_ = node_->parent();
 2143|      8|    }
 2144|       |    // TODO(ezb): assert we aren't incrementing end() instead of handling.
 2145|     13|    if (position_ == node_->finish()) {
  ------------------
  |  Branch (2145:9): [True: 12, False: 1]
  ------------------
 2146|     12|      *this = save;
 2147|     12|    }
 2148|     13|  } else {
 2149|      2|    assert(position_ < node_->finish());
 2150|      2|    node_ = node_->child(static_cast<field_type>(position_ + 1));
 2151|      2|    while (node_->is_internal()) {
  ------------------
  |  Branch (2151:12): [True: 0, False: 2]
  ------------------
 2152|      0|      node_ = node_->start_child();
 2153|      0|    }
 2154|      2|    position_ = node_->start();
 2155|      2|  }
 2156|     15|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11start_childEv:
  760|      1|  btree_node *start_child() const { return child(start()); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18insert_hint_uniqueIS8_JRKS8_EEENSA_4pairINS1_14btree_iteratorINS1_10btree_nodeISD_EESH_PSG_EEbEESN_RKT_DpOT0_:
 2305|     44|    -> std::pair<iterator, bool> {
 2306|     44|  if (!empty()) {
  ------------------
  |  Branch (2306:7): [True: 41, False: 3]
  ------------------
 2307|     41|    if (position == end() || compare_keys(key, position.key())) {
  ------------------
  |  Branch (2307:9): [True: 12, False: 29]
  |  Branch (2307:9): [True: 41, False: 0]
  |  Branch (2307:30): [True: 29, False: 0]
  ------------------
 2308|     41|      if (position == begin() || compare_keys(std::prev(position).key(), key)) {
  ------------------
  |  Branch (2308:11): [True: 0, False: 41]
  |  Branch (2308:11): [True: 37, False: 4]
  |  Branch (2308:34): [True: 37, False: 4]
  ------------------
 2309|       |        // prev.key() < key < position.key()
 2310|     37|        return {internal_emplace(position, std::forward<Args>(args)...), true};
 2311|     37|      }
 2312|     41|    } else if (compare_keys(position.key(), key)) {
  ------------------
  |  Branch (2312:16): [True: 0, False: 0]
  ------------------
 2313|      0|      ++position;
 2314|      0|      if (position == end() || compare_keys(key, position.key())) {
  ------------------
  |  Branch (2314:11): [True: 0, False: 0]
  |  Branch (2314:11): [True: 0, False: 0]
  |  Branch (2314:32): [True: 0, False: 0]
  ------------------
 2315|       |        // {original `position`}.key() < key < {current `position`}.key()
 2316|      0|        return {internal_emplace(position, std::forward<Args>(args)...), true};
 2317|      0|      }
 2318|      0|    } else {
 2319|       |      // position.key() == key
 2320|      0|      return {position, false};
 2321|      0|    }
 2322|     41|  }
 2323|      7|  return insert_unique(key, std::forward<Args>(args)...);
 2324|     44|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5emptyEv:
 1583|     57|  bool empty() const { return size_ == 0; }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EeqERKSJ_:
 1162|     82|  bool operator==(const iterator &other) const {
 1163|     82|    return Equals(other);
 1164|     82|  }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E6EqualsENS2_IKSF_SH_SI_EE:
 1248|    154|  bool Equals(const const_iterator other) const {
 1249|    154|    ABSL_HARDENING_ASSERT(((node_ == nullptr && other.node_ == nullptr) ||
  ------------------
  |  |  128|    154|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|    154|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 154]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1250|    154|                           (node_ != nullptr && other.node_ != nullptr)) &&
 1251|    154|                          "Comparing default-constructed iterator with "
 1252|    154|                          "non-default-constructed iterator.");
 1253|       |    // Note: we use assert instead of ABSL_HARDENING_ASSERT here because this
 1254|       |    // changes the complexity of Equals from O(1) to O(log(N) + log(M)) where
 1255|       |    // N/M are sizes of the containers containing node_/other.node_.
 1256|    154|    assert(AreNodesFromSameContainer(node_, other.node_) &&
 1257|    154|           "Comparing iterators from different containers.");
 1258|    154|    assert_valid_generation(node_);
 1259|    154|    other.assert_valid_generation(other.node_);
 1260|    154|    return node_ == other.node_ && position_ == other.position_;
  ------------------
  |  Branch (1260:12): [True: 91, False: 63]
  |  Branch (1260:36): [True: 14, False: 77]
  ------------------
 1261|    154|  }
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12compare_keysIS8_S8_EEbRKT_RKT0_:
 1569|     74|  bool compare_keys(const K1 &a, const K2 &b) const {
 1570|     74|    return compare_internal::compare_result_as_less_than(key_comp()(a, b));
 1571|     74|  }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E3keyEv:
 1297|     74|  const key_type &key() const {
 1298|     74|    return node_->key(static_cast<size_type>(position_));
 1299|     74|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5beginEv:
 1436|     43|  iterator begin() { return iterator(leftmost()); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8leftmostEv:
 1672|     43|  node_type *leftmost() { return root()->parent(); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4rootEv:
 1659|     61|  node_type *root() { return root_; }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EmmEv:
 1202|     42|  btree_iterator &operator--() {
 1203|     42|    decrement();
 1204|     42|    return *this;
 1205|     42|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E9decrementEv:
 1288|     42|  void decrement() {
 1289|     42|    assert_valid_generation(node_);
 1290|     42|    if (node_->is_leaf() && --position_ >= node_->start()) {
  ------------------
  |  Branch (1290:9): [True: 40, False: 2]
  |  Branch (1290:29): [True: 38, False: 2]
  ------------------
 1291|     38|      return;
 1292|     38|    }
 1293|      4|    decrement_slow();
 1294|      4|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E14decrement_slowEv:
 2159|      4|void btree_iterator<N, R, P>::decrement_slow() {
 2160|      4|  if (node_->is_leaf()) {
  ------------------
  |  Branch (2160:7): [True: 2, False: 2]
  ------------------
 2161|      2|    assert(position_ <= -1);
 2162|      2|    btree_iterator save(*this);
 2163|      4|    while (position_ < node_->start() && !node_->is_root()) {
  ------------------
  |  Branch (2163:12): [True: 2, False: 2]
  |  Branch (2163:42): [True: 2, False: 0]
  ------------------
 2164|      2|      assert(node_->parent()->child(node_->position()) == node_);
 2165|      2|      position_ = node_->position() - 1;
 2166|      2|      node_ = node_->parent();
 2167|      2|    }
 2168|       |    // TODO(ezb): assert we aren't decrementing begin() instead of handling.
 2169|      2|    if (position_ < node_->start()) {
  ------------------
  |  Branch (2169:9): [True: 0, False: 2]
  ------------------
 2170|      0|      *this = save;
 2171|      0|    }
 2172|      2|  } else {
 2173|      2|    assert(position_ >= node_->start());
 2174|      2|    node_ = node_->child(static_cast<field_type>(position_));
 2175|      2|    while (node_->is_internal()) {
  ------------------
  |  Branch (2175:12): [True: 0, False: 2]
  ------------------
 2176|      0|      node_ = node_->child(node_->finish());
 2177|      0|    }
 2178|      2|    position_ = node_->finish() - 1;
 2179|      2|  }
 2180|      4|}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16internal_emplaceIJRKS8_EEENS1_14btree_iteratorINS1_10btree_nodeISD_EESH_PSG_EESM_DpOT_:
 2819|     44|    -> iterator {
 2820|     44|  if (iter.node_->is_internal()) {
  ------------------
  |  Branch (2820:7): [True: 1, False: 43]
  ------------------
 2821|       |    // We can't insert on an internal node. Instead, we'll insert after the
 2822|       |    // previous value which is guaranteed to be on a leaf node.
 2823|      1|    --iter;
 2824|      1|    ++iter.position_;
 2825|      1|  }
 2826|     44|  const field_type max_count = iter.node_->max_count();
 2827|     44|  allocator_type *alloc = mutable_allocator();
 2828|       |
 2829|     44|  const auto transfer_and_delete = [&](node_type *old_node,
 2830|     44|                                       node_type *new_node) {
 2831|     44|    new_node->transfer_n(old_node->count(), new_node->start(),
 2832|     44|                         old_node->start(), old_node, alloc);
 2833|     44|    new_node->set_finish(old_node->finish());
 2834|     44|    old_node->set_finish(old_node->start());
 2835|     44|    new_node->set_generation(old_node->generation());
 2836|     44|    node_type::clear_and_delete(old_node, alloc);
 2837|     44|  };
 2838|     44|  const auto replace_leaf_root_node = [&](field_type new_node_size) {
 2839|     44|    assert(iter.node_ == root());
 2840|     44|    node_type *old_root = iter.node_;
 2841|     44|    node_type *new_root = iter.node_ = new_leaf_root_node(new_node_size);
 2842|     44|    transfer_and_delete(old_root, new_root);
 2843|     44|    mutable_root() = mutable_rightmost() = new_root;
 2844|     44|  };
 2845|       |
 2846|     44|  bool replaced_node = false;
 2847|     44|  if (iter.node_->count() == max_count) {
  ------------------
  |  Branch (2847:7): [True: 21, False: 23]
  ------------------
 2848|       |    // Make room in the leaf for the new item.
 2849|     21|    if (max_count < kNodeSlots) {
  ------------------
  |  Branch (2849:9): [True: 7, False: 14]
  ------------------
 2850|       |      // Insertion into the root where the root is smaller than the full node
 2851|       |      // size. Simply grow the size of the root node.
 2852|      7|      replace_leaf_root_node(static_cast<field_type>(
 2853|      7|          (std::min)(static_cast<int>(kNodeSlots), 2 * max_count)));
 2854|      7|      replaced_node = true;
 2855|     14|    } else {
 2856|     14|      rebalance_or_split(&iter);
 2857|     14|    }
 2858|     21|  }
 2859|     44|  (void)replaced_node;
 2860|       |#if defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
 2861|       |    defined(ABSL_HAVE_HWADDRESS_SANITIZER)
 2862|       |  if (!replaced_node) {
 2863|       |    assert(iter.node_->is_leaf());
 2864|       |    if (iter.node_->is_root()) {
 2865|       |      replace_leaf_root_node(max_count);
 2866|       |    } else {
 2867|       |      node_type *old_node = iter.node_;
 2868|       |      const bool was_rightmost = rightmost() == old_node;
 2869|       |      const bool was_leftmost = leftmost() == old_node;
 2870|       |      node_type *parent = old_node->parent();
 2871|       |      const field_type position = old_node->position();
 2872|       |      node_type *new_node = iter.node_ = new_leaf_node(position, parent);
 2873|       |      parent->set_child_noupdate_position(position, new_node);
 2874|       |      transfer_and_delete(old_node, new_node);
 2875|       |      if (was_rightmost) mutable_rightmost() = new_node;
 2876|       |      // The leftmost node is stored as the parent of the root node.
 2877|       |      if (was_leftmost) root()->set_parent(new_node);
 2878|       |    }
 2879|       |  }
 2880|       |#endif
 2881|     44|  iter.node_->emplace_value(static_cast<field_type>(iter.position_), alloc,
 2882|     44|                            std::forward<Args>(args)...);
 2883|       |  assert(
 2884|     44|      iter.node_->is_ordered_correctly(static_cast<field_type>(iter.position_),
 2885|     44|                                       original_key_compare(key_comp())) &&
 2886|     44|      "If this assert fails, then either (1) the comparator may violate "
 2887|     44|      "transitivity, i.e. comp(a,b) && comp(b,c) -> comp(a,c) (see "
 2888|     44|      "https://en.cppreference.com/w/cpp/named_req/Compare), or (2) a "
 2889|     44|      "key may have been mutated after it was inserted into the tree.");
 2890|     44|  ++size_;
 2891|     44|  iter.update_generation();
 2892|     44|  return iter;
 2893|     44|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9max_countEv:
  708|     58|  field_type max_count() const {
  709|       |    // Internal nodes have max_count==kInternalNodeMaxCount.
  710|       |    // Leaf nodes have max_count in [1, kNodeSlots].
  711|     58|    const field_type max_count = GetField<2>()[3];
  712|     58|    return max_count == field_type{kInternalNodeMaxCount}
  ------------------
  |  Branch (712:12): [True: 0, False: 58]
  ------------------
  713|     58|               ? field_type{kNodeSlots}
  714|     58|               : max_count;
  715|     58|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE17mutable_allocatorEv:
 1676|     78|  allocator_type *mutable_allocator() noexcept {
 1677|     78|    return &rightmost_.template get<1>();
 1678|     78|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5countEv:
  704|    122|  field_type count() const {
  705|       |    assert(finish() >= start());
  706|    122|    return finish() - start();
  707|    122|  }
_ZZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16internal_emplaceIJRKS8_EEENS1_14btree_iteratorINS1_10btree_nodeISD_EESH_PSG_EESM_DpOT_ENKUlhE_clEh:
 2838|      7|  const auto replace_leaf_root_node = [&](field_type new_node_size) {
 2839|       |    assert(iter.node_ == root());
 2840|      7|    node_type *old_root = iter.node_;
 2841|      7|    node_type *new_root = iter.node_ = new_leaf_root_node(new_node_size);
 2842|      7|    transfer_and_delete(old_root, new_root);
 2843|      7|    mutable_root() = mutable_rightmost() = new_root;
 2844|      7|  };
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18new_leaf_root_nodeEh:
 1702|     10|  node_type *new_leaf_root_node(field_type max_count) {
 1703|     10|    node_type *n = allocate(node_type::LeafSize(max_count));
 1704|     10|    n->init_leaf(/*position=*/0, max_count, /*parent=*/n);
 1705|     10|    return n;
 1706|     10|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8allocateEm:
 1685|     18|  node_type *allocate(size_type size) {
 1686|     18|    return reinterpret_cast<node_type *>(
 1687|     18|        absl::container_internal::Allocate<node_type::Alignment()>(
 1688|     18|            mutable_allocator(), size));
 1689|     18|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8LeafSizeEm:
  643|     30|  constexpr static size_type LeafSize(const size_type slot_count = kNodeSlots) {
  644|     30|    return LeafLayout(slot_count).AllocSize();
  645|     30|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10LeafLayoutEm:
  637|     30|      const size_type slot_count = kNodeSlots) {
  638|     30|    return Layout(slot_count, 0);
  639|     30|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9init_leafEhhPSE_:
  954|     18|                 btree_node *parent) {
  955|     18|    set_generation(0);
  956|     18|    set_parent(parent);
  957|     18|    set_position(position);
  958|     18|    set_start(0);
  959|     18|    set_finish(0);
  960|     18|    set_max_count(max_count);
  961|     18|    absl::container_internal::SanitizerPoisonMemoryRegion(
  962|     18|        start_slot(), max_count * sizeof(slot_type));
  963|     18|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE14set_generationEj:
  743|     27|  void set_generation(uint32_t generation) {
  744|     27|    if (BtreeGenerationsEnabled()) GetField<1>()[0] = generation;
  ------------------
  |  Branch (744:9): [Folded, False: 27]
  ------------------
  745|     27|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10set_parentEPSE_:
  670|     20|  void set_parent(btree_node *p) { *GetField<0>() = p; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm0EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|     20|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|     20|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|     20|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12set_positionEh:
  676|     24|  void set_position(field_type v) { GetField<2>()[0] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm2EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|    178|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|    178|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|    178|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9set_startEh:
  677|     18|  void set_start(field_type v) { GetField<2>()[1] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10set_finishEh:
  678|    110|  void set_finish(field_type v) { GetField<2>()[2] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13set_max_countEh:
  680|     20|  void set_max_count(field_type v) { GetField<2>()[3] = v; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10start_slotEv:
  673|     18|  slot_type *start_slot() { return slot(start()); }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4slotEm:
  672|    380|  slot_type *slot(size_type i) { return &GetField<3>()[i]; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm3EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|    380|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|    380|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|    380|  }
_ZZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16internal_emplaceIJRKS8_EEENS1_14btree_iteratorINS1_10btree_nodeISD_EESH_PSG_EESM_DpOT_ENKUlPSK_SQ_E_clESQ_SQ_:
 2830|      7|                                       node_type *new_node) {
 2831|      7|    new_node->transfer_n(old_node->count(), new_node->start(),
 2832|      7|                         old_node->start(), old_node, alloc);
 2833|      7|    new_node->set_finish(old_node->finish());
 2834|      7|    old_node->set_finish(old_node->start());
 2835|      7|    new_node->set_generation(old_node->generation());
 2836|      7|    node_type::clear_and_delete(old_node, alloc);
 2837|      7|  };
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10transfer_nEmmmPSE_PSC_:
 1020|     29|                  allocator_type *alloc) {
 1021|     29|    next_generation();
 1022|     29|    for (slot_type *src = src_node->slot(src_i), *end = src + n,
 1023|     29|                   *dest = slot(dest_i);
 1024|    110|         src != end; ++src, ++dest) {
  ------------------
  |  Branch (1024:10): [True: 81, False: 29]
  ------------------
 1025|     81|      transfer(dest, src, alloc);
 1026|     81|    }
 1027|     29|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15next_generationEv:
  747|    144|  void next_generation() {
  748|    144|    if (BtreeGenerationsEnabled()) ++*get_root_generation();
  ------------------
  |  Branch (748:9): [Folded, False: 144]
  ------------------
  749|    144|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8transferEPS8_SF_PSC_:
 1003|    160|  static void transfer(slot_type *dest, slot_type *src, allocator_type *alloc) {
 1004|    160|    absl::container_internal::SanitizerUnpoisonObject(dest);
 1005|    160|    params_type::transfer(alloc, dest, src);
 1006|    160|    absl::container_internal::SanitizerPoisonObject(src);
 1007|    160|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE16clear_and_deleteEPSE_PSC_:
 2008|      9|void btree_node<P>::clear_and_delete(btree_node *node, allocator_type *alloc) {
 2009|      9|  if (node->is_leaf()) {
  ------------------
  |  Branch (2009:7): [True: 8, False: 1]
  ------------------
 2010|      8|    node->value_destroy_n(node->start(), node->count(), alloc);
 2011|      8|    deallocate(LeafSize(node->max_count()), node, alloc);
 2012|      8|    return;
 2013|      8|  }
 2014|      1|  if (node->count() == 0) {
  ------------------
  |  Branch (2014:7): [True: 0, False: 1]
  ------------------
 2015|      0|    deallocate(InternalSize(), node, alloc);
 2016|      0|    return;
 2017|      0|  }
 2018|       |
 2019|       |  // The parent of the root of the subtree we are deleting.
 2020|      1|  btree_node *delete_root_parent = node->parent();
 2021|       |
 2022|       |  // Navigate to the leftmost leaf under node, and then delete upwards.
 2023|      2|  while (node->is_internal()) node = node->start_child();
  ------------------
  |  Branch (2023:10): [True: 1, False: 1]
  ------------------
 2024|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2025|       |  // When generations are enabled, we delete the leftmost leaf last in case it's
 2026|       |  // the parent of the root and we need to check whether it's a leaf before we
 2027|       |  // can update the root's generation.
 2028|       |  // TODO(ezb): if we change btree_node::is_root to check a bool inside the node
 2029|       |  // instead of checking whether the parent is a leaf, we can remove this logic.
 2030|       |  btree_node *leftmost_leaf = node;
 2031|       |#endif
 2032|       |  // Use `size_type` because `pos` needs to be able to hold `kNodeSlots+1`,
 2033|       |  // which isn't guaranteed to be a valid `field_type`.
 2034|      1|  size_type pos = node->position();
 2035|      1|  btree_node *parent = node->parent();
 2036|      1|  for (;;) {
 2037|       |    // In each iteration of the next loop, we delete one leaf node and go right.
 2038|      1|    assert(pos <= parent->finish());
 2039|      6|    do {
 2040|      6|      node = parent->child(static_cast<field_type>(pos));
 2041|      6|      if (node->is_internal()) {
  ------------------
  |  Branch (2041:11): [True: 0, False: 6]
  ------------------
 2042|       |        // Navigate to the leftmost leaf under node.
 2043|      0|        while (node->is_internal()) node = node->start_child();
  ------------------
  |  Branch (2043:16): [True: 0, False: 0]
  ------------------
 2044|      0|        pos = node->position();
 2045|      0|        parent = node->parent();
 2046|      0|      }
 2047|      6|      node->value_destroy_n(node->start(), node->count(), alloc);
 2048|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2049|       |      if (leftmost_leaf != node)
 2050|       |#endif
 2051|      6|        deallocate(LeafSize(node->max_count()), node, alloc);
 2052|      6|      ++pos;
 2053|      6|    } while (pos <= parent->finish());
  ------------------
  |  Branch (2053:14): [True: 5, False: 1]
  ------------------
 2054|       |
 2055|       |    // Once we've deleted all children of parent, delete parent and go up/right.
 2056|      1|    assert(pos > parent->finish());
 2057|      1|    do {
 2058|      1|      node = parent;
 2059|      1|      pos = node->position();
 2060|      1|      parent = node->parent();
 2061|      1|      node->value_destroy_n(node->start(), node->count(), alloc);
 2062|      1|      deallocate(InternalSize(), node, alloc);
 2063|      1|      if (parent == delete_root_parent) {
  ------------------
  |  Branch (2063:11): [True: 1, False: 0]
  ------------------
 2064|       |#ifdef ABSL_BTREE_ENABLE_GENERATIONS
 2065|       |        deallocate(LeafSize(leftmost_leaf->max_count()), leftmost_leaf, alloc);
 2066|       |#endif
 2067|      1|        return;
 2068|      1|      }
 2069|      0|      ++pos;
 2070|      0|    } while (pos > parent->finish());
  ------------------
  |  Branch (2070:14): [True: 0, False: 0]
  ------------------
 2071|      1|  }
 2072|      1|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15value_destroy_nEhhPSC_:
  995|     15|                       allocator_type *alloc) {
  996|     15|    next_generation();
  997|     50|    for (slot_type *s = slot(i), *end = slot(i + n); s != end; ++s) {
  ------------------
  |  Branch (997:54): [True: 35, False: 15]
  ------------------
  998|     35|      params_type::destroy(alloc, s);
  999|     35|      absl::container_internal::SanitizerPoisonObject(s);
 1000|     35|    }
 1001|     15|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10deallocateEmPSE_PSC_:
  974|     15|                         allocator_type *alloc) {
  975|     15|    absl::container_internal::SanitizerUnpoisonMemoryRegion(node, size);
  976|     15|    absl::container_internal::Deallocate<Alignment()>(alloc, node, size);
  977|     15|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12InternalSizeEv:
  646|      3|  constexpr static size_type InternalSize() {
  647|      3|    return InternalLayout().AllocSize();
  648|      3|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE17mutable_rightmostEv:
 1664|     16|  node_type *&mutable_rightmost() noexcept {
 1665|     16|    return rightmost_.template get<2>();
 1666|     16|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE12mutable_rootEv:
 1661|     14|  node_type *&mutable_root() noexcept { return root_; }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18rebalance_or_splitEPNS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSI_EE:
 2615|     14|void btree<P>::rebalance_or_split(iterator *iter) {
 2616|     14|  node_type *&node = iter->node_;
 2617|     14|  int &insert_position = iter->position_;
 2618|     14|  assert(node->count() == node->max_count());
 2619|     14|  assert(kNodeSlots == node->max_count());
 2620|       |
 2621|       |  // First try to make room on the node by rebalancing.
 2622|     14|  node_type *parent = node->parent();
 2623|     14|  if (node != root()) {
  ------------------
  |  Branch (2623:7): [True: 12, False: 2]
  ------------------
 2624|     12|    if (node->position() > parent->start()) {
  ------------------
  |  Branch (2624:9): [True: 12, False: 0]
  ------------------
 2625|       |      // Try rebalancing with our left sibling.
 2626|     12|      node_type *left = parent->child(node->position() - 1);
 2627|     12|      assert(left->max_count() == kNodeSlots);
 2628|     12|      if (left->count() < kNodeSlots) {
  ------------------
  |  Branch (2628:11): [True: 8, False: 4]
  ------------------
 2629|       |        // We bias rebalancing based on the position being inserted. If we're
 2630|       |        // inserting at the end of the right node then we bias rebalancing to
 2631|       |        // fill up the left node.
 2632|      8|        field_type to_move =
 2633|      8|            (kNodeSlots - left->count()) /
 2634|      8|            (1 + (static_cast<field_type>(insert_position) < kNodeSlots));
 2635|      8|        to_move = (std::max)(field_type{1}, to_move);
 2636|       |
 2637|      8|        if (static_cast<field_type>(insert_position) - to_move >=
  ------------------
  |  Branch (2637:13): [True: 7, False: 1]
  ------------------
 2638|      8|                node->start() ||
 2639|      8|            left->count() + to_move < kNodeSlots) {
  ------------------
  |  Branch (2639:13): [True: 1, False: 0]
  ------------------
 2640|      8|          left->rebalance_right_to_left(to_move, node, mutable_allocator());
 2641|       |
 2642|      8|          assert(node->max_count() - node->count() == to_move);
 2643|      8|          insert_position = static_cast<int>(
 2644|      8|              static_cast<field_type>(insert_position) - to_move);
 2645|      8|          if (insert_position < node->start()) {
  ------------------
  |  Branch (2645:15): [True: 1, False: 7]
  ------------------
 2646|      1|            insert_position = insert_position + left->count() + 1;
 2647|      1|            node = left;
 2648|      1|          }
 2649|       |
 2650|      8|          assert(node->count() < node->max_count());
 2651|      8|          return;
 2652|      8|        }
 2653|      8|      }
 2654|     12|    }
 2655|       |
 2656|      4|    if (node->position() < parent->finish()) {
  ------------------
  |  Branch (2656:9): [True: 2, False: 2]
  ------------------
 2657|       |      // Try rebalancing with our right sibling.
 2658|      2|      node_type *right = parent->child(node->position() + 1);
 2659|      2|      assert(right->max_count() == kNodeSlots);
 2660|      2|      if (right->count() < kNodeSlots) {
  ------------------
  |  Branch (2660:11): [True: 0, False: 2]
  ------------------
 2661|       |        // We bias rebalancing based on the position being inserted. If we're
 2662|       |        // inserting at the beginning of the left node then we bias rebalancing
 2663|       |        // to fill up the right node.
 2664|      0|        field_type to_move = (kNodeSlots - right->count()) /
 2665|      0|                             (1 + (insert_position > node->start()));
 2666|      0|        to_move = (std::max)(field_type{1}, to_move);
 2667|       |
 2668|      0|        if (static_cast<field_type>(insert_position) <=
  ------------------
  |  Branch (2668:13): [True: 0, False: 0]
  ------------------
 2669|      0|                node->finish() - to_move ||
 2670|      0|            right->count() + to_move < kNodeSlots) {
  ------------------
  |  Branch (2670:13): [True: 0, False: 0]
  ------------------
 2671|      0|          node->rebalance_left_to_right(to_move, right, mutable_allocator());
 2672|       |
 2673|      0|          if (insert_position > node->finish()) {
  ------------------
  |  Branch (2673:15): [True: 0, False: 0]
  ------------------
 2674|      0|            insert_position = insert_position - node->count() - 1;
 2675|      0|            node = right;
 2676|      0|          }
 2677|       |
 2678|      0|          assert(node->count() < node->max_count());
 2679|      0|          return;
 2680|      0|        }
 2681|      0|      }
 2682|      2|    }
 2683|       |
 2684|       |    // Rebalancing failed, make sure there is room on the parent node for a new
 2685|       |    // value.
 2686|      4|    assert(parent->max_count() == kNodeSlots);
 2687|      4|    if (parent->count() == kNodeSlots) {
  ------------------
  |  Branch (2687:9): [True: 0, False: 4]
  ------------------
 2688|      0|      iterator parent_iter(parent, node->position());
 2689|      0|      rebalance_or_split(&parent_iter);
 2690|      0|      parent = node->parent();
 2691|      0|    }
 2692|      4|  } else {
 2693|       |    // Rebalancing not possible because this is the root node.
 2694|       |    // Create a new root node and set the current root node as the child of the
 2695|       |    // new root.
 2696|      2|    parent = new_internal_node(/*position=*/0, parent);
 2697|      2|    parent->set_generation(root()->generation());
 2698|      2|    parent->init_child(parent->start(), node);
 2699|      2|    mutable_root() = parent;
 2700|       |    // If the former root was a leaf node, then it's now the rightmost node.
 2701|      2|    assert(parent->start_child()->is_internal() ||
 2702|      2|           parent->start_child() == rightmost());
 2703|      2|  }
 2704|       |
 2705|       |  // Split the node.
 2706|      6|  node_type *split_node;
 2707|      6|  if (node->is_leaf()) {
  ------------------
  |  Branch (2707:7): [True: 6, False: 0]
  ------------------
 2708|      6|    split_node = new_leaf_node(node->position() + 1, parent);
 2709|      6|    node->split(insert_position, split_node, mutable_allocator());
 2710|      6|    if (rightmost() == node) mutable_rightmost() = split_node;
  ------------------
  |  Branch (2710:9): [True: 4, False: 2]
  ------------------
 2711|      6|  } else {
 2712|      0|    split_node = new_internal_node(node->position() + 1, parent);
 2713|      0|    node->split(insert_position, split_node, mutable_allocator());
 2714|      0|  }
 2715|       |
 2716|      6|  if (insert_position > node->finish()) {
  ------------------
  |  Branch (2716:7): [True: 1, False: 5]
  ------------------
 2717|      1|    insert_position = insert_position - node->count() - 1;
 2718|      1|    node = split_node;
 2719|      1|  }
 2720|      6|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE23rebalance_right_to_leftEhPSE_PSC_:
 1854|      8|                                            allocator_type *alloc) {
 1855|      8|  assert(parent() == right->parent());
 1856|      8|  assert(position() + 1 == right->position());
 1857|      8|  assert(right->count() >= count());
 1858|      8|  assert(to_move >= 1);
 1859|      8|  assert(to_move <= right->count());
 1860|       |
 1861|       |  // 1) Move the delimiting value in the parent to the left node.
 1862|      8|  transfer(finish(), position(), parent(), alloc);
 1863|       |
 1864|       |  // 2) Move the (to_move - 1) values from the right node to the left node.
 1865|      8|  transfer_n(to_move - 1, finish() + 1, right->start(), right, alloc);
 1866|       |
 1867|       |  // 3) Move the new delimiting value to the parent from the right node.
 1868|      8|  parent()->transfer(position(), right->start() + to_move - 1, right, alloc);
 1869|       |
 1870|       |  // 4) Shift the values in the right node to their correct positions.
 1871|      8|  right->transfer_n(right->count() - to_move, right->start(),
 1872|      8|                    right->start() + to_move, right, alloc);
 1873|       |
 1874|      8|  if (is_internal()) {
  ------------------
  |  Branch (1874:7): [True: 0, False: 8]
  ------------------
 1875|       |    // Move the child pointers from the right to the left node.
 1876|      0|    for (field_type i = 0; i < to_move; ++i) {
  ------------------
  |  Branch (1876:28): [True: 0, False: 0]
  ------------------
 1877|      0|      init_child(finish() + i + 1, right->child(i));
 1878|      0|    }
 1879|      0|    for (field_type i = right->start(); i <= right->finish() - to_move; ++i) {
  ------------------
  |  Branch (1879:41): [True: 0, False: 0]
  ------------------
 1880|      0|      assert(i + to_move <= right->max_count());
 1881|      0|      right->init_child(i, right->child(i + to_move));
 1882|      0|      right->clear_child(i + to_move);
 1883|      0|    }
 1884|      0|  }
 1885|       |
 1886|       |  // Fixup `finish` on the left and right nodes.
 1887|      8|  set_finish(finish() + to_move);
 1888|      8|  right->set_finish(right->finish() - to_move);
 1889|      8|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8transferEmmPSE_PSC_:
 1011|     16|                btree_node *src_node, allocator_type *alloc) {
 1012|     16|    next_generation();
 1013|     16|    transfer(slot(dest_i), src_node->slot(src_i), alloc);
 1014|     16|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11clear_childEh:
  762|      2|  void clear_child(field_type i) {
  763|      2|    absl::container_internal::SanitizerPoisonObject(&mutable_child(i));
  764|      2|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13mutable_childEh:
  761|     28|  btree_node *&mutable_child(field_type i) { return GetField<4>()[i]; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8GetFieldILm4EEEPNSA_13tuple_elementIXT_ENSA_5tupleIJPSE_jhS8_SI_EEEE4typeEv:
  659|     28|  inline typename layout_type::template ElementType<N> *GetField() {
  660|       |    // We assert that we don't read from values that aren't there.
  661|       |    assert(N < 4 || is_internal());
  662|     28|    return InternalLayout().template Pointer<N>(reinterpret_cast<char *>(this));
  663|     28|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE19transfer_n_backwardEmmmPSE_PSC_:
 1033|     28|                           allocator_type *alloc) {
 1034|     28|    next_generation();
 1035|     28|    for (slot_type *src = src_node->slot(src_i + n), *end = src - n,
 1036|     28|                   *dest = slot(dest_i + n);
 1037|     91|         src != end; --src, --dest) {
  ------------------
  |  Branch (1037:10): [True: 63, False: 28]
  ------------------
 1038|       |      // If we modified the loop index calculations above to avoid the -1s here,
 1039|       |      // it would result in UB in the computation of `end` (and possibly `src`
 1040|       |      // as well, if n == 0), since slot() is effectively an array index and it
 1041|       |      // is UB to compute the address of any out-of-bounds array element except
 1042|       |      // for one-past-the-end.
 1043|     63|      transfer(dest - 1, src - 1, alloc);
 1044|     63|    }
 1045|     28|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE17new_internal_nodeEhPNS1_10btree_nodeISD_EE:
 1692|      2|  node_type *new_internal_node(field_type position, node_type *parent) {
 1693|      2|    node_type *n = allocate(node_type::InternalSize());
 1694|      2|    n->init_internal(position, parent);
 1695|      2|    return n;
 1696|      2|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13init_internalEhPSE_:
  964|      2|  void init_internal(field_type position, btree_node *parent) {
  965|      2|    init_leaf(position, kNodeSlots, parent);
  966|       |    // Set `max_count` to a sentinel value to indicate that this node is
  967|       |    // internal.
  968|      2|    set_max_count(kInternalNodeMaxCount);
  969|      2|    absl::container_internal::SanitizerPoisonMemoryRegion(
  970|      2|        &mutable_child(start()), (kNodeSlots + 1) * sizeof(btree_node *));
  971|      2|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10init_childEhPSE_:
  773|      2|  void init_child(field_type i, btree_node *c) {
  774|      2|    set_child(i, c);
  775|      2|    c->set_parent(this);
  776|      2|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE9set_childEhPSE_:
  769|      6|  void set_child(field_type i, btree_node *c) {
  770|      6|    set_child_noupdate_position(i, c);
  771|      6|    c->set_position(i);
  772|      6|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE27set_child_noupdate_positionEhPSE_:
  765|     12|  void set_child_noupdate_position(field_type i, btree_node *c) {
  766|     12|    absl::container_internal::SanitizerUnpoisonObject(&mutable_child(i));
  767|     12|    mutable_child(i) = c;
  768|     12|  }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13new_leaf_nodeEhPNS1_10btree_nodeISD_EE:
 1697|      6|  node_type *new_leaf_node(field_type position, node_type *parent) {
 1698|      6|    node_type *n = allocate(node_type::LeafSize());
 1699|      6|    n->init_leaf(position, kNodeSlots, parent);
 1700|      6|    return n;
 1701|      6|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5splitEiPSE_PSC_:
 1940|      6|                          allocator_type *alloc) {
 1941|      6|  assert(dest->count() == 0);
 1942|      6|  assert(max_count() == kNodeSlots);
 1943|      6|  assert(position() + 1 == dest->position());
 1944|      6|  assert(parent() == dest->parent());
 1945|       |
 1946|       |  // We bias the split based on the position being inserted. If we're
 1947|       |  // inserting at the beginning of the left node then bias the split to put
 1948|       |  // more values on the right node. If we're inserting at the end of the
 1949|       |  // right node then bias the split to put more values on the left node.
 1950|      6|  if (insert_position == start()) {
  ------------------
  |  Branch (1950:7): [True: 0, False: 6]
  ------------------
 1951|      0|    dest->set_finish(dest->start() + finish() - 1);
 1952|      6|  } else if (insert_position == kNodeSlots) {
  ------------------
  |  Branch (1952:14): [True: 0, False: 6]
  ------------------
 1953|      0|    dest->set_finish(dest->start());
 1954|      6|  } else {
 1955|      6|    dest->set_finish(dest->start() + count() / 2);
 1956|      6|  }
 1957|      6|  set_finish(finish() - dest->count());
 1958|      6|  assert(count() >= 1);
 1959|       |
 1960|       |  // Move values from the left sibling to the right sibling.
 1961|      6|  dest->transfer_n(dest->count(), dest->start(), finish(), this, alloc);
 1962|       |
 1963|       |  // The split key is the largest value in the left sibling.
 1964|      6|  --mutable_finish();
 1965|      6|  parent()->emplace_value(position(), alloc, finish_slot());
 1966|      6|  value_destroy(finish(), alloc);
 1967|      6|  parent()->set_child_noupdate_position(position() + 1, dest);
 1968|       |
 1969|      6|  if (is_internal()) {
  ------------------
  |  Branch (1969:7): [True: 0, False: 6]
  ------------------
 1970|      0|    for (field_type i = dest->start(), j = finish() + 1; i <= dest->finish();
  ------------------
  |  Branch (1970:58): [True: 0, False: 0]
  ------------------
 1971|      0|         ++i, ++j) {
 1972|       |      assert(child(j) != nullptr);
 1973|      0|      dest->init_child(i, child(j));
 1974|      0|      clear_child(j);
 1975|      0|    }
 1976|      0|  }
 1977|      6|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE14mutable_finishEv:
  671|      6|  field_type &mutable_finish() { return GetField<2>()[2]; }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13emplace_valueIJPS8_EEEvhPSC_DpOT_:
 1807|      6|                                         Args &&...args) {
 1808|      6|  assert(i >= start());
 1809|      6|  assert(i <= finish());
 1810|       |  // Shift old values to create space for new value and then construct it in
 1811|       |  // place.
 1812|      6|  if (i < finish()) {
  ------------------
  |  Branch (1812:7): [True: 2, False: 4]
  ------------------
 1813|      2|    transfer_n_backward(finish() - i, /*dest_i=*/i + 1, /*src_i=*/i, this,
 1814|      2|                        alloc);
 1815|      2|  }
 1816|      6|  value_init(static_cast<field_type>(i), alloc, std::forward<Args>(args)...);
 1817|      6|  set_finish(finish() + 1);
 1818|       |
 1819|      6|  if (is_internal() && finish() > i + 1) {
  ------------------
  |  Branch (1819:7): [True: 6, False: 0]
  |  Branch (1819:24): [True: 2, False: 4]
  ------------------
 1820|      6|    for (field_type j = finish(); j > i + 1; --j) {
  ------------------
  |  Branch (1820:35): [True: 4, False: 2]
  ------------------
 1821|      4|      set_child(j, child(j - 1));
 1822|      4|    }
 1823|      2|    clear_child(i + 1);
 1824|      2|  }
 1825|      6|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10value_initIJPS8_EEEvhPSC_DpOT_:
  984|      6|  void value_init(const field_type i, allocator_type *alloc, Args &&...args) {
  985|      6|    next_generation();
  986|      6|    absl::container_internal::SanitizerUnpoisonObject(slot(i));
  987|      6|    params_type::construct(alloc, slot(i), std::forward<Args>(args)...);
  988|      6|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11finish_slotEv:
  674|      6|  slot_type *finish_slot() { return slot(finish()); }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13value_destroyEhPSC_:
  989|      6|  void value_destroy(const field_type i, allocator_type *alloc) {
  990|      6|    next_generation();
  991|      6|    params_type::destroy(alloc, slot(i));
  992|      6|    absl::container_internal::SanitizerPoisonObject(slot(i));
  993|      6|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13emplace_valueIJRKS8_EEEvhPSC_DpOT_:
 1807|     44|                                         Args &&...args) {
 1808|     44|  assert(i >= start());
 1809|     44|  assert(i <= finish());
 1810|       |  // Shift old values to create space for new value and then construct it in
 1811|       |  // place.
 1812|     44|  if (i < finish()) {
  ------------------
  |  Branch (1812:7): [True: 26, False: 18]
  ------------------
 1813|     26|    transfer_n_backward(finish() - i, /*dest_i=*/i + 1, /*src_i=*/i, this,
 1814|     26|                        alloc);
 1815|     26|  }
 1816|     44|  value_init(static_cast<field_type>(i), alloc, std::forward<Args>(args)...);
 1817|     44|  set_finish(finish() + 1);
 1818|       |
 1819|     44|  if (is_internal() && finish() > i + 1) {
  ------------------
  |  Branch (1819:7): [True: 0, False: 44]
  |  Branch (1819:24): [True: 0, False: 0]
  ------------------
 1820|      0|    for (field_type j = finish(); j > i + 1; --j) {
  ------------------
  |  Branch (1820:35): [True: 0, False: 0]
  ------------------
 1821|      0|      set_child(j, child(j - 1));
 1822|      0|    }
 1823|      0|    clear_child(i + 1);
 1824|      0|  }
 1825|     44|}
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE10value_initIJRKS8_EEEvhPSC_DpOT_:
  984|     44|  void value_init(const field_type i, allocator_type *alloc, Args &&...args) {
  985|     44|    next_generation();
  986|     44|    absl::container_internal::SanitizerUnpoisonObject(slot(i));
  987|     44|    params_type::construct(alloc, slot(i), std::forward<Args>(args)...);
  988|     44|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EppEv:
 1198|     35|  btree_iterator &operator++() {
 1199|     35|    increment();
 1200|     35|    return *this;
 1201|     35|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E9incrementEv:
 1279|     35|  void increment() {
 1280|     35|    assert_valid_generation(node_);
 1281|     35|    if (node_->is_leaf() && ++position_ < node_->finish()) {
  ------------------
  |  Branch (1281:9): [True: 30, False: 5]
  |  Branch (1281:29): [True: 23, False: 7]
  ------------------
 1282|     23|      return;
 1283|     23|    }
 1284|     12|    increment_slow();
 1285|     12|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E14increment_slowEv:
 2135|     12|void btree_iterator<N, R, P>::increment_slow() {
 2136|     12|  if (node_->is_leaf()) {
  ------------------
  |  Branch (2136:7): [True: 7, False: 5]
  ------------------
 2137|      7|    assert(position_ >= node_->finish());
 2138|      7|    btree_iterator save(*this);
 2139|     13|    while (position_ == node_->finish() && !node_->is_root()) {
  ------------------
  |  Branch (2139:12): [True: 8, False: 5]
  |  Branch (2139:44): [True: 6, False: 2]
  ------------------
 2140|      6|      assert(node_->parent()->child(node_->position()) == node_);
 2141|      6|      position_ = node_->position();
 2142|      6|      node_ = node_->parent();
 2143|      6|    }
 2144|       |    // TODO(ezb): assert we aren't incrementing end() instead of handling.
 2145|      7|    if (position_ == node_->finish()) {
  ------------------
  |  Branch (2145:9): [True: 2, False: 5]
  ------------------
 2146|      2|      *this = save;
 2147|      2|    }
 2148|      7|  } else {
 2149|      5|    assert(position_ < node_->finish());
 2150|      5|    node_ = node_->child(static_cast<field_type>(position_ + 1));
 2151|      5|    while (node_->is_internal()) {
  ------------------
  |  Branch (2151:12): [True: 0, False: 5]
  ------------------
 2152|      0|      node_ = node_->start_child();
 2153|      0|    }
 2154|      5|    position_ = node_->start();
 2155|      5|  }
 2156|     12|}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13insert_uniqueIS8_JRKS8_EEENSA_4pairINS1_14btree_iteratorINS1_10btree_nodeISD_EESH_PSG_EEbEERKT_DpOT0_:
 2278|      7|    -> std::pair<iterator, bool> {
 2279|      7|  if (empty()) {
  ------------------
  |  Branch (2279:7): [True: 3, False: 4]
  ------------------
 2280|      3|    mutable_root() = mutable_rightmost() = new_leaf_root_node(1);
 2281|      3|  }
 2282|       |
 2283|      7|  SearchResult<iterator, is_key_compare_to::value> res = internal_locate(key);
 2284|      7|  iterator iter = res.value;
 2285|       |
 2286|      7|  if (res.HasMatch()) {
  ------------------
  |  Branch (2286:7): [Folded, False: 7]
  ------------------
 2287|      0|    if (res.IsEq()) {
  ------------------
  |  Branch (2287:9): [Folded, False: 0]
  ------------------
 2288|       |      // The key already exists in the tree, do nothing.
 2289|      0|      return {iter, false};
 2290|      0|    }
 2291|      7|  } else {
 2292|      7|    iterator last = internal_last(iter);
 2293|      7|    if (last.node_ && !compare_keys(key, last.key())) {
  ------------------
  |  Branch (2293:9): [True: 4, False: 3]
  |  Branch (2293:23): [True: 0, False: 4]
  ------------------
 2294|       |      // The key already exists in the tree, do nothing.
 2295|      0|      return {last, false};
 2296|      0|    }
 2297|      7|  }
 2298|      7|  return {internal_emplace(iter, std::forward<Args>(args)...), true};
 2299|      7|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE15internal_locateIS8_EENS1_12SearchResultINS1_14btree_iteratorINS1_10btree_nodeISD_EERKS8_PSK_EELb0EEERKT_:
 2898|      7|    -> SearchResult<iterator, is_key_compare_to::value> {
 2899|      7|  iterator iter(const_cast<node_type *>(root()));
 2900|      7|  for (;;) {
 2901|      7|    SearchResult<size_type, is_key_compare_to::value> res =
 2902|      7|        iter.node_->lower_bound(key, key_comp());
 2903|      7|    iter.position_ = static_cast<int>(res.value);
 2904|      7|    if (res.IsEq()) {
  ------------------
  |  Branch (2904:9): [Folded, False: 7]
  ------------------
 2905|      0|      return {iter, MatchKind::kEq};
 2906|      0|    }
 2907|       |    // Note: in the non-key-compare-to case, we don't need to walk all the way
 2908|       |    // down the tree if the keys are equal, but determining equality would
 2909|       |    // require doing an extra comparison on each node on the way down, and we
 2910|       |    // will need to go all the way to the leaf node in the expected case.
 2911|      7|    if (iter.node_->is_leaf()) {
  ------------------
  |  Branch (2911:9): [True: 7, False: 0]
  ------------------
 2912|      7|      break;
 2913|      7|    }
 2914|      0|    iter.node_ = iter.node_->child(static_cast<field_type>(iter.position_));
 2915|      0|  }
 2916|       |  // Note: in the non-key-compare-to case, the key may actually be equivalent
 2917|       |  // here (and the MatchKind::kNe is ignored).
 2918|      7|  return {iter, MatchKind::kNe};
 2919|      7|}
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE11lower_boundIS8_EENS1_12SearchResultImLb0EEERKT_RKNS1_19key_compare_adapterIS9_S8_E15checked_compareE:
  781|      7|      const K &k, const key_compare &comp) const {
  782|      7|    return use_linear_search::value ? linear_search(k, comp)
  ------------------
  |  Branch (782:12): [Folded, False: 7]
  ------------------
  783|      7|                                    : binary_search(k, comp);
  784|      7|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE13binary_searchIS8_NS1_19key_compare_adapterIS9_S8_E15checked_compareEEENS1_12SearchResultImXsr23btree_is_key_compare_toIT0_S8_EE5valueEEERKT_RKSK_:
  802|      7|  binary_search(const K &k, const Compare &comp) const {
  803|      7|    return binary_search_impl(k, start(), finish(), comp,
  804|      7|                              btree_is_key_compare_to<Compare, key_type>());
  805|      7|  }
_ZNK4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE18binary_search_implIS8_NS1_19key_compare_adapterIS9_S8_E15checked_compareEEENS1_12SearchResultImLb0EEERKT_mmRKT0_NSA_17integral_constantIbLb0EEE:
  845|      7|      std::false_type /* IsCompareTo */) const {
  846|     17|    while (s != e) {
  ------------------
  |  Branch (846:12): [True: 10, False: 7]
  ------------------
  847|     10|      const size_type mid = (s + e) >> 1;
  848|     10|      if (comp(key(mid), k)) {
  ------------------
  |  Branch (848:11): [True: 0, False: 10]
  ------------------
  849|      0|        s = mid + 1;
  850|     10|      } else {
  851|     10|        e = mid;
  852|     10|      }
  853|     10|    }
  854|      7|    return SearchResult<size_type, false>{s};
  855|      7|  }
_ZN4absl12lts_2024011618container_internal12SearchResultINS1_14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS9_13SymbolCompareENSt3__19allocatorISA_EELi256ELb0EEEEERKSA_PSH_EELb0EEC2ESK_NS1_9MatchKindE:
  480|      7|  SearchResult(V v, MatchKind /*match*/) : value(v) {}
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EC2IKSF_SH_SI_TnNSB_9enable_ifIXaasr3std7is_sameINS2_IT_T0_T1_EENS2_ISL_SH_SI_EEEE5valueL_ZNSB_17integral_constantIbLb1EE5valueEEEiE4typeELi0EEESQ_:
 1244|     44|      : btree_iterator_generation_info(other.generation()),
 1245|     44|        node_(const_cast<node_type *>(other.node_)),
 1246|     44|        position_(other.position_) {}
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EneERKSJ_:
 1168|      9|  bool operator!=(const iterator &other) const {
 1169|      9|    return !Equals(other);
 1170|      9|  }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E6EqualsENS2_IKSF_SH_SI_EE:
 1248|      9|  bool Equals(const const_iterator other) const {
 1249|      9|    ABSL_HARDENING_ASSERT(((node_ == nullptr && other.node_ == nullptr) ||
  ------------------
  |  |  128|      9|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      9|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 9]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1250|      9|                           (node_ != nullptr && other.node_ != nullptr)) &&
 1251|      9|                          "Comparing default-constructed iterator with "
 1252|      9|                          "non-default-constructed iterator.");
 1253|       |    // Note: we use assert instead of ABSL_HARDENING_ASSERT here because this
 1254|       |    // changes the complexity of Equals from O(1) to O(log(N) + log(M)) where
 1255|       |    // N/M are sizes of the containers containing node_/other.node_.
 1256|      9|    assert(AreNodesFromSameContainer(node_, other.node_) &&
 1257|      9|           "Comparing iterators from different containers.");
 1258|      9|    assert_valid_generation(node_);
 1259|      9|    other.assert_valid_generation(other.node_);
 1260|      9|    return node_ == other.node_ && position_ == other.position_;
  ------------------
  |  Branch (1260:12): [True: 9, False: 0]
  |  Branch (1260:36): [True: 2, False: 7]
  ------------------
 1261|      9|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EC2ISF_SI_SJ_TnNSB_9enable_ifIXaasr3std7is_sameINS2_IT_T0_T1_EENS2_ISF_SI_SJ_EEEE5valueL_ZNSB_17integral_constantIbLb1EE5valueEEEiE4typeELi0EEESQ_:
 1158|      9|      : btree_iterator_generation_info(other),
 1159|      9|        node_(other.node_),
 1160|      9|        position_(other.position_) {}
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EdeEv:
 1186|      7|  reference operator*() const {
 1187|      7|    ABSL_HARDENING_ASSERT(node_ != nullptr);
  ------------------
  |  |  128|      7|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      7|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 7]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1188|      7|    assert_valid_generation(node_);
 1189|      7|    ABSL_HARDENING_ASSERT(position_ >= node_->start());
  ------------------
  |  |  128|      7|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      7|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 7]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1190|      7|    if (position_ >= node_->finish()) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 7]
  ------------------
 1191|      0|      ABSL_HARDENING_ASSERT(!IsEndIterator() && "Dereferencing end() iterator");
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1192|      0|      ABSL_HARDENING_ASSERT(position_ < node_->finish());
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1193|      0|    }
 1194|      7|    return node_->value(static_cast<field_type>(position_));
 1195|      7|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5valueEm:
  753|      7|  reference value(size_type i) { return params_type::element(slot(i)); }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EppEv:
 1198|      4|  btree_iterator &operator++() {
 1199|      4|    increment();
 1200|      4|    return *this;
 1201|      4|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E9incrementEv:
 1279|      4|  void increment() {
 1280|      4|    assert_valid_generation(node_);
 1281|      4|    if (node_->is_leaf() && ++position_ < node_->finish()) {
  ------------------
  |  Branch (1281:9): [True: 4, False: 0]
  |  Branch (1281:29): [True: 2, False: 2]
  ------------------
 1282|      2|      return;
 1283|      2|    }
 1284|      2|    increment_slow();
 1285|      2|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E14increment_slowEv:
 2135|      2|void btree_iterator<N, R, P>::increment_slow() {
 2136|      2|  if (node_->is_leaf()) {
  ------------------
  |  Branch (2136:7): [True: 2, False: 0]
  ------------------
 2137|      2|    assert(position_ >= node_->finish());
 2138|      2|    btree_iterator save(*this);
 2139|      2|    while (position_ == node_->finish() && !node_->is_root()) {
  ------------------
  |  Branch (2139:12): [True: 2, False: 0]
  |  Branch (2139:44): [True: 0, False: 2]
  ------------------
 2140|      0|      assert(node_->parent()->child(node_->position()) == node_);
 2141|      0|      position_ = node_->position();
 2142|      0|      node_ = node_->parent();
 2143|      0|    }
 2144|       |    // TODO(ezb): assert we aren't incrementing end() instead of handling.
 2145|      2|    if (position_ == node_->finish()) {
  ------------------
  |  Branch (2145:9): [True: 2, False: 0]
  ------------------
 2146|      2|      *this = save;
 2147|      2|    }
 2148|      2|  } else {
 2149|      0|    assert(position_ < node_->finish());
 2150|      0|    node_ = node_->child(static_cast<field_type>(position_ + 1));
 2151|      0|    while (node_->is_internal()) {
  ------------------
  |  Branch (2151:12): [True: 0, False: 0]
  ------------------
 2152|      0|      node_ = node_->start_child();
 2153|      0|    }
 2154|      0|    position_ = node_->start();
 2155|      0|  }
 2156|      2|}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5beginEv:
 1436|      2|  iterator begin() { return iterator(leftmost()); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8leftmostEv:
 1672|      2|  node_type *leftmost() { return root()->parent(); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE3endEv:
 1438|      2|  iterator end() { return iterator(rightmost(), rightmost()->finish()); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5clearEv:
 2577|      2|void btree<P>::clear() {
 2578|      2|  if (!empty()) {
  ------------------
  |  Branch (2578:7): [True: 2, False: 0]
  ------------------
 2579|      2|    node_type::clear_and_delete(root(), mutable_allocator());
 2580|      2|  }
 2581|      2|  mutable_root() = mutable_rightmost() = EmptyNode();
 2582|      2|  size_ = 0;
 2583|      2|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4sizeEv:
 1581|      2|  size_type size() const { return size_; }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EneERKSJ_:
 1168|     72|  bool operator!=(const iterator &other) const {
 1169|     72|    return !Equals(other);
 1170|     72|  }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EdeEv:
 1186|     68|  reference operator*() const {
 1187|     68|    ABSL_HARDENING_ASSERT(node_ != nullptr);
  ------------------
  |  |  128|     68|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|     68|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 68]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1188|     68|    assert_valid_generation(node_);
 1189|     68|    ABSL_HARDENING_ASSERT(position_ >= node_->start());
  ------------------
  |  |  128|     68|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|     68|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 68]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1190|     68|    if (position_ >= node_->finish()) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 68]
  ------------------
 1191|      0|      ABSL_HARDENING_ASSERT(!IsEndIterator() && "Dereferencing end() iterator");
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1192|      0|      ABSL_HARDENING_ASSERT(position_ < node_->finish());
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1193|      0|    }
 1194|     68|    return node_->value(static_cast<field_type>(position_));
 1195|     68|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5valueEm:
  753|     68|  reference value(size_type i) { return params_type::element(slot(i)); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS7_13SymbolCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5clearEv:
 2577|      2|void btree<P>::clear() {
 2578|      2|  if (!empty()) {
  ------------------
  |  Branch (2578:7): [True: 2, False: 0]
  ------------------
 2579|      2|    node_type::clear_and_delete(root(), mutable_allocator());
 2580|      2|  }
 2581|      2|  mutable_root() = mutable_rightmost() = EmptyNode();
 2582|      2|  size_ = 0;
 2583|      2|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4sizeEv:
 1581|      1|  size_type size() const { return size_; }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EneERKSJ_:
 1168|      3|  bool operator!=(const iterator &other) const {
 1169|      3|    return !Equals(other);
 1170|      3|  }
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E6EqualsENS2_IKSF_SH_SI_EE:
 1248|      3|  bool Equals(const const_iterator other) const {
 1249|      3|    ABSL_HARDENING_ASSERT(((node_ == nullptr && other.node_ == nullptr) ||
  ------------------
  |  |  128|      3|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      3|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 3]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1250|      3|                           (node_ != nullptr && other.node_ != nullptr)) &&
 1251|      3|                          "Comparing default-constructed iterator with "
 1252|      3|                          "non-default-constructed iterator.");
 1253|       |    // Note: we use assert instead of ABSL_HARDENING_ASSERT here because this
 1254|       |    // changes the complexity of Equals from O(1) to O(log(N) + log(M)) where
 1255|       |    // N/M are sizes of the containers containing node_/other.node_.
 1256|      3|    assert(AreNodesFromSameContainer(node_, other.node_) &&
 1257|      3|           "Comparing iterators from different containers.");
 1258|      3|    assert_valid_generation(node_);
 1259|      3|    other.assert_valid_generation(other.node_);
 1260|      3|    return node_ == other.node_ && position_ == other.position_;
  ------------------
  |  Branch (1260:12): [True: 3, False: 0]
  |  Branch (1260:36): [True: 1, False: 2]
  ------------------
 1261|      3|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorIKNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSH_EC2ISF_SI_SJ_TnNSB_9enable_ifIXaasr3std7is_sameINS2_IT_T0_T1_EENS2_ISF_SI_SJ_EEEE5valueL_ZNSB_17integral_constantIbLb1EE5valueEEEiE4typeELi0EEESQ_:
 1158|      3|      : btree_iterator_generation_info(other),
 1159|      3|        node_(other.node_),
 1160|      3|        position_(other.position_) {}
_ZNK4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EdeEv:
 1186|      1|  reference operator*() const {
 1187|      1|    ABSL_HARDENING_ASSERT(node_ != nullptr);
  ------------------
  |  |  128|      1|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      1|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1188|      1|    assert_valid_generation(node_);
 1189|      1|    ABSL_HARDENING_ASSERT(position_ >= node_->start());
  ------------------
  |  |  128|      1|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      1|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1190|      1|    if (position_ >= node_->finish()) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 1]
  ------------------
 1191|      0|      ABSL_HARDENING_ASSERT(!IsEndIterator() && "Dereferencing end() iterator");
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1192|      0|      ABSL_HARDENING_ASSERT(position_ < node_->finish());
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1193|      0|    }
 1194|      1|    return node_->value(static_cast<field_type>(position_));
 1195|      1|  }
_ZN4absl12lts_2024011618container_internal10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5valueEm:
  753|      1|  reference value(size_type i) { return params_type::element(slot(i)); }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_EppEv:
 1198|      1|  btree_iterator &operator++() {
 1199|      1|    increment();
 1200|      1|    return *this;
 1201|      1|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E9incrementEv:
 1279|      1|  void increment() {
 1280|      1|    assert_valid_generation(node_);
 1281|      1|    if (node_->is_leaf() && ++position_ < node_->finish()) {
  ------------------
  |  Branch (1281:9): [True: 1, False: 0]
  |  Branch (1281:29): [True: 0, False: 1]
  ------------------
 1282|      0|      return;
 1283|      0|    }
 1284|      1|    increment_slow();
 1285|      1|  }
_ZN4absl12lts_2024011618container_internal14btree_iteratorINS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEERKS9_PSG_E14increment_slowEv:
 2135|      1|void btree_iterator<N, R, P>::increment_slow() {
 2136|      1|  if (node_->is_leaf()) {
  ------------------
  |  Branch (2136:7): [True: 1, False: 0]
  ------------------
 2137|      1|    assert(position_ >= node_->finish());
 2138|      1|    btree_iterator save(*this);
 2139|      1|    while (position_ == node_->finish() && !node_->is_root()) {
  ------------------
  |  Branch (2139:12): [True: 1, False: 0]
  |  Branch (2139:44): [True: 0, False: 1]
  ------------------
 2140|      0|      assert(node_->parent()->child(node_->position()) == node_);
 2141|      0|      position_ = node_->position();
 2142|      0|      node_ = node_->parent();
 2143|      0|    }
 2144|       |    // TODO(ezb): assert we aren't incrementing end() instead of handling.
 2145|      1|    if (position_ == node_->finish()) {
  ------------------
  |  Branch (2145:9): [True: 1, False: 0]
  ------------------
 2146|      1|      *this = save;
 2147|      1|    }
 2148|      1|  } else {
 2149|      0|    assert(position_ < node_->finish());
 2150|      0|    node_ = node_->child(static_cast<field_type>(position_ + 1));
 2151|      0|    while (node_->is_internal()) {
  ------------------
  |  Branch (2151:12): [True: 0, False: 0]
  ------------------
 2152|      0|      node_ = node_->start_child();
 2153|      0|    }
 2154|      0|    position_ = node_->start();
 2155|      0|  }
 2156|      1|}
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5beginEv:
 1436|      1|  iterator begin() { return iterator(leftmost()); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE8leftmostEv:
 1672|      1|  node_type *leftmost() { return root()->parent(); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE3endEv:
 1438|      1|  iterator end() { return iterator(rightmost(), rightmost()->finish()); }
_ZN4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS7_16ExtensionCompareENSt3__19allocatorIS8_EELi256ELb0EEEE5clearEv:
 2577|      1|void btree<P>::clear() {
 2578|      1|  if (!empty()) {
  ------------------
  |  Branch (2578:7): [True: 1, False: 0]
  ------------------
 2579|      1|    node_type::clear_and_delete(root(), mutable_allocator());
 2580|      1|  }
 2581|      1|  mutable_root() = mutable_rightmost() = EmptyNode();
 2582|      1|  size_ = 0;
 2583|      1|}
_ZNK4absl12lts_2024011618container_internal5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS7_11FileCompareENSt3__19allocatorIS8_EELi256ELb0EEEE4sizeEv:
 1581|      2|  size_type size() const { return size_; }

_ZN4absl12lts_2024011618container_internal19btree_map_containerINS1_5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEEEC2Ev:
  465|      2|  btree_map_container() {}
_ZN4absl12lts_2024011618container_internal19btree_set_containerINS1_5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEEEC2Ev:
  303|      2|  btree_set_container() {}
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEEEC2Ev:
   74|      2|  btree_container() : tree_(key_compare(), allocator_type()) {}
_ZN4absl12lts_2024011618container_internal19btree_set_containerINS1_5btreeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEEE6insertEOSK_:
  333|      1|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
  334|      1|    return this->tree_.insert_unique(params_type::key(v), std::move(v));
  335|      1|  }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEEC2ERKSA_RKSD_:
   77|      2|      : tree_(comp, alloc) {}
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEEC2ERKSA_RKSD_:
   77|      2|      : tree_(comp, alloc) {}
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEEC2ERKSA_RKSD_:
   77|      2|      : tree_(comp, alloc) {}
_ZN4absl12lts_2024011618container_internal19btree_set_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE6insertEOS9_:
  333|      6|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
  334|      6|    return this->tree_.insert_unique(params_type::key(v), std::move(v));
  335|      6|  }
_ZN4absl12lts_2024011618container_internal19btree_set_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE6insertEOS9_:
  333|      1|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
  334|      1|    return this->tree_.insert_unique(params_type::key(v), std::move(v));
  335|      1|  }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE11upper_boundIS9_EENS1_14btree_iteratorIKNS1_10btree_nodeISE_EERKS9_PSM_EERSM_:
  163|     44|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
  164|     44|    return tree_.upper_bound(key);
  165|     44|  }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5beginEv:
   99|     44|  const_iterator begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  100|     44|    return tree_.begin();
  101|     44|  }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE3endEv:
  105|     46|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND { return tree_.end(); }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE8key_compEv:
  260|     46|  key_compare key_comp() const { return key_compare(tree_.key_comp()); }
_ZN4absl12lts_2024011618container_internal19btree_set_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE6insertENS1_14btree_iteratorIKNS1_10btree_nodeISE_EERKS9_PSL_EESM_:
  346|     44|                  const value_type &v) ABSL_ATTRIBUTE_LIFETIME_BOUND {
  347|     44|    return this->tree_
  348|     44|        .insert_hint_unique(iterator(hint), params_type::key(v), v)
  349|     44|        .first;
  350|     44|  }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE8key_compEv:
  260|      2|  key_compare key_comp() const { return key_compare(tree_.key_comp()); }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5emptyEv:
  229|      4|  bool empty() const { return tree_.empty(); }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5beginEv:
   98|      2|  iterator begin() ABSL_ATTRIBUTE_LIFETIME_BOUND { return tree_.begin(); }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE3endEv:
  105|      2|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND { return tree_.end(); }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5clearEv:
  222|      2|  ABSL_ATTRIBUTE_REINITIALIZES void clear() { tree_.clear(); }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5emptyEv:
  229|      4|  bool empty() const { return tree_.empty(); }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE4sizeEv:
  227|      2|  size_type size() const { return tree_.size(); }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5beginEv:
   98|      2|  iterator begin() ABSL_ATTRIBUTE_LIFETIME_BOUND { return tree_.begin(); }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5clearEv:
  222|      2|  ABSL_ATTRIBUTE_REINITIALIZES void clear() { tree_.clear(); }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5emptyEv:
  229|      4|  bool empty() const { return tree_.empty(); }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE4sizeEv:
  227|      1|  size_type size() const { return tree_.size(); }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5beginEv:
   98|      1|  iterator begin() ABSL_ATTRIBUTE_LIFETIME_BOUND { return tree_.begin(); }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE3endEv:
  105|      1|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND { return tree_.end(); }
_ZN4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE5clearEv:
  222|      1|  ABSL_ATTRIBUTE_REINITIALIZES void clear() { tree_.clear(); }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE4sizeEv:
  227|      2|  size_type size() const { return tree_.size(); }
_ZNK4absl12lts_2024011618container_internal15btree_containerINS1_5btreeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEE8key_compEv:
  260|     12|  key_compare key_comp() const { return key_compare(tree_.key_comp()); }

_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEEvE7elementIS8_EEDTclsrT_7elementfp_EEPS7_:
   75|     16|      -> decltype(P::element(slot)) {
   76|     16|    return P::element(slot);
   77|     16|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEEvE9constructINSt3__19allocatorIS7_EEJRKS7_EEEvPT_PS7_DpOT0_:
   42|      1|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      1|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      1|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvE7destroyINSt3__19allocatorIS8_EEEEvPT_PS8_:
   49|      4|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|      4|    Policy::destroy(alloc, slot);
   51|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE7destroyINSt3__19allocatorIS6_EEEEvPT_PS6_:
   49|  1.01k|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|  1.01k|    Policy::destroy(alloc, slot);
   51|  1.01k|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE7destroyINSt3__19allocatorIS8_EEEEvPT_PS8_:
   49|     50|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|     50|    Policy::destroy(alloc, slot);
   51|     50|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE7destroyINSt3__19allocatorIS8_EEEEvPT_PS8_:
   49|    110|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|    110|    Policy::destroy(alloc, slot);
   51|    110|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE7elementIS7_EEDTclsrT_7elementfp_EEPS6_:
   75|  2.24k|      -> decltype(P::element(slot)) {
   76|  2.24k|    return P::element(slot);
   77|  2.24k|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvE7elementIS9_EEDTclsrT_7elementfp_EEPS8_:
   75|     14|      -> decltype(P::element(slot)) {
   76|     14|    return P::element(slot);
   77|     14|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE7elementIS9_EEDTclsrT_7elementfp_EEPS8_:
   75|    214|      -> decltype(P::element(slot)) {
   76|    214|    return P::element(slot);
   77|    214|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE7elementIS9_EEDTclsrT_7elementfp_EEPS8_:
   75|     79|      -> decltype(P::element(slot)) {
   76|     79|    return P::element(slot);
   77|     79|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyINS0_11string_viewEEEvE7destroyINSt3__19allocatorIS4_EEEEvPT_PS4_:
   49|      3|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|      3|    Policy::destroy(alloc, slot);
   51|      3|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEvE7elementISF_EEDTclsrT_7elementfp_EEPNS1_13map_slot_typeISA_SE_EE:
   75|     33|      -> decltype(P::element(slot)) {
   76|     33|    return P::element(slot);
   77|     33|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEvE8transferINS8_INS4_4pairIKSA_SE_EEEEEEvPT_PNS1_13map_slot_typeISA_SE_EESQ_:
   65|     50|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|     50|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|     50|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEvE13transfer_implINS8_INS4_4pairIKSA_SE_EEEESF_EEDTclsrT0_8transferfp_fp0_fp1_EEPT_PNS1_13map_slot_typeISA_SE_EESS_NSG_5Rank0E:
  101|     50|      -> decltype(P::transfer(alloc, new_slot, old_slot)) {
  102|     50|    return P::transfer(alloc, new_slot, old_slot);
  103|     50|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEvE9constructINS8_INS4_4pairIKSA_SE_EEEEJRKNS4_21piecewise_construct_tENS4_5tupleIJRSJ_EEENSP_IJRKSE_EEEEEEvPT_PNS1_13map_slot_typeISA_SE_EEDpOT0_:
   42|     32|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|     32|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|     32|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE8transferINSt3__19allocatorIS8_EEEEvPT_PS8_SH_:
   65|     50|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|     50|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|     50|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE13transfer_implINSt3__19allocatorIS8_EEEEvPT_PS8_SH_NSA_5Rank2E:
  124|     50|                            slot_type* old_slot, Rank2) {
  125|     50|    construct(alloc, new_slot, std::move(element(old_slot)));
  126|     50|    destroy(alloc, old_slot);
  127|     50|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE9constructINSt3__19allocatorIS8_EEJS8_EEEvPT_PS8_DpOT0_:
   42|     50|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|     50|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|     50|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE9constructINSt3__19allocatorIS8_EEJRKPS6_EEEvPT_PS8_DpOT0_:
   42|     34|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|     34|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|     34|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE8transferINSt3__19allocatorIS6_EEEEvPT_PS6_SF_:
   65|  1.01k|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|  1.01k|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|  1.01k|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE13transfer_implINSt3__19allocatorIS6_EEEEvPT_PS6_SF_NS8_5Rank2E:
  124|  1.01k|                            slot_type* old_slot, Rank2) {
  125|  1.01k|    construct(alloc, new_slot, std::move(element(old_slot)));
  126|  1.01k|    destroy(alloc, old_slot);
  127|  1.01k|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE9constructINSt3__19allocatorIS6_EEJS6_EEEvPT_PS6_DpOT0_:
   42|  1.01k|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|  1.01k|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|  1.01k|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE9constructINSt3__19allocatorIS6_EEJRKS6_EEEvPT_PS6_DpOT0_:
   42|    869|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|    869|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|    869|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvE8transferINSt3__19allocatorIS8_EEEEvPT_PS8_SH_:
   65|      4|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|      4|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvE13transfer_implINSt3__19allocatorIS8_EEEEvPT_PS8_SH_NSA_5Rank2E:
  124|      4|                            slot_type* old_slot, Rank2) {
  125|      4|    construct(alloc, new_slot, std::move(element(old_slot)));
  126|      4|    destroy(alloc, old_slot);
  127|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvE9constructINSt3__19allocatorIS8_EEJS8_EEEvPT_PS8_DpOT0_:
   42|      4|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      4|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvE9constructINSt3__19allocatorIS8_EEJRKS8_EEEvPT_PS8_DpOT0_:
   42|      4|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      4|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE8transferINSt3__19allocatorIS8_EEEEvPT_PS8_SH_:
   65|    110|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|    110|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|    110|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE13transfer_implINSt3__19allocatorIS8_EEEEvPT_PS8_SH_NSA_5Rank2E:
  124|    110|                            slot_type* old_slot, Rank2) {
  125|    110|    construct(alloc, new_slot, std::move(element(old_slot)));
  126|    110|    destroy(alloc, old_slot);
  127|    110|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE9constructINSt3__19allocatorIS8_EEJS8_EEEvPT_PS8_DpOT0_:
   42|    110|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|    110|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|    110|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE9constructINSt3__19allocatorIS8_EEJRKPS6_EEEvPT_PS8_DpOT0_:
   42|    103|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|    103|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|    103|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15map_slot_policyINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorEEEvE9constructINS4_9allocatorINS5_IKSB_SE_EEEEJSK_EEEvPT_PNS1_13map_slot_typeISB_SE_EEDpOT0_:
   42|      1|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      1|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      1|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15map_slot_policyINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorEEEvE7elementISF_EEDTclsrT_7elementfp_EEPNS1_13map_slot_typeISB_SE_EE:
   75|      1|      -> decltype(P::element(slot)) {
   76|      1|    return P::element(slot);
   77|      1|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEEvE7elementISI_EEDTclsrT_7elementfp_EEPNS1_13map_slot_typeISA_SH_EE:
   75|    411|      -> decltype(P::element(slot)) {
   76|    411|    return P::element(slot);
   77|    411|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEEvE8transferINS8_INS4_4pairIKSA_SH_EEEEEEvPT_PNS1_13map_slot_typeISA_SH_EEST_:
   65|      4|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|      4|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEEvE13transfer_implINS8_INS4_4pairIKSA_SH_EEEESI_EEDTclsrT0_8transferfp_fp0_fp1_EEPT_PNS1_13map_slot_typeISA_SH_EESV_NSJ_5Rank0E:
  101|      4|      -> decltype(P::transfer(alloc, new_slot, old_slot)) {
  102|      4|    return P::transfer(alloc, new_slot, old_slot);
  103|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEEvE9constructINS8_INS4_4pairIKSA_SH_EEEEJRKNS4_21piecewise_construct_tENS4_5tupleIJOSA_EEENSS_IJEEEEEEvPT_PNS1_13map_slot_typeISA_SH_EEDpOT0_:
   42|      4|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      4|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyINS0_11string_viewEEEvE9constructINSt3__19allocatorIS4_EEJRKNS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEEEvPT_PS4_DpOT0_:
   42|      3|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      3|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      3|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEvE8transferINSt3__19allocatorIS8_EEEEvPT_PS8_SH_:
   65|      4|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|      4|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEvE13transfer_implINSt3__19allocatorIS8_EEEEvPT_PS8_SH_NSA_5Rank2E:
  124|      4|                            slot_type* old_slot, Rank2) {
  125|      4|    construct(alloc, new_slot, std::move(element(old_slot)));
  126|      4|    destroy(alloc, old_slot);
  127|      4|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEvE9constructINSt3__19allocatorIS8_EEJS8_EEEvPT_PS8_DpOT0_:
   42|     10|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|     10|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|     10|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEvE7elementIS9_EEDTclsrT_7elementfp_EEPS8_:
   75|     11|      -> decltype(P::element(slot)) {
   76|     11|    return P::element(slot);
   77|     11|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEvE7destroyINSt3__19allocatorIS8_EEEEvPT_PS8_:
   49|      8|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|      8|    Policy::destroy(alloc, slot);
   51|      8|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEEvE9constructINSt3__19allocatorIS8_EEJS8_EEEvPT_PS8_DpOT0_:
   42|      1|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      1|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      1|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEEvE7elementIS9_EEDTclsrT_7elementfp_EEPS8_:
   75|      1|      -> decltype(P::element(slot)) {
   76|      1|    return P::element(slot);
   77|      1|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEEvE7destroyINSt3__19allocatorIS8_EEEEvPT_PS8_:
   49|      1|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|      1|    Policy::destroy(alloc, slot);
   51|      1|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvE7elementIS9_EEDTclsrT_7elementfp_EEPKS8_:
   79|     70|  static auto element(const slot_type* slot) -> decltype(P::element(slot)) {
   80|     70|    return P::element(slot);
   81|     70|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvE8transferINSt3__19allocatorIS8_EEEEvPT_PS8_SH_:
   65|    160|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|    160|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|    160|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvE13transfer_implINSt3__19allocatorIS8_EEEEvPT_PS8_SH_NSA_5Rank2E:
  124|    160|                            slot_type* old_slot, Rank2) {
  125|    160|    construct(alloc, new_slot, std::move(element(old_slot)));
  126|    160|    destroy(alloc, old_slot);
  127|    160|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvE9constructINSt3__19allocatorIS8_EEJS8_EEEvPT_PS8_DpOT0_:
   42|    160|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|    160|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|    160|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvE7elementIS9_EEDTclsrT_7elementfp_EEPS8_:
   75|    228|      -> decltype(P::element(slot)) {
   76|    228|    return P::element(slot);
   77|    228|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvE7destroyINSt3__19allocatorIS8_EEEEvPT_PS8_:
   49|    201|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|    201|    Policy::destroy(alloc, slot);
   51|    201|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvE9constructINSt3__19allocatorIS8_EEJPS8_EEEvPT_SF_DpOT0_:
   42|      6|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      6|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      6|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_15set_slot_policyIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvE9constructINSt3__19allocatorIS8_EEJRKS8_EEEvPT_PS8_DpOT0_:
   42|     44|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|     44|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|     44|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEEvE7destroyINSt3__19allocatorIS9_EEEEvPT_PS9_:
   49|      5|  static void destroy(Alloc* alloc, slot_type* slot) {
   50|      5|    Policy::destroy(alloc, slot);
   51|      5|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEEvE7elementISA_EEDTclsrT_7elementfp_EEPS9_:
   75|      5|      -> decltype(P::element(slot)) {
   76|      5|    return P::element(slot);
   77|      5|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEEvE8transferINSt3__19allocatorIS9_EEEEvPT_PS9_SI_:
   65|      5|  static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
   66|      5|    transfer_impl(alloc, new_slot, old_slot, Rank0{});
   67|      5|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEEvE13transfer_implINSt3__19allocatorIS9_EEEEvPT_PS9_SI_NSB_5Rank2E:
  124|      5|                            slot_type* old_slot, Rank2) {
  125|      5|    construct(alloc, new_slot, std::move(element(old_slot)));
  126|      5|    destroy(alloc, old_slot);
  127|      5|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEEvE9constructINSt3__19allocatorIS9_EEJS9_EEEvPT_PS9_DpOT0_:
   42|      5|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      5|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      5|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEEvE9constructINSt3__19allocatorIS9_EEJRKS9_EEEvPT_PS9_DpOT0_:
   42|      6|  static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
   43|      6|    Policy::construct(alloc, slot, std::forward<Args>(args)...);
   44|      6|  }

_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_12CommonFieldsELm0ELb0EE3getEv:
   91|  12.4k|  constexpr const T& get() const& { return value; }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_12CommonFieldsELm0ELb0EE3getEv:
   92|  13.8k|  T& get() & { return value; }
extension_set.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherENS7_11ExtensionEqENSt3__19allocatorINS6_13ExtensionInfoEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  246|     60|  constexpr const ElemT<I>& get() const& {
  247|     60|    return StorageT<I>::get();
  248|     60|  }
extension_set.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherENS7_11ExtensionEqENSt3__19allocatorINS6_13ExtensionInfoEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  241|     29|  ElemT<I>& get() & {
  242|     29|    return StorageT<I>::get();
  243|     29|  }
extension_set.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherENS7_11ExtensionEqENSt3__19allocatorINS6_13ExtensionInfoEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  241|      8|  ElemT<I>& get() & {
  242|      8|    return StorageT<I>::get();
  243|      8|  }
extension_set.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf8internal12_GLOBAL__N_111ExtensionEqELm2ELb1EE3getEv:
  106|      8|  T& get() & { return *this; }
extension_set.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherENS7_11ExtensionEqENSt3__19allocatorINS6_13ExtensionInfoEEEEE3getILi1EEERKNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  246|      8|  constexpr const ElemT<I>& get() const& {
  247|      8|    return StorageT<I>::get();
  248|      8|  }
extension_set.cc:_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherELm1ELb1EE3getEv:
  105|      8|  constexpr const T& get() const& { return *this; }
extension_set.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherENS7_11ExtensionEqENSt3__19allocatorINS6_13ExtensionInfoEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  241|      2|  ElemT<I>& get() & {
  242|      2|    return StorageT<I>::get();
  243|      2|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf8internal13ExtensionInfoEEELm3ELb1EE3getEv:
  106|      2|  T& get() & { return *this; }
extension_set.cc:_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherENS7_11ExtensionEqENSt3__19allocatorINS6_13ExtensionInfoEEEEEC2IS3_JS8_S9_SD_ETnNSA_9enable_ifIXsr4absl11conjunctionINS0_8negationINSA_7is_sameIFvSE_EFvNSA_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISE_JSL_DpT0_EEEEE5valueEbE4typeELb1EEEOSL_DpOST_:
  236|      1|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      1|                                             absl::forward<First>(first),
  238|      1|                                             absl::forward<Vs>(base)...) {}
extension_set.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorINS8_13ExtensionInfoEEEEEENSC_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SA_SB_SF_EEENS0_10in_place_tEDpOT_:
  126|      4|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_12CommonFieldsELm0ELb0EEC2IS4_EENS0_10in_place_tEOT_:
   90|    140|      : value(absl::forward<V>(v)) {}
extension_set.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherELm1ELb1EEC2IS8_EENS0_10in_place_tEOT_:
  103|      1|      : T(absl::forward<V>(v)) {}
extension_set.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf8internal12_GLOBAL__N_111ExtensionEqELm2ELb1EEC2IS8_EENS0_10in_place_tEOT_:
  103|      1|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf8internal13ExtensionInfoEEELm3ELb1EEC2ISA_EENS0_10in_place_tEOT_:
  103|      1|      : T(absl::forward<V>(v)) {}
extension_set.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherENS7_11ExtensionEqENSt3__19allocatorINS6_13ExtensionInfoEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  241|      1|  ElemT<I>& get() & {
  242|      1|    return StorageT<I>::get();
  243|      1|  }
extension_set.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherELm1ELb1EE3getEv:
  106|      1|  T& get() & { return *this; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEENS6_10unique_ptrIN6google8protobuf10FeatureSetENS6_14default_deleteISI_EEEEEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISO_XT_EE4typeEv:
  246|  1.06k|  constexpr const ElemT<I>& get() const& {
  247|  1.06k|    return StorageT<I>::get();
  248|  1.06k|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEENS6_10unique_ptrIN6google8protobuf10FeatureSetENS6_14default_deleteISI_EEEEEEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISO_XT_EE4typeEv:
  241|     11|  ElemT<I>& get() & {
  242|     11|    return StorageT<I>::get();
  243|     11|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS4_12basic_stringIcNS4_11char_traitsIcEENS5_IcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISG_EEEEEEEELm3ELb1EE3getEv:
  106|     11|  T& get() & { return *this; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEENS6_10unique_ptrIN6google8protobuf10FeatureSetENS6_14default_deleteISI_EEEEEEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISO_XT_EE4typeEv:
  241|    456|  ElemT<I>& get() & {
  242|    456|    return StorageT<I>::get();
  243|    456|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterINSt3__14lessINS4_4pairIPKN6google8protobuf10DescriptorEiEEEESC_E15checked_compareENS4_9allocatorINS6_IKSC_PKNS8_15FieldDescriptorEEEEEPNS1_10btree_nodeINS1_10map_paramsISC_SK_SD_SM_Li256ELb0EEEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISS_XT_EE4typeEv:
  241|      2|  ElemT<I>& get() & {
  242|      2|    return StorageT<I>::get();
  243|      2|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS6_IPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorEEEEELm1ELb1EE3getEv:
  106|      2|  T& get() & { return *this; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterINSt3__14lessINS4_4pairIPKN6google8protobuf10DescriptorEiEEEESC_E15checked_compareENS4_9allocatorINS6_IKSC_PKNS8_15FieldDescriptorEEEEEPNS1_10btree_nodeINS1_10map_paramsISC_SK_SD_SM_Li256ELb0EEEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISS_XT_EE4typeEv:
  241|      1|  ElemT<I>& get() & {
  242|      1|    return StorageT<I>::get();
  243|      1|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS9_15FieldDescriptorENS6_4lessISD_EENS6_9allocatorINS7_IKSD_SG_EEEELi256ELb0EEEEELm2ELb0EE3getEv:
   92|      1|  T& get() & { return value; }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEENS6_19DescriptorsByNameEqIS8_EENSt3__19allocatorIPKS8_EEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  246|    106|  constexpr const ElemT<I>& get() const& {
  247|    106|    return StorageT<I>::get();
  248|    106|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEENS6_19DescriptorsByNameEqIS8_EENSt3__19allocatorIPKS8_EEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  241|     11|  ElemT<I>& get() & {
  242|     11|    return StorageT<I>::get();
  243|     11|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf14FileDescriptorEEELm3ELb1EE3getEv:
  106|     11|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEENS6_19DescriptorsByNameEqIS8_EENSt3__19allocatorIPKS8_EEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  241|     76|  ElemT<I>& get() & {
  242|     76|    return StorageT<I>::get();
  243|     76|  }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashENS6_18SymbolByFullNameEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  246|  3.71k|  constexpr const ElemT<I>& get() const& {
  247|  3.71k|    return StorageT<I>::get();
  248|  3.71k|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashENS6_18SymbolByFullNameEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|    836|  ElemT<I>& get() & {
  242|    836|    return StorageT<I>::get();
  243|    836|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf6SymbolEEELm3ELb1EE3getEv:
  106|  1.90k|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashENS6_18SymbolByFullNameEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|  4.54k|  ElemT<I>& get() & {
  242|  4.54k|    return StorageT<I>::get();
  243|  4.54k|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISL_XT_EE4typeEv:
  246|    424|  constexpr const ElemT<I>& get() const& {
  247|    424|    return StorageT<I>::get();
  248|    424|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISL_XT_EE4typeEv:
  241|     84|  ElemT<I>& get() & {
  242|     84|    return StorageT<I>::get();
  243|     84|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS4_12basic_stringIcNS4_11char_traitsIcEENS5_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEELm3ELb1EE3getEv:
  106|     84|  T& get() & { return *this; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISL_XT_EE4typeEv:
  241|    515|  ElemT<I>& get() & {
  242|    515|    return StorageT<I>::get();
  243|    515|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  246|     40|  constexpr const ElemT<I>& get() const& {
  247|     40|    return StorageT<I>::get();
  248|     40|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  241|     32|  ElemT<I>& get() & {
  242|     32|    return StorageT<I>::get();
  243|     32|  }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_19EnumValueDescriptorEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  246|    315|  constexpr const ElemT<I>& get() const& {
  247|    315|    return StorageT<I>::get();
  248|    315|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_19EnumValueDescriptorEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|     86|  ElemT<I>& get() & {
  242|     86|    return StorageT<I>::get();
  243|     86|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf19EnumValueDescriptorEEELm3ELb1EE3getEv:
  106|     86|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_19EnumValueDescriptorEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|    410|  ElemT<I>& get() & {
  242|    410|    return StorageT<I>::get();
  243|    410|  }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_15FieldDescriptorEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  246|    875|  constexpr const ElemT<I>& get() const& {
  247|    875|    return StorageT<I>::get();
  248|    875|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_15FieldDescriptorEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|    222|  ElemT<I>& get() & {
  242|    222|    return StorageT<I>::get();
  243|    222|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf15FieldDescriptorEEELm3ELb1EE3getEv:
  106|    222|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_15FieldDescriptorEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|  1.17k|  ElemT<I>& get() & {
  242|  1.17k|    return StorageT<I>::get();
  243|  1.17k|  }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_118SymbolByParentHashENS6_16SymbolByParentEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  246|  4.05k|  constexpr const ElemT<I>& get() const& {
  247|  4.05k|    return StorageT<I>::get();
  248|  4.05k|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_118SymbolByParentHashENS6_16SymbolByParentEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|  1.06k|  ElemT<I>& get() & {
  242|  1.06k|    return StorageT<I>::get();
  243|  1.06k|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_118SymbolByParentHashENS6_16SymbolByParentEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|  5.55k|  ElemT<I>& get() & {
  242|  5.55k|    return StorageT<I>::get();
  243|  5.55k|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSA_2EqENSt3__19allocatorINSD_4pairIKS9_NSD_6vectorINS6_14DescriptorPool18DeferredValidation13LifetimesInfoENSE_ISK_EEEEEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISP_XT_EE4typeEv:
  246|     12|  constexpr const ElemT<I>& get() const& {
  247|     12|    return StorageT<I>::get();
  248|     12|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashELm1ELb1EE3getEv:
  106|     91|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashENS6_18SymbolByFullNameEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|    127|  ElemT<I>& get() & {
  242|    127|    return StorageT<I>::get();
  243|    127|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_118SymbolByFullNameEqELm2ELb1EE3getEv:
  106|    127|  T& get() & { return *this; }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashENS6_18SymbolByFullNameEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi1EEERKNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  246|     99|  constexpr const ElemT<I>& get() const& {
  247|     99|    return StorageT<I>::get();
  248|     99|  }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashELm1ELb1EE3getEv:
  105|     99|  constexpr const T& get() const& { return *this; }
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSA_2EqENSt3__19allocatorINSD_4pairIKS9_NSD_6vectorINS6_14DescriptorPool18DeferredValidation13LifetimesInfoENSE_ISK_EEEEEEEEEEC2IS3_JSB_SC_SO_ETnNSD_9enable_ifIXsr4absl11conjunctionINS0_8negationINSD_7is_sameIFvSP_EFvNSD_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISP_JSW_DpT0_EEEEE5valueEbE4typeELb1EEEOSW_DpOS14_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSC_2EqENSt3__19allocatorINSF_4pairIKSB_NSF_6vectorINS8_14DescriptorPool18DeferredValidation13LifetimesInfoENSG_ISM_EEEEEEEEEEENSF_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SD_SE_SQ_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashELm1ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|     12|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE2EqELm2ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|     12|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKPKN6google8protobuf14FileDescriptorENS4_6vectorINS8_14DescriptorPool18DeferredValidation13LifetimesInfoENS5_ISG_EEEEEEEELm3ELb1EEC2ISK_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_10StringHashELm1ELb1EE3getEv:
  106|    311|  T& get() & { return *this; }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_8StringEqELm2ELb1EE3getEv:
  106|    208|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEENS6_19DescriptorsByNameEqIS8_EENSt3__19allocatorIPKS8_EEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  241|      5|  ElemT<I>& get() & {
  242|      5|    return StorageT<I>::get();
  243|      5|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_119DescriptorsByNameEqINS5_14FileDescriptorEEELm2ELb1EE3getEv:
  106|      5|  T& get() & { return *this; }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEENS6_19DescriptorsByNameEqIS8_EENSt3__19allocatorIPKS8_EEEE3getILi1EEERKNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  246|     13|  constexpr const ElemT<I>& get() const& {
  247|     13|    return StorageT<I>::get();
  248|     13|  }
descriptor.cc:_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEELm1ELb1EE3getEv:
  105|     13|  constexpr const T& get() const& { return *this; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterINSt3__14lessINS4_4pairIPKN6google8protobuf10DescriptorEiEEEESC_E15checked_compareENS4_9allocatorINS6_IKSC_PKNS8_15FieldDescriptorEEEEEPNS1_10btree_nodeINS1_10map_paramsISC_SK_SD_SM_Li256ELb0EEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISS_XT_EE4typeEv:
  246|      1|  constexpr const ElemT<I>& get() const& {
  247|      1|    return StorageT<I>::get();
  248|      1|  }
_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_19key_compare_adapterINSt3__14lessINS5_4pairIPKN6google8protobuf10DescriptorEiEEEESD_E15checked_compareELm0ELb1EE3getEv:
  105|      1|  constexpr const T& get() const& { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_15FieldDescriptorEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|      6|  ElemT<I>& get() & {
  242|      6|    return StorageT<I>::get();
  243|      6|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_114ParentNumberEqELm2ELb1EE3getEv:
  106|      7|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_118SymbolByParentHashENS6_16SymbolByParentEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|     52|  ElemT<I>& get() & {
  242|     52|    return StorageT<I>::get();
  243|     52|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_116SymbolByParentEqELm2ELb1EE3getEv:
  106|     52|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_19EnumValueDescriptorEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|      1|  ElemT<I>& get() & {
  242|      1|    return StorageT<I>::get();
  243|      1|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_19EnumValueDescriptorEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|     62|  ElemT<I>& get() & {
  242|     62|    return StorageT<I>::get();
  243|     62|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_116ParentNumberHashELm1ELb1EE3getEv:
  106|    263|  T& get() & { return *this; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS7_9allocatorIiEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISC_XT_EE4typeEv:
  246|      4|  constexpr const ElemT<I>& get() const& {
  247|      4|    return StorageT<I>::get();
  248|      4|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSA_2EqENSt3__19allocatorIS9_EEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISG_XT_EE4typeEv:
  246|    297|  constexpr const ElemT<I>& get() const& {
  247|    297|    return StorageT<I>::get();
  248|    297|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSA_2EqENSt3__19allocatorIS9_EEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISG_XT_EE4typeEv:
  241|    291|  ElemT<I>& get() & {
  242|    291|    return StorageT<I>::get();
  243|    291|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSA_2EqENSt3__19allocatorINSD_4pairIKS9_NS6_17DescriptorBuilder12MessageHintsEEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISL_XT_EE4typeEv:
  246|      8|  constexpr const ElemT<I>& get() const& {
  247|      8|    return StorageT<I>::get();
  248|      8|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS0_11string_viewEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISA_XT_EE4typeEv:
  246|  1.36k|  constexpr const ElemT<I>& get() const& {
  247|  1.36k|    return StorageT<I>::get();
  248|  1.36k|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS0_11string_viewEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISA_XT_EE4typeEv:
  241|     12|  ElemT<I>& get() & {
  242|     12|    return StorageT<I>::get();
  243|     12|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS0_11string_viewEEELm3ELb1EE3getEv:
  106|     12|  T& get() & { return *this; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS0_11string_viewEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISA_XT_EE4typeEv:
  241|    674|  ElemT<I>& get() & {
  242|    674|    return StorageT<I>::get();
  243|    674|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS0_11string_viewEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISA_XT_EE4typeEv:
  241|      3|  ElemT<I>& get() & {
  242|      3|    return StorageT<I>::get();
  243|      3|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS0_11string_viewEEEEE3getILi1EEERKNS1_25internal_compressed_tuple4ElemISA_XT_EE4typeEv:
  246|    313|  constexpr const ElemT<I>& get() const& {
  247|    313|    return StorageT<I>::get();
  248|    313|  }
_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_10StringHashELm1ELb1EE3getEv:
  105|    321|  constexpr const T& get() const& { return *this; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashINSt3__16vectorIiNS6_9allocatorIiEEEEEENS6_8equal_toISA_EENS8_INS6_4pairIKSA_iEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISI_XT_EE4typeEv:
  246|      4|  constexpr const ElemT<I>& get() const& {
  247|      4|    return StorageT<I>::get();
  248|      4|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashINSt3__16vectorIiNS6_9allocatorIiEEEEEENS6_8equal_toISA_EENS8_INS6_4pairIKSA_SA_EEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISI_XT_EE4typeEv:
  246|      4|  constexpr const ElemT<I>& get() const& {
  247|      4|    return StorageT<I>::get();
  248|      4|  }
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEEEEEC2IS3_JS4_S5_SD_ETnNS6_9enable_ifIXsr4absl11conjunctionINS0_8negationINS6_7is_sameIFvSE_EFvNS6_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISE_JSL_DpT0_EEEEE5valueEbE4typeELb1EEEOSL_DpOST_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEEEEENS8_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S6_S7_SF_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_10StringHashELm1ELb1EEC2IS4_EENS0_10in_place_tEOT_:
  103|     79|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_8StringEqELm2ELb1EEC2IS4_EENS0_10in_place_tEOT_:
  103|     79|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_12basic_stringIcNS4_11char_traitsIcEENS5_IcEEEEEELm3ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSA_2EqENSt3__19allocatorIS9_EEEEC2IS3_JSB_SC_SF_ETnNSD_9enable_ifIXsr4absl11conjunctionINS0_8negationINSD_7is_sameIFvSG_EFvNSD_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISG_JSN_DpT0_EEEEE5valueEbE4typeELb1EEEOSN_DpOSV_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSC_2EqENSt3__19allocatorISB_EEEEENSF_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SD_SE_SH_EEENS0_10in_place_tEDpOT_:
  126|      8|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashELm1ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|     14|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_6HashEqIPKN6google8protobuf10DescriptorEvE2EqELm2ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|     14|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf10DescriptorEEELm3ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEEEEC2IS3_JS4_S5_SK_ETnNS6_9enable_ifIXsr4absl11conjunctionINS0_8negationINS6_7is_sameIFvSL_EFvNS6_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISL_JSS_DpT0_EEEEE5valueEbE4typeELb1EEEOSS_DpOS10_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS8_4pairIKNS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEEEEENS8_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S6_S7_SM_EEENS0_10in_place_tEDpOT_:
  126|      8|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS4_12basic_stringIcNS4_11char_traitsIcEENS5_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEELm3ELb1EEC2ISI_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashENS6_18SymbolByFullNameEqENSt3__19allocatorINS5_6SymbolEEEEEC2IS3_JS7_S8_SC_ETnNS9_9enable_ifIXsr4absl11conjunctionINS0_8negationINS9_7is_sameIFvSD_EFvNS9_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISD_JSK_DpT0_EEEEE5valueEbE4typeELb1EEEOSK_DpOSS_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorINS7_6SymbolEEEEEENSB_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S9_SA_SE_EEENS0_10in_place_tEDpOT_:
  126|      8|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashELm1ELb1EEC2IS7_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_118SymbolByFullNameEqELm2ELb1EEC2IS7_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf6SymbolEEELm3ELb1EEC2IS9_EENS0_10in_place_tEOT_:
  103|      6|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEENS6_19DescriptorsByNameEqIS8_EENSt3__19allocatorIPKS8_EEEEC2IS3_JS9_SB_SG_ETnNSC_9enable_ifIXsr4absl11conjunctionINS0_8negationINSC_7is_sameIFvSH_EFvNSC_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISH_JSO_DpT0_EEEEE5valueEbE4typeELb1EEEOSO_DpOSW_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS7_14FileDescriptorEEENS8_19DescriptorsByNameEqISA_EENSt3__19allocatorIPKSA_EEEEENSE_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SB_SD_SI_EEENS0_10in_place_tEDpOT_:
  126|      8|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEELm1ELb1EEC2IS9_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_119DescriptorsByNameEqINS5_14FileDescriptorEEELm2ELb1EEC2IS9_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf14FileDescriptorEEELm3ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|     10|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterINSt3__14lessINS4_4pairIPKN6google8protobuf10DescriptorEiEEEESC_E15checked_compareENS4_9allocatorINS6_IKSC_PKNS8_15FieldDescriptorEEEEEPNS1_10btree_nodeINS1_10map_paramsISC_SK_SD_SM_Li256ELb0EEEEEEEC2IRKSF_JRKSM_SR_ETnNS4_9enable_ifIXsr4absl11conjunctionINS0_8negationINS4_7is_sameIFvSS_EFvNS4_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISS_JS13_DpT0_EEEEE5valueEbE4typeELb1EEEOS13_DpOS1B_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_19key_compare_adapterINSt3__14lessINS6_4pairIPKN6google8protobuf10DescriptorEiEEEESE_E15checked_compareENS6_9allocatorINS8_IKSE_PKNSA_15FieldDescriptorEEEEEPNS1_10btree_nodeINS1_10map_paramsISE_SM_SF_SO_Li256ELb0EEEEEEEENS6_16integer_sequenceImJLm0ELm1ELm2EEEELb1EEC2IJRKSH_RKSO_ST_EEENS0_10in_place_tEDpOT_:
  126|      6|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_19key_compare_adapterINSt3__14lessINS5_4pairIPKN6google8protobuf10DescriptorEiEEEESD_E15checked_compareELm0ELb1EEC2IRKSG_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS6_IPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorEEEEELm1ELb1EEC2IRKSI_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS9_15FieldDescriptorENS6_4lessISD_EENS6_9allocatorINS7_IKSD_SG_EEEELi256ELb0EEEEELm2ELb0EEC2ISP_EENS0_10in_place_tEOT_:
   90|      2|      : value(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEENS6_10unique_ptrIN6google8protobuf10FeatureSetENS6_14default_deleteISI_EEEEEEEEEEC2IS3_JS4_S5_SN_ETnNS6_9enable_ifIXsr4absl11conjunctionINS0_8negationINS6_7is_sameIFvSO_EFvNS6_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISO_JSV_DpT0_EEEEE5valueEbE4typeELb1EEEOSV_DpOS13_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS8_4pairIKNS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEENS8_10unique_ptrIN6google8protobuf10FeatureSetENS8_14default_deleteISK_EEEEEEEEEEENS8_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S6_S7_SP_EEENS0_10in_place_tEDpOT_:
  126|      8|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS4_12basic_stringIcNS4_11char_traitsIcEENS5_IcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISG_EEEEEEEELm3ELb1EEC2ISL_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISL_XT_EE4typeEv:
  241|    101|  ElemT<I>& get() & {
  242|    101|    return StorageT<I>::get();
  243|    101|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISL_XT_EE4typeEv:
  241|      4|  ElemT<I>& get() & {
  242|      4|    return StorageT<I>::get();
  243|      4|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_118SymbolByParentHashENS6_16SymbolByParentEqENSt3__19allocatorINS5_6SymbolEEEEEC2IS3_JS7_S8_SC_ETnNS9_9enable_ifIXsr4absl11conjunctionINS0_8negationINS9_7is_sameIFvSD_EFvNS9_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISD_JSK_DpT0_EEEEE5valueEbE4typeELb1EEEOSK_DpOSS_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorINS7_6SymbolEEEEEENSB_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S9_SA_SE_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_118SymbolByParentHashELm1ELb1EEC2IS7_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_116SymbolByParentEqELm2ELb1EEC2IS7_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_15FieldDescriptorEEEEEC2IS3_JS7_S8_SE_ETnNS9_9enable_ifIXsr4absl11conjunctionINS0_8negationINS9_7is_sameIFvSF_EFvNS9_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISF_JSM_DpT0_EEEEE5valueEbE4typeELb1EEEOSM_DpOSU_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS8_14ParentNumberEqENSt3__19allocatorIPKNS7_15FieldDescriptorEEEEEENSB_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S9_SA_SG_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_116ParentNumberHashELm1ELb1EEC2IS7_EENS0_10in_place_tEOT_:
  103|     12|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_114ParentNumberEqELm2ELb1EEC2IS7_EENS0_10in_place_tEOT_:
  103|     12|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf15FieldDescriptorEEELm3ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_19EnumValueDescriptorEEEEEC2IS3_JS7_S8_SE_ETnNS9_9enable_ifIXsr4absl11conjunctionINS0_8negationINS9_7is_sameIFvSF_EFvNS9_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISF_JSM_DpT0_EEEEE5valueEbE4typeELb1EEEOSM_DpOSU_:
  236|      8|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      8|                                             absl::forward<First>(first),
  238|      8|                                             absl::forward<Vs>(base)...) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS8_14ParentNumberEqENSt3__19allocatorIPKNS7_19EnumValueDescriptorEEEEEENSB_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S9_SA_SG_EEENS0_10in_place_tEDpOT_:
  126|     32|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf19EnumValueDescriptorEEELm3ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|      8|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEPKN6google8protobuf23SourceCodeInfo_LocationEEEEEEEC2IS3_JS4_S5_SL_ETnNS6_9enable_ifIXsr4absl11conjunctionINS0_8negationINS6_7is_sameIFvSM_EFvNS6_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISM_JST_DpT0_EEEEE5valueEbE4typeELb1EEEOST_DpOS11_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS8_4pairIKNS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEPKN6google8protobuf23SourceCodeInfo_LocationEEEEEEEENS8_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S6_S7_SN_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS4_12basic_stringIcNS4_11char_traitsIcEENS5_IcEEEEPKN6google8protobuf23SourceCodeInfo_LocationEEEEELm3ELb1EEC2ISJ_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashENS6_18SymbolByFullNameEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|    816|  ElemT<I>& get() & {
  242|    816|    return StorageT<I>::get();
  243|    816|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashELm1ELb1EE3getEv:
  106|    816|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEENS6_19DescriptorsByNameEqIS8_EENSt3__19allocatorIPKS8_EEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  241|      4|  ElemT<I>& get() & {
  242|      4|    return StorageT<I>::get();
  243|      4|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS5_14FileDescriptorEEELm1ELb1EE3getEv:
  106|      4|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_118SymbolByParentHashENS6_16SymbolByParentEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|  1.01k|  ElemT<I>& get() & {
  242|  1.01k|    return StorageT<I>::get();
  243|  1.01k|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_118SymbolByParentHashELm1ELb1EE3getEv:
  106|  1.01k|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_15FieldDescriptorEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|    201|  ElemT<I>& get() & {
  242|    201|    return StorageT<I>::get();
  243|    201|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEENS6_10unique_ptrIN6google8protobuf10FeatureSetENS6_14default_deleteISI_EEEEEEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISO_XT_EE4typeEv:
  241|    207|  ElemT<I>& get() & {
  242|    207|    return StorageT<I>::get();
  243|    207|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEENS6_10unique_ptrIN6google8protobuf10FeatureSetENS6_14default_deleteISI_EEEEEEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISO_XT_EE4typeEv:
  241|    204|  ElemT<I>& get() & {
  242|    204|    return StorageT<I>::get();
  243|    204|  }
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_4pairIKNS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEbEEEEEEC2IS3_JS4_S5_SG_ETnNS6_9enable_ifIXsr4absl11conjunctionINS0_8negationINS6_7is_sameIFvSH_EFvNS6_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISH_JSO_DpT0_EEEEE5valueEbE4typeELb1EEEOSO_DpOSW_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS8_4pairIKNS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEbEEEEEEENS8_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S6_S7_SI_EEENS0_10in_place_tEDpOT_:
  126|      8|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS4_12basic_stringIcNS4_11char_traitsIcEENS5_IcEEEEbEEEELm3ELb1EEC2ISE_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS6_12basic_stringIcNS6_11char_traitsIcEENS7_IcEEEEEEEE3getILi1EEERKNS1_25internal_compressed_tuple4ElemISE_XT_EE4typeEv:
  246|      8|  constexpr const ElemT<I>& get() const& {
  247|      8|    return StorageT<I>::get();
  248|      8|  }
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSA_2EqENSt3__19allocatorIS9_EEEEC2IS3_JSB_SC_SF_ETnNSD_9enable_ifIXsr4absl11conjunctionINS0_8negationINSD_7is_sameIFvSG_EFvNSD_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISG_JSN_DpT0_EEEEE5valueEbE4typeELb1EEEOSN_DpOSV_:
  236|      8|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      8|                                             absl::forward<First>(first),
  238|      8|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSC_2EqENSt3__19allocatorISB_EEEEENSF_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SD_SE_SH_EEENS0_10in_place_tEDpOT_:
  126|     32|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSA_2EqENSt3__19allocatorINSD_4pairIKS9_NS6_17DescriptorBuilder12MessageHintsEEEEEEEC2IS3_JSB_SC_SK_ETnNSD_9enable_ifIXsr4absl11conjunctionINS0_8negationINSD_7is_sameIFvSL_EFvNSD_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISL_JSS_DpT0_EEEEE5valueEbE4typeELb1EEEOSS_DpOS10_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSC_2EqENSt3__19allocatorINSF_4pairIKSB_NS8_17DescriptorBuilder12MessageHintsEEEEEEEENSF_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SD_SE_SM_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKPKN6google8protobuf10DescriptorENS8_17DescriptorBuilder12MessageHintsEEEEELm3ELb1EEC2ISG_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSA_2EqENSt3__19allocatorIS9_EEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISG_XT_EE4typeEv:
  241|     91|  ElemT<I>& get() & {
  242|     91|    return StorageT<I>::get();
  243|     91|  }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashENSA_2EqENSt3__19allocatorIS9_EEEE3getILi1EEERKNS1_25internal_compressed_tuple4ElemISG_XT_EE4typeEv:
  246|      1|  constexpr const ElemT<I>& get() const& {
  247|      1|    return StorageT<I>::get();
  248|      1|  }
_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashELm1ELb1EE3getEv:
  105|      1|  constexpr const T& get() const& { return *this; }
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS0_11string_viewEEEEEC2IS3_JS4_S5_S9_ETnNS6_9enable_ifIXsr4absl11conjunctionINS0_8negationINS6_7is_sameIFvSA_EFvNS6_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISA_JSH_DpT0_EEEEE5valueEbE4typeELb1EEEOSH_DpOSP_:
  236|     65|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|     65|                                             absl::forward<First>(first),
  238|     65|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_10StringHashENS1_8StringEqENSt3__19allocatorINS0_11string_viewEEEEEENS8_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S6_S7_SB_EEENS0_10in_place_tEDpOT_:
  126|    260|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS0_11string_viewEEELm3ELb1EEC2IS7_EENS0_10in_place_tEOT_:
  103|     65|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS7_9allocatorIiEEEEC2IS3_JS6_S9_SB_ETnNS7_9enable_ifIXsr4absl11conjunctionINS0_8negationINS7_7is_sameIFvSC_EFvNS7_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISC_JSJ_DpT0_EEEEE5valueEbE4typeELb1EEEOSJ_DpOSR_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS9_9allocatorIiEEEEENS9_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_S8_SB_SD_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS0_13hash_internal4HashIiEELm1ELb1EEC2IS6_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__18equal_toIiEELm2ELb1EEC2IS6_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIiEELm3ELb1EEC2IS6_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashINSt3__16vectorIiNS6_9allocatorIiEEEEEENS6_8equal_toISA_EENS8_INS6_4pairIKSA_SA_EEEEEEC2IS3_JSB_SD_SH_ETnNS6_9enable_ifIXsr4absl11conjunctionINS0_8negationINS6_7is_sameIFvSI_EFvNS6_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISI_JSP_DpT0_EEEEE5valueEbE4typeELb1EEEOSP_DpOSX_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashINSt3__16vectorIiNS8_9allocatorIiEEEEEENS8_8equal_toISC_EENSA_INS8_4pairIKSC_SC_EEEEEEENS8_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SD_SF_SJ_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS0_13hash_internal4HashINSt3__16vectorIiNS6_9allocatorIiEEEEEELm1ELb1EEC2ISB_EENS0_10in_place_tEOT_:
  103|      8|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__18equal_toINS4_6vectorIiNS4_9allocatorIiEEEEEELm2ELb1EEC2ISA_EENS0_10in_place_tEOT_:
  103|      8|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS4_6vectorIiNS5_IiEEEES9_EEEELm3ELb1EEC2ISC_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashINSt3__16vectorIiNS6_9allocatorIiEEEEEENS6_8equal_toISA_EENS8_INS6_4pairIKSA_iEEEEEEC2IS3_JSB_SD_SH_ETnNS6_9enable_ifIXsr4absl11conjunctionINS0_8negationINS6_7is_sameIFvSI_EFvNS6_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISI_JSP_DpT0_EEEEE5valueEbE4typeELb1EEEOSP_DpOSX_:
  236|      4|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      4|                                             absl::forward<First>(first),
  238|      4|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS0_13hash_internal4HashINSt3__16vectorIiNS8_9allocatorIiEEEEEENS8_8equal_toISC_EENSA_INS8_4pairIKSC_iEEEEEEENS8_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SD_SF_SJ_EEENS0_10in_place_tEDpOT_:
  126|     16|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKNS4_6vectorIiNS5_IiEEEEiEEEELm3ELb1EEC2ISC_EENS0_10in_place_tEOT_:
  103|      4|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS7_9FileEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEEC2IRKSB_JRKSE_SJ_ETnNSC_9enable_ifIXsr4absl11conjunctionINS0_8negationINSC_7is_sameIFvSK_EFvNSC_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISK_JSV_DpT0_EEEEE5valueEbE4typeELb1EEEOSV_DpOS13_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS9_9FileEntryEE15checked_compareENSt3__19allocatorISB_EEPNS1_10btree_nodeINS1_10set_paramsISB_SA_SG_Li256ELb0EEEEEEEENSE_16integer_sequenceImJLm0ELm1ELm2EEEELb1EEC2IJRKSD_RKSG_SL_EEENS0_10in_place_tEDpOT_:
  126|      6|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS8_9FileEntryEE15checked_compareELm0ELb0EEC2IRKSC_EENS0_10in_place_tEOT_:
   90|      2|      : value(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEELm1ELb1EEC2IRKSB_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS9_11FileCompareENSt3__19allocatorISA_EELi256ELb0EEEEELm2ELb0EEC2ISH_EENS0_10in_place_tEOT_:
   90|      2|      : value(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS7_11SymbolEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEEC2IRKSB_JRKSE_SJ_ETnNSC_9enable_ifIXsr4absl11conjunctionINS0_8negationINSC_7is_sameIFvSK_EFvNSC_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISK_JSV_DpT0_EEEEE5valueEbE4typeELb1EEEOSV_DpOS13_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS9_11SymbolEntryEE15checked_compareENSt3__19allocatorISB_EEPNS1_10btree_nodeINS1_10set_paramsISB_SA_SG_Li256ELb0EEEEEEEENSE_16integer_sequenceImJLm0ELm1ELm2EEEELb1EEC2IJRKSD_RKSG_SL_EEENS0_10in_place_tEDpOT_:
  126|      6|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS8_11SymbolEntryEE15checked_compareELm0ELb0EEC2IRKSC_EENS0_10in_place_tEOT_:
   90|      2|      : value(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEELm1ELb1EEC2IRKSB_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS9_13SymbolCompareENSt3__19allocatorISA_EELi256ELb0EEEEELm2ELb0EEC2ISH_EENS0_10in_place_tEOT_:
   90|      2|      : value(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS7_14ExtensionEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEEC2IRKSB_JRKSE_SJ_ETnNSC_9enable_ifIXsr4absl11conjunctionINS0_8negationINSC_7is_sameIFvSK_EFvNSC_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISK_JSV_DpT0_EEEEE5valueEbE4typeELb1EEEOSV_DpOS13_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS9_14ExtensionEntryEE15checked_compareENSt3__19allocatorISB_EEPNS1_10btree_nodeINS1_10set_paramsISB_SA_SG_Li256ELb0EEEEEEEENSE_16integer_sequenceImJLm0ELm1ELm2EEEELb1EEC2IJRKSD_RKSG_SL_EEENS0_10in_place_tEDpOT_:
  126|      6|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS8_14ExtensionEntryEE15checked_compareELm0ELb0EEC2IRKSC_EENS0_10in_place_tEOT_:
   90|      2|      : value(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEELm1ELb1EEC2IRKSB_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS9_16ExtensionCompareENSt3__19allocatorISA_EELi256ELb0EEEEELm2ELb0EEC2ISH_EENS0_10in_place_tEOT_:
   90|      2|      : value(absl::forward<V>(v)) {}
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS7_9FileEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  241|     14|  ElemT<I>& get() & {
  242|     14|    return StorageT<I>::get();
  243|     14|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEELm1ELb1EE3getEv:
  106|     14|  T& get() & { return *this; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS7_9FileEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  241|     12|  ElemT<I>& get() & {
  242|     12|    return StorageT<I>::get();
  243|     12|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS9_11FileCompareENSt3__19allocatorISA_EELi256ELb0EEEEELm2ELb0EE3getEv:
   92|     12|  T& get() & { return value; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS7_9FileEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  246|     18|  constexpr const ElemT<I>& get() const& {
  247|     18|    return StorageT<I>::get();
  248|     18|  }
_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS8_9FileEntryEE15checked_compareELm0ELb0EE3getEv:
   91|     18|  constexpr const T& get() const& { return value; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS7_14ExtensionEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  241|      3|  ElemT<I>& get() & {
  242|      3|    return StorageT<I>::get();
  243|      3|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEELm1ELb1EE3getEv:
  106|      3|  T& get() & { return *this; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS7_14ExtensionEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  241|      4|  ElemT<I>& get() & {
  242|      4|    return StorageT<I>::get();
  243|      4|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS9_16ExtensionCompareENSt3__19allocatorISA_EELi256ELb0EEEEELm2ELb0EE3getEv:
   92|      4|  T& get() & { return value; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS7_14ExtensionEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  246|      3|  constexpr const ElemT<I>& get() const& {
  247|      3|    return StorageT<I>::get();
  248|      3|  }
_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS8_14ExtensionEntryEE15checked_compareELm0ELb0EE3getEv:
   91|      3|  constexpr const T& get() const& { return value; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS7_11SymbolEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi2EEERKNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  246|     30|  constexpr const ElemT<I>& get() const& {
  247|     30|    return StorageT<I>::get();
  248|     30|  }
_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS9_13SymbolCompareENSt3__19allocatorISA_EELi256ELb0EEEEELm2ELb0EE3getEv:
   91|     30|  constexpr const T& get() const& { return value; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS7_11SymbolEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  246|    197|  constexpr const ElemT<I>& get() const& {
  247|    197|    return StorageT<I>::get();
  248|    197|  }
_ZNKR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS8_11SymbolEntryEE15checked_compareELm0ELb0EE3getEv:
   91|    197|  constexpr const T& get() const& { return value; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS7_11SymbolEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  241|    196|  ElemT<I>& get() & {
  242|    196|    return StorageT<I>::get();
  243|    196|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS9_13SymbolCompareENSt3__19allocatorISA_EELi256ELb0EEEEELm2ELb0EE3getEv:
   92|    196|  T& get() & { return value; }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS7_11SymbolEntryEE15checked_compareENSt3__19allocatorIS9_EEPNS1_10btree_nodeINS1_10set_paramsIS9_S8_SE_Li256ELb0EEEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISK_XT_EE4typeEv:
  241|     78|  ElemT<I>& get() & {
  242|     78|    return StorageT<I>::get();
  243|     78|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEELm1ELb1EE3getEv:
  106|     78|  T& get() & { return *this; }
_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSA_2EqENSt3__19allocatorINSD_4pairIKS9_PKNS6_21DynamicMessageFactory8TypeInfoEEEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISN_XT_EE4typeEv:
  246|     12|  constexpr const ElemT<I>& get() const& {
  247|     12|    return StorageT<I>::get();
  248|     12|  }
_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSA_2EqENSt3__19allocatorINSD_4pairIKS9_PKNS6_21DynamicMessageFactory8TypeInfoEEEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISN_XT_EE4typeEv:
  241|      8|  ElemT<I>& get() & {
  242|      8|    return StorageT<I>::get();
  243|      8|  }
_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSA_2EqENSt3__19allocatorINSD_4pairIKS9_PKNS6_21DynamicMessageFactory8TypeInfoEEEEEEEC2IS3_JSB_SC_SM_ETnNSD_9enable_ifIXsr4absl11conjunctionINS0_8negationINSD_7is_sameIFvSN_EFvNSD_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISN_JSU_DpT0_EEEEE5valueEbE4typeELb1EEEOSU_DpOS12_:
  236|      6|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      6|                                             absl::forward<First>(first),
  238|      6|                                             absl::forward<Vs>(base)...) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSC_2EqENSt3__19allocatorINSF_4pairIKSB_PKNS8_21DynamicMessageFactory8TypeInfoEEEEEEEENSF_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SD_SE_SO_EEENS0_10in_place_tEDpOT_:
  126|     24|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKPKN6google8protobuf10DescriptorEPKNS8_21DynamicMessageFactory8TypeInfoEEEEELm3ELb1EEC2ISI_EENS0_10in_place_tEOT_:
  103|      6|      : T(absl::forward<V>(v)) {}
message.cc:_ZNKR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENS7_18DescriptorByNameEqENSt3__19allocatorIPKNS5_8internal15DescriptorTableEEEEE3getILi0EEERKNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  246|     68|  constexpr const ElemT<I>& get() const& {
  247|     68|    return StorageT<I>::get();
  248|     68|  }
message.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENS7_18DescriptorByNameEqENSt3__19allocatorIPKNS5_8internal15DescriptorTableEEEEE3getILi3EEERNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  241|     17|  ElemT<I>& get() & {
  242|     17|    return StorageT<I>::get();
  243|     17|  }
_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf8internal15DescriptorTableEEELm3ELb1EE3getEv:
  106|     17|  T& get() & { return *this; }
message.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENS7_18DescriptorByNameEqENSt3__19allocatorIPKNS5_8internal15DescriptorTableEEEEE3getILi0EEERNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  241|     77|  ElemT<I>& get() & {
  242|     77|    return StorageT<I>::get();
  243|     77|  }
message.cc:_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENS7_18DescriptorByNameEqENSt3__19allocatorIPKNS5_8internal15DescriptorTableEEEEEC2IS3_JS8_S9_SG_ETnNSA_9enable_ifIXsr4absl11conjunctionINS0_8negationINSA_7is_sameIFvSH_EFvNSA_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISH_JSO_DpT0_EEEEE5valueEbE4typeELb1EEEOSO_DpOSW_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
message.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENS9_18DescriptorByNameEqENSt3__19allocatorIPKNS7_8internal15DescriptorTableEEEEEENSC_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SA_SB_SI_EEENS0_10in_place_tEDpOT_:
  126|      8|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
message.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashELm1ELb1EEC2IS8_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
message.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory18DescriptorByNameEqELm2ELb1EEC2IS8_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorIPKN6google8protobuf8internal15DescriptorTableEEELm3ELb1EEC2ISC_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
message.cc:_ZN4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSA_2EqENSt3__19allocatorINSD_4pairIKS9_NS6_12_GLOBAL__N_123GeneratedMessageFactory10MessagePtrEEEEEEEC2IS3_JSB_SC_SL_ETnNSD_9enable_ifIXsr4absl11conjunctionINS0_8negationINSD_7is_sameIFvSM_EFvNSD_5decayIT_E4typeEEEEEENS1_25internal_compressed_tuple27TupleItemsMoveConstructibleISM_JST_DpT0_EEEEE5valueEbE4typeELb1EEEOST_DpOS11_:
  236|      2|      : CompressedTuple::CompressedTupleImpl(absl::in_place,
  237|      2|                                             absl::forward<First>(first),
  238|      2|                                             absl::forward<Vs>(base)...) {}
message.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple19CompressedTupleImplINS1_15CompressedTupleIJNS1_12CommonFieldsENS1_6HashEqIPKN6google8protobuf10DescriptorEvE4HashENSC_2EqENSt3__19allocatorINSF_4pairIKSB_NS8_12_GLOBAL__N_123GeneratedMessageFactory10MessagePtrEEEEEEEENSF_16integer_sequenceImJLm0ELm1ELm2ELm3EEEELb1EEC2IJS5_SD_SE_SN_EEENS0_10in_place_tEDpOT_:
  126|      8|      : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
message.cc:_ZN4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageINSt3__19allocatorINS4_4pairIKPKN6google8protobuf10DescriptorENS8_12_GLOBAL__N_123GeneratedMessageFactory10MessagePtrEEEEELm3ELb1EEC2ISH_EENS0_10in_place_tEOT_:
  103|      2|      : T(absl::forward<V>(v)) {}
message.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENS7_18DescriptorByNameEqENSt3__19allocatorIPKNS5_8internal15DescriptorTableEEEEE3getILi1EEERNS1_25internal_compressed_tuple4ElemISH_XT_EE4typeEv:
  241|      6|  ElemT<I>& get() & {
  242|      6|    return StorageT<I>::get();
  243|      6|  }
message.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashELm1ELb1EE3getEv:
  106|      6|  T& get() & { return *this; }

_ZN4absl12lts_2024011618container_internal27SanitizerPoisonMemoryRegionEPKvm:
  220|    430|inline void SanitizerPoisonMemoryRegion(const void* m, size_t s) {
  221|       |#ifdef ABSL_HAVE_ADDRESS_SANITIZER
  222|       |  ASAN_POISON_MEMORY_REGION(m, s);
  223|       |#endif
  224|       |#ifdef ABSL_HAVE_MEMORY_SANITIZER
  225|       |  __msan_poison(m, s);
  226|       |#endif
  227|    430|  (void)m;
  228|    430|  (void)s;
  229|    430|}
_ZN4absl12lts_2024011618container_internal29SanitizerUnpoisonMemoryRegionEPKvm:
  231|  2.60k|inline void SanitizerUnpoisonMemoryRegion(const void* m, size_t s) {
  232|       |#ifdef ABSL_HAVE_ADDRESS_SANITIZER
  233|       |  ASAN_UNPOISON_MEMORY_REGION(m, s);
  234|       |#endif
  235|       |#ifdef ABSL_HAVE_MEMORY_SANITIZER
  236|       |  __msan_unpoison(m, s);
  237|       |#endif
  238|  2.60k|  (void)m;
  239|  2.60k|  (void)s;
  240|  2.60k|}
_ZN4absl12lts_2024011618container_internal8AllocateILm8ENSt3__19allocatorIcEEEEPvPT0_m:
   55|     76|void* Allocate(Alloc* alloc, size_t n) {
   56|     76|  static_assert(Alignment > 0, "");
   57|     76|  assert(n && "n must be positive");
   58|     76|  using M = AlignedType<Alignment>;
   59|     76|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   60|     76|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   61|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   62|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   63|       |  // with the "foo(bar)" syntax.
   64|     76|  A my_mem_alloc(*alloc);
   65|     76|  void* p = AT::allocate(my_mem_alloc, (n + sizeof(M) - 1) / sizeof(M));
   66|       |  assert(reinterpret_cast<uintptr_t>(p) % Alignment == 0 &&
   67|     76|         "allocator does not respect alignment");
   68|     76|  return p;
   69|     76|}
_ZN4absl12lts_2024011618container_internal10DeallocateILm8ENSt3__19allocatorIcEEEEvPT0_Pvm:
   74|     56|void Deallocate(Alloc* alloc, void* p, size_t n) {
   75|     56|  static_assert(Alignment > 0, "");
   76|     56|  assert(n && "n must be positive");
   77|     56|  using M = AlignedType<Alignment>;
   78|     56|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   79|     56|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   80|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   81|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   82|       |  // with the "foo(bar)" syntax.
   83|     56|  A my_mem_alloc(*alloc);
   84|     56|  AT::deallocate(my_mem_alloc, static_cast<M*>(p),
   85|     56|                 (n + sizeof(M) - 1) / sizeof(M));
   86|     56|}
extension_set.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS7_12_GLOBAL__N_115ExtensionHasherENSA_11ExtensionEqENSt3__19allocatorIS8_EEE12EqualElementINSA_16ExtensionInfoKeyEEERS8_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISM_EEEEOSL_OSM_:
  214|      8|DecomposeValue(F&& f, Arg&& arg) {
  215|      8|  const auto& key = arg;
  216|      8|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|      8|}
extension_set.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS7_12_GLOBAL__N_115ExtensionHasherENSA_11ExtensionEqENSt3__19allocatorIS8_EEE19EmplaceDecomposableERKS8_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISL_EEEEOSK_OSL_:
  214|      1|DecomposeValue(F&& f, Arg&& arg) {
  215|      1|  const auto& key = arg;
  216|      1|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|      1|}
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE7destroyINS7_INS3_4pairIKS9_SG_EEEEEEvPT_PNS1_13map_slot_typeIS9_SG_EE:
  417|      4|  static void destroy(Allocator* alloc, slot_type* slot) {
  418|      4|    if (kMutableKeys::value) {
  ------------------
  |  Branch (418:9): [True: 4, Folded]
  ------------------
  419|      4|      absl::allocator_traits<Allocator>::destroy(*alloc, &slot->mutable_value);
  420|      4|    } else {
  421|      0|      absl::allocator_traits<Allocator>::destroy(*alloc, &slot->value);
  422|      0|    }
  423|      4|  }
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE7destroyINS7_INS3_4pairIKS9_SD_EEEEEEvPT_PNS1_13map_slot_typeIS9_SD_EE:
  417|     50|  static void destroy(Allocator* alloc, slot_type* slot) {
  418|     50|    if (kMutableKeys::value) {
  ------------------
  |  Branch (418:9): [True: 50, Folded]
  ------------------
  419|     50|      absl::allocator_traits<Allocator>::destroy(*alloc, &slot->mutable_value);
  420|     50|    } else {
  421|      0|      absl::allocator_traits<Allocator>::destroy(*alloc, &slot->value);
  422|      0|    }
  423|     50|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS6_12_GLOBAL__N_120SymbolByFullNameHashENS9_18SymbolByFullNameEqENSt3__19allocatorIS7_EEE12EqualElementINS9_13FullNameQueryEEERS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISL_EEEEOSK_OSL_:
  214|     93|DecomposeValue(F&& f, Arg&& arg) {
  215|     93|  const auto& key = arg;
  216|     93|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|     93|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS6_12_GLOBAL__N_121DescriptorsByNameHashIS7_EENSB_19DescriptorsByNameEqIS7_EENSt3__19allocatorIS9_EEE12EqualElementINS0_11string_viewEEERS9_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISP_EEEEOSO_OSP_:
  214|      5|DecomposeValue(F&& f, Arg&& arg) {
  215|      5|  const auto& key = arg;
  216|      5|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|      5|}
_ZN4absl12lts_2024011618container_internal10DeallocateILm8ENSt3__19allocatorINS0_11string_viewEEEEEvPT0_Pvm:
   74|      3|void Deallocate(Alloc* alloc, void* p, size_t n) {
   75|      3|  static_assert(Alignment > 0, "");
   76|      3|  assert(n && "n must be positive");
   77|      3|  using M = AlignedType<Alignment>;
   78|      3|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   79|      3|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   80|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   81|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   82|       |  // with the "foo(bar)" syntax.
   83|      3|  A my_mem_alloc(*alloc);
   84|      3|  AT::deallocate(my_mem_alloc, static_cast<M*>(p),
   85|      3|                 (n + sizeof(M) - 1) / sizeof(M));
   86|      3|}
_ZN4absl12lts_2024011618container_internal13DecomposePairINS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS9_INS5_4pairIKSB_SF_EEEEE19EmplaceDecomposableEJRKNSJ_ISB_SF_EEEEEDTclsr15memory_internalE17DecomposePairImplclsr3stdE7forwardIT_Efp_Ecl8PairArgsspclsr3stdE7forwardIT0_Efp0_EEEEOSS_DpOST_:
  206|     32|        std::forward<F>(f), PairArgs(std::forward<Args>(args)...))) {
  207|     32|  return memory_internal::DecomposePairImpl(
  208|     32|      std::forward<F>(f), PairArgs(std::forward<Args>(args)...));
  209|     32|}
_ZN4absl12lts_2024011618container_internal15memory_internal17DecomposePairImplINS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENSA_INS6_4pairIKSC_SG_EEEEE19EmplaceDecomposableERSL_NS6_5tupleIJRKSG_EEEEEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEL_ZNS6_L19piecewise_constructEEclsr3stdE7declvalINSR_IJSW_EEEEEclsr3stdE7declvalIT1_EEEEOSV_NSK_ISZ_S10_EE:
  138|     32|DecomposePairImpl(F&& f, std::pair<std::tuple<K>, V> p) {
  139|     32|  const auto& key = std::get<0>(p.first);
  140|     32|  return std::forward<F>(f)(key, std::piecewise_construct, std::move(p.first),
  141|     32|                            std::move(p.second));
  142|     32|}
_ZN4absl12lts_2024011618container_internal13DecomposePairINS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS9_INS5_4pairIKSB_SF_EEEEE12EqualElementISB_EEJRSL_EEEDTclsr15memory_internalE17DecomposePairImplclsr3stdE7forwardIT_Efp_Ecl8PairArgsspclsr3stdE7forwardIT0_Efp0_EEEEOSR_DpOSS_:
  206|      4|        std::forward<F>(f), PairArgs(std::forward<Args>(args)...))) {
  207|      4|  return memory_internal::DecomposePairImpl(
  208|      4|      std::forward<F>(f), PairArgs(std::forward<Args>(args)...));
  209|      4|}
_ZN4absl12lts_2024011618container_internal15memory_internal17DecomposePairImplINS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENSA_INS6_4pairIKSC_SG_EEEEE12EqualElementISC_EERSL_NS6_5tupleIJRKSG_EEEEEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEL_ZNS6_L19piecewise_constructEEclsr3stdE7declvalINSS_IJSX_EEEEEclsr3stdE7declvalIT1_EEEEOSW_NSK_IS10_S11_EE:
  138|      4|DecomposePairImpl(F&& f, std::pair<std::tuple<K>, V> p) {
  139|      4|  const auto& key = std::get<0>(p.first);
  140|      4|  return std::forward<F>(f)(key, std::piecewise_construct, std::move(p.first),
  141|      4|                            std::move(p.second));
  142|      4|}
_ZN4absl12lts_2024011618container_internal8PairArgsIKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS3_4pairINS3_5tupleIJRKT_EEENSG_IJRKT0_EEEEERKNSF_ISH_SL_EE:
  187|     32|    const std::pair<F, S>& p) {
  188|     32|  return PairArgs(p.first, p.second);
  189|     32|}
_ZN4absl12lts_2024011618container_internal8PairArgsIRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKN6google8protobuf10Descriptor13WellKnownTypeEEENS3_4pairINS3_5tupleIJOT_EEENSJ_IJOT0_EEEEESL_SO_:
  181|     64|std::pair<std::tuple<F&&>, std::tuple<S&&>> PairArgs(F&& f, S&& s) {
  182|     64|  return {std::piecewise_construct, std::forward_as_tuple(std::forward<F>(f)),
  183|     64|          std::forward_as_tuple(std::forward<S>(s))};
  184|     64|}
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE8transferINS7_INS3_4pairIKS9_SD_EEEEEEDaPT_PNS1_13map_slot_typeIS9_SD_EESO_:
  427|     50|                       slot_type* old_slot) {
  428|     50|    auto is_relocatable =
  429|     50|        typename absl::is_trivially_relocatable<value_type>::type();
  430|       |
  431|     50|    emplace(new_slot);
  432|       |#if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  433|       |    if (is_relocatable) {
  434|       |      // TODO(b/247130232,b/251814870): remove casts after fixing warnings.
  435|       |      std::memcpy(static_cast<void*>(std::launder(&new_slot->value)),
  436|       |                  static_cast<const void*>(&old_slot->value),
  437|       |                  sizeof(value_type));
  438|       |      return is_relocatable;
  439|       |    }
  440|       |#endif
  441|       |
  442|     50|    if (kMutableKeys::value) {
  ------------------
  |  Branch (442:9): [True: 50, Folded]
  ------------------
  443|     50|      absl::allocator_traits<Allocator>::construct(
  444|     50|          *alloc, &new_slot->mutable_value, std::move(old_slot->mutable_value));
  445|     50|    } else {
  446|      0|      absl::allocator_traits<Allocator>::construct(*alloc, &new_slot->value,
  447|      0|                                                   std::move(old_slot->value));
  448|      0|    }
  449|     50|    destroy(alloc, old_slot);
  450|     50|    return is_relocatable;
  451|     50|  }
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE7emplaceEPNS1_13map_slot_typeIS9_SD_EE:
  348|     82|  static void emplace(slot_type* slot) {
  349|       |    // The construction of union doesn't do anything at runtime but it allows us
  350|       |    // to access its members without violating aliasing rules.
  351|     82|    new (slot) slot_type;
  352|     82|  }
_ZN4absl12lts_2024011618container_internal13map_slot_typeINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2Ev:
  329|     82|  map_slot_type() {}
_ZN4absl12lts_2024011618container_internal13DecomposePairINS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS9_INS5_4pairIKSB_SF_EEEEE11HashElementEJRSL_EEEDTclsr15memory_internalE17DecomposePairImplclsr3stdE7forwardIT_Efp_Ecl8PairArgsspclsr3stdE7forwardIT0_Efp0_EEEEOSQ_DpOSR_:
  206|     28|        std::forward<F>(f), PairArgs(std::forward<Args>(args)...))) {
  207|     28|  return memory_internal::DecomposePairImpl(
  208|     28|      std::forward<F>(f), PairArgs(std::forward<Args>(args)...));
  209|     28|}
_ZN4absl12lts_2024011618container_internal15memory_internal17DecomposePairImplINS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENSA_INS6_4pairIKSC_SG_EEEEE11HashElementERSL_NS6_5tupleIJRKSG_EEEEEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEL_ZNS6_L19piecewise_constructEEclsr3stdE7declvalINSR_IJSW_EEEEEclsr3stdE7declvalIT1_EEEEOSV_NSK_ISZ_S10_EE:
  138|     28|DecomposePairImpl(F&& f, std::pair<std::tuple<K>, V> p) {
  139|     28|  const auto& key = std::get<0>(p.first);
  140|     28|  return std::forward<F>(f)(key, std::piecewise_construct, std::move(p.first),
  141|     28|                            std::move(p.second));
  142|     28|}
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE9constructINS7_INS3_4pairIKS9_SD_EEEEJRKNS3_21piecewise_construct_tENS3_5tupleIJRSH_EEENSN_IJRKSD_EEEEEEvPT_PNS1_13map_slot_typeIS9_SD_EEDpOT0_:
  383|     32|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  384|     32|    emplace(slot);
  385|     32|    if (kMutableKeys::value) {
  ------------------
  |  Branch (385:9): [True: 32, Folded]
  ------------------
  386|     32|      absl::allocator_traits<Allocator>::construct(*alloc, &slot->mutable_value,
  387|     32|                                                   std::forward<Args>(args)...);
  388|     32|    } else {
  389|      0|      absl::allocator_traits<Allocator>::construct(*alloc, &slot->value,
  390|      0|                                                   std::forward<Args>(args)...);
  391|      0|    }
  392|     32|  }
_ZN4absl12lts_2024011618container_internal8PairArgsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS3_4pairINS3_5tupleIJRKT_EEENSF_IJRKT0_EEEEERKNSE_ISG_SK_EE:
  187|     32|    const std::pair<F, S>& p) {
  188|     32|  return PairArgs(p.first, p.second);
  189|     32|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS6_12_GLOBAL__N_120SymbolByFullNameHashENS9_18SymbolByFullNameEqENSt3__19allocatorIS7_EEE12EqualElementIS7_EERS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISK_EEEEOSJ_OSK_:
  214|     34|DecomposeValue(F&& f, Arg&& arg) {
  215|     34|  const auto& key = arg;
  216|     34|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|     34|}
_ZN4absl12lts_2024011618container_internal23SanitizerUnpoisonObjectINS1_13map_slot_typeINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorEEEEEvPKT_:
  248|      1|inline void SanitizerUnpoisonObject(const T* object) {
  249|      1|  SanitizerUnpoisonMemoryRegion(object, sizeof(T));
  250|      1|}
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS6_15FieldDescriptorEE7emplaceEPNS1_13map_slot_typeISA_SD_EE:
  348|      1|  static void emplace(slot_type* slot) {
  349|       |    // The construction of union doesn't do anything at runtime but it allows us
  350|       |    // to access its members without violating aliasing rules.
  351|      1|    new (slot) slot_type;
  352|      1|  }
_ZN4absl12lts_2024011618container_internal13map_slot_typeINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS6_15FieldDescriptorEEC2Ev:
  329|      1|  map_slot_type() {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS6_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS9_EEE19EmplaceDecomposableERKPS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISN_EEEEOSM_OSN_:
  214|     34|DecomposeValue(F&& f, Arg&& arg) {
  215|     34|  const auto& key = arg;
  216|     34|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|     34|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS6_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS9_EEE12EqualElementIPS7_EERS9_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISN_EEEEOSM_OSN_:
  214|      1|DecomposeValue(F&& f, Arg&& arg) {
  215|      1|  const auto& key = arg;
  216|      1|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|      1|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS6_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS9_EEE11HashElementERS9_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISL_EEEEOSK_OSL_:
  214|     28|DecomposeValue(F&& f, Arg&& arg) {
  215|     28|  const auto& key = arg;
  216|     28|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|     28|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS6_12_GLOBAL__N_120SymbolByFullNameHashENS9_18SymbolByFullNameEqENSt3__19allocatorIS7_EEE19EmplaceDecomposableERKS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISK_EEEEOSJ_OSK_:
  214|    382|DecomposeValue(F&& f, Arg&& arg) {
  215|    382|  const auto& key = arg;
  216|    382|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|    382|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS6_12_GLOBAL__N_120SymbolByFullNameHashENS9_18SymbolByFullNameEqENSt3__19allocatorIS7_EEE11HashElementERS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISJ_EEEEOSI_OSJ_:
  214|    434|DecomposeValue(F&& f, Arg&& arg) {
  215|    434|  const auto& key = arg;
  216|    434|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|    434|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS6_12_GLOBAL__N_118SymbolByParentHashENS9_16SymbolByParentEqENSt3__19allocatorIS7_EEE19EmplaceDecomposableERKS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISK_EEEEOSJ_OSK_:
  214|    487|DecomposeValue(F&& f, Arg&& arg) {
  215|    487|  const auto& key = arg;
  216|    487|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|    487|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS6_12_GLOBAL__N_118SymbolByParentHashENS9_16SymbolByParentEqENSt3__19allocatorIS7_EEE12EqualElementIS7_EERS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISK_EEEEOSJ_OSK_:
  214|     52|DecomposeValue(F&& f, Arg&& arg) {
  215|     52|  const auto& key = arg;
  216|     52|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|     52|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS6_12_GLOBAL__N_118SymbolByParentHashENS9_16SymbolByParentEqENSt3__19allocatorIS7_EEE11HashElementERS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISJ_EEEEOSI_OSJ_:
  214|    532|DecomposeValue(F&& f, Arg&& arg) {
  215|    532|  const auto& key = arg;
  216|    532|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|    532|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS6_12_GLOBAL__N_121DescriptorsByNameHashIS7_EENSB_19DescriptorsByNameEqIS7_EENSt3__19allocatorIS9_EEE19EmplaceDecomposableERKS9_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISO_EEEEOSN_OSO_:
  214|      4|DecomposeValue(F&& f, Arg&& arg) {
  215|      4|  const auto& key = arg;
  216|      4|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|      4|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS6_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS9_EEE19EmplaceDecomposableERKPS7_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISN_EEEEOSM_OSN_:
  214|    103|DecomposeValue(F&& f, Arg&& arg) {
  215|    103|  const auto& key = arg;
  216|    103|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|    103|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS6_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS9_EEE12EqualElementIPS7_EERS9_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISN_EEEEOSM_OSN_:
  214|      6|DecomposeValue(F&& f, Arg&& arg) {
  215|      6|  const auto& key = arg;
  216|      6|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|      6|}
descriptor.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS6_12_GLOBAL__N_116ParentNumberHashENSB_14ParentNumberEqENSt3__19allocatorIS9_EEE11HashElementERS9_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISL_EEEEOSK_OSL_:
  214|     98|DecomposeValue(F&& f, Arg&& arg) {
  215|     98|  const auto& key = arg;
  216|     98|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|     98|}
_ZN4absl12lts_2024011618container_internal8AllocateILm8ENSt3__19allocatorINS3_4pairIKNS5_IPKN6google8protobuf10DescriptorEiEEPKNS7_15FieldDescriptorEEEEEEEPvPT0_m:
   55|      1|void* Allocate(Alloc* alloc, size_t n) {
   56|      1|  static_assert(Alignment > 0, "");
   57|      1|  assert(n && "n must be positive");
   58|      1|  using M = AlignedType<Alignment>;
   59|      1|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   60|      1|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   61|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   62|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   63|       |  // with the "foo(bar)" syntax.
   64|      1|  A my_mem_alloc(*alloc);
   65|      1|  void* p = AT::allocate(my_mem_alloc, (n + sizeof(M) - 1) / sizeof(M));
   66|       |  assert(reinterpret_cast<uintptr_t>(p) % Alignment == 0 &&
   67|      1|         "allocator does not respect alignment");
   68|      1|  return p;
   69|      1|}
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS6_15FieldDescriptorEE9constructINS3_9allocatorINS4_IKSA_SD_EEEEJSI_EEEvPT_PNS1_13map_slot_typeISA_SD_EEDpOT0_:
  383|      1|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  384|      1|    emplace(slot);
  385|      1|    if (kMutableKeys::value) {
  ------------------
  |  Branch (385:9): [True: 1, Folded]
  ------------------
  386|      1|      absl::allocator_traits<Allocator>::construct(*alloc, &slot->mutable_value,
  387|      1|                                                   std::forward<Args>(args)...);
  388|      1|    } else {
  389|      0|      absl::allocator_traits<Allocator>::construct(*alloc, &slot->value,
  390|      0|                                                   std::forward<Args>(args)...);
  391|      0|    }
  392|      1|  }
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS6_15FieldDescriptorEE7elementEPNS1_13map_slot_typeISA_SD_EE:
  359|      1|  static value_type& element(slot_type* slot) { return slot->value; }
_ZN4absl12lts_2024011618container_internal13DecomposePairINS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10unique_ptrIN6google8protobuf10FeatureSetENS5_14default_deleteISF_EEEEEENS1_10StringHashENS1_8StringEqENS9_INS5_4pairIKSB_SI_EEEEE12EqualElementISB_EEJRSO_EEEDTclsr15memory_internalE17DecomposePairImplclsr3stdE7forwardIT_Efp_Ecl8PairArgsspclsr3stdE7forwardIT0_Efp0_EEEEOSU_DpOSV_:
  206|    204|        std::forward<F>(f), PairArgs(std::forward<Args>(args)...))) {
  207|    204|  return memory_internal::DecomposePairImpl(
  208|    204|      std::forward<F>(f), PairArgs(std::forward<Args>(args)...));
  209|    204|}
_ZN4absl12lts_2024011618container_internal15memory_internal17DecomposePairImplINS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENS6_10unique_ptrIN6google8protobuf10FeatureSetENS6_14default_deleteISG_EEEEEENS1_10StringHashENS1_8StringEqENSA_INS6_4pairIKSC_SJ_EEEEE12EqualElementISC_EERSO_NS6_5tupleIJRKSJ_EEEEEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEL_ZNS6_L19piecewise_constructEEclsr3stdE7declvalINSV_IJS10_EEEEEclsr3stdE7declvalIT1_EEEEOSZ_NSN_IS13_S14_EE:
  138|    204|DecomposePairImpl(F&& f, std::pair<std::tuple<K>, V> p) {
  139|    204|  const auto& key = std::get<0>(p.first);
  140|    204|  return std::forward<F>(f)(key, std::piecewise_construct, std::move(p.first),
  141|    204|                            std::move(p.second));
  142|    204|}
_ZN4absl12lts_2024011618container_internal8PairArgsIKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISE_EEEEEENS3_4pairINS3_5tupleIJRKT_EEENSJ_IJRKT0_EEEEERKNSI_ISK_SO_EE:
  187|    204|    const std::pair<F, S>& p) {
  188|    204|  return PairArgs(p.first, p.second);
  189|    204|}
_ZN4absl12lts_2024011618container_internal8PairArgsIRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKNS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISF_EEEEEENS3_4pairINS3_5tupleIJOT_EEENSM_IJOT0_EEEEESO_SR_:
  181|    204|std::pair<std::tuple<F&&>, std::tuple<S&&>> PairArgs(F&& f, S&& s) {
  182|    204|  return {std::piecewise_construct, std::forward_as_tuple(std::forward<F>(f)),
  183|    204|          std::forward_as_tuple(std::forward<S>(s))};
  184|    204|}
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE8transferINS7_INS3_4pairIKS9_SG_EEEEEEDaPT_PNS1_13map_slot_typeIS9_SG_EESR_:
  427|      4|                       slot_type* old_slot) {
  428|      4|    auto is_relocatable =
  429|      4|        typename absl::is_trivially_relocatable<value_type>::type();
  430|       |
  431|      4|    emplace(new_slot);
  432|       |#if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  433|       |    if (is_relocatable) {
  434|       |      // TODO(b/247130232,b/251814870): remove casts after fixing warnings.
  435|       |      std::memcpy(static_cast<void*>(std::launder(&new_slot->value)),
  436|       |                  static_cast<const void*>(&old_slot->value),
  437|       |                  sizeof(value_type));
  438|       |      return is_relocatable;
  439|       |    }
  440|       |#endif
  441|       |
  442|      4|    if (kMutableKeys::value) {
  ------------------
  |  Branch (442:9): [True: 4, Folded]
  ------------------
  443|      4|      absl::allocator_traits<Allocator>::construct(
  444|      4|          *alloc, &new_slot->mutable_value, std::move(old_slot->mutable_value));
  445|      4|    } else {
  446|      0|      absl::allocator_traits<Allocator>::construct(*alloc, &new_slot->value,
  447|      0|                                                   std::move(old_slot->value));
  448|      0|    }
  449|      4|    destroy(alloc, old_slot);
  450|      4|    return is_relocatable;
  451|      4|  }
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE7emplaceEPNS1_13map_slot_typeIS9_SG_EE:
  348|      8|  static void emplace(slot_type* slot) {
  349|       |    // The construction of union doesn't do anything at runtime but it allows us
  350|       |    // to access its members without violating aliasing rules.
  351|      8|    new (slot) slot_type;
  352|      8|  }
_ZN4absl12lts_2024011618container_internal13map_slot_typeINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEEC2Ev:
  329|      8|  map_slot_type() {}
_ZN4absl12lts_2024011618container_internal15map_slot_policyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISD_EEEEE9constructINS7_INS3_4pairIKS9_SG_EEEEJRKNS3_21piecewise_construct_tENS3_5tupleIJOS9_EEENSQ_IJEEEEEEvPT_PNS1_13map_slot_typeIS9_SG_EEDpOT0_:
  383|      4|  static void construct(Allocator* alloc, slot_type* slot, Args&&... args) {
  384|      4|    emplace(slot);
  385|      4|    if (kMutableKeys::value) {
  ------------------
  |  Branch (385:9): [True: 4, Folded]
  ------------------
  386|      4|      absl::allocator_traits<Allocator>::construct(*alloc, &slot->mutable_value,
  387|      4|                                                   std::forward<Args>(args)...);
  388|      4|    } else {
  389|      0|      absl::allocator_traits<Allocator>::construct(*alloc, &slot->value,
  390|      0|                                                   std::forward<Args>(args)...);
  391|      0|    }
  392|      4|  }
_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS5_EEE19EmplaceDecomposableERKNS9_12basic_stringIcNS9_11char_traitsIcEENSA_IcEEEEEEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISM_EEEEOSL_OSM_:
  214|      3|DecomposeValue(F&& f, Arg&& arg) {
  215|      3|  const auto& key = arg;
  216|      3|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|      3|}
_ZN4absl12lts_2024011618container_internal8AllocateILm8ENSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEEEPvPT0_m:
   55|      6|void* Allocate(Alloc* alloc, size_t n) {
   56|      6|  static_assert(Alignment > 0, "");
   57|      6|  assert(n && "n must be positive");
   58|      6|  using M = AlignedType<Alignment>;
   59|      6|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   60|      6|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   61|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   62|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   63|       |  // with the "foo(bar)" syntax.
   64|      6|  A my_mem_alloc(*alloc);
   65|      6|  void* p = AT::allocate(my_mem_alloc, (n + sizeof(M) - 1) / sizeof(M));
   66|       |  assert(reinterpret_cast<uintptr_t>(p) % Alignment == 0 &&
   67|      6|         "allocator does not respect alignment");
   68|      6|  return p;
   69|      6|}
_ZN4absl12lts_2024011618container_internal23SanitizerUnpoisonObjectIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEvPKT_:
  248|     10|inline void SanitizerUnpoisonObject(const T* object) {
  249|     10|  SanitizerUnpoisonMemoryRegion(object, sizeof(T));
  250|     10|}
_ZN4absl12lts_2024011618container_internal21SanitizerPoisonObjectIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEvPKT_:
  243|      8|inline void SanitizerPoisonObject(const T* object) {
  244|      8|  SanitizerPoisonMemoryRegion(object, sizeof(T));
  245|      8|}
_ZN4absl12lts_2024011618container_internal10DeallocateILm8ENSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEEEvPT0_Pvm:
   74|      5|void Deallocate(Alloc* alloc, void* p, size_t n) {
   75|      5|  static_assert(Alignment > 0, "");
   76|      5|  assert(n && "n must be positive");
   77|      5|  using M = AlignedType<Alignment>;
   78|      5|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   79|      5|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   80|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   81|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   82|       |  // with the "foo(bar)" syntax.
   83|      5|  A my_mem_alloc(*alloc);
   84|      5|  AT::deallocate(my_mem_alloc, static_cast<M*>(p),
   85|      5|                 (n + sizeof(M) - 1) / sizeof(M));
   86|      5|}
_ZN4absl12lts_2024011618container_internal8AllocateILm8ENSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEEEEPvPT0_m:
   55|      1|void* Allocate(Alloc* alloc, size_t n) {
   56|      1|  static_assert(Alignment > 0, "");
   57|      1|  assert(n && "n must be positive");
   58|      1|  using M = AlignedType<Alignment>;
   59|      1|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   60|      1|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   61|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   62|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   63|       |  // with the "foo(bar)" syntax.
   64|      1|  A my_mem_alloc(*alloc);
   65|      1|  void* p = AT::allocate(my_mem_alloc, (n + sizeof(M) - 1) / sizeof(M));
   66|       |  assert(reinterpret_cast<uintptr_t>(p) % Alignment == 0 &&
   67|      1|         "allocator does not respect alignment");
   68|      1|  return p;
   69|      1|}
_ZN4absl12lts_2024011618container_internal23SanitizerUnpoisonObjectIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEEvPKT_:
  248|      1|inline void SanitizerUnpoisonObject(const T* object) {
  249|      1|  SanitizerUnpoisonMemoryRegion(object, sizeof(T));
  250|      1|}
_ZN4absl12lts_2024011618container_internal21SanitizerPoisonObjectIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEEvPKT_:
  243|      1|inline void SanitizerPoisonObject(const T* object) {
  244|      1|  SanitizerPoisonMemoryRegion(object, sizeof(T));
  245|      1|}
_ZN4absl12lts_2024011618container_internal10DeallocateILm8ENSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEEEEvPT0_Pvm:
   74|      1|void Deallocate(Alloc* alloc, void* p, size_t n) {
   75|      1|  static_assert(Alignment > 0, "");
   76|      1|  assert(n && "n must be positive");
   77|      1|  using M = AlignedType<Alignment>;
   78|      1|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   79|      1|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   80|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   81|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   82|       |  // with the "foo(bar)" syntax.
   83|      1|  A my_mem_alloc(*alloc);
   84|      1|  AT::deallocate(my_mem_alloc, static_cast<M*>(p),
   85|      1|                 (n + sizeof(M) - 1) / sizeof(M));
   86|      1|}
_ZN4absl12lts_2024011618container_internal8AllocateILm8ENSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEEEPvPT0_m:
   55|     18|void* Allocate(Alloc* alloc, size_t n) {
   56|     18|  static_assert(Alignment > 0, "");
   57|     18|  assert(n && "n must be positive");
   58|     18|  using M = AlignedType<Alignment>;
   59|     18|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   60|     18|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   61|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   62|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   63|       |  // with the "foo(bar)" syntax.
   64|     18|  A my_mem_alloc(*alloc);
   65|     18|  void* p = AT::allocate(my_mem_alloc, (n + sizeof(M) - 1) / sizeof(M));
   66|       |  assert(reinterpret_cast<uintptr_t>(p) % Alignment == 0 &&
   67|     18|         "allocator does not respect alignment");
   68|     18|  return p;
   69|     18|}
_ZN4absl12lts_2024011618container_internal23SanitizerUnpoisonObjectIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvPKT_:
  248|    210|inline void SanitizerUnpoisonObject(const T* object) {
  249|    210|  SanitizerUnpoisonMemoryRegion(object, sizeof(T));
  250|    210|}
_ZN4absl12lts_2024011618container_internal21SanitizerPoisonObjectIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEvPKT_:
  243|    201|inline void SanitizerPoisonObject(const T* object) {
  244|    201|  SanitizerPoisonMemoryRegion(object, sizeof(T));
  245|    201|}
_ZN4absl12lts_2024011618container_internal10DeallocateILm8ENSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEEEvPT0_Pvm:
   74|     15|void Deallocate(Alloc* alloc, void* p, size_t n) {
   75|     15|  static_assert(Alignment > 0, "");
   76|     15|  assert(n && "n must be positive");
   77|     15|  using M = AlignedType<Alignment>;
   78|     15|  using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>;
   79|     15|  using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>;
   80|       |  // On macOS, "mem_alloc" is a #define with one argument defined in
   81|       |  // rpc/types.h, so we can't name the variable "mem_alloc" and initialize it
   82|       |  // with the "foo(bar)" syntax.
   83|     15|  A my_mem_alloc(*alloc);
   84|     15|  AT::deallocate(my_mem_alloc, static_cast<M*>(p),
   85|     15|                 (n + sizeof(M) - 1) / sizeof(M));
   86|     15|}
_ZN4absl12lts_2024011618container_internal21SanitizerPoisonObjectIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEEEvPKT_:
  243|      2|inline void SanitizerPoisonObject(const T* object) {
  244|      2|  SanitizerPoisonMemoryRegion(object, sizeof(T));
  245|      2|}
_ZN4absl12lts_2024011618container_internal23SanitizerUnpoisonObjectIPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEEEvPKT_:
  248|     12|inline void SanitizerUnpoisonObject(const T* object) {
  249|     12|  SanitizerUnpoisonMemoryRegion(object, sizeof(T));
  250|     12|}
message.cc:_ZN4absl12lts_2024011618container_internal14DecomposeValueINS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS6_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSD_18DescriptorByNameEqENSt3__19allocatorISA_EEE19EmplaceDecomposableERKSA_EEDTclclsr3stdE7declvalIT_EEclsr3stdE7declvalIRKT0_EEclsr3stdE7declvalISO_EEEEOSN_OSO_:
  214|      6|DecomposeValue(F&& f, Arg&& arg) {
  215|      6|  const auto& key = arg;
  216|      6|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|      6|}

_ZNK4absl12lts_2024011618container_internal10StringHashclENS0_11string_viewE:
   77|    632|  size_t operator()(absl::string_view v) const {
   78|    632|    return absl::Hash<absl::string_view>{}(v);
   79|    632|  }
_ZNK4absl12lts_2024011618container_internal8StringEqclENS0_11string_viewES3_:
   87|    208|  bool operator()(absl::string_view lhs, absl::string_view rhs) const {
   88|    208|    return lhs == rhs;
   89|    208|  }
_ZN4absl12lts_2024011618container_internal6HashEqIPKN6google8protobuf14FileDescriptorEvE5ToPtrES7_:
  175|     92|  static const T* ToPtr(const T* ptr) { return ptr; }
_ZNK4absl12lts_2024011618container_internal6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashclIS7_EEmRKT_:
  162|     92|    size_t operator()(const U& ptr) const {
  163|     92|      return absl::Hash<const T*>{}(HashEq::ToPtr(ptr));
  164|     92|    }

extension_set.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEEvE5applyINS1_12raw_hash_setIS8_NS6_12_GLOBAL__N_115ExtensionHasherENSC_11ExtensionEqENSt3__19allocatorIS7_EEE12EqualElementINSC_16ExtensionInfoKeyEEEJRS7_ES8_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSO_DpOSP_:
  133|      8|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      8|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      8|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEEvE5applyINS1_12raw_hash_setIS8_NS6_12_GLOBAL__N_115ExtensionHasherENSC_11ExtensionEqENSt3__19allocatorIS7_EEE19EmplaceDecomposableEJRKS7_ES8_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSN_DpOSO_:
  133|      1|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      1|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      1|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_120SymbolByFullNameHashENSB_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE12EqualElementINSB_13FullNameQueryEEEJRS6_ES7_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSN_DpOSO_:
  133|     93|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     93|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     93|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvE5applyINS1_12raw_hash_setIS9_NS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSD_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE12EqualElementINS0_11string_viewEEEJRS8_ES9_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSR_DpOSS_:
  133|      5|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      5|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      5|  }
_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEvE5applyINS1_12raw_hash_setISF_NS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE19EmplaceDecomposableEJRKNSL_ISA_SE_EEESF_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSV_DpOSW_:
  133|     32|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     32|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     32|  }
_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEvE5applyINS1_12raw_hash_setISF_NS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE12EqualElementISA_EEJRSN_ESF_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSU_DpOSV_:
  133|      4|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      4|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      4|  }
_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEvE5applyINS1_12raw_hash_setISF_NS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE11HashElementEJRSN_ESF_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOST_DpOSU_:
  133|     28|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     28|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     28|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_120SymbolByFullNameHashENSB_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE12EqualElementIS6_EEJRS6_ES7_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSM_DpOSN_:
  133|     34|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     34|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE5applyINS1_12raw_hash_setIS9_NS5_12_GLOBAL__N_116ParentNumberHashENSD_14ParentNumberEqENSt3__19allocatorIS8_EEE19EmplaceDecomposableEJRKPS6_ES9_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSP_DpOSQ_:
  133|     34|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     34|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE5applyINS1_12raw_hash_setIS9_NS5_12_GLOBAL__N_116ParentNumberHashENSD_14ParentNumberEqENSt3__19allocatorIS8_EEE12EqualElementIPS6_EEJRS8_ES9_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSP_DpOSQ_:
  133|      1|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      1|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      1|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE5applyINS1_12raw_hash_setIS9_NS5_12_GLOBAL__N_116ParentNumberHashENSD_14ParentNumberEqENSt3__19allocatorIS8_EEE11HashElementEJRS8_ES9_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSN_DpOSO_:
  133|     28|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     28|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     28|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_120SymbolByFullNameHashENSB_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE19EmplaceDecomposableEJRKS6_ES7_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSM_DpOSN_:
  133|    382|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|    382|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|    382|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_120SymbolByFullNameHashENSB_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE11HashElementEJRS6_ES7_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSL_DpOSM_:
  133|    434|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|    434|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|    434|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_118SymbolByParentHashENSB_16SymbolByParentEqENSt3__19allocatorIS6_EEE19EmplaceDecomposableEJRKS6_ES7_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSM_DpOSN_:
  133|    487|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|    487|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_118SymbolByParentHashENSB_16SymbolByParentEqENSt3__19allocatorIS6_EEE12EqualElementIS6_EEJRS6_ES7_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSM_DpOSN_:
  133|     52|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     52|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     52|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvE5applyINS1_12raw_hash_setIS7_NS5_12_GLOBAL__N_118SymbolByParentHashENSB_16SymbolByParentEqENSt3__19allocatorIS6_EEE11HashElementEJRS6_ES7_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSL_DpOSM_:
  133|    532|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|    532|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|    532|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvE5applyINS1_12raw_hash_setIS9_NS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSD_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE19EmplaceDecomposableEJRKS8_ES9_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSQ_DpOSR_:
  133|      4|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      4|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      4|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE5applyINS1_12raw_hash_setIS9_NS5_12_GLOBAL__N_116ParentNumberHashENSD_14ParentNumberEqENSt3__19allocatorIS8_EEE19EmplaceDecomposableEJRKPS6_ES9_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSP_DpOSQ_:
  133|    103|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|    103|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|    103|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE5applyINS1_12raw_hash_setIS9_NS5_12_GLOBAL__N_116ParentNumberHashENSD_14ParentNumberEqENSt3__19allocatorIS8_EEE12EqualElementIPS6_EEJRS8_ES9_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSP_DpOSQ_:
  133|      6|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      6|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      6|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvE5applyINS1_12raw_hash_setIS9_NS5_12_GLOBAL__N_116ParentNumberHashENSD_14ParentNumberEqENSt3__19allocatorIS8_EEE11HashElementEJRS8_ES9_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSN_DpOSO_:
  133|     98|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     98|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     98|  }
_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEEvE5applyINS1_12raw_hash_setISI_NS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE12EqualElementISA_EEJRSQ_ESI_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSX_DpOSY_:
  133|    204|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|    204|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|    204|  }
_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyINS0_11string_viewEEEvE5applyINS1_12raw_hash_setIS5_NS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE19EmplaceDecomposableEJRKNSB_12basic_stringIcNSB_11char_traitsIcEENSC_IcEEEEES5_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSO_DpOSP_:
  133|      3|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      3|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      3|  }
message.cc:_ZN4absl12lts_2024011618container_internal18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEEvE5applyINS1_12raw_hash_setISA_NS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSF_18DescriptorByNameEqENSt3__19allocatorIS9_EEE19EmplaceDecomposableEJRKS9_ESA_EEDTclsrT1_5applyclsr3stdE7forwardIT_Efp_Espclsr3stdE7forwardIT0_Efp0_EEEOSQ_DpOSR_:
  133|      6|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|      6|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|      6|  }

_ZN4absl12lts_2024011618container_internal20HashtablezInfoHandleC2EDn:
  187|     20|  explicit HashtablezInfoHandle(std::nullptr_t) {}
_ZN4absl12lts_2024011618container_internal20HashtablezInfoHandle10UnregisterEv:
  189|      3|  inline void Unregister() {}
_ZNK4absl12lts_2024011618container_internal20HashtablezInfoHandle9IsSampledEv:
  190|     76|  inline bool IsSampled() const { return false; }
_ZN4absl12lts_2024011618container_internal20HashtablezInfoHandle12RecordRehashEm:
  192|     20|  inline void RecordRehash(size_t /*total_probe_length*/) {}
_ZN4absl12lts_2024011618container_internal20HashtablezInfoHandle12RecordInsertEmm:
  195|  1.05k|  inline void RecordInsert(size_t /*hash*/, size_t /*distance_from_desired*/) {}
_ZN4absl12lts_2024011618container_internal6SampleEm:
  210|     20|    size_t inline_element_size ABSL_ATTRIBUTE_UNUSED) {
  211|       |#if defined(ABSL_INTERNAL_HASHTABLEZ_SAMPLE)
  212|       |  if (ABSL_PREDICT_TRUE(--global_next_sample.next_sample > 0)) {
  213|       |    return HashtablezInfoHandle(nullptr);
  214|       |  }
  215|       |  return HashtablezInfoHandle(
  216|       |      SampleSlow(global_next_sample, inline_element_size));
  217|       |#else
  218|     20|  return HashtablezInfoHandle(nullptr);
  219|     20|#endif  // !ABSL_PER_THREAD_TLS
  220|     20|}

_ZN4absl12lts_2024011618container_internal15internal_layout11adl_barrier5AlignEmm:
  276|  6.41k|constexpr size_t Align(size_t n, size_t m) { return (n + m - 1) & ~(m - 1); }
_ZN4absl12lts_2024011618container_internal6LayoutIJN6google8protobuf8internal22SerialArenaChunkHeaderENSt3__16atomicIPvEENS8_IPNS5_11SerialArenaEEEEE7PartialIJEEENS1_15internal_layout10LayoutImplINS7_5tupleIJS6_SA_SD_EEE18__make_integer_seqINS7_16integer_sequenceEmXsZT_EESK_ISL_mXclL_ZNSG_11adl_barrier3MinEmmEsZT0_plsZT_Li1EEEEEEDpOT_:
  707|      8|  static constexpr PartialType<sizeof...(Sizes)> Partial(Sizes&&... sizes) {
  708|      8|    static_assert(sizeof...(Sizes) <= sizeof...(Ts), "");
  709|      8|    return PartialType<sizeof...(Sizes)>(absl::forward<Sizes>(sizes)...);
  710|      8|  }
_ZN4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJN6google8protobuf8internal22SerialArenaChunkHeaderENS4_6atomicIPvEENSA_IPNS8_11SerialArenaEEEEEENS4_16integer_sequenceImJEEENSH_ImJLm0EEEEEC2Ev:
  367|      8|      : size_{sizes...} {}
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJN6google8protobuf8internal22SerialArenaChunkHeaderENS4_6atomicIPvEENSA_IPNS8_11SerialArenaEEEEEENS4_16integer_sequenceImJEEENSH_ImJLm0EEEEE6OffsetILm0ETnNS4_9enable_ifIXeqT_Li0EEiE4typeELi0EEEmv:
  384|      8|  constexpr size_t Offset() const {
  385|      8|    return 0;
  386|      8|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJN6google8protobuf8internal22SerialArenaChunkHeaderENS4_6atomicIPvEENSA_IPNS8_11SerialArenaEEEEEENS4_16integer_sequenceImJEEENSH_ImJLm0EEEEE7PointerILm0EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESG_E4typeESR_E4typeEPSO_:
  460|      8|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      8|    using C = typename std::remove_const<Char>::type;
  462|      8|    static_assert(
  463|      8|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      8|            std::is_same<C, signed char>(),
  465|      8|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      8|    constexpr size_t alignment = Alignment();
  467|      8|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      8|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      8|  }
_ZN4absl12lts_2024011618container_internal6LayoutIJPNS1_10btree_nodeINS1_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISC_SF_EESO_EEC2Emmmmm:
  721|     24|      : internal_layout::LayoutType<sizeof...(Ts), Ts...>(sizes...) {}
_ZN4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_EC2Emmmmm:
  367|     24|      : size_{sizes...} {}
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E7PointerILm2EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_EST_E4typeES13_E4typeEPS10_:
  460|     12|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|     12|    using C = typename std::remove_const<Char>::type;
  462|     12|    static_assert(
  463|     12|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|     12|            std::is_same<C, signed char>(),
  465|     12|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|     12|    constexpr size_t alignment = Alignment();
  467|     12|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|     12|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|     12|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E6OffsetILm2ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|     22|  constexpr size_t Offset() const {
  390|     22|    static_assert(N < NumOffsets, "Index out of bounds");
  391|     22|    return adl_barrier::Align(
  392|     22|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|     22|        ElementAlignment<N>::value);
  394|     22|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E6OffsetILm1ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|     22|  constexpr size_t Offset() const {
  390|     22|    static_assert(N < NumOffsets, "Index out of bounds");
  391|     22|    return adl_barrier::Align(
  392|     22|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|     22|        ElementAlignment<N>::value);
  394|     22|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E6OffsetILm0ETnNS4_9enable_ifIXeqT_Li0EEiE4typeELi0EEEmv:
  384|     24|  constexpr size_t Offset() const {
  385|     24|    return 0;
  386|     24|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E7PointerILm3EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_EST_E4typeES12_E4typeEPSZ_:
  460|      4|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      4|    using C = typename std::remove_const<Char>::type;
  462|      4|    static_assert(
  463|      4|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      4|            std::is_same<C, signed char>(),
  465|      4|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      4|    constexpr size_t alignment = Alignment();
  467|      4|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      4|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      4|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E6OffsetILm3ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|      5|  constexpr size_t Offset() const {
  390|      5|    static_assert(N < NumOffsets, "Index out of bounds");
  391|      5|    return adl_barrier::Align(
  392|      5|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|      5|        ElementAlignment<N>::value);
  394|      5|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E9AllocSizeEv:
  582|      1|  constexpr size_t AllocSize() const {
  583|      1|    static_assert(NumTypes == NumSizes, "You must specify sizes of all fields");
  584|      1|    return Offset<NumTypes - 1>() +
  585|      1|        SizeOf<ElementType<NumTypes - 1>>::value * size_[NumTypes - 1];
  586|      1|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E6OffsetILm4ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|      1|  constexpr size_t Offset() const {
  390|      1|    static_assert(N < NumOffsets, "Index out of bounds");
  391|      1|    return adl_barrier::Align(
  392|      1|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|      1|        ElementAlignment<N>::value);
  394|      1|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E7PointerILm0EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_EST_E4typeES13_E4typeEPS10_:
  460|      1|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      1|    using C = typename std::remove_const<Char>::type;
  462|      1|    static_assert(
  463|      1|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      1|            std::is_same<C, signed char>(),
  465|      1|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      1|    constexpr size_t alignment = Alignment();
  467|      1|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      1|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      1|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E7PointerILm2EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_EST_E4typeES12_E4typeEPSZ_:
  460|      5|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      5|    using C = typename std::remove_const<Char>::type;
  462|      5|    static_assert(
  463|      5|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      5|            std::is_same<C, signed char>(),
  465|      5|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      5|    constexpr size_t alignment = Alignment();
  467|      5|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      5|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      5|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10map_paramsINS4_4pairIPKN6google8protobuf10DescriptorEiEEPKNSA_15FieldDescriptorENS4_4lessISE_EENS4_9allocatorINS8_IKSE_SH_EEEELi256ELb0EEEEEjhNS1_13map_slot_typeISE_SH_EESQ_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESV_E7PointerILm0EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_EST_E4typeES12_E4typeEPSZ_:
  460|      1|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      1|    using C = typename std::remove_const<Char>::type;
  462|      1|    static_assert(
  463|      1|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      1|            std::is_same<C, signed char>(),
  465|      1|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      1|    constexpr size_t alignment = Alignment();
  467|      1|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      1|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      1|  }
_ZN4absl12lts_2024011618container_internal6LayoutIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEjhS9_SG_EEC2Emmmmm:
  721|    219|      : internal_layout::LayoutType<sizeof...(Ts), Ts...>(sizes...) {}
_ZN4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_EC2Emmmmm:
  367|    219|      : size_{sizes...} {}
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E9AllocSizeEv:
  582|     11|  constexpr size_t AllocSize() const {
  583|     11|    static_assert(NumTypes == NumSizes, "You must specify sizes of all fields");
  584|     11|    return Offset<NumTypes - 1>() +
  585|     11|        SizeOf<ElementType<NumTypes - 1>>::value * size_[NumTypes - 1];
  586|     11|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm4ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|     11|  constexpr size_t Offset() const {
  390|     11|    static_assert(N < NumOffsets, "Index out of bounds");
  391|     11|    return adl_barrier::Align(
  392|     11|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|     11|        ElementAlignment<N>::value);
  394|     11|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm3ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|     55|  constexpr size_t Offset() const {
  390|     55|    static_assert(N < NumOffsets, "Index out of bounds");
  391|     55|    return adl_barrier::Align(
  392|     55|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|     55|        ElementAlignment<N>::value);
  394|     55|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm2ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|    203|  constexpr size_t Offset() const {
  390|    203|    static_assert(N < NumOffsets, "Index out of bounds");
  391|    203|    return adl_barrier::Align(
  392|    203|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|    203|        ElementAlignment<N>::value);
  394|    203|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm1ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|    203|  constexpr size_t Offset() const {
  390|    203|    static_assert(N < NumOffsets, "Index out of bounds");
  391|    203|    return adl_barrier::Align(
  392|    203|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|    203|        ElementAlignment<N>::value);
  394|    203|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm0ETnNS4_9enable_ifIXeqT_Li0EEiE4typeELi0EEEmv:
  384|    219|  constexpr size_t Offset() const {
  385|    219|    return 0;
  386|    219|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm0EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|      6|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      6|    using C = typename std::remove_const<Char>::type;
  462|      6|    static_assert(
  463|      6|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      6|            std::is_same<C, signed char>(),
  465|      6|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      6|    constexpr size_t alignment = Alignment();
  467|      6|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      6|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      6|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm2EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|     36|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|     36|    using C = typename std::remove_const<Char>::type;
  462|     36|    static_assert(
  463|     36|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|     36|            std::is_same<C, signed char>(),
  465|     36|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|     36|    constexpr size_t alignment = Alignment();
  467|     36|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|     36|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|     36|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm3EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|     41|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|     41|    using C = typename std::remove_const<Char>::type;
  462|     41|    static_assert(
  463|     41|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|     41|            std::is_same<C, signed char>(),
  465|     41|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|     41|    constexpr size_t alignment = Alignment();
  467|     41|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|     41|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|     41|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm3EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|      3|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      3|    using C = typename std::remove_const<Char>::type;
  462|      3|    static_assert(
  463|      3|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      3|            std::is_same<C, signed char>(),
  465|      3|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      3|    constexpr size_t alignment = Alignment();
  467|      3|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      3|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      3|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm2EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|    112|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|    112|    using C = typename std::remove_const<Char>::type;
  462|    112|    static_assert(
  463|    112|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|    112|            std::is_same<C, signed char>(),
  465|    112|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|    112|    constexpr size_t alignment = Alignment();
  467|    112|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|    112|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|    112|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENSB_11FileCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm0EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|     10|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|     10|    using C = typename std::remove_const<Char>::type;
  462|     10|    static_assert(
  463|     10|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|     10|            std::is_same<C, signed char>(),
  465|     10|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|     10|    constexpr size_t alignment = Alignment();
  467|     10|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|     10|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|     10|  }
_ZN4absl12lts_2024011618container_internal6LayoutIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEjhS9_SG_EEC2Emmmmm:
  721|     39|      : internal_layout::LayoutType<sizeof...(Ts), Ts...>(sizes...) {}
_ZN4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_EC2Emmmmm:
  367|     39|      : size_{sizes...} {}
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E9AllocSizeEv:
  582|      2|  constexpr size_t AllocSize() const {
  583|      2|    static_assert(NumTypes == NumSizes, "You must specify sizes of all fields");
  584|      2|    return Offset<NumTypes - 1>() +
  585|      2|        SizeOf<ElementType<NumTypes - 1>>::value * size_[NumTypes - 1];
  586|      2|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm4ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|      2|  constexpr size_t Offset() const {
  390|      2|    static_assert(N < NumOffsets, "Index out of bounds");
  391|      2|    return adl_barrier::Align(
  392|      2|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|      2|        ElementAlignment<N>::value);
  394|      2|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm3ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|      8|  constexpr size_t Offset() const {
  390|      8|    static_assert(N < NumOffsets, "Index out of bounds");
  391|      8|    return adl_barrier::Align(
  392|      8|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|      8|        ElementAlignment<N>::value);
  394|      8|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm2ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|     35|  constexpr size_t Offset() const {
  390|     35|    static_assert(N < NumOffsets, "Index out of bounds");
  391|     35|    return adl_barrier::Align(
  392|     35|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|     35|        ElementAlignment<N>::value);
  394|     35|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm1ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|     35|  constexpr size_t Offset() const {
  390|     35|    static_assert(N < NumOffsets, "Index out of bounds");
  391|     35|    return adl_barrier::Align(
  392|     35|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|     35|        ElementAlignment<N>::value);
  394|     35|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm0ETnNS4_9enable_ifIXeqT_Li0EEiE4typeELi0EEEmv:
  384|     39|  constexpr size_t Offset() const {
  385|     39|    return 0;
  386|     39|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm0EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|      1|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      1|    using C = typename std::remove_const<Char>::type;
  462|      1|    static_assert(
  463|      1|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      1|            std::is_same<C, signed char>(),
  465|      1|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      1|    constexpr size_t alignment = Alignment();
  467|      1|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      1|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      1|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm2EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|      5|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      5|    using C = typename std::remove_const<Char>::type;
  462|      5|    static_assert(
  463|      5|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      5|            std::is_same<C, signed char>(),
  465|      5|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      5|    constexpr size_t alignment = Alignment();
  467|      5|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      5|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      5|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm3EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|      6|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      6|    using C = typename std::remove_const<Char>::type;
  462|      6|    static_assert(
  463|      6|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      6|            std::is_same<C, signed char>(),
  465|      6|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      6|    constexpr size_t alignment = Alignment();
  467|      6|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      6|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      6|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm2EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|     22|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|     22|    using C = typename std::remove_const<Char>::type;
  462|     22|    static_assert(
  463|     22|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|     22|            std::is_same<C, signed char>(),
  465|     22|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|     22|    constexpr size_t alignment = Alignment();
  467|     22|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|     22|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|     22|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENSB_16ExtensionCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm0EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|      3|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|      3|    using C = typename std::remove_const<Char>::type;
  462|      3|    static_assert(
  463|      3|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|      3|            std::is_same<C, signed char>(),
  465|      3|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|      3|    constexpr size_t alignment = Alignment();
  467|      3|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|      3|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|      3|  }
_ZN4absl12lts_2024011618container_internal6LayoutIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEjhS9_SG_EEC2Emmmmm:
  721|  2.67k|      : internal_layout::LayoutType<sizeof...(Ts), Ts...>(sizes...) {}
_ZN4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_EC2Emmmmm:
  367|  2.67k|      : size_{sizes...} {}
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm2EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|  1.47k|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|  1.47k|    using C = typename std::remove_const<Char>::type;
  462|  1.47k|    static_assert(
  463|  1.47k|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|  1.47k|            std::is_same<C, signed char>(),
  465|  1.47k|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|  1.47k|    constexpr size_t alignment = Alignment();
  467|  1.47k|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|  1.47k|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|  1.47k|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm2ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|  2.44k|  constexpr size_t Offset() const {
  390|  2.44k|    static_assert(N < NumOffsets, "Index out of bounds");
  391|  2.44k|    return adl_barrier::Align(
  392|  2.44k|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|  2.44k|        ElementAlignment<N>::value);
  394|  2.44k|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm1ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|  2.44k|  constexpr size_t Offset() const {
  390|  2.44k|    static_assert(N < NumOffsets, "Index out of bounds");
  391|  2.44k|    return adl_barrier::Align(
  392|  2.44k|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|  2.44k|        ElementAlignment<N>::value);
  394|  2.44k|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm0ETnNS4_9enable_ifIXeqT_Li0EEiE4typeELi0EEEmv:
  384|  2.67k|  constexpr size_t Offset() const {
  385|  2.67k|    return 0;
  386|  2.67k|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm3EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|    296|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|    296|    using C = typename std::remove_const<Char>::type;
  462|    296|    static_assert(
  463|    296|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|    296|            std::is_same<C, signed char>(),
  465|    296|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|    296|    constexpr size_t alignment = Alignment();
  467|    296|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|    296|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|    296|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm3ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|    798|  constexpr size_t Offset() const {
  390|    798|    static_assert(N < NumOffsets, "Index out of bounds");
  391|    798|    return adl_barrier::Align(
  392|    798|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|    798|        ElementAlignment<N>::value);
  394|    798|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm4EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|     61|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|     61|    using C = typename std::remove_const<Char>::type;
  462|     61|    static_assert(
  463|     61|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|     61|            std::is_same<C, signed char>(),
  465|     61|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|     61|    constexpr size_t alignment = Alignment();
  467|     61|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|     61|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|     61|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E6OffsetILm4ETnNS4_9enable_ifIXneT_Li0EEiE4typeELi0EEEmv:
  389|    122|  constexpr size_t Offset() const {
  390|    122|    static_assert(N < NumOffsets, "Index out of bounds");
  391|    122|    return adl_barrier::Align(
  392|    122|        Offset<N - 1>() + SizeOf<ElementType<N - 1>>::value * size_[N - 1],
  393|    122|        ElementAlignment<N>::value);
  394|    122|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm0EKcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeEST_E4typeEPSQ_:
  460|    208|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|    208|    using C = typename std::remove_const<Char>::type;
  462|    208|    static_assert(
  463|    208|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|    208|            std::is_same<C, signed char>(),
  465|    208|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|    208|    constexpr size_t alignment = Alignment();
  467|    208|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|    208|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|    208|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E9AllocSizeEv:
  582|     33|  constexpr size_t AllocSize() const {
  583|     33|    static_assert(NumTypes == NumSizes, "You must specify sizes of all fields");
  584|     33|    return Offset<NumTypes - 1>() +
  585|     33|        SizeOf<ElementType<NumTypes - 1>>::value * size_[NumTypes - 1];
  586|     33|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm0EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|     20|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|     20|    using C = typename std::remove_const<Char>::type;
  462|     20|    static_assert(
  463|     20|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|     20|            std::is_same<C, signed char>(),
  465|     20|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|     20|    constexpr size_t alignment = Alignment();
  467|     20|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|     20|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|     20|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm2EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|    178|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|    178|    using C = typename std::remove_const<Char>::type;
  462|    178|    static_assert(
  463|    178|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|    178|            std::is_same<C, signed char>(),
  465|    178|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|    178|    constexpr size_t alignment = Alignment();
  467|    178|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|    178|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|    178|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm3EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|    380|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|    380|    using C = typename std::remove_const<Char>::type;
  462|    380|    static_assert(
  463|    380|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|    380|            std::is_same<C, signed char>(),
  465|    380|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|    380|    constexpr size_t alignment = Alignment();
  467|    380|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|    380|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|    380|  }
_ZNK4absl12lts_2024011618container_internal15internal_layout10LayoutImplINSt3__15tupleIJPNS1_10btree_nodeINS1_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENSB_13SymbolCompareENS4_9allocatorISC_EELi256ELb0EEEEEjhSC_SI_EEENS4_16integer_sequenceImJLm0ELm1ELm2ELm3ELm4EEEESL_E7PointerILm4EcEEPNS4_11conditionalIXsr3std8is_constIT0_EE5valueEKNS4_13tuple_elementIXT_ESJ_E4typeESS_E4typeEPSP_:
  460|     28|  CopyConst<Char, ElementType<N>>* Pointer(Char* p) const {
  461|     28|    using C = typename std::remove_const<Char>::type;
  462|     28|    static_assert(
  463|     28|        std::is_same<C, char>() || std::is_same<C, unsigned char>() ||
  464|     28|            std::is_same<C, signed char>(),
  465|     28|        "The argument must be a pointer to [const] [signed|unsigned] char");
  466|     28|    constexpr size_t alignment = Alignment();
  467|     28|    (void)alignment;
  468|       |    assert(reinterpret_cast<uintptr_t>(p) % alignment == 0);
  469|     28|    return reinterpret_cast<CopyConst<Char, ElementType<N>>*>(p + Offset<N>());
  470|     28|  }

_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS5_14DescriptorPool18DeferredValidation13LifetimesInfoENS9_9allocatorISD_EEEEEENS1_6HashEqIS8_vE4HashENSJ_2EqENSE_INS9_4pairIKS8_SG_EEEEEC2Ev:
   64|      4|  raw_hash_map() {}
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEEC2Ev:
   64|      2|  raw_hash_map() {}
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEEC2Ev:
   64|      2|  raw_hash_map() {}
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPKN6google8protobuf23SourceCodeInfo_LocationEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SF_EEEEEC2Ev:
   64|      4|  raw_hash_map() {}
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEEixISA_SI_TnPT_LPSA_0EEEDTclsrT0_5valueclL_ZNS4_9addressofB8nn220000ISN_EESS_RSR_EclL_ZNS4_7declvalB8nn220000IRSN_EEDTclsr3stdE9__declvalISR_ELi0EEEvEEEEEOSR_:
  179|    207|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
  180|       |    // It is safe to use unchecked_deref here because try_emplace
  181|       |    // will always return an iterator pointing to a valid item in the table,
  182|       |    // since it inserts if nothing is found for the given key.
  183|    207|    return Policy::value(
  184|    207|        &this->unchecked_deref(try_emplace(std::forward<K>(key)).first));
  185|    207|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE11try_emplaceISA_JETnNS4_9enable_ifIXntsr3std14is_convertibleIT_NS1_12raw_hash_setISI_SJ_SK_SO_E14const_iteratorEEE5valueEiE4typeELi0ETnPSS_LPSA_0EEENSL_INSU_8iteratorEbEEOSS_DpOT0_:
  132|    207|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
  133|    207|    return try_emplace_impl(std::forward<K>(k), std::forward<Args>(args)...);
  134|    207|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE16try_emplace_implISA_JEEENSL_INS1_12raw_hash_setISI_SJ_SK_SO_E8iteratorEbEEOT_DpOT0_:
  210|    207|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
  211|    207|    auto res = this->find_or_prepare_insert(k);
  212|    207|    if (res.second)
  ------------------
  |  Branch (212:9): [True: 4, False: 203]
  ------------------
  213|      4|      this->emplace_at(res.first, std::piecewise_construct,
  214|      4|                       std::forward_as_tuple(std::forward<K>(k)),
  215|      4|                       std::forward_as_tuple(std::forward<Args>(args)...));
  216|    207|    return {this->iterator_at(res.first), res.second};
  217|    207|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEbEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_bEEEEEC2Ev:
   64|      2|  raw_hash_map() {}
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_17DescriptorBuilder12MessageHintsEEENS1_6HashEqIS8_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS8_SA_EEEEEC2Ev:
   64|      4|  raw_hash_map() {}
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEES8_EENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_S8_EEEEEC2Ev:
   64|      4|  raw_hash_map() {}
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEEiEENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_iEEEEEC2Ev:
   64|      4|  raw_hash_map() {}
_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEEC2Ev:
   64|      6|  raw_hash_map() {}
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_mapINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_12_GLOBAL__N_123GeneratedMessageFactory10MessagePtrEEENS1_6HashEqIS8_vE4HashENSE_2EqENSt3__19allocatorINSH_4pairIKS8_SB_EEEEEC2Ev:
   64|      2|  raw_hash_map() {}

_ZNK4absl12lts_2024011618container_internal19HashSetResizeHelper38GrowIntoSingleGroupShuffleControlBytesEPNS1_6ctrl_tEm:
  276|     36|    ctrl_t* new_ctrl, size_t new_capacity) const {
  277|     36|  assert(is_single_group(new_capacity));
  278|     36|  constexpr size_t kHalfWidth = Group::kWidth / 2;
  279|     36|  assert(old_capacity_ < kHalfWidth);
  280|       |
  281|     36|  const size_t half_old_capacity = old_capacity_ / 2;
  282|       |
  283|       |  // NOTE: operations are done with compile time known size = kHalfWidth.
  284|       |  // Compiler optimizes that into single ASM operation.
  285|       |
  286|       |  // Copy second half of bytes to the beginning.
  287|       |  // We potentially copy more bytes in order to have compile time known size.
  288|       |  // Mirrored bytes from the old_ctrl_ will also be copied.
  289|       |  // In case of old_capacity_ == 3, we will copy 1st element twice.
  290|       |  // Examples:
  291|       |  // old_ctrl = 0S0EEEEEEE...
  292|       |  // new_ctrl = S0EEEEEEEE...
  293|       |  //
  294|       |  // old_ctrl = 01S01EEEEE...
  295|       |  // new_ctrl = 1S01EEEEEE...
  296|       |  //
  297|       |  // old_ctrl = 0123456S0123456EE...
  298|       |  // new_ctrl = 456S0123?????????...
  299|     36|  std::memcpy(new_ctrl, old_ctrl_ + half_old_capacity + 1, kHalfWidth);
  300|       |  // Clean up copied kSentinel from old_ctrl.
  301|     36|  new_ctrl[half_old_capacity] = ctrl_t::kEmpty;
  302|       |
  303|       |  // Clean up damaged or uninitialized bytes.
  304|       |
  305|       |  // Clean bytes after the intended size of the copy.
  306|       |  // Example:
  307|       |  // new_ctrl = 1E01EEEEEEE????
  308|       |  // *new_ctrl= 1E0EEEEEEEE????
  309|       |  // position      /
  310|     36|  std::memset(new_ctrl + old_capacity_ + 1, static_cast<int8_t>(ctrl_t::kEmpty),
  311|     36|              kHalfWidth);
  312|       |  // Clean non-mirrored bytes that are not initialized.
  313|       |  // For small old_capacity that may be inside of mirrored bytes zone.
  314|       |  // Examples:
  315|       |  // new_ctrl = 1E0EEEEEEEE??????????....
  316|       |  // *new_ctrl= 1E0EEEEEEEEEEEEE?????....
  317|       |  // position           /
  318|       |  //
  319|       |  // new_ctrl = 456E0123???????????...
  320|       |  // *new_ctrl= 456E0123EEEEEEEE???...
  321|       |  // position           /
  322|     36|  std::memset(new_ctrl + kHalfWidth, static_cast<int8_t>(ctrl_t::kEmpty),
  323|     36|              kHalfWidth);
  324|       |  // Clean last mirrored bytes that are not initialized
  325|       |  // and will not be overwritten by mirroring.
  326|       |  // Examples:
  327|       |  // new_ctrl = 1E0EEEEEEEEEEEEE????????
  328|       |  // *new_ctrl= 1E0EEEEEEEEEEEEEEEEEEEEE
  329|       |  // position           S       /
  330|       |  //
  331|       |  // new_ctrl = 456E0123EEEEEEEE???????????????
  332|       |  // *new_ctrl= 456E0123EEEEEEEE???????EEEEEEEE
  333|       |  // position                  S       /
  334|     36|  std::memset(new_ctrl + new_capacity + kHalfWidth,
  335|     36|              static_cast<int8_t>(ctrl_t::kEmpty), kHalfWidth);
  336|       |
  337|       |  // Create mirrored bytes. old_capacity_ < kHalfWidth
  338|       |  // Example:
  339|       |  // new_ctrl = 456E0123EEEEEEEE???????EEEEEEEE
  340|       |  // *new_ctrl= 456E0123EEEEEEEE456E0123EEEEEEE
  341|       |  // position                  S/
  342|     36|  ctrl_t g[kHalfWidth];
  343|     36|  std::memcpy(g, new_ctrl, kHalfWidth);
  344|     36|  std::memcpy(new_ctrl + new_capacity + 1, g, kHalfWidth);
  345|       |
  346|       |  // Finally set sentinel to its place.
  347|     36|  new_ctrl[new_capacity] = ctrl_t::kSentinel;
  348|     36|}

_ZN4absl12lts_2024011618container_internal13GroupSse2ImplC2EPKNS1_6ctrl_tE:
  615|  4.21k|  explicit GroupSse2Impl(const ctrl_t* pos) {
  616|  4.21k|    ctrl = _mm_loadu_si128(reinterpret_cast<const __m128i*>(pos));
  617|  4.21k|  }
_ZNK4absl12lts_2024011618container_internal13GroupSse2Impl5MatchEh:
  620|  1.92k|  BitMask<uint16_t, kWidth> Match(h2_t hash) const {
  621|  1.92k|    auto match = _mm_set1_epi8(static_cast<char>(hash));
  622|  1.92k|    BitMask<uint16_t, kWidth> result = BitMask<uint16_t, kWidth>(0);
  623|  1.92k|    result = BitMask<uint16_t, kWidth>(
  624|  1.92k|        static_cast<uint16_t>(_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl))));
  625|  1.92k|    return result;
  626|  1.92k|  }
_ZNK4absl12lts_2024011618container_internal13GroupSse2Impl9MaskEmptyEv:
  629|  1.61k|  NonIterableBitMask<uint16_t, kWidth> MaskEmpty() const {
  630|       |#ifdef ABSL_INTERNAL_HAVE_SSSE3
  631|       |    // This only works because ctrl_t::kEmpty is -128.
  632|       |    return NonIterableBitMask<uint16_t, kWidth>(
  633|       |        static_cast<uint16_t>(_mm_movemask_epi8(_mm_sign_epi8(ctrl, ctrl))));
  634|       |#else
  635|  1.61k|    auto match = _mm_set1_epi8(static_cast<char>(ctrl_t::kEmpty));
  636|  1.61k|    return NonIterableBitMask<uint16_t, kWidth>(
  637|  1.61k|        static_cast<uint16_t>(_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl))));
  638|  1.61k|#endif
  639|  1.61k|  }
_ZNK4absl12lts_2024011618container_internal13GroupSse2Impl18MaskEmptyOrDeletedEv:
  650|  2.28k|  NonIterableBitMask<uint16_t, kWidth> MaskEmptyOrDeleted() const {
  651|  2.28k|    auto special = _mm_set1_epi8(static_cast<char>(ctrl_t::kSentinel));
  652|  2.28k|    return NonIterableBitMask<uint16_t, kWidth>(static_cast<uint16_t>(
  653|  2.28k|        _mm_movemask_epi8(_mm_cmpgt_epi8_fixed(special, ctrl))));
  654|  2.28k|  }
_ZNK4absl12lts_2024011618container_internal34CommonFieldsGenerationInfoDisabled41should_rehash_for_bug_detection_on_insertEPKNS1_6ctrl_tEm:
  926|  1.05k|  bool should_rehash_for_bug_detection_on_insert(const ctrl_t*, size_t) const {
  927|  1.05k|    return false;
  928|  1.05k|  }
_ZN4absl12lts_2024011618container_internal34CommonFieldsGenerationInfoDisabled36maybe_increment_generation_on_insertEv:
  932|  1.05k|  void maybe_increment_generation_on_insert() {}
_ZN4absl12lts_2024011618container_internal34CommonFieldsGenerationInfoDisabled19set_reserved_growthEm:
  936|     16|  void set_reserved_growth(size_t) {}
_ZN4absl12lts_2024011618container_internal34CommonFieldsGenerationInfoDisabled20set_reservation_sizeEm:
  938|     16|  void set_reservation_size(size_t) {}
_ZNK4absl12lts_2024011618container_internal34CommonFieldsGenerationInfoDisabled10generationEv:
  939|     76|  GenerationType generation() const { return 0; }
_ZN4absl12lts_2024011618container_internal34CommonFieldsGenerationInfoDisabled14set_generationEh:
  940|     76|  void set_generation(GenerationType) {}
_ZNK4absl12lts_2024011618container_internal34CommonFieldsGenerationInfoDisabled14generation_ptrEv:
  941|  2.41k|  GenerationType* generation_ptr() const { return nullptr; }
_ZN4absl12lts_2024011618container_internal34CommonFieldsGenerationInfoDisabled18set_generation_ptrEPh:
  942|     76|  void set_generation_ptr(GenerationType*) {}
_ZN4absl12lts_2024011618container_internal37HashSetIteratorGenerationInfoDisabledC2EPKh:
  965|  2.41k|  explicit HashSetIteratorGenerationInfoDisabled(const GenerationType*) {}
_ZNK4absl12lts_2024011618container_internal37HashSetIteratorGenerationInfoDisabled10generationEv:
  967|    620|  GenerationType generation() const { return 0; }
_ZNK4absl12lts_2024011618container_internal37HashSetIteratorGenerationInfoDisabled14generation_ptrEv:
  969|  1.13k|  const GenerationType* generation_ptr() const { return nullptr; }
_ZNK4absl12lts_2024011618container_internal12CommonFields7controlEv:
 1038|  19.3k|  ctrl_t* control() const { return control_; }
_ZN4absl12lts_2024011618container_internal12CommonFields11set_controlEPNS1_6ctrl_tE:
 1039|     76|  void set_control(ctrl_t* c) { control_ = c; }
_ZNK4absl12lts_2024011618container_internal12CommonFields19backing_array_startEv:
 1040|      3|  void* backing_array_start() const {
 1041|       |    // growth_left (and maybe infoz) is stored before control bytes.
 1042|       |    assert(reinterpret_cast<uintptr_t>(control()) % alignof(size_t) == 0);
 1043|      3|    return control() - ControlOffset(has_infoz());
 1044|      3|  }
_ZNK4absl12lts_2024011618container_internal12CommonFields10slot_arrayEv:
 1047|  5.87k|  void* slot_array() const { return slots_; }
_ZN4absl12lts_2024011618container_internal12CommonFields9set_slotsEPv:
 1048|     76|  void set_slots(void* s) { slots_ = s; }
_ZNK4absl12lts_2024011618container_internal12CommonFields4sizeEv:
 1051|    180|  size_t size() const { return size_ >> HasInfozShift(); }
_ZN4absl12lts_2024011618container_internal12CommonFields14increment_sizeEv:
 1055|  1.05k|  void increment_size() {
 1056|       |    assert(size() < capacity());
 1057|  1.05k|    size_ += size_t{1} << HasInfozShift();
 1058|  1.05k|  }
_ZNK4absl12lts_2024011618container_internal12CommonFields8capacityEv:
 1065|  8.34k|  size_t capacity() const { return capacity_; }
_ZN4absl12lts_2024011618container_internal12CommonFields12set_capacityEm:
 1066|     76|  void set_capacity(size_t c) {
 1067|       |    assert(c == 0 || IsValidCapacity(c));
 1068|     76|    capacity_ = c;
 1069|     76|  }
_ZNK4absl12lts_2024011618container_internal12CommonFields11growth_leftEv:
 1073|  2.11k|  size_t growth_left() const {
 1074|  2.11k|    const size_t* gl_ptr = reinterpret_cast<size_t*>(control()) - 1;
 1075|       |    assert(reinterpret_cast<uintptr_t>(gl_ptr) % alignof(size_t) == 0);
 1076|  2.11k|    return *gl_ptr;
 1077|  2.11k|  }
_ZN4absl12lts_2024011618container_internal12CommonFields15set_growth_leftEm:
 1078|  1.13k|  void set_growth_left(size_t gl) {
 1079|  1.13k|    size_t* gl_ptr = reinterpret_cast<size_t*>(control()) - 1;
 1080|       |    assert(reinterpret_cast<uintptr_t>(gl_ptr) % alignof(size_t) == 0);
 1081|  1.13k|    *gl_ptr = gl;
 1082|  1.13k|  }
_ZNK4absl12lts_2024011618container_internal12CommonFields9has_infozEv:
 1084|  1.21k|  bool has_infoz() const {
 1085|  1.21k|    return ABSL_PREDICT_FALSE((size_ & HasInfozMask()) != 0);
  ------------------
  |  |  178|  1.21k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:49): [Folded, False: 1.21k]
  |  |  |  Branch (178:58): [True: 0, False: 1.21k]
  |  |  ------------------
  ------------------
 1086|  1.21k|  }
_ZN4absl12lts_2024011618container_internal12CommonFields13set_has_infozEb:
 1087|     76|  void set_has_infoz(bool has_infoz) {
 1088|     76|    size_ = (size() << HasInfozShift()) | static_cast<size_t>(has_infoz);
 1089|     76|  }
_ZN4absl12lts_2024011618container_internal12CommonFields5infozEv:
 1091|  1.13k|  HashtablezInfoHandle infoz() {
 1092|  1.13k|    return has_infoz()
  ------------------
  |  Branch (1092:12): [True: 0, False: 1.13k]
  ------------------
 1093|  1.13k|               ? *reinterpret_cast<HashtablezInfoHandle*>(backing_array_start())
 1094|  1.13k|               : HashtablezInfoHandle();
 1095|  1.13k|  }
_ZNK4absl12lts_2024011618container_internal12CommonFields41should_rehash_for_bug_detection_on_insertEv:
 1101|  1.05k|  bool should_rehash_for_bug_detection_on_insert() const {
 1102|  1.05k|    return CommonFieldsGenerationInfo::
 1103|  1.05k|        should_rehash_for_bug_detection_on_insert(control(), capacity());
 1104|  1.05k|  }
_ZNK4absl12lts_2024011618container_internal12CommonFields10alloc_sizeEmm:
 1118|      3|  size_t alloc_size(size_t slot_size, size_t slot_align) const {
 1119|      3|    return AllocSize(capacity(), slot_size, slot_align, has_infoz());
 1120|      3|  }
_ZN4absl12lts_2024011618container_internal12CommonFields13HasInfozShiftEv:
 1130|  2.52k|  static constexpr size_t HasInfozShift() { return 1; }
_ZN4absl12lts_2024011618container_internal12CommonFields12HasInfozMaskEv:
 1131|  1.21k|  static constexpr size_t HasInfozMask() {
 1132|  1.21k|    return (size_t{1} << HasInfozShift()) - 1;
 1133|  1.21k|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelperC2ERNS1_12CommonFieldsE:
 1525|     76|      : old_ctrl_(c.control()),
 1526|     76|        old_capacity_(c.capacity()),
 1527|     76|        had_infoz_(c.has_infoz()) {}
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper27FindFirstNonFullAfterResizeERKNS1_12CommonFieldsEmm:
 1537|     76|                                              size_t hash) {
 1538|     76|    if (!IsGrowingIntoSingleGroupApplicable(old_capacity, c.capacity())) {
  ------------------
  |  Branch (1538:9): [True: 20, False: 56]
  ------------------
 1539|     20|      return find_first_non_full(c, hash);
 1540|     20|    }
 1541|       |    // Find a location for the new element non-deterministically.
 1542|       |    // Note that any position is correct.
 1543|       |    // It will located at `half_old_capacity` or one of the other
 1544|       |    // empty slots with approximately 50% probability each.
 1545|     56|    size_t offset = probe(c, hash).offset();
 1546|       |
 1547|       |    // Note that we intentionally use unsigned int underflow.
 1548|     56|    if (offset - (old_capacity + 1) >= old_capacity) {
  ------------------
  |  Branch (1548:9): [True: 43, False: 13]
  ------------------
 1549|       |      // Offset fall on kSentinel or into the mostly occupied first half.
 1550|     43|      offset = old_capacity / 2;
 1551|     43|    }
 1552|       |    assert(IsEmpty(c.control()[offset]));
 1553|     56|    return FindInfo{offset, 0};
 1554|     76|  }
_ZNK4absl12lts_2024011618container_internal19HashSetResizeHelper8old_ctrlEv:
 1556|  1.26k|  ctrl_t* old_ctrl() const { return old_ctrl_; }
_ZNK4absl12lts_2024011618container_internal19HashSetResizeHelper12old_capacityEv:
 1557|  1.35k|  size_t old_capacity() const { return old_capacity_; }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper34IsGrowingIntoSingleGroupApplicableEmm:
 1686|    152|                                                 size_t new_capacity) {
 1687|       |    // NOTE that `old_capacity < new_capacity` in order to have
 1688|       |    // `old_capacity < Group::kWidth / 2` to make faster copies of 8 bytes.
 1689|    152|    return is_single_group(new_capacity) && old_capacity < new_capacity;
  ------------------
  |  Branch (1689:12): [True: 112, False: 40]
  |  Branch (1689:45): [True: 112, False: 0]
  ------------------
 1690|    152|  }
_ZNK4absl12lts_2024011618container_internal19HashSetResizeHelper27PoisonSingleGroupEmptySlotsERNS1_12CommonFieldsEm:
 1753|     36|  void PoisonSingleGroupEmptySlots(CommonFields& c, size_t slot_size) const {
 1754|       |    // poison non full items
 1755|    300|    for (size_t i = 0; i < c.capacity(); ++i) {
  ------------------
  |  Branch (1755:24): [True: 264, False: 36]
  ------------------
 1756|    264|      if (!IsFull(c.control()[i])) {
  ------------------
  |  Branch (1756:11): [True: 150, False: 114]
  ------------------
 1757|    150|        SanitizerPoisonMemoryRegion(SlotAddress(c.slot_array(), i, slot_size),
 1758|    150|                                    slot_size);
 1759|    150|      }
 1760|    264|    }
 1761|     36|  }
_ZN4absl12lts_2024011618container_internal23SentinelEmptyGenerationEv:
  252|     76|constexpr GenerationType SentinelEmptyGeneration() { return 0; }
_ZN4absl12lts_2024011618container_internal14NextGenerationEh:
  254|     76|constexpr GenerationType NextGeneration(GenerationType generation) {
  255|     76|  return ++generation == SentinelEmptyGeneration() ? ++generation : generation;
  ------------------
  |  Branch (255:10): [True: 0, False: 76]
  ------------------
  256|     76|}
_ZN4absl12lts_2024011618container_internal18NumGenerationBytesEv:
  263|    211|constexpr size_t NumGenerationBytes() { return 0; }
_ZN4absl12lts_2024011618container_internal10EmptyGroupEv:
  521|    140|inline ctrl_t* EmptyGroup() {
  522|       |  // Const must be cast away here; no uses of this function will actually write
  523|       |  // to it, because it is only used for empty tables.
  524|    140|  return const_cast<ctrl_t*>(kEmptyGroup + 16);
  525|    140|}
_ZN4absl12lts_2024011618container_internal12PerTableSaltEPKNS1_6ctrl_tE:
  545|  4.08k|inline size_t PerTableSalt(const ctrl_t* ctrl) {
  546|       |  // The low bits of the pointer have little or no entropy because of
  547|       |  // alignment. We shift the pointer to try to use higher entropy bits. A
  548|       |  // good number seems to be 12 bits, because that aligns with page size.
  549|  4.08k|  return reinterpret_cast<uintptr_t>(ctrl) >> 12;
  550|  4.08k|}
_ZN4absl12lts_2024011618container_internal2H1EmPKNS1_6ctrl_tE:
  552|  4.08k|inline size_t H1(size_t hash, const ctrl_t* ctrl) {
  553|  4.08k|  return (hash >> 7) ^ PerTableSalt(ctrl);
  554|  4.08k|}
_ZN4absl12lts_2024011618container_internal2H2Em:
  559|  4.10k|inline h2_t H2(size_t hash) { return hash & 0x7F; }
_ZN4absl12lts_2024011618container_internal7IsEmptyENS1_6ctrl_tE:
  562|  1.05k|inline bool IsEmpty(ctrl_t c) { return c == ctrl_t::kEmpty; }
_ZN4absl12lts_2024011618container_internal6IsFullENS1_6ctrl_tE:
  563|  3.81k|inline bool IsFull(ctrl_t c) { return c >= static_cast<ctrl_t>(0); }
_ZN4absl12lts_2024011618container_internal9IsDeletedENS1_6ctrl_tE:
  564|     76|inline bool IsDeleted(ctrl_t c) { return c == ctrl_t::kDeleted; }
_ZN4absl12lts_2024011618container_internal16IsEmptyOrDeletedENS1_6ctrl_tE:
  565|      4|inline bool IsEmptyOrDeleted(ctrl_t c) { return c < ctrl_t::kSentinel; }
_ZN4absl12lts_2024011618container_internal20_mm_cmpgt_epi8_fixedEDv2_xS2_:
  601|  2.28k|inline __m128i _mm_cmpgt_epi8_fixed(__m128i a, __m128i b) {
  602|       |#if defined(__GNUC__) && !defined(__clang__)
  603|       |  if (std::is_unsigned<char>::value) {
  604|       |    const __m128i mask = _mm_set1_epi8(0x80);
  605|       |    const __m128i diff = _mm_subs_epi8(b, a);
  606|       |    return _mm_cmpeq_epi8(_mm_and_si128(diff, mask), mask);
  607|       |  }
  608|       |#endif
  609|  2.28k|  return _mm_cmpgt_epi8(a, b);
  610|  2.28k|}
_ZN4absl12lts_2024011618container_internal13ControlOffsetEb:
  988|    422|inline size_t ControlOffset(bool has_infoz) {
  989|    422|  return (has_infoz ? sizeof(HashtablezInfoHandle) : 0) + sizeof(size_t);
  ------------------
  |  Branch (989:11): [True: 0, False: 422]
  ------------------
  990|    422|}
_ZN4absl12lts_2024011618container_internal14NumClonedBytesEv:
  997|  4.67k|constexpr size_t NumClonedBytes() { return Group::kWidth - 1; }
_ZN4absl12lts_2024011618container_internal16GenerationOffsetEmb:
 1001|    287|inline size_t GenerationOffset(size_t capacity, bool has_infoz) {
 1002|       |  assert(IsValidCapacity(capacity));
 1003|    287|  const size_t num_control_bytes = capacity + 1 + NumClonedBytes();
 1004|    287|  return ControlOffset(has_infoz) + num_control_bytes;
 1005|    287|}
_ZN4absl12lts_2024011618container_internal10SlotOffsetEmmb:
 1009|    211|inline size_t SlotOffset(size_t capacity, size_t slot_align, bool has_infoz) {
 1010|       |  assert(IsValidCapacity(capacity));
 1011|    211|  return (GenerationOffset(capacity, has_infoz) + NumGenerationBytes() +
 1012|    211|          slot_align - 1) &
 1013|    211|         (~slot_align + 1);
 1014|    211|}
_ZN4absl12lts_2024011618container_internal9AllocSizeEmmmb:
 1019|    135|                        bool has_infoz) {
 1020|    135|  return SlotOffset(capacity, slot_align, has_infoz) + capacity * slot_size;
 1021|    135|}
_ZN4absl12lts_2024011618container_internal12NextCapacityEm:
 1167|     76|inline size_t NextCapacity(size_t n) {
 1168|       |  assert(IsValidCapacity(n) || n == 0);
 1169|     76|  return n * 2 + 1;
 1170|     76|}
_ZN4absl12lts_2024011618container_internal16CapacityToGrowthEm:
 1197|     76|inline size_t CapacityToGrowth(size_t capacity) {
 1198|     76|  assert(IsValidCapacity(capacity));
 1199|       |  // `capacity*7/8`
 1200|     76|  if (Group::kWidth == 8 && capacity == 7) {
  ------------------
  |  Branch (1200:7): [Folded, False: 76]
  |  Branch (1200:29): [True: 0, False: 0]
  ------------------
 1201|       |    // x-x/8 does not work when x==7.
 1202|      0|    return 6;
 1203|      0|  }
 1204|     76|  return capacity - capacity / 8;
 1205|     76|}
_ZN4absl12lts_2024011618container_internal12AssertIsFullEPKNS1_6ctrl_tEhPKhPKc:
 1248|    108|                         const char* operation) {
 1249|    108|  if (!SwisstableDebugEnabled()) return;
  ------------------
  |  Branch (1249:7): [True: 108, Folded]
  ------------------
 1250|       |  // `SwisstableDebugEnabled()` is also true for release builds with hardening
 1251|       |  // enabled. To minimize their impact in those builds:
 1252|       |  // - use `ABSL_PREDICT_FALSE()` to provide a compiler hint for code layout
 1253|       |  // - use `ABSL_RAW_LOG()` with a format string to reduce code size and improve
 1254|       |  //   the chances that the hot paths will be inlined.
 1255|      0|  if (ABSL_PREDICT_FALSE(ctrl == nullptr)) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1256|      0|    ABSL_RAW_LOG(FATAL, "%s called on end() iterator.", operation);
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1257|      0|  }
 1258|      0|  if (ABSL_PREDICT_FALSE(ctrl == EmptyGroup())) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1259|      0|    ABSL_RAW_LOG(FATAL, "%s called on default-constructed iterator.",
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1260|      0|                 operation);
 1261|      0|  }
 1262|      0|  if (SwisstableGenerationsEnabled()) {
  ------------------
  |  Branch (1262:7): [Folded, False: 0]
  ------------------
 1263|      0|    if (ABSL_PREDICT_FALSE(generation != *generation_ptr)) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1264|      0|      ABSL_RAW_LOG(FATAL,
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1265|      0|                   "%s called on invalid iterator. The table could have "
 1266|      0|                   "rehashed or moved since this iterator was initialized.",
 1267|      0|                   operation);
 1268|      0|    }
 1269|      0|    if (ABSL_PREDICT_FALSE(!IsFull(*ctrl))) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1270|      0|      ABSL_RAW_LOG(
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1271|      0|          FATAL,
 1272|      0|          "%s called on invalid iterator. The element was likely erased.",
 1273|      0|          operation);
 1274|      0|    }
 1275|      0|  } else {
 1276|      0|    if (ABSL_PREDICT_FALSE(!IsFull(*ctrl))) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1277|       |      ABSL_RAW_LOG(
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1278|      0|          FATAL,
 1279|      0|          "%s called on invalid iterator. The element might have been erased "
 1280|      0|          "or the table might have rehashed. Consider running with "
 1281|      0|          "--config=asan to diagnose rehashing issues.",
 1282|      0|          operation);
 1283|      0|    }
 1284|      0|  }
 1285|      0|}
_ZN4absl12lts_2024011618container_internal26AssertIsValidForComparisonEPKNS1_6ctrl_tEhPKh:
 1290|    512|                                       const GenerationType* generation_ptr) {
 1291|    512|  if (!SwisstableDebugEnabled()) return;
  ------------------
  |  Branch (1291:7): [True: 512, Folded]
  ------------------
 1292|      0|  const bool ctrl_is_valid_for_comparison =
 1293|      0|      ctrl == nullptr || ctrl == EmptyGroup() || IsFull(*ctrl);
  ------------------
  |  Branch (1293:7): [True: 0, False: 0]
  |  Branch (1293:26): [True: 0, False: 0]
  |  Branch (1293:50): [True: 0, False: 0]
  ------------------
 1294|      0|  if (SwisstableGenerationsEnabled()) {
  ------------------
  |  Branch (1294:7): [Folded, False: 0]
  ------------------
 1295|      0|    if (ABSL_PREDICT_FALSE(generation != *generation_ptr)) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1296|      0|      ABSL_RAW_LOG(FATAL,
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1297|      0|                   "Invalid iterator comparison. The table could have rehashed "
 1298|      0|                   "or moved since this iterator was initialized.");
 1299|      0|    }
 1300|      0|    if (ABSL_PREDICT_FALSE(!ctrl_is_valid_for_comparison)) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1301|      0|      ABSL_RAW_LOG(
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1302|      0|          FATAL, "Invalid iterator comparison. The element was likely erased.");
 1303|      0|    }
 1304|      0|  } else {
 1305|      0|    ABSL_HARDENING_ASSERT(
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1306|      0|        ctrl_is_valid_for_comparison &&
 1307|      0|        "Invalid iterator comparison. The element might have been erased or "
 1308|      0|        "the table might have rehashed. Consider running with --config=asan to "
 1309|      0|        "diagnose rehashing issues.");
 1310|      0|  }
 1311|      0|}
_ZN4absl12lts_2024011618container_internal19AssertSameContainerEPKNS1_6ctrl_tES4_RKPKvS8_PKhSA_:
 1339|    256|                                const GenerationType* generation_ptr_b) {
 1340|    256|  if (!SwisstableDebugEnabled()) return;
  ------------------
  |  Branch (1340:7): [True: 256, Folded]
  ------------------
 1341|       |  // `SwisstableDebugEnabled()` is also true for release builds with hardening
 1342|       |  // enabled. To minimize their impact in those builds:
 1343|       |  // - use `ABSL_PREDICT_FALSE()` to provide a compiler hint for code layout
 1344|       |  // - use `ABSL_RAW_LOG()` with a format string to reduce code size and improve
 1345|       |  //   the chances that the hot paths will be inlined.
 1346|      0|  const bool a_is_default = ctrl_a == EmptyGroup();
 1347|      0|  const bool b_is_default = ctrl_b == EmptyGroup();
 1348|      0|  if (ABSL_PREDICT_FALSE(a_is_default != b_is_default)) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1349|      0|    ABSL_RAW_LOG(
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1350|      0|        FATAL,
 1351|      0|        "Invalid iterator comparison. Comparing default-constructed iterator "
 1352|      0|        "with non-default-constructed iterator.");
 1353|      0|  }
 1354|      0|  if (a_is_default && b_is_default) return;
  ------------------
  |  Branch (1354:7): [True: 0, False: 0]
  |  Branch (1354:23): [True: 0, False: 0]
  ------------------
 1355|       |
 1356|      0|  if (SwisstableGenerationsEnabled()) {
  ------------------
  |  Branch (1356:7): [Folded, False: 0]
  ------------------
 1357|      0|    if (ABSL_PREDICT_TRUE(generation_ptr_a == generation_ptr_b)) return;
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1358|      0|    const bool a_is_empty = IsEmptyGeneration(generation_ptr_a);
 1359|      0|    const bool b_is_empty = IsEmptyGeneration(generation_ptr_b);
 1360|      0|    if (a_is_empty != b_is_empty) {
  ------------------
  |  Branch (1360:9): [True: 0, False: 0]
  ------------------
 1361|      0|      ABSL_RAW_LOG(FATAL,
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1362|      0|                   "Invalid iterator comparison. Comparing iterator from a "
 1363|      0|                   "non-empty hashtable with an iterator from an empty "
 1364|      0|                   "hashtable.");
 1365|      0|    }
 1366|      0|    if (a_is_empty && b_is_empty) {
  ------------------
  |  Branch (1366:9): [True: 0, False: 0]
  |  Branch (1366:23): [True: 0, False: 0]
  ------------------
 1367|      0|      ABSL_RAW_LOG(FATAL,
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1368|      0|                   "Invalid iterator comparison. Comparing iterators from "
 1369|      0|                   "different empty hashtables.");
 1370|      0|    }
 1371|      0|    const bool a_is_end = ctrl_a == nullptr;
 1372|      0|    const bool b_is_end = ctrl_b == nullptr;
 1373|      0|    if (a_is_end || b_is_end) {
  ------------------
  |  Branch (1373:9): [True: 0, False: 0]
  |  Branch (1373:21): [True: 0, False: 0]
  ------------------
 1374|      0|      ABSL_RAW_LOG(FATAL,
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1375|      0|                   "Invalid iterator comparison. Comparing iterator with an "
 1376|      0|                   "end() iterator from a different hashtable.");
 1377|      0|    }
 1378|      0|    ABSL_RAW_LOG(FATAL,
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1379|      0|                 "Invalid iterator comparison. Comparing non-end() iterators "
 1380|      0|                 "from different hashtables.");
 1381|      0|  } else {
 1382|      0|    ABSL_HARDENING_ASSERT(
  ------------------
  |  |  128|      0|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|      0|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (95:30): [True: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1383|      0|        AreItersFromSameContainer(ctrl_a, ctrl_b, slot_a, slot_b) &&
 1384|      0|        "Invalid iterator comparison. The iterators may be from different "
 1385|      0|        "containers or the container might have rehashed or moved. Consider "
 1386|      0|        "running with --config=asan to diagnose issues.");
 1387|      0|  }
 1388|      0|}
_ZN4absl12lts_2024011618container_internal15is_single_groupEm:
 1411|    152|inline bool is_single_group(size_t capacity) {
 1412|    152|  return capacity <= Group::kWidth;
 1413|    152|}
_ZN4absl12lts_2024011618container_internal5probeEPKNS1_6ctrl_tEmm:
 1417|  4.08k|                                      size_t hash) {
 1418|  4.08k|  return probe_seq<Group::kWidth>(H1(hash, ctrl), capacity);
 1419|  4.08k|}
_ZN4absl12lts_2024011618container_internal5probeERKNS1_12CommonFieldsEm:
 1420|  4.08k|inline probe_seq<Group::kWidth> probe(const CommonFields& common, size_t hash) {
 1421|  4.08k|  return probe(common.control(), common.capacity(), hash);
 1422|  4.08k|}
_ZN4absl12lts_2024011618container_internal15ResetGrowthLeftERNS1_12CommonFieldsE:
 1464|     76|inline void ResetGrowthLeft(CommonFields& common) {
 1465|     76|  common.set_growth_left(CapacityToGrowth(common.capacity()) - common.size());
 1466|     76|}
_ZN4absl12lts_2024011618container_internal9ResetCtrlERNS1_12CommonFieldsEm:
 1470|     40|inline void ResetCtrl(CommonFields& common, size_t slot_size) {
 1471|     40|  const size_t capacity = common.capacity();
 1472|     40|  ctrl_t* ctrl = common.control();
 1473|     40|  std::memset(ctrl, static_cast<int8_t>(ctrl_t::kEmpty),
 1474|     40|              capacity + 1 + NumClonedBytes());
 1475|     40|  ctrl[capacity] = ctrl_t::kSentinel;
 1476|     40|  SanitizerPoisonMemoryRegion(common.slot_array(), slot_size * capacity);
 1477|     40|}
_ZN4absl12lts_2024011618container_internal7SetCtrlERKNS1_12CommonFieldsEmNS1_6ctrl_tEm:
 1484|  2.17k|                    size_t slot_size) {
 1485|  2.17k|  const size_t capacity = common.capacity();
 1486|  2.17k|  assert(i < capacity);
 1487|       |
 1488|  2.17k|  auto* slot_i = static_cast<const char*>(common.slot_array()) + i * slot_size;
 1489|  2.17k|  if (IsFull(h)) {
  ------------------
  |  Branch (1489:7): [True: 2.17k, False: 0]
  ------------------
 1490|  2.17k|    SanitizerUnpoisonMemoryRegion(slot_i, slot_size);
 1491|  2.17k|  } else {
 1492|      0|    SanitizerPoisonMemoryRegion(slot_i, slot_size);
 1493|      0|  }
 1494|       |
 1495|  2.17k|  ctrl_t* ctrl = common.control();
 1496|  2.17k|  ctrl[i] = h;
 1497|  2.17k|  ctrl[((i - NumClonedBytes()) & capacity) + (NumClonedBytes() & capacity)] = h;
 1498|  2.17k|}
_ZN4absl12lts_2024011618container_internal7SetCtrlERKNS1_12CommonFieldsEmhm:
 1502|  2.17k|                    size_t slot_size) {
 1503|  2.17k|  SetCtrl(common, i, static_cast<ctrl_t>(h), slot_size);
 1504|  2.17k|}
_ZN4absl12lts_2024011618container_internal11SlotAddressEPvmm:
 1513|    150|inline void* SlotAddress(void* slot_array, size_t slot, size_t slot_size) {
 1514|    150|  return reinterpret_cast<void*>(reinterpret_cast<char*>(slot_array) +
 1515|    150|                                 (slot * slot_size));
 1516|    150|}
_ZN4absl12lts_2024011618container_internal19find_first_non_fullIvEENS1_8FindInfoERKNS1_12CommonFieldsEm:
 1432|  2.19k|inline FindInfo find_first_non_full(const CommonFields& common, size_t hash) {
 1433|  2.19k|  auto seq = probe(common, hash);
 1434|  2.19k|  const ctrl_t* ctrl = common.control();
 1435|  2.28k|  while (true) {
  ------------------
  |  Branch (1435:10): [True: 2.28k, Folded]
  ------------------
 1436|  2.28k|    GroupEmptyOrDeleted g{ctrl + seq.offset()};
 1437|  2.28k|    auto mask = g.MaskEmptyOrDeleted();
 1438|  2.28k|    if (mask) {
  ------------------
  |  Branch (1438:9): [True: 2.19k, False: 93]
  ------------------
 1439|       |#if !defined(NDEBUG)
 1440|       |      // We want to add entropy even when ASLR is not enabled.
 1441|       |      // In debug build we will randomly insert in either the front or back of
 1442|       |      // the group.
 1443|       |      // TODO(kfm,sbenza): revisit after we do unconditional mixing
 1444|       |      if (!is_small(common.capacity()) && ShouldInsertBackwards(hash, ctrl)) {
 1445|       |        return {seq.offset(mask.HighestBitSet()), seq.index()};
 1446|       |      }
 1447|       |#endif
 1448|  2.19k|      return {seq.offset(mask.LowestBitSet()), seq.index()};
 1449|  2.19k|    }
 1450|     93|    seq.next();
 1451|       |    assert(seq.index() <= common.capacity() && "full table!");
 1452|     93|  }
 1453|  2.19k|}
_ZNK4absl12lts_2024011618container_internal18NonIterableBitMaskItLi16ELi0EEcvbEv:
  391|  3.90k|  explicit operator bool() const { return this->mask_ != 0; }
_ZNK4absl12lts_2024011618container_internal9probe_seqILm16EE6offsetEm:
  324|  2.91k|  size_t offset(size_t i) const { return (offset_ + i) & mask_; }
_ZNK4absl12lts_2024011618container_internal9probe_seqILm16EE5indexEv:
  332|  2.19k|  size_t index() const { return index_; }
_ZNK4absl12lts_2024011618container_internal18NonIterableBitMaskItLi16ELi0EE12LowestBitSetEv:
  394|  2.60k|  uint32_t LowestBitSet() const {
  395|  2.60k|    return container_internal::TrailingZeros(mask_) >> Shift;
  396|  2.60k|  }
_ZN4absl12lts_2024011618container_internal13TrailingZerosItEEjT_:
  372|  2.60k|uint32_t TrailingZeros(T x) {
  373|  2.60k|  ABSL_ASSUME(x != 0);
  ------------------
  |  |  259|  2.60k|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
  374|  2.60k|  return static_cast<uint32_t>(countr_zero(x));
  375|  2.60k|}
_ZN4absl12lts_2024011618container_internal9probe_seqILm16EE4nextEv:
  326|    186|  void next() {
  327|    186|    index_ += Width;
  328|    186|    offset_ += index_;
  329|    186|    offset_ &= mask_;
  330|    186|  }
_ZNK4absl12lts_2024011618container_internal9probe_seqILm16EE6offsetEv:
  323|  4.27k|  size_t offset() const { return offset_; }
_ZNK4absl12lts_2024011618container_internal7BitMaskItLi16ELi0EE5beginEv:
  454|  1.92k|  BitMask begin() const { return *this; }
_ZNK4absl12lts_2024011618container_internal7BitMaskItLi16ELi0EE3endEv:
  455|  1.92k|  BitMask end() const { return BitMask(0); }
_ZN4absl12lts_2024011618container_internalneERKNS1_7BitMaskItLi16ELi0EEES5_:
  461|  2.02k|  friend bool operator!=(const BitMask& a, const BitMask& b) {
  462|  2.02k|    return a.mask_ != b.mask_;
  463|  2.02k|  }
_ZN4absl12lts_2024011618container_internal7BitMaskItLi16ELi0EEppEv:
  443|     97|  BitMask& operator++() {
  444|     97|    if (Shift == 3) {
  ------------------
  |  Branch (444:9): [Folded, False: 97]
  ------------------
  445|      0|      constexpr uint64_t msbs = 0x8080808080808080ULL;
  446|      0|      this->mask_ &= msbs;
  447|      0|    }
  448|     97|    this->mask_ &= (this->mask_ - 1);
  449|     97|    return *this;
  450|     97|  }
_ZNK4absl12lts_2024011618container_internal7BitMaskItLi16ELi0EEdeEv:
  452|    407|  uint32_t operator*() const { return Base::LowestBitSet(); }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper13DeallocateOldILm8ENSt3__19allocatorIcEEEEvT0_mPv:
 1676|     56|  void DeallocateOld(CharAlloc alloc_ref, size_t slot_size, void* old_slots) {
 1677|     56|    SanitizerUnpoisonMemoryRegion(old_slots, slot_size * old_capacity_);
 1678|     56|    Deallocate<BackingArrayAlignment(AlignOfSlot)>(
 1679|     56|        &alloc_ref, old_ctrl_ - ControlOffset(had_infoz_),
 1680|     56|        AllocSize(old_capacity_, slot_size, AlignOfSlot, had_infoz_));
 1681|     56|  }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE4findINS9_16ExtensionInfoKeyEEENSF_14const_iteratorERKT_:
 2718|      8|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2719|      8|    prefetch_heap_block();
 2720|      8|    return find(key, hash_ref()(key));
 2721|      8|  }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE19prefetch_heap_blockEv:
 3187|      9|  void prefetch_heap_block() const {
 3188|      9|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|      9|    __builtin_prefetch(control(), 0, 1);
 3190|      9|#endif
 3191|      9|  }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE7controlEv:
 3196|     29|  ctrl_t* control() const { return common().control(); }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE6commonEv:
 3194|     60|  const CommonFields& common() const { return settings_.template get<0>(); }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE4findINS9_16ExtensionInfoKeyEEENSF_14const_iteratorERKT_m:
 2713|      8|                      size_t hash) const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2714|      8|    return const_cast<raw_hash_set*>(this)->find(key, hash);
 2715|      8|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE4findINS9_16ExtensionInfoKeyEEENSF_8iteratorERKT_m:
 2688|      8|                size_t hash) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2689|      8|    auto seq = probe(common(), hash);
 2690|      8|    slot_type* slot_ptr = slot_array();
 2691|      8|    const ctrl_t* ctrl = control();
 2692|      8|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 8, Folded]
  ------------------
 2693|      8|      Group g{ctrl + seq.offset()};
 2694|      8|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 8, False: 0]
  ------------------
 2695|      8|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      8|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 8, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 8]
  |  |  |  Branch (179:57): [True: 8, False: 0]
  |  |  ------------------
  ------------------
 2696|      8|                EqualElement<K>{key, eq_ref()},
 2697|      8|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|      8|          return iterator_at(seq.offset(i));
 2699|      8|      }
 2700|      0|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2701|      0|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      0|    }
 2704|      8|  }
_ZN4absl12lts_2024011618container_internal9probe_seqILm16EEC2Emm:
  316|  4.08k|  probe_seq(size_t hash, size_t mask) {
  317|       |    assert(((mask + 1) & mask) == 0 && "not a mask");
  318|  4.08k|    mask_ = mask;
  319|  4.08k|    offset_ = hash & mask_;
  320|  4.08k|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE6commonEv:
 3193|     29|  CommonFields& common() { return settings_.template get<0>(); }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE10slot_arrayEv:
 3197|     19|  slot_type* slot_array() const {
 3198|     19|    return static_cast<slot_type*>(common().slot_array());
 3199|     19|  }
_ZN4absl12lts_2024011618container_internal7BitMaskItLi16ELi0EEC2Et:
  437|  5.77k|  explicit BitMask(T mask) : Base(mask) {}
_ZN4absl12lts_2024011618container_internal18NonIterableBitMaskItLi16ELi0EEC2Et:
  389|  9.68k|  explicit NonIterableBitMask(T mask) : mask_(mask) {}
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE12EqualElementINS9_16ExtensionInfoKeyEEclIS7_JRS7_EEEbRKT_DpOT0_:
 2813|      8|    bool operator()(const K2& lhs, Args&&...) const {
 2814|      8|      return eq(lhs, rhs);
 2815|      8|    }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE6eq_refEv:
 3204|      8|  key_equal& eq_ref() { return settings_.template get<2>(); }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE11iterator_atEm:
 3159|      9|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|      9|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|      9|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE8iteratorC2EPNS1_6ctrl_tEPS7_PKh:
 1984|      9|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|      9|          ctrl_(ctrl),
 1986|      9|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|      9|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|      9|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|      9|    }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE8iteratorC2EPKh:
 1993|      8|        : HashSetIteratorGenerationInfo(generation_ptr), ctrl_(nullptr) {}
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE14const_iteratorC2ENSF_8iteratorE:
 2047|     16|    const_iterator(iterator i) : inner_(std::move(i)) {}  // NOLINT
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE8hash_refEv:
 3203|      8|  const hasher& hash_ref() const { return settings_.template get<1>(); }
extension_set.cc:_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE14const_iteratorESI_:
 2058|      8|    friend bool operator==(const const_iterator& a, const const_iterator& b) {
 2059|      8|      return a.inner_ == b.inner_;
 2060|      8|    }
extension_set.cc:_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE8iteratorESI_:
 1970|      8|    friend bool operator==(const iterator& a, const iterator& b) {
 1971|      8|      AssertIsValidForComparison(a.ctrl_, a.generation(), a.generation_ptr());
 1972|      8|      AssertIsValidForComparison(b.ctrl_, b.generation(), b.generation_ptr());
 1973|      8|      AssertSameContainer(a.ctrl_, b.ctrl_, a.slot_, b.slot_,
 1974|      8|                          a.generation_ptr(), b.generation_ptr());
 1975|      8|      return a.ctrl_ == b.ctrl_;
 1976|      8|    }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE3endEv:
 2278|      8|  const_iterator end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2279|      8|    return iterator(common().generation_ptr());
 2280|      8|  }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE14const_iteratordeEv:
 2049|      8|    reference operator*() const { return *inner_; }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE8iteratordeEv:
 1944|      8|    reference operator*() const {
 1945|      8|      AssertIsFull(ctrl_, generation(), generation_ptr(), "operator*()");
 1946|      8|      return unchecked_deref();
 1947|      8|    }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE8iterator15unchecked_derefEv:
 2029|      8|    reference unchecked_deref() const { return PolicyTraits::element(slot_); }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE8capacityEv:
 2288|      2|  size_t capacity() const { return common().capacity(); }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE9alloc_refEv:
 3206|      2|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE5infozEv:
 3200|      1|  HashtablezInfoHandle infoz() { return common().infoz(); }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEEC2Ev:
 2088|      1|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12CommonFieldsC2Ev:
 1028|    140|  CommonFields() = default;
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE6insertIS7_TnNSC_9enable_ifIXsr4absl11disjunctionINSC_14is_convertibleIRKT_S7_EENSF_22SameAsElementReferenceISL_EEEE5valueEiE4typeELi0ETnNSH_IXsr14IsDecomposableISL_EE5valueEiE4typeELi0EEENSC_4pairINSF_8iteratorEbEESL_:
 2339|      1|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2340|      1|    return emplace(value);
 2341|      1|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE7emplaceIJRKS7_ETnNSC_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENSC_4pairINSF_8iteratorEbEEDpOSK_:
 2422|      1|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|      1|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|      1|                               std::forward<Args>(args)...);
 2425|      1|  }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE19EmplaceDecomposableclIS7_JRKS7_EEENSC_4pairINSF_8iteratorEbEERKT_DpOT0_:
 2822|      1|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|      1|      auto res = s.find_or_prepare_insert(key);
 2824|      1|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 1, False: 0]
  ------------------
 2825|      1|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|      1|      }
 2827|      1|      return {s.iterator_at(res.first), res.second};
 2828|      1|    }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE22find_or_prepare_insertIS7_EENSC_4pairImbEERKT_:
 3086|      1|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|      1|    prefetch_heap_block();
 3088|      1|    auto hash = hash_ref()(key);
 3089|      1|    auto seq = probe(common(), hash);
 3090|      1|    const ctrl_t* ctrl = control();
 3091|      1|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 1, Folded]
  ------------------
 3092|      1|      Group g{ctrl + seq.offset()};
 3093|      1|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 0, False: 1]
  ------------------
 3094|      0|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3095|      0|                EqualElement<K>{key, eq_ref()},
 3096|      0|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      0|      }
 3099|      1|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|      1|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 1, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 1]
  |  |  |  Branch (179:57): [True: 1, False: 0]
  |  |  ------------------
  ------------------
 3100|      0|      seq.next();
 3101|      0|      assert(seq.index() <= capacity() && "full table!");
 3102|      0|    }
 3103|      1|    return {prepare_insert(hash), true};
 3104|      1|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE8hash_refEv:
 3202|      1|  hasher& hash_ref() { return settings_.template get<1>(); }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE14prepare_insertEm:
 3110|      1|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|      1|    const bool rehash_for_bug_detection =
 3112|      1|        common().should_rehash_for_bug_detection_on_insert();
 3113|      1|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 1]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|      1|    auto target = find_first_non_full(common(), hash);
 3119|      1|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 1, False: 0]
  ------------------
 3120|      1|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|      2|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 1, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 1]
  |  |  |  Branch (178:59): [True: 1, False: 0]
  |  |  |  Branch (178:59): [True: 1, False: 0]
  |  |  ------------------
  ------------------
 3121|      1|                           !IsDeleted(control()[target.offset]))) {
 3122|      1|      size_t old_capacity = capacity();
 3123|      1|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|      1|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|      1|          common(), old_capacity, hash);
 3133|      1|    }
 3134|      1|    common().increment_size();
 3135|      1|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|      1|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|      1|    common().maybe_increment_generation_on_insert();
 3138|      1|    infoz().RecordInsert(hash, target.probe_length);
 3139|      1|    return target.offset;
 3140|      1|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE6resizeEm:
 2905|      1|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|      1|    assert(IsValidCapacity(new_capacity));
 2907|      1|    HashSetResizeHelper resize_helper(common());
 2908|      1|    auto* old_slots = slot_array();
 2909|      1|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|      1|    const bool grow_single_group =
 2914|      1|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|      1|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|      1|                                      alignof(slot_type)>(
 2917|      1|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|      1|            CharAlloc(alloc_ref()));
 2919|       |
 2920|      1|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 1, False: 0]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      1|      return;
 2923|      1|    }
 2924|       |
 2925|      0|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 0, False: 0]
  ------------------
 2926|      0|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 0]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      0|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      0|                                                          old_slots);
 2934|      0|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      0|      auto* new_slots = slot_array();
 2937|      0|      size_t total_probe_length = 0;
 2938|      0|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 0, False: 0]
  ------------------
 2939|      0|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 0, False: 0]
  ------------------
 2940|      0|          size_t hash = PolicyTraits::apply(
 2941|      0|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|      0|          auto target = find_first_non_full(common(), hash);
 2943|      0|          size_t new_i = target.offset;
 2944|      0|          total_probe_length += target.probe_length;
 2945|      0|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|      0|          transfer(new_slots + new_i, old_slots + i);
 2947|      0|        }
 2948|      0|      }
 2949|      0|      infoz().RecordRehash(total_probe_length);
 2950|      0|    }
 2951|      0|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      0|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      0|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      0|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper15InitializeSlotsINSt3__19allocatorIcEELm48ELb0ELm8EEEbRNS1_12CommonFieldsEPvT_:
 1595|      1|                                               Alloc alloc) {
 1596|      1|    assert(c.capacity());
 1597|       |    // Folks with custom allocators often make unwarranted assumptions about the
 1598|       |    // behavior of their classes vis-a-vis trivial destructability and what
 1599|       |    // calls they will or won't make.  Avoid sampling for people with custom
 1600|       |    // allocators to get us out of this mess.  This is not a hard guarantee but
 1601|       |    // a workaround while we plan the exact guarantee we want to provide.
 1602|      1|    const size_t sample_size =
 1603|      1|        (std::is_same<Alloc, std::allocator<char>>::value &&
  ------------------
  |  Branch (1603:10): [True: 1, Folded]
  ------------------
 1604|      1|         c.slot_array() == nullptr)
  ------------------
  |  Branch (1604:10): [True: 1, False: 0]
  ------------------
 1605|      1|            ? SizeOfSlot
 1606|      1|            : 0;
 1607|      1|    HashtablezInfoHandle infoz =
 1608|      1|        sample_size > 0 ? Sample(sample_size) : c.infoz();
  ------------------
  |  Branch (1608:9): [True: 1, False: 0]
  ------------------
 1609|       |
 1610|      1|    const bool has_infoz = infoz.IsSampled();
 1611|      1|    const size_t cap = c.capacity();
 1612|      1|    const size_t alloc_size =
 1613|      1|        AllocSize(cap, SizeOfSlot, AlignOfSlot, has_infoz);
 1614|      1|    char* mem = static_cast<char*>(
 1615|      1|        Allocate<BackingArrayAlignment(AlignOfSlot)>(&alloc, alloc_size));
 1616|      1|    const GenerationType old_generation = c.generation();
 1617|      1|    c.set_generation_ptr(reinterpret_cast<GenerationType*>(
 1618|      1|        mem + GenerationOffset(cap, has_infoz)));
 1619|      1|    c.set_generation(NextGeneration(old_generation));
 1620|      1|    c.set_control(reinterpret_cast<ctrl_t*>(mem + ControlOffset(has_infoz)));
 1621|      1|    c.set_slots(mem + SlotOffset(cap, AlignOfSlot, has_infoz));
 1622|      1|    ResetGrowthLeft(c);
 1623|       |
 1624|      1|    const bool grow_single_group =
 1625|      1|        IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity());
 1626|      1|    if (old_capacity_ != 0 && grow_single_group) {
  ------------------
  |  Branch (1626:9): [True: 0, False: 1]
  |  Branch (1626:31): [True: 0, False: 0]
  ------------------
 1627|      0|      if (TransferUsesMemcpy) {
  ------------------
  |  Branch (1627:11): [Folded, False: 0]
  ------------------
 1628|      0|        GrowSizeIntoSingleGroupTransferable(c, old_slots, SizeOfSlot);
 1629|      0|        DeallocateOld<AlignOfSlot>(alloc, SizeOfSlot, old_slots);
 1630|      0|      } else {
 1631|      0|        GrowIntoSingleGroupShuffleControlBytes(c.control(), c.capacity());
 1632|      0|      }
 1633|      1|    } else {
 1634|      1|      ResetCtrl(c, SizeOfSlot);
 1635|      1|    }
 1636|       |
 1637|      1|    c.set_has_infoz(has_infoz);
 1638|      1|    if (has_infoz) {
  ------------------
  |  Branch (1638:9): [True: 0, False: 1]
  ------------------
 1639|      0|      infoz.RecordStorageChanged(c.size(), cap);
 1640|      0|      if (grow_single_group || old_capacity_ == 0) {
  ------------------
  |  Branch (1640:11): [True: 0, False: 0]
  |  Branch (1640:32): [True: 0, False: 0]
  ------------------
 1641|      0|        infoz.RecordRehash(0);
 1642|      0|      }
 1643|      0|      c.set_infoz(infoz);
 1644|      0|    }
 1645|      1|    return grow_single_group;
 1646|      1|  }
extension_set.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE11growth_leftEv:
 3181|      2|  size_t growth_left() const { return common().growth_left(); }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE28rehash_and_grow_if_necessaryEv:
 2970|      1|  void rehash_and_grow_if_necessary() {
 2971|      1|    const size_t cap = capacity();
 2972|      1|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 0, False: 1]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      0|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 0]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|      1|    } else {
 3018|       |      // Otherwise grow the container.
 3019|      1|      resize(NextCapacity(cap));
 3020|      1|    }
 3021|      1|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE15set_growth_leftEm:
 3182|      1|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE10emplace_atIJRKS7_EEEvmDpOT_:
 3151|      1|  void emplace_at(size_t i, Args&&... args) {
 3152|      1|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|      1|               iterator_at(i) &&
 3156|      1|           "constructed value does not match the lookup key");
 3157|      1|  }
extension_set.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf8internal13ExtensionInfoEEENS6_12_GLOBAL__N_115ExtensionHasherENS9_11ExtensionEqENSt3__19allocatorIS7_EEE9constructIJRKS7_EEEvPS7_DpOT_:
 2851|      1|  inline void construct(slot_type* slot, Args&&... args) {
 2852|      1|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|      1|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE8capacityEv:
 2288|      6|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE6commonEv:
 3194|  1.06k|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE7controlEv:
 3196|    628|  ctrl_t* control() const { return common().control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE10slot_arrayEv:
 3197|    418|  slot_type* slot_array() const {
 3198|    418|    return static_cast<slot_type*>(common().slot_array());
 3199|    418|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE9alloc_refEv:
 3206|     11|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE5infozEv:
 3200|      4|  HashtablezInfoHandle infoz() { return common().infoz(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE6commonEv:
 3193|    456|  CommonFields& common() { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE8capacityEv:
 2288|      6|  size_t capacity() const { return common().capacity(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE6commonEv:
 3194|    106|  const CommonFields& common() const { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE7controlEv:
 3196|     50|  ctrl_t* control() const { return common().control(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE10slot_arrayEv:
 3197|     29|  slot_type* slot_array() const {
 3198|     29|    return static_cast<slot_type*>(common().slot_array());
 3199|     29|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE9alloc_refEv:
 3206|     11|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE5infozEv:
 3200|      4|  HashtablezInfoHandle infoz() { return common().infoz(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE6commonEv:
 3193|     76|  CommonFields& common() { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8capacityEv:
 2288|     18|  size_t capacity() const { return common().capacity(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE6commonEv:
 3194|  3.71k|  const CommonFields& common() const { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE7controlEv:
 3196|  1.82k|  ctrl_t* control() const { return common().control(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE10slot_arrayEv:
 3197|  1.00k|  slot_type* slot_array() const {
 3198|  1.00k|    return static_cast<slot_type*>(common().slot_array());
 3199|  1.00k|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE9alloc_refEv:
 3206|    836|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE5infozEv:
 3200|    387|  HashtablezInfoHandle infoz() { return common().infoz(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE6commonEv:
 3193|  4.54k|  CommonFields& common() { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8capacityEv:
 2288|     20|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE6commonEv:
 3194|    424|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE7controlEv:
 3196|    221|  ctrl_t* control() const { return common().control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE10slot_arrayEv:
 3197|    119|  slot_type* slot_array() const {
 3198|    119|    return static_cast<slot_type*>(common().slot_array());
 3199|    119|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE9alloc_refEv:
 3206|     84|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE5infozEv:
 3200|     34|  HashtablezInfoHandle infoz() { return common().infoz(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE6commonEv:
 3193|    515|  CommonFields& common() { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE8capacityEv:
 2288|      8|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE6commonEv:
 3194|     40|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE7controlEv:
 3196|     16|  ctrl_t* control() const { return common().control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE10slot_arrayEv:
 3197|      8|  slot_type* slot_array() const {
 3198|      8|    return static_cast<slot_type*>(common().slot_array());
 3199|      8|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE6commonEv:
 3193|     32|  CommonFields& common() { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE8capacityEv:
 2288|     20|  size_t capacity() const { return common().capacity(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6commonEv:
 3194|    315|  const CommonFields& common() const { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE7controlEv:
 3196|    146|  ctrl_t* control() const { return common().control(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE10slot_arrayEv:
 3197|     81|  slot_type* slot_array() const {
 3198|     81|    return static_cast<slot_type*>(common().slot_array());
 3199|     81|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE9alloc_refEv:
 3206|     86|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE5infozEv:
 3200|     36|  HashtablezInfoHandle infoz() { return common().infoz(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6commonEv:
 3193|    410|  CommonFields& common() { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE8capacityEv:
 2288|     20|  size_t capacity() const { return common().capacity(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6commonEv:
 3194|    875|  const CommonFields& common() const { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE7controlEv:
 3196|    422|  ctrl_t* control() const { return common().control(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE10slot_arrayEv:
 3197|    225|  slot_type* slot_array() const {
 3198|    225|    return static_cast<slot_type*>(common().slot_array());
 3199|    225|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE9alloc_refEv:
 3206|    222|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE5infozEv:
 3200|    106|  HashtablezInfoHandle infoz() { return common().infoz(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6commonEv:
 3193|  1.17k|  CommonFields& common() { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE8capacityEv:
 2288|     44|  size_t capacity() const { return common().capacity(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE6commonEv:
 3194|  4.05k|  const CommonFields& common() const { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE7controlEv:
 3196|  1.97k|  ctrl_t* control() const { return common().control(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE10slot_arrayEv:
 3197|  1.05k|  slot_type* slot_array() const {
 3198|  1.05k|    return static_cast<slot_type*>(common().slot_array());
 3199|  1.05k|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE9alloc_refEv:
 3206|  1.06k|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE5infozEv:
 3200|    495|  HashtablezInfoHandle infoz() { return common().infoz(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE6commonEv:
 3193|  5.55k|  CommonFields& common() { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS5_14DescriptorPool18DeferredValidation13LifetimesInfoENS9_9allocatorISD_EEEEEENS1_6HashEqIS8_vE4HashENSJ_2EqENSE_INS9_4pairIKS8_SG_EEEEE6commonEv:
 3194|     12|  const CommonFields& common() const { return settings_.template get<0>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE4findINS8_13FullNameQueryEEENSE_14const_iteratorERKT_:
 2718|     99|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2719|     99|    prefetch_heap_block();
 2720|     99|    return find(key, hash_ref()(key));
 2721|     99|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE19prefetch_heap_blockEv:
 3187|    481|  void prefetch_heap_block() const {
 3188|    481|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|    481|    __builtin_prefetch(control(), 0, 1);
 3190|    481|#endif
 3191|    481|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE4findINS8_13FullNameQueryEEENSE_14const_iteratorERKT_m:
 2713|     99|                      size_t hash) const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2714|     99|    return const_cast<raw_hash_set*>(this)->find(key, hash);
 2715|     99|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE4findINS8_13FullNameQueryEEENSE_8iteratorERKT_m:
 2688|     99|                size_t hash) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2689|     99|    auto seq = probe(common(), hash);
 2690|     99|    slot_type* slot_ptr = slot_array();
 2691|     99|    const ctrl_t* ctrl = control();
 2692|     99|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 99, Folded]
  ------------------
 2693|     99|      Group g{ctrl + seq.offset()};
 2694|     99|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 93, False: 6]
  ------------------
 2695|     93|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|     93|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 93, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 93]
  |  |  |  Branch (179:57): [True: 93, False: 0]
  |  |  ------------------
  ------------------
 2696|     93|                EqualElement<K>{key, eq_ref()},
 2697|     93|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|     93|          return iterator_at(seq.offset(i));
 2699|     93|      }
 2700|      6|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|      6|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 6, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 6]
  |  |  |  Branch (179:57): [True: 6, False: 0]
  |  |  ------------------
  ------------------
 2701|      0|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      0|    }
 2704|     99|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE12EqualElementINS8_13FullNameQueryEEclIS6_JRS6_EEEbRKT_DpOT0_:
 2813|     93|    bool operator()(const K2& lhs, Args&&...) const {
 2814|     93|      return eq(lhs, rhs);
 2815|     93|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE6eq_refEv:
 3204|    127|  key_equal& eq_ref() { return settings_.template get<2>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE11iterator_atEm:
 3159|    475|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|    475|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|    475|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8iteratorC2EPNS1_6ctrl_tEPS6_PKh:
 1984|    475|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|    475|          ctrl_(ctrl),
 1986|    475|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|    475|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|    475|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|    475|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE3endEv:
 2271|      6|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2272|      6|    return iterator(common().generation_ptr());
 2273|      6|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8iteratorC2EPKh:
 1993|    105|        : HashSetIteratorGenerationInfo(generation_ptr), ctrl_(nullptr) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE14const_iteratorC2ENSE_8iteratorE:
 2047|    198|    const_iterator(iterator i) : inner_(std::move(i)) {}  // NOLINT
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8hash_refEv:
 3203|     99|  const hasher& hash_ref() const { return settings_.template get<1>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE14const_iteratorESH_:
 2058|     99|    friend bool operator==(const const_iterator& a, const const_iterator& b) {
 2059|     99|      return a.inner_ == b.inner_;
 2060|     99|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8iteratorESH_:
 1970|     99|    friend bool operator==(const iterator& a, const iterator& b) {
 1971|     99|      AssertIsValidForComparison(a.ctrl_, a.generation(), a.generation_ptr());
 1972|     99|      AssertIsValidForComparison(b.ctrl_, b.generation(), b.generation_ptr());
 1973|     99|      AssertSameContainer(a.ctrl_, b.ctrl_, a.slot_, b.slot_,
 1974|     99|                          a.generation_ptr(), b.generation_ptr());
 1975|     99|      return a.ctrl_ == b.ctrl_;
 1976|     99|    }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE3endEv:
 2278|     99|  const_iterator end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2279|     99|    return iterator(common().generation_ptr());
 2280|     99|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE14const_iteratordeEv:
 2049|     93|    reference operator*() const { return *inner_; }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8iteratordeEv:
 1944|     93|    reference operator*() const {
 1945|     93|      AssertIsFull(ctrl_, generation(), generation_ptr(), "operator*()");
 1946|     93|      return unchecked_deref();
 1947|     93|    }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8iterator15unchecked_derefEv:
 2029|     93|    reference unchecked_deref() const { return PolicyTraits::element(slot_); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS5_14DescriptorPool18DeferredValidation13LifetimesInfoENS9_9allocatorISD_EEEEEENS1_6HashEqIS8_vE4HashENSJ_2EqENSE_INS9_4pairIKS8_SG_EEEEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS5_14DescriptorPool18DeferredValidation13LifetimesInfoENS9_9allocatorISD_EEEEEENS1_6HashEqIS8_vE4HashENSJ_2EqENSE_INS9_4pairIKS8_SG_EEEEE5emptyEv:
 2286|      8|  bool empty() const { return !size(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS5_14DescriptorPool18DeferredValidation13LifetimesInfoENS9_9allocatorISD_EEEEEENS1_6HashEqIS8_vE4HashENSJ_2EqENSE_INS9_4pairIKS8_SG_EEEEE4sizeEv:
 2287|      8|  size_t size() const { return common().size(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS5_14DescriptorPool18DeferredValidation13LifetimesInfoENS9_9allocatorISD_EEEEEENS1_6HashEqIS8_vE4HashENSJ_2EqENSE_INS9_4pairIKS8_SG_EEEEE8capacityEv:
 2288|      4|  size_t capacity() const { return common().capacity(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS5_14DescriptorPool18DeferredValidation13LifetimesInfoENS9_9allocatorISD_EEEEEENS1_6HashEqIS8_vE4HashENSJ_2EqENSE_INS9_4pairIKS8_SG_EEEEED2Ev:
 2264|      4|  ~raw_hash_set() { destructor_impl(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf14FileDescriptorENSt3__16vectorINS5_14DescriptorPool18DeferredValidation13LifetimesInfoENS9_9allocatorISD_EEEEEENS1_6HashEqIS8_vE4HashENSJ_2EqENSE_INS9_4pairIKS8_SG_EEEEE15destructor_implEv:
 2882|      4|  inline void destructor_impl() {
 2883|      4|    if (capacity() == 0) return;
  ------------------
  |  Branch (2883:9): [True: 4, False: 0]
  ------------------
 2884|      0|    destroy_slots();
 2885|      0|    dealloc();
 2886|      0|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE19prefetch_heap_blockEv:
 3187|      8|  void prefetch_heap_block() const {
 3188|      8|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|      8|    __builtin_prefetch(control(), 0, 1);
 3190|      8|#endif
 3191|      8|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE4findINS0_11string_viewEEENSI_14const_iteratorERKT_:
 2718|     13|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2719|     13|    prefetch_heap_block();
 2720|     13|    return find(key, hash_ref()(key));
 2721|     13|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE19prefetch_heap_blockEv:
 3187|     17|  void prefetch_heap_block() const {
 3188|     17|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|     17|    __builtin_prefetch(control(), 0, 1);
 3190|     17|#endif
 3191|     17|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE4findINS0_11string_viewEEENSI_14const_iteratorERKT_m:
 2713|     13|                      size_t hash) const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2714|     13|    return const_cast<raw_hash_set*>(this)->find(key, hash);
 2715|     13|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE4findINS0_11string_viewEEENSI_8iteratorERKT_m:
 2688|     13|                size_t hash) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2689|     13|    auto seq = probe(common(), hash);
 2690|     13|    slot_type* slot_ptr = slot_array();
 2691|     13|    const ctrl_t* ctrl = control();
 2692|     13|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 13, Folded]
  ------------------
 2693|     13|      Group g{ctrl + seq.offset()};
 2694|     13|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 5, False: 8]
  ------------------
 2695|      5|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      5|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 5, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 5]
  |  |  |  Branch (179:57): [True: 5, False: 0]
  |  |  ------------------
  ------------------
 2696|      5|                EqualElement<K>{key, eq_ref()},
 2697|      5|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|      5|          return iterator_at(seq.offset(i));
 2699|      5|      }
 2700|      8|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|      8|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 8, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 8]
  |  |  |  Branch (179:57): [True: 8, False: 0]
  |  |  ------------------
  ------------------
 2701|      0|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      0|    }
 2704|     13|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE12EqualElementINS0_11string_viewEEclIS8_JRS8_EEEbRKT_DpOT0_:
 2813|      5|    bool operator()(const K2& lhs, Args&&...) const {
 2814|      5|      return eq(lhs, rhs);
 2815|      5|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE6eq_refEv:
 3204|      5|  key_equal& eq_ref() { return settings_.template get<2>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE11iterator_atEm:
 3159|      9|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|      9|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|      9|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE8iteratorC2EPNS1_6ctrl_tEPS8_PKh:
 1984|      9|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|      9|          ctrl_(ctrl),
 1986|      9|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|      9|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|      9|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|      9|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE3endEv:
 2271|      8|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2272|      8|    return iterator(common().generation_ptr());
 2273|      8|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE8iteratorC2EPKh:
 1993|     21|        : HashSetIteratorGenerationInfo(generation_ptr), ctrl_(nullptr) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE14const_iteratorC2ENSI_8iteratorE:
 2047|     26|    const_iterator(iterator i) : inner_(std::move(i)) {}  // NOLINT
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE8hash_refEv:
 3203|     13|  const hasher& hash_ref() const { return settings_.template get<1>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE14const_iteratorESL_:
 2058|     13|    friend bool operator==(const const_iterator& a, const const_iterator& b) {
 2059|     13|      return a.inner_ == b.inner_;
 2060|     13|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE8iteratorESL_:
 1970|     13|    friend bool operator==(const iterator& a, const iterator& b) {
 1971|     13|      AssertIsValidForComparison(a.ctrl_, a.generation(), a.generation_ptr());
 1972|     13|      AssertIsValidForComparison(b.ctrl_, b.generation(), b.generation_ptr());
 1973|     13|      AssertSameContainer(a.ctrl_, b.ctrl_, a.slot_, b.slot_,
 1974|     13|                          a.generation_ptr(), b.generation_ptr());
 1975|     13|      return a.ctrl_ == b.ctrl_;
 1976|     13|    }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE3endEv:
 2278|     13|  const_iterator end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2279|     13|    return iterator(common().generation_ptr());
 2280|     13|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE14const_iteratordeEv:
 2049|      5|    reference operator*() const { return *inner_; }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE8iteratordeEv:
 1944|      5|    reference operator*() const {
 1945|      5|      AssertIsFull(ctrl_, generation(), generation_ptr(), "operator*()");
 1946|      5|      return unchecked_deref();
 1947|      5|    }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE8iterator15unchecked_derefEv:
 2029|      5|    reference unchecked_deref() const { return PolicyTraits::element(slot_); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE19prefetch_heap_blockEv:
 3187|    103|  void prefetch_heap_block() const {
 3188|    103|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|    103|    __builtin_prefetch(control(), 0, 1);
 3190|    103|#endif
 3191|    103|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6eq_refEv:
 3204|      6|  key_equal& eq_ref() { return settings_.template get<2>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE11iterator_atEm:
 3159|    103|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|    103|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|    103|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE8iteratorC2EPNS1_6ctrl_tEPS8_PKh:
 1984|    103|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|    103|          ctrl_(ctrl),
 1986|    103|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|    103|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|    103|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|    103|    }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE19prefetch_heap_blockEv:
 3187|    487|  void prefetch_heap_block() const {
 3188|    487|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|    487|    __builtin_prefetch(control(), 0, 1);
 3190|    487|#endif
 3191|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE6eq_refEv:
 3204|     52|  key_equal& eq_ref() { return settings_.template get<2>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE11iterator_atEm:
 3159|    487|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|    487|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE8iteratorC2EPNS1_6ctrl_tEPS6_PKh:
 1984|    487|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|    487|          ctrl_(ctrl),
 1986|    487|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|    487|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|    487|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|    487|    }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE19prefetch_heap_blockEv:
 3187|     34|  void prefetch_heap_block() const {
 3188|     34|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|     34|    __builtin_prefetch(control(), 0, 1);
 3190|     34|#endif
 3191|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6eq_refEv:
 3204|      1|  key_equal& eq_ref() { return settings_.template get<2>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE11iterator_atEm:
 3159|     34|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|     34|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE8iteratorC2EPNS1_6ctrl_tEPS8_PKh:
 1984|     34|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|     34|          ctrl_(ctrl),
 1986|     34|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|     34|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|     34|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|     34|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE8hash_refEv:
 3202|     62|  hasher& hash_ref() { return settings_.template get<1>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIiEENS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS8_9allocatorIiEEE6commonEv:
 3194|      4|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIiEENS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS8_9allocatorIiEEE8capacityEv:
 2288|      4|  size_t capacity() const { return common().capacity(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIiEENS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS8_9allocatorIiEEED2Ev:
 2264|      4|  ~raw_hash_set() { destructor_impl(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIiEENS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS8_9allocatorIiEEE15destructor_implEv:
 2882|      4|  inline void destructor_impl() {
 2883|      4|    if (capacity() == 0) return;
  ------------------
  |  Branch (2883:9): [True: 4, False: 0]
  ------------------
 2884|      0|    destroy_slots();
 2885|      0|    dealloc();
 2886|      0|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEED2Ev:
 2264|      8|  ~raw_hash_set() { destructor_impl(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE15destructor_implEv:
 2882|      8|  inline void destructor_impl() {
 2883|      8|    if (capacity() == 0) return;
  ------------------
  |  Branch (2883:9): [True: 8, False: 0]
  ------------------
 2884|      0|    destroy_slots();
 2885|      0|    dealloc();
 2886|      0|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE8capacityEv:
 2288|     16|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE6commonEv:
 3194|    297|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE7controlEv:
 3196|    184|  ctrl_t* control() const { return common().control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE10slot_arrayEv:
 3197|     92|  slot_type* slot_array() const {
 3198|     92|    return static_cast<slot_type*>(common().slot_array());
 3199|     92|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE6commonEv:
 3193|    291|  CommonFields& common() { return settings_.template get<0>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_17DescriptorBuilder12MessageHintsEEENS1_6HashEqIS8_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS8_SA_EEEEED2Ev:
 2264|      4|  ~raw_hash_set() { destructor_impl(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_17DescriptorBuilder12MessageHintsEEENS1_6HashEqIS8_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS8_SA_EEEEE15destructor_implEv:
 2882|      4|  inline void destructor_impl() {
 2883|      4|    if (capacity() == 0) return;
  ------------------
  |  Branch (2883:9): [True: 4, False: 0]
  ------------------
 2884|      0|    destroy_slots();
 2885|      0|    dealloc();
 2886|      0|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_17DescriptorBuilder12MessageHintsEEENS1_6HashEqIS8_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS8_SA_EEEEE8capacityEv:
 2288|      4|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_17DescriptorBuilder12MessageHintsEEENS1_6HashEqIS8_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS8_SA_EEEEE6commonEv:
 3194|      8|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEED2Ev:
 2264|     65|  ~raw_hash_set() { destructor_impl(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE15destructor_implEv:
 2882|     65|  inline void destructor_impl() {
 2883|     65|    if (capacity() == 0) return;
  ------------------
  |  Branch (2883:9): [True: 62, False: 3]
  ------------------
 2884|      3|    destroy_slots();
 2885|      3|    dealloc();
 2886|      3|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE8capacityEv:
 2288|     77|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE6commonEv:
 3194|  1.36k|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE13destroy_slotsEv:
 2861|      3|  inline void destroy_slots() {
 2862|      3|    const size_t cap = capacity();
 2863|      3|    const ctrl_t* ctrl = control();
 2864|      3|    slot_type* slot = slot_array();
 2865|      6|    for (size_t i = 0; i != cap; ++i) {
  ------------------
  |  Branch (2865:24): [True: 3, False: 3]
  ------------------
 2866|      3|      if (IsFull(ctrl[i])) {
  ------------------
  |  Branch (2866:11): [True: 3, False: 0]
  ------------------
 2867|      3|        destroy(slot + i);
 2868|      3|      }
 2869|      3|    }
 2870|      3|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE7controlEv:
 3196|    644|  ctrl_t* control() const { return common().control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE10slot_arrayEv:
 3197|    328|  slot_type* slot_array() const {
 3198|    328|    return static_cast<slot_type*>(common().slot_array());
 3199|    328|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE7destroyEPS4_:
 2854|      3|  inline void destroy(slot_type* slot) {
 2855|      3|    PolicyTraits::destroy(&alloc_ref(), slot);
 2856|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE9alloc_refEv:
 3206|     12|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE7deallocEv:
 2872|      3|  inline void dealloc() {
 2873|      3|    assert(capacity() != 0);
 2874|       |    // Unpoison before returning the memory to the allocator.
 2875|      3|    SanitizerUnpoisonMemoryRegion(slot_array(), sizeof(slot_type) * capacity());
 2876|      3|    infoz().Unregister();
 2877|      3|    Deallocate<BackingArrayAlignment(alignof(slot_type))>(
 2878|      3|        &alloc_ref(), common().backing_array_start(),
 2879|      3|        common().alloc_size(sizeof(slot_type), alignof(slot_type)));
 2880|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE5infozEv:
 3200|      6|  HashtablezInfoHandle infoz() { return common().infoz(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE6commonEv:
 3193|    674|  CommonFields& common() { return settings_.template get<0>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE6resizeEm:
 2905|      3|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|      3|    assert(IsValidCapacity(new_capacity));
 2907|      3|    HashSetResizeHelper resize_helper(common());
 2908|      3|    auto* old_slots = slot_array();
 2909|      3|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|      3|    const bool grow_single_group =
 2914|      3|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|      3|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|      3|                                      alignof(slot_type)>(
 2917|      3|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|      3|            CharAlloc(alloc_ref()));
 2919|       |
 2920|      3|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 3, False: 0]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      3|      return;
 2923|      3|    }
 2924|       |
 2925|      0|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 0, False: 0]
  ------------------
 2926|      0|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 0]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      0|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      0|                                                          old_slots);
 2934|      0|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      0|      auto* new_slots = slot_array();
 2937|      0|      size_t total_probe_length = 0;
 2938|      0|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 0, False: 0]
  ------------------
 2939|      0|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 0, False: 0]
  ------------------
 2940|      0|          size_t hash = PolicyTraits::apply(
 2941|      0|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|      0|          auto target = find_first_non_full(common(), hash);
 2943|      0|          size_t new_i = target.offset;
 2944|      0|          total_probe_length += target.probe_length;
 2945|      0|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|      0|          transfer(new_slots + new_i, old_slots + i);
 2947|      0|        }
 2948|      0|      }
 2949|      0|      infoz().RecordRehash(total_probe_length);
 2950|      0|    }
 2951|      0|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      0|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      0|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      0|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper15InitializeSlotsINSt3__19allocatorIcEELm16ELb0ELm8EEEbRNS1_12CommonFieldsEPvT_:
 1595|      3|                                               Alloc alloc) {
 1596|      3|    assert(c.capacity());
 1597|       |    // Folks with custom allocators often make unwarranted assumptions about the
 1598|       |    // behavior of their classes vis-a-vis trivial destructability and what
 1599|       |    // calls they will or won't make.  Avoid sampling for people with custom
 1600|       |    // allocators to get us out of this mess.  This is not a hard guarantee but
 1601|       |    // a workaround while we plan the exact guarantee we want to provide.
 1602|      3|    const size_t sample_size =
 1603|      3|        (std::is_same<Alloc, std::allocator<char>>::value &&
  ------------------
  |  Branch (1603:10): [True: 3, Folded]
  ------------------
 1604|      3|         c.slot_array() == nullptr)
  ------------------
  |  Branch (1604:10): [True: 3, False: 0]
  ------------------
 1605|      3|            ? SizeOfSlot
 1606|      3|            : 0;
 1607|      3|    HashtablezInfoHandle infoz =
 1608|      3|        sample_size > 0 ? Sample(sample_size) : c.infoz();
  ------------------
  |  Branch (1608:9): [True: 3, False: 0]
  ------------------
 1609|       |
 1610|      3|    const bool has_infoz = infoz.IsSampled();
 1611|      3|    const size_t cap = c.capacity();
 1612|      3|    const size_t alloc_size =
 1613|      3|        AllocSize(cap, SizeOfSlot, AlignOfSlot, has_infoz);
 1614|      3|    char* mem = static_cast<char*>(
 1615|      3|        Allocate<BackingArrayAlignment(AlignOfSlot)>(&alloc, alloc_size));
 1616|      3|    const GenerationType old_generation = c.generation();
 1617|      3|    c.set_generation_ptr(reinterpret_cast<GenerationType*>(
 1618|      3|        mem + GenerationOffset(cap, has_infoz)));
 1619|      3|    c.set_generation(NextGeneration(old_generation));
 1620|      3|    c.set_control(reinterpret_cast<ctrl_t*>(mem + ControlOffset(has_infoz)));
 1621|      3|    c.set_slots(mem + SlotOffset(cap, AlignOfSlot, has_infoz));
 1622|      3|    ResetGrowthLeft(c);
 1623|       |
 1624|      3|    const bool grow_single_group =
 1625|      3|        IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity());
 1626|      3|    if (old_capacity_ != 0 && grow_single_group) {
  ------------------
  |  Branch (1626:9): [True: 0, False: 3]
  |  Branch (1626:31): [True: 0, False: 0]
  ------------------
 1627|      0|      if (TransferUsesMemcpy) {
  ------------------
  |  Branch (1627:11): [Folded, False: 0]
  ------------------
 1628|      0|        GrowSizeIntoSingleGroupTransferable(c, old_slots, SizeOfSlot);
 1629|      0|        DeallocateOld<AlignOfSlot>(alloc, SizeOfSlot, old_slots);
 1630|      0|      } else {
 1631|      0|        GrowIntoSingleGroupShuffleControlBytes(c.control(), c.capacity());
 1632|      0|      }
 1633|      3|    } else {
 1634|      3|      ResetCtrl(c, SizeOfSlot);
 1635|      3|    }
 1636|       |
 1637|      3|    c.set_has_infoz(has_infoz);
 1638|      3|    if (has_infoz) {
  ------------------
  |  Branch (1638:9): [True: 0, False: 3]
  ------------------
 1639|      0|      infoz.RecordStorageChanged(c.size(), cap);
 1640|      0|      if (grow_single_group || old_capacity_ == 0) {
  ------------------
  |  Branch (1640:11): [True: 0, False: 0]
  |  Branch (1640:32): [True: 0, False: 0]
  ------------------
 1641|      0|        infoz.RecordRehash(0);
 1642|      0|      }
 1643|      0|      c.set_infoz(infoz);
 1644|      0|    }
 1645|      3|    return grow_single_group;
 1646|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE8hash_refEv:
 3202|      3|  hasher& hash_ref() { return settings_.template get<1>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE19prefetch_heap_blockEv:
 3187|    316|  void prefetch_heap_block() const {
 3188|    316|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|    316|    __builtin_prefetch(control(), 0, 1);
 3190|    316|#endif
 3191|    316|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE14prepare_insertEm:
 3110|      3|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|      3|    const bool rehash_for_bug_detection =
 3112|      3|        common().should_rehash_for_bug_detection_on_insert();
 3113|      3|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 3]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|      3|    auto target = find_first_non_full(common(), hash);
 3119|      3|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 3, False: 0]
  ------------------
 3120|      3|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|      6|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 3, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 3]
  |  |  |  Branch (178:59): [True: 3, False: 0]
  |  |  |  Branch (178:59): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 3121|      3|                           !IsDeleted(control()[target.offset]))) {
 3122|      3|      size_t old_capacity = capacity();
 3123|      3|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|      3|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|      3|          common(), old_capacity, hash);
 3133|      3|    }
 3134|      3|    common().increment_size();
 3135|      3|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|      3|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|      3|    common().maybe_increment_generation_on_insert();
 3138|      3|    infoz().RecordInsert(hash, target.probe_length);
 3139|      3|    return target.offset;
 3140|      3|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE11growth_leftEv:
 3181|      6|  size_t growth_left() const { return common().growth_left(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE28rehash_and_grow_if_necessaryEv:
 2970|      3|  void rehash_and_grow_if_necessary() {
 2971|      3|    const size_t cap = capacity();
 2972|      3|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 0, False: 3]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      0|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 0]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|      3|    } else {
 3018|       |      // Otherwise grow the container.
 3019|      3|      resize(NextCapacity(cap));
 3020|      3|    }
 3021|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE15set_growth_leftEm:
 3182|      3|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE11iterator_atEm:
 3159|      3|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|      3|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE8iteratorC2EPNS1_6ctrl_tEPS4_PKh:
 1984|      3|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|      3|          ctrl_(ctrl),
 1986|      3|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|      3|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|      3|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|      3|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE3endEv:
 2271|    313|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2272|    313|    return iterator(common().generation_ptr());
 2273|    313|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE8iteratorC2EPKh:
 1993|    626|        : HashSetIteratorGenerationInfo(generation_ptr), ctrl_(nullptr) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE14const_iteratorC2ENSB_8iteratorE:
 2047|    626|    const_iterator(iterator i) : inner_(std::move(i)) {}  // NOLINT
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE8hash_refEv:
 3203|    313|  const hasher& hash_ref() const { return settings_.template get<1>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE14const_iterator16unchecked_equalsERKSC_:
 2075|    313|    bool unchecked_equals(const const_iterator& b) {
 2076|    313|      return inner_.unchecked_equals(b.inner_);
 2077|    313|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE8iterator16unchecked_equalsERKSC_:
 2025|    313|    bool unchecked_equals(const iterator& b) { return ctrl_ == b.control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE8iterator7controlEv:
 2009|    313|    ctrl_t* control() const { return ctrl_; }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE3endEv:
 2278|    313|  const_iterator end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2279|    313|    return iterator(common().generation_ptr());
 2280|    313|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE4findINS0_11string_viewEEENSF_8iteratorERKT_m:
 2688|      4|                size_t hash) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2689|      4|    auto seq = probe(common(), hash);
 2690|      4|    slot_type* slot_ptr = slot_array();
 2691|      4|    const ctrl_t* ctrl = control();
 2692|      4|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 4, Folded]
  ------------------
 2693|      4|      Group g{ctrl + seq.offset()};
 2694|      4|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 0, False: 4]
  ------------------
 2695|      0|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2696|      0|                EqualElement<K>{key, eq_ref()},
 2697|      0|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|      0|          return iterator_at(seq.offset(i));
 2699|      0|      }
 2700|      4|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|      4|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 4, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 4]
  |  |  |  Branch (179:57): [True: 4, False: 0]
  |  |  ------------------
  ------------------
 2701|      0|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      0|    }
 2704|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE3endEv:
 2271|      8|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2272|      8|    return iterator(common().generation_ptr());
 2273|      8|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE8iteratorC2EPKh:
 1993|     16|        : HashSetIteratorGenerationInfo(generation_ptr), ctrl_(nullptr) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEEiEENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_iEEEEED2Ev:
 2264|      4|  ~raw_hash_set() { destructor_impl(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEEiEENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_iEEEEE15destructor_implEv:
 2882|      4|  inline void destructor_impl() {
 2883|      4|    if (capacity() == 0) return;
  ------------------
  |  Branch (2883:9): [True: 4, False: 0]
  ------------------
 2884|      0|    destroy_slots();
 2885|      0|    dealloc();
 2886|      0|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEEiEENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_iEEEEE8capacityEv:
 2288|      4|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEEiEENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_iEEEEE6commonEv:
 3194|      4|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEES8_EENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_S8_EEEEED2Ev:
 2264|      4|  ~raw_hash_set() { destructor_impl(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEES8_EENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_S8_EEEEE15destructor_implEv:
 2882|      4|  inline void destructor_impl() {
 2883|      4|    if (capacity() == 0) return;
  ------------------
  |  Branch (2883:9): [True: 4, False: 0]
  ------------------
 2884|      0|    destroy_slots();
 2885|      0|    dealloc();
 2886|      0|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEES8_EENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_S8_EEEEE8capacityEv:
 2288|      4|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEES8_EENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_S8_EEEEE6commonEv:
 3194|      4|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf10DescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEEC2Ev:
 2088|      2|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEEC2Ev:
 2088|      2|      std::is_nothrow_default_constructible<allocator_type>::value) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEEC2Ev:
 2088|      2|      std::is_nothrow_default_constructible<allocator_type>::value) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEEC2Ev:
 2088|      2|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEEC2Ev:
 2088|      2|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE6insertESt16initializer_listINSI_ISA_SE_EEE:
 2385|      2|  void insert(std::initializer_list<init_type> ilist) {
 2386|      2|    insert(ilist.begin(), ilist.end());
 2387|      2|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE6insertIPKNSI_ISA_SE_EEEEvT_SR_:
 2376|      2|  void insert(InputIt first, InputIt last) {
 2377|     34|    for (; first != last; ++first) emplace(*first);
  ------------------
  |  Branch (2377:12): [True: 32, False: 2]
  ------------------
 2378|      2|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE7emplaceIJRKNSI_ISA_SE_EEETnNS4_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENSI_INSM_8iteratorEbEEDpOSS_:
 2422|     32|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|     32|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|     32|                               std::forward<Args>(args)...);
 2425|     32|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE19EmplaceDecomposableclISA_JRKNS4_21piecewise_construct_tENS4_5tupleIJRSJ_EEENSS_IJRKSE_EEEEEENSI_INSM_8iteratorEbEERKT_DpOT0_:
 2822|     32|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|     32|      auto res = s.find_or_prepare_insert(key);
 2824|     32|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 32, False: 0]
  ------------------
 2825|     32|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|     32|      }
 2827|     32|      return {s.iterator_at(res.first), res.second};
 2828|     32|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE22find_or_prepare_insertISA_EENSI_ImbEERKT_:
 3086|     32|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|     32|    prefetch_heap_block();
 3088|     32|    auto hash = hash_ref()(key);
 3089|     32|    auto seq = probe(common(), hash);
 3090|     32|    const ctrl_t* ctrl = control();
 3091|     32|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 32, Folded]
  ------------------
 3092|     32|      Group g{ctrl + seq.offset()};
 3093|     32|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 1, False: 32]
  ------------------
 3094|      1|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      1|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 1]
  |  |  |  Branch (179:48): [Folded, False: 1]
  |  |  |  Branch (179:57): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 3095|      1|                EqualElement<K>{key, eq_ref()},
 3096|      1|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      1|      }
 3099|     32|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|     32|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 32, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 32]
  |  |  |  Branch (179:57): [True: 32, False: 0]
  |  |  ------------------
  ------------------
 3100|      0|      seq.next();
 3101|      0|      assert(seq.index() <= capacity() && "full table!");
 3102|      0|    }
 3103|     32|    return {prepare_insert(hash), true};
 3104|     32|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE19prefetch_heap_blockEv:
 3187|     73|  void prefetch_heap_block() const {
 3188|     73|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|     73|    __builtin_prefetch(control(), 0, 1);
 3190|     73|#endif
 3191|     73|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8hash_refEv:
 3202|    101|  hasher& hash_ref() { return settings_.template get<1>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE12EqualElementISA_EclISA_JRKNS4_21piecewise_construct_tENS4_5tupleIJRSJ_EEENST_IJRKSE_EEEEEEbRKT_DpOT0_:
 2813|      4|    bool operator()(const K2& lhs, Args&&...) const {
 2814|      4|      return eq(lhs, rhs);
 2815|      4|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE6eq_refEv:
 3204|      4|  key_equal& eq_ref() { return settings_.template get<2>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE14prepare_insertEm:
 3110|     32|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|     32|    const bool rehash_for_bug_detection =
 3112|     32|        common().should_rehash_for_bug_detection_on_insert();
 3113|     32|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 32]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|     32|    auto target = find_first_non_full(common(), hash);
 3119|     32|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 32, False: 0]
  ------------------
 3120|     32|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|     42|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 10, False: 22]
  |  |  |  Branch (178:49): [Folded, False: 32]
  |  |  |  Branch (178:59): [True: 10, False: 22]
  |  |  |  Branch (178:59): [True: 10, False: 0]
  |  |  ------------------
  ------------------
 3121|     32|                           !IsDeleted(control()[target.offset]))) {
 3122|     10|      size_t old_capacity = capacity();
 3123|     10|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|     10|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|     10|          common(), old_capacity, hash);
 3133|     10|    }
 3134|     32|    common().increment_size();
 3135|     32|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|     32|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|     32|    common().maybe_increment_generation_on_insert();
 3138|     32|    infoz().RecordInsert(hash, target.probe_length);
 3139|     32|    return target.offset;
 3140|     32|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE6resizeEm:
 2905|     10|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|     10|    assert(IsValidCapacity(new_capacity));
 2907|     10|    HashSetResizeHelper resize_helper(common());
 2908|     10|    auto* old_slots = slot_array();
 2909|     10|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|     10|    const bool grow_single_group =
 2914|     10|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|     10|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|     10|                                      alignof(slot_type)>(
 2917|     10|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|     10|            CharAlloc(alloc_ref()));
 2919|       |
 2920|     10|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 2, False: 8]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      2|      return;
 2923|      2|    }
 2924|       |
 2925|      8|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 6, False: 2]
  ------------------
 2926|      6|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 6]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      6|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      6|                                                          old_slots);
 2934|      6|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      2|      auto* new_slots = slot_array();
 2937|      2|      size_t total_probe_length = 0;
 2938|     32|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 30, False: 2]
  ------------------
 2939|     30|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 28, False: 2]
  ------------------
 2940|     28|          size_t hash = PolicyTraits::apply(
 2941|     28|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|     28|          auto target = find_first_non_full(common(), hash);
 2943|     28|          size_t new_i = target.offset;
 2944|     28|          total_probe_length += target.probe_length;
 2945|     28|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|     28|          transfer(new_slots + new_i, old_slots + i);
 2947|     28|        }
 2948|     30|      }
 2949|      2|      infoz().RecordRehash(total_probe_length);
 2950|      2|    }
 2951|      8|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      8|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      8|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      8|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper15InitializeSlotsINSt3__19allocatorIcEELm32ELb0ELm8EEEbRNS1_12CommonFieldsEPvT_:
 1595|     13|                                               Alloc alloc) {
 1596|     13|    assert(c.capacity());
 1597|       |    // Folks with custom allocators often make unwarranted assumptions about the
 1598|       |    // behavior of their classes vis-a-vis trivial destructability and what
 1599|       |    // calls they will or won't make.  Avoid sampling for people with custom
 1600|       |    // allocators to get us out of this mess.  This is not a hard guarantee but
 1601|       |    // a workaround while we plan the exact guarantee we want to provide.
 1602|     13|    const size_t sample_size =
 1603|     13|        (std::is_same<Alloc, std::allocator<char>>::value &&
  ------------------
  |  Branch (1603:10): [True: 13, Folded]
  ------------------
 1604|     13|         c.slot_array() == nullptr)
  ------------------
  |  Branch (1604:10): [True: 3, False: 10]
  ------------------
 1605|     13|            ? SizeOfSlot
 1606|     13|            : 0;
 1607|     13|    HashtablezInfoHandle infoz =
 1608|     13|        sample_size > 0 ? Sample(sample_size) : c.infoz();
  ------------------
  |  Branch (1608:9): [True: 3, False: 10]
  ------------------
 1609|       |
 1610|     13|    const bool has_infoz = infoz.IsSampled();
 1611|     13|    const size_t cap = c.capacity();
 1612|     13|    const size_t alloc_size =
 1613|     13|        AllocSize(cap, SizeOfSlot, AlignOfSlot, has_infoz);
 1614|     13|    char* mem = static_cast<char*>(
 1615|     13|        Allocate<BackingArrayAlignment(AlignOfSlot)>(&alloc, alloc_size));
 1616|     13|    const GenerationType old_generation = c.generation();
 1617|     13|    c.set_generation_ptr(reinterpret_cast<GenerationType*>(
 1618|     13|        mem + GenerationOffset(cap, has_infoz)));
 1619|     13|    c.set_generation(NextGeneration(old_generation));
 1620|     13|    c.set_control(reinterpret_cast<ctrl_t*>(mem + ControlOffset(has_infoz)));
 1621|     13|    c.set_slots(mem + SlotOffset(cap, AlignOfSlot, has_infoz));
 1622|     13|    ResetGrowthLeft(c);
 1623|       |
 1624|     13|    const bool grow_single_group =
 1625|     13|        IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity());
 1626|     13|    if (old_capacity_ != 0 && grow_single_group) {
  ------------------
  |  Branch (1626:9): [True: 10, False: 3]
  |  Branch (1626:31): [True: 8, False: 2]
  ------------------
 1627|      8|      if (TransferUsesMemcpy) {
  ------------------
  |  Branch (1627:11): [Folded, False: 8]
  ------------------
 1628|      0|        GrowSizeIntoSingleGroupTransferable(c, old_slots, SizeOfSlot);
 1629|      0|        DeallocateOld<AlignOfSlot>(alloc, SizeOfSlot, old_slots);
 1630|      8|      } else {
 1631|      8|        GrowIntoSingleGroupShuffleControlBytes(c.control(), c.capacity());
 1632|      8|      }
 1633|      8|    } else {
 1634|      5|      ResetCtrl(c, SizeOfSlot);
 1635|      5|    }
 1636|       |
 1637|     13|    c.set_has_infoz(has_infoz);
 1638|     13|    if (has_infoz) {
  ------------------
  |  Branch (1638:9): [True: 0, False: 13]
  ------------------
 1639|      0|      infoz.RecordStorageChanged(c.size(), cap);
 1640|      0|      if (grow_single_group || old_capacity_ == 0) {
  ------------------
  |  Branch (1640:11): [True: 0, False: 0]
  |  Branch (1640:32): [True: 0, False: 0]
  ------------------
 1641|      0|        infoz.RecordRehash(0);
 1642|      0|      }
 1643|      0|      c.set_infoz(infoz);
 1644|      0|    }
 1645|     13|    return grow_single_group;
 1646|     13|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper23GrowSizeIntoSingleGroupINS1_18hash_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEvEENSA_INS6_4pairIKSC_SG_EEEEEEvRNS1_12CommonFieldsERT0_PNT_9slot_typeE:
 1655|      6|                               typename PolicyTraits::slot_type* old_slots) {
 1656|      6|    assert(old_capacity_ < Group::kWidth / 2);
 1657|      6|    assert(IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity()));
 1658|      6|    using slot_type = typename PolicyTraits::slot_type;
 1659|      6|    assert(is_single_group(c.capacity()));
 1660|       |
 1661|      6|    auto* new_slots = reinterpret_cast<slot_type*>(c.slot_array());
 1662|       |
 1663|      6|    size_t shuffle_bit = old_capacity_ / 2 + 1;
 1664|     28|    for (size_t i = 0; i < old_capacity_; ++i) {
  ------------------
  |  Branch (1664:24): [True: 22, False: 6]
  ------------------
 1665|     22|      if (IsFull(old_ctrl_[i])) {
  ------------------
  |  Branch (1665:11): [True: 22, False: 0]
  ------------------
 1666|     22|        size_t new_i = i ^ shuffle_bit;
 1667|     22|        SanitizerUnpoisonMemoryRegion(new_slots + new_i, sizeof(slot_type));
 1668|     22|        PolicyTraits::transfer(&alloc_ref, new_slots + new_i, old_slots + i);
 1669|     22|      }
 1670|     22|    }
 1671|      6|    PoisonSingleGroupEmptySlots(c, sizeof(slot_type));
 1672|      6|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE11HashElementclISA_JRKNS4_21piecewise_construct_tENS4_5tupleIJRSJ_EEENSS_IJRKSE_EEEEEEmRKT_DpOT0_:
 2804|     28|    size_t operator()(const K& key, Args&&...) const {
 2805|     28|      return h(key);
 2806|     28|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8transferEPNS1_13map_slot_typeISA_SE_EESP_:
 2857|     28|  inline void transfer(slot_type* to, slot_type* from) {
 2858|     28|    PolicyTraits::transfer(&alloc_ref(), to, from);
 2859|     28|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE11growth_leftEv:
 3181|     64|  size_t growth_left() const { return common().growth_left(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE28rehash_and_grow_if_necessaryEv:
 2970|     10|  void rehash_and_grow_if_necessary() {
 2971|     10|    const size_t cap = capacity();
 2972|     10|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 0, False: 10]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      0|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 0]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|     10|    } else {
 3018|       |      // Otherwise grow the container.
 3019|     10|      resize(NextCapacity(cap));
 3020|     10|    }
 3021|     10|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE15set_growth_leftEm:
 3182|     32|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE10emplace_atIJRKNS4_21piecewise_construct_tENS4_5tupleIJRSJ_EEENSR_IJRKSE_EEEEEEvmDpOT_:
 3151|     32|  void emplace_at(size_t i, Args&&... args) {
 3152|     32|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|     32|               iterator_at(i) &&
 3156|     32|           "constructed value does not match the lookup key");
 3157|     32|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE9constructIJRKNS4_21piecewise_construct_tENS4_5tupleIJRSJ_EEENSR_IJRKSE_EEEEEEvPNS1_13map_slot_typeISA_SE_EEDpOT_:
 2851|     32|  inline void construct(slot_type* slot, Args&&... args) {
 2852|     32|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|     32|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE11iterator_atEm:
 3159|     33|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|     33|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|     33|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8iteratorC2EPNS1_6ctrl_tEPNS1_13map_slot_typeISA_SE_EEPKh:
 1984|     33|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|     33|          ctrl_(ctrl),
 1986|     33|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|     33|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|     33|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|     33|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEEC2Ev:
 2088|      8|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPKN6google8protobuf23SourceCodeInfo_LocationEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SF_EEEEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE12EqualElementIS6_EclIS6_JRS6_EEEbRKT_DpOT0_:
 2813|     34|    bool operator()(const K2& lhs, Args&&...) const {
 2814|     34|      return eq(lhs, rhs);
 2815|     34|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8hash_refEv:
 3202|    816|  hasher& hash_ref() { return settings_.template get<1>(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE8hash_refEv:
 3202|      4|  hasher& hash_ref() { return settings_.template get<1>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE5clearEv:
 2291|      8|  ABSL_ATTRIBUTE_REINITIALIZES void clear() {
 2292|       |    // Iterating over this container is O(bucket_count()). When bucket_count()
 2293|       |    // is much greater than size(), iteration becomes prohibitively expensive.
 2294|       |    // For clear() it is more important to reuse the allocated array when the
 2295|       |    // container is small because allocation takes comparatively long time
 2296|       |    // compared to destruction of the elements of the container. So we pick the
 2297|       |    // largest bucket_count() threshold for which iteration is still fast and
 2298|       |    // past that we simply deallocate the array.
 2299|      8|    const size_t cap = capacity();
 2300|      8|    if (cap == 0) {
  ------------------
  |  Branch (2300:9): [True: 8, False: 0]
  ------------------
 2301|       |      // Already guaranteed to be empty; so nothing to do.
 2302|      8|    } else {
 2303|      0|      destroy_slots();
 2304|      0|      ClearBackingArray(common(), GetPolicyFunctions(), /*reuse=*/cap < 128);
 2305|      0|    }
 2306|      8|    common().set_reserved_growth(0);
 2307|      8|    common().set_reservation_size(0);
 2308|      8|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6insertIPS6_TnNSD_9enable_ifIXsr4absl11disjunctionINSD_14is_convertibleIRKT_S8_EENSG_22SameAsElementReferenceISN_EEEE5valueEiE4typeELi0ETnNSJ_IXsr14IsDecomposableISN_EE5valueEiE4typeELi0EEENSD_4pairINSG_8iteratorEbEESN_:
 2339|     34|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2340|     34|    return emplace(value);
 2341|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE7emplaceIJRKPS6_ETnNSD_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENSD_4pairINSG_8iteratorEbEEDpOSM_:
 2422|     34|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|     34|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|     34|                               std::forward<Args>(args)...);
 2425|     34|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE19EmplaceDecomposableclIPS6_JRKSJ_EEENSD_4pairINSG_8iteratorEbEERKT_DpOT0_:
 2822|     34|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|     34|      auto res = s.find_or_prepare_insert(key);
 2824|     34|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 34, False: 0]
  ------------------
 2825|     34|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|     34|      }
 2827|     34|      return {s.iterator_at(res.first), res.second};
 2828|     34|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE22find_or_prepare_insertIPS6_EENSD_4pairImbEERKT_:
 3086|     34|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|     34|    prefetch_heap_block();
 3088|     34|    auto hash = hash_ref()(key);
 3089|     34|    auto seq = probe(common(), hash);
 3090|     34|    const ctrl_t* ctrl = control();
 3091|     34|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 34, Folded]
  ------------------
 3092|     34|      Group g{ctrl + seq.offset()};
 3093|     34|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 1, False: 34]
  ------------------
 3094|      1|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      1|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 1]
  |  |  |  Branch (179:48): [Folded, False: 1]
  |  |  |  Branch (179:57): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 3095|      1|                EqualElement<K>{key, eq_ref()},
 3096|      1|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      1|      }
 3099|     34|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|     34|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 34, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 34]
  |  |  |  Branch (179:57): [True: 34, False: 0]
  |  |  ------------------
  ------------------
 3100|      0|      seq.next();
 3101|      0|      assert(seq.index() <= capacity() && "full table!");
 3102|      0|    }
 3103|     34|    return {prepare_insert(hash), true};
 3104|     34|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE12EqualElementIPS6_EclIS8_JRS8_EEEbRKT_DpOT0_:
 2813|      1|    bool operator()(const K2& lhs, Args&&...) const {
 2814|      1|      return eq(lhs, rhs);
 2815|      1|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE14prepare_insertEm:
 3110|     34|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|     34|    const bool rehash_for_bug_detection =
 3112|     34|        common().should_rehash_for_bug_detection_on_insert();
 3113|     34|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 34]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|     34|    auto target = find_first_non_full(common(), hash);
 3119|     34|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 34, False: 0]
  ------------------
 3120|     34|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|     44|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 10, False: 24]
  |  |  |  Branch (178:49): [Folded, False: 34]
  |  |  |  Branch (178:59): [True: 10, False: 24]
  |  |  |  Branch (178:59): [True: 10, False: 0]
  |  |  ------------------
  ------------------
 3121|     34|                           !IsDeleted(control()[target.offset]))) {
 3122|     10|      size_t old_capacity = capacity();
 3123|     10|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|     10|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|     10|          common(), old_capacity, hash);
 3133|     10|    }
 3134|     34|    common().increment_size();
 3135|     34|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|     34|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|     34|    common().maybe_increment_generation_on_insert();
 3138|     34|    infoz().RecordInsert(hash, target.probe_length);
 3139|     34|    return target.offset;
 3140|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6resizeEm:
 2905|     10|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|     10|    assert(IsValidCapacity(new_capacity));
 2907|     10|    HashSetResizeHelper resize_helper(common());
 2908|     10|    auto* old_slots = slot_array();
 2909|     10|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|     10|    const bool grow_single_group =
 2914|     10|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|     10|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|     10|                                      alignof(slot_type)>(
 2917|     10|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|     10|            CharAlloc(alloc_ref()));
 2919|       |
 2920|     10|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 2, False: 8]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      2|      return;
 2923|      2|    }
 2924|       |
 2925|      8|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 6, False: 2]
  ------------------
 2926|      6|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 6]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      6|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      6|                                                          old_slots);
 2934|      6|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      2|      auto* new_slots = slot_array();
 2937|      2|      size_t total_probe_length = 0;
 2938|     32|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 30, False: 2]
  ------------------
 2939|     30|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 28, False: 2]
  ------------------
 2940|     28|          size_t hash = PolicyTraits::apply(
 2941|     28|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|     28|          auto target = find_first_non_full(common(), hash);
 2943|     28|          size_t new_i = target.offset;
 2944|     28|          total_probe_length += target.probe_length;
 2945|     28|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|     28|          transfer(new_slots + new_i, old_slots + i);
 2947|     28|        }
 2948|     30|      }
 2949|      2|      infoz().RecordRehash(total_probe_length);
 2950|      2|    }
 2951|      8|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      8|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      8|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      8|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper15InitializeSlotsINSt3__19allocatorIcEELm8ELb0ELm8EEEbRNS1_12CommonFieldsEPvT_:
 1595|     59|                                               Alloc alloc) {
 1596|     59|    assert(c.capacity());
 1597|       |    // Folks with custom allocators often make unwarranted assumptions about the
 1598|       |    // behavior of their classes vis-a-vis trivial destructability and what
 1599|       |    // calls they will or won't make.  Avoid sampling for people with custom
 1600|       |    // allocators to get us out of this mess.  This is not a hard guarantee but
 1601|       |    // a workaround while we plan the exact guarantee we want to provide.
 1602|     59|    const size_t sample_size =
 1603|     59|        (std::is_same<Alloc, std::allocator<char>>::value &&
  ------------------
  |  Branch (1603:10): [True: 59, Folded]
  ------------------
 1604|     59|         c.slot_array() == nullptr)
  ------------------
  |  Branch (1604:10): [True: 13, False: 46]
  ------------------
 1605|     59|            ? SizeOfSlot
 1606|     59|            : 0;
 1607|     59|    HashtablezInfoHandle infoz =
 1608|     59|        sample_size > 0 ? Sample(sample_size) : c.infoz();
  ------------------
  |  Branch (1608:9): [True: 13, False: 46]
  ------------------
 1609|       |
 1610|     59|    const bool has_infoz = infoz.IsSampled();
 1611|     59|    const size_t cap = c.capacity();
 1612|     59|    const size_t alloc_size =
 1613|     59|        AllocSize(cap, SizeOfSlot, AlignOfSlot, has_infoz);
 1614|     59|    char* mem = static_cast<char*>(
 1615|     59|        Allocate<BackingArrayAlignment(AlignOfSlot)>(&alloc, alloc_size));
 1616|     59|    const GenerationType old_generation = c.generation();
 1617|     59|    c.set_generation_ptr(reinterpret_cast<GenerationType*>(
 1618|     59|        mem + GenerationOffset(cap, has_infoz)));
 1619|     59|    c.set_generation(NextGeneration(old_generation));
 1620|     59|    c.set_control(reinterpret_cast<ctrl_t*>(mem + ControlOffset(has_infoz)));
 1621|     59|    c.set_slots(mem + SlotOffset(cap, AlignOfSlot, has_infoz));
 1622|     59|    ResetGrowthLeft(c);
 1623|       |
 1624|     59|    const bool grow_single_group =
 1625|     59|        IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity());
 1626|     59|    if (old_capacity_ != 0 && grow_single_group) {
  ------------------
  |  Branch (1626:9): [True: 46, False: 13]
  |  Branch (1626:31): [True: 28, False: 18]
  ------------------
 1627|     28|      if (TransferUsesMemcpy) {
  ------------------
  |  Branch (1627:11): [Folded, False: 28]
  ------------------
 1628|      0|        GrowSizeIntoSingleGroupTransferable(c, old_slots, SizeOfSlot);
 1629|      0|        DeallocateOld<AlignOfSlot>(alloc, SizeOfSlot, old_slots);
 1630|     28|      } else {
 1631|     28|        GrowIntoSingleGroupShuffleControlBytes(c.control(), c.capacity());
 1632|     28|      }
 1633|     31|    } else {
 1634|     31|      ResetCtrl(c, SizeOfSlot);
 1635|     31|    }
 1636|       |
 1637|     59|    c.set_has_infoz(has_infoz);
 1638|     59|    if (has_infoz) {
  ------------------
  |  Branch (1638:9): [True: 0, False: 59]
  ------------------
 1639|      0|      infoz.RecordStorageChanged(c.size(), cap);
 1640|      0|      if (grow_single_group || old_capacity_ == 0) {
  ------------------
  |  Branch (1640:11): [True: 0, False: 0]
  |  Branch (1640:32): [True: 0, False: 0]
  ------------------
 1641|      0|        infoz.RecordRehash(0);
 1642|      0|      }
 1643|      0|      c.set_infoz(infoz);
 1644|      0|    }
 1645|     59|    return grow_single_group;
 1646|     59|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper23GrowSizeIntoSingleGroupINS1_18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvEENSt3__19allocatorISA_EEEEvRNS1_12CommonFieldsERT0_PNT_9slot_typeE:
 1655|      6|                               typename PolicyTraits::slot_type* old_slots) {
 1656|      6|    assert(old_capacity_ < Group::kWidth / 2);
 1657|      6|    assert(IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity()));
 1658|      6|    using slot_type = typename PolicyTraits::slot_type;
 1659|      6|    assert(is_single_group(c.capacity()));
 1660|       |
 1661|      6|    auto* new_slots = reinterpret_cast<slot_type*>(c.slot_array());
 1662|       |
 1663|      6|    size_t shuffle_bit = old_capacity_ / 2 + 1;
 1664|     28|    for (size_t i = 0; i < old_capacity_; ++i) {
  ------------------
  |  Branch (1664:24): [True: 22, False: 6]
  ------------------
 1665|     22|      if (IsFull(old_ctrl_[i])) {
  ------------------
  |  Branch (1665:11): [True: 22, False: 0]
  ------------------
 1666|     22|        size_t new_i = i ^ shuffle_bit;
 1667|     22|        SanitizerUnpoisonMemoryRegion(new_slots + new_i, sizeof(slot_type));
 1668|     22|        PolicyTraits::transfer(&alloc_ref, new_slots + new_i, old_slots + i);
 1669|     22|      }
 1670|     22|    }
 1671|      6|    PoisonSingleGroupEmptySlots(c, sizeof(slot_type));
 1672|      6|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE11HashElementclIS8_JRS8_EEEmRKT_DpOT0_:
 2804|     28|    size_t operator()(const K& key, Args&&...) const {
 2805|     28|      return h(key);
 2806|     28|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE8transferEPS8_SH_:
 2857|     28|  inline void transfer(slot_type* to, slot_type* from) {
 2858|     28|    PolicyTraits::transfer(&alloc_ref(), to, from);
 2859|     28|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE11growth_leftEv:
 3181|     68|  size_t growth_left() const { return common().growth_left(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE28rehash_and_grow_if_necessaryEv:
 2970|     10|  void rehash_and_grow_if_necessary() {
 2971|     10|    const size_t cap = capacity();
 2972|     10|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 0, False: 10]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      0|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 0]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|     10|    } else {
 3018|       |      // Otherwise grow the container.
 3019|     10|      resize(NextCapacity(cap));
 3020|     10|    }
 3021|     10|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE15set_growth_leftEm:
 3182|     34|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE10emplace_atIJRKPS6_EEEvmDpOT_:
 3151|     34|  void emplace_at(size_t i, Args&&... args) {
 3152|     34|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|     34|               iterator_at(i) &&
 3156|     34|           "constructed value does not match the lookup key");
 3157|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE9constructIJRKPS6_EEEvPS8_DpOT_:
 2851|     34|  inline void construct(slot_type* slot, Args&&... args) {
 2852|     34|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|     34|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE6insertIS6_TnNSB_9enable_ifIXsr4absl11disjunctionINSB_14is_convertibleIRKT_S6_EENSE_22SameAsElementReferenceISK_EEEE5valueEiE4typeELi0ETnNSG_IXsr14IsDecomposableISK_EE5valueEiE4typeELi0EEENSB_4pairINSE_8iteratorEbEESK_:
 2339|    382|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2340|    382|    return emplace(value);
 2341|    382|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE7emplaceIJRKS6_ETnNSB_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENSB_4pairINSE_8iteratorEbEEDpOSJ_:
 2422|    382|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|    382|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|    382|                               std::forward<Args>(args)...);
 2425|    382|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE19EmplaceDecomposableclIS6_JRKS6_EEENSB_4pairINSE_8iteratorEbEERKT_DpOT0_:
 2822|    382|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|    382|      auto res = s.find_or_prepare_insert(key);
 2824|    382|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 382, False: 0]
  ------------------
 2825|    382|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|    382|      }
 2827|    382|      return {s.iterator_at(res.first), res.second};
 2828|    382|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE22find_or_prepare_insertIS6_EENSB_4pairImbEERKT_:
 3086|    382|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|    382|    prefetch_heap_block();
 3088|    382|    auto hash = hash_ref()(key);
 3089|    382|    auto seq = probe(common(), hash);
 3090|    382|    const ctrl_t* ctrl = control();
 3091|    420|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 420, Folded]
  ------------------
 3092|    420|      Group g{ctrl + seq.offset()};
 3093|    420|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 34, False: 420]
  ------------------
 3094|     34|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|     34|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 34]
  |  |  |  Branch (179:48): [Folded, False: 34]
  |  |  |  Branch (179:57): [True: 0, False: 34]
  |  |  ------------------
  ------------------
 3095|     34|                EqualElement<K>{key, eq_ref()},
 3096|     34|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|     34|      }
 3099|    420|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|    420|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 382, False: 38]
  |  |  |  Branch (179:48): [Folded, False: 420]
  |  |  |  Branch (179:57): [True: 382, False: 38]
  |  |  ------------------
  ------------------
 3100|     38|      seq.next();
 3101|     38|      assert(seq.index() <= capacity() && "full table!");
 3102|     38|    }
 3103|    382|    return {prepare_insert(hash), true};
 3104|    382|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE14prepare_insertEm:
 3110|    382|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|    382|    const bool rehash_for_bug_detection =
 3112|    382|        common().should_rehash_for_bug_detection_on_insert();
 3113|    382|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 382]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|    382|    auto target = find_first_non_full(common(), hash);
 3119|    382|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 382, False: 0]
  ------------------
 3120|    382|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|    391|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 9, False: 373]
  |  |  |  Branch (178:49): [Folded, False: 382]
  |  |  |  Branch (178:59): [True: 9, False: 373]
  |  |  |  Branch (178:59): [True: 9, False: 0]
  |  |  ------------------
  ------------------
 3121|    382|                           !IsDeleted(control()[target.offset]))) {
 3122|      9|      size_t old_capacity = capacity();
 3123|      9|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|      9|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|      9|          common(), old_capacity, hash);
 3133|      9|    }
 3134|    382|    common().increment_size();
 3135|    382|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|    382|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|    382|    common().maybe_increment_generation_on_insert();
 3138|    382|    infoz().RecordInsert(hash, target.probe_length);
 3139|    382|    return target.offset;
 3140|    382|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE6resizeEm:
 2905|      9|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|      9|    assert(IsValidCapacity(new_capacity));
 2907|      9|    HashSetResizeHelper resize_helper(common());
 2908|      9|    auto* old_slots = slot_array();
 2909|      9|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|      9|    const bool grow_single_group =
 2914|      9|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|      9|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|      9|                                      alignof(slot_type)>(
 2917|      9|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|      9|            CharAlloc(alloc_ref()));
 2919|       |
 2920|      9|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 1, False: 8]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      1|      return;
 2923|      1|    }
 2924|       |
 2925|      8|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 3, False: 5]
  ------------------
 2926|      3|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 3]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      3|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      3|                                                          old_slots);
 2934|      5|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      5|      auto* new_slots = slot_array();
 2937|      5|      size_t total_probe_length = 0;
 2938|    496|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 491, False: 5]
  ------------------
 2939|    491|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 434, False: 57]
  ------------------
 2940|    434|          size_t hash = PolicyTraits::apply(
 2941|    434|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|    434|          auto target = find_first_non_full(common(), hash);
 2943|    434|          size_t new_i = target.offset;
 2944|    434|          total_probe_length += target.probe_length;
 2945|    434|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|    434|          transfer(new_slots + new_i, old_slots + i);
 2947|    434|        }
 2948|    491|      }
 2949|      5|      infoz().RecordRehash(total_probe_length);
 2950|      5|    }
 2951|      8|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      8|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      8|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      8|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper23GrowSizeIntoSingleGroupINS1_18hash_policy_traitsINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEEvEENSt3__19allocatorIS8_EEEEvRNS1_12CommonFieldsERT0_PNT_9slot_typeE:
 1655|     13|                               typename PolicyTraits::slot_type* old_slots) {
 1656|     13|    assert(old_capacity_ < Group::kWidth / 2);
 1657|     13|    assert(IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity()));
 1658|     13|    using slot_type = typename PolicyTraits::slot_type;
 1659|     13|    assert(is_single_group(c.capacity()));
 1660|       |
 1661|     13|    auto* new_slots = reinterpret_cast<slot_type*>(c.slot_array());
 1662|       |
 1663|     13|    size_t shuffle_bit = old_capacity_ / 2 + 1;
 1664|     58|    for (size_t i = 0; i < old_capacity_; ++i) {
  ------------------
  |  Branch (1664:24): [True: 45, False: 13]
  ------------------
 1665|     45|      if (IsFull(old_ctrl_[i])) {
  ------------------
  |  Branch (1665:11): [True: 45, False: 0]
  ------------------
 1666|     45|        size_t new_i = i ^ shuffle_bit;
 1667|     45|        SanitizerUnpoisonMemoryRegion(new_slots + new_i, sizeof(slot_type));
 1668|     45|        PolicyTraits::transfer(&alloc_ref, new_slots + new_i, old_slots + i);
 1669|     45|      }
 1670|     45|    }
 1671|     13|    PoisonSingleGroupEmptySlots(c, sizeof(slot_type));
 1672|     13|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE11HashElementclIS6_JRS6_EEEmRKT_DpOT0_:
 2804|    434|    size_t operator()(const K& key, Args&&...) const {
 2805|    434|      return h(key);
 2806|    434|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE8transferEPS6_SF_:
 2857|    434|  inline void transfer(slot_type* to, slot_type* from) {
 2858|    434|    PolicyTraits::transfer(&alloc_ref(), to, from);
 2859|    434|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE11growth_leftEv:
 3181|    764|  size_t growth_left() const { return common().growth_left(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE28rehash_and_grow_if_necessaryEv:
 2970|      9|  void rehash_and_grow_if_necessary() {
 2971|      9|    const size_t cap = capacity();
 2972|      9|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 4, False: 5]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      4|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 4]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|      9|    } else {
 3018|       |      // Otherwise grow the container.
 3019|      9|      resize(NextCapacity(cap));
 3020|      9|    }
 3021|      9|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE4sizeEv:
 2287|      4|  size_t size() const { return common().size(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE15set_growth_leftEm:
 3182|    382|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE10emplace_atIJRKS6_EEEvmDpOT_:
 3151|    382|  void emplace_at(size_t i, Args&&... args) {
 3152|    382|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|    382|               iterator_at(i) &&
 3156|    382|           "constructed value does not match the lookup key");
 3157|    382|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_120SymbolByFullNameHashENS8_18SymbolByFullNameEqENSt3__19allocatorIS6_EEE9constructIJRKS6_EEEvPS6_DpOT_:
 2851|    382|  inline void construct(slot_type* slot, Args&&... args) {
 2852|    382|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|    382|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE6insertIS6_TnNSB_9enable_ifIXsr4absl11disjunctionINSB_14is_convertibleIRKT_S6_EENSE_22SameAsElementReferenceISK_EEEE5valueEiE4typeELi0ETnNSG_IXsr14IsDecomposableISK_EE5valueEiE4typeELi0EEENSB_4pairINSE_8iteratorEbEESK_:
 2339|    487|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2340|    487|    return emplace(value);
 2341|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE7emplaceIJRKS6_ETnNSB_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENSB_4pairINSE_8iteratorEbEEDpOSJ_:
 2422|    487|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|    487|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|    487|                               std::forward<Args>(args)...);
 2425|    487|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE19EmplaceDecomposableclIS6_JRKS6_EEENSB_4pairINSE_8iteratorEbEERKT_DpOT0_:
 2822|    487|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|    487|      auto res = s.find_or_prepare_insert(key);
 2824|    487|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 487, False: 0]
  ------------------
 2825|    487|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|    487|      }
 2827|    487|      return {s.iterator_at(res.first), res.second};
 2828|    487|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE22find_or_prepare_insertIS6_EENSB_4pairImbEERKT_:
 3086|    487|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|    487|    prefetch_heap_block();
 3088|    487|    auto hash = hash_ref()(key);
 3089|    487|    auto seq = probe(common(), hash);
 3090|    487|    const ctrl_t* ctrl = control();
 3091|    540|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 540, Folded]
  ------------------
 3092|    540|      Group g{ctrl + seq.offset()};
 3093|    540|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 52, False: 540]
  ------------------
 3094|     52|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|     52|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 52]
  |  |  |  Branch (179:48): [Folded, False: 52]
  |  |  |  Branch (179:57): [True: 0, False: 52]
  |  |  ------------------
  ------------------
 3095|     52|                EqualElement<K>{key, eq_ref()},
 3096|     52|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|     52|      }
 3099|    540|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|    540|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 487, False: 53]
  |  |  |  Branch (179:48): [Folded, False: 540]
  |  |  |  Branch (179:57): [True: 487, False: 53]
  |  |  ------------------
  ------------------
 3100|     53|      seq.next();
 3101|     53|      assert(seq.index() <= capacity() && "full table!");
 3102|     53|    }
 3103|    487|    return {prepare_insert(hash), true};
 3104|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE8hash_refEv:
 3202|  1.01k|  hasher& hash_ref() { return settings_.template get<1>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE12EqualElementIS6_EclIS6_JRS6_EEEbRKT_DpOT0_:
 2813|     52|    bool operator()(const K2& lhs, Args&&...) const {
 2814|     52|      return eq(lhs, rhs);
 2815|     52|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE14prepare_insertEm:
 3110|    487|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|    487|    const bool rehash_for_bug_detection =
 3112|    487|        common().should_rehash_for_bug_detection_on_insert();
 3113|    487|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 487]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|    487|    auto target = find_first_non_full(common(), hash);
 3119|    487|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 487, False: 0]
  ------------------
 3120|    487|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|    509|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 22, False: 465]
  |  |  |  Branch (178:49): [Folded, False: 487]
  |  |  |  Branch (178:59): [True: 22, False: 465]
  |  |  |  Branch (178:59): [True: 22, False: 0]
  |  |  ------------------
  ------------------
 3121|    487|                           !IsDeleted(control()[target.offset]))) {
 3122|     22|      size_t old_capacity = capacity();
 3123|     22|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|     22|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|     22|          common(), old_capacity, hash);
 3133|     22|    }
 3134|    487|    common().increment_size();
 3135|    487|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|    487|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|    487|    common().maybe_increment_generation_on_insert();
 3138|    487|    infoz().RecordInsert(hash, target.probe_length);
 3139|    487|    return target.offset;
 3140|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE6resizeEm:
 2905|     22|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|     22|    assert(IsValidCapacity(new_capacity));
 2907|     22|    HashSetResizeHelper resize_helper(common());
 2908|     22|    auto* old_slots = slot_array();
 2909|     22|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|     22|    const bool grow_single_group =
 2914|     22|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|     22|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|     22|                                      alignof(slot_type)>(
 2917|     22|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|     22|            CharAlloc(alloc_ref()));
 2919|       |
 2920|     22|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 4, False: 18]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      4|      return;
 2923|      4|    }
 2924|       |
 2925|     18|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 10, False: 8]
  ------------------
 2926|     10|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 10]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|     10|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|     10|                                                          old_slots);
 2934|     10|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      8|      auto* new_slots = slot_array();
 2937|      8|      size_t total_probe_length = 0;
 2938|    608|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 600, False: 8]
  ------------------
 2939|    600|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 532, False: 68]
  ------------------
 2940|    532|          size_t hash = PolicyTraits::apply(
 2941|    532|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|    532|          auto target = find_first_non_full(common(), hash);
 2943|    532|          size_t new_i = target.offset;
 2944|    532|          total_probe_length += target.probe_length;
 2945|    532|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|    532|          transfer(new_slots + new_i, old_slots + i);
 2947|    532|        }
 2948|    600|      }
 2949|      8|      infoz().RecordRehash(total_probe_length);
 2950|      8|    }
 2951|     18|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|     18|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|     18|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|     18|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE11HashElementclIS6_JRS6_EEEmRKT_DpOT0_:
 2804|    532|    size_t operator()(const K& key, Args&&...) const {
 2805|    532|      return h(key);
 2806|    532|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE8transferEPS6_SF_:
 2857|    532|  inline void transfer(slot_type* to, slot_type* from) {
 2858|    532|    PolicyTraits::transfer(&alloc_ref(), to, from);
 2859|    532|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE11growth_leftEv:
 3181|    974|  size_t growth_left() const { return common().growth_left(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE28rehash_and_grow_if_necessaryEv:
 2970|     22|  void rehash_and_grow_if_necessary() {
 2971|     22|    const size_t cap = capacity();
 2972|     22|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 6, False: 16]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      6|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 6]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|     22|    } else {
 3018|       |      // Otherwise grow the container.
 3019|     22|      resize(NextCapacity(cap));
 3020|     22|    }
 3021|     22|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE4sizeEv:
 2287|      6|  size_t size() const { return common().size(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE15set_growth_leftEm:
 3182|    487|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE10emplace_atIJRKS6_EEEvmDpOT_:
 3151|    487|  void emplace_at(size_t i, Args&&... args) {
 3152|    487|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|    487|               iterator_at(i) &&
 3156|    487|           "constructed value does not match the lookup key");
 3157|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIN6google8protobuf6SymbolEEENS5_12_GLOBAL__N_118SymbolByParentHashENS8_16SymbolByParentEqENSt3__19allocatorIS6_EEE9constructIJRKS6_EEEvPS6_DpOT_:
 2851|    487|  inline void construct(slot_type* slot, Args&&... args) {
 2852|    487|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|    487|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE6insertIS8_TnNSF_9enable_ifIXsr4absl11disjunctionINSF_14is_convertibleIRKT_S8_EENSI_22SameAsElementReferenceISO_EEEE5valueEiE4typeELi0ETnNSK_IXsr14IsDecomposableISO_EE5valueEiE4typeELi0EEENSF_4pairINSI_8iteratorEbEESO_:
 2339|      4|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2340|      4|    return emplace(value);
 2341|      4|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE7emplaceIJRKS8_ETnNSF_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENSF_4pairINSI_8iteratorEbEEDpOSN_:
 2422|      4|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|      4|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|      4|                               std::forward<Args>(args)...);
 2425|      4|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE19EmplaceDecomposableclIS8_JRKS8_EEENSF_4pairINSI_8iteratorEbEERKT_DpOT0_:
 2822|      4|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|      4|      auto res = s.find_or_prepare_insert(key);
 2824|      4|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 4, False: 0]
  ------------------
 2825|      4|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|      4|      }
 2827|      4|      return {s.iterator_at(res.first), res.second};
 2828|      4|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE22find_or_prepare_insertIS8_EENSF_4pairImbEERKT_:
 3086|      4|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|      4|    prefetch_heap_block();
 3088|      4|    auto hash = hash_ref()(key);
 3089|      4|    auto seq = probe(common(), hash);
 3090|      4|    const ctrl_t* ctrl = control();
 3091|      4|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 4, Folded]
  ------------------
 3092|      4|      Group g{ctrl + seq.offset()};
 3093|      4|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 0, False: 4]
  ------------------
 3094|      0|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3095|      0|                EqualElement<K>{key, eq_ref()},
 3096|      0|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      0|      }
 3099|      4|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|      4|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 4, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 4]
  |  |  |  Branch (179:57): [True: 4, False: 0]
  |  |  ------------------
  ------------------
 3100|      0|      seq.next();
 3101|      0|      assert(seq.index() <= capacity() && "full table!");
 3102|      0|    }
 3103|      4|    return {prepare_insert(hash), true};
 3104|      4|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE14prepare_insertEm:
 3110|      4|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|      4|    const bool rehash_for_bug_detection =
 3112|      4|        common().should_rehash_for_bug_detection_on_insert();
 3113|      4|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 4]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|      4|    auto target = find_first_non_full(common(), hash);
 3119|      4|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 4, False: 0]
  ------------------
 3120|      4|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|      7|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 3, False: 1]
  |  |  |  Branch (178:49): [Folded, False: 4]
  |  |  |  Branch (178:59): [True: 3, False: 1]
  |  |  |  Branch (178:59): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 3121|      4|                           !IsDeleted(control()[target.offset]))) {
 3122|      3|      size_t old_capacity = capacity();
 3123|      3|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|      3|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|      3|          common(), old_capacity, hash);
 3133|      3|    }
 3134|      4|    common().increment_size();
 3135|      4|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|      4|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|      4|    common().maybe_increment_generation_on_insert();
 3138|      4|    infoz().RecordInsert(hash, target.probe_length);
 3139|      4|    return target.offset;
 3140|      4|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE6resizeEm:
 2905|      3|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|      3|    assert(IsValidCapacity(new_capacity));
 2907|      3|    HashSetResizeHelper resize_helper(common());
 2908|      3|    auto* old_slots = slot_array();
 2909|      3|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|      3|    const bool grow_single_group =
 2914|      3|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|      3|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|      3|                                      alignof(slot_type)>(
 2917|      3|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|      3|            CharAlloc(alloc_ref()));
 2919|       |
 2920|      3|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 1, False: 2]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      1|      return;
 2923|      1|    }
 2924|       |
 2925|      2|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 2, False: 0]
  ------------------
 2926|      2|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 2]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      2|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      2|                                                          old_slots);
 2934|      2|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      0|      auto* new_slots = slot_array();
 2937|      0|      size_t total_probe_length = 0;
 2938|      0|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 0, False: 0]
  ------------------
 2939|      0|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 0, False: 0]
  ------------------
 2940|      0|          size_t hash = PolicyTraits::apply(
 2941|      0|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|      0|          auto target = find_first_non_full(common(), hash);
 2943|      0|          size_t new_i = target.offset;
 2944|      0|          total_probe_length += target.probe_length;
 2945|      0|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|      0|          transfer(new_slots + new_i, old_slots + i);
 2947|      0|        }
 2948|      0|      }
 2949|      0|      infoz().RecordRehash(total_probe_length);
 2950|      0|    }
 2951|      2|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      2|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      2|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      2|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper23GrowSizeIntoSingleGroupINS1_18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEEvEENSt3__19allocatorISA_EEEEvRNS1_12CommonFieldsERT0_PNT_9slot_typeE:
 1655|      2|                               typename PolicyTraits::slot_type* old_slots) {
 1656|      2|    assert(old_capacity_ < Group::kWidth / 2);
 1657|      2|    assert(IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity()));
 1658|      2|    using slot_type = typename PolicyTraits::slot_type;
 1659|      2|    assert(is_single_group(c.capacity()));
 1660|       |
 1661|      2|    auto* new_slots = reinterpret_cast<slot_type*>(c.slot_array());
 1662|       |
 1663|      2|    size_t shuffle_bit = old_capacity_ / 2 + 1;
 1664|      6|    for (size_t i = 0; i < old_capacity_; ++i) {
  ------------------
  |  Branch (1664:24): [True: 4, False: 2]
  ------------------
 1665|      4|      if (IsFull(old_ctrl_[i])) {
  ------------------
  |  Branch (1665:11): [True: 4, False: 0]
  ------------------
 1666|      4|        size_t new_i = i ^ shuffle_bit;
 1667|      4|        SanitizerUnpoisonMemoryRegion(new_slots + new_i, sizeof(slot_type));
 1668|      4|        PolicyTraits::transfer(&alloc_ref, new_slots + new_i, old_slots + i);
 1669|      4|      }
 1670|      4|    }
 1671|      2|    PoisonSingleGroupEmptySlots(c, sizeof(slot_type));
 1672|      2|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE11growth_leftEv:
 3181|      8|  size_t growth_left() const { return common().growth_left(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE28rehash_and_grow_if_necessaryEv:
 2970|      3|  void rehash_and_grow_if_necessary() {
 2971|      3|    const size_t cap = capacity();
 2972|      3|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 0, False: 3]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      0|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 0]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|      3|    } else {
 3018|       |      // Otherwise grow the container.
 3019|      3|      resize(NextCapacity(cap));
 3020|      3|    }
 3021|      3|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE15set_growth_leftEm:
 3182|      4|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE10emplace_atIJRKS8_EEEvmDpOT_:
 3151|      4|  void emplace_at(size_t i, Args&&... args) {
 3152|      4|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|      4|               iterator_at(i) &&
 3156|      4|           "constructed value does not match the lookup key");
 3157|      4|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS5_12_GLOBAL__N_121DescriptorsByNameHashIS6_EENSA_19DescriptorsByNameEqIS6_EENSt3__19allocatorIS8_EEE9constructIJRKS8_EEEvPS8_DpOT_:
 2851|      4|  inline void construct(slot_type* slot, Args&&... args) {
 2852|      4|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|      4|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6insertIPS6_TnNSD_9enable_ifIXsr4absl11disjunctionINSD_14is_convertibleIRKT_S8_EENSG_22SameAsElementReferenceISN_EEEE5valueEiE4typeELi0ETnNSJ_IXsr14IsDecomposableISN_EE5valueEiE4typeELi0EEENSD_4pairINSG_8iteratorEbEESN_:
 2339|    103|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2340|    103|    return emplace(value);
 2341|    103|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE7emplaceIJRKPS6_ETnNSD_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENSD_4pairINSG_8iteratorEbEEDpOSM_:
 2422|    103|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|    103|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|    103|                               std::forward<Args>(args)...);
 2425|    103|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE19EmplaceDecomposableclIPS6_JRKSJ_EEENSD_4pairINSG_8iteratorEbEERKT_DpOT0_:
 2822|    103|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|    103|      auto res = s.find_or_prepare_insert(key);
 2824|    103|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 103, False: 0]
  ------------------
 2825|    103|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|    103|      }
 2827|    103|      return {s.iterator_at(res.first), res.second};
 2828|    103|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE22find_or_prepare_insertIPS6_EENSD_4pairImbEERKT_:
 3086|    103|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|    103|    prefetch_heap_block();
 3088|    103|    auto hash = hash_ref()(key);
 3089|    103|    auto seq = probe(common(), hash);
 3090|    103|    const ctrl_t* ctrl = control();
 3091|    105|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 105, Folded]
  ------------------
 3092|    105|      Group g{ctrl + seq.offset()};
 3093|    105|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 6, False: 105]
  ------------------
 3094|      6|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      6|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 6]
  |  |  |  Branch (179:48): [Folded, False: 6]
  |  |  |  Branch (179:57): [True: 0, False: 6]
  |  |  ------------------
  ------------------
 3095|      6|                EqualElement<K>{key, eq_ref()},
 3096|      6|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      6|      }
 3099|    105|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|    105|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 103, False: 2]
  |  |  |  Branch (179:48): [Folded, False: 105]
  |  |  |  Branch (179:57): [True: 103, False: 2]
  |  |  ------------------
  ------------------
 3100|      2|      seq.next();
 3101|      2|      assert(seq.index() <= capacity() && "full table!");
 3102|      2|    }
 3103|    103|    return {prepare_insert(hash), true};
 3104|    103|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE8hash_refEv:
 3202|    201|  hasher& hash_ref() { return settings_.template get<1>(); }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE12EqualElementIPS6_EclIS8_JRS8_EEEbRKT_DpOT0_:
 2813|      6|    bool operator()(const K2& lhs, Args&&...) const {
 2814|      6|      return eq(lhs, rhs);
 2815|      6|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE14prepare_insertEm:
 3110|    103|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|    103|    const bool rehash_for_bug_detection =
 3112|    103|        common().should_rehash_for_bug_detection_on_insert();
 3113|    103|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 103]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|    103|    auto target = find_first_non_full(common(), hash);
 3119|    103|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 103, False: 0]
  ------------------
 3120|    103|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|    113|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 10, False: 93]
  |  |  |  Branch (178:49): [Folded, False: 103]
  |  |  |  Branch (178:59): [True: 10, False: 93]
  |  |  |  Branch (178:59): [True: 10, False: 0]
  |  |  ------------------
  ------------------
 3121|    103|                           !IsDeleted(control()[target.offset]))) {
 3122|     10|      size_t old_capacity = capacity();
 3123|     10|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|     10|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|     10|          common(), old_capacity, hash);
 3133|     10|    }
 3134|    103|    common().increment_size();
 3135|    103|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|    103|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|    103|    common().maybe_increment_generation_on_insert();
 3138|    103|    infoz().RecordInsert(hash, target.probe_length);
 3139|    103|    return target.offset;
 3140|    103|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE6resizeEm:
 2905|     10|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|     10|    assert(IsValidCapacity(new_capacity));
 2907|     10|    HashSetResizeHelper resize_helper(common());
 2908|     10|    auto* old_slots = slot_array();
 2909|     10|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|     10|    const bool grow_single_group =
 2914|     10|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|     10|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|     10|                                      alignof(slot_type)>(
 2917|     10|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|     10|            CharAlloc(alloc_ref()));
 2919|       |
 2920|     10|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 3, False: 7]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      3|      return;
 2923|      3|    }
 2924|       |
 2925|      7|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 4, False: 3]
  ------------------
 2926|      4|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 4]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      4|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      4|                                                          old_slots);
 2934|      4|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      3|      auto* new_slots = slot_array();
 2937|      3|      size_t total_probe_length = 0;
 2938|    112|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 109, False: 3]
  ------------------
 2939|    109|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 98, False: 11]
  ------------------
 2940|     98|          size_t hash = PolicyTraits::apply(
 2941|     98|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|     98|          auto target = find_first_non_full(common(), hash);
 2943|     98|          size_t new_i = target.offset;
 2944|     98|          total_probe_length += target.probe_length;
 2945|     98|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|     98|          transfer(new_slots + new_i, old_slots + i);
 2947|     98|        }
 2948|    109|      }
 2949|      3|      infoz().RecordRehash(total_probe_length);
 2950|      3|    }
 2951|      7|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      7|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      7|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      7|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper23GrowSizeIntoSingleGroupINS1_18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEEvEENSt3__19allocatorISA_EEEEvRNS1_12CommonFieldsERT0_PNT_9slot_typeE:
 1655|      4|                               typename PolicyTraits::slot_type* old_slots) {
 1656|      4|    assert(old_capacity_ < Group::kWidth / 2);
 1657|      4|    assert(IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity()));
 1658|      4|    using slot_type = typename PolicyTraits::slot_type;
 1659|      4|    assert(is_single_group(c.capacity()));
 1660|       |
 1661|      4|    auto* new_slots = reinterpret_cast<slot_type*>(c.slot_array());
 1662|       |
 1663|      4|    size_t shuffle_bit = old_capacity_ / 2 + 1;
 1664|     16|    for (size_t i = 0; i < old_capacity_; ++i) {
  ------------------
  |  Branch (1664:24): [True: 12, False: 4]
  ------------------
 1665|     12|      if (IsFull(old_ctrl_[i])) {
  ------------------
  |  Branch (1665:11): [True: 12, False: 0]
  ------------------
 1666|     12|        size_t new_i = i ^ shuffle_bit;
 1667|     12|        SanitizerUnpoisonMemoryRegion(new_slots + new_i, sizeof(slot_type));
 1668|     12|        PolicyTraits::transfer(&alloc_ref, new_slots + new_i, old_slots + i);
 1669|     12|      }
 1670|     12|    }
 1671|      4|    PoisonSingleGroupEmptySlots(c, sizeof(slot_type));
 1672|      4|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE11HashElementclIS8_JRS8_EEEmRKT_DpOT0_:
 2804|     98|    size_t operator()(const K& key, Args&&...) const {
 2805|     98|      return h(key);
 2806|     98|    }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE8transferEPS8_SH_:
 2857|     98|  inline void transfer(slot_type* to, slot_type* from) {
 2858|     98|    PolicyTraits::transfer(&alloc_ref(), to, from);
 2859|     98|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE11growth_leftEv:
 3181|    206|  size_t growth_left() const { return common().growth_left(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE28rehash_and_grow_if_necessaryEv:
 2970|     10|  void rehash_and_grow_if_necessary() {
 2971|     10|    const size_t cap = capacity();
 2972|     10|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 2, False: 8]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      2|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 2]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|     10|    } else {
 3018|       |      // Otherwise grow the container.
 3019|     10|      resize(NextCapacity(cap));
 3020|     10|    }
 3021|     10|  }
descriptor.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE4sizeEv:
 2287|      2|  size_t size() const { return common().size(); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE15set_growth_leftEm:
 3182|    103|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE10emplace_atIJRKPS6_EEEvmDpOT_:
 3151|    103|  void emplace_at(size_t i, Args&&... args) {
 3152|    103|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|    103|               iterator_at(i) &&
 3156|    103|           "constructed value does not match the lookup key");
 3157|    103|  }
descriptor.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf15FieldDescriptorEEENS5_12_GLOBAL__N_116ParentNumberHashENSA_14ParentNumberEqENSt3__19allocatorIS8_EEE9constructIJRKPS6_EEEvPS8_DpOT_:
 2851|    103|  inline void construct(slot_type* slot, Args&&... args) {
 2852|    103|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|    103|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE15unchecked_derefENSP_8iteratorE:
 3166|    207|  reference unchecked_deref(iterator it) { return it.unchecked_deref(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE8iterator15unchecked_derefEv:
 2029|    207|    reference unchecked_deref() const { return PolicyTraits::element(slot_); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE22find_or_prepare_insertISA_EENSL_ImbEERKT_:
 3086|    207|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|    207|    prefetch_heap_block();
 3088|    207|    auto hash = hash_ref()(key);
 3089|    207|    auto seq = probe(common(), hash);
 3090|    207|    const ctrl_t* ctrl = control();
 3091|    207|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 207, Folded]
  ------------------
 3092|    207|      Group g{ctrl + seq.offset()};
 3093|    207|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 204, False: 4]
  ------------------
 3094|    204|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|    204|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 203, False: 1]
  |  |  |  Branch (179:48): [Folded, False: 204]
  |  |  |  Branch (179:57): [True: 203, False: 1]
  |  |  ------------------
  ------------------
 3095|    204|                EqualElement<K>{key, eq_ref()},
 3096|    204|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|    203|          return {seq.offset(i), false};
 3098|    204|      }
 3099|      4|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|      4|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 4, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 4]
  |  |  |  Branch (179:57): [True: 4, False: 0]
  |  |  ------------------
  ------------------
 3100|      0|      seq.next();
 3101|      0|      assert(seq.index() <= capacity() && "full table!");
 3102|      0|    }
 3103|      4|    return {prepare_insert(hash), true};
 3104|    207|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE19prefetch_heap_blockEv:
 3187|    207|  void prefetch_heap_block() const {
 3188|    207|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|    207|    __builtin_prefetch(control(), 0, 1);
 3190|    207|#endif
 3191|    207|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE8hash_refEv:
 3202|    207|  hasher& hash_ref() { return settings_.template get<1>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE12EqualElementISA_EclISA_JRKNS4_21piecewise_construct_tENS4_5tupleIJRSM_EEENSW_IJRKSH_EEEEEEbRKT_DpOT0_:
 2813|    204|    bool operator()(const K2& lhs, Args&&...) const {
 2814|    204|      return eq(lhs, rhs);
 2815|    204|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE6eq_refEv:
 3204|    204|  key_equal& eq_ref() { return settings_.template get<2>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE14prepare_insertEm:
 3110|      4|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|      4|    const bool rehash_for_bug_detection =
 3112|      4|        common().should_rehash_for_bug_detection_on_insert();
 3113|      4|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 4]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|      4|    auto target = find_first_non_full(common(), hash);
 3119|      4|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 4, False: 0]
  ------------------
 3120|      4|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|      7|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 3, False: 1]
  |  |  |  Branch (178:49): [Folded, False: 4]
  |  |  |  Branch (178:59): [True: 3, False: 1]
  |  |  |  Branch (178:59): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 3121|      4|                           !IsDeleted(control()[target.offset]))) {
 3122|      3|      size_t old_capacity = capacity();
 3123|      3|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|      3|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|      3|          common(), old_capacity, hash);
 3133|      3|    }
 3134|      4|    common().increment_size();
 3135|      4|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|      4|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|      4|    common().maybe_increment_generation_on_insert();
 3138|      4|    infoz().RecordInsert(hash, target.probe_length);
 3139|      4|    return target.offset;
 3140|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE6resizeEm:
 2905|      3|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|      3|    assert(IsValidCapacity(new_capacity));
 2907|      3|    HashSetResizeHelper resize_helper(common());
 2908|      3|    auto* old_slots = slot_array();
 2909|      3|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|      3|    const bool grow_single_group =
 2914|      3|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|      3|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|      3|                                      alignof(slot_type)>(
 2917|      3|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|      3|            CharAlloc(alloc_ref()));
 2919|       |
 2920|      3|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 1, False: 2]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      1|      return;
 2923|      1|    }
 2924|       |
 2925|      2|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 2, False: 0]
  ------------------
 2926|      2|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 2]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      2|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      2|                                                          old_slots);
 2934|      2|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      0|      auto* new_slots = slot_array();
 2937|      0|      size_t total_probe_length = 0;
 2938|      0|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 0, False: 0]
  ------------------
 2939|      0|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 0, False: 0]
  ------------------
 2940|      0|          size_t hash = PolicyTraits::apply(
 2941|      0|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|      0|          auto target = find_first_non_full(common(), hash);
 2943|      0|          size_t new_i = target.offset;
 2944|      0|          total_probe_length += target.probe_length;
 2945|      0|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|      0|          transfer(new_slots + new_i, old_slots + i);
 2947|      0|        }
 2948|      0|      }
 2949|      0|      infoz().RecordRehash(total_probe_length);
 2950|      0|    }
 2951|      2|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      2|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      2|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      2|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper23GrowSizeIntoSingleGroupINS1_18hash_policy_traitsINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENS6_10unique_ptrIN6google8protobuf10FeatureSetENS6_14default_deleteISG_EEEEEEvEENSA_INS6_4pairIKSC_SJ_EEEEEEvRNS1_12CommonFieldsERT0_PNT_9slot_typeE:
 1655|      2|                               typename PolicyTraits::slot_type* old_slots) {
 1656|      2|    assert(old_capacity_ < Group::kWidth / 2);
 1657|      2|    assert(IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity()));
 1658|      2|    using slot_type = typename PolicyTraits::slot_type;
 1659|      2|    assert(is_single_group(c.capacity()));
 1660|       |
 1661|      2|    auto* new_slots = reinterpret_cast<slot_type*>(c.slot_array());
 1662|       |
 1663|      2|    size_t shuffle_bit = old_capacity_ / 2 + 1;
 1664|      6|    for (size_t i = 0; i < old_capacity_; ++i) {
  ------------------
  |  Branch (1664:24): [True: 4, False: 2]
  ------------------
 1665|      4|      if (IsFull(old_ctrl_[i])) {
  ------------------
  |  Branch (1665:11): [True: 4, False: 0]
  ------------------
 1666|      4|        size_t new_i = i ^ shuffle_bit;
 1667|      4|        SanitizerUnpoisonMemoryRegion(new_slots + new_i, sizeof(slot_type));
 1668|      4|        PolicyTraits::transfer(&alloc_ref, new_slots + new_i, old_slots + i);
 1669|      4|      }
 1670|      4|    }
 1671|      2|    PoisonSingleGroupEmptySlots(c, sizeof(slot_type));
 1672|      2|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE11growth_leftEv:
 3181|      8|  size_t growth_left() const { return common().growth_left(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE28rehash_and_grow_if_necessaryEv:
 2970|      3|  void rehash_and_grow_if_necessary() {
 2971|      3|    const size_t cap = capacity();
 2972|      3|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 0, False: 3]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      0|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 0]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|      3|    } else {
 3018|       |      // Otherwise grow the container.
 3019|      3|      resize(NextCapacity(cap));
 3020|      3|    }
 3021|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE15set_growth_leftEm:
 3182|      4|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE10emplace_atIJRKNS4_21piecewise_construct_tENS4_5tupleIJOSA_EEENSU_IJEEEEEEvmDpOT_:
 3151|      4|  void emplace_at(size_t i, Args&&... args) {
 3152|      4|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|      4|               iterator_at(i) &&
 3156|      4|           "constructed value does not match the lookup key");
 3157|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE9constructIJRKNS4_21piecewise_construct_tENS4_5tupleIJOSA_EEENSU_IJEEEEEEvPNS1_13map_slot_typeISA_SH_EEDpOT_:
 2851|      4|  inline void construct(slot_type* slot, Args&&... args) {
 2852|      4|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE11iterator_atEm:
 3159|    207|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|    207|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|    207|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE8iteratorC2EPNS1_6ctrl_tEPNS1_13map_slot_typeISA_SH_EEPKh:
 1984|    207|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|    207|          ctrl_(ctrl),
 1986|    207|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|    207|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|    207|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|    207|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEbEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_bEEEEEC2Ev:
 2088|      2|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE8containsINS0_11string_viewEEEbRKT_:
 2724|      4|  bool contains(const key_arg<K>& key) const {
 2725|       |    // Here neither the iterator returned by `find()` nor `end()` can be invalid
 2726|       |    // outside of potential thread-safety issues.
 2727|       |    // `find()`'s return value is constructed, used, and then destructed
 2728|       |    // all in this context.
 2729|      4|    return !find(key).unchecked_equals(end());
 2730|      4|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE4findINS0_11string_viewEEENSF_14const_iteratorERKT_:
 2718|      4|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2719|      4|    prefetch_heap_block();
 2720|      4|    return find(key, hash_ref()(key));
 2721|      4|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE4findINS0_11string_viewEEENSF_14const_iteratorERKT_m:
 2713|      4|                      size_t hash) const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2714|      4|    return const_cast<raw_hash_set*>(this)->find(key, hash);
 2715|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE14const_iteratorC2ENSF_8iteratorE:
 2047|     16|    const_iterator(iterator i) : inner_(std::move(i)) {}  // NOLINT
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE8hash_refEv:
 3203|      8|  const hasher& hash_ref() const { return settings_.template get<1>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE14const_iterator16unchecked_equalsERKSG_:
 2075|      8|    bool unchecked_equals(const const_iterator& b) {
 2076|      8|      return inner_.unchecked_equals(b.inner_);
 2077|      8|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE8iterator16unchecked_equalsERKSG_:
 2025|      8|    bool unchecked_equals(const iterator& b) { return ctrl_ == b.control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE8iterator7controlEv:
 2009|      8|    ctrl_t* control() const { return ctrl_; }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE3endEv:
 2278|      8|  const_iterator end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2279|      8|    return iterator(common().generation_ptr());
 2280|      8|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE8containsISA_EEbRKT_:
 2724|      4|  bool contains(const key_arg<K>& key) const {
 2725|       |    // Here neither the iterator returned by `find()` nor `end()` can be invalid
 2726|       |    // outside of potential thread-safety issues.
 2727|       |    // `find()`'s return value is constructed, used, and then destructed
 2728|       |    // all in this context.
 2729|      4|    return !find(key).unchecked_equals(end());
 2730|      4|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE4findISA_EENSF_14const_iteratorERKT_:
 2718|      4|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2719|      4|    prefetch_heap_block();
 2720|      4|    return find(key, hash_ref()(key));
 2721|      4|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE4findISA_EENSF_14const_iteratorERKT_m:
 2713|      4|                      size_t hash) const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2714|      4|    return const_cast<raw_hash_set*>(this)->find(key, hash);
 2715|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS1_10StringHashENS1_8StringEqENS8_ISA_EEE4findISA_EENSF_8iteratorERKT_m:
 2688|      4|                size_t hash) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2689|      4|    auto seq = probe(common(), hash);
 2690|      4|    slot_type* slot_ptr = slot_array();
 2691|      4|    const ctrl_t* ctrl = control();
 2692|      4|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 4, Folded]
  ------------------
 2693|      4|      Group g{ctrl + seq.offset()};
 2694|      4|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 0, False: 4]
  ------------------
 2695|      0|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2696|      0|                EqualElement<K>{key, eq_ref()},
 2697|      0|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|      0|          return iterator_at(seq.offset(i));
 2699|      0|      }
 2700|      4|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|      4|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 4, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 4]
  |  |  |  Branch (179:57): [True: 4, False: 0]
  |  |  ------------------
  ------------------
 2701|      0|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      0|    }
 2704|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEEC2Ev:
 2088|      8|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_17DescriptorBuilder12MessageHintsEEENS1_6HashEqIS8_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS8_SA_EEEEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE19prefetch_heap_blockEv:
 3187|     92|  void prefetch_heap_block() const {
 3188|     92|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|     92|    __builtin_prefetch(control(), 0, 1);
 3190|     92|#endif
 3191|     92|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE8hash_refEv:
 3202|     91|  hasher& hash_ref() { return settings_.template get<1>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE4sizeEv:
 2287|      4|  size_t size() const { return common().size(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE8containsIS8_EEbRKT_:
 2724|      1|  bool contains(const key_arg<K>& key) const {
 2725|       |    // Here neither the iterator returned by `find()` nor `end()` can be invalid
 2726|       |    // outside of potential thread-safety issues.
 2727|       |    // `find()`'s return value is constructed, used, and then destructed
 2728|       |    // all in this context.
 2729|      1|    return !find(key).unchecked_equals(end());
 2730|      1|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE4findIS8_EENSH_14const_iteratorERKT_:
 2718|      1|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2719|      1|    prefetch_heap_block();
 2720|      1|    return find(key, hash_ref()(key));
 2721|      1|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE4findIS8_EENSH_14const_iteratorERKT_m:
 2713|      1|                      size_t hash) const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2714|      1|    return const_cast<raw_hash_set*>(this)->find(key, hash);
 2715|      1|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE4findIS8_EENSH_8iteratorERKT_m:
 2688|     92|                size_t hash) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2689|     92|    auto seq = probe(common(), hash);
 2690|     92|    slot_type* slot_ptr = slot_array();
 2691|     92|    const ctrl_t* ctrl = control();
 2692|     92|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 92, Folded]
  ------------------
 2693|     92|      Group g{ctrl + seq.offset()};
 2694|     92|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 0, False: 92]
  ------------------
 2695|      0|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2696|      0|                EqualElement<K>{key, eq_ref()},
 2697|      0|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|      0|          return iterator_at(seq.offset(i));
 2699|      0|      }
 2700|     92|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|     92|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 92, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 92]
  |  |  |  Branch (179:57): [True: 92, False: 0]
  |  |  ------------------
  ------------------
 2701|      0|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      0|    }
 2704|     92|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE14const_iteratorC2ENSH_8iteratorE:
 2047|      2|    const_iterator(iterator i) : inner_(std::move(i)) {}  // NOLINT
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE8hash_refEv:
 3203|      1|  const hasher& hash_ref() const { return settings_.template get<1>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE14const_iterator16unchecked_equalsERKSI_:
 2075|      1|    bool unchecked_equals(const const_iterator& b) {
 2076|      1|      return inner_.unchecked_equals(b.inner_);
 2077|      1|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE8iterator16unchecked_equalsERKSI_:
 2025|      1|    bool unchecked_equals(const iterator& b) { return ctrl_ == b.control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE8iterator7controlEv:
 2009|      1|    ctrl_t* control() const { return ctrl_; }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE3endEv:
 2278|      1|  const_iterator end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2279|      1|    return iterator(common().generation_ptr());
 2280|      1|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE8iteratorC2EPKh:
 1993|    184|        : HashSetIteratorGenerationInfo(generation_ptr), ctrl_(nullptr) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE5eraseIS8_EEmRKT_:
 2516|     91|  size_type erase(const key_arg<K>& key) {
 2517|     91|    auto it = find(key);
 2518|     91|    if (it == end()) return 0;
  ------------------
  |  Branch (2518:9): [True: 91, False: 0]
  ------------------
 2519|      0|    erase(it);
 2520|      0|    return 1;
 2521|     91|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE4findIS8_EENSH_8iteratorERKT_:
 2706|     91|  iterator find(const key_arg<K>& key) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2707|     91|    prefetch_heap_block();
 2708|     91|    return find(key, hash_ref()(key));
 2709|     91|  }
_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE8iteratorESK_:
 1970|     91|    friend bool operator==(const iterator& a, const iterator& b) {
 1971|     91|      AssertIsValidForComparison(a.ctrl_, a.generation(), a.generation_ptr());
 1972|     91|      AssertIsValidForComparison(b.ctrl_, b.generation(), b.generation_ptr());
 1973|     91|      AssertSameContainer(a.ctrl_, b.ctrl_, a.slot_, b.slot_,
 1974|     91|                          a.generation_ptr(), b.generation_ptr());
 1975|     91|      return a.ctrl_ == b.ctrl_;
 1976|     91|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE3endEv:
 2271|    183|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2272|    183|    return iterator(common().generation_ptr());
 2273|    183|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEEC2Ev:
 2088|     65|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE5clearEv:
 2291|      8|  ABSL_ATTRIBUTE_REINITIALIZES void clear() {
 2292|       |    // Iterating over this container is O(bucket_count()). When bucket_count()
 2293|       |    // is much greater than size(), iteration becomes prohibitively expensive.
 2294|       |    // For clear() it is more important to reuse the allocated array when the
 2295|       |    // container is small because allocation takes comparatively long time
 2296|       |    // compared to destruction of the elements of the container. So we pick the
 2297|       |    // largest bucket_count() threshold for which iteration is still fast and
 2298|       |    // past that we simply deallocate the array.
 2299|      8|    const size_t cap = capacity();
 2300|      8|    if (cap == 0) {
  ------------------
  |  Branch (2300:9): [True: 8, False: 0]
  ------------------
 2301|       |      // Already guaranteed to be empty; so nothing to do.
 2302|      8|    } else {
 2303|      0|      destroy_slots();
 2304|      0|      ClearBackingArray(common(), GetPolicyFunctions(), /*reuse=*/cap < 128);
 2305|      0|    }
 2306|      8|    common().set_reserved_growth(0);
 2307|      8|    common().set_reservation_size(0);
 2308|      8|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIiEENS0_13hash_internal4HashIiEENSt3__18equal_toIiEENS8_9allocatorIiEEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE6insertINS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEETnNS8_9enable_ifIXsr4absl11disjunctionINS8_14is_convertibleIRKT_S4_EENSB_22SameAsElementReferenceISM_EEEE5valueEiE4typeELi0ETnNSI_IXsr14IsDecomposableISM_EE5valueEiE4typeELi0EEENS8_4pairINSB_8iteratorEbEESM_:
 2339|      3|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2340|      3|    return emplace(value);
 2341|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE7emplaceIJRKNS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEETnNS8_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENS8_4pairINSB_8iteratorEbEEDpOSL_:
 2422|      3|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|      3|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|      3|                               std::forward<Args>(args)...);
 2425|      3|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE19EmplaceDecomposableclINS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEJRKSI_EEENS8_4pairINSB_8iteratorEbEERKT_DpOT0_:
 2822|      3|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|      3|      auto res = s.find_or_prepare_insert(key);
 2824|      3|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 3, False: 0]
  ------------------
 2825|      3|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|      3|      }
 2827|      3|      return {s.iterator_at(res.first), res.second};
 2828|      3|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE22find_or_prepare_insertINS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEENS8_4pairImbEERKT_:
 3086|      3|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|      3|    prefetch_heap_block();
 3088|      3|    auto hash = hash_ref()(key);
 3089|      3|    auto seq = probe(common(), hash);
 3090|      3|    const ctrl_t* ctrl = control();
 3091|      3|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 3, Folded]
  ------------------
 3092|      3|      Group g{ctrl + seq.offset()};
 3093|      3|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 0, False: 3]
  ------------------
 3094|      0|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3095|      0|                EqualElement<K>{key, eq_ref()},
 3096|      0|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      0|      }
 3099|      3|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|      3|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 3, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 3]
  |  |  |  Branch (179:57): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 3100|      0|      seq.next();
 3101|      0|      assert(seq.index() <= capacity() && "full table!");
 3102|      0|    }
 3103|      3|    return {prepare_insert(hash), true};
 3104|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE10emplace_atIJRKNS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEEEvmDpOT_:
 3151|      3|  void emplace_at(size_t i, Args&&... args) {
 3152|      3|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|      3|               iterator_at(i) &&
 3156|      3|           "constructed value does not match the lookup key");
 3157|      3|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE9constructIJRKNS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEEEvPS4_DpOT_:
 2851|      3|  inline void construct(slot_type* slot, Args&&... args) {
 2852|      3|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|      3|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_17DescriptorBuilder12MessageHintsEEENS1_6HashEqIS8_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS8_SA_EEEEE5emptyEv:
 2286|      4|  bool empty() const { return !size(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_17DescriptorBuilder12MessageHintsEEENS1_6HashEqIS8_vE4HashENSD_2EqENSt3__19allocatorINSG_4pairIKS8_SA_EEEEE4sizeEv:
 2287|      4|  size_t size() const { return common().size(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf14FileDescriptorEEENS1_6HashEqIS8_vE4HashENSB_2EqENSt3__19allocatorIS8_EEE5emptyEv:
 2286|      4|  bool empty() const { return !size(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE4findISA_EENSM_8iteratorERKT_:
 2706|     41|  iterator find(const key_arg<K>& key) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2707|     41|    prefetch_heap_block();
 2708|     41|    return find(key, hash_ref()(key));
 2709|     41|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE4findISA_EENSM_8iteratorERKT_m:
 2688|     41|                size_t hash) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2689|     41|    auto seq = probe(common(), hash);
 2690|     41|    slot_type* slot_ptr = slot_array();
 2691|     41|    const ctrl_t* ctrl = control();
 2692|     41|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 41, Folded]
  ------------------
 2693|     41|      Group g{ctrl + seq.offset()};
 2694|     41|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 3, False: 40]
  ------------------
 2695|      3|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      3|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 1, False: 2]
  |  |  |  Branch (179:48): [Folded, False: 3]
  |  |  |  Branch (179:57): [True: 1, False: 2]
  |  |  ------------------
  ------------------
 2696|      3|                EqualElement<K>{key, eq_ref()},
 2697|      3|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|      1|          return iterator_at(seq.offset(i));
 2699|      3|      }
 2700|     40|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|     40|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 40, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 40]
  |  |  |  Branch (179:57): [True: 40, False: 0]
  |  |  ------------------
  ------------------
 2701|      0|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      0|    }
 2704|     41|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE3endEv:
 2271|     81|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2272|     81|    return iterator(common().generation_ptr());
 2273|     81|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8iteratorC2EPKh:
 1993|     81|        : HashSetIteratorGenerationInfo(generation_ptr), ctrl_(nullptr) {}
_ZN4absl12lts_2024011618container_internalneERKNS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8iteratorESP_:
 1977|     41|    friend bool operator!=(const iterator& a, const iterator& b) {
 1978|     41|      return !(a == b);
 1979|     41|    }
_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8iteratorESP_:
 1970|     41|    friend bool operator==(const iterator& a, const iterator& b) {
 1971|     41|      AssertIsValidForComparison(a.ctrl_, a.generation(), a.generation_ptr());
 1972|     41|      AssertIsValidForComparison(b.ctrl_, b.generation(), b.generation_ptr());
 1973|     41|      AssertSameContainer(a.ctrl_, b.ctrl_, a.slot_, b.slot_,
 1974|     41|                          a.generation_ptr(), b.generation_ptr());
 1975|     41|      return a.ctrl_ == b.ctrl_;
 1976|     41|    }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8iteratorptEv:
 1950|      1|    pointer operator->() const {
 1951|      1|      AssertIsFull(ctrl_, generation(), generation_ptr(), "operator->");
 1952|      1|      return &operator*();
 1953|      1|    }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8iteratordeEv:
 1944|      1|    reference operator*() const {
 1945|      1|      AssertIsFull(ctrl_, generation(), generation_ptr(), "operator*()");
 1946|      1|      return unchecked_deref();
 1947|      1|    }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE8iterator15unchecked_derefEv:
 2029|      1|    reference unchecked_deref() const { return PolicyTraits::element(slot_); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE8containsINS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEEbRKT_:
 2724|    313|  bool contains(const key_arg<K>& key) const {
 2725|       |    // Here neither the iterator returned by `find()` nor `end()` can be invalid
 2726|       |    // outside of potential thread-safety issues.
 2727|       |    // `find()`'s return value is constructed, used, and then destructed
 2728|       |    // all in this context.
 2729|    313|    return !find(key).unchecked_equals(end());
 2730|    313|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE4findINS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEENSB_14const_iteratorERKT_:
 2718|    313|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2719|    313|    prefetch_heap_block();
 2720|    313|    return find(key, hash_ref()(key));
 2721|    313|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE4findINS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEENSB_14const_iteratorERKT_m:
 2713|    313|                      size_t hash) const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2714|    313|    return const_cast<raw_hash_set*>(this)->find(key, hash);
 2715|    313|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyINS0_11string_viewEEENS1_10StringHashENS1_8StringEqENSt3__19allocatorIS4_EEE4findINS8_12basic_stringIcNS8_11char_traitsIcEENS9_IcEEEEEENSB_8iteratorERKT_m:
 2688|    313|                size_t hash) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2689|    313|    auto seq = probe(common(), hash);
 2690|    313|    slot_type* slot_ptr = slot_array();
 2691|    313|    const ctrl_t* ctrl = control();
 2692|    313|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 313, Folded]
  ------------------
 2693|    313|      Group g{ctrl + seq.offset()};
 2694|    313|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 0, False: 313]
  ------------------
 2695|      0|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2696|      0|                EqualElement<K>{key, eq_ref()},
 2697|      0|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|      0|          return iterator_at(seq.offset(i));
 2699|      0|      }
 2700|    313|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|    313|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 313, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 313]
  |  |  |  Branch (179:57): [True: 313, False: 0]
  |  |  ------------------
  ------------------
 2701|      0|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      0|    }
 2704|    313|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEES8_EENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_S8_EEEEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__16vectorIiNS4_9allocatorIiEEEEiEENS0_13hash_internal4HashIS8_EENS4_8equal_toIS8_EENS6_INS4_4pairIKS8_iEEEEEC2Ev:
 2088|      4|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEED2Ev:
 2264|      4|  ~raw_hash_set() { destructor_impl(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE15destructor_implEv:
 2882|      4|  inline void destructor_impl() {
 2883|      4|    if (capacity() == 0) return;
  ------------------
  |  Branch (2883:9): [True: 4, False: 0]
  ------------------
 2884|      0|    destroy_slots();
 2885|      0|    dealloc();
 2886|      0|  }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE8capacityEv:
 2288|      4|  size_t capacity() const { return common().capacity(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE6commonEv:
 3194|     12|  const CommonFields& common() const { return settings_.template get<0>(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE7controlEv:
 3196|      4|  ctrl_t* control() const { return common().control(); }
_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE10slot_arrayEv:
 3197|      4|  slot_type* slot_array() const {
 3198|      4|    return static_cast<slot_type*>(common().slot_array());
 3199|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE6commonEv:
 3193|      8|  CommonFields& common() { return settings_.template get<0>(); }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEEC2Ev:
 2088|      6|      std::is_nothrow_default_constructible<allocator_type>::value) {}
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE5beginEv:
 2266|      4|  iterator begin() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2267|      4|    auto it = iterator_at(0);
 2268|      4|    it.skip_empty_or_deleted();
 2269|      4|    return it;
 2270|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE11iterator_atEm:
 3159|      4|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|      4|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE8iteratorC2EPNS1_6ctrl_tEPNS1_13map_slot_typeIS8_SC_EEPKh:
 1984|      4|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|      4|          ctrl_(ctrl),
 1986|      4|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|      4|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|      4|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|      4|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE8iterator21skip_empty_or_deletedEv:
 1999|      4|    void skip_empty_or_deleted() {
 2000|      4|      while (IsEmptyOrDeleted(*ctrl_)) {
  ------------------
  |  Branch (2000:14): [True: 0, False: 4]
  ------------------
 2001|      0|        uint32_t shift =
 2002|      0|            GroupEmptyOrDeleted{ctrl_}.CountLeadingEmptyOrDeleted();
 2003|      0|        ctrl_ += shift;
 2004|      0|        slot_ += shift;
 2005|      0|      }
 2006|      4|      if (ABSL_PREDICT_FALSE(*ctrl_ == ctrl_t::kSentinel)) ctrl_ = nullptr;
  ------------------
  |  |  178|      4|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 4, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 4]
  |  |  |  Branch (178:58): [True: 4, False: 0]
  |  |  ------------------
  ------------------
 2007|      4|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE3endEv:
 2271|      4|  iterator end() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2272|      4|    return iterator(common().generation_ptr());
 2273|      4|  }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE8iteratorC2EPKh:
 1993|      4|        : HashSetIteratorGenerationInfo(generation_ptr), ctrl_(nullptr) {}
_ZN4absl12lts_2024011618container_internalneERKNS1_12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE8iteratorESR_:
 1977|      4|    friend bool operator!=(const iterator& a, const iterator& b) {
 1978|      4|      return !(a == b);
 1979|      4|    }
_ZN4absl12lts_2024011618container_internaleqERKNS1_12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorEPKNS5_21DynamicMessageFactory8TypeInfoEEENS1_6HashEqIS8_vE4HashENSF_2EqENSt3__19allocatorINSI_4pairIKS8_SC_EEEEE8iteratorESR_:
 1970|      4|    friend bool operator==(const iterator& a, const iterator& b) {
 1971|      4|      AssertIsValidForComparison(a.ctrl_, a.generation(), a.generation_ptr());
 1972|      4|      AssertIsValidForComparison(b.ctrl_, b.generation(), b.generation_ptr());
 1973|      4|      AssertSameContainer(a.ctrl_, b.ctrl_, a.slot_, b.slot_,
 1974|      4|                          a.generation_ptr(), b.generation_ptr());
 1975|      4|      return a.ctrl_ == b.ctrl_;
 1976|      4|    }
message.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE8capacityEv:
 2288|     10|  size_t capacity() const { return common().capacity(); }
message.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE6commonEv:
 3194|     68|  const CommonFields& common() const { return settings_.template get<0>(); }
message.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE7controlEv:
 3196|     29|  ctrl_t* control() const { return common().control(); }
message.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE10slot_arrayEv:
 3197|     17|  slot_type* slot_array() const {
 3198|     17|    return static_cast<slot_type*>(common().slot_array());
 3199|     17|  }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE9alloc_refEv:
 3206|     17|  allocator_type& alloc_ref() { return settings_.template get<3>(); }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE5infozEv:
 3200|      6|  HashtablezInfoHandle infoz() { return common().infoz(); }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE6commonEv:
 3193|     77|  CommonFields& common() { return settings_.template get<0>(); }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEEC2Ev:
 2088|      2|      std::is_nothrow_default_constructible<allocator_type>::value) {}
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyIPKN6google8protobuf10DescriptorENS5_12_GLOBAL__N_123GeneratedMessageFactory10MessagePtrEEENS1_6HashEqIS8_vE4HashENSE_2EqENSt3__19allocatorINSH_4pairIKS8_SB_EEEEEC2Ev:
 2088|      2|      std::is_nothrow_default_constructible<allocator_type>::value) {}
message.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE19prefetch_heap_blockEv:
 3187|      6|  void prefetch_heap_block() const {
 3188|      6|#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
 3189|      6|    __builtin_prefetch(control(), 0, 1);
 3190|      6|#endif
 3191|      6|  }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE11iterator_atEm:
 3159|      6|  iterator iterator_at(size_t i) ABSL_ATTRIBUTE_LIFETIME_BOUND {
 3160|      6|    return {control() + i, slot_array() + i, common().generation_ptr()};
 3161|      6|  }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE8iteratorC2EPNS1_6ctrl_tEPS9_PKh:
 1984|      6|        : HashSetIteratorGenerationInfo(generation_ptr),
 1985|      6|          ctrl_(ctrl),
 1986|      6|          slot_(slot) {
 1987|       |      // This assumption helps the compiler know that any non-end iterator is
 1988|       |      // not equal to any end iterator.
 1989|      6|      ABSL_ASSUME(ctrl != nullptr);
  ------------------
  |  |  259|      6|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
 1990|      6|    }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE8hash_refEv:
 3202|      6|  hasher& hash_ref() { return settings_.template get<1>(); }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE6insertIS9_TnNSF_9enable_ifIXsr4absl11disjunctionINSF_14is_convertibleIRKT_S9_EENSI_22SameAsElementReferenceISO_EEEE5valueEiE4typeELi0ETnNSK_IXsr14IsDecomposableISO_EE5valueEiE4typeELi0EEENSF_4pairINSI_8iteratorEbEESO_:
 2339|      6|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2340|      6|    return emplace(value);
 2341|      6|  }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE7emplaceIJRKS9_ETnNSF_9enable_ifIXsr14IsDecomposableIDpT_EE5valueEiE4typeELi0EEENSF_4pairINSI_8iteratorEbEEDpOSN_:
 2422|      6|      ABSL_ATTRIBUTE_LIFETIME_BOUND {
 2423|      6|    return PolicyTraits::apply(EmplaceDecomposable{*this},
 2424|      6|                               std::forward<Args>(args)...);
 2425|      6|  }
message.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE19EmplaceDecomposableclIS9_JRKS9_EEENSF_4pairINSI_8iteratorEbEERKT_DpOT0_:
 2822|      6|    std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
 2823|      6|      auto res = s.find_or_prepare_insert(key);
 2824|      6|      if (res.second) {
  ------------------
  |  Branch (2824:11): [True: 6, False: 0]
  ------------------
 2825|      6|        s.emplace_at(res.first, std::forward<Args>(args)...);
 2826|      6|      }
 2827|      6|      return {s.iterator_at(res.first), res.second};
 2828|      6|    }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE22find_or_prepare_insertIS9_EENSF_4pairImbEERKT_:
 3086|      6|  std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
 3087|      6|    prefetch_heap_block();
 3088|      6|    auto hash = hash_ref()(key);
 3089|      6|    auto seq = probe(common(), hash);
 3090|      6|    const ctrl_t* ctrl = control();
 3091|      6|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 6, Folded]
  ------------------
 3092|      6|      Group g{ctrl + seq.offset()};
 3093|      6|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 0, False: 6]
  ------------------
 3094|      0|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      0|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 0]
  |  |  |  Branch (179:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3095|      0|                EqualElement<K>{key, eq_ref()},
 3096|      0|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      0|      }
 3099|      6|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|      6|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 6, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 6]
  |  |  |  Branch (179:57): [True: 6, False: 0]
  |  |  ------------------
  ------------------
 3100|      0|      seq.next();
 3101|      0|      assert(seq.index() <= capacity() && "full table!");
 3102|      0|    }
 3103|      6|    return {prepare_insert(hash), true};
 3104|      6|  }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE14prepare_insertEm:
 3110|      6|  size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
 3111|      6|    const bool rehash_for_bug_detection =
 3112|      6|        common().should_rehash_for_bug_detection_on_insert();
 3113|      6|    if (rehash_for_bug_detection) {
  ------------------
  |  Branch (3113:9): [True: 0, False: 6]
  ------------------
 3114|       |      // Move to a different heap allocation in order to detect bugs.
 3115|      0|      const size_t cap = capacity();
 3116|      0|      resize(growth_left() > 0 ? cap : NextCapacity(cap));
  ------------------
  |  Branch (3116:14): [True: 0, False: 0]
  ------------------
 3117|      0|    }
 3118|      6|    auto target = find_first_non_full(common(), hash);
 3119|      6|    if (!rehash_for_bug_detection &&
  ------------------
  |  Branch (3119:9): [True: 6, False: 0]
  ------------------
 3120|      6|        ABSL_PREDICT_FALSE(growth_left() == 0 &&
  ------------------
  |  |  178|     11|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 5, False: 1]
  |  |  |  Branch (178:49): [Folded, False: 6]
  |  |  |  Branch (178:59): [True: 5, False: 1]
  |  |  |  Branch (178:59): [True: 5, False: 0]
  |  |  ------------------
  ------------------
 3121|      6|                           !IsDeleted(control()[target.offset]))) {
 3122|      5|      size_t old_capacity = capacity();
 3123|      5|      rehash_and_grow_if_necessary();
 3124|       |      // NOTE: It is safe to use `FindFirstNonFullAfterResize`.
 3125|       |      // `FindFirstNonFullAfterResize` must be called right after resize.
 3126|       |      // `rehash_and_grow_if_necessary` may *not* call `resize`
 3127|       |      // and perform `drop_deletes_without_resize` instead. But this
 3128|       |      // could happen only on big tables.
 3129|       |      // For big tables `FindFirstNonFullAfterResize` will always
 3130|       |      // fallback to normal `find_first_non_full`, so it is safe to use it.
 3131|      5|      target = HashSetResizeHelper::FindFirstNonFullAfterResize(
 3132|      5|          common(), old_capacity, hash);
 3133|      5|    }
 3134|      6|    common().increment_size();
 3135|      6|    set_growth_left(growth_left() - IsEmpty(control()[target.offset]));
 3136|      6|    SetCtrl(common(), target.offset, H2(hash), sizeof(slot_type));
 3137|      6|    common().maybe_increment_generation_on_insert();
 3138|      6|    infoz().RecordInsert(hash, target.probe_length);
 3139|      6|    return target.offset;
 3140|      6|  }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE6resizeEm:
 2905|      5|  ABSL_ATTRIBUTE_NOINLINE void resize(size_t new_capacity) {
 2906|      5|    assert(IsValidCapacity(new_capacity));
 2907|      5|    HashSetResizeHelper resize_helper(common());
 2908|      5|    auto* old_slots = slot_array();
 2909|      5|    common().set_capacity(new_capacity);
 2910|       |    // Note that `InitializeSlots` does different number initialization steps
 2911|       |    // depending on the values of `transfer_uses_memcpy` and capacities.
 2912|       |    // Refer to the comment in `InitializeSlots` for more details.
 2913|      5|    const bool grow_single_group =
 2914|      5|        resize_helper.InitializeSlots<CharAlloc, sizeof(slot_type),
 2915|      5|                                      PolicyTraits::transfer_uses_memcpy(),
 2916|      5|                                      alignof(slot_type)>(
 2917|      5|            common(), const_cast<std::remove_const_t<slot_type>*>(old_slots),
 2918|      5|            CharAlloc(alloc_ref()));
 2919|       |
 2920|      5|    if (resize_helper.old_capacity() == 0) {
  ------------------
  |  Branch (2920:9): [True: 2, False: 3]
  ------------------
 2921|       |      // InitializeSlots did all the work including infoz().RecordRehash().
 2922|      2|      return;
 2923|      2|    }
 2924|       |
 2925|      3|    if (grow_single_group) {
  ------------------
  |  Branch (2925:9): [True: 3, False: 0]
  ------------------
 2926|      3|      if (PolicyTraits::transfer_uses_memcpy()) {
  ------------------
  |  Branch (2926:11): [Folded, False: 3]
  ------------------
 2927|       |        // InitializeSlots did all the work.
 2928|      0|        return;
 2929|      0|      }
 2930|       |      // We want GrowSizeIntoSingleGroup to be called here in order to make
 2931|       |      // InitializeSlots not depend on PolicyTraits.
 2932|      3|      resize_helper.GrowSizeIntoSingleGroup<PolicyTraits>(common(), alloc_ref(),
 2933|      3|                                                          old_slots);
 2934|      3|    } else {
 2935|       |      // InitializeSlots prepares control bytes to correspond to empty table.
 2936|      0|      auto* new_slots = slot_array();
 2937|      0|      size_t total_probe_length = 0;
 2938|      0|      for (size_t i = 0; i != resize_helper.old_capacity(); ++i) {
  ------------------
  |  Branch (2938:26): [True: 0, False: 0]
  ------------------
 2939|      0|        if (IsFull(resize_helper.old_ctrl()[i])) {
  ------------------
  |  Branch (2939:13): [True: 0, False: 0]
  ------------------
 2940|      0|          size_t hash = PolicyTraits::apply(
 2941|      0|              HashElement{hash_ref()}, PolicyTraits::element(old_slots + i));
 2942|      0|          auto target = find_first_non_full(common(), hash);
 2943|      0|          size_t new_i = target.offset;
 2944|      0|          total_probe_length += target.probe_length;
 2945|      0|          SetCtrl(common(), new_i, H2(hash), sizeof(slot_type));
 2946|      0|          transfer(new_slots + new_i, old_slots + i);
 2947|      0|        }
 2948|      0|      }
 2949|      0|      infoz().RecordRehash(total_probe_length);
 2950|      0|    }
 2951|      3|    resize_helper.DeallocateOld<alignof(slot_type)>(
 2952|      3|        CharAlloc(alloc_ref()), sizeof(slot_type),
 2953|      3|        const_cast<std::remove_const_t<slot_type>*>(old_slots));
 2954|      3|  }
_ZN4absl12lts_2024011618container_internal19HashSetResizeHelper23GrowSizeIntoSingleGroupINS1_18hash_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEEvEENSt3__19allocatorISB_EEEEvRNS1_12CommonFieldsERT0_PNT_9slot_typeE:
 1655|      3|                               typename PolicyTraits::slot_type* old_slots) {
 1656|      3|    assert(old_capacity_ < Group::kWidth / 2);
 1657|      3|    assert(IsGrowingIntoSingleGroupApplicable(old_capacity_, c.capacity()));
 1658|      3|    using slot_type = typename PolicyTraits::slot_type;
 1659|      3|    assert(is_single_group(c.capacity()));
 1660|       |
 1661|      3|    auto* new_slots = reinterpret_cast<slot_type*>(c.slot_array());
 1662|       |
 1663|      3|    size_t shuffle_bit = old_capacity_ / 2 + 1;
 1664|      8|    for (size_t i = 0; i < old_capacity_; ++i) {
  ------------------
  |  Branch (1664:24): [True: 5, False: 3]
  ------------------
 1665|      5|      if (IsFull(old_ctrl_[i])) {
  ------------------
  |  Branch (1665:11): [True: 5, False: 0]
  ------------------
 1666|      5|        size_t new_i = i ^ shuffle_bit;
 1667|      5|        SanitizerUnpoisonMemoryRegion(new_slots + new_i, sizeof(slot_type));
 1668|      5|        PolicyTraits::transfer(&alloc_ref, new_slots + new_i, old_slots + i);
 1669|      5|      }
 1670|      5|    }
 1671|      3|    PoisonSingleGroupEmptySlots(c, sizeof(slot_type));
 1672|      3|  }
message.cc:_ZNK4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE11growth_leftEv:
 3181|     12|  size_t growth_left() const { return common().growth_left(); }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE28rehash_and_grow_if_necessaryEv:
 2970|      5|  void rehash_and_grow_if_necessary() {
 2971|      5|    const size_t cap = capacity();
 2972|      5|    if (cap > Group::kWidth &&
  ------------------
  |  Branch (2972:9): [True: 0, False: 5]
  ------------------
 2973|       |        // Do these calculations in 64-bit to avoid overflow.
 2974|      0|        size() * uint64_t{32} <= cap * uint64_t{25}) {
  ------------------
  |  Branch (2974:9): [True: 0, False: 0]
  ------------------
 2975|       |      // Squash DELETED without growing if there is enough capacity.
 2976|       |      //
 2977|       |      // Rehash in place if the current size is <= 25/32 of capacity.
 2978|       |      // Rationale for such a high factor: 1) drop_deletes_without_resize() is
 2979|       |      // faster than resize, and 2) it takes quite a bit of work to add
 2980|       |      // tombstones.  In the worst case, seems to take approximately 4
 2981|       |      // insert/erase pairs to create a single tombstone and so if we are
 2982|       |      // rehashing because of tombstones, we can afford to rehash-in-place as
 2983|       |      // long as we are reclaiming at least 1/8 the capacity without doing more
 2984|       |      // than 2X the work.  (Where "work" is defined to be size() for rehashing
 2985|       |      // or rehashing in place, and 1 for an insert or erase.)  But rehashing in
 2986|       |      // place is faster per operation than inserting or even doubling the size
 2987|       |      // of the table, so we actually afford to reclaim even less space from a
 2988|       |      // resize-in-place.  The decision is to rehash in place if we can reclaim
 2989|       |      // at about 1/8th of the usable capacity (specifically 3/28 of the
 2990|       |      // capacity) which means that the total cost of rehashing will be a small
 2991|       |      // fraction of the total work.
 2992|       |      //
 2993|       |      // Here is output of an experiment using the BM_CacheInSteadyState
 2994|       |      // benchmark running the old case (where we rehash-in-place only if we can
 2995|       |      // reclaim at least 7/16*capacity) vs. this code (which rehashes in place
 2996|       |      // if we can recover 3/32*capacity).
 2997|       |      //
 2998|       |      // Note that although in the worst-case number of rehashes jumped up from
 2999|       |      // 15 to 190, but the number of operations per second is almost the same.
 3000|       |      //
 3001|       |      // Abridged output of running BM_CacheInSteadyState benchmark from
 3002|       |      // raw_hash_set_benchmark.   N is the number of insert/erase operations.
 3003|       |      //
 3004|       |      //      | OLD (recover >= 7/16        | NEW (recover >= 3/32)
 3005|       |      // size |    N/s LoadFactor NRehashes |    N/s LoadFactor NRehashes
 3006|       |      //  448 | 145284       0.44        18 | 140118       0.44        19
 3007|       |      //  493 | 152546       0.24        11 | 151417       0.48        28
 3008|       |      //  538 | 151439       0.26        11 | 151152       0.53        38
 3009|       |      //  583 | 151765       0.28        11 | 150572       0.57        50
 3010|       |      //  628 | 150241       0.31        11 | 150853       0.61        66
 3011|       |      //  672 | 149602       0.33        12 | 150110       0.66        90
 3012|       |      //  717 | 149998       0.35        12 | 149531       0.70       129
 3013|       |      //  762 | 149836       0.37        13 | 148559       0.74       190
 3014|       |      //  807 | 149736       0.39        14 | 151107       0.39        14
 3015|       |      //  852 | 150204       0.42        15 | 151019       0.42        15
 3016|      0|      drop_deletes_without_resize();
 3017|      5|    } else {
 3018|       |      // Otherwise grow the container.
 3019|      5|      resize(NextCapacity(cap));
 3020|      5|    }
 3021|      5|  }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE15set_growth_leftEm:
 3182|      6|  void set_growth_left(size_t gl) { return common().set_growth_left(gl); }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE10emplace_atIJRKS9_EEEvmDpOT_:
 3151|      6|  void emplace_at(size_t i, Args&&... args) {
 3152|      6|    construct(slot_array() + i, std::forward<Args>(args)...);
 3153|       |
 3154|       |    assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
 3155|      6|               iterator_at(i) &&
 3156|      6|           "constructed value does not match the lookup key");
 3157|      6|  }
message.cc:_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashSetPolicyIPKN6google8protobuf8internal15DescriptorTableEEENS5_12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashENSC_18DescriptorByNameEqENSt3__19allocatorIS9_EEE9constructIJRKS9_EEEvPS9_DpOT_:
 2851|      6|  inline void construct(slot_type* slot, Args&&... args) {
 2852|      6|    PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
 2853|      6|  }

_ZN4absl12lts_202401166HashOfITpTnRiJEJPKN6google8protobuf11MessageLiteEiEEEmDpRKT0_:
  267|      9|size_t HashOf(const Types&... values) {
  268|      9|  auto tuple = std::tie(values...);
  269|      9|  return absl::Hash<decltype(tuple)>{}(tuple);
  270|      9|}
_ZN4absl12lts_202401166HashOfITpTnRiJEJNS0_11string_viewEEEEmDpRKT0_:
  267|    934|size_t HashOf(const Types&... values) {
  268|    934|  auto tuple = std::tie(values...);
  269|    934|  return absl::Hash<decltype(tuple)>{}(tuple);
  270|    934|}
_ZN4absl12lts_202401166HashOfITpTnRiJEJNSt3__14pairIPKviEEEEEmDpRKT0_:
  267|    263|size_t HashOf(const Types&... values) {
  268|    263|  auto tuple = std::tie(values...);
  269|    263|  return absl::Hash<decltype(tuple)>{}(tuple);
  270|    263|}
_ZN4absl12lts_202401166HashOfITpTnRiJEJNSt3__14pairIPKvNS0_11string_viewEEEEEEmDpRKT0_:
  267|  1.01k|size_t HashOf(const Types&... values) {
  268|  1.01k|  auto tuple = std::tie(values...);
  269|  1.01k|  return absl::Hash<decltype(tuple)>{}(tuple);
  270|  1.01k|}
_ZN4absl12lts_202401166HashOfITpTnRiJEJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEmDpRKT0_:
  267|      4|size_t HashOf(const Types&... values) {
  268|      4|  auto tuple = std::tie(values...);
  269|      4|  return absl::Hash<decltype(tuple)>{}(tuple);
  270|      4|}

_ZN4absl12lts_2024011613hash_internal15MixingHashState16LowLevelHashImplEPKhm:
   63|  1.51k|                                           size_t len) {
   64|  1.51k|  return LowLevelHash(data, len, Seed(), kHashSalt);
   65|  1.51k|}

_ZN4absl12lts_2024011613hash_internal15MixingHashState18combine_contiguousES2_PKhm:
 1023|  8.21k|                                            size_t size) {
 1024|  8.21k|    return MixingHashState(
 1025|  8.21k|        CombineContiguousImpl(hash_state.state_, first, size,
 1026|  8.21k|                              std::integral_constant<int, sizeof(size_t)>{}));
 1027|  8.21k|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashStateC2Ev:
 1052|  2.95k|  MixingHashState() : state_(Seed()) {}
_ZN4absl12lts_2024011613hash_internal15MixingHashStateC2Em:
 1085|  8.21k|  explicit MixingHashState(uint64_t state) : state_(state) {}
_ZN4absl12lts_2024011613hash_internal15MixingHashState9Read9To16EPKhm:
 1114|    675|                                                 size_t len) {
 1115|    675|    uint64_t low_mem = absl::base_internal::UnalignedLoad64(p);
 1116|    675|    uint64_t high_mem = absl::base_internal::UnalignedLoad64(p + len - 8);
 1117|    675|#ifdef ABSL_IS_LITTLE_ENDIAN
 1118|    675|    uint64_t most_significant = high_mem;
 1119|    675|    uint64_t least_significant = low_mem;
 1120|       |#else
 1121|       |    uint64_t most_significant = low_mem;
 1122|       |    uint64_t least_significant = high_mem;
 1123|       |#endif
 1124|    675|    return {least_significant, most_significant};
 1125|    675|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState8Read4To8EPKhm:
 1128|  6.00k|  static uint64_t Read4To8(const unsigned char* p, size_t len) {
 1129|  6.00k|    uint32_t low_mem = absl::base_internal::UnalignedLoad32(p);
 1130|  6.00k|    uint32_t high_mem = absl::base_internal::UnalignedLoad32(p + len - 4);
 1131|  6.00k|#ifdef ABSL_IS_LITTLE_ENDIAN
 1132|  6.00k|    uint32_t most_significant = high_mem;
 1133|  6.00k|    uint32_t least_significant = low_mem;
 1134|       |#else
 1135|       |    uint32_t most_significant = low_mem;
 1136|       |    uint32_t least_significant = high_mem;
 1137|       |#endif
 1138|  6.00k|    return (static_cast<uint64_t>(most_significant) << (len - 4) * 8) |
 1139|  6.00k|           least_significant;
 1140|  6.00k|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState8Read1To3EPKhm:
 1143|     27|  static uint32_t Read1To3(const unsigned char* p, size_t len) {
 1144|       |    // The trick used by this implementation is to avoid branches if possible.
 1145|     27|    unsigned char mem0 = p[0];
 1146|     27|    unsigned char mem1 = p[len / 2];
 1147|     27|    unsigned char mem2 = p[len - 1];
 1148|     27|#ifdef ABSL_IS_LITTLE_ENDIAN
 1149|     27|    unsigned char significant2 = mem2;
 1150|     27|    unsigned char significant1 = mem1;
 1151|     27|    unsigned char significant0 = mem0;
 1152|       |#else
 1153|       |    unsigned char significant2 = mem0;
 1154|       |    unsigned char significant1 = len == 2 ? mem0 : mem1;
 1155|       |    unsigned char significant0 = mem2;
 1156|       |#endif
 1157|     27|    return static_cast<uint32_t>(significant0 |                     //
 1158|     27|                                 (significant1 << (len / 2 * 8)) |  //
 1159|     27|                                 (significant2 << ((len - 1) * 8)));
 1160|     27|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState3MixEmm:
 1162|  7.54k|  ABSL_ATTRIBUTE_ALWAYS_INLINE static uint64_t Mix(uint64_t state, uint64_t v) {
 1163|       |    // Though the 128-bit product on AArch64 needs two instructions, it is
 1164|       |    // still a good balance between speed and hash quality.
 1165|  7.54k|    using MultType =
 1166|  7.54k|        absl::conditional_t<sizeof(size_t) == 4, uint64_t, uint128>;
 1167|       |    // We do the addition in 64-bit space to make sure the 128-bit
 1168|       |    // multiplication is fast. If we were to do it as MultType the compiler has
 1169|       |    // to assume that the high word is non-zero and needs to perform 2
 1170|       |    // multiplications instead of one.
 1171|  7.54k|    MultType m = state + v;
 1172|  7.54k|    m *= kMul;
 1173|  7.54k|    return static_cast<uint64_t>(m ^ (m >> (sizeof(m) * 8 / 2)));
 1174|  7.54k|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState6Hash64EPKhm:
 1181|  1.51k|                                                      size_t len) {
 1182|  1.51k|#ifdef ABSL_HAVE_INTRINSIC_INT128
 1183|  1.51k|    return LowLevelHashImpl(data, len);
 1184|       |#else
 1185|       |    return hash_internal::CityHash64(reinterpret_cast<const char*>(data), len);
 1186|       |#endif
 1187|  1.51k|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState4SeedEv:
 1205|  4.46k|  ABSL_ATTRIBUTE_ALWAYS_INLINE static uint64_t Seed() {
 1206|  4.46k|#if (!defined(__clang__) || __clang_major__ > 11) && \
 1207|  4.46k|    (!defined(__apple_build_version__) ||            \
 1208|  4.46k|     __apple_build_version__ >= 19558921)  // Xcode 12
 1209|  4.46k|    return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(&kSeed));
 1210|       |#else
 1211|       |    // Workaround the absence of
 1212|       |    // https://github.com/llvm/llvm-project/commit/bc15bf66dcca76cc06fe71fca35b74dc4d521021.
 1213|       |    return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(kSeed));
 1214|       |#endif
 1215|  4.46k|  }
_ZN4absl12lts_2024011613hash_internal18PiecewiseChunkSizeEv:
   82|  1.51k|constexpr size_t PiecewiseChunkSize() { return 1024; }
_ZN4absl12lts_2024011613hash_internal15MixingHashState21CombineContiguousImplEmPKhmNSt3__117integral_constantIiLi8EEE:
 1247|  8.21k|    std::integral_constant<int, 8> /* sizeof_size_t */) {
 1248|       |  // For large values we use LowLevelHash or CityHash depending on the platform,
 1249|       |  // for small ones we just use a multiplicative hash.
 1250|  8.21k|  uint64_t v;
 1251|  8.21k|  if (len > 16) {
  ------------------
  |  Branch (1251:7): [True: 1.51k, False: 6.70k]
  ------------------
 1252|  1.51k|    if (ABSL_PREDICT_FALSE(len > PiecewiseChunkSize())) {
  ------------------
  |  |  178|  1.51k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 1.51k]
  |  |  |  Branch (178:49): [Folded, False: 1.51k]
  |  |  |  Branch (178:58): [True: 0, False: 1.51k]
  |  |  ------------------
  ------------------
 1253|      0|      return CombineLargeContiguousImpl64(state, first, len);
 1254|      0|    }
 1255|  1.51k|    v = Hash64(first, len);
 1256|  6.70k|  } else if (len > 8) {
  ------------------
  |  Branch (1256:14): [True: 675, False: 6.03k]
  ------------------
 1257|       |    // This hash function was constructed by the ML-driven algorithm discovery
 1258|       |    // using reinforcement learning. We fed the agent lots of inputs from
 1259|       |    // microbenchmarks, SMHasher, low hamming distance from generated inputs and
 1260|       |    // picked up the one that was good on micro and macrobenchmarks.
 1261|    675|    auto p = Read9To16(first, len);
 1262|    675|    uint64_t lo = p.first;
 1263|    675|    uint64_t hi = p.second;
 1264|       |    // Rotation by 53 was found to be most often useful when discovering these
 1265|       |    // hashing algorithms with ML techniques.
 1266|    675|    lo = absl::rotr(lo, 53);
 1267|    675|    state += kMul;
 1268|    675|    lo += state;
 1269|    675|    state ^= hi;
 1270|    675|    uint128 m = state;
 1271|    675|    m *= lo;
 1272|    675|    return static_cast<uint64_t>(m ^ (m >> 64));
 1273|  6.03k|  } else if (len >= 4) {
  ------------------
  |  Branch (1273:14): [True: 6.00k, False: 27]
  ------------------
 1274|  6.00k|    v = Read4To8(first, len);
 1275|  6.00k|  } else if (len > 0) {
  ------------------
  |  Branch (1275:14): [True: 27, False: 0]
  ------------------
 1276|     27|    v = Read1To3(first, len);
 1277|     27|  } else {
 1278|       |    // Empty ranges have no effect.
 1279|      0|    return state;
 1280|      0|  }
 1281|  7.54k|  return Mix(state, v);
 1282|  8.21k|}
_ZNK4absl12lts_2024011613hash_internal8HashImplINS0_11string_viewEEclERKS3_:
 1299|    632|  size_t operator()(const T& value) const {
 1300|    632|    return MixingHashState::hash(value);
 1301|    632|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState4hashINS0_11string_viewETnNSt3__19enable_ifIXntsr16IntegralFastPathIT_EE5valueEiE4typeELi0EEEmRKS7_:
 1045|    632|  static size_t hash(const T& value) {
 1046|    632|    return static_cast<size_t>(combine(MixingHashState{}, value).state_);
 1047|    632|  }
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINS0_11string_viewEJEEES3_S3_RKT_DpRKT0_:
 1310|  2.58k|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|  2.58k|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|  2.58k|                        std::move(state), value),
 1313|  2.58k|                    values...);
 1314|  2.58k|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENS0_11string_viewEEENSt3__19enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueES9_E4typeES9_RKT0_:
  937|  2.58k|        H> {
  938|  2.58k|      return AbslHashValue(std::move(state), value);
  939|  2.58k|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEEET_S4_NS0_11string_viewE:
  557|  2.58k|H AbslHashValue(H hash_state, absl::string_view str) {
  558|  2.58k|  return H::combine(
  559|  2.58k|      H::combine_contiguous(std::move(hash_state), str.data(), str.size()),
  560|  2.58k|      str.size());
  561|  2.58k|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE18combine_contiguousIcEES3_S3_PKT_m:
 1319|  2.58k|H HashStateBase<H>::combine_contiguous(H state, const T* data, size_t size) {
 1320|  2.58k|  return hash_internal::hash_range_or_bytes(std::move(state), data, size);
 1321|  2.58k|}
_ZN4absl12lts_2024011613hash_internal19hash_range_or_bytesINS1_15MixingHashStateEcEENSt3__19enable_ifIXsr23is_uniquely_representedIT0_EE5valueET_E4typeES7_PKS6_m:
  885|  2.58k|hash_range_or_bytes(H hash_state, const T* data, size_t size) {
  886|  2.58k|  const auto* bytes = reinterpret_cast<const unsigned char*>(data);
  887|  2.58k|  return H::combine_contiguous(std::move(hash_state), bytes, sizeof(T) * size);
  888|  2.58k|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineImJEEES3_S3_RKT_DpRKT0_:
 1310|  3.97k|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|  3.97k|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|  3.97k|                        std::move(state), value),
 1313|  3.97k|                    values...);
 1314|  3.97k|}
_ZN4absl12lts_2024011613hash_internal10HashSelect24UniquelyRepresentedProbe6InvokeINS1_15MixingHashStateEmEENSt3__19enable_ifIXsr23is_uniquely_representedIT0_EE5valueET_E4typeES9_RKS8_:
  927|  5.35k|        -> absl::enable_if_t<is_uniquely_represented<T>::value, H> {
  928|  5.35k|      return hash_internal::hash_bytes(std::move(state), value);
  929|  5.35k|    }
_ZN4absl12lts_2024011613hash_internal10hash_bytesINS1_15MixingHashStateEmEET_S4_RKT0_:
  340|  5.35k|H hash_bytes(H hash_state, const T& value) {
  341|  5.35k|  const unsigned char* start = reinterpret_cast<const unsigned char*>(&value);
  342|  5.35k|  return H::combine_contiguous(std::move(hash_state), start, sizeof(value));
  343|  5.35k|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineES3_:
  234|  10.4k|  static H combine(H state) { return state; }
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineImJmEEES3_S3_RKT_DpRKT0_:
 1310|  1.38k|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|  1.38k|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|  1.38k|                        std::move(state), value),
 1313|  1.38k|                    values...);
 1314|  1.38k|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateEPKvEENSt3__19enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESA_E4typeESA_RKT0_:
  937|  1.28k|        H> {
  938|  1.28k|      return AbslHashValue(std::move(state), value);
  939|  1.28k|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEPKvEENSt3__19enable_ifIXsr3std10is_pointerIT0_EE5valueET_E4typeES9_S8_:
  438|  1.28k|                                                             T ptr) {
  439|  1.28k|  auto v = reinterpret_cast<uintptr_t>(ptr);
  440|       |  // Due to alignment, pointers tend to have low bits as zero, and the next few
  441|       |  // bits follow a pattern since they are also multiples of some base value.
  442|       |  // Mixing the pointer twice helps prevent stuck low bits for certain alignment
  443|       |  // values.
  444|  1.28k|  return H::combine(std::move(hash_state), v, v);
  445|  1.28k|}
_ZNK4absl12lts_2024011613hash_internal8HashImplINSt3__15tupleIJRKPKN6google8protobuf11MessageLiteERKiEEEEclERKSE_:
 1299|      9|  size_t operator()(const T& value) const {
 1300|      9|    return MixingHashState::hash(value);
 1301|      9|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState4hashINSt3__15tupleIJRKPKN6google8protobuf11MessageLiteERKiEEETnNS4_9enable_ifIXntsr16IntegralFastPathIT_EE5valueEiE4typeELi0EEEmRKSH_:
 1045|      9|  static size_t hash(const T& value) {
 1046|      9|    return static_cast<size_t>(combine(MixingHashState{}, value).state_);
 1047|      9|  }
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINSt3__15tupleIJRKPKN6google8protobuf11MessageLiteERKiEEEJEEES3_S3_RKT_DpRKT0_:
 1310|      9|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|      9|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|      9|                        std::move(state), value),
 1313|      9|                    values...);
 1314|      9|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENSt3__15tupleIJRKPKN6google8protobuf11MessageLiteERKiEEEEENS6_9enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESJ_E4typeESJ_RKT0_:
  937|      9|        H> {
  938|      9|      return AbslHashValue(std::move(state), value);
  939|      9|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEJRKPKN6google8protobuf11MessageLiteERKiEEENSt3__19enable_ifIXsr4absl11conjunctionIDpNS1_11is_hashableIT0_EEEE5valueET_E4typeESJ_RKNSD_5tupleIJDpSG_EEE:
  516|      9|AbslHashValue(H hash_state, const std::tuple<Ts...>& t) {
  517|      9|  return hash_internal::hash_tuple(std::move(hash_state), t,
  518|      9|                                   absl::make_index_sequence<sizeof...(Ts)>());
  519|      9|}
_ZN4absl12lts_2024011613hash_internal10hash_tupleINS1_15MixingHashStateENSt3__15tupleIJRKPKN6google8protobuf11MessageLiteERKiEEEJLm0ELm1EEEET_SG_RKT0_NS4_16integer_sequenceImJXspT1_EEEE:
  503|      9|H hash_tuple(H hash_state, const Tuple& t, absl::index_sequence<Is...>) {
  504|      9|  return H::combine(std::move(hash_state), std::get<Is>(t)...);
  505|      9|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineIPKN6google8protobuf11MessageLiteEJiEEES3_S3_RKT_DpRKT0_:
 1310|      9|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|      9|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|      9|                        std::move(state), value),
 1313|      9|                    values...);
 1314|      9|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineIiJEEES3_S3_RKT_DpRKT0_:
 1310|    272|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|    272|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|    272|                        std::move(state), value),
 1313|    272|                    values...);
 1314|    272|}
_ZN4absl12lts_2024011613hash_internal10HashSelect24UniquelyRepresentedProbe6InvokeINS1_15MixingHashStateEiEENSt3__19enable_ifIXsr23is_uniquely_representedIT0_EE5valueET_E4typeES9_RKS8_:
  927|    272|        -> absl::enable_if_t<is_uniquely_represented<T>::value, H> {
  928|    272|      return hash_internal::hash_bytes(std::move(state), value);
  929|    272|    }
_ZN4absl12lts_2024011613hash_internal10hash_bytesINS1_15MixingHashStateEiEET_S4_RKT0_:
  340|    272|H hash_bytes(H hash_state, const T& value) {
  341|    272|  const unsigned char* start = reinterpret_cast<const unsigned char*>(&value);
  342|    272|  return H::combine_contiguous(std::move(hash_state), start, sizeof(value));
  343|    272|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateEPKN6google8protobuf11MessageLiteEEENSt3__19enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESD_E4typeESD_RKT0_:
  937|      9|        H> {
  938|      9|      return AbslHashValue(std::move(state), value);
  939|      9|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEPKN6google8protobuf11MessageLiteEEENSt3__19enable_ifIXsr3std10is_pointerIT0_EE5valueET_E4typeESC_SB_:
  438|      9|                                                             T ptr) {
  439|      9|  auto v = reinterpret_cast<uintptr_t>(ptr);
  440|       |  // Due to alignment, pointers tend to have low bits as zero, and the next few
  441|       |  // bits follow a pattern since they are also multiples of some base value.
  442|       |  // Mixing the pointer twice helps prevent stuck low bits for certain alignment
  443|       |  // values.
  444|      9|  return H::combine(std::move(hash_state), v, v);
  445|      9|}
_ZNK4absl12lts_2024011613hash_internal8HashImplIPKN6google8protobuf14FileDescriptorEEclERKS7_:
 1299|     92|  size_t operator()(const T& value) const {
 1300|     92|    return MixingHashState::hash(value);
 1301|     92|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState4hashIPKN6google8protobuf14FileDescriptorETnNSt3__19enable_ifIXntsr16IntegralFastPathIT_EE5valueEiE4typeELi0EEEmRKSB_:
 1045|     92|  static size_t hash(const T& value) {
 1046|     92|    return static_cast<size_t>(combine(MixingHashState{}, value).state_);
 1047|     92|  }
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineIPKN6google8protobuf14FileDescriptorEJEEES3_S3_RKT_DpRKT0_:
 1310|     92|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|     92|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|     92|                        std::move(state), value),
 1313|     92|                    values...);
 1314|     92|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateEPKN6google8protobuf14FileDescriptorEEENSt3__19enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESD_E4typeESD_RKT0_:
  937|     92|        H> {
  938|     92|      return AbslHashValue(std::move(state), value);
  939|     92|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEPKN6google8protobuf14FileDescriptorEEENSt3__19enable_ifIXsr3std10is_pointerIT0_EE5valueET_E4typeESC_SB_:
  438|     92|                                                             T ptr) {
  439|     92|  auto v = reinterpret_cast<uintptr_t>(ptr);
  440|       |  // Due to alignment, pointers tend to have low bits as zero, and the next few
  441|       |  // bits follow a pattern since they are also multiples of some base value.
  442|       |  // Mixing the pointer twice helps prevent stuck low bits for certain alignment
  443|       |  // values.
  444|     92|  return H::combine(std::move(hash_state), v, v);
  445|     92|}
_ZNK4absl12lts_2024011613hash_internal8HashImplINSt3__15tupleIJRKNS0_11string_viewEEEEEclERKS8_:
 1299|    934|  size_t operator()(const T& value) const {
 1300|    934|    return MixingHashState::hash(value);
 1301|    934|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState4hashINSt3__15tupleIJRKNS0_11string_viewEEEETnNS4_9enable_ifIXntsr16IntegralFastPathIT_EE5valueEiE4typeELi0EEEmRKSB_:
 1045|    934|  static size_t hash(const T& value) {
 1046|    934|    return static_cast<size_t>(combine(MixingHashState{}, value).state_);
 1047|    934|  }
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINSt3__15tupleIJRKNS0_11string_viewEEEEJEEES3_S3_RKT_DpRKT0_:
 1310|    934|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|    934|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|    934|                        std::move(state), value),
 1313|    934|                    values...);
 1314|    934|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENSt3__15tupleIJRKNS0_11string_viewEEEEEENS6_9enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESD_E4typeESD_RKT0_:
  937|    934|        H> {
  938|    934|      return AbslHashValue(std::move(state), value);
  939|    934|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEJRKNS0_11string_viewEEEENSt3__19enable_ifIXsr4absl11conjunctionIDpNS1_11is_hashableIT0_EEEE5valueET_E4typeESD_RKNS7_5tupleIJDpSA_EEE:
  516|    934|AbslHashValue(H hash_state, const std::tuple<Ts...>& t) {
  517|    934|  return hash_internal::hash_tuple(std::move(hash_state), t,
  518|    934|                                   absl::make_index_sequence<sizeof...(Ts)>());
  519|    934|}
_ZN4absl12lts_2024011613hash_internal10hash_tupleINS1_15MixingHashStateENSt3__15tupleIJRKNS0_11string_viewEEEEJLm0EEEET_SA_RKT0_NS4_16integer_sequenceImJXspT1_EEEE:
  503|    934|H hash_tuple(H hash_state, const Tuple& t, absl::index_sequence<Is...>) {
  504|    934|  return H::combine(std::move(hash_state), std::get<Is>(t)...);
  505|    934|}
_ZNK4absl12lts_2024011613hash_internal8HashImplINSt3__15tupleIJRKNS3_4pairIPKviEEEEEEclERKSB_:
 1299|    263|  size_t operator()(const T& value) const {
 1300|    263|    return MixingHashState::hash(value);
 1301|    263|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState4hashINSt3__15tupleIJRKNS4_4pairIPKviEEEEETnNS4_9enable_ifIXntsr16IntegralFastPathIT_EE5valueEiE4typeELi0EEEmRKSE_:
 1045|    263|  static size_t hash(const T& value) {
 1046|    263|    return static_cast<size_t>(combine(MixingHashState{}, value).state_);
 1047|    263|  }
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINSt3__15tupleIJRKNS6_4pairIPKviEEEEEJEEES3_S3_RKT_DpRKT0_:
 1310|    263|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|    263|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|    263|                        std::move(state), value),
 1313|    263|                    values...);
 1314|    263|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENSt3__15tupleIJRKNS6_4pairIPKviEEEEEEENS6_9enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESG_E4typeESG_RKT0_:
  937|    263|        H> {
  938|    263|      return AbslHashValue(std::move(state), value);
  939|    263|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEJRKNSt3__14pairIPKviEEEEENS4_9enable_ifIXsr4absl11conjunctionIDpNS1_11is_hashableIT0_EEEE5valueET_E4typeESG_RKNS4_5tupleIJDpSD_EEE:
  516|    263|AbslHashValue(H hash_state, const std::tuple<Ts...>& t) {
  517|    263|  return hash_internal::hash_tuple(std::move(hash_state), t,
  518|    263|                                   absl::make_index_sequence<sizeof...(Ts)>());
  519|    263|}
_ZN4absl12lts_2024011613hash_internal10hash_tupleINS1_15MixingHashStateENSt3__15tupleIJRKNS4_4pairIPKviEEEEEJLm0EEEET_SD_RKT0_NS4_16integer_sequenceImJXspT1_EEEE:
  503|    263|H hash_tuple(H hash_state, const Tuple& t, absl::index_sequence<Is...>) {
  504|    263|  return H::combine(std::move(hash_state), std::get<Is>(t)...);
  505|    263|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINSt3__14pairIPKviEEJEEES3_S3_RKT_DpRKT0_:
 1310|    263|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|    263|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|    263|                        std::move(state), value),
 1313|    263|                    values...);
 1314|    263|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENSt3__14pairIPKviEEEENS6_9enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESC_E4typeESC_RKT0_:
  937|    263|        H> {
  938|    263|      return AbslHashValue(std::move(state), value);
  939|    263|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEPKviEENSt3__19enable_ifIXaasr11is_hashableIT0_EE5valuesr11is_hashableIT1_EE5valueET_E4typeESA_RKNS6_4pairIS8_S9_EE:
  494|    263|AbslHashValue(H hash_state, const std::pair<T1, T2>& p) {
  495|    263|  return H::combine(std::move(hash_state), p.first, p.second);
  496|    263|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineIPKvJiEEES3_S3_RKT_DpRKT0_:
 1310|    263|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|    263|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|    263|                        std::move(state), value),
 1313|    263|                    values...);
 1314|    263|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINSt3__14pairIPKvNS0_11string_viewEEEJEEES3_S3_RKT_DpRKT0_:
 1310|  1.01k|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|  1.01k|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|  1.01k|                        std::move(state), value),
 1313|  1.01k|                    values...);
 1314|  1.01k|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENSt3__14pairIPKvNS0_11string_viewEEEEENS6_9enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESD_E4typeESD_RKT0_:
  937|  1.01k|        H> {
  938|  1.01k|      return AbslHashValue(std::move(state), value);
  939|  1.01k|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEPKvNS0_11string_viewEEENSt3__19enable_ifIXaasr11is_hashableIT0_EE5valuesr11is_hashableIT1_EE5valueET_E4typeESB_RKNS7_4pairIS9_SA_EE:
  494|  1.01k|AbslHashValue(H hash_state, const std::pair<T1, T2>& p) {
  495|  1.01k|  return H::combine(std::move(hash_state), p.first, p.second);
  496|  1.01k|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineIPKvJNS0_11string_viewEEEES3_S3_RKT_DpRKT0_:
 1310|  1.01k|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|  1.01k|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|  1.01k|                        std::move(state), value),
 1313|  1.01k|                    values...);
 1314|  1.01k|}
_ZNK4absl12lts_2024011613hash_internal8HashImplINSt3__15tupleIJRKNS3_4pairIPKvNS0_11string_viewEEEEEEEclERKSC_:
 1299|  1.01k|  size_t operator()(const T& value) const {
 1300|  1.01k|    return MixingHashState::hash(value);
 1301|  1.01k|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState4hashINSt3__15tupleIJRKNS4_4pairIPKvNS0_11string_viewEEEEEETnNS4_9enable_ifIXntsr16IntegralFastPathIT_EE5valueEiE4typeELi0EEEmRKSF_:
 1045|  1.01k|  static size_t hash(const T& value) {
 1046|  1.01k|    return static_cast<size_t>(combine(MixingHashState{}, value).state_);
 1047|  1.01k|  }
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINSt3__15tupleIJRKNS6_4pairIPKvNS0_11string_viewEEEEEEJEEES3_S3_RKT_DpRKT0_:
 1310|  1.01k|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|  1.01k|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|  1.01k|                        std::move(state), value),
 1313|  1.01k|                    values...);
 1314|  1.01k|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENSt3__15tupleIJRKNS6_4pairIPKvNS0_11string_viewEEEEEEEENS6_9enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESH_E4typeESH_RKT0_:
  937|  1.01k|        H> {
  938|  1.01k|      return AbslHashValue(std::move(state), value);
  939|  1.01k|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEJRKNSt3__14pairIPKvNS0_11string_viewEEEEEENS4_9enable_ifIXsr4absl11conjunctionIDpNS1_11is_hashableIT0_EEEE5valueET_E4typeESH_RKNS4_5tupleIJDpSE_EEE:
  516|  1.01k|AbslHashValue(H hash_state, const std::tuple<Ts...>& t) {
  517|  1.01k|  return hash_internal::hash_tuple(std::move(hash_state), t,
  518|  1.01k|                                   absl::make_index_sequence<sizeof...(Ts)>());
  519|  1.01k|}
_ZN4absl12lts_2024011613hash_internal10hash_tupleINS1_15MixingHashStateENSt3__15tupleIJRKNS4_4pairIPKvNS0_11string_viewEEEEEEJLm0EEEET_SE_RKT0_NS4_16integer_sequenceImJXspT1_EEEE:
  503|  1.01k|H hash_tuple(H hash_state, const Tuple& t, absl::index_sequence<Is...>) {
  504|  1.01k|  return H::combine(std::move(hash_state), std::get<Is>(t)...);
  505|  1.01k|}
_ZNK4absl12lts_2024011613hash_internal8HashImplINSt3__15tupleIJRKNS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEclERKSD_:
 1299|      4|  size_t operator()(const T& value) const {
 1300|      4|    return MixingHashState::hash(value);
 1301|      4|  }
_ZN4absl12lts_2024011613hash_internal15MixingHashState4hashINSt3__15tupleIJRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEETnNS4_9enable_ifIXntsr16IntegralFastPathIT_EE5valueEiE4typeELi0EEEmRKSG_:
 1045|      4|  static size_t hash(const T& value) {
 1046|      4|    return static_cast<size_t>(combine(MixingHashState{}, value).state_);
 1047|      4|  }
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINSt3__15tupleIJRKNS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEEEJEEES3_S3_RKT_DpRKT0_:
 1310|      4|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|      4|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|      4|                        std::move(state), value),
 1313|      4|                    values...);
 1314|      4|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENSt3__15tupleIJRKNS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEEEEENS6_9enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESI_E4typeESI_RKT0_:
  937|      4|        H> {
  938|      4|      return AbslHashValue(std::move(state), value);
  939|      4|    }
_ZN4absl12lts_2024011613hash_internal13AbslHashValueINS1_15MixingHashStateEJRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEENS4_9enable_ifIXsr4absl11conjunctionIDpNS1_11is_hashableIT0_EEEE5valueET_E4typeESI_RKNS4_5tupleIJDpSF_EEE:
  516|      4|AbslHashValue(H hash_state, const std::tuple<Ts...>& t) {
  517|      4|  return hash_internal::hash_tuple(std::move(hash_state), t,
  518|      4|                                   absl::make_index_sequence<sizeof...(Ts)>());
  519|      4|}
_ZN4absl12lts_2024011613hash_internal10hash_tupleINS1_15MixingHashStateENSt3__15tupleIJRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEJLm0EEEET_SF_RKT0_NS4_16integer_sequenceImJXspT1_EEEE:
  503|      4|H hash_tuple(H hash_state, const Tuple& t, absl::index_sequence<Is...>) {
  504|      4|  return H::combine(std::move(hash_state), std::get<Is>(t)...);
  505|      4|}
_ZN4absl12lts_2024011613hash_internal13HashStateBaseINS1_15MixingHashStateEE7combineINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEJEEES3_S3_RKT_DpRKT0_:
 1310|      4|H HashStateBase<H>::combine(H state, const T& value, const Ts&... values) {
 1311|      4|  return H::combine(hash_internal::HashSelect::template Apply<T>::Invoke(
 1312|      4|                        std::move(state), value),
 1313|      4|                    values...);
 1314|      4|}
_ZN4absl12lts_2024011613hash_internal10HashSelect14HashValueProbe6InvokeINS1_15MixingHashStateENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEENS6_9enable_ifIXsr3std7is_sameIT_DTcl13AbslHashValueclsr3stdE4movefp_Efp0_EEEE5valueESE_E4typeESE_RKT0_:
  937|      4|        H> {
  938|      4|      return AbslHashValue(std::move(state), value);
  939|      4|    }

_ZN4absl12lts_2024011613hash_internal12LowLevelHashEPKvmmPKm:
   32|  1.51k|                      const uint64_t salt[5]) {
   33|       |  // Prefetch the cacheline that data resides in.
   34|  1.51k|  PrefetchToLocalCache(data);
   35|  1.51k|  const uint8_t* ptr = static_cast<const uint8_t*>(data);
   36|  1.51k|  uint64_t starting_length = static_cast<uint64_t>(len);
   37|  1.51k|  uint64_t current_state = seed ^ salt[0];
   38|       |
   39|  1.51k|  if (len > 64) {
  ------------------
  |  Branch (39:7): [True: 8, False: 1.50k]
  ------------------
   40|       |    // If we have more than 64 bytes, we're going to handle chunks of 64
   41|       |    // bytes at a time. We're going to build up two separate hash states
   42|       |    // which we will then hash together.
   43|      8|    uint64_t duplicated_state = current_state;
   44|       |
   45|      8|    do {
   46|       |      // Always prefetch the next cacheline.
   47|      8|      PrefetchToLocalCache(ptr + ABSL_CACHELINE_SIZE);
  ------------------
  |  |   77|      8|#define ABSL_CACHELINE_SIZE 64
  ------------------
   48|       |
   49|      8|      uint64_t a = absl::base_internal::UnalignedLoad64(ptr);
   50|      8|      uint64_t b = absl::base_internal::UnalignedLoad64(ptr + 8);
   51|      8|      uint64_t c = absl::base_internal::UnalignedLoad64(ptr + 16);
   52|      8|      uint64_t d = absl::base_internal::UnalignedLoad64(ptr + 24);
   53|      8|      uint64_t e = absl::base_internal::UnalignedLoad64(ptr + 32);
   54|      8|      uint64_t f = absl::base_internal::UnalignedLoad64(ptr + 40);
   55|      8|      uint64_t g = absl::base_internal::UnalignedLoad64(ptr + 48);
   56|      8|      uint64_t h = absl::base_internal::UnalignedLoad64(ptr + 56);
   57|       |
   58|      8|      uint64_t cs0 = Mix(a ^ salt[1], b ^ current_state);
   59|      8|      uint64_t cs1 = Mix(c ^ salt[2], d ^ current_state);
   60|      8|      current_state = (cs0 ^ cs1);
   61|       |
   62|      8|      uint64_t ds0 = Mix(e ^ salt[3], f ^ duplicated_state);
   63|      8|      uint64_t ds1 = Mix(g ^ salt[4], h ^ duplicated_state);
   64|      8|      duplicated_state = (ds0 ^ ds1);
   65|       |
   66|      8|      ptr += 64;
   67|      8|      len -= 64;
   68|      8|    } while (len > 64);
  ------------------
  |  Branch (68:14): [True: 0, False: 8]
  ------------------
   69|       |
   70|      8|    current_state = current_state ^ duplicated_state;
   71|      8|  }
   72|       |
   73|       |  // We now have a data `ptr` with at most 64 bytes and the current state
   74|       |  // of the hashing state machine stored in current_state.
   75|  4.04k|  while (len > 16) {
  ------------------
  |  Branch (75:10): [True: 2.53k, False: 1.51k]
  ------------------
   76|  2.53k|    uint64_t a = absl::base_internal::UnalignedLoad64(ptr);
   77|  2.53k|    uint64_t b = absl::base_internal::UnalignedLoad64(ptr + 8);
   78|       |
   79|  2.53k|    current_state = Mix(a ^ salt[1], b ^ current_state);
   80|       |
   81|  2.53k|    ptr += 16;
   82|  2.53k|    len -= 16;
   83|  2.53k|  }
   84|       |
   85|       |  // We now have a data `ptr` with at most 16 bytes.
   86|  1.51k|  uint64_t a = 0;
   87|  1.51k|  uint64_t b = 0;
   88|  1.51k|  if (len > 8) {
  ------------------
  |  Branch (88:7): [True: 575, False: 935]
  ------------------
   89|       |    // When we have at least 9 and at most 16 bytes, set A to the first 64
   90|       |    // bits of the input and B to the last 64 bits of the input. Yes, they will
   91|       |    // overlap in the middle if we are working with less than the full 16
   92|       |    // bytes.
   93|    575|    a = absl::base_internal::UnalignedLoad64(ptr);
   94|    575|    b = absl::base_internal::UnalignedLoad64(ptr + len - 8);
   95|    935|  } else if (len > 3) {
  ------------------
  |  Branch (95:14): [True: 575, False: 360]
  ------------------
   96|       |    // If we have at least 4 and at most 8 bytes, set A to the first 32
   97|       |    // bits and B to the last 32 bits.
   98|    575|    a = absl::base_internal::UnalignedLoad32(ptr);
   99|    575|    b = absl::base_internal::UnalignedLoad32(ptr + len - 4);
  100|    575|  } else if (len > 0) {
  ------------------
  |  Branch (100:14): [True: 360, False: 0]
  ------------------
  101|       |    // If we have at least 1 and at most 3 bytes, read all of the provided
  102|       |    // bits into A, with some adjustments.
  103|    360|    a = static_cast<uint64_t>((ptr[0] << 16) | (ptr[len >> 1] << 8) |
  104|    360|                              ptr[len - 1]);
  105|    360|    b = 0;
  106|    360|  } else {
  107|      0|    a = 0;
  108|      0|    b = 0;
  109|      0|  }
  110|       |
  111|  1.51k|  uint64_t w = Mix(a ^ salt[1], b ^ current_state);
  112|  1.51k|  uint64_t z = salt[1] ^ starting_length;
  113|  1.51k|  return Mix(w, z);
  114|  1.51k|}
low_level_hash.cc:_ZN4absl12lts_2024011613hash_internalL3MixEmm:
   25|  5.58k|static uint64_t Mix(uint64_t v0, uint64_t v1) {
   26|  5.58k|  absl::uint128 p = v0;
   27|  5.58k|  p *= v1;
   28|  5.58k|  return absl::Uint128Low64(p) ^ absl::Uint128High64(p);
   29|  5.58k|}

_ZN4absl12lts_2024011612log_internal12Check_LEImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|    829|                                             const char* exprtext) {     \
  349|    829|    using U1 = CheckOpStreamType<T1>;                                    \
  350|    829|    using U2 = CheckOpStreamType<T2>;                                    \
  351|    829|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|    829|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 829, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 829]
  |  |  |  Branch (179:57): [True: 829, False: 0]
  |  |  ------------------
  ------------------
  352|    829|               ? nullptr                                                 \
  353|    829|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|    829|                                                        exprtext);       \
  355|    829|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_LEImplEiiPKc:
  357|    829|                                             const char* exprtext) {     \
  358|    829|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|    829|  }
_ZN4absl12lts_2024011612log_internal12Check_LEImplImmEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|    588|                                             const char* exprtext) {     \
  349|    588|    using U1 = CheckOpStreamType<T1>;                                    \
  350|    588|    using U2 = CheckOpStreamType<T2>;                                    \
  351|    588|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|    588|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 588, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 588]
  |  |  |  Branch (179:57): [True: 588, False: 0]
  |  |  ------------------
  ------------------
  352|    588|               ? nullptr                                                 \
  353|    588|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|    588|                                                        exprtext);       \
  355|    588|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_EQImplIPKN6google8protobuf8internal9ClassDataES8_EEPNSt3__112basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEERKT_RKT0_PKc:
  348|    653|                                             const char* exprtext) {     \
  349|    653|    using U1 = CheckOpStreamType<T1>;                                    \
  350|    653|    using U2 = CheckOpStreamType<T2>;                                    \
  351|    653|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|    653|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 653, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 653]
  |  |  |  Branch (179:57): [True: 653, False: 0]
  |  |  ------------------
  ------------------
  352|    653|               ? nullptr                                                 \
  353|    653|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|    653|                                                        exprtext);       \
  355|    653|  }                                                                      \
_ZN4absl12lts_2024011612log_internal21GetReferenceableValueIPKN6google8protobuf8internal9ClassDataEEERKT_SB_:
  386|  1.30k|inline constexpr const T& GetReferenceableValue(const T& t) {
  387|  1.30k|  return t;
  388|  1.30k|}
_ZN4absl12lts_2024011612log_internal12Check_EQImplIPKN6google8protobuf15FieldDescriptorES7_EEPNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEERKT_RKT0_PKc:
  348|      3|                                             const char* exprtext) {     \
  349|      3|    using U1 = CheckOpStreamType<T1>;                                    \
  350|      3|    using U2 = CheckOpStreamType<T2>;                                    \
  351|      3|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|      3|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 3, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 3]
  |  |  |  Branch (179:57): [True: 3, False: 0]
  |  |  ------------------
  ------------------
  352|      3|               ? nullptr                                                 \
  353|      3|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|      3|                                                        exprtext);       \
  355|      3|  }                                                                      \
_ZN4absl12lts_2024011612log_internal21GetReferenceableValueIPKN6google8protobuf15FieldDescriptorEEERKT_SA_:
  386|      6|inline constexpr const T& GetReferenceableValue(const T& t) {
  387|      6|  return t;
  388|      6|}

_ZN4absl12lts_202401169bit_widthImEENSt3__19enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeES4_:
  160|    178|    bit_width(T x) noexcept {
  161|    178|  return std::numeric_limits<T>::digits - countl_zero(x);
  162|    178|}
_ZN4absl12lts_2024011611countr_zeroImEENSt3__19enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeES4_:
  118|    460|    countr_zero(T x) noexcept {
  119|    460|  return numeric_internal::CountTrailingZeroes(x);
  120|    460|}
_ZN4absl12lts_202401164rotrImEENSt3__19enable_ifIXsr3std11is_unsignedIT_EE5valueES4_E4typeES4_i:
   75|    675|    rotr(T x, int s) noexcept {
   76|    675|  return numeric_internal::RotateRight(x, s);
   77|    675|}
_ZN4absl12lts_2024011611countr_zeroItEENSt3__19enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeES4_:
  118|  2.60k|    countr_zero(T x) noexcept {
  119|  2.60k|  return numeric_internal::CountTrailingZeroes(x);
  120|  2.60k|}
_ZN4absl12lts_202401168popcountIjEENSt3__19enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeES4_:
  133|  36.9k|    popcount(T x) noexcept {
  134|  36.9k|  return numeric_internal::Popcount(x);
  135|  36.9k|}

_ZN4absl12lts_202401167uint128mLES1_:
  628|  5.58k|inline uint128& uint128::operator*=(uint128 other) {
  629|  5.58k|  *this = *this * other;
  630|  5.58k|  return *this;
  631|  5.58k|}
_ZN4absl12lts_2024011612Uint128Low64ENS0_7uint128E:
  643|  5.58k|constexpr uint64_t Uint128Low64(uint128 v) { return v.lo_; }
_ZN4absl12lts_2024011613Uint128High64ENS0_7uint128E:
  645|  5.58k|constexpr uint64_t Uint128High64(uint128 v) { return v.hi_; }
_ZNK4absl12lts_202401167uint128cvoEv:
  776|  11.1k|constexpr uint128::operator unsigned __int128() const {
  777|  11.1k|  return (static_cast<unsigned __int128>(hi_) << 64) + lo_;
  778|  11.1k|}
_ZN4absl12lts_20240116mlENS0_7uint128ES1_:
  982|  5.58k|inline uint128 operator*(uint128 lhs, uint128 rhs) {
  983|  5.58k|#if defined(ABSL_HAVE_INTRINSIC_INT128)
  984|       |  // TODO(strel) Remove once alignment issues are resolved and unsigned __int128
  985|       |  // can be used for uint128 storage.
  986|  5.58k|  return static_cast<unsigned __int128>(lhs) *
  987|  5.58k|         static_cast<unsigned __int128>(rhs);
  988|       |#elif defined(_MSC_VER) && defined(_M_X64) && !defined(_M_ARM64EC)
  989|       |  uint64_t carry;
  990|       |  uint64_t low = _umul128(Uint128Low64(lhs), Uint128Low64(rhs), &carry);
  991|       |  return MakeUint128(Uint128Low64(lhs) * Uint128High64(rhs) +
  992|       |                         Uint128High64(lhs) * Uint128Low64(rhs) + carry,
  993|       |                     low);
  994|       |#else   // ABSL_HAVE_INTRINSIC128
  995|       |  uint64_t a32 = Uint128Low64(lhs) >> 32;
  996|       |  uint64_t a00 = Uint128Low64(lhs) & 0xffffffff;
  997|       |  uint64_t b32 = Uint128Low64(rhs) >> 32;
  998|       |  uint64_t b00 = Uint128Low64(rhs) & 0xffffffff;
  999|       |  uint128 result =
 1000|       |      MakeUint128(Uint128High64(lhs) * Uint128Low64(rhs) +
 1001|       |                      Uint128Low64(lhs) * Uint128High64(rhs) + a32 * b32,
 1002|       |                  a00 * b00);
 1003|       |  result += uint128(a32 * b00) << 32;
 1004|       |  result += uint128(a00 * b32) << 32;
 1005|       |  return result;
 1006|       |#endif  // ABSL_HAVE_INTRINSIC128
 1007|  5.58k|}
_ZN4absl12lts_202401167uint128C2Eo:
  674|  5.58k|    : lo_{static_cast<uint64_t>(v & ~uint64_t{0})},
  675|  5.58k|      hi_{static_cast<uint64_t>(v >> 64)} {}
_ZN4absl12lts_202401167uint128C2Em:
  665|  11.1k|constexpr uint128::uint128(unsigned long v) : lo_{v}, hi_{0} {}

_ZN4absl12lts_2024011616numeric_internal10Popcount32Ej:
   96|  36.9k|Popcount32(uint32_t x) noexcept {
   97|  36.9k|#if ABSL_NUMERIC_INTERNAL_HAVE_BUILTIN_OR_GCC(__builtin_popcount)
   98|  36.9k|  static_assert(sizeof(unsigned int) == sizeof(x),
   99|  36.9k|                "__builtin_popcount does not take 32-bit arg");
  100|  36.9k|  return __builtin_popcount(x);
  101|       |#else
  102|       |  x -= ((x >> 1) & 0x55555555);
  103|       |  x = ((x >> 2) & 0x33333333) + (x & 0x33333333);
  104|       |  return static_cast<int>((((x + (x >> 4)) & 0xF0F0F0F) * 0x1010101) >> 24);
  105|       |#endif
  106|  36.9k|}
_ZN4absl12lts_2024011616numeric_internal28CountTrailingZeroesNonzero64Em:
  273|    460|CountTrailingZeroesNonzero64(uint64_t x) {
  274|    460|#if ABSL_NUMERIC_INTERNAL_HAVE_BUILTIN_OR_GCC(__builtin_ctzll)
  275|    460|  static_assert(sizeof(unsigned long long) == sizeof(x),  // NOLINT(runtime/int)
  276|    460|                "__builtin_ctzll does not take 64-bit arg");
  277|    460|  return __builtin_ctzll(x);
  278|       |#elif defined(_MSC_VER) && !defined(__clang__) && \
  279|       |    (defined(_M_X64) || defined(_M_ARM64))
  280|       |  unsigned long result = 0;  // NOLINT(runtime/int)
  281|       |  _BitScanForward64(&result, x);
  282|       |  return result;
  283|       |#elif defined(_MSC_VER) && !defined(__clang__)
  284|       |  unsigned long result = 0;  // NOLINT(runtime/int)
  285|       |  if (static_cast<uint32_t>(x) == 0) {
  286|       |    _BitScanForward(&result, static_cast<unsigned long>(x >> 32));
  287|       |    return result + 32;
  288|       |  }
  289|       |  _BitScanForward(&result, static_cast<unsigned long>(x));
  290|       |  return result;
  291|       |#else
  292|       |  int c = 63;
  293|       |  x &= ~x + 1;
  294|       |  if (x & 0x00000000FFFFFFFF) c -= 32;
  295|       |  if (x & 0x0000FFFF0000FFFF) c -= 16;
  296|       |  if (x & 0x00FF00FF00FF00FF) c -= 8;
  297|       |  if (x & 0x0F0F0F0F0F0F0F0F) c -= 4;
  298|       |  if (x & 0x3333333333333333) c -= 2;
  299|       |  if (x & 0x5555555555555555) c -= 1;
  300|       |  return c;
  301|       |#endif
  302|    460|}
_ZN4absl12lts_2024011616numeric_internal28CountTrailingZeroesNonzero16Et:
  305|  2.60k|CountTrailingZeroesNonzero16(uint16_t x) {
  306|  2.60k|#if ABSL_HAVE_BUILTIN(__builtin_ctzs)
  307|  2.60k|  static_assert(sizeof(unsigned short) == sizeof(x),  // NOLINT(runtime/int)
  308|  2.60k|                "__builtin_ctzs does not take 16-bit arg");
  309|  2.60k|  return __builtin_ctzs(x);
  310|       |#else
  311|       |  return CountTrailingZeroesNonzero32(x);
  312|       |#endif
  313|  2.60k|}
_ZN4absl12lts_2024011616numeric_internal19CountTrailingZeroesImEEiT_:
  317|    460|CountTrailingZeroes(T x) noexcept {
  318|    460|  static_assert(std::is_unsigned<T>::value, "T must be unsigned");
  319|    460|  static_assert(IsPowerOf2(std::numeric_limits<T>::digits),
  320|    460|                "T must have a power-of-2 size");
  321|    460|  static_assert(sizeof(T) <= sizeof(uint64_t), "T too large");
  322|    460|  return x == 0 ? std::numeric_limits<T>::digits
  ------------------
  |  Branch (322:10): [True: 0, False: 460]
  ------------------
  323|    460|                : (sizeof(T) <= sizeof(uint16_t)
  ------------------
  |  Branch (323:20): [Folded, False: 460]
  ------------------
  324|    460|                       ? CountTrailingZeroesNonzero16(static_cast<uint16_t>(x))
  325|    460|                       : (sizeof(T) <= sizeof(uint32_t)
  ------------------
  |  Branch (325:27): [Folded, False: 460]
  ------------------
  326|    460|                              ? CountTrailingZeroesNonzero32(
  327|      0|                                    static_cast<uint32_t>(x))
  328|    460|                              : CountTrailingZeroesNonzero64(x)));
  329|    460|}
_ZN4absl12lts_2024011616numeric_internal11RotateRightImEET_S3_i:
   75|    675|    T x, int s) noexcept {
   76|    675|  static_assert(std::is_unsigned<T>::value, "T must be unsigned");
   77|    675|  static_assert(IsPowerOf2(std::numeric_limits<T>::digits),
   78|    675|                "T must have a power-of-2 size");
   79|       |
   80|    675|  return static_cast<T>(x >> (s & (std::numeric_limits<T>::digits - 1))) |
   81|    675|         static_cast<T>(x << ((-s) & (std::numeric_limits<T>::digits - 1)));
   82|    675|}
_ZN4absl12lts_2024011616numeric_internal19CountTrailingZeroesItEEiT_:
  317|  2.60k|CountTrailingZeroes(T x) noexcept {
  318|  2.60k|  static_assert(std::is_unsigned<T>::value, "T must be unsigned");
  319|  2.60k|  static_assert(IsPowerOf2(std::numeric_limits<T>::digits),
  320|  2.60k|                "T must have a power-of-2 size");
  321|  2.60k|  static_assert(sizeof(T) <= sizeof(uint64_t), "T too large");
  322|  2.60k|  return x == 0 ? std::numeric_limits<T>::digits
  ------------------
  |  Branch (322:10): [True: 0, False: 2.60k]
  ------------------
  323|  2.60k|                : (sizeof(T) <= sizeof(uint16_t)
  ------------------
  |  Branch (323:20): [True: 2.60k, Folded]
  ------------------
  324|  2.60k|                       ? CountTrailingZeroesNonzero16(static_cast<uint16_t>(x))
  325|  2.60k|                       : (sizeof(T) <= sizeof(uint32_t)
  ------------------
  |  Branch (325:27): [True: 0, Folded]
  ------------------
  326|      0|                              ? CountTrailingZeroesNonzero32(
  327|      0|                                    static_cast<uint32_t>(x))
  328|      0|                              : CountTrailingZeroesNonzero64(x)));
  329|  2.60k|}
_ZN4absl12lts_2024011616numeric_internal8PopcountIjEEiT_:
  124|  36.9k|Popcount(T x) noexcept {
  125|  36.9k|  static_assert(std::is_unsigned<T>::value, "T must be unsigned");
  126|  36.9k|  static_assert(IsPowerOf2(std::numeric_limits<T>::digits),
  127|  36.9k|                "T must have a power-of-2 size");
  128|  36.9k|  static_assert(sizeof(x) <= sizeof(uint64_t), "T is too large");
  129|  36.9k|  return sizeof(x) <= sizeof(uint32_t) ? Popcount32(x) : Popcount64(x);
  ------------------
  |  Branch (129:10): [True: 36.9k, Folded]
  ------------------
  130|  36.9k|}

_ZN4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf15FeatureResolverEED2Ev:
  229|      4|  ~StatusOrData() {
  230|      4|    if (ok()) {
  ------------------
  |  Branch (230:9): [True: 4, False: 0]
  ------------------
  231|      4|      status_.~Status();
  232|      4|      data_.~T();
  233|      4|    } else {
  234|      0|      status_.~Status();
  235|      0|    }
  236|      4|  }
_ZNK4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf15FeatureResolverEE2okEv:
  255|      4|  bool ok() const { return status_.ok(); }
_ZNK4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf10FeatureSetEE8EnsureOkEv:
  280|    207|  void EnsureOk() const {
  281|    207|    if (ABSL_PREDICT_FALSE(!ok())) Helper::Crash(status_);
  ------------------
  |  |  178|    207|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 207]
  |  |  |  Branch (178:49): [Folded, False: 207]
  |  |  |  Branch (178:58): [True: 0, False: 207]
  |  |  ------------------
  ------------------
  282|    207|  }
_ZNK4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf10FeatureSetEE2okEv:
  255|    414|  bool ok() const { return status_.ok(); }
_ZN4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf10FeatureSetEED2Ev:
  229|    207|  ~StatusOrData() {
  230|    207|    if (ok()) {
  ------------------
  |  Branch (230:9): [True: 207, False: 0]
  ------------------
  231|    207|      status_.~Status();
  232|    207|      data_.~T();
  233|    207|    } else {
  234|      0|      status_.~Status();
  235|      0|    }
  236|    207|  }
_ZN4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf10FeatureSetEE10MakeStatusIJEEEvDpOT_:
  298|    207|  void MakeStatus(Args&&... args) {
  299|    207|    internal_statusor::PlacementNew<Status>(&status_,
  300|    207|                                            std::forward<Args>(args)...);
  301|    207|  }
_ZN4absl12lts_2024011617internal_statusor12PlacementNewINS0_6StatusEJEEEvPvDpOT0_:
  138|    211|void PlacementNew(absl::Nonnull<void*> p, Args&&... args) {
  139|    211|  new (p) T(std::forward<Args>(args)...);
  140|    211|}
_ZN4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf15FeatureResolverEE10MakeStatusIJEEEvDpOT_:
  298|      4|  void MakeStatus(Args&&... args) {
  299|      4|    internal_statusor::PlacementNew<Status>(&status_,
  300|      4|                                            std::forward<Args>(args)...);
  301|      4|  }
_ZN4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf15FeatureResolverEEC2IJS5_EEENS0_10in_place_tEDpOT_:
  193|      4|      : data_(std::forward<Args>(args)...) {
  194|      4|    MakeStatus();
  195|      4|  }
_ZN4absl12lts_2024011617internal_statusor12StatusOrDataIN6google8protobuf10FeatureSetEEC2IJS5_EEENS0_10in_place_tEDpOT_:
  193|    207|      : data_(std::forward<Args>(args)...) {
  194|    207|    MakeStatus();
  195|    207|  }

_ZN4absl12lts_202401168OkStatusEv:
  924|    223|inline Status OkStatus() { return Status(); }
_ZN4absl12lts_202401166StatusC2Ev:
  772|    434|inline Status::Status() : Status(absl::StatusCode::kOk) {}
_ZN4absl12lts_202401166StatusC2ENS0_10StatusCodeE:
  774|    434|inline Status::Status(absl::StatusCode code) : Status(CodeToInlinedRep(code)) {}
_ZN4absl12lts_202401166Status16CodeToInlinedRepENS0_10StatusCodeE:
  892|  1.29k|constexpr uintptr_t Status::CodeToInlinedRep(absl::StatusCode code) {
  893|  1.29k|  return (static_cast<uintptr_t>(code) << 2) + 1;
  894|  1.29k|}
_ZN4absl12lts_202401166StatusC2Em:
  619|    434|  explicit Status(uintptr_t rep) : rep_(rep) {}
_ZNK4absl12lts_202401166Status2okEv:
  816|    856|inline bool Status::ok() const {
  817|    856|  return rep_ == CodeToInlinedRep(absl::StatusCode::kOk);
  818|    856|}
_ZN4absl12lts_202401166StatusD2Ev:
  814|    434|inline Status::~Status() { Unref(rep_); }
_ZN4absl12lts_202401166Status5UnrefEm:
  920|    434|inline void Status::Unref(uintptr_t rep) {
  921|    434|  if (!IsInlined(rep)) RepToPointer(rep)->Unref();
  ------------------
  |  Branch (921:7): [True: 0, False: 434]
  ------------------
  922|    434|}
_ZN4absl12lts_202401166Status9IsInlinedEm:
  888|    434|constexpr bool Status::IsInlined(uintptr_t rep) { return (rep & 1) != 0; }

_ZNK4absl12lts_202401168StatusOrIN6google8protobuf10FeatureSetEE2okEv:
  494|    207|  ABSL_MUST_USE_RESULT bool ok() const { return this->status_.ok(); }
_ZNO4absl12lts_202401168StatusOrIN6google8protobuf10FeatureSetEEdeEv:
  787|    207|T&& StatusOr<T>::operator*() && {
  788|    207|  this->EnsureOk();
  789|    207|  return std::move(this->data_);
  790|    207|}
_ZNK4absl12lts_202401168StatusOrIN6google8protobuf15FeatureResolverEE2okEv:
  494|      8|  ABSL_MUST_USE_RESULT bool ok() const { return this->status_.ok(); }
_ZNO4absl12lts_202401168StatusOrIN6google8protobuf15FeatureResolverEE5valueEv:
  761|      4|T&& StatusOr<T>::value() && {
  762|      4|  if (!this->ok()) {
  ------------------
  |  Branch (762:7): [True: 0, False: 4]
  ------------------
  763|      0|    internal_statusor::ThrowBadStatusOrAccess(std::move(this->status_));
  764|      0|  }
  765|      4|  return std::move(this->data_);
  766|      4|}
_ZN4absl12lts_202401168StatusOrIN6google8protobuf15FeatureResolverEEC2IS4_TnNSt3__19enable_ifIXsr4absl11conjunctionINS0_11disjunctionIJNS7_7is_sameIS4_NS0_12remove_cvrefIOT_E4typeEEENS0_8negationINS9_IJNSA_IS5_SF_EENSA_INS0_6StatusESF_EENSA_INS0_10in_place_tESF_EENS0_17internal_statusor31IsDirectInitializationAmbiguousIS4_SD_EEEEEEEEEENS7_16is_constructibleIS4_JSD_EEENS7_14is_convertibleISD_S4_EENS9_IJNSA_INSB_ISC_E4typeES4_EENS0_11conjunctionIJNSH_INSV_ISD_SJ_EEEENSH_INSN_31HasConversionOperatorToStatusOrIS4_SD_vEEEEEEEEEEEE5valueEiE4typeELi0EEESD_:
  460|      4|      : StatusOr(absl::in_place, std::forward<U>(u)) {}
_ZN4absl12lts_202401168StatusOrIN6google8protobuf15FeatureResolverEEC2IJS4_EEENS0_10in_place_tEDpOT_:
  723|      4|    : Base(absl::in_place, std::forward<Args>(args)...) {}
_ZN4absl12lts_202401168StatusOrIN6google8protobuf10FeatureSetEEC2IS4_TnNSt3__19enable_ifIXsr4absl11conjunctionINS0_11disjunctionIJNS7_7is_sameIS4_NS0_12remove_cvrefIOT_E4typeEEENS0_8negationINS9_IJNSA_IS5_SF_EENSA_INS0_6StatusESF_EENSA_INS0_10in_place_tESF_EENS0_17internal_statusor31IsDirectInitializationAmbiguousIS4_SD_EEEEEEEEEENS7_16is_constructibleIS4_JSD_EEENS7_14is_convertibleISD_S4_EENS9_IJNSA_INSB_ISC_E4typeES4_EENS0_11conjunctionIJNSH_INSV_ISD_SJ_EEEENSH_INSN_31HasConversionOperatorToStatusOrIS4_SD_vEEEEEEEEEEEE5valueEiE4typeELi0EEESD_:
  460|    207|      : StatusOr(absl::in_place, std::forward<U>(u)) {}
_ZN4absl12lts_202401168StatusOrIN6google8protobuf10FeatureSetEEC2IJS4_EEENS0_10in_place_tEDpOT_:
  723|    207|    : Base(absl::in_place, std::forward<Args>(args)...) {}

_ZN4absl12lts_2024011613ascii_tolowerEh:
  165|    109|inline char ascii_tolower(unsigned char c) {
  166|    109|  return ascii_internal::kToLower[c];
  167|    109|}
_ZN4absl12lts_2024011613ascii_toupperEh:
  183|    143|inline char ascii_toupper(unsigned char c) {
  184|    143|  return ascii_internal::kToUpper[c];
  185|    143|}

_ZN4absl12lts_2024011616strings_internal28STLStringResizeUninitializedINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEvEEvPT_m:
   67|  46.1k|inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
   68|  46.1k|  ResizeUninitializedTraits<string_type>::Resize(s, new_size);
   69|  46.1k|}
_ZN4absl12lts_2024011616strings_internal25ResizeUninitializedTraitsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEvE6ResizeEPS9_m:
   47|  46.1k|  static void Resize(string_type* s, size_t new_size) {
   48|  46.1k|    s->__resize_default_init(new_size);
   49|  46.1k|  }
_ZN4absl12lts_2024011616strings_internal25AppendUninitializedTraitsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEvE6AppendEPS9_m:
   96|    231|  static void Append(string_type* s, size_t n) {
   97|    231|    s->__append_default_init(n);
   98|    231|  }
_ZN4absl12lts_2024011616strings_internal37STLStringResizeUninitializedAmortizedINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEvPT_m:
  106|    226|void STLStringResizeUninitializedAmortized(string_type* s, size_t new_size) {
  107|    226|  const size_t size = s->size();
  108|    226|  if (new_size > size) {
  ------------------
  |  Branch (108:7): [True: 226, False: 0]
  ------------------
  109|    226|    AppendUninitializedTraits<string_type>::Append(s, new_size - size);
  110|    226|  } else {
  111|      0|    s->erase(new_size);
  112|      0|  }
  113|    226|}

_ZN4absl12lts_2024011611StrContainsENS0_11string_viewEc:
   51|    387|inline bool StrContains(absl::string_view haystack, char needle) noexcept {
   52|    387|  return haystack.find(needle) != haystack.npos;
   53|    387|}
_ZN4absl12lts_2024011610StartsWithENS0_11string_viewES1_:
   59|     72|                       absl::string_view prefix) noexcept {
   60|     72|  return prefix.empty() ||
  ------------------
  |  Branch (60:10): [True: 0, False: 72]
  ------------------
   61|     72|         (text.size() >= prefix.size() &&
  ------------------
  |  Branch (61:11): [True: 43, False: 29]
  ------------------
   62|     43|          memcmp(text.data(), prefix.data(), prefix.size()) == 0);
  ------------------
  |  Branch (62:11): [True: 1, False: 42]
  ------------------
   63|     72|}

_ZN4absl12lts_202401166StrCatERKNS0_8AlphaNumES3_:
   58|      4|std::string StrCat(const AlphaNum& a, const AlphaNum& b) {
   59|      4|  std::string result;
   60|      4|  absl::strings_internal::STLStringResizeUninitialized(&result,
   61|      4|                                                       a.size() + b.size());
   62|      4|  char* const begin = &result[0];
   63|      4|  char* out = begin;
   64|      4|  out = Append(out, a);
   65|      4|  out = Append(out, b);
   66|       |  assert(out == begin + result.size());
   67|      4|  return result;
   68|      4|}
_ZN4absl12lts_202401166StrCatERKNS0_8AlphaNumES3_S3_:
   70|    381|std::string StrCat(const AlphaNum& a, const AlphaNum& b, const AlphaNum& c) {
   71|    381|  std::string result;
   72|    381|  strings_internal::STLStringResizeUninitialized(
   73|    381|      &result, a.size() + b.size() + c.size());
   74|    381|  char* const begin = &result[0];
   75|    381|  char* out = begin;
   76|    381|  out = Append(out, a);
   77|    381|  out = Append(out, b);
   78|    381|  out = Append(out, c);
   79|       |  assert(out == begin + result.size());
   80|    381|  return result;
   81|    381|}
_ZN4absl12lts_2024011616strings_internal37STLStringAppendUninitializedAmortizedEPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEm:
  102|      5|                                           size_t to_append) {
  103|      5|  strings_internal::AppendUninitializedTraits<std::string>::Append(dest,
  104|      5|                                                                   to_append);
  105|      5|}
_ZN4absl12lts_202401169StrAppendEPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_8AlphaNumESB_:
  288|      5|               const AlphaNum& b) {
  289|      5|  ASSERT_NO_OVERLAP(*dest, a);
  ------------------
  |  |  250|      5|  assert(((src).size() == 0) ||      \
  |  |  251|      5|         (uintptr_t((src).data() - (dest).data()) > uintptr_t((dest).size())))
  ------------------
  290|      5|  ASSERT_NO_OVERLAP(*dest, b);
  ------------------
  |  |  250|      5|  assert(((src).size() == 0) ||      \
  |  |  251|      5|         (uintptr_t((src).data() - (dest).data()) > uintptr_t((dest).size())))
  ------------------
  291|      5|  std::string::size_type old_size = dest->size();
  292|      5|  strings_internal::STLStringAppendUninitializedAmortized(dest,
  293|      5|                                                          a.size() + b.size());
  294|      5|  char* const begin = &(*dest)[0];
  295|      5|  char* out = begin + old_size;
  296|      5|  out = Append(out, a);
  297|      5|  out = Append(out, b);
  298|       |  assert(out == begin + dest->size());
  299|      5|}
str_cat.cc:_ZN4absl12lts_2024011612_GLOBAL__N_16AppendEPcRKNS0_8AlphaNumE:
   46|  1.16k|absl::Nonnull<char*> Append(absl::Nonnull<char*> out, const AlphaNum& x) {
   47|       |  // memcpy is allowed to overwrite arbitrary memory, so doing this after the
   48|       |  // call would force an extra fetch of x.size().
   49|  1.16k|  char* after = out + x.size();
   50|  1.16k|  if (x.size() != 0) {
  ------------------
  |  Branch (50:7): [True: 1.16k, False: 0]
  ------------------
   51|  1.16k|    memcpy(out, x.data(), x.size());
   52|  1.16k|  }
   53|  1.16k|  return after;
   54|  1.16k|}

_ZN4absl12lts_202401168AlphaNumC2EPKc:
  353|    390|      : piece_(NullSafeStringView(c_str)) {}
_ZN4absl12lts_202401168AlphaNumC2ENS0_11string_viewE:
  356|    767|      : piece_(pc) {}
_ZNK4absl12lts_202401168AlphaNum4sizeEv:
  377|  4.64k|  absl::string_view::size_type size() const { return piece_.size(); }
_ZNK4absl12lts_202401168AlphaNum4dataEv:
  378|  1.16k|  absl::Nullable<const char*> data() const { return piece_.data(); }
_ZN4absl12lts_202401168AlphaNumC2INSt3__19allocatorIcEEEERKNS3_12basic_stringIcNS3_11char_traitsIcEET_EE:
  369|      4|      : piece_(str) {}

_ZNK4absl12lts_2024011611string_view4findEcm:
  118|    392|string_view::size_type string_view::find(char c, size_type pos) const noexcept {
  119|    392|  if (empty() || pos >= length_) {
  ------------------
  |  Branch (119:7): [True: 0, False: 392]
  |  Branch (119:18): [True: 0, False: 392]
  ------------------
  120|      0|    return npos;
  121|      0|  }
  122|    392|  const char* result =
  123|    392|      static_cast<const char*>(memchr(ptr_ + pos, c, length_ - pos));
  124|    392|  return result != nullptr ? static_cast<size_type>(result - ptr_) : npos;
  ------------------
  |  Branch (124:10): [True: 0, False: 392]
  ------------------
  125|    392|}
_ZNK4absl12lts_2024011611string_view5rfindEcm:
  138|      6|                                          size_type pos) const noexcept {
  139|       |  // Note: memrchr() is not available on Windows.
  140|      6|  if (empty()) return npos;
  ------------------
  |  Branch (140:7): [True: 0, False: 6]
  ------------------
  141|     34|  for (size_type i = std::min(pos, length_ - 1);; --i) {
  142|     34|    if (ptr_[i] == c) {
  ------------------
  |  Branch (142:9): [True: 3, False: 31]
  ------------------
  143|      3|      return i;
  144|      3|    }
  145|     31|    if (i == 0) break;
  ------------------
  |  Branch (145:9): [True: 3, False: 28]
  ------------------
  146|     31|  }
  147|      3|  return npos;
  148|      6|}

_ZN4absl12lts_2024011611string_viewC2Ev:
  180|      5|  constexpr string_view() noexcept : ptr_(nullptr), length_(0) {}
_ZN4absl12lts_2024011611string_viewC2EPKcm:
  204|    652|      : ptr_(data), length_(CheckLengthInternal(len)) {}
_ZNK4absl12lts_2024011611string_view5beginEv:
  216|    947|  constexpr const_iterator begin() const noexcept { return ptr_; }
_ZNK4absl12lts_2024011611string_view3endEv:
  223|    947|  constexpr const_iterator end() const noexcept { return ptr_ + length_; }
_ZNK4absl12lts_2024011611string_view4sizeEv:
  273|  29.1k|  constexpr size_type size() const noexcept { return length_; }
_ZNK4absl12lts_2024011611string_view5emptyEv:
  288|  3.17k|  constexpr bool empty() const noexcept { return length_ == 0; }
_ZNK4absl12lts_2024011611string_viewixEm:
  294|    499|  constexpr const_reference operator[](size_type i) const {
  295|    499|    return ABSL_HARDENING_ASSERT(i < size()), ptr_[i];
  ------------------
  |  |  128|    499|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|    499|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 499]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  296|    499|  }
_ZNK4absl12lts_2024011611string_view4dataEv:
  332|  20.4k|  constexpr const_pointer data() const noexcept { return ptr_; }
_ZNK4absl12lts_2024011611string_view6substrEmm:
  395|    641|  constexpr string_view substr(size_type pos = 0, size_type n = npos) const {
  396|    641|    return ABSL_PREDICT_FALSE(pos > length_)
  ------------------
  |  |  178|    641|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 641]
  |  |  |  Branch (178:49): [Folded, False: 641]
  |  |  |  Branch (178:58): [True: 0, False: 641]
  |  |  ------------------
  ------------------
  397|    641|               ? (base_internal::ThrowStdOutOfRange(
  398|      0|                      "absl::string_view::substr"),
  399|      0|                  string_view())
  400|    641|               : string_view(ptr_ + pos, Min(n, length_ - pos));
  401|    641|  }
_ZNK4absl12lts_2024011611string_view7compareES1_:
  409|    494|  constexpr int compare(string_view x) const noexcept {
  410|    494|    return CompareImpl(length_, x.length_,
  411|    494|                       Min(length_, x.length_) == 0
  ------------------
  |  Branch (411:24): [True: 0, False: 494]
  ------------------
  412|    494|                           ? 0
  413|    494|                           : ABSL_INTERNAL_STRING_VIEW_MEMCMP(
  ------------------
  |  |   62|    494|#define ABSL_INTERNAL_STRING_VIEW_MEMCMP __builtin_memcmp
  ------------------
  414|    494|                                 ptr_, x.ptr_, Min(length_, x.length_)));
  415|    494|  }
_ZNK4absl12lts_2024011611string_view13find_first_ofEcm:
  509|      5|  size_type find_first_of(char c, size_type pos = 0) const noexcept {
  510|      5|    return find(c, pos);
  511|      5|  }
_ZNK4absl12lts_2024011611string_view12find_last_ofEcm:
  536|      6|  size_type find_last_of(char c, size_type pos = npos) const noexcept {
  537|      6|    return rfind(c, pos);
  538|      6|  }
_ZN4absl12lts_2024011611string_view19CheckLengthInternalEm:
  668|    652|  static constexpr size_type CheckLengthInternal(size_type len) {
  669|    652|    return ABSL_HARDENING_ASSERT(len <= kMaxSize), len;
  ------------------
  |  |  128|    652|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|    652|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 652]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  670|    652|  }
_ZN4absl12lts_2024011611string_view3MinEmm:
  690|  1.62k|  static constexpr size_t Min(size_type length_a, size_type length_b) {
  691|  1.62k|    return length_a < length_b ? length_a : length_b;
  ------------------
  |  Branch (691:12): [True: 314, False: 1.31k]
  ------------------
  692|  1.62k|  }
_ZN4absl12lts_2024011611string_view11CompareImplEmmi:
  695|    494|                                   int compare_result) {
  696|    494|    return compare_result == 0 ? static_cast<int>(length_a > length_b) -
  ------------------
  |  Branch (696:12): [True: 212, False: 282]
  ------------------
  697|    212|                                     static_cast<int>(length_a < length_b)
  698|    494|                               : (compare_result < 0 ? -1 : 1);
  ------------------
  |  Branch (698:35): [True: 165, False: 117]
  ------------------
  699|    494|  }
_ZN4absl12lts_20240116eqENS0_11string_viewES1_:
  708|    433|constexpr bool operator==(string_view x, string_view y) noexcept {
  709|    433|  return x.size() == y.size() &&
  ------------------
  |  Branch (709:10): [True: 314, False: 119]
  ------------------
  710|    314|         (x.empty() ||
  ------------------
  |  Branch (710:11): [True: 0, False: 314]
  ------------------
  711|    314|          ABSL_INTERNAL_STRING_VIEW_MEMCMP(x.data(), y.data(), x.size()) == 0);
  ------------------
  |  |   62|    314|#define ABSL_INTERNAL_STRING_VIEW_MEMCMP __builtin_memcmp
  ------------------
  |  Branch (711:11): [True: 308, False: 6]
  ------------------
  712|    433|}
_ZN4absl12lts_20240116neENS0_11string_viewES1_:
  714|      4|constexpr bool operator!=(string_view x, string_view y) noexcept {
  715|      4|  return !(x == y);
  716|      4|}
_ZN4absl12lts_20240116ltENS0_11string_viewES1_:
  718|    225|constexpr bool operator<(string_view x, string_view y) noexcept {
  719|    225|  return x.compare(y) < 0;
  720|    225|}
_ZN4absl12lts_2024011618NullSafeStringViewEPKc:
  762|    390|constexpr string_view NullSafeStringView(absl::Nullable<const char*> p) {
  763|    390|  return p ? string_view(p) : string_view();
  ------------------
  |  Branch (763:10): [True: 390, False: 0]
  ------------------
  764|    390|}
_ZNK4absl12lts_2024011611string_viewcvNSt3__112basic_stringIcNS2_11char_traitsIcEET_EEINS2_9allocatorIcEEEEv:
  368|    331|  explicit operator std::basic_string<char, traits_type, A>() const {
  369|    331|    if (!data()) return {};
  ------------------
  |  Branch (369:9): [True: 0, False: 331]
  ------------------
  370|    331|    return std::basic_string<char, traits_type, A>(data(), size());
  371|    331|  }

_ZN4absl12lts_2024011624synchronization_internal14InvalidGraphIdEv:
   58|     65|inline GraphId InvalidGraphId() {
   59|     65|  return GraphId{0};
   60|     65|}

_ZN4absl12lts_202401165Mutex4LockEv:
 1524|     65|void Mutex::Lock() {
 1525|     65|  ABSL_TSAN_MUTEX_PRE_LOCK(this, 0);
 1526|     65|  GraphId id = DebugOnlyDeadlockCheck(this);
 1527|     65|  intptr_t v = mu_.load(std::memory_order_relaxed);
 1528|       |  // try fast acquire, then spin loop
 1529|     65|  if (ABSL_PREDICT_FALSE((v & (kMuWriter | kMuReader | kMuEvent)) != 0) ||
  ------------------
  |  |  178|    130|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 65]
  |  |  |  Branch (178:49): [Folded, False: 65]
  |  |  |  Branch (178:58): [True: 0, False: 65]
  |  |  ------------------
  ------------------
 1530|     65|      ABSL_PREDICT_FALSE(!mu_.compare_exchange_strong(
  ------------------
  |  |  178|     65|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 65]
  |  |  |  Branch (178:49): [Folded, False: 65]
  |  |  |  Branch (178:58): [True: 0, False: 65]
  |  |  ------------------
  ------------------
 1531|     65|          v, kMuWriter | v, std::memory_order_acquire,
 1532|     65|          std::memory_order_relaxed))) {
 1533|       |    // try spin acquire, then slow loop
 1534|      0|    if (ABSL_PREDICT_FALSE(!TryAcquireWithSpinning(&this->mu_))) {
  ------------------
  |  |  178|      0|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 0]
  |  |  |  Branch (178:49): [Folded, False: 0]
  |  |  |  Branch (178:58): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1535|      0|      this->LockSlow(kExclusive, nullptr, 0);
 1536|      0|    }
 1537|      0|  }
 1538|     65|  DebugOnlyLockEnter(this, id);
 1539|     65|  ABSL_TSAN_MUTEX_POST_LOCK(this, 0, 0);
 1540|     65|}
_ZN4absl12lts_202401165Mutex6UnlockEv:
 1702|     65|void Mutex::Unlock() {
 1703|     65|  ABSL_TSAN_MUTEX_PRE_UNLOCK(this, 0);
 1704|     65|  DebugOnlyLockLeave(this);
 1705|     65|  intptr_t v = mu_.load(std::memory_order_relaxed);
 1706|       |
 1707|     65|  if (kDebugMode && ((v & (kMuWriter | kMuReader)) != kMuWriter)) {
  ------------------
  |  Branch (1707:7): [Folded, False: 65]
  |  Branch (1707:21): [True: 0, False: 0]
  ------------------
 1708|      0|    ABSL_RAW_LOG(FATAL, "Mutex unlocked when destroyed or not locked: v=0x%x",
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1709|      0|                 static_cast<unsigned>(v));
 1710|      0|  }
 1711|       |
 1712|       |  // should_try_cas is whether we'll try a compare-and-swap immediately.
 1713|       |  // NOTE: optimized out when kDebugMode is false.
 1714|     65|  bool should_try_cas = ((v & (kMuEvent | kMuWriter)) == kMuWriter &&
  ------------------
  |  Branch (1714:26): [True: 65, False: 0]
  ------------------
 1715|     65|                         (v & (kMuWait | kMuDesig)) != kMuWait);
  ------------------
  |  Branch (1715:26): [True: 65, False: 0]
  ------------------
 1716|       |  // But, we can use an alternate computation of it, that compilers
 1717|       |  // currently don't find on their own.  When that changes, this function
 1718|       |  // can be simplified.
 1719|     65|  intptr_t x = (v ^ (kMuWriter | kMuWait)) & (kMuWriter | kMuEvent);
 1720|     65|  intptr_t y = (v ^ (kMuWriter | kMuWait)) & (kMuWait | kMuDesig);
 1721|       |  // Claim: "x == 0 && y > 0" is equal to should_try_cas.
 1722|       |  // Also, because kMuWriter and kMuEvent exceed kMuDesig and kMuWait,
 1723|       |  // all possible non-zero values for x exceed all possible values for y.
 1724|       |  // Therefore, (x == 0 && y > 0) == (x < y).
 1725|     65|  if (kDebugMode && should_try_cas != (x < y)) {
  ------------------
  |  Branch (1725:7): [Folded, False: 65]
  |  Branch (1725:21): [True: 0, False: 0]
  ------------------
 1726|       |    // We would usually use PRIdPTR here, but is not correctly implemented
 1727|       |    // within the android toolchain.
 1728|      0|    ABSL_RAW_LOG(FATAL, "internal logic error %llx %llx %llx\n",
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1729|      0|                 static_cast<long long>(v), static_cast<long long>(x),
 1730|      0|                 static_cast<long long>(y));
 1731|      0|  }
 1732|     65|  if (x < y && mu_.compare_exchange_strong(v, v & ~(kMuWrWait | kMuWriter),
  ------------------
  |  Branch (1732:7): [True: 65, False: 0]
  |  Branch (1732:16): [True: 65, False: 0]
  ------------------
 1733|     65|                                           std::memory_order_release,
 1734|     65|                                           std::memory_order_relaxed)) {
 1735|       |    // fast writer release (writer with no waiters or with designated waker)
 1736|     65|  } else {
 1737|      0|    this->UnlockSlow(nullptr /*no waitp*/);  // take slow path
 1738|      0|  }
 1739|     65|  ABSL_TSAN_MUTEX_POST_UNLOCK(this, 0);
 1740|     65|}
_ZNK4absl12lts_202401165Mutex10AssertHeldEv:
 2470|      4|void Mutex::AssertHeld() const {
 2471|      4|  if ((mu_.load(std::memory_order_relaxed) & kMuWriter) == 0) {
  ------------------
  |  Branch (2471:7): [True: 0, False: 4]
  ------------------
 2472|      0|    SynchEvent* e = GetSynchEvent(this);
 2473|       |    ABSL_RAW_LOG(FATAL, "thread should hold write lock on Mutex %p %s",
  ------------------
  |  |   45|      0|  do {                                                                         \
  |  |   46|      0|    constexpr const char* absl_raw_log_internal_basename =                     \
  |  |   47|      0|        ::absl::raw_log_internal::Basename(__FILE__, sizeof(__FILE__) - 1);    \
  |  |   48|      0|    ::absl::raw_log_internal::RawLog(ABSL_RAW_LOG_INTERNAL_##severity,         \
  |  |  ------------------
  |  |  |  |  110|      0|#define ABSL_RAW_LOG_INTERNAL_FATAL ::absl::LogSeverity::kFatal
  |  |  ------------------
  |  |   49|      0|                                     absl_raw_log_internal_basename, __LINE__, \
  |  |   50|      0|                                     __VA_ARGS__);                             \
  |  |  ------------------
  |  |  |  Branch (50:38): [True: 0, False: 0]
  |  |  ------------------
  |  |   51|      0|    ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_##severity;                        \
  |  |  ------------------
  |  |  |  |  118|      0|#define ABSL_RAW_LOG_INTERNAL_MAYBE_UNREACHABLE_FATAL ABSL_UNREACHABLE()
  |  |  |  |  ------------------
  |  |  |  |  |  |  225|      0|  do {                                           \
  |  |  |  |  |  |  226|      0|    /* NOLINTNEXTLINE: misc-static-assert */     \
  |  |  |  |  |  |  227|      0|    assert(false && "ABSL_UNREACHABLE reached"); \
  |  |  |  |  |  |  228|      0|    ABSL_INTERNAL_UNREACHABLE_IMPL();            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  203|      0|#define ABSL_INTERNAL_UNREACHABLE_IMPL() __builtin_unreachable()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|  } while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (229:12): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (52:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2474|      0|                 static_cast<const void*>(this), (e == nullptr ? "" : e->name));
 2475|      0|  }
 2476|      4|}
mutex.cc:_ZN4absl12lts_20240116L22DebugOnlyDeadlockCheckEPNS0_5MutexE:
 1466|     65|static inline GraphId DebugOnlyDeadlockCheck(Mutex* mu) {
 1467|     65|  if (kDebugMode && synch_deadlock_detection.load(std::memory_order_acquire) !=
  ------------------
  |  Branch (1467:7): [Folded, False: 65]
  |  Branch (1467:21): [True: 0, False: 0]
  ------------------
 1468|      0|                        OnDeadlockCycle::kIgnore) {
 1469|      0|    return DeadlockCheck(mu);
 1470|     65|  } else {
 1471|     65|    return InvalidGraphId();
 1472|     65|  }
 1473|     65|}
mutex.cc:_ZN4absl12lts_20240116L18DebugOnlyLockEnterEPNS0_5MutexENS0_24synchronization_internal7GraphIdE:
 1298|     65|static inline void DebugOnlyLockEnter(Mutex* mu, GraphId id) {
 1299|     65|  if (kDebugMode) {
  ------------------
  |  Branch (1299:7): [Folded, False: 65]
  ------------------
 1300|      0|    if (synch_deadlock_detection.load(std::memory_order_acquire) !=
  ------------------
  |  Branch (1300:9): [True: 0, False: 0]
  ------------------
 1301|      0|        OnDeadlockCycle::kIgnore) {
 1302|      0|      LockEnter(mu, id, Synch_GetAllLocks());
 1303|      0|    }
 1304|      0|  }
 1305|     65|}
mutex.cc:_ZN4absl12lts_20240116L18DebugOnlyLockLeaveEPNS0_5MutexE:
 1308|     65|static inline void DebugOnlyLockLeave(Mutex* mu) {
 1309|     65|  if (kDebugMode) {
  ------------------
  |  Branch (1309:7): [Folded, False: 65]
  ------------------
 1310|      0|    if (synch_deadlock_detection.load(std::memory_order_acquire) !=
  ------------------
  |  Branch (1310:9): [True: 0, False: 0]
  ------------------
 1311|      0|        OnDeadlockCycle::kIgnore) {
 1312|      0|      LockLeave(mu, GetGraphId(mu), Synch_GetAllLocks());
 1313|      0|    }
 1314|      0|  }
 1315|     65|}

_ZN4absl12lts_202401169MutexLockC2EPNS0_5MutexE:
  583|     51|  explicit MutexLock(Mutex* mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) {
  584|     51|    this->mu_->Lock();
  585|     51|  }
_ZN4absl12lts_202401169MutexLockD2Ev:
  601|     51|  ~MutexLock() ABSL_UNLOCK_FUNCTION() { this->mu_->Unlock(); }
_ZN4absl12lts_2024011614MutexLockMaybeC2EPNS0_5MutexE:
 1000|    102|      : mu_(mu) {
 1001|    102|    if (this->mu_ != nullptr) {
  ------------------
  |  Branch (1001:9): [True: 10, False: 92]
  ------------------
 1002|     10|      this->mu_->Lock();
 1003|     10|    }
 1004|    102|  }
_ZN4absl12lts_2024011614MutexLockMaybeD2Ev:
 1014|    102|  ~MutexLockMaybe() ABSL_UNLOCK_FUNCTION() {
 1015|    102|    if (this->mu_ != nullptr) {
  ------------------
  |  Branch (1015:9): [True: 10, False: 92]
  ------------------
 1016|     10|      this->mu_->Unlock();
 1017|     10|    }
 1018|    102|  }
_ZN4absl12lts_202401165Mutex4DtorEv:
 1079|      9|inline void Mutex::Dtor() {}
_ZN4absl12lts_202401165MutexC2Ev:
 1061|     20|inline Mutex::Mutex() : mu_(0) {
 1062|     20|  ABSL_TSAN_MUTEX_CREATE(this, __tsan_mutex_not_static);
 1063|     20|}
_ZN4absl12lts_202401165MutexD2Ev:
 1069|      9|inline Mutex::~Mutex() { Dtor(); }

_ZN4absl12lts_2024011616compare_internal27compare_result_as_less_thanIbTnNSt3__19enable_ifIXsr3std7is_sameIbT_EE5valueEiE4typeELi0EEEbS5_:
  454|    216|constexpr bool compare_result_as_less_than(const BoolT r) { return r; }

_ZN4absl12lts_2024011617optional_internal13optional_dataIN6google8protobuf15FeatureResolverELb0EEC2Ev:
  163|      4|  optional_data() = default;
_ZN4absl12lts_2024011617optional_internal23optional_data_dtor_baseIN6google8protobuf15FeatureResolverELb0EEC2Ev:
   80|      4|  constexpr optional_data_dtor_base() noexcept : engaged_(false), dummy_{{}} {}
_ZN4absl12lts_2024011617optional_internal23optional_data_dtor_baseIN6google8protobuf15FeatureResolverELb0EED2Ev:
   86|      4|  ~optional_data_dtor_base() { destruct(); }
_ZN4absl12lts_2024011617optional_internal23optional_data_dtor_baseIN6google8protobuf15FeatureResolverELb0EE8destructEv:
   64|      8|  void destruct() noexcept {
   65|      8|    if (engaged_) {
  ------------------
  |  Branch (65:9): [True: 4, False: 4]
  ------------------
   66|       |      // `data_` must be initialized if `engaged_` is true.
   67|       |#if ABSL_INTERNAL_HAVE_MIN_GNUC_VERSION(12, 0)
   68|       |#pragma GCC diagnostic push
   69|       |#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
   70|       |#endif
   71|      4|      data_.~T();
   72|       |#if ABSL_INTERNAL_HAVE_MIN_GNUC_VERSION(12, 0)
   73|       |#pragma GCC diagnostic pop
   74|       |#endif
   75|      4|      engaged_ = false;
   76|      4|    }
   77|      8|  }
_ZN4absl12lts_2024011617optional_internal18optional_data_baseIN6google8protobuf15FeatureResolverEE9constructIJS5_EEEvDpOT_:
  123|      4|  void construct(Args&&... args) {
  124|       |    // Use dummy_'s address to work around casting cv-qualified T* to void*.
  125|      4|    ::new (static_cast<void*>(&this->dummy_)) T(std::forward<Args>(args)...);
  126|      4|    this->engaged_ = true;
  127|      4|  }

_ZN4absl12lts_2024011613span_internal7GetDataIKNSt3__16vectorIiNS3_9allocatorIiEEEEEEDTcl11GetDataImplfp_Li0EEERT_:
   50|    394|    -> decltype(GetDataImpl(c, 0)) {
   51|    394|  return GetDataImpl(c, 0);
   52|    394|}
_ZN4absl12lts_2024011613span_internal11GetDataImplIKNSt3__16vectorIiNS3_9allocatorIiEEEEEEDTcldtfp_4dataEERT_c:
   38|    394|    -> decltype(c.data()) {
   39|    394|  return c.data();
   40|    394|}

_ZN4absl12lts_202401168optionalIN6google8protobuf15FeatureResolverEEC2ENS0_9nullopt_tE:
  137|      4|  constexpr optional(nullopt_t) noexcept {}  // NOLINT(runtime/explicit)
_ZNK4absl12lts_202401168optionalIN6google8protobuf15FeatureResolverEE9has_valueEv:
  463|    394|  constexpr bool has_value() const noexcept { return this->engaged_; }
_ZN4absl12lts_202401168optionalIN6google8protobuf15FeatureResolverEEptEv:
  423|    207|  absl::Nonnull<T*> operator->() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  424|    207|    ABSL_HARDENING_ASSERT(this->engaged_);
  ------------------
  |  |  128|    207|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|    207|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 207]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  425|    207|    return std::addressof(this->data_);
  426|    207|  }
_ZN4absl12lts_202401168optionalIN6google8protobuf15FeatureResolverEE7emplaceIJS4_EvEERS4_DpOT_:
  361|      4|  T& emplace(Args&&... args) ABSL_ATTRIBUTE_LIFETIME_BOUND {
  362|      4|    this->destruct();
  363|      4|    this->construct(std::forward<Args>(args)...);
  364|      4|    return reference();
  365|      4|  }
_ZN4absl12lts_202401168optionalIN6google8protobuf15FeatureResolverEE9referenceEv:
  531|      4|  T& reference() { return this->data_; }

_ZN4absl12lts_202401164SpanIKiEC2INSt3__16vectorIiNS5_9allocatorIiEEEEvS9_iEERKT_:
  217|    394|      : Span(span_internal::GetData(v), v.size()) {}
_ZN4absl12lts_202401164SpanIKiEC2EPS2_m:
  193|    394|      : ptr_(array), len_(length) {}

_ZN4absl12lts_2024011616utility_internal15IfConstexprElseILb0EZN6google8protobuf5Arena6CreateINSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEJEEEPT_PS5_DpOT0_EUlDpOT_E_ZNS6_ISD_JEEESF_SG_SJ_EUlSM_E0_JEEEDaOT0_OT1_DpOT2_:
   53|  24.4k|                     Args&&... args) {
   54|  24.4k|  return std::get<condition>(std::forward_as_tuple(
   55|  24.4k|      std::forward<FalseFunc>(false_func), std::forward<TrueFunc>(true_func)))(
   56|  24.4k|      std::forward<Args>(args)...);
   57|  24.4k|}
_ZN4absl12lts_2024011616utility_internal15IfConstexprElseILb1EZN6google8protobuf5Arena6CreateINS4_8internal16InternalMetadata9ContainerINS4_15UnknownFieldSetEEEJEEEPT_PS5_DpOT0_EUlDpOT_E_ZNS6_ISB_JEEESD_SE_SH_EUlSK_E0_JEEEDaOT0_OT1_DpOT2_:
   53|  6.69k|                     Args&&... args) {
   54|  6.69k|  return std::get<condition>(std::forward_as_tuple(
   55|  6.69k|      std::forward<FalseFunc>(false_func), std::forward<TrueFunc>(true_func)))(
   56|  6.69k|      std::forward<Args>(args)...);
   57|  6.69k|}
_ZN4absl12lts_2024011616utility_internal15IfConstexprElseILb1EZN6google8protobuf5Arena6CreateINS4_19FileDescriptorProtoEJEEEPT_PS5_DpOT0_EUlDpOT_E_ZNS6_IS7_JEEES9_SA_SD_EUlSG_E0_JEEEDaOT0_OT1_DpOT2_:
   53|      4|                     Args&&... args) {
   54|      4|  return std::get<condition>(std::forward_as_tuple(
   55|      4|      std::forward<FalseFunc>(false_func), std::forward<TrueFunc>(true_func)))(
   56|      4|      std::forward<Args>(args)...);
   57|      4|}
_ZN4absl12lts_2024011616utility_internal15IfConstexprElseILb1EZN6google8protobuf5Arena6CreateINS4_15UnknownFieldSetEJEEEPT_PS5_DpOT0_EUlDpOT_E_ZNS6_IS7_JEEES9_SA_SD_EUlSG_E0_JEEEDaOT0_OT1_DpOT2_:
   53|    989|                     Args&&... args) {
   54|    989|  return std::get<condition>(std::forward_as_tuple(
   55|    989|      std::forward<FalseFunc>(false_func), std::forward<TrueFunc>(true_func)))(
   56|    989|      std::forward<Args>(args)...);
   57|    989|}

_ZN4absl12lts_202401167forwardINS0_18container_internal12CommonFieldsEEEOT_RNSt3__116remove_referenceIS4_E4typeE:
  149|    420|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|    420|  return static_cast<T&&>(t);
  151|    420|}
extension_set.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf8internal12_GLOBAL__N_115ExtensionHasherEEEOT_RNSt3__116remove_referenceIS7_E4typeE:
  149|      3|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      3|  return static_cast<T&&>(t);
  151|      3|}
extension_set.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf8internal12_GLOBAL__N_111ExtensionEqEEEOT_RNSt3__116remove_referenceIS7_E4typeE:
  149|      3|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      3|  return static_cast<T&&>(t);
  151|      3|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorIN6google8protobuf8internal13ExtensionInfoEEEEEOT_RNS2_16remove_referenceIS9_E4typeE:
  149|      3|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      3|  return static_cast<T&&>(t);
  151|      3|}
_ZN4absl12lts_202401167forwardINS0_18container_internal6HashEqIPKN6google8protobuf14FileDescriptorEvE4HashEEEOT_RNSt3__116remove_referenceISB_E4typeE:
  149|     36|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     36|  return static_cast<T&&>(t);
  151|     36|}
_ZN4absl12lts_202401167forwardINS0_18container_internal6HashEqIPKN6google8protobuf14FileDescriptorEvE2EqEEEOT_RNSt3__116remove_referenceISB_E4typeE:
  149|     36|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     36|  return static_cast<T&&>(t);
  151|     36|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKPKN6google8protobuf14FileDescriptorENS2_6vectorINS6_14DescriptorPool18DeferredValidation13LifetimesInfoENS3_ISE_EEEEEEEEEEOT_RNS2_16remove_referenceISJ_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINS0_18container_internal10StringHashEEEOT_RNSt3__116remove_referenceIS4_E4typeE:
  149|    237|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|    237|  return static_cast<T&&>(t);
  151|    237|}
_ZN4absl12lts_202401167forwardINS0_18container_internal8StringEqEEEOT_RNSt3__116remove_referenceIS4_E4typeE:
  149|    237|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|    237|  return static_cast<T&&>(t);
  151|    237|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEEEEOT_RNS2_16remove_referenceISA_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINS0_18container_internal6HashEqIPKN6google8protobuf10DescriptorEvE4HashEEEOT_RNSt3__116remove_referenceISB_E4typeE:
  149|     42|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     42|  return static_cast<T&&>(t);
  151|     42|}
_ZN4absl12lts_202401167forwardINS0_18container_internal6HashEqIPKN6google8protobuf10DescriptorEvE2EqEEEOT_RNSt3__116remove_referenceISB_E4typeE:
  149|     42|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     42|  return static_cast<T&&>(t);
  151|     42|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorIPKN6google8protobuf10DescriptorEEEEEOT_RNS2_16remove_referenceISA_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKNS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEEEEEEOT_RNS2_16remove_referenceISH_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
descriptor.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_120SymbolByFullNameHashEEEOT_RNSt3__116remove_referenceIS6_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
descriptor.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_118SymbolByFullNameEqEEEOT_RNSt3__116remove_referenceIS6_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorIN6google8protobuf6SymbolEEEEEOT_RNS2_16remove_referenceIS8_E4typeE:
  149|     18|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     18|  return static_cast<T&&>(t);
  151|     18|}
descriptor.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_121DescriptorsByNameHashINS3_14FileDescriptorEEEEEOT_RNSt3__116remove_referenceIS8_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
descriptor.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_119DescriptorsByNameEqINS3_14FileDescriptorEEEEEOT_RNSt3__116remove_referenceIS8_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorIPKN6google8protobuf14FileDescriptorEEEEEOT_RNS2_16remove_referenceISA_E4typeE:
  149|     30|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     30|  return static_cast<T&&>(t);
  151|     30|}
_ZN4absl12lts_202401167forwardIRKNS0_18container_internal19key_compare_adapterINSt3__14lessINS4_4pairIPKN6google8protobuf10DescriptorEiEEEESC_E15checked_compareEEEOT_RNS4_16remove_referenceISI_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIRKNSt3__19allocatorINS2_4pairIKNS4_IPKN6google8protobuf10DescriptorEiEEPKNS6_15FieldDescriptorEEEEEEEOT_RNS2_16remove_referenceISJ_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIPNS0_18container_internal10btree_nodeINS2_10map_paramsINSt3__14pairIPKN6google8protobuf10DescriptorEiEEPKNS8_15FieldDescriptorENS5_4lessISC_EENS5_9allocatorINS6_IKSC_SF_EEEELi256ELb0EEEEEEEOT_RNS5_16remove_referenceISP_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKNS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEENS2_10unique_ptrIN6google8protobuf10FeatureSetENS2_14default_deleteISE_EEEEEEEEEEOT_RNS2_16remove_referenceISK_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
descriptor.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_118SymbolByParentHashEEEOT_RNSt3__116remove_referenceIS6_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
descriptor.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_116SymbolByParentEqEEEOT_RNSt3__116remove_referenceIS6_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
descriptor.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_116ParentNumberHashEEEOT_RNSt3__116remove_referenceIS6_E4typeE:
  149|     36|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     36|  return static_cast<T&&>(t);
  151|     36|}
descriptor.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_114ParentNumberEqEEEOT_RNSt3__116remove_referenceIS6_E4typeE:
  149|     36|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     36|  return static_cast<T&&>(t);
  151|     36|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorIPKN6google8protobuf15FieldDescriptorEEEEEOT_RNS2_16remove_referenceISA_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorIPKN6google8protobuf19EnumValueDescriptorEEEEEOT_RNS2_16remove_referenceISA_E4typeE:
  149|     24|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     24|  return static_cast<T&&>(t);
  151|     24|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKNS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEPKN6google8protobuf23SourceCodeInfo_LocationEEEEEEEOT_RNS2_16remove_referenceISI_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKNS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEbEEEEEEOT_RNS2_16remove_referenceISD_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKPKN6google8protobuf10DescriptorENS6_17DescriptorBuilder12MessageHintsEEEEEEEOT_RNS2_16remove_referenceISF_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS0_11string_viewEEEEEOT_RNS2_16remove_referenceIS6_E4typeE:
  149|    195|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|    195|  return static_cast<T&&>(t);
  151|    195|}
_ZN4absl12lts_202401167forwardINS0_13hash_internal4HashIiEEEEOT_RNSt3__116remove_referenceIS5_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINSt3__18equal_toIiEEEEOT_RNS2_16remove_referenceIS5_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorIiEEEEOT_RNS2_16remove_referenceIS5_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINS0_13hash_internal4HashINSt3__16vectorIiNS4_9allocatorIiEEEEEEEEOT_RNS4_16remove_referenceISA_E4typeE:
  149|     24|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     24|  return static_cast<T&&>(t);
  151|     24|}
_ZN4absl12lts_202401167forwardINSt3__18equal_toINS2_6vectorIiNS2_9allocatorIiEEEEEEEEOT_RNS2_16remove_referenceIS9_E4typeE:
  149|     24|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     24|  return static_cast<T&&>(t);
  151|     24|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKNS2_6vectorIiNS3_IiEEEES7_EEEEEEOT_RNS2_16remove_referenceISB_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKNS2_6vectorIiNS3_IiEEEEiEEEEEEOT_RNS2_16remove_referenceISB_E4typeE:
  149|     12|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     12|  return static_cast<T&&>(t);
  151|     12|}
_ZN4absl12lts_202401167forwardIRKNS0_18container_internal19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11FileCompareENS7_9FileEntryEE15checked_compareEEEOT_RNSt3__116remove_referenceISE_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIRKNSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryEEEEEOT_RNS2_16remove_referenceISC_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIPNS0_18container_internal10btree_nodeINS2_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex9FileEntryENS8_11FileCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEEEOT_RNSB_16remove_referenceISH_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIRKNS0_18container_internal19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareENS7_11SymbolEntryEE15checked_compareEEEOT_RNSt3__116remove_referenceISE_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIRKNSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryEEEEEOT_RNS2_16remove_referenceISC_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIPNS0_18container_internal10btree_nodeINS2_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex11SymbolEntryENS8_13SymbolCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEEEOT_RNSB_16remove_referenceISH_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIRKNS0_18container_internal19key_compare_adapterIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex16ExtensionCompareENS7_14ExtensionEntryEE15checked_compareEEEOT_RNSt3__116remove_referenceISE_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIRKNSt3__19allocatorIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryEEEEEOT_RNS2_16remove_referenceISC_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardIPNS0_18container_internal10btree_nodeINS2_10set_paramsIN6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex14ExtensionEntryENS8_16ExtensionCompareENSt3__19allocatorIS9_EELi256ELb0EEEEEEEOT_RNSB_16remove_referenceISH_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKPKN6google8protobuf10DescriptorEPKNS6_21DynamicMessageFactory8TypeInfoEEEEEEEOT_RNS2_16remove_referenceISH_E4typeE:
  149|     18|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|     18|  return static_cast<T&&>(t);
  151|     18|}
message.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory20DescriptorByNameHashEEEOT_RNSt3__116remove_referenceIS7_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
message.cc:_ZN4absl12lts_202401167forwardIN6google8protobuf12_GLOBAL__N_123GeneratedMessageFactory18DescriptorByNameEqEEEOT_RNSt3__116remove_referenceIS7_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
_ZN4absl12lts_202401167forwardINSt3__19allocatorIPKN6google8protobuf8internal15DescriptorTableEEEEEOT_RNS2_16remove_referenceISB_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}
message.cc:_ZN4absl12lts_202401167forwardINSt3__19allocatorINS2_4pairIKPKN6google8protobuf10DescriptorENS6_12_GLOBAL__N_123GeneratedMessageFactory10MessagePtrEEEEEEEOT_RNS2_16remove_referenceISG_E4typeE:
  149|      6|    absl::remove_reference_t<T>& t) noexcept {  // NOLINT(runtime/references)
  150|      6|  return static_cast<T&&>(t);
  151|      6|}

_ZN16protobuf_mutator18ParseBinaryMessageEPKhmPN6google8protobuf7MessageE:
   21|  7.93k|bool ParseBinaryMessage(const uint8_t* data, size_t size, Message* output) {
   22|  7.93k|  return ParseBinaryMessage({reinterpret_cast<const char*>(data), size},
   23|  7.93k|                            output);
   24|  7.93k|}
_ZN16protobuf_mutator18ParseBinaryMessageERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPN6google8protobuf7MessageE:
   26|  7.93k|bool ParseBinaryMessage(const std::string& data, protobuf::Message* output) {
   27|  7.93k|  output->Clear();
   28|  7.93k|  if (!output->ParsePartialFromString(data)) {
  ------------------
  |  Branch (28:7): [True: 75, False: 7.86k]
  ------------------
   29|     75|    output->Clear();
   30|     75|    return false;
   31|     75|  }
   32|  7.86k|  return true;
   33|  7.93k|}

_ZN16protobuf_mutator7Mutator4SeedEj:
  622|  7.86k|void Mutator::Seed(uint32_t value) { random_.seed(value); }
_ZN16protobuf_mutator7Mutator3FixEPN6google8protobuf7MessageE:
  624|  7.86k|void Mutator::Fix(Message* message) {
  625|  7.86k|  UnpackedAny any;
  626|  7.86k|  UnpackAny(*message, &any);
  627|       |
  628|  7.86k|  PostProcessing(keep_initialized_, post_processors_, any, &random_)
  629|  7.86k|      .Run(message, kMaxInitializeDepth);
  630|       |  assert(IsInitialized(*message));
  631|  7.86k|}
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_19UnpackAnyERKN6google8protobuf7MessageEPNSt3__113unordered_mapIPS4_NS6_10unique_ptrIS3_NS6_14default_deleteIS3_EEEENS6_4hashIS8_EENS6_8equal_toIS8_EENS6_9allocatorINS6_4pairIKS8_SC_EEEEEE:
  399|  89.2k|void UnpackAny(const Message& message, UnpackedAny* result) {
  400|  89.2k|  if (std::unique_ptr<Message> any = UnpackIfAny(message)) {
  ------------------
  |  Branch (400:32): [True: 0, False: 89.2k]
  ------------------
  401|      0|    UnpackAny(*any, result);
  402|      0|    result->emplace(&message, std::move(any));
  403|      0|    return;
  404|      0|  }
  405|       |
  406|  89.2k|  const Descriptor* descriptor = message.GetDescriptor();
  407|  89.2k|  const Reflection* reflection = message.GetReflection();
  408|       |
  409|   481k|  for (int i = 0; i < descriptor->field_count(); ++i) {
  ------------------
  |  Branch (409:19): [True: 392k, False: 89.2k]
  ------------------
  410|   392k|    const FieldDescriptor* field = descriptor->field(i);
  411|   392k|    if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
  ------------------
  |  Branch (411:9): [True: 32.4k, False: 360k]
  ------------------
  412|  32.4k|      if (field->is_repeated()) {
  ------------------
  |  Branch (412:11): [True: 13.4k, False: 18.9k]
  ------------------
  413|  13.4k|        const int field_size = reflection->FieldSize(message, field);
  414|  86.2k|        for (int j = 0; j < field_size; ++j) {
  ------------------
  |  Branch (414:25): [True: 72.8k, False: 13.4k]
  ------------------
  415|  72.8k|          UnpackAny(reflection->GetRepeatedMessage(message, field, j), result);
  416|  72.8k|        }
  417|  18.9k|      } else if (reflection->HasField(message, field)) {
  ------------------
  |  Branch (417:18): [True: 8.56k, False: 10.4k]
  ------------------
  418|  8.56k|        UnpackAny(reflection->GetMessage(message, field), result);
  419|  8.56k|      }
  420|  32.4k|    }
  421|   392k|  }
  422|  89.2k|}
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_111UnpackIfAnyERKN6google8protobuf7MessageE:
  394|  89.2k|std::unique_ptr<Message> UnpackIfAny(const Message& message) {
  395|  89.2k|  if (const Any* any = CastToAny(&message)) return UnpackAny(*any);
  ------------------
  |  Branch (395:18): [True: 0, False: 89.2k]
  ------------------
  396|  89.2k|  return {};
  397|  89.2k|}
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_19CastToAnyEPKN6google8protobuf7MessageE:
  382|  89.2k|const Any* CastToAny(const Message* message) {
  383|  89.2k|  return Any::descriptor() == message->GetDescriptor()
  ------------------
  |  Branch (383:10): [True: 0, False: 89.2k]
  ------------------
  384|  89.2k|             ? protobuf::DownCastMessage<Any>(message)
  385|  89.2k|             : nullptr;
  386|  89.2k|}
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_114PostProcessingC2EbRKNSt3__118unordered_multimapIPKN6google8protobuf10DescriptorENS2_8functionIFvPNS5_7MessageEjEEENS2_4hashIS8_EENS2_8equal_toIS8_EENS2_9allocatorINS2_4pairIKS8_SD_EEEEEERKNS2_13unordered_mapIPKSA_NS2_10unique_ptrISA_NS2_14default_deleteISA_EEEENSE_ISS_EENSG_ISS_EENSI_INSJ_IKSS_SW_EEEEEEPNS2_26linear_congruential_engineImLm48271ELm0ELm2147483647EEE:
  431|  7.86k|      : keep_initialized_(keep_initialized),
  432|  7.86k|        post_processors_(post_processors),
  433|  7.86k|        any_(any),
  434|  7.86k|        random_(random) {}
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_114PostProcessing3RunEPN6google8protobuf7MessageEi:
  436|  89.2k|  void Run(Message* message, int max_depth) {
  437|  89.2k|    --max_depth;
  438|  89.2k|    const Descriptor* descriptor = message->GetDescriptor();
  439|       |
  440|       |    // Apply custom mutators in nested messages before packing any.
  441|  89.2k|    const Reflection* reflection = message->GetReflection();
  442|   481k|    for (int i = 0; i < descriptor->field_count(); i++) {
  ------------------
  |  Branch (442:21): [True: 392k, False: 89.2k]
  ------------------
  443|   392k|      const FieldDescriptor* field = descriptor->field(i);
  444|   392k|      if (keep_initialized_ &&
  ------------------
  |  Branch (444:11): [True: 392k, False: 0]
  ------------------
  445|   392k|          (field->is_required() || descriptor->options().map_entry()) &&
  ------------------
  |  Branch (445:12): [True: 0, False: 392k]
  |  Branch (445:36): [True: 0, False: 392k]
  ------------------
  446|      0|          !reflection->HasField(*message, field)) {
  ------------------
  |  Branch (446:11): [True: 0, False: 0]
  ------------------
  447|      0|        CreateDefaultField()(FieldInstance(message, field));
  448|      0|      }
  449|       |
  450|   392k|      if (field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) continue;
  ------------------
  |  Branch (450:11): [True: 360k, False: 32.4k]
  ------------------
  451|       |
  452|  32.4k|      if (max_depth < 0 && !field->is_required()) {
  ------------------
  |  Branch (452:11): [True: 0, False: 32.4k]
  |  Branch (452:28): [True: 0, False: 0]
  ------------------
  453|       |        // Clear deep optional fields to avoid stack overflow.
  454|      0|        reflection->ClearField(message, field);
  455|      0|        if (field->is_repeated())
  ------------------
  |  Branch (455:13): [True: 0, False: 0]
  ------------------
  456|      0|          assert(!reflection->FieldSize(*message, field));
  457|      0|        else
  458|      0|          assert(!reflection->HasField(*message, field));
  459|      0|        continue;
  460|      0|      }
  461|       |
  462|  32.4k|      if (field->is_repeated()) {
  ------------------
  |  Branch (462:11): [True: 13.4k, False: 18.9k]
  ------------------
  463|  13.4k|        const int field_size = reflection->FieldSize(*message, field);
  464|  86.2k|        for (int j = 0; j < field_size; ++j) {
  ------------------
  |  Branch (464:25): [True: 72.8k, False: 13.4k]
  ------------------
  465|  72.8k|          Message* nested_message =
  466|  72.8k|              reflection->MutableRepeatedMessage(message, field, j);
  467|  72.8k|          Run(nested_message, max_depth);
  468|  72.8k|        }
  469|  18.9k|      } else if (reflection->HasField(*message, field)) {
  ------------------
  |  Branch (469:18): [True: 8.56k, False: 10.4k]
  ------------------
  470|  8.56k|        Message* nested_message = reflection->MutableMessage(message, field);
  471|  8.56k|        Run(nested_message, max_depth);
  472|  8.56k|      }
  473|  32.4k|    }
  474|       |
  475|  89.2k|    if (Any* any = CastToAny(message)) {
  ------------------
  |  Branch (475:14): [True: 0, False: 89.2k]
  ------------------
  476|      0|      if (max_depth < 0) {
  ------------------
  |  Branch (476:11): [True: 0, False: 0]
  ------------------
  477|       |        // Clear deep Any fields to avoid stack overflow.
  478|      0|        any->Clear();
  479|      0|      } else {
  480|      0|        auto It = any_.find(message);
  481|      0|        if (It != any_.end()) {
  ------------------
  |  Branch (481:13): [True: 0, False: 0]
  ------------------
  482|      0|          Run(It->second.get(), max_depth);
  483|      0|          std::string value;
  484|      0|          It->second->SerializePartialToString(&value);
  485|      0|          *any->mutable_value() = std::move(value);
  486|      0|        }
  487|      0|      }
  488|      0|    }
  489|       |
  490|       |    // Call user callback after message trimmed, initialized and packed.
  491|  89.2k|    auto range = post_processors_.equal_range(descriptor);
  492|  89.2k|    for (auto it = range.first; it != range.second; ++it)
  ------------------
  |  Branch (492:33): [True: 0, False: 89.2k]
  ------------------
  493|      0|      it->second(message, (*random_)());
  494|  89.2k|  }
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_19CastToAnyEPN6google8protobuf7MessageE:
  388|  89.2k|Any* CastToAny(Message* message) {
  389|  89.2k|  return Any::descriptor() == message->GetDescriptor()
  ------------------
  |  Branch (389:10): [True: 0, False: 89.2k]
  ------------------
  390|  89.2k|             ? protobuf::DownCastMessage<Any>(message)
  391|  89.2k|             : nullptr;
  392|  89.2k|}

_ZN16protobuf_mutator7MutatorC2Ev:
   48|      1|  Mutator() = default;
_ZN16protobuf_mutator7MutatorD2Ev:
   49|      1|  virtual ~Mutator() = default;

nghttp2_buf_init:
   32|  8.83k|void nghttp2_buf_init(nghttp2_buf *buf) {
   33|  8.83k|  buf->begin = NULL;
   34|  8.83k|  buf->end = NULL;
   35|  8.83k|  buf->pos = NULL;
   36|  8.83k|  buf->last = NULL;
   37|       |  buf->mark = NULL;
   38|  8.83k|}
nghttp2_buf_init2:
   40|  2.94k|int nghttp2_buf_init2(nghttp2_buf *buf, size_t initial, nghttp2_mem *mem) {
   41|  2.94k|  nghttp2_buf_init(buf);
   42|  2.94k|  return nghttp2_buf_reserve(buf, initial, mem);
   43|  2.94k|}
nghttp2_buf_free:
   45|  11.4k|void nghttp2_buf_free(nghttp2_buf *buf, nghttp2_mem *mem) {
   46|  11.4k|  if (buf == NULL) {
  ------------------
  |  Branch (46:7): [True: 0, False: 11.4k]
  ------------------
   47|      0|    return;
   48|      0|  }
   49|       |
   50|  11.4k|  nghttp2_mem_free(mem, buf->begin);
   51|       |  buf->begin = NULL;
   52|  11.4k|}
nghttp2_buf_reserve:
   54|  2.94k|int nghttp2_buf_reserve(nghttp2_buf *buf, size_t new_cap, nghttp2_mem *mem) {
   55|  2.94k|  uint8_t *ptr;
   56|  2.94k|  size_t cap;
   57|       |
   58|  2.94k|  cap = nghttp2_buf_cap(buf);
  ------------------
  |  |   57|  2.94k|#define nghttp2_buf_cap(BUF) ((size_t)((BUF)->end - (BUF)->begin))
  ------------------
   59|       |
   60|  2.94k|  if (cap >= new_cap) {
  ------------------
  |  Branch (60:7): [True: 0, False: 2.94k]
  ------------------
   61|      0|    return 0;
   62|      0|  }
   63|       |
   64|  2.94k|  new_cap = nghttp2_max_size(new_cap, cap * 2);
   65|       |
   66|  2.94k|  ptr = nghttp2_mem_realloc(mem, buf->begin, new_cap);
   67|  2.94k|  if (ptr == NULL) {
  ------------------
  |  Branch (67:7): [True: 0, False: 2.94k]
  ------------------
   68|      0|    return NGHTTP2_ERR_NOMEM;
   69|      0|  }
   70|       |
   71|  2.94k|  buf->pos = ptr + (buf->pos - buf->begin);
   72|  2.94k|  buf->last = ptr + (buf->last - buf->begin);
   73|  2.94k|  buf->mark = ptr + (buf->mark - buf->begin);
   74|  2.94k|  buf->begin = ptr;
   75|  2.94k|  buf->end = ptr + new_cap;
   76|       |
   77|  2.94k|  return 0;
   78|  2.94k|}
nghttp2_buf_reset:
   80|  30.6k|void nghttp2_buf_reset(nghttp2_buf *buf) {
   81|  30.6k|  buf->pos = buf->last = buf->mark = buf->begin;
   82|  30.6k|}
nghttp2_buf_wrap_init:
   84|  36.2k|void nghttp2_buf_wrap_init(nghttp2_buf *buf, uint8_t *begin, size_t len) {
   85|  36.2k|  buf->begin = buf->pos = buf->last = buf->mark = buf->end = begin;
   86|  36.2k|  if (len) {
  ------------------
  |  Branch (86:7): [True: 27.7k, False: 8.53k]
  ------------------
   87|  27.7k|    buf->end += len;
   88|  27.7k|  }
   89|  36.2k|}
nghttp2_bufs_init3:
  129|  2.94k|                       nghttp2_mem *mem) {
  130|  2.94k|  int rv;
  131|  2.94k|  nghttp2_buf_chain *chain;
  132|       |
  133|  2.94k|  if (chunk_keep == 0 || max_chunk < chunk_keep || chunk_length < offset) {
  ------------------
  |  Branch (133:7): [True: 0, False: 2.94k]
  |  Branch (133:26): [True: 0, False: 2.94k]
  |  Branch (133:52): [True: 0, False: 2.94k]
  ------------------
  134|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
  135|      0|  }
  136|       |
  137|  2.94k|  rv = buf_chain_new(&chain, chunk_length, mem);
  138|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (138:7): [True: 0, False: 2.94k]
  ------------------
  139|      0|    return rv;
  140|      0|  }
  141|       |
  142|  2.94k|  bufs->mem = mem;
  143|  2.94k|  bufs->offset = offset;
  144|       |
  145|  2.94k|  bufs->head = chain;
  146|  2.94k|  bufs->cur = bufs->head;
  147|       |
  148|  2.94k|  nghttp2_buf_shift_right(&bufs->cur->buf, offset);
  ------------------
  |  |   63|  2.94k|  do {                                                                         \
  |  |   64|  2.94k|    (BUF)->pos += AMT;                                                         \
  |  |   65|  2.94k|    (BUF)->last += AMT;                                                        \
  |  |   66|  2.94k|  } while (0)
  |  |  ------------------
  |  |  |  Branch (66:12): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
  149|       |
  150|  2.94k|  bufs->chunk_length = chunk_length;
  151|  2.94k|  bufs->chunk_used = 1;
  152|  2.94k|  bufs->max_chunk = max_chunk;
  153|  2.94k|  bufs->chunk_keep = chunk_keep;
  154|       |
  155|  2.94k|  return 0;
  156|  2.94k|}
nghttp2_bufs_free:
  184|  2.94k|void nghttp2_bufs_free(nghttp2_bufs *bufs) {
  185|  2.94k|  nghttp2_buf_chain *chain, *next_chain;
  186|       |
  187|  2.94k|  if (bufs == NULL) {
  ------------------
  |  Branch (187:7): [True: 0, False: 2.94k]
  ------------------
  188|      0|    return;
  189|      0|  }
  190|       |
  191|  5.88k|  for (chain = bufs->head; chain;) {
  ------------------
  |  Branch (191:28): [True: 2.94k, False: 2.94k]
  ------------------
  192|  2.94k|    next_chain = chain->next;
  193|       |
  194|  2.94k|    buf_chain_del(chain, bufs->mem);
  195|       |
  196|  2.94k|    chain = next_chain;
  197|  2.94k|  }
  198|       |
  199|       |  bufs->head = NULL;
  200|  2.94k|}
nghttp2_bufs_len:
  291|  2.88k|size_t nghttp2_bufs_len(nghttp2_bufs *bufs) {
  292|  2.88k|  nghttp2_buf_chain *ci;
  293|  2.88k|  size_t len;
  294|       |
  295|  2.88k|  len = 0;
  296|  5.77k|  for (ci = bufs->head; ci; ci = ci->next) {
  ------------------
  |  Branch (296:25): [True: 2.88k, False: 2.88k]
  ------------------
  297|  2.88k|    len += nghttp2_buf_len(&ci->buf);
  ------------------
  |  |   54|  2.88k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
  298|  2.88k|  }
  299|       |
  300|  2.88k|  return len;
  301|  2.88k|}
nghttp2_bufs_add:
  335|  69.2k|int nghttp2_bufs_add(nghttp2_bufs *bufs, const void *data, size_t len) {
  336|  69.2k|  int rv;
  337|  69.2k|  size_t nwrite;
  338|  69.2k|  nghttp2_buf *buf;
  339|  69.2k|  const uint8_t *p;
  340|       |
  341|  69.2k|  p = data;
  342|       |
  343|   136k|  while (len) {
  ------------------
  |  Branch (343:10): [True: 67.6k, False: 69.2k]
  ------------------
  344|  67.6k|    buf = &bufs->cur->buf;
  345|       |
  346|  67.6k|    nwrite = nghttp2_min_size(nghttp2_buf_avail(buf), len);
  ------------------
  |  |   55|  67.6k|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  ------------------
  347|  67.6k|    if (nwrite == 0) {
  ------------------
  |  Branch (347:9): [True: 0, False: 67.6k]
  ------------------
  348|      0|      rv = bufs_alloc_chain(bufs);
  349|      0|      if (rv != 0) {
  ------------------
  |  Branch (349:11): [True: 0, False: 0]
  ------------------
  350|      0|        return rv;
  351|      0|      }
  352|      0|      continue;
  353|      0|    }
  354|       |
  355|  67.6k|    buf->last = nghttp2_cpymem(buf->last, p, nwrite);
  356|  67.6k|    p += nwrite;
  357|  67.6k|    len -= nwrite;
  358|  67.6k|  }
  359|       |
  360|  69.2k|  return 0;
  361|  69.2k|}
nghttp2_bufs_addb:
  381|  20.9k|int nghttp2_bufs_addb(nghttp2_bufs *bufs, uint8_t b) {
  382|  20.9k|  int rv;
  383|       |
  384|  20.9k|  rv = bufs_ensure_addb(bufs);
  385|  20.9k|  if (rv != 0) {
  ------------------
  |  Branch (385:7): [True: 0, False: 20.9k]
  ------------------
  386|      0|    return rv;
  387|      0|  }
  388|       |
  389|  20.9k|  *bufs->cur->buf.last++ = b;
  390|       |
  391|  20.9k|  return 0;
  392|  20.9k|}
nghttp2_bufs_reset:
  486|  25.2k|void nghttp2_bufs_reset(nghttp2_bufs *bufs) {
  487|  25.2k|  nghttp2_buf_chain *chain, *ci;
  488|  25.2k|  size_t k;
  489|       |
  490|  25.2k|  k = bufs->chunk_keep;
  491|       |
  492|  25.2k|  for (ci = bufs->head; ci; ci = ci->next) {
  ------------------
  |  Branch (492:25): [True: 25.2k, False: 0]
  ------------------
  493|  25.2k|    nghttp2_buf_reset(&ci->buf);
  494|  25.2k|    nghttp2_buf_shift_right(&ci->buf, bufs->offset);
  ------------------
  |  |   63|  25.2k|  do {                                                                         \
  |  |   64|  25.2k|    (BUF)->pos += AMT;                                                         \
  |  |   65|  25.2k|    (BUF)->last += AMT;                                                        \
  |  |   66|  25.2k|  } while (0)
  |  |  ------------------
  |  |  |  Branch (66:12): [Folded, False: 25.2k]
  |  |  ------------------
  ------------------
  495|       |
  496|  25.2k|    if (--k == 0) {
  ------------------
  |  Branch (496:9): [True: 25.2k, False: 0]
  ------------------
  497|  25.2k|      break;
  498|  25.2k|    }
  499|  25.2k|  }
  500|       |
  501|  25.2k|  if (ci) {
  ------------------
  |  Branch (501:7): [True: 25.2k, False: 0]
  ------------------
  502|  25.2k|    chain = ci->next;
  503|  25.2k|    ci->next = NULL;
  504|       |
  505|  25.2k|    for (ci = chain; ci;) {
  ------------------
  |  Branch (505:22): [True: 0, False: 25.2k]
  ------------------
  506|      0|      chain = ci->next;
  507|       |
  508|      0|      buf_chain_del(ci, bufs->mem);
  509|       |
  510|      0|      ci = chain;
  511|      0|    }
  512|       |
  513|  25.2k|    bufs->chunk_used = bufs->chunk_keep;
  514|  25.2k|  }
  515|       |
  516|  25.2k|  bufs->cur = bufs->head;
  517|  25.2k|}
nghttp2_bufs_next_present:
  521|  5.77k|int nghttp2_bufs_next_present(nghttp2_bufs *bufs) {
  522|  5.77k|  nghttp2_buf_chain *chain;
  523|       |
  524|  5.77k|  chain = bufs->cur->next;
  525|       |
  526|  5.77k|  return chain && nghttp2_buf_len(&chain->buf);
  ------------------
  |  |   54|      0|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  |  |  ------------------
  |  |  |  Branch (54:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (526:10): [True: 0, False: 5.77k]
  ------------------
  527|  5.77k|}
nghttp2_buf.c:buf_chain_new:
   92|  2.94k|                         nghttp2_mem *mem) {
   93|  2.94k|  int rv;
   94|       |
   95|  2.94k|  *chain = nghttp2_mem_malloc(mem, sizeof(nghttp2_buf_chain));
   96|  2.94k|  if (*chain == NULL) {
  ------------------
  |  Branch (96:7): [True: 0, False: 2.94k]
  ------------------
   97|      0|    return NGHTTP2_ERR_NOMEM;
   98|      0|  }
   99|       |
  100|  2.94k|  (*chain)->next = NULL;
  101|       |
  102|  2.94k|  rv = nghttp2_buf_init2(&(*chain)->buf, chunk_length, mem);
  103|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (103:7): [True: 0, False: 2.94k]
  ------------------
  104|      0|    nghttp2_mem_free(mem, *chain);
  105|      0|    return NGHTTP2_ERR_NOMEM;
  106|      0|  }
  107|       |
  108|  2.94k|  return 0;
  109|  2.94k|}
nghttp2_buf.c:buf_chain_del:
  111|  2.94k|static void buf_chain_del(nghttp2_buf_chain *chain, nghttp2_mem *mem) {
  112|  2.94k|  nghttp2_buf_free(&chain->buf, mem);
  113|  2.94k|  nghttp2_mem_free(mem, chain);
  114|  2.94k|}
nghttp2_buf.c:bufs_ensure_addb:
  363|  20.9k|static int bufs_ensure_addb(nghttp2_bufs *bufs) {
  364|  20.9k|  int rv;
  365|  20.9k|  nghttp2_buf *buf;
  366|       |
  367|  20.9k|  buf = &bufs->cur->buf;
  368|       |
  369|  20.9k|  if (nghttp2_buf_avail(buf) > 0) {
  ------------------
  |  |   55|  20.9k|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  ------------------
  |  Branch (369:7): [True: 20.9k, False: 0]
  ------------------
  370|  20.9k|    return 0;
  371|  20.9k|  }
  372|       |
  373|      0|  rv = bufs_alloc_chain(bufs);
  374|      0|  if (rv != 0) {
  ------------------
  |  Branch (374:7): [True: 0, False: 0]
  ------------------
  375|      0|    return rv;
  376|      0|  }
  377|       |
  378|      0|  return 0;
  379|      0|}

nghttp2_session_callbacks_new:
   29|  2.94k|int nghttp2_session_callbacks_new(nghttp2_session_callbacks **callbacks_ptr) {
   30|  2.94k|  *callbacks_ptr = calloc(1, sizeof(nghttp2_session_callbacks));
   31|       |
   32|  2.94k|  if (*callbacks_ptr == NULL) {
  ------------------
  |  Branch (32:7): [True: 0, False: 2.94k]
  ------------------
   33|      0|    return NGHTTP2_ERR_NOMEM;
   34|      0|  }
   35|       |
   36|  2.94k|  return 0;
   37|  2.94k|}
nghttp2_session_callbacks_del:
   39|  2.94k|void nghttp2_session_callbacks_del(nghttp2_session_callbacks *callbacks) {
   40|  2.94k|  free(callbacks);
   41|  2.94k|}
nghttp2_session_callbacks_set_send_callback:
   44|  2.94k|  nghttp2_session_callbacks *cbs, nghttp2_send_callback send_callback) {
   45|  2.94k|  cbs->send_callback = send_callback;
   46|  2.94k|}
nghttp2_session_callbacks_set_on_frame_recv_callback:
   65|  2.94k|  nghttp2_on_frame_recv_callback on_frame_recv_callback) {
   66|  2.94k|  cbs->on_frame_recv_callback = on_frame_recv_callback;
   67|  2.94k|}
nghttp2_session_callbacks_set_on_invalid_frame_recv_callback:
   71|  2.94k|  nghttp2_on_invalid_frame_recv_callback on_invalid_frame_recv_callback) {
   72|  2.94k|  cbs->on_invalid_frame_recv_callback = on_invalid_frame_recv_callback;
   73|  2.94k|}
nghttp2_session_callbacks_set_on_data_chunk_recv_callback:
   77|  2.94k|  nghttp2_on_data_chunk_recv_callback on_data_chunk_recv_callback) {
   78|  2.94k|  cbs->on_data_chunk_recv_callback = on_data_chunk_recv_callback;
   79|  2.94k|}
nghttp2_session_callbacks_set_on_frame_send_callback:
   89|  2.94k|  nghttp2_on_frame_send_callback on_frame_send_callback) {
   90|  2.94k|  cbs->on_frame_send_callback = on_frame_send_callback;
   91|  2.94k|}
nghttp2_session_callbacks_set_on_stream_close_callback:
  101|  2.94k|  nghttp2_on_stream_close_callback on_stream_close_callback) {
  102|  2.94k|  cbs->on_stream_close_callback = on_stream_close_callback;
  103|  2.94k|}
nghttp2_session_callbacks_set_on_begin_headers_callback:
  107|  2.94k|  nghttp2_on_begin_headers_callback on_begin_headers_callback) {
  108|  2.94k|  cbs->on_begin_headers_callback = on_begin_headers_callback;
  109|  2.94k|}
nghttp2_session_callbacks_set_on_header_callback:
  113|  2.94k|  nghttp2_on_header_callback on_header_callback) {
  114|  2.94k|  cbs->on_header_callback = on_header_callback;
  115|  2.94k|}
nghttp2_session_callbacks_set_error_callback:
  196|  2.94k|  nghttp2_session_callbacks *cbs, nghttp2_error_callback error_callback) {
  197|  2.94k|  cbs->error_callback = error_callback;
  198|  2.94k|}

nghttp2_frame_pack_frame_hd:
   37|  14.7k|void nghttp2_frame_pack_frame_hd(uint8_t *buf, const nghttp2_frame_hd *hd) {
   38|  14.7k|  nghttp2_put_uint32be(&buf[0], (uint32_t)(hd->length << 8));
   39|  14.7k|  buf[3] = hd->type;
   40|  14.7k|  buf[4] = hd->flags;
   41|  14.7k|  nghttp2_put_uint32be(&buf[5], (uint32_t)hd->stream_id);
   42|       |  /* ignore hd->reserved for now */
   43|  14.7k|}
nghttp2_frame_unpack_frame_hd:
   45|  4.51k|void nghttp2_frame_unpack_frame_hd(nghttp2_frame_hd *hd, const uint8_t *buf) {
   46|  4.51k|  hd->length = nghttp2_get_uint32(&buf[0]) >> 8;
   47|  4.51k|  hd->type = buf[3];
   48|  4.51k|  hd->flags = buf[4];
   49|  4.51k|  hd->stream_id = nghttp2_get_uint32(&buf[5]) & NGHTTP2_STREAM_ID_MASK;
  ------------------
  |  |   36|  4.51k|#define NGHTTP2_STREAM_ID_MASK ((1u << 31) - 1)
  ------------------
   50|  4.51k|  hd->reserved = 0;
   51|  4.51k|}
nghttp2_frame_hd_init:
   54|  16.2k|                           uint8_t flags, int32_t stream_id) {
   55|  16.2k|  hd->length = length;
   56|  16.2k|  hd->type = type;
   57|  16.2k|  hd->flags = flags;
   58|  16.2k|  hd->stream_id = stream_id;
   59|  16.2k|  hd->reserved = 0;
   60|  16.2k|}
nghttp2_frame_headers_init:
   65|  2.88k|                                nghttp2_nv *nva, size_t nvlen) {
   66|  2.88k|  nghttp2_frame_hd_init(&frame->hd, 0, NGHTTP2_HEADERS, flags, stream_id);
   67|  2.88k|  frame->padlen = 0;
   68|  2.88k|  frame->nva = nva;
   69|  2.88k|  frame->nvlen = nvlen;
   70|  2.88k|  frame->cat = cat;
   71|       |
   72|  2.88k|  if (pri_spec) {
  ------------------
  |  Branch (72:7): [True: 0, False: 2.88k]
  ------------------
   73|      0|    frame->pri_spec = *pri_spec;
   74|  2.88k|  } else {
   75|  2.88k|    nghttp2_priority_spec_default_init(&frame->pri_spec);
   76|  2.88k|  }
   77|  2.88k|}
nghttp2_frame_headers_free:
   79|  4.23k|void nghttp2_frame_headers_free(nghttp2_headers *frame, nghttp2_mem *mem) {
   80|  4.23k|  nghttp2_nv_array_del(frame->nva, mem);
   81|  4.23k|}
nghttp2_frame_priority_free:
   90|      5|void nghttp2_frame_priority_free(nghttp2_priority *frame) { (void)frame; }
nghttp2_frame_rst_stream_init:
   93|  3.02k|                                   uint32_t error_code) {
   94|  3.02k|  nghttp2_frame_hd_init(&frame->hd, 4, NGHTTP2_RST_STREAM, NGHTTP2_FLAG_NONE,
   95|  3.02k|                        stream_id);
   96|  3.02k|  frame->error_code = error_code;
   97|  3.02k|}
nghttp2_frame_rst_stream_free:
   99|  3.05k|void nghttp2_frame_rst_stream_free(nghttp2_rst_stream *frame) { (void)frame; }
nghttp2_frame_settings_init:
  102|  5.09k|                                 nghttp2_settings_entry *iv, size_t niv) {
  103|  5.09k|  nghttp2_frame_hd_init(&frame->hd, niv * NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH,
  ------------------
  |  |   61|  5.09k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  104|  5.09k|                        NGHTTP2_SETTINGS, flags, 0);
  105|  5.09k|  frame->niv = niv;
  106|  5.09k|  frame->iv = iv;
  107|  5.09k|}
nghttp2_frame_settings_free:
  109|  7.41k|void nghttp2_frame_settings_free(nghttp2_settings *frame, nghttp2_mem *mem) {
  110|  7.41k|  nghttp2_mem_free(mem, frame->iv);
  111|  7.41k|}
nghttp2_frame_push_promise_free:
  126|    180|                                     nghttp2_mem *mem) {
  127|    180|  nghttp2_nv_array_del(frame->nva, mem);
  128|    180|}
nghttp2_frame_ping_init:
  131|      3|                             const uint8_t *opaque_data) {
  132|      3|  nghttp2_frame_hd_init(&frame->hd, 8, NGHTTP2_PING, flags, 0);
  133|      3|  if (opaque_data) {
  ------------------
  |  Branch (133:7): [True: 3, False: 0]
  ------------------
  134|      3|    memcpy(frame->opaque_data, opaque_data, sizeof(frame->opaque_data));
  135|      3|  } else {
  136|      0|    memset(frame->opaque_data, 0, sizeof(frame->opaque_data));
  137|      0|  }
  138|      3|}
nghttp2_frame_ping_free:
  140|     11|void nghttp2_frame_ping_free(nghttp2_ping *frame) { (void)frame; }
nghttp2_frame_goaway_init:
  144|  1.56k|                               size_t opaque_data_len) {
  145|  1.56k|  nghttp2_frame_hd_init(&frame->hd, 8 + opaque_data_len, NGHTTP2_GOAWAY,
  146|  1.56k|                        NGHTTP2_FLAG_NONE, 0);
  147|  1.56k|  frame->last_stream_id = last_stream_id;
  148|  1.56k|  frame->error_code = error_code;
  149|  1.56k|  frame->opaque_data = opaque_data;
  150|  1.56k|  frame->opaque_data_len = opaque_data_len;
  151|  1.56k|  frame->reserved = 0;
  152|  1.56k|}
nghttp2_frame_goaway_free:
  154|  1.63k|void nghttp2_frame_goaway_free(nghttp2_goaway *frame, nghttp2_mem *mem) {
  155|  1.63k|  nghttp2_mem_free(mem, frame->opaque_data);
  156|  1.63k|}
nghttp2_frame_window_update_init:
  160|  2.94k|                                      int32_t window_size_increment) {
  161|  2.94k|  nghttp2_frame_hd_init(&frame->hd, 4, NGHTTP2_WINDOW_UPDATE, flags, stream_id);
  162|  2.94k|  frame->window_size_increment = window_size_increment;
  163|  2.94k|  frame->reserved = 0;
  164|  2.94k|}
nghttp2_frame_window_update_free:
  166|  3.06k|void nghttp2_frame_window_update_free(nghttp2_window_update *frame) {
  167|  3.06k|  (void)frame;
  168|  3.06k|}
nghttp2_frame_trail_padlen:
  170|  7.72k|size_t nghttp2_frame_trail_padlen(nghttp2_frame *frame, size_t padlen) {
  171|       |  /* We have iframe->padlen == 0, but iframe->frame.hd.flags may have
  172|       |     NGHTTP2_FLAG_PADDED set.  This happens when receiving
  173|       |     CONTINUATION frame, since we don't reset flags after HEADERS was
  174|       |     received. */
  175|  7.72k|  if (padlen == 0) {
  ------------------
  |  Branch (175:7): [True: 7.43k, False: 294]
  ------------------
  176|  7.43k|    return 0;
  177|  7.43k|  }
  178|    294|  return padlen - ((frame->hd.flags & NGHTTP2_FLAG_PADDED) > 0);
  179|  7.72k|}
nghttp2_frame_data_init:
  182|    717|                             int32_t stream_id) {
  183|       |  /* At this moment, the length of DATA frame is unknown */
  184|    717|  nghttp2_frame_hd_init(&frame->hd, 0, NGHTTP2_DATA, flags, stream_id);
  185|    717|  frame->padlen = 0;
  186|    717|}
nghttp2_frame_data_free:
  188|    717|void nghttp2_frame_data_free(nghttp2_data *frame) { (void)frame; }
nghttp2_frame_priority_len:
  281|  4.23k|size_t nghttp2_frame_priority_len(uint8_t flags) {
  282|  4.23k|  if (flags & NGHTTP2_FLAG_PRIORITY) {
  ------------------
  |  Branch (282:7): [True: 810, False: 3.42k]
  ------------------
  283|    810|    return NGHTTP2_PRIORITY_SPECLEN;
  ------------------
  |  |   64|    810|#define NGHTTP2_PRIORITY_SPECLEN 5
  ------------------
  284|    810|  }
  285|       |
  286|  3.42k|  return 0;
  287|  4.23k|}
nghttp2_frame_headers_payload_nv_offset:
  289|  2.88k|size_t nghttp2_frame_headers_payload_nv_offset(nghttp2_headers *frame) {
  290|  2.88k|  return nghttp2_frame_priority_len(frame->hd.flags);
  291|  2.88k|}
nghttp2_frame_pack_headers:
  362|  2.88k|                               nghttp2_hd_deflater *deflater) {
  363|  2.88k|  size_t nv_offset;
  364|  2.88k|  int rv;
  365|  2.88k|  nghttp2_buf *buf;
  366|       |
  367|  2.88k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (367:3): [True: 0, False: 2.88k]
  |  Branch (367:3): [True: 2.88k, False: 0]
  ------------------
  368|       |
  369|  2.88k|  nv_offset = nghttp2_frame_headers_payload_nv_offset(frame);
  370|       |
  371|  2.88k|  buf = &bufs->cur->buf;
  372|       |
  373|  2.88k|  buf->pos += nv_offset;
  374|  2.88k|  buf->last = buf->pos;
  375|       |
  376|       |  /* This call will adjust buf->last to the correct position */
  377|  2.88k|  rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, frame->nva, frame->nvlen);
  378|       |
  379|  2.88k|  if (rv == NGHTTP2_ERR_BUFFER_ERROR) {
  ------------------
  |  Branch (379:7): [True: 0, False: 2.88k]
  ------------------
  380|      0|    rv = NGHTTP2_ERR_HEADER_COMP;
  381|      0|  }
  382|       |
  383|  2.88k|  buf->pos -= nv_offset;
  384|       |
  385|  2.88k|  if (rv != 0) {
  ------------------
  |  Branch (385:7): [True: 0, False: 2.88k]
  ------------------
  386|      0|    return rv;
  387|      0|  }
  388|       |
  389|  2.88k|  if (frame->hd.flags & NGHTTP2_FLAG_PRIORITY) {
  ------------------
  |  Branch (389:7): [True: 0, False: 2.88k]
  ------------------
  390|      0|    nghttp2_frame_pack_priority_spec(buf->pos, &frame->pri_spec);
  391|      0|  }
  392|       |
  393|  2.88k|  frame->padlen = 0;
  394|  2.88k|  frame->hd.length = nghttp2_bufs_len(bufs);
  395|       |
  396|  2.88k|  return frame_pack_headers_shared(bufs, &frame->hd);
  397|  2.88k|}
nghttp2_frame_unpack_priority_spec:
  409|    804|                                        const uint8_t *payload) {
  410|    804|  int32_t dep_stream_id;
  411|    804|  uint8_t exclusive;
  412|    804|  int32_t weight;
  413|       |
  414|    804|  dep_stream_id = nghttp2_get_uint32(payload) & NGHTTP2_STREAM_ID_MASK;
  ------------------
  |  |   36|    804|#define NGHTTP2_STREAM_ID_MASK ((1u << 31) - 1)
  ------------------
  415|    804|  exclusive = (payload[0] & 0x80) > 0;
  416|    804|  weight = payload[4] + 1;
  417|       |
  418|    804|  nghttp2_priority_spec_init(pri_spec, dep_stream_id, weight, exclusive);
  419|    804|}
nghttp2_frame_unpack_headers_payload:
  422|  1.34k|                                          const uint8_t *payload) {
  423|  1.34k|  if (frame->hd.flags & NGHTTP2_FLAG_PRIORITY) {
  ------------------
  |  Branch (423:7): [True: 804, False: 537]
  ------------------
  424|    804|    nghttp2_frame_unpack_priority_spec(&frame->pri_spec, payload);
  425|    804|  } else {
  426|    537|    nghttp2_priority_spec_default_init(&frame->pri_spec);
  427|    537|  }
  428|       |
  429|       |  frame->nva = NULL;
  430|  1.34k|  frame->nvlen = 0;
  431|  1.34k|}
nghttp2_frame_pack_rst_stream:
  457|  1.89k|                                   nghttp2_rst_stream *frame) {
  458|  1.89k|  nghttp2_buf *buf;
  459|       |
  460|  1.89k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (460:3): [True: 0, False: 1.89k]
  |  Branch (460:3): [True: 1.89k, False: 0]
  ------------------
  461|       |
  462|  1.89k|  buf = &bufs->head->buf;
  463|       |
  464|  1.89k|  assert(nghttp2_buf_avail(buf) >= 4);
  ------------------
  |  Branch (464:3): [True: 0, False: 1.89k]
  |  Branch (464:3): [True: 1.89k, False: 0]
  ------------------
  465|       |
  466|  1.89k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  1.89k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  467|       |
  468|  1.89k|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  469|       |
  470|  1.89k|  nghttp2_put_uint32be(buf->last, frame->error_code);
  471|  1.89k|  buf->last += 4;
  472|  1.89k|}
nghttp2_frame_unpack_rst_stream_payload:
  475|     20|                                             const uint8_t *payload) {
  476|     20|  frame->error_code = nghttp2_get_uint32(payload);
  477|     20|}
nghttp2_frame_pack_settings:
  479|  4.57k|int nghttp2_frame_pack_settings(nghttp2_bufs *bufs, nghttp2_settings *frame) {
  480|  4.57k|  nghttp2_buf *buf;
  481|       |
  482|  4.57k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (482:3): [True: 0, False: 4.57k]
  |  Branch (482:3): [True: 4.57k, False: 0]
  ------------------
  483|       |
  484|  4.57k|  buf = &bufs->head->buf;
  485|       |
  486|  4.57k|  if (nghttp2_buf_avail(buf) < frame->hd.length) {
  ------------------
  |  |   55|  4.57k|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  ------------------
  |  Branch (486:7): [True: 0, False: 4.57k]
  ------------------
  487|      0|    return NGHTTP2_ERR_FRAME_SIZE_ERROR;
  488|      0|  }
  489|       |
  490|  4.57k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  4.57k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  491|       |
  492|  4.57k|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  493|       |
  494|  4.57k|  buf->last +=
  495|  4.57k|    nghttp2_frame_pack_settings_payload(buf->last, frame->iv, frame->niv);
  496|       |
  497|  4.57k|  return 0;
  498|  4.57k|}
nghttp2_frame_pack_settings_payload:
  502|  5.10k|                                           size_t niv) {
  503|  5.10k|  size_t i;
  504|  15.5k|  for (i = 0; i < niv; ++i, buf += NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH) {
  ------------------
  |  |   61|  10.4k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (504:15): [True: 10.4k, False: 5.10k]
  ------------------
  505|  10.4k|    nghttp2_put_uint16be(buf, (uint16_t)iv[i].settings_id);
  506|  10.4k|    nghttp2_put_uint32be(buf + 2, iv[i].value);
  507|  10.4k|  }
  508|  5.10k|  return NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH * niv;
  ------------------
  |  |   61|  5.10k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  509|  5.10k|}
nghttp2_frame_unpack_settings_payload:
  513|  2.27k|                                           size_t niv) {
  514|  2.27k|  frame->iv = iv;
  515|  2.27k|  frame->niv = niv;
  516|  2.27k|}
nghttp2_frame_unpack_settings_entry:
  519|  2.18k|                                         const uint8_t *payload) {
  520|  2.18k|  iv->settings_id = nghttp2_get_uint16(&payload[0]);
  521|  2.18k|  iv->value = nghttp2_get_uint32(&payload[2]);
  522|  2.18k|}
nghttp2_frame_unpack_settings_payload2:
  528|     43|                                           nghttp2_mem *mem) {
  529|     43|  size_t i;
  530|       |
  531|     43|  *niv_ptr = payloadlen / NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH;
  ------------------
  |  |   61|     43|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  532|       |
  533|     43|  if (*niv_ptr == 0) {
  ------------------
  |  Branch (533:7): [True: 0, False: 43]
  ------------------
  534|      0|    *iv_ptr = NULL;
  535|       |
  536|      0|    return 0;
  537|      0|  }
  538|       |
  539|     43|  *iv_ptr =
  540|     43|    nghttp2_mem_malloc(mem, (*niv_ptr) * sizeof(nghttp2_settings_entry));
  541|       |
  542|     43|  if (*iv_ptr == NULL) {
  ------------------
  |  Branch (542:7): [True: 0, False: 43]
  ------------------
  543|      0|    return NGHTTP2_ERR_NOMEM;
  544|      0|  }
  545|       |
  546|    172|  for (i = 0; i < *niv_ptr; ++i) {
  ------------------
  |  Branch (546:15): [True: 129, False: 43]
  ------------------
  547|    129|    size_t off = i * NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH;
  ------------------
  |  |   61|    129|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  548|    129|    nghttp2_frame_unpack_settings_entry(&(*iv_ptr)[i], &payload[off]);
  549|    129|  }
  550|       |
  551|     43|  return 0;
  552|     43|}
nghttp2_frame_unpack_push_promise_payload:
  590|    174|                                               const uint8_t *payload) {
  591|    174|  frame->promised_stream_id =
  592|    174|    nghttp2_get_uint32(payload) & NGHTTP2_STREAM_ID_MASK;
  ------------------
  |  |   36|    174|#define NGHTTP2_STREAM_ID_MASK ((1u << 31) - 1)
  ------------------
  593|       |  frame->nva = NULL;
  594|    174|  frame->nvlen = 0;
  595|    174|}
nghttp2_frame_pack_ping:
  597|      2|void nghttp2_frame_pack_ping(nghttp2_bufs *bufs, nghttp2_ping *frame) {
  598|      2|  nghttp2_buf *buf;
  599|       |
  600|      2|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (600:3): [True: 0, False: 2]
  |  Branch (600:3): [True: 2, False: 0]
  ------------------
  601|       |
  602|      2|  buf = &bufs->head->buf;
  603|       |
  604|      2|  assert(nghttp2_buf_avail(buf) >= 8);
  ------------------
  |  Branch (604:3): [True: 0, False: 2]
  |  Branch (604:3): [True: 2, False: 0]
  ------------------
  605|       |
  606|      2|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|      2|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  607|       |
  608|      2|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  609|       |
  610|      2|  buf->last =
  611|      2|    nghttp2_cpymem(buf->last, frame->opaque_data, sizeof(frame->opaque_data));
  612|      2|}
nghttp2_frame_unpack_ping_payload:
  615|      6|                                       const uint8_t *payload) {
  616|      6|  memcpy(frame->opaque_data, payload, sizeof(frame->opaque_data));
  617|      6|}
nghttp2_frame_pack_goaway:
  619|  1.49k|int nghttp2_frame_pack_goaway(nghttp2_bufs *bufs, nghttp2_goaway *frame) {
  620|  1.49k|  int rv;
  621|  1.49k|  nghttp2_buf *buf;
  622|       |
  623|  1.49k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (623:3): [True: 0, False: 1.49k]
  |  Branch (623:3): [True: 1.49k, False: 0]
  ------------------
  624|       |
  625|  1.49k|  buf = &bufs->head->buf;
  626|       |
  627|  1.49k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  1.49k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  628|       |
  629|  1.49k|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  630|       |
  631|  1.49k|  nghttp2_put_uint32be(buf->last, (uint32_t)frame->last_stream_id);
  632|  1.49k|  buf->last += 4;
  633|       |
  634|  1.49k|  nghttp2_put_uint32be(buf->last, frame->error_code);
  635|  1.49k|  buf->last += 4;
  636|       |
  637|  1.49k|  rv = nghttp2_bufs_add(bufs, frame->opaque_data, frame->opaque_data_len);
  638|       |
  639|  1.49k|  if (rv == NGHTTP2_ERR_BUFFER_ERROR) {
  ------------------
  |  Branch (639:7): [True: 0, False: 1.49k]
  ------------------
  640|      0|    return NGHTTP2_ERR_FRAME_SIZE_ERROR;
  641|      0|  }
  642|       |
  643|  1.49k|  if (rv != 0) {
  ------------------
  |  Branch (643:7): [True: 0, False: 1.49k]
  ------------------
  644|      0|    return rv;
  645|      0|  }
  646|       |
  647|  1.49k|  return 0;
  648|  1.49k|}
nghttp2_frame_unpack_goaway_payload:
  653|     55|                                         size_t var_gift_payloadlen) {
  654|     55|  frame->last_stream_id = nghttp2_get_uint32(payload) & NGHTTP2_STREAM_ID_MASK;
  ------------------
  |  |   36|     55|#define NGHTTP2_STREAM_ID_MASK ((1u << 31) - 1)
  ------------------
  655|     55|  frame->error_code = nghttp2_get_uint32(payload + 4);
  656|       |
  657|     55|  frame->opaque_data = var_gift_payload;
  658|     55|  frame->opaque_data_len = var_gift_payloadlen;
  659|     55|}
nghttp2_frame_pack_window_update:
  692|  2.94k|                                      nghttp2_window_update *frame) {
  693|  2.94k|  nghttp2_buf *buf;
  694|       |
  695|  2.94k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (695:3): [True: 0, False: 2.94k]
  |  Branch (695:3): [True: 2.94k, False: 0]
  ------------------
  696|       |
  697|  2.94k|  buf = &bufs->head->buf;
  698|       |
  699|  2.94k|  assert(nghttp2_buf_avail(buf) >= 4);
  ------------------
  |  Branch (699:3): [True: 0, False: 2.94k]
  |  Branch (699:3): [True: 2.94k, False: 0]
  ------------------
  700|       |
  701|  2.94k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  2.94k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  702|       |
  703|  2.94k|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  704|       |
  705|  2.94k|  nghttp2_put_uint32be(buf->last, (uint32_t)frame->window_size_increment);
  706|  2.94k|  buf->last += 4;
  707|  2.94k|}
nghttp2_frame_unpack_window_update_payload:
  710|    120|                                                const uint8_t *payload) {
  711|    120|  frame->window_size_increment =
  712|    120|    nghttp2_get_uint32(payload) & NGHTTP2_WINDOW_SIZE_INCREMENT_MASK;
  ------------------
  |  |   37|    120|#define NGHTTP2_WINDOW_SIZE_INCREMENT_MASK ((1u << 31) - 1)
  ------------------
  713|    120|}
nghttp2_frame_iv_copy:
  951|  5.88k|                                              size_t niv, nghttp2_mem *mem) {
  952|  5.88k|  nghttp2_settings_entry *iv_copy;
  953|  5.88k|  size_t len = niv * sizeof(nghttp2_settings_entry);
  954|       |
  955|  5.88k|  if (len == 0) {
  ------------------
  |  Branch (955:7): [True: 0, False: 5.88k]
  ------------------
  956|      0|    return NULL;
  957|      0|  }
  958|       |
  959|  5.88k|  iv_copy = nghttp2_mem_malloc(mem, len);
  960|       |
  961|  5.88k|  if (iv_copy == NULL) {
  ------------------
  |  Branch (961:7): [True: 0, False: 5.88k]
  ------------------
  962|      0|    return NULL;
  963|      0|  }
  964|       |
  965|  5.88k|  memcpy(iv_copy, iv, len);
  966|       |
  967|  5.88k|  return iv_copy;
  968|  5.88k|}
nghttp2_nv_array_del:
  992|  4.41k|void nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem) {
  993|  4.41k|  nghttp2_mem_free(mem, nva);
  994|  4.41k|}
nghttp2_nv_array_copy:
 1046|  2.88k|                          size_t nvlen, nghttp2_mem *mem) {
 1047|  2.88k|  size_t i;
 1048|  2.88k|  uint8_t *data = NULL;
 1049|  2.88k|  size_t buflen = 0;
 1050|  2.88k|  nghttp2_nv *p;
 1051|       |
 1052|  2.88k|  if (nvlen == 0) {
  ------------------
  |  Branch (1052:7): [True: 0, False: 2.88k]
  ------------------
 1053|      0|    *nva_ptr = NULL;
 1054|       |
 1055|      0|    return 0;
 1056|      0|  }
 1057|       |
 1058|  37.2k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (1058:15): [True: 34.3k, False: 2.88k]
  ------------------
 1059|       |    /* + 1 for null-termination */
 1060|  34.3k|    if ((nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_NAME) == 0) {
  ------------------
  |  Branch (1060:9): [True: 34.3k, False: 0]
  ------------------
 1061|  34.3k|      buflen += nva[i].namelen + 1;
 1062|  34.3k|    }
 1063|  34.3k|    if ((nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_VALUE) == 0) {
  ------------------
  |  Branch (1063:9): [True: 34.3k, False: 0]
  ------------------
 1064|  34.3k|      buflen += nva[i].valuelen + 1;
 1065|  34.3k|    }
 1066|  34.3k|  }
 1067|       |
 1068|  2.88k|  buflen += sizeof(nghttp2_nv) * nvlen;
 1069|       |
 1070|  2.88k|  *nva_ptr = nghttp2_mem_malloc(mem, buflen);
 1071|       |
 1072|  2.88k|  if (*nva_ptr == NULL) {
  ------------------
  |  Branch (1072:7): [True: 0, False: 2.88k]
  ------------------
 1073|      0|    return NGHTTP2_ERR_NOMEM;
 1074|      0|  }
 1075|       |
 1076|  2.88k|  p = *nva_ptr;
 1077|  2.88k|  data = (uint8_t *)(*nva_ptr) + sizeof(nghttp2_nv) * nvlen;
 1078|       |
 1079|  37.2k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (1079:15): [True: 34.3k, False: 2.88k]
  ------------------
 1080|  34.3k|    p->flags = nva[i].flags;
 1081|       |
 1082|  34.3k|    if (nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_NAME) {
  ------------------
  |  Branch (1082:9): [True: 0, False: 34.3k]
  ------------------
 1083|      0|      p->name = nva[i].name;
 1084|      0|      p->namelen = nva[i].namelen;
 1085|  34.3k|    } else {
 1086|  34.3k|      if (nva[i].namelen) {
  ------------------
  |  Branch (1086:11): [True: 34.0k, False: 276]
  ------------------
 1087|  34.0k|        memcpy(data, nva[i].name, nva[i].namelen);
 1088|  34.0k|      }
 1089|  34.3k|      p->name = data;
 1090|  34.3k|      p->namelen = nva[i].namelen;
 1091|  34.3k|      data[p->namelen] = '\0';
 1092|  34.3k|      nghttp2_downcase(p->name, p->namelen);
 1093|  34.3k|      data += nva[i].namelen + 1;
 1094|  34.3k|    }
 1095|       |
 1096|  34.3k|    if (nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_VALUE) {
  ------------------
  |  Branch (1096:9): [True: 0, False: 34.3k]
  ------------------
 1097|      0|      p->value = nva[i].value;
 1098|      0|      p->valuelen = nva[i].valuelen;
 1099|  34.3k|    } else {
 1100|  34.3k|      if (nva[i].valuelen) {
  ------------------
  |  Branch (1100:11): [True: 31.0k, False: 3.31k]
  ------------------
 1101|  31.0k|        memcpy(data, nva[i].value, nva[i].valuelen);
 1102|  31.0k|      }
 1103|  34.3k|      p->value = data;
 1104|  34.3k|      p->valuelen = nva[i].valuelen;
 1105|  34.3k|      data[p->valuelen] = '\0';
 1106|  34.3k|      data += nva[i].valuelen + 1;
 1107|  34.3k|    }
 1108|       |
 1109|  34.3k|    ++p;
 1110|  34.3k|  }
 1111|  2.88k|  return 0;
 1112|  2.88k|}
nghttp2_iv_check:
 1114|  5.61k|int nghttp2_iv_check(const nghttp2_settings_entry *iv, size_t niv) {
 1115|  5.61k|  size_t i;
 1116|  16.0k|  for (i = 0; i < niv; ++i) {
  ------------------
  |  Branch (1116:15): [True: 10.4k, False: 5.61k]
  ------------------
 1117|  10.4k|    switch (iv[i].settings_id) {
  ------------------
  |  Branch (1117:13): [True: 10.4k, False: 0]
  ------------------
 1118|      0|    case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (1118:5): [True: 0, False: 10.4k]
  ------------------
 1119|      0|      break;
 1120|  3.47k|    case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (1120:5): [True: 3.47k, False: 6.94k]
  ------------------
 1121|  3.47k|      break;
 1122|  3.47k|    case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (1122:5): [True: 3.47k, False: 6.94k]
  ------------------
 1123|  3.47k|      if (iv[i].value != 0 && iv[i].value != 1) {
  ------------------
  |  Branch (1123:11): [True: 0, False: 3.47k]
  |  Branch (1123:31): [True: 0, False: 0]
  ------------------
 1124|      0|        return 0;
 1125|      0|      }
 1126|  3.47k|      break;
 1127|  3.47k|    case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (1127:5): [True: 3.47k, False: 6.94k]
  ------------------
 1128|  3.47k|      if (iv[i].value > (uint32_t)NGHTTP2_MAX_WINDOW_SIZE) {
  ------------------
  |  |  224|  3.47k|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (1128:11): [True: 0, False: 3.47k]
  ------------------
 1129|      0|        return 0;
 1130|      0|      }
 1131|  3.47k|      break;
 1132|  3.47k|    case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (1132:5): [True: 0, False: 10.4k]
  ------------------
 1133|      0|      if (iv[i].value < NGHTTP2_MAX_FRAME_SIZE_MIN ||
  ------------------
  |  |   43|      0|#define NGHTTP2_MAX_FRAME_SIZE_MIN (1 << 14)
  ------------------
  |  Branch (1133:11): [True: 0, False: 0]
  ------------------
 1134|      0|          iv[i].value > NGHTTP2_MAX_FRAME_SIZE_MAX) {
  ------------------
  |  |   42|      0|#define NGHTTP2_MAX_FRAME_SIZE_MAX ((1 << 24) - 1)
  ------------------
  |  Branch (1134:11): [True: 0, False: 0]
  ------------------
 1135|      0|        return 0;
 1136|      0|      }
 1137|      0|      break;
 1138|      0|    case NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE:
  ------------------
  |  Branch (1138:5): [True: 0, False: 10.4k]
  ------------------
 1139|      0|      break;
 1140|      0|    case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (1140:5): [True: 0, False: 10.4k]
  ------------------
 1141|      0|      if (iv[i].value != 0 && iv[i].value != 1) {
  ------------------
  |  Branch (1141:11): [True: 0, False: 0]
  |  Branch (1141:31): [True: 0, False: 0]
  ------------------
 1142|      0|        return 0;
 1143|      0|      }
 1144|      0|      break;
 1145|      0|    case NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES:
  ------------------
  |  Branch (1145:5): [True: 0, False: 10.4k]
  ------------------
 1146|      0|      if (iv[i].value != 0 && iv[i].value != 1) {
  ------------------
  |  Branch (1146:11): [True: 0, False: 0]
  |  Branch (1146:31): [True: 0, False: 0]
  ------------------
 1147|      0|        return 0;
 1148|      0|      }
 1149|      0|      break;
 1150|  10.4k|    }
 1151|  10.4k|  }
 1152|  5.61k|  return 1;
 1153|  5.61k|}
nghttp2_frame_add_pad:
 1185|  3.79k|                           size_t padlen, int framehd_only) {
 1186|  3.79k|  nghttp2_buf *buf;
 1187|       |
 1188|  3.79k|  if (padlen == 0) {
  ------------------
  |  Branch (1188:7): [True: 3.79k, False: 0]
  ------------------
 1189|  3.79k|    DEBUGF("send: padlen = 0, nothing to do\n");
  ------------------
  |  |   39|  3.79k|    do {                                                                       \
  |  |   40|  3.79k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3.79k]
  |  |  ------------------
  ------------------
 1190|       |
 1191|  3.79k|    return;
 1192|  3.79k|  }
 1193|       |
 1194|       |  /*
 1195|       |   * We have arranged bufs like this:
 1196|       |   *
 1197|       |   *  0                   1                   2                   3
 1198|       |   *  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 1199|       |   * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 1200|       |   * | |Frame header     | Frame payload...                          :
 1201|       |   * +-+-----------------+-------------------------------------------+
 1202|       |   * | |Frame header     | Frame payload...                          :
 1203|       |   * +-+-----------------+-------------------------------------------+
 1204|       |   * | |Frame header     | Frame payload...                          :
 1205|       |   * +-+-----------------+-------------------------------------------+
 1206|       |   *
 1207|       |   * We arranged padding so that it is included in the first frame
 1208|       |   * completely.  For padded frame, we are going to adjust buf->pos of
 1209|       |   * frame which includes padding and serialize (memmove) frame header
 1210|       |   * in the correct position.  Also extends buf->last to include
 1211|       |   * padding.
 1212|       |   */
 1213|       |
 1214|      0|  buf = &bufs->head->buf;
 1215|       |
 1216|      0|  assert(nghttp2_buf_avail(buf) >= padlen - 1);
  ------------------
  |  Branch (1216:3): [True: 0, False: 0]
  |  Branch (1216:3): [True: 0, False: 0]
  ------------------
 1217|       |
 1218|      0|  frame_set_pad(buf, padlen, framehd_only);
 1219|       |
 1220|      0|  hd->length += padlen;
 1221|      0|  hd->flags |= NGHTTP2_FLAG_PADDED;
 1222|       |
 1223|      0|  DEBUGF("send: final payloadlen=%zu, padlen=%zu\n", hd->length, padlen);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1224|      0|}
nghttp2_frame.c:frame_pack_headers_shared:
  306|  2.88k|                                     nghttp2_frame_hd *frame_hd) {
  307|  2.88k|  nghttp2_buf *buf;
  308|  2.88k|  nghttp2_buf_chain *ci, *ce;
  309|  2.88k|  nghttp2_frame_hd hd;
  310|       |
  311|  2.88k|  buf = &bufs->head->buf;
  312|       |
  313|  2.88k|  hd = *frame_hd;
  314|  2.88k|  hd.length = nghttp2_buf_len(buf);
  ------------------
  |  |   54|  2.88k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
  315|       |
  316|  2.88k|  DEBUGF("send: HEADERS/PUSH_PROMISE, payloadlen=%zu\n", hd.length);
  ------------------
  |  |   39|  2.88k|    do {                                                                       \
  |  |   40|  2.88k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.88k]
  |  |  ------------------
  ------------------
  317|       |
  318|       |  /* We have multiple frame buffers, which means one or more
  319|       |     CONTINUATION frame is involved. Remove END_HEADERS flag from the
  320|       |     first frame. */
  321|  2.88k|  if (bufs->head != bufs->cur) {
  ------------------
  |  Branch (321:7): [True: 0, False: 2.88k]
  ------------------
  322|      0|    hd.flags = (uint8_t)(hd.flags & ~NGHTTP2_FLAG_END_HEADERS);
  323|      0|  }
  324|       |
  325|  2.88k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  2.88k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  326|  2.88k|  nghttp2_frame_pack_frame_hd(buf->pos, &hd);
  327|       |
  328|  2.88k|  if (bufs->head != bufs->cur) {
  ------------------
  |  Branch (328:7): [True: 0, False: 2.88k]
  ------------------
  329|       |    /* 2nd and later frames are CONTINUATION frames. */
  330|      0|    hd.type = NGHTTP2_CONTINUATION;
  331|       |    /* We don't have no flags except for last CONTINUATION */
  332|      0|    hd.flags = NGHTTP2_FLAG_NONE;
  333|       |
  334|      0|    ce = bufs->cur;
  335|       |
  336|      0|    for (ci = bufs->head->next; ci != ce; ci = ci->next) {
  ------------------
  |  Branch (336:33): [True: 0, False: 0]
  ------------------
  337|      0|      buf = &ci->buf;
  338|       |
  339|      0|      hd.length = nghttp2_buf_len(buf);
  ------------------
  |  |   54|      0|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
  340|       |
  341|      0|      DEBUGF("send: int CONTINUATION, payloadlen=%zu\n", hd.length);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  342|       |
  343|      0|      buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|      0|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  344|      0|      nghttp2_frame_pack_frame_hd(buf->pos, &hd);
  345|      0|    }
  346|       |
  347|      0|    buf = &ci->buf;
  348|      0|    hd.length = nghttp2_buf_len(buf);
  ------------------
  |  |   54|      0|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
  349|       |    /* Set END_HEADERS flag for last CONTINUATION */
  350|      0|    hd.flags = NGHTTP2_FLAG_END_HEADERS;
  351|       |
  352|      0|    DEBUGF("send: last CONTINUATION, payloadlen=%zu\n", hd.length);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  353|       |
  354|      0|    buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|      0|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  355|      0|    nghttp2_frame_pack_frame_hd(buf->pos, &hd);
  356|      0|  }
  357|       |
  358|  2.88k|  return 0;
  359|  2.88k|}

nghttp2_hd_entry_init:
  489|  15.7k|void nghttp2_hd_entry_init(nghttp2_hd_entry *ent, nghttp2_hd_nv *nv) {
  490|  15.7k|  ent->nv = *nv;
  491|  15.7k|  ent->cnv.name = nv->name->base;
  492|  15.7k|  ent->cnv.namelen = nv->name->len;
  493|  15.7k|  ent->cnv.value = nv->value->base;
  494|  15.7k|  ent->cnv.valuelen = nv->value->len;
  495|  15.7k|  ent->cnv.flags = nv->flags;
  496|  15.7k|  ent->next = NULL;
  497|  15.7k|  ent->hash = 0;
  498|       |
  499|  15.7k|  nghttp2_rcbuf_incref(ent->nv.name);
  500|  15.7k|  nghttp2_rcbuf_incref(ent->nv.value);
  501|  15.7k|}
nghttp2_hd_entry_free:
  503|  15.7k|void nghttp2_hd_entry_free(nghttp2_hd_entry *ent) {
  504|  15.7k|  nghttp2_rcbuf_decref(ent->nv.value);
  505|  15.7k|  nghttp2_rcbuf_decref(ent->nv.name);
  506|  15.7k|}
nghttp2_hd_deflate_init2:
  716|  2.94k|                             nghttp2_mem *mem) {
  717|  2.94k|  int rv;
  718|  2.94k|  rv = hd_context_init(&deflater->ctx, mem);
  719|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (719:7): [True: 0, False: 2.94k]
  ------------------
  720|      0|    return rv;
  721|      0|  }
  722|       |
  723|  2.94k|  hd_map_init(&deflater->map);
  724|       |
  725|  2.94k|  if (max_deflate_dynamic_table_size < NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE) {
  ------------------
  |  |   39|  2.94k|#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
  |  |  ------------------
  |  |  |  |  244|  2.94k|#define NGHTTP2_DEFAULT_HEADER_TABLE_SIZE (1 << 12)
  |  |  ------------------
  ------------------
  |  Branch (725:7): [True: 0, False: 2.94k]
  ------------------
  726|      0|    deflater->notify_table_size_change = 1;
  727|      0|    deflater->ctx.hd_table_bufsize_max = max_deflate_dynamic_table_size;
  728|  2.94k|  } else {
  729|  2.94k|    deflater->notify_table_size_change = 0;
  730|  2.94k|  }
  731|       |
  732|  2.94k|  deflater->deflate_hd_table_bufsize_max = max_deflate_dynamic_table_size;
  733|  2.94k|  deflater->min_hd_table_bufsize_max = UINT32_MAX;
  734|       |
  735|  2.94k|  return 0;
  736|  2.94k|}
nghttp2_hd_inflate_init:
  738|  2.94k|int nghttp2_hd_inflate_init(nghttp2_hd_inflater *inflater, nghttp2_mem *mem) {
  739|  2.94k|  int rv;
  740|       |
  741|  2.94k|  rv = hd_context_init(&inflater->ctx, mem);
  742|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (742:7): [True: 0, False: 2.94k]
  ------------------
  743|      0|    goto fail;
  744|      0|  }
  745|       |
  746|  2.94k|  inflater->settings_hd_table_bufsize_max = NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE;
  ------------------
  |  |   39|  2.94k|#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
  |  |  ------------------
  |  |  |  |  244|  2.94k|#define NGHTTP2_DEFAULT_HEADER_TABLE_SIZE (1 << 12)
  |  |  ------------------
  ------------------
  747|  2.94k|  inflater->min_hd_table_bufsize_max = UINT32_MAX;
  748|       |
  749|  2.94k|  inflater->nv_name_keep = NULL;
  750|  2.94k|  inflater->nv_value_keep = NULL;
  751|       |
  752|  2.94k|  inflater->opcode = NGHTTP2_HD_OPCODE_NONE;
  753|  2.94k|  inflater->state = NGHTTP2_HD_STATE_INFLATE_START;
  754|       |
  755|  2.94k|  nghttp2_buf_init(&inflater->namebuf);
  756|  2.94k|  nghttp2_buf_init(&inflater->valuebuf);
  757|       |
  758|  2.94k|  inflater->namercbuf = NULL;
  759|  2.94k|  inflater->valuercbuf = NULL;
  760|       |
  761|  2.94k|  inflater->huffman_encoded = 0;
  762|  2.94k|  inflater->index = 0;
  763|  2.94k|  inflater->left = 0;
  764|  2.94k|  inflater->shift = 0;
  765|  2.94k|  inflater->index_required = 0;
  766|  2.94k|  inflater->no_index = 0;
  767|       |
  768|  2.94k|  return 0;
  769|       |
  770|      0|fail:
  771|      0|  return rv;
  772|  2.94k|}
nghttp2_hd_deflate_free:
  782|  2.94k|void nghttp2_hd_deflate_free(nghttp2_hd_deflater *deflater) {
  783|  2.94k|  hd_context_free(&deflater->ctx);
  784|  2.94k|}
nghttp2_hd_inflate_free:
  786|  2.94k|void nghttp2_hd_inflate_free(nghttp2_hd_inflater *inflater) {
  787|  2.94k|  hd_inflate_keep_free(inflater);
  788|       |
  789|  2.94k|  nghttp2_rcbuf_decref(inflater->valuercbuf);
  790|  2.94k|  nghttp2_rcbuf_decref(inflater->namercbuf);
  791|       |
  792|  2.94k|  hd_context_free(&inflater->ctx);
  793|  2.94k|}
nghttp2_hd_deflate_change_table_size:
 1259|    164|  nghttp2_hd_deflater *deflater, size_t settings_max_dynamic_table_size) {
 1260|    164|  size_t next_bufsize = nghttp2_min_size(
 1261|    164|    settings_max_dynamic_table_size, deflater->deflate_hd_table_bufsize_max);
 1262|       |
 1263|    164|  deflater->ctx.hd_table_bufsize_max = next_bufsize;
 1264|       |
 1265|    164|  deflater->min_hd_table_bufsize_max =
 1266|    164|    nghttp2_min_size(deflater->min_hd_table_bufsize_max, next_bufsize);
 1267|       |
 1268|    164|  deflater->notify_table_size_change = 1;
 1269|       |
 1270|    164|  hd_context_shrink_table_size(&deflater->ctx, &deflater->map);
 1271|    164|  return 0;
 1272|    164|}
nghttp2_hd_table_get:
 1314|  32.0k|nghttp2_hd_nv nghttp2_hd_table_get(nghttp2_hd_context *context, size_t idx) {
 1315|  32.0k|  assert(INDEX_RANGE_VALID(context, idx));
  ------------------
  |  Branch (1315:3): [True: 0, False: 32.0k]
  |  Branch (1315:3): [True: 32.0k, False: 0]
  ------------------
 1316|  32.0k|  if (idx >= NGHTTP2_STATIC_TABLE_LENGTH) {
  ------------------
  |  |   53|  32.0k|#define NGHTTP2_STATIC_TABLE_LENGTH 61
  ------------------
  |  Branch (1316:7): [True: 5.72k, False: 26.2k]
  ------------------
 1317|  5.72k|    return hd_ringbuf_get(&context->hd_table, idx - NGHTTP2_STATIC_TABLE_LENGTH)
  ------------------
  |  |   53|  5.72k|#define NGHTTP2_STATIC_TABLE_LENGTH 61
  ------------------
 1318|  5.72k|      ->nv;
 1319|  26.2k|  } else {
 1320|  26.2k|    const nghttp2_hd_static_entry *ent = &static_table[idx];
 1321|  26.2k|    nghttp2_hd_nv nv = {(nghttp2_rcbuf *)&ent->name,
 1322|  26.2k|                        (nghttp2_rcbuf *)&ent->value, ent->token,
 1323|  26.2k|                        NGHTTP2_NV_FLAG_NONE};
 1324|  26.2k|    return nv;
 1325|  26.2k|  }
 1326|  32.0k|}
nghttp2_hd_deflate_hd_bufs:
 1453|  2.88k|                               size_t nvlen) {
 1454|  2.88k|  size_t i;
 1455|  2.88k|  int rv = 0;
 1456|       |
 1457|  2.88k|  if (deflater->ctx.bad) {
  ------------------
  |  Branch (1457:7): [True: 0, False: 2.88k]
  ------------------
 1458|      0|    return NGHTTP2_ERR_HEADER_COMP;
 1459|      0|  }
 1460|       |
 1461|  2.88k|  if (deflater->notify_table_size_change) {
  ------------------
  |  Branch (1461:7): [True: 0, False: 2.88k]
  ------------------
 1462|      0|    size_t min_hd_table_bufsize_max;
 1463|       |
 1464|      0|    min_hd_table_bufsize_max = deflater->min_hd_table_bufsize_max;
 1465|       |
 1466|      0|    deflater->notify_table_size_change = 0;
 1467|      0|    deflater->min_hd_table_bufsize_max = UINT32_MAX;
 1468|       |
 1469|      0|    if (deflater->ctx.hd_table_bufsize_max > min_hd_table_bufsize_max) {
  ------------------
  |  Branch (1469:9): [True: 0, False: 0]
  ------------------
 1470|      0|      rv = emit_table_size(bufs, min_hd_table_bufsize_max);
 1471|       |
 1472|      0|      if (rv != 0) {
  ------------------
  |  Branch (1472:11): [True: 0, False: 0]
  ------------------
 1473|      0|        goto fail;
 1474|      0|      }
 1475|      0|    }
 1476|       |
 1477|      0|    rv = emit_table_size(bufs, deflater->ctx.hd_table_bufsize_max);
 1478|       |
 1479|      0|    if (rv != 0) {
  ------------------
  |  Branch (1479:9): [True: 0, False: 0]
  ------------------
 1480|      0|      goto fail;
 1481|      0|    }
 1482|      0|  }
 1483|       |
 1484|  37.2k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (1484:15): [True: 34.3k, False: 2.88k]
  ------------------
 1485|  34.3k|    rv = deflate_nv(deflater, bufs, &nv[i]);
 1486|  34.3k|    if (rv != 0) {
  ------------------
  |  Branch (1486:9): [True: 0, False: 34.3k]
  ------------------
 1487|      0|      goto fail;
 1488|      0|    }
 1489|  34.3k|  }
 1490|       |
 1491|  2.88k|  DEBUGF("deflatehd: all input name/value pairs were deflated\n");
  ------------------
  |  |   39|  2.88k|    do {                                                                       \
  |  |   40|  2.88k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.88k]
  |  |  ------------------
  ------------------
 1492|       |
 1493|  2.88k|  return 0;
 1494|      0|fail:
 1495|      0|  DEBUGF("deflatehd: error return %d\n", rv);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1496|       |
 1497|      0|  deflater->ctx.bad = 1;
 1498|      0|  return rv;
 1499|  2.88k|}
nghttp2_hd_deflate_bound:
 1579|  2.88k|                                const nghttp2_nv *nva, size_t nvlen) {
 1580|  2.88k|  size_t n = 0;
 1581|  2.88k|  size_t i;
 1582|  2.88k|  (void)deflater;
 1583|       |
 1584|       |  /* Possible Maximum Header Table Size Change.  Encoding (1u << 31) -
 1585|       |     1 using 4 bit prefix requires 6 bytes.  We may emit this at most
 1586|       |     twice. */
 1587|  2.88k|  n += 12;
 1588|       |
 1589|       |  /* Use Literal Header Field without indexing - New Name, since it is
 1590|       |     most space consuming format.  Also we choose the less one between
 1591|       |     non-huffman and huffman, so using literal byte count is
 1592|       |     sufficient for upper bound.
 1593|       |
 1594|       |     Encoding (1u << 31) - 1 using 7 bit prefix requires 6 bytes.  We
 1595|       |     need 2 of this for |nvlen| header fields. */
 1596|  2.88k|  n += 6 * 2 * nvlen;
 1597|       |
 1598|  37.2k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (1598:15): [True: 34.3k, False: 2.88k]
  ------------------
 1599|  34.3k|    n += nva[i].namelen + nva[i].valuelen;
 1600|  34.3k|  }
 1601|       |
 1602|  2.88k|  return n;
 1603|  2.88k|}
nghttp2_hd_inflate_hd_nv:
 1904|  32.7k|                                       size_t inlen, int in_final) {
 1905|  32.7k|  nghttp2_ssize rv = 0;
 1906|  32.7k|  const uint8_t *first = in;
 1907|  32.7k|  const uint8_t *last = in + inlen;
 1908|  32.7k|  int rfin = 0;
 1909|  32.7k|  int busy = 0;
 1910|  32.7k|  nghttp2_mem *mem;
 1911|       |
 1912|  32.7k|  mem = inflater->ctx.mem;
 1913|       |
 1914|  32.7k|  if (inflater->ctx.bad) {
  ------------------
  |  Branch (1914:7): [True: 0, False: 32.7k]
  ------------------
 1915|      0|    return NGHTTP2_ERR_HEADER_COMP;
 1916|      0|  }
 1917|       |
 1918|  32.7k|  DEBUGF("inflatehd: start state=%d\n", inflater->state);
  ------------------
  |  |   39|  32.7k|    do {                                                                       \
  |  |   40|  32.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 32.7k]
  |  |  ------------------
  ------------------
 1919|  32.7k|  hd_inflate_keep_free(inflater);
 1920|  32.7k|  *inflate_flags = NGHTTP2_HD_INFLATE_NONE;
 1921|  95.4k|  for (; in != last || busy;) {
  ------------------
  |  Branch (1921:10): [True: 94.4k, False: 988]
  |  Branch (1921:24): [True: 223, False: 765]
  ------------------
 1922|  94.6k|    busy = 0;
 1923|  94.6k|    switch (inflater->state) {
  ------------------
  |  Branch (1923:13): [True: 94.6k, False: 0]
  ------------------
 1924|      0|    case NGHTTP2_HD_STATE_EXPECT_TABLE_SIZE:
  ------------------
  |  Branch (1924:5): [True: 0, False: 94.6k]
  ------------------
 1925|      0|      if ((*in & 0xe0u) != 0x20u) {
  ------------------
  |  Branch (1925:11): [True: 0, False: 0]
  ------------------
 1926|      0|        DEBUGF("inflatehd: header table size change was expected, but saw "
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1927|      0|               "0x%02x as first byte",
 1928|      0|               *in);
 1929|      0|        rv = NGHTTP2_ERR_HEADER_COMP;
 1930|      0|        goto fail;
 1931|      0|      }
 1932|       |    /* fall through */
 1933|  2.35k|    case NGHTTP2_HD_STATE_INFLATE_START:
  ------------------
  |  Branch (1933:5): [True: 2.35k, False: 92.3k]
  ------------------
 1934|  31.4k|    case NGHTTP2_HD_STATE_OPCODE:
  ------------------
  |  Branch (1934:5): [True: 29.1k, False: 65.5k]
  ------------------
 1935|  31.4k|      if ((*in & 0xe0u) == 0x20u) {
  ------------------
  |  Branch (1935:11): [True: 1.10k, False: 30.3k]
  ------------------
 1936|  1.10k|        DEBUGF("inflatehd: header table size change\n");
  ------------------
  |  |   39|  1.10k|    do {                                                                       \
  |  |   40|  1.10k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.10k]
  |  |  ------------------
  ------------------
 1937|  1.10k|        if (inflater->state == NGHTTP2_HD_STATE_OPCODE) {
  ------------------
  |  Branch (1937:13): [True: 55, False: 1.05k]
  ------------------
 1938|     55|          DEBUGF("inflatehd: header table size change must appear at the head "
  ------------------
  |  |   39|     55|    do {                                                                       \
  |  |   40|     55|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 55]
  |  |  ------------------
  ------------------
 1939|     55|                 "of header block\n");
 1940|     55|          rv = NGHTTP2_ERR_HEADER_COMP;
 1941|     55|          goto fail;
 1942|     55|        }
 1943|  1.05k|        inflater->opcode = NGHTTP2_HD_OPCODE_INDEXED;
 1944|  1.05k|        inflater->state = NGHTTP2_HD_STATE_READ_TABLE_SIZE;
 1945|  30.3k|      } else if (*in & 0x80u) {
  ------------------
  |  Branch (1945:18): [True: 18.9k, False: 11.4k]
  ------------------
 1946|  18.9k|        DEBUGF("inflatehd: indexed repr\n");
  ------------------
  |  |   39|  18.9k|    do {                                                                       \
  |  |   40|  18.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 18.9k]
  |  |  ------------------
  ------------------
 1947|  18.9k|        inflater->opcode = NGHTTP2_HD_OPCODE_INDEXED;
 1948|  18.9k|        inflater->state = NGHTTP2_HD_STATE_READ_INDEX;
 1949|  18.9k|      } else {
 1950|  11.4k|        if (*in == 0x40u || *in == 0 || *in == 0x10u) {
  ------------------
  |  Branch (1950:13): [True: 679, False: 10.7k]
  |  Branch (1950:29): [True: 7.29k, False: 3.46k]
  |  Branch (1950:41): [True: 406, False: 3.05k]
  ------------------
 1951|  8.38k|          DEBUGF("inflatehd: literal header repr - new name\n");
  ------------------
  |  |   39|  8.38k|    do {                                                                       \
  |  |   40|  8.38k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 8.38k]
  |  |  ------------------
  ------------------
 1952|  8.38k|          inflater->opcode = NGHTTP2_HD_OPCODE_NEWNAME;
 1953|  8.38k|          inflater->state = NGHTTP2_HD_STATE_NEWNAME_CHECK_NAMELEN;
 1954|  8.38k|        } else {
 1955|  3.05k|          DEBUGF("inflatehd: literal header repr - indexed name\n");
  ------------------
  |  |   39|  3.05k|    do {                                                                       \
  |  |   40|  3.05k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3.05k]
  |  |  ------------------
  ------------------
 1956|  3.05k|          inflater->opcode = NGHTTP2_HD_OPCODE_INDNAME;
 1957|  3.05k|          inflater->state = NGHTTP2_HD_STATE_READ_INDEX;
 1958|  3.05k|        }
 1959|  11.4k|        inflater->index_required = (*in & 0x40) != 0;
 1960|  11.4k|        inflater->no_index = (*in & 0xf0u) == 0x10u;
 1961|  11.4k|        DEBUGF("inflatehd: indexing required=%d, no_index=%d\n",
  ------------------
  |  |   39|  11.4k|    do {                                                                       \
  |  |   40|  11.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 11.4k]
  |  |  ------------------
  ------------------
 1962|  11.4k|               inflater->index_required, inflater->no_index);
 1963|  11.4k|        if (inflater->opcode == NGHTTP2_HD_OPCODE_NEWNAME) {
  ------------------
  |  Branch (1963:13): [True: 8.38k, False: 3.05k]
  ------------------
 1964|  8.38k|          ++in;
 1965|  8.38k|        }
 1966|  11.4k|      }
 1967|  31.4k|      inflater->left = 0;
 1968|  31.4k|      inflater->shift = 0;
 1969|  31.4k|      break;
 1970|  1.12k|    case NGHTTP2_HD_STATE_READ_TABLE_SIZE:
  ------------------
  |  Branch (1970:5): [True: 1.12k, False: 93.5k]
  ------------------
 1971|  1.12k|      rfin = 0;
 1972|  1.12k|      rv = hd_inflate_read_len(
 1973|  1.12k|        inflater, &rfin, in, last, 5,
 1974|  1.12k|        nghttp2_min_size(inflater->min_hd_table_bufsize_max,
 1975|  1.12k|                         inflater->settings_hd_table_bufsize_max));
 1976|  1.12k|      if (rv < 0) {
  ------------------
  |  Branch (1976:11): [True: 43, False: 1.08k]
  ------------------
 1977|     43|        goto fail;
 1978|     43|      }
 1979|  1.08k|      in += rv;
 1980|  1.08k|      if (!rfin) {
  ------------------
  |  Branch (1980:11): [True: 71, False: 1.01k]
  ------------------
 1981|     71|        goto almost_ok;
 1982|     71|      }
 1983|  1.01k|      DEBUGF("inflatehd: table_size=%zu\n", inflater->left);
  ------------------
  |  |   39|  1.01k|    do {                                                                       \
  |  |   40|  1.01k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.01k]
  |  |  ------------------
  ------------------
 1984|  1.01k|      inflater->min_hd_table_bufsize_max = UINT32_MAX;
 1985|  1.01k|      inflater->ctx.hd_table_bufsize_max = inflater->left;
 1986|  1.01k|      hd_context_shrink_table_size(&inflater->ctx, NULL);
 1987|  1.01k|      inflater->state = NGHTTP2_HD_STATE_INFLATE_START;
 1988|  1.01k|      break;
 1989|  22.1k|    case NGHTTP2_HD_STATE_READ_INDEX: {
  ------------------
  |  Branch (1989:5): [True: 22.1k, False: 72.5k]
  ------------------
 1990|  22.1k|      size_t prefixlen;
 1991|       |
 1992|  22.1k|      if (inflater->opcode == NGHTTP2_HD_OPCODE_INDEXED) {
  ------------------
  |  Branch (1992:11): [True: 18.9k, False: 3.19k]
  ------------------
 1993|  18.9k|        prefixlen = 7;
 1994|  18.9k|      } else if (inflater->index_required) {
  ------------------
  |  Branch (1994:18): [True: 1.19k, False: 1.99k]
  ------------------
 1995|  1.19k|        prefixlen = 6;
 1996|  1.99k|      } else {
 1997|  1.99k|        prefixlen = 4;
 1998|  1.99k|      }
 1999|       |
 2000|  22.1k|      rfin = 0;
 2001|  22.1k|      rv = hd_inflate_read_len(inflater, &rfin, in, last, prefixlen,
 2002|  22.1k|                               get_max_index(&inflater->ctx));
 2003|  22.1k|      if (rv < 0) {
  ------------------
  |  Branch (2003:11): [True: 349, False: 21.7k]
  ------------------
 2004|    349|        goto fail;
 2005|    349|      }
 2006|       |
 2007|  21.7k|      in += rv;
 2008|       |
 2009|  21.7k|      if (!rfin) {
  ------------------
  |  Branch (2009:11): [True: 143, False: 21.6k]
  ------------------
 2010|    143|        goto almost_ok;
 2011|    143|      }
 2012|       |
 2013|  21.6k|      if (inflater->left == 0) {
  ------------------
  |  Branch (2013:11): [True: 12, False: 21.6k]
  ------------------
 2014|     12|        rv = NGHTTP2_ERR_HEADER_COMP;
 2015|     12|        goto fail;
 2016|     12|      }
 2017|       |
 2018|  21.6k|      DEBUGF("inflatehd: index=%zu\n", inflater->left);
  ------------------
  |  |   39|  21.6k|    do {                                                                       \
  |  |   40|  21.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 21.6k]
  |  |  ------------------
  ------------------
 2019|  21.6k|      if (inflater->opcode == NGHTTP2_HD_OPCODE_INDEXED) {
  ------------------
  |  Branch (2019:11): [True: 18.6k, False: 2.97k]
  ------------------
 2020|  18.6k|        inflater->index = inflater->left;
 2021|  18.6k|        --inflater->index;
 2022|       |
 2023|  18.6k|        hd_inflate_commit_indexed(inflater, nv_out);
 2024|       |
 2025|  18.6k|        inflater->state = NGHTTP2_HD_STATE_OPCODE;
 2026|  18.6k|        *inflate_flags |= NGHTTP2_HD_INFLATE_EMIT;
 2027|  18.6k|        return (nghttp2_ssize)(in - first);
 2028|  18.6k|      } else {
 2029|  2.97k|        inflater->index = inflater->left;
 2030|  2.97k|        --inflater->index;
 2031|       |
 2032|  2.97k|        inflater->state = NGHTTP2_HD_STATE_CHECK_VALUELEN;
 2033|  2.97k|      }
 2034|  2.97k|      break;
 2035|  21.6k|    }
 2036|  8.33k|    case NGHTTP2_HD_STATE_NEWNAME_CHECK_NAMELEN:
  ------------------
  |  Branch (2036:5): [True: 8.33k, False: 86.3k]
  ------------------
 2037|  8.33k|      hd_inflate_set_huffman_encoded(inflater, in);
 2038|  8.33k|      inflater->state = NGHTTP2_HD_STATE_NEWNAME_READ_NAMELEN;
 2039|  8.33k|      inflater->left = 0;
 2040|  8.33k|      inflater->shift = 0;
 2041|  8.33k|      DEBUGF("inflatehd: huffman encoded=%d\n", inflater->huffman_encoded != 0);
  ------------------
  |  |   39|  8.33k|    do {                                                                       \
  |  |   40|  8.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 8.33k]
  |  |  ------------------
  ------------------
 2042|       |    /* Fall through */
 2043|  8.58k|    case NGHTTP2_HD_STATE_NEWNAME_READ_NAMELEN:
  ------------------
  |  Branch (2043:5): [True: 248, False: 94.4k]
  ------------------
 2044|  8.58k|      rfin = 0;
 2045|  8.58k|      rv = hd_inflate_read_len(inflater, &rfin, in, last, 7, NGHTTP2_HD_MAX_NV);
  ------------------
  |  |   45|  8.58k|#define NGHTTP2_HD_MAX_NV 65536
  ------------------
 2046|  8.58k|      if (rv < 0) {
  ------------------
  |  Branch (2046:11): [True: 84, False: 8.50k]
  ------------------
 2047|     84|        goto fail;
 2048|     84|      }
 2049|  8.50k|      in += rv;
 2050|  8.50k|      if (!rfin) {
  ------------------
  |  Branch (2050:11): [True: 261, False: 8.24k]
  ------------------
 2051|    261|        DEBUGF("inflatehd: integer not fully decoded. current=%zu\n",
  ------------------
  |  |   39|    261|    do {                                                                       \
  |  |   40|    261|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 261]
  |  |  ------------------
  ------------------
 2052|    261|               inflater->left);
 2053|       |
 2054|    261|        goto almost_ok;
 2055|    261|      }
 2056|       |
 2057|  8.24k|      if (inflater->huffman_encoded) {
  ------------------
  |  Branch (2057:11): [True: 308, False: 7.93k]
  ------------------
 2058|    308|        nghttp2_hd_huff_decode_context_init(&inflater->huff_decode_ctx);
 2059|       |
 2060|    308|        inflater->state = NGHTTP2_HD_STATE_NEWNAME_READ_NAMEHUFF;
 2061|       |
 2062|    308|        rv = nghttp2_rcbuf_new(
 2063|    308|          &inflater->namercbuf,
 2064|    308|          nghttp2_huff_estimate_decode_length(inflater->left) + 1, mem);
 2065|  7.93k|      } else {
 2066|  7.93k|        inflater->state = NGHTTP2_HD_STATE_NEWNAME_READ_NAME;
 2067|  7.93k|        rv = nghttp2_rcbuf_new(&inflater->namercbuf, inflater->left + 1, mem);
 2068|  7.93k|      }
 2069|       |
 2070|  8.24k|      if (rv != 0) {
  ------------------
  |  Branch (2070:11): [True: 0, False: 8.24k]
  ------------------
 2071|      0|        goto fail;
 2072|      0|      }
 2073|       |
 2074|  8.24k|      nghttp2_buf_wrap_init(&inflater->namebuf, inflater->namercbuf->base,
 2075|  8.24k|                            inflater->namercbuf->len);
 2076|       |
 2077|  8.24k|      break;
 2078|    458|    case NGHTTP2_HD_STATE_NEWNAME_READ_NAMEHUFF:
  ------------------
  |  Branch (2078:5): [True: 458, False: 94.2k]
  ------------------
 2079|    458|      rv = hd_inflate_read_huff(inflater, &inflater->namebuf, in, last);
 2080|    458|      if (rv < 0) {
  ------------------
  |  Branch (2080:11): [True: 12, False: 446]
  ------------------
 2081|     12|        goto fail;
 2082|     12|      }
 2083|       |
 2084|    446|      in += rv;
 2085|       |
 2086|    446|      DEBUGF("inflatehd: %td bytes read\n", rv);
  ------------------
  |  |   39|    446|    do {                                                                       \
  |  |   40|    446|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 446]
  |  |  ------------------
  ------------------
 2087|       |
 2088|    446|      if (inflater->left) {
  ------------------
  |  Branch (2088:11): [True: 227, False: 219]
  ------------------
 2089|    227|        DEBUGF("inflatehd: still %zu bytes to go\n", inflater->left);
  ------------------
  |  |   39|    227|    do {                                                                       \
  |  |   40|    227|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 227]
  |  |  ------------------
  ------------------
 2090|       |
 2091|    227|        goto almost_ok;
 2092|    227|      }
 2093|       |
 2094|    219|      *inflater->namebuf.last = '\0';
 2095|    219|      inflater->namercbuf->len = nghttp2_buf_len(&inflater->namebuf);
  ------------------
  |  |   54|    219|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 2096|       |
 2097|    219|      inflater->state = NGHTTP2_HD_STATE_CHECK_VALUELEN;
 2098|       |
 2099|    219|      break;
 2100|  8.13k|    case NGHTTP2_HD_STATE_NEWNAME_READ_NAME:
  ------------------
  |  Branch (2100:5): [True: 8.13k, False: 86.5k]
  ------------------
 2101|  8.13k|      rv = hd_inflate_read(inflater, &inflater->namebuf, in, last);
 2102|  8.13k|      if (rv < 0) {
  ------------------
  |  Branch (2102:11): [True: 0, False: 8.13k]
  ------------------
 2103|      0|        goto fail;
 2104|      0|      }
 2105|       |
 2106|  8.13k|      in += rv;
 2107|       |
 2108|  8.13k|      DEBUGF("inflatehd: %td bytes read\n", rv);
  ------------------
  |  |   39|  8.13k|    do {                                                                       \
  |  |   40|  8.13k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 8.13k]
  |  |  ------------------
  ------------------
 2109|  8.13k|      if (inflater->left) {
  ------------------
  |  Branch (2109:11): [True: 255, False: 7.88k]
  ------------------
 2110|    255|        DEBUGF("inflatehd: still %zu bytes to go\n", inflater->left);
  ------------------
  |  |   39|    255|    do {                                                                       \
  |  |   40|    255|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 255]
  |  |  ------------------
  ------------------
 2111|       |
 2112|    255|        goto almost_ok;
 2113|    255|      }
 2114|       |
 2115|  7.88k|      *inflater->namebuf.last = '\0';
 2116|  7.88k|      inflater->namercbuf->len = nghttp2_buf_len(&inflater->namebuf);
  ------------------
  |  |   54|  7.88k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 2117|       |
 2118|  7.88k|      inflater->state = NGHTTP2_HD_STATE_CHECK_VALUELEN;
 2119|       |
 2120|  7.88k|      break;
 2121|  11.0k|    case NGHTTP2_HD_STATE_CHECK_VALUELEN:
  ------------------
  |  Branch (2121:5): [True: 11.0k, False: 83.6k]
  ------------------
 2122|  11.0k|      hd_inflate_set_huffman_encoded(inflater, in);
 2123|  11.0k|      inflater->state = NGHTTP2_HD_STATE_READ_VALUELEN;
 2124|  11.0k|      inflater->left = 0;
 2125|  11.0k|      inflater->shift = 0;
 2126|  11.0k|      DEBUGF("inflatehd: huffman encoded=%d\n", inflater->huffman_encoded != 0);
  ------------------
  |  |   39|  11.0k|    do {                                                                       \
  |  |   40|  11.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 11.0k]
  |  |  ------------------
  ------------------
 2127|       |    /* Fall through */
 2128|  11.2k|    case NGHTTP2_HD_STATE_READ_VALUELEN:
  ------------------
  |  Branch (2128:5): [True: 211, False: 94.4k]
  ------------------
 2129|  11.2k|      rfin = 0;
 2130|  11.2k|      rv = hd_inflate_read_len(inflater, &rfin, in, last, 7, NGHTTP2_HD_MAX_NV);
  ------------------
  |  |   45|  11.2k|#define NGHTTP2_HD_MAX_NV 65536
  ------------------
 2131|  11.2k|      if (rv < 0) {
  ------------------
  |  Branch (2131:11): [True: 91, False: 11.1k]
  ------------------
 2132|     91|        goto fail;
 2133|     91|      }
 2134|       |
 2135|  11.1k|      in += rv;
 2136|       |
 2137|  11.1k|      if (!rfin) {
  ------------------
  |  Branch (2137:11): [True: 219, False: 10.9k]
  ------------------
 2138|    219|        goto almost_ok;
 2139|    219|      }
 2140|       |
 2141|  10.9k|      DEBUGF("inflatehd: valuelen=%zu\n", inflater->left);
  ------------------
  |  |   39|  10.9k|    do {                                                                       \
  |  |   40|  10.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 10.9k]
  |  |  ------------------
  ------------------
 2142|       |
 2143|  10.9k|      if (inflater->huffman_encoded) {
  ------------------
  |  Branch (2143:11): [True: 874, False: 10.0k]
  ------------------
 2144|    874|        nghttp2_hd_huff_decode_context_init(&inflater->huff_decode_ctx);
 2145|       |
 2146|    874|        inflater->state = NGHTTP2_HD_STATE_READ_VALUEHUFF;
 2147|       |
 2148|    874|        rv = nghttp2_rcbuf_new(
 2149|    874|          &inflater->valuercbuf,
 2150|    874|          nghttp2_huff_estimate_decode_length(inflater->left) + 1, mem);
 2151|  10.0k|      } else {
 2152|  10.0k|        inflater->state = NGHTTP2_HD_STATE_READ_VALUE;
 2153|       |
 2154|  10.0k|        rv = nghttp2_rcbuf_new(&inflater->valuercbuf, inflater->left + 1, mem);
 2155|  10.0k|      }
 2156|       |
 2157|  10.9k|      if (rv != 0) {
  ------------------
  |  Branch (2157:11): [True: 0, False: 10.9k]
  ------------------
 2158|      0|        goto fail;
 2159|      0|      }
 2160|       |
 2161|  10.9k|      nghttp2_buf_wrap_init(&inflater->valuebuf, inflater->valuercbuf->base,
 2162|  10.9k|                            inflater->valuercbuf->len);
 2163|       |
 2164|  10.9k|      busy = 1;
 2165|       |
 2166|  10.9k|      break;
 2167|  1.07k|    case NGHTTP2_HD_STATE_READ_VALUEHUFF:
  ------------------
  |  Branch (2167:5): [True: 1.07k, False: 93.5k]
  ------------------
 2168|  1.07k|      rv = hd_inflate_read_huff(inflater, &inflater->valuebuf, in, last);
 2169|  1.07k|      if (rv < 0) {
  ------------------
  |  Branch (2169:11): [True: 23, False: 1.05k]
  ------------------
 2170|     23|        goto fail;
 2171|     23|      }
 2172|       |
 2173|  1.05k|      in += rv;
 2174|       |
 2175|  1.05k|      DEBUGF("inflatehd: %td bytes read\n", rv);
  ------------------
  |  |   39|  1.05k|    do {                                                                       \
  |  |   40|  1.05k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.05k]
  |  |  ------------------
  ------------------
 2176|       |
 2177|  1.05k|      if (inflater->left) {
  ------------------
  |  Branch (2177:11): [True: 322, False: 729]
  ------------------
 2178|    322|        DEBUGF("inflatehd: still %zu bytes to go\n", inflater->left);
  ------------------
  |  |   39|    322|    do {                                                                       \
  |  |   40|    322|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 322]
  |  |  ------------------
  ------------------
 2179|       |
 2180|    322|        goto almost_ok;
 2181|    322|      }
 2182|       |
 2183|    729|      *inflater->valuebuf.last = '\0';
 2184|    729|      inflater->valuercbuf->len = nghttp2_buf_len(&inflater->valuebuf);
  ------------------
  |  |   54|    729|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 2185|       |
 2186|    729|      if (inflater->opcode == NGHTTP2_HD_OPCODE_NEWNAME) {
  ------------------
  |  Branch (2186:11): [True: 214, False: 515]
  ------------------
 2187|    214|        rv = hd_inflate_commit_newname(inflater, nv_out);
 2188|    515|      } else {
 2189|    515|        rv = hd_inflate_commit_indname(inflater, nv_out);
 2190|    515|      }
 2191|       |
 2192|    729|      if (rv != 0) {
  ------------------
  |  Branch (2192:11): [True: 0, False: 729]
  ------------------
 2193|      0|        goto fail;
 2194|      0|      }
 2195|       |
 2196|    729|      inflater->state = NGHTTP2_HD_STATE_OPCODE;
 2197|    729|      *inflate_flags |= NGHTTP2_HD_INFLATE_EMIT;
 2198|       |
 2199|    729|      return (nghttp2_ssize)(in - first);
 2200|  10.4k|    case NGHTTP2_HD_STATE_READ_VALUE:
  ------------------
  |  Branch (2200:5): [True: 10.4k, False: 84.2k]
  ------------------
 2201|  10.4k|      rv = hd_inflate_read(inflater, &inflater->valuebuf, in, last);
 2202|  10.4k|      if (rv < 0) {
  ------------------
  |  Branch (2202:11): [True: 0, False: 10.4k]
  ------------------
 2203|      0|        DEBUGF("inflatehd: value read failure %td: %s\n", rv,
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2204|      0|               nghttp2_strerror((int)rv));
 2205|      0|        goto fail;
 2206|      0|      }
 2207|       |
 2208|  10.4k|      in += rv;
 2209|       |
 2210|  10.4k|      DEBUGF("inflatehd: %td bytes read\n", rv);
  ------------------
  |  |   39|  10.4k|    do {                                                                       \
  |  |   40|  10.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 10.4k]
  |  |  ------------------
  ------------------
 2211|       |
 2212|  10.4k|      if (inflater->left) {
  ------------------
  |  Branch (2212:11): [True: 544, False: 9.91k]
  ------------------
 2213|    544|        DEBUGF("inflatehd: still %zu bytes to go\n", inflater->left);
  ------------------
  |  |   39|    544|    do {                                                                       \
  |  |   40|    544|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 544]
  |  |  ------------------
  ------------------
 2214|    544|        goto almost_ok;
 2215|    544|      }
 2216|       |
 2217|  9.91k|      *inflater->valuebuf.last = '\0';
 2218|  9.91k|      inflater->valuercbuf->len = nghttp2_buf_len(&inflater->valuebuf);
  ------------------
  |  |   54|  9.91k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 2219|       |
 2220|  9.91k|      if (inflater->opcode == NGHTTP2_HD_OPCODE_NEWNAME) {
  ------------------
  |  Branch (2220:11): [True: 7.75k, False: 2.15k]
  ------------------
 2221|  7.75k|        rv = hd_inflate_commit_newname(inflater, nv_out);
 2222|  7.75k|      } else {
 2223|  2.15k|        rv = hd_inflate_commit_indname(inflater, nv_out);
 2224|  2.15k|      }
 2225|       |
 2226|  9.91k|      if (rv != 0) {
  ------------------
  |  Branch (2226:11): [True: 0, False: 9.91k]
  ------------------
 2227|      0|        goto fail;
 2228|      0|      }
 2229|       |
 2230|  9.91k|      inflater->state = NGHTTP2_HD_STATE_OPCODE;
 2231|  9.91k|      *inflate_flags |= NGHTTP2_HD_INFLATE_EMIT;
 2232|       |
 2233|  9.91k|      return (nghttp2_ssize)(in - first);
 2234|  94.6k|    }
 2235|  94.6k|  }
 2236|       |
 2237|  32.7k|  assert(in == last);
  ------------------
  |  Branch (2237:3): [True: 0, False: 765]
  |  Branch (2237:3): [True: 765, False: 0]
  ------------------
 2238|       |
 2239|    765|  DEBUGF("inflatehd: all input bytes were processed\n");
  ------------------
  |  |   39|    765|    do {                                                                       \
  |  |   40|    765|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 765]
  |  |  ------------------
  ------------------
 2240|       |
 2241|    765|  if (in_final) {
  ------------------
  |  Branch (2241:7): [True: 156, False: 609]
  ------------------
 2242|    156|    DEBUGF("inflatehd: in_final set\n");
  ------------------
  |  |   39|    156|    do {                                                                       \
  |  |   40|    156|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 156]
  |  |  ------------------
  ------------------
 2243|       |
 2244|    156|    if (inflater->state != NGHTTP2_HD_STATE_OPCODE &&
  ------------------
  |  Branch (2244:9): [True: 95, False: 61]
  ------------------
 2245|     95|        inflater->state != NGHTTP2_HD_STATE_INFLATE_START) {
  ------------------
  |  Branch (2245:9): [True: 12, False: 83]
  ------------------
 2246|     12|      DEBUGF("inflatehd: unacceptable state=%d\n", inflater->state);
  ------------------
  |  |   39|     12|    do {                                                                       \
  |  |   40|     12|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 12]
  |  |  ------------------
  ------------------
 2247|     12|      rv = NGHTTP2_ERR_HEADER_COMP;
 2248|       |
 2249|     12|      goto fail;
 2250|     12|    }
 2251|    144|    *inflate_flags |= NGHTTP2_HD_INFLATE_FINAL;
 2252|    144|  }
 2253|    753|  return (nghttp2_ssize)(in - first);
 2254|       |
 2255|  2.04k|almost_ok:
 2256|  2.04k|  if (in_final) {
  ------------------
  |  Branch (2256:7): [True: 3, False: 2.03k]
  ------------------
 2257|      3|    DEBUGF("inflatehd: input ended prematurely\n");
  ------------------
  |  |   39|      3|    do {                                                                       \
  |  |   40|      3|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3]
  |  |  ------------------
  ------------------
 2258|       |
 2259|      3|    rv = NGHTTP2_ERR_HEADER_COMP;
 2260|       |
 2261|      3|    goto fail;
 2262|      3|  }
 2263|  2.03k|  return (nghttp2_ssize)(in - first);
 2264|       |
 2265|    684|fail:
 2266|    684|  DEBUGF("inflatehd: error return %td\n", rv);
  ------------------
  |  |   39|    684|    do {                                                                       \
  |  |   40|    684|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 684]
  |  |  ------------------
  ------------------
 2267|       |
 2268|    684|  inflater->ctx.bad = 1;
 2269|    684|  return rv;
 2270|  2.04k|}
nghttp2_hd_inflate_end_headers:
 2272|    144|int nghttp2_hd_inflate_end_headers(nghttp2_hd_inflater *inflater) {
 2273|    144|  hd_inflate_keep_free(inflater);
 2274|    144|  inflater->state = NGHTTP2_HD_STATE_INFLATE_START;
 2275|    144|  return 0;
 2276|    144|}
nghttp2_hd.c:hd_context_init:
  687|  5.88k|static int hd_context_init(nghttp2_hd_context *context, nghttp2_mem *mem) {
  688|  5.88k|  int rv;
  689|  5.88k|  context->mem = mem;
  690|  5.88k|  context->bad = 0;
  691|  5.88k|  context->hd_table_bufsize_max = NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE;
  ------------------
  |  |   39|  5.88k|#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
  |  |  ------------------
  |  |  |  |  244|  5.88k|#define NGHTTP2_DEFAULT_HEADER_TABLE_SIZE (1 << 12)
  |  |  ------------------
  ------------------
  692|  5.88k|  rv = hd_ringbuf_init(
  693|  5.88k|    &context->hd_table,
  694|  5.88k|    context->hd_table_bufsize_max / NGHTTP2_HD_ENTRY_OVERHEAD, mem);
  ------------------
  |  |   40|  5.88k|#define NGHTTP2_HD_ENTRY_OVERHEAD 32
  ------------------
  695|  5.88k|  if (rv != 0) {
  ------------------
  |  Branch (695:7): [True: 0, False: 5.88k]
  ------------------
  696|      0|    return rv;
  697|      0|  }
  698|       |
  699|  5.88k|  context->hd_table_bufsize = 0;
  700|  5.88k|  context->next_seq = 0;
  701|       |
  702|  5.88k|  return 0;
  703|  5.88k|}
nghttp2_hd.c:hd_ringbuf_init:
  596|  5.88k|                           nghttp2_mem *mem) {
  597|  5.88k|  size_t size;
  598|  5.88k|  const size_t max_size = SIZE_MAX / sizeof(nghttp2_hd_entry *);
  599|       |
  600|  5.88k|  if (bufsize > max_size) {
  ------------------
  |  Branch (600:7): [True: 0, False: 5.88k]
  ------------------
  601|      0|    return NGHTTP2_ERR_NOMEM;
  602|      0|  }
  603|       |
  604|  47.1k|  for (size = 1; size < bufsize; size <<= 1)
  ------------------
  |  Branch (604:18): [True: 41.2k, False: 5.88k]
  ------------------
  605|  41.2k|    ;
  606|       |
  607|  5.88k|  if (size > max_size) {
  ------------------
  |  Branch (607:7): [True: 0, False: 5.88k]
  ------------------
  608|      0|    return NGHTTP2_ERR_NOMEM;
  609|      0|  }
  610|       |
  611|  5.88k|  ringbuf->buffer = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry *) * size);
  612|  5.88k|  if (ringbuf->buffer == NULL) {
  ------------------
  |  Branch (612:7): [True: 0, False: 5.88k]
  ------------------
  613|      0|    return NGHTTP2_ERR_NOMEM;
  614|      0|  }
  615|  5.88k|  ringbuf->mask = size - 1;
  616|  5.88k|  ringbuf->first = 0;
  617|  5.88k|  ringbuf->len = 0;
  618|  5.88k|  return 0;
  619|  5.88k|}
nghttp2_hd.c:hd_map_init:
  531|  2.94k|static void hd_map_init(nghttp2_hd_map *map) {
  532|  2.94k|  memset(map, 0, sizeof(nghttp2_hd_map));
  533|  2.94k|}
nghttp2_hd.c:hd_context_free:
  705|  5.88k|static void hd_context_free(nghttp2_hd_context *context) {
  706|  5.88k|  hd_ringbuf_free(&context->hd_table, context->mem);
  707|  5.88k|}
nghttp2_hd.c:hd_ringbuf_free:
  652|  5.88k|static void hd_ringbuf_free(nghttp2_hd_ringbuf *ringbuf, nghttp2_mem *mem) {
  653|  5.88k|  size_t i;
  654|  5.88k|  if (ringbuf == NULL) {
  ------------------
  |  Branch (654:7): [True: 0, False: 5.88k]
  ------------------
  655|      0|    return;
  656|      0|  }
  657|  20.6k|  for (i = 0; i < ringbuf->len; ++i) {
  ------------------
  |  Branch (657:15): [True: 14.7k, False: 5.88k]
  ------------------
  658|  14.7k|    nghttp2_hd_entry *ent = hd_ringbuf_get(ringbuf, i);
  659|       |
  660|  14.7k|    nghttp2_hd_entry_free(ent);
  661|  14.7k|    nghttp2_mem_free(mem, ent);
  662|  14.7k|  }
  663|  5.88k|  nghttp2_mem_free(mem, ringbuf->buffer);
  664|  5.88k|}
nghttp2_hd.c:hd_inflate_keep_free:
  774|  35.8k|static void hd_inflate_keep_free(nghttp2_hd_inflater *inflater) {
  775|  35.8k|  nghttp2_rcbuf_decref(inflater->nv_value_keep);
  776|  35.8k|  nghttp2_rcbuf_decref(inflater->nv_name_keep);
  777|       |
  778|  35.8k|  inflater->nv_value_keep = NULL;
  779|       |  inflater->nv_name_keep = NULL;
  780|  35.8k|}
nghttp2_hd.c:hd_context_shrink_table_size:
 1237|  1.17k|                                         nghttp2_hd_map *map) {
 1238|  1.17k|  nghttp2_mem *mem;
 1239|       |
 1240|  1.17k|  mem = context->mem;
 1241|       |
 1242|  1.41k|  while (context->hd_table_bufsize > context->hd_table_bufsize_max &&
  ------------------
  |  Branch (1242:10): [True: 237, False: 1.17k]
  ------------------
 1243|    237|         context->hd_table.len > 0) {
  ------------------
  |  Branch (1243:10): [True: 237, False: 0]
  ------------------
 1244|    237|    size_t idx = context->hd_table.len - 1;
 1245|    237|    nghttp2_hd_entry *ent = hd_ringbuf_get(&context->hd_table, idx);
 1246|    237|    context->hd_table_bufsize -=
 1247|    237|      entry_room(ent->nv.name->len, ent->nv.value->len);
 1248|    237|    hd_ringbuf_pop_back(&context->hd_table);
 1249|    237|    if (map) {
  ------------------
  |  Branch (1249:9): [True: 237, False: 0]
  ------------------
 1250|    237|      hd_map_remove(map, ent);
 1251|    237|    }
 1252|       |
 1253|    237|    nghttp2_hd_entry_free(ent);
 1254|    237|    nghttp2_mem_free(mem, ent);
 1255|    237|  }
 1256|  1.17k|}
nghttp2_hd.c:entry_room:
  795|  47.7k|static size_t entry_room(size_t namelen, size_t valuelen) {
  796|  47.7k|  return NGHTTP2_HD_ENTRY_OVERHEAD + namelen + valuelen;
  ------------------
  |  |   40|  47.7k|#define NGHTTP2_HD_ENTRY_OVERHEAD 32
  ------------------
  797|  47.7k|}
nghttp2_hd.c:hd_ringbuf_pop_back:
  682|  1.06k|static void hd_ringbuf_pop_back(nghttp2_hd_ringbuf *ringbuf) {
  683|  1.06k|  assert(ringbuf->len > 0);
  ------------------
  |  Branch (683:3): [True: 0, False: 1.06k]
  |  Branch (683:3): [True: 1.06k, False: 0]
  ------------------
  684|  1.06k|  --ringbuf->len;
  685|  1.06k|}
nghttp2_hd.c:hd_map_remove:
  579|    761|static void hd_map_remove(nghttp2_hd_map *map, nghttp2_hd_entry *ent) {
  580|    761|  nghttp2_hd_entry **dst;
  581|       |
  582|    761|  dst = &map->table[ent->hash & (HD_MAP_SIZE - 1)];
  ------------------
  |  |  214|    761|#define HD_MAP_SIZE 128
  ------------------
  583|       |
  584|  2.87k|  for (; *dst; dst = &(*dst)->next) {
  ------------------
  |  Branch (584:10): [True: 2.87k, False: 0]
  ------------------
  585|  2.87k|    if (*dst != ent) {
  ------------------
  |  Branch (585:9): [True: 2.11k, False: 761]
  ------------------
  586|  2.11k|      continue;
  587|  2.11k|    }
  588|       |
  589|    761|    *dst = ent->next;
  590|       |    ent->next = NULL;
  591|    761|    return;
  592|  2.87k|  }
  593|    761|}
nghttp2_hd.c:hd_ringbuf_get:
  622|  21.5k|                                        size_t idx) {
  623|  21.5k|  assert(idx < ringbuf->len);
  ------------------
  |  Branch (623:3): [True: 0, False: 21.5k]
  |  Branch (623:3): [True: 21.5k, False: 0]
  ------------------
  624|  21.5k|  return ringbuf->buffer[(ringbuf->first + idx) & ringbuf->mask];
  625|  21.5k|}
nghttp2_hd.c:count_encoded_length:
  807|  50.9k|static size_t count_encoded_length(size_t n, size_t prefix) {
  808|  50.9k|  size_t k = (size_t)((1 << prefix) - 1);
  809|  50.9k|  size_t len = 0;
  810|       |
  811|  50.9k|  if (n < k) {
  ------------------
  |  Branch (811:7): [True: 47.3k, False: 3.61k]
  ------------------
  812|  47.3k|    return 1;
  813|  47.3k|  }
  814|       |
  815|  3.61k|  n -= k;
  816|  3.61k|  ++len;
  817|       |
  818|  3.74k|  for (; n >= 128; n >>= 7, ++len)
  ------------------
  |  Branch (818:10): [True: 125, False: 3.61k]
  ------------------
  819|    125|    ;
  820|       |
  821|  3.61k|  return len + 1;
  822|  50.9k|}
nghttp2_hd.c:encode_length:
  824|  50.9k|static size_t encode_length(uint8_t *buf, size_t n, size_t prefix) {
  825|  50.9k|  size_t k = (size_t)((1 << prefix) - 1);
  826|  50.9k|  uint8_t *begin = buf;
  827|       |
  828|  50.9k|  *buf = (uint8_t)(*buf & ~k);
  829|       |
  830|  50.9k|  if (n < k) {
  ------------------
  |  Branch (830:7): [True: 47.3k, False: 3.61k]
  ------------------
  831|  47.3k|    *buf = (uint8_t)(*buf | n);
  832|  47.3k|    return 1;
  833|  47.3k|  }
  834|       |
  835|  3.61k|  *buf = (uint8_t)(*buf | k);
  836|  3.61k|  ++buf;
  837|       |
  838|  3.61k|  n -= k;
  839|       |
  840|  3.74k|  for (; n >= 128; n >>= 7) {
  ------------------
  |  Branch (840:10): [True: 125, False: 3.61k]
  ------------------
  841|    125|    *buf++ = (uint8_t)((1 << 7) | (n & 0x7f));
  842|    125|  }
  843|       |
  844|  3.61k|  *buf++ = (uint8_t)n;
  845|       |
  846|  3.61k|  return (size_t)(buf - begin);
  847|  50.9k|}
nghttp2_hd.c:deflate_nv:
 1356|  34.3k|                      const nghttp2_nv *nv) {
 1357|  34.3k|  int rv;
 1358|  34.3k|  search_result res;
 1359|  34.3k|  nghttp2_ssize idx;
 1360|  34.3k|  int indexing_mode;
 1361|  34.3k|  int32_t token;
 1362|  34.3k|  nghttp2_mem *mem;
 1363|  34.3k|  uint32_t hash = 0;
 1364|       |
 1365|  34.3k|  DEBUGF("deflatehd: deflating %.*s: %.*s\n", (int)nv->namelen, nv->name,
  ------------------
  |  |   39|  34.3k|    do {                                                                       \
  |  |   40|  34.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 34.3k]
  |  |  ------------------
  ------------------
 1366|  34.3k|         (int)nv->valuelen, nv->value);
 1367|       |
 1368|  34.3k|  mem = deflater->ctx.mem;
 1369|       |
 1370|  34.3k|  token = lookup_token(nv->name, nv->namelen);
 1371|  34.3k|  if (token == -1) {
  ------------------
  |  Branch (1371:7): [True: 17.0k, False: 17.2k]
  ------------------
 1372|  17.0k|    hash = name_hash(nv);
 1373|  17.2k|  } else if (token <= NGHTTP2_TOKEN_WWW_AUTHENTICATE) {
  ------------------
  |  Branch (1373:14): [True: 17.2k, False: 0]
  ------------------
 1374|  17.2k|    hash = static_table[token].hash;
 1375|  17.2k|  }
 1376|       |
 1377|       |  /* Don't index authorization header field since it may contain low
 1378|       |     entropy secret data (e.g., id/password).  Also cookie header
 1379|       |     field with less than 20 bytes value is also never indexed.  This
 1380|       |     is the same criteria used in Firefox codebase. */
 1381|  34.3k|  indexing_mode = token == NGHTTP2_TOKEN_AUTHORIZATION ||
  ------------------
  |  Branch (1381:19): [True: 225, False: 34.1k]
  ------------------
 1382|  34.1k|                      (token == NGHTTP2_TOKEN_COOKIE && nv->valuelen < 20) ||
  ------------------
  |  Branch (1382:24): [True: 0, False: 34.1k]
  |  Branch (1382:57): [True: 0, False: 0]
  ------------------
 1383|  34.1k|                      (nv->flags & NGHTTP2_NV_FLAG_NO_INDEX)
  ------------------
  |  Branch (1383:23): [True: 0, False: 34.1k]
  ------------------
 1384|  34.3k|                    ? NGHTTP2_HD_NEVER_INDEXING
 1385|  34.3k|                    : hd_deflate_decide_indexing(deflater, nv, token);
 1386|       |
 1387|  34.3k|  res = search_hd_table(&deflater->ctx, nv, token, indexing_mode,
 1388|  34.3k|                        &deflater->map, hash);
 1389|       |
 1390|  34.3k|  idx = res.index;
 1391|       |
 1392|  34.3k|  if (res.name_value_match) {
  ------------------
  |  Branch (1392:7): [True: 17.6k, False: 16.6k]
  ------------------
 1393|  17.6k|    DEBUGF("deflatehd: name/value match index=%td\n", idx);
  ------------------
  |  |   39|  17.6k|    do {                                                                       \
  |  |   40|  17.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 17.6k]
  |  |  ------------------
  ------------------
 1394|       |
 1395|  17.6k|    rv = emit_indexed_block(bufs, (size_t)idx);
 1396|  17.6k|    if (rv != 0) {
  ------------------
  |  Branch (1396:9): [True: 0, False: 17.6k]
  ------------------
 1397|      0|      return rv;
 1398|      0|    }
 1399|       |
 1400|  17.6k|    return 0;
 1401|  17.6k|  }
 1402|       |
 1403|  16.6k|  if (res.index != -1) {
  ------------------
  |  Branch (1403:7): [True: 13.0k, False: 3.64k]
  ------------------
 1404|  13.0k|    DEBUGF("deflatehd: name match index=%td\n", res.index);
  ------------------
  |  |   39|  13.0k|    do {                                                                       \
  |  |   40|  13.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 13.0k]
  |  |  ------------------
  ------------------
 1405|  13.0k|  }
 1406|       |
 1407|  16.6k|  if (indexing_mode == NGHTTP2_HD_WITH_INDEXING) {
  ------------------
  |  Branch (1407:7): [True: 14.3k, False: 2.31k]
  ------------------
 1408|  14.3k|    nghttp2_hd_nv hd_nv;
 1409|       |
 1410|  14.3k|    if (idx != -1) {
  ------------------
  |  Branch (1410:9): [True: 10.7k, False: 3.62k]
  ------------------
 1411|  10.7k|      hd_nv.name = nghttp2_hd_table_get(&deflater->ctx, (size_t)idx).name;
 1412|  10.7k|      nghttp2_rcbuf_incref(hd_nv.name);
 1413|  10.7k|    } else {
 1414|  3.62k|      rv = nghttp2_rcbuf_new2(&hd_nv.name, nv->name, nv->namelen, mem);
 1415|  3.62k|      if (rv != 0) {
  ------------------
  |  Branch (1415:11): [True: 0, False: 3.62k]
  ------------------
 1416|      0|        return rv;
 1417|      0|      }
 1418|  3.62k|    }
 1419|       |
 1420|  14.3k|    rv = nghttp2_rcbuf_new2(&hd_nv.value, nv->value, nv->valuelen, mem);
 1421|       |
 1422|  14.3k|    if (rv != 0) {
  ------------------
  |  Branch (1422:9): [True: 0, False: 14.3k]
  ------------------
 1423|      0|      nghttp2_rcbuf_decref(hd_nv.name);
 1424|      0|      return rv;
 1425|      0|    }
 1426|       |
 1427|  14.3k|    hd_nv.token = token;
 1428|  14.3k|    hd_nv.flags = NGHTTP2_NV_FLAG_NONE;
 1429|       |
 1430|  14.3k|    rv = add_hd_table_incremental(&deflater->ctx, &hd_nv, &deflater->map, hash);
 1431|       |
 1432|  14.3k|    nghttp2_rcbuf_decref(hd_nv.value);
 1433|  14.3k|    nghttp2_rcbuf_decref(hd_nv.name);
 1434|       |
 1435|  14.3k|    if (rv != 0) {
  ------------------
  |  Branch (1435:9): [True: 0, False: 14.3k]
  ------------------
 1436|      0|      return NGHTTP2_ERR_HEADER_COMP;
 1437|      0|    }
 1438|  14.3k|  }
 1439|  16.6k|  if (idx == -1) {
  ------------------
  |  Branch (1439:7): [True: 3.64k, False: 13.0k]
  ------------------
 1440|  3.64k|    rv = emit_newname_block(bufs, nv, indexing_mode);
 1441|  13.0k|  } else {
 1442|  13.0k|    rv = emit_indname_block(bufs, (size_t)idx, nv, indexing_mode);
 1443|  13.0k|  }
 1444|  16.6k|  if (rv != 0) {
  ------------------
  |  Branch (1444:7): [True: 0, False: 16.6k]
  ------------------
 1445|      0|    return rv;
 1446|      0|  }
 1447|       |
 1448|  16.6k|  return 0;
 1449|  16.6k|}
nghttp2_hd.c:lookup_token:
  122|  42.3k|static int32_t lookup_token(const uint8_t *name, size_t namelen) {
  123|  42.3k|  switch (namelen) {
  ------------------
  |  Branch (123:11): [True: 34.0k, False: 8.26k]
  ------------------
  124|  3.59k|  case 2:
  ------------------
  |  Branch (124:3): [True: 3.59k, False: 38.7k]
  ------------------
  125|  3.59k|    switch (name[1]) {
  ------------------
  |  Branch (125:13): [True: 51, False: 3.53k]
  ------------------
  126|     51|    case 'e':
  ------------------
  |  Branch (126:5): [True: 51, False: 3.53k]
  ------------------
  127|     51|      if (memeq("t", name, 1)) {
  ------------------
  |  Branch (127:11): [True: 0, False: 51]
  ------------------
  128|      0|        return NGHTTP2_TOKEN_TE;
  129|      0|      }
  130|     51|      break;
  131|  3.59k|    }
  132|  3.59k|    break;
  133|  7.95k|  case 3:
  ------------------
  |  Branch (133:3): [True: 7.95k, False: 34.3k]
  ------------------
  134|  7.95k|    switch (name[2]) {
  ------------------
  |  Branch (134:13): [True: 2.83k, False: 5.12k]
  ------------------
  135|  2.82k|    case 'a':
  ------------------
  |  Branch (135:5): [True: 2.82k, False: 5.13k]
  ------------------
  136|  2.82k|      if (memeq("vi", name, 2)) {
  ------------------
  |  Branch (136:11): [True: 10, False: 2.81k]
  ------------------
  137|     10|        return NGHTTP2_TOKEN_VIA;
  138|     10|      }
  139|  2.81k|      break;
  140|  2.81k|    case 'e':
  ------------------
  |  Branch (140:5): [True: 18, False: 7.94k]
  ------------------
  141|     18|      if (memeq("ag", name, 2)) {
  ------------------
  |  Branch (141:11): [True: 0, False: 18]
  ------------------
  142|      0|        return NGHTTP2_TOKEN_AGE;
  143|      0|      }
  144|     18|      break;
  145|  7.95k|    }
  146|  7.94k|    break;
  147|  7.94k|  case 4:
  ------------------
  |  Branch (147:3): [True: 2.27k, False: 40.0k]
  ------------------
  148|  2.27k|    switch (name[3]) {
  ------------------
  |  Branch (148:13): [True: 1.75k, False: 529]
  ------------------
  149|     72|    case 'e':
  ------------------
  |  Branch (149:5): [True: 72, False: 2.20k]
  ------------------
  150|     72|      if (memeq("dat", name, 3)) {
  ------------------
  |  Branch (150:11): [True: 0, False: 72]
  ------------------
  151|      0|        return NGHTTP2_TOKEN_DATE;
  152|      0|      }
  153|     72|      break;
  154|     72|    case 'g':
  ------------------
  |  Branch (154:5): [True: 36, False: 2.24k]
  ------------------
  155|     36|      if (memeq("eta", name, 3)) {
  ------------------
  |  Branch (155:11): [True: 11, False: 25]
  ------------------
  156|     11|        return NGHTTP2_TOKEN_ETAG;
  157|     11|      }
  158|     25|      break;
  159|  1.57k|    case 'k':
  ------------------
  |  Branch (159:5): [True: 1.57k, False: 706]
  ------------------
  160|  1.57k|      if (memeq("lin", name, 3)) {
  ------------------
  |  Branch (160:11): [True: 0, False: 1.57k]
  ------------------
  161|      0|        return NGHTTP2_TOKEN_LINK;
  162|      0|      }
  163|  1.57k|      break;
  164|  1.57k|    case 'm':
  ------------------
  |  Branch (164:5): [True: 11, False: 2.26k]
  ------------------
  165|     11|      if (memeq("fro", name, 3)) {
  ------------------
  |  Branch (165:11): [True: 0, False: 11]
  ------------------
  166|      0|        return NGHTTP2_TOKEN_FROM;
  167|      0|      }
  168|     11|      break;
  169|     38|    case 't':
  ------------------
  |  Branch (169:5): [True: 38, False: 2.24k]
  ------------------
  170|     38|      if (memeq("hos", name, 3)) {
  ------------------
  |  Branch (170:11): [True: 0, False: 38]
  ------------------
  171|      0|        return NGHTTP2_TOKEN_HOST;
  172|      0|      }
  173|     38|      break;
  174|     38|    case 'y':
  ------------------
  |  Branch (174:5): [True: 20, False: 2.25k]
  ------------------
  175|     20|      if (memeq("var", name, 3)) {
  ------------------
  |  Branch (175:11): [True: 0, False: 20]
  ------------------
  176|      0|        return NGHTTP2_TOKEN_VARY;
  177|      0|      }
  178|     20|      break;
  179|  2.27k|    }
  180|  2.26k|    break;
  181|  3.16k|  case 5:
  ------------------
  |  Branch (181:3): [True: 3.16k, False: 39.1k]
  ------------------
  182|  3.16k|    switch (name[4]) {
  ------------------
  |  Branch (182:13): [True: 3.01k, False: 156]
  ------------------
  183|     11|    case 'e':
  ------------------
  |  Branch (183:5): [True: 11, False: 3.15k]
  ------------------
  184|     11|      if (memeq("rang", name, 4)) {
  ------------------
  |  Branch (184:11): [True: 0, False: 11]
  ------------------
  185|      0|        return NGHTTP2_TOKEN_RANGE;
  186|      0|      }
  187|     11|      break;
  188|  2.97k|    case 'h':
  ------------------
  |  Branch (188:5): [True: 2.97k, False: 195]
  ------------------
  189|  2.97k|      if (memeq(":pat", name, 4)) {
  ------------------
  |  Branch (189:11): [True: 2.88k, False: 88]
  ------------------
  190|  2.88k|        return NGHTTP2_TOKEN__PATH;
  191|  2.88k|      }
  192|     88|      break;
  193|     88|    case 'w':
  ------------------
  |  Branch (193:5): [True: 28, False: 3.14k]
  ------------------
  194|     28|      if (memeq("allo", name, 4)) {
  ------------------
  |  Branch (194:11): [True: 0, False: 28]
  ------------------
  195|      0|        return NGHTTP2_TOKEN_ALLOW;
  196|      0|      }
  197|     28|      break;
  198|  3.16k|    }
  199|    283|    break;
  200|  2.87k|  case 6:
  ------------------
  |  Branch (200:3): [True: 2.87k, False: 39.4k]
  ------------------
  201|  2.87k|    switch (name[5]) {
  ------------------
  |  Branch (201:13): [True: 2.82k, False: 43]
  ------------------
  202|     19|    case 'e':
  ------------------
  |  Branch (202:5): [True: 19, False: 2.85k]
  ------------------
  203|     19|      if (memeq("cooki", name, 5)) {
  ------------------
  |  Branch (203:11): [True: 0, False: 19]
  ------------------
  204|      0|        return NGHTTP2_TOKEN_COOKIE;
  205|      0|      }
  206|     19|      break;
  207|     21|    case 'r':
  ------------------
  |  Branch (207:5): [True: 21, False: 2.85k]
  ------------------
  208|     21|      if (memeq("serve", name, 5)) {
  ------------------
  |  Branch (208:11): [True: 0, False: 21]
  ------------------
  209|      0|        return NGHTTP2_TOKEN_SERVER;
  210|      0|      }
  211|     21|      break;
  212|  2.78k|    case 't':
  ------------------
  |  Branch (212:5): [True: 2.78k, False: 83]
  ------------------
  213|  2.78k|      if (memeq("accep", name, 5)) {
  ------------------
  |  Branch (213:11): [True: 2.77k, False: 12]
  ------------------
  214|  2.77k|        return NGHTTP2_TOKEN_ACCEPT;
  215|  2.77k|      }
  216|     12|      if (memeq("expec", name, 5)) {
  ------------------
  |  Branch (216:11): [True: 0, False: 12]
  ------------------
  217|      0|        return NGHTTP2_TOKEN_EXPECT;
  218|      0|      }
  219|     12|      break;
  220|  2.87k|    }
  221|     95|    break;
  222|  6.75k|  case 7:
  ------------------
  |  Branch (222:3): [True: 6.75k, False: 35.5k]
  ------------------
  223|  6.75k|    switch (name[6]) {
  ------------------
  |  Branch (223:13): [True: 6.26k, False: 488]
  ------------------
  224|  2.89k|    case 'd':
  ------------------
  |  Branch (224:5): [True: 2.89k, False: 3.85k]
  ------------------
  225|  2.89k|      if (memeq(":metho", name, 6)) {
  ------------------
  |  Branch (225:11): [True: 2.88k, False: 10]
  ------------------
  226|  2.88k|        return NGHTTP2_TOKEN__METHOD;
  227|  2.88k|      }
  228|     10|      break;
  229|  2.91k|    case 'e':
  ------------------
  |  Branch (229:5): [True: 2.91k, False: 3.84k]
  ------------------
  230|  2.91k|      if (memeq(":schem", name, 6)) {
  ------------------
  |  Branch (230:11): [True: 2.88k, False: 26]
  ------------------
  231|  2.88k|        return NGHTTP2_TOKEN__SCHEME;
  232|  2.88k|      }
  233|     26|      if (memeq("upgrad", name, 6)) {
  ------------------
  |  Branch (233:11): [True: 0, False: 26]
  ------------------
  234|      0|        return NGHTTP2_TOKEN_UPGRADE;
  235|      0|      }
  236|     26|      break;
  237|     26|    case 'h':
  ------------------
  |  Branch (237:5): [True: 17, False: 6.73k]
  ------------------
  238|     17|      if (memeq("refres", name, 6)) {
  ------------------
  |  Branch (238:11): [True: 0, False: 17]
  ------------------
  239|      0|        return NGHTTP2_TOKEN_REFRESH;
  240|      0|      }
  241|     17|      break;
  242|    429|    case 'r':
  ------------------
  |  Branch (242:5): [True: 429, False: 6.32k]
  ------------------
  243|    429|      if (memeq("refere", name, 6)) {
  ------------------
  |  Branch (243:11): [True: 419, False: 10]
  ------------------
  244|    419|        return NGHTTP2_TOKEN_REFERER;
  245|    419|      }
  246|     10|      break;
  247|     11|    case 's':
  ------------------
  |  Branch (247:5): [True: 11, False: 6.74k]
  ------------------
  248|     11|      if (memeq(":statu", name, 6)) {
  ------------------
  |  Branch (248:11): [True: 0, False: 11]
  ------------------
  249|      0|        return NGHTTP2_TOKEN__STATUS;
  250|      0|      }
  251|     11|      if (memeq("expire", name, 6)) {
  ------------------
  |  Branch (251:11): [True: 0, False: 11]
  ------------------
  252|      0|        return NGHTTP2_TOKEN_EXPIRES;
  253|      0|      }
  254|     11|      break;
  255|  6.75k|    }
  256|    562|    break;
  257|    648|  case 8:
  ------------------
  |  Branch (257:3): [True: 648, False: 41.6k]
  ------------------
  258|    648|    switch (name[7]) {
  ------------------
  |  Branch (258:13): [True: 596, False: 52]
  ------------------
  259|     15|    case 'e':
  ------------------
  |  Branch (259:5): [True: 15, False: 633]
  ------------------
  260|     15|      if (memeq("if-rang", name, 7)) {
  ------------------
  |  Branch (260:11): [True: 0, False: 15]
  ------------------
  261|      0|        return NGHTTP2_TOKEN_IF_RANGE;
  262|      0|      }
  263|     15|      break;
  264|     52|    case 'h':
  ------------------
  |  Branch (264:5): [True: 52, False: 596]
  ------------------
  265|     52|      if (memeq("if-matc", name, 7)) {
  ------------------
  |  Branch (265:11): [True: 0, False: 52]
  ------------------
  266|      0|        return NGHTTP2_TOKEN_IF_MATCH;
  267|      0|      }
  268|     52|      break;
  269|    519|    case 'n':
  ------------------
  |  Branch (269:5): [True: 519, False: 129]
  ------------------
  270|    519|      if (memeq("locatio", name, 7)) {
  ------------------
  |  Branch (270:11): [True: 261, False: 258]
  ------------------
  271|    261|        return NGHTTP2_TOKEN_LOCATION;
  272|    261|      }
  273|    258|      break;
  274|    258|    case 'y':
  ------------------
  |  Branch (274:5): [True: 10, False: 638]
  ------------------
  275|     10|      if (memeq("priorit", name, 7)) {
  ------------------
  |  Branch (275:11): [True: 0, False: 10]
  ------------------
  276|      0|        return NGHTTP2_TOKEN_PRIORITY;
  277|      0|      }
  278|     10|      break;
  279|    648|    }
  280|    387|    break;
  281|    387|  case 9:
  ------------------
  |  Branch (281:3): [True: 132, False: 42.1k]
  ------------------
  282|    132|    switch (name[8]) {
  ------------------
  |  Branch (282:13): [True: 10, False: 122]
  ------------------
  283|     10|    case 'l':
  ------------------
  |  Branch (283:5): [True: 10, False: 122]
  ------------------
  284|     10|      if (memeq(":protoco", name, 8)) {
  ------------------
  |  Branch (284:11): [True: 0, False: 10]
  ------------------
  285|      0|        return NGHTTP2_TOKEN__PROTOCOL;
  286|      0|      }
  287|     10|      break;
  288|    132|    }
  289|    132|    break;
  290|  3.48k|  case 10:
  ------------------
  |  Branch (290:3): [True: 3.48k, False: 38.8k]
  ------------------
  291|  3.48k|    switch (name[9]) {
  ------------------
  |  Branch (291:13): [True: 3.41k, False: 70]
  ------------------
  292|     45|    case 'e':
  ------------------
  |  Branch (292:5): [True: 45, False: 3.44k]
  ------------------
  293|     45|      if (memeq("keep-aliv", name, 9)) {
  ------------------
  |  Branch (293:11): [True: 0, False: 45]
  ------------------
  294|      0|        return NGHTTP2_TOKEN_KEEP_ALIVE;
  295|      0|      }
  296|     45|      if (memeq("set-cooki", name, 9)) {
  ------------------
  |  Branch (296:11): [True: 0, False: 45]
  ------------------
  297|      0|        return NGHTTP2_TOKEN_SET_COOKIE;
  298|      0|      }
  299|     45|      break;
  300|     45|    case 'n':
  ------------------
  |  Branch (300:5): [True: 14, False: 3.47k]
  ------------------
  301|     14|      if (memeq("connectio", name, 9)) {
  ------------------
  |  Branch (301:11): [True: 0, False: 14]
  ------------------
  302|      0|        return NGHTTP2_TOKEN_CONNECTION;
  303|      0|      }
  304|     14|      break;
  305|    452|    case 't':
  ------------------
  |  Branch (305:5): [True: 452, False: 3.03k]
  ------------------
  306|    452|      if (memeq("user-agen", name, 9)) {
  ------------------
  |  Branch (306:11): [True: 439, False: 13]
  ------------------
  307|    439|        return NGHTTP2_TOKEN_USER_AGENT;
  308|    439|      }
  309|     13|      break;
  310|  2.90k|    case 'y':
  ------------------
  |  Branch (310:5): [True: 2.90k, False: 581]
  ------------------
  311|  2.90k|      if (memeq(":authorit", name, 9)) {
  ------------------
  |  Branch (311:11): [True: 2.88k, False: 18]
  ------------------
  312|  2.88k|        return NGHTTP2_TOKEN__AUTHORITY;
  313|  2.88k|      }
  314|     18|      break;
  315|  3.48k|    }
  316|    160|    break;
  317|    160|  case 11:
  ------------------
  |  Branch (317:3): [True: 57, False: 42.2k]
  ------------------
  318|     57|    switch (name[10]) {
  ------------------
  |  Branch (318:13): [True: 10, False: 47]
  ------------------
  319|     10|    case 'r':
  ------------------
  |  Branch (319:5): [True: 10, False: 47]
  ------------------
  320|     10|      if (memeq("retry-afte", name, 10)) {
  ------------------
  |  Branch (320:11): [True: 0, False: 10]
  ------------------
  321|      0|        return NGHTTP2_TOKEN_RETRY_AFTER;
  322|      0|      }
  323|     10|      break;
  324|     57|    }
  325|     57|    break;
  326|    984|  case 12:
  ------------------
  |  Branch (326:3): [True: 984, False: 41.3k]
  ------------------
  327|    984|    switch (name[11]) {
  ------------------
  |  Branch (327:13): [True: 831, False: 153]
  ------------------
  328|    816|    case 'e':
  ------------------
  |  Branch (328:5): [True: 816, False: 168]
  ------------------
  329|    816|      if (memeq("content-typ", name, 11)) {
  ------------------
  |  Branch (329:11): [True: 719, False: 97]
  ------------------
  330|    719|        return NGHTTP2_TOKEN_CONTENT_TYPE;
  331|    719|      }
  332|     97|      break;
  333|     97|    case 's':
  ------------------
  |  Branch (333:5): [True: 15, False: 969]
  ------------------
  334|     15|      if (memeq("max-forward", name, 11)) {
  ------------------
  |  Branch (334:11): [True: 0, False: 15]
  ------------------
  335|      0|        return NGHTTP2_TOKEN_MAX_FORWARDS;
  336|      0|      }
  337|     15|      break;
  338|    984|    }
  339|    265|    break;
  340|    307|  case 13:
  ------------------
  |  Branch (340:3): [True: 307, False: 42.0k]
  ------------------
  341|    307|    switch (name[12]) {
  ------------------
  |  Branch (341:13): [True: 291, False: 16]
  ------------------
  342|     10|    case 'd':
  ------------------
  |  Branch (342:5): [True: 10, False: 297]
  ------------------
  343|     10|      if (memeq("last-modifie", name, 12)) {
  ------------------
  |  Branch (343:11): [True: 0, False: 10]
  ------------------
  344|      0|        return NGHTTP2_TOKEN_LAST_MODIFIED;
  345|      0|      }
  346|     10|      break;
  347|     10|    case 'e':
  ------------------
  |  Branch (347:5): [True: 10, False: 297]
  ------------------
  348|     10|      if (memeq("content-rang", name, 12)) {
  ------------------
  |  Branch (348:11): [True: 0, False: 10]
  ------------------
  349|      0|        return NGHTTP2_TOKEN_CONTENT_RANGE;
  350|      0|      }
  351|     10|      break;
  352|     14|    case 'h':
  ------------------
  |  Branch (352:5): [True: 14, False: 293]
  ------------------
  353|     14|      if (memeq("if-none-matc", name, 12)) {
  ------------------
  |  Branch (353:11): [True: 0, False: 14]
  ------------------
  354|      0|        return NGHTTP2_TOKEN_IF_NONE_MATCH;
  355|      0|      }
  356|     14|      break;
  357|     14|    case 'l':
  ------------------
  |  Branch (357:5): [True: 11, False: 296]
  ------------------
  358|     11|      if (memeq("cache-contro", name, 12)) {
  ------------------
  |  Branch (358:11): [True: 0, False: 11]
  ------------------
  359|      0|        return NGHTTP2_TOKEN_CACHE_CONTROL;
  360|      0|      }
  361|     11|      break;
  362|    236|    case 'n':
  ------------------
  |  Branch (362:5): [True: 236, False: 71]
  ------------------
  363|    236|      if (memeq("authorizatio", name, 12)) {
  ------------------
  |  Branch (363:11): [True: 225, False: 11]
  ------------------
  364|    225|        return NGHTTP2_TOKEN_AUTHORIZATION;
  365|    225|      }
  366|     11|      break;
  367|     11|    case 's':
  ------------------
  |  Branch (367:5): [True: 10, False: 297]
  ------------------
  368|     10|      if (memeq("accept-range", name, 12)) {
  ------------------
  |  Branch (368:11): [True: 0, False: 10]
  ------------------
  369|      0|        return NGHTTP2_TOKEN_ACCEPT_RANGES;
  370|      0|      }
  371|     10|      break;
  372|    307|    }
  373|     82|    break;
  374|    484|  case 14:
  ------------------
  |  Branch (374:3): [True: 484, False: 41.8k]
  ------------------
  375|    484|    switch (name[13]) {
  ------------------
  |  Branch (375:13): [True: 416, False: 68]
  ------------------
  376|    409|    case 'h':
  ------------------
  |  Branch (376:5): [True: 409, False: 75]
  ------------------
  377|    409|      if (memeq("content-lengt", name, 13)) {
  ------------------
  |  Branch (377:11): [True: 377, False: 32]
  ------------------
  378|    377|        return NGHTTP2_TOKEN_CONTENT_LENGTH;
  379|    377|      }
  380|     32|      break;
  381|     32|    case 't':
  ------------------
  |  Branch (381:5): [True: 7, False: 477]
  ------------------
  382|      7|      if (memeq("accept-charse", name, 13)) {
  ------------------
  |  Branch (382:11): [True: 0, False: 7]
  ------------------
  383|      0|        return NGHTTP2_TOKEN_ACCEPT_CHARSET;
  384|      0|      }
  385|      7|      break;
  386|    484|    }
  387|    107|    break;
  388|    350|  case 15:
  ------------------
  |  Branch (388:3): [True: 350, False: 41.9k]
  ------------------
  389|    350|    switch (name[14]) {
  ------------------
  |  Branch (389:13): [True: 328, False: 22]
  ------------------
  390|     11|    case 'e':
  ------------------
  |  Branch (390:5): [True: 11, False: 339]
  ------------------
  391|     11|      if (memeq("accept-languag", name, 14)) {
  ------------------
  |  Branch (391:11): [True: 0, False: 11]
  ------------------
  392|      0|        return NGHTTP2_TOKEN_ACCEPT_LANGUAGE;
  393|      0|      }
  394|     11|      break;
  395|    317|    case 'g':
  ------------------
  |  Branch (395:5): [True: 317, False: 33]
  ------------------
  396|    317|      if (memeq("accept-encodin", name, 14)) {
  ------------------
  |  Branch (396:11): [True: 311, False: 6]
  ------------------
  397|    311|        return NGHTTP2_TOKEN_ACCEPT_ENCODING;
  398|    311|      }
  399|      6|      break;
  400|    350|    }
  401|     39|    break;
  402|    549|  case 16:
  ------------------
  |  Branch (402:3): [True: 549, False: 41.7k]
  ------------------
  403|    549|    switch (name[15]) {
  ------------------
  |  Branch (403:13): [True: 197, False: 352]
  ------------------
  404|      8|    case 'e':
  ------------------
  |  Branch (404:5): [True: 8, False: 541]
  ------------------
  405|      8|      if (memeq("content-languag", name, 15)) {
  ------------------
  |  Branch (405:11): [True: 0, False: 8]
  ------------------
  406|      0|        return NGHTTP2_TOKEN_CONTENT_LANGUAGE;
  407|      0|      }
  408|      8|      if (memeq("www-authenticat", name, 15)) {
  ------------------
  |  Branch (408:11): [True: 0, False: 8]
  ------------------
  409|      0|        return NGHTTP2_TOKEN_WWW_AUTHENTICATE;
  410|      0|      }
  411|      8|      break;
  412|    165|    case 'g':
  ------------------
  |  Branch (412:5): [True: 165, False: 384]
  ------------------
  413|    165|      if (memeq("content-encodin", name, 15)) {
  ------------------
  |  Branch (413:11): [True: 132, False: 33]
  ------------------
  414|    132|        return NGHTTP2_TOKEN_CONTENT_ENCODING;
  415|    132|      }
  416|     33|      break;
  417|     33|    case 'n':
  ------------------
  |  Branch (417:5): [True: 24, False: 525]
  ------------------
  418|     24|      if (memeq("content-locatio", name, 15)) {
  ------------------
  |  Branch (418:11): [True: 10, False: 14]
  ------------------
  419|     10|        return NGHTTP2_TOKEN_CONTENT_LOCATION;
  420|     10|      }
  421|     14|      if (memeq("proxy-connectio", name, 15)) {
  ------------------
  |  Branch (421:11): [True: 0, False: 14]
  ------------------
  422|      0|        return NGHTTP2_TOKEN_PROXY_CONNECTION;
  423|      0|      }
  424|     14|      break;
  425|    549|    }
  426|    407|    break;
  427|    407|  case 17:
  ------------------
  |  Branch (427:3): [True: 228, False: 42.0k]
  ------------------
  428|    228|    switch (name[16]) {
  ------------------
  |  Branch (428:13): [True: 26, False: 202]
  ------------------
  429|     10|    case 'e':
  ------------------
  |  Branch (429:5): [True: 10, False: 218]
  ------------------
  430|     10|      if (memeq("if-modified-sinc", name, 16)) {
  ------------------
  |  Branch (430:11): [True: 0, False: 10]
  ------------------
  431|      0|        return NGHTTP2_TOKEN_IF_MODIFIED_SINCE;
  432|      0|      }
  433|     10|      break;
  434|     16|    case 'g':
  ------------------
  |  Branch (434:5): [True: 16, False: 212]
  ------------------
  435|     16|      if (memeq("transfer-encodin", name, 16)) {
  ------------------
  |  Branch (435:11): [True: 0, False: 16]
  ------------------
  436|      0|        return NGHTTP2_TOKEN_TRANSFER_ENCODING;
  437|      0|      }
  438|     16|      break;
  439|    228|    }
  440|    228|    break;
  441|    228|  case 18:
  ------------------
  |  Branch (441:3): [True: 37, False: 42.2k]
  ------------------
  442|     37|    switch (name[17]) {
  ------------------
  |  Branch (442:13): [True: 12, False: 25]
  ------------------
  443|     12|    case 'e':
  ------------------
  |  Branch (443:5): [True: 12, False: 25]
  ------------------
  444|     12|      if (memeq("proxy-authenticat", name, 17)) {
  ------------------
  |  Branch (444:11): [True: 0, False: 12]
  ------------------
  445|      0|        return NGHTTP2_TOKEN_PROXY_AUTHENTICATE;
  446|      0|      }
  447|     12|      break;
  448|     37|    }
  449|     37|    break;
  450|     75|  case 19:
  ------------------
  |  Branch (450:3): [True: 75, False: 42.2k]
  ------------------
  451|     75|    switch (name[18]) {
  ------------------
  |  Branch (451:13): [True: 15, False: 60]
  ------------------
  452|      5|    case 'e':
  ------------------
  |  Branch (452:5): [True: 5, False: 70]
  ------------------
  453|      5|      if (memeq("if-unmodified-sinc", name, 18)) {
  ------------------
  |  Branch (453:11): [True: 0, False: 5]
  ------------------
  454|      0|        return NGHTTP2_TOKEN_IF_UNMODIFIED_SINCE;
  455|      0|      }
  456|      5|      break;
  457|     10|    case 'n':
  ------------------
  |  Branch (457:5): [True: 10, False: 65]
  ------------------
  458|     10|      if (memeq("content-dispositio", name, 18)) {
  ------------------
  |  Branch (458:11): [True: 0, False: 10]
  ------------------
  459|      0|        return NGHTTP2_TOKEN_CONTENT_DISPOSITION;
  460|      0|      }
  461|     10|      if (memeq("proxy-authorizatio", name, 18)) {
  ------------------
  |  Branch (461:11): [True: 0, False: 10]
  ------------------
  462|      0|        return NGHTTP2_TOKEN_PROXY_AUTHORIZATION;
  463|      0|      }
  464|     10|      break;
  465|     75|    }
  466|     75|    break;
  467|     75|  case 25:
  ------------------
  |  Branch (467:3): [True: 24, False: 42.2k]
  ------------------
  468|     24|    switch (name[24]) {
  ------------------
  |  Branch (468:13): [True: 6, False: 18]
  ------------------
  469|      6|    case 'y':
  ------------------
  |  Branch (469:5): [True: 6, False: 18]
  ------------------
  470|      6|      if (memeq("strict-transport-securit", name, 24)) {
  ------------------
  |  Branch (470:11): [True: 0, False: 6]
  ------------------
  471|      0|        return NGHTTP2_TOKEN_STRICT_TRANSPORT_SECURITY;
  472|      0|      }
  473|      6|      break;
  474|     24|    }
  475|     24|    break;
  476|     65|  case 27:
  ------------------
  |  Branch (476:3): [True: 65, False: 42.2k]
  ------------------
  477|     65|    switch (name[26]) {
  ------------------
  |  Branch (477:13): [True: 12, False: 53]
  ------------------
  478|     12|    case 'n':
  ------------------
  |  Branch (478:5): [True: 12, False: 53]
  ------------------
  479|     12|      if (memeq("access-control-allow-origi", name, 26)) {
  ------------------
  |  Branch (479:11): [True: 0, False: 12]
  ------------------
  480|      0|        return NGHTTP2_TOKEN_ACCESS_CONTROL_ALLOW_ORIGIN;
  481|      0|      }
  482|     12|      break;
  483|     65|    }
  484|     65|    break;
  485|  42.3k|  }
  486|  25.0k|  return -1;
  487|  42.3k|}
nghttp2_hd.c:memeq:
  114|  97.4k|static int memeq(const void *s1, const void *s2, size_t n) {
  115|  97.4k|  return memcmp(s1, s2, n) == 0;
  116|  97.4k|}
nghttp2_hd.c:name_hash:
  518|  17.0k|static uint32_t name_hash(const nghttp2_nv *nv) {
  519|       |  /* 32 bit FNV-1a: http://isthe.com/chongo/tech/comp/fnv/ */
  520|  17.0k|  uint32_t h = 2166136261u;
  521|  17.0k|  size_t i;
  522|       |
  523|   113k|  for (i = 0; i < nv->namelen; ++i) {
  ------------------
  |  Branch (523:15): [True: 96.7k, False: 17.0k]
  ------------------
  524|  96.7k|    h ^= nv->name[i];
  525|  96.7k|    h += (h << 1) + (h << 4) + (h << 7) + (h << 8) + (h << 24);
  526|  96.7k|  }
  527|       |
  528|  17.0k|  return h;
  529|  17.0k|}
nghttp2_hd.c:hd_deflate_decide_indexing:
 1341|  34.1k|                                      const nghttp2_nv *nv, int32_t token) {
 1342|  34.1k|  if (token == NGHTTP2_TOKEN__PATH || token == NGHTTP2_TOKEN_AGE ||
  ------------------
  |  Branch (1342:7): [True: 2.88k, False: 31.2k]
  |  Branch (1342:39): [True: 0, False: 31.2k]
  ------------------
 1343|  31.2k|      token == NGHTTP2_TOKEN_CONTENT_LENGTH || token == NGHTTP2_TOKEN_ETAG ||
  ------------------
  |  Branch (1343:7): [True: 377, False: 30.8k]
  |  Branch (1343:48): [True: 11, False: 30.8k]
  ------------------
 1344|  30.8k|      token == NGHTTP2_TOKEN_IF_MODIFIED_SINCE ||
  ------------------
  |  Branch (1344:7): [True: 0, False: 30.8k]
  ------------------
 1345|  30.8k|      token == NGHTTP2_TOKEN_IF_NONE_MATCH || token == NGHTTP2_TOKEN_LOCATION ||
  ------------------
  |  Branch (1345:7): [True: 0, False: 30.8k]
  |  Branch (1345:47): [True: 261, False: 30.5k]
  ------------------
 1346|  30.5k|      token == NGHTTP2_TOKEN_SET_COOKIE ||
  ------------------
  |  Branch (1346:7): [True: 0, False: 30.5k]
  ------------------
 1347|  30.5k|      entry_room(nv->namelen, nv->valuelen) >
  ------------------
  |  Branch (1347:7): [True: 25, False: 30.5k]
  ------------------
 1348|  30.5k|        deflater->ctx.hd_table_bufsize_max * 3 / 4) {
 1349|  3.55k|    return NGHTTP2_HD_WITHOUT_INDEXING;
 1350|  3.55k|  }
 1351|       |
 1352|  30.5k|  return NGHTTP2_HD_WITH_INDEXING;
 1353|  34.1k|}
nghttp2_hd.c:search_hd_table:
 1212|  34.3k|                                     uint32_t hash) {
 1213|  34.3k|  search_result res = {-1, 0};
 1214|  34.3k|  const nghttp2_hd_entry *ent;
 1215|  34.3k|  int exact_match;
 1216|  34.3k|  int name_only = indexing_mode == NGHTTP2_HD_NEVER_INDEXING;
 1217|       |
 1218|  34.3k|  exact_match = 0;
 1219|  34.3k|  ent = hd_map_find(map, &exact_match, nv, token, hash, name_only);
 1220|       |
 1221|  34.3k|  if (!exact_match && token >= 0 && token <= NGHTTP2_TOKEN_WWW_AUTHENTICATE) {
  ------------------
  |  Branch (1221:7): [True: 23.9k, False: 10.3k]
  |  Branch (1221:23): [True: 17.0k, False: 6.84k]
  |  Branch (1221:37): [True: 17.0k, False: 0]
  ------------------
 1222|  17.0k|    return search_static_table(nv, token, name_only);
 1223|  17.0k|  }
 1224|       |
 1225|  17.2k|  if (ent == NULL) {
  ------------------
  |  Branch (1225:7): [True: 3.64k, False: 13.5k]
  ------------------
 1226|  3.64k|    return res;
 1227|  3.64k|  }
 1228|       |
 1229|  13.5k|  res.index = (nghttp2_ssize)(context->next_seq - 1 - ent->seq +
 1230|  13.5k|                              NGHTTP2_STATIC_TABLE_LENGTH);
  ------------------
  |  |   53|  13.5k|#define NGHTTP2_STATIC_TABLE_LENGTH 61
  ------------------
 1231|  13.5k|  res.name_value_match = exact_match;
 1232|       |
 1233|  13.5k|  return res;
 1234|  17.2k|}
nghttp2_hd.c:hd_map_find:
  552|  34.3k|                                     uint32_t hash, int name_only) {
  553|  34.3k|  nghttp2_hd_entry *p;
  554|  34.3k|  nghttp2_hd_entry *res = NULL;
  555|       |
  556|  34.3k|  *exact_match = 0;
  557|       |
  558|  85.8k|  for (p = map->table[hash & (HD_MAP_SIZE - 1)]; p; p = p->next) {
  ------------------
  |  |  214|  34.3k|#define HD_MAP_SIZE 128
  ------------------
  |  Branch (558:50): [True: 61.9k, False: 23.9k]
  ------------------
  559|  61.9k|    if (token != p->nv.token ||
  ------------------
  |  Branch (559:9): [True: 783, False: 61.1k]
  ------------------
  560|  61.1k|        (token == -1 && (hash != p->hash || !name_eq(&p->nv, nv)))) {
  ------------------
  |  Branch (560:10): [True: 60.2k, False: 903]
  |  Branch (560:26): [True: 3.12k, False: 57.1k]
  |  Branch (560:45): [True: 0, False: 57.1k]
  ------------------
  561|  3.90k|      continue;
  562|  3.90k|    }
  563|  58.0k|    if (!res) {
  ------------------
  |  Branch (563:9): [True: 13.8k, False: 44.2k]
  ------------------
  564|  13.8k|      res = p;
  565|  13.8k|      if (name_only) {
  ------------------
  |  Branch (565:11): [True: 0, False: 13.8k]
  ------------------
  566|      0|        break;
  567|      0|      }
  568|  13.8k|    }
  569|  58.0k|    if (value_eq(&p->nv, nv)) {
  ------------------
  |  Branch (569:9): [True: 10.3k, False: 47.6k]
  ------------------
  570|  10.3k|      res = p;
  571|  10.3k|      *exact_match = 1;
  572|  10.3k|      break;
  573|  10.3k|    }
  574|  58.0k|  }
  575|       |
  576|  34.3k|  return res;
  577|  34.3k|}
nghttp2_hd.c:name_eq:
  508|  57.1k|static int name_eq(const nghttp2_hd_nv *a, const nghttp2_nv *b) {
  509|  57.1k|  return a->name->len == b->namelen &&
  ------------------
  |  Branch (509:10): [True: 57.1k, False: 0]
  ------------------
  510|  57.1k|         memeq(a->name->base, b->name, b->namelen);
  ------------------
  |  Branch (510:10): [True: 57.1k, False: 0]
  ------------------
  511|  57.1k|}
nghttp2_hd.c:value_eq:
  513|  58.0k|static int value_eq(const nghttp2_hd_nv *a, const nghttp2_nv *b) {
  514|  58.0k|  return a->value->len == b->valuelen &&
  ------------------
  |  Branch (514:10): [True: 17.2k, False: 40.7k]
  ------------------
  515|  17.2k|         memeq(a->value->base, b->value, b->valuelen);
  ------------------
  |  Branch (515:10): [True: 10.3k, False: 6.90k]
  ------------------
  516|  58.0k|}
nghttp2_hd.c:search_static_table:
 1186|  17.0k|                                         int name_only) {
 1187|  17.0k|  search_result res = {token, 0};
 1188|  17.0k|  int i;
 1189|  17.0k|  const nghttp2_hd_static_entry *ent;
 1190|       |
 1191|  17.0k|  if (name_only) {
  ------------------
  |  Branch (1191:7): [True: 225, False: 16.8k]
  ------------------
 1192|    225|    return res;
 1193|    225|  }
 1194|       |
 1195|  16.8k|  for (i = token;
 1196|  28.6k|       i <= NGHTTP2_TOKEN_WWW_AUTHENTICATE && static_table[i].token == token;
  ------------------
  |  Branch (1196:8): [True: 28.6k, False: 0]
  |  Branch (1196:47): [True: 19.0k, False: 9.57k]
  ------------------
 1197|  19.0k|       ++i) {
 1198|  19.0k|    ent = &static_table[i];
 1199|  19.0k|    if (ent->value.len == nv->valuelen &&
  ------------------
  |  Branch (1199:9): [True: 7.57k, False: 11.4k]
  ------------------
 1200|  7.57k|        memcmp(ent->value.base, nv->value, nv->valuelen) == 0) {
  ------------------
  |  Branch (1200:9): [True: 7.29k, False: 283]
  ------------------
 1201|  7.29k|      res.index = i;
 1202|  7.29k|      res.name_value_match = 1;
 1203|  7.29k|      return res;
 1204|  7.29k|    }
 1205|  19.0k|  }
 1206|  9.57k|  return res;
 1207|  16.8k|}
nghttp2_hd.c:emit_indexed_block:
  959|  17.6k|static int emit_indexed_block(nghttp2_bufs *bufs, size_t idx) {
  960|  17.6k|  int rv;
  961|  17.6k|  size_t blocklen;
  962|  17.6k|  uint8_t sb[16];
  963|  17.6k|  uint8_t *bufp;
  964|       |
  965|  17.6k|  blocklen = count_encoded_length(idx + 1, 7);
  966|       |
  967|  17.6k|  DEBUGF("deflatehd: emit indexed index=%zu, %zu bytes\n", idx, blocklen);
  ------------------
  |  |   39|  17.6k|    do {                                                                       \
  |  |   40|  17.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 17.6k]
  |  |  ------------------
  ------------------
  968|       |
  969|  17.6k|  if (sizeof(sb) < blocklen) {
  ------------------
  |  Branch (969:7): [True: 0, False: 17.6k]
  ------------------
  970|      0|    return NGHTTP2_ERR_HEADER_COMP;
  971|      0|  }
  972|       |
  973|  17.6k|  bufp = sb;
  974|  17.6k|  *bufp = 0x80u;
  975|  17.6k|  encode_length(bufp, idx + 1, 7);
  976|       |
  977|  17.6k|  rv = nghttp2_bufs_add(bufs, sb, blocklen);
  978|  17.6k|  if (rv != 0) {
  ------------------
  |  Branch (978:7): [True: 0, False: 17.6k]
  ------------------
  979|      0|    return rv;
  980|      0|  }
  981|       |
  982|  17.6k|  return 0;
  983|  17.6k|}
nghttp2_hd.c:add_hd_table_incremental:
 1116|  16.0k|                                    uint32_t hash) {
 1117|  16.0k|  int rv;
 1118|  16.0k|  nghttp2_hd_entry *new_ent;
 1119|  16.0k|  size_t room;
 1120|  16.0k|  nghttp2_mem *mem;
 1121|       |
 1122|  16.0k|  mem = context->mem;
 1123|  16.0k|  room = entry_room(nv->name->len, nv->value->len);
 1124|       |
 1125|  16.9k|  while (context->hd_table_bufsize + room > context->hd_table_bufsize_max &&
  ------------------
  |  Branch (1125:10): [True: 1.11k, False: 15.7k]
  ------------------
 1126|  1.11k|         context->hd_table.len > 0) {
  ------------------
  |  Branch (1126:10): [True: 826, False: 288]
  ------------------
 1127|    826|    size_t idx = context->hd_table.len - 1;
 1128|    826|    nghttp2_hd_entry *ent = hd_ringbuf_get(&context->hd_table, idx);
 1129|       |
 1130|    826|    context->hd_table_bufsize -=
 1131|    826|      entry_room(ent->nv.name->len, ent->nv.value->len);
 1132|       |
 1133|    826|    DEBUGF("hpack: remove item from header table: %s: %s\n",
  ------------------
  |  |   39|    826|    do {                                                                       \
  |  |   40|    826|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 826]
  |  |  ------------------
  ------------------
 1134|    826|           (char *)ent->nv.name->base, (char *)ent->nv.value->base);
 1135|       |
 1136|    826|    hd_ringbuf_pop_back(&context->hd_table);
 1137|    826|    if (map) {
  ------------------
  |  Branch (1137:9): [True: 524, False: 302]
  ------------------
 1138|    524|      hd_map_remove(map, ent);
 1139|    524|    }
 1140|       |
 1141|    826|    nghttp2_hd_entry_free(ent);
 1142|    826|    nghttp2_mem_free(mem, ent);
 1143|    826|  }
 1144|       |
 1145|  16.0k|  if (room > context->hd_table_bufsize_max) {
  ------------------
  |  Branch (1145:7): [True: 288, False: 15.7k]
  ------------------
 1146|       |    /* The entry taking more than NGHTTP2_HD_MAX_BUFFER_SIZE is
 1147|       |       immediately evicted.  So we don't allocate memory for it. */
 1148|    288|    return 0;
 1149|    288|  }
 1150|       |
 1151|  15.7k|  new_ent = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry));
 1152|  15.7k|  if (new_ent == NULL) {
  ------------------
  |  Branch (1152:7): [True: 0, False: 15.7k]
  ------------------
 1153|      0|    return NGHTTP2_ERR_NOMEM;
 1154|      0|  }
 1155|       |
 1156|  15.7k|  nghttp2_hd_entry_init(new_ent, nv);
 1157|       |
 1158|  15.7k|  rv = hd_ringbuf_push_front(&context->hd_table, new_ent, mem);
 1159|       |
 1160|  15.7k|  if (rv != 0) {
  ------------------
  |  Branch (1160:7): [True: 0, False: 15.7k]
  ------------------
 1161|      0|    nghttp2_hd_entry_free(new_ent);
 1162|      0|    nghttp2_mem_free(mem, new_ent);
 1163|       |
 1164|      0|    return rv;
 1165|      0|  }
 1166|       |
 1167|  15.7k|  new_ent->seq = context->next_seq++;
 1168|  15.7k|  new_ent->hash = hash;
 1169|       |
 1170|  15.7k|  if (map) {
  ------------------
  |  Branch (1170:7): [True: 14.3k, False: 1.45k]
  ------------------
 1171|  14.3k|    hd_map_insert(map, new_ent);
 1172|  14.3k|  }
 1173|       |
 1174|  15.7k|  context->hd_table_bufsize += room;
 1175|       |
 1176|  15.7k|  return 0;
 1177|  15.7k|}
nghttp2_hd.c:hd_ringbuf_push_front:
  667|  15.7k|                                 nghttp2_hd_entry *ent, nghttp2_mem *mem) {
  668|  15.7k|  int rv;
  669|       |
  670|  15.7k|  rv = hd_ringbuf_reserve(ringbuf, ringbuf->len + 1, mem);
  671|       |
  672|  15.7k|  if (rv != 0) {
  ------------------
  |  Branch (672:7): [True: 0, False: 15.7k]
  ------------------
  673|      0|    return rv;
  674|      0|  }
  675|       |
  676|  15.7k|  ringbuf->buffer[--ringbuf->first & ringbuf->mask] = ent;
  677|  15.7k|  ++ringbuf->len;
  678|       |
  679|  15.7k|  return 0;
  680|  15.7k|}
nghttp2_hd.c:hd_ringbuf_reserve:
  628|  15.7k|                              nghttp2_mem *mem) {
  629|  15.7k|  size_t i;
  630|  15.7k|  size_t size;
  631|  15.7k|  nghttp2_hd_entry **buffer;
  632|       |
  633|  15.7k|  if (ringbuf->mask + 1 >= bufsize) {
  ------------------
  |  Branch (633:7): [True: 15.7k, False: 0]
  ------------------
  634|  15.7k|    return 0;
  635|  15.7k|  }
  636|      0|  for (size = 1; size < bufsize; size <<= 1)
  ------------------
  |  Branch (636:18): [True: 0, False: 0]
  ------------------
  637|      0|    ;
  638|      0|  buffer = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry *) * size);
  639|      0|  if (buffer == NULL) {
  ------------------
  |  Branch (639:7): [True: 0, False: 0]
  ------------------
  640|      0|    return NGHTTP2_ERR_NOMEM;
  641|      0|  }
  642|      0|  for (i = 0; i < ringbuf->len; ++i) {
  ------------------
  |  Branch (642:15): [True: 0, False: 0]
  ------------------
  643|      0|    buffer[i] = hd_ringbuf_get(ringbuf, i);
  644|      0|  }
  645|      0|  nghttp2_mem_free(mem, ringbuf->buffer);
  646|      0|  ringbuf->buffer = buffer;
  647|      0|  ringbuf->mask = size - 1;
  648|      0|  ringbuf->first = 0;
  649|      0|  return 0;
  650|      0|}
nghttp2_hd.c:hd_map_insert:
  535|  14.3k|static void hd_map_insert(nghttp2_hd_map *map, nghttp2_hd_entry *ent) {
  536|  14.3k|  nghttp2_hd_entry **bucket;
  537|       |
  538|  14.3k|  bucket = &map->table[ent->hash & (HD_MAP_SIZE - 1)];
  ------------------
  |  |  214|  14.3k|#define HD_MAP_SIZE 128
  ------------------
  539|       |
  540|  14.3k|  if (*bucket == NULL) {
  ------------------
  |  Branch (540:7): [True: 10.5k, False: 3.78k]
  ------------------
  541|  10.5k|    *bucket = ent;
  542|  10.5k|    return;
  543|  10.5k|  }
  544|       |
  545|       |  /* lower index is linked near the root */
  546|  3.78k|  ent->next = *bucket;
  547|  3.78k|  *bucket = ent;
  548|  3.78k|}
nghttp2_hd.c:hd_inflate_read_len:
 1671|  43.0k|                                         size_t maxlen) {
 1672|  43.0k|  nghttp2_ssize rv;
 1673|  43.0k|  uint32_t out;
 1674|       |
 1675|  43.0k|  *rfin = 0;
 1676|       |
 1677|  43.0k|  rv = decode_length(&out, &inflater->shift, rfin, (uint32_t)inflater->left,
 1678|  43.0k|                     inflater->shift, in, last, prefix);
 1679|       |
 1680|  43.0k|  if (rv == -1) {
  ------------------
  |  Branch (1680:7): [True: 103, False: 42.9k]
  ------------------
 1681|    103|    DEBUGF("inflatehd: integer decoding failed\n");
  ------------------
  |  |   39|    103|    do {                                                                       \
  |  |   40|    103|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 103]
  |  |  ------------------
  ------------------
 1682|    103|    return NGHTTP2_ERR_HEADER_COMP;
 1683|    103|  }
 1684|       |
 1685|  42.9k|  if (out > maxlen) {
  ------------------
  |  Branch (1685:7): [True: 464, False: 42.4k]
  ------------------
 1686|    464|    DEBUGF("inflatehd: integer exceeded the maximum value %zu\n", maxlen);
  ------------------
  |  |   39|    464|    do {                                                                       \
  |  |   40|    464|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 464]
  |  |  ------------------
  ------------------
 1687|    464|    return NGHTTP2_ERR_HEADER_COMP;
 1688|    464|  }
 1689|       |
 1690|  42.4k|  inflater->left = out;
 1691|       |
 1692|  42.4k|  DEBUGF("inflatehd: decoded integer is %u\n", out);
  ------------------
  |  |   39|  42.4k|    do {                                                                       \
  |  |   40|  42.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 42.4k]
  |  |  ------------------
  ------------------
 1693|       |
 1694|  42.4k|  return rv;
 1695|  42.9k|}
nghttp2_hd.c:get_max_index:
 1310|  22.1k|static size_t get_max_index(nghttp2_hd_context *context) {
 1311|  22.1k|  return context->hd_table.len + NGHTTP2_STATIC_TABLE_LENGTH;
  ------------------
  |  |   53|  22.1k|#define NGHTTP2_STATIC_TABLE_LENGTH 61
  ------------------
 1312|  22.1k|}
nghttp2_hd.c:hd_inflate_commit_indexed:
 1763|  18.6k|                                      nghttp2_hd_nv *nv_out) {
 1764|  18.6k|  nghttp2_hd_nv nv = nghttp2_hd_table_get(&inflater->ctx, inflater->index);
 1765|       |
 1766|  18.6k|  emit_header(nv_out, &nv);
 1767|  18.6k|}
nghttp2_hd.c:emit_header:
  799|  29.2k|static void emit_header(nghttp2_hd_nv *nv_out, nghttp2_hd_nv *nv) {
  800|  29.2k|  DEBUGF("inflatehd: header emission: %s: %s\n", nv->name->base,
  ------------------
  |  |   39|  29.2k|    do {                                                                       \
  |  |   40|  29.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 29.2k]
  |  |  ------------------
  ------------------
  801|  29.2k|         nv->value->base);
  802|       |  /* ent->ref may be 0. This happens if the encoder emits literal
  803|       |     block larger than header table capacity with indexing. */
  804|  29.2k|  *nv_out = *nv;
  805|  29.2k|}
nghttp2_hd.c:hd_inflate_set_huffman_encoded:
 1651|  19.3k|                                           const uint8_t *in) {
 1652|  19.3k|  inflater->huffman_encoded = (*in & (1 << 7)) != 0;
 1653|  19.3k|}
nghttp2_hd.c:hd_inflate_read_huff:
 1712|  1.53k|                                          const uint8_t *last) {
 1713|  1.53k|  nghttp2_ssize readlen;
 1714|  1.53k|  int fin = 0;
 1715|  1.53k|  if ((size_t)(last - in) >= inflater->left) {
  ------------------
  |  Branch (1715:7): [True: 977, False: 555]
  ------------------
 1716|    977|    last = in + inflater->left;
 1717|    977|    fin = 1;
 1718|    977|  }
 1719|  1.53k|  readlen = nghttp2_hd_huff_decode(&inflater->huff_decode_ctx, buf, in,
 1720|  1.53k|                                   (size_t)(last - in), fin);
 1721|       |
 1722|  1.53k|  if (readlen < 0) {
  ------------------
  |  Branch (1722:7): [True: 29, False: 1.50k]
  ------------------
 1723|     29|    DEBUGF("inflatehd: huffman decoding failed\n");
  ------------------
  |  |   39|     29|    do {                                                                       \
  |  |   40|     29|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 29]
  |  |  ------------------
  ------------------
 1724|     29|    return readlen;
 1725|     29|  }
 1726|  1.50k|  if (nghttp2_hd_huff_decode_failure_state(&inflater->huff_decode_ctx)) {
  ------------------
  |  Branch (1726:7): [True: 6, False: 1.49k]
  ------------------
 1727|      6|    DEBUGF("inflatehd: huffman decoding failed\n");
  ------------------
  |  |   39|      6|    do {                                                                       \
  |  |   40|      6|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 6]
  |  |  ------------------
  ------------------
 1728|      6|    return NGHTTP2_ERR_HEADER_COMP;
 1729|      6|  }
 1730|       |
 1731|  1.49k|  inflater->left -= (size_t)readlen;
 1732|  1.49k|  return readlen;
 1733|  1.50k|}
nghttp2_hd.c:hd_inflate_read:
 1749|  18.5k|                                     const uint8_t *last) {
 1750|  18.5k|  size_t len = nghttp2_min_size((size_t)(last - in), inflater->left);
 1751|       |
 1752|  18.5k|  buf->last = nghttp2_cpymem(buf->last, in, len);
 1753|       |
 1754|  18.5k|  inflater->left -= len;
 1755|  18.5k|  return (nghttp2_ssize)len;
 1756|  18.5k|}
nghttp2_hd.c:hd_inflate_commit_newname:
 1781|  7.97k|                                     nghttp2_hd_nv *nv_out) {
 1782|  7.97k|  nghttp2_hd_nv nv;
 1783|  7.97k|  int rv;
 1784|       |
 1785|  7.97k|  if (inflater->no_index) {
  ------------------
  |  Branch (1785:7): [True: 347, False: 7.62k]
  ------------------
 1786|    347|    nv.flags = NGHTTP2_NV_FLAG_NO_INDEX;
 1787|  7.62k|  } else {
 1788|  7.62k|    nv.flags = NGHTTP2_NV_FLAG_NONE;
 1789|  7.62k|  }
 1790|       |
 1791|  7.97k|  nv.name = inflater->namercbuf;
 1792|  7.97k|  nv.value = inflater->valuercbuf;
 1793|  7.97k|  nv.token = lookup_token(inflater->namercbuf->base, inflater->namercbuf->len);
 1794|       |
 1795|  7.97k|  if (inflater->index_required) {
  ------------------
  |  Branch (1795:7): [True: 670, False: 7.30k]
  ------------------
 1796|    670|    rv = add_hd_table_incremental(&inflater->ctx, &nv, NULL, 0);
 1797|       |
 1798|    670|    if (rv != 0) {
  ------------------
  |  Branch (1798:9): [True: 0, False: 670]
  ------------------
 1799|      0|      return rv;
 1800|      0|    }
 1801|    670|  }
 1802|       |
 1803|  7.97k|  emit_header(nv_out, &nv);
 1804|       |
 1805|  7.97k|  inflater->nv_name_keep = nv.name;
 1806|  7.97k|  inflater->nv_value_keep = nv.value;
 1807|       |
 1808|  7.97k|  inflater->namercbuf = NULL;
 1809|  7.97k|  inflater->valuercbuf = NULL;
 1810|       |
 1811|  7.97k|  return 0;
 1812|  7.97k|}
nghttp2_hd.c:hd_inflate_commit_indname:
 1826|  2.66k|                                     nghttp2_hd_nv *nv_out) {
 1827|  2.66k|  nghttp2_hd_nv nv;
 1828|  2.66k|  int rv;
 1829|       |
 1830|  2.66k|  nv = nghttp2_hd_table_get(&inflater->ctx, inflater->index);
 1831|       |
 1832|  2.66k|  if (inflater->no_index) {
  ------------------
  |  Branch (1832:7): [True: 663, False: 2.00k]
  ------------------
 1833|    663|    nv.flags = NGHTTP2_NV_FLAG_NO_INDEX;
 1834|  2.00k|  } else {
 1835|  2.00k|    nv.flags = NGHTTP2_NV_FLAG_NONE;
 1836|  2.00k|  }
 1837|       |
 1838|  2.66k|  nghttp2_rcbuf_incref(nv.name);
 1839|       |
 1840|  2.66k|  nv.value = inflater->valuercbuf;
 1841|       |
 1842|  2.66k|  if (inflater->index_required) {
  ------------------
  |  Branch (1842:7): [True: 1.07k, False: 1.59k]
  ------------------
 1843|  1.07k|    rv = add_hd_table_incremental(&inflater->ctx, &nv, NULL, 0);
 1844|  1.07k|    if (rv != 0) {
  ------------------
  |  Branch (1844:9): [True: 0, False: 1.07k]
  ------------------
 1845|      0|      nghttp2_rcbuf_decref(nv.name);
 1846|      0|      return NGHTTP2_ERR_NOMEM;
 1847|      0|    }
 1848|  1.07k|  }
 1849|       |
 1850|  2.66k|  emit_header(nv_out, &nv);
 1851|       |
 1852|  2.66k|  inflater->nv_name_keep = nv.name;
 1853|  2.66k|  inflater->nv_value_keep = nv.value;
 1854|       |
 1855|  2.66k|  inflater->valuercbuf = NULL;
 1856|       |
 1857|  2.66k|  return 0;
 1858|  2.66k|}
nghttp2_hd.c:emit_indname_block:
 1047|  13.0k|                              const nghttp2_nv *nv, int indexing_mode) {
 1048|  13.0k|  int rv;
 1049|  13.0k|  uint8_t *bufp;
 1050|  13.0k|  size_t blocklen;
 1051|  13.0k|  uint8_t sb[16];
 1052|  13.0k|  size_t prefixlen;
 1053|       |
 1054|  13.0k|  if (indexing_mode == NGHTTP2_HD_WITH_INDEXING) {
  ------------------
  |  Branch (1054:7): [True: 10.7k, False: 2.29k]
  ------------------
 1055|  10.7k|    prefixlen = 6;
 1056|  10.7k|  } else {
 1057|  2.29k|    prefixlen = 4;
 1058|  2.29k|  }
 1059|       |
 1060|  13.0k|  DEBUGF("deflatehd: emit indname index=%zu, valuelen=%zu, indexing_mode=%d\n",
  ------------------
  |  |   39|  13.0k|    do {                                                                       \
  |  |   40|  13.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 13.0k]
  |  |  ------------------
  ------------------
 1061|  13.0k|         idx, nv->valuelen, indexing_mode);
 1062|       |
 1063|  13.0k|  blocklen = count_encoded_length(idx + 1, prefixlen);
 1064|       |
 1065|  13.0k|  if (sizeof(sb) < blocklen) {
  ------------------
  |  Branch (1065:7): [True: 0, False: 13.0k]
  ------------------
 1066|      0|    return NGHTTP2_ERR_HEADER_COMP;
 1067|      0|  }
 1068|       |
 1069|  13.0k|  bufp = sb;
 1070|       |
 1071|  13.0k|  *bufp = pack_first_byte(indexing_mode);
 1072|       |
 1073|  13.0k|  encode_length(bufp, idx + 1, prefixlen);
 1074|       |
 1075|  13.0k|  rv = nghttp2_bufs_add(bufs, sb, blocklen);
 1076|  13.0k|  if (rv != 0) {
  ------------------
  |  Branch (1076:7): [True: 0, False: 13.0k]
  ------------------
 1077|      0|    return rv;
 1078|      0|  }
 1079|       |
 1080|  13.0k|  rv = emit_string(bufs, nv->value, nv->valuelen);
 1081|  13.0k|  if (rv != 0) {
  ------------------
  |  Branch (1081:7): [True: 0, False: 13.0k]
  ------------------
 1082|      0|    return rv;
 1083|      0|  }
 1084|       |
 1085|  13.0k|  return 0;
 1086|  13.0k|}
nghttp2_hd.c:pack_first_byte:
 1030|  16.6k|static uint8_t pack_first_byte(int indexing_mode) {
 1031|  16.6k|  switch (indexing_mode) {
 1032|  14.3k|  case NGHTTP2_HD_WITH_INDEXING:
  ------------------
  |  Branch (1032:3): [True: 14.3k, False: 2.31k]
  ------------------
 1033|  14.3k|    return 0x40u;
 1034|  2.08k|  case NGHTTP2_HD_WITHOUT_INDEXING:
  ------------------
  |  Branch (1034:3): [True: 2.08k, False: 14.5k]
  ------------------
 1035|  2.08k|    return 0;
 1036|    225|  case NGHTTP2_HD_NEVER_INDEXING:
  ------------------
  |  Branch (1036:3): [True: 225, False: 16.4k]
  ------------------
 1037|    225|    return 0x10u;
 1038|      0|  default:
  ------------------
  |  Branch (1038:3): [True: 0, False: 16.6k]
  ------------------
 1039|      0|    assert(0);
  ------------------
  |  Branch (1039:5): [Folded, False: 0]
  |  Branch (1039:5): [Folded, False: 0]
  ------------------
 1040|  16.6k|  }
 1041|       |  /* This is required to compile with android NDK r10d +
 1042|       |     --enable-werror */
 1043|      0|  return 0;
 1044|  16.6k|}
nghttp2_hd.c:emit_string:
  985|  20.2k|static int emit_string(nghttp2_bufs *bufs, const uint8_t *str, size_t len) {
  986|  20.2k|  int rv;
  987|  20.2k|  uint8_t sb[16];
  988|  20.2k|  uint8_t *bufp;
  989|  20.2k|  size_t blocklen;
  990|  20.2k|  size_t enclen;
  991|  20.2k|  int huffman = 0;
  992|       |
  993|  20.2k|  enclen = nghttp2_hd_huff_encode_count(str, len);
  994|       |
  995|  20.2k|  if (enclen < len) {
  ------------------
  |  Branch (995:7): [True: 6.43k, False: 13.8k]
  ------------------
  996|  6.43k|    huffman = 1;
  997|  13.8k|  } else {
  998|  13.8k|    enclen = len;
  999|  13.8k|  }
 1000|       |
 1001|  20.2k|  blocklen = count_encoded_length(enclen, 7);
 1002|       |
 1003|  20.2k|  DEBUGF("deflatehd: emit string str=%.*s, length=%zu, huffman=%d, "
  ------------------
  |  |   39|  20.2k|    do {                                                                       \
  |  |   40|  20.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
 1004|  20.2k|         "encoded_length=%zu\n",
 1005|  20.2k|         (int)len, (const char *)str, len, huffman, enclen);
 1006|       |
 1007|  20.2k|  if (sizeof(sb) < blocklen) {
  ------------------
  |  Branch (1007:7): [True: 0, False: 20.2k]
  ------------------
 1008|      0|    return NGHTTP2_ERR_HEADER_COMP;
 1009|      0|  }
 1010|       |
 1011|  20.2k|  bufp = sb;
 1012|  20.2k|  *bufp = huffman ? 1 << 7 : 0;
  ------------------
  |  Branch (1012:11): [True: 6.43k, False: 13.8k]
  ------------------
 1013|  20.2k|  encode_length(bufp, enclen, 7);
 1014|       |
 1015|  20.2k|  rv = nghttp2_bufs_add(bufs, sb, blocklen);
 1016|  20.2k|  if (rv != 0) {
  ------------------
  |  Branch (1016:7): [True: 0, False: 20.2k]
  ------------------
 1017|      0|    return rv;
 1018|      0|  }
 1019|       |
 1020|  20.2k|  if (huffman) {
  ------------------
  |  Branch (1020:7): [True: 6.43k, False: 13.8k]
  ------------------
 1021|  6.43k|    rv = nghttp2_hd_huff_encode(bufs, str, len);
 1022|  13.8k|  } else {
 1023|  13.8k|    assert(enclen == len);
  ------------------
  |  Branch (1023:5): [True: 0, False: 13.8k]
  |  Branch (1023:5): [True: 13.8k, False: 0]
  ------------------
 1024|  13.8k|    rv = nghttp2_bufs_add(bufs, str, len);
 1025|  13.8k|  }
 1026|       |
 1027|  20.2k|  return rv;
 1028|  20.2k|}
nghttp2_hd.c:emit_newname_block:
 1089|  3.64k|                              int indexing_mode) {
 1090|  3.64k|  int rv;
 1091|       |
 1092|  3.64k|  DEBUGF(
  ------------------
  |  |   39|  3.64k|    do {                                                                       \
  |  |   40|  3.64k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3.64k]
  |  |  ------------------
  ------------------
 1093|  3.64k|    "deflatehd: emit newname namelen=%zu, valuelen=%zu, indexing_mode=%d\n",
 1094|  3.64k|    nv->namelen, nv->valuelen, indexing_mode);
 1095|       |
 1096|  3.64k|  rv = nghttp2_bufs_addb(bufs, pack_first_byte(indexing_mode));
 1097|  3.64k|  if (rv != 0) {
  ------------------
  |  Branch (1097:7): [True: 0, False: 3.64k]
  ------------------
 1098|      0|    return rv;
 1099|      0|  }
 1100|       |
 1101|  3.64k|  rv = emit_string(bufs, nv->name, nv->namelen);
 1102|  3.64k|  if (rv != 0) {
  ------------------
  |  Branch (1102:7): [True: 0, False: 3.64k]
  ------------------
 1103|      0|    return rv;
 1104|      0|  }
 1105|       |
 1106|  3.64k|  rv = emit_string(bufs, nv->value, nv->valuelen);
 1107|  3.64k|  if (rv != 0) {
  ------------------
  |  Branch (1107:7): [True: 0, False: 3.64k]
  ------------------
 1108|      0|    return rv;
 1109|      0|  }
 1110|       |
 1111|  3.64k|  return 0;
 1112|  3.64k|}
nghttp2_hd.c:decode_length:
  869|  43.0k|                                   size_t prefix) {
  870|  43.0k|  uint32_t k = (uint8_t)((1 << prefix) - 1);
  871|  43.0k|  uint32_t n = initial;
  872|  43.0k|  const uint8_t *start = in;
  873|       |
  874|  43.0k|  *shift_ptr = 0;
  875|  43.0k|  *fin = 0;
  876|       |
  877|  43.0k|  if (n == 0) {
  ------------------
  |  Branch (877:7): [True: 42.3k, False: 669]
  ------------------
  878|  42.3k|    if ((*in & k) != k) {
  ------------------
  |  Branch (878:9): [True: 40.8k, False: 1.53k]
  ------------------
  879|  40.8k|      *res = (*in) & k;
  880|  40.8k|      *fin = 1;
  881|  40.8k|      return 1;
  882|  40.8k|    }
  883|       |
  884|  1.53k|    n = k;
  885|       |
  886|  1.53k|    if (++in == last) {
  ------------------
  |  Branch (886:9): [True: 423, False: 1.11k]
  ------------------
  887|    423|      *res = n;
  888|    423|      return (nghttp2_ssize)(in - start);
  889|    423|    }
  890|  1.53k|  }
  891|       |
  892|  3.17k|  for (; in != last; ++in, shift += 7) {
  ------------------
  |  Branch (892:10): [True: 2.72k, False: 446]
  ------------------
  893|  2.72k|    uint32_t add = *in & 0x7f;
  894|       |
  895|  2.72k|    if (shift >= 32) {
  ------------------
  |  Branch (895:9): [True: 38, False: 2.69k]
  ------------------
  896|     38|      DEBUGF("inflate: shift exponent overflow\n");
  ------------------
  |  |   39|     38|    do {                                                                       \
  |  |   40|     38|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 38]
  |  |  ------------------
  ------------------
  897|     38|      return -1;
  898|     38|    }
  899|       |
  900|  2.69k|    if ((UINT32_MAX >> shift) < add) {
  ------------------
  |  Branch (900:9): [True: 61, False: 2.62k]
  ------------------
  901|     61|      DEBUGF("inflate: integer overflow on shift\n");
  ------------------
  |  |   39|     61|    do {                                                                       \
  |  |   40|     61|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 61]
  |  |  ------------------
  ------------------
  902|     61|      return -1;
  903|     61|    }
  904|       |
  905|  2.62k|    add <<= shift;
  906|       |
  907|  2.62k|    if (UINT32_MAX - add < n) {
  ------------------
  |  Branch (907:9): [True: 4, False: 2.62k]
  ------------------
  908|      4|      DEBUGF("inflate: integer overflow on addition\n");
  ------------------
  |  |   39|      4|    do {                                                                       \
  |  |   40|      4|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4]
  |  |  ------------------
  ------------------
  909|      4|      return -1;
  910|      4|    }
  911|       |
  912|  2.62k|    n += add;
  913|       |
  914|  2.62k|    if ((*in & (1 << 7)) == 0) {
  ------------------
  |  Branch (914:9): [True: 1.23k, False: 1.39k]
  ------------------
  915|  1.23k|      break;
  916|  1.23k|    }
  917|  2.62k|  }
  918|       |
  919|  1.68k|  *shift_ptr = shift;
  920|       |
  921|  1.68k|  if (in == last) {
  ------------------
  |  Branch (921:7): [True: 446, False: 1.23k]
  ------------------
  922|    446|    *res = n;
  923|    446|    return (nghttp2_ssize)(in - start);
  924|    446|  }
  925|       |
  926|  1.23k|  *res = n;
  927|  1.23k|  *fin = 1;
  928|  1.23k|  return (nghttp2_ssize)(in + 1 - start);
  929|  1.68k|}

nghttp2_hd_huff_encode_count:
   34|  20.2k|size_t nghttp2_hd_huff_encode_count(const uint8_t *src, size_t len) {
   35|  20.2k|  size_t i;
   36|  20.2k|  size_t nbits = 0;
   37|       |
   38|   448k|  for (i = 0; i < len; ++i) {
  ------------------
  |  Branch (38:15): [True: 427k, False: 20.2k]
  ------------------
   39|   427k|    nbits += huff_sym_table[src[i]].nbits;
   40|   427k|  }
   41|       |  /* pad the prefix of EOS (256) */
   42|  20.2k|  return (nbits + 7) / 8;
   43|  20.2k|}
nghttp2_hd_huff_encode:
   46|  6.43k|                           size_t srclen) {
   47|  6.43k|  const nghttp2_huff_sym *sym;
   48|  6.43k|  const uint8_t *end = src + srclen;
   49|  6.43k|  uint64_t code = 0;
   50|  6.43k|  uint32_t x;
   51|  6.43k|  size_t nbits = 0;
   52|  6.43k|  size_t avail;
   53|  6.43k|  int rv;
   54|       |
   55|  6.43k|  avail = nghttp2_bufs_cur_avail(bufs);
  ------------------
  |  |  405|  6.43k|#define nghttp2_bufs_cur_avail(BUFS) nghttp2_buf_avail(&(BUFS)->cur->buf)
  |  |  ------------------
  |  |  |  |   55|  6.43k|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  |  |  ------------------
  ------------------
   56|       |
   57|   296k|  for (; src != end;) {
  ------------------
  |  Branch (57:10): [True: 289k, False: 6.43k]
  ------------------
   58|   289k|    sym = &huff_sym_table[*src++];
   59|   289k|    code |= (uint64_t)sym->code << (32 - nbits);
   60|   289k|    nbits += sym->nbits;
   61|   289k|    if (nbits < 32) {
  ------------------
  |  Branch (61:9): [True: 244k, False: 45.1k]
  ------------------
   62|   244k|      continue;
   63|   244k|    }
   64|  45.1k|    if (avail >= 4) {
  ------------------
  |  Branch (64:9): [True: 45.1k, False: 0]
  ------------------
   65|  45.1k|      x = htonl((uint32_t)(code >> 32));
   66|  45.1k|      memcpy(bufs->cur->buf.last, &x, 4);
   67|  45.1k|      bufs->cur->buf.last += 4;
   68|  45.1k|      avail -= 4;
   69|  45.1k|      code <<= 32;
   70|  45.1k|      nbits -= 32;
   71|  45.1k|      continue;
   72|  45.1k|    }
   73|       |
   74|      0|    for (; nbits >= 8;) {
  ------------------
  |  Branch (74:12): [True: 0, False: 0]
  ------------------
   75|      0|      rv = nghttp2_bufs_addb(bufs, (uint8_t)(code >> 56));
   76|      0|      if (rv != 0) {
  ------------------
  |  Branch (76:11): [True: 0, False: 0]
  ------------------
   77|      0|        return rv;
   78|      0|      }
   79|      0|      code <<= 8;
   80|      0|      nbits -= 8;
   81|      0|    }
   82|       |
   83|      0|    avail = nghttp2_bufs_cur_avail(bufs);
  ------------------
  |  |  405|      0|#define nghttp2_bufs_cur_avail(BUFS) nghttp2_buf_avail(&(BUFS)->cur->buf)
  |  |  ------------------
  |  |  |  |   55|      0|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  |  |  ------------------
  ------------------
   84|      0|  }
   85|       |
   86|  17.9k|  for (; nbits >= 8;) {
  ------------------
  |  Branch (86:10): [True: 11.5k, False: 6.43k]
  ------------------
   87|  11.5k|    rv = nghttp2_bufs_addb(bufs, (uint8_t)(code >> 56));
   88|  11.5k|    if (rv != 0) {
  ------------------
  |  Branch (88:9): [True: 0, False: 11.5k]
  ------------------
   89|      0|      return rv;
   90|      0|    }
   91|  11.5k|    code <<= 8;
   92|  11.5k|    nbits -= 8;
   93|  11.5k|  }
   94|       |
   95|  6.43k|  if (nbits) {
  ------------------
  |  Branch (95:7): [True: 5.80k, False: 628]
  ------------------
   96|  5.80k|    rv = nghttp2_bufs_addb(
   97|  5.80k|      bufs, (uint8_t)((uint8_t)(code >> 56) | ((1 << (8 - nbits)) - 1)));
   98|  5.80k|    if (rv != 0) {
  ------------------
  |  Branch (98:9): [True: 0, False: 5.80k]
  ------------------
   99|      0|      return rv;
  100|      0|    }
  101|  5.80k|  }
  102|       |
  103|  6.43k|  return 0;
  104|  6.43k|}
nghttp2_hd_huff_decode_context_init:
  106|  1.18k|void nghttp2_hd_huff_decode_context_init(nghttp2_hd_huff_decode_context *ctx) {
  107|  1.18k|  ctx->fstate = 0;
  108|  1.18k|  ctx->flags = NGHTTP2_HUFF_ACCEPTED;
  109|  1.18k|}
nghttp2_hd_huff_decode:
  113|  1.53k|                                     size_t srclen, int final) {
  114|  1.53k|  const uint8_t *end = src + srclen;
  115|  1.53k|  nghttp2_huff_decode t = {ctx->fstate, ctx->flags, 0};
  116|  1.53k|  uint8_t c;
  117|       |
  118|       |  /* We use the decoding algorithm described in
  119|       |      - http://graphics.ics.uci.edu/pub/Prefix.pdf [!!! NO LONGER VALID !!!]
  120|       |      - https://ics.uci.edu/~dan/pubs/Prefix.pdf
  121|       |      - https://github.com/nghttp2/nghttp2/files/15141264/Prefix.pdf */
  122|  18.0k|  for (; src != end;) {
  ------------------
  |  Branch (122:10): [True: 16.4k, False: 1.53k]
  ------------------
  123|  16.4k|    c = *src++;
  124|  16.4k|    t = huff_decode_table[t.fstate][c >> 4];
  125|  16.4k|    if (t.flags & NGHTTP2_HUFF_SYM) {
  ------------------
  |  Branch (125:9): [True: 11.2k, False: 5.22k]
  ------------------
  126|  11.2k|      *buf->last++ = t.sym;
  127|  11.2k|    }
  128|       |
  129|  16.4k|    t = huff_decode_table[t.fstate][c & 0xf];
  130|  16.4k|    if (t.flags & NGHTTP2_HUFF_SYM) {
  ------------------
  |  Branch (130:9): [True: 10.9k, False: 5.50k]
  ------------------
  131|  10.9k|      *buf->last++ = t.sym;
  132|  10.9k|    }
  133|  16.4k|  }
  134|       |
  135|  1.53k|  ctx->fstate = t.fstate;
  136|  1.53k|  ctx->flags = t.flags;
  137|       |
  138|  1.53k|  if (final && !(ctx->flags & NGHTTP2_HUFF_ACCEPTED)) {
  ------------------
  |  Branch (138:7): [True: 977, False: 555]
  |  Branch (138:16): [True: 29, False: 948]
  ------------------
  139|     29|    return NGHTTP2_ERR_HEADER_COMP;
  140|     29|  }
  141|       |
  142|  1.50k|  return (nghttp2_ssize)srclen;
  143|  1.53k|}
nghttp2_hd_huff_decode_failure_state:
  145|  1.50k|int nghttp2_hd_huff_decode_failure_state(nghttp2_hd_huff_decode_context *ctx) {
  146|  1.50k|  return ctx->fstate == 0x100;
  147|  1.50k|}

nghttp2_hd.c:nghttp2_huff_estimate_decode_length:
   78|  1.18k|static inline size_t nghttp2_huff_estimate_decode_length(size_t len) {
   79|  1.18k|  return len * 8 / 5;
   80|  1.18k|}

nghttp2_put_uint16be:
   32|  10.4k|void nghttp2_put_uint16be(uint8_t *buf, uint16_t n) {
   33|       |  uint16_t x = htons(n);
   34|  10.4k|  memcpy(buf, &x, sizeof(uint16_t));
   35|  10.4k|}
nghttp2_put_uint32be:
   37|  47.6k|void nghttp2_put_uint32be(uint8_t *buf, uint32_t n) {
   38|       |  uint32_t x = htonl(n);
   39|  47.6k|  memcpy(buf, &x, sizeof(uint32_t));
   40|  47.6k|}
nghttp2_get_uint16:
   42|  2.18k|uint16_t nghttp2_get_uint16(const uint8_t *data) {
   43|  2.18k|  uint16_t n;
   44|  2.18k|  memcpy(&n, data, sizeof(uint16_t));
   45|       |  return ntohs(n);
   46|  2.18k|}
nghttp2_get_uint32:
   48|  12.4k|uint32_t nghttp2_get_uint32(const uint8_t *data) {
   49|  12.4k|  uint32_t n;
   50|  12.4k|  memcpy(&n, data, sizeof(uint32_t));
   51|       |  return ntohl(n);
   52|  12.4k|}
nghttp2_downcase:
  122|  34.3k|void nghttp2_downcase(uint8_t *s, size_t len) {
  123|  34.3k|  size_t i;
  124|   264k|  for (i = 0; i < len; ++i) {
  ------------------
  |  Branch (124:15): [True: 230k, False: 34.3k]
  ------------------
  125|   230k|    s[i] = DOWNCASE_TBL[s[i]];
  126|   230k|  }
  127|  34.3k|}
nghttp2_adjust_local_window_size:
  158|  2.93k|                                     int32_t *delta_ptr) {
  159|  2.93k|  if (*delta_ptr > 0) {
  ------------------
  |  Branch (159:7): [True: 0, False: 2.93k]
  ------------------
  160|      0|    int32_t recv_reduction_delta;
  161|      0|    int32_t delta;
  162|      0|    int32_t new_recv_window_size =
  163|      0|      nghttp2_max_int32(0, *recv_window_size_ptr) - *delta_ptr;
  164|       |
  165|      0|    if (new_recv_window_size >= 0) {
  ------------------
  |  Branch (165:9): [True: 0, False: 0]
  ------------------
  166|      0|      *recv_window_size_ptr = new_recv_window_size;
  167|      0|      return 0;
  168|      0|    }
  169|       |
  170|      0|    delta = -new_recv_window_size;
  171|       |
  172|       |    /* The delta size is strictly more than received bytes. Increase
  173|       |       local_window_size by that difference |delta|. */
  174|      0|    if (*local_window_size_ptr > NGHTTP2_MAX_WINDOW_SIZE - delta) {
  ------------------
  |  |  224|      0|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (174:9): [True: 0, False: 0]
  ------------------
  175|      0|      return NGHTTP2_ERR_FLOW_CONTROL;
  176|      0|    }
  177|      0|    *local_window_size_ptr += delta;
  178|       |    /* If there is recv_reduction due to earlier window_size
  179|       |       reduction, we have to adjust it too. */
  180|      0|    recv_reduction_delta = nghttp2_min_int32(*recv_reduction_ptr, delta);
  181|      0|    *recv_reduction_ptr -= recv_reduction_delta;
  182|      0|    if (*recv_window_size_ptr < 0) {
  ------------------
  |  Branch (182:9): [True: 0, False: 0]
  ------------------
  183|      0|      *recv_window_size_ptr += recv_reduction_delta;
  184|      0|    } else {
  185|       |      /* If *recv_window_size_ptr > 0, then those bytes are going to
  186|       |         be returned to the remote peer (by WINDOW_UPDATE with the
  187|       |         adjusted *delta_ptr), so it is effectively 0 now.  We set to
  188|       |         *recv_reduction_delta, because caller does not take into
  189|       |         account it in *delta_ptr. */
  190|      0|      *recv_window_size_ptr = recv_reduction_delta;
  191|      0|    }
  192|       |    /* recv_reduction_delta must be paid from *delta_ptr, since it was
  193|       |       added in window size reduction (see below). */
  194|      0|    *delta_ptr -= recv_reduction_delta;
  195|       |
  196|      0|    return 0;
  197|      0|  }
  198|       |
  199|  2.93k|  if (*local_window_size_ptr + *delta_ptr < 0 ||
  ------------------
  |  Branch (199:7): [True: 0, False: 2.93k]
  ------------------
  200|  2.93k|      *recv_window_size_ptr < INT32_MIN - *delta_ptr ||
  ------------------
  |  Branch (200:7): [True: 0, False: 2.93k]
  ------------------
  201|  2.93k|      *recv_reduction_ptr > INT32_MAX + *delta_ptr) {
  ------------------
  |  Branch (201:7): [True: 0, False: 2.93k]
  ------------------
  202|      0|    return NGHTTP2_ERR_FLOW_CONTROL;
  203|      0|  }
  204|       |  /* Decreasing local window size. Note that we achieve this without
  205|       |     noticing to the remote peer. To do this, we cut
  206|       |     recv_window_size by -delta. This means that we don't send
  207|       |     WINDOW_UPDATE for -delta bytes. */
  208|  2.93k|  *local_window_size_ptr += *delta_ptr;
  209|  2.93k|  *recv_window_size_ptr += *delta_ptr;
  210|  2.93k|  *recv_reduction_ptr -= *delta_ptr;
  211|  2.93k|  *delta_ptr = 0;
  212|       |
  213|  2.93k|  return 0;
  214|  2.93k|}
nghttp2_increase_local_window_size:
  219|  2.94k|                                       int32_t *delta_ptr) {
  220|  2.94k|  int32_t recv_reduction_delta;
  221|  2.94k|  int32_t delta;
  222|       |
  223|  2.94k|  delta = *delta_ptr;
  224|       |
  225|  2.94k|  assert(delta >= 0);
  ------------------
  |  Branch (225:3): [True: 0, False: 2.94k]
  |  Branch (225:3): [True: 2.94k, False: 0]
  ------------------
  226|       |
  227|       |  /* The delta size is strictly more than received bytes. Increase
  228|       |     local_window_size by that difference |delta|. */
  229|  2.94k|  if (*local_window_size_ptr > NGHTTP2_MAX_WINDOW_SIZE - delta) {
  ------------------
  |  |  224|  2.94k|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (229:7): [True: 0, False: 2.94k]
  ------------------
  230|      0|    return NGHTTP2_ERR_FLOW_CONTROL;
  231|      0|  }
  232|       |
  233|  2.94k|  *local_window_size_ptr += delta;
  234|       |  /* If there is recv_reduction due to earlier window_size
  235|       |     reduction, we have to adjust it too. */
  236|  2.94k|  recv_reduction_delta = nghttp2_min_int32(*recv_reduction_ptr, delta);
  237|  2.94k|  *recv_reduction_ptr -= recv_reduction_delta;
  238|       |
  239|  2.94k|  *recv_window_size_ptr += recv_reduction_delta;
  240|       |
  241|       |  /* recv_reduction_delta must be paid from *delta_ptr, since it was
  242|       |     added in window size reduction (see below). */
  243|  2.94k|  *delta_ptr -= recv_reduction_delta;
  244|       |
  245|  2.94k|  return 0;
  246|  2.94k|}
nghttp2_should_send_window_update:
  249|  3.05k|                                      int32_t recv_window_size) {
  250|  3.05k|  return recv_window_size > 0 && recv_window_size >= local_window_size / 2;
  ------------------
  |  Branch (250:10): [True: 104, False: 2.94k]
  |  Branch (250:34): [True: 0, False: 104]
  ------------------
  251|  3.05k|}
nghttp2_strerror:
  253|    584|const char *nghttp2_strerror(int error_code) {
  254|    584|  switch (error_code) {
  255|      0|  case 0:
  ------------------
  |  Branch (255:3): [True: 0, False: 584]
  ------------------
  256|      0|    return "Success";
  257|      0|  case NGHTTP2_ERR_INVALID_ARGUMENT:
  ------------------
  |  Branch (257:3): [True: 0, False: 584]
  ------------------
  258|      0|    return "Invalid argument";
  259|      0|  case NGHTTP2_ERR_BUFFER_ERROR:
  ------------------
  |  Branch (259:3): [True: 0, False: 584]
  ------------------
  260|      0|    return "Out of buffer space";
  261|      0|  case NGHTTP2_ERR_UNSUPPORTED_VERSION:
  ------------------
  |  Branch (261:3): [True: 0, False: 584]
  ------------------
  262|      0|    return "Unsupported SPDY version";
  263|      0|  case NGHTTP2_ERR_WOULDBLOCK:
  ------------------
  |  Branch (263:3): [True: 0, False: 584]
  ------------------
  264|      0|    return "Operation would block";
  265|     13|  case NGHTTP2_ERR_PROTO:
  ------------------
  |  Branch (265:3): [True: 13, False: 571]
  ------------------
  266|     13|    return "Protocol error";
  267|      0|  case NGHTTP2_ERR_INVALID_FRAME:
  ------------------
  |  Branch (267:3): [True: 0, False: 584]
  ------------------
  268|      0|    return "Invalid frame octets";
  269|      0|  case NGHTTP2_ERR_EOF:
  ------------------
  |  Branch (269:3): [True: 0, False: 584]
  ------------------
  270|      0|    return "EOF";
  271|      0|  case NGHTTP2_ERR_DEFERRED:
  ------------------
  |  Branch (271:3): [True: 0, False: 584]
  ------------------
  272|      0|    return "Data transfer deferred";
  273|      0|  case NGHTTP2_ERR_STREAM_ID_NOT_AVAILABLE:
  ------------------
  |  Branch (273:3): [True: 0, False: 584]
  ------------------
  274|      0|    return "No more Stream ID available";
  275|      2|  case NGHTTP2_ERR_STREAM_CLOSED:
  ------------------
  |  Branch (275:3): [True: 2, False: 582]
  ------------------
  276|      2|    return "Stream was already closed or invalid";
  277|      0|  case NGHTTP2_ERR_STREAM_CLOSING:
  ------------------
  |  Branch (277:3): [True: 0, False: 584]
  ------------------
  278|      0|    return "Stream is closing";
  279|      0|  case NGHTTP2_ERR_STREAM_SHUT_WR:
  ------------------
  |  Branch (279:3): [True: 0, False: 584]
  ------------------
  280|      0|    return "The transmission is not allowed for this stream";
  281|      0|  case NGHTTP2_ERR_INVALID_STREAM_ID:
  ------------------
  |  Branch (281:3): [True: 0, False: 584]
  ------------------
  282|      0|    return "Stream ID is invalid";
  283|      0|  case NGHTTP2_ERR_INVALID_STREAM_STATE:
  ------------------
  |  Branch (283:3): [True: 0, False: 584]
  ------------------
  284|      0|    return "Invalid stream state";
  285|      0|  case NGHTTP2_ERR_DEFERRED_DATA_EXIST:
  ------------------
  |  Branch (285:3): [True: 0, False: 584]
  ------------------
  286|      0|    return "Another DATA frame has already been deferred";
  287|      0|  case NGHTTP2_ERR_START_STREAM_NOT_ALLOWED:
  ------------------
  |  Branch (287:3): [True: 0, False: 584]
  ------------------
  288|      0|    return "request HEADERS is not allowed";
  289|      0|  case NGHTTP2_ERR_GOAWAY_ALREADY_SENT:
  ------------------
  |  Branch (289:3): [True: 0, False: 584]
  ------------------
  290|      0|    return "GOAWAY has already been sent";
  291|      0|  case NGHTTP2_ERR_INVALID_HEADER_BLOCK:
  ------------------
  |  Branch (291:3): [True: 0, False: 584]
  ------------------
  292|      0|    return "Invalid header block";
  293|      0|  case NGHTTP2_ERR_INVALID_STATE:
  ------------------
  |  Branch (293:3): [True: 0, False: 584]
  ------------------
  294|      0|    return "Invalid state";
  295|      0|  case NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE:
  ------------------
  |  Branch (295:3): [True: 0, False: 584]
  ------------------
  296|      0|    return "The user callback function failed due to the temporal error";
  297|      0|  case NGHTTP2_ERR_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (297:3): [True: 0, False: 584]
  ------------------
  298|      0|    return "The length of the frame is invalid";
  299|      0|  case NGHTTP2_ERR_HEADER_COMP:
  ------------------
  |  Branch (299:3): [True: 0, False: 584]
  ------------------
  300|      0|    return "Header compression/decompression error";
  301|      6|  case NGHTTP2_ERR_FLOW_CONTROL:
  ------------------
  |  Branch (301:3): [True: 6, False: 578]
  ------------------
  302|      6|    return "Flow control error";
  303|      0|  case NGHTTP2_ERR_INSUFF_BUFSIZE:
  ------------------
  |  Branch (303:3): [True: 0, False: 584]
  ------------------
  304|      0|    return "Insufficient buffer size given to function";
  305|      0|  case NGHTTP2_ERR_PAUSE:
  ------------------
  |  Branch (305:3): [True: 0, False: 584]
  ------------------
  306|      0|    return "Callback was paused by the application";
  307|      0|  case NGHTTP2_ERR_TOO_MANY_INFLIGHT_SETTINGS:
  ------------------
  |  Branch (307:3): [True: 0, False: 584]
  ------------------
  308|      0|    return "Too many inflight SETTINGS";
  309|      0|  case NGHTTP2_ERR_PUSH_DISABLED:
  ------------------
  |  Branch (309:3): [True: 0, False: 584]
  ------------------
  310|      0|    return "Server push is disabled by peer";
  311|      0|  case NGHTTP2_ERR_DATA_EXIST:
  ------------------
  |  Branch (311:3): [True: 0, False: 584]
  ------------------
  312|      0|    return "DATA or HEADERS frame has already been submitted for the stream";
  313|      0|  case NGHTTP2_ERR_SESSION_CLOSING:
  ------------------
  |  Branch (313:3): [True: 0, False: 584]
  ------------------
  314|      0|    return "The current session is closing";
  315|    326|  case NGHTTP2_ERR_HTTP_HEADER:
  ------------------
  |  Branch (315:3): [True: 326, False: 258]
  ------------------
  316|    326|    return "Invalid HTTP header field was received";
  317|      5|  case NGHTTP2_ERR_HTTP_MESSAGING:
  ------------------
  |  Branch (317:3): [True: 5, False: 579]
  ------------------
  318|      5|    return "Violation in HTTP messaging rule";
  319|      0|  case NGHTTP2_ERR_REFUSED_STREAM:
  ------------------
  |  Branch (319:3): [True: 0, False: 584]
  ------------------
  320|      0|    return "Stream was refused";
  321|      0|  case NGHTTP2_ERR_INTERNAL:
  ------------------
  |  Branch (321:3): [True: 0, False: 584]
  ------------------
  322|      0|    return "Internal error";
  323|      0|  case NGHTTP2_ERR_CANCEL:
  ------------------
  |  Branch (323:3): [True: 0, False: 584]
  ------------------
  324|      0|    return "Cancel";
  325|      0|  case NGHTTP2_ERR_SETTINGS_EXPECTED:
  ------------------
  |  Branch (325:3): [True: 0, False: 584]
  ------------------
  326|      0|    return "When a local endpoint expects to receive SETTINGS frame, it "
  327|      0|           "receives an other type of frame";
  328|      0|  case NGHTTP2_ERR_NOMEM:
  ------------------
  |  Branch (328:3): [True: 0, False: 584]
  ------------------
  329|      0|    return "Out of memory";
  330|    232|  case NGHTTP2_ERR_CALLBACK_FAILURE:
  ------------------
  |  Branch (330:3): [True: 232, False: 352]
  ------------------
  331|    232|    return "The user callback function failed";
  332|      0|  case NGHTTP2_ERR_BAD_CLIENT_MAGIC:
  ------------------
  |  Branch (332:3): [True: 0, False: 584]
  ------------------
  333|      0|    return "Received bad client magic byte string";
  334|      0|  case NGHTTP2_ERR_FLOODED:
  ------------------
  |  Branch (334:3): [True: 0, False: 584]
  ------------------
  335|      0|    return "Flooding was detected in this HTTP/2 session, and it must be "
  336|      0|           "closed";
  337|      0|  case NGHTTP2_ERR_TOO_MANY_SETTINGS:
  ------------------
  |  Branch (337:3): [True: 0, False: 584]
  ------------------
  338|      0|    return "SETTINGS frame contained more than the maximum allowed entries";
  339|      0|  case NGHTTP2_ERR_TOO_MANY_CONTINUATIONS:
  ------------------
  |  Branch (339:3): [True: 0, False: 584]
  ------------------
  340|      0|    return "Too many CONTINUATION frames following a HEADER frame";
  341|      0|  default:
  ------------------
  |  Branch (341:3): [True: 0, False: 584]
  ------------------
  342|      0|    return "Unknown error code";
  343|    584|  }
  344|    584|}
nghttp2_check_header_name:
  414|  22.5k|int nghttp2_check_header_name(const uint8_t *name, size_t len) {
  415|  22.5k|  const uint8_t *last;
  416|  22.5k|  if (len == 0) {
  ------------------
  |  Branch (416:7): [True: 6.17k, False: 16.3k]
  ------------------
  417|  6.17k|    return 0;
  418|  6.17k|  }
  419|  16.3k|  if (*name == ':') {
  ------------------
  |  Branch (419:7): [True: 758, False: 15.5k]
  ------------------
  420|    758|    if (len == 1) {
  ------------------
  |  Branch (420:9): [True: 1, False: 757]
  ------------------
  421|      1|      return 0;
  422|      1|    }
  423|    757|    ++name;
  424|    757|    --len;
  425|    757|  }
  426|   160k|  for (last = name + len; name != last; ++name) {
  ------------------
  |  Branch (426:27): [True: 144k, False: 15.7k]
  ------------------
  427|   144k|    if (!VALID_HD_NAME_CHARS[*name]) {
  ------------------
  |  Branch (427:9): [True: 643, False: 144k]
  ------------------
  428|    643|      return 0;
  429|    643|    }
  430|   144k|  }
  431|  15.7k|  return 1;
  432|  16.3k|}
nghttp2_check_header_value:
  502|  15.5k|int nghttp2_check_header_value(const uint8_t *value, size_t len) {
  503|  15.5k|  const uint8_t *last;
  504|  84.7k|  for (last = value + len; value != last; ++value) {
  ------------------
  |  Branch (504:28): [True: 69.3k, False: 15.3k]
  ------------------
  505|  69.3k|    if (!VALID_HD_VALUE_CHARS[*value]) {
  ------------------
  |  Branch (505:9): [True: 210, False: 69.1k]
  ------------------
  506|    210|      return 0;
  507|    210|    }
  508|  69.3k|  }
  509|  15.3k|  return 1;
  510|  15.5k|}
nghttp2_check_method:
  593|     35|int nghttp2_check_method(const uint8_t *value, size_t len) {
  594|     35|  const uint8_t *last;
  595|     35|  if (len == 0) {
  ------------------
  |  Branch (595:7): [True: 9, False: 26]
  ------------------
  596|      9|    return 0;
  597|      9|  }
  598|    329|  for (last = value + len; value != last; ++value) {
  ------------------
  |  Branch (598:28): [True: 315, False: 14]
  ------------------
  599|    315|    if (!VALID_METHOD_CHARS[*value]) {
  ------------------
  |  Branch (599:9): [True: 12, False: 303]
  ------------------
  600|     12|      return 0;
  601|     12|    }
  602|    315|  }
  603|     14|  return 1;
  604|     26|}
nghttp2_check_path:
  674|     49|int nghttp2_check_path(const uint8_t *value, size_t len) {
  675|     49|  const uint8_t *last;
  676|    434|  for (last = value + len; value != last; ++value) {
  ------------------
  |  Branch (676:28): [True: 392, False: 42]
  ------------------
  677|    392|    if (!VALID_PATH_CHARS[*value]) {
  ------------------
  |  Branch (677:9): [True: 7, False: 385]
  ------------------
  678|      7|      return 0;
  679|      7|    }
  680|    392|  }
  681|     42|  return 1;
  682|     49|}
nghttp2_cpymem:
  762|   118k|uint8_t *nghttp2_cpymem(uint8_t *dest, const void *src, size_t len) {
  763|   118k|  if (len == 0) {
  ------------------
  |  Branch (763:7): [True: 19.4k, False: 99.0k]
  ------------------
  764|  19.4k|    return dest;
  765|  19.4k|  }
  766|       |
  767|  99.0k|  memcpy(dest, src, len);
  768|       |
  769|  99.0k|  return dest + len;
  770|   118k|}
nghttp2_http2_strerror:
  772|  1.34k|const char *nghttp2_http2_strerror(uint32_t error_code) {
  773|  1.34k|  switch (error_code) {
  774|      0|  case NGHTTP2_NO_ERROR:
  ------------------
  |  Branch (774:3): [True: 0, False: 1.34k]
  ------------------
  775|      0|    return "NO_ERROR";
  776|    193|  case NGHTTP2_PROTOCOL_ERROR:
  ------------------
  |  Branch (776:3): [True: 193, False: 1.15k]
  ------------------
  777|    193|    return "PROTOCOL_ERROR";
  778|      0|  case NGHTTP2_INTERNAL_ERROR:
  ------------------
  |  Branch (778:3): [True: 0, False: 1.34k]
  ------------------
  779|      0|    return "INTERNAL_ERROR";
  780|      6|  case NGHTTP2_FLOW_CONTROL_ERROR:
  ------------------
  |  Branch (780:3): [True: 6, False: 1.33k]
  ------------------
  781|      6|    return "FLOW_CONTROL_ERROR";
  782|      0|  case NGHTTP2_SETTINGS_TIMEOUT:
  ------------------
  |  Branch (782:3): [True: 0, False: 1.34k]
  ------------------
  783|      0|    return "SETTINGS_TIMEOUT";
  784|      3|  case NGHTTP2_STREAM_CLOSED:
  ------------------
  |  Branch (784:3): [True: 3, False: 1.34k]
  ------------------
  785|      3|    return "STREAM_CLOSED";
  786|    149|  case NGHTTP2_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (786:3): [True: 149, False: 1.19k]
  ------------------
  787|    149|    return "FRAME_SIZE_ERROR";
  788|      0|  case NGHTTP2_REFUSED_STREAM:
  ------------------
  |  Branch (788:3): [True: 0, False: 1.34k]
  ------------------
  789|      0|    return "REFUSED_STREAM";
  790|      0|  case NGHTTP2_CANCEL:
  ------------------
  |  Branch (790:3): [True: 0, False: 1.34k]
  ------------------
  791|      0|    return "CANCEL";
  792|    674|  case NGHTTP2_COMPRESSION_ERROR:
  ------------------
  |  Branch (792:3): [True: 674, False: 670]
  ------------------
  793|    674|    return "COMPRESSION_ERROR";
  794|      2|  case NGHTTP2_CONNECT_ERROR:
  ------------------
  |  Branch (794:3): [True: 2, False: 1.34k]
  ------------------
  795|      2|    return "CONNECT_ERROR";
  796|      1|  case NGHTTP2_ENHANCE_YOUR_CALM:
  ------------------
  |  Branch (796:3): [True: 1, False: 1.34k]
  ------------------
  797|      1|    return "ENHANCE_YOUR_CALM";
  798|      0|  case NGHTTP2_INADEQUATE_SECURITY:
  ------------------
  |  Branch (798:3): [True: 0, False: 1.34k]
  ------------------
  799|      0|    return "INADEQUATE_SECURITY";
  800|      5|  case NGHTTP2_HTTP_1_1_REQUIRED:
  ------------------
  |  Branch (800:3): [True: 5, False: 1.33k]
  ------------------
  801|      5|    return "HTTP_1_1_REQUIRED";
  802|    311|  default:
  ------------------
  |  Branch (802:3): [True: 311, False: 1.03k]
  ------------------
  803|    311|    return "unknown";
  804|  1.34k|  }
  805|  1.34k|}

nghttp2_session.c:nghttp2_min_size:
   52|  22.3k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 6.61k, False: 15.7k]
  ------------------
nghttp2_session.c:nghttp2_min_int32:
   52|  8.38k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 4.07k, False: 4.30k]
  ------------------
nghttp2_session.c:nghttp2_max_int32:
   39|    937|  static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  ------------------
  |  Branch (39:59): [True: 885, False: 52]
  ------------------
nghttp2_helper.c:nghttp2_min_int32:
   52|  2.94k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 2.94k, False: 0]
  ------------------
nghttp2_hd.c:nghttp2_min_size:
   52|  20.0k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 879, False: 19.1k]
  ------------------
nghttp2_ratelim.c:nghttp2_min_uint64:
   52|    442|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 0, False: 442]
  ------------------
nghttp2_pq.c:nghttp2_max_size:
   39|    717|  static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  ------------------
  |  Branch (39:59): [True: 0, False: 717]
  ------------------
nghttp2_buf.c:nghttp2_max_size:
   39|  2.94k|  static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  ------------------
  |  Branch (39:59): [True: 0, False: 2.94k]
  ------------------
nghttp2_buf.c:nghttp2_min_size:
   52|  67.6k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 0, False: 67.6k]
  ------------------

nghttp2_http_on_header:
  430|  22.5k|                           int trailer) {
  431|  22.5k|  int rv;
  432|       |
  433|       |  /* We are strict for pseudo header field.  One bad character should
  434|       |     lead to fail.  OTOH, we should be a bit forgiving for regular
  435|       |     headers, since existing public internet has so much illegal
  436|       |     headers floating around and if we kill the stream because of
  437|       |     this, we may disrupt many web sites and/or libraries.  So we
  438|       |     become conservative here, and just ignore those illegal regular
  439|       |     headers. */
  440|  22.5k|  if (!nghttp2_check_header_name(nv->name->base, nv->name->len)) {
  ------------------
  |  Branch (440:7): [True: 6.81k, False: 15.7k]
  ------------------
  441|  6.81k|    size_t i;
  442|  6.81k|    if (nv->name->len > 0 && nv->name->base[0] == ':') {
  ------------------
  |  Branch (442:9): [True: 644, False: 6.17k]
  |  Branch (442:30): [True: 1, False: 643]
  ------------------
  443|      1|      return NGHTTP2_ERR_HTTP_HEADER;
  444|      1|    }
  445|       |    /* header field name must be lower-cased without exception */
  446|  16.9k|    for (i = 0; i < nv->name->len; ++i) {
  ------------------
  |  Branch (446:17): [True: 10.2k, False: 6.78k]
  ------------------
  447|  10.2k|      uint8_t c = nv->name->base[i];
  448|  10.2k|      if ('A' <= c && c <= 'Z') {
  ------------------
  |  Branch (448:11): [True: 1.31k, False: 8.89k]
  |  Branch (448:23): [True: 31, False: 1.28k]
  ------------------
  449|     31|        return NGHTTP2_ERR_HTTP_HEADER;
  450|     31|      }
  451|  10.2k|    }
  452|       |    /* When ignoring regular headers, we set this flag so that we
  453|       |       still enforce header field ordering rule for pseudo header
  454|       |       fields. */
  455|  6.78k|    stream->http_flags |= NGHTTP2_HTTP_FLAG_PSEUDO_HEADER_DISALLOWED;
  456|  6.78k|    return NGHTTP2_ERR_IGN_HTTP_HEADER;
  457|  6.81k|  }
  458|       |
  459|  15.7k|  switch (nv->token) {
  460|     35|  case NGHTTP2_TOKEN__METHOD:
  ------------------
  |  Branch (460:3): [True: 35, False: 15.6k]
  ------------------
  461|     35|    rv = nghttp2_check_method(nv->value->base, nv->value->len);
  462|     35|    break;
  463|     49|  case NGHTTP2_TOKEN__PATH:
  ------------------
  |  Branch (463:3): [True: 49, False: 15.6k]
  ------------------
  464|     49|    rv = nghttp2_check_path(nv->value->base, nv->value->len);
  465|     49|    break;
  466|     35|  case NGHTTP2_TOKEN__AUTHORITY:
  ------------------
  |  Branch (466:3): [True: 35, False: 15.6k]
  ------------------
  467|    154|  case NGHTTP2_TOKEN_HOST:
  ------------------
  |  Branch (467:3): [True: 119, False: 15.5k]
  ------------------
  468|    154|    if (session->server || frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (468:9): [True: 0, False: 154]
  |  Branch (468:28): [True: 0, False: 154]
  ------------------
  469|      0|      rv = check_authority(nv->value->base, nv->value->len);
  470|    154|    } else if (
  471|    154|      stream->flags &
  ------------------
  |  Branch (471:7): [True: 154, False: 0]
  ------------------
  472|    154|      NGHTTP2_STREAM_FLAG_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) {
  473|    154|      rv = nghttp2_check_header_value(nv->value->base, nv->value->len);
  474|    154|    } else {
  475|      0|      rv = nghttp2_check_header_value_rfc9113(nv->value->base, nv->value->len);
  476|      0|    }
  477|    154|    break;
  478|     56|  case NGHTTP2_TOKEN__SCHEME:
  ------------------
  |  Branch (478:3): [True: 56, False: 15.6k]
  ------------------
  479|     56|    rv = check_scheme(nv->value->base, nv->value->len);
  480|     56|    break;
  481|      0|  case NGHTTP2_TOKEN__PROTOCOL:
  ------------------
  |  Branch (481:3): [True: 0, False: 15.7k]
  ------------------
  482|       |    /* Check the value consists of just white spaces, which was done
  483|       |       in check_pseudo_header before
  484|       |       nghttp2_check_header_value_rfc9113 has been introduced. */
  485|      0|    if ((stream->flags &
  ------------------
  |  Branch (485:9): [True: 0, False: 0]
  ------------------
  486|      0|         NGHTTP2_STREAM_FLAG_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) &&
  487|      0|        lws(nv->value->base, nv->value->len)) {
  ------------------
  |  Branch (487:9): [True: 0, False: 0]
  ------------------
  488|      0|      rv = 0;
  489|      0|      break;
  490|      0|    }
  491|       |    /* fall through */
  492|  15.4k|  default:
  ------------------
  |  Branch (492:3): [True: 15.4k, False: 294]
  ------------------
  493|  15.4k|    if (stream->flags &
  ------------------
  |  Branch (493:9): [True: 15.4k, False: 0]
  ------------------
  494|  15.4k|        NGHTTP2_STREAM_FLAG_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) {
  495|  15.4k|      rv = nghttp2_check_header_value(nv->value->base, nv->value->len);
  496|  15.4k|    } else {
  497|      0|      rv = nghttp2_check_header_value_rfc9113(nv->value->base, nv->value->len);
  498|      0|    }
  499|  15.7k|  }
  500|       |
  501|  15.7k|  if (rv == 0) {
  ------------------
  |  Branch (501:7): [True: 276, False: 15.4k]
  ------------------
  502|    276|    assert(nv->name->len > 0);
  ------------------
  |  Branch (502:5): [True: 0, False: 276]
  |  Branch (502:5): [True: 276, False: 0]
  ------------------
  503|    276|    if (nv->name->base[0] == ':') {
  ------------------
  |  Branch (503:9): [True: 88, False: 188]
  ------------------
  504|     88|      return NGHTTP2_ERR_HTTP_HEADER;
  505|     88|    }
  506|       |    /* When ignoring regular headers, we set this flag so that we
  507|       |       still enforce header field ordering rule for pseudo header
  508|       |       fields. */
  509|    188|    stream->http_flags |= NGHTTP2_HTTP_FLAG_PSEUDO_HEADER_DISALLOWED;
  510|    188|    return NGHTTP2_ERR_IGN_HTTP_HEADER;
  511|    276|  }
  512|       |
  513|  15.4k|  if (session->server || frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (513:7): [True: 0, False: 15.4k]
  |  Branch (513:26): [True: 0, False: 15.4k]
  ------------------
  514|      0|    return http_request_on_header(stream, nv, trailer,
  515|      0|                                  session->server &&
  ------------------
  |  Branch (515:35): [True: 0, False: 0]
  ------------------
  516|      0|                                    session->pending_enable_connect_protocol);
  ------------------
  |  Branch (516:37): [True: 0, False: 0]
  ------------------
  517|      0|  }
  518|       |
  519|  15.4k|  return http_response_on_header(stream, nv, trailer);
  520|  15.4k|}
nghttp2_http_on_response_headers:
  559|     59|int nghttp2_http_on_response_headers(nghttp2_stream *stream) {
  560|     59|  if ((stream->http_flags & NGHTTP2_HTTP_FLAG__STATUS) == 0) {
  ------------------
  |  Branch (560:7): [True: 5, False: 54]
  ------------------
  561|      5|    return -1;
  562|      5|  }
  563|       |
  564|     54|  if (stream->status_code / 100 == 1) {
  ------------------
  |  Branch (564:7): [True: 0, False: 54]
  ------------------
  565|       |    /* non-final response */
  566|      0|    stream->http_flags = (stream->http_flags & NGHTTP2_HTTP_FLAG_METH_ALL) |
  567|      0|                         NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE;
  568|      0|    stream->content_length = -1;
  569|      0|    stream->status_code = -1;
  570|      0|    return 0;
  571|      0|  }
  572|       |
  573|     54|  stream->http_flags =
  574|     54|    stream->http_flags & (uint32_t)~NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE;
  575|       |
  576|     54|  if (!expect_response_body(stream)) {
  ------------------
  |  Branch (576:7): [True: 35, False: 19]
  ------------------
  577|     35|    stream->content_length = 0;
  578|     35|  } else if (stream->http_flags & (NGHTTP2_HTTP_FLAG_METH_CONNECT |
  ------------------
  |  Branch (578:14): [True: 0, False: 19]
  ------------------
  579|     19|                                   NGHTTP2_HTTP_FLAG_METH_UPGRADE_WORKAROUND)) {
  580|      0|    stream->content_length = -1;
  581|      0|  }
  582|       |
  583|     54|  return 0;
  584|     54|}
nghttp2_http_on_remote_end_stream:
  597|     37|int nghttp2_http_on_remote_end_stream(nghttp2_stream *stream) {
  598|     37|  if (stream->http_flags & NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE) {
  ------------------
  |  Branch (598:7): [True: 0, False: 37]
  ------------------
  599|      0|    return -1;
  600|      0|  }
  601|       |
  602|     37|  if (stream->content_length != -1 &&
  ------------------
  |  Branch (602:7): [True: 30, False: 7]
  ------------------
  603|     30|      stream->content_length != stream->recv_content_length) {
  ------------------
  |  Branch (603:7): [True: 0, False: 30]
  ------------------
  604|      0|    return -1;
  605|      0|  }
  606|       |
  607|     37|  return 0;
  608|     37|}
nghttp2_http_record_request_method:
  623|  2.88k|                                        nghttp2_frame *frame) {
  624|  2.88k|  const nghttp2_nv *nva;
  625|  2.88k|  size_t nvlen;
  626|  2.88k|  size_t i;
  627|       |
  628|  2.88k|  switch (frame->hd.type) {
  629|  2.88k|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (629:3): [True: 2.88k, False: 0]
  ------------------
  630|  2.88k|    nva = frame->headers.nva;
  631|  2.88k|    nvlen = frame->headers.nvlen;
  632|  2.88k|    break;
  633|      0|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (633:3): [True: 0, False: 2.88k]
  ------------------
  634|      0|    nva = frame->push_promise.nva;
  635|      0|    nvlen = frame->push_promise.nvlen;
  636|      0|    break;
  637|      0|  default:
  ------------------
  |  Branch (637:3): [True: 0, False: 2.88k]
  ------------------
  638|      0|    return;
  639|  2.88k|  }
  640|       |
  641|       |  /* TODO we should do this strictly. */
  642|  2.88k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (642:15): [True: 2.88k, False: 0]
  ------------------
  643|  2.88k|    const nghttp2_nv *nv = &nva[i];
  644|  2.88k|    if (!(nv->namelen == 7 && nv->name[6] == 'd' &&
  ------------------
  |  Branch (644:11): [True: 2.88k, False: 0]
  |  Branch (644:31): [True: 2.88k, False: 0]
  ------------------
  645|  2.88k|          memcmp(":metho", nv->name, nv->namelen - 1) == 0)) {
  ------------------
  |  Branch (645:11): [True: 2.88k, False: 0]
  ------------------
  646|      0|      continue;
  647|      0|    }
  648|  2.88k|    if (lstreq("CONNECT", nv->value, nv->valuelen)) {
  ------------------
  |  |   72|  2.88k|  (nghttp2_strlen_lit((A)) == (N) && memcmp((A), (B), (N)) == 0)
  |  |  ------------------
  |  |  |  |   69|  2.88k|#define nghttp2_strlen_lit(S) (sizeof(S) - 1)
  |  |  ------------------
  |  |  |  Branch (72:4): [True: 4, False: 2.88k]
  |  |  |  Branch (72:38): [True: 0, False: 4]
  |  |  ------------------
  ------------------
  649|      0|      stream->http_flags |= NGHTTP2_HTTP_FLAG_METH_CONNECT;
  650|      0|      return;
  651|      0|    }
  652|  2.88k|    if (lstreq("HEAD", nv->value, nv->valuelen)) {
  ------------------
  |  |   72|  2.88k|  (nghttp2_strlen_lit((A)) == (N) && memcmp((A), (B), (N)) == 0)
  |  |  ------------------
  |  |  |  |   69|  2.88k|#define nghttp2_strlen_lit(S) (sizeof(S) - 1)
  |  |  ------------------
  |  |  |  Branch (72:4): [True: 565, False: 2.32k]
  |  |  |  Branch (72:38): [True: 39, False: 526]
  |  |  ------------------
  ------------------
  653|     39|      stream->http_flags |= NGHTTP2_HTTP_FLAG_METH_HEAD;
  654|     39|      return;
  655|     39|    }
  656|  2.84k|    return;
  657|  2.88k|  }
  658|  2.88k|}
nghttp2_http.c:check_scheme:
  316|     56|static int check_scheme(const uint8_t *value, size_t len) {
  317|     56|  const uint8_t *last;
  318|     56|  if (len == 0) {
  ------------------
  |  Branch (318:7): [True: 5, False: 51]
  ------------------
  319|      5|    return 0;
  320|      5|  }
  321|       |
  322|     51|  if (!(('A' <= *value && *value <= 'Z') || ('a' <= *value && *value <= 'z'))) {
  ------------------
  |  Branch (322:10): [True: 45, False: 6]
  |  Branch (322:27): [True: 13, False: 32]
  |  Branch (322:46): [True: 31, False: 7]
  |  Branch (322:63): [True: 21, False: 10]
  ------------------
  323|     17|    return 0;
  324|     17|  }
  325|       |
  326|     34|  last = value + len;
  327|     34|  ++value;
  328|       |
  329|    529|  for (; value != last; ++value) {
  ------------------
  |  Branch (329:10): [True: 511, False: 18]
  ------------------
  330|    511|    if (!(('A' <= *value && *value <= 'Z') ||
  ------------------
  |  Branch (330:12): [True: 234, False: 277]
  |  Branch (330:29): [True: 97, False: 137]
  ------------------
  331|    414|          ('a' <= *value && *value <= 'z') ||
  ------------------
  |  Branch (331:12): [True: 135, False: 279]
  |  Branch (331:29): [True: 134, False: 1]
  ------------------
  332|    280|          ('0' <= *value && *value <= '9') || *value == '+' || *value == '-' ||
  ------------------
  |  Branch (332:12): [True: 133, False: 147]
  |  Branch (332:29): [True: 129, False: 4]
  |  Branch (332:47): [True: 21, False: 130]
  |  Branch (332:64): [True: 13, False: 117]
  ------------------
  333|    117|          *value == '.')) {
  ------------------
  |  Branch (333:11): [True: 101, False: 16]
  ------------------
  334|     16|      return 0;
  335|     16|    }
  336|    511|  }
  337|     18|  return 1;
  338|     34|}
nghttp2_http.c:check_pseudo_header:
   79|    506|                               uint32_t flag) {
   80|    506|  if ((stream->http_flags & flag) || nv->value->len == 0) {
  ------------------
  |  Branch (80:7): [True: 2, False: 504]
  |  Branch (80:38): [True: 2, False: 502]
  ------------------
   81|      4|    return 0;
   82|      4|  }
   83|    502|  stream->http_flags = stream->http_flags | flag;
   84|    502|  return 1;
   85|    506|}
nghttp2_http.c:memieq:
   40|      6|static int memieq(const void *a, const void *b, size_t n) {
   41|      6|  size_t i;
   42|      6|  const uint8_t *aa = a, *bb = b;
   43|       |
   44|     10|  for (i = 0; i < n; ++i) {
  ------------------
  |  Branch (44:15): [True: 6, False: 4]
  ------------------
   45|      6|    if (downcase(aa[i]) != downcase(bb[i])) {
  ------------------
  |  Branch (45:9): [True: 2, False: 4]
  ------------------
   46|      2|      return 0;
   47|      2|    }
   48|      6|  }
   49|      4|  return 1;
   50|      6|}
nghttp2_http.c:downcase:
   36|     12|static uint8_t downcase(uint8_t c) {
   37|     12|  return 'A' <= c && c <= 'Z' ? (uint8_t)(c - 'A' + 'a') : c;
  ------------------
  |  Branch (37:10): [True: 1, False: 11]
  |  Branch (37:22): [True: 1, False: 0]
  ------------------
   38|     12|}
nghttp2_http.c:parse_uint:
   55|    510|static int64_t parse_uint(const uint8_t *s, size_t len) {
   56|    510|  int64_t n = 0;
   57|    510|  size_t i;
   58|    510|  if (len == 0) {
  ------------------
  |  Branch (58:7): [True: 9, False: 501]
  ------------------
   59|      9|    return -1;
   60|      9|  }
   61|  1.99k|  for (i = 0; i < len; ++i) {
  ------------------
  |  Branch (61:15): [True: 1.50k, False: 491]
  ------------------
   62|  1.50k|    if ('0' <= s[i] && s[i] <= '9') {
  ------------------
  |  Branch (62:9): [True: 1.50k, False: 4]
  |  Branch (62:24): [True: 1.49k, False: 6]
  ------------------
   63|  1.49k|      if (n > INT64_MAX / 10) {
  ------------------
  |  Branch (63:11): [True: 0, False: 1.49k]
  ------------------
   64|      0|        return -1;
   65|      0|      }
   66|  1.49k|      n *= 10;
   67|  1.49k|      if (n > INT64_MAX - (s[i] - '0')) {
  ------------------
  |  Branch (67:11): [True: 0, False: 1.49k]
  ------------------
   68|      0|        return -1;
   69|      0|      }
   70|  1.49k|      n += s[i] - '0';
   71|  1.49k|      continue;
   72|  1.49k|    }
   73|     10|    return -1;
   74|  1.50k|  }
   75|    491|  return n;
   76|    501|}
nghttp2_http.c:http_response_on_header:
  237|  15.4k|                                   int trailer) {
  238|  15.4k|  if (nv->name->base[0] == ':') {
  ------------------
  |  Branch (238:7): [True: 669, False: 14.7k]
  ------------------
  239|    669|    if (trailer ||
  ------------------
  |  Branch (239:9): [True: 0, False: 669]
  ------------------
  240|    669|        (stream->http_flags & NGHTTP2_HTTP_FLAG_PSEUDO_HEADER_DISALLOWED)) {
  ------------------
  |  Branch (240:9): [True: 125, False: 544]
  ------------------
  241|    125|      return NGHTTP2_ERR_HTTP_HEADER;
  242|    125|    }
  243|    669|  }
  244|       |
  245|  15.3k|  switch (nv->token) {
  246|    506|  case NGHTTP2_TOKEN__STATUS: {
  ------------------
  |  Branch (246:3): [True: 506, False: 14.8k]
  ------------------
  247|    506|    if (!check_pseudo_header(stream, nv, NGHTTP2_HTTP_FLAG__STATUS)) {
  ------------------
  |  Branch (247:9): [True: 4, False: 502]
  ------------------
  248|      4|      return NGHTTP2_ERR_HTTP_HEADER;
  249|      4|    }
  250|    502|    if (nv->value->len != 3) {
  ------------------
  |  Branch (250:9): [True: 9, False: 493]
  ------------------
  251|      9|      return NGHTTP2_ERR_HTTP_HEADER;
  252|      9|    }
  253|    493|    stream->status_code = (int16_t)parse_uint(nv->value->base, nv->value->len);
  254|    493|    if (stream->status_code == -1 || stream->status_code == 101) {
  ------------------
  |  Branch (254:9): [True: 5, False: 488]
  |  Branch (254:38): [True: 1, False: 487]
  ------------------
  255|      6|      return NGHTTP2_ERR_HTTP_HEADER;
  256|      6|    }
  257|    487|    break;
  258|    493|  }
  259|    487|  case NGHTTP2_TOKEN_CONTENT_LENGTH: {
  ------------------
  |  Branch (259:3): [True: 28, False: 15.2k]
  ------------------
  260|     28|    if (stream->status_code == 204) {
  ------------------
  |  Branch (260:9): [True: 9, False: 19]
  ------------------
  261|       |      /* content-length header field in 204 response is prohibited by
  262|       |         RFC 7230.  But some widely used servers send content-length:
  263|       |         0.  Until they get fixed, we ignore it. */
  264|      9|      if (stream->content_length != -1) {
  ------------------
  |  Branch (264:11): [True: 2, False: 7]
  ------------------
  265|       |        /* Found multiple content-length field */
  266|      2|        return NGHTTP2_ERR_HTTP_HEADER;
  267|      2|      }
  268|      7|      if (!lstrieq("0", nv->value->base, nv->value->len)) {
  ------------------
  |  |   53|      7|  (nghttp2_strlen_lit((A)) == (N) && memieq((A), (B), (N)))
  |  |  ------------------
  |  |  |  |   69|      7|#define nghttp2_strlen_lit(S) (sizeof(S) - 1)
  |  |  ------------------
  |  |  |  Branch (53:4): [True: 6, False: 1]
  |  |  |  Branch (53:38): [True: 4, False: 2]
  |  |  ------------------
  ------------------
  269|      3|        return NGHTTP2_ERR_HTTP_HEADER;
  270|      3|      }
  271|      4|      stream->content_length = 0;
  272|      4|      return NGHTTP2_ERR_REMOVE_HTTP_HEADER;
  273|      7|    }
  274|     19|    if (stream->status_code / 100 == 1) {
  ------------------
  |  Branch (274:9): [True: 0, False: 19]
  ------------------
  275|      0|      return NGHTTP2_ERR_HTTP_HEADER;
  276|      0|    }
  277|       |    /* https://tools.ietf.org/html/rfc7230#section-3.3.3 */
  278|     19|    if (stream->status_code / 100 == 2 &&
  ------------------
  |  Branch (278:9): [True: 4, False: 15]
  ------------------
  279|      4|        (stream->http_flags & NGHTTP2_HTTP_FLAG_METH_CONNECT)) {
  ------------------
  |  Branch (279:9): [True: 0, False: 4]
  ------------------
  280|      0|      return NGHTTP2_ERR_REMOVE_HTTP_HEADER;
  281|      0|    }
  282|     19|    if (stream->content_length != -1) {
  ------------------
  |  Branch (282:9): [True: 2, False: 17]
  ------------------
  283|      2|      return NGHTTP2_ERR_HTTP_HEADER;
  284|      2|    }
  285|     17|    stream->content_length = parse_uint(nv->value->base, nv->value->len);
  286|     17|    if (stream->content_length == -1) {
  ------------------
  |  Branch (286:9): [True: 14, False: 3]
  ------------------
  287|     14|      return NGHTTP2_ERR_HTTP_HEADER;
  288|     14|    }
  289|      3|    break;
  290|     17|  }
  291|       |  /* disallowed header fields */
  292|      3|  case NGHTTP2_TOKEN_CONNECTION:
  ------------------
  |  Branch (292:3): [True: 0, False: 15.3k]
  ------------------
  293|      0|  case NGHTTP2_TOKEN_KEEP_ALIVE:
  ------------------
  |  Branch (293:3): [True: 0, False: 15.3k]
  ------------------
  294|      0|  case NGHTTP2_TOKEN_PROXY_CONNECTION:
  ------------------
  |  Branch (294:3): [True: 0, False: 15.3k]
  ------------------
  295|      3|  case NGHTTP2_TOKEN_TRANSFER_ENCODING:
  ------------------
  |  Branch (295:3): [True: 3, False: 15.3k]
  ------------------
  296|      3|  case NGHTTP2_TOKEN_UPGRADE:
  ------------------
  |  Branch (296:3): [True: 0, False: 15.3k]
  ------------------
  297|      3|    return NGHTTP2_ERR_HTTP_HEADER;
  298|      0|  case NGHTTP2_TOKEN_TE:
  ------------------
  |  Branch (298:3): [True: 0, False: 15.3k]
  ------------------
  299|      0|    if (!lstrieq("trailers", nv->value->base, nv->value->len)) {
  ------------------
  |  |   53|      0|  (nghttp2_strlen_lit((A)) == (N) && memieq((A), (B), (N)))
  |  |  ------------------
  |  |  |  |   69|      0|#define nghttp2_strlen_lit(S) (sizeof(S) - 1)
  |  |  ------------------
  |  |  |  Branch (53:4): [True: 0, False: 0]
  |  |  |  Branch (53:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  300|      0|      return NGHTTP2_ERR_HTTP_HEADER;
  301|      0|    }
  302|      0|    break;
  303|  14.7k|  default:
  ------------------
  |  Branch (303:3): [True: 14.7k, False: 537]
  ------------------
  304|  14.7k|    if (nv->name->base[0] == ':') {
  ------------------
  |  Branch (304:9): [True: 38, False: 14.7k]
  ------------------
  305|     38|      return NGHTTP2_ERR_HTTP_HEADER;
  306|     38|    }
  307|  15.3k|  }
  308|       |
  309|  15.2k|  if (nv->name->base[0] != ':') {
  ------------------
  |  Branch (309:7): [True: 14.7k, False: 487]
  ------------------
  310|  14.7k|    stream->http_flags |= NGHTTP2_HTTP_FLAG_PSEUDO_HEADER_DISALLOWED;
  311|  14.7k|  }
  312|       |
  313|  15.2k|  return 0;
  314|  15.3k|}
nghttp2_http.c:expect_response_body:
   87|     54|static int expect_response_body(nghttp2_stream *stream) {
   88|     54|  return (stream->http_flags & NGHTTP2_HTTP_FLAG_METH_HEAD) == 0 &&
  ------------------
  |  Branch (88:10): [True: 48, False: 6]
  ------------------
   89|     48|         stream->status_code / 100 != 1 && stream->status_code != 304 &&
  ------------------
  |  Branch (89:10): [True: 48, False: 0]
  |  Branch (89:44): [True: 23, False: 25]
  ------------------
   90|     23|         stream->status_code != 204;
  ------------------
  |  Branch (90:10): [True: 19, False: 4]
  ------------------
   91|     54|}

nghttp2_map_init:
   36|  2.94k|void nghttp2_map_init(nghttp2_map *map, uint64_t seed, nghttp2_mem *mem) {
   37|  2.94k|  *map = (nghttp2_map){
   38|  2.94k|    .mem = mem,
   39|  2.94k|    .seed = seed,
   40|  2.94k|  };
   41|  2.94k|}
nghttp2_map_free:
   43|  2.94k|void nghttp2_map_free(nghttp2_map *map) {
   44|  2.94k|  if (!map) {
  ------------------
  |  Branch (44:7): [True: 0, False: 2.94k]
  ------------------
   45|      0|    return;
   46|      0|  }
   47|       |
   48|  2.94k|  nghttp2_mem_free(map->mem, map->keys);
   49|  2.94k|}
nghttp2_map_each:
   52|  4.58k|                     void *ptr) {
   53|  4.58k|  int rv;
   54|  4.58k|  size_t i;
   55|  4.58k|  size_t tablelen;
   56|       |
   57|  4.58k|  if (map->size == 0) {
  ------------------
  |  Branch (57:7): [True: 2.31k, False: 2.26k]
  ------------------
   58|  2.31k|    return 0;
   59|  2.31k|  }
   60|       |
   61|  2.26k|  tablelen = (size_t)1 << map->hashbits;
   62|       |
   63|  38.5k|  for (i = 0; i < tablelen; ++i) {
  ------------------
  |  Branch (63:15): [True: 36.2k, False: 2.26k]
  ------------------
   64|  36.2k|    if (map->psl[i] == 0) {
  ------------------
  |  Branch (64:9): [True: 34.0k, False: 2.26k]
  ------------------
   65|  34.0k|      continue;
   66|  34.0k|    }
   67|       |
   68|  2.26k|    rv = func(map->data[i], ptr);
   69|  2.26k|    if (rv != 0) {
  ------------------
  |  Branch (69:9): [True: 1, False: 2.26k]
  ------------------
   70|      1|      return rv;
   71|      1|    }
   72|  2.26k|  }
   73|       |
   74|  2.26k|  return 0;
   75|  2.26k|}
nghttp2_map_insert:
  239|  2.93k|int nghttp2_map_insert(nghttp2_map *map, nghttp2_map_key_type key, void *data) {
  240|  2.93k|  int rv;
  241|  2.93k|  size_t tablelen;
  242|  2.93k|  nghttp2_ssize idx;
  243|       |
  244|  2.93k|  assert(data);
  ------------------
  |  Branch (244:3): [True: 0, False: 2.93k]
  |  Branch (244:3): [True: 2.93k, False: 0]
  ------------------
  245|       |
  246|       |  /* tablelen is incorrect if map->hashbits == 0 which leads to
  247|       |     tablelen = 1, but it is only used to check the load factor, and
  248|       |     it works in this special case. */
  249|  2.93k|  tablelen = (size_t)1 << map->hashbits;
  250|       |
  251|       |  /* Load factor is 7 / 8.  Because tablelen is power of 2, (tablelen
  252|       |     - (tablelen >> 3)) computes tablelen * 7 / 8. */
  253|  2.93k|  if (map->size + 1 >= (tablelen - (tablelen >> 3))) {
  ------------------
  |  Branch (253:7): [True: 2.93k, False: 0]
  ------------------
  254|  2.93k|    rv = map_resize(map, map->hashbits ? map->hashbits + 1
  ------------------
  |  Branch (254:26): [True: 0, False: 2.93k]
  ------------------
  255|  2.93k|                                       : NGHTTP2_INITIAL_HASHBITS);
  ------------------
  |  |   34|  2.93k|#define NGHTTP2_INITIAL_HASHBITS 4
  ------------------
  256|  2.93k|    if (rv != 0) {
  ------------------
  |  Branch (256:9): [True: 0, False: 2.93k]
  ------------------
  257|      0|      return rv;
  258|      0|    }
  259|       |
  260|  2.93k|    idx = map_insert(map, key, data);
  261|  2.93k|    if (idx < 0) {
  ------------------
  |  Branch (261:9): [True: 0, False: 2.93k]
  ------------------
  262|      0|      return (int)idx;
  263|      0|    }
  264|       |
  265|  2.93k|    return 0;
  266|  2.93k|  }
  267|       |
  268|      0|  idx = map_insert(map, key, data);
  269|      0|  if (idx < 0) {
  ------------------
  |  Branch (269:7): [True: 0, False: 0]
  ------------------
  270|      0|    return (int)idx;
  271|      0|  }
  272|       |
  273|       |  /* Resize if psl reaches really large value which is almost
  274|       |     improbable, but just in case. */
  275|      0|  if (map->psl[idx] - 1 < NGHTTP2_MAX_PSL_RESIZE_THRESH) {
  ------------------
  |  |  237|      0|#define NGHTTP2_MAX_PSL_RESIZE_THRESH 128
  ------------------
  |  Branch (275:7): [True: 0, False: 0]
  ------------------
  276|      0|    return 0;
  277|      0|  }
  278|       |
  279|      0|  return map_resize(map, map->hashbits + 1);
  280|      0|}
nghttp2_map_find:
  282|  72.0k|void *nghttp2_map_find(const nghttp2_map *map, nghttp2_map_key_type key) {
  283|  72.0k|  size_t idx;
  284|  72.0k|  size_t psl = 1;
  285|  72.0k|  size_t mask;
  286|       |
  287|  72.0k|  if (map->size == 0) {
  ------------------
  |  Branch (287:7): [True: 15.2k, False: 56.7k]
  ------------------
  288|  15.2k|    return NULL;
  289|  15.2k|  }
  290|       |
  291|  56.7k|  idx = map_index(map, key);
  292|  56.7k|  mask = ((size_t)1 << map->hashbits) - 1;
  293|       |
  294|  57.1k|  for (;;) {
  295|  57.1k|    if (psl > map->psl[idx]) {
  ------------------
  |  Branch (295:9): [True: 4.45k, False: 52.6k]
  ------------------
  296|  4.45k|      return NULL;
  297|  4.45k|    }
  298|       |
  299|  52.6k|    if (map->keys[idx] == key) {
  ------------------
  |  Branch (299:9): [True: 52.2k, False: 352]
  ------------------
  300|  52.2k|      return map->data[idx];
  301|  52.2k|    }
  302|       |
  303|    352|    ++psl;
  304|    352|    idx = (idx + 1) & mask;
  305|    352|  }
  306|  56.7k|}
nghttp2_map_remove:
  308|  1.82k|int nghttp2_map_remove(nghttp2_map *map, nghttp2_map_key_type key) {
  309|  1.82k|  size_t idx;
  310|  1.82k|  size_t dest;
  311|  1.82k|  size_t psl = 1, kpsl;
  312|  1.82k|  size_t mask;
  313|       |
  314|  1.82k|  if (map->size == 0) {
  ------------------
  |  Branch (314:7): [True: 0, False: 1.82k]
  ------------------
  315|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
  316|      0|  }
  317|       |
  318|  1.82k|  idx = map_index(map, key);
  319|  1.82k|  mask = ((size_t)1 << map->hashbits) - 1;
  320|       |
  321|  1.82k|  for (;;) {
  322|  1.82k|    if (psl > map->psl[idx]) {
  ------------------
  |  Branch (322:9): [True: 0, False: 1.82k]
  ------------------
  323|      0|      return NGHTTP2_ERR_INVALID_ARGUMENT;
  324|      0|    }
  325|       |
  326|  1.82k|    if (map->keys[idx] == key) {
  ------------------
  |  Branch (326:9): [True: 1.82k, False: 0]
  ------------------
  327|  1.82k|      dest = idx;
  328|  1.82k|      idx = (idx + 1) & mask;
  329|       |
  330|  1.82k|      for (;;) {
  331|  1.82k|        kpsl = map->psl[idx];
  332|  1.82k|        if (kpsl <= 1) {
  ------------------
  |  Branch (332:13): [True: 1.82k, False: 0]
  ------------------
  333|  1.82k|          map->psl[dest] = 0;
  334|  1.82k|          break;
  335|  1.82k|        }
  336|       |
  337|      0|        map_set_entry(map, dest, map->keys[idx], map->data[idx], kpsl - 1);
  338|       |
  339|      0|        dest = idx;
  340|       |
  341|      0|        idx = (idx + 1) & mask;
  342|      0|      }
  343|       |
  344|  1.82k|      --map->size;
  345|       |
  346|  1.82k|      return 0;
  347|  1.82k|    }
  348|       |
  349|      0|    ++psl;
  350|      0|    idx = (idx + 1) & mask;
  351|      0|  }
  352|  1.82k|}
nghttp2_map_size:
  363|  42.8k|size_t nghttp2_map_size(const nghttp2_map *map) { return map->size; }
nghttp2_map.c:map_index:
   85|  61.5k|static size_t map_index(const nghttp2_map *map, nghttp2_map_key_type key32) {
   86|  61.5k|  uint64_t key = (uint64_t)key32;
   87|       |
   88|  61.5k|  key += map->seed;
   89|  61.5k|  key *= NGHTTP2_MAP_HASHER;
  ------------------
  |  |   80|  61.5k|#define NGHTTP2_MAP_HASHER 0xf1357aea2e62a9c5ull
  ------------------
   90|  61.5k|  return (size_t)((key * NGHTTP2_MAP_FIBO) >> (64 - map->hashbits));
  ------------------
  |  |   83|  61.5k|#define NGHTTP2_MAP_FIBO 0x9e3779b97f4a7c15ull
  ------------------
   91|  61.5k|}
nghttp2_map.c:map_resize:
  180|  2.93k|static int map_resize(nghttp2_map *map, size_t new_hashbits) {
  181|  2.93k|  size_t i;
  182|  2.93k|  size_t tablelen;
  183|  2.93k|  nghttp2_ssize idx;
  184|  2.93k|  nghttp2_map new_map = {
  185|  2.93k|    .mem = map->mem,
  186|  2.93k|    .seed = map->seed,
  187|  2.93k|    .hashbits = new_hashbits,
  188|  2.93k|  };
  189|  2.93k|  void *buf;
  190|  2.93k|  (void)idx;
  191|       |
  192|  2.93k|  if (new_hashbits > NGHTTP2_MAP_MAX_HASHBITS) {
  ------------------
  |  |  178|  2.93k|#define NGHTTP2_MAP_MAX_HASHBITS (sizeof(size_t) * 8 - 1)
  ------------------
  |  Branch (192:7): [True: 0, False: 2.93k]
  ------------------
  193|      0|    return NGHTTP2_ERR_NOMEM;
  194|      0|  }
  195|       |
  196|  2.93k|  tablelen = (size_t)1 << new_hashbits;
  197|       |
  198|  2.93k|  buf = nghttp2_mem_calloc(map->mem, tablelen,
  199|  2.93k|                           sizeof(nghttp2_map_key_type) + sizeof(void *) +
  200|  2.93k|                             sizeof(uint8_t));
  201|  2.93k|  if (buf == NULL) {
  ------------------
  |  Branch (201:7): [True: 0, False: 2.93k]
  ------------------
  202|      0|    return NGHTTP2_ERR_NOMEM;
  203|      0|  }
  204|       |
  205|  2.93k|  new_map.keys = buf;
  206|  2.93k|  new_map.data =
  207|  2.93k|    (void *)((uint8_t *)new_map.keys + tablelen * sizeof(nghttp2_map_key_type));
  208|  2.93k|  new_map.psl = (uint8_t *)new_map.data + tablelen * sizeof(void *);
  209|       |
  210|  2.93k|  if (map->size) {
  ------------------
  |  Branch (210:7): [True: 0, False: 2.93k]
  ------------------
  211|      0|    tablelen = (size_t)1 << map->hashbits;
  212|       |
  213|      0|    for (i = 0; i < tablelen; ++i) {
  ------------------
  |  Branch (213:17): [True: 0, False: 0]
  ------------------
  214|      0|      if (map->psl[i] == 0) {
  ------------------
  |  Branch (214:11): [True: 0, False: 0]
  ------------------
  215|      0|        continue;
  216|      0|      }
  217|       |
  218|      0|      idx = map_insert(&new_map, map->keys[i], map->data[i]);
  219|       |
  220|       |      /* map_insert must not fail because all keys are unique during
  221|       |         resize. */
  222|      0|      assert(idx >= 0);
  ------------------
  |  Branch (222:7): [True: 0, False: 0]
  |  Branch (222:7): [True: 0, False: 0]
  ------------------
  223|      0|    }
  224|      0|  }
  225|       |
  226|  2.93k|  nghttp2_mem_free(map->mem, map->keys);
  227|  2.93k|  map->keys = new_map.keys;
  228|  2.93k|  map->data = new_map.data;
  229|  2.93k|  map->psl = new_map.psl;
  230|  2.93k|  map->hashbits = new_hashbits;
  231|       |
  232|  2.93k|  return 0;
  233|  2.93k|}
nghttp2_map.c:map_insert:
  142|  2.93k|                                void *data) {
  143|  2.93k|  size_t idx = map_index(map, key);
  144|  2.93k|  size_t mask = ((size_t)1 << map->hashbits) - 1;
  145|  2.93k|  size_t psl = 1;
  146|  2.93k|  size_t kpsl;
  147|       |
  148|  2.93k|  for (;;) {
  149|  2.93k|    kpsl = map->psl[idx];
  150|       |
  151|  2.93k|    if (kpsl == 0) {
  ------------------
  |  Branch (151:9): [True: 2.93k, False: 0]
  ------------------
  152|  2.93k|      map_set_entry(map, idx, key, data, psl);
  153|  2.93k|      ++map->size;
  154|       |
  155|  2.93k|      return (nghttp2_ssize)idx;
  156|  2.93k|    }
  157|       |
  158|      0|    if (psl > kpsl) {
  ------------------
  |  Branch (158:9): [True: 0, False: 0]
  ------------------
  159|      0|      NGHTTP2_SWAP(nghttp2_map_key_type, &key, &map->keys[idx]);
  ------------------
  |  |  126|      0|  do {                                                                         \
  |  |  127|      0|    TYPE t = (TYPE) * (A);                                                     \
  |  |  128|      0|                                                                               \
  |  |  129|      0|    *(A) = *(B);                                                               \
  |  |  130|      0|    *(B) = t;                                                                  \
  |  |  131|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (131:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  160|      0|      NGHTTP2_SWAP(void *, &data, &map->data[idx]);
  ------------------
  |  |  126|      0|  do {                                                                         \
  |  |  127|      0|    TYPE t = (TYPE) * (A);                                                     \
  |  |  128|      0|                                                                               \
  |  |  129|      0|    *(A) = *(B);                                                               \
  |  |  130|      0|    *(B) = t;                                                                  \
  |  |  131|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (131:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  161|      0|      NGHTTP2_SWAP(uint8_t, &psl, &map->psl[idx]);
  ------------------
  |  |  126|      0|  do {                                                                         \
  |  |  127|      0|    TYPE t = (TYPE) * (A);                                                     \
  |  |  128|      0|                                                                               \
  |  |  129|      0|    *(A) = *(B);                                                               \
  |  |  130|      0|    *(B) = t;                                                                  \
  |  |  131|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (131:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  162|      0|    } else if (map->keys[idx] == key) {
  ------------------
  |  Branch (162:16): [True: 0, False: 0]
  ------------------
  163|       |      /* This check ensures that no duplicate keys are inserted.  But
  164|       |         it is just a waste after first swap or if this function is
  165|       |         called from map_resize.  That said, there is no difference
  166|       |         with or without this conditional in performance wise. */
  167|      0|      return NGHTTP2_ERR_INVALID_ARGUMENT;
  168|      0|    }
  169|       |
  170|      0|    ++psl;
  171|      0|    idx = (idx + 1) & mask;
  172|      0|  }
  173|  2.93k|}
nghttp2_map.c:map_set_entry:
  119|  2.93k|                          nghttp2_map_key_type key, void *data, size_t psl) {
  120|  2.93k|  map->keys[idx] = key;
  121|  2.93k|  map->data[idx] = data;
  122|  2.93k|  map->psl[idx] = (uint8_t)psl;
  123|  2.93k|}

nghttp2_mem_malloc:
   56|   101k|void *nghttp2_mem_malloc(nghttp2_mem *mem, size_t size) {
   57|   101k|  return mem->malloc(size, mem->mem_user_data);
   58|   101k|}
nghttp2_mem_free:
   60|   127k|void nghttp2_mem_free(nghttp2_mem *mem, void *ptr) {
   61|   127k|  mem->free(ptr, mem->mem_user_data);
   62|   127k|}
nghttp2_mem_free2:
   64|  37.1k|void nghttp2_mem_free2(nghttp2_free free_func, void *ptr, void *mem_user_data) {
   65|  37.1k|  free_func(ptr, mem_user_data);
   66|  37.1k|}
nghttp2_mem_calloc:
   68|  5.87k|void *nghttp2_mem_calloc(nghttp2_mem *mem, size_t nmemb, size_t size) {
   69|  5.87k|  return mem->calloc(nmemb, size, mem->mem_user_data);
   70|  5.87k|}
nghttp2_mem_realloc:
   72|  3.66k|void *nghttp2_mem_realloc(nghttp2_mem *mem, void *ptr, size_t size) {
   73|  3.66k|  return mem->realloc(ptr, size, mem->mem_user_data);
   74|  3.66k|}

nghttp2_option_new:
   29|  2.94k|int nghttp2_option_new(nghttp2_option **option_ptr) {
   30|  2.94k|  *option_ptr = calloc(1, sizeof(nghttp2_option));
   31|       |
   32|  2.94k|  if (*option_ptr == NULL) {
  ------------------
  |  Branch (32:7): [True: 0, False: 2.94k]
  ------------------
   33|      0|    return NGHTTP2_ERR_NOMEM;
   34|      0|  }
   35|       |
   36|  2.94k|  return 0;
   37|  2.94k|}
nghttp2_option_del:
   39|  2.94k|void nghttp2_option_del(nghttp2_option *option) { free(option); }
nghttp2_option_set_no_auto_window_update:
   41|  2.94k|void nghttp2_option_set_no_auto_window_update(nghttp2_option *option, int val) {
   42|  2.94k|  option->opt_set_mask |= NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE;
   43|  2.94k|  option->no_auto_window_update = val;
   44|  2.94k|}
nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation:
  141|  2.94k|  nghttp2_option *option, int val) {
  142|  2.94k|  option->opt_set_mask |=
  143|  2.94k|    NGHTTP2_OPT_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION;
  144|  2.94k|  option->no_rfc9113_leading_and_trailing_ws_validation = val;
  145|  2.94k|}

nghttp2_data_provider_wrap_v1:
   32|  2.88k|                              const nghttp2_data_provider *data_prd) {
   33|  2.88k|  if (!data_prd) {
  ------------------
  |  Branch (33:7): [True: 2.17k, False: 717]
  ------------------
   34|  2.17k|    return NULL;
   35|  2.17k|  }
   36|       |
   37|    717|  dpw->version = NGHTTP2_DATA_PROVIDER_V1;
  ------------------
  |  |   36|    717|#define NGHTTP2_DATA_PROVIDER_V1 1
  ------------------
   38|    717|  dpw->data_prd.v1 = *data_prd;
   39|       |
   40|    717|  return dpw;
   41|  2.88k|}
nghttp2_data_provider_wrap_contains_read_callback:
   57|  4.32k|  const nghttp2_data_provider_wrap *dpw) {
   58|  4.32k|  switch (dpw->version) {
   59|  2.15k|  case NGHTTP2_DATA_PROVIDER_V1:
  ------------------
  |  |   36|  2.15k|#define NGHTTP2_DATA_PROVIDER_V1 1
  ------------------
  |  Branch (59:3): [True: 2.15k, False: 2.17k]
  ------------------
   60|  2.15k|    return dpw->data_prd.v1.read_callback != NULL;
   61|      0|  case NGHTTP2_DATA_PROVIDER_V2:
  ------------------
  |  |   37|      0|#define NGHTTP2_DATA_PROVIDER_V2 2
  ------------------
  |  Branch (61:3): [True: 0, False: 4.32k]
  ------------------
   62|      0|    return dpw->data_prd.v2.read_callback != NULL;
   63|  2.17k|  default:
  ------------------
  |  Branch (63:3): [True: 2.17k, False: 2.15k]
  ------------------
   64|  2.17k|    return 0;
   65|  4.32k|  }
   66|  4.32k|}
nghttp2_outbound_item_init:
   68|  16.2k|void nghttp2_outbound_item_init(nghttp2_outbound_item *item) {
   69|  16.2k|  item->cycle = 0;
   70|  16.2k|  item->qnext = NULL;
   71|  16.2k|  item->queued = 0;
   72|       |
   73|  16.2k|  memset(&item->aux_data, 0, sizeof(nghttp2_aux_data));
   74|  16.2k|}
nghttp2_outbound_item_free:
   76|  27.1k|void nghttp2_outbound_item_free(nghttp2_outbound_item *item, nghttp2_mem *mem) {
   77|  27.1k|  nghttp2_frame *frame;
   78|       |
   79|  27.1k|  if (item == NULL) {
  ------------------
  |  Branch (79:7): [True: 10.9k, False: 16.2k]
  ------------------
   80|  10.9k|    return;
   81|  10.9k|  }
   82|       |
   83|  16.2k|  frame = &item->frame;
   84|       |
   85|  16.2k|  switch (frame->hd.type) {
   86|    717|  case NGHTTP2_DATA:
  ------------------
  |  Branch (86:3): [True: 717, False: 15.5k]
  ------------------
   87|    717|    nghttp2_frame_data_free(&frame->data);
   88|    717|    break;
   89|  2.88k|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (89:3): [True: 2.88k, False: 13.3k]
  ------------------
   90|  2.88k|    nghttp2_frame_headers_free(&frame->headers, mem);
   91|  2.88k|    break;
   92|      0|  case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (92:3): [True: 0, False: 16.2k]
  ------------------
   93|      0|    nghttp2_frame_priority_free(&frame->priority);
   94|      0|    break;
   95|  3.02k|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (95:3): [True: 3.02k, False: 13.2k]
  ------------------
   96|  3.02k|    nghttp2_frame_rst_stream_free(&frame->rst_stream);
   97|  3.02k|    break;
   98|  5.09k|  case NGHTTP2_SETTINGS:
  ------------------
  |  Branch (98:3): [True: 5.09k, False: 11.1k]
  ------------------
   99|  5.09k|    nghttp2_frame_settings_free(&frame->settings, mem);
  100|  5.09k|    break;
  101|      0|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (101:3): [True: 0, False: 16.2k]
  ------------------
  102|      0|    nghttp2_frame_push_promise_free(&frame->push_promise, mem);
  103|      0|    break;
  104|      3|  case NGHTTP2_PING:
  ------------------
  |  Branch (104:3): [True: 3, False: 16.2k]
  ------------------
  105|      3|    nghttp2_frame_ping_free(&frame->ping);
  106|      3|    break;
  107|  1.56k|  case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (107:3): [True: 1.56k, False: 14.6k]
  ------------------
  108|  1.56k|    nghttp2_frame_goaway_free(&frame->goaway, mem);
  109|  1.56k|    break;
  110|  2.94k|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (110:3): [True: 2.94k, False: 13.2k]
  ------------------
  111|  2.94k|    nghttp2_frame_window_update_free(&frame->window_update);
  112|  2.94k|    break;
  113|      0|  default: {
  ------------------
  |  Branch (113:3): [True: 0, False: 16.2k]
  ------------------
  114|      0|    nghttp2_ext_aux_data *aux_data;
  115|       |
  116|      0|    aux_data = &item->aux_data.ext;
  117|       |
  118|      0|    if (aux_data->builtin == 0) {
  ------------------
  |  Branch (118:9): [True: 0, False: 0]
  ------------------
  119|      0|      nghttp2_frame_extension_free(&frame->ext);
  120|      0|      break;
  121|      0|    }
  122|       |
  123|      0|    switch (frame->hd.type) {
  124|      0|    case NGHTTP2_ALTSVC:
  ------------------
  |  Branch (124:5): [True: 0, False: 0]
  ------------------
  125|      0|      nghttp2_frame_altsvc_free(&frame->ext, mem);
  126|      0|      break;
  127|      0|    case NGHTTP2_ORIGIN:
  ------------------
  |  Branch (127:5): [True: 0, False: 0]
  ------------------
  128|      0|      nghttp2_frame_origin_free(&frame->ext, mem);
  129|      0|      break;
  130|      0|    case NGHTTP2_PRIORITY_UPDATE:
  ------------------
  |  Branch (130:5): [True: 0, False: 0]
  ------------------
  131|      0|      nghttp2_frame_priority_update_free(&frame->ext, mem);
  132|      0|      break;
  133|      0|    default:
  ------------------
  |  Branch (133:5): [True: 0, False: 0]
  ------------------
  134|      0|      assert(0);
  ------------------
  |  Branch (134:7): [Folded, False: 0]
  |  Branch (134:7): [Folded, False: 0]
  ------------------
  135|      0|      break;
  136|      0|    }
  137|      0|  }
  138|  16.2k|  }
  139|  16.2k|}
nghttp2_outbound_queue_push:
  147|  15.5k|                                 nghttp2_outbound_item *item) {
  148|  15.5k|  if (q->tail) {
  ------------------
  |  Branch (148:7): [True: 811, False: 14.6k]
  ------------------
  149|    811|    q->tail = q->tail->qnext = item;
  150|  14.6k|  } else {
  151|  14.6k|    q->head = q->tail = item;
  152|  14.6k|  }
  153|  15.5k|  ++q->n;
  154|  15.5k|}
nghttp2_outbound_queue_pop:
  156|  15.2k|void nghttp2_outbound_queue_pop(nghttp2_outbound_queue *q) {
  157|  15.2k|  nghttp2_outbound_item *item;
  158|  15.2k|  if (!q->head) {
  ------------------
  |  Branch (158:7): [True: 0, False: 15.2k]
  ------------------
  159|      0|    return;
  160|      0|  }
  161|  15.2k|  item = q->head;
  162|  15.2k|  q->head = q->head->qnext;
  163|  15.2k|  item->qnext = NULL;
  164|  15.2k|  if (!q->head) {
  ------------------
  |  Branch (164:7): [True: 14.5k, False: 720]
  ------------------
  165|       |    q->tail = NULL;
  166|  14.5k|  }
  167|  15.2k|  --q->n;
  168|  15.2k|}

nghttp2_pq_init:
   32|  23.5k|void nghttp2_pq_init(nghttp2_pq *pq, nghttp2_less less, nghttp2_mem *mem) {
   33|  23.5k|  pq->mem = mem;
   34|  23.5k|  pq->capacity = 0;
   35|       |  pq->q = NULL;
   36|  23.5k|  pq->length = 0;
   37|  23.5k|  pq->less = less;
   38|  23.5k|}
nghttp2_pq_free:
   40|  23.5k|void nghttp2_pq_free(nghttp2_pq *pq) {
   41|  23.5k|  nghttp2_mem_free(pq->mem, pq->q);
   42|       |  pq->q = NULL;
   43|  23.5k|}
nghttp2_pq_push:
   67|    891|int nghttp2_pq_push(nghttp2_pq *pq, nghttp2_pq_entry *item) {
   68|    891|  if (pq->capacity <= pq->length) {
  ------------------
  |  Branch (68:7): [True: 717, False: 174]
  ------------------
   69|    717|    void *nq;
   70|    717|    size_t ncapacity;
   71|       |
   72|    717|    ncapacity = nghttp2_max_size(4, (pq->capacity * 2));
   73|       |
   74|    717|    nq = nghttp2_mem_realloc(pq->mem, pq->q,
   75|    717|                             ncapacity * sizeof(nghttp2_pq_entry *));
   76|    717|    if (nq == NULL) {
  ------------------
  |  Branch (76:9): [True: 0, False: 717]
  ------------------
   77|      0|      return NGHTTP2_ERR_NOMEM;
   78|      0|    }
   79|    717|    pq->capacity = ncapacity;
   80|    717|    pq->q = nq;
   81|    717|  }
   82|    891|  pq->q[pq->length] = item;
   83|    891|  item->index = pq->length;
   84|    891|  ++pq->length;
   85|    891|  bubble_up(pq, pq->length - 1);
   86|    891|  return 0;
   87|    891|}
nghttp2_pq_top:
   89|  97.9k|nghttp2_pq_entry *nghttp2_pq_top(nghttp2_pq *pq) {
   90|  97.9k|  if (pq->length == 0) {
  ------------------
  |  Branch (90:7): [True: 96.6k, False: 1.26k]
  ------------------
   91|  96.6k|    return NULL;
   92|  96.6k|  } else {
   93|  1.26k|    return pq->q[0];
   94|  1.26k|  }
   95|  97.9k|}
nghttp2_pq_pop:
  118|    803|void nghttp2_pq_pop(nghttp2_pq *pq) {
  119|    803|  if (pq->length > 0) {
  ------------------
  |  Branch (119:7): [True: 803, False: 0]
  ------------------
  120|    803|    pq->q[0] = pq->q[pq->length - 1];
  121|    803|    pq->q[0]->index = 0;
  122|    803|    --pq->length;
  123|    803|    bubble_down(pq, 0);
  124|    803|  }
  125|    803|}
nghttp2_pq_remove:
  127|    803|void nghttp2_pq_remove(nghttp2_pq *pq, nghttp2_pq_entry *item) {
  128|    803|  assert(pq->q[item->index] == item);
  ------------------
  |  Branch (128:3): [True: 0, False: 803]
  |  Branch (128:3): [True: 803, False: 0]
  ------------------
  129|       |
  130|    803|  if (item->index == 0) {
  ------------------
  |  Branch (130:7): [True: 803, False: 0]
  ------------------
  131|    803|    nghttp2_pq_pop(pq);
  132|    803|    return;
  133|    803|  }
  134|       |
  135|      0|  if (item->index == pq->length - 1) {
  ------------------
  |  Branch (135:7): [True: 0, False: 0]
  ------------------
  136|      0|    --pq->length;
  137|      0|    return;
  138|      0|  }
  139|       |
  140|      0|  pq->q[item->index] = pq->q[pq->length - 1];
  141|      0|  pq->q[item->index]->index = item->index;
  142|      0|  --pq->length;
  143|       |
  144|      0|  if (pq->less(item, pq->q[item->index])) {
  ------------------
  |  Branch (144:7): [True: 0, False: 0]
  ------------------
  145|      0|    bubble_down(pq, item->index);
  146|      0|  } else {
  147|      0|    bubble_up(pq, item->index);
  148|      0|  }
  149|      0|}
nghttp2_pq_empty:
  151|   181k|int nghttp2_pq_empty(nghttp2_pq *pq) { return pq->length == 0; }
nghttp2_pq.c:bubble_up:
   55|    891|static void bubble_up(nghttp2_pq *pq, size_t index) {
   56|    891|  size_t parent;
   57|    891|  while (index != 0) {
  ------------------
  |  Branch (57:10): [True: 0, False: 891]
  ------------------
   58|      0|    parent = (index - 1) / 2;
   59|      0|    if (!pq->less(pq->q[index], pq->q[parent])) {
  ------------------
  |  Branch (59:9): [True: 0, False: 0]
  ------------------
   60|      0|      return;
   61|      0|    }
   62|      0|    swap(pq, parent, index);
   63|      0|    index = parent;
   64|      0|  }
   65|    891|}
nghttp2_pq.c:bubble_down:
   97|    803|static void bubble_down(nghttp2_pq *pq, size_t index) {
   98|    803|  size_t i, j, minindex;
   99|    803|  for (;;) {
  100|    803|    j = index * 2 + 1;
  101|    803|    minindex = index;
  102|    803|    for (i = 0; i < 2; ++i, ++j) {
  ------------------
  |  Branch (102:17): [True: 803, False: 0]
  ------------------
  103|    803|      if (j >= pq->length) {
  ------------------
  |  Branch (103:11): [True: 803, False: 0]
  ------------------
  104|    803|        break;
  105|    803|      }
  106|      0|      if (pq->less(pq->q[j], pq->q[minindex])) {
  ------------------
  |  Branch (106:11): [True: 0, False: 0]
  ------------------
  107|      0|        minindex = j;
  108|      0|      }
  109|      0|    }
  110|    803|    if (minindex == index) {
  ------------------
  |  Branch (110:9): [True: 803, False: 0]
  ------------------
  111|    803|      return;
  112|    803|    }
  113|      0|    swap(pq, index, minindex);
  114|      0|    index = minindex;
  115|      0|  }
  116|    803|}

nghttp2_priority_spec_init:
   29|  3.69k|                                int exclusive) {
   30|  3.69k|  pri_spec->stream_id = stream_id;
   31|  3.69k|  pri_spec->weight = weight;
   32|  3.69k|  pri_spec->exclusive = exclusive != 0;
   33|  3.69k|}
nghttp2_priority_spec_default_init:
   35|  3.42k|void nghttp2_priority_spec_default_init(nghttp2_priority_spec *pri_spec) {
   36|  3.42k|  pri_spec->stream_id = 0;
   37|  3.42k|  pri_spec->weight = NGHTTP2_DEFAULT_WEIGHT;
  ------------------
  |  |  191|  3.42k|#define NGHTTP2_DEFAULT_WEIGHT 16
  ------------------
   38|  3.42k|  pri_spec->exclusive = 0;
   39|  3.42k|}

nghttp2_ratelim_init:
   28|  5.88k|void nghttp2_ratelim_init(nghttp2_ratelim *rl, uint64_t burst, uint64_t rate) {
   29|  5.88k|  rl->val = rl->burst = burst;
   30|  5.88k|  rl->rate = rate;
   31|  5.88k|  rl->tstamp = 0;
   32|  5.88k|}
nghttp2_ratelim_update:
   34|    488|void nghttp2_ratelim_update(nghttp2_ratelim *rl, uint64_t tstamp) {
   35|    488|  uint64_t d, gain;
   36|       |
   37|    488|  if (tstamp == rl->tstamp) {
  ------------------
  |  Branch (37:7): [True: 46, False: 442]
  ------------------
   38|     46|    return;
   39|     46|  }
   40|       |
   41|    442|  if (tstamp > rl->tstamp) {
  ------------------
  |  Branch (41:7): [True: 442, False: 0]
  ------------------
   42|    442|    d = tstamp - rl->tstamp;
   43|    442|  } else {
   44|      0|    d = 1;
   45|      0|  }
   46|       |
   47|    442|  rl->tstamp = tstamp;
   48|       |
   49|    442|  if (UINT64_MAX / d < rl->rate) {
  ------------------
  |  Branch (49:7): [True: 0, False: 442]
  ------------------
   50|      0|    rl->val = rl->burst;
   51|       |
   52|      0|    return;
   53|      0|  }
   54|       |
   55|    442|  gain = rl->rate * d;
   56|       |
   57|    442|  if (UINT64_MAX - gain < rl->val) {
  ------------------
  |  Branch (57:7): [True: 0, False: 442]
  ------------------
   58|      0|    rl->val = rl->burst;
   59|       |
   60|      0|    return;
   61|      0|  }
   62|       |
   63|    442|  rl->val += gain;
   64|    442|  rl->val = nghttp2_min_uint64(rl->val, rl->burst);
   65|    442|}
nghttp2_ratelim_drain:
   67|    488|int nghttp2_ratelim_drain(nghttp2_ratelim *rl, uint64_t n) {
   68|    488|  if (rl->val < n) {
  ------------------
  |  Branch (68:7): [True: 0, False: 488]
  ------------------
   69|      0|    return -1;
   70|      0|  }
   71|       |
   72|    488|  rl->val -= n;
   73|       |
   74|    488|  return 0;
   75|    488|}

nghttp2_rcbuf_new:
   34|  37.1k|                      nghttp2_mem *mem) {
   35|  37.1k|  uint8_t *p;
   36|       |
   37|  37.1k|  p = nghttp2_mem_malloc(mem, sizeof(nghttp2_rcbuf) + size);
   38|  37.1k|  if (p == NULL) {
  ------------------
  |  Branch (38:7): [True: 0, False: 37.1k]
  ------------------
   39|      0|    return NGHTTP2_ERR_NOMEM;
   40|      0|  }
   41|       |
   42|  37.1k|  *rcbuf_ptr = (void *)p;
   43|       |
   44|  37.1k|  (*rcbuf_ptr)->mem_user_data = mem->mem_user_data;
   45|  37.1k|  (*rcbuf_ptr)->free = mem->free;
   46|  37.1k|  (*rcbuf_ptr)->base = p + sizeof(nghttp2_rcbuf);
   47|  37.1k|  (*rcbuf_ptr)->len = size;
   48|  37.1k|  (*rcbuf_ptr)->ref = 1;
   49|       |
   50|  37.1k|  return 0;
   51|  37.1k|}
nghttp2_rcbuf_new2:
   54|  17.9k|                       size_t srclen, nghttp2_mem *mem) {
   55|  17.9k|  int rv;
   56|       |
   57|  17.9k|  rv = nghttp2_rcbuf_new(rcbuf_ptr, srclen + 1, mem);
   58|  17.9k|  if (rv != 0) {
  ------------------
  |  Branch (58:7): [True: 0, False: 17.9k]
  ------------------
   59|      0|    return rv;
   60|      0|  }
   61|       |
   62|  17.9k|  (*rcbuf_ptr)->len = srclen;
   63|  17.9k|  *nghttp2_cpymem((*rcbuf_ptr)->base, src, srclen) = '\0';
   64|       |
   65|  17.9k|  return 0;
   66|  17.9k|}
nghttp2_rcbuf_del:
   71|  37.1k|void nghttp2_rcbuf_del(nghttp2_rcbuf *rcbuf) {
   72|  37.1k|  nghttp2_mem_free2(rcbuf->free, rcbuf, rcbuf->mem_user_data);
   73|  37.1k|}
nghttp2_rcbuf_incref:
   75|  44.9k|void nghttp2_rcbuf_incref(nghttp2_rcbuf *rcbuf) {
   76|  44.9k|  if (rcbuf->ref == -1) {
  ------------------
  |  Branch (76:7): [True: 18.6k, False: 26.3k]
  ------------------
   77|  18.6k|    return;
   78|  18.6k|  }
   79|       |
   80|  26.3k|  ++rcbuf->ref;
   81|  26.3k|}
nghttp2_rcbuf_decref:
   83|   137k|void nghttp2_rcbuf_decref(nghttp2_rcbuf *rcbuf) {
   84|   137k|  if (rcbuf == NULL || rcbuf->ref == -1) {
  ------------------
  |  Branch (84:7): [True: 55.7k, False: 82.0k]
  |  Branch (84:24): [True: 18.6k, False: 63.4k]
  ------------------
   85|  74.3k|    return;
   86|  74.3k|  }
   87|       |
   88|   137k|  assert(rcbuf->ref > 0);
  ------------------
  |  Branch (88:3): [True: 0, False: 63.4k]
  |  Branch (88:3): [True: 63.4k, False: 0]
  ------------------
   89|       |
   90|  63.4k|  if (--rcbuf->ref == 0) {
  ------------------
  |  Branch (90:7): [True: 37.1k, False: 26.3k]
  ------------------
   91|  37.1k|    nghttp2_rcbuf_del(rcbuf);
   92|  37.1k|  }
   93|  63.4k|}

nghttp2_is_fatal:
   86|   121k|int nghttp2_is_fatal(int lib_error_code) {
   87|   121k|  return lib_error_code < NGHTTP2_ERR_FATAL;
   88|   121k|}
nghttp2_session_terminate_session:
  253|    700|                                      uint32_t error_code) {
  254|    700|  return session_terminate_session(session, session->last_proc_stream_id,
  255|       |                                   error_code, NULL);
  256|    700|}
nghttp2_session_terminate_session_with_reason:
  266|    372|                                                  const char *reason) {
  267|    372|  return session_terminate_session(session, session->last_proc_stream_id,
  268|    372|                                   error_code, reason);
  269|    372|}
nghttp2_session_is_my_stream_id:
  272|  18.7k|                                    int32_t stream_id) {
  273|  18.7k|  int rem;
  274|  18.7k|  if (stream_id == 0) {
  ------------------
  |  Branch (274:7): [True: 1.56k, False: 17.1k]
  ------------------
  275|  1.56k|    return 0;
  276|  1.56k|  }
  277|  17.1k|  rem = stream_id & 0x1;
  278|  17.1k|  if (session->server) {
  ------------------
  |  Branch (278:7): [True: 0, False: 17.1k]
  ------------------
  279|      0|    return rem == 0;
  280|      0|  }
  281|  17.1k|  return rem == 1;
  282|  17.1k|}
nghttp2_session_get_stream:
  285|  69.0k|                                           int32_t stream_id) {
  286|  69.0k|  nghttp2_stream *stream;
  287|       |
  288|  69.0k|  stream = (nghttp2_stream *)nghttp2_map_find(&session->streams, stream_id);
  289|       |
  290|  69.0k|  if (stream == NULL || (stream->flags & NGHTTP2_STREAM_FLAG_CLOSED) ||
  ------------------
  |  Branch (290:7): [True: 16.7k, False: 52.2k]
  |  Branch (290:25): [True: 0, False: 52.2k]
  ------------------
  291|  52.2k|      stream->state == NGHTTP2_STREAM_IDLE) {
  ------------------
  |  Branch (291:7): [True: 0, False: 52.2k]
  ------------------
  292|  16.7k|    return NULL;
  293|  16.7k|  }
  294|       |
  295|  52.2k|  return stream;
  296|  69.0k|}
nghttp2_session_get_stream_raw:
  299|  2.99k|                                               int32_t stream_id) {
  300|  2.99k|  return (nghttp2_stream *)nghttp2_map_find(&session->streams, stream_id);
  301|  2.99k|}
nghttp2_session_client_new3:
  673|  2.94k|                                nghttp2_mem *mem) {
  674|  2.94k|  int rv;
  675|  2.94k|  nghttp2_session *session;
  676|       |
  677|  2.94k|  rv = session_new(&session, callbacks, user_data, 0, option, mem);
  678|       |
  679|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (679:7): [True: 0, False: 2.94k]
  ------------------
  680|      0|    return rv;
  681|      0|  }
  682|       |  /* IDs for use in client */
  683|  2.94k|  session->next_stream_id = 1;
  684|       |
  685|  2.94k|  *session_ptr = session;
  686|       |
  687|  2.94k|  return 0;
  688|  2.94k|}
nghttp2_session_del:
  790|  2.94k|void nghttp2_session_del(nghttp2_session *session) {
  791|  2.94k|  nghttp2_mem *mem;
  792|  2.94k|  nghttp2_inflight_settings *settings;
  793|  2.94k|  size_t i;
  794|       |
  795|  2.94k|  if (session == NULL) {
  ------------------
  |  Branch (795:7): [True: 0, False: 2.94k]
  ------------------
  796|      0|    return;
  797|      0|  }
  798|       |
  799|  2.94k|  mem = &session->mem;
  800|       |
  801|  5.88k|  for (settings = session->inflight_settings_head; settings;) {
  ------------------
  |  Branch (801:52): [True: 2.94k, False: 2.94k]
  ------------------
  802|  2.94k|    nghttp2_inflight_settings *next = settings->next;
  803|  2.94k|    inflight_settings_del(settings, mem);
  804|  2.94k|    settings = next;
  805|  2.94k|  }
  806|       |
  807|  26.4k|  for (i = 0; i < NGHTTP2_EXTPRI_URGENCY_LEVELS; ++i) {
  ------------------
  |  | 5028|  26.4k|#define NGHTTP2_EXTPRI_URGENCY_LEVELS (NGHTTP2_EXTPRI_URGENCY_LOW + 1)
  |  |  ------------------
  |  |  |  | 5020|  26.4k|#define NGHTTP2_EXTPRI_URGENCY_LOW 7
  |  |  ------------------
  ------------------
  |  Branch (807:15): [True: 23.5k, False: 2.94k]
  ------------------
  808|  23.5k|    nghttp2_pq_free(&session->sched[i].ob_data);
  809|  23.5k|  }
  810|       |
  811|       |  /* Have to free streams first, so that we can check
  812|       |     stream->item->queued */
  813|  2.94k|  nghttp2_map_each(&session->streams, free_streams, session);
  814|  2.94k|  nghttp2_map_free(&session->streams);
  815|       |
  816|  2.94k|  ob_q_free(&session->ob_urgent, mem);
  817|  2.94k|  ob_q_free(&session->ob_reg, mem);
  818|  2.94k|  ob_q_free(&session->ob_syn, mem);
  819|       |
  820|  2.94k|  active_outbound_item_reset(&session->aob, mem);
  821|  2.94k|  session_inbound_frame_reset(session);
  822|  2.94k|  nghttp2_hd_deflate_free(&session->hd_deflater);
  823|  2.94k|  nghttp2_hd_inflate_free(&session->hd_inflater);
  824|  2.94k|  nghttp2_bufs_free(&session->aob.framebufs);
  825|  2.94k|  nghttp2_mem_free(mem, session);
  826|  2.94k|}
nghttp2_session_add_item:
 1015|  16.2k|                             nghttp2_outbound_item *item) {
 1016|       |  /* TODO Return error if stream is not found for the frame requiring
 1017|       |     stream presence. */
 1018|  16.2k|  int rv = 0;
 1019|  16.2k|  nghttp2_stream *stream;
 1020|  16.2k|  nghttp2_frame *frame;
 1021|       |
 1022|  16.2k|  frame = &item->frame;
 1023|  16.2k|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 1024|       |
 1025|  16.2k|  switch (frame->hd.type) {
 1026|    717|  case NGHTTP2_DATA:
  ------------------
  |  Branch (1026:3): [True: 717, False: 15.5k]
  ------------------
 1027|    717|    if (!stream) {
  ------------------
  |  Branch (1027:9): [True: 0, False: 717]
  ------------------
 1028|      0|      return NGHTTP2_ERR_STREAM_CLOSED;
 1029|      0|    }
 1030|       |
 1031|    717|    if (stream->item) {
  ------------------
  |  Branch (1031:9): [True: 0, False: 717]
  ------------------
 1032|      0|      return NGHTTP2_ERR_DATA_EXIST;
 1033|      0|    }
 1034|       |
 1035|    717|    rv = session_attach_stream_item(session, stream, item);
 1036|       |
 1037|    717|    if (rv != 0) {
  ------------------
  |  Branch (1037:9): [True: 0, False: 717]
  ------------------
 1038|      0|      return rv;
 1039|      0|    }
 1040|       |
 1041|    717|    return 0;
 1042|  2.88k|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (1042:3): [True: 2.88k, False: 13.3k]
  ------------------
 1043|       |    /* We push request HEADERS and push response HEADERS to
 1044|       |       dedicated queue because their transmission is affected by
 1045|       |       SETTINGS_MAX_CONCURRENT_STREAMS */
 1046|       |    /* TODO If 2 HEADERS are submitted for reserved stream, then
 1047|       |       both of them are queued into ob_syn, which is not
 1048|       |       desirable. */
 1049|  2.88k|    if (frame->headers.cat == NGHTTP2_HCAT_REQUEST ||
  ------------------
  |  Branch (1049:9): [True: 2.88k, False: 0]
  ------------------
 1050|  2.88k|        (stream && stream->state == NGHTTP2_STREAM_RESERVED)) {
  ------------------
  |  Branch (1050:10): [True: 0, False: 0]
  |  Branch (1050:20): [True: 0, False: 0]
  ------------------
 1051|  2.88k|      nghttp2_outbound_queue_push(&session->ob_syn, item);
 1052|  2.88k|      item->queued = 1;
 1053|  2.88k|      return 0;
 1054|  2.88k|    }
 1055|       |
 1056|      0|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1057|      0|    item->queued = 1;
 1058|      0|    return 0;
 1059|  5.09k|  case NGHTTP2_SETTINGS:
  ------------------
  |  Branch (1059:3): [True: 5.09k, False: 11.1k]
  ------------------
 1060|  5.09k|  case NGHTTP2_PING:
  ------------------
  |  Branch (1060:3): [True: 3, False: 16.2k]
  ------------------
 1061|  5.09k|    nghttp2_outbound_queue_push(&session->ob_urgent, item);
 1062|  5.09k|    item->queued = 1;
 1063|  5.09k|    return 0;
 1064|  3.02k|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (1064:3): [True: 3.02k, False: 13.2k]
  ------------------
 1065|  3.02k|    if (stream) {
  ------------------
  |  Branch (1065:9): [True: 2.87k, False: 146]
  ------------------
 1066|  2.87k|      stream->state = NGHTTP2_STREAM_CLOSING;
 1067|  2.87k|    }
 1068|  3.02k|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1069|  3.02k|    item->queued = 1;
 1070|  3.02k|    return 0;
 1071|      0|  case NGHTTP2_PUSH_PROMISE: {
  ------------------
  |  Branch (1071:3): [True: 0, False: 16.2k]
  ------------------
 1072|      0|    nghttp2_headers_aux_data *aux_data;
 1073|       |
 1074|      0|    aux_data = &item->aux_data.headers;
 1075|       |
 1076|      0|    if (!stream) {
  ------------------
  |  Branch (1076:9): [True: 0, False: 0]
  ------------------
 1077|      0|      return NGHTTP2_ERR_STREAM_CLOSED;
 1078|      0|    }
 1079|       |
 1080|      0|    if (!nghttp2_session_open_stream(
  ------------------
  |  Branch (1080:9): [True: 0, False: 0]
  ------------------
 1081|      0|          session, frame->push_promise.promised_stream_id,
 1082|      0|          NGHTTP2_STREAM_FLAG_NONE, NGHTTP2_STREAM_RESERVED,
 1083|      0|          aux_data->stream_user_data)) {
 1084|      0|      return NGHTTP2_ERR_NOMEM;
 1085|      0|    }
 1086|       |
 1087|      0|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1088|      0|    item->queued = 1;
 1089|       |
 1090|      0|    return 0;
 1091|      0|  }
 1092|  2.94k|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (1092:3): [True: 2.94k, False: 13.2k]
  ------------------
 1093|  2.94k|    if (stream) {
  ------------------
  |  Branch (1093:9): [True: 0, False: 2.94k]
  ------------------
 1094|      0|      stream->window_update_queued = 1;
 1095|  2.94k|    } else if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (1095:16): [True: 2.94k, False: 0]
  ------------------
 1096|  2.94k|      session->window_update_queued = 1;
 1097|  2.94k|    }
 1098|  2.94k|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1099|  2.94k|    item->queued = 1;
 1100|  2.94k|    return 0;
 1101|  1.56k|  default:
  ------------------
  |  Branch (1101:3): [True: 1.56k, False: 14.6k]
  ------------------
 1102|  1.56k|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1103|  1.56k|    item->queued = 1;
 1104|  1.56k|    return 0;
 1105|  16.2k|  }
 1106|  16.2k|}
nghttp2_session_add_rst_stream:
 1109|  1.32k|                                   uint32_t error_code) {
 1110|  1.32k|  return nghttp2_session_add_rst_stream_continue(
 1111|  1.32k|    session, stream_id, error_code,
 1112|  1.32k|    /* continue_without_stream = */ 1);
 1113|  1.32k|}
nghttp2_session_add_rst_stream_continue:
 1118|  4.20k|                                            int continue_without_stream) {
 1119|  4.20k|  int rv;
 1120|  4.20k|  nghttp2_outbound_item *item;
 1121|  4.20k|  nghttp2_frame *frame;
 1122|  4.20k|  nghttp2_stream *stream;
 1123|  4.20k|  nghttp2_mem *mem;
 1124|       |
 1125|  4.20k|  mem = &session->mem;
 1126|  4.20k|  stream = nghttp2_session_get_stream(session, stream_id);
 1127|  4.20k|  if (stream && stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (1127:7): [True: 4.05k, False: 146]
  |  Branch (1127:17): [True: 1.17k, False: 2.87k]
  ------------------
 1128|  1.17k|    return 0;
 1129|  1.17k|  }
 1130|       |
 1131|       |  /* Sending RST_STREAM to an idle stream is subject to protocol
 1132|       |     violation.  Historically, nghttp2 allows this.  In order not to
 1133|       |     disrupt the existing applications, we don't error out this case
 1134|       |     and simply ignore it. */
 1135|  3.02k|  if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (1135:7): [True: 2.87k, False: 146]
  ------------------
 1136|  2.87k|    if ((uint32_t)stream_id >= session->next_stream_id) {
  ------------------
  |  Branch (1136:9): [True: 0, False: 2.87k]
  ------------------
 1137|      0|      return 0;
 1138|      0|    }
 1139|  2.87k|  } else if (session->last_recv_stream_id < stream_id) {
  ------------------
  |  Branch (1139:14): [True: 0, False: 146]
  ------------------
 1140|      0|    return 0;
 1141|      0|  }
 1142|       |
 1143|       |  /* Cancel pending request HEADERS in ob_syn if this RST_STREAM
 1144|       |     refers to that stream. */
 1145|  3.02k|  if (!session->server && nghttp2_session_is_my_stream_id(session, stream_id) &&
  ------------------
  |  Branch (1145:7): [True: 3.02k, False: 0]
  |  Branch (1145:27): [True: 2.87k, False: 146]
  ------------------
 1146|  2.87k|      nghttp2_outbound_queue_top(&session->ob_syn)) {
  ------------------
  |  |  192|  2.87k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  |  |  ------------------
  |  |  |  Branch (192:39): [True: 0, False: 2.87k]
  |  |  ------------------
  ------------------
 1147|      0|    nghttp2_headers_aux_data *aux_data;
 1148|      0|    nghttp2_frame *headers_frame;
 1149|       |
 1150|      0|    headers_frame = &nghttp2_outbound_queue_top(&session->ob_syn)->frame;
  ------------------
  |  |  192|      0|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
 1151|      0|    assert(headers_frame->hd.type == NGHTTP2_HEADERS);
  ------------------
  |  Branch (1151:5): [True: 0, False: 0]
  |  Branch (1151:5): [True: 0, False: 0]
  ------------------
 1152|       |
 1153|      0|    if (headers_frame->hd.stream_id <= stream_id) {
  ------------------
  |  Branch (1153:9): [True: 0, False: 0]
  ------------------
 1154|      0|      for (item = session->ob_syn.head; item; item = item->qnext) {
  ------------------
  |  Branch (1154:41): [True: 0, False: 0]
  ------------------
 1155|      0|        aux_data = &item->aux_data.headers;
 1156|       |
 1157|      0|        if (item->frame.hd.stream_id < stream_id) {
  ------------------
  |  Branch (1157:13): [True: 0, False: 0]
  ------------------
 1158|      0|          continue;
 1159|      0|        }
 1160|       |
 1161|       |        /* stream_id in ob_syn queue must be strictly increasing.  If
 1162|       |           we found larger ID, then we can break here. */
 1163|      0|        if (item->frame.hd.stream_id > stream_id || aux_data->canceled) {
  ------------------
  |  Branch (1163:13): [True: 0, False: 0]
  |  Branch (1163:53): [True: 0, False: 0]
  ------------------
 1164|      0|          break;
 1165|      0|        }
 1166|       |
 1167|      0|        aux_data->error_code = error_code;
 1168|      0|        aux_data->canceled = 1;
 1169|       |
 1170|      0|        return 0;
 1171|      0|      }
 1172|      0|    }
 1173|      0|  }
 1174|       |
 1175|       |  /* To keep the old behaviour, do not fail if stream was not
 1176|       |     found. */
 1177|  3.02k|  if (!continue_without_stream && !stream) {
  ------------------
  |  Branch (1177:7): [True: 2.03k, False: 994]
  |  Branch (1177:35): [True: 0, False: 2.03k]
  ------------------
 1178|      0|    return 0;
 1179|      0|  }
 1180|       |
 1181|  3.02k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 1182|  3.02k|  if (item == NULL) {
  ------------------
  |  Branch (1182:7): [True: 0, False: 3.02k]
  ------------------
 1183|      0|    return NGHTTP2_ERR_NOMEM;
 1184|      0|  }
 1185|       |
 1186|  3.02k|  nghttp2_outbound_item_init(item);
 1187|       |
 1188|  3.02k|  frame = &item->frame;
 1189|       |
 1190|  3.02k|  nghttp2_frame_rst_stream_init(&frame->rst_stream, stream_id, error_code);
 1191|       |
 1192|  3.02k|  item->aux_data.rst_stream.continue_without_stream =
 1193|  3.02k|    (uint8_t)(continue_without_stream != 0);
 1194|       |
 1195|  3.02k|  rv = nghttp2_session_add_item(session, item);
 1196|  3.02k|  if (rv != 0) {
  ------------------
  |  Branch (1196:7): [True: 0, False: 3.02k]
  ------------------
 1197|      0|    nghttp2_frame_rst_stream_free(&frame->rst_stream);
 1198|      0|    nghttp2_mem_free(mem, item);
 1199|      0|    return rv;
 1200|      0|  }
 1201|  3.02k|  return 0;
 1202|  3.02k|}
nghttp2_session_open_stream:
 1207|  2.93k|                                            void *stream_user_data) {
 1208|  2.93k|  int rv;
 1209|  2.93k|  nghttp2_stream *stream;
 1210|  2.93k|  int stream_alloc = 0;
 1211|  2.93k|  nghttp2_mem *mem;
 1212|       |
 1213|  2.93k|  mem = &session->mem;
 1214|  2.93k|  stream = nghttp2_session_get_stream_raw(session, stream_id);
 1215|       |
 1216|  2.93k|  if (session->opt_flags &
  ------------------
  |  Branch (1216:7): [True: 2.93k, False: 0]
  ------------------
 1217|  2.93k|      NGHTTP2_OPTMASK_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) {
 1218|  2.93k|    flags |= NGHTTP2_STREAM_FLAG_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION;
 1219|  2.93k|  }
 1220|       |
 1221|  2.93k|  if (stream) {
  ------------------
  |  Branch (1221:7): [True: 0, False: 2.93k]
  ------------------
 1222|      0|    assert(stream->state == NGHTTP2_STREAM_IDLE);
  ------------------
  |  Branch (1222:5): [True: 0, False: 0]
  |  Branch (1222:5): [True: 0, False: 0]
  ------------------
 1223|      0|    assert(initial_state != NGHTTP2_STREAM_IDLE);
  ------------------
  |  Branch (1223:5): [True: 0, False: 0]
  |  Branch (1223:5): [True: 0, False: 0]
  ------------------
 1224|       |
 1225|      0|    --session->num_idle_streams;
 1226|  2.93k|  } else {
 1227|  2.93k|    stream = nghttp2_mem_malloc(mem, sizeof(nghttp2_stream));
 1228|  2.93k|    if (stream == NULL) {
  ------------------
  |  Branch (1228:9): [True: 0, False: 2.93k]
  ------------------
 1229|      0|      return NULL;
 1230|      0|    }
 1231|       |
 1232|  2.93k|    stream_alloc = 1;
 1233|  2.93k|  }
 1234|       |
 1235|  2.93k|  if (initial_state == NGHTTP2_STREAM_RESERVED) {
  ------------------
  |  Branch (1235:7): [True: 0, False: 2.93k]
  ------------------
 1236|      0|    flags |= NGHTTP2_STREAM_FLAG_PUSH;
 1237|      0|  }
 1238|       |
 1239|  2.93k|  if (stream_alloc) {
  ------------------
  |  Branch (1239:7): [True: 2.93k, False: 0]
  ------------------
 1240|  2.93k|    nghttp2_stream_init(stream, stream_id, flags, initial_state,
 1241|  2.93k|                        (int32_t)session->remote_settings.initial_window_size,
 1242|  2.93k|                        (int32_t)session->local_settings.initial_window_size,
 1243|  2.93k|                        stream_user_data);
 1244|  2.93k|    stream->seq = session->stream_seq++;
 1245|       |
 1246|  2.93k|    rv = nghttp2_map_insert(&session->streams, stream_id, stream);
 1247|  2.93k|    if (rv != 0) {
  ------------------
  |  Branch (1247:9): [True: 0, False: 2.93k]
  ------------------
 1248|      0|      nghttp2_stream_free(stream);
 1249|      0|      nghttp2_mem_free(mem, stream);
 1250|      0|      return NULL;
 1251|      0|    }
 1252|  2.93k|  } else {
 1253|      0|    stream->flags = flags;
 1254|      0|    stream->state = initial_state;
 1255|      0|    stream->stream_user_data = stream_user_data;
 1256|      0|  }
 1257|       |
 1258|  2.93k|  switch (initial_state) {
 1259|      0|  case NGHTTP2_STREAM_RESERVED:
  ------------------
  |  Branch (1259:3): [True: 0, False: 2.93k]
  ------------------
 1260|      0|    if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (1260:9): [True: 0, False: 0]
  ------------------
 1261|       |      /* reserved (local) */
 1262|      0|      nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 1263|      0|    } else {
 1264|       |      /* reserved (remote) */
 1265|      0|      nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
 1266|      0|      ++session->num_incoming_reserved_streams;
 1267|      0|    }
 1268|       |    /* Reserved stream does not count in the concurrent streams
 1269|       |       limit. That is one of the DOS vector. */
 1270|      0|    break;
 1271|      0|  case NGHTTP2_STREAM_IDLE:
  ------------------
  |  Branch (1271:3): [True: 0, False: 2.93k]
  ------------------
 1272|      0|    ++session->num_idle_streams;
 1273|      0|    break;
 1274|  2.93k|  default:
  ------------------
  |  Branch (1274:3): [True: 2.93k, False: 0]
  ------------------
 1275|  2.93k|    if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (1275:9): [True: 2.93k, False: 0]
  ------------------
 1276|  2.93k|      ++session->num_outgoing_streams;
 1277|  2.93k|    } else {
 1278|      0|      ++session->num_incoming_streams;
 1279|      0|    }
 1280|  2.93k|  }
 1281|       |
 1282|  2.93k|  return stream;
 1283|  2.93k|}
nghttp2_session_close_stream:
 1286|  1.95k|                                 uint32_t error_code) {
 1287|  1.95k|  nghttp2_stream *stream;
 1288|  1.95k|  nghttp2_mem *mem;
 1289|  1.95k|  int is_my_stream_id;
 1290|       |
 1291|  1.95k|  mem = &session->mem;
 1292|  1.95k|  stream = nghttp2_session_get_stream(session, stream_id);
 1293|       |
 1294|  1.95k|  if (!stream) {
  ------------------
  |  Branch (1294:7): [True: 127, False: 1.82k]
  ------------------
 1295|    127|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 1296|    127|  }
 1297|       |
 1298|  1.82k|  DEBUGF("stream: stream(%p)=%d close\n", stream, stream->stream_id);
  ------------------
  |  |   39|  1.82k|    do {                                                                       \
  |  |   40|  1.82k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.82k]
  |  |  ------------------
  ------------------
 1299|       |
 1300|       |  /* We call on_stream_close_callback even if stream->state is
 1301|       |     NGHTTP2_STREAM_INITIAL. This will happen while sending request
 1302|       |     HEADERS, a local endpoint receives RST_STREAM for that stream. It
 1303|       |     may be PROTOCOL_ERROR, but without notifying stream closure will
 1304|       |     hang the stream in a local endpoint.
 1305|       |  */
 1306|       |
 1307|  1.82k|  if (session->callbacks.on_stream_close_callback) {
  ------------------
  |  Branch (1307:7): [True: 1.82k, False: 0]
  ------------------
 1308|  1.82k|    if (session->callbacks.on_stream_close_callback(
  ------------------
  |  Branch (1308:9): [True: 0, False: 1.82k]
  ------------------
 1309|  1.82k|          session, stream_id, error_code, session->user_data) != 0) {
 1310|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1311|      0|    }
 1312|  1.82k|  }
 1313|       |
 1314|  1.82k|  if (stream->item) {
  ------------------
  |  Branch (1314:7): [True: 148, False: 1.67k]
  ------------------
 1315|    148|    nghttp2_outbound_item *item;
 1316|       |
 1317|    148|    item = stream->item;
 1318|       |
 1319|    148|    session_detach_stream_item(session, stream);
 1320|       |
 1321|       |    /* If item is queued, it will be deleted when it is popped
 1322|       |       (nghttp2_session_prep_frame() will fail).  If session->aob.item
 1323|       |       points to this item, let active_outbound_item_reset()
 1324|       |       free the item. */
 1325|    148|    if (!item->queued && item != session->aob.item) {
  ------------------
  |  Branch (1325:9): [True: 148, False: 0]
  |  Branch (1325:26): [True: 141, False: 7]
  ------------------
 1326|    141|      nghttp2_outbound_item_free(item, mem);
 1327|    141|      nghttp2_mem_free(mem, item);
 1328|    141|    }
 1329|    148|  }
 1330|       |
 1331|  1.82k|  is_my_stream_id = nghttp2_session_is_my_stream_id(session, stream_id);
 1332|       |
 1333|       |  /* pushed streams which is not opened yet is not counted toward max
 1334|       |     concurrent limits */
 1335|  1.82k|  if ((stream->flags & NGHTTP2_STREAM_FLAG_PUSH)) {
  ------------------
  |  Branch (1335:7): [True: 0, False: 1.82k]
  ------------------
 1336|      0|    if (!is_my_stream_id) {
  ------------------
  |  Branch (1336:9): [True: 0, False: 0]
  ------------------
 1337|      0|      --session->num_incoming_reserved_streams;
 1338|      0|    }
 1339|  1.82k|  } else {
 1340|  1.82k|    if (is_my_stream_id) {
  ------------------
  |  Branch (1340:9): [True: 1.82k, False: 0]
  ------------------
 1341|  1.82k|      --session->num_outgoing_streams;
 1342|  1.82k|    } else {
 1343|      0|      --session->num_incoming_streams;
 1344|      0|    }
 1345|  1.82k|  }
 1346|       |
 1347|       |  /* Closes both directions just in case they are not closed yet */
 1348|  1.82k|  stream->flags |= NGHTTP2_STREAM_FLAG_CLOSED;
 1349|       |
 1350|  1.82k|  nghttp2_session_destroy_stream(session, stream);
 1351|       |
 1352|  1.82k|  return 0;
 1353|  1.82k|}
nghttp2_session_destroy_stream:
 1356|  1.82k|                                    nghttp2_stream *stream) {
 1357|  1.82k|  nghttp2_mem *mem;
 1358|       |
 1359|  1.82k|  DEBUGF("stream: destroy closed stream(%p)=%d\n", stream, stream->stream_id);
  ------------------
  |  |   39|  1.82k|    do {                                                                       \
  |  |   40|  1.82k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.82k]
  |  |  ------------------
  ------------------
 1360|       |
 1361|  1.82k|  mem = &session->mem;
 1362|       |
 1363|  1.82k|  if (stream->queued) {
  ------------------
  |  Branch (1363:7): [True: 0, False: 1.82k]
  ------------------
 1364|      0|    session_ob_data_remove(session, stream);
 1365|      0|  }
 1366|       |
 1367|  1.82k|  nghttp2_map_remove(&session->streams, stream->stream_id);
 1368|  1.82k|  nghttp2_stream_free(stream);
 1369|  1.82k|  nghttp2_mem_free(mem, stream);
 1370|  1.82k|}
nghttp2_session_close_stream_if_shut_rdwr:
 1386|  3.33k|                                              nghttp2_stream *stream) {
 1387|  3.33k|  if ((stream->shut_flags & NGHTTP2_SHUT_RDWR) == NGHTTP2_SHUT_RDWR) {
  ------------------
  |  Branch (1387:7): [True: 29, False: 3.30k]
  ------------------
 1388|     29|    return nghttp2_session_close_stream(session, stream->stream_id,
 1389|     29|                                        NGHTTP2_NO_ERROR);
 1390|     29|  }
 1391|  3.30k|  return 0;
 1392|  3.33k|}
nghttp2_session_check_request_allowed:
 1438|  10.2k|int nghttp2_session_check_request_allowed(nghttp2_session *session) {
 1439|  10.2k|  return !session->server && session->next_stream_id <= INT32_MAX &&
  ------------------
  |  Branch (1439:10): [True: 10.2k, False: 0]
  |  Branch (1439:30): [True: 10.2k, False: 0]
  ------------------
 1440|  10.2k|         (session->goaway_flags & NGHTTP2_GOAWAY_RECV) == 0 &&
  ------------------
  |  Branch (1440:10): [True: 10.1k, False: 101]
  ------------------
 1441|  10.1k|         !session_is_closing(session);
  ------------------
  |  Branch (1441:10): [True: 8.92k, False: 1.24k]
  ------------------
 1442|  10.2k|}
nghttp2_session_pop_next_ob_item:
 2327|  28.1k|nghttp2_session_pop_next_ob_item(nghttp2_session *session) {
 2328|  28.1k|  nghttp2_outbound_item *item;
 2329|       |
 2330|  28.1k|  item = nghttp2_outbound_queue_top(&session->ob_urgent);
  ------------------
  |  |  192|  28.1k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
 2331|  28.1k|  if (item) {
  ------------------
  |  Branch (2331:7): [True: 5.02k, False: 23.1k]
  ------------------
 2332|  5.02k|    nghttp2_outbound_queue_pop(&session->ob_urgent);
 2333|  5.02k|    item->queued = 0;
 2334|  5.02k|    return item;
 2335|  5.02k|  }
 2336|       |
 2337|  23.1k|  item = nghttp2_outbound_queue_top(&session->ob_reg);
  ------------------
  |  |  192|  23.1k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
 2338|  23.1k|  if (item) {
  ------------------
  |  Branch (2338:7): [True: 7.36k, False: 15.7k]
  ------------------
 2339|  7.36k|    nghttp2_outbound_queue_pop(&session->ob_reg);
 2340|  7.36k|    item->queued = 0;
 2341|  7.36k|    return item;
 2342|  7.36k|  }
 2343|       |
 2344|  15.7k|  if (!session_is_outgoing_concurrent_streams_max(session)) {
  ------------------
  |  Branch (2344:7): [True: 15.7k, False: 17]
  ------------------
 2345|  15.7k|    item = nghttp2_outbound_queue_top(&session->ob_syn);
  ------------------
  |  |  192|  15.7k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
 2346|  15.7k|    if (item) {
  ------------------
  |  Branch (2346:9): [True: 2.88k, False: 12.8k]
  ------------------
 2347|  2.88k|      nghttp2_outbound_queue_pop(&session->ob_syn);
 2348|  2.88k|      item->queued = 0;
 2349|  2.88k|      return item;
 2350|  2.88k|    }
 2351|  15.7k|  }
 2352|       |
 2353|  12.8k|  if (session->remote_window_size > 0) {
  ------------------
  |  Branch (2353:7): [True: 12.8k, False: 0]
  ------------------
 2354|  12.8k|    return session_sched_get_next_outbound_item(session);
 2355|  12.8k|  }
 2356|       |
 2357|      0|  return NULL;
 2358|  12.8k|}
nghttp2_session_send:
 3154|  13.2k|int nghttp2_session_send(nghttp2_session *session) {
 3155|  13.2k|  const uint8_t *data = NULL;
 3156|  13.2k|  nghttp2_ssize datalen;
 3157|  13.2k|  nghttp2_ssize sentlen;
 3158|  13.2k|  nghttp2_bufs *framebufs;
 3159|       |
 3160|  13.2k|  framebufs = &session->aob.framebufs;
 3161|       |
 3162|  30.9k|  for (;;) {
 3163|  30.9k|    datalen = nghttp2_session_mem_send_internal(session, &data, 0);
 3164|  30.9k|    if (datalen <= 0) {
  ------------------
  |  Branch (3164:9): [True: 11.6k, False: 19.3k]
  ------------------
 3165|  11.6k|      return (int)datalen;
 3166|  11.6k|    }
 3167|  19.3k|    if (session->callbacks.send_callback2) {
  ------------------
  |  Branch (3167:9): [True: 0, False: 19.3k]
  ------------------
 3168|      0|      sentlen = session->callbacks.send_callback2(
 3169|      0|        session, data, (size_t)datalen, 0, session->user_data);
 3170|  19.3k|    } else {
 3171|  19.3k|      sentlen = (nghttp2_ssize)session->callbacks.send_callback(
 3172|  19.3k|        session, data, (size_t)datalen, 0, session->user_data);
 3173|  19.3k|    }
 3174|  19.3k|    if (sentlen < 0) {
  ------------------
  |  Branch (3174:9): [True: 1.64k, False: 17.7k]
  ------------------
 3175|  1.64k|      if (sentlen == NGHTTP2_ERR_WOULDBLOCK) {
  ------------------
  |  Branch (3175:11): [True: 1.64k, False: 0]
  ------------------
 3176|       |        /* Transmission canceled. Rewind the offset */
 3177|  1.64k|        framebufs->cur->buf.pos -= datalen;
 3178|       |
 3179|  1.64k|        return 0;
 3180|  1.64k|      }
 3181|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3182|  1.64k|    }
 3183|       |    /* Rewind the offset to the amount of unsent bytes */
 3184|  17.7k|    framebufs->cur->buf.pos -= datalen - sentlen;
 3185|  17.7k|  }
 3186|  13.2k|}
nghttp2_session_on_request_headers_received:
 3828|     66|                                                nghttp2_frame *frame) {
 3829|     66|  int rv = 0;
 3830|     66|  nghttp2_stream *stream;
 3831|     66|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (3831:7): [True: 2, False: 64]
  ------------------
 3832|      2|    return session_inflate_handle_invalid_connection(
 3833|      2|      session, frame, NGHTTP2_ERR_PROTO, "request HEADERS: stream_id == 0");
 3834|      2|  }
 3835|       |
 3836|       |  /* If client receives idle stream from server, it is invalid
 3837|       |     regardless stream ID is even or odd.  This is because client is
 3838|       |     not expected to receive request from server. */
 3839|     64|  if (!session->server) {
  ------------------
  |  Branch (3839:7): [True: 64, False: 0]
  ------------------
 3840|     64|    if (session_detect_idle_stream(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (3840:9): [True: 51, False: 13]
  ------------------
 3841|     51|      return session_inflate_handle_invalid_connection(
 3842|     51|        session, frame, NGHTTP2_ERR_PROTO,
 3843|     51|        "request HEADERS: client received request");
 3844|     51|    }
 3845|       |
 3846|     13|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 3847|     64|  }
 3848|       |
 3849|     64|  assert(session->server);
  ------------------
  |  Branch (3849:3): [True: 0, False: 0]
  |  Branch (3849:3): [True: 0, False: 0]
  ------------------
 3850|       |
 3851|      0|  if (!session_is_new_peer_stream_id(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (3851:7): [True: 0, False: 0]
  ------------------
 3852|      0|    if (frame->hd.stream_id == 0 ||
  ------------------
  |  Branch (3852:9): [True: 0, False: 0]
  ------------------
 3853|      0|        nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (3853:9): [True: 0, False: 0]
  ------------------
 3854|      0|      return session_inflate_handle_invalid_connection(
 3855|      0|        session, frame, NGHTTP2_ERR_PROTO,
 3856|      0|        "request HEADERS: invalid stream_id");
 3857|      0|    }
 3858|       |
 3859|       |    /* RFC 7540 says if an endpoint receives a HEADERS with invalid
 3860|       |     * stream ID (e.g, numerically smaller than previous), it MUST
 3861|       |     * issue connection error with error code PROTOCOL_ERROR.  It is a
 3862|       |     * bit hard to detect this, since we cannot remember all streams
 3863|       |     * we observed so far.
 3864|       |     *
 3865|       |     * You might imagine this is really easy.  But no.  HTTP/2 is
 3866|       |     * asynchronous protocol, and usually client and server do not
 3867|       |     * share the complete picture of open/closed stream status.  For
 3868|       |     * example, after server sends RST_STREAM for a stream, client may
 3869|       |     * send trailer HEADERS for that stream.  If naive server detects
 3870|       |     * that, and issued connection error, then it is a bug of server
 3871|       |     * implementation since client is not wrong if it did not get
 3872|       |     * RST_STREAM when it issued trailer HEADERS.
 3873|       |     *
 3874|       |     * At the moment, we are very conservative here.  We only use
 3875|       |     * connection error if stream ID refers idle stream, or we are
 3876|       |     * sure that stream is half-closed(remote) or closed.  Otherwise
 3877|       |     * we just ignore HEADERS for now.
 3878|       |     */
 3879|      0|    stream = nghttp2_session_get_stream_raw(session, frame->hd.stream_id);
 3880|      0|    if (stream && (stream->shut_flags & NGHTTP2_SHUT_RD)) {
  ------------------
  |  Branch (3880:9): [True: 0, False: 0]
  |  Branch (3880:19): [True: 0, False: 0]
  ------------------
 3881|      0|      return session_inflate_handle_invalid_connection(
 3882|      0|        session, frame, NGHTTP2_ERR_STREAM_CLOSED, "HEADERS: stream closed");
 3883|      0|    }
 3884|       |
 3885|      0|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 3886|      0|  }
 3887|      0|  session->last_recv_stream_id = frame->hd.stream_id;
 3888|       |
 3889|      0|  if (session_is_incoming_concurrent_streams_max(session)) {
  ------------------
  |  Branch (3889:7): [True: 0, False: 0]
  ------------------
 3890|      0|    return session_inflate_handle_invalid_connection(
 3891|      0|      session, frame, NGHTTP2_ERR_PROTO,
 3892|      0|      "request HEADERS: max concurrent streams exceeded");
 3893|      0|  }
 3894|       |
 3895|      0|  if (!session_allow_incoming_new_stream(session)) {
  ------------------
  |  Branch (3895:7): [True: 0, False: 0]
  ------------------
 3896|       |    /* We just ignore stream after GOAWAY was sent */
 3897|      0|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 3898|      0|  }
 3899|       |
 3900|      0|  if (frame->headers.pri_spec.stream_id == frame->hd.stream_id) {
  ------------------
  |  Branch (3900:7): [True: 0, False: 0]
  ------------------
 3901|      0|    return session_inflate_handle_invalid_connection(
 3902|      0|      session, frame, NGHTTP2_ERR_PROTO, "request HEADERS: depend on itself");
 3903|      0|  }
 3904|       |
 3905|      0|  if (session_is_incoming_concurrent_streams_pending_max(session)) {
  ------------------
  |  Branch (3905:7): [True: 0, False: 0]
  ------------------
 3906|      0|    return session_inflate_handle_invalid_stream(session, frame,
 3907|      0|                                                 NGHTTP2_ERR_REFUSED_STREAM);
 3908|      0|  }
 3909|       |
 3910|      0|  stream = nghttp2_session_open_stream(session, frame->hd.stream_id,
 3911|      0|                                       NGHTTP2_STREAM_FLAG_NONE,
 3912|      0|                                       NGHTTP2_STREAM_OPENING, NULL);
 3913|      0|  if (!stream) {
  ------------------
  |  Branch (3913:7): [True: 0, False: 0]
  ------------------
 3914|      0|    return NGHTTP2_ERR_NOMEM;
 3915|      0|  }
 3916|       |
 3917|      0|  session->last_proc_stream_id = session->last_recv_stream_id;
 3918|       |
 3919|      0|  rv = session_call_on_begin_headers(session, frame);
 3920|      0|  if (rv != 0) {
  ------------------
  |  Branch (3920:7): [True: 0, False: 0]
  ------------------
 3921|      0|    return rv;
 3922|      0|  }
 3923|      0|  return 0;
 3924|      0|}
nghttp2_session_on_response_headers_received:
 3928|  1.27k|                                                 nghttp2_stream *stream) {
 3929|  1.27k|  int rv;
 3930|       |  /* This function is only called if stream->state ==
 3931|       |     NGHTTP2_STREAM_OPENING and stream_id is local side initiated. */
 3932|  1.27k|  assert(stream->state == NGHTTP2_STREAM_OPENING &&
  ------------------
  |  Branch (3932:3): [True: 0, False: 1.27k]
  |  Branch (3932:3): [True: 0, False: 0]
  |  Branch (3932:3): [True: 1.27k, False: 0]
  |  Branch (3932:3): [True: 1.27k, False: 0]
  ------------------
 3933|  1.27k|         nghttp2_session_is_my_stream_id(session, frame->hd.stream_id));
 3934|  1.27k|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (3934:7): [True: 0, False: 1.27k]
  ------------------
 3935|      0|    return session_inflate_handle_invalid_connection(
 3936|      0|      session, frame, NGHTTP2_ERR_PROTO, "response HEADERS: stream_id == 0");
 3937|      0|  }
 3938|  1.27k|  if (stream->shut_flags & NGHTTP2_SHUT_RD) {
  ------------------
  |  Branch (3938:7): [True: 0, False: 1.27k]
  ------------------
 3939|       |    /* half closed (remote): from the spec:
 3940|       |
 3941|       |       If an endpoint receives additional frames for a stream that is
 3942|       |       in this state it MUST respond with a stream error (Section
 3943|       |       5.4.2) of type STREAM_CLOSED.
 3944|       |
 3945|       |       We go further, and make it connection error.
 3946|       |    */
 3947|      0|    return session_inflate_handle_invalid_connection(
 3948|      0|      session, frame, NGHTTP2_ERR_STREAM_CLOSED, "HEADERS: stream closed");
 3949|      0|  }
 3950|  1.27k|  stream->state = NGHTTP2_STREAM_OPENED;
 3951|  1.27k|  rv = session_call_on_begin_headers(session, frame);
 3952|  1.27k|  if (rv != 0) {
  ------------------
  |  Branch (3952:7): [True: 0, False: 1.27k]
  ------------------
 3953|      0|    return rv;
 3954|      0|  }
 3955|  1.27k|  return 0;
 3956|  1.27k|}
nghttp2_session_on_headers_received:
 4005|      3|                                        nghttp2_stream *stream) {
 4006|      3|  int rv = 0;
 4007|      3|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (4007:7): [True: 0, False: 3]
  ------------------
 4008|      0|    return session_inflate_handle_invalid_connection(
 4009|      0|      session, frame, NGHTTP2_ERR_PROTO, "HEADERS: stream_id == 0");
 4010|      0|  }
 4011|      3|  if ((stream->shut_flags & NGHTTP2_SHUT_RD)) {
  ------------------
  |  Branch (4011:7): [True: 2, False: 1]
  ------------------
 4012|       |    /* half closed (remote): from the spec:
 4013|       |
 4014|       |       If an endpoint receives additional frames for a stream that is
 4015|       |       in this state it MUST respond with a stream error (Section
 4016|       |       5.4.2) of type STREAM_CLOSED.
 4017|       |
 4018|       |       we go further, and make it connection error.
 4019|       |    */
 4020|      2|    return session_inflate_handle_invalid_connection(
 4021|      2|      session, frame, NGHTTP2_ERR_STREAM_CLOSED, "HEADERS: stream closed");
 4022|      2|  }
 4023|      1|  if (nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4023:7): [True: 1, False: 0]
  ------------------
 4024|      1|    if (stream->state == NGHTTP2_STREAM_OPENED) {
  ------------------
  |  Branch (4024:9): [True: 0, False: 1]
  ------------------
 4025|      0|      rv = session_call_on_begin_headers(session, frame);
 4026|      0|      if (rv != 0) {
  ------------------
  |  Branch (4026:11): [True: 0, False: 0]
  ------------------
 4027|      0|        return rv;
 4028|      0|      }
 4029|      0|      return 0;
 4030|      0|    }
 4031|       |
 4032|      1|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 4033|      1|  }
 4034|       |  /* If this is remote peer initiated stream, it is OK unless it
 4035|       |     has sent END_STREAM frame already. But if stream is in
 4036|       |     NGHTTP2_STREAM_CLOSING, we discard the frame. This is a race
 4037|       |     condition. */
 4038|      0|  if (stream->state != NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (4038:7): [True: 0, False: 0]
  ------------------
 4039|      0|    rv = session_call_on_begin_headers(session, frame);
 4040|      0|    if (rv != 0) {
  ------------------
  |  Branch (4040:9): [True: 0, False: 0]
  ------------------
 4041|      0|      return rv;
 4042|      0|    }
 4043|      0|    return 0;
 4044|      0|  }
 4045|      0|  return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 4046|      0|}
nghttp2_session_on_rst_stream_received:
 4095|     20|                                           nghttp2_frame *frame) {
 4096|     20|  int rv;
 4097|     20|  nghttp2_stream *stream;
 4098|     20|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (4098:7): [True: 1, False: 19]
  ------------------
 4099|      1|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4100|      1|                                             "RST_STREAM: stream_id == 0");
 4101|      1|  }
 4102|       |
 4103|     19|  if (session_detect_idle_stream(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4103:7): [True: 4, False: 15]
  ------------------
 4104|      4|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4105|      4|                                             "RST_STREAM: stream in idle");
 4106|      4|  }
 4107|       |
 4108|     15|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 4109|     15|  if (stream) {
  ------------------
  |  Branch (4109:7): [True: 13, False: 2]
  ------------------
 4110|       |    /* We may use stream->shut_flags for strict error checking. */
 4111|     13|    nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 4112|     13|  }
 4113|       |
 4114|     15|  rv = session_call_on_frame_received(session, frame);
 4115|     15|  if (rv != 0) {
  ------------------
  |  Branch (4115:7): [True: 0, False: 15]
  ------------------
 4116|      0|    return rv;
 4117|      0|  }
 4118|     15|  rv = nghttp2_session_close_stream(session, frame->hd.stream_id,
 4119|     15|                                    frame->rst_stream.error_code);
 4120|     15|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4120:7): [True: 0, False: 15]
  ------------------
 4121|      0|    return rv;
 4122|      0|  }
 4123|       |
 4124|     15|  return session_update_stream_reset_ratelim(session);
 4125|     15|}
nghttp2_session_update_local_settings:
 4262|      4|                                          size_t niv) {
 4263|      4|  int rv;
 4264|      4|  size_t i;
 4265|      4|  int32_t new_initial_window_size = -1;
 4266|      4|  uint32_t header_table_size = 0;
 4267|      4|  uint32_t min_header_table_size = UINT32_MAX;
 4268|      4|  uint8_t header_table_size_seen = 0;
 4269|       |  /* For NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE, use the value last
 4270|       |     seen.  For NGHTTP2_SETTINGS_HEADER_TABLE_SIZE, use both minimum
 4271|       |     value and last seen value. */
 4272|     16|  for (i = 0; i < niv; ++i) {
  ------------------
  |  Branch (4272:15): [True: 12, False: 4]
  ------------------
 4273|     12|    switch (iv[i].settings_id) {
  ------------------
  |  Branch (4273:13): [True: 4, False: 8]
  ------------------
 4274|      0|    case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (4274:5): [True: 0, False: 12]
  ------------------
 4275|      0|      header_table_size_seen = 1;
 4276|      0|      header_table_size = iv[i].value;
 4277|      0|      min_header_table_size =
 4278|      0|        nghttp2_min_uint32(min_header_table_size, iv[i].value);
 4279|      0|      break;
 4280|      4|    case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (4280:5): [True: 4, False: 8]
  ------------------
 4281|      4|      new_initial_window_size = (int32_t)iv[i].value;
 4282|      4|      break;
 4283|     12|    }
 4284|     12|  }
 4285|      4|  if (header_table_size_seen) {
  ------------------
  |  Branch (4285:7): [True: 0, False: 4]
  ------------------
 4286|      0|    if (min_header_table_size < header_table_size) {
  ------------------
  |  Branch (4286:9): [True: 0, False: 0]
  ------------------
 4287|      0|      rv = nghttp2_hd_inflate_change_table_size(&session->hd_inflater,
 4288|      0|                                                min_header_table_size);
 4289|      0|      if (rv != 0) {
  ------------------
  |  Branch (4289:11): [True: 0, False: 0]
  ------------------
 4290|      0|        return rv;
 4291|      0|      }
 4292|      0|    }
 4293|       |
 4294|      0|    rv = nghttp2_hd_inflate_change_table_size(&session->hd_inflater,
 4295|      0|                                              header_table_size);
 4296|      0|    if (rv != 0) {
  ------------------
  |  Branch (4296:9): [True: 0, False: 0]
  ------------------
 4297|      0|      return rv;
 4298|      0|    }
 4299|      0|  }
 4300|      4|  if (new_initial_window_size != -1) {
  ------------------
  |  Branch (4300:7): [True: 4, False: 0]
  ------------------
 4301|      4|    rv = session_update_local_initial_window_size(
 4302|      4|      session, new_initial_window_size,
 4303|      4|      (int32_t)session->local_settings.initial_window_size);
 4304|      4|    if (rv != 0) {
  ------------------
  |  Branch (4304:9): [True: 0, False: 4]
  ------------------
 4305|      0|      return rv;
 4306|      0|    }
 4307|      4|  }
 4308|       |
 4309|     16|  for (i = 0; i < niv; ++i) {
  ------------------
  |  Branch (4309:15): [True: 12, False: 4]
  ------------------
 4310|     12|    switch (iv[i].settings_id) {
  ------------------
  |  Branch (4310:13): [True: 12, False: 0]
  ------------------
 4311|      0|    case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (4311:5): [True: 0, False: 12]
  ------------------
 4312|      0|      session->local_settings.header_table_size = iv[i].value;
 4313|      0|      break;
 4314|      4|    case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (4314:5): [True: 4, False: 8]
  ------------------
 4315|      4|      session->local_settings.enable_push = iv[i].value;
 4316|      4|      break;
 4317|      4|    case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (4317:5): [True: 4, False: 8]
  ------------------
 4318|      4|      session->local_settings.max_concurrent_streams = iv[i].value;
 4319|      4|      break;
 4320|      4|    case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (4320:5): [True: 4, False: 8]
  ------------------
 4321|      4|      session->local_settings.initial_window_size = iv[i].value;
 4322|      4|      break;
 4323|      0|    case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (4323:5): [True: 0, False: 12]
  ------------------
 4324|      0|      session->local_settings.max_frame_size = iv[i].value;
 4325|      0|      break;
 4326|      0|    case NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE:
  ------------------
  |  Branch (4326:5): [True: 0, False: 12]
  ------------------
 4327|      0|      session->local_settings.max_header_list_size = iv[i].value;
 4328|      0|      break;
 4329|      0|    case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (4329:5): [True: 0, False: 12]
  ------------------
 4330|      0|      session->local_settings.enable_connect_protocol = iv[i].value;
 4331|      0|      break;
 4332|      0|    case NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES:
  ------------------
  |  Branch (4332:5): [True: 0, False: 12]
  ------------------
 4333|      0|      session->local_settings.no_rfc7540_priorities = iv[i].value;
 4334|      0|      break;
 4335|     12|    }
 4336|     12|  }
 4337|       |
 4338|      4|  return 0;
 4339|      4|}
nghttp2_session_on_settings_received:
 4342|  2.27k|                                         nghttp2_frame *frame, int noack) {
 4343|  2.27k|  int rv;
 4344|  2.27k|  size_t i;
 4345|  2.27k|  nghttp2_mem *mem;
 4346|  2.27k|  nghttp2_inflight_settings *settings;
 4347|       |
 4348|  2.27k|  mem = &session->mem;
 4349|       |
 4350|  2.27k|  if (frame->hd.stream_id != 0) {
  ------------------
  |  Branch (4350:7): [True: 26, False: 2.25k]
  ------------------
 4351|     26|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4352|     26|                                             "SETTINGS: stream_id != 0");
 4353|     26|  }
 4354|  2.25k|  if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (4354:7): [True: 5, False: 2.24k]
  ------------------
 4355|      5|    if (frame->settings.niv != 0) {
  ------------------
  |  Branch (4355:9): [True: 0, False: 5]
  ------------------
 4356|      0|      return session_handle_invalid_connection(
 4357|      0|        session, frame, NGHTTP2_ERR_FRAME_SIZE_ERROR,
 4358|      0|        "SETTINGS: ACK and payload != 0");
 4359|      0|    }
 4360|       |
 4361|      5|    settings = session->inflight_settings_head;
 4362|       |
 4363|      5|    if (!settings) {
  ------------------
  |  Branch (4363:9): [True: 1, False: 4]
  ------------------
 4364|      1|      return session_handle_invalid_connection(
 4365|      1|        session, frame, NGHTTP2_ERR_PROTO, "SETTINGS: unexpected ACK");
 4366|      1|    }
 4367|       |
 4368|      4|    rv = nghttp2_session_update_local_settings(session, settings->iv,
 4369|      4|                                               settings->niv);
 4370|       |
 4371|      4|    session->inflight_settings_head = settings->next;
 4372|       |
 4373|      4|    inflight_settings_del(settings, mem);
 4374|       |
 4375|      4|    if (rv != 0) {
  ------------------
  |  Branch (4375:9): [True: 0, False: 4]
  ------------------
 4376|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4376:11): [True: 0, False: 0]
  ------------------
 4377|      0|        return rv;
 4378|      0|      }
 4379|      0|      return session_handle_invalid_connection(session, frame, rv, NULL);
 4380|      0|    }
 4381|      4|    return session_call_on_frame_received(session, frame);
 4382|      4|  }
 4383|       |
 4384|  2.24k|  if (!session->remote_settings_received) {
  ------------------
  |  Branch (4384:7): [True: 2.02k, False: 228]
  ------------------
 4385|  2.02k|    session->remote_settings.max_concurrent_streams =
 4386|  2.02k|      NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS;
  ------------------
  |  |  103|  2.02k|#define NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS 0xffffffffu
  ------------------
 4387|  2.02k|    session->remote_settings_received = 1;
 4388|  2.02k|  }
 4389|       |
 4390|  3.49k|  for (i = 0; i < frame->settings.niv; ++i) {
  ------------------
  |  Branch (4390:15): [True: 1.35k, False: 2.14k]
  ------------------
 4391|  1.35k|    nghttp2_settings_entry *entry = &frame->settings.iv[i];
 4392|       |
 4393|  1.35k|    switch (entry->settings_id) {
  ------------------
  |  Branch (4393:13): [True: 517, False: 833]
  ------------------
 4394|    164|    case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (4394:5): [True: 164, False: 1.18k]
  ------------------
 4395|       |
 4396|    164|      rv = nghttp2_hd_deflate_change_table_size(&session->hd_deflater,
 4397|    164|                                                entry->value);
 4398|    164|      if (rv != 0) {
  ------------------
  |  Branch (4398:11): [True: 0, False: 164]
  ------------------
 4399|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4399:13): [True: 0, False: 0]
  ------------------
 4400|      0|          return rv;
 4401|      0|        } else {
 4402|      0|          return session_handle_invalid_connection(
 4403|      0|            session, frame, NGHTTP2_ERR_HEADER_COMP, NULL);
 4404|      0|        }
 4405|      0|      }
 4406|       |
 4407|    164|      session->remote_settings.header_table_size = entry->value;
 4408|       |
 4409|    164|      break;
 4410|     34|    case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (4410:5): [True: 34, False: 1.31k]
  ------------------
 4411|       |
 4412|     34|      if (entry->value != 0 && entry->value != 1) {
  ------------------
  |  Branch (4412:11): [True: 23, False: 11]
  |  Branch (4412:32): [True: 15, False: 8]
  ------------------
 4413|     15|        return session_handle_invalid_connection(
 4414|     15|          session, frame, NGHTTP2_ERR_PROTO,
 4415|     15|          "SETTINGS: invalid SETTINGS_ENBLE_PUSH");
 4416|     15|      }
 4417|       |
 4418|     19|      if (!session->server && entry->value != 0) {
  ------------------
  |  Branch (4418:11): [True: 19, False: 0]
  |  Branch (4418:31): [True: 8, False: 11]
  ------------------
 4419|      8|        return session_handle_invalid_connection(
 4420|      8|          session, frame, NGHTTP2_ERR_PROTO,
 4421|      8|          "SETTINGS: server attempted to enable push");
 4422|      8|      }
 4423|       |
 4424|     11|      session->remote_settings.enable_push = entry->value;
 4425|       |
 4426|     11|      break;
 4427|     67|    case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (4427:5): [True: 67, False: 1.28k]
  ------------------
 4428|       |
 4429|     67|      session->remote_settings.max_concurrent_streams = entry->value;
 4430|       |
 4431|     67|      break;
 4432|    114|    case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (4432:5): [True: 114, False: 1.23k]
  ------------------
 4433|       |
 4434|       |      /* Update the initial window size of the all active streams */
 4435|       |      /* Check that initial_window_size < (1u << 31) */
 4436|    114|      if (entry->value > NGHTTP2_MAX_WINDOW_SIZE) {
  ------------------
  |  |  224|    114|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (4436:11): [True: 14, False: 100]
  ------------------
 4437|     14|        return session_handle_invalid_connection(
 4438|     14|          session, frame, NGHTTP2_ERR_FLOW_CONTROL,
 4439|     14|          "SETTINGS: too large SETTINGS_INITIAL_WINDOW_SIZE");
 4440|     14|      }
 4441|       |
 4442|    100|      rv = session_update_remote_initial_window_size(session,
 4443|    100|                                                     (int32_t)entry->value);
 4444|       |
 4445|    100|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4445:11): [True: 0, False: 100]
  ------------------
 4446|      0|        return rv;
 4447|      0|      }
 4448|       |
 4449|    100|      if (rv != 0) {
  ------------------
  |  Branch (4449:11): [True: 1, False: 99]
  ------------------
 4450|      1|        return session_handle_invalid_connection(
 4451|      1|          session, frame, NGHTTP2_ERR_FLOW_CONTROL, NULL);
 4452|      1|      }
 4453|       |
 4454|     99|      session->remote_settings.initial_window_size = entry->value;
 4455|       |
 4456|     99|      break;
 4457|     52|    case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (4457:5): [True: 52, False: 1.29k]
  ------------------
 4458|       |
 4459|     52|      if (entry->value < NGHTTP2_MAX_FRAME_SIZE_MIN ||
  ------------------
  |  |   43|    104|#define NGHTTP2_MAX_FRAME_SIZE_MIN (1 << 14)
  ------------------
  |  Branch (4459:11): [True: 3, False: 49]
  ------------------
 4460|     49|          entry->value > NGHTTP2_MAX_FRAME_SIZE_MAX) {
  ------------------
  |  |   42|     49|#define NGHTTP2_MAX_FRAME_SIZE_MAX ((1 << 24) - 1)
  ------------------
  |  Branch (4460:11): [True: 31, False: 18]
  ------------------
 4461|     34|        return session_handle_invalid_connection(
 4462|     34|          session, frame, NGHTTP2_ERR_PROTO,
 4463|     34|          "SETTINGS: invalid SETTINGS_MAX_FRAME_SIZE");
 4464|     34|      }
 4465|       |
 4466|     18|      session->remote_settings.max_frame_size = entry->value;
 4467|       |
 4468|     18|      break;
 4469|     43|    case NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE:
  ------------------
  |  Branch (4469:5): [True: 43, False: 1.30k]
  ------------------
 4470|       |
 4471|     43|      session->remote_settings.max_header_list_size = entry->value;
 4472|       |
 4473|     43|      break;
 4474|     15|    case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (4474:5): [True: 15, False: 1.33k]
  ------------------
 4475|       |
 4476|     15|      if (entry->value != 0 && entry->value != 1) {
  ------------------
  |  Branch (4476:11): [True: 13, False: 2]
  |  Branch (4476:32): [True: 12, False: 1]
  ------------------
 4477|     12|        return session_handle_invalid_connection(
 4478|     12|          session, frame, NGHTTP2_ERR_PROTO,
 4479|     12|          "SETTINGS: invalid SETTINGS_ENABLE_CONNECT_PROTOCOL");
 4480|     12|      }
 4481|       |
 4482|      3|      if (!session->server &&
  ------------------
  |  Branch (4482:11): [True: 3, False: 0]
  ------------------
 4483|      3|          session->remote_settings.enable_connect_protocol &&
  ------------------
  |  Branch (4483:11): [True: 0, False: 3]
  ------------------
 4484|      0|          entry->value == 0) {
  ------------------
  |  Branch (4484:11): [True: 0, False: 0]
  ------------------
 4485|      0|        return session_handle_invalid_connection(
 4486|      0|          session, frame, NGHTTP2_ERR_PROTO,
 4487|      0|          "SETTINGS: server attempted to disable "
 4488|      0|          "SETTINGS_ENABLE_CONNECT_PROTOCOL");
 4489|      0|      }
 4490|       |
 4491|      3|      session->remote_settings.enable_connect_protocol = entry->value;
 4492|       |
 4493|      3|      break;
 4494|     28|    case NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES:
  ------------------
  |  Branch (4494:5): [True: 28, False: 1.32k]
  ------------------
 4495|       |
 4496|     28|      if (entry->value != 0 && entry->value != 1) {
  ------------------
  |  Branch (4496:11): [True: 17, False: 11]
  |  Branch (4496:32): [True: 15, False: 2]
  ------------------
 4497|     15|        return session_handle_invalid_connection(
 4498|     15|          session, frame, NGHTTP2_ERR_PROTO,
 4499|     15|          "SETTINGS: invalid SETTINGS_NO_RFC7540_PRIORITIES");
 4500|     15|      }
 4501|       |
 4502|     13|      if (session->remote_settings.no_rfc7540_priorities != UINT32_MAX &&
  ------------------
  |  Branch (4502:11): [True: 11, False: 2]
  ------------------
 4503|     11|          session->remote_settings.no_rfc7540_priorities != entry->value) {
  ------------------
  |  Branch (4503:11): [True: 2, False: 9]
  ------------------
 4504|      2|        return session_handle_invalid_connection(
 4505|      2|          session, frame, NGHTTP2_ERR_PROTO,
 4506|      2|          "SETTINGS: SETTINGS_NO_RFC7540_PRIORITIES cannot be changed");
 4507|      2|      }
 4508|       |
 4509|     11|      session->remote_settings.no_rfc7540_priorities = entry->value;
 4510|       |
 4511|     11|      break;
 4512|  1.35k|    }
 4513|  1.35k|  }
 4514|       |
 4515|  2.14k|  if (session->remote_settings.no_rfc7540_priorities == UINT32_MAX) {
  ------------------
  |  Branch (4515:7): [True: 1.92k, False: 227]
  ------------------
 4516|  1.92k|    session->remote_settings.no_rfc7540_priorities = 0;
 4517|  1.92k|  }
 4518|       |
 4519|  2.14k|  if (!noack && !session_is_closing(session)) {
  ------------------
  |  Branch (4519:7): [True: 2.14k, False: 0]
  |  Branch (4519:17): [True: 2.14k, False: 1]
  ------------------
 4520|  2.14k|    rv = nghttp2_session_add_settings(session, NGHTTP2_FLAG_ACK, NULL, 0);
 4521|       |
 4522|  2.14k|    if (rv != 0) {
  ------------------
  |  Branch (4522:9): [True: 0, False: 2.14k]
  ------------------
 4523|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4523:11): [True: 0, False: 0]
  ------------------
 4524|      0|        return rv;
 4525|      0|      }
 4526|       |
 4527|      0|      return session_handle_invalid_connection(session, frame,
 4528|      0|                                               NGHTTP2_ERR_INTERNAL, NULL);
 4529|      0|    }
 4530|  2.14k|  }
 4531|       |
 4532|  2.14k|  return session_call_on_frame_received(session, frame);
 4533|  2.14k|}
nghttp2_session_on_push_promise_received:
 4573|    174|                                             nghttp2_frame *frame) {
 4574|    174|  int rv;
 4575|    174|  nghttp2_stream *stream;
 4576|    174|  nghttp2_stream *promised_stream;
 4577|       |
 4578|    174|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (4578:7): [True: 3, False: 171]
  ------------------
 4579|      3|    return session_inflate_handle_invalid_connection(
 4580|      3|      session, frame, NGHTTP2_ERR_PROTO, "PUSH_PROMISE: stream_id == 0");
 4581|      3|  }
 4582|    171|  if (session->server || session->local_settings.enable_push == 0) {
  ------------------
  |  Branch (4582:7): [True: 0, False: 171]
  |  Branch (4582:26): [True: 2, False: 169]
  ------------------
 4583|      2|    return session_inflate_handle_invalid_connection(
 4584|      2|      session, frame, NGHTTP2_ERR_PROTO, "PUSH_PROMISE: push disabled");
 4585|      2|  }
 4586|       |
 4587|    169|  if (!nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4587:7): [True: 2, False: 167]
  ------------------
 4588|      2|    return session_inflate_handle_invalid_connection(
 4589|      2|      session, frame, NGHTTP2_ERR_PROTO, "PUSH_PROMISE: invalid stream_id");
 4590|      2|  }
 4591|       |
 4592|    167|  if (!session_allow_incoming_new_stream(session)) {
  ------------------
  |  Branch (4592:7): [True: 0, False: 167]
  ------------------
 4593|       |    /* We just discard PUSH_PROMISE after GOAWAY was sent */
 4594|      0|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 4595|      0|  }
 4596|       |
 4597|    167|  if (!session_is_new_peer_stream_id(session,
  ------------------
  |  Branch (4597:7): [True: 10, False: 157]
  ------------------
 4598|    167|                                     frame->push_promise.promised_stream_id)) {
 4599|       |    /* The spec says if an endpoint receives a PUSH_PROMISE with
 4600|       |       illegal stream ID is subject to a connection error of type
 4601|       |       PROTOCOL_ERROR. */
 4602|     10|    return session_inflate_handle_invalid_connection(
 4603|     10|      session, frame, NGHTTP2_ERR_PROTO,
 4604|     10|      "PUSH_PROMISE: invalid promised_stream_id");
 4605|     10|  }
 4606|       |
 4607|    157|  if (session_detect_idle_stream(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4607:7): [True: 11, False: 146]
  ------------------
 4608|     11|    return session_inflate_handle_invalid_connection(
 4609|     11|      session, frame, NGHTTP2_ERR_PROTO, "PUSH_PROMISE: stream in idle");
 4610|     11|  }
 4611|       |
 4612|    146|  session->last_recv_stream_id = frame->push_promise.promised_stream_id;
 4613|    146|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 4614|    146|  if (!stream || stream->state == NGHTTP2_STREAM_CLOSING ||
  ------------------
  |  Branch (4614:7): [True: 0, False: 146]
  |  Branch (4614:18): [True: 0, False: 146]
  ------------------
 4615|    146|      !session->pending_enable_push ||
  ------------------
  |  Branch (4615:7): [True: 146, False: 0]
  ------------------
 4616|      0|      session->num_incoming_reserved_streams >=
  ------------------
  |  Branch (4616:7): [True: 0, False: 0]
  ------------------
 4617|    146|        session->max_incoming_reserved_streams) {
 4618|       |    /* Currently, client does not retain closed stream, so we don't
 4619|       |       check NGHTTP2_SHUT_RD condition here. */
 4620|    146|    rv = session_handle_invalid_stream2(session,
 4621|    146|                                        frame->push_promise.promised_stream_id,
 4622|    146|                                        NULL, NGHTTP2_ERR_PUSH_CANCEL);
 4623|    146|    if (rv != 0) {
  ------------------
  |  Branch (4623:9): [True: 0, False: 146]
  ------------------
 4624|      0|      return rv;
 4625|      0|    }
 4626|    146|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 4627|    146|  }
 4628|       |
 4629|      0|  if (stream->shut_flags & NGHTTP2_SHUT_RD) {
  ------------------
  |  Branch (4629:7): [True: 0, False: 0]
  ------------------
 4630|      0|    return session_inflate_handle_invalid_connection(
 4631|      0|      session, frame, NGHTTP2_ERR_STREAM_CLOSED, "PUSH_PROMISE: stream closed");
 4632|      0|  }
 4633|       |
 4634|      0|  promised_stream = nghttp2_session_open_stream(
 4635|      0|    session, frame->push_promise.promised_stream_id, NGHTTP2_STREAM_FLAG_NONE,
 4636|      0|    NGHTTP2_STREAM_RESERVED, NULL);
 4637|       |
 4638|      0|  if (!promised_stream) {
  ------------------
  |  Branch (4638:7): [True: 0, False: 0]
  ------------------
 4639|      0|    return NGHTTP2_ERR_NOMEM;
 4640|      0|  }
 4641|       |
 4642|      0|  session->last_proc_stream_id = session->last_recv_stream_id;
 4643|      0|  rv = session_call_on_begin_headers(session, frame);
 4644|      0|  if (rv != 0) {
  ------------------
  |  Branch (4644:7): [True: 0, False: 0]
  ------------------
 4645|      0|    return rv;
 4646|      0|  }
 4647|      0|  return 0;
 4648|      0|}
nghttp2_session_on_ping_received:
 4661|      6|                                     nghttp2_frame *frame) {
 4662|      6|  int rv = 0;
 4663|      6|  if (frame->hd.stream_id != 0) {
  ------------------
  |  Branch (4663:7): [True: 2, False: 4]
  ------------------
 4664|      2|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4665|      2|                                             "PING: stream_id != 0");
 4666|      2|  }
 4667|      4|  if ((session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_PING_ACK) == 0 &&
  ------------------
  |  Branch (4667:7): [True: 4, False: 0]
  ------------------
 4668|      4|      (frame->hd.flags & NGHTTP2_FLAG_ACK) == 0 &&
  ------------------
  |  Branch (4668:7): [True: 3, False: 1]
  ------------------
 4669|      3|      !session_is_closing(session)) {
  ------------------
  |  Branch (4669:7): [True: 3, False: 0]
  ------------------
 4670|       |    /* Peer sent ping, so ping it back */
 4671|      3|    rv = nghttp2_session_add_ping(session, NGHTTP2_FLAG_ACK,
 4672|      3|                                  frame->ping.opaque_data);
 4673|      3|    if (rv != 0) {
  ------------------
  |  Branch (4673:9): [True: 0, False: 3]
  ------------------
 4674|      0|      return rv;
 4675|      0|    }
 4676|      3|  }
 4677|      4|  return session_call_on_frame_received(session, frame);
 4678|      4|}
nghttp2_session_on_goaway_received:
 4690|     55|                                       nghttp2_frame *frame) {
 4691|     55|  int rv;
 4692|       |
 4693|     55|  if (frame->hd.stream_id != 0) {
  ------------------
  |  Branch (4693:7): [True: 3, False: 52]
  ------------------
 4694|      3|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4695|      3|                                             "GOAWAY: stream_id != 0");
 4696|      3|  }
 4697|       |  /* Spec says Endpoints MUST NOT increase the value they send in the
 4698|       |     last stream identifier. */
 4699|     52|  if ((frame->goaway.last_stream_id > 0 &&
  ------------------
  |  Branch (4699:8): [True: 41, False: 11]
  ------------------
 4700|     41|       !nghttp2_session_is_my_stream_id(session,
  ------------------
  |  Branch (4700:8): [True: 6, False: 35]
  ------------------
 4701|     41|                                        frame->goaway.last_stream_id)) ||
 4702|     46|      session->remote_last_stream_id < frame->goaway.last_stream_id) {
  ------------------
  |  Branch (4702:7): [True: 2, False: 44]
  ------------------
 4703|      8|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4704|      8|                                             "GOAWAY: invalid last_stream_id");
 4705|      8|  }
 4706|       |
 4707|     44|  session->goaway_flags |= NGHTTP2_GOAWAY_RECV;
 4708|       |
 4709|     44|  session->remote_last_stream_id = frame->goaway.last_stream_id;
 4710|       |
 4711|     44|  rv = session_call_on_frame_received(session, frame);
 4712|       |
 4713|     44|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4713:7): [True: 0, False: 44]
  ------------------
 4714|      0|    return rv;
 4715|      0|  }
 4716|       |
 4717|     44|  return session_close_stream_on_goaway(session, frame->goaway.last_stream_id,
 4718|     44|                                        0);
 4719|     44|}
nghttp2_session_on_window_update_received:
 4798|    120|                                              nghttp2_frame *frame) {
 4799|    120|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (4799:7): [True: 51, False: 69]
  ------------------
 4800|     51|    return session_on_connection_window_update_received(session, frame);
 4801|     69|  } else {
 4802|     69|    return session_on_stream_window_update_received(session, frame);
 4803|     69|  }
 4804|    120|}
nghttp2_session_update_recv_connection_window_size:
 5114|    104|                                                       size_t delta_size) {
 5115|    104|  int rv;
 5116|    104|  rv = adjust_recv_window_size(&session->recv_window_size, delta_size,
 5117|    104|                               session->local_window_size);
 5118|    104|  if (rv != 0) {
  ------------------
  |  Branch (5118:7): [True: 0, False: 104]
  ------------------
 5119|      0|    return nghttp2_session_terminate_session(session,
 5120|      0|                                             NGHTTP2_FLOW_CONTROL_ERROR);
 5121|      0|  }
 5122|    104|  if (!(session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) &&
  ------------------
  |  Branch (5122:7): [True: 0, False: 104]
  ------------------
 5123|      0|      session->window_update_queued == 0 &&
  ------------------
  |  Branch (5123:7): [True: 0, False: 0]
  ------------------
 5124|      0|      nghttp2_should_send_window_update(session->local_window_size,
  ------------------
  |  Branch (5124:7): [True: 0, False: 0]
  ------------------
 5125|      0|                                        session->recv_window_size)) {
 5126|       |    /* Use stream ID 0 to update connection-level flow control
 5127|       |       window */
 5128|      0|    rv = nghttp2_session_add_window_update(session, NGHTTP2_FLAG_NONE, 0,
 5129|      0|                                           session->recv_window_size);
 5130|      0|    if (rv != 0) {
  ------------------
  |  Branch (5130:9): [True: 0, False: 0]
  ------------------
 5131|      0|      return rv;
 5132|      0|    }
 5133|       |
 5134|      0|    session->recv_window_size = 0;
 5135|      0|  }
 5136|    104|  return 0;
 5137|    104|}
nghttp2_session_mem_recv:
 5420|  7.13k|                                 size_t inlen) {
 5421|  7.13k|  return (ssize_t)nghttp2_session_mem_recv2(session, in, inlen);
 5422|  7.13k|}
nghttp2_session_mem_recv2:
 5425|  7.13k|                                        const uint8_t *in, size_t inlen) {
 5426|  7.13k|  const uint8_t *first, *last;
 5427|  7.13k|  nghttp2_inbound_frame *iframe = &session->iframe;
 5428|  7.13k|  size_t readlen;
 5429|  7.13k|  nghttp2_ssize padlen;
 5430|  7.13k|  int rv;
 5431|  7.13k|  int busy = 0;
 5432|  7.13k|  nghttp2_frame_hd cont_hd;
 5433|  7.13k|  nghttp2_stream *stream;
 5434|  7.13k|  size_t pri_fieldlen;
 5435|  7.13k|  nghttp2_mem *mem;
 5436|       |
 5437|  7.13k|  if (in == NULL) {
  ------------------
  |  Branch (5437:7): [True: 0, False: 7.13k]
  ------------------
 5438|      0|    assert(inlen == 0);
  ------------------
  |  Branch (5438:5): [True: 0, False: 0]
  |  Branch (5438:5): [True: 0, False: 0]
  ------------------
 5439|      0|    in = static_in;
 5440|      0|  }
 5441|       |
 5442|  7.13k|  first = in;
 5443|  7.13k|  last = in + inlen;
 5444|       |
 5445|  7.13k|  DEBUGF("recv: connection recv_window_size=%d, local_window=%d\n",
  ------------------
  |  |   39|  7.13k|    do {                                                                       \
  |  |   40|  7.13k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 7.13k]
  |  |  ------------------
  ------------------
 5446|  7.13k|         session->recv_window_size, session->local_window_size);
 5447|       |
 5448|  7.13k|  mem = &session->mem;
 5449|       |
 5450|  7.13k|  if (!nghttp2_session_want_read(session)) {
  ------------------
  |  Branch (5450:7): [True: 0, False: 7.13k]
  ------------------
 5451|      0|    return (nghttp2_ssize)inlen;
 5452|      0|  }
 5453|       |
 5454|  16.7k|  for (;;) {
 5455|  16.7k|    switch (iframe->state) {
  ------------------
  |  Branch (5455:13): [True: 16.7k, False: 0]
  ------------------
 5456|      0|    case NGHTTP2_IB_READ_CLIENT_MAGIC:
  ------------------
  |  Branch (5456:5): [True: 0, False: 16.7k]
  ------------------
 5457|      0|      readlen = nghttp2_min_size(inlen, iframe->payloadleft);
 5458|       |
 5459|      0|      if (memcmp(&NGHTTP2_CLIENT_MAGIC[NGHTTP2_CLIENT_MAGIC_LEN -
  ------------------
  |  |  252|      0|#define NGHTTP2_CLIENT_MAGIC "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
  ------------------
                    if (memcmp(&NGHTTP2_CLIENT_MAGIC[NGHTTP2_CLIENT_MAGIC_LEN -
  ------------------
  |  |  259|      0|#define NGHTTP2_CLIENT_MAGIC_LEN 24
  ------------------
  |  Branch (5459:11): [True: 0, False: 0]
  ------------------
 5460|      0|                                       iframe->payloadleft],
 5461|      0|                 in, readlen) != 0) {
 5462|      0|        return NGHTTP2_ERR_BAD_CLIENT_MAGIC;
 5463|      0|      }
 5464|       |
 5465|      0|      iframe->payloadleft -= readlen;
 5466|      0|      in += readlen;
 5467|       |
 5468|      0|      if (iframe->payloadleft == 0) {
  ------------------
  |  Branch (5468:11): [True: 0, False: 0]
  ------------------
 5469|      0|        session_inbound_frame_reset(session);
 5470|      0|        iframe->state = NGHTTP2_IB_READ_FIRST_SETTINGS;
 5471|      0|      }
 5472|       |
 5473|      0|      break;
 5474|  2.42k|    case NGHTTP2_IB_READ_FIRST_SETTINGS:
  ------------------
  |  Branch (5474:5): [True: 2.42k, False: 14.2k]
  ------------------
 5475|  2.42k|      DEBUGF("recv: [IB_READ_FIRST_SETTINGS]\n");
  ------------------
  |  |   39|  2.42k|    do {                                                                       \
  |  |   40|  2.42k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.42k]
  |  |  ------------------
  ------------------
 5476|       |
 5477|  2.42k|      readlen = inbound_frame_buf_read(iframe, in, last);
 5478|  2.42k|      in += readlen;
 5479|       |
 5480|  2.42k|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|  2.42k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 246, False: 2.18k]
  |  |  ------------------
  ------------------
 5481|    246|        return (nghttp2_ssize)(in - first);
 5482|    246|      }
 5483|       |
 5484|  2.18k|      if (iframe->sbuf.pos[3] != NGHTTP2_SETTINGS ||
  ------------------
  |  Branch (5484:11): [True: 106, False: 2.07k]
  ------------------
 5485|  2.07k|          (iframe->sbuf.pos[4] & NGHTTP2_FLAG_ACK)) {
  ------------------
  |  Branch (5485:11): [True: 1, False: 2.07k]
  ------------------
 5486|    107|        rv = session_call_error_callback(
 5487|    107|          session, NGHTTP2_ERR_SETTINGS_EXPECTED,
 5488|    107|          "Remote peer returned unexpected data while we expected "
 5489|    107|          "SETTINGS frame.  Perhaps, peer does not support HTTP/2 "
 5490|    107|          "properly.");
 5491|       |
 5492|    107|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5492:13): [True: 0, False: 107]
  ------------------
 5493|      0|          return rv;
 5494|      0|        }
 5495|       |
 5496|    107|        rv = nghttp2_session_terminate_session_with_reason(
 5497|    107|          session, NGHTTP2_PROTOCOL_ERROR, "SETTINGS expected");
 5498|       |
 5499|    107|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5499:13): [True: 0, False: 107]
  ------------------
 5500|      0|          return rv;
 5501|      0|        }
 5502|       |
 5503|    107|        return (nghttp2_ssize)inlen;
 5504|    107|      }
 5505|       |
 5506|  2.07k|      iframe->state = NGHTTP2_IB_READ_HEAD;
 5507|       |
 5508|       |    /* Fall through */
 5509|  5.37k|    case NGHTTP2_IB_READ_HEAD: {
  ------------------
  |  Branch (5509:5): [True: 3.29k, False: 13.4k]
  ------------------
 5510|  5.37k|      int on_begin_frame_called = 0;
 5511|       |
 5512|  5.37k|      DEBUGF("recv: [IB_READ_HEAD]\n");
  ------------------
  |  |   39|  5.37k|    do {                                                                       \
  |  |   40|  5.37k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 5.37k]
  |  |  ------------------
  ------------------
 5513|       |
 5514|  5.37k|      readlen = inbound_frame_buf_read(iframe, in, last);
 5515|  5.37k|      in += readlen;
 5516|       |
 5517|  5.37k|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|  5.37k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 901, False: 4.47k]
  |  |  ------------------
  ------------------
 5518|    901|        return (nghttp2_ssize)(in - first);
 5519|    901|      }
 5520|       |
 5521|  4.47k|      nghttp2_frame_unpack_frame_hd(&iframe->frame.hd, iframe->sbuf.pos);
 5522|  4.47k|      iframe->payloadleft = iframe->frame.hd.length;
 5523|       |
 5524|  4.47k|      DEBUGF("recv: payloadlen=%zu, type=%u, flags=0x%02x, stream_id=%d\n",
  ------------------
  |  |   39|  4.47k|    do {                                                                       \
  |  |   40|  4.47k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.47k]
  |  |  ------------------
  ------------------
 5525|  4.47k|             iframe->frame.hd.length, iframe->frame.hd.type,
 5526|  4.47k|             iframe->frame.hd.flags, iframe->frame.hd.stream_id);
 5527|       |
 5528|  4.47k|      if (iframe->frame.hd.length > session->local_settings.max_frame_size) {
  ------------------
  |  Branch (5528:11): [True: 143, False: 4.32k]
  ------------------
 5529|    143|        DEBUGF("recv: length is too large %zu > %u\n", iframe->frame.hd.length,
  ------------------
  |  |   39|    143|    do {                                                                       \
  |  |   40|    143|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 143]
  |  |  ------------------
  ------------------
 5530|    143|               session->local_settings.max_frame_size);
 5531|       |
 5532|    143|        rv = nghttp2_session_terminate_session_with_reason(
 5533|    143|          session, NGHTTP2_FRAME_SIZE_ERROR, "too large frame size");
 5534|       |
 5535|    143|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5535:13): [True: 0, False: 143]
  ------------------
 5536|      0|          return rv;
 5537|      0|        }
 5538|       |
 5539|    143|        return (nghttp2_ssize)inlen;
 5540|    143|      }
 5541|       |
 5542|  4.32k|      switch (iframe->frame.hd.type) {
 5543|    112|      case NGHTTP2_DATA: {
  ------------------
  |  Branch (5543:7): [True: 112, False: 4.21k]
  ------------------
 5544|    112|        DEBUGF("recv: DATA\n");
  ------------------
  |  |   39|    112|    do {                                                                       \
  |  |   40|    112|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 112]
  |  |  ------------------
  ------------------
 5545|       |
 5546|    112|        iframe->frame.hd.flags &=
 5547|    112|          (NGHTTP2_FLAG_END_STREAM | NGHTTP2_FLAG_PADDED);
 5548|       |        /* Check stream is open. If it is not open or closing,
 5549|       |           ignore payload. */
 5550|    112|        busy = 1;
 5551|       |
 5552|    112|        rv = session_on_data_received_fail_fast(session);
 5553|    112|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5553:13): [True: 0, False: 112]
  ------------------
 5554|      0|          return rv;
 5555|      0|        }
 5556|       |
 5557|    112|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5557:13): [True: 54, False: 58]
  ------------------
 5558|     54|          return (nghttp2_ssize)inlen;
 5559|     54|        }
 5560|     58|        if (rv == NGHTTP2_ERR_IGN_PAYLOAD) {
  ------------------
  |  Branch (5560:13): [True: 58, False: 0]
  ------------------
 5561|     58|          DEBUGF("recv: DATA not allowed stream_id=%d\n",
  ------------------
  |  |   39|     58|    do {                                                                       \
  |  |   40|     58|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 58]
  |  |  ------------------
  ------------------
 5562|     58|                 iframe->frame.hd.stream_id);
 5563|       |
 5564|     58|          iframe->state = NGHTTP2_IB_IGN_DATA;
 5565|     58|          break;
 5566|     58|        }
 5567|       |
 5568|      0|        rv = inbound_frame_handle_pad(iframe, &iframe->frame.hd);
 5569|      0|        if (rv < 0) {
  ------------------
  |  Branch (5569:13): [True: 0, False: 0]
  ------------------
 5570|      0|          rv = nghttp2_session_terminate_session_with_reason(
 5571|      0|            session, NGHTTP2_PROTOCOL_ERROR,
 5572|      0|            "DATA: insufficient padding space");
 5573|       |
 5574|      0|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5574:15): [True: 0, False: 0]
  ------------------
 5575|      0|            return rv;
 5576|      0|          }
 5577|      0|          return (nghttp2_ssize)inlen;
 5578|      0|        }
 5579|       |
 5580|      0|        if (rv == 1) {
  ------------------
  |  Branch (5580:13): [True: 0, False: 0]
  ------------------
 5581|      0|          iframe->state = NGHTTP2_IB_READ_PAD_DATA;
 5582|      0|          break;
 5583|      0|        }
 5584|       |
 5585|       |        /* Empty DATA frame without END_STREAM flag set is
 5586|       |           suspicious. */
 5587|      0|        if (iframe->payloadleft == 0 &&
  ------------------
  |  Branch (5587:13): [True: 0, False: 0]
  ------------------
 5588|      0|            (iframe->frame.hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
  ------------------
  |  Branch (5588:13): [True: 0, False: 0]
  ------------------
 5589|      0|          rv = session_update_glitch_ratelim(session);
 5590|      0|          if (rv != 0) {
  ------------------
  |  Branch (5590:15): [True: 0, False: 0]
  ------------------
 5591|      0|            return rv;
 5592|      0|          }
 5593|       |
 5594|      0|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5594:15): [True: 0, False: 0]
  ------------------
 5595|      0|            return (nghttp2_ssize)inlen;
 5596|      0|          }
 5597|      0|        }
 5598|       |
 5599|      0|        iframe->state = NGHTTP2_IB_READ_DATA;
 5600|      0|        break;
 5601|      0|      }
 5602|  1.34k|      case NGHTTP2_HEADERS:
  ------------------
  |  Branch (5602:7): [True: 1.34k, False: 2.97k]
  ------------------
 5603|       |
 5604|  1.34k|        DEBUGF("recv: HEADERS\n");
  ------------------
  |  |   39|  1.34k|    do {                                                                       \
  |  |   40|  1.34k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.34k]
  |  |  ------------------
  ------------------
 5605|       |
 5606|  1.34k|        iframe->frame.hd.flags &=
 5607|  1.34k|          (NGHTTP2_FLAG_END_STREAM | NGHTTP2_FLAG_END_HEADERS |
 5608|  1.34k|           NGHTTP2_FLAG_PADDED | NGHTTP2_FLAG_PRIORITY);
 5609|       |
 5610|  1.34k|        rv = inbound_frame_handle_pad(iframe, &iframe->frame.hd);
 5611|  1.34k|        if (rv < 0) {
  ------------------
  |  Branch (5611:13): [True: 1, False: 1.34k]
  ------------------
 5612|      1|          rv = nghttp2_session_terminate_session_with_reason(
 5613|      1|            session, NGHTTP2_PROTOCOL_ERROR,
 5614|      1|            "HEADERS: insufficient padding space");
 5615|      1|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5615:15): [True: 0, False: 1]
  ------------------
 5616|      0|            return rv;
 5617|      0|          }
 5618|      1|          return (nghttp2_ssize)inlen;
 5619|      1|        }
 5620|       |
 5621|  1.34k|        if (rv == 1) {
  ------------------
  |  Branch (5621:13): [True: 65, False: 1.28k]
  ------------------
 5622|     65|          iframe->state = NGHTTP2_IB_READ_NBYTE;
 5623|     65|          break;
 5624|     65|        }
 5625|       |
 5626|  1.28k|        pri_fieldlen = nghttp2_frame_priority_len(iframe->frame.hd.flags);
 5627|       |
 5628|  1.28k|        if (pri_fieldlen > 0) {
  ------------------
  |  Branch (5628:13): [True: 779, False: 504]
  ------------------
 5629|    779|          if (iframe->payloadleft < pri_fieldlen) {
  ------------------
  |  Branch (5629:15): [True: 1, False: 778]
  ------------------
 5630|      1|            busy = 1;
 5631|      1|            iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5632|      1|            break;
 5633|      1|          }
 5634|       |
 5635|    778|          iframe->state = NGHTTP2_IB_READ_NBYTE;
 5636|       |
 5637|    778|          inbound_frame_set_mark(iframe, pri_fieldlen);
 5638|       |
 5639|    778|          break;
 5640|    779|        }
 5641|       |
 5642|       |        /* Call on_begin_frame_callback here because
 5643|       |           session_process_headers_frame() may call
 5644|       |           on_begin_headers_callback */
 5645|    504|        rv = session_call_on_begin_frame(session, &iframe->frame.hd);
 5646|       |
 5647|    504|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5647:13): [True: 0, False: 504]
  ------------------
 5648|      0|          return rv;
 5649|      0|        }
 5650|       |
 5651|    504|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5651:13): [True: 0, False: 504]
  ------------------
 5652|      0|          return (nghttp2_ssize)inlen;
 5653|      0|        }
 5654|       |
 5655|    504|        on_begin_frame_called = 1;
 5656|       |
 5657|    504|        rv = session_process_headers_frame(session);
 5658|    504|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5658:13): [True: 15, False: 489]
  ------------------
 5659|     15|          return rv;
 5660|     15|        }
 5661|       |
 5662|    489|        busy = 1;
 5663|       |
 5664|    489|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5664:13): [True: 1, False: 488]
  ------------------
 5665|      1|          return (nghttp2_ssize)inlen;
 5666|      1|        }
 5667|       |
 5668|    488|        if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (5668:13): [True: 0, False: 488]
  ------------------
 5669|      0|          rv = session_handle_invalid_stream2(
 5670|      0|            session, iframe->frame.hd.stream_id, NULL, NGHTTP2_ERR_INTERNAL);
 5671|      0|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5671:15): [True: 0, False: 0]
  ------------------
 5672|      0|            return rv;
 5673|      0|          }
 5674|      0|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 5675|      0|          break;
 5676|      0|        }
 5677|       |
 5678|    488|        if (rv == NGHTTP2_ERR_IGN_HEADER_BLOCK) {
  ------------------
  |  Branch (5678:13): [True: 4, False: 484]
  ------------------
 5679|      4|          rv = session_update_glitch_ratelim(session);
 5680|      4|          if (rv != 0) {
  ------------------
  |  Branch (5680:15): [True: 0, False: 4]
  ------------------
 5681|      0|            return rv;
 5682|      0|          }
 5683|       |
 5684|      4|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5684:15): [True: 0, False: 4]
  ------------------
 5685|      0|            return (nghttp2_ssize)inlen;
 5686|      0|          }
 5687|       |
 5688|      4|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 5689|      4|          break;
 5690|      4|        }
 5691|       |
 5692|    484|        iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
 5693|       |
 5694|    484|        break;
 5695|      2|      case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (5695:7): [True: 2, False: 4.32k]
  ------------------
 5696|      2|        DEBUGF("recv: PRIORITY\n");
  ------------------
  |  |   39|      2|    do {                                                                       \
  |  |   40|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2]
  |  |  ------------------
  ------------------
 5697|       |
 5698|      2|        iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 5699|       |
 5700|      2|        if (iframe->payloadleft != NGHTTP2_PRIORITY_SPECLEN) {
  ------------------
  |  |   64|      2|#define NGHTTP2_PRIORITY_SPECLEN 5
  ------------------
  |  Branch (5700:13): [True: 1, False: 1]
  ------------------
 5701|      1|          busy = 1;
 5702|       |
 5703|      1|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5704|       |
 5705|      1|          break;
 5706|      1|        }
 5707|       |
 5708|       |        /* This is deprecated RFC 7540 priorities mechanism which is
 5709|       |           very unpopular.  We do not expect it is received so
 5710|       |           frequently. */
 5711|      1|        rv = session_update_glitch_ratelim(session);
 5712|      1|        if (rv != 0) {
  ------------------
  |  Branch (5712:13): [True: 0, False: 1]
  ------------------
 5713|      0|          return rv;
 5714|      0|        }
 5715|       |
 5716|      1|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5716:13): [True: 0, False: 1]
  ------------------
 5717|      0|          return (nghttp2_ssize)inlen;
 5718|      0|        }
 5719|       |
 5720|      1|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5721|       |
 5722|      1|        inbound_frame_set_mark(iframe, NGHTTP2_PRIORITY_SPECLEN);
  ------------------
  |  |   64|      1|#define NGHTTP2_PRIORITY_SPECLEN 5
  ------------------
 5723|       |
 5724|      1|        break;
 5725|     24|      case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (5725:7): [True: 24, False: 4.30k]
  ------------------
 5726|    145|      case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (5726:7): [True: 121, False: 4.20k]
  ------------------
 5727|       |#ifdef DEBUGBUILD
 5728|       |        switch (iframe->frame.hd.type) {
 5729|       |        case NGHTTP2_RST_STREAM:
 5730|       |          DEBUGF("recv: RST_STREAM\n");
 5731|       |          break;
 5732|       |        case NGHTTP2_WINDOW_UPDATE:
 5733|       |          DEBUGF("recv: WINDOW_UPDATE\n");
 5734|       |          break;
 5735|       |        }
 5736|       |#endif /* defined(DEBUGBUILD) */
 5737|       |
 5738|    145|        iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 5739|       |
 5740|    145|        if (iframe->payloadleft != 4) {
  ------------------
  |  Branch (5740:13): [True: 4, False: 141]
  ------------------
 5741|      4|          busy = 1;
 5742|      4|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5743|      4|          break;
 5744|      4|        }
 5745|       |
 5746|    141|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5747|       |
 5748|    141|        inbound_frame_set_mark(iframe, 4);
 5749|       |
 5750|    141|        break;
 5751|  2.31k|      case NGHTTP2_SETTINGS:
  ------------------
  |  Branch (5751:7): [True: 2.31k, False: 2.00k]
  ------------------
 5752|  2.31k|        DEBUGF("recv: SETTINGS\n");
  ------------------
  |  |   39|  2.31k|    do {                                                                       \
  |  |   40|  2.31k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.31k]
  |  |  ------------------
  ------------------
 5753|       |
 5754|  2.31k|        iframe->frame.hd.flags &= NGHTTP2_FLAG_ACK;
 5755|       |
 5756|  2.31k|        if ((iframe->frame.hd.length % NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH) ||
  ------------------
  |  |   61|  2.31k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (5756:13): [True: 2, False: 2.31k]
  ------------------
 5757|  2.31k|            ((iframe->frame.hd.flags & NGHTTP2_FLAG_ACK) &&
  ------------------
  |  Branch (5757:14): [True: 10, False: 2.30k]
  ------------------
 5758|     10|             iframe->payloadleft > 0)) {
  ------------------
  |  Branch (5758:14): [True: 3, False: 7]
  ------------------
 5759|      5|          busy = 1;
 5760|      5|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5761|      5|          break;
 5762|      5|        }
 5763|       |
 5764|       |        /* Check the settings flood counter early to be safe */
 5765|  2.31k|        if (session->obq_flood_counter_ >= session->max_outbound_ack &&
  ------------------
  |  Branch (5765:13): [True: 0, False: 2.31k]
  ------------------
 5766|      0|            !(iframe->frame.hd.flags & NGHTTP2_FLAG_ACK)) {
  ------------------
  |  Branch (5766:13): [True: 0, False: 0]
  ------------------
 5767|      0|          return NGHTTP2_ERR_FLOODED;
 5768|      0|        }
 5769|       |
 5770|  2.31k|        iframe->state = NGHTTP2_IB_READ_SETTINGS;
 5771|       |
 5772|  2.31k|        if (iframe->payloadleft) {
  ------------------
  |  Branch (5772:13): [True: 474, False: 1.84k]
  ------------------
 5773|    474|          nghttp2_settings_entry *min_header_table_size_entry;
 5774|       |
 5775|       |          /* We allocate iv with additional one entry, to store the
 5776|       |             minimum header table size. */
 5777|    474|          iframe->max_niv =
 5778|    474|            iframe->frame.hd.length / NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH + 1;
  ------------------
  |  |   61|    474|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
 5779|       |
 5780|    474|          if (iframe->max_niv - 1 > session->max_settings) {
  ------------------
  |  Branch (5780:15): [True: 1, False: 473]
  ------------------
 5781|      1|            rv = nghttp2_session_terminate_session_with_reason(
 5782|      1|              session, NGHTTP2_ENHANCE_YOUR_CALM,
 5783|      1|              "SETTINGS: too many setting entries");
 5784|      1|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5784:17): [True: 0, False: 1]
  ------------------
 5785|      0|              return rv;
 5786|      0|            }
 5787|      1|            return (nghttp2_ssize)inlen;
 5788|      1|          }
 5789|       |
 5790|    473|          iframe->iv = nghttp2_mem_malloc(mem, sizeof(nghttp2_settings_entry) *
 5791|    473|                                                 iframe->max_niv);
 5792|       |
 5793|    473|          if (!iframe->iv) {
  ------------------
  |  Branch (5793:15): [True: 0, False: 473]
  ------------------
 5794|      0|            return NGHTTP2_ERR_NOMEM;
 5795|      0|          }
 5796|       |
 5797|    473|          min_header_table_size_entry = &iframe->iv[iframe->max_niv - 1];
 5798|    473|          min_header_table_size_entry->settings_id =
 5799|    473|            NGHTTP2_SETTINGS_HEADER_TABLE_SIZE;
 5800|    473|          min_header_table_size_entry->value = UINT32_MAX;
 5801|       |
 5802|    473|          inbound_frame_set_mark(iframe, NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH);
  ------------------
  |  |   61|    473|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
 5803|    473|          break;
 5804|    473|        }
 5805|       |
 5806|  1.84k|        busy = 1;
 5807|       |
 5808|  1.84k|        inbound_frame_set_mark(iframe, 0);
 5809|       |
 5810|  1.84k|        break;
 5811|    178|      case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (5811:7): [True: 178, False: 4.15k]
  ------------------
 5812|    178|        DEBUGF("recv: PUSH_PROMISE\n");
  ------------------
  |  |   39|    178|    do {                                                                       \
  |  |   40|    178|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 178]
  |  |  ------------------
  ------------------
 5813|       |
 5814|    178|        iframe->frame.hd.flags &=
 5815|    178|          (NGHTTP2_FLAG_END_HEADERS | NGHTTP2_FLAG_PADDED);
 5816|       |
 5817|    178|        rv = inbound_frame_handle_pad(iframe, &iframe->frame.hd);
 5818|    178|        if (rv < 0) {
  ------------------
  |  Branch (5818:13): [True: 1, False: 177]
  ------------------
 5819|      1|          rv = nghttp2_session_terminate_session_with_reason(
 5820|      1|            session, NGHTTP2_PROTOCOL_ERROR,
 5821|      1|            "PUSH_PROMISE: insufficient padding space");
 5822|      1|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5822:15): [True: 0, False: 1]
  ------------------
 5823|      0|            return rv;
 5824|      0|          }
 5825|      1|          return (nghttp2_ssize)inlen;
 5826|      1|        }
 5827|       |
 5828|    177|        if (rv == 1) {
  ------------------
  |  Branch (5828:13): [True: 19, False: 158]
  ------------------
 5829|     19|          iframe->state = NGHTTP2_IB_READ_NBYTE;
 5830|     19|          break;
 5831|     19|        }
 5832|       |
 5833|    158|        if (iframe->payloadleft < 4) {
  ------------------
  |  Branch (5833:13): [True: 1, False: 157]
  ------------------
 5834|      1|          busy = 1;
 5835|      1|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5836|      1|          break;
 5837|      1|        }
 5838|       |
 5839|    157|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5840|       |
 5841|    157|        inbound_frame_set_mark(iframe, 4);
 5842|       |
 5843|    157|        break;
 5844|      8|      case NGHTTP2_PING:
  ------------------
  |  Branch (5844:7): [True: 8, False: 4.32k]
  ------------------
 5845|      8|        DEBUGF("recv: PING\n");
  ------------------
  |  |   39|      8|    do {                                                                       \
  |  |   40|      8|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 8]
  |  |  ------------------
  ------------------
 5846|       |
 5847|      8|        iframe->frame.hd.flags &= NGHTTP2_FLAG_ACK;
 5848|       |
 5849|      8|        if (iframe->payloadleft != 8) {
  ------------------
  |  Branch (5849:13): [True: 2, False: 6]
  ------------------
 5850|      2|          busy = 1;
 5851|      2|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5852|      2|          break;
 5853|      2|        }
 5854|       |
 5855|      6|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5856|      6|        inbound_frame_set_mark(iframe, 8);
 5857|       |
 5858|      6|        break;
 5859|     72|      case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (5859:7): [True: 72, False: 4.25k]
  ------------------
 5860|     72|        DEBUGF("recv: GOAWAY\n");
  ------------------
  |  |   39|     72|    do {                                                                       \
  |  |   40|     72|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 72]
  |  |  ------------------
  ------------------
 5861|       |
 5862|     72|        iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 5863|       |
 5864|     72|        if (iframe->payloadleft < 8) {
  ------------------
  |  Branch (5864:13): [True: 2, False: 70]
  ------------------
 5865|      2|          busy = 1;
 5866|      2|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5867|      2|          break;
 5868|      2|        }
 5869|       |
 5870|     70|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5871|     70|        inbound_frame_set_mark(iframe, 8);
 5872|       |
 5873|     70|        break;
 5874|      1|      case NGHTTP2_CONTINUATION:
  ------------------
  |  Branch (5874:7): [True: 1, False: 4.32k]
  ------------------
 5875|      1|        DEBUGF("recv: unexpected CONTINUATION\n");
  ------------------
  |  |   39|      1|    do {                                                                       \
  |  |   40|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
 5876|       |
 5877|       |        /* Receiving CONTINUATION in this state are subject to
 5878|       |           connection error of type PROTOCOL_ERROR */
 5879|      1|        rv = nghttp2_session_terminate_session_with_reason(
 5880|      1|          session, NGHTTP2_PROTOCOL_ERROR, "CONTINUATION: unexpected");
 5881|      1|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5881:13): [True: 0, False: 1]
  ------------------
 5882|      0|          return rv;
 5883|      0|        }
 5884|       |
 5885|      1|        return (nghttp2_ssize)inlen;
 5886|    142|      default:
  ------------------
  |  Branch (5886:7): [True: 142, False: 4.18k]
  ------------------
 5887|    142|        DEBUGF("recv: extension frame\n");
  ------------------
  |  |   39|    142|    do {                                                                       \
  |  |   40|    142|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 142]
  |  |  ------------------
  ------------------
 5888|       |
 5889|    142|        if (check_ext_type_set(session->user_recv_ext_types,
  ------------------
  |  Branch (5889:13): [True: 0, False: 142]
  ------------------
 5890|    142|                               iframe->frame.hd.type)) {
 5891|      0|          if (!session->callbacks.unpack_extension_callback) {
  ------------------
  |  Branch (5891:15): [True: 0, False: 0]
  ------------------
 5892|       |            /* Receiving too frequent unknown frames is suspicious. */
 5893|      0|            rv = session_update_glitch_ratelim(session);
 5894|      0|            if (rv != 0) {
  ------------------
  |  Branch (5894:17): [True: 0, False: 0]
  ------------------
 5895|      0|              return rv;
 5896|      0|            }
 5897|       |
 5898|      0|            if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5898:17): [True: 0, False: 0]
  ------------------
 5899|      0|              return (nghttp2_ssize)inlen;
 5900|      0|            }
 5901|       |
 5902|       |            /* Silently ignore unknown frame type. */
 5903|      0|            busy = 1;
 5904|       |
 5905|      0|            iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 5906|       |
 5907|      0|            break;
 5908|      0|          }
 5909|       |
 5910|      0|          busy = 1;
 5911|       |
 5912|      0|          iframe->state = NGHTTP2_IB_READ_EXTENSION_PAYLOAD;
 5913|       |
 5914|      0|          break;
 5915|    142|        } else {
 5916|    142|          switch (iframe->frame.hd.type) {
 5917|     10|          case NGHTTP2_ALTSVC:
  ------------------
  |  Branch (5917:11): [True: 10, False: 132]
  ------------------
 5918|     10|            if ((session->builtin_recv_ext_types & NGHTTP2_TYPEMASK_ALTSVC) ==
  ------------------
  |  Branch (5918:17): [True: 10, False: 0]
  ------------------
 5919|     10|                0) {
 5920|       |              /* Receiving too frequent unknown frames is suspicious. */
 5921|     10|              rv = session_update_glitch_ratelim(session);
 5922|     10|              if (rv != 0) {
  ------------------
  |  Branch (5922:19): [True: 0, False: 10]
  ------------------
 5923|      0|                return rv;
 5924|      0|              }
 5925|       |
 5926|     10|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5926:19): [True: 0, False: 10]
  ------------------
 5927|      0|                return (nghttp2_ssize)inlen;
 5928|      0|              }
 5929|       |
 5930|     10|              busy = 1;
 5931|     10|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 5932|     10|              break;
 5933|     10|            }
 5934|       |
 5935|      0|            DEBUGF("recv: ALTSVC\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 5936|       |
 5937|      0|            iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 5938|      0|            iframe->frame.ext.payload = &iframe->ext_frame_payload.altsvc;
 5939|       |
 5940|      0|            if (session->server) {
  ------------------
  |  Branch (5940:17): [True: 0, False: 0]
  ------------------
 5941|       |              /* Receiving too frequent ALTSVC from client is
 5942|       |                 suspicious. */
 5943|      0|              rv = session_update_glitch_ratelim(session);
 5944|      0|              if (rv != 0) {
  ------------------
  |  Branch (5944:19): [True: 0, False: 0]
  ------------------
 5945|      0|                return rv;
 5946|      0|              }
 5947|       |
 5948|      0|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5948:19): [True: 0, False: 0]
  ------------------
 5949|      0|                return (nghttp2_ssize)inlen;
 5950|      0|              }
 5951|       |
 5952|      0|              busy = 1;
 5953|      0|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 5954|      0|              break;
 5955|      0|            }
 5956|       |
 5957|      0|            if (iframe->payloadleft < 2) {
  ------------------
  |  Branch (5957:17): [True: 0, False: 0]
  ------------------
 5958|      0|              busy = 1;
 5959|      0|              iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5960|      0|              break;
 5961|      0|            }
 5962|       |
 5963|      0|            busy = 1;
 5964|       |
 5965|      0|            iframe->state = NGHTTP2_IB_READ_NBYTE;
 5966|      0|            inbound_frame_set_mark(iframe, 2);
 5967|       |
 5968|      0|            break;
 5969|      4|          case NGHTTP2_ORIGIN:
  ------------------
  |  Branch (5969:11): [True: 4, False: 138]
  ------------------
 5970|      4|            if (!(session->builtin_recv_ext_types & NGHTTP2_TYPEMASK_ORIGIN)) {
  ------------------
  |  Branch (5970:17): [True: 4, False: 0]
  ------------------
 5971|       |              /* Receiving too frequent unknown frames is suspicious. */
 5972|      4|              rv = session_update_glitch_ratelim(session);
 5973|      4|              if (rv != 0) {
  ------------------
  |  Branch (5973:19): [True: 0, False: 4]
  ------------------
 5974|      0|                return rv;
 5975|      0|              }
 5976|       |
 5977|      4|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5977:19): [True: 0, False: 4]
  ------------------
 5978|      0|                return (nghttp2_ssize)inlen;
 5979|      0|              }
 5980|       |
 5981|      4|              busy = 1;
 5982|      4|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 5983|      4|              break;
 5984|      4|            }
 5985|       |
 5986|      0|            DEBUGF("recv: ORIGIN\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 5987|       |
 5988|      0|            iframe->frame.ext.payload = &iframe->ext_frame_payload.origin;
 5989|       |
 5990|      0|            if (session->server || iframe->frame.hd.stream_id ||
  ------------------
  |  Branch (5990:17): [True: 0, False: 0]
  |  Branch (5990:36): [True: 0, False: 0]
  ------------------
 5991|      0|                (iframe->frame.hd.flags & 0xf0)) {
  ------------------
  |  Branch (5991:17): [True: 0, False: 0]
  ------------------
 5992|       |              /* Receiving too frequent invalid frames is
 5993|       |                 suspicious. */
 5994|      0|              rv = session_update_glitch_ratelim(session);
 5995|      0|              if (rv != 0) {
  ------------------
  |  Branch (5995:19): [True: 0, False: 0]
  ------------------
 5996|      0|                return rv;
 5997|      0|              }
 5998|       |
 5999|      0|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5999:19): [True: 0, False: 0]
  ------------------
 6000|      0|                return (nghttp2_ssize)inlen;
 6001|      0|              }
 6002|       |
 6003|      0|              busy = 1;
 6004|      0|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 6005|      0|              break;
 6006|      0|            }
 6007|       |
 6008|      0|            iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 6009|       |
 6010|      0|            if (iframe->payloadleft) {
  ------------------
  |  Branch (6010:17): [True: 0, False: 0]
  ------------------
 6011|      0|              iframe->raw_lbuf = nghttp2_mem_malloc(mem, iframe->payloadleft);
 6012|       |
 6013|      0|              if (iframe->raw_lbuf == NULL) {
  ------------------
  |  Branch (6013:19): [True: 0, False: 0]
  ------------------
 6014|      0|                return NGHTTP2_ERR_NOMEM;
 6015|      0|              }
 6016|       |
 6017|      0|              nghttp2_buf_wrap_init(&iframe->lbuf, iframe->raw_lbuf,
 6018|      0|                                    iframe->payloadleft);
 6019|      0|            } else {
 6020|      0|              busy = 1;
 6021|      0|            }
 6022|       |
 6023|      0|            iframe->state = NGHTTP2_IB_READ_ORIGIN_PAYLOAD;
 6024|       |
 6025|      0|            break;
 6026|      9|          case NGHTTP2_PRIORITY_UPDATE:
  ------------------
  |  Branch (6026:11): [True: 9, False: 133]
  ------------------
 6027|      9|            if ((session->builtin_recv_ext_types &
  ------------------
  |  Branch (6027:17): [True: 9, False: 0]
  ------------------
 6028|      9|                 NGHTTP2_TYPEMASK_PRIORITY_UPDATE) == 0) {
 6029|       |              /* Receiving too frequent unknown frames is suspicious. */
 6030|      9|              rv = session_update_glitch_ratelim(session);
 6031|      9|              if (rv != 0) {
  ------------------
  |  Branch (6031:19): [True: 0, False: 9]
  ------------------
 6032|      0|                return rv;
 6033|      0|              }
 6034|       |
 6035|      9|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6035:19): [True: 0, False: 9]
  ------------------
 6036|      0|                return (nghttp2_ssize)inlen;
 6037|      0|              }
 6038|       |
 6039|      9|              busy = 1;
 6040|      9|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 6041|      9|              break;
 6042|      9|            }
 6043|       |
 6044|      0|            DEBUGF("recv: PRIORITY_UPDATE\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6045|       |
 6046|      0|            iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 6047|      0|            iframe->frame.ext.payload =
 6048|      0|              &iframe->ext_frame_payload.priority_update;
 6049|       |
 6050|      0|            if (!session->server) {
  ------------------
  |  Branch (6050:17): [True: 0, False: 0]
  ------------------
 6051|      0|              rv = nghttp2_session_terminate_session_with_reason(
 6052|      0|                session, NGHTTP2_PROTOCOL_ERROR,
 6053|      0|                "PRIORITY_UPDATE is received from server");
 6054|      0|              if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6054:19): [True: 0, False: 0]
  ------------------
 6055|      0|                return rv;
 6056|      0|              }
 6057|      0|              return (nghttp2_ssize)inlen;
 6058|      0|            }
 6059|       |
 6060|      0|            if (iframe->payloadleft < 4) {
  ------------------
  |  Branch (6060:17): [True: 0, False: 0]
  ------------------
 6061|      0|              busy = 1;
 6062|      0|              iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 6063|      0|              break;
 6064|      0|            }
 6065|       |
 6066|       |            /* Receiving too frequent PRIORITY_UPDATE is
 6067|       |               suspicious. */
 6068|      0|            rv = session_update_glitch_ratelim(session);
 6069|      0|            if (rv != 0) {
  ------------------
  |  Branch (6069:17): [True: 0, False: 0]
  ------------------
 6070|      0|              return rv;
 6071|      0|            }
 6072|       |
 6073|      0|            if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6073:17): [True: 0, False: 0]
  ------------------
 6074|      0|              return (nghttp2_ssize)inlen;
 6075|      0|            }
 6076|       |
 6077|      0|            if (iframe->payloadleft > sizeof(iframe->raw_sbuf)) {
  ------------------
  |  Branch (6077:17): [True: 0, False: 0]
  ------------------
 6078|      0|              busy = 1;
 6079|      0|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 6080|      0|              break;
 6081|      0|            }
 6082|       |
 6083|      0|            busy = 1;
 6084|       |
 6085|      0|            iframe->state = NGHTTP2_IB_READ_NBYTE;
 6086|      0|            inbound_frame_set_mark(iframe, iframe->payloadleft);
 6087|       |
 6088|      0|            break;
 6089|    119|          default:
  ------------------
  |  Branch (6089:11): [True: 119, False: 23]
  ------------------
 6090|       |            /* Receiving too frequent unknown frames is suspicious. */
 6091|    119|            rv = session_update_glitch_ratelim(session);
 6092|    119|            if (rv != 0) {
  ------------------
  |  Branch (6092:17): [True: 0, False: 119]
  ------------------
 6093|      0|              return rv;
 6094|      0|            }
 6095|       |
 6096|    119|            if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6096:17): [True: 0, False: 119]
  ------------------
 6097|      0|              return (nghttp2_ssize)inlen;
 6098|      0|            }
 6099|       |
 6100|    119|            busy = 1;
 6101|       |
 6102|    119|            iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 6103|       |
 6104|    119|            break;
 6105|    142|          }
 6106|    142|        }
 6107|  4.32k|      }
 6108|       |
 6109|  4.25k|      if (!on_begin_frame_called) {
  ------------------
  |  Branch (6109:11): [True: 3.76k, False: 488]
  ------------------
 6110|  3.76k|        switch (iframe->state) {
 6111|      0|        case NGHTTP2_IB_IGN_HEADER_BLOCK:
  ------------------
  |  Branch (6111:9): [True: 0, False: 3.76k]
  ------------------
 6112|    142|        case NGHTTP2_IB_IGN_PAYLOAD:
  ------------------
  |  Branch (6112:9): [True: 142, False: 3.62k]
  ------------------
 6113|    158|        case NGHTTP2_IB_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (6113:9): [True: 16, False: 3.75k]
  ------------------
 6114|    216|        case NGHTTP2_IB_IGN_DATA:
  ------------------
  |  Branch (6114:9): [True: 58, False: 3.70k]
  ------------------
 6115|    216|        case NGHTTP2_IB_IGN_ALL:
  ------------------
  |  Branch (6115:9): [True: 0, False: 3.76k]
  ------------------
 6116|    216|          break;
 6117|  3.55k|        default:
  ------------------
  |  Branch (6117:9): [True: 3.55k, False: 216]
  ------------------
 6118|  3.55k|          rv = session_call_on_begin_frame(session, &iframe->frame.hd);
 6119|       |
 6120|  3.55k|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6120:15): [True: 0, False: 3.55k]
  ------------------
 6121|      0|            return rv;
 6122|      0|          }
 6123|       |
 6124|  3.55k|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6124:15): [True: 0, False: 3.55k]
  ------------------
 6125|      0|            return (nghttp2_ssize)inlen;
 6126|      0|          }
 6127|  3.76k|        }
 6128|  3.76k|      }
 6129|       |
 6130|  4.25k|      break;
 6131|  4.25k|    }
 6132|  4.25k|    case NGHTTP2_IB_READ_NBYTE:
  ------------------
  |  Branch (6132:5): [True: 1.51k, False: 15.2k]
  ------------------
 6133|  1.51k|      DEBUGF("recv: [IB_READ_NBYTE]\n");
  ------------------
  |  |   39|  1.51k|    do {                                                                       \
  |  |   40|  1.51k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.51k]
  |  |  ------------------
  ------------------
 6134|       |
 6135|  1.51k|      readlen = inbound_frame_buf_read(iframe, in, last);
 6136|  1.51k|      in += readlen;
 6137|  1.51k|      iframe->payloadleft -= readlen;
 6138|       |
 6139|  1.51k|      DEBUGF("recv: readlen=%zu, payloadleft=%zu, left=%zu\n", readlen,
  ------------------
  |  |   39|  1.51k|    do {                                                                       \
  |  |   40|  1.51k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.51k]
  |  |  ------------------
  ------------------
 6140|  1.51k|             iframe->payloadleft, nghttp2_buf_mark_avail(&iframe->sbuf));
 6141|       |
 6142|  1.51k|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|  1.51k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 235, False: 1.27k]
  |  |  ------------------
  ------------------
 6143|    235|        return (nghttp2_ssize)(in - first);
 6144|    235|      }
 6145|       |
 6146|  1.27k|      switch (iframe->frame.hd.type) {
 6147|    869|      case NGHTTP2_HEADERS:
  ------------------
  |  Branch (6147:7): [True: 869, False: 409]
  ------------------
 6148|    869|        if (iframe->padlen == 0 &&
  ------------------
  |  Branch (6148:13): [True: 841, False: 28]
  ------------------
 6149|    841|            (iframe->frame.hd.flags & NGHTTP2_FLAG_PADDED)) {
  ------------------
  |  Branch (6149:13): [True: 65, False: 776]
  ------------------
 6150|     65|          pri_fieldlen = nghttp2_frame_priority_len(iframe->frame.hd.flags);
 6151|     65|          padlen = inbound_frame_compute_pad(iframe);
 6152|     65|          if (padlen < 0 ||
  ------------------
  |  Branch (6152:15): [True: 2, False: 63]
  ------------------
 6153|     63|              (size_t)padlen + pri_fieldlen > 1 + iframe->payloadleft) {
  ------------------
  |  Branch (6153:15): [True: 1, False: 62]
  ------------------
 6154|      3|            rv = nghttp2_session_terminate_session_with_reason(
 6155|      3|              session, NGHTTP2_PROTOCOL_ERROR, "HEADERS: invalid padding");
 6156|      3|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6156:17): [True: 0, False: 3]
  ------------------
 6157|      0|              return rv;
 6158|      0|            }
 6159|      3|            return (nghttp2_ssize)inlen;
 6160|      3|          }
 6161|     62|          iframe->frame.headers.padlen = (size_t)padlen;
 6162|       |
 6163|     62|          if (pri_fieldlen > 0) {
  ------------------
  |  Branch (6163:15): [True: 29, False: 33]
  ------------------
 6164|     29|            if (iframe->payloadleft < pri_fieldlen) {
  ------------------
  |  Branch (6164:17): [True: 0, False: 29]
  ------------------
 6165|      0|              busy = 1;
 6166|      0|              iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 6167|      0|              break;
 6168|      0|            }
 6169|     29|            iframe->state = NGHTTP2_IB_READ_NBYTE;
 6170|     29|            inbound_frame_set_mark(iframe, pri_fieldlen);
 6171|     29|            break;
 6172|     33|          } else {
 6173|       |            /* Truncate buffers used for padding spec */
 6174|     33|            inbound_frame_set_mark(iframe, 0);
 6175|     33|          }
 6176|     62|        }
 6177|       |
 6178|    837|        rv = session_process_headers_frame(session);
 6179|    837|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6179:13): [True: 38, False: 799]
  ------------------
 6180|     38|          return rv;
 6181|     38|        }
 6182|       |
 6183|    799|        busy = 1;
 6184|       |
 6185|    799|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6185:13): [True: 1, False: 798]
  ------------------
 6186|      1|          return (nghttp2_ssize)inlen;
 6187|      1|        }
 6188|       |
 6189|    798|        if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (6189:13): [True: 0, False: 798]
  ------------------
 6190|      0|          rv = session_handle_invalid_stream2(
 6191|      0|            session, iframe->frame.hd.stream_id, NULL, NGHTTP2_ERR_INTERNAL);
 6192|      0|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6192:15): [True: 0, False: 0]
  ------------------
 6193|      0|            return rv;
 6194|      0|          }
 6195|      0|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6196|      0|          break;
 6197|      0|        }
 6198|       |
 6199|    798|        if (rv == NGHTTP2_ERR_IGN_HEADER_BLOCK) {
  ------------------
  |  Branch (6199:13): [True: 10, False: 788]
  ------------------
 6200|     10|          rv = session_update_glitch_ratelim(session);
 6201|     10|          if (rv != 0) {
  ------------------
  |  Branch (6201:15): [True: 0, False: 10]
  ------------------
 6202|      0|            return rv;
 6203|      0|          }
 6204|       |
 6205|     10|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6205:15): [True: 0, False: 10]
  ------------------
 6206|      0|            return (nghttp2_ssize)inlen;
 6207|      0|          }
 6208|       |
 6209|     10|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6210|     10|          break;
 6211|     10|        }
 6212|       |
 6213|    788|        iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
 6214|       |
 6215|    788|        break;
 6216|      1|      case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (6216:7): [True: 1, False: 1.27k]
  ------------------
 6217|      1|        session_inbound_frame_reset(session);
 6218|       |
 6219|      1|        break;
 6220|     20|      case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (6220:7): [True: 20, False: 1.25k]
  ------------------
 6221|     20|        rv = session_process_rst_stream_frame(session);
 6222|     20|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6222:13): [True: 5, False: 15]
  ------------------
 6223|      5|          return rv;
 6224|      5|        }
 6225|       |
 6226|     15|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6226:13): [True: 0, False: 15]
  ------------------
 6227|      0|          return (nghttp2_ssize)inlen;
 6228|      0|        }
 6229|       |
 6230|     15|        session_inbound_frame_reset(session);
 6231|       |
 6232|     15|        break;
 6233|    193|      case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (6233:7): [True: 193, False: 1.08k]
  ------------------
 6234|    193|        if (iframe->padlen == 0 &&
  ------------------
  |  Branch (6234:13): [True: 176, False: 17]
  ------------------
 6235|    176|            (iframe->frame.hd.flags & NGHTTP2_FLAG_PADDED)) {
  ------------------
  |  Branch (6235:13): [True: 19, False: 157]
  ------------------
 6236|     19|          padlen = inbound_frame_compute_pad(iframe);
 6237|     19|          if (padlen < 0 || (size_t)padlen + 4 /* promised stream id */
  ------------------
  |  Branch (6237:15): [True: 1, False: 18]
  |  Branch (6237:29): [True: 1, False: 17]
  ------------------
 6238|     18|                              > 1 + iframe->payloadleft) {
 6239|      2|            rv = nghttp2_session_terminate_session_with_reason(
 6240|      2|              session, NGHTTP2_PROTOCOL_ERROR, "PUSH_PROMISE: invalid padding");
 6241|      2|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6241:17): [True: 0, False: 2]
  ------------------
 6242|      0|              return rv;
 6243|      0|            }
 6244|      2|            return (nghttp2_ssize)inlen;
 6245|      2|          }
 6246|       |
 6247|     17|          iframe->frame.push_promise.padlen = (size_t)padlen;
 6248|       |
 6249|     17|          if (iframe->payloadleft < 4) {
  ------------------
  |  Branch (6249:15): [True: 0, False: 17]
  ------------------
 6250|      0|            busy = 1;
 6251|      0|            iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 6252|      0|            break;
 6253|      0|          }
 6254|       |
 6255|     17|          iframe->state = NGHTTP2_IB_READ_NBYTE;
 6256|       |
 6257|     17|          inbound_frame_set_mark(iframe, 4);
 6258|       |
 6259|     17|          break;
 6260|     17|        }
 6261|       |
 6262|    174|        rv = session_process_push_promise_frame(session);
 6263|    174|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6263:13): [True: 23, False: 151]
  ------------------
 6264|     23|          return rv;
 6265|     23|        }
 6266|       |
 6267|    151|        busy = 1;
 6268|       |
 6269|    151|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6269:13): [True: 5, False: 146]
  ------------------
 6270|      5|          return (nghttp2_ssize)inlen;
 6271|      5|        }
 6272|       |
 6273|    146|        if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (6273:13): [True: 0, False: 146]
  ------------------
 6274|      0|          rv = session_handle_invalid_stream2(
 6275|      0|            session, iframe->frame.push_promise.promised_stream_id, NULL,
 6276|      0|            NGHTTP2_ERR_INTERNAL);
 6277|      0|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6277:15): [True: 0, False: 0]
  ------------------
 6278|      0|            return rv;
 6279|      0|          }
 6280|      0|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6281|      0|          break;
 6282|      0|        }
 6283|       |
 6284|    146|        if (rv == NGHTTP2_ERR_IGN_HEADER_BLOCK) {
  ------------------
  |  Branch (6284:13): [True: 146, False: 0]
  ------------------
 6285|    146|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6286|    146|          break;
 6287|    146|        }
 6288|       |
 6289|      0|        iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
 6290|       |
 6291|      0|        break;
 6292|      6|      case NGHTTP2_PING:
  ------------------
  |  Branch (6292:7): [True: 6, False: 1.27k]
  ------------------
 6293|      6|        rv = session_process_ping_frame(session);
 6294|      6|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6294:13): [True: 1, False: 5]
  ------------------
 6295|      1|          return rv;
 6296|      1|        }
 6297|       |
 6298|      5|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6298:13): [True: 1, False: 4]
  ------------------
 6299|      1|          return (nghttp2_ssize)inlen;
 6300|      1|        }
 6301|       |
 6302|      4|        session_inbound_frame_reset(session);
 6303|       |
 6304|      4|        break;
 6305|     69|      case NGHTTP2_GOAWAY: {
  ------------------
  |  Branch (6305:7): [True: 69, False: 1.20k]
  ------------------
 6306|     69|        size_t debuglen;
 6307|       |
 6308|       |        /* 8 is Last-stream-ID + Error Code */
 6309|     69|        debuglen = iframe->frame.hd.length - 8;
 6310|       |
 6311|     69|        if (debuglen > 0) {
  ------------------
  |  Branch (6311:13): [True: 64, False: 5]
  ------------------
 6312|     64|          iframe->raw_lbuf = nghttp2_mem_malloc(mem, debuglen);
 6313|       |
 6314|     64|          if (iframe->raw_lbuf == NULL) {
  ------------------
  |  Branch (6314:15): [True: 0, False: 64]
  ------------------
 6315|      0|            return NGHTTP2_ERR_NOMEM;
 6316|      0|          }
 6317|       |
 6318|     64|          nghttp2_buf_wrap_init(&iframe->lbuf, iframe->raw_lbuf, debuglen);
 6319|     64|        }
 6320|       |
 6321|     69|        busy = 1;
 6322|       |
 6323|     69|        iframe->state = NGHTTP2_IB_READ_GOAWAY_DEBUG;
 6324|       |
 6325|     69|        break;
 6326|     69|      }
 6327|    120|      case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (6327:7): [True: 120, False: 1.15k]
  ------------------
 6328|    120|        rv = session_process_window_update_frame(session);
 6329|    120|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6329:13): [True: 17, False: 103]
  ------------------
 6330|     17|          return rv;
 6331|     17|        }
 6332|       |
 6333|    103|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6333:13): [True: 7, False: 96]
  ------------------
 6334|      7|          return (nghttp2_ssize)inlen;
 6335|      7|        }
 6336|       |
 6337|     96|        session_inbound_frame_reset(session);
 6338|       |
 6339|     96|        break;
 6340|      0|      case NGHTTP2_ALTSVC: {
  ------------------
  |  Branch (6340:7): [True: 0, False: 1.27k]
  ------------------
 6341|      0|        size_t origin_len;
 6342|       |
 6343|      0|        origin_len = nghttp2_get_uint16(iframe->sbuf.pos);
 6344|       |
 6345|      0|        DEBUGF("recv: origin_len=%zu\n", origin_len);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6346|       |
 6347|      0|        if (origin_len > iframe->payloadleft) {
  ------------------
  |  Branch (6347:13): [True: 0, False: 0]
  ------------------
 6348|      0|          busy = 1;
 6349|      0|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 6350|      0|          break;
 6351|      0|        }
 6352|       |
 6353|      0|        if (iframe->frame.hd.length > 2) {
  ------------------
  |  Branch (6353:13): [True: 0, False: 0]
  ------------------
 6354|      0|          iframe->raw_lbuf =
 6355|      0|            nghttp2_mem_malloc(mem, iframe->frame.hd.length - 2);
 6356|       |
 6357|      0|          if (iframe->raw_lbuf == NULL) {
  ------------------
  |  Branch (6357:15): [True: 0, False: 0]
  ------------------
 6358|      0|            return NGHTTP2_ERR_NOMEM;
 6359|      0|          }
 6360|       |
 6361|      0|          nghttp2_buf_wrap_init(&iframe->lbuf, iframe->raw_lbuf,
 6362|      0|                                iframe->frame.hd.length);
 6363|      0|        }
 6364|       |
 6365|      0|        busy = 1;
 6366|       |
 6367|      0|        iframe->state = NGHTTP2_IB_READ_ALTSVC_PAYLOAD;
 6368|       |
 6369|      0|        break;
 6370|      0|      case NGHTTP2_PRIORITY_UPDATE:
  ------------------
  |  Branch (6370:7): [True: 0, False: 1.27k]
  ------------------
 6371|      0|        DEBUGF("recv: prioritized_stream_id=%d\n",
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6372|      0|               nghttp2_get_uint32(iframe->sbuf.pos) & NGHTTP2_STREAM_ID_MASK);
 6373|       |
 6374|      0|        rv = session_process_priority_update_frame(session);
 6375|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6375:13): [True: 0, False: 0]
  ------------------
 6376|      0|          return rv;
 6377|      0|        }
 6378|       |
 6379|      0|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6379:13): [True: 0, False: 0]
  ------------------
 6380|      0|          return (nghttp2_ssize)inlen;
 6381|      0|        }
 6382|       |
 6383|      0|        session_inbound_frame_reset(session);
 6384|       |
 6385|      0|        break;
 6386|      0|      }
 6387|      0|      default:
  ------------------
  |  Branch (6387:7): [True: 0, False: 1.27k]
  ------------------
 6388|       |        /* This is unknown frame */
 6389|      0|        session_inbound_frame_reset(session);
 6390|       |
 6391|      0|        break;
 6392|  1.27k|      }
 6393|  1.17k|      break;
 6394|  3.15k|    case NGHTTP2_IB_READ_HEADER_BLOCK:
  ------------------
  |  Branch (6394:5): [True: 3.15k, False: 13.5k]
  ------------------
 6395|  3.86k|    case NGHTTP2_IB_IGN_HEADER_BLOCK: {
  ------------------
  |  Branch (6395:5): [True: 708, False: 16.0k]
  ------------------
 6396|  3.86k|      nghttp2_ssize data_readlen;
 6397|  3.86k|      size_t trail_padlen;
 6398|  3.86k|      int final;
 6399|       |#ifdef DEBUGBUILD
 6400|       |      if (iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK) {
 6401|       |        DEBUGF("recv: [IB_READ_HEADER_BLOCK]\n");
 6402|       |      } else {
 6403|       |        DEBUGF("recv: [IB_IGN_HEADER_BLOCK]\n");
 6404|       |      }
 6405|       |#endif /* defined(DEBUGBUILD) */
 6406|       |
 6407|  3.86k|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6408|       |
 6409|  3.86k|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|  3.86k|    do {                                                                       \
  |  |   40|  3.86k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3.86k]
  |  |  ------------------
  ------------------
 6410|  3.86k|             iframe->payloadleft - readlen);
 6411|       |
 6412|  3.86k|      data_readlen = inbound_frame_effective_readlen(
 6413|  3.86k|        iframe, iframe->payloadleft - readlen, readlen);
 6414|       |
 6415|  3.86k|      if (data_readlen == -1) {
  ------------------
  |  Branch (6415:11): [True: 21, False: 3.84k]
  ------------------
 6416|       |        /* everything is padding */
 6417|     21|        data_readlen = 0;
 6418|     21|      }
 6419|       |
 6420|  3.86k|      trail_padlen = nghttp2_frame_trail_padlen(&iframe->frame, iframe->padlen);
 6421|       |
 6422|  3.86k|      final = (iframe->frame.hd.flags & NGHTTP2_FLAG_END_HEADERS) &&
  ------------------
  |  Branch (6422:15): [True: 414, False: 3.44k]
  ------------------
 6423|    414|              iframe->payloadleft - (size_t)data_readlen == trail_padlen;
  ------------------
  |  Branch (6423:15): [True: 175, False: 239]
  ------------------
 6424|       |
 6425|  3.86k|      if (data_readlen > 0 || (data_readlen == 0 && final)) {
  ------------------
  |  Branch (6425:11): [True: 3.71k, False: 145]
  |  Branch (6425:32): [True: 145, False: 0]
  |  Branch (6425:53): [True: 85, False: 60]
  ------------------
 6426|  3.80k|        size_t hd_proclen = 0;
 6427|       |
 6428|  3.80k|        DEBUGF("recv: block final=%d\n", final);
  ------------------
  |  |   39|  3.80k|    do {                                                                       \
  |  |   40|  3.80k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3.80k]
  |  |  ------------------
  ------------------
 6429|       |
 6430|  3.80k|        rv =
 6431|  3.80k|          inflate_header_block(session, &iframe->frame, &hd_proclen,
 6432|  3.80k|                               (uint8_t *)in, (size_t)data_readlen, final,
 6433|  3.80k|                               iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK);
 6434|       |
 6435|  3.80k|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6435:13): [True: 0, False: 3.80k]
  ------------------
 6436|      0|          return rv;
 6437|      0|        }
 6438|       |
 6439|  3.80k|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6439:13): [True: 684, False: 3.11k]
  ------------------
 6440|    684|          return (nghttp2_ssize)inlen;
 6441|    684|        }
 6442|       |
 6443|  3.11k|        if (rv == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (6443:13): [True: 0, False: 3.11k]
  ------------------
 6444|      0|          in += hd_proclen;
 6445|      0|          iframe->payloadleft -= hd_proclen;
 6446|       |
 6447|      0|          return (nghttp2_ssize)(in - first);
 6448|      0|        }
 6449|       |
 6450|  3.11k|        if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (6450:13): [True: 326, False: 2.79k]
  ------------------
 6451|       |          /* The application says no more headers. We decompress the
 6452|       |             rest of the header block but not invoke on_header_callback
 6453|       |             and on_frame_recv_callback. */
 6454|    326|          in += hd_proclen;
 6455|    326|          iframe->payloadleft -= hd_proclen;
 6456|       |
 6457|       |          /* Use promised stream ID for PUSH_PROMISE */
 6458|    326|          rv = session_handle_invalid_stream2(
 6459|    326|            session,
 6460|    326|            iframe->frame.hd.type == NGHTTP2_PUSH_PROMISE
  ------------------
  |  Branch (6460:13): [True: 0, False: 326]
  ------------------
 6461|    326|              ? iframe->frame.push_promise.promised_stream_id
 6462|    326|              : iframe->frame.hd.stream_id,
 6463|    326|            NULL, NGHTTP2_ERR_INTERNAL);
 6464|    326|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6464:15): [True: 0, False: 326]
  ------------------
 6465|      0|            return rv;
 6466|      0|          }
 6467|    326|          busy = 1;
 6468|    326|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6469|    326|          break;
 6470|    326|        }
 6471|       |
 6472|  2.79k|        in += readlen;
 6473|  2.79k|        iframe->payloadleft -= readlen;
 6474|       |
 6475|  2.79k|        if (rv == NGHTTP2_ERR_HEADER_COMP) {
  ------------------
  |  Branch (6475:13): [True: 0, False: 2.79k]
  ------------------
 6476|       |          /* GOAWAY is already issued */
 6477|      0|          if (iframe->payloadleft == 0) {
  ------------------
  |  Branch (6477:15): [True: 0, False: 0]
  ------------------
 6478|      0|            session_inbound_frame_reset(session);
 6479|      0|          } else {
 6480|      0|            busy = 1;
 6481|      0|            iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 6482|      0|          }
 6483|      0|          break;
 6484|      0|        }
 6485|  2.79k|      } else {
 6486|     60|        in += readlen;
 6487|     60|        iframe->payloadleft -= readlen;
 6488|     60|      }
 6489|       |
 6490|  2.85k|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6490:11): [True: 2.62k, False: 226]
  ------------------
 6491|  2.62k|        break;
 6492|  2.62k|      }
 6493|       |
 6494|    226|      if ((iframe->frame.hd.flags & NGHTTP2_FLAG_END_HEADERS) == 0) {
  ------------------
  |  Branch (6494:11): [True: 82, False: 144]
  ------------------
 6495|     82|        inbound_frame_set_mark(iframe, NGHTTP2_FRAME_HDLEN);
  ------------------
  |  |   40|     82|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
 6496|       |
 6497|     82|        iframe->padlen = 0;
 6498|       |
 6499|     82|        if (iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK) {
  ------------------
  |  Branch (6499:13): [True: 37, False: 45]
  ------------------
 6500|     37|          iframe->state = NGHTTP2_IB_EXPECT_CONTINUATION;
 6501|     45|        } else {
 6502|     45|          iframe->state = NGHTTP2_IB_IGN_CONTINUATION;
 6503|     45|        }
 6504|    144|      } else {
 6505|    144|        if (iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK) {
  ------------------
  |  Branch (6505:13): [True: 59, False: 85]
  ------------------
 6506|     59|          rv = session_after_header_block_received(session);
 6507|     59|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6507:15): [True: 0, False: 59]
  ------------------
 6508|      0|            return rv;
 6509|      0|          }
 6510|       |
 6511|     59|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6511:15): [True: 0, False: 59]
  ------------------
 6512|      0|            return (nghttp2_ssize)inlen;
 6513|      0|          }
 6514|     59|        }
 6515|    144|        session_inbound_frame_reset(session);
 6516|       |
 6517|    144|        session->num_continuations = 0;
 6518|    144|      }
 6519|    226|      break;
 6520|    226|    }
 6521|    288|    case NGHTTP2_IB_IGN_PAYLOAD:
  ------------------
  |  Branch (6521:5): [True: 288, False: 16.4k]
  ------------------
 6522|    288|      DEBUGF("recv: [IB_IGN_PAYLOAD]\n");
  ------------------
  |  |   39|    288|    do {                                                                       \
  |  |   40|    288|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 288]
  |  |  ------------------
  ------------------
 6523|       |
 6524|    288|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6525|    288|      iframe->payloadleft -= readlen;
 6526|    288|      in += readlen;
 6527|       |
 6528|    288|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|    288|    do {                                                                       \
  |  |   40|    288|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 288]
  |  |  ------------------
  ------------------
 6529|    288|             iframe->payloadleft);
 6530|       |
 6531|    288|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6531:11): [True: 190, False: 98]
  ------------------
 6532|    190|        break;
 6533|    190|      }
 6534|       |
 6535|     98|      switch (iframe->frame.hd.type) {
 6536|      0|      case NGHTTP2_HEADERS:
  ------------------
  |  Branch (6536:7): [True: 0, False: 98]
  ------------------
 6537|      0|      case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (6537:7): [True: 0, False: 98]
  ------------------
 6538|      0|      case NGHTTP2_CONTINUATION:
  ------------------
  |  Branch (6538:7): [True: 0, False: 98]
  ------------------
 6539|       |        /* Mark inflater bad so that we won't perform further decoding */
 6540|      0|        session->hd_inflater.ctx.bad = 1;
 6541|      0|        break;
 6542|     98|      default:
  ------------------
  |  Branch (6542:7): [True: 98, False: 0]
  ------------------
 6543|     98|        break;
 6544|     98|      }
 6545|       |
 6546|     98|      session_inbound_frame_reset(session);
 6547|       |
 6548|     98|      break;
 6549|     16|    case NGHTTP2_IB_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (6549:5): [True: 16, False: 16.7k]
  ------------------
 6550|     16|      DEBUGF("recv: [IB_FRAME_SIZE_ERROR]\n");
  ------------------
  |  |   39|     16|    do {                                                                       \
  |  |   40|     16|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 16]
  |  |  ------------------
  ------------------
 6551|       |
 6552|     16|      rv = session_handle_frame_size_error(session);
 6553|     16|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6553:11): [True: 0, False: 16]
  ------------------
 6554|      0|        return rv;
 6555|      0|      }
 6556|       |
 6557|     16|      assert(iframe->state == NGHTTP2_IB_IGN_ALL);
  ------------------
  |  Branch (6557:7): [True: 0, False: 16]
  |  Branch (6557:7): [True: 16, False: 0]
  ------------------
 6558|       |
 6559|     16|      return (nghttp2_ssize)inlen;
 6560|  4.71k|    case NGHTTP2_IB_READ_SETTINGS:
  ------------------
  |  Branch (6560:5): [True: 4.71k, False: 12.0k]
  ------------------
 6561|  4.71k|      DEBUGF("recv: [IB_READ_SETTINGS]\n");
  ------------------
  |  |   39|  4.71k|    do {                                                                       \
  |  |   40|  4.71k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.71k]
  |  |  ------------------
  ------------------
 6562|       |
 6563|  4.71k|      readlen = inbound_frame_buf_read(iframe, in, last);
 6564|  4.71k|      iframe->payloadleft -= readlen;
 6565|  4.71k|      in += readlen;
 6566|       |
 6567|  4.71k|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|  4.71k|    do {                                                                       \
  |  |   40|  4.71k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.71k]
  |  |  ------------------
  ------------------
 6568|  4.71k|             iframe->payloadleft);
 6569|       |
 6570|  4.71k|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|  4.71k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 820, False: 3.89k]
  |  |  ------------------
  ------------------
 6571|    820|        break;
 6572|    820|      }
 6573|       |
 6574|  3.89k|      if (readlen > 0) {
  ------------------
  |  Branch (6574:11): [True: 2.05k, False: 1.84k]
  ------------------
 6575|  2.05k|        inbound_frame_set_settings_entry(iframe);
 6576|  2.05k|      }
 6577|  3.89k|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6577:11): [True: 1.61k, False: 2.27k]
  ------------------
 6578|  1.61k|        inbound_frame_set_mark(iframe, NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH);
  ------------------
  |  |   61|  1.61k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
 6579|  1.61k|        break;
 6580|  1.61k|      }
 6581|       |
 6582|  2.27k|      rv = session_process_settings_frame(session);
 6583|       |
 6584|  2.27k|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6584:11): [True: 124, False: 2.15k]
  ------------------
 6585|    124|        return rv;
 6586|    124|      }
 6587|       |
 6588|  2.15k|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6588:11): [True: 4, False: 2.15k]
  ------------------
 6589|      4|        return (nghttp2_ssize)inlen;
 6590|      4|      }
 6591|       |
 6592|  2.15k|      session_inbound_frame_reset(session);
 6593|       |
 6594|  2.15k|      break;
 6595|    162|    case NGHTTP2_IB_READ_GOAWAY_DEBUG:
  ------------------
  |  Branch (6595:5): [True: 162, False: 16.5k]
  ------------------
 6596|    162|      DEBUGF("recv: [IB_READ_GOAWAY_DEBUG]\n");
  ------------------
  |  |   39|    162|    do {                                                                       \
  |  |   40|    162|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 162]
  |  |  ------------------
  ------------------
 6597|       |
 6598|    162|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6599|       |
 6600|    162|      if (readlen > 0) {
  ------------------
  |  Branch (6600:11): [True: 147, False: 15]
  ------------------
 6601|    147|        iframe->lbuf.last = nghttp2_cpymem(iframe->lbuf.last, in, readlen);
 6602|       |
 6603|    147|        iframe->payloadleft -= readlen;
 6604|    147|        in += readlen;
 6605|    147|      }
 6606|       |
 6607|    162|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|    162|    do {                                                                       \
  |  |   40|    162|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 162]
  |  |  ------------------
  ------------------
 6608|    162|             iframe->payloadleft);
 6609|       |
 6610|    162|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6610:11): [True: 107, False: 55]
  ------------------
 6611|    107|        assert(nghttp2_buf_avail(&iframe->lbuf) > 0);
  ------------------
  |  Branch (6611:9): [True: 0, False: 107]
  |  Branch (6611:9): [True: 107, False: 0]
  ------------------
 6612|       |
 6613|    107|        break;
 6614|    107|      }
 6615|       |
 6616|     55|      rv = session_process_goaway_frame(session);
 6617|       |
 6618|     55|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6618:11): [True: 9, False: 46]
  ------------------
 6619|      9|        return rv;
 6620|      9|      }
 6621|       |
 6622|     46|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6622:11): [True: 2, False: 44]
  ------------------
 6623|      2|        return (nghttp2_ssize)inlen;
 6624|      2|      }
 6625|       |
 6626|     44|      session_inbound_frame_reset(session);
 6627|       |
 6628|     44|      break;
 6629|     49|    case NGHTTP2_IB_EXPECT_CONTINUATION:
  ------------------
  |  Branch (6629:5): [True: 49, False: 16.6k]
  ------------------
 6630|    104|    case NGHTTP2_IB_IGN_CONTINUATION:
  ------------------
  |  Branch (6630:5): [True: 55, False: 16.6k]
  ------------------
 6631|       |#ifdef DEBUGBUILD
 6632|       |      if (iframe->state == NGHTTP2_IB_EXPECT_CONTINUATION) {
 6633|       |        fprintf(stderr, "recv: [IB_EXPECT_CONTINUATION]\n");
 6634|       |      } else {
 6635|       |        fprintf(stderr, "recv: [IB_IGN_CONTINUATION]\n");
 6636|       |      }
 6637|       |#endif /* defined(DEBUGBUILD) */
 6638|       |
 6639|    104|      if (++session->num_continuations > session->max_continuations) {
  ------------------
  |  Branch (6639:11): [True: 0, False: 104]
  ------------------
 6640|      0|        return NGHTTP2_ERR_TOO_MANY_CONTINUATIONS;
 6641|      0|      }
 6642|       |
 6643|    104|      readlen = inbound_frame_buf_read(iframe, in, last);
 6644|    104|      in += readlen;
 6645|       |
 6646|    104|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|    104|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 60, False: 44]
  |  |  ------------------
  ------------------
 6647|     60|        return (nghttp2_ssize)(in - first);
 6648|     60|      }
 6649|       |
 6650|     44|      nghttp2_frame_unpack_frame_hd(&cont_hd, iframe->sbuf.pos);
 6651|     44|      iframe->payloadleft = cont_hd.length;
 6652|       |
 6653|     44|      DEBUGF("recv: payloadlen=%zu, type=%u, flags=0x%02x, stream_id=%d\n",
  ------------------
  |  |   39|     44|    do {                                                                       \
  |  |   40|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
 6654|     44|             cont_hd.length, cont_hd.type, cont_hd.flags, cont_hd.stream_id);
 6655|       |
 6656|     44|      if (cont_hd.type != NGHTTP2_CONTINUATION ||
  ------------------
  |  Branch (6656:11): [True: 36, False: 8]
  ------------------
 6657|     38|          cont_hd.stream_id != iframe->frame.hd.stream_id) {
  ------------------
  |  Branch (6657:11): [True: 2, False: 6]
  ------------------
 6658|     38|        DEBUGF("recv: expected stream_id=%d, type=%d, but got stream_id=%d, "
  ------------------
  |  |   39|     38|    do {                                                                       \
  |  |   40|     38|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 38]
  |  |  ------------------
  ------------------
 6659|     38|               "type=%u\n",
 6660|     38|               iframe->frame.hd.stream_id, NGHTTP2_CONTINUATION,
 6661|     38|               cont_hd.stream_id, cont_hd.type);
 6662|     38|        rv = nghttp2_session_terminate_session_with_reason(
 6663|     38|          session, NGHTTP2_PROTOCOL_ERROR,
 6664|     38|          "unexpected non-CONTINUATION frame or stream_id is invalid");
 6665|     38|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6665:13): [True: 0, False: 38]
  ------------------
 6666|      0|          return rv;
 6667|      0|        }
 6668|       |
 6669|     38|        return (nghttp2_ssize)inlen;
 6670|     38|      }
 6671|       |
 6672|       |      /* CONTINUATION won't bear NGHTTP2_PADDED flag */
 6673|       |
 6674|      6|      iframe->frame.hd.flags =
 6675|      6|        (uint8_t)(iframe->frame.hd.flags |
 6676|      6|                  (cont_hd.flags & NGHTTP2_FLAG_END_HEADERS));
 6677|      6|      iframe->frame.hd.length += cont_hd.length;
 6678|       |
 6679|      6|      busy = 1;
 6680|       |
 6681|      6|      if (iframe->state == NGHTTP2_IB_EXPECT_CONTINUATION) {
  ------------------
  |  Branch (6681:11): [True: 5, False: 1]
  ------------------
 6682|      5|        iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
 6683|       |
 6684|      5|        rv = session_call_on_begin_frame(session, &cont_hd);
 6685|       |
 6686|      5|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6686:13): [True: 0, False: 5]
  ------------------
 6687|      0|          return rv;
 6688|      0|        }
 6689|       |
 6690|      5|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6690:13): [True: 0, False: 5]
  ------------------
 6691|      0|          return (nghttp2_ssize)inlen;
 6692|      0|        }
 6693|      5|      } else {
 6694|      1|        iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6695|      1|      }
 6696|       |
 6697|      6|      break;
 6698|      6|    case NGHTTP2_IB_READ_PAD_DATA:
  ------------------
  |  Branch (6698:5): [True: 0, False: 16.7k]
  ------------------
 6699|      0|      DEBUGF("recv: [IB_READ_PAD_DATA]\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6700|       |
 6701|      0|      readlen = inbound_frame_buf_read(iframe, in, last);
 6702|      0|      in += readlen;
 6703|      0|      iframe->payloadleft -= readlen;
 6704|       |
 6705|      0|      DEBUGF("recv: readlen=%zu, payloadleft=%zu, left=%zu\n", readlen,
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6706|      0|             iframe->payloadleft, nghttp2_buf_mark_avail(&iframe->sbuf));
 6707|       |
 6708|      0|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|      0|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 6709|      0|        return (nghttp2_ssize)(in - first);
 6710|      0|      }
 6711|       |
 6712|       |      /* Pad Length field is subject to flow control */
 6713|      0|      rv = nghttp2_session_update_recv_connection_window_size(session, readlen);
 6714|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6714:11): [True: 0, False: 0]
  ------------------
 6715|      0|        return rv;
 6716|      0|      }
 6717|       |
 6718|      0|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6718:11): [True: 0, False: 0]
  ------------------
 6719|      0|        return (nghttp2_ssize)inlen;
 6720|      0|      }
 6721|       |
 6722|       |      /* Pad Length field is consumed immediately */
 6723|      0|      rv =
 6724|      0|        nghttp2_session_consume(session, iframe->frame.hd.stream_id, readlen);
 6725|       |
 6726|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6726:11): [True: 0, False: 0]
  ------------------
 6727|      0|        return rv;
 6728|      0|      }
 6729|       |
 6730|      0|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6730:11): [True: 0, False: 0]
  ------------------
 6731|      0|        return (nghttp2_ssize)inlen;
 6732|      0|      }
 6733|       |
 6734|      0|      stream = nghttp2_session_get_stream(session, iframe->frame.hd.stream_id);
 6735|      0|      if (stream) {
  ------------------
  |  Branch (6735:11): [True: 0, False: 0]
  ------------------
 6736|      0|        rv = nghttp2_session_update_recv_stream_window_size(
 6737|      0|          session, stream, readlen,
 6738|      0|          iframe->payloadleft ||
  ------------------
  |  Branch (6738:11): [True: 0, False: 0]
  ------------------
 6739|      0|            (iframe->frame.hd.flags & NGHTTP2_FLAG_END_STREAM) == 0);
  ------------------
  |  Branch (6739:13): [True: 0, False: 0]
  ------------------
 6740|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6740:13): [True: 0, False: 0]
  ------------------
 6741|      0|          return rv;
 6742|      0|        }
 6743|       |
 6744|      0|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6744:13): [True: 0, False: 0]
  ------------------
 6745|      0|          return (nghttp2_ssize)inlen;
 6746|      0|        }
 6747|      0|      }
 6748|       |
 6749|      0|      busy = 1;
 6750|       |
 6751|      0|      padlen = inbound_frame_compute_pad(iframe);
 6752|      0|      if (padlen < 0) {
  ------------------
  |  Branch (6752:11): [True: 0, False: 0]
  ------------------
 6753|      0|        rv = nghttp2_session_terminate_session_with_reason(
 6754|      0|          session, NGHTTP2_PROTOCOL_ERROR, "DATA: invalid padding");
 6755|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6755:13): [True: 0, False: 0]
  ------------------
 6756|      0|          return rv;
 6757|      0|        }
 6758|      0|        return (nghttp2_ssize)inlen;
 6759|      0|      }
 6760|       |
 6761|      0|      iframe->frame.data.padlen = (size_t)padlen;
 6762|       |
 6763|       |      /* Empty DATA frame without END_STREAM flag set is
 6764|       |         suspicious. */
 6765|      0|      if (iframe->payloadleft == 0 &&
  ------------------
  |  Branch (6765:11): [True: 0, False: 0]
  ------------------
 6766|      0|          (iframe->frame.hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
  ------------------
  |  Branch (6766:11): [True: 0, False: 0]
  ------------------
 6767|      0|        rv = session_update_glitch_ratelim(session);
 6768|      0|        if (rv != 0) {
  ------------------
  |  Branch (6768:13): [True: 0, False: 0]
  ------------------
 6769|      0|          return rv;
 6770|      0|        }
 6771|       |
 6772|      0|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6772:13): [True: 0, False: 0]
  ------------------
 6773|      0|          return (nghttp2_ssize)inlen;
 6774|      0|        }
 6775|      0|      }
 6776|       |
 6777|      0|      iframe->state = NGHTTP2_IB_READ_DATA;
 6778|       |
 6779|      0|      break;
 6780|      0|    case NGHTTP2_IB_READ_DATA:
  ------------------
  |  Branch (6780:5): [True: 0, False: 16.7k]
  ------------------
 6781|      0|      stream = nghttp2_session_get_stream(session, iframe->frame.hd.stream_id);
 6782|       |
 6783|      0|      if (!stream) {
  ------------------
  |  Branch (6783:11): [True: 0, False: 0]
  ------------------
 6784|      0|        busy = 1;
 6785|      0|        iframe->state = NGHTTP2_IB_IGN_DATA;
 6786|      0|        break;
 6787|      0|      }
 6788|       |
 6789|      0|      DEBUGF("recv: [IB_READ_DATA]\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6790|       |
 6791|      0|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6792|      0|      iframe->payloadleft -= readlen;
 6793|      0|      in += readlen;
 6794|       |
 6795|      0|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6796|      0|             iframe->payloadleft);
 6797|       |
 6798|      0|      if (readlen > 0) {
  ------------------
  |  Branch (6798:11): [True: 0, False: 0]
  ------------------
 6799|      0|        nghttp2_ssize data_readlen;
 6800|       |
 6801|      0|        rv =
 6802|      0|          nghttp2_session_update_recv_connection_window_size(session, readlen);
 6803|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6803:13): [True: 0, False: 0]
  ------------------
 6804|      0|          return rv;
 6805|      0|        }
 6806|       |
 6807|      0|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6807:13): [True: 0, False: 0]
  ------------------
 6808|      0|          return (nghttp2_ssize)inlen;
 6809|      0|        }
 6810|       |
 6811|      0|        rv = nghttp2_session_update_recv_stream_window_size(
 6812|      0|          session, stream, readlen,
 6813|      0|          iframe->payloadleft ||
  ------------------
  |  Branch (6813:11): [True: 0, False: 0]
  ------------------
 6814|      0|            (iframe->frame.hd.flags & NGHTTP2_FLAG_END_STREAM) == 0);
  ------------------
  |  Branch (6814:13): [True: 0, False: 0]
  ------------------
 6815|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6815:13): [True: 0, False: 0]
  ------------------
 6816|      0|          return rv;
 6817|      0|        }
 6818|       |
 6819|      0|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6819:13): [True: 0, False: 0]
  ------------------
 6820|      0|          return (nghttp2_ssize)inlen;
 6821|      0|        }
 6822|       |
 6823|      0|        data_readlen =
 6824|      0|          inbound_frame_effective_readlen(iframe, iframe->payloadleft, readlen);
 6825|       |
 6826|      0|        if (data_readlen == -1) {
  ------------------
  |  Branch (6826:13): [True: 0, False: 0]
  ------------------
 6827|       |          /* everything is padding */
 6828|      0|          data_readlen = 0;
 6829|      0|        }
 6830|       |
 6831|      0|        padlen = (nghttp2_ssize)readlen - data_readlen;
 6832|       |
 6833|      0|        if (padlen > 0) {
  ------------------
  |  Branch (6833:13): [True: 0, False: 0]
  ------------------
 6834|       |          /* Padding is considered as "consumed" immediately */
 6835|      0|          rv = nghttp2_session_consume(session, iframe->frame.hd.stream_id,
 6836|      0|                                       (size_t)padlen);
 6837|       |
 6838|      0|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6838:15): [True: 0, False: 0]
  ------------------
 6839|      0|            return rv;
 6840|      0|          }
 6841|       |
 6842|      0|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6842:15): [True: 0, False: 0]
  ------------------
 6843|      0|            return (nghttp2_ssize)inlen;
 6844|      0|          }
 6845|      0|        }
 6846|       |
 6847|      0|        DEBUGF("recv: data_readlen=%td\n", data_readlen);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6848|       |
 6849|      0|        if (data_readlen > 0) {
  ------------------
  |  Branch (6849:13): [True: 0, False: 0]
  ------------------
 6850|      0|          if (session_enforce_http_messaging(session)) {
  ------------------
  |  Branch (6850:15): [True: 0, False: 0]
  ------------------
 6851|      0|            if (nghttp2_http_on_data_chunk(stream, (size_t)data_readlen) != 0) {
  ------------------
  |  Branch (6851:17): [True: 0, False: 0]
  ------------------
 6852|      0|              if (session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (6852:19): [True: 0, False: 0]
  ------------------
 6853|       |                /* Consume all data for connection immediately here */
 6854|      0|                rv = session_update_connection_consumed_size(
 6855|      0|                  session, (size_t)data_readlen);
 6856|       |
 6857|      0|                if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6857:21): [True: 0, False: 0]
  ------------------
 6858|      0|                  return rv;
 6859|      0|                }
 6860|       |
 6861|      0|                if (iframe->state == NGHTTP2_IB_IGN_DATA) {
  ------------------
  |  Branch (6861:21): [True: 0, False: 0]
  ------------------
 6862|      0|                  return (nghttp2_ssize)inlen;
 6863|      0|                }
 6864|      0|              }
 6865|       |
 6866|      0|              rv = session_handle_invalid_stream2(
 6867|      0|                session, iframe->frame.hd.stream_id, &iframe->frame,
 6868|      0|                NGHTTP2_ERR_PROTO);
 6869|      0|              if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6869:19): [True: 0, False: 0]
  ------------------
 6870|      0|                return rv;
 6871|      0|              }
 6872|       |
 6873|      0|              rv = session_update_glitch_ratelim(session);
 6874|      0|              if (rv != 0) {
  ------------------
  |  Branch (6874:19): [True: 0, False: 0]
  ------------------
 6875|      0|                return rv;
 6876|      0|              }
 6877|       |
 6878|      0|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6878:19): [True: 0, False: 0]
  ------------------
 6879|      0|                return (nghttp2_ssize)inlen;
 6880|      0|              }
 6881|       |
 6882|      0|              busy = 1;
 6883|      0|              iframe->state = NGHTTP2_IB_IGN_DATA;
 6884|       |
 6885|      0|              break;
 6886|      0|            }
 6887|      0|          }
 6888|      0|          if (session->callbacks.on_data_chunk_recv_callback) {
  ------------------
  |  Branch (6888:15): [True: 0, False: 0]
  ------------------
 6889|      0|            rv = session->callbacks.on_data_chunk_recv_callback(
 6890|      0|              session, iframe->frame.hd.flags, iframe->frame.hd.stream_id,
 6891|      0|              in - readlen, (size_t)data_readlen, session->user_data);
 6892|      0|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6892:17): [True: 0, False: 0]
  ------------------
 6893|      0|              return NGHTTP2_ERR_CALLBACK_FAILURE;
 6894|      0|            }
 6895|       |
 6896|      0|            if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6896:17): [True: 0, False: 0]
  ------------------
 6897|      0|              return (nghttp2_ssize)inlen;
 6898|      0|            }
 6899|       |
 6900|      0|            if (rv == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (6900:17): [True: 0, False: 0]
  ------------------
 6901|      0|              return (nghttp2_ssize)(in - first);
 6902|      0|            }
 6903|      0|          }
 6904|      0|        }
 6905|      0|      }
 6906|       |
 6907|      0|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6907:11): [True: 0, False: 0]
  ------------------
 6908|      0|        break;
 6909|      0|      }
 6910|       |
 6911|      0|      rv = session_process_data_frame(session);
 6912|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6912:11): [True: 0, False: 0]
  ------------------
 6913|      0|        return rv;
 6914|      0|      }
 6915|       |
 6916|      0|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6916:11): [True: 0, False: 0]
  ------------------
 6917|      0|        return (nghttp2_ssize)inlen;
 6918|      0|      }
 6919|       |
 6920|      0|      session_inbound_frame_reset(session);
 6921|       |
 6922|      0|      break;
 6923|    140|    case NGHTTP2_IB_IGN_DATA:
  ------------------
  |  Branch (6923:5): [True: 140, False: 16.5k]
  ------------------
 6924|    140|      DEBUGF("recv: [IB_IGN_DATA]\n");
  ------------------
  |  |   39|    140|    do {                                                                       \
  |  |   40|    140|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 140]
  |  |  ------------------
  ------------------
 6925|       |
 6926|    140|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6927|    140|      iframe->payloadleft -= readlen;
 6928|    140|      in += readlen;
 6929|       |
 6930|    140|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|    140|    do {                                                                       \
  |  |   40|    140|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 140]
  |  |  ------------------
  ------------------
 6931|    140|             iframe->payloadleft);
 6932|       |
 6933|    140|      if (readlen > 0) {
  ------------------
  |  Branch (6933:11): [True: 104, False: 36]
  ------------------
 6934|       |        /* Update connection-level flow control window for ignored
 6935|       |           DATA frame too */
 6936|    104|        rv =
 6937|    104|          nghttp2_session_update_recv_connection_window_size(session, readlen);
 6938|    104|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6938:13): [True: 0, False: 104]
  ------------------
 6939|      0|          return rv;
 6940|      0|        }
 6941|       |
 6942|    104|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6942:13): [True: 0, False: 104]
  ------------------
 6943|      0|          return (nghttp2_ssize)inlen;
 6944|      0|        }
 6945|       |
 6946|    104|        if (session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (6946:13): [True: 104, False: 0]
  ------------------
 6947|       |          /* Ignored DATA is considered as "consumed" immediately. */
 6948|    104|          rv = session_update_connection_consumed_size(session, readlen);
 6949|       |
 6950|    104|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6950:15): [True: 0, False: 104]
  ------------------
 6951|      0|            return rv;
 6952|      0|          }
 6953|       |
 6954|    104|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6954:15): [True: 0, False: 104]
  ------------------
 6955|      0|            return (nghttp2_ssize)inlen;
 6956|      0|          }
 6957|    104|        }
 6958|    104|      }
 6959|       |
 6960|    140|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6960:11): [True: 100, False: 40]
  ------------------
 6961|    100|        break;
 6962|    100|      }
 6963|       |
 6964|     40|      session_inbound_frame_reset(session);
 6965|       |
 6966|     40|      break;
 6967|    190|    case NGHTTP2_IB_IGN_ALL:
  ------------------
  |  Branch (6967:5): [True: 190, False: 16.5k]
  ------------------
 6968|    190|      return (nghttp2_ssize)inlen;
 6969|      0|    case NGHTTP2_IB_READ_EXTENSION_PAYLOAD:
  ------------------
  |  Branch (6969:5): [True: 0, False: 16.7k]
  ------------------
 6970|      0|      DEBUGF("recv: [IB_READ_EXTENSION_PAYLOAD]\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6971|       |
 6972|      0|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6973|      0|      iframe->payloadleft -= readlen;
 6974|      0|      in += readlen;
 6975|       |
 6976|      0|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 6977|      0|             iframe->payloadleft);
 6978|       |
 6979|      0|      if (readlen > 0) {
  ------------------
  |  Branch (6979:11): [True: 0, False: 0]
  ------------------
 6980|      0|        rv = session_call_on_extension_chunk_recv_callback(
 6981|      0|          session, in - readlen, readlen);
 6982|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6982:13): [True: 0, False: 0]
  ------------------
 6983|      0|          return rv;
 6984|      0|        }
 6985|       |
 6986|      0|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6986:13): [True: 0, False: 0]
  ------------------
 6987|      0|          return (nghttp2_ssize)inlen;
 6988|      0|        }
 6989|       |
 6990|      0|        if (rv != 0) {
  ------------------
  |  Branch (6990:13): [True: 0, False: 0]
  ------------------
 6991|      0|          busy = 1;
 6992|       |
 6993|      0|          iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 6994|       |
 6995|      0|          break;
 6996|      0|        }
 6997|      0|      }
 6998|       |
 6999|      0|      if (iframe->payloadleft > 0) {
  ------------------
  |  Branch (6999:11): [True: 0, False: 0]
  ------------------
 7000|      0|        break;
 7001|      0|      }
 7002|       |
 7003|      0|      rv = session_process_extension_frame(session);
 7004|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (7004:11): [True: 0, False: 0]
  ------------------
 7005|      0|        return rv;
 7006|      0|      }
 7007|       |
 7008|      0|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (7008:11): [True: 0, False: 0]
  ------------------
 7009|      0|        return (nghttp2_ssize)inlen;
 7010|      0|      }
 7011|       |
 7012|      0|      session_inbound_frame_reset(session);
 7013|       |
 7014|      0|      break;
 7015|      0|    case NGHTTP2_IB_READ_ALTSVC_PAYLOAD:
  ------------------
  |  Branch (7015:5): [True: 0, False: 16.7k]
  ------------------
 7016|      0|      DEBUGF("recv: [IB_READ_ALTSVC_PAYLOAD]\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7017|       |
 7018|      0|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 7019|      0|      if (readlen > 0) {
  ------------------
  |  Branch (7019:11): [True: 0, False: 0]
  ------------------
 7020|      0|        iframe->lbuf.last = nghttp2_cpymem(iframe->lbuf.last, in, readlen);
 7021|       |
 7022|      0|        iframe->payloadleft -= readlen;
 7023|      0|        in += readlen;
 7024|      0|      }
 7025|       |
 7026|      0|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7027|      0|             iframe->payloadleft);
 7028|       |
 7029|      0|      if (iframe->payloadleft) {
  ------------------
  |  Branch (7029:11): [True: 0, False: 0]
  ------------------
 7030|      0|        assert(nghttp2_buf_avail(&iframe->lbuf) > 0);
  ------------------
  |  Branch (7030:9): [True: 0, False: 0]
  |  Branch (7030:9): [True: 0, False: 0]
  ------------------
 7031|       |
 7032|      0|        break;
 7033|      0|      }
 7034|       |
 7035|      0|      rv = session_process_altsvc_frame(session);
 7036|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (7036:11): [True: 0, False: 0]
  ------------------
 7037|      0|        return rv;
 7038|      0|      }
 7039|       |
 7040|      0|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (7040:11): [True: 0, False: 0]
  ------------------
 7041|      0|        return (nghttp2_ssize)inlen;
 7042|      0|      }
 7043|       |
 7044|      0|      session_inbound_frame_reset(session);
 7045|       |
 7046|      0|      break;
 7047|      0|    case NGHTTP2_IB_READ_ORIGIN_PAYLOAD:
  ------------------
  |  Branch (7047:5): [True: 0, False: 16.7k]
  ------------------
 7048|      0|      DEBUGF("recv: [IB_READ_ORIGIN_PAYLOAD]\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7049|       |
 7050|      0|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 7051|       |
 7052|      0|      if (readlen > 0) {
  ------------------
  |  Branch (7052:11): [True: 0, False: 0]
  ------------------
 7053|      0|        iframe->lbuf.last = nghttp2_cpymem(iframe->lbuf.last, in, readlen);
 7054|       |
 7055|      0|        iframe->payloadleft -= readlen;
 7056|      0|        in += readlen;
 7057|      0|      }
 7058|       |
 7059|      0|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7060|      0|             iframe->payloadleft);
 7061|       |
 7062|      0|      if (iframe->payloadleft) {
  ------------------
  |  Branch (7062:11): [True: 0, False: 0]
  ------------------
 7063|      0|        assert(nghttp2_buf_avail(&iframe->lbuf) > 0);
  ------------------
  |  Branch (7063:9): [True: 0, False: 0]
  |  Branch (7063:9): [True: 0, False: 0]
  ------------------
 7064|       |
 7065|      0|        break;
 7066|      0|      }
 7067|       |
 7068|      0|      rv = session_process_origin_frame(session);
 7069|       |
 7070|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (7070:11): [True: 0, False: 0]
  ------------------
 7071|      0|        return rv;
 7072|      0|      }
 7073|       |
 7074|      0|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (7074:11): [True: 0, False: 0]
  ------------------
 7075|      0|        return (nghttp2_ssize)inlen;
 7076|      0|      }
 7077|       |
 7078|      0|      session_inbound_frame_reset(session);
 7079|       |
 7080|      0|      break;
 7081|  16.7k|    }
 7082|       |
 7083|  13.7k|    if (!busy && in == last) {
  ------------------
  |  Branch (7083:9): [True: 9.89k, False: 3.88k]
  |  Branch (7083:18): [True: 4.19k, False: 5.69k]
  ------------------
 7084|  4.19k|      break;
 7085|  4.19k|    }
 7086|       |
 7087|  9.58k|    busy = 0;
 7088|  9.58k|  }
 7089|       |
 7090|  7.13k|  assert(in == last);
  ------------------
  |  Branch (7090:3): [True: 0, False: 4.19k]
  |  Branch (7090:3): [True: 4.19k, False: 0]
  ------------------
 7091|       |
 7092|  4.19k|  return (nghttp2_ssize)(in - first);
 7093|  4.19k|}
nghttp2_session_want_read:
 7126|  43.2k|int nghttp2_session_want_read(nghttp2_session *session) {
 7127|  43.2k|  size_t num_active_streams;
 7128|       |
 7129|       |  /* If this flag is set, we don't want to read. The application
 7130|       |     should drop the connection. */
 7131|  43.2k|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_SENT) {
  ------------------
  |  Branch (7131:7): [True: 379, False: 42.8k]
  ------------------
 7132|    379|    return 0;
 7133|    379|  }
 7134|       |
 7135|  42.8k|  num_active_streams = session_get_num_active_streams(session);
 7136|       |
 7137|       |  /* Unless termination GOAWAY is sent or received, we always want to
 7138|       |     read incoming frames. */
 7139|       |
 7140|  42.8k|  if (num_active_streams > 0) {
  ------------------
  |  Branch (7140:7): [True: 35.5k, False: 7.28k]
  ------------------
 7141|  35.5k|    return 1;
 7142|  35.5k|  }
 7143|       |
 7144|       |  /* If there is no active streams and GOAWAY has been sent or
 7145|       |     received, we are done with this session. */
 7146|  7.28k|  return (session->goaway_flags &
 7147|  7.28k|          (NGHTTP2_GOAWAY_SENT | NGHTTP2_GOAWAY_RECV)) == 0;
 7148|  42.8k|}
nghttp2_session_want_write:
 7150|  32.9k|int nghttp2_session_want_write(nghttp2_session *session) {
 7151|       |  /* If these flag is set, we don't want to write any data. The
 7152|       |     application should drop the connection. */
 7153|  32.9k|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_SENT) {
  ------------------
  |  Branch (7153:7): [True: 2.02k, False: 30.9k]
  ------------------
 7154|  2.02k|    return 0;
 7155|  2.02k|  }
 7156|       |
 7157|       |  /*
 7158|       |   * Unless termination GOAWAY is sent or received, we want to write
 7159|       |   * frames if there is pending ones. If pending frame is request/push
 7160|       |   * response HEADERS and concurrent stream limit is reached, we don't
 7161|       |   * want to write them.
 7162|       |   */
 7163|  30.9k|  return session->aob.item || nghttp2_outbound_queue_top(&session->ob_urgent) ||
  ------------------
  |  |  192|  60.3k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  |  |  ------------------
  |  |  |  Branch (192:39): [True: 4.96k, False: 24.4k]
  |  |  ------------------
  ------------------
  |  Branch (7163:10): [True: 1.57k, False: 29.3k]
  ------------------
 7164|  24.4k|         nghttp2_outbound_queue_top(&session->ob_reg) ||
  ------------------
  |  |  192|  55.3k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  |  |  ------------------
  |  |  |  Branch (192:39): [True: 1.70k, False: 22.7k]
  |  |  ------------------
  ------------------
 7165|  22.7k|         (!session_sched_empty(session) && session->remote_window_size > 0) ||
  ------------------
  |  Branch (7165:11): [True: 164, False: 22.5k]
  |  Branch (7165:44): [True: 164, False: 0]
  ------------------
 7166|  22.5k|         (nghttp2_outbound_queue_top(&session->ob_syn) &&
  ------------------
  |  |  192|  45.0k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  |  |  ------------------
  |  |  |  Branch (192:39): [True: 2.88k, False: 19.6k]
  |  |  ------------------
  ------------------
 7167|  2.88k|          !session_is_outgoing_concurrent_streams_max(session));
  ------------------
  |  Branch (7167:11): [True: 2.88k, False: 0]
  ------------------
 7168|  32.9k|}
nghttp2_session_add_ping:
 7171|      3|                             const uint8_t *opaque_data) {
 7172|      3|  int rv;
 7173|      3|  nghttp2_outbound_item *item;
 7174|      3|  nghttp2_frame *frame;
 7175|      3|  nghttp2_mem *mem;
 7176|       |
 7177|      3|  mem = &session->mem;
 7178|       |
 7179|      3|  if ((flags & NGHTTP2_FLAG_ACK) &&
  ------------------
  |  Branch (7179:7): [True: 3, False: 0]
  ------------------
 7180|      3|      session->obq_flood_counter_ >= session->max_outbound_ack) {
  ------------------
  |  Branch (7180:7): [True: 0, False: 3]
  ------------------
 7181|      0|    return NGHTTP2_ERR_FLOODED;
 7182|      0|  }
 7183|       |
 7184|      3|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 7185|      3|  if (item == NULL) {
  ------------------
  |  Branch (7185:7): [True: 0, False: 3]
  ------------------
 7186|      0|    return NGHTTP2_ERR_NOMEM;
 7187|      0|  }
 7188|       |
 7189|      3|  nghttp2_outbound_item_init(item);
 7190|       |
 7191|      3|  frame = &item->frame;
 7192|       |
 7193|      3|  nghttp2_frame_ping_init(&frame->ping, flags, opaque_data);
 7194|       |
 7195|      3|  rv = nghttp2_session_add_item(session, item);
 7196|       |
 7197|      3|  if (rv != 0) {
  ------------------
  |  Branch (7197:7): [True: 0, False: 3]
  ------------------
 7198|      0|    nghttp2_frame_ping_free(&frame->ping);
 7199|      0|    nghttp2_mem_free(mem, item);
 7200|      0|    return rv;
 7201|      0|  }
 7202|       |
 7203|      3|  if (flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (7203:7): [True: 3, False: 0]
  ------------------
 7204|      3|    ++session->obq_flood_counter_;
 7205|      3|  }
 7206|       |
 7207|      3|  return 0;
 7208|      3|}
nghttp2_session_add_goaway:
 7212|  1.56k|                               size_t opaque_data_len, uint8_t aux_flags) {
 7213|  1.56k|  int rv;
 7214|  1.56k|  nghttp2_outbound_item *item;
 7215|  1.56k|  nghttp2_frame *frame;
 7216|  1.56k|  uint8_t *opaque_data_copy = NULL;
 7217|  1.56k|  nghttp2_goaway_aux_data *aux_data;
 7218|  1.56k|  nghttp2_mem *mem;
 7219|       |
 7220|  1.56k|  mem = &session->mem;
 7221|       |
 7222|  1.56k|  if (nghttp2_session_is_my_stream_id(session, last_stream_id)) {
  ------------------
  |  Branch (7222:7): [True: 0, False: 1.56k]
  ------------------
 7223|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7224|      0|  }
 7225|       |
 7226|  1.56k|  if (opaque_data_len) {
  ------------------
  |  Branch (7226:7): [True: 860, False: 700]
  ------------------
 7227|    860|    if (opaque_data_len + 8 > NGHTTP2_MAX_PAYLOADLEN) {
  ------------------
  |  |   45|    860|#define NGHTTP2_MAX_PAYLOADLEN 16384
  ------------------
  |  Branch (7227:9): [True: 0, False: 860]
  ------------------
 7228|      0|      return NGHTTP2_ERR_INVALID_ARGUMENT;
 7229|      0|    }
 7230|    860|    opaque_data_copy = nghttp2_mem_malloc(mem, opaque_data_len);
 7231|    860|    if (opaque_data_copy == NULL) {
  ------------------
  |  Branch (7231:9): [True: 0, False: 860]
  ------------------
 7232|      0|      return NGHTTP2_ERR_NOMEM;
 7233|      0|    }
 7234|    860|    memcpy(opaque_data_copy, opaque_data, opaque_data_len);
 7235|    860|  }
 7236|       |
 7237|  1.56k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 7238|  1.56k|  if (item == NULL) {
  ------------------
  |  Branch (7238:7): [True: 0, False: 1.56k]
  ------------------
 7239|      0|    nghttp2_mem_free(mem, opaque_data_copy);
 7240|      0|    return NGHTTP2_ERR_NOMEM;
 7241|      0|  }
 7242|       |
 7243|  1.56k|  nghttp2_outbound_item_init(item);
 7244|       |
 7245|  1.56k|  frame = &item->frame;
 7246|       |
 7247|       |  /* last_stream_id must not be increased from the value previously
 7248|       |     sent */
 7249|  1.56k|  last_stream_id =
 7250|  1.56k|    nghttp2_min_int32(last_stream_id, session->local_last_stream_id);
 7251|       |
 7252|  1.56k|  nghttp2_frame_goaway_init(&frame->goaway, last_stream_id, error_code,
 7253|  1.56k|                            opaque_data_copy, opaque_data_len);
 7254|       |
 7255|  1.56k|  aux_data = &item->aux_data.goaway;
 7256|  1.56k|  aux_data->flags = aux_flags;
 7257|       |
 7258|  1.56k|  rv = nghttp2_session_add_item(session, item);
 7259|  1.56k|  if (rv != 0) {
  ------------------
  |  Branch (7259:7): [True: 0, False: 1.56k]
  ------------------
 7260|      0|    nghttp2_frame_goaway_free(&frame->goaway, mem);
 7261|      0|    nghttp2_mem_free(mem, item);
 7262|      0|    return rv;
 7263|      0|  }
 7264|       |
 7265|  1.56k|  session->goaway_flags |= NGHTTP2_GOAWAY_SUBMITTED;
 7266|       |
 7267|  1.56k|  return 0;
 7268|  1.56k|}
nghttp2_session_add_window_update:
 7272|  2.94k|                                      int32_t window_size_increment) {
 7273|  2.94k|  int rv;
 7274|  2.94k|  nghttp2_outbound_item *item;
 7275|  2.94k|  nghttp2_frame *frame;
 7276|  2.94k|  nghttp2_mem *mem;
 7277|       |
 7278|  2.94k|  mem = &session->mem;
 7279|  2.94k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 7280|  2.94k|  if (item == NULL) {
  ------------------
  |  Branch (7280:7): [True: 0, False: 2.94k]
  ------------------
 7281|      0|    return NGHTTP2_ERR_NOMEM;
 7282|      0|  }
 7283|       |
 7284|  2.94k|  nghttp2_outbound_item_init(item);
 7285|       |
 7286|  2.94k|  frame = &item->frame;
 7287|       |
 7288|  2.94k|  nghttp2_frame_window_update_init(&frame->window_update, flags, stream_id,
 7289|  2.94k|                                   window_size_increment);
 7290|       |
 7291|  2.94k|  rv = nghttp2_session_add_item(session, item);
 7292|       |
 7293|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (7293:7): [True: 0, False: 2.94k]
  ------------------
 7294|      0|    nghttp2_frame_window_update_free(&frame->window_update);
 7295|      0|    nghttp2_mem_free(mem, item);
 7296|      0|    return rv;
 7297|      0|  }
 7298|  2.94k|  return 0;
 7299|  2.94k|}
nghttp2_session_add_settings:
 7313|  5.09k|                                 const nghttp2_settings_entry *iv, size_t niv) {
 7314|  5.09k|  nghttp2_outbound_item *item;
 7315|  5.09k|  nghttp2_frame *frame;
 7316|  5.09k|  nghttp2_settings_entry *iv_copy;
 7317|  5.09k|  size_t i;
 7318|  5.09k|  int rv;
 7319|  5.09k|  nghttp2_mem *mem;
 7320|  5.09k|  nghttp2_inflight_settings *inflight_settings = NULL;
 7321|  5.09k|  uint8_t no_rfc7540_pri = session->pending_no_rfc7540_priorities;
 7322|       |
 7323|  5.09k|  mem = &session->mem;
 7324|       |
 7325|  5.09k|  if (flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (7325:7): [True: 2.14k, False: 2.94k]
  ------------------
 7326|  2.14k|    if (niv != 0) {
  ------------------
  |  Branch (7326:9): [True: 0, False: 2.14k]
  ------------------
 7327|      0|      return NGHTTP2_ERR_INVALID_ARGUMENT;
 7328|      0|    }
 7329|       |
 7330|  2.14k|    if (session->obq_flood_counter_ >= session->max_outbound_ack) {
  ------------------
  |  Branch (7330:9): [True: 0, False: 2.14k]
  ------------------
 7331|      0|      return NGHTTP2_ERR_FLOODED;
 7332|      0|    }
 7333|  2.14k|  }
 7334|       |
 7335|  5.09k|  if (!nghttp2_iv_check(iv, niv)) {
  ------------------
  |  Branch (7335:7): [True: 0, False: 5.09k]
  ------------------
 7336|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7337|      0|  }
 7338|       |
 7339|  13.9k|  for (i = 0; i < niv; ++i) {
  ------------------
  |  Branch (7339:15): [True: 8.83k, False: 5.09k]
  ------------------
 7340|  8.83k|    if (iv[i].settings_id != NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES) {
  ------------------
  |  Branch (7340:9): [True: 8.83k, False: 0]
  ------------------
 7341|  8.83k|      continue;
 7342|  8.83k|    }
 7343|       |
 7344|      0|    if (no_rfc7540_pri == UINT8_MAX) {
  ------------------
  |  Branch (7344:9): [True: 0, False: 0]
  ------------------
 7345|      0|      no_rfc7540_pri = (uint8_t)iv[i].value;
 7346|      0|      continue;
 7347|      0|    }
 7348|       |
 7349|      0|    if (iv[i].value != (uint32_t)no_rfc7540_pri) {
  ------------------
  |  Branch (7349:9): [True: 0, False: 0]
  ------------------
 7350|      0|      return NGHTTP2_ERR_INVALID_ARGUMENT;
 7351|      0|    }
 7352|      0|  }
 7353|       |
 7354|  5.09k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 7355|  5.09k|  if (item == NULL) {
  ------------------
  |  Branch (7355:7): [True: 0, False: 5.09k]
  ------------------
 7356|      0|    return NGHTTP2_ERR_NOMEM;
 7357|      0|  }
 7358|       |
 7359|  5.09k|  if (niv > 0) {
  ------------------
  |  Branch (7359:7): [True: 2.94k, False: 2.14k]
  ------------------
 7360|  2.94k|    iv_copy = nghttp2_frame_iv_copy(iv, niv, mem);
 7361|  2.94k|    if (iv_copy == NULL) {
  ------------------
  |  Branch (7361:9): [True: 0, False: 2.94k]
  ------------------
 7362|      0|      nghttp2_mem_free(mem, item);
 7363|      0|      return NGHTTP2_ERR_NOMEM;
 7364|      0|    }
 7365|  2.94k|  } else {
 7366|  2.14k|    iv_copy = NULL;
 7367|  2.14k|  }
 7368|       |
 7369|  5.09k|  if ((flags & NGHTTP2_FLAG_ACK) == 0) {
  ------------------
  |  Branch (7369:7): [True: 2.94k, False: 2.14k]
  ------------------
 7370|  2.94k|    rv = inflight_settings_new(&inflight_settings, iv, niv, mem);
 7371|  2.94k|    if (rv != 0) {
  ------------------
  |  Branch (7371:9): [True: 0, False: 2.94k]
  ------------------
 7372|      0|      assert(nghttp2_is_fatal(rv));
  ------------------
  |  Branch (7372:7): [True: 0, False: 0]
  |  Branch (7372:7): [True: 0, False: 0]
  ------------------
 7373|      0|      nghttp2_mem_free(mem, iv_copy);
 7374|      0|      nghttp2_mem_free(mem, item);
 7375|      0|      return rv;
 7376|      0|    }
 7377|  2.94k|  }
 7378|       |
 7379|  5.09k|  nghttp2_outbound_item_init(item);
 7380|       |
 7381|  5.09k|  frame = &item->frame;
 7382|       |
 7383|  5.09k|  nghttp2_frame_settings_init(&frame->settings, flags, iv_copy, niv);
 7384|  5.09k|  rv = nghttp2_session_add_item(session, item);
 7385|  5.09k|  if (rv != 0) {
  ------------------
  |  Branch (7385:7): [True: 0, False: 5.09k]
  ------------------
 7386|       |    /* The only expected error is fatal one */
 7387|      0|    assert(nghttp2_is_fatal(rv));
  ------------------
  |  Branch (7387:5): [True: 0, False: 0]
  |  Branch (7387:5): [True: 0, False: 0]
  ------------------
 7388|       |
 7389|      0|    inflight_settings_del(inflight_settings, mem);
 7390|       |
 7391|      0|    nghttp2_frame_settings_free(&frame->settings, mem);
 7392|      0|    nghttp2_mem_free(mem, item);
 7393|       |
 7394|      0|    return rv;
 7395|      0|  }
 7396|       |
 7397|  5.09k|  if (flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (7397:7): [True: 2.14k, False: 2.94k]
  ------------------
 7398|  2.14k|    ++session->obq_flood_counter_;
 7399|  2.94k|  } else {
 7400|  2.94k|    session_append_inflight_settings(session, inflight_settings);
 7401|  2.94k|  }
 7402|       |
 7403|       |  /* Extract NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS and ENABLE_PUSH
 7404|       |     here.  We use it to refuse the incoming stream and PUSH_PROMISE
 7405|       |     with RST_STREAM. */
 7406|       |
 7407|  10.9k|  for (i = niv; i > 0; --i) {
  ------------------
  |  Branch (7407:17): [True: 8.83k, False: 2.14k]
  ------------------
 7408|  8.83k|    if (iv[i - 1].settings_id == NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS) {
  ------------------
  |  Branch (7408:9): [True: 2.94k, False: 5.88k]
  ------------------
 7409|  2.94k|      session->pending_local_max_concurrent_stream = iv[i - 1].value;
 7410|  2.94k|      break;
 7411|  2.94k|    }
 7412|  8.83k|  }
 7413|       |
 7414|  5.09k|  for (i = niv; i > 0; --i) {
  ------------------
  |  Branch (7414:17): [True: 2.94k, False: 2.14k]
  ------------------
 7415|  2.94k|    if (iv[i - 1].settings_id == NGHTTP2_SETTINGS_ENABLE_PUSH) {
  ------------------
  |  Branch (7415:9): [True: 2.94k, False: 0]
  ------------------
 7416|  2.94k|      session->pending_enable_push = (uint8_t)iv[i - 1].value;
 7417|  2.94k|      break;
 7418|  2.94k|    }
 7419|  2.94k|  }
 7420|       |
 7421|  13.9k|  for (i = niv; i > 0; --i) {
  ------------------
  |  Branch (7421:17): [True: 8.83k, False: 5.09k]
  ------------------
 7422|  8.83k|    if (iv[i - 1].settings_id == NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL) {
  ------------------
  |  Branch (7422:9): [True: 0, False: 8.83k]
  ------------------
 7423|      0|      session->pending_enable_connect_protocol = (uint8_t)iv[i - 1].value;
 7424|      0|      break;
 7425|      0|    }
 7426|  8.83k|  }
 7427|       |
 7428|  5.09k|  if (no_rfc7540_pri == UINT8_MAX) {
  ------------------
  |  Branch (7428:7): [True: 2.94k, False: 2.14k]
  ------------------
 7429|  2.94k|    session->pending_no_rfc7540_priorities = 0;
 7430|  2.94k|  } else {
 7431|  2.14k|    session->pending_no_rfc7540_priorities = no_rfc7540_pri;
 7432|  2.14k|  }
 7433|       |
 7434|  5.09k|  return 0;
 7435|  5.09k|}
nghttp2_session_pack_data:
 7440|  1.24k|                              nghttp2_stream *stream) {
 7441|  1.24k|  int rv;
 7442|  1.24k|  uint32_t data_flags;
 7443|  1.24k|  nghttp2_ssize payloadlen;
 7444|  1.24k|  nghttp2_ssize padded_payloadlen;
 7445|  1.24k|  nghttp2_buf *buf;
 7446|  1.24k|  size_t max_payloadlen;
 7447|       |
 7448|  1.24k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (7448:3): [True: 0, False: 1.24k]
  |  Branch (7448:3): [True: 1.24k, False: 0]
  ------------------
 7449|       |
 7450|  1.24k|  buf = &bufs->cur->buf;
 7451|       |
 7452|  1.24k|  if (session->callbacks.read_length_callback2 ||
  ------------------
  |  Branch (7452:7): [True: 0, False: 1.24k]
  ------------------
 7453|  1.24k|      session->callbacks.read_length_callback) {
  ------------------
  |  Branch (7453:7): [True: 0, False: 1.24k]
  ------------------
 7454|      0|    if (session->callbacks.read_length_callback2) {
  ------------------
  |  Branch (7454:9): [True: 0, False: 0]
  ------------------
 7455|      0|      payloadlen = session->callbacks.read_length_callback2(
 7456|      0|        session, frame->hd.type, stream->stream_id, session->remote_window_size,
 7457|      0|        stream->remote_window_size, session->remote_settings.max_frame_size,
 7458|      0|        session->user_data);
 7459|      0|    } else {
 7460|      0|      payloadlen = (nghttp2_ssize)session->callbacks.read_length_callback(
 7461|      0|        session, frame->hd.type, stream->stream_id, session->remote_window_size,
 7462|      0|        stream->remote_window_size, session->remote_settings.max_frame_size,
 7463|      0|        session->user_data);
 7464|      0|    }
 7465|       |
 7466|      0|    DEBUGF("send: read_length_callback=%td\n", payloadlen);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7467|       |
 7468|      0|    payloadlen =
 7469|      0|      nghttp2_session_enforce_flow_control_limits(session, stream, payloadlen);
 7470|       |
 7471|      0|    DEBUGF("send: read_length_callback after flow control=%td\n", payloadlen);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7472|       |
 7473|      0|    if (payloadlen <= 0) {
  ------------------
  |  Branch (7473:9): [True: 0, False: 0]
  ------------------
 7474|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 7475|      0|    }
 7476|       |
 7477|      0|    if ((size_t)payloadlen > nghttp2_buf_avail(buf)) {
  ------------------
  |  |   55|      0|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  ------------------
  |  Branch (7477:9): [True: 0, False: 0]
  ------------------
 7478|       |      /* Resize the current buffer(s).  The reason why we do +1 for
 7479|       |         buffer size is for possible padding field. */
 7480|      0|      rv = nghttp2_bufs_realloc(&session->aob.framebufs,
 7481|      0|                                (size_t)(NGHTTP2_FRAME_HDLEN + 1 + payloadlen));
  ------------------
  |  |   40|      0|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
 7482|       |
 7483|      0|      if (rv != 0) {
  ------------------
  |  Branch (7483:11): [True: 0, False: 0]
  ------------------
 7484|      0|        DEBUGF("send: realloc buffer failed rv=%d", rv);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7485|       |        /* If reallocation failed, old buffers are still in tact.  So
 7486|       |           use safe limit. */
 7487|      0|        payloadlen = (nghttp2_ssize)datamax;
 7488|       |
 7489|      0|        DEBUGF("send: use safe limit payloadlen=%td", payloadlen);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7490|      0|      } else {
 7491|      0|        assert(&session->aob.framebufs == bufs);
  ------------------
  |  Branch (7491:9): [True: 0, False: 0]
  |  Branch (7491:9): [True: 0, False: 0]
  ------------------
 7492|       |
 7493|      0|        buf = &bufs->cur->buf;
 7494|      0|      }
 7495|      0|    }
 7496|      0|    datamax = (size_t)payloadlen;
 7497|      0|  }
 7498|       |
 7499|       |  /* Current max DATA length is less then buffer chunk size */
 7500|  1.24k|  assert(nghttp2_buf_avail(buf) >= datamax);
  ------------------
  |  Branch (7500:3): [True: 0, False: 1.24k]
  |  Branch (7500:3): [True: 1.24k, False: 0]
  ------------------
 7501|       |
 7502|  1.24k|  data_flags = NGHTTP2_DATA_FLAG_NONE;
 7503|  1.24k|  switch (aux_data->dpw.version) {
 7504|  1.24k|  case NGHTTP2_DATA_PROVIDER_V1:
  ------------------
  |  |   36|  1.24k|#define NGHTTP2_DATA_PROVIDER_V1 1
  ------------------
  |  Branch (7504:3): [True: 1.24k, False: 0]
  ------------------
 7505|  1.24k|    payloadlen = (nghttp2_ssize)aux_data->dpw.data_prd.v1.read_callback(
 7506|  1.24k|      session, frame->hd.stream_id, buf->pos, datamax, &data_flags,
 7507|  1.24k|      &aux_data->dpw.data_prd.v1.source, session->user_data);
 7508|       |
 7509|  1.24k|    break;
 7510|      0|  case NGHTTP2_DATA_PROVIDER_V2:
  ------------------
  |  |   37|      0|#define NGHTTP2_DATA_PROVIDER_V2 2
  ------------------
  |  Branch (7510:3): [True: 0, False: 1.24k]
  ------------------
 7511|      0|    payloadlen = aux_data->dpw.data_prd.v2.read_callback(
 7512|      0|      session, frame->hd.stream_id, buf->pos, datamax, &data_flags,
 7513|      0|      &aux_data->dpw.data_prd.v2.source, session->user_data);
 7514|       |
 7515|      0|    break;
 7516|      0|  default:
  ------------------
  |  Branch (7516:3): [True: 0, False: 1.24k]
  ------------------
 7517|      0|    assert(0);
  ------------------
  |  Branch (7517:5): [Folded, False: 0]
  |  Branch (7517:5): [Folded, False: 0]
  ------------------
 7518|      0|    abort();
 7519|  1.24k|  }
 7520|       |
 7521|  1.24k|  if (payloadlen == NGHTTP2_ERR_DEFERRED ||
  ------------------
  |  Branch (7521:7): [True: 338, False: 910]
  ------------------
 7522|    910|      payloadlen == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE ||
  ------------------
  |  Branch (7522:7): [True: 0, False: 910]
  ------------------
 7523|    910|      payloadlen == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (7523:7): [True: 0, False: 910]
  ------------------
 7524|    338|    DEBUGF("send: DATA postponed due to %s\n",
  ------------------
  |  |   39|    338|    do {                                                                       \
  |  |   40|    338|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 338]
  |  |  ------------------
  ------------------
 7525|    338|           nghttp2_strerror((int)payloadlen));
 7526|       |
 7527|    338|    return (int)payloadlen;
 7528|    338|  }
 7529|       |
 7530|    910|  if (payloadlen < 0 || datamax < (size_t)payloadlen) {
  ------------------
  |  Branch (7530:7): [True: 0, False: 910]
  |  Branch (7530:25): [True: 0, False: 910]
  ------------------
 7531|       |    /* This is the error code when callback is failed. */
 7532|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 7533|      0|  }
 7534|       |
 7535|    910|  buf->last = buf->pos + payloadlen;
 7536|    910|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|    910|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
 7537|       |
 7538|       |  /* Clear flags, because this may contain previous flags of previous
 7539|       |     DATA */
 7540|    910|  frame->hd.flags = NGHTTP2_FLAG_NONE;
 7541|       |
 7542|    910|  if (data_flags & NGHTTP2_DATA_FLAG_EOF) {
  ------------------
  |  Branch (7542:7): [True: 412, False: 498]
  ------------------
 7543|    412|    aux_data->eof = 1;
 7544|       |    /* If NGHTTP2_DATA_FLAG_NO_END_STREAM is set, don't set
 7545|       |       NGHTTP2_FLAG_END_STREAM */
 7546|    412|    if ((aux_data->flags & NGHTTP2_FLAG_END_STREAM) &&
  ------------------
  |  Branch (7546:9): [True: 412, False: 0]
  ------------------
 7547|    412|        (data_flags & NGHTTP2_DATA_FLAG_NO_END_STREAM) == 0) {
  ------------------
  |  Branch (7547:9): [True: 412, False: 0]
  ------------------
 7548|    412|      frame->hd.flags |= NGHTTP2_FLAG_END_STREAM;
 7549|    412|    }
 7550|    412|  }
 7551|       |
 7552|    910|  if (data_flags & NGHTTP2_DATA_FLAG_NO_COPY) {
  ------------------
  |  Branch (7552:7): [True: 0, False: 910]
  ------------------
 7553|      0|    if (session->callbacks.send_data_callback == NULL) {
  ------------------
  |  Branch (7553:9): [True: 0, False: 0]
  ------------------
 7554|      0|      DEBUGF("NGHTTP2_DATA_FLAG_NO_COPY requires send_data_callback set\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 7555|       |
 7556|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 7557|      0|    }
 7558|      0|    aux_data->no_copy = 1;
 7559|      0|  }
 7560|       |
 7561|    910|  frame->hd.length = (size_t)payloadlen;
 7562|    910|  frame->data.padlen = 0;
 7563|       |
 7564|    910|  max_payloadlen =
 7565|    910|    nghttp2_min_size(datamax, frame->hd.length + NGHTTP2_MAX_PADLEN);
  ------------------
  |  |   67|    910|#define NGHTTP2_MAX_PADLEN 256
  ------------------
 7566|       |
 7567|    910|  padded_payloadlen =
 7568|    910|    session_call_select_padding(session, frame, max_payloadlen);
 7569|       |
 7570|    910|  if (nghttp2_is_fatal((int)padded_payloadlen)) {
  ------------------
  |  Branch (7570:7): [True: 0, False: 910]
  ------------------
 7571|      0|    return (int)padded_payloadlen;
 7572|      0|  }
 7573|       |
 7574|    910|  frame->data.padlen = (size_t)(padded_payloadlen - payloadlen);
 7575|       |
 7576|    910|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
 7577|       |
 7578|    910|  nghttp2_frame_add_pad(bufs, &frame->hd, frame->data.padlen,
 7579|    910|                        aux_data->no_copy);
 7580|       |
 7581|    910|  session_reschedule_stream(session, stream);
 7582|       |
 7583|    910|  if (frame->hd.length == 0 && (data_flags & NGHTTP2_DATA_FLAG_EOF) &&
  ------------------
  |  Branch (7583:7): [True: 329, False: 581]
  |  Branch (7583:32): [True: 329, False: 0]
  ------------------
 7584|    329|      (data_flags & NGHTTP2_DATA_FLAG_NO_END_STREAM)) {
  ------------------
  |  Branch (7584:7): [True: 0, False: 329]
  ------------------
 7585|       |    /* DATA payload length is 0, and DATA frame does not bear
 7586|       |       END_STREAM.  In this case, there is no point to send 0 length
 7587|       |       DATA frame. */
 7588|      0|    return NGHTTP2_ERR_CANCEL;
 7589|      0|  }
 7590|       |
 7591|    910|  return 0;
 7592|    910|}
nghttp2_session_get_stream_user_data:
 7595|  20.2k|                                           int32_t stream_id) {
 7596|  20.2k|  nghttp2_stream *stream;
 7597|  20.2k|  stream = nghttp2_session_get_stream(session, stream_id);
 7598|  20.2k|  if (stream) {
  ------------------
  |  Branch (7598:7): [True: 20.0k, False: 234]
  ------------------
 7599|  20.0k|    return stream->stream_user_data;
 7600|  20.0k|  } else {
 7601|       |    return NULL;
 7602|    234|  }
 7603|  20.2k|}
nghttp2_session_set_stream_user_data:
 7607|  3.20k|                                         void *stream_user_data) {
 7608|  3.20k|  nghttp2_stream *stream;
 7609|  3.20k|  nghttp2_frame *frame;
 7610|  3.20k|  nghttp2_outbound_item *item;
 7611|       |
 7612|  3.20k|  stream = nghttp2_session_get_stream(session, stream_id);
 7613|  3.20k|  if (stream) {
  ------------------
  |  Branch (7613:7): [True: 2.97k, False: 232]
  ------------------
 7614|  2.97k|    stream->stream_user_data = stream_user_data;
 7615|  2.97k|    return 0;
 7616|  2.97k|  }
 7617|       |
 7618|    232|  if (session->server || !nghttp2_session_is_my_stream_id(session, stream_id) ||
  ------------------
  |  Branch (7618:7): [True: 0, False: 232]
  |  Branch (7618:26): [True: 0, False: 232]
  ------------------
 7619|    232|      !nghttp2_outbound_queue_top(&session->ob_syn)) {
  ------------------
  |  |  192|    232|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
  |  Branch (7619:7): [True: 232, False: 0]
  ------------------
 7620|    232|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7621|    232|  }
 7622|       |
 7623|      0|  frame = &nghttp2_outbound_queue_top(&session->ob_syn)->frame;
  ------------------
  |  |  192|      0|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
 7624|      0|  assert(frame->hd.type == NGHTTP2_HEADERS);
  ------------------
  |  Branch (7624:3): [True: 0, False: 0]
  |  Branch (7624:3): [True: 0, False: 0]
  ------------------
 7625|       |
 7626|      0|  if (frame->hd.stream_id > stream_id ||
  ------------------
  |  Branch (7626:7): [True: 0, False: 0]
  ------------------
 7627|      0|      (uint32_t)stream_id >= session->next_stream_id) {
  ------------------
  |  Branch (7627:7): [True: 0, False: 0]
  ------------------
 7628|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7629|      0|  }
 7630|       |
 7631|      0|  for (item = session->ob_syn.head; item; item = item->qnext) {
  ------------------
  |  Branch (7631:37): [True: 0, False: 0]
  ------------------
 7632|      0|    if (item->frame.hd.stream_id < stream_id) {
  ------------------
  |  Branch (7632:9): [True: 0, False: 0]
  ------------------
 7633|      0|      continue;
 7634|      0|    }
 7635|       |
 7636|      0|    if (item->frame.hd.stream_id > stream_id) {
  ------------------
  |  Branch (7636:9): [True: 0, False: 0]
  ------------------
 7637|      0|      break;
 7638|      0|    }
 7639|       |
 7640|      0|    item->aux_data.headers.stream_user_data = stream_user_data;
 7641|      0|    return 0;
 7642|      0|  }
 7643|       |
 7644|      0|  return NGHTTP2_ERR_INVALID_ARGUMENT;
 7645|      0|}
nghttp2_session_resume_data:
 7647|  3.54k|int nghttp2_session_resume_data(nghttp2_session *session, int32_t stream_id) {
 7648|  3.54k|  int rv;
 7649|  3.54k|  nghttp2_stream *stream;
 7650|  3.54k|  stream = nghttp2_session_get_stream(session, stream_id);
 7651|  3.54k|  if (stream == NULL || !nghttp2_stream_check_deferred_item(stream)) {
  ------------------
  |  Branch (7651:7): [True: 2.88k, False: 655]
  |  Branch (7651:25): [True: 469, False: 186]
  ------------------
 7652|  3.35k|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7653|  3.35k|  }
 7654|       |
 7655|    186|  rv = session_resume_deferred_stream_item(session, stream,
 7656|    186|                                           NGHTTP2_STREAM_FLAG_DEFERRED_USER);
 7657|       |
 7658|    186|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (7658:7): [True: 0, False: 186]
  ------------------
 7659|      0|    return rv;
 7660|      0|  }
 7661|       |
 7662|    186|  return 0;
 7663|    186|}
nghttp2_session_get_stream_effective_local_window_size:
 7685|  2.93k|                                                       int32_t stream_id) {
 7686|  2.93k|  nghttp2_stream *stream;
 7687|  2.93k|  stream = nghttp2_session_get_stream(session, stream_id);
 7688|  2.93k|  if (stream == NULL) {
  ------------------
  |  Branch (7688:7): [True: 0, False: 2.93k]
  ------------------
 7689|      0|    return -1;
 7690|      0|  }
 7691|  2.93k|  return stream->local_window_size;
 7692|  2.93k|}
nghttp2_session_get_stream_remote_window_size:
 7729|    937|                                                      int32_t stream_id) {
 7730|    937|  nghttp2_stream *stream;
 7731|       |
 7732|    937|  stream = nghttp2_session_get_stream(session, stream_id);
 7733|    937|  if (stream == NULL) {
  ------------------
  |  Branch (7733:7): [True: 0, False: 937]
  ------------------
 7734|      0|    return -1;
 7735|      0|  }
 7736|       |
 7737|       |  /* stream->remote_window_size can be negative when
 7738|       |     SETTINGS_INITIAL_WINDOW_SIZE is changed. */
 7739|    937|  return nghttp2_max_int32(0, stream->remote_window_size);
 7740|    937|}
nghttp2_session_get_remote_window_size:
 7742|    937|int32_t nghttp2_session_get_remote_window_size(nghttp2_session *session) {
 7743|    937|  return session->remote_window_size;
 7744|    937|}
nghttp2_session_get_remote_settings:
 7747|  4.29k|                                             nghttp2_settings_id id) {
 7748|  4.29k|  switch (id) {
  ------------------
  |  Branch (7748:11): [True: 4.29k, False: 0]
  ------------------
 7749|      0|  case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (7749:3): [True: 0, False: 4.29k]
  ------------------
 7750|      0|    return session->remote_settings.header_table_size;
 7751|  2.14k|  case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (7751:3): [True: 2.14k, False: 2.14k]
  ------------------
 7752|  2.14k|    return session->remote_settings.enable_push;
 7753|  2.14k|  case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (7753:3): [True: 2.14k, False: 2.14k]
  ------------------
 7754|  2.14k|    return session->remote_settings.max_concurrent_streams;
 7755|      0|  case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (7755:3): [True: 0, False: 4.29k]
  ------------------
 7756|      0|    return session->remote_settings.initial_window_size;
 7757|      0|  case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (7757:3): [True: 0, False: 4.29k]
  ------------------
 7758|      0|    return session->remote_settings.max_frame_size;
 7759|      0|  case NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE:
  ------------------
  |  Branch (7759:3): [True: 0, False: 4.29k]
  ------------------
 7760|      0|    return session->remote_settings.max_header_list_size;
 7761|      0|  case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (7761:3): [True: 0, False: 4.29k]
  ------------------
 7762|      0|    return session->remote_settings.enable_connect_protocol;
 7763|      0|  case NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES:
  ------------------
  |  Branch (7763:3): [True: 0, False: 4.29k]
  ------------------
 7764|      0|    return session->remote_settings.no_rfc7540_priorities;
 7765|  4.29k|  }
 7766|       |
 7767|  4.29k|  assert(0);
  ------------------
  |  Branch (7767:3): [Folded, False: 0]
  |  Branch (7767:3): [Folded, False: 0]
  ------------------
 7768|      0|  abort(); /* if NDEBUG is set */
 7769|      0|}
nghttp2_session_upgrade2:
 7892|     43|                             void *stream_user_data) {
 7893|     43|  int rv;
 7894|     43|  nghttp2_stream *stream;
 7895|       |
 7896|     43|  rv = nghttp2_session_upgrade_internal(session, settings_payload,
 7897|     43|                                        settings_payloadlen, stream_user_data);
 7898|     43|  if (rv != 0) {
  ------------------
  |  Branch (7898:7): [True: 0, False: 43]
  ------------------
 7899|      0|    return rv;
 7900|      0|  }
 7901|       |
 7902|     43|  stream = nghttp2_session_get_stream(session, 1);
 7903|     43|  assert(stream);
  ------------------
  |  Branch (7903:3): [True: 0, False: 43]
  |  Branch (7903:3): [True: 43, False: 0]
  ------------------
 7904|       |
 7905|     43|  if (head_request) {
  ------------------
  |  Branch (7905:7): [True: 1, False: 42]
  ------------------
 7906|      1|    stream->http_flags |= NGHTTP2_HTTP_FLAG_METH_HEAD;
 7907|      1|  }
 7908|       |
 7909|     43|  return 0;
 7910|     43|}
nghttp2_session.c:session_terminate_session:
  218|  1.07k|                                     uint32_t error_code, const char *reason) {
  219|  1.07k|  int rv;
  220|  1.07k|  const uint8_t *debug_data;
  221|  1.07k|  size_t debug_datalen;
  222|       |
  223|  1.07k|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) {
  ------------------
  |  Branch (223:7): [True: 0, False: 1.07k]
  ------------------
  224|      0|    return 0;
  225|      0|  }
  226|       |
  227|       |  /* Ignore all incoming frames because we are going to tear down the
  228|       |     session. */
  229|  1.07k|  session->iframe.state = NGHTTP2_IB_IGN_ALL;
  230|       |
  231|  1.07k|  if (reason == NULL) {
  ------------------
  |  Branch (231:7): [True: 700, False: 372]
  ------------------
  232|    700|    debug_data = NULL;
  233|    700|    debug_datalen = 0;
  234|    700|  } else {
  235|    372|    debug_data = (const uint8_t *)reason;
  236|    372|    debug_datalen = strlen(reason);
  237|    372|  }
  238|       |
  239|  1.07k|  rv =
  240|  1.07k|    nghttp2_session_add_goaway(session, last_stream_id, error_code, debug_data,
  241|  1.07k|                               debug_datalen, NGHTTP2_GOAWAY_AUX_TERM_ON_SEND);
  242|       |
  243|  1.07k|  if (rv != 0) {
  ------------------
  |  Branch (243:7): [True: 0, False: 1.07k]
  ------------------
  244|      0|    return rv;
  245|      0|  }
  246|       |
  247|  1.07k|  session->goaway_flags |= NGHTTP2_GOAWAY_TERM_ON_SEND;
  248|       |
  249|  1.07k|  return 0;
  250|  1.07k|}
nghttp2_session.c:session_new:
  435|  2.94k|                       const nghttp2_option *option, nghttp2_mem *mem) {
  436|  2.94k|  int rv;
  437|  2.94k|  size_t nbuffer;
  438|  2.94k|  size_t max_deflate_dynamic_table_size =
  439|  2.94k|    NGHTTP2_HD_DEFAULT_MAX_DEFLATE_BUFFER_SIZE;
  ------------------
  |  |   50|  2.94k|#define NGHTTP2_HD_DEFAULT_MAX_DEFLATE_BUFFER_SIZE (1 << 12)
  ------------------
  440|  2.94k|  size_t i;
  441|  2.94k|  uint64_t map_seed;
  442|       |
  443|  2.94k|  if (mem == NULL) {
  ------------------
  |  Branch (443:7): [True: 0, False: 2.94k]
  ------------------
  444|      0|    mem = nghttp2_mem_default();
  445|      0|  }
  446|       |
  447|  2.94k|  *session_ptr = nghttp2_mem_calloc(mem, 1, sizeof(nghttp2_session));
  448|  2.94k|  if (*session_ptr == NULL) {
  ------------------
  |  Branch (448:7): [True: 0, False: 2.94k]
  ------------------
  449|      0|    rv = NGHTTP2_ERR_NOMEM;
  450|      0|    goto fail_session;
  451|      0|  }
  452|       |
  453|  2.94k|  (*session_ptr)->mem = *mem;
  454|  2.94k|  mem = &(*session_ptr)->mem;
  455|       |
  456|       |  /* next_stream_id is initialized in either
  457|       |     nghttp2_session_client_new2 or nghttp2_session_server_new2 */
  458|       |
  459|  2.94k|  (*session_ptr)->remote_window_size = NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE;
  ------------------
  |  |  237|  2.94k|#define NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE ((1 << 16) - 1)
  ------------------
  460|  2.94k|  (*session_ptr)->recv_window_size = 0;
  461|  2.94k|  (*session_ptr)->consumed_size = 0;
  462|  2.94k|  (*session_ptr)->recv_reduction = 0;
  463|  2.94k|  (*session_ptr)->local_window_size = NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE;
  ------------------
  |  |  237|  2.94k|#define NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE ((1 << 16) - 1)
  ------------------
  464|       |
  465|  2.94k|  (*session_ptr)->goaway_flags = NGHTTP2_GOAWAY_NONE;
  466|  2.94k|  (*session_ptr)->local_last_stream_id = (1u << 31) - 1;
  467|  2.94k|  (*session_ptr)->remote_last_stream_id = (1u << 31) - 1;
  468|       |
  469|  2.94k|  (*session_ptr)->pending_local_max_concurrent_stream =
  470|  2.94k|    NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS;
  ------------------
  |  |  103|  2.94k|#define NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS 0xffffffffu
  ------------------
  471|  2.94k|  (*session_ptr)->pending_enable_push = 1;
  472|  2.94k|  (*session_ptr)->pending_no_rfc7540_priorities = UINT8_MAX;
  473|       |
  474|  2.94k|  nghttp2_ratelim_init(&(*session_ptr)->stream_reset_ratelim,
  475|  2.94k|                       NGHTTP2_DEFAULT_STREAM_RESET_BURST,
  ------------------
  |  |  106|  2.94k|#define NGHTTP2_DEFAULT_STREAM_RESET_BURST 1000
  ------------------
  476|  2.94k|                       NGHTTP2_DEFAULT_STREAM_RESET_RATE);
  ------------------
  |  |  107|  2.94k|#define NGHTTP2_DEFAULT_STREAM_RESET_RATE 33
  ------------------
  477|       |
  478|  2.94k|  nghttp2_ratelim_init(&(*session_ptr)->glitch_ratelim,
  479|  2.94k|                       NGHTTP2_DEFAULT_GLITCH_BURST,
  ------------------
  |  |  110|  2.94k|#define NGHTTP2_DEFAULT_GLITCH_BURST 10000
  ------------------
  480|  2.94k|                       NGHTTP2_DEFAULT_GLITCH_RATE);
  ------------------
  |  |  111|  2.94k|#define NGHTTP2_DEFAULT_GLITCH_RATE 330
  ------------------
  481|       |
  482|  2.94k|  if (server) {
  ------------------
  |  Branch (482:7): [True: 0, False: 2.94k]
  ------------------
  483|      0|    (*session_ptr)->server = 1;
  484|      0|  }
  485|       |
  486|  2.94k|  init_settings(&(*session_ptr)->remote_settings);
  487|  2.94k|  init_settings(&(*session_ptr)->local_settings);
  488|       |
  489|  2.94k|  (*session_ptr)->max_incoming_reserved_streams =
  490|  2.94k|    NGHTTP2_MAX_INCOMING_RESERVED_STREAMS;
  ------------------
  |  |   90|  2.94k|#define NGHTTP2_MAX_INCOMING_RESERVED_STREAMS 200
  ------------------
  491|       |
  492|       |  /* Limit max outgoing concurrent streams to sensible value */
  493|  2.94k|  (*session_ptr)->remote_settings.max_concurrent_streams = 100;
  494|       |
  495|  2.94k|  (*session_ptr)->max_send_header_block_length = NGHTTP2_MAX_HEADERSLEN;
  ------------------
  |  |   58|  2.94k|#define NGHTTP2_MAX_HEADERSLEN 65536
  ------------------
  496|  2.94k|  (*session_ptr)->max_outbound_ack = NGHTTP2_DEFAULT_MAX_OBQ_FLOOD_ITEM;
  ------------------
  |  |  100|  2.94k|#define NGHTTP2_DEFAULT_MAX_OBQ_FLOOD_ITEM 1000
  ------------------
  497|  2.94k|  (*session_ptr)->max_settings = NGHTTP2_DEFAULT_MAX_SETTINGS;
  ------------------
  |  |  266|  2.94k|#define NGHTTP2_DEFAULT_MAX_SETTINGS 32
  ------------------
  498|  2.94k|  (*session_ptr)->max_continuations = NGHTTP2_DEFAULT_MAX_CONTINUATIONS;
  ------------------
  |  |  115|  2.94k|#define NGHTTP2_DEFAULT_MAX_CONTINUATIONS 8
  ------------------
  499|       |
  500|  2.94k|  if (option) {
  ------------------
  |  Branch (500:7): [True: 2.94k, False: 0]
  ------------------
  501|  2.94k|    if ((option->opt_set_mask & NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE) &&
  ------------------
  |  Branch (501:9): [True: 2.94k, False: 0]
  ------------------
  502|  2.94k|        option->no_auto_window_update) {
  ------------------
  |  Branch (502:9): [True: 2.94k, False: 0]
  ------------------
  503|  2.94k|      (*session_ptr)->opt_flags |= NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE;
  504|  2.94k|    }
  505|       |
  506|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS) {
  ------------------
  |  Branch (506:9): [True: 0, False: 2.94k]
  ------------------
  507|      0|      (*session_ptr)->remote_settings.max_concurrent_streams =
  508|      0|        option->peer_max_concurrent_streams;
  509|      0|    }
  510|       |
  511|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_RESERVED_REMOTE_STREAMS) {
  ------------------
  |  Branch (511:9): [True: 0, False: 2.94k]
  ------------------
  512|      0|      (*session_ptr)->max_incoming_reserved_streams =
  513|      0|        option->max_reserved_remote_streams;
  514|      0|    }
  515|       |
  516|  2.94k|    if ((option->opt_set_mask & NGHTTP2_OPT_NO_RECV_CLIENT_MAGIC) &&
  ------------------
  |  Branch (516:9): [True: 0, False: 2.94k]
  ------------------
  517|      0|        option->no_recv_client_magic) {
  ------------------
  |  Branch (517:9): [True: 0, False: 0]
  ------------------
  518|      0|      (*session_ptr)->opt_flags |= NGHTTP2_OPTMASK_NO_RECV_CLIENT_MAGIC;
  519|      0|    }
  520|       |
  521|  2.94k|    if ((option->opt_set_mask & NGHTTP2_OPT_NO_HTTP_MESSAGING) &&
  ------------------
  |  Branch (521:9): [True: 0, False: 2.94k]
  ------------------
  522|      0|        option->no_http_messaging) {
  ------------------
  |  Branch (522:9): [True: 0, False: 0]
  ------------------
  523|      0|      (*session_ptr)->opt_flags |= NGHTTP2_OPTMASK_NO_HTTP_MESSAGING;
  524|      0|    }
  525|       |
  526|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_USER_RECV_EXT_TYPES) {
  ------------------
  |  Branch (526:9): [True: 0, False: 2.94k]
  ------------------
  527|      0|      memcpy((*session_ptr)->user_recv_ext_types, option->user_recv_ext_types,
  528|      0|             sizeof((*session_ptr)->user_recv_ext_types));
  529|      0|    }
  530|       |
  531|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_BUILTIN_RECV_EXT_TYPES) {
  ------------------
  |  Branch (531:9): [True: 0, False: 2.94k]
  ------------------
  532|      0|      (*session_ptr)->builtin_recv_ext_types = option->builtin_recv_ext_types;
  533|      0|    }
  534|       |
  535|  2.94k|    if ((option->opt_set_mask & NGHTTP2_OPT_NO_AUTO_PING_ACK) &&
  ------------------
  |  Branch (535:9): [True: 0, False: 2.94k]
  ------------------
  536|      0|        option->no_auto_ping_ack) {
  ------------------
  |  Branch (536:9): [True: 0, False: 0]
  ------------------
  537|      0|      (*session_ptr)->opt_flags |= NGHTTP2_OPTMASK_NO_AUTO_PING_ACK;
  538|      0|    }
  539|       |
  540|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_SEND_HEADER_BLOCK_LENGTH) {
  ------------------
  |  Branch (540:9): [True: 0, False: 2.94k]
  ------------------
  541|      0|      (*session_ptr)->max_send_header_block_length =
  542|      0|        option->max_send_header_block_length;
  543|      0|    }
  544|       |
  545|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_DEFLATE_DYNAMIC_TABLE_SIZE) {
  ------------------
  |  Branch (545:9): [True: 0, False: 2.94k]
  ------------------
  546|      0|      max_deflate_dynamic_table_size = option->max_deflate_dynamic_table_size;
  547|      0|    }
  548|       |
  549|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_OUTBOUND_ACK) {
  ------------------
  |  Branch (549:9): [True: 0, False: 2.94k]
  ------------------
  550|      0|      (*session_ptr)->max_outbound_ack = option->max_outbound_ack;
  551|      0|    }
  552|       |
  553|  2.94k|    if ((option->opt_set_mask & NGHTTP2_OPT_MAX_SETTINGS) &&
  ------------------
  |  Branch (553:9): [True: 0, False: 2.94k]
  ------------------
  554|      0|        option->max_settings) {
  ------------------
  |  Branch (554:9): [True: 0, False: 0]
  ------------------
  555|      0|      (*session_ptr)->max_settings = option->max_settings;
  556|      0|    }
  557|       |
  558|  2.94k|    if ((option->opt_set_mask &
  ------------------
  |  Branch (558:9): [True: 2.94k, False: 0]
  ------------------
  559|  2.94k|         NGHTTP2_OPT_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) &&
  560|  2.94k|        option->no_rfc9113_leading_and_trailing_ws_validation) {
  ------------------
  |  Branch (560:9): [True: 2.94k, False: 0]
  ------------------
  561|  2.94k|      (*session_ptr)->opt_flags |=
  562|  2.94k|        NGHTTP2_OPTMASK_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION;
  563|  2.94k|    }
  564|       |
  565|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_STREAM_RESET_RATE_LIMIT) {
  ------------------
  |  Branch (565:9): [True: 0, False: 2.94k]
  ------------------
  566|      0|      nghttp2_ratelim_init(&(*session_ptr)->stream_reset_ratelim,
  567|      0|                           option->stream_reset_burst,
  568|      0|                           option->stream_reset_rate);
  569|      0|    }
  570|       |
  571|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_CONTINUATIONS) {
  ------------------
  |  Branch (571:9): [True: 0, False: 2.94k]
  ------------------
  572|      0|      (*session_ptr)->max_continuations = option->max_continuations;
  573|      0|    }
  574|       |
  575|  2.94k|    if (option->opt_set_mask & NGHTTP2_OPT_GLITCH_RATE_LIMIT) {
  ------------------
  |  Branch (575:9): [True: 0, False: 2.94k]
  ------------------
  576|      0|      nghttp2_ratelim_init(&(*session_ptr)->glitch_ratelim,
  577|      0|                           option->glitch_burst, option->glitch_rate);
  578|      0|    }
  579|  2.94k|  }
  580|       |
  581|  2.94k|  rv = nghttp2_hd_deflate_init2(&(*session_ptr)->hd_deflater,
  582|  2.94k|                                max_deflate_dynamic_table_size, mem);
  583|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (583:7): [True: 0, False: 2.94k]
  ------------------
  584|      0|    goto fail_hd_deflater;
  585|      0|  }
  586|  2.94k|  rv = nghttp2_hd_inflate_init(&(*session_ptr)->hd_inflater, mem);
  587|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (587:7): [True: 0, False: 2.94k]
  ------------------
  588|      0|    goto fail_hd_inflater;
  589|      0|  }
  590|       |
  591|  2.94k|  nbuffer = ((*session_ptr)->max_send_header_block_length +
  592|  2.94k|             NGHTTP2_FRAMEBUF_CHUNKLEN - 1) /
  ------------------
  |  |   50|  2.94k|  (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   40|  2.94k|#define NGHTTP2_FRAME_HDLEN 9
  |  |  ------------------
  |  |                 (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   45|  2.94k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  |  |  ------------------
  ------------------
  593|  2.94k|            NGHTTP2_FRAMEBUF_CHUNKLEN;
  ------------------
  |  |   50|  2.94k|  (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   40|  2.94k|#define NGHTTP2_FRAME_HDLEN 9
  |  |  ------------------
  |  |                 (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   45|  2.94k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  |  |  ------------------
  ------------------
  594|       |
  595|  2.94k|  if (nbuffer == 0) {
  ------------------
  |  Branch (595:7): [True: 0, False: 2.94k]
  ------------------
  596|      0|    nbuffer = 1;
  597|      0|  }
  598|       |
  599|       |  /* 1 for Pad Field. */
  600|  2.94k|  rv = nghttp2_bufs_init3(&(*session_ptr)->aob.framebufs,
  601|  2.94k|                          NGHTTP2_FRAMEBUF_CHUNKLEN, nbuffer, 1,
  ------------------
  |  |   50|  2.94k|  (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   40|  2.94k|#define NGHTTP2_FRAME_HDLEN 9
  |  |  ------------------
  |  |                 (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   45|  2.94k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  |  |  ------------------
  ------------------
  602|  2.94k|                          NGHTTP2_FRAME_HDLEN + 1, mem);
  ------------------
  |  |   40|  2.94k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  603|  2.94k|  if (rv != 0) {
  ------------------
  |  Branch (603:7): [True: 0, False: 2.94k]
  ------------------
  604|      0|    goto fail_aob_framebuf;
  605|      0|  }
  606|       |
  607|  2.94k|  if (callbacks->rand_callback) {
  ------------------
  |  Branch (607:7): [True: 0, False: 2.94k]
  ------------------
  608|      0|    callbacks->rand_callback((uint8_t *)&map_seed, sizeof(map_seed));
  609|  2.94k|  } else {
  610|  2.94k|    map_seed = 0;
  611|  2.94k|  }
  612|       |
  613|  2.94k|  nghttp2_map_init(&(*session_ptr)->streams, map_seed, mem);
  614|       |
  615|  2.94k|  active_outbound_item_reset(&(*session_ptr)->aob, mem);
  616|       |
  617|  2.94k|  (*session_ptr)->callbacks = *callbacks;
  618|  2.94k|  (*session_ptr)->user_data = user_data;
  619|       |
  620|  2.94k|  session_inbound_frame_reset(*session_ptr);
  621|       |
  622|  2.94k|  if (nghttp2_enable_strict_preface) {
  ------------------
  |  Branch (622:7): [True: 2.94k, False: 0]
  ------------------
  623|  2.94k|    nghttp2_inbound_frame *iframe = &(*session_ptr)->iframe;
  624|       |
  625|  2.94k|    if (server && ((*session_ptr)->opt_flags &
  ------------------
  |  Branch (625:9): [True: 0, False: 2.94k]
  |  Branch (625:19): [True: 0, False: 0]
  ------------------
  626|      0|                   NGHTTP2_OPTMASK_NO_RECV_CLIENT_MAGIC) == 0) {
  627|      0|      iframe->state = NGHTTP2_IB_READ_CLIENT_MAGIC;
  628|      0|      iframe->payloadleft = NGHTTP2_CLIENT_MAGIC_LEN;
  ------------------
  |  |  259|      0|#define NGHTTP2_CLIENT_MAGIC_LEN 24
  ------------------
  629|  2.94k|    } else {
  630|  2.94k|      iframe->state = NGHTTP2_IB_READ_FIRST_SETTINGS;
  631|  2.94k|    }
  632|       |
  633|  2.94k|    if (!server) {
  ------------------
  |  Branch (633:9): [True: 2.94k, False: 0]
  ------------------
  634|  2.94k|      (*session_ptr)->aob.state = NGHTTP2_OB_SEND_CLIENT_MAGIC;
  635|  2.94k|      nghttp2_bufs_add(&(*session_ptr)->aob.framebufs, NGHTTP2_CLIENT_MAGIC,
  ------------------
  |  |  252|  2.94k|#define NGHTTP2_CLIENT_MAGIC "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
  ------------------
  636|  2.94k|                       NGHTTP2_CLIENT_MAGIC_LEN);
  ------------------
  |  |  259|  2.94k|#define NGHTTP2_CLIENT_MAGIC_LEN 24
  ------------------
  637|  2.94k|    }
  638|  2.94k|  }
  639|       |
  640|  26.4k|  for (i = 0; i < NGHTTP2_EXTPRI_URGENCY_LEVELS; ++i) {
  ------------------
  |  | 5028|  26.4k|#define NGHTTP2_EXTPRI_URGENCY_LEVELS (NGHTTP2_EXTPRI_URGENCY_LOW + 1)
  |  |  ------------------
  |  |  |  | 5020|  26.4k|#define NGHTTP2_EXTPRI_URGENCY_LOW 7
  |  |  ------------------
  ------------------
  |  Branch (640:15): [True: 23.5k, False: 2.94k]
  ------------------
  641|  23.5k|    nghttp2_pq_init(&(*session_ptr)->sched[i].ob_data, stream_less, mem);
  642|  23.5k|  }
  643|       |
  644|  2.94k|  return 0;
  645|       |
  646|      0|fail_aob_framebuf:
  647|      0|  nghttp2_hd_inflate_free(&(*session_ptr)->hd_inflater);
  648|      0|fail_hd_inflater:
  649|      0|  nghttp2_hd_deflate_free(&(*session_ptr)->hd_deflater);
  650|      0|fail_hd_deflater:
  651|      0|  nghttp2_mem_free(mem, *session_ptr);
  652|      0|fail_session:
  653|      0|  return rv;
  654|      0|}
nghttp2_session.c:init_settings:
  394|  5.88k|static void init_settings(nghttp2_settings_storage *settings) {
  395|  5.88k|  settings->header_table_size = NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE;
  ------------------
  |  |   39|  5.88k|#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
  |  |  ------------------
  |  |  |  |  244|  5.88k|#define NGHTTP2_DEFAULT_HEADER_TABLE_SIZE (1 << 12)
  |  |  ------------------
  ------------------
  396|  5.88k|  settings->enable_push = 1;
  397|  5.88k|  settings->max_concurrent_streams = NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS;
  ------------------
  |  |  103|  5.88k|#define NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS 0xffffffffu
  ------------------
  398|  5.88k|  settings->initial_window_size = NGHTTP2_INITIAL_WINDOW_SIZE;
  ------------------
  |  |  231|  5.88k|#define NGHTTP2_INITIAL_WINDOW_SIZE ((1 << 16) - 1)
  ------------------
  399|  5.88k|  settings->max_frame_size = NGHTTP2_MAX_FRAME_SIZE_MIN;
  ------------------
  |  |   43|  5.88k|#define NGHTTP2_MAX_FRAME_SIZE_MIN (1 << 14)
  ------------------
  400|  5.88k|  settings->max_header_list_size = UINT32_MAX;
  401|       |  settings->no_rfc7540_priorities = UINT32_MAX;
  402|  5.88k|}
nghttp2_session.c:inflight_settings_del:
  781|  2.94k|                                  nghttp2_mem *mem) {
  782|  2.94k|  if (!settings) {
  ------------------
  |  Branch (782:7): [True: 0, False: 2.94k]
  ------------------
  783|      0|    return;
  784|      0|  }
  785|       |
  786|  2.94k|  nghttp2_mem_free(mem, settings->iv);
  787|  2.94k|  nghttp2_mem_free(mem, settings);
  788|  2.94k|}
nghttp2_session.c:free_streams:
  724|  1.10k|static int free_streams(void *entry, void *ptr) {
  725|  1.10k|  nghttp2_session *session;
  726|  1.10k|  nghttp2_stream *stream;
  727|  1.10k|  nghttp2_outbound_item *item;
  728|  1.10k|  nghttp2_mem *mem;
  729|       |
  730|  1.10k|  session = (nghttp2_session *)ptr;
  731|  1.10k|  mem = &session->mem;
  732|  1.10k|  stream = (nghttp2_stream *)entry;
  733|  1.10k|  item = stream->item;
  734|       |
  735|  1.10k|  if (item && !item->queued && item != session->aob.item) {
  ------------------
  |  Branch (735:7): [True: 120, False: 985]
  |  Branch (735:15): [True: 120, False: 0]
  |  Branch (735:32): [True: 32, False: 88]
  ------------------
  736|     32|    nghttp2_outbound_item_free(item, mem);
  737|     32|    nghttp2_mem_free(mem, item);
  738|     32|  }
  739|       |
  740|  1.10k|  nghttp2_stream_free(stream);
  741|  1.10k|  nghttp2_mem_free(mem, stream);
  742|       |
  743|  1.10k|  return 0;
  744|  1.10k|}
nghttp2_session.c:ob_q_free:
  746|  8.83k|static void ob_q_free(nghttp2_outbound_queue *q, nghttp2_mem *mem) {
  747|  8.83k|  nghttp2_outbound_item *item, *next;
  748|  9.06k|  for (item = q->head; item;) {
  ------------------
  |  Branch (748:24): [True: 229, False: 8.83k]
  ------------------
  749|    229|    next = item->qnext;
  750|    229|    nghttp2_outbound_item_free(item, mem);
  751|    229|    nghttp2_mem_free(mem, item);
  752|    229|    item = next;
  753|    229|  }
  754|  8.83k|}
nghttp2_session.c:active_outbound_item_reset:
  405|  25.2k|                                       nghttp2_mem *mem) {
  406|  25.2k|  DEBUGF("send: reset nghttp2_active_outbound_item\n");
  ------------------
  |  |   39|  25.2k|    do {                                                                       \
  |  |   40|  25.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 25.2k]
  |  |  ------------------
  ------------------
  407|  25.2k|  DEBUGF("send: aob->item = %p\n", aob->item);
  ------------------
  |  |   39|  25.2k|    do {                                                                       \
  |  |   40|  25.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 25.2k]
  |  |  ------------------
  ------------------
  408|  25.2k|  nghttp2_outbound_item_free(aob->item, mem);
  409|  25.2k|  nghttp2_mem_free(mem, aob->item);
  410|       |  aob->item = NULL;
  411|  25.2k|  nghttp2_bufs_reset(&aob->framebufs);
  412|  25.2k|  aob->state = NGHTTP2_OB_POP_ITEM;
  413|  25.2k|}
nghttp2_session.c:session_inbound_frame_reset:
  303|  8.48k|static void session_inbound_frame_reset(nghttp2_session *session) {
  304|  8.48k|  nghttp2_inbound_frame *iframe = &session->iframe;
  305|  8.48k|  nghttp2_mem *mem = &session->mem;
  306|       |  /* A bit risky code, since if this function is called from
  307|       |     nghttp2_session_new(), we rely on the fact that
  308|       |     iframe->frame.hd.type is 0, so that no free is performed. */
  309|  8.48k|  switch (iframe->frame.hd.type) {
  310|  4.15k|  case NGHTTP2_DATA:
  ------------------
  |  Branch (310:3): [True: 4.15k, False: 4.33k]
  ------------------
  311|  4.15k|    break;
  312|  1.35k|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (312:3): [True: 1.35k, False: 7.12k]
  ------------------
  313|  1.35k|    nghttp2_frame_headers_free(&iframe->frame.headers, mem);
  314|  1.35k|    break;
  315|      5|  case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (315:3): [True: 5, False: 8.47k]
  ------------------
  316|      5|    nghttp2_frame_priority_free(&iframe->frame.priority);
  317|      5|    break;
  318|     29|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (318:3): [True: 29, False: 8.45k]
  ------------------
  319|     29|    nghttp2_frame_rst_stream_free(&iframe->frame.rst_stream);
  320|     29|    break;
  321|  2.32k|  case NGHTTP2_SETTINGS:
  ------------------
  |  Branch (321:3): [True: 2.32k, False: 6.15k]
  ------------------
  322|  2.32k|    nghttp2_frame_settings_free(&iframe->frame.settings, mem);
  323|       |
  324|  2.32k|    nghttp2_mem_free(mem, iframe->iv);
  325|       |
  326|  2.32k|    iframe->iv = NULL;
  327|  2.32k|    iframe->niv = 0;
  328|  2.32k|    iframe->max_niv = 0;
  329|       |
  330|  2.32k|    break;
  331|    180|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (331:3): [True: 180, False: 8.30k]
  ------------------
  332|    180|    nghttp2_frame_push_promise_free(&iframe->frame.push_promise, mem);
  333|    180|    break;
  334|      8|  case NGHTTP2_PING:
  ------------------
  |  Branch (334:3): [True: 8, False: 8.47k]
  ------------------
  335|      8|    nghttp2_frame_ping_free(&iframe->frame.ping);
  336|      8|    break;
  337|     73|  case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (337:3): [True: 73, False: 8.40k]
  ------------------
  338|     73|    nghttp2_frame_goaway_free(&iframe->frame.goaway, mem);
  339|     73|    break;
  340|    124|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (340:3): [True: 124, False: 8.35k]
  ------------------
  341|    124|    nghttp2_frame_window_update_free(&iframe->frame.window_update);
  342|    124|    break;
  343|    230|  default:
  ------------------
  |  Branch (343:3): [True: 230, False: 8.25k]
  ------------------
  344|       |    /* extension frame */
  345|    230|    if (check_ext_type_set(session->user_recv_ext_types,
  ------------------
  |  Branch (345:9): [True: 0, False: 230]
  ------------------
  346|    230|                           iframe->frame.hd.type)) {
  347|      0|      nghttp2_frame_extension_free(&iframe->frame.ext);
  348|    230|    } else {
  349|    230|      switch (iframe->frame.hd.type) {
  ------------------
  |  Branch (349:15): [True: 25, False: 205]
  ------------------
  350|     11|      case NGHTTP2_ALTSVC:
  ------------------
  |  Branch (350:7): [True: 11, False: 219]
  ------------------
  351|     11|        if ((session->builtin_recv_ext_types & NGHTTP2_TYPEMASK_ALTSVC) == 0) {
  ------------------
  |  Branch (351:13): [True: 11, False: 0]
  ------------------
  352|     11|          break;
  353|     11|        }
  354|      0|        nghttp2_frame_altsvc_free(&iframe->frame.ext, mem);
  355|      0|        break;
  356|      5|      case NGHTTP2_ORIGIN:
  ------------------
  |  Branch (356:7): [True: 5, False: 225]
  ------------------
  357|      5|        if ((session->builtin_recv_ext_types & NGHTTP2_TYPEMASK_ORIGIN) == 0) {
  ------------------
  |  Branch (357:13): [True: 5, False: 0]
  ------------------
  358|      5|          break;
  359|      5|        }
  360|      0|        nghttp2_frame_origin_free(&iframe->frame.ext, mem);
  361|      0|        break;
  362|      9|      case NGHTTP2_PRIORITY_UPDATE:
  ------------------
  |  Branch (362:7): [True: 9, False: 221]
  ------------------
  363|      9|        if ((session->builtin_recv_ext_types &
  ------------------
  |  Branch (363:13): [True: 9, False: 0]
  ------------------
  364|      9|             NGHTTP2_TYPEMASK_PRIORITY_UPDATE) == 0) {
  365|      9|          break;
  366|      9|        }
  367|       |        /* Do not call nghttp2_frame_priority_update_free, because all
  368|       |           fields point to sbuf. */
  369|      0|        break;
  370|    230|      }
  371|    230|    }
  372|       |
  373|    230|    break;
  374|  8.48k|  }
  375|       |
  376|  8.48k|  memset(&iframe->frame, 0, sizeof(nghttp2_frame));
  377|  8.48k|  memset(&iframe->ext_frame_payload, 0, sizeof(nghttp2_ext_frame_payload));
  378|       |
  379|  8.48k|  iframe->state = NGHTTP2_IB_READ_HEAD;
  380|       |
  381|  8.48k|  nghttp2_buf_wrap_init(&iframe->sbuf, iframe->raw_sbuf,
  382|  8.48k|                        sizeof(iframe->raw_sbuf));
  383|  8.48k|  iframe->sbuf.mark += NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  8.48k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  384|       |
  385|  8.48k|  nghttp2_buf_free(&iframe->lbuf, mem);
  386|  8.48k|  nghttp2_buf_wrap_init(&iframe->lbuf, NULL, 0);
  387|       |
  388|  8.48k|  iframe->raw_lbuf = NULL;
  389|       |
  390|  8.48k|  iframe->payloadleft = 0;
  391|  8.48k|  iframe->padlen = 0;
  392|  8.48k|}
nghttp2_session.c:session_attach_stream_item:
  887|    717|                                      nghttp2_outbound_item *item) {
  888|    717|  int rv;
  889|       |
  890|    717|  nghttp2_stream_attach_item(stream, item);
  891|       |
  892|    717|  rv = session_ob_data_push(session, stream);
  893|    717|  if (rv != 0) {
  ------------------
  |  Branch (893:7): [True: 0, False: 717]
  ------------------
  894|      0|    nghttp2_stream_detach_item(stream);
  895|       |
  896|      0|    return rv;
  897|      0|  }
  898|       |
  899|    717|  return 0;
  900|    717|}
nghttp2_session.c:session_ob_data_push:
  840|    891|                                nghttp2_stream *stream) {
  841|    891|  int rv;
  842|    891|  uint32_t urgency;
  843|    891|  int inc;
  844|    891|  nghttp2_pq *pq;
  845|       |
  846|    891|  assert(stream->queued == 0);
  ------------------
  |  Branch (846:3): [True: 0, False: 891]
  |  Branch (846:3): [True: 891, False: 0]
  ------------------
  847|       |
  848|    891|  urgency = nghttp2_extpri_uint8_urgency(stream->extpri);
  ------------------
  |  |   57|    891|  ((uint32_t)((PRI) & ~NGHTTP2_EXTPRI_INC_MASK))
  |  |  ------------------
  |  |  |  |   39|    891|#define NGHTTP2_EXTPRI_INC_MASK (1 << 7)
  |  |  ------------------
  ------------------
  849|    891|  inc = nghttp2_extpri_uint8_inc(stream->extpri);
  ------------------
  |  |   63|    891|#define nghttp2_extpri_uint8_inc(PRI) (((PRI) & NGHTTP2_EXTPRI_INC_MASK) != 0)
  |  |  ------------------
  |  |  |  |   39|    891|#define NGHTTP2_EXTPRI_INC_MASK (1 << 7)
  |  |  ------------------
  ------------------
  850|       |
  851|    891|  assert(urgency < NGHTTP2_EXTPRI_URGENCY_LEVELS);
  ------------------
  |  Branch (851:3): [True: 0, False: 891]
  |  Branch (851:3): [True: 891, False: 0]
  ------------------
  852|       |
  853|    891|  pq = &session->sched[urgency].ob_data;
  854|       |
  855|    891|  stream->cycle = pq_get_first_cycle(pq);
  856|    891|  if (inc) {
  ------------------
  |  Branch (856:7): [True: 0, False: 891]
  ------------------
  857|      0|    stream->cycle += stream->last_writelen;
  858|      0|  }
  859|       |
  860|    891|  rv = nghttp2_pq_push(pq, &stream->pq_entry);
  861|    891|  if (rv != 0) {
  ------------------
  |  Branch (861:7): [True: 0, False: 891]
  ------------------
  862|      0|    return rv;
  863|      0|  }
  864|       |
  865|    891|  stream->queued = 1;
  866|       |
  867|    891|  return 0;
  868|    891|}
nghttp2_session.c:pq_get_first_cycle:
  828|    891|static uint64_t pq_get_first_cycle(nghttp2_pq *pq) {
  829|    891|  nghttp2_stream *stream;
  830|       |
  831|    891|  if (nghttp2_pq_empty(pq)) {
  ------------------
  |  Branch (831:7): [True: 891, False: 0]
  ------------------
  832|    891|    return 0;
  833|    891|  }
  834|       |
  835|      0|  stream = nghttp2_struct_of(nghttp2_pq_top(pq), nghttp2_stream, pq_entry);
  ------------------
  |  |   75|      0|  ((type *)(void *)((char *)(ptr) - offsetof(type, member)))
  ------------------
  836|      0|  return stream->cycle;
  837|    891|}
nghttp2_session.c:session_detach_stream_item:
  903|    597|                                       nghttp2_stream *stream) {
  904|    597|  nghttp2_stream_detach_item(stream);
  905|       |
  906|    597|  if (!stream->queued) {
  ------------------
  |  Branch (906:7): [True: 141, False: 456]
  ------------------
  907|    141|    return;
  908|    141|  }
  909|       |
  910|    456|  session_ob_data_remove(session, stream);
  911|    456|}
nghttp2_session.c:session_ob_data_remove:
  871|    803|                                   nghttp2_stream *stream) {
  872|    803|  uint32_t urgency;
  873|       |
  874|    803|  assert(stream->queued == 1);
  ------------------
  |  Branch (874:3): [True: 0, False: 803]
  |  Branch (874:3): [True: 803, False: 0]
  ------------------
  875|       |
  876|    803|  urgency = nghttp2_extpri_uint8_urgency(stream->extpri);
  ------------------
  |  |   57|    803|  ((uint32_t)((PRI) & ~NGHTTP2_EXTPRI_INC_MASK))
  |  |  ------------------
  |  |  |  |   39|    803|#define NGHTTP2_EXTPRI_INC_MASK (1 << 7)
  |  |  ------------------
  ------------------
  877|       |
  878|    803|  assert(urgency < NGHTTP2_EXTPRI_URGENCY_LEVELS);
  ------------------
  |  Branch (878:3): [True: 0, False: 803]
  |  Branch (878:3): [True: 803, False: 0]
  ------------------
  879|       |
  880|    803|  nghttp2_pq_remove(&session->sched[urgency].ob_data, &stream->pq_entry);
  881|       |
  882|    803|  stream->queued = 0;
  883|    803|}
nghttp2_session.c:session_is_closing:
 1406|  24.8k|static int session_is_closing(nghttp2_session *session) {
 1407|  24.8k|  return (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) != 0 ||
  ------------------
  |  Branch (1407:10): [True: 2.75k, False: 22.0k]
  ------------------
 1408|  22.0k|         (nghttp2_session_want_read(session) == 0 &&
  ------------------
  |  Branch (1408:11): [True: 7, False: 22.0k]
  ------------------
 1409|      7|          nghttp2_session_want_write(session) == 0);
  ------------------
  |  Branch (1409:11): [True: 4, False: 3]
  ------------------
 1410|  24.8k|}
nghttp2_session.c:session_is_outgoing_concurrent_streams_max:
   52|  18.6k|session_is_outgoing_concurrent_streams_max(nghttp2_session *session) {
   53|  18.6k|  return session->remote_settings.max_concurrent_streams <=
   54|  18.6k|         session->num_outgoing_streams;
   55|  18.6k|}
nghttp2_session.c:session_sched_get_next_outbound_item:
  937|  12.8k|session_sched_get_next_outbound_item(nghttp2_session *session) {
  938|  12.8k|  size_t i;
  939|  12.8k|  nghttp2_pq_entry *ent;
  940|  12.8k|  nghttp2_stream *stream;
  941|       |
  942|   109k|  for (i = 0; i < NGHTTP2_EXTPRI_URGENCY_LEVELS; ++i) {
  ------------------
  |  | 5028|   109k|#define NGHTTP2_EXTPRI_URGENCY_LEVELS (NGHTTP2_EXTPRI_URGENCY_LOW + 1)
  |  |  ------------------
  |  |  |  | 5020|   109k|#define NGHTTP2_EXTPRI_URGENCY_LOW 7
  |  |  ------------------
  ------------------
  |  Branch (942:15): [True: 97.9k, False: 11.6k]
  ------------------
  943|  97.9k|    ent = nghttp2_pq_top(&session->sched[i].ob_data);
  944|  97.9k|    if (!ent) {
  ------------------
  |  Branch (944:9): [True: 96.6k, False: 1.26k]
  ------------------
  945|  96.6k|      continue;
  946|  96.6k|    }
  947|       |
  948|  1.26k|    stream = nghttp2_struct_of(ent, nghttp2_stream, pq_entry);
  ------------------
  |  |   75|  1.26k|  ((type *)(void *)((char *)(ptr) - offsetof(type, member)))
  ------------------
  949|  1.26k|    return stream->item;
  950|  97.9k|  }
  951|       |
  952|  11.6k|  return NULL;
  953|  12.8k|}
nghttp2_session.c:nghttp2_session_mem_send_internal:
 2826|  30.9k|                                                       int fast_cb) {
 2827|  30.9k|  int rv;
 2828|  30.9k|  nghttp2_active_outbound_item *aob;
 2829|  30.9k|  nghttp2_bufs *framebufs;
 2830|  30.9k|  nghttp2_mem *mem;
 2831|       |
 2832|  30.9k|  mem = &session->mem;
 2833|  30.9k|  aob = &session->aob;
 2834|  30.9k|  framebufs = &aob->framebufs;
 2835|       |
 2836|  65.0k|  for (;;) {
 2837|  65.0k|    switch (aob->state) {
  ------------------
  |  Branch (2837:13): [True: 65.0k, False: 0]
  ------------------
 2838|  28.1k|    case NGHTTP2_OB_POP_ITEM: {
  ------------------
  |  Branch (2838:5): [True: 28.1k, False: 36.9k]
  ------------------
 2839|  28.1k|      nghttp2_outbound_item *item;
 2840|       |
 2841|  28.1k|      item = nghttp2_session_pop_next_ob_item(session);
 2842|  28.1k|      if (item == NULL) {
  ------------------
  |  Branch (2842:11): [True: 11.6k, False: 16.5k]
  ------------------
 2843|  11.6k|        return 0;
 2844|  11.6k|      }
 2845|       |
 2846|  16.5k|      rv = session_prep_frame(session, item);
 2847|  16.5k|      if (rv == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (2847:11): [True: 0, False: 16.5k]
  ------------------
 2848|      0|        return 0;
 2849|      0|      }
 2850|  16.5k|      if (rv == NGHTTP2_ERR_DEFERRED) {
  ------------------
  |  Branch (2850:11): [True: 347, False: 16.1k]
  ------------------
 2851|    347|        DEBUGF("send: frame transmission deferred\n");
  ------------------
  |  |   39|    347|    do {                                                                       \
  |  |   40|    347|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 347]
  |  |  ------------------
  ------------------
 2852|    347|        break;
 2853|    347|      }
 2854|  16.1k|      if (rv < 0) {
  ------------------
  |  Branch (2854:11): [True: 1.49k, False: 14.7k]
  ------------------
 2855|  1.49k|        int32_t opened_stream_id = 0;
 2856|  1.49k|        uint32_t error_code = NGHTTP2_INTERNAL_ERROR;
 2857|  1.49k|        int rv2 = 0;
 2858|       |
 2859|  1.49k|        DEBUGF("send: frame preparation failed with %s\n",
  ------------------
  |  |   39|  1.49k|    do {                                                                       \
  |  |   40|  1.49k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.49k]
  |  |  ------------------
  ------------------
 2860|  1.49k|               nghttp2_strerror(rv));
 2861|       |        /* TODO If the error comes from compressor, the connection
 2862|       |           must be closed. */
 2863|  1.49k|        if (item->frame.hd.type != NGHTTP2_DATA &&
  ------------------
  |  Branch (2863:13): [True: 1.48k, False: 10]
  ------------------
 2864|  1.48k|            session->callbacks.on_frame_not_send_callback && is_non_fatal(rv)) {
  ------------------
  |  Branch (2864:13): [True: 0, False: 1.48k]
  |  Branch (2864:62): [True: 0, False: 0]
  ------------------
 2865|      0|          nghttp2_frame *frame = &item->frame;
 2866|       |          /* The library is responsible for the transmission of
 2867|       |             WINDOW_UPDATE frame, so we don't call error callback for
 2868|       |             it.  As for RST_STREAM, if it is not sent due to missing
 2869|       |             stream, we also do not call error callback because it may
 2870|       |             cause a lot of noises.*/
 2871|      0|          if (frame->hd.type != NGHTTP2_WINDOW_UPDATE &&
  ------------------
  |  Branch (2871:15): [True: 0, False: 0]
  ------------------
 2872|      0|              (frame->hd.type != NGHTTP2_RST_STREAM ||
  ------------------
  |  Branch (2872:16): [True: 0, False: 0]
  ------------------
 2873|      0|               rv != NGHTTP2_ERR_STREAM_CLOSED) &&
  ------------------
  |  Branch (2873:16): [True: 0, False: 0]
  ------------------
 2874|      0|              session->callbacks.on_frame_not_send_callback(
  ------------------
  |  Branch (2874:15): [True: 0, False: 0]
  ------------------
 2875|      0|                session, frame, rv, session->user_data) != 0) {
 2876|      0|            nghttp2_outbound_item_free(item, mem);
 2877|      0|            nghttp2_mem_free(mem, item);
 2878|       |
 2879|      0|            return NGHTTP2_ERR_CALLBACK_FAILURE;
 2880|      0|          }
 2881|      0|        }
 2882|       |        /* We have to close stream opened by failed request HEADERS
 2883|       |           or PUSH_PROMISE. */
 2884|  1.49k|        switch (item->frame.hd.type) {
  ------------------
  |  Branch (2884:17): [True: 0, False: 1.49k]
  ------------------
 2885|      0|        case NGHTTP2_HEADERS:
  ------------------
  |  Branch (2885:9): [True: 0, False: 1.49k]
  ------------------
 2886|      0|          if (item->frame.headers.cat == NGHTTP2_HCAT_REQUEST) {
  ------------------
  |  Branch (2886:15): [True: 0, False: 0]
  ------------------
 2887|      0|            opened_stream_id = item->frame.hd.stream_id;
 2888|      0|            if (item->aux_data.headers.canceled) {
  ------------------
  |  Branch (2888:17): [True: 0, False: 0]
  ------------------
 2889|      0|              error_code = item->aux_data.headers.error_code;
 2890|      0|            } else {
 2891|       |              /* Set error_code to REFUSED_STREAM so that application
 2892|       |                 can send request again. */
 2893|      0|              error_code = NGHTTP2_REFUSED_STREAM;
 2894|      0|            }
 2895|      0|          }
 2896|      0|          break;
 2897|      0|        case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (2897:9): [True: 0, False: 1.49k]
  ------------------
 2898|      0|          opened_stream_id = item->frame.push_promise.promised_stream_id;
 2899|      0|          break;
 2900|  1.49k|        }
 2901|  1.49k|        if (opened_stream_id) {
  ------------------
  |  Branch (2901:13): [True: 0, False: 1.49k]
  ------------------
 2902|       |          /* careful not to override rv */
 2903|      0|          rv2 =
 2904|      0|            nghttp2_session_close_stream(session, opened_stream_id, error_code);
 2905|      0|        }
 2906|       |
 2907|  1.49k|        nghttp2_outbound_item_free(item, mem);
 2908|  1.49k|        nghttp2_mem_free(mem, item);
 2909|  1.49k|        active_outbound_item_reset(aob, mem);
 2910|       |
 2911|  1.49k|        if (nghttp2_is_fatal(rv2)) {
  ------------------
  |  Branch (2911:13): [True: 0, False: 1.49k]
  ------------------
 2912|      0|          return rv2;
 2913|      0|        }
 2914|       |
 2915|  1.49k|        if (rv == NGHTTP2_ERR_HEADER_COMP) {
  ------------------
  |  Branch (2915:13): [True: 0, False: 1.49k]
  ------------------
 2916|       |          /* If header compression error occurred, should terminate
 2917|       |             connection. */
 2918|      0|          rv =
 2919|      0|            nghttp2_session_terminate_session(session, NGHTTP2_INTERNAL_ERROR);
 2920|      0|        }
 2921|  1.49k|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2921:13): [True: 0, False: 1.49k]
  ------------------
 2922|      0|          return rv;
 2923|      0|        }
 2924|  1.49k|        break;
 2925|  1.49k|      }
 2926|       |
 2927|  14.7k|      aob->item = item;
 2928|       |
 2929|  14.7k|      nghttp2_bufs_rewind(framebufs);
  ------------------
  |  |  387|  14.7k|  do {                                                                         \
  |  |  388|  14.7k|    (BUFS)->cur = (BUFS)->head;                                                \
  |  |  389|  14.7k|  } while (0)
  |  |  ------------------
  |  |  |  Branch (389:12): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
 2930|       |
 2931|  14.7k|      if (item->frame.hd.type != NGHTTP2_DATA) {
  ------------------
  |  Branch (2931:11): [True: 13.7k, False: 910]
  ------------------
 2932|  13.7k|        nghttp2_frame *frame;
 2933|       |
 2934|  13.7k|        frame = &item->frame;
 2935|       |
 2936|  13.7k|        DEBUGF("send: next frame: payloadlen=%zu, type=%u, flags=0x%02x, "
  ------------------
  |  |   39|  13.7k|    do {                                                                       \
  |  |   40|  13.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 13.7k]
  |  |  ------------------
  ------------------
 2937|  13.7k|               "stream_id=%d\n",
 2938|  13.7k|               frame->hd.length, frame->hd.type, frame->hd.flags,
 2939|  13.7k|               frame->hd.stream_id);
 2940|       |
 2941|  13.7k|        rv = session_call_before_frame_send(session, frame);
 2942|  13.7k|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2942:13): [True: 0, False: 13.7k]
  ------------------
 2943|      0|          return rv;
 2944|      0|        }
 2945|       |
 2946|  13.7k|        if (rv == NGHTTP2_ERR_CANCEL) {
  ------------------
  |  Branch (2946:13): [True: 0, False: 13.7k]
  ------------------
 2947|      0|          int32_t opened_stream_id = 0;
 2948|      0|          uint32_t error_code = NGHTTP2_INTERNAL_ERROR;
 2949|       |
 2950|      0|          if (session->callbacks.on_frame_not_send_callback) {
  ------------------
  |  Branch (2950:15): [True: 0, False: 0]
  ------------------
 2951|      0|            if (session->callbacks.on_frame_not_send_callback(
  ------------------
  |  Branch (2951:17): [True: 0, False: 0]
  ------------------
 2952|      0|                  session, frame, rv, session->user_data) != 0) {
 2953|      0|              return NGHTTP2_ERR_CALLBACK_FAILURE;
 2954|      0|            }
 2955|      0|          }
 2956|       |
 2957|       |          /* We have to close stream opened by canceled request
 2958|       |             HEADERS or PUSH_PROMISE. */
 2959|      0|          switch (item->frame.hd.type) {
  ------------------
  |  Branch (2959:19): [True: 0, False: 0]
  ------------------
 2960|      0|          case NGHTTP2_HEADERS:
  ------------------
  |  Branch (2960:11): [True: 0, False: 0]
  ------------------
 2961|      0|            if (item->frame.headers.cat == NGHTTP2_HCAT_REQUEST) {
  ------------------
  |  Branch (2961:17): [True: 0, False: 0]
  ------------------
 2962|      0|              opened_stream_id = item->frame.hd.stream_id;
 2963|       |              /* We don't have to check
 2964|       |                 item->aux_data.headers.canceled since it has already
 2965|       |                 been checked. */
 2966|       |              /* Set error_code to REFUSED_STREAM so that application
 2967|       |                 can send request again. */
 2968|      0|              error_code = NGHTTP2_REFUSED_STREAM;
 2969|      0|            }
 2970|      0|            break;
 2971|      0|          case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (2971:11): [True: 0, False: 0]
  ------------------
 2972|      0|            opened_stream_id = item->frame.push_promise.promised_stream_id;
 2973|      0|            break;
 2974|      0|          }
 2975|      0|          if (opened_stream_id) {
  ------------------
  |  Branch (2975:15): [True: 0, False: 0]
  ------------------
 2976|       |            /* careful not to override rv */
 2977|      0|            int rv2;
 2978|      0|            rv2 = nghttp2_session_close_stream(session, opened_stream_id,
 2979|      0|                                               error_code);
 2980|       |
 2981|      0|            if (nghttp2_is_fatal(rv2)) {
  ------------------
  |  Branch (2981:17): [True: 0, False: 0]
  ------------------
 2982|      0|              return rv2;
 2983|      0|            }
 2984|      0|          }
 2985|       |
 2986|      0|          active_outbound_item_reset(aob, mem);
 2987|       |
 2988|      0|          break;
 2989|      0|        }
 2990|  13.7k|      } else {
 2991|    910|        DEBUGF("send: next frame: DATA\n");
  ------------------
  |  |   39|    910|    do {                                                                       \
  |  |   40|    910|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 910]
  |  |  ------------------
  ------------------
 2992|       |
 2993|    910|        if (item->aux_data.data.no_copy) {
  ------------------
  |  Branch (2993:13): [True: 0, False: 910]
  ------------------
 2994|      0|          aob->state = NGHTTP2_OB_SEND_NO_COPY;
 2995|      0|          break;
 2996|      0|        }
 2997|    910|      }
 2998|       |
 2999|  14.7k|      DEBUGF("send: start transmitting frame type=%u, length=%td\n",
  ------------------
  |  |   39|  14.7k|    do {                                                                       \
  |  |   40|  14.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
 3000|  14.7k|             framebufs->cur->buf.pos[3],
 3001|  14.7k|             framebufs->cur->buf.last - framebufs->cur->buf.pos);
 3002|       |
 3003|  14.7k|      aob->state = NGHTTP2_OB_SEND_DATA;
 3004|       |
 3005|  14.7k|      break;
 3006|  14.7k|    }
 3007|  31.0k|    case NGHTTP2_OB_SEND_DATA: {
  ------------------
  |  Branch (3007:5): [True: 31.0k, False: 34.0k]
  ------------------
 3008|  31.0k|      size_t datalen;
 3009|  31.0k|      nghttp2_buf *buf;
 3010|       |
 3011|  31.0k|      buf = &framebufs->cur->buf;
 3012|       |
 3013|  31.0k|      if (buf->pos == buf->last) {
  ------------------
  |  Branch (3013:11): [True: 14.6k, False: 16.4k]
  ------------------
 3014|  14.6k|        DEBUGF("send: end transmission of a frame\n");
  ------------------
  |  |   39|  14.6k|    do {                                                                       \
  |  |   40|  14.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 14.6k]
  |  |  ------------------
  ------------------
 3015|       |
 3016|       |        /* Frame has completely sent */
 3017|  14.6k|        if (fast_cb) {
  ------------------
  |  Branch (3017:13): [True: 0, False: 14.6k]
  ------------------
 3018|      0|          session_after_frame_sent2(session);
 3019|  14.6k|        } else {
 3020|  14.6k|          rv = session_after_frame_sent1(session);
 3021|  14.6k|          if (rv < 0) {
  ------------------
  |  Branch (3021:15): [True: 0, False: 14.6k]
  ------------------
 3022|       |            /* FATAL */
 3023|      0|            assert(nghttp2_is_fatal(rv));
  ------------------
  |  Branch (3023:13): [True: 0, False: 0]
  |  Branch (3023:13): [True: 0, False: 0]
  ------------------
 3024|      0|            return rv;
 3025|      0|          }
 3026|  14.6k|          session_after_frame_sent2(session);
 3027|  14.6k|        }
 3028|       |        /* We have already adjusted the next state */
 3029|  14.6k|        break;
 3030|  14.6k|      }
 3031|       |
 3032|  16.4k|      *data_ptr = buf->pos;
 3033|  16.4k|      datalen = nghttp2_buf_len(buf);
  ------------------
  |  |   54|  16.4k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 3034|       |
 3035|       |      /* We increment the offset here. If send_callback does not send
 3036|       |         everything, we will adjust it. */
 3037|  16.4k|      buf->pos += datalen;
 3038|       |
 3039|  16.4k|      return (nghttp2_ssize)datalen;
 3040|  31.0k|    }
 3041|      0|    case NGHTTP2_OB_SEND_NO_COPY: {
  ------------------
  |  Branch (3041:5): [True: 0, False: 65.0k]
  ------------------
 3042|      0|      nghttp2_stream *stream;
 3043|      0|      nghttp2_frame *frame;
 3044|      0|      int pause;
 3045|       |
 3046|      0|      DEBUGF("send: no copy DATA\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3047|       |
 3048|      0|      frame = &aob->item->frame;
 3049|       |
 3050|      0|      stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 3051|      0|      if (stream == NULL) {
  ------------------
  |  Branch (3051:11): [True: 0, False: 0]
  ------------------
 3052|      0|        DEBUGF("send: no copy DATA cancelled because stream was closed\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3053|       |
 3054|      0|        active_outbound_item_reset(aob, mem);
 3055|       |
 3056|      0|        break;
 3057|      0|      }
 3058|       |
 3059|      0|      rv = session_call_send_data(session, aob->item, framebufs);
 3060|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3060:11): [True: 0, False: 0]
  ------------------
 3061|      0|        return rv;
 3062|      0|      }
 3063|       |
 3064|      0|      if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (3064:11): [True: 0, False: 0]
  ------------------
 3065|      0|        session_detach_stream_item(session, stream);
 3066|       |
 3067|      0|        rv = nghttp2_session_add_rst_stream(session, frame->hd.stream_id,
 3068|      0|                                            NGHTTP2_INTERNAL_ERROR);
 3069|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3069:13): [True: 0, False: 0]
  ------------------
 3070|      0|          return rv;
 3071|      0|        }
 3072|       |
 3073|      0|        active_outbound_item_reset(aob, mem);
 3074|       |
 3075|      0|        break;
 3076|      0|      }
 3077|       |
 3078|      0|      if (rv == NGHTTP2_ERR_WOULDBLOCK) {
  ------------------
  |  Branch (3078:11): [True: 0, False: 0]
  ------------------
 3079|      0|        return 0;
 3080|      0|      }
 3081|       |
 3082|      0|      pause = (rv == NGHTTP2_ERR_PAUSE);
 3083|       |
 3084|      0|      rv = session_after_frame_sent1(session);
 3085|      0|      if (rv < 0) {
  ------------------
  |  Branch (3085:11): [True: 0, False: 0]
  ------------------
 3086|      0|        assert(nghttp2_is_fatal(rv));
  ------------------
  |  Branch (3086:9): [True: 0, False: 0]
  |  Branch (3086:9): [True: 0, False: 0]
  ------------------
 3087|      0|        return rv;
 3088|      0|      }
 3089|      0|      session_after_frame_sent2(session);
 3090|       |
 3091|       |      /* We have already adjusted the next state */
 3092|       |
 3093|      0|      if (pause) {
  ------------------
  |  Branch (3093:11): [True: 0, False: 0]
  ------------------
 3094|      0|        return 0;
 3095|      0|      }
 3096|       |
 3097|      0|      break;
 3098|      0|    }
 3099|  5.88k|    case NGHTTP2_OB_SEND_CLIENT_MAGIC: {
  ------------------
  |  Branch (3099:5): [True: 5.88k, False: 59.1k]
  ------------------
 3100|  5.88k|      size_t datalen;
 3101|  5.88k|      nghttp2_buf *buf;
 3102|       |
 3103|  5.88k|      buf = &framebufs->cur->buf;
 3104|       |
 3105|  5.88k|      if (buf->pos == buf->last) {
  ------------------
  |  Branch (3105:11): [True: 2.94k, False: 2.94k]
  ------------------
 3106|  2.94k|        DEBUGF("send: end transmission of client magic\n");
  ------------------
  |  |   39|  2.94k|    do {                                                                       \
  |  |   40|  2.94k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.94k]
  |  |  ------------------
  ------------------
 3107|  2.94k|        active_outbound_item_reset(aob, mem);
 3108|  2.94k|        break;
 3109|  2.94k|      }
 3110|       |
 3111|  2.94k|      *data_ptr = buf->pos;
 3112|  2.94k|      datalen = nghttp2_buf_len(buf);
  ------------------
  |  |   54|  2.94k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 3113|       |
 3114|  2.94k|      buf->pos += datalen;
 3115|       |
 3116|  2.94k|      return (nghttp2_ssize)datalen;
 3117|  5.88k|    }
 3118|  65.0k|    }
 3119|  65.0k|  }
 3120|  30.9k|}
nghttp2_session.c:session_prep_frame:
 1961|  16.5k|                              nghttp2_outbound_item *item) {
 1962|  16.5k|  int rv;
 1963|  16.5k|  nghttp2_frame *frame;
 1964|  16.5k|  nghttp2_mem *mem;
 1965|       |
 1966|  16.5k|  mem = &session->mem;
 1967|  16.5k|  frame = &item->frame;
 1968|       |
 1969|  16.5k|  switch (frame->hd.type) {
 1970|  1.26k|  case NGHTTP2_DATA: {
  ------------------
  |  Branch (1970:3): [True: 1.26k, False: 15.2k]
  ------------------
 1971|  1.26k|    size_t next_readmax;
 1972|  1.26k|    nghttp2_stream *stream;
 1973|       |
 1974|  1.26k|    stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 1975|       |
 1976|  1.26k|    if (stream) {
  ------------------
  |  Branch (1976:9): [True: 1.26k, False: 0]
  ------------------
 1977|  1.26k|      assert(stream->item == item);
  ------------------
  |  Branch (1977:7): [True: 0, False: 1.26k]
  |  Branch (1977:7): [True: 1.26k, False: 0]
  ------------------
 1978|  1.26k|    }
 1979|       |
 1980|  1.26k|    rv = nghttp2_session_predicate_data_send(session, stream);
 1981|  1.26k|    if (rv != 0) {
  ------------------
  |  Branch (1981:9): [True: 10, False: 1.25k]
  ------------------
 1982|       |      // If stream was already closed, nghttp2_session_get_stream()
 1983|       |      // returns NULL, but item is still attached to the stream.
 1984|       |      // Search stream including closed again.
 1985|     10|      stream = nghttp2_session_get_stream_raw(session, frame->hd.stream_id);
 1986|     10|      if (stream) {
  ------------------
  |  Branch (1986:11): [True: 10, False: 0]
  ------------------
 1987|     10|        session_detach_stream_item(session, stream);
 1988|     10|      }
 1989|       |
 1990|     10|      return rv;
 1991|     10|    }
 1992|       |    /* Assuming stream is not NULL */
 1993|  1.26k|    assert(stream);
  ------------------
  |  Branch (1993:5): [True: 0, False: 1.25k]
  |  Branch (1993:5): [True: 1.25k, False: 0]
  ------------------
 1994|  1.25k|    next_readmax = nghttp2_session_next_data_read(session, stream);
 1995|       |
 1996|  1.25k|    if (next_readmax == 0) {
  ------------------
  |  Branch (1996:9): [True: 9, False: 1.24k]
  ------------------
 1997|       |      /* This must be true since we only pop DATA frame item from
 1998|       |         queue when session->remote_window_size > 0 */
 1999|      9|      assert(session->remote_window_size > 0);
  ------------------
  |  Branch (1999:7): [True: 0, False: 9]
  |  Branch (1999:7): [True: 9, False: 0]
  ------------------
 2000|       |
 2001|      9|      session_defer_stream_item(session, stream,
 2002|      9|                                NGHTTP2_STREAM_FLAG_DEFERRED_FLOW_CONTROL);
 2003|       |
 2004|      9|      session->aob.item = NULL;
 2005|      9|      active_outbound_item_reset(&session->aob, mem);
 2006|      9|      return NGHTTP2_ERR_DEFERRED;
 2007|      9|    }
 2008|       |
 2009|  1.24k|    rv =
 2010|  1.24k|      nghttp2_session_pack_data(session, &session->aob.framebufs, next_readmax,
 2011|  1.24k|                                frame, &item->aux_data.data, stream);
 2012|  1.24k|    if (rv == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (2012:9): [True: 0, False: 1.24k]
  ------------------
 2013|      0|      return rv;
 2014|      0|    }
 2015|  1.24k|    if (rv == NGHTTP2_ERR_DEFERRED) {
  ------------------
  |  Branch (2015:9): [True: 338, False: 910]
  ------------------
 2016|    338|      session_defer_stream_item(session, stream,
 2017|    338|                                NGHTTP2_STREAM_FLAG_DEFERRED_USER);
 2018|       |
 2019|    338|      session->aob.item = NULL;
 2020|    338|      active_outbound_item_reset(&session->aob, mem);
 2021|    338|      return NGHTTP2_ERR_DEFERRED;
 2022|    338|    }
 2023|    910|    if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (2023:9): [True: 0, False: 910]
  ------------------
 2024|      0|      session_detach_stream_item(session, stream);
 2025|       |
 2026|      0|      rv = nghttp2_session_add_rst_stream(session, frame->hd.stream_id,
 2027|      0|                                          NGHTTP2_INTERNAL_ERROR);
 2028|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2028:11): [True: 0, False: 0]
  ------------------
 2029|      0|        return rv;
 2030|      0|      }
 2031|      0|      return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE;
 2032|      0|    }
 2033|    910|    if (rv != 0) {
  ------------------
  |  Branch (2033:9): [True: 0, False: 910]
  ------------------
 2034|      0|      session_detach_stream_item(session, stream);
 2035|       |
 2036|      0|      return rv;
 2037|      0|    }
 2038|    910|    return 0;
 2039|    910|  }
 2040|  2.88k|  case NGHTTP2_HEADERS: {
  ------------------
  |  Branch (2040:3): [True: 2.88k, False: 13.6k]
  ------------------
 2041|  2.88k|    nghttp2_headers_aux_data *aux_data;
 2042|  2.88k|    size_t estimated_payloadlen;
 2043|       |
 2044|  2.88k|    aux_data = &item->aux_data.headers;
 2045|       |
 2046|  2.88k|    if (frame->headers.cat == NGHTTP2_HCAT_REQUEST) {
  ------------------
  |  Branch (2046:9): [True: 2.88k, False: 0]
  ------------------
 2047|       |      /* initial HEADERS, which opens stream */
 2048|  2.88k|      nghttp2_stream *stream;
 2049|       |
 2050|  2.88k|      stream = nghttp2_session_open_stream(
 2051|  2.88k|        session, frame->hd.stream_id, NGHTTP2_STREAM_FLAG_NONE,
 2052|  2.88k|        NGHTTP2_STREAM_INITIAL, aux_data->stream_user_data);
 2053|       |
 2054|  2.88k|      if (stream == NULL) {
  ------------------
  |  Branch (2054:11): [True: 0, False: 2.88k]
  ------------------
 2055|      0|        return NGHTTP2_ERR_NOMEM;
 2056|      0|      }
 2057|       |
 2058|  2.88k|      rv = session_predicate_request_headers_send(session, item);
 2059|  2.88k|      if (rv != 0) {
  ------------------
  |  Branch (2059:11): [True: 0, False: 2.88k]
  ------------------
 2060|      0|        return rv;
 2061|      0|      }
 2062|       |
 2063|  2.88k|      if (session_enforce_http_messaging(session)) {
  ------------------
  |  Branch (2063:11): [True: 2.88k, False: 0]
  ------------------
 2064|  2.88k|        nghttp2_http_record_request_method(stream, frame);
 2065|  2.88k|      }
 2066|  2.88k|    } else {
 2067|      0|      nghttp2_stream *stream;
 2068|       |
 2069|      0|      stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 2070|       |
 2071|      0|      if (stream && stream->state == NGHTTP2_STREAM_RESERVED) {
  ------------------
  |  Branch (2071:11): [True: 0, False: 0]
  |  Branch (2071:21): [True: 0, False: 0]
  ------------------
 2072|      0|        rv = session_predicate_push_response_headers_send(session, stream);
 2073|      0|        if (rv == 0) {
  ------------------
  |  Branch (2073:13): [True: 0, False: 0]
  ------------------
 2074|      0|          frame->headers.cat = NGHTTP2_HCAT_PUSH_RESPONSE;
 2075|       |
 2076|      0|          if (aux_data->stream_user_data) {
  ------------------
  |  Branch (2076:15): [True: 0, False: 0]
  ------------------
 2077|      0|            stream->stream_user_data = aux_data->stream_user_data;
 2078|      0|          }
 2079|      0|        }
 2080|      0|      } else if (session_predicate_response_headers_send(session, stream) ==
  ------------------
  |  Branch (2080:18): [True: 0, False: 0]
  ------------------
 2081|      0|                 0) {
 2082|      0|        frame->headers.cat = NGHTTP2_HCAT_RESPONSE;
 2083|      0|        rv = 0;
 2084|      0|      } else {
 2085|      0|        frame->headers.cat = NGHTTP2_HCAT_HEADERS;
 2086|       |
 2087|      0|        rv = session_predicate_headers_send(session, stream);
 2088|      0|      }
 2089|       |
 2090|      0|      if (rv != 0) {
  ------------------
  |  Branch (2090:11): [True: 0, False: 0]
  ------------------
 2091|      0|        return rv;
 2092|      0|      }
 2093|      0|    }
 2094|       |
 2095|  2.88k|    estimated_payloadlen = session_estimate_headers_payload(
 2096|  2.88k|      session, frame->headers.nva, frame->headers.nvlen,
 2097|  2.88k|      NGHTTP2_PRIORITY_SPECLEN);
  ------------------
  |  |   64|  2.88k|#define NGHTTP2_PRIORITY_SPECLEN 5
  ------------------
 2098|       |
 2099|  2.88k|    if (estimated_payloadlen > session->max_send_header_block_length) {
  ------------------
  |  Branch (2099:9): [True: 0, False: 2.88k]
  ------------------
 2100|      0|      return NGHTTP2_ERR_FRAME_SIZE_ERROR;
 2101|      0|    }
 2102|       |
 2103|  2.88k|    rv = nghttp2_frame_pack_headers(&session->aob.framebufs, &frame->headers,
 2104|  2.88k|                                    &session->hd_deflater);
 2105|       |
 2106|  2.88k|    if (rv != 0) {
  ------------------
  |  Branch (2106:9): [True: 0, False: 2.88k]
  ------------------
 2107|      0|      return rv;
 2108|      0|    }
 2109|       |
 2110|  2.88k|    DEBUGF("send: before padding, HEADERS serialized in %zu bytes\n",
  ------------------
  |  |   39|  2.88k|    do {                                                                       \
  |  |   40|  2.88k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.88k]
  |  |  ------------------
  ------------------
 2111|  2.88k|           nghttp2_bufs_len(&session->aob.framebufs));
 2112|       |
 2113|  2.88k|    rv = session_headers_add_pad(session, frame);
 2114|       |
 2115|  2.88k|    if (rv != 0) {
  ------------------
  |  Branch (2115:9): [True: 0, False: 2.88k]
  ------------------
 2116|      0|      return rv;
 2117|      0|    }
 2118|       |
 2119|  2.88k|    DEBUGF("send: HEADERS finally serialized in %zu bytes\n",
  ------------------
  |  |   39|  2.88k|    do {                                                                       \
  |  |   40|  2.88k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.88k]
  |  |  ------------------
  ------------------
 2120|  2.88k|           nghttp2_bufs_len(&session->aob.framebufs));
 2121|       |
 2122|  2.88k|    if (frame->headers.cat == NGHTTP2_HCAT_REQUEST) {
  ------------------
  |  Branch (2122:9): [True: 2.88k, False: 0]
  ------------------
 2123|  2.88k|      assert(session->last_sent_stream_id < frame->hd.stream_id);
  ------------------
  |  Branch (2123:7): [True: 0, False: 2.88k]
  |  Branch (2123:7): [True: 2.88k, False: 0]
  ------------------
 2124|  2.88k|      session->last_sent_stream_id = frame->hd.stream_id;
 2125|  2.88k|    }
 2126|       |
 2127|  2.88k|    return 0;
 2128|  2.88k|  }
 2129|      0|  case NGHTTP2_PRIORITY: {
  ------------------
  |  Branch (2129:3): [True: 0, False: 16.5k]
  ------------------
 2130|      0|    if (session_is_closing(session)) {
  ------------------
  |  Branch (2130:9): [True: 0, False: 0]
  ------------------
 2131|      0|      return NGHTTP2_ERR_SESSION_CLOSING;
 2132|      0|    }
 2133|       |    /* PRIORITY frame can be sent at any time and to any stream
 2134|       |       ID. */
 2135|      0|    nghttp2_frame_pack_priority(&session->aob.framebufs, &frame->priority);
 2136|       |
 2137|       |    /* Peer can send PRIORITY frame against idle stream to create
 2138|       |       "anchor" in dependency tree.  Only client can do this in
 2139|       |       nghttp2.  In nghttp2, only server retains non-active (closed
 2140|       |       or idle) streams in memory, so we don't open stream here. */
 2141|      0|    return 0;
 2142|      0|  }
 2143|  2.92k|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (2143:3): [True: 2.92k, False: 13.6k]
  ------------------
 2144|  2.92k|    if (session_is_closing(session)) {
  ------------------
  |  Branch (2144:9): [True: 1.02k, False: 1.89k]
  ------------------
 2145|  1.02k|      return NGHTTP2_ERR_SESSION_CLOSING;
 2146|  1.02k|    }
 2147|       |
 2148|  1.89k|    if (!item->aux_data.rst_stream.continue_without_stream &&
  ------------------
  |  Branch (2148:9): [True: 1.60k, False: 289]
  ------------------
 2149|  1.60k|        !nghttp2_session_get_stream(session, frame->rst_stream.hd.stream_id)) {
  ------------------
  |  Branch (2149:9): [True: 1, False: 1.60k]
  ------------------
 2150|      1|      return NGHTTP2_ERR_STREAM_CLOSED;
 2151|      1|    }
 2152|       |
 2153|  1.89k|    nghttp2_frame_pack_rst_stream(&session->aob.framebufs, &frame->rst_stream);
 2154|  1.89k|    return 0;
 2155|  5.02k|  case NGHTTP2_SETTINGS: {
  ------------------
  |  Branch (2155:3): [True: 5.02k, False: 11.5k]
  ------------------
 2156|  5.02k|    if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (2156:9): [True: 2.08k, False: 2.94k]
  ------------------
 2157|  2.08k|      assert(session->obq_flood_counter_ > 0);
  ------------------
  |  Branch (2157:7): [True: 0, False: 2.08k]
  |  Branch (2157:7): [True: 2.08k, False: 0]
  ------------------
 2158|  2.08k|      --session->obq_flood_counter_;
 2159|       |      /* When session is about to close, don't send SETTINGS ACK.
 2160|       |         We are required to send SETTINGS without ACK though; for
 2161|       |         example, we have to send SETTINGS as a part of connection
 2162|       |         preface. */
 2163|  2.08k|      if (session_is_closing(session)) {
  ------------------
  |  Branch (2163:11): [True: 449, False: 1.63k]
  ------------------
 2164|    449|        return NGHTTP2_ERR_SESSION_CLOSING;
 2165|    449|      }
 2166|  2.08k|    }
 2167|       |
 2168|  4.57k|    rv = nghttp2_frame_pack_settings(&session->aob.framebufs, &frame->settings);
 2169|  4.57k|    if (rv != 0) {
  ------------------
  |  Branch (2169:9): [True: 0, False: 4.57k]
  ------------------
 2170|      0|      return rv;
 2171|      0|    }
 2172|  4.57k|    return 0;
 2173|  4.57k|  }
 2174|      0|  case NGHTTP2_PUSH_PROMISE: {
  ------------------
  |  Branch (2174:3): [True: 0, False: 16.5k]
  ------------------
 2175|      0|    nghttp2_stream *stream;
 2176|      0|    size_t estimated_payloadlen;
 2177|       |
 2178|       |    /* stream could be NULL if associated stream was already
 2179|       |       closed. */
 2180|      0|    stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 2181|       |
 2182|       |    /* predicate should fail if stream is NULL. */
 2183|      0|    rv = session_predicate_push_promise_send(session, stream);
 2184|      0|    if (rv != 0) {
  ------------------
  |  Branch (2184:9): [True: 0, False: 0]
  ------------------
 2185|      0|      return rv;
 2186|      0|    }
 2187|       |
 2188|      0|    assert(stream);
  ------------------
  |  Branch (2188:5): [True: 0, False: 0]
  |  Branch (2188:5): [True: 0, False: 0]
  ------------------
 2189|       |
 2190|      0|    estimated_payloadlen = session_estimate_headers_payload(
 2191|      0|      session, frame->push_promise.nva, frame->push_promise.nvlen, 0);
 2192|       |
 2193|      0|    if (estimated_payloadlen > session->max_send_header_block_length) {
  ------------------
  |  Branch (2193:9): [True: 0, False: 0]
  ------------------
 2194|      0|      return NGHTTP2_ERR_FRAME_SIZE_ERROR;
 2195|      0|    }
 2196|       |
 2197|      0|    rv = nghttp2_frame_pack_push_promise(
 2198|      0|      &session->aob.framebufs, &frame->push_promise, &session->hd_deflater);
 2199|      0|    if (rv != 0) {
  ------------------
  |  Branch (2199:9): [True: 0, False: 0]
  ------------------
 2200|      0|      return rv;
 2201|      0|    }
 2202|      0|    rv = session_headers_add_pad(session, frame);
 2203|      0|    if (rv != 0) {
  ------------------
  |  Branch (2203:9): [True: 0, False: 0]
  ------------------
 2204|      0|      return rv;
 2205|      0|    }
 2206|       |
 2207|      0|    assert(session->last_sent_stream_id + 2 <=
  ------------------
  |  Branch (2207:5): [True: 0, False: 0]
  |  Branch (2207:5): [True: 0, False: 0]
  ------------------
 2208|      0|           frame->push_promise.promised_stream_id);
 2209|      0|    session->last_sent_stream_id = frame->push_promise.promised_stream_id;
 2210|       |
 2211|      0|    return 0;
 2212|      0|  }
 2213|      3|  case NGHTTP2_PING:
  ------------------
  |  Branch (2213:3): [True: 3, False: 16.5k]
  ------------------
 2214|      3|    if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (2214:9): [True: 3, False: 0]
  ------------------
 2215|      3|      assert(session->obq_flood_counter_ > 0);
  ------------------
  |  Branch (2215:7): [True: 0, False: 3]
  |  Branch (2215:7): [True: 3, False: 0]
  ------------------
 2216|      3|      --session->obq_flood_counter_;
 2217|      3|    }
 2218|       |    /* PING frame is allowed to be sent unless termination GOAWAY is
 2219|       |       sent */
 2220|      3|    if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) {
  ------------------
  |  Branch (2220:9): [True: 1, False: 2]
  ------------------
 2221|      1|      return NGHTTP2_ERR_SESSION_CLOSING;
 2222|      1|    }
 2223|      2|    nghttp2_frame_pack_ping(&session->aob.framebufs, &frame->ping);
 2224|      2|    return 0;
 2225|  1.49k|  case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (2225:3): [True: 1.49k, False: 15.0k]
  ------------------
 2226|  1.49k|    rv = nghttp2_frame_pack_goaway(&session->aob.framebufs, &frame->goaway);
 2227|  1.49k|    if (rv != 0) {
  ------------------
  |  Branch (2227:9): [True: 0, False: 1.49k]
  ------------------
 2228|      0|      return rv;
 2229|      0|    }
 2230|  1.49k|    session->local_last_stream_id = frame->goaway.last_stream_id;
 2231|       |
 2232|  1.49k|    return 0;
 2233|  2.94k|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (2233:3): [True: 2.94k, False: 13.6k]
  ------------------
 2234|  2.94k|    rv = session_predicate_window_update_send(session, frame->hd.stream_id);
 2235|  2.94k|    if (rv != 0) {
  ------------------
  |  Branch (2235:9): [True: 0, False: 2.94k]
  ------------------
 2236|      0|      return rv;
 2237|      0|    }
 2238|  2.94k|    nghttp2_frame_pack_window_update(&session->aob.framebufs,
 2239|  2.94k|                                     &frame->window_update);
 2240|  2.94k|    return 0;
 2241|      0|  case NGHTTP2_CONTINUATION:
  ------------------
  |  Branch (2241:3): [True: 0, False: 16.5k]
  ------------------
 2242|       |    /* We never handle CONTINUATION here. */
 2243|      0|    assert(0);
  ------------------
  |  Branch (2243:5): [Folded, False: 0]
  |  Branch (2243:5): [Folded, False: 0]
  ------------------
 2244|      0|    return 0;
 2245|      0|  default: {
  ------------------
  |  Branch (2245:3): [True: 0, False: 16.5k]
  ------------------
 2246|      0|    nghttp2_ext_aux_data *aux_data;
 2247|       |
 2248|       |    /* extension frame */
 2249|       |
 2250|      0|    aux_data = &item->aux_data.ext;
 2251|       |
 2252|      0|    if (aux_data->builtin == 0) {
  ------------------
  |  Branch (2252:9): [True: 0, False: 0]
  ------------------
 2253|      0|      if (session_is_closing(session)) {
  ------------------
  |  Branch (2253:11): [True: 0, False: 0]
  ------------------
 2254|      0|        return NGHTTP2_ERR_SESSION_CLOSING;
 2255|      0|      }
 2256|       |
 2257|      0|      return session_pack_extension(session, &session->aob.framebufs, frame);
 2258|      0|    }
 2259|       |
 2260|      0|    switch (frame->hd.type) {
 2261|      0|    case NGHTTP2_ALTSVC:
  ------------------
  |  Branch (2261:5): [True: 0, False: 0]
  ------------------
 2262|      0|      rv = session_predicate_altsvc_send(session, frame->hd.stream_id);
 2263|      0|      if (rv != 0) {
  ------------------
  |  Branch (2263:11): [True: 0, False: 0]
  ------------------
 2264|      0|        return rv;
 2265|      0|      }
 2266|       |
 2267|      0|      nghttp2_frame_pack_altsvc(&session->aob.framebufs, &frame->ext);
 2268|       |
 2269|      0|      return 0;
 2270|      0|    case NGHTTP2_ORIGIN:
  ------------------
  |  Branch (2270:5): [True: 0, False: 0]
  ------------------
 2271|      0|      rv = session_predicate_origin_send(session);
 2272|      0|      if (rv != 0) {
  ------------------
  |  Branch (2272:11): [True: 0, False: 0]
  ------------------
 2273|      0|        return rv;
 2274|      0|      }
 2275|       |
 2276|      0|      rv = nghttp2_frame_pack_origin(&session->aob.framebufs, &frame->ext);
 2277|      0|      if (rv != 0) {
  ------------------
  |  Branch (2277:11): [True: 0, False: 0]
  ------------------
 2278|      0|        return rv;
 2279|      0|      }
 2280|       |
 2281|      0|      return 0;
 2282|      0|    case NGHTTP2_PRIORITY_UPDATE: {
  ------------------
  |  Branch (2282:5): [True: 0, False: 0]
  ------------------
 2283|      0|      nghttp2_ext_priority_update *priority_update = frame->ext.payload;
 2284|      0|      rv = session_predicate_priority_update_send(session,
 2285|      0|                                                  priority_update->stream_id);
 2286|      0|      if (rv != 0) {
  ------------------
  |  Branch (2286:11): [True: 0, False: 0]
  ------------------
 2287|      0|        return rv;
 2288|      0|      }
 2289|       |
 2290|      0|      nghttp2_frame_pack_priority_update(&session->aob.framebufs, &frame->ext);
 2291|       |
 2292|      0|      return 0;
 2293|      0|    }
 2294|      0|    default:
  ------------------
  |  Branch (2294:5): [True: 0, False: 0]
  ------------------
 2295|       |      /* Unreachable here */
 2296|      0|      assert(0);
  ------------------
  |  Branch (2296:7): [Folded, False: 0]
  |  Branch (2296:7): [Folded, False: 0]
  ------------------
 2297|      0|      return 0;
 2298|      0|    }
 2299|      0|  }
 2300|  16.5k|  }
 2301|  16.5k|}
nghttp2_session.c:nghttp2_session_predicate_data_send:
 1810|  1.67k|                                               nghttp2_stream *stream) {
 1811|  1.67k|  int rv;
 1812|  1.67k|  rv = session_predicate_for_stream_send(session, stream);
 1813|  1.67k|  if (rv != 0) {
  ------------------
  |  Branch (1813:7): [True: 40, False: 1.63k]
  ------------------
 1814|     40|    return rv;
 1815|     40|  }
 1816|  1.67k|  assert(stream);
  ------------------
  |  Branch (1816:3): [True: 0, False: 1.63k]
  |  Branch (1816:3): [True: 1.63k, False: 0]
  ------------------
 1817|  1.63k|  if (nghttp2_session_is_my_stream_id(session, stream->stream_id)) {
  ------------------
  |  Branch (1817:7): [True: 1.63k, False: 0]
  ------------------
 1818|       |    /* Request body data */
 1819|       |    /* If stream->state is NGHTTP2_STREAM_CLOSING, RST_STREAM was
 1820|       |       queued but not yet sent. In this case, we won't send DATA
 1821|       |       frames. */
 1822|  1.63k|    if (stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (1822:9): [True: 2, False: 1.63k]
  ------------------
 1823|      2|      return NGHTTP2_ERR_STREAM_CLOSING;
 1824|      2|    }
 1825|  1.63k|    if (stream->state == NGHTTP2_STREAM_RESERVED) {
  ------------------
  |  Branch (1825:9): [True: 0, False: 1.63k]
  ------------------
 1826|      0|      return NGHTTP2_ERR_INVALID_STREAM_STATE;
 1827|      0|    }
 1828|  1.63k|    return 0;
 1829|  1.63k|  }
 1830|       |  /* Response body data */
 1831|      0|  if (stream->state == NGHTTP2_STREAM_OPENED) {
  ------------------
  |  Branch (1831:7): [True: 0, False: 0]
  ------------------
 1832|      0|    return 0;
 1833|      0|  }
 1834|      0|  if (stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (1834:7): [True: 0, False: 0]
  ------------------
 1835|      0|    return NGHTTP2_ERR_STREAM_CLOSING;
 1836|      0|  }
 1837|      0|  return NGHTTP2_ERR_INVALID_STREAM_STATE;
 1838|      0|}
nghttp2_session.c:session_predicate_for_stream_send:
 1425|  1.67k|                                             nghttp2_stream *stream) {
 1426|  1.67k|  if (stream == NULL) {
  ------------------
  |  Branch (1426:7): [True: 4, False: 1.67k]
  ------------------
 1427|      4|    return NGHTTP2_ERR_STREAM_CLOSED;
 1428|      4|  }
 1429|  1.67k|  if (session_is_closing(session)) {
  ------------------
  |  Branch (1429:7): [True: 36, False: 1.63k]
  ------------------
 1430|     36|    return NGHTTP2_ERR_SESSION_CLOSING;
 1431|     36|  }
 1432|  1.63k|  if (stream->shut_flags & NGHTTP2_SHUT_WR) {
  ------------------
  |  Branch (1432:7): [True: 0, False: 1.63k]
  ------------------
 1433|      0|    return NGHTTP2_ERR_STREAM_SHUT_WR;
 1434|      0|  }
 1435|  1.63k|  return 0;
 1436|  1.63k|}
nghttp2_session.c:nghttp2_session_next_data_read:
 1779|  1.25k|                                             nghttp2_stream *stream) {
 1780|  1.25k|  nghttp2_ssize window_size;
 1781|       |
 1782|  1.25k|  window_size = nghttp2_session_enforce_flow_control_limits(
 1783|  1.25k|    session, stream, NGHTTP2_DATA_PAYLOADLEN);
  ------------------
  |  |   53|  1.25k|#define NGHTTP2_DATA_PAYLOADLEN NGHTTP2_MAX_FRAME_SIZE_MIN
  |  |  ------------------
  |  |  |  |   43|  1.25k|#define NGHTTP2_MAX_FRAME_SIZE_MIN (1 << 14)
  |  |  ------------------
  ------------------
 1784|       |
 1785|  1.25k|  DEBUGF("send: available window=%td\n", window_size);
  ------------------
  |  |   39|  1.25k|    do {                                                                       \
  |  |   40|  1.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.25k]
  |  |  ------------------
  ------------------
 1786|       |
 1787|  1.25k|  return window_size > 0 ? (size_t)window_size : 0;
  ------------------
  |  Branch (1787:10): [True: 1.24k, False: 9]
  ------------------
 1788|  1.25k|}
nghttp2_session.c:session_defer_stream_item:
  914|    347|                                      nghttp2_stream *stream, uint8_t flags) {
  915|    347|  nghttp2_stream_defer_item(stream, flags);
  916|       |
  917|    347|  if (!stream->queued) {
  ------------------
  |  Branch (917:7): [True: 0, False: 347]
  ------------------
  918|      0|    return;
  919|      0|  }
  920|       |
  921|    347|  session_ob_data_remove(session, stream);
  922|    347|}
nghttp2_session.c:session_predicate_request_headers_send:
 1459|  2.88k|                                                  nghttp2_outbound_item *item) {
 1460|  2.88k|  if (item->aux_data.headers.canceled) {
  ------------------
  |  Branch (1460:7): [True: 0, False: 2.88k]
  ------------------
 1461|      0|    return NGHTTP2_ERR_STREAM_CLOSING;
 1462|      0|  }
 1463|       |  /* If we are terminating session (NGHTTP2_GOAWAY_TERM_ON_SEND),
 1464|       |     GOAWAY was received from peer, or session is about to close, new
 1465|       |     request is not allowed. */
 1466|  2.88k|  if ((session->goaway_flags & NGHTTP2_GOAWAY_RECV) ||
  ------------------
  |  Branch (1466:7): [True: 0, False: 2.88k]
  ------------------
 1467|  2.88k|      session_is_closing(session)) {
  ------------------
  |  Branch (1467:7): [True: 0, False: 2.88k]
  ------------------
 1468|      0|    return NGHTTP2_ERR_START_STREAM_NOT_ALLOWED;
 1469|      0|  }
 1470|  2.88k|  return 0;
 1471|  2.88k|}
nghttp2_session.c:session_estimate_headers_payload:
 1908|  2.88k|                                               size_t additional) {
 1909|  2.88k|  return nghttp2_hd_deflate_bound(&session->hd_deflater, nva, nvlen) +
 1910|  2.88k|         additional;
 1911|  2.88k|}
nghttp2_session.c:session_headers_add_pad:
 1873|  2.88k|                                   nghttp2_frame *frame) {
 1874|  2.88k|  nghttp2_ssize padded_payloadlen;
 1875|  2.88k|  nghttp2_active_outbound_item *aob;
 1876|  2.88k|  nghttp2_bufs *framebufs;
 1877|  2.88k|  size_t padlen;
 1878|  2.88k|  size_t max_payloadlen;
 1879|       |
 1880|  2.88k|  aob = &session->aob;
 1881|  2.88k|  framebufs = &aob->framebufs;
 1882|       |
 1883|  2.88k|  max_payloadlen = nghttp2_min_size(NGHTTP2_MAX_PAYLOADLEN,
  ------------------
  |  |   45|  2.88k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  ------------------
 1884|  2.88k|                                    frame->hd.length + NGHTTP2_MAX_PADLEN);
  ------------------
  |  |   67|  2.88k|#define NGHTTP2_MAX_PADLEN 256
  ------------------
 1885|       |
 1886|  2.88k|  padded_payloadlen =
 1887|  2.88k|    session_call_select_padding(session, frame, max_payloadlen);
 1888|       |
 1889|  2.88k|  if (nghttp2_is_fatal((int)padded_payloadlen)) {
  ------------------
  |  Branch (1889:7): [True: 0, False: 2.88k]
  ------------------
 1890|      0|    return (int)padded_payloadlen;
 1891|      0|  }
 1892|       |
 1893|  2.88k|  padlen = (size_t)padded_payloadlen - frame->hd.length;
 1894|       |
 1895|  2.88k|  DEBUGF("send: padding selected: payloadlen=%td, padlen=%zu\n",
  ------------------
  |  |   39|  2.88k|    do {                                                                       \
  |  |   40|  2.88k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.88k]
  |  |  ------------------
  ------------------
 1896|  2.88k|         padded_payloadlen, padlen);
 1897|       |
 1898|  2.88k|  nghttp2_frame_add_pad(framebufs, &frame->hd, padlen, 0);
 1899|       |
 1900|  2.88k|  frame->headers.padlen = padlen;
 1901|       |
 1902|  2.88k|  return 0;
 1903|  2.88k|}
nghttp2_session.c:session_predicate_window_update_send:
 1679|  2.94k|                                                int32_t stream_id) {
 1680|  2.94k|  nghttp2_stream *stream;
 1681|       |
 1682|  2.94k|  if (session_is_closing(session)) {
  ------------------
  |  Branch (1682:7): [True: 0, False: 2.94k]
  ------------------
 1683|      0|    return NGHTTP2_ERR_SESSION_CLOSING;
 1684|      0|  }
 1685|       |
 1686|  2.94k|  if (stream_id == 0) {
  ------------------
  |  Branch (1686:7): [True: 2.94k, False: 0]
  ------------------
 1687|       |    /* Connection-level window update */
 1688|  2.94k|    return 0;
 1689|  2.94k|  }
 1690|      0|  stream = nghttp2_session_get_stream(session, stream_id);
 1691|      0|  if (stream == NULL) {
  ------------------
  |  Branch (1691:7): [True: 0, False: 0]
  ------------------
 1692|      0|    return NGHTTP2_ERR_STREAM_CLOSED;
 1693|      0|  }
 1694|      0|  if (stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (1694:7): [True: 0, False: 0]
  ------------------
 1695|      0|    return NGHTTP2_ERR_STREAM_CLOSING;
 1696|      0|  }
 1697|      0|  if (state_reserved_local(session, stream)) {
  ------------------
  |  Branch (1697:7): [True: 0, False: 0]
  ------------------
 1698|      0|    return NGHTTP2_ERR_INVALID_STREAM_STATE;
 1699|      0|  }
 1700|      0|  return 0;
 1701|      0|}
nghttp2_session.c:session_call_before_frame_send:
 2361|  13.7k|                                          nghttp2_frame *frame) {
 2362|  13.7k|  int rv;
 2363|  13.7k|  if (session->callbacks.before_frame_send_callback) {
  ------------------
  |  Branch (2363:7): [True: 0, False: 13.7k]
  ------------------
 2364|      0|    rv = session->callbacks.before_frame_send_callback(session, frame,
 2365|      0|                                                       session->user_data);
 2366|      0|    if (rv == NGHTTP2_ERR_CANCEL) {
  ------------------
  |  Branch (2366:9): [True: 0, False: 0]
  ------------------
 2367|      0|      return rv;
 2368|      0|    }
 2369|       |
 2370|      0|    if (rv != 0) {
  ------------------
  |  Branch (2370:9): [True: 0, False: 0]
  ------------------
 2371|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 2372|      0|    }
 2373|      0|  }
 2374|  13.7k|  return 0;
 2375|  13.7k|}
nghttp2_session.c:session_after_frame_sent2:
 2725|  14.6k|static void session_after_frame_sent2(nghttp2_session *session) {
 2726|  14.6k|  nghttp2_active_outbound_item *aob = &session->aob;
 2727|  14.6k|  nghttp2_outbound_item *item = aob->item;
 2728|  14.6k|  nghttp2_bufs *framebufs = &aob->framebufs;
 2729|  14.6k|  nghttp2_frame *frame;
 2730|  14.6k|  nghttp2_mem *mem;
 2731|  14.6k|  nghttp2_stream *stream;
 2732|  14.6k|  nghttp2_data_aux_data *aux_data;
 2733|       |
 2734|  14.6k|  mem = &session->mem;
 2735|  14.6k|  frame = &item->frame;
 2736|       |
 2737|  14.6k|  if (frame->hd.type != NGHTTP2_DATA) {
  ------------------
  |  Branch (2737:7): [True: 13.7k, False: 819]
  ------------------
 2738|  13.7k|    if (frame->hd.type == NGHTTP2_HEADERS ||
  ------------------
  |  Branch (2738:9): [True: 2.88k, False: 10.9k]
  ------------------
 2739|  10.9k|        frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (2739:9): [True: 0, False: 10.9k]
  ------------------
 2740|  2.88k|      if (nghttp2_bufs_next_present(framebufs)) {
  ------------------
  |  Branch (2740:11): [True: 0, False: 2.88k]
  ------------------
 2741|      0|        framebufs->cur = framebufs->cur->next;
 2742|       |
 2743|      0|        DEBUGF("send: next CONTINUATION frame, %zu bytes\n",
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2744|      0|               nghttp2_buf_len(&framebufs->cur->buf));
 2745|       |
 2746|      0|        return;
 2747|      0|      }
 2748|  2.88k|    }
 2749|       |
 2750|  13.7k|    active_outbound_item_reset(&session->aob, mem);
 2751|       |
 2752|  13.7k|    return;
 2753|  13.7k|  }
 2754|       |
 2755|       |  /* DATA frame */
 2756|       |
 2757|    819|  aux_data = &item->aux_data.data;
 2758|       |
 2759|       |  /* On EOF, we have already detached data.  Please note that
 2760|       |     application may issue nghttp2_submit_data2() in
 2761|       |     on_frame_send_callback (call from session_after_frame_sent1),
 2762|       |     which attach data to stream.  We don't want to detach it. */
 2763|    819|  if (aux_data->eof) {
  ------------------
  |  Branch (2763:7): [True: 411, False: 408]
  ------------------
 2764|    411|    active_outbound_item_reset(aob, mem);
 2765|       |
 2766|    411|    return;
 2767|    411|  }
 2768|       |
 2769|       |  /* Reset no_copy here because next write may not use this. */
 2770|    408|  aux_data->no_copy = 0;
 2771|       |
 2772|    408|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 2773|       |
 2774|       |  /* If session is closed or RST_STREAM was queued, we won't send
 2775|       |     further data. */
 2776|    408|  if (nghttp2_session_predicate_data_send(session, stream) != 0) {
  ------------------
  |  Branch (2776:7): [True: 32, False: 376]
  ------------------
 2777|     32|    if (stream) {
  ------------------
  |  Branch (2777:9): [True: 28, False: 4]
  ------------------
 2778|     28|      session_detach_stream_item(session, stream);
 2779|     28|    }
 2780|       |
 2781|     32|    active_outbound_item_reset(aob, mem);
 2782|       |
 2783|     32|    return;
 2784|     32|  }
 2785|       |
 2786|    376|  aob->item = NULL;
 2787|    376|  active_outbound_item_reset(&session->aob, mem);
 2788|       |
 2789|    376|  return;
 2790|    408|}
nghttp2_session.c:session_after_frame_sent1:
 2495|  14.6k|static int session_after_frame_sent1(nghttp2_session *session) {
 2496|  14.6k|  int rv;
 2497|  14.6k|  nghttp2_active_outbound_item *aob = &session->aob;
 2498|  14.6k|  nghttp2_outbound_item *item = aob->item;
 2499|  14.6k|  nghttp2_bufs *framebufs = &aob->framebufs;
 2500|  14.6k|  nghttp2_frame *frame;
 2501|  14.6k|  nghttp2_stream *stream;
 2502|       |
 2503|  14.6k|  frame = &item->frame;
 2504|       |
 2505|  14.6k|  if (frame->hd.type == NGHTTP2_DATA) {
  ------------------
  |  Branch (2505:7): [True: 819, False: 13.7k]
  ------------------
 2506|    819|    nghttp2_data_aux_data *aux_data;
 2507|       |
 2508|    819|    aux_data = &item->aux_data.data;
 2509|       |
 2510|    819|    stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 2511|       |    /* We update flow control window after a frame was completely
 2512|       |       sent. This is possible because we choose payload length not to
 2513|       |       exceed the window */
 2514|    819|    session->remote_window_size -= (int32_t)frame->hd.length;
 2515|    819|    if (stream) {
  ------------------
  |  Branch (2515:9): [True: 815, False: 4]
  ------------------
 2516|    815|      stream->remote_window_size -= (int32_t)frame->hd.length;
 2517|    815|    }
 2518|       |
 2519|    819|    if (stream && aux_data->eof) {
  ------------------
  |  Branch (2519:9): [True: 815, False: 4]
  |  Branch (2519:19): [True: 411, False: 404]
  ------------------
 2520|    411|      session_detach_stream_item(session, stream);
 2521|       |
 2522|       |      /* Call on_frame_send_callback after
 2523|       |         nghttp2_stream_detach_item(), so that application can issue
 2524|       |         nghttp2_submit_data2() in the callback. */
 2525|    411|      if (session->callbacks.on_frame_send_callback) {
  ------------------
  |  Branch (2525:11): [True: 411, False: 0]
  ------------------
 2526|    411|        rv = session_call_on_frame_send(session, frame);
 2527|    411|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2527:13): [True: 0, False: 411]
  ------------------
 2528|      0|          return rv;
 2529|      0|        }
 2530|    411|      }
 2531|       |
 2532|    411|      if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
  ------------------
  |  Branch (2532:11): [True: 411, False: 0]
  ------------------
 2533|    411|        int stream_closed;
 2534|       |
 2535|    411|        stream_closed =
 2536|    411|          (stream->shut_flags & NGHTTP2_SHUT_RDWR) == NGHTTP2_SHUT_RDWR;
 2537|       |
 2538|    411|        nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
 2539|       |
 2540|    411|        rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream);
 2541|    411|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2541:13): [True: 0, False: 411]
  ------------------
 2542|      0|          return rv;
 2543|      0|        }
 2544|       |        /* stream may be NULL if it was closed */
 2545|    411|        if (stream_closed) {
  ------------------
  |  Branch (2545:13): [True: 0, False: 411]
  ------------------
 2546|      0|          stream = NULL;
 2547|      0|        }
 2548|    411|      }
 2549|    411|      return 0;
 2550|    411|    }
 2551|       |
 2552|    408|    if (session->callbacks.on_frame_send_callback) {
  ------------------
  |  Branch (2552:9): [True: 408, False: 0]
  ------------------
 2553|    408|      rv = session_call_on_frame_send(session, frame);
 2554|    408|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2554:11): [True: 0, False: 408]
  ------------------
 2555|      0|        return rv;
 2556|      0|      }
 2557|    408|    }
 2558|       |
 2559|    408|    return 0;
 2560|    408|  }
 2561|       |
 2562|       |  /* non-DATA frame */
 2563|       |
 2564|  13.7k|  if (frame->hd.type == NGHTTP2_HEADERS ||
  ------------------
  |  Branch (2564:7): [True: 2.88k, False: 10.9k]
  ------------------
 2565|  10.9k|      frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (2565:7): [True: 0, False: 10.9k]
  ------------------
 2566|  2.88k|    if (nghttp2_bufs_next_present(framebufs)) {
  ------------------
  |  Branch (2566:9): [True: 0, False: 2.88k]
  ------------------
 2567|      0|      DEBUGF("send: CONTINUATION exists, just return\n");
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2568|      0|      return 0;
 2569|      0|    }
 2570|  2.88k|  }
 2571|  13.7k|  rv = session_call_on_frame_send(session, frame);
 2572|  13.7k|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2572:7): [True: 0, False: 13.7k]
  ------------------
 2573|      0|    return rv;
 2574|      0|  }
 2575|  13.7k|  switch (frame->hd.type) {
 2576|  2.88k|  case NGHTTP2_HEADERS: {
  ------------------
  |  Branch (2576:3): [True: 2.88k, False: 10.9k]
  ------------------
 2577|  2.88k|    nghttp2_headers_aux_data *aux_data;
 2578|       |
 2579|  2.88k|    stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 2580|  2.88k|    if (!stream) {
  ------------------
  |  Branch (2580:9): [True: 0, False: 2.88k]
  ------------------
 2581|      0|      return 0;
 2582|      0|    }
 2583|       |
 2584|  2.88k|    switch (frame->headers.cat) {
 2585|  2.88k|    case NGHTTP2_HCAT_REQUEST: {
  ------------------
  |  Branch (2585:5): [True: 2.88k, False: 0]
  ------------------
 2586|  2.88k|      stream->state = NGHTTP2_STREAM_OPENING;
 2587|  2.88k|      if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
  ------------------
  |  Branch (2587:11): [True: 2.17k, False: 717]
  ------------------
 2588|  2.17k|        nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
 2589|  2.17k|      }
 2590|  2.88k|      rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream);
 2591|  2.88k|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2591:11): [True: 0, False: 2.88k]
  ------------------
 2592|      0|        return rv;
 2593|      0|      }
 2594|       |      /* We assume aux_data is a pointer to nghttp2_headers_aux_data */
 2595|  2.88k|      aux_data = &item->aux_data.headers;
 2596|  2.88k|      if (nghttp2_data_provider_wrap_contains_read_callback(&aux_data->dpw)) {
  ------------------
  |  Branch (2596:11): [True: 717, False: 2.17k]
  ------------------
 2597|       |        /* nghttp2_submit_data_shared() makes a copy of
 2598|       |           aux_data->dpw */
 2599|    717|        rv = nghttp2_submit_data_shared(session, NGHTTP2_FLAG_END_STREAM,
 2600|    717|                                        frame->hd.stream_id, &aux_data->dpw);
 2601|    717|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2601:13): [True: 0, False: 717]
  ------------------
 2602|      0|          return rv;
 2603|      0|        }
 2604|       |        /* TODO nghttp2_submit_data_shared() may fail if stream has
 2605|       |           already DATA frame item.  We might have to handle it
 2606|       |           here. */
 2607|    717|      }
 2608|  2.88k|      return 0;
 2609|  2.88k|    }
 2610|      0|    case NGHTTP2_HCAT_PUSH_RESPONSE:
  ------------------
  |  Branch (2610:5): [True: 0, False: 2.88k]
  ------------------
 2611|      0|      stream->flags = (uint8_t)(stream->flags & ~NGHTTP2_STREAM_FLAG_PUSH);
 2612|      0|      ++session->num_outgoing_streams;
 2613|       |    /* Fall through */
 2614|      0|    case NGHTTP2_HCAT_RESPONSE:
  ------------------
  |  Branch (2614:5): [True: 0, False: 2.88k]
  ------------------
 2615|      0|      stream->state = NGHTTP2_STREAM_OPENED;
 2616|       |    /* Fall through */
 2617|      0|    case NGHTTP2_HCAT_HEADERS:
  ------------------
  |  Branch (2617:5): [True: 0, False: 2.88k]
  ------------------
 2618|      0|      if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
  ------------------
  |  Branch (2618:11): [True: 0, False: 0]
  ------------------
 2619|      0|        nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
 2620|      0|      }
 2621|      0|      rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream);
 2622|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2622:11): [True: 0, False: 0]
  ------------------
 2623|      0|        return rv;
 2624|      0|      }
 2625|       |      /* We assume aux_data is a pointer to nghttp2_headers_aux_data */
 2626|      0|      aux_data = &item->aux_data.headers;
 2627|      0|      if (nghttp2_data_provider_wrap_contains_read_callback(&aux_data->dpw)) {
  ------------------
  |  Branch (2627:11): [True: 0, False: 0]
  ------------------
 2628|      0|        rv = nghttp2_submit_data_shared(session, NGHTTP2_FLAG_END_STREAM,
 2629|      0|                                        frame->hd.stream_id, &aux_data->dpw);
 2630|      0|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2630:13): [True: 0, False: 0]
  ------------------
 2631|      0|          return rv;
 2632|      0|        }
 2633|       |        /* TODO nghttp2_submit_data_shared() may fail if stream has
 2634|       |           already DATA frame item.  We might have to handle it
 2635|       |           here. */
 2636|      0|      }
 2637|      0|      return 0;
 2638|      0|    default:
  ------------------
  |  Branch (2638:5): [True: 0, False: 2.88k]
  ------------------
 2639|       |      /* Unreachable */
 2640|      0|      assert(0);
  ------------------
  |  Branch (2640:7): [Folded, False: 0]
  |  Branch (2640:7): [Folded, False: 0]
  ------------------
 2641|      0|      return 0;
 2642|  2.88k|    }
 2643|  2.88k|  }
 2644|      0|  case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (2644:3): [True: 0, False: 13.7k]
  ------------------
 2645|      0|    return 0;
 2646|  1.89k|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (2646:3): [True: 1.89k, False: 11.9k]
  ------------------
 2647|  1.89k|    rv = nghttp2_session_close_stream(session, frame->hd.stream_id,
 2648|  1.89k|                                      frame->rst_stream.error_code);
 2649|  1.89k|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2649:9): [True: 0, False: 1.89k]
  ------------------
 2650|      0|      return rv;
 2651|      0|    }
 2652|  1.89k|    return 0;
 2653|  1.49k|  case NGHTTP2_GOAWAY: {
  ------------------
  |  Branch (2653:3): [True: 1.49k, False: 12.3k]
  ------------------
 2654|  1.49k|    nghttp2_goaway_aux_data *aux_data;
 2655|       |
 2656|  1.49k|    aux_data = &item->aux_data.goaway;
 2657|       |
 2658|  1.49k|    if ((aux_data->flags & NGHTTP2_GOAWAY_AUX_SHUTDOWN_NOTICE) == 0) {
  ------------------
  |  Branch (2658:9): [True: 1.49k, False: 0]
  ------------------
 2659|  1.49k|      if (aux_data->flags & NGHTTP2_GOAWAY_AUX_TERM_ON_SEND) {
  ------------------
  |  Branch (2659:11): [True: 1.02k, False: 469]
  ------------------
 2660|  1.02k|        session->goaway_flags |= NGHTTP2_GOAWAY_TERM_SENT;
 2661|  1.02k|      }
 2662|       |
 2663|  1.49k|      session->goaway_flags |= NGHTTP2_GOAWAY_SENT;
 2664|       |
 2665|  1.49k|      rv = session_close_stream_on_goaway(session, frame->goaway.last_stream_id,
 2666|  1.49k|                                          1);
 2667|       |
 2668|  1.49k|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2668:11): [True: 0, False: 1.49k]
  ------------------
 2669|      0|        return rv;
 2670|      0|      }
 2671|  1.49k|    }
 2672|       |
 2673|  1.49k|    return 0;
 2674|  1.49k|  }
 2675|  2.94k|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (2675:3): [True: 2.94k, False: 10.8k]
  ------------------
 2676|  2.94k|    if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (2676:9): [True: 2.94k, False: 0]
  ------------------
 2677|  2.94k|      session->window_update_queued = 0;
 2678|  2.94k|      if (session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (2678:11): [True: 2.94k, False: 0]
  ------------------
 2679|  2.94k|        rv = session_update_connection_consumed_size(session, 0);
 2680|  2.94k|      } else {
 2681|      0|        rv = nghttp2_session_update_recv_connection_window_size(session, 0);
 2682|      0|      }
 2683|       |
 2684|  2.94k|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2684:11): [True: 0, False: 2.94k]
  ------------------
 2685|      0|        return rv;
 2686|      0|      }
 2687|       |
 2688|  2.94k|      return 0;
 2689|  2.94k|    }
 2690|       |
 2691|      0|    stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 2692|      0|    if (!stream) {
  ------------------
  |  Branch (2692:9): [True: 0, False: 0]
  ------------------
 2693|      0|      return 0;
 2694|      0|    }
 2695|       |
 2696|      0|    stream->window_update_queued = 0;
 2697|       |
 2698|       |    /* We don't have to send WINDOW_UPDATE if END_STREAM from peer
 2699|       |       is seen. */
 2700|      0|    if (stream->shut_flags & NGHTTP2_SHUT_RD) {
  ------------------
  |  Branch (2700:9): [True: 0, False: 0]
  ------------------
 2701|      0|      return 0;
 2702|      0|    }
 2703|       |
 2704|      0|    if (session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (2704:9): [True: 0, False: 0]
  ------------------
 2705|      0|      rv = session_update_stream_consumed_size(session, stream, 0);
 2706|      0|    } else {
 2707|      0|      rv =
 2708|      0|        nghttp2_session_update_recv_stream_window_size(session, stream, 0, 1);
 2709|      0|    }
 2710|       |
 2711|      0|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2711:9): [True: 0, False: 0]
  ------------------
 2712|      0|      return rv;
 2713|      0|    }
 2714|       |
 2715|      0|    return 0;
 2716|  4.57k|  default:
  ------------------
  |  Branch (2716:3): [True: 4.57k, False: 9.22k]
  ------------------
 2717|  4.57k|    return 0;
 2718|  13.7k|  }
 2719|  13.7k|}
nghttp2_session.c:session_call_on_frame_send:
 2378|  14.6k|                                      nghttp2_frame *frame) {
 2379|  14.6k|  int rv;
 2380|  14.6k|  if (session->callbacks.on_frame_send_callback) {
  ------------------
  |  Branch (2380:7): [True: 14.6k, False: 0]
  ------------------
 2381|  14.6k|    rv = session->callbacks.on_frame_send_callback(session, frame,
 2382|  14.6k|                                                   session->user_data);
 2383|  14.6k|    if (rv != 0) {
  ------------------
  |  Branch (2383:9): [True: 0, False: 14.6k]
  ------------------
 2384|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 2385|      0|    }
 2386|  14.6k|  }
 2387|  14.6k|  return 0;
 2388|  14.6k|}
nghttp2_session.c:session_inflate_handle_invalid_connection:
 3480|     83|                                                     const char *reason) {
 3481|     83|  int rv;
 3482|     83|  rv =
 3483|     83|    session_handle_invalid_connection(session, frame, lib_error_code, reason);
 3484|     83|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3484:7): [True: 76, False: 7]
  ------------------
 3485|     76|    return rv;
 3486|     76|  }
 3487|      7|  return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 3488|     83|}
nghttp2_session.c:session_detect_idle_stream:
  137|    404|                                      int32_t stream_id) {
  138|       |  /* Assume that stream object with stream_id does not exist */
  139|    404|  if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (139:7): [True: 285, False: 119]
  ------------------
  140|    285|    if (session->last_sent_stream_id < stream_id) {
  ------------------
  |  Branch (140:9): [True: 65, False: 220]
  ------------------
  141|     65|      return 1;
  142|     65|    }
  143|    220|    return 0;
  144|    285|  }
  145|    119|  if (session_is_new_peer_stream_id(session, stream_id)) {
  ------------------
  |  Branch (145:7): [True: 48, False: 71]
  ------------------
  146|     48|    return 1;
  147|     48|  }
  148|     71|  return 0;
  149|    119|}
nghttp2_session.c:session_is_new_peer_stream_id:
  130|    286|                                         int32_t stream_id) {
  131|    286|  return stream_id != 0 &&
  ------------------
  |  Branch (131:10): [True: 285, False: 1]
  ------------------
  132|    285|         !nghttp2_session_is_my_stream_id(session, stream_id) &&
  ------------------
  |  Branch (132:10): [True: 277, False: 8]
  ------------------
  133|    277|         session->last_recv_stream_id < stream_id;
  ------------------
  |  Branch (133:10): [True: 205, False: 72]
  ------------------
  134|    286|}
nghttp2_session.c:session_allow_incoming_new_stream:
 1398|    167|static int session_allow_incoming_new_stream(nghttp2_session *session) {
 1399|    167|  return (session->goaway_flags &
 1400|    167|          (NGHTTP2_GOAWAY_TERM_ON_SEND | NGHTTP2_GOAWAY_SENT)) == 0;
 1401|    167|}
nghttp2_session.c:session_call_on_begin_headers:
 3239|  1.27k|                                         nghttp2_frame *frame) {
 3240|  1.27k|  int rv;
 3241|  1.27k|  DEBUGF("recv: call on_begin_headers callback stream_id=%d\n",
  ------------------
  |  |   39|  1.27k|    do {                                                                       \
  |  |   40|  1.27k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.27k]
  |  |  ------------------
  ------------------
 3242|  1.27k|         frame->hd.stream_id);
 3243|  1.27k|  if (session->callbacks.on_begin_headers_callback) {
  ------------------
  |  Branch (3243:7): [True: 1.27k, False: 0]
  ------------------
 3244|  1.27k|    rv = session->callbacks.on_begin_headers_callback(session, frame,
 3245|  1.27k|                                                      session->user_data);
 3246|  1.27k|    if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (3246:9): [True: 0, False: 1.27k]
  ------------------
 3247|      0|      return rv;
 3248|      0|    }
 3249|  1.27k|    if (rv != 0) {
  ------------------
  |  Branch (3249:9): [True: 0, False: 1.27k]
  ------------------
 3250|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3251|      0|    }
 3252|  1.27k|  }
 3253|  1.27k|  return 0;
 3254|  1.27k|}
nghttp2_session.c:session_handle_invalid_connection:
 3466|    253|                                             const char *reason) {
 3467|    253|  if (session->callbacks.on_invalid_frame_recv_callback) {
  ------------------
  |  Branch (3467:7): [True: 253, False: 0]
  ------------------
 3468|    253|    if (session->callbacks.on_invalid_frame_recv_callback(
  ------------------
  |  Branch (3468:9): [True: 232, False: 21]
  ------------------
 3469|    253|          session, frame, lib_error_code, session->user_data) != 0) {
 3470|    232|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3471|    232|    }
 3472|    253|  }
 3473|     21|  return nghttp2_session_terminate_session_with_reason(
 3474|     21|    session, get_error_code_from_lib_error_code(lib_error_code), reason);
 3475|    253|}
nghttp2_session.c:get_error_code_from_lib_error_code:
 3362|    824|static uint32_t get_error_code_from_lib_error_code(int lib_error_code) {
 3363|    824|  switch (lib_error_code) {
 3364|      2|  case NGHTTP2_ERR_STREAM_CLOSED:
  ------------------
  |  Branch (3364:3): [True: 2, False: 822]
  ------------------
 3365|      2|    return NGHTTP2_STREAM_CLOSED;
 3366|      0|  case NGHTTP2_ERR_HEADER_COMP:
  ------------------
  |  Branch (3366:3): [True: 0, False: 824]
  ------------------
 3367|      0|    return NGHTTP2_COMPRESSION_ERROR;
 3368|      0|  case NGHTTP2_ERR_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (3368:3): [True: 0, False: 824]
  ------------------
 3369|      0|    return NGHTTP2_FRAME_SIZE_ERROR;
 3370|      6|  case NGHTTP2_ERR_FLOW_CONTROL:
  ------------------
  |  Branch (3370:3): [True: 6, False: 818]
  ------------------
 3371|      6|    return NGHTTP2_FLOW_CONTROL_ERROR;
 3372|      0|  case NGHTTP2_ERR_REFUSED_STREAM:
  ------------------
  |  Branch (3372:3): [True: 0, False: 824]
  ------------------
 3373|      0|    return NGHTTP2_REFUSED_STREAM;
 3374|     13|  case NGHTTP2_ERR_PROTO:
  ------------------
  |  Branch (3374:3): [True: 13, False: 811]
  ------------------
 3375|    339|  case NGHTTP2_ERR_HTTP_HEADER:
  ------------------
  |  Branch (3375:3): [True: 326, False: 498]
  ------------------
 3376|    344|  case NGHTTP2_ERR_HTTP_MESSAGING:
  ------------------
  |  Branch (3376:3): [True: 5, False: 819]
  ------------------
 3377|    344|    return NGHTTP2_PROTOCOL_ERROR;
 3378|    326|  case NGHTTP2_ERR_INTERNAL:
  ------------------
  |  Branch (3378:3): [True: 326, False: 498]
  ------------------
 3379|    326|    return NGHTTP2_INTERNAL_ERROR;
 3380|    146|  case NGHTTP2_ERR_PUSH_CANCEL:
  ------------------
  |  Branch (3380:3): [True: 146, False: 678]
  ------------------
 3381|    146|    return NGHTTP2_CANCEL;
 3382|      0|  default:
  ------------------
  |  Branch (3382:3): [True: 0, False: 824]
  ------------------
 3383|      0|    return NGHTTP2_INTERNAL_ERROR;
 3384|    824|  }
 3385|    824|}
nghttp2_session.c:session_call_on_frame_received:
 3226|  2.36k|                                          nghttp2_frame *frame) {
 3227|  2.36k|  int rv;
 3228|  2.36k|  if (session->callbacks.on_frame_recv_callback) {
  ------------------
  |  Branch (3228:7): [True: 2.36k, False: 0]
  ------------------
 3229|  2.36k|    rv = session->callbacks.on_frame_recv_callback(session, frame,
 3230|  2.36k|                                                   session->user_data);
 3231|  2.36k|    if (rv != 0) {
  ------------------
  |  Branch (3231:9): [True: 0, False: 2.36k]
  ------------------
 3232|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3233|      0|    }
 3234|  2.36k|  }
 3235|  2.36k|  return 0;
 3236|  2.36k|}
nghttp2_session.c:session_update_stream_reset_ratelim:
 4077|     15|static int session_update_stream_reset_ratelim(nghttp2_session *session) {
 4078|     15|  if (!session->server || (session->goaway_flags & NGHTTP2_GOAWAY_SUBMITTED)) {
  ------------------
  |  Branch (4078:7): [True: 15, False: 0]
  |  Branch (4078:27): [True: 0, False: 0]
  ------------------
 4079|     15|    return 0;
 4080|     15|  }
 4081|       |
 4082|      0|  nghttp2_ratelim_update(&session->stream_reset_ratelim,
 4083|      0|                         nghttp2_time_now_sec());
 4084|       |
 4085|      0|  if (nghttp2_ratelim_drain(&session->stream_reset_ratelim, 1) == 0) {
  ------------------
  |  Branch (4085:7): [True: 0, False: 0]
  ------------------
 4086|      0|    return 0;
 4087|      0|  }
 4088|       |
 4089|      0|  return nghttp2_session_add_goaway(session, session->last_recv_stream_id,
 4090|       |                                    NGHTTP2_INTERNAL_ERROR, NULL, 0,
 4091|      0|                                    NGHTTP2_GOAWAY_AUX_NONE);
 4092|      0|}
nghttp2_session.c:session_update_local_initial_window_size:
 4238|      4|                                         int32_t old_initial_window_size) {
 4239|      4|  nghttp2_update_window_size_arg arg;
 4240|      4|  arg.session = session;
 4241|      4|  arg.new_window_size = new_initial_window_size;
 4242|      4|  arg.old_window_size = old_initial_window_size;
 4243|      4|  return nghttp2_map_each(&session->streams,
 4244|      4|                          update_local_initial_window_size_func, &arg);
 4245|      4|}
nghttp2_session.c:update_local_initial_window_size_func:
 4189|      3|static int update_local_initial_window_size_func(void *entry, void *ptr) {
 4190|      3|  int rv;
 4191|      3|  nghttp2_update_window_size_arg *arg;
 4192|      3|  nghttp2_stream *stream;
 4193|      3|  arg = (nghttp2_update_window_size_arg *)ptr;
 4194|      3|  stream = (nghttp2_stream *)entry;
 4195|      3|  rv = nghttp2_stream_update_local_initial_window_size(
 4196|      3|    stream, arg->new_window_size, arg->old_window_size);
 4197|      3|  if (rv != 0) {
  ------------------
  |  Branch (4197:7): [True: 0, False: 3]
  ------------------
 4198|      0|    return NGHTTP2_ERR_FLOW_CONTROL;
 4199|      0|  }
 4200|       |
 4201|      3|  if (stream->window_update_queued) {
  ------------------
  |  Branch (4201:7): [True: 0, False: 3]
  ------------------
 4202|      0|    return 0;
 4203|      0|  }
 4204|       |
 4205|      3|  if (arg->session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (4205:7): [True: 3, False: 0]
  ------------------
 4206|      3|    return session_update_stream_consumed_size(arg->session, stream, 0);
 4207|      3|  }
 4208|       |
 4209|      0|  if (nghttp2_should_send_window_update(stream->local_window_size,
  ------------------
  |  Branch (4209:7): [True: 0, False: 0]
  ------------------
 4210|      0|                                        stream->recv_window_size)) {
 4211|      0|    rv = nghttp2_session_add_window_update(arg->session, NGHTTP2_FLAG_NONE,
 4212|      0|                                           stream->stream_id,
 4213|      0|                                           stream->recv_window_size);
 4214|      0|    if (rv != 0) {
  ------------------
  |  Branch (4214:9): [True: 0, False: 0]
  ------------------
 4215|      0|      return rv;
 4216|      0|    }
 4217|       |
 4218|      0|    stream->recv_window_size = 0;
 4219|      0|  }
 4220|      0|  return 0;
 4221|      0|}
nghttp2_session.c:session_update_remote_initial_window_size:
 4178|    100|                                          int32_t new_initial_window_size) {
 4179|    100|  nghttp2_update_window_size_arg arg;
 4180|       |
 4181|    100|  arg.session = session;
 4182|    100|  arg.new_window_size = new_initial_window_size;
 4183|    100|  arg.old_window_size = (int32_t)session->remote_settings.initial_window_size;
 4184|       |
 4185|    100|  return nghttp2_map_each(&session->streams,
 4186|    100|                          update_remote_initial_window_size_func, &arg);
 4187|    100|}
nghttp2_session.c:update_remote_initial_window_size_func:
 4136|    100|static int update_remote_initial_window_size_func(void *entry, void *ptr) {
 4137|    100|  int rv;
 4138|    100|  nghttp2_update_window_size_arg *arg;
 4139|    100|  nghttp2_stream *stream;
 4140|       |
 4141|    100|  arg = (nghttp2_update_window_size_arg *)ptr;
 4142|    100|  stream = (nghttp2_stream *)entry;
 4143|       |
 4144|    100|  rv = nghttp2_stream_update_remote_initial_window_size(
 4145|    100|    stream, arg->new_window_size, arg->old_window_size);
 4146|    100|  if (rv != 0) {
  ------------------
  |  Branch (4146:7): [True: 1, False: 99]
  ------------------
 4147|      1|    return NGHTTP2_ERR_FLOW_CONTROL;
 4148|      1|  }
 4149|       |
 4150|       |  /* If window size gets positive, push deferred DATA frame to
 4151|       |     outbound queue. */
 4152|     99|  if (stream->remote_window_size > 0 &&
  ------------------
  |  Branch (4152:7): [True: 69, False: 30]
  ------------------
 4153|     69|      nghttp2_stream_check_deferred_by_flow_control(stream)) {
  ------------------
  |  Branch (4153:7): [True: 0, False: 69]
  ------------------
 4154|      0|    rv = session_resume_deferred_stream_item(
 4155|      0|      arg->session, stream, NGHTTP2_STREAM_FLAG_DEFERRED_FLOW_CONTROL);
 4156|       |
 4157|      0|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4157:9): [True: 0, False: 0]
  ------------------
 4158|      0|      return rv;
 4159|      0|    }
 4160|      0|  }
 4161|     99|  return 0;
 4162|     99|}
nghttp2_session.c:session_handle_invalid_stream2:
 3425|    803|                                          int lib_error_code) {
 3426|    803|  int rv;
 3427|       |
 3428|    803|  rv = nghttp2_session_add_rst_stream(
 3429|    803|    session, stream_id, get_error_code_from_lib_error_code(lib_error_code));
 3430|    803|  if (rv != 0) {
  ------------------
  |  Branch (3430:7): [True: 0, False: 803]
  ------------------
 3431|      0|    return rv;
 3432|      0|  }
 3433|    803|  if (frame && session->callbacks.on_invalid_frame_recv_callback) {
  ------------------
  |  Branch (3433:7): [True: 331, False: 472]
  |  Branch (3433:16): [True: 331, False: 0]
  ------------------
 3434|    331|    if (session->callbacks.on_invalid_frame_recv_callback(
  ------------------
  |  Branch (3434:9): [True: 0, False: 331]
  ------------------
 3435|    331|          session, frame, lib_error_code, session->user_data) != 0) {
 3436|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3437|      0|    }
 3438|    331|  }
 3439|    803|  return 0;
 3440|    803|}
nghttp2_session.c:session_close_stream_on_goaway:
 2429|  1.53k|                                          int incoming) {
 2430|  1.53k|  int rv;
 2431|  1.53k|  nghttp2_stream *stream, *next_stream;
 2432|  1.53k|  nghttp2_close_stream_on_goaway_arg arg = {session, NULL, last_stream_id,
 2433|  1.53k|                                            incoming};
 2434|       |
 2435|  1.53k|  rv = nghttp2_map_each(&session->streams, find_stream_on_goaway_func, &arg);
 2436|  1.53k|  assert(rv == 0);
  ------------------
  |  Branch (2436:3): [True: 0, False: 1.53k]
  |  Branch (2436:3): [True: 1.53k, False: 0]
  ------------------
 2437|       |
 2438|  1.53k|  stream = arg.head;
 2439|  1.54k|  while (stream) {
  ------------------
  |  Branch (2439:10): [True: 11, False: 1.53k]
  ------------------
 2440|     11|    next_stream = stream->closed_next;
 2441|     11|    stream->closed_next = NULL;
 2442|     11|    rv = nghttp2_session_close_stream(session, stream->stream_id,
 2443|     11|                                      NGHTTP2_REFUSED_STREAM);
 2444|       |
 2445|       |    /* stream may be deleted here */
 2446|       |
 2447|     11|    stream = next_stream;
 2448|       |
 2449|     11|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2449:9): [True: 0, False: 11]
  ------------------
 2450|       |      /* Clean up closed_next member just in case */
 2451|      0|      while (stream) {
  ------------------
  |  Branch (2451:14): [True: 0, False: 0]
  ------------------
 2452|      0|        next_stream = stream->closed_next;
 2453|      0|        stream->closed_next = NULL;
 2454|      0|        stream = next_stream;
 2455|      0|      }
 2456|      0|      return rv;
 2457|      0|    }
 2458|     11|  }
 2459|       |
 2460|  1.53k|  return 0;
 2461|  1.53k|}
nghttp2_session.c:find_stream_on_goaway_func:
 2390|  1.06k|static int find_stream_on_goaway_func(void *entry, void *ptr) {
 2391|  1.06k|  nghttp2_close_stream_on_goaway_arg *arg;
 2392|  1.06k|  nghttp2_stream *stream;
 2393|       |
 2394|  1.06k|  arg = (nghttp2_close_stream_on_goaway_arg *)ptr;
 2395|  1.06k|  stream = (nghttp2_stream *)entry;
 2396|       |
 2397|  1.06k|  if (nghttp2_session_is_my_stream_id(arg->session, stream->stream_id)) {
  ------------------
  |  Branch (2397:7): [True: 1.06k, False: 0]
  ------------------
 2398|  1.06k|    if (arg->incoming) {
  ------------------
  |  Branch (2398:9): [True: 1.01k, False: 44]
  ------------------
 2399|  1.01k|      return 0;
 2400|  1.01k|    }
 2401|  1.06k|  } else if (!arg->incoming) {
  ------------------
  |  Branch (2401:14): [True: 0, False: 0]
  ------------------
 2402|      0|    return 0;
 2403|      0|  }
 2404|       |
 2405|     44|  if (stream->state != NGHTTP2_STREAM_IDLE &&
  ------------------
  |  Branch (2405:7): [True: 44, False: 0]
  ------------------
 2406|     44|      (stream->flags & NGHTTP2_STREAM_FLAG_CLOSED) == 0 &&
  ------------------
  |  Branch (2406:7): [True: 44, False: 0]
  ------------------
 2407|     44|      stream->stream_id > arg->last_stream_id) {
  ------------------
  |  Branch (2407:7): [True: 11, False: 33]
  ------------------
 2408|       |    /* We are collecting streams to close because we cannot call
 2409|       |       nghttp2_session_close_stream() inside nghttp2_map_each().
 2410|       |       Reuse closed_next member.. bad choice? */
 2411|     11|    assert(stream->closed_next == NULL);
  ------------------
  |  Branch (2411:5): [True: 0, False: 11]
  |  Branch (2411:5): [True: 11, False: 0]
  ------------------
 2412|       |
 2413|     11|    if (arg->head) {
  ------------------
  |  Branch (2413:9): [True: 0, False: 11]
  ------------------
 2414|      0|      stream->closed_next = arg->head;
 2415|      0|      arg->head = stream;
 2416|     11|    } else {
 2417|     11|      arg->head = stream;
 2418|     11|    }
 2419|     11|  }
 2420|       |
 2421|     44|  return 0;
 2422|     44|}
nghttp2_session.c:session_on_connection_window_update_received:
 4736|     51|                                             nghttp2_frame *frame) {
 4737|       |  /* Handle connection-level flow control */
 4738|     51|  if (frame->window_update.window_size_increment == 0) {
  ------------------
  |  Branch (4738:7): [True: 1, False: 50]
  ------------------
 4739|      1|    return session_handle_invalid_connection(
 4740|      1|      session, frame, NGHTTP2_ERR_PROTO,
 4741|      1|      "WINDOW_UPDATE: window_size_increment == 0");
 4742|      1|  }
 4743|       |
 4744|     50|  if (NGHTTP2_MAX_WINDOW_SIZE - frame->window_update.window_size_increment <
  ------------------
  |  |  224|     50|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (4744:7): [True: 4, False: 46]
  ------------------
 4745|     50|      session->remote_window_size) {
 4746|      4|    return session_handle_invalid_connection(session, frame,
 4747|      4|                                             NGHTTP2_ERR_FLOW_CONTROL, NULL);
 4748|      4|  }
 4749|     46|  session->remote_window_size += frame->window_update.window_size_increment;
 4750|       |
 4751|     46|  return session_call_on_frame_received(session, frame);
 4752|     50|}
nghttp2_session.c:session_on_stream_window_update_received:
 4755|     69|                                                    nghttp2_frame *frame) {
 4756|     69|  int rv;
 4757|     69|  nghttp2_stream *stream;
 4758|       |
 4759|     69|  if (session_detect_idle_stream(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4759:7): [True: 12, False: 57]
  ------------------
 4760|     12|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4761|     12|                                             "WINDOW_UPDATE to idle stream");
 4762|     12|  }
 4763|       |
 4764|     57|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 4765|     57|  if (!stream) {
  ------------------
  |  Branch (4765:7): [True: 1, False: 56]
  ------------------
 4766|      1|    return 0;
 4767|      1|  }
 4768|     56|  if (state_reserved_remote(session, stream)) {
  ------------------
  |  Branch (4768:7): [True: 0, False: 56]
  ------------------
 4769|      0|    return session_handle_invalid_connection(
 4770|      0|      session, frame, NGHTTP2_ERR_PROTO, "WINDOW_UPADATE to reserved stream");
 4771|      0|  }
 4772|     56|  if (frame->window_update.window_size_increment == 0) {
  ------------------
  |  Branch (4772:7): [True: 1, False: 55]
  ------------------
 4773|      1|    return session_handle_invalid_connection(
 4774|      1|      session, frame, NGHTTP2_ERR_PROTO,
 4775|      1|      "WINDOW_UPDATE: window_size_increment == 0");
 4776|      1|  }
 4777|     55|  if (NGHTTP2_MAX_WINDOW_SIZE - frame->window_update.window_size_increment <
  ------------------
  |  |  224|     55|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (4777:7): [True: 6, False: 49]
  ------------------
 4778|     55|      stream->remote_window_size) {
 4779|      6|    return session_handle_invalid_connection(
 4780|      6|      session, frame, NGHTTP2_ERR_FLOW_CONTROL,
 4781|      6|      "WINDOW_UPDATE: window size overflow");
 4782|      6|  }
 4783|     49|  stream->remote_window_size += frame->window_update.window_size_increment;
 4784|       |
 4785|     49|  if (stream->remote_window_size > 0 &&
  ------------------
  |  Branch (4785:7): [True: 49, False: 0]
  ------------------
 4786|     49|      nghttp2_stream_check_deferred_by_flow_control(stream)) {
  ------------------
  |  Branch (4786:7): [True: 0, False: 49]
  ------------------
 4787|      0|    rv = session_resume_deferred_stream_item(
 4788|      0|      session, stream, NGHTTP2_STREAM_FLAG_DEFERRED_FLOW_CONTROL);
 4789|       |
 4790|      0|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4790:9): [True: 0, False: 0]
  ------------------
 4791|      0|      return rv;
 4792|      0|    }
 4793|      0|  }
 4794|     49|  return session_call_on_frame_received(session, frame);
 4795|     49|}
nghttp2_session.c:state_reserved_remote:
  113|     56|                                 nghttp2_stream *stream) {
  114|     56|  return stream->state == NGHTTP2_STREAM_RESERVED &&
  ------------------
  |  Branch (114:10): [True: 0, False: 56]
  ------------------
  115|      0|         !nghttp2_session_is_my_stream_id(session, stream->stream_id);
  ------------------
  |  Branch (115:10): [True: 0, False: 0]
  ------------------
  116|     56|}
nghttp2_session.c:session_enforce_http_messaging:
   90|  25.4k|static int session_enforce_http_messaging(nghttp2_session *session) {
   91|  25.4k|  return (session->opt_flags & NGHTTP2_OPTMASK_NO_HTTP_MESSAGING) == 0;
   92|  25.4k|}
nghttp2_session.c:session_update_glitch_ratelim:
 3408|    488|static int session_update_glitch_ratelim(nghttp2_session *session) {
 3409|    488|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) {
  ------------------
  |  Branch (3409:7): [True: 0, False: 488]
  ------------------
 3410|      0|    return 0;
 3411|      0|  }
 3412|       |
 3413|    488|  nghttp2_ratelim_update(&session->glitch_ratelim, nghttp2_time_now_sec());
 3414|       |
 3415|    488|  if (nghttp2_ratelim_drain(&session->glitch_ratelim, 1) == 0) {
  ------------------
  |  Branch (3415:7): [True: 488, False: 0]
  ------------------
 3416|    488|    return 0;
 3417|    488|  }
 3418|       |
 3419|      0|  return nghttp2_session_terminate_session(session, NGHTTP2_ENHANCE_YOUR_CALM);
 3420|    488|}
nghttp2_session.c:adjust_recv_window_size:
 5073|    104|                                   int32_t local_window_size) {
 5074|    104|  if (*recv_window_size_ptr > local_window_size - (int32_t)delta ||
  ------------------
  |  Branch (5074:7): [True: 0, False: 104]
  ------------------
 5075|    104|      *recv_window_size_ptr > NGHTTP2_MAX_WINDOW_SIZE - (int32_t)delta) {
  ------------------
  |  |  224|    104|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (5075:7): [True: 0, False: 104]
  ------------------
 5076|      0|    return -1;
 5077|      0|  }
 5078|    104|  *recv_window_size_ptr += (int32_t)delta;
 5079|    104|  return 0;
 5080|    104|}
nghttp2_session.c:inbound_frame_buf_read:
 5294|  14.1k|                                     const uint8_t *in, const uint8_t *last) {
 5295|  14.1k|  size_t readlen;
 5296|       |
 5297|  14.1k|  readlen = nghttp2_min_size((size_t)(last - in),
 5298|  14.1k|                             nghttp2_buf_mark_avail(&iframe->sbuf));
  ------------------
  |  |   56|  14.1k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  ------------------
 5299|       |
 5300|  14.1k|  iframe->sbuf.last = nghttp2_cpymem(iframe->sbuf.last, in, readlen);
 5301|       |
 5302|  14.1k|  return readlen;
 5303|  14.1k|}
nghttp2_session.c:session_call_error_callback:
  157|  7.40k|                                       ...) {
  158|  7.40k|  size_t bufsize;
  159|  7.40k|  va_list ap;
  160|  7.40k|  char *buf;
  161|  7.40k|  int rv;
  162|  7.40k|  nghttp2_mem *mem;
  163|       |
  164|  7.40k|  if (!session->callbacks.error_callback &&
  ------------------
  |  Branch (164:7): [True: 0, False: 7.40k]
  ------------------
  165|      0|      !session->callbacks.error_callback2) {
  ------------------
  |  Branch (165:7): [True: 0, False: 0]
  ------------------
  166|      0|    return 0;
  167|      0|  }
  168|       |
  169|  7.40k|  mem = &session->mem;
  170|       |
  171|  7.40k|  va_start(ap, fmt);
  172|  7.40k|  rv = vsnprintf(NULL, 0, fmt, ap);
  173|  7.40k|  va_end(ap);
  174|       |
  175|  7.40k|  if (rv < 0) {
  ------------------
  |  Branch (175:7): [True: 0, False: 7.40k]
  ------------------
  176|      0|    return NGHTTP2_ERR_NOMEM;
  177|      0|  }
  178|       |
  179|  7.40k|  bufsize = (size_t)(rv + 1);
  180|       |
  181|  7.40k|  buf = nghttp2_mem_malloc(mem, bufsize);
  182|  7.40k|  if (buf == NULL) {
  ------------------
  |  Branch (182:7): [True: 0, False: 7.40k]
  ------------------
  183|      0|    return NGHTTP2_ERR_NOMEM;
  184|      0|  }
  185|       |
  186|  7.40k|  va_start(ap, fmt);
  187|  7.40k|  rv = vsnprintf(buf, bufsize, fmt, ap);
  188|  7.40k|  va_end(ap);
  189|       |
  190|  7.40k|  if (rv < 0) {
  ------------------
  |  Branch (190:7): [True: 0, False: 7.40k]
  ------------------
  191|      0|    nghttp2_mem_free(mem, buf);
  192|       |    /* vsnprintf may return error because of various things we can
  193|       |       imagine, but typically we don't want to drop session just for
  194|       |       debug callback. */
  195|      0|    DEBUGF("error_callback: vsnprintf failed. The template was %s\n", fmt);
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  196|      0|    return 0;
  197|      0|  }
  198|       |
  199|  7.40k|  if (session->callbacks.error_callback2) {
  ------------------
  |  Branch (199:7): [True: 0, False: 7.40k]
  ------------------
  200|      0|    rv = session->callbacks.error_callback2(session, lib_error_code, buf,
  201|      0|                                            (size_t)rv, session->user_data);
  202|  7.40k|  } else {
  203|  7.40k|    rv = session->callbacks.error_callback(session, buf, (size_t)rv,
  204|  7.40k|                                           session->user_data);
  205|  7.40k|  }
  206|       |
  207|  7.40k|  nghttp2_mem_free(mem, buf);
  208|       |
  209|  7.40k|  if (rv != 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 7.40k]
  ------------------
  210|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
  211|      0|  }
  212|       |
  213|  7.40k|  return 0;
  214|  7.40k|}
nghttp2_session.c:session_on_data_received_fail_fast:
 5210|    112|static int session_on_data_received_fail_fast(nghttp2_session *session) {
 5211|    112|  int rv;
 5212|    112|  nghttp2_stream *stream;
 5213|    112|  nghttp2_inbound_frame *iframe;
 5214|    112|  int32_t stream_id;
 5215|    112|  const char *failure_reason;
 5216|    112|  uint32_t error_code = NGHTTP2_PROTOCOL_ERROR;
 5217|       |
 5218|    112|  iframe = &session->iframe;
 5219|    112|  stream_id = iframe->frame.hd.stream_id;
 5220|       |
 5221|    112|  if (stream_id == 0) {
  ------------------
  |  Branch (5221:7): [True: 17, False: 95]
  ------------------
 5222|       |    /* The spec says that if a DATA frame is received whose stream ID
 5223|       |       is 0, the recipient MUST respond with a connection error of
 5224|       |       type PROTOCOL_ERROR. */
 5225|     17|    failure_reason = "DATA: stream_id == 0";
 5226|     17|    goto fail;
 5227|     17|  }
 5228|       |
 5229|     95|  if (session_detect_idle_stream(session, stream_id)) {
  ------------------
  |  Branch (5229:7): [True: 35, False: 60]
  ------------------
 5230|     35|    failure_reason = "DATA: stream in idle";
 5231|     35|    error_code = NGHTTP2_PROTOCOL_ERROR;
 5232|     35|    goto fail;
 5233|     35|  }
 5234|       |
 5235|     60|  stream = nghttp2_session_get_stream(session, stream_id);
 5236|     60|  if (!stream) {
  ------------------
  |  Branch (5236:7): [True: 57, False: 3]
  ------------------
 5237|     57|    stream = nghttp2_session_get_stream_raw(session, stream_id);
 5238|     57|    if (stream && (stream->shut_flags & NGHTTP2_SHUT_RD)) {
  ------------------
  |  Branch (5238:9): [True: 0, False: 57]
  |  Branch (5238:19): [True: 0, False: 0]
  ------------------
 5239|      0|      failure_reason = "DATA: stream closed";
 5240|      0|      error_code = NGHTTP2_STREAM_CLOSED;
 5241|      0|      goto fail;
 5242|      0|    }
 5243|       |
 5244|     57|    return NGHTTP2_ERR_IGN_PAYLOAD;
 5245|     57|  }
 5246|      3|  if (stream->shut_flags & NGHTTP2_SHUT_RD) {
  ------------------
  |  Branch (5246:7): [True: 1, False: 2]
  ------------------
 5247|      1|    failure_reason = "DATA: stream in half-closed(remote)";
 5248|      1|    error_code = NGHTTP2_STREAM_CLOSED;
 5249|      1|    goto fail;
 5250|      1|  }
 5251|       |
 5252|      2|  if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (5252:7): [True: 2, False: 0]
  ------------------
 5253|      2|    if (stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (5253:9): [True: 1, False: 1]
  ------------------
 5254|      1|      return NGHTTP2_ERR_IGN_PAYLOAD;
 5255|      1|    }
 5256|      1|    if (stream->state != NGHTTP2_STREAM_OPENED) {
  ------------------
  |  Branch (5256:9): [True: 1, False: 0]
  ------------------
 5257|      1|      failure_reason = "DATA: stream not opened";
 5258|      1|      goto fail;
 5259|      1|    }
 5260|      0|    return 0;
 5261|      1|  }
 5262|      0|  if (stream->state == NGHTTP2_STREAM_RESERVED) {
  ------------------
  |  Branch (5262:7): [True: 0, False: 0]
  ------------------
 5263|      0|    failure_reason = "DATA: stream in reserved";
 5264|      0|    goto fail;
 5265|      0|  }
 5266|      0|  if (stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (5266:7): [True: 0, False: 0]
  ------------------
 5267|      0|    return NGHTTP2_ERR_IGN_PAYLOAD;
 5268|      0|  }
 5269|      0|  return 0;
 5270|     54|fail:
 5271|     54|  rv = nghttp2_session_terminate_session_with_reason(session, error_code,
 5272|     54|                                                     failure_reason);
 5273|     54|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5273:7): [True: 0, False: 54]
  ------------------
 5274|      0|    return rv;
 5275|      0|  }
 5276|     54|  return NGHTTP2_ERR_IGN_PAYLOAD;
 5277|     54|}
nghttp2_session.c:inbound_frame_handle_pad:
 5360|  1.52k|                                    nghttp2_frame_hd *hd) {
 5361|  1.52k|  if (hd->flags & NGHTTP2_FLAG_PADDED) {
  ------------------
  |  Branch (5361:7): [True: 86, False: 1.44k]
  ------------------
 5362|     86|    if (hd->length < 1) {
  ------------------
  |  Branch (5362:9): [True: 2, False: 84]
  ------------------
 5363|      2|      return -1;
 5364|      2|    }
 5365|     84|    inbound_frame_set_mark(iframe, 1);
 5366|     84|    return 1;
 5367|     86|  }
 5368|  1.44k|  DEBUGF("recv: no padding in payload\n");
  ------------------
  |  |   39|  1.44k|    do {                                                                       \
  |  |   40|  1.44k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.44k]
  |  |  ------------------
  ------------------
 5369|  1.44k|  return 0;
 5370|  1.52k|}
nghttp2_session.c:inbound_frame_set_mark:
 5288|  5.33k|static void inbound_frame_set_mark(nghttp2_inbound_frame *iframe, size_t left) {
 5289|  5.33k|  nghttp2_buf_reset(&iframe->sbuf);
 5290|  5.33k|  iframe->sbuf.mark += left;
 5291|  5.33k|}
nghttp2_session.c:session_call_on_begin_frame:
 3210|  4.05k|                                       const nghttp2_frame_hd *hd) {
 3211|  4.05k|  int rv;
 3212|       |
 3213|  4.05k|  if (session->callbacks.on_begin_frame_callback) {
  ------------------
  |  Branch (3213:7): [True: 0, False: 4.05k]
  ------------------
 3214|      0|    rv = session->callbacks.on_begin_frame_callback(session, hd,
 3215|      0|                                                    session->user_data);
 3216|       |
 3217|      0|    if (rv != 0) {
  ------------------
  |  Branch (3217:9): [True: 0, False: 0]
  ------------------
 3218|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3219|      0|    }
 3220|      0|  }
 3221|       |
 3222|  4.05k|  return 0;
 3223|  4.05k|}
nghttp2_session.c:session_process_headers_frame:
 4048|  1.34k|static int session_process_headers_frame(nghttp2_session *session) {
 4049|  1.34k|  nghttp2_inbound_frame *iframe = &session->iframe;
 4050|  1.34k|  nghttp2_frame *frame = &iframe->frame;
 4051|  1.34k|  nghttp2_stream *stream;
 4052|       |
 4053|  1.34k|  nghttp2_frame_unpack_headers_payload(&frame->headers, iframe->sbuf.pos);
 4054|       |
 4055|  1.34k|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 4056|  1.34k|  if (!stream) {
  ------------------
  |  Branch (4056:7): [True: 66, False: 1.27k]
  ------------------
 4057|     66|    frame->headers.cat = NGHTTP2_HCAT_REQUEST;
 4058|     66|    return nghttp2_session_on_request_headers_received(session, frame);
 4059|     66|  }
 4060|       |
 4061|  1.27k|  if (stream->state == NGHTTP2_STREAM_RESERVED) {
  ------------------
  |  Branch (4061:7): [True: 0, False: 1.27k]
  ------------------
 4062|      0|    frame->headers.cat = NGHTTP2_HCAT_PUSH_RESPONSE;
 4063|      0|    return nghttp2_session_on_push_response_headers_received(session, frame,
 4064|      0|                                                             stream);
 4065|      0|  }
 4066|       |
 4067|  1.27k|  if (stream->state == NGHTTP2_STREAM_OPENING &&
  ------------------
  |  Branch (4067:7): [True: 1.27k, False: 3]
  ------------------
 4068|  1.27k|      nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4068:7): [True: 1.27k, False: 0]
  ------------------
 4069|  1.27k|    frame->headers.cat = NGHTTP2_HCAT_RESPONSE;
 4070|  1.27k|    return nghttp2_session_on_response_headers_received(session, frame, stream);
 4071|  1.27k|  }
 4072|       |
 4073|      3|  frame->headers.cat = NGHTTP2_HCAT_HEADERS;
 4074|      3|  return nghttp2_session_on_headers_received(session, frame, stream);
 4075|  1.27k|}
nghttp2_session.c:check_ext_type_set:
  151|    372|static int check_ext_type_set(const uint8_t *ext_types, uint8_t type) {
  152|    372|  return (ext_types[type / 8] & (1 << (type & 0x7))) > 0;
  153|    372|}
nghttp2_session.c:inbound_frame_compute_pad:
 5376|     84|static nghttp2_ssize inbound_frame_compute_pad(nghttp2_inbound_frame *iframe) {
 5377|     84|  size_t padlen;
 5378|       |
 5379|       |  /* 1 for Pad Length field */
 5380|     84|  padlen = (size_t)(iframe->sbuf.pos[0] + 1);
 5381|       |
 5382|     84|  DEBUGF("recv: padlen=%zu\n", padlen);
  ------------------
  |  |   39|     84|    do {                                                                       \
  |  |   40|     84|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 84]
  |  |  ------------------
  ------------------
 5383|       |
 5384|       |  /* We cannot use iframe->frame.hd.length because of CONTINUATION */
 5385|     84|  if (padlen - 1 > iframe->payloadleft) {
  ------------------
  |  Branch (5385:7): [True: 3, False: 81]
  ------------------
 5386|      3|    return -1;
 5387|      3|  }
 5388|       |
 5389|     81|  iframe->padlen = padlen;
 5390|       |
 5391|     81|  return (nghttp2_ssize)padlen;
 5392|     84|}
nghttp2_session.c:session_process_rst_stream_frame:
 4127|     20|static int session_process_rst_stream_frame(nghttp2_session *session) {
 4128|     20|  nghttp2_inbound_frame *iframe = &session->iframe;
 4129|     20|  nghttp2_frame *frame = &iframe->frame;
 4130|       |
 4131|     20|  nghttp2_frame_unpack_rst_stream_payload(&frame->rst_stream, iframe->sbuf.pos);
 4132|       |
 4133|     20|  return nghttp2_session_on_rst_stream_received(session, frame);
 4134|     20|}
nghttp2_session.c:session_process_push_promise_frame:
 4650|    174|static int session_process_push_promise_frame(nghttp2_session *session) {
 4651|    174|  nghttp2_inbound_frame *iframe = &session->iframe;
 4652|    174|  nghttp2_frame *frame = &iframe->frame;
 4653|       |
 4654|    174|  nghttp2_frame_unpack_push_promise_payload(&frame->push_promise,
 4655|    174|                                            iframe->sbuf.pos);
 4656|       |
 4657|    174|  return nghttp2_session_on_push_promise_received(session, frame);
 4658|    174|}
nghttp2_session.c:session_process_ping_frame:
 4680|      6|static int session_process_ping_frame(nghttp2_session *session) {
 4681|      6|  nghttp2_inbound_frame *iframe = &session->iframe;
 4682|      6|  nghttp2_frame *frame = &iframe->frame;
 4683|       |
 4684|      6|  nghttp2_frame_unpack_ping_payload(&frame->ping, iframe->sbuf.pos);
 4685|       |
 4686|      6|  return nghttp2_session_on_ping_received(session, frame);
 4687|      6|}
nghttp2_session.c:session_process_window_update_frame:
 4806|    120|static int session_process_window_update_frame(nghttp2_session *session) {
 4807|    120|  nghttp2_inbound_frame *iframe = &session->iframe;
 4808|    120|  nghttp2_frame *frame = &iframe->frame;
 4809|       |
 4810|    120|  nghttp2_frame_unpack_window_update_payload(&frame->window_update,
 4811|    120|                                             iframe->sbuf.pos);
 4812|       |
 4813|    120|  return nghttp2_session_on_window_update_received(session, frame);
 4814|    120|}
nghttp2_session.c:inbound_frame_payload_readlen:
 5281|  4.45k|                                            const uint8_t *last) {
 5282|  4.45k|  return nghttp2_min_size((size_t)(last - in), iframe->payloadleft);
 5283|  4.45k|}
nghttp2_session.c:inbound_frame_effective_readlen:
 5402|  3.86k|                                size_t payloadleft, size_t readlen) {
 5403|  3.86k|  size_t trail_padlen =
 5404|  3.86k|    nghttp2_frame_trail_padlen(&iframe->frame, iframe->padlen);
 5405|       |
 5406|  3.86k|  if (trail_padlen > payloadleft) {
  ------------------
  |  Branch (5406:7): [True: 41, False: 3.82k]
  ------------------
 5407|     41|    size_t padlen;
 5408|     41|    padlen = trail_padlen - payloadleft;
 5409|     41|    if (readlen < padlen) {
  ------------------
  |  Branch (5409:9): [True: 21, False: 20]
  ------------------
 5410|     21|      return -1;
 5411|     21|    }
 5412|     20|    return (nghttp2_ssize)(readlen - padlen);
 5413|     41|  }
 5414|  3.82k|  return (nghttp2_ssize)(readlen);
 5415|  3.86k|}
nghttp2_session.c:inflate_header_block:
 3519|  3.80k|                                int final, int call_header_cb) {
 3520|  3.80k|  nghttp2_inbound_frame *iframe = &session->iframe;
 3521|  3.80k|  nghttp2_ssize proclen;
 3522|  3.80k|  int rv;
 3523|  3.80k|  int inflate_flags;
 3524|  3.80k|  nghttp2_hd_nv nv;
 3525|  3.80k|  nghttp2_stream *stream;
 3526|  3.80k|  nghttp2_stream *subject_stream;
 3527|  3.80k|  int trailer = 0;
 3528|       |
 3529|  3.80k|  *readlen_ptr = 0;
 3530|  3.80k|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 3531|       |
 3532|  3.80k|  if (frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (3532:7): [True: 322, False: 3.48k]
  ------------------
 3533|    322|    subject_stream = nghttp2_session_get_stream(
 3534|    322|      session, frame->push_promise.promised_stream_id);
 3535|  3.48k|  } else {
 3536|  3.48k|    subject_stream = stream;
 3537|  3.48k|    trailer = session_trailer_headers(session, stream, frame);
 3538|  3.48k|  }
 3539|       |
 3540|  3.80k|  DEBUGF("recv: decoding header block %zu bytes\n", inlen);
  ------------------
  |  |   39|  3.80k|    do {                                                                       \
  |  |   40|  3.80k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3.80k]
  |  |  ------------------
  ------------------
 3541|  32.7k|  for (;;) {
 3542|  32.7k|    inflate_flags = 0;
 3543|  32.7k|    proclen = nghttp2_hd_inflate_hd_nv(&session->hd_inflater, &nv,
 3544|  32.7k|                                       &inflate_flags, in, inlen, final);
 3545|  32.7k|    if (nghttp2_is_fatal((int)proclen)) {
  ------------------
  |  Branch (3545:9): [True: 0, False: 32.7k]
  ------------------
 3546|      0|      return (int)proclen;
 3547|      0|    }
 3548|  32.7k|    if (proclen < 0) {
  ------------------
  |  Branch (3548:9): [True: 684, False: 32.0k]
  ------------------
 3549|    684|      if (session->iframe.state == NGHTTP2_IB_READ_HEADER_BLOCK) {
  ------------------
  |  Branch (3549:11): [True: 517, False: 167]
  ------------------
 3550|    517|        if (subject_stream && subject_stream->state != NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (3550:13): [True: 517, False: 0]
  |  Branch (3550:31): [True: 517, False: 0]
  ------------------
 3551|       |          /* Adding RST_STREAM here is very important. It prevents
 3552|       |             from invoking subsequent callbacks for the same stream
 3553|       |             ID. */
 3554|    517|          rv = nghttp2_session_add_rst_stream(
 3555|    517|            session, subject_stream->stream_id, NGHTTP2_COMPRESSION_ERROR);
 3556|       |
 3557|    517|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3557:15): [True: 0, False: 517]
  ------------------
 3558|      0|            return rv;
 3559|      0|          }
 3560|    517|        }
 3561|    517|      }
 3562|    684|      rv =
 3563|    684|        nghttp2_session_terminate_session(session, NGHTTP2_COMPRESSION_ERROR);
 3564|    684|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3564:11): [True: 0, False: 684]
  ------------------
 3565|      0|        return rv;
 3566|      0|      }
 3567|       |
 3568|    684|      return NGHTTP2_ERR_HEADER_COMP;
 3569|    684|    }
 3570|  32.0k|    in += proclen;
 3571|  32.0k|    inlen -= (size_t)proclen;
 3572|  32.0k|    *readlen_ptr += (size_t)proclen;
 3573|       |
 3574|  32.0k|    DEBUGF("recv: proclen=%td\n", proclen);
  ------------------
  |  |   39|  32.0k|    do {                                                                       \
  |  |   40|  32.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 32.0k]
  |  |  ------------------
  ------------------
 3575|       |
 3576|  32.0k|    if (call_header_cb && (inflate_flags & NGHTTP2_HD_INFLATE_EMIT)) {
  ------------------
  |  Branch (3576:9): [True: 24.8k, False: 7.25k]
  |  Branch (3576:27): [True: 22.5k, False: 2.29k]
  ------------------
 3577|  22.5k|      rv = 0;
 3578|  22.5k|      if (subject_stream) {
  ------------------
  |  Branch (3578:11): [True: 22.5k, False: 0]
  ------------------
 3579|  22.5k|        if (session_enforce_http_messaging(session)) {
  ------------------
  |  Branch (3579:13): [True: 22.5k, False: 0]
  ------------------
 3580|  22.5k|          rv = nghttp2_http_on_header(session, subject_stream, frame, &nv,
 3581|  22.5k|                                      trailer);
 3582|       |
 3583|  22.5k|          if (rv == NGHTTP2_ERR_IGN_HTTP_HEADER) {
  ------------------
  |  Branch (3583:15): [True: 6.97k, False: 15.5k]
  ------------------
 3584|       |            /* Don't overwrite rv here */
 3585|  6.97k|            int rv2;
 3586|       |
 3587|  6.97k|            rv2 = session_call_on_invalid_header(session, frame, &nv);
 3588|  6.97k|            if (rv2 == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (3588:17): [True: 0, False: 6.97k]
  ------------------
 3589|      0|              DEBUGF("recv: HTTP error: type=%u, id=%d, header %.*s: %.*s\n",
  ------------------
  |  |   39|      0|    do {                                                                       \
  |  |   40|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3590|      0|                     frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3591|      0|                     nv.name->base, (int)nv.value->len, nv.value->base);
 3592|       |
 3593|      0|              rv = session_call_error_callback(
 3594|      0|                session, NGHTTP2_ERR_HTTP_HEADER,
 3595|      0|                "Invalid HTTP header field was received: frame type: "
 3596|      0|                "%u, stream: %d, name: [%.*s], value: [%.*s]",
 3597|      0|                frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3598|      0|                nv.name->base, (int)nv.value->len, nv.value->base);
 3599|       |
 3600|      0|              if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3600:19): [True: 0, False: 0]
  ------------------
 3601|      0|                return rv;
 3602|      0|              }
 3603|       |
 3604|      0|              rv = session_handle_invalid_stream2(
 3605|      0|                session, subject_stream->stream_id, frame,
 3606|      0|                NGHTTP2_ERR_HTTP_HEADER);
 3607|      0|              if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3607:19): [True: 0, False: 0]
  ------------------
 3608|      0|                return rv;
 3609|      0|              }
 3610|       |
 3611|      0|              return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE;
 3612|  6.97k|            } else {
 3613|  6.97k|              if (rv2 != 0) {
  ------------------
  |  Branch (3613:19): [True: 0, False: 6.97k]
  ------------------
 3614|      0|                return rv2;
 3615|      0|              }
 3616|       |
 3617|       |              /* header is ignored */
 3618|  6.97k|              DEBUGF("recv: HTTP ignored: type=%u, id=%d, header %.*s: %.*s\n",
  ------------------
  |  |   39|  6.97k|    do {                                                                       \
  |  |   40|  6.97k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 6.97k]
  |  |  ------------------
  ------------------
 3619|  6.97k|                     frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3620|  6.97k|                     nv.name->base, (int)nv.value->len, nv.value->base);
 3621|       |
 3622|  6.97k|              rv2 = session_call_error_callback(
 3623|  6.97k|                session, NGHTTP2_ERR_HTTP_HEADER,
 3624|  6.97k|                "Ignoring received invalid HTTP header field: frame type: "
 3625|  6.97k|                "%u, stream: %d, name: [%.*s], value: [%.*s]",
 3626|  6.97k|                frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3627|  6.97k|                nv.name->base, (int)nv.value->len, nv.value->base);
 3628|       |
 3629|  6.97k|              if (nghttp2_is_fatal(rv2)) {
  ------------------
  |  Branch (3629:19): [True: 0, False: 6.97k]
  ------------------
 3630|      0|                return rv2;
 3631|      0|              }
 3632|  6.97k|            }
 3633|  6.97k|          }
 3634|       |
 3635|  22.5k|          if (rv == NGHTTP2_ERR_HTTP_HEADER) {
  ------------------
  |  Branch (3635:15): [True: 326, False: 22.2k]
  ------------------
 3636|    326|            DEBUGF("recv: HTTP error: type=%u, id=%d, header %.*s: %.*s\n",
  ------------------
  |  |   39|    326|    do {                                                                       \
  |  |   40|    326|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 326]
  |  |  ------------------
  ------------------
 3637|    326|                   frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3638|    326|                   nv.name->base, (int)nv.value->len, nv.value->base);
 3639|       |
 3640|    326|            rv = session_call_error_callback(
 3641|    326|              session, NGHTTP2_ERR_HTTP_HEADER,
 3642|    326|              "Invalid HTTP header field was received: frame type: "
 3643|    326|              "%u, stream: %d, name: [%.*s], value: [%.*s]",
 3644|    326|              frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3645|    326|              nv.name->base, (int)nv.value->len, nv.value->base);
 3646|       |
 3647|    326|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3647:17): [True: 0, False: 326]
  ------------------
 3648|      0|              return rv;
 3649|      0|            }
 3650|       |
 3651|    326|            rv =
 3652|    326|              session_handle_invalid_stream2(session, subject_stream->stream_id,
 3653|    326|                                             frame, NGHTTP2_ERR_HTTP_HEADER);
 3654|    326|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3654:17): [True: 0, False: 326]
  ------------------
 3655|      0|              return rv;
 3656|      0|            }
 3657|       |
 3658|    326|            rv = session_update_glitch_ratelim(session);
 3659|    326|            if (rv != 0) {
  ------------------
  |  Branch (3659:17): [True: 0, False: 326]
  ------------------
 3660|      0|              return rv;
 3661|      0|            }
 3662|       |
 3663|    326|            if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (3663:17): [True: 0, False: 326]
  ------------------
 3664|      0|              return 0;
 3665|      0|            }
 3666|       |
 3667|    326|            return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE;
 3668|    326|          }
 3669|  22.5k|        }
 3670|  22.2k|        if (rv == 0) {
  ------------------
  |  Branch (3670:13): [True: 15.2k, False: 6.97k]
  ------------------
 3671|  15.2k|          rv = session_call_on_header(session, frame, &nv);
 3672|       |          /* This handles NGHTTP2_ERR_PAUSE and
 3673|       |             NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE as well */
 3674|  15.2k|          if (rv != 0) {
  ------------------
  |  Branch (3674:15): [True: 0, False: 15.2k]
  ------------------
 3675|      0|            return rv;
 3676|      0|          }
 3677|  15.2k|        }
 3678|  22.2k|      }
 3679|  22.5k|    }
 3680|  31.7k|    if (inflate_flags & NGHTTP2_HD_INFLATE_FINAL) {
  ------------------
  |  Branch (3680:9): [True: 144, False: 31.6k]
  ------------------
 3681|    144|      nghttp2_hd_inflate_end_headers(&session->hd_inflater);
 3682|    144|      break;
 3683|    144|    }
 3684|  31.6k|    if ((inflate_flags & NGHTTP2_HD_INFLATE_EMIT) == 0 && inlen == 0) {
  ------------------
  |  Branch (3684:9): [True: 2.64k, False: 28.9k]
  |  Branch (3684:59): [True: 2.64k, False: 0]
  ------------------
 3685|  2.64k|      break;
 3686|  2.64k|    }
 3687|  31.6k|  }
 3688|  2.79k|  return 0;
 3689|  3.80k|}
nghttp2_session.c:session_trailer_headers:
   99|  3.48k|                                   nghttp2_frame *frame) {
  100|  3.48k|  if (!stream || frame->hd.type != NGHTTP2_HEADERS) {
  ------------------
  |  Branch (100:7): [True: 34, False: 3.44k]
  |  Branch (100:18): [True: 0, False: 3.44k]
  ------------------
  101|     34|    return 0;
  102|     34|  }
  103|  3.44k|  if (session->server) {
  ------------------
  |  Branch (103:7): [True: 0, False: 3.44k]
  ------------------
  104|      0|    return frame->headers.cat == NGHTTP2_HCAT_HEADERS;
  105|      0|  }
  106|       |
  107|  3.44k|  return frame->headers.cat == NGHTTP2_HCAT_HEADERS &&
  ------------------
  |  Branch (107:10): [True: 1, False: 3.44k]
  ------------------
  108|      1|         (stream->http_flags & NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE) == 0;
  ------------------
  |  Branch (108:10): [True: 1, False: 0]
  ------------------
  109|  3.44k|}
nghttp2_session.c:session_call_on_invalid_header:
 3281|  6.97k|                                          const nghttp2_hd_nv *nv) {
 3282|  6.97k|  int rv;
 3283|  6.97k|  if (session->callbacks.on_invalid_header_callback2) {
  ------------------
  |  Branch (3283:7): [True: 0, False: 6.97k]
  ------------------
 3284|      0|    rv = session->callbacks.on_invalid_header_callback2(
 3285|      0|      session, frame, nv->name, nv->value, nv->flags, session->user_data);
 3286|  6.97k|  } else if (session->callbacks.on_invalid_header_callback) {
  ------------------
  |  Branch (3286:14): [True: 0, False: 6.97k]
  ------------------
 3287|      0|    rv = session->callbacks.on_invalid_header_callback(
 3288|      0|      session, frame, nv->name->base, nv->name->len, nv->value->base,
 3289|      0|      nv->value->len, nv->flags, session->user_data);
 3290|  6.97k|  } else {
 3291|       |    /* If both callbacks are not set, the invalid field nv is
 3292|       |       ignored. */
 3293|  6.97k|    return 0;
 3294|  6.97k|  }
 3295|       |
 3296|      0|  if (rv == NGHTTP2_ERR_PAUSE || rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (3296:7): [True: 0, False: 0]
  |  Branch (3296:34): [True: 0, False: 0]
  ------------------
 3297|      0|    return rv;
 3298|      0|  }
 3299|      0|  if (rv != 0) {
  ------------------
  |  Branch (3299:7): [True: 0, False: 0]
  ------------------
 3300|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 3301|      0|  }
 3302|       |
 3303|      0|  return 0;
 3304|      0|}
nghttp2_session.c:session_call_on_header:
 3258|  15.2k|                                  const nghttp2_hd_nv *nv) {
 3259|  15.2k|  int rv = 0;
 3260|  15.2k|  if (session->callbacks.on_header_callback2) {
  ------------------
  |  Branch (3260:7): [True: 0, False: 15.2k]
  ------------------
 3261|      0|    rv = session->callbacks.on_header_callback2(
 3262|      0|      session, frame, nv->name, nv->value, nv->flags, session->user_data);
 3263|  15.2k|  } else if (session->callbacks.on_header_callback) {
  ------------------
  |  Branch (3263:14): [True: 15.2k, False: 0]
  ------------------
 3264|  15.2k|    rv = session->callbacks.on_header_callback(
 3265|  15.2k|      session, frame, nv->name->base, nv->name->len, nv->value->base,
 3266|  15.2k|      nv->value->len, nv->flags, session->user_data);
 3267|  15.2k|  }
 3268|       |
 3269|  15.2k|  if (rv == NGHTTP2_ERR_PAUSE || rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (3269:7): [True: 0, False: 15.2k]
  |  Branch (3269:34): [True: 0, False: 15.2k]
  ------------------
 3270|      0|    return rv;
 3271|      0|  }
 3272|  15.2k|  if (rv != 0) {
  ------------------
  |  Branch (3272:7): [True: 0, False: 15.2k]
  ------------------
 3273|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 3274|      0|  }
 3275|       |
 3276|  15.2k|  return 0;
 3277|  15.2k|}
nghttp2_session.c:session_after_header_block_received:
 3733|     59|static int session_after_header_block_received(nghttp2_session *session) {
 3734|     59|  int rv = 0;
 3735|     59|  nghttp2_frame *frame = &session->iframe.frame;
 3736|     59|  nghttp2_inbound_frame *iframe = &session->iframe;
 3737|     59|  nghttp2_stream *stream;
 3738|       |
 3739|       |  /* We don't call on_frame_recv_callback if stream has been closed
 3740|       |     already or being closed. */
 3741|     59|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 3742|     59|  if (!stream || stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (3742:7): [True: 0, False: 59]
  |  Branch (3742:18): [True: 0, False: 59]
  ------------------
 3743|      0|    return 0;
 3744|      0|  }
 3745|       |
 3746|     59|  if (session_enforce_http_messaging(session)) {
  ------------------
  |  Branch (3746:7): [True: 59, False: 0]
  ------------------
 3747|     59|    if (frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (3747:9): [True: 0, False: 59]
  ------------------
 3748|      0|      nghttp2_stream *subject_stream;
 3749|       |
 3750|      0|      subject_stream = nghttp2_session_get_stream(
 3751|      0|        session, frame->push_promise.promised_stream_id);
 3752|      0|      if (subject_stream) {
  ------------------
  |  Branch (3752:11): [True: 0, False: 0]
  ------------------
 3753|      0|        rv = nghttp2_http_on_request_headers(subject_stream, frame);
 3754|      0|      }
 3755|     59|    } else {
 3756|     59|      assert(frame->hd.type == NGHTTP2_HEADERS);
  ------------------
  |  Branch (3756:7): [True: 0, False: 59]
  |  Branch (3756:7): [True: 59, False: 0]
  ------------------
 3757|     59|      switch (frame->headers.cat) {
 3758|      0|      case NGHTTP2_HCAT_REQUEST:
  ------------------
  |  Branch (3758:7): [True: 0, False: 59]
  ------------------
 3759|      0|        rv = nghttp2_http_on_request_headers(stream, frame);
 3760|      0|        break;
 3761|     59|      case NGHTTP2_HCAT_RESPONSE:
  ------------------
  |  Branch (3761:7): [True: 59, False: 0]
  ------------------
 3762|     59|      case NGHTTP2_HCAT_PUSH_RESPONSE:
  ------------------
  |  Branch (3762:7): [True: 0, False: 59]
  ------------------
 3763|     59|        rv = nghttp2_http_on_response_headers(stream);
 3764|     59|        break;
 3765|      0|      case NGHTTP2_HCAT_HEADERS:
  ------------------
  |  Branch (3765:7): [True: 0, False: 59]
  ------------------
 3766|      0|        if (stream->http_flags & NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE) {
  ------------------
  |  Branch (3766:13): [True: 0, False: 0]
  ------------------
 3767|      0|          assert(!session->server);
  ------------------
  |  Branch (3767:11): [True: 0, False: 0]
  |  Branch (3767:11): [True: 0, False: 0]
  ------------------
 3768|      0|          rv = nghttp2_http_on_response_headers(stream);
 3769|      0|        } else {
 3770|      0|          rv = nghttp2_http_on_trailer_headers(stream, frame);
 3771|      0|        }
 3772|      0|        break;
 3773|      0|      default:
  ------------------
  |  Branch (3773:7): [True: 0, False: 59]
  ------------------
 3774|      0|        assert(0);
  ------------------
  |  Branch (3774:9): [Folded, False: 0]
  |  Branch (3774:9): [Folded, False: 0]
  ------------------
 3775|     59|      }
 3776|     59|      if (rv == 0 && (frame->hd.flags & NGHTTP2_FLAG_END_STREAM)) {
  ------------------
  |  Branch (3776:11): [True: 54, False: 5]
  |  Branch (3776:22): [True: 37, False: 17]
  ------------------
 3777|     37|        rv = nghttp2_http_on_remote_end_stream(stream);
 3778|     37|      }
 3779|     59|    }
 3780|     59|    if (rv != 0) {
  ------------------
  |  Branch (3780:9): [True: 5, False: 54]
  ------------------
 3781|      5|      int32_t stream_id;
 3782|       |
 3783|      5|      if (frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (3783:11): [True: 0, False: 5]
  ------------------
 3784|      0|        stream_id = frame->push_promise.promised_stream_id;
 3785|      5|      } else {
 3786|      5|        stream_id = frame->hd.stream_id;
 3787|      5|      }
 3788|       |
 3789|      5|      rv = session_handle_invalid_stream2(session, stream_id, frame,
 3790|      5|                                          NGHTTP2_ERR_HTTP_MESSAGING);
 3791|      5|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3791:11): [True: 0, False: 5]
  ------------------
 3792|      0|        return rv;
 3793|      0|      }
 3794|       |
 3795|      5|      rv = session_update_glitch_ratelim(session);
 3796|      5|      if (rv != 0) {
  ------------------
  |  Branch (3796:11): [True: 0, False: 5]
  ------------------
 3797|      0|        return rv;
 3798|      0|      }
 3799|       |
 3800|      5|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (3800:11): [True: 0, False: 5]
  ------------------
 3801|      0|        return 0;
 3802|      0|      }
 3803|       |
 3804|      5|      if (frame->hd.type == NGHTTP2_HEADERS &&
  ------------------
  |  Branch (3804:11): [True: 5, False: 0]
  ------------------
 3805|      5|          (frame->hd.flags & NGHTTP2_FLAG_END_STREAM)) {
  ------------------
  |  Branch (3805:11): [True: 3, False: 2]
  ------------------
 3806|      3|        nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 3807|       |        /* Don't call nghttp2_session_close_stream_if_shut_rdwr
 3808|       |           because RST_STREAM has been submitted. */
 3809|      3|      }
 3810|       |
 3811|      5|      return 0;
 3812|      5|    }
 3813|     59|  }
 3814|       |
 3815|     54|  rv = session_call_on_frame_received(session, frame);
 3816|     54|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3816:7): [True: 0, False: 54]
  ------------------
 3817|      0|    return rv;
 3818|      0|  }
 3819|       |
 3820|     54|  if (frame->hd.type != NGHTTP2_HEADERS) {
  ------------------
  |  Branch (3820:7): [True: 0, False: 54]
  ------------------
 3821|      0|    return 0;
 3822|      0|  }
 3823|       |
 3824|     54|  return session_end_stream_headers_received(session, frame, stream);
 3825|     54|}
nghttp2_session.c:session_end_stream_headers_received:
 3704|     54|                                               nghttp2_stream *stream) {
 3705|     54|  int rv;
 3706|       |
 3707|     54|  assert(frame->hd.type == NGHTTP2_HEADERS);
  ------------------
  |  Branch (3707:3): [True: 0, False: 54]
  |  Branch (3707:3): [True: 54, False: 0]
  ------------------
 3708|       |
 3709|     54|  if (session->server && session_enforce_http_messaging(session) &&
  ------------------
  |  Branch (3709:7): [True: 0, False: 54]
  |  Branch (3709:26): [True: 0, False: 0]
  ------------------
 3710|      0|      frame->headers.cat == NGHTTP2_HCAT_REQUEST &&
  ------------------
  |  Branch (3710:7): [True: 0, False: 0]
  ------------------
 3711|      0|      !(stream->flags & NGHTTP2_STREAM_FLAG_IGNORE_CLIENT_PRIORITIES) &&
  ------------------
  |  Branch (3711:7): [True: 0, False: 0]
  ------------------
 3712|      0|      (stream->http_flags & NGHTTP2_HTTP_FLAG_PRIORITY)) {
  ------------------
  |  Branch (3712:7): [True: 0, False: 0]
  ------------------
 3713|      0|    rv = session_update_stream_priority(session, stream, stream->http_extpri);
 3714|      0|    if (rv != 0) {
  ------------------
  |  Branch (3714:9): [True: 0, False: 0]
  ------------------
 3715|      0|      assert(nghttp2_is_fatal(rv));
  ------------------
  |  Branch (3715:7): [True: 0, False: 0]
  |  Branch (3715:7): [True: 0, False: 0]
  ------------------
 3716|      0|      return rv;
 3717|      0|    }
 3718|      0|  }
 3719|       |
 3720|     54|  if ((frame->hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
  ------------------
  |  Branch (3720:7): [True: 17, False: 37]
  ------------------
 3721|     17|    return 0;
 3722|     17|  }
 3723|       |
 3724|     37|  nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 3725|     37|  rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream);
 3726|     37|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3726:7): [True: 0, False: 37]
  ------------------
 3727|      0|    return rv;
 3728|      0|  }
 3729|       |
 3730|     37|  return 0;
 3731|     37|}
nghttp2_session.c:session_handle_frame_size_error:
 3356|     16|static int session_handle_frame_size_error(nghttp2_session *session) {
 3357|       |  /* TODO Currently no callback is called for this error, because we
 3358|       |     call this callback before reading any payload */
 3359|     16|  return nghttp2_session_terminate_session(session, NGHTTP2_FRAME_SIZE_ERROR);
 3360|     16|}
nghttp2_session.c:inbound_frame_set_settings_entry:
 5308|  2.05k|static void inbound_frame_set_settings_entry(nghttp2_inbound_frame *iframe) {
 5309|  2.05k|  nghttp2_settings_entry iv;
 5310|  2.05k|  nghttp2_settings_entry *min_header_table_size_entry;
 5311|  2.05k|  size_t i;
 5312|       |
 5313|  2.05k|  nghttp2_frame_unpack_settings_entry(&iv, iframe->sbuf.pos);
 5314|       |
 5315|  2.05k|  switch (iv.settings_id) {
 5316|    271|  case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (5316:3): [True: 271, False: 1.78k]
  ------------------
 5317|    320|  case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (5317:3): [True: 49, False: 2.00k]
  ------------------
 5318|    416|  case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (5318:3): [True: 96, False: 1.96k]
  ------------------
 5319|    586|  case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (5319:3): [True: 170, False: 1.88k]
  ------------------
 5320|    658|  case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (5320:3): [True: 72, False: 1.98k]
  ------------------
 5321|    727|  case NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE:
  ------------------
  |  Branch (5321:3): [True: 69, False: 1.98k]
  ------------------
 5322|    756|  case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (5322:3): [True: 29, False: 2.02k]
  ------------------
 5323|    815|  case NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES:
  ------------------
  |  Branch (5323:3): [True: 59, False: 1.99k]
  ------------------
 5324|    815|    break;
 5325|  1.24k|  default:
  ------------------
  |  Branch (5325:3): [True: 1.24k, False: 815]
  ------------------
 5326|  1.24k|    DEBUGF("recv: unknown settings id=0x%02x\n", iv.settings_id);
  ------------------
  |  |   39|  1.24k|    do {                                                                       \
  |  |   40|  1.24k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.24k]
  |  |  ------------------
  ------------------
 5327|       |
 5328|  1.24k|    iframe->iv[iframe->niv++] = iv;
 5329|       |
 5330|  1.24k|    return;
 5331|  2.05k|  }
 5332|       |
 5333|  2.60k|  for (i = 0; i < iframe->niv; ++i) {
  ------------------
  |  Branch (5333:15): [True: 2.04k, False: 559]
  ------------------
 5334|  2.04k|    if (iframe->iv[i].settings_id == iv.settings_id) {
  ------------------
  |  Branch (5334:9): [True: 256, False: 1.78k]
  ------------------
 5335|    256|      iframe->iv[i] = iv;
 5336|    256|      break;
 5337|    256|    }
 5338|  2.04k|  }
 5339|       |
 5340|    815|  if (i == iframe->niv) {
  ------------------
  |  Branch (5340:7): [True: 559, False: 256]
  ------------------
 5341|    559|    iframe->iv[iframe->niv++] = iv;
 5342|    559|  }
 5343|       |
 5344|    815|  if (iv.settings_id == NGHTTP2_SETTINGS_HEADER_TABLE_SIZE) {
  ------------------
  |  Branch (5344:7): [True: 271, False: 544]
  ------------------
 5345|       |    /* Keep track of minimum value of SETTINGS_HEADER_TABLE_SIZE */
 5346|    271|    min_header_table_size_entry = &iframe->iv[iframe->max_niv - 1];
 5347|       |
 5348|    271|    if (iv.value < min_header_table_size_entry->value) {
  ------------------
  |  Branch (5348:9): [True: 186, False: 85]
  ------------------
 5349|    186|      min_header_table_size_entry->value = iv.value;
 5350|    186|    }
 5351|    271|  }
 5352|    815|}
nghttp2_session.c:session_process_settings_frame:
 4535|  2.27k|static int session_process_settings_frame(nghttp2_session *session) {
 4536|  2.27k|  nghttp2_inbound_frame *iframe = &session->iframe;
 4537|  2.27k|  nghttp2_frame *frame = &iframe->frame;
 4538|  2.27k|  size_t i;
 4539|  2.27k|  nghttp2_settings_entry min_header_size_entry;
 4540|       |
 4541|  2.27k|  if (iframe->max_niv) {
  ------------------
  |  Branch (4541:7): [True: 439, False: 1.84k]
  ------------------
 4542|    439|    min_header_size_entry = iframe->iv[iframe->max_niv - 1];
 4543|       |
 4544|    439|    if (min_header_size_entry.value < UINT32_MAX) {
  ------------------
  |  Branch (4544:9): [True: 165, False: 274]
  ------------------
 4545|       |      /* If we have less value, then we must have
 4546|       |         SETTINGS_HEADER_TABLE_SIZE in i < iframe->niv */
 4547|    495|      for (i = 0; i < iframe->niv; ++i) {
  ------------------
  |  Branch (4547:19): [True: 495, False: 0]
  ------------------
 4548|    495|        if (iframe->iv[i].settings_id == NGHTTP2_SETTINGS_HEADER_TABLE_SIZE) {
  ------------------
  |  Branch (4548:13): [True: 165, False: 330]
  ------------------
 4549|    165|          break;
 4550|    165|        }
 4551|    495|      }
 4552|       |
 4553|    165|      assert(i < iframe->niv);
  ------------------
  |  Branch (4553:7): [True: 0, False: 165]
  |  Branch (4553:7): [True: 165, False: 0]
  ------------------
 4554|       |
 4555|    165|      if (min_header_size_entry.value != iframe->iv[i].value) {
  ------------------
  |  Branch (4555:11): [True: 18, False: 147]
  ------------------
 4556|     18|        iframe->iv[iframe->niv++] = iframe->iv[i];
 4557|     18|        iframe->iv[i] = min_header_size_entry;
 4558|     18|      }
 4559|    165|    }
 4560|    439|  }
 4561|       |
 4562|  2.27k|  nghttp2_frame_unpack_settings_payload(&frame->settings, iframe->iv,
 4563|  2.27k|                                        iframe->niv);
 4564|       |
 4565|  2.27k|  iframe->iv = NULL;
 4566|  2.27k|  iframe->niv = 0;
 4567|  2.27k|  iframe->max_niv = 0;
 4568|       |
 4569|  2.27k|  return nghttp2_session_on_settings_received(session, frame, 0 /* ACK */);
 4570|  2.27k|}
nghttp2_session.c:session_process_goaway_frame:
 4721|     55|static int session_process_goaway_frame(nghttp2_session *session) {
 4722|     55|  nghttp2_inbound_frame *iframe = &session->iframe;
 4723|     55|  nghttp2_frame *frame = &iframe->frame;
 4724|       |
 4725|     55|  nghttp2_frame_unpack_goaway_payload(&frame->goaway, iframe->sbuf.pos,
 4726|     55|                                      iframe->lbuf.pos,
 4727|     55|                                      nghttp2_buf_len(&iframe->lbuf));
  ------------------
  |  |   54|     55|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 4728|       |
 4729|     55|  nghttp2_buf_wrap_init(&iframe->lbuf, NULL, 0);
 4730|       |
 4731|     55|  return nghttp2_session_on_goaway_received(session, frame);
 4732|     55|}
nghttp2_session.c:session_update_connection_consumed_size:
 5187|  3.04k|                                                   size_t delta_size) {
 5188|  3.04k|  return session_update_consumed_size(
 5189|  3.04k|    session, &session->consumed_size, &session->recv_window_size,
 5190|  3.04k|    session->window_update_queued, 0, delta_size, session->local_window_size);
 5191|  3.04k|}
nghttp2_session.c:session_update_consumed_size:
 5144|  3.05k|                                        int32_t local_window_size) {
 5145|  3.05k|  int32_t recv_size;
 5146|  3.05k|  int rv;
 5147|       |
 5148|  3.05k|  if ((size_t)*consumed_size_ptr > NGHTTP2_MAX_WINDOW_SIZE - delta_size) {
  ------------------
  |  |  224|  3.05k|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (5148:7): [True: 0, False: 3.05k]
  ------------------
 5149|      0|    return nghttp2_session_terminate_session(session,
 5150|      0|                                             NGHTTP2_FLOW_CONTROL_ERROR);
 5151|      0|  }
 5152|       |
 5153|  3.05k|  *consumed_size_ptr += (int32_t)delta_size;
 5154|       |
 5155|  3.05k|  if (window_update_queued == 0) {
  ------------------
  |  Branch (5155:7): [True: 3.05k, False: 0]
  ------------------
 5156|       |    /* recv_window_size may be smaller than consumed_size, because it
 5157|       |       may be decreased by negative value with
 5158|       |       nghttp2_submit_window_update(). */
 5159|  3.05k|    recv_size = nghttp2_min_int32(*consumed_size_ptr, *recv_window_size_ptr);
 5160|       |
 5161|  3.05k|    if (nghttp2_should_send_window_update(local_window_size, recv_size)) {
  ------------------
  |  Branch (5161:9): [True: 0, False: 3.05k]
  ------------------
 5162|      0|      rv = nghttp2_session_add_window_update(session, NGHTTP2_FLAG_NONE,
 5163|      0|                                             stream_id, recv_size);
 5164|       |
 5165|      0|      if (rv != 0) {
  ------------------
  |  Branch (5165:11): [True: 0, False: 0]
  ------------------
 5166|      0|        return rv;
 5167|      0|      }
 5168|       |
 5169|      0|      *recv_window_size_ptr -= recv_size;
 5170|      0|      *consumed_size_ptr -= recv_size;
 5171|      0|    }
 5172|  3.05k|  }
 5173|       |
 5174|  3.05k|  return 0;
 5175|  3.05k|}
nghttp2_session.c:session_get_num_active_streams:
 7121|  42.8k|static size_t session_get_num_active_streams(nghttp2_session *session) {
 7122|  42.8k|  return nghttp2_map_size(&session->streams) - session->num_closed_streams -
 7123|  42.8k|         session->num_idle_streams;
 7124|  42.8k|}
nghttp2_session.c:session_sched_empty:
  955|  22.7k|static int session_sched_empty(nghttp2_session *session) {
  956|  22.7k|  size_t i;
  957|       |
  958|   203k|  for (i = 0; i < NGHTTP2_EXTPRI_URGENCY_LEVELS; ++i) {
  ------------------
  |  | 5028|   203k|#define NGHTTP2_EXTPRI_URGENCY_LEVELS (NGHTTP2_EXTPRI_URGENCY_LOW + 1)
  |  |  ------------------
  |  |  |  | 5020|   203k|#define NGHTTP2_EXTPRI_URGENCY_LOW 7
  |  |  ------------------
  ------------------
  |  Branch (958:15): [True: 180k, False: 22.5k]
  ------------------
  959|   180k|    if (!nghttp2_pq_empty(&session->sched[i].ob_data)) {
  ------------------
  |  Branch (959:9): [True: 164, False: 180k]
  ------------------
  960|    164|      return 0;
  961|    164|    }
  962|   180k|  }
  963|       |
  964|  22.5k|  return 1;
  965|  22.7k|}
nghttp2_session.c:inflight_settings_new:
  758|  2.94k|                                 nghttp2_mem *mem) {
  759|  2.94k|  *settings_ptr = nghttp2_mem_malloc(mem, sizeof(nghttp2_inflight_settings));
  760|  2.94k|  if (!*settings_ptr) {
  ------------------
  |  Branch (760:7): [True: 0, False: 2.94k]
  ------------------
  761|      0|    return NGHTTP2_ERR_NOMEM;
  762|      0|  }
  763|       |
  764|  2.94k|  if (niv > 0) {
  ------------------
  |  Branch (764:7): [True: 2.94k, False: 0]
  ------------------
  765|  2.94k|    (*settings_ptr)->iv = nghttp2_frame_iv_copy(iv, niv, mem);
  766|  2.94k|    if (!(*settings_ptr)->iv) {
  ------------------
  |  Branch (766:9): [True: 0, False: 2.94k]
  ------------------
  767|      0|      nghttp2_mem_free(mem, *settings_ptr);
  768|      0|      return NGHTTP2_ERR_NOMEM;
  769|      0|    }
  770|  2.94k|  } else {
  771|      0|    (*settings_ptr)->iv = NULL;
  772|      0|  }
  773|       |
  774|  2.94k|  (*settings_ptr)->niv = niv;
  775|  2.94k|  (*settings_ptr)->next = NULL;
  776|       |
  777|  2.94k|  return 0;
  778|  2.94k|}
nghttp2_session.c:session_append_inflight_settings:
 7303|  2.94k|                                 nghttp2_inflight_settings *settings) {
 7304|  2.94k|  nghttp2_inflight_settings **i;
 7305|       |
 7306|  2.94k|  for (i = &session->inflight_settings_head; *i; i = &(*i)->next)
  ------------------
  |  Branch (7306:46): [True: 0, False: 2.94k]
  ------------------
 7307|      0|    ;
 7308|       |
 7309|  2.94k|  *i = settings;
 7310|  2.94k|}
nghttp2_session.c:nghttp2_session_enforce_flow_control_limits:
 1759|  1.25k|  nghttp2_ssize requested_window_size) {
 1760|  1.25k|  DEBUGF("send: remote windowsize connection=%d, remote maxframsize=%u, "
  ------------------
  |  |   39|  1.25k|    do {                                                                       \
  |  |   40|  1.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.25k]
  |  |  ------------------
  ------------------
 1761|  1.25k|         "stream(id %d)=%d\n",
 1762|  1.25k|         session->remote_window_size, session->remote_settings.max_frame_size,
 1763|  1.25k|         stream->stream_id, stream->remote_window_size);
 1764|       |
 1765|  1.25k|  return nghttp2_min_int32(
 1766|  1.25k|    nghttp2_min_int32(nghttp2_min_int32((int32_t)requested_window_size,
 1767|  1.25k|                                        stream->remote_window_size),
 1768|  1.25k|                      session->remote_window_size),
 1769|  1.25k|    (int32_t)session->remote_settings.max_frame_size);
 1770|  1.25k|}
nghttp2_session.c:session_call_select_padding:
 1842|  3.79k|                                                 size_t max_payloadlen) {
 1843|  3.79k|  nghttp2_ssize rv;
 1844|  3.79k|  size_t max_paddedlen;
 1845|       |
 1846|  3.79k|  if (frame->hd.length >= max_payloadlen ||
  ------------------
  |  Branch (1846:7): [True: 469, False: 3.32k]
  ------------------
 1847|  3.32k|      (!session->callbacks.select_padding_callback2 &&
  ------------------
  |  Branch (1847:8): [True: 3.32k, False: 0]
  ------------------
 1848|  3.79k|       !session->callbacks.select_padding_callback)) {
  ------------------
  |  Branch (1848:8): [True: 3.32k, False: 0]
  ------------------
 1849|  3.79k|    return (nghttp2_ssize)frame->hd.length;
 1850|  3.79k|  }
 1851|       |
 1852|      0|  max_paddedlen =
 1853|      0|    nghttp2_min_size(frame->hd.length + NGHTTP2_MAX_PADLEN, max_payloadlen);
  ------------------
  |  |   67|      0|#define NGHTTP2_MAX_PADLEN 256
  ------------------
 1854|       |
 1855|      0|  if (session->callbacks.select_padding_callback2) {
  ------------------
  |  Branch (1855:7): [True: 0, False: 0]
  ------------------
 1856|      0|    rv = session->callbacks.select_padding_callback2(
 1857|      0|      session, frame, max_paddedlen, session->user_data);
 1858|      0|  } else {
 1859|      0|    rv = (nghttp2_ssize)session->callbacks.select_padding_callback(
 1860|      0|      session, frame, max_paddedlen, session->user_data);
 1861|      0|  }
 1862|      0|  if (rv < (nghttp2_ssize)frame->hd.length ||
  ------------------
  |  Branch (1862:7): [True: 0, False: 0]
  ------------------
 1863|      0|      rv > (nghttp2_ssize)max_paddedlen) {
  ------------------
  |  Branch (1863:7): [True: 0, False: 0]
  ------------------
 1864|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1865|      0|  }
 1866|      0|  return rv;
 1867|      0|}
nghttp2_session.c:session_reschedule_stream:
 2464|    910|                                      nghttp2_stream *stream) {
 2465|    910|  stream->last_writelen = stream->item->frame.hd.length;
 2466|       |
 2467|    910|  if (!session->server) {
  ------------------
  |  Branch (2467:7): [True: 910, False: 0]
  ------------------
 2468|    910|    return;
 2469|    910|  }
 2470|       |
 2471|      0|  session_sched_reschedule_stream(session, stream);
 2472|      0|}
nghttp2_session.c:session_resume_deferred_stream_item:
  926|    186|                                               uint8_t flags) {
  927|    186|  nghttp2_stream_resume_deferred_item(stream, flags);
  928|       |
  929|    186|  if (stream->flags & NGHTTP2_STREAM_FLAG_DEFERRED_ALL) {
  ------------------
  |  Branch (929:7): [True: 12, False: 174]
  ------------------
  930|     12|    return 0;
  931|     12|  }
  932|       |
  933|    174|  return session_ob_data_push(session, stream);
  934|    186|}
nghttp2_session.c:nghttp2_session_upgrade_internal:
 7799|     43|                                            void *stream_user_data) {
 7800|     43|  nghttp2_stream *stream;
 7801|     43|  nghttp2_frame frame;
 7802|     43|  nghttp2_settings_entry *iv;
 7803|     43|  size_t niv;
 7804|     43|  int rv;
 7805|     43|  nghttp2_mem *mem;
 7806|       |
 7807|     43|  mem = &session->mem;
 7808|       |
 7809|     43|  if ((!session->server && session->next_stream_id != 1) ||
  ------------------
  |  Branch (7809:8): [True: 43, False: 0]
  |  Branch (7809:28): [True: 0, False: 43]
  ------------------
 7810|     43|      (session->server && session->last_recv_stream_id >= 1)) {
  ------------------
  |  Branch (7810:8): [True: 0, False: 43]
  |  Branch (7810:27): [True: 0, False: 0]
  ------------------
 7811|      0|    return NGHTTP2_ERR_PROTO;
 7812|      0|  }
 7813|     43|  if (settings_payloadlen % NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH) {
  ------------------
  |  |   61|     43|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (7813:7): [True: 0, False: 43]
  ------------------
 7814|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7815|      0|  }
 7816|       |  /* SETTINGS frame contains too many settings */
 7817|     43|  if (settings_payloadlen / NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH >
  ------------------
  |  |   61|     43|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (7817:7): [True: 0, False: 43]
  ------------------
 7818|     43|      session->max_settings) {
 7819|      0|    return NGHTTP2_ERR_TOO_MANY_SETTINGS;
 7820|      0|  }
 7821|     43|  rv = nghttp2_frame_unpack_settings_payload2(&iv, &niv, settings_payload,
 7822|     43|                                              settings_payloadlen, mem);
 7823|     43|  if (rv != 0) {
  ------------------
  |  Branch (7823:7): [True: 0, False: 43]
  ------------------
 7824|      0|    return rv;
 7825|      0|  }
 7826|       |
 7827|     43|  if (session->server) {
  ------------------
  |  Branch (7827:7): [True: 0, False: 43]
  ------------------
 7828|      0|    nghttp2_frame_hd_init(&frame.hd, settings_payloadlen, NGHTTP2_SETTINGS,
 7829|      0|                          NGHTTP2_FLAG_NONE, 0);
 7830|      0|    frame.settings.iv = iv;
 7831|      0|    frame.settings.niv = niv;
 7832|      0|    rv = nghttp2_session_on_settings_received(session, &frame, 1 /* No ACK */);
 7833|     43|  } else {
 7834|     43|    rv = nghttp2_submit_settings(session, NGHTTP2_FLAG_NONE, iv, niv);
 7835|     43|  }
 7836|     43|  nghttp2_mem_free(mem, iv);
 7837|     43|  if (rv != 0) {
  ------------------
  |  Branch (7837:7): [True: 0, False: 43]
  ------------------
 7838|      0|    return rv;
 7839|      0|  }
 7840|       |
 7841|     43|  stream = nghttp2_session_open_stream(
 7842|     43|    session, 1, NGHTTP2_STREAM_FLAG_NONE, NGHTTP2_STREAM_OPENING,
 7843|     43|    session->server ? NULL : stream_user_data);
  ------------------
  |  Branch (7843:5): [True: 0, False: 43]
  ------------------
 7844|     43|  if (stream == NULL) {
  ------------------
  |  Branch (7844:7): [True: 0, False: 43]
  ------------------
 7845|      0|    return NGHTTP2_ERR_NOMEM;
 7846|      0|  }
 7847|       |
 7848|     43|  if (session->server) {
  ------------------
  |  Branch (7848:7): [True: 0, False: 43]
  ------------------
 7849|      0|    nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 7850|      0|    session->last_recv_stream_id = 1;
 7851|      0|    session->last_proc_stream_id = 1;
 7852|     43|  } else {
 7853|     43|    nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
 7854|     43|    session->last_sent_stream_id = 1;
 7855|     43|    session->next_stream_id += 2;
 7856|     43|  }
 7857|     43|  return 0;
 7858|     43|}
nghttp2_session.c:session_update_stream_consumed_size:
 5179|      3|                                               size_t delta_size) {
 5180|      3|  return session_update_consumed_size(
 5181|      3|    session, &stream->consumed_size, &stream->recv_window_size,
 5182|      3|    stream->window_update_queued, stream->stream_id, delta_size,
 5183|      3|    stream->local_window_size);
 5184|      3|}

nghttp2_stream_init:
   38|  2.93k|                         void *stream_user_data) {
   39|  2.93k|  stream->stream_id = stream_id;
   40|  2.93k|  stream->flags = flags;
   41|  2.93k|  stream->state = initial_state;
   42|  2.93k|  stream->shut_flags = NGHTTP2_SHUT_NONE;
   43|  2.93k|  stream->stream_user_data = stream_user_data;
   44|  2.93k|  stream->item = NULL;
   45|  2.93k|  stream->remote_window_size = remote_initial_window_size;
   46|  2.93k|  stream->local_window_size = local_initial_window_size;
   47|  2.93k|  stream->recv_window_size = 0;
   48|  2.93k|  stream->consumed_size = 0;
   49|  2.93k|  stream->recv_reduction = 0;
   50|  2.93k|  stream->window_update_queued = 0;
   51|       |
   52|  2.93k|  stream->closed_next = NULL;
   53|       |
   54|  2.93k|  stream->http_flags = NGHTTP2_HTTP_FLAG_NONE;
   55|  2.93k|  stream->content_length = -1;
   56|  2.93k|  stream->recv_content_length = 0;
   57|  2.93k|  stream->status_code = -1;
   58|       |
   59|  2.93k|  stream->queued = 0;
   60|  2.93k|  stream->cycle = 0;
   61|  2.93k|  stream->pending_penalty = 0;
   62|  2.93k|  stream->seq = 0;
   63|  2.93k|  stream->last_writelen = 0;
   64|       |
   65|  2.93k|  stream->extpri = stream->http_extpri = NGHTTP2_EXTPRI_DEFAULT_URGENCY;
  ------------------
  |  | 5004|  2.93k|#define NGHTTP2_EXTPRI_DEFAULT_URGENCY 3
  ------------------
   66|  2.93k|}
nghttp2_stream_free:
   68|  2.93k|void nghttp2_stream_free(nghttp2_stream *stream) { (void)stream; }
nghttp2_stream_shutdown:
   70|  2.67k|void nghttp2_stream_shutdown(nghttp2_stream *stream, nghttp2_shut_flag flag) {
   71|  2.67k|  stream->shut_flags = (uint8_t)(stream->shut_flags | flag);
   72|  2.67k|}
nghttp2_stream_attach_item:
   75|    717|                                nghttp2_outbound_item *item) {
   76|    717|  assert((stream->flags & NGHTTP2_STREAM_FLAG_DEFERRED_ALL) == 0);
  ------------------
  |  Branch (76:3): [True: 0, False: 717]
  |  Branch (76:3): [True: 717, False: 0]
  ------------------
   77|    717|  assert(stream->item == NULL);
  ------------------
  |  Branch (77:3): [True: 0, False: 717]
  |  Branch (77:3): [True: 717, False: 0]
  ------------------
   78|       |
   79|    717|  DEBUGF("stream: stream=%d attach item=%p\n", stream->stream_id, item);
  ------------------
  |  |   39|    717|    do {                                                                       \
  |  |   40|    717|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 717]
  |  |  ------------------
  ------------------
   80|       |
   81|    717|  stream->item = item;
   82|    717|}
nghttp2_stream_detach_item:
   84|    597|void nghttp2_stream_detach_item(nghttp2_stream *stream) {
   85|    597|  DEBUGF("stream: stream=%d detach item=%p\n", stream->stream_id, stream->item);
  ------------------
  |  |   39|    597|    do {                                                                       \
  |  |   40|    597|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 597]
  |  |  ------------------
  ------------------
   86|       |
   87|       |  stream->item = NULL;
   88|    597|  stream->flags = (uint8_t)(stream->flags & ~NGHTTP2_STREAM_FLAG_DEFERRED_ALL);
   89|    597|}
nghttp2_stream_defer_item:
   91|    347|void nghttp2_stream_defer_item(nghttp2_stream *stream, uint8_t flags) {
   92|    347|  assert(stream->item);
  ------------------
  |  Branch (92:3): [True: 0, False: 347]
  |  Branch (92:3): [True: 347, False: 0]
  ------------------
   93|       |
   94|    347|  DEBUGF("stream: stream=%d defer item=%p cause=%02x\n", stream->stream_id,
  ------------------
  |  |   39|    347|    do {                                                                       \
  |  |   40|    347|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 347]
  |  |  ------------------
  ------------------
   95|    347|         stream->item, flags);
   96|       |
   97|    347|  stream->flags |= flags;
   98|    347|}
nghttp2_stream_resume_deferred_item:
  101|    186|                                         uint8_t flags) {
  102|    186|  assert(stream->item);
  ------------------
  |  Branch (102:3): [True: 0, False: 186]
  |  Branch (102:3): [True: 186, False: 0]
  ------------------
  103|       |
  104|    186|  DEBUGF("stream: stream=%d resume item=%p flags=%02x\n", stream->stream_id,
  ------------------
  |  |   39|    186|    do {                                                                       \
  |  |   40|    186|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 186]
  |  |  ------------------
  ------------------
  105|    186|         stream->item, flags);
  106|       |
  107|    186|  stream->flags = (uint8_t)(stream->flags & ~flags);
  108|    186|}
nghttp2_stream_check_deferred_item:
  110|    655|int nghttp2_stream_check_deferred_item(nghttp2_stream *stream) {
  111|    655|  return stream->item && (stream->flags & NGHTTP2_STREAM_FLAG_DEFERRED_ALL);
  ------------------
  |  Branch (111:10): [True: 283, False: 372]
  |  Branch (111:26): [True: 186, False: 97]
  ------------------
  112|    655|}
nghttp2_stream_check_deferred_by_flow_control:
  114|    118|int nghttp2_stream_check_deferred_by_flow_control(nghttp2_stream *stream) {
  115|    118|  return stream->item &&
  ------------------
  |  Branch (115:10): [True: 29, False: 89]
  ------------------
  116|     29|         (stream->flags & NGHTTP2_STREAM_FLAG_DEFERRED_FLOW_CONTROL);
  ------------------
  |  Branch (116:10): [True: 0, False: 29]
  ------------------
  117|    118|}
nghttp2_stream_update_remote_initial_window_size:
  134|    100|  int32_t old_initial_window_size) {
  135|    100|  return update_initial_window_size(&stream->remote_window_size,
  136|    100|                                    new_initial_window_size,
  137|    100|                                    old_initial_window_size);
  138|    100|}
nghttp2_stream_update_local_initial_window_size:
  142|      3|  int32_t old_initial_window_size) {
  143|      3|  return update_initial_window_size(&stream->local_window_size,
  144|      3|                                    new_initial_window_size,
  145|      3|                                    old_initial_window_size);
  146|      3|}
nghttp2_stream.c:update_initial_window_size:
  121|    103|                                      int32_t old_initial_window_size) {
  122|    103|  int64_t new_window_size = (int64_t)(*window_size_ptr) +
  123|    103|                            new_initial_window_size - old_initial_window_size;
  124|    103|  if (INT32_MIN > new_window_size ||
  ------------------
  |  Branch (124:7): [True: 0, False: 103]
  ------------------
  125|    103|      new_window_size > NGHTTP2_MAX_WINDOW_SIZE) {
  ------------------
  |  |  224|    103|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (125:7): [True: 1, False: 102]
  ------------------
  126|      1|    return -1;
  127|      1|  }
  128|    102|  *window_size_ptr = (int32_t)new_window_size;
  129|    102|  return 0;
  130|    103|}

nghttp2_submit_rst_stream:
  181|  2.88k|                              int32_t stream_id, uint32_t error_code) {
  182|  2.88k|  (void)flags;
  183|       |
  184|  2.88k|  if (stream_id == 0) {
  ------------------
  |  Branch (184:7): [True: 0, False: 2.88k]
  ------------------
  185|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
  186|      0|  }
  187|       |
  188|  2.88k|  return nghttp2_session_add_rst_stream_continue(
  189|  2.88k|    session, stream_id, error_code, /* continue_without_stream = */ 0);
  190|  2.88k|}
nghttp2_submit_goaway:
  194|    493|                          const uint8_t *opaque_data, size_t opaque_data_len) {
  195|    493|  (void)flags;
  196|       |
  197|    493|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) {
  ------------------
  |  Branch (197:7): [True: 5, False: 488]
  ------------------
  198|      5|    return 0;
  199|      5|  }
  200|    488|  return nghttp2_session_add_goaway(session, last_stream_id, error_code,
  201|    488|                                    opaque_data, opaque_data_len,
  202|    488|                                    NGHTTP2_GOAWAY_AUX_NONE);
  203|    493|}
nghttp2_submit_settings:
  218|  2.94k|                            const nghttp2_settings_entry *iv, size_t niv) {
  219|  2.94k|  (void)flags;
  220|  2.94k|  return nghttp2_session_add_settings(session, NGHTTP2_FLAG_NONE, iv, niv);
  221|  2.94k|}
nghttp2_session_set_local_window_size:
  336|  5.87k|                                          int32_t window_size) {
  337|  5.87k|  int32_t window_size_increment;
  338|  5.87k|  nghttp2_stream *stream;
  339|  5.87k|  int rv;
  340|  5.87k|  (void)flags;
  341|       |
  342|  5.87k|  if (window_size < 0) {
  ------------------
  |  Branch (342:7): [True: 0, False: 5.87k]
  ------------------
  343|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
  344|      0|  }
  345|       |
  346|  5.87k|  if (stream_id == 0) {
  ------------------
  |  Branch (346:7): [True: 2.94k, False: 2.93k]
  ------------------
  347|  2.94k|    window_size_increment = window_size - session->local_window_size;
  348|       |
  349|  2.94k|    if (window_size_increment == 0) {
  ------------------
  |  Branch (349:9): [True: 0, False: 2.94k]
  ------------------
  350|      0|      return 0;
  351|      0|    }
  352|       |
  353|  2.94k|    if (window_size_increment < 0) {
  ------------------
  |  Branch (353:9): [True: 0, False: 2.94k]
  ------------------
  354|      0|      return nghttp2_adjust_local_window_size(
  355|      0|        &session->local_window_size, &session->recv_window_size,
  356|      0|        &session->recv_reduction, &window_size_increment);
  357|      0|    }
  358|       |
  359|  2.94k|    rv = nghttp2_increase_local_window_size(
  360|  2.94k|      &session->local_window_size, &session->recv_window_size,
  361|  2.94k|      &session->recv_reduction, &window_size_increment);
  362|       |
  363|  2.94k|    if (rv != 0) {
  ------------------
  |  Branch (363:9): [True: 0, False: 2.94k]
  ------------------
  364|      0|      return rv;
  365|      0|    }
  366|       |
  367|  2.94k|    if (window_size_increment > 0) {
  ------------------
  |  Branch (367:9): [True: 2.94k, False: 0]
  ------------------
  368|  2.94k|      return nghttp2_session_add_window_update(session, 0, stream_id,
  369|  2.94k|                                               window_size_increment);
  370|  2.94k|    }
  371|       |
  372|      0|    return nghttp2_session_update_recv_connection_window_size(session, 0);
  373|  2.94k|  } else {
  374|  2.93k|    stream = nghttp2_session_get_stream(session, stream_id);
  375|       |
  376|  2.93k|    if (stream == NULL) {
  ------------------
  |  Branch (376:9): [True: 0, False: 2.93k]
  ------------------
  377|      0|      return 0;
  378|      0|    }
  379|       |
  380|  2.93k|    window_size_increment = window_size - stream->local_window_size;
  381|       |
  382|  2.93k|    if (window_size_increment == 0) {
  ------------------
  |  Branch (382:9): [True: 0, False: 2.93k]
  ------------------
  383|      0|      return 0;
  384|      0|    }
  385|       |
  386|  2.93k|    if (window_size_increment < 0) {
  ------------------
  |  Branch (386:9): [True: 2.93k, False: 0]
  ------------------
  387|  2.93k|      return nghttp2_adjust_local_window_size(
  388|  2.93k|        &stream->local_window_size, &stream->recv_window_size,
  389|  2.93k|        &stream->recv_reduction, &window_size_increment);
  390|  2.93k|    }
  391|       |
  392|      0|    rv = nghttp2_increase_local_window_size(
  393|      0|      &stream->local_window_size, &stream->recv_window_size,
  394|      0|      &stream->recv_reduction, &window_size_increment);
  395|       |
  396|      0|    if (rv != 0) {
  ------------------
  |  Branch (396:9): [True: 0, False: 0]
  ------------------
  397|      0|      return rv;
  398|      0|    }
  399|       |
  400|      0|    if (window_size_increment > 0) {
  ------------------
  |  Branch (400:9): [True: 0, False: 0]
  ------------------
  401|      0|      return nghttp2_session_add_window_update(session, 0, stream_id,
  402|      0|                                               window_size_increment);
  403|      0|    }
  404|       |
  405|      0|    return nghttp2_session_update_recv_stream_window_size(session, stream, 0,
  406|      0|                                                          1);
  407|      0|  }
  408|  5.87k|}
nghttp2_submit_request:
  679|  2.88k|                               void *stream_user_data) {
  680|  2.88k|  nghttp2_data_provider_wrap dpw;
  681|  2.88k|  (void)pri_spec;
  682|       |
  683|  2.88k|  return submit_request_shared(session, nva, nvlen,
  684|  2.88k|                               nghttp2_data_provider_wrap_v1(&dpw, data_prd),
  685|  2.88k|                               stream_user_data);
  686|  2.88k|}
nghttp2_submit_data_shared:
  747|    717|                               const nghttp2_data_provider_wrap *dpw) {
  748|    717|  int rv;
  749|    717|  nghttp2_outbound_item *item;
  750|    717|  nghttp2_frame *frame;
  751|    717|  nghttp2_data_aux_data *aux_data;
  752|    717|  uint8_t nflags = flags & NGHTTP2_FLAG_END_STREAM;
  753|    717|  nghttp2_mem *mem;
  754|       |
  755|    717|  mem = &session->mem;
  756|       |
  757|    717|  if (stream_id == 0) {
  ------------------
  |  Branch (757:7): [True: 0, False: 717]
  ------------------
  758|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
  759|      0|  }
  760|       |
  761|    717|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
  762|    717|  if (item == NULL) {
  ------------------
  |  Branch (762:7): [True: 0, False: 717]
  ------------------
  763|      0|    return NGHTTP2_ERR_NOMEM;
  764|      0|  }
  765|       |
  766|    717|  nghttp2_outbound_item_init(item);
  767|       |
  768|    717|  frame = &item->frame;
  769|    717|  aux_data = &item->aux_data.data;
  770|    717|  aux_data->dpw = *dpw;
  771|    717|  aux_data->eof = 0;
  772|    717|  aux_data->flags = nflags;
  773|       |
  774|       |  /* flags are sent on transmission */
  775|    717|  nghttp2_frame_data_init(&frame->data, NGHTTP2_FLAG_NONE, stream_id);
  776|       |
  777|    717|  rv = nghttp2_session_add_item(session, item);
  778|    717|  if (rv != 0) {
  ------------------
  |  Branch (778:7): [True: 0, False: 717]
  ------------------
  779|      0|    nghttp2_frame_data_free(&frame->data);
  780|      0|    nghttp2_mem_free(mem, item);
  781|      0|    return rv;
  782|      0|  }
  783|    717|  return 0;
  784|    717|}
nghttp2_pack_settings_payload:
  810|    526|                                      size_t niv) {
  811|    526|  return (ssize_t)nghttp2_pack_settings_payload2(buf, buflen, iv, niv);
  812|    526|}
nghttp2_pack_settings_payload2:
  816|    526|                                             size_t niv) {
  817|    526|  if (!nghttp2_iv_check(iv, niv)) {
  ------------------
  |  Branch (817:7): [True: 0, False: 526]
  ------------------
  818|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
  819|      0|  }
  820|       |
  821|    526|  if (buflen < (niv * NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH)) {
  ------------------
  |  |   61|    526|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (821:7): [True: 0, False: 526]
  ------------------
  822|      0|    return NGHTTP2_ERR_INSUFF_BUFSIZE;
  823|      0|  }
  824|       |
  825|    526|  return (nghttp2_ssize)nghttp2_frame_pack_settings_payload(buf, iv, niv);
  826|    526|}
nghttp2_submit.c:submit_headers_shared_nva:
  116|  2.88k|                                         void *stream_user_data) {
  117|  2.88k|  int rv;
  118|  2.88k|  nghttp2_nv *nva_copy;
  119|  2.88k|  nghttp2_mem *mem;
  120|       |
  121|  2.88k|  mem = &session->mem;
  122|       |
  123|  2.88k|  rv = nghttp2_nv_array_copy(&nva_copy, nva, nvlen, mem);
  124|  2.88k|  if (rv < 0) {
  ------------------
  |  Branch (124:7): [True: 0, False: 2.88k]
  ------------------
  125|      0|    return rv;
  126|      0|  }
  127|       |
  128|  2.88k|  return submit_headers_shared(session, flags, stream_id, nva_copy, nvlen, dpw,
  129|  2.88k|                               stream_user_data);
  130|  2.88k|}
nghttp2_submit.c:submit_headers_shared:
   42|  2.88k|                                     void *stream_user_data) {
   43|  2.88k|  int rv;
   44|  2.88k|  uint8_t flags_copy;
   45|  2.88k|  nghttp2_outbound_item *item = NULL;
   46|  2.88k|  nghttp2_frame *frame = NULL;
   47|  2.88k|  nghttp2_headers_category hcat;
   48|  2.88k|  nghttp2_mem *mem;
   49|       |
   50|  2.88k|  mem = &session->mem;
   51|       |
   52|  2.88k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
   53|  2.88k|  if (item == NULL) {
  ------------------
  |  Branch (53:7): [True: 0, False: 2.88k]
  ------------------
   54|      0|    rv = NGHTTP2_ERR_NOMEM;
   55|      0|    goto fail;
   56|      0|  }
   57|       |
   58|  2.88k|  nghttp2_outbound_item_init(item);
   59|       |
   60|  2.88k|  if (dpw != NULL && nghttp2_data_provider_wrap_contains_read_callback(dpw)) {
  ------------------
  |  Branch (60:7): [True: 717, False: 2.17k]
  |  Branch (60:22): [True: 717, False: 0]
  ------------------
   61|    717|    item->aux_data.headers.dpw = *dpw;
   62|    717|  }
   63|       |
   64|  2.88k|  item->aux_data.headers.stream_user_data = stream_user_data;
   65|       |
   66|  2.88k|  flags_copy =
   67|  2.88k|    (uint8_t)((flags & (NGHTTP2_FLAG_END_STREAM | NGHTTP2_FLAG_PRIORITY)) |
   68|  2.88k|              NGHTTP2_FLAG_END_HEADERS);
   69|       |
   70|  2.88k|  if (stream_id == -1) {
  ------------------
  |  Branch (70:7): [True: 2.88k, False: 0]
  ------------------
   71|  2.88k|    if (session->next_stream_id > INT32_MAX) {
  ------------------
  |  Branch (71:9): [True: 0, False: 2.88k]
  ------------------
   72|      0|      rv = NGHTTP2_ERR_STREAM_ID_NOT_AVAILABLE;
   73|      0|      goto fail;
   74|      0|    }
   75|       |
   76|  2.88k|    stream_id = (int32_t)session->next_stream_id;
   77|  2.88k|    session->next_stream_id += 2;
   78|       |
   79|  2.88k|    hcat = NGHTTP2_HCAT_REQUEST;
   80|  2.88k|  } else {
   81|       |    /* More specific categorization will be done later. */
   82|      0|    hcat = NGHTTP2_HCAT_HEADERS;
   83|      0|  }
   84|       |
   85|  2.88k|  frame = &item->frame;
   86|       |
   87|  2.88k|  nghttp2_frame_headers_init(&frame->headers, flags_copy, stream_id, hcat, NULL,
   88|  2.88k|                             nva_copy, nvlen);
   89|       |
   90|  2.88k|  rv = nghttp2_session_add_item(session, item);
   91|       |
   92|  2.88k|  if (rv != 0) {
  ------------------
  |  Branch (92:7): [True: 0, False: 2.88k]
  ------------------
   93|      0|    nghttp2_frame_headers_free(&frame->headers, mem);
   94|      0|    goto fail2;
   95|      0|  }
   96|       |
   97|  2.88k|  if (hcat == NGHTTP2_HCAT_REQUEST) {
  ------------------
  |  Branch (97:7): [True: 2.88k, False: 0]
  ------------------
   98|  2.88k|    return stream_id;
   99|  2.88k|  }
  100|       |
  101|      0|  return 0;
  102|       |
  103|      0|fail:
  104|       |  /* nghttp2_frame_headers_init() takes ownership of nva_copy. */
  105|      0|  nghttp2_nv_array_del(nva_copy, mem);
  106|      0|fail2:
  107|      0|  nghttp2_mem_free(mem, item);
  108|       |
  109|      0|  return rv;
  110|      0|}
nghttp2_submit.c:submit_request_shared:
  662|  2.88k|                                     void *stream_user_data) {
  663|  2.88k|  uint8_t flags;
  664|       |
  665|  2.88k|  if (session->server) {
  ------------------
  |  Branch (665:7): [True: 0, False: 2.88k]
  ------------------
  666|      0|    return NGHTTP2_ERR_PROTO;
  667|      0|  }
  668|       |
  669|  2.88k|  flags = set_request_flags(dpw);
  670|       |
  671|  2.88k|  return submit_headers_shared_nva(session, flags, -1, nva, nvlen, dpw,
  672|  2.88k|                                   stream_user_data);
  673|  2.88k|}
nghttp2_submit.c:set_request_flags:
  650|  2.88k|static uint8_t set_request_flags(const nghttp2_data_provider_wrap *dpw) {
  651|  2.88k|  uint8_t flags = NGHTTP2_FLAG_NONE;
  652|  2.88k|  if (dpw == NULL || !nghttp2_data_provider_wrap_contains_read_callback(dpw)) {
  ------------------
  |  Branch (652:7): [True: 2.17k, False: 717]
  |  Branch (652:22): [True: 0, False: 717]
  ------------------
  653|  2.17k|    flags |= NGHTTP2_FLAG_END_STREAM;
  654|  2.17k|  }
  655|       |
  656|  2.88k|  return flags;
  657|  2.88k|}

nghttp2_time_now_sec:
   48|    488|uint64_t nghttp2_time_now_sec(void) {
   49|    488|  struct timespec tp;
   50|    488|  int rv = clock_gettime(CLOCK_MONOTONIC, &tp);
   51|       |
   52|    488|  if (rv == -1) {
  ------------------
  |  Branch (52:7): [True: 0, False: 488]
  ------------------
   53|      0|    return time_now_sec();
   54|      0|  }
   55|       |
   56|    488|  return (uint64_t)tp.tv_sec;
   57|    488|}

CRYPTO_malloc_array:
   19|  73.8k|{
   20|  73.8k|    size_t bytes;
   21|       |
   22|  73.8k|    if (ossl_unlikely(!ossl_size_mul(num, size, &bytes, file, line)))
  ------------------
  |  |   23|  73.8k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 73.8k]
  |  |  ------------------
  ------------------
   23|      0|        return NULL;
   24|       |
   25|  73.8k|    return CRYPTO_malloc(bytes, file, line);
   26|  73.8k|}
CRYPTO_calloc:
   29|  1.42M|{
   30|  1.42M|    size_t bytes;
   31|       |
   32|  1.42M|    if (ossl_unlikely(!ossl_size_mul(num, size, &bytes, file, line)))
  ------------------
  |  |   23|  1.42M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.42M]
  |  |  ------------------
  ------------------
   33|      0|        return NULL;
   34|       |
   35|  1.42M|    return CRYPTO_zalloc(bytes, file, line);
   36|  1.42M|}
CRYPTO_aligned_alloc_array:
   40|      2|{
   41|      2|    size_t bytes;
   42|       |
   43|      2|    if (ossl_unlikely(!ossl_size_mul(num, size, &bytes, file, line))) {
  ------------------
  |  |   23|      2|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2]
  |  |  ------------------
  ------------------
   44|      0|        *freeptr = NULL;
   45|       |
   46|      0|        return NULL;
   47|      0|    }
   48|       |
   49|      2|    return CRYPTO_aligned_alloc(bytes, align, freeptr, file, line);
   50|      2|}
CRYPTO_realloc_array:
   54|  47.1k|{
   55|  47.1k|    size_t bytes;
   56|       |
   57|  47.1k|    if (ossl_unlikely(!ossl_size_mul(num, size, &bytes, file, line)))
  ------------------
  |  |   23|  47.1k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 47.1k]
  |  |  ------------------
  ------------------
   58|      0|        return NULL;
   59|       |
   60|  47.1k|    return CRYPTO_realloc(addr, bytes, file, line);
   61|  47.1k|}

ossl_c2i_ASN1_BIT_STRING:
   86|   127k|{
   87|   127k|    ASN1_BIT_STRING *ret = NULL;
   88|   127k|    const unsigned char *p;
   89|   127k|    unsigned char *s;
   90|   127k|    int i = 0;
   91|       |
   92|   127k|    if (len < 1) {
  ------------------
  |  Branch (92:9): [True: 0, False: 127k]
  ------------------
   93|      0|        i = ASN1_R_STRING_TOO_SHORT;
  ------------------
  |  |  114|      0|#define ASN1_R_STRING_TOO_SHORT 152
  ------------------
   94|      0|        goto err;
   95|      0|    }
   96|       |
   97|   127k|    if (len > INT_MAX) {
  ------------------
  |  Branch (97:9): [True: 0, False: 127k]
  ------------------
   98|      0|        i = ASN1_R_STRING_TOO_LONG;
  ------------------
  |  |  113|      0|#define ASN1_R_STRING_TOO_LONG 151
  ------------------
   99|      0|        goto err;
  100|      0|    }
  101|       |
  102|   127k|    if ((a == NULL) || ((*a) == NULL)) {
  ------------------
  |  Branch (102:9): [True: 0, False: 127k]
  |  Branch (102:24): [True: 31.9k, False: 95.9k]
  ------------------
  103|  31.9k|        if ((ret = ASN1_BIT_STRING_new()) == NULL)
  ------------------
  |  Branch (103:13): [True: 0, False: 31.9k]
  ------------------
  104|      0|            return NULL;
  105|  31.9k|    } else
  106|  95.9k|        ret = (*a);
  107|       |
  108|   127k|    p = *pp;
  109|   127k|    i = *(p++);
  110|   127k|    if (i > 7) {
  ------------------
  |  Branch (110:9): [True: 0, False: 127k]
  ------------------
  111|      0|        i = ASN1_R_INVALID_BIT_STRING_BITS_LEFT;
  ------------------
  |  |   70|      0|#define ASN1_R_INVALID_BIT_STRING_BITS_LEFT 220
  ------------------
  112|      0|        goto err;
  113|      0|    }
  114|       |    /*
  115|       |     * We do this to preserve the settings.  If we modify the settings, via
  116|       |     * the _set_bit function, we will recalculate on output
  117|       |     */
  118|   127k|    ossl_asn1_string_set_bits_left(ret, i);
  119|       |
  120|   127k|    if (len-- > 1) { /* using one because of the bits left byte */
  ------------------
  |  Branch (120:9): [True: 127k, False: 0]
  ------------------
  121|   127k|        s = OPENSSL_malloc((int)len);
  ------------------
  |  |  106|   127k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  122|   127k|        if (s == NULL) {
  ------------------
  |  Branch (122:13): [True: 0, False: 127k]
  ------------------
  123|      0|            goto err;
  124|      0|        }
  125|   127k|        memcpy(s, p, (int)len);
  126|   127k|        s[len - 1] &= (0xff << i);
  127|   127k|        p += len;
  128|   127k|    } else
  129|      0|        s = NULL;
  130|       |
  131|   127k|    ASN1_STRING_set0(ret, s, (int)len);
  132|   127k|    ret->type = V_ASN1_BIT_STRING;
  ------------------
  |  |   67|   127k|#define V_ASN1_BIT_STRING 3
  ------------------
  133|   127k|    if (a != NULL)
  ------------------
  |  Branch (133:9): [True: 127k, False: 0]
  ------------------
  134|   127k|        (*a) = ret;
  135|   127k|    *pp = p;
  136|   127k|    return ret;
  137|      0|err:
  138|      0|    if (i != 0)
  ------------------
  |  Branch (138:9): [True: 0, False: 0]
  ------------------
  139|      0|        ERR_raise(ERR_LIB_ASN1, i);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  140|      0|    if ((a == NULL) || (*a != ret))
  ------------------
  |  Branch (140:9): [True: 0, False: 0]
  |  Branch (140:24): [True: 0, False: 0]
  ------------------
  141|      0|        ASN1_BIT_STRING_free(ret);
  142|       |    return NULL;
  143|   127k|}

asn1_d2i_read_bio:
  110|  63.9k|{
  111|  63.9k|    BUF_MEM *b;
  112|  63.9k|    unsigned char *p;
  113|  63.9k|    size_t want = HEADER_SIZE;
  ------------------
  |  |  107|  63.9k|#define HEADER_SIZE 8
  ------------------
  114|  63.9k|    uint32_t eos = 0;
  115|  63.9k|    size_t off = 0;
  116|  63.9k|    size_t len = 0;
  117|  63.9k|    size_t diff;
  118|       |
  119|  63.9k|    const unsigned char *q;
  120|  63.9k|    long slen;
  121|  63.9k|    int inf, tag, xclass;
  122|       |
  123|  63.9k|    b = BUF_MEM_new();
  124|  63.9k|    if (b == NULL) {
  ------------------
  |  Branch (124:9): [True: 0, False: 63.9k]
  ------------------
  125|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_BUF_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  126|      0|        return -1;
  127|      0|    }
  128|       |
  129|  63.9k|    ERR_set_mark();
  130|  63.9k|    for (;;) {
  131|  63.9k|        diff = len - off;
  132|  63.9k|        if (want >= diff) {
  ------------------
  |  Branch (132:13): [True: 63.9k, False: 0]
  ------------------
  133|  63.9k|            int i;
  134|       |
  135|  63.9k|            want -= diff;
  136|       |
  137|  63.9k|            if (len + want < len || !BUF_MEM_grow_clean(b, len + want)) {
  ------------------
  |  Branch (137:17): [True: 0, False: 63.9k]
  |  Branch (137:37): [True: 0, False: 63.9k]
  ------------------
  138|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_BUF_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  139|      0|                goto err;
  140|      0|            }
  141|  63.9k|            i = BIO_read(in, &(b->data[len]), (int)want);
  142|  63.9k|            if (i < 0 && diff == 0) {
  ------------------
  |  Branch (142:17): [True: 0, False: 63.9k]
  |  Branch (142:26): [True: 0, False: 0]
  ------------------
  143|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_NOT_ENOUGH_DATA);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  144|      0|                goto err;
  145|      0|            }
  146|  63.9k|            if (i > 0) {
  ------------------
  |  Branch (146:17): [True: 63.9k, False: 0]
  ------------------
  147|  63.9k|                if (len + i < len) {
  ------------------
  |  Branch (147:21): [True: 0, False: 63.9k]
  ------------------
  148|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  149|      0|                    goto err;
  150|      0|                }
  151|  63.9k|                len += i;
  152|  63.9k|                if ((size_t)i < want)
  ------------------
  |  Branch (152:21): [True: 0, False: 63.9k]
  ------------------
  153|      0|                    continue;
  154|  63.9k|            }
  155|  63.9k|        }
  156|       |        /* else data already loaded */
  157|       |
  158|  63.9k|        p = (unsigned char *)&(b->data[off]);
  159|  63.9k|        q = p;
  160|  63.9k|        diff = len - off;
  161|  63.9k|        if (diff == 0)
  ------------------
  |  Branch (161:13): [True: 0, False: 63.9k]
  ------------------
  162|      0|            goto err;
  163|  63.9k|        inf = ASN1_get_object(&q, &slen, &tag, &xclass, (int)diff);
  164|  63.9k|        if (inf & 0x80) {
  ------------------
  |  Branch (164:13): [True: 63.9k, False: 0]
  ------------------
  165|  63.9k|            unsigned long e;
  166|       |
  167|  63.9k|            e = ERR_GET_REASON(ERR_peek_last_error());
  168|  63.9k|            if (e != ASN1_R_TOO_LONG)
  ------------------
  |  |  118|  63.9k|#define ASN1_R_TOO_LONG 155
  ------------------
  |  Branch (168:17): [True: 0, False: 63.9k]
  ------------------
  169|      0|                goto err;
  170|  63.9k|            ERR_pop_to_mark();
  171|  63.9k|            ERR_set_mark();
  172|  63.9k|        }
  173|  63.9k|        off += q - p; /* end of data */
  174|       |
  175|  63.9k|        if (inf & 1) {
  ------------------
  |  Branch (175:13): [True: 0, False: 63.9k]
  ------------------
  176|       |            /* no data body so go round again */
  177|      0|            if (eos == UINT32_MAX) {
  ------------------
  |  Branch (177:17): [True: 0, False: 0]
  ------------------
  178|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_HEADER_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  179|      0|                goto err;
  180|      0|            }
  181|      0|            eos++;
  182|      0|            want = HEADER_SIZE;
  ------------------
  |  |  107|      0|#define HEADER_SIZE 8
  ------------------
  183|  63.9k|        } else if (eos && (slen == 0) && (tag == V_ASN1_EOC)) {
  ------------------
  |  |   64|      0|#define V_ASN1_EOC 0
  ------------------
  |  Branch (183:20): [True: 0, False: 63.9k]
  |  Branch (183:27): [True: 0, False: 0]
  |  Branch (183:42): [True: 0, False: 0]
  ------------------
  184|       |            /* eos value, so go back and read another header */
  185|      0|            eos--;
  186|      0|            if (eos == 0)
  ------------------
  |  Branch (186:17): [True: 0, False: 0]
  ------------------
  187|      0|                break;
  188|      0|            else
  189|      0|                want = HEADER_SIZE;
  ------------------
  |  |  107|      0|#define HEADER_SIZE 8
  ------------------
  190|  63.9k|        } else {
  191|       |            /* suck in slen bytes of data */
  192|  63.9k|            want = slen;
  193|  63.9k|            if (want > (len - off)) {
  ------------------
  |  Branch (193:17): [True: 63.9k, False: 0]
  ------------------
  194|  63.9k|                size_t chunk_max = ASN1_CHUNK_INITIAL_SIZE;
  ------------------
  |  |  108|  63.9k|#define ASN1_CHUNK_INITIAL_SIZE (16 * 1024)
  ------------------
  195|       |
  196|  63.9k|                want -= (len - off);
  197|  63.9k|                if (want > INT_MAX /* BIO_read takes an int length */ || len + want < len) {
  ------------------
  |  Branch (197:21): [True: 0, False: 63.9k]
  |  Branch (197:74): [True: 0, False: 63.9k]
  ------------------
  198|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  199|      0|                    goto err;
  200|      0|                }
  201|   127k|                while (want > 0) {
  ------------------
  |  Branch (201:24): [True: 63.9k, False: 63.9k]
  ------------------
  202|       |                    /*
  203|       |                     * Read content in chunks of increasing size
  204|       |                     * so we can return an error for EOF without
  205|       |                     * having to allocate the entire content length
  206|       |                     * in one go.
  207|       |                     */
  208|  63.9k|                    size_t chunk = want > chunk_max ? chunk_max : want;
  ------------------
  |  Branch (208:36): [True: 0, False: 63.9k]
  ------------------
  209|  63.9k|                    int i;
  210|       |
  211|  63.9k|                    if (!BUF_MEM_grow_clean(b, len + chunk)) {
  ------------------
  |  Branch (211:25): [True: 0, False: 63.9k]
  ------------------
  212|      0|                        ERR_raise(ERR_LIB_ASN1, ERR_R_BUF_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  213|      0|                        goto err;
  214|      0|                    }
  215|  63.9k|                    want -= chunk;
  216|   127k|                    while (chunk > 0) {
  ------------------
  |  Branch (216:28): [True: 63.9k, False: 63.9k]
  ------------------
  217|  63.9k|                        i = BIO_read(in, &(b->data[len]), (int)chunk);
  218|  63.9k|                        if (i <= 0) {
  ------------------
  |  Branch (218:29): [True: 0, False: 63.9k]
  ------------------
  219|      0|                            ERR_raise(ERR_LIB_ASN1, ASN1_R_NOT_ENOUGH_DATA);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  220|      0|                            goto err;
  221|      0|                        }
  222|       |                        /*
  223|       |                         * This can't overflow because |len+want| didn't
  224|       |                         * overflow.
  225|       |                         */
  226|  63.9k|                        len += i;
  227|  63.9k|                        chunk -= i;
  228|  63.9k|                    }
  229|  63.9k|                    if (chunk_max < INT_MAX / 2)
  ------------------
  |  Branch (229:25): [True: 63.9k, False: 0]
  ------------------
  230|  63.9k|                        chunk_max *= 2;
  231|  63.9k|                }
  232|  63.9k|            }
  233|  63.9k|            if (off + slen < off) {
  ------------------
  |  Branch (233:17): [True: 0, False: 63.9k]
  ------------------
  234|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  235|      0|                goto err;
  236|      0|            }
  237|  63.9k|            off += slen;
  238|  63.9k|            if (eos == 0) {
  ------------------
  |  Branch (238:17): [True: 63.9k, False: 0]
  ------------------
  239|  63.9k|                break;
  240|  63.9k|            } else
  241|      0|                want = HEADER_SIZE;
  ------------------
  |  |  107|      0|#define HEADER_SIZE 8
  ------------------
  242|  63.9k|        }
  243|  63.9k|    }
  244|       |
  245|  63.9k|    if (off > INT_MAX) {
  ------------------
  |  Branch (245:9): [True: 0, False: 63.9k]
  ------------------
  246|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  247|      0|        goto err;
  248|      0|    }
  249|       |
  250|  63.9k|    *pb = b;
  251|  63.9k|    ERR_clear_last_mark();
  252|  63.9k|    return (int)off;
  253|      0|err:
  254|      0|    ERR_clear_last_mark();
  255|      0|    BUF_MEM_free(b);
  256|      0|    return -1;
  257|  63.9k|}

ossl_c2i_ASN1_INTEGER:
  301|  63.9k|{
  302|  63.9k|    ASN1_INTEGER *ret = NULL;
  303|  63.9k|    size_t r;
  304|  63.9k|    int neg;
  305|       |
  306|  63.9k|    r = c2i_ibuf(NULL, NULL, *pp, len);
  307|       |
  308|  63.9k|    if (r == 0)
  ------------------
  |  Branch (308:9): [True: 0, False: 63.9k]
  ------------------
  309|      0|        return NULL;
  310|       |
  311|  63.9k|    if ((a == NULL) || ((*a) == NULL)) {
  ------------------
  |  Branch (311:9): [True: 0, False: 63.9k]
  |  Branch (311:24): [True: 31.9k, False: 31.9k]
  ------------------
  312|  31.9k|        ret = ASN1_INTEGER_new();
  313|  31.9k|        if (ret == NULL)
  ------------------
  |  Branch (313:13): [True: 0, False: 31.9k]
  ------------------
  314|      0|            return NULL;
  315|  31.9k|        ret->type = V_ASN1_INTEGER;
  ------------------
  |  |   66|  31.9k|#define V_ASN1_INTEGER 2
  ------------------
  316|  31.9k|    } else
  317|  31.9k|        ret = *a;
  318|       |
  319|  63.9k|    if (r > INT_MAX || ASN1_STRING_set(ret, NULL, (int)r) == 0) {
  ------------------
  |  Branch (319:9): [True: 0, False: 63.9k]
  |  Branch (319:24): [True: 0, False: 63.9k]
  ------------------
  320|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  321|      0|        goto err;
  322|      0|    }
  323|       |
  324|  63.9k|    c2i_ibuf(ret->data, &neg, *pp, len);
  325|       |
  326|  63.9k|    if (neg != 0)
  ------------------
  |  Branch (326:9): [True: 0, False: 63.9k]
  ------------------
  327|      0|        ret->type |= V_ASN1_NEG;
  ------------------
  |  |   99|      0|#define V_ASN1_NEG 0x100
  ------------------
  328|  63.9k|    else
  329|  63.9k|        ret->type &= ~V_ASN1_NEG;
  ------------------
  |  |   99|  63.9k|#define V_ASN1_NEG 0x100
  ------------------
  330|       |
  331|  63.9k|    *pp += len;
  332|  63.9k|    if (a != NULL)
  ------------------
  |  Branch (332:9): [True: 63.9k, False: 0]
  ------------------
  333|  63.9k|        (*a) = ret;
  334|  63.9k|    return ret;
  335|      0|err:
  336|      0|    if (a == NULL || *a != ret)
  ------------------
  |  Branch (336:9): [True: 0, False: 0]
  |  Branch (336:22): [True: 0, False: 0]
  ------------------
  337|      0|        ASN1_INTEGER_free(ret);
  338|       |    return NULL;
  339|  63.9k|}
a_int.c:twos_complement:
   78|  28.2k|{
   79|  28.2k|    unsigned int carry = pad & 1;
   80|       |
   81|       |    /* Begin at the end of the encoding */
   82|  28.2k|    if (len != 0) {
  ------------------
  |  Branch (82:9): [True: 28.2k, False: 0]
  ------------------
   83|       |        /*
   84|       |         * if len == 0 then src/dst could be NULL, and this would be undefined
   85|       |         * behaviour.
   86|       |         */
   87|  28.2k|        dst += len;
   88|  28.2k|        src += len;
   89|  28.2k|    }
   90|       |    /* two's complement value: ~value + 1 */
   91|   406k|    while (len-- != 0) {
  ------------------
  |  Branch (91:12): [True: 377k, False: 28.2k]
  ------------------
   92|   377k|        *(--dst) = (unsigned char)(carry += *(--src) ^ pad);
   93|   377k|        carry >>= 8;
   94|   377k|    }
   95|  28.2k|}
a_int.c:c2i_ibuf:
  156|   127k|{
  157|   127k|    int neg, pad;
  158|       |    /* Zero content length is illegal */
  159|   127k|    if (plen == 0) {
  ------------------
  |  Branch (159:9): [True: 0, False: 127k]
  ------------------
  160|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_ZERO_CONTENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  161|      0|        return 0;
  162|      0|    }
  163|   127k|    neg = p[0] & 0x80;
  164|   127k|    if (pneg)
  ------------------
  |  Branch (164:9): [True: 63.9k, False: 63.9k]
  ------------------
  165|  63.9k|        *pneg = neg;
  166|       |    /* Handle common case where length is 1 octet separately */
  167|   127k|    if (plen == 1) {
  ------------------
  |  Branch (167:9): [True: 71.3k, False: 56.5k]
  ------------------
  168|  71.3k|        if (b != NULL) {
  ------------------
  |  Branch (168:13): [True: 35.6k, False: 35.6k]
  ------------------
  169|  35.6k|            if (neg)
  ------------------
  |  Branch (169:17): [True: 0, False: 35.6k]
  ------------------
  170|      0|                b[0] = (p[0] ^ 0xFF) + 1;
  171|  35.6k|            else
  172|  35.6k|                b[0] = p[0];
  173|  35.6k|        }
  174|  71.3k|        return 1;
  175|  71.3k|    }
  176|       |
  177|  56.5k|    pad = 0;
  178|  56.5k|    if (p[0] == 0) {
  ------------------
  |  Branch (178:9): [True: 6.13k, False: 50.3k]
  ------------------
  179|  6.13k|        pad = 1;
  180|  50.3k|    } else if (p[0] == 0xFF) {
  ------------------
  |  Branch (180:16): [True: 0, False: 50.3k]
  ------------------
  181|      0|        size_t i;
  182|       |
  183|       |        /*
  184|       |         * Special case [of "one less minimal negative" for given length]:
  185|       |         * if any other bytes non zero it was padded, otherwise not.
  186|       |         */
  187|      0|        for (pad = 0, i = 1; i < plen; i++)
  ------------------
  |  Branch (187:30): [True: 0, False: 0]
  ------------------
  188|      0|            pad |= p[i];
  189|      0|        pad = pad != 0 ? 1 : 0;
  ------------------
  |  Branch (189:15): [True: 0, False: 0]
  ------------------
  190|      0|    }
  191|       |    /* reject illegal padding: first two octets MSB can't match */
  192|  56.5k|    if (pad && (neg == (p[1] & 0x80))) {
  ------------------
  |  Branch (192:9): [True: 6.13k, False: 50.3k]
  |  Branch (192:16): [True: 0, False: 6.13k]
  ------------------
  193|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_PADDING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  194|      0|        return 0;
  195|      0|    }
  196|       |
  197|       |    /* skip over pad */
  198|  56.5k|    p += pad;
  199|  56.5k|    plen -= pad;
  200|       |
  201|  56.5k|    if (b != NULL)
  ------------------
  |  Branch (201:9): [True: 28.2k, False: 28.2k]
  ------------------
  202|  28.2k|        twos_complement(b, p, plen, neg ? 0xffU : 0);
  ------------------
  |  Branch (202:37): [True: 0, False: 28.2k]
  ------------------
  203|       |
  204|  56.5k|    return plen;
  205|  56.5k|}

ASN1_mbstring_copy:
   38|   228k|{
   39|   228k|    return ASN1_mbstring_ncopy(out, in, len, inform, mask, 0, 0);
   40|   228k|}
ASN1_mbstring_ncopy:
   45|   228k|{
   46|   228k|    int str_type;
   47|   228k|    int ret;
   48|   228k|    char free_out;
   49|   228k|    int outform, outlen = 0;
   50|   228k|    ASN1_STRING *dest;
   51|   228k|    unsigned char *p;
   52|   228k|    int nchar;
   53|   228k|    int (*cpyfunc)(unsigned long, void *) = NULL;
   54|   228k|    if (len == -1) {
  ------------------
  |  Branch (54:9): [True: 0, False: 228k]
  ------------------
   55|      0|        size_t len_s = strlen((const char *)in);
   56|       |
   57|      0|        if (len_s >= INT_MAX) {
  ------------------
  |  Branch (57:13): [True: 0, False: 0]
  ------------------
   58|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   59|      0|            return -1;
   60|      0|        }
   61|      0|        len = (int)len_s;
   62|      0|    }
   63|   228k|    if (!mask)
  ------------------
  |  Branch (63:9): [True: 0, False: 228k]
  ------------------
   64|      0|        mask = DIRSTRING_TYPE;
  ------------------
  |  |  226|      0|    (B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING)
  |  |  ------------------
  |  |  |  |  105|      0|#define B_ASN1_PRINTABLESTRING 0x0002
  |  |  ------------------
  |  |                   (B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING)
  |  |  ------------------
  |  |  |  |  106|      0|#define B_ASN1_T61STRING 0x0004
  |  |  ------------------
  |  |                   (B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING)
  |  |  ------------------
  |  |  |  |  117|      0|#define B_ASN1_BMPSTRING 0x0800
  |  |  ------------------
  |  |                   (B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING | B_ASN1_UTF8STRING)
  |  |  ------------------
  |  |  |  |  119|      0|#define B_ASN1_UTF8STRING 0x2000
  |  |  ------------------
  ------------------
   65|   228k|    if (len < 0) {
  ------------------
  |  Branch (65:9): [True: 0, False: 228k]
  ------------------
   66|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   67|      0|        return -1;
   68|      0|    }
   69|       |
   70|       |    /* First do a string check and work out the number of characters */
   71|   228k|    switch (inform) {
   72|       |
   73|      0|    case MBSTRING_BMP:
  ------------------
  |  |  127|      0|#define MBSTRING_BMP (MBSTRING_FLAG | 2)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (73:5): [True: 0, False: 228k]
  ------------------
   74|      0|        if (len & 1) {
  ------------------
  |  Branch (74:13): [True: 0, False: 0]
  ------------------
   75|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_BMPSTRING_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   76|      0|            return -1;
   77|      0|        }
   78|      0|        nchar = len >> 1;
   79|      0|        break;
   80|       |
   81|      0|    case MBSTRING_UNIV:
  ------------------
  |  |  128|      0|#define MBSTRING_UNIV (MBSTRING_FLAG | 4)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (81:5): [True: 0, False: 228k]
  ------------------
   82|      0|        if (len & 3) {
  ------------------
  |  Branch (82:13): [True: 0, False: 0]
  ------------------
   83|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_UNIVERSALSTRING_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   84|      0|            return -1;
   85|      0|        }
   86|      0|        nchar = len >> 2;
   87|      0|        break;
   88|       |
   89|  57.8k|    case MBSTRING_UTF8:
  ------------------
  |  |  125|  57.8k|#define MBSTRING_UTF8 (MBSTRING_FLAG)
  |  |  ------------------
  |  |  |  |  124|  57.8k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (89:5): [True: 57.8k, False: 170k]
  ------------------
   90|  57.8k|        nchar = 0;
   91|       |        /* This counts the characters and does utf8 syntax checking */
   92|  57.8k|        ret = traverse_string(in, len, MBSTRING_UTF8, in_utf8, &nchar);
  ------------------
  |  |  125|  57.8k|#define MBSTRING_UTF8 (MBSTRING_FLAG)
  |  |  ------------------
  |  |  |  |  124|  57.8k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
   93|  57.8k|        if (ret < 0) {
  ------------------
  |  Branch (93:13): [True: 0, False: 57.8k]
  ------------------
   94|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_UTF8STRING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   95|      0|            return -1;
   96|      0|        }
   97|  57.8k|        break;
   98|       |
   99|   170k|    case MBSTRING_ASC:
  ------------------
  |  |  126|   170k|#define MBSTRING_ASC (MBSTRING_FLAG | 1)
  |  |  ------------------
  |  |  |  |  124|   170k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (99:5): [True: 170k, False: 57.8k]
  ------------------
  100|   170k|        nchar = len;
  101|   170k|        break;
  102|       |
  103|      0|    default:
  ------------------
  |  Branch (103:5): [True: 0, False: 228k]
  ------------------
  104|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_UNKNOWN_FORMAT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  105|      0|        return -1;
  106|   228k|    }
  107|       |
  108|   228k|    if ((minsize > 0) && (nchar < minsize)) {
  ------------------
  |  Branch (108:9): [True: 0, False: 228k]
  |  Branch (108:26): [True: 0, False: 0]
  ------------------
  109|      0|        ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_SHORT,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_SHORT,
  ------------------
  |  |   85|      0|#define ERR_LIB_ASN1 13
  ------------------
                      ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_SHORT,
  ------------------
  |  |  114|      0|#define ASN1_R_STRING_TOO_SHORT 152
  ------------------
  110|      0|            "minsize=%ld", minsize);
  111|      0|        return -1;
  112|      0|    }
  113|       |
  114|   228k|    if ((maxsize > 0) && (nchar > maxsize)) {
  ------------------
  |  Branch (114:9): [True: 0, False: 228k]
  |  Branch (114:26): [True: 0, False: 0]
  ------------------
  115|      0|        ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG,
  ------------------
  |  |   85|      0|#define ERR_LIB_ASN1 13
  ------------------
                      ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG,
  ------------------
  |  |  113|      0|#define ASN1_R_STRING_TOO_LONG 151
  ------------------
  116|      0|            "maxsize=%ld", maxsize);
  117|      0|        return -1;
  118|      0|    }
  119|       |
  120|       |    /* Now work out minimal type (if any) */
  121|   228k|    if (traverse_string(in, len, inform, type_str, &mask) < 0) {
  ------------------
  |  Branch (121:9): [True: 0, False: 228k]
  ------------------
  122|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_CHARACTERS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  123|      0|        return -1;
  124|      0|    }
  125|       |
  126|       |    /*
  127|       |     * Now work out output format and string type.
  128|       |     * These checks should be in sync with the checks in type_str.
  129|       |     */
  130|   228k|    outform = MBSTRING_ASC;
  ------------------
  |  |  126|   228k|#define MBSTRING_ASC (MBSTRING_FLAG | 1)
  |  |  ------------------
  |  |  |  |  124|   228k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  131|   228k|    if (mask & B_ASN1_NUMERICSTRING)
  ------------------
  |  |  104|   228k|#define B_ASN1_NUMERICSTRING 0x0001
  ------------------
  |  Branch (131:9): [True: 0, False: 228k]
  ------------------
  132|      0|        str_type = V_ASN1_NUMERICSTRING;
  ------------------
  |  |   78|      0|#define V_ASN1_NUMERICSTRING 18
  ------------------
  133|   228k|    else if (mask & B_ASN1_PRINTABLESTRING)
  ------------------
  |  |  105|   228k|#define B_ASN1_PRINTABLESTRING 0x0002
  ------------------
  |  Branch (133:14): [True: 0, False: 228k]
  ------------------
  134|      0|        str_type = V_ASN1_PRINTABLESTRING;
  ------------------
  |  |   79|      0|#define V_ASN1_PRINTABLESTRING 19
  ------------------
  135|   228k|    else if (mask & B_ASN1_IA5STRING)
  ------------------
  |  |  109|   228k|#define B_ASN1_IA5STRING 0x0010
  ------------------
  |  Branch (135:14): [True: 0, False: 228k]
  ------------------
  136|      0|        str_type = V_ASN1_IA5STRING;
  ------------------
  |  |   83|      0|#define V_ASN1_IA5STRING 22
  ------------------
  137|   228k|    else if (mask & B_ASN1_T61STRING)
  ------------------
  |  |  106|   228k|#define B_ASN1_T61STRING 0x0004
  ------------------
  |  Branch (137:14): [True: 0, False: 228k]
  ------------------
  138|      0|        str_type = V_ASN1_T61STRING;
  ------------------
  |  |   80|      0|#define V_ASN1_T61STRING 20
  ------------------
  139|   228k|    else if (mask & B_ASN1_BMPSTRING) {
  ------------------
  |  |  117|   228k|#define B_ASN1_BMPSTRING 0x0800
  ------------------
  |  Branch (139:14): [True: 0, False: 228k]
  ------------------
  140|      0|        str_type = V_ASN1_BMPSTRING;
  ------------------
  |  |   91|      0|#define V_ASN1_BMPSTRING 30
  ------------------
  141|      0|        outform = MBSTRING_BMP;
  ------------------
  |  |  127|      0|#define MBSTRING_BMP (MBSTRING_FLAG | 2)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  142|   228k|    } else if (mask & B_ASN1_UNIVERSALSTRING) {
  ------------------
  |  |  114|   228k|#define B_ASN1_UNIVERSALSTRING 0x0100
  ------------------
  |  Branch (142:16): [True: 0, False: 228k]
  ------------------
  143|      0|        str_type = V_ASN1_UNIVERSALSTRING;
  ------------------
  |  |   90|      0|#define V_ASN1_UNIVERSALSTRING 28
  ------------------
  144|      0|        outform = MBSTRING_UNIV;
  ------------------
  |  |  128|      0|#define MBSTRING_UNIV (MBSTRING_FLAG | 4)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  145|   228k|    } else {
  146|   228k|        str_type = V_ASN1_UTF8STRING;
  ------------------
  |  |   75|   228k|#define V_ASN1_UTF8STRING 12
  ------------------
  147|   228k|        outform = MBSTRING_UTF8;
  ------------------
  |  |  125|   228k|#define MBSTRING_UTF8 (MBSTRING_FLAG)
  |  |  ------------------
  |  |  |  |  124|   228k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  148|   228k|    }
  149|   228k|    if (!out)
  ------------------
  |  Branch (149:9): [True: 0, False: 228k]
  ------------------
  150|      0|        return str_type;
  151|   228k|    if (*out) {
  ------------------
  |  Branch (151:9): [True: 228k, False: 0]
  ------------------
  152|   228k|        free_out = 0;
  153|   228k|        dest = *out;
  154|   228k|        ASN1_STRING_set0(dest, NULL, 0);
  155|   228k|        dest->type = str_type;
  156|   228k|    } else {
  157|      0|        free_out = 1;
  158|      0|        dest = ASN1_STRING_type_new(str_type);
  159|      0|        if (dest == NULL) {
  ------------------
  |  Branch (159:13): [True: 0, False: 0]
  ------------------
  160|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  161|      0|            return -1;
  162|      0|        }
  163|      0|        *out = dest;
  164|      0|    }
  165|       |    /* If both the same type just copy across */
  166|   228k|    if (inform == outform) {
  ------------------
  |  Branch (166:9): [True: 57.8k, False: 170k]
  ------------------
  167|  57.8k|        if (!ASN1_STRING_set(dest, in, len)) {
  ------------------
  |  Branch (167:13): [True: 0, False: 57.8k]
  ------------------
  168|      0|            if (free_out) {
  ------------------
  |  Branch (168:17): [True: 0, False: 0]
  ------------------
  169|      0|                ASN1_STRING_free(dest);
  170|      0|                *out = NULL;
  171|      0|            }
  172|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  173|      0|            return -1;
  174|      0|        }
  175|  57.8k|        return str_type;
  176|  57.8k|    }
  177|       |
  178|       |    /* Work out how much space the destination will need */
  179|   170k|    switch (outform) {
  ------------------
  |  Branch (179:13): [True: 170k, False: 0]
  ------------------
  180|      0|    case MBSTRING_ASC:
  ------------------
  |  |  126|      0|#define MBSTRING_ASC (MBSTRING_FLAG | 1)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (180:5): [True: 0, False: 170k]
  ------------------
  181|      0|        outlen = nchar;
  182|      0|        cpyfunc = cpy_asc;
  183|      0|        break;
  184|       |
  185|      0|    case MBSTRING_BMP:
  ------------------
  |  |  127|      0|#define MBSTRING_BMP (MBSTRING_FLAG | 2)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (185:5): [True: 0, False: 170k]
  ------------------
  186|      0|        outlen = nchar << 1;
  187|      0|        cpyfunc = cpy_bmp;
  188|      0|        break;
  189|       |
  190|      0|    case MBSTRING_UNIV:
  ------------------
  |  |  128|      0|#define MBSTRING_UNIV (MBSTRING_FLAG | 4)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (190:5): [True: 0, False: 170k]
  ------------------
  191|      0|        outlen = nchar << 2;
  192|      0|        cpyfunc = cpy_univ;
  193|      0|        break;
  194|       |
  195|   170k|    case MBSTRING_UTF8:
  ------------------
  |  |  125|   170k|#define MBSTRING_UTF8 (MBSTRING_FLAG)
  |  |  ------------------
  |  |  |  |  124|   170k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (195:5): [True: 170k, False: 0]
  ------------------
  196|   170k|        outlen = 0;
  197|   170k|        ret = traverse_string(in, len, inform, out_utf8, &outlen);
  198|   170k|        if (ret < 0) {
  ------------------
  |  Branch (198:13): [True: 0, False: 170k]
  ------------------
  199|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_UTF8STRING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  200|      0|            return -1;
  201|      0|        }
  202|   170k|        cpyfunc = cpy_utf8;
  203|   170k|        break;
  204|   170k|    }
  205|   170k|    if ((p = OPENSSL_malloc(outlen + 1)) == NULL) {
  ------------------
  |  |  106|   170k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (205:9): [True: 0, False: 170k]
  ------------------
  206|      0|        if (free_out) {
  ------------------
  |  Branch (206:13): [True: 0, False: 0]
  ------------------
  207|      0|            ASN1_STRING_free(dest);
  208|      0|            *out = NULL;
  209|      0|        }
  210|      0|        return -1;
  211|      0|    }
  212|   170k|    dest->length = outlen;
  213|   170k|    dest->data = p;
  214|   170k|    p[outlen] = 0;
  215|   170k|    traverse_string(in, len, inform, cpyfunc, &p);
  216|   170k|    return str_type;
  217|   170k|}
a_mbstr.c:traverse_string:
  227|   628k|{
  228|   628k|    unsigned long value;
  229|   628k|    int ret;
  230|  10.3M|    while (len) {
  ------------------
  |  Branch (230:12): [True: 9.73M, False: 628k]
  ------------------
  231|  9.73M|        if (inform == MBSTRING_ASC) {
  ------------------
  |  |  126|  9.73M|#define MBSTRING_ASC (MBSTRING_FLAG | 1)
  |  |  ------------------
  |  |  |  |  124|  9.73M|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (231:13): [True: 7.37M, False: 2.36M]
  ------------------
  232|  7.37M|            value = *p++;
  233|  7.37M|            len--;
  234|  7.37M|        } else if (inform == MBSTRING_BMP) {
  ------------------
  |  |  127|  2.36M|#define MBSTRING_BMP (MBSTRING_FLAG | 2)
  |  |  ------------------
  |  |  |  |  124|  2.36M|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (234:20): [True: 0, False: 2.36M]
  ------------------
  235|      0|            value = *p++ << 8;
  236|      0|            value |= *p++;
  237|      0|            len -= 2;
  238|  2.36M|        } else if (inform == MBSTRING_UNIV) {
  ------------------
  |  |  128|  2.36M|#define MBSTRING_UNIV (MBSTRING_FLAG | 4)
  |  |  ------------------
  |  |  |  |  124|  2.36M|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (238:20): [True: 0, False: 2.36M]
  ------------------
  239|      0|            value = ((unsigned long)*p++) << 24;
  240|      0|            value |= ((unsigned long)*p++) << 16;
  241|      0|            value |= *p++ << 8;
  242|      0|            value |= *p++;
  243|      0|            len -= 4;
  244|  2.36M|        } else {
  245|  2.36M|            ret = UTF8_getc(p, len, &value);
  246|  2.36M|            if (ret < 0)
  ------------------
  |  Branch (246:17): [True: 0, False: 2.36M]
  ------------------
  247|      0|                return -1;
  248|  2.36M|            len -= ret;
  249|  2.36M|            p += ret;
  250|  2.36M|        }
  251|  9.73M|        if (rfunc) {
  ------------------
  |  Branch (251:13): [True: 9.73M, False: 0]
  ------------------
  252|  9.73M|            ret = rfunc(value, arg);
  253|  9.73M|            if (ret <= 0)
  ------------------
  |  Branch (253:17): [True: 0, False: 9.73M]
  ------------------
  254|      0|                return ret;
  255|  9.73M|        }
  256|  9.73M|    }
  257|   628k|    return 1;
  258|   628k|}
a_mbstr.c:in_utf8:
  265|  1.18M|{
  266|  1.18M|    int *nchar;
  267|       |
  268|  1.18M|    if (!is_unicode_valid(value))
  ------------------
  |  Branch (268:9): [True: 0, False: 1.18M]
  ------------------
  269|      0|        return -2;
  270|  1.18M|    nchar = arg;
  271|  1.18M|    (*nchar)++;
  272|  1.18M|    return 1;
  273|  1.18M|}
a_mbstr.c:out_utf8:
  278|  2.45M|{
  279|  2.45M|    int *outlen, len;
  280|       |
  281|  2.45M|    len = UTF8_putc(NULL, -1, value);
  282|  2.45M|    if (len <= 0)
  ------------------
  |  Branch (282:9): [True: 0, False: 2.45M]
  ------------------
  283|      0|        return len;
  284|  2.45M|    outlen = arg;
  285|  2.45M|    *outlen += len;
  286|  2.45M|    return 1;
  287|  2.45M|}
a_mbstr.c:type_str:
  295|  3.63M|{
  296|  3.63M|    unsigned long usable_types = *((unsigned long *)arg);
  297|  3.63M|    unsigned long types = usable_types;
  298|  3.63M|    const int native = value > INT_MAX ? INT_MAX : ossl_fromascii(value);
  ------------------
  |  |   57|  7.27M|#define ossl_fromascii(c) (c)
  ------------------
  |  Branch (298:24): [True: 0, False: 3.63M]
  ------------------
  299|       |
  300|       |    /*
  301|       |     * Clear out all the types which are not checked later. If any of those
  302|       |     * is present in the mask, then the UTF8 type will be added and checked
  303|       |     * below.
  304|       |     */
  305|  3.63M|    types &= B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING
  ------------------
  |  |  104|  3.63M|#define B_ASN1_NUMERICSTRING 0x0001
  ------------------
                  types &= B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING
  ------------------
  |  |  105|  3.63M|#define B_ASN1_PRINTABLESTRING 0x0002
  ------------------
  306|  3.63M|        | B_ASN1_IA5STRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING
  ------------------
  |  |  109|  3.63M|#define B_ASN1_IA5STRING 0x0010
  ------------------
                      | B_ASN1_IA5STRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING
  ------------------
  |  |  106|  3.63M|#define B_ASN1_T61STRING 0x0004
  ------------------
                      | B_ASN1_IA5STRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING
  ------------------
  |  |  117|  3.63M|#define B_ASN1_BMPSTRING 0x0800
  ------------------
  307|  3.63M|        | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING;
  ------------------
  |  |  114|  3.63M|#define B_ASN1_UNIVERSALSTRING 0x0100
  ------------------
                      | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING;
  ------------------
  |  |  119|  3.63M|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  308|       |
  309|       |    /*
  310|       |     * If any other types were in the input mask, they're effectively treated
  311|       |     * as UTF8
  312|       |     */
  313|  3.63M|    if (types != usable_types)
  ------------------
  |  Branch (313:9): [True: 0, False: 3.63M]
  ------------------
  314|      0|        types |= B_ASN1_UTF8STRING;
  ------------------
  |  |  119|      0|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  315|       |
  316|       |    /*
  317|       |     * These checks should be in sync with ASN1_mbstring_ncopy.
  318|       |     */
  319|  3.63M|    if ((types & B_ASN1_NUMERICSTRING) && !(ossl_isdigit(native) || native == ' '))
  ------------------
  |  |  104|  3.63M|#define B_ASN1_NUMERICSTRING 0x0001
  ------------------
  |  Branch (319:9): [True: 0, False: 3.63M]
  |  Branch (319:45): [True: 0, False: 0]
  |  Branch (319:69): [True: 0, False: 0]
  ------------------
  320|      0|        types &= ~B_ASN1_NUMERICSTRING;
  ------------------
  |  |  104|      0|#define B_ASN1_NUMERICSTRING 0x0001
  ------------------
  321|  3.63M|    if ((types & B_ASN1_PRINTABLESTRING) && !ossl_isasn1print(native))
  ------------------
  |  |  105|  3.63M|#define B_ASN1_PRINTABLESTRING 0x0002
  ------------------
                  if ((types & B_ASN1_PRINTABLESTRING) && !ossl_isasn1print(native))
  ------------------
  |  |   85|      0|#define ossl_isasn1print(c) (ossl_ctype_check((c), CTYPE_MASK_asn1print))
  |  |  ------------------
  |  |  |  |   38|      0|#define CTYPE_MASK_asn1print 0x800
  |  |  ------------------
  ------------------
  |  Branch (321:9): [True: 0, False: 3.63M]
  |  Branch (321:45): [True: 0, False: 0]
  ------------------
  322|      0|        types &= ~B_ASN1_PRINTABLESTRING;
  ------------------
  |  |  105|      0|#define B_ASN1_PRINTABLESTRING 0x0002
  ------------------
  323|  3.63M|    if ((types & B_ASN1_IA5STRING) && !ossl_isascii(native))
  ------------------
  |  |  109|  3.63M|#define B_ASN1_IA5STRING 0x0010
  ------------------
                  if ((types & B_ASN1_IA5STRING) && !ossl_isascii(native))
  ------------------
  |  |   75|      0|#define ossl_isascii(c) (((c) & ~127) == 0)
  ------------------
  |  Branch (323:9): [True: 0, False: 3.63M]
  |  Branch (323:39): [True: 0, False: 0]
  ------------------
  324|      0|        types &= ~B_ASN1_IA5STRING;
  ------------------
  |  |  109|      0|#define B_ASN1_IA5STRING 0x0010
  ------------------
  325|  3.63M|    if ((types & B_ASN1_T61STRING) && (value > 0xff))
  ------------------
  |  |  106|  3.63M|#define B_ASN1_T61STRING 0x0004
  ------------------
  |  Branch (325:9): [True: 0, False: 3.63M]
  |  Branch (325:39): [True: 0, False: 0]
  ------------------
  326|      0|        types &= ~B_ASN1_T61STRING;
  ------------------
  |  |  106|      0|#define B_ASN1_T61STRING 0x0004
  ------------------
  327|  3.63M|    if ((types & B_ASN1_BMPSTRING) && (value > 0xffff))
  ------------------
  |  |  117|  3.63M|#define B_ASN1_BMPSTRING 0x0800
  ------------------
  |  Branch (327:9): [True: 0, False: 3.63M]
  |  Branch (327:39): [True: 0, False: 0]
  ------------------
  328|      0|        types &= ~B_ASN1_BMPSTRING;
  ------------------
  |  |  117|      0|#define B_ASN1_BMPSTRING 0x0800
  ------------------
  329|  3.63M|    if ((types & B_ASN1_UTF8STRING) && !is_unicode_valid(value))
  ------------------
  |  |  119|  3.63M|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  |  Branch (329:9): [True: 3.63M, False: 0]
  |  Branch (329:40): [True: 0, False: 3.63M]
  ------------------
  330|      0|        types &= ~B_ASN1_UTF8STRING;
  ------------------
  |  |  119|      0|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  331|  3.63M|    if (!types)
  ------------------
  |  Branch (331:9): [True: 0, False: 3.63M]
  ------------------
  332|      0|        return -1;
  333|  3.63M|    *((unsigned long *)arg) = types;
  334|  3.63M|    return 1;
  335|  3.63M|}
a_mbstr.c:cpy_utf8:
  380|  2.45M|{
  381|  2.45M|    unsigned char **p;
  382|  2.45M|    int ret;
  383|  2.45M|    p = arg;
  384|       |    /* We already know there is enough room so pass 0xff as the length */
  385|  2.45M|    ret = UTF8_putc(*p, 0xff, value);
  386|  2.45M|    if (ret < 0)
  ------------------
  |  Branch (386:9): [True: 0, False: 2.45M]
  ------------------
  387|      0|        return ret;
  388|  2.45M|    *p += ret;
  389|  2.45M|    return 1;
  390|  2.45M|}

a2d_ASN1_OBJECT:
   52|  1.32k|{
   53|  1.32k|    int i, first, len = 0, c, use_bn;
   54|  1.32k|    char ftmp[24], *tmp = ftmp;
   55|  1.32k|    int tmpsize = sizeof(ftmp);
   56|  1.32k|    const char *p;
   57|  1.32k|    unsigned long l;
   58|  1.32k|    BIGNUM *bl = NULL;
   59|       |
   60|  1.32k|    if (num == 0) {
  ------------------
  |  Branch (60:9): [True: 0, False: 1.32k]
  ------------------
   61|      0|        return 0;
   62|  1.32k|    } else if (num == -1) {
  ------------------
  |  Branch (62:16): [True: 1.32k, False: 0]
  ------------------
   63|  1.32k|        size_t num_s = strlen(buf);
   64|       |
   65|  1.32k|        if (num_s >= INT_MAX) {
  ------------------
  |  Branch (65:13): [True: 0, False: 1.32k]
  ------------------
   66|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_LENGTH_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   67|      0|            goto err;
   68|      0|        }
   69|  1.32k|        num = (int)num_s;
   70|  1.32k|    }
   71|       |
   72|  1.32k|    p = buf;
   73|  1.32k|    c = *(p++);
   74|  1.32k|    num--;
   75|  1.32k|    if ((c >= '0') && (c <= '2')) {
  ------------------
  |  Branch (75:9): [True: 1.32k, False: 0]
  |  Branch (75:23): [True: 1.32k, False: 0]
  ------------------
   76|  1.32k|        first = c - '0';
   77|  1.32k|    } else {
   78|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_FIRST_NUM_TOO_LARGE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   79|      0|        goto err;
   80|      0|    }
   81|       |
   82|  1.32k|    if (num <= 0) {
  ------------------
  |  Branch (82:9): [True: 0, False: 1.32k]
  ------------------
   83|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_MISSING_SECOND_NUMBER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   84|      0|        goto err;
   85|      0|    }
   86|  1.32k|    c = *(p++);
   87|  1.32k|    num--;
   88|  11.8k|    for (;;) {
   89|  11.8k|        if (num <= 0)
  ------------------
  |  Branch (89:13): [True: 1.32k, False: 10.5k]
  ------------------
   90|  1.32k|            break;
   91|  10.5k|        if ((c != '.') && (c != ' ')) {
  ------------------
  |  Branch (91:13): [True: 0, False: 10.5k]
  |  Branch (91:27): [True: 0, False: 0]
  ------------------
   92|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_SEPARATOR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   93|      0|            goto err;
   94|      0|        }
   95|  10.5k|        l = 0;
   96|  10.5k|        use_bn = 0;
   97|  29.0k|        for (;;) {
   98|  29.0k|            if (num <= 0)
  ------------------
  |  Branch (98:17): [True: 1.32k, False: 27.7k]
  ------------------
   99|  1.32k|                break;
  100|  27.7k|            num--;
  101|  27.7k|            c = *(p++);
  102|  27.7k|            if ((c == ' ') || (c == '.'))
  ------------------
  |  Branch (102:17): [True: 0, False: 27.7k]
  |  Branch (102:31): [True: 9.24k, False: 18.4k]
  ------------------
  103|  9.24k|                break;
  104|  18.4k|            if (!ossl_isdigit(c)) {
  ------------------
  |  Branch (104:17): [True: 0, False: 18.4k]
  ------------------
  105|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_DIGIT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  106|      0|                goto err;
  107|      0|            }
  108|  18.4k|            if (!use_bn && l >= ((ULONG_MAX - 80) / 10L)) {
  ------------------
  |  Branch (108:17): [True: 18.4k, False: 0]
  |  Branch (108:28): [True: 0, False: 18.4k]
  ------------------
  109|      0|                use_bn = 1;
  110|      0|                if (bl == NULL)
  ------------------
  |  Branch (110:21): [True: 0, False: 0]
  ------------------
  111|      0|                    bl = BN_new();
  112|      0|                if (bl == NULL || !BN_set_word(bl, l))
  ------------------
  |  Branch (112:21): [True: 0, False: 0]
  |  Branch (112:35): [True: 0, False: 0]
  ------------------
  113|      0|                    goto err;
  114|      0|            }
  115|  18.4k|            if (use_bn) {
  ------------------
  |  Branch (115:17): [True: 0, False: 18.4k]
  ------------------
  116|      0|                if (!BN_mul_word(bl, 10L)
  ------------------
  |  Branch (116:21): [True: 0, False: 0]
  ------------------
  117|      0|                    || !BN_add_word(bl, c - '0'))
  ------------------
  |  Branch (117:24): [True: 0, False: 0]
  ------------------
  118|      0|                    goto err;
  119|      0|            } else
  120|  18.4k|                l = l * 10L + (long)(c - '0');
  121|  18.4k|        }
  122|  10.5k|        if (len == 0) {
  ------------------
  |  Branch (122:13): [True: 1.32k, False: 9.24k]
  ------------------
  123|  1.32k|            if ((first < 2) && (l >= 40)) {
  ------------------
  |  Branch (123:17): [True: 0, False: 1.32k]
  |  Branch (123:32): [True: 0, False: 0]
  ------------------
  124|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_SECOND_NUMBER_TOO_LARGE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  125|      0|                goto err;
  126|      0|            }
  127|  1.32k|            if (use_bn) {
  ------------------
  |  Branch (127:17): [True: 0, False: 1.32k]
  ------------------
  128|      0|                if (!BN_add_word(bl, first * 40))
  ------------------
  |  Branch (128:21): [True: 0, False: 0]
  ------------------
  129|      0|                    goto err;
  130|      0|            } else
  131|  1.32k|                l += (long)first * 40;
  132|  1.32k|        }
  133|  10.5k|        i = 0;
  134|  10.5k|        if (use_bn) {
  ------------------
  |  Branch (134:13): [True: 0, False: 10.5k]
  ------------------
  135|      0|            int blsize;
  136|      0|            blsize = BN_num_bits(bl);
  137|      0|            blsize = (blsize + 6) / 7;
  138|      0|            if (blsize > tmpsize) {
  ------------------
  |  Branch (138:17): [True: 0, False: 0]
  ------------------
  139|      0|                if (tmp != ftmp)
  ------------------
  |  Branch (139:21): [True: 0, False: 0]
  ------------------
  140|      0|                    OPENSSL_free(tmp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  141|      0|                tmpsize = blsize + 32;
  142|      0|                tmp = OPENSSL_malloc(tmpsize);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  143|      0|                if (tmp == NULL)
  ------------------
  |  Branch (143:21): [True: 0, False: 0]
  ------------------
  144|      0|                    goto err;
  145|      0|            }
  146|      0|            while (blsize--) {
  ------------------
  |  Branch (146:20): [True: 0, False: 0]
  ------------------
  147|      0|                BN_ULONG t = BN_div_word(bl, 0x80L);
  ------------------
  |  |   37|      0|#define BN_ULONG unsigned long
  ------------------
  148|      0|                if (t == (BN_ULONG)-1)
  ------------------
  |  Branch (148:21): [True: 0, False: 0]
  ------------------
  149|      0|                    goto err;
  150|      0|                tmp[i++] = (unsigned char)t;
  151|      0|            }
  152|  10.5k|        } else {
  153|       |
  154|  11.8k|            for (;;) {
  155|  11.8k|                tmp[i++] = (unsigned char)l & 0x7f;
  156|  11.8k|                l >>= 7L;
  157|  11.8k|                if (l == 0L)
  ------------------
  |  Branch (157:21): [True: 10.5k, False: 1.32k]
  ------------------
  158|  10.5k|                    break;
  159|  11.8k|            }
  160|  10.5k|        }
  161|  10.5k|        if (out != NULL) {
  ------------------
  |  Branch (161:13): [True: 5.28k, False: 5.28k]
  ------------------
  162|  5.28k|            if (len + i > olen) {
  ------------------
  |  Branch (162:17): [True: 0, False: 5.28k]
  ------------------
  163|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_BUFFER_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  164|      0|                goto err;
  165|      0|            }
  166|  5.94k|            while (--i > 0)
  ------------------
  |  Branch (166:20): [True: 660, False: 5.28k]
  ------------------
  167|    660|                out[len++] = tmp[i] | 0x80;
  168|  5.28k|            out[len++] = tmp[0];
  169|  5.28k|        } else
  170|  5.28k|            len += i;
  171|  10.5k|    }
  172|  1.32k|    if (tmp != ftmp)
  ------------------
  |  Branch (172:9): [True: 0, False: 1.32k]
  ------------------
  173|      0|        OPENSSL_free(tmp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  174|  1.32k|    BN_free(bl);
  175|  1.32k|    return len;
  176|      0|err:
  177|      0|    if (tmp != ftmp)
  ------------------
  |  Branch (177:9): [True: 0, False: 0]
  ------------------
  178|      0|        OPENSSL_free(tmp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  179|      0|    BN_free(bl);
  180|      0|    return 0;
  181|  1.32k|}
d2i_ASN1_OBJECT:
  219|    660|{
  220|    660|    const unsigned char *p;
  221|    660|    long len;
  222|    660|    int tag, xclass;
  223|    660|    int inf, i;
  224|    660|    ASN1_OBJECT *ret = NULL;
  225|    660|    p = *pp;
  226|    660|    inf = ASN1_get_object(&p, &len, &tag, &xclass, length);
  227|    660|    if (inf & 0x80) {
  ------------------
  |  Branch (227:9): [True: 0, False: 660]
  ------------------
  228|      0|        i = ASN1_R_BAD_OBJECT_HEADER;
  ------------------
  |  |   26|      0|#define ASN1_R_BAD_OBJECT_HEADER 102
  ------------------
  229|      0|        goto err;
  230|      0|    }
  231|       |
  232|    660|    if (tag != V_ASN1_OBJECT) {
  ------------------
  |  |   70|    660|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (232:9): [True: 0, False: 660]
  ------------------
  233|      0|        i = ASN1_R_EXPECTING_AN_OBJECT;
  ------------------
  |  |   43|      0|#define ASN1_R_EXPECTING_AN_OBJECT 116
  ------------------
  234|      0|        goto err;
  235|      0|    }
  236|    660|    ret = ossl_c2i_ASN1_OBJECT(a, &p, len);
  237|    660|    if (ret)
  ------------------
  |  Branch (237:9): [True: 660, False: 0]
  ------------------
  238|    660|        *pp = p;
  239|    660|    return ret;
  240|      0|err:
  241|      0|    ERR_raise(ERR_LIB_ASN1, i);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  242|       |    return NULL;
  243|    660|}
ossl_c2i_ASN1_OBJECT:
  247|   525k|{
  248|   525k|    ASN1_OBJECT *ret = NULL, tobj;
  249|   525k|    const unsigned char *p;
  250|   525k|    unsigned char *data;
  251|   525k|    int i, length;
  252|       |
  253|       |    /*
  254|       |     * Sanity check OID encoding. Need at least one content octet. MSB must
  255|       |     * be clear in the last octet. can't have leading 0x80 in subidentifiers,
  256|       |     * see: X.690 8.19.2
  257|       |     */
  258|   525k|    if (len <= 0 || len > INT_MAX || pp == NULL || (p = *pp) == NULL || p[len - 1] & 0x80) {
  ------------------
  |  Branch (258:9): [True: 0, False: 525k]
  |  Branch (258:21): [True: 0, False: 525k]
  |  Branch (258:38): [True: 0, False: 525k]
  |  Branch (258:52): [True: 0, False: 525k]
  |  Branch (258:73): [True: 0, False: 525k]
  ------------------
  259|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_OBJECT_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  260|      0|        return NULL;
  261|      0|    }
  262|       |    /* Now 0 < len <= INT_MAX, so the cast is safe. */
  263|   525k|    length = (int)len;
  264|       |    /*
  265|       |     * Try to lookup OID in table: these are all valid encodings so if we get
  266|       |     * a match we know the OID is valid.
  267|       |     */
  268|   525k|    tobj.nid = NID_undef;
  ------------------
  |  |   18|   525k|#define NID_undef                       0
  ------------------
  269|   525k|    tobj.data = p;
  270|   525k|    tobj.length = length;
  271|   525k|    tobj.flags = 0;
  272|   525k|    i = OBJ_obj2nid(&tobj);
  273|   525k|    if (i != NID_undef) {
  ------------------
  |  |   18|   525k|#define NID_undef                       0
  ------------------
  |  Branch (273:9): [True: 523k, False: 2.40k]
  ------------------
  274|       |        /*
  275|       |         * Return shared registered OID object: this improves efficiency
  276|       |         * because we don't have to return a dynamically allocated OID
  277|       |         * and NID lookups can use the cached value.
  278|       |         */
  279|   523k|        ret = OBJ_nid2obj(i);
  280|   523k|        if (a) {
  ------------------
  |  Branch (280:13): [True: 522k, False: 660]
  ------------------
  281|   522k|            ASN1_OBJECT_free(*a);
  282|   522k|            *a = ret;
  283|   522k|        }
  284|   523k|        *pp += len;
  285|   523k|        return ret;
  286|   523k|    }
  287|  24.0k|    for (i = 0; i < length; i++, p++) {
  ------------------
  |  Branch (287:17): [True: 21.6k, False: 2.40k]
  ------------------
  288|  21.6k|        if (*p == 0x80 && (!i || !(p[-1] & 0x80))) {
  ------------------
  |  Branch (288:13): [True: 0, False: 21.6k]
  |  Branch (288:28): [True: 0, False: 0]
  |  Branch (288:34): [True: 0, False: 0]
  ------------------
  289|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_OBJECT_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  290|      0|            return NULL;
  291|      0|        }
  292|  21.6k|    }
  293|       |
  294|  2.40k|    if ((a == NULL) || ((*a) == NULL) || !((*a)->flags & ASN1_OBJECT_FLAG_DYNAMIC)) {
  ------------------
  |  |  110|  2.40k|#define ASN1_OBJECT_FLAG_DYNAMIC 0x01 /* internal use */
  ------------------
  |  Branch (294:9): [True: 0, False: 2.40k]
  |  Branch (294:24): [True: 0, False: 2.40k]
  |  Branch (294:42): [True: 2.40k, False: 0]
  ------------------
  295|  2.40k|        if ((ret = ASN1_OBJECT_new()) == NULL)
  ------------------
  |  Branch (295:13): [True: 0, False: 2.40k]
  ------------------
  296|      0|            return NULL;
  297|  2.40k|    } else {
  298|      0|        ret = (*a);
  299|      0|    }
  300|       |
  301|  2.40k|    p = *pp;
  302|       |    /* detach data from object */
  303|  2.40k|    data = (unsigned char *)ret->data;
  304|  2.40k|    ret->data = NULL;
  305|       |    /* once detached we can change it */
  306|  2.40k|    if ((data == NULL) || (ret->length < length)) {
  ------------------
  |  Branch (306:9): [True: 2.40k, False: 0]
  |  Branch (306:27): [True: 0, False: 0]
  ------------------
  307|  2.40k|        ret->length = 0;
  308|  2.40k|        OPENSSL_free(data);
  ------------------
  |  |  131|  2.40k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  309|  2.40k|        data = OPENSSL_malloc(length);
  ------------------
  |  |  106|  2.40k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  310|  2.40k|        if (data == NULL)
  ------------------
  |  Branch (310:13): [True: 0, False: 2.40k]
  ------------------
  311|      0|            goto err;
  312|  2.40k|        ret->flags |= ASN1_OBJECT_FLAG_DYNAMIC_DATA;
  ------------------
  |  |  113|  2.40k|#define ASN1_OBJECT_FLAG_DYNAMIC_DATA 0x08 /* internal use */
  ------------------
  313|  2.40k|    }
  314|  2.40k|    memcpy(data, p, length);
  315|       |    /* If there are dynamic strings, free them here, and clear the flag */
  316|  2.40k|    if ((ret->flags & ASN1_OBJECT_FLAG_DYNAMIC_STRINGS) != 0) {
  ------------------
  |  |  112|  2.40k|#define ASN1_OBJECT_FLAG_DYNAMIC_STRINGS 0x04 /* internal use */
  ------------------
  |  Branch (316:9): [True: 0, False: 2.40k]
  ------------------
  317|      0|        OPENSSL_free((char *)ret->sn);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  318|      0|        OPENSSL_free((char *)ret->ln);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  319|      0|        ret->flags &= ~ASN1_OBJECT_FLAG_DYNAMIC_STRINGS;
  ------------------
  |  |  112|      0|#define ASN1_OBJECT_FLAG_DYNAMIC_STRINGS 0x04 /* internal use */
  ------------------
  320|      0|    }
  321|       |    /* reattach data to object, after which it remains const */
  322|  2.40k|    ret->data = data;
  323|  2.40k|    ret->length = length;
  324|  2.40k|    ret->sn = NULL;
  325|  2.40k|    ret->ln = NULL;
  326|       |    /* ret->flags=ASN1_OBJECT_FLAG_DYNAMIC; we know it is dynamic */
  327|  2.40k|    p += length;
  328|       |
  329|  2.40k|    if (a != NULL)
  ------------------
  |  Branch (329:9): [True: 2.40k, False: 0]
  ------------------
  330|  2.40k|        (*a) = ret;
  331|  2.40k|    *pp = p;
  332|  2.40k|    return ret;
  333|      0|err:
  334|      0|    ERR_raise(ERR_LIB_ASN1, i);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  335|      0|    if ((a == NULL) || (*a != ret))
  ------------------
  |  Branch (335:9): [True: 0, False: 0]
  |  Branch (335:24): [True: 0, False: 0]
  ------------------
  336|      0|        ASN1_OBJECT_free(ret);
  337|       |    return NULL;
  338|  2.40k|}
ASN1_OBJECT_new:
  341|  2.40k|{
  342|  2.40k|    ASN1_OBJECT *ret;
  343|       |
  344|  2.40k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  2.40k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  345|  2.40k|    if (ret == NULL)
  ------------------
  |  Branch (345:9): [True: 0, False: 2.40k]
  ------------------
  346|      0|        return NULL;
  347|  2.40k|    ret->flags = ASN1_OBJECT_FLAG_DYNAMIC;
  ------------------
  |  |  110|  2.40k|#define ASN1_OBJECT_FLAG_DYNAMIC 0x01 /* internal use */
  ------------------
  348|  2.40k|    return ret;
  349|  2.40k|}
ASN1_OBJECT_free:
  352|  1.28M|{
  353|  1.28M|    if (a == NULL)
  ------------------
  |  Branch (353:9): [True: 26.2k, False: 1.26M]
  ------------------
  354|  26.2k|        return;
  355|  1.26M|    if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC_STRINGS) {
  ------------------
  |  |  112|  1.26M|#define ASN1_OBJECT_FLAG_DYNAMIC_STRINGS 0x04 /* internal use */
  ------------------
  |  Branch (355:9): [True: 0, False: 1.26M]
  ------------------
  356|      0|#ifndef CONST_STRICT
  357|       |        /*
  358|       |         * Disable purely for compile-time strict const checking.  Doing this
  359|       |         * on a "real" compile will cause memory leaks
  360|       |         */
  361|      0|        OPENSSL_free((void *)a->sn);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  362|      0|        OPENSSL_free((void *)a->ln);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  363|      0|#endif
  364|      0|        a->sn = a->ln = NULL;
  365|      0|    }
  366|  1.26M|    if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC_DATA) {
  ------------------
  |  |  113|  1.26M|#define ASN1_OBJECT_FLAG_DYNAMIC_DATA 0x08 /* internal use */
  ------------------
  |  Branch (366:9): [True: 2.40k, False: 1.26M]
  ------------------
  367|  2.40k|        OPENSSL_free((void *)a->data);
  ------------------
  |  |  131|  2.40k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  368|  2.40k|        a->data = NULL;
  369|  2.40k|        a->length = 0;
  370|  2.40k|    }
  371|  1.26M|    if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC)
  ------------------
  |  |  110|  1.26M|#define ASN1_OBJECT_FLAG_DYNAMIC 0x01 /* internal use */
  ------------------
  |  Branch (371:9): [True: 2.40k, False: 1.26M]
  ------------------
  372|  2.40k|        OPENSSL_free(a);
  ------------------
  |  |  131|  2.40k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  373|  1.26M|}

ASN1_STRING_to_UTF8:
  602|   228k|{
  603|   228k|    ASN1_STRING stmp, *str = &stmp;
  604|   228k|    int mbflag, type, ret;
  605|   228k|    if (!in)
  ------------------
  |  Branch (605:9): [True: 0, False: 228k]
  ------------------
  606|      0|        return -1;
  607|   228k|    type = in->type;
  608|   228k|    if ((type < 0) || (type > 30))
  ------------------
  |  Branch (608:9): [True: 0, False: 228k]
  |  Branch (608:23): [True: 0, False: 228k]
  ------------------
  609|      0|        return -1;
  610|   228k|    mbflag = tag2nbyte[type];
  611|   228k|    if (mbflag == -1)
  ------------------
  |  Branch (611:9): [True: 0, False: 228k]
  ------------------
  612|      0|        return -1;
  613|   228k|    mbflag |= MBSTRING_FLAG;
  ------------------
  |  |  124|   228k|#define MBSTRING_FLAG 0x1000
  ------------------
  614|   228k|    stmp.data = NULL;
  615|   228k|    stmp.length = 0;
  616|   228k|    stmp.flags = 0;
  617|   228k|    ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag,
  618|   228k|        B_ASN1_UTF8STRING);
  ------------------
  |  |  119|   228k|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  619|   228k|    if (ret < 0)
  ------------------
  |  Branch (619:9): [True: 0, False: 228k]
  ------------------
  620|      0|        return ret;
  621|   228k|    *out = stmp.data;
  622|   228k|    return stmp.length;
  623|   228k|}

ASN1_TYPE_set:
   27|   142k|{
   28|   142k|    if (a->type != V_ASN1_BOOLEAN
  ------------------
  |  |   65|   284k|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (28:9): [True: 142k, False: 0]
  ------------------
   29|   142k|        && a->type != V_ASN1_NULL
  ------------------
  |  |   69|   284k|#define V_ASN1_NULL 5
  ------------------
  |  Branch (29:12): [True: 142k, False: 0]
  ------------------
   30|   142k|        && a->value.ptr != NULL) {
  ------------------
  |  Branch (30:12): [True: 0, False: 142k]
  ------------------
   31|      0|        ASN1_TYPE **tmp_a = &a;
   32|      0|        ossl_asn1_primitive_free((ASN1_VALUE **)tmp_a, NULL, 0);
   33|      0|    }
   34|   142k|    a->type = type;
   35|   142k|    if (type == V_ASN1_BOOLEAN)
  ------------------
  |  |   65|   142k|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (35:9): [True: 0, False: 142k]
  ------------------
   36|      0|        a->value.boolean = value ? 0xff : 0;
  ------------------
  |  Branch (36:28): [True: 0, False: 0]
  ------------------
   37|   142k|    else
   38|   142k|        a->value.ptr = value;
   39|   142k|}

UTF8_getc:
   29|  2.36M|{
   30|  2.36M|    const unsigned char *p;
   31|  2.36M|    unsigned long value;
   32|  2.36M|    int ret;
   33|  2.36M|    if (len <= 0)
  ------------------
  |  Branch (33:9): [True: 0, False: 2.36M]
  ------------------
   34|      0|        return 0;
   35|  2.36M|    p = str;
   36|       |
   37|       |    /* Check syntax and work out the encoded value (if correct) */
   38|  2.36M|    if ((*p & 0x80) == 0) {
  ------------------
  |  Branch (38:9): [True: 2.35M, False: 7.00k]
  ------------------
   39|  2.35M|        value = *p++ & 0x7f;
   40|  2.35M|        ret = 1;
   41|  2.35M|    } else if ((*p & 0xe0) == 0xc0) {
  ------------------
  |  Branch (41:16): [True: 7.00k, False: 0]
  ------------------
   42|  7.00k|        if (len < 2)
  ------------------
  |  Branch (42:13): [True: 0, False: 7.00k]
  ------------------
   43|      0|            return -1;
   44|  7.00k|        if ((p[1] & 0xc0) != 0x80)
  ------------------
  |  Branch (44:13): [True: 0, False: 7.00k]
  ------------------
   45|      0|            return -3;
   46|  7.00k|        value = (*p++ & 0x1f) << 6;
   47|  7.00k|        value |= *p++ & 0x3f;
   48|  7.00k|        if (value < 0x80)
  ------------------
  |  Branch (48:13): [True: 0, False: 7.00k]
  ------------------
   49|      0|            return -4;
   50|  7.00k|        ret = 2;
   51|  7.00k|    } else if ((*p & 0xf0) == 0xe0) {
  ------------------
  |  Branch (51:16): [True: 0, False: 0]
  ------------------
   52|      0|        if (len < 3)
  ------------------
  |  Branch (52:13): [True: 0, False: 0]
  ------------------
   53|      0|            return -1;
   54|      0|        if (((p[1] & 0xc0) != 0x80)
  ------------------
  |  Branch (54:13): [True: 0, False: 0]
  ------------------
   55|      0|            || ((p[2] & 0xc0) != 0x80))
  ------------------
  |  Branch (55:16): [True: 0, False: 0]
  ------------------
   56|      0|            return -3;
   57|      0|        value = (*p++ & 0xf) << 12;
   58|      0|        value |= (*p++ & 0x3f) << 6;
   59|      0|        value |= *p++ & 0x3f;
   60|      0|        if (value < 0x800)
  ------------------
  |  Branch (60:13): [True: 0, False: 0]
  ------------------
   61|      0|            return -4;
   62|      0|        if (is_unicode_surrogate(value))
  ------------------
  |  Branch (62:13): [True: 0, False: 0]
  ------------------
   63|      0|            return -2;
   64|      0|        ret = 3;
   65|      0|    } else if ((*p & 0xf8) == 0xf0) {
  ------------------
  |  Branch (65:16): [True: 0, False: 0]
  ------------------
   66|      0|        if (len < 4)
  ------------------
  |  Branch (66:13): [True: 0, False: 0]
  ------------------
   67|      0|            return -1;
   68|      0|        if (((p[1] & 0xc0) != 0x80)
  ------------------
  |  Branch (68:13): [True: 0, False: 0]
  ------------------
   69|      0|            || ((p[2] & 0xc0) != 0x80)
  ------------------
  |  Branch (69:16): [True: 0, False: 0]
  ------------------
   70|      0|            || ((p[3] & 0xc0) != 0x80))
  ------------------
  |  Branch (70:16): [True: 0, False: 0]
  ------------------
   71|      0|            return -3;
   72|      0|        value = ((unsigned long)(*p++ & 0x7)) << 18;
   73|      0|        value |= (*p++ & 0x3f) << 12;
   74|      0|        value |= (*p++ & 0x3f) << 6;
   75|      0|        value |= *p++ & 0x3f;
   76|      0|        if (value < 0x10000 || value >= UNICODE_LIMIT)
  ------------------
  |  Branch (76:13): [True: 0, False: 0]
  |  Branch (76:32): [True: 0, False: 0]
  ------------------
   77|      0|            return -4;
   78|      0|        ret = 4;
   79|      0|    } else
   80|      0|        return -2;
   81|  2.36M|    *val = value;
   82|  2.36M|    return ret;
   83|  2.36M|}
UTF8_putc:
   94|  4.91M|{
   95|  4.91M|    if (!str)
  ------------------
  |  Branch (95:9): [True: 2.45M, False: 2.45M]
  ------------------
   96|  2.45M|        len = 4; /* Maximum we will need */
   97|  2.45M|    else if (len <= 0)
  ------------------
  |  Branch (97:14): [True: 0, False: 2.45M]
  ------------------
   98|      0|        return -1;
   99|  4.91M|    if (value < 0x80) {
  ------------------
  |  Branch (99:9): [True: 4.91M, False: 0]
  ------------------
  100|  4.91M|        if (str)
  ------------------
  |  Branch (100:13): [True: 2.45M, False: 2.45M]
  ------------------
  101|  2.45M|            *str = (unsigned char)value;
  102|  4.91M|        return 1;
  103|  4.91M|    }
  104|      0|    if (value < 0x800) {
  ------------------
  |  Branch (104:9): [True: 0, False: 0]
  ------------------
  105|      0|        if (len < 2)
  ------------------
  |  Branch (105:13): [True: 0, False: 0]
  ------------------
  106|      0|            return -1;
  107|      0|        if (str) {
  ------------------
  |  Branch (107:13): [True: 0, False: 0]
  ------------------
  108|      0|            *str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0);
  109|      0|            *str = (unsigned char)((value & 0x3f) | 0x80);
  110|      0|        }
  111|      0|        return 2;
  112|      0|    }
  113|      0|    if (value < 0x10000) {
  ------------------
  |  Branch (113:9): [True: 0, False: 0]
  ------------------
  114|      0|        if (is_unicode_surrogate(value))
  ------------------
  |  Branch (114:13): [True: 0, False: 0]
  ------------------
  115|      0|            return -2;
  116|      0|        if (len < 3)
  ------------------
  |  Branch (116:13): [True: 0, False: 0]
  ------------------
  117|      0|            return -1;
  118|      0|        if (str) {
  ------------------
  |  Branch (118:13): [True: 0, False: 0]
  ------------------
  119|      0|            *str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0);
  120|      0|            *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
  121|      0|            *str = (unsigned char)((value & 0x3f) | 0x80);
  122|      0|        }
  123|      0|        return 3;
  124|      0|    }
  125|      0|    if (value < UNICODE_LIMIT) {
  ------------------
  |  Branch (125:9): [True: 0, False: 0]
  ------------------
  126|      0|        if (len < 4)
  ------------------
  |  Branch (126:13): [True: 0, False: 0]
  ------------------
  127|      0|            return -1;
  128|      0|        if (str) {
  ------------------
  |  Branch (128:13): [True: 0, False: 0]
  ------------------
  129|      0|            *str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0);
  130|      0|            *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
  131|      0|            *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
  132|      0|            *str = (unsigned char)((value & 0x3f) | 0x80);
  133|      0|        }
  134|      0|        return 4;
  135|      0|    }
  136|      0|    return -2;
  137|      0|}

EVP_PKEY_asn1_get_count:
   41|   155k|{
   42|   155k|    int num = OSSL_NELEM(standard_methods);
  ------------------
  |  |   14|   155k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
   43|   155k|    if (app_methods)
  ------------------
  |  Branch (43:9): [True: 0, False: 155k]
  ------------------
   44|      0|        num += sk_EVP_PKEY_ASN1_METHOD_num(app_methods);
   45|   155k|    return num;
   46|   155k|}
EVP_PKEY_asn1_get0:
   49|  2.19M|{
   50|  2.19M|    int num = OSSL_NELEM(standard_methods);
  ------------------
  |  |   14|  2.19M|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
   51|  2.19M|    if (idx < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 2.19M]
  ------------------
   52|      0|        return NULL;
   53|  2.19M|    if (idx < num)
  ------------------
  |  Branch (53:9): [True: 2.19M, False: 0]
  ------------------
   54|  2.19M|        return standard_methods[idx];
   55|      0|    idx -= num;
   56|      0|    return sk_EVP_PKEY_ASN1_METHOD_value(app_methods, idx);
   57|  2.19M|}
EVP_PKEY_asn1_find:
   84|  75.2k|{
   85|  75.2k|    const EVP_PKEY_ASN1_METHOD *t;
   86|       |
   87|  75.2k|    for (;;) {
   88|  75.2k|        t = pkey_asn1_find(type);
   89|  75.2k|        if (!t || !(t->pkey_flags & ASN1_PKEY_ALIAS))
  ------------------
  |  | 1603|  74.2k|#define ASN1_PKEY_ALIAS 0x1
  ------------------
  |  Branch (89:13): [True: 1.02k, False: 74.2k]
  |  Branch (89:19): [True: 74.2k, False: 0]
  ------------------
   90|  75.2k|            break;
   91|      0|        type = t->pkey_base_id;
   92|      0|    }
   93|  75.2k|    if (pe) {
  ------------------
  |  Branch (93:9): [True: 75.2k, False: 0]
  ------------------
   94|  75.2k|#ifndef OPENSSL_NO_ENGINE
   95|  75.2k|        ENGINE *e;
   96|       |        /* type will contain the final unaliased type */
   97|  75.2k|        e = ENGINE_get_pkey_asn1_meth_engine(type);
   98|  75.2k|        if (e) {
  ------------------
  |  Branch (98:13): [True: 0, False: 75.2k]
  ------------------
   99|      0|            *pe = e;
  100|      0|            return ENGINE_get_pkey_asn1_meth(e, type);
  101|      0|        }
  102|  75.2k|#endif
  103|  75.2k|        *pe = NULL;
  104|  75.2k|    }
  105|  75.2k|    return t;
  106|  75.2k|}
EVP_PKEY_asn1_find_str:
  110|   155k|{
  111|   155k|    int i;
  112|   155k|    const EVP_PKEY_ASN1_METHOD *ameth = NULL;
  113|       |
  114|   155k|    if (len == -1)
  ------------------
  |  Branch (114:9): [True: 1.54k, False: 153k]
  ------------------
  115|  1.54k|        len = (int)strlen(str);
  116|   155k|    if (pe) {
  ------------------
  |  Branch (116:9): [True: 155k, False: 0]
  ------------------
  117|   155k|#ifndef OPENSSL_NO_ENGINE
  118|   155k|        ENGINE *e;
  119|   155k|        ameth = ENGINE_pkey_asn1_find_str(&e, str, len);
  120|   155k|        if (ameth) {
  ------------------
  |  Branch (120:13): [True: 0, False: 155k]
  ------------------
  121|       |            /*
  122|       |             * Convert structural into functional reference
  123|       |             */
  124|      0|            if (!ENGINE_init(e))
  ------------------
  |  Branch (124:17): [True: 0, False: 0]
  ------------------
  125|      0|                ameth = NULL;
  126|      0|            ENGINE_free(e);
  127|      0|            *pe = e;
  128|      0|            return ameth;
  129|      0|        }
  130|   155k|#endif
  131|   155k|        *pe = NULL;
  132|   155k|    }
  133|  2.28M|    for (i = EVP_PKEY_asn1_get_count(); i-- > 0;) {
  ------------------
  |  Branch (133:41): [True: 2.19M, False: 90.2k]
  ------------------
  134|  2.19M|        ameth = EVP_PKEY_asn1_get0(i);
  135|  2.19M|        if (ameth->pkey_flags & ASN1_PKEY_ALIAS)
  ------------------
  |  | 1603|  2.19M|#define ASN1_PKEY_ALIAS 0x1
  ------------------
  |  Branch (135:13): [True: 701k, False: 1.49M]
  ------------------
  136|   701k|            continue;
  137|  1.49M|        if ((int)strlen(ameth->pem_str) == len
  ------------------
  |  Branch (137:13): [True: 111k, False: 1.38M]
  ------------------
  138|   111k|            && OPENSSL_strncasecmp(ameth->pem_str, str, len) == 0)
  ------------------
  |  Branch (138:16): [True: 64.8k, False: 47.0k]
  ------------------
  139|  64.8k|            return ameth;
  140|  1.49M|    }
  141|  90.2k|    return NULL;
  142|   155k|}
EVP_PKEY_asn1_get0_info:
  203|     15|{
  204|     15|    if (!ameth)
  ------------------
  |  Branch (204:9): [True: 0, False: 15]
  ------------------
  205|      0|        return 0;
  206|     15|    if (ppkey_id)
  ------------------
  |  Branch (206:9): [True: 15, False: 0]
  ------------------
  207|     15|        *ppkey_id = ameth->pkey_id;
  208|     15|    if (ppkey_base_id)
  ------------------
  |  Branch (208:9): [True: 15, False: 0]
  ------------------
  209|     15|        *ppkey_base_id = ameth->pkey_base_id;
  210|     15|    if (ppkey_flags)
  ------------------
  |  Branch (210:9): [True: 15, False: 0]
  ------------------
  211|     15|        *ppkey_flags = ameth->pkey_flags;
  212|     15|    if (pinfo)
  ------------------
  |  Branch (212:9): [True: 0, False: 15]
  ------------------
  213|      0|        *pinfo = ameth->info;
  214|     15|    if (ppem_str)
  ------------------
  |  Branch (214:9): [True: 15, False: 0]
  ------------------
  215|     15|        *ppem_str = ameth->pem_str;
  216|     15|    return 1;
  217|     15|}
ameth_lib.c:pkey_asn1_find:
   60|  75.2k|{
   61|  75.2k|    EVP_PKEY_ASN1_METHOD tmp;
   62|  75.2k|    const EVP_PKEY_ASN1_METHOD *t = &tmp, **ret;
   63|       |
   64|  75.2k|    tmp.pkey_id = type;
   65|  75.2k|    if (app_methods) {
  ------------------
  |  Branch (65:9): [True: 0, False: 75.2k]
  ------------------
   66|      0|        int idx;
   67|      0|        idx = sk_EVP_PKEY_ASN1_METHOD_find(app_methods, &tmp);
   68|      0|        if (idx >= 0)
  ------------------
  |  Branch (68:13): [True: 0, False: 0]
  ------------------
   69|      0|            return sk_EVP_PKEY_ASN1_METHOD_value(app_methods, idx);
   70|      0|    }
   71|  75.2k|    ret = OBJ_bsearch_ameth(&t, standard_methods, OSSL_NELEM(standard_methods));
  ------------------
  |  |   14|  75.2k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
   72|  75.2k|    if (ret == NULL || *ret == NULL)
  ------------------
  |  Branch (72:9): [True: 1.02k, False: 74.2k]
  |  Branch (72:24): [True: 0, False: 74.2k]
  ------------------
   73|  1.02k|        return NULL;
   74|  74.2k|    return *ret;
   75|  75.2k|}
ameth_lib.c:ameth_cmp:
   33|   220k|{
   34|   220k|    return ((*a)->pkey_id - (*b)->pkey_id);
   35|   220k|}

ossl_err_load_ASN1_strings:
  210|      2|{
  211|      2|#ifndef OPENSSL_NO_ERR
  212|      2|    if (ERR_reason_error_string(ASN1_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (212:9): [True: 2, False: 0]
  ------------------
  213|      2|        ERR_load_strings_const(ASN1_str_reasons);
  214|      2|#endif
  215|      2|    return 1;
  216|      2|}

ASN1_get_object:
   48|  2.50M|{
   49|  2.50M|    int i, ret;
   50|  2.50M|    long len;
   51|  2.50M|    const unsigned char *p = *pp;
   52|  2.50M|    int tag, xclass, inf;
   53|  2.50M|    long max = omax;
   54|       |
   55|  2.50M|    if (omax <= 0) {
  ------------------
  |  Branch (55:9): [True: 0, False: 2.50M]
  ------------------
   56|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   57|      0|        return 0x80;
   58|      0|    }
   59|  2.50M|    ret = (*p & V_ASN1_CONSTRUCTED);
  ------------------
  |  |   54|  2.50M|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
   60|  2.50M|    xclass = (*p & V_ASN1_PRIVATE);
  ------------------
  |  |   52|  2.50M|#define V_ASN1_PRIVATE 0xc0
  ------------------
   61|  2.50M|    i = *p & V_ASN1_PRIMITIVE_TAG;
  ------------------
  |  |   55|  2.50M|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
   62|  2.50M|    if (i == V_ASN1_PRIMITIVE_TAG) { /* high-tag */
  ------------------
  |  |   55|  2.50M|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
  |  Branch (62:9): [True: 0, False: 2.50M]
  ------------------
   63|      0|        p++;
   64|      0|        if (--max == 0)
  ------------------
  |  Branch (64:13): [True: 0, False: 0]
  ------------------
   65|      0|            goto err;
   66|      0|        len = 0;
   67|      0|        while (*p & 0x80) {
  ------------------
  |  Branch (67:16): [True: 0, False: 0]
  ------------------
   68|      0|            len <<= 7L;
   69|      0|            len |= *(p++) & 0x7f;
   70|      0|            if (--max == 0)
  ------------------
  |  Branch (70:17): [True: 0, False: 0]
  ------------------
   71|      0|                goto err;
   72|      0|            if (len > (INT_MAX >> 7L))
  ------------------
  |  Branch (72:17): [True: 0, False: 0]
  ------------------
   73|      0|                goto err;
   74|      0|        }
   75|      0|        len <<= 7L;
   76|      0|        len |= *(p++) & 0x7f;
   77|      0|        tag = (int)len;
   78|      0|        if (--max == 0)
  ------------------
  |  Branch (78:13): [True: 0, False: 0]
  ------------------
   79|      0|            goto err;
   80|  2.50M|    } else {
   81|  2.50M|        tag = i;
   82|  2.50M|        p++;
   83|  2.50M|        if (--max == 0)
  ------------------
  |  Branch (83:13): [True: 0, False: 2.50M]
  ------------------
   84|      0|            goto err;
   85|  2.50M|    }
   86|  2.50M|    *ptag = tag;
   87|  2.50M|    *pclass = xclass;
   88|  2.50M|    if (!asn1_get_length(&p, &inf, plength, max))
  ------------------
  |  Branch (88:9): [True: 0, False: 2.50M]
  ------------------
   89|      0|        goto err;
   90|       |
   91|  2.50M|    if (inf && !(ret & V_ASN1_CONSTRUCTED))
  ------------------
  |  |   54|      0|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
  |  Branch (91:9): [True: 0, False: 2.50M]
  |  Branch (91:16): [True: 0, False: 0]
  ------------------
   92|      0|        goto err;
   93|       |
   94|  2.50M|    if (*plength > (omax - (p - *pp))) {
  ------------------
  |  Branch (94:9): [True: 63.9k, False: 2.44M]
  ------------------
   95|  63.9k|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  404|  63.9k|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|  63.9k|    (ERR_new(),                                                  \
  |  |  |  |  407|  63.9k|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|  63.9k|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|  63.9k|        ERR_set_error)
  |  |  ------------------
  ------------------
   96|       |        /*
   97|       |         * Set this so that even if things are not long enough the values are
   98|       |         * set correctly
   99|       |         */
  100|  63.9k|        ret |= 0x80;
  101|  63.9k|    }
  102|  2.50M|    *pp = p;
  103|  2.50M|    return ret | inf;
  104|      0|err:
  105|       |    ERR_raise(ERR_LIB_ASN1, ASN1_R_HEADER_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  106|      0|    return 0x80;
  107|  2.50M|}
ASN1_put_object:
  162|   915k|{
  163|   915k|    unsigned char *p = *pp;
  164|   915k|    int i, ttag;
  165|       |
  166|   915k|    i = (constructed) ? V_ASN1_CONSTRUCTED : 0;
  ------------------
  |  |   54|   457k|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
  |  Branch (166:9): [True: 457k, False: 457k]
  ------------------
  167|   915k|    i |= (xclass & V_ASN1_PRIVATE);
  ------------------
  |  |   52|   915k|#define V_ASN1_PRIVATE 0xc0
  ------------------
  168|   915k|    if (tag < 31) {
  ------------------
  |  Branch (168:9): [True: 915k, False: 0]
  ------------------
  169|   915k|        *(p++) = i | (tag & V_ASN1_PRIMITIVE_TAG);
  ------------------
  |  |   55|   915k|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
  170|   915k|    } else {
  171|      0|        *(p++) = i | V_ASN1_PRIMITIVE_TAG;
  ------------------
  |  |   55|      0|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
  172|      0|        for (i = 0, ttag = tag; ttag > 0; i++)
  ------------------
  |  Branch (172:33): [True: 0, False: 0]
  ------------------
  173|      0|            ttag >>= 7;
  174|      0|        ttag = i;
  175|      0|        while (i-- > 0) {
  ------------------
  |  Branch (175:16): [True: 0, False: 0]
  ------------------
  176|      0|            p[i] = tag & 0x7f;
  177|      0|            if (i != (ttag - 1))
  ------------------
  |  Branch (177:17): [True: 0, False: 0]
  ------------------
  178|      0|                p[i] |= 0x80;
  179|      0|            tag >>= 7;
  180|      0|        }
  181|      0|        p += ttag;
  182|      0|    }
  183|   915k|    if (constructed == 2)
  ------------------
  |  Branch (183:9): [True: 0, False: 915k]
  ------------------
  184|      0|        *(p++) = 0x80;
  185|   915k|    else
  186|   915k|        asn1_put_length(&p, length);
  187|   915k|    *pp = p;
  188|   915k|}
ASN1_object_size:
  223|  2.97M|{
  224|  2.97M|    int ret = 1;
  225|       |
  226|  2.97M|    if (length < 0)
  ------------------
  |  Branch (226:9): [True: 0, False: 2.97M]
  ------------------
  227|      0|        return -1;
  228|  2.97M|    if (tag >= 31) {
  ------------------
  |  Branch (228:9): [True: 0, False: 2.97M]
  ------------------
  229|      0|        while (tag > 0) {
  ------------------
  |  Branch (229:16): [True: 0, False: 0]
  ------------------
  230|      0|            tag >>= 7;
  231|      0|            ret++;
  232|      0|        }
  233|      0|    }
  234|  2.97M|    if (constructed == 2) {
  ------------------
  |  Branch (234:9): [True: 0, False: 2.97M]
  ------------------
  235|      0|        ret += 3;
  236|  2.97M|    } else {
  237|  2.97M|        ret++;
  238|  2.97M|        if (length > 127) {
  ------------------
  |  Branch (238:13): [True: 0, False: 2.97M]
  ------------------
  239|      0|            int tmplen = length;
  240|      0|            while (tmplen > 0) {
  ------------------
  |  Branch (240:20): [True: 0, False: 0]
  ------------------
  241|      0|                tmplen >>= 8;
  242|      0|                ret++;
  243|      0|            }
  244|      0|        }
  245|  2.97M|    }
  246|  2.97M|    if (ret >= INT_MAX - length)
  ------------------
  |  Branch (246:9): [True: 0, False: 2.97M]
  ------------------
  247|      0|        return -1;
  248|  2.97M|    return ret + length;
  249|  2.97M|}
ossl_asn1_string_set_bits_left:
  252|   127k|{
  253|   127k|    str->flags &= ~0x07;
  254|   127k|    str->flags |= ASN1_STRING_FLAG_BITS_LEFT | (num & 0x07);
  ------------------
  |  |  164|   127k|#define ASN1_STRING_FLAG_BITS_LEFT 0x08 /* Set if 0x07 has bits left value */
  ------------------
  255|   127k|}
ASN1_STRING_set:
  287|   524k|{
  288|   524k|    unsigned char *c;
  289|   524k|    const char *data = _data;
  290|   524k|    size_t len;
  291|       |
  292|   524k|    if (len_in < 0) {
  ------------------
  |  Branch (292:9): [True: 0, False: 524k]
  ------------------
  293|      0|        if (data == NULL)
  ------------------
  |  Branch (293:13): [True: 0, False: 0]
  ------------------
  294|      0|            return 0;
  295|      0|        len = strlen(data);
  296|   524k|    } else {
  297|   524k|        len = (size_t)len_in;
  298|   524k|    }
  299|       |    /*
  300|       |     * Verify that the length fits within an integer for assignment to
  301|       |     * str->length below.  The additional 1 is subtracted to allow for the
  302|       |     * '\0' terminator even though this isn't strictly necessary.
  303|       |     */
  304|   524k|    if (len > INT_MAX - 1) {
  ------------------
  |  Branch (304:9): [True: 0, False: 524k]
  ------------------
  305|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LARGE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  306|      0|        return 0;
  307|      0|    }
  308|   524k|    if ((size_t)str->length <= len || str->data == NULL) {
  ------------------
  |  Branch (308:9): [True: 524k, False: 0]
  |  Branch (308:39): [True: 0, False: 0]
  ------------------
  309|   524k|        c = str->data;
  310|   524k|#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
  311|       |        /* No NUL terminator in fuzzing builds */
  312|   524k|        str->data = OPENSSL_realloc(c, len != 0 ? len : 1);
  ------------------
  |  |  120|  1.04M|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (120:26): [True: 524k, False: 0]
  |  |  ------------------
  ------------------
  313|       |#else
  314|       |        str->data = OPENSSL_realloc(c, len + 1);
  315|       |#endif
  316|   524k|        if (str->data == NULL) {
  ------------------
  |  Branch (316:13): [True: 0, False: 524k]
  ------------------
  317|      0|            str->data = c;
  318|      0|            return 0;
  319|      0|        }
  320|   524k|    }
  321|   524k|    str->length = (int)len;
  322|   524k|    if (data != NULL) {
  ------------------
  |  Branch (322:9): [True: 460k, False: 63.9k]
  ------------------
  323|   460k|        memcpy(str->data, data, len);
  324|   460k|#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
  325|       |        /* Set the unused byte to something non NUL and printable. */
  326|   460k|        if (len == 0)
  ------------------
  |  Branch (326:13): [True: 0, False: 460k]
  ------------------
  327|      0|            str->data[len] = '~';
  328|       |#else
  329|       |        /*
  330|       |         * Add a NUL terminator. This should not be necessary - but we add it as
  331|       |         * a safety precaution
  332|       |         */
  333|       |        str->data[len] = '\0';
  334|       |#endif
  335|   460k|    }
  336|   524k|    return 1;
  337|   524k|}
ASN1_STRING_set0:
  340|   356k|{
  341|   356k|    OPENSSL_free(str->data);
  ------------------
  |  |  131|   356k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  342|   356k|    str->data = data;
  343|   356k|    str->length = len;
  344|   356k|}
ASN1_STRING_type_new:
  352|   649k|{
  353|   649k|    ASN1_STRING *ret;
  354|       |
  355|   649k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|   649k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  356|   649k|    if (ret == NULL)
  ------------------
  |  Branch (356:9): [True: 0, False: 649k]
  ------------------
  357|      0|        return NULL;
  358|   649k|    ret->type = type;
  359|   649k|    return ret;
  360|   649k|}
ossl_asn1_string_embed_free:
  363|   823k|{
  364|   823k|    if (a == NULL)
  ------------------
  |  Branch (364:9): [True: 0, False: 823k]
  ------------------
  365|      0|        return;
  366|   823k|    if (!(a->flags & ASN1_STRING_FLAG_NDEF))
  ------------------
  |  |  170|   823k|#define ASN1_STRING_FLAG_NDEF 0x010
  ------------------
  |  Branch (366:9): [True: 823k, False: 0]
  ------------------
  367|   823k|        OPENSSL_free(a->data);
  ------------------
  |  |  131|   823k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  368|   823k|    if (embed == 0)
  ------------------
  |  Branch (368:9): [True: 649k, False: 174k]
  ------------------
  369|   649k|        OPENSSL_free(a);
  ------------------
  |  |  131|   649k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  370|   823k|}
ASN1_STRING_free:
  373|   191k|{
  374|   191k|    if (a == NULL)
  ------------------
  |  Branch (374:9): [True: 127k, False: 63.9k]
  ------------------
  375|   127k|        return;
  376|  63.9k|    ossl_asn1_string_embed_free(a, a->flags & ASN1_STRING_FLAG_EMBED);
  ------------------
  |  |  185|  63.9k|#define ASN1_STRING_FLAG_EMBED 0x080
  ------------------
  377|  63.9k|}
asn1_lib.c:asn1_get_length:
  118|  2.50M|{
  119|  2.50M|    const unsigned char *p = *pp;
  120|  2.50M|    unsigned long ret = 0;
  121|  2.50M|    int i;
  122|       |
  123|  2.50M|    if (max-- < 1)
  ------------------
  |  Branch (123:9): [True: 0, False: 2.50M]
  ------------------
  124|      0|        return 0;
  125|  2.50M|    if (*p == 0x80) {
  ------------------
  |  Branch (125:9): [True: 0, False: 2.50M]
  ------------------
  126|      0|        *inf = 1;
  127|      0|        p++;
  128|  2.50M|    } else {
  129|  2.50M|        *inf = 0;
  130|  2.50M|        i = *p & 0x7f;
  131|  2.50M|        if (*p++ & 0x80) {
  ------------------
  |  Branch (131:13): [True: 345k, False: 2.16M]
  ------------------
  132|   345k|            if (max < i + 1)
  ------------------
  |  Branch (132:17): [True: 0, False: 345k]
  ------------------
  133|      0|                return 0;
  134|       |            /* Skip leading zeroes */
  135|   345k|            while (i > 0 && *p == 0) {
  ------------------
  |  Branch (135:20): [True: 345k, False: 0]
  |  Branch (135:29): [True: 0, False: 345k]
  ------------------
  136|      0|                p++;
  137|      0|                i--;
  138|      0|            }
  139|   345k|            if (i > (int)sizeof(long))
  ------------------
  |  Branch (139:17): [True: 0, False: 345k]
  ------------------
  140|      0|                return 0;
  141|  1.01M|            while (i > 0) {
  ------------------
  |  Branch (141:20): [True: 668k, False: 345k]
  ------------------
  142|   668k|                ret <<= 8;
  143|   668k|                ret |= *p++;
  144|   668k|                i--;
  145|   668k|            }
  146|   345k|            if (ret > LONG_MAX)
  ------------------
  |  Branch (146:17): [True: 0, False: 345k]
  ------------------
  147|      0|                return 0;
  148|  2.16M|        } else {
  149|  2.16M|            ret = i;
  150|  2.16M|        }
  151|  2.50M|    }
  152|  2.50M|    *pp = p;
  153|  2.50M|    *rl = (long)ret;
  154|  2.50M|    return 1;
  155|  2.50M|}
asn1_lib.c:asn1_put_length:
  201|   915k|{
  202|   915k|    unsigned char *p = *pp;
  203|   915k|    int i, len;
  204|       |
  205|   915k|    if (length <= 127) {
  ------------------
  |  Branch (205:9): [True: 915k, False: 0]
  ------------------
  206|   915k|        *(p++) = (unsigned char)length;
  207|   915k|    } else {
  208|      0|        len = length;
  209|      0|        for (i = 0; len > 0; i++)
  ------------------
  |  Branch (209:21): [True: 0, False: 0]
  ------------------
  210|      0|            len >>= 8;
  211|      0|        *(p++) = i | 0x80;
  212|      0|        len = i;
  213|      0|        while (i-- > 0) {
  ------------------
  |  Branch (213:16): [True: 0, False: 0]
  ------------------
  214|      0|            p[i] = length & 0xff;
  215|      0|            length >>= 8;
  216|      0|        }
  217|      0|        p += len;
  218|      0|    }
  219|   915k|    *pp = p;
  220|   915k|}

ASN1_tag2bit:
  106|   521k|{
  107|   521k|    if ((tag < 0) || (tag > 30))
  ------------------
  |  Branch (107:9): [True: 0, False: 521k]
  |  Branch (107:22): [True: 0, False: 521k]
  ------------------
  108|      0|        return 0;
  109|   521k|    return tag2bit[tag];
  110|   521k|}
ASN1_item_ex_d2i:
  153|  63.9k|{
  154|  63.9k|    return asn1_item_ex_d2i_intern(pval, in, len, it, tag, aclass, opt, ctx,
  155|  63.9k|        NULL, NULL);
  156|  63.9k|}
ASN1_item_d2i_ex:
  162|   119k|{
  163|   119k|    ASN1_TLC c;
  164|   119k|    ASN1_VALUE *ptmpval = NULL;
  165|       |
  166|   119k|    if (pval == NULL)
  ------------------
  |  Branch (166:9): [True: 23.2k, False: 95.9k]
  ------------------
  167|  23.2k|        pval = &ptmpval;
  168|   119k|    asn1_tlc_clear_nc(&c);
  ------------------
  |  |  121|   119k|    do {                     \
  |  |  122|   119k|        (c)->valid = 0;      \
  |  |  123|   119k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (123:14): [Folded, False: 119k]
  |  |  ------------------
  ------------------
  169|   119k|    if (asn1_item_ex_d2i_intern(pval, in, len, it, -1, 0, 0, &c, libctx,
  ------------------
  |  Branch (169:9): [True: 119k, False: 0]
  ------------------
  170|   119k|            propq)
  171|   119k|        > 0)
  172|   119k|        return *pval;
  173|      0|    return NULL;
  174|   119k|}
ASN1_item_d2i:
  179|  87.1k|{
  180|  87.1k|    return ASN1_item_d2i_ex(pval, in, len, it, NULL, NULL);
  181|  87.1k|}
asn1_item_embed_d2i:
  193|  2.59M|{
  194|  2.59M|    const ASN1_TEMPLATE *tt, *errtt = NULL;
  195|  2.59M|    const ASN1_EXTERN_FUNCS *ef;
  196|  2.59M|    const ASN1_AUX *aux;
  197|  2.59M|    ASN1_aux_cb *asn1_cb;
  198|  2.59M|    const unsigned char *p = NULL, *q;
  199|  2.59M|    unsigned char oclass;
  200|  2.59M|    char seq_eoc, seq_nolen, cst, isopt;
  201|  2.59M|    long tmplen;
  202|  2.59M|    int i;
  203|  2.59M|    int otag;
  204|  2.59M|    int ret = 0;
  205|  2.59M|    ASN1_VALUE **pchptr;
  206|       |
  207|  2.59M|    if (pval == NULL || it == NULL) {
  ------------------
  |  Branch (207:9): [True: 0, False: 2.59M]
  |  Branch (207:25): [True: 0, False: 2.59M]
  ------------------
  208|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  209|      0|        return 0;
  210|      0|    }
  211|  2.59M|    if (len <= 0) {
  ------------------
  |  Branch (211:9): [True: 0, False: 2.59M]
  ------------------
  212|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  213|      0|        return 0;
  214|      0|    }
  215|  2.59M|    aux = it->funcs;
  216|  2.59M|    if (aux && aux->asn1_cb)
  ------------------
  |  Branch (216:9): [True: 261k, False: 2.32M]
  |  Branch (216:16): [True: 101k, False: 159k]
  ------------------
  217|   101k|        asn1_cb = aux->asn1_cb;
  218|  2.48M|    else
  219|  2.48M|        asn1_cb = 0;
  220|       |
  221|  2.59M|    if (++depth > ASN1_MAX_CONSTRUCTED_NEST) {
  ------------------
  |  |   27|  2.59M|#define ASN1_MAX_CONSTRUCTED_NEST 30
  ------------------
  |  Branch (221:9): [True: 0, False: 2.59M]
  ------------------
  222|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_NESTED_TOO_DEEP);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  223|      0|        goto err;
  224|      0|    }
  225|       |
  226|  2.59M|    switch (it->itype) {
  227|  1.45M|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|  1.45M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (227:5): [True: 1.45M, False: 1.13M]
  ------------------
  228|  1.45M|        if (it->templates) {
  ------------------
  |  Branch (228:13): [True: 292k, False: 1.16M]
  ------------------
  229|       |            /*
  230|       |             * tagging or OPTIONAL is currently illegal on an item template
  231|       |             * because the flags can't get passed down. In practice this
  232|       |             * isn't a problem: we include the relevant flags from the item
  233|       |             * template in the template itself.
  234|       |             */
  235|   292k|            if ((tag != -1) || opt) {
  ------------------
  |  Branch (235:17): [True: 0, False: 292k]
  |  Branch (235:32): [True: 0, False: 292k]
  ------------------
  236|      0|                ERR_raise(ERR_LIB_ASN1,
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  237|      0|                    ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE);
  238|      0|                goto err;
  239|      0|            }
  240|   292k|            return asn1_template_ex_d2i(pval, in, len, it->templates, opt, ctx,
  241|   292k|                depth, libctx, propq);
  242|   292k|        }
  243|  1.16M|        return asn1_d2i_ex_primitive(pval, in, len, it,
  244|  1.16M|            tag, aclass, opt, ctx);
  245|       |
  246|   292k|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|   292k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (246:5): [True: 292k, False: 2.29M]
  ------------------
  247|       |        /*
  248|       |         * It never makes sense for multi-strings to have implicit tagging, so
  249|       |         * if tag != -1, then this looks like an error in the template.
  250|       |         */
  251|   292k|        if (tag != -1) {
  ------------------
  |  Branch (251:13): [True: 0, False: 292k]
  ------------------
  252|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_TEMPLATE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  253|      0|            goto err;
  254|      0|        }
  255|       |
  256|   292k|        p = *in;
  257|       |        /* Just read in tag and class */
  258|   292k|        ret = asn1_check_tlen(NULL, &otag, &oclass, NULL, NULL,
  259|   292k|            &p, len, -1, 0, 1, ctx);
  260|   292k|        if (!ret) {
  ------------------
  |  Branch (260:13): [True: 0, False: 292k]
  ------------------
  261|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  262|      0|            goto err;
  263|      0|        }
  264|       |
  265|       |        /* Must be UNIVERSAL class */
  266|   292k|        if (oclass != V_ASN1_UNIVERSAL) {
  ------------------
  |  |   49|   292k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  |  Branch (266:13): [True: 0, False: 292k]
  ------------------
  267|       |            /* If OPTIONAL, assume this is OK */
  268|      0|            if (opt)
  ------------------
  |  Branch (268:17): [True: 0, False: 0]
  ------------------
  269|      0|                return -1;
  270|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_MSTRING_NOT_UNIVERSAL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  271|      0|            goto err;
  272|      0|        }
  273|       |
  274|       |        /* Check tag matches bit map */
  275|   292k|        if (!(ASN1_tag2bit(otag) & it->utype)) {
  ------------------
  |  Branch (275:13): [True: 0, False: 292k]
  ------------------
  276|       |            /* If OPTIONAL, assume this is OK */
  277|      0|            if (opt)
  ------------------
  |  Branch (277:17): [True: 0, False: 0]
  ------------------
  278|      0|                return -1;
  279|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_MSTRING_WRONG_TAG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  280|      0|            goto err;
  281|      0|        }
  282|   292k|        return asn1_d2i_ex_primitive(pval, in, len, it, otag, 0, 0, ctx);
  283|       |
  284|   127k|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|   127k|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (284:5): [True: 127k, False: 2.46M]
  ------------------
  285|       |        /* Use new style d2i */
  286|   127k|        ef = it->funcs;
  287|   127k|        if (ef->asn1_ex_d2i_ex != NULL)
  ------------------
  |  Branch (287:13): [True: 63.9k, False: 63.9k]
  ------------------
  288|  63.9k|            return ef->asn1_ex_d2i_ex(pval, in, len, it, tag, aclass, opt, ctx,
  289|  63.9k|                libctx, propq);
  290|  63.9k|        return ef->asn1_ex_d2i(pval, in, len, it, tag, aclass, opt, ctx);
  291|       |
  292|      0|    case ASN1_ITYPE_CHOICE:
  ------------------
  |  |   84|      0|#define ASN1_ITYPE_CHOICE 0x2
  ------------------
  |  Branch (292:5): [True: 0, False: 2.59M]
  ------------------
  293|       |        /*
  294|       |         * It never makes sense for CHOICE types to have implicit tagging, so
  295|       |         * if tag != -1, then this looks like an error in the template.
  296|       |         */
  297|      0|        if (tag != -1) {
  ------------------
  |  Branch (297:13): [True: 0, False: 0]
  ------------------
  298|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_TEMPLATE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  299|      0|            goto err;
  300|      0|        }
  301|       |
  302|      0|        if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL))
  ------------------
  |  |  735|      0|#define ASN1_OP_D2I_PRE 4
  ------------------
  |  Branch (302:13): [True: 0, False: 0]
  |  Branch (302:24): [True: 0, False: 0]
  ------------------
  303|      0|            goto auxerr;
  304|      0|        if (*pval) {
  ------------------
  |  Branch (304:13): [True: 0, False: 0]
  ------------------
  305|       |            /* Free up and zero CHOICE value if initialised */
  306|      0|            i = ossl_asn1_get_choice_selector(pval, it);
  307|      0|            if ((i >= 0) && (i < it->tcount)) {
  ------------------
  |  Branch (307:17): [True: 0, False: 0]
  |  Branch (307:29): [True: 0, False: 0]
  ------------------
  308|      0|                tt = it->templates + i;
  309|      0|                pchptr = ossl_asn1_get_field_ptr(pval, tt);
  310|      0|                ossl_asn1_template_free(pchptr, tt);
  311|      0|                ossl_asn1_set_choice_selector(pval, -1, it);
  312|      0|            }
  313|      0|        } else if (!ossl_asn1_item_ex_new_intern(pval, it, libctx, propq)) {
  ------------------
  |  Branch (313:20): [True: 0, False: 0]
  ------------------
  314|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  315|      0|            goto err;
  316|      0|        }
  317|       |        /* CHOICE type, try each possibility in turn */
  318|      0|        p = *in;
  319|      0|        for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) {
  ------------------
  |  Branch (319:41): [True: 0, False: 0]
  ------------------
  320|      0|            pchptr = ossl_asn1_get_field_ptr(pval, tt);
  321|       |            /*
  322|       |             * We mark field as OPTIONAL so its absence can be recognised.
  323|       |             */
  324|      0|            ret = asn1_template_ex_d2i(pchptr, &p, len, tt, 1, ctx, depth,
  325|      0|                libctx, propq);
  326|       |            /* If field not present, try the next one */
  327|      0|            if (ret == -1)
  ------------------
  |  Branch (327:17): [True: 0, False: 0]
  ------------------
  328|      0|                continue;
  329|       |            /* If positive return, read OK, break loop */
  330|      0|            if (ret > 0)
  ------------------
  |  Branch (330:17): [True: 0, False: 0]
  ------------------
  331|      0|                break;
  332|       |            /*
  333|       |             * Must be an ASN1 parsing error.
  334|       |             * Free up any partial choice value
  335|       |             */
  336|      0|            ossl_asn1_template_free(pchptr, tt);
  337|      0|            errtt = tt;
  338|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  339|      0|            goto err;
  340|      0|        }
  341|       |
  342|       |        /* Did we fall off the end without reading anything? */
  343|      0|        if (i == it->tcount) {
  ------------------
  |  Branch (343:13): [True: 0, False: 0]
  ------------------
  344|       |            /* If OPTIONAL, this is OK */
  345|      0|            if (opt) {
  ------------------
  |  Branch (345:17): [True: 0, False: 0]
  ------------------
  346|       |                /* Free and zero it */
  347|      0|                ASN1_item_ex_free(pval, it);
  348|      0|                return -1;
  349|      0|            }
  350|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_NO_MATCHING_CHOICE_TYPE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  351|      0|            goto err;
  352|      0|        }
  353|       |
  354|      0|        ossl_asn1_set_choice_selector(pval, i, it);
  355|       |
  356|      0|        if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL))
  ------------------
  |  |  736|      0|#define ASN1_OP_D2I_POST 5
  ------------------
  |  Branch (356:13): [True: 0, False: 0]
  |  Branch (356:24): [True: 0, False: 0]
  ------------------
  357|      0|            goto auxerr;
  358|      0|        *in = p;
  359|      0|        return 1;
  360|       |
  361|      0|    case ASN1_ITYPE_NDEF_SEQUENCE:
  ------------------
  |  |   88|      0|#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
  ------------------
  |  Branch (361:5): [True: 0, False: 2.59M]
  ------------------
  362|   713k|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|   713k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (362:5): [True: 713k, False: 1.87M]
  ------------------
  363|   713k|        p = *in;
  364|   713k|        tmplen = len;
  365|       |
  366|       |        /* If no IMPLICIT tagging set to SEQUENCE, UNIVERSAL */
  367|   713k|        if (tag == -1) {
  ------------------
  |  Branch (367:13): [True: 713k, False: 0]
  ------------------
  368|   713k|            tag = V_ASN1_SEQUENCE;
  ------------------
  |  |   76|   713k|#define V_ASN1_SEQUENCE 16
  ------------------
  369|   713k|            aclass = V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|   713k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  370|   713k|        }
  371|       |        /* Get SEQUENCE length and update len, p */
  372|   713k|        ret = asn1_check_tlen(&len, NULL, NULL, &seq_eoc, &cst,
  373|   713k|            &p, len, tag, aclass, opt, ctx);
  374|   713k|        if (!ret) {
  ------------------
  |  Branch (374:13): [True: 0, False: 713k]
  ------------------
  375|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  376|      0|            goto err;
  377|   713k|        } else if (ret == -1)
  ------------------
  |  Branch (377:20): [True: 0, False: 713k]
  ------------------
  378|      0|            return -1;
  379|   713k|        if (aux && (aux->flags & ASN1_AFLG_BROKEN)) {
  ------------------
  |  |  725|  87.1k|#define ASN1_AFLG_BROKEN 4
  ------------------
  |  Branch (379:13): [True: 87.1k, False: 626k]
  |  Branch (379:20): [True: 0, False: 87.1k]
  ------------------
  380|      0|            len = tmplen - (long)(p - *in);
  381|      0|            seq_nolen = 1;
  382|      0|        }
  383|       |        /* If indefinite we don't do a length check */
  384|   713k|        else
  385|   713k|            seq_nolen = seq_eoc;
  386|   713k|        if (!cst) {
  ------------------
  |  Branch (386:13): [True: 0, False: 713k]
  ------------------
  387|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_SEQUENCE_NOT_CONSTRUCTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  388|      0|            goto err;
  389|      0|        }
  390|       |
  391|   713k|        if (*pval == NULL
  ------------------
  |  Branch (391:13): [True: 393k, False: 319k]
  ------------------
  392|   393k|            && !ossl_asn1_item_ex_new_intern(pval, it, libctx, propq)) {
  ------------------
  |  Branch (392:16): [True: 0, False: 393k]
  ------------------
  393|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  394|      0|            goto err;
  395|      0|        }
  396|       |
  397|   713k|        if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL))
  ------------------
  |  |  735|  55.1k|#define ASN1_OP_D2I_PRE 4
  ------------------
  |  Branch (397:13): [True: 55.1k, False: 658k]
  |  Branch (397:24): [True: 0, False: 55.1k]
  ------------------
  398|      0|            goto auxerr;
  399|       |
  400|       |        /* Free up and zero any ADB found */
  401|  2.53M|        for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) {
  ------------------
  |  Branch (401:41): [True: 1.82M, False: 713k]
  ------------------
  402|  1.82M|            if (tt->flags & ASN1_TFLG_ADB_MASK) {
  ------------------
  |  |  572|  1.82M|#define ASN1_TFLG_ADB_MASK (0x3 << 8)
  ------------------
  |  Branch (402:17): [True: 0, False: 1.82M]
  ------------------
  403|      0|                const ASN1_TEMPLATE *seqtt;
  404|      0|                ASN1_VALUE **pseqval;
  405|      0|                seqtt = ossl_asn1_do_adb(*pval, tt, 0);
  406|      0|                if (seqtt == NULL)
  ------------------
  |  Branch (406:21): [True: 0, False: 0]
  ------------------
  407|      0|                    continue;
  408|      0|                pseqval = ossl_asn1_get_field_ptr(pval, seqtt);
  409|      0|                ossl_asn1_template_free(pseqval, seqtt);
  410|      0|            }
  411|  1.82M|        }
  412|       |
  413|       |        /* Get each field entry */
  414|  2.52M|        for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) {
  ------------------
  |  Branch (414:41): [True: 1.82M, False: 696k]
  ------------------
  415|  1.82M|            const ASN1_TEMPLATE *seqtt;
  416|  1.82M|            ASN1_VALUE **pseqval;
  417|  1.82M|            seqtt = ossl_asn1_do_adb(*pval, tt, 1);
  418|  1.82M|            if (seqtt == NULL)
  ------------------
  |  Branch (418:17): [True: 0, False: 1.82M]
  ------------------
  419|      0|                goto err;
  420|  1.82M|            pseqval = ossl_asn1_get_field_ptr(pval, seqtt);
  421|       |            /* Have we ran out of data? */
  422|  1.82M|            if (!len)
  ------------------
  |  Branch (422:17): [True: 17.5k, False: 1.80M]
  ------------------
  423|  17.5k|                break;
  424|  1.80M|            q = p;
  425|  1.80M|            if (asn1_check_eoc(&p, len)) {
  ------------------
  |  Branch (425:17): [True: 0, False: 1.80M]
  ------------------
  426|      0|                if (!seq_eoc) {
  ------------------
  |  Branch (426:21): [True: 0, False: 0]
  ------------------
  427|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_UNEXPECTED_EOC);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  428|      0|                    goto err;
  429|      0|                }
  430|      0|                len -= (long)(p - q);
  431|      0|                seq_eoc = 0;
  432|      0|                break;
  433|      0|            }
  434|       |            /*
  435|       |             * This determines the OPTIONAL flag value. The field cannot be
  436|       |             * omitted if it is the last of a SEQUENCE and there is still
  437|       |             * data to be read. This isn't strictly necessary but it
  438|       |             * increases efficiency in some cases.
  439|       |             */
  440|  1.80M|            if (i == (it->tcount - 1))
  ------------------
  |  Branch (440:17): [True: 696k, False: 1.11M]
  ------------------
  441|   696k|                isopt = 0;
  442|  1.11M|            else
  443|  1.11M|                isopt = (char)(seqtt->flags & ASN1_TFLG_OPTIONAL);
  ------------------
  |  |  512|  1.11M|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  444|       |            /*
  445|       |             * attempt to read in field, allowing each to be OPTIONAL
  446|       |             */
  447|       |
  448|  1.80M|            ret = asn1_template_ex_d2i(pseqval, &p, len, seqtt, isopt, ctx,
  449|  1.80M|                depth, libctx, propq);
  450|  1.80M|            if (!ret) {
  ------------------
  |  Branch (450:17): [True: 0, False: 1.80M]
  ------------------
  451|      0|                errtt = seqtt;
  452|      0|                goto err;
  453|  1.80M|            } else if (ret == -1) {
  ------------------
  |  Branch (453:24): [True: 113k, False: 1.69M]
  ------------------
  454|       |                /*
  455|       |                 * OPTIONAL component absent. Free and zero the field.
  456|       |                 */
  457|   113k|                ossl_asn1_template_free(pseqval, seqtt);
  458|   113k|                continue;
  459|   113k|            }
  460|       |            /* Update length */
  461|  1.69M|            len -= (long)(p - q);
  462|  1.69M|        }
  463|       |
  464|       |        /* Check for EOC if expecting one */
  465|   713k|        if (seq_eoc && !asn1_check_eoc(&p, len)) {
  ------------------
  |  Branch (465:13): [True: 0, False: 713k]
  |  Branch (465:24): [True: 0, False: 0]
  ------------------
  466|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_MISSING_EOC);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  467|      0|            goto err;
  468|      0|        }
  469|       |        /* Check all data read */
  470|   713k|        if (!seq_nolen && len) {
  ------------------
  |  Branch (470:13): [True: 713k, False: 0]
  |  Branch (470:27): [True: 0, False: 713k]
  ------------------
  471|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_SEQUENCE_LENGTH_MISMATCH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  472|      0|            goto err;
  473|      0|        }
  474|       |
  475|       |        /*
  476|       |         * If we get here we've got no more data in the SEQUENCE, however we
  477|       |         * may not have read all fields so check all remaining are OPTIONAL
  478|       |         * and clear any that are.
  479|       |         */
  480|   731k|        for (; i < it->tcount; tt++, i++) {
  ------------------
  |  Branch (480:16): [True: 17.5k, False: 713k]
  ------------------
  481|  17.5k|            const ASN1_TEMPLATE *seqtt;
  482|  17.5k|            seqtt = ossl_asn1_do_adb(*pval, tt, 1);
  483|  17.5k|            if (seqtt == NULL)
  ------------------
  |  Branch (483:17): [True: 0, False: 17.5k]
  ------------------
  484|      0|                goto err;
  485|  17.5k|            if (seqtt->flags & ASN1_TFLG_OPTIONAL) {
  ------------------
  |  |  512|  17.5k|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (485:17): [True: 17.5k, False: 0]
  ------------------
  486|  17.5k|                ASN1_VALUE **pseqval;
  487|  17.5k|                pseqval = ossl_asn1_get_field_ptr(pval, seqtt);
  488|  17.5k|                ossl_asn1_template_free(pseqval, seqtt);
  489|  17.5k|            } else {
  490|      0|                errtt = seqtt;
  491|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_FIELD_MISSING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  492|      0|                goto err;
  493|      0|            }
  494|  17.5k|        }
  495|       |        /* Save encoding */
  496|   713k|        if (!ossl_asn1_enc_save(pval, *in, (long)(p - *in), it))
  ------------------
  |  Branch (496:13): [True: 0, False: 713k]
  ------------------
  497|      0|            goto auxerr;
  498|   713k|        if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL))
  ------------------
  |  |  736|  55.1k|#define ASN1_OP_D2I_POST 5
  ------------------
  |  Branch (498:13): [True: 55.1k, False: 658k]
  |  Branch (498:24): [True: 0, False: 55.1k]
  ------------------
  499|      0|            goto auxerr;
  500|   713k|        *in = p;
  501|   713k|        return 1;
  502|       |
  503|      0|    default:
  ------------------
  |  Branch (503:5): [True: 0, False: 2.59M]
  ------------------
  504|      0|        return 0;
  505|  2.59M|    }
  506|      0|auxerr:
  507|      0|    ERR_raise(ERR_LIB_ASN1, ASN1_R_AUX_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  508|      0|err:
  509|      0|    if (errtt)
  ------------------
  |  Branch (509:9): [True: 0, False: 0]
  ------------------
  510|      0|        ERR_add_error_data(4, "Field=", errtt->field_name,
  511|      0|            ", Type=", it->sname);
  512|      0|    else
  513|      0|        ERR_add_error_data(2, "Type=", it->sname);
  514|      0|    return 0;
  515|      0|}
tasn_dec.c:asn1_item_ex_d2i_intern:
  136|   183k|{
  137|   183k|    int rv;
  138|       |
  139|   183k|    if (pval == NULL || it == NULL) {
  ------------------
  |  Branch (139:9): [True: 0, False: 183k]
  |  Branch (139:25): [True: 0, False: 183k]
  ------------------
  140|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  141|      0|        return 0;
  142|      0|    }
  143|   183k|    rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0,
  144|   183k|        libctx, propq);
  145|   183k|    if (rv <= 0)
  ------------------
  |  Branch (145:9): [True: 0, False: 183k]
  ------------------
  146|      0|        ASN1_item_ex_free(pval, it);
  147|   183k|    return rv;
  148|   183k|}
tasn_dec.c:asn1_template_ex_d2i:
  527|  2.10M|{
  528|  2.10M|    int flags, aclass;
  529|  2.10M|    int ret;
  530|  2.10M|    long len;
  531|  2.10M|    const unsigned char *p, *q;
  532|  2.10M|    char exp_eoc;
  533|  2.10M|    if (!val)
  ------------------
  |  Branch (533:9): [True: 0, False: 2.10M]
  ------------------
  534|      0|        return 0;
  535|  2.10M|    flags = tt->flags;
  536|  2.10M|    aclass = flags & ASN1_TFLG_TAG_CLASS;
  ------------------
  |  |  564|  2.10M|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  537|       |
  538|  2.10M|    p = *in;
  539|       |
  540|       |    /* Check if EXPLICIT tag expected */
  541|  2.10M|    if (flags & ASN1_TFLG_EXPTAG) {
  ------------------
  |  |  539|  2.10M|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (541:9): [True: 63.9k, False: 2.03M]
  ------------------
  542|  63.9k|        char cst;
  543|       |        /*
  544|       |         * Need to work out amount of data available to the inner content and
  545|       |         * where it starts: so read in EXPLICIT header to get the info.
  546|       |         */
  547|  63.9k|        ret = asn1_check_tlen(&len, NULL, NULL, &exp_eoc, &cst,
  548|  63.9k|            &p, inlen, tt->tag, aclass, opt, ctx);
  549|  63.9k|        q = p;
  550|  63.9k|        if (!ret) {
  ------------------
  |  Branch (550:13): [True: 0, False: 63.9k]
  ------------------
  551|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  552|      0|            return 0;
  553|  63.9k|        } else if (ret == -1)
  ------------------
  |  Branch (553:20): [True: 0, False: 63.9k]
  ------------------
  554|      0|            return -1;
  555|  63.9k|        if (!cst) {
  ------------------
  |  Branch (555:13): [True: 0, False: 63.9k]
  ------------------
  556|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  557|      0|            return 0;
  558|      0|        }
  559|       |        /* We've found the field so it can't be OPTIONAL now */
  560|  63.9k|        ret = asn1_template_noexp_d2i(val, &p, len, tt, 0, ctx, depth, libctx,
  561|  63.9k|            propq);
  562|  63.9k|        if (!ret) {
  ------------------
  |  Branch (562:13): [True: 0, False: 63.9k]
  ------------------
  563|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  564|      0|            return 0;
  565|      0|        }
  566|       |        /* We read the field in OK so update length */
  567|  63.9k|        len -= (long)(p - q);
  568|  63.9k|        if (exp_eoc) {
  ------------------
  |  Branch (568:13): [True: 0, False: 63.9k]
  ------------------
  569|       |            /* If NDEF we must have an EOC here */
  570|      0|            if (!asn1_check_eoc(&p, len)) {
  ------------------
  |  Branch (570:17): [True: 0, False: 0]
  ------------------
  571|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_MISSING_EOC);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  572|      0|                goto err;
  573|      0|            }
  574|  63.9k|        } else {
  575|       |            /*
  576|       |             * Otherwise we must hit the EXPLICIT tag end or its an error
  577|       |             */
  578|  63.9k|            if (len) {
  ------------------
  |  Branch (578:17): [True: 0, False: 63.9k]
  ------------------
  579|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_EXPLICIT_LENGTH_MISMATCH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  580|      0|                goto err;
  581|      0|            }
  582|  63.9k|        }
  583|  63.9k|    } else
  584|  2.03M|        return asn1_template_noexp_d2i(val, in, inlen, tt, opt, ctx, depth,
  585|  2.03M|            libctx, propq);
  586|       |
  587|  63.9k|    *in = p;
  588|  63.9k|    return 1;
  589|       |
  590|      0|err:
  591|      0|    return 0;
  592|  2.10M|}
tasn_dec.c:asn1_template_noexp_d2i:
  599|  2.10M|{
  600|  2.10M|    int flags, aclass;
  601|  2.10M|    int ret;
  602|  2.10M|    ASN1_VALUE *tval;
  603|  2.10M|    const unsigned char *p, *q;
  604|  2.10M|    if (!val)
  ------------------
  |  Branch (604:9): [True: 0, False: 2.10M]
  ------------------
  605|      0|        return 0;
  606|  2.10M|    flags = tt->flags;
  607|  2.10M|    aclass = flags & ASN1_TFLG_TAG_CLASS;
  ------------------
  |  |  564|  2.10M|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  608|       |
  609|  2.10M|    p = *in;
  610|       |
  611|       |    /*
  612|       |     * If field is embedded then val needs fixing so it is a pointer to
  613|       |     * a pointer to a field.
  614|       |     */
  615|  2.10M|    if (tt->flags & ASN1_TFLG_EMBED) {
  ------------------
  |  |  586|  2.10M|#define ASN1_TFLG_EMBED (0x1 << 12)
  ------------------
  |  Branch (615:9): [True: 302k, False: 1.79M]
  ------------------
  616|   302k|        tval = (ASN1_VALUE *)val;
  617|   302k|        val = &tval;
  618|   302k|    }
  619|       |
  620|  2.10M|    if (flags & ASN1_TFLG_SK_MASK) {
  ------------------
  |  |  528|  2.10M|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (620:9): [True: 324k, False: 1.77M]
  ------------------
  621|       |        /* SET OF, SEQUENCE OF */
  622|   324k|        int sktag, skaclass;
  623|   324k|        char sk_eoc;
  624|       |        /* First work out expected inner tag value */
  625|   324k|        if (flags & ASN1_TFLG_IMPTAG) {
  ------------------
  |  |  536|   324k|#define ASN1_TFLG_IMPTAG (0x1 << 3)
  ------------------
  |  Branch (625:13): [True: 0, False: 324k]
  ------------------
  626|      0|            sktag = tt->tag;
  627|      0|            skaclass = aclass;
  628|   324k|        } else {
  629|   324k|            skaclass = V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|   324k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  630|   324k|            if (flags & ASN1_TFLG_SET_OF)
  ------------------
  |  |  515|   324k|#define ASN1_TFLG_SET_OF (0x1 << 1)
  ------------------
  |  Branch (630:17): [True: 228k, False: 95.9k]
  ------------------
  631|   228k|                sktag = V_ASN1_SET;
  ------------------
  |  |   77|   228k|#define V_ASN1_SET 17
  ------------------
  632|  95.9k|            else
  633|  95.9k|                sktag = V_ASN1_SEQUENCE;
  ------------------
  |  |   76|  95.9k|#define V_ASN1_SEQUENCE 16
  ------------------
  634|   324k|        }
  635|       |        /* Get the tag */
  636|   324k|        ret = asn1_check_tlen(&len, NULL, NULL, &sk_eoc, NULL,
  637|   324k|            &p, len, sktag, skaclass, opt, ctx);
  638|   324k|        if (!ret) {
  ------------------
  |  Branch (638:13): [True: 0, False: 324k]
  ------------------
  639|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  640|      0|            return 0;
  641|   324k|        } else if (ret == -1)
  ------------------
  |  Branch (641:20): [True: 0, False: 324k]
  ------------------
  642|      0|            return -1;
  643|   324k|        if (*val == NULL)
  ------------------
  |  Branch (643:13): [True: 324k, False: 0]
  ------------------
  644|   324k|            *val = (ASN1_VALUE *)sk_ASN1_VALUE_new_null();
  ------------------
  |  |  890|   324k|#define sk_ASN1_VALUE_new_null() ((STACK_OF(ASN1_VALUE) *)OPENSSL_sk_new_null())
  ------------------
  645|      0|        else {
  646|       |            /*
  647|       |             * We've got a valid STACK: free up any items present
  648|       |             */
  649|      0|            STACK_OF(ASN1_VALUE) *sktmp = (STACK_OF(ASN1_VALUE) *)*val;
  ------------------
  |  |   33|      0|#define STACK_OF(type) struct stack_st_##type
  ------------------
  650|      0|            ASN1_VALUE *vtmp;
  651|      0|            while (sk_ASN1_VALUE_num(sktmp) > 0) {
  ------------------
  |  |  887|      0|#define sk_ASN1_VALUE_num(sk) OPENSSL_sk_num(ossl_check_const_ASN1_VALUE_sk_type(sk))
  ------------------
  |  Branch (651:20): [True: 0, False: 0]
  ------------------
  652|      0|                vtmp = sk_ASN1_VALUE_pop(sktmp);
  ------------------
  |  |  899|      0|#define sk_ASN1_VALUE_pop(sk) ((ASN1_VALUE *)OPENSSL_sk_pop(ossl_check_ASN1_VALUE_sk_type(sk)))
  ------------------
  653|      0|                ASN1_item_ex_free(&vtmp, ASN1_ITEM_ptr(tt->item));
  ------------------
  |  |  428|      0|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  654|      0|            }
  655|      0|        }
  656|       |
  657|   324k|        if (*val == NULL) {
  ------------------
  |  Branch (657:13): [True: 0, False: 324k]
  ------------------
  658|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  659|      0|            goto err;
  660|      0|        }
  661|       |
  662|       |        /* Read as many items as we can */
  663|   891k|        while (len > 0) {
  ------------------
  |  Branch (663:16): [True: 567k, False: 324k]
  ------------------
  664|   567k|            ASN1_VALUE *skfield;
  665|   567k|            q = p;
  666|       |            /* See if EOC found */
  667|   567k|            if (asn1_check_eoc(&p, len)) {
  ------------------
  |  Branch (667:17): [True: 0, False: 567k]
  ------------------
  668|      0|                if (!sk_eoc) {
  ------------------
  |  Branch (668:21): [True: 0, False: 0]
  ------------------
  669|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_UNEXPECTED_EOC);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  670|      0|                    goto err;
  671|      0|                }
  672|      0|                len -= (long)(p - q);
  673|      0|                sk_eoc = 0;
  674|      0|                break;
  675|      0|            }
  676|   567k|            skfield = NULL;
  677|   567k|            if (asn1_item_embed_d2i(&skfield, &p, len,
  ------------------
  |  Branch (677:17): [True: 0, False: 567k]
  ------------------
  678|   567k|                    ASN1_ITEM_ptr(tt->item), -1, 0, 0, ctx,
  ------------------
  |  |  428|   567k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  679|   567k|                    depth, libctx, propq)
  680|   567k|                <= 0) {
  681|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  682|       |                /* |skfield| may be partially allocated despite failure. */
  683|      0|                ASN1_item_free(skfield, ASN1_ITEM_ptr(tt->item));
  ------------------
  |  |  428|      0|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  684|      0|                goto err;
  685|      0|            }
  686|   567k|            len -= (long)(p - q);
  687|   567k|            if (!sk_ASN1_VALUE_push((STACK_OF(ASN1_VALUE) *)*val, skfield)) {
  ------------------
  |  |  897|   567k|#define sk_ASN1_VALUE_push(sk, ptr) OPENSSL_sk_push(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_type(ptr))
  ------------------
  |  Branch (687:17): [True: 0, False: 567k]
  ------------------
  688|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  689|      0|                ASN1_item_free(skfield, ASN1_ITEM_ptr(tt->item));
  ------------------
  |  |  428|      0|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  690|      0|                goto err;
  691|      0|            }
  692|   567k|        }
  693|   324k|        if (sk_eoc) {
  ------------------
  |  Branch (693:13): [True: 0, False: 324k]
  ------------------
  694|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_MISSING_EOC);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  695|      0|            goto err;
  696|      0|        }
  697|  1.77M|    } else if (flags & ASN1_TFLG_IMPTAG) {
  ------------------
  |  |  536|  1.77M|#define ASN1_TFLG_IMPTAG (0x1 << 3)
  ------------------
  |  Branch (697:16): [True: 63.9k, False: 1.71M]
  ------------------
  698|       |        /* IMPLICIT tagging */
  699|  63.9k|        ret = asn1_item_embed_d2i(val, &p, len,
  700|  63.9k|            ASN1_ITEM_ptr(tt->item), tt->tag, aclass, opt,
  ------------------
  |  |  428|  63.9k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  701|  63.9k|            ctx, depth, libctx, propq);
  702|  63.9k|        if (!ret) {
  ------------------
  |  Branch (702:13): [True: 0, False: 63.9k]
  ------------------
  703|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  704|      0|            goto err;
  705|  63.9k|        } else if (ret == -1)
  ------------------
  |  Branch (705:20): [True: 63.9k, False: 0]
  ------------------
  706|  63.9k|            return -1;
  707|  1.71M|    } else {
  708|       |        /* Nothing special */
  709|  1.71M|        ret = asn1_item_embed_d2i(val, &p, len, ASN1_ITEM_ptr(tt->item),
  ------------------
  |  |  428|  1.71M|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  710|  1.71M|            -1, 0, opt, ctx, depth, libctx, propq);
  711|  1.71M|        if (!ret) {
  ------------------
  |  Branch (711:13): [True: 0, False: 1.71M]
  ------------------
  712|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  713|      0|            goto err;
  714|  1.71M|        } else if (ret == -1)
  ------------------
  |  Branch (714:20): [True: 49.2k, False: 1.66M]
  ------------------
  715|  49.2k|            return -1;
  716|  1.71M|    }
  717|       |
  718|  1.98M|    *in = p;
  719|  1.98M|    return 1;
  720|       |
  721|      0|err:
  722|      0|    return 0;
  723|  2.10M|}
tasn_dec.c:asn1_d2i_ex_primitive:
  729|  1.45M|{
  730|  1.45M|    int ret = 0, utype;
  731|  1.45M|    long plen;
  732|  1.45M|    char cst, inf, free_cont = 0;
  733|  1.45M|    const unsigned char *p;
  734|  1.45M|    BUF_MEM buf = { 0, NULL, 0, 0 };
  735|  1.45M|    const unsigned char *cont = NULL;
  736|  1.45M|    long len;
  737|       |
  738|  1.45M|    if (pval == NULL) {
  ------------------
  |  Branch (738:9): [True: 0, False: 1.45M]
  ------------------
  739|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_NULL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  740|      0|        return 0; /* Should never happen */
  741|      0|    }
  742|       |
  743|  1.45M|    if (it->itype == ASN1_ITYPE_MSTRING) {
  ------------------
  |  |   87|  1.45M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (743:9): [True: 292k, False: 1.16M]
  ------------------
  744|   292k|        utype = tag;
  745|   292k|        tag = -1;
  746|   292k|    } else
  747|  1.16M|        utype = it->utype;
  748|       |
  749|  1.45M|    if (utype == V_ASN1_ANY) {
  ------------------
  |  |   60|  1.45M|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (749:9): [True: 142k, False: 1.31M]
  ------------------
  750|       |        /* If type is ANY need to figure out type from tag */
  751|   142k|        unsigned char oclass;
  752|   142k|        if (tag >= 0) {
  ------------------
  |  Branch (752:13): [True: 0, False: 142k]
  ------------------
  753|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_TAGGED_ANY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  754|      0|            return 0;
  755|      0|        }
  756|   142k|        if (opt) {
  ------------------
  |  Branch (756:13): [True: 0, False: 142k]
  ------------------
  757|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_OPTIONAL_ANY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  758|      0|            return 0;
  759|      0|        }
  760|   142k|        p = *in;
  761|   142k|        ret = asn1_check_tlen(NULL, &utype, &oclass, NULL, NULL,
  762|   142k|            &p, inlen, -1, 0, 0, ctx);
  763|   142k|        if (!ret) {
  ------------------
  |  Branch (763:13): [True: 0, False: 142k]
  ------------------
  764|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  765|      0|            return 0;
  766|      0|        }
  767|   142k|        if (oclass != V_ASN1_UNIVERSAL)
  ------------------
  |  |   49|   142k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  |  Branch (767:13): [True: 0, False: 142k]
  ------------------
  768|      0|            utype = V_ASN1_OTHER;
  ------------------
  |  |   59|      0|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  769|   142k|    }
  770|  1.45M|    if (tag == -1) {
  ------------------
  |  Branch (770:9): [True: 1.39M, False: 63.9k]
  ------------------
  771|  1.39M|        tag = utype;
  772|  1.39M|        aclass = V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|  1.39M|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  773|  1.39M|    }
  774|  1.45M|    p = *in;
  775|       |    /* Check header */
  776|  1.45M|    ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst,
  777|  1.45M|        &p, inlen, tag, aclass, opt, ctx);
  778|  1.45M|    if (!ret) {
  ------------------
  |  Branch (778:9): [True: 0, False: 1.45M]
  ------------------
  779|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  780|      0|        return 0;
  781|  1.45M|    } else if (ret == -1)
  ------------------
  |  Branch (781:16): [True: 113k, False: 1.34M]
  ------------------
  782|   113k|        return -1;
  783|  1.34M|    ret = 0;
  784|       |    /* SEQUENCE, SET and "OTHER" are left in encoded form */
  785|  1.34M|    if ((utype == V_ASN1_SEQUENCE)
  ------------------
  |  |   76|  1.34M|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (785:9): [True: 0, False: 1.34M]
  ------------------
  786|  1.34M|        || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER)) {
  ------------------
  |  |   77|  1.34M|#define V_ASN1_SET 17
  ------------------
                      || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER)) {
  ------------------
  |  |   59|  1.34M|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  |  Branch (786:12): [True: 0, False: 1.34M]
  |  Branch (786:37): [True: 0, False: 1.34M]
  ------------------
  787|       |        /*
  788|       |         * Clear context cache for type OTHER because the auto clear when we
  789|       |         * have a exact match won't work
  790|       |         */
  791|      0|        if (utype == V_ASN1_OTHER) {
  ------------------
  |  |   59|      0|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  |  Branch (791:13): [True: 0, False: 0]
  ------------------
  792|      0|            asn1_tlc_clear(ctx);
  ------------------
  |  |  115|      0|    do {                    \
  |  |  116|      0|        if ((c) != NULL)    \
  |  |  ------------------
  |  |  |  Branch (116:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  117|      0|            (c)->valid = 0; \
  |  |  118|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (118:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  793|      0|        }
  794|       |        /* SEQUENCE and SET must be constructed */
  795|      0|        else if (!cst) {
  ------------------
  |  Branch (795:18): [True: 0, False: 0]
  ------------------
  796|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_TYPE_NOT_CONSTRUCTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  797|      0|            return 0;
  798|      0|        }
  799|       |
  800|      0|        cont = *in;
  801|       |        /* If indefinite length constructed find the real end */
  802|      0|        if (inf) {
  ------------------
  |  Branch (802:13): [True: 0, False: 0]
  ------------------
  803|      0|            if (!asn1_find_end(&p, plen, inf))
  ------------------
  |  Branch (803:17): [True: 0, False: 0]
  ------------------
  804|      0|                goto err;
  805|      0|            len = (long)(p - cont);
  806|      0|        } else {
  807|      0|            len = (long)(p - cont) + plen;
  808|      0|            p += plen;
  809|      0|        }
  810|  1.34M|    } else if (cst) {
  ------------------
  |  Branch (810:16): [True: 0, False: 1.34M]
  ------------------
  811|      0|        if (utype == V_ASN1_NULL || utype == V_ASN1_BOOLEAN
  ------------------
  |  |   69|      0|#define V_ASN1_NULL 5
  ------------------
                      if (utype == V_ASN1_NULL || utype == V_ASN1_BOOLEAN
  ------------------
  |  |   65|      0|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (811:13): [True: 0, False: 0]
  |  Branch (811:37): [True: 0, False: 0]
  ------------------
  812|      0|            || utype == V_ASN1_OBJECT || utype == V_ASN1_INTEGER
  ------------------
  |  |   70|      0|#define V_ASN1_OBJECT 6
  ------------------
                          || utype == V_ASN1_OBJECT || utype == V_ASN1_INTEGER
  ------------------
  |  |   66|      0|#define V_ASN1_INTEGER 2
  ------------------
  |  Branch (812:16): [True: 0, False: 0]
  |  Branch (812:42): [True: 0, False: 0]
  ------------------
  813|      0|            || utype == V_ASN1_ENUMERATED) {
  ------------------
  |  |   74|      0|#define V_ASN1_ENUMERATED 10
  ------------------
  |  Branch (813:16): [True: 0, False: 0]
  ------------------
  814|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_TYPE_NOT_PRIMITIVE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  815|      0|            return 0;
  816|      0|        }
  817|       |
  818|       |        /* Free any returned 'buf' content */
  819|      0|        free_cont = 1;
  820|       |        /*
  821|       |         * Should really check the internal tags are correct but some things
  822|       |         * may get this wrong. The relevant specs say that constructed string
  823|       |         * types should be OCTET STRINGs internally irrespective of the type.
  824|       |         * So instead just check for UNIVERSAL class and ignore the tag.
  825|       |         */
  826|      0|        if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) {
  ------------------
  |  |   49|      0|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  |  Branch (826:13): [True: 0, False: 0]
  ------------------
  827|      0|            goto err;
  828|      0|        }
  829|      0|        len = (long)buf.length;
  830|       |        /* Append a final null to string */
  831|      0|        if (!BUF_MEM_grow_clean(&buf, len + 1)) {
  ------------------
  |  Branch (831:13): [True: 0, False: 0]
  ------------------
  832|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_BUF_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  833|      0|            goto err;
  834|      0|        }
  835|      0|        buf.data[len] = 0;
  836|      0|        cont = (const unsigned char *)buf.data;
  837|  1.34M|    } else {
  838|  1.34M|        cont = p;
  839|  1.34M|        len = plen;
  840|  1.34M|        p += plen;
  841|  1.34M|    }
  842|       |
  843|       |    /* We now have content length and type: translate into a structure */
  844|       |    /* asn1_ex_c2i may reuse allocated buffer, and so sets free_cont to 0 */
  845|  1.34M|    if (!asn1_ex_c2i(pval, cont, len, utype, &free_cont, it))
  ------------------
  |  Branch (845:9): [True: 0, False: 1.34M]
  ------------------
  846|      0|        goto err;
  847|       |
  848|  1.34M|    *in = p;
  849|  1.34M|    ret = 1;
  850|  1.34M|err:
  851|  1.34M|    if (free_cont)
  ------------------
  |  Branch (851:9): [True: 0, False: 1.34M]
  ------------------
  852|      0|        OPENSSL_free(buf.data);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  853|  1.34M|    return ret;
  854|  1.34M|}
tasn_dec.c:asn1_ex_c2i:
  860|  1.34M|{
  861|  1.34M|    ASN1_VALUE **opval = NULL;
  862|  1.34M|    ASN1_STRING *stmp;
  863|  1.34M|    ASN1_TYPE *typ = NULL;
  864|  1.34M|    int ret = 0;
  865|  1.34M|    const ASN1_PRIMITIVE_FUNCS *pf;
  866|  1.34M|    ASN1_INTEGER **tint;
  867|  1.34M|    pf = it->funcs;
  868|       |
  869|  1.34M|    if (pf && pf->prim_c2i)
  ------------------
  |  Branch (869:9): [True: 46.4k, False: 1.29M]
  |  Branch (869:15): [True: 46.4k, False: 0]
  ------------------
  870|  46.4k|        return pf->prim_c2i(pval, cont, len, utype, free_cont, it);
  871|       |    /* If ANY type clear type and set pointer to internal value */
  872|  1.29M|    if (it->utype == V_ASN1_ANY) {
  ------------------
  |  |   60|  1.29M|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (872:9): [True: 142k, False: 1.15M]
  ------------------
  873|   142k|        if (*pval == NULL) {
  ------------------
  |  Branch (873:13): [True: 142k, False: 0]
  ------------------
  874|   142k|            typ = ASN1_TYPE_new();
  875|   142k|            if (typ == NULL)
  ------------------
  |  Branch (875:17): [True: 0, False: 142k]
  ------------------
  876|      0|                goto err;
  877|   142k|            *pval = (ASN1_VALUE *)typ;
  878|   142k|        } else
  879|      0|            typ = (ASN1_TYPE *)*pval;
  880|       |
  881|   142k|        if (utype != typ->type)
  ------------------
  |  Branch (881:13): [True: 142k, False: 0]
  ------------------
  882|   142k|            ASN1_TYPE_set(typ, utype, NULL);
  883|   142k|        opval = pval;
  884|   142k|        pval = &typ->value.asn1_value;
  885|   142k|    }
  886|  1.29M|    switch (utype) {
  887|   524k|    case V_ASN1_OBJECT:
  ------------------
  |  |   70|   524k|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (887:5): [True: 524k, False: 771k]
  ------------------
  888|   524k|        if (!ossl_c2i_ASN1_OBJECT((ASN1_OBJECT **)pval, &cont, len))
  ------------------
  |  Branch (888:13): [True: 0, False: 524k]
  ------------------
  889|      0|            goto err;
  890|   524k|        break;
  891|       |
  892|   524k|    case V_ASN1_NULL:
  ------------------
  |  |   69|   116k|#define V_ASN1_NULL 5
  ------------------
  |  Branch (892:5): [True: 116k, False: 1.18M]
  ------------------
  893|   116k|        if (len) {
  ------------------
  |  Branch (893:13): [True: 0, False: 116k]
  ------------------
  894|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_NULL_IS_WRONG_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  895|      0|            goto err;
  896|      0|        }
  897|   116k|        *pval = (ASN1_VALUE *)1;
  898|   116k|        break;
  899|       |
  900|  60.8k|    case V_ASN1_BOOLEAN:
  ------------------
  |  |   65|  60.8k|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (900:5): [True: 60.8k, False: 1.23M]
  ------------------
  901|  60.8k|        if (len != 1) {
  ------------------
  |  Branch (901:13): [True: 0, False: 60.8k]
  ------------------
  902|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BOOLEAN_IS_WRONG_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  903|      0|            goto err;
  904|  60.8k|        } else {
  905|  60.8k|            ASN1_BOOLEAN *tbool;
  906|  60.8k|            tbool = (ASN1_BOOLEAN *)pval;
  907|  60.8k|            *tbool = *cont;
  908|  60.8k|        }
  909|  60.8k|        break;
  910|       |
  911|   127k|    case V_ASN1_BIT_STRING:
  ------------------
  |  |   67|   127k|#define V_ASN1_BIT_STRING 3
  ------------------
  |  Branch (911:5): [True: 127k, False: 1.16M]
  ------------------
  912|   127k|        if (!ossl_c2i_ASN1_BIT_STRING((ASN1_BIT_STRING **)pval, &cont, len))
  ------------------
  |  Branch (912:13): [True: 0, False: 127k]
  ------------------
  913|      0|            goto err;
  914|   127k|        break;
  915|       |
  916|   127k|    case V_ASN1_INTEGER:
  ------------------
  |  |   66|  63.9k|#define V_ASN1_INTEGER 2
  ------------------
  |  Branch (916:5): [True: 63.9k, False: 1.23M]
  ------------------
  917|  63.9k|    case V_ASN1_ENUMERATED:
  ------------------
  |  |   74|  63.9k|#define V_ASN1_ENUMERATED 10
  ------------------
  |  Branch (917:5): [True: 0, False: 1.29M]
  ------------------
  918|  63.9k|        tint = (ASN1_INTEGER **)pval;
  919|  63.9k|        if (!ossl_c2i_ASN1_INTEGER(tint, &cont, len))
  ------------------
  |  Branch (919:13): [True: 0, False: 63.9k]
  ------------------
  920|      0|            goto err;
  921|       |        /* Fixup type to match the expected form */
  922|  63.9k|        (*tint)->type = utype | ((*tint)->type & V_ASN1_NEG);
  ------------------
  |  |   99|  63.9k|#define V_ASN1_NEG 0x100
  ------------------
  923|  63.9k|        break;
  924|       |
  925|   110k|    case V_ASN1_OCTET_STRING:
  ------------------
  |  |   68|   110k|#define V_ASN1_OCTET_STRING 4
  ------------------
  |  Branch (925:5): [True: 110k, False: 1.18M]
  ------------------
  926|   110k|    case V_ASN1_NUMERICSTRING:
  ------------------
  |  |   78|   110k|#define V_ASN1_NUMERICSTRING 18
  ------------------
  |  Branch (926:5): [True: 0, False: 1.29M]
  ------------------
  927|   280k|    case V_ASN1_PRINTABLESTRING:
  ------------------
  |  |   79|   280k|#define V_ASN1_PRINTABLESTRING 19
  ------------------
  |  Branch (927:5): [True: 169k, False: 1.12M]
  ------------------
  928|   280k|    case V_ASN1_T61STRING:
  ------------------
  |  |   80|   280k|#define V_ASN1_T61STRING 20
  ------------------
  |  Branch (928:5): [True: 438, False: 1.29M]
  ------------------
  929|   280k|    case V_ASN1_VIDEOTEXSTRING:
  ------------------
  |  |   82|   280k|#define V_ASN1_VIDEOTEXSTRING 21
  ------------------
  |  Branch (929:5): [True: 0, False: 1.29M]
  ------------------
  930|   280k|    case V_ASN1_IA5STRING:
  ------------------
  |  |   83|   280k|#define V_ASN1_IA5STRING 22
  ------------------
  |  Branch (930:5): [True: 438, False: 1.29M]
  ------------------
  931|   344k|    case V_ASN1_UTCTIME:
  ------------------
  |  |   84|   344k|#define V_ASN1_UTCTIME 23
  ------------------
  |  Branch (931:5): [True: 63.5k, False: 1.23M]
  ------------------
  932|   344k|    case V_ASN1_GENERALIZEDTIME:
  ------------------
  |  |   85|   344k|#define V_ASN1_GENERALIZEDTIME 24
  ------------------
  |  Branch (932:5): [True: 438, False: 1.29M]
  ------------------
  933|   344k|    case V_ASN1_GRAPHICSTRING:
  ------------------
  |  |   86|   344k|#define V_ASN1_GRAPHICSTRING 25
  ------------------
  |  Branch (933:5): [True: 0, False: 1.29M]
  ------------------
  934|   344k|    case V_ASN1_VISIBLESTRING:
  ------------------
  |  |   88|   344k|#define V_ASN1_VISIBLESTRING 26 /* alias */
  ------------------
  |  Branch (934:5): [True: 0, False: 1.29M]
  ------------------
  935|   344k|    case V_ASN1_GENERALSTRING:
  ------------------
  |  |   89|   344k|#define V_ASN1_GENERALSTRING 27
  ------------------
  |  Branch (935:5): [True: 0, False: 1.29M]
  ------------------
  936|   344k|    case V_ASN1_UNIVERSALSTRING:
  ------------------
  |  |   90|   344k|#define V_ASN1_UNIVERSALSTRING 28
  ------------------
  |  Branch (936:5): [True: 0, False: 1.29M]
  ------------------
  937|   344k|    case V_ASN1_BMPSTRING:
  ------------------
  |  |   91|   344k|#define V_ASN1_BMPSTRING 30
  ------------------
  |  Branch (937:5): [True: 0, False: 1.29M]
  ------------------
  938|   402k|    case V_ASN1_UTF8STRING:
  ------------------
  |  |   75|   402k|#define V_ASN1_UTF8STRING 12
  ------------------
  |  Branch (938:5): [True: 57.8k, False: 1.23M]
  ------------------
  939|   402k|    case V_ASN1_OTHER:
  ------------------
  |  |   59|   402k|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  |  Branch (939:5): [True: 0, False: 1.29M]
  ------------------
  940|   402k|    case V_ASN1_SET:
  ------------------
  |  |   77|   402k|#define V_ASN1_SET 17
  ------------------
  |  Branch (940:5): [True: 0, False: 1.29M]
  ------------------
  941|   402k|    case V_ASN1_SEQUENCE:
  ------------------
  |  |   76|   402k|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (941:5): [True: 0, False: 1.29M]
  ------------------
  942|   402k|    default:
  ------------------
  |  Branch (942:5): [True: 0, False: 1.29M]
  ------------------
  943|   402k|        if (utype == V_ASN1_BMPSTRING && (len & 1)) {
  ------------------
  |  |   91|   805k|#define V_ASN1_BMPSTRING 30
  ------------------
  |  Branch (943:13): [True: 0, False: 402k]
  |  Branch (943:42): [True: 0, False: 0]
  ------------------
  944|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BMPSTRING_IS_WRONG_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  945|      0|            goto err;
  946|      0|        }
  947|   402k|        if (utype == V_ASN1_UNIVERSALSTRING && (len & 3)) {
  ------------------
  |  |   90|   805k|#define V_ASN1_UNIVERSALSTRING 28
  ------------------
  |  Branch (947:13): [True: 0, False: 402k]
  |  Branch (947:48): [True: 0, False: 0]
  ------------------
  948|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  949|      0|            goto err;
  950|      0|        }
  951|   402k|        if (utype == V_ASN1_GENERALIZEDTIME && (len < 15)) {
  ------------------
  |  |   85|   805k|#define V_ASN1_GENERALIZEDTIME 24
  ------------------
  |  Branch (951:13): [True: 438, False: 402k]
  |  Branch (951:48): [True: 0, False: 438]
  ------------------
  952|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_GENERALIZEDTIME_IS_TOO_SHORT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  953|      0|            goto err;
  954|      0|        }
  955|   402k|        if (utype == V_ASN1_UTCTIME && (len < 13)) {
  ------------------
  |  |   84|   805k|#define V_ASN1_UTCTIME 23
  ------------------
  |  Branch (955:13): [True: 63.5k, False: 339k]
  |  Branch (955:40): [True: 0, False: 63.5k]
  ------------------
  956|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_UTCTIME_IS_TOO_SHORT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  957|      0|            goto err;
  958|      0|        }
  959|       |        /* All based on ASN1_STRING and handled the same */
  960|   402k|        if (*pval == NULL) {
  ------------------
  |  Branch (960:13): [True: 0, False: 402k]
  ------------------
  961|      0|            stmp = ASN1_STRING_type_new(utype);
  962|      0|            if (stmp == NULL) {
  ------------------
  |  Branch (962:17): [True: 0, False: 0]
  ------------------
  963|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  964|      0|                goto err;
  965|      0|            }
  966|      0|            *pval = (ASN1_VALUE *)stmp;
  967|   402k|        } else {
  968|   402k|            stmp = (ASN1_STRING *)*pval;
  969|   402k|            stmp->type = utype;
  970|   402k|        }
  971|       |        /* If we've already allocated a buffer use it */
  972|   402k|        if (*free_cont) {
  ------------------
  |  Branch (972:13): [True: 0, False: 402k]
  ------------------
  973|      0|            ASN1_STRING_set0(stmp, (unsigned char *)cont /* UGLY CAST! */, len);
  974|      0|            *free_cont = 0;
  975|   402k|        } else {
  976|   402k|            if (!ASN1_STRING_set(stmp, cont, len)) {
  ------------------
  |  Branch (976:17): [True: 0, False: 402k]
  ------------------
  977|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  978|      0|                ASN1_STRING_free(stmp);
  979|      0|                *pval = NULL;
  980|      0|                goto err;
  981|      0|            }
  982|   402k|        }
  983|   402k|        break;
  984|  1.29M|    }
  985|       |    /* If ASN1_ANY and NULL type fix up value */
  986|  1.29M|    if (typ && (utype == V_ASN1_NULL))
  ------------------
  |  |   69|   142k|#define V_ASN1_NULL 5
  ------------------
  |  Branch (986:9): [True: 142k, False: 1.15M]
  |  Branch (986:16): [True: 116k, False: 26.2k]
  ------------------
  987|   116k|        typ->value.ptr = NULL;
  988|       |
  989|  1.29M|    ret = 1;
  990|  1.29M|err:
  991|  1.29M|    if (!ret) {
  ------------------
  |  Branch (991:9): [True: 0, False: 1.29M]
  ------------------
  992|      0|        ASN1_TYPE_free(typ);
  993|      0|        if (opval)
  ------------------
  |  Branch (993:13): [True: 0, False: 0]
  ------------------
  994|      0|            *opval = NULL;
  995|      0|    }
  996|  1.29M|    return ret;
  997|  1.29M|}
tasn_dec.c:asn1_check_eoc:
 1153|  2.37M|{
 1154|  2.37M|    const unsigned char *p;
 1155|       |
 1156|  2.37M|    if (len < 2)
  ------------------
  |  Branch (1156:9): [True: 0, False: 2.37M]
  ------------------
 1157|      0|        return 0;
 1158|  2.37M|    p = *in;
 1159|  2.37M|    if (p[0] == '\0' && p[1] == '\0') {
  ------------------
  |  Branch (1159:9): [True: 0, False: 2.37M]
  |  Branch (1159:25): [True: 0, False: 0]
  ------------------
 1160|      0|        *in += 2;
 1161|      0|        return 1;
 1162|      0|    }
 1163|  2.37M|    return 0;
 1164|  2.37M|}
tasn_dec.c:asn1_check_tlen:
 1177|  2.99M|{
 1178|  2.99M|    int i;
 1179|  2.99M|    int ptag, pclass;
 1180|  2.99M|    long plen;
 1181|  2.99M|    const unsigned char *p, *q;
 1182|  2.99M|    p = *in;
 1183|  2.99M|    q = p;
 1184|       |
 1185|  2.99M|    if (len <= 0) {
  ------------------
  |  Branch (1185:9): [True: 0, False: 2.99M]
  ------------------
 1186|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1187|      0|        goto err;
 1188|      0|    }
 1189|  2.99M|    if (ctx != NULL && ctx->valid) {
  ------------------
  |  Branch (1189:9): [True: 2.99M, False: 0]
  |  Branch (1189:24): [True: 548k, False: 2.44M]
  ------------------
 1190|   548k|        i = ctx->ret;
 1191|   548k|        plen = ctx->plen;
 1192|   548k|        pclass = ctx->pclass;
 1193|   548k|        ptag = ctx->ptag;
 1194|   548k|        p += ctx->hdrlen;
 1195|  2.44M|    } else {
 1196|  2.44M|        i = ASN1_get_object(&p, &plen, &ptag, &pclass, len);
 1197|  2.44M|        if (ctx != NULL) {
  ------------------
  |  Branch (1197:13): [True: 2.44M, False: 0]
  ------------------
 1198|  2.44M|            ctx->ret = i;
 1199|  2.44M|            ctx->plen = plen;
 1200|  2.44M|            ctx->pclass = pclass;
 1201|  2.44M|            ctx->ptag = ptag;
 1202|  2.44M|            ctx->hdrlen = (int)(p - q);
 1203|  2.44M|            ctx->valid = 1;
 1204|       |            /*
 1205|       |             * If definite length, and no error, length + header can't exceed
 1206|       |             * total amount of data available.
 1207|       |             */
 1208|  2.44M|            if ((i & 0x81) == 0 && (plen + ctx->hdrlen) > len) {
  ------------------
  |  Branch (1208:17): [True: 2.44M, False: 0]
  |  Branch (1208:36): [True: 0, False: 2.44M]
  ------------------
 1209|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1210|      0|                goto err;
 1211|      0|            }
 1212|  2.44M|        }
 1213|  2.44M|    }
 1214|       |
 1215|  2.99M|    if ((i & 0x80) != 0) {
  ------------------
  |  Branch (1215:9): [True: 0, False: 2.99M]
  ------------------
 1216|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_OBJECT_HEADER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1217|      0|        goto err;
 1218|      0|    }
 1219|  2.99M|    if (exptag >= 0) {
  ------------------
  |  Branch (1219:9): [True: 2.55M, False: 434k]
  ------------------
 1220|  2.55M|        if (exptag != ptag || expclass != pclass) {
  ------------------
  |  Branch (1220:13): [True: 113k, False: 2.44M]
  |  Branch (1220:31): [True: 0, False: 2.44M]
  ------------------
 1221|       |            /*
 1222|       |             * If type is OPTIONAL, not an error: indicate missing type.
 1223|       |             */
 1224|   113k|            if (opt != 0)
  ------------------
  |  Branch (1224:17): [True: 113k, False: 0]
  ------------------
 1225|   113k|                return -1;
 1226|   113k|            ERR_raise(ERR_LIB_ASN1, ASN1_R_WRONG_TAG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1227|      0|            goto err;
 1228|   113k|        }
 1229|       |        /*
 1230|       |         * We have a tag and class match: assume we are going to do something
 1231|       |         * with it
 1232|       |         */
 1233|  2.44M|        asn1_tlc_clear(ctx);
  ------------------
  |  |  115|  2.44M|    do {                    \
  |  |  116|  2.44M|        if ((c) != NULL)    \
  |  |  ------------------
  |  |  |  Branch (116:13): [True: 2.44M, False: 0]
  |  |  ------------------
  |  |  117|  2.44M|            (c)->valid = 0; \
  |  |  118|  2.44M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (118:14): [Folded, False: 2.44M]
  |  |  ------------------
  ------------------
 1234|  2.44M|    }
 1235|       |
 1236|  2.88M|    if ((i & 1) != 0)
  ------------------
  |  Branch (1236:9): [True: 0, False: 2.88M]
  ------------------
 1237|      0|        plen = len - (long)(p - q);
 1238|       |
 1239|  2.88M|    if (inf != NULL)
  ------------------
  |  Branch (1239:9): [True: 2.44M, False: 434k]
  ------------------
 1240|  2.44M|        *inf = i & 1;
 1241|       |
 1242|  2.88M|    if (cst != NULL)
  ------------------
  |  Branch (1242:9): [True: 2.12M, False: 759k]
  ------------------
 1243|  2.12M|        *cst = i & V_ASN1_CONSTRUCTED;
  ------------------
  |  |   54|  2.12M|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
 1244|       |
 1245|  2.88M|    if (olen != NULL)
  ------------------
  |  Branch (1245:9): [True: 2.44M, False: 434k]
  ------------------
 1246|  2.44M|        *olen = plen;
 1247|       |
 1248|  2.88M|    if (oclass != NULL)
  ------------------
  |  Branch (1248:9): [True: 434k, False: 2.44M]
  ------------------
 1249|   434k|        *oclass = pclass;
 1250|       |
 1251|  2.88M|    if (otag != NULL)
  ------------------
  |  Branch (1251:9): [True: 434k, False: 2.44M]
  ------------------
 1252|   434k|        *otag = ptag;
 1253|       |
 1254|  2.88M|    *in = p;
 1255|  2.88M|    return 1;
 1256|       |
 1257|      0|err:
 1258|       |    asn1_tlc_clear(ctx);
  ------------------
  |  |  115|      0|    do {                    \
  |  |  116|      0|        if ((c) != NULL)    \
  |  |  ------------------
  |  |  |  Branch (116:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  117|      0|            (c)->valid = 0; \
  |  |  118|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (118:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1259|      0|    return 0;
 1260|  2.99M|}

ASN1_item_ex_i2d:
   83|  2.97M|{
   84|  2.97M|    const ASN1_TEMPLATE *tt = NULL;
   85|  2.97M|    int i, seqcontlen, seqlen, ndef = 1;
   86|  2.97M|    const ASN1_EXTERN_FUNCS *ef;
   87|  2.97M|    const ASN1_AUX *aux = it->funcs;
   88|  2.97M|    ASN1_aux_const_cb *asn1_cb = NULL;
   89|       |
   90|  2.97M|    if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL)
  ------------------
  |  |   82|  2.97M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (90:9): [True: 1.60M, False: 1.37M]
  |  Branch (90:48): [True: 0, False: 1.60M]
  ------------------
   91|      0|        return 0;
   92|       |
   93|  2.97M|    if (aux != NULL) {
  ------------------
  |  Branch (93:9): [True: 0, False: 2.97M]
  ------------------
   94|      0|        asn1_cb = ((aux->flags & ASN1_AFLG_CONST_CB) != 0) ? aux->asn1_const_cb
  ------------------
  |  |  727|      0|#define ASN1_AFLG_CONST_CB 8
  ------------------
  |  Branch (94:19): [True: 0, False: 0]
  ------------------
   95|      0|                                                           : (ASN1_aux_const_cb *)aux->asn1_cb; /* backward compatibility */
   96|      0|    }
   97|       |
   98|  2.97M|    switch (it->itype) {
   99|       |
  100|  1.37M|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|  1.37M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (100:5): [True: 1.37M, False: 1.60M]
  ------------------
  101|  1.37M|        if (it->templates)
  ------------------
  |  Branch (101:13): [True: 457k, False: 914k]
  ------------------
  102|   457k|            return asn1_template_ex_i2d(pval, out, it->templates,
  103|   457k|                tag, aclass);
  104|   914k|        return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
  105|       |
  106|   914k|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|   914k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (106:5): [True: 914k, False: 2.05M]
  ------------------
  107|       |        /*
  108|       |         * It never makes sense for multi-strings to have implicit tagging, so
  109|       |         * if tag != -1, then this looks like an error in the template.
  110|       |         */
  111|   914k|        if (tag != -1) {
  ------------------
  |  Branch (111:13): [True: 0, False: 914k]
  ------------------
  112|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_TEMPLATE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  113|      0|            return -1;
  114|      0|        }
  115|   914k|        return asn1_i2d_ex_primitive(pval, out, it, -1, aclass);
  116|       |
  117|      0|    case ASN1_ITYPE_CHOICE:
  ------------------
  |  |   84|      0|#define ASN1_ITYPE_CHOICE 0x2
  ------------------
  |  Branch (117:5): [True: 0, False: 2.97M]
  ------------------
  118|       |        /*
  119|       |         * It never makes sense for CHOICE types to have implicit tagging, so
  120|       |         * if tag != -1, then this looks like an error in the template.
  121|       |         */
  122|      0|        if (tag != -1) {
  ------------------
  |  Branch (122:13): [True: 0, False: 0]
  ------------------
  123|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_TEMPLATE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  124|      0|            return -1;
  125|      0|        }
  126|      0|        if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
  ------------------
  |  |  737|      0|#define ASN1_OP_I2D_PRE 6
  ------------------
  |  Branch (126:13): [True: 0, False: 0]
  |  Branch (126:24): [True: 0, False: 0]
  ------------------
  127|      0|            return 0;
  128|      0|        i = ossl_asn1_get_choice_selector_const(pval, it);
  129|      0|        if ((i >= 0) && (i < it->tcount)) {
  ------------------
  |  Branch (129:13): [True: 0, False: 0]
  |  Branch (129:25): [True: 0, False: 0]
  ------------------
  130|      0|            const ASN1_VALUE **pchval;
  131|      0|            const ASN1_TEMPLATE *chtt;
  132|      0|            chtt = it->templates + i;
  133|      0|            pchval = ossl_asn1_get_const_field_ptr(pval, chtt);
  134|      0|            return asn1_template_ex_i2d(pchval, out, chtt, -1, aclass);
  135|      0|        }
  136|       |        /* Fixme: error condition if selector out of range */
  137|      0|        if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
  ------------------
  |  |  738|      0|#define ASN1_OP_I2D_POST 7
  ------------------
  |  Branch (137:13): [True: 0, False: 0]
  |  Branch (137:24): [True: 0, False: 0]
  ------------------
  138|      0|            return 0;
  139|      0|        break;
  140|       |
  141|      0|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|      0|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (141:5): [True: 0, False: 2.97M]
  ------------------
  142|       |        /* If new style i2d it does all the work */
  143|      0|        ef = it->funcs;
  144|      0|        return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
  145|       |
  146|      0|    case ASN1_ITYPE_NDEF_SEQUENCE:
  ------------------
  |  |   88|      0|#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
  ------------------
  |  Branch (146:5): [True: 0, False: 2.97M]
  ------------------
  147|       |        /* Use indefinite length constructed if requested */
  148|      0|        if (aclass & ASN1_TFLG_NDEF)
  ------------------
  |  |  583|      0|#define ASN1_TFLG_NDEF (0x1 << 11)
  ------------------
  |  Branch (148:13): [True: 0, False: 0]
  ------------------
  149|      0|            ndef = 2;
  150|       |        /* fall through */
  151|       |
  152|   685k|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|   685k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (152:5): [True: 685k, False: 2.28M]
  ------------------
  153|   685k|        i = ossl_asn1_enc_restore(&seqcontlen, out, pval, it);
  154|       |        /* An error occurred */
  155|   685k|        if (i < 0)
  ------------------
  |  Branch (155:13): [True: 0, False: 685k]
  ------------------
  156|      0|            return 0;
  157|       |        /* We have a valid cached encoding... */
  158|   685k|        if (i > 0)
  ------------------
  |  Branch (158:13): [True: 0, False: 685k]
  ------------------
  159|      0|            return seqcontlen;
  160|       |        /* Otherwise carry on */
  161|   685k|        seqcontlen = 0;
  162|       |        /* If no IMPLICIT tagging set to SEQUENCE, UNIVERSAL */
  163|   685k|        if (tag == -1) {
  ------------------
  |  Branch (163:13): [True: 685k, False: 0]
  ------------------
  164|   685k|            tag = V_ASN1_SEQUENCE;
  ------------------
  |  |   76|   685k|#define V_ASN1_SEQUENCE 16
  ------------------
  165|       |            /* Retain any other flags in aclass */
  166|   685k|            aclass = (aclass & ~ASN1_TFLG_TAG_CLASS)
  ------------------
  |  |  564|   685k|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  167|   685k|                | V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|   685k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  168|   685k|        }
  169|   685k|        if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
  ------------------
  |  |  737|      0|#define ASN1_OP_I2D_PRE 6
  ------------------
  |  Branch (169:13): [True: 0, False: 685k]
  |  Branch (169:24): [True: 0, False: 0]
  ------------------
  170|      0|            return 0;
  171|       |        /* First work out sequence content length */
  172|  2.05M|        for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) {
  ------------------
  |  Branch (172:41): [True: 1.37M, False: 685k]
  ------------------
  173|  1.37M|            const ASN1_TEMPLATE *seqtt;
  174|  1.37M|            const ASN1_VALUE **pseqval;
  175|  1.37M|            int tmplen;
  176|  1.37M|            seqtt = ossl_asn1_do_adb(*pval, tt, 1);
  177|  1.37M|            if (!seqtt)
  ------------------
  |  Branch (177:17): [True: 0, False: 1.37M]
  ------------------
  178|      0|                return 0;
  179|  1.37M|            pseqval = ossl_asn1_get_const_field_ptr(pval, seqtt);
  180|  1.37M|            tmplen = asn1_template_ex_i2d(pseqval, NULL, seqtt, -1, aclass);
  181|  1.37M|            if (tmplen == -1 || (tmplen > INT_MAX - seqcontlen))
  ------------------
  |  Branch (181:17): [True: 0, False: 1.37M]
  |  Branch (181:33): [True: 0, False: 1.37M]
  ------------------
  182|      0|                return -1;
  183|  1.37M|            seqcontlen += tmplen;
  184|  1.37M|        }
  185|       |
  186|   685k|        seqlen = ASN1_object_size(ndef, seqcontlen, tag);
  187|   685k|        if (!out || seqlen == -1)
  ------------------
  |  Branch (187:13): [True: 457k, False: 228k]
  |  Branch (187:21): [True: 0, False: 228k]
  ------------------
  188|   457k|            return seqlen;
  189|       |        /* Output SEQUENCE header */
  190|   228k|        ASN1_put_object(out, ndef, seqcontlen, tag, aclass);
  191|   685k|        for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) {
  ------------------
  |  Branch (191:41): [True: 457k, False: 228k]
  ------------------
  192|   457k|            const ASN1_TEMPLATE *seqtt;
  193|   457k|            const ASN1_VALUE **pseqval;
  194|   457k|            seqtt = ossl_asn1_do_adb(*pval, tt, 1);
  195|   457k|            if (!seqtt)
  ------------------
  |  Branch (195:17): [True: 0, False: 457k]
  ------------------
  196|      0|                return 0;
  197|   457k|            pseqval = ossl_asn1_get_const_field_ptr(pval, seqtt);
  198|       |            /* FIXME: check for errors in enhanced version */
  199|   457k|            asn1_template_ex_i2d(pseqval, out, seqtt, -1, aclass);
  200|   457k|        }
  201|   228k|        if (ndef == 2)
  ------------------
  |  Branch (201:13): [True: 0, False: 228k]
  ------------------
  202|      0|            ASN1_put_eoc(out);
  203|   228k|        if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
  ------------------
  |  |  738|      0|#define ASN1_OP_I2D_POST 7
  ------------------
  |  Branch (203:13): [True: 0, False: 228k]
  |  Branch (203:24): [True: 0, False: 0]
  ------------------
  204|      0|            return 0;
  205|   228k|        return seqlen;
  206|       |
  207|      0|    default:
  ------------------
  |  Branch (207:5): [True: 0, False: 2.97M]
  ------------------
  208|      0|        return 0;
  209|  2.97M|    }
  210|      0|    return 0;
  211|  2.97M|}
tasn_enc.c:asn1_template_ex_i2d:
  215|  2.28M|{
  216|  2.28M|    const int flags = tt->flags;
  217|  2.28M|    int i, ret, ttag, tclass, ndef, len;
  218|  2.28M|    const ASN1_VALUE *tval;
  219|       |
  220|       |    /*
  221|       |     * If field is embedded then val needs fixing so it is a pointer to
  222|       |     * a pointer to a field.
  223|       |     */
  224|  2.28M|    if (flags & ASN1_TFLG_EMBED) {
  ------------------
  |  |  586|  2.28M|#define ASN1_TFLG_EMBED (0x1 << 12)
  ------------------
  |  Branch (224:9): [True: 0, False: 2.28M]
  ------------------
  225|      0|        tval = (ASN1_VALUE *)pval;
  226|      0|        pval = &tval;
  227|      0|    }
  228|       |    /*
  229|       |     * Work out tag and class to use: tagging may come either from the
  230|       |     * template or the arguments, not both because this would create
  231|       |     * ambiguity. Additionally the iclass argument may contain some
  232|       |     * additional flags which should be noted and passed down to other
  233|       |     * levels.
  234|       |     */
  235|  2.28M|    if (flags & ASN1_TFLG_TAG_MASK) {
  ------------------
  |  |  541|  2.28M|#define ASN1_TFLG_TAG_MASK (0x3 << 3)
  ------------------
  |  Branch (235:9): [True: 0, False: 2.28M]
  ------------------
  236|       |        /* Error if argument and template tagging */
  237|      0|        if (tag != -1)
  ------------------
  |  Branch (237:13): [True: 0, False: 0]
  ------------------
  238|       |            /* FIXME: error code here */
  239|      0|            return -1;
  240|       |        /* Get tagging from template */
  241|      0|        ttag = tt->tag;
  242|      0|        tclass = flags & ASN1_TFLG_TAG_CLASS;
  ------------------
  |  |  564|      0|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  243|  2.28M|    } else if (tag != -1) {
  ------------------
  |  Branch (243:16): [True: 0, False: 2.28M]
  ------------------
  244|       |        /* No template tagging, get from arguments */
  245|      0|        ttag = tag;
  246|      0|        tclass = iclass & ASN1_TFLG_TAG_CLASS;
  ------------------
  |  |  564|      0|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  247|  2.28M|    } else {
  248|  2.28M|        ttag = -1;
  249|  2.28M|        tclass = 0;
  250|  2.28M|    }
  251|       |    /*
  252|       |     * Remove any class mask from iflag.
  253|       |     */
  254|  2.28M|    iclass &= ~ASN1_TFLG_TAG_CLASS;
  ------------------
  |  |  564|  2.28M|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  255|       |
  256|       |    /*
  257|       |     * At this point 'ttag' contains the outer tag to use, 'tclass' is the
  258|       |     * class and iclass is any flags passed to this function.
  259|       |     */
  260|       |
  261|       |    /* if template and arguments require ndef, use it */
  262|  2.28M|    if ((flags & ASN1_TFLG_NDEF) && (iclass & ASN1_TFLG_NDEF))
  ------------------
  |  |  583|  2.28M|#define ASN1_TFLG_NDEF (0x1 << 11)
  ------------------
                  if ((flags & ASN1_TFLG_NDEF) && (iclass & ASN1_TFLG_NDEF))
  ------------------
  |  |  583|      0|#define ASN1_TFLG_NDEF (0x1 << 11)
  ------------------
  |  Branch (262:9): [True: 0, False: 2.28M]
  |  Branch (262:37): [True: 0, False: 0]
  ------------------
  263|      0|        ndef = 2;
  264|  2.28M|    else
  265|  2.28M|        ndef = 1;
  266|       |
  267|  2.28M|    if (flags & ASN1_TFLG_SK_MASK) {
  ------------------
  |  |  528|  2.28M|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (267:9): [True: 457k, False: 1.82M]
  ------------------
  268|       |        /* SET OF, SEQUENCE OF */
  269|   457k|        STACK_OF(const_ASN1_VALUE) *sk = (STACK_OF(const_ASN1_VALUE) *)*pval;
  ------------------
  |  |   33|   457k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  270|   457k|        int isset, sktag, skaclass;
  271|   457k|        int skcontlen, sklen;
  272|   457k|        const ASN1_VALUE *skitem;
  273|       |
  274|   457k|        if (*pval == NULL)
  ------------------
  |  Branch (274:13): [True: 0, False: 457k]
  ------------------
  275|      0|            return 0;
  276|       |
  277|   457k|        if (flags & ASN1_TFLG_SET_OF) {
  ------------------
  |  |  515|   457k|#define ASN1_TFLG_SET_OF (0x1 << 1)
  ------------------
  |  Branch (277:13): [True: 457k, False: 0]
  ------------------
  278|   457k|            isset = 1;
  279|       |            /* 2 means we reorder */
  280|   457k|            if (flags & ASN1_TFLG_SEQUENCE_OF)
  ------------------
  |  |  518|   457k|#define ASN1_TFLG_SEQUENCE_OF (0x2 << 1)
  ------------------
  |  Branch (280:17): [True: 0, False: 457k]
  ------------------
  281|      0|                isset = 2;
  282|   457k|        } else
  283|      0|            isset = 0;
  284|       |
  285|       |        /*
  286|       |         * Work out inner tag value: if EXPLICIT or no tagging use underlying
  287|       |         * type.
  288|       |         */
  289|   457k|        if ((ttag != -1) && !(flags & ASN1_TFLG_EXPTAG)) {
  ------------------
  |  |  539|      0|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (289:13): [True: 0, False: 457k]
  |  Branch (289:29): [True: 0, False: 0]
  ------------------
  290|      0|            sktag = ttag;
  291|      0|            skaclass = tclass;
  292|   457k|        } else {
  293|   457k|            skaclass = V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|   457k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  294|   457k|            if (isset)
  ------------------
  |  Branch (294:17): [True: 457k, False: 0]
  ------------------
  295|   457k|                sktag = V_ASN1_SET;
  ------------------
  |  |   77|   457k|#define V_ASN1_SET 17
  ------------------
  296|      0|            else
  297|      0|                sktag = V_ASN1_SEQUENCE;
  ------------------
  |  |   76|      0|#define V_ASN1_SEQUENCE 16
  ------------------
  298|   457k|        }
  299|       |
  300|       |        /* Determine total length of items */
  301|   457k|        skcontlen = 0;
  302|   914k|        for (i = 0; i < sk_const_ASN1_VALUE_num(sk); i++) {
  ------------------
  |  Branch (302:21): [True: 457k, False: 457k]
  ------------------
  303|   457k|            skitem = sk_const_ASN1_VALUE_value(sk, i);
  304|   457k|            len = ASN1_item_ex_i2d(&skitem, NULL, ASN1_ITEM_ptr(tt->item),
  ------------------
  |  |  428|   457k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  305|   457k|                -1, iclass);
  306|   457k|            if (len == -1 || (skcontlen > INT_MAX - len))
  ------------------
  |  Branch (306:17): [True: 0, False: 457k]
  |  Branch (306:30): [True: 0, False: 457k]
  ------------------
  307|      0|                return -1;
  308|   457k|            if (len == 0 && (tt->flags & ASN1_TFLG_OPTIONAL) == 0) {
  ------------------
  |  |  512|      0|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (308:17): [True: 0, False: 457k]
  |  Branch (308:29): [True: 0, False: 0]
  ------------------
  309|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_ZERO_CONTENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  310|      0|                return -1;
  311|      0|            }
  312|   457k|            skcontlen += len;
  313|   457k|        }
  314|   457k|        sklen = ASN1_object_size(ndef, skcontlen, sktag);
  315|   457k|        if (sklen == -1)
  ------------------
  |  Branch (315:13): [True: 0, False: 457k]
  ------------------
  316|      0|            return -1;
  317|       |        /* If EXPLICIT need length of surrounding tag */
  318|   457k|        if (flags & ASN1_TFLG_EXPTAG)
  ------------------
  |  |  539|   457k|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (318:13): [True: 0, False: 457k]
  ------------------
  319|      0|            ret = ASN1_object_size(ndef, sklen, ttag);
  320|   457k|        else
  321|   457k|            ret = sklen;
  322|       |
  323|   457k|        if (!out || ret == -1)
  ------------------
  |  Branch (323:13): [True: 228k, False: 228k]
  |  Branch (323:21): [True: 0, False: 228k]
  ------------------
  324|   228k|            return ret;
  325|       |
  326|       |        /* Now encode this lot... */
  327|       |        /* EXPLICIT tag */
  328|   228k|        if (flags & ASN1_TFLG_EXPTAG)
  ------------------
  |  |  539|   228k|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (328:13): [True: 0, False: 228k]
  ------------------
  329|      0|            ASN1_put_object(out, ndef, sklen, ttag, tclass);
  330|       |        /* SET or SEQUENCE and IMPLICIT tag */
  331|   228k|        ASN1_put_object(out, ndef, skcontlen, sktag, skaclass);
  332|       |        /* And the stuff itself */
  333|   228k|        asn1_set_seq_out(sk, out, skcontlen, ASN1_ITEM_ptr(tt->item),
  ------------------
  |  |  428|   228k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  334|   228k|            isset, iclass);
  335|   228k|        if (ndef == 2) {
  ------------------
  |  Branch (335:13): [True: 0, False: 228k]
  ------------------
  336|      0|            ASN1_put_eoc(out);
  337|      0|            if (flags & ASN1_TFLG_EXPTAG)
  ------------------
  |  |  539|      0|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (337:17): [True: 0, False: 0]
  ------------------
  338|      0|                ASN1_put_eoc(out);
  339|      0|        }
  340|       |
  341|   228k|        return ret;
  342|   457k|    }
  343|       |
  344|  1.82M|    if (flags & ASN1_TFLG_EXPTAG) {
  ------------------
  |  |  539|  1.82M|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (344:9): [True: 0, False: 1.82M]
  ------------------
  345|       |        /* EXPLICIT tagging */
  346|       |        /* Find length of tagged item */
  347|      0|        i = ASN1_item_ex_i2d(pval, NULL, ASN1_ITEM_ptr(tt->item), -1, iclass);
  ------------------
  |  |  428|      0|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  348|      0|        if (i == 0) {
  ------------------
  |  Branch (348:13): [True: 0, False: 0]
  ------------------
  349|      0|            if ((tt->flags & ASN1_TFLG_OPTIONAL) == 0) {
  ------------------
  |  |  512|      0|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (349:17): [True: 0, False: 0]
  ------------------
  350|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_ZERO_CONTENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  351|      0|                return -1;
  352|      0|            }
  353|      0|            return 0;
  354|      0|        }
  355|       |        /* Find length of EXPLICIT tag */
  356|      0|        ret = ASN1_object_size(ndef, i, ttag);
  357|      0|        if (out && ret != -1) {
  ------------------
  |  Branch (357:13): [True: 0, False: 0]
  |  Branch (357:20): [True: 0, False: 0]
  ------------------
  358|       |            /* Output tag and item */
  359|      0|            ASN1_put_object(out, ndef, i, ttag, tclass);
  360|      0|            ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item), -1, iclass);
  ------------------
  |  |  428|      0|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  361|      0|            if (ndef == 2)
  ------------------
  |  Branch (361:17): [True: 0, False: 0]
  ------------------
  362|      0|                ASN1_put_eoc(out);
  363|      0|        }
  364|      0|        return ret;
  365|      0|    }
  366|       |
  367|       |    /* Either normal or IMPLICIT tagging: combine class and flags */
  368|  1.82M|    len = ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
  ------------------
  |  |  428|  1.82M|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  369|  1.82M|        ttag, tclass | iclass);
  370|  1.82M|    if (len == 0 && (tt->flags & ASN1_TFLG_OPTIONAL) == 0) {
  ------------------
  |  |  512|      0|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (370:9): [True: 0, False: 1.82M]
  |  Branch (370:21): [True: 0, False: 0]
  ------------------
  371|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_ZERO_CONTENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  372|      0|        return -1;
  373|      0|    }
  374|  1.82M|    return len;
  375|  1.82M|}
tasn_enc.c:asn1_set_seq_out:
  402|   228k|{
  403|   228k|    int i, ret = 0;
  404|   228k|    const ASN1_VALUE *skitem;
  405|   228k|    unsigned char *tmpdat = NULL, *p = NULL;
  406|   228k|    DER_ENC *derlst = NULL, *tder;
  407|       |
  408|   228k|    if (do_sort) {
  ------------------
  |  Branch (408:9): [True: 228k, False: 0]
  ------------------
  409|       |        /* Don't need to sort less than 2 items */
  410|   228k|        if (sk_const_ASN1_VALUE_num(sk) < 2)
  ------------------
  |  Branch (410:13): [True: 228k, False: 0]
  ------------------
  411|   228k|            do_sort = 0;
  412|      0|        else {
  413|      0|            derlst = OPENSSL_malloc(sk_const_ASN1_VALUE_num(sk)
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  414|      0|                * sizeof(*derlst));
  415|      0|            if (derlst == NULL)
  ------------------
  |  Branch (415:17): [True: 0, False: 0]
  ------------------
  416|      0|                return 0;
  417|      0|            tmpdat = OPENSSL_malloc(skcontlen);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  418|      0|            if (tmpdat == NULL)
  ------------------
  |  Branch (418:17): [True: 0, False: 0]
  ------------------
  419|      0|                goto err;
  420|      0|        }
  421|   228k|    }
  422|       |    /* If not sorting just output each item */
  423|   228k|    if (!do_sort) {
  ------------------
  |  Branch (423:9): [True: 228k, False: 0]
  ------------------
  424|   457k|        for (i = 0; i < sk_const_ASN1_VALUE_num(sk); i++) {
  ------------------
  |  Branch (424:21): [True: 228k, False: 228k]
  ------------------
  425|   228k|            skitem = sk_const_ASN1_VALUE_value(sk, i);
  426|   228k|            ASN1_item_ex_i2d(&skitem, out, item, -1, iclass);
  427|   228k|        }
  428|   228k|        return 1;
  429|   228k|    }
  430|      0|    p = tmpdat;
  431|       |
  432|       |    /* Doing sort: build up a list of each member's DER encoding */
  433|      0|    for (i = 0, tder = derlst; i < sk_const_ASN1_VALUE_num(sk); i++, tder++) {
  ------------------
  |  Branch (433:32): [True: 0, False: 0]
  ------------------
  434|      0|        skitem = sk_const_ASN1_VALUE_value(sk, i);
  435|      0|        tder->data = p;
  436|      0|        tder->length = ASN1_item_ex_i2d(&skitem, &p, item, -1, iclass);
  437|      0|        tder->field = skitem;
  438|      0|    }
  439|       |
  440|       |    /* Now sort them */
  441|      0|    qsort(derlst, sk_const_ASN1_VALUE_num(sk), sizeof(*derlst), der_cmp);
  442|       |    /* Output sorted DER encoding */
  443|      0|    p = *out;
  444|      0|    for (i = 0, tder = derlst; i < sk_const_ASN1_VALUE_num(sk); i++, tder++) {
  ------------------
  |  Branch (444:32): [True: 0, False: 0]
  ------------------
  445|      0|        memcpy(p, tder->data, tder->length);
  446|      0|        p += tder->length;
  447|      0|    }
  448|      0|    *out = p;
  449|       |    /* If do_sort is 2 then reorder the STACK */
  450|      0|    if (do_sort == 2) {
  ------------------
  |  Branch (450:9): [True: 0, False: 0]
  ------------------
  451|      0|        for (i = 0, tder = derlst; i < sk_const_ASN1_VALUE_num(sk); i++, tder++)
  ------------------
  |  Branch (451:36): [True: 0, False: 0]
  ------------------
  452|      0|            (void)sk_const_ASN1_VALUE_set(sk, i, tder->field);
  453|      0|    }
  454|      0|    ret = 1;
  455|      0|err:
  456|      0|    OPENSSL_free(derlst);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  457|      0|    OPENSSL_free(tmpdat);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  458|      0|    return ret;
  459|      0|}
tasn_enc.c:asn1_i2d_ex_primitive:
  463|  1.82M|{
  464|  1.82M|    int len;
  465|  1.82M|    int utype;
  466|  1.82M|    int usetag;
  467|  1.82M|    int ndef = 0;
  468|       |
  469|  1.82M|    utype = it->utype;
  470|       |
  471|       |    /*
  472|       |     * Get length of content octets and maybe find out the underlying type.
  473|       |     */
  474|       |
  475|  1.82M|    len = asn1_ex_i2c(pval, NULL, &utype, it);
  476|       |
  477|       |    /*
  478|       |     * If SEQUENCE, SET or OTHER then header is included in pseudo content
  479|       |     * octets so don't include tag+length. We need to check here because the
  480|       |     * call to asn1_ex_i2c() could change utype.
  481|       |     */
  482|  1.82M|    if ((utype == V_ASN1_SEQUENCE) || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER))
  ------------------
  |  |   76|  1.82M|#define V_ASN1_SEQUENCE 16
  ------------------
                  if ((utype == V_ASN1_SEQUENCE) || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER))
  ------------------
  |  |   77|  1.82M|#define V_ASN1_SET 17
  ------------------
                  if ((utype == V_ASN1_SEQUENCE) || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER))
  ------------------
  |  |   59|  1.82M|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  |  Branch (482:9): [True: 0, False: 1.82M]
  |  Branch (482:39): [True: 0, False: 1.82M]
  |  Branch (482:64): [True: 0, False: 1.82M]
  ------------------
  483|      0|        usetag = 0;
  484|  1.82M|    else
  485|  1.82M|        usetag = 1;
  486|       |
  487|       |    /* -1 means omit type */
  488|       |
  489|  1.82M|    if (len == -1)
  ------------------
  |  Branch (489:9): [True: 0, False: 1.82M]
  ------------------
  490|      0|        return 0;
  491|       |
  492|       |    /* -2 return is special meaning use ndef */
  493|  1.82M|    if (len == -2) {
  ------------------
  |  Branch (493:9): [True: 0, False: 1.82M]
  ------------------
  494|      0|        ndef = 2;
  495|      0|        len = 0;
  496|      0|    }
  497|       |
  498|       |    /* If not implicitly tagged get tag from underlying type */
  499|  1.82M|    if (tag == -1)
  ------------------
  |  Branch (499:9): [True: 1.82M, False: 0]
  ------------------
  500|  1.82M|        tag = utype;
  501|       |
  502|       |    /* Output tag+length followed by content octets */
  503|  1.82M|    if (out) {
  ------------------
  |  Branch (503:9): [True: 457k, False: 1.37M]
  ------------------
  504|   457k|        if (usetag)
  ------------------
  |  Branch (504:13): [True: 457k, False: 0]
  ------------------
  505|   457k|            ASN1_put_object(out, ndef, len, tag, aclass);
  506|   457k|        asn1_ex_i2c(pval, *out, &utype, it);
  507|   457k|        if (ndef)
  ------------------
  |  Branch (507:13): [True: 0, False: 457k]
  ------------------
  508|      0|            ASN1_put_eoc(out);
  509|   457k|        else
  510|   457k|            *out += len;
  511|   457k|    }
  512|       |
  513|  1.82M|    if (usetag)
  ------------------
  |  Branch (513:9): [True: 1.82M, False: 0]
  ------------------
  514|  1.82M|        return ASN1_object_size(ndef, len, tag);
  515|      0|    return len;
  516|  1.82M|}
tasn_enc.c:asn1_ex_i2c:
  522|  2.28M|{
  523|  2.28M|    ASN1_BOOLEAN *tbool = NULL;
  524|  2.28M|    ASN1_STRING *strtmp;
  525|  2.28M|    ASN1_OBJECT *otmp;
  526|  2.28M|    int utype;
  527|  2.28M|    const unsigned char *cont;
  528|  2.28M|    unsigned char c;
  529|  2.28M|    int len;
  530|  2.28M|    const ASN1_PRIMITIVE_FUNCS *pf;
  531|  2.28M|    pf = it->funcs;
  532|  2.28M|    if (pf && pf->prim_i2c)
  ------------------
  |  Branch (532:9): [True: 0, False: 2.28M]
  |  Branch (532:15): [True: 0, False: 0]
  ------------------
  533|      0|        return pf->prim_i2c(pval, cout, putype, it);
  534|       |
  535|       |    /* Should type be omitted? */
  536|  2.28M|    if ((it->itype != ASN1_ITYPE_PRIMITIVE)
  ------------------
  |  |   82|  2.28M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (536:9): [True: 1.14M, False: 1.14M]
  ------------------
  537|  2.28M|        || (it->utype != V_ASN1_BOOLEAN)) {
  ------------------
  |  |   65|  1.14M|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (537:12): [True: 1.14M, False: 0]
  ------------------
  538|  2.28M|        if (*pval == NULL)
  ------------------
  |  Branch (538:13): [True: 0, False: 2.28M]
  ------------------
  539|      0|            return -1;
  540|  2.28M|    }
  541|       |
  542|  2.28M|    if (it->itype == ASN1_ITYPE_MSTRING) {
  ------------------
  |  |   87|  2.28M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (542:9): [True: 1.14M, False: 1.14M]
  ------------------
  543|       |        /* If MSTRING type set the underlying type */
  544|  1.14M|        strtmp = (ASN1_STRING *)*pval;
  545|  1.14M|        utype = strtmp->type;
  546|  1.14M|        *putype = utype;
  547|  1.14M|    } else if (it->utype == V_ASN1_ANY) {
  ------------------
  |  |   60|  1.14M|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (547:16): [True: 0, False: 1.14M]
  ------------------
  548|       |        /* If ANY set type and pointer to value */
  549|      0|        ASN1_TYPE *typ;
  550|      0|        typ = (ASN1_TYPE *)*pval;
  551|      0|        utype = typ->type;
  552|      0|        *putype = utype;
  553|      0|        pval = (const ASN1_VALUE **)&typ->value.asn1_value; /* actually is const */
  554|      0|    } else
  555|  1.14M|        utype = *putype;
  556|       |
  557|  2.28M|    switch (utype) {
  558|  1.14M|    case V_ASN1_OBJECT:
  ------------------
  |  |   70|  1.14M|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (558:5): [True: 1.14M, False: 1.14M]
  ------------------
  559|  1.14M|        otmp = (ASN1_OBJECT *)*pval;
  560|  1.14M|        cont = otmp->data;
  561|  1.14M|        len = otmp->length;
  562|  1.14M|        if (cont == NULL || len == 0)
  ------------------
  |  Branch (562:13): [True: 0, False: 1.14M]
  |  Branch (562:29): [True: 0, False: 1.14M]
  ------------------
  563|      0|            return -1;
  564|  1.14M|        break;
  565|       |
  566|  1.14M|    case V_ASN1_UNDEF:
  ------------------
  |  |   62|      0|#define V_ASN1_UNDEF -1
  ------------------
  |  Branch (566:5): [True: 0, False: 2.28M]
  ------------------
  567|      0|        return -2;
  568|       |
  569|      0|    case V_ASN1_NULL:
  ------------------
  |  |   69|      0|#define V_ASN1_NULL 5
  ------------------
  |  Branch (569:5): [True: 0, False: 2.28M]
  ------------------
  570|      0|        cont = NULL;
  571|      0|        len = 0;
  572|      0|        break;
  573|       |
  574|      0|    case V_ASN1_BOOLEAN:
  ------------------
  |  |   65|      0|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (574:5): [True: 0, False: 2.28M]
  ------------------
  575|      0|        tbool = (ASN1_BOOLEAN *)pval;
  576|      0|        if (*tbool == -1)
  ------------------
  |  Branch (576:13): [True: 0, False: 0]
  ------------------
  577|      0|            return -1;
  578|      0|        if (it->utype != V_ASN1_ANY) {
  ------------------
  |  |   60|      0|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (578:13): [True: 0, False: 0]
  ------------------
  579|       |            /*
  580|       |             * Default handling if value == size field then omit
  581|       |             */
  582|      0|            if (*tbool && (it->size > 0))
  ------------------
  |  Branch (582:17): [True: 0, False: 0]
  |  Branch (582:27): [True: 0, False: 0]
  ------------------
  583|      0|                return -1;
  584|      0|            if (!*tbool && !it->size)
  ------------------
  |  Branch (584:17): [True: 0, False: 0]
  |  Branch (584:28): [True: 0, False: 0]
  ------------------
  585|      0|                return -1;
  586|      0|        }
  587|      0|        c = (unsigned char)*tbool;
  588|      0|        cont = &c;
  589|      0|        len = 1;
  590|      0|        break;
  591|       |
  592|      0|    case V_ASN1_BIT_STRING:
  ------------------
  |  |   67|      0|#define V_ASN1_BIT_STRING 3
  ------------------
  |  Branch (592:5): [True: 0, False: 2.28M]
  ------------------
  593|      0|        return ossl_i2c_ASN1_BIT_STRING((ASN1_BIT_STRING *)*pval,
  594|      0|            cout ? &cout : NULL);
  ------------------
  |  Branch (594:13): [True: 0, False: 0]
  ------------------
  595|       |
  596|      0|    case V_ASN1_INTEGER:
  ------------------
  |  |   66|      0|#define V_ASN1_INTEGER 2
  ------------------
  |  Branch (596:5): [True: 0, False: 2.28M]
  ------------------
  597|      0|    case V_ASN1_ENUMERATED:
  ------------------
  |  |   74|      0|#define V_ASN1_ENUMERATED 10
  ------------------
  |  Branch (597:5): [True: 0, False: 2.28M]
  ------------------
  598|       |        /*
  599|       |         * These are all have the same content format as ASN1_INTEGER
  600|       |         */
  601|      0|        return ossl_i2c_ASN1_INTEGER((ASN1_INTEGER *)*pval, cout ? &cout : NULL);
  ------------------
  |  Branch (601:61): [True: 0, False: 0]
  ------------------
  602|       |
  603|      0|    case V_ASN1_OCTET_STRING:
  ------------------
  |  |   68|      0|#define V_ASN1_OCTET_STRING 4
  ------------------
  |  Branch (603:5): [True: 0, False: 2.28M]
  ------------------
  604|      0|    case V_ASN1_NUMERICSTRING:
  ------------------
  |  |   78|      0|#define V_ASN1_NUMERICSTRING 18
  ------------------
  |  Branch (604:5): [True: 0, False: 2.28M]
  ------------------
  605|      0|    case V_ASN1_PRINTABLESTRING:
  ------------------
  |  |   79|      0|#define V_ASN1_PRINTABLESTRING 19
  ------------------
  |  Branch (605:5): [True: 0, False: 2.28M]
  ------------------
  606|      0|    case V_ASN1_T61STRING:
  ------------------
  |  |   80|      0|#define V_ASN1_T61STRING 20
  ------------------
  |  Branch (606:5): [True: 0, False: 2.28M]
  ------------------
  607|      0|    case V_ASN1_VIDEOTEXSTRING:
  ------------------
  |  |   82|      0|#define V_ASN1_VIDEOTEXSTRING 21
  ------------------
  |  Branch (607:5): [True: 0, False: 2.28M]
  ------------------
  608|      0|    case V_ASN1_IA5STRING:
  ------------------
  |  |   83|      0|#define V_ASN1_IA5STRING 22
  ------------------
  |  Branch (608:5): [True: 0, False: 2.28M]
  ------------------
  609|      0|    case V_ASN1_UTCTIME:
  ------------------
  |  |   84|      0|#define V_ASN1_UTCTIME 23
  ------------------
  |  Branch (609:5): [True: 0, False: 2.28M]
  ------------------
  610|      0|    case V_ASN1_GENERALIZEDTIME:
  ------------------
  |  |   85|      0|#define V_ASN1_GENERALIZEDTIME 24
  ------------------
  |  Branch (610:5): [True: 0, False: 2.28M]
  ------------------
  611|      0|    case V_ASN1_GRAPHICSTRING:
  ------------------
  |  |   86|      0|#define V_ASN1_GRAPHICSTRING 25
  ------------------
  |  Branch (611:5): [True: 0, False: 2.28M]
  ------------------
  612|      0|    case V_ASN1_VISIBLESTRING:
  ------------------
  |  |   88|      0|#define V_ASN1_VISIBLESTRING 26 /* alias */
  ------------------
  |  Branch (612:5): [True: 0, False: 2.28M]
  ------------------
  613|      0|    case V_ASN1_GENERALSTRING:
  ------------------
  |  |   89|      0|#define V_ASN1_GENERALSTRING 27
  ------------------
  |  Branch (613:5): [True: 0, False: 2.28M]
  ------------------
  614|      0|    case V_ASN1_UNIVERSALSTRING:
  ------------------
  |  |   90|      0|#define V_ASN1_UNIVERSALSTRING 28
  ------------------
  |  Branch (614:5): [True: 0, False: 2.28M]
  ------------------
  615|      0|    case V_ASN1_BMPSTRING:
  ------------------
  |  |   91|      0|#define V_ASN1_BMPSTRING 30
  ------------------
  |  Branch (615:5): [True: 0, False: 2.28M]
  ------------------
  616|  1.14M|    case V_ASN1_UTF8STRING:
  ------------------
  |  |   75|  1.14M|#define V_ASN1_UTF8STRING 12
  ------------------
  |  Branch (616:5): [True: 1.14M, False: 1.14M]
  ------------------
  617|  1.14M|    case V_ASN1_SEQUENCE:
  ------------------
  |  |   76|  1.14M|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (617:5): [True: 0, False: 2.28M]
  ------------------
  618|  1.14M|    case V_ASN1_SET:
  ------------------
  |  |   77|  1.14M|#define V_ASN1_SET 17
  ------------------
  |  Branch (618:5): [True: 0, False: 2.28M]
  ------------------
  619|  1.14M|    default:
  ------------------
  |  Branch (619:5): [True: 0, False: 2.28M]
  ------------------
  620|       |        /* All based on ASN1_STRING and handled the same */
  621|  1.14M|        strtmp = (ASN1_STRING *)*pval;
  622|       |        /* Special handling for NDEF */
  623|  1.14M|        if ((it->size == ASN1_TFLG_NDEF)
  ------------------
  |  |  583|  1.14M|#define ASN1_TFLG_NDEF (0x1 << 11)
  ------------------
  |  Branch (623:13): [True: 0, False: 1.14M]
  ------------------
  624|      0|            && (strtmp->flags & ASN1_STRING_FLAG_NDEF)) {
  ------------------
  |  |  170|      0|#define ASN1_STRING_FLAG_NDEF 0x010
  ------------------
  |  Branch (624:16): [True: 0, False: 0]
  ------------------
  625|      0|            if (cout) {
  ------------------
  |  Branch (625:17): [True: 0, False: 0]
  ------------------
  626|      0|                strtmp->data = cout;
  627|      0|                strtmp->length = 0;
  628|      0|            }
  629|       |            /* Special return code */
  630|      0|            return -2;
  631|      0|        }
  632|  1.14M|        cont = strtmp->data;
  633|  1.14M|        len = strtmp->length;
  634|       |
  635|  1.14M|        break;
  636|  2.28M|    }
  637|  2.28M|    if (cout && len)
  ------------------
  |  Branch (637:9): [True: 457k, False: 1.82M]
  |  Branch (637:17): [True: 457k, False: 0]
  ------------------
  638|   457k|        memcpy(cout, cont, len);
  639|  2.28M|    return len;
  640|  2.28M|}

ASN1_item_free:
   19|  1.22M|{
   20|  1.22M|    ossl_asn1_item_embed_free(&val, it, 0);
   21|  1.22M|}
ossl_asn1_item_embed_free:
   29|  3.53M|{
   30|  3.53M|    const ASN1_TEMPLATE *tt = NULL, *seqtt;
   31|  3.53M|    const ASN1_EXTERN_FUNCS *ef;
   32|  3.53M|    const ASN1_AUX *aux = it->funcs;
   33|  3.53M|    ASN1_aux_cb *asn1_cb;
   34|  3.53M|    int i;
   35|       |
   36|  3.53M|    if (pval == NULL)
  ------------------
  |  Branch (36:9): [True: 0, False: 3.53M]
  ------------------
   37|      0|        return;
   38|  3.53M|    if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL)
  ------------------
  |  |   82|  3.53M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (38:9): [True: 1.98M, False: 1.55M]
  |  Branch (38:48): [True: 445k, False: 1.53M]
  ------------------
   39|   445k|        return;
   40|  3.09M|    if (aux && aux->asn1_cb)
  ------------------
  |  Branch (40:9): [True: 223k, False: 2.87M]
  |  Branch (40:16): [True: 63.9k, False: 159k]
  ------------------
   41|  63.9k|        asn1_cb = aux->asn1_cb;
   42|  3.03M|    else
   43|  3.03M|        asn1_cb = 0;
   44|       |
   45|  3.09M|    switch (it->itype) {
  ------------------
  |  Branch (45:13): [True: 3.09M, False: 0]
  ------------------
   46|       |
   47|  1.55M|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|  1.55M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (47:5): [True: 1.55M, False: 1.53M]
  ------------------
   48|  1.55M|        if (it->templates)
  ------------------
  |  Branch (48:13): [True: 127k, False: 1.43M]
  ------------------
   49|   127k|            ossl_asn1_template_free(pval, it->templates);
   50|  1.43M|        else
   51|  1.43M|            ossl_asn1_primitive_free(pval, it, embed);
   52|  1.55M|        break;
   53|       |
   54|   521k|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|   521k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (54:5): [True: 521k, False: 2.57M]
  ------------------
   55|   521k|        ossl_asn1_primitive_free(pval, it, embed);
   56|   521k|        break;
   57|       |
   58|      0|    case ASN1_ITYPE_CHOICE:
  ------------------
  |  |   84|      0|#define ASN1_ITYPE_CHOICE 0x2
  ------------------
  |  Branch (58:5): [True: 0, False: 3.09M]
  ------------------
   59|      0|        if (asn1_cb) {
  ------------------
  |  Branch (59:13): [True: 0, False: 0]
  ------------------
   60|      0|            i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
  ------------------
  |  |  733|      0|#define ASN1_OP_FREE_PRE 2
  ------------------
   61|      0|            if (i == 2)
  ------------------
  |  Branch (61:17): [True: 0, False: 0]
  ------------------
   62|      0|                return;
   63|      0|        }
   64|      0|        i = ossl_asn1_get_choice_selector(pval, it);
   65|      0|        if ((i >= 0) && (i < it->tcount)) {
  ------------------
  |  Branch (65:13): [True: 0, False: 0]
  |  Branch (65:25): [True: 0, False: 0]
  ------------------
   66|      0|            ASN1_VALUE **pchval;
   67|       |
   68|      0|            tt = it->templates + i;
   69|      0|            pchval = ossl_asn1_get_field_ptr(pval, tt);
   70|      0|            ossl_asn1_template_free(pchval, tt);
   71|      0|        }
   72|      0|        if (asn1_cb)
  ------------------
  |  Branch (72:13): [True: 0, False: 0]
  ------------------
   73|      0|            asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
  ------------------
  |  |  734|      0|#define ASN1_OP_FREE_POST 3
  ------------------
   74|      0|        if (embed == 0) {
  ------------------
  |  Branch (74:13): [True: 0, False: 0]
  ------------------
   75|      0|            OPENSSL_free(*pval);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   76|      0|            *pval = NULL;
   77|      0|        }
   78|      0|        break;
   79|       |
   80|   127k|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|   127k|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (80:5): [True: 127k, False: 2.96M]
  ------------------
   81|   127k|        ef = it->funcs;
   82|   127k|        if (ef && ef->asn1_ex_free)
  ------------------
  |  Branch (82:13): [True: 127k, False: 0]
  |  Branch (82:19): [True: 127k, False: 0]
  ------------------
   83|   127k|            ef->asn1_ex_free(pval, it);
   84|   127k|        break;
   85|       |
   86|      0|    case ASN1_ITYPE_NDEF_SEQUENCE:
  ------------------
  |  |   88|      0|#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
  ------------------
  |  Branch (86:5): [True: 0, False: 3.09M]
  ------------------
   87|   887k|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|   887k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (87:5): [True: 887k, False: 2.20M]
  ------------------
   88|   887k|        if (ossl_asn1_do_lock(pval, -1, it) != 0) {
  ------------------
  |  Branch (88:13): [True: 31.9k, False: 855k]
  ------------------
   89|       |            /* if error or ref-counter > 0 */
   90|  31.9k|            OPENSSL_assert(embed == 0);
  ------------------
  |  |  476|  31.9k|    (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (476:12): [True: 31.9k, False: 0]
  |  |  ------------------
  ------------------
   91|  31.9k|            *pval = NULL;
   92|  31.9k|            return;
   93|  31.9k|        }
   94|   855k|        if (asn1_cb) {
  ------------------
  |  Branch (94:13): [True: 31.9k, False: 823k]
  ------------------
   95|  31.9k|            i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
  ------------------
  |  |  733|  31.9k|#define ASN1_OP_FREE_PRE 2
  ------------------
   96|  31.9k|            if (i == 2)
  ------------------
  |  Branch (96:17): [True: 0, False: 31.9k]
  ------------------
   97|      0|                return;
   98|  31.9k|        }
   99|   855k|        ossl_asn1_enc_free(pval, it);
  100|       |        /*
  101|       |         * If we free up as normal we will invalidate any ANY DEFINED BY
  102|       |         * field and we won't be able to determine the type of the field it
  103|       |         * defines. So free up in reverse order.
  104|       |         */
  105|   855k|        tt = it->templates + it->tcount;
  106|  2.96M|        for (i = 0; i < it->tcount; i++) {
  ------------------
  |  Branch (106:21): [True: 2.10M, False: 855k]
  ------------------
  107|  2.10M|            ASN1_VALUE **pseqval;
  108|       |
  109|  2.10M|            tt--;
  110|  2.10M|            seqtt = ossl_asn1_do_adb(*pval, tt, 0);
  111|  2.10M|            if (!seqtt)
  ------------------
  |  Branch (111:17): [True: 0, False: 2.10M]
  ------------------
  112|      0|                continue;
  113|  2.10M|            pseqval = ossl_asn1_get_field_ptr(pval, seqtt);
  114|  2.10M|            ossl_asn1_template_free(pseqval, seqtt);
  115|  2.10M|        }
  116|   855k|        if (asn1_cb)
  ------------------
  |  Branch (116:13): [True: 31.9k, False: 823k]
  ------------------
  117|  31.9k|            asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
  ------------------
  |  |  734|  31.9k|#define ASN1_OP_FREE_POST 3
  ------------------
  118|   855k|        if (embed == 0) {
  ------------------
  |  Branch (118:13): [True: 727k, False: 127k]
  ------------------
  119|   727k|            OPENSSL_free(*pval);
  ------------------
  |  |  131|   727k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  120|       |            *pval = NULL;
  121|   727k|        }
  122|   855k|        break;
  123|  3.09M|    }
  124|  3.09M|}
ossl_asn1_template_free:
  127|  2.36M|{
  128|  2.36M|    int embed = tt->flags & ASN1_TFLG_EMBED;
  ------------------
  |  |  586|  2.36M|#define ASN1_TFLG_EMBED (0x1 << 12)
  ------------------
  129|  2.36M|    ASN1_VALUE *tval;
  130|  2.36M|    if (embed) {
  ------------------
  |  Branch (130:9): [True: 302k, False: 2.06M]
  ------------------
  131|   302k|        tval = (ASN1_VALUE *)pval;
  132|   302k|        pval = &tval;
  133|   302k|    }
  134|  2.36M|    if (tt->flags & ASN1_TFLG_SK_MASK) {
  ------------------
  |  |  528|  2.36M|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (134:9): [True: 159k, False: 2.20M]
  ------------------
  135|   159k|        STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval;
  ------------------
  |  |   33|   159k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  136|   159k|        int i;
  137|       |
  138|   270k|        for (i = 0; i < sk_ASN1_VALUE_num(sk); i++) {
  ------------------
  |  |  887|   270k|#define sk_ASN1_VALUE_num(sk) OPENSSL_sk_num(ossl_check_const_ASN1_VALUE_sk_type(sk))
  ------------------
  |  Branch (138:21): [True: 110k, False: 159k]
  ------------------
  139|   110k|            ASN1_VALUE *vtmp = sk_ASN1_VALUE_value(sk, i);
  ------------------
  |  |  888|   110k|#define sk_ASN1_VALUE_value(sk, idx) ((ASN1_VALUE *)OPENSSL_sk_value(ossl_check_const_ASN1_VALUE_sk_type(sk), (idx)))
  ------------------
  140|       |
  141|   110k|            ossl_asn1_item_embed_free(&vtmp, ASN1_ITEM_ptr(tt->item), embed);
  ------------------
  |  |  428|   110k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  142|   110k|        }
  143|   159k|        sk_ASN1_VALUE_free(sk);
  ------------------
  |  |  893|   159k|#define sk_ASN1_VALUE_free(sk) OPENSSL_sk_free(ossl_check_ASN1_VALUE_sk_type(sk))
  ------------------
  144|   159k|        *pval = NULL;
  145|  2.20M|    } else {
  146|  2.20M|        ossl_asn1_item_embed_free(pval, ASN1_ITEM_ptr(tt->item), embed);
  ------------------
  |  |  428|  2.20M|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  147|  2.20M|    }
  148|  2.36M|}
ossl_asn1_primitive_free:
  151|  2.09M|{
  152|  2.09M|    int utype;
  153|       |
  154|       |    /* Special case: if 'it' is a primitive with a free_func, use that. */
  155|  2.09M|    if (it) {
  ------------------
  |  Branch (155:9): [True: 1.95M, False: 142k]
  ------------------
  156|  1.95M|        const ASN1_PRIMITIVE_FUNCS *pf = it->funcs;
  157|       |
  158|  1.95M|        if (embed) {
  ------------------
  |  Branch (158:13): [True: 174k, False: 1.77M]
  ------------------
  159|   174k|            if (pf && pf->prim_clear) {
  ------------------
  |  Branch (159:17): [True: 0, False: 174k]
  |  Branch (159:23): [True: 0, False: 0]
  ------------------
  160|      0|                pf->prim_clear(pval, it);
  161|      0|                return;
  162|      0|            }
  163|  1.77M|        } else if (pf && pf->prim_free) {
  ------------------
  |  Branch (163:20): [True: 0, False: 1.77M]
  |  Branch (163:26): [True: 0, False: 0]
  ------------------
  164|      0|            pf->prim_free(pval, it);
  165|      0|            return;
  166|      0|        }
  167|  1.95M|    }
  168|       |
  169|       |    /* Special case: if 'it' is NULL, free contents of ASN1_TYPE */
  170|  2.09M|    if (!it) {
  ------------------
  |  Branch (170:9): [True: 142k, False: 1.95M]
  ------------------
  171|   142k|        ASN1_TYPE *typ = (ASN1_TYPE *)*pval;
  172|       |
  173|   142k|        utype = typ->type;
  174|   142k|        pval = &typ->value.asn1_value;
  175|   142k|        if (*pval == NULL)
  ------------------
  |  Branch (175:13): [True: 116k, False: 26.2k]
  ------------------
  176|   116k|            return;
  177|  1.95M|    } else if (it->itype == ASN1_ITYPE_MSTRING) {
  ------------------
  |  |   87|  1.95M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (177:16): [True: 521k, False: 1.43M]
  ------------------
  178|   521k|        utype = -1;
  179|   521k|        if (*pval == NULL)
  ------------------
  |  Branch (179:13): [True: 0, False: 521k]
  ------------------
  180|      0|            return;
  181|  1.43M|    } else {
  182|  1.43M|        utype = it->utype;
  183|  1.43M|        if ((utype != V_ASN1_BOOLEAN) && *pval == NULL)
  ------------------
  |  |   65|  1.43M|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (183:13): [True: 1.27M, False: 159k]
  |  Branch (183:42): [True: 162k, False: 1.10M]
  ------------------
  184|   162k|            return;
  185|  1.43M|    }
  186|       |
  187|  1.81M|    switch (utype) {
  188|   753k|    case V_ASN1_OBJECT:
  ------------------
  |  |   70|   753k|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (188:5): [True: 753k, False: 1.06M]
  ------------------
  189|   753k|        ASN1_OBJECT_free((ASN1_OBJECT *)*pval);
  190|   753k|        break;
  191|       |
  192|   159k|    case V_ASN1_BOOLEAN:
  ------------------
  |  |   65|   159k|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (192:5): [True: 159k, False: 1.65M]
  ------------------
  193|   159k|        if (it)
  ------------------
  |  Branch (193:13): [True: 159k, False: 0]
  ------------------
  194|   159k|            *(ASN1_BOOLEAN *)pval = it->size;
  195|      0|        else
  196|      0|            *(ASN1_BOOLEAN *)pval = -1;
  197|   159k|        return;
  198|       |
  199|      0|    case V_ASN1_NULL:
  ------------------
  |  |   69|      0|#define V_ASN1_NULL 5
  ------------------
  |  Branch (199:5): [True: 0, False: 1.81M]
  ------------------
  200|      0|        break;
  201|       |
  202|   142k|    case V_ASN1_ANY:
  ------------------
  |  |   60|   142k|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (202:5): [True: 142k, False: 1.67M]
  ------------------
  203|   142k|        ossl_asn1_primitive_free(pval, NULL, 0);
  204|   142k|        OPENSSL_free(*pval);
  ------------------
  |  |  131|   142k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  205|   142k|        break;
  206|       |
  207|   759k|    default:
  ------------------
  |  Branch (207:5): [True: 759k, False: 1.05M]
  ------------------
  208|   759k|        ossl_asn1_string_embed_free((ASN1_STRING *)*pval, embed);
  209|   759k|        break;
  210|  1.81M|    }
  211|  1.65M|    *pval = NULL;
  212|  1.65M|}

ASN1_item_new:
   30|   434k|{
   31|   434k|    ASN1_VALUE *ret = NULL;
   32|   434k|    if (ASN1_item_ex_new(&ret, it) > 0)
  ------------------
  |  Branch (32:9): [True: 434k, False: 0]
  ------------------
   33|   434k|        return ret;
   34|      0|    return NULL;
   35|   434k|}
ASN1_item_new_ex:
   39|  31.9k|{
   40|  31.9k|    ASN1_VALUE *ret = NULL;
   41|  31.9k|    if (asn1_item_embed_new(&ret, it, 0, libctx, propq) > 0)
  ------------------
  |  Branch (41:9): [True: 31.9k, False: 0]
  ------------------
   42|  31.9k|        return ret;
   43|      0|    return NULL;
   44|  31.9k|}
ossl_asn1_item_ex_new_intern:
   50|   393k|{
   51|   393k|    return asn1_item_embed_new(pval, it, 0, libctx, propq);
   52|   393k|}
ASN1_item_ex_new:
   55|   434k|{
   56|   434k|    return asn1_item_embed_new(pval, it, 0, NULL, NULL);
   57|   434k|}
tasn_new.c:asn1_item_embed_new:
   61|  2.50M|{
   62|  2.50M|    const ASN1_TEMPLATE *tt = NULL;
   63|  2.50M|    const ASN1_EXTERN_FUNCS *ef;
   64|  2.50M|    const ASN1_AUX *aux = it->funcs;
   65|  2.50M|    ASN1_aux_cb *asn1_cb;
   66|  2.50M|    ASN1_VALUE **pseqval;
   67|  2.50M|    int i;
   68|  2.50M|    if (aux && aux->asn1_cb)
  ------------------
  |  Branch (68:9): [True: 183k, False: 2.32M]
  |  Branch (68:16): [True: 55.1k, False: 127k]
  ------------------
   69|  55.1k|        asn1_cb = aux->asn1_cb;
   70|  2.45M|    else
   71|  2.45M|        asn1_cb = 0;
   72|       |
   73|  2.50M|    switch (it->itype) {
  ------------------
  |  Branch (73:13): [True: 2.50M, False: 0]
  ------------------
   74|       |
   75|  95.9k|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|  95.9k|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (75:5): [True: 95.9k, False: 2.41M]
  ------------------
   76|  95.9k|        ef = it->funcs;
   77|  95.9k|        if (ef != NULL) {
  ------------------
  |  Branch (77:13): [True: 95.9k, False: 0]
  ------------------
   78|  95.9k|            if (ef->asn1_ex_new_ex != NULL) {
  ------------------
  |  Branch (78:17): [True: 31.9k, False: 63.9k]
  ------------------
   79|  31.9k|                if (!ef->asn1_ex_new_ex(pval, it, libctx, propq))
  ------------------
  |  Branch (79:21): [True: 0, False: 31.9k]
  ------------------
   80|      0|                    goto asn1err;
   81|  63.9k|            } else if (ef->asn1_ex_new != NULL) {
  ------------------
  |  Branch (81:24): [True: 63.9k, False: 0]
  ------------------
   82|  63.9k|                if (!ef->asn1_ex_new(pval, it))
  ------------------
  |  Branch (82:21): [True: 0, False: 63.9k]
  ------------------
   83|      0|                    goto asn1err;
   84|  63.9k|            }
   85|  95.9k|        }
   86|  95.9k|        break;
   87|       |
   88|  1.04M|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|  1.04M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (88:5): [True: 1.04M, False: 1.46M]
  ------------------
   89|  1.04M|        if (it->templates) {
  ------------------
  |  Branch (89:13): [True: 0, False: 1.04M]
  ------------------
   90|      0|            if (!asn1_template_new(pval, it->templates, libctx, propq))
  ------------------
  |  Branch (90:17): [True: 0, False: 0]
  ------------------
   91|      0|                goto asn1err;
   92|  1.04M|        } else if (!asn1_primitive_new(pval, it, embed))
  ------------------
  |  Branch (92:20): [True: 0, False: 1.04M]
  ------------------
   93|      0|            goto asn1err;
   94|  1.04M|        break;
   95|       |
   96|  1.04M|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|   521k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (96:5): [True: 521k, False: 1.98M]
  ------------------
   97|   521k|        if (!asn1_primitive_new(pval, it, embed))
  ------------------
  |  Branch (97:13): [True: 0, False: 521k]
  ------------------
   98|      0|            goto asn1err;
   99|   521k|        break;
  100|       |
  101|   521k|    case ASN1_ITYPE_CHOICE:
  ------------------
  |  |   84|      0|#define ASN1_ITYPE_CHOICE 0x2
  ------------------
  |  Branch (101:5): [True: 0, False: 2.50M]
  ------------------
  102|      0|        if (asn1_cb) {
  ------------------
  |  Branch (102:13): [True: 0, False: 0]
  ------------------
  103|      0|            i = asn1_cb(ASN1_OP_NEW_PRE, pval, it, NULL);
  ------------------
  |  |  731|      0|#define ASN1_OP_NEW_PRE 0
  ------------------
  104|      0|            if (!i)
  ------------------
  |  Branch (104:17): [True: 0, False: 0]
  ------------------
  105|      0|                goto auxerr;
  106|      0|            if (i == 2) {
  ------------------
  |  Branch (106:17): [True: 0, False: 0]
  ------------------
  107|      0|                return 1;
  108|      0|            }
  109|      0|        }
  110|      0|        if (embed) {
  ------------------
  |  Branch (110:13): [True: 0, False: 0]
  ------------------
  111|      0|            memset(*pval, 0, it->size);
  112|      0|        } else {
  113|      0|            *pval = OPENSSL_zalloc(it->size);
  ------------------
  |  |  108|      0|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  114|      0|            if (*pval == NULL)
  ------------------
  |  Branch (114:17): [True: 0, False: 0]
  ------------------
  115|      0|                return 0;
  116|      0|        }
  117|      0|        ossl_asn1_set_choice_selector(pval, -1, it);
  118|      0|        if (asn1_cb && !asn1_cb(ASN1_OP_NEW_POST, pval, it, NULL))
  ------------------
  |  |  732|      0|#define ASN1_OP_NEW_POST 1
  ------------------
  |  Branch (118:13): [True: 0, False: 0]
  |  Branch (118:24): [True: 0, False: 0]
  ------------------
  119|      0|            goto auxerr2;
  120|      0|        break;
  121|       |
  122|      0|    case ASN1_ITYPE_NDEF_SEQUENCE:
  ------------------
  |  |   88|      0|#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
  ------------------
  |  Branch (122:5): [True: 0, False: 2.50M]
  ------------------
  123|   846k|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|   846k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (123:5): [True: 846k, False: 1.66M]
  ------------------
  124|   846k|        if (asn1_cb) {
  ------------------
  |  Branch (124:13): [True: 55.1k, False: 791k]
  ------------------
  125|  55.1k|            i = asn1_cb(ASN1_OP_NEW_PRE, pval, it, NULL);
  ------------------
  |  |  731|  55.1k|#define ASN1_OP_NEW_PRE 0
  ------------------
  126|  55.1k|            if (!i)
  ------------------
  |  Branch (126:17): [True: 0, False: 55.1k]
  ------------------
  127|      0|                goto auxerr;
  128|  55.1k|            if (i == 2) {
  ------------------
  |  Branch (128:17): [True: 23.2k, False: 31.9k]
  ------------------
  129|  23.2k|                return 1;
  130|  23.2k|            }
  131|  55.1k|        }
  132|   823k|        if (embed) {
  ------------------
  |  Branch (132:13): [True: 127k, False: 695k]
  ------------------
  133|   127k|            memset(*pval, 0, it->size);
  134|   695k|        } else {
  135|   695k|            *pval = OPENSSL_zalloc(it->size);
  ------------------
  |  |  108|   695k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  136|   695k|            if (*pval == NULL)
  ------------------
  |  Branch (136:17): [True: 0, False: 695k]
  ------------------
  137|      0|                return 0;
  138|   695k|        }
  139|       |        /* 0 : init. lock */
  140|   823k|        if (ossl_asn1_do_lock(pval, 0, it) < 0) {
  ------------------
  |  Branch (140:13): [True: 0, False: 823k]
  ------------------
  141|      0|            if (!embed) {
  ------------------
  |  Branch (141:17): [True: 0, False: 0]
  ------------------
  142|      0|                OPENSSL_free(*pval);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  143|      0|                *pval = NULL;
  144|      0|            }
  145|      0|            goto asn1err;
  146|      0|        }
  147|   823k|        ossl_asn1_enc_init(pval, it);
  148|  2.86M|        for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) {
  ------------------
  |  Branch (148:41): [True: 2.04M, False: 823k]
  ------------------
  149|  2.04M|            pseqval = ossl_asn1_get_field_ptr(pval, tt);
  150|  2.04M|            if (!asn1_template_new(pseqval, tt, libctx, propq))
  ------------------
  |  Branch (150:17): [True: 0, False: 2.04M]
  ------------------
  151|      0|                goto asn1err2;
  152|  2.04M|        }
  153|   823k|        if (asn1_cb && !asn1_cb(ASN1_OP_NEW_POST, pval, it, NULL))
  ------------------
  |  |  732|  31.9k|#define ASN1_OP_NEW_POST 1
  ------------------
  |  Branch (153:13): [True: 31.9k, False: 791k]
  |  Branch (153:24): [True: 0, False: 31.9k]
  ------------------
  154|      0|            goto auxerr2;
  155|   823k|        break;
  156|  2.50M|    }
  157|  2.48M|    return 1;
  158|       |
  159|      0|asn1err2:
  160|      0|    ossl_asn1_item_embed_free(pval, it, embed);
  161|      0|asn1err:
  162|      0|    ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  163|      0|    return 0;
  164|       |
  165|      0|auxerr2:
  166|      0|    ossl_asn1_item_embed_free(pval, it, embed);
  167|      0|auxerr:
  168|       |    ERR_raise(ERR_LIB_ASN1, ASN1_R_AUX_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  169|      0|    return 0;
  170|      0|}
tasn_new.c:asn1_template_new:
  207|  2.04M|{
  208|  2.04M|    const ASN1_ITEM *it = ASN1_ITEM_ptr(tt->item);
  ------------------
  |  |  428|  2.04M|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  209|  2.04M|    int embed = tt->flags & ASN1_TFLG_EMBED;
  ------------------
  |  |  586|  2.04M|#define ASN1_TFLG_EMBED (0x1 << 12)
  ------------------
  210|  2.04M|    ASN1_VALUE *tval;
  211|  2.04M|    int ret;
  212|  2.04M|    if (embed) {
  ------------------
  |  Branch (212:9): [True: 302k, False: 1.74M]
  ------------------
  213|   302k|        tval = (ASN1_VALUE *)pval;
  214|   302k|        pval = &tval;
  215|   302k|    }
  216|  2.04M|    if (tt->flags & ASN1_TFLG_OPTIONAL) {
  ------------------
  |  |  512|  2.04M|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (216:9): [True: 397k, False: 1.64M]
  ------------------
  217|   397k|        asn1_template_clear(pval, tt);
  218|   397k|        return 1;
  219|   397k|    }
  220|       |    /* If ANY DEFINED BY nothing to do */
  221|       |
  222|  1.64M|    if (tt->flags & ASN1_TFLG_ADB_MASK) {
  ------------------
  |  |  572|  1.64M|#define ASN1_TFLG_ADB_MASK (0x3 << 8)
  ------------------
  |  Branch (222:9): [True: 0, False: 1.64M]
  ------------------
  223|      0|        *pval = NULL;
  224|      0|        return 1;
  225|      0|    }
  226|       |    /* If SET OF or SEQUENCE OF, its a STACK */
  227|  1.64M|    if (tt->flags & ASN1_TFLG_SK_MASK) {
  ------------------
  |  |  528|  1.64M|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (227:9): [True: 0, False: 1.64M]
  ------------------
  228|      0|        STACK_OF(ASN1_VALUE) *skval;
  ------------------
  |  |   33|      0|#define STACK_OF(type) struct stack_st_##type
  ------------------
  229|      0|        skval = sk_ASN1_VALUE_new_null();
  ------------------
  |  |  890|      0|#define sk_ASN1_VALUE_new_null() ((STACK_OF(ASN1_VALUE) *)OPENSSL_sk_new_null())
  ------------------
  230|      0|        if (!skval) {
  ------------------
  |  Branch (230:13): [True: 0, False: 0]
  ------------------
  231|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  232|      0|            ret = 0;
  233|      0|            goto done;
  234|      0|        }
  235|      0|        *pval = (ASN1_VALUE *)skval;
  236|      0|        ret = 1;
  237|      0|        goto done;
  238|      0|    }
  239|       |    /* Otherwise pass it back to the item routine */
  240|  1.64M|    ret = asn1_item_embed_new(pval, it, embed, libctx, propq);
  241|  1.64M|done:
  242|  1.64M|    return ret;
  243|  1.64M|}
tasn_new.c:asn1_template_clear:
  246|   397k|{
  247|       |    /* If ADB or STACK just NULL the field */
  248|   397k|    if (tt->flags & (ASN1_TFLG_ADB_MASK | ASN1_TFLG_SK_MASK))
  ------------------
  |  |  572|   397k|#define ASN1_TFLG_ADB_MASK (0x3 << 8)
  ------------------
                  if (tt->flags & (ASN1_TFLG_ADB_MASK | ASN1_TFLG_SK_MASK))
  ------------------
  |  |  528|   397k|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (248:9): [True: 31.9k, False: 365k]
  ------------------
  249|  31.9k|        *pval = NULL;
  250|   365k|    else
  251|   365k|        asn1_item_clear(pval, ASN1_ITEM_ptr(tt->item));
  ------------------
  |  |  428|   365k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  252|   397k|}
tasn_new.c:asn1_item_clear:
  173|   365k|{
  174|   365k|    const ASN1_EXTERN_FUNCS *ef;
  175|       |
  176|   365k|    switch (it->itype) {
  ------------------
  |  Branch (176:13): [True: 365k, False: 0]
  ------------------
  177|       |
  178|      0|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|      0|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (178:5): [True: 0, False: 365k]
  ------------------
  179|      0|        ef = it->funcs;
  180|      0|        if (ef && ef->asn1_ex_clear)
  ------------------
  |  Branch (180:13): [True: 0, False: 0]
  |  Branch (180:19): [True: 0, False: 0]
  ------------------
  181|      0|            ef->asn1_ex_clear(pval, it);
  182|      0|        else
  183|      0|            *pval = NULL;
  184|      0|        break;
  185|       |
  186|   365k|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|   365k|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (186:5): [True: 365k, False: 0]
  ------------------
  187|   365k|        if (it->templates)
  ------------------
  |  Branch (187:13): [True: 0, False: 365k]
  ------------------
  188|      0|            asn1_template_clear(pval, it->templates);
  189|   365k|        else
  190|   365k|            asn1_primitive_clear(pval, it);
  191|   365k|        break;
  192|       |
  193|      0|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|      0|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (193:5): [True: 0, False: 365k]
  ------------------
  194|      0|        asn1_primitive_clear(pval, it);
  195|      0|        break;
  196|       |
  197|      0|    case ASN1_ITYPE_CHOICE:
  ------------------
  |  |   84|      0|#define ASN1_ITYPE_CHOICE 0x2
  ------------------
  |  Branch (197:5): [True: 0, False: 365k]
  ------------------
  198|      0|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|      0|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (198:5): [True: 0, False: 365k]
  ------------------
  199|      0|    case ASN1_ITYPE_NDEF_SEQUENCE:
  ------------------
  |  |   88|      0|#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
  ------------------
  |  Branch (199:5): [True: 0, False: 365k]
  ------------------
  200|       |        *pval = NULL;
  201|      0|        break;
  202|   365k|    }
  203|   365k|}
tasn_new.c:asn1_primitive_clear:
  326|   365k|{
  327|   365k|    int utype;
  328|   365k|    if (it && it->funcs) {
  ------------------
  |  Branch (328:9): [True: 365k, False: 0]
  |  Branch (328:15): [True: 0, False: 365k]
  ------------------
  329|      0|        const ASN1_PRIMITIVE_FUNCS *pf = it->funcs;
  330|      0|        if (pf->prim_clear)
  ------------------
  |  Branch (330:13): [True: 0, False: 0]
  ------------------
  331|      0|            pf->prim_clear(pval, it);
  332|      0|        else
  333|      0|            *pval = NULL;
  334|      0|        return;
  335|      0|    }
  336|   365k|    if (!it || (it->itype == ASN1_ITYPE_MSTRING))
  ------------------
  |  |   87|   365k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (336:9): [True: 0, False: 365k]
  |  Branch (336:16): [True: 0, False: 365k]
  ------------------
  337|      0|        utype = -1;
  338|   365k|    else
  339|   365k|        utype = it->utype;
  340|   365k|    if (utype == V_ASN1_BOOLEAN)
  ------------------
  |  |   65|   365k|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (340:9): [True: 110k, False: 255k]
  ------------------
  341|   110k|        *(ASN1_BOOLEAN *)pval = it->size;
  342|   255k|    else
  343|   255k|        *pval = NULL;
  344|   365k|}
tasn_new.c:asn1_primitive_new:
  261|  1.56M|{
  262|  1.56M|    ASN1_TYPE *typ;
  263|  1.56M|    ASN1_STRING *str;
  264|  1.56M|    int utype;
  265|       |
  266|  1.56M|    if (!it)
  ------------------
  |  Branch (266:9): [True: 0, False: 1.56M]
  ------------------
  267|      0|        return 0;
  268|       |
  269|  1.56M|    if (it->funcs) {
  ------------------
  |  Branch (269:9): [True: 0, False: 1.56M]
  ------------------
  270|      0|        const ASN1_PRIMITIVE_FUNCS *pf = it->funcs;
  271|      0|        if (embed) {
  ------------------
  |  Branch (271:13): [True: 0, False: 0]
  ------------------
  272|      0|            if (pf->prim_clear) {
  ------------------
  |  Branch (272:17): [True: 0, False: 0]
  ------------------
  273|      0|                pf->prim_clear(pval, it);
  274|      0|                return 1;
  275|      0|            }
  276|      0|        } else if (pf->prim_new) {
  ------------------
  |  Branch (276:20): [True: 0, False: 0]
  ------------------
  277|      0|            return pf->prim_new(pval, it);
  278|      0|        }
  279|      0|    }
  280|       |
  281|  1.56M|    if (it->itype == ASN1_ITYPE_MSTRING)
  ------------------
  |  |   87|  1.56M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (281:9): [True: 521k, False: 1.04M]
  ------------------
  282|   521k|        utype = -1;
  283|  1.04M|    else
  284|  1.04M|        utype = it->utype;
  285|  1.56M|    switch (utype) {
  286|   727k|    case V_ASN1_OBJECT:
  ------------------
  |  |   70|   727k|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (286:5): [True: 727k, False: 837k]
  ------------------
  287|   727k|        *pval = (ASN1_VALUE *)OBJ_nid2obj(NID_undef);
  ------------------
  |  |   18|   727k|#define NID_undef                       0
  ------------------
  288|   727k|        return 1;
  289|       |
  290|      0|    case V_ASN1_BOOLEAN:
  ------------------
  |  |   65|      0|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (290:5): [True: 0, False: 1.56M]
  ------------------
  291|      0|        *(ASN1_BOOLEAN *)pval = it->size;
  292|      0|        return 1;
  293|       |
  294|      0|    case V_ASN1_NULL:
  ------------------
  |  |   69|      0|#define V_ASN1_NULL 5
  ------------------
  |  Branch (294:5): [True: 0, False: 1.56M]
  ------------------
  295|      0|        *pval = (ASN1_VALUE *)1;
  296|      0|        return 1;
  297|       |
  298|   142k|    case V_ASN1_ANY:
  ------------------
  |  |   60|   142k|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (298:5): [True: 142k, False: 1.42M]
  ------------------
  299|   142k|        if ((typ = OPENSSL_malloc(sizeof(*typ))) == NULL)
  ------------------
  |  |  106|   142k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (299:13): [True: 0, False: 142k]
  ------------------
  300|      0|            return 0;
  301|   142k|        typ->value.ptr = NULL;
  302|   142k|        typ->type = -1;
  303|   142k|        *pval = (ASN1_VALUE *)typ;
  304|   142k|        break;
  305|       |
  306|   695k|    default:
  ------------------
  |  Branch (306:5): [True: 695k, False: 869k]
  ------------------
  307|   695k|        if (embed) {
  ------------------
  |  Branch (307:13): [True: 174k, False: 521k]
  ------------------
  308|   174k|            str = *(ASN1_STRING **)pval;
  309|   174k|            memset(str, 0, sizeof(*str));
  310|   174k|            str->type = utype;
  311|   174k|            str->flags = ASN1_STRING_FLAG_EMBED;
  ------------------
  |  |  185|   174k|#define ASN1_STRING_FLAG_EMBED 0x080
  ------------------
  312|   521k|        } else {
  313|   521k|            str = ASN1_STRING_type_new(utype);
  314|   521k|            *pval = (ASN1_VALUE *)str;
  315|   521k|        }
  316|   695k|        if (it->itype == ASN1_ITYPE_MSTRING && str)
  ------------------
  |  |   87|  1.39M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (316:13): [True: 521k, False: 174k]
  |  Branch (316:48): [True: 521k, False: 0]
  ------------------
  317|   521k|            str->flags |= ASN1_STRING_FLAG_MSTRING;
  ------------------
  |  |  183|   521k|#define ASN1_STRING_FLAG_MSTRING 0x040
  ------------------
  318|   695k|        break;
  319|  1.56M|    }
  320|   837k|    if (*pval)
  ------------------
  |  Branch (320:9): [True: 837k, False: 0]
  ------------------
  321|   837k|        return 1;
  322|      0|    return 0;
  323|   837k|}

ASN1_OCTET_STRING_free:
   24|   127k|    {                                                          \
   25|   127k|        ASN1_STRING_free(x);                                   \
   26|   127k|    }
ASN1_INTEGER_new:
   20|  31.9k|    {                                                          \
   21|  31.9k|        return ASN1_STRING_type_new(V_##sname);                \
  ------------------
  |  |   66|  31.9k|#define V_ASN1_INTEGER 2
  ------------------
   22|  31.9k|    }                                                          \
ASN1_BIT_STRING_new:
   20|  95.9k|    {                                                          \
   21|  95.9k|        return ASN1_STRING_type_new(V_##sname);                \
  ------------------
  |  |   67|  95.9k|#define V_ASN1_BIT_STRING 3
  ------------------
   22|  95.9k|    }                                                          \
ASN1_BIT_STRING_free:
   24|  63.9k|    {                                                          \
   25|  63.9k|        ASN1_STRING_free(x);                                   \
   26|  63.9k|    }

ossl_asn1_do_lock:
   69|  1.71M|{
   70|  1.71M|    const ASN1_AUX *aux;
   71|  1.71M|    CRYPTO_RWLOCK **lock;
   72|  1.71M|    CRYPTO_REF_COUNT *refcnt;
   73|  1.71M|    int ret = -1;
   74|       |
   75|  1.71M|    if ((it->itype != ASN1_ITYPE_SEQUENCE)
  ------------------
  |  |   83|  1.71M|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (75:9): [True: 0, False: 1.71M]
  ------------------
   76|      0|        && (it->itype != ASN1_ITYPE_NDEF_SEQUENCE))
  ------------------
  |  |   88|      0|#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
  ------------------
  |  Branch (76:12): [True: 0, False: 0]
  ------------------
   77|      0|        return 0;
   78|  1.71M|    aux = it->funcs;
   79|  1.71M|    if (aux == NULL || (aux->flags & ASN1_AFLG_REFCOUNT) == 0)
  ------------------
  |  |  721|   159k|#define ASN1_AFLG_REFCOUNT 1
  ------------------
  |  Branch (79:9): [True: 1.55M, False: 159k]
  |  Branch (79:24): [True: 63.9k, False: 95.9k]
  ------------------
   80|  1.61M|        return 0;
   81|  95.9k|    lock = offset2ptr(*pval, aux->ref_lock);
  ------------------
  |  |   23|  95.9k|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
   82|  95.9k|    refcnt = offset2ptr(*pval, aux->ref_offset);
  ------------------
  |  |   23|  95.9k|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
   83|       |
   84|  95.9k|    switch (op) {
  ------------------
  |  Branch (84:13): [True: 95.9k, False: 0]
  ------------------
   85|  31.9k|    case 0:
  ------------------
  |  Branch (85:5): [True: 31.9k, False: 63.9k]
  ------------------
   86|  31.9k|        if (!CRYPTO_NEW_REF(refcnt, 1))
  ------------------
  |  Branch (86:13): [True: 0, False: 31.9k]
  ------------------
   87|      0|            return -1;
   88|  31.9k|        *lock = CRYPTO_THREAD_lock_new();
   89|  31.9k|        if (*lock == NULL) {
  ------------------
  |  Branch (89:13): [True: 0, False: 31.9k]
  ------------------
   90|      0|            CRYPTO_FREE_REF(refcnt);
   91|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   92|      0|            return -1;
   93|      0|        }
   94|  31.9k|        ret = 1;
   95|  31.9k|        break;
   96|      0|    case 1:
  ------------------
  |  Branch (96:5): [True: 0, False: 95.9k]
  ------------------
   97|      0|        if (!CRYPTO_UP_REF(refcnt, &ret))
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|            return -1;
   99|      0|        break;
  100|  63.9k|    case -1:
  ------------------
  |  Branch (100:5): [True: 63.9k, False: 31.9k]
  ------------------
  101|  63.9k|        if (!CRYPTO_DOWN_REF(refcnt, &ret))
  ------------------
  |  Branch (101:13): [True: 0, False: 63.9k]
  ------------------
  102|      0|            return -1; /* failed */
  103|  63.9k|        REF_PRINT_EX(it->sname, ret, (void *)it);
  ------------------
  |  |  299|  63.9k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  ------------------
  |  |  |  |  297|  63.9k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|  63.9k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  104|  63.9k|        REF_ASSERT_ISNT(ret < 0);
  ------------------
  |  |  293|  63.9k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 63.9k]
  |  |  ------------------
  ------------------
  105|  63.9k|        if (ret == 0) {
  ------------------
  |  Branch (105:13): [True: 31.9k, False: 31.9k]
  ------------------
  106|  31.9k|            CRYPTO_THREAD_lock_free(*lock);
  107|  31.9k|            *lock = NULL;
  108|  31.9k|            CRYPTO_FREE_REF(refcnt);
  109|  31.9k|        }
  110|  63.9k|        break;
  111|  95.9k|    }
  112|       |
  113|  95.9k|    return ret;
  114|  95.9k|}
ossl_asn1_enc_init:
  142|   823k|{
  143|   823k|    ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it);
  144|       |
  145|   823k|    if (enc != NULL) {
  ------------------
  |  Branch (145:9): [True: 31.9k, False: 791k]
  ------------------
  146|       |        enc->enc = NULL;
  147|  31.9k|        enc->len = 0;
  148|  31.9k|        enc->modified = 1;
  149|  31.9k|    }
  150|   823k|}
ossl_asn1_enc_free:
  153|   855k|{
  154|   855k|    ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it);
  155|       |
  156|   855k|    if (enc != NULL) {
  ------------------
  |  Branch (156:9): [True: 31.9k, False: 823k]
  ------------------
  157|  31.9k|        OPENSSL_free(enc->enc);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  158|       |        enc->enc = NULL;
  159|  31.9k|        enc->len = 0;
  160|  31.9k|        enc->modified = 1;
  161|  31.9k|    }
  162|   855k|}
ossl_asn1_enc_save:
  166|   713k|{
  167|   713k|    ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it);
  168|       |
  169|   713k|    if (enc == NULL)
  ------------------
  |  Branch (169:9): [True: 681k, False: 31.9k]
  ------------------
  170|   681k|        return 1;
  171|       |
  172|  31.9k|    OPENSSL_free(enc->enc);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  173|  31.9k|    if (inlen <= 0) {
  ------------------
  |  Branch (173:9): [True: 0, False: 31.9k]
  ------------------
  174|      0|        enc->enc = NULL;
  175|      0|        return 0;
  176|      0|    }
  177|  31.9k|    if ((enc->enc = OPENSSL_malloc(inlen)) == NULL)
  ------------------
  |  |  106|  31.9k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (177:9): [True: 0, False: 31.9k]
  ------------------
  178|      0|        return 0;
  179|  31.9k|    memcpy(enc->enc, in, inlen);
  180|  31.9k|    enc->len = inlen;
  181|  31.9k|    enc->modified = 0;
  182|       |
  183|  31.9k|    return 1;
  184|  31.9k|}
ossl_asn1_enc_restore:
  188|   685k|{
  189|   685k|    const ASN1_ENCODING *enc = asn1_get_const_enc_ptr(pval, it);
  190|       |
  191|   685k|    if (enc == NULL || enc->modified)
  ------------------
  |  Branch (191:9): [True: 685k, False: 0]
  |  Branch (191:24): [True: 0, False: 0]
  ------------------
  192|   685k|        return 0;
  193|      0|    if (out) {
  ------------------
  |  Branch (193:9): [True: 0, False: 0]
  ------------------
  194|      0|        memcpy(*out, enc->enc, enc->len);
  195|      0|        *out += enc->len;
  196|      0|    }
  197|      0|    if (len != NULL)
  ------------------
  |  Branch (197:9): [True: 0, False: 0]
  ------------------
  198|      0|        *len = enc->len;
  199|      0|    return 1;
  200|   685k|}
ossl_asn1_get_field_ptr:
  204|  5.99M|{
  205|  5.99M|    ASN1_VALUE **pvaltmp = offset2ptr(*pval, tt->offset);
  ------------------
  |  |   23|  5.99M|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
  206|       |
  207|       |    /*
  208|       |     * NOTE for BOOLEAN types the field is just a plain int so we can't
  209|       |     * return int **, so settle for (int *).
  210|       |     */
  211|  5.99M|    return pvaltmp;
  212|  5.99M|}
ossl_asn1_get_const_field_ptr:
  217|  1.82M|{
  218|  1.82M|    return offset2ptr(*pval, tt->offset);
  ------------------
  |  |   23|  1.82M|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
  219|  1.82M|}
ossl_asn1_do_adb:
  229|  5.78M|{
  230|  5.78M|    const ASN1_ADB *adb;
  231|  5.78M|    const ASN1_ADB_TABLE *atbl;
  232|  5.78M|    long selector;
  233|  5.78M|    const ASN1_VALUE **sfld;
  234|  5.78M|    int i;
  235|       |
  236|  5.78M|    if ((tt->flags & ASN1_TFLG_ADB_MASK) == 0)
  ------------------
  |  |  572|  5.78M|#define ASN1_TFLG_ADB_MASK (0x3 << 8)
  ------------------
  |  Branch (236:9): [True: 5.78M, False: 0]
  ------------------
  237|  5.78M|        return tt;
  238|       |
  239|       |    /* Else ANY DEFINED BY ... get the table */
  240|      0|    adb = ASN1_ADB_ptr(tt->item);
  ------------------
  |  |   91|      0|#define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)((iptr)()))
  ------------------
  241|       |
  242|       |    /* Get the selector field */
  243|      0|    sfld = offset2ptr(val, adb->offset);
  ------------------
  |  |   23|      0|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
  244|       |
  245|       |    /* Check if NULL */
  246|      0|    if (*sfld == NULL) {
  ------------------
  |  Branch (246:9): [True: 0, False: 0]
  ------------------
  247|      0|        if (adb->null_tt == NULL)
  ------------------
  |  Branch (247:13): [True: 0, False: 0]
  ------------------
  248|      0|            goto err;
  249|      0|        return adb->null_tt;
  250|      0|    }
  251|       |
  252|       |    /*
  253|       |     * Convert type to a long: NB: don't check for NID_undef here because it
  254|       |     * might be a legitimate value in the table
  255|       |     */
  256|      0|    if ((tt->flags & ASN1_TFLG_ADB_OID) != 0)
  ------------------
  |  |  574|      0|#define ASN1_TFLG_ADB_OID (0x1 << 8)
  ------------------
  |  Branch (256:9): [True: 0, False: 0]
  ------------------
  257|      0|        selector = OBJ_obj2nid((ASN1_OBJECT *)*sfld);
  258|      0|    else
  259|      0|        selector = ASN1_INTEGER_get((ASN1_INTEGER *)*sfld);
  260|       |
  261|       |    /* Let application callback translate value */
  262|      0|    if (adb->adb_cb != NULL && adb->adb_cb(&selector) == 0) {
  ------------------
  |  Branch (262:9): [True: 0, False: 0]
  |  Branch (262:32): [True: 0, False: 0]
  ------------------
  263|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  264|      0|        return NULL;
  265|      0|    }
  266|       |
  267|       |    /*
  268|       |     * Try to find matching entry in table Maybe should check application
  269|       |     * types first to allow application override? Might also be useful to
  270|       |     * have a flag which indicates table is sorted and we can do a binary
  271|       |     * search. For now stick to a linear search.
  272|       |     */
  273|       |
  274|      0|    for (atbl = adb->tbl, i = 0; i < adb->tblcount; i++, atbl++)
  ------------------
  |  Branch (274:34): [True: 0, False: 0]
  ------------------
  275|      0|        if (atbl->value == selector)
  ------------------
  |  Branch (275:13): [True: 0, False: 0]
  ------------------
  276|      0|            return &atbl->tt;
  277|       |
  278|       |    /* FIXME: need to search application table too */
  279|       |
  280|       |    /* No match, return default type */
  281|      0|    if (!adb->default_tt)
  ------------------
  |  Branch (281:9): [True: 0, False: 0]
  ------------------
  282|      0|        goto err;
  283|      0|    return adb->default_tt;
  284|       |
  285|      0|err:
  286|       |    /* FIXME: should log the value or OID of unsupported type */
  287|      0|    if (nullerr)
  ------------------
  |  Branch (287:9): [True: 0, False: 0]
  ------------------
  288|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  289|       |    return NULL;
  290|      0|}
tasn_utl.c:asn1_get_enc_ptr:
  117|  2.39M|{
  118|  2.39M|    const ASN1_AUX *aux;
  119|       |
  120|  2.39M|    if (pval == NULL || *pval == NULL)
  ------------------
  |  Branch (120:9): [True: 0, False: 2.39M]
  |  Branch (120:25): [True: 0, False: 2.39M]
  ------------------
  121|      0|        return NULL;
  122|  2.39M|    aux = it->funcs;
  123|  2.39M|    if (aux == NULL || (aux->flags & ASN1_AFLG_ENCODING) == 0)
  ------------------
  |  |  723|   215k|#define ASN1_AFLG_ENCODING 2
  ------------------
  |  Branch (123:9): [True: 2.17M, False: 215k]
  |  Branch (123:24): [True: 119k, False: 95.9k]
  ------------------
  124|  2.29M|        return NULL;
  125|  95.9k|    return offset2ptr(*pval, aux->enc_offset);
  ------------------
  |  |   23|  95.9k|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
  126|  2.39M|}
tasn_utl.c:asn1_get_const_enc_ptr:
  130|   685k|{
  131|   685k|    const ASN1_AUX *aux;
  132|       |
  133|   685k|    if (pval == NULL || *pval == NULL)
  ------------------
  |  Branch (133:9): [True: 0, False: 685k]
  |  Branch (133:25): [True: 0, False: 685k]
  ------------------
  134|      0|        return NULL;
  135|   685k|    aux = it->funcs;
  136|   685k|    if (aux == NULL || (aux->flags & ASN1_AFLG_ENCODING) == 0)
  ------------------
  |  |  723|      0|#define ASN1_AFLG_ENCODING 2
  ------------------
  |  Branch (136:9): [True: 685k, False: 0]
  |  Branch (136:24): [True: 0, False: 0]
  ------------------
  137|   685k|        return NULL;
  138|      0|    return offset2ptr(*pval, aux->enc_offset);
  ------------------
  |  |   23|      0|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
  139|   685k|}

X509_ALGOR_get0:
   73|  72.7k|{
   74|  72.7k|    if (paobj)
  ------------------
  |  Branch (74:9): [True: 55.1k, False: 17.5k]
  ------------------
   75|  55.1k|        *paobj = algor->algorithm;
   76|  72.7k|    if (pptype) {
  ------------------
  |  Branch (76:9): [True: 40.7k, False: 31.9k]
  ------------------
   77|  40.7k|        if (algor->parameter == NULL) {
  ------------------
  |  Branch (77:13): [True: 0, False: 40.7k]
  ------------------
   78|      0|            *pptype = V_ASN1_UNDEF;
  ------------------
  |  |   62|      0|#define V_ASN1_UNDEF -1
  ------------------
   79|      0|            return;
   80|      0|        } else
   81|  40.7k|            *pptype = algor->parameter->type;
   82|  40.7k|        if (ppval)
  ------------------
  |  Branch (82:13): [True: 40.7k, False: 0]
  ------------------
   83|  40.7k|            *ppval = algor->parameter->value.ptr;
   84|  40.7k|    }
   85|  72.7k|}

BIGNUM_it:
   57|  46.4k|ASN1_ITEM_start(BIGNUM)
  ------------------
  |  |   97|  46.4k|    {                                  \
  |  |   98|  46.4k|        static const ASN1_ITEM local_it = {
  ------------------
   58|  46.4k|    ASN1_ITYPE_PRIMITIVE,
  ------------------
  |  |   82|  46.4k|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
   59|  46.4k|    V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" ASN1_ITEM_end(BIGNUM)
  ------------------
  |  |   66|  46.4k|#define V_ASN1_INTEGER 2
  ------------------
                  V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" ASN1_ITEM_end(BIGNUM)
  ------------------
  |  |  104|  46.4k|    }                         \
  |  |  105|  46.4k|    ;                         \
  |  |  106|  46.4k|    return &local_it;         \
  |  |  107|  46.4k|    }
  ------------------
x_bignum.c:bn_new:
   65|  46.4k|{
   66|  46.4k|    *pval = (ASN1_VALUE *)BN_new();
   67|  46.4k|    if (*pval != NULL)
  ------------------
  |  Branch (67:9): [True: 46.4k, False: 0]
  ------------------
   68|  46.4k|        return 1;
   69|      0|    else
   70|      0|        return 0;
   71|  46.4k|}
x_bignum.c:bn_c2i:
  116|  46.4k|{
  117|  46.4k|    BIGNUM *bn;
  118|       |
  119|  46.4k|    if (*pval == NULL && !bn_new(pval, it))
  ------------------
  |  Branch (119:9): [True: 46.4k, False: 0]
  |  Branch (119:26): [True: 0, False: 46.4k]
  ------------------
  120|      0|        return 0;
  121|  46.4k|    bn = (BIGNUM *)*pval;
  122|  46.4k|    if (!BN_bin2bn(cont, len, bn)) {
  ------------------
  |  Branch (122:9): [True: 0, False: 46.4k]
  ------------------
  123|      0|        bn_free(pval, it);
  124|      0|        return 0;
  125|      0|    }
  126|  46.4k|    return 1;
  127|  46.4k|}

X509_INFO_new:
   17|  31.9k|{
   18|  31.9k|    X509_INFO *ret;
   19|       |
   20|  31.9k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   21|  31.9k|    if (ret == NULL)
  ------------------
  |  Branch (21:9): [True: 0, False: 31.9k]
  ------------------
   22|      0|        return NULL;
   23|       |
   24|  31.9k|    return ret;
   25|  31.9k|}
X509_INFO_free:
   28|  32.1k|{
   29|  32.1k|    if (x == NULL)
  ------------------
  |  Branch (29:9): [True: 219, False: 31.9k]
  ------------------
   30|    219|        return;
   31|       |
   32|  31.9k|    X509_free(x->x509);
   33|  31.9k|    X509_CRL_free(x->crl);
   34|  31.9k|    X509_PKEY_free(x->x_pkey);
   35|  31.9k|    OPENSSL_free(x->enc_data);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   36|  31.9k|    OPENSSL_free(x);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   37|  31.9k|}

X509_PKEY_free:
   36|  31.9k|{
   37|  31.9k|    if (x == NULL)
  ------------------
  |  Branch (37:9): [True: 31.9k, False: 0]
  ------------------
   38|  31.9k|        return;
   39|       |
   40|      0|    X509_ALGOR_free(x->enc_algor);
   41|      0|    ASN1_OCTET_STRING_free(x->enc_pkey);
   42|      0|    EVP_PKEY_free(x->dec_pkey);
   43|      0|    if (x->key_free)
  ------------------
  |  Branch (43:9): [True: 0, False: 0]
  ------------------
   44|      0|        OPENSSL_free(x->key_data);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   45|      0|    OPENSSL_free(x);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   46|      0|}

ossl_encode_der_length:
   40|  26.2k|{
   41|  26.2k|    if (cont_len > 0xffff)
  ------------------
  |  Branch (41:9): [True: 0, False: 26.2k]
  ------------------
   42|      0|        return 0; /* Too large for supported length encodings */
   43|       |
   44|  26.2k|    if (cont_len > 0xff) {
  ------------------
  |  Branch (44:9): [True: 0, False: 26.2k]
  ------------------
   45|      0|        if (!WPACKET_put_bytes_u8(pkt, 0x82)
  ------------------
  |  |  889|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (45:13): [True: 0, False: 0]
  ------------------
   46|      0|            || !WPACKET_put_bytes_u16(pkt, cont_len))
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (46:16): [True: 0, False: 0]
  ------------------
   47|      0|            return 0;
   48|  26.2k|    } else {
   49|  26.2k|        if (cont_len > 0x7f
  ------------------
  |  Branch (49:13): [True: 0, False: 26.2k]
  ------------------
   50|      0|            && !WPACKET_put_bytes_u8(pkt, 0x81))
  ------------------
  |  |  889|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (50:16): [True: 0, False: 0]
  ------------------
   51|      0|            return 0;
   52|  26.2k|        if (!WPACKET_put_bytes_u8(pkt, cont_len))
  ------------------
  |  |  889|  26.2k|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (52:13): [True: 0, False: 26.2k]
  ------------------
   53|      0|            return 0;
   54|  26.2k|    }
   55|       |
   56|  26.2k|    return 1;
   57|  26.2k|}
ossl_encode_der_integer:
   67|  17.5k|{
   68|  17.5k|    unsigned char *bnbytes;
   69|  17.5k|    size_t cont_len;
   70|       |
   71|  17.5k|    if (BN_is_negative(n))
  ------------------
  |  Branch (71:9): [True: 0, False: 17.5k]
  ------------------
   72|      0|        return 0;
   73|       |
   74|       |    /*
   75|       |     * Calculate the ASN.1 INTEGER DER content length for n.
   76|       |     * This is the number of whole bytes required to represent n (i.e. rounded
   77|       |     * down), plus one.
   78|       |     * If n is zero then the content is a single zero byte (length = 1).
   79|       |     * If the number of bits of n is a multiple of 8 then an extra zero padding
   80|       |     * byte is included to ensure that the value is still treated as positive
   81|       |     * in the INTEGER two's complement representation.
   82|       |     */
   83|  17.5k|    cont_len = BN_num_bits(n) / 8 + 1;
   84|       |
   85|  17.5k|    if (!WPACKET_start_sub_packet(pkt)
  ------------------
  |  Branch (85:9): [True: 0, False: 17.5k]
  ------------------
   86|  17.5k|        || !WPACKET_put_bytes_u8(pkt, ID_INTEGER)
  ------------------
  |  |  889|  35.0k|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (86:12): [True: 0, False: 17.5k]
  ------------------
   87|  17.5k|        || !ossl_encode_der_length(pkt, cont_len)
  ------------------
  |  Branch (87:12): [True: 0, False: 17.5k]
  ------------------
   88|  17.5k|        || !WPACKET_allocate_bytes(pkt, cont_len, &bnbytes)
  ------------------
  |  Branch (88:12): [True: 0, False: 17.5k]
  ------------------
   89|  17.5k|        || !WPACKET_close(pkt))
  ------------------
  |  Branch (89:12): [True: 0, False: 17.5k]
  ------------------
   90|      0|        return 0;
   91|       |
   92|  17.5k|    if (bnbytes != NULL
  ------------------
  |  Branch (92:9): [True: 0, False: 17.5k]
  ------------------
   93|      0|        && BN_bn2binpad(n, bnbytes, (int)cont_len) != (int)cont_len)
  ------------------
  |  Branch (93:12): [True: 0, False: 0]
  ------------------
   94|      0|        return 0;
   95|       |
   96|  17.5k|    return 1;
   97|  17.5k|}
ossl_encode_der_dsa_sig:
  107|  8.76k|{
  108|  8.76k|    WPACKET tmppkt, *dummypkt;
  109|  8.76k|    size_t cont_len;
  110|  8.76k|    int isnull = WPACKET_is_null_buf(pkt);
  111|       |
  112|  8.76k|    if (!WPACKET_start_sub_packet(pkt))
  ------------------
  |  Branch (112:9): [True: 0, False: 8.76k]
  ------------------
  113|      0|        return 0;
  114|       |
  115|  8.76k|    if (!isnull) {
  ------------------
  |  Branch (115:9): [True: 0, False: 8.76k]
  ------------------
  116|      0|        if (!WPACKET_init_null(&tmppkt, 0))
  ------------------
  |  Branch (116:13): [True: 0, False: 0]
  ------------------
  117|      0|            return 0;
  118|      0|        dummypkt = &tmppkt;
  119|  8.76k|    } else {
  120|       |        /* If the input packet has a NULL buffer, we don't need a dummy packet */
  121|  8.76k|        dummypkt = pkt;
  122|  8.76k|    }
  123|       |
  124|       |    /* Calculate the content length */
  125|  8.76k|    if (!ossl_encode_der_integer(dummypkt, r)
  ------------------
  |  Branch (125:9): [True: 0, False: 8.76k]
  ------------------
  126|  8.76k|        || !ossl_encode_der_integer(dummypkt, s)
  ------------------
  |  Branch (126:12): [True: 0, False: 8.76k]
  ------------------
  127|  8.76k|        || !WPACKET_get_length(dummypkt, &cont_len)
  ------------------
  |  Branch (127:12): [True: 0, False: 8.76k]
  ------------------
  128|  8.76k|        || (!isnull && !WPACKET_finish(dummypkt))) {
  ------------------
  |  Branch (128:13): [True: 0, False: 8.76k]
  |  Branch (128:24): [True: 0, False: 0]
  ------------------
  129|      0|        if (!isnull)
  ------------------
  |  Branch (129:13): [True: 0, False: 0]
  ------------------
  130|      0|            WPACKET_cleanup(dummypkt);
  131|      0|        return 0;
  132|      0|    }
  133|       |
  134|       |    /* Add the tag and length bytes */
  135|  8.76k|    if (!WPACKET_put_bytes_u8(pkt, ID_SEQUENCE)
  ------------------
  |  |  889|  17.5k|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (135:9): [True: 0, False: 8.76k]
  ------------------
  136|  8.76k|        || !ossl_encode_der_length(pkt, cont_len)
  ------------------
  |  Branch (136:12): [True: 0, False: 8.76k]
  ------------------
  137|       |        /*
  138|       |         * Really encode the integers. We already wrote to the main pkt
  139|       |         * if it had a NULL buffer, so don't do it again
  140|       |         */
  141|  8.76k|        || (!isnull && !ossl_encode_der_integer(pkt, r))
  ------------------
  |  Branch (141:13): [True: 0, False: 8.76k]
  |  Branch (141:24): [True: 0, False: 0]
  ------------------
  142|  8.76k|        || (!isnull && !ossl_encode_der_integer(pkt, s))
  ------------------
  |  Branch (142:13): [True: 0, False: 8.76k]
  |  Branch (142:24): [True: 0, False: 0]
  ------------------
  143|  8.76k|        || !WPACKET_close(pkt))
  ------------------
  |  Branch (143:12): [True: 0, False: 8.76k]
  ------------------
  144|      0|        return 0;
  145|       |
  146|  8.76k|    return 1;
  147|  8.76k|}

ossl_err_load_ASYNC_strings:
   31|      2|{
   32|      2|#ifndef OPENSSL_NO_ERR
   33|      2|    if (ERR_reason_error_string(ASYNC_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (33:9): [True: 2, False: 0]
  ------------------
   34|      2|        ERR_load_strings_const(ASYNC_str_reasons);
   35|      2|#endif
   36|      2|    return 1;
   37|      2|}

ASYNC_WAIT_CTX_free:
   21|    220|{
   22|    220|    struct fd_lookup_st *curr;
   23|    220|    struct fd_lookup_st *next;
   24|       |
   25|    220|    if (ctx == NULL)
  ------------------
  |  Branch (25:9): [True: 220, False: 0]
  ------------------
   26|    220|        return;
   27|       |
   28|      0|    curr = ctx->fds;
   29|      0|    while (curr != NULL) {
  ------------------
  |  Branch (29:12): [True: 0, False: 0]
  ------------------
   30|      0|        if (!curr->del) {
  ------------------
  |  Branch (30:13): [True: 0, False: 0]
  ------------------
   31|       |            /* Only try and cleanup if it hasn't been marked deleted */
   32|      0|            if (curr->cleanup != NULL)
  ------------------
  |  Branch (32:17): [True: 0, False: 0]
  ------------------
   33|      0|                curr->cleanup(ctx, curr->key, curr->fd, curr->custom_data);
   34|      0|        }
   35|       |        /* Always free the fd_lookup_st */
   36|      0|        next = curr->next;
   37|      0|        OPENSSL_free(curr);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   38|      0|        curr = next;
   39|      0|    }
   40|       |
   41|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   42|      0|}

BIO_f_buffer:
   41|    219|{
   42|    219|    return &methods_buffer;
   43|    219|}
bf_buff.c:buffer_write:
  159|    219|{
  160|    219|    int i, num = 0;
  161|    219|    BIO_F_BUFFER_CTX *ctx;
  162|       |
  163|    219|    if ((in == NULL) || (inl <= 0))
  ------------------
  |  Branch (163:9): [True: 0, False: 219]
  |  Branch (163:25): [True: 0, False: 219]
  ------------------
  164|      0|        return 0;
  165|    219|    ctx = (BIO_F_BUFFER_CTX *)b->ptr;
  166|    219|    if ((ctx == NULL) || (b->next_bio == NULL))
  ------------------
  |  Branch (166:9): [True: 0, False: 219]
  |  Branch (166:26): [True: 0, False: 219]
  ------------------
  167|      0|        return 0;
  168|       |
  169|    219|    BIO_clear_retry_flags(b);
  ------------------
  |  |  263|    219|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|    219|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|    219|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|    219|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|    219|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|    219|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  170|    219|start:
  171|    219|    i = ctx->obuf_size - (ctx->obuf_len + ctx->obuf_off);
  172|       |    /* add to buffer and return */
  173|    219|    if (i >= inl) {
  ------------------
  |  Branch (173:9): [True: 219, False: 0]
  ------------------
  174|    219|        memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, inl);
  175|    219|        ctx->obuf_len += inl;
  176|    219|        return (num + inl);
  177|    219|    }
  178|       |    /* else */
  179|       |    /* stuff already in buffer, so add to it first, then flush */
  180|      0|    if (ctx->obuf_len != 0) {
  ------------------
  |  Branch (180:9): [True: 0, False: 0]
  ------------------
  181|      0|        if (i > 0) { /* lets fill it up if we can */
  ------------------
  |  Branch (181:13): [True: 0, False: 0]
  ------------------
  182|      0|            memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, i);
  183|      0|            in += i;
  184|      0|            inl -= i;
  185|      0|            num += i;
  186|      0|            ctx->obuf_len += i;
  187|      0|        }
  188|       |        /* we now have a full buffer needing flushing */
  189|      0|        for (;;) {
  190|      0|            i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]),
  191|      0|                ctx->obuf_len);
  192|      0|            if (i <= 0) {
  ------------------
  |  Branch (192:17): [True: 0, False: 0]
  ------------------
  193|      0|                BIO_copy_next_retry(b);
  194|       |
  195|      0|                if (i < 0)
  ------------------
  |  Branch (195:21): [True: 0, False: 0]
  ------------------
  196|      0|                    return ((num > 0) ? num : i);
  ------------------
  |  Branch (196:29): [True: 0, False: 0]
  ------------------
  197|      0|                if (i == 0)
  ------------------
  |  Branch (197:21): [True: 0, False: 0]
  ------------------
  198|      0|                    return num;
  199|      0|            }
  200|      0|            ctx->obuf_off += i;
  201|      0|            ctx->obuf_len -= i;
  202|      0|            if (ctx->obuf_len == 0)
  ------------------
  |  Branch (202:17): [True: 0, False: 0]
  ------------------
  203|      0|                break;
  204|      0|        }
  205|      0|    }
  206|       |    /*
  207|       |     * we only get here if the buffer has been flushed and we still have
  208|       |     * stuff to write
  209|       |     */
  210|      0|    ctx->obuf_off = 0;
  211|       |
  212|       |    /* we now have inl bytes to write */
  213|      0|    while (inl >= ctx->obuf_size) {
  ------------------
  |  Branch (213:12): [True: 0, False: 0]
  ------------------
  214|      0|        i = BIO_write(b->next_bio, in, inl);
  215|      0|        if (i <= 0) {
  ------------------
  |  Branch (215:13): [True: 0, False: 0]
  ------------------
  216|      0|            BIO_copy_next_retry(b);
  217|      0|            if (i < 0)
  ------------------
  |  Branch (217:17): [True: 0, False: 0]
  ------------------
  218|      0|                return ((num > 0) ? num : i);
  ------------------
  |  Branch (218:25): [True: 0, False: 0]
  ------------------
  219|      0|            if (i == 0)
  ------------------
  |  Branch (219:17): [True: 0, False: 0]
  ------------------
  220|      0|                return num;
  221|      0|        }
  222|      0|        num += i;
  223|      0|        in += i;
  224|      0|        inl -= i;
  225|      0|        if (inl == 0)
  ------------------
  |  Branch (225:13): [True: 0, False: 0]
  ------------------
  226|      0|            return num;
  227|      0|    }
  228|       |
  229|       |    /*
  230|       |     * copy the rest into the buffer since we have only a small amount left
  231|       |     */
  232|      0|    goto start;
  233|      0|}
bf_buff.c:buffer_ctrl:
  236|    876|{
  237|    876|    BIO *dbio;
  238|    876|    BIO_F_BUFFER_CTX *ctx;
  239|    876|    long ret = 1;
  240|    876|    char *p1, *p2;
  241|    876|    int r, i, *ip;
  242|    876|    int ibs, obs;
  243|       |
  244|    876|    ctx = (BIO_F_BUFFER_CTX *)b->ptr;
  245|       |
  246|    876|    switch (cmd) {
  247|      0|    case BIO_CTRL_RESET:
  ------------------
  |  |   90|      0|#define BIO_CTRL_RESET 1 /* opt - rewind/zero etc */
  ------------------
  |  Branch (247:5): [True: 0, False: 876]
  ------------------
  248|      0|        ctx->ibuf_off = 0;
  249|      0|        ctx->ibuf_len = 0;
  250|      0|        ctx->obuf_off = 0;
  251|      0|        ctx->obuf_len = 0;
  252|      0|        if (b->next_bio == NULL)
  ------------------
  |  Branch (252:13): [True: 0, False: 0]
  ------------------
  253|      0|            return 0;
  254|      0|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  255|      0|        break;
  256|      0|    case BIO_CTRL_EOF:
  ------------------
  |  |   91|      0|#define BIO_CTRL_EOF 2 /* opt - are we at the eof */
  ------------------
  |  Branch (256:5): [True: 0, False: 876]
  ------------------
  257|      0|        if (ctx->ibuf_len > 0)
  ------------------
  |  Branch (257:13): [True: 0, False: 0]
  ------------------
  258|      0|            return 0;
  259|      0|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  260|      0|        break;
  261|      0|    case BIO_CTRL_INFO:
  ------------------
  |  |   92|      0|#define BIO_CTRL_INFO 3 /* opt - extra tit-bits */
  ------------------
  |  Branch (261:5): [True: 0, False: 876]
  ------------------
  262|      0|        ret = (long)ctx->obuf_len;
  263|      0|        break;
  264|      0|    case BIO_C_GET_BUFF_NUM_LINES:
  ------------------
  |  |  450|      0|#define BIO_C_GET_BUFF_NUM_LINES 116
  ------------------
  |  Branch (264:5): [True: 0, False: 876]
  ------------------
  265|      0|        ret = 0;
  266|      0|        p1 = ctx->ibuf;
  267|      0|        for (i = 0; i < ctx->ibuf_len; i++) {
  ------------------
  |  Branch (267:21): [True: 0, False: 0]
  ------------------
  268|      0|            if (p1[ctx->ibuf_off + i] == '\n')
  ------------------
  |  Branch (268:17): [True: 0, False: 0]
  ------------------
  269|      0|                ret++;
  270|      0|        }
  271|      0|        break;
  272|      0|    case BIO_CTRL_WPENDING:
  ------------------
  |  |  102|      0|#define BIO_CTRL_WPENDING 13 /* opt - number of bytes still to write */
  ------------------
  |  Branch (272:5): [True: 0, False: 876]
  ------------------
  273|      0|        ret = (long)ctx->obuf_len;
  274|      0|        if (ret == 0) {
  ------------------
  |  Branch (274:13): [True: 0, False: 0]
  ------------------
  275|      0|            if (b->next_bio == NULL)
  ------------------
  |  Branch (275:17): [True: 0, False: 0]
  ------------------
  276|      0|                return 0;
  277|      0|            ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  278|      0|        }
  279|      0|        break;
  280|      0|    case BIO_CTRL_PENDING:
  ------------------
  |  |   99|      0|#define BIO_CTRL_PENDING 10 /* opt - is their more data buffered */
  ------------------
  |  Branch (280:5): [True: 0, False: 876]
  ------------------
  281|      0|        ret = (long)ctx->ibuf_len;
  282|      0|        if (ret == 0) {
  ------------------
  |  Branch (282:13): [True: 0, False: 0]
  ------------------
  283|      0|            if (b->next_bio == NULL)
  ------------------
  |  Branch (283:17): [True: 0, False: 0]
  ------------------
  284|      0|                return 0;
  285|      0|            ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  286|      0|        }
  287|      0|        break;
  288|      0|    case BIO_C_SET_BUFF_READ_DATA:
  ------------------
  |  |  456|      0|#define BIO_C_SET_BUFF_READ_DATA 122 /* data to read first */
  ------------------
  |  Branch (288:5): [True: 0, False: 876]
  ------------------
  289|      0|        if (num > ctx->ibuf_size) {
  ------------------
  |  Branch (289:13): [True: 0, False: 0]
  ------------------
  290|      0|            if (num <= 0)
  ------------------
  |  Branch (290:17): [True: 0, False: 0]
  ------------------
  291|      0|                return 0;
  292|      0|            p1 = OPENSSL_malloc((size_t)num);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  293|      0|            if (p1 == NULL)
  ------------------
  |  Branch (293:17): [True: 0, False: 0]
  ------------------
  294|      0|                return 0;
  295|      0|            OPENSSL_free(ctx->ibuf);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  296|      0|            ctx->ibuf = p1;
  297|      0|        }
  298|      0|        ctx->ibuf_off = 0;
  299|      0|        ctx->ibuf_len = (int)num;
  300|      0|        memcpy(ctx->ibuf, ptr, (int)num);
  301|      0|        ret = 1;
  302|      0|        break;
  303|    219|    case BIO_C_SET_BUFF_SIZE:
  ------------------
  |  |  451|    219|#define BIO_C_SET_BUFF_SIZE 117
  ------------------
  |  Branch (303:5): [True: 219, False: 657]
  ------------------
  304|    219|        if (ptr != NULL) {
  ------------------
  |  Branch (304:13): [True: 219, False: 0]
  ------------------
  305|    219|            ip = (int *)ptr;
  306|    219|            if (*ip == 0) {
  ------------------
  |  Branch (306:17): [True: 219, False: 0]
  ------------------
  307|    219|                ibs = (int)num;
  308|    219|                obs = ctx->obuf_size;
  309|    219|            } else { /* if (*ip == 1) */
  310|       |
  311|      0|                ibs = ctx->ibuf_size;
  312|      0|                obs = (int)num;
  313|      0|            }
  314|    219|        } else {
  315|      0|            ibs = (int)num;
  316|      0|            obs = (int)num;
  317|      0|        }
  318|    219|        p1 = ctx->ibuf;
  319|    219|        p2 = ctx->obuf;
  320|    219|        if ((ibs > DEFAULT_BUFFER_SIZE) && (ibs != ctx->ibuf_size)) {
  ------------------
  |  |   23|    219|#define DEFAULT_BUFFER_SIZE 4096
  ------------------
  |  Branch (320:13): [True: 0, False: 219]
  |  Branch (320:44): [True: 0, False: 0]
  ------------------
  321|      0|            if (num <= 0)
  ------------------
  |  Branch (321:17): [True: 0, False: 0]
  ------------------
  322|      0|                return 0;
  323|      0|            p1 = OPENSSL_malloc((size_t)num);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  324|      0|            if (p1 == NULL)
  ------------------
  |  Branch (324:17): [True: 0, False: 0]
  ------------------
  325|      0|                return 0;
  326|      0|        }
  327|    219|        if ((obs > DEFAULT_BUFFER_SIZE) && (obs != ctx->obuf_size)) {
  ------------------
  |  |   23|    219|#define DEFAULT_BUFFER_SIZE 4096
  ------------------
  |  Branch (327:13): [True: 0, False: 219]
  |  Branch (327:44): [True: 0, False: 0]
  ------------------
  328|      0|            p2 = OPENSSL_malloc((size_t)num);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  329|      0|            if (p2 == NULL) {
  ------------------
  |  Branch (329:17): [True: 0, False: 0]
  ------------------
  330|      0|                if (p1 != ctx->ibuf)
  ------------------
  |  Branch (330:21): [True: 0, False: 0]
  ------------------
  331|      0|                    OPENSSL_free(p1);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  332|      0|                return 0;
  333|      0|            }
  334|      0|        }
  335|    219|        if (ctx->ibuf != p1) {
  ------------------
  |  Branch (335:13): [True: 0, False: 219]
  ------------------
  336|      0|            OPENSSL_free(ctx->ibuf);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  337|      0|            ctx->ibuf = p1;
  338|      0|            ctx->ibuf_off = 0;
  339|      0|            ctx->ibuf_len = 0;
  340|      0|            ctx->ibuf_size = ibs;
  341|      0|        }
  342|    219|        if (ctx->obuf != p2) {
  ------------------
  |  Branch (342:13): [True: 0, False: 219]
  ------------------
  343|      0|            OPENSSL_free(ctx->obuf);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  344|      0|            ctx->obuf = p2;
  345|      0|            ctx->obuf_off = 0;
  346|      0|            ctx->obuf_len = 0;
  347|      0|            ctx->obuf_size = obs;
  348|      0|        }
  349|    219|        break;
  350|      0|    case BIO_C_DO_STATE_MACHINE:
  ------------------
  |  |  435|      0|#define BIO_C_DO_STATE_MACHINE 101
  ------------------
  |  Branch (350:5): [True: 0, False: 876]
  ------------------
  351|      0|        if (b->next_bio == NULL)
  ------------------
  |  Branch (351:13): [True: 0, False: 0]
  ------------------
  352|      0|            return 0;
  353|      0|        BIO_clear_retry_flags(b);
  ------------------
  |  |  263|      0|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|      0|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|      0|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|      0|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|      0|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  354|      0|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  355|      0|        BIO_copy_next_retry(b);
  356|      0|        break;
  357|       |
  358|    219|    case BIO_CTRL_FLUSH:
  ------------------
  |  |  100|    219|#define BIO_CTRL_FLUSH 11 /* opt - 'flush' buffered output */
  ------------------
  |  Branch (358:5): [True: 219, False: 657]
  ------------------
  359|    219|        if (b->next_bio == NULL)
  ------------------
  |  Branch (359:13): [True: 0, False: 219]
  ------------------
  360|      0|            return 0;
  361|    219|        if (ctx->obuf_len <= 0) {
  ------------------
  |  Branch (361:13): [True: 0, False: 219]
  ------------------
  362|      0|            ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  363|      0|            BIO_copy_next_retry(b);
  364|      0|            break;
  365|      0|        }
  366|       |
  367|    438|        for (;;) {
  368|    438|            BIO_clear_retry_flags(b);
  ------------------
  |  |  263|    438|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|    438|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|    438|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|    438|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|    438|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|    438|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  369|    438|            if (ctx->obuf_len > 0) {
  ------------------
  |  Branch (369:17): [True: 219, False: 219]
  ------------------
  370|    219|                r = BIO_write(b->next_bio,
  371|    219|                    &(ctx->obuf[ctx->obuf_off]), ctx->obuf_len);
  372|    219|                BIO_copy_next_retry(b);
  373|    219|                if (r <= 0)
  ------------------
  |  Branch (373:21): [True: 0, False: 219]
  ------------------
  374|      0|                    return (long)r;
  375|    219|                ctx->obuf_off += r;
  376|    219|                ctx->obuf_len -= r;
  377|    219|            } else {
  378|    219|                ctx->obuf_len = 0;
  379|    219|                ctx->obuf_off = 0;
  380|    219|                break;
  381|    219|            }
  382|    438|        }
  383|    219|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  384|    219|        BIO_copy_next_retry(b);
  385|    219|        break;
  386|      0|    case BIO_CTRL_DUP:
  ------------------
  |  |  101|      0|#define BIO_CTRL_DUP 12 /* man - extra stuff for 'duped' BIO */
  ------------------
  |  Branch (386:5): [True: 0, False: 876]
  ------------------
  387|      0|        dbio = (BIO *)ptr;
  388|      0|        if (BIO_set_read_buffer_size(dbio, ctx->ibuf_size) <= 0 || BIO_set_write_buffer_size(dbio, ctx->obuf_size) <= 0)
  ------------------
  |  |  625|      0|#define BIO_set_read_buffer_size(b, size) BIO_int_ctrl(b, BIO_C_SET_BUFF_SIZE, size, 0)
  |  |  ------------------
  |  |  |  |  451|      0|#define BIO_C_SET_BUFF_SIZE 117
  |  |  ------------------
  ------------------
                      if (BIO_set_read_buffer_size(dbio, ctx->ibuf_size) <= 0 || BIO_set_write_buffer_size(dbio, ctx->obuf_size) <= 0)
  ------------------
  |  |  626|      0|#define BIO_set_write_buffer_size(b, size) BIO_int_ctrl(b, BIO_C_SET_BUFF_SIZE, size, 1)
  |  |  ------------------
  |  |  |  |  451|      0|#define BIO_C_SET_BUFF_SIZE 117
  |  |  ------------------
  ------------------
  |  Branch (388:13): [True: 0, False: 0]
  |  Branch (388:68): [True: 0, False: 0]
  ------------------
  389|      0|            ret = 0;
  390|      0|        break;
  391|      0|    case BIO_CTRL_PEEK:
  ------------------
  |  |  106|      0|#define BIO_CTRL_PEEK 29 /* BIO_f_buffer special */
  ------------------
  |  Branch (391:5): [True: 0, False: 876]
  ------------------
  392|       |        /* Ensure there's stuff in the input buffer */
  393|      0|        {
  394|      0|            char fake_buf[1];
  395|      0|            (void)buffer_read(b, fake_buf, 0);
  396|      0|        }
  397|      0|        if (num > ctx->ibuf_len)
  ------------------
  |  Branch (397:13): [True: 0, False: 0]
  ------------------
  398|      0|            num = ctx->ibuf_len;
  399|      0|        memcpy(ptr, &(ctx->ibuf[ctx->ibuf_off]), num);
  400|      0|        ret = num;
  401|      0|        break;
  402|    438|    default:
  ------------------
  |  Branch (402:5): [True: 438, False: 438]
  ------------------
  403|    438|        if (b->next_bio == NULL)
  ------------------
  |  Branch (403:13): [True: 0, False: 438]
  ------------------
  404|      0|            return 0;
  405|    438|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  406|    438|        break;
  407|    876|    }
  408|    876|    return ret;
  409|    876|}
bf_buff.c:buffer_new:
   46|    219|{
   47|    219|    BIO_F_BUFFER_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  108|    219|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   48|       |
   49|    219|    if (ctx == NULL)
  ------------------
  |  Branch (49:9): [True: 0, False: 219]
  ------------------
   50|      0|        return 0;
   51|    219|    ctx->ibuf_size = DEFAULT_BUFFER_SIZE;
  ------------------
  |  |   23|    219|#define DEFAULT_BUFFER_SIZE 4096
  ------------------
   52|    219|    ctx->ibuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   53|    219|    if (ctx->ibuf == NULL) {
  ------------------
  |  Branch (53:9): [True: 0, False: 219]
  ------------------
   54|      0|        OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   55|      0|        return 0;
   56|      0|    }
   57|    219|    ctx->obuf_size = DEFAULT_BUFFER_SIZE;
  ------------------
  |  |   23|    219|#define DEFAULT_BUFFER_SIZE 4096
  ------------------
   58|    219|    ctx->obuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   59|    219|    if (ctx->obuf == NULL) {
  ------------------
  |  Branch (59:9): [True: 0, False: 219]
  ------------------
   60|      0|        OPENSSL_free(ctx->ibuf);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   61|      0|        OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   62|      0|        return 0;
   63|      0|    }
   64|       |
   65|    219|    bi->init = 1;
   66|    219|    bi->ptr = (char *)ctx;
   67|    219|    bi->flags = 0;
   68|    219|    return 1;
   69|    219|}
bf_buff.c:buffer_free:
   72|    219|{
   73|    219|    BIO_F_BUFFER_CTX *b;
   74|       |
   75|    219|    if (a == NULL)
  ------------------
  |  Branch (75:9): [True: 0, False: 219]
  ------------------
   76|      0|        return 0;
   77|    219|    b = (BIO_F_BUFFER_CTX *)a->ptr;
   78|    219|    OPENSSL_free(b->ibuf);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   79|    219|    OPENSSL_free(b->obuf);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   80|    219|    OPENSSL_free(a->ptr);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   81|       |    a->ptr = NULL;
   82|    219|    a->init = 0;
   83|    219|    a->flags = 0;
   84|    219|    return 1;
   85|    219|}

ossl_err_load_BIO_strings:
   93|      2|{
   94|      2|#ifndef OPENSSL_NO_ERR
   95|      2|    if (ERR_reason_error_string(BIO_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (95:9): [True: 2, False: 0]
  ------------------
   96|      2|        ERR_load_strings_const(BIO_str_reasons);
   97|      2|#endif
   98|      2|    return 1;
   99|      2|}

BIO_new_ex:
   82|   193k|{
   83|   193k|    BIO *bio = OPENSSL_zalloc(sizeof(*bio));
  ------------------
  |  |  108|   193k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   84|       |
   85|   193k|    if (bio == NULL)
  ------------------
  |  Branch (85:9): [True: 0, False: 193k]
  ------------------
   86|      0|        return NULL;
   87|       |
   88|   193k|    bio->libctx = libctx;
   89|   193k|    bio->method = method;
   90|   193k|    bio->shutdown = 1;
   91|       |
   92|   193k|    if (!CRYPTO_NEW_REF(&bio->references, 1))
  ------------------
  |  Branch (92:9): [True: 0, False: 193k]
  ------------------
   93|      0|        goto err;
   94|       |
   95|   193k|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data))
  ------------------
  |  |  262|   193k|#define CRYPTO_EX_INDEX_BIO 12
  ------------------
  |  Branch (95:9): [True: 0, False: 193k]
  ------------------
   96|      0|        goto err;
   97|       |
   98|   193k|    if (method->create != NULL && !method->create(bio)) {
  ------------------
  |  Branch (98:9): [True: 193k, False: 0]
  |  Branch (98:35): [True: 0, False: 193k]
  ------------------
   99|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_INIT_FAIL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  100|      0|        CRYPTO_free_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data);
  ------------------
  |  |  262|      0|#define CRYPTO_EX_INDEX_BIO 12
  ------------------
  101|      0|        goto err;
  102|      0|    }
  103|   193k|    if (method->create == NULL)
  ------------------
  |  Branch (103:9): [True: 0, False: 193k]
  ------------------
  104|      0|        bio->init = 1;
  105|       |
  106|   193k|    return bio;
  107|       |
  108|      0|err:
  109|      0|    CRYPTO_FREE_REF(&bio->references);
  110|      0|    OPENSSL_free(bio);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  111|       |    return NULL;
  112|   193k|}
BIO_new:
  115|   193k|{
  116|       |    return BIO_new_ex(NULL, method);
  117|   193k|}
BIO_free:
  120|   331k|{
  121|   331k|    int ret;
  122|       |
  123|   331k|    if (a == NULL)
  ------------------
  |  Branch (123:9): [True: 71.6k, False: 259k]
  ------------------
  124|  71.6k|        return 0;
  125|       |
  126|   259k|    if (CRYPTO_DOWN_REF(&a->references, &ret) <= 0)
  ------------------
  |  Branch (126:9): [True: 0, False: 259k]
  ------------------
  127|      0|        return 0;
  128|       |
  129|   259k|    REF_PRINT_COUNT("BIO", ret, a);
  ------------------
  |  |  301|   259k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|   259k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|   259k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|   259k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|   259k|    if (ret > 0)
  ------------------
  |  Branch (130:9): [True: 66.1k, False: 193k]
  ------------------
  131|  66.1k|        return 1;
  132|   193k|    REF_ASSERT_ISNT(ret < 0);
  ------------------
  |  |  293|   193k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 193k]
  |  |  ------------------
  ------------------
  133|       |
  134|   193k|    if (HAS_CALLBACK(a)) {
  ------------------
  |  |   26|   193k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 193k]
  |  |  |  Branch (26:51): [True: 0, False: 193k]
  |  |  ------------------
  ------------------
  135|      0|        ret = (int)bio_call_callback(a, BIO_CB_FREE, NULL, 0, 0, 0L, 1L, NULL);
  ------------------
  |  |  291|      0|#define BIO_CB_FREE 0x01
  ------------------
  136|      0|        if (ret <= 0)
  ------------------
  |  Branch (136:13): [True: 0, False: 0]
  ------------------
  137|      0|            return 0;
  138|      0|    }
  139|       |
  140|   193k|    if ((a->method != NULL) && (a->method->destroy != NULL))
  ------------------
  |  Branch (140:9): [True: 193k, False: 0]
  |  Branch (140:32): [True: 193k, False: 0]
  ------------------
  141|   193k|        a->method->destroy(a);
  142|       |
  143|   193k|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_BIO, a, &a->ex_data);
  ------------------
  |  |  262|   193k|#define CRYPTO_EX_INDEX_BIO 12
  ------------------
  144|       |
  145|   193k|    CRYPTO_FREE_REF(&a->references);
  146|       |
  147|   193k|    OPENSSL_free(a);
  ------------------
  |  |  131|   193k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  148|       |
  149|   193k|    return 1;
  150|   193k|}
BIO_set_data:
  153|  64.3k|{
  154|  64.3k|    a->ptr = ptr;
  155|  64.3k|}
BIO_get_data:
  158|   196k|{
  159|   196k|    return a->ptr;
  160|   196k|}
BIO_set_init:
  163|   128k|{
  164|   128k|    a->init = init;
  165|   128k|}
BIO_set_shutdown:
  173|    219|{
  174|    219|    a->shutdown = shut;
  175|    219|}
BIO_up_ref:
  188|  66.1k|{
  189|  66.1k|    int i;
  190|       |
  191|  66.1k|    if (CRYPTO_UP_REF(&a->references, &i) <= 0)
  ------------------
  |  Branch (191:9): [True: 0, False: 66.1k]
  ------------------
  192|      0|        return 0;
  193|       |
  194|  66.1k|    REF_PRINT_COUNT("BIO", i, a);
  ------------------
  |  |  301|  66.1k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  66.1k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|  66.1k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|  66.1k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  195|  66.1k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  66.1k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 66.1k]
  |  |  ------------------
  ------------------
  196|  66.1k|    return i > 1;
  197|  66.1k|}
BIO_clear_flags:
  200|   891k|{
  201|   891k|    b->flags &= ~flags;
  202|   891k|}
BIO_test_flags:
  205|  8.71k|{
  206|  8.71k|    return (b->flags & flags);
  207|  8.71k|}
BIO_set_flags:
  210|  4.57k|{
  211|  4.57k|    b->flags |= flags;
  212|  4.57k|}
BIO_read:
  302|   164k|{
  303|   164k|    size_t readbytes;
  304|   164k|    int ret;
  305|       |
  306|   164k|    if (dlen < 0)
  ------------------
  |  Branch (306:9): [True: 0, False: 164k]
  ------------------
  307|      0|        return 0;
  308|       |
  309|   164k|    ret = bio_read_intern(b, data, (size_t)dlen, &readbytes);
  310|       |
  311|   164k|    if (ret > 0) {
  ------------------
  |  Branch (311:9): [True: 159k, False: 4.13k]
  ------------------
  312|       |        /* *readbytes should always be <= dlen */
  313|   159k|        ret = (int)readbytes;
  314|   159k|    }
  315|       |
  316|   164k|    return ret;
  317|   164k|}
BIO_read_ex:
  320|   127k|{
  321|   127k|    return bio_read_intern(b, data, dlen, readbytes) > 0;
  322|   127k|}
BIO_write:
  367|    657|{
  368|    657|    size_t written;
  369|    657|    int ret;
  370|       |
  371|    657|    if (dlen <= 0)
  ------------------
  |  Branch (371:9): [True: 0, False: 657]
  ------------------
  372|      0|        return 0;
  373|       |
  374|    657|    ret = bio_write_intern(b, data, (size_t)dlen, &written);
  375|       |
  376|    657|    if (ret > 0) {
  ------------------
  |  Branch (376:9): [True: 657, False: 0]
  ------------------
  377|       |        /* written should always be <= dlen */
  378|    657|        ret = (int)written;
  379|    657|    }
  380|       |
  381|    657|    return ret;
  382|    657|}
BIO_puts:
  495|   726k|{
  496|   726k|    int ret;
  497|   726k|    size_t written = 0;
  498|       |
  499|   726k|    if (b == NULL) {
  ------------------
  |  Branch (499:9): [True: 0, False: 726k]
  ------------------
  500|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  501|      0|        return -1;
  502|      0|    }
  503|   726k|    if (b->method == NULL || b->method->bputs == NULL) {
  ------------------
  |  Branch (503:9): [True: 0, False: 726k]
  |  Branch (503:30): [True: 0, False: 726k]
  ------------------
  504|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  505|      0|        return -2;
  506|      0|    }
  507|       |
  508|   726k|    if (HAS_CALLBACK(b)) {
  ------------------
  |  |   26|   726k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 726k]
  |  |  |  Branch (26:51): [True: 0, False: 726k]
  |  |  ------------------
  ------------------
  509|      0|        ret = (int)bio_call_callback(b, BIO_CB_PUTS, buf, 0, 0, 0L, 1L, NULL);
  ------------------
  |  |  294|      0|#define BIO_CB_PUTS 0x04
  ------------------
  510|      0|        if (ret <= 0)
  ------------------
  |  Branch (510:13): [True: 0, False: 0]
  ------------------
  511|      0|            return ret;
  512|      0|    }
  513|       |
  514|   726k|    if (!b->init) {
  ------------------
  |  Branch (514:9): [True: 0, False: 726k]
  ------------------
  515|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  516|      0|        return -1;
  517|      0|    }
  518|       |
  519|   726k|    ret = b->method->bputs(b, buf);
  520|       |
  521|   726k|    if (ret > 0) {
  ------------------
  |  Branch (521:9): [True: 726k, False: 0]
  ------------------
  522|   726k|        b->num_write += (uint64_t)ret;
  523|   726k|        written = ret;
  524|   726k|        ret = 1;
  525|   726k|    }
  526|       |
  527|   726k|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|   726k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 726k]
  |  |  |  Branch (26:51): [True: 0, False: 726k]
  |  |  ------------------
  ------------------
  528|      0|        ret = (int)bio_call_callback(b, BIO_CB_PUTS | BIO_CB_RETURN, buf, 0, 0,
  ------------------
  |  |  294|      0|#define BIO_CB_PUTS 0x04
  ------------------
                      ret = (int)bio_call_callback(b, BIO_CB_PUTS | BIO_CB_RETURN, buf, 0, 0,
  ------------------
  |  |  304|      0|#define BIO_CB_RETURN 0x80
  ------------------
  529|      0|            0L, ret, &written);
  530|       |
  531|   726k|    if (ret > 0) {
  ------------------
  |  Branch (531:9): [True: 726k, False: 0]
  ------------------
  532|   726k|        if (written > INT_MAX) {
  ------------------
  |  Branch (532:13): [True: 0, False: 726k]
  ------------------
  533|      0|            ERR_raise(ERR_LIB_BIO, BIO_R_LENGTH_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  534|      0|            ret = -1;
  535|   726k|        } else {
  536|   726k|            ret = (int)written;
  537|   726k|        }
  538|   726k|    }
  539|       |
  540|   726k|    return ret;
  541|   726k|}
BIO_gets:
  544|   790k|{
  545|   790k|    int ret;
  546|   790k|    size_t readbytes = 0;
  547|       |
  548|   790k|    if (b == NULL) {
  ------------------
  |  Branch (548:9): [True: 0, False: 790k]
  ------------------
  549|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  550|      0|        return -1;
  551|      0|    }
  552|   790k|    if (b->method == NULL || b->method->bgets == NULL) {
  ------------------
  |  Branch (552:9): [True: 0, False: 790k]
  |  Branch (552:30): [True: 0, False: 790k]
  ------------------
  553|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  554|      0|        return -2;
  555|      0|    }
  556|       |
  557|   790k|    if (size < 0) {
  ------------------
  |  Branch (557:9): [True: 0, False: 790k]
  ------------------
  558|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  559|      0|        return -1;
  560|      0|    }
  561|       |
  562|   790k|    if (HAS_CALLBACK(b)) {
  ------------------
  |  |   26|   790k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 790k]
  |  |  |  Branch (26:51): [True: 0, False: 790k]
  |  |  ------------------
  ------------------
  563|      0|        ret = (int)bio_call_callback(b, BIO_CB_GETS, buf, size, 0, 0L, 1, NULL);
  ------------------
  |  |  295|      0|#define BIO_CB_GETS 0x05
  ------------------
  564|      0|        if (ret <= 0)
  ------------------
  |  Branch (564:13): [True: 0, False: 0]
  ------------------
  565|      0|            return ret;
  566|      0|    }
  567|       |
  568|   790k|    if (!b->init) {
  ------------------
  |  Branch (568:9): [True: 0, False: 790k]
  ------------------
  569|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  570|      0|        return -1;
  571|      0|    }
  572|       |
  573|   790k|    ret = b->method->bgets(b, buf, size);
  574|       |
  575|   790k|    if (ret > 0) {
  ------------------
  |  Branch (575:9): [True: 790k, False: 219]
  ------------------
  576|   790k|        readbytes = ret;
  577|   790k|        ret = 1;
  578|   790k|    }
  579|       |
  580|   790k|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|   790k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 790k]
  |  |  |  Branch (26:51): [True: 0, False: 790k]
  |  |  ------------------
  ------------------
  581|      0|        ret = (int)bio_call_callback(b, BIO_CB_GETS | BIO_CB_RETURN, buf, size,
  ------------------
  |  |  295|      0|#define BIO_CB_GETS 0x05
  ------------------
                      ret = (int)bio_call_callback(b, BIO_CB_GETS | BIO_CB_RETURN, buf, size,
  ------------------
  |  |  304|      0|#define BIO_CB_RETURN 0x80
  ------------------
  582|      0|            0, 0L, ret, &readbytes);
  583|       |
  584|   790k|    if (ret > 0) {
  ------------------
  |  Branch (584:9): [True: 790k, False: 219]
  ------------------
  585|       |        /* Shouldn't happen */
  586|   790k|        if (readbytes > (size_t)size)
  ------------------
  |  Branch (586:13): [True: 0, False: 790k]
  ------------------
  587|      0|            ret = -1;
  588|   790k|        else
  589|   790k|            ret = (int)readbytes;
  590|   790k|    }
  591|       |
  592|   790k|    return ret;
  593|   790k|}
BIO_int_ctrl:
  639|    219|{
  640|    219|    int i;
  641|       |
  642|    219|    i = iarg;
  643|    219|    return BIO_ctrl(b, cmd, larg, (char *)&i);
  644|    219|}
BIO_ctrl:
  657|   321k|{
  658|   321k|    long ret;
  659|       |
  660|   321k|    if (b == NULL)
  ------------------
  |  Branch (660:9): [True: 0, False: 321k]
  ------------------
  661|      0|        return -1;
  662|   321k|    if (b->method == NULL || b->method->ctrl == NULL) {
  ------------------
  |  Branch (662:9): [True: 0, False: 321k]
  |  Branch (662:30): [True: 0, False: 321k]
  ------------------
  663|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  664|      0|        return -2;
  665|      0|    }
  666|       |
  667|   321k|    if (HAS_CALLBACK(b)) {
  ------------------
  |  |   26|   321k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 321k]
  |  |  |  Branch (26:51): [True: 0, False: 321k]
  |  |  ------------------
  ------------------
  668|      0|        ret = bio_call_callback(b, BIO_CB_CTRL, parg, 0, cmd, larg, 1L, NULL);
  ------------------
  |  |  296|      0|#define BIO_CB_CTRL 0x06
  ------------------
  669|      0|        if (ret <= 0)
  ------------------
  |  Branch (669:13): [True: 0, False: 0]
  ------------------
  670|      0|            return ret;
  671|      0|    }
  672|       |
  673|   321k|    ret = b->method->ctrl(b, cmd, larg, parg);
  674|       |
  675|   321k|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|   321k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 321k]
  |  |  |  Branch (26:51): [True: 0, False: 321k]
  |  |  ------------------
  ------------------
  676|      0|        ret = bio_call_callback(b, BIO_CB_CTRL | BIO_CB_RETURN, parg, 0, cmd,
  ------------------
  |  |  296|      0|#define BIO_CB_CTRL 0x06
  ------------------
                      ret = bio_call_callback(b, BIO_CB_CTRL | BIO_CB_RETURN, parg, 0, cmd,
  ------------------
  |  |  304|      0|#define BIO_CB_RETURN 0x80
  ------------------
  677|      0|            larg, ret, NULL);
  678|       |
  679|   321k|    return ret;
  680|   321k|}
BIO_push:
  743|    219|{
  744|    219|    BIO *lb;
  745|       |
  746|    219|    if (b == NULL)
  ------------------
  |  Branch (746:9): [True: 0, False: 219]
  ------------------
  747|      0|        return bio;
  748|    219|    lb = b;
  749|    219|    while (lb->next_bio != NULL)
  ------------------
  |  Branch (749:12): [True: 0, False: 219]
  ------------------
  750|      0|        lb = lb->next_bio;
  751|    219|    lb->next_bio = bio;
  752|    219|    if (bio != NULL)
  ------------------
  |  Branch (752:9): [True: 219, False: 0]
  ------------------
  753|    219|        bio->prev_bio = lb;
  754|       |    /* called to do internal processing */
  755|    219|    BIO_ctrl(b, BIO_CTRL_PUSH, 0, lb);
  ------------------
  |  |   95|    219|#define BIO_CTRL_PUSH 6 /* opt - internal, used to signify change */
  ------------------
  756|    219|    return b;
  757|    219|}
BIO_pop:
  761|    219|{
  762|    219|    BIO *ret;
  763|       |
  764|    219|    if (b == NULL)
  ------------------
  |  Branch (764:9): [True: 0, False: 219]
  ------------------
  765|      0|        return NULL;
  766|    219|    ret = b->next_bio;
  767|       |
  768|    219|    BIO_ctrl(b, BIO_CTRL_POP, 0, b);
  ------------------
  |  |   96|    219|#define BIO_CTRL_POP 7 /* opt - internal, used to signify change */
  ------------------
  769|       |
  770|    219|    if (b->prev_bio != NULL)
  ------------------
  |  Branch (770:9): [True: 0, False: 219]
  ------------------
  771|      0|        b->prev_bio->next_bio = b->next_bio;
  772|    219|    if (b->next_bio != NULL)
  ------------------
  |  Branch (772:9): [True: 219, False: 0]
  ------------------
  773|    219|        b->next_bio->prev_bio = b->prev_bio;
  774|       |
  775|    219|    b->next_bio = NULL;
  776|       |    b->prev_bio = NULL;
  777|    219|    return ret;
  778|    219|}
BIO_free_all:
  846|    878|{
  847|    878|    BIO *b;
  848|    878|    int ref;
  849|       |
  850|  1.09k|    while (bio != NULL) {
  ------------------
  |  Branch (850:12): [True: 438, False: 659]
  ------------------
  851|    438|        b = bio;
  852|    438|        CRYPTO_GET_REF(&b->references, &ref);
  853|    438|        bio = bio->next_bio;
  854|    438|        BIO_free(b);
  855|       |        /* Since ref count > 1, don't free anyone else. */
  856|    438|        if (ref > 1)
  ------------------
  |  Branch (856:13): [True: 219, False: 219]
  ------------------
  857|    219|            break;
  858|    438|    }
  859|    878|}
BIO_copy_next_retry:
  908|    438|{
  909|    438|    BIO_set_flags(b, BIO_get_retry_flags(b->next_bio));
  ------------------
  |  |  265|    438|    BIO_test_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|    438|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|    438|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|    438|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|    438|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_test_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|    438|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  910|    438|    b->retry_reason = b->next_bio->retry_reason;
  911|    438|}
bio_lib.c:bio_read_intern:
  263|   291k|{
  264|   291k|    int ret;
  265|       |
  266|   291k|    if (b == NULL) {
  ------------------
  |  Branch (266:9): [True: 0, False: 291k]
  ------------------
  267|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  268|      0|        return -1;
  269|      0|    }
  270|   291k|    if (b->method == NULL || b->method->bread == NULL) {
  ------------------
  |  Branch (270:9): [True: 0, False: 291k]
  |  Branch (270:30): [True: 0, False: 291k]
  ------------------
  271|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  272|      0|        return -2;
  273|      0|    }
  274|       |
  275|   291k|    if (HAS_CALLBACK(b) && ((ret = (int)bio_call_callback(b, BIO_CB_READ, data, dlen, 0, 0L, 1L, NULL)) <= 0))
  ------------------
  |  |   26|   583k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 291k]
  |  |  |  Branch (26:51): [True: 0, False: 291k]
  |  |  ------------------
  ------------------
                  if (HAS_CALLBACK(b) && ((ret = (int)bio_call_callback(b, BIO_CB_READ, data, dlen, 0, 0L, 1L, NULL)) <= 0))
  ------------------
  |  |  292|      0|#define BIO_CB_READ 0x02
  ------------------
  |  Branch (275:28): [True: 0, False: 0]
  ------------------
  276|      0|        return ret;
  277|       |
  278|   291k|    if (!b->init) {
  ------------------
  |  Branch (278:9): [True: 0, False: 291k]
  ------------------
  279|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  280|      0|        return -1;
  281|      0|    }
  282|       |
  283|   291k|    ret = b->method->bread(b, data, dlen, readbytes);
  284|       |
  285|   291k|    if (ret > 0)
  ------------------
  |  Branch (285:9): [True: 287k, False: 4.13k]
  ------------------
  286|   287k|        b->num_read += (uint64_t)*readbytes;
  287|       |
  288|   291k|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|   291k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 291k]
  |  |  |  Branch (26:51): [True: 0, False: 291k]
  |  |  ------------------
  ------------------
  289|      0|        ret = (int)bio_call_callback(b, BIO_CB_READ | BIO_CB_RETURN, data,
  ------------------
  |  |  292|      0|#define BIO_CB_READ 0x02
  ------------------
                      ret = (int)bio_call_callback(b, BIO_CB_READ | BIO_CB_RETURN, data,
  ------------------
  |  |  304|      0|#define BIO_CB_RETURN 0x80
  ------------------
  290|      0|            dlen, 0, 0L, ret, readbytes);
  291|       |
  292|       |    /* Shouldn't happen */
  293|   291k|    if (ret > 0 && *readbytes > dlen) {
  ------------------
  |  Branch (293:9): [True: 287k, False: 4.13k]
  |  Branch (293:20): [True: 0, False: 287k]
  ------------------
  294|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  295|      0|        return -1;
  296|      0|    }
  297|       |
  298|   291k|    return ret;
  299|   291k|}
bio_lib.c:bio_write_intern:
  326|    657|{
  327|    657|    size_t local_written;
  328|    657|    int ret;
  329|       |
  330|    657|    if (written != NULL)
  ------------------
  |  Branch (330:9): [True: 657, False: 0]
  ------------------
  331|    657|        *written = 0;
  332|       |    /*
  333|       |     * b == NULL is not an error but just means that zero bytes are written.
  334|       |     * Do not raise an error here.
  335|       |     */
  336|    657|    if (b == NULL)
  ------------------
  |  Branch (336:9): [True: 0, False: 657]
  ------------------
  337|      0|        return 0;
  338|       |
  339|    657|    if (b->method == NULL || b->method->bwrite == NULL) {
  ------------------
  |  Branch (339:9): [True: 0, False: 657]
  |  Branch (339:30): [True: 0, False: 657]
  ------------------
  340|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  341|      0|        return -2;
  342|      0|    }
  343|       |
  344|    657|    if (HAS_CALLBACK(b) && ((ret = (int)bio_call_callback(b, BIO_CB_WRITE, data, dlen, 0, 0L, 1L, NULL)) <= 0))
  ------------------
  |  |   26|  1.31k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 657]
  |  |  |  Branch (26:51): [True: 0, False: 657]
  |  |  ------------------
  ------------------
                  if (HAS_CALLBACK(b) && ((ret = (int)bio_call_callback(b, BIO_CB_WRITE, data, dlen, 0, 0L, 1L, NULL)) <= 0))
  ------------------
  |  |  293|      0|#define BIO_CB_WRITE 0x03
  ------------------
  |  Branch (344:28): [True: 0, False: 0]
  ------------------
  345|      0|        return ret;
  346|       |
  347|    657|    if (!b->init) {
  ------------------
  |  Branch (347:9): [True: 0, False: 657]
  ------------------
  348|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  349|      0|        return -1;
  350|      0|    }
  351|       |
  352|    657|    ret = b->method->bwrite(b, data, dlen, &local_written);
  353|       |
  354|    657|    if (ret > 0)
  ------------------
  |  Branch (354:9): [True: 657, False: 0]
  ------------------
  355|    657|        b->num_write += (uint64_t)local_written;
  356|       |
  357|    657|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|    657|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 657]
  |  |  |  Branch (26:51): [True: 0, False: 657]
  |  |  ------------------
  ------------------
  358|      0|        ret = (int)bio_call_callback(b, BIO_CB_WRITE | BIO_CB_RETURN, data,
  ------------------
  |  |  293|      0|#define BIO_CB_WRITE 0x03
  ------------------
                      ret = (int)bio_call_callback(b, BIO_CB_WRITE | BIO_CB_RETURN, data,
  ------------------
  |  |  304|      0|#define BIO_CB_RETURN 0x80
  ------------------
  359|      0|            dlen, 0, 0L, ret, &local_written);
  360|       |
  361|    657|    if (written != NULL)
  ------------------
  |  Branch (361:9): [True: 657, False: 0]
  ------------------
  362|    657|        *written = local_written;
  363|    657|    return ret;
  364|    657|}

BIO_meth_new:
   38|    220|{
   39|    220|    BIO_METHOD *biom = OPENSSL_zalloc(sizeof(BIO_METHOD));
  ------------------
  |  |  108|    220|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   40|       |
   41|    220|    if (biom == NULL
  ------------------
  |  Branch (41:9): [True: 0, False: 220]
  ------------------
   42|    220|        || (biom->name = OPENSSL_strdup(name)) == NULL) {
  ------------------
  |  |  135|    220|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (42:12): [True: 0, False: 220]
  ------------------
   43|      0|        OPENSSL_free(biom);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   44|      0|        return NULL;
   45|      0|    }
   46|    220|    biom->type = type;
   47|    220|    return biom;
   48|    220|}
BIO_meth_free:
   51|    219|{
   52|    219|    if (biom != NULL) {
  ------------------
  |  Branch (52:9): [True: 219, False: 0]
  ------------------
   53|    219|        OPENSSL_free(biom->name);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   54|    219|        OPENSSL_free(biom);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   55|    219|    }
   56|    219|}
bwrite_conv:
   73|    657|{
   74|    657|    int ret;
   75|       |
   76|    657|    if (datal > INT_MAX)
  ------------------
  |  Branch (76:9): [True: 0, False: 657]
  ------------------
   77|      0|        datal = INT_MAX;
   78|       |
   79|    657|    ret = bio->method->bwrite_old(bio, data, (int)datal);
   80|       |
   81|    657|    if (ret <= 0) {
  ------------------
  |  Branch (81:9): [True: 0, False: 657]
  ------------------
   82|      0|        *written = 0;
   83|      0|        return ret;
   84|      0|    }
   85|       |
   86|    657|    *written = (size_t)ret;
   87|       |
   88|    657|    return 1;
   89|    657|}
BIO_meth_set_write:
   93|    219|{
   94|    219|    biom->bwrite_old = bwrite;
   95|    219|    biom->bwrite = bwrite_conv;
   96|    219|    return 1;
   97|    219|}
BIO_meth_set_write_ex:
  101|      1|{
  102|       |    biom->bwrite_old = NULL;
  103|      1|    biom->bwrite = bwrite;
  104|      1|    return 1;
  105|      1|}
bread_conv:
  121|   164k|{
  122|   164k|    int ret;
  123|       |
  124|   164k|    if (datal > INT_MAX)
  ------------------
  |  Branch (124:9): [True: 0, False: 164k]
  ------------------
  125|      0|        datal = INT_MAX;
  126|       |
  127|   164k|    ret = bio->method->bread_old(bio, data, (int)datal);
  128|       |
  129|   164k|    if (ret <= 0) {
  ------------------
  |  Branch (129:9): [True: 4.13k, False: 159k]
  ------------------
  130|  4.13k|        *readbytes = 0;
  131|  4.13k|        return ret;
  132|  4.13k|    }
  133|       |
  134|   159k|    *readbytes = (size_t)ret;
  135|       |
  136|   159k|    return 1;
  137|   164k|}
BIO_meth_set_read:
  141|    219|{
  142|    219|    biom->bread_old = bread;
  143|    219|    biom->bread = bread_conv;
  144|    219|    return 1;
  145|    219|}
BIO_meth_set_read_ex:
  149|      1|{
  150|       |    biom->bread_old = NULL;
  151|      1|    biom->bread = bread;
  152|      1|    return 1;
  153|      1|}
BIO_meth_set_puts:
  164|      1|{
  165|      1|    biom->bputs = bputs;
  166|      1|    return 1;
  167|      1|}
BIO_meth_set_gets:
  178|      1|{
  179|      1|    biom->bgets = bgets;
  180|      1|    return 1;
  181|      1|}
BIO_meth_set_ctrl:
  192|    220|{
  193|    220|    biom->ctrl = ctrl;
  194|    220|    return 1;
  195|    220|}
BIO_meth_set_create:
  205|    220|{
  206|    220|    biom->create = create;
  207|    220|    return 1;
  208|    220|}
BIO_meth_set_destroy:
  218|    220|{
  219|    220|    biom->destroy = destroy;
  220|    220|    return 1;
  221|    220|}

BIO_snprintf:
 1094|  1.38k|{
 1095|  1.38k|    va_list args;
 1096|  1.38k|    int ret;
 1097|       |
 1098|  1.38k|    va_start(args, format);
 1099|       |
 1100|  1.38k|    ret = BIO_vsnprintf(buf, n, format, args);
 1101|       |
 1102|       |    va_end(args);
 1103|  1.38k|    return ret;
 1104|  1.38k|}
BIO_vsnprintf:
 1107|  4.90k|{
 1108|  4.90k|    size_t retlen;
 1109|  4.90k|    int truncated;
 1110|       |
 1111|  4.90k|    if (!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args))
  ------------------
  |  Branch (1111:9): [True: 0, False: 4.90k]
  ------------------
 1112|      0|        return -1;
 1113|       |
 1114|  4.90k|    if (truncated)
  ------------------
  |  Branch (1114:9): [True: 0, False: 4.90k]
  ------------------
 1115|       |        /*
 1116|       |         * In case of truncation, return -1 like traditional snprintf.
 1117|       |         * (Current drafts for ISO/IEC 9899 say snprintf should return the
 1118|       |         * number of characters that would have been written, had the buffer
 1119|       |         * been large enough.)
 1120|       |         */
 1121|      0|        return -1;
 1122|  4.90k|    return (retlen <= INT_MAX) ? (int)retlen : -1;
  ------------------
  |  Branch (1122:12): [True: 4.90k, False: 0]
  ------------------
 1123|  4.90k|}
bio_print.c:_dopr:
  104|  4.90k|{
  105|  4.90k|    char ch;
  106|  4.90k|    int64_t value;
  107|  4.90k|#ifndef OPENSSL_SYS_UEFI
  108|  4.90k|    LDOUBLE fvalue;
  ------------------
  |  |   28|  4.90k|#define LDOUBLE double
  ------------------
  109|  4.90k|#endif
  110|  4.90k|    char *strvalue;
  111|  4.90k|    int min;
  112|  4.90k|    int max;
  113|  4.90k|    int state;
  114|  4.90k|    int flags;
  115|  4.90k|    int cflags;
  116|  4.90k|    struct pr_desc desc = { *sbuffer, buffer, 0, *maxlen, 0 };
  117|  4.90k|    int ret = 0;
  118|       |
  119|  4.90k|    state = DP_S_DEFAULT;
  ------------------
  |  |   56|  4.90k|#define DP_S_DEFAULT 0
  ------------------
  120|  4.90k|    flags = cflags = min = 0;
  121|  4.90k|    max = -1;
  122|  4.90k|    ch = *format++;
  123|       |
  124|   216k|    while (state != DP_S_DONE) {
  ------------------
  |  |   63|   216k|#define DP_S_DONE 7
  ------------------
  |  Branch (124:12): [True: 211k, False: 4.90k]
  ------------------
  125|   211k|        if (ch == '\0')
  ------------------
  |  Branch (125:13): [True: 4.90k, False: 206k]
  ------------------
  126|  4.90k|            state = DP_S_DONE;
  ------------------
  |  |   63|  4.90k|#define DP_S_DONE 7
  ------------------
  127|       |
  128|   211k|        switch (state) {
  129|   129k|        case DP_S_DEFAULT:
  ------------------
  |  |   56|   129k|#define DP_S_DEFAULT 0
  ------------------
  |  Branch (129:9): [True: 129k, False: 82.2k]
  ------------------
  130|   129k|            if (ch == '%')
  ------------------
  |  Branch (130:17): [True: 15.4k, False: 114k]
  ------------------
  131|  15.4k|                state = DP_S_FLAGS;
  ------------------
  |  |   57|  15.4k|#define DP_S_FLAGS 1
  ------------------
  132|   114k|            else if (!doapr_outch(&desc, ch))
  ------------------
  |  Branch (132:22): [True: 0, False: 114k]
  ------------------
  133|      0|                goto out;
  134|   129k|            ch = *format++;
  135|   129k|            break;
  136|  15.4k|        case DP_S_FLAGS:
  ------------------
  |  |   57|  15.4k|#define DP_S_FLAGS 1
  ------------------
  |  Branch (136:9): [True: 15.4k, False: 196k]
  ------------------
  137|  15.4k|            switch (ch) {
  138|      0|            case '-':
  ------------------
  |  Branch (138:13): [True: 0, False: 15.4k]
  ------------------
  139|      0|                flags |= DP_F_MINUS;
  ------------------
  |  |   67|      0|#define DP_F_MINUS (1 << 0)
  ------------------
  140|      0|                ch = *format++;
  141|      0|                break;
  142|      0|            case '+':
  ------------------
  |  Branch (142:13): [True: 0, False: 15.4k]
  ------------------
  143|      0|                flags |= DP_F_PLUS;
  ------------------
  |  |   69|      0|#define DP_F_PLUS (1 << 1)
  ------------------
  144|      0|                ch = *format++;
  145|      0|                break;
  146|      0|            case ' ':
  ------------------
  |  Branch (146:13): [True: 0, False: 15.4k]
  ------------------
  147|      0|                flags |= DP_F_SPACE;
  ------------------
  |  |   71|      0|#define DP_F_SPACE (1 << 2)
  ------------------
  148|      0|                ch = *format++;
  149|      0|                break;
  150|      0|            case '#':
  ------------------
  |  Branch (150:13): [True: 0, False: 15.4k]
  ------------------
  151|      0|                flags |= DP_F_NUM;
  ------------------
  |  |   73|      0|#define DP_F_NUM (1 << 3)
  ------------------
  152|      0|                ch = *format++;
  153|      0|                break;
  154|      0|            case '0':
  ------------------
  |  Branch (154:13): [True: 0, False: 15.4k]
  ------------------
  155|      0|                flags |= DP_F_ZERO;
  ------------------
  |  |   75|      0|#define DP_F_ZERO (1 << 4)
  ------------------
  156|      0|                ch = *format++;
  157|      0|                break;
  158|  15.4k|            default:
  ------------------
  |  Branch (158:13): [True: 15.4k, False: 0]
  ------------------
  159|  15.4k|                state = DP_S_MIN;
  ------------------
  |  |   58|  15.4k|#define DP_S_MIN 2
  ------------------
  160|  15.4k|                break;
  161|  15.4k|            }
  162|  15.4k|            break;
  163|  15.4k|        case DP_S_MIN: /* width */
  ------------------
  |  |   58|  15.4k|#define DP_S_MIN 2
  ------------------
  |  Branch (163:9): [True: 15.4k, False: 196k]
  ------------------
  164|  15.4k|            if (ossl_isdigit(ch)) {
  ------------------
  |  Branch (164:17): [True: 0, False: 15.4k]
  ------------------
  165|       |                /*
  166|       |                 * Most implementations cap the possible explicitly specified
  167|       |                 * width by (INT_MAX / 10) * 10 - 1 or so (the standard gives
  168|       |                 * no clear limit on this), we can do the same.
  169|       |                 */
  170|      0|                if (min < INT_MAX / 10)
  ------------------
  |  Branch (170:21): [True: 0, False: 0]
  ------------------
  171|      0|                    min = 10 * min + char_to_int(ch);
  ------------------
  |  |   96|      0|#define char_to_int(p) (p - '0')
  ------------------
  172|      0|                else
  173|      0|                    goto out;
  174|      0|                ch = *format++;
  175|  15.4k|            } else if (ch == '*') {
  ------------------
  |  Branch (175:24): [True: 0, False: 15.4k]
  ------------------
  176|      0|                min = va_arg(args, int);
  177|      0|                if (min < 0) {
  ------------------
  |  Branch (177:21): [True: 0, False: 0]
  ------------------
  178|      0|                    flags |= DP_F_MINUS;
  ------------------
  |  |   67|      0|#define DP_F_MINUS (1 << 0)
  ------------------
  179|      0|                    min = -min;
  180|      0|                }
  181|      0|                ch = *format++;
  182|      0|                state = DP_S_DOT;
  ------------------
  |  |   59|      0|#define DP_S_DOT 3
  ------------------
  183|      0|            } else
  184|  15.4k|                state = DP_S_DOT;
  ------------------
  |  |   59|  15.4k|#define DP_S_DOT 3
  ------------------
  185|  15.4k|            break;
  186|  15.4k|        case DP_S_DOT:
  ------------------
  |  |   59|  15.4k|#define DP_S_DOT 3
  ------------------
  |  Branch (186:9): [True: 15.4k, False: 196k]
  ------------------
  187|  15.4k|            if (ch == '.') {
  ------------------
  |  Branch (187:17): [True: 0, False: 15.4k]
  ------------------
  188|      0|                state = DP_S_MAX;
  ------------------
  |  |   60|      0|#define DP_S_MAX 4
  ------------------
  189|      0|                ch = *format++;
  190|      0|            } else
  191|  15.4k|                state = DP_S_MOD;
  ------------------
  |  |   61|  15.4k|#define DP_S_MOD 5
  ------------------
  192|  15.4k|            break;
  193|      0|        case DP_S_MAX: /* precision */
  ------------------
  |  |   60|      0|#define DP_S_MAX 4
  ------------------
  |  Branch (193:9): [True: 0, False: 211k]
  ------------------
  194|      0|            if (ossl_isdigit(ch)) {
  ------------------
  |  Branch (194:17): [True: 0, False: 0]
  ------------------
  195|      0|                if (max < 0)
  ------------------
  |  Branch (195:21): [True: 0, False: 0]
  ------------------
  196|      0|                    max = 0;
  197|       |                /*
  198|       |                 * Most implementations cap the possible explicitly specified
  199|       |                 * width by (INT_MAX / 10) * 10 - 1 or so (the standard gives
  200|       |                 * no clear limit on this), we can do the same.
  201|       |                 */
  202|      0|                if (max < INT_MAX / 10)
  ------------------
  |  Branch (202:21): [True: 0, False: 0]
  ------------------
  203|      0|                    max = 10 * max + char_to_int(ch);
  ------------------
  |  |   96|      0|#define char_to_int(p) (p - '0')
  ------------------
  204|      0|                else
  205|      0|                    goto out;
  206|      0|                ch = *format++;
  207|      0|            } else if (ch == '*') {
  ------------------
  |  Branch (207:24): [True: 0, False: 0]
  ------------------
  208|      0|                max = va_arg(args, int);
  209|      0|                ch = *format++;
  210|      0|                state = DP_S_MOD;
  ------------------
  |  |   61|      0|#define DP_S_MOD 5
  ------------------
  211|      0|            } else {
  212|      0|                if (max < 0)
  ------------------
  |  Branch (212:21): [True: 0, False: 0]
  ------------------
  213|      0|                    max = 0;
  214|      0|                state = DP_S_MOD;
  ------------------
  |  |   61|      0|#define DP_S_MOD 5
  ------------------
  215|      0|            }
  216|      0|            break;
  217|  15.4k|        case DP_S_MOD:
  ------------------
  |  |   61|  15.4k|#define DP_S_MOD 5
  ------------------
  |  Branch (217:9): [True: 15.4k, False: 196k]
  ------------------
  218|  15.4k|            switch (ch) {
  219|      0|            case 'h':
  ------------------
  |  Branch (219:13): [True: 0, False: 15.4k]
  ------------------
  220|      0|                if (*format == 'h') {
  ------------------
  |  Branch (220:21): [True: 0, False: 0]
  ------------------
  221|      0|                    cflags = DP_C_CHAR;
  ------------------
  |  |   82|      0|#define DP_C_CHAR 1
  ------------------
  222|      0|                    format++;
  223|      0|                } else {
  224|      0|                    cflags = DP_C_SHORT;
  ------------------
  |  |   83|      0|#define DP_C_SHORT 2
  ------------------
  225|      0|                }
  226|      0|                ch = *format++;
  227|      0|                break;
  228|  1.38k|            case 'l':
  ------------------
  |  Branch (228:13): [True: 1.38k, False: 14.0k]
  ------------------
  229|  1.38k|                if (*format == 'l') {
  ------------------
  |  Branch (229:21): [True: 0, False: 1.38k]
  ------------------
  230|      0|                    cflags = DP_C_LLONG;
  ------------------
  |  |   86|      0|#define DP_C_LLONG 5
  ------------------
  231|      0|                    format++;
  232|      0|                } else
  233|  1.38k|                    cflags = DP_C_LONG;
  ------------------
  |  |   84|  1.38k|#define DP_C_LONG 3
  ------------------
  234|  1.38k|                ch = *format++;
  235|  1.38k|                break;
  236|      0|            case 'q':
  ------------------
  |  Branch (236:13): [True: 0, False: 15.4k]
  ------------------
  237|      0|            case 'j':
  ------------------
  |  Branch (237:13): [True: 0, False: 15.4k]
  ------------------
  238|      0|                cflags = DP_C_LLONG;
  ------------------
  |  |   86|      0|#define DP_C_LLONG 5
  ------------------
  239|      0|                ch = *format++;
  240|      0|                break;
  241|      0|            case 'L':
  ------------------
  |  Branch (241:13): [True: 0, False: 15.4k]
  ------------------
  242|      0|                cflags = DP_C_LDOUBLE;
  ------------------
  |  |   85|      0|#define DP_C_LDOUBLE 4
  ------------------
  243|      0|                ch = *format++;
  244|      0|                break;
  245|      0|            case 'z':
  ------------------
  |  Branch (245:13): [True: 0, False: 15.4k]
  ------------------
  246|      0|                cflags = DP_C_SIZE;
  ------------------
  |  |   87|      0|#define DP_C_SIZE 6
  ------------------
  247|      0|                ch = *format++;
  248|      0|                break;
  249|      0|            case 't':
  ------------------
  |  Branch (249:13): [True: 0, False: 15.4k]
  ------------------
  250|      0|                cflags = DP_C_PTRDIFF;
  ------------------
  |  |   88|      0|#define DP_C_PTRDIFF 7
  ------------------
  251|      0|                ch = *format++;
  252|      0|                break;
  253|  14.0k|            default:
  ------------------
  |  Branch (253:13): [True: 14.0k, False: 1.38k]
  ------------------
  254|  14.0k|                break;
  255|  15.4k|            }
  256|  15.4k|            state = DP_S_CONV;
  ------------------
  |  |   62|  15.4k|#define DP_S_CONV 6
  ------------------
  257|  15.4k|            break;
  258|  15.4k|        case DP_S_CONV:
  ------------------
  |  |   62|  15.4k|#define DP_S_CONV 6
  ------------------
  |  Branch (258:9): [True: 15.4k, False: 196k]
  ------------------
  259|  15.4k|            switch (ch) {
  260|  3.52k|            case 'd':
  ------------------
  |  Branch (260:13): [True: 3.52k, False: 11.9k]
  ------------------
  261|  3.52k|            case 'i':
  ------------------
  |  Branch (261:13): [True: 0, False: 15.4k]
  ------------------
  262|  3.52k|                switch (cflags) {
  263|      0|                case DP_C_CHAR:
  ------------------
  |  |   82|      0|#define DP_C_CHAR 1
  ------------------
  |  Branch (263:17): [True: 0, False: 3.52k]
  ------------------
  264|      0|                    value = (signed char)va_arg(args, int);
  265|      0|                    break;
  266|      0|                case DP_C_SHORT:
  ------------------
  |  |   83|      0|#define DP_C_SHORT 2
  ------------------
  |  Branch (266:17): [True: 0, False: 3.52k]
  ------------------
  267|      0|                    value = (short int)va_arg(args, int);
  268|      0|                    break;
  269|      0|                case DP_C_LONG:
  ------------------
  |  |   84|      0|#define DP_C_LONG 3
  ------------------
  |  Branch (269:17): [True: 0, False: 3.52k]
  ------------------
  270|      0|                    value = va_arg(args, long int);
  271|      0|                    break;
  272|      0|                case DP_C_LLONG:
  ------------------
  |  |   86|      0|#define DP_C_LLONG 5
  ------------------
  |  Branch (272:17): [True: 0, False: 3.52k]
  ------------------
  273|      0|                    value = va_arg(args, int64_t);
  274|      0|                    break;
  275|      0|                case DP_C_SIZE:
  ------------------
  |  |   87|      0|#define DP_C_SIZE 6
  ------------------
  |  Branch (275:17): [True: 0, False: 3.52k]
  ------------------
  276|      0|                    value = va_arg(args, ossl_ssize_t);
  277|      0|                    break;
  278|      0|                case DP_C_PTRDIFF:
  ------------------
  |  |   88|      0|#define DP_C_PTRDIFF 7
  ------------------
  |  Branch (278:17): [True: 0, False: 3.52k]
  ------------------
  279|      0|                    value = va_arg(args, ptrdiff_t);
  280|      0|                    break;
  281|  3.52k|                default:
  ------------------
  |  Branch (281:17): [True: 3.52k, False: 0]
  ------------------
  282|  3.52k|                    value = va_arg(args, int);
  283|  3.52k|                    break;
  284|  3.52k|                }
  285|  3.52k|                if (!fmtint(&desc, value, 10, min, max, flags))
  ------------------
  |  Branch (285:21): [True: 0, False: 3.52k]
  ------------------
  286|      0|                    goto out;
  287|  3.52k|                break;
  288|  3.52k|            case 'X':
  ------------------
  |  Branch (288:13): [True: 0, False: 15.4k]
  ------------------
  289|      0|                flags |= DP_F_UP;
  ------------------
  |  |   77|      0|#define DP_F_UP (1 << 5)
  ------------------
  290|       |                /* FALLTHROUGH */
  291|      0|            case 'x':
  ------------------
  |  Branch (291:13): [True: 0, False: 15.4k]
  ------------------
  292|      0|            case 'o':
  ------------------
  |  Branch (292:13): [True: 0, False: 15.4k]
  ------------------
  293|  1.38k|            case 'u':
  ------------------
  |  Branch (293:13): [True: 1.38k, False: 14.0k]
  ------------------
  294|  1.38k|                flags |= DP_F_UNSIGNED;
  ------------------
  |  |   79|  1.38k|#define DP_F_UNSIGNED (1 << 6)
  ------------------
  295|  1.38k|                switch (cflags) {
  296|      0|                case DP_C_CHAR:
  ------------------
  |  |   82|      0|#define DP_C_CHAR 1
  ------------------
  |  Branch (296:17): [True: 0, False: 1.38k]
  ------------------
  297|      0|                    value = (unsigned char)va_arg(args, unsigned int);
  298|      0|                    break;
  299|      0|                case DP_C_SHORT:
  ------------------
  |  |   83|      0|#define DP_C_SHORT 2
  ------------------
  |  Branch (299:17): [True: 0, False: 1.38k]
  ------------------
  300|      0|                    value = (unsigned short int)va_arg(args, unsigned int);
  301|      0|                    break;
  302|  1.38k|                case DP_C_LONG:
  ------------------
  |  |   84|  1.38k|#define DP_C_LONG 3
  ------------------
  |  Branch (302:17): [True: 1.38k, False: 0]
  ------------------
  303|  1.38k|                    value = va_arg(args, unsigned long int);
  304|  1.38k|                    break;
  305|      0|                case DP_C_LLONG:
  ------------------
  |  |   86|      0|#define DP_C_LLONG 5
  ------------------
  |  Branch (305:17): [True: 0, False: 1.38k]
  ------------------
  306|      0|                    value = va_arg(args, uint64_t);
  307|      0|                    break;
  308|      0|                case DP_C_SIZE:
  ------------------
  |  |   87|      0|#define DP_C_SIZE 6
  ------------------
  |  Branch (308:17): [True: 0, False: 1.38k]
  ------------------
  309|      0|                    value = va_arg(args, size_t);
  310|      0|                    break;
  311|      0|                case DP_C_PTRDIFF:
  ------------------
  |  |   88|      0|#define DP_C_PTRDIFF 7
  ------------------
  |  Branch (311:17): [True: 0, False: 1.38k]
  ------------------
  312|       |                    /*
  313|       |                     * There is no unsigned variant of ptrdiff_t, and POSIX
  314|       |                     * requires using a "corresponding unsigned type argument".
  315|       |                     * Assuming it is power of two in size, at least.
  316|       |                     */
  317|      0|                    if (sizeof(ptrdiff_t) == sizeof(uint64_t))
  ------------------
  |  Branch (317:25): [True: 0, Folded]
  ------------------
  318|      0|                        value = va_arg(args, uint64_t);
  319|      0|                    else
  320|      0|                        value = va_arg(args, unsigned int);
  321|      0|                    break;
  322|      0|                default:
  ------------------
  |  Branch (322:17): [True: 0, False: 1.38k]
  ------------------
  323|      0|                    value = va_arg(args, unsigned int);
  324|      0|                    break;
  325|  1.38k|                }
  326|  1.38k|                if (!fmtint(&desc, value,
  ------------------
  |  Branch (326:21): [True: 0, False: 1.38k]
  ------------------
  327|  1.38k|                        ch == 'o' ? 8 : (ch == 'u' ? 10 : 16),
  ------------------
  |  Branch (327:25): [True: 0, False: 1.38k]
  |  Branch (327:42): [True: 1.38k, False: 0]
  ------------------
  328|  1.38k|                        min, max, flags))
  329|      0|                    goto out;
  330|  1.38k|                break;
  331|  1.38k|#ifndef OPENSSL_SYS_UEFI
  332|  1.38k|            case 'f':
  ------------------
  |  Branch (332:13): [True: 0, False: 15.4k]
  ------------------
  333|      0|                if (cflags == DP_C_LDOUBLE)
  ------------------
  |  |   85|      0|#define DP_C_LDOUBLE 4
  ------------------
  |  Branch (333:21): [True: 0, False: 0]
  ------------------
  334|      0|                    fvalue = va_arg(args, LDOUBLE);
  335|      0|                else
  336|      0|                    fvalue = va_arg(args, double);
  337|      0|                if (!fmtfp(&desc, fvalue, min, max, flags, F_FORMAT))
  ------------------
  |  |   91|      0|#define F_FORMAT 0
  ------------------
  |  Branch (337:21): [True: 0, False: 0]
  ------------------
  338|      0|                    goto out;
  339|      0|                break;
  340|      0|            case 'E':
  ------------------
  |  Branch (340:13): [True: 0, False: 15.4k]
  ------------------
  341|      0|                flags |= DP_F_UP;
  ------------------
  |  |   77|      0|#define DP_F_UP (1 << 5)
  ------------------
  342|       |                /* fall through */
  343|      0|            case 'e':
  ------------------
  |  Branch (343:13): [True: 0, False: 15.4k]
  ------------------
  344|      0|                if (cflags == DP_C_LDOUBLE)
  ------------------
  |  |   85|      0|#define DP_C_LDOUBLE 4
  ------------------
  |  Branch (344:21): [True: 0, False: 0]
  ------------------
  345|      0|                    fvalue = va_arg(args, LDOUBLE);
  346|      0|                else
  347|      0|                    fvalue = va_arg(args, double);
  348|      0|                if (!fmtfp(&desc, fvalue, min, max, flags, E_FORMAT))
  ------------------
  |  |   92|      0|#define E_FORMAT 1
  ------------------
  |  Branch (348:21): [True: 0, False: 0]
  ------------------
  349|      0|                    goto out;
  350|      0|                break;
  351|      0|            case 'G':
  ------------------
  |  Branch (351:13): [True: 0, False: 15.4k]
  ------------------
  352|      0|                flags |= DP_F_UP;
  ------------------
  |  |   77|      0|#define DP_F_UP (1 << 5)
  ------------------
  353|       |                /* fall through */
  354|      0|            case 'g':
  ------------------
  |  Branch (354:13): [True: 0, False: 15.4k]
  ------------------
  355|      0|                if (cflags == DP_C_LDOUBLE)
  ------------------
  |  |   85|      0|#define DP_C_LDOUBLE 4
  ------------------
  |  Branch (355:21): [True: 0, False: 0]
  ------------------
  356|      0|                    fvalue = va_arg(args, LDOUBLE);
  357|      0|                else
  358|      0|                    fvalue = va_arg(args, double);
  359|      0|                if (!fmtfp(&desc, fvalue, min, max, flags, G_FORMAT))
  ------------------
  |  |   93|      0|#define G_FORMAT 2
  ------------------
  |  Branch (359:21): [True: 0, False: 0]
  ------------------
  360|      0|                    goto out;
  361|      0|                break;
  362|       |#else
  363|       |            case 'f':
  364|       |            case 'E':
  365|       |            case 'e':
  366|       |            case 'G':
  367|       |            case 'g':
  368|       |                /* not implemented for UEFI */
  369|       |                ERR_raise(ERR_LIB_BIO, ERR_R_UNSUPPORTED);
  370|       |                goto out;
  371|       |#endif
  372|      0|            case 'c':
  ------------------
  |  Branch (372:13): [True: 0, False: 15.4k]
  ------------------
  373|      0|                if (!doapr_outch(&desc, va_arg(args, int)))
  ------------------
  |  Branch (373:21): [True: 0, False: 0]
  ------------------
  374|      0|                    goto out;
  375|      0|                break;
  376|  10.5k|            case 's':
  ------------------
  |  Branch (376:13): [True: 10.5k, False: 4.90k]
  ------------------
  377|  10.5k|                strvalue = va_arg(args, char *);
  378|  10.5k|                if (max < 0)
  ------------------
  |  Branch (378:21): [True: 10.5k, False: 0]
  ------------------
  379|  10.5k|                    max = INT_MAX;
  380|  10.5k|                if (!fmtstr(&desc, strvalue, flags, min, max))
  ------------------
  |  Branch (380:21): [True: 0, False: 10.5k]
  ------------------
  381|      0|                    goto out;
  382|  10.5k|                break;
  383|  10.5k|            case 'p':
  ------------------
  |  Branch (383:13): [True: 0, False: 15.4k]
  ------------------
  384|      0|                value = (size_t)va_arg(args, void *);
  385|      0|                if (!fmtint(&desc, value, 16, min, max, flags | DP_F_NUM))
  ------------------
  |  |   73|      0|#define DP_F_NUM (1 << 3)
  ------------------
  |  Branch (385:21): [True: 0, False: 0]
  ------------------
  386|      0|                    goto out;
  387|      0|                break;
  388|      0|            case 'n':
  ------------------
  |  Branch (388:13): [True: 0, False: 15.4k]
  ------------------
  389|      0|                switch (cflags) {
  390|      0|#define HANDLE_N(type)              \
  391|      0|    do {                            \
  392|      0|        type *num;                  \
  393|      0|                                    \
  394|      0|        num = va_arg(args, type *); \
  395|      0|        *num = (type)desc.pos;      \
  396|      0|    } while (0)
  397|      0|                case DP_C_CHAR:
  ------------------
  |  |   82|      0|#define DP_C_CHAR 1
  ------------------
  |  Branch (397:17): [True: 0, False: 0]
  ------------------
  398|      0|                    HANDLE_N(signed char);
  ------------------
  |  |  391|      0|    do {                            \
  |  |  392|      0|        type *num;                  \
  |  |  393|      0|                                    \
  |  |  394|      0|        num = va_arg(args, type *); \
  |  |  395|      0|        *num = (type)desc.pos;      \
  |  |  396|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (396:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  399|      0|                    break;
  400|      0|                case DP_C_SHORT:
  ------------------
  |  |   83|      0|#define DP_C_SHORT 2
  ------------------
  |  Branch (400:17): [True: 0, False: 0]
  ------------------
  401|      0|                    HANDLE_N(short);
  ------------------
  |  |  391|      0|    do {                            \
  |  |  392|      0|        type *num;                  \
  |  |  393|      0|                                    \
  |  |  394|      0|        num = va_arg(args, type *); \
  |  |  395|      0|        *num = (type)desc.pos;      \
  |  |  396|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (396:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  402|      0|                    break;
  403|      0|                case DP_C_LONG:
  ------------------
  |  |   84|      0|#define DP_C_LONG 3
  ------------------
  |  Branch (403:17): [True: 0, False: 0]
  ------------------
  404|      0|                    HANDLE_N(long);
  ------------------
  |  |  391|      0|    do {                            \
  |  |  392|      0|        type *num;                  \
  |  |  393|      0|                                    \
  |  |  394|      0|        num = va_arg(args, type *); \
  |  |  395|      0|        *num = (type)desc.pos;      \
  |  |  396|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (396:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  405|      0|                    break;
  406|      0|                case DP_C_LLONG:
  ------------------
  |  |   86|      0|#define DP_C_LLONG 5
  ------------------
  |  Branch (406:17): [True: 0, False: 0]
  ------------------
  407|      0|                    HANDLE_N(long long);
  ------------------
  |  |  391|      0|    do {                            \
  |  |  392|      0|        type *num;                  \
  |  |  393|      0|                                    \
  |  |  394|      0|        num = va_arg(args, type *); \
  |  |  395|      0|        *num = (type)desc.pos;      \
  |  |  396|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (396:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  408|      0|                    break;
  409|      0|                case DP_C_SIZE:
  ------------------
  |  |   87|      0|#define DP_C_SIZE 6
  ------------------
  |  Branch (409:17): [True: 0, False: 0]
  ------------------
  410|      0|                    HANDLE_N(ossl_ssize_t);
  ------------------
  |  |  391|      0|    do {                            \
  |  |  392|      0|        type *num;                  \
  |  |  393|      0|                                    \
  |  |  394|      0|        num = va_arg(args, type *); \
  |  |  395|      0|        *num = (type)desc.pos;      \
  |  |  396|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (396:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  411|      0|                    break;
  412|      0|                case DP_C_PTRDIFF:
  ------------------
  |  |   88|      0|#define DP_C_PTRDIFF 7
  ------------------
  |  Branch (412:17): [True: 0, False: 0]
  ------------------
  413|      0|                    HANDLE_N(ptrdiff_t);
  ------------------
  |  |  391|      0|    do {                            \
  |  |  392|      0|        type *num;                  \
  |  |  393|      0|                                    \
  |  |  394|      0|        num = va_arg(args, type *); \
  |  |  395|      0|        *num = (type)desc.pos;      \
  |  |  396|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (396:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  414|      0|                    break;
  415|      0|                default:
  ------------------
  |  Branch (415:17): [True: 0, False: 0]
  ------------------
  416|      0|                    HANDLE_N(int);
  ------------------
  |  |  391|      0|    do {                            \
  |  |  392|      0|        type *num;                  \
  |  |  393|      0|                                    \
  |  |  394|      0|        num = va_arg(args, type *); \
  |  |  395|      0|        *num = (type)desc.pos;      \
  |  |  396|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (396:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  417|      0|                    break;
  418|      0|#undef HANDLE_N
  419|      0|                }
  420|      0|                break;
  421|      0|            case '%':
  ------------------
  |  Branch (421:13): [True: 0, False: 15.4k]
  ------------------
  422|      0|                if (!doapr_outch(&desc, ch))
  ------------------
  |  Branch (422:21): [True: 0, False: 0]
  ------------------
  423|      0|                    goto out;
  424|      0|                break;
  425|      0|            case 'w':
  ------------------
  |  Branch (425:13): [True: 0, False: 15.4k]
  ------------------
  426|       |                /* not supported yet, treat as next char */
  427|      0|                format++;
  428|      0|                break;
  429|      0|            default:
  ------------------
  |  Branch (429:13): [True: 0, False: 15.4k]
  ------------------
  430|       |                /* unknown, skip */
  431|      0|                break;
  432|  15.4k|            }
  433|  15.4k|            ch = *format++;
  434|  15.4k|            state = DP_S_DEFAULT;
  ------------------
  |  |   56|  15.4k|#define DP_S_DEFAULT 0
  ------------------
  435|  15.4k|            flags = cflags = min = 0;
  436|  15.4k|            max = -1;
  437|  15.4k|            break;
  438|  4.90k|        case DP_S_DONE:
  ------------------
  |  |   63|  4.90k|#define DP_S_DONE 7
  ------------------
  |  Branch (438:9): [True: 4.90k, False: 206k]
  ------------------
  439|  4.90k|            break;
  440|      0|        default:
  ------------------
  |  Branch (440:9): [True: 0, False: 211k]
  ------------------
  441|      0|            break;
  442|   211k|        }
  443|   211k|    }
  444|  4.90k|    ret = 1;
  445|       |
  446|  4.90k|out:
  447|       |    /*
  448|       |     * We have to truncate if there is no dynamic buffer and we have filled the
  449|       |     * static buffer.
  450|       |     */
  451|  4.90k|    if (buffer == NULL) {
  ------------------
  |  Branch (451:9): [True: 4.90k, False: 0]
  ------------------
  452|  4.90k|        *truncated = (desc.currlen > desc.maxlen - 1);
  453|  4.90k|        if (*truncated)
  ------------------
  |  Branch (453:13): [True: 0, False: 4.90k]
  ------------------
  454|      0|            desc.currlen = desc.maxlen - 1;
  455|  4.90k|    }
  456|       |
  457|  4.90k|    if (!doapr_outch(&desc, '\0'))
  ------------------
  |  Branch (457:9): [True: 0, False: 4.90k]
  ------------------
  458|      0|        ret = 0;
  459|       |
  460|  4.90k|    *retlen = desc.currlen - 1;
  461|  4.90k|    *sbuffer = desc.sbuffer;
  462|  4.90k|    *maxlen = desc.maxlen;
  463|       |
  464|  4.90k|    return ret;
  465|  4.90k|}
bio_print.c:doapr_outch:
  963|   290k|{
  964|       |    /* If we haven't at least one buffer, someone has done a big booboo */
  965|   290k|    if (!ossl_assert(desc->sbuffer != NULL || desc->buffer != NULL))
  ------------------
  |  |   52|   290k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 290k, False: 0]
  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  ------------------
  |  |   53|   290k|    __FILE__, __LINE__)
  ------------------
  |  Branch (965:9): [True: 0, False: 290k]
  ------------------
  966|      0|        return 0;
  967|       |
  968|       |    /* |currlen| must always be <= |*maxlen| */
  969|   290k|    if (!ossl_assert(desc->currlen <= desc->maxlen))
  ------------------
  |  |   52|   290k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|   290k|    __FILE__, __LINE__)
  ------------------
  |  Branch (969:9): [True: 0, False: 290k]
  ------------------
  970|      0|        return 0;
  971|       |
  972|   290k|    if (desc->buffer != NULL && desc->currlen == desc->maxlen) {
  ------------------
  |  Branch (972:9): [True: 0, False: 290k]
  |  Branch (972:33): [True: 0, False: 0]
  ------------------
  973|      0|        if (desc->maxlen > INT_MAX - BUFFER_INC)
  ------------------
  |  |  959|      0|#define BUFFER_INC 1024
  ------------------
  |  Branch (973:13): [True: 0, False: 0]
  ------------------
  974|      0|            return 0;
  975|       |
  976|      0|        desc->maxlen += BUFFER_INC;
  ------------------
  |  |  959|      0|#define BUFFER_INC 1024
  ------------------
  977|      0|        if (*(desc->buffer) == NULL) {
  ------------------
  |  Branch (977:13): [True: 0, False: 0]
  ------------------
  978|      0|            if ((*(desc->buffer) = OPENSSL_malloc(desc->maxlen)) == NULL)
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (978:17): [True: 0, False: 0]
  ------------------
  979|      0|                return 0;
  980|      0|            if (desc->currlen > 0) {
  ------------------
  |  Branch (980:17): [True: 0, False: 0]
  ------------------
  981|      0|                if (!ossl_assert(desc->sbuffer != NULL))
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (981:21): [True: 0, False: 0]
  ------------------
  982|      0|                    return 0;
  983|      0|                memcpy(*(desc->buffer), desc->sbuffer, desc->currlen);
  984|      0|            }
  985|      0|            desc->sbuffer = NULL;
  986|      0|        } else {
  987|      0|            char *tmpbuf;
  988|       |
  989|      0|            tmpbuf = OPENSSL_realloc(*(desc->buffer), desc->maxlen);
  ------------------
  |  |  120|      0|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  990|      0|            if (tmpbuf == NULL)
  ------------------
  |  Branch (990:17): [True: 0, False: 0]
  ------------------
  991|      0|                return 0;
  992|      0|            *(desc->buffer) = tmpbuf;
  993|      0|        }
  994|      0|    }
  995|       |
  996|   290k|    if (desc->currlen < desc->maxlen) {
  ------------------
  |  Branch (996:9): [True: 290k, False: 0]
  ------------------
  997|   290k|        if (desc->sbuffer)
  ------------------
  |  Branch (997:13): [True: 290k, False: 0]
  ------------------
  998|   290k|            (desc->sbuffer)[(desc->currlen)++] = (char)c;
  999|      0|        else
 1000|      0|            (*(desc->buffer))[(desc->currlen)++] = (char)c;
 1001|   290k|    }
 1002|       |
 1003|   290k|    if (desc->pos < LLONG_MAX)
  ------------------
  |  Branch (1003:9): [True: 290k, False: 0]
  ------------------
 1004|   290k|        desc->pos++;
 1005|       |
 1006|   290k|    return 1;
 1007|   290k|}
bio_print.c:fmtint:
  537|  4.90k|{
  538|  4.90k|    static const char oct_prefix[] = "0";
  539|       |
  540|  4.90k|    int signvalue = 0;
  541|  4.90k|    const char *prefix = "";
  542|  4.90k|    uint64_t uvalue;
  543|  4.90k|    char convert[DECIMAL_SIZE(value) + 3];
  544|  4.90k|    int place = 0;
  545|  4.90k|    int spadlen = 0;
  546|  4.90k|    int zpadlen = 0;
  547|  4.90k|    int caps = 0;
  548|       |
  549|  4.90k|    if (max < 0) {
  ------------------
  |  Branch (549:9): [True: 4.90k, False: 0]
  ------------------
  550|       |        /* A negative precision is taken as if the precision were omitted. */
  551|  4.90k|        max = 1;
  552|  4.90k|    } else {
  553|       |        /*
  554|       |         * If a precision is given with an integer conversion,
  555|       |         * the 0 flag is ignored.
  556|       |         */
  557|      0|        flags &= ~DP_F_ZERO;
  ------------------
  |  |   75|      0|#define DP_F_ZERO (1 << 4)
  ------------------
  558|      0|    }
  559|  4.90k|    uvalue = value;
  560|  4.90k|    if (!(flags & DP_F_UNSIGNED)) {
  ------------------
  |  |   79|  4.90k|#define DP_F_UNSIGNED (1 << 6)
  ------------------
  |  Branch (560:9): [True: 3.52k, False: 1.38k]
  ------------------
  561|  3.52k|        if (value < 0) {
  ------------------
  |  Branch (561:13): [True: 0, False: 3.52k]
  ------------------
  562|      0|            signvalue = '-';
  563|      0|            uvalue = 0 - (uint64_t)value;
  564|  3.52k|        } else if (flags & DP_F_PLUS)
  ------------------
  |  |   69|  3.52k|#define DP_F_PLUS (1 << 1)
  ------------------
  |  Branch (564:20): [True: 0, False: 3.52k]
  ------------------
  565|      0|            signvalue = '+';
  566|  3.52k|        else if (flags & DP_F_SPACE)
  ------------------
  |  |   71|  3.52k|#define DP_F_SPACE (1 << 2)
  ------------------
  |  Branch (566:18): [True: 0, False: 3.52k]
  ------------------
  567|      0|            signvalue = ' ';
  568|  3.52k|    }
  569|  4.90k|    if (flags & DP_F_NUM) {
  ------------------
  |  |   73|  4.90k|#define DP_F_NUM (1 << 3)
  ------------------
  |  Branch (569:9): [True: 0, False: 4.90k]
  ------------------
  570|      0|        if (base == 8)
  ------------------
  |  Branch (570:13): [True: 0, False: 0]
  ------------------
  571|      0|            prefix = oct_prefix;
  572|      0|        if (value != 0) {
  ------------------
  |  Branch (572:13): [True: 0, False: 0]
  ------------------
  573|      0|            if (base == 16)
  ------------------
  |  Branch (573:17): [True: 0, False: 0]
  ------------------
  574|      0|                prefix = flags & DP_F_UP ? "0X" : "0x";
  ------------------
  |  |   77|      0|#define DP_F_UP (1 << 5)
  ------------------
  |  Branch (574:26): [True: 0, False: 0]
  ------------------
  575|      0|        }
  576|      0|    }
  577|  4.90k|    if (flags & DP_F_UP)
  ------------------
  |  |   77|  4.90k|#define DP_F_UP (1 << 5)
  ------------------
  |  Branch (577:9): [True: 0, False: 4.90k]
  ------------------
  578|      0|        caps = 1;
  579|       |    /* When 0 is printed with an explicit precision 0, the output is empty. */
  580|  9.61k|    while (uvalue && (place < (int)sizeof(convert))) {
  ------------------
  |  Branch (580:12): [True: 4.71k, False: 4.90k]
  |  Branch (580:22): [True: 4.71k, False: 0]
  ------------------
  581|  4.71k|        convert[place++] = (caps ? "0123456789ABCDEF" : "0123456789abcdef")
  ------------------
  |  Branch (581:29): [True: 0, False: 4.71k]
  ------------------
  582|  4.71k|            [uvalue % (unsigned)base];
  583|  4.71k|        uvalue = (uvalue / (unsigned)base);
  584|  4.71k|    }
  585|  4.90k|    if (place == sizeof(convert))
  ------------------
  |  Branch (585:9): [True: 0, False: 4.90k]
  ------------------
  586|      0|        place--;
  587|  4.90k|    convert[place] = 0;
  588|       |
  589|       |    /*
  590|       |     * "#" (alternative form):
  591|       |     *   - For o conversion, it shall increase the precision, if and only
  592|       |     *     if necessary, to force the first digit of the result to be a zero
  593|       |     */
  594|  4.90k|    zpadlen = max - place - (prefix == oct_prefix);
  595|  4.90k|    if (zpadlen < 0)
  ------------------
  |  Branch (595:9): [True: 1.64k, False: 3.26k]
  ------------------
  596|  1.64k|        zpadlen = 0;
  597|  4.90k|    spadlen = min - OSSL_MAX(max, place + zpadlen + (signvalue ? 1 : 0) + (int)strlen(prefix));
  ------------------
  |  |   97|  9.80k|#define OSSL_MAX(p, q) ((p >= q) ? p : q)
  |  |  ------------------
  |  |  |  Branch (97:25): [True: 3.26k, False: 1.64k]
  |  |  |  Branch (97:31): [True: 0, False: 4.90k]
  |  |  |  Branch (97:40): [True: 0, False: 1.64k]
  |  |  ------------------
  ------------------
  598|  4.90k|    if (spadlen < 0)
  ------------------
  |  Branch (598:9): [True: 4.90k, False: 0]
  ------------------
  599|  4.90k|        spadlen = 0;
  600|  4.90k|    if (flags & DP_F_MINUS) {
  ------------------
  |  |   67|  4.90k|#define DP_F_MINUS (1 << 0)
  ------------------
  |  Branch (600:9): [True: 0, False: 4.90k]
  ------------------
  601|      0|        spadlen = -spadlen;
  602|  4.90k|    } else if (flags & DP_F_ZERO) {
  ------------------
  |  |   75|  4.90k|#define DP_F_ZERO (1 << 4)
  ------------------
  |  Branch (602:16): [True: 0, False: 4.90k]
  ------------------
  603|      0|        zpadlen = zpadlen + spadlen;
  604|      0|        spadlen = 0;
  605|      0|    }
  606|       |
  607|       |    /* spaces */
  608|  4.90k|    while (spadlen > 0 && eob_ok(desc, spadlen)) {
  ------------------
  |  Branch (608:12): [True: 0, False: 4.90k]
  |  Branch (608:27): [True: 0, False: 0]
  ------------------
  609|      0|        if (!doapr_outch(desc, ' '))
  ------------------
  |  Branch (609:13): [True: 0, False: 0]
  ------------------
  610|      0|            return 0;
  611|      0|        --spadlen;
  612|      0|    }
  613|       |
  614|       |    /* sign */
  615|  4.90k|    if (signvalue)
  ------------------
  |  Branch (615:9): [True: 0, False: 4.90k]
  ------------------
  616|      0|        if (!doapr_outch(desc, signvalue))
  ------------------
  |  Branch (616:13): [True: 0, False: 0]
  ------------------
  617|      0|            return 0;
  618|       |
  619|       |    /* prefix */
  620|  4.90k|    while (*prefix) {
  ------------------
  |  Branch (620:12): [True: 0, False: 4.90k]
  ------------------
  621|      0|        if (!doapr_outch(desc, *prefix))
  ------------------
  |  Branch (621:13): [True: 0, False: 0]
  ------------------
  622|      0|            return 0;
  623|      0|        prefix++;
  624|      0|    }
  625|       |
  626|       |    /* zeros */
  627|  4.90k|    if (zpadlen > 0) {
  ------------------
  |  Branch (627:9): [True: 2.42k, False: 2.47k]
  ------------------
  628|  4.84k|        while (zpadlen > 0 && eob_ok(desc, zpadlen)) {
  ------------------
  |  Branch (628:16): [True: 2.42k, False: 2.42k]
  |  Branch (628:31): [True: 2.42k, False: 0]
  ------------------
  629|  2.42k|            if (!doapr_outch(desc, '0'))
  ------------------
  |  Branch (629:17): [True: 0, False: 2.42k]
  ------------------
  630|      0|                return 0;
  631|  2.42k|            --zpadlen;
  632|  2.42k|        }
  633|  2.42k|    }
  634|       |    /* digits */
  635|  9.61k|    while (place > 0) {
  ------------------
  |  Branch (635:12): [True: 4.71k, False: 4.90k]
  ------------------
  636|  4.71k|        if (!doapr_outch(desc, convert[--place]))
  ------------------
  |  Branch (636:13): [True: 0, False: 4.71k]
  ------------------
  637|      0|            return 0;
  638|  4.71k|    }
  639|       |
  640|       |    /* left justified spaces */
  641|  4.90k|    if (spadlen < 0) {
  ------------------
  |  Branch (641:9): [True: 0, False: 4.90k]
  ------------------
  642|      0|        spadlen = -spadlen;
  643|       |
  644|      0|        while (spadlen > 0 && eob_ok(desc, spadlen)) {
  ------------------
  |  Branch (644:16): [True: 0, False: 0]
  |  Branch (644:31): [True: 0, False: 0]
  ------------------
  645|      0|            if (!doapr_outch(desc, ' '))
  ------------------
  |  Branch (645:17): [True: 0, False: 0]
  ------------------
  646|      0|                return 0;
  647|      0|            --spadlen;
  648|      0|        }
  649|      0|    }
  650|  4.90k|    return 1;
  651|  4.90k|}
bio_print.c:eob_ok:
 1022|   166k|{
 1023|       |    /*
 1024|       |     * desc->buffer is auto-sizeable, so we are never supposed to reach the end
 1025|       |     * of it.
 1026|       |     */
 1027|   166k|    if (desc->buffer != NULL)
  ------------------
  |  Branch (1027:9): [True: 0, False: 166k]
  ------------------
 1028|      0|        return 1;
 1029|       |
 1030|   166k|    if (desc->currlen >= desc->maxlen) {
  ------------------
  |  Branch (1030:9): [True: 0, False: 166k]
  ------------------
 1031|      0|        if (left > 0) {
  ------------------
  |  Branch (1031:13): [True: 0, False: 0]
  ------------------
 1032|      0|            if (desc->pos < LLONG_MAX - left) {
  ------------------
  |  Branch (1032:17): [True: 0, False: 0]
  ------------------
 1033|      0|                desc->pos += left;
 1034|      0|            } else {
 1035|      0|                desc->pos = LLONG_MAX;
 1036|      0|            }
 1037|      0|        }
 1038|       |
 1039|      0|        return 0;
 1040|      0|    }
 1041|       |
 1042|   166k|    return 1;
 1043|   166k|}
bio_print.c:fmtstr:
  469|  10.5k|{
  470|  10.5k|    int padlen = 0;
  471|  10.5k|    size_t strln;
  472|  10.5k|    int cnt = 0;
  473|       |
  474|  10.5k|    if (value == 0)
  ------------------
  |  Branch (474:9): [True: 0, False: 10.5k]
  ------------------
  475|      0|        value = "<NULL>";
  476|       |
  477|  10.5k|    strln = OPENSSL_strnlen(value, max < 0 ? SIZE_MAX : (size_t)max);
  ------------------
  |  Branch (477:36): [True: 0, False: 10.5k]
  ------------------
  478|       |
  479|  10.5k|    if (min >= 0 && strln < INT_MAX) {
  ------------------
  |  Branch (479:9): [True: 10.5k, False: 0]
  |  Branch (479:21): [True: 10.5k, False: 0]
  ------------------
  480|  10.5k|        padlen = min - (int)strln;
  481|  10.5k|        if (padlen < 0)
  ------------------
  |  Branch (481:13): [True: 10.5k, False: 0]
  ------------------
  482|  10.5k|            padlen = 0;
  483|  10.5k|    }
  484|  10.5k|    if (max >= 0) {
  ------------------
  |  Branch (484:9): [True: 10.5k, False: 0]
  ------------------
  485|       |        /*
  486|       |         * Calculate the maximum output including padding.
  487|       |         * Make sure max doesn't overflow into negativity
  488|       |         */
  489|  10.5k|        if (max < INT_MAX - padlen)
  ------------------
  |  Branch (489:13): [True: 0, False: 10.5k]
  ------------------
  490|      0|            max += padlen;
  491|  10.5k|        else
  492|  10.5k|            max = INT_MAX;
  493|  10.5k|    }
  494|       |
  495|  10.5k|    if (!(flags & DP_F_MINUS) && padlen > 0) {
  ------------------
  |  |   67|  10.5k|#define DP_F_MINUS (1 << 0)
  ------------------
  |  Branch (495:9): [True: 10.5k, False: 0]
  |  Branch (495:34): [True: 0, False: 10.5k]
  ------------------
  496|       |        /* cap padlen to max so we can pass it as-is to eob_ok() */
  497|      0|        if (max >= 0) {
  ------------------
  |  Branch (497:13): [True: 0, False: 0]
  ------------------
  498|      0|            if (padlen > max)
  ------------------
  |  Branch (498:17): [True: 0, False: 0]
  ------------------
  499|      0|                padlen = max;
  500|      0|            cnt = padlen;
  501|      0|        }
  502|      0|        while (padlen > 0 && eob_ok(desc, padlen)) {
  ------------------
  |  Branch (502:16): [True: 0, False: 0]
  |  Branch (502:30): [True: 0, False: 0]
  ------------------
  503|      0|            if (!doapr_outch(desc, ' '))
  ------------------
  |  Branch (503:17): [True: 0, False: 0]
  ------------------
  504|      0|                return 0;
  505|      0|            --padlen;
  506|      0|        }
  507|      0|    }
  508|  10.5k|    if (max >= 0) {
  ------------------
  |  Branch (508:9): [True: 10.5k, False: 0]
  ------------------
  509|       |        /* cap strln to (max - cnt) so we can pass it as-is to eob_ok() */
  510|  10.5k|        if (strln > INT_MAX || (int)strln > max - cnt)
  ------------------
  |  Branch (510:13): [True: 0, False: 10.5k]
  |  Branch (510:32): [True: 0, False: 10.5k]
  ------------------
  511|      0|            strln = max - cnt;
  512|  10.5k|        cnt += (int)strln;
  513|  10.5k|    }
  514|   174k|    while (strln > 0 && eob_ok(desc, strln)) {
  ------------------
  |  Branch (514:12): [True: 163k, False: 10.5k]
  |  Branch (514:25): [True: 163k, False: 0]
  ------------------
  515|   163k|        if (!doapr_outch(desc, *value++))
  ------------------
  |  Branch (515:13): [True: 0, False: 163k]
  ------------------
  516|      0|            return 0;
  517|   163k|        --strln;
  518|   163k|    }
  519|  10.5k|    if ((flags & DP_F_MINUS) && padlen > 0) {
  ------------------
  |  |   67|  10.5k|#define DP_F_MINUS (1 << 0)
  ------------------
  |  Branch (519:9): [True: 0, False: 10.5k]
  |  Branch (519:33): [True: 0, False: 0]
  ------------------
  520|       |        /* cap padlen to (max - cnt) so we can pass it as-is to eob_ok() */
  521|      0|        if (max >= 0) {
  ------------------
  |  Branch (521:13): [True: 0, False: 0]
  ------------------
  522|      0|            if (padlen > max - cnt)
  ------------------
  |  Branch (522:17): [True: 0, False: 0]
  ------------------
  523|      0|                padlen = max - cnt;
  524|      0|        }
  525|      0|        while (padlen > 0 && eob_ok(desc, padlen)) {
  ------------------
  |  Branch (525:16): [True: 0, False: 0]
  |  Branch (525:30): [True: 0, False: 0]
  ------------------
  526|      0|            if (!doapr_outch(desc, ' '))
  ------------------
  |  Branch (526:17): [True: 0, False: 0]
  ------------------
  527|      0|                return 0;
  528|      0|            --padlen;
  529|      0|        }
  530|      0|    }
  531|  10.5k|    return 1;
  532|  10.5k|}

ossl_bio_core_globals_new:
   31|      2|{
   32|      2|    return OPENSSL_zalloc(sizeof(BIO_CORE_GLOBALS));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   33|      2|}

BIO_new_file:
   58|    221|{
   59|    221|    BIO *ret;
   60|    221|    FILE *file = openssl_fopen(filename, mode);
   61|    221|    int fp_flags = BIO_CLOSE;
  ------------------
  |  |   85|    221|#define BIO_CLOSE 0x01
  ------------------
   62|       |
   63|    221|    if (strchr(mode, 'b') == NULL)
  ------------------
  |  Branch (63:9): [True: 219, False: 2]
  ------------------
   64|    219|        fp_flags |= BIO_FP_TEXT;
  ------------------
  |  |  220|    219|#define BIO_FP_TEXT 0x10
  ------------------
   65|       |
   66|    221|    if (file == NULL) {
  ------------------
  |  Branch (66:9): [True: 2, False: 219]
  ------------------
   67|      2|        ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |  406|      2|    (ERR_new(),                                                  \
  |  |  407|      2|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      2|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      2|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   74|      2|#define ERR_LIB_SYS 2
  ------------------
                      ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   30|      2|#define get_last_sys_error() errno
  ------------------
   68|      2|            "calling fopen(%s, %s)",
   69|      2|            filename, mode);
   70|      2|        if (errno == ENOENT
  ------------------
  |  Branch (70:13): [True: 2, False: 0]
  ------------------
   71|      0|#ifdef ENXIO
   72|      2|            || errno == ENXIO
  ------------------
  |  Branch (72:16): [True: 0, False: 0]
  ------------------
   73|      2|#endif
   74|      2|        )
   75|      2|            ERR_raise(ERR_LIB_BIO, BIO_R_NO_SUCH_FILE);
  ------------------
  |  |  404|      2|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      2|    (ERR_new(),                                                  \
  |  |  |  |  407|      2|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      2|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      2|        ERR_set_error)
  |  |  ------------------
  ------------------
   76|      0|        else
   77|      2|            ERR_raise(ERR_LIB_BIO, ERR_R_SYS_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   78|      2|        return NULL;
   79|      2|    }
   80|    219|    if ((ret = BIO_new(BIO_s_file())) == NULL) {
  ------------------
  |  Branch (80:9): [True: 0, False: 219]
  ------------------
   81|      0|        fclose(file);
   82|      0|        return NULL;
   83|      0|    }
   84|       |
   85|       |    /* we did fopen -> we disengage UPLINK */
   86|    219|    BIO_clear_flags(ret, BIO_FLAGS_UPLINK_INTERNAL);
  ------------------
  |  |   18|    219|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
   87|    219|    BIO_set_fp(ret, file, fp_flags);
  ------------------
  |  |  568|    219|#define BIO_set_fp(b, fp, c) BIO_ctrl(b, BIO_C_SET_FILE_PTR, c, (char *)(fp))
  |  |  ------------------
  |  |  |  |  440|    219|#define BIO_C_SET_FILE_PTR 106
  |  |  ------------------
  ------------------
   88|    219|    return ret;
   89|    219|}
BIO_s_file:
  105|    219|{
  106|    219|    return &methods_filep;
  107|    219|}
bss_file.c:file_gets:
  351|   790k|{
  352|   790k|    int ret = 0;
  353|       |
  354|   790k|    buf[0] = '\0';
  355|   790k|    if (bp->flags & BIO_FLAGS_UPLINK_INTERNAL) {
  ------------------
  |  |   18|   790k|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  |  Branch (355:9): [True: 0, False: 790k]
  ------------------
  356|      0|        if (!UP_fgets(buf, size, bp->ptr))
  ------------------
  |  |  152|      0|#define UP_fgets fgets
  ------------------
  |  Branch (356:13): [True: 0, False: 0]
  ------------------
  357|      0|            goto err;
  358|   790k|    } else {
  359|   790k|        if (!fgets(buf, size, (FILE *)bp->ptr))
  ------------------
  |  Branch (359:13): [True: 219, False: 790k]
  ------------------
  360|    219|            goto err;
  361|   790k|    }
  362|   790k|    if (buf[0] != '\0')
  ------------------
  |  Branch (362:9): [True: 790k, False: 0]
  ------------------
  363|   790k|        ret = (int)strlen(buf);
  364|   790k|err:
  365|   790k|    return ret;
  366|   790k|}
bss_file.c:file_ctrl:
  180|    219|{
  181|    219|    long ret = 1;
  182|    219|    FILE *fp = (FILE *)b->ptr;
  183|    219|    FILE **fpp;
  184|    219|    char p[4];
  185|    219|    int st;
  186|       |
  187|    219|    switch (cmd) {
  188|      0|    case BIO_C_FILE_SEEK:
  ------------------
  |  |  462|      0|#define BIO_C_FILE_SEEK 128
  ------------------
  |  Branch (188:5): [True: 0, False: 219]
  ------------------
  189|      0|    case BIO_CTRL_RESET:
  ------------------
  |  |   90|      0|#define BIO_CTRL_RESET 1 /* opt - rewind/zero etc */
  ------------------
  |  Branch (189:5): [True: 0, False: 219]
  ------------------
  190|      0|        if (b->flags & BIO_FLAGS_UPLINK_INTERNAL)
  ------------------
  |  |   18|      0|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  |  Branch (190:13): [True: 0, False: 0]
  ------------------
  191|      0|            ret = (long)UP_fseek(b->ptr, num, 0);
  ------------------
  |  |  160|      0|#define UP_fseek fseek
  ------------------
  192|      0|        else
  193|      0|            ret = (long)fseek(fp, num, 0);
  194|      0|        break;
  195|      0|    case BIO_CTRL_EOF:
  ------------------
  |  |   91|      0|#define BIO_CTRL_EOF 2 /* opt - are we at the eof */
  ------------------
  |  Branch (195:5): [True: 0, False: 219]
  ------------------
  196|      0|        if (b->flags & BIO_FLAGS_UPLINK_INTERNAL)
  ------------------
  |  |   18|      0|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  |  Branch (196:13): [True: 0, False: 0]
  ------------------
  197|      0|            ret = (long)UP_feof(fp);
  ------------------
  |  |  156|      0|#define UP_feof feof
  ------------------
  198|      0|        else
  199|      0|            ret = (long)feof(fp);
  200|      0|        break;
  201|      0|    case BIO_C_FILE_TELL:
  ------------------
  |  |  468|      0|#define BIO_C_FILE_TELL 133
  ------------------
  |  Branch (201:5): [True: 0, False: 219]
  ------------------
  202|      0|    case BIO_CTRL_INFO:
  ------------------
  |  |   92|      0|#define BIO_CTRL_INFO 3 /* opt - extra tit-bits */
  ------------------
  |  Branch (202:5): [True: 0, False: 219]
  ------------------
  203|      0|        if (b->flags & BIO_FLAGS_UPLINK_INTERNAL)
  ------------------
  |  |   18|      0|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  |  Branch (203:13): [True: 0, False: 0]
  ------------------
  204|      0|            ret = UP_ftell(b->ptr);
  ------------------
  |  |  161|      0|#define UP_ftell ftell
  ------------------
  205|      0|        else {
  206|       |#if defined(OPENSSL_SYS_WINDOWS)
  207|       |            /*
  208|       |             * On Windows, for non-seekable files (stdin), ftell() is undefined.
  209|       |             */
  210|       |            if (GetFileType((HANDLE)_get_osfhandle(_fileno(fp))) != FILE_TYPE_DISK)
  211|       |                ret = -1;
  212|       |            else
  213|       |                ret = ftell(fp);
  214|       |#else
  215|      0|            ret = ftell(fp);
  216|      0|#endif
  217|      0|        }
  218|      0|        break;
  219|    219|    case BIO_C_SET_FILE_PTR:
  ------------------
  |  |  440|    219|#define BIO_C_SET_FILE_PTR 106
  ------------------
  |  Branch (219:5): [True: 219, False: 0]
  ------------------
  220|    219|        file_free(b);
  221|    219|        b->shutdown = (int)num & BIO_CLOSE;
  ------------------
  |  |   85|    219|#define BIO_CLOSE 0x01
  ------------------
  222|    219|        b->ptr = ptr;
  223|    219|        b->init = 1;
  224|       |#if BIO_FLAGS_UPLINK_INTERNAL != 0
  225|       |#if defined(__MINGW32__) && defined(__MSVCRT__) && !defined(_IOB_ENTRIES)
  226|       |#define _IOB_ENTRIES 20
  227|       |#endif
  228|       |        /* Safety net to catch purely internal BIO_set_fp calls */
  229|       |#if (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__BORLANDC__)
  230|       |        if (ptr == stdin || ptr == stdout || ptr == stderr)
  231|       |            BIO_clear_flags(b, BIO_FLAGS_UPLINK_INTERNAL);
  232|       |#elif defined(_IOB_ENTRIES)
  233|       |        if ((size_t)ptr >= (size_t)stdin && (size_t)ptr < (size_t)(stdin + _IOB_ENTRIES))
  234|       |            BIO_clear_flags(b, BIO_FLAGS_UPLINK_INTERNAL);
  235|       |#endif
  236|       |#endif
  237|       |#ifdef UP_fsetmod
  238|       |        if (b->flags & BIO_FLAGS_UPLINK_INTERNAL)
  239|       |            UP_fsetmod(b->ptr, (char)((num & BIO_FP_TEXT) ? 't' : 'b'));
  240|       |        else
  241|       |#endif
  242|    219|        {
  243|       |#if defined(OPENSSL_SYS_WINDOWS)
  244|       |            int fd = _fileno((FILE *)ptr);
  245|       |            if (num & BIO_FP_TEXT)
  246|       |                _setmode(fd, _O_TEXT);
  247|       |            else
  248|       |                _setmode(fd, _O_BINARY);
  249|       |#elif defined(OPENSSL_SYS_MSDOS)
  250|       |            int fd = fileno((FILE *)ptr);
  251|       |            /* Set correct text/binary mode */
  252|       |            if (num & BIO_FP_TEXT)
  253|       |                _setmode(fd, _O_TEXT);
  254|       |            /* Dangerous to set stdin/stdout to raw (unless redirected) */
  255|       |            else {
  256|       |                if (fd == STDIN_FILENO || fd == STDOUT_FILENO) {
  257|       |                    if (isatty(fd) <= 0)
  258|       |                        _setmode(fd, _O_BINARY);
  259|       |                } else
  260|       |                    _setmode(fd, _O_BINARY);
  261|       |            }
  262|       |#elif defined(OPENSSL_SYS_WIN32_CYGWIN)
  263|       |            int fd = fileno((FILE *)ptr);
  264|       |            if (!(num & BIO_FP_TEXT))
  265|       |                setmode(fd, O_BINARY);
  266|       |#endif
  267|    219|        }
  268|    219|        break;
  269|      0|    case BIO_C_SET_FILENAME:
  ------------------
  |  |  442|      0|#define BIO_C_SET_FILENAME 108
  ------------------
  |  Branch (269:5): [True: 0, False: 219]
  ------------------
  270|      0|        file_free(b);
  271|      0|        b->shutdown = (int)num & BIO_CLOSE;
  ------------------
  |  |   85|      0|#define BIO_CLOSE 0x01
  ------------------
  272|      0|        if (num & BIO_FP_APPEND) {
  ------------------
  |  |  219|      0|#define BIO_FP_APPEND 0x08
  ------------------
  |  Branch (272:13): [True: 0, False: 0]
  ------------------
  273|      0|            if (num & BIO_FP_READ)
  ------------------
  |  |  217|      0|#define BIO_FP_READ 0x02
  ------------------
  |  Branch (273:17): [True: 0, False: 0]
  ------------------
  274|      0|                OPENSSL_strlcpy(p, "a+", sizeof(p));
  275|      0|            else
  276|      0|                OPENSSL_strlcpy(p, "a", sizeof(p));
  277|      0|        } else if ((num & BIO_FP_READ) && (num & BIO_FP_WRITE))
  ------------------
  |  |  217|      0|#define BIO_FP_READ 0x02
  ------------------
                      } else if ((num & BIO_FP_READ) && (num & BIO_FP_WRITE))
  ------------------
  |  |  218|      0|#define BIO_FP_WRITE 0x04
  ------------------
  |  Branch (277:20): [True: 0, False: 0]
  |  Branch (277:43): [True: 0, False: 0]
  ------------------
  278|      0|            OPENSSL_strlcpy(p, "r+", sizeof(p));
  279|      0|        else if (num & BIO_FP_WRITE)
  ------------------
  |  |  218|      0|#define BIO_FP_WRITE 0x04
  ------------------
  |  Branch (279:18): [True: 0, False: 0]
  ------------------
  280|      0|            OPENSSL_strlcpy(p, "w", sizeof(p));
  281|      0|        else if (num & BIO_FP_READ)
  ------------------
  |  |  217|      0|#define BIO_FP_READ 0x02
  ------------------
  |  Branch (281:18): [True: 0, False: 0]
  ------------------
  282|      0|            OPENSSL_strlcpy(p, "r", sizeof(p));
  283|      0|        else {
  284|      0|            ERR_raise(ERR_LIB_BIO, BIO_R_BAD_FOPEN_MODE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  285|      0|            ret = 0;
  286|      0|            break;
  287|      0|        }
  288|       |#if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WINDOWS)
  289|       |        if (!(num & BIO_FP_TEXT))
  290|       |            OPENSSL_strlcat(p, "b", sizeof(p));
  291|       |        else
  292|       |            OPENSSL_strlcat(p, "t", sizeof(p));
  293|       |#elif defined(OPENSSL_SYS_WIN32_CYGWIN)
  294|       |        if (!(num & BIO_FP_TEXT))
  295|       |            OPENSSL_strlcat(p, "b", sizeof(p));
  296|       |#endif
  297|      0|        fp = openssl_fopen(ptr, p);
  298|      0|        if (fp == NULL) {
  ------------------
  |  Branch (298:13): [True: 0, False: 0]
  ------------------
  299|      0|            ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   74|      0|#define ERR_LIB_SYS 2
  ------------------
                          ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   30|      0|#define get_last_sys_error() errno
  ------------------
  300|      0|                "calling fopen(%s, %s)",
  301|      0|                (const char *)ptr, p);
  302|      0|            ERR_raise(ERR_LIB_BIO, ERR_R_SYS_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  303|      0|            ret = 0;
  304|      0|            break;
  305|      0|        }
  306|      0|        b->ptr = fp;
  307|      0|        b->init = 1;
  308|       |        /* we did fopen -> we disengage UPLINK */
  309|      0|        BIO_clear_flags(b, BIO_FLAGS_UPLINK_INTERNAL);
  ------------------
  |  |   18|      0|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  310|      0|        break;
  311|      0|    case BIO_C_GET_FILE_PTR:
  ------------------
  |  |  441|      0|#define BIO_C_GET_FILE_PTR 107
  ------------------
  |  Branch (311:5): [True: 0, False: 219]
  ------------------
  312|       |        /* the ptr parameter is actually a FILE ** in this case. */
  313|      0|        if (ptr != NULL) {
  ------------------
  |  Branch (313:13): [True: 0, False: 0]
  ------------------
  314|      0|            fpp = (FILE **)ptr;
  315|      0|            *fpp = (FILE *)b->ptr;
  316|      0|        }
  317|      0|        break;
  318|      0|    case BIO_CTRL_GET_CLOSE:
  ------------------
  |  |   97|      0|#define BIO_CTRL_GET_CLOSE 8 /* man - set the 'close' on free */
  ------------------
  |  Branch (318:5): [True: 0, False: 219]
  ------------------
  319|      0|        ret = (long)b->shutdown;
  320|      0|        break;
  321|      0|    case BIO_CTRL_SET_CLOSE:
  ------------------
  |  |   98|      0|#define BIO_CTRL_SET_CLOSE 9 /* man - set the 'close' on free */
  ------------------
  |  Branch (321:5): [True: 0, False: 219]
  ------------------
  322|      0|        b->shutdown = (int)num;
  323|      0|        break;
  324|      0|    case BIO_CTRL_FLUSH:
  ------------------
  |  |  100|      0|#define BIO_CTRL_FLUSH 11 /* opt - 'flush' buffered output */
  ------------------
  |  Branch (324:5): [True: 0, False: 219]
  ------------------
  325|      0|        st = b->flags & BIO_FLAGS_UPLINK_INTERNAL
  ------------------
  |  |   18|      0|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  |  Branch (325:14): [True: 0, False: 0]
  ------------------
  326|      0|            ? UP_fflush(b->ptr)
  ------------------
  |  |  162|      0|#define UP_fflush fflush
  ------------------
  327|      0|            : fflush((FILE *)b->ptr);
  328|      0|        if (st == EOF) {
  ------------------
  |  Branch (328:13): [True: 0, False: 0]
  ------------------
  329|      0|            ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   74|      0|#define ERR_LIB_SYS 2
  ------------------
                          ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   30|      0|#define get_last_sys_error() errno
  ------------------
  330|      0|                "calling fflush()");
  331|      0|            ERR_raise(ERR_LIB_BIO, ERR_R_SYS_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  332|      0|            ret = 0;
  333|      0|        }
  334|      0|        break;
  335|      0|    case BIO_CTRL_DUP:
  ------------------
  |  |  101|      0|#define BIO_CTRL_DUP 12 /* man - extra stuff for 'duped' BIO */
  ------------------
  |  Branch (335:5): [True: 0, False: 219]
  ------------------
  336|      0|        ret = 1;
  337|      0|        break;
  338|       |
  339|      0|    case BIO_CTRL_WPENDING:
  ------------------
  |  |  102|      0|#define BIO_CTRL_WPENDING 13 /* opt - number of bytes still to write */
  ------------------
  |  Branch (339:5): [True: 0, False: 219]
  ------------------
  340|      0|    case BIO_CTRL_PENDING:
  ------------------
  |  |   99|      0|#define BIO_CTRL_PENDING 10 /* opt - is their more data buffered */
  ------------------
  |  Branch (340:5): [True: 0, False: 219]
  ------------------
  341|      0|    case BIO_CTRL_PUSH:
  ------------------
  |  |   95|      0|#define BIO_CTRL_PUSH 6 /* opt - internal, used to signify change */
  ------------------
  |  Branch (341:5): [True: 0, False: 219]
  ------------------
  342|      0|    case BIO_CTRL_POP:
  ------------------
  |  |   96|      0|#define BIO_CTRL_POP 7 /* opt - internal, used to signify change */
  ------------------
  |  Branch (342:5): [True: 0, False: 219]
  ------------------
  343|      0|    default:
  ------------------
  |  Branch (343:5): [True: 0, False: 219]
  ------------------
  344|      0|        ret = 0;
  345|      0|        break;
  346|    219|    }
  347|    219|    return ret;
  348|    219|}
bss_file.c:file_new:
  110|    219|{
  111|    219|    bi->init = 0;
  112|    219|    bi->num = 0;
  113|    219|    bi->ptr = NULL;
  114|    219|    bi->flags = BIO_FLAGS_UPLINK_INTERNAL; /* default to UPLINK */
  ------------------
  |  |   18|    219|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  115|    219|    return 1;
  116|    219|}
bss_file.c:file_free:
  119|    438|{
  120|    438|    if (a == NULL)
  ------------------
  |  Branch (120:9): [True: 0, False: 438]
  ------------------
  121|      0|        return 0;
  122|    438|    if (a->shutdown) {
  ------------------
  |  Branch (122:9): [True: 438, False: 0]
  ------------------
  123|    438|        if ((a->init) && (a->ptr != NULL)) {
  ------------------
  |  Branch (123:13): [True: 219, False: 219]
  |  Branch (123:26): [True: 219, False: 0]
  ------------------
  124|    219|            if (a->flags & BIO_FLAGS_UPLINK_INTERNAL)
  ------------------
  |  |   18|    219|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  |  Branch (124:17): [True: 0, False: 219]
  ------------------
  125|      0|                UP_fclose(a->ptr);
  ------------------
  |  |  157|      0|#define UP_fclose fclose
  ------------------
  126|    219|            else
  127|    219|                fclose(a->ptr);
  128|    219|            a->ptr = NULL;
  129|    219|            a->flags = BIO_FLAGS_UPLINK_INTERNAL;
  ------------------
  |  |   18|    219|#define BIO_FLAGS_UPLINK_INTERNAL 0
  ------------------
  130|    219|        }
  131|    438|        a->init = 0;
  132|    438|    }
  133|    438|    return 1;
  134|    438|}

BIO_s_mem:
   73|  97.0k|{
   74|  97.0k|    return &mem_method;
   75|  97.0k|}
BIO_new_mem_buf:
   83|  63.9k|{
   84|  63.9k|    BIO *ret;
   85|  63.9k|    BUF_MEM *b;
   86|  63.9k|    BIO_BUF_MEM *bb;
   87|  63.9k|    size_t sz;
   88|       |
   89|  63.9k|    if (buf == NULL) {
  ------------------
  |  Branch (89:9): [True: 0, False: 63.9k]
  ------------------
   90|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   91|      0|        return NULL;
   92|      0|    }
   93|  63.9k|    sz = (len < 0) ? strlen(buf) : (size_t)len;
  ------------------
  |  Branch (93:10): [True: 0, False: 63.9k]
  ------------------
   94|  63.9k|    if ((ret = BIO_new(BIO_s_mem())) == NULL)
  ------------------
  |  Branch (94:9): [True: 0, False: 63.9k]
  ------------------
   95|      0|        return NULL;
   96|  63.9k|    bb = (BIO_BUF_MEM *)ret->ptr;
   97|  63.9k|    b = bb->buf;
   98|       |    /* Cast away const and trust in the MEM_RDONLY flag. */
   99|  63.9k|    b->data = (void *)buf;
  100|  63.9k|    b->length = sz;
  101|  63.9k|    b->max = sz;
  102|  63.9k|    *bb->readp = *bb->buf;
  103|  63.9k|    ret->flags |= BIO_FLAGS_MEM_RDONLY;
  ------------------
  |  |  239|  63.9k|#define BIO_FLAGS_MEM_RDONLY 0x200
  ------------------
  104|       |    /* Since this is static data retrying won't help */
  105|  63.9k|    ret->num = 0;
  106|  63.9k|    return ret;
  107|  63.9k|}
bss_mem.c:mem_write:
  215|   726k|{
  216|   726k|    int ret = -1;
  217|   726k|    size_t blen;
  218|   726k|    BIO_BUF_MEM *bbm = (BIO_BUF_MEM *)b->ptr;
  219|       |
  220|   726k|    if (b->flags & BIO_FLAGS_MEM_RDONLY) {
  ------------------
  |  |  239|   726k|#define BIO_FLAGS_MEM_RDONLY 0x200
  ------------------
  |  Branch (220:9): [True: 0, False: 726k]
  ------------------
  221|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_WRITE_TO_READ_ONLY_BIO);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  222|      0|        goto end;
  223|      0|    }
  224|   726k|    BIO_clear_retry_flags(b);
  ------------------
  |  |  263|   726k|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|   726k|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|   726k|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|   726k|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|   726k|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|   726k|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  225|   726k|    if (inl == 0)
  ------------------
  |  Branch (225:9): [True: 0, False: 726k]
  ------------------
  226|      0|        return 0;
  227|   726k|    if (in == NULL) {
  ------------------
  |  Branch (227:9): [True: 0, False: 726k]
  ------------------
  228|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  229|      0|        goto end;
  230|      0|    }
  231|   726k|    blen = bbm->readp->length;
  232|   726k|    mem_buf_sync(b);
  233|   726k|    if (BUF_MEM_grow_clean(bbm->buf, blen + inl) == 0)
  ------------------
  |  Branch (233:9): [True: 0, False: 726k]
  ------------------
  234|      0|        goto end;
  235|   726k|    memcpy(bbm->buf->data + blen, in, inl);
  236|   726k|    *bbm->readp = *bbm->buf;
  237|   726k|    ret = inl;
  238|   726k|end:
  239|   726k|    return ret;
  240|   726k|}
bss_mem.c:mem_buf_sync:
  178|   758k|{
  179|   758k|    if (b != NULL && b->init != 0 && b->ptr != NULL) {
  ------------------
  |  Branch (179:9): [True: 758k, False: 0]
  |  Branch (179:22): [True: 758k, False: 0]
  |  Branch (179:38): [True: 758k, False: 0]
  ------------------
  180|   758k|        BIO_BUF_MEM *bbm = (BIO_BUF_MEM *)b->ptr;
  181|       |
  182|   758k|        if (bbm->readp->data != bbm->buf->data) {
  ------------------
  |  Branch (182:13): [True: 0, False: 758k]
  ------------------
  183|      0|            memmove(bbm->buf->data, bbm->readp->data, bbm->readp->length);
  184|      0|            bbm->buf->length = bbm->readp->length;
  185|      0|            bbm->readp->data = bbm->buf->data;
  186|      0|        }
  187|   758k|    }
  188|   758k|    return 0;
  189|   758k|}
bss_mem.c:mem_read:
  192|   159k|{
  193|   159k|    int ret = -1;
  194|   159k|    BIO_BUF_MEM *bbm = (BIO_BUF_MEM *)b->ptr;
  195|   159k|    BUF_MEM *bm = bbm->readp;
  196|       |
  197|   159k|    if (b->flags & BIO_FLAGS_MEM_RDONLY)
  ------------------
  |  |  239|   159k|#define BIO_FLAGS_MEM_RDONLY 0x200
  ------------------
  |  Branch (197:9): [True: 127k, False: 31.9k]
  ------------------
  198|   127k|        bm = bbm->buf;
  199|   159k|    BIO_clear_retry_flags(b);
  ------------------
  |  |  263|   159k|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|   159k|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|   159k|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|   159k|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|   159k|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|   159k|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  200|   159k|    ret = (outl >= 0 && (size_t)outl > bm->length) ? (int)bm->length : outl;
  ------------------
  |  Branch (200:12): [True: 159k, False: 0]
  |  Branch (200:25): [True: 0, False: 159k]
  ------------------
  201|   159k|    if ((out != NULL) && (ret > 0)) {
  ------------------
  |  Branch (201:9): [True: 159k, False: 0]
  |  Branch (201:26): [True: 159k, False: 0]
  ------------------
  202|   159k|        memcpy(out, bm->data, ret);
  203|   159k|        bm->length -= ret;
  204|   159k|        bm->max -= ret;
  205|   159k|        bm->data += ret;
  206|   159k|    } else if (bm->length == 0) {
  ------------------
  |  Branch (206:16): [True: 0, False: 0]
  ------------------
  207|      0|        ret = b->num;
  208|      0|        if (ret != 0)
  ------------------
  |  Branch (208:13): [True: 0, False: 0]
  ------------------
  209|      0|            BIO_set_retry_read(b);
  ------------------
  |  |  257|      0|    BIO_set_flags(b, (BIO_FLAGS_READ | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  222|      0|#define BIO_FLAGS_READ 0x01
  |  |  ------------------
  |  |                   BIO_set_flags(b, (BIO_FLAGS_READ | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  210|      0|    }
  211|   159k|    return ret;
  212|   159k|}
bss_mem.c:mem_puts:
  382|   726k|{
  383|   726k|    int ret;
  384|   726k|    size_t n = strlen(str);
  385|       |
  386|   726k|    if (n > INT_MAX)
  ------------------
  |  Branch (386:9): [True: 0, False: 726k]
  ------------------
  387|      0|        return -1;
  388|   726k|    ret = mem_write(bp, str, (int)n);
  389|       |    /* memory semantics is that it will always work */
  390|   726k|    return ret;
  391|   726k|}
bss_mem.c:mem_ctrl:
  243|   319k|{
  244|   319k|    long ret = 1;
  245|   319k|    char **pptr;
  246|   319k|    BIO_BUF_MEM *bbm = (BIO_BUF_MEM *)b->ptr;
  247|   319k|    BUF_MEM *bm, *bo; /* bio_mem, bio_other */
  248|   319k|    ossl_ssize_t off, remain;
  ------------------
  |  |  204|   319k|#define ossl_ssize_t ssize_t
  ------------------
  249|       |
  250|   319k|    if (b->flags & BIO_FLAGS_MEM_RDONLY) {
  ------------------
  |  |  239|   319k|#define BIO_FLAGS_MEM_RDONLY 0x200
  ------------------
  |  Branch (250:9): [True: 255k, False: 64.1k]
  ------------------
  251|   255k|        bm = bbm->buf;
  252|   255k|        bo = bbm->readp;
  253|   255k|    } else {
  254|  64.1k|        bm = bbm->readp;
  255|  64.1k|        bo = bbm->buf;
  256|  64.1k|    }
  257|   319k|    off = (bm->data == bo->data) ? 0 : bm->data - bo->data;
  ------------------
  |  Branch (257:11): [True: 287k, False: 31.9k]
  ------------------
  258|   319k|    remain = bm->length;
  259|       |
  260|   319k|    switch (cmd) {
  261|      0|    case BIO_CTRL_RESET:
  ------------------
  |  |   90|      0|#define BIO_CTRL_RESET 1 /* opt - rewind/zero etc */
  ------------------
  |  Branch (261:5): [True: 0, False: 319k]
  ------------------
  262|      0|        bm = bbm->buf;
  263|      0|        if (bm->data != NULL) {
  ------------------
  |  Branch (263:13): [True: 0, False: 0]
  ------------------
  264|      0|            if (!(b->flags & BIO_FLAGS_MEM_RDONLY)) {
  ------------------
  |  |  239|      0|#define BIO_FLAGS_MEM_RDONLY 0x200
  ------------------
  |  Branch (264:17): [True: 0, False: 0]
  ------------------
  265|      0|                if (!(b->flags & BIO_FLAGS_NONCLEAR_RST)) {
  ------------------
  |  |  240|      0|#define BIO_FLAGS_NONCLEAR_RST 0x400
  ------------------
  |  Branch (265:21): [True: 0, False: 0]
  ------------------
  266|      0|                    memset(bm->data, 0, bm->max);
  267|      0|                    bm->length = 0;
  268|      0|                }
  269|      0|                *bbm->readp = *bbm->buf;
  270|      0|            } else {
  271|       |                /* For read only case just reset to the start again */
  272|      0|                *bbm->buf = *bbm->readp;
  273|      0|            }
  274|      0|        }
  275|      0|        break;
  276|  63.9k|    case BIO_C_FILE_SEEK:
  ------------------
  |  |  462|  63.9k|#define BIO_C_FILE_SEEK 128
  ------------------
  |  Branch (276:5): [True: 63.9k, False: 256k]
  ------------------
  277|  63.9k|        if (num < 0 || num > off + remain)
  ------------------
  |  Branch (277:13): [True: 0, False: 63.9k]
  |  Branch (277:24): [True: 0, False: 63.9k]
  ------------------
  278|      0|            return -1; /* Can't see outside of the current buffer */
  279|       |
  280|  63.9k|        bm->data = (num != 0) ? bo->data + num : bo->data;
  ------------------
  |  Branch (280:20): [True: 0, False: 63.9k]
  ------------------
  281|  63.9k|        bm->length = bo->length - num;
  282|  63.9k|        bm->max = bo->max - num;
  283|  63.9k|        off = (ossl_ssize_t)num;
  284|       |        /* FALLTHRU */
  285|   223k|    case BIO_C_FILE_TELL:
  ------------------
  |  |  468|   223k|#define BIO_C_FILE_TELL 133
  ------------------
  |  Branch (285:5): [True: 159k, False: 160k]
  ------------------
  286|   223k|        ret = (long)off;
  287|   223k|        if (off > LONG_MAX)
  ------------------
  |  Branch (287:13): [True: 0, False: 223k]
  ------------------
  288|      0|            ret = -1;
  289|   223k|        break;
  290|      0|    case BIO_CTRL_EOF:
  ------------------
  |  |   91|      0|#define BIO_CTRL_EOF 2 /* opt - are we at the eof */
  ------------------
  |  Branch (290:5): [True: 0, False: 319k]
  ------------------
  291|      0|        ret = (long)(bm->length == 0);
  292|      0|        break;
  293|      0|    case BIO_C_SET_BUF_MEM_EOF_RETURN:
  ------------------
  |  |  464|      0|#define BIO_C_SET_BUF_MEM_EOF_RETURN 130 /* return end of input \
  ------------------
  |  Branch (293:5): [True: 0, False: 319k]
  ------------------
  294|      0|        b->num = (int)num;
  295|      0|        break;
  296|  63.9k|    case BIO_CTRL_INFO:
  ------------------
  |  |   92|  63.9k|#define BIO_CTRL_INFO 3 /* opt - extra tit-bits */
  ------------------
  |  Branch (296:5): [True: 63.9k, False: 256k]
  ------------------
  297|  63.9k|        ret = (long)bm->length;
  298|  63.9k|        if (ptr != NULL) {
  ------------------
  |  Branch (298:13): [True: 31.9k, False: 31.9k]
  ------------------
  299|  31.9k|            pptr = (char **)ptr;
  300|  31.9k|            *pptr = (char *)(bm->data);
  301|  31.9k|        }
  302|  63.9k|        break;
  303|      0|    case BIO_C_SET_BUF_MEM:
  ------------------
  |  |  448|      0|#define BIO_C_SET_BUF_MEM 114
  ------------------
  |  Branch (303:5): [True: 0, False: 319k]
  ------------------
  304|      0|        mem_buf_free(b);
  305|      0|        b->shutdown = (int)num;
  306|      0|        bbm->buf = ptr;
  307|      0|        *bbm->readp = *bbm->buf;
  308|      0|        break;
  309|  31.9k|    case BIO_C_GET_BUF_MEM_PTR:
  ------------------
  |  |  449|  31.9k|#define BIO_C_GET_BUF_MEM_PTR 115
  ------------------
  |  Branch (309:5): [True: 31.9k, False: 287k]
  ------------------
  310|  31.9k|        if (ptr != NULL) {
  ------------------
  |  Branch (310:13): [True: 31.9k, False: 0]
  ------------------
  311|  31.9k|            if (!(b->flags & BIO_FLAGS_MEM_RDONLY))
  ------------------
  |  |  239|  31.9k|#define BIO_FLAGS_MEM_RDONLY 0x200
  ------------------
  |  Branch (311:17): [True: 31.9k, False: 0]
  ------------------
  312|  31.9k|                mem_buf_sync(b);
  313|  31.9k|            bm = bbm->buf;
  314|  31.9k|            pptr = (char **)ptr;
  315|  31.9k|            *pptr = (char *)bm;
  316|  31.9k|        }
  317|  31.9k|        break;
  318|      0|    case BIO_CTRL_GET_CLOSE:
  ------------------
  |  |   97|      0|#define BIO_CTRL_GET_CLOSE 8 /* man - set the 'close' on free */
  ------------------
  |  Branch (318:5): [True: 0, False: 319k]
  ------------------
  319|      0|        ret = (long)b->shutdown;
  320|      0|        break;
  321|    219|    case BIO_CTRL_SET_CLOSE:
  ------------------
  |  |   98|    219|#define BIO_CTRL_SET_CLOSE 9 /* man - set the 'close' on free */
  ------------------
  |  Branch (321:5): [True: 219, False: 319k]
  ------------------
  322|    219|        b->shutdown = (int)num;
  323|    219|        break;
  324|      0|    case BIO_CTRL_WPENDING:
  ------------------
  |  |  102|      0|#define BIO_CTRL_WPENDING 13 /* opt - number of bytes still to write */
  ------------------
  |  Branch (324:5): [True: 0, False: 319k]
  ------------------
  325|      0|        ret = 0L;
  326|      0|        break;
  327|      0|    case BIO_CTRL_PENDING:
  ------------------
  |  |   99|      0|#define BIO_CTRL_PENDING 10 /* opt - is their more data buffered */
  ------------------
  |  Branch (327:5): [True: 0, False: 319k]
  ------------------
  328|      0|        ret = (long)bm->length;
  329|      0|        break;
  330|      0|    case BIO_CTRL_DUP:
  ------------------
  |  |  101|      0|#define BIO_CTRL_DUP 12 /* man - extra stuff for 'duped' BIO */
  ------------------
  |  Branch (330:5): [True: 0, False: 319k]
  ------------------
  331|      0|    case BIO_CTRL_FLUSH:
  ------------------
  |  |  100|      0|#define BIO_CTRL_FLUSH 11 /* opt - 'flush' buffered output */
  ------------------
  |  Branch (331:5): [True: 0, False: 319k]
  ------------------
  332|      0|        ret = 1;
  333|      0|        break;
  334|      0|    case BIO_CTRL_PUSH:
  ------------------
  |  |   95|      0|#define BIO_CTRL_PUSH 6 /* opt - internal, used to signify change */
  ------------------
  |  Branch (334:5): [True: 0, False: 319k]
  ------------------
  335|      0|    case BIO_CTRL_POP:
  ------------------
  |  |   96|      0|#define BIO_CTRL_POP 7 /* opt - internal, used to signify change */
  ------------------
  |  Branch (335:5): [True: 0, False: 319k]
  ------------------
  336|      0|    default:
  ------------------
  |  Branch (336:5): [True: 0, False: 319k]
  ------------------
  337|      0|        ret = 0;
  338|      0|        break;
  339|   319k|    }
  340|   319k|    return ret;
  341|   319k|}
bss_mem.c:mem_buf_free:
  158|   129k|{
  159|   129k|    if (a == NULL)
  ------------------
  |  Branch (159:9): [True: 0, False: 129k]
  ------------------
  160|      0|        return 0;
  161|       |
  162|   129k|    if (a->shutdown && a->init && a->ptr != NULL) {
  ------------------
  |  Branch (162:9): [True: 129k, False: 0]
  |  Branch (162:24): [True: 129k, False: 0]
  |  Branch (162:35): [True: 129k, False: 0]
  ------------------
  163|   129k|        BIO_BUF_MEM *bb = (BIO_BUF_MEM *)a->ptr;
  164|   129k|        BUF_MEM *b = bb->buf;
  165|       |
  166|   129k|        if (a->flags & BIO_FLAGS_MEM_RDONLY)
  ------------------
  |  |  239|   129k|#define BIO_FLAGS_MEM_RDONLY 0x200
  ------------------
  |  Branch (166:13): [True: 63.9k, False: 65.2k]
  ------------------
  167|  63.9k|            b->data = NULL;
  168|   129k|        BUF_MEM_free(b);
  169|   129k|    }
  170|   129k|    return 1;
  171|   129k|}
bss_mem.c:mem_new:
  133|   129k|{
  134|   129k|    return mem_init(bi, 0L);
  135|   129k|}
bss_mem.c:mem_init:
  110|   129k|{
  111|   129k|    BIO_BUF_MEM *bb = OPENSSL_zalloc(sizeof(*bb));
  ------------------
  |  |  108|   129k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  112|       |
  113|   129k|    if (bb == NULL)
  ------------------
  |  Branch (113:9): [True: 0, False: 129k]
  ------------------
  114|      0|        return 0;
  115|   129k|    if ((bb->buf = BUF_MEM_new_ex(flags)) == NULL) {
  ------------------
  |  Branch (115:9): [True: 0, False: 129k]
  ------------------
  116|      0|        OPENSSL_free(bb);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  117|      0|        return 0;
  118|      0|    }
  119|   129k|    if ((bb->readp = OPENSSL_zalloc(sizeof(*bb->readp))) == NULL) {
  ------------------
  |  |  108|   129k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (119:9): [True: 0, False: 129k]
  ------------------
  120|      0|        BUF_MEM_free(bb->buf);
  121|      0|        OPENSSL_free(bb);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  122|      0|        return 0;
  123|      0|    }
  124|   129k|    *bb->readp = *bb->buf;
  125|   129k|    bi->shutdown = 1;
  126|   129k|    bi->init = 1;
  127|   129k|    bi->num = -1;
  128|   129k|    bi->ptr = (char *)bb;
  129|   129k|    return 1;
  130|   129k|}
bss_mem.c:mem_free:
  143|   129k|{
  144|   129k|    BIO_BUF_MEM *bb;
  145|       |
  146|   129k|    if (a == NULL)
  ------------------
  |  Branch (146:9): [True: 0, False: 129k]
  ------------------
  147|      0|        return 0;
  148|       |
  149|   129k|    bb = (BIO_BUF_MEM *)a->ptr;
  150|   129k|    if (!mem_buf_free(a))
  ------------------
  |  Branch (150:9): [True: 0, False: 129k]
  ------------------
  151|      0|        return 0;
  152|   129k|    OPENSSL_free(bb->readp);
  ------------------
  |  |  131|   129k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  153|   129k|    OPENSSL_free(bb);
  ------------------
  |  |  131|   129k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  154|   129k|    return 1;
  155|   129k|}

ossl_core_bio_up_ref:
   35|  63.9k|{
   36|  63.9k|    int ref = 0;
   37|       |
   38|  63.9k|    return CRYPTO_UP_REF(&cb->ref_cnt, &ref);
   39|  63.9k|}
ossl_core_bio_free:
   42|   159k|{
   43|   159k|    int ref = 0, res = 1;
   44|       |
   45|   159k|    if (cb != NULL) {
  ------------------
  |  Branch (45:9): [True: 127k, False: 31.9k]
  ------------------
   46|   127k|        CRYPTO_DOWN_REF(&cb->ref_cnt, &ref);
   47|   127k|        if (ref <= 0) {
  ------------------
  |  Branch (47:13): [True: 63.9k, False: 63.9k]
  ------------------
   48|  63.9k|            res = BIO_free(cb->bio);
   49|  63.9k|            CRYPTO_FREE_REF(&cb->ref_cnt);
   50|  63.9k|            OPENSSL_free(cb);
  ------------------
  |  |  131|  63.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   51|  63.9k|        }
   52|   127k|    }
   53|   159k|    return res;
   54|   159k|}
ossl_core_bio_new_from_bio:
   57|  63.9k|{
   58|  63.9k|    OSSL_CORE_BIO *cb = core_bio_new();
   59|       |
   60|  63.9k|    if (cb == NULL || !BIO_up_ref(bio)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 63.9k]
  |  Branch (60:23): [True: 0, False: 63.9k]
  ------------------
   61|      0|        ossl_core_bio_free(cb);
   62|      0|        return NULL;
   63|      0|    }
   64|  63.9k|    cb->bio = bio;
   65|  63.9k|    return cb;
   66|  63.9k|}
ossl_core_bio_read_ex:
   94|   127k|{
   95|   127k|    return BIO_read_ex(cb->bio, data, dlen, readbytes);
   96|   127k|}
ossl_core_bio.c:core_bio_new:
   24|  63.9k|{
   25|  63.9k|    OSSL_CORE_BIO *cb = OPENSSL_malloc(sizeof(*cb));
  ------------------
  |  |  106|  63.9k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   26|       |
   27|  63.9k|    if (cb == NULL || !CRYPTO_NEW_REF(&cb->ref_cnt, 1)) {
  ------------------
  |  Branch (27:9): [True: 0, False: 63.9k]
  |  Branch (27:23): [True: 0, False: 63.9k]
  ------------------
   28|      0|        OPENSSL_free(cb);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   29|      0|        return NULL;
   30|      0|    }
   31|  63.9k|    return cb;
   32|  63.9k|}

bn_mul_add_words:
  116|   208k|{
  117|   208k|    BN_ULONG c1 = 0;
  ------------------
  |  |   37|   208k|#define BN_ULONG unsigned long
  ------------------
  118|       |
  119|   208k|    if (num <= 0)
  ------------------
  |  Branch (119:9): [True: 0, False: 208k]
  ------------------
  120|      0|        return c1;
  121|       |
  122|   322k|    while (num & ~3) {
  ------------------
  |  Branch (122:12): [True: 113k, False: 208k]
  ------------------
  123|   113k|        mul_add(rp[0], ap[0], w, c1);
  ------------------
  |  |   77|   113k|    do {                              \
  |  |   78|   113k|        register BN_ULONG high, low;  \
  |  |   79|   113k|        asm("mulq %3"                 \
  |  |   80|   113k|            : "=a"(low), "=d"(high)   \
  |  |   81|   113k|            : "a"(word), "m"(a)       \
  |  |   82|   113k|            : "cc");                  \
  |  |   83|   113k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   84|   113k|            : "+r"(carry), "+d"(high) \
  |  |   85|   113k|            : "a"(low), "g"(0)        \
  |  |   86|   113k|            : "cc");                  \
  |  |   87|   113k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   88|   113k|            : "+m"(r), "+d"(high)     \
  |  |   89|   113k|            : "r"(carry), "g"(0)      \
  |  |   90|   113k|            : "cc");                  \
  |  |   91|   113k|        carry = high;                 \
  |  |   92|   113k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (92:14): [Folded, False: 113k]
  |  |  ------------------
  ------------------
  124|   113k|        mul_add(rp[1], ap[1], w, c1);
  ------------------
  |  |   77|   113k|    do {                              \
  |  |   78|   113k|        register BN_ULONG high, low;  \
  |  |   79|   113k|        asm("mulq %3"                 \
  |  |   80|   113k|            : "=a"(low), "=d"(high)   \
  |  |   81|   113k|            : "a"(word), "m"(a)       \
  |  |   82|   113k|            : "cc");                  \
  |  |   83|   113k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   84|   113k|            : "+r"(carry), "+d"(high) \
  |  |   85|   113k|            : "a"(low), "g"(0)        \
  |  |   86|   113k|            : "cc");                  \
  |  |   87|   113k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   88|   113k|            : "+m"(r), "+d"(high)     \
  |  |   89|   113k|            : "r"(carry), "g"(0)      \
  |  |   90|   113k|            : "cc");                  \
  |  |   91|   113k|        carry = high;                 \
  |  |   92|   113k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (92:14): [Folded, False: 113k]
  |  |  ------------------
  ------------------
  125|   113k|        mul_add(rp[2], ap[2], w, c1);
  ------------------
  |  |   77|   113k|    do {                              \
  |  |   78|   113k|        register BN_ULONG high, low;  \
  |  |   79|   113k|        asm("mulq %3"                 \
  |  |   80|   113k|            : "=a"(low), "=d"(high)   \
  |  |   81|   113k|            : "a"(word), "m"(a)       \
  |  |   82|   113k|            : "cc");                  \
  |  |   83|   113k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   84|   113k|            : "+r"(carry), "+d"(high) \
  |  |   85|   113k|            : "a"(low), "g"(0)        \
  |  |   86|   113k|            : "cc");                  \
  |  |   87|   113k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   88|   113k|            : "+m"(r), "+d"(high)     \
  |  |   89|   113k|            : "r"(carry), "g"(0)      \
  |  |   90|   113k|            : "cc");                  \
  |  |   91|   113k|        carry = high;                 \
  |  |   92|   113k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (92:14): [Folded, False: 113k]
  |  |  ------------------
  ------------------
  126|   113k|        mul_add(rp[3], ap[3], w, c1);
  ------------------
  |  |   77|   113k|    do {                              \
  |  |   78|   113k|        register BN_ULONG high, low;  \
  |  |   79|   113k|        asm("mulq %3"                 \
  |  |   80|   113k|            : "=a"(low), "=d"(high)   \
  |  |   81|   113k|            : "a"(word), "m"(a)       \
  |  |   82|   113k|            : "cc");                  \
  |  |   83|   113k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   84|   113k|            : "+r"(carry), "+d"(high) \
  |  |   85|   113k|            : "a"(low), "g"(0)        \
  |  |   86|   113k|            : "cc");                  \
  |  |   87|   113k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   88|   113k|            : "+m"(r), "+d"(high)     \
  |  |   89|   113k|            : "r"(carry), "g"(0)      \
  |  |   90|   113k|            : "cc");                  \
  |  |   91|   113k|        carry = high;                 \
  |  |   92|   113k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (92:14): [Folded, False: 113k]
  |  |  ------------------
  ------------------
  127|   113k|        ap += 4;
  128|   113k|        rp += 4;
  129|   113k|        num -= 4;
  130|   113k|    }
  131|   208k|    if (num) {
  ------------------
  |  Branch (131:9): [True: 173k, False: 35.0k]
  ------------------
  132|   173k|        mul_add(rp[0], ap[0], w, c1);
  ------------------
  |  |   77|   173k|    do {                              \
  |  |   78|   173k|        register BN_ULONG high, low;  \
  |  |   79|   173k|        asm("mulq %3"                 \
  |  |   80|   173k|            : "=a"(low), "=d"(high)   \
  |  |   81|   173k|            : "a"(word), "m"(a)       \
  |  |   82|   173k|            : "cc");                  \
  |  |   83|   173k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   84|   173k|            : "+r"(carry), "+d"(high) \
  |  |   85|   173k|            : "a"(low), "g"(0)        \
  |  |   86|   173k|            : "cc");                  \
  |  |   87|   173k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   88|   173k|            : "+m"(r), "+d"(high)     \
  |  |   89|   173k|            : "r"(carry), "g"(0)      \
  |  |   90|   173k|            : "cc");                  \
  |  |   91|   173k|        carry = high;                 \
  |  |   92|   173k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (92:14): [Folded, False: 173k]
  |  |  ------------------
  ------------------
  133|   173k|        if (--num == 0)
  ------------------
  |  Branch (133:13): [True: 31.5k, False: 141k]
  ------------------
  134|  31.5k|            return c1;
  135|   141k|        mul_add(rp[1], ap[1], w, c1);
  ------------------
  |  |   77|   141k|    do {                              \
  |  |   78|   141k|        register BN_ULONG high, low;  \
  |  |   79|   141k|        asm("mulq %3"                 \
  |  |   80|   141k|            : "=a"(low), "=d"(high)   \
  |  |   81|   141k|            : "a"(word), "m"(a)       \
  |  |   82|   141k|            : "cc");                  \
  |  |   83|   141k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   84|   141k|            : "+r"(carry), "+d"(high) \
  |  |   85|   141k|            : "a"(low), "g"(0)        \
  |  |   86|   141k|            : "cc");                  \
  |  |   87|   141k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   88|   141k|            : "+m"(r), "+d"(high)     \
  |  |   89|   141k|            : "r"(carry), "g"(0)      \
  |  |   90|   141k|            : "cc");                  \
  |  |   91|   141k|        carry = high;                 \
  |  |   92|   141k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (92:14): [Folded, False: 141k]
  |  |  ------------------
  ------------------
  136|   141k|        if (--num == 0)
  ------------------
  |  Branch (136:13): [True: 110k, False: 31.5k]
  ------------------
  137|   110k|            return c1;
  138|  31.5k|        mul_add(rp[2], ap[2], w, c1);
  ------------------
  |  |   77|  31.5k|    do {                              \
  |  |   78|  31.5k|        register BN_ULONG high, low;  \
  |  |   79|  31.5k|        asm("mulq %3"                 \
  |  |   80|  31.5k|            : "=a"(low), "=d"(high)   \
  |  |   81|  31.5k|            : "a"(word), "m"(a)       \
  |  |   82|  31.5k|            : "cc");                  \
  |  |   83|  31.5k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   84|  31.5k|            : "+r"(carry), "+d"(high) \
  |  |   85|  31.5k|            : "a"(low), "g"(0)        \
  |  |   86|  31.5k|            : "cc");                  \
  |  |   87|  31.5k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |   88|  31.5k|            : "+m"(r), "+d"(high)     \
  |  |   89|  31.5k|            : "r"(carry), "g"(0)      \
  |  |   90|  31.5k|            : "cc");                  \
  |  |   91|  31.5k|        carry = high;                 \
  |  |   92|  31.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (92:14): [Folded, False: 31.5k]
  |  |  ------------------
  ------------------
  139|  31.5k|        return c1;
  140|   141k|    }
  141|       |
  142|  35.0k|    return c1;
  143|   208k|}
bn_mul_words:
  146|   228k|{
  147|   228k|    BN_ULONG c1 = 0;
  ------------------
  |  |   37|   228k|#define BN_ULONG unsigned long
  ------------------
  148|       |
  149|   228k|    if (num <= 0)
  ------------------
  |  Branch (149:9): [True: 0, False: 228k]
  ------------------
  150|      0|        return c1;
  151|       |
  152|   409k|    while (num & ~3) {
  ------------------
  |  Branch (152:12): [True: 181k, False: 228k]
  ------------------
  153|   181k|        mul(rp[0], ap[0], w, c1);
  ------------------
  |  |   95|   181k|    do {                              \
  |  |   96|   181k|        register BN_ULONG high, low;  \
  |  |   97|   181k|        asm("mulq %3"                 \
  |  |   98|   181k|            : "=a"(low), "=d"(high)   \
  |  |   99|   181k|            : "a"(word), "g"(a)       \
  |  |  100|   181k|            : "cc");                  \
  |  |  101|   181k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |  102|   181k|            : "+r"(carry), "+d"(high) \
  |  |  103|   181k|            : "a"(low), "g"(0)        \
  |  |  104|   181k|            : "cc");                  \
  |  |  105|   181k|        (r) = carry, carry = high;    \
  |  |  106|   181k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (106:14): [Folded, False: 181k]
  |  |  ------------------
  ------------------
  154|   181k|        mul(rp[1], ap[1], w, c1);
  ------------------
  |  |   95|   181k|    do {                              \
  |  |   96|   181k|        register BN_ULONG high, low;  \
  |  |   97|   181k|        asm("mulq %3"                 \
  |  |   98|   181k|            : "=a"(low), "=d"(high)   \
  |  |   99|   181k|            : "a"(word), "g"(a)       \
  |  |  100|   181k|            : "cc");                  \
  |  |  101|   181k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |  102|   181k|            : "+r"(carry), "+d"(high) \
  |  |  103|   181k|            : "a"(low), "g"(0)        \
  |  |  104|   181k|            : "cc");                  \
  |  |  105|   181k|        (r) = carry, carry = high;    \
  |  |  106|   181k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (106:14): [Folded, False: 181k]
  |  |  ------------------
  ------------------
  155|   181k|        mul(rp[2], ap[2], w, c1);
  ------------------
  |  |   95|   181k|    do {                              \
  |  |   96|   181k|        register BN_ULONG high, low;  \
  |  |   97|   181k|        asm("mulq %3"                 \
  |  |   98|   181k|            : "=a"(low), "=d"(high)   \
  |  |   99|   181k|            : "a"(word), "g"(a)       \
  |  |  100|   181k|            : "cc");                  \
  |  |  101|   181k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |  102|   181k|            : "+r"(carry), "+d"(high) \
  |  |  103|   181k|            : "a"(low), "g"(0)        \
  |  |  104|   181k|            : "cc");                  \
  |  |  105|   181k|        (r) = carry, carry = high;    \
  |  |  106|   181k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (106:14): [Folded, False: 181k]
  |  |  ------------------
  ------------------
  156|   181k|        mul(rp[3], ap[3], w, c1);
  ------------------
  |  |   95|   181k|    do {                              \
  |  |   96|   181k|        register BN_ULONG high, low;  \
  |  |   97|   181k|        asm("mulq %3"                 \
  |  |   98|   181k|            : "=a"(low), "=d"(high)   \
  |  |   99|   181k|            : "a"(word), "g"(a)       \
  |  |  100|   181k|            : "cc");                  \
  |  |  101|   181k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |  102|   181k|            : "+r"(carry), "+d"(high) \
  |  |  103|   181k|            : "a"(low), "g"(0)        \
  |  |  104|   181k|            : "cc");                  \
  |  |  105|   181k|        (r) = carry, carry = high;    \
  |  |  106|   181k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (106:14): [Folded, False: 181k]
  |  |  ------------------
  ------------------
  157|   181k|        ap += 4;
  158|   181k|        rp += 4;
  159|   181k|        num -= 4;
  160|   181k|    }
  161|   228k|    if (num) {
  ------------------
  |  Branch (161:9): [True: 220k, False: 7.88k]
  ------------------
  162|   220k|        mul(rp[0], ap[0], w, c1);
  ------------------
  |  |   95|   220k|    do {                              \
  |  |   96|   220k|        register BN_ULONG high, low;  \
  |  |   97|   220k|        asm("mulq %3"                 \
  |  |   98|   220k|            : "=a"(low), "=d"(high)   \
  |  |   99|   220k|            : "a"(word), "g"(a)       \
  |  |  100|   220k|            : "cc");                  \
  |  |  101|   220k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |  102|   220k|            : "+r"(carry), "+d"(high) \
  |  |  103|   220k|            : "a"(low), "g"(0)        \
  |  |  104|   220k|            : "cc");                  \
  |  |  105|   220k|        (r) = carry, carry = high;    \
  |  |  106|   220k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (106:14): [Folded, False: 220k]
  |  |  ------------------
  ------------------
  163|   220k|        if (--num == 0)
  ------------------
  |  Branch (163:13): [True: 78.8k, False: 141k]
  ------------------
  164|  78.8k|            return c1;
  165|   141k|        mul(rp[1], ap[1], w, c1);
  ------------------
  |  |   95|   141k|    do {                              \
  |  |   96|   141k|        register BN_ULONG high, low;  \
  |  |   97|   141k|        asm("mulq %3"                 \
  |  |   98|   141k|            : "=a"(low), "=d"(high)   \
  |  |   99|   141k|            : "a"(word), "g"(a)       \
  |  |  100|   141k|            : "cc");                  \
  |  |  101|   141k|        asm("addq %2,%0; adcq %3,%1"  \
  |  |  102|   141k|            : "+r"(carry), "+d"(high) \
  |  |  103|   141k|            : "a"(low), "g"(0)        \
  |  |  104|   141k|            : "cc");                  \
  |  |  105|   141k|        (r) = carry, carry = high;    \
  |  |  106|   141k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (106:14): [Folded, False: 141k]
  |  |  ------------------
  ------------------
  166|   141k|        if (--num == 0)
  ------------------
  |  Branch (166:13): [True: 141k, False: 0]
  ------------------
  167|   141k|            return c1;
  168|      0|        mul(rp[2], ap[2], w, c1);
  ------------------
  |  |   95|      0|    do {                              \
  |  |   96|      0|        register BN_ULONG high, low;  \
  |  |   97|      0|        asm("mulq %3"                 \
  |  |   98|      0|            : "=a"(low), "=d"(high)   \
  |  |   99|      0|            : "a"(word), "g"(a)       \
  |  |  100|      0|            : "cc");                  \
  |  |  101|      0|        asm("addq %2,%0; adcq %3,%1"  \
  |  |  102|      0|            : "+r"(carry), "+d"(high) \
  |  |  103|      0|            : "a"(low), "g"(0)        \
  |  |  104|      0|            : "cc");                  \
  |  |  105|      0|        (r) = carry, carry = high;    \
  |  |  106|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (106:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  169|      0|    }
  170|  7.88k|    return c1;
  171|   228k|}
bn_sqr_words:
  174|  31.5k|{
  175|  31.5k|    if (n <= 0)
  ------------------
  |  Branch (175:9): [True: 0, False: 31.5k]
  ------------------
  176|      0|        return;
  177|       |
  178|  63.0k|    while (n & ~3) {
  ------------------
  |  Branch (178:12): [True: 31.5k, False: 31.5k]
  ------------------
  179|  31.5k|        sqr(r[0], r[1], a[0]);
  ------------------
  |  |  109|  31.5k|    asm("mulq %2"            \
  |  |  110|  31.5k|        : "=a"(r0), "=d"(r1) \
  |  |  111|  31.5k|        : "a"(a)             \
  |  |  112|  31.5k|        : "cc");
  ------------------
  180|  31.5k|        sqr(r[2], r[3], a[1]);
  ------------------
  |  |  109|  31.5k|    asm("mulq %2"            \
  |  |  110|  31.5k|        : "=a"(r0), "=d"(r1) \
  |  |  111|  31.5k|        : "a"(a)             \
  |  |  112|  31.5k|        : "cc");
  ------------------
  181|  31.5k|        sqr(r[4], r[5], a[2]);
  ------------------
  |  |  109|  31.5k|    asm("mulq %2"            \
  |  |  110|  31.5k|        : "=a"(r0), "=d"(r1) \
  |  |  111|  31.5k|        : "a"(a)             \
  |  |  112|  31.5k|        : "cc");
  ------------------
  182|  31.5k|        sqr(r[6], r[7], a[3]);
  ------------------
  |  |  109|  31.5k|    asm("mulq %2"            \
  |  |  110|  31.5k|        : "=a"(r0), "=d"(r1) \
  |  |  111|  31.5k|        : "a"(a)             \
  |  |  112|  31.5k|        : "cc");
  ------------------
  183|  31.5k|        a += 4;
  184|  31.5k|        r += 8;
  185|  31.5k|        n -= 4;
  186|  31.5k|    }
  187|  31.5k|    if (n) {
  ------------------
  |  Branch (187:9): [True: 31.5k, False: 0]
  ------------------
  188|  31.5k|        sqr(r[0], r[1], a[0]);
  ------------------
  |  |  109|  31.5k|    asm("mulq %2"            \
  |  |  110|  31.5k|        : "=a"(r0), "=d"(r1) \
  |  |  111|  31.5k|        : "a"(a)             \
  |  |  112|  31.5k|        : "cc");
  ------------------
  189|  31.5k|        if (--n == 0)
  ------------------
  |  Branch (189:13): [True: 0, False: 31.5k]
  ------------------
  190|      0|            return;
  191|  31.5k|        sqr(r[2], r[3], a[1]);
  ------------------
  |  |  109|  31.5k|    asm("mulq %2"            \
  |  |  110|  31.5k|        : "=a"(r0), "=d"(r1) \
  |  |  111|  31.5k|        : "a"(a)             \
  |  |  112|  31.5k|        : "cc");
  ------------------
  192|  31.5k|        if (--n == 0)
  ------------------
  |  Branch (192:13): [True: 31.5k, False: 0]
  ------------------
  193|  31.5k|            return;
  194|      0|        sqr(r[4], r[5], a[2]);
  ------------------
  |  |  109|      0|    asm("mulq %2"            \
  |  |  110|      0|        : "=a"(r0), "=d"(r1) \
  |  |  111|      0|        : "a"(a)             \
  |  |  112|      0|        : "cc");
  ------------------
  195|      0|    }
  196|  31.5k|}
bn_div_words:
  199|   180k|{
  200|   180k|    BN_ULONG ret, waste;
  ------------------
  |  |   37|   180k|#define BN_ULONG unsigned long
  ------------------
  201|       |
  202|   180k|    asm("divq      %4" : "=a"(ret), "=d"(waste)
  203|   180k|        : "a"(l), "d"(h), "r"(d)
  204|   180k|        : "cc");
  205|       |
  206|   180k|    return ret;
  207|   180k|}
bn_add_words:
  211|   992k|{
  212|   992k|    BN_ULONG ret;
  ------------------
  |  |   37|   992k|#define BN_ULONG unsigned long
  ------------------
  213|   992k|    size_t i = 0;
  214|       |
  215|   992k|    if (n <= 0)
  ------------------
  |  Branch (215:9): [True: 7.88k, False: 985k]
  ------------------
  216|  7.88k|        return 0;
  217|       |
  218|   985k|    asm volatile("       subq    %0,%0           \n" /* clear carry */
  219|   985k|                 "       jmp     1f              \n"
  220|   985k|                 ".p2align 4                     \n"
  221|   985k|                 "1:     movq    (%4,%2,8),%0    \n"
  222|   985k|                 "       adcq    (%5,%2,8),%0    \n"
  223|   985k|                 "       movq    %0,(%3,%2,8)    \n"
  224|   985k|                 "       lea     1(%2),%2        \n"
  225|   985k|                 "       dec     %1              \n"
  226|   985k|                 "       jnz     1b              \n"
  227|   985k|                 "       sbbq    %0,%0           \n"
  228|   985k|        : "=&r"(ret), "+c"(n), "+r"(i)
  229|   985k|        : "r"(rp), "r"(ap), "r"(bp)
  230|   985k|        : "cc", "memory");
  231|       |
  232|   985k|    return ret & 1;
  233|   992k|}
bn_sub_words:
  238|   814k|{
  239|   814k|    BN_ULONG ret;
  ------------------
  |  |   37|   814k|#define BN_ULONG unsigned long
  ------------------
  240|   814k|    size_t i = 0;
  241|       |
  242|   814k|    if (n <= 0)
  ------------------
  |  Branch (242:9): [True: 0, False: 814k]
  ------------------
  243|      0|        return 0;
  244|       |
  245|   814k|    asm volatile("       subq    %0,%0           \n" /* clear borrow */
  246|   814k|                 "       jmp     1f              \n"
  247|   814k|                 ".p2align 4                     \n"
  248|   814k|                 "1:     movq    (%4,%2,8),%0    \n"
  249|   814k|                 "       sbbq    (%5,%2,8),%0    \n"
  250|   814k|                 "       movq    %0,(%3,%2,8)    \n"
  251|   814k|                 "       lea     1(%2),%2        \n"
  252|   814k|                 "       dec     %1              \n"
  253|   814k|                 "       jnz     1b              \n"
  254|   814k|                 "       sbbq    %0,%0           \n"
  255|   814k|        : "=&r"(ret), "+c"(n), "+r"(i)
  256|   814k|        : "r"(rp), "r"(ap), "r"(bp)
  257|   814k|        : "cc", "memory");
  258|       |
  259|   814k|    return ret & 1;
  260|   814k|}

BN_add:
   15|  7.88k|{
   16|  7.88k|    int ret, r_neg, cmp_res;
   17|       |
   18|  7.88k|    bn_check_top(a);
   19|  7.88k|    bn_check_top(b);
   20|       |
   21|  7.88k|    if (a->neg == b->neg) {
  ------------------
  |  Branch (21:9): [True: 0, False: 7.88k]
  ------------------
   22|      0|        r_neg = a->neg;
   23|      0|        ret = BN_uadd(r, a, b);
   24|  7.88k|    } else {
   25|  7.88k|        cmp_res = BN_ucmp(a, b);
   26|  7.88k|        if (cmp_res > 0) {
  ------------------
  |  Branch (26:13): [True: 0, False: 7.88k]
  ------------------
   27|      0|            r_neg = a->neg;
   28|      0|            ret = BN_usub(r, a, b);
   29|  7.88k|        } else if (cmp_res < 0) {
  ------------------
  |  Branch (29:20): [True: 7.88k, False: 0]
  ------------------
   30|  7.88k|            r_neg = b->neg;
   31|  7.88k|            ret = BN_usub(r, b, a);
   32|  7.88k|        } else {
   33|      0|            r_neg = 0;
   34|      0|            BN_zero(r);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
   35|      0|            ret = 1;
   36|      0|        }
   37|  7.88k|    }
   38|       |
   39|  7.88k|    r->neg = r_neg;
   40|  7.88k|    bn_check_top(r);
   41|  7.88k|    return ret;
   42|  7.88k|}
BN_sub:
   46|  7.88k|{
   47|  7.88k|    int ret, r_neg, cmp_res;
   48|       |
   49|  7.88k|    bn_check_top(a);
   50|  7.88k|    bn_check_top(b);
   51|       |
   52|  7.88k|    if (a->neg != b->neg) {
  ------------------
  |  Branch (52:9): [True: 0, False: 7.88k]
  ------------------
   53|      0|        r_neg = a->neg;
   54|      0|        ret = BN_uadd(r, a, b);
   55|  7.88k|    } else {
   56|  7.88k|        cmp_res = BN_ucmp(a, b);
   57|  7.88k|        if (cmp_res > 0) {
  ------------------
  |  Branch (57:13): [True: 0, False: 7.88k]
  ------------------
   58|      0|            r_neg = a->neg;
   59|      0|            ret = BN_usub(r, a, b);
   60|  7.88k|        } else if (cmp_res < 0) {
  ------------------
  |  Branch (60:20): [True: 7.88k, False: 0]
  ------------------
   61|  7.88k|            r_neg = !b->neg;
   62|  7.88k|            ret = BN_usub(r, b, a);
   63|  7.88k|        } else {
   64|      0|            r_neg = 0;
   65|      0|            BN_zero(r);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
   66|      0|            ret = 1;
   67|      0|        }
   68|  7.88k|    }
   69|       |
   70|  7.88k|    r->neg = r_neg;
   71|  7.88k|    bn_check_top(r);
   72|  7.88k|    return ret;
   73|  7.88k|}
BN_uadd:
   77|   748k|{
   78|   748k|    int max, min, dif;
   79|   748k|    const BN_ULONG *ap, *bp;
   80|   748k|    BN_ULONG *rp, carry, t1, t2;
  ------------------
  |  |   37|   748k|#define BN_ULONG unsigned long
  ------------------
   81|       |
   82|   748k|    bn_check_top(a);
   83|   748k|    bn_check_top(b);
   84|       |
   85|   748k|    if (a->top < b->top) {
  ------------------
  |  Branch (85:9): [True: 15.7k, False: 733k]
  ------------------
   86|  15.7k|        const BIGNUM *tmp;
   87|       |
   88|  15.7k|        tmp = a;
   89|  15.7k|        a = b;
   90|  15.7k|        b = tmp;
   91|  15.7k|    }
   92|   748k|    max = a->top;
   93|   748k|    min = b->top;
   94|   748k|    dif = max - min;
   95|       |
   96|   748k|    if (bn_wexpand(r, max + 1) == NULL)
  ------------------
  |  Branch (96:9): [True: 0, False: 748k]
  ------------------
   97|      0|        return 0;
   98|       |
   99|   748k|    r->top = max;
  100|       |
  101|   748k|    ap = a->d;
  102|   748k|    bp = b->d;
  103|   748k|    rp = r->d;
  104|       |
  105|   748k|    carry = bn_add_words(rp, ap, bp, min);
  106|   748k|    rp += min;
  107|   748k|    ap += min;
  108|       |
  109|   993k|    while (dif) {
  ------------------
  |  Branch (109:12): [True: 244k, False: 748k]
  ------------------
  110|   244k|        dif--;
  111|   244k|        t1 = *(ap++);
  112|   244k|        t2 = (t1 + carry) & BN_MASK2;
  ------------------
  |  |   93|   244k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  113|   244k|        *(rp++) = t2;
  114|   244k|        carry &= (t2 == 0);
  115|   244k|    }
  116|   748k|    *rp = carry;
  117|   748k|    r->top += (int)carry;
  118|       |
  119|   748k|    r->neg = 0;
  120|   748k|    bn_check_top(r);
  121|   748k|    return 1;
  122|   748k|}
BN_usub:
  126|   520k|{
  127|   520k|    int max, min, dif;
  128|   520k|    BN_ULONG t1, t2, borrow, *rp;
  ------------------
  |  |   37|   520k|#define BN_ULONG unsigned long
  ------------------
  129|   520k|    const BN_ULONG *ap, *bp;
  130|       |
  131|   520k|    bn_check_top(a);
  132|   520k|    bn_check_top(b);
  133|       |
  134|   520k|    max = a->top;
  135|   520k|    min = b->top;
  136|   520k|    dif = max - min;
  137|       |
  138|   520k|    if (dif < 0) { /* hmm... should not be happening */
  ------------------
  |  Branch (138:9): [True: 0, False: 520k]
  ------------------
  139|      0|        ERR_raise(ERR_LIB_BN, BN_R_ARG2_LT_ARG3);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  140|      0|        return 0;
  141|      0|    }
  142|       |
  143|   520k|    if (bn_wexpand(r, max) == NULL)
  ------------------
  |  Branch (143:9): [True: 0, False: 520k]
  ------------------
  144|      0|        return 0;
  145|       |
  146|   520k|    ap = a->d;
  147|   520k|    bp = b->d;
  148|   520k|    rp = r->d;
  149|       |
  150|   520k|    borrow = bn_sub_words(rp, ap, bp, min);
  151|   520k|    ap += min;
  152|   520k|    rp += min;
  153|       |
  154|   528k|    while (dif) {
  ------------------
  |  Branch (154:12): [True: 7.88k, False: 520k]
  ------------------
  155|  7.88k|        dif--;
  156|  7.88k|        t1 = *(ap++);
  157|  7.88k|        t2 = (t1 - borrow) & BN_MASK2;
  ------------------
  |  |   93|  7.88k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  158|  7.88k|        *(rp++) = t2;
  159|  7.88k|        borrow &= (t1 == 0);
  160|  7.88k|    }
  161|       |
  162|   528k|    while (max && *--rp == 0)
  ------------------
  |  Branch (162:12): [True: 520k, False: 7.88k]
  |  Branch (162:19): [True: 7.88k, False: 512k]
  ------------------
  163|  7.88k|        max--;
  164|       |
  165|   520k|    r->top = max;
  166|   520k|    r->neg = 0;
  167|   520k|    bn_pollute(r);
  168|       |
  169|   520k|    return 1;
  170|   520k|}

BN_CTX_new_ex:
  123|  43.8k|{
  124|  43.8k|    BN_CTX *ret;
  125|       |
  126|  43.8k|    if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  108|  43.8k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (126:9): [True: 0, False: 43.8k]
  ------------------
  127|      0|        return NULL;
  128|       |    /* Initialise the structure */
  129|  43.8k|    BN_POOL_init(&ret->pool);
  130|  43.8k|    BN_STACK_init(&ret->stack);
  131|  43.8k|    ret->libctx = ctx;
  132|  43.8k|    return ret;
  133|  43.8k|}
BN_CTX_free:
  159|   150k|{
  160|   150k|    if (ctx == NULL)
  ------------------
  |  Branch (160:9): [True: 106k, False: 43.8k]
  ------------------
  161|   106k|        return;
  162|  43.8k|#ifndef FIPS_MODULE
  163|  43.8k|    OSSL_TRACE_BEGIN(BN_CTX)
  ------------------
  |  |  221|  43.8k|    do {                           \
  |  |  222|  43.8k|        BIO *trc_out = NULL;       \
  |  |  223|  43.8k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 43.8k]
  |  |  ------------------
  ------------------
  164|      0|    {
  165|      0|        BN_POOL_ITEM *pool = ctx->pool.head;
  166|      0|        BIO_printf(trc_out,
  167|      0|            "BN_CTX_free(): stack-size=%d, pool-bignums=%d\n",
  168|      0|            ctx->stack.size, ctx->pool.size);
  169|      0|        BIO_printf(trc_out, "  dmaxs: ");
  170|      0|        while (pool) {
  ------------------
  |  Branch (170:16): [True: 0, False: 0]
  ------------------
  171|      0|            unsigned loop = 0;
  172|      0|            while (loop < BN_CTX_POOL_SIZE)
  ------------------
  |  |   15|      0|#define BN_CTX_POOL_SIZE 16
  ------------------
  |  Branch (172:20): [True: 0, False: 0]
  ------------------
  173|      0|                BIO_printf(trc_out, "%02x ", pool->vals[loop++].dmax);
  174|      0|            pool = pool->next;
  175|      0|        }
  176|      0|        BIO_printf(trc_out, "\n");
  177|      0|    }
  178|  43.8k|    OSSL_TRACE_END(BN_CTX);
  ------------------
  |  |  226|  43.8k|    }                            \
  |  |  227|  43.8k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 43.8k]
  |  |  ------------------
  ------------------
  179|  43.8k|#endif
  180|  43.8k|    BN_STACK_finish(&ctx->stack);
  181|  43.8k|    BN_POOL_finish(&ctx->pool);
  182|  43.8k|    OPENSSL_free(ctx);
  ------------------
  |  |  131|  43.8k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  183|  43.8k|}
BN_CTX_start:
  186|   218k|{
  187|   218k|    CTXDBG("ENTER BN_CTX_start()", ctx);
  ------------------
  |  |  110|   218k|    OSSL_TRACE_BEGIN(BN_CTX)       \
  |  |  ------------------
  |  |  |  |  221|   218k|    do {                           \
  |  |  |  |  222|   218k|        BIO *trc_out = NULL;       \
  |  |  |  |  223|   218k|        if (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (223:13): [Folded, False: 218k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  111|   218k|    {                              \
  |  |  112|      0|        ctxdbg(trc_out, str, ctx); \
  |  |  113|      0|    }                              \
  |  |  114|   218k|    OSSL_TRACE_END(BN_CTX)
  |  |  ------------------
  |  |  |  |  226|   218k|    }                            \
  |  |  |  |  227|   218k|    while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (227:12): [Folded, False: 218k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  188|       |    /* If we're already overflowing ... */
  189|   218k|    if (ctx->err_stack || ctx->too_many)
  ------------------
  |  Branch (189:9): [True: 0, False: 218k]
  |  Branch (189:27): [True: 0, False: 218k]
  ------------------
  190|      0|        ctx->err_stack++;
  191|       |    /* (Try to) get a new frame pointer */
  192|   218k|    else if (!BN_STACK_push(&ctx->stack, ctx->used)) {
  ------------------
  |  Branch (192:14): [True: 0, False: 218k]
  ------------------
  193|      0|        ERR_raise(ERR_LIB_BN, BN_R_TOO_MANY_TEMPORARY_VARIABLES);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  194|      0|        ctx->err_stack++;
  195|      0|    }
  196|       |    CTXDBG("LEAVE BN_CTX_start()", ctx);
  ------------------
  |  |  110|   218k|    OSSL_TRACE_BEGIN(BN_CTX)       \
  |  |  ------------------
  |  |  |  |  221|   218k|    do {                           \
  |  |  |  |  222|   218k|        BIO *trc_out = NULL;       \
  |  |  |  |  223|   218k|        if (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (223:13): [Folded, False: 218k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  111|   218k|    {                              \
  |  |  112|      0|        ctxdbg(trc_out, str, ctx); \
  |  |  113|      0|    }                              \
  |  |  114|   218k|    OSSL_TRACE_END(BN_CTX)
  |  |  ------------------
  |  |  |  |  226|   218k|    }                            \
  |  |  |  |  227|   218k|    while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (227:12): [Folded, False: 218k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|   218k|}
BN_CTX_end:
  200|   218k|{
  201|   218k|    if (ctx == NULL)
  ------------------
  |  Branch (201:9): [True: 0, False: 218k]
  ------------------
  202|      0|        return;
  203|   218k|    CTXDBG("ENTER BN_CTX_end()", ctx);
  ------------------
  |  |  110|   218k|    OSSL_TRACE_BEGIN(BN_CTX)       \
  |  |  ------------------
  |  |  |  |  221|   218k|    do {                           \
  |  |  |  |  222|   218k|        BIO *trc_out = NULL;       \
  |  |  |  |  223|   218k|        if (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (223:13): [Folded, False: 218k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  111|   218k|    {                              \
  |  |  112|      0|        ctxdbg(trc_out, str, ctx); \
  |  |  113|      0|    }                              \
  |  |  114|   218k|    OSSL_TRACE_END(BN_CTX)
  |  |  ------------------
  |  |  |  |  226|   218k|    }                            \
  |  |  |  |  227|   218k|    while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (227:12): [Folded, False: 218k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|   218k|    if (ctx->err_stack)
  ------------------
  |  Branch (204:9): [True: 0, False: 218k]
  ------------------
  205|      0|        ctx->err_stack--;
  206|   218k|    else {
  207|   218k|        unsigned int fp = BN_STACK_pop(&ctx->stack);
  208|       |        /* Does this stack frame have anything to release? */
  209|   218k|        if (fp < ctx->used)
  ------------------
  |  Branch (209:13): [True: 208k, False: 9.63k]
  ------------------
  210|   208k|            BN_POOL_release(&ctx->pool, ctx->used - fp);
  211|   218k|        ctx->used = fp;
  212|       |        /* Unjam "too_many" in case "get" had failed */
  213|   218k|        ctx->too_many = 0;
  214|   218k|    }
  215|       |    CTXDBG("LEAVE BN_CTX_end()", ctx);
  ------------------
  |  |  110|   218k|    OSSL_TRACE_BEGIN(BN_CTX)       \
  |  |  ------------------
  |  |  |  |  221|   218k|    do {                           \
  |  |  |  |  222|   218k|        BIO *trc_out = NULL;       \
  |  |  |  |  223|   218k|        if (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (223:13): [Folded, False: 218k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  111|   218k|    {                              \
  |  |  112|      0|        ctxdbg(trc_out, str, ctx); \
  |  |  113|      0|    }                              \
  |  |  114|   218k|    OSSL_TRACE_END(BN_CTX)
  |  |  ------------------
  |  |  |  |  226|   218k|    }                            \
  |  |  |  |  227|   218k|    while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (227:12): [Folded, False: 218k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  216|   218k|}
BN_CTX_get:
  219|   629k|{
  220|   629k|    BIGNUM *ret;
  221|       |
  222|   629k|    CTXDBG("ENTER BN_CTX_get()", ctx);
  ------------------
  |  |  110|   629k|    OSSL_TRACE_BEGIN(BN_CTX)       \
  |  |  ------------------
  |  |  |  |  221|   629k|    do {                           \
  |  |  |  |  222|   629k|        BIO *trc_out = NULL;       \
  |  |  |  |  223|   629k|        if (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (223:13): [Folded, False: 629k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  111|   629k|    {                              \
  |  |  112|      0|        ctxdbg(trc_out, str, ctx); \
  |  |  113|      0|    }                              \
  |  |  114|   629k|    OSSL_TRACE_END(BN_CTX)
  |  |  ------------------
  |  |  |  |  226|   629k|    }                            \
  |  |  |  |  227|   629k|    while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (227:12): [Folded, False: 629k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|   629k|    if (ctx->err_stack || ctx->too_many)
  ------------------
  |  Branch (223:9): [True: 0, False: 629k]
  |  Branch (223:27): [True: 0, False: 629k]
  ------------------
  224|      0|        return NULL;
  225|   629k|    if ((ret = BN_POOL_get(&ctx->pool, ctx->flags)) == NULL) {
  ------------------
  |  Branch (225:9): [True: 0, False: 629k]
  ------------------
  226|       |        /*
  227|       |         * Setting too_many prevents repeated "get" attempts from cluttering
  228|       |         * the error stack.
  229|       |         */
  230|      0|        ctx->too_many = 1;
  231|      0|        ERR_raise(ERR_LIB_BN, BN_R_TOO_MANY_TEMPORARY_VARIABLES);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  232|      0|        return NULL;
  233|      0|    }
  234|       |    /* OK, make sure the returned bignum is "zero" */
  235|   629k|    BN_zero(ret);
  ------------------
  |  |  201|   629k|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  236|       |    /* clear BN_FLG_CONSTTIME if leaked from previous frames */
  237|   629k|    ret->flags &= (~BN_FLG_CONSTTIME);
  ------------------
  |  |   67|   629k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  238|   629k|    ctx->used++;
  239|       |    CTXDBG("LEAVE BN_CTX_get()", ctx);
  ------------------
  |  |  110|   629k|    OSSL_TRACE_BEGIN(BN_CTX)       \
  |  |  ------------------
  |  |  |  |  221|   629k|    do {                           \
  |  |  |  |  222|   629k|        BIO *trc_out = NULL;       \
  |  |  |  |  223|   629k|        if (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (223:13): [Folded, False: 629k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  111|   629k|    {                              \
  |  |  112|      0|        ctxdbg(trc_out, str, ctx); \
  |  |  113|      0|    }                              \
  |  |  114|   629k|    OSSL_TRACE_END(BN_CTX)
  |  |  ------------------
  |  |  |  |  226|   629k|    }                            \
  |  |  |  |  227|   629k|    while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (227:12): [Folded, False: 629k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  240|   629k|    return ret;
  241|   629k|}
bn_ctx.c:BN_STACK_init:
  255|  43.8k|{
  256|       |    st->indexes = NULL;
  257|  43.8k|    st->depth = st->size = 0;
  258|  43.8k|}
bn_ctx.c:BN_STACK_finish:
  261|  43.8k|{
  262|  43.8k|    OPENSSL_free(st->indexes);
  ------------------
  |  |  131|  43.8k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  263|       |    st->indexes = NULL;
  264|  43.8k|}
bn_ctx.c:BN_STACK_push:
  267|   218k|{
  268|   218k|    if (st->depth == st->size) {
  ------------------
  |  Branch (268:9): [True: 34.1k, False: 183k]
  ------------------
  269|       |        /* Need to expand */
  270|  34.1k|        unsigned int newsize = st->size ? (st->size * 3 / 2) : BN_CTX_START_FRAMES;
  ------------------
  |  |   17|  34.1k|#define BN_CTX_START_FRAMES 32
  ------------------
  |  Branch (270:32): [True: 0, False: 34.1k]
  ------------------
  271|  34.1k|        unsigned int *newitems;
  272|       |
  273|  34.1k|        if ((newitems = OPENSSL_malloc_array(newsize, sizeof(*newitems))) == NULL)
  ------------------
  |  |  110|  34.1k|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (273:13): [True: 0, False: 34.1k]
  ------------------
  274|      0|            return 0;
  275|  34.1k|        if (st->depth)
  ------------------
  |  Branch (275:13): [True: 0, False: 34.1k]
  ------------------
  276|      0|            memcpy(newitems, st->indexes, sizeof(*newitems) * st->depth);
  277|  34.1k|        OPENSSL_free(st->indexes);
  ------------------
  |  |  131|  34.1k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  278|  34.1k|        st->indexes = newitems;
  279|  34.1k|        st->size = newsize;
  280|  34.1k|    }
  281|   218k|    st->indexes[(st->depth)++] = idx;
  282|   218k|    return 1;
  283|   218k|}
bn_ctx.c:BN_STACK_pop:
  286|   218k|{
  287|   218k|    return st->indexes[--(st->depth)];
  288|   218k|}
bn_ctx.c:BN_POOL_init:
  295|  43.8k|{
  296|       |    p->head = p->current = p->tail = NULL;
  297|  43.8k|    p->used = p->size = 0;
  298|  43.8k|}
bn_ctx.c:BN_POOL_finish:
  301|  43.8k|{
  302|  43.8k|    unsigned int loop;
  303|  43.8k|    BIGNUM *bn;
  304|       |
  305|  69.2k|    while (p->head) {
  ------------------
  |  Branch (305:12): [True: 25.4k, False: 43.8k]
  ------------------
  306|   431k|        for (loop = 0, bn = p->head->vals; loop++ < BN_CTX_POOL_SIZE; bn++)
  ------------------
  |  |   15|   431k|#define BN_CTX_POOL_SIZE 16
  ------------------
  |  Branch (306:44): [True: 406k, False: 25.4k]
  ------------------
  307|   406k|            if (bn->d)
  ------------------
  |  Branch (307:17): [True: 206k, False: 199k]
  ------------------
  308|   206k|                BN_clear_free(bn);
  309|  25.4k|        p->current = p->head->next;
  310|  25.4k|        OPENSSL_free(p->head);
  ------------------
  |  |  131|  25.4k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  311|  25.4k|        p->head = p->current;
  312|  25.4k|    }
  313|  43.8k|}
bn_ctx.c:BN_POOL_get:
  316|   629k|{
  317|   629k|    BIGNUM *bn;
  318|   629k|    unsigned int loop;
  319|       |
  320|       |    /* Full; allocate a new pool item and link it in. */
  321|   629k|    if (p->used == p->size) {
  ------------------
  |  Branch (321:9): [True: 25.4k, False: 604k]
  ------------------
  322|  25.4k|        BN_POOL_ITEM *item;
  323|       |
  324|  25.4k|        if ((item = OPENSSL_malloc(sizeof(*item))) == NULL)
  ------------------
  |  |  106|  25.4k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (324:13): [True: 0, False: 25.4k]
  ------------------
  325|      0|            return NULL;
  326|   431k|        for (loop = 0, bn = item->vals; loop++ < BN_CTX_POOL_SIZE; bn++) {
  ------------------
  |  |   15|   431k|#define BN_CTX_POOL_SIZE 16
  ------------------
  |  Branch (326:41): [True: 406k, False: 25.4k]
  ------------------
  327|   406k|            bn_init(bn);
  328|   406k|            if ((flag & BN_FLG_SECURE) != 0)
  ------------------
  |  |   68|   406k|#define BN_FLG_SECURE 0x08
  ------------------
  |  Branch (328:17): [True: 0, False: 406k]
  ------------------
  329|      0|                BN_set_flags(bn, BN_FLG_SECURE);
  ------------------
  |  |   68|      0|#define BN_FLG_SECURE 0x08
  ------------------
  330|   406k|        }
  331|  25.4k|        item->prev = p->tail;
  332|  25.4k|        item->next = NULL;
  333|       |
  334|  25.4k|        if (p->head == NULL)
  ------------------
  |  Branch (334:13): [True: 25.4k, False: 0]
  ------------------
  335|  25.4k|            p->head = p->current = p->tail = item;
  336|      0|        else {
  337|      0|            p->tail->next = item;
  338|      0|            p->tail = item;
  339|      0|            p->current = item;
  340|      0|        }
  341|  25.4k|        p->size += BN_CTX_POOL_SIZE;
  ------------------
  |  |   15|  25.4k|#define BN_CTX_POOL_SIZE 16
  ------------------
  342|  25.4k|        p->used++;
  343|       |        /* Return the first bignum from the new pool */
  344|  25.4k|        return item->vals;
  345|  25.4k|    }
  346|       |
  347|   604k|    if (!p->used)
  ------------------
  |  Branch (347:9): [True: 35.9k, False: 568k]
  ------------------
  348|  35.9k|        p->current = p->head;
  349|   568k|    else if ((p->used % BN_CTX_POOL_SIZE) == 0)
  ------------------
  |  |   15|   568k|#define BN_CTX_POOL_SIZE 16
  ------------------
  |  Branch (349:14): [True: 0, False: 568k]
  ------------------
  350|      0|        p->current = p->current->next;
  351|   604k|    return p->current->vals + ((p->used++) % BN_CTX_POOL_SIZE);
  ------------------
  |  |   15|   604k|#define BN_CTX_POOL_SIZE 16
  ------------------
  352|   629k|}
bn_ctx.c:BN_POOL_release:
  355|   208k|{
  356|   208k|    unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;
  ------------------
  |  |   15|   208k|#define BN_CTX_POOL_SIZE 16
  ------------------
  357|       |
  358|   208k|    p->used -= num;
  359|   838k|    while (num--) {
  ------------------
  |  Branch (359:12): [True: 629k, False: 208k]
  ------------------
  360|   629k|        bn_check_top(p->current->vals + offset);
  361|   629k|        if (offset == 0) {
  ------------------
  |  Branch (361:13): [True: 61.3k, False: 568k]
  ------------------
  362|  61.3k|            offset = BN_CTX_POOL_SIZE - 1;
  ------------------
  |  |   15|  61.3k|#define BN_CTX_POOL_SIZE 16
  ------------------
  363|  61.3k|            p->current = p->current->prev;
  364|  61.3k|        } else
  365|   568k|            offset--;
  366|   629k|    }
  367|   208k|}

BN_div:
  213|   101k|{
  214|   101k|    int ret;
  215|       |
  216|   101k|    if (BN_is_zero(divisor)) {
  ------------------
  |  Branch (216:9): [True: 0, False: 101k]
  ------------------
  217|      0|        ERR_raise(ERR_LIB_BN, BN_R_DIV_BY_ZERO);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  218|      0|        return 0;
  219|      0|    }
  220|       |
  221|       |    /*
  222|       |     * Invalid zero-padding would have particularly bad consequences so don't
  223|       |     * just rely on bn_check_top() here (bn_check_top() works only for
  224|       |     * BN_DEBUG builds)
  225|       |     */
  226|   101k|    if (divisor->d[divisor->top - 1] == 0) {
  ------------------
  |  Branch (226:9): [True: 0, False: 101k]
  ------------------
  227|      0|        ERR_raise(ERR_LIB_BN, BN_R_NOT_INITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  228|      0|        return 0;
  229|      0|    }
  230|       |
  231|   101k|    ret = bn_div_fixed_top(dv, rm, num, divisor, ctx);
  232|       |
  233|   101k|    if (ret) {
  ------------------
  |  Branch (233:9): [True: 101k, False: 0]
  ------------------
  234|   101k|        if (dv != NULL)
  ------------------
  |  Branch (234:13): [True: 7.88k, False: 93.7k]
  ------------------
  235|  7.88k|            bn_correct_top(dv);
  236|   101k|        if (rm != NULL)
  ------------------
  |  Branch (236:13): [True: 93.7k, False: 7.88k]
  ------------------
  237|  93.7k|            bn_correct_top(rm);
  238|   101k|    }
  239|       |
  240|   101k|    return ret;
  241|   101k|}
bn_div_fixed_top:
  268|   101k|{
  269|   101k|    int norm_shift, i, j, loop;
  270|   101k|    BIGNUM *tmp, *snum, *sdiv, *res;
  271|   101k|    BN_ULONG *resp, *wnum, *wnumtop;
  ------------------
  |  |   37|   101k|#define BN_ULONG unsigned long
  ------------------
  272|   101k|    BN_ULONG d0, d1;
  ------------------
  |  |   37|   101k|#define BN_ULONG unsigned long
  ------------------
  273|   101k|    int num_n, div_n, num_neg;
  274|       |
  275|   101k|    assert(divisor->top > 0 && divisor->d[divisor->top - 1] != 0);
  ------------------
  |  Branch (275:5): [True: 0, False: 101k]
  |  Branch (275:5): [True: 0, False: 0]
  |  Branch (275:5): [True: 101k, False: 0]
  |  Branch (275:5): [True: 101k, False: 0]
  ------------------
  276|       |
  277|   101k|    bn_check_top(num);
  278|   101k|    bn_check_top(divisor);
  279|   101k|    bn_check_top(dv);
  280|   101k|    bn_check_top(rm);
  281|       |
  282|   101k|    BN_CTX_start(ctx);
  283|   101k|    res = (dv == NULL) ? BN_CTX_get(ctx) : dv;
  ------------------
  |  Branch (283:11): [True: 93.7k, False: 7.88k]
  ------------------
  284|   101k|    tmp = BN_CTX_get(ctx);
  285|   101k|    snum = BN_CTX_get(ctx);
  286|   101k|    sdiv = BN_CTX_get(ctx);
  287|   101k|    if (sdiv == NULL)
  ------------------
  |  Branch (287:9): [True: 0, False: 101k]
  ------------------
  288|      0|        goto err;
  289|       |
  290|       |    /* First we normalise the numbers */
  291|   101k|    if (!BN_copy(sdiv, divisor))
  ------------------
  |  Branch (291:9): [True: 0, False: 101k]
  ------------------
  292|      0|        goto err;
  293|   101k|    norm_shift = bn_left_align(sdiv);
  294|   101k|    sdiv->neg = 0;
  295|       |    /*
  296|       |     * Note that bn_lshift_fixed_top's output is always one limb longer
  297|       |     * than input, even when norm_shift is zero. This means that amount of
  298|       |     * inner loop iterations is invariant of dividend value, and that one
  299|       |     * doesn't need to compare dividend and divisor if they were originally
  300|       |     * of the same bit length.
  301|       |     */
  302|   101k|    if (!(bn_lshift_fixed_top(snum, num, norm_shift)))
  ------------------
  |  Branch (302:9): [True: 0, False: 101k]
  ------------------
  303|      0|        goto err;
  304|       |
  305|   101k|    div_n = sdiv->top;
  306|   101k|    num_n = snum->top;
  307|       |
  308|   101k|    if (num_n <= div_n) {
  ------------------
  |  Branch (308:9): [True: 17.5k, False: 84.0k]
  ------------------
  309|       |        /* caller didn't pad dividend -> no constant-time guarantee... */
  310|  17.5k|        if (bn_wexpand(snum, div_n + 1) == NULL)
  ------------------
  |  Branch (310:13): [True: 0, False: 17.5k]
  ------------------
  311|      0|            goto err;
  312|  17.5k|        memset(&(snum->d[num_n]), 0, (div_n - num_n + 1) * sizeof(BN_ULONG));
  313|  17.5k|        snum->top = num_n = div_n + 1;
  314|  17.5k|    }
  315|       |
  316|   101k|    loop = num_n - div_n;
  317|       |    /*
  318|       |     * Lets setup a 'window' into snum This is the part that corresponds to
  319|       |     * the current 'area' being divided
  320|       |     */
  321|   101k|    wnum = &(snum->d[loop]);
  322|   101k|    wnumtop = &(snum->d[num_n - 1]);
  323|       |
  324|       |    /* Get the top 2 words of sdiv */
  325|   101k|    d0 = sdiv->d[div_n - 1];
  326|   101k|    d1 = (div_n == 1) ? 0 : sdiv->d[div_n - 2];
  ------------------
  |  Branch (326:10): [True: 23.6k, False: 77.9k]
  ------------------
  327|       |
  328|       |    /* Setup quotient */
  329|   101k|    if (!bn_wexpand(res, loop))
  ------------------
  |  Branch (329:9): [True: 0, False: 101k]
  ------------------
  330|      0|        goto err;
  331|   101k|    num_neg = num->neg;
  332|   101k|    res->neg = (num_neg ^ divisor->neg);
  333|   101k|    res->top = loop;
  334|   101k|    res->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|   101k|#define BN_FLG_FIXED_TOP 0
  ------------------
  335|   101k|    resp = &(res->d[loop]);
  336|       |
  337|       |    /* space for temp */
  338|   101k|    if (!bn_wexpand(tmp, (div_n + 1)))
  ------------------
  |  Branch (338:9): [True: 0, False: 101k]
  ------------------
  339|      0|        goto err;
  340|       |
  341|   282k|    for (i = 0; i < loop; i++, wnumtop--) {
  ------------------
  |  Branch (341:17): [True: 180k, False: 101k]
  ------------------
  342|   180k|        BN_ULONG q, l0;
  ------------------
  |  |   37|   180k|#define BN_ULONG unsigned long
  ------------------
  343|       |        /*
  344|       |         * the first part of the loop uses the top two words of snum and sdiv
  345|       |         * to calculate a BN_ULONG q such that | wnum - sdiv * q | < sdiv
  346|       |         */
  347|       |#if defined(BN_DIV3W)
  348|       |        q = bn_div_3_words(wnumtop, d1, d0);
  349|       |#else
  350|   180k|        BN_ULONG n0, n1, rem = 0;
  ------------------
  |  |   37|   180k|#define BN_ULONG unsigned long
  ------------------
  351|       |
  352|   180k|        n0 = wnumtop[0];
  353|   180k|        n1 = wnumtop[-1];
  354|   180k|        if (n0 == d0)
  ------------------
  |  Branch (354:13): [True: 0, False: 180k]
  ------------------
  355|      0|            q = BN_MASK2;
  ------------------
  |  |   93|      0|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  356|   180k|        else { /* n0 < d0 */
  357|   180k|            BN_ULONG n2 = (wnumtop == wnum) ? 0 : wnumtop[-2];
  ------------------
  |  |   37|   180k|#define BN_ULONG unsigned long
  ------------------
  |  Branch (357:27): [True: 47.3k, False: 133k]
  ------------------
  358|       |#ifdef BN_LLONG
  359|       |            BN_ULLONG t2;
  360|       |
  361|       |#if defined(BN_LLONG) && defined(BN_DIV2W) && !defined(bn_div_words)
  362|       |            q = (BN_ULONG)(((((BN_ULLONG)n0) << BN_BITS2) | n1) / d0);
  363|       |#else
  364|       |            q = bn_div_words(n0, n1, d0);
  365|       |#endif
  366|       |
  367|       |#ifndef REMAINDER_IS_ALREADY_CALCULATED
  368|       |            /*
  369|       |             * rem doesn't have to be BN_ULLONG. The least we
  370|       |             * know it's less that d0, isn't it?
  371|       |             */
  372|       |            rem = (n1 - q * d0) & BN_MASK2;
  373|       |#endif
  374|       |            t2 = (BN_ULLONG)d1 * q;
  375|       |
  376|       |            for (;;) {
  377|       |                if (t2 <= ((((BN_ULLONG)rem) << BN_BITS2) | n2))
  378|       |                    break;
  379|       |                q--;
  380|       |                rem += d0;
  381|       |                if (rem < d0)
  382|       |                    break; /* don't let rem overflow */
  383|       |                t2 -= d1;
  384|       |            }
  385|       |#else /* !BN_LLONG */
  386|   180k|            BN_ULONG t2l, t2h;
  ------------------
  |  |   37|   180k|#define BN_ULONG unsigned long
  ------------------
  387|       |
  388|   180k|            q = bn_div_words(n0, n1, d0);
  389|   180k|#ifndef REMAINDER_IS_ALREADY_CALCULATED
  390|   180k|            rem = (n1 - q * d0) & BN_MASK2;
  ------------------
  |  |   93|   180k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  391|   180k|#endif
  392|       |
  393|       |#if defined(BN_UMULT_LOHI)
  394|       |            BN_UMULT_LOHI(t2l, t2h, d1, q);
  395|       |#elif defined(BN_UMULT_HIGH)
  396|       |            t2l = d1 * q;
  397|       |            t2h = BN_UMULT_HIGH(d1, q);
  398|       |#else
  399|   180k|            {
  400|   180k|                BN_ULONG ql, qh;
  ------------------
  |  |   37|   180k|#define BN_ULONG unsigned long
  ------------------
  401|   180k|                t2l = LBITS(d1);
  ------------------
  |  |  568|   180k|#define LBITS(a) ((a) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   94|   180k|#define BN_MASK2l (0xffffffffL)
  |  |  ------------------
  ------------------
  402|   180k|                t2h = HBITS(d1);
  ------------------
  |  |  569|   180k|#define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   92|   180k|#define BN_BITS4 32
  |  |  ------------------
  |  |               #define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   94|   180k|#define BN_MASK2l (0xffffffffL)
  |  |  ------------------
  ------------------
  403|   180k|                ql = LBITS(q);
  ------------------
  |  |  568|   180k|#define LBITS(a) ((a) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   94|   180k|#define BN_MASK2l (0xffffffffL)
  |  |  ------------------
  ------------------
  404|   180k|                qh = HBITS(q);
  ------------------
  |  |  569|   180k|#define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   92|   180k|#define BN_BITS4 32
  |  |  ------------------
  |  |               #define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   94|   180k|#define BN_MASK2l (0xffffffffL)
  |  |  ------------------
  ------------------
  405|   180k|                mul64(t2l, t2h, ql, qh); /* t2=(BN_ULLONG)d1*q; */
  ------------------
  |  |  577|   180k|    {                                      \
  |  |  578|   180k|        BN_ULONG m, m1, lt, ht;            \
  |  |  ------------------
  |  |  |  |   37|   180k|#define BN_ULONG unsigned long
  |  |  ------------------
  |  |  579|   180k|                                           \
  |  |  580|   180k|        lt = l;                            \
  |  |  581|   180k|        ht = h;                            \
  |  |  582|   180k|        m = (bh) * (lt);                   \
  |  |  583|   180k|        lt = (bl) * (lt);                  \
  |  |  584|   180k|        m1 = (bl) * (ht);                  \
  |  |  585|   180k|        ht = (bh) * (ht);                  \
  |  |  586|   180k|        m = (m + m1) & BN_MASK2;           \
  |  |  ------------------
  |  |  |  |   93|   180k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  ------------------
  |  |  587|   180k|        ht += L2HBITS((BN_ULONG)(m < m1)); \
  |  |  ------------------
  |  |  |  |  570|   180k|#define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   92|   180k|#define BN_BITS4 32
  |  |  |  |  ------------------
  |  |  |  |               #define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   93|   180k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  588|   180k|        ht += HBITS(m);                    \
  |  |  ------------------
  |  |  |  |  569|   180k|#define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  |  |  ------------------
  |  |  |  |  |  |   92|   180k|#define BN_BITS4 32
  |  |  |  |  ------------------
  |  |  |  |               #define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|   180k|#define BN_MASK2l (0xffffffffL)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  589|   180k|        m1 = L2HBITS(m);                   \
  |  |  ------------------
  |  |  |  |  570|   180k|#define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   92|   180k|#define BN_BITS4 32
  |  |  |  |  ------------------
  |  |  |  |               #define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   93|   180k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  590|   180k|        lt = (lt + m1) & BN_MASK2;         \
  |  |  ------------------
  |  |  |  |   93|   180k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  ------------------
  |  |  591|   180k|        ht += (lt < m1);                   \
  |  |  592|   180k|        (l) = lt;                          \
  |  |  593|   180k|        (h) = ht;                          \
  |  |  594|   180k|    }
  ------------------
  406|   180k|            }
  407|   180k|#endif
  408|       |
  409|   180k|            for (;;) {
  410|   180k|                if ((t2h < rem) || ((t2h == rem) && (t2l <= n2)))
  ------------------
  |  Branch (410:21): [True: 130k, False: 49.9k]
  |  Branch (410:37): [True: 49.9k, False: 0]
  |  Branch (410:53): [True: 49.9k, False: 0]
  ------------------
  411|   180k|                    break;
  412|      0|                q--;
  413|      0|                rem += d0;
  414|      0|                if (rem < d0)
  ------------------
  |  Branch (414:21): [True: 0, False: 0]
  ------------------
  415|      0|                    break; /* don't let rem overflow */
  416|      0|                if (t2l < d1)
  ------------------
  |  Branch (416:21): [True: 0, False: 0]
  ------------------
  417|      0|                    t2h--;
  418|      0|                t2l -= d1;
  419|      0|            }
  420|   180k|#endif /* !BN_LLONG */
  421|   180k|        }
  422|   180k|#endif /* !BN_DIV3W */
  423|       |
  424|   180k|        l0 = bn_mul_words(tmp->d, sdiv->d, div_n, q);
  425|   180k|        tmp->d[div_n] = l0;
  426|   180k|        wnum--;
  427|       |        /*
  428|       |         * ignore top values of the bignums just sub the two BN_ULONG arrays
  429|       |         * with bn_sub_words
  430|       |         */
  431|   180k|        l0 = bn_sub_words(wnum, wnum, tmp->d, div_n + 1);
  432|   180k|        q -= l0;
  433|       |        /*
  434|       |         * Note: As we have considered only the leading two BN_ULONGs in
  435|       |         * the calculation of q, sdiv * q might be greater than wnum (but
  436|       |         * then (q-1) * sdiv is less or equal than wnum)
  437|       |         */
  438|  1.01M|        for (l0 = 0 - l0, j = 0; j < div_n; j++)
  ------------------
  |  Branch (438:34): [True: 832k, False: 180k]
  ------------------
  439|   832k|            tmp->d[j] = sdiv->d[j] & l0;
  440|   180k|        l0 = bn_add_words(wnum, wnum, tmp->d, div_n);
  441|   180k|        (*wnumtop) += l0;
  442|   180k|        assert((*wnumtop) == 0);
  ------------------
  |  Branch (442:9): [True: 0, False: 180k]
  |  Branch (442:9): [True: 180k, False: 0]
  ------------------
  443|       |
  444|       |        /* store part of the result */
  445|   180k|        *--resp = q;
  446|   180k|    }
  447|       |    /* snum holds remainder, it's as wide as divisor */
  448|   101k|    snum->neg = num_neg;
  449|   101k|    snum->top = div_n;
  450|   101k|    snum->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|   101k|#define BN_FLG_FIXED_TOP 0
  ------------------
  451|       |
  452|   101k|    if (rm != NULL && bn_rshift_fixed_top(rm, snum, norm_shift) == 0)
  ------------------
  |  Branch (452:9): [True: 93.7k, False: 7.88k]
  |  Branch (452:23): [True: 0, False: 93.7k]
  ------------------
  453|      0|        goto err;
  454|       |
  455|   101k|    BN_CTX_end(ctx);
  456|   101k|    return 1;
  457|      0|err:
  458|      0|    bn_check_top(rm);
  459|      0|    BN_CTX_end(ctx);
  460|      0|    return 0;
  461|   101k|}
bn_div.c:bn_left_align:
  142|   101k|{
  143|   101k|    BN_ULONG *d = num->d, n, m, rmask;
  ------------------
  |  |   37|   101k|#define BN_ULONG unsigned long
  ------------------
  144|   101k|    int top = num->top;
  145|   101k|    int rshift = BN_num_bits_word(d[top - 1]), lshift, i;
  146|       |
  147|   101k|    lshift = BN_BITS2 - rshift;
  ------------------
  |  |   54|   101k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   101k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  148|   101k|    rshift %= BN_BITS2; /* say no to undefined behaviour */
  ------------------
  |  |   54|   101k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   101k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  149|   101k|    rmask = (BN_ULONG)0 - rshift; /* rmask = 0 - (rshift != 0) */
  150|   101k|    rmask |= rmask >> 8;
  151|       |
  152|   579k|    for (i = 0, m = 0; i < top; i++) {
  ------------------
  |  Branch (152:24): [True: 477k, False: 101k]
  ------------------
  153|   477k|        n = d[i];
  154|   477k|        d[i] = ((n << lshift) | m) & BN_MASK2;
  ------------------
  |  |   93|   477k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  155|   477k|        m = (n >> rshift) & rmask;
  156|   477k|    }
  157|       |
  158|   101k|    return lshift;
  159|   101k|}

ossl_err_load_BN_strings:
   50|      2|{
   51|      2|#ifndef OPENSSL_NO_ERR
   52|      2|    if (ERR_reason_error_string(BN_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (52:9): [True: 2, False: 0]
  ------------------
   53|      2|        ERR_load_strings_const(BN_str_reasons);
   54|      2|#endif
   55|      2|    return 1;
   56|      2|}

int_bn_mod_inverse:
  200|  7.88k|{
  201|  7.88k|    BIGNUM *A, *B, *X, *Y, *M, *D, *T, *R = NULL;
  202|  7.88k|    BIGNUM *ret = NULL;
  203|  7.88k|    int sign;
  204|       |
  205|       |    /* This is invalid input so we don't worry about constant time here */
  206|  7.88k|    if (BN_abs_is_word(n, 1) || BN_is_zero(n)) {
  ------------------
  |  Branch (206:9): [True: 0, False: 7.88k]
  |  Branch (206:33): [True: 0, False: 7.88k]
  ------------------
  207|      0|        *pnoinv = 1;
  208|      0|        return NULL;
  209|      0|    }
  210|       |
  211|  7.88k|    *pnoinv = 0;
  212|       |
  213|  7.88k|    if ((BN_get_flags(a, BN_FLG_CONSTTIME) != 0)
  ------------------
  |  |   67|  7.88k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (213:9): [True: 0, False: 7.88k]
  ------------------
  214|  7.88k|        || (BN_get_flags(n, BN_FLG_CONSTTIME) != 0)) {
  ------------------
  |  |   67|  7.88k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (214:12): [True: 0, False: 7.88k]
  ------------------
  215|      0|        return bn_mod_inverse_no_branch(in, a, n, ctx, pnoinv);
  216|      0|    }
  217|       |
  218|  7.88k|    bn_check_top(a);
  219|  7.88k|    bn_check_top(n);
  220|       |
  221|  7.88k|    BN_CTX_start(ctx);
  222|  7.88k|    A = BN_CTX_get(ctx);
  223|  7.88k|    B = BN_CTX_get(ctx);
  224|  7.88k|    X = BN_CTX_get(ctx);
  225|  7.88k|    D = BN_CTX_get(ctx);
  226|  7.88k|    M = BN_CTX_get(ctx);
  227|  7.88k|    Y = BN_CTX_get(ctx);
  228|  7.88k|    T = BN_CTX_get(ctx);
  229|  7.88k|    if (T == NULL)
  ------------------
  |  Branch (229:9): [True: 0, False: 7.88k]
  ------------------
  230|      0|        goto err;
  231|       |
  232|  7.88k|    if (in == NULL)
  ------------------
  |  Branch (232:9): [True: 0, False: 7.88k]
  ------------------
  233|      0|        R = BN_new();
  234|  7.88k|    else
  235|  7.88k|        R = in;
  236|  7.88k|    if (R == NULL)
  ------------------
  |  Branch (236:9): [True: 0, False: 7.88k]
  ------------------
  237|      0|        goto err;
  238|       |
  239|  7.88k|    if (!BN_one(X))
  ------------------
  |  |  196|  7.88k|#define BN_one(a) (BN_set_word((a), 1))
  ------------------
  |  Branch (239:9): [True: 0, False: 7.88k]
  ------------------
  240|      0|        goto err;
  241|  7.88k|    BN_zero(Y);
  ------------------
  |  |  201|  7.88k|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  242|  7.88k|    if (BN_copy(B, a) == NULL)
  ------------------
  |  Branch (242:9): [True: 0, False: 7.88k]
  ------------------
  243|      0|        goto err;
  244|  7.88k|    if (BN_copy(A, n) == NULL)
  ------------------
  |  Branch (244:9): [True: 0, False: 7.88k]
  ------------------
  245|      0|        goto err;
  246|  7.88k|    A->neg = 0;
  247|  7.88k|    if (B->neg || (BN_ucmp(B, A) >= 0)) {
  ------------------
  |  Branch (247:9): [True: 0, False: 7.88k]
  |  Branch (247:19): [True: 7.88k, False: 0]
  ------------------
  248|  7.88k|        if (!BN_nnmod(B, B, A, ctx))
  ------------------
  |  Branch (248:13): [True: 0, False: 7.88k]
  ------------------
  249|      0|            goto err;
  250|  7.88k|    }
  251|  7.88k|    sign = -1;
  252|       |    /*-
  253|       |     * From  B = a mod |n|,  A = |n|  it follows that
  254|       |     *
  255|       |     *      0 <= B < A,
  256|       |     *     -sign*X*a  ==  B   (mod |n|),
  257|       |     *      sign*Y*a  ==  A   (mod |n|).
  258|       |     */
  259|       |
  260|  7.88k|    if (BN_is_odd(n) && (BN_num_bits(n) <= 2048)) {
  ------------------
  |  Branch (260:9): [True: 7.88k, False: 0]
  |  Branch (260:25): [True: 7.88k, False: 0]
  ------------------
  261|       |        /*
  262|       |         * Binary inversion algorithm; requires odd modulus. This is faster
  263|       |         * than the general algorithm if the modulus is sufficiently small
  264|       |         * (about 400 .. 500 bits on 32-bit systems, but much more on 64-bit
  265|       |         * systems)
  266|       |         */
  267|  7.88k|        int shift;
  268|       |
  269|   512k|        while (!BN_is_zero(B)) {
  ------------------
  |  Branch (269:16): [True: 504k, False: 7.88k]
  ------------------
  270|       |            /*-
  271|       |             *      0 < B < |n|,
  272|       |             *      0 < A <= |n|,
  273|       |             * (1) -sign*X*a  ==  B   (mod |n|),
  274|       |             * (2)  sign*Y*a  ==  A   (mod |n|)
  275|       |             */
  276|       |
  277|       |            /*
  278|       |             * Now divide B by the maximum possible power of two in the
  279|       |             * integers, and divide X by the same value mod |n|. When we're
  280|       |             * done, (1) still holds.
  281|       |             */
  282|   504k|            shift = 0;
  283|   748k|            while (!BN_is_bit_set(B, shift)) { /* note that 0 < B */
  ------------------
  |  Branch (283:20): [True: 244k, False: 504k]
  ------------------
  284|   244k|                shift++;
  285|       |
  286|   244k|                if (BN_is_odd(X)) {
  ------------------
  |  Branch (286:21): [True: 126k, False: 118k]
  ------------------
  287|   126k|                    if (!BN_uadd(X, X, n))
  ------------------
  |  Branch (287:25): [True: 0, False: 126k]
  ------------------
  288|      0|                        goto err;
  289|   126k|                }
  290|       |                /*
  291|       |                 * now X is even, so we can easily divide it by two
  292|       |                 */
  293|   244k|                if (!BN_rshift1(X, X))
  ------------------
  |  Branch (293:21): [True: 0, False: 244k]
  ------------------
  294|      0|                    goto err;
  295|   244k|            }
  296|   504k|            if (shift > 0) {
  ------------------
  |  Branch (296:17): [True: 244k, False: 260k]
  ------------------
  297|   244k|                if (!BN_rshift(B, B, shift))
  ------------------
  |  Branch (297:21): [True: 0, False: 244k]
  ------------------
  298|      0|                    goto err;
  299|   244k|            }
  300|       |
  301|       |            /*
  302|       |             * Same for A and Y.  Afterwards, (2) still holds.
  303|       |             */
  304|   504k|            shift = 0;
  305|   756k|            while (!BN_is_bit_set(A, shift)) { /* note that 0 < A */
  ------------------
  |  Branch (305:20): [True: 252k, False: 504k]
  ------------------
  306|   252k|                shift++;
  307|       |
  308|   252k|                if (BN_is_odd(Y)) {
  ------------------
  |  Branch (308:21): [True: 118k, False: 134k]
  ------------------
  309|   118k|                    if (!BN_uadd(Y, Y, n))
  ------------------
  |  Branch (309:25): [True: 0, False: 118k]
  ------------------
  310|      0|                        goto err;
  311|   118k|                }
  312|       |                /* now Y is even */
  313|   252k|                if (!BN_rshift1(Y, Y))
  ------------------
  |  Branch (313:21): [True: 0, False: 252k]
  ------------------
  314|      0|                    goto err;
  315|   252k|            }
  316|   504k|            if (shift > 0) {
  ------------------
  |  Branch (316:17): [True: 252k, False: 252k]
  ------------------
  317|   252k|                if (!BN_rshift(A, A, shift))
  ------------------
  |  Branch (317:21): [True: 0, False: 252k]
  ------------------
  318|      0|                    goto err;
  319|   252k|            }
  320|       |
  321|       |            /*-
  322|       |             * We still have (1) and (2).
  323|       |             * Both  A  and  B  are odd.
  324|       |             * The following computations ensure that
  325|       |             *
  326|       |             *     0 <= B < |n|,
  327|       |             *      0 < A < |n|,
  328|       |             * (1) -sign*X*a  ==  B   (mod |n|),
  329|       |             * (2)  sign*Y*a  ==  A   (mod |n|),
  330|       |             *
  331|       |             * and that either  A  or  B  is even in the next iteration.
  332|       |             */
  333|   504k|            if (BN_ucmp(B, A) >= 0) {
  ------------------
  |  Branch (333:17): [True: 252k, False: 252k]
  ------------------
  334|       |                /* -sign*(X + Y)*a == B - A  (mod |n|) */
  335|   252k|                if (!BN_uadd(X, X, Y))
  ------------------
  |  Branch (335:21): [True: 0, False: 252k]
  ------------------
  336|      0|                    goto err;
  337|       |                /*
  338|       |                 * NB: we could use BN_mod_add_quick(X, X, Y, n), but that
  339|       |                 * actually makes the algorithm slower
  340|       |                 */
  341|   252k|                if (!BN_usub(B, B, A))
  ------------------
  |  Branch (341:21): [True: 0, False: 252k]
  ------------------
  342|      0|                    goto err;
  343|   252k|            } else {
  344|       |                /*  sign*(X + Y)*a == A - B  (mod |n|) */
  345|   252k|                if (!BN_uadd(Y, Y, X))
  ------------------
  |  Branch (345:21): [True: 0, False: 252k]
  ------------------
  346|      0|                    goto err;
  347|       |                /*
  348|       |                 * as above, BN_mod_add_quick(Y, Y, X, n) would slow things down
  349|       |                 */
  350|   252k|                if (!BN_usub(A, A, B))
  ------------------
  |  Branch (350:21): [True: 0, False: 252k]
  ------------------
  351|      0|                    goto err;
  352|   252k|            }
  353|   504k|        }
  354|  7.88k|    } else {
  355|       |        /* general inversion algorithm */
  356|       |
  357|      0|        while (!BN_is_zero(B)) {
  ------------------
  |  Branch (357:16): [True: 0, False: 0]
  ------------------
  358|      0|            BIGNUM *tmp;
  359|       |
  360|       |            /*-
  361|       |             *      0 < B < A,
  362|       |             * (*) -sign*X*a  ==  B   (mod |n|),
  363|       |             *      sign*Y*a  ==  A   (mod |n|)
  364|       |             */
  365|       |
  366|       |            /* (D, M) := (A/B, A%B) ... */
  367|      0|            if (BN_num_bits(A) == BN_num_bits(B)) {
  ------------------
  |  Branch (367:17): [True: 0, False: 0]
  ------------------
  368|      0|                if (!BN_one(D))
  ------------------
  |  |  196|      0|#define BN_one(a) (BN_set_word((a), 1))
  ------------------
  |  Branch (368:21): [True: 0, False: 0]
  ------------------
  369|      0|                    goto err;
  370|      0|                if (!BN_sub(M, A, B))
  ------------------
  |  Branch (370:21): [True: 0, False: 0]
  ------------------
  371|      0|                    goto err;
  372|      0|            } else if (BN_num_bits(A) == BN_num_bits(B) + 1) {
  ------------------
  |  Branch (372:24): [True: 0, False: 0]
  ------------------
  373|       |                /* A/B is 1, 2, or 3 */
  374|      0|                if (!BN_lshift1(T, B))
  ------------------
  |  Branch (374:21): [True: 0, False: 0]
  ------------------
  375|      0|                    goto err;
  376|      0|                if (BN_ucmp(A, T) < 0) {
  ------------------
  |  Branch (376:21): [True: 0, False: 0]
  ------------------
  377|       |                    /* A < 2*B, so D=1 */
  378|      0|                    if (!BN_one(D))
  ------------------
  |  |  196|      0|#define BN_one(a) (BN_set_word((a), 1))
  ------------------
  |  Branch (378:25): [True: 0, False: 0]
  ------------------
  379|      0|                        goto err;
  380|      0|                    if (!BN_sub(M, A, B))
  ------------------
  |  Branch (380:25): [True: 0, False: 0]
  ------------------
  381|      0|                        goto err;
  382|      0|                } else {
  383|       |                    /* A >= 2*B, so D=2 or D=3 */
  384|      0|                    if (!BN_sub(M, A, T))
  ------------------
  |  Branch (384:25): [True: 0, False: 0]
  ------------------
  385|      0|                        goto err;
  386|      0|                    if (!BN_add(D, T, B))
  ------------------
  |  Branch (386:25): [True: 0, False: 0]
  ------------------
  387|      0|                        goto err; /* use D (:= 3*B) as temp */
  388|      0|                    if (BN_ucmp(A, D) < 0) {
  ------------------
  |  Branch (388:25): [True: 0, False: 0]
  ------------------
  389|       |                        /* A < 3*B, so D=2 */
  390|      0|                        if (!BN_set_word(D, 2))
  ------------------
  |  Branch (390:29): [True: 0, False: 0]
  ------------------
  391|      0|                            goto err;
  392|       |                        /*
  393|       |                         * M (= A - 2*B) already has the correct value
  394|       |                         */
  395|      0|                    } else {
  396|       |                        /* only D=3 remains */
  397|      0|                        if (!BN_set_word(D, 3))
  ------------------
  |  Branch (397:29): [True: 0, False: 0]
  ------------------
  398|      0|                            goto err;
  399|       |                        /*
  400|       |                         * currently M = A - 2*B, but we need M = A - 3*B
  401|       |                         */
  402|      0|                        if (!BN_sub(M, M, B))
  ------------------
  |  Branch (402:29): [True: 0, False: 0]
  ------------------
  403|      0|                            goto err;
  404|      0|                    }
  405|      0|                }
  406|      0|            } else {
  407|      0|                if (!BN_div(D, M, A, B, ctx))
  ------------------
  |  Branch (407:21): [True: 0, False: 0]
  ------------------
  408|      0|                    goto err;
  409|      0|            }
  410|       |
  411|       |            /*-
  412|       |             * Now
  413|       |             *      A = D*B + M;
  414|       |             * thus we have
  415|       |             * (**)  sign*Y*a  ==  D*B + M   (mod |n|).
  416|       |             */
  417|       |
  418|      0|            tmp = A; /* keep the BIGNUM object, the value does not matter */
  419|       |
  420|       |            /* (A, B) := (B, A mod B) ... */
  421|      0|            A = B;
  422|      0|            B = M;
  423|       |            /* ... so we have  0 <= B < A  again */
  424|       |
  425|       |            /*-
  426|       |             * Since the former  M  is now  B  and the former  B  is now  A,
  427|       |             * (**) translates into
  428|       |             *       sign*Y*a  ==  D*A + B    (mod |n|),
  429|       |             * i.e.
  430|       |             *       sign*Y*a - D*A  ==  B    (mod |n|).
  431|       |             * Similarly, (*) translates into
  432|       |             *      -sign*X*a  ==  A          (mod |n|).
  433|       |             *
  434|       |             * Thus,
  435|       |             *   sign*Y*a + D*sign*X*a  ==  B  (mod |n|),
  436|       |             * i.e.
  437|       |             *        sign*(Y + D*X)*a  ==  B  (mod |n|).
  438|       |             *
  439|       |             * So if we set  (X, Y, sign) := (Y + D*X, X, -sign), we arrive back at
  440|       |             *      -sign*X*a  ==  B   (mod |n|),
  441|       |             *       sign*Y*a  ==  A   (mod |n|).
  442|       |             * Note that  X  and  Y  stay non-negative all the time.
  443|       |             */
  444|       |
  445|       |            /*
  446|       |             * most of the time D is very small, so we can optimize tmp := D*X+Y
  447|       |             */
  448|      0|            if (BN_is_one(D)) {
  ------------------
  |  Branch (448:17): [True: 0, False: 0]
  ------------------
  449|      0|                if (!BN_add(tmp, X, Y))
  ------------------
  |  Branch (449:21): [True: 0, False: 0]
  ------------------
  450|      0|                    goto err;
  451|      0|            } else {
  452|      0|                if (BN_is_word(D, 2)) {
  ------------------
  |  Branch (452:21): [True: 0, False: 0]
  ------------------
  453|      0|                    if (!BN_lshift1(tmp, X))
  ------------------
  |  Branch (453:25): [True: 0, False: 0]
  ------------------
  454|      0|                        goto err;
  455|      0|                } else if (BN_is_word(D, 4)) {
  ------------------
  |  Branch (455:28): [True: 0, False: 0]
  ------------------
  456|      0|                    if (!BN_lshift(tmp, X, 2))
  ------------------
  |  Branch (456:25): [True: 0, False: 0]
  ------------------
  457|      0|                        goto err;
  458|      0|                } else if (D->top == 1) {
  ------------------
  |  Branch (458:28): [True: 0, False: 0]
  ------------------
  459|      0|                    if (!BN_copy(tmp, X))
  ------------------
  |  Branch (459:25): [True: 0, False: 0]
  ------------------
  460|      0|                        goto err;
  461|      0|                    if (!BN_mul_word(tmp, D->d[0]))
  ------------------
  |  Branch (461:25): [True: 0, False: 0]
  ------------------
  462|      0|                        goto err;
  463|      0|                } else {
  464|      0|                    if (!BN_mul(tmp, D, X, ctx))
  ------------------
  |  Branch (464:25): [True: 0, False: 0]
  ------------------
  465|      0|                        goto err;
  466|      0|                }
  467|      0|                if (!BN_add(tmp, tmp, Y))
  ------------------
  |  Branch (467:21): [True: 0, False: 0]
  ------------------
  468|      0|                    goto err;
  469|      0|            }
  470|       |
  471|      0|            M = Y; /* keep the BIGNUM object, the value does not matter */
  472|      0|            Y = X;
  473|      0|            X = tmp;
  474|      0|            sign = -sign;
  475|      0|        }
  476|      0|    }
  477|       |
  478|       |    /*-
  479|       |     * The while loop (Euclid's algorithm) ends when
  480|       |     *      A == gcd(a,n);
  481|       |     * we have
  482|       |     *       sign*Y*a  ==  A  (mod |n|),
  483|       |     * where  Y  is non-negative.
  484|       |     */
  485|       |
  486|  7.88k|    if (sign < 0) {
  ------------------
  |  Branch (486:9): [True: 7.88k, False: 0]
  ------------------
  487|  7.88k|        if (!BN_sub(Y, n, Y))
  ------------------
  |  Branch (487:13): [True: 0, False: 7.88k]
  ------------------
  488|      0|            goto err;
  489|  7.88k|    }
  490|       |    /* Now  Y*a  ==  A  (mod |n|).  */
  491|       |
  492|  7.88k|    if (BN_is_one(A)) {
  ------------------
  |  Branch (492:9): [True: 7.88k, False: 0]
  ------------------
  493|       |        /* Y*a == 1  (mod |n|) */
  494|  7.88k|        if (!Y->neg && BN_ucmp(Y, n) < 0) {
  ------------------
  |  Branch (494:13): [True: 0, False: 7.88k]
  |  Branch (494:24): [True: 0, False: 0]
  ------------------
  495|      0|            if (!BN_copy(R, Y))
  ------------------
  |  Branch (495:17): [True: 0, False: 0]
  ------------------
  496|      0|                goto err;
  497|  7.88k|        } else {
  498|  7.88k|            if (!BN_nnmod(R, Y, n, ctx))
  ------------------
  |  Branch (498:17): [True: 0, False: 7.88k]
  ------------------
  499|      0|                goto err;
  500|  7.88k|        }
  501|  7.88k|    } else {
  502|      0|        *pnoinv = 1;
  503|      0|        goto err;
  504|      0|    }
  505|  7.88k|    ret = R;
  506|  7.88k|err:
  507|  7.88k|    if ((ret == NULL) && (in == NULL))
  ------------------
  |  Branch (507:9): [True: 0, False: 7.88k]
  |  Branch (507:26): [True: 0, False: 0]
  ------------------
  508|      0|        BN_free(R);
  509|  7.88k|    BN_CTX_end(ctx);
  510|  7.88k|    bn_check_top(ret);
  511|  7.88k|    return ret;
  512|  7.88k|}
BN_mod_inverse:
  517|  7.88k|{
  518|  7.88k|    BN_CTX *new_ctx = NULL;
  519|  7.88k|    BIGNUM *rv;
  520|  7.88k|    int noinv = 0;
  521|       |
  522|  7.88k|    if (ctx == NULL) {
  ------------------
  |  Branch (522:9): [True: 0, False: 7.88k]
  ------------------
  523|      0|        ctx = new_ctx = BN_CTX_new_ex(NULL);
  524|      0|        if (ctx == NULL) {
  ------------------
  |  Branch (524:13): [True: 0, False: 0]
  ------------------
  525|      0|            ERR_raise(ERR_LIB_BN, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  526|      0|            return NULL;
  527|      0|        }
  528|      0|    }
  529|       |
  530|  7.88k|    rv = int_bn_mod_inverse(in, a, n, ctx, &noinv);
  531|  7.88k|    if (noinv)
  ------------------
  |  Branch (531:9): [True: 0, False: 7.88k]
  ------------------
  532|       |        ERR_raise(ERR_LIB_BN, BN_R_NO_INVERSE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  533|  7.88k|    BN_CTX_free(new_ctx);
  534|  7.88k|    return rv;
  535|  7.88k|}

BN_value_one:
   83|  18.3k|{
   84|  18.3k|    static const BN_ULONG data_one = 1L;
   85|  18.3k|    static const BIGNUM const_one = {
   86|  18.3k|        (BN_ULONG *)&data_one, 1, 1, 0, BN_FLG_STATIC_DATA
  ------------------
  |  |   59|  18.3k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
   87|  18.3k|    };
   88|       |
   89|  18.3k|    return &const_one;
   90|  18.3k|}
BN_num_bits_word:
  102|   278k|{
  103|   278k|    BN_ULONG x, mask;
  ------------------
  |  |   37|   278k|#define BN_ULONG unsigned long
  ------------------
  104|   278k|    int bits = (l != 0);
  105|       |
  106|   278k|#if BN_BITS2 > 32
  107|   278k|    x = l >> 32;
  108|   278k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   93|   278k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  109|   278k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   278k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   278k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  110|   278k|    bits += 32 & mask;
  111|   278k|    l ^= (x ^ l) & mask;
  112|   278k|#endif
  113|       |
  114|   278k|    x = l >> 16;
  115|   278k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   93|   278k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  116|   278k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   278k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   278k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  117|   278k|    bits += 16 & mask;
  118|   278k|    l ^= (x ^ l) & mask;
  119|       |
  120|   278k|    x = l >> 8;
  121|   278k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   93|   278k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  122|   278k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   278k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   278k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  123|   278k|    bits += 8 & mask;
  124|   278k|    l ^= (x ^ l) & mask;
  125|       |
  126|   278k|    x = l >> 4;
  127|   278k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   93|   278k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  128|   278k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   278k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   278k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  129|   278k|    bits += 4 & mask;
  130|   278k|    l ^= (x ^ l) & mask;
  131|       |
  132|   278k|    x = l >> 2;
  133|   278k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   93|   278k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  134|   278k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   278k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   278k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  135|   278k|    bits += 2 & mask;
  136|   278k|    l ^= (x ^ l) & mask;
  137|       |
  138|   278k|    x = l >> 1;
  139|   278k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   93|   278k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  140|   278k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   278k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   278k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  141|   278k|    bits += 1 & mask;
  142|       |
  143|   278k|    return bits;
  144|   278k|}
BN_num_bits:
  179|   176k|{
  180|   176k|    int i = a->top - 1;
  181|   176k|    bn_check_top(a);
  182|       |
  183|   176k|    if (a->flags & BN_FLG_CONSTTIME) {
  ------------------
  |  |   67|   176k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (183:9): [True: 0, False: 176k]
  ------------------
  184|       |        /*
  185|       |         * We assume that BIGNUMs flagged as CONSTTIME have also been expanded
  186|       |         * so that a->dmax is not leaking secret information.
  187|       |         *
  188|       |         * In other words, it's the caller's responsibility to ensure `a` has
  189|       |         * been preallocated in advance to a public length if we hit this
  190|       |         * branch.
  191|       |         *
  192|       |         */
  193|      0|        return bn_num_bits_consttime(a);
  194|      0|    }
  195|       |
  196|   176k|    if (ossl_unlikely(BN_is_zero(a)))
  ------------------
  |  |   23|   176k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 176k]
  |  |  ------------------
  ------------------
  197|      0|        return 0;
  198|       |
  199|   176k|    return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
  ------------------
  |  |   54|   176k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   176k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  200|   176k|}
BN_clear_free:
  213|   413k|{
  214|   413k|    if (a == NULL)
  ------------------
  |  Branch (214:9): [True: 148k, False: 264k]
  ------------------
  215|   148k|        return;
  216|   264k|    if (a->d != NULL && !BN_get_flags(a, BN_FLG_STATIC_DATA))
  ------------------
  |  |   59|   245k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
  |  Branch (216:9): [True: 245k, False: 19.2k]
  |  Branch (216:25): [True: 245k, False: 0]
  ------------------
  217|   245k|        bn_free_d(a, 1);
  218|   264k|    if (BN_get_flags(a, BN_FLG_MALLOCED)) {
  ------------------
  |  |   58|   264k|#define BN_FLG_MALLOCED 0x01
  ------------------
  |  Branch (218:9): [True: 0, False: 264k]
  ------------------
  219|      0|        OPENSSL_cleanse(a, sizeof(*a));
  220|      0|        OPENSSL_free(a);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  221|      0|    }
  222|   264k|}
BN_free:
  225|   305k|{
  226|   305k|    if (a == NULL)
  ------------------
  |  Branch (226:9): [True: 12.5k, False: 293k]
  ------------------
  227|  12.5k|        return;
  228|   293k|    if (!BN_get_flags(a, BN_FLG_STATIC_DATA))
  ------------------
  |  |   59|   293k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
  |  Branch (228:9): [True: 293k, False: 0]
  ------------------
  229|   293k|        bn_free_d(a, 0);
  230|   293k|    if (a->flags & BN_FLG_MALLOCED)
  ------------------
  |  |   58|   293k|#define BN_FLG_MALLOCED 0x01
  ------------------
  |  Branch (230:9): [True: 293k, False: 0]
  ------------------
  231|   293k|        OPENSSL_free(a);
  ------------------
  |  |  131|   293k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  232|   293k|}
bn_init:
  235|   472k|{
  236|   472k|    static BIGNUM nilbn;
  237|       |
  238|   472k|    *a = nilbn;
  239|   472k|    bn_check_top(a);
  240|   472k|}
BN_new:
  243|   293k|{
  244|   293k|    BIGNUM *ret;
  245|       |
  246|   293k|    if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  108|   293k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (246:9): [True: 0, False: 293k]
  ------------------
  247|      0|        return NULL;
  248|   293k|    ret->flags = BN_FLG_MALLOCED;
  ------------------
  |  |   58|   293k|#define BN_FLG_MALLOCED 0x01
  ------------------
  249|   293k|    bn_check_top(ret);
  250|   293k|    return ret;
  251|   293k|}
bn_expand2:
  299|   675k|{
  300|   675k|    if (ossl_likely(words > b->dmax)) {
  ------------------
  |  |   22|   675k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 675k, False: 0]
  |  |  ------------------
  ------------------
  301|   675k|        BN_ULONG *a = bn_expand_internal(b, words);
  ------------------
  |  |   37|   675k|#define BN_ULONG unsigned long
  ------------------
  302|       |
  303|   675k|        if (ossl_unlikely(!a))
  ------------------
  |  |   23|   675k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 675k]
  |  |  ------------------
  ------------------
  304|      0|            return NULL;
  305|   675k|        if (b->d != NULL)
  ------------------
  |  Branch (305:13): [True: 136k, False: 538k]
  ------------------
  306|   136k|            bn_free_d(b, 1);
  307|   675k|        b->d = a;
  308|   675k|        b->dmax = words;
  309|   675k|    }
  310|       |
  311|   675k|    return b;
  312|   675k|}
BN_dup:
  315|    876|{
  316|    876|    BIGNUM *t;
  317|       |
  318|    876|    if (a == NULL)
  ------------------
  |  Branch (318:9): [True: 0, False: 876]
  ------------------
  319|      0|        return NULL;
  320|    876|    bn_check_top(a);
  321|       |
  322|    876|    t = BN_get_flags(a, BN_FLG_SECURE) ? BN_secure_new() : BN_new();
  ------------------
  |  |   68|    876|#define BN_FLG_SECURE 0x08
  ------------------
  |  Branch (322:9): [True: 0, False: 876]
  ------------------
  323|    876|    if (t == NULL)
  ------------------
  |  Branch (323:9): [True: 0, False: 876]
  ------------------
  324|      0|        return NULL;
  325|    876|    if (!BN_copy(t, a)) {
  ------------------
  |  Branch (325:9): [True: 0, False: 876]
  ------------------
  326|      0|        BN_free(t);
  327|      0|        return NULL;
  328|      0|    }
  329|    876|    bn_check_top(t);
  330|    876|    return t;
  331|    876|}
BN_copy:
  334|   303k|{
  335|   303k|    int bn_words;
  336|       |
  337|   303k|    bn_check_top(b);
  338|       |
  339|   303k|    bn_words = BN_get_flags(b, BN_FLG_CONSTTIME) ? b->dmax : b->top;
  ------------------
  |  |   67|   303k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (339:16): [True: 0, False: 303k]
  ------------------
  340|       |
  341|   303k|    if (ossl_unlikely(a == b))
  ------------------
  |  |   23|   303k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 303k]
  |  |  ------------------
  ------------------
  342|      0|        return a;
  343|   303k|    if (ossl_unlikely(bn_wexpand(a, bn_words) == NULL))
  ------------------
  |  |   23|   303k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 303k]
  |  |  ------------------
  ------------------
  344|      0|        return NULL;
  345|       |
  346|   303k|    if (ossl_likely(b->top > 0))
  ------------------
  |  |   22|   303k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 294k, False: 9.63k]
  |  |  ------------------
  ------------------
  347|   294k|        memcpy(a->d, b->d, sizeof(b->d[0]) * bn_words);
  348|       |
  349|   303k|    a->neg = b->neg;
  350|   303k|    a->top = b->top;
  351|   303k|    a->flags |= b->flags & BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|   303k|#define BN_FLG_FIXED_TOP 0
  ------------------
  352|   303k|    bn_check_top(a);
  353|   303k|    return a;
  354|   303k|}
BN_set_word:
  415|  17.5k|{
  416|  17.5k|    bn_check_top(a);
  417|  17.5k|    if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
  ------------------
  |  Branch (417:9): [True: 0, False: 17.5k]
  ------------------
  418|      0|        return 0;
  419|  17.5k|    a->neg = 0;
  420|  17.5k|    a->d[0] = w;
  421|  17.5k|    a->top = (w ? 1 : 0);
  ------------------
  |  Branch (421:15): [True: 17.5k, False: 0]
  ------------------
  422|  17.5k|    a->flags &= ~BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|  17.5k|#define BN_FLG_FIXED_TOP 0
  ------------------
  423|  17.5k|    bn_check_top(a);
  424|  17.5k|    return 1;
  425|  17.5k|}
BN_bin2bn:
  535|   141k|{
  536|   141k|    return bin2bn(s, len, ret, BIG, UNSIGNED);
  537|   141k|}
BN_ucmp:
  707|   657k|{
  708|   657k|    int i;
  709|   657k|    BN_ULONG t1, t2, *ap, *bp;
  ------------------
  |  |   37|   657k|#define BN_ULONG unsigned long
  ------------------
  710|       |
  711|   657k|    ap = a->d;
  712|   657k|    bp = b->d;
  713|       |
  714|   657k|    if (BN_get_flags(a, BN_FLG_CONSTTIME)
  ------------------
  |  |   67|   657k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (714:9): [True: 0, False: 657k]
  ------------------
  715|      0|        && a->top == b->top) {
  ------------------
  |  Branch (715:12): [True: 0, False: 0]
  ------------------
  716|      0|        int res = 0;
  717|       |
  718|      0|        for (i = 0; i < b->top; i++) {
  ------------------
  |  Branch (718:21): [True: 0, False: 0]
  ------------------
  719|      0|            res = constant_time_select_int((int)constant_time_lt_bn(ap[i], bp[i]),
  720|      0|                -1, res);
  721|      0|            res = constant_time_select_int((int)constant_time_lt_bn(bp[i], ap[i]),
  722|      0|                1, res);
  723|      0|        }
  724|      0|        return res;
  725|      0|    }
  726|       |
  727|   657k|    bn_check_top(a);
  728|   657k|    bn_check_top(b);
  729|       |
  730|   657k|    i = a->top - b->top;
  731|   657k|    if (i != 0)
  ------------------
  |  Branch (731:9): [True: 63.0k, False: 594k]
  ------------------
  732|  63.0k|        return i;
  733|       |
  734|   704k|    for (i = a->top - 1; i >= 0; i--) {
  ------------------
  |  Branch (734:26): [True: 678k, False: 25.4k]
  ------------------
  735|   678k|        t1 = ap[i];
  736|   678k|        t2 = bp[i];
  737|   678k|        if (t1 != t2)
  ------------------
  |  Branch (737:13): [True: 569k, False: 109k]
  ------------------
  738|   569k|            return ((t1 > t2) ? 1 : -1);
  ------------------
  |  Branch (738:21): [True: 244k, False: 324k]
  ------------------
  739|   678k|    }
  740|  25.4k|    return 0;
  741|   594k|}
BN_cmp:
  744|  32.4k|{
  745|  32.4k|    int i;
  746|  32.4k|    int gt, lt;
  747|  32.4k|    BN_ULONG t1, t2;
  ------------------
  |  |   37|  32.4k|#define BN_ULONG unsigned long
  ------------------
  748|       |
  749|  32.4k|    if ((a == NULL) || (b == NULL)) {
  ------------------
  |  Branch (749:9): [True: 0, False: 32.4k]
  |  Branch (749:24): [True: 0, False: 32.4k]
  ------------------
  750|      0|        if (a != NULL)
  ------------------
  |  Branch (750:13): [True: 0, False: 0]
  ------------------
  751|      0|            return -1;
  752|      0|        else if (b != NULL)
  ------------------
  |  Branch (752:18): [True: 0, False: 0]
  ------------------
  753|      0|            return 1;
  754|      0|        else
  755|      0|            return 0;
  756|      0|    }
  757|       |
  758|  32.4k|    bn_check_top(a);
  759|  32.4k|    bn_check_top(b);
  760|       |
  761|  32.4k|    if (a->neg != b->neg) {
  ------------------
  |  Branch (761:9): [True: 0, False: 32.4k]
  ------------------
  762|      0|        if (a->neg)
  ------------------
  |  Branch (762:13): [True: 0, False: 0]
  ------------------
  763|      0|            return -1;
  764|      0|        else
  765|      0|            return 1;
  766|      0|    }
  767|  32.4k|    if (a->neg == 0) {
  ------------------
  |  Branch (767:9): [True: 32.4k, False: 0]
  ------------------
  768|  32.4k|        gt = 1;
  769|  32.4k|        lt = -1;
  770|  32.4k|    } else {
  771|      0|        gt = -1;
  772|      0|        lt = 1;
  773|      0|    }
  774|       |
  775|  32.4k|    if (a->top > b->top)
  ------------------
  |  Branch (775:9): [True: 0, False: 32.4k]
  ------------------
  776|      0|        return gt;
  777|  32.4k|    if (a->top < b->top)
  ------------------
  |  Branch (777:9): [True: 0, False: 32.4k]
  ------------------
  778|      0|        return lt;
  779|   225k|    for (i = a->top - 1; i >= 0; i--) {
  ------------------
  |  Branch (779:26): [True: 192k, False: 32.4k]
  ------------------
  780|   192k|        t1 = a->d[i];
  781|   192k|        t2 = b->d[i];
  782|   192k|        if (t1 > t2)
  ------------------
  |  Branch (782:13): [True: 0, False: 192k]
  ------------------
  783|      0|            return gt;
  784|   192k|        if (t1 < t2)
  ------------------
  |  Branch (784:13): [True: 0, False: 192k]
  ------------------
  785|      0|            return lt;
  786|   192k|    }
  787|  32.4k|    return 0;
  788|  32.4k|}
BN_set_bit:
  791|  15.7k|{
  792|  15.7k|    int i, j, k;
  793|       |
  794|  15.7k|    if (n < 0)
  ------------------
  |  Branch (794:9): [True: 0, False: 15.7k]
  ------------------
  795|      0|        return 0;
  796|       |
  797|  15.7k|    i = n / BN_BITS2;
  ------------------
  |  |   54|  15.7k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  15.7k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  798|  15.7k|    j = n % BN_BITS2;
  ------------------
  |  |   54|  15.7k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  15.7k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  799|  15.7k|    if (a->top <= i) {
  ------------------
  |  Branch (799:9): [True: 15.7k, False: 0]
  ------------------
  800|  15.7k|        if (bn_wexpand(a, i + 1) == NULL)
  ------------------
  |  Branch (800:13): [True: 0, False: 15.7k]
  ------------------
  801|      0|            return 0;
  802|   134k|        for (k = a->top; k < i + 1; k++)
  ------------------
  |  Branch (802:26): [True: 118k, False: 15.7k]
  ------------------
  803|   118k|            a->d[k] = 0;
  804|  15.7k|        a->top = i + 1;
  805|  15.7k|        a->flags &= ~BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|  15.7k|#define BN_FLG_FIXED_TOP 0
  ------------------
  806|  15.7k|    }
  807|       |
  808|  15.7k|    a->d[i] |= (((BN_ULONG)1) << j);
  809|  15.7k|    bn_check_top(a);
  810|  15.7k|    return 1;
  811|  15.7k|}
BN_is_bit_set:
  832|  1.50M|{
  833|  1.50M|    int i, j;
  834|       |
  835|  1.50M|    bn_check_top(a);
  836|  1.50M|    if (ossl_unlikely(n < 0))
  ------------------
  |  |   23|  1.50M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.50M]
  |  |  ------------------
  ------------------
  837|      0|        return 0;
  838|  1.50M|    i = n / BN_BITS2;
  ------------------
  |  |   54|  1.50M|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  1.50M|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  839|  1.50M|    j = n % BN_BITS2;
  ------------------
  |  |   54|  1.50M|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  1.50M|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  840|  1.50M|    if (ossl_unlikely(a->top <= i))
  ------------------
  |  |   23|  1.50M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.50M]
  |  |  ------------------
  ------------------
  841|      0|        return 0;
  842|  1.50M|    return (int)(((a->d[i]) >> j) & ((BN_ULONG)1));
  843|  1.50M|}
BN_set_negative:
  878|  8.76k|{
  879|  8.76k|    if (b && !BN_is_zero(a))
  ------------------
  |  Branch (879:9): [True: 0, False: 8.76k]
  |  Branch (879:14): [True: 0, False: 0]
  ------------------
  880|      0|        a->neg = 1;
  881|  8.76k|    else
  882|  8.76k|        a->neg = 0;
  883|  8.76k|}
BN_zero_ex:
 1024|   653k|{
 1025|   653k|    a->neg = 0;
 1026|   653k|    a->top = 0;
 1027|   653k|    a->flags &= ~BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|   653k|#define BN_FLG_FIXED_TOP 0
  ------------------
 1028|   653k|}
BN_abs_is_word:
 1031|  41.1k|{
 1032|  41.1k|    return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
  ------------------
  |  Branch (1032:13): [True: 41.1k, False: 0]
  |  Branch (1032:30): [True: 25.4k, False: 15.7k]
  |  Branch (1032:50): [True: 0, False: 15.7k]
  |  Branch (1032:62): [True: 0, False: 0]
  ------------------
 1033|  41.1k|}
BN_is_zero:
 1036|  1.36M|{
 1037|  1.36M|    return a->top == 0;
 1038|  1.36M|}
BN_is_one:
 1041|  33.2k|{
 1042|  33.2k|    return BN_abs_is_word(a, 1) && !a->neg;
  ------------------
  |  Branch (1042:12): [True: 25.4k, False: 7.88k]
  |  Branch (1042:36): [True: 25.4k, False: 0]
  ------------------
 1043|  33.2k|}
BN_is_odd:
 1067|   521k|{
 1068|   521k|    return (a->top > 0) && (a->d[0] & 1);
  ------------------
  |  Branch (1068:12): [True: 521k, False: 0]
  |  Branch (1068:28): [True: 268k, False: 252k]
  ------------------
 1069|   521k|}
BN_is_negative:
 1072|  88.4k|{
 1073|  88.4k|    return (a->neg != 0);
 1074|  88.4k|}
BN_to_montgomery:
 1078|  6.13k|{
 1079|  6.13k|    return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
 1080|  6.13k|}
BN_get_flags:
 1116|  3.82M|{
 1117|  3.82M|    return b->flags & n;
 1118|  3.82M|}
bn_wexpand:
 1146|  2.25M|{
 1147|  2.25M|    return (words <= a->dmax) ? a : bn_expand2(a, words);
  ------------------
  |  Branch (1147:12): [True: 1.58M, False: 666k]
  ------------------
 1148|  2.25M|}
bn_correct_top:
 1173|   889k|{
 1174|   889k|    BN_ULONG *ftl;
  ------------------
  |  |   37|   889k|#define BN_ULONG unsigned long
  ------------------
 1175|   889k|    int tmp_top = a->top;
 1176|       |
 1177|   889k|    if (ossl_likely(tmp_top > 0)) {
  ------------------
  |  |   22|   889k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 889k, False: 0]
  |  |  ------------------
  ------------------
 1178|   989k|        for (ftl = &(a->d[tmp_top]); tmp_top > 0; tmp_top--) {
  ------------------
  |  Branch (1178:38): [True: 989k, False: 0]
  ------------------
 1179|   989k|            ftl--;
 1180|   989k|            if (*ftl != 0)
  ------------------
  |  Branch (1180:17): [True: 889k, False: 99.8k]
  ------------------
 1181|   889k|                break;
 1182|   989k|        }
 1183|   889k|        a->top = tmp_top;
 1184|   889k|    }
 1185|   889k|    if (a->top == 0)
  ------------------
  |  Branch (1185:9): [True: 0, False: 889k]
  ------------------
 1186|      0|        a->neg = 0;
 1187|   889k|    a->flags &= ~BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|   889k|#define BN_FLG_FIXED_TOP 0
  ------------------
 1188|   889k|    bn_pollute(a);
 1189|   889k|}
bn_lib.c:bn_free_d:
  203|   675k|{
  204|   675k|    if (BN_get_flags(a, BN_FLG_SECURE))
  ------------------
  |  |   68|   675k|#define BN_FLG_SECURE 0x08
  ------------------
  |  Branch (204:9): [True: 0, False: 675k]
  ------------------
  205|      0|        OPENSSL_secure_clear_free(a->d, a->dmax * sizeof(a->d[0]));
  ------------------
  |  |  149|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  206|   675k|    else if (clear != 0)
  ------------------
  |  Branch (206:14): [True: 381k, False: 293k]
  ------------------
  207|   381k|        OPENSSL_clear_free(a->d, a->dmax * sizeof(a->d[0]));
  ------------------
  |  |  129|   381k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  208|   293k|    else
  209|   293k|        OPENSSL_free(a->d);
  ------------------
  |  |  131|   293k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  210|   675k|}
bn_lib.c:bn_expand_internal:
  265|   675k|{
  266|   675k|    BN_ULONG *a = NULL;
  ------------------
  |  |   37|   675k|#define BN_ULONG unsigned long
  ------------------
  267|       |
  268|   675k|    if (ossl_unlikely(words > (INT_MAX / (4 * BN_BITS2)))) {
  ------------------
  |  |   23|   675k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 675k]
  |  |  ------------------
  ------------------
  269|      0|        ERR_raise(ERR_LIB_BN, BN_R_BIGNUM_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  270|      0|        return NULL;
  271|      0|    }
  272|   675k|    if (ossl_unlikely(BN_get_flags(b, BN_FLG_STATIC_DATA))) {
  ------------------
  |  |   23|   675k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 675k]
  |  |  ------------------
  ------------------
  273|      0|        ERR_raise(ERR_LIB_BN, BN_R_EXPAND_ON_STATIC_BIGNUM_DATA);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  274|      0|        return NULL;
  275|      0|    }
  276|   675k|    if (BN_get_flags(b, BN_FLG_SECURE))
  ------------------
  |  |   68|   675k|#define BN_FLG_SECURE 0x08
  ------------------
  |  Branch (276:9): [True: 0, False: 675k]
  ------------------
  277|      0|        a = OPENSSL_secure_calloc(words, sizeof(*a));
  ------------------
  |  |  145|      0|    CRYPTO_secure_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  278|   675k|    else
  279|   675k|        a = OPENSSL_calloc(words, sizeof(*a));
  ------------------
  |  |  112|   675k|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  280|   675k|    if (ossl_unlikely(a == NULL))
  ------------------
  |  |   23|   675k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 675k]
  |  |  ------------------
  ------------------
  281|      0|        return NULL;
  282|       |
  283|   675k|    assert(b->top <= words);
  ------------------
  |  Branch (283:5): [True: 0, False: 675k]
  |  Branch (283:5): [True: 675k, False: 0]
  ------------------
  284|   675k|    if (b->top > 0)
  ------------------
  |  Branch (284:9): [True: 32.4k, False: 642k]
  ------------------
  285|  32.4k|        memcpy(a, b->d, sizeof(*a) * b->top);
  286|       |
  287|   675k|    return a;
  288|   675k|}
bn_lib.c:bin2bn:
  434|   141k|{
  435|   141k|    int inc;
  436|   141k|    const unsigned char *s2;
  437|   141k|    int inc2;
  438|   141k|    int neg = 0, xor = 0, carry = 0;
  439|   141k|    unsigned int i;
  440|   141k|    unsigned int n;
  441|   141k|    BIGNUM *bn = NULL;
  442|       |
  443|       |    /* Negative length is not acceptable */
  444|   141k|    if (len < 0)
  ------------------
  |  Branch (444:9): [True: 0, False: 141k]
  ------------------
  445|      0|        return NULL;
  446|       |
  447|   141k|    if (ret == NULL)
  ------------------
  |  Branch (447:9): [True: 52.5k, False: 89.3k]
  ------------------
  448|  52.5k|        ret = bn = BN_new();
  449|   141k|    if (ret == NULL)
  ------------------
  |  Branch (449:9): [True: 0, False: 141k]
  ------------------
  450|      0|        return NULL;
  451|   141k|    bn_check_top(ret);
  452|       |
  453|       |    /*
  454|       |     * If the input has no bits, the number is considered zero.
  455|       |     * This makes calls with s==NULL and len==0 safe.
  456|       |     */
  457|   141k|    if (len == 0) {
  ------------------
  |  Branch (457:9): [True: 0, False: 141k]
  ------------------
  458|      0|        BN_clear(ret);
  459|      0|        return ret;
  460|      0|    }
  461|       |
  462|       |    /*
  463|       |     * The loop that does the work iterates from least to most
  464|       |     * significant BIGNUM chunk, so we adapt parameters to transfer
  465|       |     * input bytes accordingly.
  466|       |     */
  467|   141k|    if (endianness == LITTLE) {
  ------------------
  |  Branch (467:9): [True: 0, False: 141k]
  ------------------
  468|      0|        s2 = s + len - 1;
  469|      0|        inc2 = -1;
  470|      0|        inc = 1;
  471|   141k|    } else {
  472|   141k|        s2 = s;
  473|   141k|        inc2 = 1;
  474|   141k|        inc = -1;
  475|   141k|        s += len - 1;
  476|   141k|    }
  477|       |
  478|       |    /* Take note of the signedness of the input bytes*/
  479|   141k|    if (signedness == SIGNED) {
  ------------------
  |  Branch (479:9): [True: 0, False: 141k]
  ------------------
  480|      0|        neg = !!(*s2 & 0x80);
  481|      0|        xor = neg ? 0xff : 0x00;
  ------------------
  |  Branch (481:15): [True: 0, False: 0]
  ------------------
  482|      0|        carry = neg;
  483|      0|    }
  484|       |
  485|       |    /*
  486|       |     * Skip leading sign extensions (the value of |xor|).
  487|       |     * This is the only spot where |s2| and |inc2| are used.
  488|       |     */
  489|   167k|    for (; len > 0 && *s2 == xor; s2 += inc2, len--)
  ------------------
  |  Branch (489:12): [True: 167k, False: 0]
  |  Branch (489:23): [True: 26.0k, False: 141k]
  ------------------
  490|  26.0k|        continue;
  491|       |
  492|       |    /*
  493|       |     * If there was a set of 0xff, we backtrack one byte unless the next
  494|       |     * one has a sign bit, as the last 0xff is then part of the actual
  495|       |     * number, rather then a mere sign extension.
  496|       |     */
  497|   141k|    if (xor == 0xff) {
  ------------------
  |  Branch (497:9): [True: 0, False: 141k]
  ------------------
  498|      0|        if (len == 0 || !(*s2 & 0x80))
  ------------------
  |  Branch (498:13): [True: 0, False: 0]
  |  Branch (498:25): [True: 0, False: 0]
  ------------------
  499|      0|            len++;
  500|      0|    }
  501|       |    /* If it was all zeros, we're done */
  502|   141k|    if (len == 0) {
  ------------------
  |  Branch (502:9): [True: 0, False: 141k]
  ------------------
  503|      0|        ret->top = 0;
  504|      0|        return ret;
  505|      0|    }
  506|   141k|    n = ((len - 1) / BN_BYTES) + 1; /* Number of resulting bignum chunks */
  ------------------
  |  |   38|   141k|#define BN_BYTES 8
  ------------------
  507|   141k|    if (bn_wexpand(ret, (int)n) == NULL) {
  ------------------
  |  Branch (507:9): [True: 0, False: 141k]
  ------------------
  508|      0|        BN_free(bn);
  509|      0|        return NULL;
  510|      0|    }
  511|   141k|    ret->top = n;
  512|   141k|    ret->neg = neg;
  513|  1.90M|    for (i = 0; n-- > 0; i++) {
  ------------------
  |  Branch (513:17): [True: 1.76M, False: 141k]
  ------------------
  514|  1.76M|        BN_ULONG l = 0; /* Accumulator */
  ------------------
  |  |   37|  1.76M|#define BN_ULONG unsigned long
  ------------------
  515|  1.76M|        unsigned int m = 0; /* Offset in a bignum chunk, in bits */
  516|       |
  517|  15.7M|        for (; len > 0 && m < BN_BYTES * 8; len--, s += inc, m += 8) {
  ------------------
  |  |   38|  15.6M|#define BN_BYTES 8
  ------------------
  |  Branch (517:16): [True: 15.6M, False: 141k]
  |  Branch (517:27): [True: 13.9M, False: 1.62M]
  ------------------
  518|  13.9M|            BN_ULONG byte_xored = *s ^ xor;
  ------------------
  |  |   37|  13.9M|#define BN_ULONG unsigned long
  ------------------
  519|  13.9M|            BN_ULONG byte = (byte_xored + carry) & 0xff;
  ------------------
  |  |   37|  13.9M|#define BN_ULONG unsigned long
  ------------------
  520|       |
  521|  13.9M|            carry = byte_xored > byte; /* Implicit 1 or 0 */
  522|  13.9M|            l |= (byte << m);
  523|  13.9M|        }
  524|  1.76M|        ret->d[i] = l;
  525|  1.76M|    }
  526|       |    /*
  527|       |     * need to call this due to clear byte at top if avoiding having the top
  528|       |     * bit set (-ve number)
  529|       |     */
  530|   141k|    bn_correct_top(ret);
  531|   141k|    return ret;
  532|   141k|}

bn_lib.c:bn_expand:
  680|  17.5k|{
  681|  17.5k|    if (bits > (INT_MAX - BN_BITS2 + 1))
  ------------------
  |  |   54|  17.5k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  17.5k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (681:9): [True: 0, False: 17.5k]
  ------------------
  682|      0|        return NULL;
  683|       |
  684|  17.5k|    if (((bits + BN_BITS2 - 1) / BN_BITS2) <= (a)->dmax)
  ------------------
  |  |   54|  17.5k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  17.5k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
                  if (((bits + BN_BITS2 - 1) / BN_BITS2) <= (a)->dmax)
  ------------------
  |  |   54|  17.5k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  17.5k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (684:9): [True: 8.76k, False: 8.76k]
  ------------------
  685|  8.76k|        return a;
  686|       |
  687|  8.76k|    return bn_expand2((a), (bits + BN_BITS2 - 1) / BN_BITS2);
  ------------------
  |  |   54|  8.76k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  8.76k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
                  return bn_expand2((a), (bits + BN_BITS2 - 1) / BN_BITS2);
  ------------------
  |  |   54|  8.76k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  8.76k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  688|  17.5k|}

BN_nnmod:
   15|  85.8k|{
   16|       |    /*
   17|       |     * like BN_mod, but returns non-negative remainder (i.e., 0 <= r < |d|
   18|       |     * always holds)
   19|       |     */
   20|       |
   21|  85.8k|    if (r == d) {
  ------------------
  |  Branch (21:9): [True: 0, False: 85.8k]
  ------------------
   22|      0|        ERR_raise(ERR_LIB_BN, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   23|      0|        return 0;
   24|      0|    }
   25|       |
   26|  85.8k|    if (!(BN_mod(r, m, d, ctx)))
  ------------------
  |  |  276|  85.8k|#define BN_mod(rem, m, d, ctx) BN_div(NULL, (rem), (m), (d), (ctx))
  ------------------
  |  Branch (26:9): [True: 0, False: 85.8k]
  ------------------
   27|      0|        return 0;
   28|  85.8k|    if (!r->neg)
  ------------------
  |  Branch (28:9): [True: 77.9k, False: 7.88k]
  ------------------
   29|  77.9k|        return 1;
   30|       |    /* now   -|d| < r < 0,  so we have to set  r := r + |d| */
   31|  7.88k|    return (d->neg ? BN_sub : BN_add)(r, r, d);
  ------------------
  |  Branch (31:13): [True: 0, False: 7.88k]
  ------------------
   32|  85.8k|}
bn_mod_add_fixed_top:
   56|  35.0k|{
   57|  35.0k|    size_t i, ai, bi, mtop = m->top;
   58|  35.0k|    BN_ULONG storage[1024 / BN_BITS2];
  ------------------
  |  |   37|  35.0k|#define BN_ULONG unsigned long
  ------------------
   59|  35.0k|    BN_ULONG carry, temp, mask, *rp, *tp = storage;
  ------------------
  |  |   37|  35.0k|#define BN_ULONG unsigned long
  ------------------
   60|  35.0k|    const BN_ULONG *ap, *bp;
   61|       |
   62|  35.0k|    if (bn_wexpand(r, (int)mtop) == NULL)
  ------------------
  |  Branch (62:9): [True: 0, False: 35.0k]
  ------------------
   63|      0|        return 0;
   64|       |
   65|  35.0k|    if (mtop > OSSL_NELEM(storage)) {
  ------------------
  |  |   14|  35.0k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (65:9): [True: 0, False: 35.0k]
  ------------------
   66|      0|        tp = OPENSSL_malloc_array(mtop, sizeof(BN_ULONG));
  ------------------
  |  |  110|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   67|      0|        if (tp == NULL)
  ------------------
  |  Branch (67:13): [True: 0, False: 0]
  ------------------
   68|      0|            return 0;
   69|      0|    }
   70|       |
   71|  35.0k|    ap = a->d != NULL ? a->d : tp;
  ------------------
  |  Branch (71:10): [True: 35.0k, False: 0]
  ------------------
   72|  35.0k|    bp = b->d != NULL ? b->d : tp;
  ------------------
  |  Branch (72:10): [True: 35.0k, False: 0]
  ------------------
   73|       |
   74|   238k|    for (i = 0, ai = 0, bi = 0, carry = 0; i < mtop;) {
  ------------------
  |  Branch (74:44): [True: 203k, False: 35.0k]
  ------------------
   75|   203k|        mask = (BN_ULONG)0 - ((i - a->top) >> (8 * sizeof(i) - 1));
   76|   203k|        temp = ((ap[ai] & mask) + carry) & BN_MASK2;
  ------------------
  |  |   93|   203k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
   77|   203k|        carry = (temp < carry);
   78|       |
   79|   203k|        mask = (BN_ULONG)0 - ((i - b->top) >> (8 * sizeof(i) - 1));
   80|   203k|        tp[i] = ((bp[bi] & mask) + temp) & BN_MASK2;
  ------------------
  |  |   93|   203k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
   81|   203k|        carry += (tp[i] < temp);
   82|       |
   83|   203k|        i++;
   84|   203k|        ai += (i - a->dmax) >> (8 * sizeof(i) - 1);
   85|   203k|        bi += (i - b->dmax) >> (8 * sizeof(i) - 1);
   86|   203k|    }
   87|  35.0k|    rp = r->d;
   88|  35.0k|    carry -= bn_sub_words(rp, tp, m->d, (int)mtop);
   89|   238k|    for (i = 0; i < mtop; i++) {
  ------------------
  |  Branch (89:17): [True: 203k, False: 35.0k]
  ------------------
   90|   203k|        rp[i] = (carry & tp[i]) | (~carry & rp[i]);
   91|   203k|        ((volatile BN_ULONG *)tp)[i] = 0;
   92|   203k|    }
   93|  35.0k|    r->top = (int)mtop;
   94|  35.0k|    r->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|  35.0k|#define BN_FLG_FIXED_TOP 0
  ------------------
   95|  35.0k|    r->neg = 0;
   96|       |
   97|  35.0k|    if (tp != storage)
  ------------------
  |  Branch (97:9): [True: 0, False: 35.0k]
  ------------------
   98|      0|        OPENSSL_free(tp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   99|       |
  100|  35.0k|    return 1;
  101|  35.0k|}
BN_mod_add_quick:
  105|  35.0k|{
  106|  35.0k|    int ret = bn_mod_add_fixed_top(r, a, b, m);
  107|       |
  108|  35.0k|    if (ret)
  ------------------
  |  Branch (108:9): [True: 35.0k, False: 0]
  ------------------
  109|  35.0k|        bn_correct_top(r);
  110|       |
  111|  35.0k|    return ret;
  112|  35.0k|}

BN_mod_mul_montgomery:
   27|  11.3k|{
   28|  11.3k|    int ret = bn_mul_mont_fixed_top(r, a, b, mont, ctx);
   29|       |
   30|  11.3k|    bn_correct_top(r);
   31|  11.3k|    bn_check_top(r);
   32|       |
   33|  11.3k|    return ret;
   34|  11.3k|}
bn_mul_mont_fixed_top:
   38|  11.3k|{
   39|  11.3k|    BIGNUM *tmp;
   40|  11.3k|    int ret = 0;
   41|  11.3k|    int num = mont->N.top;
   42|       |
   43|  11.3k|#if defined(OPENSSL_BN_ASM_MONT) && defined(MONT_WORD)
   44|  11.3k|    if (num > 1 && num <= BN_SOFT_LIMIT && a->top == num && b->top == num) {
  ------------------
  |  |   62|  22.7k|#define BN_SOFT_LIMIT (4096 / BN_BYTES)
  |  |  ------------------
  |  |  |  |   38|  11.3k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (44:9): [True: 11.3k, False: 0]
  |  Branch (44:20): [True: 11.3k, False: 0]
  |  Branch (44:44): [True: 10.5k, False: 876]
  |  Branch (44:61): [True: 10.5k, False: 0]
  ------------------
   45|  10.5k|        if (bn_wexpand(r, num) == NULL)
  ------------------
  |  Branch (45:13): [True: 0, False: 10.5k]
  ------------------
   46|      0|            return 0;
   47|  10.5k|        if (bn_mul_mont(r->d, a->d, b->d, mont->N.d, mont->n0, num)) {
  ------------------
  |  Branch (47:13): [True: 10.5k, False: 0]
  ------------------
   48|  10.5k|            r->neg = a->neg ^ b->neg;
   49|  10.5k|            r->top = num;
   50|  10.5k|            r->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|  10.5k|#define BN_FLG_FIXED_TOP 0
  ------------------
   51|  10.5k|            return 1;
   52|  10.5k|        }
   53|  10.5k|    }
   54|    876|#endif
   55|       |
   56|    876|    if ((a->top + b->top) > 2 * num)
  ------------------
  |  Branch (56:9): [True: 0, False: 876]
  ------------------
   57|      0|        return 0;
   58|       |
   59|    876|    BN_CTX_start(ctx);
   60|    876|    tmp = BN_CTX_get(ctx);
   61|    876|    if (tmp == NULL)
  ------------------
  |  Branch (61:9): [True: 0, False: 876]
  ------------------
   62|      0|        goto err;
   63|       |
   64|    876|    bn_check_top(tmp);
   65|    876|    if (a == b) {
  ------------------
  |  Branch (65:9): [True: 0, False: 876]
  ------------------
   66|      0|        if (!bn_sqr_fixed_top(tmp, a, ctx))
  ------------------
  |  Branch (66:13): [True: 0, False: 0]
  ------------------
   67|      0|            goto err;
   68|    876|    } else {
   69|    876|        if (!bn_mul_fixed_top(tmp, a, b, ctx))
  ------------------
  |  Branch (69:13): [True: 0, False: 876]
  ------------------
   70|      0|            goto err;
   71|    876|    }
   72|       |    /* reduce from aRR to aR */
   73|    876|#ifdef MONT_WORD
   74|    876|    if (!bn_from_montgomery_word(r, tmp, mont))
  ------------------
  |  Branch (74:9): [True: 0, False: 876]
  ------------------
   75|      0|        goto err;
   76|       |#else
   77|       |    if (!BN_from_montgomery(r, tmp, mont, ctx))
   78|       |        goto err;
   79|       |#endif
   80|    876|    ret = 1;
   81|    876|err:
   82|    876|    BN_CTX_end(ctx);
   83|    876|    return ret;
   84|    876|}
BN_MONT_CTX_new:
  228|  19.2k|{
  229|  19.2k|    BN_MONT_CTX *ret;
  230|       |
  231|  19.2k|    if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  106|  19.2k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (231:9): [True: 0, False: 19.2k]
  ------------------
  232|      0|        return NULL;
  233|       |
  234|  19.2k|    BN_MONT_CTX_init(ret);
  235|  19.2k|    ret->flags = BN_FLG_MALLOCED;
  ------------------
  |  |   58|  19.2k|#define BN_FLG_MALLOCED 0x01
  ------------------
  236|  19.2k|    return ret;
  237|  19.2k|}
BN_MONT_CTX_init:
  240|  19.2k|{
  241|  19.2k|    ctx->ri = 0;
  242|  19.2k|    bn_init(&ctx->RR);
  243|  19.2k|    bn_init(&ctx->N);
  244|  19.2k|    bn_init(&ctx->Ni);
  245|  19.2k|    ctx->n0[0] = ctx->n0[1] = 0;
  246|  19.2k|    ctx->flags = 0;
  247|  19.2k|}
BN_MONT_CTX_free:
  250|  99.4k|{
  251|  99.4k|    if (mont == NULL)
  ------------------
  |  Branch (251:9): [True: 80.1k, False: 19.2k]
  ------------------
  252|  80.1k|        return;
  253|  19.2k|    BN_clear_free(&mont->RR);
  254|  19.2k|    BN_clear_free(&mont->N);
  255|  19.2k|    BN_clear_free(&mont->Ni);
  256|  19.2k|    if (mont->flags & BN_FLG_MALLOCED)
  ------------------
  |  |   58|  19.2k|#define BN_FLG_MALLOCED 0x01
  ------------------
  |  Branch (256:9): [True: 19.2k, False: 0]
  ------------------
  257|  19.2k|        OPENSSL_free(mont);
  ------------------
  |  |  131|  19.2k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  258|  19.2k|}
BN_MONT_CTX_set:
  261|  7.88k|{
  262|  7.88k|    int i, ret = 0;
  263|  7.88k|    BIGNUM *Ri, *R;
  264|       |
  265|  7.88k|    if (BN_is_zero(mod))
  ------------------
  |  Branch (265:9): [True: 0, False: 7.88k]
  ------------------
  266|      0|        return 0;
  267|       |
  268|  7.88k|    BN_CTX_start(ctx);
  269|  7.88k|    if ((Ri = BN_CTX_get(ctx)) == NULL)
  ------------------
  |  Branch (269:9): [True: 0, False: 7.88k]
  ------------------
  270|      0|        goto err;
  271|  7.88k|    R = &(mont->RR); /* grab RR as a temp */
  272|  7.88k|    if (!BN_copy(&(mont->N), mod))
  ------------------
  |  Branch (272:9): [True: 0, False: 7.88k]
  ------------------
  273|      0|        goto err; /* Set N */
  274|  7.88k|    if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0)
  ------------------
  |  |   67|  7.88k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (274:9): [True: 0, False: 7.88k]
  ------------------
  275|      0|        BN_set_flags(&(mont->N), BN_FLG_CONSTTIME);
  ------------------
  |  |   67|      0|#define BN_FLG_CONSTTIME 0x04
  ------------------
  276|  7.88k|    mont->N.neg = 0;
  277|       |
  278|  7.88k|#ifdef MONT_WORD
  279|  7.88k|    {
  280|  7.88k|        BIGNUM tmod;
  281|  7.88k|        BN_ULONG buf[2];
  ------------------
  |  |   37|  7.88k|#define BN_ULONG unsigned long
  ------------------
  282|       |
  283|  7.88k|        bn_init(&tmod);
  284|  7.88k|        tmod.d = buf;
  285|  7.88k|        tmod.dmax = 2;
  286|  7.88k|        tmod.neg = 0;
  287|       |
  288|  7.88k|        if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0)
  ------------------
  |  |   67|  7.88k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (288:13): [True: 0, False: 7.88k]
  ------------------
  289|      0|            BN_set_flags(&tmod, BN_FLG_CONSTTIME);
  ------------------
  |  |   67|      0|#define BN_FLG_CONSTTIME 0x04
  ------------------
  290|       |
  291|  7.88k|        mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
  ------------------
  |  |   54|  7.88k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  7.88k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
                      mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
  ------------------
  |  |   54|  7.88k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  7.88k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
                      mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
  ------------------
  |  |   54|  7.88k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  7.88k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  292|       |
  293|       |#if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2 <= 32)
  294|       |        /*
  295|       |         * Only certain BN_BITS2<=32 platforms actually make use of n0[1],
  296|       |         * and we could use the #else case (with a shorter R value) for the
  297|       |         * others.  However, currently only the assembler files do know which
  298|       |         * is which.
  299|       |         */
  300|       |
  301|       |        BN_zero(R);
  302|       |        if (!(BN_set_bit(R, 2 * BN_BITS2)))
  303|       |            goto err;
  304|       |
  305|       |        tmod.top = 0;
  306|       |        if ((buf[0] = mod->d[0]))
  307|       |            tmod.top = 1;
  308|       |        if ((buf[1] = mod->top > 1 ? mod->d[1] : 0))
  309|       |            tmod.top = 2;
  310|       |
  311|       |        if (BN_is_one(&tmod))
  312|       |            BN_zero(Ri);
  313|       |        else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL)
  314|       |            goto err;
  315|       |        if (!BN_lshift(Ri, Ri, 2 * BN_BITS2))
  316|       |            goto err; /* R*Ri */
  317|       |        if (!BN_is_zero(Ri)) {
  318|       |            if (!BN_sub_word(Ri, 1))
  319|       |                goto err;
  320|       |        } else { /* if N mod word size == 1 */
  321|       |
  322|       |            if (bn_expand(Ri, (int)sizeof(BN_ULONG) * 2) == NULL)
  323|       |                goto err;
  324|       |            /* Ri-- (mod double word size) */
  325|       |            Ri->neg = 0;
  326|       |            Ri->d[0] = BN_MASK2;
  327|       |            Ri->d[1] = BN_MASK2;
  328|       |            Ri->top = 2;
  329|       |        }
  330|       |        if (!BN_div(Ri, NULL, Ri, &tmod, ctx))
  331|       |            goto err;
  332|       |        /*
  333|       |         * Ni = (R*Ri-1)/N, keep only couple of least significant words:
  334|       |         */
  335|       |        mont->n0[0] = (Ri->top > 0) ? Ri->d[0] : 0;
  336|       |        mont->n0[1] = (Ri->top > 1) ? Ri->d[1] : 0;
  337|       |#else
  338|  7.88k|        BN_zero(R);
  ------------------
  |  |  201|  7.88k|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  339|  7.88k|        if (!(BN_set_bit(R, BN_BITS2)))
  ------------------
  |  |   54|  7.88k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  7.88k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (339:13): [True: 0, False: 7.88k]
  ------------------
  340|      0|            goto err; /* R */
  341|       |
  342|  7.88k|        buf[0] = mod->d[0]; /* tmod = N mod word size */
  343|  7.88k|        buf[1] = 0;
  344|  7.88k|        tmod.top = buf[0] != 0 ? 1 : 0;
  ------------------
  |  Branch (344:20): [True: 7.88k, False: 0]
  ------------------
  345|       |        /* Ri = R^-1 mod N */
  346|  7.88k|        if (BN_is_one(&tmod))
  ------------------
  |  Branch (346:13): [True: 0, False: 7.88k]
  ------------------
  347|      0|            BN_zero(Ri);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  348|  7.88k|        else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL)
  ------------------
  |  Branch (348:18): [True: 0, False: 7.88k]
  ------------------
  349|      0|            goto err;
  350|  7.88k|        if (!BN_lshift(Ri, Ri, BN_BITS2))
  ------------------
  |  |   54|  7.88k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  7.88k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (350:13): [True: 0, False: 7.88k]
  ------------------
  351|      0|            goto err; /* R*Ri */
  352|  7.88k|        if (!BN_is_zero(Ri)) {
  ------------------
  |  Branch (352:13): [True: 7.88k, False: 0]
  ------------------
  353|  7.88k|            if (!BN_sub_word(Ri, 1))
  ------------------
  |  Branch (353:17): [True: 0, False: 7.88k]
  ------------------
  354|      0|                goto err;
  355|  7.88k|        } else { /* if N mod word size == 1 */
  356|       |
  357|      0|            if (!BN_set_word(Ri, BN_MASK2))
  ------------------
  |  |   93|      0|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  |  Branch (357:17): [True: 0, False: 0]
  ------------------
  358|      0|                goto err; /* Ri-- (mod word size) */
  359|      0|        }
  360|  7.88k|        if (!BN_div(Ri, NULL, Ri, &tmod, ctx))
  ------------------
  |  Branch (360:13): [True: 0, False: 7.88k]
  ------------------
  361|      0|            goto err;
  362|       |        /*
  363|       |         * Ni = (R*Ri-1)/N, keep only least significant word:
  364|       |         */
  365|  7.88k|        mont->n0[0] = (Ri->top > 0) ? Ri->d[0] : 0;
  ------------------
  |  Branch (365:23): [True: 7.88k, False: 0]
  ------------------
  366|  7.88k|        mont->n0[1] = 0;
  367|  7.88k|#endif
  368|  7.88k|    }
  369|       |#else /* !MONT_WORD */
  370|       |    { /* bignum version */
  371|       |        mont->ri = BN_num_bits(&mont->N);
  372|       |        BN_zero(R);
  373|       |        if (!BN_set_bit(R, mont->ri))
  374|       |            goto err; /* R = 2^ri */
  375|       |        /* Ri = R^-1 mod N */
  376|       |        if ((BN_mod_inverse(Ri, R, &mont->N, ctx)) == NULL)
  377|       |            goto err;
  378|       |        if (!BN_lshift(Ri, Ri, mont->ri))
  379|       |            goto err; /* R*Ri */
  380|       |        if (!BN_sub_word(Ri, 1))
  381|       |            goto err;
  382|       |        /*
  383|       |         * Ni = (R*Ri-1) / N
  384|       |         */
  385|       |        if (!BN_div(&(mont->Ni), NULL, Ri, &mont->N, ctx))
  386|       |            goto err;
  387|       |    }
  388|       |#endif
  389|       |
  390|       |    /* setup RR for conversions */
  391|  7.88k|    BN_zero(&(mont->RR));
  ------------------
  |  |  201|  7.88k|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  392|  7.88k|    if (!BN_set_bit(&(mont->RR), mont->ri * 2))
  ------------------
  |  Branch (392:9): [True: 0, False: 7.88k]
  ------------------
  393|      0|        goto err;
  394|  7.88k|    if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx))
  ------------------
  |  |  276|  7.88k|#define BN_mod(rem, m, d, ctx) BN_div(NULL, (rem), (m), (d), (ctx))
  ------------------
  |  Branch (394:9): [True: 0, False: 7.88k]
  ------------------
  395|      0|        goto err;
  396|       |
  397|  7.88k|    for (i = mont->RR.top, ret = mont->N.top; i < ret; i++)
  ------------------
  |  Branch (397:47): [True: 0, False: 7.88k]
  ------------------
  398|      0|        mont->RR.d[i] = 0;
  399|  7.88k|    mont->RR.top = ret;
  400|  7.88k|    mont->RR.flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|  7.88k|#define BN_FLG_FIXED_TOP 0
  ------------------
  401|       |
  402|  7.88k|    ret = 1;
  403|  7.88k|err:
  404|  7.88k|    BN_CTX_end(ctx);
  405|  7.88k|    return ret;
  406|  7.88k|}
BN_MONT_CTX_copy:
  409|  9.63k|{
  410|  9.63k|    if (to == from)
  ------------------
  |  Branch (410:9): [True: 0, False: 9.63k]
  ------------------
  411|      0|        return to;
  412|       |
  413|  9.63k|    if (!BN_copy(&(to->RR), &(from->RR)))
  ------------------
  |  Branch (413:9): [True: 0, False: 9.63k]
  ------------------
  414|      0|        return NULL;
  415|  9.63k|    if (!BN_copy(&(to->N), &(from->N)))
  ------------------
  |  Branch (415:9): [True: 0, False: 9.63k]
  ------------------
  416|      0|        return NULL;
  417|  9.63k|    if (!BN_copy(&(to->Ni), &(from->Ni)))
  ------------------
  |  Branch (417:9): [True: 0, False: 9.63k]
  ------------------
  418|      0|        return NULL;
  419|  9.63k|    to->ri = from->ri;
  420|  9.63k|    to->n0[0] = from->n0[0];
  421|  9.63k|    to->n0[1] = from->n0[1];
  422|  9.63k|    return to;
  423|  9.63k|}
ossl_bn_mont_ctx_set:
  470|  1.75k|{
  471|  1.75k|    if (BN_copy(&ctx->N, modulus) == NULL)
  ------------------
  |  Branch (471:9): [True: 0, False: 1.75k]
  ------------------
  472|      0|        return 0;
  473|  1.75k|    if (BN_bin2bn(rr, rrlen, &ctx->RR) == NULL)
  ------------------
  |  Branch (473:9): [True: 0, False: 1.75k]
  ------------------
  474|      0|        return 0;
  475|  1.75k|    ctx->ri = ri;
  476|       |#if (BN_BITS2 <= 32) && defined(OPENSSL_BN_ASM_MONT)
  477|       |    ctx->n0[0] = nlo;
  478|       |    ctx->n0[1] = nhi;
  479|       |#elif BN_BITS2 <= 32
  480|       |    ctx->n0[0] = nlo;
  481|       |    ctx->n0[1] = 0;
  482|       |#else
  483|  1.75k|    ctx->n0[0] = ((BN_ULONG)nhi << 32) | nlo;
  484|  1.75k|    ctx->n0[1] = 0;
  485|  1.75k|#endif
  486|       |
  487|  1.75k|    return 1;
  488|  1.75k|}
bn_mont.c:bn_from_montgomery_word:
   88|    876|{
   89|    876|    BIGNUM *n;
   90|    876|    BN_ULONG *ap, *np, *rp, n0, v, carry;
  ------------------
  |  |   37|    876|#define BN_ULONG unsigned long
  ------------------
   91|    876|    int nl, max, i;
   92|    876|    unsigned int rtop;
   93|       |
   94|    876|    n = &(mont->N);
   95|    876|    nl = n->top;
   96|    876|    if (nl == 0) {
  ------------------
  |  Branch (96:9): [True: 0, False: 876]
  ------------------
   97|      0|        ret->top = 0;
   98|      0|        return 1;
   99|      0|    }
  100|       |
  101|    876|    max = (2 * nl); /* carry is stored separately */
  102|    876|    if (bn_wexpand(r, max) == NULL)
  ------------------
  |  Branch (102:9): [True: 0, False: 876]
  ------------------
  103|      0|        return 0;
  104|       |
  105|    876|    r->neg ^= n->neg;
  106|    876|    np = n->d;
  107|    876|    rp = r->d;
  108|       |
  109|       |    /* clear the top words of T */
  110|  7.88k|    for (rtop = r->top, i = 0; i < max; i++) {
  ------------------
  |  Branch (110:32): [True: 7.00k, False: 876]
  ------------------
  111|  7.00k|        v = (BN_ULONG)0 - ((i - rtop) >> (8 * sizeof(rtop) - 1));
  112|  7.00k|        rp[i] &= v;
  113|  7.00k|    }
  114|       |
  115|    876|    r->top = max;
  116|    876|    r->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|    876|#define BN_FLG_FIXED_TOP 0
  ------------------
  117|    876|    n0 = mont->n0[0];
  118|       |
  119|       |    /*
  120|       |     * Add multiples of |n| to |r| until R = 2^(nl * BN_BITS2) divides it. On
  121|       |     * input, we had |r| < |n| * R, so now |r| < 2 * |n| * R. Note that |r|
  122|       |     * includes |carry| which is stored separately.
  123|       |     */
  124|  4.38k|    for (carry = 0, i = 0; i < nl; i++, rp++) {
  ------------------
  |  Branch (124:28): [True: 3.50k, False: 876]
  ------------------
  125|  3.50k|        v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2);
  ------------------
  |  |   93|  3.50k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  126|  3.50k|        v = (v + carry + rp[nl]) & BN_MASK2;
  ------------------
  |  |   93|  3.50k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  127|  3.50k|        carry |= (v != rp[nl]);
  128|  3.50k|        carry &= (v <= rp[nl]);
  129|  3.50k|        rp[nl] = v;
  130|  3.50k|    }
  131|       |
  132|    876|    if (bn_wexpand(ret, nl) == NULL)
  ------------------
  |  Branch (132:9): [True: 0, False: 876]
  ------------------
  133|      0|        return 0;
  134|    876|    ret->top = nl;
  135|    876|    ret->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|    876|#define BN_FLG_FIXED_TOP 0
  ------------------
  136|    876|    ret->neg = r->neg;
  137|       |
  138|    876|    rp = ret->d;
  139|       |
  140|       |    /*
  141|       |     * Shift |nl| words to divide by R. We have |ap| < 2 * |n|. Note that |ap|
  142|       |     * includes |carry| which is stored separately.
  143|       |     */
  144|    876|    ap = &(r->d[nl]);
  145|       |
  146|    876|    carry -= bn_sub_words(rp, ap, np, nl);
  147|       |    /*
  148|       |     * |carry| is -1 if |ap| - |np| underflowed or zero if it did not. Note
  149|       |     * |carry| cannot be 1. That would imply the subtraction did not fit in
  150|       |     * |nl| words, and we know at most one subtraction is needed.
  151|       |     */
  152|  4.38k|    for (i = 0; i < nl; i++) {
  ------------------
  |  Branch (152:17): [True: 3.50k, False: 876]
  ------------------
  153|  3.50k|        rp[i] = (carry & ap[i]) | (~carry & rp[i]);
  154|  3.50k|        ap[i] = 0;
  155|  3.50k|    }
  156|       |
  157|    876|    return 1;
  158|    876|}

BN_mul:
  498|  15.7k|{
  499|  15.7k|    int ret = bn_mul_fixed_top(r, a, b, ctx);
  500|       |
  501|  15.7k|    bn_correct_top(r);
  502|  15.7k|    bn_check_top(r);
  503|       |
  504|  15.7k|    return ret;
  505|  15.7k|}
bn_mul_fixed_top:
  508|  16.6k|{
  509|  16.6k|    int ret = 0;
  510|  16.6k|    int top, al, bl;
  511|  16.6k|    BIGNUM *rr;
  512|  16.6k|#if defined(BN_MUL_COMBA) || defined(BN_RECURSION)
  513|  16.6k|    int i;
  514|  16.6k|#endif
  515|  16.6k|#ifdef BN_RECURSION
  516|  16.6k|    BIGNUM *t = NULL;
  517|  16.6k|    int j = 0, k;
  518|  16.6k|#endif
  519|       |
  520|  16.6k|    bn_check_top(a);
  521|  16.6k|    bn_check_top(b);
  522|  16.6k|    bn_check_top(r);
  523|       |
  524|  16.6k|    al = a->top;
  525|  16.6k|    bl = b->top;
  526|       |
  527|  16.6k|    if ((al == 0) || (bl == 0)) {
  ------------------
  |  Branch (527:9): [True: 0, False: 16.6k]
  |  Branch (527:22): [True: 0, False: 16.6k]
  ------------------
  528|      0|        BN_zero(r);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  529|      0|        return 1;
  530|      0|    }
  531|  16.6k|    top = al + bl;
  532|       |
  533|  16.6k|    BN_CTX_start(ctx);
  534|  16.6k|    if ((r == a) || (r == b)) {
  ------------------
  |  Branch (534:9): [True: 15.7k, False: 876]
  |  Branch (534:21): [True: 0, False: 876]
  ------------------
  535|  15.7k|        if ((rr = BN_CTX_get(ctx)) == NULL)
  ------------------
  |  Branch (535:13): [True: 0, False: 15.7k]
  ------------------
  536|      0|            goto err;
  537|  15.7k|    } else
  538|    876|        rr = r;
  539|       |
  540|  16.6k|#if defined(BN_MUL_COMBA) || defined(BN_RECURSION)
  541|  16.6k|    i = al - bl;
  542|  16.6k|#endif
  543|  16.6k|#ifdef BN_MUL_COMBA
  544|  16.6k|    if (i == 0) {
  ------------------
  |  Branch (544:9): [True: 15.7k, False: 876]
  ------------------
  545|       |#if 0
  546|       |        if (al == 4) {
  547|       |            if (bn_wexpand(rr, 8) == NULL)
  548|       |                goto err;
  549|       |            rr->top = 8;
  550|       |            bn_mul_comba4(rr->d, a->d, b->d);
  551|       |            goto end;
  552|       |        }
  553|       |#endif
  554|  15.7k|        if (al == 8) {
  ------------------
  |  Branch (554:13): [True: 0, False: 15.7k]
  ------------------
  555|      0|            if (bn_wexpand(rr, 16) == NULL)
  ------------------
  |  Branch (555:17): [True: 0, False: 0]
  ------------------
  556|      0|                goto err;
  557|      0|            rr->top = 16;
  558|      0|            bn_mul_comba8(rr->d, a->d, b->d);
  559|      0|            goto end;
  560|      0|        }
  561|  15.7k|    }
  562|  16.6k|#endif /* BN_MUL_COMBA */
  563|  16.6k|#ifdef BN_RECURSION
  564|  16.6k|    if ((al >= BN_MULL_SIZE_NORMAL) && (bl >= BN_MULL_SIZE_NORMAL)) {
  ------------------
  |  |  359|  16.6k|#define BN_MULL_SIZE_NORMAL (16) /* 32 */
  ------------------
                  if ((al >= BN_MULL_SIZE_NORMAL) && (bl >= BN_MULL_SIZE_NORMAL)) {
  ------------------
  |  |  359|      0|#define BN_MULL_SIZE_NORMAL (16) /* 32 */
  ------------------
  |  Branch (564:9): [True: 0, False: 16.6k]
  |  Branch (564:40): [True: 0, False: 0]
  ------------------
  565|      0|        if (i >= -1 && i <= 1) {
  ------------------
  |  Branch (565:13): [True: 0, False: 0]
  |  Branch (565:24): [True: 0, False: 0]
  ------------------
  566|       |            /*
  567|       |             * Find out the power of two lower or equal to the longest of the
  568|       |             * two numbers
  569|       |             */
  570|      0|            if (i >= 0) {
  ------------------
  |  Branch (570:17): [True: 0, False: 0]
  ------------------
  571|      0|                j = BN_num_bits_word((BN_ULONG)al);
  572|      0|            }
  573|      0|            if (i == -1) {
  ------------------
  |  Branch (573:17): [True: 0, False: 0]
  ------------------
  574|      0|                j = BN_num_bits_word((BN_ULONG)bl);
  575|      0|            }
  576|      0|            j = 1 << (j - 1);
  577|      0|            assert(j <= al || j <= bl);
  ------------------
  |  Branch (577:13): [True: 0, False: 0]
  |  Branch (577:13): [True: 0, False: 0]
  |  Branch (577:13): [True: 0, False: 0]
  |  Branch (577:13): [True: 0, False: 0]
  ------------------
  578|      0|            k = j + j;
  579|      0|            t = BN_CTX_get(ctx);
  580|      0|            if (t == NULL)
  ------------------
  |  Branch (580:17): [True: 0, False: 0]
  ------------------
  581|      0|                goto err;
  582|      0|            if (al > j || bl > j) {
  ------------------
  |  Branch (582:17): [True: 0, False: 0]
  |  Branch (582:27): [True: 0, False: 0]
  ------------------
  583|      0|                if (bn_wexpand(t, k * 4) == NULL)
  ------------------
  |  Branch (583:21): [True: 0, False: 0]
  ------------------
  584|      0|                    goto err;
  585|      0|                if (bn_wexpand(rr, k * 4) == NULL)
  ------------------
  |  Branch (585:21): [True: 0, False: 0]
  ------------------
  586|      0|                    goto err;
  587|      0|                bn_mul_part_recursive(rr->d, a->d, b->d,
  588|      0|                    j, al - j, bl - j, t->d);
  589|      0|            } else { /* al <= j || bl <= j */
  590|       |
  591|      0|                if (bn_wexpand(t, k * 2) == NULL)
  ------------------
  |  Branch (591:21): [True: 0, False: 0]
  ------------------
  592|      0|                    goto err;
  593|      0|                if (bn_wexpand(rr, k * 2) == NULL)
  ------------------
  |  Branch (593:21): [True: 0, False: 0]
  ------------------
  594|      0|                    goto err;
  595|      0|                bn_mul_recursive(rr->d, a->d, b->d, j, al - j, bl - j, t->d);
  596|      0|            }
  597|      0|            rr->top = top;
  598|      0|            goto end;
  599|      0|        }
  600|      0|    }
  601|  16.6k|#endif /* BN_RECURSION */
  602|  16.6k|    if (bn_wexpand(rr, top) == NULL)
  ------------------
  |  Branch (602:9): [True: 0, False: 16.6k]
  ------------------
  603|      0|        goto err;
  604|  16.6k|    rr->top = top;
  605|  16.6k|    bn_mul_normal(rr->d, a->d, al, b->d, bl);
  606|       |
  607|  16.6k|#if defined(BN_MUL_COMBA) || defined(BN_RECURSION)
  608|  16.6k|end:
  609|  16.6k|#endif
  610|  16.6k|    rr->neg = a->neg ^ b->neg;
  611|  16.6k|    rr->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|  16.6k|#define BN_FLG_FIXED_TOP 0
  ------------------
  612|  16.6k|    if (r != rr && BN_copy(r, rr) == NULL)
  ------------------
  |  Branch (612:9): [True: 15.7k, False: 876]
  |  Branch (612:20): [True: 0, False: 15.7k]
  ------------------
  613|      0|        goto err;
  614|       |
  615|  16.6k|    ret = 1;
  616|  16.6k|err:
  617|  16.6k|    bn_check_top(r);
  618|  16.6k|    BN_CTX_end(ctx);
  619|  16.6k|    return ret;
  620|  16.6k|}
bn_mul_normal:
  623|  16.6k|{
  624|  16.6k|    BN_ULONG *rr;
  ------------------
  |  |   37|  16.6k|#define BN_ULONG unsigned long
  ------------------
  625|       |
  626|  16.6k|    if (na < nb) {
  ------------------
  |  Branch (626:9): [True: 876, False: 15.7k]
  ------------------
  627|    876|        int itmp;
  628|    876|        BN_ULONG *ltmp;
  ------------------
  |  |   37|    876|#define BN_ULONG unsigned long
  ------------------
  629|       |
  630|    876|        itmp = na;
  631|    876|        na = nb;
  632|    876|        nb = itmp;
  633|    876|        ltmp = a;
  634|    876|        a = b;
  635|    876|        b = ltmp;
  636|    876|    }
  637|  16.6k|    rr = &(r[na]);
  638|  16.6k|    if (nb <= 0) {
  ------------------
  |  Branch (638:9): [True: 0, False: 16.6k]
  ------------------
  639|      0|        (void)bn_mul_words(r, a, na, 0);
  640|      0|        return;
  641|      0|    } else
  642|  16.6k|        rr[0] = bn_mul_words(r, a, na, b[0]);
  643|       |
  644|  32.4k|    for (;;) {
  645|  32.4k|        if (--nb <= 0)
  ------------------
  |  Branch (645:13): [True: 876, False: 31.5k]
  ------------------
  646|    876|            return;
  647|  31.5k|        rr[1] = bn_mul_add_words(&(r[1]), a, na, b[1]);
  648|  31.5k|        if (--nb <= 0)
  ------------------
  |  Branch (648:13): [True: 15.7k, False: 15.7k]
  ------------------
  649|  15.7k|            return;
  650|  15.7k|        rr[2] = bn_mul_add_words(&(r[2]), a, na, b[2]);
  651|  15.7k|        if (--nb <= 0)
  ------------------
  |  Branch (651:13): [True: 0, False: 15.7k]
  ------------------
  652|      0|            return;
  653|  15.7k|        rr[3] = bn_mul_add_words(&(r[3]), a, na, b[3]);
  654|  15.7k|        if (--nb <= 0)
  ------------------
  |  Branch (654:13): [True: 0, False: 15.7k]
  ------------------
  655|      0|            return;
  656|  15.7k|        rr[4] = bn_mul_add_words(&(r[4]), a, na, b[4]);
  657|  15.7k|        rr += 4;
  658|  15.7k|        r += 4;
  659|  15.7k|        b += 4;
  660|  15.7k|    }
  661|  16.6k|}

BN_nist_mod_384:
  889|  47.3k|{
  890|  47.3k|    int i, top = a->top;
  891|  47.3k|    int carry = 0;
  892|  47.3k|    register BN_ULONG *r_d, *a_d = a->d;
  893|  47.3k|    union {
  894|  47.3k|        BN_ULONG bn[BN_NIST_384_TOP];
  895|  47.3k|        unsigned int ui[BN_NIST_384_TOP * sizeof(BN_ULONG) / sizeof(unsigned int)];
  896|  47.3k|    } buf;
  897|  47.3k|    BN_ULONG c_d[BN_NIST_384_TOP], *res;
  ------------------
  |  |   37|  47.3k|#define BN_ULONG unsigned long
  ------------------
  898|  47.3k|    bn_addsub_f adjust;
  899|  47.3k|    static const BIGNUM ossl_bignum_nist_p_384_sqr = {
  900|  47.3k|        (BN_ULONG *)_nist_p_384_sqr,
  901|  47.3k|        OSSL_NELEM(_nist_p_384_sqr),
  ------------------
  |  |   14|  47.3k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  902|  47.3k|        OSSL_NELEM(_nist_p_384_sqr),
  ------------------
  |  |   14|  47.3k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  903|  47.3k|        0, BN_FLG_STATIC_DATA
  ------------------
  |  |   59|  47.3k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
  904|  47.3k|    };
  905|       |
  906|  47.3k|    field = &ossl_bignum_nist_p_384; /* just to make sure */
  907|       |
  908|  47.3k|    if (BN_is_negative(a) || BN_ucmp(a, &ossl_bignum_nist_p_384_sqr) >= 0)
  ------------------
  |  Branch (908:9): [True: 0, False: 47.3k]
  |  Branch (908:30): [True: 0, False: 47.3k]
  ------------------
  909|      0|        return BN_nnmod(r, a, field, ctx);
  910|       |
  911|  47.3k|    i = BN_ucmp(field, a);
  912|  47.3k|    if (i == 0) {
  ------------------
  |  Branch (912:9): [True: 0, False: 47.3k]
  ------------------
  913|      0|        BN_zero(r);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  914|      0|        return 1;
  915|  47.3k|    } else if (i > 0)
  ------------------
  |  Branch (915:16): [True: 0, False: 47.3k]
  ------------------
  916|      0|        return (r == a) ? 1 : (BN_copy(r, a) != NULL);
  ------------------
  |  Branch (916:16): [True: 0, False: 0]
  ------------------
  917|       |
  918|  47.3k|    if (r != a) {
  ------------------
  |  Branch (918:9): [True: 0, False: 47.3k]
  ------------------
  919|      0|        if (!bn_wexpand(r, BN_NIST_384_TOP))
  ------------------
  |  |   16|      0|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|      0|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|      0|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|      0|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|      0|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (919:13): [True: 0, False: 0]
  ------------------
  920|      0|            return 0;
  921|      0|        r_d = r->d;
  922|      0|        nist_cp_bn(r_d, a_d, BN_NIST_384_TOP);
  ------------------
  |  |   16|      0|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|      0|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|      0|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|      0|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|      0|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  923|      0|    } else
  924|  47.3k|        r_d = a_d;
  925|       |
  926|  47.3k|    nist_cp_bn_0(buf.bn, a_d + BN_NIST_384_TOP, top - BN_NIST_384_TOP,
  ------------------
  |  |  265|  47.3k|    {                                       \
  |  |  266|  47.3k|        int ii;                             \
  |  |  267|  47.3k|        const BN_ULONG *src = src_in;       \
  |  |  268|  47.3k|                                            \
  |  |  269|   331k|        for (ii = 0; ii < top; ii++)        \
  |  |  ------------------
  |  |  |  Branch (269:22): [True: 283k, False: 47.3k]
  |  |  ------------------
  |  |  270|   283k|            (dst)[ii] = src[ii];            \
  |  |  271|  47.3k|        for (; ii < max; ii++)              \
  |  |  ------------------
  |  |  |  Branch (271:16): [True: 0, False: 47.3k]
  |  |  ------------------
  |  |  272|  47.3k|            (dst)[ii] = 0;                  \
  |  |  273|  47.3k|    }
  ------------------
  927|  47.3k|        BN_NIST_384_TOP);
  928|       |
  929|  47.3k|#if defined(NIST_INT64)
  930|  47.3k|    {
  931|  47.3k|        NIST_INT64 acc; /* accumulator */
  ------------------
  |  |  298|  47.3k|#define NIST_INT64 long long
  ------------------
  932|  47.3k|        unsigned int *rp = (unsigned int *)r_d;
  933|  47.3k|        const unsigned int *bp = (const unsigned int *)buf.ui;
  934|       |
  935|  47.3k|        acc = load_u32(&rp[0]);
  936|  47.3k|        acc += bp[12 - 12];
  937|  47.3k|        acc += bp[21 - 12];
  938|  47.3k|        acc += bp[20 - 12];
  939|  47.3k|        acc -= bp[23 - 12];
  940|  47.3k|        store_lo32(&rp[0], acc);
  941|  47.3k|        acc >>= 32;
  942|       |
  943|  47.3k|        acc += load_u32(&rp[1]);
  944|  47.3k|        acc += bp[13 - 12];
  945|  47.3k|        acc += bp[22 - 12];
  946|  47.3k|        acc += bp[23 - 12];
  947|  47.3k|        acc -= bp[12 - 12];
  948|  47.3k|        acc -= bp[20 - 12];
  949|  47.3k|        store_lo32(&rp[1], acc);
  950|  47.3k|        acc >>= 32;
  951|       |
  952|  47.3k|        acc += load_u32(&rp[2]);
  953|  47.3k|        acc += bp[14 - 12];
  954|  47.3k|        acc += bp[23 - 12];
  955|  47.3k|        acc -= bp[13 - 12];
  956|  47.3k|        acc -= bp[21 - 12];
  957|  47.3k|        store_lo32(&rp[2], acc);
  958|  47.3k|        acc >>= 32;
  959|       |
  960|  47.3k|        acc += load_u32(&rp[3]);
  961|  47.3k|        acc += bp[15 - 12];
  962|  47.3k|        acc += bp[12 - 12];
  963|  47.3k|        acc += bp[20 - 12];
  964|  47.3k|        acc += bp[21 - 12];
  965|  47.3k|        acc -= bp[14 - 12];
  966|  47.3k|        acc -= bp[22 - 12];
  967|  47.3k|        acc -= bp[23 - 12];
  968|  47.3k|        store_lo32(&rp[3], acc);
  969|  47.3k|        acc >>= 32;
  970|       |
  971|  47.3k|        acc += load_u32(&rp[4]);
  972|  47.3k|        acc += bp[21 - 12];
  973|  47.3k|        acc += bp[21 - 12];
  974|  47.3k|        acc += bp[16 - 12];
  975|  47.3k|        acc += bp[13 - 12];
  976|  47.3k|        acc += bp[12 - 12];
  977|  47.3k|        acc += bp[20 - 12];
  978|  47.3k|        acc += bp[22 - 12];
  979|  47.3k|        acc -= bp[15 - 12];
  980|  47.3k|        acc -= bp[23 - 12];
  981|  47.3k|        acc -= bp[23 - 12];
  982|  47.3k|        store_lo32(&rp[4], acc);
  983|  47.3k|        acc >>= 32;
  984|       |
  985|  47.3k|        acc += load_u32(&rp[5]);
  986|  47.3k|        acc += bp[22 - 12];
  987|  47.3k|        acc += bp[22 - 12];
  988|  47.3k|        acc += bp[17 - 12];
  989|  47.3k|        acc += bp[14 - 12];
  990|  47.3k|        acc += bp[13 - 12];
  991|  47.3k|        acc += bp[21 - 12];
  992|  47.3k|        acc += bp[23 - 12];
  993|  47.3k|        acc -= bp[16 - 12];
  994|  47.3k|        store_lo32(&rp[5], acc);
  995|  47.3k|        acc >>= 32;
  996|       |
  997|  47.3k|        acc += load_u32(&rp[6]);
  998|  47.3k|        acc += bp[23 - 12];
  999|  47.3k|        acc += bp[23 - 12];
 1000|  47.3k|        acc += bp[18 - 12];
 1001|  47.3k|        acc += bp[15 - 12];
 1002|  47.3k|        acc += bp[14 - 12];
 1003|  47.3k|        acc += bp[22 - 12];
 1004|  47.3k|        acc -= bp[17 - 12];
 1005|  47.3k|        store_lo32(&rp[6], acc);
 1006|  47.3k|        acc >>= 32;
 1007|       |
 1008|  47.3k|        acc += load_u32(&rp[7]);
 1009|  47.3k|        acc += bp[19 - 12];
 1010|  47.3k|        acc += bp[16 - 12];
 1011|  47.3k|        acc += bp[15 - 12];
 1012|  47.3k|        acc += bp[23 - 12];
 1013|  47.3k|        acc -= bp[18 - 12];
 1014|  47.3k|        store_lo32(&rp[7], acc);
 1015|  47.3k|        acc >>= 32;
 1016|       |
 1017|  47.3k|        acc += load_u32(&rp[8]);
 1018|  47.3k|        acc += bp[20 - 12];
 1019|  47.3k|        acc += bp[17 - 12];
 1020|  47.3k|        acc += bp[16 - 12];
 1021|  47.3k|        acc -= bp[19 - 12];
 1022|  47.3k|        store_lo32(&rp[8], acc);
 1023|  47.3k|        acc >>= 32;
 1024|       |
 1025|  47.3k|        acc += load_u32(&rp[9]);
 1026|  47.3k|        acc += bp[21 - 12];
 1027|  47.3k|        acc += bp[18 - 12];
 1028|  47.3k|        acc += bp[17 - 12];
 1029|  47.3k|        acc -= bp[20 - 12];
 1030|  47.3k|        store_lo32(&rp[9], acc);
 1031|  47.3k|        acc >>= 32;
 1032|       |
 1033|  47.3k|        acc += load_u32(&rp[10]);
 1034|  47.3k|        acc += bp[22 - 12];
 1035|  47.3k|        acc += bp[19 - 12];
 1036|  47.3k|        acc += bp[18 - 12];
 1037|  47.3k|        acc -= bp[21 - 12];
 1038|  47.3k|        store_lo32(&rp[10], acc);
 1039|  47.3k|        acc >>= 32;
 1040|       |
 1041|  47.3k|        acc += load_u32(&rp[11]);
 1042|  47.3k|        acc += bp[23 - 12];
 1043|  47.3k|        acc += bp[20 - 12];
 1044|  47.3k|        acc += bp[19 - 12];
 1045|  47.3k|        acc -= bp[22 - 12];
 1046|  47.3k|        store_lo32(&rp[11], acc);
 1047|       |
 1048|  47.3k|        carry = (int)(acc >> 32);
 1049|  47.3k|    }
 1050|       |#else
 1051|       |    {
 1052|       |        BN_ULONG t_d[BN_NIST_384_TOP];
 1053|       |
 1054|       |        /*
 1055|       |         * S1
 1056|       |         */
 1057|       |        nist_set_256(t_d, buf.bn, 0, 0, 0, 0, 0, 23 - 4, 22 - 4, 21 - 4);
 1058|       |        /* left shift */
 1059|       |        {
 1060|       |            register BN_ULONG *ap, t, c;
 1061|       |            ap = t_d;
 1062|       |            c = 0;
 1063|       |            for (i = 3; i != 0; --i) {
 1064|       |                t = *ap;
 1065|       |                *(ap++) = ((t << 1) | c) & BN_MASK2;
 1066|       |                c = (t & BN_TBIT) ? 1 : 0;
 1067|       |            }
 1068|       |            *ap = c;
 1069|       |        }
 1070|       |        carry = (int)bn_add_words(r_d + (128 / BN_BITS2), r_d + (128 / BN_BITS2),
 1071|       |            t_d, BN_NIST_256_TOP);
 1072|       |        /*
 1073|       |         * S2
 1074|       |         */
 1075|       |        carry += (int)bn_add_words(r_d, r_d, buf.bn, BN_NIST_384_TOP);
 1076|       |        /*
 1077|       |         * S3
 1078|       |         */
 1079|       |        nist_set_384(t_d, buf.bn, 20, 19, 18, 17, 16, 15, 14, 13, 12, 23, 22,
 1080|       |            21);
 1081|       |        carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_384_TOP);
 1082|       |        /*
 1083|       |         * S4
 1084|       |         */
 1085|       |        nist_set_384(t_d, buf.bn, 19, 18, 17, 16, 15, 14, 13, 12, 20, 0, 23,
 1086|       |            0);
 1087|       |        carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_384_TOP);
 1088|       |        /*
 1089|       |         * S5
 1090|       |         */
 1091|       |        nist_set_384(t_d, buf.bn, 0, 0, 0, 0, 23, 22, 21, 20, 0, 0, 0, 0);
 1092|       |        carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_384_TOP);
 1093|       |        /*
 1094|       |         * S6
 1095|       |         */
 1096|       |        nist_set_384(t_d, buf.bn, 0, 0, 0, 0, 0, 0, 23, 22, 21, 0, 0, 20);
 1097|       |        carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_384_TOP);
 1098|       |        /*
 1099|       |         * D1
 1100|       |         */
 1101|       |        nist_set_384(t_d, buf.bn, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12,
 1102|       |            23);
 1103|       |        carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_384_TOP);
 1104|       |        /*
 1105|       |         * D2
 1106|       |         */
 1107|       |        nist_set_384(t_d, buf.bn, 0, 0, 0, 0, 0, 0, 0, 23, 22, 21, 20, 0);
 1108|       |        carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_384_TOP);
 1109|       |        /*
 1110|       |         * D3
 1111|       |         */
 1112|       |        nist_set_384(t_d, buf.bn, 0, 0, 0, 0, 0, 0, 0, 23, 23, 0, 0, 0);
 1113|       |        carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_384_TOP);
 1114|       |    }
 1115|       |#endif
 1116|       |    /* see BN_nist_mod_224 for explanation */
 1117|  47.3k|    adjust = bn_sub_words;
 1118|  47.3k|    if (carry > 0)
  ------------------
  |  Branch (1118:9): [True: 30.6k, False: 16.6k]
  ------------------
 1119|  30.6k|        carry = (int)bn_sub_words(r_d, r_d, _nist_p_384[carry - 1],
 1120|  30.6k|            BN_NIST_384_TOP);
  ------------------
  |  |   16|  30.6k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  30.6k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  30.6k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  30.6k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  30.6k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1121|  16.6k|    else if (carry < 0) {
  ------------------
  |  Branch (1121:14): [True: 438, False: 16.2k]
  ------------------
 1122|    438|        carry = (int)bn_add_words(r_d, r_d, _nist_p_384[-carry - 1],
 1123|    438|            BN_NIST_384_TOP);
  ------------------
  |  |   16|    438|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|    438|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|    438|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|    438|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|    438|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1124|    438|        adjust = carry ? bn_sub_words : bn_add_words;
  ------------------
  |  Branch (1124:18): [True: 438, False: 0]
  ------------------
 1125|    438|    } else
 1126|  16.2k|        carry = 1;
 1127|       |
 1128|  47.3k|    res = ((*adjust)(c_d, r_d, _nist_p_384[0], BN_NIST_384_TOP) && carry)
  ------------------
  |  |   16|  47.3k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  47.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  47.3k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  47.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  47.3k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1128:12): [True: 47.3k, False: 0]
  |  Branch (1128:68): [True: 47.3k, False: 0]
  ------------------
 1129|  47.3k|        ? r_d
 1130|  47.3k|        : c_d;
 1131|  47.3k|    nist_cp_bn(r_d, res, BN_NIST_384_TOP);
  ------------------
  |  |   16|  47.3k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  47.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  47.3k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  47.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  47.3k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1132|  47.3k|    r->top = BN_NIST_384_TOP;
  ------------------
  |  |   16|  47.3k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  47.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  47.3k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  47.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  47.3k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1133|  47.3k|    bn_correct_top(r);
 1134|       |
 1135|  47.3k|    return 1;
 1136|  47.3k|}
bn_nist.c:nist_cp_bn:
  276|  47.3k|{
  277|  47.3k|    int i;
  278|       |
  279|   331k|    for (i = 0; i < top; i++)
  ------------------
  |  Branch (279:17): [True: 283k, False: 47.3k]
  ------------------
  280|   283k|        dst[i] = src[i];
  281|  47.3k|}
bn_nist.c:load_u32:
  325|   567k|{
  326|   567k|    uint32_t tmp;
  327|       |
  328|   567k|    memcpy(&tmp, ptr, sizeof(tmp));
  329|   567k|    return tmp;
  330|   567k|}
bn_nist.c:store_lo32:
  333|   567k|{
  334|       |    /* A cast is needed for big-endian system: on a 32-bit BE system
  335|       |     * NIST_INT64 may be defined as well if the compiler supports 64-bit
  336|       |     * long long.  */
  337|   567k|    uint32_t tmp = (uint32_t)val;
  338|       |
  339|   567k|    memcpy(ptr, &tmp, sizeof(tmp));
  340|   567k|}

BN_rshift1:
   46|   496k|{
   47|   496k|    BN_ULONG *ap, *rp, t, c;
  ------------------
  |  |   37|   496k|#define BN_ULONG unsigned long
  ------------------
   48|   496k|    int i;
   49|       |
   50|   496k|    bn_check_top(r);
   51|   496k|    bn_check_top(a);
   52|       |
   53|   496k|    if (BN_is_zero(a)) {
  ------------------
  |  Branch (53:9): [True: 0, False: 496k]
  ------------------
   54|      0|        BN_zero(r);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
   55|      0|        return 1;
   56|      0|    }
   57|   496k|    i = a->top;
   58|   496k|    ap = a->d;
   59|   496k|    if (a != r) {
  ------------------
  |  Branch (59:9): [True: 0, False: 496k]
  ------------------
   60|      0|        if (bn_wexpand(r, i) == NULL)
  ------------------
  |  Branch (60:13): [True: 0, False: 0]
  ------------------
   61|      0|            return 0;
   62|      0|        r->neg = a->neg;
   63|      0|    }
   64|   496k|    rp = r->d;
   65|   496k|    r->top = i;
   66|   496k|    t = ap[--i];
   67|   496k|    rp[i] = t >> 1;
   68|   496k|    c = t << (BN_BITS2 - 1);
  ------------------
  |  |   54|   496k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   496k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
   69|   496k|    r->top -= (t == 1);
   70|   969k|    while (i > 0) {
  ------------------
  |  Branch (70:12): [True: 473k, False: 496k]
  ------------------
   71|   473k|        t = ap[--i];
   72|   473k|        rp[i] = ((t >> 1) & BN_MASK2) | c;
  ------------------
  |  |   93|   473k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
   73|   473k|        c = t << (BN_BITS2 - 1);
  ------------------
  |  |   54|   473k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   473k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
   74|   473k|    }
   75|   496k|    if (!r->top)
  ------------------
  |  Branch (75:9): [True: 0, False: 496k]
  ------------------
   76|      0|        r->neg = 0; /* don't allow negative zero */
   77|   496k|    bn_check_top(r);
   78|   496k|    return 1;
   79|   496k|}
BN_lshift:
   82|  7.88k|{
   83|  7.88k|    int ret;
   84|       |
   85|  7.88k|    if (n < 0) {
  ------------------
  |  Branch (85:9): [True: 0, False: 7.88k]
  ------------------
   86|      0|        ERR_raise(ERR_LIB_BN, BN_R_INVALID_SHIFT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   87|      0|        return 0;
   88|      0|    }
   89|       |
   90|  7.88k|    ret = bn_lshift_fixed_top(r, a, n);
   91|       |
   92|  7.88k|    bn_correct_top(r);
   93|  7.88k|    bn_check_top(r);
   94|       |
   95|  7.88k|    return ret;
   96|  7.88k|}
bn_lshift_fixed_top:
  105|   109k|{
  106|   109k|    int i, nw;
  107|   109k|    unsigned int lb, rb;
  108|   109k|    BN_ULONG *t, *f;
  ------------------
  |  |   37|   109k|#define BN_ULONG unsigned long
  ------------------
  109|   109k|    BN_ULONG l, m, rmask = 0;
  ------------------
  |  |   37|   109k|#define BN_ULONG unsigned long
  ------------------
  110|       |
  111|   109k|    assert(n >= 0);
  ------------------
  |  Branch (111:5): [True: 0, False: 109k]
  |  Branch (111:5): [True: 109k, False: 0]
  ------------------
  112|       |
  113|   109k|    bn_check_top(r);
  114|   109k|    bn_check_top(a);
  115|       |
  116|   109k|    nw = n / BN_BITS2;
  ------------------
  |  |   54|   109k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   109k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  117|   109k|    if (bn_wexpand(r, a->top + nw + 1) == NULL)
  ------------------
  |  Branch (117:9): [True: 0, False: 109k]
  ------------------
  118|      0|        return 0;
  119|       |
  120|   109k|    if (a->top != 0) {
  ------------------
  |  Branch (120:9): [True: 109k, False: 0]
  ------------------
  121|   109k|        lb = (unsigned int)n % BN_BITS2;
  ------------------
  |  |   54|   109k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   109k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  122|   109k|        rb = BN_BITS2 - lb;
  ------------------
  |  |   54|   109k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   109k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  123|   109k|        rb %= BN_BITS2; /* say no to undefined behaviour */
  ------------------
  |  |   54|   109k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   109k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  124|   109k|        rmask = (BN_ULONG)0 - rb; /* rmask = 0 - (rb != 0) */
  125|   109k|        rmask |= rmask >> 8;
  126|   109k|        f = &(a->d[0]);
  127|   109k|        t = &(r->d[nw]);
  128|   109k|        l = f[a->top - 1];
  129|   109k|        t[a->top] = (l >> rb) & rmask;
  130|   480k|        for (i = a->top - 1; i > 0; i--) {
  ------------------
  |  Branch (130:30): [True: 370k, False: 109k]
  ------------------
  131|   370k|            m = l << lb;
  132|   370k|            l = f[i - 1];
  133|   370k|            t[i] = (m | ((l >> rb) & rmask)) & BN_MASK2;
  ------------------
  |  |   93|   370k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  134|   370k|        }
  135|   109k|        t[0] = (l << lb) & BN_MASK2;
  ------------------
  |  |   93|   109k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  136|   109k|    } else {
  137|       |        /* shouldn't happen, but formally required */
  138|      0|        r->d[nw] = 0;
  139|      0|    }
  140|   109k|    if (nw != 0)
  ------------------
  |  Branch (140:9): [True: 7.88k, False: 101k]
  ------------------
  141|  7.88k|        memset(r->d, 0, sizeof(*t) * nw);
  142|       |
  143|   109k|    r->neg = a->neg;
  144|   109k|    r->top = a->top + nw + 1;
  145|   109k|    r->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|   109k|#define BN_FLG_FIXED_TOP 0
  ------------------
  146|       |
  147|   109k|    return 1;
  148|   109k|}
BN_rshift:
  151|   496k|{
  152|   496k|    int ret = 0;
  153|       |
  154|   496k|    if (n < 0) {
  ------------------
  |  Branch (154:9): [True: 0, False: 496k]
  ------------------
  155|      0|        ERR_raise(ERR_LIB_BN, BN_R_INVALID_SHIFT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  156|      0|        return 0;
  157|      0|    }
  158|       |
  159|   496k|    bn_check_top(r);
  160|   496k|    bn_check_top(a);
  161|       |
  162|   496k|    ret = bn_rshift_fixed_top(r, a, n);
  163|       |
  164|   496k|    bn_correct_top(r);
  165|   496k|    bn_check_top(r);
  166|       |
  167|   496k|    return ret;
  168|   496k|}
bn_rshift_fixed_top:
  177|   590k|{
  178|   590k|    int i, top, nw;
  179|   590k|    unsigned int lb, rb;
  180|   590k|    BN_ULONG *t, *f;
  ------------------
  |  |   37|   590k|#define BN_ULONG unsigned long
  ------------------
  181|   590k|    BN_ULONG l, m, mask;
  ------------------
  |  |   37|   590k|#define BN_ULONG unsigned long
  ------------------
  182|       |
  183|   590k|    assert(n >= 0);
  ------------------
  |  Branch (183:5): [True: 0, False: 590k]
  |  Branch (183:5): [True: 590k, False: 0]
  ------------------
  184|       |
  185|   590k|    nw = n / BN_BITS2;
  ------------------
  |  |   54|   590k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   590k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  186|   590k|    if (nw >= a->top) {
  ------------------
  |  Branch (186:9): [True: 0, False: 590k]
  ------------------
  187|       |        /* shouldn't happen, but formally required */
  188|      0|        BN_zero(r);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  189|      0|        return 1;
  190|      0|    }
  191|       |
  192|   590k|    rb = (unsigned int)n % BN_BITS2;
  ------------------
  |  |   54|   590k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   590k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  193|   590k|    lb = BN_BITS2 - rb;
  ------------------
  |  |   54|   590k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   590k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  194|   590k|    lb %= BN_BITS2; /* say no to undefined behaviour */
  ------------------
  |  |   54|   590k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   590k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  195|   590k|    mask = (BN_ULONG)0 - lb; /* mask = 0 - (lb != 0) */
  196|   590k|    mask |= mask >> 8;
  197|   590k|    top = a->top - nw;
  198|   590k|    if (r != a && bn_wexpand(r, top) == NULL)
  ------------------
  |  Branch (198:9): [True: 93.7k, False: 496k]
  |  Branch (198:19): [True: 0, False: 93.7k]
  ------------------
  199|      0|        return 0;
  200|       |
  201|   590k|    t = &(r->d[0]);
  202|   590k|    f = &(a->d[nw]);
  203|   590k|    l = f[0];
  204|   966k|    for (i = 0; i < top - 1; i++) {
  ------------------
  |  Branch (204:17): [True: 375k, False: 590k]
  ------------------
  205|   375k|        m = f[i + 1];
  206|   375k|        t[i] = (l >> rb) | ((m << lb) & mask);
  207|   375k|        l = m;
  208|   375k|    }
  209|   590k|    t[i] = l >> rb;
  210|       |
  211|   590k|    r->neg = a->neg;
  212|   590k|    r->top = top;
  213|   590k|    r->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|   590k|#define BN_FLG_FIXED_TOP 0
  ------------------
  214|       |
  215|   590k|    return 1;
  216|   590k|}

BN_sqr:
   18|  31.5k|{
   19|  31.5k|    int ret = bn_sqr_fixed_top(r, a, ctx);
   20|       |
   21|  31.5k|    bn_correct_top(r);
   22|  31.5k|    bn_check_top(r);
   23|       |
   24|  31.5k|    return ret;
   25|  31.5k|}
bn_sqr_fixed_top:
   28|  31.5k|{
   29|  31.5k|    int max, al;
   30|  31.5k|    int ret = 0;
   31|  31.5k|    BIGNUM *tmp, *rr;
   32|       |
   33|  31.5k|    bn_check_top(a);
   34|       |
   35|  31.5k|    al = a->top;
   36|  31.5k|    if (al <= 0) {
  ------------------
  |  Branch (36:9): [True: 0, False: 31.5k]
  ------------------
   37|      0|        r->top = 0;
   38|      0|        r->neg = 0;
   39|      0|        return 1;
   40|      0|    }
   41|       |
   42|  31.5k|    BN_CTX_start(ctx);
   43|  31.5k|    rr = (a != r) ? r : BN_CTX_get(ctx);
  ------------------
  |  Branch (43:10): [True: 31.5k, False: 0]
  ------------------
   44|  31.5k|    tmp = BN_CTX_get(ctx);
   45|  31.5k|    if (rr == NULL || tmp == NULL)
  ------------------
  |  Branch (45:9): [True: 0, False: 31.5k]
  |  Branch (45:23): [True: 0, False: 31.5k]
  ------------------
   46|      0|        goto err;
   47|       |
   48|  31.5k|    max = 2 * al; /* Non-zero (from above) */
   49|  31.5k|    if (bn_wexpand(rr, max) == NULL)
  ------------------
  |  Branch (49:9): [True: 0, False: 31.5k]
  ------------------
   50|      0|        goto err;
   51|       |
   52|  31.5k|    if (al == 4) {
  ------------------
  |  Branch (52:9): [True: 0, False: 31.5k]
  ------------------
   53|       |#ifndef BN_SQR_COMBA
   54|       |        BN_ULONG t[8];
   55|       |        bn_sqr_normal(rr->d, a->d, 4, t);
   56|       |#else
   57|      0|        bn_sqr_comba4(rr->d, a->d);
   58|      0|#endif
   59|  31.5k|    } else if (al == 8) {
  ------------------
  |  Branch (59:16): [True: 0, False: 31.5k]
  ------------------
   60|       |#ifndef BN_SQR_COMBA
   61|       |        BN_ULONG t[16];
   62|       |        bn_sqr_normal(rr->d, a->d, 8, t);
   63|       |#else
   64|      0|        bn_sqr_comba8(rr->d, a->d);
   65|      0|#endif
   66|  31.5k|    } else {
   67|  31.5k|#if defined(BN_RECURSION)
   68|  31.5k|        if (al < BN_SQR_RECURSIVE_SIZE_NORMAL) {
  ------------------
  |  |  361|  31.5k|#define BN_SQR_RECURSIVE_SIZE_NORMAL (16) /* 32 */
  ------------------
  |  Branch (68:13): [True: 31.5k, False: 0]
  ------------------
   69|  31.5k|            BN_ULONG t[BN_SQR_RECURSIVE_SIZE_NORMAL * 2];
  ------------------
  |  |   37|  31.5k|#define BN_ULONG unsigned long
  ------------------
   70|  31.5k|            bn_sqr_normal(rr->d, a->d, al, t);
   71|  31.5k|        } else {
   72|      0|            int j, k;
   73|       |
   74|      0|            j = BN_num_bits_word((BN_ULONG)al);
   75|      0|            j = 1 << (j - 1);
   76|      0|            k = j + j;
   77|      0|            if (al == j) {
  ------------------
  |  Branch (77:17): [True: 0, False: 0]
  ------------------
   78|      0|                if (bn_wexpand(tmp, k * 2) == NULL)
  ------------------
  |  Branch (78:21): [True: 0, False: 0]
  ------------------
   79|      0|                    goto err;
   80|      0|                bn_sqr_recursive(rr->d, a->d, al, tmp->d);
   81|      0|            } else {
   82|      0|                if (bn_wexpand(tmp, max) == NULL)
  ------------------
  |  Branch (82:21): [True: 0, False: 0]
  ------------------
   83|      0|                    goto err;
   84|      0|                bn_sqr_normal(rr->d, a->d, al, tmp->d);
   85|      0|            }
   86|      0|        }
   87|       |#else
   88|       |        if (bn_wexpand(tmp, max) == NULL)
   89|       |            goto err;
   90|       |        bn_sqr_normal(rr->d, a->d, al, tmp->d);
   91|       |#endif
   92|  31.5k|    }
   93|       |
   94|  31.5k|    rr->neg = 0;
   95|  31.5k|    rr->top = max;
   96|  31.5k|    rr->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  221|  31.5k|#define BN_FLG_FIXED_TOP 0
  ------------------
   97|  31.5k|    if (r != rr && BN_copy(r, rr) == NULL)
  ------------------
  |  Branch (97:9): [True: 0, False: 31.5k]
  |  Branch (97:20): [True: 0, False: 0]
  ------------------
   98|      0|        goto err;
   99|       |
  100|  31.5k|    ret = 1;
  101|  31.5k|err:
  102|  31.5k|    bn_check_top(rr);
  103|  31.5k|    bn_check_top(tmp);
  104|  31.5k|    BN_CTX_end(ctx);
  105|  31.5k|    return ret;
  106|  31.5k|}
bn_sqr_normal:
  110|  31.5k|{
  111|  31.5k|    int i, j, max;
  112|  31.5k|    const BN_ULONG *ap;
  113|  31.5k|    BN_ULONG *rp;
  ------------------
  |  |   37|  31.5k|#define BN_ULONG unsigned long
  ------------------
  114|       |
  115|  31.5k|    max = n * 2;
  116|  31.5k|    ap = a;
  117|  31.5k|    rp = r;
  118|  31.5k|    rp[0] = rp[max - 1] = 0;
  119|  31.5k|    rp++;
  120|  31.5k|    j = n;
  121|       |
  122|  31.5k|    if (--j > 0) {
  ------------------
  |  Branch (122:9): [True: 31.5k, False: 0]
  ------------------
  123|  31.5k|        ap++;
  124|  31.5k|        rp[j] = bn_mul_words(rp, ap, j, ap[-1]);
  125|  31.5k|        rp += 2;
  126|  31.5k|    }
  127|       |
  128|   157k|    for (i = n - 2; i > 0; i--) {
  ------------------
  |  Branch (128:21): [True: 126k, False: 31.5k]
  ------------------
  129|   126k|        j--;
  130|   126k|        ap++;
  131|   126k|        rp[j] = bn_mul_add_words(rp, ap, j, ap[-1]);
  132|   126k|        rp += 2;
  133|   126k|    }
  134|       |
  135|  31.5k|    bn_add_words(r, r, r, max);
  136|       |
  137|       |    /* There will not be a carry */
  138|       |
  139|  31.5k|    bn_sqr_words(tmp, a, n);
  140|       |
  141|  31.5k|    bn_add_words(r, r, tmp, max);
  142|  31.5k|}

BN_add_word:
   98|  8.76k|{
   99|  8.76k|    BN_ULONG l;
  ------------------
  |  |   37|  8.76k|#define BN_ULONG unsigned long
  ------------------
  100|  8.76k|    int i;
  101|       |
  102|  8.76k|    bn_check_top(a);
  103|  8.76k|    w &= BN_MASK2;
  ------------------
  |  |   93|  8.76k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  104|       |
  105|       |    /* degenerate case: w is zero */
  106|  8.76k|    if (!w)
  ------------------
  |  Branch (106:9): [True: 0, False: 8.76k]
  ------------------
  107|      0|        return 1;
  108|       |    /* degenerate case: a is zero */
  109|  8.76k|    if (BN_is_zero(a))
  ------------------
  |  Branch (109:9): [True: 0, False: 8.76k]
  ------------------
  110|      0|        return BN_set_word(a, w);
  111|       |    /* handle 'a' when negative */
  112|  8.76k|    if (a->neg) {
  ------------------
  |  Branch (112:9): [True: 0, False: 8.76k]
  ------------------
  113|      0|        a->neg = 0;
  114|      0|        i = BN_sub_word(a, w);
  115|      0|        if (!BN_is_zero(a))
  ------------------
  |  Branch (115:13): [True: 0, False: 0]
  ------------------
  116|      0|            a->neg = !(a->neg);
  117|      0|        return i;
  118|      0|    }
  119|  17.5k|    for (i = 0; w != 0 && i < a->top; i++) {
  ------------------
  |  Branch (119:17): [True: 8.76k, False: 8.76k]
  |  Branch (119:27): [True: 8.76k, False: 0]
  ------------------
  120|  8.76k|        a->d[i] = l = (a->d[i] + w) & BN_MASK2;
  ------------------
  |  |   93|  8.76k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  121|  8.76k|        w = (w > l) ? 1 : 0;
  ------------------
  |  Branch (121:13): [True: 0, False: 8.76k]
  ------------------
  122|  8.76k|    }
  123|  8.76k|    if (w && i == a->top) {
  ------------------
  |  Branch (123:9): [True: 0, False: 8.76k]
  |  Branch (123:14): [True: 0, False: 0]
  ------------------
  124|      0|        if (bn_wexpand(a, a->top + 1) == NULL)
  ------------------
  |  Branch (124:13): [True: 0, False: 0]
  ------------------
  125|      0|            return 0;
  126|      0|        a->top++;
  127|      0|        a->d[i] = w;
  128|      0|    }
  129|  8.76k|    bn_check_top(a);
  130|  8.76k|    return 1;
  131|  8.76k|}
BN_sub_word:
  134|  7.88k|{
  135|  7.88k|    int i;
  136|       |
  137|  7.88k|    bn_check_top(a);
  138|  7.88k|    w &= BN_MASK2;
  ------------------
  |  |   93|  7.88k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  139|       |
  140|       |    /* degenerate case: w is zero */
  141|  7.88k|    if (!w)
  ------------------
  |  Branch (141:9): [True: 0, False: 7.88k]
  ------------------
  142|      0|        return 1;
  143|       |    /* degenerate case: a is zero */
  144|  7.88k|    if (BN_is_zero(a)) {
  ------------------
  |  Branch (144:9): [True: 0, False: 7.88k]
  ------------------
  145|      0|        i = BN_set_word(a, w);
  146|      0|        if (i != 0)
  ------------------
  |  Branch (146:13): [True: 0, False: 0]
  ------------------
  147|      0|            BN_set_negative(a, 1);
  148|      0|        return i;
  149|      0|    }
  150|       |    /* handle 'a' when negative */
  151|  7.88k|    if (a->neg) {
  ------------------
  |  Branch (151:9): [True: 0, False: 7.88k]
  ------------------
  152|      0|        a->neg = 0;
  153|      0|        i = BN_add_word(a, w);
  154|      0|        a->neg = 1;
  155|      0|        return i;
  156|      0|    }
  157|       |
  158|  7.88k|    if ((a->top == 1) && (a->d[0] < w)) {
  ------------------
  |  Branch (158:9): [True: 0, False: 7.88k]
  |  Branch (158:26): [True: 0, False: 0]
  ------------------
  159|      0|        a->d[0] = w - a->d[0];
  160|      0|        a->neg = 1;
  161|      0|        return 1;
  162|      0|    }
  163|  7.88k|    i = 0;
  164|  15.7k|    for (;;) {
  165|  15.7k|        if (a->d[i] >= w) {
  ------------------
  |  Branch (165:13): [True: 7.88k, False: 7.88k]
  ------------------
  166|  7.88k|            a->d[i] -= w;
  167|  7.88k|            break;
  168|  7.88k|        } else {
  169|  7.88k|            a->d[i] = (a->d[i] - w) & BN_MASK2;
  ------------------
  |  |   93|  7.88k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  170|  7.88k|            i++;
  171|  7.88k|            w = 1;
  172|  7.88k|        }
  173|  15.7k|    }
  174|  7.88k|    if ((a->d[i] == 0) && (i == (a->top - 1)))
  ------------------
  |  Branch (174:9): [True: 0, False: 7.88k]
  |  Branch (174:27): [True: 0, False: 0]
  ------------------
  175|      0|        a->top--;
  176|  7.88k|    bn_check_top(a);
  177|  7.88k|    return 1;
  178|  7.88k|}

ossl_bsearch:
   16|   612k|{
   17|   612k|    const char *base_ = base;
   18|   612k|    int l, h, i = 0, c = 0;
   19|   612k|    const char *p = NULL;
   20|       |
   21|   612k|    if (num == 0)
  ------------------
  |  Branch (21:9): [True: 0, False: 612k]
  ------------------
   22|      0|        return NULL;
   23|   612k|    l = 0;
   24|   612k|    h = num;
   25|  5.55M|    while (l < h) {
  ------------------
  |  Branch (25:12): [True: 5.54M, False: 9.48k]
  ------------------
   26|  5.54M|        i = l + (h - l) / 2;
   27|  5.54M|        p = &(base_[i * size]);
   28|  5.54M|        c = (*cmp)(key, p);
   29|  5.54M|        if (c < 0)
  ------------------
  |  Branch (29:13): [True: 3.28M, False: 2.26M]
  ------------------
   30|  3.28M|            h = i;
   31|  2.26M|        else if (c > 0)
  ------------------
  |  Branch (31:18): [True: 1.66M, False: 603k]
  ------------------
   32|  1.66M|            l = i + 1;
   33|   603k|        else
   34|   603k|            break;
   35|  5.54M|    }
   36|   612k|    if (c != 0 && !(flags & OSSL_BSEARCH_VALUE_ON_NOMATCH))
  ------------------
  |  |  149|  9.48k|#define OSSL_BSEARCH_VALUE_ON_NOMATCH 0x01
  ------------------
  |  Branch (36:9): [True: 9.48k, False: 603k]
  |  Branch (36:19): [True: 9.48k, False: 0]
  ------------------
   37|  9.48k|        p = NULL;
   38|   603k|    else if (c == 0 && (flags & OSSL_BSEARCH_FIRST_VALUE_ON_MATCH)) {
  ------------------
  |  |  150|   603k|#define OSSL_BSEARCH_FIRST_VALUE_ON_MATCH 0x02
  ------------------
  |  Branch (38:14): [True: 603k, False: 0]
  |  Branch (38:24): [True: 3, False: 603k]
  ------------------
   39|      3|        while (i > 0 && (*cmp)(key, &(base_[(i - 1) * size])) == 0)
  ------------------
  |  Branch (39:16): [True: 0, False: 3]
  |  Branch (39:25): [True: 0, False: 0]
  ------------------
   40|      0|            i--;
   41|      3|        p = &(base_[i * size]);
   42|      3|    }
   43|   612k|    return p;
   44|   612k|}

ossl_err_load_BUF_strings:
   24|      2|{
   25|      2|#ifndef OPENSSL_NO_ERR
   26|      2|    if (ERR_reason_error_string(BUF_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (26:9): [True: 2, False: 0]
  ------------------
   27|      2|        ERR_load_strings_const(BUF_str_reasons);
   28|      2|#endif
   29|      2|    return 1;
   30|      2|}

BUF_MEM_new_ex:
   22|   129k|{
   23|   129k|    BUF_MEM *ret;
   24|       |
   25|   129k|    ret = BUF_MEM_new();
   26|   129k|    if (ret != NULL)
  ------------------
  |  Branch (26:9): [True: 129k, False: 0]
  ------------------
   27|   129k|        ret->flags = flags;
   28|   129k|    return ret;
   29|   129k|}
BUF_MEM_new:
   32|   321k|{
   33|   321k|    BUF_MEM *ret;
   34|       |
   35|   321k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|   321k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   36|   321k|    if (ret == NULL)
  ------------------
  |  Branch (36:9): [True: 0, False: 321k]
  ------------------
   37|      0|        return NULL;
   38|   321k|    return ret;
   39|   321k|}
BUF_MEM_free:
   42|   262k|{
   43|   262k|    if (a == NULL)
  ------------------
  |  Branch (43:9): [True: 4.57k, False: 257k]
  ------------------
   44|  4.57k|        return;
   45|   257k|    if (a->data != NULL) {
  ------------------
  |  Branch (45:9): [True: 96.3k, False: 161k]
  ------------------
   46|  96.3k|        if (a->flags & BUF_MEM_FLAG_SECURE)
  ------------------
  |  |   48|  96.3k|#define BUF_MEM_FLAG_SECURE 0x01
  ------------------
  |  Branch (46:13): [True: 0, False: 96.3k]
  ------------------
   47|      0|            OPENSSL_secure_clear_free(a->data, a->max);
  ------------------
  |  |  149|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   48|  96.3k|        else
   49|  96.3k|            OPENSSL_clear_free(a->data, a->max);
  ------------------
  |  |  129|  96.3k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   50|  96.3k|    }
   51|   257k|    OPENSSL_free(a);
  ------------------
  |  |  131|   257k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   52|   257k|}
BUF_MEM_grow:
   72|  64.1k|{
   73|  64.1k|    char *ret;
   74|  64.1k|    size_t n;
   75|       |
   76|  64.1k|    if (str->length >= len) {
  ------------------
  |  Branch (76:9): [True: 0, False: 64.1k]
  ------------------
   77|      0|        str->length = len;
   78|      0|        return len;
   79|      0|    }
   80|  64.1k|    if (str->max >= len) {
  ------------------
  |  Branch (80:9): [True: 0, False: 64.1k]
  ------------------
   81|      0|        if (str->data != NULL)
  ------------------
  |  Branch (81:13): [True: 0, False: 0]
  ------------------
   82|      0|            memset(&str->data[str->length], 0, len - str->length);
   83|      0|        str->length = len;
   84|      0|        return len;
   85|      0|    }
   86|       |    /* This limit is sufficient to ensure (len+3)/3*4 < 2**31 */
   87|  64.1k|    if (len > LIMIT_BEFORE_EXPANSION) {
  ------------------
  |  |   19|  64.1k|#define LIMIT_BEFORE_EXPANSION 0x5ffffffc
  ------------------
  |  Branch (87:9): [True: 0, False: 64.1k]
  ------------------
   88|      0|        ERR_raise(ERR_LIB_BUF, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   89|      0|        return 0;
   90|      0|    }
   91|  64.1k|    n = (len + 3) / 3 * 4;
   92|  64.1k|    if ((str->flags & BUF_MEM_FLAG_SECURE))
  ------------------
  |  |   48|  64.1k|#define BUF_MEM_FLAG_SECURE 0x01
  ------------------
  |  Branch (92:9): [True: 0, False: 64.1k]
  ------------------
   93|      0|        ret = sec_alloc_realloc(str, n);
   94|  64.1k|    else
   95|  64.1k|        ret = OPENSSL_realloc(str->data, n);
  ------------------
  |  |  120|  64.1k|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   96|  64.1k|    if (ret == NULL) {
  ------------------
  |  Branch (96:9): [True: 0, False: 64.1k]
  ------------------
   97|      0|        len = 0;
   98|  64.1k|    } else {
   99|  64.1k|        str->data = ret;
  100|  64.1k|        str->max = n;
  101|  64.1k|        memset(&str->data[str->length], 0, len - str->length);
  102|  64.1k|        str->length = len;
  103|  64.1k|    }
  104|  64.1k|    return len;
  105|  64.1k|}
BUF_MEM_grow_clean:
  108|   854k|{
  109|   854k|    char *ret;
  110|   854k|    size_t n;
  111|       |
  112|   854k|    if (str->length >= len) {
  ------------------
  |  Branch (112:9): [True: 0, False: 854k]
  ------------------
  113|      0|        if (str->data != NULL)
  ------------------
  |  Branch (113:13): [True: 0, False: 0]
  ------------------
  114|      0|            memset(&str->data[len], 0, str->length - len);
  115|      0|        str->length = len;
  116|      0|        return len;
  117|      0|    }
  118|   854k|    if (str->max >= len) {
  ------------------
  |  Branch (118:9): [True: 475k, False: 379k]
  ------------------
  119|   475k|        memset(&str->data[str->length], 0, len - str->length);
  120|   475k|        str->length = len;
  121|   475k|        return len;
  122|   475k|    }
  123|       |    /* This limit is sufficient to ensure (len+3)/3*4 < 2**31 */
  124|   379k|    if (len > LIMIT_BEFORE_EXPANSION) {
  ------------------
  |  |   19|   379k|#define LIMIT_BEFORE_EXPANSION 0x5ffffffc
  ------------------
  |  Branch (124:9): [True: 0, False: 379k]
  ------------------
  125|      0|        ERR_raise(ERR_LIB_BUF, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  126|      0|        return 0;
  127|      0|    }
  128|   379k|    n = (len + 3) / 3 * 4;
  129|   379k|    if ((str->flags & BUF_MEM_FLAG_SECURE))
  ------------------
  |  |   48|   379k|#define BUF_MEM_FLAG_SECURE 0x01
  ------------------
  |  Branch (129:9): [True: 0, False: 379k]
  ------------------
  130|      0|        ret = sec_alloc_realloc(str, n);
  131|   379k|    else
  132|   379k|        ret = OPENSSL_clear_realloc(str->data, str->max, n);
  ------------------
  |  |  122|   379k|    CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  133|   379k|    if (ret == NULL) {
  ------------------
  |  Branch (133:9): [True: 0, False: 379k]
  ------------------
  134|      0|        len = 0;
  135|   379k|    } else {
  136|   379k|        str->data = ret;
  137|   379k|        str->max = n;
  138|   379k|        memset(&str->data[str->length], 0, len - str->length);
  139|   379k|        str->length = len;
  140|   379k|    }
  141|   379k|    return len;
  142|   379k|}

ossl_err_load_CMP_strings:
  199|      2|{
  200|      2|#ifndef OPENSSL_NO_ERR
  201|      2|    if (ERR_reason_error_string(CMP_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (201:9): [True: 2, False: 0]
  ------------------
  202|      2|        ERR_load_strings_const(CMP_str_reasons);
  203|      2|#endif
  204|      2|    return 1;
  205|      2|}

ossl_err_load_CMS_strings:
  182|      2|{
  183|      2|#ifndef OPENSSL_NO_ERR
  184|      2|    if (ERR_reason_error_string(CMS_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (184:9): [True: 2, False: 0]
  ------------------
  185|      2|        ERR_load_strings_const(CMS_str_reasons);
  186|      2|#endif
  187|      2|    return 1;
  188|      2|}

COMP_zlib:
  310|      2|{
  311|      2|    COMP_METHOD *meth = NULL;
  312|       |
  313|       |#ifndef OPENSSL_NO_ZLIB
  314|       |    if (RUN_ONCE(&zlib_once, ossl_comp_zlib_init))
  315|       |        meth = &zlib_stateful_method;
  316|       |#endif
  317|       |
  318|      2|    return meth;
  319|      2|}

ossl_err_load_COMP_strings:
   45|      2|{
   46|      2|#ifndef OPENSSL_NO_ERR
   47|      2|    if (ERR_reason_error_string(COMP_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (47:9): [True: 2, False: 0]
  ------------------
   48|      2|        ERR_load_strings_const(COMP_str_reasons);
   49|      2|#endif
   50|      2|    return 1;
   51|      2|}

COMP_get_type:
   41|      2|{
   42|      2|    if (meth == NULL)
  ------------------
  |  Branch (42:9): [True: 2, False: 0]
  ------------------
   43|      2|        return NID_undef;
  ------------------
  |  |   18|      2|#define NID_undef                       0
  ------------------
   44|      0|    return meth->type;
   45|      2|}
COMP_CTX_free:
   55|  1.31k|{
   56|  1.31k|    if (ctx == NULL)
  ------------------
  |  Branch (56:9): [True: 1.31k, False: 0]
  ------------------
   57|  1.31k|        return;
   58|      0|    if (ctx->meth->finish != NULL)
  ------------------
  |  Branch (58:9): [True: 0, False: 0]
  ------------------
   59|      0|        ctx->meth->finish(ctx);
   60|       |
   61|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   62|      0|}

ossl_load_builtin_compressions:
   29|      2|{
   30|      2|    STACK_OF(SSL_COMP) *comp_methods = NULL;
  ------------------
  |  |   33|      2|#define STACK_OF(type) struct stack_st_##type
  ------------------
   31|      2|#ifndef OPENSSL_NO_COMP
   32|      2|    SSL_COMP *comp = NULL;
   33|      2|    COMP_METHOD *method = COMP_zlib();
   34|       |
   35|      2|    comp_methods = sk_SSL_COMP_new(sk_comp_cmp);
  ------------------
  |  |   72|      2|#define sk_SSL_COMP_new(cmp) ((STACK_OF(SSL_COMP) *)OPENSSL_sk_new(ossl_check_SSL_COMP_compfunc_type(cmp)))
  ------------------
   36|       |
   37|      2|    if (COMP_get_type(method) != NID_undef && comp_methods != NULL) {
  ------------------
  |  |   18|      4|#define NID_undef                       0
  ------------------
  |  Branch (37:9): [True: 0, False: 2]
  |  Branch (37:47): [True: 0, False: 0]
  ------------------
   38|      0|        comp = OPENSSL_malloc(sizeof(*comp));
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   39|      0|        if (comp != NULL) {
  ------------------
  |  Branch (39:13): [True: 0, False: 0]
  ------------------
   40|      0|            comp->method = method;
   41|      0|            comp->id = SSL_COMP_ZLIB_IDX;
  ------------------
  |  |   18|      0|#define SSL_COMP_ZLIB_IDX 1
  ------------------
   42|      0|            comp->name = COMP_get_name(method);
   43|      0|            if (!sk_SSL_COMP_push(comp_methods, comp))
  ------------------
  |  |   80|      0|#define sk_SSL_COMP_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_COMP_sk_type(sk), ossl_check_SSL_COMP_type(ptr))
  ------------------
  |  Branch (43:17): [True: 0, False: 0]
  ------------------
   44|      0|                OPENSSL_free(comp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   45|      0|        }
   46|      0|    }
   47|      2|#endif
   48|      2|    return comp_methods;
   49|      2|}

_CONF_free_data:
  137|      2|{
  138|      2|    if (conf == NULL)
  ------------------
  |  Branch (138:9): [True: 0, False: 2]
  ------------------
  139|      0|        return;
  140|       |
  141|      2|    OPENSSL_free(conf->includedir);
  ------------------
  |  |  131|      2|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  142|      2|    if (conf->data == NULL)
  ------------------
  |  Branch (142:9): [True: 2, False: 0]
  ------------------
  143|      2|        return;
  144|       |
  145|       |    /* evil thing to make sure the 'OPENSSL_free()' works as expected */
  146|      0|    lh_CONF_VALUE_set_down_load(conf->data, 0);
  ------------------
  |  |   86|      0|#define lh_CONF_VALUE_set_down_load(lh, dl) OPENSSL_LH_set_down_load(ossl_check_CONF_VALUE_lh_type(lh), dl)
  ------------------
  147|      0|    lh_CONF_VALUE_doall_LH_CONF_VALUE(conf->data, value_free_hash, conf->data);
  148|       |
  149|       |    /*
  150|       |     * We now have only 'section' entries in the hash table. Due to problems
  151|       |     * with
  152|       |     */
  153|       |
  154|      0|    lh_CONF_VALUE_doall(conf->data, value_free_stack_doall);
  ------------------
  |  |   87|      0|#define lh_CONF_VALUE_doall(lh, dfn) OPENSSL_LH_doall(ossl_check_CONF_VALUE_lh_type(lh), ossl_check_CONF_VALUE_lh_doallfunc_type(dfn))
  ------------------
  155|      0|    lh_CONF_VALUE_free(conf->data);
  ------------------
  |  |   75|      0|#define lh_CONF_VALUE_free(lh) OPENSSL_LH_free(ossl_check_CONF_VALUE_lh_type(lh))
  ------------------
  156|      0|}

NCONF_default:
   87|      2|{
   88|      2|    return &default_method;
   89|      2|}
conf_def.c:def_create:
  112|      2|{
  113|      2|    CONF *ret;
  114|       |
  115|      2|    ret = OPENSSL_malloc(sizeof(*ret));
  ------------------
  |  |  106|      2|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  116|      2|    if (ret != NULL)
  ------------------
  |  Branch (116:9): [True: 2, False: 0]
  ------------------
  117|      2|        if (meth->init(ret) == 0) {
  ------------------
  |  Branch (117:13): [True: 0, False: 2]
  ------------------
  118|      0|            OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  119|       |            ret = NULL;
  120|      0|        }
  121|      2|    return ret;
  122|      2|}
conf_def.c:def_init_default:
  125|      2|{
  126|      2|    if (conf == NULL)
  ------------------
  |  Branch (126:9): [True: 0, False: 2]
  ------------------
  127|      0|        return 0;
  128|       |
  129|      2|    memset(conf, 0, sizeof(*conf));
  130|      2|    conf->meth = &default_method;
  131|      2|    conf->meth_data = (void *)CONF_type_default;
  132|       |
  133|      2|    return 1;
  134|      2|}
conf_def.c:def_destroy:
  151|      2|{
  152|      2|    if (def_destroy_data(conf)) {
  ------------------
  |  Branch (152:9): [True: 2, False: 0]
  ------------------
  153|      2|        OPENSSL_free(conf);
  ------------------
  |  |  131|      2|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  154|      2|        return 1;
  155|      2|    }
  156|      0|    return 0;
  157|      2|}
conf_def.c:def_destroy_data:
  160|      2|{
  161|      2|    if (conf == NULL)
  ------------------
  |  Branch (161:9): [True: 0, False: 2]
  ------------------
  162|      0|        return 0;
  163|      2|    _CONF_free_data(conf);
  164|      2|    return 1;
  165|      2|}
conf_def.c:def_load:
  168|      2|{
  169|      2|    int ret;
  170|      2|    BIO *in = NULL;
  171|       |
  172|       |#ifdef OPENSSL_SYS_VMS
  173|       |    in = BIO_new_file(name, "r");
  174|       |#else
  175|      2|    in = BIO_new_file(name, "rb");
  176|      2|#endif
  177|      2|    if (in == NULL) {
  ------------------
  |  Branch (177:9): [True: 2, False: 0]
  ------------------
  178|      2|        if (ERR_GET_REASON(ERR_peek_last_error()) == BIO_R_NO_SUCH_FILE)
  ------------------
  |  |   46|      2|#define BIO_R_NO_SUCH_FILE 128
  ------------------
  |  Branch (178:13): [True: 2, False: 0]
  ------------------
  179|      2|            ERR_raise(ERR_LIB_CONF, CONF_R_NO_SUCH_FILE);
  ------------------
  |  |  404|      2|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      2|    (ERR_new(),                                                  \
  |  |  |  |  407|      2|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      2|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      2|        ERR_set_error)
  |  |  ------------------
  ------------------
  180|      0|        else
  181|      2|            ERR_raise(ERR_LIB_CONF, ERR_R_SYS_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  182|      2|        return 0;
  183|      2|    }
  184|       |
  185|      0|    ret = def_load_bio(conf, in, line);
  186|      0|    BIO_free(in);
  187|       |
  188|      0|    return ret;
  189|      2|}

ossl_err_load_CONF_strings:
   68|      2|{
   69|      2|#ifndef OPENSSL_NO_ERR
   70|      2|    if (ERR_reason_error_string(CONF_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (70:9): [True: 2, False: 0]
  ------------------
   71|      2|        ERR_load_strings_const(CONF_str_reasons);
   72|      2|#endif
   73|      2|    return 1;
   74|      2|}

NCONF_new_ex:
  183|      2|{
  184|      2|    CONF *ret;
  185|       |
  186|      2|    if (meth == NULL)
  ------------------
  |  Branch (186:9): [True: 2, False: 0]
  ------------------
  187|      2|        meth = NCONF_default();
  188|       |
  189|      2|    ret = meth->create(meth);
  190|      2|    if (ret == NULL) {
  ------------------
  |  Branch (190:9): [True: 0, False: 2]
  ------------------
  191|      0|        ERR_raise(ERR_LIB_CONF, ERR_R_CONF_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  192|      0|        return NULL;
  193|      0|    }
  194|      2|    ret->libctx = libctx;
  195|       |
  196|      2|    return ret;
  197|      2|}
NCONF_free:
  205|      2|{
  206|      2|    if (conf == NULL)
  ------------------
  |  Branch (206:9): [True: 0, False: 2]
  ------------------
  207|      0|        return;
  208|      2|    conf->meth->destroy(conf);
  209|      2|}
NCONF_load:
  252|      2|{
  253|      2|    if (conf == NULL) {
  ------------------
  |  Branch (253:9): [True: 0, False: 2]
  ------------------
  254|      0|        ERR_raise(ERR_LIB_CONF, CONF_R_NO_CONF);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  255|      0|        return 0;
  256|      0|    }
  257|       |
  258|      2|    return conf->meth->load(conf, file, eline);
  259|      2|}

CONF_modules_load_file_ex:
  192|      2|{
  193|      2|    char *file = NULL;
  194|      2|    CONF *conf = NULL;
  195|      2|    int ret = 0, diagnostics = OSSL_LIB_CTX_get_conf_diagnostics(libctx);
  196|       |
  197|      2|    ERR_set_mark();
  198|       |
  199|      2|    if (filename == NULL) {
  ------------------
  |  Branch (199:9): [True: 2, False: 0]
  ------------------
  200|      2|        file = CONF_get1_default_config_file();
  201|      2|        if (file == NULL)
  ------------------
  |  Branch (201:13): [True: 0, False: 2]
  ------------------
  202|      0|            goto err;
  203|      2|        if (*file == '\0') {
  ------------------
  |  Branch (203:13): [True: 0, False: 2]
  ------------------
  204|       |            /* Do not try to load an empty file name but do not error out */
  205|      0|            ret = 1;
  206|      0|            goto err;
  207|      0|        }
  208|      2|    } else {
  209|      0|        file = (char *)filename;
  210|      0|    }
  211|       |
  212|      2|    conf = NCONF_new_ex(libctx, NULL);
  213|      2|    if (conf == NULL)
  ------------------
  |  Branch (213:9): [True: 0, False: 2]
  ------------------
  214|      0|        goto err;
  215|       |
  216|      2|    if (NCONF_load(conf, file, NULL) <= 0) {
  ------------------
  |  Branch (216:9): [True: 2, False: 0]
  ------------------
  217|      2|        if ((flags & CONF_MFLAGS_IGNORE_MISSING_FILE) && (ERR_GET_REASON(ERR_peek_last_error()) == CONF_R_NO_SUCH_FILE)) {
  ------------------
  |  |  114|      2|#define CONF_MFLAGS_IGNORE_MISSING_FILE 0x10
  ------------------
                      if ((flags & CONF_MFLAGS_IGNORE_MISSING_FILE) && (ERR_GET_REASON(ERR_peek_last_error()) == CONF_R_NO_SUCH_FILE)) {
  ------------------
  |  |   34|      2|#define CONF_R_NO_SUCH_FILE 114
  ------------------
  |  Branch (217:13): [True: 2, False: 0]
  |  Branch (217:58): [True: 2, False: 0]
  ------------------
  218|      2|            ret = 1;
  219|      2|        }
  220|      2|        goto err;
  221|      2|    }
  222|       |
  223|      0|    ret = CONF_modules_load(conf, appname, flags);
  224|       |    /* CONF_modules_load() might change the diagnostics setting, reread it. */
  225|      0|    diagnostics = OSSL_LIB_CTX_get_conf_diagnostics(libctx);
  226|       |
  227|      2|err:
  228|      2|    if (filename == NULL)
  ------------------
  |  Branch (228:9): [True: 2, False: 0]
  ------------------
  229|      2|        OPENSSL_free(file);
  ------------------
  |  |  131|      2|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  230|      2|    NCONF_free(conf);
  231|       |
  232|      2|    if ((flags & CONF_MFLAGS_IGNORE_RETURN_CODES) != 0 && !diagnostics)
  ------------------
  |  |  111|      2|#define CONF_MFLAGS_IGNORE_RETURN_CODES 0x2
  ------------------
  |  Branch (232:9): [True: 2, False: 0]
  |  Branch (232:59): [True: 2, False: 0]
  ------------------
  233|      2|        ret = 1;
  234|       |
  235|      2|    if (ret > 0)
  ------------------
  |  Branch (235:9): [True: 2, False: 0]
  ------------------
  236|      2|        ERR_pop_to_mark();
  237|      0|    else
  238|      0|        ERR_clear_last_mark();
  239|       |
  240|      2|    return ret;
  241|      0|}
CONF_get1_default_config_file:
  685|      2|{
  686|      2|    const char *t;
  687|      2|    char *file, *sep = "";
  688|      2|    size_t size;
  689|       |
  690|      2|    if ((file = ossl_safe_getenv("OPENSSL_CONF")) != NULL)
  ------------------
  |  Branch (690:9): [True: 0, False: 2]
  ------------------
  691|      0|        return OPENSSL_strdup(file);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  692|       |
  693|      2|    t = X509_get_default_cert_area();
  694|       |    /*
  695|       |     * On windows systems with -DOSSL_WINCTX set, if the needed registry
  696|       |     * keys are not yet set, openssl applets will return, due to an inability
  697|       |     * to locate various directories, like the default cert area.  In that
  698|       |     * event, clone an empty string here, so that commands like openssl version
  699|       |     * continue to operate properly without needing to set OPENSSL_CONF.
  700|       |     * Applets like cms will fail gracefully later when they try to parse an
  701|       |     * empty config file
  702|       |     */
  703|      2|    if (t == NULL)
  ------------------
  |  Branch (703:9): [True: 0, False: 2]
  ------------------
  704|      0|        return OPENSSL_strdup("");
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  705|       |
  706|      2|#ifndef OPENSSL_SYS_VMS
  707|      2|    sep = "/";
  708|      2|#endif
  709|      2|    size = strlen(t) + strlen(sep) + strlen(OPENSSL_CONF) + 1;
  ------------------
  |  |   80|      2|#define OPENSSL_CONF "openssl.cnf"
  ------------------
  710|      2|    file = OPENSSL_malloc(size);
  ------------------
  |  |  106|      2|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  711|       |
  712|      2|    if (file == NULL)
  ------------------
  |  Branch (712:9): [True: 0, False: 2]
  ------------------
  713|      0|        return NULL;
  714|      2|    BIO_snprintf(file, size, "%s%s%s", t, sep, OPENSSL_CONF);
  ------------------
  |  |   80|      2|#define OPENSSL_CONF "openssl.cnf"
  ------------------
  715|       |
  716|      2|    return file;
  717|      2|}
CONF_parse_list:
  729|  1.32k|{
  730|  1.32k|    int ret;
  731|  1.32k|    const char *lstart, *tmpend, *p;
  732|       |
  733|  1.32k|    if (list_ == NULL) {
  ------------------
  |  Branch (733:9): [True: 0, False: 1.32k]
  ------------------
  734|      0|        ERR_raise(ERR_LIB_CONF, CONF_R_LIST_CANNOT_BE_NULL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  735|      0|        return 0;
  736|      0|    }
  737|       |
  738|  1.32k|    lstart = list_;
  739|  3.30k|    for (;;) {
  740|  3.30k|        if (nospc) {
  ------------------
  |  Branch (740:13): [True: 3.30k, False: 0]
  ------------------
  741|  3.96k|            while (*lstart && isspace((unsigned char)*lstart))
  ------------------
  |  Branch (741:20): [True: 3.96k, False: 0]
  |  Branch (741:31): [True: 660, False: 3.30k]
  ------------------
  742|    660|                lstart++;
  743|  3.30k|        }
  744|  3.30k|        p = strchr(lstart, sep);
  745|  3.30k|        if (p == lstart || *lstart == '\0')
  ------------------
  |  Branch (745:13): [True: 0, False: 3.30k]
  |  Branch (745:28): [True: 0, False: 3.30k]
  ------------------
  746|      0|            ret = list_cb(NULL, 0, arg);
  747|  3.30k|        else {
  748|  3.30k|            if (p)
  ------------------
  |  Branch (748:17): [True: 1.98k, False: 1.32k]
  ------------------
  749|  1.98k|                tmpend = p - 1;
  750|  1.32k|            else
  751|  1.32k|                tmpend = lstart + strlen(lstart) - 1;
  752|  3.30k|            if (nospc) {
  ------------------
  |  Branch (752:17): [True: 3.30k, False: 0]
  ------------------
  753|  3.30k|                while (isspace((unsigned char)*tmpend))
  ------------------
  |  Branch (753:24): [True: 660, False: 3.30k]
  ------------------
  754|    660|                    tmpend--;
  755|  3.30k|            }
  756|  3.30k|            ret = list_cb(lstart, (int)(tmpend - lstart + 1), arg);
  757|  3.30k|        }
  758|  3.30k|        if (ret <= 0)
  ------------------
  |  Branch (758:13): [True: 0, False: 3.30k]
  ------------------
  759|      0|            return ret;
  760|  3.30k|        if (p == NULL)
  ------------------
  |  Branch (760:13): [True: 1.32k, False: 1.98k]
  ------------------
  761|  1.32k|            return 1;
  762|  1.98k|        lstart = p + 1;
  763|  1.98k|    }
  764|  1.32k|}

ossl_config_int:
   47|      2|{
   48|      2|    int ret = 0;
   49|      2|#if defined(OPENSSL_INIT_DEBUG) || !defined(OPENSSL_SYS_UEFI)
   50|      2|    const char *filename;
   51|      2|    const char *appname;
   52|      2|    unsigned long flags;
   53|      2|#endif
   54|       |
   55|      2|    if (openssl_configured)
  ------------------
  |  Branch (55:9): [True: 0, False: 2]
  ------------------
   56|      0|        return 1;
   57|       |
   58|      2|#if defined(OPENSSL_INIT_DEBUG) || !defined(OPENSSL_SYS_UEFI)
   59|      2|    filename = settings ? settings->filename : NULL;
  ------------------
  |  Branch (59:16): [True: 0, False: 2]
  ------------------
   60|      2|    appname = settings ? settings->appname : NULL;
  ------------------
  |  Branch (60:15): [True: 0, False: 2]
  ------------------
   61|      2|    flags = settings ? settings->flags : DEFAULT_CONF_MFLAGS;
  ------------------
  |  |   17|      4|    (CONF_MFLAGS_DEFAULT_SECTION | CONF_MFLAGS_IGNORE_MISSING_FILE | CONF_MFLAGS_IGNORE_RETURN_CODES)
  |  |  ------------------
  |  |  |  |  115|      2|#define CONF_MFLAGS_DEFAULT_SECTION 0x20
  |  |  ------------------
  |  |                   (CONF_MFLAGS_DEFAULT_SECTION | CONF_MFLAGS_IGNORE_MISSING_FILE | CONF_MFLAGS_IGNORE_RETURN_CODES)
  |  |  ------------------
  |  |  |  |  114|      2|#define CONF_MFLAGS_IGNORE_MISSING_FILE 0x10
  |  |  ------------------
  |  |                   (CONF_MFLAGS_DEFAULT_SECTION | CONF_MFLAGS_IGNORE_MISSING_FILE | CONF_MFLAGS_IGNORE_RETURN_CODES)
  |  |  ------------------
  |  |  |  |  111|      2|#define CONF_MFLAGS_IGNORE_RETURN_CODES 0x2
  |  |  ------------------
  ------------------
  |  Branch (61:13): [True: 0, False: 2]
  ------------------
   62|      2|#endif
   63|       |
   64|       |#ifdef OPENSSL_INIT_DEBUG
   65|       |    fprintf(stderr, "OPENSSL_INIT: ossl_config_int(%s, %s, %lu)\n",
   66|       |        filename, appname, flags);
   67|       |#endif
   68|       |
   69|      2|#ifndef OPENSSL_SYS_UEFI
   70|      2|    ret = CONF_modules_load_file_ex(OSSL_LIB_CTX_get0_global_default(),
   71|      2|        filename, appname, flags);
   72|       |#else
   73|       |    ret = 1;
   74|       |#endif
   75|      2|    openssl_configured = 1;
   76|      2|    return ret;
   77|      2|}

conf_ssl_name_find:
  148|    220|{
  149|    220|    size_t i;
  150|    220|    const struct ssl_conf_name_st *nm;
  151|       |
  152|    220|    if (name == NULL)
  ------------------
  |  Branch (152:9): [True: 0, False: 220]
  ------------------
  153|      0|        return 0;
  154|    220|    for (i = 0, nm = ssl_names; i < ssl_names_count; i++, nm++) {
  ------------------
  |  Branch (154:33): [True: 0, False: 220]
  ------------------
  155|      0|        if (strcmp(nm->name, name) == 0) {
  ------------------
  |  Branch (155:13): [True: 0, False: 0]
  ------------------
  156|      0|            *idx = i;
  157|      0|            return 1;
  158|      0|        }
  159|      0|    }
  160|    220|    return 0;
  161|    220|}

ossl_lib_ctx_write_lock:
   59|     16|{
   60|     16|    if ((ctx = ossl_lib_ctx_get_concrete(ctx)) == NULL)
  ------------------
  |  Branch (60:9): [True: 0, False: 16]
  ------------------
   61|      0|        return 0;
   62|     16|    return CRYPTO_THREAD_write_lock(ctx->lock);
   63|     16|}
ossl_lib_ctx_read_lock:
   66|    344|{
   67|    344|    if ((ctx = ossl_lib_ctx_get_concrete(ctx)) == NULL)
  ------------------
  |  Branch (67:9): [True: 0, False: 344]
  ------------------
   68|      0|        return 0;
   69|    344|    return CRYPTO_THREAD_read_lock(ctx->lock);
   70|    344|}
ossl_lib_ctx_unlock:
   73|    360|{
   74|    360|    if ((ctx = ossl_lib_ctx_get_concrete(ctx)) == NULL)
  ------------------
  |  Branch (74:9): [True: 0, False: 360]
  ------------------
   75|      0|        return 0;
   76|    360|    return CRYPTO_THREAD_unlock(ctx->lock);
   77|    360|}
OSSL_LIB_CTX_free:
  486|  15.6k|{
  487|  15.6k|    if (ctx == NULL || ossl_lib_ctx_is_default(ctx))
  ------------------
  |  Branch (487:9): [True: 15.6k, False: 0]
  |  Branch (487:24): [True: 0, False: 0]
  ------------------
  488|  15.6k|        return;
  489|       |
  490|      0|#ifndef FIPS_MODULE
  491|      0|    if (ctx->ischild)
  ------------------
  |  Branch (491:9): [True: 0, False: 0]
  ------------------
  492|      0|        ossl_provider_deinit_child(ctx);
  493|      0|#endif
  494|      0|    context_deinit(ctx);
  495|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  496|      0|}
OSSL_LIB_CTX_get0_global_default:
  500|      2|{
  501|      2|    if (!RUN_ONCE(&default_context_init, default_context_do_init))
  ------------------
  |  |  130|      2|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (501:9): [True: 0, False: 2]
  ------------------
  502|      0|        return NULL;
  503|       |
  504|      2|    return &default_context_int;
  505|      2|}
OSSL_LIB_CTX_set0_default:
  508|    220|{
  509|    220|    OSSL_LIB_CTX *current_defctx;
  510|       |
  511|    220|    if ((current_defctx = get_default_context()) != NULL) {
  ------------------
  |  Branch (511:9): [True: 220, False: 0]
  ------------------
  512|    220|        if (libctx != NULL)
  ------------------
  |  Branch (512:13): [True: 0, False: 220]
  ------------------
  513|      0|            set_default_context(libctx);
  514|    220|        return current_defctx;
  515|    220|    }
  516|       |
  517|      0|    return NULL;
  518|    220|}
ossl_lib_ctx_get_concrete:
  531|  1.09M|{
  532|  1.09M|#ifndef FIPS_MODULE
  533|  1.09M|    if (ctx == NULL)
  ------------------
  |  Branch (533:9): [True: 839k, False: 255k]
  ------------------
  534|   839k|        return get_default_context();
  535|   255k|#endif
  536|   255k|    return ctx;
  537|  1.09M|}
ossl_lib_ctx_is_default:
  540|  5.16k|{
  541|  5.16k|#ifndef FIPS_MODULE
  542|  5.16k|    if (ctx == NULL || ctx == get_default_context())
  ------------------
  |  Branch (542:9): [True: 4.00k, False: 1.15k]
  |  Branch (542:24): [True: 1.15k, False: 0]
  ------------------
  543|  5.16k|        return 1;
  544|      0|#endif
  545|      0|    return 0;
  546|  5.16k|}
ossl_lib_ctx_is_global_default:
  549|  3.52k|{
  550|  3.52k|#ifndef FIPS_MODULE
  551|  3.52k|    if (ossl_lib_ctx_get_concrete(ctx) == &default_context_int)
  ------------------
  |  Branch (551:9): [True: 3.52k, False: 0]
  ------------------
  552|  3.52k|        return 1;
  553|      0|#endif
  554|      0|    return 0;
  555|  3.52k|}
ossl_lib_ctx_get_data:
  558|   360k|{
  559|   360k|    ctx = ossl_lib_ctx_get_concrete(ctx);
  560|   360k|    if (ctx == NULL)
  ------------------
  |  Branch (560:9): [True: 0, False: 360k]
  ------------------
  561|      0|        return NULL;
  562|       |
  563|   360k|    switch (index) {
  564|    790|    case OSSL_LIB_CTX_PROPERTY_STRING_INDEX:
  ------------------
  |  |   99|    790|#define OSSL_LIB_CTX_PROPERTY_STRING_INDEX 3
  ------------------
  |  Branch (564:5): [True: 790, False: 360k]
  ------------------
  565|    790|        return ctx->property_string_data;
  566|  39.1k|    case OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX:
  ------------------
  |  |   96|  39.1k|#define OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX 0
  ------------------
  |  Branch (566:5): [True: 39.1k, False: 321k]
  ------------------
  567|  39.1k|        return ctx->evp_method_store;
  568|  4.01k|    case OSSL_LIB_CTX_PROVIDER_STORE_INDEX:
  ------------------
  |  |   97|  4.01k|#define OSSL_LIB_CTX_PROVIDER_STORE_INDEX 1
  ------------------
  |  Branch (568:5): [True: 4.01k, False: 356k]
  ------------------
  569|  4.01k|        return ctx->provider_store;
  570|   273k|    case OSSL_LIB_CTX_NAMEMAP_INDEX:
  ------------------
  |  |  100|   273k|#define OSSL_LIB_CTX_NAMEMAP_INDEX 4
  ------------------
  |  Branch (570:5): [True: 273k, False: 87.4k]
  ------------------
  571|   273k|        return ctx->namemap;
  572|    360|    case OSSL_LIB_CTX_PROPERTY_DEFN_INDEX:
  ------------------
  |  |   98|    360|#define OSSL_LIB_CTX_PROPERTY_DEFN_INDEX 2
  ------------------
  |  Branch (572:5): [True: 360, False: 360k]
  ------------------
  573|    360|        return ctx->property_defns;
  574|     53|    case OSSL_LIB_CTX_GLOBAL_PROPERTIES:
  ------------------
  |  |  112|     53|#define OSSL_LIB_CTX_GLOBAL_PROPERTIES 14
  ------------------
  |  Branch (574:5): [True: 53, False: 360k]
  ------------------
  575|     53|        return ctx->global_properties;
  576|  10.8k|    case OSSL_LIB_CTX_DRBG_INDEX:
  ------------------
  |  |  101|  10.8k|#define OSSL_LIB_CTX_DRBG_INDEX 5
  ------------------
  |  Branch (576:5): [True: 10.8k, False: 350k]
  ------------------
  577|  10.8k|        return ctx->drbg;
  578|      0|    case OSSL_LIB_CTX_DRBG_NONCE_INDEX:
  ------------------
  |  |  102|      0|#define OSSL_LIB_CTX_DRBG_NONCE_INDEX 6
  ------------------
  |  Branch (578:5): [True: 0, False: 360k]
  ------------------
  579|      0|        return ctx->drbg_nonce;
  580|      0|#ifndef FIPS_MODULE
  581|      0|    case OSSL_LIB_CTX_PROVIDER_CONF_INDEX:
  ------------------
  |  |  114|      0|#define OSSL_LIB_CTX_PROVIDER_CONF_INDEX 16
  ------------------
  |  Branch (581:5): [True: 0, False: 360k]
  ------------------
  582|      0|        return ctx->provider_conf;
  583|      0|    case OSSL_LIB_CTX_BIO_CORE_INDEX:
  ------------------
  |  |  115|      0|#define OSSL_LIB_CTX_BIO_CORE_INDEX 17
  ------------------
  |  Branch (583:5): [True: 0, False: 360k]
  ------------------
  584|      0|        return ctx->bio_core;
  585|      0|    case OSSL_LIB_CTX_CHILD_PROVIDER_INDEX:
  ------------------
  |  |  116|      0|#define OSSL_LIB_CTX_CHILD_PROVIDER_INDEX 18
  ------------------
  |  Branch (585:5): [True: 0, False: 360k]
  ------------------
  586|      0|        return ctx->child_provider;
  587|     92|    case OSSL_LIB_CTX_DECODER_STORE_INDEX:
  ------------------
  |  |  109|     92|#define OSSL_LIB_CTX_DECODER_STORE_INDEX 11
  ------------------
  |  Branch (587:5): [True: 92, False: 360k]
  ------------------
  588|     92|        return ctx->decoder_store;
  589|  31.9k|    case OSSL_LIB_CTX_DECODER_CACHE_INDEX:
  ------------------
  |  |  118|  31.9k|#define OSSL_LIB_CTX_DECODER_CACHE_INDEX 20
  ------------------
  |  Branch (589:5): [True: 31.9k, False: 328k]
  ------------------
  590|  31.9k|        return ctx->decoder_cache;
  591|      0|    case OSSL_LIB_CTX_ENCODER_STORE_INDEX:
  ------------------
  |  |  108|      0|#define OSSL_LIB_CTX_ENCODER_STORE_INDEX 10
  ------------------
  |  Branch (591:5): [True: 0, False: 360k]
  ------------------
  592|      0|        return ctx->encoder_store;
  593|      0|    case OSSL_LIB_CTX_STORE_LOADER_STORE_INDEX:
  ------------------
  |  |  113|      0|#define OSSL_LIB_CTX_STORE_LOADER_STORE_INDEX 15
  ------------------
  |  Branch (593:5): [True: 0, False: 360k]
  ------------------
  594|      0|        return ctx->store_loader_store;
  595|      0|    case OSSL_LIB_CTX_SELF_TEST_CB_INDEX:
  ------------------
  |  |  110|      0|#define OSSL_LIB_CTX_SELF_TEST_CB_INDEX 12
  ------------------
  |  Branch (595:5): [True: 0, False: 360k]
  ------------------
  596|      0|        return ctx->self_test_cb;
  597|      0|    case OSSL_LIB_CTX_INDICATOR_CB_INDEX:
  ------------------
  |  |  120|      0|#define OSSL_LIB_CTX_INDICATOR_CB_INDEX 22
  ------------------
  |  Branch (597:5): [True: 0, False: 360k]
  ------------------
  598|      0|        return ctx->indicator_cb;
  599|      0|#endif
  600|      0|#ifndef OPENSSL_NO_THREAD_POOL
  601|      0|    case OSSL_LIB_CTX_THREAD_INDEX:
  ------------------
  |  |  117|      0|#define OSSL_LIB_CTX_THREAD_INDEX 19
  ------------------
  |  Branch (601:5): [True: 0, False: 360k]
  ------------------
  602|      0|        return ctx->threads;
  603|      0|#endif
  604|       |
  605|       |#ifdef FIPS_MODULE
  606|       |    case OSSL_LIB_CTX_FIPS_PROV_INDEX:
  607|       |        return ctx->fips_prov;
  608|       |#endif
  609|       |
  610|    222|    case OSSL_LIB_CTX_COMP_METHODS:
  ------------------
  |  |  119|    222|#define OSSL_LIB_CTX_COMP_METHODS 21
  ------------------
  |  Branch (610:5): [True: 222, False: 360k]
  ------------------
  611|    222|        return (void *)&ctx->comp_methods;
  612|       |
  613|      0|    default:
  ------------------
  |  Branch (613:5): [True: 0, False: 360k]
  ------------------
  614|       |        return NULL;
  615|   360k|    }
  616|   360k|}
OSSL_LIB_CTX_get_data:
  619|    222|{
  620|    222|    return ossl_lib_ctx_get_data(ctx, index);
  621|    222|}
ossl_lib_ctx_get_ex_data_global:
  624|   711k|{
  625|   711k|    ctx = ossl_lib_ctx_get_concrete(ctx);
  626|   711k|    if (ctx == NULL)
  ------------------
  |  Branch (626:9): [True: 0, False: 711k]
  ------------------
  627|      0|        return NULL;
  628|   711k|    return &ctx->global;
  629|   711k|}
ossl_lib_ctx_get_descriptor:
  632|  3.52k|{
  633|       |#ifdef FIPS_MODULE
  634|       |    return "FIPS internal library context";
  635|       |#else
  636|  3.52k|    if (ossl_lib_ctx_is_global_default(libctx))
  ------------------
  |  Branch (636:9): [True: 3.52k, False: 0]
  ------------------
  637|  3.52k|        return "Global default library context";
  638|      0|    if (ossl_lib_ctx_is_default(libctx))
  ------------------
  |  Branch (638:9): [True: 0, False: 0]
  ------------------
  639|      0|        return "Thread-local default library context";
  640|      0|    return "Non-default library context";
  641|      0|#endif
  642|      0|}
OSSL_LIB_CTX_get_conf_diagnostics:
  645|      2|{
  646|      2|    libctx = ossl_lib_ctx_get_concrete(libctx);
  647|      2|    if (libctx == NULL)
  ------------------
  |  Branch (647:9): [True: 0, False: 2]
  ------------------
  648|      0|        return 0;
  649|      2|    return libctx->conf_diagnostics;
  650|      2|}
context.c:context_init:
   91|      2|{
   92|      2|    int exdata_done = 0;
   93|       |
   94|      2|    ctx->lock = CRYPTO_THREAD_lock_new();
   95|      2|    if (ctx->lock == NULL)
  ------------------
  |  Branch (95:9): [True: 0, False: 2]
  ------------------
   96|      0|        goto err;
   97|       |
   98|       |    /* Initialize ex_data. */
   99|      2|    if (!ossl_do_ex_data_init(ctx))
  ------------------
  |  Branch (99:9): [True: 0, False: 2]
  ------------------
  100|      0|        goto err;
  101|      2|    exdata_done = 1;
  102|       |
  103|       |    /* P2. We want evp_method_store to be cleaned up before the provider store */
  104|      2|    ctx->evp_method_store = ossl_method_store_new(ctx);
  105|      2|    if (ctx->evp_method_store == NULL)
  ------------------
  |  Branch (105:9): [True: 0, False: 2]
  ------------------
  106|      0|        goto err;
  107|      2|    OSSL_TRACE1(QUERY, "context_init: allocating store %p\n", ctx->evp_method_store);
  ------------------
  |  |  293|      2|    OSSL_TRACEV(category, (trc_out, format, arg1))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  108|       |
  109|      2|#ifndef FIPS_MODULE
  110|       |    /* P2. Must be freed before the provider store is freed */
  111|      2|    ctx->provider_conf = ossl_prov_conf_ctx_new(ctx);
  112|      2|    if (ctx->provider_conf == NULL)
  ------------------
  |  Branch (112:9): [True: 0, False: 2]
  ------------------
  113|      0|        goto err;
  114|      2|#endif
  115|       |
  116|       |    /* P2. */
  117|      2|    ctx->drbg = ossl_rand_ctx_new(ctx);
  118|      2|    if (ctx->drbg == NULL)
  ------------------
  |  Branch (118:9): [True: 0, False: 2]
  ------------------
  119|      0|        goto err;
  120|       |
  121|      2|#ifndef FIPS_MODULE
  122|       |    /*
  123|       |     * P2. We want decoder_store/decoder_cache to be cleaned up before the
  124|       |     * provider store
  125|       |     */
  126|      2|    ctx->decoder_store = ossl_method_store_new(ctx);
  127|      2|    if (ctx->decoder_store == NULL)
  ------------------
  |  Branch (127:9): [True: 0, False: 2]
  ------------------
  128|      0|        goto err;
  129|      2|    ctx->decoder_cache = ossl_decoder_cache_new(ctx);
  130|      2|    if (ctx->decoder_cache == NULL)
  ------------------
  |  Branch (130:9): [True: 0, False: 2]
  ------------------
  131|      0|        goto err;
  132|       |
  133|       |    /* P2. We want encoder_store to be cleaned up before the provider store */
  134|      2|    ctx->encoder_store = ossl_method_store_new(ctx);
  135|      2|    if (ctx->encoder_store == NULL)
  ------------------
  |  Branch (135:9): [True: 0, False: 2]
  ------------------
  136|      0|        goto err;
  137|       |
  138|       |    /* P2. We want loader_store to be cleaned up before the provider store */
  139|      2|    ctx->store_loader_store = ossl_method_store_new(ctx);
  140|      2|    if (ctx->store_loader_store == NULL)
  ------------------
  |  Branch (140:9): [True: 0, False: 2]
  ------------------
  141|      0|        goto err;
  142|      2|#endif
  143|       |
  144|       |    /* P1. Needs to be freed before the child provider data is freed */
  145|      2|    ctx->provider_store = ossl_provider_store_new(ctx);
  146|      2|    if (ctx->provider_store == NULL)
  ------------------
  |  Branch (146:9): [True: 0, False: 2]
  ------------------
  147|      0|        goto err;
  148|       |
  149|       |    /* Default priority. */
  150|      2|    ctx->property_string_data = ossl_property_string_data_new(ctx);
  151|      2|    if (ctx->property_string_data == NULL)
  ------------------
  |  Branch (151:9): [True: 0, False: 2]
  ------------------
  152|      0|        goto err;
  153|       |
  154|      2|    ctx->namemap = ossl_stored_namemap_new(ctx);
  155|      2|    if (ctx->namemap == NULL)
  ------------------
  |  Branch (155:9): [True: 0, False: 2]
  ------------------
  156|      0|        goto err;
  157|       |
  158|      2|    ctx->property_defns = ossl_property_defns_new(ctx);
  159|      2|    if (ctx->property_defns == NULL)
  ------------------
  |  Branch (159:9): [True: 0, False: 2]
  ------------------
  160|      0|        goto err;
  161|       |
  162|      2|    ctx->global_properties = ossl_ctx_global_properties_new(ctx);
  163|      2|    if (ctx->global_properties == NULL)
  ------------------
  |  Branch (163:9): [True: 0, False: 2]
  ------------------
  164|      0|        goto err;
  165|       |
  166|      2|#ifndef FIPS_MODULE
  167|      2|    ctx->bio_core = ossl_bio_core_globals_new(ctx);
  168|      2|    if (ctx->bio_core == NULL)
  ------------------
  |  Branch (168:9): [True: 0, False: 2]
  ------------------
  169|      0|        goto err;
  170|      2|#endif
  171|       |
  172|      2|    ctx->drbg_nonce = ossl_prov_drbg_nonce_ctx_new(ctx);
  173|      2|    if (ctx->drbg_nonce == NULL)
  ------------------
  |  Branch (173:9): [True: 0, False: 2]
  ------------------
  174|      0|        goto err;
  175|       |
  176|      2|#ifndef FIPS_MODULE
  177|      2|    ctx->self_test_cb = ossl_self_test_set_callback_new(ctx);
  178|      2|    if (ctx->self_test_cb == NULL)
  ------------------
  |  Branch (178:9): [True: 0, False: 2]
  ------------------
  179|      0|        goto err;
  180|      2|    ctx->indicator_cb = ossl_indicator_set_callback_new(ctx);
  181|      2|    if (ctx->indicator_cb == NULL)
  ------------------
  |  Branch (181:9): [True: 0, False: 2]
  ------------------
  182|      0|        goto err;
  183|      2|#endif
  184|       |
  185|       |#ifdef FIPS_MODULE
  186|       |    if (!ossl_thread_event_ctx_new(ctx))
  187|       |        goto err;
  188|       |
  189|       |    ctx->fips_prov = ossl_fips_prov_ossl_ctx_new(ctx);
  190|       |    if (ctx->fips_prov == NULL)
  191|       |        goto err;
  192|       |#endif
  193|       |
  194|      2|#ifndef OPENSSL_NO_THREAD_POOL
  195|      2|    ctx->threads = ossl_threads_ctx_new(ctx);
  196|      2|    if (ctx->threads == NULL)
  ------------------
  |  Branch (196:9): [True: 0, False: 2]
  ------------------
  197|      0|        goto err;
  198|      2|#endif
  199|       |
  200|       |    /* Low priority. */
  201|      2|#ifndef FIPS_MODULE
  202|      2|    ctx->child_provider = ossl_child_prov_ctx_new(ctx);
  203|      2|    if (ctx->child_provider == NULL)
  ------------------
  |  Branch (203:9): [True: 0, False: 2]
  ------------------
  204|      0|        goto err;
  205|      2|#endif
  206|       |
  207|       |    /* Everything depends on properties, so we also pre-initialise that */
  208|      2|    if (!ossl_property_parse_init(ctx))
  ------------------
  |  Branch (208:9): [True: 0, False: 2]
  ------------------
  209|      0|        goto err;
  210|       |
  211|      2|#ifndef FIPS_MODULE
  212|      2|    ctx->comp_methods = ossl_load_builtin_compressions();
  213|      2|#endif
  214|       |
  215|      2|    return 1;
  216|       |
  217|      0|err:
  218|      0|    context_deinit_objs(ctx);
  219|       |
  220|      0|    if (exdata_done)
  ------------------
  |  Branch (220:9): [True: 0, False: 0]
  ------------------
  221|      0|        ossl_crypto_cleanup_all_ex_data_int(ctx);
  222|       |
  223|      0|    CRYPTO_THREAD_lock_free(ctx->lock);
  224|      0|    memset(ctx, '\0', sizeof(*ctx));
  225|      0|    return 0;
  226|      2|}
context.c:default_context_do_init:
  383|      2|{
  384|      2|    if (!CRYPTO_THREAD_init_local(&default_context_thread_local, NULL))
  ------------------
  |  Branch (384:9): [True: 0, False: 2]
  ------------------
  385|      0|        goto err;
  386|       |
  387|      2|    if (!context_init(&default_context_int))
  ------------------
  |  Branch (387:9): [True: 0, False: 2]
  ------------------
  388|      0|        goto deinit_thread;
  389|       |
  390|      2|    default_context_inited = 1;
  391|      2|    return 1;
  392|       |
  393|      0|deinit_thread:
  394|      0|    CRYPTO_THREAD_cleanup_local(&default_context_thread_local);
  395|      0|err:
  396|      0|    return 0;
  397|      0|}
context.c:get_default_context:
  417|   840k|{
  418|   840k|    OSSL_LIB_CTX *current_defctx = get_thread_default_context();
  419|       |
  420|   840k|    if (current_defctx == NULL && default_context_inited)
  ------------------
  |  Branch (420:9): [True: 840k, False: 0]
  |  Branch (420:35): [True: 840k, False: 0]
  ------------------
  421|   840k|        current_defctx = &default_context_int;
  422|   840k|    return current_defctx;
  423|   840k|}
context.c:get_thread_default_context:
  409|   840k|{
  410|   840k|    if (!RUN_ONCE(&default_context_init, default_context_do_init))
  ------------------
  |  |  130|   840k|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 840k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (410:9): [True: 0, False: 840k]
  ------------------
  411|      0|        return NULL;
  412|       |
  413|   840k|    return CRYPTO_THREAD_get_local(&default_context_thread_local);
  414|   840k|}

ossl_algorithm_do_all:
  149|  3.57k|{
  150|  3.57k|    struct algorithm_data_st cbdata = {
  151|  3.57k|        0,
  152|  3.57k|    };
  153|       |
  154|  3.57k|    cbdata.libctx = libctx;
  155|  3.57k|    cbdata.operation_id = operation_id;
  156|  3.57k|    cbdata.pre = pre;
  157|  3.57k|    cbdata.reserve_store = reserve_store;
  158|  3.57k|    cbdata.fn = fn;
  159|  3.57k|    cbdata.unreserve_store = unreserve_store;
  160|  3.57k|    cbdata.post = post;
  161|  3.57k|    cbdata.data = data;
  162|       |
  163|  3.57k|    if (provider == NULL) {
  ------------------
  |  Branch (163:9): [True: 3.57k, False: 2]
  ------------------
  164|  3.57k|        ossl_provider_doall_activated(libctx, algorithm_do_this, &cbdata);
  165|  3.57k|    } else {
  166|      2|        OSSL_LIB_CTX *libctx2 = ossl_provider_libctx(provider);
  167|       |
  168|       |        /*
  169|       |         * If a provider is given, its library context MUST match the library
  170|       |         * context we're passed.  If this turns out not to be true, there is
  171|       |         * a programming error in the functions up the call stack.
  172|       |         */
  173|      2|        if (!ossl_assert(ossl_lib_ctx_get_concrete(libctx)
  ------------------
  |  |   52|      2|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      2|    __FILE__, __LINE__)
  ------------------
  |  Branch (173:13): [True: 0, False: 2]
  ------------------
  174|      2|                == ossl_lib_ctx_get_concrete(libctx2)))
  175|      0|            return;
  176|       |
  177|      2|        cbdata.libctx = libctx2;
  178|      2|        algorithm_do_this(provider, &cbdata);
  179|      2|    }
  180|  3.57k|}
ossl_algorithm_get1_first_name:
  183|    344|{
  184|    344|    const char *first_name_end = NULL;
  185|    344|    size_t first_name_len = 0;
  186|    344|    char *ret;
  187|       |
  188|    344|    if (algo->algorithm_names == NULL)
  ------------------
  |  Branch (188:9): [True: 0, False: 344]
  ------------------
  189|      0|        return NULL;
  190|       |
  191|    344|    first_name_end = strchr(algo->algorithm_names, ':');
  192|    344|    if (first_name_end == NULL)
  ------------------
  |  Branch (192:9): [True: 158, False: 186]
  ------------------
  193|    158|        first_name_len = strlen(algo->algorithm_names);
  194|    186|    else
  195|    186|        first_name_len = first_name_end - algo->algorithm_names;
  196|       |
  197|    344|    ret = OPENSSL_strndup(algo->algorithm_names, first_name_len);
  ------------------
  |  |  137|    344|    CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  198|    344|    return ret;
  199|    344|}
core_algorithm.c:algorithm_do_this:
  103|  3.57k|{
  104|  3.57k|    struct algorithm_data_st *data = cbdata;
  105|  3.57k|    int first_operation = 1;
  106|  3.57k|    int last_operation = OSSL_OP__HIGHEST;
  ------------------
  |  |  299|  3.57k|#define OSSL_OP__HIGHEST 22
  ------------------
  107|  3.57k|    int cur_operation;
  108|  3.57k|    int ok = 1;
  109|       |
  110|  3.57k|    if (data->operation_id != 0)
  ------------------
  |  Branch (110:9): [True: 3.57k, False: 0]
  ------------------
  111|  3.57k|        first_operation = last_operation = data->operation_id;
  112|       |
  113|  3.57k|    for (cur_operation = first_operation;
  114|  7.15k|        cur_operation <= last_operation;
  ------------------
  |  Branch (114:9): [True: 3.57k, False: 3.57k]
  ------------------
  115|  3.57k|        cur_operation++) {
  116|  3.57k|        int no_store = 0; /* Assume caching is ok */
  117|  3.57k|        const OSSL_ALGORITHM *map = NULL;
  118|  3.57k|        int ret = 0;
  119|       |
  120|  3.57k|        map = ossl_provider_query_operation(provider, cur_operation,
  121|  3.57k|            &no_store);
  122|  3.57k|        ret = algorithm_do_map(provider, map, cur_operation, no_store, data);
  123|  3.57k|        ossl_provider_unquery_operation(provider, cur_operation, map);
  124|       |
  125|  3.57k|        if (ret < 0)
  ------------------
  |  Branch (125:13): [True: 0, False: 3.57k]
  ------------------
  126|       |            /* Hard error, bail out immediately! */
  127|      0|            return 0;
  128|       |
  129|       |        /* If post-condition not fulfilled, set general failure */
  130|  3.57k|        if (!ret)
  ------------------
  |  Branch (130:13): [True: 0, False: 3.57k]
  ------------------
  131|      0|            ok = 0;
  132|  3.57k|    }
  133|       |
  134|  3.57k|    return ok;
  135|  3.57k|}
core_algorithm.c:algorithm_do_map:
   44|  3.57k|{
   45|  3.57k|    struct algorithm_data_st *data = cbdata;
   46|  3.57k|    int ret = 0;
   47|       |
   48|  3.57k|    if (!data->reserve_store(no_store, data->data))
  ------------------
  |  Branch (48:9): [True: 0, False: 3.57k]
  ------------------
   49|       |        /* Error, bail out! */
   50|      0|        return -1;
   51|       |
   52|       |    /* Do we fulfill pre-conditions? */
   53|  3.57k|    if (data->pre == NULL) {
  ------------------
  |  Branch (53:9): [True: 0, False: 3.57k]
  ------------------
   54|       |        /* If there is no pre-condition function, assume "yes" */
   55|      0|        ret = 1;
   56|  3.57k|    } else if (!data->pre(provider, cur_operation, no_store, data->data,
  ------------------
  |  Branch (56:16): [True: 0, False: 3.57k]
  ------------------
   57|  3.57k|                   &ret)) {
   58|       |        /* Error, bail out! */
   59|      0|        ret = -1;
   60|      0|        goto end;
   61|      0|    }
   62|       |
   63|       |    /*
   64|       |     * If pre-condition not fulfilled don't add this set of implementations,
   65|       |     * but do continue with the next.  This simply means that another thread
   66|       |     * got to it first.
   67|       |     */
   68|  3.57k|    if (ret == 0) {
  ------------------
  |  Branch (68:9): [True: 3.56k, False: 7]
  ------------------
   69|  3.56k|        ret = 1;
   70|  3.56k|        goto end;
   71|  3.56k|    }
   72|       |
   73|      7|    if (map != NULL) {
  ------------------
  |  Branch (73:9): [True: 7, False: 0]
  ------------------
   74|      7|        const OSSL_ALGORITHM *thismap;
   75|       |
   76|    351|        for (thismap = map; thismap->algorithm_names != NULL; thismap++)
  ------------------
  |  Branch (76:29): [True: 344, False: 7]
  ------------------
   77|    344|            data->fn(provider, thismap, no_store, data->data);
   78|      7|    }
   79|       |
   80|       |    /* Do we fulfill post-conditions? */
   81|      7|    if (data->post == NULL) {
  ------------------
  |  Branch (81:9): [True: 0, False: 7]
  ------------------
   82|       |        /* If there is no post-condition function, assume "yes" */
   83|      0|        ret = 1;
   84|      7|    } else if (!data->post(provider, cur_operation, no_store, data->data,
  ------------------
  |  Branch (84:16): [True: 0, False: 7]
  ------------------
   85|      7|                   &ret)) {
   86|       |        /* Error, bail out! */
   87|      0|        ret = -1;
   88|      0|    }
   89|       |
   90|  3.57k|end:
   91|  3.57k|    data->unreserve_store(data->data);
   92|       |
   93|  3.57k|    return ret;
   94|      7|}

ossl_method_construct:
  137|  3.57k|{
  138|  3.57k|    void *method = NULL;
  139|  3.57k|    OSSL_PROVIDER *provider = provider_rw != NULL ? *provider_rw : NULL;
  ------------------
  |  Branch (139:31): [True: 3.57k, False: 0]
  ------------------
  140|  3.57k|    struct construct_data_st cbdata;
  141|       |
  142|       |    /*
  143|       |     * We might be tempted to try to look into the method store without
  144|       |     * constructing to see if we can find our method there already.
  145|       |     * Unfortunately that does not work well if the query contains
  146|       |     * optional properties as newly loaded providers can match them better.
  147|       |     * We trust that ossl_method_construct_precondition() and
  148|       |     * ossl_method_construct_postcondition() make sure that the
  149|       |     * ossl_algorithm_do_all() does very little when methods from
  150|       |     * a provider have already been constructed.
  151|       |     */
  152|       |
  153|  3.57k|    cbdata.store = NULL;
  154|  3.57k|    cbdata.force_store = force_store;
  155|  3.57k|    cbdata.mcm = mcm;
  156|  3.57k|    cbdata.mcm_data = mcm_data;
  157|  3.57k|    ossl_algorithm_do_all(libctx, operation_id, provider,
  158|  3.57k|        ossl_method_construct_precondition,
  159|  3.57k|        ossl_method_construct_reserve_store,
  160|  3.57k|        ossl_method_construct_this,
  161|  3.57k|        ossl_method_construct_unreserve_store,
  162|  3.57k|        ossl_method_construct_postcondition,
  163|  3.57k|        &cbdata);
  164|       |
  165|       |    /* If there is a temporary store, try there first */
  166|  3.57k|    if (cbdata.store != NULL)
  ------------------
  |  Branch (166:9): [True: 0, False: 3.57k]
  ------------------
  167|      0|        method = mcm->get(cbdata.store, (const OSSL_PROVIDER **)provider_rw,
  168|      0|            mcm_data);
  169|       |
  170|       |    /* If no method was found yet, try the global store */
  171|  3.57k|    if (method == NULL)
  ------------------
  |  Branch (171:9): [True: 3.57k, False: 0]
  ------------------
  172|  3.57k|        method = mcm->get(NULL, (const OSSL_PROVIDER **)provider_rw, mcm_data);
  173|       |
  174|  3.57k|    return method;
  175|  3.57k|}
core_fetch.c:ossl_method_construct_precondition:
   63|  3.57k|{
   64|  3.57k|    if (!ossl_assert(result != NULL)) {
  ------------------
  |  |   52|  3.57k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  3.57k|    __FILE__, __LINE__)
  ------------------
  |  Branch (64:9): [True: 0, False: 3.57k]
  ------------------
   65|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   66|      0|        return 0;
   67|      0|    }
   68|       |
   69|       |    /* Assume that no bits are set */
   70|  3.57k|    *result = 0;
   71|       |
   72|       |    /* No flag bits for temporary stores */
   73|  3.57k|    if (!is_temporary_method_store(no_store, cbdata)
  ------------------
  |  Branch (73:9): [True: 3.57k, False: 0]
  ------------------
   74|  3.57k|        && !ossl_provider_test_operation_bit(provider, operation_id, result))
  ------------------
  |  Branch (74:12): [True: 0, False: 3.57k]
  ------------------
   75|      0|        return 0;
   76|       |
   77|       |    /*
   78|       |     * The result we get tells if methods have already been constructed.
   79|       |     * However, we want to tell whether construction should happen (true)
   80|       |     * or not (false), which is the opposite of what we got.
   81|       |     */
   82|  3.57k|    *result = !*result;
   83|       |
   84|  3.57k|    return 1;
   85|  3.57k|}
core_fetch.c:is_temporary_method_store:
   29|  7.15k|{
   30|  7.15k|    struct construct_data_st *data = cbdata;
   31|       |
   32|  7.15k|    return no_store && !data->force_store;
  ------------------
  |  Branch (32:12): [True: 0, False: 7.15k]
  |  Branch (32:24): [True: 0, False: 0]
  ------------------
   33|  7.15k|}
core_fetch.c:ossl_method_construct_reserve_store:
   36|  3.57k|{
   37|  3.57k|    struct construct_data_st *data = cbdata;
   38|       |
   39|  3.57k|    if (is_temporary_method_store(no_store, data) && data->store == NULL) {
  ------------------
  |  Branch (39:9): [True: 0, False: 3.57k]
  |  Branch (39:54): [True: 0, False: 0]
  ------------------
   40|       |        /*
   41|       |         * If we have been told not to store the method "permanently", we
   42|       |         * ask for a temporary store, and store the method there.
   43|       |         * The owner of |data->mcm| is completely responsible for managing
   44|       |         * that temporary store.
   45|       |         */
   46|      0|        if ((data->store = data->mcm->get_tmp_store(data->mcm_data)) == NULL)
  ------------------
  |  Branch (46:13): [True: 0, False: 0]
  ------------------
   47|      0|            return 0;
   48|      0|    }
   49|       |
   50|  3.57k|    return data->mcm->lock_store(data->store, data->mcm_data);
   51|  3.57k|}
core_fetch.c:ossl_method_construct_this:
  106|    344|{
  107|    344|    struct construct_data_st *data = cbdata;
  108|    344|    void *method = NULL;
  109|       |
  110|    344|    if ((method = data->mcm->construct(algo, provider, data->mcm_data))
  ------------------
  |  Branch (110:9): [True: 0, False: 344]
  ------------------
  111|    344|        == NULL)
  112|      0|        return;
  113|       |
  114|    344|    OSSL_TRACE2(QUERY,
  ------------------
  |  |  295|    344|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  285|    344|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  115|    344|        "ossl_method_construct_this: putting an algo to the store %p with no_store %d\n",
  116|    344|        (void *)data->store, no_store);
  117|       |    /*
  118|       |     * Note regarding putting the method in stores:
  119|       |     *
  120|       |     * we don't need to care if it actually got in or not here.
  121|       |     * If it didn't get in, it will simply not be available when
  122|       |     * ossl_method_construct() tries to get it from the store.
  123|       |     *
  124|       |     * It is *expected* that the put function increments the refcnt
  125|       |     * of the passed method.
  126|       |     */
  127|    344|    data->mcm->put(no_store ? data->store : NULL, method, provider, algo->algorithm_names,
  ------------------
  |  Branch (127:20): [True: 0, False: 344]
  ------------------
  128|    344|        algo->property_definition, data->mcm_data);
  129|       |
  130|       |    /* refcnt-- because we're dropping the reference */
  131|    344|    data->mcm->destruct(method, data->mcm_data);
  132|    344|}
core_fetch.c:ossl_method_construct_unreserve_store:
   54|  3.57k|{
   55|  3.57k|    struct construct_data_st *data = cbdata;
   56|       |
   57|  3.57k|    return data->mcm->unlock_store(data->store, data->mcm_data);
   58|  3.57k|}
core_fetch.c:ossl_method_construct_postcondition:
   90|      7|{
   91|      7|    if (!ossl_assert(result != NULL)) {
  ------------------
  |  |   52|      7|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      7|    __FILE__, __LINE__)
  ------------------
  |  Branch (91:9): [True: 0, False: 7]
  ------------------
   92|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   93|      0|        return 0;
   94|      0|    }
   95|       |
   96|      7|    *result = 1;
   97|       |
   98|       |    /* No flag bits for temporary stores */
   99|      7|    return is_temporary_method_store(no_store, cbdata)
  ------------------
  |  Branch (99:12): [True: 0, False: 7]
  ------------------
  100|      7|        || ossl_provider_set_operation_bit(provider, operation_id);
  ------------------
  |  Branch (100:12): [True: 7, False: 0]
  ------------------
  101|      7|}

ossl_stored_namemap_new:
   62|      2|{
   63|      2|    OSSL_NAMEMAP *namemap = ossl_namemap_new(libctx);
   64|       |
   65|      2|    if (namemap != NULL)
  ------------------
  |  Branch (65:9): [True: 2, False: 0]
  ------------------
   66|      2|        namemap->stored = 1;
   67|       |
   68|      2|    return namemap;
   69|      2|}
ossl_namemap_empty:
   88|   273k|{
   89|       |#ifdef TSAN_REQUIRES_LOCKING
   90|       |    /* No TSAN support */
   91|       |    int rv;
   92|       |
   93|       |    if (namemap == NULL)
   94|       |        return 1;
   95|       |
   96|       |    if (!CRYPTO_THREAD_read_lock(namemap->lock))
   97|       |        return -1;
   98|       |    rv = namemap->max_number == 0;
   99|       |    CRYPTO_THREAD_unlock(namemap->lock);
  100|       |    return rv;
  101|       |#else
  102|       |    /* Have TSAN support */
  103|   273k|    return namemap == NULL || tsan_load(&namemap->max_number) == 0;
  ------------------
  |  |   61|   273k|#define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
  ------------------
  |  Branch (103:12): [True: 0, False: 273k]
  |  Branch (103:31): [True: 1, False: 273k]
  ------------------
  104|   273k|#endif
  105|   273k|}
ossl_namemap_doall_names:
  115|  33.0k|{
  116|  33.0k|    int i;
  117|  33.0k|    NAMES *names;
  118|       |
  119|  33.0k|    if (namemap == NULL || number <= 0)
  ------------------
  |  Branch (119:9): [True: 0, False: 33.0k]
  |  Branch (119:28): [True: 0, False: 33.0k]
  ------------------
  120|      0|        return 0;
  121|       |
  122|       |    /*
  123|       |     * We duplicate the NAMES stack under a read lock. Subsequently we call
  124|       |     * the user function, so that we're not holding the read lock when in user
  125|       |     * code. This could lead to deadlocks.
  126|       |     */
  127|  33.0k|    if (!CRYPTO_THREAD_read_lock(namemap->lock))
  ------------------
  |  Branch (127:9): [True: 0, False: 33.0k]
  ------------------
  128|      0|        return 0;
  129|       |
  130|  33.0k|    names = sk_NAMES_value(namemap->numnames, number - 1);
  131|  33.0k|    if (names != NULL)
  ------------------
  |  Branch (131:9): [True: 33.0k, False: 0]
  ------------------
  132|  33.0k|        names = sk_OPENSSL_STRING_dup(names);
  ------------------
  |  |  254|  33.0k|#define sk_OPENSSL_STRING_dup(sk) ((STACK_OF(OPENSSL_STRING) *)OPENSSL_sk_dup(ossl_check_const_OPENSSL_STRING_sk_type(sk)))
  ------------------
  133|       |
  134|  33.0k|    CRYPTO_THREAD_unlock(namemap->lock);
  135|       |
  136|  33.0k|    if (names == NULL)
  ------------------
  |  Branch (136:9): [True: 0, False: 33.0k]
  ------------------
  137|      0|        return 0;
  138|       |
  139|   154k|    for (i = 0; i < sk_OPENSSL_STRING_num(names); i++)
  ------------------
  |  |  232|   154k|#define sk_OPENSSL_STRING_num(sk) OPENSSL_sk_num(ossl_check_const_OPENSSL_STRING_sk_type(sk))
  ------------------
  |  Branch (139:17): [True: 121k, False: 33.0k]
  ------------------
  140|   121k|        fn(sk_OPENSSL_STRING_value(names, i), data);
  ------------------
  |  |  233|   121k|#define sk_OPENSSL_STRING_value(sk, idx) ((char *)OPENSSL_sk_value(ossl_check_const_OPENSSL_STRING_sk_type(sk), (idx)))
  ------------------
  141|       |
  142|  33.0k|    sk_OPENSSL_STRING_free(names);
  ------------------
  |  |  238|  33.0k|#define sk_OPENSSL_STRING_free(sk) OPENSSL_sk_free(ossl_check_OPENSSL_STRING_sk_type(sk))
  ------------------
  143|  33.0k|    return i > 0;
  144|  33.0k|}
ossl_namemap_name2num:
  147|   239k|{
  148|   239k|    int number = 0;
  149|   239k|    HT_VALUE *val;
  150|   239k|    NAMENUM_KEY key;
  151|       |
  152|   239k|#ifndef FIPS_MODULE
  153|   239k|    if (namemap == NULL)
  ------------------
  |  Branch (153:9): [True: 0, False: 239k]
  ------------------
  154|      0|        namemap = ossl_namemap_stored(NULL);
  155|   239k|#endif
  156|       |
  157|   239k|    if (namemap == NULL)
  ------------------
  |  Branch (157:9): [True: 0, False: 239k]
  ------------------
  158|      0|        return 0;
  159|       |
  160|   239k|    HT_INIT_KEY(&key);
  ------------------
  |  |  110|   239k|    do {                                                                \
  |  |  111|   239k|        memset((key), 0, sizeof(*(key)));                               \
  |  |  112|   239k|        (key)->key_header.keysize = (sizeof(*(key)) - sizeof(HT_KEY));  \
  |  |  113|   239k|        (key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY)); \
  |  |  114|   239k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (114:14): [Folded, False: 239k]
  |  |  ------------------
  ------------------
  161|   239k|    HT_SET_KEY_STRING_CASE(&key, name, name);
  ------------------
  |  |  143|   239k|    do {                                                                                      \
  |  |  144|   239k|        ossl_ht_strcase((key)->keyfields.member, value, sizeof((key)->keyfields.member) - 1); \
  |  |  145|   239k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (145:14): [Folded, False: 239k]
  |  |  ------------------
  ------------------
  162|       |
  163|   239k|    val = ossl_ht_get(namemap->namenum_ht, TO_HT_KEY(&key));
  ------------------
  |  |  181|   239k|#define TO_HT_KEY(key) &(key)->key_header
  ------------------
  164|       |
  165|   239k|    if (val != NULL)
  ------------------
  |  Branch (165:9): [True: 235k, False: 3.65k]
  ------------------
  166|       |        /* We store a (small) int directly instead of a pointer to it. */
  167|   235k|        number = (int)(intptr_t)val->value;
  168|       |
  169|   239k|    return number;
  170|   239k|}
ossl_namemap_name2num_n:
  174|  2.76k|{
  175|  2.76k|    int number = 0;
  176|  2.76k|    HT_VALUE *val;
  177|  2.76k|    NAMENUM_KEY key;
  178|       |
  179|  2.76k|#ifndef FIPS_MODULE
  180|  2.76k|    if (namemap == NULL)
  ------------------
  |  Branch (180:9): [True: 0, False: 2.76k]
  ------------------
  181|      0|        namemap = ossl_namemap_stored(NULL);
  182|  2.76k|#endif
  183|       |
  184|  2.76k|    if (namemap == NULL)
  ------------------
  |  Branch (184:9): [True: 0, False: 2.76k]
  ------------------
  185|      0|        return 0;
  186|       |
  187|  2.76k|    HT_INIT_KEY(&key);
  ------------------
  |  |  110|  2.76k|    do {                                                                \
  |  |  111|  2.76k|        memset((key), 0, sizeof(*(key)));                               \
  |  |  112|  2.76k|        (key)->key_header.keysize = (sizeof(*(key)) - sizeof(HT_KEY));  \
  |  |  113|  2.76k|        (key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY)); \
  |  |  114|  2.76k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (114:14): [Folded, False: 2.76k]
  |  |  ------------------
  ------------------
  188|  2.76k|    HT_SET_KEY_STRING_CASE_N(&key, name, name, (int)name_len);
  ------------------
  |  |  162|  2.76k|    do {                                                                                          \
  |  |  163|  2.76k|        if ((size_t)len < sizeof((key)->keyfields.member))                                        \
  |  |  ------------------
  |  |  |  Branch (163:13): [True: 2.76k, False: 0]
  |  |  ------------------
  |  |  164|  2.76k|            ossl_ht_strcase((key)->keyfields.member, value, len);                                 \
  |  |  165|  2.76k|        else                                                                                      \
  |  |  166|  2.76k|            ossl_ht_strcase((key)->keyfields.member, value, sizeof((key)->keyfields.member) - 1); \
  |  |  167|  2.76k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (167:14): [Folded, False: 2.76k]
  |  |  ------------------
  ------------------
  189|       |
  190|  2.76k|    val = ossl_ht_get(namemap->namenum_ht, TO_HT_KEY(&key));
  ------------------
  |  |  181|  2.76k|#define TO_HT_KEY(key) &(key)->key_header
  ------------------
  191|       |
  192|  2.76k|    if (val != NULL)
  ------------------
  |  Branch (192:9): [True: 347, False: 2.42k]
  ------------------
  193|       |        /* We store a (small) int directly instead of a pointer to it. */
  194|    347|        number = (int)(intptr_t)val->value;
  195|       |
  196|  2.76k|    return number;
  197|  2.76k|}
ossl_namemap_add_name:
  296|    652|{
  297|    652|    int tmp_number;
  298|       |
  299|    652|#ifndef FIPS_MODULE
  300|    652|    if (namemap == NULL)
  ------------------
  |  Branch (300:9): [True: 0, False: 652]
  ------------------
  301|      0|        namemap = ossl_namemap_stored(NULL);
  302|    652|#endif
  303|       |
  304|    652|    if (name == NULL || *name == 0 || namemap == NULL)
  ------------------
  |  Branch (304:9): [True: 0, False: 652]
  |  Branch (304:25): [True: 0, False: 652]
  |  Branch (304:39): [True: 0, False: 652]
  ------------------
  305|      0|        return 0;
  306|       |
  307|    652|    if (!CRYPTO_THREAD_write_lock(namemap->lock))
  ------------------
  |  Branch (307:9): [True: 0, False: 652]
  ------------------
  308|      0|        return 0;
  309|    652|    tmp_number = namemap_add_name(namemap, number, name);
  310|    652|    CRYPTO_THREAD_unlock(namemap->lock);
  311|    652|    return tmp_number;
  312|    652|}
ossl_namemap_add_names:
  316|    344|{
  317|    344|    char *tmp, *p, *q, *endp;
  318|       |
  319|       |    /* Check that we have a namemap */
  320|    344|    if (!ossl_assert(namemap != NULL)) {
  ------------------
  |  |   52|    344|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    344|    __FILE__, __LINE__)
  ------------------
  |  Branch (320:9): [True: 0, False: 344]
  ------------------
  321|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  322|      0|        return 0;
  323|      0|    }
  324|       |
  325|    344|    if ((tmp = OPENSSL_strdup(names)) == NULL)
  ------------------
  |  |  135|    344|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (325:9): [True: 0, False: 344]
  ------------------
  326|      0|        return 0;
  327|       |
  328|    344|    if (!CRYPTO_THREAD_write_lock(namemap->lock)) {
  ------------------
  |  Branch (328:9): [True: 0, False: 344]
  ------------------
  329|      0|        OPENSSL_free(tmp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  330|      0|        return 0;
  331|      0|    }
  332|       |    /*
  333|       |     * Check that no name is an empty string, and that all names have at
  334|       |     * most one numeric identity together.
  335|       |     */
  336|  1.04k|    for (p = tmp; *p != '\0'; p = q) {
  ------------------
  |  Branch (336:19): [True: 699, False: 344]
  ------------------
  337|    699|        int this_number;
  338|    699|        size_t l;
  339|       |
  340|    699|        if ((q = strchr(p, separator)) == NULL) {
  ------------------
  |  Branch (340:13): [True: 344, False: 355]
  ------------------
  341|    344|            l = strlen(p); /* offset to \0 */
  342|    344|            q = p + l;
  343|    355|        } else {
  344|    355|            l = q - p; /* offset to the next separator */
  345|    355|            *q++ = '\0';
  346|    355|        }
  347|       |
  348|    699|        if (*p == '\0') {
  ------------------
  |  Branch (348:13): [True: 0, False: 699]
  ------------------
  349|      0|            ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_BAD_ALGORITHM_NAME);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  350|      0|            number = 0;
  351|      0|            goto end;
  352|      0|        }
  353|       |
  354|    699|        this_number = ossl_namemap_name2num(namemap, p);
  355|       |
  356|    699|        if (number == 0) {
  ------------------
  |  Branch (356:13): [True: 513, False: 186]
  ------------------
  357|    513|            number = this_number;
  358|    513|        } else if (this_number != 0 && this_number != number) {
  ------------------
  |  Branch (358:20): [True: 161, False: 25]
  |  Branch (358:40): [True: 0, False: 161]
  ------------------
  359|      0|            ERR_raise_data(ERR_LIB_CRYPTO, CRYPTO_R_CONFLICTING_NAMES,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, CRYPTO_R_CONFLICTING_NAMES,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, CRYPTO_R_CONFLICTING_NAMES,
  ------------------
  |  |   23|      0|#define CRYPTO_R_CONFLICTING_NAMES 118
  ------------------
  360|      0|                "\"%s\" has an existing different identity %d (from \"%s\")",
  361|      0|                p, this_number, names);
  362|      0|            number = 0;
  363|      0|            goto end;
  364|      0|        }
  365|    699|    }
  366|    344|    endp = p;
  367|       |
  368|       |    /* Now that we have checked, register all names */
  369|  1.04k|    for (p = tmp; p < endp; p = q) {
  ------------------
  |  Branch (369:19): [True: 699, False: 344]
  ------------------
  370|    699|        int this_number;
  371|       |
  372|    699|        q = p + strlen(p) + 1;
  373|       |
  374|    699|        this_number = namemap_add_name(namemap, number, p);
  375|    699|        if (number == 0) {
  ------------------
  |  Branch (375:13): [True: 137, False: 562]
  ------------------
  376|    137|            number = this_number;
  377|    562|        } else if (this_number != number) {
  ------------------
  |  Branch (377:20): [True: 0, False: 562]
  ------------------
  378|      0|            ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  355|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  351|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  379|      0|                "Got number %d when expecting %d",
  380|      0|                this_number, number);
  381|      0|            number = 0;
  382|      0|            goto end;
  383|      0|        }
  384|    699|    }
  385|       |
  386|    344|end:
  387|    344|    CRYPTO_THREAD_unlock(namemap->lock);
  388|    344|    OPENSSL_free(tmp);
  ------------------
  |  |  131|    344|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  389|    344|    return number;
  390|    344|}
ossl_namemap_stored:
  490|   273k|{
  491|   273k|#ifndef FIPS_MODULE
  492|   273k|    int nms;
  493|   273k|#endif
  494|   273k|    OSSL_NAMEMAP *namemap = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_NAMEMAP_INDEX);
  ------------------
  |  |  100|   273k|#define OSSL_LIB_CTX_NAMEMAP_INDEX 4
  ------------------
  495|       |
  496|   273k|    if (namemap == NULL)
  ------------------
  |  Branch (496:9): [True: 0, False: 273k]
  ------------------
  497|      0|        return NULL;
  498|       |
  499|   273k|#ifndef FIPS_MODULE
  500|   273k|    nms = ossl_namemap_empty(namemap);
  501|   273k|    if (nms < 0) {
  ------------------
  |  Branch (501:9): [True: 0, False: 273k]
  ------------------
  502|       |        /*
  503|       |         * Could not get lock to make the count, so maybe internal objects
  504|       |         * weren't added. This seems safest.
  505|       |         */
  506|      0|        return NULL;
  507|      0|    }
  508|   273k|    if (nms == 1) {
  ------------------
  |  Branch (508:9): [True: 1, False: 273k]
  ------------------
  509|      1|        int num;
  510|       |
  511|       |        /* Before pilfering, we make sure the legacy database is populated */
  512|      1|        OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS
  ------------------
  |  |  506|      1|#define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L
  ------------------
  513|      1|                | OPENSSL_INIT_ADD_ALL_DIGESTS,
  ------------------
  |  |  507|      1|#define OPENSSL_INIT_ADD_ALL_DIGESTS 0x00000008L
  ------------------
  514|      1|            NULL);
  515|       |
  516|      1|        OBJ_NAME_do_all(OBJ_NAME_TYPE_CIPHER_METH,
  ------------------
  |  |   26|      1|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  ------------------
  517|      1|            get_legacy_cipher_names, namemap);
  518|      1|        OBJ_NAME_do_all(OBJ_NAME_TYPE_MD_METH,
  ------------------
  |  |   25|      1|#define OBJ_NAME_TYPE_MD_METH 0x01
  ------------------
  519|      1|            get_legacy_md_names, namemap);
  520|       |
  521|       |        /*
  522|       |         * Some old providers (<= 3.5) may not have the rsassaPSS alias which
  523|       |         * may cause problems in some cases. We add it manually here
  524|       |         */
  525|      1|        num = ossl_namemap_add_name(namemap, 0, "RSA-PSS");
  526|      1|        if (num != 0) {
  ------------------
  |  Branch (526:13): [True: 1, False: 0]
  ------------------
  527|      1|            ossl_namemap_add_name(namemap, num, "rsassaPss");
  528|       |            /* Add other RSA-PSS aliases as well */
  529|      1|            ossl_namemap_add_name(namemap, num, "RSASSA-PSS");
  530|      1|            ossl_namemap_add_name(namemap, num, "1.2.840.113549.1.1.10");
  531|      1|        }
  532|      1|#ifndef OPENSSL_NO_DEPRECATED_3_6
  533|      1|        {
  534|      1|            int i, end;
  535|       |
  536|       |            /* We also pilfer data from the legacy EVP_PKEY_ASN1_METHODs */
  537|     16|            for (i = 0, end = EVP_PKEY_asn1_get_count(); i < end; i++)
  ------------------
  |  Branch (537:58): [True: 15, False: 1]
  ------------------
  538|     15|                get_legacy_pkey_meth_names(EVP_PKEY_asn1_get0(i), namemap);
  539|      1|        }
  540|      1|#endif
  541|      1|    }
  542|   273k|#endif
  543|       |
  544|   273k|    return namemap;
  545|   273k|}
ossl_namemap_new:
  548|      2|{
  549|      2|    OSSL_NAMEMAP *namemap;
  550|      2|    HT_CONFIG htconf = { NULL, NULL, NULL, NAMEMAP_HT_BUCKETS, 1, 1 };
  ------------------
  |  |   22|      2|#define NAMEMAP_HT_BUCKETS 512
  ------------------
  551|       |
  552|      2|    htconf.ctx = libctx;
  553|       |
  554|      2|    if ((namemap = OPENSSL_zalloc(sizeof(*namemap))) == NULL)
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (554:9): [True: 0, False: 2]
  ------------------
  555|      0|        goto err;
  556|       |
  557|      2|    if ((namemap->lock = CRYPTO_THREAD_lock_new()) == NULL)
  ------------------
  |  Branch (557:9): [True: 0, False: 2]
  ------------------
  558|      0|        goto err;
  559|       |
  560|      2|    if ((namemap->namenum_ht = ossl_ht_new(&htconf)) == NULL)
  ------------------
  |  Branch (560:9): [True: 0, False: 2]
  ------------------
  561|      0|        goto err;
  562|       |
  563|      2|    if ((namemap->numnames = sk_NAMES_new_null()) == NULL)
  ------------------
  |  Branch (563:9): [True: 0, False: 2]
  ------------------
  564|      0|        goto err;
  565|       |
  566|      2|    return namemap;
  567|       |
  568|      0|err:
  569|      0|    ossl_namemap_free(namemap);
  570|       |    return NULL;
  571|      2|}
core_namemap.c:namemap_add_name:
  264|  1.35k|{
  265|  1.35k|    int ret;
  266|  1.35k|    HT_VALUE val = { 0 };
  267|  1.35k|    NAMENUM_KEY key;
  268|       |
  269|       |    /* If it already exists, we don't add it */
  270|  1.35k|    if ((ret = ossl_namemap_name2num(namemap, name)) != 0)
  ------------------
  |  Branch (270:9): [True: 761, False: 590]
  ------------------
  271|    761|        return ret;
  272|       |
  273|    590|    if ((number = numname_insert(namemap, number, name)) == 0)
  ------------------
  |  Branch (273:9): [True: 0, False: 590]
  ------------------
  274|      0|        return 0;
  275|       |
  276|       |    /* Using tsan_store alone here is safe since we're under lock */
  277|    590|    tsan_store(&namemap->max_number, number);
  ------------------
  |  |   62|    590|#define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed)
  ------------------
  278|       |
  279|    590|    HT_INIT_KEY(&key);
  ------------------
  |  |  110|    590|    do {                                                                \
  |  |  111|    590|        memset((key), 0, sizeof(*(key)));                               \
  |  |  112|    590|        (key)->key_header.keysize = (sizeof(*(key)) - sizeof(HT_KEY));  \
  |  |  113|    590|        (key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY)); \
  |  |  114|    590|    } while (0)
  |  |  ------------------
  |  |  |  Branch (114:14): [Folded, False: 590]
  |  |  ------------------
  ------------------
  280|    590|    HT_SET_KEY_STRING_CASE(&key, name, name);
  ------------------
  |  |  143|    590|    do {                                                                                      \
  |  |  144|    590|        ossl_ht_strcase((key)->keyfields.member, value, sizeof((key)->keyfields.member) - 1); \
  |  |  145|    590|    } while (0)
  |  |  ------------------
  |  |  |  Branch (145:14): [Folded, False: 590]
  |  |  ------------------
  ------------------
  281|    590|    val.value = (void *)(intptr_t)number;
  282|    590|    ret = ossl_ht_insert(namemap->namenum_ht, TO_HT_KEY(&key), &val, NULL);
  ------------------
  |  |  181|    590|#define TO_HT_KEY(key) &(key)->key_header
  ------------------
  283|    590|    if (ret <= 0) {
  ------------------
  |  Branch (283:9): [True: 0, False: 590]
  ------------------
  284|       |        /*
  285|       |         * We either got an allocation failure (INTERNAL_ERROR), or
  286|       |         * hit too many conflicts in the table (TOO_MANY_NAMES)
  287|       |         */
  288|      0|        ERR_raise(ERR_LIB_CRYPTO, (ret < 0) ? CRYPTO_R_TOO_MANY_NAMES : ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  |  |  |  Branch (404:55): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  289|      0|        return 0;
  290|      0|    }
  291|    590|    return number;
  292|    590|}
core_namemap.c:numname_insert:
  223|    590|{
  224|    590|    NAMES *names;
  225|    590|    char *tmpname;
  226|       |
  227|    590|    if (number > 0) {
  ------------------
  |  Branch (227:9): [True: 335, False: 255]
  ------------------
  228|    335|        names = sk_NAMES_value(namemap->numnames, number - 1);
  229|    335|        if (!ossl_assert(names != NULL)) {
  ------------------
  |  |   52|    335|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    335|    __FILE__, __LINE__)
  ------------------
  |  Branch (229:13): [True: 0, False: 335]
  ------------------
  230|       |            /* cannot happen */
  231|      0|            return 0;
  232|      0|        }
  233|    335|    } else {
  234|       |        /* a completely new entry */
  235|    255|        names = sk_OPENSSL_STRING_new_null();
  ------------------
  |  |  235|    255|#define sk_OPENSSL_STRING_new_null() ((STACK_OF(OPENSSL_STRING) *)OPENSSL_sk_new_null())
  ------------------
  236|    255|        if (names == NULL)
  ------------------
  |  Branch (236:13): [True: 0, False: 255]
  ------------------
  237|      0|            return 0;
  238|    255|    }
  239|       |
  240|    590|    if ((tmpname = OPENSSL_strdup(name)) == NULL)
  ------------------
  |  |  135|    590|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (240:9): [True: 0, False: 590]
  ------------------
  241|      0|        goto err;
  242|       |
  243|    590|    if (!sk_OPENSSL_STRING_push(names, tmpname))
  ------------------
  |  |  242|    590|#define sk_OPENSSL_STRING_push(sk, ptr) OPENSSL_sk_push(ossl_check_OPENSSL_STRING_sk_type(sk), ossl_check_OPENSSL_STRING_type(ptr))
  ------------------
  |  Branch (243:9): [True: 0, False: 590]
  ------------------
  244|      0|        goto err;
  245|    590|    tmpname = NULL;
  246|       |
  247|    590|    if (number <= 0) {
  ------------------
  |  Branch (247:9): [True: 255, False: 335]
  ------------------
  248|    255|        if (!sk_NAMES_push(namemap->numnames, names))
  ------------------
  |  Branch (248:13): [True: 0, False: 255]
  ------------------
  249|      0|            goto err;
  250|    255|        number = sk_NAMES_num(namemap->numnames);
  251|    255|    }
  252|    590|    return number;
  253|       |
  254|      0|err:
  255|      0|    if (number <= 0)
  ------------------
  |  Branch (255:9): [True: 0, False: 0]
  ------------------
  256|      0|        sk_OPENSSL_STRING_pop_free(names, name_string_free);
  ------------------
  |  |  246|      0|#define sk_OPENSSL_STRING_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_OPENSSL_STRING_sk_type(sk), ossl_check_OPENSSL_STRING_freefunc_type(freefunc))
  ------------------
  257|      0|    OPENSSL_free(tmpname);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  258|      0|    return 0;
  259|    590|}
core_namemap.c:get_legacy_cipher_names:
  427|    183|{
  428|    183|    const EVP_CIPHER *cipher = (void *)OBJ_NAME_get(on->name, on->type);
  429|       |
  430|    183|    if (cipher != NULL)
  ------------------
  |  Branch (430:9): [True: 183, False: 0]
  ------------------
  431|    183|        get_legacy_evp_names(NID_undef, EVP_CIPHER_get_type(cipher), NULL, arg);
  ------------------
  |  |   18|    183|#define NID_undef                       0
  ------------------
  432|    183|}
core_namemap.c:get_legacy_evp_names:
  403|    258|{
  404|    258|    int num = 0;
  405|    258|    ASN1_OBJECT *obj;
  406|       |
  407|    258|    if (base_nid != NID_undef) {
  ------------------
  |  |   18|    258|#define NID_undef                       0
  ------------------
  |  Branch (407:9): [True: 4, False: 254]
  ------------------
  408|      4|        num = ossl_namemap_add_name(arg, num, OBJ_nid2sn(base_nid));
  409|      4|        num = ossl_namemap_add_name(arg, num, OBJ_nid2ln(base_nid));
  410|      4|    }
  411|       |
  412|    258|    if (nid != NID_undef) {
  ------------------
  |  |   18|    258|#define NID_undef                       0
  ------------------
  |  Branch (412:9): [True: 210, False: 48]
  ------------------
  413|    210|        num = ossl_namemap_add_name(arg, num, OBJ_nid2sn(nid));
  414|    210|        num = ossl_namemap_add_name(arg, num, OBJ_nid2ln(nid));
  415|    210|        if ((obj = OBJ_nid2obj(nid)) != NULL) {
  ------------------
  |  Branch (415:13): [True: 210, False: 0]
  ------------------
  416|    210|            char txtoid[OSSL_MAX_NAME_SIZE];
  417|       |
  418|    210|            if (OBJ_obj2txt(txtoid, sizeof(txtoid), obj, 1) > 0)
  ------------------
  |  Branch (418:17): [True: 209, False: 1]
  ------------------
  419|    209|                num = ossl_namemap_add_name(arg, num, txtoid);
  420|    210|        }
  421|    210|    }
  422|    258|    if (pem_name != NULL)
  ------------------
  |  Branch (422:9): [True: 11, False: 247]
  ------------------
  423|     11|        num = ossl_namemap_add_name(arg, num, pem_name);
  424|    258|}
core_namemap.c:get_legacy_md_names:
  435|     59|{
  436|     59|    const EVP_MD *md = (void *)OBJ_NAME_get(on->name, on->type);
  437|       |
  438|     59|    if (md != NULL)
  ------------------
  |  Branch (438:9): [True: 59, False: 0]
  ------------------
  439|     59|        get_legacy_evp_names(0, EVP_MD_get_type(md), NULL, arg);
  440|     59|}
core_namemap.c:get_legacy_pkey_meth_names:
  445|     15|{
  446|     15|    int nid = 0, base_nid = 0, flags = 0;
  447|     15|    const char *pem_name = NULL;
  448|       |
  449|     15|    EVP_PKEY_asn1_get0_info(&nid, &base_nid, &flags, NULL, &pem_name, ameth);
  450|     15|    if (nid != NID_undef) {
  ------------------
  |  |   18|     15|#define NID_undef                       0
  ------------------
  |  Branch (450:9): [True: 15, False: 0]
  ------------------
  451|     15|        if ((flags & ASN1_PKEY_ALIAS) == 0) {
  ------------------
  |  | 1603|     15|#define ASN1_PKEY_ALIAS 0x1
  ------------------
  |  Branch (451:13): [True: 10, False: 5]
  ------------------
  452|     10|            switch (nid) {
  453|      1|            case EVP_PKEY_DHX:
  ------------------
  |  |   72|      1|#define EVP_PKEY_DHX NID_dhpublicnumber
  |  |  ------------------
  |  |  |  | 5522|      1|#define NID_dhpublicnumber              920
  |  |  ------------------
  ------------------
  |  Branch (453:13): [True: 1, False: 9]
  ------------------
  454|       |                /* We know that the name "DHX" is used too */
  455|      1|                get_legacy_evp_names(0, nid, "DHX", arg);
  456|       |                /* FALLTHRU */
  457|     10|            default:
  ------------------
  |  Branch (457:13): [True: 9, False: 1]
  ------------------
  458|     10|                get_legacy_evp_names(0, nid, pem_name, arg);
  459|     10|            }
  460|     10|        } else {
  461|       |            /*
  462|       |             * Treat aliases carefully, some of them are undesirable, or
  463|       |             * should not be treated as such for providers.
  464|       |             */
  465|       |
  466|      5|            switch (nid) {
  467|      1|            case EVP_PKEY_SM2:
  ------------------
  |  |   74|      1|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1255|      1|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (467:13): [True: 1, False: 4]
  ------------------
  468|       |                /*
  469|       |                 * SM2 is a separate keytype with providers, not an alias for
  470|       |                 * EC.
  471|       |                 */
  472|      1|                get_legacy_evp_names(0, nid, pem_name, arg);
  473|      1|                break;
  474|      4|            default:
  ------------------
  |  Branch (474:13): [True: 4, False: 1]
  ------------------
  475|       |                /* Use the short name of the base nid as the common reference */
  476|      4|                get_legacy_evp_names(base_nid, nid, pem_name, arg);
  477|      5|            }
  478|      5|        }
  479|     15|    }
  480|     15|}

ossl_err_load_CRYPTO_strings:
   83|      2|{
   84|      2|#ifndef OPENSSL_NO_ERR
   85|      2|    if (ERR_reason_error_string(CRYPTO_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (85:9): [True: 2, False: 0]
  ------------------
   86|      2|        ERR_load_strings_const(CRYPTO_str_reasons);
   87|      2|#endif
   88|      2|    return 1;
   89|      2|}

OPENSSL_cpuid_setup:
   95|      4|{
   96|      4|    static int trigger = 0;
   97|      4|    IA32CAP OPENSSL_ia32_cpuid(unsigned int *);
   98|      4|    IA32CAP vec;
   99|      4|    const variant_char *env;
  100|      4|    int index = 2;
  101|       |
  102|      4|    if (trigger)
  ------------------
  |  Branch (102:9): [True: 2, False: 2]
  ------------------
  103|      2|        return;
  104|       |
  105|      2|    trigger = 1;
  106|      2|    if ((env = ossl_getenv("OPENSSL_ia32cap")) != NULL) {
  ------------------
  |  |   45|      2|#define ossl_getenv getenv
  ------------------
  |  Branch (106:9): [True: 0, False: 2]
  ------------------
  107|      0|        int off = (env[0] == '~') ? 1 : 0;
  ------------------
  |  Branch (107:19): [True: 0, False: 0]
  ------------------
  108|       |
  109|      0|        vec = ossl_strtouint64(env + off);
  110|       |
  111|      0|        if (off) {
  ------------------
  |  Branch (111:13): [True: 0, False: 0]
  ------------------
  112|      0|            IA32CAP mask = vec;
  113|      0|            vec = OPENSSL_ia32_cpuid(OPENSSL_ia32cap_P) & ~mask;
  114|      0|            if (mask & (1 << 24)) {
  ------------------
  |  Branch (114:17): [True: 0, False: 0]
  ------------------
  115|       |                /*
  116|       |                 * User disables FXSR bit, mask even other capabilities
  117|       |                 * that operate exclusively on XMM, so we don't have to
  118|       |                 * double-check all the time. We mask PCLMULQDQ, AMD XOP,
  119|       |                 * AES-NI and AVX. Formally speaking we don't have to
  120|       |                 * do it in x86_64 case, but we can safely assume that
  121|       |                 * x86_64 users won't actually flip this flag.
  122|       |                 */
  123|      0|                vec &= ~((IA32CAP)(1 << 1 | 1 << 11 | 1 << 25 | 1 << 28) << 32);
  124|      0|            }
  125|      0|        } else if (env[0] == ':') {
  ------------------
  |  Branch (125:20): [True: 0, False: 0]
  ------------------
  126|      0|            vec = OPENSSL_ia32_cpuid(OPENSSL_ia32cap_P);
  127|      0|        }
  128|       |
  129|       |        /* Processed indexes 0, 1 */
  130|      0|        if ((env = ossl_strchr(env, ':')) != NULL)
  ------------------
  |  Branch (130:13): [True: 0, False: 0]
  ------------------
  131|      0|            env++;
  132|      0|        for (; index < OPENSSL_IA32CAP_P_MAX_INDEXES; index += 2) {
  ------------------
  |  |   37|      0|#define OPENSSL_IA32CAP_P_MAX_INDEXES 10
  ------------------
  |  Branch (132:16): [True: 0, False: 0]
  ------------------
  133|      0|            if ((env != NULL) && (env[0] != '\0')) {
  ------------------
  |  Branch (133:17): [True: 0, False: 0]
  |  Branch (133:34): [True: 0, False: 0]
  ------------------
  134|       |                /* if env[0] == ':' current index is skipped */
  135|      0|                if (env[0] != ':') {
  ------------------
  |  Branch (135:21): [True: 0, False: 0]
  ------------------
  136|      0|                    IA32CAP vecx;
  137|       |
  138|      0|                    off = (env[0] == '~') ? 1 : 0;
  ------------------
  |  Branch (138:27): [True: 0, False: 0]
  ------------------
  139|      0|                    vecx = ossl_strtouint64(env + off);
  140|      0|                    if (off) {
  ------------------
  |  Branch (140:25): [True: 0, False: 0]
  ------------------
  141|      0|                        OPENSSL_ia32cap_P[index] &= ~(unsigned int)vecx;
  142|      0|                        OPENSSL_ia32cap_P[index + 1] &= ~(unsigned int)(vecx >> 32);
  143|      0|                    } else {
  144|      0|                        OPENSSL_ia32cap_P[index] = (unsigned int)vecx;
  145|      0|                        OPENSSL_ia32cap_P[index + 1] = (unsigned int)(vecx >> 32);
  146|      0|                    }
  147|      0|                }
  148|       |                /* skip delimiter */
  149|      0|                if ((env = ossl_strchr(env, ':')) != NULL)
  ------------------
  |  Branch (149:21): [True: 0, False: 0]
  ------------------
  150|      0|                    env++;
  151|      0|            } else { /* zeroize the next two indexes */
  152|      0|                OPENSSL_ia32cap_P[index] = 0;
  153|      0|                OPENSSL_ia32cap_P[index + 1] = 0;
  154|      0|            }
  155|      0|        }
  156|       |
  157|       |        /* If AVX10 is disabled, zero out its detailed cap bits */
  158|      0|        if (!(OPENSSL_ia32cap_P[6] & (1 << 19)))
  ------------------
  |  Branch (158:13): [True: 0, False: 0]
  ------------------
  159|      0|            OPENSSL_ia32cap_P[9] = 0;
  160|      2|    } else {
  161|      2|        vec = OPENSSL_ia32_cpuid(OPENSSL_ia32cap_P);
  162|      2|    }
  163|       |
  164|       |    /*
  165|       |     * |(1<<10) sets a reserved bit to signal that variable
  166|       |     * was initialized already... This is to avoid interference
  167|       |     * with cpuid snippets in ELF .init segment.
  168|       |     */
  169|      2|    OPENSSL_ia32cap_P[0] = (unsigned int)vec | (1 << 10);
  170|      2|    OPENSSL_ia32cap_P[1] = (unsigned int)(vec >> 32);
  171|      2|}

ossl_err_load_CRMF_strings:
   78|      2|{
   79|      2|#ifndef OPENSSL_NO_ERR
   80|      2|    if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (80:9): [True: 2, False: 0]
  ------------------
   81|      2|        ERR_load_strings_const(CRMF_str_reasons);
   82|      2|#endif
   83|      2|    return 1;
   84|      2|}

ossl_err_load_CT_strings:
   52|      2|{
   53|      2|#ifndef OPENSSL_NO_ERR
   54|      2|    if (ERR_reason_error_string(CT_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (54:9): [True: 2, False: 0]
  ------------------
   55|      2|        ERR_load_strings_const(CT_str_reasons);
   56|      2|#endif
   57|      2|    return 1;
   58|      2|}

CTLOG_STORE_new_ex:
  101|    220|{
  102|    220|    CTLOG_STORE *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|    220|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  103|       |
  104|    220|    if (ret == NULL)
  ------------------
  |  Branch (104:9): [True: 0, False: 220]
  ------------------
  105|      0|        return NULL;
  106|       |
  107|    220|    ret->libctx = libctx;
  108|    220|    if (propq != NULL) {
  ------------------
  |  Branch (108:9): [True: 0, False: 220]
  ------------------
  109|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  110|      0|        if (ret->propq == NULL)
  ------------------
  |  Branch (110:13): [True: 0, False: 0]
  ------------------
  111|      0|            goto err;
  112|      0|    }
  113|       |
  114|    220|    ret->logs = sk_CTLOG_new_null();
  ------------------
  |  |   74|    220|#define sk_CTLOG_new_null() ((STACK_OF(CTLOG) *)OPENSSL_sk_new_null())
  ------------------
  115|    220|    if (ret->logs == NULL) {
  ------------------
  |  Branch (115:9): [True: 0, False: 220]
  ------------------
  116|      0|        ERR_raise(ERR_LIB_CT, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  117|      0|        goto err;
  118|      0|    }
  119|       |
  120|    220|    return ret;
  121|      0|err:
  122|      0|    CTLOG_STORE_free(ret);
  123|       |    return NULL;
  124|    220|}
CTLOG_STORE_free:
  132|    220|{
  133|    220|    if (store != NULL) {
  ------------------
  |  Branch (133:9): [True: 220, False: 0]
  ------------------
  134|    220|        OPENSSL_free(store->propq);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  135|    220|        sk_CTLOG_pop_free(store->logs, CTLOG_free);
  ------------------
  |  |   85|    220|#define sk_CTLOG_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_freefunc_type(freefunc))
  ------------------
  136|    220|        OPENSSL_free(store);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  137|    220|    }
  138|    220|}

SCT_LIST_free:
   47|    220|{
   48|    220|    sk_SCT_pop_free(a, SCT_free);
  ------------------
  |  |   59|    220|#define sk_SCT_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_SCT_sk_type(sk), ossl_check_SCT_freefunc_type(freefunc))
  ------------------
   49|    220|}

ossl_ctype_check:
  253|  4.45M|{
  254|  4.45M|    const int max = sizeof(ctype_char_map) / sizeof(*ctype_char_map);
  255|  4.45M|    const int a = ossl_toascii(c);
  ------------------
  |  |   56|  4.45M|#define ossl_toascii(c) (c)
  ------------------
  256|       |
  257|  4.45M|    return a >= 0 && a < max && (ctype_char_map[a] & mask) != 0;
  ------------------
  |  Branch (257:12): [True: 4.45M, False: 0]
  |  Branch (257:22): [True: 4.45M, False: 0]
  |  Branch (257:33): [True: 357k, False: 4.09M]
  ------------------
  258|  4.45M|}
ossl_isdigit:
  270|  34.3k|{
  271|  34.3k|    int a = ossl_toascii(c);
  ------------------
  |  |   56|  34.3k|#define ossl_toascii(c) (c)
  ------------------
  272|       |
  273|  34.3k|    return ASCII_IS_DIGIT(a);
  ------------------
  |  |  265|  34.3k|#define ASCII_IS_DIGIT(c) (c >= 0x30 && c <= 0x39)
  |  |  ------------------
  |  |  |  Branch (265:28): [True: 34.3k, False: 0]
  |  |  |  Branch (265:41): [True: 18.4k, False: 15.8k]
  |  |  ------------------
  ------------------
  274|  34.3k|}
ossl_tolower:
  297|  9.88M|{
  298|  9.88M|    int a = ossl_toascii(c);
  ------------------
  |  |   56|  9.88M|#define ossl_toascii(c) (c)
  ------------------
  299|       |
  300|  9.88M|    return ASCII_IS_UPPER(a) ? c ^ case_change : c;
  ------------------
  |  |  266|  9.88M|#define ASCII_IS_UPPER(c) (c >= 0x41 && c <= 0x5A)
  |  |  ------------------
  |  |  |  Branch (266:28): [True: 9.14M, False: 747k]
  |  |  |  Branch (266:41): [True: 2.67M, False: 6.46M]
  |  |  ------------------
  ------------------
  301|  9.88M|}

OpenSSL_version:
   80|    229|{
   81|       |#if defined(_WIN32) && defined(OSSL_WINCTX)
   82|       |    /* Cannot really fail but we would return empty strings anyway */
   83|       |    (void)RUN_ONCE(&version_strings_once, version_strings_setup);
   84|       |#endif
   85|       |
   86|    229|    switch (t) {
  ------------------
  |  Branch (86:13): [True: 229, False: 0]
  ------------------
   87|      0|    case OPENSSL_VERSION:
  ------------------
  |  |  183|      0|#define OPENSSL_VERSION 0
  ------------------
  |  Branch (87:5): [True: 0, False: 229]
  ------------------
   88|      0|        return OPENSSL_VERSION_TEXT;
  ------------------
  |  |  110|      0|# define OPENSSL_VERSION_TEXT "OpenSSL 3.6.2 7 Apr 2026"
  ------------------
   89|    229|    case OPENSSL_VERSION_STRING:
  ------------------
  |  |  189|    229|#define OPENSSL_VERSION_STRING 6
  ------------------
  |  Branch (89:5): [True: 229, False: 0]
  ------------------
   90|    229|        return OPENSSL_VERSION_STR;
  ------------------
  |  |   90|    229|# define OPENSSL_VERSION_STR "3.6.2"
  ------------------
   91|      0|    case OPENSSL_FULL_VERSION_STRING:
  ------------------
  |  |  190|      0|#define OPENSSL_FULL_VERSION_STRING 7
  ------------------
  |  Branch (91:5): [True: 0, False: 229]
  ------------------
   92|      0|        return OPENSSL_FULL_VERSION_STR;
  ------------------
  |  |   93|      0|# define OPENSSL_FULL_VERSION_STR "3.6.2"
  ------------------
   93|      0|    case OPENSSL_BUILT_ON:
  ------------------
  |  |  185|      0|#define OPENSSL_BUILT_ON 2
  ------------------
  |  Branch (93:5): [True: 0, False: 229]
  ------------------
   94|      0|        return DATE;
  ------------------
  |  |   14|      0|#define DATE "built on: Sat May 30 06:02:09 2026 UTC"
  ------------------
   95|      0|    case OPENSSL_CFLAGS:
  ------------------
  |  |  184|      0|#define OPENSSL_CFLAGS 1
  ------------------
  |  Branch (95:5): [True: 0, False: 229]
  ------------------
   96|      0|        return compiler_flags;
   97|      0|    case OPENSSL_PLATFORM:
  ------------------
  |  |  186|      0|#define OPENSSL_PLATFORM 3
  ------------------
  |  Branch (97:5): [True: 0, False: 229]
  ------------------
   98|      0|        return PLATFORM;
  ------------------
  |  |   13|      0|#define PLATFORM "platform: linux-x86_64-clang"
  ------------------
   99|       |#if defined(_WIN32) && defined(OSSL_WINCTX)
  100|       |    case OPENSSL_DIR:
  101|       |        return openssldir;
  102|       |    case OPENSSL_ENGINES_DIR:
  103|       |        return enginesdir;
  104|       |    case OPENSSL_MODULES_DIR:
  105|       |        return modulesdir;
  106|       |#else
  107|      0|    case OPENSSL_DIR:
  ------------------
  |  |  187|      0|#define OPENSSL_DIR 4
  ------------------
  |  Branch (107:5): [True: 0, False: 229]
  ------------------
  108|      0|#ifdef OPENSSLDIR
  109|      0|        return "OPENSSLDIR: \"" OPENSSLDIR "\"";
  110|       |#else
  111|       |        return "OPENSSLDIR: N/A";
  112|       |#endif
  113|      0|    case OPENSSL_ENGINES_DIR:
  ------------------
  |  |  188|      0|#define OPENSSL_ENGINES_DIR 5
  ------------------
  |  Branch (113:5): [True: 0, False: 229]
  ------------------
  114|      0|#ifdef ENGINESDIR
  115|      0|        return "ENGINESDIR: \"" ENGINESDIR "\"";
  116|       |#else
  117|       |        return "ENGINESDIR: N/A";
  118|       |#endif
  119|      0|    case OPENSSL_MODULES_DIR:
  ------------------
  |  |  191|      0|#define OPENSSL_MODULES_DIR 8
  ------------------
  |  Branch (119:5): [True: 0, False: 229]
  ------------------
  120|      0|#ifdef MODULESDIR
  121|      0|        return "MODULESDIR: \"" MODULESDIR "\"";
  122|       |#else
  123|       |        return "MODULESDIR: N/A";
  124|       |#endif
  125|      0|#endif
  126|      0|    case OPENSSL_CPU_INFO:
  ------------------
  |  |  192|      0|#define OPENSSL_CPU_INFO 9
  ------------------
  |  Branch (126:5): [True: 0, False: 229]
  ------------------
  127|      0|        if (OPENSSL_info(OPENSSL_INFO_CPU_SETTINGS) != NULL)
  ------------------
  |  |  207|      0|#define OPENSSL_INFO_CPU_SETTINGS 1008
  ------------------
  |  Branch (127:13): [True: 0, False: 0]
  ------------------
  128|      0|            return ossl_cpu_info_str;
  129|      0|        else
  130|      0|            return "CPUINFO: N/A";
  131|      0|    case OPENSSL_WINCTX:
  ------------------
  |  |  193|      0|#define OPENSSL_WINCTX 10
  ------------------
  |  Branch (131:5): [True: 0, False: 229]
  ------------------
  132|       |#if defined(_WIN32) && defined(OSSL_WINCTX)
  133|       |        return OSSL_WINCTX_STRING;
  134|       |#else
  135|      0|        return "OSSL_WINCTX: Undefined";
  136|    229|#endif
  137|    229|    }
  138|      0|    return "not available";
  139|    229|}

ossl_err_load_DH_strings:
   68|      2|{
   69|      2|#ifndef OPENSSL_NO_ERR
   70|      2|    if (ERR_reason_error_string(DH_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (70:9): [True: 2, False: 0]
  ------------------
   71|      2|        ERR_load_strings_const(DH_str_reasons);
   72|      2|#endif
   73|      2|    return 1;
   74|      2|}

dsa_ameth.c:int_dsa_free:
  267|    220|{
  268|    220|    DSA_free(pkey->pkey.dsa);
  269|    220|}

ossl_err_load_DSA_strings:
   46|      2|{
   47|      2|#ifndef OPENSSL_NO_ERR
   48|      2|    if (ERR_reason_error_string(DSA_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (48:9): [True: 2, False: 0]
  ------------------
   49|      2|        ERR_load_strings_const(DSA_str_reasons);
   50|      2|#endif
   51|      2|    return 1;
   52|      2|}

DSA_free:
  213|    220|{
  214|    220|    int i;
  215|       |
  216|    220|    if (r == NULL)
  ------------------
  |  Branch (216:9): [True: 220, False: 0]
  ------------------
  217|    220|        return;
  218|       |
  219|      0|    CRYPTO_DOWN_REF(&r->references, &i);
  220|      0|    REF_PRINT_COUNT("DSA", i, r);
  ------------------
  |  |  301|      0|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|      0|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|      0|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  221|      0|    if (i > 0)
  ------------------
  |  Branch (221:9): [True: 0, False: 0]
  ------------------
  222|      0|        return;
  223|      0|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|      0|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  224|       |
  225|      0|    if (r->meth != NULL && r->meth->finish != NULL)
  ------------------
  |  Branch (225:9): [True: 0, False: 0]
  |  Branch (225:28): [True: 0, False: 0]
  ------------------
  226|      0|        r->meth->finish(r);
  227|      0|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_ENGINE)
  228|      0|    ENGINE_finish(r->engine);
  229|      0|#endif
  230|       |
  231|      0|#ifndef FIPS_MODULE
  232|      0|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, r, &r->ex_data);
  ------------------
  |  |  257|      0|#define CRYPTO_EX_INDEX_DSA 7
  ------------------
  233|      0|#endif
  234|       |
  235|      0|    CRYPTO_THREAD_lock_free(r->lock);
  236|      0|    CRYPTO_FREE_REF(&r->references);
  237|       |
  238|      0|    ossl_ffc_params_cleanup(&r->params);
  239|      0|    BN_clear_free(r->pub_key);
  240|      0|    BN_clear_free(r->priv_key);
  241|      0|    OPENSSL_free(r);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  242|      0|}

ossl_err_load_DSO_strings:
   50|      2|{
   51|      2|#ifndef OPENSSL_NO_ERR
   52|      2|    if (ERR_reason_error_string(DSO_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (52:9): [True: 2, False: 0]
  ------------------
   53|      2|        ERR_load_strings_const(DSO_str_reasons);
   54|      2|#endif
   55|      2|    return 1;
   56|      2|}

ossl_x25519_public_from_private:
 5855|    438|{
 5856|    438|    uint8_t e[32];
 5857|    438|    ge_p3 A;
 5858|    438|    fe zplusy, zminusy, zminusy_inv;
 5859|       |
 5860|    438|    memcpy(e, private_key, 32);
 5861|    438|    e[0] &= 248;
 5862|    438|    e[31] &= 127;
 5863|    438|    e[31] |= 64;
 5864|       |
 5865|    438|    ge_scalarmult_base(&A, e);
 5866|       |
 5867|       |    /*
 5868|       |     * We only need the u-coordinate of the curve25519 point.
 5869|       |     * The map is u=(y+1)/(1-y). Since y=Y/Z, this gives
 5870|       |     * u=(Z+Y)/(Z-Y).
 5871|       |     */
 5872|    438|    fe_add(zplusy, A.Z, A.Y);
 5873|    438|    fe_sub(zminusy, A.Z, A.Y);
 5874|    438|    fe_invert(zminusy_inv, zminusy);
 5875|    438|    fe_mul(zplusy, zplusy, zminusy_inv);
 5876|    438|    fe_tobytes(out_public_value, zplusy);
 5877|       |
 5878|    438|    OPENSSL_cleanse(e, sizeof(e));
 5879|    438|}
curve25519.c:ge_scalarmult_base:
 4366|    438|{
 4367|    438|    signed char e[64];
 4368|    438|    signed char carry;
 4369|    438|    ge_p1p1 r;
 4370|    438|    ge_p2 s;
 4371|    438|    ge_precomp t;
 4372|    438|    int i;
 4373|       |
 4374|  14.4k|    for (i = 0; i < 32; ++i) {
  ------------------
  |  Branch (4374:17): [True: 14.0k, False: 438]
  ------------------
 4375|  14.0k|        e[2 * i + 0] = (a[i] >> 0) & 15;
 4376|  14.0k|        e[2 * i + 1] = (a[i] >> 4) & 15;
 4377|  14.0k|    }
 4378|       |    /* each e[i] is between 0 and 15 */
 4379|       |    /* e[63] is between 0 and 7 */
 4380|       |
 4381|    438|    carry = 0;
 4382|  28.0k|    for (i = 0; i < 63; ++i) {
  ------------------
  |  Branch (4382:17): [True: 27.5k, False: 438]
  ------------------
 4383|  27.5k|        e[i] += carry;
 4384|  27.5k|        carry = e[i] + 8;
 4385|  27.5k|        carry >>= 4;
 4386|  27.5k|        e[i] -= carry << 4;
 4387|  27.5k|    }
 4388|    438|    e[63] += carry;
 4389|       |    /* each e[i] is between -8 and 8 */
 4390|       |
 4391|    438|    ge_p3_0(h);
 4392|  14.4k|    for (i = 1; i < 64; i += 2) {
  ------------------
  |  Branch (4392:17): [True: 14.0k, False: 438]
  ------------------
 4393|  14.0k|        table_select(&t, i / 2, e[i]);
 4394|  14.0k|        ge_madd(&r, h, &t);
 4395|  14.0k|        ge_p1p1_to_p3(h, &r);
 4396|  14.0k|    }
 4397|       |
 4398|    438|    ge_p3_dbl(&r, h);
 4399|    438|    ge_p1p1_to_p2(&s, &r);
 4400|    438|    ge_p2_dbl(&r, &s);
 4401|    438|    ge_p1p1_to_p2(&s, &r);
 4402|    438|    ge_p2_dbl(&r, &s);
 4403|    438|    ge_p1p1_to_p2(&s, &r);
 4404|    438|    ge_p2_dbl(&r, &s);
 4405|    438|    ge_p1p1_to_p3(h, &r);
 4406|       |
 4407|  14.4k|    for (i = 0; i < 64; i += 2) {
  ------------------
  |  Branch (4407:17): [True: 14.0k, False: 438]
  ------------------
 4408|  14.0k|        table_select(&t, i / 2, e[i]);
 4409|  14.0k|        ge_madd(&r, h, &t);
 4410|  14.0k|        ge_p1p1_to_p3(h, &r);
 4411|  14.0k|    }
 4412|       |
 4413|    438|    OPENSSL_cleanse(e, sizeof(e));
 4414|    438|}
curve25519.c:ge_p3_0:
 2046|    438|{
 2047|    438|    fe_0(h->X);
 2048|    438|    fe_1(h->Y);
 2049|    438|    fe_1(h->Z);
 2050|    438|    fe_0(h->T);
 2051|    438|}
curve25519.c:fe_0:
 1022|  28.9k|{
 1023|  28.9k|    memset(h, 0, sizeof(int32_t) * 10);
 1024|  28.9k|}
curve25519.c:fe_1:
 1028|  56.9k|{
 1029|  56.9k|    memset(h, 0, sizeof(int32_t) * 10);
 1030|  56.9k|    h[0] = 1;
 1031|  56.9k|}
curve25519.c:table_select:
 4336|  28.0k|{
 4337|  28.0k|    ge_precomp minust;
 4338|  28.0k|    uint8_t bnegative = negative(b);
 4339|  28.0k|    uint8_t babs = b - ((uint8_t)((-bnegative) & b) << 1);
 4340|       |
 4341|  28.0k|    ge_precomp_0(t);
 4342|  28.0k|    cmov(t, &k25519Precomp[pos][0], equal(babs, 1));
 4343|  28.0k|    cmov(t, &k25519Precomp[pos][1], equal(babs, 2));
 4344|  28.0k|    cmov(t, &k25519Precomp[pos][2], equal(babs, 3));
 4345|  28.0k|    cmov(t, &k25519Precomp[pos][3], equal(babs, 4));
 4346|  28.0k|    cmov(t, &k25519Precomp[pos][4], equal(babs, 5));
 4347|  28.0k|    cmov(t, &k25519Precomp[pos][5], equal(babs, 6));
 4348|  28.0k|    cmov(t, &k25519Precomp[pos][6], equal(babs, 7));
 4349|  28.0k|    cmov(t, &k25519Precomp[pos][7], equal(babs, 8));
 4350|  28.0k|    fe_copy(minust.yplusx, t->yminusx);
 4351|  28.0k|    fe_copy(minust.yminusx, t->yplusx);
 4352|  28.0k|    fe_neg(minust.xy2d, t->xy2d);
 4353|  28.0k|    cmov(t, &minust, bnegative);
 4354|  28.0k|}
curve25519.c:negative:
 4328|  28.0k|{
 4329|  28.0k|    uint32_t x = b;
 4330|       |
 4331|  28.0k|    x >>= 31; /* 1: yes; 0: no */
 4332|  28.0k|    return x;
 4333|  28.0k|}
curve25519.c:ge_precomp_0:
 2054|  28.0k|{
 2055|  28.0k|    fe_1(h->yplusx);
 2056|  28.0k|    fe_1(h->yminusx);
 2057|  28.0k|    fe_0(h->xy2d);
 2058|  28.0k|}
curve25519.c:cmov:
 2205|   252k|{
 2206|   252k|    fe_cmov(t->yplusx, u->yplusx, b);
 2207|   252k|    fe_cmov(t->yminusx, u->yminusx, b);
 2208|   252k|    fe_cmov(t->xy2d, u->xy2d, b);
 2209|   252k|}
curve25519.c:fe_cmov:
 1636|   756k|{
 1637|   756k|    size_t i;
 1638|       |
 1639|   756k|    b = 0 - b;
 1640|  8.32M|    for (i = 0; i < 10; i++) {
  ------------------
  |  Branch (1640:17): [True: 7.56M, False: 756k]
  ------------------
 1641|  7.56M|        int32_t x = f[i] ^ g[i];
 1642|  7.56M|        x &= b;
 1643|  7.56M|        f[i] ^= x;
 1644|  7.56M|    }
 1645|   756k|}
curve25519.c:equal:
 2194|   224k|{
 2195|   224k|    uint8_t ub = b;
 2196|   224k|    uint8_t uc = c;
 2197|   224k|    uint8_t x = ub ^ uc; /* 0: yes; 1..255: no */
 2198|   224k|    uint32_t y = x; /* 0: yes; 1..255: no */
 2199|   224k|    y -= 1; /* 4294967295: yes; 0..254: no */
 2200|   224k|    y >>= 31; /* 1: yes; 0: no */
 2201|   224k|    return y;
 2202|   224k|}
curve25519.c:fe_copy:
 1016|  57.3k|{
 1017|  57.3k|    memmove(h, f, sizeof(int32_t) * 10);
 1018|  57.3k|}
curve25519.c:ge_madd:
 2125|  28.0k|{
 2126|  28.0k|    fe t0;
 2127|       |
 2128|  28.0k|    fe_add(r->X, p->Y, p->X);
 2129|  28.0k|    fe_sub(r->Y, p->Y, p->X);
 2130|  28.0k|    fe_mul(r->Z, r->X, q->yplusx);
 2131|  28.0k|    fe_mul(r->Y, r->Y, q->yminusx);
 2132|  28.0k|    fe_mul(r->T, q->xy2d, p->T);
 2133|  28.0k|    fe_add(t0, p->Z, p->Z);
 2134|  28.0k|    fe_sub(r->X, r->Z, r->Y);
 2135|  28.0k|    fe_add(r->Y, r->Z, r->Y);
 2136|  28.0k|    fe_add(r->Z, t0, r->T);
 2137|  28.0k|    fe_sub(r->T, t0, r->T);
 2138|  28.0k|}
curve25519.c:ge_p1p1_to_p3:
 2092|  28.4k|{
 2093|  28.4k|    fe_mul(r->X, p->X, p->T);
 2094|  28.4k|    fe_mul(r->Y, p->Y, p->Z);
 2095|  28.4k|    fe_mul(r->Z, p->Z, p->T);
 2096|  28.4k|    fe_mul(r->T, p->X, p->Y);
 2097|  28.4k|}
curve25519.c:ge_p3_dbl:
 2117|    438|{
 2118|    438|    ge_p2 q;
 2119|    438|    ge_p3_to_p2(&q, p);
 2120|    438|    ge_p2_dbl(r, &q);
 2121|    438|}
curve25519.c:ge_p3_to_p2:
 2062|    438|{
 2063|    438|    fe_copy(r->X, p->X);
 2064|    438|    fe_copy(r->Y, p->Y);
 2065|    438|    fe_copy(r->Z, p->Z);
 2066|    438|}
curve25519.c:ge_p1p1_to_p2:
 2084|  1.31k|{
 2085|  1.31k|    fe_mul(r->X, p->X, p->T);
 2086|  1.31k|    fe_mul(r->Y, p->Y, p->Z);
 2087|  1.31k|    fe_mul(r->Z, p->Z, p->T);
 2088|  1.31k|}
curve25519.c:ge_p2_dbl:
 2101|  1.75k|{
 2102|  1.75k|    fe t0;
 2103|       |
 2104|  1.75k|    fe_sq(r->X, p->X);
 2105|  1.75k|    fe_sq(r->Z, p->Y);
 2106|  1.75k|    fe_sq2(r->T, p->Z);
 2107|  1.75k|    fe_add(r->Y, p->X, p->Y);
 2108|  1.75k|    fe_sq(t0, r->Y);
 2109|  1.75k|    fe_add(r->Y, r->Z, r->X);
 2110|  1.75k|    fe_sub(r->Z, r->Z, r->X);
 2111|  1.75k|    fe_sub(r->X, t0, r->Y);
 2112|  1.75k|    fe_sub(r->T, r->T, r->Z);
 2113|  1.75k|}
curve25519.c:fe_sq:
 1360|   116k|{
 1361|   116k|    int32_t f0 = f[0];
 1362|   116k|    int32_t f1 = f[1];
 1363|   116k|    int32_t f2 = f[2];
 1364|   116k|    int32_t f3 = f[3];
 1365|   116k|    int32_t f4 = f[4];
 1366|   116k|    int32_t f5 = f[5];
 1367|   116k|    int32_t f6 = f[6];
 1368|   116k|    int32_t f7 = f[7];
 1369|   116k|    int32_t f8 = f[8];
 1370|   116k|    int32_t f9 = f[9];
 1371|   116k|    int32_t f0_2 = 2 * f0;
 1372|   116k|    int32_t f1_2 = 2 * f1;
 1373|   116k|    int32_t f2_2 = 2 * f2;
 1374|   116k|    int32_t f3_2 = 2 * f3;
 1375|   116k|    int32_t f4_2 = 2 * f4;
 1376|   116k|    int32_t f5_2 = 2 * f5;
 1377|   116k|    int32_t f6_2 = 2 * f6;
 1378|   116k|    int32_t f7_2 = 2 * f7;
 1379|   116k|    int32_t f5_38 = 38 * f5; /* 1.959375*2^30 */
 1380|   116k|    int32_t f6_19 = 19 * f6; /* 1.959375*2^30 */
 1381|   116k|    int32_t f7_38 = 38 * f7; /* 1.959375*2^30 */
 1382|   116k|    int32_t f8_19 = 19 * f8; /* 1.959375*2^30 */
 1383|   116k|    int32_t f9_38 = 38 * f9; /* 1.959375*2^30 */
 1384|   116k|    int64_t f0f0 = f0 * (int64_t)f0;
 1385|   116k|    int64_t f0f1_2 = f0_2 * (int64_t)f1;
 1386|   116k|    int64_t f0f2_2 = f0_2 * (int64_t)f2;
 1387|   116k|    int64_t f0f3_2 = f0_2 * (int64_t)f3;
 1388|   116k|    int64_t f0f4_2 = f0_2 * (int64_t)f4;
 1389|   116k|    int64_t f0f5_2 = f0_2 * (int64_t)f5;
 1390|   116k|    int64_t f0f6_2 = f0_2 * (int64_t)f6;
 1391|   116k|    int64_t f0f7_2 = f0_2 * (int64_t)f7;
 1392|   116k|    int64_t f0f8_2 = f0_2 * (int64_t)f8;
 1393|   116k|    int64_t f0f9_2 = f0_2 * (int64_t)f9;
 1394|   116k|    int64_t f1f1_2 = f1_2 * (int64_t)f1;
 1395|   116k|    int64_t f1f2_2 = f1_2 * (int64_t)f2;
 1396|   116k|    int64_t f1f3_4 = f1_2 * (int64_t)f3_2;
 1397|   116k|    int64_t f1f4_2 = f1_2 * (int64_t)f4;
 1398|   116k|    int64_t f1f5_4 = f1_2 * (int64_t)f5_2;
 1399|   116k|    int64_t f1f6_2 = f1_2 * (int64_t)f6;
 1400|   116k|    int64_t f1f7_4 = f1_2 * (int64_t)f7_2;
 1401|   116k|    int64_t f1f8_2 = f1_2 * (int64_t)f8;
 1402|   116k|    int64_t f1f9_76 = f1_2 * (int64_t)f9_38;
 1403|   116k|    int64_t f2f2 = f2 * (int64_t)f2;
 1404|   116k|    int64_t f2f3_2 = f2_2 * (int64_t)f3;
 1405|   116k|    int64_t f2f4_2 = f2_2 * (int64_t)f4;
 1406|   116k|    int64_t f2f5_2 = f2_2 * (int64_t)f5;
 1407|   116k|    int64_t f2f6_2 = f2_2 * (int64_t)f6;
 1408|   116k|    int64_t f2f7_2 = f2_2 * (int64_t)f7;
 1409|   116k|    int64_t f2f8_38 = f2_2 * (int64_t)f8_19;
 1410|   116k|    int64_t f2f9_38 = f2 * (int64_t)f9_38;
 1411|   116k|    int64_t f3f3_2 = f3_2 * (int64_t)f3;
 1412|   116k|    int64_t f3f4_2 = f3_2 * (int64_t)f4;
 1413|   116k|    int64_t f3f5_4 = f3_2 * (int64_t)f5_2;
 1414|   116k|    int64_t f3f6_2 = f3_2 * (int64_t)f6;
 1415|   116k|    int64_t f3f7_76 = f3_2 * (int64_t)f7_38;
 1416|   116k|    int64_t f3f8_38 = f3_2 * (int64_t)f8_19;
 1417|   116k|    int64_t f3f9_76 = f3_2 * (int64_t)f9_38;
 1418|   116k|    int64_t f4f4 = f4 * (int64_t)f4;
 1419|   116k|    int64_t f4f5_2 = f4_2 * (int64_t)f5;
 1420|   116k|    int64_t f4f6_38 = f4_2 * (int64_t)f6_19;
 1421|   116k|    int64_t f4f7_38 = f4 * (int64_t)f7_38;
 1422|   116k|    int64_t f4f8_38 = f4_2 * (int64_t)f8_19;
 1423|   116k|    int64_t f4f9_38 = f4 * (int64_t)f9_38;
 1424|   116k|    int64_t f5f5_38 = f5 * (int64_t)f5_38;
 1425|   116k|    int64_t f5f6_38 = f5_2 * (int64_t)f6_19;
 1426|   116k|    int64_t f5f7_76 = f5_2 * (int64_t)f7_38;
 1427|   116k|    int64_t f5f8_38 = f5_2 * (int64_t)f8_19;
 1428|   116k|    int64_t f5f9_76 = f5_2 * (int64_t)f9_38;
 1429|   116k|    int64_t f6f6_19 = f6 * (int64_t)f6_19;
 1430|   116k|    int64_t f6f7_38 = f6 * (int64_t)f7_38;
 1431|   116k|    int64_t f6f8_38 = f6_2 * (int64_t)f8_19;
 1432|   116k|    int64_t f6f9_38 = f6 * (int64_t)f9_38;
 1433|   116k|    int64_t f7f7_38 = f7 * (int64_t)f7_38;
 1434|   116k|    int64_t f7f8_38 = f7_2 * (int64_t)f8_19;
 1435|   116k|    int64_t f7f9_76 = f7_2 * (int64_t)f9_38;
 1436|   116k|    int64_t f8f8_19 = f8 * (int64_t)f8_19;
 1437|   116k|    int64_t f8f9_38 = f8 * (int64_t)f9_38;
 1438|   116k|    int64_t f9f9_38 = f9 * (int64_t)f9_38;
 1439|   116k|    int64_t h0 = f0f0 + f1f9_76 + f2f8_38 + f3f7_76 + f4f6_38 + f5f5_38;
 1440|   116k|    int64_t h1 = f0f1_2 + f2f9_38 + f3f8_38 + f4f7_38 + f5f6_38;
 1441|   116k|    int64_t h2 = f0f2_2 + f1f1_2 + f3f9_76 + f4f8_38 + f5f7_76 + f6f6_19;
 1442|   116k|    int64_t h3 = f0f3_2 + f1f2_2 + f4f9_38 + f5f8_38 + f6f7_38;
 1443|   116k|    int64_t h4 = f0f4_2 + f1f3_4 + f2f2 + f5f9_76 + f6f8_38 + f7f7_38;
 1444|   116k|    int64_t h5 = f0f5_2 + f1f4_2 + f2f3_2 + f6f9_38 + f7f8_38;
 1445|   116k|    int64_t h6 = f0f6_2 + f1f5_4 + f2f4_2 + f3f3_2 + f7f9_76 + f8f8_19;
 1446|   116k|    int64_t h7 = f0f7_2 + f1f6_2 + f2f5_2 + f3f4_2 + f8f9_38;
 1447|   116k|    int64_t h8 = f0f8_2 + f1f7_4 + f2f6_2 + f3f5_4 + f4f4 + f9f9_38;
 1448|   116k|    int64_t h9 = f0f9_2 + f1f8_2 + f2f7_2 + f3f6_2 + f4f5_2;
 1449|   116k|    int64_t carry0;
 1450|   116k|    int64_t carry1;
 1451|   116k|    int64_t carry2;
 1452|   116k|    int64_t carry3;
 1453|   116k|    int64_t carry4;
 1454|   116k|    int64_t carry5;
 1455|   116k|    int64_t carry6;
 1456|   116k|    int64_t carry7;
 1457|   116k|    int64_t carry8;
 1458|   116k|    int64_t carry9;
 1459|       |
 1460|   116k|    carry0 = h0 + (1 << 25);
 1461|   116k|    h1 += carry0 >> 26;
 1462|   116k|    h0 -= carry0 & kTop38Bits;
 1463|   116k|    carry4 = h4 + (1 << 25);
 1464|   116k|    h5 += carry4 >> 26;
 1465|   116k|    h4 -= carry4 & kTop38Bits;
 1466|       |
 1467|   116k|    carry1 = h1 + (1 << 24);
 1468|   116k|    h2 += carry1 >> 25;
 1469|   116k|    h1 -= carry1 & kTop39Bits;
 1470|   116k|    carry5 = h5 + (1 << 24);
 1471|   116k|    h6 += carry5 >> 25;
 1472|   116k|    h5 -= carry5 & kTop39Bits;
 1473|       |
 1474|   116k|    carry2 = h2 + (1 << 25);
 1475|   116k|    h3 += carry2 >> 26;
 1476|   116k|    h2 -= carry2 & kTop38Bits;
 1477|   116k|    carry6 = h6 + (1 << 25);
 1478|   116k|    h7 += carry6 >> 26;
 1479|   116k|    h6 -= carry6 & kTop38Bits;
 1480|       |
 1481|   116k|    carry3 = h3 + (1 << 24);
 1482|   116k|    h4 += carry3 >> 25;
 1483|   116k|    h3 -= carry3 & kTop39Bits;
 1484|   116k|    carry7 = h7 + (1 << 24);
 1485|   116k|    h8 += carry7 >> 25;
 1486|   116k|    h7 -= carry7 & kTop39Bits;
 1487|       |
 1488|   116k|    carry4 = h4 + (1 << 25);
 1489|   116k|    h5 += carry4 >> 26;
 1490|   116k|    h4 -= carry4 & kTop38Bits;
 1491|   116k|    carry8 = h8 + (1 << 25);
 1492|   116k|    h9 += carry8 >> 26;
 1493|   116k|    h8 -= carry8 & kTop38Bits;
 1494|       |
 1495|   116k|    carry9 = h9 + (1 << 24);
 1496|   116k|    h0 += (carry9 >> 25) * 19;
 1497|   116k|    h9 -= carry9 & kTop39Bits;
 1498|       |
 1499|   116k|    carry0 = h0 + (1 << 25);
 1500|   116k|    h1 += carry0 >> 26;
 1501|   116k|    h0 -= carry0 & kTop38Bits;
 1502|       |
 1503|   116k|    h[0] = (int32_t)h0;
 1504|   116k|    h[1] = (int32_t)h1;
 1505|   116k|    h[2] = (int32_t)h2;
 1506|   116k|    h[3] = (int32_t)h3;
 1507|   116k|    h[4] = (int32_t)h4;
 1508|   116k|    h[5] = (int32_t)h5;
 1509|   116k|    h[6] = (int32_t)h6;
 1510|   116k|    h[7] = (int32_t)h7;
 1511|   116k|    h[8] = (int32_t)h8;
 1512|   116k|    h[9] = (int32_t)h9;
 1513|   116k|}
curve25519.c:fe_sq2:
 1693|  1.75k|{
 1694|  1.75k|    int32_t f0 = f[0];
 1695|  1.75k|    int32_t f1 = f[1];
 1696|  1.75k|    int32_t f2 = f[2];
 1697|  1.75k|    int32_t f3 = f[3];
 1698|  1.75k|    int32_t f4 = f[4];
 1699|  1.75k|    int32_t f5 = f[5];
 1700|  1.75k|    int32_t f6 = f[6];
 1701|  1.75k|    int32_t f7 = f[7];
 1702|  1.75k|    int32_t f8 = f[8];
 1703|  1.75k|    int32_t f9 = f[9];
 1704|  1.75k|    int32_t f0_2 = 2 * f0;
 1705|  1.75k|    int32_t f1_2 = 2 * f1;
 1706|  1.75k|    int32_t f2_2 = 2 * f2;
 1707|  1.75k|    int32_t f3_2 = 2 * f3;
 1708|  1.75k|    int32_t f4_2 = 2 * f4;
 1709|  1.75k|    int32_t f5_2 = 2 * f5;
 1710|  1.75k|    int32_t f6_2 = 2 * f6;
 1711|  1.75k|    int32_t f7_2 = 2 * f7;
 1712|  1.75k|    int32_t f5_38 = 38 * f5; /* 1.959375*2^30 */
 1713|  1.75k|    int32_t f6_19 = 19 * f6; /* 1.959375*2^30 */
 1714|  1.75k|    int32_t f7_38 = 38 * f7; /* 1.959375*2^30 */
 1715|  1.75k|    int32_t f8_19 = 19 * f8; /* 1.959375*2^30 */
 1716|  1.75k|    int32_t f9_38 = 38 * f9; /* 1.959375*2^30 */
 1717|  1.75k|    int64_t f0f0 = f0 * (int64_t)f0;
 1718|  1.75k|    int64_t f0f1_2 = f0_2 * (int64_t)f1;
 1719|  1.75k|    int64_t f0f2_2 = f0_2 * (int64_t)f2;
 1720|  1.75k|    int64_t f0f3_2 = f0_2 * (int64_t)f3;
 1721|  1.75k|    int64_t f0f4_2 = f0_2 * (int64_t)f4;
 1722|  1.75k|    int64_t f0f5_2 = f0_2 * (int64_t)f5;
 1723|  1.75k|    int64_t f0f6_2 = f0_2 * (int64_t)f6;
 1724|  1.75k|    int64_t f0f7_2 = f0_2 * (int64_t)f7;
 1725|  1.75k|    int64_t f0f8_2 = f0_2 * (int64_t)f8;
 1726|  1.75k|    int64_t f0f9_2 = f0_2 * (int64_t)f9;
 1727|  1.75k|    int64_t f1f1_2 = f1_2 * (int64_t)f1;
 1728|  1.75k|    int64_t f1f2_2 = f1_2 * (int64_t)f2;
 1729|  1.75k|    int64_t f1f3_4 = f1_2 * (int64_t)f3_2;
 1730|  1.75k|    int64_t f1f4_2 = f1_2 * (int64_t)f4;
 1731|  1.75k|    int64_t f1f5_4 = f1_2 * (int64_t)f5_2;
 1732|  1.75k|    int64_t f1f6_2 = f1_2 * (int64_t)f6;
 1733|  1.75k|    int64_t f1f7_4 = f1_2 * (int64_t)f7_2;
 1734|  1.75k|    int64_t f1f8_2 = f1_2 * (int64_t)f8;
 1735|  1.75k|    int64_t f1f9_76 = f1_2 * (int64_t)f9_38;
 1736|  1.75k|    int64_t f2f2 = f2 * (int64_t)f2;
 1737|  1.75k|    int64_t f2f3_2 = f2_2 * (int64_t)f3;
 1738|  1.75k|    int64_t f2f4_2 = f2_2 * (int64_t)f4;
 1739|  1.75k|    int64_t f2f5_2 = f2_2 * (int64_t)f5;
 1740|  1.75k|    int64_t f2f6_2 = f2_2 * (int64_t)f6;
 1741|  1.75k|    int64_t f2f7_2 = f2_2 * (int64_t)f7;
 1742|  1.75k|    int64_t f2f8_38 = f2_2 * (int64_t)f8_19;
 1743|  1.75k|    int64_t f2f9_38 = f2 * (int64_t)f9_38;
 1744|  1.75k|    int64_t f3f3_2 = f3_2 * (int64_t)f3;
 1745|  1.75k|    int64_t f3f4_2 = f3_2 * (int64_t)f4;
 1746|  1.75k|    int64_t f3f5_4 = f3_2 * (int64_t)f5_2;
 1747|  1.75k|    int64_t f3f6_2 = f3_2 * (int64_t)f6;
 1748|  1.75k|    int64_t f3f7_76 = f3_2 * (int64_t)f7_38;
 1749|  1.75k|    int64_t f3f8_38 = f3_2 * (int64_t)f8_19;
 1750|  1.75k|    int64_t f3f9_76 = f3_2 * (int64_t)f9_38;
 1751|  1.75k|    int64_t f4f4 = f4 * (int64_t)f4;
 1752|  1.75k|    int64_t f4f5_2 = f4_2 * (int64_t)f5;
 1753|  1.75k|    int64_t f4f6_38 = f4_2 * (int64_t)f6_19;
 1754|  1.75k|    int64_t f4f7_38 = f4 * (int64_t)f7_38;
 1755|  1.75k|    int64_t f4f8_38 = f4_2 * (int64_t)f8_19;
 1756|  1.75k|    int64_t f4f9_38 = f4 * (int64_t)f9_38;
 1757|  1.75k|    int64_t f5f5_38 = f5 * (int64_t)f5_38;
 1758|  1.75k|    int64_t f5f6_38 = f5_2 * (int64_t)f6_19;
 1759|  1.75k|    int64_t f5f7_76 = f5_2 * (int64_t)f7_38;
 1760|  1.75k|    int64_t f5f8_38 = f5_2 * (int64_t)f8_19;
 1761|  1.75k|    int64_t f5f9_76 = f5_2 * (int64_t)f9_38;
 1762|  1.75k|    int64_t f6f6_19 = f6 * (int64_t)f6_19;
 1763|  1.75k|    int64_t f6f7_38 = f6 * (int64_t)f7_38;
 1764|  1.75k|    int64_t f6f8_38 = f6_2 * (int64_t)f8_19;
 1765|  1.75k|    int64_t f6f9_38 = f6 * (int64_t)f9_38;
 1766|  1.75k|    int64_t f7f7_38 = f7 * (int64_t)f7_38;
 1767|  1.75k|    int64_t f7f8_38 = f7_2 * (int64_t)f8_19;
 1768|  1.75k|    int64_t f7f9_76 = f7_2 * (int64_t)f9_38;
 1769|  1.75k|    int64_t f8f8_19 = f8 * (int64_t)f8_19;
 1770|  1.75k|    int64_t f8f9_38 = f8 * (int64_t)f9_38;
 1771|  1.75k|    int64_t f9f9_38 = f9 * (int64_t)f9_38;
 1772|  1.75k|    int64_t h0 = f0f0 + f1f9_76 + f2f8_38 + f3f7_76 + f4f6_38 + f5f5_38;
 1773|  1.75k|    int64_t h1 = f0f1_2 + f2f9_38 + f3f8_38 + f4f7_38 + f5f6_38;
 1774|  1.75k|    int64_t h2 = f0f2_2 + f1f1_2 + f3f9_76 + f4f8_38 + f5f7_76 + f6f6_19;
 1775|  1.75k|    int64_t h3 = f0f3_2 + f1f2_2 + f4f9_38 + f5f8_38 + f6f7_38;
 1776|  1.75k|    int64_t h4 = f0f4_2 + f1f3_4 + f2f2 + f5f9_76 + f6f8_38 + f7f7_38;
 1777|  1.75k|    int64_t h5 = f0f5_2 + f1f4_2 + f2f3_2 + f6f9_38 + f7f8_38;
 1778|  1.75k|    int64_t h6 = f0f6_2 + f1f5_4 + f2f4_2 + f3f3_2 + f7f9_76 + f8f8_19;
 1779|  1.75k|    int64_t h7 = f0f7_2 + f1f6_2 + f2f5_2 + f3f4_2 + f8f9_38;
 1780|  1.75k|    int64_t h8 = f0f8_2 + f1f7_4 + f2f6_2 + f3f5_4 + f4f4 + f9f9_38;
 1781|  1.75k|    int64_t h9 = f0f9_2 + f1f8_2 + f2f7_2 + f3f6_2 + f4f5_2;
 1782|  1.75k|    int64_t carry0;
 1783|  1.75k|    int64_t carry1;
 1784|  1.75k|    int64_t carry2;
 1785|  1.75k|    int64_t carry3;
 1786|  1.75k|    int64_t carry4;
 1787|  1.75k|    int64_t carry5;
 1788|  1.75k|    int64_t carry6;
 1789|  1.75k|    int64_t carry7;
 1790|  1.75k|    int64_t carry8;
 1791|  1.75k|    int64_t carry9;
 1792|       |
 1793|  1.75k|    h0 += h0;
 1794|  1.75k|    h1 += h1;
 1795|  1.75k|    h2 += h2;
 1796|  1.75k|    h3 += h3;
 1797|  1.75k|    h4 += h4;
 1798|  1.75k|    h5 += h5;
 1799|  1.75k|    h6 += h6;
 1800|  1.75k|    h7 += h7;
 1801|  1.75k|    h8 += h8;
 1802|  1.75k|    h9 += h9;
 1803|       |
 1804|  1.75k|    carry0 = h0 + (1 << 25);
 1805|  1.75k|    h1 += carry0 >> 26;
 1806|  1.75k|    h0 -= carry0 & kTop38Bits;
 1807|  1.75k|    carry4 = h4 + (1 << 25);
 1808|  1.75k|    h5 += carry4 >> 26;
 1809|  1.75k|    h4 -= carry4 & kTop38Bits;
 1810|       |
 1811|  1.75k|    carry1 = h1 + (1 << 24);
 1812|  1.75k|    h2 += carry1 >> 25;
 1813|  1.75k|    h1 -= carry1 & kTop39Bits;
 1814|  1.75k|    carry5 = h5 + (1 << 24);
 1815|  1.75k|    h6 += carry5 >> 25;
 1816|  1.75k|    h5 -= carry5 & kTop39Bits;
 1817|       |
 1818|  1.75k|    carry2 = h2 + (1 << 25);
 1819|  1.75k|    h3 += carry2 >> 26;
 1820|  1.75k|    h2 -= carry2 & kTop38Bits;
 1821|  1.75k|    carry6 = h6 + (1 << 25);
 1822|  1.75k|    h7 += carry6 >> 26;
 1823|  1.75k|    h6 -= carry6 & kTop38Bits;
 1824|       |
 1825|  1.75k|    carry3 = h3 + (1 << 24);
 1826|  1.75k|    h4 += carry3 >> 25;
 1827|  1.75k|    h3 -= carry3 & kTop39Bits;
 1828|  1.75k|    carry7 = h7 + (1 << 24);
 1829|  1.75k|    h8 += carry7 >> 25;
 1830|  1.75k|    h7 -= carry7 & kTop39Bits;
 1831|       |
 1832|  1.75k|    carry4 = h4 + (1 << 25);
 1833|  1.75k|    h5 += carry4 >> 26;
 1834|  1.75k|    h4 -= carry4 & kTop38Bits;
 1835|  1.75k|    carry8 = h8 + (1 << 25);
 1836|  1.75k|    h9 += carry8 >> 26;
 1837|  1.75k|    h8 -= carry8 & kTop38Bits;
 1838|       |
 1839|  1.75k|    carry9 = h9 + (1 << 24);
 1840|  1.75k|    h0 += (carry9 >> 25) * 19;
 1841|  1.75k|    h9 -= carry9 & kTop39Bits;
 1842|       |
 1843|  1.75k|    carry0 = h0 + (1 << 25);
 1844|  1.75k|    h1 += carry0 >> 26;
 1845|  1.75k|    h0 -= carry0 & kTop38Bits;
 1846|       |
 1847|  1.75k|    h[0] = (int32_t)h0;
 1848|  1.75k|    h[1] = (int32_t)h1;
 1849|  1.75k|    h[2] = (int32_t)h2;
 1850|  1.75k|    h[3] = (int32_t)h3;
 1851|  1.75k|    h[4] = (int32_t)h4;
 1852|  1.75k|    h[5] = (int32_t)h5;
 1853|  1.75k|    h[6] = (int32_t)h6;
 1854|  1.75k|    h[7] = (int32_t)h7;
 1855|  1.75k|    h[8] = (int32_t)h8;
 1856|  1.75k|    h[9] = (int32_t)h9;
 1857|  1.75k|}
curve25519.c:fe_neg:
 1621|  28.0k|{
 1622|  28.0k|    unsigned i;
 1623|       |
 1624|   308k|    for (i = 0; i < 10; i++) {
  ------------------
  |  Branch (1624:17): [True: 280k, False: 28.0k]
  ------------------
 1625|   280k|        h[i] = -f[i];
 1626|   280k|    }
 1627|  28.0k|}
curve25519.c:fe_add:
 1046|   116k|{
 1047|   116k|    unsigned i;
 1048|       |
 1049|  1.27M|    for (i = 0; i < 10; i++) {
  ------------------
  |  Branch (1049:17): [True: 1.16M, False: 116k]
  ------------------
 1050|  1.16M|        h[i] = f[i] + g[i];
 1051|  1.16M|    }
 1052|   116k|}
curve25519.c:fe_sub:
 1067|  89.7k|{
 1068|  89.7k|    unsigned i;
 1069|       |
 1070|   987k|    for (i = 0; i < 10; i++) {
  ------------------
  |  Branch (1070:17): [True: 897k, False: 89.7k]
  ------------------
 1071|   897k|        h[i] = f[i] - g[i];
 1072|   897k|    }
 1073|  89.7k|}
curve25519.c:fe_invert:
 1516|    438|{
 1517|    438|    fe t0;
 1518|    438|    fe t1;
 1519|    438|    fe t2;
 1520|    438|    fe t3;
 1521|    438|    int i;
 1522|       |
 1523|       |    /*
 1524|       |     * Compute z ** -1 = z ** (2 ** 255 - 19 - 2) with the exponent as
 1525|       |     * 2 ** 255 - 21 = (2 ** 5) * (2 ** 250 - 1) + 11.
 1526|       |     */
 1527|       |
 1528|       |    /* t0 = z ** 2 */
 1529|    438|    fe_sq(t0, z);
 1530|       |
 1531|       |    /* t1 = t0 ** (2 ** 2) = z ** 8 */
 1532|    438|    fe_sq(t1, t0);
 1533|    438|    fe_sq(t1, t1);
 1534|       |
 1535|       |    /* t1 = z * t1 = z ** 9 */
 1536|    438|    fe_mul(t1, z, t1);
 1537|       |    /* t0 = t0 * t1 = z ** 11 -- stash t0 away for the end. */
 1538|    438|    fe_mul(t0, t0, t1);
 1539|       |
 1540|       |    /* t2 = t0 ** 2 = z ** 22 */
 1541|    438|    fe_sq(t2, t0);
 1542|       |
 1543|       |    /* t1 = t1 * t2 = z ** (2 ** 5 - 1) */
 1544|    438|    fe_mul(t1, t1, t2);
 1545|       |
 1546|       |    /* t2 = t1 ** (2 ** 5) = z ** ((2 ** 5) * (2 ** 5 - 1)) */
 1547|    438|    fe_sq(t2, t1);
 1548|  2.19k|    for (i = 1; i < 5; ++i) {
  ------------------
  |  Branch (1548:17): [True: 1.75k, False: 438]
  ------------------
 1549|  1.75k|        fe_sq(t2, t2);
 1550|  1.75k|    }
 1551|       |
 1552|       |    /* t1 = t1 * t2 = z ** ((2 ** 5 + 1) * (2 ** 5 - 1)) = z ** (2 ** 10 - 1) */
 1553|    438|    fe_mul(t1, t2, t1);
 1554|       |
 1555|       |    /* Continuing similarly... */
 1556|       |
 1557|       |    /* t2 = z ** (2 ** 20 - 1) */
 1558|    438|    fe_sq(t2, t1);
 1559|  4.38k|    for (i = 1; i < 10; ++i) {
  ------------------
  |  Branch (1559:17): [True: 3.94k, False: 438]
  ------------------
 1560|  3.94k|        fe_sq(t2, t2);
 1561|  3.94k|    }
 1562|    438|    fe_mul(t2, t2, t1);
 1563|       |
 1564|       |    /* t2 = z ** (2 ** 40 - 1) */
 1565|    438|    fe_sq(t3, t2);
 1566|  8.76k|    for (i = 1; i < 20; ++i) {
  ------------------
  |  Branch (1566:17): [True: 8.32k, False: 438]
  ------------------
 1567|  8.32k|        fe_sq(t3, t3);
 1568|  8.32k|    }
 1569|    438|    fe_mul(t2, t3, t2);
 1570|       |
 1571|       |    /* t2 = z ** (2 ** 10) * (2 ** 40 - 1) */
 1572|  4.81k|    for (i = 0; i < 10; ++i) {
  ------------------
  |  Branch (1572:17): [True: 4.38k, False: 438]
  ------------------
 1573|  4.38k|        fe_sq(t2, t2);
 1574|  4.38k|    }
 1575|       |    /* t1 = z ** (2 ** 50 - 1) */
 1576|    438|    fe_mul(t1, t2, t1);
 1577|       |
 1578|       |    /* t2 = z ** (2 ** 100 - 1) */
 1579|    438|    fe_sq(t2, t1);
 1580|  21.9k|    for (i = 1; i < 50; ++i) {
  ------------------
  |  Branch (1580:17): [True: 21.4k, False: 438]
  ------------------
 1581|  21.4k|        fe_sq(t2, t2);
 1582|  21.4k|    }
 1583|    438|    fe_mul(t2, t2, t1);
 1584|       |
 1585|       |    /* t2 = z ** (2 ** 200 - 1) */
 1586|    438|    fe_sq(t3, t2);
 1587|  43.8k|    for (i = 1; i < 100; ++i) {
  ------------------
  |  Branch (1587:17): [True: 43.3k, False: 438]
  ------------------
 1588|  43.3k|        fe_sq(t3, t3);
 1589|  43.3k|    }
 1590|    438|    fe_mul(t2, t3, t2);
 1591|       |
 1592|       |    /* t2 = z ** ((2 ** 50) * (2 ** 200 - 1) */
 1593|    438|    fe_sq(t2, t2);
 1594|  21.9k|    for (i = 1; i < 50; ++i) {
  ------------------
  |  Branch (1594:17): [True: 21.4k, False: 438]
  ------------------
 1595|  21.4k|        fe_sq(t2, t2);
 1596|  21.4k|    }
 1597|       |
 1598|       |    /* t1 = z ** (2 ** 250 - 1) */
 1599|    438|    fe_mul(t1, t2, t1);
 1600|       |
 1601|       |    /* t1 = z ** ((2 ** 5) * (2 ** 250 - 1)) */
 1602|    438|    fe_sq(t1, t1);
 1603|  2.19k|    for (i = 1; i < 5; ++i) {
  ------------------
  |  Branch (1603:17): [True: 1.75k, False: 438]
  ------------------
 1604|  1.75k|        fe_sq(t1, t1);
 1605|  1.75k|    }
 1606|       |
 1607|       |    /* Recall t0 = z ** 11; out = z ** (2 ** 255 - 21) */
 1608|    438|    fe_mul(out, t1, t0);
 1609|    438|}
curve25519.c:fe_mul:
 1106|   207k|{
 1107|   207k|    int32_t f0 = f[0];
 1108|   207k|    int32_t f1 = f[1];
 1109|   207k|    int32_t f2 = f[2];
 1110|   207k|    int32_t f3 = f[3];
 1111|   207k|    int32_t f4 = f[4];
 1112|   207k|    int32_t f5 = f[5];
 1113|   207k|    int32_t f6 = f[6];
 1114|   207k|    int32_t f7 = f[7];
 1115|   207k|    int32_t f8 = f[8];
 1116|   207k|    int32_t f9 = f[9];
 1117|   207k|    int32_t g0 = g[0];
 1118|   207k|    int32_t g1 = g[1];
 1119|   207k|    int32_t g2 = g[2];
 1120|   207k|    int32_t g3 = g[3];
 1121|   207k|    int32_t g4 = g[4];
 1122|   207k|    int32_t g5 = g[5];
 1123|   207k|    int32_t g6 = g[6];
 1124|   207k|    int32_t g7 = g[7];
 1125|   207k|    int32_t g8 = g[8];
 1126|   207k|    int32_t g9 = g[9];
 1127|   207k|    int32_t g1_19 = 19 * g1; /* 1.959375*2^29 */
 1128|   207k|    int32_t g2_19 = 19 * g2; /* 1.959375*2^30; still ok */
 1129|   207k|    int32_t g3_19 = 19 * g3;
 1130|   207k|    int32_t g4_19 = 19 * g4;
 1131|   207k|    int32_t g5_19 = 19 * g5;
 1132|   207k|    int32_t g6_19 = 19 * g6;
 1133|   207k|    int32_t g7_19 = 19 * g7;
 1134|   207k|    int32_t g8_19 = 19 * g8;
 1135|   207k|    int32_t g9_19 = 19 * g9;
 1136|   207k|    int32_t f1_2 = 2 * f1;
 1137|   207k|    int32_t f3_2 = 2 * f3;
 1138|   207k|    int32_t f5_2 = 2 * f5;
 1139|   207k|    int32_t f7_2 = 2 * f7;
 1140|   207k|    int32_t f9_2 = 2 * f9;
 1141|   207k|    int64_t f0g0 = f0 * (int64_t)g0;
 1142|   207k|    int64_t f0g1 = f0 * (int64_t)g1;
 1143|   207k|    int64_t f0g2 = f0 * (int64_t)g2;
 1144|   207k|    int64_t f0g3 = f0 * (int64_t)g3;
 1145|   207k|    int64_t f0g4 = f0 * (int64_t)g4;
 1146|   207k|    int64_t f0g5 = f0 * (int64_t)g5;
 1147|   207k|    int64_t f0g6 = f0 * (int64_t)g6;
 1148|   207k|    int64_t f0g7 = f0 * (int64_t)g7;
 1149|   207k|    int64_t f0g8 = f0 * (int64_t)g8;
 1150|   207k|    int64_t f0g9 = f0 * (int64_t)g9;
 1151|   207k|    int64_t f1g0 = f1 * (int64_t)g0;
 1152|   207k|    int64_t f1g1_2 = f1_2 * (int64_t)g1;
 1153|   207k|    int64_t f1g2 = f1 * (int64_t)g2;
 1154|   207k|    int64_t f1g3_2 = f1_2 * (int64_t)g3;
 1155|   207k|    int64_t f1g4 = f1 * (int64_t)g4;
 1156|   207k|    int64_t f1g5_2 = f1_2 * (int64_t)g5;
 1157|   207k|    int64_t f1g6 = f1 * (int64_t)g6;
 1158|   207k|    int64_t f1g7_2 = f1_2 * (int64_t)g7;
 1159|   207k|    int64_t f1g8 = f1 * (int64_t)g8;
 1160|   207k|    int64_t f1g9_38 = f1_2 * (int64_t)g9_19;
 1161|   207k|    int64_t f2g0 = f2 * (int64_t)g0;
 1162|   207k|    int64_t f2g1 = f2 * (int64_t)g1;
 1163|   207k|    int64_t f2g2 = f2 * (int64_t)g2;
 1164|   207k|    int64_t f2g3 = f2 * (int64_t)g3;
 1165|   207k|    int64_t f2g4 = f2 * (int64_t)g4;
 1166|   207k|    int64_t f2g5 = f2 * (int64_t)g5;
 1167|   207k|    int64_t f2g6 = f2 * (int64_t)g6;
 1168|   207k|    int64_t f2g7 = f2 * (int64_t)g7;
 1169|   207k|    int64_t f2g8_19 = f2 * (int64_t)g8_19;
 1170|   207k|    int64_t f2g9_19 = f2 * (int64_t)g9_19;
 1171|   207k|    int64_t f3g0 = f3 * (int64_t)g0;
 1172|   207k|    int64_t f3g1_2 = f3_2 * (int64_t)g1;
 1173|   207k|    int64_t f3g2 = f3 * (int64_t)g2;
 1174|   207k|    int64_t f3g3_2 = f3_2 * (int64_t)g3;
 1175|   207k|    int64_t f3g4 = f3 * (int64_t)g4;
 1176|   207k|    int64_t f3g5_2 = f3_2 * (int64_t)g5;
 1177|   207k|    int64_t f3g6 = f3 * (int64_t)g6;
 1178|   207k|    int64_t f3g7_38 = f3_2 * (int64_t)g7_19;
 1179|   207k|    int64_t f3g8_19 = f3 * (int64_t)g8_19;
 1180|   207k|    int64_t f3g9_38 = f3_2 * (int64_t)g9_19;
 1181|   207k|    int64_t f4g0 = f4 * (int64_t)g0;
 1182|   207k|    int64_t f4g1 = f4 * (int64_t)g1;
 1183|   207k|    int64_t f4g2 = f4 * (int64_t)g2;
 1184|   207k|    int64_t f4g3 = f4 * (int64_t)g3;
 1185|   207k|    int64_t f4g4 = f4 * (int64_t)g4;
 1186|   207k|    int64_t f4g5 = f4 * (int64_t)g5;
 1187|   207k|    int64_t f4g6_19 = f4 * (int64_t)g6_19;
 1188|   207k|    int64_t f4g7_19 = f4 * (int64_t)g7_19;
 1189|   207k|    int64_t f4g8_19 = f4 * (int64_t)g8_19;
 1190|   207k|    int64_t f4g9_19 = f4 * (int64_t)g9_19;
 1191|   207k|    int64_t f5g0 = f5 * (int64_t)g0;
 1192|   207k|    int64_t f5g1_2 = f5_2 * (int64_t)g1;
 1193|   207k|    int64_t f5g2 = f5 * (int64_t)g2;
 1194|   207k|    int64_t f5g3_2 = f5_2 * (int64_t)g3;
 1195|   207k|    int64_t f5g4 = f5 * (int64_t)g4;
 1196|   207k|    int64_t f5g5_38 = f5_2 * (int64_t)g5_19;
 1197|   207k|    int64_t f5g6_19 = f5 * (int64_t)g6_19;
 1198|   207k|    int64_t f5g7_38 = f5_2 * (int64_t)g7_19;
 1199|   207k|    int64_t f5g8_19 = f5 * (int64_t)g8_19;
 1200|   207k|    int64_t f5g9_38 = f5_2 * (int64_t)g9_19;
 1201|   207k|    int64_t f6g0 = f6 * (int64_t)g0;
 1202|   207k|    int64_t f6g1 = f6 * (int64_t)g1;
 1203|   207k|    int64_t f6g2 = f6 * (int64_t)g2;
 1204|   207k|    int64_t f6g3 = f6 * (int64_t)g3;
 1205|   207k|    int64_t f6g4_19 = f6 * (int64_t)g4_19;
 1206|   207k|    int64_t f6g5_19 = f6 * (int64_t)g5_19;
 1207|   207k|    int64_t f6g6_19 = f6 * (int64_t)g6_19;
 1208|   207k|    int64_t f6g7_19 = f6 * (int64_t)g7_19;
 1209|   207k|    int64_t f6g8_19 = f6 * (int64_t)g8_19;
 1210|   207k|    int64_t f6g9_19 = f6 * (int64_t)g9_19;
 1211|   207k|    int64_t f7g0 = f7 * (int64_t)g0;
 1212|   207k|    int64_t f7g1_2 = f7_2 * (int64_t)g1;
 1213|   207k|    int64_t f7g2 = f7 * (int64_t)g2;
 1214|   207k|    int64_t f7g3_38 = f7_2 * (int64_t)g3_19;
 1215|   207k|    int64_t f7g4_19 = f7 * (int64_t)g4_19;
 1216|   207k|    int64_t f7g5_38 = f7_2 * (int64_t)g5_19;
 1217|   207k|    int64_t f7g6_19 = f7 * (int64_t)g6_19;
 1218|   207k|    int64_t f7g7_38 = f7_2 * (int64_t)g7_19;
 1219|   207k|    int64_t f7g8_19 = f7 * (int64_t)g8_19;
 1220|   207k|    int64_t f7g9_38 = f7_2 * (int64_t)g9_19;
 1221|   207k|    int64_t f8g0 = f8 * (int64_t)g0;
 1222|   207k|    int64_t f8g1 = f8 * (int64_t)g1;
 1223|   207k|    int64_t f8g2_19 = f8 * (int64_t)g2_19;
 1224|   207k|    int64_t f8g3_19 = f8 * (int64_t)g3_19;
 1225|   207k|    int64_t f8g4_19 = f8 * (int64_t)g4_19;
 1226|   207k|    int64_t f8g5_19 = f8 * (int64_t)g5_19;
 1227|   207k|    int64_t f8g6_19 = f8 * (int64_t)g6_19;
 1228|   207k|    int64_t f8g7_19 = f8 * (int64_t)g7_19;
 1229|   207k|    int64_t f8g8_19 = f8 * (int64_t)g8_19;
 1230|   207k|    int64_t f8g9_19 = f8 * (int64_t)g9_19;
 1231|   207k|    int64_t f9g0 = f9 * (int64_t)g0;
 1232|   207k|    int64_t f9g1_38 = f9_2 * (int64_t)g1_19;
 1233|   207k|    int64_t f9g2_19 = f9 * (int64_t)g2_19;
 1234|   207k|    int64_t f9g3_38 = f9_2 * (int64_t)g3_19;
 1235|   207k|    int64_t f9g4_19 = f9 * (int64_t)g4_19;
 1236|   207k|    int64_t f9g5_38 = f9_2 * (int64_t)g5_19;
 1237|   207k|    int64_t f9g6_19 = f9 * (int64_t)g6_19;
 1238|   207k|    int64_t f9g7_38 = f9_2 * (int64_t)g7_19;
 1239|   207k|    int64_t f9g8_19 = f9 * (int64_t)g8_19;
 1240|   207k|    int64_t f9g9_38 = f9_2 * (int64_t)g9_19;
 1241|   207k|    int64_t h0 = f0g0 + f1g9_38 + f2g8_19 + f3g7_38 + f4g6_19 + f5g5_38 + f6g4_19 + f7g3_38 + f8g2_19 + f9g1_38;
 1242|   207k|    int64_t h1 = f0g1 + f1g0 + f2g9_19 + f3g8_19 + f4g7_19 + f5g6_19 + f6g5_19 + f7g4_19 + f8g3_19 + f9g2_19;
 1243|   207k|    int64_t h2 = f0g2 + f1g1_2 + f2g0 + f3g9_38 + f4g8_19 + f5g7_38 + f6g6_19 + f7g5_38 + f8g4_19 + f9g3_38;
 1244|   207k|    int64_t h3 = f0g3 + f1g2 + f2g1 + f3g0 + f4g9_19 + f5g8_19 + f6g7_19 + f7g6_19 + f8g5_19 + f9g4_19;
 1245|   207k|    int64_t h4 = f0g4 + f1g3_2 + f2g2 + f3g1_2 + f4g0 + f5g9_38 + f6g8_19 + f7g7_38 + f8g6_19 + f9g5_38;
 1246|   207k|    int64_t h5 = f0g5 + f1g4 + f2g3 + f3g2 + f4g1 + f5g0 + f6g9_19 + f7g8_19 + f8g7_19 + f9g6_19;
 1247|   207k|    int64_t h6 = f0g6 + f1g5_2 + f2g4 + f3g3_2 + f4g2 + f5g1_2 + f6g0 + f7g9_38 + f8g8_19 + f9g7_38;
 1248|   207k|    int64_t h7 = f0g7 + f1g6 + f2g5 + f3g4 + f4g3 + f5g2 + f6g1 + f7g0 + f8g9_19 + f9g8_19;
 1249|   207k|    int64_t h8 = f0g8 + f1g7_2 + f2g6 + f3g5_2 + f4g4 + f5g3_2 + f6g2 + f7g1_2 + f8g0 + f9g9_38;
 1250|   207k|    int64_t h9 = f0g9 + f1g8 + f2g7 + f3g6 + f4g5 + f5g4 + f6g3 + f7g2 + f8g1 + f9g0;
 1251|   207k|    int64_t carry0;
 1252|   207k|    int64_t carry1;
 1253|   207k|    int64_t carry2;
 1254|   207k|    int64_t carry3;
 1255|   207k|    int64_t carry4;
 1256|   207k|    int64_t carry5;
 1257|   207k|    int64_t carry6;
 1258|   207k|    int64_t carry7;
 1259|   207k|    int64_t carry8;
 1260|   207k|    int64_t carry9;
 1261|       |
 1262|       |    /* |h0| <= (1.65*1.65*2^52*(1+19+19+19+19)+1.65*1.65*2^50*(38+38+38+38+38))
 1263|       |     *   i.e. |h0| <= 1.4*2^60; narrower ranges for h2, h4, h6, h8
 1264|       |     * |h1| <= (1.65*1.65*2^51*(1+1+19+19+19+19+19+19+19+19))
 1265|       |     *   i.e. |h1| <= 1.7*2^59; narrower ranges for h3, h5, h7, h9 */
 1266|       |
 1267|   207k|    carry0 = h0 + (1 << 25);
 1268|   207k|    h1 += carry0 >> 26;
 1269|   207k|    h0 -= carry0 & kTop38Bits;
 1270|   207k|    carry4 = h4 + (1 << 25);
 1271|   207k|    h5 += carry4 >> 26;
 1272|   207k|    h4 -= carry4 & kTop38Bits;
 1273|       |    /* |h0| <= 2^25 */
 1274|       |    /* |h4| <= 2^25 */
 1275|       |    /* |h1| <= 1.71*2^59 */
 1276|       |    /* |h5| <= 1.71*2^59 */
 1277|       |
 1278|   207k|    carry1 = h1 + (1 << 24);
 1279|   207k|    h2 += carry1 >> 25;
 1280|   207k|    h1 -= carry1 & kTop39Bits;
 1281|   207k|    carry5 = h5 + (1 << 24);
 1282|   207k|    h6 += carry5 >> 25;
 1283|   207k|    h5 -= carry5 & kTop39Bits;
 1284|       |    /* |h1| <= 2^24; from now on fits into int32 */
 1285|       |    /* |h5| <= 2^24; from now on fits into int32 */
 1286|       |    /* |h2| <= 1.41*2^60 */
 1287|       |    /* |h6| <= 1.41*2^60 */
 1288|       |
 1289|   207k|    carry2 = h2 + (1 << 25);
 1290|   207k|    h3 += carry2 >> 26;
 1291|   207k|    h2 -= carry2 & kTop38Bits;
 1292|   207k|    carry6 = h6 + (1 << 25);
 1293|   207k|    h7 += carry6 >> 26;
 1294|   207k|    h6 -= carry6 & kTop38Bits;
 1295|       |    /* |h2| <= 2^25; from now on fits into int32 unchanged */
 1296|       |    /* |h6| <= 2^25; from now on fits into int32 unchanged */
 1297|       |    /* |h3| <= 1.71*2^59 */
 1298|       |    /* |h7| <= 1.71*2^59 */
 1299|       |
 1300|   207k|    carry3 = h3 + (1 << 24);
 1301|   207k|    h4 += carry3 >> 25;
 1302|   207k|    h3 -= carry3 & kTop39Bits;
 1303|   207k|    carry7 = h7 + (1 << 24);
 1304|   207k|    h8 += carry7 >> 25;
 1305|   207k|    h7 -= carry7 & kTop39Bits;
 1306|       |    /* |h3| <= 2^24; from now on fits into int32 unchanged */
 1307|       |    /* |h7| <= 2^24; from now on fits into int32 unchanged */
 1308|       |    /* |h4| <= 1.72*2^34 */
 1309|       |    /* |h8| <= 1.41*2^60 */
 1310|       |
 1311|   207k|    carry4 = h4 + (1 << 25);
 1312|   207k|    h5 += carry4 >> 26;
 1313|   207k|    h4 -= carry4 & kTop38Bits;
 1314|   207k|    carry8 = h8 + (1 << 25);
 1315|   207k|    h9 += carry8 >> 26;
 1316|   207k|    h8 -= carry8 & kTop38Bits;
 1317|       |    /* |h4| <= 2^25; from now on fits into int32 unchanged */
 1318|       |    /* |h8| <= 2^25; from now on fits into int32 unchanged */
 1319|       |    /* |h5| <= 1.01*2^24 */
 1320|       |    /* |h9| <= 1.71*2^59 */
 1321|       |
 1322|   207k|    carry9 = h9 + (1 << 24);
 1323|   207k|    h0 += (carry9 >> 25) * 19;
 1324|   207k|    h9 -= carry9 & kTop39Bits;
 1325|       |    /* |h9| <= 2^24; from now on fits into int32 unchanged */
 1326|       |    /* |h0| <= 1.1*2^39 */
 1327|       |
 1328|   207k|    carry0 = h0 + (1 << 25);
 1329|   207k|    h1 += carry0 >> 26;
 1330|   207k|    h0 -= carry0 & kTop38Bits;
 1331|       |    /* |h0| <= 2^25; from now on fits into int32 unchanged */
 1332|       |    /* |h1| <= 1.01*2^24 */
 1333|       |
 1334|   207k|    h[0] = (int32_t)h0;
 1335|   207k|    h[1] = (int32_t)h1;
 1336|   207k|    h[2] = (int32_t)h2;
 1337|   207k|    h[3] = (int32_t)h3;
 1338|   207k|    h[4] = (int32_t)h4;
 1339|   207k|    h[5] = (int32_t)h5;
 1340|   207k|    h[6] = (int32_t)h6;
 1341|   207k|    h[7] = (int32_t)h7;
 1342|   207k|    h[8] = (int32_t)h8;
 1343|   207k|    h[9] = (int32_t)h9;
 1344|   207k|}
curve25519.c:fe_tobytes:
  924|    438|{
  925|    438|    int32_t h0 = h[0];
  926|    438|    int32_t h1 = h[1];
  927|    438|    int32_t h2 = h[2];
  928|    438|    int32_t h3 = h[3];
  929|    438|    int32_t h4 = h[4];
  930|    438|    int32_t h5 = h[5];
  931|    438|    int32_t h6 = h[6];
  932|    438|    int32_t h7 = h[7];
  933|    438|    int32_t h8 = h[8];
  934|    438|    int32_t h9 = h[9];
  935|    438|    int32_t q;
  936|       |
  937|    438|    q = (19 * h9 + (((int32_t)1) << 24)) >> 25;
  938|    438|    q = (h0 + q) >> 26;
  939|    438|    q = (h1 + q) >> 25;
  940|    438|    q = (h2 + q) >> 26;
  941|    438|    q = (h3 + q) >> 25;
  942|    438|    q = (h4 + q) >> 26;
  943|    438|    q = (h5 + q) >> 25;
  944|    438|    q = (h6 + q) >> 26;
  945|    438|    q = (h7 + q) >> 25;
  946|    438|    q = (h8 + q) >> 26;
  947|    438|    q = (h9 + q) >> 25;
  948|       |
  949|       |    /* Goal: Output h-(2^255-19)q, which is between 0 and 2^255-20. */
  950|    438|    h0 += 19 * q;
  951|       |    /* Goal: Output h-2^255 q, which is between 0 and 2^255-20. */
  952|       |
  953|    438|    h1 += h0 >> 26;
  954|    438|    h0 &= kBottom26Bits;
  955|    438|    h2 += h1 >> 25;
  956|    438|    h1 &= kBottom25Bits;
  957|    438|    h3 += h2 >> 26;
  958|    438|    h2 &= kBottom26Bits;
  959|    438|    h4 += h3 >> 25;
  960|    438|    h3 &= kBottom25Bits;
  961|    438|    h5 += h4 >> 26;
  962|    438|    h4 &= kBottom26Bits;
  963|    438|    h6 += h5 >> 25;
  964|    438|    h5 &= kBottom25Bits;
  965|    438|    h7 += h6 >> 26;
  966|    438|    h6 &= kBottom26Bits;
  967|    438|    h8 += h7 >> 25;
  968|    438|    h7 &= kBottom25Bits;
  969|    438|    h9 += h8 >> 26;
  970|    438|    h8 &= kBottom26Bits;
  971|    438|    h9 &= kBottom25Bits;
  972|       |    /* h10 = carry9 */
  973|       |
  974|       |    /*
  975|       |     * Goal: Output h0+...+2^255 h10-2^255 q, which is between 0 and 2^255-20.
  976|       |     * Have h0+...+2^230 h9 between 0 and 2^255-1;
  977|       |     * evidently 2^255 h10-2^255 q = 0.
  978|       |     * Goal: Output h0+...+2^230 h9.
  979|       |     */
  980|    438|    s[0] = (uint8_t)(h0 >> 0);
  981|    438|    s[1] = (uint8_t)(h0 >> 8);
  982|    438|    s[2] = (uint8_t)(h0 >> 16);
  983|    438|    s[3] = (uint8_t)((h0 >> 24) | ((uint32_t)(h1) << 2));
  984|    438|    s[4] = (uint8_t)(h1 >> 6);
  985|    438|    s[5] = (uint8_t)(h1 >> 14);
  986|    438|    s[6] = (uint8_t)((h1 >> 22) | ((uint32_t)(h2) << 3));
  987|    438|    s[7] = (uint8_t)(h2 >> 5);
  988|    438|    s[8] = (uint8_t)(h2 >> 13);
  989|    438|    s[9] = (uint8_t)((h2 >> 21) | ((uint32_t)(h3) << 5));
  990|    438|    s[10] = (uint8_t)(h3 >> 3);
  991|    438|    s[11] = (uint8_t)(h3 >> 11);
  992|    438|    s[12] = (uint8_t)((h3 >> 19) | ((uint32_t)(h4) << 6));
  993|    438|    s[13] = (uint8_t)(h4 >> 2);
  994|    438|    s[14] = (uint8_t)(h4 >> 10);
  995|    438|    s[15] = (uint8_t)(h4 >> 18);
  996|    438|    s[16] = (uint8_t)(h5 >> 0);
  997|    438|    s[17] = (uint8_t)(h5 >> 8);
  998|    438|    s[18] = (uint8_t)(h5 >> 16);
  999|    438|    s[19] = (uint8_t)((h5 >> 24) | ((uint32_t)(h6) << 1));
 1000|    438|    s[20] = (uint8_t)(h6 >> 7);
 1001|    438|    s[21] = (uint8_t)(h6 >> 15);
 1002|    438|    s[22] = (uint8_t)((h6 >> 23) | ((uint32_t)(h7) << 3));
 1003|    438|    s[23] = (uint8_t)(h7 >> 5);
 1004|    438|    s[24] = (uint8_t)(h7 >> 13);
 1005|    438|    s[25] = (uint8_t)((h7 >> 21) | ((uint32_t)(h8) << 4));
 1006|    438|    s[26] = (uint8_t)(h8 >> 4);
 1007|    438|    s[27] = (uint8_t)(h8 >> 12);
 1008|    438|    s[28] = (uint8_t)((h8 >> 20) | ((uint32_t)(h9) << 6));
 1009|    438|    s[29] = (uint8_t)(h9 >> 2);
 1010|    438|    s[30] = (uint8_t)(h9 >> 10);
 1011|    438|    s[31] = (uint8_t)(h9 >> 18);
 1012|    438|}

ec_ameth.c:eckey_pub_decode:
  101|  8.76k|{
  102|  8.76k|    const unsigned char *p = NULL;
  103|  8.76k|    int pklen;
  104|  8.76k|    EC_KEY *eckey = NULL;
  105|  8.76k|    X509_ALGOR *palg;
  106|  8.76k|    OSSL_LIB_CTX *libctx = NULL;
  107|  8.76k|    const char *propq = NULL;
  108|       |
  109|  8.76k|    if (!ossl_x509_PUBKEY_get0_libctx(&libctx, &propq, pubkey)
  ------------------
  |  Branch (109:9): [True: 0, False: 8.76k]
  ------------------
  110|  8.76k|        || !X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey))
  ------------------
  |  Branch (110:12): [True: 0, False: 8.76k]
  ------------------
  111|      0|        return 0;
  112|  8.76k|    eckey = ossl_ec_key_param_from_x509_algor(palg, libctx, propq);
  113|       |
  114|  8.76k|    if (!eckey)
  ------------------
  |  Branch (114:9): [True: 0, False: 8.76k]
  ------------------
  115|      0|        return 0;
  116|       |
  117|       |    /* We have parameters now set public key */
  118|  8.76k|    if (!o2i_ECPublicKey(&eckey, &p, pklen)) {
  ------------------
  |  Branch (118:9): [True: 0, False: 8.76k]
  ------------------
  119|      0|        ERR_raise(ERR_LIB_EC, EC_R_DECODE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  120|      0|        goto ecerr;
  121|      0|    }
  122|       |
  123|  8.76k|    EVP_PKEY_assign_EC_KEY(pkey, eckey);
  ------------------
  |  |  527|  8.76k|#define EVP_PKEY_assign_EC_KEY(pkey, eckey) EVP_PKEY_assign((pkey), \
  |  |  528|  8.76k|    EVP_PKEY_EC,                                                    \
  |  |  ------------------
  |  |  |  |   73|  8.76k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  |  |  ------------------
  |  |  |  |  |  |  178|  8.76k|#define NID_X9_62_id_ecPublicKey                408
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  529|  8.76k|    (eckey))
  ------------------
  124|  8.76k|    return 1;
  125|       |
  126|      0|ecerr:
  127|      0|    EC_KEY_free(eckey);
  128|      0|    return 0;
  129|  8.76k|}
ec_ameth.c:int_ec_free:
  273|  8.76k|{
  274|  8.76k|    EC_KEY_free(pkey->pkey.ec);
  275|  8.76k|}

o2i_ECPublicKey:
 1122|  8.76k|{
 1123|  8.76k|    EC_KEY *ret = NULL;
 1124|       |
 1125|  8.76k|    if (a == NULL || (*a) == NULL || (*a)->group == NULL) {
  ------------------
  |  Branch (1125:9): [True: 0, False: 8.76k]
  |  Branch (1125:22): [True: 0, False: 8.76k]
  |  Branch (1125:38): [True: 0, False: 8.76k]
  ------------------
 1126|       |        /*
 1127|       |         * sorry, but a EC_GROUP-structure is necessary to set the public key
 1128|       |         */
 1129|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1130|      0|        return 0;
 1131|      0|    }
 1132|  8.76k|    ret = *a;
 1133|       |    /* EC_KEY_opt2key updates dirty_cnt */
 1134|  8.76k|    if (!EC_KEY_oct2key(ret, *in, len, NULL)) {
  ------------------
  |  Branch (1134:9): [True: 0, False: 8.76k]
  ------------------
 1135|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1136|      0|        return 0;
 1137|      0|    }
 1138|  8.76k|    *in += len;
 1139|  8.76k|    return ret;
 1140|  8.76k|}
i2d_ECDSA_SIG:
 1232|  8.76k|{
 1233|  8.76k|    BUF_MEM *buf = NULL;
 1234|  8.76k|    size_t encoded_len;
 1235|  8.76k|    WPACKET pkt;
 1236|       |
 1237|  8.76k|    if (ppout == NULL) {
  ------------------
  |  Branch (1237:9): [True: 8.76k, False: 0]
  ------------------
 1238|  8.76k|        if (!WPACKET_init_null(&pkt, 0))
  ------------------
  |  Branch (1238:13): [True: 0, False: 8.76k]
  ------------------
 1239|      0|            return -1;
 1240|  8.76k|    } else if (*ppout == NULL) {
  ------------------
  |  Branch (1240:16): [True: 0, False: 0]
  ------------------
 1241|      0|        if ((buf = BUF_MEM_new()) == NULL
  ------------------
  |  Branch (1241:13): [True: 0, False: 0]
  ------------------
 1242|      0|            || !WPACKET_init_len(&pkt, buf, 0)) {
  ------------------
  |  Branch (1242:16): [True: 0, False: 0]
  ------------------
 1243|      0|            BUF_MEM_free(buf);
 1244|      0|            return -1;
 1245|      0|        }
 1246|      0|    } else {
 1247|      0|        if (!WPACKET_init_static_len(&pkt, *ppout, SIZE_MAX, 0))
  ------------------
  |  Branch (1247:13): [True: 0, False: 0]
  ------------------
 1248|      0|            return -1;
 1249|      0|    }
 1250|       |
 1251|  8.76k|    if (!ossl_encode_der_dsa_sig(&pkt, sig->r, sig->s)
  ------------------
  |  Branch (1251:9): [True: 0, False: 8.76k]
  ------------------
 1252|  8.76k|        || !WPACKET_get_total_written(&pkt, &encoded_len)
  ------------------
  |  Branch (1252:12): [True: 0, False: 8.76k]
  ------------------
 1253|  8.76k|        || !WPACKET_finish(&pkt)) {
  ------------------
  |  Branch (1253:12): [True: 0, False: 8.76k]
  ------------------
 1254|      0|        BUF_MEM_free(buf);
 1255|      0|        WPACKET_cleanup(&pkt);
 1256|      0|        return -1;
 1257|      0|    }
 1258|       |
 1259|  8.76k|    if (ppout != NULL) {
  ------------------
  |  Branch (1259:9): [True: 0, False: 8.76k]
  ------------------
 1260|      0|        if (*ppout == NULL) {
  ------------------
  |  Branch (1260:13): [True: 0, False: 0]
  ------------------
 1261|      0|            *ppout = (unsigned char *)buf->data;
 1262|      0|            buf->data = NULL;
 1263|      0|            BUF_MEM_free(buf);
 1264|      0|        } else {
 1265|      0|            *ppout += encoded_len;
 1266|      0|        }
 1267|      0|    }
 1268|       |
 1269|  8.76k|    return (int)encoded_len;
 1270|  8.76k|}
ECDSA_size:
 1302|  8.76k|{
 1303|  8.76k|    int ret;
 1304|  8.76k|    ECDSA_SIG sig;
 1305|  8.76k|    const EC_GROUP *group;
 1306|  8.76k|    const BIGNUM *bn;
 1307|       |
 1308|  8.76k|    if (ec == NULL)
  ------------------
  |  Branch (1308:9): [True: 0, False: 8.76k]
  ------------------
 1309|      0|        return 0;
 1310|  8.76k|    group = EC_KEY_get0_group(ec);
 1311|  8.76k|    if (group == NULL)
  ------------------
  |  Branch (1311:9): [True: 0, False: 8.76k]
  ------------------
 1312|      0|        return 0;
 1313|       |
 1314|  8.76k|    bn = EC_GROUP_get0_order(group);
 1315|  8.76k|    if (bn == NULL)
  ------------------
  |  Branch (1315:9): [True: 0, False: 8.76k]
  ------------------
 1316|      0|        return 0;
 1317|       |
 1318|  8.76k|    sig.r = sig.s = (BIGNUM *)bn;
 1319|  8.76k|    ret = i2d_ECDSA_SIG(&sig, NULL);
 1320|       |
 1321|  8.76k|    if (ret < 0)
  ------------------
  |  Branch (1321:9): [True: 0, False: 8.76k]
  ------------------
 1322|      0|        ret = 0;
 1323|  8.76k|    return ret;
 1324|  8.76k|}

ossl_ec_check_group_type_id2name:
   76|  8.76k|{
   77|  8.76k|    size_t i, sz;
   78|       |
   79|  8.76k|    for (i = 0, sz = OSSL_NELEM(check_group_type_nameid_map); i < sz; i++) {
  ------------------
  |  |   14|  8.76k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (79:63): [True: 8.76k, False: 0]
  ------------------
   80|  8.76k|        if (id == (int)check_group_type_nameid_map[i].id)
  ------------------
  |  Branch (80:13): [True: 8.76k, False: 0]
  ------------------
   81|  8.76k|            return check_group_type_nameid_map[i].ptr;
   82|  8.76k|    }
   83|      0|    return NULL;
   84|  8.76k|}
ossl_ec_pt_format_id2name:
  147|  17.5k|{
  148|  17.5k|    size_t i, sz;
  149|       |
  150|  17.5k|    for (i = 0, sz = OSSL_NELEM(format_nameid_map); i < sz; i++) {
  ------------------
  |  |   14|  17.5k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (150:53): [True: 17.5k, False: 0]
  ------------------
  151|  17.5k|        if (id == (int)format_nameid_map[i].id)
  ------------------
  |  Branch (151:13): [True: 17.5k, False: 0]
  ------------------
  152|  17.5k|            return format_nameid_map[i].ptr;
  153|  17.5k|    }
  154|      0|    return NULL;
  155|  17.5k|}
ossl_ec_group_todata:
  292|  8.76k|{
  293|  8.76k|    int ret = 0, curve_nid, encoding_flag;
  294|  8.76k|    const char *encoding_name, *pt_form_name;
  295|  8.76k|    point_conversion_form_t genform;
  296|       |
  297|  8.76k|    if (group == NULL) {
  ------------------
  |  Branch (297:9): [True: 0, False: 8.76k]
  ------------------
  298|      0|        ERR_raise(ERR_LIB_EC, EC_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  299|      0|        return 0;
  300|      0|    }
  301|       |
  302|  8.76k|    genform = EC_GROUP_get_point_conversion_form(group);
  303|  8.76k|    pt_form_name = ossl_ec_pt_format_id2name(genform);
  304|  8.76k|    if (pt_form_name == NULL
  ------------------
  |  Branch (304:9): [True: 0, False: 8.76k]
  ------------------
  305|  8.76k|        || !ossl_param_build_set_utf8_string(
  ------------------
  |  Branch (305:12): [True: 0, False: 8.76k]
  ------------------
  306|  8.76k|            tmpl, params,
  307|  8.76k|            OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT, pt_form_name)) {
  ------------------
  |  |  394|  8.76k|# define OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT "point-format"
  ------------------
  308|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_FORM);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  309|      0|        return 0;
  310|      0|    }
  311|  8.76k|    encoding_flag = EC_GROUP_get_asn1_flag(group) & OPENSSL_EC_NAMED_CURVE;
  ------------------
  |  |   31|  8.76k|#define OPENSSL_EC_NAMED_CURVE 0x001
  ------------------
  312|  8.76k|    encoding_name = ec_param_encoding_id2name(encoding_flag);
  313|  8.76k|    if (encoding_name == NULL
  ------------------
  |  Branch (313:9): [True: 0, False: 8.76k]
  ------------------
  314|  8.76k|        || !ossl_param_build_set_utf8_string(tmpl, params,
  ------------------
  |  Branch (314:12): [True: 0, False: 8.76k]
  ------------------
  315|  8.76k|            OSSL_PKEY_PARAM_EC_ENCODING,
  ------------------
  |  |  387|  8.76k|# define OSSL_PKEY_PARAM_EC_ENCODING "encoding"
  ------------------
  316|  8.76k|            encoding_name)) {
  317|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  318|      0|        return 0;
  319|      0|    }
  320|       |
  321|  8.76k|    if (!ossl_param_build_set_int(tmpl, params,
  ------------------
  |  Branch (321:9): [True: 0, False: 8.76k]
  ------------------
  322|  8.76k|            OSSL_PKEY_PARAM_EC_DECODED_FROM_EXPLICIT_PARAMS,
  ------------------
  |  |  386|  8.76k|# define OSSL_PKEY_PARAM_EC_DECODED_FROM_EXPLICIT_PARAMS "decoded-from-explicit"
  ------------------
  323|  8.76k|            group->decoded_from_explicit_params))
  324|      0|        return 0;
  325|       |
  326|  8.76k|    curve_nid = EC_GROUP_get_curve_name(group);
  327|       |
  328|       |    /*
  329|       |     * Get the explicit parameters in these two cases:
  330|       |     * - We do not have a template, i.e. specific parameters are requested
  331|       |     * - The curve is not a named curve
  332|       |     */
  333|  8.76k|    if (tmpl == NULL || curve_nid == NID_undef)
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (333:9): [True: 8.76k, False: 0]
  |  Branch (333:25): [True: 0, False: 0]
  ------------------
  334|  8.76k|        if (!ec_group_explicit_todata(group, tmpl, params, bnctx, genbuf))
  ------------------
  |  Branch (334:13): [True: 0, False: 8.76k]
  ------------------
  335|      0|            goto err;
  336|       |
  337|  8.76k|    if (curve_nid != NID_undef) {
  ------------------
  |  |   18|  8.76k|#define NID_undef                       0
  ------------------
  |  Branch (337:9): [True: 8.76k, False: 0]
  ------------------
  338|       |        /* Named curve */
  339|  8.76k|        const char *curve_name = OSSL_EC_curve_nid2name(curve_nid);
  340|       |
  341|  8.76k|        if (curve_name == NULL
  ------------------
  |  Branch (341:13): [True: 0, False: 8.76k]
  ------------------
  342|  8.76k|            || !ossl_param_build_set_utf8_string(tmpl, params,
  ------------------
  |  Branch (342:16): [True: 0, False: 8.76k]
  ------------------
  343|  8.76k|                OSSL_PKEY_PARAM_GROUP_NAME,
  ------------------
  |  |  420|  8.76k|# define OSSL_PKEY_PARAM_GROUP_NAME "group"
  ------------------
  344|  8.76k|                curve_name)) {
  345|      0|            ERR_raise(ERR_LIB_EC, EC_R_INVALID_CURVE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  346|      0|            goto err;
  347|      0|        }
  348|  8.76k|    }
  349|  8.76k|    ret = 1;
  350|  8.76k|err:
  351|  8.76k|    return ret;
  352|  8.76k|}
ossl_ec_key_is_foreign:
  586|  8.76k|{
  587|  8.76k|#ifndef FIPS_MODULE
  588|  8.76k|    if (ec->engine != NULL || EC_KEY_get_method(ec) != EC_KEY_OpenSSL())
  ------------------
  |  Branch (588:9): [True: 0, False: 8.76k]
  |  Branch (588:31): [True: 0, False: 8.76k]
  ------------------
  589|      0|        return 1;
  590|  8.76k|#endif
  591|  8.76k|    return 0;
  592|  8.76k|}
ossl_x509_algor_is_sm2:
  731|  8.76k|{
  732|  8.76k|    int ptype = 0;
  733|  8.76k|    const void *pval = NULL;
  734|       |
  735|  8.76k|    X509_ALGOR_get0(NULL, &ptype, &pval, palg);
  736|       |
  737|  8.76k|    if (ptype == V_ASN1_OBJECT)
  ------------------
  |  |   70|  8.76k|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (737:9): [True: 8.76k, False: 0]
  ------------------
  738|  8.76k|        return OBJ_obj2nid((ASN1_OBJECT *)pval) == NID_sm2;
  ------------------
  |  | 1255|  8.76k|#define NID_sm2         1172
  ------------------
  739|       |
  740|      0|    if (ptype == V_ASN1_SEQUENCE) {
  ------------------
  |  |   76|      0|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (740:9): [True: 0, False: 0]
  ------------------
  741|      0|        const ASN1_STRING *str = pval;
  742|      0|        const unsigned char *der = str->data;
  743|      0|        int derlen = str->length;
  744|      0|        EC_GROUP *group;
  745|      0|        int ret;
  746|       |
  747|      0|        if ((group = d2i_ECPKParameters(NULL, &der, derlen)) == NULL)
  ------------------
  |  Branch (747:13): [True: 0, False: 0]
  ------------------
  748|      0|            ret = 0;
  749|      0|        else
  750|      0|            ret = (EC_GROUP_get_curve_name(group) == NID_sm2);
  ------------------
  |  | 1255|      0|#define NID_sm2         1172
  ------------------
  751|       |
  752|      0|        EC_GROUP_free(group);
  753|      0|        return ret;
  754|      0|    }
  755|       |
  756|      0|    return 0;
  757|      0|}
ossl_ec_key_param_from_x509_algor:
  761|  8.76k|{
  762|  8.76k|    int ptype = 0;
  763|  8.76k|    const void *pval = NULL;
  764|  8.76k|    EC_KEY *eckey = NULL;
  765|  8.76k|    EC_GROUP *group = NULL;
  766|       |
  767|  8.76k|    X509_ALGOR_get0(NULL, &ptype, &pval, palg);
  768|  8.76k|    if ((eckey = EC_KEY_new_ex(libctx, propq)) == NULL) {
  ------------------
  |  Branch (768:9): [True: 0, False: 8.76k]
  ------------------
  769|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  770|      0|        goto ecerr;
  771|      0|    }
  772|       |
  773|  8.76k|    if (ptype == V_ASN1_SEQUENCE) {
  ------------------
  |  |   76|  8.76k|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (773:9): [True: 0, False: 8.76k]
  ------------------
  774|      0|        const ASN1_STRING *pstr = pval;
  775|      0|        const unsigned char *pm = pstr->data;
  776|      0|        int pmlen = pstr->length;
  777|       |
  778|      0|        if (d2i_ECParameters(&eckey, &pm, pmlen) == NULL) {
  ------------------
  |  Branch (778:13): [True: 0, False: 0]
  ------------------
  779|      0|            ERR_raise(ERR_LIB_EC, EC_R_DECODE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  780|      0|            goto ecerr;
  781|      0|        }
  782|  8.76k|    } else if (ptype == V_ASN1_OBJECT) {
  ------------------
  |  |   70|  8.76k|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (782:16): [True: 8.76k, False: 0]
  ------------------
  783|  8.76k|        const ASN1_OBJECT *poid = pval;
  784|       |
  785|       |        /*
  786|       |         * type == V_ASN1_OBJECT => the parameters are given by an asn1 OID
  787|       |         */
  788|       |
  789|  8.76k|        group = EC_GROUP_new_by_curve_name_ex(libctx, propq, OBJ_obj2nid(poid));
  790|  8.76k|        if (group == NULL)
  ------------------
  |  Branch (790:13): [True: 0, False: 8.76k]
  ------------------
  791|      0|            goto ecerr;
  792|  8.76k|        EC_GROUP_set_asn1_flag(group, OPENSSL_EC_NAMED_CURVE);
  ------------------
  |  |   31|  8.76k|#define OPENSSL_EC_NAMED_CURVE 0x001
  ------------------
  793|  8.76k|        if (EC_KEY_set_group(eckey, group) == 0)
  ------------------
  |  Branch (793:13): [True: 0, False: 8.76k]
  ------------------
  794|      0|            goto ecerr;
  795|  8.76k|        EC_GROUP_free(group);
  796|  8.76k|    } else {
  797|      0|        ERR_raise(ERR_LIB_EC, EC_R_DECODE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  798|      0|        goto ecerr;
  799|      0|    }
  800|       |
  801|  8.76k|    return eckey;
  802|       |
  803|      0|ecerr:
  804|      0|    EC_KEY_free(eckey);
  805|      0|    EC_GROUP_free(group);
  806|       |    return NULL;
  807|  8.76k|}
ec_backend.c:ec_param_encoding_id2name:
   65|  8.76k|{
   66|  8.76k|    size_t i, sz;
   67|       |
   68|  17.5k|    for (i = 0, sz = OSSL_NELEM(encoding_nameid_map); i < sz; i++) {
  ------------------
  |  |   14|  8.76k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (68:55): [True: 17.5k, False: 0]
  ------------------
   69|  17.5k|        if (id == (int)encoding_nameid_map[i].id)
  ------------------
  |  Branch (69:13): [True: 8.76k, False: 8.76k]
  ------------------
   70|  8.76k|            return encoding_nameid_map[i].ptr;
   71|  17.5k|    }
   72|      0|    return NULL;
   73|  8.76k|}
ec_backend.c:ec_group_explicit_todata:
  160|  8.76k|{
  161|  8.76k|    int ret = 0, fid;
  162|  8.76k|    const char *field_type;
  163|  8.76k|    const OSSL_PARAM *param = NULL;
  164|  8.76k|    const OSSL_PARAM *param_p = NULL;
  165|  8.76k|    const OSSL_PARAM *param_a = NULL;
  166|  8.76k|    const OSSL_PARAM *param_b = NULL;
  167|       |
  168|  8.76k|    fid = EC_GROUP_get_field_type(group);
  169|       |
  170|  8.76k|    if (fid == NID_X9_62_prime_field) {
  ------------------
  |  |  152|  8.76k|#define NID_X9_62_prime_field           406
  ------------------
  |  Branch (170:9): [True: 8.76k, False: 0]
  ------------------
  171|  8.76k|        field_type = SN_X9_62_prime_field;
  ------------------
  |  |  151|  8.76k|#define SN_X9_62_prime_field            "prime-field"
  ------------------
  172|  8.76k|    } else if (fid == NID_X9_62_characteristic_two_field) {
  ------------------
  |  |  156|      0|#define NID_X9_62_characteristic_two_field              407
  ------------------
  |  Branch (172:16): [True: 0, False: 0]
  ------------------
  173|       |#ifdef OPENSSL_NO_EC2M
  174|       |        ERR_raise(ERR_LIB_EC, EC_R_GF2M_NOT_SUPPORTED);
  175|       |        goto err;
  176|       |#else
  177|      0|        field_type = SN_X9_62_characteristic_two_field;
  ------------------
  |  |  155|      0|#define SN_X9_62_characteristic_two_field               "characteristic-two-field"
  ------------------
  178|      0|#endif
  179|      0|    } else {
  180|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_FIELD);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  181|      0|        return 0;
  182|      0|    }
  183|       |
  184|  8.76k|    param_p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_EC_P);
  ------------------
  |  |  393|  8.76k|# define OSSL_PKEY_PARAM_EC_P "p"
  ------------------
  185|  8.76k|    param_a = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_EC_A);
  ------------------
  |  |  377|  8.76k|# define OSSL_PKEY_PARAM_EC_A "a"
  ------------------
  186|  8.76k|    param_b = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_EC_B);
  ------------------
  |  |  378|  8.76k|# define OSSL_PKEY_PARAM_EC_B "b"
  ------------------
  187|  8.76k|    if (tmpl != NULL || param_p != NULL || param_a != NULL || param_b != NULL) {
  ------------------
  |  Branch (187:9): [True: 0, False: 8.76k]
  |  Branch (187:25): [True: 0, False: 8.76k]
  |  Branch (187:44): [True: 0, False: 8.76k]
  |  Branch (187:63): [True: 0, False: 8.76k]
  ------------------
  188|      0|        BIGNUM *p = BN_CTX_get(bnctx);
  189|      0|        BIGNUM *a = BN_CTX_get(bnctx);
  190|      0|        BIGNUM *b = BN_CTX_get(bnctx);
  191|       |
  192|      0|        if (b == NULL) {
  ------------------
  |  Branch (192:13): [True: 0, False: 0]
  ------------------
  193|      0|            ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  194|      0|            goto err;
  195|      0|        }
  196|       |
  197|      0|        if (!EC_GROUP_get_curve(group, p, a, b, bnctx)) {
  ------------------
  |  Branch (197:13): [True: 0, False: 0]
  ------------------
  198|      0|            ERR_raise(ERR_LIB_EC, EC_R_INVALID_CURVE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  199|      0|            goto err;
  200|      0|        }
  201|      0|        if (!ossl_param_build_set_bn(tmpl, params, OSSL_PKEY_PARAM_EC_P, p)
  ------------------
  |  |  393|      0|# define OSSL_PKEY_PARAM_EC_P "p"
  ------------------
  |  Branch (201:13): [True: 0, False: 0]
  ------------------
  202|      0|            || !ossl_param_build_set_bn(tmpl, params, OSSL_PKEY_PARAM_EC_A, a)
  ------------------
  |  |  377|      0|# define OSSL_PKEY_PARAM_EC_A "a"
  ------------------
  |  Branch (202:16): [True: 0, False: 0]
  ------------------
  203|      0|            || !ossl_param_build_set_bn(tmpl, params, OSSL_PKEY_PARAM_EC_B, b)) {
  ------------------
  |  |  378|      0|# define OSSL_PKEY_PARAM_EC_B "b"
  ------------------
  |  Branch (203:16): [True: 0, False: 0]
  ------------------
  204|      0|            ERR_raise(ERR_LIB_EC, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  205|      0|            goto err;
  206|      0|        }
  207|      0|    }
  208|       |
  209|  8.76k|    param = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_EC_ORDER);
  ------------------
  |  |  392|  8.76k|# define OSSL_PKEY_PARAM_EC_ORDER "order"
  ------------------
  210|  8.76k|    if (tmpl != NULL || param != NULL) {
  ------------------
  |  Branch (210:9): [True: 0, False: 8.76k]
  |  Branch (210:25): [True: 0, False: 8.76k]
  ------------------
  211|      0|        const BIGNUM *order = EC_GROUP_get0_order(group);
  212|       |
  213|      0|        if (order == NULL) {
  ------------------
  |  Branch (213:13): [True: 0, False: 0]
  ------------------
  214|      0|            ERR_raise(ERR_LIB_EC, EC_R_INVALID_GROUP_ORDER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  215|      0|            goto err;
  216|      0|        }
  217|      0|        if (!ossl_param_build_set_bn(tmpl, params, OSSL_PKEY_PARAM_EC_ORDER,
  ------------------
  |  |  392|      0|# define OSSL_PKEY_PARAM_EC_ORDER "order"
  ------------------
  |  Branch (217:13): [True: 0, False: 0]
  ------------------
  218|      0|                order)) {
  219|      0|            ERR_raise(ERR_LIB_EC, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  220|      0|            goto err;
  221|      0|        }
  222|      0|    }
  223|       |
  224|  8.76k|    param = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_EC_FIELD_TYPE);
  ------------------
  |  |  388|  8.76k|# define OSSL_PKEY_PARAM_EC_FIELD_TYPE "field-type"
  ------------------
  225|  8.76k|    if (tmpl != NULL || param != NULL) {
  ------------------
  |  Branch (225:9): [True: 0, False: 8.76k]
  |  Branch (225:25): [True: 0, False: 8.76k]
  ------------------
  226|      0|        if (!ossl_param_build_set_utf8_string(tmpl, params,
  ------------------
  |  Branch (226:13): [True: 0, False: 0]
  ------------------
  227|      0|                OSSL_PKEY_PARAM_EC_FIELD_TYPE,
  ------------------
  |  |  388|      0|# define OSSL_PKEY_PARAM_EC_FIELD_TYPE "field-type"
  ------------------
  228|      0|                field_type)) {
  229|      0|            ERR_raise(ERR_LIB_EC, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  230|      0|            goto err;
  231|      0|        }
  232|      0|    }
  233|       |
  234|  8.76k|    param = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_EC_GENERATOR);
  ------------------
  |  |  389|  8.76k|# define OSSL_PKEY_PARAM_EC_GENERATOR "generator"
  ------------------
  235|  8.76k|    if (tmpl != NULL || param != NULL) {
  ------------------
  |  Branch (235:9): [True: 0, False: 8.76k]
  |  Branch (235:25): [True: 0, False: 8.76k]
  ------------------
  236|      0|        size_t genbuf_len;
  237|      0|        const EC_POINT *genpt = EC_GROUP_get0_generator(group);
  238|      0|        point_conversion_form_t genform = EC_GROUP_get_point_conversion_form(group);
  239|       |
  240|      0|        if (genpt == NULL) {
  ------------------
  |  Branch (240:13): [True: 0, False: 0]
  ------------------
  241|      0|            ERR_raise(ERR_LIB_EC, EC_R_INVALID_GENERATOR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  242|      0|            goto err;
  243|      0|        }
  244|      0|        genbuf_len = EC_POINT_point2buf(group, genpt, genform, genbuf, bnctx);
  245|      0|        if (genbuf_len == 0) {
  ------------------
  |  Branch (245:13): [True: 0, False: 0]
  ------------------
  246|      0|            ERR_raise(ERR_LIB_EC, EC_R_INVALID_GENERATOR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  247|      0|            goto err;
  248|      0|        }
  249|      0|        if (!ossl_param_build_set_octet_string(tmpl, params,
  ------------------
  |  Branch (249:13): [True: 0, False: 0]
  ------------------
  250|      0|                OSSL_PKEY_PARAM_EC_GENERATOR,
  ------------------
  |  |  389|      0|# define OSSL_PKEY_PARAM_EC_GENERATOR "generator"
  ------------------
  251|      0|                *genbuf, genbuf_len)) {
  252|      0|            ERR_raise(ERR_LIB_EC, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  253|      0|            goto err;
  254|      0|        }
  255|      0|    }
  256|       |
  257|  8.76k|    param = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_EC_COFACTOR);
  ------------------
  |  |  385|  8.76k|# define OSSL_PKEY_PARAM_EC_COFACTOR "cofactor"
  ------------------
  258|  8.76k|    if (tmpl != NULL || param != NULL) {
  ------------------
  |  Branch (258:9): [True: 0, False: 8.76k]
  |  Branch (258:25): [True: 0, False: 8.76k]
  ------------------
  259|      0|        const BIGNUM *cofactor = EC_GROUP_get0_cofactor(group);
  260|       |
  261|      0|        if (cofactor != NULL
  ------------------
  |  Branch (261:13): [True: 0, False: 0]
  ------------------
  262|      0|            && !ossl_param_build_set_bn(tmpl, params,
  ------------------
  |  Branch (262:16): [True: 0, False: 0]
  ------------------
  263|      0|                OSSL_PKEY_PARAM_EC_COFACTOR, cofactor)) {
  ------------------
  |  |  385|      0|# define OSSL_PKEY_PARAM_EC_COFACTOR "cofactor"
  ------------------
  264|      0|            ERR_raise(ERR_LIB_EC, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  265|      0|            goto err;
  266|      0|        }
  267|      0|    }
  268|       |
  269|  8.76k|    param = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_EC_SEED);
  ------------------
  |  |  397|  8.76k|# define OSSL_PKEY_PARAM_EC_SEED "seed"
  ------------------
  270|  8.76k|    if (tmpl != NULL || param != NULL) {
  ------------------
  |  Branch (270:9): [True: 0, False: 8.76k]
  |  Branch (270:25): [True: 0, False: 8.76k]
  ------------------
  271|      0|        unsigned char *seed = EC_GROUP_get0_seed(group);
  272|      0|        size_t seed_len = EC_GROUP_get_seed_len(group);
  273|       |
  274|      0|        if (seed != NULL
  ------------------
  |  Branch (274:13): [True: 0, False: 0]
  ------------------
  275|      0|            && seed_len > 0
  ------------------
  |  Branch (275:16): [True: 0, False: 0]
  ------------------
  276|      0|            && !ossl_param_build_set_octet_string(tmpl, params,
  ------------------
  |  Branch (276:16): [True: 0, False: 0]
  ------------------
  277|      0|                OSSL_PKEY_PARAM_EC_SEED,
  ------------------
  |  |  397|      0|# define OSSL_PKEY_PARAM_EC_SEED "seed"
  ------------------
  278|      0|                seed, seed_len)) {
  279|      0|            ERR_raise(ERR_LIB_EC, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  280|      0|            goto err;
  281|      0|        }
  282|      0|    }
  283|  8.76k|    ret = 1;
  284|  8.76k|err:
  285|  8.76k|    return ret;
  286|  8.76k|}

EC_GROUP_new_by_curve_name_ex:
 3190|  8.76k|{
 3191|  8.76k|    EC_GROUP *ret = NULL;
 3192|  8.76k|    const ec_list_element *curve;
 3193|       |
 3194|  8.76k|    if ((curve = ec_curve_nid2curve(nid)) == NULL
  ------------------
  |  Branch (3194:9): [True: 0, False: 8.76k]
  ------------------
 3195|  8.76k|        || (ret = ec_group_new_from_data(libctx, propq, *curve)) == NULL) {
  ------------------
  |  Branch (3195:12): [True: 0, False: 8.76k]
  ------------------
 3196|      0|#ifndef FIPS_MODULE
 3197|      0|        ERR_raise_data(ERR_LIB_EC, EC_R_UNKNOWN_GROUP,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EC, EC_R_UNKNOWN_GROUP,
  ------------------
  |  |   88|      0|#define ERR_LIB_EC 16
  ------------------
                      ERR_raise_data(ERR_LIB_EC, EC_R_UNKNOWN_GROUP,
  ------------------
  |  |   95|      0|#define EC_R_UNKNOWN_GROUP 129
  ------------------
 3198|      0|            "name=%s", OBJ_nid2sn(nid));
 3199|       |#else
 3200|       |        ERR_raise(ERR_LIB_EC, EC_R_UNKNOWN_GROUP);
 3201|       |#endif
 3202|      0|        return NULL;
 3203|      0|    }
 3204|       |
 3205|  8.76k|    return ret;
 3206|  8.76k|}
ec_curve.c:ec_curve_nid2curve:
 3013|  8.76k|{
 3014|  8.76k|    size_t i;
 3015|       |
 3016|  8.76k|    if (nid <= 0)
  ------------------
  |  Branch (3016:9): [True: 0, False: 8.76k]
  ------------------
 3017|      0|        return NULL;
 3018|       |
 3019|   112k|    for (i = 0; i < curve_list_length; i++) {
  ------------------
  |  | 3010|   112k|#define curve_list_length OSSL_NELEM(curve_list)
  |  |  ------------------
  |  |  |  |   14|   112k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
  |  Branch (3019:17): [True: 112k, False: 0]
  ------------------
 3020|   112k|        if (curve_list[i].nid == nid)
  ------------------
  |  Branch (3020:13): [True: 8.76k, False: 103k]
  ------------------
 3021|  8.76k|            return &curve_list[i];
 3022|   112k|    }
 3023|      0|    return NULL;
 3024|  8.76k|}
ec_curve.c:ec_group_new_from_data:
 3029|  8.76k|{
 3030|  8.76k|    EC_GROUP *group = NULL;
 3031|  8.76k|    EC_POINT *P = NULL;
 3032|  8.76k|    BN_CTX *ctx = NULL;
 3033|  8.76k|    BIGNUM *p = NULL, *a = NULL, *b = NULL, *x = NULL, *y = NULL, *order = NULL;
 3034|  8.76k|    int ok = 0;
 3035|  8.76k|    int seed_len, param_len;
 3036|  8.76k|    const EC_METHOD *meth;
 3037|  8.76k|    const EC_CURVE_DATA *data;
 3038|  8.76k|    const unsigned char *params;
 3039|       |
 3040|       |    /* If no curve data curve method must handle everything */
 3041|  8.76k|    if (curve.data == NULL)
  ------------------
  |  Branch (3041:9): [True: 0, False: 8.76k]
  ------------------
 3042|      0|        return ossl_ec_group_new_ex(libctx, propq,
 3043|      0|            curve.meth != NULL ? curve.meth() : NULL);
  ------------------
  |  Branch (3043:13): [True: 0, False: 0]
  ------------------
 3044|       |
 3045|  8.76k|    if ((ctx = BN_CTX_new_ex(libctx)) == NULL) {
  ------------------
  |  Branch (3045:9): [True: 0, False: 8.76k]
  ------------------
 3046|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3047|      0|        goto err;
 3048|      0|    }
 3049|       |
 3050|  8.76k|    data = curve.data;
 3051|  8.76k|    seed_len = data->seed_len;
 3052|  8.76k|    param_len = data->param_len;
 3053|  8.76k|    params = (const unsigned char *)(data + 1); /* skip header */
 3054|       |
 3055|  8.76k|    if (curve.meth != NULL) {
  ------------------
  |  Branch (3055:9): [True: 8.76k, False: 0]
  ------------------
 3056|  8.76k|        meth = curve.meth();
 3057|  8.76k|        if ((group = ossl_ec_group_new_ex(libctx, propq, meth)) == NULL) {
  ------------------
  |  Branch (3057:13): [True: 0, False: 8.76k]
  ------------------
 3058|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3059|      0|            goto err;
 3060|      0|        }
 3061|  8.76k|        if (group->meth->group_full_init != NULL) {
  ------------------
  |  Branch (3061:13): [True: 876, False: 7.88k]
  ------------------
 3062|    876|            if (!group->meth->group_full_init(group, params)) {
  ------------------
  |  Branch (3062:17): [True: 0, False: 876]
  ------------------
 3063|      0|                ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3064|      0|                goto err;
 3065|      0|            }
 3066|    876|            EC_GROUP_set_curve_name(group, curve.nid);
 3067|    876|            BN_CTX_free(ctx);
 3068|    876|            return group;
 3069|    876|        }
 3070|  8.76k|    }
 3071|       |
 3072|  7.88k|    params += seed_len; /* skip seed */
 3073|       |
 3074|  7.88k|    if ((p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (3074:9): [True: 0, False: 7.88k]
  ------------------
 3075|  7.88k|        || (a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (3075:12): [True: 0, False: 7.88k]
  ------------------
 3076|  7.88k|        || (b = BN_bin2bn(params + 2 * param_len, param_len, NULL)) == NULL) {
  ------------------
  |  Branch (3076:12): [True: 0, False: 7.88k]
  ------------------
 3077|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3078|      0|        goto err;
 3079|      0|    }
 3080|       |
 3081|  7.88k|    if (group != NULL) {
  ------------------
  |  Branch (3081:9): [True: 7.88k, False: 0]
  ------------------
 3082|  7.88k|        if (group->meth->group_set_curve(group, p, a, b, ctx) == 0) {
  ------------------
  |  Branch (3082:13): [True: 0, False: 7.88k]
  ------------------
 3083|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3084|      0|            goto err;
 3085|      0|        }
 3086|  7.88k|    } else if (data->field_type == NID_X9_62_prime_field) {
  ------------------
  |  |  152|      0|#define NID_X9_62_prime_field           406
  ------------------
  |  Branch (3086:16): [True: 0, False: 0]
  ------------------
 3087|      0|        if ((group = EC_GROUP_new_curve_GFp(p, a, b, ctx)) == NULL) {
  ------------------
  |  Branch (3087:13): [True: 0, False: 0]
  ------------------
 3088|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3089|      0|            goto err;
 3090|      0|        }
 3091|      0|    }
 3092|      0|#ifndef OPENSSL_NO_EC2M
 3093|      0|    else { /* field_type ==
 3094|       |            * NID_X9_62_characteristic_two_field */
 3095|       |
 3096|      0|        if ((group = EC_GROUP_new_curve_GF2m(p, a, b, ctx)) == NULL) {
  ------------------
  |  Branch (3096:13): [True: 0, False: 0]
  ------------------
 3097|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3098|      0|            goto err;
 3099|      0|        }
 3100|      0|    }
 3101|  7.88k|#endif
 3102|       |
 3103|  7.88k|    EC_GROUP_set_curve_name(group, curve.nid);
 3104|       |
 3105|  7.88k|    if ((P = EC_POINT_new(group)) == NULL) {
  ------------------
  |  Branch (3105:9): [True: 0, False: 7.88k]
  ------------------
 3106|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3107|      0|        goto err;
 3108|      0|    }
 3109|       |
 3110|  7.88k|    if ((x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (3110:9): [True: 0, False: 7.88k]
  ------------------
 3111|  7.88k|        || (y = BN_bin2bn(params + 4 * param_len, param_len, NULL)) == NULL) {
  ------------------
  |  Branch (3111:12): [True: 0, False: 7.88k]
  ------------------
 3112|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3113|      0|        goto err;
 3114|      0|    }
 3115|  7.88k|    if (!EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) {
  ------------------
  |  Branch (3115:9): [True: 0, False: 7.88k]
  ------------------
 3116|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3117|      0|        goto err;
 3118|      0|    }
 3119|  7.88k|    if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (3119:9): [True: 0, False: 7.88k]
  ------------------
 3120|  7.88k|        || !BN_set_word(x, (BN_ULONG)data->cofactor)) {
  ------------------
  |  Branch (3120:12): [True: 0, False: 7.88k]
  ------------------
 3121|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3122|      0|        goto err;
 3123|      0|    }
 3124|  7.88k|    if (!EC_GROUP_set_generator(group, P, order, x)) {
  ------------------
  |  Branch (3124:9): [True: 0, False: 7.88k]
  ------------------
 3125|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3126|      0|        goto err;
 3127|      0|    }
 3128|  7.88k|    if (seed_len) {
  ------------------
  |  Branch (3128:9): [True: 7.88k, False: 0]
  ------------------
 3129|  7.88k|        if (!EC_GROUP_set_seed(group, params - seed_len, seed_len)) {
  ------------------
  |  Branch (3129:13): [True: 0, False: 7.88k]
  ------------------
 3130|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3131|      0|            goto err;
 3132|      0|        }
 3133|  7.88k|    }
 3134|       |
 3135|  7.88k|#ifndef FIPS_MODULE
 3136|  7.88k|    if (EC_GROUP_get_asn1_flag(group) == OPENSSL_EC_NAMED_CURVE) {
  ------------------
  |  |   31|  7.88k|#define OPENSSL_EC_NAMED_CURVE 0x001
  ------------------
  |  Branch (3136:9): [True: 7.88k, False: 0]
  ------------------
 3137|       |        /*
 3138|       |         * Some curves don't have an associated OID: for those we should not
 3139|       |         * default to `OPENSSL_EC_NAMED_CURVE` encoding of parameters and
 3140|       |         * instead set the ASN1 flag to `OPENSSL_EC_EXPLICIT_CURVE`.
 3141|       |         *
 3142|       |         * Note that `OPENSSL_EC_NAMED_CURVE` is set as the default ASN1 flag on
 3143|       |         * `EC_GROUP_new()`, when we don't have enough elements to determine if
 3144|       |         * an OID for the curve name actually exists.
 3145|       |         * We could implement this check on `EC_GROUP_set_curve_name()` but
 3146|       |         * overloading the simple setter with this lookup could have a negative
 3147|       |         * performance impact and unexpected consequences.
 3148|       |         */
 3149|  7.88k|        ASN1_OBJECT *asn1obj = OBJ_nid2obj(curve.nid);
 3150|       |
 3151|  7.88k|        if (asn1obj == NULL) {
  ------------------
  |  Branch (3151:13): [True: 0, False: 7.88k]
  ------------------
 3152|      0|            ERR_raise(ERR_LIB_EC, ERR_R_OBJ_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3153|      0|            goto err;
 3154|      0|        }
 3155|  7.88k|        if (OBJ_length(asn1obj) == 0)
  ------------------
  |  Branch (3155:13): [True: 0, False: 7.88k]
  ------------------
 3156|      0|            EC_GROUP_set_asn1_flag(group, OPENSSL_EC_EXPLICIT_CURVE);
  ------------------
  |  |   30|      0|#define OPENSSL_EC_EXPLICIT_CURVE 0x000
  ------------------
 3157|       |
 3158|  7.88k|        ASN1_OBJECT_free(asn1obj);
 3159|  7.88k|    }
 3160|       |#else
 3161|       |    /*
 3162|       |     * Inside the FIPS module we do not support explicit curves anyway
 3163|       |     * so the above check is not necessary.
 3164|       |     *
 3165|       |     * Skipping it is also necessary because `OBJ_length()` and
 3166|       |     * `ASN1_OBJECT_free()` are not available within the FIPS module
 3167|       |     * boundaries.
 3168|       |     */
 3169|       |#endif
 3170|       |
 3171|  7.88k|    ok = 1;
 3172|  7.88k|err:
 3173|  7.88k|    if (!ok) {
  ------------------
  |  Branch (3173:9): [True: 0, False: 7.88k]
  ------------------
 3174|      0|        EC_GROUP_free(group);
 3175|       |        group = NULL;
 3176|      0|    }
 3177|  7.88k|    EC_POINT_free(P);
 3178|  7.88k|    BN_CTX_free(ctx);
 3179|  7.88k|    BN_free(p);
 3180|  7.88k|    BN_free(a);
 3181|  7.88k|    BN_free(b);
 3182|  7.88k|    BN_free(order);
 3183|  7.88k|    BN_free(x);
 3184|  7.88k|    BN_free(y);
 3185|  7.88k|    return group;
 3186|  7.88k|}

ossl_err_load_EC_strings:
  127|      2|{
  128|      2|#ifndef OPENSSL_NO_ERR
  129|      2|    if (ERR_reason_error_string(EC_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (129:9): [True: 2, False: 0]
  ------------------
  130|      2|        ERR_load_strings_const(EC_str_reasons);
  131|      2|#endif
  132|      2|    return 1;
  133|      2|}

EC_KEY_new_ex:
   41|  8.76k|{
   42|       |    return ossl_ec_key_new_method_int(ctx, propq, NULL);
   43|  8.76k|}
EC_KEY_free:
   72|  26.2k|{
   73|  26.2k|    int i;
   74|       |
   75|  26.2k|    if (r == NULL)
  ------------------
  |  Branch (75:9): [True: 8.76k, False: 17.5k]
  ------------------
   76|  8.76k|        return;
   77|       |
   78|  17.5k|    CRYPTO_DOWN_REF(&r->references, &i);
   79|  17.5k|    REF_PRINT_COUNT("EC_KEY", i, r);
  ------------------
  |  |  301|  17.5k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  17.5k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|  17.5k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|  17.5k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   80|  17.5k|    if (i > 0)
  ------------------
  |  Branch (80:9): [True: 8.76k, False: 8.76k]
  ------------------
   81|  8.76k|        return;
   82|  8.76k|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|  8.76k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 8.76k]
  |  |  ------------------
  ------------------
   83|       |
   84|  8.76k|    if (r->meth != NULL && r->meth->finish != NULL)
  ------------------
  |  Branch (84:9): [True: 8.76k, False: 0]
  |  Branch (84:28): [True: 0, False: 8.76k]
  ------------------
   85|      0|        r->meth->finish(r);
   86|       |
   87|  8.76k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
   88|  8.76k|    ENGINE_finish(r->engine);
   89|  8.76k|#endif
   90|       |
   91|  8.76k|    if (r->group && r->group->meth->keyfinish)
  ------------------
  |  Branch (91:9): [True: 8.76k, False: 0]
  |  Branch (91:21): [True: 0, False: 8.76k]
  ------------------
   92|      0|        r->group->meth->keyfinish(r);
   93|       |
   94|  8.76k|#ifndef FIPS_MODULE
   95|  8.76k|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_EC_KEY, r, &r->ex_data);
  ------------------
  |  |  258|  8.76k|#define CRYPTO_EX_INDEX_EC_KEY 8
  ------------------
   96|  8.76k|#endif
   97|  8.76k|    CRYPTO_FREE_REF(&r->references);
   98|  8.76k|    EC_GROUP_free(r->group);
   99|  8.76k|    EC_POINT_free(r->pub_key);
  100|  8.76k|    BN_clear_free(r->priv_key);
  101|  8.76k|    OPENSSL_free(r->propq);
  ------------------
  |  |  131|  8.76k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  102|       |
  103|  8.76k|    OPENSSL_clear_free((void *)r, sizeof(EC_KEY));
  ------------------
  |  |  129|  8.76k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  104|  8.76k|}
EC_KEY_up_ref:
  193|  8.76k|{
  194|  8.76k|    int i;
  195|       |
  196|  8.76k|    if (CRYPTO_UP_REF(&r->references, &i) <= 0)
  ------------------
  |  Branch (196:9): [True: 0, False: 8.76k]
  ------------------
  197|      0|        return 0;
  198|       |
  199|  8.76k|    REF_PRINT_COUNT("EC_KEY", i, r);
  ------------------
  |  |  301|  8.76k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  8.76k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|  8.76k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|  8.76k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  200|  8.76k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  8.76k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 8.76k]
  |  |  ------------------
  ------------------
  201|  8.76k|    return ((i > 1) ? 1 : 0);
  ------------------
  |  Branch (201:13): [True: 8.76k, False: 0]
  ------------------
  202|  8.76k|}
ossl_ec_key_get_libctx:
  748|  17.5k|{
  749|  17.5k|    return key->libctx;
  750|  17.5k|}
ossl_ec_key_get0_propq:
  753|  8.76k|{
  754|  8.76k|    return key->propq;
  755|  8.76k|}
ossl_ec_key_set0_libctx:
  758|  8.76k|{
  759|  8.76k|    key->libctx = libctx;
  760|       |    /* Do we need to propagate this to the group? */
  761|  8.76k|}
EC_KEY_get0_group:
  764|  43.8k|{
  765|  43.8k|    return key->group;
  766|  43.8k|}
EC_KEY_set_group:
  769|  8.76k|{
  770|  8.76k|    if (key->meth->set_group != NULL && key->meth->set_group(key, group) == 0)
  ------------------
  |  Branch (770:9): [True: 0, False: 8.76k]
  |  Branch (770:41): [True: 0, False: 0]
  ------------------
  771|      0|        return 0;
  772|  8.76k|    EC_GROUP_free(key->group);
  773|  8.76k|    key->group = EC_GROUP_dup(group);
  774|  8.76k|    if (key->group != NULL && EC_GROUP_get_curve_name(key->group) == NID_sm2)
  ------------------
  |  | 1255|  8.76k|#define NID_sm2         1172
  ------------------
  |  Branch (774:9): [True: 8.76k, False: 0]
  |  Branch (774:31): [True: 0, False: 8.76k]
  ------------------
  775|      0|        EC_KEY_set_flags(key, EC_FLAG_SM2_RANGE);
  ------------------
  |  |  954|      0|#define EC_FLAG_SM2_RANGE 0x0004
  ------------------
  776|       |
  777|  8.76k|    key->dirty_cnt++;
  778|  8.76k|    return (key->group == NULL) ? 0 : 1;
  ------------------
  |  Branch (778:12): [True: 0, False: 8.76k]
  ------------------
  779|  8.76k|}
EC_KEY_get0_private_key:
  782|  8.76k|{
  783|  8.76k|    return key->priv_key;
  784|  8.76k|}
EC_KEY_get0_public_key:
  882|  8.76k|{
  883|  8.76k|    return key->pub_key;
  884|  8.76k|}
EC_KEY_get_enc_flags:
  898|  8.76k|{
  899|  8.76k|    return key->enc_flag;
  900|  8.76k|}
EC_KEY_get_conv_form:
  908|  8.76k|{
  909|  8.76k|    return key->conv_form;
  910|  8.76k|}
EC_KEY_get_flags:
  935|  35.0k|{
  936|  35.0k|    return key->flags;
  937|  35.0k|}
EC_KEY_oct2key:
  968|  8.76k|{
  969|  8.76k|    if (key == NULL || key->group == NULL)
  ------------------
  |  Branch (969:9): [True: 0, False: 8.76k]
  |  Branch (969:24): [True: 0, False: 8.76k]
  ------------------
  970|      0|        return 0;
  971|  8.76k|    if (key->pub_key == NULL)
  ------------------
  |  Branch (971:9): [True: 8.76k, False: 0]
  ------------------
  972|  8.76k|        key->pub_key = EC_POINT_new(key->group);
  973|  8.76k|    if (key->pub_key == NULL)
  ------------------
  |  Branch (973:9): [True: 0, False: 8.76k]
  ------------------
  974|      0|        return 0;
  975|  8.76k|    if (EC_POINT_oct2point(key->group, key->pub_key, buf, len, ctx) == 0)
  ------------------
  |  Branch (975:9): [True: 0, False: 8.76k]
  ------------------
  976|      0|        return 0;
  977|  8.76k|    key->dirty_cnt++;
  978|       |    /*
  979|       |     * Save the point conversion form.
  980|       |     * For non-custom curves the first octet of the buffer (excluding
  981|       |     * the last significant bit) contains the point conversion form.
  982|       |     * EC_POINT_oct2point() has already performed sanity checking of
  983|       |     * the buffer so we know it is valid.
  984|       |     */
  985|  8.76k|    if ((key->group->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0)
  ------------------
  |  |   29|  8.76k|#define EC_FLAGS_CUSTOM_CURVE 0x2
  ------------------
  |  Branch (985:9): [True: 8.76k, False: 0]
  ------------------
  986|  8.76k|        key->conv_form = (point_conversion_form_t)(buf[0] & ~0x01);
  987|  8.76k|    return 1;
  988|  8.76k|}

EC_KEY_OpenSSL:
   40|  8.76k|{
   41|  8.76k|    return &openssl_ec_key_method;
   42|  8.76k|}
EC_KEY_get_default_method:
   45|  8.76k|{
   46|  8.76k|    return default_ec_key_meth;
   47|  8.76k|}
EC_KEY_get_method:
   58|  8.76k|{
   59|  8.76k|    return key->meth;
   60|  8.76k|}
ossl_ec_key_new_method_int:
   82|  8.76k|{
   83|  8.76k|    EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  8.76k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   84|       |
   85|  8.76k|    if (ret == NULL)
  ------------------
  |  Branch (85:9): [True: 0, False: 8.76k]
  ------------------
   86|      0|        return NULL;
   87|       |
   88|  8.76k|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (88:9): [True: 0, False: 8.76k]
  ------------------
   89|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   90|      0|        return NULL;
   91|      0|    }
   92|       |
   93|  8.76k|    ret->libctx = libctx;
   94|  8.76k|    if (propq != NULL) {
  ------------------
  |  Branch (94:9): [True: 0, False: 8.76k]
  ------------------
   95|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   96|      0|        if (ret->propq == NULL)
  ------------------
  |  Branch (96:13): [True: 0, False: 0]
  ------------------
   97|      0|            goto err;
   98|      0|    }
   99|       |
  100|  8.76k|    ret->meth = EC_KEY_get_default_method();
  101|  8.76k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  102|  8.76k|    if (engine != NULL) {
  ------------------
  |  Branch (102:9): [True: 0, False: 8.76k]
  ------------------
  103|      0|        if (!ENGINE_init(engine)) {
  ------------------
  |  Branch (103:13): [True: 0, False: 0]
  ------------------
  104|      0|            ERR_raise(ERR_LIB_EC, ERR_R_ENGINE_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  105|      0|            goto err;
  106|      0|        }
  107|      0|        ret->engine = engine;
  108|      0|    } else
  109|  8.76k|        ret->engine = ENGINE_get_default_EC();
  110|  8.76k|    if (ret->engine != NULL) {
  ------------------
  |  Branch (110:9): [True: 0, False: 8.76k]
  ------------------
  111|      0|        ret->meth = ENGINE_get_EC(ret->engine);
  112|      0|        if (ret->meth == NULL) {
  ------------------
  |  Branch (112:13): [True: 0, False: 0]
  ------------------
  113|      0|            ERR_raise(ERR_LIB_EC, ERR_R_ENGINE_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  114|      0|            goto err;
  115|      0|        }
  116|      0|    }
  117|  8.76k|#endif
  118|       |
  119|  8.76k|    ret->version = 1;
  120|  8.76k|    ret->conv_form = POINT_CONVERSION_UNCOMPRESSED;
  121|       |
  122|       |/* No ex_data inside the FIPS provider */
  123|  8.76k|#ifndef FIPS_MODULE
  124|  8.76k|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_EC_KEY, ret, &ret->ex_data)) {
  ------------------
  |  |  258|  8.76k|#define CRYPTO_EX_INDEX_EC_KEY 8
  ------------------
  |  Branch (124:9): [True: 0, False: 8.76k]
  ------------------
  125|      0|        ERR_raise(ERR_LIB_EC, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  126|      0|        goto err;
  127|      0|    }
  128|  8.76k|#endif
  129|       |
  130|  8.76k|    if (ret->meth->init != NULL && ret->meth->init(ret) == 0) {
  ------------------
  |  Branch (130:9): [True: 0, False: 8.76k]
  |  Branch (130:36): [True: 0, False: 0]
  ------------------
  131|      0|        ERR_raise(ERR_LIB_EC, ERR_R_INIT_FAIL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  132|      0|        goto err;
  133|      0|    }
  134|  8.76k|    return ret;
  135|       |
  136|      0|err:
  137|      0|    EC_KEY_free(ret);
  138|       |    return NULL;
  139|  8.76k|}

ossl_ec_group_new_ex:
   32|  17.5k|{
   33|  17.5k|    EC_GROUP *ret;
   34|       |
   35|  17.5k|    if (meth == NULL) {
  ------------------
  |  Branch (35:9): [True: 0, False: 17.5k]
  ------------------
   36|      0|        ERR_raise(ERR_LIB_EC, EC_R_SLOT_FULL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   37|      0|        return NULL;
   38|      0|    }
   39|  17.5k|    if (meth->group_init == 0) {
  ------------------
  |  Branch (39:9): [True: 0, False: 17.5k]
  ------------------
   40|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   41|      0|        return NULL;
   42|      0|    }
   43|       |
   44|  17.5k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  17.5k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   45|  17.5k|    if (ret == NULL)
  ------------------
  |  Branch (45:9): [True: 0, False: 17.5k]
  ------------------
   46|      0|        return NULL;
   47|       |
   48|  17.5k|    ret->libctx = libctx;
   49|  17.5k|    if (propq != NULL) {
  ------------------
  |  Branch (49:9): [True: 0, False: 17.5k]
  ------------------
   50|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   51|      0|        if (ret->propq == NULL)
  ------------------
  |  Branch (51:13): [True: 0, False: 0]
  ------------------
   52|      0|            goto err;
   53|      0|    }
   54|  17.5k|    ret->meth = meth;
   55|  17.5k|    if ((ret->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) {
  ------------------
  |  |   29|  17.5k|#define EC_FLAGS_CUSTOM_CURVE 0x2
  ------------------
  |  Branch (55:9): [True: 17.5k, False: 0]
  ------------------
   56|  17.5k|        ret->order = BN_new();
   57|  17.5k|        if (ret->order == NULL)
  ------------------
  |  Branch (57:13): [True: 0, False: 17.5k]
  ------------------
   58|      0|            goto err;
   59|  17.5k|        ret->cofactor = BN_new();
   60|  17.5k|        if (ret->cofactor == NULL)
  ------------------
  |  Branch (60:13): [True: 0, False: 17.5k]
  ------------------
   61|      0|            goto err;
   62|  17.5k|    }
   63|  17.5k|    ret->asn1_flag = OPENSSL_EC_EXPLICIT_CURVE;
  ------------------
  |  |   30|  17.5k|#define OPENSSL_EC_EXPLICIT_CURVE 0x000
  ------------------
   64|  17.5k|    ret->asn1_form = POINT_CONVERSION_UNCOMPRESSED;
   65|  17.5k|    if (!meth->group_init(ret))
  ------------------
  |  Branch (65:9): [True: 0, False: 17.5k]
  ------------------
   66|      0|        goto err;
   67|  17.5k|    return ret;
   68|       |
   69|      0|err:
   70|      0|    BN_free(ret->order);
   71|      0|    BN_free(ret->cofactor);
   72|      0|    OPENSSL_free(ret->propq);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   73|      0|    OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   74|       |    return NULL;
   75|  17.5k|}
EC_pre_comp_free:
   87|  26.2k|{
   88|  26.2k|    switch (group->pre_comp_type) {
  ------------------
  |  Branch (88:13): [True: 26.2k, False: 0]
  ------------------
   89|  26.2k|    case PCT_none:
  ------------------
  |  Branch (89:5): [True: 26.2k, False: 0]
  ------------------
   90|  26.2k|        break;
   91|      0|    case PCT_nistz256:
  ------------------
  |  Branch (91:5): [True: 0, False: 26.2k]
  ------------------
   92|      0|#ifdef ECP_NISTZ256_ASM
   93|      0|        EC_nistz256_pre_comp_free(group->pre_comp.nistz256);
   94|      0|#endif
   95|      0|        break;
   96|      0|#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
   97|      0|    case PCT_nistp224:
  ------------------
  |  Branch (97:5): [True: 0, False: 26.2k]
  ------------------
   98|      0|        EC_nistp224_pre_comp_free(group->pre_comp.nistp224);
   99|      0|        break;
  100|      0|    case PCT_nistp256:
  ------------------
  |  Branch (100:5): [True: 0, False: 26.2k]
  ------------------
  101|      0|        EC_nistp256_pre_comp_free(group->pre_comp.nistp256);
  102|      0|        break;
  103|      0|    case PCT_nistp384:
  ------------------
  |  Branch (103:5): [True: 0, False: 26.2k]
  ------------------
  104|      0|        ossl_ec_nistp384_pre_comp_free(group->pre_comp.nistp384);
  105|      0|        break;
  106|      0|    case PCT_nistp521:
  ------------------
  |  Branch (106:5): [True: 0, False: 26.2k]
  ------------------
  107|      0|        EC_nistp521_pre_comp_free(group->pre_comp.nistp521);
  108|      0|        break;
  109|       |#else
  110|       |    case PCT_nistp224:
  111|       |    case PCT_nistp256:
  112|       |    case PCT_nistp384:
  113|       |    case PCT_nistp521:
  114|       |        break;
  115|       |#endif
  116|      0|    case PCT_ec:
  ------------------
  |  Branch (116:5): [True: 0, False: 26.2k]
  ------------------
  117|      0|        EC_ec_pre_comp_free(group->pre_comp.ec);
  118|      0|        break;
  119|  26.2k|    }
  120|  26.2k|    group->pre_comp.ec = NULL;
  121|  26.2k|}
EC_GROUP_free:
  124|  26.2k|{
  125|  26.2k|    if (!group)
  ------------------
  |  Branch (125:9): [True: 8.76k, False: 17.5k]
  ------------------
  126|  8.76k|        return;
  127|       |
  128|  17.5k|    if (group->meth->group_finish != 0)
  ------------------
  |  Branch (128:9): [True: 17.5k, False: 0]
  ------------------
  129|  17.5k|        group->meth->group_finish(group);
  130|       |
  131|  17.5k|    EC_pre_comp_free(group);
  132|  17.5k|    BN_MONT_CTX_free(group->mont_data);
  133|  17.5k|    EC_POINT_free(group->generator);
  134|  17.5k|    BN_free(group->order);
  135|  17.5k|    BN_free(group->cofactor);
  136|  17.5k|    OPENSSL_free(group->seed);
  ------------------
  |  |  131|  17.5k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  137|  17.5k|    OPENSSL_free(group->propq);
  ------------------
  |  |  131|  17.5k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  138|  17.5k|    OPENSSL_free(group);
  ------------------
  |  |  131|  17.5k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  139|  17.5k|}
EC_GROUP_copy:
  163|  8.76k|{
  164|  8.76k|    if (dest->meth->group_copy == 0) {
  ------------------
  |  Branch (164:9): [True: 0, False: 8.76k]
  ------------------
  165|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  166|      0|        return 0;
  167|      0|    }
  168|  8.76k|    if (dest->meth != src->meth) {
  ------------------
  |  Branch (168:9): [True: 0, False: 8.76k]
  ------------------
  169|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  170|      0|        return 0;
  171|      0|    }
  172|  8.76k|    if (dest == src)
  ------------------
  |  Branch (172:9): [True: 0, False: 8.76k]
  ------------------
  173|      0|        return 1;
  174|       |
  175|  8.76k|    dest->libctx = src->libctx;
  176|  8.76k|    dest->curve_name = src->curve_name;
  177|       |
  178|  8.76k|    EC_pre_comp_free(dest);
  179|       |
  180|       |    /* Copy precomputed */
  181|  8.76k|    dest->pre_comp_type = src->pre_comp_type;
  182|  8.76k|    switch (src->pre_comp_type) {
  ------------------
  |  Branch (182:13): [True: 8.76k, False: 0]
  ------------------
  183|  8.76k|    case PCT_none:
  ------------------
  |  Branch (183:5): [True: 8.76k, False: 0]
  ------------------
  184|  8.76k|        dest->pre_comp.ec = NULL;
  185|  8.76k|        break;
  186|      0|    case PCT_nistz256:
  ------------------
  |  Branch (186:5): [True: 0, False: 8.76k]
  ------------------
  187|      0|#ifdef ECP_NISTZ256_ASM
  188|      0|        dest->pre_comp.nistz256 = EC_nistz256_pre_comp_dup(src->pre_comp.nistz256);
  189|      0|#endif
  190|      0|        break;
  191|      0|#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
  192|      0|    case PCT_nistp224:
  ------------------
  |  Branch (192:5): [True: 0, False: 8.76k]
  ------------------
  193|      0|        dest->pre_comp.nistp224 = EC_nistp224_pre_comp_dup(src->pre_comp.nistp224);
  194|      0|        break;
  195|      0|    case PCT_nistp256:
  ------------------
  |  Branch (195:5): [True: 0, False: 8.76k]
  ------------------
  196|      0|        dest->pre_comp.nistp256 = EC_nistp256_pre_comp_dup(src->pre_comp.nistp256);
  197|      0|        break;
  198|      0|    case PCT_nistp384:
  ------------------
  |  Branch (198:5): [True: 0, False: 8.76k]
  ------------------
  199|      0|        dest->pre_comp.nistp384 = ossl_ec_nistp384_pre_comp_dup(src->pre_comp.nistp384);
  200|      0|        break;
  201|      0|    case PCT_nistp521:
  ------------------
  |  Branch (201:5): [True: 0, False: 8.76k]
  ------------------
  202|      0|        dest->pre_comp.nistp521 = EC_nistp521_pre_comp_dup(src->pre_comp.nistp521);
  203|      0|        break;
  204|       |#else
  205|       |    case PCT_nistp224:
  206|       |    case PCT_nistp256:
  207|       |    case PCT_nistp384:
  208|       |    case PCT_nistp521:
  209|       |        break;
  210|       |#endif
  211|      0|    case PCT_ec:
  ------------------
  |  Branch (211:5): [True: 0, False: 8.76k]
  ------------------
  212|      0|        dest->pre_comp.ec = EC_ec_pre_comp_dup(src->pre_comp.ec);
  213|      0|        break;
  214|  8.76k|    }
  215|       |
  216|  8.76k|    if (src->mont_data != NULL) {
  ------------------
  |  Branch (216:9): [True: 8.76k, False: 0]
  ------------------
  217|  8.76k|        if (dest->mont_data == NULL) {
  ------------------
  |  Branch (217:13): [True: 8.76k, False: 0]
  ------------------
  218|  8.76k|            dest->mont_data = BN_MONT_CTX_new();
  219|  8.76k|            if (dest->mont_data == NULL)
  ------------------
  |  Branch (219:17): [True: 0, False: 8.76k]
  ------------------
  220|      0|                return 0;
  221|  8.76k|        }
  222|  8.76k|        if (!BN_MONT_CTX_copy(dest->mont_data, src->mont_data))
  ------------------
  |  Branch (222:13): [True: 0, False: 8.76k]
  ------------------
  223|      0|            return 0;
  224|  8.76k|    } else {
  225|       |        /* src->generator == NULL */
  226|      0|        BN_MONT_CTX_free(dest->mont_data);
  227|      0|        dest->mont_data = NULL;
  228|      0|    }
  229|       |
  230|  8.76k|    if (src->generator != NULL) {
  ------------------
  |  Branch (230:9): [True: 8.76k, False: 0]
  ------------------
  231|  8.76k|        if (dest->generator == NULL) {
  ------------------
  |  Branch (231:13): [True: 8.76k, False: 0]
  ------------------
  232|  8.76k|            dest->generator = EC_POINT_new(dest);
  233|  8.76k|            if (dest->generator == NULL)
  ------------------
  |  Branch (233:17): [True: 0, False: 8.76k]
  ------------------
  234|      0|                return 0;
  235|  8.76k|        }
  236|  8.76k|        if (!EC_POINT_copy(dest->generator, src->generator))
  ------------------
  |  Branch (236:13): [True: 0, False: 8.76k]
  ------------------
  237|      0|            return 0;
  238|  8.76k|    } else {
  239|       |        /* src->generator == NULL */
  240|      0|        EC_POINT_clear_free(dest->generator);
  241|      0|        dest->generator = NULL;
  242|      0|    }
  243|       |
  244|  8.76k|    if ((src->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) {
  ------------------
  |  |   29|  8.76k|#define EC_FLAGS_CUSTOM_CURVE 0x2
  ------------------
  |  Branch (244:9): [True: 8.76k, False: 0]
  ------------------
  245|  8.76k|        if (!BN_copy(dest->order, src->order))
  ------------------
  |  Branch (245:13): [True: 0, False: 8.76k]
  ------------------
  246|      0|            return 0;
  247|  8.76k|        if (!BN_copy(dest->cofactor, src->cofactor))
  ------------------
  |  Branch (247:13): [True: 0, False: 8.76k]
  ------------------
  248|      0|            return 0;
  249|  8.76k|    }
  250|       |
  251|  8.76k|    dest->asn1_flag = src->asn1_flag;
  252|  8.76k|    dest->asn1_form = src->asn1_form;
  253|  8.76k|    dest->decoded_from_explicit_params = src->decoded_from_explicit_params;
  254|       |
  255|  8.76k|    if (src->seed) {
  ------------------
  |  Branch (255:9): [True: 8.76k, False: 0]
  ------------------
  256|  8.76k|        OPENSSL_free(dest->seed);
  ------------------
  |  |  131|  8.76k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  257|  8.76k|        if ((dest->seed = OPENSSL_malloc(src->seed_len)) == NULL)
  ------------------
  |  |  106|  8.76k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (257:13): [True: 0, False: 8.76k]
  ------------------
  258|      0|            return 0;
  259|  8.76k|        if (!memcpy(dest->seed, src->seed, src->seed_len))
  ------------------
  |  Branch (259:13): [True: 0, False: 8.76k]
  ------------------
  260|      0|            return 0;
  261|  8.76k|        dest->seed_len = src->seed_len;
  262|  8.76k|    } else {
  263|      0|        OPENSSL_free(dest->seed);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  264|      0|        dest->seed = NULL;
  265|      0|        dest->seed_len = 0;
  266|      0|    }
  267|       |
  268|  8.76k|    return dest->meth->group_copy(dest, src);
  269|  8.76k|}
EC_GROUP_dup:
  272|  8.76k|{
  273|  8.76k|    EC_GROUP *t = NULL;
  274|  8.76k|    int ok = 0;
  275|       |
  276|  8.76k|    if (a == NULL)
  ------------------
  |  Branch (276:9): [True: 0, False: 8.76k]
  ------------------
  277|      0|        return NULL;
  278|       |
  279|  8.76k|    if ((t = ossl_ec_group_new_ex(a->libctx, a->propq, a->meth)) == NULL)
  ------------------
  |  Branch (279:9): [True: 0, False: 8.76k]
  ------------------
  280|      0|        return NULL;
  281|  8.76k|    if (!EC_GROUP_copy(t, a))
  ------------------
  |  Branch (281:9): [True: 0, False: 8.76k]
  ------------------
  282|      0|        goto err;
  283|       |
  284|  8.76k|    ok = 1;
  285|       |
  286|  8.76k|err:
  287|  8.76k|    if (!ok) {
  ------------------
  |  Branch (287:9): [True: 0, False: 8.76k]
  ------------------
  288|      0|        EC_GROUP_free(t);
  289|      0|        return NULL;
  290|      0|    }
  291|  8.76k|    return t;
  292|  8.76k|}
EC_GROUP_set_generator:
  372|  7.88k|{
  373|  7.88k|    if (generator == NULL) {
  ------------------
  |  Branch (373:9): [True: 0, False: 7.88k]
  ------------------
  374|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  375|      0|        return 0;
  376|      0|    }
  377|       |
  378|       |    /* require group->field >= 1 */
  379|  7.88k|    if (group->field == NULL || BN_is_zero(group->field)
  ------------------
  |  Branch (379:9): [True: 0, False: 7.88k]
  |  Branch (379:33): [True: 0, False: 7.88k]
  ------------------
  380|  7.88k|        || BN_is_negative(group->field)) {
  ------------------
  |  Branch (380:12): [True: 0, False: 7.88k]
  ------------------
  381|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_FIELD);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  382|      0|        return 0;
  383|      0|    }
  384|       |
  385|       |    /*-
  386|       |     * - require order >= 1
  387|       |     * - enforce upper bound due to Hasse thm: order can be no more than one bit
  388|       |     *   longer than field cardinality
  389|       |     */
  390|  7.88k|    if (order == NULL || BN_is_zero(order) || BN_is_negative(order)
  ------------------
  |  Branch (390:9): [True: 0, False: 7.88k]
  |  Branch (390:26): [True: 0, False: 7.88k]
  |  Branch (390:47): [True: 0, False: 7.88k]
  ------------------
  391|  7.88k|        || BN_num_bits(order) > BN_num_bits(group->field) + 1) {
  ------------------
  |  Branch (391:12): [True: 0, False: 7.88k]
  ------------------
  392|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_GROUP_ORDER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  393|      0|        return 0;
  394|      0|    }
  395|       |
  396|       |    /*-
  397|       |     * Unfortunately the cofactor is an optional field in many standards.
  398|       |     * Internally, the lib uses 0 cofactor as a marker for "unknown cofactor".
  399|       |     * So accept cofactor == NULL or cofactor >= 0.
  400|       |     */
  401|  7.88k|    if (cofactor != NULL && BN_is_negative(cofactor)) {
  ------------------
  |  Branch (401:9): [True: 7.88k, False: 0]
  |  Branch (401:29): [True: 0, False: 7.88k]
  ------------------
  402|      0|        ERR_raise(ERR_LIB_EC, EC_R_UNKNOWN_COFACTOR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  403|      0|        return 0;
  404|      0|    }
  405|       |
  406|  7.88k|    if (group->generator == NULL) {
  ------------------
  |  Branch (406:9): [True: 7.88k, False: 0]
  ------------------
  407|  7.88k|        group->generator = EC_POINT_new(group);
  408|  7.88k|        if (group->generator == NULL)
  ------------------
  |  Branch (408:13): [True: 0, False: 7.88k]
  ------------------
  409|      0|            return 0;
  410|  7.88k|    }
  411|  7.88k|    if (!EC_POINT_copy(group->generator, generator))
  ------------------
  |  Branch (411:9): [True: 0, False: 7.88k]
  ------------------
  412|      0|        return 0;
  413|       |
  414|  7.88k|    if (!BN_copy(group->order, order))
  ------------------
  |  Branch (414:9): [True: 0, False: 7.88k]
  ------------------
  415|      0|        return 0;
  416|       |
  417|       |    /* Either take the provided positive cofactor, or try to compute it */
  418|  7.88k|    if (cofactor != NULL && !BN_is_zero(cofactor)) {
  ------------------
  |  Branch (418:9): [True: 7.88k, False: 0]
  |  Branch (418:29): [True: 7.88k, False: 0]
  ------------------
  419|  7.88k|        if (!BN_copy(group->cofactor, cofactor))
  ------------------
  |  Branch (419:13): [True: 0, False: 7.88k]
  ------------------
  420|      0|            return 0;
  421|  7.88k|    } else if (!ec_guess_cofactor(group)) {
  ------------------
  |  Branch (421:16): [True: 0, False: 0]
  ------------------
  422|      0|        BN_zero(group->cofactor);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  423|      0|        return 0;
  424|      0|    }
  425|       |
  426|       |    /*
  427|       |     * Some groups have an order with
  428|       |     * factors of two, which makes the Montgomery setup fail.
  429|       |     * |group->mont_data| will be NULL in this case.
  430|       |     */
  431|  7.88k|    if (BN_is_odd(group->order)) {
  ------------------
  |  Branch (431:9): [True: 7.88k, False: 0]
  ------------------
  432|  7.88k|        return ec_precompute_mont_data(group);
  433|  7.88k|    }
  434|       |
  435|      0|    BN_MONT_CTX_free(group->mont_data);
  436|       |    group->mont_data = NULL;
  437|      0|    return 1;
  438|  7.88k|}
EC_GROUP_get0_order:
  461|  8.76k|{
  462|  8.76k|    return group->order;
  463|  8.76k|}
EC_GROUP_order_bits:
  466|  17.5k|{
  467|  17.5k|    return group->meth->group_order_bits(group);
  468|  17.5k|}
EC_GROUP_set_curve_name:
  488|  8.76k|{
  489|  8.76k|    group->curve_name = nid;
  490|  8.76k|    group->asn1_flag = (nid != NID_undef)
  ------------------
  |  |   18|  8.76k|#define NID_undef                       0
  ------------------
  |  Branch (490:24): [True: 8.76k, False: 0]
  ------------------
  491|  8.76k|        ? OPENSSL_EC_NAMED_CURVE
  ------------------
  |  |   31|  8.76k|#define OPENSSL_EC_NAMED_CURVE 0x001
  ------------------
  492|  8.76k|        : OPENSSL_EC_EXPLICIT_CURVE;
  ------------------
  |  |   30|  8.76k|#define OPENSSL_EC_EXPLICIT_CURVE 0x000
  ------------------
  493|  8.76k|}
EC_GROUP_get_curve_name:
  496|  35.0k|{
  497|  35.0k|    return group->curve_name;
  498|  35.0k|}
EC_GROUP_get_field_type:
  506|  17.5k|{
  507|  17.5k|    return group->meth->field_type;
  508|  17.5k|}
EC_GROUP_set_asn1_flag:
  511|  8.76k|{
  512|  8.76k|    group->asn1_flag = flag;
  513|  8.76k|}
EC_GROUP_get_asn1_flag:
  516|  16.6k|{
  517|  16.6k|    return group->asn1_flag;
  518|  16.6k|}
EC_GROUP_get_point_conversion_form:
  528|  8.76k|{
  529|  8.76k|    return group->asn1_form;
  530|  8.76k|}
EC_GROUP_set_seed:
  533|  8.76k|{
  534|  8.76k|    OPENSSL_free(group->seed);
  ------------------
  |  |  131|  8.76k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  535|  8.76k|    group->seed = NULL;
  536|  8.76k|    group->seed_len = 0;
  537|       |
  538|  8.76k|    if (!len || !p)
  ------------------
  |  Branch (538:9): [True: 0, False: 8.76k]
  |  Branch (538:17): [True: 0, False: 8.76k]
  ------------------
  539|      0|        return 1;
  540|       |
  541|  8.76k|    if ((group->seed = OPENSSL_malloc(len)) == NULL)
  ------------------
  |  |  106|  8.76k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (541:9): [True: 0, False: 8.76k]
  ------------------
  542|      0|        return 0;
  543|  8.76k|    memcpy(group->seed, p, len);
  544|  8.76k|    group->seed_len = len;
  545|       |
  546|  8.76k|    return len;
  547|  8.76k|}
EC_POINT_new:
  717|  35.0k|{
  718|  35.0k|    EC_POINT *ret;
  719|       |
  720|  35.0k|    if (group == NULL) {
  ------------------
  |  Branch (720:9): [True: 0, False: 35.0k]
  ------------------
  721|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  722|      0|        return NULL;
  723|      0|    }
  724|  35.0k|    if (group->meth->point_init == NULL) {
  ------------------
  |  Branch (724:9): [True: 0, False: 35.0k]
  ------------------
  725|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  726|      0|        return NULL;
  727|      0|    }
  728|       |
  729|  35.0k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  35.0k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  730|  35.0k|    if (ret == NULL)
  ------------------
  |  Branch (730:9): [True: 0, False: 35.0k]
  ------------------
  731|      0|        return NULL;
  732|       |
  733|  35.0k|    ret->meth = group->meth;
  734|  35.0k|    ret->curve_name = group->curve_name;
  735|       |
  736|  35.0k|    if (!ret->meth->point_init(ret)) {
  ------------------
  |  Branch (736:9): [True: 0, False: 35.0k]
  ------------------
  737|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  738|      0|        return NULL;
  739|      0|    }
  740|       |
  741|  35.0k|    return ret;
  742|  35.0k|}
EC_POINT_free:
  745|  35.0k|{
  746|  35.0k|    if (point == NULL)
  ------------------
  |  Branch (746:9): [True: 0, False: 35.0k]
  ------------------
  747|      0|        return;
  748|       |
  749|       |#ifdef OPENSSL_PEDANTIC_ZEROIZATION
  750|       |    EC_POINT_clear_free(point);
  751|       |#else
  752|  35.0k|    if (point->meth->point_finish != 0)
  ------------------
  |  Branch (752:9): [True: 35.0k, False: 0]
  ------------------
  753|  35.0k|        point->meth->point_finish(point);
  754|  35.0k|    OPENSSL_free(point);
  ------------------
  |  |  131|  35.0k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  755|  35.0k|#endif
  756|  35.0k|}
EC_POINT_copy:
  771|  17.5k|{
  772|  17.5k|    if (dest->meth->point_copy == 0) {
  ------------------
  |  Branch (772:9): [True: 0, False: 17.5k]
  ------------------
  773|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  774|      0|        return 0;
  775|      0|    }
  776|  17.5k|    if (dest->meth != src->meth
  ------------------
  |  Branch (776:9): [True: 0, False: 17.5k]
  ------------------
  777|  17.5k|        || (dest->curve_name != src->curve_name
  ------------------
  |  Branch (777:13): [True: 876, False: 16.6k]
  ------------------
  778|    876|            && dest->curve_name != 0
  ------------------
  |  Branch (778:16): [True: 876, False: 0]
  ------------------
  779|    876|            && src->curve_name != 0)) {
  ------------------
  |  Branch (779:16): [True: 0, False: 876]
  ------------------
  780|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  781|      0|        return 0;
  782|      0|    }
  783|  17.5k|    if (dest == src)
  ------------------
  |  Branch (783:9): [True: 0, False: 17.5k]
  ------------------
  784|      0|        return 1;
  785|  17.5k|    return dest->meth->point_copy(dest, src);
  786|  17.5k|}
EC_POINT_set_Jprojective_coordinates_GFp:
  832|  17.5k|{
  833|  17.5k|    if (group->meth->field_type != NID_X9_62_prime_field) {
  ------------------
  |  |  152|  17.5k|#define NID_X9_62_prime_field           406
  ------------------
  |  Branch (833:9): [True: 0, False: 17.5k]
  ------------------
  834|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  835|      0|        return 0;
  836|      0|    }
  837|  17.5k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (837:9): [True: 0, False: 17.5k]
  ------------------
  838|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  839|      0|        return 0;
  840|      0|    }
  841|  17.5k|    return ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group, point,
  842|  17.5k|        x, y, z, ctx);
  843|  17.5k|}
EC_POINT_set_affine_coordinates:
  866|  17.5k|{
  867|  17.5k|    if (group->meth->point_set_affine_coordinates == NULL) {
  ------------------
  |  Branch (867:9): [True: 0, False: 17.5k]
  ------------------
  868|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  869|      0|        return 0;
  870|      0|    }
  871|  17.5k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (871:9): [True: 0, False: 17.5k]
  ------------------
  872|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  873|      0|        return 0;
  874|      0|    }
  875|  17.5k|    if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx))
  ------------------
  |  Branch (875:9): [True: 0, False: 17.5k]
  ------------------
  876|      0|        return 0;
  877|       |
  878|  17.5k|    if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {
  ------------------
  |  Branch (878:9): [True: 0, False: 17.5k]
  ------------------
  879|      0|        ERR_raise(ERR_LIB_EC, EC_R_POINT_IS_NOT_ON_CURVE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  880|      0|        return 0;
  881|      0|    }
  882|  17.5k|    return 1;
  883|  17.5k|}
EC_POINT_is_at_infinity:
  983|  17.5k|{
  984|  17.5k|    if (group->meth->is_at_infinity == 0) {
  ------------------
  |  Branch (984:9): [True: 0, False: 17.5k]
  ------------------
  985|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  986|      0|        return 0;
  987|      0|    }
  988|  17.5k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (988:9): [True: 0, False: 17.5k]
  ------------------
  989|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  990|      0|        return 0;
  991|      0|    }
  992|  17.5k|    return group->meth->is_at_infinity(group, point);
  993|  17.5k|}
EC_POINT_is_on_curve:
 1004|  17.5k|{
 1005|  17.5k|    if (group->meth->is_on_curve == 0) {
  ------------------
  |  Branch (1005:9): [True: 0, False: 17.5k]
  ------------------
 1006|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1007|      0|        return 0;
 1008|      0|    }
 1009|  17.5k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (1009:9): [True: 0, False: 17.5k]
  ------------------
 1010|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1011|      0|        return 0;
 1012|      0|    }
 1013|  17.5k|    return group->meth->is_on_curve(group, point, ctx);
 1014|  17.5k|}
ossl_ec_group_simple_order_bits:
 1230|  17.5k|{
 1231|  17.5k|    if (group->order == NULL)
  ------------------
  |  Branch (1231:9): [True: 0, False: 17.5k]
  ------------------
 1232|      0|        return 0;
 1233|  17.5k|    return BN_num_bits(group->order);
 1234|  17.5k|}
ec_lib.c:ec_precompute_mont_data:
 1189|  7.88k|{
 1190|  7.88k|    BN_CTX *ctx = BN_CTX_new_ex(group->libctx);
 1191|  7.88k|    int ret = 0;
 1192|       |
 1193|  7.88k|    BN_MONT_CTX_free(group->mont_data);
 1194|  7.88k|    group->mont_data = NULL;
 1195|       |
 1196|  7.88k|    if (ctx == NULL)
  ------------------
  |  Branch (1196:9): [True: 0, False: 7.88k]
  ------------------
 1197|      0|        goto err;
 1198|       |
 1199|  7.88k|    group->mont_data = BN_MONT_CTX_new();
 1200|  7.88k|    if (group->mont_data == NULL)
  ------------------
  |  Branch (1200:9): [True: 0, False: 7.88k]
  ------------------
 1201|      0|        goto err;
 1202|       |
 1203|  7.88k|    if (!BN_MONT_CTX_set(group->mont_data, group->order, ctx)) {
  ------------------
  |  Branch (1203:9): [True: 0, False: 7.88k]
  ------------------
 1204|      0|        BN_MONT_CTX_free(group->mont_data);
 1205|      0|        group->mont_data = NULL;
 1206|      0|        goto err;
 1207|      0|    }
 1208|       |
 1209|  7.88k|    ret = 1;
 1210|       |
 1211|  7.88k|err:
 1212|       |
 1213|  7.88k|    BN_CTX_free(ctx);
 1214|  7.88k|    return ret;
 1215|  7.88k|}

ec_lib.c:ec_point_is_compat:
  333|  70.0k|{
  334|  70.0k|    return group->meth == point->meth
  ------------------
  |  Branch (334:12): [True: 70.0k, False: 0]
  ------------------
  335|  70.0k|        && (group->curve_name == 0
  ------------------
  |  Branch (335:13): [True: 3.50k, False: 66.5k]
  ------------------
  336|  66.5k|            || point->curve_name == 0
  ------------------
  |  Branch (336:16): [True: 0, False: 66.5k]
  ------------------
  337|  66.5k|            || group->curve_name == point->curve_name);
  ------------------
  |  Branch (337:16): [True: 66.5k, False: 0]
  ------------------
  338|  70.0k|}
ec_oct.c:ec_point_is_compat:
  333|  8.76k|{
  334|  8.76k|    return group->meth == point->meth
  ------------------
  |  Branch (334:12): [True: 8.76k, False: 0]
  ------------------
  335|  8.76k|        && (group->curve_name == 0
  ------------------
  |  Branch (335:13): [True: 0, False: 8.76k]
  ------------------
  336|  8.76k|            || point->curve_name == 0
  ------------------
  |  Branch (336:16): [True: 0, False: 8.76k]
  ------------------
  337|  8.76k|            || group->curve_name == point->curve_name);
  ------------------
  |  Branch (337:16): [True: 8.76k, False: 0]
  ------------------
  338|  8.76k|}

EC_POINT_oct2point:
  111|  8.76k|{
  112|  8.76k|    if (group->meth->oct2point == 0
  ------------------
  |  Branch (112:9): [True: 8.76k, False: 0]
  ------------------
  113|  8.76k|        && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) {
  ------------------
  |  |   26|  8.76k|#define EC_FLAGS_DEFAULT_OCT 0x1
  ------------------
  |  Branch (113:12): [True: 0, False: 8.76k]
  ------------------
  114|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  115|      0|        return 0;
  116|      0|    }
  117|  8.76k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (117:9): [True: 0, False: 8.76k]
  ------------------
  118|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  119|      0|        return 0;
  120|      0|    }
  121|  8.76k|    if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
  ------------------
  |  |   26|  8.76k|#define EC_FLAGS_DEFAULT_OCT 0x1
  ------------------
  |  Branch (121:9): [True: 8.76k, False: 0]
  ------------------
  122|  8.76k|        if (group->meth->field_type == NID_X9_62_prime_field)
  ------------------
  |  |  152|  8.76k|#define NID_X9_62_prime_field           406
  ------------------
  |  Branch (122:13): [True: 8.76k, False: 0]
  ------------------
  123|  8.76k|            return ossl_ec_GFp_simple_oct2point(group, point, buf, len, ctx);
  124|      0|        else
  125|       |#ifdef OPENSSL_NO_EC2M
  126|       |        {
  127|       |            ERR_raise(ERR_LIB_EC, EC_R_GF2M_NOT_SUPPORTED);
  128|       |            return 0;
  129|       |        }
  130|       |#else
  131|      0|            return ossl_ec_GF2m_simple_oct2point(group, point, buf, len, ctx);
  132|  8.76k|#endif
  133|  8.76k|    }
  134|      0|    return group->meth->oct2point(group, point, buf, len, ctx);
  135|  8.76k|}

ossl_ec_GFp_mont_group_init:
   84|  1.75k|{
   85|  1.75k|    int ok;
   86|       |
   87|  1.75k|    ok = ossl_ec_GFp_simple_group_init(group);
   88|  1.75k|    group->field_data1 = NULL;
   89|       |    group->field_data2 = NULL;
   90|  1.75k|    return ok;
   91|  1.75k|}
ossl_ec_GFp_mont_group_finish:
   94|  1.75k|{
   95|  1.75k|    BN_MONT_CTX_free(group->field_data1);
   96|  1.75k|    group->field_data1 = NULL;
   97|  1.75k|    BN_free(group->field_data2);
   98|       |    group->field_data2 = NULL;
   99|  1.75k|    ossl_ec_GFp_simple_group_finish(group);
  100|  1.75k|}
ossl_ec_GFp_mont_group_copy:
  112|    876|{
  113|    876|    BN_MONT_CTX_free(dest->field_data1);
  114|    876|    dest->field_data1 = NULL;
  115|    876|    BN_clear_free(dest->field_data2);
  116|    876|    dest->field_data2 = NULL;
  117|       |
  118|    876|    if (!ossl_ec_GFp_simple_group_copy(dest, src))
  ------------------
  |  Branch (118:9): [True: 0, False: 876]
  ------------------
  119|      0|        return 0;
  120|       |
  121|    876|    if (src->field_data1 != NULL) {
  ------------------
  |  Branch (121:9): [True: 876, False: 0]
  ------------------
  122|    876|        dest->field_data1 = BN_MONT_CTX_new();
  123|    876|        if (dest->field_data1 == NULL)
  ------------------
  |  Branch (123:13): [True: 0, False: 876]
  ------------------
  124|      0|            return 0;
  125|    876|        if (!BN_MONT_CTX_copy(dest->field_data1, src->field_data1))
  ------------------
  |  Branch (125:13): [True: 0, False: 876]
  ------------------
  126|      0|            goto err;
  127|    876|    }
  128|    876|    if (src->field_data2 != NULL) {
  ------------------
  |  Branch (128:9): [True: 876, False: 0]
  ------------------
  129|    876|        dest->field_data2 = BN_dup(src->field_data2);
  130|    876|        if (dest->field_data2 == NULL)
  ------------------
  |  Branch (130:13): [True: 0, False: 876]
  ------------------
  131|      0|            goto err;
  132|    876|    }
  133|       |
  134|    876|    return 1;
  135|       |
  136|      0|err:
  137|      0|    BN_MONT_CTX_free(dest->field_data1);
  138|       |    dest->field_data1 = NULL;
  139|      0|    return 0;
  140|    876|}
ossl_ec_GFp_mont_field_mul:
  198|  1.75k|{
  199|  1.75k|    if (group->field_data1 == NULL) {
  ------------------
  |  Branch (199:9): [True: 0, False: 1.75k]
  ------------------
  200|      0|        ERR_raise(ERR_LIB_EC, EC_R_NOT_INITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  201|      0|        return 0;
  202|      0|    }
  203|       |
  204|  1.75k|    return BN_mod_mul_montgomery(r, a, b, group->field_data1, ctx);
  205|  1.75k|}
ossl_ec_GFp_mont_field_sqr:
  209|  3.50k|{
  210|  3.50k|    if (group->field_data1 == NULL) {
  ------------------
  |  Branch (210:9): [True: 0, False: 3.50k]
  ------------------
  211|      0|        ERR_raise(ERR_LIB_EC, EC_R_NOT_INITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  212|      0|        return 0;
  213|      0|    }
  214|       |
  215|  3.50k|    return BN_mod_mul_montgomery(r, a, a, group->field_data1, ctx);
  216|  3.50k|}
ossl_ec_GFp_mont_field_encode:
  269|  5.25k|{
  270|  5.25k|    if (group->field_data1 == NULL) {
  ------------------
  |  Branch (270:9): [True: 0, False: 5.25k]
  ------------------
  271|      0|        ERR_raise(ERR_LIB_EC, EC_R_NOT_INITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  272|      0|        return 0;
  273|      0|    }
  274|       |
  275|  5.25k|    return BN_to_montgomery(r, a, (BN_MONT_CTX *)group->field_data1, ctx);
  276|  5.25k|}
ossl_ec_GFp_mont_field_set_to_one:
  291|  1.75k|{
  292|  1.75k|    if (group->field_data2 == NULL) {
  ------------------
  |  Branch (292:9): [True: 0, False: 1.75k]
  ------------------
  293|      0|        ERR_raise(ERR_LIB_EC, EC_R_NOT_INITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  294|      0|        return 0;
  295|      0|    }
  296|       |
  297|  1.75k|    if (!BN_copy(r, group->field_data2))
  ------------------
  |  Branch (297:9): [True: 0, False: 1.75k]
  ------------------
  298|      0|        return 0;
  299|  1.75k|    return 1;
  300|  1.75k|}

ossl_ec_GFp_nist_group_copy:
   86|  7.88k|{
   87|  7.88k|    dest->field_mod_func = src->field_mod_func;
   88|       |
   89|  7.88k|    return ossl_ec_GFp_simple_group_copy(dest, src);
   90|  7.88k|}
ossl_ec_GFp_nist_field_mul:
  130|  15.7k|{
  131|  15.7k|    int ret = 0;
  132|  15.7k|    BN_CTX *ctx_new = NULL;
  133|       |
  134|  15.7k|    if (!group || !r || !a || !b) {
  ------------------
  |  Branch (134:9): [True: 0, False: 15.7k]
  |  Branch (134:19): [True: 0, False: 15.7k]
  |  Branch (134:25): [True: 0, False: 15.7k]
  |  Branch (134:31): [True: 0, False: 15.7k]
  ------------------
  135|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  136|      0|        goto err;
  137|      0|    }
  138|  15.7k|    if (!ctx)
  ------------------
  |  Branch (138:9): [True: 0, False: 15.7k]
  ------------------
  139|      0|        if ((ctx_new = ctx = BN_CTX_new_ex(group->libctx)) == NULL)
  ------------------
  |  Branch (139:13): [True: 0, False: 0]
  ------------------
  140|      0|            goto err;
  141|       |
  142|  15.7k|    if (!BN_mul(r, a, b, ctx))
  ------------------
  |  Branch (142:9): [True: 0, False: 15.7k]
  ------------------
  143|      0|        goto err;
  144|  15.7k|    if (!group->field_mod_func(r, r, group->field, ctx))
  ------------------
  |  Branch (144:9): [True: 0, False: 15.7k]
  ------------------
  145|      0|        goto err;
  146|       |
  147|  15.7k|    ret = 1;
  148|  15.7k|err:
  149|  15.7k|    BN_CTX_free(ctx_new);
  150|  15.7k|    return ret;
  151|  15.7k|}
ossl_ec_GFp_nist_field_sqr:
  155|  31.5k|{
  156|  31.5k|    int ret = 0;
  157|  31.5k|    BN_CTX *ctx_new = NULL;
  158|       |
  159|  31.5k|    if (!group || !r || !a) {
  ------------------
  |  Branch (159:9): [True: 0, False: 31.5k]
  |  Branch (159:19): [True: 0, False: 31.5k]
  |  Branch (159:25): [True: 0, False: 31.5k]
  ------------------
  160|      0|        ERR_raise(ERR_LIB_EC, EC_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  161|      0|        goto err;
  162|      0|    }
  163|  31.5k|    if (!ctx)
  ------------------
  |  Branch (163:9): [True: 0, False: 31.5k]
  ------------------
  164|      0|        if ((ctx_new = ctx = BN_CTX_new_ex(group->libctx)) == NULL)
  ------------------
  |  Branch (164:13): [True: 0, False: 0]
  ------------------
  165|      0|            goto err;
  166|       |
  167|  31.5k|    if (!BN_sqr(r, a, ctx))
  ------------------
  |  Branch (167:9): [True: 0, False: 31.5k]
  ------------------
  168|      0|        goto err;
  169|  31.5k|    if (!group->field_mod_func(r, r, group->field, ctx))
  ------------------
  |  Branch (169:9): [True: 0, False: 31.5k]
  ------------------
  170|      0|        goto err;
  171|       |
  172|  31.5k|    ret = 1;
  173|  31.5k|err:
  174|  31.5k|    BN_CTX_free(ctx_new);
  175|  31.5k|    return ret;
  176|  31.5k|}

ossl_ec_GFp_nistp384_method:
 1496|  7.88k|{
 1497|  7.88k|    static const EC_METHOD ret = {
 1498|  7.88k|        EC_FLAGS_DEFAULT_OCT,
  ------------------
  |  |   26|  7.88k|#define EC_FLAGS_DEFAULT_OCT 0x1
  ------------------
 1499|  7.88k|        NID_X9_62_prime_field,
  ------------------
  |  |  152|  7.88k|#define NID_X9_62_prime_field           406
  ------------------
 1500|  7.88k|        ossl_ec_GFp_nistp384_group_init,
 1501|  7.88k|        ossl_ec_GFp_simple_group_finish,
 1502|  7.88k|        ossl_ec_GFp_simple_group_clear_finish,
 1503|  7.88k|        ossl_ec_GFp_nist_group_copy,
 1504|  7.88k|        ossl_ec_GFp_nistp384_group_set_curve,
 1505|  7.88k|        ossl_ec_GFp_simple_group_get_curve,
 1506|  7.88k|        ossl_ec_GFp_simple_group_get_degree,
 1507|  7.88k|        ossl_ec_group_simple_order_bits,
 1508|  7.88k|        ossl_ec_GFp_simple_group_check_discriminant,
 1509|  7.88k|        ossl_ec_GFp_simple_point_init,
 1510|  7.88k|        ossl_ec_GFp_simple_point_finish,
 1511|  7.88k|        ossl_ec_GFp_simple_point_clear_finish,
 1512|  7.88k|        ossl_ec_GFp_simple_point_copy,
 1513|  7.88k|        ossl_ec_GFp_simple_point_set_to_infinity,
 1514|  7.88k|        ossl_ec_GFp_simple_point_set_affine_coordinates,
 1515|  7.88k|        ossl_ec_GFp_nistp384_point_get_affine_coordinates,
 1516|  7.88k|        0, /* point_set_compressed_coordinates */
 1517|  7.88k|        0, /* point2oct */
 1518|  7.88k|        0, /* oct2point */
 1519|  7.88k|        ossl_ec_GFp_simple_add,
 1520|  7.88k|        ossl_ec_GFp_simple_dbl,
 1521|  7.88k|        ossl_ec_GFp_simple_invert,
 1522|  7.88k|        ossl_ec_GFp_simple_is_at_infinity,
 1523|  7.88k|        ossl_ec_GFp_simple_is_on_curve,
 1524|  7.88k|        ossl_ec_GFp_simple_cmp,
 1525|  7.88k|        ossl_ec_GFp_simple_make_affine,
 1526|  7.88k|        ossl_ec_GFp_simple_points_make_affine,
 1527|  7.88k|        ossl_ec_GFp_nistp384_points_mul,
 1528|  7.88k|        ossl_ec_GFp_nistp384_precompute_mult,
 1529|  7.88k|        ossl_ec_GFp_nistp384_have_precompute_mult,
 1530|  7.88k|        ossl_ec_GFp_nist_field_mul,
 1531|  7.88k|        ossl_ec_GFp_nist_field_sqr,
 1532|  7.88k|        0, /* field_div */
 1533|  7.88k|        ossl_ec_GFp_simple_field_inv,
 1534|  7.88k|        0, /* field_encode */
 1535|  7.88k|        0, /* field_decode */
 1536|  7.88k|        0, /* field_set_to_one */
 1537|  7.88k|        ossl_ec_key_simple_priv2oct,
 1538|  7.88k|        ossl_ec_key_simple_oct2priv,
 1539|  7.88k|        0, /* set private */
 1540|  7.88k|        ossl_ec_key_simple_generate_key,
 1541|  7.88k|        ossl_ec_key_simple_check_key,
 1542|  7.88k|        ossl_ec_key_simple_generate_public_key,
 1543|  7.88k|        0, /* keycopy */
 1544|  7.88k|        0, /* keyfinish */
 1545|  7.88k|        ossl_ecdh_simple_compute_key,
 1546|  7.88k|        ossl_ecdsa_simple_sign_setup,
 1547|  7.88k|        ossl_ecdsa_simple_sign_sig,
 1548|  7.88k|        ossl_ecdsa_simple_verify_sig,
 1549|  7.88k|        0, /* field_inverse_mod_ord */
 1550|  7.88k|        0, /* blind_coordinates */
 1551|  7.88k|        0, /* ladder_pre */
 1552|  7.88k|        0, /* ladder_step */
 1553|  7.88k|        0 /* ladder_post */
 1554|  7.88k|    };
 1555|       |
 1556|  7.88k|    return &ret;
 1557|  7.88k|}
ossl_ec_GFp_nistp384_group_init:
 1610|  15.7k|{
 1611|  15.7k|    int ret;
 1612|       |
 1613|  15.7k|    ret = ossl_ec_GFp_simple_group_init(group);
 1614|  15.7k|    group->a_is_minus3 = 1;
 1615|  15.7k|    return ret;
 1616|  15.7k|}
ossl_ec_GFp_nistp384_group_set_curve:
 1621|  7.88k|{
 1622|  7.88k|    int ret = 0;
 1623|  7.88k|    BIGNUM *curve_p, *curve_a, *curve_b;
 1624|  7.88k|#ifndef FIPS_MODULE
 1625|  7.88k|    BN_CTX *new_ctx = NULL;
 1626|       |
 1627|  7.88k|    if (ctx == NULL)
  ------------------
  |  Branch (1627:9): [True: 0, False: 7.88k]
  ------------------
 1628|      0|        ctx = new_ctx = BN_CTX_new();
 1629|  7.88k|#endif
 1630|  7.88k|    if (ctx == NULL)
  ------------------
  |  Branch (1630:9): [True: 0, False: 7.88k]
  ------------------
 1631|      0|        return 0;
 1632|       |
 1633|  7.88k|    BN_CTX_start(ctx);
 1634|  7.88k|    curve_p = BN_CTX_get(ctx);
 1635|  7.88k|    curve_a = BN_CTX_get(ctx);
 1636|  7.88k|    curve_b = BN_CTX_get(ctx);
 1637|  7.88k|    if (curve_b == NULL)
  ------------------
  |  Branch (1637:9): [True: 0, False: 7.88k]
  ------------------
 1638|      0|        goto err;
 1639|  7.88k|    BN_bin2bn(nistp384_curve_params[0], sizeof(felem_bytearray), curve_p);
 1640|  7.88k|    BN_bin2bn(nistp384_curve_params[1], sizeof(felem_bytearray), curve_a);
 1641|  7.88k|    BN_bin2bn(nistp384_curve_params[2], sizeof(felem_bytearray), curve_b);
 1642|  7.88k|    if ((BN_cmp(curve_p, p)) || (BN_cmp(curve_a, a)) || (BN_cmp(curve_b, b))) {
  ------------------
  |  Branch (1642:9): [True: 0, False: 7.88k]
  |  Branch (1642:33): [True: 0, False: 7.88k]
  |  Branch (1642:57): [True: 0, False: 7.88k]
  ------------------
 1643|      0|        ERR_raise(ERR_LIB_EC, EC_R_WRONG_CURVE_PARAMETERS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1644|      0|        goto err;
 1645|      0|    }
 1646|  7.88k|    group->field_mod_func = BN_nist_mod_384;
 1647|  7.88k|    ret = ossl_ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
 1648|  7.88k|err:
 1649|  7.88k|    BN_CTX_end(ctx);
 1650|  7.88k|#ifndef FIPS_MODULE
 1651|  7.88k|    BN_CTX_free(new_ctx);
 1652|  7.88k|#endif
 1653|  7.88k|    return ret;
 1654|  7.88k|}

EC_GFp_nistz256_method:
 1570|    876|{
 1571|    876|    static const EC_METHOD ret = {
 1572|    876|        EC_FLAGS_DEFAULT_OCT,
  ------------------
  |  |   26|    876|#define EC_FLAGS_DEFAULT_OCT 0x1
  ------------------
 1573|    876|        NID_X9_62_prime_field,
  ------------------
  |  |  152|    876|#define NID_X9_62_prime_field           406
  ------------------
 1574|    876|        ossl_ec_GFp_mont_group_init,
 1575|    876|        ossl_ec_GFp_mont_group_finish,
 1576|    876|        ossl_ec_GFp_mont_group_clear_finish,
 1577|    876|        ossl_ec_GFp_mont_group_copy,
 1578|    876|        ossl_ec_GFp_mont_group_set_curve,
 1579|    876|        ossl_ec_GFp_simple_group_get_curve,
 1580|    876|        ossl_ec_GFp_simple_group_get_degree,
 1581|    876|        ossl_ec_group_simple_order_bits,
 1582|    876|        ossl_ec_GFp_simple_group_check_discriminant,
 1583|    876|        ossl_ec_GFp_simple_point_init,
 1584|    876|        ossl_ec_GFp_simple_point_finish,
 1585|    876|        ossl_ec_GFp_simple_point_clear_finish,
 1586|    876|        ossl_ec_GFp_simple_point_copy,
 1587|    876|        ossl_ec_GFp_simple_point_set_to_infinity,
 1588|    876|        ossl_ec_GFp_simple_point_set_affine_coordinates,
 1589|    876|        ecp_nistz256_get_affine,
 1590|    876|        0, 0, 0,
 1591|    876|        ossl_ec_GFp_simple_add,
 1592|    876|        ossl_ec_GFp_simple_dbl,
 1593|    876|        ossl_ec_GFp_simple_invert,
 1594|    876|        ossl_ec_GFp_simple_is_at_infinity,
 1595|    876|        ossl_ec_GFp_simple_is_on_curve,
 1596|    876|        ossl_ec_GFp_simple_cmp,
 1597|    876|        ossl_ec_GFp_simple_make_affine,
 1598|    876|        ossl_ec_GFp_simple_points_make_affine,
 1599|    876|        ecp_nistz256_points_mul, /* mul */
 1600|    876|        ecp_nistz256_mult_precompute, /* precompute_mult */
 1601|    876|        ecp_nistz256_window_have_precompute_mult, /* have_precompute_mult */
 1602|    876|        ossl_ec_GFp_mont_field_mul,
 1603|    876|        ossl_ec_GFp_mont_field_sqr,
 1604|    876|        0, /* field_div */
 1605|    876|        ossl_ec_GFp_mont_field_inv,
 1606|    876|        ossl_ec_GFp_mont_field_encode,
 1607|    876|        ossl_ec_GFp_mont_field_decode,
 1608|    876|        ossl_ec_GFp_mont_field_set_to_one,
 1609|    876|        ossl_ec_key_simple_priv2oct,
 1610|    876|        ossl_ec_key_simple_oct2priv,
 1611|    876|        0, /* set private */
 1612|    876|        ossl_ec_key_simple_generate_key,
 1613|    876|        ossl_ec_key_simple_check_key,
 1614|    876|        ossl_ec_key_simple_generate_public_key,
 1615|    876|        0, /* keycopy */
 1616|    876|        0, /* keyfinish */
 1617|    876|        ossl_ecdh_simple_compute_key,
 1618|    876|        ossl_ecdsa_simple_sign_setup,
 1619|    876|        ossl_ecdsa_simple_sign_sig,
 1620|    876|        ossl_ecdsa_simple_verify_sig,
 1621|    876|        ecp_nistz256_inv_mod_ord, /* can be #define-d NULL */
 1622|    876|        0, /* blind_coordinates */
 1623|    876|        0, /* ladder_pre */
 1624|    876|        0, /* ladder_step */
 1625|    876|        0, /* ladder_post */
 1626|    876|        ecp_nistz256group_full_init
 1627|    876|    };
 1628|       |
 1629|    876|    return &ret;
 1630|    876|}
ecp_nistz256.c:ecp_nistz256group_full_init:
 1445|    876|{
 1446|    876|    BN_CTX *ctx = NULL;
 1447|    876|    BN_MONT_CTX *mont = NULL, *ordmont = NULL;
 1448|    876|    const int param_len = 32;
 1449|    876|    const int seed_len = 20;
 1450|    876|    int ok = 0;
 1451|    876|    uint32_t hi_order_n = 0xccd1c8aa;
 1452|    876|    uint32_t lo_order_n = 0xee00bc4f;
 1453|    876|    BIGNUM *p = NULL, *a = NULL, *b = NULL, *x = NULL, *y = NULL, *one = NULL,
 1454|    876|           *order = NULL;
 1455|    876|    EC_POINT *P = NULL;
 1456|       |
 1457|    876|    if ((ctx = BN_CTX_new_ex(group->libctx)) == NULL) {
  ------------------
  |  Branch (1457:9): [True: 0, False: 876]
  ------------------
 1458|      0|        ERR_raise(ERR_LIB_EC, ERR_R_MALLOC_FAILURE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1459|      0|        return 0;
 1460|      0|    }
 1461|       |
 1462|    876|    if (!EC_GROUP_set_seed(group, params, seed_len)) {
  ------------------
  |  Branch (1462:9): [True: 0, False: 876]
  ------------------
 1463|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1464|      0|        goto err;
 1465|      0|    }
 1466|    876|    params += seed_len;
 1467|       |
 1468|    876|    if ((p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (1468:9): [True: 0, False: 876]
  ------------------
 1469|    876|        || (a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (1469:12): [True: 0, False: 876]
  ------------------
 1470|    876|        || (b = BN_bin2bn(params + 2 * param_len, param_len, NULL)) == NULL) {
  ------------------
  |  Branch (1470:12): [True: 0, False: 876]
  ------------------
 1471|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1472|      0|        goto err;
 1473|      0|    }
 1474|       |
 1475|       |    /*
 1476|       |     * Set up curve params and montgomery for field
 1477|       |     * Start by setting up montgomery and one
 1478|       |     */
 1479|    876|    mont = BN_MONT_CTX_new();
 1480|    876|    if (mont == NULL)
  ------------------
  |  Branch (1480:9): [True: 0, False: 876]
  ------------------
 1481|      0|        goto err;
 1482|       |
 1483|    876|    if (!ossl_bn_mont_ctx_set(mont, p, 256, params + 6 * param_len, param_len,
  ------------------
  |  Branch (1483:9): [True: 0, False: 876]
  ------------------
 1484|    876|            1, 0))
 1485|      0|        goto err;
 1486|       |
 1487|    876|    one = BN_new();
 1488|    876|    if (one == NULL) {
  ------------------
  |  Branch (1488:9): [True: 0, False: 876]
  ------------------
 1489|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1490|      0|        goto err;
 1491|      0|    }
 1492|    876|    if (!BN_to_montgomery(one, BN_value_one(), mont, ctx)) {
  ------------------
  |  Branch (1492:9): [True: 0, False: 876]
  ------------------
 1493|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1494|      0|        goto err;
 1495|      0|    }
 1496|    876|    group->field_data1 = mont;
 1497|    876|    mont = NULL;
 1498|    876|    group->field_data2 = one;
 1499|    876|    one = NULL;
 1500|       |
 1501|    876|    if (!ossl_ec_GFp_simple_group_set_curve(group, p, a, b, ctx)) {
  ------------------
  |  Branch (1501:9): [True: 0, False: 876]
  ------------------
 1502|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1503|      0|        goto err;
 1504|      0|    }
 1505|       |
 1506|    876|    if ((P = EC_POINT_new(group)) == NULL) {
  ------------------
  |  Branch (1506:9): [True: 0, False: 876]
  ------------------
 1507|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1508|      0|        goto err;
 1509|      0|    }
 1510|       |
 1511|    876|    if ((x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (1511:9): [True: 0, False: 876]
  ------------------
 1512|    876|        || (y = BN_bin2bn(params + 4 * param_len, param_len, NULL)) == NULL) {
  ------------------
  |  Branch (1512:12): [True: 0, False: 876]
  ------------------
 1513|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1514|      0|        goto err;
 1515|      0|    }
 1516|    876|    if (!EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) {
  ------------------
  |  Branch (1516:9): [True: 0, False: 876]
  ------------------
 1517|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1518|      0|        goto err;
 1519|      0|    }
 1520|    876|    if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (1520:9): [True: 0, False: 876]
  ------------------
 1521|    876|        || !BN_set_word(x, (BN_ULONG)1)) { /* cofactor is 1 */
  ------------------
  |  Branch (1521:12): [True: 0, False: 876]
  ------------------
 1522|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1523|      0|        goto err;
 1524|      0|    }
 1525|       |
 1526|       |    /*
 1527|       |     * Set up generator and order and montgomery data
 1528|       |     */
 1529|    876|    group->generator = EC_POINT_new(group);
 1530|    876|    if (group->generator == NULL) {
  ------------------
  |  Branch (1530:9): [True: 0, False: 876]
  ------------------
 1531|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1532|      0|        goto err;
 1533|      0|    }
 1534|    876|    if (!EC_POINT_copy(group->generator, P))
  ------------------
  |  Branch (1534:9): [True: 0, False: 876]
  ------------------
 1535|      0|        goto err;
 1536|    876|    if (!BN_copy(group->order, order))
  ------------------
  |  Branch (1536:9): [True: 0, False: 876]
  ------------------
 1537|      0|        goto err;
 1538|    876|    if (!BN_set_word(group->cofactor, 1))
  ------------------
  |  Branch (1538:9): [True: 0, False: 876]
  ------------------
 1539|      0|        goto err;
 1540|       |
 1541|    876|    ordmont = BN_MONT_CTX_new();
 1542|    876|    if (ordmont == NULL)
  ------------------
  |  Branch (1542:9): [True: 0, False: 876]
  ------------------
 1543|      0|        goto err;
 1544|    876|    if (!ossl_bn_mont_ctx_set(ordmont, order, 256, params + 7 * param_len,
  ------------------
  |  Branch (1544:9): [True: 0, False: 876]
  ------------------
 1545|    876|            param_len, lo_order_n, hi_order_n))
 1546|      0|        goto err;
 1547|       |
 1548|    876|    group->mont_data = ordmont;
 1549|    876|    ordmont = NULL;
 1550|       |
 1551|    876|    ok = 1;
 1552|       |
 1553|    876|err:
 1554|    876|    EC_POINT_free(P);
 1555|    876|    BN_CTX_free(ctx);
 1556|    876|    BN_MONT_CTX_free(mont);
 1557|    876|    BN_MONT_CTX_free(ordmont);
 1558|    876|    BN_free(p);
 1559|    876|    BN_free(one);
 1560|    876|    BN_free(a);
 1561|    876|    BN_free(b);
 1562|    876|    BN_free(order);
 1563|    876|    BN_free(x);
 1564|    876|    BN_free(y);
 1565|       |
 1566|    876|    return ok;
 1567|    876|}

ossl_ec_GFp_simple_oct2point:
  276|  8.76k|{
  277|  8.76k|    point_conversion_form_t form;
  278|  8.76k|    int y_bit;
  279|  8.76k|    BN_CTX *new_ctx = NULL;
  280|  8.76k|    BIGNUM *x, *y;
  281|  8.76k|    int field_len, enc_len;
  282|  8.76k|    int ret = 0;
  283|       |
  284|  8.76k|    if (len == 0) {
  ------------------
  |  Branch (284:9): [True: 0, False: 8.76k]
  ------------------
  285|      0|        ERR_raise(ERR_LIB_EC, EC_R_BUFFER_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  286|      0|        return 0;
  287|      0|    }
  288|  8.76k|    form = buf[0];
  289|  8.76k|    y_bit = form & 1;
  290|  8.76k|    form = form & ~1U;
  291|  8.76k|    if ((form != 0) && (form != POINT_CONVERSION_COMPRESSED)
  ------------------
  |  Branch (291:9): [True: 8.76k, False: 0]
  |  Branch (291:24): [True: 8.76k, False: 0]
  ------------------
  292|  8.76k|        && (form != POINT_CONVERSION_UNCOMPRESSED)
  ------------------
  |  Branch (292:12): [True: 0, False: 8.76k]
  ------------------
  293|      0|        && (form != POINT_CONVERSION_HYBRID)) {
  ------------------
  |  Branch (293:12): [True: 0, False: 0]
  ------------------
  294|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  295|      0|        return 0;
  296|      0|    }
  297|  8.76k|    if ((form == 0 || form == POINT_CONVERSION_UNCOMPRESSED) && y_bit) {
  ------------------
  |  Branch (297:10): [True: 0, False: 8.76k]
  |  Branch (297:23): [True: 8.76k, False: 0]
  |  Branch (297:65): [True: 0, False: 8.76k]
  ------------------
  298|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  299|      0|        return 0;
  300|      0|    }
  301|       |
  302|  8.76k|    if (form == 0) {
  ------------------
  |  Branch (302:9): [True: 0, False: 8.76k]
  ------------------
  303|      0|        if (len != 1) {
  ------------------
  |  Branch (303:13): [True: 0, False: 0]
  ------------------
  304|      0|            ERR_raise(ERR_LIB_EC, EC_R_INVALID_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  305|      0|            return 0;
  306|      0|        }
  307|       |
  308|      0|        return EC_POINT_set_to_infinity(group, point);
  309|      0|    }
  310|       |
  311|  8.76k|    field_len = BN_num_bytes(group->field);
  ------------------
  |  |  188|  8.76k|#define BN_num_bytes(a) ((BN_num_bits(a) + 7) / 8)
  ------------------
  312|  8.76k|    enc_len = (form == POINT_CONVERSION_COMPRESSED) ? 1 + field_len : 1 + 2 * field_len;
  ------------------
  |  Branch (312:15): [True: 0, False: 8.76k]
  ------------------
  313|       |
  314|  8.76k|    if (len != (size_t)enc_len) {
  ------------------
  |  Branch (314:9): [True: 0, False: 8.76k]
  ------------------
  315|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  316|      0|        return 0;
  317|      0|    }
  318|       |
  319|  8.76k|    if (ctx == NULL) {
  ------------------
  |  Branch (319:9): [True: 8.76k, False: 0]
  ------------------
  320|  8.76k|        ctx = new_ctx = BN_CTX_new_ex(group->libctx);
  321|  8.76k|        if (ctx == NULL)
  ------------------
  |  Branch (321:13): [True: 0, False: 8.76k]
  ------------------
  322|      0|            return 0;
  323|  8.76k|    }
  324|       |
  325|  8.76k|    BN_CTX_start(ctx);
  326|  8.76k|    x = BN_CTX_get(ctx);
  327|  8.76k|    y = BN_CTX_get(ctx);
  328|  8.76k|    if (y == NULL)
  ------------------
  |  Branch (328:9): [True: 0, False: 8.76k]
  ------------------
  329|      0|        goto err;
  330|       |
  331|  8.76k|    if (!BN_bin2bn(buf + 1, field_len, x))
  ------------------
  |  Branch (331:9): [True: 0, False: 8.76k]
  ------------------
  332|      0|        goto err;
  333|  8.76k|    if (BN_ucmp(x, group->field) >= 0) {
  ------------------
  |  Branch (333:9): [True: 0, False: 8.76k]
  ------------------
  334|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  335|      0|        goto err;
  336|      0|    }
  337|       |
  338|  8.76k|    if (form == POINT_CONVERSION_COMPRESSED) {
  ------------------
  |  Branch (338:9): [True: 0, False: 8.76k]
  ------------------
  339|      0|        if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx))
  ------------------
  |  Branch (339:13): [True: 0, False: 0]
  ------------------
  340|      0|            goto err;
  341|  8.76k|    } else {
  342|  8.76k|        if (!BN_bin2bn(buf + 1 + field_len, field_len, y))
  ------------------
  |  Branch (342:13): [True: 0, False: 8.76k]
  ------------------
  343|      0|            goto err;
  344|  8.76k|        if (BN_ucmp(y, group->field) >= 0) {
  ------------------
  |  Branch (344:13): [True: 0, False: 8.76k]
  ------------------
  345|      0|            ERR_raise(ERR_LIB_EC, EC_R_INVALID_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  346|      0|            goto err;
  347|      0|        }
  348|  8.76k|        if (form == POINT_CONVERSION_HYBRID) {
  ------------------
  |  Branch (348:13): [True: 0, False: 8.76k]
  ------------------
  349|      0|            if (y_bit != BN_is_odd(y)) {
  ------------------
  |  Branch (349:17): [True: 0, False: 0]
  ------------------
  350|      0|                ERR_raise(ERR_LIB_EC, EC_R_INVALID_ENCODING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  351|      0|                goto err;
  352|      0|            }
  353|      0|        }
  354|       |
  355|       |        /*
  356|       |         * EC_POINT_set_affine_coordinates is responsible for checking that
  357|       |         * the point is on the curve.
  358|       |         */
  359|  8.76k|        if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
  ------------------
  |  Branch (359:13): [True: 0, False: 8.76k]
  ------------------
  360|      0|            goto err;
  361|  8.76k|    }
  362|       |
  363|  8.76k|    ret = 1;
  364|       |
  365|  8.76k|err:
  366|  8.76k|    BN_CTX_end(ctx);
  367|  8.76k|    BN_CTX_free(new_ctx);
  368|  8.76k|    return ret;
  369|  8.76k|}

ossl_ec_GFp_simple_group_init:
   99|  17.5k|{
  100|  17.5k|    group->field = BN_new();
  101|  17.5k|    group->a = BN_new();
  102|  17.5k|    group->b = BN_new();
  103|  17.5k|    if (group->field == NULL || group->a == NULL || group->b == NULL) {
  ------------------
  |  Branch (103:9): [True: 0, False: 17.5k]
  |  Branch (103:33): [True: 0, False: 17.5k]
  |  Branch (103:53): [True: 0, False: 17.5k]
  ------------------
  104|      0|        BN_free(group->field);
  105|      0|        BN_free(group->a);
  106|      0|        BN_free(group->b);
  107|      0|        return 0;
  108|      0|    }
  109|  17.5k|    group->a_is_minus3 = 0;
  110|  17.5k|    return 1;
  111|  17.5k|}
ossl_ec_GFp_simple_group_finish:
  114|  17.5k|{
  115|  17.5k|    BN_free(group->field);
  116|  17.5k|    BN_free(group->a);
  117|  17.5k|    BN_free(group->b);
  118|  17.5k|}
ossl_ec_GFp_simple_group_copy:
  128|  8.76k|{
  129|  8.76k|    if (!BN_copy(dest->field, src->field))
  ------------------
  |  Branch (129:9): [True: 0, False: 8.76k]
  ------------------
  130|      0|        return 0;
  131|  8.76k|    if (!BN_copy(dest->a, src->a))
  ------------------
  |  Branch (131:9): [True: 0, False: 8.76k]
  ------------------
  132|      0|        return 0;
  133|  8.76k|    if (!BN_copy(dest->b, src->b))
  ------------------
  |  Branch (133:9): [True: 0, False: 8.76k]
  ------------------
  134|      0|        return 0;
  135|       |
  136|  8.76k|    dest->a_is_minus3 = src->a_is_minus3;
  137|       |
  138|  8.76k|    return 1;
  139|  8.76k|}
ossl_ec_GFp_simple_group_set_curve:
  144|  8.76k|{
  145|  8.76k|    int ret = 0;
  146|  8.76k|    BN_CTX *new_ctx = NULL;
  147|  8.76k|    BIGNUM *tmp_a;
  148|       |
  149|       |    /* p must be a prime > 3 */
  150|  8.76k|    if (BN_num_bits(p) <= 2 || !BN_is_odd(p)) {
  ------------------
  |  Branch (150:9): [True: 0, False: 8.76k]
  |  Branch (150:32): [True: 0, False: 8.76k]
  ------------------
  151|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_FIELD);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  152|      0|        return 0;
  153|      0|    }
  154|       |
  155|  8.76k|    if (ctx == NULL) {
  ------------------
  |  Branch (155:9): [True: 0, False: 8.76k]
  ------------------
  156|      0|        ctx = new_ctx = BN_CTX_new_ex(group->libctx);
  157|      0|        if (ctx == NULL)
  ------------------
  |  Branch (157:13): [True: 0, False: 0]
  ------------------
  158|      0|            return 0;
  159|      0|    }
  160|       |
  161|  8.76k|    BN_CTX_start(ctx);
  162|  8.76k|    tmp_a = BN_CTX_get(ctx);
  163|  8.76k|    if (tmp_a == NULL)
  ------------------
  |  Branch (163:9): [True: 0, False: 8.76k]
  ------------------
  164|      0|        goto err;
  165|       |
  166|       |    /* group->field */
  167|  8.76k|    if (!BN_copy(group->field, p))
  ------------------
  |  Branch (167:9): [True: 0, False: 8.76k]
  ------------------
  168|      0|        goto err;
  169|  8.76k|    BN_set_negative(group->field, 0);
  170|       |
  171|       |    /* group->a */
  172|  8.76k|    if (!BN_nnmod(tmp_a, a, p, ctx))
  ------------------
  |  Branch (172:9): [True: 0, False: 8.76k]
  ------------------
  173|      0|        goto err;
  174|  8.76k|    if (group->meth->field_encode != NULL) {
  ------------------
  |  Branch (174:9): [True: 876, False: 7.88k]
  ------------------
  175|    876|        if (!group->meth->field_encode(group, group->a, tmp_a, ctx))
  ------------------
  |  Branch (175:13): [True: 0, False: 876]
  ------------------
  176|      0|            goto err;
  177|  7.88k|    } else if (!BN_copy(group->a, tmp_a))
  ------------------
  |  Branch (177:16): [True: 0, False: 7.88k]
  ------------------
  178|      0|        goto err;
  179|       |
  180|       |    /* group->b */
  181|  8.76k|    if (!BN_nnmod(group->b, b, p, ctx))
  ------------------
  |  Branch (181:9): [True: 0, False: 8.76k]
  ------------------
  182|      0|        goto err;
  183|  8.76k|    if (group->meth->field_encode != NULL)
  ------------------
  |  Branch (183:9): [True: 876, False: 7.88k]
  ------------------
  184|    876|        if (!group->meth->field_encode(group, group->b, group->b, ctx))
  ------------------
  |  Branch (184:13): [True: 0, False: 876]
  ------------------
  185|      0|            goto err;
  186|       |
  187|       |    /* group->a_is_minus3 */
  188|  8.76k|    if (!BN_add_word(tmp_a, 3))
  ------------------
  |  Branch (188:9): [True: 0, False: 8.76k]
  ------------------
  189|      0|        goto err;
  190|  8.76k|    group->a_is_minus3 = (0 == BN_cmp(tmp_a, group->field));
  191|       |
  192|  8.76k|    ret = 1;
  193|       |
  194|  8.76k|err:
  195|  8.76k|    BN_CTX_end(ctx);
  196|  8.76k|    BN_CTX_free(new_ctx);
  197|  8.76k|    return ret;
  198|  8.76k|}
ossl_ec_GFp_simple_point_init:
  323|  35.0k|{
  324|  35.0k|    point->X = BN_new();
  325|  35.0k|    point->Y = BN_new();
  326|  35.0k|    point->Z = BN_new();
  327|  35.0k|    point->Z_is_one = 0;
  328|       |
  329|  35.0k|    if (point->X == NULL || point->Y == NULL || point->Z == NULL) {
  ------------------
  |  Branch (329:9): [True: 0, False: 35.0k]
  |  Branch (329:29): [True: 0, False: 35.0k]
  |  Branch (329:49): [True: 0, False: 35.0k]
  ------------------
  330|      0|        BN_free(point->X);
  331|      0|        BN_free(point->Y);
  332|      0|        BN_free(point->Z);
  333|      0|        return 0;
  334|      0|    }
  335|  35.0k|    return 1;
  336|  35.0k|}
ossl_ec_GFp_simple_point_finish:
  339|  35.0k|{
  340|  35.0k|    BN_free(point->X);
  341|  35.0k|    BN_free(point->Y);
  342|  35.0k|    BN_free(point->Z);
  343|  35.0k|}
ossl_ec_GFp_simple_point_copy:
  354|  17.5k|{
  355|  17.5k|    if (!BN_copy(dest->X, src->X))
  ------------------
  |  Branch (355:9): [True: 0, False: 17.5k]
  ------------------
  356|      0|        return 0;
  357|  17.5k|    if (!BN_copy(dest->Y, src->Y))
  ------------------
  |  Branch (357:9): [True: 0, False: 17.5k]
  ------------------
  358|      0|        return 0;
  359|  17.5k|    if (!BN_copy(dest->Z, src->Z))
  ------------------
  |  Branch (359:9): [True: 0, False: 17.5k]
  ------------------
  360|      0|        return 0;
  361|  17.5k|    dest->Z_is_one = src->Z_is_one;
  362|  17.5k|    dest->curve_name = src->curve_name;
  363|       |
  364|  17.5k|    return 1;
  365|  17.5k|}
ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp:
  381|  17.5k|{
  382|  17.5k|    BN_CTX *new_ctx = NULL;
  383|  17.5k|    int ret = 0;
  384|       |
  385|  17.5k|    if (ctx == NULL) {
  ------------------
  |  Branch (385:9): [True: 0, False: 17.5k]
  ------------------
  386|      0|        ctx = new_ctx = BN_CTX_new_ex(group->libctx);
  387|      0|        if (ctx == NULL)
  ------------------
  |  Branch (387:13): [True: 0, False: 0]
  ------------------
  388|      0|            return 0;
  389|      0|    }
  390|       |
  391|  17.5k|    if (x != NULL) {
  ------------------
  |  Branch (391:9): [True: 17.5k, False: 0]
  ------------------
  392|  17.5k|        if (!BN_nnmod(point->X, x, group->field, ctx))
  ------------------
  |  Branch (392:13): [True: 0, False: 17.5k]
  ------------------
  393|      0|            goto err;
  394|  17.5k|        if (group->meth->field_encode) {
  ------------------
  |  Branch (394:13): [True: 1.75k, False: 15.7k]
  ------------------
  395|  1.75k|            if (!group->meth->field_encode(group, point->X, point->X, ctx))
  ------------------
  |  Branch (395:17): [True: 0, False: 1.75k]
  ------------------
  396|      0|                goto err;
  397|  1.75k|        }
  398|  17.5k|    }
  399|       |
  400|  17.5k|    if (y != NULL) {
  ------------------
  |  Branch (400:9): [True: 17.5k, False: 0]
  ------------------
  401|  17.5k|        if (!BN_nnmod(point->Y, y, group->field, ctx))
  ------------------
  |  Branch (401:13): [True: 0, False: 17.5k]
  ------------------
  402|      0|            goto err;
  403|  17.5k|        if (group->meth->field_encode) {
  ------------------
  |  Branch (403:13): [True: 1.75k, False: 15.7k]
  ------------------
  404|  1.75k|            if (!group->meth->field_encode(group, point->Y, point->Y, ctx))
  ------------------
  |  Branch (404:17): [True: 0, False: 1.75k]
  ------------------
  405|      0|                goto err;
  406|  1.75k|        }
  407|  17.5k|    }
  408|       |
  409|  17.5k|    if (z != NULL) {
  ------------------
  |  Branch (409:9): [True: 17.5k, False: 0]
  ------------------
  410|  17.5k|        int Z_is_one;
  411|       |
  412|  17.5k|        if (!BN_nnmod(point->Z, z, group->field, ctx))
  ------------------
  |  Branch (412:13): [True: 0, False: 17.5k]
  ------------------
  413|      0|            goto err;
  414|  17.5k|        Z_is_one = BN_is_one(point->Z);
  415|  17.5k|        if (group->meth->field_encode) {
  ------------------
  |  Branch (415:13): [True: 1.75k, False: 15.7k]
  ------------------
  416|  1.75k|            if (Z_is_one && (group->meth->field_set_to_one != 0)) {
  ------------------
  |  Branch (416:17): [True: 1.75k, False: 0]
  |  Branch (416:29): [True: 1.75k, False: 0]
  ------------------
  417|  1.75k|                if (!group->meth->field_set_to_one(group, point->Z, ctx))
  ------------------
  |  Branch (417:21): [True: 0, False: 1.75k]
  ------------------
  418|      0|                    goto err;
  419|  1.75k|            } else {
  420|      0|                if (!group->meth->field_encode(group, point->Z, point->Z, ctx))
  ------------------
  |  Branch (420:21): [True: 0, False: 0]
  ------------------
  421|      0|                    goto err;
  422|      0|            }
  423|  1.75k|        }
  424|  17.5k|        point->Z_is_one = Z_is_one;
  425|  17.5k|    }
  426|       |
  427|  17.5k|    ret = 1;
  428|       |
  429|  17.5k|err:
  430|  17.5k|    BN_CTX_free(new_ctx);
  431|  17.5k|    return ret;
  432|  17.5k|}
ossl_ec_GFp_simple_point_set_affine_coordinates:
  487|  17.5k|{
  488|  17.5k|    if (x == NULL || y == NULL) {
  ------------------
  |  Branch (488:9): [True: 0, False: 17.5k]
  |  Branch (488:22): [True: 0, False: 17.5k]
  ------------------
  489|       |        /*
  490|       |         * unlike for projective coordinates, we do not tolerate this
  491|       |         */
  492|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  493|      0|        return 0;
  494|      0|    }
  495|       |
  496|  17.5k|    return EC_POINT_set_Jprojective_coordinates_GFp(group, point, x, y,
  497|  17.5k|        BN_value_one(), ctx);
  498|  17.5k|}
ossl_ec_GFp_simple_is_at_infinity:
  951|  17.5k|{
  952|  17.5k|    return BN_is_zero(point->Z);
  953|  17.5k|}
ossl_ec_GFp_simple_is_on_curve:
  957|  17.5k|{
  958|  17.5k|    int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *,
  959|  17.5k|        const BIGNUM *, BN_CTX *);
  960|  17.5k|    int (*field_sqr)(const EC_GROUP *, BIGNUM *, const BIGNUM *, BN_CTX *);
  961|  17.5k|    const BIGNUM *p;
  962|  17.5k|    BN_CTX *new_ctx = NULL;
  963|  17.5k|    BIGNUM *rh, *tmp, *Z4, *Z6;
  964|  17.5k|    int ret = -1;
  965|       |
  966|  17.5k|    if (EC_POINT_is_at_infinity(group, point))
  ------------------
  |  Branch (966:9): [True: 0, False: 17.5k]
  ------------------
  967|      0|        return 1;
  968|       |
  969|  17.5k|    field_mul = group->meth->field_mul;
  970|  17.5k|    field_sqr = group->meth->field_sqr;
  971|  17.5k|    p = group->field;
  972|       |
  973|  17.5k|    if (ctx == NULL) {
  ------------------
  |  Branch (973:9): [True: 0, False: 17.5k]
  ------------------
  974|      0|        ctx = new_ctx = BN_CTX_new_ex(group->libctx);
  975|      0|        if (ctx == NULL)
  ------------------
  |  Branch (975:13): [True: 0, False: 0]
  ------------------
  976|      0|            return -1;
  977|      0|    }
  978|       |
  979|  17.5k|    BN_CTX_start(ctx);
  980|  17.5k|    rh = BN_CTX_get(ctx);
  981|  17.5k|    tmp = BN_CTX_get(ctx);
  982|  17.5k|    Z4 = BN_CTX_get(ctx);
  983|  17.5k|    Z6 = BN_CTX_get(ctx);
  984|  17.5k|    if (Z6 == NULL)
  ------------------
  |  Branch (984:9): [True: 0, False: 17.5k]
  ------------------
  985|      0|        goto err;
  986|       |
  987|       |    /*-
  988|       |     * We have a curve defined by a Weierstrass equation
  989|       |     *      y^2 = x^3 + a*x + b.
  990|       |     * The point to consider is given in Jacobian projective coordinates
  991|       |     * where  (X, Y, Z)  represents  (x, y) = (X/Z^2, Y/Z^3).
  992|       |     * Substituting this and multiplying by  Z^6  transforms the above equation into
  993|       |     *      Y^2 = X^3 + a*X*Z^4 + b*Z^6.
  994|       |     * To test this, we add up the right-hand side in 'rh'.
  995|       |     */
  996|       |
  997|       |    /* rh := X^2 */
  998|  17.5k|    if (!field_sqr(group, rh, point->X, ctx))
  ------------------
  |  Branch (998:9): [True: 0, False: 17.5k]
  ------------------
  999|      0|        goto err;
 1000|       |
 1001|  17.5k|    if (!point->Z_is_one) {
  ------------------
  |  Branch (1001:9): [True: 0, False: 17.5k]
  ------------------
 1002|      0|        if (!field_sqr(group, tmp, point->Z, ctx))
  ------------------
  |  Branch (1002:13): [True: 0, False: 0]
  ------------------
 1003|      0|            goto err;
 1004|      0|        if (!field_sqr(group, Z4, tmp, ctx))
  ------------------
  |  Branch (1004:13): [True: 0, False: 0]
  ------------------
 1005|      0|            goto err;
 1006|      0|        if (!field_mul(group, Z6, Z4, tmp, ctx))
  ------------------
  |  Branch (1006:13): [True: 0, False: 0]
  ------------------
 1007|      0|            goto err;
 1008|       |
 1009|       |        /* rh := (rh + a*Z^4)*X */
 1010|      0|        if (group->a_is_minus3) {
  ------------------
  |  Branch (1010:13): [True: 0, False: 0]
  ------------------
 1011|      0|            if (!BN_mod_lshift1_quick(tmp, Z4, p))
  ------------------
  |  Branch (1011:17): [True: 0, False: 0]
  ------------------
 1012|      0|                goto err;
 1013|      0|            if (!BN_mod_add_quick(tmp, tmp, Z4, p))
  ------------------
  |  Branch (1013:17): [True: 0, False: 0]
  ------------------
 1014|      0|                goto err;
 1015|      0|            if (!BN_mod_sub_quick(rh, rh, tmp, p))
  ------------------
  |  Branch (1015:17): [True: 0, False: 0]
  ------------------
 1016|      0|                goto err;
 1017|      0|            if (!field_mul(group, rh, rh, point->X, ctx))
  ------------------
  |  Branch (1017:17): [True: 0, False: 0]
  ------------------
 1018|      0|                goto err;
 1019|      0|        } else {
 1020|      0|            if (!field_mul(group, tmp, Z4, group->a, ctx))
  ------------------
  |  Branch (1020:17): [True: 0, False: 0]
  ------------------
 1021|      0|                goto err;
 1022|      0|            if (!BN_mod_add_quick(rh, rh, tmp, p))
  ------------------
  |  Branch (1022:17): [True: 0, False: 0]
  ------------------
 1023|      0|                goto err;
 1024|      0|            if (!field_mul(group, rh, rh, point->X, ctx))
  ------------------
  |  Branch (1024:17): [True: 0, False: 0]
  ------------------
 1025|      0|                goto err;
 1026|      0|        }
 1027|       |
 1028|       |        /* rh := rh + b*Z^6 */
 1029|      0|        if (!field_mul(group, tmp, group->b, Z6, ctx))
  ------------------
  |  Branch (1029:13): [True: 0, False: 0]
  ------------------
 1030|      0|            goto err;
 1031|      0|        if (!BN_mod_add_quick(rh, rh, tmp, p))
  ------------------
  |  Branch (1031:13): [True: 0, False: 0]
  ------------------
 1032|      0|            goto err;
 1033|  17.5k|    } else {
 1034|       |        /* point->Z_is_one */
 1035|       |
 1036|       |        /* rh := (rh + a)*X */
 1037|  17.5k|        if (!BN_mod_add_quick(rh, rh, group->a, p))
  ------------------
  |  Branch (1037:13): [True: 0, False: 17.5k]
  ------------------
 1038|      0|            goto err;
 1039|  17.5k|        if (!field_mul(group, rh, rh, point->X, ctx))
  ------------------
  |  Branch (1039:13): [True: 0, False: 17.5k]
  ------------------
 1040|      0|            goto err;
 1041|       |        /* rh := rh + b */
 1042|  17.5k|        if (!BN_mod_add_quick(rh, rh, group->b, p))
  ------------------
  |  Branch (1042:13): [True: 0, False: 17.5k]
  ------------------
 1043|      0|            goto err;
 1044|  17.5k|    }
 1045|       |
 1046|       |    /* 'lh' := Y^2 */
 1047|  17.5k|    if (!field_sqr(group, tmp, point->Y, ctx))
  ------------------
  |  Branch (1047:9): [True: 0, False: 17.5k]
  ------------------
 1048|      0|        goto err;
 1049|       |
 1050|  17.5k|    ret = (0 == BN_ucmp(tmp, rh));
 1051|       |
 1052|  17.5k|err:
 1053|  17.5k|    BN_CTX_end(ctx);
 1054|  17.5k|    BN_CTX_free(new_ctx);
 1055|  17.5k|    return ret;
 1056|  17.5k|}

ossl_ecx_key_new:
   22|    438|{
   23|    438|    ECX_KEY *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|    438|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   24|       |
   25|    438|    if (ret == NULL)
  ------------------
  |  Branch (25:9): [True: 0, False: 438]
  ------------------
   26|      0|        return NULL;
   27|       |
   28|    438|    ret->libctx = libctx;
   29|    438|    ret->haspubkey = haspubkey;
   30|    438|    switch (type) {
  ------------------
  |  Branch (30:13): [True: 438, False: 0]
  ------------------
   31|    438|    case ECX_KEY_TYPE_X25519:
  ------------------
  |  Branch (31:5): [True: 438, False: 0]
  ------------------
   32|    438|        ret->keylen = X25519_KEYLEN;
  ------------------
  |  |   26|    438|#define X25519_KEYLEN 32
  ------------------
   33|    438|        break;
   34|      0|    case ECX_KEY_TYPE_X448:
  ------------------
  |  Branch (34:5): [True: 0, False: 438]
  ------------------
   35|      0|        ret->keylen = X448_KEYLEN;
  ------------------
  |  |   27|      0|#define X448_KEYLEN 56
  ------------------
   36|      0|        break;
   37|      0|    case ECX_KEY_TYPE_ED25519:
  ------------------
  |  Branch (37:5): [True: 0, False: 438]
  ------------------
   38|      0|        ret->keylen = ED25519_KEYLEN;
  ------------------
  |  |   28|      0|#define ED25519_KEYLEN 32
  ------------------
   39|      0|        break;
   40|      0|    case ECX_KEY_TYPE_ED448:
  ------------------
  |  Branch (40:5): [True: 0, False: 438]
  ------------------
   41|      0|        ret->keylen = ED448_KEYLEN;
  ------------------
  |  |   29|      0|#define ED448_KEYLEN 57
  ------------------
   42|      0|        break;
   43|    438|    }
   44|    438|    ret->type = type;
   45|       |
   46|    438|    if (!CRYPTO_NEW_REF(&ret->references, 1))
  ------------------
  |  Branch (46:9): [True: 0, False: 438]
  ------------------
   47|      0|        goto err;
   48|       |
   49|    438|    if (propq != NULL) {
  ------------------
  |  Branch (49:9): [True: 0, False: 438]
  ------------------
   50|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   51|      0|        if (ret->propq == NULL)
  ------------------
  |  Branch (51:13): [True: 0, False: 0]
  ------------------
   52|      0|            goto err;
   53|      0|    }
   54|    438|    return ret;
   55|      0|err:
   56|      0|    if (ret != NULL) {
  ------------------
  |  Branch (56:9): [True: 0, False: 0]
  ------------------
   57|      0|        OPENSSL_free(ret->propq);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   58|      0|        CRYPTO_FREE_REF(&ret->references);
   59|      0|    }
   60|      0|    OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   61|       |    return NULL;
   62|    438|}
ossl_ecx_key_free:
   65|    438|{
   66|    438|    int i;
   67|       |
   68|    438|    if (key == NULL)
  ------------------
  |  Branch (68:9): [True: 0, False: 438]
  ------------------
   69|      0|        return;
   70|       |
   71|    438|    CRYPTO_DOWN_REF(&key->references, &i);
   72|    438|    REF_PRINT_COUNT("ECX_KEY", i, key);
  ------------------
  |  |  301|    438|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    438|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|    438|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|    438|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|    438|    if (i > 0)
  ------------------
  |  Branch (73:9): [True: 0, False: 438]
  ------------------
   74|      0|        return;
   75|    438|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    438|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 438]
  |  |  ------------------
  ------------------
   76|       |
   77|    438|    OPENSSL_free(key->propq);
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   78|       |#ifdef OPENSSL_PEDANTIC_ZEROIZATION
   79|       |    OPENSSL_cleanse(&key->pubkey, sizeof(key->pubkey));
   80|       |#endif
   81|    438|    OPENSSL_secure_clear_free(key->privkey, key->keylen);
  ------------------
  |  |  149|    438|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   82|    438|    CRYPTO_FREE_REF(&key->references);
   83|    438|    OPENSSL_free(key);
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   84|    438|}
ossl_ecx_key_allocate_privkey:
  104|    438|{
  105|    438|    key->privkey = OPENSSL_secure_zalloc(key->keylen);
  ------------------
  |  |  141|    438|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  106|       |
  107|    438|    return key->privkey;
  108|    438|}

OSSL_DECODER_from_bio:
   48|  31.9k|{
   49|  31.9k|    struct decoder_process_data_st data;
   50|  31.9k|    int ok = 0;
   51|  31.9k|    BIO *new_bio = NULL;
   52|  31.9k|    unsigned long lasterr;
   53|       |
   54|  31.9k|    if (in == NULL) {
  ------------------
  |  Branch (54:9): [True: 0, False: 31.9k]
  ------------------
   55|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   56|      0|        return 0;
   57|      0|    }
   58|       |
   59|  31.9k|    if (OSSL_DECODER_CTX_get_num_decoders(ctx) == 0) {
  ------------------
  |  Branch (59:9): [True: 0, False: 31.9k]
  ------------------
   60|      0|        ERR_raise_data(ERR_LIB_OSSL_DECODER, OSSL_DECODER_R_DECODER_NOT_FOUND,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_OSSL_DECODER, OSSL_DECODER_R_DECODER_NOT_FOUND,
  ------------------
  |  |  123|      0|#define ERR_LIB_OSSL_DECODER 60
  ------------------
                      ERR_raise_data(ERR_LIB_OSSL_DECODER, OSSL_DECODER_R_DECODER_NOT_FOUND,
  ------------------
  |  |   23|      0|#define OSSL_DECODER_R_DECODER_NOT_FOUND 102
  ------------------
   61|      0|            "No decoders were found. For standard decoders you need "
   62|      0|            "at least one of the default or base providers "
   63|      0|            "available. Did you forget to load them?");
   64|      0|        return 0;
   65|      0|    }
   66|       |
   67|  31.9k|    lasterr = ERR_peek_last_error();
   68|       |
   69|  31.9k|    if (BIO_tell(in) < 0) {
  ------------------
  |  |  573|  31.9k|#define BIO_tell(b) (int)BIO_ctrl(b, BIO_C_FILE_TELL, 0, NULL)
  |  |  ------------------
  |  |  |  |  468|  31.9k|#define BIO_C_FILE_TELL 133
  |  |  ------------------
  ------------------
  |  Branch (69:9): [True: 0, False: 31.9k]
  ------------------
   70|      0|        new_bio = BIO_new(BIO_f_readbuffer());
   71|      0|        if (new_bio == NULL)
  ------------------
  |  Branch (71:13): [True: 0, False: 0]
  ------------------
   72|      0|            return 0;
   73|      0|        in = BIO_push(new_bio, in);
   74|      0|    }
   75|  31.9k|    memset(&data, 0, sizeof(data));
   76|  31.9k|    data.ctx = ctx;
   77|  31.9k|    data.bio = in;
   78|       |
   79|       |    /* Enable passphrase caching */
   80|  31.9k|    (void)ossl_pw_enable_passphrase_caching(&ctx->pwdata);
   81|       |
   82|  31.9k|    ok = decoder_process(NULL, &data);
   83|       |
   84|  31.9k|    if (!data.flag_construct_called) {
  ------------------
  |  Branch (84:9): [True: 0, False: 31.9k]
  ------------------
   85|      0|        const char *spaces
   86|      0|            = ctx->start_input_type != NULL && ctx->input_structure != NULL
  ------------------
  |  Branch (86:15): [True: 0, False: 0]
  |  Branch (86:48): [True: 0, False: 0]
  ------------------
   87|      0|            ? " "
   88|      0|            : "";
   89|      0|        const char *input_type_label
   90|      0|            = ctx->start_input_type != NULL ? "Input type: " : "";
  ------------------
  |  Branch (90:15): [True: 0, False: 0]
  ------------------
   91|      0|        const char *input_structure_label
   92|      0|            = ctx->input_structure != NULL ? "Input structure: " : "";
  ------------------
  |  Branch (92:15): [True: 0, False: 0]
  ------------------
   93|      0|        const char *comma
   94|      0|            = ctx->start_input_type != NULL && ctx->input_structure != NULL
  ------------------
  |  Branch (94:15): [True: 0, False: 0]
  |  Branch (94:48): [True: 0, False: 0]
  ------------------
   95|      0|            ? ", "
   96|      0|            : "";
   97|      0|        const char *input_type
   98|      0|            = ctx->start_input_type != NULL ? ctx->start_input_type : "";
  ------------------
  |  Branch (98:15): [True: 0, False: 0]
  ------------------
   99|      0|        const char *input_structure
  100|      0|            = ctx->input_structure != NULL ? ctx->input_structure : "";
  ------------------
  |  Branch (100:15): [True: 0, False: 0]
  ------------------
  101|       |
  102|      0|        if (ERR_peek_last_error() == lasterr || ERR_peek_error() == 0)
  ------------------
  |  Branch (102:13): [True: 0, False: 0]
  |  Branch (102:49): [True: 0, False: 0]
  ------------------
  103|       |            /* Prevent spurious decoding error but add at least something */
  104|      0|            ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_UNSUPPORTED,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_UNSUPPORTED,
  ------------------
  |  |  123|      0|#define ERR_LIB_OSSL_DECODER 60
  ------------------
                          ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_UNSUPPORTED,
  ------------------
  |  |  364|      0|#define ERR_R_UNSUPPORTED (268 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  105|      0|                "No supported data to decode. %s%s%s%s%s%s",
  106|      0|                spaces, input_type_label, input_type, comma,
  107|      0|                input_structure_label, input_structure);
  108|      0|        ok = 0;
  109|      0|    }
  110|       |
  111|       |    /* Clear any internally cached passphrase */
  112|  31.9k|    (void)ossl_pw_clear_passphrase_cache(&ctx->pwdata);
  113|       |
  114|  31.9k|    if (new_bio != NULL) {
  ------------------
  |  Branch (114:9): [True: 0, False: 31.9k]
  ------------------
  115|      0|        BIO_pop(new_bio);
  116|      0|        BIO_free(new_bio);
  117|      0|    }
  118|  31.9k|    return ok;
  119|  31.9k|}
OSSL_DECODER_from_data:
  149|  31.9k|{
  150|  31.9k|    BIO *membio;
  151|  31.9k|    int ret = 0;
  152|       |
  153|  31.9k|    if (pdata == NULL || *pdata == NULL || pdata_len == NULL) {
  ------------------
  |  Branch (153:9): [True: 0, False: 31.9k]
  |  Branch (153:26): [True: 0, False: 31.9k]
  |  Branch (153:44): [True: 0, False: 31.9k]
  ------------------
  154|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  155|      0|        return 0;
  156|      0|    }
  157|       |
  158|  31.9k|    membio = BIO_new_mem_buf(*pdata, (int)*pdata_len);
  159|  31.9k|    if (OSSL_DECODER_from_bio(ctx, membio)) {
  ------------------
  |  Branch (159:9): [True: 31.9k, False: 0]
  ------------------
  160|  31.9k|        *pdata_len = (size_t)BIO_get_mem_data(membio, pdata);
  ------------------
  |  |  615|  31.9k|#define BIO_get_mem_data(b, pp) BIO_ctrl(b, BIO_CTRL_INFO, 0, (char *)(pp))
  |  |  ------------------
  |  |  |  |   92|  31.9k|#define BIO_CTRL_INFO 3 /* opt - extra tit-bits */
  |  |  ------------------
  ------------------
  161|  31.9k|        ret = 1;
  162|  31.9k|    }
  163|  31.9k|    BIO_free(membio);
  164|       |
  165|  31.9k|    return ret;
  166|  31.9k|}
OSSL_DECODER_CTX_set_selection:
  169|      2|{
  170|      2|    if (!ossl_assert(ctx != NULL)) {
  ------------------
  |  |   52|      2|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      2|    __FILE__, __LINE__)
  ------------------
  |  Branch (170:9): [True: 0, False: 2]
  ------------------
  171|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  172|      0|        return 0;
  173|      0|    }
  174|       |
  175|       |    /*
  176|       |     * 0 is a valid selection, and means that the caller leaves
  177|       |     * it to code to discover what the selection is.
  178|       |     */
  179|      2|    ctx->selection = selection;
  180|      2|    return 1;
  181|      2|}
OSSL_DECODER_CTX_set_input_type:
  185|  31.9k|{
  186|  31.9k|    if (!ossl_assert(ctx != NULL)) {
  ------------------
  |  |   52|  31.9k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  31.9k|    __FILE__, __LINE__)
  ------------------
  |  Branch (186:9): [True: 0, False: 31.9k]
  ------------------
  187|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  188|      0|        return 0;
  189|      0|    }
  190|       |
  191|       |    /*
  192|       |     * NULL is a valid starting input type, and means that the caller leaves
  193|       |     * it to code to discover what the starting input type is.
  194|       |     */
  195|  31.9k|    ctx->start_input_type = input_type;
  196|  31.9k|    return 1;
  197|  31.9k|}
OSSL_DECODER_CTX_set_input_structure:
  201|  31.9k|{
  202|  31.9k|    if (!ossl_assert(ctx != NULL)) {
  ------------------
  |  |   52|  31.9k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  31.9k|    __FILE__, __LINE__)
  ------------------
  |  Branch (202:9): [True: 0, False: 31.9k]
  ------------------
  203|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  204|      0|        return 0;
  205|      0|    }
  206|       |
  207|       |    /*
  208|       |     * NULL is a valid starting input structure, and means that the caller
  209|       |     * leaves it to code to discover what the starting input structure is.
  210|       |     */
  211|  31.9k|    ctx->input_structure = input_structure;
  212|  31.9k|    return 1;
  213|  31.9k|}
ossl_decoder_instance_new:
  244|     17|{
  245|     17|    OSSL_DECODER_INSTANCE *decoder_inst = NULL;
  246|     17|    const OSSL_PROVIDER *prov;
  247|     17|    OSSL_LIB_CTX *libctx;
  248|     17|    const OSSL_PROPERTY_LIST *props;
  249|     17|    const OSSL_PROPERTY_DEFINITION *prop;
  250|       |
  251|     17|    if (!ossl_assert(decoder != NULL)) {
  ------------------
  |  |   52|     17|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|     17|    __FILE__, __LINE__)
  ------------------
  |  Branch (251:9): [True: 0, False: 17]
  ------------------
  252|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  253|      0|        return 0;
  254|      0|    }
  255|       |
  256|     17|    if ((decoder_inst = OPENSSL_zalloc(sizeof(*decoder_inst))) == NULL)
  ------------------
  |  |  108|     17|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (256:9): [True: 0, False: 17]
  ------------------
  257|      0|        return 0;
  258|       |
  259|     17|    prov = OSSL_DECODER_get0_provider(decoder);
  260|     17|    libctx = ossl_provider_libctx(prov);
  261|     17|    props = ossl_decoder_parsed_properties(decoder);
  262|     17|    if (props == NULL) {
  ------------------
  |  Branch (262:9): [True: 0, False: 17]
  ------------------
  263|      0|        ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_INVALID_PROPERTY_DEFINITION,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_INVALID_PROPERTY_DEFINITION,
  ------------------
  |  |  123|      0|#define ERR_LIB_OSSL_DECODER 60
  ------------------
                      ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_INVALID_PROPERTY_DEFINITION,
  ------------------
  |  |  366|      0|#define ERR_R_INVALID_PROPERTY_DEFINITION (270 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  264|      0|            "there are no property definitions with decoder %s",
  265|      0|            OSSL_DECODER_get0_name(decoder));
  266|      0|        goto err;
  267|      0|    }
  268|       |
  269|       |    /* The "input" property is mandatory */
  270|     17|    prop = ossl_property_find_property(props, libctx, "input");
  271|     17|    decoder_inst->input_type = ossl_property_get_string_value(libctx, prop);
  272|     17|    decoder_inst->input_type_id = 0;
  273|     17|    if (decoder_inst->input_type == NULL) {
  ------------------
  |  Branch (273:9): [True: 0, False: 17]
  ------------------
  274|      0|        ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_INVALID_PROPERTY_DEFINITION,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_INVALID_PROPERTY_DEFINITION,
  ------------------
  |  |  123|      0|#define ERR_LIB_OSSL_DECODER 60
  ------------------
                      ERR_raise_data(ERR_LIB_OSSL_DECODER, ERR_R_INVALID_PROPERTY_DEFINITION,
  ------------------
  |  |  366|      0|#define ERR_R_INVALID_PROPERTY_DEFINITION (270 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  275|      0|            "the mandatory 'input' property is missing "
  276|      0|            "for decoder %s (properties: %s)",
  277|      0|            OSSL_DECODER_get0_name(decoder),
  278|      0|            OSSL_DECODER_get0_properties(decoder));
  279|      0|        goto err;
  280|      0|    }
  281|       |
  282|       |    /* The "structure" property is optional */
  283|     17|    prop = ossl_property_find_property(props, libctx, "structure");
  284|     17|    if (prop != NULL) {
  ------------------
  |  Branch (284:9): [True: 9, False: 8]
  ------------------
  285|      9|        decoder_inst->input_structure
  286|      9|            = ossl_property_get_string_value(libctx, prop);
  287|      9|    }
  288|       |
  289|     17|    if (!OSSL_DECODER_up_ref(decoder)) {
  ------------------
  |  Branch (289:9): [True: 0, False: 17]
  ------------------
  290|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  291|      0|        goto err;
  292|      0|    }
  293|     17|    decoder_inst->decoder = decoder;
  294|     17|    decoder_inst->decoderctx = decoderctx;
  295|     17|    return decoder_inst;
  296|      0|err:
  297|      0|    ossl_decoder_instance_free(decoder_inst);
  298|       |    return NULL;
  299|     17|}
ossl_decoder_instance_free:
  302|   183k|{
  303|   183k|    if (decoder_inst != NULL) {
  ------------------
  |  Branch (303:9): [True: 183k, False: 0]
  ------------------
  304|   183k|        if (decoder_inst->decoder != NULL)
  ------------------
  |  Branch (304:13): [True: 183k, False: 0]
  ------------------
  305|   183k|            decoder_inst->decoder->freectx(decoder_inst->decoderctx);
  306|   183k|        decoder_inst->decoderctx = NULL;
  307|   183k|        OSSL_DECODER_free(decoder_inst->decoder);
  308|   183k|        decoder_inst->decoder = NULL;
  309|   183k|        OPENSSL_free(decoder_inst);
  ------------------
  |  |  131|   183k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  310|   183k|    }
  311|   183k|}
ossl_decoder_instance_dup:
  314|   183k|{
  315|   183k|    OSSL_DECODER_INSTANCE *dest;
  316|   183k|    const OSSL_PROVIDER *prov;
  317|   183k|    void *provctx;
  318|       |
  319|   183k|    if ((dest = OPENSSL_zalloc(sizeof(*dest))) == NULL)
  ------------------
  |  |  108|   183k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (319:9): [True: 0, False: 183k]
  ------------------
  320|      0|        return NULL;
  321|       |
  322|   183k|    *dest = *src;
  323|   183k|    if (!OSSL_DECODER_up_ref(dest->decoder)) {
  ------------------
  |  Branch (323:9): [True: 0, False: 183k]
  ------------------
  324|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  325|      0|        goto err;
  326|      0|    }
  327|   183k|    prov = OSSL_DECODER_get0_provider(dest->decoder);
  328|   183k|    provctx = OSSL_PROVIDER_get0_provider_ctx(prov);
  329|       |
  330|   183k|    dest->decoderctx = dest->decoder->newctx(provctx);
  331|   183k|    if (dest->decoderctx == NULL) {
  ------------------
  |  Branch (331:9): [True: 0, False: 183k]
  ------------------
  332|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  333|      0|        OSSL_DECODER_free(dest->decoder);
  334|      0|        goto err;
  335|      0|    }
  336|       |
  337|   183k|    return dest;
  338|       |
  339|      0|err:
  340|      0|    OPENSSL_free(dest);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  341|       |    return NULL;
  342|   183k|}
ossl_decoder_ctx_add_decoder_inst:
  356|     11|{
  357|     11|    int ok;
  358|       |
  359|     11|    if (ctx->decoder_insts == NULL
  ------------------
  |  Branch (359:9): [True: 2, False: 9]
  ------------------
  360|      2|        && (ctx->decoder_insts = sk_OSSL_DECODER_INSTANCE_new_null()) == NULL) {
  ------------------
  |  Branch (360:12): [True: 0, False: 2]
  ------------------
  361|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  362|      0|        return 0;
  363|      0|    }
  364|       |
  365|     11|    ok = (sk_OSSL_DECODER_INSTANCE_push(ctx->decoder_insts, di) > 0);
  366|     11|    if (ok) {
  ------------------
  |  Branch (366:9): [True: 11, False: 0]
  ------------------
  367|     11|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|     11|    do {                           \
  |  |  222|     11|        BIO *trc_out = NULL;       \
  |  |  223|     11|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 11]
  |  |  ------------------
  ------------------
  368|      0|        {
  369|      0|            BIO_printf(trc_out,
  370|      0|                "(ctx %p) Added decoder instance %p for decoder %p\n"
  371|      0|                "    %s with %s\n",
  372|      0|                (void *)ctx, (void *)di, (void *)di->decoder,
  373|      0|                OSSL_DECODER_get0_name(di->decoder),
  374|      0|                OSSL_DECODER_get0_properties(di->decoder));
  375|      0|        }
  376|     11|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|     11|    }                            \
  |  |  227|     11|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 11]
  |  |  ------------------
  ------------------
  377|     11|    }
  378|     11|    return ok;
  379|     11|}
OSSL_DECODER_CTX_add_extra:
  558|      2|{
  559|       |    /*
  560|       |     * This function goes through existing decoder methods in
  561|       |     * |ctx->decoder_insts|, and tries to fetch new decoders that produce
  562|       |     * what the existing ones want as input, and push those newly fetched
  563|       |     * decoders on top of the same stack.
  564|       |     * Then it does the same again, but looping over the newly fetched
  565|       |     * decoders, until there are no more decoders to be fetched, or
  566|       |     * when we have done this 10 times.
  567|       |     *
  568|       |     * we do this with sliding windows on the stack by keeping track of indexes
  569|       |     * and of the end.
  570|       |     *
  571|       |     * +----------------+
  572|       |     * |   DER to RSA   | <--- w_prev_start
  573|       |     * +----------------+
  574|       |     * |   DER to DSA   |
  575|       |     * +----------------+
  576|       |     * |   DER to DH    |
  577|       |     * +----------------+
  578|       |     * |   PEM to DER   | <--- w_prev_end, w_new_start
  579|       |     * +----------------+
  580|       |     *                    <--- w_new_end
  581|       |     */
  582|      2|    struct collect_extra_decoder_data_st data;
  583|      2|    size_t depth = 0; /* Counts the number of iterations */
  584|      2|    size_t count; /* Calculates how many were added in each iteration */
  585|      2|    int numdecoders;
  586|      2|    STACK_OF(OSSL_DECODER) *skdecoders;
  ------------------
  |  |   33|      2|#define STACK_OF(type) struct stack_st_##type
  ------------------
  587|       |
  588|      2|    if (!ossl_assert(ctx != NULL)) {
  ------------------
  |  |   52|      2|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      2|    __FILE__, __LINE__)
  ------------------
  |  Branch (588:9): [True: 0, False: 2]
  ------------------
  589|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  590|      0|        return 0;
  591|      0|    }
  592|       |
  593|       |    /*
  594|       |     * If there is no stack of OSSL_DECODER_INSTANCE, we have nothing
  595|       |     * more to add.  That's fine.
  596|       |     */
  597|      2|    if (ctx->decoder_insts == NULL)
  ------------------
  |  Branch (597:9): [True: 0, False: 2]
  ------------------
  598|      0|        return 1;
  599|       |
  600|      2|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      2|    do {                           \
  |  |  222|      2|        BIO *trc_out = NULL;       \
  |  |  223|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  601|      0|    {
  602|      0|        BIO_printf(trc_out, "(ctx %p) Looking for extra decoders\n",
  603|      0|            (void *)ctx);
  604|      0|    }
  605|      2|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      2|    }                            \
  |  |  227|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  606|       |
  607|      2|    skdecoders = sk_OSSL_DECODER_new_null();
  608|      2|    if (skdecoders == NULL) {
  ------------------
  |  Branch (608:9): [True: 0, False: 2]
  ------------------
  609|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  610|      0|        return 0;
  611|      0|    }
  612|      2|    OSSL_DECODER_do_all_provided(libctx, collect_all_decoders, skdecoders);
  613|      2|    numdecoders = sk_OSSL_DECODER_num(skdecoders);
  614|       |
  615|       |    /*
  616|       |     * If there are provided or default properties, sort the initial decoder list
  617|       |     * by property matching score so that the highest scored provider is selected
  618|       |     * first.
  619|       |     */
  620|      2|    if (propq != NULL || ossl_ctx_global_properties(libctx, 0) != NULL) {
  ------------------
  |  Branch (620:9): [True: 0, False: 2]
  |  Branch (620:26): [True: 2, False: 0]
  ------------------
  621|      2|        int num_decoder_insts = sk_OSSL_DECODER_INSTANCE_num(ctx->decoder_insts);
  622|      2|        int i;
  623|      2|        OSSL_DECODER_INSTANCE *di;
  624|      2|        sk_OSSL_DECODER_INSTANCE_compfunc old_cmp = sk_OSSL_DECODER_INSTANCE_set_cmp_func(ctx->decoder_insts, decoder_sk_cmp);
  625|       |
  626|      7|        for (i = 0; i < num_decoder_insts; i++) {
  ------------------
  |  Branch (626:21): [True: 5, False: 2]
  ------------------
  627|      5|            di = sk_OSSL_DECODER_INSTANCE_value(ctx->decoder_insts, i);
  628|      5|            di->order = i;
  629|      5|        }
  630|      2|        sk_OSSL_DECODER_INSTANCE_sort(ctx->decoder_insts);
  631|      2|        sk_OSSL_DECODER_INSTANCE_set_cmp_func(ctx->decoder_insts, old_cmp);
  632|      2|    }
  633|       |
  634|      2|    memset(&data, 0, sizeof(data));
  635|      2|    data.ctx = ctx;
  636|      2|    data.w_prev_start = 0;
  637|      2|    data.w_prev_end = sk_OSSL_DECODER_INSTANCE_num(ctx->decoder_insts);
  638|      4|    do {
  639|      4|        int i, j;
  640|       |
  641|      4|        data.w_new_start = data.w_new_end = data.w_prev_end;
  642|       |
  643|       |        /*
  644|       |         * Two iterations:
  645|       |         * 0.  All decoders that have the same name as their input type.
  646|       |         *     This allows for decoders that unwrap some data in a specific
  647|       |         *     encoding, and pass the result on with the same encoding.
  648|       |         * 1.  All decoders that a different name than their input type.
  649|       |         */
  650|      4|        for (data.type_check = IS_SAME;
  651|     12|            data.type_check <= IS_DIFFERENT;
  ------------------
  |  Branch (651:13): [True: 8, False: 4]
  ------------------
  652|      8|            data.type_check++) {
  653|     30|            for (i = data.w_prev_start; i < data.w_prev_end; i++) {
  ------------------
  |  Branch (653:41): [True: 22, False: 8]
  ------------------
  654|     22|                OSSL_DECODER_INSTANCE *decoder_inst = sk_OSSL_DECODER_INSTANCE_value(ctx->decoder_insts, i);
  655|       |
  656|     22|                data.output_type
  657|     22|                    = OSSL_DECODER_INSTANCE_get_input_type(decoder_inst);
  658|       |
  659|     22|                data.output_type_id = 0;
  660|       |
  661|  1.69k|                for (j = 0; j < numdecoders; j++)
  ------------------
  |  Branch (661:29): [True: 1.67k, False: 22]
  ------------------
  662|  1.67k|                    collect_extra_decoder(sk_OSSL_DECODER_value(skdecoders, j),
  663|  1.67k|                        &data);
  664|     22|            }
  665|      8|        }
  666|       |        /* How many were added in this iteration */
  667|      4|        count = data.w_new_end - data.w_new_start;
  668|       |
  669|       |        /* Slide the "previous decoder" windows */
  670|      4|        data.w_prev_start = data.w_new_start;
  671|      4|        data.w_prev_end = data.w_new_end;
  672|       |
  673|      4|        depth++;
  674|      4|    } while (count != 0 && depth <= 10);
  ------------------
  |  Branch (674:14): [True: 2, False: 2]
  |  Branch (674:28): [True: 2, False: 0]
  ------------------
  675|       |
  676|      2|    sk_OSSL_DECODER_pop_free(skdecoders, OSSL_DECODER_free);
  677|      2|    return 1;
  678|      2|}
OSSL_DECODER_CTX_get_num_decoders:
  681|  63.9k|{
  682|  63.9k|    if (ctx == NULL || ctx->decoder_insts == NULL)
  ------------------
  |  Branch (682:9): [True: 0, False: 63.9k]
  |  Branch (682:24): [True: 0, False: 63.9k]
  ------------------
  683|      0|        return 0;
  684|  63.9k|    return sk_OSSL_DECODER_INSTANCE_num(ctx->decoder_insts);
  685|  63.9k|}
OSSL_DECODER_CTX_set_construct:
  689|  31.9k|{
  690|  31.9k|    if (!ossl_assert(ctx != NULL)) {
  ------------------
  |  |   52|  31.9k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  31.9k|    __FILE__, __LINE__)
  ------------------
  |  Branch (690:9): [True: 0, False: 31.9k]
  ------------------
  691|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  692|      0|        return 0;
  693|      0|    }
  694|  31.9k|    ctx->construct = construct;
  695|  31.9k|    return 1;
  696|  31.9k|}
OSSL_DECODER_CTX_set_construct_data:
  700|  31.9k|{
  701|  31.9k|    if (!ossl_assert(ctx != NULL)) {
  ------------------
  |  |   52|  31.9k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  31.9k|    __FILE__, __LINE__)
  ------------------
  |  Branch (701:9): [True: 0, False: 31.9k]
  ------------------
  702|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  703|      0|        return 0;
  704|      0|    }
  705|  31.9k|    ctx->construct_data = construct_data;
  706|  31.9k|    return 1;
  707|  31.9k|}
OSSL_DECODER_CTX_set_cleanup:
  711|  31.9k|{
  712|  31.9k|    if (!ossl_assert(ctx != NULL)) {
  ------------------
  |  |   52|  31.9k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  31.9k|    __FILE__, __LINE__)
  ------------------
  |  Branch (712:9): [True: 0, False: 31.9k]
  ------------------
  713|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  714|      0|        return 0;
  715|      0|    }
  716|  31.9k|    ctx->cleanup = cleanup;
  717|  31.9k|    return 1;
  718|  31.9k|}
OSSL_DECODER_CTX_get_construct:
  722|  31.9k|{
  723|  31.9k|    if (ctx == NULL)
  ------------------
  |  Branch (723:9): [True: 0, False: 31.9k]
  ------------------
  724|      0|        return NULL;
  725|  31.9k|    return ctx->construct;
  726|  31.9k|}
OSSL_DECODER_CTX_get_construct_data:
  729|  31.9k|{
  730|  31.9k|    if (ctx == NULL)
  ------------------
  |  Branch (730:9): [True: 0, False: 31.9k]
  ------------------
  731|      0|        return NULL;
  732|  31.9k|    return ctx->construct_data;
  733|  31.9k|}
OSSL_DECODER_CTX_get_cleanup:
  737|  31.9k|{
  738|  31.9k|    if (ctx == NULL)
  ------------------
  |  Branch (738:9): [True: 0, False: 31.9k]
  ------------------
  739|      0|        return NULL;
  740|  31.9k|    return ctx->cleanup;
  741|  31.9k|}
OSSL_DECODER_INSTANCE_get_decoder:
  766|   310k|{
  767|   310k|    if (decoder_inst == NULL)
  ------------------
  |  Branch (767:9): [True: 0, False: 310k]
  ------------------
  768|      0|        return NULL;
  769|   310k|    return decoder_inst->decoder;
  770|   310k|}
OSSL_DECODER_INSTANCE_get_decoder_ctx:
  774|   247k|{
  775|   247k|    if (decoder_inst == NULL)
  ------------------
  |  Branch (775:9): [True: 0, False: 247k]
  ------------------
  776|      0|        return NULL;
  777|   247k|    return decoder_inst->decoderctx;
  778|   247k|}
OSSL_DECODER_INSTANCE_get_input_type:
  782|   183k|{
  783|   183k|    if (decoder_inst == NULL)
  ------------------
  |  Branch (783:9): [True: 0, False: 183k]
  ------------------
  784|      0|        return NULL;
  785|   183k|    return decoder_inst->input_type;
  786|   183k|}
OSSL_DECODER_INSTANCE_get_input_structure:
  791|   183k|{
  792|   183k|    if (decoder_inst == NULL)
  ------------------
  |  Branch (792:9): [True: 0, False: 183k]
  ------------------
  793|      0|        return NULL;
  794|   183k|    *was_set = decoder_inst->flag_input_structure_was_set;
  795|   183k|    return decoder_inst->input_structure;
  796|   183k|}
decoder_lib.c:collect_all_decoders:
  431|    152|{
  432|    152|    STACK_OF(OSSL_DECODER) *skdecoders = arg;
  ------------------
  |  |   33|    152|#define STACK_OF(type) struct stack_st_##type
  ------------------
  433|       |
  434|    152|    if (OSSL_DECODER_up_ref(decoder)
  ------------------
  |  Branch (434:9): [True: 152, False: 0]
  ------------------
  435|    152|        && !sk_OSSL_DECODER_push(skdecoders, decoder))
  ------------------
  |  Branch (435:12): [True: 0, False: 152]
  ------------------
  436|      0|        OSSL_DECODER_free(decoder);
  437|    152|}
decoder_lib.c:decoder_sk_cmp:
  550|      3|{
  551|      3|    if ((*a)->score == (*b)->score)
  ------------------
  |  Branch (551:9): [True: 3, False: 0]
  ------------------
  552|      3|        return (*a)->order - (*b)->order;
  553|      0|    return (*a)->score - (*b)->score;
  554|      3|}
decoder_lib.c:collect_extra_decoder:
  440|  1.67k|{
  441|  1.67k|    struct collect_extra_decoder_data_st *data = arg;
  442|  1.67k|    int j;
  443|  1.67k|    const OSSL_PROVIDER *prov = OSSL_DECODER_get0_provider(decoder);
  444|  1.67k|    void *provctx = OSSL_PROVIDER_get0_provider_ctx(prov);
  445|       |
  446|  1.67k|    if (ossl_decoder_fast_is_a(decoder, data->output_type, &data->output_type_id)) {
  ------------------
  |  Branch (446:9): [True: 54, False: 1.61k]
  ------------------
  447|     54|        void *decoderctx = NULL;
  448|     54|        OSSL_DECODER_INSTANCE *di = NULL;
  449|       |
  450|     54|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|     54|    do {                           \
  |  |  222|     54|        BIO *trc_out = NULL;       \
  |  |  223|     54|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 54]
  |  |  ------------------
  ------------------
  451|      0|        {
  452|      0|            BIO_printf(trc_out,
  453|      0|                "(ctx %p) [%d] Checking out decoder %p:\n"
  454|      0|                "    %s with %s\n",
  455|      0|                (void *)data->ctx, data->type_check, (void *)decoder,
  456|      0|                OSSL_DECODER_get0_name(decoder),
  457|      0|                OSSL_DECODER_get0_properties(decoder));
  458|      0|        }
  459|     54|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|     54|    }                            \
  |  |  227|     54|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 54]
  |  |  ------------------
  ------------------
  460|       |
  461|       |        /*
  462|       |         * Check that we don't already have this decoder in our stack,
  463|       |         * starting with the previous windows but also looking at what
  464|       |         * we have added in the current window.
  465|       |         */
  466|    184|        for (j = data->w_prev_start; j < data->w_new_end; j++) {
  ------------------
  |  Branch (466:38): [True: 173, False: 11]
  ------------------
  467|    173|            OSSL_DECODER_INSTANCE *check_inst = sk_OSSL_DECODER_INSTANCE_value(data->ctx->decoder_insts, j);
  468|       |
  469|    173|            if (decoder->base.algodef == check_inst->decoder->base.algodef) {
  ------------------
  |  Branch (469:17): [True: 43, False: 130]
  ------------------
  470|       |                /* We found it, so don't do anything more */
  471|     43|                OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|     43|    do {                           \
  |  |  222|     43|        BIO *trc_out = NULL;       \
  |  |  223|     43|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 43]
  |  |  ------------------
  ------------------
  472|      0|                {
  473|      0|                    BIO_printf(trc_out,
  474|      0|                        "    REJECTED: already exists in the chain\n");
  475|      0|                }
  476|     43|                OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|     43|    }                            \
  |  |  227|     43|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 43]
  |  |  ------------------
  ------------------
  477|     43|                return;
  478|     43|            }
  479|    173|        }
  480|       |
  481|     11|        if ((decoderctx = decoder->newctx(provctx)) == NULL)
  ------------------
  |  Branch (481:13): [True: 0, False: 11]
  ------------------
  482|      0|            return;
  483|       |
  484|     11|        if (decoder->set_ctx_params != NULL
  ------------------
  |  Branch (484:13): [True: 11, False: 0]
  ------------------
  485|     11|            && data->ctx->input_structure != NULL) {
  ------------------
  |  Branch (485:16): [True: 11, False: 0]
  ------------------
  486|     11|            OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|     11|    { NULL, 0, NULL, 0, 0 }
  ------------------
                          OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|     11|    { NULL, 0, NULL, 0, 0 }
  ------------------
  487|     11|            const char *str = data->ctx->input_structure;
  488|       |
  489|     11|            params[0] = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_STRUCTURE,
  ------------------
  |  |  357|     11|# define OSSL_OBJECT_PARAM_DATA_STRUCTURE "data-structure"
  ------------------
  490|     11|                (char *)str, 0);
  491|     11|            if (!decoder->set_ctx_params(decoderctx, params)) {
  ------------------
  |  Branch (491:17): [True: 0, False: 11]
  ------------------
  492|      0|                decoder->freectx(decoderctx);
  493|      0|                return;
  494|      0|            }
  495|     11|        }
  496|       |
  497|     11|        if ((di = ossl_decoder_instance_new(decoder, decoderctx)) == NULL) {
  ------------------
  |  Branch (497:13): [True: 0, False: 11]
  ------------------
  498|      0|            decoder->freectx(decoderctx);
  499|      0|            return;
  500|      0|        }
  501|       |
  502|     11|        switch (data->type_check) {
  ------------------
  |  Branch (502:17): [True: 11, False: 0]
  ------------------
  503|      9|        case IS_SAME:
  ------------------
  |  Branch (503:9): [True: 9, False: 2]
  ------------------
  504|       |            /* If it differs, this is not a decoder to add for now. */
  505|      9|            if (!ossl_decoder_fast_is_a(decoder,
  ------------------
  |  Branch (505:17): [True: 5, False: 4]
  ------------------
  506|      9|                    OSSL_DECODER_INSTANCE_get_input_type(di),
  507|      9|                    &di->input_type_id)) {
  508|      5|                ossl_decoder_instance_free(di);
  509|      5|                OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      5|    do {                           \
  |  |  222|      5|        BIO *trc_out = NULL;       \
  |  |  223|      5|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 5]
  |  |  ------------------
  ------------------
  510|      0|                {
  511|      0|                    BIO_printf(trc_out,
  512|      0|                        "    REJECTED: input type doesn't match output type\n");
  513|      0|                }
  514|      5|                OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      5|    }                            \
  |  |  227|      5|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 5]
  |  |  ------------------
  ------------------
  515|      5|                return;
  516|      5|            }
  517|      4|            break;
  518|      4|        case IS_DIFFERENT:
  ------------------
  |  Branch (518:9): [True: 2, False: 9]
  ------------------
  519|       |            /* If it's the same, this is not a decoder to add for now. */
  520|      2|            if (ossl_decoder_fast_is_a(decoder,
  ------------------
  |  Branch (520:17): [True: 0, False: 2]
  ------------------
  521|      2|                    OSSL_DECODER_INSTANCE_get_input_type(di),
  522|      2|                    &di->input_type_id)) {
  523|      0|                ossl_decoder_instance_free(di);
  524|      0|                OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      0|    do {                           \
  |  |  222|      0|        BIO *trc_out = NULL;       \
  |  |  223|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  525|      0|                {
  526|      0|                    BIO_printf(trc_out,
  527|      0|                        "    REJECTED: input type matches output type\n");
  528|      0|                }
  529|      0|                OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      0|    }                            \
  |  |  227|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  530|      0|                return;
  531|      0|            }
  532|      2|            break;
  533|     11|        }
  534|       |
  535|       |        /*
  536|       |         * Apart from keeping w_new_end up to date, We don't care about
  537|       |         * errors here.  If it doesn't collect, then it doesn't...
  538|       |         */
  539|      6|        if (!ossl_decoder_ctx_add_decoder_inst(data->ctx, di)) {
  ------------------
  |  Branch (539:13): [True: 0, False: 6]
  ------------------
  540|      0|            ossl_decoder_instance_free(di);
  541|      0|            return;
  542|      0|        }
  543|       |
  544|      6|        data->w_new_end++;
  545|      6|    }
  546|  1.67k|}
decoder_lib.c:decoder_process:
  799|  95.9k|{
  800|  95.9k|    struct decoder_process_data_st *data = arg;
  801|  95.9k|    OSSL_DECODER_CTX *ctx = data->ctx;
  802|  95.9k|    OSSL_DECODER_INSTANCE *decoder_inst = NULL;
  803|  95.9k|    OSSL_DECODER *decoder = NULL;
  804|  95.9k|    OSSL_CORE_BIO *cbio = NULL;
  805|  95.9k|    BIO *bio = data->bio;
  806|  95.9k|    long loc;
  807|  95.9k|    int i;
  808|  95.9k|    int ok = 0;
  809|       |    /* For recursions */
  810|  95.9k|    struct decoder_process_data_st new_data;
  811|  95.9k|    const char *data_type = NULL;
  812|  95.9k|    const char *data_structure = NULL;
  813|       |    /* Saved to restore on return, mutated in PEM->DER transition. */
  814|  95.9k|    const char *start_input_type = ctx->start_input_type;
  815|       |
  816|       |    /*
  817|       |     * This is an indicator up the call stack that something was indeed
  818|       |     * decoded, leading to a recursive call of this function.
  819|       |     */
  820|  95.9k|    data->flag_next_level_called = 1;
  821|       |
  822|  95.9k|    memset(&new_data, 0, sizeof(new_data));
  823|  95.9k|    new_data.ctx = data->ctx;
  824|  95.9k|    new_data.recursion = data->recursion + 1;
  825|       |
  826|  95.9k|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  827|  95.9k|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  828|  95.9k|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  829|  95.9k|        : LEVEL_STR "...")
  830|       |
  831|  95.9k|    if (params == NULL) {
  ------------------
  |  Branch (831:9): [True: 31.9k, False: 63.9k]
  ------------------
  832|       |        /* First iteration, where we prepare for what is to come */
  833|       |
  834|  31.9k|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  31.9k|    do {                           \
  |  |  222|  31.9k|        BIO *trc_out = NULL;       \
  |  |  223|  31.9k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
  835|      0|        {
  836|      0|            BIO_printf(trc_out,
  837|      0|                "(ctx %p) starting to walk the decoder chain\n",
  838|      0|                (void *)new_data.ctx);
  839|      0|        }
  840|  31.9k|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  31.9k|    }                            \
  |  |  227|  31.9k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
  841|       |
  842|  31.9k|        data->current_decoder_inst_index = OSSL_DECODER_CTX_get_num_decoders(ctx);
  843|       |
  844|  31.9k|        bio = data->bio;
  845|  63.9k|    } else {
  846|  63.9k|        const OSSL_PARAM *p;
  847|  63.9k|        const char *trace_data_structure;
  848|       |
  849|  63.9k|        decoder_inst = sk_OSSL_DECODER_INSTANCE_value(ctx->decoder_insts,
  850|  63.9k|            data->current_decoder_inst_index);
  851|  63.9k|        decoder = OSSL_DECODER_INSTANCE_get_decoder(decoder_inst);
  852|       |
  853|  63.9k|        data->flag_construct_called = 0;
  854|  63.9k|        if (ctx->construct != NULL) {
  ------------------
  |  Branch (854:13): [True: 63.9k, False: 0]
  ------------------
  855|  63.9k|            int rv;
  856|       |
  857|  63.9k|            OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  63.9k|    do {                           \
  |  |  222|  63.9k|        BIO *trc_out = NULL;       \
  |  |  223|  63.9k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 63.9k]
  |  |  ------------------
  ------------------
  858|      0|            {
  859|      0|                BIO_printf(trc_out,
  860|      0|                    "(ctx %p) %s Running constructor\n",
  861|      0|                    (void *)new_data.ctx, LEVEL);
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
  862|      0|            }
  863|  63.9k|            OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  63.9k|    }                            \
  |  |  227|  63.9k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 63.9k]
  |  |  ------------------
  ------------------
  864|       |
  865|  63.9k|            rv = ctx->construct(decoder_inst, params, ctx->construct_data);
  866|       |
  867|  63.9k|            OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  63.9k|    do {                           \
  |  |  222|  63.9k|        BIO *trc_out = NULL;       \
  |  |  223|  63.9k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 63.9k]
  |  |  ------------------
  ------------------
  868|      0|            {
  869|      0|                BIO_printf(trc_out,
  870|      0|                    "(ctx %p) %s Running constructor => %d\n",
  871|      0|                    (void *)new_data.ctx, LEVEL, rv);
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
  872|      0|            }
  873|  63.9k|            OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  63.9k|    }                            \
  |  |  227|  63.9k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 63.9k]
  |  |  ------------------
  ------------------
  874|       |
  875|  63.9k|            ok = (rv > 0);
  876|  63.9k|            if (ok) {
  ------------------
  |  Branch (876:17): [True: 31.9k, False: 31.9k]
  ------------------
  877|  31.9k|                data->flag_construct_called = 1;
  878|  31.9k|                goto end;
  879|  31.9k|            }
  880|  63.9k|        }
  881|       |
  882|       |        /* The constructor didn't return success */
  883|       |
  884|       |        /*
  885|       |         * so we try to use the object we got and feed it to any next
  886|       |         * decoder that will take it.  Object references are not
  887|       |         * allowed for this.
  888|       |         * If this data isn't present, decoding has failed.
  889|       |         */
  890|       |
  891|  31.9k|        p = OSSL_PARAM_locate_const(params, OSSL_OBJECT_PARAM_DATA);
  ------------------
  |  |  356|  31.9k|# define OSSL_OBJECT_PARAM_DATA "data"
  ------------------
  892|  31.9k|        if (p == NULL || p->data_type != OSSL_PARAM_OCTET_STRING)
  ------------------
  |  |  123|  31.9k|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  |  Branch (892:13): [True: 0, False: 31.9k]
  |  Branch (892:26): [True: 0, False: 31.9k]
  ------------------
  893|      0|            goto end;
  894|  31.9k|        new_data.bio = BIO_new_mem_buf(p->data, (int)p->data_size);
  895|  31.9k|        if (new_data.bio == NULL)
  ------------------
  |  Branch (895:13): [True: 0, False: 31.9k]
  ------------------
  896|      0|            goto end;
  897|  31.9k|        bio = new_data.bio;
  898|       |
  899|       |        /* Get the data type if there is one */
  900|  31.9k|        p = OSSL_PARAM_locate_const(params, OSSL_OBJECT_PARAM_DATA_TYPE);
  ------------------
  |  |  358|  31.9k|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
  901|  31.9k|        if (p != NULL && !OSSL_PARAM_get_utf8_string_ptr(p, &data_type))
  ------------------
  |  Branch (901:13): [True: 31.9k, False: 0]
  |  Branch (901:26): [True: 0, False: 31.9k]
  ------------------
  902|      0|            goto end;
  903|       |
  904|       |        /* Get the data structure if there is one */
  905|  31.9k|        p = OSSL_PARAM_locate_const(params, OSSL_OBJECT_PARAM_DATA_STRUCTURE);
  ------------------
  |  |  357|  31.9k|# define OSSL_OBJECT_PARAM_DATA_STRUCTURE "data-structure"
  ------------------
  906|  31.9k|        if (p != NULL && !OSSL_PARAM_get_utf8_string_ptr(p, &data_structure))
  ------------------
  |  Branch (906:13): [True: 31.9k, False: 0]
  |  Branch (906:26): [True: 0, False: 31.9k]
  ------------------
  907|      0|            goto end;
  908|       |
  909|       |        /* Get the new input type if there is one */
  910|  31.9k|        p = OSSL_PARAM_locate_const(params, OSSL_OBJECT_PARAM_INPUT_TYPE);
  ------------------
  |  |  360|  31.9k|# define OSSL_OBJECT_PARAM_INPUT_TYPE "input-type"
  ------------------
  911|  31.9k|        if (p != NULL) {
  ------------------
  |  Branch (911:13): [True: 31.9k, False: 0]
  ------------------
  912|  31.9k|            if (!OSSL_PARAM_get_utf8_string_ptr(p, &ctx->start_input_type))
  ------------------
  |  Branch (912:17): [True: 0, False: 31.9k]
  ------------------
  913|      0|                goto end;
  914|       |            /*
  915|       |             * When switching PKCS8 from PEM to DER we decrypt the data if needed
  916|       |             * and then determine the algorithm OID.  Likewise, with SPKI, only
  917|       |             * this time sans decryption.
  918|       |             */
  919|  31.9k|            if (ctx->input_structure != NULL
  ------------------
  |  Branch (919:17): [True: 31.9k, False: 0]
  ------------------
  920|  31.9k|                && (OPENSSL_strcasecmp(ctx->input_structure, "SubjectPublicKeyInfo") == 0
  ------------------
  |  Branch (920:21): [True: 31.9k, False: 0]
  ------------------
  921|      0|                    || OPENSSL_strcasecmp(data_structure, "PrivateKeyInfo") == 0
  ------------------
  |  Branch (921:24): [True: 0, False: 0]
  ------------------
  922|      0|                    || OPENSSL_strcasecmp(ctx->input_structure, "PrivateKeyInfo") == 0))
  ------------------
  |  Branch (922:24): [True: 0, False: 0]
  ------------------
  923|  31.9k|                data->flag_input_structure_checked = 1;
  924|  31.9k|        }
  925|       |
  926|       |        /*
  927|       |         * If the data structure is "type-specific" and the data type is
  928|       |         * given, we drop the data structure.  The reasoning is that the
  929|       |         * data type is already enough to find the applicable next decoder,
  930|       |         * so an additional "type-specific" data structure is extraneous.
  931|       |         *
  932|       |         * Furthermore, if the OSSL_DECODER caller asked for a type specific
  933|       |         * structure under another name, such as "DH", we get a mismatch
  934|       |         * if the data structure we just received is "type-specific".
  935|       |         * There's only so much you can do without infusing this code with
  936|       |         * too special knowledge.
  937|       |         */
  938|  31.9k|        trace_data_structure = data_structure;
  939|  31.9k|        if (data_type != NULL && data_structure != NULL
  ------------------
  |  Branch (939:13): [True: 31.9k, False: 0]
  |  Branch (939:34): [True: 31.9k, False: 0]
  ------------------
  940|  31.9k|            && OPENSSL_strcasecmp(data_structure, "type-specific") == 0)
  ------------------
  |  Branch (940:16): [True: 0, False: 31.9k]
  ------------------
  941|      0|            data_structure = NULL;
  942|       |
  943|  31.9k|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  31.9k|    do {                           \
  |  |  222|  31.9k|        BIO *trc_out = NULL;       \
  |  |  223|  31.9k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
  944|      0|        {
  945|      0|            BIO_printf(trc_out,
  946|      0|                "(ctx %p) %s incoming from previous decoder (%p):\n"
  947|      0|                "    data type: %s, data structure: %s%s\n",
  948|      0|                (void *)new_data.ctx, LEVEL, (void *)decoder,
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
  949|      0|                data_type, trace_data_structure,
  950|      0|                (trace_data_structure == data_structure
  ------------------
  |  Branch (950:18): [True: 0, False: 0]
  ------------------
  951|      0|                        ? ""
  952|      0|                        : " (dropped)"));
  953|      0|        }
  954|  31.9k|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  31.9k|    }                            \
  |  |  227|  31.9k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
  955|  31.9k|    }
  956|       |
  957|       |    /*
  958|       |     * If we have no more decoders to look through at this point,
  959|       |     * we failed
  960|       |     */
  961|  63.9k|    if (data->current_decoder_inst_index == 0)
  ------------------
  |  Branch (961:9): [True: 0, False: 63.9k]
  ------------------
  962|      0|        goto end;
  963|       |
  964|  63.9k|    if ((loc = BIO_tell(bio)) < 0) {
  ------------------
  |  |  573|  63.9k|#define BIO_tell(b) (int)BIO_ctrl(b, BIO_C_FILE_TELL, 0, NULL)
  |  |  ------------------
  |  |  |  |  468|  63.9k|#define BIO_C_FILE_TELL 133
  |  |  ------------------
  ------------------
  |  Branch (964:9): [True: 0, False: 63.9k]
  ------------------
  965|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_BIO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  966|      0|        goto end;
  967|      0|    }
  968|       |
  969|  63.9k|    if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) {
  ------------------
  |  Branch (969:9): [True: 0, False: 63.9k]
  ------------------
  970|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_BIO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  971|      0|        goto end;
  972|      0|    }
  973|       |
  974|   183k|    for (i = data->current_decoder_inst_index; i-- > 0;) {
  ------------------
  |  Branch (974:48): [True: 183k, False: 0]
  ------------------
  975|   183k|        OSSL_DECODER_INSTANCE *new_decoder_inst = sk_OSSL_DECODER_INSTANCE_value(ctx->decoder_insts, i);
  976|   183k|        OSSL_DECODER *new_decoder = OSSL_DECODER_INSTANCE_get_decoder(new_decoder_inst);
  977|   183k|        const char *new_decoder_name = NULL;
  978|   183k|        void *new_decoderctx = OSSL_DECODER_INSTANCE_get_decoder_ctx(new_decoder_inst);
  979|   183k|        const char *new_input_type = OSSL_DECODER_INSTANCE_get_input_type(new_decoder_inst);
  980|   183k|        int n_i_s_was_set = 0; /* We don't care here */
  981|   183k|        const char *new_input_structure = OSSL_DECODER_INSTANCE_get_input_structure(new_decoder_inst,
  982|   183k|            &n_i_s_was_set);
  983|       |
  984|   183k|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|   183k|    do {                           \
  |  |  222|   183k|        BIO *trc_out = NULL;       \
  |  |  223|   183k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 183k]
  |  |  ------------------
  ------------------
  985|      0|        {
  986|      0|            new_decoder_name = OSSL_DECODER_get0_name(new_decoder);
  987|      0|            BIO_printf(trc_out,
  988|      0|                "(ctx %p) %s [%u] Considering decoder instance %p (decoder %p):\n"
  989|      0|                "    %s with %s\n",
  990|      0|                (void *)new_data.ctx, LEVEL, (unsigned int)i,
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
  991|      0|                (void *)new_decoder_inst, (void *)new_decoder,
  992|      0|                new_decoder_name,
  993|      0|                OSSL_DECODER_get0_properties(new_decoder));
  994|      0|        }
  995|   183k|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|   183k|    }                            \
  |  |  227|   183k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 183k]
  |  |  ------------------
  ------------------
  996|       |
  997|       |        /*
  998|       |         * If |decoder| is NULL, it means we've just started, and the caller
  999|       |         * may have specified what it expects the initial input to be.  If
 1000|       |         * that's the case, we do this extra check.
 1001|       |         */
 1002|   183k|        if (decoder == NULL && ctx->start_input_type != NULL
  ------------------
  |  Branch (1002:13): [True: 95.9k, False: 87.1k]
  |  Branch (1002:32): [True: 95.9k, False: 0]
  ------------------
 1003|  95.9k|            && OPENSSL_strcasecmp(ctx->start_input_type, new_input_type) != 0) {
  ------------------
  |  Branch (1003:16): [True: 31.9k, False: 63.9k]
  ------------------
 1004|  31.9k|            OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  31.9k|    do {                           \
  |  |  222|  31.9k|        BIO *trc_out = NULL;       \
  |  |  223|  31.9k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
 1005|      0|            {
 1006|      0|                BIO_printf(trc_out,
 1007|      0|                    "(ctx %p) %s [%u] the start input type '%s' doesn't match the input type of the considered decoder, skipping...\n",
 1008|      0|                    (void *)new_data.ctx, LEVEL, (unsigned int)i,
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
 1009|      0|                    ctx->start_input_type);
 1010|      0|            }
 1011|  31.9k|            OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  31.9k|    }                            \
  |  |  227|  31.9k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
 1012|  31.9k|            continue;
 1013|  31.9k|        }
 1014|       |
 1015|       |        /*
 1016|       |         * If we have a previous decoder, we check that the input type
 1017|       |         * of the next to be used matches the type of this previous one.
 1018|       |         * |new_input_type| holds the value of the "input-type" parameter
 1019|       |         * for the decoder we're currently considering.
 1020|       |         */
 1021|   151k|        if (decoder != NULL && !ossl_decoder_fast_is_a(decoder, new_input_type, &new_decoder_inst->input_type_id)) {
  ------------------
  |  Branch (1021:13): [True: 87.1k, False: 63.9k]
  |  Branch (1021:32): [True: 0, False: 87.1k]
  ------------------
 1022|      0|            OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      0|    do {                           \
  |  |  222|      0|        BIO *trc_out = NULL;       \
  |  |  223|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1023|      0|            {
 1024|      0|                BIO_printf(trc_out,
 1025|      0|                    "(ctx %p) %s [%u] the input type doesn't match the name of the previous decoder (%p), skipping...\n",
 1026|      0|                    (void *)new_data.ctx, LEVEL, (unsigned int)i,
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
 1027|      0|                    (void *)decoder);
 1028|      0|            }
 1029|      0|            OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      0|    }                            \
  |  |  227|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1030|      0|            continue;
 1031|      0|        }
 1032|       |
 1033|       |        /*
 1034|       |         * If the previous decoder gave us a data type, we check to see
 1035|       |         * if that matches the decoder we're currently considering.
 1036|       |         */
 1037|   151k|        if (data_type != NULL && !OSSL_DECODER_is_a(new_decoder, data_type)) {
  ------------------
  |  Branch (1037:13): [True: 87.1k, False: 63.9k]
  |  Branch (1037:34): [True: 8.76k, False: 78.4k]
  ------------------
 1038|  8.76k|            OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  8.76k|    do {                           \
  |  |  222|  8.76k|        BIO *trc_out = NULL;       \
  |  |  223|  8.76k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 8.76k]
  |  |  ------------------
  ------------------
 1039|      0|            {
 1040|      0|                BIO_printf(trc_out,
 1041|      0|                    "(ctx %p) %s [%u] the previous decoder's data type doesn't match the name of the considered decoder, skipping...\n",
 1042|      0|                    (void *)new_data.ctx, LEVEL, (unsigned int)i);
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
 1043|      0|            }
 1044|  8.76k|            OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  8.76k|    }                            \
  |  |  227|  8.76k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 8.76k]
  |  |  ------------------
  ------------------
 1045|  8.76k|            continue;
 1046|  8.76k|        }
 1047|       |
 1048|       |        /*
 1049|       |         * If the previous decoder gave us a data structure name, we check
 1050|       |         * to see that it matches the input data structure of the decoder
 1051|       |         * we're currently considering.
 1052|       |         */
 1053|   142k|        if (data_structure != NULL
  ------------------
  |  Branch (1053:13): [True: 78.4k, False: 63.9k]
  ------------------
 1054|  78.4k|            && (new_input_structure == NULL
  ------------------
  |  Branch (1054:17): [True: 0, False: 78.4k]
  ------------------
 1055|  78.4k|                || OPENSSL_strcasecmp(data_structure,
  ------------------
  |  Branch (1055:20): [True: 46.4k, False: 31.9k]
  ------------------
 1056|  78.4k|                       new_input_structure)
 1057|  78.4k|                    != 0)) {
 1058|  46.4k|            OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  46.4k|    do {                           \
  |  |  222|  46.4k|        BIO *trc_out = NULL;       \
  |  |  223|  46.4k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 46.4k]
  |  |  ------------------
  ------------------
 1059|      0|            {
 1060|      0|                BIO_printf(trc_out,
 1061|      0|                    "(ctx %p) %s [%u] the previous decoder's data structure doesn't match the input structure of the considered decoder, skipping...\n",
 1062|      0|                    (void *)new_data.ctx, LEVEL, (unsigned int)i);
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
 1063|      0|            }
 1064|  46.4k|            OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  46.4k|    }                            \
  |  |  227|  46.4k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 46.4k]
  |  |  ------------------
  ------------------
 1065|  46.4k|            continue;
 1066|  46.4k|        }
 1067|       |
 1068|       |        /*
 1069|       |         * If the decoder we're currently considering specifies a structure,
 1070|       |         * and this check hasn't already been done earlier in this chain of
 1071|       |         * decoder_process() calls, check that it matches the user provided
 1072|       |         * input structure, if one is given.
 1073|       |         */
 1074|  95.9k|        if (!data->flag_input_structure_checked
  ------------------
  |  Branch (1074:13): [True: 31.9k, False: 63.9k]
  ------------------
 1075|  31.9k|            && ctx->input_structure != NULL
  ------------------
  |  Branch (1075:16): [True: 31.9k, False: 0]
  ------------------
 1076|  31.9k|            && new_input_structure != NULL) {
  ------------------
  |  Branch (1076:16): [True: 31.9k, False: 0]
  ------------------
 1077|  31.9k|            data->flag_input_structure_checked = 1;
 1078|  31.9k|            if (OPENSSL_strcasecmp(new_input_structure,
  ------------------
  |  Branch (1078:17): [True: 31.9k, False: 0]
  ------------------
 1079|  31.9k|                    ctx->input_structure)
 1080|  31.9k|                != 0) {
 1081|  31.9k|                OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  31.9k|    do {                           \
  |  |  222|  31.9k|        BIO *trc_out = NULL;       \
  |  |  223|  31.9k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
 1082|      0|                {
 1083|      0|                    BIO_printf(trc_out,
 1084|      0|                        "(ctx %p) %s [%u] the previous decoder's data structure doesn't match the input structure given by the user, skipping...\n",
 1085|      0|                        (void *)new_data.ctx, LEVEL, (unsigned int)i);
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
 1086|      0|                }
 1087|  31.9k|                OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  31.9k|    }                            \
  |  |  227|  31.9k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
 1088|  31.9k|                continue;
 1089|  31.9k|            }
 1090|  31.9k|        }
 1091|       |
 1092|       |        /*
 1093|       |         * Checking the return value of BIO_reset() or BIO_seek() is unsafe.
 1094|       |         * Furthermore, BIO_reset() is unsafe to use if the source BIO happens
 1095|       |         * to be a BIO_s_mem(), because the earlier BIO_tell() gives us zero
 1096|       |         * no matter where we are in the underlying buffer we're reading from.
 1097|       |         *
 1098|       |         * So, we simply do a BIO_seek(), and use BIO_tell() that we're back
 1099|       |         * at the same position.  This is a best effort attempt, but BIO_seek()
 1100|       |         * and BIO_tell() should come as a pair...
 1101|       |         */
 1102|  63.9k|        (void)BIO_seek(bio, loc);
  ------------------
  |  |  572|  63.9k|#define BIO_seek(b, ofs) (int)BIO_ctrl(b, BIO_C_FILE_SEEK, ofs, NULL)
  |  |  ------------------
  |  |  |  |  462|  63.9k|#define BIO_C_FILE_SEEK 128
  |  |  ------------------
  ------------------
 1103|  63.9k|        if (BIO_tell(bio) != loc)
  ------------------
  |  |  573|  63.9k|#define BIO_tell(b) (int)BIO_ctrl(b, BIO_C_FILE_TELL, 0, NULL)
  |  |  ------------------
  |  |  |  |  468|  63.9k|#define BIO_C_FILE_TELL 133
  |  |  ------------------
  ------------------
  |  Branch (1103:13): [True: 0, False: 63.9k]
  ------------------
 1104|      0|            goto end;
 1105|       |
 1106|       |        /* Recurse */
 1107|  63.9k|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  63.9k|    do {                           \
  |  |  222|  63.9k|        BIO *trc_out = NULL;       \
  |  |  223|  63.9k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 63.9k]
  |  |  ------------------
  ------------------
 1108|      0|        {
 1109|      0|            BIO_printf(trc_out,
 1110|      0|                "(ctx %p) %s [%u] Running decoder instance %s (%p)\n",
 1111|      0|                (void *)new_data.ctx, LEVEL, (unsigned int)i,
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
 1112|      0|                new_decoder_name, (void *)new_decoder_inst);
 1113|      0|        }
 1114|  63.9k|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  63.9k|    }                            \
  |  |  227|  63.9k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 63.9k]
  |  |  ------------------
  ------------------
 1115|       |
 1116|       |        /*
 1117|       |         * We only care about errors reported from decoder implementations
 1118|       |         * if it returns false (i.e. there was a fatal error).
 1119|       |         */
 1120|  63.9k|        ERR_set_mark();
 1121|       |
 1122|  63.9k|        new_data.current_decoder_inst_index = i;
 1123|  63.9k|        new_data.flag_input_structure_checked
 1124|  63.9k|            = data->flag_input_structure_checked;
 1125|  63.9k|        ok = new_decoder->decode(new_decoderctx, cbio,
 1126|  63.9k|            new_data.ctx->selection,
 1127|  63.9k|            decoder_process, &new_data,
 1128|  63.9k|            ossl_pw_passphrase_callback_dec,
 1129|  63.9k|            &new_data.ctx->pwdata);
 1130|       |
 1131|  63.9k|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|  63.9k|    do {                           \
  |  |  222|  63.9k|        BIO *trc_out = NULL;       \
  |  |  223|  63.9k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 63.9k]
  |  |  ------------------
  ------------------
 1132|      0|        {
 1133|      0|            BIO_printf(trc_out,
 1134|      0|                "(ctx %p) %s [%u] Running decoder instance %s (%p) => %d"
 1135|      0|                " (recursed further: %s, construct called: %s)\n",
 1136|      0|                (void *)new_data.ctx, LEVEL, (unsigned int)i,
  ------------------
  |  |  827|      0|#define LEVEL ((size_t)new_data.recursion < sizeof(LEVEL_STR)    \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  |  Branch (827:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  828|      0|        ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |                       ? &LEVEL_STR[sizeof(LEVEL_STR) - new_data.recursion - 1] \
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  |  |  829|      0|        : LEVEL_STR "...")
  |  |  ------------------
  |  |  |  |  826|      0|#define LEVEL_STR ">>>>>>>>>>>>>>>>"
  |  |  ------------------
  ------------------
 1137|      0|                new_decoder_name, (void *)new_decoder_inst, ok,
 1138|      0|                new_data.flag_next_level_called ? "yes" : "no",
  ------------------
  |  Branch (1138:17): [True: 0, False: 0]
  ------------------
 1139|      0|                new_data.flag_construct_called ? "yes" : "no");
  ------------------
  |  Branch (1139:17): [True: 0, False: 0]
  ------------------
 1140|      0|        }
 1141|  63.9k|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|  63.9k|    }                            \
  |  |  227|  63.9k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 63.9k]
  |  |  ------------------
  ------------------
 1142|       |
 1143|  63.9k|        data->flag_construct_called = new_data.flag_construct_called;
 1144|       |
 1145|       |        /* Break on error or if we tried to construct an object already */
 1146|  63.9k|        if (!ok || data->flag_construct_called) {
  ------------------
  |  Branch (1146:13): [True: 0, False: 63.9k]
  |  Branch (1146:20): [True: 63.9k, False: 0]
  ------------------
 1147|  63.9k|            ERR_clear_last_mark();
 1148|  63.9k|            break;
 1149|  63.9k|        }
 1150|      0|        ERR_pop_to_mark();
 1151|       |
 1152|       |        /*
 1153|       |         * Break if the decoder implementation that we called recursed, since
 1154|       |         * that indicates that it successfully decoded something.
 1155|       |         */
 1156|      0|        if (new_data.flag_next_level_called)
  ------------------
  |  Branch (1156:13): [True: 0, False: 0]
  ------------------
 1157|      0|            break;
 1158|      0|    }
 1159|       |
 1160|  95.9k|end:
 1161|  95.9k|    ossl_core_bio_free(cbio);
 1162|  95.9k|    BIO_free(new_data.bio);
 1163|  95.9k|    ctx->start_input_type = start_input_type;
 1164|  95.9k|    return ok;
 1165|  63.9k|}

OSSL_DECODER_up_ref:
   53|   183k|{
   54|   183k|    int ref = 0;
   55|       |
   56|   183k|    CRYPTO_UP_REF(&decoder->base.refcnt, &ref);
   57|   183k|    return 1;
   58|   183k|}
OSSL_DECODER_free:
   61|   183k|{
   62|   183k|    int ref = 0;
   63|       |
   64|   183k|    if (decoder == NULL)
  ------------------
  |  Branch (64:9): [True: 0, False: 183k]
  ------------------
   65|      0|        return;
   66|       |
   67|   183k|    CRYPTO_DOWN_REF(&decoder->base.refcnt, &ref);
   68|   183k|    if (ref > 0)
  ------------------
  |  Branch (68:9): [True: 183k, False: 0]
  ------------------
   69|   183k|        return;
   70|      0|    OPENSSL_free(decoder->base.name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   71|      0|    ossl_property_free(decoder->base.parsed_propdef);
   72|      0|    ossl_provider_free(decoder->base.prov);
   73|      0|    CRYPTO_FREE_REF(&decoder->base.refcnt);
   74|      0|    OPENSSL_free(decoder);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   75|      0|}
ossl_decoder_from_algorithm:
  211|     76|{
  212|     76|    OSSL_DECODER *decoder = NULL;
  213|     76|    const OSSL_DISPATCH *fns = algodef->implementation;
  214|     76|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov);
  215|       |
  216|     76|    if ((decoder = ossl_decoder_new()) == NULL)
  ------------------
  |  Branch (216:9): [True: 0, False: 76]
  ------------------
  217|      0|        return NULL;
  218|     76|    decoder->base.id = id;
  219|     76|    if ((decoder->base.name = ossl_algorithm_get1_first_name(algodef)) == NULL) {
  ------------------
  |  Branch (219:9): [True: 0, False: 76]
  ------------------
  220|      0|        OSSL_DECODER_free(decoder);
  221|      0|        return NULL;
  222|      0|    }
  223|     76|    decoder->base.algodef = algodef;
  224|     76|    if ((decoder->base.parsed_propdef
  ------------------
  |  Branch (224:9): [True: 0, False: 76]
  ------------------
  225|     76|            = ossl_parse_property(libctx, algodef->property_definition))
  226|     76|        == NULL) {
  227|      0|        OSSL_DECODER_free(decoder);
  228|      0|        return NULL;
  229|      0|    }
  230|       |
  231|    598|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (231:12): [True: 522, False: 76]
  ------------------
  232|    522|        switch (fns->function_id) {
  ------------------
  |  Branch (232:17): [True: 522, False: 0]
  ------------------
  233|     76|        case OSSL_FUNC_DECODER_NEWCTX:
  ------------------
  |  |  984|     76|#define OSSL_FUNC_DECODER_NEWCTX 1
  ------------------
  |  Branch (233:9): [True: 76, False: 446]
  ------------------
  234|     76|            if (decoder->newctx == NULL)
  ------------------
  |  Branch (234:17): [True: 76, False: 0]
  ------------------
  235|     76|                decoder->newctx = OSSL_FUNC_decoder_newctx(fns);
  236|     76|            break;
  237|     76|        case OSSL_FUNC_DECODER_FREECTX:
  ------------------
  |  |  985|     76|#define OSSL_FUNC_DECODER_FREECTX 2
  ------------------
  |  Branch (237:9): [True: 76, False: 446]
  ------------------
  238|     76|            if (decoder->freectx == NULL)
  ------------------
  |  Branch (238:17): [True: 76, False: 0]
  ------------------
  239|     76|                decoder->freectx = OSSL_FUNC_decoder_freectx(fns);
  240|     76|            break;
  241|      0|        case OSSL_FUNC_DECODER_GET_PARAMS:
  ------------------
  |  |  986|      0|#define OSSL_FUNC_DECODER_GET_PARAMS 3
  ------------------
  |  Branch (241:9): [True: 0, False: 522]
  ------------------
  242|      0|            if (decoder->get_params == NULL)
  ------------------
  |  Branch (242:17): [True: 0, False: 0]
  ------------------
  243|      0|                decoder->get_params = OSSL_FUNC_decoder_get_params(fns);
  244|      0|            break;
  245|      0|        case OSSL_FUNC_DECODER_GETTABLE_PARAMS:
  ------------------
  |  |  987|      0|#define OSSL_FUNC_DECODER_GETTABLE_PARAMS 4
  ------------------
  |  Branch (245:9): [True: 0, False: 522]
  ------------------
  246|      0|            if (decoder->gettable_params == NULL)
  ------------------
  |  Branch (246:17): [True: 0, False: 0]
  ------------------
  247|      0|                decoder->gettable_params = OSSL_FUNC_decoder_gettable_params(fns);
  248|      0|            break;
  249|     74|        case OSSL_FUNC_DECODER_SET_CTX_PARAMS:
  ------------------
  |  |  988|     74|#define OSSL_FUNC_DECODER_SET_CTX_PARAMS 5
  ------------------
  |  Branch (249:9): [True: 74, False: 448]
  ------------------
  250|     74|            if (decoder->set_ctx_params == NULL)
  ------------------
  |  Branch (250:17): [True: 74, False: 0]
  ------------------
  251|     74|                decoder->set_ctx_params = OSSL_FUNC_decoder_set_ctx_params(fns);
  252|     74|            break;
  253|     74|        case OSSL_FUNC_DECODER_SETTABLE_CTX_PARAMS:
  ------------------
  |  |  989|     74|#define OSSL_FUNC_DECODER_SETTABLE_CTX_PARAMS 6
  ------------------
  |  Branch (253:9): [True: 74, False: 448]
  ------------------
  254|     74|            if (decoder->settable_ctx_params == NULL)
  ------------------
  |  Branch (254:17): [True: 74, False: 0]
  ------------------
  255|     74|                decoder->settable_ctx_params = OSSL_FUNC_decoder_settable_ctx_params(fns);
  256|     74|            break;
  257|     73|        case OSSL_FUNC_DECODER_DOES_SELECTION:
  ------------------
  |  |  990|     73|#define OSSL_FUNC_DECODER_DOES_SELECTION 10
  ------------------
  |  Branch (257:9): [True: 73, False: 449]
  ------------------
  258|     73|            if (decoder->does_selection == NULL)
  ------------------
  |  Branch (258:17): [True: 73, False: 0]
  ------------------
  259|     73|                decoder->does_selection = OSSL_FUNC_decoder_does_selection(fns);
  260|     73|            break;
  261|     76|        case OSSL_FUNC_DECODER_DECODE:
  ------------------
  |  |  991|     76|#define OSSL_FUNC_DECODER_DECODE 11
  ------------------
  |  Branch (261:9): [True: 76, False: 446]
  ------------------
  262|     76|            if (decoder->decode == NULL)
  ------------------
  |  Branch (262:17): [True: 76, False: 0]
  ------------------
  263|     76|                decoder->decode = OSSL_FUNC_decoder_decode(fns);
  264|     76|            break;
  265|     73|        case OSSL_FUNC_DECODER_EXPORT_OBJECT:
  ------------------
  |  |  992|     73|#define OSSL_FUNC_DECODER_EXPORT_OBJECT 20
  ------------------
  |  Branch (265:9): [True: 73, False: 449]
  ------------------
  266|     73|            if (decoder->export_object == NULL)
  ------------------
  |  Branch (266:17): [True: 73, False: 0]
  ------------------
  267|     73|                decoder->export_object = OSSL_FUNC_decoder_export_object(fns);
  268|     73|            break;
  269|    522|        }
  270|    522|    }
  271|       |    /*
  272|       |     * Try to check that the method is sensible.
  273|       |     * If you have a constructor, you must have a destructor and vice versa.
  274|       |     * You must have at least one of the encoding driver functions.
  275|       |     */
  276|     76|    if (!((decoder->newctx == NULL && decoder->freectx == NULL)
  ------------------
  |  Branch (276:12): [True: 0, False: 76]
  |  Branch (276:39): [True: 0, False: 0]
  ------------------
  277|     76|            || (decoder->newctx != NULL && decoder->freectx != NULL))
  ------------------
  |  Branch (277:17): [True: 76, False: 0]
  |  Branch (277:44): [True: 76, False: 0]
  ------------------
  278|     76|        || decoder->decode == NULL) {
  ------------------
  |  Branch (278:12): [True: 0, False: 76]
  ------------------
  279|      0|        OSSL_DECODER_free(decoder);
  280|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  281|      0|        return NULL;
  282|      0|    }
  283|       |
  284|     76|    if (prov != NULL && !ossl_provider_up_ref(prov)) {
  ------------------
  |  Branch (284:9): [True: 76, False: 0]
  |  Branch (284:25): [True: 0, False: 76]
  ------------------
  285|      0|        OSSL_DECODER_free(decoder);
  286|      0|        return NULL;
  287|      0|    }
  288|       |
  289|     76|    decoder->base.prov = prov;
  290|     76|    return decoder;
  291|     76|}
OSSL_DECODER_get0_provider:
  461|   248k|{
  462|   248k|    if (!ossl_assert(decoder != NULL)) {
  ------------------
  |  |   52|   248k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|   248k|    __FILE__, __LINE__)
  ------------------
  |  Branch (462:9): [True: 0, False: 248k]
  ------------------
  463|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  464|      0|        return 0;
  465|      0|    }
  466|       |
  467|   248k|    return decoder->base.prov;
  468|   248k|}
ossl_decoder_parsed_properties:
  482|     22|{
  483|     22|    if (!ossl_assert(decoder != NULL)) {
  ------------------
  |  |   52|     22|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|     22|    __FILE__, __LINE__)
  ------------------
  |  Branch (483:9): [True: 0, False: 22]
  ------------------
  484|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  485|      0|        return 0;
  486|      0|    }
  487|       |
  488|     22|    return decoder->base.parsed_propdef;
  489|     22|}
ossl_decoder_get_number:
  492|  88.5k|{
  493|  88.5k|    if (!ossl_assert(decoder != NULL)) {
  ------------------
  |  |   52|  88.5k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  88.5k|    __FILE__, __LINE__)
  ------------------
  |  Branch (493:9): [True: 0, False: 88.5k]
  ------------------
  494|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  495|      0|        return 0;
  496|      0|    }
  497|       |
  498|  88.5k|    return decoder->base.id;
  499|  88.5k|}
OSSL_DECODER_is_a:
  512|  87.1k|{
  513|  87.1k|    if (decoder->base.prov != NULL) {
  ------------------
  |  Branch (513:9): [True: 87.1k, False: 0]
  ------------------
  514|  87.1k|        OSSL_LIB_CTX *libctx = ossl_provider_libctx(decoder->base.prov);
  515|  87.1k|        OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  516|       |
  517|  87.1k|        return ossl_namemap_name2num(namemap, name) == decoder->base.id;
  518|  87.1k|    }
  519|      0|    return 0;
  520|  87.1k|}
ossl_decoder_fast_is_a:
  531|  88.8k|{
  532|  88.8k|    int id = *id_cache;
  533|       |
  534|  88.8k|    if (id <= 0)
  ------------------
  |  Branch (534:9): [True: 87.4k, False: 1.35k]
  ------------------
  535|  87.4k|        *id_cache = id = resolve_name(decoder, name);
  536|       |
  537|  88.8k|    return id > 0 && ossl_decoder_get_number(decoder) == id;
  ------------------
  |  Branch (537:12): [True: 88.5k, False: 311]
  |  Branch (537:22): [True: 87.2k, False: 1.31k]
  ------------------
  538|  88.8k|}
OSSL_DECODER_do_all_provided:
  556|      4|{
  557|      4|    struct decoder_data_st methdata;
  558|      4|    struct do_one_data_st data;
  559|       |
  560|      4|    methdata.libctx = libctx;
  561|      4|    methdata.tmp_store = NULL;
  562|      4|    (void)inner_ossl_decoder_fetch(&methdata, NULL, NULL /* properties */);
  563|       |
  564|      4|    data.user_fn = user_fn;
  565|      4|    data.user_arg = user_arg;
  566|      4|    if (methdata.tmp_store != NULL)
  ------------------
  |  Branch (566:9): [True: 0, False: 4]
  ------------------
  567|      0|        ossl_method_store_do_all(methdata.tmp_store, &do_one, &data);
  568|      4|    ossl_method_store_do_all(get_decoder_store(libctx), &do_one, &data);
  569|      4|    dealloc_tmp_decoder_store(methdata.tmp_store);
  570|      4|}
OSSL_DECODER_CTX_new:
  629|  31.9k|{
  630|  31.9k|    OSSL_DECODER_CTX *ctx;
  631|       |
  632|  31.9k|    ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  633|  31.9k|    return ctx;
  634|  31.9k|}
OSSL_DECODER_CTX_free:
  666|  63.9k|{
  667|  63.9k|    if (ctx != NULL) {
  ------------------
  |  Branch (667:9): [True: 31.9k, False: 31.9k]
  ------------------
  668|  31.9k|        if (ctx->cleanup != NULL)
  ------------------
  |  Branch (668:13): [True: 31.9k, False: 0]
  ------------------
  669|  31.9k|            ctx->cleanup(ctx->construct_data);
  670|  31.9k|        sk_OSSL_DECODER_INSTANCE_pop_free(ctx->decoder_insts,
  671|  31.9k|            ossl_decoder_instance_free);
  672|  31.9k|        ossl_pw_clear_passphrase_data(&ctx->pwdata);
  673|  31.9k|        OPENSSL_free(ctx);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  674|  31.9k|    }
  675|  63.9k|}
decoder_meth.c:ossl_decoder_new:
   39|     76|{
   40|     76|    OSSL_DECODER *decoder = NULL;
   41|       |
   42|     76|    if ((decoder = OPENSSL_zalloc(sizeof(*decoder))) == NULL)
  ------------------
  |  |  108|     76|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (42:9): [True: 0, False: 76]
  ------------------
   43|      0|        return NULL;
   44|     76|    if (!CRYPTO_NEW_REF(&decoder->base.refcnt, 1)) {
  ------------------
  |  Branch (44:9): [True: 0, False: 76]
  ------------------
   45|      0|        OSSL_DECODER_free(decoder);
   46|      0|        return NULL;
   47|      0|    }
   48|       |
   49|     76|    return decoder;
   50|     76|}
decoder_meth.c:inner_ossl_decoder_fetch:
  348|      4|{
  349|      4|    OSSL_METHOD_STORE *store = get_decoder_store(methdata->libctx);
  350|      4|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx);
  351|      4|    const char *const propq = properties != NULL ? properties : "";
  ------------------
  |  Branch (351:31): [True: 0, False: 4]
  ------------------
  352|      4|    void *method = NULL;
  353|      4|    int unsupported, id;
  354|       |
  355|      4|    if (store == NULL || namemap == NULL) {
  ------------------
  |  Branch (355:9): [True: 0, False: 4]
  |  Branch (355:26): [True: 0, False: 4]
  ------------------
  356|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  357|      0|        return NULL;
  358|      0|    }
  359|       |
  360|      4|    id = name != NULL ? ossl_namemap_name2num(namemap, name) : 0;
  ------------------
  |  Branch (360:10): [True: 0, False: 4]
  ------------------
  361|       |
  362|       |    /*
  363|       |     * If we haven't found the name yet, chances are that the algorithm to
  364|       |     * be fetched is unsupported.
  365|       |     */
  366|      4|    unsupported = id == 0;
  367|       |
  368|      4|    if (id == 0
  ------------------
  |  Branch (368:9): [True: 4, False: 0]
  ------------------
  369|      4|        || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) {
  ------------------
  |  Branch (369:12): [True: 0, False: 0]
  ------------------
  370|      4|        OSSL_METHOD_CONSTRUCT_METHOD mcm = {
  371|      4|            get_tmp_decoder_store,
  372|      4|            reserve_decoder_store,
  373|      4|            unreserve_decoder_store,
  374|      4|            get_decoder_from_store,
  375|      4|            put_decoder_in_store,
  376|      4|            construct_decoder,
  377|      4|            destruct_decoder
  378|      4|        };
  379|      4|        OSSL_PROVIDER *prov = NULL;
  380|       |
  381|      4|        methdata->id = id;
  382|      4|        methdata->names = name;
  383|      4|        methdata->propquery = propq;
  384|      4|        methdata->flag_construct_error_occurred = 0;
  385|      4|        if ((method = ossl_method_construct(methdata->libctx, OSSL_OP_DECODER,
  ------------------
  |  |  296|      4|#define OSSL_OP_DECODER 21
  ------------------
  |  Branch (385:13): [True: 0, False: 4]
  ------------------
  386|      4|                 &prov, 0 /* !force_cache */,
  387|      4|                 &mcm, methdata))
  388|      4|            != NULL) {
  389|       |            /*
  390|       |             * If construction did create a method for us, we know that
  391|       |             * there is a correct name_id and meth_id, since those have
  392|       |             * already been calculated in get_decoder_from_store() and
  393|       |             * put_decoder_in_store() above.
  394|       |             */
  395|      0|            if (id == 0 && name != NULL)
  ------------------
  |  Branch (395:17): [True: 0, False: 0]
  |  Branch (395:28): [True: 0, False: 0]
  ------------------
  396|      0|                id = ossl_namemap_name2num(namemap, name);
  397|      0|            if (id != 0)
  ------------------
  |  Branch (397:17): [True: 0, False: 0]
  ------------------
  398|      0|                ossl_method_store_cache_set(store, prov, id, propq, method,
  399|      0|                    up_ref_decoder, free_decoder);
  400|      0|        }
  401|       |
  402|       |        /*
  403|       |         * If we never were in the constructor, the algorithm to be fetched
  404|       |         * is unsupported.
  405|       |         */
  406|      4|        unsupported = !methdata->flag_construct_error_occurred;
  407|      4|    }
  408|       |
  409|      4|    if ((id != 0 || name != NULL) && method == NULL) {
  ------------------
  |  Branch (409:10): [True: 0, False: 4]
  |  Branch (409:21): [True: 0, False: 4]
  |  Branch (409:38): [True: 0, False: 0]
  ------------------
  410|      0|        int code = unsupported ? ERR_R_UNSUPPORTED : ERR_R_FETCH_FAILED;
  ------------------
  |  |  364|      0|#define ERR_R_UNSUPPORTED (268 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      int code = unsupported ? ERR_R_UNSUPPORTED : ERR_R_FETCH_FAILED;
  ------------------
  |  |  365|      0|#define ERR_R_FETCH_FAILED (269 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (410:20): [True: 0, False: 0]
  ------------------
  411|       |
  412|      0|        if (name == NULL)
  ------------------
  |  Branch (412:13): [True: 0, False: 0]
  ------------------
  413|      0|            name = ossl_namemap_num2name(namemap, id, 0);
  414|      0|        ERR_raise_data(ERR_LIB_OSSL_DECODER, code,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_OSSL_DECODER, code,
  ------------------
  |  |  123|      0|#define ERR_LIB_OSSL_DECODER 60
  ------------------
  415|      0|            "%s, Name (%s : %d), Properties (%s)",
  416|      0|            ossl_lib_ctx_get_descriptor(methdata->libctx),
  417|      0|            name == NULL ? "<null>" : name, id,
  ------------------
  |  Branch (417:13): [True: 0, False: 0]
  ------------------
  418|      0|            properties == NULL ? "<null>" : properties);
  ------------------
  |  Branch (418:13): [True: 0, False: 0]
  ------------------
  419|      0|    }
  420|       |
  421|      4|    return method;
  422|      4|}
decoder_meth.c:reserve_decoder_store:
  117|      4|{
  118|      4|    struct decoder_data_st *methdata = data;
  119|       |
  120|      4|    if (store == NULL
  ------------------
  |  Branch (120:9): [True: 4, False: 0]
  ------------------
  121|      4|        && (store = get_decoder_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (121:12): [True: 0, False: 4]
  ------------------
  122|      0|        return 0;
  123|       |
  124|      4|    return ossl_method_lock_store(store);
  125|      4|}
decoder_meth.c:unreserve_decoder_store:
  128|      4|{
  129|      4|    struct decoder_data_st *methdata = data;
  130|       |
  131|      4|    if (store == NULL
  ------------------
  |  Branch (131:9): [True: 4, False: 0]
  ------------------
  132|      4|        && (store = get_decoder_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (132:12): [True: 0, False: 4]
  ------------------
  133|      0|        return 0;
  134|       |
  135|      4|    return ossl_method_unlock_store(store);
  136|      4|}
decoder_meth.c:get_decoder_from_store:
  141|      4|{
  142|      4|    struct decoder_data_st *methdata = data;
  143|      4|    void *method = NULL;
  144|      4|    int id;
  145|       |
  146|       |    /*
  147|       |     * get_decoder_from_store() is only called to try and get the method
  148|       |     * that OSSL_DECODER_fetch() is asking for, and the name or name id are
  149|       |     * passed via methdata.
  150|       |     */
  151|      4|    if ((id = methdata->id) == 0 && methdata->names != NULL) {
  ------------------
  |  Branch (151:9): [True: 4, False: 0]
  |  Branch (151:37): [True: 0, False: 4]
  ------------------
  152|      0|        OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx);
  153|      0|        const char *names = methdata->names;
  154|      0|        const char *q = strchr(names, NAME_SEPARATOR);
  ------------------
  |  |   25|      0|#define NAME_SEPARATOR ':'
  ------------------
  155|      0|        size_t l = (q == NULL ? strlen(names) : (size_t)(q - names));
  ------------------
  |  Branch (155:21): [True: 0, False: 0]
  ------------------
  156|       |
  157|      0|        if (namemap == 0)
  ------------------
  |  Branch (157:13): [True: 0, False: 0]
  ------------------
  158|      0|            return NULL;
  159|      0|        id = ossl_namemap_name2num_n(namemap, names, l);
  160|      0|    }
  161|       |
  162|      4|    if (id == 0)
  ------------------
  |  Branch (162:9): [True: 4, False: 0]
  ------------------
  163|      4|        return NULL;
  164|       |
  165|      0|    if (store == NULL
  ------------------
  |  Branch (165:9): [True: 0, False: 0]
  ------------------
  166|      0|        && (store = get_decoder_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (166:12): [True: 0, False: 0]
  ------------------
  167|      0|        return NULL;
  168|       |
  169|      0|    if (!ossl_method_store_fetch(store, id, methdata->propquery, prov, &method))
  ------------------
  |  Branch (169:9): [True: 0, False: 0]
  ------------------
  170|      0|        return NULL;
  171|      0|    return method;
  172|      0|}
decoder_meth.c:put_decoder_in_store:
  178|     76|{
  179|     76|    struct decoder_data_st *methdata = data;
  180|     76|    OSSL_NAMEMAP *namemap;
  181|     76|    int id;
  182|     76|    size_t l = 0;
  183|       |
  184|       |    /*
  185|       |     * put_decoder_in_store() is only called with an OSSL_DECODER method that
  186|       |     * was successfully created by construct_decoder() below, which means that
  187|       |     * all the names should already be stored in the namemap with the same
  188|       |     * numeric identity, so just use the first to get that identity.
  189|       |     */
  190|     76|    if (names != NULL) {
  ------------------
  |  Branch (190:9): [True: 76, False: 0]
  ------------------
  191|     76|        const char *q = strchr(names, NAME_SEPARATOR);
  ------------------
  |  |   25|     76|#define NAME_SEPARATOR ':'
  ------------------
  192|       |
  193|     76|        l = (q == NULL ? strlen(names) : (size_t)(q - names));
  ------------------
  |  Branch (193:14): [True: 76, False: 0]
  ------------------
  194|     76|    }
  195|       |
  196|     76|    if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL
  ------------------
  |  Branch (196:9): [True: 0, False: 76]
  ------------------
  197|     76|        || (id = ossl_namemap_name2num_n(namemap, names, l)) == 0)
  ------------------
  |  Branch (197:12): [True: 0, False: 76]
  ------------------
  198|      0|        return 0;
  199|       |
  200|     76|    if (store == NULL && (store = get_decoder_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (200:9): [True: 76, False: 0]
  |  Branch (200:26): [True: 0, False: 76]
  ------------------
  201|      0|        return 0;
  202|       |
  203|     76|    return ossl_method_store_add(store, prov, id, propdef, method,
  204|     76|        ossl_decoder_up_ref,
  205|     76|        ossl_decoder_free);
  206|     76|}
decoder_meth.c:ossl_decoder_up_ref:
   33|     76|{
   34|     76|    return OSSL_DECODER_up_ref(data);
   35|     76|}
decoder_meth.c:construct_decoder:
  300|     76|{
  301|       |    /*
  302|       |     * This function is only called if get_decoder_from_store() returned
  303|       |     * NULL, so it's safe to say that of all the spots to create a new
  304|       |     * namemap entry, this is it.  Should the name already exist there, we
  305|       |     * know that ossl_namemap_add() will return its corresponding number.
  306|       |     */
  307|     76|    struct decoder_data_st *methdata = data;
  308|     76|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov);
  309|     76|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  310|     76|    const char *names = algodef->algorithm_names;
  311|     76|    int id = ossl_namemap_add_names(namemap, 0, names, NAME_SEPARATOR);
  ------------------
  |  |   25|     76|#define NAME_SEPARATOR ':'
  ------------------
  312|     76|    void *method = NULL;
  313|       |
  314|     76|    if (id != 0)
  ------------------
  |  Branch (314:9): [True: 76, False: 0]
  ------------------
  315|     76|        method = ossl_decoder_from_algorithm(id, algodef, prov);
  316|       |
  317|       |    /*
  318|       |     * Flag to indicate that there was actual construction errors.  This
  319|       |     * helps inner_evp_generic_fetch() determine what error it should
  320|       |     * record on inaccessible algorithms.
  321|       |     */
  322|     76|    if (method == NULL)
  ------------------
  |  Branch (322:9): [True: 0, False: 76]
  ------------------
  323|      0|        methdata->flag_construct_error_occurred = 1;
  324|       |
  325|     76|    return method;
  326|     76|}
decoder_meth.c:destruct_decoder:
  330|     76|{
  331|     76|    OSSL_DECODER_free(method);
  332|     76|}
decoder_meth.c:dealloc_tmp_decoder_store:
  105|      4|{
  106|      4|    if (store != NULL)
  ------------------
  |  Branch (106:9): [True: 0, False: 4]
  ------------------
  107|      0|        ossl_method_store_free(store);
  108|      4|}
decoder_meth.c:get_decoder_store:
  112|     92|{
  113|     92|    return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_DECODER_STORE_INDEX);
  ------------------
  |  |  109|     92|#define OSSL_LIB_CTX_DECODER_STORE_INDEX 11
  ------------------
  114|     92|}
decoder_meth.c:resolve_name:
  523|  87.4k|{
  524|  87.4k|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(decoder->base.prov);
  525|  87.4k|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  526|       |
  527|  87.4k|    return ossl_namemap_name2num(namemap, name);
  528|  87.4k|}
decoder_meth.c:do_one:
  546|    304|{
  547|    304|    struct do_one_data_st *data = arg;
  548|       |
  549|    304|    data->user_fn(method, data->user_arg);
  550|    304|}

ossl_decoder_cache_new:
  764|      2|{
  765|      2|    DECODER_CACHE *cache = OPENSSL_malloc(sizeof(*cache));
  ------------------
  |  |  106|      2|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  766|       |
  767|      2|    if (cache == NULL)
  ------------------
  |  Branch (767:9): [True: 0, False: 2]
  ------------------
  768|      0|        return NULL;
  769|       |
  770|      2|    cache->lock = CRYPTO_THREAD_lock_new();
  771|      2|    if (cache->lock == NULL) {
  ------------------
  |  Branch (771:9): [True: 0, False: 2]
  ------------------
  772|      0|        OPENSSL_free(cache);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  773|      0|        return NULL;
  774|      0|    }
  775|      2|    cache->hashtable = lh_DECODER_CACHE_ENTRY_new(decoder_cache_entry_hash,
  776|      2|        decoder_cache_entry_cmp);
  777|      2|    if (cache->hashtable == NULL) {
  ------------------
  |  Branch (777:9): [True: 0, False: 2]
  ------------------
  778|      0|        CRYPTO_THREAD_lock_free(cache->lock);
  779|      0|        OPENSSL_free(cache);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  780|      0|        return NULL;
  781|      0|    }
  782|       |
  783|      2|    return cache;
  784|      2|}
OSSL_DECODER_CTX_new_for_pkey:
  826|  31.9k|{
  827|  31.9k|    OSSL_DECODER_CTX *ctx = NULL;
  828|  31.9k|    OSSL_PARAM decoder_params[] = {
  829|  31.9k|        OSSL_PARAM_END,
  ------------------
  |  |   25|  31.9k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  830|  31.9k|        OSSL_PARAM_END,
  ------------------
  |  |   25|  31.9k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  831|  31.9k|        OSSL_PARAM_END
  ------------------
  |  |   25|  31.9k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  832|  31.9k|    };
  833|  31.9k|    DECODER_CACHE *cache
  834|  31.9k|        = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_DECODER_CACHE_INDEX);
  ------------------
  |  |  118|  31.9k|#define OSSL_LIB_CTX_DECODER_CACHE_INDEX 20
  ------------------
  835|  31.9k|    DECODER_CACHE_ENTRY cacheent, *res, *newcache = NULL;
  836|  31.9k|    int i = 0;
  837|       |
  838|  31.9k|    if (cache == NULL) {
  ------------------
  |  Branch (838:9): [True: 0, False: 31.9k]
  ------------------
  839|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  840|      0|        return NULL;
  841|      0|    }
  842|  31.9k|    if (input_structure != NULL)
  ------------------
  |  Branch (842:9): [True: 31.9k, False: 0]
  ------------------
  843|  31.9k|        decoder_params[i++] = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_STRUCTURE,
  ------------------
  |  |  357|  31.9k|# define OSSL_OBJECT_PARAM_DATA_STRUCTURE "data-structure"
  ------------------
  844|  31.9k|            (char *)input_structure, 0);
  845|  31.9k|    if (propquery != NULL)
  ------------------
  |  Branch (845:9): [True: 0, False: 31.9k]
  ------------------
  846|      0|        decoder_params[i++] = OSSL_PARAM_construct_utf8_string(OSSL_DECODER_PARAM_PROPERTIES,
  ------------------
  |  |  224|      0|# define OSSL_DECODER_PARAM_PROPERTIES OSSL_ALG_PARAM_PROPERTIES
  |  |  ------------------
  |  |  |  |  132|      0|# define OSSL_ALG_PARAM_PROPERTIES "properties"
  |  |  ------------------
  ------------------
  847|      0|            (char *)propquery, 0);
  848|       |
  849|       |    /* It is safe to cast away the const here */
  850|  31.9k|    cacheent.input_type = (char *)input_type;
  851|  31.9k|    cacheent.input_structure = (char *)input_structure;
  852|  31.9k|    cacheent.keytype = (char *)keytype;
  853|  31.9k|    cacheent.selection = selection;
  854|  31.9k|    cacheent.propquery = (char *)propquery;
  855|       |
  856|  31.9k|    if (!CRYPTO_THREAD_read_lock(cache->lock)) {
  ------------------
  |  Branch (856:9): [True: 0, False: 31.9k]
  ------------------
  857|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  858|      0|        return NULL;
  859|      0|    }
  860|       |
  861|       |    /* First see if we have a template OSSL_DECODER_CTX */
  862|  31.9k|    res = lh_DECODER_CACHE_ENTRY_retrieve(cache->hashtable, &cacheent);
  863|       |
  864|  31.9k|    if (res == NULL) {
  ------------------
  |  Branch (864:9): [True: 2, False: 31.9k]
  ------------------
  865|       |        /*
  866|       |         * There is no template so we will have to construct one. This will be
  867|       |         * time consuming so release the lock and we will later upgrade it to a
  868|       |         * write lock.
  869|       |         */
  870|      2|        CRYPTO_THREAD_unlock(cache->lock);
  871|       |
  872|      2|        if ((ctx = OSSL_DECODER_CTX_new()) == NULL) {
  ------------------
  |  Branch (872:13): [True: 0, False: 2]
  ------------------
  873|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  874|      0|            return NULL;
  875|      0|        }
  876|       |
  877|      2|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      2|    do {                           \
  |  |  222|      2|        BIO *trc_out = NULL;       \
  |  |  223|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  878|      0|        {
  879|      0|            BIO_printf(trc_out,
  880|      0|                "(ctx %p) Looking for %s decoders with selection %d\n",
  881|      0|                (void *)ctx, keytype, selection);
  882|      0|            BIO_printf(trc_out, "    input type: %s, input structure: %s\n",
  883|      0|                input_type, input_structure);
  884|      0|        }
  885|      2|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      2|    }                            \
  |  |  227|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  886|       |
  887|      2|        if (OSSL_DECODER_CTX_set_input_type(ctx, input_type)
  ------------------
  |  Branch (887:13): [True: 2, False: 0]
  ------------------
  888|      2|            && OSSL_DECODER_CTX_set_input_structure(ctx, input_structure)
  ------------------
  |  Branch (888:16): [True: 2, False: 0]
  ------------------
  889|      2|            && OSSL_DECODER_CTX_set_selection(ctx, selection)
  ------------------
  |  Branch (889:16): [True: 2, False: 0]
  ------------------
  890|      2|            && ossl_decoder_ctx_setup_for_pkey(ctx, keytype, libctx, propquery)
  ------------------
  |  Branch (890:16): [True: 2, False: 0]
  ------------------
  891|      2|            && OSSL_DECODER_CTX_add_extra(ctx, libctx, propquery)
  ------------------
  |  Branch (891:16): [True: 2, False: 0]
  ------------------
  892|      2|            && (propquery == NULL
  ------------------
  |  Branch (892:17): [True: 2, False: 0]
  ------------------
  893|      2|                || OSSL_DECODER_CTX_set_params(ctx, decoder_params))) {
  ------------------
  |  Branch (893:20): [True: 0, False: 0]
  ------------------
  894|      2|            OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      2|    do {                           \
  |  |  222|      2|        BIO *trc_out = NULL;       \
  |  |  223|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  895|      0|            {
  896|      0|                BIO_printf(trc_out, "(ctx %p) Got %d decoders\n",
  897|      0|                    (void *)ctx, OSSL_DECODER_CTX_get_num_decoders(ctx));
  898|      0|            }
  899|      2|            OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      2|    }                            \
  |  |  227|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  900|      2|        } else {
  901|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  902|      0|            OSSL_DECODER_CTX_free(ctx);
  903|      0|            return NULL;
  904|      0|        }
  905|       |
  906|      2|        newcache = OPENSSL_zalloc(sizeof(*newcache));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  907|      2|        if (newcache == NULL) {
  ------------------
  |  Branch (907:13): [True: 0, False: 2]
  ------------------
  908|      0|            OSSL_DECODER_CTX_free(ctx);
  909|      0|            return NULL;
  910|      0|        }
  911|       |
  912|      2|        if (input_type != NULL) {
  ------------------
  |  Branch (912:13): [True: 2, False: 0]
  ------------------
  913|      2|            newcache->input_type = OPENSSL_strdup(input_type);
  ------------------
  |  |  135|      2|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  914|      2|            if (newcache->input_type == NULL)
  ------------------
  |  Branch (914:17): [True: 0, False: 2]
  ------------------
  915|      0|                goto err;
  916|      2|        }
  917|      2|        if (input_structure != NULL) {
  ------------------
  |  Branch (917:13): [True: 2, False: 0]
  ------------------
  918|      2|            newcache->input_structure = OPENSSL_strdup(input_structure);
  ------------------
  |  |  135|      2|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  919|      2|            if (newcache->input_structure == NULL)
  ------------------
  |  Branch (919:17): [True: 0, False: 2]
  ------------------
  920|      0|                goto err;
  921|      2|        }
  922|      2|        if (keytype != NULL) {
  ------------------
  |  Branch (922:13): [True: 2, False: 0]
  ------------------
  923|      2|            newcache->keytype = OPENSSL_strdup(keytype);
  ------------------
  |  |  135|      2|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  924|      2|            if (newcache->keytype == NULL)
  ------------------
  |  Branch (924:17): [True: 0, False: 2]
  ------------------
  925|      0|                goto err;
  926|      2|        }
  927|      2|        if (propquery != NULL) {
  ------------------
  |  Branch (927:13): [True: 0, False: 2]
  ------------------
  928|      0|            newcache->propquery = OPENSSL_strdup(propquery);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  929|      0|            if (newcache->propquery == NULL)
  ------------------
  |  Branch (929:17): [True: 0, False: 0]
  ------------------
  930|      0|                goto err;
  931|      0|        }
  932|      2|        newcache->selection = selection;
  933|      2|        newcache->template = ctx;
  934|       |
  935|      2|        if (!CRYPTO_THREAD_write_lock(cache->lock)) {
  ------------------
  |  Branch (935:13): [True: 0, False: 2]
  ------------------
  936|      0|            ctx = NULL;
  937|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  938|      0|            goto err;
  939|      0|        }
  940|      2|        res = lh_DECODER_CACHE_ENTRY_retrieve(cache->hashtable, &cacheent);
  941|      2|        if (res == NULL) {
  ------------------
  |  Branch (941:13): [True: 2, False: 0]
  ------------------
  942|      2|            (void)lh_DECODER_CACHE_ENTRY_insert(cache->hashtable, newcache);
  943|      2|            if (lh_DECODER_CACHE_ENTRY_error(cache->hashtable)) {
  ------------------
  |  Branch (943:17): [True: 0, False: 2]
  ------------------
  944|      0|                ctx = NULL;
  945|      0|                CRYPTO_THREAD_unlock(cache->lock);
  946|      0|                ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  947|      0|                goto err;
  948|      0|            }
  949|      2|        } else {
  950|       |            /*
  951|       |             * We raced with another thread to construct this and lost. Free
  952|       |             * what we just created and use the entry from the hashtable instead
  953|       |             */
  954|      0|            decoder_cache_entry_free(newcache);
  955|      0|            ctx = res->template;
  956|      0|        }
  957|  31.9k|    } else {
  958|  31.9k|        ctx = res->template;
  959|  31.9k|    }
  960|       |
  961|  31.9k|    ctx = ossl_decoder_ctx_for_pkey_dup(ctx, pkey, input_type, input_structure);
  962|  31.9k|    CRYPTO_THREAD_unlock(cache->lock);
  963|       |
  964|  31.9k|    return ctx;
  965|      0|err:
  966|      0|    decoder_cache_entry_free(newcache);
  967|      0|    OSSL_DECODER_CTX_free(ctx);
  968|       |    return NULL;
  969|  31.9k|}
decoder_pkey.c:decoder_cache_entry_hash:
  694|  31.9k|{
  695|  31.9k|    unsigned long hash = 17;
  696|       |
  697|  31.9k|    hash = (hash * 23)
  698|  31.9k|        + (cache->propquery == NULL
  ------------------
  |  Branch (698:12): [True: 31.9k, False: 0]
  ------------------
  699|  31.9k|                ? 0
  700|  31.9k|                : ossl_lh_strcasehash(cache->propquery));
  701|  31.9k|    hash = (hash * 23)
  702|  31.9k|        + (cache->input_structure == NULL
  ------------------
  |  Branch (702:12): [True: 0, False: 31.9k]
  ------------------
  703|  31.9k|                ? 0
  704|  31.9k|                : ossl_lh_strcasehash(cache->input_structure));
  705|  31.9k|    hash = (hash * 23)
  706|  31.9k|        + (cache->input_type == NULL
  ------------------
  |  Branch (706:12): [True: 0, False: 31.9k]
  ------------------
  707|  31.9k|                ? 0
  708|  31.9k|                : ossl_lh_strcasehash(cache->input_type));
  709|  31.9k|    hash = (hash * 23)
  710|  31.9k|        + (cache->keytype == NULL
  ------------------
  |  Branch (710:12): [True: 0, False: 31.9k]
  ------------------
  711|  31.9k|                ? 0
  712|  31.9k|                : ossl_lh_strcasehash(cache->keytype));
  713|       |
  714|  31.9k|    hash ^= cache->selection;
  715|       |
  716|  31.9k|    return hash;
  717|  31.9k|}
decoder_pkey.c:decoder_cache_entry_cmp:
  740|  31.9k|{
  741|  31.9k|    int cmp;
  742|       |
  743|  31.9k|    if (a->selection != b->selection)
  ------------------
  |  Branch (743:9): [True: 0, False: 31.9k]
  ------------------
  744|      0|        return (a->selection < b->selection) ? -1 : 1;
  ------------------
  |  Branch (744:16): [True: 0, False: 0]
  ------------------
  745|       |
  746|  31.9k|    cmp = nullstrcmp(a->keytype, b->keytype, 1);
  747|  31.9k|    if (cmp != 0)
  ------------------
  |  Branch (747:9): [True: 0, False: 31.9k]
  ------------------
  748|      0|        return cmp;
  749|       |
  750|  31.9k|    cmp = nullstrcmp(a->input_type, b->input_type, 1);
  751|  31.9k|    if (cmp != 0)
  ------------------
  |  Branch (751:9): [True: 0, False: 31.9k]
  ------------------
  752|      0|        return cmp;
  753|       |
  754|  31.9k|    cmp = nullstrcmp(a->input_structure, b->input_structure, 1);
  755|  31.9k|    if (cmp != 0)
  ------------------
  |  Branch (755:9): [True: 0, False: 31.9k]
  ------------------
  756|      0|        return cmp;
  757|       |
  758|  31.9k|    cmp = nullstrcmp(a->propquery, b->propquery, 0);
  759|       |
  760|  31.9k|    return cmp;
  761|  31.9k|}
decoder_pkey.c:nullstrcmp:
  720|   127k|{
  721|   127k|    if (a == NULL || b == NULL) {
  ------------------
  |  Branch (721:9): [True: 31.9k, False: 95.9k]
  |  Branch (721:22): [True: 0, False: 95.9k]
  ------------------
  722|  31.9k|        if (a == NULL) {
  ------------------
  |  Branch (722:13): [True: 31.9k, False: 0]
  ------------------
  723|  31.9k|            if (b == NULL)
  ------------------
  |  Branch (723:17): [True: 31.9k, False: 0]
  ------------------
  724|  31.9k|                return 0;
  725|      0|            else
  726|      0|                return 1;
  727|  31.9k|        } else {
  728|      0|            return -1;
  729|      0|        }
  730|  95.9k|    } else {
  731|  95.9k|        if (casecmp)
  ------------------
  |  Branch (731:13): [True: 95.9k, False: 0]
  ------------------
  732|  95.9k|            return OPENSSL_strcasecmp(a, b);
  733|      0|        else
  734|      0|            return strcmp(a, b);
  735|  95.9k|    }
  736|   127k|}
decoder_pkey.c:ossl_decoder_ctx_setup_for_pkey:
  435|      2|{
  436|      2|    int ok = 0;
  437|      2|    struct decoder_pkey_data_st *process_data = NULL;
  438|      2|    struct collect_data_st collect_data = { NULL };
  439|      2|    STACK_OF(EVP_KEYMGMT) *keymgmts = NULL;
  ------------------
  |  |   33|      2|#define STACK_OF(type) struct stack_st_##type
  ------------------
  440|      2|    OSSL_PROPERTY_LIST **plp;
  441|      2|    OSSL_PROPERTY_LIST *pq = NULL, *p2 = NULL;
  442|       |
  443|      2|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      2|    do {                           \
  |  |  222|      2|        BIO *trc_out = NULL;       \
  |  |  223|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  444|      0|    {
  445|      0|        const char *input_type = ctx->start_input_type;
  446|      0|        const char *input_structure = ctx->input_structure;
  447|       |
  448|      0|        BIO_printf(trc_out,
  449|      0|            "(ctx %p) Looking for decoders producing %s%s%s%s%s%s\n",
  450|      0|            (void *)ctx,
  451|      0|            keytype != NULL ? keytype : "",
  ------------------
  |  Branch (451:13): [True: 0, False: 0]
  ------------------
  452|      0|            keytype != NULL ? " keys" : "keys of any type",
  ------------------
  |  Branch (452:13): [True: 0, False: 0]
  ------------------
  453|      0|            input_type != NULL ? " from " : "",
  ------------------
  |  Branch (453:13): [True: 0, False: 0]
  ------------------
  454|      0|            input_type != NULL ? input_type : "",
  ------------------
  |  Branch (454:13): [True: 0, False: 0]
  ------------------
  455|      0|            input_structure != NULL ? " with " : "",
  ------------------
  |  Branch (455:13): [True: 0, False: 0]
  ------------------
  456|      0|            input_structure != NULL ? input_structure : "");
  ------------------
  |  Branch (456:13): [True: 0, False: 0]
  ------------------
  457|      0|    }
  458|      2|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      2|    }                            \
  |  |  227|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  459|       |
  460|       |    /* Allocate data. */
  461|      2|    if ((process_data = OPENSSL_zalloc(sizeof(*process_data))) == NULL)
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (461:9): [True: 0, False: 2]
  ------------------
  462|      0|        goto err;
  463|      2|    if ((propquery != NULL
  ------------------
  |  Branch (463:10): [True: 0, False: 2]
  ------------------
  464|      0|            && (process_data->propq = OPENSSL_strdup(propquery)) == NULL))
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (464:16): [True: 0, False: 0]
  ------------------
  465|      0|        goto err;
  466|       |
  467|       |    /* Allocate our list of EVP_KEYMGMTs. */
  468|      2|    keymgmts = sk_EVP_KEYMGMT_new_null();
  469|      2|    if (keymgmts == NULL) {
  ------------------
  |  Branch (469:9): [True: 0, False: 2]
  ------------------
  470|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  471|      0|        goto err;
  472|      0|    }
  473|       |
  474|      2|    process_data->object = NULL;
  475|      2|    process_data->libctx = libctx;
  476|      2|    process_data->selection = ctx->selection;
  477|      2|    process_data->keymgmts = keymgmts;
  478|       |
  479|       |    /*
  480|       |     * Collect passed and default properties to prioritize the decoders.
  481|       |     */
  482|      2|    if (propquery != NULL)
  ------------------
  |  Branch (482:9): [True: 0, False: 2]
  ------------------
  483|      0|        p2 = pq = ossl_parse_query(libctx, propquery, 1);
  484|       |
  485|      2|    plp = ossl_ctx_global_properties(libctx, 0);
  486|      2|    if (plp != NULL && *plp != NULL) {
  ------------------
  |  Branch (486:9): [True: 2, False: 0]
  |  Branch (486:24): [True: 0, False: 2]
  ------------------
  487|      0|        if (pq == NULL) {
  ------------------
  |  Branch (487:13): [True: 0, False: 0]
  ------------------
  488|      0|            pq = *plp;
  489|      0|        } else {
  490|      0|            p2 = ossl_property_merge(pq, *plp);
  491|      0|            ossl_property_free(pq);
  492|      0|            if (p2 == NULL)
  ------------------
  |  Branch (492:17): [True: 0, False: 0]
  ------------------
  493|      0|                goto err;
  494|      0|            pq = p2;
  495|      0|        }
  496|      0|    }
  497|       |
  498|       |    /*
  499|       |     * Enumerate all keymgmts into a stack.
  500|       |     *
  501|       |     * We could nest EVP_KEYMGMT_do_all_provided inside
  502|       |     * OSSL_DECODER_do_all_provided or vice versa but these functions become
  503|       |     * bottlenecks if called repeatedly, which is why we collect the
  504|       |     * EVP_KEYMGMTs into a stack here and call both functions only once.
  505|       |     *
  506|       |     * We resolve the keytype string to a name ID so we don't have to resolve it
  507|       |     * multiple times, avoiding repeated calls to EVP_KEYMGMT_is_a, which is a
  508|       |     * performance bottleneck. However, we do this lazily on the first call to
  509|       |     * collect_keymgmt made by EVP_KEYMGMT_do_all_provided, rather than do it
  510|       |     * upfront, as this ensures that the names for all loaded providers have
  511|       |     * been registered by the time we try to resolve the keytype string.
  512|       |     */
  513|      2|    collect_data.ctx = ctx;
  514|      2|    collect_data.libctx = libctx;
  515|      2|    collect_data.keymgmts = keymgmts;
  516|      2|    collect_data.keytype = keytype;
  517|      2|    collect_data.pq = pq;
  518|      2|    EVP_KEYMGMT_do_all_provided(libctx, collect_keymgmt, &collect_data);
  519|       |
  520|      2|    if (collect_data.error_occurred)
  ------------------
  |  Branch (520:9): [True: 0, False: 2]
  ------------------
  521|      0|        goto err;
  522|       |
  523|       |    /* Enumerate all matching decoders. */
  524|      2|    OSSL_DECODER_do_all_provided(libctx, collect_decoder, &collect_data);
  525|       |
  526|      2|    if (collect_data.error_occurred)
  ------------------
  |  Branch (526:9): [True: 0, False: 2]
  ------------------
  527|      0|        goto err;
  528|       |
  529|      2|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      2|    do {                           \
  |  |  222|      2|        BIO *trc_out = NULL;       \
  |  |  223|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  530|      0|    {
  531|      0|        BIO_printf(trc_out,
  532|      0|            "(ctx %p) Got %d decoders producing keys\n",
  533|      0|            (void *)ctx, collect_data.total);
  534|      0|    }
  535|      2|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      2|    }                            \
  |  |  227|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  536|       |
  537|       |    /*
  538|       |     * Finish initializing the decoder context. If one or more decoders matched
  539|       |     * above then the number of decoders attached to the OSSL_DECODER_CTX will
  540|       |     * be nonzero. Else nothing was found and we do nothing.
  541|       |     */
  542|      2|    if (OSSL_DECODER_CTX_get_num_decoders(ctx) != 0) {
  ------------------
  |  Branch (542:9): [True: 2, False: 0]
  ------------------
  543|      2|        if (!OSSL_DECODER_CTX_set_construct(ctx, decoder_construct_pkey)
  ------------------
  |  Branch (543:13): [True: 0, False: 2]
  ------------------
  544|      2|            || !OSSL_DECODER_CTX_set_construct_data(ctx, process_data)
  ------------------
  |  Branch (544:16): [True: 0, False: 2]
  ------------------
  545|      2|            || !OSSL_DECODER_CTX_set_cleanup(ctx,
  ------------------
  |  Branch (545:16): [True: 0, False: 2]
  ------------------
  546|      2|                decoder_clean_pkey_construct_arg))
  547|      0|            goto err;
  548|       |
  549|      2|        process_data = NULL; /* Avoid it being freed */
  550|      2|    }
  551|       |
  552|      2|    ok = 1;
  553|      2|err:
  554|      2|    decoder_clean_pkey_construct_arg(process_data);
  555|      2|    ossl_property_free(p2);
  556|      2|    return ok;
  557|      2|}
decoder_pkey.c:collect_keymgmt:
  404|     80|{
  405|     80|    struct collect_data_st *data = arg;
  406|       |
  407|     80|    if (!check_keymgmt(keymgmt, data))
  ------------------
  |  Branch (407:9): [True: 77, False: 3]
  ------------------
  408|     77|        return;
  409|       |
  410|       |    /*
  411|       |     * We have to ref EVP_KEYMGMT here because in the success case,
  412|       |     * data->keymgmts is referenced by the constructor we register in the
  413|       |     * OSSL_DECODER_CTX. The registered cleanup function
  414|       |     * (decoder_clean_pkey_construct_arg) unrefs every element of the stack and
  415|       |     * frees it.
  416|       |     */
  417|      3|    if (!EVP_KEYMGMT_up_ref(keymgmt))
  ------------------
  |  Branch (417:9): [True: 0, False: 3]
  ------------------
  418|      0|        return;
  419|       |
  420|      3|    if (sk_EVP_KEYMGMT_push(data->keymgmts, keymgmt) <= 0) {
  ------------------
  |  Branch (420:9): [True: 0, False: 3]
  ------------------
  421|      0|        EVP_KEYMGMT_free(keymgmt);
  422|      0|        data->error_occurred = 1;
  423|      0|    }
  424|      3|}
decoder_pkey.c:check_keymgmt:
  365|     80|{
  366|       |    /* If no keytype was specified, everything matches. */
  367|     80|    if (data->keytype == NULL)
  ------------------
  |  Branch (367:9): [True: 0, False: 80]
  ------------------
  368|      0|        return 1;
  369|       |
  370|     80|    if (!data->keytype_resolved) {
  ------------------
  |  Branch (370:9): [True: 2, False: 78]
  ------------------
  371|       |        /* We haven't cached the IDs from the keytype string yet. */
  372|      2|        OSSL_NAMEMAP *namemap = ossl_namemap_stored(data->libctx);
  373|      2|        data->keytype_id = ossl_namemap_name2num(namemap, data->keytype);
  374|       |
  375|       |        /*
  376|       |         * If keytype is a value ambiguously used for both EC and SM2,
  377|       |         * collect the ID for SM2 as well.
  378|       |         */
  379|      2|        if (data->keytype_id != 0
  ------------------
  |  Branch (379:13): [True: 2, False: 0]
  ------------------
  380|      2|            && (strcmp(data->keytype, "id-ecPublicKey") == 0
  ------------------
  |  Branch (380:17): [True: 1, False: 1]
  ------------------
  381|      1|                || strcmp(data->keytype, "1.2.840.10045.2.1") == 0))
  ------------------
  |  Branch (381:20): [True: 0, False: 1]
  ------------------
  382|      1|            data->sm2_id = ossl_namemap_name2num(namemap, "SM2");
  383|       |
  384|       |        /*
  385|       |         * If keytype_id is zero the name was not found, but we still
  386|       |         * set keytype_resolved to avoid trying all this again.
  387|       |         */
  388|      2|        data->keytype_resolved = 1;
  389|      2|    }
  390|       |
  391|       |    /* Specified keytype could not be resolved, so nothing matches. */
  392|     80|    if (data->keytype_id == 0)
  ------------------
  |  Branch (392:9): [True: 0, False: 80]
  ------------------
  393|      0|        return 0;
  394|       |
  395|       |    /* Does not match the keytype specified, so skip. */
  396|     80|    if (keymgmt->name_id != data->keytype_id
  ------------------
  |  Branch (396:9): [True: 78, False: 2]
  ------------------
  397|     78|        && keymgmt->name_id != data->sm2_id)
  ------------------
  |  Branch (397:12): [True: 77, False: 1]
  ------------------
  398|     77|        return 0;
  399|       |
  400|      3|    return 1;
  401|     80|}
decoder_pkey.c:collect_decoder:
  314|    152|{
  315|    152|    struct collect_data_st *data = arg;
  316|    152|    STACK_OF(EVP_KEYMGMT) *keymgmts = data->keymgmts;
  ------------------
  |  |   33|    152|#define STACK_OF(type) struct stack_st_##type
  ------------------
  317|    152|    int i, end_i;
  318|    152|    EVP_KEYMGMT *keymgmt;
  319|    152|    const OSSL_PROVIDER *prov;
  320|    152|    void *provctx;
  321|       |
  322|    152|    if (data->error_occurred)
  ------------------
  |  Branch (322:9): [True: 0, False: 152]
  ------------------
  323|      0|        return;
  324|       |
  325|    152|    prov = OSSL_DECODER_get0_provider(decoder);
  326|    152|    provctx = OSSL_PROVIDER_get0_provider_ctx(prov);
  327|       |
  328|       |    /*
  329|       |     * Either the caller didn't give us a selection, or if they did, the decoder
  330|       |     * must tell us if it supports that selection to be accepted. If the decoder
  331|       |     * doesn't have |does_selection|, it's seen as taking anything.
  332|       |     */
  333|    152|    if (decoder->does_selection != NULL
  ------------------
  |  Branch (333:9): [True: 146, False: 6]
  ------------------
  334|    146|        && !decoder->does_selection(provctx, data->ctx->selection))
  ------------------
  |  Branch (334:12): [True: 76, False: 70]
  ------------------
  335|     76|        return;
  336|       |
  337|     76|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|     76|    do {                           \
  |  |  222|     76|        BIO *trc_out = NULL;       \
  |  |  223|     76|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 76]
  |  |  ------------------
  ------------------
  338|      0|    {
  339|      0|        BIO_printf(trc_out,
  340|      0|            "(ctx %p) Checking out decoder %p:\n"
  341|      0|            "    %s with %s\n",
  342|      0|            (void *)data->ctx, (void *)decoder,
  343|      0|            OSSL_DECODER_get0_name(decoder),
  344|      0|            OSSL_DECODER_get0_properties(decoder));
  345|      0|    }
  346|     76|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|     76|    }                            \
  |  |  227|     76|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 76]
  |  |  ------------------
  ------------------
  347|       |
  348|     76|    end_i = sk_EVP_KEYMGMT_num(keymgmts);
  349|    184|    for (i = 0; i < end_i; ++i) {
  ------------------
  |  Branch (349:17): [True: 113, False: 71]
  ------------------
  350|    113|        keymgmt = sk_EVP_KEYMGMT_value(keymgmts, i);
  351|       |
  352|       |        /* Only add this decoder once */
  353|    113|        if (collect_decoder_keymgmt(keymgmt, decoder, provctx, data))
  ------------------
  |  Branch (353:13): [True: 5, False: 108]
  ------------------
  354|      5|            break;
  355|    108|        if (data->error_occurred)
  ------------------
  |  Branch (355:13): [True: 0, False: 108]
  ------------------
  356|      0|            return;
  357|    108|    }
  358|     76|}
decoder_pkey.c:collect_decoder_keymgmt:
  237|    113|{
  238|    113|    void *decoderctx = NULL;
  239|    113|    OSSL_DECODER_INSTANCE *di = NULL;
  240|    113|    const OSSL_PROPERTY_LIST *props;
  241|       |
  242|       |    /*
  243|       |     * We already checked the EVP_KEYMGMT is applicable in check_keymgmt so we
  244|       |     * don't check it again here.
  245|       |     */
  246|       |
  247|    113|    if (keymgmt->name_id != decoder->base.id)
  ------------------
  |  Branch (247:9): [True: 107, False: 6]
  ------------------
  248|       |        /* Mismatch is not an error, continue. */
  249|    107|        return 0;
  250|       |
  251|      6|    if ((decoderctx = decoder->newctx(provctx)) == NULL) {
  ------------------
  |  Branch (251:9): [True: 0, False: 6]
  ------------------
  252|      0|        data->error_occurred = 1;
  253|      0|        return 0;
  254|      0|    }
  255|       |
  256|      6|    if ((di = ossl_decoder_instance_new(decoder, decoderctx)) == NULL) {
  ------------------
  |  Branch (256:9): [True: 0, False: 6]
  ------------------
  257|      0|        decoder->freectx(decoderctx);
  258|      0|        data->error_occurred = 1;
  259|      0|        return 0;
  260|      0|    }
  261|       |
  262|       |    /*
  263|       |     * Input types must be compatible, but we must accept DER encoders when the
  264|       |     * start input type is "PEM".
  265|       |     */
  266|      6|    if (data->ctx->start_input_type != NULL
  ------------------
  |  Branch (266:9): [True: 6, False: 0]
  ------------------
  267|      6|        && di->input_type != NULL
  ------------------
  |  Branch (267:12): [True: 6, False: 0]
  ------------------
  268|      6|        && OPENSSL_strcasecmp(di->input_type, data->ctx->start_input_type) != 0
  ------------------
  |  Branch (268:12): [True: 1, False: 5]
  ------------------
  269|      1|        && (OPENSSL_strcasecmp(di->input_type, "DER") != 0
  ------------------
  |  Branch (269:13): [True: 1, False: 0]
  ------------------
  270|      1|            || OPENSSL_strcasecmp(data->ctx->start_input_type, "PEM") != 0)) {
  ------------------
  |  Branch (270:16): [True: 0, False: 0]
  ------------------
  271|       |        /* Mismatch is not an error, continue. */
  272|      1|        ossl_decoder_instance_free(di);
  273|      1|        return 0;
  274|      1|    }
  275|       |
  276|      5|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  221|      5|    do {                           \
  |  |  222|      5|        BIO *trc_out = NULL;       \
  |  |  223|      5|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 5]
  |  |  ------------------
  ------------------
  277|      0|    {
  278|      0|        BIO_printf(trc_out,
  279|      0|            "(ctx %p) Checking out decoder %p:\n"
  280|      0|            "    %s with %s\n",
  281|      0|            (void *)data->ctx, (void *)decoder,
  282|      0|            OSSL_DECODER_get0_name(decoder),
  283|      0|            OSSL_DECODER_get0_properties(decoder));
  284|      0|    }
  285|      5|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  226|      5|    }                            \
  |  |  227|      5|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 5]
  |  |  ------------------
  ------------------
  286|       |
  287|       |    /*
  288|       |     * Get the property match score so the decoders can be prioritized later.
  289|       |     */
  290|      5|    props = ossl_decoder_parsed_properties(decoder);
  291|      5|    if (data->pq != NULL && props != NULL) {
  ------------------
  |  Branch (291:9): [True: 0, False: 5]
  |  Branch (291:29): [True: 0, False: 0]
  ------------------
  292|      0|        di->score = ossl_property_match_count(data->pq, props);
  293|       |        /*
  294|       |         * Mismatch of mandatory properties is not an error, the decoder is just
  295|       |         * ignored, continue.
  296|       |         */
  297|      0|        if (di->score < 0) {
  ------------------
  |  Branch (297:13): [True: 0, False: 0]
  ------------------
  298|      0|            ossl_decoder_instance_free(di);
  299|      0|            return 0;
  300|      0|        }
  301|      0|    }
  302|       |
  303|      5|    if (!ossl_decoder_ctx_add_decoder_inst(data->ctx, di)) {
  ------------------
  |  Branch (303:9): [True: 0, False: 5]
  ------------------
  304|      0|        ossl_decoder_instance_free(di);
  305|      0|        data->error_occurred = 1;
  306|      0|        return 0;
  307|      0|    }
  308|       |
  309|      5|    ++data->total;
  310|      5|    return 1;
  311|      5|}
decoder_pkey.c:decoder_construct_pkey:
   74|  63.9k|{
   75|  63.9k|    struct decoder_pkey_data_st *data = construct_data;
   76|  63.9k|    OSSL_DECODER *decoder = OSSL_DECODER_INSTANCE_get_decoder(decoder_inst);
   77|  63.9k|    void *decoderctx = OSSL_DECODER_INSTANCE_get_decoder_ctx(decoder_inst);
   78|  63.9k|    const OSSL_PROVIDER *decoder_prov = OSSL_DECODER_get0_provider(decoder);
   79|  63.9k|    EVP_KEYMGMT *keymgmt = NULL;
   80|  63.9k|    const OSSL_PROVIDER *keymgmt_prov = NULL;
   81|  63.9k|    int i, end;
   82|       |    /*
   83|       |     * |object_ref| points to a provider reference to an object, its exact
   84|       |     * contents entirely opaque to us, but may be passed to any provider
   85|       |     * function that expects this (such as OSSL_FUNC_keymgmt_load().
   86|       |     *
   87|       |     * This pointer is considered volatile, i.e. whatever it points at
   88|       |     * is assumed to be freed as soon as this function returns.
   89|       |     */
   90|  63.9k|    void *object_ref = NULL;
   91|  63.9k|    size_t object_ref_sz = 0;
   92|  63.9k|    const OSSL_PARAM *p;
   93|       |
   94|  63.9k|    p = OSSL_PARAM_locate_const(params, OSSL_OBJECT_PARAM_DATA_TYPE);
  ------------------
  |  |  358|  63.9k|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
   95|  63.9k|    if (p != NULL) {
  ------------------
  |  Branch (95:9): [True: 63.9k, False: 0]
  ------------------
   96|  63.9k|        char *object_type = NULL;
   97|       |
   98|  63.9k|        if (!OSSL_PARAM_get_utf8_string(p, &object_type, 0))
  ------------------
  |  Branch (98:13): [True: 0, False: 63.9k]
  ------------------
   99|      0|            return 0;
  100|  63.9k|        OPENSSL_free(data->object_type);
  ------------------
  |  |  131|  63.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  101|  63.9k|        data->object_type = object_type;
  102|  63.9k|    }
  103|       |
  104|       |    /*
  105|       |     * For stuff that should end up in an EVP_PKEY, we only accept an object
  106|       |     * reference for the moment.  This enforces that the key data itself
  107|       |     * remains with the provider.
  108|       |     */
  109|  63.9k|    p = OSSL_PARAM_locate_const(params, OSSL_OBJECT_PARAM_REFERENCE);
  ------------------
  |  |  361|  63.9k|# define OSSL_OBJECT_PARAM_REFERENCE "reference"
  ------------------
  110|  63.9k|    if (p == NULL || p->data_type != OSSL_PARAM_OCTET_STRING)
  ------------------
  |  |  123|  31.9k|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  |  Branch (110:9): [True: 31.9k, False: 31.9k]
  |  Branch (110:22): [True: 0, False: 31.9k]
  ------------------
  111|  31.9k|        return 0;
  112|  31.9k|    object_ref = p->data;
  113|  31.9k|    object_ref_sz = p->data_size;
  114|       |
  115|       |    /*
  116|       |     * First, we try to find a keymgmt that comes from the same provider as
  117|       |     * the decoder that passed the params.
  118|       |     */
  119|  31.9k|    end = sk_EVP_KEYMGMT_num(data->keymgmts);
  120|  31.9k|    for (i = 0; i < end; i++) {
  ------------------
  |  Branch (120:17): [True: 31.9k, False: 0]
  ------------------
  121|  31.9k|        keymgmt = sk_EVP_KEYMGMT_value(data->keymgmts, i);
  122|  31.9k|        keymgmt_prov = EVP_KEYMGMT_get0_provider(keymgmt);
  123|       |
  124|  31.9k|        if (keymgmt_prov == decoder_prov
  ------------------
  |  Branch (124:13): [True: 31.9k, False: 0]
  ------------------
  125|  31.9k|            && evp_keymgmt_has_load(keymgmt)
  ------------------
  |  Branch (125:16): [True: 31.9k, False: 0]
  ------------------
  126|  31.9k|            && EVP_KEYMGMT_is_a(keymgmt, data->object_type))
  ------------------
  |  Branch (126:16): [True: 31.9k, False: 0]
  ------------------
  127|  31.9k|            break;
  128|  31.9k|    }
  129|  31.9k|    if (i < end) {
  ------------------
  |  Branch (129:9): [True: 31.9k, False: 0]
  ------------------
  130|       |        /* To allow it to be freed further down */
  131|  31.9k|        if (!EVP_KEYMGMT_up_ref(keymgmt))
  ------------------
  |  Branch (131:13): [True: 0, False: 31.9k]
  ------------------
  132|      0|            return 0;
  133|  31.9k|    } else if ((keymgmt = EVP_KEYMGMT_fetch(data->libctx,
  ------------------
  |  Branch (133:16): [True: 0, False: 0]
  ------------------
  134|      0|                    data->object_type,
  135|      0|                    data->propq))
  136|      0|        != NULL) {
  137|      0|        keymgmt_prov = EVP_KEYMGMT_get0_provider(keymgmt);
  138|      0|    }
  139|       |
  140|  31.9k|    if (keymgmt != NULL) {
  ------------------
  |  Branch (140:9): [True: 31.9k, False: 0]
  ------------------
  141|  31.9k|        EVP_PKEY *pkey = NULL;
  142|  31.9k|        void *keydata = NULL;
  143|       |
  144|       |        /*
  145|       |         * If the EVP_KEYMGMT and the OSSL_DECODER are from the
  146|       |         * same provider, we assume that the KEYMGMT has a key loading
  147|       |         * function that can handle the provider reference we hold.
  148|       |         *
  149|       |         * Otherwise, we export from the decoder and import the
  150|       |         * result in the keymgmt.
  151|       |         */
  152|  31.9k|        if (keymgmt_prov == decoder_prov) {
  ------------------
  |  Branch (152:13): [True: 31.9k, False: 0]
  ------------------
  153|  31.9k|            keydata = evp_keymgmt_load(keymgmt, object_ref, object_ref_sz);
  154|  31.9k|        } else {
  155|      0|            struct evp_keymgmt_util_try_import_data_st import_data;
  156|       |
  157|      0|            import_data.keymgmt = keymgmt;
  158|      0|            import_data.keydata = NULL;
  159|      0|            if (data->selection == 0)
  ------------------
  |  Branch (159:17): [True: 0, False: 0]
  ------------------
  160|       |                /* import/export functions do not tolerate 0 selection */
  161|      0|                import_data.selection = OSSL_KEYMGMT_SELECT_ALL;
  ------------------
  |  |  652|      0|    (OSSL_KEYMGMT_SELECT_KEYPAIR | OSSL_KEYMGMT_SELECT_ALL_PARAMETERS)
  |  |  ------------------
  |  |  |  |  650|      0|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  |  |  ------------------
  |  |  |  |  |  |  640|      0|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  |  |  ------------------
  |  |  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  |  |  ------------------
  |  |  |  |  |  |  641|      0|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_KEYPAIR | OSSL_KEYMGMT_SELECT_ALL_PARAMETERS)
  |  |  ------------------
  |  |  |  |  647|      0|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  |  |  ------------------
  |  |  |  |  |  |  642|      0|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  |  |  ------------------
  |  |  |  |  648|      0|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  |  |  ------------------
  |  |  |  |  |  |  643|      0|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  162|      0|            else
  163|      0|                import_data.selection = data->selection;
  164|       |
  165|       |            /*
  166|       |             * No need to check for errors here, the value of
  167|       |             * |import_data.keydata| is as much an indicator.
  168|       |             */
  169|      0|            (void)decoder->export_object(decoderctx,
  170|      0|                object_ref, object_ref_sz,
  171|      0|                &evp_keymgmt_util_try_import,
  172|      0|                &import_data);
  173|      0|            keydata = import_data.keydata;
  174|      0|            import_data.keydata = NULL;
  175|      0|        }
  176|       |        /*
  177|       |         * When load or import fails, because this is not an acceptable key
  178|       |         * (despite the provided key material being syntactically valid), the
  179|       |         * reason why the key is rejected would be lost, unless we signal a
  180|       |         * hard error, and suppress resetting for another try.
  181|       |         */
  182|  31.9k|        if (keydata == NULL)
  ------------------
  |  Branch (182:13): [True: 0, False: 31.9k]
  ------------------
  183|      0|            ossl_decoder_ctx_set_harderr(data->ctx);
  184|       |
  185|  31.9k|        if (keydata != NULL
  ------------------
  |  Branch (185:13): [True: 31.9k, False: 0]
  ------------------
  186|  31.9k|            && (pkey = evp_keymgmt_util_make_pkey(keymgmt, keydata)) == NULL)
  ------------------
  |  Branch (186:16): [True: 0, False: 31.9k]
  ------------------
  187|      0|            evp_keymgmt_freedata(keymgmt, keydata);
  188|       |
  189|  31.9k|        *data->object = pkey;
  190|       |
  191|       |        /*
  192|       |         * evp_keymgmt_util_make_pkey() increments the reference count when
  193|       |         * assigning the EVP_PKEY, so we can free the keymgmt here.
  194|       |         */
  195|  31.9k|        EVP_KEYMGMT_free(keymgmt);
  196|  31.9k|    }
  197|       |    /*
  198|       |     * We successfully looked through, |*ctx->object| determines if we
  199|       |     * actually found something.
  200|       |     */
  201|       |    return (*data->object != NULL);
  202|  31.9k|}
decoder_pkey.c:decoder_clean_pkey_construct_arg:
  205|  31.9k|{
  206|  31.9k|    struct decoder_pkey_data_st *data = construct_data;
  207|       |
  208|  31.9k|    if (data != NULL) {
  ------------------
  |  Branch (208:9): [True: 31.9k, False: 2]
  ------------------
  209|  31.9k|        sk_EVP_KEYMGMT_pop_free(data->keymgmts, EVP_KEYMGMT_free);
  210|  31.9k|        OPENSSL_free(data->propq);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  211|  31.9k|        OPENSSL_free(data->object_type);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  212|  31.9k|        OPENSSL_free(data);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  213|  31.9k|    }
  214|  31.9k|}
decoder_pkey.c:ossl_decoder_ctx_for_pkey_dup:
  579|  31.9k|{
  580|  31.9k|    OSSL_DECODER_CTX *dest;
  581|  31.9k|    struct decoder_pkey_data_st *process_data_src, *process_data_dest = NULL;
  582|       |
  583|  31.9k|    if (src == NULL)
  ------------------
  |  Branch (583:9): [True: 0, False: 31.9k]
  ------------------
  584|      0|        return NULL;
  585|       |
  586|  31.9k|    if ((dest = OSSL_DECODER_CTX_new()) == NULL) {
  ------------------
  |  Branch (586:9): [True: 0, False: 31.9k]
  ------------------
  587|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  588|      0|        return NULL;
  589|      0|    }
  590|       |
  591|  31.9k|    if (!OSSL_DECODER_CTX_set_input_type(dest, input_type)
  ------------------
  |  Branch (591:9): [True: 0, False: 31.9k]
  ------------------
  592|  31.9k|        || !OSSL_DECODER_CTX_set_input_structure(dest, input_structure)) {
  ------------------
  |  Branch (592:12): [True: 0, False: 31.9k]
  ------------------
  593|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  594|      0|        goto err;
  595|      0|    }
  596|  31.9k|    dest->selection = src->selection;
  597|       |
  598|  31.9k|    if (src->decoder_insts != NULL) {
  ------------------
  |  Branch (598:9): [True: 31.9k, False: 0]
  ------------------
  599|  31.9k|        dest->decoder_insts
  600|  31.9k|            = sk_OSSL_DECODER_INSTANCE_deep_copy(src->decoder_insts,
  601|  31.9k|                ossl_decoder_instance_dup,
  602|  31.9k|                ossl_decoder_instance_free);
  603|  31.9k|        if (dest->decoder_insts == NULL) {
  ------------------
  |  Branch (603:13): [True: 0, False: 31.9k]
  ------------------
  604|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  605|      0|            goto err;
  606|      0|        }
  607|  31.9k|    }
  608|       |
  609|  31.9k|    if (!OSSL_DECODER_CTX_set_construct(dest,
  ------------------
  |  Branch (609:9): [True: 0, False: 31.9k]
  ------------------
  610|  31.9k|            OSSL_DECODER_CTX_get_construct(src))) {
  611|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  612|      0|        goto err;
  613|      0|    }
  614|       |
  615|  31.9k|    process_data_src = OSSL_DECODER_CTX_get_construct_data(src);
  616|  31.9k|    if (process_data_src != NULL) {
  ------------------
  |  Branch (616:9): [True: 31.9k, False: 0]
  ------------------
  617|  31.9k|        process_data_dest = OPENSSL_zalloc(sizeof(*process_data_dest));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  618|  31.9k|        if (process_data_dest == NULL) {
  ------------------
  |  Branch (618:13): [True: 0, False: 31.9k]
  ------------------
  619|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  620|      0|            goto err;
  621|      0|        }
  622|  31.9k|        if (process_data_src->propq != NULL) {
  ------------------
  |  Branch (622:13): [True: 0, False: 31.9k]
  ------------------
  623|      0|            process_data_dest->propq = OPENSSL_strdup(process_data_src->propq);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  624|      0|            if (process_data_dest->propq == NULL) {
  ------------------
  |  Branch (624:17): [True: 0, False: 0]
  ------------------
  625|      0|                ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  626|      0|                goto err;
  627|      0|            }
  628|      0|        }
  629|       |
  630|  31.9k|        if (process_data_src->keymgmts != NULL) {
  ------------------
  |  Branch (630:13): [True: 31.9k, False: 0]
  ------------------
  631|  31.9k|            process_data_dest->keymgmts
  632|  31.9k|                = sk_EVP_KEYMGMT_deep_copy(process_data_src->keymgmts,
  633|  31.9k|                    keymgmt_dup,
  634|  31.9k|                    EVP_KEYMGMT_free);
  635|  31.9k|            if (process_data_dest->keymgmts == NULL) {
  ------------------
  |  Branch (635:17): [True: 0, False: 31.9k]
  ------------------
  636|      0|                ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  637|      0|                goto err;
  638|      0|            }
  639|  31.9k|        }
  640|       |
  641|  31.9k|        process_data_dest->object = (void **)pkey;
  642|  31.9k|        process_data_dest->libctx = process_data_src->libctx;
  643|  31.9k|        process_data_dest->selection = process_data_src->selection;
  644|  31.9k|        process_data_dest->ctx = dest;
  645|  31.9k|        if (!OSSL_DECODER_CTX_set_construct_data(dest, process_data_dest)) {
  ------------------
  |  Branch (645:13): [True: 0, False: 31.9k]
  ------------------
  646|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  647|      0|            goto err;
  648|      0|        }
  649|  31.9k|        process_data_dest = NULL;
  650|  31.9k|    }
  651|       |
  652|  31.9k|    if (!OSSL_DECODER_CTX_set_cleanup(dest,
  ------------------
  |  Branch (652:9): [True: 0, False: 31.9k]
  ------------------
  653|  31.9k|            OSSL_DECODER_CTX_get_cleanup(src))) {
  654|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  655|      0|        goto err;
  656|      0|    }
  657|       |
  658|  31.9k|    return dest;
  659|      0|err:
  660|      0|    decoder_clean_pkey_construct_arg(process_data_dest);
  661|      0|    OSSL_DECODER_CTX_free(dest);
  662|       |    return NULL;
  663|  31.9k|}
decoder_pkey.c:keymgmt_dup:
  561|  40.7k|{
  562|  40.7k|    if (!EVP_KEYMGMT_up_ref((EVP_KEYMGMT *)keymgmt))
  ------------------
  |  Branch (562:9): [True: 0, False: 40.7k]
  ------------------
  563|      0|        return NULL;
  564|       |
  565|  40.7k|    return (EVP_KEYMGMT *)keymgmt;
  566|  40.7k|}

engine_load_dynamic_int:
  251|      2|{
  252|      2|    ENGINE *toadd = engine_dynamic();
  253|      2|    if (!toadd)
  ------------------
  |  Branch (253:9): [True: 0, False: 2]
  ------------------
  254|      0|        return;
  255|       |
  256|      2|    ERR_set_mark();
  257|      2|    ENGINE_add(toadd);
  258|       |    /*
  259|       |     * If the "add" worked, it gets a structural reference. So either way, we
  260|       |     * release our just-created reference.
  261|       |     */
  262|      2|    ENGINE_free(toadd);
  263|       |    /*
  264|       |     * If the "add" didn't work, it was probably a conflict because it was
  265|       |     * already added (eg. someone calling ENGINE_load_blah then calling
  266|       |     * ENGINE_load_builtin_engines() perhaps).
  267|       |     */
  268|      2|    ERR_pop_to_mark();
  269|      2|}
eng_dyn.c:engine_dynamic:
  239|      2|{
  240|      2|    ENGINE *ret = ENGINE_new();
  241|      2|    if (ret == NULL)
  ------------------
  |  Branch (241:9): [True: 0, False: 2]
  ------------------
  242|      0|        return NULL;
  243|      2|    if (!ENGINE_set_id(ret, engine_dynamic_id) || !ENGINE_set_name(ret, engine_dynamic_name) || !ENGINE_set_init_function(ret, dynamic_init) || !ENGINE_set_finish_function(ret, dynamic_finish) || !ENGINE_set_ctrl_function(ret, dynamic_ctrl) || !ENGINE_set_flags(ret, ENGINE_FLAGS_BY_ID_COPY) || !ENGINE_set_cmd_defns(ret, dynamic_cmd_defns)) {
  ------------------
  |  |   88|      2|#define ENGINE_FLAGS_BY_ID_COPY (int)0x0004
  ------------------
  |  Branch (243:9): [True: 0, False: 2]
  |  Branch (243:51): [True: 0, False: 2]
  |  Branch (243:97): [True: 0, False: 2]
  |  Branch (243:145): [True: 0, False: 2]
  |  Branch (243:197): [True: 0, False: 2]
  |  Branch (243:245): [True: 0, False: 2]
  |  Branch (243:296): [True: 0, False: 2]
  ------------------
  244|      0|        ENGINE_free(ret);
  245|      0|        return NULL;
  246|      0|    }
  247|      2|    return ret;
  248|      2|}

ossl_err_load_ENGINE_strings:
   85|      2|{
   86|      2|#ifndef OPENSSL_NO_ERR
   87|      2|    if (ERR_reason_error_string(ENGINE_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (87:9): [True: 2, False: 0]
  ------------------
   88|      2|        ERR_load_strings_const(ENGINE_str_reasons);
   89|      2|#endif
   90|      2|    return 1;
   91|      2|}

ENGINE_register_complete:
   94|      4|{
   95|      4|    ENGINE_register_ciphers(e);
   96|      4|    ENGINE_register_digests(e);
   97|      4|    ENGINE_register_RSA(e);
   98|      4|#ifndef OPENSSL_NO_DSA
   99|      4|    ENGINE_register_DSA(e);
  100|      4|#endif
  101|      4|#ifndef OPENSSL_NO_DH
  102|      4|    ENGINE_register_DH(e);
  103|      4|#endif
  104|      4|#ifndef OPENSSL_NO_EC
  105|      4|    ENGINE_register_EC(e);
  106|      4|#endif
  107|      4|    ENGINE_register_RAND(e);
  108|      4|    ENGINE_register_pkey_meths(e);
  109|      4|    ENGINE_register_pkey_asn1_meths(e);
  110|      4|    return 1;
  111|      4|}
ENGINE_register_all_complete:
  114|      2|{
  115|      2|    ENGINE *e;
  116|       |
  117|      8|    for (e = ENGINE_get_first(); e; e = ENGINE_get_next(e))
  ------------------
  |  Branch (117:34): [True: 6, False: 2]
  ------------------
  118|      6|        if (!(e->flags & ENGINE_FLAGS_NO_REGISTER_ALL))
  ------------------
  |  |   96|      6|#define ENGINE_FLAGS_NO_REGISTER_ALL (int)0x0008
  ------------------
  |  Branch (118:13): [True: 4, False: 2]
  ------------------
  119|      4|            ENGINE_register_complete(e);
  120|      2|    return 1;
  121|      2|}

ENGINE_finish:
  107|   537k|{
  108|   537k|    int to_return = 1;
  109|       |
  110|   537k|    if (e == NULL)
  ------------------
  |  Branch (110:9): [True: 537k, False: 0]
  ------------------
  111|   537k|        return 1;
  112|      0|    if (!CRYPTO_THREAD_write_lock(global_engine_lock))
  ------------------
  |  Branch (112:9): [True: 0, False: 0]
  ------------------
  113|      0|        return 0;
  114|      0|    to_return = engine_unlocked_finish(e, 1);
  115|      0|    CRYPTO_THREAD_unlock(global_engine_lock);
  116|      0|    if (!to_return) {
  ------------------
  |  Branch (116:9): [True: 0, False: 0]
  ------------------
  117|      0|        ERR_raise(ERR_LIB_ENGINE, ENGINE_R_FINISH_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  118|      0|        return 0;
  119|      0|    }
  120|      0|    return to_return;
  121|      0|}

ENGINE_new:
   28|      6|{
   29|      6|    ENGINE *ret;
   30|       |
   31|      6|    if (!RUN_ONCE(&engine_lock_init, do_engine_lock_init)) {
  ------------------
  |  |  130|      6|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 6, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (31:9): [True: 0, False: 6]
  ------------------
   32|       |        /* Maybe this should be raised in do_engine_lock_init() */
   33|      0|        ERR_raise(ERR_LIB_ENGINE, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   34|      0|        return 0;
   35|      0|    }
   36|      6|    if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  108|      6|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (36:9): [True: 0, False: 6]
  ------------------
   37|      0|        return NULL;
   38|      6|    if (!CRYPTO_NEW_REF(&ret->struct_ref, 1)) {
  ------------------
  |  Branch (38:9): [True: 0, False: 6]
  ------------------
   39|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   40|      0|        return NULL;
   41|      0|    }
   42|      6|    ENGINE_REF_PRINT(ret, 0, 1);
  ------------------
  |  |   29|      6|    OSSL_TRACE6(ENGINE_REF_COUNT,                         \
  |  |  ------------------
  |  |  |  |  303|      6|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6))
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|      6|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      6|        "engine: %p %s from %d to %d (%s:%d)\n",          \
  |  |   31|      6|        (void *)(e), (isfunct ? "funct" : "struct"),      \
  |  |   32|      6|        ((isfunct)                                        \
  |  |   33|      6|                ? ((e)->funct_ref - (diff))               \
  |  |   34|      6|                : (eng_struct_ref(e) - (diff))),          \
  |  |   35|      6|        ((isfunct) ? (e)->funct_ref : eng_struct_ref(e)), \
  |  |   36|      6|        (OPENSSL_FILE), (OPENSSL_LINE))
  ------------------
   43|      6|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ENGINE, ret, &ret->ex_data)) {
  ------------------
  |  |  260|      6|#define CRYPTO_EX_INDEX_ENGINE 10
  ------------------
  |  Branch (43:9): [True: 0, False: 6]
  ------------------
   44|      0|        CRYPTO_FREE_REF(&ret->struct_ref);
   45|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   46|      0|        return NULL;
   47|      0|    }
   48|      6|    return ret;
   49|      6|}
engine_free_util:
   78|     12|{
   79|     12|    int i;
   80|       |
   81|     12|    if (e == NULL)
  ------------------
  |  Branch (81:9): [True: 0, False: 12]
  ------------------
   82|      0|        return 1;
   83|     12|    CRYPTO_DOWN_REF(&e->struct_ref, &i);
   84|     12|    ENGINE_REF_PRINT(e, 0, -1);
  ------------------
  |  |   29|     12|    OSSL_TRACE6(ENGINE_REF_COUNT,                         \
  |  |  ------------------
  |  |  |  |  303|     12|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6))
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|     12|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|     12|        "engine: %p %s from %d to %d (%s:%d)\n",          \
  |  |   31|     12|        (void *)(e), (isfunct ? "funct" : "struct"),      \
  |  |   32|     12|        ((isfunct)                                        \
  |  |   33|     12|                ? ((e)->funct_ref - (diff))               \
  |  |   34|     12|                : (eng_struct_ref(e) - (diff))),          \
  |  |   35|     12|        ((isfunct) ? (e)->funct_ref : eng_struct_ref(e)), \
  |  |   36|     12|        (OPENSSL_FILE), (OPENSSL_LINE))
  ------------------
   85|     12|    if (i > 0)
  ------------------
  |  Branch (85:9): [True: 12, False: 0]
  ------------------
   86|     12|        return 1;
   87|      0|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|      0|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   88|       |    /* Free up any dynamically allocated public key methods */
   89|      0|    engine_pkey_meths_free(e);
   90|      0|    engine_pkey_asn1_meths_free(e);
   91|       |    /*
   92|       |     * Give the ENGINE a chance to do any structural cleanup corresponding to
   93|       |     * allocation it did in its constructor (eg. unload error strings)
   94|       |     */
   95|      0|    if (e->destroy)
  ------------------
  |  Branch (95:9): [True: 0, False: 0]
  ------------------
   96|      0|        e->destroy(e);
   97|      0|    engine_remove_dynamic_id(e, not_locked);
   98|      0|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ENGINE, e, &e->ex_data);
  ------------------
  |  |  260|      0|#define CRYPTO_EX_INDEX_ENGINE 10
  ------------------
   99|      0|    CRYPTO_FREE_REF(&e->struct_ref);
  100|      0|    OPENSSL_free(e);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  101|      0|    return 1;
  102|     12|}
ENGINE_free:
  105|     12|{
  106|     12|    return engine_free_util(e, 1);
  107|     12|}
engine_cleanup_add_last:
  154|      2|{
  155|      2|    ENGINE_CLEANUP_ITEM *item;
  156|       |
  157|      2|    if (!int_cleanup_check(1))
  ------------------
  |  Branch (157:9): [True: 0, False: 2]
  ------------------
  158|      0|        return 0;
  159|      2|    item = int_cleanup_item(cb);
  160|      2|    if (item != NULL) {
  ------------------
  |  Branch (160:9): [True: 2, False: 0]
  ------------------
  161|      2|        if (sk_ENGINE_CLEANUP_ITEM_push(cleanup_stack, item) > 0)
  ------------------
  |  Branch (161:13): [True: 2, False: 0]
  ------------------
  162|      2|            return 1;
  163|      0|        OPENSSL_free(item);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  164|      0|    }
  165|      0|    return 0;
  166|      2|}
ENGINE_set_id:
  204|      6|{
  205|      6|    if (id == NULL) {
  ------------------
  |  Branch (205:9): [True: 0, False: 6]
  ------------------
  206|      0|        ERR_raise(ERR_LIB_ENGINE, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  207|      0|        return 0;
  208|      0|    }
  209|      6|    e->id = id;
  210|      6|    return 1;
  211|      6|}
ENGINE_set_name:
  214|      6|{
  215|      6|    if (name == NULL) {
  ------------------
  |  Branch (215:9): [True: 0, False: 6]
  ------------------
  216|      0|        ERR_raise(ERR_LIB_ENGINE, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  217|      0|        return 0;
  218|      0|    }
  219|      6|    e->name = name;
  220|      6|    return 1;
  221|      6|}
ENGINE_set_init_function:
  230|      6|{
  231|      6|    e->init = init_f;
  232|      6|    return 1;
  233|      6|}
ENGINE_set_finish_function:
  236|      2|{
  237|      2|    e->finish = finish_f;
  238|      2|    return 1;
  239|      2|}
ENGINE_set_ctrl_function:
  242|      2|{
  243|      2|    e->ctrl = ctrl_f;
  244|      2|    return 1;
  245|      2|}
ENGINE_set_flags:
  248|      4|{
  249|      4|    e->flags = flags;
  250|      4|    return 1;
  251|      4|}
ENGINE_set_cmd_defns:
  254|      2|{
  255|      2|    e->cmd_defns = defns;
  256|      2|    return 1;
  257|      2|}
eng_lib.c:do_engine_lock_init:
   22|      2|{
   23|      2|    global_engine_lock = CRYPTO_THREAD_lock_new();
   24|       |    return global_engine_lock != NULL;
   25|      2|}
eng_lib.c:int_cleanup_check:
  119|      2|{
  120|      2|    if (cleanup_stack)
  ------------------
  |  Branch (120:9): [True: 0, False: 2]
  ------------------
  121|      0|        return 1;
  122|      2|    if (!create)
  ------------------
  |  Branch (122:9): [True: 0, False: 2]
  ------------------
  123|      0|        return 0;
  124|      2|    cleanup_stack = sk_ENGINE_CLEANUP_ITEM_new_null();
  125|      2|    return (cleanup_stack ? 1 : 0);
  ------------------
  |  Branch (125:13): [True: 2, False: 0]
  ------------------
  126|      2|}
eng_lib.c:int_cleanup_item:
  129|      2|{
  130|      2|    ENGINE_CLEANUP_ITEM *item;
  131|       |
  132|      2|    if ((item = OPENSSL_malloc(sizeof(*item))) == NULL)
  ------------------
  |  |  106|      2|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (132:9): [True: 0, False: 2]
  ------------------
  133|      0|        return NULL;
  134|      2|    item->cb = cb;
  135|      2|    return item;
  136|      2|}

ENGINE_get_first:
  230|      2|{
  231|      2|    ENGINE *ret;
  232|       |
  233|      2|    if (!RUN_ONCE(&engine_lock_init, do_engine_lock_init)) {
  ------------------
  |  |  130|      2|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (233:9): [True: 0, False: 2]
  ------------------
  234|       |        /* Maybe this should be raised in do_engine_lock_init() */
  235|      0|        ERR_raise(ERR_LIB_ENGINE, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  236|      0|        return NULL;
  237|      0|    }
  238|       |
  239|      2|    if (!CRYPTO_THREAD_write_lock(global_engine_lock))
  ------------------
  |  Branch (239:9): [True: 0, False: 2]
  ------------------
  240|      0|        return NULL;
  241|      2|    ret = engine_list_head;
  242|      2|    if (ret) {
  ------------------
  |  Branch (242:9): [True: 2, False: 0]
  ------------------
  243|      2|        int ref;
  244|       |
  245|      2|        if (!CRYPTO_UP_REF(&ret->struct_ref, &ref)) {
  ------------------
  |  Branch (245:13): [True: 0, False: 2]
  ------------------
  246|      0|            CRYPTO_THREAD_unlock(global_engine_lock);
  247|      0|            ERR_raise(ERR_LIB_ENGINE, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  248|      0|            return NULL;
  249|      0|        }
  250|      2|        ENGINE_REF_PRINT(ret, 0, 1);
  ------------------
  |  |   29|      2|    OSSL_TRACE6(ENGINE_REF_COUNT,                         \
  |  |  ------------------
  |  |  |  |  303|      2|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6))
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      2|        "engine: %p %s from %d to %d (%s:%d)\n",          \
  |  |   31|      2|        (void *)(e), (isfunct ? "funct" : "struct"),      \
  |  |   32|      2|        ((isfunct)                                        \
  |  |   33|      2|                ? ((e)->funct_ref - (diff))               \
  |  |   34|      2|                : (eng_struct_ref(e) - (diff))),          \
  |  |   35|      2|        ((isfunct) ? (e)->funct_ref : eng_struct_ref(e)), \
  |  |   36|      2|        (OPENSSL_FILE), (OPENSSL_LINE))
  ------------------
  251|      2|    }
  252|      2|    CRYPTO_THREAD_unlock(global_engine_lock);
  253|      2|    return ret;
  254|      2|}
ENGINE_get_next:
  285|      6|{
  286|      6|    ENGINE *ret = NULL;
  287|      6|    if (e == NULL) {
  ------------------
  |  Branch (287:9): [True: 0, False: 6]
  ------------------
  288|      0|        ERR_raise(ERR_LIB_ENGINE, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  289|      0|        return NULL;
  290|      0|    }
  291|      6|    if (!CRYPTO_THREAD_write_lock(global_engine_lock))
  ------------------
  |  Branch (291:9): [True: 0, False: 6]
  ------------------
  292|      0|        return NULL;
  293|      6|    ret = e->next;
  294|      6|    if (ret) {
  ------------------
  |  Branch (294:9): [True: 4, False: 2]
  ------------------
  295|      4|        int ref;
  296|       |
  297|       |        /* Return a valid structural reference to the next ENGINE */
  298|      4|        if (!CRYPTO_UP_REF(&ret->struct_ref, &ref)) {
  ------------------
  |  Branch (298:13): [True: 0, False: 4]
  ------------------
  299|      0|            CRYPTO_THREAD_unlock(global_engine_lock);
  300|      0|            ERR_raise(ERR_LIB_ENGINE, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  301|      0|            return NULL;
  302|      0|        }
  303|      4|        ENGINE_REF_PRINT(ret, 0, 1);
  ------------------
  |  |   29|      4|    OSSL_TRACE6(ENGINE_REF_COUNT,                         \
  |  |  ------------------
  |  |  |  |  303|      4|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6))
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|      4|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      4|        "engine: %p %s from %d to %d (%s:%d)\n",          \
  |  |   31|      4|        (void *)(e), (isfunct ? "funct" : "struct"),      \
  |  |   32|      4|        ((isfunct)                                        \
  |  |   33|      4|                ? ((e)->funct_ref - (diff))               \
  |  |   34|      4|                : (eng_struct_ref(e) - (diff))),          \
  |  |   35|      4|        ((isfunct) ? (e)->funct_ref : eng_struct_ref(e)), \
  |  |   36|      4|        (OPENSSL_FILE), (OPENSSL_LINE))
  ------------------
  304|      4|    }
  305|      6|    CRYPTO_THREAD_unlock(global_engine_lock);
  306|       |    /* Release the structural reference to the previous ENGINE */
  307|      6|    ENGINE_free(e);
  308|      6|    return ret;
  309|      6|}
ENGINE_add:
  340|      6|{
  341|      6|    int to_return = 1;
  342|      6|    if (e == NULL) {
  ------------------
  |  Branch (342:9): [True: 0, False: 6]
  ------------------
  343|      0|        ERR_raise(ERR_LIB_ENGINE, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  344|      0|        return 0;
  345|      0|    }
  346|      6|    if ((e->id == NULL) || (e->name == NULL)) {
  ------------------
  |  Branch (346:9): [True: 0, False: 6]
  |  Branch (346:28): [True: 0, False: 6]
  ------------------
  347|      0|        ERR_raise(ERR_LIB_ENGINE, ENGINE_R_ID_OR_NAME_MISSING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  348|      0|        return 0;
  349|      0|    }
  350|      6|    if (!CRYPTO_THREAD_write_lock(global_engine_lock))
  ------------------
  |  Branch (350:9): [True: 0, False: 6]
  ------------------
  351|      0|        return 0;
  352|      6|    if (!engine_list_add(e)) {
  ------------------
  |  Branch (352:9): [True: 0, False: 6]
  ------------------
  353|       |        ERR_raise(ERR_LIB_ENGINE, ENGINE_R_INTERNAL_LIST_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  354|      0|        to_return = 0;
  355|      0|    }
  356|      6|    CRYPTO_THREAD_unlock(global_engine_lock);
  357|      6|    return to_return;
  358|      6|}
eng_list.c:engine_list_add:
   58|      6|{
   59|      6|    int conflict = 0;
   60|      6|    ENGINE *iterator = NULL;
   61|      6|    int ref;
   62|       |
   63|      6|    if (e == NULL) {
  ------------------
  |  Branch (63:9): [True: 0, False: 6]
  ------------------
   64|      0|        ERR_raise(ERR_LIB_ENGINE, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   65|      0|        return 0;
   66|      0|    }
   67|      6|    iterator = engine_list_head;
   68|     12|    while (iterator && !conflict) {
  ------------------
  |  Branch (68:12): [True: 6, False: 6]
  |  Branch (68:24): [True: 6, False: 0]
  ------------------
   69|      6|        conflict = (strcmp(iterator->id, e->id) == 0);
   70|      6|        iterator = iterator->next;
   71|      6|    }
   72|      6|    if (conflict) {
  ------------------
  |  Branch (72:9): [True: 0, False: 6]
  ------------------
   73|      0|        ERR_raise(ERR_LIB_ENGINE, ENGINE_R_CONFLICTING_ENGINE_ID);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   74|      0|        return 0;
   75|      0|    }
   76|       |
   77|       |    /*
   78|       |     * Having the engine in the list assumes a structural reference.
   79|       |     */
   80|      6|    if (!CRYPTO_UP_REF(&e->struct_ref, &ref)) {
  ------------------
  |  Branch (80:9): [True: 0, False: 6]
  ------------------
   81|      0|        ERR_raise(ERR_LIB_ENGINE, ENGINE_R_INTERNAL_LIST_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   82|      0|        return 0;
   83|      0|    }
   84|      6|    ENGINE_REF_PRINT(e, 0, 1);
  ------------------
  |  |   29|      6|    OSSL_TRACE6(ENGINE_REF_COUNT,                         \
  |  |  ------------------
  |  |  |  |  303|      6|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6))
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|      6|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      6|        "engine: %p %s from %d to %d (%s:%d)\n",          \
  |  |   31|      6|        (void *)(e), (isfunct ? "funct" : "struct"),      \
  |  |   32|      6|        ((isfunct)                                        \
  |  |   33|      6|                ? ((e)->funct_ref - (diff))               \
  |  |   34|      6|                : (eng_struct_ref(e) - (diff))),          \
  |  |   35|      6|        ((isfunct) ? (e)->funct_ref : eng_struct_ref(e)), \
  |  |   36|      6|        (OPENSSL_FILE), (OPENSSL_LINE))
  ------------------
   85|      6|    if (engine_list_head == NULL) {
  ------------------
  |  Branch (85:9): [True: 2, False: 4]
  ------------------
   86|       |        /* We are adding to an empty list. */
   87|      2|        if (engine_list_tail != NULL) {
  ------------------
  |  Branch (87:13): [True: 0, False: 2]
  ------------------
   88|      0|            CRYPTO_DOWN_REF(&e->struct_ref, &ref);
   89|      0|            ERR_raise(ERR_LIB_ENGINE, ENGINE_R_INTERNAL_LIST_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   90|      0|            return 0;
   91|      0|        }
   92|       |        /*
   93|       |         * The first time the list allocates, we should register the cleanup.
   94|       |         */
   95|      2|        if (!engine_cleanup_add_last(engine_list_cleanup)) {
  ------------------
  |  Branch (95:13): [True: 0, False: 2]
  ------------------
   96|      0|            CRYPTO_DOWN_REF(&e->struct_ref, &ref);
   97|      0|            ERR_raise(ERR_LIB_ENGINE, ENGINE_R_INTERNAL_LIST_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   98|      0|            return 0;
   99|      0|        }
  100|      2|        engine_list_head = e;
  101|      2|        e->prev = NULL;
  102|      4|    } else {
  103|       |        /* We are adding to the tail of an existing list. */
  104|      4|        if ((engine_list_tail == NULL) || (engine_list_tail->next != NULL)) {
  ------------------
  |  Branch (104:13): [True: 0, False: 4]
  |  Branch (104:43): [True: 0, False: 4]
  ------------------
  105|      0|            CRYPTO_DOWN_REF(&e->struct_ref, &ref);
  106|      0|            ERR_raise(ERR_LIB_ENGINE, ENGINE_R_INTERNAL_LIST_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  107|      0|            return 0;
  108|      0|        }
  109|      4|        engine_list_tail->next = e;
  110|      4|        e->prev = engine_list_tail;
  111|      4|    }
  112|       |
  113|       |    /* However it came to be, e is the last item in the list. */
  114|      6|    engine_list_tail = e;
  115|       |    e->next = NULL;
  116|      6|    return 1;
  117|      6|}

engine_load_rdrand_int:
   95|      2|{
   96|      2|    if (OPENSSL_ia32cap_P[1] & (1 << (62 - 32))) {
  ------------------
  |  Branch (96:9): [True: 2, False: 0]
  ------------------
   97|      2|        ENGINE *toadd = ENGINE_rdrand();
   98|      2|        if (!toadd)
  ------------------
  |  Branch (98:13): [True: 0, False: 2]
  ------------------
   99|      0|            return;
  100|      2|        ERR_set_mark();
  101|      2|        ENGINE_add(toadd);
  102|       |        /*
  103|       |         * If the "add" worked, it gets a structural reference. So either way, we
  104|       |         * release our just-created reference.
  105|       |         */
  106|      2|        ENGINE_free(toadd);
  107|       |        /*
  108|       |         * If the "add" didn't work, it was probably a conflict because it was
  109|       |         * already added (eg. someone calling ENGINE_load_blah then calling
  110|       |         * ENGINE_load_builtin_engines() perhaps).
  111|       |         */
  112|      2|        ERR_pop_to_mark();
  113|      2|    }
  114|      2|}
eng_rdrand.c:ENGINE_rdrand:
   83|      2|{
   84|      2|    ENGINE *ret = ENGINE_new();
   85|      2|    if (ret == NULL)
  ------------------
  |  Branch (85:9): [True: 0, False: 2]
  ------------------
   86|      0|        return NULL;
   87|      2|    if (!bind_helper(ret)) {
  ------------------
  |  Branch (87:9): [True: 0, False: 2]
  ------------------
   88|      0|        ENGINE_free(ret);
   89|      0|        return NULL;
   90|      0|    }
   91|      2|    return ret;
   92|      2|}
eng_rdrand.c:bind_helper:
   75|      2|{
   76|      2|    if (!ENGINE_set_id(e, engine_e_rdrand_id) || !ENGINE_set_name(e, engine_e_rdrand_name) || !ENGINE_set_flags(e, ENGINE_FLAGS_NO_REGISTER_ALL) || !ENGINE_set_init_function(e, rdrand_init) || !ENGINE_set_RAND(e, &rdrand_meth))
  ------------------
  |  |   96|      2|#define ENGINE_FLAGS_NO_REGISTER_ALL (int)0x0008
  ------------------
  |  Branch (76:9): [True: 0, False: 2]
  |  Branch (76:50): [True: 0, False: 2]
  |  Branch (76:95): [True: 0, False: 2]
  |  Branch (76:149): [True: 0, False: 2]
  |  Branch (76:194): [True: 0, False: 2]
  ------------------
   77|      0|        return 0;
   78|       |
   79|      2|    return 1;
   80|      2|}

ossl_engine_table_select:
  202|   157k|{
  203|   157k|    ENGINE *ret = NULL;
  204|   157k|    ENGINE_PILE tmplate, *fnd = NULL;
  205|   157k|    int initres, loop = 0;
  206|       |
  207|   157k|#ifndef OPENSSL_NO_AUTOLOAD_CONFIG
  208|       |    /* Load the config before trying to check if engines are available */
  209|   157k|    OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL);
  ------------------
  |  |  510|   157k|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  210|   157k|#endif
  211|       |
  212|   157k|    if (!(*table)) {
  ------------------
  |  Branch (212:9): [True: 157k, False: 0]
  ------------------
  213|   157k|        OSSL_TRACE3(ENGINE_TABLE,
  ------------------
  |  |  297|   157k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  ------------------
  |  |  |  |  285|   157k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  214|   157k|            "%s:%d, nid=%d, nothing registered!\n",
  215|   157k|            f, l, nid);
  216|   157k|        return NULL;
  217|   157k|    }
  218|       |
  219|      0|    if (!CRYPTO_THREAD_write_lock(global_engine_lock))
  ------------------
  |  Branch (219:9): [True: 0, False: 0]
  ------------------
  220|      0|        return NULL;
  221|       |
  222|      0|    ERR_set_mark();
  223|       |    /*
  224|       |     * Check again inside the lock otherwise we could race against cleanup
  225|       |     * operations. But don't worry about a debug printout
  226|       |     */
  227|      0|    if (!int_table_check(table, 0))
  ------------------
  |  Branch (227:9): [True: 0, False: 0]
  ------------------
  228|      0|        goto end;
  229|      0|    tmplate.nid = nid;
  230|      0|    fnd = lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate);
  231|      0|    if (!fnd)
  ------------------
  |  Branch (231:9): [True: 0, False: 0]
  ------------------
  232|      0|        goto end;
  233|      0|    if (fnd->funct && engine_unlocked_init(fnd->funct)) {
  ------------------
  |  Branch (233:9): [True: 0, False: 0]
  |  Branch (233:23): [True: 0, False: 0]
  ------------------
  234|      0|        OSSL_TRACE4(ENGINE_TABLE,
  ------------------
  |  |  299|      0|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4))
  |  |  ------------------
  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  235|      0|            "%s:%d, nid=%d, using ENGINE '%s' cached\n",
  236|      0|            f, l, nid, fnd->funct->id);
  237|      0|        ret = fnd->funct;
  238|      0|        goto end;
  239|      0|    }
  240|      0|    if (fnd->uptodate) {
  ------------------
  |  Branch (240:9): [True: 0, False: 0]
  ------------------
  241|      0|        ret = fnd->funct;
  242|      0|        goto end;
  243|      0|    }
  244|      0|trynext:
  245|      0|    ret = sk_ENGINE_value(fnd->sk, loop++);
  246|      0|    if (!ret) {
  ------------------
  |  Branch (246:9): [True: 0, False: 0]
  ------------------
  247|      0|        OSSL_TRACE3(ENGINE_TABLE,
  ------------------
  |  |  297|      0|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  ------------------
  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  248|      0|            "%s:%d, nid=%d, "
  249|      0|            "no registered implementations would initialise\n",
  250|      0|            f, l, nid);
  251|      0|        goto end;
  252|      0|    }
  253|       |    /* Try to initialise the ENGINE? */
  254|      0|    if ((ret->funct_ref > 0) || !(table_flags & ENGINE_TABLE_FLAG_NOINIT))
  ------------------
  |  |   64|      0|#define ENGINE_TABLE_FLAG_NOINIT (unsigned int)0x0001
  ------------------
  |  Branch (254:9): [True: 0, False: 0]
  |  Branch (254:33): [True: 0, False: 0]
  ------------------
  255|      0|        initres = engine_unlocked_init(ret);
  256|      0|    else
  257|      0|        initres = 0;
  258|      0|    if (initres) {
  ------------------
  |  Branch (258:9): [True: 0, False: 0]
  ------------------
  259|       |        /* Update 'funct' */
  260|      0|        if ((fnd->funct != ret) && engine_unlocked_init(ret)) {
  ------------------
  |  Branch (260:13): [True: 0, False: 0]
  |  Branch (260:36): [True: 0, False: 0]
  ------------------
  261|       |            /* If there was a previous default we release it. */
  262|      0|            if (fnd->funct)
  ------------------
  |  Branch (262:17): [True: 0, False: 0]
  ------------------
  263|      0|                engine_unlocked_finish(fnd->funct, 0);
  264|      0|            fnd->funct = ret;
  265|      0|            OSSL_TRACE4(ENGINE_TABLE,
  ------------------
  |  |  299|      0|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4))
  |  |  ------------------
  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  266|      0|                "%s:%d, nid=%d, setting default to '%s'\n",
  267|      0|                f, l, nid, ret->id);
  268|      0|        }
  269|      0|        OSSL_TRACE4(ENGINE_TABLE,
  ------------------
  |  |  299|      0|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4))
  |  |  ------------------
  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  270|      0|            "%s:%d, nid=%d, using newly initialised '%s'\n",
  271|      0|            f, l, nid, ret->id);
  272|      0|        goto end;
  273|      0|    }
  274|      0|    goto trynext;
  275|      0|end:
  276|       |    /*
  277|       |     * If it failed, it is unlikely to succeed again until some future
  278|       |     * registrations have taken place. In all cases, we cache.
  279|       |     */
  280|      0|    if (fnd)
  ------------------
  |  Branch (280:9): [True: 0, False: 0]
  ------------------
  281|      0|        fnd->uptodate = 1;
  282|      0|    if (ret)
  ------------------
  |  Branch (282:9): [True: 0, False: 0]
  ------------------
  283|      0|        OSSL_TRACE4(ENGINE_TABLE,
  ------------------
  |  |  299|      0|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4))
  |  |  ------------------
  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  284|      0|            "%s:%d, nid=%d, caching ENGINE '%s'\n",
  285|      0|            f, l, nid, ret->id);
  286|      0|    else
  287|      0|        OSSL_TRACE3(ENGINE_TABLE,
  ------------------
  |  |  297|      0|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  ------------------
  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  288|      0|            "%s:%d, nid=%d, caching 'no matching ENGINE'\n",
  289|      0|            f, l, nid);
  290|      0|    CRYPTO_THREAD_unlock(global_engine_lock);
  291|       |    /*
  292|       |     * Whatever happened, any failed init()s are not failures in this
  293|       |     * context, so clear our error state.
  294|       |     */
  295|      0|    ERR_pop_to_mark();
  296|      0|    return ret;
  297|      0|}
engine_table_doall:
  310|   155k|{
  311|   155k|    ENGINE_PILE_DOALL dall;
  312|   155k|    dall.cb = cb;
  313|   155k|    dall.arg = arg;
  314|   155k|    if (table)
  ------------------
  |  Branch (314:9): [True: 0, False: 155k]
  ------------------
  315|      0|        lh_ENGINE_PILE_doall_ENGINE_PILE_DOALL(&table->piles, int_dall, &dall);
  316|   155k|}

ENGINE_register_pkey_asn1_meths:
   39|      4|{
   40|      4|    if (e->pkey_asn1_meths) {
  ------------------
  |  Branch (40:9): [True: 0, False: 4]
  ------------------
   41|      0|        const int *nids;
   42|      0|        int num_nids = e->pkey_asn1_meths(e, NULL, &nids, 0);
   43|      0|        if (num_nids > 0)
  ------------------
  |  Branch (43:13): [True: 0, False: 0]
  ------------------
   44|      0|            return engine_table_register(&pkey_asn1_meth_table,
   45|      0|                engine_unregister_all_pkey_asn1_meths,
   46|      0|                e, nids, num_nids, 0);
   47|      0|    }
   48|      4|    return 1;
   49|      4|}
ENGINE_get_pkey_asn1_meth_engine:
   78|  75.2k|{
   79|  75.2k|    return ossl_engine_table_select(&pkey_asn1_meth_table, nid,
   80|  75.2k|        OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  314|       |#define OPENSSL_FILE __FILE__
  ------------------
                      OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  315|       |#define OPENSSL_LINE __LINE__
  ------------------
   81|  75.2k|}
ENGINE_pkey_asn1_find_str:
  191|   155k|{
  192|   155k|    ENGINE_FIND_STR fstr;
  193|   155k|    fstr.e = NULL;
  194|   155k|    fstr.ameth = NULL;
  195|   155k|    fstr.str = str;
  196|   155k|    fstr.len = len;
  197|       |
  198|   155k|    if (!RUN_ONCE(&engine_lock_init, do_engine_lock_init)) {
  ------------------
  |  |  130|   155k|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 155k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (198:9): [True: 0, False: 155k]
  ------------------
  199|       |        /* Maybe this should be raised in do_engine_lock_init() */
  200|      0|        ERR_raise(ERR_LIB_ENGINE, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  201|      0|        return NULL;
  202|      0|    }
  203|       |
  204|   155k|    if (!CRYPTO_THREAD_read_lock(global_engine_lock))
  ------------------
  |  Branch (204:9): [True: 0, False: 155k]
  ------------------
  205|      0|        return NULL;
  206|   155k|    engine_table_doall(pkey_asn1_meth_table, look_str_cb, &fstr);
  207|       |    /* If found obtain a structural reference to engine */
  208|   155k|    if (fstr.e != NULL) {
  ------------------
  |  Branch (208:9): [True: 0, False: 155k]
  ------------------
  209|      0|        int ref;
  210|       |
  211|      0|        if (!CRYPTO_UP_REF(&fstr.e->struct_ref, &ref)) {
  ------------------
  |  Branch (211:13): [True: 0, False: 0]
  ------------------
  212|      0|            CRYPTO_THREAD_unlock(global_engine_lock);
  213|      0|            ERR_raise(ERR_LIB_ENGINE, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  214|      0|            return NULL;
  215|      0|        }
  216|      0|        ENGINE_REF_PRINT(fstr.e, 0, 1);
  ------------------
  |  |   29|      0|    OSSL_TRACE6(ENGINE_REF_COUNT,                         \
  |  |  ------------------
  |  |  |  |  303|      0|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6))
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|        "engine: %p %s from %d to %d (%s:%d)\n",          \
  |  |   31|      0|        (void *)(e), (isfunct ? "funct" : "struct"),      \
  |  |   32|      0|        ((isfunct)                                        \
  |  |   33|      0|                ? ((e)->funct_ref - (diff))               \
  |  |   34|      0|                : (eng_struct_ref(e) - (diff))),          \
  |  |   35|      0|        ((isfunct) ? (e)->funct_ref : eng_struct_ref(e)), \
  |  |   36|      0|        (OPENSSL_FILE), (OPENSSL_LINE))
  ------------------
  217|      0|    }
  218|   155k|    *pe = fstr.e;
  219|   155k|    CRYPTO_THREAD_unlock(global_engine_lock);
  220|   155k|    return fstr.ameth;
  221|   155k|}

ENGINE_register_ciphers:
   28|      4|{
   29|      4|    if (e->ciphers) {
  ------------------
  |  Branch (29:9): [True: 0, False: 4]
  ------------------
   30|      0|        const int *nids;
   31|      0|        int num_nids = e->ciphers(e, NULL, &nids, 0);
   32|      0|        if (num_nids > 0)
  ------------------
  |  Branch (32:13): [True: 0, False: 0]
  ------------------
   33|      0|            return engine_table_register(&cipher_table,
   34|      0|                engine_unregister_all_ciphers, e,
   35|      0|                nids, num_nids, 0);
   36|      0|    }
   37|      4|    return 1;
   38|      4|}
ENGINE_get_cipher_engine:
   67|  5.06k|{
   68|  5.06k|    return ossl_engine_table_select(&cipher_table, nid,
   69|  5.06k|        OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  314|       |#define OPENSSL_FILE __FILE__
  ------------------
                      OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  315|       |#define OPENSSL_LINE __LINE__
  ------------------
   70|  5.06k|}

ENGINE_register_DH:
   29|      4|{
   30|      4|    if (e->dh_meth)
  ------------------
  |  Branch (30:9): [True: 0, False: 4]
  ------------------
   31|      0|        return engine_table_register(&dh_table,
   32|      0|            engine_unregister_all_DH, e, &dummy_nid,
   33|      0|            1, 0);
   34|      4|    return 1;
   35|      4|}

ENGINE_register_digests:
   28|      4|{
   29|      4|    if (e->digests) {
  ------------------
  |  Branch (29:9): [True: 0, False: 4]
  ------------------
   30|      0|        const int *nids;
   31|      0|        int num_nids = e->digests(e, NULL, &nids, 0);
   32|      0|        if (num_nids > 0)
  ------------------
  |  Branch (32:13): [True: 0, False: 0]
  ------------------
   33|      0|            return engine_table_register(&digest_table,
   34|      0|                engine_unregister_all_digests, e,
   35|      0|                nids, num_nids, 0);
   36|      0|    }
   37|      4|    return 1;
   38|      4|}
ENGINE_get_digest_engine:
   67|  7.24k|{
   68|  7.24k|    return ossl_engine_table_select(&digest_table, nid,
   69|  7.24k|        OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  314|       |#define OPENSSL_FILE __FILE__
  ------------------
                      OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  315|       |#define OPENSSL_LINE __LINE__
  ------------------
   70|  7.24k|}

ENGINE_register_DSA:
   29|      4|{
   30|      4|    if (e->dsa_meth)
  ------------------
  |  Branch (30:9): [True: 0, False: 4]
  ------------------
   31|      0|        return engine_table_register(&dsa_table,
   32|      0|            engine_unregister_all_DSA, e, &dummy_nid,
   33|      0|            1, 0);
   34|      4|    return 1;
   35|      4|}

ENGINE_register_EC:
   29|      4|{
   30|      4|    if (e->ec_meth != NULL)
  ------------------
  |  Branch (30:9): [True: 0, False: 4]
  ------------------
   31|      0|        return engine_table_register(&dh_table,
   32|      0|            engine_unregister_all_EC, e, &dummy_nid,
   33|      0|            1, 0);
   34|      4|    return 1;
   35|      4|}
ENGINE_get_default_EC:
   60|  8.76k|{
   61|  8.76k|    return ossl_engine_table_select(&dh_table, dummy_nid,
   62|  8.76k|        OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  314|       |#define OPENSSL_FILE __FILE__
  ------------------
                      OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  315|       |#define OPENSSL_LINE __LINE__
  ------------------
   63|  8.76k|}

ENGINE_register_pkey_meths:
   29|      4|{
   30|      4|    if (e->pkey_meths) {
  ------------------
  |  Branch (30:9): [True: 0, False: 4]
  ------------------
   31|      0|        const int *nids;
   32|      0|        int num_nids = e->pkey_meths(e, NULL, &nids, 0);
   33|      0|        if (num_nids > 0)
  ------------------
  |  Branch (33:13): [True: 0, False: 0]
  ------------------
   34|      0|            return engine_table_register(&pkey_meth_table,
   35|      0|                engine_unregister_all_pkey_meths, e,
   36|      0|                nids, num_nids, 0);
   37|      0|    }
   38|      4|    return 1;
   39|      4|}
ENGINE_get_pkey_meth_engine:
   68|  38.1k|{
   69|  38.1k|    return ossl_engine_table_select(&pkey_meth_table, nid,
   70|  38.1k|        OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  314|       |#define OPENSSL_FILE __FILE__
  ------------------
                      OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  315|       |#define OPENSSL_LINE __LINE__
  ------------------
   71|  38.1k|}

ENGINE_register_RAND:
   29|      4|{
   30|      4|    if (e->rand_meth)
  ------------------
  |  Branch (30:9): [True: 0, False: 4]
  ------------------
   31|      0|        return engine_table_register(&rand_table,
   32|      0|            engine_unregister_all_RAND, e,
   33|      0|            &dummy_nid, 1, 0);
   34|      4|    return 1;
   35|      4|}
ENGINE_get_default_RAND:
   60|      1|{
   61|      1|    return ossl_engine_table_select(&rand_table, dummy_nid,
   62|      1|        OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  314|       |#define OPENSSL_FILE __FILE__
  ------------------
                      OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  315|       |#define OPENSSL_LINE __LINE__
  ------------------
   63|      1|}
ENGINE_set_RAND:
   73|      2|{
   74|      2|    e->rand_meth = rand_meth;
   75|      2|    return 1;
   76|      2|}

ENGINE_register_RSA:
   29|      4|{
   30|      4|    if (e->rsa_meth)
  ------------------
  |  Branch (30:9): [True: 0, False: 4]
  ------------------
   31|      0|        return engine_table_register(&rsa_table,
   32|      0|            engine_unregister_all_RSA, e, &dummy_nid,
   33|      0|            1, 0);
   34|      4|    return 1;
   35|      4|}
ENGINE_get_default_RSA:
   60|  23.2k|{
   61|  23.2k|    return ossl_engine_table_select(&rsa_table, dummy_nid,
   62|  23.2k|        OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  314|       |#define OPENSSL_FILE __FILE__
  ------------------
                      OPENSSL_FILE, OPENSSL_LINE);
  ------------------
  |  |  315|       |#define OPENSSL_LINE __LINE__
  ------------------
   63|  23.2k|}

ossl_err_load_ERR_strings:
  269|     73|{
  270|     73|#ifndef OPENSSL_NO_ERR
  271|     73|    if (!RUN_ONCE(&err_string_init, do_err_strings_init))
  ------------------
  |  |  130|     73|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 73, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (271:9): [True: 0, False: 73]
  ------------------
  272|      0|        return 0;
  273|       |
  274|     73|    err_load_strings(ERR_str_libraries);
  275|     73|    err_load_strings(ERR_str_reasons);
  276|     73|#endif
  277|     73|    return 1;
  278|     73|}
ERR_load_strings_const:
  294|     71|{
  295|     71|#ifndef OPENSSL_NO_ERR
  296|     71|    if (ossl_err_load_ERR_strings() == 0)
  ------------------
  |  Branch (296:9): [True: 0, False: 71]
  ------------------
  297|      0|        return 0;
  298|     71|    err_load_strings(str);
  299|     71|#endif
  300|       |
  301|     71|    return 1;
  302|     71|}
ERR_clear_error:
  332|  8.27k|{
  333|  8.27k|    int i;
  334|  8.27k|    ERR_STATE *es;
  335|       |
  336|  8.27k|    es = ossl_err_get_state_int();
  337|  8.27k|    if (es == NULL)
  ------------------
  |  Branch (337:9): [True: 0, False: 8.27k]
  ------------------
  338|      0|        return;
  339|       |
  340|   140k|    for (i = 0; i < ERR_NUM_ERRORS; i++) {
  ------------------
  |  |   57|   140k|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (340:17): [True: 132k, False: 8.27k]
  ------------------
  341|   132k|        err_clear(es, i, 0);
  342|   132k|    }
  343|  8.27k|    es->top = es->bottom = 0;
  344|  8.27k|}
ERR_peek_error:
  372|  4.13k|{
  373|  4.13k|    return get_error_values(EV_PEEK, NULL, NULL, NULL, NULL, NULL);
  374|  4.13k|}
ERR_peek_last_error:
  407|  96.1k|{
  408|  96.1k|    return get_error_values(EV_PEEK_LAST, NULL, NULL, NULL, NULL, NULL);
  409|  96.1k|}
ERR_reason_error_string:
  609|     71|{
  610|     71|#ifndef OPENSSL_NO_ERR
  611|     71|    ERR_STRING_DATA d, *p = NULL;
  612|     71|    unsigned long l, r;
  613|       |
  614|     71|    if (!RUN_ONCE(&err_string_init, do_err_strings_init)) {
  ------------------
  |  |  130|     71|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 71, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (614:9): [True: 0, False: 71]
  ------------------
  615|      0|        return NULL;
  616|      0|    }
  617|       |
  618|       |    /*
  619|       |     * ERR_reason_error_string() can't safely return system error strings,
  620|       |     * since openssl_strerror_r() needs a buffer for thread safety, and we
  621|       |     * haven't got one that would serve any sensible purpose.
  622|       |     */
  623|     71|    if (ERR_SYSTEM_ERROR(e))
  ------------------
  |  |  241|     71|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  220|     71|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (241:35): [True: 0, False: 71]
  |  |  ------------------
  ------------------
  624|      0|        return NULL;
  625|       |
  626|     71|    l = ERR_GET_LIB(e);
  627|     71|    r = ERR_GET_REASON(e);
  628|     71|    d.error = ERR_PACK(l, 0, r);
  ------------------
  |  |  281|     71|    ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  229|     71|#define ERR_LIB_MASK 0xFF
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  228|     71|#define ERR_LIB_OFFSET 23L
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  232|     71|#define ERR_REASON_MASK 0X7FFFFF
  |  |  ------------------
  ------------------
  629|     71|    p = int_err_get_item(&d);
  630|     71|    if (p == NULL) {
  ------------------
  |  Branch (630:9): [True: 71, False: 0]
  ------------------
  631|     71|        d.error = ERR_PACK(0, 0, r);
  ------------------
  |  |  281|     71|    ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  229|     71|#define ERR_LIB_MASK 0xFF
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  228|     71|#define ERR_LIB_OFFSET 23L
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  232|     71|#define ERR_REASON_MASK 0X7FFFFF
  |  |  ------------------
  ------------------
  632|     71|        p = int_err_get_item(&d);
  633|     71|    }
  634|     71|    return ((p == NULL) ? NULL : p->string);
  ------------------
  |  Branch (634:13): [True: 71, False: 0]
  ------------------
  635|       |#else
  636|       |    return NULL;
  637|       |#endif
  638|     71|}
ossl_err_get_state_int:
  666|  1.50M|{
  667|  1.50M|    ERR_STATE *state;
  668|  1.50M|    int saveerrno = get_last_sys_error();
  ------------------
  |  |   30|  1.50M|#define get_last_sys_error() errno
  ------------------
  669|       |
  670|  1.50M|    if (!OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL))
  ------------------
  |  |   31|  1.50M|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (670:9): [True: 0, False: 1.50M]
  ------------------
  671|      0|        return NULL;
  672|       |
  673|  1.50M|    state = CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  674|  1.50M|        CRYPTO_THREAD_NO_CONTEXT);
  ------------------
  |  |   25|  1.50M|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  675|  1.50M|    if (state == (ERR_STATE *)-1)
  ------------------
  |  Branch (675:9): [True: 0, False: 1.50M]
  ------------------
  676|      0|        return NULL;
  677|       |
  678|  1.50M|    if (state == NULL) {
  ------------------
  |  Branch (678:9): [True: 2, False: 1.50M]
  ------------------
  679|      2|        if (!CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  ------------------
  |  Branch (679:13): [True: 0, False: 2]
  ------------------
  680|      2|                CRYPTO_THREAD_NO_CONTEXT, (ERR_STATE *)-1))
  ------------------
  |  |   25|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  681|      0|            return NULL;
  682|       |
  683|      2|        state = OSSL_ERR_STATE_new();
  684|      2|        if (state == NULL) {
  ------------------
  |  Branch (684:13): [True: 0, False: 2]
  ------------------
  685|      0|            CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  686|      0|                CRYPTO_THREAD_NO_CONTEXT, NULL);
  ------------------
  |  |   25|      0|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  687|      0|            return NULL;
  688|      0|        }
  689|       |
  690|      2|        if (!ossl_init_thread_start(NULL, NULL, err_delete_thread_state)
  ------------------
  |  Branch (690:13): [True: 0, False: 2]
  ------------------
  691|      2|            || !CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  ------------------
  |  Branch (691:16): [True: 0, False: 2]
  ------------------
  692|      2|                CRYPTO_THREAD_NO_CONTEXT, state)) {
  ------------------
  |  |   25|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  693|      0|            OSSL_ERR_STATE_free(state);
  694|      0|            CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  695|      0|                CRYPTO_THREAD_NO_CONTEXT, NULL);
  ------------------
  |  |   25|      0|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  696|      0|            return NULL;
  697|      0|        }
  698|       |
  699|       |        /* Ignore failures from these */
  700|      2|        OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
  ------------------
  |  |  505|      2|#define OPENSSL_INIT_LOAD_CRYPTO_STRINGS 0x00000002L
  ------------------
  701|      2|    }
  702|       |
  703|  1.50M|    set_sys_error(saveerrno);
  ------------------
  |  |   32|  1.50M|#define set_sys_error(e) errno = (e)
  ------------------
  704|  1.50M|    return state;
  705|  1.50M|}
err_shelve_state:
  719|      2|{
  720|      2|    int saveerrno = get_last_sys_error();
  ------------------
  |  |   30|      2|#define get_last_sys_error() errno
  ------------------
  721|       |
  722|       |    /*
  723|       |     * Note, at present our only caller is OPENSSL_init_crypto(), indirectly
  724|       |     * via ossl_init_load_crypto_nodelete(), by which point the requested
  725|       |     * "base" initialization has already been performed, so the below call is a
  726|       |     * NOOP, that re-enters OPENSSL_init_crypto() only to quickly return.
  727|       |     *
  728|       |     * If are no other valid callers of this function, the call below can be
  729|       |     * removed, avoiding the re-entry into OPENSSL_init_crypto().  If there are
  730|       |     * potential uses that are not from inside OPENSSL_init_crypto(), then this
  731|       |     * call is needed, but some care is required to make sure that the re-entry
  732|       |     * remains a NOOP.
  733|       |     */
  734|      2|    if (!OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL))
  ------------------
  |  |   31|      2|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (734:9): [True: 0, False: 2]
  ------------------
  735|      0|        return 0;
  736|       |
  737|      2|    *state = CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  738|      2|        CRYPTO_THREAD_NO_CONTEXT);
  ------------------
  |  |   25|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  739|      2|    if (!CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  ------------------
  |  Branch (739:9): [True: 0, False: 2]
  ------------------
  740|      2|            CRYPTO_THREAD_NO_CONTEXT, (ERR_STATE *)-1))
  ------------------
  |  |   25|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  741|      0|        return 0;
  742|       |
  743|      2|    set_sys_error(saveerrno);
  ------------------
  |  |   32|      2|#define set_sys_error(e) errno = (e)
  ------------------
  744|      2|    return 1;
  745|      2|}
err_unshelve_state:
  752|      2|{
  753|      2|    if (state != (void *)-1)
  ------------------
  |  Branch (753:9): [True: 2, False: 0]
  ------------------
  754|      2|        CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  755|      2|            CRYPTO_THREAD_NO_CONTEXT, (ERR_STATE *)state);
  ------------------
  |  |   25|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  756|      2|}
ERR_get_next_error_library:
  759|      1|{
  760|      1|    int ret;
  761|       |
  762|      1|    if (!RUN_ONCE(&err_string_init, do_err_strings_init))
  ------------------
  |  |  130|      1|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 1, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (762:9): [True: 0, False: 1]
  ------------------
  763|      0|        return 0;
  764|       |
  765|      1|    if (!CRYPTO_THREAD_write_lock(err_string_lock))
  ------------------
  |  Branch (765:9): [True: 0, False: 1]
  ------------------
  766|      0|        return 0;
  767|      1|    ret = int_err_library_number++;
  768|      1|    CRYPTO_THREAD_unlock(err_string_lock);
  769|      1|    return ret;
  770|      1|}
err.c:do_err_strings_init:
  213|      2|{
  214|      2|    if (!OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL))
  ------------------
  |  |   31|      2|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (214:9): [True: 0, False: 2]
  ------------------
  215|      0|        return 0;
  216|      2|    err_string_lock = CRYPTO_THREAD_lock_new();
  217|      2|    if (err_string_lock == NULL)
  ------------------
  |  Branch (217:9): [True: 0, False: 2]
  ------------------
  218|      0|        return 0;
  219|      2|#ifndef OPENSSL_NO_ERR
  220|      2|    int_error_hash = lh_ERR_STRING_DATA_new(err_string_data_hash,
  ------------------
  |  |  377|      2|#define lh_ERR_STRING_DATA_new(hfn, cmp) ((LHASH_OF(ERR_STRING_DATA) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new(ossl_check_ERR_STRING_DATA_lh_hashfunc_type(hfn), ossl_check_ERR_STRING_DATA_lh_compfunc_type(cmp)), lh_ERR_STRING_DATA_hash_thunk, lh_ERR_STRING_DATA_comp_thunk, lh_ERR_STRING_DATA_doall_thunk, lh_ERR_STRING_DATA_doall_arg_thunk))
  ------------------
  221|      2|        err_string_data_cmp);
  222|      2|    if (int_error_hash == NULL) {
  ------------------
  |  Branch (222:9): [True: 0, False: 2]
  ------------------
  223|      0|        CRYPTO_THREAD_lock_free(err_string_lock);
  224|      0|        err_string_lock = NULL;
  225|      0|        return 0;
  226|      0|    }
  227|      2|#endif
  228|      2|    return 1;
  229|      2|}
err.c:err_string_data_hash:
  171|  9.40k|{
  172|  9.40k|    unsigned long ret, l;
  173|       |
  174|  9.40k|    l = a->error;
  175|  9.40k|    ret = l ^ ERR_GET_LIB(l);
  176|  9.40k|    return (ret ^ ret % 19 * 13);
  177|  9.40k|}
err.c:err_string_data_cmp:
  181|  6.19k|{
  182|  6.19k|    if (a->error == b->error)
  ------------------
  |  Branch (182:9): [True: 5.82k, False: 372]
  ------------------
  183|  5.82k|        return 0;
  184|    372|    return a->error > b->error ? 1 : -1;
  ------------------
  |  Branch (184:12): [True: 199, False: 173]
  ------------------
  185|  6.19k|}
err.c:err_load_strings:
  257|    217|{
  258|    217|    if (!CRYPTO_THREAD_write_lock(err_string_lock))
  ------------------
  |  Branch (258:9): [True: 0, False: 217]
  ------------------
  259|      0|        return 0;
  260|  9.48k|    for (; str->error; str++)
  ------------------
  |  Branch (260:12): [True: 9.26k, False: 217]
  ------------------
  261|  9.26k|        (void)lh_ERR_STRING_DATA_insert(int_error_hash,
  ------------------
  |  |  380|  9.48k|#define lh_ERR_STRING_DATA_insert(lh, ptr) ((ERR_STRING_DATA *)OPENSSL_LH_insert(ossl_check_ERR_STRING_DATA_lh_type(lh), ossl_check_ERR_STRING_DATA_lh_plain_type(ptr)))
  ------------------
  262|    217|            (ERR_STRING_DATA *)str);
  263|    217|    CRYPTO_THREAD_unlock(err_string_lock);
  264|    217|    return 1;
  265|    217|}
err.c:get_error_values:
  445|   100k|{
  446|   100k|    int i = 0;
  447|   100k|    ERR_STATE *es;
  448|   100k|    unsigned long ret;
  449|       |
  450|   100k|    es = ossl_err_get_state_int();
  451|   100k|    if (es == NULL)
  ------------------
  |  Branch (451:9): [True: 0, False: 100k]
  ------------------
  452|      0|        return 0;
  453|       |
  454|       |    /*
  455|       |     * Clear anything that should have been cleared earlier. We do this
  456|       |     * here because this doesn't have constant-time issues.
  457|       |     */
  458|   100k|    while (es->bottom != es->top) {
  ------------------
  |  Branch (458:12): [True: 64.1k, False: 36.1k]
  ------------------
  459|  64.1k|        if (es->err_flags[es->top] & ERR_FLAG_CLEAR) {
  ------------------
  |  |   55|  64.1k|#define ERR_FLAG_CLEAR 0x02
  ------------------
  |  Branch (459:13): [True: 0, False: 64.1k]
  ------------------
  460|      0|            err_clear(es, es->top, 0);
  461|      0|            es->top = es->top > 0 ? es->top - 1 : ERR_NUM_ERRORS - 1;
  ------------------
  |  |   57|      0|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (461:23): [True: 0, False: 0]
  ------------------
  462|      0|            continue;
  463|      0|        }
  464|  64.1k|        i = (es->bottom + 1) % ERR_NUM_ERRORS;
  ------------------
  |  |   57|  64.1k|#define ERR_NUM_ERRORS 16
  ------------------
  465|  64.1k|        if (es->err_flags[i] & ERR_FLAG_CLEAR) {
  ------------------
  |  |   55|  64.1k|#define ERR_FLAG_CLEAR 0x02
  ------------------
  |  Branch (465:13): [True: 0, False: 64.1k]
  ------------------
  466|      0|            es->bottom = i;
  467|      0|            err_clear(es, es->bottom, 0);
  468|      0|            continue;
  469|      0|        }
  470|  64.1k|        break;
  471|  64.1k|    }
  472|       |
  473|       |    /* If everything has been cleared, the stack is empty. */
  474|   100k|    if (es->bottom == es->top)
  ------------------
  |  Branch (474:9): [True: 36.1k, False: 64.1k]
  ------------------
  475|  36.1k|        return 0;
  476|       |
  477|       |    /* Which error, the top of stack (latest one) or the first one? */
  478|  64.1k|    if (g == EV_PEEK_LAST)
  ------------------
  |  Branch (478:9): [True: 64.1k, False: 0]
  ------------------
  479|  64.1k|        i = es->top;
  480|      0|    else
  481|      0|        i = (es->bottom + 1) % ERR_NUM_ERRORS;
  ------------------
  |  |   57|      0|#define ERR_NUM_ERRORS 16
  ------------------
  482|       |
  483|  64.1k|    ret = es->err_buffer[i];
  484|  64.1k|    if (g == EV_POP) {
  ------------------
  |  Branch (484:9): [True: 0, False: 64.1k]
  ------------------
  485|      0|        es->bottom = i;
  486|      0|        es->err_buffer[i] = 0;
  487|      0|    }
  488|       |
  489|  64.1k|    if (file != NULL) {
  ------------------
  |  Branch (489:9): [True: 0, False: 64.1k]
  ------------------
  490|      0|        *file = es->err_file[i];
  491|      0|        if (*file == NULL)
  ------------------
  |  Branch (491:13): [True: 0, False: 0]
  ------------------
  492|      0|            *file = "";
  493|      0|    }
  494|  64.1k|    if (line != NULL)
  ------------------
  |  Branch (494:9): [True: 0, False: 64.1k]
  ------------------
  495|      0|        *line = es->err_line[i];
  496|  64.1k|    if (func != NULL) {
  ------------------
  |  Branch (496:9): [True: 0, False: 64.1k]
  ------------------
  497|      0|        *func = es->err_func[i];
  498|      0|        if (*func == NULL)
  ------------------
  |  Branch (498:13): [True: 0, False: 0]
  ------------------
  499|      0|            *func = "";
  500|      0|    }
  501|  64.1k|    if (flags != NULL)
  ------------------
  |  Branch (501:9): [True: 0, False: 64.1k]
  ------------------
  502|      0|        *flags = es->err_data_flags[i];
  503|  64.1k|    if (data == NULL) {
  ------------------
  |  Branch (503:9): [True: 64.1k, False: 0]
  ------------------
  504|  64.1k|        if (g == EV_POP) {
  ------------------
  |  Branch (504:13): [True: 0, False: 64.1k]
  ------------------
  505|      0|            err_clear_data(es, i, 0);
  506|      0|        }
  507|  64.1k|    } else {
  508|      0|        *data = es->err_data[i];
  509|      0|        if (*data == NULL) {
  ------------------
  |  Branch (509:13): [True: 0, False: 0]
  ------------------
  510|      0|            *data = "";
  511|      0|            if (flags != NULL)
  ------------------
  |  Branch (511:17): [True: 0, False: 0]
  ------------------
  512|      0|                *flags = 0;
  513|      0|        }
  514|      0|    }
  515|  64.1k|    return ret;
  516|   100k|}
err.c:int_err_get_item:
  188|    142|{
  189|    142|    ERR_STRING_DATA *p = NULL;
  190|       |
  191|    142|    if (!CRYPTO_THREAD_read_lock(err_string_lock))
  ------------------
  |  Branch (191:9): [True: 0, False: 142]
  ------------------
  192|      0|        return NULL;
  193|    142|    p = lh_ERR_STRING_DATA_retrieve(int_error_hash, d);
  ------------------
  |  |  382|    142|#define lh_ERR_STRING_DATA_retrieve(lh, ptr) ((ERR_STRING_DATA *)OPENSSL_LH_retrieve(ossl_check_ERR_STRING_DATA_lh_type(lh), ossl_check_const_ERR_STRING_DATA_lh_plain_type(ptr)))
  ------------------
  194|    142|    CRYPTO_THREAD_unlock(err_string_lock);
  195|       |
  196|    142|    return p;
  197|    142|}

ossl_err_load_crypto_strings:
   50|      2|{
   51|      2|    if (0
  ------------------
  |  Branch (51:9): [Folded, False: 2]
  ------------------
   52|      2|#ifndef OPENSSL_NO_ERR
   53|      2|        || ossl_err_load_ERR_strings() == 0 /* include error strings for SYSerr */
  ------------------
  |  Branch (53:12): [True: 0, False: 2]
  ------------------
   54|      2|        || ossl_err_load_BN_strings() == 0
  ------------------
  |  Branch (54:12): [True: 0, False: 2]
  ------------------
   55|      2|        || ossl_err_load_RSA_strings() == 0
  ------------------
  |  Branch (55:12): [True: 0, False: 2]
  ------------------
   56|      2|#ifndef OPENSSL_NO_DH
   57|      2|        || ossl_err_load_DH_strings() == 0
  ------------------
  |  Branch (57:12): [True: 0, False: 2]
  ------------------
   58|      2|#endif
   59|      2|        || ossl_err_load_EVP_strings() == 0
  ------------------
  |  Branch (59:12): [True: 0, False: 2]
  ------------------
   60|      2|        || ossl_err_load_BUF_strings() == 0
  ------------------
  |  Branch (60:12): [True: 0, False: 2]
  ------------------
   61|      2|        || ossl_err_load_OBJ_strings() == 0
  ------------------
  |  Branch (61:12): [True: 0, False: 2]
  ------------------
   62|      2|        || ossl_err_load_PEM_strings() == 0
  ------------------
  |  Branch (62:12): [True: 0, False: 2]
  ------------------
   63|      2|#ifndef OPENSSL_NO_DSA
   64|      2|        || ossl_err_load_DSA_strings() == 0
  ------------------
  |  Branch (64:12): [True: 0, False: 2]
  ------------------
   65|      2|#endif
   66|      2|        || ossl_err_load_X509_strings() == 0
  ------------------
  |  Branch (66:12): [True: 0, False: 2]
  ------------------
   67|      2|        || ossl_err_load_ASN1_strings() == 0
  ------------------
  |  Branch (67:12): [True: 0, False: 2]
  ------------------
   68|      2|        || ossl_err_load_CONF_strings() == 0
  ------------------
  |  Branch (68:12): [True: 0, False: 2]
  ------------------
   69|      2|        || ossl_err_load_CRYPTO_strings() == 0
  ------------------
  |  Branch (69:12): [True: 0, False: 2]
  ------------------
   70|      2|#ifndef OPENSSL_NO_COMP
   71|      2|        || ossl_err_load_COMP_strings() == 0
  ------------------
  |  Branch (71:12): [True: 0, False: 2]
  ------------------
   72|      2|#endif
   73|      2|#ifndef OPENSSL_NO_EC
   74|      2|        || ossl_err_load_EC_strings() == 0
  ------------------
  |  Branch (74:12): [True: 0, False: 2]
  ------------------
   75|      2|#endif
   76|       |        /* skip ossl_err_load_SSL_strings() because it is not in this library */
   77|      2|        || ossl_err_load_BIO_strings() == 0
  ------------------
  |  Branch (77:12): [True: 0, False: 2]
  ------------------
   78|      2|        || ossl_err_load_PKCS7_strings() == 0
  ------------------
  |  Branch (78:12): [True: 0, False: 2]
  ------------------
   79|      2|        || ossl_err_load_X509V3_strings() == 0
  ------------------
  |  Branch (79:12): [True: 0, False: 2]
  ------------------
   80|      2|        || ossl_err_load_PKCS12_strings() == 0
  ------------------
  |  Branch (80:12): [True: 0, False: 2]
  ------------------
   81|      2|        || ossl_err_load_RAND_strings() == 0
  ------------------
  |  Branch (81:12): [True: 0, False: 2]
  ------------------
   82|      2|        || ossl_err_load_DSO_strings() == 0
  ------------------
  |  Branch (82:12): [True: 0, False: 2]
  ------------------
   83|      2|#ifndef OPENSSL_NO_TS
   84|      2|        || ossl_err_load_TS_strings() == 0
  ------------------
  |  Branch (84:12): [True: 0, False: 2]
  ------------------
   85|      2|#endif
   86|      2|#ifndef OPENSSL_NO_ENGINE
   87|      2|        || ossl_err_load_ENGINE_strings() == 0
  ------------------
  |  Branch (87:12): [True: 0, False: 2]
  ------------------
   88|      2|#endif
   89|      2|#ifndef OPENSSL_NO_HTTP
   90|      2|        || ossl_err_load_HTTP_strings() == 0
  ------------------
  |  Branch (90:12): [True: 0, False: 2]
  ------------------
   91|      2|#endif
   92|      2|#ifndef OPENSSL_NO_OCSP
   93|      2|        || ossl_err_load_OCSP_strings() == 0
  ------------------
  |  Branch (93:12): [True: 0, False: 2]
  ------------------
   94|      2|#endif
   95|      2|        || ossl_err_load_UI_strings() == 0
  ------------------
  |  Branch (95:12): [True: 0, False: 2]
  ------------------
   96|      2|#ifndef OPENSSL_NO_CMS
   97|      2|        || ossl_err_load_CMS_strings() == 0
  ------------------
  |  Branch (97:12): [True: 0, False: 2]
  ------------------
   98|      2|#endif
   99|      2|#ifndef OPENSSL_NO_CRMF
  100|      2|        || ossl_err_load_CRMF_strings() == 0
  ------------------
  |  Branch (100:12): [True: 0, False: 2]
  ------------------
  101|      2|        || ossl_err_load_CMP_strings() == 0
  ------------------
  |  Branch (101:12): [True: 0, False: 2]
  ------------------
  102|      2|#endif
  103|      2|#ifndef OPENSSL_NO_CT
  104|      2|        || ossl_err_load_CT_strings() == 0
  ------------------
  |  Branch (104:12): [True: 0, False: 2]
  ------------------
  105|      2|#endif
  106|      2|        || ossl_err_load_ESS_strings() == 0
  ------------------
  |  Branch (106:12): [True: 0, False: 2]
  ------------------
  107|      2|        || ossl_err_load_ASYNC_strings() == 0
  ------------------
  |  Branch (107:12): [True: 0, False: 2]
  ------------------
  108|      2|#ifndef OPENSSL_NO_SM2
  109|      2|        || ossl_err_load_SM2_strings() == 0
  ------------------
  |  Branch (109:12): [True: 0, False: 2]
  ------------------
  110|      2|#endif
  111|      2|        || ossl_err_load_OSSL_STORE_strings() == 0
  ------------------
  |  Branch (111:12): [True: 0, False: 2]
  ------------------
  112|      2|        || ossl_err_load_PROP_strings() == 0
  ------------------
  |  Branch (112:12): [True: 0, False: 2]
  ------------------
  113|      2|        || ossl_err_load_PROV_strings() == 0
  ------------------
  |  Branch (113:12): [True: 0, False: 2]
  ------------------
  114|      2|#endif
  115|      2|    )
  116|      0|        return 0;
  117|       |
  118|      2|    return 1;
  119|      2|}

ERR_new:
   17|   157k|{
   18|   157k|    ERR_STATE *es;
   19|       |
   20|   157k|    es = ossl_err_get_state_int();
   21|   157k|    if (es == NULL)
  ------------------
  |  Branch (21:9): [True: 0, False: 157k]
  ------------------
   22|      0|        return;
   23|       |
   24|       |    /* Allocate a slot */
   25|   157k|    err_get_slot(es);
   26|   157k|    err_clear(es, es->top, 0);
   27|   157k|}
ERR_set_debug:
   30|   157k|{
   31|   157k|    ERR_STATE *es;
   32|       |
   33|   157k|    es = ossl_err_get_state_int();
   34|   157k|    if (es == NULL)
  ------------------
  |  Branch (34:9): [True: 0, False: 157k]
  ------------------
   35|      0|        return;
   36|       |
   37|   157k|    err_set_debug(es, es->top, file, line, func);
   38|   157k|}
ERR_set_error:
   41|   157k|{
   42|   157k|    va_list args;
   43|       |
   44|   157k|    va_start(args, fmt);
   45|   157k|    ERR_vset_error(lib, reason, fmt, args);
   46|       |    va_end(args);
   47|   157k|}
ERR_vset_error:
   50|   157k|{
   51|   157k|    ERR_STATE *es;
   52|   157k|    char *buf = NULL;
   53|   157k|    size_t buf_size = 0;
   54|   157k|    unsigned long flags = 0;
   55|   157k|    size_t i;
   56|       |
   57|   157k|    es = ossl_err_get_state_int();
   58|   157k|    if (es == NULL)
  ------------------
  |  Branch (58:9): [True: 0, False: 157k]
  ------------------
   59|      0|        return;
   60|   157k|    i = es->top;
   61|       |
   62|   157k|    if (fmt != NULL) {
  ------------------
  |  Branch (62:9): [True: 3.52k, False: 153k]
  ------------------
   63|  3.52k|        int printed_len = 0;
   64|  3.52k|        char *rbuf = NULL;
   65|       |
   66|  3.52k|        buf = es->err_data[i];
   67|  3.52k|        buf_size = es->err_data_size[i];
   68|       |
   69|       |        /*
   70|       |         * To protect the string we just grabbed from tampering by other
   71|       |         * functions we may call, or to protect them from freeing a pointer
   72|       |         * that may no longer be valid at that point, we clear away the
   73|       |         * data pointer and the flags.  We will set them again at the end
   74|       |         * of this function.
   75|       |         */
   76|  3.52k|        es->err_data[i] = NULL;
   77|  3.52k|        es->err_data_flags[i] = 0;
   78|       |
   79|       |        /*
   80|       |         * Try to maximize the space available.  If that fails, we use what
   81|       |         * we have.
   82|       |         */
   83|  3.52k|        if (buf_size < ERR_MAX_DATA_SIZE
  ------------------
  |  |  395|  7.04k|#define ERR_MAX_DATA_SIZE 1024
  ------------------
  |  Branch (83:13): [True: 3.52k, False: 0]
  ------------------
   84|  3.52k|            && (rbuf = OPENSSL_realloc(buf, ERR_MAX_DATA_SIZE)) != NULL) {
  ------------------
  |  |  120|  3.52k|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (84:16): [True: 3.52k, False: 0]
  ------------------
   85|  3.52k|            buf = rbuf;
   86|  3.52k|            buf_size = ERR_MAX_DATA_SIZE;
  ------------------
  |  |  395|  3.52k|#define ERR_MAX_DATA_SIZE 1024
  ------------------
   87|  3.52k|        }
   88|       |
   89|  3.52k|        if (buf != NULL) {
  ------------------
  |  Branch (89:13): [True: 3.52k, False: 0]
  ------------------
   90|  3.52k|            printed_len = BIO_vsnprintf(buf, buf_size, fmt, args);
   91|  3.52k|        }
   92|  3.52k|        if (printed_len < 0)
  ------------------
  |  Branch (92:13): [True: 0, False: 3.52k]
  ------------------
   93|      0|            printed_len = 0;
   94|  3.52k|        if (buf != NULL)
  ------------------
  |  Branch (94:13): [True: 3.52k, False: 0]
  ------------------
   95|  3.52k|            buf[printed_len] = '\0';
   96|       |
   97|       |        /*
   98|       |         * Try to reduce the size, but only if we maximized above.  If that
   99|       |         * fails, we keep what we have.
  100|       |         * (According to documentation, realloc leaves the old buffer untouched
  101|       |         * if it fails)
  102|       |         */
  103|  3.52k|        if ((rbuf = OPENSSL_realloc(buf, printed_len + 1)) != NULL) {
  ------------------
  |  |  120|  3.52k|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (103:13): [True: 3.52k, False: 0]
  ------------------
  104|  3.52k|            buf = rbuf;
  105|  3.52k|            buf_size = printed_len + 1;
  106|  3.52k|            buf[printed_len] = '\0';
  107|  3.52k|        }
  108|       |
  109|  3.52k|        if (buf != NULL)
  ------------------
  |  Branch (109:13): [True: 3.52k, False: 0]
  ------------------
  110|  3.52k|            flags = ERR_TXT_MALLOCED | ERR_TXT_STRING;
  ------------------
  |  |   50|  3.52k|#define ERR_TXT_MALLOCED 0x01
  ------------------
                          flags = ERR_TXT_MALLOCED | ERR_TXT_STRING;
  ------------------
  |  |   51|  3.52k|#define ERR_TXT_STRING 0x02
  ------------------
  111|  3.52k|    }
  112|       |
  113|   157k|    err_clear_data(es, es->top, 0);
  114|   157k|    err_set_error(es, es->top, lib, reason);
  115|   157k|    if (fmt != NULL)
  ------------------
  |  Branch (115:9): [True: 3.52k, False: 153k]
  ------------------
  116|  3.52k|        err_set_data(es, es->top, buf, buf_size, flags);
  117|   157k|}

err.c:err_clear:
   86|   132k|{
   87|   132k|    err_clear_data(es, i, (deall));
   88|   132k|    es->err_marks[i] = 0;
   89|   132k|    es->err_flags[i] = 0;
   90|   132k|    es->err_buffer[i] = 0;
   91|   132k|    es->err_line[i] = -1;
   92|   132k|    OPENSSL_free(es->err_file[i]);
  ------------------
  |  |  131|   132k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   93|   132k|    es->err_file[i] = NULL;
   94|   132k|    OPENSSL_free(es->err_func[i]);
  ------------------
  |  |  131|   132k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   95|       |    es->err_func[i] = NULL;
   96|   132k|}
err.c:err_clear_data:
   22|   132k|{
   23|   132k|    if (es->err_data_flags[i] & ERR_TXT_MALLOCED) {
  ------------------
  |  |   50|   132k|#define ERR_TXT_MALLOCED 0x01
  ------------------
  |  Branch (23:9): [True: 8.42k, False: 123k]
  ------------------
   24|  8.42k|        if (deall) {
  ------------------
  |  Branch (24:13): [True: 0, False: 8.42k]
  ------------------
   25|      0|            OPENSSL_free(es->err_data[i]);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   26|      0|            es->err_data[i] = NULL;
   27|      0|            es->err_data_size[i] = 0;
   28|      0|            es->err_data_flags[i] = 0;
   29|  8.42k|        } else if (es->err_data[i] != NULL) {
  ------------------
  |  Branch (29:20): [True: 8.42k, False: 0]
  ------------------
   30|  8.42k|            es->err_data[i][0] = '\0';
   31|  8.42k|            es->err_data_flags[i] = ERR_TXT_MALLOCED;
  ------------------
  |  |   50|  8.42k|#define ERR_TXT_MALLOCED 0x01
  ------------------
   32|  8.42k|        }
   33|   123k|    } else {
   34|       |        es->err_data[i] = NULL;
   35|   123k|        es->err_data_size[i] = 0;
   36|   123k|        es->err_data_flags[i] = 0;
   37|   123k|    }
   38|   132k|}
err_blocks.c:err_get_slot:
   15|   157k|{
   16|   157k|    es->top = (es->top + 1) % ERR_NUM_ERRORS;
  ------------------
  |  |   57|   157k|#define ERR_NUM_ERRORS 16
  ------------------
   17|   157k|    if (es->top == es->bottom)
  ------------------
  |  Branch (17:9): [True: 0, False: 157k]
  ------------------
   18|      0|        es->bottom = (es->bottom + 1) % ERR_NUM_ERRORS;
  ------------------
  |  |   57|      0|#define ERR_NUM_ERRORS 16
  ------------------
   19|   157k|}
err_blocks.c:err_clear:
   86|   157k|{
   87|   157k|    err_clear_data(es, i, (deall));
   88|   157k|    es->err_marks[i] = 0;
   89|   157k|    es->err_flags[i] = 0;
   90|   157k|    es->err_buffer[i] = 0;
   91|   157k|    es->err_line[i] = -1;
   92|   157k|    OPENSSL_free(es->err_file[i]);
  ------------------
  |  |  131|   157k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   93|   157k|    es->err_file[i] = NULL;
   94|   157k|    OPENSSL_free(es->err_func[i]);
  ------------------
  |  |  131|   157k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   95|       |    es->err_func[i] = NULL;
   96|   157k|}
err_blocks.c:err_set_debug:
   51|   157k|{
   52|       |    /*
   53|       |     * We dup the file and fn strings because they may be provider owned. If the
   54|       |     * provider gets unloaded, they may not be valid anymore.
   55|       |     */
   56|   157k|    OPENSSL_free(es->err_file[i]);
  ------------------
  |  |  131|   157k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   57|   157k|    if (file == NULL || file[0] == '\0')
  ------------------
  |  Branch (57:9): [True: 0, False: 157k]
  |  Branch (57:25): [True: 0, False: 157k]
  ------------------
   58|      0|        es->err_file[i] = NULL;
   59|   157k|    else if ((es->err_file[i] = CRYPTO_malloc(strlen(file) + 1,
  ------------------
  |  Branch (59:14): [True: 157k, False: 0]
  ------------------
   60|   157k|                  NULL, 0))
   61|   157k|        != NULL)
   62|       |        /* We cannot use OPENSSL_strdup due to possible recursion */
   63|   157k|        strcpy(es->err_file[i], file);
   64|       |
   65|   157k|    es->err_line[i] = line;
   66|   157k|    OPENSSL_free(es->err_func[i]);
  ------------------
  |  |  131|   157k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   67|   157k|    if (fn == NULL || fn[0] == '\0')
  ------------------
  |  Branch (67:9): [True: 0, False: 157k]
  |  Branch (67:23): [True: 0, False: 157k]
  ------------------
   68|      0|        es->err_func[i] = NULL;
   69|   157k|    else if ((es->err_func[i] = CRYPTO_malloc(strlen(fn) + 1,
  ------------------
  |  Branch (69:14): [True: 157k, False: 0]
  ------------------
   70|   157k|                  NULL, 0))
   71|   157k|        != NULL)
   72|   157k|        strcpy(es->err_func[i], fn);
   73|   157k|}
err_blocks.c:err_clear_data:
   22|   314k|{
   23|   314k|    if (es->err_data_flags[i] & ERR_TXT_MALLOCED) {
  ------------------
  |  |   50|   314k|#define ERR_TXT_MALLOCED 0x01
  ------------------
  |  Branch (23:9): [True: 310k, False: 3.53k]
  ------------------
   24|   310k|        if (deall) {
  ------------------
  |  Branch (24:13): [True: 0, False: 310k]
  ------------------
   25|      0|            OPENSSL_free(es->err_data[i]);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   26|      0|            es->err_data[i] = NULL;
   27|      0|            es->err_data_size[i] = 0;
   28|      0|            es->err_data_flags[i] = 0;
   29|   310k|        } else if (es->err_data[i] != NULL) {
  ------------------
  |  Branch (29:20): [True: 310k, False: 0]
  ------------------
   30|   310k|            es->err_data[i][0] = '\0';
   31|   310k|            es->err_data_flags[i] = ERR_TXT_MALLOCED;
  ------------------
  |  |   50|   310k|#define ERR_TXT_MALLOCED 0x01
  ------------------
   32|   310k|        }
   33|   310k|    } else {
   34|       |        es->err_data[i] = NULL;
   35|  3.53k|        es->err_data_size[i] = 0;
   36|  3.53k|        es->err_data_flags[i] = 0;
   37|  3.53k|    }
   38|   314k|}
err_blocks.c:err_set_error:
   42|   157k|{
   43|   157k|    es->err_buffer[i] = lib == ERR_LIB_SYS
  ------------------
  |  |   74|   157k|#define ERR_LIB_SYS 2
  ------------------
  |  Branch (43:25): [True: 2, False: 157k]
  ------------------
   44|   157k|        ? (unsigned int)(ERR_SYSTEM_FLAG | reason)
  ------------------
  |  |  220|      2|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  ------------------
   45|   157k|        : ERR_PACK(lib, 0, reason);
  ------------------
  |  |  281|   314k|    ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  229|   157k|#define ERR_LIB_MASK 0xFF
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  228|   157k|#define ERR_LIB_OFFSET 23L
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  232|   157k|#define ERR_REASON_MASK 0X7FFFFF
  |  |  ------------------
  ------------------
   46|   157k|}
err_blocks.c:err_set_data:
   77|  3.52k|{
   78|  3.52k|    if ((es->err_data_flags[i] & ERR_TXT_MALLOCED) != 0)
  ------------------
  |  |   50|  3.52k|#define ERR_TXT_MALLOCED 0x01
  ------------------
  |  Branch (78:9): [True: 0, False: 3.52k]
  ------------------
   79|      0|        OPENSSL_free(es->err_data[i]);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   80|  3.52k|    es->err_data[i] = data;
   81|  3.52k|    es->err_data_size[i] = datasz;
   82|  3.52k|    es->err_data_flags[i] = flags;
   83|  3.52k|}
err_mark.c:err_clear:
   86|   157k|{
   87|   157k|    err_clear_data(es, i, (deall));
   88|   157k|    es->err_marks[i] = 0;
   89|   157k|    es->err_flags[i] = 0;
   90|   157k|    es->err_buffer[i] = 0;
   91|   157k|    es->err_line[i] = -1;
   92|   157k|    OPENSSL_free(es->err_file[i]);
  ------------------
  |  |  131|   157k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   93|   157k|    es->err_file[i] = NULL;
   94|   157k|    OPENSSL_free(es->err_func[i]);
  ------------------
  |  |  131|   157k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   95|       |    es->err_func[i] = NULL;
   96|   157k|}
err_mark.c:err_clear_data:
   22|   157k|{
   23|   157k|    if (es->err_data_flags[i] & ERR_TXT_MALLOCED) {
  ------------------
  |  |   50|   157k|#define ERR_TXT_MALLOCED 0x01
  ------------------
  |  Branch (23:9): [True: 157k, False: 4]
  ------------------
   24|   157k|        if (deall) {
  ------------------
  |  Branch (24:13): [True: 0, False: 157k]
  ------------------
   25|      0|            OPENSSL_free(es->err_data[i]);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   26|      0|            es->err_data[i] = NULL;
   27|      0|            es->err_data_size[i] = 0;
   28|      0|            es->err_data_flags[i] = 0;
   29|   157k|        } else if (es->err_data[i] != NULL) {
  ------------------
  |  Branch (29:20): [True: 157k, False: 0]
  ------------------
   30|   157k|            es->err_data[i][0] = '\0';
   31|   157k|            es->err_data_flags[i] = ERR_TXT_MALLOCED;
  ------------------
  |  |   50|   157k|#define ERR_TXT_MALLOCED 0x01
  ------------------
   32|   157k|        }
   33|   157k|    } else {
   34|       |        es->err_data[i] = NULL;
   35|      4|        es->err_data_size[i] = 0;
   36|      4|        es->err_data_flags[i] = 0;
   37|      4|    }
   38|   157k|}

ERR_set_mark:
   16|   464k|{
   17|   464k|    ERR_STATE *es;
   18|       |
   19|   464k|    es = ossl_err_get_state_int();
   20|   464k|    if (es == NULL)
  ------------------
  |  Branch (20:9): [True: 0, False: 464k]
  ------------------
   21|      0|        return 0;
   22|       |
   23|   464k|    if (es->bottom == es->top)
  ------------------
  |  Branch (23:9): [True: 464k, False: 103]
  ------------------
   24|   464k|        return 0;
   25|    103|    es->err_marks[es->top]++;
   26|    103|    return 1;
   27|   464k|}
ERR_pop_to_mark:
   43|   304k|{
   44|   304k|    ERR_STATE *es;
   45|       |
   46|   304k|    es = ossl_err_get_state_int();
   47|   304k|    if (es == NULL)
  ------------------
  |  Branch (47:9): [True: 0, False: 304k]
  ------------------
   48|      0|        return 0;
   49|       |
   50|   461k|    while (es->bottom != es->top
  ------------------
  |  Branch (50:12): [True: 157k, False: 303k]
  ------------------
   51|   157k|        && es->err_marks[es->top] == 0) {
  ------------------
  |  Branch (51:12): [True: 157k, False: 103]
  ------------------
   52|   157k|        err_clear(es, es->top, 0);
   53|   157k|        es->top = es->top > 0 ? es->top - 1 : ERR_NUM_ERRORS - 1;
  ------------------
  |  |   57|      0|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (53:19): [True: 157k, False: 0]
  ------------------
   54|   157k|    }
   55|       |
   56|   304k|    if (es->bottom == es->top)
  ------------------
  |  Branch (56:9): [True: 303k, False: 103]
  ------------------
   57|   303k|        return 0;
   58|    103|    es->err_marks[es->top]--;
   59|    103|    return 1;
   60|   304k|}
ERR_clear_last_mark:
   82|   160k|{
   83|   160k|    ERR_STATE *es;
   84|   160k|    int top;
   85|       |
   86|   160k|    es = ossl_err_get_state_int();
   87|   160k|    if (es == NULL)
  ------------------
  |  Branch (87:9): [True: 0, False: 160k]
  ------------------
   88|      0|        return 0;
   89|       |
   90|   160k|    top = es->top;
   91|   160k|    while (es->bottom != top
  ------------------
  |  Branch (91:12): [True: 0, False: 160k]
  ------------------
   92|      0|        && es->err_marks[top] == 0) {
  ------------------
  |  Branch (92:12): [True: 0, False: 0]
  ------------------
   93|      0|        top = top > 0 ? top - 1 : ERR_NUM_ERRORS - 1;
  ------------------
  |  |   57|      0|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (93:15): [True: 0, False: 0]
  ------------------
   94|      0|    }
   95|       |
   96|   160k|    if (es->bottom == top)
  ------------------
  |  Branch (96:9): [True: 160k, False: 0]
  ------------------
   97|   160k|        return 0;
   98|      0|    es->err_marks[top]--;
   99|      0|    return 1;
  100|   160k|}

OSSL_ERR_STATE_new:
   22|      2|{
   23|       |    return CRYPTO_zalloc(sizeof(ERR_STATE), NULL, 0);
   24|      2|}

ossl_err_load_ESS_strings:
   42|      2|{
   43|      2|#ifndef OPENSSL_NO_ERR
   44|      2|    if (ERR_reason_error_string(ESS_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (44:9): [True: 2, False: 0]
  ------------------
   45|      2|        ERR_load_strings_const(ESS_str_reasons);
   46|      2|#endif
   47|      2|    return 1;
   48|      2|}

openssl_add_all_ciphers_int:
   18|      2|{
   19|       |
   20|      2|#ifndef OPENSSL_NO_DES
   21|      2|    EVP_add_cipher(EVP_des_cfb());
  ------------------
  |  |  997|      2|#define EVP_des_cfb EVP_des_cfb64
  ------------------
   22|      2|    EVP_add_cipher(EVP_des_cfb1());
   23|      2|    EVP_add_cipher(EVP_des_cfb8());
   24|      2|    EVP_add_cipher(EVP_des_ede_cfb());
  ------------------
  |  | 1001|      2|#define EVP_des_ede_cfb EVP_des_ede_cfb64
  ------------------
   25|      2|    EVP_add_cipher(EVP_des_ede3_cfb());
  ------------------
  |  | 1003|      2|#define EVP_des_ede3_cfb EVP_des_ede3_cfb64
  ------------------
   26|      2|    EVP_add_cipher(EVP_des_ede3_cfb1());
   27|      2|    EVP_add_cipher(EVP_des_ede3_cfb8());
   28|       |
   29|      2|    EVP_add_cipher(EVP_des_ofb());
   30|      2|    EVP_add_cipher(EVP_des_ede_ofb());
   31|      2|    EVP_add_cipher(EVP_des_ede3_ofb());
   32|       |
   33|      2|    EVP_add_cipher(EVP_desx_cbc());
   34|      2|    EVP_add_cipher_alias(SN_desx_cbc, "DESX");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   35|      2|    EVP_add_cipher_alias(SN_desx_cbc, "desx");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   36|       |
   37|      2|    EVP_add_cipher(EVP_des_cbc());
   38|      2|    EVP_add_cipher_alias(SN_des_cbc, "DES");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   39|      2|    EVP_add_cipher_alias(SN_des_cbc, "des");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   40|      2|    EVP_add_cipher(EVP_des_ede_cbc());
   41|      2|    EVP_add_cipher(EVP_des_ede3_cbc());
   42|      2|    EVP_add_cipher_alias(SN_des_ede3_cbc, "DES3");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   43|      2|    EVP_add_cipher_alias(SN_des_ede3_cbc, "des3");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   44|       |
   45|      2|    EVP_add_cipher(EVP_des_ecb());
   46|      2|    EVP_add_cipher(EVP_des_ede());
   47|      2|    EVP_add_cipher_alias(SN_des_ede_ecb, "DES-EDE-ECB");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   48|      2|    EVP_add_cipher_alias(SN_des_ede_ecb, "des-ede-ecb");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   49|      2|    EVP_add_cipher(EVP_des_ede3());
   50|      2|    EVP_add_cipher_alias(SN_des_ede3_ecb, "DES-EDE3-ECB");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   51|      2|    EVP_add_cipher_alias(SN_des_ede3_ecb, "des-ede3-ecb");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   52|      2|    EVP_add_cipher(EVP_des_ede3_wrap());
   53|      2|    EVP_add_cipher_alias(SN_id_smime_alg_CMS3DESwrap, "des3-wrap");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   54|      2|#endif
   55|       |
   56|      2|#ifndef OPENSSL_NO_RC4
   57|      2|    EVP_add_cipher(EVP_rc4());
   58|      2|    EVP_add_cipher(EVP_rc4_40());
   59|      2|#ifndef OPENSSL_NO_MD5
   60|      2|    EVP_add_cipher(EVP_rc4_hmac_md5());
   61|      2|#endif
   62|      2|#endif
   63|       |
   64|      2|#ifndef OPENSSL_NO_IDEA
   65|      2|    EVP_add_cipher(EVP_idea_ecb());
   66|      2|    EVP_add_cipher(EVP_idea_cfb());
  ------------------
  |  | 1030|      2|#define EVP_idea_cfb EVP_idea_cfb64
  ------------------
   67|      2|    EVP_add_cipher(EVP_idea_ofb());
   68|      2|    EVP_add_cipher(EVP_idea_cbc());
   69|      2|    EVP_add_cipher_alias(SN_idea_cbc, "IDEA");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   70|      2|    EVP_add_cipher_alias(SN_idea_cbc, "idea");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   71|      2|#endif
   72|       |
   73|      2|#ifndef OPENSSL_NO_SEED
   74|      2|    EVP_add_cipher(EVP_seed_ecb());
   75|      2|    EVP_add_cipher(EVP_seed_cfb());
  ------------------
  |  | 1184|      2|#define EVP_seed_cfb EVP_seed_cfb128
  ------------------
   76|      2|    EVP_add_cipher(EVP_seed_ofb());
   77|      2|    EVP_add_cipher(EVP_seed_cbc());
   78|      2|    EVP_add_cipher_alias(SN_seed_cbc, "SEED");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   79|      2|    EVP_add_cipher_alias(SN_seed_cbc, "seed");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   80|      2|#endif
   81|       |
   82|      2|#ifndef OPENSSL_NO_SM4
   83|      2|    EVP_add_cipher(EVP_sm4_ecb());
   84|      2|    EVP_add_cipher(EVP_sm4_cbc());
   85|      2|    EVP_add_cipher(EVP_sm4_cfb());
  ------------------
  |  | 1192|      2|#define EVP_sm4_cfb EVP_sm4_cfb128
  ------------------
   86|      2|    EVP_add_cipher(EVP_sm4_ofb());
   87|      2|    EVP_add_cipher(EVP_sm4_ctr());
   88|      2|    EVP_add_cipher_alias(SN_sm4_cbc, "SM4");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   89|      2|    EVP_add_cipher_alias(SN_sm4_cbc, "sm4");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   90|      2|#endif
   91|       |
   92|      2|#ifndef OPENSSL_NO_RC2
   93|      2|    EVP_add_cipher(EVP_rc2_ecb());
   94|      2|    EVP_add_cipher(EVP_rc2_cfb());
  ------------------
  |  | 1040|      2|#define EVP_rc2_cfb EVP_rc2_cfb64
  ------------------
   95|      2|    EVP_add_cipher(EVP_rc2_ofb());
   96|      2|    EVP_add_cipher(EVP_rc2_cbc());
   97|      2|    EVP_add_cipher(EVP_rc2_40_cbc());
   98|      2|    EVP_add_cipher(EVP_rc2_64_cbc());
   99|      2|    EVP_add_cipher_alias(SN_rc2_cbc, "RC2");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  100|      2|    EVP_add_cipher_alias(SN_rc2_cbc, "rc2");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  101|      2|    EVP_add_cipher_alias(SN_rc2_cbc, "rc2-128");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  102|      2|    EVP_add_cipher_alias(SN_rc2_64_cbc, "rc2-64");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  103|      2|    EVP_add_cipher_alias(SN_rc2_40_cbc, "rc2-40");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  104|      2|#endif
  105|       |
  106|      2|#ifndef OPENSSL_NO_BF
  107|      2|    EVP_add_cipher(EVP_bf_ecb());
  108|      2|    EVP_add_cipher(EVP_bf_cfb());
  ------------------
  |  | 1047|      2|#define EVP_bf_cfb EVP_bf_cfb64
  ------------------
  109|      2|    EVP_add_cipher(EVP_bf_ofb());
  110|      2|    EVP_add_cipher(EVP_bf_cbc());
  111|      2|    EVP_add_cipher_alias(SN_bf_cbc, "BF");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  112|      2|    EVP_add_cipher_alias(SN_bf_cbc, "bf");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  113|      2|    EVP_add_cipher_alias(SN_bf_cbc, "blowfish");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  114|      2|#endif
  115|       |
  116|      2|#ifndef OPENSSL_NO_CAST
  117|      2|    EVP_add_cipher(EVP_cast5_ecb());
  118|      2|    EVP_add_cipher(EVP_cast5_cfb());
  ------------------
  |  | 1054|      2|#define EVP_cast5_cfb EVP_cast5_cfb64
  ------------------
  119|      2|    EVP_add_cipher(EVP_cast5_ofb());
  120|      2|    EVP_add_cipher(EVP_cast5_cbc());
  121|      2|    EVP_add_cipher_alias(SN_cast5_cbc, "CAST");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  122|      2|    EVP_add_cipher_alias(SN_cast5_cbc, "cast");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  123|      2|    EVP_add_cipher_alias(SN_cast5_cbc, "CAST-cbc");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  124|      2|    EVP_add_cipher_alias(SN_cast5_cbc, "cast-cbc");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  125|      2|#endif
  126|       |
  127|      2|#ifndef OPENSSL_NO_RC5
  128|      2|    EVP_add_cipher(EVP_rc5_32_12_16_ecb());
  129|      2|    EVP_add_cipher(EVP_rc5_32_12_16_cfb());
  ------------------
  |  | 1061|      2|#define EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64
  ------------------
  130|      2|    EVP_add_cipher(EVP_rc5_32_12_16_ofb());
  131|      2|    EVP_add_cipher(EVP_rc5_32_12_16_cbc());
  132|      2|    EVP_add_cipher_alias(SN_rc5_cbc, "rc5");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  133|      2|    EVP_add_cipher_alias(SN_rc5_cbc, "RC5");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  134|      2|#endif
  135|       |
  136|      2|    EVP_add_cipher(EVP_aes_128_ecb());
  137|      2|    EVP_add_cipher(EVP_aes_128_cbc());
  138|      2|    EVP_add_cipher(EVP_aes_128_cfb());
  ------------------
  |  | 1069|      2|#define EVP_aes_128_cfb EVP_aes_128_cfb128
  ------------------
  139|      2|    EVP_add_cipher(EVP_aes_128_cfb1());
  140|      2|    EVP_add_cipher(EVP_aes_128_cfb8());
  141|      2|    EVP_add_cipher(EVP_aes_128_ofb());
  142|      2|    EVP_add_cipher(EVP_aes_128_ctr());
  143|      2|    EVP_add_cipher(EVP_aes_128_gcm());
  144|      2|#ifndef OPENSSL_NO_OCB
  145|      2|    EVP_add_cipher(EVP_aes_128_ocb());
  146|      2|#endif
  147|      2|    EVP_add_cipher(EVP_aes_128_xts());
  148|      2|    EVP_add_cipher(EVP_aes_128_ccm());
  149|      2|    EVP_add_cipher(EVP_aes_128_wrap());
  150|      2|    EVP_add_cipher_alias(SN_id_aes128_wrap, "aes128-wrap");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  151|      2|    EVP_add_cipher(EVP_aes_128_wrap_pad());
  152|      2|    EVP_add_cipher_alias(SN_id_aes128_wrap_pad, "aes128-wrap-pad");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  153|      2|    EVP_add_cipher_alias(SN_aes_128_cbc, "AES128");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  154|      2|    EVP_add_cipher_alias(SN_aes_128_cbc, "aes128");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  155|      2|    EVP_add_cipher(EVP_aes_192_ecb());
  156|      2|    EVP_add_cipher(EVP_aes_192_cbc());
  157|      2|    EVP_add_cipher(EVP_aes_192_cfb());
  ------------------
  |  | 1085|      2|#define EVP_aes_192_cfb EVP_aes_192_cfb128
  ------------------
  158|      2|    EVP_add_cipher(EVP_aes_192_cfb1());
  159|      2|    EVP_add_cipher(EVP_aes_192_cfb8());
  160|      2|    EVP_add_cipher(EVP_aes_192_ofb());
  161|      2|    EVP_add_cipher(EVP_aes_192_ctr());
  162|      2|    EVP_add_cipher(EVP_aes_192_gcm());
  163|      2|#ifndef OPENSSL_NO_OCB
  164|      2|    EVP_add_cipher(EVP_aes_192_ocb());
  165|      2|#endif
  166|      2|    EVP_add_cipher(EVP_aes_192_ccm());
  167|      2|    EVP_add_cipher(EVP_aes_192_wrap());
  168|      2|    EVP_add_cipher_alias(SN_id_aes192_wrap, "aes192-wrap");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  169|      2|    EVP_add_cipher(EVP_aes_192_wrap_pad());
  170|      2|    EVP_add_cipher_alias(SN_id_aes192_wrap_pad, "aes192-wrap-pad");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  171|      2|    EVP_add_cipher_alias(SN_aes_192_cbc, "AES192");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  172|      2|    EVP_add_cipher_alias(SN_aes_192_cbc, "aes192");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  173|      2|    EVP_add_cipher(EVP_aes_256_ecb());
  174|      2|    EVP_add_cipher(EVP_aes_256_cbc());
  175|      2|    EVP_add_cipher(EVP_aes_256_cfb());
  ------------------
  |  | 1100|      2|#define EVP_aes_256_cfb EVP_aes_256_cfb128
  ------------------
  176|      2|    EVP_add_cipher(EVP_aes_256_cfb1());
  177|      2|    EVP_add_cipher(EVP_aes_256_cfb8());
  178|      2|    EVP_add_cipher(EVP_aes_256_ofb());
  179|      2|    EVP_add_cipher(EVP_aes_256_ctr());
  180|      2|    EVP_add_cipher(EVP_aes_256_gcm());
  181|      2|#ifndef OPENSSL_NO_OCB
  182|      2|    EVP_add_cipher(EVP_aes_256_ocb());
  183|      2|#endif
  184|      2|    EVP_add_cipher(EVP_aes_256_xts());
  185|      2|    EVP_add_cipher(EVP_aes_256_ccm());
  186|      2|    EVP_add_cipher(EVP_aes_256_wrap());
  187|      2|    EVP_add_cipher_alias(SN_id_aes256_wrap, "aes256-wrap");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  188|      2|    EVP_add_cipher(EVP_aes_256_wrap_pad());
  189|      2|    EVP_add_cipher_alias(SN_id_aes256_wrap_pad, "aes256-wrap-pad");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  190|      2|    EVP_add_cipher_alias(SN_aes_256_cbc, "AES256");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  191|      2|    EVP_add_cipher_alias(SN_aes_256_cbc, "aes256");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  192|      2|    EVP_add_cipher(EVP_aes_128_cbc_hmac_sha1());
  193|      2|    EVP_add_cipher(EVP_aes_256_cbc_hmac_sha1());
  194|      2|    EVP_add_cipher(EVP_aes_128_cbc_hmac_sha256());
  195|      2|    EVP_add_cipher(EVP_aes_256_cbc_hmac_sha256());
  196|      2|#ifndef OPENSSL_NO_ARIA
  197|      2|    EVP_add_cipher(EVP_aria_128_ecb());
  198|      2|    EVP_add_cipher(EVP_aria_128_cbc());
  199|      2|    EVP_add_cipher(EVP_aria_128_cfb());
  ------------------
  |  | 1121|      2|#define EVP_aria_128_cfb EVP_aria_128_cfb128
  ------------------
  200|      2|    EVP_add_cipher(EVP_aria_128_cfb1());
  201|      2|    EVP_add_cipher(EVP_aria_128_cfb8());
  202|      2|    EVP_add_cipher(EVP_aria_128_ctr());
  203|      2|    EVP_add_cipher(EVP_aria_128_ofb());
  204|      2|    EVP_add_cipher(EVP_aria_128_gcm());
  205|      2|    EVP_add_cipher(EVP_aria_128_ccm());
  206|      2|    EVP_add_cipher_alias(SN_aria_128_cbc, "ARIA128");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  207|      2|    EVP_add_cipher_alias(SN_aria_128_cbc, "aria128");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  208|      2|    EVP_add_cipher(EVP_aria_192_ecb());
  209|      2|    EVP_add_cipher(EVP_aria_192_cbc());
  210|      2|    EVP_add_cipher(EVP_aria_192_cfb());
  ------------------
  |  | 1131|      2|#define EVP_aria_192_cfb EVP_aria_192_cfb128
  ------------------
  211|      2|    EVP_add_cipher(EVP_aria_192_cfb1());
  212|      2|    EVP_add_cipher(EVP_aria_192_cfb8());
  213|      2|    EVP_add_cipher(EVP_aria_192_ctr());
  214|      2|    EVP_add_cipher(EVP_aria_192_ofb());
  215|      2|    EVP_add_cipher(EVP_aria_192_gcm());
  216|      2|    EVP_add_cipher(EVP_aria_192_ccm());
  217|      2|    EVP_add_cipher_alias(SN_aria_192_cbc, "ARIA192");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  218|      2|    EVP_add_cipher_alias(SN_aria_192_cbc, "aria192");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  219|      2|    EVP_add_cipher(EVP_aria_256_ecb());
  220|      2|    EVP_add_cipher(EVP_aria_256_cbc());
  221|      2|    EVP_add_cipher(EVP_aria_256_cfb());
  ------------------
  |  | 1141|      2|#define EVP_aria_256_cfb EVP_aria_256_cfb128
  ------------------
  222|      2|    EVP_add_cipher(EVP_aria_256_cfb1());
  223|      2|    EVP_add_cipher(EVP_aria_256_cfb8());
  224|      2|    EVP_add_cipher(EVP_aria_256_ctr());
  225|      2|    EVP_add_cipher(EVP_aria_256_ofb());
  226|      2|    EVP_add_cipher(EVP_aria_256_gcm());
  227|      2|    EVP_add_cipher(EVP_aria_256_ccm());
  228|      2|    EVP_add_cipher_alias(SN_aria_256_cbc, "ARIA256");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  229|      2|    EVP_add_cipher_alias(SN_aria_256_cbc, "aria256");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  230|      2|#endif
  231|       |
  232|      2|#ifndef OPENSSL_NO_CAMELLIA
  233|      2|    EVP_add_cipher(EVP_camellia_128_ecb());
  234|      2|    EVP_add_cipher(EVP_camellia_128_cbc());
  235|      2|    EVP_add_cipher(EVP_camellia_128_cfb());
  ------------------
  |  | 1153|      2|#define EVP_camellia_128_cfb EVP_camellia_128_cfb128
  ------------------
  236|      2|    EVP_add_cipher(EVP_camellia_128_cfb1());
  237|      2|    EVP_add_cipher(EVP_camellia_128_cfb8());
  238|      2|    EVP_add_cipher(EVP_camellia_128_ofb());
  239|      2|    EVP_add_cipher_alias(SN_camellia_128_cbc, "CAMELLIA128");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  240|      2|    EVP_add_cipher_alias(SN_camellia_128_cbc, "camellia128");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  241|      2|    EVP_add_cipher(EVP_camellia_192_ecb());
  242|      2|    EVP_add_cipher(EVP_camellia_192_cbc());
  243|      2|    EVP_add_cipher(EVP_camellia_192_cfb());
  ------------------
  |  | 1161|      2|#define EVP_camellia_192_cfb EVP_camellia_192_cfb128
  ------------------
  244|      2|    EVP_add_cipher(EVP_camellia_192_cfb1());
  245|      2|    EVP_add_cipher(EVP_camellia_192_cfb8());
  246|      2|    EVP_add_cipher(EVP_camellia_192_ofb());
  247|      2|    EVP_add_cipher_alias(SN_camellia_192_cbc, "CAMELLIA192");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  248|      2|    EVP_add_cipher_alias(SN_camellia_192_cbc, "camellia192");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  249|      2|    EVP_add_cipher(EVP_camellia_256_ecb());
  250|      2|    EVP_add_cipher(EVP_camellia_256_cbc());
  251|      2|    EVP_add_cipher(EVP_camellia_256_cfb());
  ------------------
  |  | 1169|      2|#define EVP_camellia_256_cfb EVP_camellia_256_cfb128
  ------------------
  252|      2|    EVP_add_cipher(EVP_camellia_256_cfb1());
  253|      2|    EVP_add_cipher(EVP_camellia_256_cfb8());
  254|      2|    EVP_add_cipher(EVP_camellia_256_ofb());
  255|      2|    EVP_add_cipher_alias(SN_camellia_256_cbc, "CAMELLIA256");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  256|      2|    EVP_add_cipher_alias(SN_camellia_256_cbc, "camellia256");
  ------------------
  |  |  705|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   26|      2|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_CIPHER_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
  257|      2|    EVP_add_cipher(EVP_camellia_128_ctr());
  258|      2|    EVP_add_cipher(EVP_camellia_192_ctr());
  259|      2|    EVP_add_cipher(EVP_camellia_256_ctr());
  260|      2|#endif
  261|       |
  262|      2|#ifndef OPENSSL_NO_CHACHA
  263|      2|    EVP_add_cipher(EVP_chacha20());
  264|      2|#ifndef OPENSSL_NO_POLY1305
  265|      2|    EVP_add_cipher(EVP_chacha20_poly1305());
  266|      2|#endif
  267|      2|#endif
  268|      2|}

openssl_add_all_digests_int:
   18|      2|{
   19|      2|#ifndef OPENSSL_NO_MD4
   20|      2|    EVP_add_digest(EVP_md4());
   21|      2|#endif
   22|      2|#ifndef OPENSSL_NO_MD5
   23|      2|    EVP_add_digest(EVP_md5());
   24|      2|    EVP_add_digest_alias(SN_md5, "ssl3-md5");
  ------------------
  |  |  707|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   25|      2|#define OBJ_NAME_TYPE_MD_METH 0x01
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   25|      2|    EVP_add_digest(EVP_md5_sha1());
   26|      2|#endif
   27|      2|    EVP_add_digest(EVP_sha1());
   28|      2|    EVP_add_digest_alias(SN_sha1, "ssl3-sha1");
  ------------------
  |  |  707|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   25|      2|#define OBJ_NAME_TYPE_MD_METH 0x01
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   29|      2|    EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA);
  ------------------
  |  |  707|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   25|      2|#define OBJ_NAME_TYPE_MD_METH 0x01
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   30|      2|#if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES)
   31|      2|    EVP_add_digest(EVP_mdc2());
   32|      2|#endif
   33|      2|#ifndef OPENSSL_NO_RMD160
   34|      2|    EVP_add_digest(EVP_ripemd160());
   35|      2|    EVP_add_digest_alias(SN_ripemd160, "ripemd");
  ------------------
  |  |  707|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   25|      2|#define OBJ_NAME_TYPE_MD_METH 0x01
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   36|      2|    EVP_add_digest_alias(SN_ripemd160, "rmd160");
  ------------------
  |  |  707|      2|    OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   25|      2|#define OBJ_NAME_TYPE_MD_METH 0x01
  |  |  ------------------
  |  |                   OBJ_NAME_add((alias), OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, (n))
  |  |  ------------------
  |  |  |  |   33|      2|#define OBJ_NAME_ALIAS 0x8000
  |  |  ------------------
  ------------------
   37|      2|#endif
   38|      2|    EVP_add_digest(EVP_sha224());
   39|      2|    EVP_add_digest(EVP_sha256());
   40|      2|    EVP_add_digest(EVP_sha384());
   41|      2|    EVP_add_digest(EVP_sha512());
   42|      2|    EVP_add_digest(EVP_sha512_224());
   43|      2|    EVP_add_digest(EVP_sha512_256());
   44|      2|#ifndef OPENSSL_NO_WHIRLPOOL
   45|      2|    EVP_add_digest(EVP_whirlpool());
   46|      2|#endif
   47|      2|#ifndef OPENSSL_NO_SM3
   48|      2|    EVP_add_digest(EVP_sm3());
   49|      2|#endif
   50|      2|#ifndef OPENSSL_NO_BLAKE2
   51|      2|    EVP_add_digest(EVP_blake2b512());
   52|      2|    EVP_add_digest(EVP_blake2s256());
   53|      2|#endif
   54|      2|    EVP_add_digest(EVP_sha3_224());
   55|      2|    EVP_add_digest(EVP_sha3_256());
   56|      2|    EVP_add_digest(EVP_sha3_384());
   57|      2|    EVP_add_digest(EVP_sha3_512());
   58|      2|    EVP_add_digest(EVP_shake128());
   59|      2|    EVP_add_digest(EVP_shake256());
   60|      2|}

evp_md_ctx_clear_digest:
   45|    219|{
   46|    219|    if (ctx->algctx != NULL) {
  ------------------
  |  Branch (46:9): [True: 219, False: 0]
  ------------------
   47|    219|        if (ctx->digest != NULL && ctx->digest->freectx != NULL)
  ------------------
  |  Branch (47:13): [True: 219, False: 0]
  |  Branch (47:36): [True: 219, False: 0]
  ------------------
   48|    219|            ctx->digest->freectx(ctx->algctx);
   49|    219|        ctx->algctx = NULL;
   50|    219|        EVP_MD_CTX_set_flags(ctx, EVP_MD_CTX_FLAG_CLEANED);
  ------------------
  |  |  217|    219|#define EVP_MD_CTX_FLAG_CLEANED 0x0002 /* context has already been \
  ------------------
   51|    219|    }
   52|       |
   53|       |    /* Code below to be removed when legacy support is dropped. */
   54|       |
   55|       |    /*
   56|       |     * Don't assume ctx->md_data was cleaned in EVP_Digest_Final, because
   57|       |     * sometimes only copies of the context are ever finalised.
   58|       |     */
   59|    219|    cleanup_old_md_data(ctx, force);
   60|    219|    if (force)
  ------------------
  |  Branch (60:9): [True: 0, False: 219]
  ------------------
   61|      0|        ctx->digest = NULL;
   62|       |
   63|    219|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_ENGINE)
   64|    219|    ENGINE_finish(ctx->engine);
   65|    219|    ctx->engine = NULL;
   66|    219|#endif
   67|       |
   68|       |    /* Non legacy code, this has to be later than the ctx->digest cleaning */
   69|    219|    if (!keep_fetched) {
  ------------------
  |  Branch (69:9): [True: 219, False: 0]
  ------------------
   70|    219|        EVP_MD_free(ctx->fetched_digest);
   71|    219|        ctx->fetched_digest = NULL;
   72|       |        ctx->reqdigest = NULL;
   73|    219|    }
   74|    219|}
EVP_MD_CTX_reset:
   99|    219|{
  100|    219|    return evp_md_ctx_reset_ex(ctx, 0);
  101|    219|}
EVP_MD_CTX_new:
  130|    219|{
  131|    219|    return OPENSSL_zalloc(sizeof(EVP_MD_CTX));
  ------------------
  |  |  108|    219|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  132|    219|}
EVP_MD_CTX_free:
  135|  3.51k|{
  136|  3.51k|    if (ctx == NULL)
  ------------------
  |  Branch (136:9): [True: 3.29k, False: 219]
  ------------------
  137|  3.29k|        return;
  138|       |
  139|    219|    EVP_MD_CTX_reset(ctx);
  140|    219|    OPENSSL_free(ctx);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  141|    219|}
evp_md_ctx_free_algctx:
  144|    876|{
  145|    876|    if (ctx->algctx != NULL) {
  ------------------
  |  Branch (145:9): [True: 657, False: 219]
  ------------------
  146|    657|        if (!ossl_assert(ctx->digest != NULL)) {
  ------------------
  |  |   52|    657|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    657|    __FILE__, __LINE__)
  ------------------
  |  Branch (146:13): [True: 0, False: 657]
  ------------------
  147|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  148|      0|            return 0;
  149|      0|        }
  150|    657|        if (ctx->digest->freectx != NULL)
  ------------------
  |  Branch (150:13): [True: 657, False: 0]
  ------------------
  151|    657|            ctx->digest->freectx(ctx->algctx);
  152|    657|        ctx->algctx = NULL;
  153|    657|    }
  154|    876|    return 1;
  155|    876|}
EVP_DigestInit_ex:
  381|  3.72k|{
  382|       |    return evp_md_init_internal(ctx, type, NULL, impl);
  383|  3.72k|}
EVP_DigestUpdate:
  386|  4.38k|{
  387|  4.38k|    if (ossl_unlikely(count == 0))
  ------------------
  |  |   23|  4.38k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.38k]
  |  |  ------------------
  ------------------
  388|      0|        return 1;
  389|       |
  390|  4.38k|    if (ossl_unlikely((ctx->flags & EVP_MD_CTX_FLAG_FINALISED) != 0)) {
  ------------------
  |  |   23|  4.38k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.38k]
  |  |  ------------------
  ------------------
  391|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  392|      0|        return 0;
  393|      0|    }
  394|       |
  395|  4.38k|    if (ossl_unlikely(ctx->pctx != NULL)
  ------------------
  |  |   23|  8.76k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.38k]
  |  |  ------------------
  ------------------
  396|      0|        && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx)
  ------------------
  |  |  744|  4.38k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1781|      0|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1765|      0|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1775|      0|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1782|      0|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1766|      0|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1776|      0|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1783|      0|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1767|      0|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1784|      0|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1768|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1769|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (744:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  397|      0|        && ctx->pctx->op.sig.algctx != NULL) {
  ------------------
  |  Branch (397:12): [True: 0, False: 0]
  ------------------
  398|      0|#ifndef FIPS_MODULE
  399|       |        /*
  400|       |         * Prior to OpenSSL 3.0 EVP_DigestSignUpdate() and
  401|       |         * EVP_DigestVerifyUpdate() were just macros for EVP_DigestUpdate().
  402|       |         * Some code calls EVP_DigestUpdate() directly even when initialised
  403|       |         * with EVP_DigestSignInit_ex() or
  404|       |         * EVP_DigestVerifyInit_ex(), so we detect that and redirect to
  405|       |         * the correct EVP_Digest*Update() function
  406|       |         */
  407|      0|        if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX)
  ------------------
  |  | 1768|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  ------------------
  |  Branch (407:13): [True: 0, False: 0]
  ------------------
  408|      0|            return EVP_DigestSignUpdate(ctx, data, count);
  409|      0|        if (ctx->pctx->operation == EVP_PKEY_OP_VERIFYCTX)
  ------------------
  |  | 1769|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  ------------------
  |  Branch (409:13): [True: 0, False: 0]
  ------------------
  410|      0|            return EVP_DigestVerifyUpdate(ctx, data, count);
  411|      0|#endif
  412|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  413|      0|        return 0;
  414|      0|    }
  415|       |
  416|  4.38k|    if (ctx->digest == NULL
  ------------------
  |  Branch (416:9): [True: 0, False: 4.38k]
  ------------------
  417|  4.38k|        || ctx->digest->prov == NULL
  ------------------
  |  Branch (417:12): [True: 0, False: 4.38k]
  ------------------
  418|  4.38k|        || ossl_unlikely((ctx->flags & EVP_MD_CTX_FLAG_NO_INIT) != 0))
  ------------------
  |  |   23|  4.38k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.38k]
  |  |  ------------------
  ------------------
  419|      0|        goto legacy;
  420|       |
  421|  4.38k|    if (ossl_unlikely(ctx->digest->dupdate == NULL)) {
  ------------------
  |  |   23|  4.38k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.38k]
  |  |  ------------------
  ------------------
  422|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  423|      0|        return 0;
  424|      0|    }
  425|  4.38k|    return ctx->digest->dupdate(ctx->algctx, data, count);
  426|       |
  427|       |    /* Code below to be removed when legacy support is dropped. */
  428|      0|legacy:
  429|      0|    return ctx->update != NULL ? ctx->update(ctx, data, count) : 0;
  ------------------
  |  Branch (429:12): [True: 0, False: 0]
  ------------------
  430|  4.38k|}
EVP_DigestFinal_ex:
  443|    438|{
  444|    438|    int ret, sz;
  445|    438|    size_t size = 0;
  446|    438|    size_t mdsize = 0;
  447|       |
  448|    438|    if (ossl_unlikely(ctx->digest == NULL))
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  449|      0|        return 0;
  450|       |
  451|    438|    sz = EVP_MD_CTX_get_size(ctx);
  ------------------
  |  |  589|    438|#define EVP_MD_CTX_get_size(e) EVP_MD_CTX_get_size_ex(e)
  ------------------
  452|    438|    if (ossl_unlikely(sz < 0))
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  453|      0|        return 0;
  454|    438|    mdsize = sz;
  455|    438|    if (ossl_unlikely(ctx->digest->prov == NULL))
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  456|      0|        goto legacy;
  457|       |
  458|    438|    if (ossl_unlikely(ctx->digest->dfinal == NULL)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  459|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  460|      0|        return 0;
  461|      0|    }
  462|       |
  463|    438|    if (ossl_unlikely((ctx->flags & EVP_MD_CTX_FLAG_FINALISED) != 0)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  464|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  465|      0|        return 0;
  466|      0|    }
  467|       |
  468|    438|    ret = ctx->digest->dfinal(ctx->algctx, md, &size, mdsize);
  469|       |
  470|    438|    ctx->flags |= EVP_MD_CTX_FLAG_FINALISED;
  ------------------
  |  |   33|    438|#define EVP_MD_CTX_FLAG_FINALISED 0x0800
  ------------------
  471|       |
  472|    438|    if (isize != NULL) {
  ------------------
  |  Branch (472:9): [True: 438, False: 0]
  ------------------
  473|    438|        if (ossl_likely(size <= UINT_MAX)) {
  ------------------
  |  |   22|    438|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  474|    438|            *isize = (unsigned int)size;
  475|    438|        } else {
  476|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  477|      0|            ret = 0;
  478|      0|        }
  479|    438|    }
  480|       |
  481|    438|    return ret;
  482|       |
  483|       |    /* Code below to be removed when legacy support is dropped. */
  484|      0|legacy:
  485|      0|    OPENSSL_assert(mdsize <= EVP_MAX_MD_SIZE);
  ------------------
  |  |  476|      0|    (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (476:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  486|      0|    ret = ctx->digest->final(ctx, md);
  487|      0|    if (isize != NULL)
  ------------------
  |  Branch (487:9): [True: 0, False: 0]
  ------------------
  488|      0|        *isize = (unsigned int)mdsize;
  489|      0|    if (ctx->digest->cleanup) {
  ------------------
  |  Branch (489:9): [True: 0, False: 0]
  ------------------
  490|      0|        ctx->digest->cleanup(ctx);
  491|      0|        EVP_MD_CTX_set_flags(ctx, EVP_MD_CTX_FLAG_CLEANED);
  ------------------
  |  |  217|      0|#define EVP_MD_CTX_FLAG_CLEANED 0x0002 /* context has already been \
  ------------------
  492|      0|    }
  493|      0|    OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size);
  494|      0|    return ret;
  495|    438|}
EVP_DigestFinalXOF:
  499|  1.31k|{
  500|  1.31k|    int ret = 0;
  501|  1.31k|    OSSL_PARAM params[2];
  502|  1.31k|    size_t i = 0;
  503|       |
  504|  1.31k|    if (ossl_unlikely(ctx->digest == NULL)) {
  ------------------
  |  |   23|  1.31k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
  505|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_NULL_ALGORITHM);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  506|      0|        return 0;
  507|      0|    }
  508|       |
  509|  1.31k|    if (ossl_unlikely(ctx->digest->prov == NULL))
  ------------------
  |  |   23|  1.31k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
  510|      0|        goto legacy;
  511|       |
  512|  1.31k|    if (ossl_unlikely(ctx->digest->dfinal == NULL)) {
  ------------------
  |  |   23|  1.31k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
  513|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  514|      0|        return 0;
  515|      0|    }
  516|       |
  517|  1.31k|    if (ossl_unlikely((ctx->flags & EVP_MD_CTX_FLAG_FINALISED) != 0)) {
  ------------------
  |  |   23|  1.31k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
  518|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  519|      0|        return 0;
  520|      0|    }
  521|       |
  522|       |    /*
  523|       |     * For backward compatibility we pass the XOFLEN via a param here so that
  524|       |     * older providers can use the supplied value. Ideally we should have just
  525|       |     * used the size passed into ctx->digest->dfinal().
  526|       |     */
  527|  1.31k|    params[i++] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_XOFLEN, &size);
  ------------------
  |  |  232|  1.31k|# define OSSL_DIGEST_PARAM_XOFLEN "xoflen"
  ------------------
  528|  1.31k|    params[i++] = OSSL_PARAM_construct_end();
  529|       |
  530|  1.31k|    if (ossl_likely(EVP_MD_CTX_set_params(ctx, params) >= 0))
  ------------------
  |  |   22|  1.31k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.31k, False: 0]
  |  |  ------------------
  ------------------
  531|  1.31k|        ret = ctx->digest->dfinal(ctx->algctx, md, &size, size);
  532|       |
  533|  1.31k|    ctx->flags |= EVP_MD_CTX_FLAG_FINALISED;
  ------------------
  |  |   33|  1.31k|#define EVP_MD_CTX_FLAG_FINALISED 0x0800
  ------------------
  534|       |
  535|  1.31k|    return ret;
  536|       |
  537|      0|legacy:
  538|      0|    if (EVP_MD_xof(ctx->digest)
  ------------------
  |  Branch (538:9): [True: 0, False: 0]
  ------------------
  539|      0|        && size <= INT_MAX
  ------------------
  |  Branch (539:12): [True: 0, False: 0]
  ------------------
  540|      0|        && ctx->digest->md_ctrl(ctx, EVP_MD_CTRL_XOF_LEN, (int)size, NULL)) {
  ------------------
  |  |  204|      0|#define EVP_MD_CTRL_XOF_LEN 0x3
  ------------------
  |  Branch (540:12): [True: 0, False: 0]
  ------------------
  541|      0|        ret = ctx->digest->final(ctx, md);
  542|      0|        if (ctx->digest->cleanup != NULL) {
  ------------------
  |  Branch (542:13): [True: 0, False: 0]
  ------------------
  543|      0|            ctx->digest->cleanup(ctx);
  544|      0|            EVP_MD_CTX_set_flags(ctx, EVP_MD_CTX_FLAG_CLEANED);
  ------------------
  |  |  217|      0|#define EVP_MD_CTX_FLAG_CLEANED 0x0002 /* context has already been \
  ------------------
  545|      0|        }
  546|      0|        OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size);
  547|      0|    } else {
  548|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_NOT_XOF_OR_INVALID_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  549|      0|    }
  550|       |
  551|      0|    return ret;
  552|  1.31k|}
EVP_DigestSqueeze:
  556|  5.93k|{
  557|  5.93k|    if (ctx->digest == NULL) {
  ------------------
  |  Branch (557:9): [True: 0, False: 5.93k]
  ------------------
  558|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_NULL_ALGORITHM);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  559|      0|        return 0;
  560|      0|    }
  561|       |
  562|  5.93k|    if (ctx->digest->prov == NULL) {
  ------------------
  |  Branch (562:9): [True: 0, False: 5.93k]
  ------------------
  563|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_OPERATION);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  564|      0|        return 0;
  565|      0|    }
  566|       |
  567|  5.93k|    if (ctx->digest->dsqueeze == NULL) {
  ------------------
  |  Branch (567:9): [True: 0, False: 5.93k]
  ------------------
  568|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_METHOD_NOT_SUPPORTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  569|      0|        return 0;
  570|      0|    }
  571|       |
  572|  5.93k|    return ctx->digest->dsqueeze(ctx->algctx, md, &size, size);
  573|  5.93k|}
EVP_MD_CTX_set_params:
  777|  1.31k|{
  778|  1.31k|    EVP_PKEY_CTX *pctx = ctx->pctx;
  779|       |
  780|       |    /* If we have a pctx then we should try that first */
  781|  1.31k|    if (ossl_unlikely(pctx != NULL)
  ------------------
  |  |   23|  2.62k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
  782|      0|        && (pctx->operation == EVP_PKEY_OP_VERIFYCTX
  ------------------
  |  | 1769|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  ------------------
  |  Branch (782:13): [True: 0, False: 0]
  ------------------
  783|      0|            || pctx->operation == EVP_PKEY_OP_SIGNCTX)
  ------------------
  |  | 1768|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  ------------------
  |  Branch (783:16): [True: 0, False: 0]
  ------------------
  784|      0|        && pctx->op.sig.algctx != NULL
  ------------------
  |  Branch (784:12): [True: 0, False: 0]
  ------------------
  785|      0|        && pctx->op.sig.signature->set_ctx_md_params != NULL)
  ------------------
  |  Branch (785:12): [True: 0, False: 0]
  ------------------
  786|      0|        return pctx->op.sig.signature->set_ctx_md_params(pctx->op.sig.algctx,
  787|      0|            params);
  788|       |
  789|  1.31k|    if (ossl_likely(ctx->digest != NULL && ctx->digest->set_ctx_params != NULL))
  ------------------
  |  |   22|  2.62k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.31k, False: 0]
  |  |  |  Branch (22:44): [True: 1.31k, False: 0]
  |  |  |  Branch (22:44): [True: 1.31k, False: 0]
  |  |  ------------------
  ------------------
  790|  1.31k|        return ctx->digest->set_ctx_params(ctx->algctx, params);
  791|       |
  792|      0|    return 0;
  793|  1.31k|}
EVP_MD_CTX_gettable_params:
  863|    438|{
  864|    438|    EVP_PKEY_CTX *pctx;
  865|    438|    void *provctx;
  866|       |
  867|    438|    if (ossl_unlikely(ctx == NULL))
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  868|      0|        return NULL;
  869|       |
  870|       |    /* If we have a pctx then we should try that first */
  871|    438|    pctx = ctx->pctx;
  872|    438|    if (ossl_unlikely(pctx != NULL)
  ------------------
  |  |   23|    876|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  873|      0|        && (pctx->operation == EVP_PKEY_OP_VERIFYCTX
  ------------------
  |  | 1769|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  ------------------
  |  Branch (873:13): [True: 0, False: 0]
  ------------------
  874|      0|            || pctx->operation == EVP_PKEY_OP_SIGNCTX)
  ------------------
  |  | 1768|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  ------------------
  |  Branch (874:16): [True: 0, False: 0]
  ------------------
  875|      0|        && pctx->op.sig.signature != NULL
  ------------------
  |  Branch (875:12): [True: 0, False: 0]
  ------------------
  876|      0|        && pctx->op.sig.signature->gettable_ctx_md_params != NULL
  ------------------
  |  Branch (876:12): [True: 0, False: 0]
  ------------------
  877|      0|        && pctx->op.sig.algctx != NULL)
  ------------------
  |  Branch (877:12): [True: 0, False: 0]
  ------------------
  878|      0|        return pctx->op.sig.signature->gettable_ctx_md_params(
  879|      0|            pctx->op.sig.algctx);
  880|       |
  881|    438|    if (ossl_unlikely(ctx->digest != NULL
  ------------------
  |  |   23|    876|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  |  Branch (23:46): [True: 438, False: 0]
  |  |  |  Branch (23:46): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  882|    438|            && ctx->digest->gettable_ctx_params != NULL)) {
  883|      0|        provctx = ossl_provider_ctx(EVP_MD_get0_provider(ctx->digest));
  884|      0|        return ctx->digest->gettable_ctx_params(ctx->algctx, provctx);
  885|      0|    }
  886|    438|    return NULL;
  887|    438|}
evp_md_new:
  943|     27|{
  944|     27|    EVP_MD *md = OPENSSL_zalloc(sizeof(*md));
  ------------------
  |  |  108|     27|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  945|       |
  946|     27|    if (md != NULL && !CRYPTO_NEW_REF(&md->refcnt, 1)) {
  ------------------
  |  Branch (946:9): [True: 27, False: 0]
  |  Branch (946:23): [True: 0, False: 27]
  ------------------
  947|      0|        OPENSSL_free(md);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  948|      0|        return NULL;
  949|      0|    }
  950|     27|    return md;
  951|     27|}
EVP_MD_fetch:
 1162|  4.39k|{
 1163|  4.39k|    EVP_MD *md = evp_generic_fetch(ctx, OSSL_OP_DIGEST, algorithm, properties,
  ------------------
  |  |  283|  4.39k|#define OSSL_OP_DIGEST 1
  ------------------
 1164|  4.39k|        evp_md_from_algorithm, evp_md_up_ref, evp_md_free);
 1165|       |
 1166|  4.39k|    return md;
 1167|  4.39k|}
EVP_MD_up_ref:
 1170|  3.77k|{
 1171|  3.77k|    int ref = 0;
 1172|       |
 1173|  3.77k|    if (md->origin == EVP_ORIG_DYNAMIC)
  ------------------
  |  |  254|  3.77k|#define EVP_ORIG_DYNAMIC 0
  ------------------
  |  Branch (1173:9): [True: 3.77k, False: 0]
  ------------------
 1174|  3.77k|        CRYPTO_UP_REF(&md->refcnt, &ref);
 1175|  3.77k|    return 1;
 1176|  3.77k|}
EVP_MD_free:
 1179|  3.97k|{
 1180|  3.97k|    int i;
 1181|       |
 1182|  3.97k|    if (md == NULL || md->origin != EVP_ORIG_DYNAMIC)
  ------------------
  |  |  254|  3.75k|#define EVP_ORIG_DYNAMIC 0
  ------------------
  |  Branch (1182:9): [True: 219, False: 3.75k]
  |  Branch (1182:23): [True: 0, False: 3.75k]
  ------------------
 1183|    219|        return;
 1184|       |
 1185|  3.75k|    CRYPTO_DOWN_REF(&md->refcnt, &i);
 1186|  3.75k|    if (i > 0)
  ------------------
  |  Branch (1186:9): [True: 3.75k, False: 0]
  ------------------
 1187|  3.75k|        return;
 1188|      0|    evp_md_free_int(md);
 1189|      0|}
digest.c:cleanup_old_md_data:
   30|  3.94k|{
   31|  3.94k|    if (ctx->digest != NULL) {
  ------------------
  |  Branch (31:9): [True: 3.72k, False: 219]
  ------------------
   32|  3.72k|        if (ctx->digest->cleanup != NULL
  ------------------
  |  Branch (32:13): [True: 0, False: 3.72k]
  ------------------
   33|      0|            && !EVP_MD_CTX_test_flags(ctx, EVP_MD_CTX_FLAG_CLEANED))
  ------------------
  |  |  217|      0|#define EVP_MD_CTX_FLAG_CLEANED 0x0002 /* context has already been \
  ------------------
  |  Branch (33:16): [True: 0, False: 0]
  ------------------
   34|      0|            ctx->digest->cleanup(ctx);
   35|  3.72k|        if (ctx->md_data != NULL && ctx->digest->ctx_size > 0
  ------------------
  |  Branch (35:13): [True: 0, False: 3.72k]
  |  Branch (35:37): [True: 0, False: 0]
  ------------------
   36|      0|            && (!EVP_MD_CTX_test_flags(ctx, EVP_MD_CTX_FLAG_REUSE)
  ------------------
  |  |  219|      0|#define EVP_MD_CTX_FLAG_REUSE 0x0004 /* Don't free up ctx->md_data \
  ------------------
  |  Branch (36:17): [True: 0, False: 0]
  ------------------
   37|      0|                || force)) {
  ------------------
  |  Branch (37:20): [True: 0, False: 0]
  ------------------
   38|      0|            OPENSSL_clear_free(ctx->md_data, ctx->digest->ctx_size);
  ------------------
  |  |  129|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   39|       |            ctx->md_data = NULL;
   40|      0|        }
   41|  3.72k|    }
   42|  3.94k|}
digest.c:evp_md_ctx_reset_ex:
   77|    219|{
   78|    219|    if (ctx == NULL)
  ------------------
  |  Branch (78:9): [True: 0, False: 219]
  ------------------
   79|      0|        return 1;
   80|       |
   81|       |    /*
   82|       |     * pctx should be freed by the user of EVP_MD_CTX
   83|       |     * if EVP_MD_CTX_FLAG_KEEP_PKEY_CTX is set
   84|       |     */
   85|    219|    if (!EVP_MD_CTX_test_flags(ctx, EVP_MD_CTX_FLAG_KEEP_PKEY_CTX)) {
  ------------------
  |  |   32|    219|#define EVP_MD_CTX_FLAG_KEEP_PKEY_CTX 0x0400
  ------------------
  |  Branch (85:9): [True: 219, False: 0]
  ------------------
   86|    219|        EVP_PKEY_CTX_free(ctx->pctx);
   87|    219|        ctx->pctx = NULL;
   88|    219|    }
   89|       |
   90|    219|    evp_md_ctx_clear_digest(ctx, 0, keep_fetched);
   91|    219|    if (!keep_fetched)
  ------------------
  |  Branch (91:9): [True: 219, False: 0]
  ------------------
   92|    219|        OPENSSL_cleanse(ctx, sizeof(*ctx));
   93|       |
   94|    219|    return 1;
   95|    219|}
digest.c:evp_md_init_internal:
  159|  3.72k|{
  160|  3.72k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  161|  3.72k|    ENGINE *tmpimpl = NULL;
  162|  3.72k|#endif
  163|       |
  164|  3.72k|#if !defined(FIPS_MODULE)
  165|  3.72k|    if (ctx->pctx != NULL
  ------------------
  |  Branch (165:9): [True: 0, False: 3.72k]
  ------------------
  166|      0|        && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx)
  ------------------
  |  |  744|  3.72k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1781|      0|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1765|      0|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1775|      0|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1782|      0|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1766|      0|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1776|      0|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1783|      0|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1767|      0|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1784|      0|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1768|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1769|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (744:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  167|      0|        && ctx->pctx->op.sig.algctx != NULL) {
  ------------------
  |  Branch (167:12): [True: 0, False: 0]
  ------------------
  168|       |        /*
  169|       |         * Prior to OpenSSL 3.0 calling EVP_DigestInit_ex() on an mdctx
  170|       |         * previously initialised with EVP_DigestSignInit() would retain
  171|       |         * information about the key, and re-initialise for another sign
  172|       |         * operation. So in that case we redirect to EVP_DigestSignInit()
  173|       |         */
  174|      0|        if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX)
  ------------------
  |  | 1768|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  ------------------
  |  Branch (174:13): [True: 0, False: 0]
  ------------------
  175|      0|            return EVP_DigestSignInit(ctx, NULL, type, impl, NULL);
  176|      0|        if (ctx->pctx->operation == EVP_PKEY_OP_VERIFYCTX)
  ------------------
  |  | 1769|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  ------------------
  |  Branch (176:13): [True: 0, False: 0]
  ------------------
  177|      0|            return EVP_DigestVerifyInit(ctx, NULL, type, impl, NULL);
  178|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  179|      0|        return 0;
  180|      0|    }
  181|  3.72k|#endif
  182|       |
  183|  3.72k|    EVP_MD_CTX_clear_flags(ctx, EVP_MD_CTX_FLAG_CLEANED | EVP_MD_CTX_FLAG_FINALISED);
  ------------------
  |  |  217|  3.72k|#define EVP_MD_CTX_FLAG_CLEANED 0x0002 /* context has already been \
  ------------------
                  EVP_MD_CTX_clear_flags(ctx, EVP_MD_CTX_FLAG_CLEANED | EVP_MD_CTX_FLAG_FINALISED);
  ------------------
  |  |   33|  3.72k|#define EVP_MD_CTX_FLAG_FINALISED 0x0800
  ------------------
  184|       |
  185|  3.72k|    if (type != NULL) {
  ------------------
  |  Branch (185:9): [True: 3.72k, False: 0]
  ------------------
  186|  3.72k|        ctx->reqdigest = type;
  187|  3.72k|    } else {
  188|      0|        if (ossl_unlikely(ctx->digest == NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  189|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_NO_DIGEST_SET);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  190|      0|            return 0;
  191|      0|        }
  192|      0|        type = ctx->digest;
  193|      0|    }
  194|       |
  195|       |    /* Code below to be removed when legacy support is dropped. */
  196|  3.72k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  197|       |    /*
  198|       |     * Whether it's nice or not, "Inits" can be used on "Final"'d contexts so
  199|       |     * this context may already have an ENGINE! Try to avoid releasing the
  200|       |     * previous handle, re-querying for an ENGINE, and having a
  201|       |     * reinitialisation, when it may all be unnecessary.
  202|       |     */
  203|  3.72k|    if (ossl_unlikely(ctx->engine != NULL)
  ------------------
  |  |   23|  7.44k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3.72k]
  |  |  ------------------
  ------------------
  204|      0|        && ctx->digest != NULL
  ------------------
  |  Branch (204:12): [True: 0, False: 0]
  ------------------
  205|      0|        && type->type == ctx->digest->type)
  ------------------
  |  Branch (205:12): [True: 0, False: 0]
  ------------------
  206|      0|        goto skip_to_init;
  207|       |
  208|       |    /*
  209|       |     * Ensure an ENGINE left lying around from last time is cleared (the
  210|       |     * previous check attempted to avoid this if the same ENGINE and
  211|       |     * EVP_MD could be used).
  212|       |     */
  213|  3.72k|    ENGINE_finish(ctx->engine);
  214|  3.72k|    ctx->engine = NULL;
  215|       |
  216|  3.72k|    if (impl == NULL)
  ------------------
  |  Branch (216:9): [True: 3.72k, False: 0]
  ------------------
  217|  3.72k|        tmpimpl = ENGINE_get_digest_engine(type->type);
  218|  3.72k|#endif
  219|       |
  220|       |    /*
  221|       |     * If there are engines involved or EVP_MD_CTX_FLAG_NO_INIT is set then we
  222|       |     * should use legacy handling for now.
  223|       |     */
  224|  3.72k|    if (impl != NULL
  ------------------
  |  Branch (224:9): [True: 0, False: 3.72k]
  ------------------
  225|  3.72k|#if !defined(OPENSSL_NO_ENGINE)
  226|  3.72k|        || ctx->engine != NULL
  ------------------
  |  Branch (226:12): [True: 0, False: 3.72k]
  ------------------
  227|  3.72k|#if !defined(FIPS_MODULE)
  228|  3.72k|        || tmpimpl != NULL
  ------------------
  |  Branch (228:12): [True: 0, False: 3.72k]
  ------------------
  229|  3.72k|#endif
  230|  3.72k|#endif
  231|  3.72k|        || (ctx->flags & EVP_MD_CTX_FLAG_NO_INIT) != 0
  ------------------
  |  |  239|  3.72k|#define EVP_MD_CTX_FLAG_NO_INIT 0x0100 /* Don't initialize md_data */
  ------------------
  |  Branch (231:12): [True: 0, False: 3.72k]
  ------------------
  232|  3.72k|        || (type != NULL && type->origin == EVP_ORIG_METH)
  ------------------
  |  |  256|  3.72k|#define EVP_ORIG_METH 2
  ------------------
  |  Branch (232:13): [True: 3.72k, False: 0]
  |  Branch (232:29): [True: 0, False: 3.72k]
  ------------------
  233|  3.72k|        || (type == NULL && ctx->digest != NULL
  ------------------
  |  Branch (233:13): [True: 0, False: 3.72k]
  |  Branch (233:29): [True: 0, False: 0]
  ------------------
  234|      0|            && ctx->digest->origin == EVP_ORIG_METH)) {
  ------------------
  |  |  256|      0|#define EVP_ORIG_METH 2
  ------------------
  |  Branch (234:16): [True: 0, False: 0]
  ------------------
  235|       |        /* If we were using provided hash before, cleanup algctx */
  236|      0|        if (!evp_md_ctx_free_algctx(ctx))
  ------------------
  |  Branch (236:13): [True: 0, False: 0]
  ------------------
  237|      0|            return 0;
  238|      0|        if (ctx->digest == ctx->fetched_digest)
  ------------------
  |  Branch (238:13): [True: 0, False: 0]
  ------------------
  239|      0|            ctx->digest = NULL;
  240|      0|        EVP_MD_free(ctx->fetched_digest);
  241|      0|        ctx->fetched_digest = NULL;
  242|      0|        goto legacy;
  243|      0|    }
  244|       |
  245|  3.72k|    cleanup_old_md_data(ctx, 1);
  246|       |
  247|       |    /* Start of non-legacy code below */
  248|  3.72k|    if (ossl_likely(ctx->digest == type)) {
  ------------------
  |  |   22|  3.72k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 2.84k, False: 876]
  |  |  ------------------
  ------------------
  249|  2.84k|        if (ossl_unlikely(!ossl_assert(type->prov != NULL))) {
  ------------------
  |  |   23|  2.84k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.84k]
  |  |  ------------------
  ------------------
  250|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  251|      0|            return 0;
  252|      0|        }
  253|  2.84k|    } else {
  254|    876|        if (!evp_md_ctx_free_algctx(ctx))
  ------------------
  |  Branch (254:13): [True: 0, False: 876]
  ------------------
  255|      0|            return 0;
  256|    876|    }
  257|       |
  258|  3.72k|    if (ossl_unlikely(type->prov == NULL)) {
  ------------------
  |  |   23|  3.72k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3.72k]
  |  |  ------------------
  ------------------
  259|       |#ifdef FIPS_MODULE
  260|       |        /* We only do explicit fetches inside the FIPS module */
  261|       |        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  262|       |        return 0;
  263|       |#else
  264|       |        /* The NULL digest is a special case */
  265|      0|        EVP_MD *provmd = EVP_MD_fetch(NULL,
  266|      0|            type->type != NID_undef ? OBJ_nid2sn(type->type)
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (266:13): [True: 0, False: 0]
  ------------------
  267|      0|                                    : "NULL",
  268|      0|            "");
  269|       |
  270|      0|        if (provmd == NULL) {
  ------------------
  |  Branch (270:13): [True: 0, False: 0]
  ------------------
  271|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  272|      0|            return 0;
  273|      0|        }
  274|      0|        type = provmd;
  275|      0|        EVP_MD_free(ctx->fetched_digest);
  276|      0|        ctx->fetched_digest = provmd;
  277|      0|#endif
  278|      0|    }
  279|       |
  280|  3.72k|    if (ossl_unlikely(type->prov != NULL && ctx->fetched_digest != type)) {
  ------------------
  |  |   23|  7.44k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 876, False: 2.84k]
  |  |  |  Branch (23:46): [True: 3.72k, False: 0]
  |  |  |  Branch (23:46): [True: 876, False: 2.84k]
  |  |  ------------------
  ------------------
  281|    876|        if (ossl_unlikely(!EVP_MD_up_ref((EVP_MD *)type))) {
  ------------------
  |  |   23|    876|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 876]
  |  |  ------------------
  ------------------
  282|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  283|      0|            return 0;
  284|      0|        }
  285|    876|        EVP_MD_free(ctx->fetched_digest);
  286|    876|        ctx->fetched_digest = (EVP_MD *)type;
  287|    876|    }
  288|  3.72k|    ctx->digest = type;
  289|  3.72k|    if (ctx->algctx == NULL) {
  ------------------
  |  Branch (289:9): [True: 876, False: 2.84k]
  ------------------
  290|    876|        ctx->algctx = ctx->digest->newctx(ossl_provider_ctx(type->prov));
  291|    876|        if (ctx->algctx == NULL) {
  ------------------
  |  Branch (291:13): [True: 0, False: 876]
  ------------------
  292|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  293|      0|            return 0;
  294|      0|        }
  295|    876|    }
  296|       |
  297|  3.72k|    if (ctx->digest->dinit == NULL) {
  ------------------
  |  Branch (297:9): [True: 0, False: 3.72k]
  ------------------
  298|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  299|      0|        return 0;
  300|      0|    }
  301|       |
  302|  3.72k|    return ctx->digest->dinit(ctx->algctx, params);
  303|       |
  304|       |    /* Code below to be removed when legacy support is dropped. */
  305|      0|legacy:
  306|       |
  307|      0|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  308|      0|    if (type) {
  ------------------
  |  Branch (308:9): [True: 0, False: 0]
  ------------------
  309|      0|        if (impl != NULL) {
  ------------------
  |  Branch (309:13): [True: 0, False: 0]
  ------------------
  310|      0|            if (!ENGINE_init(impl)) {
  ------------------
  |  Branch (310:17): [True: 0, False: 0]
  ------------------
  311|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  312|      0|                return 0;
  313|      0|            }
  314|      0|        } else {
  315|       |            /* Ask if an ENGINE is reserved for this job */
  316|      0|            impl = tmpimpl;
  317|      0|        }
  318|      0|        if (impl != NULL) {
  ------------------
  |  Branch (318:13): [True: 0, False: 0]
  ------------------
  319|       |            /* There's an ENGINE for this job ... (apparently) */
  320|      0|            const EVP_MD *d = ENGINE_get_digest(impl, type->type);
  321|       |
  322|      0|            if (d == NULL) {
  ------------------
  |  Branch (322:17): [True: 0, False: 0]
  ------------------
  323|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  324|      0|                ENGINE_finish(impl);
  325|      0|                return 0;
  326|      0|            }
  327|       |            /* We'll use the ENGINE's private digest definition */
  328|      0|            type = d;
  329|       |            /*
  330|       |             * Store the ENGINE functional reference so we know 'type' came
  331|       |             * from an ENGINE and we need to release it when done.
  332|       |             */
  333|      0|            ctx->engine = impl;
  334|      0|        } else
  335|      0|            ctx->engine = NULL;
  336|      0|    }
  337|      0|#endif
  338|      0|    if (ctx->digest != type) {
  ------------------
  |  Branch (338:9): [True: 0, False: 0]
  ------------------
  339|      0|        cleanup_old_md_data(ctx, 1);
  340|       |
  341|      0|        ctx->digest = type;
  342|      0|        if (!(ctx->flags & EVP_MD_CTX_FLAG_NO_INIT) && type->ctx_size) {
  ------------------
  |  |  239|      0|#define EVP_MD_CTX_FLAG_NO_INIT 0x0100 /* Don't initialize md_data */
  ------------------
  |  Branch (342:13): [True: 0, False: 0]
  |  Branch (342:56): [True: 0, False: 0]
  ------------------
  343|      0|            ctx->update = type->update;
  344|      0|            ctx->md_data = OPENSSL_zalloc(type->ctx_size);
  ------------------
  |  |  108|      0|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  345|      0|            if (ctx->md_data == NULL)
  ------------------
  |  Branch (345:17): [True: 0, False: 0]
  ------------------
  346|      0|                return 0;
  347|      0|        }
  348|      0|    }
  349|      0|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  350|      0|skip_to_init:
  351|      0|#endif
  352|      0|#ifndef FIPS_MODULE
  353|      0|    if (ctx->pctx != NULL
  ------------------
  |  Branch (353:9): [True: 0, False: 0]
  ------------------
  354|      0|        && (!EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx)
  ------------------
  |  |  744|      0|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1781|      0|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1765|      0|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1775|      0|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1782|      0|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1766|      0|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1776|      0|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1783|      0|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1767|      0|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1784|      0|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1768|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1769|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (354:13): [True: 0, False: 0]
  ------------------
  355|      0|            || ctx->pctx->op.sig.signature == NULL)) {
  ------------------
  |  Branch (355:16): [True: 0, False: 0]
  ------------------
  356|      0|        int r;
  357|      0|        r = EVP_PKEY_CTX_ctrl(ctx->pctx, -1, EVP_PKEY_OP_TYPE_SIG,
  ------------------
  |  | 1781|      0|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  ------------------
  |  |  |  | 1765|      0|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  ------------------
  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  ------------------
  |  |  |  | 1775|      0|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  ------------------
  |  | 1782|      0|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  ------------------
  |  |  |  | 1766|      0|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  ------------------
  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  ------------------
  |  |  |  | 1776|      0|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  ------------------
  |  | 1783|      0|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  ------------------
  |  |  |  | 1767|      0|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  ------------------
  |  | 1784|      0|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  ------------------
  |  |  |  | 1768|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  ------------------
  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  ------------------
  |  |  |  | 1769|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  ------------------
  ------------------
  358|      0|            EVP_PKEY_CTRL_DIGESTINIT, 0, ctx);
  ------------------
  |  | 1810|      0|#define EVP_PKEY_CTRL_DIGESTINIT 7
  ------------------
  359|      0|        if (r <= 0 && (r != -2))
  ------------------
  |  Branch (359:13): [True: 0, False: 0]
  |  Branch (359:23): [True: 0, False: 0]
  ------------------
  360|      0|            return 0;
  361|      0|    }
  362|      0|#endif
  363|      0|    if (ctx->flags & EVP_MD_CTX_FLAG_NO_INIT)
  ------------------
  |  |  239|      0|#define EVP_MD_CTX_FLAG_NO_INIT 0x0100 /* Don't initialize md_data */
  ------------------
  |  Branch (363:9): [True: 0, False: 0]
  ------------------
  364|      0|        return 1;
  365|      0|    return ctx->digest->init(ctx);
  366|      0|}
digest.c:evp_md_from_algorithm:
 1019|     27|{
 1020|     27|    const OSSL_DISPATCH *fns = algodef->implementation;
 1021|     27|    EVP_MD *md = NULL;
 1022|     27|    int fncnt = 0;
 1023|       |
 1024|       |    /* EVP_MD_fetch() will set the legacy NID if available */
 1025|     27|    if ((md = evp_md_new()) == NULL) {
  ------------------
  |  Branch (1025:9): [True: 0, False: 27]
  ------------------
 1026|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1027|      0|        return NULL;
 1028|      0|    }
 1029|       |
 1030|     27|#ifndef FIPS_MODULE
 1031|     27|    md->type = NID_undef;
  ------------------
  |  |   18|     27|#define NID_undef                       0
  ------------------
 1032|     27|    if (!evp_names_do_all(prov, name_id, set_legacy_nid, &md->type)
  ------------------
  |  Branch (1032:9): [True: 0, False: 27]
  ------------------
 1033|     27|        || md->type == -1) {
  ------------------
  |  Branch (1033:12): [True: 0, False: 27]
  ------------------
 1034|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1035|      0|        goto err;
 1036|      0|    }
 1037|     27|#endif
 1038|       |
 1039|     27|    md->name_id = name_id;
 1040|     27|    if ((md->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL)
  ------------------
  |  Branch (1040:9): [True: 0, False: 27]
  ------------------
 1041|      0|        goto err;
 1042|       |
 1043|     27|    md->description = algodef->algorithm_description;
 1044|       |
 1045|    302|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (1045:12): [True: 275, False: 27]
  ------------------
 1046|    275|        switch (fns->function_id) {
  ------------------
  |  Branch (1046:17): [True: 275, False: 0]
  ------------------
 1047|     27|        case OSSL_FUNC_DIGEST_NEWCTX:
  ------------------
  |  |  303|     27|#define OSSL_FUNC_DIGEST_NEWCTX 1
  ------------------
  |  Branch (1047:9): [True: 27, False: 248]
  ------------------
 1048|     27|            if (md->newctx == NULL) {
  ------------------
  |  Branch (1048:17): [True: 27, False: 0]
  ------------------
 1049|     27|                md->newctx = OSSL_FUNC_digest_newctx(fns);
 1050|     27|                fncnt++;
 1051|     27|            }
 1052|     27|            break;
 1053|     27|        case OSSL_FUNC_DIGEST_INIT:
  ------------------
  |  |  304|     27|#define OSSL_FUNC_DIGEST_INIT 2
  ------------------
  |  Branch (1053:9): [True: 27, False: 248]
  ------------------
 1054|     27|            if (md->dinit == NULL) {
  ------------------
  |  Branch (1054:17): [True: 27, False: 0]
  ------------------
 1055|     27|                md->dinit = OSSL_FUNC_digest_init(fns);
 1056|     27|                fncnt++;
 1057|     27|            }
 1058|     27|            break;
 1059|     27|        case OSSL_FUNC_DIGEST_UPDATE:
  ------------------
  |  |  305|     27|#define OSSL_FUNC_DIGEST_UPDATE 3
  ------------------
  |  Branch (1059:9): [True: 27, False: 248]
  ------------------
 1060|     27|            if (md->dupdate == NULL) {
  ------------------
  |  Branch (1060:17): [True: 27, False: 0]
  ------------------
 1061|     27|                md->dupdate = OSSL_FUNC_digest_update(fns);
 1062|     27|                fncnt++;
 1063|     27|            }
 1064|     27|            break;
 1065|     27|        case OSSL_FUNC_DIGEST_FINAL:
  ------------------
  |  |  306|     27|#define OSSL_FUNC_DIGEST_FINAL 4
  ------------------
  |  Branch (1065:9): [True: 27, False: 248]
  ------------------
 1066|     27|            if (md->dfinal == NULL) {
  ------------------
  |  Branch (1066:17): [True: 27, False: 0]
  ------------------
 1067|     27|                md->dfinal = OSSL_FUNC_digest_final(fns);
 1068|     27|                fncnt++;
 1069|     27|            }
 1070|     27|            break;
 1071|      4|        case OSSL_FUNC_DIGEST_SQUEEZE:
  ------------------
  |  |  316|      4|#define OSSL_FUNC_DIGEST_SQUEEZE 14
  ------------------
  |  Branch (1071:9): [True: 4, False: 271]
  ------------------
 1072|      4|            if (md->dsqueeze == NULL) {
  ------------------
  |  Branch (1072:17): [True: 4, False: 0]
  ------------------
 1073|      4|                md->dsqueeze = OSSL_FUNC_digest_squeeze(fns);
 1074|      4|                fncnt++;
 1075|      4|            }
 1076|      4|            break;
 1077|      0|        case OSSL_FUNC_DIGEST_DIGEST:
  ------------------
  |  |  307|      0|#define OSSL_FUNC_DIGEST_DIGEST 5
  ------------------
  |  Branch (1077:9): [True: 0, False: 275]
  ------------------
 1078|      0|            if (md->digest == NULL)
  ------------------
  |  Branch (1078:17): [True: 0, False: 0]
  ------------------
 1079|      0|                md->digest = OSSL_FUNC_digest_digest(fns);
 1080|       |            /* We don't increment fnct for this as it is stand alone */
 1081|      0|            break;
 1082|     27|        case OSSL_FUNC_DIGEST_FREECTX:
  ------------------
  |  |  308|     27|#define OSSL_FUNC_DIGEST_FREECTX 6
  ------------------
  |  Branch (1082:9): [True: 27, False: 248]
  ------------------
 1083|     27|            if (md->freectx == NULL) {
  ------------------
  |  Branch (1083:17): [True: 27, False: 0]
  ------------------
 1084|     27|                md->freectx = OSSL_FUNC_digest_freectx(fns);
 1085|     27|                fncnt++;
 1086|     27|            }
 1087|     27|            break;
 1088|     27|        case OSSL_FUNC_DIGEST_DUPCTX:
  ------------------
  |  |  309|     27|#define OSSL_FUNC_DIGEST_DUPCTX 7
  ------------------
  |  Branch (1088:9): [True: 27, False: 248]
  ------------------
 1089|     27|            if (md->dupctx == NULL)
  ------------------
  |  Branch (1089:17): [True: 27, False: 0]
  ------------------
 1090|     27|                md->dupctx = OSSL_FUNC_digest_dupctx(fns);
 1091|     27|            break;
 1092|     27|        case OSSL_FUNC_DIGEST_GET_PARAMS:
  ------------------
  |  |  310|     27|#define OSSL_FUNC_DIGEST_GET_PARAMS 8
  ------------------
  |  Branch (1092:9): [True: 27, False: 248]
  ------------------
 1093|     27|            if (md->get_params == NULL)
  ------------------
  |  Branch (1093:17): [True: 27, False: 0]
  ------------------
 1094|     27|                md->get_params = OSSL_FUNC_digest_get_params(fns);
 1095|     27|            break;
 1096|      8|        case OSSL_FUNC_DIGEST_SET_CTX_PARAMS:
  ------------------
  |  |  311|      8|#define OSSL_FUNC_DIGEST_SET_CTX_PARAMS 9
  ------------------
  |  Branch (1096:9): [True: 8, False: 267]
  ------------------
 1097|      8|            if (md->set_ctx_params == NULL)
  ------------------
  |  Branch (1097:17): [True: 8, False: 0]
  ------------------
 1098|      8|                md->set_ctx_params = OSSL_FUNC_digest_set_ctx_params(fns);
 1099|      8|            break;
 1100|      6|        case OSSL_FUNC_DIGEST_GET_CTX_PARAMS:
  ------------------
  |  |  312|      6|#define OSSL_FUNC_DIGEST_GET_CTX_PARAMS 10
  ------------------
  |  Branch (1100:9): [True: 6, False: 269]
  ------------------
 1101|      6|            if (md->get_ctx_params == NULL)
  ------------------
  |  Branch (1101:17): [True: 6, False: 0]
  ------------------
 1102|      6|                md->get_ctx_params = OSSL_FUNC_digest_get_ctx_params(fns);
 1103|      6|            break;
 1104|     27|        case OSSL_FUNC_DIGEST_GETTABLE_PARAMS:
  ------------------
  |  |  313|     27|#define OSSL_FUNC_DIGEST_GETTABLE_PARAMS 11
  ------------------
  |  Branch (1104:9): [True: 27, False: 248]
  ------------------
 1105|     27|            if (md->gettable_params == NULL)
  ------------------
  |  Branch (1105:17): [True: 27, False: 0]
  ------------------
 1106|     27|                md->gettable_params = OSSL_FUNC_digest_gettable_params(fns);
 1107|     27|            break;
 1108|      8|        case OSSL_FUNC_DIGEST_SETTABLE_CTX_PARAMS:
  ------------------
  |  |  314|      8|#define OSSL_FUNC_DIGEST_SETTABLE_CTX_PARAMS 12
  ------------------
  |  Branch (1108:9): [True: 8, False: 267]
  ------------------
 1109|      8|            if (md->settable_ctx_params == NULL)
  ------------------
  |  Branch (1109:17): [True: 8, False: 0]
  ------------------
 1110|      8|                md->settable_ctx_params = OSSL_FUNC_digest_settable_ctx_params(fns);
 1111|      8|            break;
 1112|      6|        case OSSL_FUNC_DIGEST_GETTABLE_CTX_PARAMS:
  ------------------
  |  |  315|      6|#define OSSL_FUNC_DIGEST_GETTABLE_CTX_PARAMS 13
  ------------------
  |  Branch (1112:9): [True: 6, False: 269]
  ------------------
 1113|      6|            if (md->gettable_ctx_params == NULL)
  ------------------
  |  Branch (1113:17): [True: 6, False: 0]
  ------------------
 1114|      6|                md->gettable_ctx_params = OSSL_FUNC_digest_gettable_ctx_params(fns);
 1115|      6|            break;
 1116|     27|        case OSSL_FUNC_DIGEST_COPYCTX:
  ------------------
  |  |  317|     27|#define OSSL_FUNC_DIGEST_COPYCTX 15
  ------------------
  |  Branch (1116:9): [True: 27, False: 248]
  ------------------
 1117|     27|            if (md->copyctx == NULL)
  ------------------
  |  Branch (1117:17): [True: 27, False: 0]
  ------------------
 1118|     27|                md->copyctx = OSSL_FUNC_digest_copyctx(fns);
 1119|     27|            break;
 1120|    275|        }
 1121|    275|    }
 1122|     27|    if ((fncnt != 0 && fncnt != 5 && fncnt != 6)
  ------------------
  |  Branch (1122:10): [True: 27, False: 0]
  |  Branch (1122:24): [True: 4, False: 23]
  |  Branch (1122:38): [True: 0, False: 4]
  ------------------
 1123|     27|        || (fncnt == 0 && md->digest == NULL)) {
  ------------------
  |  Branch (1123:13): [True: 0, False: 27]
  |  Branch (1123:27): [True: 0, False: 0]
  ------------------
 1124|       |        /*
 1125|       |         * In order to be a consistent set of functions we either need the
 1126|       |         * whole set of init/update/final etc functions or none of them.
 1127|       |         * The "digest" function can standalone. We at least need one way to
 1128|       |         * generate digests.
 1129|       |         */
 1130|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1131|      0|        goto err;
 1132|      0|    }
 1133|     27|    if (prov != NULL && !ossl_provider_up_ref(prov))
  ------------------
  |  Branch (1133:9): [True: 27, False: 0]
  |  Branch (1133:25): [True: 0, False: 27]
  ------------------
 1134|      0|        goto err;
 1135|       |
 1136|     27|    md->prov = prov;
 1137|       |
 1138|     27|    if (!evp_md_cache_constants(md)) {
  ------------------
  |  Branch (1138:9): [True: 0, False: 27]
  ------------------
 1139|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_CACHE_CONSTANTS_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1140|      0|        goto err;
 1141|      0|    }
 1142|       |
 1143|     27|    return md;
 1144|       |
 1145|      0|err:
 1146|      0|    EVP_MD_free(md);
 1147|       |    return NULL;
 1148|     27|}
digest.c:set_legacy_nid:
  960|     71|{
  961|     71|    int nid;
  962|     71|    int *legacy_nid = vlegacy_nid;
  963|       |    /*
  964|       |     * We use lowest level function to get the associated method, because
  965|       |     * higher level functions such as EVP_get_digestbyname() have changed
  966|       |     * to look at providers too.
  967|       |     */
  968|     71|    const void *legacy_method = OBJ_NAME_get(name, OBJ_NAME_TYPE_MD_METH);
  ------------------
  |  |   25|     71|#define OBJ_NAME_TYPE_MD_METH 0x01
  ------------------
  969|       |
  970|     71|    if (*legacy_nid == -1) /* We found a clash already */
  ------------------
  |  Branch (970:9): [True: 0, False: 71]
  ------------------
  971|      0|        return;
  972|       |
  973|     71|    if (legacy_method == NULL)
  ------------------
  |  Branch (973:9): [True: 48, False: 23]
  ------------------
  974|     48|        return;
  975|     23|    nid = EVP_MD_nid(legacy_method);
  ------------------
  |  |  554|     23|#define EVP_MD_nid EVP_MD_get_type
  ------------------
  976|     23|    if (*legacy_nid != NID_undef && *legacy_nid != nid) {
  ------------------
  |  |   18|     46|#define NID_undef                       0
  ------------------
  |  Branch (976:9): [True: 4, False: 19]
  |  Branch (976:37): [True: 0, False: 4]
  ------------------
  977|      0|        *legacy_nid = -1;
  978|      0|        return;
  979|      0|    }
  980|     23|    *legacy_nid = nid;
  981|     23|}
digest.c:evp_md_cache_constants:
  985|     27|{
  986|     27|    int ok, xof = 0, algid_absent = 0;
  987|     27|    size_t blksz = 0;
  988|     27|    size_t mdsize = 0;
  989|     27|    OSSL_PARAM params[5];
  990|       |
  991|       |    /*
  992|       |     * Note that these parameters are 'constants' that are only set up
  993|       |     * during the EVP_MD_fetch(). For this reason the XOF functions set the
  994|       |     * md_size to 0, since the output size is unknown.
  995|       |     */
  996|     27|    params[0] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_BLOCK_SIZE, &blksz);
  ------------------
  |  |  226|     27|# define OSSL_DIGEST_PARAM_BLOCK_SIZE "blocksize"
  ------------------
  997|     27|    params[1] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_SIZE, &mdsize);
  ------------------
  |  |  229|     27|# define OSSL_DIGEST_PARAM_SIZE "size"
  ------------------
  998|     27|    params[2] = OSSL_PARAM_construct_int(OSSL_DIGEST_PARAM_XOF, &xof);
  ------------------
  |  |  231|     27|# define OSSL_DIGEST_PARAM_XOF "xof"
  ------------------
  999|     27|    params[3] = OSSL_PARAM_construct_int(OSSL_DIGEST_PARAM_ALGID_ABSENT,
  ------------------
  |  |  225|     27|# define OSSL_DIGEST_PARAM_ALGID_ABSENT "algid-absent"
  ------------------
 1000|     27|        &algid_absent);
 1001|     27|    params[4] = OSSL_PARAM_construct_end();
 1002|     27|    ok = evp_do_md_getparams(md, params) > 0;
 1003|     27|    if (mdsize > INT_MAX || blksz > INT_MAX)
  ------------------
  |  Branch (1003:9): [True: 0, False: 27]
  |  Branch (1003:29): [True: 0, False: 27]
  ------------------
 1004|      0|        ok = 0;
 1005|     27|    if (ok) {
  ------------------
  |  Branch (1005:9): [True: 27, False: 0]
  ------------------
 1006|     27|        md->block_size = (int)blksz;
 1007|     27|        md->md_size = (int)mdsize;
 1008|     27|        if (xof)
  ------------------
  |  Branch (1008:13): [True: 4, False: 23]
  ------------------
 1009|      4|            md->flags |= EVP_MD_FLAG_XOF;
  ------------------
  |  |  179|      4|#define EVP_MD_FLAG_XOF 0x0002
  ------------------
 1010|     27|        if (algid_absent)
  ------------------
  |  Branch (1010:13): [True: 18, False: 9]
  ------------------
 1011|     18|            md->flags |= EVP_MD_FLAG_DIGALGID_ABSENT;
  ------------------
  |  |  191|     18|#define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
  ------------------
 1012|     27|    }
 1013|     27|    return ok;
 1014|     27|}
digest.c:evp_md_up_ref:
 1151|  2.89k|{
 1152|  2.89k|    return EVP_MD_up_ref(md);
 1153|  2.89k|}
digest.c:evp_md_free:
 1156|     27|{
 1157|     27|    EVP_MD_free(md);
 1158|     27|}

EVP_aes_128_cbc:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_128_ecb:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_128_ofb:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_128_cfb128:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_128_cfb1:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_128_cfb8:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_128_ctr:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_192_cbc:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_192_ecb:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_192_ofb:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_192_cfb128:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_192_cfb1:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_192_cfb8:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_192_ctr:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_256_cbc:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_256_ecb:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_256_ofb:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_256_cfb128:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_256_cfb1:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_256_cfb8:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_256_ctr:
  441|      2|    {                                                                                 \
  442|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;     \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  443|      2|    }
EVP_aes_128_gcm:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_192_gcm:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_256_gcm:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_128_xts:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_256_xts:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_128_ccm:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_192_ccm:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_256_ccm:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_128_wrap:
 3775|      2|{
 3776|      2|    return &aes_128_wrap;
 3777|      2|}
EVP_aes_192_wrap:
 3789|      2|{
 3790|      2|    return &aes_192_wrap;
 3791|      2|}
EVP_aes_256_wrap:
 3803|      2|{
 3804|      2|    return &aes_256_wrap;
 3805|      2|}
EVP_aes_128_wrap_pad:
 3817|      2|{
 3818|      2|    return &aes_128_wrap_pad;
 3819|      2|}
EVP_aes_192_wrap_pad:
 3831|      2|{
 3832|      2|    return &aes_192_wrap_pad;
 3833|      2|}
EVP_aes_256_wrap_pad:
 3845|      2|{
 3846|      2|    return &aes_256_wrap_pad;
 3847|      2|}
EVP_aes_128_ocb:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_192_ocb:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }
EVP_aes_256_ocb:
  471|      2|    {                                                                                                                      \
  472|      2|        return AESNI_CAPABLE ? &aesni_##keylen##_##mode : &aes_##keylen##_##mode;                                          \
  ------------------
  |  |  185|      2|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (185:23): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  473|      2|    }

EVP_aes_128_cbc_hmac_sha1:
  937|      2|{
  938|      2|    return (OPENSSL_ia32cap_P[1] & AESNI_CAPABLE ? &aesni_128_cbc_hmac_sha1_cipher : NULL);
  ------------------
  |  |   45|      2|#define AESNI_CAPABLE (1 << (57 - 32))
  ------------------
  |  Branch (938:13): [True: 2, False: 0]
  ------------------
  939|      2|}
EVP_aes_256_cbc_hmac_sha1:
  942|      2|{
  943|      2|    return (OPENSSL_ia32cap_P[1] & AESNI_CAPABLE ? &aesni_256_cbc_hmac_sha1_cipher : NULL);
  ------------------
  |  |   45|      2|#define AESNI_CAPABLE (1 << (57 - 32))
  ------------------
  |  Branch (943:13): [True: 2, False: 0]
  ------------------
  944|      2|}

EVP_aes_128_cbc_hmac_sha256:
  913|      2|{
  914|      2|    return ((OPENSSL_ia32cap_P[1] & AESNI_CAPABLE) && aesni_cbc_sha256_enc(NULL, NULL, 0, NULL, NULL, NULL, NULL) ? &aesni_128_cbc_hmac_sha256_cipher : NULL);
  ------------------
  |  |   45|      2|#define AESNI_CAPABLE (1 << (57 - 32))
  ------------------
  |  Branch (914:13): [True: 2, False: 0]
  |  Branch (914:55): [True: 2, False: 0]
  ------------------
  915|      2|}
EVP_aes_256_cbc_hmac_sha256:
  918|      2|{
  919|      2|    return ((OPENSSL_ia32cap_P[1] & AESNI_CAPABLE) && aesni_cbc_sha256_enc(NULL, NULL, 0, NULL, NULL, NULL, NULL) ? &aesni_256_cbc_hmac_sha256_cipher : NULL);
  ------------------
  |  |   45|      2|#define AESNI_CAPABLE (1 << (57 - 32))
  ------------------
  |  Branch (919:13): [True: 2, False: 0]
  |  Branch (919:55): [True: 2, False: 0]
  ------------------
  920|      2|}

EVP_aria_128_ctr:
  174|      2|    {                                                                                 \
  175|      2|        return &aria_##keylen##_##mode;                                               \
  176|      2|    }
EVP_aria_192_ctr:
  174|      2|    {                                                                                 \
  175|      2|        return &aria_##keylen##_##mode;                                               \
  176|      2|    }
EVP_aria_256_ctr:
  174|      2|    {                                                                                 \
  175|      2|        return &aria_##keylen##_##mode;                                               \
  176|      2|    }
EVP_aria_128_gcm:
  776|      2|    {                                                  \
  777|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
  778|      2|    }
EVP_aria_192_gcm:
  776|      2|    {                                                  \
  777|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
  778|      2|    }
EVP_aria_256_gcm:
  776|      2|    {                                                  \
  777|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
  778|      2|    }
EVP_aria_128_ccm:
  776|      2|    {                                                  \
  777|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
  778|      2|    }
EVP_aria_192_ccm:
  776|      2|    {                                                  \
  777|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
  778|      2|    }
EVP_aria_256_ccm:
  776|      2|    {                                                  \
  777|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
  778|      2|    }

EVP_camellia_128_cbc:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_128_ecb:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_128_ofb:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_128_cfb128:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_128_cfb1:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_128_cfb8:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_128_ctr:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_192_cbc:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_192_ecb:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_192_ofb:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_192_cfb128:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_192_cfb1:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_192_cfb8:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_192_ctr:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_256_cbc:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_256_ecb:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_256_ofb:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_256_cfb128:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_256_cfb1:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_256_cfb8:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }
EVP_camellia_256_ctr:
  180|      2|    {                                                                                 \
  181|      2|        return &camellia_##keylen##_##mode;                                           \
  182|      2|    }

EVP_chacha20:
  147|      2|{
  148|      2|    return &chacha20;
  149|      2|}
EVP_chacha20_poly1305:
  626|      2|{
  627|      2|    return (&chacha20_poly1305);
  628|      2|}

EVP_des_ede:
  301|      2|{
  302|      2|    return &des_ede_ecb;
  303|      2|}
EVP_des_ede3:
  306|      2|{
  307|      2|    return &des_ede3_ecb;
  308|      2|}
EVP_des_ede3_wrap:
  421|      2|{
  422|      2|    return &des3_wrap;
  423|      2|}

EVP_rc2_64_cbc:
   83|      2|{
   84|      2|    return &r2_64_cbc_cipher;
   85|      2|}
EVP_rc2_40_cbc:
   88|      2|{
   89|      2|    return &r2_40_cbc_cipher;
   90|      2|}

EVP_rc4:
   68|      2|{
   69|      2|    return &r4_cipher;
   70|      2|}
EVP_rc4_40:
   73|      2|{
   74|      2|    return &r4_40_cipher;
   75|      2|}

EVP_rc4_hmac_md5:
  263|      2|{
  264|      2|    return &r4_hmac_md5_cipher;
  265|      2|}

EVP_sm4_cbc:
   48|      2|    {                                                                         \
   49|      2|        return &sm4_##mode;                                                   \
   50|      2|    }
EVP_sm4_ecb:
   48|      2|    {                                                                         \
   49|      2|        return &sm4_##mode;                                                   \
   50|      2|    }
EVP_sm4_ofb:
   48|      2|    {                                                                         \
   49|      2|        return &sm4_##mode;                                                   \
   50|      2|    }
EVP_sm4_cfb128:
   48|      2|    {                                                                         \
   49|      2|        return &sm4_##mode;                                                   \
   50|      2|    }
EVP_sm4_ctr:
   48|      2|    {                                                                         \
   49|      2|        return &sm4_##mode;                                                   \
   50|      2|    }

EVP_desx_cbc:
   56|      2|{
   57|      2|    return &d_xcbc_cipher;
   58|      2|}

OSSL_EC_curve_nid2name:
  119|  8.76k|{
  120|  8.76k|    size_t i;
  121|       |
  122|  8.76k|    if (nid <= 0)
  ------------------
  |  Branch (122:9): [True: 0, False: 8.76k]
  ------------------
  123|      0|        return NULL;
  124|       |
  125|   112k|    for (i = 0; i < OSSL_NELEM(curve_list); i++) {
  ------------------
  |  |   14|   112k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (125:17): [True: 112k, False: 0]
  ------------------
  126|   112k|        if (curve_list[i].nid == nid)
  ------------------
  |  Branch (126:13): [True: 8.76k, False: 103k]
  ------------------
  127|  8.76k|            return curve_list[i].name;
  128|   112k|    }
  129|      0|    return NULL;
  130|  8.76k|}

EVP_ENCODE_CTX_new:
  349|  31.9k|{
  350|  31.9k|    return OPENSSL_zalloc(sizeof(EVP_ENCODE_CTX));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  351|  31.9k|}
EVP_ENCODE_CTX_free:
  354|  32.1k|{
  355|  32.1k|    OPENSSL_free(ctx);
  ------------------
  |  |  131|  32.1k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  356|  32.1k|}
EVP_DecodeInit:
  495|  31.9k|{
  496|       |    /* Only ctx->num and ctx->flags are used during decoding. */
  497|  31.9k|    ctx->num = 0;
  498|  31.9k|    ctx->length = 0;
  499|  31.9k|    ctx->line_num = 0;
  500|  31.9k|    ctx->flags = 0;
  501|  31.9k|}
EVP_DecodeUpdate:
  525|  31.9k|{
  526|  31.9k|    int seof = 0, eof = 0, rv = -1, ret = 0, i, v, tmp, n, decoded_len;
  527|  31.9k|    unsigned char *d;
  528|  31.9k|    const unsigned char *table;
  529|       |
  530|  31.9k|    n = ctx->num;
  531|  31.9k|    d = ctx->enc_data;
  532|       |
  533|  31.9k|    if (n > 0 && d[n - 1] == '=') {
  ------------------
  |  Branch (533:9): [True: 0, False: 31.9k]
  |  Branch (533:18): [True: 0, False: 0]
  ------------------
  534|      0|        eof++;
  535|      0|        if (n > 1 && d[n - 2] == '=')
  ------------------
  |  Branch (535:13): [True: 0, False: 0]
  |  Branch (535:22): [True: 0, False: 0]
  ------------------
  536|      0|            eof++;
  537|      0|    }
  538|       |
  539|       |    /* Legacy behaviour: an empty input chunk signals end of input. */
  540|  31.9k|    if (inl == 0) {
  ------------------
  |  Branch (540:9): [True: 0, False: 31.9k]
  ------------------
  541|      0|        rv = 0;
  542|      0|        goto end;
  543|      0|    }
  544|       |
  545|  31.9k|    if ((ctx->flags & EVP_ENCODE_CTX_USE_SRP_ALPHABET) != 0)
  ------------------
  |  |  899|  31.9k|#define EVP_ENCODE_CTX_USE_SRP_ALPHABET 2
  ------------------
  |  Branch (545:9): [True: 0, False: 31.9k]
  ------------------
  546|      0|        table = srpdata_ascii2bin;
  547|  31.9k|    else
  548|  31.9k|        table = data_ascii2bin;
  549|       |
  550|  46.3M|    for (i = 0; i < inl; i++) {
  ------------------
  |  Branch (550:17): [True: 46.3M, False: 31.9k]
  ------------------
  551|  46.3M|        tmp = *(in++);
  552|  46.3M|        v = conv_ascii2bin(tmp, table);
  553|  46.3M|        if (v == B64_ERROR) {
  ------------------
  |  |   65|  46.3M|#define B64_ERROR 0xFF
  ------------------
  |  Branch (553:13): [True: 0, False: 46.3M]
  ------------------
  554|      0|            rv = -1;
  555|      0|            goto end;
  556|      0|        }
  557|       |
  558|  46.3M|        if (tmp == '=') {
  ------------------
  |  Branch (558:13): [True: 26.4k, False: 46.2M]
  ------------------
  559|  26.4k|            eof++;
  560|  46.2M|        } else if (eof > 0 && B64_BASE64(v)) {
  ------------------
  |  |   67|  18.3k|#define B64_BASE64(a) (!B64_NOT_BASE64(a))
  |  |  ------------------
  |  |  |  |   66|  18.3k|#define B64_NOT_BASE64(a) (((a) | 0x13) == 0xF3)
  |  |  ------------------
  |  |  |  Branch (67:23): [True: 0, False: 18.3k]
  |  |  ------------------
  ------------------
  |  Branch (560:20): [True: 18.3k, False: 46.2M]
  ------------------
  561|       |            /* More data after padding. */
  562|      0|            rv = -1;
  563|      0|            goto end;
  564|      0|        }
  565|       |
  566|  46.3M|        if (eof > 2) {
  ------------------
  |  Branch (566:13): [True: 0, False: 46.3M]
  ------------------
  567|      0|            rv = -1;
  568|      0|            goto end;
  569|      0|        }
  570|       |
  571|  46.3M|        if (v == B64_EOF) {
  ------------------
  |  |   63|  46.3M|#define B64_EOF 0xF2
  ------------------
  |  Branch (571:13): [True: 0, False: 46.3M]
  ------------------
  572|      0|            seof = 1;
  573|      0|            goto tail;
  574|      0|        }
  575|       |
  576|       |        /* Only save valid base64 characters. */
  577|  46.3M|        if (B64_BASE64(v)) {
  ------------------
  |  |   67|  46.3M|#define B64_BASE64(a) (!B64_NOT_BASE64(a))
  |  |  ------------------
  |  |  |  |   66|  46.3M|#define B64_NOT_BASE64(a) (((a) | 0x13) == 0xF3)
  |  |  ------------------
  |  |  |  Branch (67:23): [True: 45.5M, False: 726k]
  |  |  ------------------
  ------------------
  578|  45.5M|            if (n >= 64) {
  ------------------
  |  Branch (578:17): [True: 0, False: 45.5M]
  ------------------
  579|       |                /*
  580|       |                 * We increment n once per loop, and empty the buffer as soon as
  581|       |                 * we reach 64 characters, so this can only happen if someone's
  582|       |                 * manually messed with the ctx. Refuse to write any more data.
  583|       |                 */
  584|      0|                rv = -1;
  585|      0|                goto end;
  586|      0|            }
  587|  45.5M|            OPENSSL_assert(n < (int)sizeof(ctx->enc_data));
  ------------------
  |  |  476|  45.5M|    (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (476:12): [True: 45.5M, False: 0]
  |  |  ------------------
  ------------------
  588|  45.5M|            d[n++] = tmp;
  589|  45.5M|        }
  590|       |
  591|  46.3M|        if (n == 64) {
  ------------------
  |  Branch (591:13): [True: 697k, False: 45.6M]
  ------------------
  592|   697k|            decoded_len = evp_decodeblock_int(ctx, out, d, n, eof);
  593|   697k|            n = 0;
  594|   697k|            if (decoded_len < 0 || (decoded_len == 0 && eof > 0)) {
  ------------------
  |  Branch (594:17): [True: 0, False: 697k]
  |  Branch (594:37): [True: 0, False: 697k]
  |  Branch (594:57): [True: 0, False: 0]
  ------------------
  595|      0|                rv = -1;
  596|      0|                goto end;
  597|      0|            }
  598|   697k|            ret += decoded_len;
  599|   697k|            out += decoded_len;
  600|   697k|        }
  601|  46.3M|    }
  602|       |
  603|       |    /*
  604|       |     * Legacy behaviour: if the current line is a full base64-block (i.e., has
  605|       |     * 0 mod 4 base64 characters), it is processed immediately. We keep this
  606|       |     * behaviour as applications may not be calling EVP_DecodeFinal properly.
  607|       |     */
  608|  31.9k|tail:
  609|  31.9k|    if (n > 0) {
  ------------------
  |  Branch (609:9): [True: 29.3k, False: 2.62k]
  ------------------
  610|  29.3k|        if ((n & 3) == 0) {
  ------------------
  |  Branch (610:13): [True: 29.3k, False: 0]
  ------------------
  611|  29.3k|            decoded_len = evp_decodeblock_int(ctx, out, d, n, eof);
  612|  29.3k|            n = 0;
  613|  29.3k|            if (decoded_len < 0 || (decoded_len == 0 && eof > 0)) {
  ------------------
  |  Branch (613:17): [True: 0, False: 29.3k]
  |  Branch (613:37): [True: 0, False: 29.3k]
  |  Branch (613:57): [True: 0, False: 0]
  ------------------
  614|      0|                rv = -1;
  615|      0|                goto end;
  616|      0|            }
  617|  29.3k|            ret += decoded_len;
  618|  29.3k|        } else if (seof) {
  ------------------
  |  Branch (618:20): [True: 0, False: 0]
  ------------------
  619|       |            /* EOF in the middle of a base64 block. */
  620|      0|            rv = -1;
  621|      0|            goto end;
  622|      0|        }
  623|  29.3k|    }
  624|       |
  625|  31.9k|    rv = seof || (n == 0 && eof) ? 0 : 1;
  ------------------
  |  Branch (625:10): [True: 0, False: 31.9k]
  |  Branch (625:19): [True: 31.9k, False: 0]
  |  Branch (625:29): [True: 18.3k, False: 13.5k]
  ------------------
  626|  31.9k|end:
  627|       |    /* Legacy behaviour. This should probably rather be zeroed on error. */
  628|  31.9k|    *outl = ret;
  629|  31.9k|    ctx->num = n;
  630|  31.9k|    return rv;
  631|  31.9k|}
EVP_DecodeFinal:
  719|  31.9k|{
  720|  31.9k|    int i;
  721|       |
  722|  31.9k|    *outl = 0;
  723|  31.9k|    if (ctx->num != 0) {
  ------------------
  |  Branch (723:9): [True: 0, False: 31.9k]
  ------------------
  724|      0|        i = evp_decodeblock_int(ctx, out, ctx->enc_data, ctx->num, -1);
  725|      0|        if (i < 0)
  ------------------
  |  Branch (725:13): [True: 0, False: 0]
  ------------------
  726|      0|            return -1;
  727|      0|        ctx->num = 0;
  728|      0|        *outl = i;
  729|      0|        return 1;
  730|      0|    } else
  731|  31.9k|        return 1;
  732|  31.9k|}
encode.c:conv_ascii2bin:
  333|  93.3M|{
  334|  93.3M|    if (a & 0x80)
  ------------------
  |  Branch (334:9): [True: 0, False: 93.3M]
  ------------------
  335|      0|        return B64_ERROR;
  ------------------
  |  |   65|      0|#define B64_ERROR 0xFF
  ------------------
  336|  93.3M|    return table[a];
  337|  93.3M|}
encode.c:evp_decodeblock_int:
  636|   726k|{
  637|   726k|    int i, ret = 0, a, b, c, d;
  638|   726k|    unsigned long l;
  639|   726k|    const unsigned char *table;
  640|       |
  641|   726k|    if (eof < -1 || eof > 2)
  ------------------
  |  Branch (641:9): [True: 0, False: 726k]
  |  Branch (641:21): [True: 0, False: 726k]
  ------------------
  642|      0|        return -1;
  643|       |
  644|   726k|    if (ctx != NULL && (ctx->flags & EVP_ENCODE_CTX_USE_SRP_ALPHABET) != 0)
  ------------------
  |  |  899|   726k|#define EVP_ENCODE_CTX_USE_SRP_ALPHABET 2
  ------------------
  |  Branch (644:9): [True: 726k, False: 0]
  |  Branch (644:24): [True: 0, False: 726k]
  ------------------
  645|      0|        table = srpdata_ascii2bin;
  646|   726k|    else
  647|   726k|        table = data_ascii2bin;
  648|       |
  649|       |    /* trim whitespace from the start of the line. */
  650|   726k|    while ((n > 0) && (conv_ascii2bin(*f, table) == B64_WS)) {
  ------------------
  |  |   64|   726k|#define B64_WS 0xE0
  ------------------
  |  Branch (650:12): [True: 726k, False: 0]
  |  Branch (650:23): [True: 0, False: 726k]
  ------------------
  651|      0|        f++;
  652|      0|        n--;
  653|      0|    }
  654|       |
  655|       |    /*
  656|       |     * strip off stuff at the end of the line ascii2bin values B64_WS,
  657|       |     * B64_EOLN, B64_EOLN and B64_EOF
  658|       |     */
  659|   726k|    while ((n > 3) && (B64_NOT_BASE64(conv_ascii2bin(f[n - 1], table))))
  ------------------
  |  |   66|   726k|#define B64_NOT_BASE64(a) (((a) | 0x13) == 0xF3)
  ------------------
  |  Branch (659:12): [True: 726k, False: 0]
  |  Branch (659:23): [True: 0, False: 726k]
  ------------------
  660|      0|        n--;
  661|       |
  662|   726k|    if (n % 4 != 0)
  ------------------
  |  Branch (662:9): [True: 0, False: 726k]
  ------------------
  663|      0|        return -1;
  664|   726k|    if (n == 0)
  ------------------
  |  Branch (664:9): [True: 0, False: 726k]
  ------------------
  665|      0|        return 0;
  666|       |
  667|       |    /* all 4-byte blocks except the last one do not have padding. */
  668|  11.3M|    for (i = 0; i < n - 4; i += 4) {
  ------------------
  |  Branch (668:17): [True: 10.6M, False: 726k]
  ------------------
  669|  10.6M|        a = conv_ascii2bin(*(f++), table);
  670|  10.6M|        b = conv_ascii2bin(*(f++), table);
  671|  10.6M|        c = conv_ascii2bin(*(f++), table);
  672|  10.6M|        d = conv_ascii2bin(*(f++), table);
  673|  10.6M|        if ((a | b | c | d) & 0x80)
  ------------------
  |  Branch (673:13): [True: 0, False: 10.6M]
  ------------------
  674|      0|            return -1;
  675|  10.6M|        l = ((((unsigned long)a) << 18L) | (((unsigned long)b) << 12L) | (((unsigned long)c) << 6L) | (((unsigned long)d)));
  676|  10.6M|        *(t++) = (unsigned char)(l >> 16L) & 0xff;
  677|  10.6M|        *(t++) = (unsigned char)(l >> 8L) & 0xff;
  678|  10.6M|        *(t++) = (unsigned char)(l) & 0xff;
  679|  10.6M|        ret += 3;
  680|  10.6M|    }
  681|       |
  682|       |    /* process the last block that may have padding. */
  683|   726k|    a = conv_ascii2bin(*(f++), table);
  684|   726k|    b = conv_ascii2bin(*(f++), table);
  685|   726k|    c = conv_ascii2bin(*(f++), table);
  686|   726k|    d = conv_ascii2bin(*(f++), table);
  687|   726k|    if ((a | b | c | d) & 0x80)
  ------------------
  |  Branch (687:9): [True: 0, False: 726k]
  ------------------
  688|      0|        return -1;
  689|   726k|    l = ((((unsigned long)a) << 18L) | (((unsigned long)b) << 12L) | (((unsigned long)c) << 6L) | (((unsigned long)d)));
  690|       |
  691|   726k|    if (eof == -1)
  ------------------
  |  Branch (691:9): [True: 0, False: 726k]
  ------------------
  692|      0|        eof = (c == '=') + (d == '=');
  693|       |
  694|   726k|    switch (eof) {
  ------------------
  |  Branch (694:13): [True: 726k, False: 0]
  ------------------
  695|  8.10k|    case 2:
  ------------------
  |  Branch (695:5): [True: 8.10k, False: 718k]
  ------------------
  696|  8.10k|        *(t++) = (unsigned char)(l >> 16L) & 0xff;
  697|  8.10k|        break;
  698|  10.2k|    case 1:
  ------------------
  |  Branch (698:5): [True: 10.2k, False: 716k]
  ------------------
  699|  10.2k|        *(t++) = (unsigned char)(l >> 16L) & 0xff;
  700|  10.2k|        *(t++) = (unsigned char)(l >> 8L) & 0xff;
  701|  10.2k|        break;
  702|   708k|    case 0:
  ------------------
  |  Branch (702:5): [True: 708k, False: 18.3k]
  ------------------
  703|   708k|        *(t++) = (unsigned char)(l >> 16L) & 0xff;
  704|   708k|        *(t++) = (unsigned char)(l >> 8L) & 0xff;
  705|   708k|        *(t++) = (unsigned char)(l) & 0xff;
  706|   708k|        break;
  707|   726k|    }
  708|   726k|    ret += 3 - eof;
  709|       |
  710|   726k|    return ret;
  711|   726k|}

EVP_CIPHER_CTX_new:
   73|      9|{
   74|      9|    EVP_CIPHER_CTX *ctx;
   75|       |
   76|      9|    ctx = OPENSSL_zalloc(sizeof(EVP_CIPHER_CTX));
  ------------------
  |  |  108|      9|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   77|      9|    if (ctx == NULL)
  ------------------
  |  Branch (77:9): [True: 0, False: 9]
  ------------------
   78|      0|        return NULL;
   79|       |
   80|      9|    ctx->iv_len = -1;
   81|      9|    return ctx;
   82|      9|}
EVP_CIPHER_CTX_free:
   85|  1.31k|{
   86|  1.31k|    if (ctx == NULL)
  ------------------
  |  Branch (86:9): [True: 1.31k, False: 0]
  ------------------
   87|  1.31k|        return;
   88|      0|    EVP_CIPHER_CTX_reset(ctx);
   89|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   90|      0|}
EVP_CipherInit_ex:
  652|  27.8k|{
  653|       |    return evp_cipher_init_internal(ctx, cipher, impl, key, iv, enc, 0, NULL);
  654|  27.8k|}
EVP_CipherUpdate:
  718|  18.6k|{
  719|  18.6k|    if (ctx->encrypt)
  ------------------
  |  Branch (719:9): [True: 18.6k, False: 0]
  ------------------
  720|  18.6k|        return EVP_EncryptUpdate(ctx, out, outl, in, inl);
  721|      0|    else
  722|      0|        return EVP_DecryptUpdate(ctx, out, outl, in, inl);
  723|  18.6k|}
EVP_EncryptUpdate:
  977|  18.6k|{
  978|  18.6k|    int ret;
  979|  18.6k|    size_t soutl, inl_ = (size_t)inl;
  980|  18.6k|    int blocksize;
  981|       |
  982|  18.6k|    if (inl < 0) {
  ------------------
  |  Branch (982:9): [True: 0, False: 18.6k]
  ------------------
  983|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  984|      0|        return 0;
  985|      0|    }
  986|       |
  987|  18.6k|    if (ossl_likely(outl != NULL)) {
  ------------------
  |  |   22|  18.6k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 18.6k, False: 0]
  |  |  ------------------
  ------------------
  988|  18.6k|        *outl = 0;
  989|  18.6k|    } else {
  990|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  991|      0|        return 0;
  992|      0|    }
  993|       |
  994|       |    /* Prevent accidental use of decryption context when encrypting */
  995|  18.6k|    if (ossl_unlikely(!ctx->encrypt)) {
  ------------------
  |  |   23|  18.6k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
  996|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_OPERATION);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  997|      0|        return 0;
  998|      0|    }
  999|       |
 1000|  18.6k|    if (ossl_unlikely(ctx->cipher == NULL)) {
  ------------------
  |  |   23|  18.6k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
 1001|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_NO_CIPHER_SET);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1002|      0|        return 0;
 1003|      0|    }
 1004|       |
 1005|  18.6k|    if (ossl_unlikely(ctx->cipher->prov == NULL))
  ------------------
  |  |   23|  18.6k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
 1006|      0|        goto legacy;
 1007|       |
 1008|  18.6k|    blocksize = ctx->cipher->block_size;
 1009|       |
 1010|  18.6k|    if (ossl_unlikely(ctx->cipher->cupdate == NULL || blocksize < 1)) {
  ------------------
  |  |   23|  37.3k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 18.6k]
  |  |  |  Branch (23:46): [True: 0, False: 18.6k]
  |  |  |  Branch (23:46): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
 1011|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1012|      0|        return 0;
 1013|      0|    }
 1014|       |
 1015|  18.6k|    ret = ctx->cipher->cupdate(ctx->algctx, out, &soutl,
 1016|  18.6k|        inl_ + (size_t)(blocksize == 1 ? 0 : blocksize),
  ------------------
  |  Branch (1016:25): [True: 9.26k, False: 9.40k]
  ------------------
 1017|  18.6k|        in, inl_);
 1018|       |
 1019|  18.6k|    if (ossl_likely(ret)) {
  ------------------
  |  |   22|  18.6k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 18.6k, False: 0]
  |  |  ------------------
  ------------------
 1020|  18.6k|        if (ossl_unlikely(soutl > INT_MAX)) {
  ------------------
  |  |   23|  18.6k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
 1021|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1022|      0|            return 0;
 1023|      0|        }
 1024|  18.6k|        *outl = (int)soutl;
 1025|  18.6k|    }
 1026|       |
 1027|  18.6k|    return ret;
 1028|       |
 1029|       |    /* Code below to be removed when legacy support is dropped. */
 1030|      0|legacy:
 1031|       |
 1032|      0|    return evp_EncryptDecryptUpdate(ctx, out, outl, in, inl);
 1033|  18.6k|}
EVP_CIPHER_get_params:
 1647|  3.08k|{
 1648|  3.08k|    if (cipher != NULL && cipher->get_params != NULL)
  ------------------
  |  Branch (1648:9): [True: 3.08k, False: 0]
  |  Branch (1648:27): [True: 3.08k, False: 0]
  ------------------
 1649|  3.08k|        return cipher->get_params(params);
 1650|      0|    return 0;
 1651|  3.08k|}
EVP_CIPHER_gettable_ctx_params:
 1705|    130|{
 1706|    130|    void *provctx;
 1707|       |
 1708|    130|    if (cipher != NULL && cipher->gettable_ctx_params != NULL) {
  ------------------
  |  Branch (1708:9): [True: 130, False: 0]
  |  Branch (1708:27): [True: 130, False: 0]
  ------------------
 1709|    130|        provctx = ossl_provider_ctx(EVP_CIPHER_get0_provider(cipher));
 1710|    130|        return cipher->gettable_ctx_params(NULL, provctx);
 1711|    130|    }
 1712|      0|    return NULL;
 1713|    130|}
evp_cipher_new:
 1848|    130|{
 1849|    130|    EVP_CIPHER *cipher = OPENSSL_zalloc(sizeof(EVP_CIPHER));
  ------------------
  |  |  108|    130|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1850|       |
 1851|    130|    if (cipher != NULL && !CRYPTO_NEW_REF(&cipher->refcnt, 1)) {
  ------------------
  |  Branch (1851:9): [True: 130, False: 0]
  |  Branch (1851:27): [True: 0, False: 130]
  ------------------
 1852|      0|        OPENSSL_free(cipher);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1853|      0|        return NULL;
 1854|      0|    }
 1855|    130|    return cipher;
 1856|    130|}
EVP_CIPHER_fetch:
 2076|  5.06k|{
 2077|  5.06k|    EVP_CIPHER *cipher = evp_generic_fetch(ctx, OSSL_OP_CIPHER, algorithm, properties,
  ------------------
  |  |  284|  5.06k|#define OSSL_OP_CIPHER 2 /* Symmetric Ciphers */
  ------------------
 2078|  5.06k|        evp_cipher_from_algorithm, evp_cipher_up_ref,
 2079|  5.06k|        evp_cipher_free);
 2080|       |
 2081|  5.06k|    return cipher;
 2082|  5.06k|}
evp_cipher_fetch_from_prov:
 2087|      6|{
 2088|      6|    return evp_generic_fetch_from_prov(prov, OSSL_OP_CIPHER,
  ------------------
  |  |  284|      6|#define OSSL_OP_CIPHER 2 /* Symmetric Ciphers */
  ------------------
 2089|      6|        algorithm, properties,
 2090|      6|        evp_cipher_from_algorithm,
 2091|      6|        evp_cipher_up_ref,
 2092|      6|        evp_cipher_free);
 2093|      6|}
EVP_CIPHER_up_ref:
 2105|  3.23k|{
 2106|  3.23k|    int ref = 0;
 2107|       |
 2108|  3.23k|    if (cipher->origin == EVP_ORIG_DYNAMIC)
  ------------------
  |  |  254|  3.23k|#define EVP_ORIG_DYNAMIC 0
  ------------------
  |  Branch (2108:9): [True: 3.23k, False: 0]
  ------------------
 2109|  3.23k|        CRYPTO_UP_REF(&cipher->refcnt, &ref);
 2110|  3.23k|    return 1;
 2111|  3.23k|}
EVP_CIPHER_free:
 2122|  3.22k|{
 2123|  3.22k|    int i;
 2124|       |
 2125|  3.22k|    if (cipher == NULL || cipher->origin != EVP_ORIG_DYNAMIC)
  ------------------
  |  |  254|  3.21k|#define EVP_ORIG_DYNAMIC 0
  ------------------
  |  Branch (2125:9): [True: 15, False: 3.21k]
  |  Branch (2125:27): [True: 0, False: 3.21k]
  ------------------
 2126|     15|        return;
 2127|       |
 2128|  3.21k|    CRYPTO_DOWN_REF(&cipher->refcnt, &i);
 2129|  3.21k|    if (i > 0)
  ------------------
  |  Branch (2129:9): [True: 3.21k, False: 0]
  ------------------
 2130|  3.21k|        return;
 2131|      0|    evp_cipher_free_int(cipher);
 2132|      0|}
evp_enc.c:evp_cipher_init_internal:
   98|  27.8k|{
   99|  27.8k|    int n;
  100|  27.8k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  101|  27.8k|    ENGINE *tmpimpl = NULL;
  102|  27.8k|#endif
  103|       |
  104|       |    /*
  105|       |     * enc == 1 means we are encrypting.
  106|       |     * enc == 0 means we are decrypting.
  107|       |     * enc == -1 means, use the previously initialised value for encrypt/decrypt
  108|       |     */
  109|  27.8k|    if (enc == -1) {
  ------------------
  |  Branch (109:9): [True: 27.8k, False: 9]
  ------------------
  110|  27.8k|        enc = ctx->encrypt;
  111|  27.8k|    } else {
  112|      9|        if (enc)
  ------------------
  |  Branch (112:13): [True: 9, False: 0]
  ------------------
  113|      9|            enc = 1;
  114|      9|        ctx->encrypt = enc;
  115|      9|    }
  116|       |
  117|  27.8k|    if (cipher == NULL && ctx->cipher == NULL) {
  ------------------
  |  Branch (117:9): [True: 27.8k, False: 9]
  |  Branch (117:27): [True: 0, False: 27.8k]
  ------------------
  118|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_NO_CIPHER_SET);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  119|      0|        return 0;
  120|      0|    }
  121|       |
  122|       |    /* Code below to be removed when legacy support is dropped. */
  123|  27.8k|    if (is_pipeline)
  ------------------
  |  Branch (123:9): [True: 0, False: 27.8k]
  ------------------
  124|      0|        goto nonlegacy;
  125|       |
  126|  27.8k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  127|       |    /*
  128|       |     * Whether it's nice or not, "Inits" can be used on "Final"'d contexts so
  129|       |     * this context may already have an ENGINE! Try to avoid releasing the
  130|       |     * previous handle, re-querying for an ENGINE, and having a
  131|       |     * reinitialisation, when it may all be unnecessary.
  132|       |     */
  133|  27.8k|    if (ctx->engine && ctx->cipher
  ------------------
  |  Branch (133:9): [True: 0, False: 27.8k]
  |  Branch (133:24): [True: 0, False: 0]
  ------------------
  134|      0|        && (cipher == NULL || cipher->nid == ctx->cipher->nid))
  ------------------
  |  Branch (134:13): [True: 0, False: 0]
  |  Branch (134:31): [True: 0, False: 0]
  ------------------
  135|      0|        goto skip_to_init;
  136|       |
  137|  27.8k|    if (cipher != NULL && impl == NULL) {
  ------------------
  |  Branch (137:9): [True: 9, False: 27.8k]
  |  Branch (137:27): [True: 9, False: 0]
  ------------------
  138|       |        /* Ask if an ENGINE is reserved for this job */
  139|      9|        tmpimpl = ENGINE_get_cipher_engine(cipher->nid);
  140|      9|    }
  141|  27.8k|#endif
  142|       |
  143|       |    /*
  144|       |     * If there are engines involved then we should use legacy handling for now.
  145|       |     */
  146|  27.8k|    if (ctx->engine != NULL
  ------------------
  |  Branch (146:9): [True: 0, False: 27.8k]
  ------------------
  147|  27.8k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  148|  27.8k|        || tmpimpl != NULL
  ------------------
  |  Branch (148:12): [True: 0, False: 27.8k]
  ------------------
  149|  27.8k|#endif
  150|  27.8k|        || impl != NULL
  ------------------
  |  Branch (150:12): [True: 0, False: 27.8k]
  ------------------
  151|  27.8k|        || (cipher != NULL && cipher->origin == EVP_ORIG_METH)
  ------------------
  |  |  256|      9|#define EVP_ORIG_METH 2
  ------------------
  |  Branch (151:13): [True: 9, False: 27.8k]
  |  Branch (151:31): [True: 0, False: 9]
  ------------------
  152|  27.8k|        || (cipher == NULL && ctx->cipher != NULL
  ------------------
  |  Branch (152:13): [True: 27.8k, False: 9]
  |  Branch (152:31): [True: 27.8k, False: 0]
  ------------------
  153|  27.8k|            && ctx->cipher->origin == EVP_ORIG_METH)) {
  ------------------
  |  |  256|  27.8k|#define EVP_ORIG_METH 2
  ------------------
  |  Branch (153:16): [True: 0, False: 27.8k]
  ------------------
  154|      0|        if (ctx->cipher == ctx->fetched_cipher)
  ------------------
  |  Branch (154:13): [True: 0, False: 0]
  ------------------
  155|      0|            ctx->cipher = NULL;
  156|      0|        EVP_CIPHER_free(ctx->fetched_cipher);
  157|      0|        ctx->fetched_cipher = NULL;
  158|      0|        goto legacy;
  159|      0|    }
  160|       |    /*
  161|       |     * Ensure a context left lying around from last time is cleared
  162|       |     * (legacy code)
  163|       |     */
  164|  27.8k|    if (cipher != NULL && ctx->cipher != NULL) {
  ------------------
  |  Branch (164:9): [True: 9, False: 27.8k]
  |  Branch (164:27): [True: 0, False: 9]
  ------------------
  165|      0|        if (ctx->cipher->cleanup != NULL && !ctx->cipher->cleanup(ctx))
  ------------------
  |  Branch (165:13): [True: 0, False: 0]
  |  Branch (165:45): [True: 0, False: 0]
  ------------------
  166|      0|            return 0;
  167|      0|        OPENSSL_clear_free(ctx->cipher_data, ctx->cipher->ctx_size);
  ------------------
  |  |  129|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  168|      0|        ctx->cipher_data = NULL;
  169|      0|    }
  170|       |
  171|       |    /* Start of non-legacy code below */
  172|  27.8k|nonlegacy:
  173|       |    /* Ensure a context left lying around from last time is cleared */
  174|  27.8k|    if (cipher != NULL && ctx->cipher != NULL) {
  ------------------
  |  Branch (174:9): [True: 9, False: 27.8k]
  |  Branch (174:27): [True: 0, False: 9]
  ------------------
  175|      0|        unsigned long flags = ctx->flags;
  176|       |
  177|      0|        EVP_CIPHER_CTX_reset(ctx);
  178|       |        /* Restore encrypt and flags */
  179|      0|        ctx->encrypt = enc;
  180|      0|        ctx->flags = flags;
  181|      0|    }
  182|       |
  183|  27.8k|    if (cipher == NULL)
  ------------------
  |  Branch (183:9): [True: 27.8k, False: 9]
  ------------------
  184|  27.8k|        cipher = ctx->cipher;
  185|       |
  186|  27.8k|    if (cipher->prov == NULL) {
  ------------------
  |  Branch (186:9): [True: 0, False: 27.8k]
  ------------------
  187|       |#ifdef FIPS_MODULE
  188|       |        /* We only do explicit fetches inside the FIPS module */
  189|       |        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  190|       |        return 0;
  191|       |#else
  192|      0|        EVP_CIPHER *provciph = EVP_CIPHER_fetch(NULL,
  193|      0|            cipher->nid == NID_undef ? "NULL"
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (193:13): [True: 0, False: 0]
  ------------------
  194|      0|                                     : OBJ_nid2sn(cipher->nid),
  195|      0|            "");
  196|       |
  197|      0|        if (provciph == NULL)
  ------------------
  |  Branch (197:13): [True: 0, False: 0]
  ------------------
  198|      0|            return 0;
  199|      0|        cipher = provciph;
  200|      0|        EVP_CIPHER_free(ctx->fetched_cipher);
  201|      0|        ctx->fetched_cipher = provciph;
  202|      0|#endif
  203|      0|    }
  204|       |
  205|  27.8k|    if (!ossl_assert(cipher->prov != NULL)) {
  ------------------
  |  |   52|  27.8k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  27.8k|    __FILE__, __LINE__)
  ------------------
  |  Branch (205:9): [True: 0, False: 27.8k]
  ------------------
  206|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  207|      0|        return 0;
  208|      0|    }
  209|       |
  210|  27.8k|    if (cipher != ctx->fetched_cipher) {
  ------------------
  |  Branch (210:9): [True: 9, False: 27.8k]
  ------------------
  211|      9|        if (!EVP_CIPHER_up_ref((EVP_CIPHER *)cipher)) {
  ------------------
  |  Branch (211:13): [True: 0, False: 9]
  ------------------
  212|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  213|      0|            return 0;
  214|      0|        }
  215|      9|        EVP_CIPHER_free(ctx->fetched_cipher);
  216|       |        /* Coverity false positive, the reference counting is confusing it */
  217|       |        /* coverity[use_after_free] */
  218|      9|        ctx->fetched_cipher = (EVP_CIPHER *)cipher;
  219|      9|    }
  220|  27.8k|    ctx->cipher = cipher;
  221|       |
  222|  27.8k|    if (is_pipeline && !EVP_CIPHER_can_pipeline(cipher, enc)) {
  ------------------
  |  Branch (222:9): [True: 0, False: 27.8k]
  |  Branch (222:24): [True: 0, False: 0]
  ------------------
  223|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_PIPELINE_NOT_SUPPORTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  224|      0|        return 0;
  225|      0|    }
  226|       |
  227|  27.8k|    if (ctx->algctx == NULL) {
  ------------------
  |  Branch (227:9): [True: 9, False: 27.8k]
  ------------------
  228|      9|        ctx->algctx = ctx->cipher->newctx(ossl_provider_ctx(cipher->prov));
  229|      9|        if (ctx->algctx == NULL) {
  ------------------
  |  Branch (229:13): [True: 0, False: 9]
  ------------------
  230|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  231|      0|            return 0;
  232|      0|        }
  233|      9|    }
  234|       |
  235|  27.8k|    if ((ctx->flags & EVP_CIPH_NO_PADDING) != 0) {
  ------------------
  |  |  335|  27.8k|#define EVP_CIPH_NO_PADDING 0x100
  ------------------
  |  Branch (235:9): [True: 0, False: 27.8k]
  ------------------
  236|       |        /*
  237|       |         * If this ctx was already set up for no padding then we need to tell
  238|       |         * the new cipher about it.
  239|       |         */
  240|      0|        if (!EVP_CIPHER_CTX_set_padding(ctx, 0))
  ------------------
  |  Branch (240:13): [True: 0, False: 0]
  ------------------
  241|      0|            return 0;
  242|      0|    }
  243|       |
  244|  27.8k|#ifndef FIPS_MODULE
  245|       |    /*
  246|       |     * Fix for CVE-2023-5363
  247|       |     * Passing in a size as part of the init call takes effect late
  248|       |     * so, force such to occur before the initialisation.
  249|       |     *
  250|       |     * The FIPS provider's internal library context is used in a manner
  251|       |     * such that this is not an issue.
  252|       |     */
  253|  27.8k|    if (params != NULL) {
  ------------------
  |  Branch (253:9): [True: 0, False: 27.8k]
  ------------------
  254|      0|        OSSL_PARAM param_lens[3] = { OSSL_PARAM_END, OSSL_PARAM_END,
  ------------------
  |  |   25|      0|    { NULL, 0, NULL, 0, 0 }
  ------------------
                      OSSL_PARAM param_lens[3] = { OSSL_PARAM_END, OSSL_PARAM_END,
  ------------------
  |  |   25|      0|    { NULL, 0, NULL, 0, 0 }
  ------------------
  255|      0|            OSSL_PARAM_END };
  ------------------
  |  |   25|      0|    { NULL, 0, NULL, 0, 0 }
  ------------------
  256|      0|        OSSL_PARAM *q = param_lens;
  257|      0|        const OSSL_PARAM *p;
  258|       |
  259|      0|        p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN);
  ------------------
  |  |  200|      0|# define OSSL_CIPHER_PARAM_KEYLEN "keylen"
  ------------------
  260|      0|        if (p != NULL)
  ------------------
  |  Branch (260:13): [True: 0, False: 0]
  ------------------
  261|      0|            memcpy(q++, p, sizeof(*q));
  262|       |
  263|       |        /*
  264|       |         * Note that OSSL_CIPHER_PARAM_AEAD_IVLEN is a synonym for
  265|       |         * OSSL_CIPHER_PARAM_IVLEN so both are covered here.
  266|       |         */
  267|      0|        p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_IVLEN);
  ------------------
  |  |  199|      0|# define OSSL_CIPHER_PARAM_IVLEN "ivlen"
  ------------------
  268|      0|        if (p != NULL)
  ------------------
  |  Branch (268:13): [True: 0, False: 0]
  ------------------
  269|      0|            memcpy(q++, p, sizeof(*q));
  270|       |
  271|      0|        if (q != param_lens) {
  ------------------
  |  Branch (271:13): [True: 0, False: 0]
  ------------------
  272|      0|            if (!EVP_CIPHER_CTX_set_params(ctx, param_lens)) {
  ------------------
  |  Branch (272:17): [True: 0, False: 0]
  ------------------
  273|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  274|      0|                return 0;
  275|      0|            }
  276|      0|        }
  277|      0|    }
  278|  27.8k|#endif
  279|       |
  280|  27.8k|    if (is_pipeline)
  ------------------
  |  Branch (280:9): [True: 0, False: 27.8k]
  ------------------
  281|      0|        return 1;
  282|       |
  283|  27.8k|    if (enc) {
  ------------------
  |  Branch (283:9): [True: 27.8k, False: 0]
  ------------------
  284|  27.8k|        if (ctx->cipher->einit == NULL) {
  ------------------
  |  Branch (284:13): [True: 0, False: 27.8k]
  ------------------
  285|       |            /*
  286|       |             * We still should be able to set the IV using the new API
  287|       |             * if the key is not specified and old API is not available
  288|       |             */
  289|      0|            if (key == NULL && ctx->cipher->einit_skey != NULL) {
  ------------------
  |  Branch (289:17): [True: 0, False: 0]
  |  Branch (289:32): [True: 0, False: 0]
  ------------------
  290|      0|                return ctx->cipher->einit_skey(ctx->algctx, NULL,
  291|      0|                    iv,
  292|      0|                    iv == NULL ? 0
  ------------------
  |  Branch (292:21): [True: 0, False: 0]
  ------------------
  293|      0|                               : EVP_CIPHER_CTX_get_iv_length(ctx),
  294|      0|                    params);
  295|      0|            }
  296|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  297|      0|            return 0;
  298|      0|        }
  299|       |
  300|  27.8k|        return ctx->cipher->einit(ctx->algctx,
  301|  27.8k|            key,
  302|  27.8k|            key == NULL ? 0
  ------------------
  |  Branch (302:13): [True: 9.27k, False: 18.5k]
  ------------------
  303|  27.8k|                        : EVP_CIPHER_CTX_get_key_length(ctx),
  304|  27.8k|            iv,
  305|  27.8k|            iv == NULL ? 0
  ------------------
  |  Branch (305:13): [True: 18.5k, False: 9.26k]
  ------------------
  306|  27.8k|                       : EVP_CIPHER_CTX_get_iv_length(ctx),
  307|  27.8k|            params);
  308|  27.8k|    }
  309|       |
  310|      0|    if (ctx->cipher->dinit == NULL) {
  ------------------
  |  Branch (310:9): [True: 0, False: 0]
  ------------------
  311|       |        /*
  312|       |         * We still should be able to set the IV using the new API
  313|       |         * if the key is not specified and old API is not available
  314|       |         */
  315|      0|        if (key == NULL && ctx->cipher->dinit_skey != NULL) {
  ------------------
  |  Branch (315:13): [True: 0, False: 0]
  |  Branch (315:28): [True: 0, False: 0]
  ------------------
  316|      0|            return ctx->cipher->dinit_skey(ctx->algctx, NULL,
  317|      0|                iv,
  318|      0|                iv == NULL ? 0
  ------------------
  |  Branch (318:17): [True: 0, False: 0]
  ------------------
  319|      0|                           : EVP_CIPHER_CTX_get_iv_length(ctx),
  320|      0|                params);
  321|      0|        }
  322|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  323|      0|        return 0;
  324|      0|    }
  325|       |
  326|      0|    return ctx->cipher->dinit(ctx->algctx,
  327|      0|        key,
  328|      0|        key == NULL ? 0
  ------------------
  |  Branch (328:9): [True: 0, False: 0]
  ------------------
  329|      0|                    : EVP_CIPHER_CTX_get_key_length(ctx),
  330|      0|        iv,
  331|      0|        iv == NULL ? 0
  ------------------
  |  Branch (331:9): [True: 0, False: 0]
  ------------------
  332|      0|                   : EVP_CIPHER_CTX_get_iv_length(ctx),
  333|      0|        params);
  334|       |
  335|       |    /* Code below to be removed when legacy support is dropped. */
  336|      0|legacy:
  337|       |
  338|      0|    if (cipher != NULL) {
  ------------------
  |  Branch (338:9): [True: 0, False: 0]
  ------------------
  339|       |        /*
  340|       |         * Ensure a context left lying around from last time is cleared (we
  341|       |         * previously attempted to avoid this if the same ENGINE and
  342|       |         * EVP_CIPHER could be used).
  343|       |         */
  344|      0|        if (ctx->cipher) {
  ------------------
  |  Branch (344:13): [True: 0, False: 0]
  ------------------
  345|      0|            unsigned long flags = ctx->flags;
  346|      0|            EVP_CIPHER_CTX_reset(ctx);
  347|       |            /* Restore encrypt and flags */
  348|      0|            ctx->encrypt = enc;
  349|      0|            ctx->flags = flags;
  350|      0|        }
  351|      0|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  352|      0|        if (impl != NULL) {
  ------------------
  |  Branch (352:13): [True: 0, False: 0]
  ------------------
  353|      0|            if (!ENGINE_init(impl)) {
  ------------------
  |  Branch (353:17): [True: 0, False: 0]
  ------------------
  354|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  355|      0|                return 0;
  356|      0|            }
  357|      0|        } else {
  358|      0|            impl = tmpimpl;
  359|      0|        }
  360|      0|        if (impl != NULL) {
  ------------------
  |  Branch (360:13): [True: 0, False: 0]
  ------------------
  361|       |            /* There's an ENGINE for this job ... (apparently) */
  362|      0|            const EVP_CIPHER *c = ENGINE_get_cipher(impl, cipher->nid);
  363|       |
  364|      0|            if (c == NULL) {
  ------------------
  |  Branch (364:17): [True: 0, False: 0]
  ------------------
  365|       |                /*
  366|       |                 * One positive side-effect of US's export control history,
  367|       |                 * is that we should at least be able to avoid using US
  368|       |                 * misspellings of "initialisation"?
  369|       |                 */
  370|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  371|      0|                return 0;
  372|      0|            }
  373|       |            /* We'll use the ENGINE's private cipher definition */
  374|      0|            cipher = c;
  375|       |            /*
  376|       |             * Store the ENGINE functional reference so we know 'cipher' came
  377|       |             * from an ENGINE and we need to release it when done.
  378|       |             */
  379|      0|            ctx->engine = impl;
  380|      0|        } else {
  381|      0|            ctx->engine = NULL;
  382|      0|        }
  383|      0|#endif
  384|       |
  385|      0|        ctx->cipher = cipher;
  386|      0|        if (ctx->cipher->ctx_size) {
  ------------------
  |  Branch (386:13): [True: 0, False: 0]
  ------------------
  387|      0|            ctx->cipher_data = OPENSSL_zalloc(ctx->cipher->ctx_size);
  ------------------
  |  |  108|      0|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  388|      0|            if (ctx->cipher_data == NULL) {
  ------------------
  |  Branch (388:17): [True: 0, False: 0]
  ------------------
  389|      0|                ctx->cipher = NULL;
  390|      0|                return 0;
  391|      0|            }
  392|      0|        } else {
  393|      0|            ctx->cipher_data = NULL;
  394|      0|        }
  395|      0|        ctx->key_len = cipher->key_len;
  396|       |        /* Preserve wrap enable flag, zero everything else */
  397|      0|        ctx->flags &= EVP_CIPHER_CTX_FLAG_WRAP_ALLOW;
  ------------------
  |  |  375|      0|#define EVP_CIPHER_CTX_FLAG_WRAP_ALLOW 0x1
  ------------------
  398|      0|        if (ctx->cipher->flags & EVP_CIPH_CTRL_INIT) {
  ------------------
  |  |  331|      0|#define EVP_CIPH_CTRL_INIT 0x40
  ------------------
  |  Branch (398:13): [True: 0, False: 0]
  ------------------
  399|      0|            if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_INIT, 0, NULL) <= 0) {
  ------------------
  |  |  379|      0|#define EVP_CTRL_INIT 0x0
  ------------------
  |  Branch (399:17): [True: 0, False: 0]
  ------------------
  400|      0|                ctx->cipher = NULL;
  401|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  402|      0|                return 0;
  403|      0|            }
  404|      0|        }
  405|      0|    }
  406|      0|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  407|      0|skip_to_init:
  408|      0|#endif
  409|      0|    if (ctx->cipher == NULL)
  ------------------
  |  Branch (409:9): [True: 0, False: 0]
  ------------------
  410|      0|        return 0;
  411|       |
  412|       |    /* we assume block size is a power of 2 in *cryptUpdate */
  413|      0|    OPENSSL_assert(ctx->cipher->block_size == 1
  ------------------
  |  |  476|      0|    (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (476:13): [True: 0, False: 0]
  |  |  |  Branch (476:13): [True: 0, False: 0]
  |  |  |  Branch (476:13): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  414|      0|        || ctx->cipher->block_size == 8
  415|      0|        || ctx->cipher->block_size == 16);
  416|       |
  417|      0|    if (!(ctx->flags & EVP_CIPHER_CTX_FLAG_WRAP_ALLOW)
  ------------------
  |  |  375|      0|#define EVP_CIPHER_CTX_FLAG_WRAP_ALLOW 0x1
  ------------------
  |  Branch (417:9): [True: 0, False: 0]
  ------------------
  418|      0|        && EVP_CIPHER_CTX_get_mode(ctx) == EVP_CIPH_WRAP_MODE) {
  ------------------
  |  |  674|      0|#define EVP_CIPHER_CTX_get_mode(c) EVP_CIPHER_get_mode(EVP_CIPHER_CTX_get0_cipher(c))
  ------------------
                      && EVP_CIPHER_CTX_get_mode(ctx) == EVP_CIPH_WRAP_MODE) {
  ------------------
  |  |  319|      0|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  |  Branch (418:12): [True: 0, False: 0]
  ------------------
  419|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_WRAP_MODE_NOT_ALLOWED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  420|      0|        return 0;
  421|      0|    }
  422|       |
  423|      0|    if ((EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(ctx))
  ------------------
  |  Branch (423:9): [True: 0, False: 0]
  ------------------
  424|      0|            & EVP_CIPH_CUSTOM_IV)
  ------------------
  |  |  327|      0|#define EVP_CIPH_CUSTOM_IV 0x10
  ------------------
  425|      0|        == 0) {
  426|      0|        switch (EVP_CIPHER_CTX_get_mode(ctx)) {
  ------------------
  |  |  674|      0|#define EVP_CIPHER_CTX_get_mode(c) EVP_CIPHER_get_mode(EVP_CIPHER_CTX_get0_cipher(c))
  ------------------
  427|       |
  428|      0|        case EVP_CIPH_STREAM_CIPHER:
  ------------------
  |  |  310|      0|#define EVP_CIPH_STREAM_CIPHER 0x0
  ------------------
  |  Branch (428:9): [True: 0, False: 0]
  ------------------
  429|      0|        case EVP_CIPH_ECB_MODE:
  ------------------
  |  |  311|      0|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  |  Branch (429:9): [True: 0, False: 0]
  ------------------
  430|      0|            break;
  431|       |
  432|      0|        case EVP_CIPH_CFB_MODE:
  ------------------
  |  |  313|      0|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  |  Branch (432:9): [True: 0, False: 0]
  ------------------
  433|      0|        case EVP_CIPH_OFB_MODE:
  ------------------
  |  |  314|      0|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  |  Branch (433:9): [True: 0, False: 0]
  ------------------
  434|       |
  435|      0|            ctx->num = 0;
  436|       |            /* fall-through */
  437|       |
  438|      0|        case EVP_CIPH_CBC_MODE:
  ------------------
  |  |  312|      0|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (438:9): [True: 0, False: 0]
  ------------------
  439|      0|            n = EVP_CIPHER_CTX_get_iv_length(ctx);
  440|      0|            if (n < 0 || n > (int)sizeof(ctx->iv)) {
  ------------------
  |  Branch (440:17): [True: 0, False: 0]
  |  Branch (440:26): [True: 0, False: 0]
  ------------------
  441|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_IV_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  442|      0|                return 0;
  443|      0|            }
  444|      0|            if (iv != NULL)
  ------------------
  |  Branch (444:17): [True: 0, False: 0]
  ------------------
  445|      0|                memcpy(ctx->oiv, iv, n);
  446|      0|            memcpy(ctx->iv, ctx->oiv, n);
  447|      0|            break;
  448|       |
  449|      0|        case EVP_CIPH_CTR_MODE:
  ------------------
  |  |  315|      0|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  |  Branch (449:9): [True: 0, False: 0]
  ------------------
  450|      0|            ctx->num = 0;
  451|       |            /* Don't reuse IV for CTR mode */
  452|      0|            if (iv != NULL) {
  ------------------
  |  Branch (452:17): [True: 0, False: 0]
  ------------------
  453|      0|                n = EVP_CIPHER_CTX_get_iv_length(ctx);
  454|      0|                if (n <= 0 || n > (int)sizeof(ctx->iv)) {
  ------------------
  |  Branch (454:21): [True: 0, False: 0]
  |  Branch (454:31): [True: 0, False: 0]
  ------------------
  455|      0|                    ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_IV_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  456|      0|                    return 0;
  457|      0|                }
  458|      0|                memcpy(ctx->iv, iv, n);
  459|      0|            }
  460|      0|            break;
  461|       |
  462|      0|        default:
  ------------------
  |  Branch (462:9): [True: 0, False: 0]
  ------------------
  463|      0|            return 0;
  464|      0|        }
  465|      0|    }
  466|       |
  467|      0|    if (key != NULL || (ctx->cipher->flags & EVP_CIPH_ALWAYS_CALL_INIT)) {
  ------------------
  |  |  329|      0|#define EVP_CIPH_ALWAYS_CALL_INIT 0x20
  ------------------
  |  Branch (467:9): [True: 0, False: 0]
  |  Branch (467:24): [True: 0, False: 0]
  ------------------
  468|      0|        if (!ctx->cipher->init(ctx, key, iv, enc))
  ------------------
  |  Branch (468:13): [True: 0, False: 0]
  ------------------
  469|      0|            return 0;
  470|      0|    }
  471|      0|    ctx->buf_len = 0;
  472|      0|    ctx->final_used = 0;
  473|      0|    ctx->block_mask = ctx->cipher->block_size - 1;
  474|      0|    return 1;
  475|      0|}
evp_enc.c:evp_cipher_from_algorithm:
 1892|    130|{
 1893|    130|    const OSSL_DISPATCH *fns = algodef->implementation;
 1894|    130|    EVP_CIPHER *cipher = NULL;
 1895|    130|    int fnciphcnt = 0, encinit = 0, decinit = 0, fnpipecnt = 0, fnctxcnt = 0;
 1896|       |
 1897|    130|    if ((cipher = evp_cipher_new()) == NULL) {
  ------------------
  |  Branch (1897:9): [True: 0, False: 130]
  ------------------
 1898|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1899|      0|        return NULL;
 1900|      0|    }
 1901|       |
 1902|    130|#ifndef FIPS_MODULE
 1903|    130|    cipher->nid = NID_undef;
  ------------------
  |  |   18|    130|#define NID_undef                       0
  ------------------
 1904|    130|    if (!evp_names_do_all(prov, name_id, set_legacy_nid, &cipher->nid)
  ------------------
  |  Branch (1904:9): [True: 0, False: 130]
  ------------------
 1905|    130|        || cipher->nid == -1) {
  ------------------
  |  Branch (1905:12): [True: 0, False: 130]
  ------------------
 1906|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1907|      0|        goto err;
 1908|      0|    }
 1909|    130|#endif
 1910|       |
 1911|    130|    cipher->name_id = name_id;
 1912|    130|    if ((cipher->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL)
  ------------------
  |  Branch (1912:9): [True: 0, False: 130]
  ------------------
 1913|      0|        goto err;
 1914|       |
 1915|    130|    cipher->description = algodef->algorithm_description;
 1916|       |
 1917|  2.07k|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (1917:12): [True: 1.94k, False: 130]
  ------------------
 1918|  1.94k|        switch (fns->function_id) {
  ------------------
  |  Branch (1918:17): [True: 1.94k, False: 0]
  ------------------
 1919|    130|        case OSSL_FUNC_CIPHER_NEWCTX:
  ------------------
  |  |  351|    130|#define OSSL_FUNC_CIPHER_NEWCTX 1
  ------------------
  |  Branch (1919:9): [True: 130, False: 1.81k]
  ------------------
 1920|    130|            if (cipher->newctx != NULL)
  ------------------
  |  Branch (1920:17): [True: 0, False: 130]
  ------------------
 1921|      0|                break;
 1922|    130|            cipher->newctx = OSSL_FUNC_cipher_newctx(fns);
 1923|    130|            fnctxcnt++;
 1924|    130|            break;
 1925|    130|        case OSSL_FUNC_CIPHER_ENCRYPT_INIT:
  ------------------
  |  |  352|    130|#define OSSL_FUNC_CIPHER_ENCRYPT_INIT 2
  ------------------
  |  Branch (1925:9): [True: 130, False: 1.81k]
  ------------------
 1926|    130|            if (cipher->einit != NULL)
  ------------------
  |  Branch (1926:17): [True: 0, False: 130]
  ------------------
 1927|      0|                break;
 1928|    130|            cipher->einit = OSSL_FUNC_cipher_encrypt_init(fns);
 1929|    130|            encinit = 1;
 1930|    130|            break;
 1931|    130|        case OSSL_FUNC_CIPHER_DECRYPT_INIT:
  ------------------
  |  |  353|    130|#define OSSL_FUNC_CIPHER_DECRYPT_INIT 3
  ------------------
  |  Branch (1931:9): [True: 130, False: 1.81k]
  ------------------
 1932|    130|            if (cipher->dinit != NULL)
  ------------------
  |  Branch (1932:17): [True: 0, False: 130]
  ------------------
 1933|      0|                break;
 1934|    130|            cipher->dinit = OSSL_FUNC_cipher_decrypt_init(fns);
 1935|    130|            decinit = 1;
 1936|    130|            break;
 1937|     68|        case OSSL_FUNC_CIPHER_ENCRYPT_SKEY_INIT:
  ------------------
  |  |  369|     68|#define OSSL_FUNC_CIPHER_ENCRYPT_SKEY_INIT 19
  ------------------
  |  Branch (1937:9): [True: 68, False: 1.87k]
  ------------------
 1938|     68|            if (cipher->einit_skey != NULL)
  ------------------
  |  Branch (1938:17): [True: 0, False: 68]
  ------------------
 1939|      0|                break;
 1940|     68|            cipher->einit_skey = OSSL_FUNC_cipher_encrypt_skey_init(fns);
 1941|     68|            encinit = 1;
 1942|     68|            break;
 1943|     68|        case OSSL_FUNC_CIPHER_DECRYPT_SKEY_INIT:
  ------------------
  |  |  370|     68|#define OSSL_FUNC_CIPHER_DECRYPT_SKEY_INIT 20
  ------------------
  |  Branch (1943:9): [True: 68, False: 1.87k]
  ------------------
 1944|     68|            if (cipher->dinit_skey != NULL)
  ------------------
  |  Branch (1944:17): [True: 0, False: 68]
  ------------------
 1945|      0|                break;
 1946|     68|            cipher->dinit_skey = OSSL_FUNC_cipher_decrypt_skey_init(fns);
 1947|     68|            decinit = 1;
 1948|     68|            break;
 1949|    130|        case OSSL_FUNC_CIPHER_UPDATE:
  ------------------
  |  |  354|    130|#define OSSL_FUNC_CIPHER_UPDATE 4
  ------------------
  |  Branch (1949:9): [True: 130, False: 1.81k]
  ------------------
 1950|    130|            if (cipher->cupdate != NULL)
  ------------------
  |  Branch (1950:17): [True: 0, False: 130]
  ------------------
 1951|      0|                break;
 1952|    130|            cipher->cupdate = OSSL_FUNC_cipher_update(fns);
 1953|    130|            fnciphcnt++;
 1954|    130|            break;
 1955|    130|        case OSSL_FUNC_CIPHER_FINAL:
  ------------------
  |  |  355|    130|#define OSSL_FUNC_CIPHER_FINAL 5
  ------------------
  |  Branch (1955:9): [True: 130, False: 1.81k]
  ------------------
 1956|    130|            if (cipher->cfinal != NULL)
  ------------------
  |  Branch (1956:17): [True: 0, False: 130]
  ------------------
 1957|      0|                break;
 1958|    130|            cipher->cfinal = OSSL_FUNC_cipher_final(fns);
 1959|    130|            fnciphcnt++;
 1960|    130|            break;
 1961|    118|        case OSSL_FUNC_CIPHER_CIPHER:
  ------------------
  |  |  356|    118|#define OSSL_FUNC_CIPHER_CIPHER 6
  ------------------
  |  Branch (1961:9): [True: 118, False: 1.82k]
  ------------------
 1962|    118|            if (cipher->ccipher != NULL)
  ------------------
  |  Branch (1962:17): [True: 0, False: 118]
  ------------------
 1963|      0|                break;
 1964|    118|            cipher->ccipher = OSSL_FUNC_cipher_cipher(fns);
 1965|    118|            break;
 1966|      0|        case OSSL_FUNC_CIPHER_PIPELINE_ENCRYPT_INIT:
  ------------------
  |  |  365|      0|#define OSSL_FUNC_CIPHER_PIPELINE_ENCRYPT_INIT 15
  ------------------
  |  Branch (1966:9): [True: 0, False: 1.94k]
  ------------------
 1967|      0|            if (cipher->p_einit != NULL)
  ------------------
  |  Branch (1967:17): [True: 0, False: 0]
  ------------------
 1968|      0|                break;
 1969|      0|            cipher->p_einit = OSSL_FUNC_cipher_pipeline_encrypt_init(fns);
 1970|      0|            fnpipecnt++;
 1971|      0|            break;
 1972|      0|        case OSSL_FUNC_CIPHER_PIPELINE_DECRYPT_INIT:
  ------------------
  |  |  366|      0|#define OSSL_FUNC_CIPHER_PIPELINE_DECRYPT_INIT 16
  ------------------
  |  Branch (1972:9): [True: 0, False: 1.94k]
  ------------------
 1973|      0|            if (cipher->p_dinit != NULL)
  ------------------
  |  Branch (1973:17): [True: 0, False: 0]
  ------------------
 1974|      0|                break;
 1975|      0|            cipher->p_dinit = OSSL_FUNC_cipher_pipeline_decrypt_init(fns);
 1976|      0|            fnpipecnt++;
 1977|      0|            break;
 1978|      0|        case OSSL_FUNC_CIPHER_PIPELINE_UPDATE:
  ------------------
  |  |  367|      0|#define OSSL_FUNC_CIPHER_PIPELINE_UPDATE 17
  ------------------
  |  Branch (1978:9): [True: 0, False: 1.94k]
  ------------------
 1979|      0|            if (cipher->p_cupdate != NULL)
  ------------------
  |  Branch (1979:17): [True: 0, False: 0]
  ------------------
 1980|      0|                break;
 1981|      0|            cipher->p_cupdate = OSSL_FUNC_cipher_pipeline_update(fns);
 1982|      0|            fnpipecnt++;
 1983|      0|            break;
 1984|      0|        case OSSL_FUNC_CIPHER_PIPELINE_FINAL:
  ------------------
  |  |  368|      0|#define OSSL_FUNC_CIPHER_PIPELINE_FINAL 18
  ------------------
  |  Branch (1984:9): [True: 0, False: 1.94k]
  ------------------
 1985|      0|            if (cipher->p_cfinal != NULL)
  ------------------
  |  Branch (1985:17): [True: 0, False: 0]
  ------------------
 1986|      0|                break;
 1987|      0|            cipher->p_cfinal = OSSL_FUNC_cipher_pipeline_final(fns);
 1988|      0|            fnpipecnt++;
 1989|      0|            break;
 1990|    130|        case OSSL_FUNC_CIPHER_FREECTX:
  ------------------
  |  |  357|    130|#define OSSL_FUNC_CIPHER_FREECTX 7
  ------------------
  |  Branch (1990:9): [True: 130, False: 1.81k]
  ------------------
 1991|    130|            if (cipher->freectx != NULL)
  ------------------
  |  Branch (1991:17): [True: 0, False: 130]
  ------------------
 1992|      0|                break;
 1993|    130|            cipher->freectx = OSSL_FUNC_cipher_freectx(fns);
 1994|    130|            fnctxcnt++;
 1995|    130|            break;
 1996|    129|        case OSSL_FUNC_CIPHER_DUPCTX:
  ------------------
  |  |  358|    129|#define OSSL_FUNC_CIPHER_DUPCTX 8
  ------------------
  |  Branch (1996:9): [True: 129, False: 1.81k]
  ------------------
 1997|    129|            if (cipher->dupctx != NULL)
  ------------------
  |  Branch (1997:17): [True: 0, False: 129]
  ------------------
 1998|      0|                break;
 1999|    129|            cipher->dupctx = OSSL_FUNC_cipher_dupctx(fns);
 2000|    129|            break;
 2001|    130|        case OSSL_FUNC_CIPHER_GET_PARAMS:
  ------------------
  |  |  359|    130|#define OSSL_FUNC_CIPHER_GET_PARAMS 9
  ------------------
  |  Branch (2001:9): [True: 130, False: 1.81k]
  ------------------
 2002|    130|            if (cipher->get_params != NULL)
  ------------------
  |  Branch (2002:17): [True: 0, False: 130]
  ------------------
 2003|      0|                break;
 2004|    130|            cipher->get_params = OSSL_FUNC_cipher_get_params(fns);
 2005|    130|            break;
 2006|    130|        case OSSL_FUNC_CIPHER_GET_CTX_PARAMS:
  ------------------
  |  |  360|    130|#define OSSL_FUNC_CIPHER_GET_CTX_PARAMS 10
  ------------------
  |  Branch (2006:9): [True: 130, False: 1.81k]
  ------------------
 2007|    130|            if (cipher->get_ctx_params != NULL)
  ------------------
  |  Branch (2007:17): [True: 0, False: 130]
  ------------------
 2008|      0|                break;
 2009|    130|            cipher->get_ctx_params = OSSL_FUNC_cipher_get_ctx_params(fns);
 2010|    130|            break;
 2011|    130|        case OSSL_FUNC_CIPHER_SET_CTX_PARAMS:
  ------------------
  |  |  361|    130|#define OSSL_FUNC_CIPHER_SET_CTX_PARAMS 11
  ------------------
  |  Branch (2011:9): [True: 130, False: 1.81k]
  ------------------
 2012|    130|            if (cipher->set_ctx_params != NULL)
  ------------------
  |  Branch (2012:17): [True: 0, False: 130]
  ------------------
 2013|      0|                break;
 2014|    130|            cipher->set_ctx_params = OSSL_FUNC_cipher_set_ctx_params(fns);
 2015|    130|            break;
 2016|    130|        case OSSL_FUNC_CIPHER_GETTABLE_PARAMS:
  ------------------
  |  |  362|    130|#define OSSL_FUNC_CIPHER_GETTABLE_PARAMS 12
  ------------------
  |  Branch (2016:9): [True: 130, False: 1.81k]
  ------------------
 2017|    130|            if (cipher->gettable_params != NULL)
  ------------------
  |  Branch (2017:17): [True: 0, False: 130]
  ------------------
 2018|      0|                break;
 2019|    130|            cipher->gettable_params = OSSL_FUNC_cipher_gettable_params(fns);
 2020|    130|            break;
 2021|    130|        case OSSL_FUNC_CIPHER_GETTABLE_CTX_PARAMS:
  ------------------
  |  |  363|    130|#define OSSL_FUNC_CIPHER_GETTABLE_CTX_PARAMS 13
  ------------------
  |  Branch (2021:9): [True: 130, False: 1.81k]
  ------------------
 2022|    130|            if (cipher->gettable_ctx_params != NULL)
  ------------------
  |  Branch (2022:17): [True: 0, False: 130]
  ------------------
 2023|      0|                break;
 2024|    130|            cipher->gettable_ctx_params = OSSL_FUNC_cipher_gettable_ctx_params(fns);
 2025|    130|            break;
 2026|    130|        case OSSL_FUNC_CIPHER_SETTABLE_CTX_PARAMS:
  ------------------
  |  |  364|    130|#define OSSL_FUNC_CIPHER_SETTABLE_CTX_PARAMS 14
  ------------------
  |  Branch (2026:9): [True: 130, False: 1.81k]
  ------------------
 2027|    130|            if (cipher->settable_ctx_params != NULL)
  ------------------
  |  Branch (2027:17): [True: 0, False: 130]
  ------------------
 2028|      0|                break;
 2029|    130|            cipher->settable_ctx_params = OSSL_FUNC_cipher_settable_ctx_params(fns);
 2030|    130|            break;
 2031|  1.94k|        }
 2032|  1.94k|    }
 2033|    130|    fnciphcnt += encinit + decinit;
 2034|    130|    if ((fnciphcnt != 0 && fnciphcnt != 3 && fnciphcnt != 4)
  ------------------
  |  Branch (2034:10): [True: 130, False: 0]
  |  Branch (2034:28): [True: 130, False: 0]
  |  Branch (2034:46): [True: 0, False: 130]
  ------------------
 2035|    130|        || (fnciphcnt == 0 && cipher->ccipher == NULL && fnpipecnt == 0)
  ------------------
  |  Branch (2035:13): [True: 0, False: 130]
  |  Branch (2035:31): [True: 0, False: 0]
  |  Branch (2035:58): [True: 0, False: 0]
  ------------------
 2036|    130|        || (fnpipecnt != 0 && (fnpipecnt < 3 || cipher->p_cupdate == NULL || cipher->p_cfinal == NULL))
  ------------------
  |  Branch (2036:13): [True: 0, False: 130]
  |  Branch (2036:32): [True: 0, False: 0]
  |  Branch (2036:49): [True: 0, False: 0]
  |  Branch (2036:78): [True: 0, False: 0]
  ------------------
 2037|    130|        || fnctxcnt != 2) {
  ------------------
  |  Branch (2037:12): [True: 0, False: 130]
  ------------------
 2038|       |        /*
 2039|       |         * In order to be a consistent set of functions we must have at least
 2040|       |         * a complete set of "encrypt" functions, or a complete set of "decrypt"
 2041|       |         * functions, or a single "cipher" function. In all cases we need both
 2042|       |         * the "newctx" and "freectx" functions.
 2043|       |         */
 2044|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2045|      0|        goto err;
 2046|      0|    }
 2047|    130|    if (prov != NULL && !ossl_provider_up_ref(prov))
  ------------------
  |  Branch (2047:9): [True: 130, False: 0]
  |  Branch (2047:25): [True: 0, False: 130]
  ------------------
 2048|      0|        goto err;
 2049|       |
 2050|    130|    cipher->prov = prov;
 2051|       |
 2052|    130|    if (!evp_cipher_cache_constants(cipher)) {
  ------------------
  |  Branch (2052:9): [True: 0, False: 130]
  ------------------
 2053|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_CACHE_CONSTANTS_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2054|      0|        goto err;
 2055|      0|    }
 2056|       |
 2057|    130|    return cipher;
 2058|       |
 2059|      0|err:
 2060|      0|    EVP_CIPHER_free(cipher);
 2061|       |    return NULL;
 2062|    130|}
evp_enc.c:set_legacy_nid:
 1866|    243|{
 1867|    243|    int nid;
 1868|    243|    int *legacy_nid = vlegacy_nid;
 1869|       |    /*
 1870|       |     * We use lowest level function to get the associated method, because
 1871|       |     * higher level functions such as EVP_get_cipherbyname() have changed
 1872|       |     * to look at providers too.
 1873|       |     */
 1874|    243|    const void *legacy_method = OBJ_NAME_get(name, OBJ_NAME_TYPE_CIPHER_METH);
  ------------------
  |  |   26|    243|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  ------------------
 1875|       |
 1876|    243|    if (*legacy_nid == -1) /* We found a clash already */
  ------------------
  |  Branch (1876:9): [True: 0, False: 243]
  ------------------
 1877|      0|        return;
 1878|    243|    if (legacy_method == NULL)
  ------------------
  |  Branch (1878:9): [True: 109, False: 134]
  ------------------
 1879|    109|        return;
 1880|    134|    nid = EVP_CIPHER_get_nid(legacy_method);
 1881|    134|    if (*legacy_nid != NID_undef && *legacy_nid != nid) {
  ------------------
  |  |   18|    268|#define NID_undef                       0
  ------------------
  |  Branch (1881:9): [True: 26, False: 108]
  |  Branch (1881:37): [True: 0, False: 26]
  ------------------
 1882|      0|        *legacy_nid = -1;
 1883|      0|        return;
 1884|      0|    }
 1885|    134|    *legacy_nid = nid;
 1886|    134|}
evp_enc.c:evp_cipher_up_ref:
 2065|  3.23k|{
 2066|  3.23k|    return EVP_CIPHER_up_ref(cipher);
 2067|  3.23k|}
evp_enc.c:evp_cipher_free:
 2070|    130|{
 2071|    130|    EVP_CIPHER_free(cipher);
 2072|    130|}

ossl_err_load_EVP_strings:
  227|      2|{
  228|      2|#ifndef OPENSSL_NO_ERR
  229|      2|    if (ERR_reason_error_string(EVP_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (229:9): [True: 2, False: 0]
  ------------------
  230|      2|        ERR_load_strings_const(EVP_str_reasons);
  231|      2|#endif
  232|      2|    return 1;
  233|      2|}

evp_generic_fetch:
  398|  30.5k|{
  399|  30.5k|    struct evp_method_data_st methdata;
  400|  30.5k|    void *method;
  401|       |
  402|  30.5k|    methdata.libctx = libctx;
  403|  30.5k|    methdata.tmp_store = NULL;
  404|       |    method = inner_evp_generic_fetch(&methdata, NULL, operation_id,
  405|  30.5k|        name, properties,
  406|  30.5k|        new_method, up_ref_method, free_method);
  407|  30.5k|    dealloc_tmp_evp_method_store(methdata.tmp_store);
  408|  30.5k|    return method;
  409|  30.5k|}
evp_generic_fetch_from_prov:
  424|      6|{
  425|      6|    struct evp_method_data_st methdata;
  426|      6|    void *method;
  427|       |
  428|      6|    methdata.libctx = ossl_provider_libctx(prov);
  429|       |    methdata.tmp_store = NULL;
  430|      6|    method = inner_evp_generic_fetch(&methdata, prov, operation_id,
  431|      6|        name, properties,
  432|      6|        new_method, up_ref_method, free_method);
  433|      6|    dealloc_tmp_evp_method_store(methdata.tmp_store);
  434|      6|    return method;
  435|      6|}
evp_generic_do_all:
  638|      2|{
  639|      2|    struct evp_method_data_st methdata;
  640|      2|    struct filter_data_st data;
  641|       |
  642|      2|    methdata.libctx = libctx;
  643|      2|    methdata.tmp_store = NULL;
  644|      2|    (void)inner_evp_generic_fetch(&methdata, NULL, operation_id, NULL, NULL,
  645|      2|        new_method, up_ref_method, free_method);
  646|       |
  647|      2|    data.operation_id = operation_id;
  648|      2|    data.user_fn = user_fn;
  649|      2|    data.user_arg = user_arg;
  650|      2|    if (methdata.tmp_store != NULL)
  ------------------
  |  Branch (650:9): [True: 0, False: 2]
  ------------------
  651|      0|        ossl_method_store_do_all(methdata.tmp_store, &filter_on_operation_id,
  652|      0|            &data);
  653|      2|    ossl_method_store_do_all(get_evp_method_store(libctx),
  654|      2|        &filter_on_operation_id, &data);
  655|      2|    dealloc_tmp_evp_method_store(methdata.tmp_store);
  656|      2|}
evp_is_a:
  660|  31.9k|{
  661|       |    /*
  662|       |     * For a |prov| that is NULL, the library context will be NULL
  663|       |     */
  664|  31.9k|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov);
  665|  31.9k|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  666|       |
  667|  31.9k|    if (prov == NULL)
  ------------------
  |  Branch (667:9): [True: 0, False: 31.9k]
  ------------------
  668|      0|        number = ossl_namemap_name2num(namemap, legacy_name);
  669|  31.9k|    return ossl_namemap_name2num(namemap, name) == number;
  670|  31.9k|}
evp_names_do_all:
  675|  33.0k|{
  676|  33.0k|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov);
  677|  33.0k|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  678|       |
  679|  33.0k|    return ossl_namemap_doall_names(namemap, number, fn, data);
  680|  33.0k|}
evp_fetch.c:inner_evp_generic_fetch:
  259|  30.5k|{
  260|  30.5k|    OSSL_METHOD_STORE *store = get_evp_method_store(methdata->libctx);
  261|  30.5k|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx);
  262|       |#ifdef FIPS_MODULE
  263|       |    /*
  264|       |     * The FIPS provider has its own internal library context where only it
  265|       |     * is loaded.  Consequently, property queries aren't relevant because
  266|       |     * there is only one fetchable algorithm and it is assumed that the
  267|       |     * FIPS-ness is handled by the using algorithm.
  268|       |     */
  269|       |    const char *const propq = "";
  270|       |#else
  271|  30.5k|    const char *const propq = properties != NULL ? properties : "";
  ------------------
  |  Branch (271:31): [True: 0, False: 30.5k]
  ------------------
  272|  30.5k|#endif /* FIPS_MODULE */
  273|  30.5k|    uint32_t meth_id = 0;
  274|  30.5k|    void *method = NULL;
  275|  30.5k|    int unsupported, name_id;
  276|       |
  277|  30.5k|    if (store == NULL || namemap == NULL) {
  ------------------
  |  Branch (277:9): [True: 0, False: 30.5k]
  |  Branch (277:26): [True: 0, False: 30.5k]
  ------------------
  278|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  279|      0|        return NULL;
  280|      0|    }
  281|       |
  282|       |    /*
  283|       |     * If there's ever an operation_id == 0 passed, we have an internal
  284|       |     * programming error.
  285|       |     */
  286|  30.5k|    if (!ossl_assert(operation_id > 0)) {
  ------------------
  |  |   52|  30.5k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  30.5k|    __FILE__, __LINE__)
  ------------------
  |  Branch (286:9): [True: 0, False: 30.5k]
  ------------------
  287|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  288|      0|        return NULL;
  289|      0|    }
  290|       |
  291|       |    /* If we haven't received a name id yet, try to get one for the name */
  292|  30.5k|    name_id = name != NULL ? ossl_namemap_name2num(namemap, name) : 0;
  ------------------
  |  Branch (292:15): [True: 30.5k, False: 2]
  ------------------
  293|       |
  294|       |    /*
  295|       |     * If we have a name id, calculate a method id with evp_method_id().
  296|       |     *
  297|       |     * evp_method_id returns 0 if we have too many operations (more than
  298|       |     * about 2^8) or too many names (more than about 2^24).  In that case,
  299|       |     * we can't create any new method.
  300|       |     * For all intents and purposes, this is an internal error.
  301|       |     */
  302|  30.5k|    if (name_id != 0 && (meth_id = evp_method_id(name_id, operation_id)) == 0) {
  ------------------
  |  Branch (302:9): [True: 28.1k, False: 2.42k]
  |  Branch (302:25): [True: 0, False: 28.1k]
  ------------------
  303|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  304|      0|        return NULL;
  305|      0|    }
  306|       |
  307|       |    /*
  308|       |     * If we haven't found the name yet, chances are that the algorithm to
  309|       |     * be fetched is unsupported.
  310|       |     */
  311|  30.5k|    unsupported = name_id == 0;
  312|       |
  313|  30.5k|    if (meth_id == 0
  ------------------
  |  Branch (313:9): [True: 2.42k, False: 28.1k]
  ------------------
  314|  28.1k|        || !ossl_method_store_cache_get(store, prov, meth_id, propq, &method)) {
  ------------------
  |  Branch (314:12): [True: 1.14k, False: 27.0k]
  ------------------
  315|  3.57k|        OSSL_METHOD_CONSTRUCT_METHOD mcm = {
  316|  3.57k|            get_tmp_evp_method_store,
  317|  3.57k|            reserve_evp_method_store,
  318|  3.57k|            unreserve_evp_method_store,
  319|  3.57k|            get_evp_method_from_store,
  320|  3.57k|            put_evp_method_in_store,
  321|  3.57k|            construct_evp_method,
  322|  3.57k|            destruct_evp_method
  323|  3.57k|        };
  324|       |
  325|  3.57k|        methdata->operation_id = operation_id;
  326|  3.57k|        methdata->name_id = name_id;
  327|  3.57k|        methdata->names = name;
  328|  3.57k|        methdata->propquery = propq;
  329|  3.57k|        methdata->method_from_algorithm = new_method;
  330|  3.57k|        methdata->refcnt_up_method = up_ref_method;
  331|  3.57k|        methdata->destruct_method = free_method;
  332|  3.57k|        methdata->flag_construct_error_occurred = 0;
  333|  3.57k|        if ((method = ossl_method_construct(methdata->libctx, operation_id,
  ------------------
  |  Branch (333:13): [True: 49, False: 3.52k]
  ------------------
  334|  3.57k|                 &prov, 0 /* !force_cache */,
  335|  3.57k|                 &mcm, methdata))
  336|  3.57k|            != NULL) {
  337|       |            /*
  338|       |             * If construction did create a method for us, we know that
  339|       |             * there is a correct name_id and meth_id, since those have
  340|       |             * already been calculated in get_evp_method_from_store() and
  341|       |             * put_evp_method_in_store() above.
  342|       |             * Note that there is a corner case here, in which, if a user
  343|       |             * passes a name of the form name1:name2:..., then the construction
  344|       |             * will create a method against all names, but the lookup will fail
  345|       |             * as ossl_namemap_name2num treats the name string as a single name
  346|       |             * rather than introducing new features where in the EVP_<obj>_fetch
  347|       |             * parses the string and queries for each, return an error.
  348|       |             */
  349|     49|            if (name_id == 0)
  ------------------
  |  Branch (349:17): [True: 3, False: 46]
  ------------------
  350|      3|                name_id = ossl_namemap_name2num(namemap, name);
  351|     49|            if (name_id == 0) {
  ------------------
  |  Branch (351:17): [True: 0, False: 49]
  ------------------
  352|      0|                ERR_raise_data(ERR_LIB_EVP, ERR_R_FETCH_FAILED,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                              ERR_raise_data(ERR_LIB_EVP, ERR_R_FETCH_FAILED,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                              ERR_raise_data(ERR_LIB_EVP, ERR_R_FETCH_FAILED,
  ------------------
  |  |  365|      0|#define ERR_R_FETCH_FAILED (269 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  353|      0|                    "Algorithm %s cannot be found", name);
  354|      0|                free_method(method);
  355|      0|                method = NULL;
  356|     49|            } else {
  357|     49|                meth_id = evp_method_id(name_id, operation_id);
  358|     49|                if (meth_id != 0)
  ------------------
  |  Branch (358:21): [True: 49, False: 0]
  ------------------
  359|     49|                    ossl_method_store_cache_set(store, prov, meth_id, propq,
  360|     49|                        method, up_ref_method, free_method);
  361|     49|            }
  362|     49|        }
  363|       |
  364|       |        /*
  365|       |         * If we never were in the constructor, the algorithm to be fetched
  366|       |         * is unsupported.
  367|       |         */
  368|  3.57k|        unsupported = !methdata->flag_construct_error_occurred;
  369|  3.57k|    }
  370|       |
  371|  30.5k|    if ((name_id != 0 || name != NULL) && method == NULL) {
  ------------------
  |  Branch (371:10): [True: 28.1k, False: 2.42k]
  |  Branch (371:26): [True: 2.42k, False: 2]
  |  Branch (371:43): [True: 3.52k, False: 27.0k]
  ------------------
  372|  3.52k|        int code = unsupported ? ERR_R_UNSUPPORTED : ERR_R_FETCH_FAILED;
  ------------------
  |  |  364|  3.52k|#define ERR_R_UNSUPPORTED (268 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|  3.52k|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|  3.52k|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      int code = unsupported ? ERR_R_UNSUPPORTED : ERR_R_FETCH_FAILED;
  ------------------
  |  |  365|      0|#define ERR_R_FETCH_FAILED (269 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (372:20): [True: 3.52k, False: 0]
  ------------------
  373|       |
  374|  3.52k|        if (name == NULL)
  ------------------
  |  Branch (374:13): [True: 0, False: 3.52k]
  ------------------
  375|      0|            name = ossl_namemap_num2name(namemap, name_id, 0);
  376|  3.52k|        ERR_raise_data(ERR_LIB_EVP, code,
  ------------------
  |  |  406|  3.52k|    (ERR_new(),                                                  \
  |  |  407|  3.52k|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|  3.52k|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|  3.52k|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, code,
  ------------------
  |  |   78|  3.52k|#define ERR_LIB_EVP 6
  ------------------
  377|  3.52k|            "%s, Algorithm (%s : %d), Properties (%s)",
  378|  3.52k|            ossl_lib_ctx_get_descriptor(methdata->libctx),
  379|  3.52k|            name == NULL ? "<null>" : name, name_id,
  ------------------
  |  Branch (379:13): [True: 0, False: 3.52k]
  ------------------
  380|  3.52k|            properties == NULL ? "<null>" : properties);
  ------------------
  |  Branch (380:13): [True: 3.52k, False: 0]
  ------------------
  381|  27.0k|    } else {
  382|  27.0k|        OSSL_TRACE4(QUERY, "%s, Algorithm (%s : %d), Properties (%s)\n",
  ------------------
  |  |  299|  27.0k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4))
  |  |  ------------------
  |  |  |  |  285|  27.0k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  383|  27.0k|            ossl_lib_ctx_get_descriptor(methdata->libctx),
  384|  27.0k|            name == NULL ? "<null>" : name, name_id,
  385|  27.0k|            properties == NULL ? "<null>" : properties);
  386|  27.0k|    }
  387|       |
  388|  30.5k|    return method;
  389|  30.5k|}
evp_fetch.c:evp_method_id:
  117|  29.6k|{
  118|  29.6k|    if (!ossl_assert(name_id > 0 && name_id <= METHOD_ID_NAME_MAX)
  ------------------
  |  |   52|  59.2k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 29.6k, False: 0]
  |  |  |  Branch (52:41): [True: 29.6k, False: 0]
  |  |  ------------------
  |  |   53|  59.2k|    __FILE__, __LINE__)
  ------------------
  |  Branch (118:9): [True: 0, False: 29.6k]
  ------------------
  119|  29.6k|        || !ossl_assert(operation_id > 0
  ------------------
  |  |   52|  59.2k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 29.6k, False: 0]
  |  |  |  Branch (52:41): [True: 29.6k, False: 0]
  |  |  ------------------
  |  |   53|  29.6k|    __FILE__, __LINE__)
  ------------------
  |  Branch (119:12): [True: 0, False: 29.6k]
  ------------------
  120|  29.6k|            && operation_id <= METHOD_ID_OPERATION_MAX))
  121|      0|        return 0;
  122|  29.6k|    return (((name_id << METHOD_ID_NAME_OFFSET) & METHOD_ID_NAME_MASK)
  ------------------
  |  |  114|  29.6k|#define METHOD_ID_NAME_OFFSET 8
  ------------------
                  return (((name_id << METHOD_ID_NAME_OFFSET) & METHOD_ID_NAME_MASK)
  ------------------
  |  |  113|  29.6k|#define METHOD_ID_NAME_MASK 0x7FFFFF00
  ------------------
  123|  29.6k|        | (operation_id & METHOD_ID_OPERATION_MASK));
  ------------------
  |  |  111|  29.6k|#define METHOD_ID_OPERATION_MASK 0x000000FF
  ------------------
  124|  29.6k|}
evp_fetch.c:reserve_evp_method_store:
   73|  3.57k|{
   74|  3.57k|    struct evp_method_data_st *methdata = data;
   75|       |
   76|  3.57k|    if (store == NULL
  ------------------
  |  Branch (76:9): [True: 3.57k, False: 0]
  ------------------
   77|  3.57k|        && (store = get_evp_method_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (77:12): [True: 0, False: 3.57k]
  ------------------
   78|      0|        return 0;
   79|       |
   80|  3.57k|    return ossl_method_lock_store(store);
   81|  3.57k|}
evp_fetch.c:unreserve_evp_method_store:
   84|  3.57k|{
   85|  3.57k|    struct evp_method_data_st *methdata = data;
   86|       |
   87|  3.57k|    if (store == NULL
  ------------------
  |  Branch (87:9): [True: 3.57k, False: 0]
  ------------------
   88|  3.57k|        && (store = get_evp_method_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (88:12): [True: 0, False: 3.57k]
  ------------------
   89|      0|        return 0;
   90|       |
   91|  3.57k|    return ossl_method_unlock_store(store);
   92|  3.57k|}
evp_fetch.c:get_evp_method_from_store:
  128|  3.57k|{
  129|  3.57k|    struct evp_method_data_st *methdata = data;
  130|  3.57k|    void *method = NULL;
  131|  3.57k|    int name_id;
  132|  3.57k|    uint32_t meth_id;
  133|       |
  134|       |    /*
  135|       |     * get_evp_method_from_store() is only called to try and get the method
  136|       |     * that evp_generic_fetch() is asking for, and the operation id as well
  137|       |     * as the name or name id are passed via methdata.
  138|       |     */
  139|  3.57k|    if ((name_id = methdata->name_id) == 0 && methdata->names != NULL) {
  ------------------
  |  Branch (139:9): [True: 2.42k, False: 1.14k]
  |  Branch (139:47): [True: 2.42k, False: 2]
  ------------------
  140|  2.42k|        OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx);
  141|  2.42k|        const char *names = methdata->names;
  142|  2.42k|        const char *q = strchr(names, NAME_SEPARATOR);
  ------------------
  |  |   24|  2.42k|#define NAME_SEPARATOR ':'
  ------------------
  143|  2.42k|        size_t l = (q == NULL ? strlen(names) : (size_t)(q - names));
  ------------------
  |  Branch (143:21): [True: 2.42k, False: 0]
  ------------------
  144|       |
  145|  2.42k|        if (namemap == 0)
  ------------------
  |  Branch (145:13): [True: 0, False: 2.42k]
  ------------------
  146|      0|            return NULL;
  147|  2.42k|        name_id = ossl_namemap_name2num_n(namemap, names, l);
  148|  2.42k|    }
  149|       |
  150|  3.57k|    if (name_id == 0
  ------------------
  |  Branch (150:9): [True: 2.42k, False: 1.14k]
  ------------------
  151|  1.14k|        || (meth_id = evp_method_id(name_id, methdata->operation_id)) == 0)
  ------------------
  |  Branch (151:12): [True: 0, False: 1.14k]
  ------------------
  152|  2.42k|        return NULL;
  153|       |
  154|  1.14k|    if (store == NULL
  ------------------
  |  Branch (154:9): [True: 1.14k, False: 0]
  ------------------
  155|  1.14k|        && (store = get_evp_method_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (155:12): [True: 0, False: 1.14k]
  ------------------
  156|      0|        return NULL;
  157|       |
  158|  1.14k|    if (!ossl_method_store_fetch(store, meth_id, methdata->propquery, prov,
  ------------------
  |  Branch (158:9): [True: 1.10k, False: 49]
  ------------------
  159|  1.14k|            &method))
  160|  1.10k|        return NULL;
  161|     49|    return method;
  162|  1.14k|}
evp_fetch.c:put_evp_method_in_store:
  168|    268|{
  169|    268|    struct evp_method_data_st *methdata = data;
  170|    268|    OSSL_NAMEMAP *namemap;
  171|    268|    int name_id;
  172|    268|    uint32_t meth_id;
  173|    268|    size_t l = 0;
  174|       |
  175|       |    /*
  176|       |     * put_evp_method_in_store() is only called with an EVP method that was
  177|       |     * successfully created by construct_method() below, which means that
  178|       |     * all the names should already be stored in the namemap with the same
  179|       |     * numeric identity, so just use the first to get that identity.
  180|       |     */
  181|    268|    if (names != NULL) {
  ------------------
  |  Branch (181:9): [True: 268, False: 0]
  ------------------
  182|    268|        const char *q = strchr(names, NAME_SEPARATOR);
  ------------------
  |  |   24|    268|#define NAME_SEPARATOR ':'
  ------------------
  183|       |
  184|    268|        l = (q == NULL ? strlen(names) : (size_t)(q - names));
  ------------------
  |  Branch (184:14): [True: 82, False: 186]
  ------------------
  185|    268|    }
  186|       |
  187|    268|    if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL
  ------------------
  |  Branch (187:9): [True: 0, False: 268]
  ------------------
  188|    268|        || (name_id = ossl_namemap_name2num_n(namemap, names, l)) == 0
  ------------------
  |  Branch (188:12): [True: 0, False: 268]
  ------------------
  189|    268|        || (meth_id = evp_method_id(name_id, methdata->operation_id)) == 0)
  ------------------
  |  Branch (189:12): [True: 0, False: 268]
  ------------------
  190|      0|        return 0;
  191|       |
  192|    268|    OSSL_TRACE1(QUERY, "put_evp_method_in_store: original store: %p\n", store);
  ------------------
  |  |  293|    268|    OSSL_TRACEV(category, (trc_out, format, arg1))
  |  |  ------------------
  |  |  |  |  285|    268|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  193|    268|    if (store == NULL
  ------------------
  |  Branch (193:9): [True: 268, False: 0]
  ------------------
  194|    268|        && (store = get_evp_method_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (194:12): [True: 0, False: 268]
  ------------------
  195|      0|        return 0;
  196|       |
  197|    268|    OSSL_TRACE5(QUERY,
  ------------------
  |  |  301|    268|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5))
  |  |  ------------------
  |  |  |  |  285|    268|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  198|    268|        "put_evp_method_in_store: "
  199|    268|        "store: %p, names: %s, operation_id %d, method_id: %d, properties: %s\n",
  200|    268|        store, names, methdata->operation_id, meth_id, propdef ? propdef : "<null>");
  201|    268|    return ossl_method_store_add(store, prov, meth_id, propdef, method,
  202|    268|        methdata->refcnt_up_method,
  203|    268|        methdata->destruct_method);
  204|    268|}
evp_fetch.c:construct_evp_method:
  212|    268|{
  213|       |    /*
  214|       |     * This function is only called if get_evp_method_from_store() returned
  215|       |     * NULL, so it's safe to say that of all the spots to create a new
  216|       |     * namemap entry, this is it.  Should the name already exist there, we
  217|       |     * know that ossl_namemap_add_name() will return its corresponding
  218|       |     * number.
  219|       |     */
  220|    268|    struct evp_method_data_st *methdata = data;
  221|    268|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov);
  222|    268|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  223|    268|    const char *names = algodef->algorithm_names;
  224|    268|    int name_id = ossl_namemap_add_names(namemap, 0, names, NAME_SEPARATOR);
  ------------------
  |  |   24|    268|#define NAME_SEPARATOR ':'
  ------------------
  225|    268|    void *method;
  226|       |
  227|    268|    if (name_id == 0)
  ------------------
  |  Branch (227:9): [True: 0, False: 268]
  ------------------
  228|      0|        return NULL;
  229|       |
  230|    268|    method = methdata->method_from_algorithm(name_id, algodef, prov);
  231|       |
  232|       |    /*
  233|       |     * Flag to indicate that there was actual construction errors.  This
  234|       |     * helps inner_evp_generic_fetch() determine what error it should
  235|       |     * record on inaccessible algorithms.
  236|       |     */
  237|    268|    if (method == NULL)
  ------------------
  |  Branch (237:9): [True: 0, False: 268]
  ------------------
  238|      0|        methdata->flag_construct_error_occurred = 1;
  239|       |
  240|    268|    return method;
  241|    268|}
evp_fetch.c:destruct_evp_method:
  244|    268|{
  245|    268|    struct evp_method_data_st *methdata = data;
  246|       |
  247|    268|    methdata->destruct_method(method);
  248|    268|}
evp_fetch.c:dealloc_tmp_evp_method_store:
   61|  30.5k|{
   62|  30.5k|    OSSL_TRACE1(QUERY, "Deallocating the tmp_store %p\n", store);
  ------------------
  |  |  293|  30.5k|    OSSL_TRACEV(category, (trc_out, format, arg1))
  |  |  ------------------
  |  |  |  |  285|  30.5k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   63|  30.5k|    if (store != NULL)
  ------------------
  |  Branch (63:9): [True: 0, False: 30.5k]
  ------------------
   64|      0|        ossl_method_store_free(store);
   65|  30.5k|}
evp_fetch.c:get_evp_method_store:
   68|  39.1k|{
   69|  39.1k|    return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX);
  ------------------
  |  |   96|  39.1k|#define OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX 0
  ------------------
   70|  39.1k|}
evp_fetch.c:filter_on_operation_id:
  623|    536|{
  624|    536|    struct filter_data_st *data = arg;
  625|       |
  626|    536|    if ((id & METHOD_ID_OPERATION_MASK) == data->operation_id)
  ------------------
  |  |  111|    536|#define METHOD_ID_OPERATION_MASK 0x000000FF
  ------------------
  |  Branch (626:9): [True: 80, False: 456]
  ------------------
  627|     80|        data->user_fn(method, data->user_arg);
  628|    536|}

EVP_CIPHER_get_type:
  255|    183|{
  256|    183|    int nid;
  257|    183|    nid = EVP_CIPHER_get_nid(cipher);
  258|       |
  259|    183|    switch (nid) {
  260|       |
  261|      3|    case NID_rc2_cbc:
  ------------------
  |  | 1303|      3|#define NID_rc2_cbc             37
  ------------------
  |  Branch (261:5): [True: 3, False: 180]
  ------------------
  262|      5|    case NID_rc2_64_cbc:
  ------------------
  |  | 1324|      5|#define NID_rc2_64_cbc          166
  ------------------
  |  Branch (262:5): [True: 2, False: 181]
  ------------------
  263|      7|    case NID_rc2_40_cbc:
  ------------------
  |  | 1320|      7|#define NID_rc2_40_cbc          98
  ------------------
  |  Branch (263:5): [True: 2, False: 181]
  ------------------
  264|       |
  265|      7|        return NID_rc2_cbc;
  ------------------
  |  | 1303|      7|#define NID_rc2_cbc             37
  ------------------
  266|       |
  267|      1|    case NID_rc4:
  ------------------
  |  | 1328|      1|#define NID_rc4         5
  ------------------
  |  Branch (267:5): [True: 1, False: 182]
  ------------------
  268|      2|    case NID_rc4_40:
  ------------------
  |  | 1333|      2|#define NID_rc4_40              97
  ------------------
  |  Branch (268:5): [True: 1, False: 182]
  ------------------
  269|       |
  270|      2|        return NID_rc4;
  ------------------
  |  | 1328|      2|#define NID_rc4         5
  ------------------
  271|       |
  272|      1|    case NID_aes_128_cfb128:
  ------------------
  |  | 3112|      1|#define NID_aes_128_cfb128              421
  ------------------
  |  Branch (272:5): [True: 1, False: 182]
  ------------------
  273|      2|    case NID_aes_128_cfb8:
  ------------------
  |  | 3233|      2|#define NID_aes_128_cfb8                653
  ------------------
  |  Branch (273:5): [True: 1, False: 182]
  ------------------
  274|      3|    case NID_aes_128_cfb1:
  ------------------
  |  | 3221|      3|#define NID_aes_128_cfb1                650
  ------------------
  |  Branch (274:5): [True: 1, False: 182]
  ------------------
  275|       |
  276|      3|        return NID_aes_128_cfb128;
  ------------------
  |  | 3112|      3|#define NID_aes_128_cfb128              421
  ------------------
  277|       |
  278|      1|    case NID_aes_192_cfb128:
  ------------------
  |  | 3150|      1|#define NID_aes_192_cfb128              425
  ------------------
  |  Branch (278:5): [True: 1, False: 182]
  ------------------
  279|      2|    case NID_aes_192_cfb8:
  ------------------
  |  | 3237|      2|#define NID_aes_192_cfb8                654
  ------------------
  |  Branch (279:5): [True: 1, False: 182]
  ------------------
  280|      3|    case NID_aes_192_cfb1:
  ------------------
  |  | 3225|      3|#define NID_aes_192_cfb1                651
  ------------------
  |  Branch (280:5): [True: 1, False: 182]
  ------------------
  281|       |
  282|      3|        return NID_aes_192_cfb128;
  ------------------
  |  | 3150|      3|#define NID_aes_192_cfb128              425
  ------------------
  283|       |
  284|      1|    case NID_aes_256_cfb128:
  ------------------
  |  | 3188|      1|#define NID_aes_256_cfb128              429
  ------------------
  |  Branch (284:5): [True: 1, False: 182]
  ------------------
  285|      2|    case NID_aes_256_cfb8:
  ------------------
  |  | 3241|      2|#define NID_aes_256_cfb8                655
  ------------------
  |  Branch (285:5): [True: 1, False: 182]
  ------------------
  286|      3|    case NID_aes_256_cfb1:
  ------------------
  |  | 3229|      3|#define NID_aes_256_cfb1                652
  ------------------
  |  Branch (286:5): [True: 1, False: 182]
  ------------------
  287|       |
  288|      3|        return NID_aes_256_cfb128;
  ------------------
  |  | 3188|      3|#define NID_aes_256_cfb128              429
  ------------------
  289|       |
  290|      1|    case NID_des_cfb64:
  ------------------
  |  | 2282|      1|#define NID_des_cfb64           30
  ------------------
  |  Branch (290:5): [True: 1, False: 182]
  ------------------
  291|      2|    case NID_des_cfb8:
  ------------------
  |  | 3273|      2|#define NID_des_cfb8            657
  ------------------
  |  Branch (291:5): [True: 1, False: 182]
  ------------------
  292|      3|    case NID_des_cfb1:
  ------------------
  |  | 3269|      3|#define NID_des_cfb1            656
  ------------------
  |  Branch (292:5): [True: 1, False: 182]
  ------------------
  293|       |
  294|      3|        return NID_des_cfb64;
  ------------------
  |  | 2282|      3|#define NID_des_cfb64           30
  ------------------
  295|       |
  296|      1|    case NID_des_ede3_cfb64:
  ------------------
  |  | 2323|      1|#define NID_des_ede3_cfb64              61
  ------------------
  |  Branch (296:5): [True: 1, False: 182]
  ------------------
  297|      2|    case NID_des_ede3_cfb8:
  ------------------
  |  | 3281|      2|#define NID_des_ede3_cfb8               659
  ------------------
  |  Branch (297:5): [True: 1, False: 182]
  ------------------
  298|      3|    case NID_des_ede3_cfb1:
  ------------------
  |  | 3277|      3|#define NID_des_ede3_cfb1               658
  ------------------
  |  Branch (298:5): [True: 1, False: 182]
  ------------------
  299|       |
  300|      3|        return NID_des_cfb64;
  ------------------
  |  | 2282|      3|#define NID_des_cfb64           30
  ------------------
  301|       |
  302|    159|    default:
  ------------------
  |  Branch (302:5): [True: 159, False: 24]
  ------------------
  303|       |#ifdef FIPS_MODULE
  304|       |        return NID_undef;
  305|       |#else
  306|    159|    {
  307|       |        /* Check it has an OID and it is valid */
  308|    159|        ASN1_OBJECT *otmp = OBJ_nid2obj(nid);
  309|       |
  310|    159|        if (OBJ_get0_data(otmp) == NULL)
  ------------------
  |  Branch (310:13): [True: 48, False: 111]
  ------------------
  311|     48|            nid = NID_undef;
  ------------------
  |  |   18|     48|#define NID_undef                       0
  ------------------
  312|    159|        ASN1_OBJECT_free(otmp);
  313|    159|        return nid;
  314|      2|    }
  315|    183|#endif
  316|    183|    }
  317|    183|}
evp_cipher_cache_constants:
  320|    130|{
  321|    130|    int ok, aead = 0, custom_iv = 0, cts = 0, multiblock = 0, randkey = 0;
  322|    130|    int encrypt_then_mac = 0;
  323|    130|    size_t ivlen = 0;
  324|    130|    size_t blksz = 0;
  325|    130|    size_t keylen = 0;
  326|    130|    unsigned int mode = 0;
  327|    130|    OSSL_PARAM params[11];
  328|       |
  329|    130|    params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_BLOCK_SIZE, &blksz);
  ------------------
  |  |  189|    130|# define OSSL_CIPHER_PARAM_BLOCK_SIZE "blocksize"
  ------------------
  330|    130|    params[1] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_IVLEN, &ivlen);
  ------------------
  |  |  199|    130|# define OSSL_CIPHER_PARAM_IVLEN "ivlen"
  ------------------
  331|    130|    params[2] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_KEYLEN, &keylen);
  ------------------
  |  |  200|    130|# define OSSL_CIPHER_PARAM_KEYLEN "keylen"
  ------------------
  332|    130|    params[3] = OSSL_PARAM_construct_uint(OSSL_CIPHER_PARAM_MODE, &mode);
  ------------------
  |  |  201|    130|# define OSSL_CIPHER_PARAM_MODE "mode"
  ------------------
  333|    130|    params[4] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_AEAD, &aead);
  ------------------
  |  |  175|    130|# define OSSL_CIPHER_PARAM_AEAD "aead"
  ------------------
  334|    130|    params[5] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_CUSTOM_IV,
  ------------------
  |  |  192|    130|# define OSSL_CIPHER_PARAM_CUSTOM_IV "custom-iv"
  ------------------
  335|    130|        &custom_iv);
  336|    130|    params[6] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_CTS, &cts);
  ------------------
  |  |  190|    130|# define OSSL_CIPHER_PARAM_CTS "cts"
  ------------------
  337|    130|    params[7] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK,
  ------------------
  |  |  209|    130|# define OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK "tls-multi"
  ------------------
  338|    130|        &multiblock);
  339|    130|    params[8] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_HAS_RAND_KEY,
  ------------------
  |  |  197|    130|# define OSSL_CIPHER_PARAM_HAS_RAND_KEY "has-randkey"
  ------------------
  340|    130|        &randkey);
  341|    130|    params[9] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_ENCRYPT_THEN_MAC,
  ------------------
  |  |  194|    130|# define OSSL_CIPHER_PARAM_ENCRYPT_THEN_MAC "encrypt-then-mac"
  ------------------
  342|    130|        &encrypt_then_mac);
  343|    130|    params[10] = OSSL_PARAM_construct_end();
  344|    130|    ok = evp_do_ciph_getparams(cipher, params) > 0;
  345|    130|    if (ok) {
  ------------------
  |  Branch (345:9): [True: 130, False: 0]
  ------------------
  346|    130|        cipher->block_size = (int)blksz;
  347|    130|        cipher->iv_len = (int)ivlen;
  348|    130|        cipher->key_len = (int)keylen;
  349|    130|        cipher->flags = mode;
  350|    130|        if (aead)
  ------------------
  |  Branch (350:13): [True: 28, False: 102]
  ------------------
  351|     28|            cipher->flags |= EVP_CIPH_FLAG_AEAD_CIPHER;
  ------------------
  |  |  357|     28|#define EVP_CIPH_FLAG_AEAD_CIPHER 0x200000
  ------------------
  352|    130|        if (custom_iv)
  ------------------
  |  Branch (352:13): [True: 41, False: 89]
  ------------------
  353|     41|            cipher->flags |= EVP_CIPH_CUSTOM_IV;
  ------------------
  |  |  327|     41|#define EVP_CIPH_CUSTOM_IV 0x10
  ------------------
  354|    130|        if (cts)
  ------------------
  |  Branch (354:13): [True: 6, False: 124]
  ------------------
  355|      6|            cipher->flags |= EVP_CIPH_FLAG_CTS;
  ------------------
  |  |  355|      6|#define EVP_CIPH_FLAG_CTS 0x4000
  ------------------
  356|    130|        if (multiblock)
  ------------------
  |  Branch (356:13): [True: 4, False: 126]
  ------------------
  357|      4|            cipher->flags |= EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK;
  ------------------
  |  |  358|      4|#define EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0x400000
  ------------------
  358|    130|        if (cipher->ccipher != NULL)
  ------------------
  |  Branch (358:13): [True: 118, False: 12]
  ------------------
  359|    118|            cipher->flags |= EVP_CIPH_FLAG_CUSTOM_CIPHER;
  ------------------
  |  |  356|    118|#define EVP_CIPH_FLAG_CUSTOM_CIPHER 0x100000
  ------------------
  360|    130|        if (randkey)
  ------------------
  |  Branch (360:13): [True: 11, False: 119]
  ------------------
  361|     11|            cipher->flags |= EVP_CIPH_RAND_KEY;
  ------------------
  |  |  337|     11|#define EVP_CIPH_RAND_KEY 0x200
  ------------------
  362|    130|        if (encrypt_then_mac)
  ------------------
  |  Branch (362:13): [True: 0, False: 130]
  ------------------
  363|      0|            cipher->flags |= EVP_CIPH_FLAG_ENC_THEN_MAC;
  ------------------
  |  |  368|      0|#define EVP_CIPH_FLAG_ENC_THEN_MAC 0x10000000
  ------------------
  364|    130|        if (OSSL_PARAM_locate_const(EVP_CIPHER_gettable_ctx_params(cipher),
  ------------------
  |  Branch (364:13): [True: 0, False: 130]
  ------------------
  365|    130|                OSSL_CIPHER_PARAM_ALGORITHM_ID_PARAMS))
  ------------------
  |  |  187|    130|# define OSSL_CIPHER_PARAM_ALGORITHM_ID_PARAMS OSSL_ALG_PARAM_ALGORITHM_ID_PARAMS
  |  |  ------------------
  |  |  |  |  126|    130|# define OSSL_ALG_PARAM_ALGORITHM_ID_PARAMS "algorithm-id-params"
  |  |  ------------------
  ------------------
  366|      0|            cipher->flags |= EVP_CIPH_FLAG_CUSTOM_ASN1;
  ------------------
  |  |  362|      0|#define EVP_CIPH_FLAG_CUSTOM_ASN1 0x1000000
  ------------------
  367|    130|    }
  368|    130|    return ok;
  369|    130|}
EVP_CIPHER_get_iv_length:
  491|      3|{
  492|      3|    return (cipher == NULL) ? 0 : cipher->iv_len;
  ------------------
  |  Branch (492:12): [True: 0, False: 3]
  ------------------
  493|      3|}
EVP_CIPHER_CTX_get_iv_length:
  496|  9.26k|{
  497|  9.26k|    if (ctx->cipher == NULL)
  ------------------
  |  Branch (497:9): [True: 0, False: 9.26k]
  ------------------
  498|      0|        return 0;
  499|       |
  500|  9.26k|    if (ctx->iv_len < 0) {
  ------------------
  |  Branch (500:9): [True: 3, False: 9.26k]
  ------------------
  501|      3|        int rv, len = EVP_CIPHER_get_iv_length(ctx->cipher);
  502|      3|        size_t v = len;
  503|      3|        OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|      3|    { NULL, 0, NULL, 0, 0 }
  ------------------
                      OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|      3|    { NULL, 0, NULL, 0, 0 }
  ------------------
  504|       |
  505|      3|        if (ctx->cipher->get_ctx_params != NULL) {
  ------------------
  |  Branch (505:13): [True: 3, False: 0]
  ------------------
  506|      3|            params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_IVLEN,
  ------------------
  |  |  199|      3|# define OSSL_CIPHER_PARAM_IVLEN "ivlen"
  ------------------
  507|      3|                &v);
  508|      3|            rv = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params);
  509|      3|            if (rv > 0) {
  ------------------
  |  Branch (509:17): [True: 3, False: 0]
  ------------------
  510|      3|                if (OSSL_PARAM_modified(params)
  ------------------
  |  Branch (510:21): [True: 3, False: 0]
  ------------------
  511|      3|                    && !OSSL_PARAM_get_int(params, &len))
  ------------------
  |  Branch (511:24): [True: 0, False: 3]
  ------------------
  512|      0|                    return -1;
  513|      3|            } else if (rv != EVP_CTRL_RET_UNSUPPORTED) {
  ------------------
  |  |   13|      0|#define EVP_CTRL_RET_UNSUPPORTED -1
  ------------------
  |  Branch (513:24): [True: 0, False: 0]
  ------------------
  514|      0|                return -1;
  515|      0|            }
  516|      3|        }
  517|       |        /* Code below to be removed when legacy support is dropped. */
  518|      0|        else if ((EVP_CIPHER_get_flags(ctx->cipher)
  ------------------
  |  Branch (518:18): [True: 0, False: 0]
  ------------------
  519|      0|                     & EVP_CIPH_CUSTOM_IV_LENGTH)
  ------------------
  |  |  341|      0|#define EVP_CIPH_CUSTOM_IV_LENGTH 0x800
  ------------------
  520|      0|            != 0) {
  521|      0|            rv = EVP_CIPHER_CTX_ctrl((EVP_CIPHER_CTX *)ctx, EVP_CTRL_GET_IVLEN,
  ------------------
  |  |  442|      0|#define EVP_CTRL_GET_IVLEN 0x25
  ------------------
  522|      0|                0, &len);
  523|      0|            if (rv <= 0)
  ------------------
  |  Branch (523:17): [True: 0, False: 0]
  ------------------
  524|      0|                return -1;
  525|      0|        }
  526|       |        /*-
  527|       |         * Casting away the const is annoying but required here.  We need to
  528|       |         * cache the result for performance reasons.
  529|       |         */
  530|      3|        ((EVP_CIPHER_CTX *)ctx)->iv_len = len;
  531|      3|    }
  532|  9.26k|    return ctx->iv_len;
  533|  9.26k|}
EVP_CIPHER_get_key_length:
  638|      3|{
  639|      3|    return cipher->key_len;
  640|      3|}
EVP_CIPHER_CTX_get_key_length:
  643|  18.5k|{
  644|  18.5k|    if (ctx->cipher == NULL)
  ------------------
  |  Branch (644:9): [True: 0, False: 18.5k]
  ------------------
  645|      0|        return 0;
  646|       |
  647|  18.5k|    if (ctx->key_len <= 0 && ctx->cipher->prov != NULL) {
  ------------------
  |  Branch (647:9): [True: 9, False: 18.5k]
  |  Branch (647:30): [True: 9, False: 0]
  ------------------
  648|      9|        int ok;
  649|      9|        OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|      9|    { NULL, 0, NULL, 0, 0 }
  ------------------
                      OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|      9|    { NULL, 0, NULL, 0, 0 }
  ------------------
  650|      9|        size_t len;
  651|       |
  652|      9|        params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_KEYLEN, &len);
  ------------------
  |  |  200|      9|# define OSSL_CIPHER_PARAM_KEYLEN "keylen"
  ------------------
  653|      9|        ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params);
  654|      9|        if (ok <= 0)
  ------------------
  |  Branch (654:13): [True: 0, False: 9]
  ------------------
  655|      0|            return EVP_CTRL_RET_UNSUPPORTED;
  ------------------
  |  |   13|      0|#define EVP_CTRL_RET_UNSUPPORTED -1
  ------------------
  656|       |
  657|       |        /*-
  658|       |         * The if branch should never be taken since EVP_MAX_KEY_LENGTH is
  659|       |         * less than INT_MAX but best to be safe.
  660|       |         *
  661|       |         * Casting away the const is annoying but required here.  We need to
  662|       |         * cache the result for performance reasons.
  663|       |         */
  664|      9|        if (!OSSL_PARAM_get_int(params, &((EVP_CIPHER_CTX *)ctx)->key_len))
  ------------------
  |  Branch (664:13): [True: 0, False: 9]
  ------------------
  665|      0|            return -1;
  666|      9|        ((EVP_CIPHER_CTX *)ctx)->key_len = (int)len;
  667|      9|    }
  668|  18.5k|    return ctx->key_len;
  669|  18.5k|}
EVP_CIPHER_get_nid:
  672|    317|{
  673|    317|    return (cipher == NULL) ? NID_undef : cipher->nid;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (673:12): [True: 0, False: 317]
  ------------------
  674|    317|}
EVP_CIPHER_get0_provider:
  728|  3.21k|{
  729|  3.21k|    return cipher->prov;
  730|  3.21k|}
EVP_MD_get0_provider:
  786|  1.98k|{
  787|  1.98k|    return md->prov;
  788|  1.98k|}
EVP_MD_get_type:
  791|  7.30k|{
  792|  7.30k|    return md->type;
  793|  7.30k|}
EVP_MD_get_size:
  810|  9.20k|{
  811|  9.20k|    if (md == NULL) {
  ------------------
  |  Branch (811:9): [True: 0, False: 9.20k]
  ------------------
  812|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_MESSAGE_DIGEST_IS_NULL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  813|      0|        return -1;
  814|      0|    }
  815|  9.20k|    return md->md_size;
  816|  9.20k|}
EVP_MD_xof:
  819|  1.53k|{
  820|  1.53k|    return md != NULL && ((EVP_MD_get_flags(md) & EVP_MD_FLAG_XOF) != 0);
  ------------------
  |  |  179|  1.53k|#define EVP_MD_FLAG_XOF 0x0002
  ------------------
  |  Branch (820:12): [True: 1.53k, False: 0]
  |  Branch (820:26): [True: 1.31k, False: 219]
  ------------------
  821|  1.53k|}
EVP_MD_get_flags:
  824|  1.53k|{
  825|  1.53k|    return md->flags;
  826|  1.53k|}
EVP_MD_CTX_get0_md:
 1014|  1.97k|{
 1015|  1.97k|    if (ctx == NULL)
  ------------------
  |  Branch (1015:9): [True: 0, False: 1.97k]
  ------------------
 1016|      0|        return NULL;
 1017|  1.97k|    return ctx->reqdigest;
 1018|  1.97k|}
EVP_MD_CTX_get_size_ex:
 1033|    438|{
 1034|    438|    EVP_MD_CTX *c = (EVP_MD_CTX *)ctx;
 1035|    438|    const OSSL_PARAM *gettables;
 1036|       |
 1037|    438|    gettables = EVP_MD_CTX_gettable_params(c);
 1038|    438|    if (gettables != NULL
  ------------------
  |  Branch (1038:9): [True: 0, False: 438]
  ------------------
 1039|      0|        && OSSL_PARAM_locate_const(gettables,
  ------------------
  |  Branch (1039:12): [True: 0, False: 0]
  ------------------
 1040|      0|               OSSL_DIGEST_PARAM_SIZE)
  ------------------
  |  |  229|      0|# define OSSL_DIGEST_PARAM_SIZE "size"
  ------------------
 1041|      0|            != NULL) {
 1042|      0|        OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|      0|    { NULL, 0, NULL, 0, 0 }
  ------------------
                      OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|      0|    { NULL, 0, NULL, 0, 0 }
  ------------------
 1043|      0|        size_t sz = 0;
 1044|       |
 1045|       |        /*
 1046|       |         * For XOF's EVP_MD_get_size() returns 0
 1047|       |         * So try to get the xoflen instead. This will return -1 if the
 1048|       |         * xof length has not been set.
 1049|       |         */
 1050|      0|        params[0] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_SIZE, &sz);
  ------------------
  |  |  229|      0|# define OSSL_DIGEST_PARAM_SIZE "size"
  ------------------
 1051|      0|        if (EVP_MD_CTX_get_params(c, params) != 1
  ------------------
  |  Branch (1051:13): [True: 0, False: 0]
  ------------------
 1052|      0|            || sz > INT_MAX
  ------------------
  |  Branch (1052:16): [True: 0, False: 0]
  ------------------
 1053|      0|            || sz == 0)
  ------------------
  |  Branch (1053:16): [True: 0, False: 0]
  ------------------
 1054|      0|            return -1;
 1055|      0|        return (int)sz;
 1056|      0|    }
 1057|       |    /* Normal digests have a constant fixed size output */
 1058|    438|    return EVP_MD_get_size(EVP_MD_CTX_get0_md(ctx));
 1059|    438|}
EVP_MD_CTX_set_flags:
 1106|    219|{
 1107|    219|    ctx->flags |= flags;
 1108|    219|}
EVP_MD_CTX_clear_flags:
 1111|  3.72k|{
 1112|  3.72k|    ctx->flags &= ~flags;
 1113|  3.72k|}
EVP_MD_CTX_test_flags:
 1116|    219|{
 1117|    219|    return (ctx->flags & flags);
 1118|    219|}
EVP_PKEY_CTX_set_group_name:
 1155|    438|{
 1156|    438|    OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    438|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    438|    { NULL, 0, NULL, 0, 0 }
  ------------------
 1157|       |
 1158|    438|    if (ctx == NULL || !EVP_PKEY_CTX_IS_GEN_OP(ctx)) {
  ------------------
  |  |  753|    438|    (((ctx)->operation & EVP_PKEY_OP_TYPE_GEN) != 0)
  |  |  ------------------
  |  |  |  | 1799|    438|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1762|    438|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1763|    438|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1158:9): [True: 0, False: 438]
  |  Branch (1158:24): [True: 0, False: 438]
  ------------------
 1159|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_COMMAND_NOT_SUPPORTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1160|       |        /* Uses the same return values as EVP_PKEY_CTX_ctrl */
 1161|      0|        return -2;
 1162|      0|    }
 1163|       |
 1164|    438|    if (name == NULL)
  ------------------
  |  Branch (1164:9): [True: 0, False: 438]
  ------------------
 1165|      0|        return -1;
 1166|       |
 1167|    438|    params[0] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME,
  ------------------
  |  |  420|    438|# define OSSL_PKEY_PARAM_GROUP_NAME "group"
  ------------------
 1168|    438|        (char *)name, 0);
 1169|    438|    return EVP_PKEY_CTX_set_params(ctx, params);
 1170|    438|}
EVP_PKEY_Q_keygen:
 1221|    438|{
 1222|    438|    va_list args;
 1223|    438|    size_t bits;
 1224|    438|    char *name;
 1225|    438|    OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    438|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    438|    { NULL, 0, NULL, 0, 0 }
  ------------------
 1226|    438|    EVP_PKEY *ret = NULL;
 1227|       |
 1228|    438|    va_start(args, type);
 1229|       |
 1230|    438|    if (OPENSSL_strcasecmp(type, "RSA") == 0) {
  ------------------
  |  Branch (1230:9): [True: 0, False: 438]
  ------------------
 1231|      0|        bits = va_arg(args, size_t);
 1232|      0|        params[0] = OSSL_PARAM_construct_size_t(OSSL_PKEY_PARAM_RSA_BITS, &bits);
  ------------------
  |  |  442|      0|# define OSSL_PKEY_PARAM_RSA_BITS OSSL_PKEY_PARAM_BITS
  |  |  ------------------
  |  |  |  |  366|      0|# define OSSL_PKEY_PARAM_BITS "bits"
  |  |  ------------------
  ------------------
 1233|    438|    } else if (OPENSSL_strcasecmp(type, "EC") == 0) {
  ------------------
  |  Branch (1233:16): [True: 0, False: 438]
  ------------------
 1234|      0|        name = va_arg(args, char *);
 1235|      0|        params[0] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME,
  ------------------
  |  |  420|      0|# define OSSL_PKEY_PARAM_GROUP_NAME "group"
  ------------------
 1236|      0|            name, 0);
 1237|      0|    }
 1238|       |
 1239|    438|    ret = evp_pkey_keygen(libctx, type, propq, params);
 1240|       |
 1241|       |    va_end(args);
 1242|    438|    return ret;
 1243|    438|}
evp_lib.c:evp_pkey_keygen:
 1206|    438|{
 1207|    438|    EVP_PKEY *pkey = NULL;
 1208|    438|    EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new_from_name(libctx, name, propq);
 1209|       |
 1210|    438|    if (ctx != NULL
  ------------------
  |  Branch (1210:9): [True: 438, False: 0]
  ------------------
 1211|    438|        && EVP_PKEY_keygen_init(ctx) > 0
  ------------------
  |  Branch (1211:12): [True: 438, False: 0]
  ------------------
 1212|    438|        && EVP_PKEY_CTX_set_params(ctx, params))
  ------------------
  |  Branch (1212:12): [True: 438, False: 0]
  ------------------
 1213|    438|        (void)EVP_PKEY_generate(ctx, &pkey);
 1214|       |
 1215|    438|    EVP_PKEY_CTX_free(ctx);
 1216|    438|    return pkey;
 1217|    438|}

EVP_PKEY_type:
   64|  41.7k|{
   65|  41.7k|#ifndef OPENSSL_NO_DEPRECATED_3_6
   66|  41.7k|    int ret;
   67|  41.7k|    const EVP_PKEY_ASN1_METHOD *ameth;
   68|  41.7k|    ENGINE *e;
   69|       |
   70|  41.7k|    ameth = EVP_PKEY_asn1_find(&e, type);
   71|  41.7k|    if (ameth)
  ------------------
  |  Branch (71:9): [True: 40.7k, False: 1.02k]
  ------------------
   72|  40.7k|        ret = ameth->pkey_id;
   73|  1.02k|    else
   74|  1.02k|        ret = NID_undef;
  ------------------
  |  |   18|  1.02k|#define NID_undef                       0
  ------------------
   75|  41.7k|#ifndef OPENSSL_NO_ENGINE
   76|  41.7k|    ENGINE_finish(e);
   77|  41.7k|#endif
   78|  41.7k|    return ret;
   79|       |#else
   80|       |    size_t i;
   81|       |
   82|       |    for (i = 0; i < OSSL_NELEM(base_id_conversion); i++) {
   83|       |        if (type == base_id_conversion[i].pkey_id)
   84|       |            return base_id_conversion[i].pkey_base_id;
   85|       |    }
   86|       |    return NID_undef;
   87|       |#endif
   88|  41.7k|}

EVP_RAND_enable_locking:
   95|      1|{
   96|      1|    if (rand->meth->enable_locking != NULL)
  ------------------
  |  Branch (96:9): [True: 1, False: 0]
  ------------------
   97|      1|        return rand->meth->enable_locking(rand->algctx);
   98|      1|    ERR_raise(ERR_LIB_EVP, EVP_R_LOCKING_NOT_SUPPORTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   99|      0|    return 0;
  100|      1|}
EVP_RAND_fetch:
  284|      4|{
  285|      4|    return evp_generic_fetch(libctx, OSSL_OP_RAND, algorithm, properties,
  ------------------
  |  |  287|      4|#define OSSL_OP_RAND 5
  ------------------
  286|      4|        evp_rand_from_algorithm, evp_rand_up_ref,
  287|      4|        evp_rand_free);
  288|      4|}
EVP_RAND_up_ref:
  291|      4|{
  292|      4|    return evp_rand_up_ref(rand);
  293|      4|}
EVP_RAND_free:
  296|      4|{
  297|      4|    evp_rand_free(rand);
  298|      4|}
EVP_RAND_get0_provider:
  321|      6|{
  322|      6|    return rand->prov;
  323|      6|}
EVP_RAND_CTX_up_ref:
  333|      3|{
  334|      3|    int ref = 0;
  335|       |
  336|      3|    return CRYPTO_UP_REF(&ctx->refcnt, &ref);
  337|      3|}
EVP_RAND_CTX_new:
  340|      4|{
  341|      4|    EVP_RAND_CTX *ctx;
  342|      4|    void *parent_ctx = NULL;
  343|      4|    const OSSL_DISPATCH *parent_dispatch = NULL;
  344|       |
  345|      4|    if (rand == NULL) {
  ------------------
  |  Branch (345:9): [True: 0, False: 4]
  ------------------
  346|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_NULL_ALGORITHM);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  347|      0|        return NULL;
  348|      0|    }
  349|       |
  350|      4|    ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  108|      4|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  351|      4|    if (ctx == NULL)
  ------------------
  |  Branch (351:9): [True: 0, False: 4]
  ------------------
  352|      0|        return NULL;
  353|      4|    if (!CRYPTO_NEW_REF(&ctx->refcnt, 1)) {
  ------------------
  |  Branch (353:9): [True: 0, False: 4]
  ------------------
  354|      0|        OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  355|      0|        return NULL;
  356|      0|    }
  357|      4|    if (parent != NULL) {
  ------------------
  |  Branch (357:9): [True: 3, False: 1]
  ------------------
  358|      3|        if (!EVP_RAND_CTX_up_ref(parent)) {
  ------------------
  |  Branch (358:13): [True: 0, False: 3]
  ------------------
  359|      0|            ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  360|      0|            CRYPTO_FREE_REF(&ctx->refcnt);
  361|      0|            OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  362|      0|            return NULL;
  363|      0|        }
  364|      3|        parent_ctx = parent->algctx;
  365|      3|        parent_dispatch = parent->meth->dispatch;
  366|      3|    }
  367|      4|    if ((ctx->algctx = rand->newctx(ossl_provider_ctx(rand->prov), parent_ctx,
  ------------------
  |  Branch (367:9): [True: 0, False: 4]
  ------------------
  368|      4|             parent_dispatch))
  369|      4|            == NULL
  370|      4|        || !EVP_RAND_up_ref(rand)) {
  ------------------
  |  Branch (370:12): [True: 0, False: 4]
  ------------------
  371|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  372|      0|        rand->freectx(ctx->algctx);
  373|      0|        CRYPTO_FREE_REF(&ctx->refcnt);
  374|      0|        OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  375|      0|        EVP_RAND_CTX_free(parent);
  376|      0|        return NULL;
  377|      0|    }
  378|      4|    ctx->meth = rand;
  379|      4|    ctx->parent = parent;
  380|      4|    return ctx;
  381|      4|}
EVP_RAND_CTX_get_params:
  415|  1.56k|{
  416|  1.56k|    int res;
  417|       |
  418|  1.56k|    if (!evp_rand_lock(ctx))
  ------------------
  |  Branch (418:9): [True: 0, False: 1.56k]
  ------------------
  419|      0|        return 0;
  420|  1.56k|    res = evp_rand_get_ctx_params_locked(ctx, params);
  421|  1.56k|    evp_rand_unlock(ctx);
  422|  1.56k|    return res;
  423|  1.56k|}
EVP_RAND_CTX_settable_params:
  482|      3|{
  483|      3|    void *provctx;
  484|       |
  485|      3|    if (ctx->meth->settable_ctx_params == NULL)
  ------------------
  |  Branch (485:9): [True: 0, False: 3]
  ------------------
  486|      0|        return NULL;
  487|      3|    provctx = ossl_provider_ctx(EVP_RAND_get0_provider(ctx->meth));
  488|      3|    return ctx->meth->settable_ctx_params(ctx->algctx, provctx);
  489|      3|}
EVP_RAND_instantiate:
  522|      4|{
  523|      4|    int res;
  524|       |
  525|      4|    if (!evp_rand_lock(ctx))
  ------------------
  |  Branch (525:9): [True: 0, False: 4]
  ------------------
  526|      0|        return 0;
  527|      4|    res = evp_rand_instantiate_locked(ctx, strength, prediction_resistance,
  528|      4|        pstr, pstr_len, params);
  529|      4|    evp_rand_unlock(ctx);
  530|      4|    return res;
  531|      4|}
EVP_RAND_generate:
  584|  9.25k|{
  585|  9.25k|    int res;
  586|       |
  587|  9.25k|    if (!evp_rand_lock(ctx))
  ------------------
  |  Branch (587:9): [True: 0, False: 9.25k]
  ------------------
  588|      0|        return 0;
  589|  9.25k|    res = evp_rand_generate_locked(ctx, out, outlen, strength,
  590|  9.25k|        prediction_resistance, addin, addin_len);
  591|  9.25k|    evp_rand_unlock(ctx);
  592|  9.25k|    return res;
  593|  9.25k|}
EVP_RAND_get_state:
  668|  1.56k|{
  669|  1.56k|    OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  1.56k|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  1.56k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  670|  1.56k|    int state;
  671|       |
  672|  1.56k|    params[0] = OSSL_PARAM_construct_int(OSSL_RAND_PARAM_STATE, &state);
  ------------------
  |  |  541|  1.56k|# define OSSL_RAND_PARAM_STATE "state"
  ------------------
  673|  1.56k|    if (!EVP_RAND_CTX_get_params(ctx, params))
  ------------------
  |  Branch (673:9): [True: 0, False: 1.56k]
  ------------------
  674|      0|        state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1347|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  675|  1.56k|    return state;
  676|  1.56k|}
evp_rand.c:evp_rand_from_algorithm:
  120|      5|{
  121|      5|    const OSSL_DISPATCH *fns = algodef->implementation;
  122|      5|    EVP_RAND *rand = NULL;
  123|      5|    int fnrandcnt = 0, fnctxcnt = 0, fnlockcnt = 0, fnenablelockcnt = 0;
  124|       |#ifdef FIPS_MODULE
  125|       |    int fnzeroizecnt = 0;
  126|       |#endif
  127|       |
  128|      5|    if ((rand = evp_rand_new()) == NULL) {
  ------------------
  |  Branch (128:9): [True: 0, False: 5]
  ------------------
  129|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  130|      0|        return NULL;
  131|      0|    }
  132|      5|    rand->name_id = name_id;
  133|      5|    if ((rand->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL) {
  ------------------
  |  Branch (133:9): [True: 0, False: 5]
  ------------------
  134|      0|        evp_rand_free(rand);
  135|      0|        return NULL;
  136|      0|    }
  137|      5|    rand->description = algodef->algorithm_description;
  138|      5|    rand->dispatch = fns;
  139|     83|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (139:12): [True: 78, False: 5]
  ------------------
  140|     78|        switch (fns->function_id) {
  ------------------
  |  Branch (140:17): [True: 78, False: 0]
  ------------------
  141|      5|        case OSSL_FUNC_RAND_NEWCTX:
  ------------------
  |  |  535|      5|#define OSSL_FUNC_RAND_NEWCTX 1
  ------------------
  |  Branch (141:9): [True: 5, False: 73]
  ------------------
  142|      5|            if (rand->newctx != NULL)
  ------------------
  |  Branch (142:17): [True: 0, False: 5]
  ------------------
  143|      0|                break;
  144|      5|            rand->newctx = OSSL_FUNC_rand_newctx(fns);
  145|      5|            fnctxcnt++;
  146|      5|            break;
  147|      5|        case OSSL_FUNC_RAND_FREECTX:
  ------------------
  |  |  536|      5|#define OSSL_FUNC_RAND_FREECTX 2
  ------------------
  |  Branch (147:9): [True: 5, False: 73]
  ------------------
  148|      5|            if (rand->freectx != NULL)
  ------------------
  |  Branch (148:17): [True: 0, False: 5]
  ------------------
  149|      0|                break;
  150|      5|            rand->freectx = OSSL_FUNC_rand_freectx(fns);
  151|      5|            fnctxcnt++;
  152|      5|            break;
  153|      5|        case OSSL_FUNC_RAND_INSTANTIATE:
  ------------------
  |  |  537|      5|#define OSSL_FUNC_RAND_INSTANTIATE 3
  ------------------
  |  Branch (153:9): [True: 5, False: 73]
  ------------------
  154|      5|            if (rand->instantiate != NULL)
  ------------------
  |  Branch (154:17): [True: 0, False: 5]
  ------------------
  155|      0|                break;
  156|      5|            rand->instantiate = OSSL_FUNC_rand_instantiate(fns);
  157|      5|            fnrandcnt++;
  158|      5|            break;
  159|      5|        case OSSL_FUNC_RAND_UNINSTANTIATE:
  ------------------
  |  |  538|      5|#define OSSL_FUNC_RAND_UNINSTANTIATE 4
  ------------------
  |  Branch (159:9): [True: 5, False: 73]
  ------------------
  160|      5|            if (rand->uninstantiate != NULL)
  ------------------
  |  Branch (160:17): [True: 0, False: 5]
  ------------------
  161|      0|                break;
  162|      5|            rand->uninstantiate = OSSL_FUNC_rand_uninstantiate(fns);
  163|      5|            fnrandcnt++;
  164|      5|            break;
  165|      5|        case OSSL_FUNC_RAND_GENERATE:
  ------------------
  |  |  539|      5|#define OSSL_FUNC_RAND_GENERATE 5
  ------------------
  |  Branch (165:9): [True: 5, False: 73]
  ------------------
  166|      5|            if (rand->generate != NULL)
  ------------------
  |  Branch (166:17): [True: 0, False: 5]
  ------------------
  167|      0|                break;
  168|      5|            rand->generate = OSSL_FUNC_rand_generate(fns);
  169|      5|            fnrandcnt++;
  170|      5|            break;
  171|      5|        case OSSL_FUNC_RAND_RESEED:
  ------------------
  |  |  540|      5|#define OSSL_FUNC_RAND_RESEED 6
  ------------------
  |  Branch (171:9): [True: 5, False: 73]
  ------------------
  172|      5|            if (rand->reseed != NULL)
  ------------------
  |  Branch (172:17): [True: 0, False: 5]
  ------------------
  173|      0|                break;
  174|      5|            rand->reseed = OSSL_FUNC_rand_reseed(fns);
  175|      5|            break;
  176|      1|        case OSSL_FUNC_RAND_NONCE:
  ------------------
  |  |  541|      1|#define OSSL_FUNC_RAND_NONCE 7
  ------------------
  |  Branch (176:9): [True: 1, False: 77]
  ------------------
  177|      1|            if (rand->nonce != NULL)
  ------------------
  |  Branch (177:17): [True: 0, False: 1]
  ------------------
  178|      0|                break;
  179|      1|            rand->nonce = OSSL_FUNC_rand_nonce(fns);
  180|      1|            break;
  181|      5|        case OSSL_FUNC_RAND_ENABLE_LOCKING:
  ------------------
  |  |  542|      5|#define OSSL_FUNC_RAND_ENABLE_LOCKING 8
  ------------------
  |  Branch (181:9): [True: 5, False: 73]
  ------------------
  182|      5|            if (rand->enable_locking != NULL)
  ------------------
  |  Branch (182:17): [True: 0, False: 5]
  ------------------
  183|      0|                break;
  184|      5|            rand->enable_locking = OSSL_FUNC_rand_enable_locking(fns);
  185|      5|            fnenablelockcnt++;
  186|      5|            break;
  187|      5|        case OSSL_FUNC_RAND_LOCK:
  ------------------
  |  |  543|      5|#define OSSL_FUNC_RAND_LOCK 9
  ------------------
  |  Branch (187:9): [True: 5, False: 73]
  ------------------
  188|      5|            if (rand->lock != NULL)
  ------------------
  |  Branch (188:17): [True: 0, False: 5]
  ------------------
  189|      0|                break;
  190|      5|            rand->lock = OSSL_FUNC_rand_lock(fns);
  191|      5|            fnlockcnt++;
  192|      5|            break;
  193|      5|        case OSSL_FUNC_RAND_UNLOCK:
  ------------------
  |  |  544|      5|#define OSSL_FUNC_RAND_UNLOCK 10
  ------------------
  |  Branch (193:9): [True: 5, False: 73]
  ------------------
  194|      5|            if (rand->unlock != NULL)
  ------------------
  |  Branch (194:17): [True: 0, False: 5]
  ------------------
  195|      0|                break;
  196|      5|            rand->unlock = OSSL_FUNC_rand_unlock(fns);
  197|      5|            fnlockcnt++;
  198|      5|            break;
  199|      0|        case OSSL_FUNC_RAND_GETTABLE_PARAMS:
  ------------------
  |  |  545|      0|#define OSSL_FUNC_RAND_GETTABLE_PARAMS 11
  ------------------
  |  Branch (199:9): [True: 0, False: 78]
  ------------------
  200|      0|            if (rand->gettable_params != NULL)
  ------------------
  |  Branch (200:17): [True: 0, False: 0]
  ------------------
  201|      0|                break;
  202|      0|            rand->gettable_params = OSSL_FUNC_rand_gettable_params(fns);
  203|      0|            break;
  204|      5|        case OSSL_FUNC_RAND_GETTABLE_CTX_PARAMS:
  ------------------
  |  |  546|      5|#define OSSL_FUNC_RAND_GETTABLE_CTX_PARAMS 12
  ------------------
  |  Branch (204:9): [True: 5, False: 73]
  ------------------
  205|      5|            if (rand->gettable_ctx_params != NULL)
  ------------------
  |  Branch (205:17): [True: 0, False: 5]
  ------------------
  206|      0|                break;
  207|      5|            rand->gettable_ctx_params = OSSL_FUNC_rand_gettable_ctx_params(fns);
  208|      5|            break;
  209|      4|        case OSSL_FUNC_RAND_SETTABLE_CTX_PARAMS:
  ------------------
  |  |  547|      4|#define OSSL_FUNC_RAND_SETTABLE_CTX_PARAMS 13
  ------------------
  |  Branch (209:9): [True: 4, False: 74]
  ------------------
  210|      4|            if (rand->settable_ctx_params != NULL)
  ------------------
  |  Branch (210:17): [True: 0, False: 4]
  ------------------
  211|      0|                break;
  212|      4|            rand->settable_ctx_params = OSSL_FUNC_rand_settable_ctx_params(fns);
  213|      4|            break;
  214|      0|        case OSSL_FUNC_RAND_GET_PARAMS:
  ------------------
  |  |  548|      0|#define OSSL_FUNC_RAND_GET_PARAMS 14
  ------------------
  |  Branch (214:9): [True: 0, False: 78]
  ------------------
  215|      0|            if (rand->get_params != NULL)
  ------------------
  |  Branch (215:17): [True: 0, False: 0]
  ------------------
  216|      0|                break;
  217|      0|            rand->get_params = OSSL_FUNC_rand_get_params(fns);
  218|      0|            break;
  219|      5|        case OSSL_FUNC_RAND_GET_CTX_PARAMS:
  ------------------
  |  |  549|      5|#define OSSL_FUNC_RAND_GET_CTX_PARAMS 15
  ------------------
  |  Branch (219:9): [True: 5, False: 73]
  ------------------
  220|      5|            if (rand->get_ctx_params != NULL)
  ------------------
  |  Branch (220:17): [True: 0, False: 5]
  ------------------
  221|      0|                break;
  222|      5|            rand->get_ctx_params = OSSL_FUNC_rand_get_ctx_params(fns);
  223|      5|            fnctxcnt++;
  224|      5|            break;
  225|      4|        case OSSL_FUNC_RAND_SET_CTX_PARAMS:
  ------------------
  |  |  550|      4|#define OSSL_FUNC_RAND_SET_CTX_PARAMS 16
  ------------------
  |  Branch (225:9): [True: 4, False: 74]
  ------------------
  226|      4|            if (rand->set_ctx_params != NULL)
  ------------------
  |  Branch (226:17): [True: 0, False: 4]
  ------------------
  227|      0|                break;
  228|      4|            rand->set_ctx_params = OSSL_FUNC_rand_set_ctx_params(fns);
  229|      4|            break;
  230|      5|        case OSSL_FUNC_RAND_VERIFY_ZEROIZATION:
  ------------------
  |  |  551|      5|#define OSSL_FUNC_RAND_VERIFY_ZEROIZATION 17
  ------------------
  |  Branch (230:9): [True: 5, False: 73]
  ------------------
  231|      5|            if (rand->verify_zeroization != NULL)
  ------------------
  |  Branch (231:17): [True: 0, False: 5]
  ------------------
  232|      0|                break;
  233|      5|            rand->verify_zeroization = OSSL_FUNC_rand_verify_zeroization(fns);
  234|       |#ifdef FIPS_MODULE
  235|       |            fnzeroizecnt++;
  236|       |#endif
  237|      5|            break;
  238|      5|        case OSSL_FUNC_RAND_GET_SEED:
  ------------------
  |  |  552|      5|#define OSSL_FUNC_RAND_GET_SEED 18
  ------------------
  |  Branch (238:9): [True: 5, False: 73]
  ------------------
  239|      5|            if (rand->get_seed != NULL)
  ------------------
  |  Branch (239:17): [True: 0, False: 5]
  ------------------
  240|      0|                break;
  241|      5|            rand->get_seed = OSSL_FUNC_rand_get_seed(fns);
  242|      5|            break;
  243|      4|        case OSSL_FUNC_RAND_CLEAR_SEED:
  ------------------
  |  |  553|      4|#define OSSL_FUNC_RAND_CLEAR_SEED 19
  ------------------
  |  Branch (243:9): [True: 4, False: 74]
  ------------------
  244|      4|            if (rand->clear_seed != NULL)
  ------------------
  |  Branch (244:17): [True: 0, False: 4]
  ------------------
  245|      0|                break;
  246|      4|            rand->clear_seed = OSSL_FUNC_rand_clear_seed(fns);
  247|      4|            break;
  248|     78|        }
  249|     78|    }
  250|       |    /*
  251|       |     * In order to be a consistent set of functions we must have at least
  252|       |     * a complete set of "rand" functions and a complete set of context
  253|       |     * management functions.  In FIPS mode, we also require the zeroization
  254|       |     * verification function.
  255|       |     *
  256|       |     * In addition, if locking can be enabled, we need a complete set of
  257|       |     * locking functions.
  258|       |     */
  259|      5|    if (fnrandcnt != 3
  ------------------
  |  Branch (259:9): [True: 0, False: 5]
  ------------------
  260|      5|        || fnctxcnt != 3
  ------------------
  |  Branch (260:12): [True: 0, False: 5]
  ------------------
  261|      5|        || (fnenablelockcnt != 0 && fnenablelockcnt != 1)
  ------------------
  |  Branch (261:13): [True: 5, False: 0]
  |  Branch (261:37): [True: 0, False: 5]
  ------------------
  262|      5|        || (fnlockcnt != 0 && fnlockcnt != 2)
  ------------------
  |  Branch (262:13): [True: 5, False: 0]
  |  Branch (262:31): [True: 0, False: 5]
  ------------------
  263|       |#ifdef FIPS_MODULE
  264|       |        || fnzeroizecnt != 1
  265|       |#endif
  266|      5|    ) {
  267|      0|        evp_rand_free(rand);
  268|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  269|      0|        return NULL;
  270|      0|    }
  271|       |
  272|      5|    if (prov != NULL && !ossl_provider_up_ref(prov)) {
  ------------------
  |  Branch (272:9): [True: 5, False: 0]
  |  Branch (272:25): [True: 0, False: 5]
  ------------------
  273|      0|        evp_rand_free(rand);
  274|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  275|      0|        return NULL;
  276|      0|    }
  277|      5|    rand->prov = prov;
  278|       |
  279|      5|    return rand;
  280|      5|}
evp_rand.c:evp_rand_new:
   80|      5|{
   81|      5|    EVP_RAND *rand = OPENSSL_zalloc(sizeof(*rand));
  ------------------
  |  |  108|      5|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   82|       |
   83|      5|    if (rand == NULL)
  ------------------
  |  Branch (83:9): [True: 0, False: 5]
  ------------------
   84|      0|        return NULL;
   85|       |
   86|      5|    if (!CRYPTO_NEW_REF(&rand->refcnt, 1)) {
  ------------------
  |  Branch (86:9): [True: 0, False: 5]
  ------------------
   87|      0|        OPENSSL_free(rand);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   88|      0|        return NULL;
   89|      0|    }
   90|      5|    return rand;
   91|      5|}
evp_rand.c:evp_rand_up_ref:
   54|     15|{
   55|     15|    EVP_RAND *rand = (EVP_RAND *)vrand;
   56|     15|    int ref = 0;
   57|       |
   58|     15|    if (rand != NULL)
  ------------------
  |  Branch (58:9): [True: 15, False: 0]
  ------------------
   59|     15|        return CRYPTO_UP_REF(&rand->refcnt, &ref);
   60|      0|    return 1;
   61|     15|}
evp_rand.c:evp_rand_free:
   64|      9|{
   65|      9|    EVP_RAND *rand = (EVP_RAND *)vrand;
   66|      9|    int ref = 0;
   67|       |
   68|      9|    if (rand == NULL)
  ------------------
  |  Branch (68:9): [True: 0, False: 9]
  ------------------
   69|      0|        return;
   70|      9|    CRYPTO_DOWN_REF(&rand->refcnt, &ref);
   71|      9|    if (ref > 0)
  ------------------
  |  Branch (71:9): [True: 9, False: 0]
  ------------------
   72|      9|        return;
   73|      0|    OPENSSL_free(rand->type_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   74|      0|    ossl_provider_free(rand->prov);
   75|      0|    CRYPTO_FREE_REF(&rand->refcnt);
   76|      0|    OPENSSL_free(rand);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   77|      0|}
evp_rand.c:evp_rand_lock:
  104|  10.8k|{
  105|  10.8k|    if (rand->meth->lock != NULL)
  ------------------
  |  Branch (105:9): [True: 10.8k, False: 0]
  ------------------
  106|  10.8k|        return rand->meth->lock(rand->algctx);
  107|      0|    return 1;
  108|  10.8k|}
evp_rand.c:evp_rand_get_ctx_params_locked:
  410|  10.8k|{
  411|  10.8k|    return ctx->meth->get_ctx_params(ctx->algctx, params);
  412|  10.8k|}
evp_rand.c:evp_rand_unlock:
  112|  10.8k|{
  113|  10.8k|    if (rand->meth->unlock != NULL)
  ------------------
  |  Branch (113:9): [True: 10.8k, False: 0]
  ------------------
  114|  10.8k|        rand->meth->unlock(rand->algctx);
  115|  10.8k|}
evp_rand.c:evp_rand_instantiate_locked:
  513|      4|{
  514|      4|    return ctx->meth->instantiate(ctx->algctx, strength, prediction_resistance,
  515|      4|        pstr, pstr_len, params);
  516|      4|}
evp_rand.c:evp_rand_generate_locked:
  554|  9.25k|{
  555|  9.25k|    size_t chunk, max_request = 0;
  556|  9.25k|    OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  9.25k|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  9.25k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  557|       |
  558|  9.25k|    params[0] = OSSL_PARAM_construct_size_t(OSSL_RAND_PARAM_MAX_REQUEST,
  ------------------
  |  |  540|  9.25k|# define OSSL_RAND_PARAM_MAX_REQUEST "max_request"
  ------------------
  559|  9.25k|        &max_request);
  560|  9.25k|    if (!evp_rand_get_ctx_params_locked(ctx, params)
  ------------------
  |  Branch (560:9): [True: 0, False: 9.25k]
  ------------------
  561|  9.25k|        || max_request == 0) {
  ------------------
  |  Branch (561:12): [True: 0, False: 9.25k]
  ------------------
  562|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UNABLE_TO_GET_MAXIMUM_REQUEST_SIZE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  563|      0|        return 0;
  564|      0|    }
  565|  18.5k|    for (; outlen > 0; outlen -= chunk, out += chunk) {
  ------------------
  |  Branch (565:12): [True: 9.25k, False: 9.25k]
  ------------------
  566|  9.25k|        chunk = outlen > max_request ? max_request : outlen;
  ------------------
  |  Branch (566:17): [True: 0, False: 9.25k]
  ------------------
  567|  9.25k|        if (!ctx->meth->generate(ctx->algctx, out, chunk, strength,
  ------------------
  |  Branch (567:13): [True: 0, False: 9.25k]
  ------------------
  568|  9.25k|                prediction_resistance, addin, addin_len)) {
  569|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_GENERATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  570|      0|            return 0;
  571|      0|        }
  572|       |        /*
  573|       |         * Prediction resistance is only relevant the first time around,
  574|       |         * subsequently, the DRBG has already been properly reseeded.
  575|       |         */
  576|  9.25k|        prediction_resistance = 0;
  577|  9.25k|    }
  578|  9.25k|    return 1;
  579|  9.25k|}

EVP_KEYEXCH_free:
  162|    447|{
  163|    447|    int i;
  164|       |
  165|    447|    if (exchange == NULL)
  ------------------
  |  Branch (165:9): [True: 0, False: 447]
  ------------------
  166|      0|        return;
  167|    447|    CRYPTO_DOWN_REF(&exchange->refcnt, &i);
  168|    447|    if (i > 0)
  ------------------
  |  Branch (168:9): [True: 447, False: 0]
  ------------------
  169|    447|        return;
  170|      0|    OPENSSL_free(exchange->type_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  171|      0|    ossl_provider_free(exchange->prov);
  172|      0|    CRYPTO_FREE_REF(&exchange->refcnt);
  173|      0|    OPENSSL_free(exchange);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  174|      0|}
EVP_KEYEXCH_up_ref:
  177|    449|{
  178|    449|    int ref = 0;
  179|       |
  180|    449|    CRYPTO_UP_REF(&exchange->refcnt, &ref);
  181|    449|    return 1;
  182|    449|}
EVP_KEYEXCH_fetch:
  191|    440|{
  192|    440|    return evp_generic_fetch(ctx, OSSL_OP_KEYEXCH, algorithm, properties,
  ------------------
  |  |  289|    440|#define OSSL_OP_KEYEXCH 11
  ------------------
  193|    440|        evp_keyexch_from_algorithm,
  194|    440|        evp_keyexch_up_ref,
  195|    440|        evp_keyexch_free);
  196|    440|}
exchange.c:evp_keyexch_from_algorithm:
   53|      7|{
   54|      7|    const OSSL_DISPATCH *fns = algodef->implementation;
   55|      7|    EVP_KEYEXCH *exchange = NULL;
   56|      7|    int fncnt = 0, sparamfncnt = 0, gparamfncnt = 0, derive_found = 0;
   57|       |
   58|      7|    if ((exchange = evp_keyexch_new(prov)) == NULL) {
  ------------------
  |  Branch (58:9): [True: 0, False: 7]
  ------------------
   59|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   60|      0|        goto err;
   61|      0|    }
   62|       |
   63|      7|    exchange->name_id = name_id;
   64|      7|    if ((exchange->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL)
  ------------------
  |  Branch (64:9): [True: 0, False: 7]
  ------------------
   65|      0|        goto err;
   66|      7|    exchange->description = algodef->algorithm_description;
   67|       |
   68|     71|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (68:12): [True: 64, False: 7]
  ------------------
   69|     64|        switch (fns->function_id) {
  ------------------
  |  Branch (69:17): [True: 64, False: 0]
  ------------------
   70|      7|        case OSSL_FUNC_KEYEXCH_NEWCTX:
  ------------------
  |  |  761|      7|#define OSSL_FUNC_KEYEXCH_NEWCTX 1
  ------------------
  |  Branch (70:9): [True: 7, False: 57]
  ------------------
   71|      7|            if (exchange->newctx != NULL)
  ------------------
  |  Branch (71:17): [True: 0, False: 7]
  ------------------
   72|      0|                break;
   73|      7|            exchange->newctx = OSSL_FUNC_keyexch_newctx(fns);
   74|      7|            fncnt++;
   75|      7|            break;
   76|      7|        case OSSL_FUNC_KEYEXCH_INIT:
  ------------------
  |  |  762|      7|#define OSSL_FUNC_KEYEXCH_INIT 2
  ------------------
  |  Branch (76:9): [True: 7, False: 57]
  ------------------
   77|      7|            if (exchange->init != NULL)
  ------------------
  |  Branch (77:17): [True: 0, False: 7]
  ------------------
   78|      0|                break;
   79|      7|            exchange->init = OSSL_FUNC_keyexch_init(fns);
   80|      7|            fncnt++;
   81|      7|            break;
   82|      4|        case OSSL_FUNC_KEYEXCH_SET_PEER:
  ------------------
  |  |  764|      4|#define OSSL_FUNC_KEYEXCH_SET_PEER 4
  ------------------
  |  Branch (82:9): [True: 4, False: 60]
  ------------------
   83|      4|            if (exchange->set_peer != NULL)
  ------------------
  |  Branch (83:17): [True: 0, False: 4]
  ------------------
   84|      0|                break;
   85|      4|            exchange->set_peer = OSSL_FUNC_keyexch_set_peer(fns);
   86|      4|            break;
   87|      7|        case OSSL_FUNC_KEYEXCH_DERIVE:
  ------------------
  |  |  763|      7|#define OSSL_FUNC_KEYEXCH_DERIVE 3
  ------------------
  |  Branch (87:9): [True: 7, False: 57]
  ------------------
   88|      7|            if (exchange->derive != NULL)
  ------------------
  |  Branch (88:17): [True: 0, False: 7]
  ------------------
   89|      0|                break;
   90|      7|            exchange->derive = OSSL_FUNC_keyexch_derive(fns);
   91|      7|            derive_found = 1;
   92|      7|            break;
   93|      7|        case OSSL_FUNC_KEYEXCH_FREECTX:
  ------------------
  |  |  765|      7|#define OSSL_FUNC_KEYEXCH_FREECTX 5
  ------------------
  |  Branch (93:9): [True: 7, False: 57]
  ------------------
   94|      7|            if (exchange->freectx != NULL)
  ------------------
  |  Branch (94:17): [True: 0, False: 7]
  ------------------
   95|      0|                break;
   96|      7|            exchange->freectx = OSSL_FUNC_keyexch_freectx(fns);
   97|      7|            fncnt++;
   98|      7|            break;
   99|      7|        case OSSL_FUNC_KEYEXCH_DUPCTX:
  ------------------
  |  |  766|      7|#define OSSL_FUNC_KEYEXCH_DUPCTX 6
  ------------------
  |  Branch (99:9): [True: 7, False: 57]
  ------------------
  100|      7|            if (exchange->dupctx != NULL)
  ------------------
  |  Branch (100:17): [True: 0, False: 7]
  ------------------
  101|      0|                break;
  102|      7|            exchange->dupctx = OSSL_FUNC_keyexch_dupctx(fns);
  103|      7|            break;
  104|      7|        case OSSL_FUNC_KEYEXCH_GET_CTX_PARAMS:
  ------------------
  |  |  769|      7|#define OSSL_FUNC_KEYEXCH_GET_CTX_PARAMS 9
  ------------------
  |  Branch (104:9): [True: 7, False: 57]
  ------------------
  105|      7|            if (exchange->get_ctx_params != NULL)
  ------------------
  |  Branch (105:17): [True: 0, False: 7]
  ------------------
  106|      0|                break;
  107|      7|            exchange->get_ctx_params = OSSL_FUNC_keyexch_get_ctx_params(fns);
  108|      7|            gparamfncnt++;
  109|      7|            break;
  110|      7|        case OSSL_FUNC_KEYEXCH_GETTABLE_CTX_PARAMS:
  ------------------
  |  |  770|      7|#define OSSL_FUNC_KEYEXCH_GETTABLE_CTX_PARAMS 10
  ------------------
  |  Branch (110:9): [True: 7, False: 57]
  ------------------
  111|      7|            if (exchange->gettable_ctx_params != NULL)
  ------------------
  |  Branch (111:17): [True: 0, False: 7]
  ------------------
  112|      0|                break;
  113|      7|            exchange->gettable_ctx_params
  114|      7|                = OSSL_FUNC_keyexch_gettable_ctx_params(fns);
  115|      7|            gparamfncnt++;
  116|      7|            break;
  117|      5|        case OSSL_FUNC_KEYEXCH_SET_CTX_PARAMS:
  ------------------
  |  |  767|      5|#define OSSL_FUNC_KEYEXCH_SET_CTX_PARAMS 7
  ------------------
  |  Branch (117:9): [True: 5, False: 59]
  ------------------
  118|      5|            if (exchange->set_ctx_params != NULL)
  ------------------
  |  Branch (118:17): [True: 0, False: 5]
  ------------------
  119|      0|                break;
  120|      5|            exchange->set_ctx_params = OSSL_FUNC_keyexch_set_ctx_params(fns);
  121|      5|            sparamfncnt++;
  122|      5|            break;
  123|      5|        case OSSL_FUNC_KEYEXCH_SETTABLE_CTX_PARAMS:
  ------------------
  |  |  768|      5|#define OSSL_FUNC_KEYEXCH_SETTABLE_CTX_PARAMS 8
  ------------------
  |  Branch (123:9): [True: 5, False: 59]
  ------------------
  124|      5|            if (exchange->settable_ctx_params != NULL)
  ------------------
  |  Branch (124:17): [True: 0, False: 5]
  ------------------
  125|      0|                break;
  126|      5|            exchange->settable_ctx_params
  127|      5|                = OSSL_FUNC_keyexch_settable_ctx_params(fns);
  128|      5|            sparamfncnt++;
  129|      5|            break;
  130|      1|        case OSSL_FUNC_KEYEXCH_DERIVE_SKEY:
  ------------------
  |  |  771|      1|#define OSSL_FUNC_KEYEXCH_DERIVE_SKEY 11
  ------------------
  |  Branch (130:9): [True: 1, False: 63]
  ------------------
  131|      1|            if (exchange->derive_skey != NULL)
  ------------------
  |  Branch (131:17): [True: 0, False: 1]
  ------------------
  132|      0|                break;
  133|      1|            exchange->derive_skey = OSSL_FUNC_keyexch_derive_skey(fns);
  134|      1|            derive_found = 1;
  135|      1|            break;
  136|     64|        }
  137|     64|    }
  138|      7|    fncnt += derive_found;
  139|      7|    if (fncnt != 4
  ------------------
  |  Branch (139:9): [True: 0, False: 7]
  ------------------
  140|      7|        || (gparamfncnt != 0 && gparamfncnt != 2)
  ------------------
  |  Branch (140:13): [True: 7, False: 0]
  |  Branch (140:33): [True: 0, False: 7]
  ------------------
  141|      7|        || (sparamfncnt != 0 && sparamfncnt != 2)) {
  ------------------
  |  Branch (141:13): [True: 5, False: 2]
  |  Branch (141:33): [True: 0, False: 5]
  ------------------
  142|       |        /*
  143|       |         * In order to be a consistent set of functions we must have at least
  144|       |         * a complete set of "exchange" functions: init, derive, newctx,
  145|       |         * and freectx. The set_ctx_params and settable_ctx_params functions are
  146|       |         * optional, but if one of them is present then the other one must also
  147|       |         * be present. Same goes for get_ctx_params and gettable_ctx_params.
  148|       |         * The dupctx and set_peer functions are optional.
  149|       |         */
  150|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  151|      0|        goto err;
  152|      0|    }
  153|       |
  154|      7|    return exchange;
  155|       |
  156|      0|err:
  157|      0|    EVP_KEYEXCH_free(exchange);
  158|       |    return NULL;
  159|      7|}
exchange.c:evp_keyexch_new:
   33|      7|{
   34|      7|    EVP_KEYEXCH *exchange = OPENSSL_zalloc(sizeof(EVP_KEYEXCH));
  ------------------
  |  |  108|      7|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   35|       |
   36|      7|    if (exchange == NULL)
  ------------------
  |  Branch (36:9): [True: 0, False: 7]
  ------------------
   37|      0|        return NULL;
   38|       |
   39|      7|    if (!CRYPTO_NEW_REF(&exchange->refcnt, 1)
  ------------------
  |  Branch (39:9): [True: 0, False: 7]
  ------------------
   40|      7|        || !ossl_provider_up_ref(prov)) {
  ------------------
  |  Branch (40:12): [True: 0, False: 7]
  ------------------
   41|      0|        CRYPTO_FREE_REF(&exchange->refcnt);
   42|      0|        OPENSSL_free(exchange);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   43|      0|        return NULL;
   44|      0|    }
   45|      7|    exchange->prov = prov;
   46|       |
   47|      7|    return exchange;
   48|      7|}
exchange.c:evp_keyexch_up_ref:
   28|    449|{
   29|    449|    return EVP_KEYEXCH_up_ref(data);
   30|    449|}
exchange.c:evp_keyexch_free:
   23|      7|{
   24|      7|    EVP_KEYEXCH_free(data);
   25|      7|}

evp_keymgmt_util_assign_pkey:
   62|  32.8k|{
   63|  32.8k|    if (pkey == NULL || keymgmt == NULL || keydata == NULL
  ------------------
  |  Branch (63:9): [True: 0, False: 32.8k]
  |  Branch (63:25): [True: 0, False: 32.8k]
  |  Branch (63:44): [True: 0, False: 32.8k]
  ------------------
   64|  32.8k|        || !EVP_PKEY_set_type_by_keymgmt(pkey, keymgmt)) {
  ------------------
  |  Branch (64:12): [True: 0, False: 32.8k]
  ------------------
   65|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   66|      0|        return 0;
   67|      0|    }
   68|  32.8k|    pkey->keydata = keydata;
   69|  32.8k|    evp_keymgmt_util_cache_keyinfo(pkey);
   70|  32.8k|    return 1;
   71|  32.8k|}
evp_keymgmt_util_make_pkey:
   74|  31.9k|{
   75|  31.9k|    EVP_PKEY *pkey = NULL;
   76|       |
   77|  31.9k|    if (keymgmt == NULL
  ------------------
  |  Branch (77:9): [True: 0, False: 31.9k]
  ------------------
   78|  31.9k|        || keydata == NULL
  ------------------
  |  Branch (78:12): [True: 0, False: 31.9k]
  ------------------
   79|  31.9k|        || (pkey = EVP_PKEY_new()) == NULL
  ------------------
  |  Branch (79:12): [True: 0, False: 31.9k]
  ------------------
   80|  31.9k|        || !evp_keymgmt_util_assign_pkey(pkey, keymgmt, keydata)) {
  ------------------
  |  Branch (80:12): [True: 0, False: 31.9k]
  ------------------
   81|      0|        EVP_PKEY_free(pkey);
   82|      0|        return NULL;
   83|      0|    }
   84|  31.9k|    return pkey;
   85|  31.9k|}
evp_keymgmt_util_export:
   89|    438|{
   90|    438|    if (pk == NULL || export_cb == NULL)
  ------------------
  |  Branch (90:9): [True: 0, False: 438]
  |  Branch (90:23): [True: 0, False: 438]
  ------------------
   91|      0|        return 0;
   92|    438|    return evp_keymgmt_export(pk->keymgmt, pk->keydata, selection,
   93|    438|        export_cb, export_cbarg);
   94|    438|}
evp_keymgmt_util_clear_operation_cache:
  223|  65.0k|{
  224|  65.0k|    if (pk != NULL) {
  ------------------
  |  Branch (224:9): [True: 65.0k, False: 0]
  ------------------
  225|  65.0k|        sk_OP_CACHE_ELEM_pop_free(pk->operation_cache, op_cache_free);
  226|  65.0k|        pk->operation_cache = NULL;
  227|  65.0k|    }
  228|       |
  229|  65.0k|    return 1;
  230|  65.0k|}
evp_keymgmt_util_cache_keyinfo:
  290|  32.8k|{
  291|       |    /*
  292|       |     * Cache information about the provider "origin" key.
  293|       |     *
  294|       |     * This services functions like EVP_PKEY_get_size, EVP_PKEY_get_bits, etc
  295|       |     */
  296|  32.8k|    if (pk->keydata != NULL) {
  ------------------
  |  Branch (296:9): [True: 32.8k, False: 0]
  ------------------
  297|  32.8k|        int bits = 0;
  298|  32.8k|        int security_bits = 0;
  299|  32.8k|        int security_category = -1;
  300|  32.8k|        int size = 0;
  301|  32.8k|        OSSL_PARAM params[5];
  302|       |
  303|  32.8k|        params[0] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_BITS, &bits);
  ------------------
  |  |  366|  32.8k|# define OSSL_PKEY_PARAM_BITS "bits"
  ------------------
  304|  32.8k|        params[1] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_SECURITY_BITS,
  ------------------
  |  |  495|  32.8k|# define OSSL_PKEY_PARAM_SECURITY_BITS "security-bits"
  ------------------
  305|  32.8k|            &security_bits);
  306|  32.8k|        params[2] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_SECURITY_CATEGORY,
  ------------------
  |  |  496|  32.8k|# define OSSL_PKEY_PARAM_SECURITY_CATEGORY OSSL_ALG_PARAM_SECURITY_CATEGORY
  |  |  ------------------
  |  |  |  |  133|  32.8k|# define OSSL_ALG_PARAM_SECURITY_CATEGORY "security-category"
  |  |  ------------------
  ------------------
  307|  32.8k|            &security_category);
  308|  32.8k|        params[3] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_MAX_SIZE, &size);
  ------------------
  |  |  424|  32.8k|# define OSSL_PKEY_PARAM_MAX_SIZE "max-size"
  ------------------
  309|  32.8k|        params[4] = OSSL_PARAM_construct_end();
  310|  32.8k|        if (evp_keymgmt_get_params(pk->keymgmt, pk->keydata, params)) {
  ------------------
  |  Branch (310:13): [True: 32.8k, False: 0]
  ------------------
  311|  32.8k|            pk->cache.size = size;
  312|  32.8k|            pk->cache.bits = bits;
  313|  32.8k|            pk->cache.security_bits = security_bits;
  314|  32.8k|            pk->cache.security_category = security_category;
  315|  32.8k|        }
  316|  32.8k|    }
  317|  32.8k|}
evp_keymgmt_util_gen:
  517|    876|{
  518|    876|    void *keydata = NULL;
  519|       |
  520|    876|    if ((keydata = evp_keymgmt_gen(keymgmt, genctx, cb, cbarg)) == NULL
  ------------------
  |  Branch (520:9): [True: 0, False: 876]
  ------------------
  521|    876|        || !evp_keymgmt_util_assign_pkey(target, keymgmt, keydata)) {
  ------------------
  |  Branch (521:12): [True: 0, False: 876]
  ------------------
  522|      0|        evp_keymgmt_freedata(keymgmt, keydata);
  523|      0|        keydata = NULL;
  524|      0|    }
  525|       |
  526|    876|    return keydata;
  527|    876|}

EVP_KEYMGMT_fetch:
  279|  20.2k|{
  280|  20.2k|    return evp_generic_fetch(ctx, OSSL_OP_KEYMGMT, algorithm, properties,
  ------------------
  |  |  288|  20.2k|#define OSSL_OP_KEYMGMT 10
  ------------------
  281|  20.2k|        keymgmt_from_algorithm,
  282|  20.2k|        evp_keymgmt_up_ref,
  283|  20.2k|        evp_keymgmt_free);
  284|  20.2k|}
EVP_KEYMGMT_up_ref:
  287|   125k|{
  288|   125k|    int ref = 0;
  289|       |
  290|   125k|    CRYPTO_UP_REF(&keymgmt->refcnt, &ref);
  291|   125k|    return 1;
  292|   125k|}
EVP_KEYMGMT_free:
  295|   125k|{
  296|   125k|    int ref = 0;
  297|       |
  298|   125k|    if (keymgmt == NULL)
  ------------------
  |  Branch (298:9): [True: 0, False: 125k]
  ------------------
  299|      0|        return;
  300|       |
  301|   125k|    CRYPTO_DOWN_REF(&keymgmt->refcnt, &ref);
  302|   125k|    if (ref > 0)
  ------------------
  |  Branch (302:9): [True: 125k, False: 0]
  ------------------
  303|   125k|        return;
  304|      0|    OPENSSL_free(keymgmt->type_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  305|      0|    ossl_provider_free(keymgmt->prov);
  306|      0|    CRYPTO_FREE_REF(&keymgmt->refcnt);
  307|      0|    OPENSSL_free(keymgmt);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  308|      0|}
EVP_KEYMGMT_get0_provider:
  311|  33.5k|{
  312|  33.5k|    return keymgmt->prov;
  313|  33.5k|}
evp_keymgmt_get_legacy_alg:
  321|  6.59k|{
  322|  6.59k|    return keymgmt->legacy_alg;
  323|  6.59k|}
EVP_KEYMGMT_is_a:
  336|  31.9k|{
  337|  31.9k|    return keymgmt != NULL
  ------------------
  |  Branch (337:12): [True: 31.9k, False: 0]
  ------------------
  338|  31.9k|        && evp_is_a(keymgmt->prov, keymgmt->name_id, NULL, name);
  ------------------
  |  Branch (338:12): [True: 31.9k, False: 0]
  ------------------
  339|  31.9k|}
EVP_KEYMGMT_do_all_provided:
  344|      2|{
  345|      2|    evp_generic_do_all(libctx, OSSL_OP_KEYMGMT,
  ------------------
  |  |  288|      2|#define OSSL_OP_KEYMGMT 10
  ------------------
  346|      2|        (void (*)(void *, void *))fn, arg,
  347|      2|        keymgmt_from_algorithm,
  348|      2|        evp_keymgmt_up_ref,
  349|      2|        evp_keymgmt_free);
  350|      2|}
EVP_KEYMGMT_names_do_all:
  355|  32.8k|{
  356|  32.8k|    if (keymgmt->prov != NULL)
  ------------------
  |  Branch (356:9): [True: 32.8k, False: 0]
  ------------------
  357|  32.8k|        return evp_names_do_all(keymgmt->prov, keymgmt->name_id, fn, data);
  358|       |
  359|      0|    return 1;
  360|  32.8k|}
evp_keymgmt_freedata:
  380|  32.8k|{
  381|       |    /* This is mandatory, no need to check for its presence */
  382|  32.8k|    keymgmt->free(keydata);
  383|  32.8k|}
evp_keymgmt_gen_init:
  387|    876|{
  388|    876|    void *provctx = ossl_provider_ctx(EVP_KEYMGMT_get0_provider(keymgmt));
  389|       |
  390|    876|    if (keymgmt->gen_init == NULL)
  ------------------
  |  Branch (390:9): [True: 0, False: 876]
  ------------------
  391|      0|        return NULL;
  392|    876|    return keymgmt->gen_init(provctx, selection, params);
  393|    876|}
evp_keymgmt_gen_set_params:
  411|    876|{
  412|    876|    if (keymgmt->gen_set_params == NULL)
  ------------------
  |  Branch (412:9): [True: 0, False: 876]
  ------------------
  413|      0|        return 0;
  414|    876|    return keymgmt->gen_set_params(genctx, params);
  415|    876|}
evp_keymgmt_gen:
  445|    876|{
  446|    876|    void *ret;
  447|    876|    const char *desc = keymgmt->description != NULL ? keymgmt->description : "";
  ------------------
  |  Branch (447:24): [True: 876, False: 0]
  ------------------
  448|       |
  449|    876|    if (keymgmt->gen == NULL) {
  ------------------
  |  Branch (449:9): [True: 0, False: 876]
  ------------------
  450|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED,
  ------------------
  |  |  108|      0|#define EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED 236
  ------------------
  451|      0|            "%s key generation:%s", keymgmt->type_name, desc);
  452|      0|        return NULL;
  453|      0|    }
  454|       |
  455|    876|    ERR_set_mark();
  456|    876|    ret = keymgmt->gen(genctx, cb, cbarg);
  457|    876|    if (ret == NULL && ERR_count_to_mark() == 0)
  ------------------
  |  Branch (457:9): [True: 0, False: 876]
  |  Branch (457:24): [True: 0, False: 0]
  ------------------
  458|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_FAILURE,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_FAILURE,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_FAILURE,
  ------------------
  |  |  107|      0|#define EVP_R_PROVIDER_KEYMGMT_FAILURE 233
  ------------------
  459|      0|            "%s key generation:%s", keymgmt->type_name, desc);
  460|    876|    ERR_clear_last_mark();
  461|    876|    return ret;
  462|    876|}
evp_keymgmt_gen_cleanup:
  465|    876|{
  466|    876|    if (keymgmt->gen_cleanup != NULL)
  ------------------
  |  Branch (466:9): [True: 876, False: 0]
  ------------------
  467|    876|        keymgmt->gen_cleanup(genctx);
  468|    876|}
evp_keymgmt_has_load:
  471|  63.9k|{
  472|  63.9k|    return keymgmt != NULL && keymgmt->load != NULL;
  ------------------
  |  Branch (472:12): [True: 63.9k, False: 0]
  |  Branch (472:31): [True: 63.9k, False: 0]
  ------------------
  473|  63.9k|}
evp_keymgmt_load:
  477|  31.9k|{
  478|  31.9k|    if (evp_keymgmt_has_load(keymgmt))
  ------------------
  |  Branch (478:9): [True: 31.9k, False: 0]
  ------------------
  479|  31.9k|        return keymgmt->load(objref, objref_sz);
  480|      0|    return NULL;
  481|  31.9k|}
evp_keymgmt_get_params:
  485|  33.7k|{
  486|  33.7k|    if (keymgmt->get_params == NULL)
  ------------------
  |  Branch (486:9): [True: 0, False: 33.7k]
  ------------------
  487|      0|        return 1;
  488|  33.7k|    return keymgmt->get_params(keydata, params);
  489|  33.7k|}
evp_keymgmt_export:
  564|    438|{
  565|    438|    if (keymgmt->export == NULL)
  ------------------
  |  Branch (565:9): [True: 0, False: 438]
  ------------------
  566|      0|        return 0;
  567|    438|    return keymgmt->export(keydata, selection, param_cb, cbarg);
  568|    438|}
keymgmt_meth.c:keymgmt_from_algorithm:
   66|     40|{
   67|     40|    const OSSL_DISPATCH *fns = algodef->implementation;
   68|     40|    EVP_KEYMGMT *keymgmt = NULL;
   69|     40|    int setparamfncnt = 0, getparamfncnt = 0;
   70|     40|    int setgenparamfncnt = 0;
   71|     40|    int importfncnt = 0, exportfncnt = 0;
   72|     40|    int importtypesfncnt = 0, exporttypesfncnt = 0;
   73|     40|    int getgenparamfncnt = 0;
   74|       |
   75|     40|    if ((keymgmt = keymgmt_new()) == NULL)
  ------------------
  |  Branch (75:9): [True: 0, False: 40]
  ------------------
   76|      0|        return NULL;
   77|       |
   78|     40|    keymgmt->name_id = name_id;
   79|     40|    if ((keymgmt->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL) {
  ------------------
  |  Branch (79:9): [True: 0, False: 40]
  ------------------
   80|      0|        EVP_KEYMGMT_free(keymgmt);
   81|      0|        return NULL;
   82|      0|    }
   83|     40|    keymgmt->description = algodef->algorithm_description;
   84|       |
   85|    746|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (85:12): [True: 706, False: 40]
  ------------------
   86|    706|        switch (fns->function_id) {
  ------------------
  |  Branch (86:17): [True: 706, False: 0]
  ------------------
   87|     40|        case OSSL_FUNC_KEYMGMT_NEW:
  ------------------
  |  |  658|     40|#define OSSL_FUNC_KEYMGMT_NEW 1
  ------------------
  |  Branch (87:9): [True: 40, False: 666]
  ------------------
   88|     40|            if (keymgmt->new == NULL)
  ------------------
  |  Branch (88:17): [True: 40, False: 0]
  ------------------
   89|     40|                keymgmt->new = OSSL_FUNC_keymgmt_new(fns);
   90|     40|            break;
   91|     37|        case OSSL_FUNC_KEYMGMT_GEN_INIT:
  ------------------
  |  |  662|     37|#define OSSL_FUNC_KEYMGMT_GEN_INIT 2
  ------------------
  |  Branch (91:9): [True: 37, False: 669]
  ------------------
   92|     37|            if (keymgmt->gen_init == NULL)
  ------------------
  |  Branch (92:17): [True: 37, False: 0]
  ------------------
   93|     37|                keymgmt->gen_init = OSSL_FUNC_keymgmt_gen_init(fns);
   94|     37|            break;
   95|      5|        case OSSL_FUNC_KEYMGMT_GEN_SET_TEMPLATE:
  ------------------
  |  |  663|      5|#define OSSL_FUNC_KEYMGMT_GEN_SET_TEMPLATE 3
  ------------------
  |  Branch (95:9): [True: 5, False: 701]
  ------------------
   96|      5|            if (keymgmt->gen_set_template == NULL)
  ------------------
  |  Branch (96:17): [True: 5, False: 0]
  ------------------
   97|      5|                keymgmt->gen_set_template = OSSL_FUNC_keymgmt_gen_set_template(fns);
   98|      5|            break;
   99|     37|        case OSSL_FUNC_KEYMGMT_GEN_SET_PARAMS:
  ------------------
  |  |  664|     37|#define OSSL_FUNC_KEYMGMT_GEN_SET_PARAMS 4
  ------------------
  |  Branch (99:9): [True: 37, False: 669]
  ------------------
  100|     37|            if (keymgmt->gen_set_params == NULL) {
  ------------------
  |  Branch (100:17): [True: 37, False: 0]
  ------------------
  101|     37|                setgenparamfncnt++;
  102|     37|                keymgmt->gen_set_params = OSSL_FUNC_keymgmt_gen_set_params(fns);
  103|     37|            }
  104|     37|            break;
  105|     37|        case OSSL_FUNC_KEYMGMT_GEN_SETTABLE_PARAMS:
  ------------------
  |  |  665|     37|#define OSSL_FUNC_KEYMGMT_GEN_SETTABLE_PARAMS 5
  ------------------
  |  Branch (105:9): [True: 37, False: 669]
  ------------------
  106|     37|            if (keymgmt->gen_settable_params == NULL) {
  ------------------
  |  Branch (106:17): [True: 37, False: 0]
  ------------------
  107|     37|                setgenparamfncnt++;
  108|     37|                keymgmt->gen_settable_params = OSSL_FUNC_keymgmt_gen_settable_params(fns);
  109|     37|            }
  110|     37|            break;
  111|      2|        case OSSL_FUNC_KEYMGMT_GEN_GET_PARAMS:
  ------------------
  |  |  668|      2|#define OSSL_FUNC_KEYMGMT_GEN_GET_PARAMS 15
  ------------------
  |  Branch (111:9): [True: 2, False: 704]
  ------------------
  112|      2|            if (keymgmt->gen_get_params == NULL) {
  ------------------
  |  Branch (112:17): [True: 2, False: 0]
  ------------------
  113|      2|                getgenparamfncnt++;
  114|      2|                keymgmt->gen_get_params = OSSL_FUNC_keymgmt_gen_get_params(fns);
  115|      2|            }
  116|      2|            break;
  117|      2|        case OSSL_FUNC_KEYMGMT_GEN_GETTABLE_PARAMS:
  ------------------
  |  |  669|      2|#define OSSL_FUNC_KEYMGMT_GEN_GETTABLE_PARAMS 16
  ------------------
  |  Branch (117:9): [True: 2, False: 704]
  ------------------
  118|      2|            if (keymgmt->gen_gettable_params == NULL) {
  ------------------
  |  Branch (118:17): [True: 2, False: 0]
  ------------------
  119|      2|                getgenparamfncnt++;
  120|      2|                keymgmt->gen_gettable_params = OSSL_FUNC_keymgmt_gen_gettable_params(fns);
  121|      2|            }
  122|      2|            break;
  123|     37|        case OSSL_FUNC_KEYMGMT_GEN:
  ------------------
  |  |  666|     37|#define OSSL_FUNC_KEYMGMT_GEN 6
  ------------------
  |  Branch (123:9): [True: 37, False: 669]
  ------------------
  124|     37|            if (keymgmt->gen == NULL)
  ------------------
  |  Branch (124:17): [True: 37, False: 0]
  ------------------
  125|     37|                keymgmt->gen = OSSL_FUNC_keymgmt_gen(fns);
  126|     37|            break;
  127|     37|        case OSSL_FUNC_KEYMGMT_GEN_CLEANUP:
  ------------------
  |  |  667|     37|#define OSSL_FUNC_KEYMGMT_GEN_CLEANUP 7
  ------------------
  |  Branch (127:9): [True: 37, False: 669]
  ------------------
  128|     37|            if (keymgmt->gen_cleanup == NULL)
  ------------------
  |  Branch (128:17): [True: 37, False: 0]
  ------------------
  129|     37|                keymgmt->gen_cleanup = OSSL_FUNC_keymgmt_gen_cleanup(fns);
  130|     37|            break;
  131|     40|        case OSSL_FUNC_KEYMGMT_FREE:
  ------------------
  |  |  694|     40|#define OSSL_FUNC_KEYMGMT_FREE 10
  ------------------
  |  Branch (131:9): [True: 40, False: 666]
  ------------------
  132|     40|            if (keymgmt->free == NULL)
  ------------------
  |  Branch (132:17): [True: 40, False: 0]
  ------------------
  133|     40|                keymgmt->free = OSSL_FUNC_keymgmt_free(fns);
  134|     40|            break;
  135|     29|        case OSSL_FUNC_KEYMGMT_LOAD:
  ------------------
  |  |  689|     29|#define OSSL_FUNC_KEYMGMT_LOAD 8
  ------------------
  |  Branch (135:9): [True: 29, False: 677]
  ------------------
  136|     29|            if (keymgmt->load == NULL)
  ------------------
  |  Branch (136:17): [True: 29, False: 0]
  ------------------
  137|     29|                keymgmt->load = OSSL_FUNC_keymgmt_load(fns);
  138|     29|            break;
  139|     37|        case OSSL_FUNC_KEYMGMT_GET_PARAMS:
  ------------------
  |  |  698|     37|#define OSSL_FUNC_KEYMGMT_GET_PARAMS 11
  ------------------
  |  Branch (139:9): [True: 37, False: 669]
  ------------------
  140|     37|            if (keymgmt->get_params == NULL) {
  ------------------
  |  Branch (140:17): [True: 37, False: 0]
  ------------------
  141|     37|                getparamfncnt++;
  142|     37|                keymgmt->get_params = OSSL_FUNC_keymgmt_get_params(fns);
  143|     37|            }
  144|     37|            break;
  145|     37|        case OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS:
  ------------------
  |  |  699|     37|#define OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS 12
  ------------------
  |  Branch (145:9): [True: 37, False: 669]
  ------------------
  146|     37|            if (keymgmt->gettable_params == NULL) {
  ------------------
  |  Branch (146:17): [True: 37, False: 0]
  ------------------
  147|     37|                getparamfncnt++;
  148|     37|                keymgmt->gettable_params = OSSL_FUNC_keymgmt_gettable_params(fns);
  149|     37|            }
  150|     37|            break;
  151|     19|        case OSSL_FUNC_KEYMGMT_SET_PARAMS:
  ------------------
  |  |  705|     19|#define OSSL_FUNC_KEYMGMT_SET_PARAMS 13
  ------------------
  |  Branch (151:9): [True: 19, False: 687]
  ------------------
  152|     19|            if (keymgmt->set_params == NULL) {
  ------------------
  |  Branch (152:17): [True: 19, False: 0]
  ------------------
  153|     19|                setparamfncnt++;
  154|     19|                keymgmt->set_params = OSSL_FUNC_keymgmt_set_params(fns);
  155|     19|            }
  156|     19|            break;
  157|     19|        case OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS:
  ------------------
  |  |  706|     19|#define OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS 14
  ------------------
  |  Branch (157:9): [True: 19, False: 687]
  ------------------
  158|     19|            if (keymgmt->settable_params == NULL) {
  ------------------
  |  Branch (158:17): [True: 19, False: 0]
  ------------------
  159|     19|                setparamfncnt++;
  160|     19|                keymgmt->settable_params = OSSL_FUNC_keymgmt_settable_params(fns);
  161|     19|            }
  162|     19|            break;
  163|      4|        case OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME:
  ------------------
  |  |  713|      4|#define OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME 20
  ------------------
  |  Branch (163:9): [True: 4, False: 702]
  ------------------
  164|      4|            if (keymgmt->query_operation_name == NULL)
  ------------------
  |  Branch (164:17): [True: 4, False: 0]
  ------------------
  165|      4|                keymgmt->query_operation_name = OSSL_FUNC_keymgmt_query_operation_name(fns);
  166|      4|            break;
  167|     40|        case OSSL_FUNC_KEYMGMT_HAS:
  ------------------
  |  |  718|     40|#define OSSL_FUNC_KEYMGMT_HAS 21
  ------------------
  |  Branch (167:9): [True: 40, False: 666]
  ------------------
  168|     40|            if (keymgmt->has == NULL)
  ------------------
  |  Branch (168:17): [True: 40, False: 0]
  ------------------
  169|     40|                keymgmt->has = OSSL_FUNC_keymgmt_has(fns);
  170|     40|            break;
  171|     33|        case OSSL_FUNC_KEYMGMT_DUP:
  ------------------
  |  |  747|     33|#define OSSL_FUNC_KEYMGMT_DUP 44
  ------------------
  |  Branch (171:9): [True: 33, False: 673]
  ------------------
  172|     33|            if (keymgmt->dup == NULL)
  ------------------
  |  Branch (172:17): [True: 33, False: 0]
  ------------------
  173|     33|                keymgmt->dup = OSSL_FUNC_keymgmt_dup(fns);
  174|     33|            break;
  175|     29|        case OSSL_FUNC_KEYMGMT_VALIDATE:
  ------------------
  |  |  722|     29|#define OSSL_FUNC_KEYMGMT_VALIDATE 22
  ------------------
  |  Branch (175:9): [True: 29, False: 677]
  ------------------
  176|     29|            if (keymgmt->validate == NULL)
  ------------------
  |  Branch (176:17): [True: 29, False: 0]
  ------------------
  177|     29|                keymgmt->validate = OSSL_FUNC_keymgmt_validate(fns);
  178|     29|            break;
  179|     37|        case OSSL_FUNC_KEYMGMT_MATCH:
  ------------------
  |  |  726|     37|#define OSSL_FUNC_KEYMGMT_MATCH 23
  ------------------
  |  Branch (179:9): [True: 37, False: 669]
  ------------------
  180|     37|            if (keymgmt->match == NULL)
  ------------------
  |  Branch (180:17): [True: 37, False: 0]
  ------------------
  181|     37|                keymgmt->match = OSSL_FUNC_keymgmt_match(fns);
  182|     37|            break;
  183|     37|        case OSSL_FUNC_KEYMGMT_IMPORT:
  ------------------
  |  |  732|     37|#define OSSL_FUNC_KEYMGMT_IMPORT 40
  ------------------
  |  Branch (183:9): [True: 37, False: 669]
  ------------------
  184|     37|            if (keymgmt->import == NULL) {
  ------------------
  |  Branch (184:17): [True: 37, False: 0]
  ------------------
  185|     37|                importfncnt++;
  186|     37|                keymgmt->import = OSSL_FUNC_keymgmt_import(fns);
  187|     37|            }
  188|     37|            break;
  189|     37|        case OSSL_FUNC_KEYMGMT_IMPORT_TYPES:
  ------------------
  |  |  733|     37|#define OSSL_FUNC_KEYMGMT_IMPORT_TYPES 41
  ------------------
  |  Branch (189:9): [True: 37, False: 669]
  ------------------
  190|     37|            if (keymgmt->import_types == NULL) {
  ------------------
  |  Branch (190:17): [True: 37, False: 0]
  ------------------
  191|     37|                if (importtypesfncnt == 0)
  ------------------
  |  Branch (191:21): [True: 37, False: 0]
  ------------------
  192|     37|                    importfncnt++;
  193|     37|                importtypesfncnt++;
  194|     37|                keymgmt->import_types = OSSL_FUNC_keymgmt_import_types(fns);
  195|     37|            }
  196|     37|            break;
  197|      0|        case OSSL_FUNC_KEYMGMT_IMPORT_TYPES_EX:
  ------------------
  |  |  752|      0|#define OSSL_FUNC_KEYMGMT_IMPORT_TYPES_EX 45
  ------------------
  |  Branch (197:9): [True: 0, False: 706]
  ------------------
  198|      0|            if (keymgmt->import_types_ex == NULL) {
  ------------------
  |  Branch (198:17): [True: 0, False: 0]
  ------------------
  199|      0|                if (importtypesfncnt == 0)
  ------------------
  |  Branch (199:21): [True: 0, False: 0]
  ------------------
  200|      0|                    importfncnt++;
  201|      0|                importtypesfncnt++;
  202|      0|                keymgmt->import_types_ex = OSSL_FUNC_keymgmt_import_types_ex(fns);
  203|      0|            }
  204|      0|            break;
  205|     37|        case OSSL_FUNC_KEYMGMT_EXPORT:
  ------------------
  |  |  734|     37|#define OSSL_FUNC_KEYMGMT_EXPORT 42
  ------------------
  |  Branch (205:9): [True: 37, False: 669]
  ------------------
  206|     37|            if (keymgmt->export == NULL) {
  ------------------
  |  Branch (206:17): [True: 37, False: 0]
  ------------------
  207|     37|                exportfncnt++;
  208|     37|                keymgmt->export = OSSL_FUNC_keymgmt_export(fns);
  209|     37|            }
  210|     37|            break;
  211|     37|        case OSSL_FUNC_KEYMGMT_EXPORT_TYPES:
  ------------------
  |  |  735|     37|#define OSSL_FUNC_KEYMGMT_EXPORT_TYPES 43
  ------------------
  |  Branch (211:9): [True: 37, False: 669]
  ------------------
  212|     37|            if (keymgmt->export_types == NULL) {
  ------------------
  |  Branch (212:17): [True: 37, False: 0]
  ------------------
  213|     37|                if (exporttypesfncnt == 0)
  ------------------
  |  Branch (213:21): [True: 37, False: 0]
  ------------------
  214|     37|                    exportfncnt++;
  215|     37|                exporttypesfncnt++;
  216|     37|                keymgmt->export_types = OSSL_FUNC_keymgmt_export_types(fns);
  217|     37|            }
  218|     37|            break;
  219|      0|        case OSSL_FUNC_KEYMGMT_EXPORT_TYPES_EX:
  ------------------
  |  |  753|      0|#define OSSL_FUNC_KEYMGMT_EXPORT_TYPES_EX 46
  ------------------
  |  Branch (219:9): [True: 0, False: 706]
  ------------------
  220|      0|            if (keymgmt->export_types_ex == NULL) {
  ------------------
  |  Branch (220:17): [True: 0, False: 0]
  ------------------
  221|      0|                if (exporttypesfncnt == 0)
  ------------------
  |  Branch (221:21): [True: 0, False: 0]
  ------------------
  222|      0|                    exportfncnt++;
  223|      0|                exporttypesfncnt++;
  224|      0|                keymgmt->export_types_ex = OSSL_FUNC_keymgmt_export_types_ex(fns);
  225|      0|            }
  226|      0|            break;
  227|    706|        }
  228|    706|    }
  229|       |    /*
  230|       |     * Try to check that the method is sensible.
  231|       |     * At least one constructor and the destructor are MANDATORY
  232|       |     * The functions 'has' is MANDATORY
  233|       |     * It makes no sense being able to free stuff if you can't create it.
  234|       |     * It makes no sense providing OSSL_PARAM descriptors for import and
  235|       |     * export if you can't import or export.
  236|       |     */
  237|     40|    if (keymgmt->free == NULL
  ------------------
  |  Branch (237:9): [True: 0, False: 40]
  ------------------
  238|     40|        || (keymgmt->new == NULL
  ------------------
  |  Branch (238:13): [True: 0, False: 40]
  ------------------
  239|      0|            && keymgmt->gen == NULL
  ------------------
  |  Branch (239:16): [True: 0, False: 0]
  ------------------
  240|      0|            && keymgmt->load == NULL)
  ------------------
  |  Branch (240:16): [True: 0, False: 0]
  ------------------
  241|     40|        || keymgmt->has == NULL
  ------------------
  |  Branch (241:12): [True: 0, False: 40]
  ------------------
  242|     40|        || (getparamfncnt != 0 && getparamfncnt != 2)
  ------------------
  |  Branch (242:13): [True: 37, False: 3]
  |  Branch (242:35): [True: 0, False: 37]
  ------------------
  243|     40|        || (setparamfncnt != 0 && setparamfncnt != 2)
  ------------------
  |  Branch (243:13): [True: 19, False: 21]
  |  Branch (243:35): [True: 0, False: 19]
  ------------------
  244|     40|        || (setgenparamfncnt != 0 && setgenparamfncnt != 2)
  ------------------
  |  Branch (244:13): [True: 37, False: 3]
  |  Branch (244:38): [True: 0, False: 37]
  ------------------
  245|     40|        || (getgenparamfncnt != 0 && getgenparamfncnt != 2)
  ------------------
  |  Branch (245:13): [True: 2, False: 38]
  |  Branch (245:38): [True: 0, False: 2]
  ------------------
  246|     40|        || (importfncnt != 0 && importfncnt != 2)
  ------------------
  |  Branch (246:13): [True: 37, False: 3]
  |  Branch (246:33): [True: 0, False: 37]
  ------------------
  247|     40|        || (exportfncnt != 0 && exportfncnt != 2)
  ------------------
  |  Branch (247:13): [True: 37, False: 3]
  |  Branch (247:33): [True: 0, False: 37]
  ------------------
  248|     40|        || (keymgmt->gen != NULL
  ------------------
  |  Branch (248:13): [True: 37, False: 3]
  ------------------
  249|     37|            && (keymgmt->gen_init == NULL
  ------------------
  |  Branch (249:17): [True: 0, False: 37]
  ------------------
  250|     37|                || keymgmt->gen_cleanup == NULL))) {
  ------------------
  |  Branch (250:20): [True: 0, False: 37]
  ------------------
  251|      0|        EVP_KEYMGMT_free(keymgmt);
  252|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  253|      0|        return NULL;
  254|      0|    }
  255|     40|    keymgmt->prov = prov;
  256|     40|    if (prov != NULL)
  ------------------
  |  Branch (256:9): [True: 40, False: 0]
  ------------------
  257|     40|        ossl_provider_up_ref(prov);
  258|       |
  259|     40|#ifndef FIPS_MODULE
  260|     40|    keymgmt->legacy_alg = get_legacy_alg_type_from_keymgmt(keymgmt);
  261|     40|#endif
  262|       |
  263|     40|    return keymgmt;
  264|     40|}
keymgmt_meth.c:keymgmt_new:
   31|     40|{
   32|     40|    EVP_KEYMGMT *keymgmt = NULL;
   33|       |
   34|     40|    if ((keymgmt = OPENSSL_zalloc(sizeof(*keymgmt))) == NULL)
  ------------------
  |  |  108|     40|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (34:9): [True: 0, False: 40]
  ------------------
   35|      0|        return NULL;
   36|     40|    if (!CRYPTO_NEW_REF(&keymgmt->refcnt, 1)) {
  ------------------
  |  Branch (36:9): [True: 0, False: 40]
  ------------------
   37|      0|        EVP_KEYMGMT_free(keymgmt);
   38|      0|        return NULL;
   39|      0|    }
   40|     40|    return keymgmt;
   41|     40|}
keymgmt_meth.c:get_legacy_alg_type_from_keymgmt:
   54|     40|{
   55|     40|    int type = NID_undef;
  ------------------
  |  |   18|     40|#define NID_undef                       0
  ------------------
   56|       |
   57|     40|    EVP_KEYMGMT_names_do_all(keymgmt, help_get_legacy_alg_type_from_keymgmt,
   58|     40|        &type);
   59|     40|    return type;
   60|     40|}
keymgmt_meth.c:help_get_legacy_alg_type_from_keymgmt:
   46|    107|{
   47|    107|    int *type = arg;
   48|       |
   49|    107|    if (*type == NID_undef)
  ------------------
  |  |   18|    107|#define NID_undef                       0
  ------------------
  |  Branch (49:9): [True: 84, False: 23]
  ------------------
   50|     84|        *type = evp_pkey_name2type(keytype);
   51|    107|}
keymgmt_meth.c:evp_keymgmt_up_ref:
   26|  20.2k|{
   27|  20.2k|    return EVP_KEYMGMT_up_ref(data);
   28|  20.2k|}
keymgmt_meth.c:evp_keymgmt_free:
   21|     40|{
   22|     40|    EVP_KEYMGMT_free(data);
   23|     40|}

EVP_blake2b512:
   51|      2|{
   52|      2|    return &blake2b_md;
   53|      2|}
EVP_blake2s256:
   66|      2|{
   67|      2|    return &blake2s_md;
   68|      2|}

EVP_md4:
   32|      2|{
   33|      2|    return &md4_md;
   34|      2|}

EVP_md5:
   32|      2|{
   33|      2|    return &md5_md;
   34|      2|}

EVP_md5_sha1:
   39|      2|{
   40|      2|    return &md5_sha1_md;
   41|      2|}

EVP_mdc2:
   33|      2|{
   34|      2|    return &mdc2_md;
   35|      2|}

EVP_ripemd160:
   33|      2|{
   34|      2|    return &ripemd160_md;
   35|      2|}

EVP_sha1:
  101|      2|{
  102|      2|    return &sha1_md;
  103|      2|}
EVP_sha224:
  116|      2|{
  117|      2|    return &sha224_md;
  118|      2|}
EVP_sha256:
  131|      2|{
  132|      2|    return &sha256_md;
  133|      2|}
EVP_sha512_224:
  146|      2|{
  147|      2|    return &sha512_224_md;
  148|      2|}
EVP_sha512_256:
  161|      2|{
  162|      2|    return &sha512_256_md;
  163|      2|}
EVP_sha384:
  176|      2|{
  177|      2|    return &sha384_md;
  178|      2|}
EVP_sha512:
  191|      2|{
  192|      2|    return &sha512_md;
  193|      2|}

EVP_whirlpool:
   33|      2|{
   34|      2|    return &whirlpool_md;
   35|      2|}

EVP_MAC_CTX_free:
   40|  1.31k|{
   41|  1.31k|    if (ctx == NULL)
  ------------------
  |  Branch (41:9): [True: 1.31k, False: 0]
  ------------------
   42|  1.31k|        return;
   43|      0|    ctx->meth->freectx(ctx->algctx);
   44|      0|    ctx->algctx = NULL;
   45|       |    /* refcnt-- */
   46|      0|    EVP_MAC_free(ctx->meth);
   47|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   48|      0|}

EVP_add_cipher:
   20|    288|{
   21|    288|    int r;
   22|       |
   23|    288|    if (c == NULL)
  ------------------
  |  Branch (23:9): [True: 0, False: 288]
  ------------------
   24|      0|        return 0;
   25|       |
   26|    288|    r = OBJ_NAME_add(OBJ_nid2sn(c->nid), OBJ_NAME_TYPE_CIPHER_METH,
  ------------------
  |  |   26|    288|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  ------------------
   27|    288|        (const char *)c);
   28|    288|    if (r == 0)
  ------------------
  |  Branch (28:9): [True: 0, False: 288]
  ------------------
   29|      0|        return 0;
   30|    288|    r = OBJ_NAME_add(OBJ_nid2ln(c->nid), OBJ_NAME_TYPE_CIPHER_METH,
  ------------------
  |  |   26|    288|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  ------------------
   31|    288|        (const char *)c);
   32|    288|    return r;
   33|    288|}
EVP_add_digest:
   36|     44|{
   37|     44|    int r;
   38|     44|    const char *name;
   39|       |
   40|     44|    name = OBJ_nid2sn(md->type);
   41|     44|    r = OBJ_NAME_add(name, OBJ_NAME_TYPE_MD_METH, (const char *)md);
  ------------------
  |  |   25|     44|#define OBJ_NAME_TYPE_MD_METH 0x01
  ------------------
   42|     44|    if (r == 0)
  ------------------
  |  Branch (42:9): [True: 0, False: 44]
  ------------------
   43|      0|        return 0;
   44|     44|    r = OBJ_NAME_add(OBJ_nid2ln(md->type), OBJ_NAME_TYPE_MD_METH,
  ------------------
  |  |   25|     44|#define OBJ_NAME_TYPE_MD_METH 0x01
  ------------------
   45|     44|        (const char *)md);
   46|     44|    if (r == 0)
  ------------------
  |  Branch (46:9): [True: 0, False: 44]
  ------------------
   47|      0|        return 0;
   48|       |
   49|     44|    if (md->pkey_type && md->type != md->pkey_type) {
  ------------------
  |  Branch (49:9): [True: 34, False: 10]
  |  Branch (49:26): [True: 32, False: 2]
  ------------------
   50|     32|        r = OBJ_NAME_add(OBJ_nid2sn(md->pkey_type),
   51|     32|            OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, name);
  ------------------
  |  |   25|     32|#define OBJ_NAME_TYPE_MD_METH 0x01
  ------------------
                          OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, name);
  ------------------
  |  |   33|     32|#define OBJ_NAME_ALIAS 0x8000
  ------------------
   52|     32|        if (r == 0)
  ------------------
  |  Branch (52:13): [True: 0, False: 32]
  ------------------
   53|      0|            return 0;
   54|     32|        r = OBJ_NAME_add(OBJ_nid2ln(md->pkey_type),
   55|     32|            OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, name);
  ------------------
  |  |   25|     32|#define OBJ_NAME_TYPE_MD_METH 0x01
  ------------------
                          OBJ_NAME_TYPE_MD_METH | OBJ_NAME_ALIAS, name);
  ------------------
  |  |   33|     32|#define OBJ_NAME_ALIAS 0x8000
  ------------------
   56|     32|    }
   57|     44|    return r;
   58|     44|}

evp_pkey_get0_RSA_int:
   41|  23.2k|{
   42|  23.2k|    if (pkey->type != EVP_PKEY_RSA && pkey->type != EVP_PKEY_RSA_PSS) {
  ------------------
  |  |   63|  23.2k|#define EVP_PKEY_RSA NID_rsaEncryption
  |  |  ------------------
  |  |  |  |  543|  46.4k|#define NID_rsaEncryption               6
  |  |  ------------------
  ------------------
                  if (pkey->type != EVP_PKEY_RSA && pkey->type != EVP_PKEY_RSA_PSS) {
  ------------------
  |  |   65|      0|#define EVP_PKEY_RSA_PSS NID_rsassaPss
  |  |  ------------------
  |  |  |  |  583|      0|#define NID_rsassaPss           912
  |  |  ------------------
  ------------------
  |  Branch (42:9): [True: 0, False: 23.2k]
  |  Branch (42:39): [True: 0, False: 0]
  ------------------
   43|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_EXPECTING_AN_RSA_KEY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   44|      0|        return NULL;
   45|      0|    }
   46|  23.2k|    return evp_pkey_get_legacy((EVP_PKEY *)pkey);
   47|  23.2k|}
EVP_PKEY_get1_RSA:
   55|  23.2k|{
   56|  23.2k|    RSA *ret = evp_pkey_get0_RSA_int(pkey);
   57|       |
   58|  23.2k|    if (ret != NULL && !RSA_up_ref(ret))
  ------------------
  |  Branch (58:9): [True: 23.2k, False: 0]
  |  Branch (58:24): [True: 0, False: 23.2k]
  ------------------
   59|      0|        ret = NULL;
   60|       |
   61|  23.2k|    return ret;
   62|  23.2k|}
evp_pkey_get0_EC_KEY_int:
   77|  8.76k|{
   78|  8.76k|    if (EVP_PKEY_get_base_id(pkey) != EVP_PKEY_EC) {
  ------------------
  |  |   73|  8.76k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|  8.76k|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
  |  Branch (78:9): [True: 0, False: 8.76k]
  ------------------
   79|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_EXPECTING_A_EC_KEY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   80|      0|        return NULL;
   81|      0|    }
   82|  8.76k|    return evp_pkey_get_legacy((EVP_PKEY *)pkey);
   83|  8.76k|}
EVP_PKEY_get1_EC_KEY:
   91|  8.76k|{
   92|  8.76k|    EC_KEY *ret = evp_pkey_get0_EC_KEY_int(pkey);
   93|       |
   94|  8.76k|    if (ret != NULL && !EC_KEY_up_ref(ret))
  ------------------
  |  Branch (94:9): [True: 8.76k, False: 0]
  |  Branch (94:24): [True: 0, False: 8.76k]
  ------------------
   95|      0|        ret = NULL;
   96|  8.76k|    return ret;
   97|  8.76k|}

EVP_PKEY_set_type:
  722|  69.6k|{
  723|  69.6k|    return pkey_set_type(pkey, NULL, type, NULL, -1, NULL);
  724|  69.6k|}
EVP_PKEY_assign:
  792|  31.9k|{
  793|  31.9k|#ifndef OPENSSL_NO_EC
  794|  31.9k|    int pktype;
  795|       |
  796|  31.9k|    pktype = EVP_PKEY_type(type);
  797|  31.9k|    if ((key != NULL) && (pktype == EVP_PKEY_EC || pktype == EVP_PKEY_SM2)) {
  ------------------
  |  |   73|  31.9k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|  63.9k|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
                  if ((key != NULL) && (pktype == EVP_PKEY_EC || pktype == EVP_PKEY_SM2)) {
  ------------------
  |  |   74|  23.2k|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1255|  23.2k|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (797:9): [True: 31.9k, False: 0]
  |  Branch (797:27): [True: 8.76k, False: 23.2k]
  |  Branch (797:52): [True: 0, False: 23.2k]
  ------------------
  798|  8.76k|        const EC_GROUP *group = EC_KEY_get0_group(key);
  799|       |
  800|  8.76k|        if (group != NULL) {
  ------------------
  |  Branch (800:13): [True: 8.76k, False: 0]
  ------------------
  801|  8.76k|            int curve = EC_GROUP_get_curve_name(group);
  802|       |
  803|       |            /*
  804|       |             * Regardless of what is requested the SM2 curve must be SM2 type,
  805|       |             * and non SM2 curves are EC type.
  806|       |             */
  807|  8.76k|            if (curve == NID_sm2 && pktype == EVP_PKEY_EC)
  ------------------
  |  | 1255|  17.5k|#define NID_sm2         1172
  ------------------
                          if (curve == NID_sm2 && pktype == EVP_PKEY_EC)
  ------------------
  |  |   73|      0|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|      0|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
  |  Branch (807:17): [True: 0, False: 8.76k]
  |  Branch (807:37): [True: 0, False: 0]
  ------------------
  808|      0|                type = EVP_PKEY_SM2;
  ------------------
  |  |   74|      0|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1255|      0|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  809|  8.76k|            else if (curve != NID_sm2 && pktype == EVP_PKEY_SM2)
  ------------------
  |  | 1255|  17.5k|#define NID_sm2         1172
  ------------------
                          else if (curve != NID_sm2 && pktype == EVP_PKEY_SM2)
  ------------------
  |  |   74|  8.76k|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1255|  8.76k|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (809:22): [True: 8.76k, False: 0]
  |  Branch (809:42): [True: 0, False: 8.76k]
  ------------------
  810|      0|                type = EVP_PKEY_EC;
  ------------------
  |  |   73|      0|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|      0|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
  811|  8.76k|        }
  812|  8.76k|    }
  813|  31.9k|#endif
  814|       |
  815|  31.9k|    if (pkey == NULL || !EVP_PKEY_set_type(pkey, type))
  ------------------
  |  Branch (815:9): [True: 0, False: 31.9k]
  |  Branch (815:25): [True: 0, False: 31.9k]
  ------------------
  816|      0|        return 0;
  817|       |
  818|  31.9k|    pkey->pkey.ptr = key;
  819|  31.9k|    detect_foreign_key(pkey);
  820|       |
  821|       |    return (key != NULL);
  822|  31.9k|}
EVP_PKEY_get_id:
 1024|  8.76k|{
 1025|  8.76k|    return pkey->type;
 1026|  8.76k|}
EVP_PKEY_get_base_id:
 1029|  8.76k|{
 1030|  8.76k|    return EVP_PKEY_type(pkey->type);
 1031|  8.76k|}
evp_pkey_name2type:
 1061|    960|{
 1062|    960|    int type;
 1063|    960|    size_t i;
 1064|       |
 1065|  9.36k|    for (i = 0; i < OSSL_NELEM(standard_name2type); i++) {
  ------------------
  |  |   14|  9.36k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1065:17): [True: 8.85k, False: 515]
  ------------------
 1066|  8.85k|        if (OPENSSL_strcasecmp(name, standard_name2type[i].ptr) == 0)
  ------------------
  |  Branch (1066:13): [True: 445, False: 8.40k]
  ------------------
 1067|    445|            return (int)standard_name2type[i].id;
 1068|  8.85k|    }
 1069|       |
 1070|    515|    if ((type = EVP_PKEY_type(OBJ_sn2nid(name))) != NID_undef)
  ------------------
  |  |   18|    515|#define NID_undef                       0
  ------------------
  |  Branch (1070:9): [True: 4, False: 511]
  ------------------
 1071|      4|        return type;
 1072|    511|    return EVP_PKEY_type(OBJ_ln2nid(name));
 1073|    515|}
EVP_PKEY_get1_encoded_public_key:
 1442|    438|{
 1443|    438|    if (pkey == NULL)
  ------------------
  |  Branch (1443:9): [True: 0, False: 438]
  ------------------
 1444|      0|        return 0;
 1445|    438|#ifndef FIPS_MODULE
 1446|    438|    if (evp_pkey_is_provided(pkey))
  ------------------
  |  |  652|    438|    ((pk)->keymgmt != NULL)
  |  |  ------------------
  |  |  |  Branch (652:5): [True: 438, False: 0]
  |  |  ------------------
  ------------------
 1447|    438|#endif
 1448|    438|    {
 1449|    438|        size_t return_size = OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|    438|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
 1450|    438|        unsigned char *buf;
 1451|       |
 1452|       |        /*
 1453|       |         * We know that this is going to fail, but it will give us a size
 1454|       |         * to allocate.
 1455|       |         */
 1456|    438|        EVP_PKEY_get_octet_string_param(pkey,
 1457|    438|            OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY,
  ------------------
  |  |  398|    438|# define OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY "encoded-pub-key"
  ------------------
 1458|    438|            NULL, 0, &return_size);
 1459|    438|        if (return_size == OSSL_PARAM_UNMODIFIED)
  ------------------
  |  |   22|    438|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
  |  Branch (1459:13): [True: 0, False: 438]
  ------------------
 1460|      0|            return 0;
 1461|       |
 1462|    438|        *ppub = NULL;
 1463|    438|        buf = OPENSSL_malloc(return_size);
  ------------------
  |  |  106|    438|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1464|    438|        if (buf == NULL)
  ------------------
  |  Branch (1464:13): [True: 0, False: 438]
  ------------------
 1465|      0|            return 0;
 1466|       |
 1467|    438|        if (!EVP_PKEY_get_octet_string_param(pkey,
  ------------------
  |  Branch (1467:13): [True: 0, False: 438]
  ------------------
 1468|    438|                OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY,
  ------------------
  |  |  398|    438|# define OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY "encoded-pub-key"
  ------------------
 1469|    438|                buf, return_size, NULL)) {
 1470|      0|            OPENSSL_free(buf);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1471|      0|            return 0;
 1472|      0|        }
 1473|    438|        *ppub = buf;
 1474|    438|        return return_size;
 1475|    438|    }
 1476|       |
 1477|      0|#ifndef FIPS_MODULE
 1478|      0|    {
 1479|      0|        int rv = evp_pkey_asn1_ctrl(pkey, ASN1_PKEY_CTRL_GET1_TLS_ENCPT, 0, ppub);
  ------------------
  |  | 1615|      0|#define ASN1_PKEY_CTRL_GET1_TLS_ENCPT 0xa
  ------------------
 1480|      0|        if (rv <= 0)
  ------------------
  |  Branch (1480:13): [True: 0, False: 0]
  ------------------
 1481|      0|            return 0;
 1482|      0|        return rv;
 1483|      0|    }
 1484|      0|#endif /* !FIPS_MODULE */
 1485|      0|}
EVP_PKEY_new:
 1490|  65.0k|{
 1491|  65.0k|    EVP_PKEY *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  65.0k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1492|       |
 1493|  65.0k|    if (ret == NULL)
  ------------------
  |  Branch (1493:9): [True: 0, False: 65.0k]
  ------------------
 1494|      0|        return NULL;
 1495|       |
 1496|  65.0k|    ret->type = EVP_PKEY_NONE;
  ------------------
  |  |   62|  65.0k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  65.0k|#define NID_undef                       0
  |  |  ------------------
  ------------------
 1497|  65.0k|    ret->save_type = EVP_PKEY_NONE;
  ------------------
  |  |   62|  65.0k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  65.0k|#define NID_undef                       0
  |  |  ------------------
  ------------------
 1498|       |
 1499|  65.0k|    if (!CRYPTO_NEW_REF(&ret->references, 1))
  ------------------
  |  Branch (1499:9): [True: 0, False: 65.0k]
  ------------------
 1500|      0|        goto err;
 1501|       |
 1502|  65.0k|    ret->lock = CRYPTO_THREAD_lock_new();
 1503|  65.0k|    if (ret->lock == NULL) {
  ------------------
  |  Branch (1503:9): [True: 0, False: 65.0k]
  ------------------
 1504|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1505|      0|        goto err;
 1506|      0|    }
 1507|       |
 1508|  65.0k|#ifndef FIPS_MODULE
 1509|  65.0k|    ret->save_parameters = 1;
 1510|  65.0k|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_EVP_PKEY, ret, &ret->ex_data)) {
  ------------------
  |  |  268|  65.0k|#define CRYPTO_EX_INDEX_EVP_PKEY 17
  ------------------
  |  Branch (1510:9): [True: 0, False: 65.0k]
  ------------------
 1511|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1512|      0|        goto err;
 1513|      0|    }
 1514|  65.0k|#endif
 1515|  65.0k|    return ret;
 1516|       |
 1517|      0|err:
 1518|      0|    CRYPTO_FREE_REF(&ret->references);
 1519|      0|    CRYPTO_THREAD_lock_free(ret->lock);
 1520|      0|    OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1521|       |    return NULL;
 1522|  65.0k|}
EVP_PKEY_set_type_by_keymgmt:
 1675|  32.8k|{
 1676|  32.8k|#ifndef FIPS_MODULE
 1677|  32.8k|#define EVP_PKEY_TYPE_STR str[0]
 1678|  32.8k|#define EVP_PKEY_TYPE_STRLEN (str[0] == NULL ? -1 : (int)strlen(str[0]))
 1679|       |    /*
 1680|       |     * Find at most two strings that have an associated EVP_PKEY_ASN1_METHOD
 1681|       |     * Ideally, only one should be found.  If two (or more) are found, the
 1682|       |     * match is ambiguous.  This should never happen, but...
 1683|       |     */
 1684|  32.8k|    const char *str[2] = { NULL, NULL };
 1685|       |
 1686|  32.8k|    if (!EVP_KEYMGMT_names_do_all(keymgmt, find_ameth, &str)
  ------------------
  |  Branch (1686:9): [True: 0, False: 32.8k]
  ------------------
 1687|  32.8k|        || str[1] != NULL) {
  ------------------
  |  Branch (1687:12): [True: 0, False: 32.8k]
  ------------------
 1688|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1689|      0|        return 0;
 1690|      0|    }
 1691|       |#else
 1692|       |#define EVP_PKEY_TYPE_STR NULL
 1693|       |#define EVP_PKEY_TYPE_STRLEN -1
 1694|       |#endif
 1695|  32.8k|    return pkey_set_type(pkey, NULL, EVP_PKEY_NONE,
  ------------------
  |  |   62|  32.8k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  32.8k|#define NID_undef                       0
  |  |  ------------------
  ------------------
 1696|  32.8k|        EVP_PKEY_TYPE_STR, EVP_PKEY_TYPE_STRLEN,
  ------------------
  |  | 1677|  32.8k|#define EVP_PKEY_TYPE_STR str[0]
  ------------------
                      EVP_PKEY_TYPE_STR, EVP_PKEY_TYPE_STRLEN,
  ------------------
  |  | 1678|  32.8k|#define EVP_PKEY_TYPE_STRLEN (str[0] == NULL ? -1 : (int)strlen(str[0]))
  |  |  ------------------
  |  |  |  Branch (1678:31): [True: 438, False: 32.4k]
  |  |  ------------------
  ------------------
 1697|  32.8k|        keymgmt);
 1698|       |
 1699|  32.8k|#undef EVP_PKEY_TYPE_STR
 1700|  32.8k|#undef EVP_PKEY_TYPE_STRLEN
 1701|  32.8k|}
EVP_PKEY_up_ref:
 1704|  37.6k|{
 1705|  37.6k|    int i;
 1706|       |
 1707|  37.6k|    if (CRYPTO_UP_REF(&pkey->references, &i) <= 0)
  ------------------
  |  Branch (1707:9): [True: 0, False: 37.6k]
  ------------------
 1708|      0|        return 0;
 1709|       |
 1710|  37.6k|    REF_PRINT_COUNT("EVP_PKEY", i, pkey);
  ------------------
  |  |  301|  37.6k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  37.6k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|  37.6k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|  37.6k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1711|  37.6k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  37.6k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 37.6k]
  |  |  ------------------
  ------------------
 1712|  37.6k|    return ((i > 1) ? 1 : 0);
  ------------------
  |  Branch (1712:13): [True: 37.6k, False: 0]
  ------------------
 1713|  37.6k|}
evp_pkey_free_legacy:
 1778|  65.9k|{
 1779|  65.9k|    const EVP_PKEY_ASN1_METHOD *ameth = x->ameth;
 1780|  65.9k|    ENGINE *tmpe = NULL;
 1781|       |
 1782|  65.9k|    if (ameth == NULL && x->legacy_cache_pkey.ptr != NULL)
  ------------------
  |  Branch (1782:9): [True: 33.7k, False: 32.1k]
  |  Branch (1782:26): [True: 0, False: 33.7k]
  ------------------
 1783|      0|        ameth = EVP_PKEY_asn1_find(&tmpe, x->type);
 1784|       |
 1785|  65.9k|    if (ameth != NULL) {
  ------------------
  |  Branch (1785:9): [True: 32.1k, False: 33.7k]
  ------------------
 1786|  32.1k|        if (x->legacy_cache_pkey.ptr != NULL) {
  ------------------
  |  Branch (1786:13): [True: 0, False: 32.1k]
  ------------------
 1787|       |            /*
 1788|       |             * We should never have both a legacy origin key, and a key in the
 1789|       |             * legacy cache.
 1790|       |             */
 1791|      0|            assert(x->pkey.ptr == NULL);
  ------------------
  |  Branch (1791:13): [True: 0, False: 0]
  |  Branch (1791:13): [True: 0, False: 0]
  ------------------
 1792|       |            /*
 1793|       |             * For the purposes of freeing we make the legacy cache look like
 1794|       |             * a legacy origin key.
 1795|       |             */
 1796|      0|            x->pkey = x->legacy_cache_pkey;
 1797|      0|            x->legacy_cache_pkey.ptr = NULL;
 1798|      0|        }
 1799|  32.1k|        if (ameth->pkey_free != NULL)
  ------------------
  |  Branch (1799:13): [True: 32.1k, False: 0]
  ------------------
 1800|  32.1k|            ameth->pkey_free(x);
 1801|  32.1k|        x->pkey.ptr = NULL;
 1802|  32.1k|    }
 1803|  65.9k|#ifndef OPENSSL_NO_ENGINE
 1804|  65.9k|    ENGINE_finish(tmpe);
 1805|  65.9k|    ENGINE_finish(x->engine);
 1806|  65.9k|    x->engine = NULL;
 1807|  65.9k|    ENGINE_finish(x->pmeth_engine);
 1808|       |    x->pmeth_engine = NULL;
 1809|  65.9k|#endif
 1810|  65.9k|}
EVP_PKEY_free:
 1831|   181k|{
 1832|   181k|    int i;
 1833|       |
 1834|   181k|    if (x == NULL)
  ------------------
  |  Branch (1834:9): [True: 78.4k, False: 102k]
  ------------------
 1835|  78.4k|        return;
 1836|       |
 1837|   102k|    CRYPTO_DOWN_REF(&x->references, &i);
 1838|   102k|    REF_PRINT_COUNT("EVP_PKEY", i, x);
  ------------------
  |  |  301|   102k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|   102k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|   102k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|   102k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1839|   102k|    if (i > 0)
  ------------------
  |  Branch (1839:9): [True: 37.6k, False: 65.0k]
  ------------------
 1840|  37.6k|        return;
 1841|  65.0k|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|  65.0k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 65.0k]
  |  |  ------------------
  ------------------
 1842|  65.0k|    evp_pkey_free_it(x);
 1843|  65.0k|#ifndef FIPS_MODULE
 1844|  65.0k|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_EVP_PKEY, x, &x->ex_data);
  ------------------
  |  |  268|  65.0k|#define CRYPTO_EX_INDEX_EVP_PKEY 17
  ------------------
 1845|  65.0k|#endif
 1846|  65.0k|    CRYPTO_THREAD_lock_free(x->lock);
 1847|  65.0k|    CRYPTO_FREE_REF(&x->references);
 1848|  65.0k|#ifndef FIPS_MODULE
 1849|  65.0k|    sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free);
  ------------------
  |  |  287|  65.0k|#define sk_X509_ATTRIBUTE_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_ATTRIBUTE_sk_type(sk), ossl_check_X509_ATTRIBUTE_freefunc_type(freefunc))
  ------------------
 1850|  65.0k|#endif
 1851|  65.0k|    OPENSSL_free(x);
  ------------------
  |  |  131|  65.0k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1852|  65.0k|}
evp_pkey_get_legacy:
 2155|  31.9k|{
 2156|  31.9k|    EVP_PKEY *tmp_copy = NULL;
 2157|  31.9k|    void *ret = NULL;
 2158|       |
 2159|  31.9k|    if (!ossl_assert(pk != NULL))
  ------------------
  |  |   52|  31.9k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  31.9k|    __FILE__, __LINE__)
  ------------------
  |  Branch (2159:9): [True: 0, False: 31.9k]
  ------------------
 2160|      0|        return NULL;
 2161|       |
 2162|       |    /*
 2163|       |     * If this isn't an assigned provider side key, we just use any existing
 2164|       |     * origin legacy key.
 2165|       |     */
 2166|  31.9k|    if (!evp_pkey_is_assigned(pk))
  ------------------
  |  |  644|  31.9k|    ((pk)->pkey.ptr != NULL || (pk)->keydata != NULL)
  |  |  ------------------
  |  |  |  Branch (644:6): [True: 31.9k, False: 0]
  |  |  |  Branch (644:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2167|      0|        return NULL;
 2168|  31.9k|    if (!evp_pkey_is_provided(pk))
  ------------------
  |  |  652|  31.9k|    ((pk)->keymgmt != NULL)
  ------------------
  |  Branch (2168:9): [True: 31.9k, False: 0]
  ------------------
 2169|  31.9k|        return pk->pkey.ptr;
 2170|       |
 2171|      0|    if (!CRYPTO_THREAD_read_lock(pk->lock))
  ------------------
  |  Branch (2171:9): [True: 0, False: 0]
  ------------------
 2172|      0|        return NULL;
 2173|       |
 2174|      0|    ret = pk->legacy_cache_pkey.ptr;
 2175|       |
 2176|      0|    if (!CRYPTO_THREAD_unlock(pk->lock))
  ------------------
  |  Branch (2176:9): [True: 0, False: 0]
  ------------------
 2177|      0|        return NULL;
 2178|       |
 2179|      0|    if (ret != NULL)
  ------------------
  |  Branch (2179:9): [True: 0, False: 0]
  ------------------
 2180|      0|        return ret;
 2181|       |
 2182|      0|    if (!evp_pkey_copy_downgraded(&tmp_copy, pk))
  ------------------
  |  Branch (2182:9): [True: 0, False: 0]
  ------------------
 2183|      0|        goto err;
 2184|       |
 2185|      0|    if (!CRYPTO_THREAD_write_lock(pk->lock))
  ------------------
  |  Branch (2185:9): [True: 0, False: 0]
  ------------------
 2186|      0|        goto err;
 2187|       |
 2188|       |    /* Check again in case some other thread has updated it in the meantime */
 2189|      0|    ret = pk->legacy_cache_pkey.ptr;
 2190|      0|    if (ret == NULL) {
  ------------------
  |  Branch (2190:9): [True: 0, False: 0]
  ------------------
 2191|       |        /* Steal the legacy key reference from the temporary copy */
 2192|      0|        ret = pk->legacy_cache_pkey.ptr = tmp_copy->pkey.ptr;
 2193|      0|        tmp_copy->pkey.ptr = NULL;
 2194|      0|    }
 2195|       |
 2196|      0|    if (!CRYPTO_THREAD_unlock(pk->lock)) {
  ------------------
  |  Branch (2196:9): [True: 0, False: 0]
  ------------------
 2197|      0|        ret = NULL;
 2198|      0|        goto err;
 2199|      0|    }
 2200|       |
 2201|      0|err:
 2202|      0|    EVP_PKEY_free(tmp_copy);
 2203|       |
 2204|      0|    return ret;
 2205|      0|}
EVP_PKEY_get_octet_string_param:
 2260|    876|{
 2261|    876|    OSSL_PARAM params[2];
 2262|    876|    int ret1 = 0, ret2 = 0;
 2263|       |
 2264|    876|    if (key_name == NULL)
  ------------------
  |  Branch (2264:9): [True: 0, False: 876]
  ------------------
 2265|      0|        return 0;
 2266|       |
 2267|    876|    params[0] = OSSL_PARAM_construct_octet_string(key_name, buf, max_buf_sz);
 2268|    876|    params[1] = OSSL_PARAM_construct_end();
 2269|    876|    if ((ret1 = EVP_PKEY_get_params(pkey, params)))
  ------------------
  |  Branch (2269:9): [True: 876, False: 0]
  ------------------
 2270|    876|        ret2 = OSSL_PARAM_modified(params);
 2271|    876|    if (ret2 && out_len != NULL)
  ------------------
  |  Branch (2271:9): [True: 876, False: 0]
  |  Branch (2271:17): [True: 438, False: 438]
  ------------------
 2272|    438|        *out_len = params[0].return_size;
 2273|    876|    return ret1 && ret2;
  ------------------
  |  Branch (2273:12): [True: 876, False: 0]
  |  Branch (2273:20): [True: 876, False: 0]
  ------------------
 2274|    876|}
EVP_PKEY_get_params:
 2446|    876|{
 2447|    876|    if (pkey != NULL) {
  ------------------
  |  Branch (2447:9): [True: 876, False: 0]
  ------------------
 2448|    876|        if (evp_pkey_is_provided(pkey))
  ------------------
  |  |  652|    876|    ((pk)->keymgmt != NULL)
  |  |  ------------------
  |  |  |  Branch (652:5): [True: 876, False: 0]
  |  |  ------------------
  ------------------
 2449|    876|            return evp_keymgmt_get_params(pkey->keymgmt, pkey->keydata, params) > 0;
 2450|      0|#ifndef FIPS_MODULE
 2451|      0|        else if (evp_pkey_is_legacy(pkey))
  ------------------
  |  |  650|      0|    ((pk)->type != EVP_PKEY_NONE && (pk)->keymgmt == NULL)
  |  |  ------------------
  |  |  |  |   62|      0|#define EVP_PKEY_NONE NID_undef
  |  |  |  |  ------------------
  |  |  |  |  |  |   18|      0|#define NID_undef                       0
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (650:6): [True: 0, False: 0]
  |  |  |  Branch (650:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2452|      0|            return evp_pkey_get_params_to_ctrl(pkey, params) > 0;
 2453|    876|#endif
 2454|    876|    }
 2455|    876|    ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_KEY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2456|      0|    return 0;
 2457|    876|}
p_lib.c:detect_foreign_key:
  758|  31.9k|{
  759|  31.9k|    switch (pkey->type) {
  760|  23.2k|    case EVP_PKEY_RSA:
  ------------------
  |  |   63|  23.2k|#define EVP_PKEY_RSA NID_rsaEncryption
  |  |  ------------------
  |  |  |  |  543|  23.2k|#define NID_rsaEncryption               6
  |  |  ------------------
  ------------------
  |  Branch (760:5): [True: 23.2k, False: 8.76k]
  ------------------
  761|  23.2k|    case EVP_PKEY_RSA_PSS:
  ------------------
  |  |   65|  23.2k|#define EVP_PKEY_RSA_PSS NID_rsassaPss
  |  |  ------------------
  |  |  |  |  583|  23.2k|#define NID_rsassaPss           912
  |  |  ------------------
  ------------------
  |  Branch (761:5): [True: 0, False: 31.9k]
  ------------------
  762|  23.2k|        pkey->foreign = pkey->pkey.rsa != NULL
  ------------------
  |  Branch (762:25): [True: 23.2k, False: 0]
  ------------------
  763|  23.2k|            && ossl_rsa_is_foreign(pkey->pkey.rsa);
  ------------------
  |  Branch (763:16): [True: 0, False: 23.2k]
  ------------------
  764|  23.2k|        break;
  765|      0|#ifndef OPENSSL_NO_EC
  766|      0|    case EVP_PKEY_SM2:
  ------------------
  |  |   74|      0|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1255|      0|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (766:5): [True: 0, False: 31.9k]
  ------------------
  767|      0|        break;
  768|  8.76k|    case EVP_PKEY_EC:
  ------------------
  |  |   73|  8.76k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|  8.76k|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
  |  Branch (768:5): [True: 8.76k, False: 23.2k]
  ------------------
  769|  8.76k|        pkey->foreign = pkey->pkey.ec != NULL
  ------------------
  |  Branch (769:25): [True: 8.76k, False: 0]
  ------------------
  770|  8.76k|            && ossl_ec_key_is_foreign(pkey->pkey.ec);
  ------------------
  |  Branch (770:16): [True: 0, False: 8.76k]
  ------------------
  771|  8.76k|        break;
  772|      0|#endif
  773|      0|#ifndef OPENSSL_NO_DSA
  774|      0|    case EVP_PKEY_DSA:
  ------------------
  |  |   66|      0|#define EVP_PKEY_DSA NID_dsa
  |  |  ------------------
  |  |  |  |  136|      0|#define NID_dsa         116
  |  |  ------------------
  ------------------
  |  Branch (774:5): [True: 0, False: 31.9k]
  ------------------
  775|      0|        pkey->foreign = pkey->pkey.dsa != NULL
  ------------------
  |  Branch (775:25): [True: 0, False: 0]
  ------------------
  776|      0|            && ossl_dsa_is_foreign(pkey->pkey.dsa);
  ------------------
  |  Branch (776:16): [True: 0, False: 0]
  ------------------
  777|      0|        break;
  778|      0|#endif
  779|      0|#ifndef OPENSSL_NO_DH
  780|      0|    case EVP_PKEY_DH:
  ------------------
  |  |   71|      0|#define EVP_PKEY_DH NID_dhKeyAgreement
  |  |  ------------------
  |  |  |  |  621|      0|#define NID_dhKeyAgreement              28
  |  |  ------------------
  ------------------
  |  Branch (780:5): [True: 0, False: 31.9k]
  ------------------
  781|      0|        pkey->foreign = pkey->pkey.dh != NULL
  ------------------
  |  Branch (781:25): [True: 0, False: 0]
  ------------------
  782|      0|            && ossl_dh_is_foreign(pkey->pkey.dh);
  ------------------
  |  Branch (782:16): [True: 0, False: 0]
  ------------------
  783|      0|        break;
  784|      0|#endif
  785|      0|    default:
  ------------------
  |  Branch (785:5): [True: 0, False: 31.9k]
  ------------------
  786|      0|        pkey->foreign = 0;
  787|      0|        break;
  788|  31.9k|    }
  789|  31.9k|}
p_lib.c:pkey_set_type:
 1539|   223k|{
 1540|   223k|#ifndef FIPS_MODULE
 1541|   223k|    const EVP_PKEY_ASN1_METHOD *ameth = NULL;
 1542|   223k|    ENGINE **eptr = (e == NULL) ? &e : NULL;
  ------------------
  |  Branch (1542:21): [True: 223k, False: 0]
  ------------------
 1543|   223k|#endif
 1544|       |
 1545|       |    /*
 1546|       |     * The setups can't set both legacy and provider side methods.
 1547|       |     * It is forbidden
 1548|       |     */
 1549|   223k|    if (!ossl_assert(type == EVP_PKEY_NONE || keymgmt == NULL)
  ------------------
  |  |   52|   447k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 153k, False: 69.6k]
  |  |  |  Branch (52:41): [True: 69.6k, False: 0]
  |  |  ------------------
  |  |   53|   447k|    __FILE__, __LINE__)
  ------------------
  |  Branch (1549:9): [True: 0, False: 223k]
  ------------------
 1550|   223k|        || !ossl_assert(e == NULL || keymgmt == NULL)) {
  ------------------
  |  |   52|   223k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 223k, False: 0]
  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  ------------------
  |  |   53|   223k|    __FILE__, __LINE__)
  ------------------
  |  Branch (1550:12): [True: 0, False: 223k]
  ------------------
 1551|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1552|      0|        return 0;
 1553|      0|    }
 1554|       |
 1555|   223k|    if (pkey != NULL) {
  ------------------
  |  Branch (1555:9): [True: 102k, False: 121k]
  ------------------
 1556|   102k|        int free_it = 0;
 1557|       |
 1558|   102k|#ifndef FIPS_MODULE
 1559|   102k|        free_it = free_it || pkey->pkey.ptr != NULL;
  ------------------
  |  Branch (1559:19): [True: 0, False: 102k]
  |  Branch (1559:30): [True: 0, False: 102k]
  ------------------
 1560|   102k|#endif
 1561|   102k|        free_it = free_it || pkey->keydata != NULL;
  ------------------
  |  Branch (1561:19): [True: 0, False: 102k]
  |  Branch (1561:30): [True: 0, False: 102k]
  ------------------
 1562|   102k|        if (free_it)
  ------------------
  |  Branch (1562:13): [True: 0, False: 102k]
  ------------------
 1563|      0|            evp_pkey_free_it(pkey);
 1564|   102k|#ifndef FIPS_MODULE
 1565|       |        /*
 1566|       |         * If key type matches and a method exists then this lookup has
 1567|       |         * succeeded once so just indicate success.
 1568|       |         */
 1569|   102k|        if (pkey->type != EVP_PKEY_NONE
  ------------------
  |  |   62|   102k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|   205k|#define NID_undef                       0
  |  |  ------------------
  ------------------
  |  Branch (1569:13): [True: 37.4k, False: 65.0k]
  ------------------
 1570|  37.4k|            && type == pkey->save_type
  ------------------
  |  Branch (1570:16): [True: 36.1k, False: 1.32k]
  ------------------
 1571|  36.1k|            && pkey->ameth != NULL)
  ------------------
  |  Branch (1571:16): [True: 36.1k, False: 0]
  ------------------
 1572|  36.1k|            return 1;
 1573|  66.3k|#ifndef OPENSSL_NO_ENGINE
 1574|       |        /* If we have ENGINEs release them */
 1575|  66.3k|        ENGINE_finish(pkey->engine);
 1576|  66.3k|        pkey->engine = NULL;
 1577|  66.3k|        ENGINE_finish(pkey->pmeth_engine);
 1578|  66.3k|        pkey->pmeth_engine = NULL;
 1579|  66.3k|#endif
 1580|  66.3k|#endif
 1581|  66.3k|    }
 1582|   187k|#ifndef FIPS_MODULE
 1583|   187k|    if (str != NULL)
  ------------------
  |  Branch (1583:9): [True: 153k, False: 33.9k]
  ------------------
 1584|   153k|        ameth = EVP_PKEY_asn1_find_str(eptr, str, len);
 1585|  33.9k|    else if (type != EVP_PKEY_NONE)
  ------------------
  |  |   62|  33.9k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  33.9k|#define NID_undef                       0
  |  |  ------------------
  ------------------
  |  Branch (1585:14): [True: 33.5k, False: 438]
  ------------------
 1586|  33.5k|        ameth = EVP_PKEY_asn1_find(eptr, type);
 1587|   187k|#ifndef OPENSSL_NO_ENGINE
 1588|   187k|    if (pkey == NULL && eptr != NULL)
  ------------------
  |  Branch (1588:9): [True: 121k, False: 66.3k]
  |  Branch (1588:25): [True: 121k, False: 0]
  ------------------
 1589|   121k|        ENGINE_finish(e);
 1590|   187k|#endif
 1591|   187k|#endif
 1592|       |
 1593|   187k|    {
 1594|   187k|        int check = 1;
 1595|       |
 1596|   187k|#ifndef FIPS_MODULE
 1597|   187k|        check = check && ameth == NULL;
  ------------------
  |  Branch (1597:17): [True: 187k, False: 0]
  |  Branch (1597:26): [True: 89.1k, False: 98.3k]
  ------------------
 1598|   187k|#endif
 1599|   187k|        check = check && keymgmt == NULL;
  ------------------
  |  Branch (1599:17): [True: 89.1k, False: 98.3k]
  |  Branch (1599:26): [True: 88.6k, False: 438]
  ------------------
 1600|   187k|        if (check) {
  ------------------
  |  Branch (1600:13): [True: 88.6k, False: 98.7k]
  ------------------
 1601|  88.6k|            ERR_raise(ERR_LIB_EVP, EVP_R_UNSUPPORTED_ALGORITHM);
  ------------------
  |  |  404|  88.6k|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|  88.6k|    (ERR_new(),                                                  \
  |  |  |  |  407|  88.6k|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|  88.6k|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|  88.6k|        ERR_set_error)
  |  |  ------------------
  ------------------
 1602|  88.6k|            return 0;
 1603|  88.6k|        }
 1604|   187k|    }
 1605|  98.7k|    if (pkey != NULL) {
  ------------------
  |  Branch (1605:9): [True: 66.3k, False: 32.4k]
  ------------------
 1606|  66.3k|        if (keymgmt != NULL && !EVP_KEYMGMT_up_ref(keymgmt)) {
  ------------------
  |  Branch (1606:13): [True: 32.8k, False: 33.5k]
  |  Branch (1606:32): [True: 0, False: 32.8k]
  ------------------
 1607|      0|            ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1608|      0|            return 0;
 1609|      0|        }
 1610|       |
 1611|  66.3k|        pkey->keymgmt = keymgmt;
 1612|       |
 1613|  66.3k|        pkey->save_type = type;
 1614|  66.3k|        pkey->type = type;
 1615|       |
 1616|  66.3k|#ifndef FIPS_MODULE
 1617|       |        /*
 1618|       |         * If the internal "origin" key is provider side, don't save |ameth|.
 1619|       |         * The main reason is that |ameth| is one factor to detect that the
 1620|       |         * internal "origin" key is a legacy one.
 1621|       |         */
 1622|  66.3k|        if (keymgmt == NULL)
  ------------------
  |  Branch (1622:13): [True: 33.5k, False: 32.8k]
  ------------------
 1623|  33.5k|            pkey->ameth = ameth;
 1624|       |
 1625|       |        /*
 1626|       |         * The EVP_PKEY_ASN1_METHOD |pkey_id| retains its legacy key purpose
 1627|       |         * for any key type that has a legacy implementation, regardless of
 1628|       |         * if the internal key is a legacy or a provider side one.  When
 1629|       |         * there is no legacy implementation for the key, the type becomes
 1630|       |         * EVP_PKEY_KEYMGMT, which indicates that one should be cautious
 1631|       |         * with functions that expect legacy internal keys.
 1632|       |         */
 1633|  66.3k|        if (ameth != NULL) {
  ------------------
  |  Branch (1633:13): [True: 65.9k, False: 438]
  ------------------
 1634|  65.9k|            if (type == EVP_PKEY_NONE)
  ------------------
  |  |   62|  65.9k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  65.9k|#define NID_undef                       0
  |  |  ------------------
  ------------------
  |  Branch (1634:17): [True: 32.4k, False: 33.5k]
  ------------------
 1635|  32.4k|                pkey->type = ameth->pkey_id;
 1636|  65.9k|        } else {
 1637|    438|            pkey->type = EVP_PKEY_KEYMGMT;
  ------------------
  |  |  103|    438|#define EVP_PKEY_KEYMGMT -1
  ------------------
 1638|    438|        }
 1639|  66.3k|#ifndef OPENSSL_NO_ENGINE
 1640|  66.3k|        if (eptr == NULL && e != NULL && !ENGINE_init(e)) {
  ------------------
  |  Branch (1640:13): [True: 0, False: 66.3k]
  |  Branch (1640:29): [True: 0, False: 0]
  |  Branch (1640:42): [True: 0, False: 0]
  ------------------
 1641|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1642|      0|            return 0;
 1643|      0|        }
 1644|  66.3k|#endif
 1645|  66.3k|        pkey->engine = e;
 1646|  66.3k|#endif
 1647|  66.3k|    }
 1648|  98.7k|    return 1;
 1649|  98.7k|}
p_lib.c:find_ameth:
 1653|   121k|{
 1654|   121k|    const char **str = data;
 1655|       |
 1656|       |    /*
 1657|       |     * The error messages from pkey_set_type() are uninteresting here,
 1658|       |     * and misleading.
 1659|       |     */
 1660|   121k|    ERR_set_mark();
 1661|       |
 1662|   121k|    if (pkey_set_type(NULL, NULL, EVP_PKEY_NONE, name, (int)strlen(name),
  ------------------
  |  |   62|   121k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|   121k|#define NID_undef                       0
  |  |  ------------------
  ------------------
  |  Branch (1662:9): [True: 32.4k, False: 88.6k]
  ------------------
 1663|   121k|            NULL)) {
 1664|  32.4k|        if (str[0] == NULL)
  ------------------
  |  Branch (1664:13): [True: 32.4k, False: 0]
  ------------------
 1665|  32.4k|            str[0] = name;
 1666|      0|        else if (str[1] == NULL)
  ------------------
  |  Branch (1666:18): [True: 0, False: 0]
  ------------------
 1667|      0|            str[1] = name;
 1668|  32.4k|    }
 1669|       |
 1670|   121k|    ERR_pop_to_mark();
 1671|   121k|}
p_lib.c:evp_pkey_free_it:
 1814|  65.0k|{
 1815|       |    /* internal function; x is never NULL */
 1816|  65.0k|    evp_keymgmt_util_clear_operation_cache(x);
 1817|  65.0k|#ifndef FIPS_MODULE
 1818|  65.0k|    evp_pkey_free_legacy(x);
 1819|  65.0k|#endif
 1820|       |
 1821|  65.0k|    if (x->keymgmt != NULL) {
  ------------------
  |  Branch (1821:9): [True: 32.8k, False: 32.1k]
  ------------------
 1822|  32.8k|        evp_keymgmt_freedata(x->keymgmt, x->keydata);
 1823|  32.8k|        EVP_KEYMGMT_free(x->keymgmt);
 1824|  32.8k|        x->keymgmt = NULL;
 1825|  32.8k|        x->keydata = NULL;
 1826|  32.8k|    }
 1827|  65.0k|    x->type = EVP_PKEY_NONE;
  ------------------
  |  |   62|  65.0k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  65.0k|#define NID_undef                       0
  |  |  ------------------
  ------------------
 1828|  65.0k|}

EVP_PKEY_keygen_init:
   98|    876|{
   99|    876|    return gen_init(ctx, EVP_PKEY_OP_KEYGEN);
  ------------------
  |  | 1763|    876|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
  100|    876|}
EVP_PKEY_generate:
  127|    876|{
  128|    876|    int ret = 0;
  129|    876|    EVP_PKEY *allocated_pkey = NULL;
  130|       |    /* Legacy compatible keygen callback info, only used with provider impls */
  131|    876|    int gentmp[2];
  132|       |
  133|    876|    if (ppkey == NULL)
  ------------------
  |  Branch (133:9): [True: 0, False: 876]
  ------------------
  134|      0|        return -1;
  135|       |
  136|    876|    if (ctx == NULL)
  ------------------
  |  Branch (136:9): [True: 0, False: 876]
  ------------------
  137|      0|        goto not_supported;
  138|       |
  139|    876|    if ((ctx->operation & EVP_PKEY_OP_TYPE_GEN) == 0)
  ------------------
  |  | 1799|    876|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  ------------------
  |  |  |  | 1762|    876|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  ------------------
  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  ------------------
  |  |  |  | 1763|    876|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  ------------------
  ------------------
  |  Branch (139:9): [True: 0, False: 876]
  ------------------
  140|      0|        goto not_initialized;
  141|       |
  142|    876|    if (*ppkey == NULL)
  ------------------
  |  Branch (142:9): [True: 876, False: 0]
  ------------------
  143|    876|        *ppkey = allocated_pkey = EVP_PKEY_new();
  144|       |
  145|    876|    if (*ppkey == NULL) {
  ------------------
  |  Branch (145:9): [True: 0, False: 876]
  ------------------
  146|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  147|      0|        return -1;
  148|      0|    }
  149|       |
  150|    876|    if (ctx->op.keymgmt.genctx == NULL)
  ------------------
  |  Branch (150:9): [True: 0, False: 876]
  ------------------
  151|      0|        goto legacy;
  152|       |
  153|       |    /*
  154|       |     * Assigning gentmp to ctx->keygen_info is something our legacy
  155|       |     * implementations do.  Because the provider implementations aren't
  156|       |     * allowed to reach into our EVP_PKEY_CTX, we need to provide similar
  157|       |     * space for backward compatibility.  It's ok that we attach a local
  158|       |     * variable, as it should only be useful in the calls down from here.
  159|       |     * This is cleared as soon as it isn't useful any more, i.e. directly
  160|       |     * after the evp_keymgmt_util_gen() call.
  161|       |     */
  162|    876|    ctx->keygen_info = gentmp;
  163|    876|    ctx->keygen_info_count = 2;
  164|       |
  165|    876|    ret = 1;
  166|    876|    if (ctx->pkey != NULL) {
  ------------------
  |  Branch (166:9): [True: 0, False: 876]
  ------------------
  167|      0|        EVP_KEYMGMT *tmp_keymgmt = ctx->keymgmt;
  168|      0|        void *keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx,
  169|      0|            &tmp_keymgmt, ctx->propquery);
  170|       |
  171|      0|        if (tmp_keymgmt == NULL)
  ------------------
  |  Branch (171:13): [True: 0, False: 0]
  ------------------
  172|      0|            goto not_supported;
  173|       |        /*
  174|       |         * It's ok if keydata is NULL here.  The backend is expected to deal
  175|       |         * with that as it sees fit.
  176|       |         */
  177|      0|        ret = evp_keymgmt_gen_set_template(ctx->keymgmt,
  178|      0|            ctx->op.keymgmt.genctx, keydata);
  179|      0|    }
  180|       |
  181|       |    /*
  182|       |     * the returned value from evp_keymgmt_util_gen() is cached in *ppkey,
  183|       |     * so we do not need to save it, just check it.
  184|       |     */
  185|    876|    ret = ret
  ------------------
  |  Branch (185:11): [True: 876, False: 0]
  ------------------
  186|    876|        && (evp_keymgmt_util_gen(*ppkey, ctx->keymgmt, ctx->op.keymgmt.genctx,
  ------------------
  |  Branch (186:12): [True: 876, False: 0]
  ------------------
  187|    876|                ossl_callback_to_pkey_gencb, ctx)
  188|    876|            != NULL);
  189|       |
  190|    876|    ctx->keygen_info = NULL;
  191|       |
  192|    876|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_DEPRECATED_3_6)
  193|       |    /* In case |*ppkey| was originally a legacy key */
  194|    876|    if (ret)
  ------------------
  |  Branch (194:9): [True: 876, False: 0]
  ------------------
  195|    876|        evp_pkey_free_legacy(*ppkey);
  196|    876|#endif
  197|       |
  198|       |    /*
  199|       |     * Because we still have legacy keys
  200|       |     */
  201|    876|    (*ppkey)->type = ctx->legacy_keytype;
  202|       |
  203|    876|    goto end;
  204|       |
  205|      0|legacy:
  206|       |#ifdef FIPS_MODULE
  207|       |    goto not_supported;
  208|       |#else
  209|       |    /*
  210|       |     * If we get here then we're using legacy paramgen/keygen. In that case
  211|       |     * the pkey in ctx (if there is one) had better not be provided (because the
  212|       |     * legacy methods may not know how to handle it). However we can only get
  213|       |     * here if ctx->op.keymgmt.genctx == NULL, but that should never be the case
  214|       |     * if ctx->pkey is provided because we don't allow this when we initialise
  215|       |     * the ctx.
  216|       |     */
  217|      0|    if (ctx->pkey != NULL && !ossl_assert(!evp_pkey_is_provided(ctx->pkey)))
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (217:9): [True: 0, False: 0]
  |  Branch (217:30): [True: 0, False: 0]
  ------------------
  218|      0|        goto not_accessible;
  219|       |
  220|      0|    switch (ctx->operation) {
  221|      0|    case EVP_PKEY_OP_PARAMGEN:
  ------------------
  |  | 1762|      0|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  ------------------
  |  Branch (221:5): [True: 0, False: 0]
  ------------------
  222|      0|        ret = ctx->pmeth->paramgen(ctx, *ppkey);
  223|      0|        break;
  224|      0|    case EVP_PKEY_OP_KEYGEN:
  ------------------
  |  | 1763|      0|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
  |  Branch (224:5): [True: 0, False: 0]
  ------------------
  225|      0|        ret = ctx->pmeth->keygen(ctx, *ppkey);
  226|      0|        break;
  227|      0|    default:
  ------------------
  |  Branch (227:5): [True: 0, False: 0]
  ------------------
  228|      0|        goto not_supported;
  229|      0|    }
  230|      0|#endif
  231|       |
  232|    876|end:
  233|    876|    if (ret <= 0) {
  ------------------
  |  Branch (233:9): [True: 0, False: 876]
  ------------------
  234|      0|        if (allocated_pkey != NULL)
  ------------------
  |  Branch (234:13): [True: 0, False: 0]
  ------------------
  235|      0|            *ppkey = NULL;
  236|      0|        EVP_PKEY_free(allocated_pkey);
  237|      0|    }
  238|    876|    return ret;
  239|       |
  240|      0|not_supported:
  241|      0|    ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  242|      0|    ret = -2;
  243|      0|    goto end;
  244|      0|not_initialized:
  245|      0|    ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  246|      0|    ret = -1;
  247|      0|    goto end;
  248|      0|#ifndef FIPS_MODULE
  249|      0|not_accessible:
  250|       |    ERR_raise(ERR_LIB_EVP, EVP_R_INACCESSIBLE_DOMAIN_PARAMETERS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  251|      0|    ret = -1;
  252|      0|    goto end;
  253|      0|#endif
  254|      0|}
EVP_PKEY_keygen:
  266|    438|{
  267|    438|    if (ctx->operation != EVP_PKEY_OP_KEYGEN) {
  ------------------
  |  | 1763|    438|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
  |  Branch (267:9): [True: 0, False: 438]
  ------------------
  268|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  269|      0|        return -1;
  270|      0|    }
  271|    438|    return EVP_PKEY_generate(ctx, ppkey);
  272|    438|}
EVP_PKEY_export:
  437|    438|{
  438|    438|    if (pkey == NULL) {
  ------------------
  |  Branch (438:9): [True: 0, False: 438]
  ------------------
  439|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  440|      0|        return 0;
  441|      0|    }
  442|    438|#ifndef FIPS_MODULE
  443|    438|    if (evp_pkey_is_legacy(pkey)) {
  ------------------
  |  |  650|    438|    ((pk)->type != EVP_PKEY_NONE && (pk)->keymgmt == NULL)
  |  |  ------------------
  |  |  |  |   62|    438|#define EVP_PKEY_NONE NID_undef
  |  |  |  |  ------------------
  |  |  |  |  |  |   18|    876|#define NID_undef                       0
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (650:6): [True: 438, False: 0]
  |  |  |  Branch (650:37): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  444|      0|        struct fake_import_data_st data;
  445|       |
  446|      0|        data.export_cb = export_cb;
  447|      0|        data.export_cbarg = export_cbarg;
  448|       |
  449|       |        /*
  450|       |         * We don't need to care about libctx or propq here, as we're only
  451|       |         * interested in the resulting OSSL_PARAM array.
  452|       |         */
  453|      0|        return pkey->ameth->export_to(pkey, &data, pkey_fake_import,
  454|      0|            NULL, NULL);
  455|      0|    }
  456|    438|#endif
  457|    438|    return evp_keymgmt_util_export(pkey, selection, export_cb, export_cbarg);
  458|    438|}
pmeth_gn.c:gen_init:
   26|    876|{
   27|    876|    int ret = 0;
   28|       |
   29|    876|    if (ctx == NULL)
  ------------------
  |  Branch (29:9): [True: 0, False: 876]
  ------------------
   30|      0|        goto not_supported;
   31|       |
   32|    876|    evp_pkey_ctx_free_old_ops(ctx);
   33|    876|    ctx->operation = operation;
   34|       |
   35|    876|    if (ctx->keymgmt == NULL || ctx->keymgmt->gen_init == NULL)
  ------------------
  |  Branch (35:9): [True: 0, False: 876]
  |  Branch (35:33): [True: 0, False: 876]
  ------------------
   36|      0|        goto legacy;
   37|       |
   38|    876|    switch (operation) {
  ------------------
  |  Branch (38:13): [True: 876, False: 0]
  ------------------
   39|      0|    case EVP_PKEY_OP_PARAMGEN:
  ------------------
  |  | 1762|      0|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  ------------------
  |  Branch (39:5): [True: 0, False: 876]
  ------------------
   40|      0|        ctx->op.keymgmt.genctx = evp_keymgmt_gen_init(ctx->keymgmt,
   41|      0|            OSSL_KEYMGMT_SELECT_ALL_PARAMETERS, NULL);
  ------------------
  |  |  647|      0|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  ------------------
  |  |  |  |  642|      0|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  ------------------
  |  |  648|      0|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  ------------------
  |  |  |  |  643|      0|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  ------------------
  ------------------
   42|      0|        break;
   43|    876|    case EVP_PKEY_OP_KEYGEN:
  ------------------
  |  | 1763|    876|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
  |  Branch (43:5): [True: 876, False: 0]
  ------------------
   44|    876|        ctx->op.keymgmt.genctx = evp_keymgmt_gen_init(ctx->keymgmt, OSSL_KEYMGMT_SELECT_KEYPAIR,
  ------------------
  |  |  650|    876|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    876|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    876|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
   45|    876|            NULL);
   46|    876|        break;
   47|    876|    }
   48|       |
   49|    876|    if (ctx->op.keymgmt.genctx == NULL)
  ------------------
  |  Branch (49:9): [True: 0, False: 876]
  ------------------
   50|    876|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   51|    876|    else
   52|    876|        ret = 1;
   53|    876|    goto end;
   54|       |
   55|      0|legacy:
   56|       |#ifdef FIPS_MODULE
   57|       |    goto not_supported;
   58|       |#else
   59|      0|    if (ctx->pmeth == NULL
  ------------------
  |  Branch (59:9): [True: 0, False: 0]
  ------------------
   60|      0|        || (operation == EVP_PKEY_OP_PARAMGEN
  ------------------
  |  | 1762|      0|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  ------------------
  |  Branch (60:13): [True: 0, False: 0]
  ------------------
   61|      0|            && ctx->pmeth->paramgen == NULL)
  ------------------
  |  Branch (61:16): [True: 0, False: 0]
  ------------------
   62|      0|        || (operation == EVP_PKEY_OP_KEYGEN
  ------------------
  |  | 1763|      0|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
  |  Branch (62:13): [True: 0, False: 0]
  ------------------
   63|      0|            && ctx->pmeth->keygen == NULL))
  ------------------
  |  Branch (63:16): [True: 0, False: 0]
  ------------------
   64|      0|        goto not_supported;
   65|       |
   66|      0|    ret = 1;
   67|      0|    switch (operation) {
  ------------------
  |  Branch (67:13): [True: 0, False: 0]
  ------------------
   68|      0|    case EVP_PKEY_OP_PARAMGEN:
  ------------------
  |  | 1762|      0|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  ------------------
  |  Branch (68:5): [True: 0, False: 0]
  ------------------
   69|      0|        if (ctx->pmeth->paramgen_init != NULL)
  ------------------
  |  Branch (69:13): [True: 0, False: 0]
  ------------------
   70|      0|            ret = ctx->pmeth->paramgen_init(ctx);
   71|      0|        break;
   72|      0|    case EVP_PKEY_OP_KEYGEN:
  ------------------
  |  | 1763|      0|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
  |  Branch (72:5): [True: 0, False: 0]
  ------------------
   73|      0|        if (ctx->pmeth->keygen_init != NULL)
  ------------------
  |  Branch (73:13): [True: 0, False: 0]
  ------------------
   74|      0|            ret = ctx->pmeth->keygen_init(ctx);
   75|      0|        break;
   76|      0|    }
   77|      0|#endif
   78|       |
   79|    876|end:
   80|    876|    if (ret <= 0 && ctx != NULL) {
  ------------------
  |  Branch (80:9): [True: 0, False: 876]
  |  Branch (80:21): [True: 0, False: 0]
  ------------------
   81|      0|        evp_pkey_ctx_free_old_ops(ctx);
   82|      0|        ctx->operation = EVP_PKEY_OP_UNDEFINED;
  ------------------
  |  | 1761|      0|#define EVP_PKEY_OP_UNDEFINED 0
  ------------------
   83|      0|    }
   84|    876|    return ret;
   85|       |
   86|      0|not_supported:
   87|       |    ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   88|      0|    ret = -2;
   89|      0|    goto end;
   90|      0|}

evp_pkey_ctx_state:
  139|    876|{
  140|    876|    if (ctx->operation == EVP_PKEY_OP_UNDEFINED)
  ------------------
  |  | 1761|    876|#define EVP_PKEY_OP_UNDEFINED 0
  ------------------
  |  Branch (140:9): [True: 0, False: 876]
  ------------------
  141|      0|        return EVP_PKEY_STATE_UNKNOWN;
  ------------------
  |  |  950|      0|#define EVP_PKEY_STATE_UNKNOWN 0
  ------------------
  142|       |
  143|    876|    if ((EVP_PKEY_CTX_IS_DERIVE_OP(ctx)
  ------------------
  |  |  747|  1.75k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_DERIVE) != 0)
  |  |  ------------------
  |  |  |  | 1790|    876|    (EVP_PKEY_OP_DERIVE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1772|    876|#define EVP_PKEY_OP_DERIVE (1 << 11)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (747:5): [True: 0, False: 876]
  |  |  ------------------
  ------------------
  144|      0|            && ctx->op.kex.algctx != NULL)
  ------------------
  |  Branch (144:16): [True: 0, False: 0]
  ------------------
  145|    876|        || (EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx)
  ------------------
  |  |  744|  1.75k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1781|    876|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1765|    876|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1775|    876|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1782|    876|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1766|    876|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1776|    876|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1783|    876|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1767|    876|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1784|    876|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1768|    876|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1769|    876|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (744:5): [True: 0, False: 876]
  |  |  ------------------
  ------------------
  146|      0|            && ctx->op.sig.algctx != NULL)
  ------------------
  |  Branch (146:16): [True: 0, False: 0]
  ------------------
  147|    876|        || (EVP_PKEY_CTX_IS_ASYM_CIPHER_OP(ctx)
  ------------------
  |  |  750|  1.75k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_CRYPT) != 0)
  |  |  ------------------
  |  |  |  | 1787|    876|    (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1770|    876|#define EVP_PKEY_OP_ENCRYPT (1 << 9)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1771|    876|#define EVP_PKEY_OP_DECRYPT (1 << 10)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (750:5): [True: 0, False: 876]
  |  |  ------------------
  ------------------
  148|      0|            && ctx->op.ciph.algctx != NULL)
  ------------------
  |  Branch (148:16): [True: 0, False: 0]
  ------------------
  149|    876|        || (EVP_PKEY_CTX_IS_GEN_OP(ctx)
  ------------------
  |  |  753|  1.75k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_GEN) != 0)
  |  |  ------------------
  |  |  |  | 1799|    876|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1762|    876|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1763|    876|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (753:5): [True: 876, False: 0]
  |  |  ------------------
  ------------------
  150|    876|            && ctx->op.keymgmt.genctx != NULL)
  ------------------
  |  Branch (150:16): [True: 876, False: 0]
  ------------------
  151|      0|        || (EVP_PKEY_CTX_IS_KEM_OP(ctx)
  ------------------
  |  |  759|      0|    (((ctx)->operation & EVP_PKEY_OP_TYPE_KEM) != 0)
  |  |  ------------------
  |  |  |  | 1796|      0|    (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1773|      0|#define EVP_PKEY_OP_ENCAPSULATE (1 << 12)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1774|      0|#define EVP_PKEY_OP_DECAPSULATE (1 << 13)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (759:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  152|      0|            && ctx->op.encap.algctx != NULL))
  ------------------
  |  Branch (152:16): [True: 0, False: 0]
  ------------------
  153|    876|        return EVP_PKEY_STATE_PROVIDER;
  ------------------
  |  |  952|    876|#define EVP_PKEY_STATE_PROVIDER 2
  ------------------
  154|       |
  155|      0|    return EVP_PKEY_STATE_LEGACY;
  ------------------
  |  |  951|      0|#define EVP_PKEY_STATE_LEGACY 1
  ------------------
  156|    876|}
EVP_PKEY_CTX_new_from_name:
  348|    876|{
  349|    876|    return int_ctx_new(libctx, NULL, NULL, name, propquery, -1);
  350|    876|}
EVP_PKEY_CTX_new_from_pkey:
  354|  5.72k|{
  355|  5.72k|    return int_ctx_new(libctx, pkey, NULL, NULL, propquery, -1);
  356|  5.72k|}
evp_pkey_ctx_free_old_ops:
  359|  7.47k|{
  360|  7.47k|    if (EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx)) {
  ------------------
  |  |  744|  7.47k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1781|  7.47k|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1765|  7.47k|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1775|  7.47k|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1782|  7.47k|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1766|  7.47k|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1776|  7.47k|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1783|  7.47k|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1767|  7.47k|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1784|  7.47k|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1768|  7.47k|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1769|  7.47k|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (744:5): [True: 0, False: 7.47k]
  |  |  ------------------
  ------------------
  361|      0|        if (ctx->op.sig.algctx != NULL && ctx->op.sig.signature != NULL)
  ------------------
  |  Branch (361:13): [True: 0, False: 0]
  |  Branch (361:43): [True: 0, False: 0]
  ------------------
  362|      0|            ctx->op.sig.signature->freectx(ctx->op.sig.algctx);
  363|      0|        EVP_SIGNATURE_free(ctx->op.sig.signature);
  364|      0|        ctx->op.sig.algctx = NULL;
  365|      0|        ctx->op.sig.signature = NULL;
  366|  7.47k|    } else if (EVP_PKEY_CTX_IS_DERIVE_OP(ctx)) {
  ------------------
  |  |  747|  7.47k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_DERIVE) != 0)
  |  |  ------------------
  |  |  |  | 1790|  7.47k|    (EVP_PKEY_OP_DERIVE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1772|  7.47k|#define EVP_PKEY_OP_DERIVE (1 << 11)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (747:5): [True: 0, False: 7.47k]
  |  |  ------------------
  ------------------
  367|      0|        if (ctx->op.kex.algctx != NULL && ctx->op.kex.exchange != NULL)
  ------------------
  |  Branch (367:13): [True: 0, False: 0]
  |  Branch (367:43): [True: 0, False: 0]
  ------------------
  368|      0|            ctx->op.kex.exchange->freectx(ctx->op.kex.algctx);
  369|      0|        EVP_KEYEXCH_free(ctx->op.kex.exchange);
  370|      0|        ctx->op.kex.algctx = NULL;
  371|      0|        ctx->op.kex.exchange = NULL;
  372|  7.47k|    } else if (EVP_PKEY_CTX_IS_KEM_OP(ctx)) {
  ------------------
  |  |  759|  7.47k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_KEM) != 0)
  |  |  ------------------
  |  |  |  | 1796|  7.47k|    (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1773|  7.47k|#define EVP_PKEY_OP_ENCAPSULATE (1 << 12)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1774|  7.47k|#define EVP_PKEY_OP_DECAPSULATE (1 << 13)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (759:5): [True: 0, False: 7.47k]
  |  |  ------------------
  ------------------
  373|      0|        if (ctx->op.encap.algctx != NULL && ctx->op.encap.kem != NULL)
  ------------------
  |  Branch (373:13): [True: 0, False: 0]
  |  Branch (373:45): [True: 0, False: 0]
  ------------------
  374|      0|            ctx->op.encap.kem->freectx(ctx->op.encap.algctx);
  375|      0|        EVP_KEM_free(ctx->op.encap.kem);
  376|      0|        ctx->op.encap.algctx = NULL;
  377|      0|        ctx->op.encap.kem = NULL;
  378|  7.47k|    } else if (EVP_PKEY_CTX_IS_ASYM_CIPHER_OP(ctx)) {
  ------------------
  |  |  750|  7.47k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_CRYPT) != 0)
  |  |  ------------------
  |  |  |  | 1787|  7.47k|    (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1770|  7.47k|#define EVP_PKEY_OP_ENCRYPT (1 << 9)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1771|  7.47k|#define EVP_PKEY_OP_DECRYPT (1 << 10)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (750:5): [True: 0, False: 7.47k]
  |  |  ------------------
  ------------------
  379|      0|        if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL)
  ------------------
  |  Branch (379:13): [True: 0, False: 0]
  |  Branch (379:44): [True: 0, False: 0]
  ------------------
  380|      0|            ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx);
  381|      0|        EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher);
  382|      0|        ctx->op.ciph.algctx = NULL;
  383|      0|        ctx->op.ciph.cipher = NULL;
  384|  7.47k|    } else if (EVP_PKEY_CTX_IS_GEN_OP(ctx)) {
  ------------------
  |  |  753|  7.47k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_GEN) != 0)
  |  |  ------------------
  |  |  |  | 1799|  7.47k|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1762|  7.47k|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1763|  7.47k|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (753:5): [True: 876, False: 6.59k]
  |  |  ------------------
  ------------------
  385|    876|        if (ctx->op.keymgmt.genctx != NULL && ctx->keymgmt != NULL)
  ------------------
  |  Branch (385:13): [True: 876, False: 0]
  |  Branch (385:47): [True: 876, False: 0]
  ------------------
  386|    876|            evp_keymgmt_gen_cleanup(ctx->keymgmt, ctx->op.keymgmt.genctx);
  387|    876|    }
  388|  7.47k|}
EVP_PKEY_CTX_free:
  391|  6.81k|{
  392|  6.81k|    if (ctx == NULL)
  ------------------
  |  Branch (392:9): [True: 219, False: 6.59k]
  ------------------
  393|    219|        return;
  394|  6.59k|    if (ctx->pmeth && ctx->pmeth->cleanup)
  ------------------
  |  Branch (394:9): [True: 0, False: 6.59k]
  |  Branch (394:23): [True: 0, False: 0]
  ------------------
  395|      0|        ctx->pmeth->cleanup(ctx);
  396|       |
  397|  6.59k|    evp_pkey_ctx_free_old_ops(ctx);
  398|  6.59k|#ifndef FIPS_MODULE
  399|  6.59k|    evp_pkey_ctx_free_all_cached_data(ctx);
  400|  6.59k|#endif
  401|  6.59k|    EVP_KEYMGMT_free(ctx->keymgmt);
  402|       |
  403|  6.59k|    OPENSSL_free(ctx->propquery);
  ------------------
  |  |  131|  6.59k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  404|  6.59k|    EVP_PKEY_free(ctx->pkey);
  405|  6.59k|    EVP_PKEY_free(ctx->peerkey);
  406|  6.59k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  407|  6.59k|    ENGINE_finish(ctx->engine);
  408|  6.59k|#endif
  409|  6.59k|    BN_free(ctx->rsa_pubexp);
  410|  6.59k|    OPENSSL_free(ctx);
  ------------------
  |  |  131|  6.59k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  411|  6.59k|}
EVP_PKEY_CTX_set_params:
  678|    876|{
  679|    876|    switch (evp_pkey_ctx_state(ctx)) {
  ------------------
  |  Branch (679:13): [True: 876, False: 0]
  ------------------
  680|    876|    case EVP_PKEY_STATE_PROVIDER:
  ------------------
  |  |  952|    876|#define EVP_PKEY_STATE_PROVIDER 2
  ------------------
  |  Branch (680:5): [True: 876, False: 0]
  ------------------
  681|    876|        if (EVP_PKEY_CTX_IS_DERIVE_OP(ctx)
  ------------------
  |  |  747|  1.75k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_DERIVE) != 0)
  |  |  ------------------
  |  |  |  | 1790|    876|    (EVP_PKEY_OP_DERIVE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1772|    876|#define EVP_PKEY_OP_DERIVE (1 << 11)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (747:5): [True: 0, False: 876]
  |  |  ------------------
  ------------------
  682|      0|            && ctx->op.kex.exchange != NULL
  ------------------
  |  Branch (682:16): [True: 0, False: 0]
  ------------------
  683|      0|            && ctx->op.kex.exchange->set_ctx_params != NULL)
  ------------------
  |  Branch (683:16): [True: 0, False: 0]
  ------------------
  684|      0|            return ctx->op.kex.exchange->set_ctx_params(ctx->op.kex.algctx,
  685|      0|                params);
  686|    876|        if (EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx)
  ------------------
  |  |  744|  1.75k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1781|    876|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1765|    876|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1775|    876|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1782|    876|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1766|    876|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1776|    876|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1783|    876|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1767|    876|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1784|    876|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1768|    876|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1769|    876|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (744:5): [True: 0, False: 876]
  |  |  ------------------
  ------------------
  687|      0|            && ctx->op.sig.signature != NULL
  ------------------
  |  Branch (687:16): [True: 0, False: 0]
  ------------------
  688|      0|            && ctx->op.sig.signature->set_ctx_params != NULL)
  ------------------
  |  Branch (688:16): [True: 0, False: 0]
  ------------------
  689|      0|            return ctx->op.sig.signature->set_ctx_params(ctx->op.sig.algctx,
  690|      0|                params);
  691|    876|        if (EVP_PKEY_CTX_IS_ASYM_CIPHER_OP(ctx)
  ------------------
  |  |  750|  1.75k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_CRYPT) != 0)
  |  |  ------------------
  |  |  |  | 1787|    876|    (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1770|    876|#define EVP_PKEY_OP_ENCRYPT (1 << 9)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1771|    876|#define EVP_PKEY_OP_DECRYPT (1 << 10)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (750:5): [True: 0, False: 876]
  |  |  ------------------
  ------------------
  692|      0|            && ctx->op.ciph.cipher != NULL
  ------------------
  |  Branch (692:16): [True: 0, False: 0]
  ------------------
  693|      0|            && ctx->op.ciph.cipher->set_ctx_params != NULL)
  ------------------
  |  Branch (693:16): [True: 0, False: 0]
  ------------------
  694|      0|            return ctx->op.ciph.cipher->set_ctx_params(ctx->op.ciph.algctx,
  695|      0|                params);
  696|    876|        if (EVP_PKEY_CTX_IS_GEN_OP(ctx)
  ------------------
  |  |  753|  1.75k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_GEN) != 0)
  |  |  ------------------
  |  |  |  | 1799|    876|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1762|    876|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1763|    876|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (753:5): [True: 876, False: 0]
  |  |  ------------------
  ------------------
  697|    876|            && ctx->keymgmt != NULL
  ------------------
  |  Branch (697:16): [True: 876, False: 0]
  ------------------
  698|    876|            && ctx->keymgmt->gen_set_params != NULL)
  ------------------
  |  Branch (698:16): [True: 876, False: 0]
  ------------------
  699|    876|            return evp_keymgmt_gen_set_params(ctx->keymgmt, ctx->op.keymgmt.genctx,
  700|    876|                params);
  701|      0|        if (EVP_PKEY_CTX_IS_KEM_OP(ctx)
  ------------------
  |  |  759|      0|    (((ctx)->operation & EVP_PKEY_OP_TYPE_KEM) != 0)
  |  |  ------------------
  |  |  |  | 1796|      0|    (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1773|      0|#define EVP_PKEY_OP_ENCAPSULATE (1 << 12)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1774|      0|#define EVP_PKEY_OP_DECAPSULATE (1 << 13)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (759:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  702|      0|            && ctx->op.encap.kem != NULL
  ------------------
  |  Branch (702:16): [True: 0, False: 0]
  ------------------
  703|      0|            && ctx->op.encap.kem->set_ctx_params != NULL)
  ------------------
  |  Branch (703:16): [True: 0, False: 0]
  ------------------
  704|      0|            return ctx->op.encap.kem->set_ctx_params(ctx->op.encap.algctx,
  705|      0|                params);
  706|      0|        break;
  707|      0|    case EVP_PKEY_STATE_UNKNOWN:
  ------------------
  |  |  950|      0|#define EVP_PKEY_STATE_UNKNOWN 0
  ------------------
  |  Branch (707:5): [True: 0, False: 876]
  ------------------
  708|      0|        break;
  709|      0|#ifndef FIPS_MODULE
  710|      0|    case EVP_PKEY_STATE_LEGACY:
  ------------------
  |  |  951|      0|#define EVP_PKEY_STATE_LEGACY 1
  ------------------
  |  Branch (710:5): [True: 0, False: 876]
  ------------------
  711|      0|        return evp_pkey_ctx_set_params_to_ctrl(ctx, params);
  712|    876|#endif
  713|    876|    }
  714|      0|    return 0;
  715|    876|}
pmeth_lib.c:evp_pkey_meth_find_added_by_application:
   93|  6.15k|{
   94|  6.15k|    if (app_pkey_methods != NULL) {
  ------------------
  |  Branch (94:9): [True: 0, False: 6.15k]
  ------------------
   95|      0|        int idx;
   96|      0|        EVP_PKEY_METHOD tmp;
   97|       |
   98|      0|        tmp.pkey_id = type;
   99|      0|        idx = sk_EVP_PKEY_METHOD_find(app_pkey_methods, &tmp);
  100|      0|        if (idx >= 0)
  ------------------
  |  Branch (100:13): [True: 0, False: 0]
  ------------------
  101|      0|            return sk_EVP_PKEY_METHOD_value(app_pkey_methods, idx);
  102|      0|    }
  103|  6.15k|    return NULL;
  104|  6.15k|}
pmeth_lib.c:int_ctx_new:
  163|  6.59k|{
  164|  6.59k|    EVP_PKEY_CTX *ret = NULL;
  165|  6.59k|    const EVP_PKEY_METHOD *pmeth = NULL, *app_pmeth = NULL;
  166|  6.59k|    EVP_KEYMGMT *keymgmt = NULL;
  167|       |
  168|       |    /* Code below to be removed when legacy support is dropped. */
  169|       |    /* BEGIN legacy */
  170|  6.59k|    if (id == -1) {
  ------------------
  |  Branch (170:9): [True: 6.59k, False: 0]
  ------------------
  171|  6.59k|        if (pkey != NULL && !evp_pkey_is_provided(pkey)) {
  ------------------
  |  |  652|  5.72k|    ((pk)->keymgmt != NULL)
  ------------------
  |  Branch (171:13): [True: 5.72k, False: 876]
  |  Branch (171:29): [True: 5.72k, False: 0]
  ------------------
  172|  5.72k|            id = pkey->type;
  173|  5.72k|        } else {
  174|    876|            if (pkey != NULL) {
  ------------------
  |  Branch (174:17): [True: 0, False: 876]
  ------------------
  175|       |                /* Must be provided if we get here */
  176|      0|                keytype = EVP_KEYMGMT_get0_name(pkey->keymgmt);
  177|      0|            }
  178|    876|#ifndef FIPS_MODULE
  179|    876|            if (keytype != NULL) {
  ------------------
  |  Branch (179:17): [True: 876, False: 0]
  ------------------
  180|    876|                id = evp_pkey_name2type(keytype);
  181|    876|                if (id == NID_undef)
  ------------------
  |  |   18|    876|#define NID_undef                       0
  ------------------
  |  Branch (181:21): [True: 438, False: 438]
  ------------------
  182|    438|                    id = -1;
  183|    876|            }
  184|    876|#endif
  185|    876|        }
  186|  6.59k|    }
  187|       |    /* If no ID was found here, we can only resort to find a keymgmt */
  188|  6.59k|    if (id == -1) {
  ------------------
  |  Branch (188:9): [True: 438, False: 6.15k]
  ------------------
  189|    438|#ifndef FIPS_MODULE
  190|       |        /* Using engine with a key without id will not work */
  191|    438|        if (e != NULL) {
  ------------------
  |  Branch (191:13): [True: 0, False: 438]
  ------------------
  192|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_UNSUPPORTED_ALGORITHM);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  193|      0|            return NULL;
  194|      0|        }
  195|    438|#endif
  196|    438|        goto common;
  197|    438|    }
  198|       |
  199|  6.15k|#ifndef FIPS_MODULE
  200|       |    /*
  201|       |     * Here, we extract what information we can for the purpose of
  202|       |     * supporting usage with implementations from providers, to make
  203|       |     * for a smooth transition from legacy stuff to provider based stuff.
  204|       |     *
  205|       |     * If an engine is given, this is entirely legacy, and we should not
  206|       |     * pretend anything else, so we clear the name.
  207|       |     */
  208|  6.15k|    if (e != NULL)
  ------------------
  |  Branch (208:9): [True: 0, False: 6.15k]
  ------------------
  209|      0|        keytype = NULL;
  210|  6.15k|    if (e == NULL && (pkey == NULL || pkey->foreign == 0))
  ------------------
  |  Branch (210:9): [True: 6.15k, False: 0]
  |  Branch (210:23): [True: 438, False: 5.72k]
  |  Branch (210:39): [True: 5.72k, False: 0]
  ------------------
  211|  6.15k|        keytype = OBJ_nid2sn(id);
  212|       |
  213|  6.15k|#ifndef OPENSSL_NO_ENGINE
  214|  6.15k|    if (e == NULL && pkey != NULL)
  ------------------
  |  Branch (214:9): [True: 6.15k, False: 0]
  |  Branch (214:22): [True: 5.72k, False: 438]
  ------------------
  215|  5.72k|        e = pkey->pmeth_engine != NULL ? pkey->pmeth_engine : pkey->engine;
  ------------------
  |  Branch (215:13): [True: 0, False: 5.72k]
  ------------------
  216|       |    /* Try to find an ENGINE which implements this method */
  217|  6.15k|    if (e != NULL) {
  ------------------
  |  Branch (217:9): [True: 0, False: 6.15k]
  ------------------
  218|      0|        if (!ENGINE_init(e)) {
  ------------------
  |  Branch (218:13): [True: 0, False: 0]
  ------------------
  219|      0|            ERR_raise(ERR_LIB_EVP, ERR_R_ENGINE_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  220|      0|            return NULL;
  221|      0|        }
  222|  6.15k|    } else {
  223|  6.15k|        e = ENGINE_get_pkey_meth_engine(id);
  224|  6.15k|    }
  225|       |
  226|       |    /*
  227|       |     * If an ENGINE handled this method look it up. Otherwise use internal
  228|       |     * tables.
  229|       |     */
  230|  6.15k|    if (e != NULL)
  ------------------
  |  Branch (230:9): [True: 0, False: 6.15k]
  ------------------
  231|      0|        pmeth = ENGINE_get_pkey_meth(e, id);
  232|  6.15k|    else
  233|  6.15k|#endif /* OPENSSL_NO_ENGINE */
  234|  6.15k|        if (pkey != NULL && pkey->foreign)
  ------------------
  |  Branch (234:13): [True: 5.72k, False: 438]
  |  Branch (234:29): [True: 0, False: 5.72k]
  ------------------
  235|      0|            pmeth = EVP_PKEY_meth_find(id);
  236|  6.15k|        else
  237|  6.15k|            app_pmeth = pmeth = evp_pkey_meth_find_added_by_application(id);
  238|       |
  239|       |        /* END legacy */
  240|  6.15k|#endif /* FIPS_MODULE */
  241|  6.59k|common:
  242|       |    /*
  243|       |     * If there's no engine and no app supplied pmeth and there's a name, we try
  244|       |     * fetching a provider implementation.
  245|       |     */
  246|  6.59k|    if (e == NULL && app_pmeth == NULL && keytype != NULL) {
  ------------------
  |  Branch (246:9): [True: 6.59k, False: 0]
  |  Branch (246:22): [True: 6.59k, False: 0]
  |  Branch (246:43): [True: 6.59k, False: 0]
  ------------------
  247|       |        /*
  248|       |         * If |pkey| is given and is provided, we take a reference to its
  249|       |         * keymgmt.  Otherwise, we fetch one for the keytype we got. This
  250|       |         * is to ensure that operation init functions can access what they
  251|       |         * need through this single pointer.
  252|       |         */
  253|  6.59k|        if (pkey != NULL && pkey->keymgmt != NULL) {
  ------------------
  |  Branch (253:13): [True: 5.72k, False: 876]
  |  Branch (253:29): [True: 0, False: 5.72k]
  ------------------
  254|      0|            if (!EVP_KEYMGMT_up_ref(pkey->keymgmt))
  ------------------
  |  Branch (254:17): [True: 0, False: 0]
  ------------------
  255|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  256|      0|            else
  257|      0|                keymgmt = pkey->keymgmt;
  258|  6.59k|        } else {
  259|  6.59k|            keymgmt = EVP_KEYMGMT_fetch(libctx, keytype, propquery);
  260|  6.59k|        }
  261|  6.59k|        if (keymgmt == NULL)
  ------------------
  |  Branch (261:13): [True: 0, False: 6.59k]
  ------------------
  262|      0|            return NULL; /* EVP_KEYMGMT_fetch() recorded an error */
  263|       |
  264|  6.59k|#ifndef FIPS_MODULE
  265|       |        /*
  266|       |         * Chase down the legacy NID, as that might be needed for diverse
  267|       |         * purposes, such as ensure that EVP_PKEY_type() can return sensible
  268|       |         * values. We go through all keymgmt names, because the keytype
  269|       |         * that's passed to this function doesn't necessarily translate
  270|       |         * directly.
  271|       |         */
  272|  6.59k|        if (keymgmt != NULL) {
  ------------------
  |  Branch (272:13): [True: 6.59k, False: 0]
  ------------------
  273|  6.59k|            int tmp_id = evp_keymgmt_get_legacy_alg(keymgmt);
  274|       |
  275|  6.59k|            if (tmp_id != NID_undef) {
  ------------------
  |  |   18|  6.59k|#define NID_undef                       0
  ------------------
  |  Branch (275:17): [True: 6.15k, False: 438]
  ------------------
  276|  6.15k|                if (id == -1) {
  ------------------
  |  Branch (276:21): [True: 0, False: 6.15k]
  ------------------
  277|      0|                    id = tmp_id;
  278|  6.15k|                } else {
  279|       |                    /*
  280|       |                     * It really really shouldn't differ.  If it still does,
  281|       |                     * something is very wrong.
  282|       |                     */
  283|  6.15k|                    if (!ossl_assert(id == tmp_id)) {
  ------------------
  |  |   52|  6.15k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  6.15k|    __FILE__, __LINE__)
  ------------------
  |  Branch (283:25): [True: 0, False: 6.15k]
  ------------------
  284|      0|                        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  285|      0|                        EVP_KEYMGMT_free(keymgmt);
  286|      0|                        return NULL;
  287|      0|                    }
  288|  6.15k|                }
  289|  6.15k|            }
  290|  6.59k|        }
  291|  6.59k|#endif
  292|  6.59k|    }
  293|       |
  294|  6.59k|    if (pmeth == NULL && keymgmt == NULL) {
  ------------------
  |  Branch (294:9): [True: 6.59k, False: 0]
  |  Branch (294:26): [True: 0, False: 6.59k]
  ------------------
  295|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UNSUPPORTED_ALGORITHM);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  296|  6.59k|    } else {
  297|  6.59k|        ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  6.59k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  298|  6.59k|    }
  299|       |
  300|  6.59k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  301|  6.59k|    if ((ret == NULL || pmeth == NULL) && e != NULL)
  ------------------
  |  Branch (301:10): [True: 0, False: 6.59k]
  |  Branch (301:25): [True: 6.59k, False: 0]
  |  Branch (301:43): [True: 0, False: 6.59k]
  ------------------
  302|      0|        ENGINE_finish(e);
  303|  6.59k|#endif
  304|       |
  305|  6.59k|    if (ret == NULL) {
  ------------------
  |  Branch (305:9): [True: 0, False: 6.59k]
  ------------------
  306|      0|        EVP_KEYMGMT_free(keymgmt);
  307|      0|        return NULL;
  308|      0|    }
  309|  6.59k|    if (propquery != NULL) {
  ------------------
  |  Branch (309:9): [True: 0, False: 6.59k]
  ------------------
  310|      0|        ret->propquery = OPENSSL_strdup(propquery);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  311|      0|        if (ret->propquery == NULL) {
  ------------------
  |  Branch (311:13): [True: 0, False: 0]
  ------------------
  312|      0|            OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  313|      0|            EVP_KEYMGMT_free(keymgmt);
  314|      0|            return NULL;
  315|      0|        }
  316|      0|    }
  317|  6.59k|    ret->libctx = libctx;
  318|  6.59k|    ret->keytype = keytype;
  319|  6.59k|    ret->keymgmt = keymgmt;
  320|  6.59k|    ret->legacy_keytype = id;
  321|  6.59k|    ret->engine = e;
  322|  6.59k|    ret->pmeth = pmeth;
  323|  6.59k|    ret->operation = EVP_PKEY_OP_UNDEFINED;
  ------------------
  |  | 1761|  6.59k|#define EVP_PKEY_OP_UNDEFINED 0
  ------------------
  324|       |
  325|  6.59k|    if (pkey != NULL && !EVP_PKEY_up_ref(pkey)) {
  ------------------
  |  Branch (325:9): [True: 5.72k, False: 876]
  |  Branch (325:25): [True: 0, False: 5.72k]
  ------------------
  326|      0|        EVP_PKEY_CTX_free(ret);
  327|      0|        return NULL;
  328|      0|    }
  329|       |
  330|  6.59k|    ret->pkey = pkey;
  331|       |
  332|  6.59k|    if (pmeth != NULL && pmeth->init != NULL) {
  ------------------
  |  Branch (332:9): [True: 0, False: 6.59k]
  |  Branch (332:26): [True: 0, False: 0]
  ------------------
  333|      0|        if (pmeth->init(ret) <= 0) {
  ------------------
  |  Branch (333:13): [True: 0, False: 0]
  ------------------
  334|      0|            ret->pmeth = NULL;
  335|      0|            EVP_PKEY_CTX_free(ret);
  336|      0|            return NULL;
  337|      0|        }
  338|      0|    }
  339|       |
  340|  6.59k|    return ret;
  341|  6.59k|}
pmeth_lib.c:decode_cmd:
 1431|  6.59k|{
 1432|  6.59k|    if (cmd == -1) {
  ------------------
  |  Branch (1432:9): [True: 0, False: 6.59k]
  ------------------
 1433|       |        /*
 1434|       |         * The consequence of the assertion not being true is that this
 1435|       |         * function will return -1, which will cause the calling functions
 1436|       |         * to signal that the command is unsupported...  in non-debug mode.
 1437|       |         */
 1438|      0|        if (ossl_assert(name != NULL))
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:24): [True: 0, False: 0]
  |  |  ------------------
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
 1439|      0|            if (strcmp(name, "distid") == 0 || strcmp(name, "hexdistid") == 0)
  ------------------
  |  Branch (1439:17): [True: 0, False: 0]
  |  Branch (1439:48): [True: 0, False: 0]
  ------------------
 1440|      0|                cmd = EVP_PKEY_CTRL_SET1_ID;
  ------------------
  |  | 1824|      0|#define EVP_PKEY_CTRL_SET1_ID 15
  ------------------
 1441|      0|    }
 1442|       |
 1443|  6.59k|    return cmd;
 1444|  6.59k|}
pmeth_lib.c:evp_pkey_ctx_free_cached_data:
 1517|  6.59k|{
 1518|  6.59k|    cmd = decode_cmd(cmd, name);
 1519|  6.59k|    switch (cmd) {
  ------------------
  |  Branch (1519:13): [True: 6.59k, False: 0]
  ------------------
 1520|  6.59k|    case EVP_PKEY_CTRL_SET1_ID:
  ------------------
  |  | 1824|  6.59k|#define EVP_PKEY_CTRL_SET1_ID 15
  ------------------
  |  Branch (1520:5): [True: 6.59k, False: 0]
  ------------------
 1521|  6.59k|        OPENSSL_free(ctx->cached_parameters.dist_id);
  ------------------
  |  |  131|  6.59k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1522|  6.59k|        OPENSSL_free(ctx->cached_parameters.dist_id_name);
  ------------------
  |  |  131|  6.59k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1523|  6.59k|        ctx->cached_parameters.dist_id = NULL;
 1524|       |        ctx->cached_parameters.dist_id_name = NULL;
 1525|  6.59k|        break;
 1526|  6.59k|    }
 1527|  6.59k|}
pmeth_lib.c:evp_pkey_ctx_free_all_cached_data:
 1530|  6.59k|{
 1531|  6.59k|    evp_pkey_ctx_free_cached_data(ctx, EVP_PKEY_CTRL_SET1_ID, NULL);
  ------------------
  |  | 1824|  6.59k|#define EVP_PKEY_CTRL_SET1_ID 15
  ------------------
 1532|  6.59k|}

EVP_SIGNATURE_free:
  456|    499|{
  457|    499|    int i;
  458|       |
  459|    499|    if (signature == NULL)
  ------------------
  |  Branch (459:9): [True: 0, False: 499]
  ------------------
  460|      0|        return;
  461|    499|    CRYPTO_DOWN_REF(&signature->refcnt, &i);
  462|    499|    if (i > 0)
  ------------------
  |  Branch (462:9): [True: 499, False: 0]
  ------------------
  463|    499|        return;
  464|      0|    OPENSSL_free(signature->type_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  465|      0|    ossl_provider_free(signature->prov);
  466|      0|    CRYPTO_FREE_REF(&signature->refcnt);
  467|      0|    OPENSSL_free(signature);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  468|      0|}
EVP_SIGNATURE_up_ref:
  471|    501|{
  472|    501|    int ref = 0;
  473|       |
  474|    501|    CRYPTO_UP_REF(&signature->refcnt, &ref);
  475|    501|    return 1;
  476|    501|}
EVP_SIGNATURE_fetch:
  485|    440|{
  486|    440|    return evp_generic_fetch(ctx, OSSL_OP_SIGNATURE, algorithm, properties,
  ------------------
  |  |  290|    440|#define OSSL_OP_SIGNATURE 12
  ------------------
  487|    440|        evp_signature_from_algorithm,
  488|    440|        evp_signature_up_ref,
  489|    440|        evp_signature_free);
  490|    440|}
signature.c:evp_signature_from_algorithm:
   55|     59|{
   56|     59|    const OSSL_DISPATCH *fns = algodef->implementation;
   57|     59|    EVP_SIGNATURE *signature = NULL;
   58|     59|    const char *desc;
   59|       |    /* Counts newctx / freectx */
   60|     59|    int ctxfncnt = 0;
   61|       |    /* Counts all init functions  */
   62|     59|    int initfncnt = 0;
   63|       |    /* Counts all parameter functions */
   64|     59|    int gparamfncnt = 0, sparamfncnt = 0, gmdparamfncnt = 0, smdparamfncnt = 0;
   65|     59|    int valid = 0;
   66|       |
   67|     59|    if ((signature = evp_signature_new(prov)) == NULL) {
  ------------------
  |  Branch (67:9): [True: 0, False: 59]
  ------------------
   68|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   69|      0|        goto err;
   70|      0|    }
   71|       |
   72|     59|    signature->name_id = name_id;
   73|     59|    if ((signature->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL)
  ------------------
  |  Branch (73:9): [True: 0, False: 59]
  ------------------
   74|      0|        goto err;
   75|     59|    signature->description = algodef->algorithm_description;
   76|     59|    desc = signature->description != NULL ? signature->description : "";
  ------------------
  |  Branch (76:12): [True: 12, False: 47]
  ------------------
   77|       |
   78|  1.08k|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (78:12): [True: 1.02k, False: 59]
  ------------------
   79|  1.02k|        switch (fns->function_id) {
  ------------------
  |  Branch (79:17): [True: 1.02k, False: 0]
  ------------------
   80|     59|        case OSSL_FUNC_SIGNATURE_NEWCTX:
  ------------------
  |  |  789|     59|#define OSSL_FUNC_SIGNATURE_NEWCTX 1
  ------------------
  |  Branch (80:9): [True: 59, False: 962]
  ------------------
   81|     59|            if (signature->newctx != NULL)
  ------------------
  |  Branch (81:17): [True: 0, False: 59]
  ------------------
   82|      0|                break;
   83|     59|            signature->newctx = OSSL_FUNC_signature_newctx(fns);
   84|     59|            ctxfncnt++;
   85|     59|            break;
   86|     42|        case OSSL_FUNC_SIGNATURE_SIGN_INIT:
  ------------------
  |  |  790|     42|#define OSSL_FUNC_SIGNATURE_SIGN_INIT 2
  ------------------
  |  Branch (86:9): [True: 42, False: 979]
  ------------------
   87|     42|            if (signature->sign_init != NULL)
  ------------------
  |  Branch (87:17): [True: 2, False: 40]
  ------------------
   88|      2|                break;
   89|     40|            signature->sign_init = OSSL_FUNC_signature_sign_init(fns);
   90|     40|            initfncnt++;
   91|     40|            break;
   92|     55|        case OSSL_FUNC_SIGNATURE_SIGN:
  ------------------
  |  |  791|     55|#define OSSL_FUNC_SIGNATURE_SIGN 3
  ------------------
  |  Branch (92:9): [True: 55, False: 966]
  ------------------
   93|     55|            if (signature->sign != NULL)
  ------------------
  |  Branch (93:17): [True: 0, False: 55]
  ------------------
   94|      0|                break;
   95|     55|            signature->sign = OSSL_FUNC_signature_sign(fns);
   96|     55|            break;
   97|     51|        case OSSL_FUNC_SIGNATURE_SIGN_MESSAGE_INIT:
  ------------------
  |  |  815|     51|#define OSSL_FUNC_SIGNATURE_SIGN_MESSAGE_INIT 27
  ------------------
  |  Branch (97:9): [True: 51, False: 970]
  ------------------
   98|     51|            if (signature->sign_message_init != NULL)
  ------------------
  |  Branch (98:17): [True: 0, False: 51]
  ------------------
   99|      0|                break;
  100|     51|            signature->sign_message_init
  101|     51|                = OSSL_FUNC_signature_sign_message_init(fns);
  102|     51|            initfncnt++;
  103|     51|            break;
  104|     34|        case OSSL_FUNC_SIGNATURE_SIGN_MESSAGE_UPDATE:
  ------------------
  |  |  816|     34|#define OSSL_FUNC_SIGNATURE_SIGN_MESSAGE_UPDATE 28
  ------------------
  |  Branch (104:9): [True: 34, False: 987]
  ------------------
  105|     34|            if (signature->sign_message_update != NULL)
  ------------------
  |  Branch (105:17): [True: 0, False: 34]
  ------------------
  106|      0|                break;
  107|     34|            signature->sign_message_update
  108|     34|                = OSSL_FUNC_signature_sign_message_update(fns);
  109|     34|            break;
  110|     34|        case OSSL_FUNC_SIGNATURE_SIGN_MESSAGE_FINAL:
  ------------------
  |  |  817|     34|#define OSSL_FUNC_SIGNATURE_SIGN_MESSAGE_FINAL 29
  ------------------
  |  Branch (110:9): [True: 34, False: 987]
  ------------------
  111|     34|            if (signature->sign_message_final != NULL)
  ------------------
  |  Branch (111:17): [True: 0, False: 34]
  ------------------
  112|      0|                break;
  113|     34|            signature->sign_message_final
  114|     34|                = OSSL_FUNC_signature_sign_message_final(fns);
  115|     34|            break;
  116|     42|        case OSSL_FUNC_SIGNATURE_VERIFY_INIT:
  ------------------
  |  |  792|     42|#define OSSL_FUNC_SIGNATURE_VERIFY_INIT 4
  ------------------
  |  Branch (116:9): [True: 42, False: 979]
  ------------------
  117|     42|            if (signature->verify_init != NULL)
  ------------------
  |  Branch (117:17): [True: 2, False: 40]
  ------------------
  118|      2|                break;
  119|     40|            signature->verify_init = OSSL_FUNC_signature_verify_init(fns);
  120|     40|            initfncnt++;
  121|     40|            break;
  122|     55|        case OSSL_FUNC_SIGNATURE_VERIFY:
  ------------------
  |  |  793|     55|#define OSSL_FUNC_SIGNATURE_VERIFY 5
  ------------------
  |  Branch (122:9): [True: 55, False: 966]
  ------------------
  123|     55|            if (signature->verify != NULL)
  ------------------
  |  Branch (123:17): [True: 0, False: 55]
  ------------------
  124|      0|                break;
  125|     55|            signature->verify = OSSL_FUNC_signature_verify(fns);
  126|     55|            break;
  127|     51|        case OSSL_FUNC_SIGNATURE_VERIFY_MESSAGE_INIT:
  ------------------
  |  |  818|     51|#define OSSL_FUNC_SIGNATURE_VERIFY_MESSAGE_INIT 30
  ------------------
  |  Branch (127:9): [True: 51, False: 970]
  ------------------
  128|     51|            if (signature->verify_message_init != NULL)
  ------------------
  |  Branch (128:17): [True: 0, False: 51]
  ------------------
  129|      0|                break;
  130|     51|            signature->verify_message_init
  131|     51|                = OSSL_FUNC_signature_verify_message_init(fns);
  132|     51|            initfncnt++;
  133|     51|            break;
  134|     34|        case OSSL_FUNC_SIGNATURE_VERIFY_MESSAGE_UPDATE:
  ------------------
  |  |  819|     34|#define OSSL_FUNC_SIGNATURE_VERIFY_MESSAGE_UPDATE 31
  ------------------
  |  Branch (134:9): [True: 34, False: 987]
  ------------------
  135|     34|            if (signature->verify_message_update != NULL)
  ------------------
  |  Branch (135:17): [True: 0, False: 34]
  ------------------
  136|      0|                break;
  137|     34|            signature->verify_message_update
  138|     34|                = OSSL_FUNC_signature_verify_message_update(fns);
  139|     34|            break;
  140|     34|        case OSSL_FUNC_SIGNATURE_VERIFY_MESSAGE_FINAL:
  ------------------
  |  |  820|     34|#define OSSL_FUNC_SIGNATURE_VERIFY_MESSAGE_FINAL 32
  ------------------
  |  Branch (140:9): [True: 34, False: 987]
  ------------------
  141|     34|            if (signature->verify_message_final != NULL)
  ------------------
  |  Branch (141:17): [True: 0, False: 34]
  ------------------
  142|      0|                break;
  143|     34|            signature->verify_message_final
  144|     34|                = OSSL_FUNC_signature_verify_message_final(fns);
  145|     34|            break;
  146|     14|        case OSSL_FUNC_SIGNATURE_VERIFY_RECOVER_INIT:
  ------------------
  |  |  794|     14|#define OSSL_FUNC_SIGNATURE_VERIFY_RECOVER_INIT 6
  ------------------
  |  Branch (146:9): [True: 14, False: 1.00k]
  ------------------
  147|     14|            if (signature->verify_recover_init != NULL)
  ------------------
  |  Branch (147:17): [True: 0, False: 14]
  ------------------
  148|      0|                break;
  149|     14|            signature->verify_recover_init
  150|     14|                = OSSL_FUNC_signature_verify_recover_init(fns);
  151|     14|            initfncnt++;
  152|     14|            break;
  153|     14|        case OSSL_FUNC_SIGNATURE_VERIFY_RECOVER:
  ------------------
  |  |  795|     14|#define OSSL_FUNC_SIGNATURE_VERIFY_RECOVER 7
  ------------------
  |  Branch (153:9): [True: 14, False: 1.00k]
  ------------------
  154|     14|            if (signature->verify_recover != NULL)
  ------------------
  |  Branch (154:17): [True: 0, False: 14]
  ------------------
  155|      0|                break;
  156|     14|            signature->verify_recover
  157|     14|                = OSSL_FUNC_signature_verify_recover(fns);
  158|     14|            break;
  159|     25|        case OSSL_FUNC_SIGNATURE_DIGEST_SIGN_INIT:
  ------------------
  |  |  796|     25|#define OSSL_FUNC_SIGNATURE_DIGEST_SIGN_INIT 8
  ------------------
  |  Branch (159:9): [True: 25, False: 996]
  ------------------
  160|     25|            if (signature->digest_sign_init != NULL)
  ------------------
  |  Branch (160:17): [True: 0, False: 25]
  ------------------
  161|      0|                break;
  162|     25|            signature->digest_sign_init
  163|     25|                = OSSL_FUNC_signature_digest_sign_init(fns);
  164|     25|            initfncnt++;
  165|     25|            break;
  166|      8|        case OSSL_FUNC_SIGNATURE_DIGEST_SIGN_UPDATE:
  ------------------
  |  |  797|      8|#define OSSL_FUNC_SIGNATURE_DIGEST_SIGN_UPDATE 9
  ------------------
  |  Branch (166:9): [True: 8, False: 1.01k]
  ------------------
  167|      8|            if (signature->digest_sign_update != NULL)
  ------------------
  |  Branch (167:17): [True: 0, False: 8]
  ------------------
  168|      0|                break;
  169|      8|            signature->digest_sign_update
  170|      8|                = OSSL_FUNC_signature_digest_sign_update(fns);
  171|      8|            break;
  172|      8|        case OSSL_FUNC_SIGNATURE_DIGEST_SIGN_FINAL:
  ------------------
  |  |  798|      8|#define OSSL_FUNC_SIGNATURE_DIGEST_SIGN_FINAL 10
  ------------------
  |  Branch (172:9): [True: 8, False: 1.01k]
  ------------------
  173|      8|            if (signature->digest_sign_final != NULL)
  ------------------
  |  Branch (173:17): [True: 0, False: 8]
  ------------------
  174|      0|                break;
  175|      8|            signature->digest_sign_final
  176|      8|                = OSSL_FUNC_signature_digest_sign_final(fns);
  177|      8|            break;
  178|     17|        case OSSL_FUNC_SIGNATURE_DIGEST_SIGN:
  ------------------
  |  |  799|     17|#define OSSL_FUNC_SIGNATURE_DIGEST_SIGN 11
  ------------------
  |  Branch (178:9): [True: 17, False: 1.00k]
  ------------------
  179|     17|            if (signature->digest_sign != NULL)
  ------------------
  |  Branch (179:17): [True: 0, False: 17]
  ------------------
  180|      0|                break;
  181|     17|            signature->digest_sign
  182|     17|                = OSSL_FUNC_signature_digest_sign(fns);
  183|     17|            break;
  184|     21|        case OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_INIT:
  ------------------
  |  |  800|     21|#define OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_INIT 12
  ------------------
  |  Branch (184:9): [True: 21, False: 1.00k]
  ------------------
  185|     21|            if (signature->digest_verify_init != NULL)
  ------------------
  |  Branch (185:17): [True: 0, False: 21]
  ------------------
  186|      0|                break;
  187|     21|            signature->digest_verify_init
  188|     21|                = OSSL_FUNC_signature_digest_verify_init(fns);
  189|     21|            initfncnt++;
  190|     21|            break;
  191|      4|        case OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_UPDATE:
  ------------------
  |  |  801|      4|#define OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_UPDATE 13
  ------------------
  |  Branch (191:9): [True: 4, False: 1.01k]
  ------------------
  192|      4|            if (signature->digest_verify_update != NULL)
  ------------------
  |  Branch (192:17): [True: 0, False: 4]
  ------------------
  193|      0|                break;
  194|      4|            signature->digest_verify_update
  195|      4|                = OSSL_FUNC_signature_digest_verify_update(fns);
  196|      4|            break;
  197|      4|        case OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_FINAL:
  ------------------
  |  |  802|      4|#define OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_FINAL 14
  ------------------
  |  Branch (197:9): [True: 4, False: 1.01k]
  ------------------
  198|      4|            if (signature->digest_verify_final != NULL)
  ------------------
  |  Branch (198:17): [True: 0, False: 4]
  ------------------
  199|      0|                break;
  200|      4|            signature->digest_verify_final
  201|      4|                = OSSL_FUNC_signature_digest_verify_final(fns);
  202|      4|            break;
  203|     17|        case OSSL_FUNC_SIGNATURE_DIGEST_VERIFY:
  ------------------
  |  |  803|     17|#define OSSL_FUNC_SIGNATURE_DIGEST_VERIFY 15
  ------------------
  |  Branch (203:9): [True: 17, False: 1.00k]
  ------------------
  204|     17|            if (signature->digest_verify != NULL)
  ------------------
  |  Branch (204:17): [True: 0, False: 17]
  ------------------
  205|      0|                break;
  206|     17|            signature->digest_verify
  207|     17|                = OSSL_FUNC_signature_digest_verify(fns);
  208|     17|            break;
  209|     59|        case OSSL_FUNC_SIGNATURE_FREECTX:
  ------------------
  |  |  804|     59|#define OSSL_FUNC_SIGNATURE_FREECTX 16
  ------------------
  |  Branch (209:9): [True: 59, False: 962]
  ------------------
  210|     59|            if (signature->freectx != NULL)
  ------------------
  |  Branch (210:17): [True: 0, False: 59]
  ------------------
  211|      0|                break;
  212|     59|            signature->freectx = OSSL_FUNC_signature_freectx(fns);
  213|     59|            ctxfncnt++;
  214|     59|            break;
  215|     59|        case OSSL_FUNC_SIGNATURE_DUPCTX:
  ------------------
  |  |  805|     59|#define OSSL_FUNC_SIGNATURE_DUPCTX 17
  ------------------
  |  Branch (215:9): [True: 59, False: 962]
  ------------------
  216|     59|            if (signature->dupctx != NULL)
  ------------------
  |  Branch (216:17): [True: 0, False: 59]
  ------------------
  217|      0|                break;
  218|     59|            signature->dupctx = OSSL_FUNC_signature_dupctx(fns);
  219|     59|            break;
  220|     55|        case OSSL_FUNC_SIGNATURE_GET_CTX_PARAMS:
  ------------------
  |  |  806|     55|#define OSSL_FUNC_SIGNATURE_GET_CTX_PARAMS 18
  ------------------
  |  Branch (220:9): [True: 55, False: 966]
  ------------------
  221|     55|            if (signature->get_ctx_params != NULL)
  ------------------
  |  Branch (221:17): [True: 0, False: 55]
  ------------------
  222|      0|                break;
  223|     55|            signature->get_ctx_params
  224|     55|                = OSSL_FUNC_signature_get_ctx_params(fns);
  225|     55|            gparamfncnt++;
  226|     55|            break;
  227|     55|        case OSSL_FUNC_SIGNATURE_GETTABLE_CTX_PARAMS:
  ------------------
  |  |  807|     55|#define OSSL_FUNC_SIGNATURE_GETTABLE_CTX_PARAMS 19
  ------------------
  |  Branch (227:9): [True: 55, False: 966]
  ------------------
  228|     55|            if (signature->gettable_ctx_params != NULL)
  ------------------
  |  Branch (228:17): [True: 0, False: 55]
  ------------------
  229|      0|                break;
  230|     55|            signature->gettable_ctx_params
  231|     55|                = OSSL_FUNC_signature_gettable_ctx_params(fns);
  232|     55|            gparamfncnt++;
  233|     55|            break;
  234|     59|        case OSSL_FUNC_SIGNATURE_SET_CTX_PARAMS:
  ------------------
  |  |  808|     59|#define OSSL_FUNC_SIGNATURE_SET_CTX_PARAMS 20
  ------------------
  |  Branch (234:9): [True: 59, False: 962]
  ------------------
  235|     59|            if (signature->set_ctx_params != NULL)
  ------------------
  |  Branch (235:17): [True: 0, False: 59]
  ------------------
  236|      0|                break;
  237|     59|            signature->set_ctx_params
  238|     59|                = OSSL_FUNC_signature_set_ctx_params(fns);
  239|     59|            sparamfncnt++;
  240|     59|            break;
  241|     59|        case OSSL_FUNC_SIGNATURE_SETTABLE_CTX_PARAMS:
  ------------------
  |  |  809|     59|#define OSSL_FUNC_SIGNATURE_SETTABLE_CTX_PARAMS 21
  ------------------
  |  Branch (241:9): [True: 59, False: 962]
  ------------------
  242|     59|            if (signature->settable_ctx_params != NULL)
  ------------------
  |  Branch (242:17): [True: 0, False: 59]
  ------------------
  243|      0|                break;
  244|     59|            signature->settable_ctx_params
  245|     59|                = OSSL_FUNC_signature_settable_ctx_params(fns);
  246|     59|            sparamfncnt++;
  247|     59|            break;
  248|      4|        case OSSL_FUNC_SIGNATURE_GET_CTX_MD_PARAMS:
  ------------------
  |  |  810|      4|#define OSSL_FUNC_SIGNATURE_GET_CTX_MD_PARAMS 22
  ------------------
  |  Branch (248:9): [True: 4, False: 1.01k]
  ------------------
  249|      4|            if (signature->get_ctx_md_params != NULL)
  ------------------
  |  Branch (249:17): [True: 0, False: 4]
  ------------------
  250|      0|                break;
  251|      4|            signature->get_ctx_md_params
  252|      4|                = OSSL_FUNC_signature_get_ctx_md_params(fns);
  253|      4|            gmdparamfncnt++;
  254|      4|            break;
  255|      4|        case OSSL_FUNC_SIGNATURE_GETTABLE_CTX_MD_PARAMS:
  ------------------
  |  |  811|      4|#define OSSL_FUNC_SIGNATURE_GETTABLE_CTX_MD_PARAMS 23
  ------------------
  |  Branch (255:9): [True: 4, False: 1.01k]
  ------------------
  256|      4|            if (signature->gettable_ctx_md_params != NULL)
  ------------------
  |  Branch (256:17): [True: 0, False: 4]
  ------------------
  257|      0|                break;
  258|      4|            signature->gettable_ctx_md_params
  259|      4|                = OSSL_FUNC_signature_gettable_ctx_md_params(fns);
  260|      4|            gmdparamfncnt++;
  261|      4|            break;
  262|      4|        case OSSL_FUNC_SIGNATURE_SET_CTX_MD_PARAMS:
  ------------------
  |  |  812|      4|#define OSSL_FUNC_SIGNATURE_SET_CTX_MD_PARAMS 24
  ------------------
  |  Branch (262:9): [True: 4, False: 1.01k]
  ------------------
  263|      4|            if (signature->set_ctx_md_params != NULL)
  ------------------
  |  Branch (263:17): [True: 0, False: 4]
  ------------------
  264|      0|                break;
  265|      4|            signature->set_ctx_md_params
  266|      4|                = OSSL_FUNC_signature_set_ctx_md_params(fns);
  267|      4|            smdparamfncnt++;
  268|      4|            break;
  269|      4|        case OSSL_FUNC_SIGNATURE_SETTABLE_CTX_MD_PARAMS:
  ------------------
  |  |  813|      4|#define OSSL_FUNC_SIGNATURE_SETTABLE_CTX_MD_PARAMS 25
  ------------------
  |  Branch (269:9): [True: 4, False: 1.01k]
  ------------------
  270|      4|            if (signature->settable_ctx_md_params != NULL)
  ------------------
  |  Branch (270:17): [True: 0, False: 4]
  ------------------
  271|      0|                break;
  272|      4|            signature->settable_ctx_md_params
  273|      4|                = OSSL_FUNC_signature_settable_ctx_md_params(fns);
  274|      4|            smdparamfncnt++;
  275|      4|            break;
  276|     36|        case OSSL_FUNC_SIGNATURE_QUERY_KEY_TYPES:
  ------------------
  |  |  814|     36|#define OSSL_FUNC_SIGNATURE_QUERY_KEY_TYPES 26
  ------------------
  |  Branch (276:9): [True: 36, False: 985]
  ------------------
  277|     36|            if (signature->query_key_types != NULL)
  ------------------
  |  Branch (277:17): [True: 0, False: 36]
  ------------------
  278|      0|                break;
  279|     36|            signature->query_key_types
  280|     36|                = OSSL_FUNC_signature_query_key_types(fns);
  281|     36|            break;
  282|  1.02k|        }
  283|  1.02k|    }
  284|       |    /*
  285|       |     * In order to be a consistent set of functions we must have at least
  286|       |     * a set of context functions (newctx and freectx) as well as a set of
  287|       |     * "signature" functions.  Because there's an overlap between some sets
  288|       |     * of functions, counters don't always cut it, we must test known
  289|       |     * combinations.
  290|       |     * We start by assuming the implementation is valid, and then look for
  291|       |     * reasons it's not.
  292|       |     */
  293|     59|    valid = 1;
  294|       |    /* Start with the ones where counters say enough */
  295|     59|    if (ctxfncnt != 2) {
  ------------------
  |  Branch (295:9): [True: 0, False: 59]
  ------------------
  296|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  297|      0|            "missing %s newctx or freectx:%s", signature->type_name, desc);
  298|      0|        valid = 0;
  299|      0|    }
  300|     59|    if (valid
  ------------------
  |  Branch (300:9): [True: 59, False: 0]
  ------------------
  301|     59|        && ((gparamfncnt != 0 && gparamfncnt != 2)
  ------------------
  |  Branch (301:14): [True: 55, False: 4]
  |  Branch (301:34): [True: 0, False: 55]
  ------------------
  302|     59|            || (sparamfncnt != 0 && sparamfncnt != 2)
  ------------------
  |  Branch (302:17): [True: 59, False: 0]
  |  Branch (302:37): [True: 0, False: 59]
  ------------------
  303|     59|            || (gmdparamfncnt != 0 && gmdparamfncnt != 2)
  ------------------
  |  Branch (303:17): [True: 4, False: 55]
  |  Branch (303:39): [True: 0, False: 4]
  ------------------
  304|     59|            || (smdparamfncnt != 0 && smdparamfncnt != 2))) {
  ------------------
  |  Branch (304:17): [True: 4, False: 55]
  |  Branch (304:39): [True: 0, False: 4]
  ------------------
  305|       |        /*
  306|       |         * Params functions are optional, but if defined, they must
  307|       |         * be pairwise complete sets, i.e. a getter must have an
  308|       |         * associated gettable, etc
  309|       |         */
  310|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  311|      0|            "missing %s params getter or setter:%s", signature->type_name, desc);
  312|      0|        valid = 0;
  313|      0|    }
  314|     59|    if (valid && initfncnt == 0) {
  ------------------
  |  Branch (314:9): [True: 59, False: 0]
  |  Branch (314:18): [True: 0, False: 59]
  ------------------
  315|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  316|      0|            "missing %s init:%s", signature->type_name, desc);
  317|      0|        valid = 0;
  318|      0|    }
  319|       |
  320|       |    /* Now we check for function combinations */
  321|     59|    if (valid
  ------------------
  |  Branch (321:9): [True: 59, False: 0]
  ------------------
  322|     59|        && ((signature->sign_init != NULL
  ------------------
  |  Branch (322:14): [True: 40, False: 19]
  ------------------
  323|     40|                && signature->sign == NULL)
  ------------------
  |  Branch (323:20): [True: 0, False: 40]
  ------------------
  324|     59|            || (signature->sign_message_init != NULL
  ------------------
  |  Branch (324:17): [True: 51, False: 8]
  ------------------
  325|     51|                && signature->sign == NULL
  ------------------
  |  Branch (325:20): [True: 0, False: 51]
  ------------------
  326|      0|                && (signature->sign_message_update == NULL
  ------------------
  |  Branch (326:21): [True: 0, False: 0]
  ------------------
  327|      0|                    || signature->sign_message_final == NULL)))) {
  ------------------
  |  Branch (327:24): [True: 0, False: 0]
  ------------------
  328|       |        /* sign_init function(s) with no signing function?  That's weird */
  329|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  330|      0|            "missing %s signing function:%s", signature->type_name, desc);
  331|      0|        valid = 0;
  332|      0|    }
  333|     59|    if (valid
  ------------------
  |  Branch (333:9): [True: 59, False: 0]
  ------------------
  334|     59|        && (signature->sign != NULL
  ------------------
  |  Branch (334:13): [True: 55, False: 4]
  ------------------
  335|      4|            || signature->sign_message_update != NULL
  ------------------
  |  Branch (335:16): [True: 0, False: 4]
  ------------------
  336|      4|            || signature->sign_message_final != NULL)
  ------------------
  |  Branch (336:16): [True: 0, False: 4]
  ------------------
  337|     55|        && signature->sign_init == NULL
  ------------------
  |  Branch (337:12): [True: 15, False: 40]
  ------------------
  338|     15|        && signature->sign_message_init == NULL) {
  ------------------
  |  Branch (338:12): [True: 0, False: 15]
  ------------------
  339|       |        /* signing function(s) with no sign_init? That's odd */
  340|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  341|      0|            "missing %s sign_init or sign_message_init:%s", signature->type_name, desc);
  342|      0|        valid = 0;
  343|      0|    }
  344|       |
  345|     59|    if (valid
  ------------------
  |  Branch (345:9): [True: 59, False: 0]
  ------------------
  346|     59|        && ((signature->verify_init != NULL
  ------------------
  |  Branch (346:14): [True: 40, False: 19]
  ------------------
  347|     40|                && signature->verify == NULL)
  ------------------
  |  Branch (347:20): [True: 0, False: 40]
  ------------------
  348|     59|            || (signature->verify_message_init != NULL
  ------------------
  |  Branch (348:17): [True: 51, False: 8]
  ------------------
  349|     51|                && signature->verify == NULL
  ------------------
  |  Branch (349:20): [True: 0, False: 51]
  ------------------
  350|      0|                && (signature->verify_message_update == NULL
  ------------------
  |  Branch (350:21): [True: 0, False: 0]
  ------------------
  351|      0|                    || signature->verify_message_final == NULL)))) {
  ------------------
  |  Branch (351:24): [True: 0, False: 0]
  ------------------
  352|       |        /* verify_init function(s) with no verification function?  That's weird */
  353|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  354|      0|            "missing %s verification function:%s", signature->type_name, desc);
  355|      0|        valid = 0;
  356|      0|    }
  357|     59|    if (valid
  ------------------
  |  Branch (357:9): [True: 59, False: 0]
  ------------------
  358|     59|        && (signature->verify != NULL
  ------------------
  |  Branch (358:13): [True: 55, False: 4]
  ------------------
  359|      4|            || signature->verify_message_update != NULL
  ------------------
  |  Branch (359:16): [True: 0, False: 4]
  ------------------
  360|      4|            || signature->verify_message_final != NULL)
  ------------------
  |  Branch (360:16): [True: 0, False: 4]
  ------------------
  361|     55|        && signature->verify_init == NULL
  ------------------
  |  Branch (361:12): [True: 15, False: 40]
  ------------------
  362|     15|        && signature->verify_message_init == NULL) {
  ------------------
  |  Branch (362:12): [True: 0, False: 15]
  ------------------
  363|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  364|      0|            "missing %s verify_init or verify_message_init:%s",
  365|      0|            signature->type_name, desc);
  366|       |        /* verification function(s) with no verify_init? That's odd */
  367|      0|        valid = 0;
  368|      0|    }
  369|       |
  370|     59|    if (valid
  ------------------
  |  Branch (370:9): [True: 59, False: 0]
  ------------------
  371|     59|        && (signature->verify_recover_init != NULL)
  ------------------
  |  Branch (371:12): [True: 14, False: 45]
  ------------------
  372|     14|        && (signature->verify_recover == NULL)) {
  ------------------
  |  Branch (372:12): [True: 0, False: 14]
  ------------------
  373|       |        /* verify_recover_init function with no verify_recover?  How quaint */
  374|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  375|      0|            "missing %s verify_recover:%s", signature->type_name, desc);
  376|      0|        valid = 0;
  377|      0|    }
  378|       |
  379|     59|    if (valid
  ------------------
  |  Branch (379:9): [True: 59, False: 0]
  ------------------
  380|     59|        && (signature->digest_sign_init != NULL
  ------------------
  |  Branch (380:13): [True: 25, False: 34]
  ------------------
  381|     25|            && signature->digest_sign == NULL
  ------------------
  |  Branch (381:16): [True: 8, False: 17]
  ------------------
  382|      8|            && (signature->digest_sign_update == NULL
  ------------------
  |  Branch (382:17): [True: 0, False: 8]
  ------------------
  383|      8|                || signature->digest_sign_final == NULL))) {
  ------------------
  |  Branch (383:20): [True: 0, False: 8]
  ------------------
  384|       |        /* You can't have a digest_sign_init without *some* performing functions */
  385|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  386|      0|            "missing %s digest_sign function:%s", signature->type_name, desc);
  387|      0|        valid = 0;
  388|      0|    }
  389|       |
  390|     59|    if (valid
  ------------------
  |  Branch (390:9): [True: 59, False: 0]
  ------------------
  391|     59|        && ((signature->digest_verify_init != NULL
  ------------------
  |  Branch (391:14): [True: 21, False: 38]
  ------------------
  392|     21|            && signature->digest_verify == NULL
  ------------------
  |  Branch (392:16): [True: 4, False: 17]
  ------------------
  393|      4|            && (signature->digest_verify_update == NULL
  ------------------
  |  Branch (393:17): [True: 0, False: 4]
  ------------------
  394|      4|                || signature->digest_verify_final == NULL)))) {
  ------------------
  |  Branch (394:20): [True: 0, False: 4]
  ------------------
  395|       |        /* You can't have a digest_verify_init without *some* performing functions */
  396|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  397|      0|            "missing %s digest_verify function:%s", signature->type_name, desc);
  398|      0|        valid = 0;
  399|      0|    }
  400|       |
  401|     59|    if (!valid)
  ------------------
  |  Branch (401:9): [True: 0, False: 59]
  ------------------
  402|      0|        goto err;
  403|       |
  404|     59|    if ((signature->digest_sign != NULL
  ------------------
  |  Branch (404:10): [True: 17, False: 42]
  ------------------
  405|     42|            || signature->digest_sign_update != NULL
  ------------------
  |  Branch (405:16): [True: 8, False: 34]
  ------------------
  406|     34|            || signature->digest_sign_final != NULL)
  ------------------
  |  Branch (406:16): [True: 0, False: 34]
  ------------------
  407|     25|        && signature->digest_sign_init == NULL) {
  ------------------
  |  Branch (407:12): [True: 0, False: 25]
  ------------------
  408|       |        /* digest signing function(s) with no digest_sign_init? That's odd */
  409|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  410|      0|            "missing %s digest_sign_init:%s", signature->type_name, desc);
  411|      0|        goto err;
  412|      0|    }
  413|       |
  414|     59|    if ((signature->digest_verify != NULL
  ------------------
  |  Branch (414:10): [True: 17, False: 42]
  ------------------
  415|     42|            || signature->digest_verify_update != NULL
  ------------------
  |  Branch (415:16): [True: 4, False: 38]
  ------------------
  416|     38|            || signature->digest_verify_final != NULL)
  ------------------
  |  Branch (416:16): [True: 0, False: 38]
  ------------------
  417|     21|        && signature->digest_verify_init == NULL) {
  ------------------
  |  Branch (417:12): [True: 0, False: 21]
  ------------------
  418|       |        /* digest verification function(s) with no digest_verify_init? That's odd */
  419|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  420|      0|            "missing %s digest_verify_init:%s", signature->type_name, desc);
  421|      0|        goto err;
  422|      0|    }
  423|       |
  424|     59|    if ((signature->sign_message_update == NULL) != (signature->sign_message_final == NULL)) {
  ------------------
  |  Branch (424:9): [True: 0, False: 59]
  ------------------
  425|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  426|      0|            "only one of %s message signing update and final available:%s",
  427|      0|            signature->type_name, desc);
  428|      0|        goto err;
  429|      0|    }
  430|     59|    if ((signature->verify_message_update == NULL) != (signature->verify_message_final == NULL)) {
  ------------------
  |  Branch (430:9): [True: 0, False: 59]
  ------------------
  431|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  432|      0|            "only one of %s message verification update and final available:%s",
  433|      0|            signature->type_name, desc);
  434|      0|        goto err;
  435|      0|    }
  436|     59|    if ((signature->digest_sign_update == NULL) != (signature->digest_sign_final == NULL)) {
  ------------------
  |  Branch (436:9): [True: 0, False: 59]
  ------------------
  437|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  438|      0|            "only one of %s digest signing update and final available:%s",
  439|      0|            signature->type_name, desc);
  440|      0|        goto err;
  441|      0|    }
  442|     59|    if ((signature->digest_verify_update == NULL) != (signature->digest_verify_final == NULL)) {
  ------------------
  |  Branch (442:9): [True: 0, False: 59]
  ------------------
  443|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   78|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   70|      0|#define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
  ------------------
  444|      0|            "only one of %s digest verification update and final available:%s",
  445|      0|            signature->type_name, desc);
  446|      0|        goto err;
  447|      0|    }
  448|       |
  449|     59|    return signature;
  450|      0|err:
  451|      0|    EVP_SIGNATURE_free(signature);
  452|       |    return NULL;
  453|     59|}
signature.c:evp_signature_new:
   34|     59|{
   35|     59|    EVP_SIGNATURE *signature = OPENSSL_zalloc(sizeof(EVP_SIGNATURE));
  ------------------
  |  |  108|     59|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   36|       |
   37|     59|    if (signature == NULL)
  ------------------
  |  Branch (37:9): [True: 0, False: 59]
  ------------------
   38|      0|        return NULL;
   39|       |
   40|     59|    if (!CRYPTO_NEW_REF(&signature->refcnt, 1)
  ------------------
  |  Branch (40:9): [True: 0, False: 59]
  ------------------
   41|     59|        || !ossl_provider_up_ref(prov)) {
  ------------------
  |  Branch (41:12): [True: 0, False: 59]
  ------------------
   42|      0|        CRYPTO_FREE_REF(&signature->refcnt);
   43|      0|        OPENSSL_free(signature);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   44|      0|        return NULL;
   45|      0|    }
   46|       |
   47|     59|    signature->prov = prov;
   48|       |
   49|     59|    return signature;
   50|     59|}
signature.c:evp_signature_up_ref:
   29|    501|{
   30|    501|    return EVP_SIGNATURE_up_ref(data);
   31|    501|}
signature.c:evp_signature_free:
   24|     59|{
   25|     59|    EVP_SIGNATURE_free(data);
   26|     59|}

ossl_do_ex_data_init:
   15|      2|{
   16|      2|    OSSL_EX_DATA_GLOBAL *global = ossl_lib_ctx_get_ex_data_global(ctx);
   17|       |
   18|      2|    if (global == NULL)
  ------------------
  |  Branch (18:9): [True: 0, False: 2]
  ------------------
   19|      0|        return 0;
   20|       |
   21|      2|    global->ex_data_lock = CRYPTO_THREAD_lock_new();
   22|       |    return global->ex_data_lock != NULL;
   23|      2|}
ossl_crypto_get_ex_new_index_ex:
  154|      1|{
  155|      1|    int toret = -1;
  156|      1|    EX_CALLBACK *a;
  157|      1|    EX_CALLBACKS *ip;
  158|      1|    OSSL_EX_DATA_GLOBAL *global = ossl_lib_ctx_get_ex_data_global(ctx);
  159|       |
  160|      1|    if (global == NULL)
  ------------------
  |  Branch (160:9): [True: 0, False: 1]
  ------------------
  161|      0|        return -1;
  162|       |
  163|      1|    ip = get_and_lock(global, class_index, 0);
  164|      1|    if (ip == NULL)
  ------------------
  |  Branch (164:9): [True: 0, False: 1]
  ------------------
  165|      0|        return -1;
  166|       |
  167|      1|    if (ip->meth == NULL) {
  ------------------
  |  Branch (167:9): [True: 1, False: 0]
  ------------------
  168|      1|        ip->meth = sk_EX_CALLBACK_new_null();
  169|       |        /* We push an initial value on the stack because the SSL
  170|       |         * "app_data" routines use ex_data index zero.  See RT 3710. */
  171|      1|        if (ip->meth == NULL
  ------------------
  |  Branch (171:13): [True: 0, False: 1]
  ------------------
  172|      1|            || !sk_EX_CALLBACK_push(ip->meth, NULL)) {
  ------------------
  |  Branch (172:16): [True: 0, False: 1]
  ------------------
  173|      0|            sk_EX_CALLBACK_free(ip->meth);
  174|      0|            ip->meth = NULL;
  175|      0|            ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  176|      0|            goto err;
  177|      0|        }
  178|      1|    }
  179|       |
  180|      1|    a = (EX_CALLBACK *)OPENSSL_malloc(sizeof(*a));
  ------------------
  |  |  106|      1|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  181|      1|    if (a == NULL)
  ------------------
  |  Branch (181:9): [True: 0, False: 1]
  ------------------
  182|      0|        goto err;
  183|      1|    a->argl = argl;
  184|      1|    a->argp = argp;
  185|      1|    a->new_func = new_func;
  186|      1|    a->dup_func = dup_func;
  187|      1|    a->free_func = free_func;
  188|      1|    a->priority = priority;
  189|       |
  190|      1|    if (!sk_EX_CALLBACK_push(ip->meth, NULL)) {
  ------------------
  |  Branch (190:9): [True: 0, False: 1]
  ------------------
  191|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  192|      0|        OPENSSL_free(a);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  193|      0|        goto err;
  194|      0|    }
  195|      1|    toret = sk_EX_CALLBACK_num(ip->meth) - 1;
  196|      1|    (void)sk_EX_CALLBACK_set(ip->meth, toret, a);
  197|       |
  198|      1|err:
  199|      1|    CRYPTO_THREAD_unlock(global->ex_data_lock);
  200|      1|    return toret;
  201|      1|}
CRYPTO_get_ex_new_index:
  206|      1|{
  207|       |    return ossl_crypto_get_ex_new_index_ex(NULL, class_index, argl, argp,
  208|      1|        new_func, dup_func, free_func, 0);
  209|      1|}
ossl_crypto_new_ex_data_ex:
  220|   355k|{
  221|   355k|    int mx, i;
  222|   355k|    void *ptr;
  223|   355k|    EX_CALLBACK **storage = NULL;
  224|   355k|    EX_CALLBACK *stack[10];
  225|   355k|    EX_CALLBACKS *ip;
  226|   355k|    OSSL_EX_DATA_GLOBAL *global = ossl_lib_ctx_get_ex_data_global(ctx);
  227|       |
  228|   355k|    if (global == NULL)
  ------------------
  |  Branch (228:9): [True: 0, False: 355k]
  ------------------
  229|      0|        return 0;
  230|       |
  231|   355k|    ip = get_and_lock(global, class_index, 1);
  232|   355k|    if (ip == NULL)
  ------------------
  |  Branch (232:9): [True: 0, False: 355k]
  ------------------
  233|      0|        return 0;
  234|       |
  235|   355k|    ad->ctx = ctx;
  236|   355k|    ad->sk = NULL;
  237|   355k|    mx = sk_EX_CALLBACK_num(ip->meth);
  238|   355k|    if (mx > 0) {
  ------------------
  |  Branch (238:9): [True: 0, False: 355k]
  ------------------
  239|      0|        if (mx < (int)OSSL_NELEM(stack))
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (239:13): [True: 0, False: 0]
  ------------------
  240|      0|            storage = stack;
  241|      0|        else
  242|      0|            storage = OPENSSL_malloc_array(mx, sizeof(*storage));
  ------------------
  |  |  110|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  243|      0|        if (storage != NULL)
  ------------------
  |  Branch (243:13): [True: 0, False: 0]
  ------------------
  244|      0|            for (i = 0; i < mx; i++)
  ------------------
  |  Branch (244:25): [True: 0, False: 0]
  ------------------
  245|      0|                storage[i] = sk_EX_CALLBACK_value(ip->meth, i);
  246|      0|    }
  247|   355k|    CRYPTO_THREAD_unlock(global->ex_data_lock);
  248|       |
  249|   355k|    if (mx > 0 && storage == NULL)
  ------------------
  |  Branch (249:9): [True: 0, False: 355k]
  |  Branch (249:19): [True: 0, False: 0]
  ------------------
  250|      0|        return 0;
  251|   355k|    for (i = 0; i < mx; i++) {
  ------------------
  |  Branch (251:17): [True: 0, False: 355k]
  ------------------
  252|      0|        if (storage[i] != NULL && storage[i]->new_func != NULL) {
  ------------------
  |  Branch (252:13): [True: 0, False: 0]
  |  Branch (252:35): [True: 0, False: 0]
  ------------------
  253|      0|            ptr = CRYPTO_get_ex_data(ad, i);
  254|      0|            storage[i]->new_func(obj, ptr, ad, i,
  255|      0|                storage[i]->argl, storage[i]->argp);
  256|      0|        }
  257|      0|    }
  258|   355k|    if (storage != stack)
  ------------------
  |  Branch (258:9): [True: 355k, False: 0]
  ------------------
  259|   355k|        OPENSSL_free(storage);
  ------------------
  |  |  131|   355k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  260|   355k|    return 1;
  261|   355k|}
CRYPTO_new_ex_data:
  264|   355k|{
  265|       |    return ossl_crypto_new_ex_data_ex(NULL, class_index, obj, ad);
  266|   355k|}
CRYPTO_free_ex_data:
  367|   355k|{
  368|   355k|    int mx, i;
  369|   355k|    EX_CALLBACKS *ip;
  370|   355k|    void *ptr;
  371|   355k|    const EX_CALLBACK *f;
  372|   355k|    struct ex_callback_entry stack[10];
  373|   355k|    struct ex_callback_entry *storage = NULL;
  374|   355k|    OSSL_EX_DATA_GLOBAL *global = ossl_lib_ctx_get_ex_data_global(ad->ctx);
  375|       |
  376|   355k|    if (global == NULL)
  ------------------
  |  Branch (376:9): [True: 0, False: 355k]
  ------------------
  377|      0|        goto err;
  378|       |
  379|   355k|    ip = get_and_lock(global, class_index, 1);
  380|   355k|    if (ip == NULL)
  ------------------
  |  Branch (380:9): [True: 0, False: 355k]
  ------------------
  381|      0|        goto err;
  382|       |
  383|   355k|    mx = sk_EX_CALLBACK_num(ip->meth);
  384|   355k|    if (mx > 0) {
  ------------------
  |  Branch (384:9): [True: 0, False: 355k]
  ------------------
  385|      0|        if (mx < (int)OSSL_NELEM(stack))
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (385:13): [True: 0, False: 0]
  ------------------
  386|      0|            storage = stack;
  387|      0|        else
  388|      0|            storage = OPENSSL_malloc_array(mx, sizeof(*storage));
  ------------------
  |  |  110|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  389|      0|        if (storage != NULL)
  ------------------
  |  Branch (389:13): [True: 0, False: 0]
  ------------------
  390|      0|            for (i = 0; i < mx; i++) {
  ------------------
  |  Branch (390:25): [True: 0, False: 0]
  ------------------
  391|      0|                storage[i].excb = sk_EX_CALLBACK_value(ip->meth, i);
  392|      0|                storage[i].index = i;
  393|      0|            }
  394|      0|    }
  395|   355k|    CRYPTO_THREAD_unlock(global->ex_data_lock);
  396|       |
  397|   355k|    if (storage != NULL) {
  ------------------
  |  Branch (397:9): [True: 0, False: 355k]
  ------------------
  398|       |        /* Sort according to priority. High priority first */
  399|      0|        qsort(storage, mx, sizeof(*storage), ex_callback_compare);
  400|      0|        for (i = 0; i < mx; i++) {
  ------------------
  |  Branch (400:21): [True: 0, False: 0]
  ------------------
  401|      0|            f = storage[i].excb;
  402|       |
  403|      0|            if (f != NULL && f->free_func != NULL) {
  ------------------
  |  Branch (403:17): [True: 0, False: 0]
  |  Branch (403:30): [True: 0, False: 0]
  ------------------
  404|      0|                ptr = CRYPTO_get_ex_data(ad, storage[i].index);
  405|      0|                f->free_func(obj, ptr, ad, storage[i].index, f->argl, f->argp);
  406|      0|            }
  407|      0|        }
  408|      0|    }
  409|       |
  410|   355k|    if (storage != stack)
  ------------------
  |  Branch (410:9): [True: 355k, False: 0]
  ------------------
  411|   355k|        OPENSSL_free(storage);
  ------------------
  |  |  131|   355k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  412|   355k|err:
  413|   355k|    sk_void_free(ad->sk);
  ------------------
  |  |  225|   355k|#define sk_void_free(sk) OPENSSL_sk_free(ossl_check_void_sk_type(sk))
  ------------------
  414|   355k|    ad->sk = NULL;
  415|       |    ad->ctx = NULL;
  416|   355k|}
CRYPTO_set_ex_data:
  469|    220|{
  470|    220|    int i;
  471|       |
  472|    220|    if (ad->sk == NULL) {
  ------------------
  |  Branch (472:9): [True: 220, False: 0]
  ------------------
  473|    220|        if ((ad->sk = sk_void_new_null()) == NULL) {
  ------------------
  |  |  222|    220|#define sk_void_new_null() ((STACK_OF(void) *)OPENSSL_sk_new_null())
  ------------------
  |  Branch (473:13): [True: 0, False: 220]
  ------------------
  474|      0|            ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  475|      0|            return 0;
  476|      0|        }
  477|    220|    }
  478|       |
  479|    440|    for (i = sk_void_num(ad->sk); i <= idx; ++i) {
  ------------------
  |  |  219|    220|#define sk_void_num(sk) OPENSSL_sk_num(ossl_check_const_void_sk_type(sk))
  ------------------
  |  Branch (479:35): [True: 220, False: 220]
  ------------------
  480|    220|        if (!sk_void_push(ad->sk, NULL)) {
  ------------------
  |  |  229|    220|#define sk_void_push(sk, ptr) OPENSSL_sk_push(ossl_check_void_sk_type(sk), ossl_check_void_type(ptr))
  ------------------
  |  Branch (480:13): [True: 0, False: 220]
  ------------------
  481|      0|            ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  482|      0|            return 0;
  483|      0|        }
  484|    220|    }
  485|    220|    if (sk_void_set(ad->sk, idx, val) != val) {
  ------------------
  |  |  235|    220|#define sk_void_set(sk, idx, ptr) ((void *)OPENSSL_sk_set(ossl_check_void_sk_type(sk), (idx), ossl_check_void_type(ptr)))
  ------------------
  |  Branch (485:9): [True: 0, False: 220]
  ------------------
  486|       |        /* Probably the index is out of bounds */
  487|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  488|      0|        return 0;
  489|      0|    }
  490|    220|    return 1;
  491|    220|}
ex_data.c:get_and_lock:
   33|   711k|{
   34|   711k|    EX_CALLBACKS *ip;
   35|       |
   36|   711k|    if (class_index < 0 || class_index >= CRYPTO_EX_INDEX__COUNT) {
  ------------------
  |  |  269|   711k|#define CRYPTO_EX_INDEX__COUNT 18
  ------------------
  |  Branch (36:9): [True: 0, False: 711k]
  |  Branch (36:28): [True: 0, False: 711k]
  ------------------
   37|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   38|      0|        return NULL;
   39|      0|    }
   40|       |
   41|   711k|    if (global->ex_data_lock == NULL) {
  ------------------
  |  Branch (41:9): [True: 0, False: 711k]
  ------------------
   42|       |        /*
   43|       |         * If we get here, someone (who?) cleaned up the lock, so just
   44|       |         * treat it as an error.
   45|       |         */
   46|      0|        return NULL;
   47|      0|    }
   48|       |
   49|   711k|    if (read) {
  ------------------
  |  Branch (49:9): [True: 711k, False: 1]
  ------------------
   50|   711k|        if (!CRYPTO_THREAD_read_lock(global->ex_data_lock))
  ------------------
  |  Branch (50:13): [True: 0, False: 711k]
  ------------------
   51|      0|            return NULL;
   52|   711k|    } else {
   53|      1|        if (!CRYPTO_THREAD_write_lock(global->ex_data_lock))
  ------------------
  |  Branch (53:13): [True: 0, False: 1]
  ------------------
   54|      0|            return NULL;
   55|      1|    }
   56|       |
   57|   711k|    ip = &global->ex_data[class_index];
   58|   711k|    return ip;
   59|   711k|}

ossl_safe_getenv:
   19|      2|{
   20|       |#if defined(_WIN32) && defined(CP_UTF8) && !defined(_WIN32_WCE)
   21|       |    if (GetEnvironmentVariableW(L"OPENSSL_WIN32_UTF8", NULL, 0) != 0) {
   22|       |        char *val = NULL;
   23|       |        int vallen = 0;
   24|       |        WCHAR *namew = NULL;
   25|       |        WCHAR *valw = NULL;
   26|       |        DWORD envlen = 0;
   27|       |        DWORD dwFlags = MB_ERR_INVALID_CHARS;
   28|       |        int rsize, fsize;
   29|       |        UINT curacp;
   30|       |
   31|       |        curacp = GetACP();
   32|       |
   33|       |        /*
   34|       |         * For the code pages listed below, dwFlags must be set to 0.
   35|       |         * Otherwise, the function fails with ERROR_INVALID_FLAGS.
   36|       |         */
   37|       |        if (curacp == 50220 || curacp == 50221 || curacp == 50222 || curacp == 50225 || curacp == 50227 || curacp == 50229 || (57002 <= curacp && curacp <= 57011) || curacp == 65000 || curacp == 42)
   38|       |            dwFlags = 0;
   39|       |
   40|       |        /* query for buffer len */
   41|       |        rsize = MultiByteToWideChar(curacp, dwFlags, name, -1, NULL, 0);
   42|       |        /* if name is valid string and can be converted to wide string */
   43|       |        if (rsize > 0)
   44|       |            namew = _malloca(rsize * sizeof(WCHAR));
   45|       |
   46|       |        if (NULL != namew) {
   47|       |            /* convert name to wide string */
   48|       |            fsize = MultiByteToWideChar(curacp, dwFlags, name, -1, namew, rsize);
   49|       |            /* if conversion is ok, then determine value string size in wchars */
   50|       |            if (fsize > 0)
   51|       |                envlen = GetEnvironmentVariableW(namew, NULL, 0);
   52|       |        }
   53|       |
   54|       |        if (envlen > 0)
   55|       |            valw = _malloca(envlen * sizeof(WCHAR));
   56|       |
   57|       |        if (NULL != valw) {
   58|       |            /* if can get env value as wide string */
   59|       |            if (GetEnvironmentVariableW(namew, valw, envlen) < envlen) {
   60|       |                /* determine value string size in utf-8 */
   61|       |                vallen = WideCharToMultiByte(CP_UTF8, 0, valw, -1, NULL, 0,
   62|       |                    NULL, NULL);
   63|       |            }
   64|       |        }
   65|       |
   66|       |        if (vallen > 0)
   67|       |            val = OPENSSL_malloc(vallen);
   68|       |
   69|       |        if (NULL != val) {
   70|       |            /* convert value string from wide to utf-8 */
   71|       |            if (WideCharToMultiByte(CP_UTF8, 0, valw, -1, val, vallen,
   72|       |                    NULL, NULL)
   73|       |                == 0) {
   74|       |                OPENSSL_free(val);
   75|       |                val = NULL;
   76|       |            }
   77|       |        }
   78|       |
   79|       |        if (NULL != namew)
   80|       |            _freea(namew);
   81|       |
   82|       |        if (NULL != valw)
   83|       |            _freea(valw);
   84|       |
   85|       |        return val;
   86|       |    }
   87|       |#endif
   88|       |
   89|      2|#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
   90|      2|#if __GLIBC_PREREQ(2, 17)
   91|      2|#define SECURE_GETENV
   92|      2|    return secure_getenv(name);
   93|      2|#endif
   94|      2|#endif
   95|       |
   96|       |#ifndef SECURE_GETENV
   97|       |    if (OPENSSL_issetugid())
   98|       |        return NULL;
   99|       |    return getenv(name);
  100|       |#endif
  101|      2|}

ossl_fnv1a_hash:
   14|   242k|{
   15|   242k|    uint64_t hash = 0xcbf29ce484222325ULL;
   16|   242k|    size_t i;
   17|       |
   18|  15.7M|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (18:17): [True: 15.5M, False: 242k]
  ------------------
   19|  15.5M|        hash ^= key[i];
   20|  15.5M|        hash *= 0x00000100000001B3ULL;
   21|  15.5M|    }
   22|   242k|    return hash;
   23|   242k|}

ossl_ht_new:
  178|      2|{
  179|      2|    HT *new = OPENSSL_zalloc(sizeof(*new));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  180|       |
  181|      2|    if (new == NULL)
  ------------------
  |  Branch (181:9): [True: 0, False: 2]
  ------------------
  182|      0|        return NULL;
  183|       |
  184|      2|    new->atomic_lock = CRYPTO_THREAD_lock_new();
  185|      2|    if (new->atomic_lock == NULL)
  ------------------
  |  Branch (185:9): [True: 0, False: 2]
  ------------------
  186|      0|        goto err;
  187|       |
  188|      2|    memcpy(&new->config, conf, sizeof(*conf));
  189|       |
  190|      2|    if (new->config.init_neighborhoods != 0) {
  ------------------
  |  Branch (190:9): [True: 2, False: 0]
  ------------------
  191|      2|        new->wpd.neighborhood_len = new->config.init_neighborhoods;
  192|       |        /* round up to the next power of 2 */
  193|      2|        new->wpd.neighborhood_len--;
  194|      2|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 1;
  195|      2|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 2;
  196|      2|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 4;
  197|      2|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 8;
  198|      2|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 16;
  199|      2|        new->wpd.neighborhood_len++;
  200|      2|    } else {
  201|      0|        new->wpd.neighborhood_len = DEFAULT_NEIGH_LEN;
  ------------------
  |  |   97|      0|#define DEFAULT_NEIGH_LEN (1 << DEFAULT_NEIGH_LEN_LOG)
  |  |  ------------------
  |  |  |  |   96|      0|#define DEFAULT_NEIGH_LEN_LOG 4
  |  |  ------------------
  ------------------
  202|      0|    }
  203|       |
  204|      2|    if (new->config.ht_free_fn == NULL)
  ------------------
  |  Branch (204:9): [True: 2, False: 0]
  ------------------
  205|      2|        new->config.ht_free_fn = internal_free_nop;
  206|       |
  207|      2|    new->md = OPENSSL_zalloc(sizeof(*new->md));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  208|      2|    if (new->md == NULL)
  ------------------
  |  Branch (208:9): [True: 0, False: 2]
  ------------------
  209|      0|        goto err;
  210|       |
  211|      2|    new->md->neighborhoods = alloc_new_neighborhood_list(new->wpd.neighborhood_len,
  212|      2|        &new->md->neighborhood_ptr_to_free);
  213|      2|    if (new->md->neighborhoods == NULL)
  ------------------
  |  Branch (213:9): [True: 0, False: 2]
  ------------------
  214|      0|        goto err;
  215|      2|    new->md->neighborhood_mask = new->wpd.neighborhood_len - 1;
  216|       |
  217|      2|    new->lock = ossl_rcu_lock_new(1, conf->ctx);
  218|      2|    if (new->lock == NULL)
  ------------------
  |  Branch (218:9): [True: 0, False: 2]
  ------------------
  219|      0|        goto err;
  220|       |
  221|      2|    if (new->config.ht_hash_fn == NULL)
  ------------------
  |  Branch (221:9): [True: 2, False: 0]
  ------------------
  222|      2|        new->config.ht_hash_fn = ossl_fnv1a_hash;
  223|       |
  224|      2|    return new;
  225|       |
  226|      0|err:
  227|      0|    CRYPTO_THREAD_lock_free(new->atomic_lock);
  228|      0|    ossl_rcu_lock_free(new->lock);
  229|      0|    if (new->md != NULL)
  ------------------
  |  Branch (229:9): [True: 0, False: 0]
  ------------------
  230|      0|        OPENSSL_free(new->md->neighborhood_ptr_to_free);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  231|      0|    OPENSSL_free(new->md);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  232|      0|    OPENSSL_free(new);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  233|       |    return NULL;
  234|      2|}
ossl_ht_insert:
  628|    590|{
  629|    590|    struct ht_internal_value_st *newval = NULL;
  630|    590|    uint64_t hash;
  631|    590|    int rc = 0;
  632|    590|    int i;
  633|       |
  634|    590|    if (data->value == NULL)
  ------------------
  |  Branch (634:9): [True: 0, False: 590]
  ------------------
  635|      0|        goto out;
  636|       |
  637|    590|    rc = -1;
  638|    590|    newval = alloc_new_value(h, key, data->value, data->type_id);
  639|    590|    if (newval == NULL)
  ------------------
  |  Branch (639:9): [True: 0, False: 590]
  ------------------
  640|      0|        goto out;
  641|       |
  642|       |    /*
  643|       |     * we have to take our lock here to prevent other changes
  644|       |     * to the bucket list
  645|       |     */
  646|    590|    hash = h->config.ht_hash_fn(key->keybuf, key->keysize);
  647|       |
  648|    590|    for (i = 0;
  649|    590|        (rc = ossl_ht_insert_locked(h, hash, newval, olddata)) == -1
  ------------------
  |  Branch (649:9): [True: 0, False: 590]
  ------------------
  650|      0|        && i < 4;
  ------------------
  |  Branch (650:12): [True: 0, False: 0]
  ------------------
  651|    590|        ++i)
  652|      0|        if (!grow_hashtable(h, h->wpd.neighborhood_len)) {
  ------------------
  |  Branch (652:13): [True: 0, False: 0]
  ------------------
  653|      0|            rc = -1;
  654|      0|            break;
  655|      0|        }
  656|       |
  657|    590|    if (rc <= 0)
  ------------------
  |  Branch (657:9): [True: 0, False: 590]
  ------------------
  658|      0|        free_value(newval);
  659|       |
  660|    590|out:
  661|    590|    return rc;
  662|    590|}
ossl_ht_get:
  665|   242k|{
  666|   242k|    struct ht_mutable_data_st *md;
  667|   242k|    uint64_t hash;
  668|   242k|    uint64_t neigh_idx_start;
  669|   242k|    uint64_t neigh_idx;
  670|   242k|    struct ht_internal_value_st *ival = NULL;
  671|   242k|    size_t j;
  672|   242k|    uint64_t ehash;
  673|   242k|    int lockless_reads = h->config.lockless_reads;
  674|       |
  675|   242k|    hash = h->config.ht_hash_fn(key->keybuf, key->keysize);
  676|       |
  677|   242k|    md = ossl_rcu_deref(&h->md);
  ------------------
  |  |   30|   242k|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  678|   242k|    neigh_idx = neigh_idx_start = hash & md->neighborhood_mask;
  679|   242k|    do {
  680|   242k|        PREFETCH_NEIGHBORHOOD(md->neighborhoods[neigh_idx]);
  ------------------
  |  |   83|   242k|#define PREFETCH_NEIGHBORHOOD(x) __builtin_prefetch(x.entries)
  ------------------
  681|   276k|        for (j = 0; j < NEIGHBORHOOD_LEN; j++) {
  ------------------
  |  |  105|   276k|#define NEIGHBORHOOD_LEN (CACHE_LINE_BYTES / sizeof(struct ht_neighborhood_entry_st))
  |  |  ------------------
  |  |  |  |  102|   276k|#define CACHE_LINE_BYTES 64
  |  |  ------------------
  ------------------
  |  Branch (681:21): [True: 276k, False: 25]
  ------------------
  682|   276k|            ival = ossl_rcu_deref(&md->neighborhoods[neigh_idx].entries[j].value);
  ------------------
  |  |   30|   276k|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  683|   276k|            if (ival == NULL) {
  ------------------
  |  Branch (683:17): [True: 6.07k, False: 270k]
  ------------------
  684|  6.07k|                if (lockless_reads)
  ------------------
  |  Branch (684:21): [True: 6.07k, False: 0]
  ------------------
  685|       |                    /* lockless_reads implies no deletion, we can break out */
  686|  6.07k|                    return NULL;
  687|      0|                continue;
  688|  6.07k|            }
  689|   270k|            if (!CRYPTO_atomic_load(&md->neighborhoods[neigh_idx].entries[j].hash,
  ------------------
  |  Branch (689:17): [True: 0, False: 270k]
  ------------------
  690|   270k|                    &ehash, h->atomic_lock))
  691|      0|                return NULL;
  692|   270k|            if (compare_hash(hash, ehash) && match_key(&ival->value.key, key))
  ------------------
  |  Branch (692:17): [True: 235k, False: 34.0k]
  |  Branch (692:46): [True: 235k, False: 0]
  ------------------
  693|   235k|                return (HT_VALUE *)ival;
  694|   270k|        }
  695|     25|        if (!lockless_reads)
  ------------------
  |  Branch (695:13): [True: 0, False: 25]
  ------------------
  696|      0|            break;
  697|       |        /* Continue search in subsequent neighborhoods */
  698|     25|        neigh_idx = (neigh_idx + 1) & md->neighborhood_mask;
  699|     25|    } while (neigh_idx != neigh_idx_start);
  ------------------
  |  Branch (699:14): [True: 25, False: 0]
  ------------------
  700|       |
  701|      0|    return NULL;
  702|   242k|}
hashtable.c:alloc_new_neighborhood_list:
  156|      2|{
  157|      2|    struct ht_neighborhood_st *ret;
  158|       |
  159|      2|    ret = OPENSSL_aligned_alloc_array(len, sizeof(struct ht_neighborhood_st),
  ------------------
  |  |  117|      2|    CRYPTO_aligned_alloc_array(num, size, alignment, freeptr,      \
  |  |  118|      2|        OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  160|      2|        CACHE_LINE_BYTES, freeptr);
  161|       |
  162|       |    /* fall back to regular malloc */
  163|      2|    if (ret == NULL) {
  ------------------
  |  Branch (163:9): [True: 0, False: 2]
  ------------------
  164|      0|        ret = *freeptr = OPENSSL_malloc_array(len, sizeof(struct ht_neighborhood_st));
  ------------------
  |  |  110|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  165|      0|        if (ret == NULL)
  ------------------
  |  Branch (165:13): [True: 0, False: 0]
  ------------------
  166|      0|            return NULL;
  167|      0|    }
  168|      2|    memset(ret, 0, sizeof(struct ht_neighborhood_st) * len);
  169|      2|    return ret;
  170|      2|}
hashtable.c:alloc_new_value:
  597|    590|{
  598|    590|    struct ht_internal_value_st *tmp;
  599|    590|    size_t nvsize = sizeof(*tmp);
  600|       |
  601|    590|    if (h->config.collision_check == 1)
  ------------------
  |  Branch (601:9): [True: 590, False: 0]
  ------------------
  602|    590|        nvsize += key->keysize;
  603|       |
  604|    590|    tmp = OPENSSL_malloc(nvsize);
  ------------------
  |  |  106|    590|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  605|       |
  606|    590|    if (tmp == NULL)
  ------------------
  |  Branch (606:9): [True: 0, False: 590]
  ------------------
  607|      0|        return NULL;
  608|       |
  609|    590|    tmp->ht = h;
  610|    590|    tmp->value.value = data;
  611|    590|    tmp->value.type_id = type;
  612|    590|    tmp->value.key.keybuf = NULL;
  613|    590|    if (h->config.collision_check) {
  ------------------
  |  Branch (613:9): [True: 590, False: 0]
  ------------------
  614|    590|        tmp->value.key.keybuf = (uint8_t *)(tmp + 1);
  615|    590|        tmp->value.key.keysize = key->keysize;
  616|    590|        memcpy(tmp->value.key.keybuf, key->keybuf, key->keysize);
  617|    590|    }
  618|       |
  619|    590|    return tmp;
  620|    590|}
hashtable.c:ossl_ht_insert_locked:
  533|    590|{
  534|    590|    struct ht_mutable_data_st *md = h->md;
  535|    590|    uint64_t neigh_idx_start = hash & md->neighborhood_mask;
  536|    590|    uint64_t neigh_idx = neigh_idx_start;
  537|    590|    size_t j;
  538|    590|    uint64_t ihash;
  539|    590|    HT_VALUE *ival;
  540|    590|    size_t empty_idx = SIZE_MAX;
  541|    590|    int lockless_reads = h->config.lockless_reads;
  542|       |
  543|    597|    do {
  544|    597|        PREFETCH_NEIGHBORHOOD(md->neighborhoods[neigh_idx]);
  ------------------
  |  |   83|    597|#define PREFETCH_NEIGHBORHOOD(x) __builtin_prefetch(x.entries)
  ------------------
  545|       |
  546|    935|        for (j = 0; j < NEIGHBORHOOD_LEN; j++) {
  ------------------
  |  |  105|    935|#define NEIGHBORHOOD_LEN (CACHE_LINE_BYTES / sizeof(struct ht_neighborhood_entry_st))
  |  |  ------------------
  |  |  |  |  102|    935|#define CACHE_LINE_BYTES 64
  |  |  ------------------
  ------------------
  |  Branch (546:21): [True: 928, False: 7]
  ------------------
  547|    928|            ival = ossl_rcu_deref(&md->neighborhoods[neigh_idx].entries[j].value);
  ------------------
  |  |   30|    928|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  548|    928|            if (ival == NULL) {
  ------------------
  |  Branch (548:17): [True: 590, False: 338]
  ------------------
  549|    590|                empty_idx = j;
  550|       |                /* lockless_reads implies no deletion, we can break out */
  551|    590|                if (lockless_reads)
  ------------------
  |  Branch (551:21): [True: 590, False: 0]
  ------------------
  552|    590|                    goto not_found;
  553|      0|                continue;
  554|    590|            }
  555|    338|            if (!CRYPTO_atomic_load(&md->neighborhoods[neigh_idx].entries[j].hash,
  ------------------
  |  Branch (555:17): [True: 0, False: 338]
  ------------------
  556|    338|                    &ihash, h->atomic_lock))
  557|      0|                return 0;
  558|    338|            if (compare_hash(hash, ihash) && match_key(&newval->value.key, &ival->key)) {
  ------------------
  |  Branch (558:17): [True: 0, False: 338]
  |  Branch (558:46): [True: 0, False: 0]
  ------------------
  559|      0|                if (olddata == NULL) {
  ------------------
  |  Branch (559:21): [True: 0, False: 0]
  ------------------
  560|       |                    /* This would insert a duplicate -> fail */
  561|      0|                    return 0;
  562|      0|                }
  563|       |                /* Do a replacement */
  564|      0|                if (!CRYPTO_atomic_store(&md->neighborhoods[neigh_idx].entries[j].hash,
  ------------------
  |  Branch (564:21): [True: 0, False: 0]
  ------------------
  565|      0|                        hash, h->atomic_lock))
  566|      0|                    return 0;
  567|      0|                *olddata = (HT_VALUE *)md->neighborhoods[neigh_idx].entries[j].value;
  568|      0|                ossl_rcu_assign_ptr(&md->neighborhoods[neigh_idx].entries[j].value,
  ------------------
  |  |   31|      0|#define ossl_rcu_assign_ptr(p, v) ossl_rcu_assign_uptr((void **)p, (void **)v)
  ------------------
  569|      0|                    &newval);
  570|      0|                ossl_rcu_call(h->lock, free_old_ht_value, *olddata);
  571|      0|                h->wpd.need_sync = 1;
  572|      0|                return 1;
  573|      0|            }
  574|    338|        }
  575|      7|        if (!lockless_reads)
  ------------------
  |  Branch (575:13): [True: 0, False: 7]
  ------------------
  576|      0|            break;
  577|       |        /* Continue search in subsequent neighborhoods */
  578|      7|        neigh_idx = (neigh_idx + 1) & md->neighborhood_mask;
  579|      7|    } while (neigh_idx != neigh_idx_start);
  ------------------
  |  Branch (579:14): [True: 7, False: 0]
  ------------------
  580|       |
  581|    590|not_found:
  582|       |    /* If we get to here, its just an insert */
  583|    590|    if (empty_idx == SIZE_MAX)
  ------------------
  |  Branch (583:9): [True: 0, False: 590]
  ------------------
  584|      0|        return -1; /* out of space */
  585|    590|    if (!CRYPTO_atomic_store(&md->neighborhoods[neigh_idx].entries[empty_idx].hash,
  ------------------
  |  Branch (585:9): [True: 0, False: 590]
  ------------------
  586|    590|            hash, h->atomic_lock))
  587|      0|        return 0;
  588|    590|    h->wpd.value_count++;
  589|    590|    ossl_rcu_assign_ptr(&md->neighborhoods[neigh_idx].entries[empty_idx].value,
  ------------------
  |  |   31|    590|#define ossl_rcu_assign_ptr(p, v) ossl_rcu_assign_uptr((void **)p, (void **)v)
  ------------------
  590|    590|        &newval);
  591|    590|    return 1;
  592|    590|}
hashtable.c:compare_hash:
  406|   270k|{
  407|   270k|    return (hash1 == hash2);
  408|   270k|}
hashtable.c:match_key:
  517|   235k|{
  518|       |    /*
  519|       |     * keys match if they are both present, the same size
  520|       |     * and compare equal in memory
  521|       |     */
  522|   235k|    PREFETCH(a->keybuf);
  ------------------
  |  |   84|   235k|#define PREFETCH(x) __builtin_prefetch(x)
  ------------------
  523|   235k|    PREFETCH(b->keybuf);
  ------------------
  |  |   84|   235k|#define PREFETCH(x) __builtin_prefetch(x)
  ------------------
  524|   235k|    if (a->keybuf != NULL && b->keybuf != NULL && a->keysize == b->keysize)
  ------------------
  |  Branch (524:9): [True: 235k, False: 0]
  |  Branch (524:30): [True: 235k, False: 0]
  |  Branch (524:51): [True: 235k, False: 0]
  ------------------
  525|   235k|        return !memcmp(a->keybuf, b->keybuf, a->keysize);
  526|       |
  527|      0|    return 1;
  528|   235k|}

ossl_err_load_HTTP_strings:
   82|      2|{
   83|      2|#ifndef OPENSSL_NO_ERR
   84|      2|    if (ERR_reason_error_string(HTTP_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (84:9): [True: 2, False: 0]
  ------------------
   85|      2|        ERR_load_strings_const(HTTP_str_reasons);
   86|      2|#endif
   87|      2|    return 1;
   88|      2|}

ossl_indicator_set_callback_new:
   21|      2|{
   22|      2|    INDICATOR_CB *cb;
   23|       |
   24|      2|    cb = OPENSSL_zalloc(sizeof(*cb));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   25|      2|    return cb;
   26|      2|}

OPENSSL_init_crypto:
  497|  1.68M|{
  498|  1.68M|    uint64_t tmp;
  499|  1.68M|    int aloaddone = 0;
  500|       |
  501|       |    /* Applications depend on 0 being returned when cleanup was already done */
  502|  1.68M|    if (ossl_unlikely(stopped)) {
  ------------------
  |  |   23|  1.68M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.68M]
  |  |  ------------------
  ------------------
  503|      0|        if (!(opts & OPENSSL_INIT_BASE_ONLY))
  ------------------
  |  |   31|      0|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (503:13): [True: 0, False: 0]
  ------------------
  504|      0|            ERR_raise(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  505|      0|        return 0;
  506|      0|    }
  507|       |
  508|       |    /*
  509|       |     * We ignore failures from this function. It is probably because we are
  510|       |     * on a platform that doesn't support lockless atomic loads (we may not
  511|       |     * have created optsdone_lock yet so we can't use it). This is just an
  512|       |     * optimisation to skip the full checks in this function if we don't need
  513|       |     * to, so we carry on regardless in the event of failure.
  514|       |     *
  515|       |     * There could be a race here with other threads, so that optsdone has not
  516|       |     * been updated yet, even though the options have in fact been initialised.
  517|       |     * This doesn't matter - it just means we will run the full function
  518|       |     * unnecessarily - but all the critical code is contained in RUN_ONCE
  519|       |     * functions anyway so we are safe.
  520|       |     */
  521|  1.68M|    if (ossl_likely(CRYPTO_atomic_load(&optsdone, &tmp, NULL))) {
  ------------------
  |  |   22|  1.68M|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.68M, False: 0]
  |  |  ------------------
  ------------------
  522|  1.68M|        if ((tmp & opts) == opts)
  ------------------
  |  Branch (522:13): [True: 171k, False: 1.50M]
  ------------------
  523|   171k|            return 1;
  524|  1.50M|        aloaddone = 1;
  525|  1.50M|    }
  526|       |
  527|       |    /*
  528|       |     * At some point we should look at this function with a view to moving
  529|       |     * most/all of this into OSSL_LIB_CTX.
  530|       |     *
  531|       |     * When the caller specifies OPENSSL_INIT_BASE_ONLY, that should be the
  532|       |     * *only* option specified.  With that option we return immediately after
  533|       |     * doing the requested limited initialization.  Note that
  534|       |     * err_shelve_state() called by us via ossl_init_load_crypto_nodelete()
  535|       |     * re-enters OPENSSL_init_crypto() with OPENSSL_INIT_BASE_ONLY, but with
  536|       |     * base already initialized this is a harmless NOOP.
  537|       |     *
  538|       |     * If we remain the only caller of err_shelve_state() the recursion should
  539|       |     * perhaps be removed, but if in doubt, it can be left in place.
  540|       |     */
  541|  1.50M|    if (ossl_unlikely(!RUN_ONCE(&base, ossl_init_base)))
  ------------------
  |  |   23|  3.01M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.50M]
  |  |  |  Branch (23:46): [True: 1.50M, False: 0]
  |  |  ------------------
  ------------------
  542|      0|        return 0;
  543|       |
  544|  1.50M|    if (opts & OPENSSL_INIT_BASE_ONLY)
  ------------------
  |  |   31|  1.50M|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (544:9): [True: 1.50M, False: 5]
  ------------------
  545|  1.50M|        return 1;
  546|       |
  547|       |    /*
  548|       |     * optsdone_lock should definitely be set up now, so we can now repeat the
  549|       |     * same check from above but be sure that it will work even on platforms
  550|       |     * without lockless CRYPTO_atomic_load
  551|       |     */
  552|      5|    if (!aloaddone) {
  ------------------
  |  Branch (552:9): [True: 0, False: 5]
  ------------------
  553|      0|        if (!CRYPTO_atomic_load(&optsdone, &tmp, optsdone_lock))
  ------------------
  |  Branch (553:13): [True: 0, False: 0]
  ------------------
  554|      0|            return 0;
  555|      0|        if ((tmp & opts) == opts)
  ------------------
  |  Branch (555:13): [True: 0, False: 0]
  ------------------
  556|      0|            return 1;
  557|      0|    }
  558|       |
  559|       |    /*
  560|       |     * Now we don't always set up exit handlers, the INIT_BASE_ONLY calls
  561|       |     * should not have the side-effect of setting up exit handlers, and
  562|       |     * therefore, this code block is below the INIT_BASE_ONLY-conditioned early
  563|       |     * return above.
  564|       |     */
  565|      5|    if ((opts & OPENSSL_INIT_NO_ATEXIT) != 0) {
  ------------------
  |  |  523|      5|#define OPENSSL_INIT_NO_ATEXIT 0x00080000L
  ------------------
  |  Branch (565:9): [True: 0, False: 5]
  ------------------
  566|      0|        if (!RUN_ONCE_ALT(&register_atexit, ossl_init_no_register_atexit,
  ------------------
  |  |  148|      0|    (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (148:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (566:13): [True: 0, False: 0]
  ------------------
  567|      0|                ossl_init_register_atexit))
  568|      0|            return 0;
  569|      5|    } else if (!RUN_ONCE(&register_atexit, ossl_init_register_atexit)) {
  ------------------
  |  |  130|      5|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 5, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (569:16): [True: 0, False: 5]
  ------------------
  570|      0|        return 0;
  571|      0|    }
  572|       |
  573|      5|    if (!RUN_ONCE(&load_crypto_nodelete, ossl_init_load_crypto_nodelete))
  ------------------
  |  |  130|      5|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 5, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (573:9): [True: 0, False: 5]
  ------------------
  574|      0|        return 0;
  575|       |
  576|      5|    if ((opts & OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS)
  ------------------
  |  |  504|      5|#define OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS 0x00000001L
  ------------------
  |  Branch (576:9): [True: 0, False: 5]
  ------------------
  577|      0|        && !RUN_ONCE_ALT(&load_crypto_strings,
  ------------------
  |  |  148|      0|    (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (148:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (577:12): [True: 0, False: 0]
  ------------------
  578|      5|            ossl_init_no_load_crypto_strings,
  579|      5|            ossl_init_load_crypto_strings))
  580|      0|        return 0;
  581|       |
  582|      5|    if ((opts & OPENSSL_INIT_LOAD_CRYPTO_STRINGS)
  ------------------
  |  |  505|      5|#define OPENSSL_INIT_LOAD_CRYPTO_STRINGS 0x00000002L
  ------------------
  |  Branch (582:9): [True: 2, False: 3]
  ------------------
  583|      2|        && !RUN_ONCE(&load_crypto_strings, ossl_init_load_crypto_strings))
  ------------------
  |  |  130|      2|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (583:12): [True: 0, False: 2]
  ------------------
  584|      0|        return 0;
  585|       |
  586|      5|    if ((opts & OPENSSL_INIT_NO_LOAD_SSL_STRINGS)
  ------------------
  |  | 2821|      5|#define OPENSSL_INIT_NO_LOAD_SSL_STRINGS 0x00100000L
  ------------------
  |  Branch (586:9): [True: 0, False: 5]
  ------------------
  587|      0|        && !RUN_ONCE_ALT(&ssl_strings, ossl_init_no_load_ssl_strings,
  ------------------
  |  |  148|      0|    (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (148:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (587:12): [True: 0, False: 0]
  ------------------
  588|      5|            ossl_init_load_ssl_strings))
  589|      0|        return 0;
  590|       |
  591|      5|    if ((opts & OPENSSL_INIT_LOAD_SSL_STRINGS)
  ------------------
  |  | 2822|      5|#define OPENSSL_INIT_LOAD_SSL_STRINGS 0x00200000L
  ------------------
  |  Branch (591:9): [True: 1, False: 4]
  ------------------
  592|      1|        && !RUN_ONCE(&ssl_strings, ossl_init_load_ssl_strings))
  ------------------
  |  |  130|      1|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 1, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (592:12): [True: 0, False: 1]
  ------------------
  593|      0|        return 0;
  594|       |
  595|      5|    if ((opts & OPENSSL_INIT_NO_ADD_ALL_CIPHERS)
  ------------------
  |  |  508|      5|#define OPENSSL_INIT_NO_ADD_ALL_CIPHERS 0x00000010L
  ------------------
  |  Branch (595:9): [True: 0, False: 5]
  ------------------
  596|      0|        && !RUN_ONCE_ALT(&add_all_ciphers, ossl_init_no_add_all_ciphers,
  ------------------
  |  |  148|      0|    (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (148:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (596:12): [True: 0, False: 0]
  ------------------
  597|      5|            ossl_init_add_all_ciphers))
  598|      0|        return 0;
  599|       |
  600|      5|    if ((opts & OPENSSL_INIT_ADD_ALL_CIPHERS)
  ------------------
  |  |  506|      5|#define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L
  ------------------
  |  Branch (600:9): [True: 3, False: 2]
  ------------------
  601|      3|        && !RUN_ONCE(&add_all_ciphers, ossl_init_add_all_ciphers))
  ------------------
  |  |  130|      3|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 3, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (601:12): [True: 0, False: 3]
  ------------------
  602|      0|        return 0;
  603|       |
  604|      5|    if ((opts & OPENSSL_INIT_NO_ADD_ALL_DIGESTS)
  ------------------
  |  |  509|      5|#define OPENSSL_INIT_NO_ADD_ALL_DIGESTS 0x00000020L
  ------------------
  |  Branch (604:9): [True: 0, False: 5]
  ------------------
  605|      0|        && !RUN_ONCE_ALT(&add_all_digests, ossl_init_no_add_all_digests,
  ------------------
  |  |  148|      0|    (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (148:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (605:12): [True: 0, False: 0]
  ------------------
  606|      5|            ossl_init_add_all_digests))
  607|      0|        return 0;
  608|       |
  609|      5|    if ((opts & OPENSSL_INIT_ADD_ALL_DIGESTS)
  ------------------
  |  |  507|      5|#define OPENSSL_INIT_ADD_ALL_DIGESTS 0x00000008L
  ------------------
  |  Branch (609:9): [True: 3, False: 2]
  ------------------
  610|      3|        && !RUN_ONCE(&add_all_digests, ossl_init_add_all_digests))
  ------------------
  |  |  130|      3|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 3, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (610:12): [True: 0, False: 3]
  ------------------
  611|      0|        return 0;
  612|       |
  613|      5|    if ((opts & OPENSSL_INIT_ATFORK)
  ------------------
  |  |  521|      5|#define OPENSSL_INIT_ATFORK 0x00020000L
  ------------------
  |  Branch (613:9): [True: 0, False: 5]
  ------------------
  614|      0|        && !openssl_init_fork_handlers())
  ------------------
  |  Branch (614:12): [True: 0, False: 0]
  ------------------
  615|      0|        return 0;
  616|       |
  617|      5|    if ((opts & OPENSSL_INIT_NO_LOAD_CONFIG)
  ------------------
  |  |  511|      5|#define OPENSSL_INIT_NO_LOAD_CONFIG 0x00000080L
  ------------------
  |  Branch (617:9): [True: 0, False: 5]
  ------------------
  618|      0|        && !RUN_ONCE_ALT(&config, ossl_init_no_config, ossl_init_config))
  ------------------
  |  |  148|      0|    (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (148:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (618:12): [True: 0, False: 0]
  ------------------
  619|      0|        return 0;
  620|       |
  621|      5|    if (opts & OPENSSL_INIT_LOAD_CONFIG) {
  ------------------
  |  |  510|      5|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  |  Branch (621:9): [True: 3, False: 2]
  ------------------
  622|      3|        int loading = CRYPTO_THREAD_get_local(&in_init_config_local) != NULL;
  623|       |
  624|       |        /* If called recursively from OBJ_ calls, just skip it. */
  625|      3|        if (!loading) {
  ------------------
  |  Branch (625:13): [True: 2, False: 1]
  ------------------
  626|      2|            int ret;
  627|       |
  628|      2|            if (!CRYPTO_THREAD_set_local(&in_init_config_local, (void *)-1))
  ------------------
  |  Branch (628:17): [True: 0, False: 2]
  ------------------
  629|      0|                return 0;
  630|      2|            if (settings == NULL) {
  ------------------
  |  Branch (630:17): [True: 2, False: 0]
  ------------------
  631|      2|                ret = RUN_ONCE(&config, ossl_init_config);
  ------------------
  |  |  130|      2|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  632|      2|            } else {
  633|      0|                if (!CRYPTO_THREAD_write_lock(init_lock))
  ------------------
  |  Branch (633:21): [True: 0, False: 0]
  ------------------
  634|      0|                    return 0;
  635|      0|                conf_settings = settings;
  636|      0|                ret = RUN_ONCE_ALT(&config, ossl_init_config_settings,
  ------------------
  |  |  148|      0|    (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (148:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  637|      0|                    ossl_init_config);
  638|      0|                conf_settings = NULL;
  639|      0|                CRYPTO_THREAD_unlock(init_lock);
  640|      0|            }
  641|       |
  642|      2|            if (ret <= 0)
  ------------------
  |  Branch (642:17): [True: 0, False: 2]
  ------------------
  643|      0|                return 0;
  644|      2|        }
  645|      3|    }
  646|       |
  647|      5|    if ((opts & OPENSSL_INIT_ASYNC)
  ------------------
  |  |  512|      5|#define OPENSSL_INIT_ASYNC 0x00000100L
  ------------------
  |  Branch (647:9): [True: 0, False: 5]
  ------------------
  648|      0|        && !RUN_ONCE(&async, ossl_init_async))
  ------------------
  |  |  130|      0|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (648:12): [True: 0, False: 0]
  ------------------
  649|      0|        return 0;
  650|       |
  651|      5|#ifndef OPENSSL_NO_ENGINE
  652|      5|    if ((opts & OPENSSL_INIT_ENGINE_OPENSSL)
  ------------------
  |  |  515|      5|#define OPENSSL_INIT_ENGINE_OPENSSL 0x00000800L
  ------------------
  |  Branch (652:9): [True: 0, False: 5]
  ------------------
  653|      0|        && !RUN_ONCE(&engine_openssl, ossl_init_engine_openssl))
  ------------------
  |  |  130|      0|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (653:12): [True: 0, False: 0]
  ------------------
  654|      0|        return 0;
  655|      5|#ifndef OPENSSL_NO_RDRAND
  656|      5|    if ((opts & OPENSSL_INIT_ENGINE_RDRAND)
  ------------------
  |  |  513|      5|#define OPENSSL_INIT_ENGINE_RDRAND 0x00000200L
  ------------------
  |  Branch (656:9): [True: 2, False: 3]
  ------------------
  657|      2|        && !RUN_ONCE(&engine_rdrand, ossl_init_engine_rdrand))
  ------------------
  |  |  130|      2|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (657:12): [True: 0, False: 2]
  ------------------
  658|      0|        return 0;
  659|      5|#endif
  660|      5|    if ((opts & OPENSSL_INIT_ENGINE_DYNAMIC)
  ------------------
  |  |  514|      5|#define OPENSSL_INIT_ENGINE_DYNAMIC 0x00000400L
  ------------------
  |  Branch (660:9): [True: 2, False: 3]
  ------------------
  661|      2|        && !RUN_ONCE(&engine_dynamic, ossl_init_engine_dynamic))
  ------------------
  |  |  130|      2|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (661:12): [True: 0, False: 2]
  ------------------
  662|      0|        return 0;
  663|      5|#ifndef OPENSSL_NO_STATIC_ENGINE
  664|       |#ifndef OPENSSL_NO_DEVCRYPTOENG
  665|       |    if ((opts & OPENSSL_INIT_ENGINE_CRYPTODEV)
  666|       |        && !RUN_ONCE(&engine_devcrypto, ossl_init_engine_devcrypto))
  667|       |        return 0;
  668|       |#endif
  669|      5|#if !defined(OPENSSL_NO_PADLOCKENG)
  670|      5|    if ((opts & OPENSSL_INIT_ENGINE_PADLOCK)
  ------------------
  |  |  518|      5|#define OPENSSL_INIT_ENGINE_PADLOCK 0x00004000L
  ------------------
  |  Branch (670:9): [True: 2, False: 3]
  ------------------
  671|      2|        && !RUN_ONCE(&engine_padlock, ossl_init_engine_padlock))
  ------------------
  |  |  130|      2|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (671:12): [True: 0, False: 2]
  ------------------
  672|      0|        return 0;
  673|      5|#endif
  674|       |#if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG)
  675|       |    if ((opts & OPENSSL_INIT_ENGINE_CAPI)
  676|       |        && !RUN_ONCE(&engine_capi, ossl_init_engine_capi))
  677|       |        return 0;
  678|       |#endif
  679|      5|#if !defined(OPENSSL_NO_AFALGENG)
  680|      5|    if ((opts & OPENSSL_INIT_ENGINE_AFALG)
  ------------------
  |  |  519|      5|#define OPENSSL_INIT_ENGINE_AFALG 0x00008000L
  ------------------
  |  Branch (680:9): [True: 0, False: 5]
  ------------------
  681|      0|        && !RUN_ONCE(&engine_afalg, ossl_init_engine_afalg))
  ------------------
  |  |  130|      0|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (681:12): [True: 0, False: 0]
  ------------------
  682|      0|        return 0;
  683|      5|#endif
  684|      5|#endif
  685|      5|    if (opts & (OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_ENGINE_OPENSSL | OPENSSL_INIT_ENGINE_AFALG)) {
  ------------------
  |  |  535|      5|    (OPENSSL_INIT_ENGINE_RDRAND | OPENSSL_INIT_ENGINE_DYNAMIC \
  |  |  ------------------
  |  |  |  |  513|      5|#define OPENSSL_INIT_ENGINE_RDRAND 0x00000200L
  |  |  ------------------
  |  |                   (OPENSSL_INIT_ENGINE_RDRAND | OPENSSL_INIT_ENGINE_DYNAMIC \
  |  |  ------------------
  |  |  |  |  514|      5|#define OPENSSL_INIT_ENGINE_DYNAMIC 0x00000400L
  |  |  ------------------
  |  |  536|      5|        | OPENSSL_INIT_ENGINE_CRYPTODEV | OPENSSL_INIT_ENGINE_CAPI | OPENSSL_INIT_ENGINE_PADLOCK)
  |  |  ------------------
  |  |  |  |  516|      5|#define OPENSSL_INIT_ENGINE_CRYPTODEV 0x00001000L
  |  |  ------------------
  |  |                       | OPENSSL_INIT_ENGINE_CRYPTODEV | OPENSSL_INIT_ENGINE_CAPI | OPENSSL_INIT_ENGINE_PADLOCK)
  |  |  ------------------
  |  |  |  |  517|      5|#define OPENSSL_INIT_ENGINE_CAPI 0x00002000L
  |  |  ------------------
  |  |                       | OPENSSL_INIT_ENGINE_CRYPTODEV | OPENSSL_INIT_ENGINE_CAPI | OPENSSL_INIT_ENGINE_PADLOCK)
  |  |  ------------------
  |  |  |  |  518|      5|#define OPENSSL_INIT_ENGINE_PADLOCK 0x00004000L
  |  |  ------------------
  ------------------
                  if (opts & (OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_ENGINE_OPENSSL | OPENSSL_INIT_ENGINE_AFALG)) {
  ------------------
  |  |  515|      5|#define OPENSSL_INIT_ENGINE_OPENSSL 0x00000800L
  ------------------
                  if (opts & (OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_ENGINE_OPENSSL | OPENSSL_INIT_ENGINE_AFALG)) {
  ------------------
  |  |  519|      5|#define OPENSSL_INIT_ENGINE_AFALG 0x00008000L
  ------------------
  |  Branch (685:9): [True: 2, False: 3]
  ------------------
  686|      2|        ENGINE_register_all_complete();
  687|      2|    }
  688|      5|#endif
  689|       |
  690|      5|    if (!CRYPTO_atomic_or(&optsdone, opts, &tmp, optsdone_lock))
  ------------------
  |  Branch (690:9): [True: 0, False: 5]
  ------------------
  691|      0|        return 0;
  692|       |
  693|      5|    return 1;
  694|      5|}
init.c:ossl_init_base:
   58|      2|{
   59|       |    /* no need to init trace */
   60|       |
   61|      2|    OSSL_TRACE(INIT, "ossl_init_base: setting up stop handlers\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   62|       |#ifndef OPENSSL_NO_CRYPTO_MDEBUG
   63|       |    ossl_malloc_setup_failures();
   64|       |#endif
   65|       |
   66|      2|    if ((optsdone_lock = CRYPTO_THREAD_lock_new()) == NULL
  ------------------
  |  Branch (66:9): [True: 0, False: 2]
  ------------------
   67|      2|        || (init_lock = CRYPTO_THREAD_lock_new()) == NULL)
  ------------------
  |  Branch (67:12): [True: 0, False: 2]
  ------------------
   68|      0|        goto err;
   69|       |
   70|      2|    OPENSSL_cpuid_setup();
   71|       |
   72|      2|    if (!ossl_init_thread())
  ------------------
  |  Branch (72:9): [True: 0, False: 2]
  ------------------
   73|      0|        goto err;
   74|       |
   75|      2|    if (!CRYPTO_THREAD_init_local(&in_init_config_local, NULL))
  ------------------
  |  Branch (75:9): [True: 0, False: 2]
  ------------------
   76|      0|        goto err;
   77|       |
   78|      2|    base_inited = 1;
   79|      2|    return 1;
   80|       |
   81|      0|err:
   82|      0|    OSSL_TRACE(INIT, "ossl_init_base failed!\n");
  ------------------
  |  |  290|      0|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   83|      0|    CRYPTO_THREAD_lock_free(optsdone_lock);
   84|      0|    optsdone_lock = NULL;
   85|      0|    CRYPTO_THREAD_lock_free(init_lock);
   86|      0|    init_lock = NULL;
   87|       |
   88|      0|    return 0;
   89|      2|}
init.c:ossl_init_register_atexit:
  101|      2|{
  102|      2|#ifndef OPENSSL_NO_ATEXIT
  103|       |#ifdef OPENSSL_INIT_DEBUG
  104|       |    fprintf(stderr, "OPENSSL_INIT: ossl_init_register_atexit()\n");
  105|       |#endif
  106|      2|#ifndef OPENSSL_SYS_UEFI
  107|       |#if defined(_WIN32) && !defined(__BORLANDC__)
  108|       |    /* We use _onexit() in preference because it gets called on DLL unload */
  109|       |    if (_onexit(win32atexit) == NULL)
  110|       |        return 0;
  111|       |#else
  112|      2|    if (atexit(OPENSSL_cleanup) != 0)
  ------------------
  |  Branch (112:9): [True: 0, False: 2]
  ------------------
  113|      0|        return 0;
  114|      2|#endif
  115|      2|#endif
  116|      2|#endif
  117|       |
  118|      2|    return 1;
  119|      2|}
init.c:ossl_init_load_crypto_nodelete:
  133|      2|{
  134|      2|    OSSL_TRACE(INIT, "ossl_init_load_crypto_nodelete()\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  135|       |
  136|       |#if !defined(OPENSSL_USE_NODELETE) \
  137|       |    && !defined(OPENSSL_NO_PINSHARED)
  138|       |#if defined(DSO_WIN32) && !defined(_WIN32_WCE)
  139|       |    {
  140|       |        HMODULE handle = NULL;
  141|       |        BOOL ret;
  142|       |
  143|       |        /* We don't use the DSO route for WIN32 because there is a better way */
  144|       |        ret = GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
  145|       |                | GET_MODULE_HANDLE_EX_FLAG_PIN,
  146|       |            (void *)&base_inited, &handle);
  147|       |
  148|       |        OSSL_TRACE1(INIT,
  149|       |            "ossl_init_load_crypto_nodelete: "
  150|       |            "obtained DSO reference? %s\n",
  151|       |            (ret == TRUE ? "No!" : "Yes."));
  152|       |        return (ret == TRUE) ? 1 : 0;
  153|       |    }
  154|       |#elif !defined(DSO_NONE)
  155|       |    /*
  156|       |     * Deliberately leak a reference to ourselves. This will force the library
  157|       |     * to remain loaded until the atexit() handler is run at process exit.
  158|       |     */
  159|       |    {
  160|       |        DSO *dso;
  161|       |        void *err;
  162|       |
  163|       |        if (!err_shelve_state(&err))
  164|       |            return 0;
  165|       |
  166|       |        dso = DSO_dsobyaddr(&base_inited, DSO_FLAG_NO_UNLOAD_ON_FREE);
  167|       |        /*
  168|       |         * In case of No!, it is uncertain our exit()-handlers can still be
  169|       |         * called. After dlclose() the whole library might have been unloaded
  170|       |         * already.
  171|       |         */
  172|       |        OSSL_TRACE1(INIT, "obtained DSO reference? %s\n",
  173|       |            (dso == NULL ? "No!" : "Yes."));
  174|       |        DSO_free(dso);
  175|       |        err_unshelve_state(err);
  176|       |    }
  177|       |#endif
  178|       |#endif
  179|       |
  180|      2|    return 1;
  181|      2|}
init.c:ossl_init_load_crypto_strings:
  186|      2|{
  187|      2|    int ret = 1;
  188|       |    /*
  189|       |     * OPENSSL_NO_AUTOERRINIT is provided here to prevent at compile time
  190|       |     * pulling in all the error strings during static linking
  191|       |     */
  192|      2|#if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
  193|      2|    void *err;
  194|       |
  195|      2|    if (!err_shelve_state(&err))
  ------------------
  |  Branch (195:9): [True: 0, False: 2]
  ------------------
  196|      0|        return 0;
  197|       |
  198|      2|    OSSL_TRACE(INIT, "ossl_err_load_crypto_strings()\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  199|      2|    ret = ossl_err_load_crypto_strings();
  200|       |
  201|      2|    err_unshelve_state(err);
  202|      2|#endif
  203|      2|    return ret;
  204|      2|}
init.c:ossl_init_load_ssl_strings:
  216|      1|{
  217|       |    /*
  218|       |     * OPENSSL_NO_AUTOERRINIT is provided here to prevent at compile time
  219|       |     * pulling in all the error strings during static linking
  220|       |     */
  221|      1|#if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
  222|      1|    OSSL_TRACE(INIT, "ossl_init_load_ssl_strings: ossl_err_load_SSL_strings()\n");
  ------------------
  |  |  290|      1|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      1|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  223|      1|    ossl_err_load_SSL_strings();
  224|      1|#endif
  225|      1|    return 1;
  226|      1|}
init.c:ossl_init_add_all_ciphers:
  237|      2|{
  238|       |    /*
  239|       |     * OPENSSL_NO_AUTOALGINIT is provided here to prevent at compile time
  240|       |     * pulling in all the ciphers during static linking
  241|       |     */
  242|      2|#ifndef OPENSSL_NO_AUTOALGINIT
  243|      2|    OSSL_TRACE(INIT, "openssl_add_all_ciphers_int()\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  244|      2|    openssl_add_all_ciphers_int();
  245|      2|#endif
  246|      2|    return 1;
  247|      2|}
init.c:ossl_init_add_all_digests:
  258|      2|{
  259|       |    /*
  260|       |     * OPENSSL_NO_AUTOALGINIT is provided here to prevent at compile time
  261|       |     * pulling in all the ciphers during static linking
  262|       |     */
  263|      2|#ifndef OPENSSL_NO_AUTOALGINIT
  264|      2|    OSSL_TRACE(INIT, "openssl_add_all_digests()\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  265|      2|    openssl_add_all_digests_int();
  266|      2|#endif
  267|      2|    return 1;
  268|      2|}
init.c:ossl_init_config:
  280|      2|{
  281|      2|    int ret = ossl_config_int(NULL);
  282|       |
  283|      2|    return ret;
  284|      2|}
init.c:ossl_init_engine_rdrand:
  321|      2|{
  322|      2|    OSSL_TRACE(INIT, "engine_load_rdrand_int()\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  323|      2|    engine_load_rdrand_int();
  324|      2|    return 1;
  325|      2|}
init.c:ossl_init_engine_dynamic:
  329|      2|{
  330|      2|    OSSL_TRACE(INIT, "engine_load_dynamic_int()\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  331|      2|    engine_load_dynamic_int();
  332|      2|    return 1;
  333|      2|}
init.c:ossl_init_engine_padlock:
  347|      2|{
  348|      2|    OSSL_TRACE(INIT, "engine_load_padlock_int()\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  349|      2|    engine_load_padlock_int();
  350|      2|    return 1;
  351|      2|}

ossl_init_thread:
  266|     10|{
  267|     10|    if (CRYPTO_THREAD_compare_id(recursion_guard,
  ------------------
  |  Branch (267:9): [True: 2, False: 8]
  ------------------
  268|     10|            CRYPTO_THREAD_get_current_id()))
  269|      2|        return 1;
  270|      8|    if (!RUN_ONCE(&ossl_init_thread_runonce, ossl_init_thread_once))
  ------------------
  |  |  130|      8|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 8, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (270:9): [True: 0, False: 8]
  ------------------
  271|      0|        return 0;
  272|      8|    return 1;
  273|      8|}
ossl_init_thread_start:
  419|      3|{
  420|      3|    THREAD_EVENT_HANDLER **hands;
  421|      3|    THREAD_EVENT_HANDLER *hand;
  422|      3|    OSSL_LIB_CTX *ctx = NULL;
  423|       |#ifdef FIPS_MODULE
  424|       |    /*
  425|       |     * In FIPS mode the list of THREAD_EVENT_HANDLERs is unique per combination
  426|       |     * of OSSL_LIB_CTX and thread. This is because in FIPS mode each
  427|       |     * OSSL_LIB_CTX gets informed about thread stop events individually.
  428|       |     */
  429|       |
  430|       |    ctx = arg;
  431|       |#endif
  432|       |
  433|      3|    hands = alloc_thread_local(ctx);
  434|       |
  435|      3|    if (hands == NULL)
  ------------------
  |  Branch (435:9): [True: 0, False: 3]
  ------------------
  436|      0|        return 0;
  437|       |
  438|       |#ifdef FIPS_MODULE
  439|       |    if (*hands == NULL) {
  440|       |        /*
  441|       |         * We've not yet registered any handlers for this thread. We need to get
  442|       |         * libcrypto to tell us about later thread stop events. c_thread_start
  443|       |         * is a callback to libcrypto defined in fipsprov.c
  444|       |         */
  445|       |        if (!ossl_thread_register_fips(ctx))
  446|       |            return 0;
  447|       |    }
  448|       |#endif
  449|       |
  450|      3|    hand = OPENSSL_malloc(sizeof(*hand));
  ------------------
  |  |  106|      3|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  451|      3|    if (hand == NULL)
  ------------------
  |  Branch (451:9): [True: 0, False: 3]
  ------------------
  452|      0|        return 0;
  453|       |
  454|      3|    hand->handfn = handfn;
  455|      3|    hand->arg = arg;
  456|      3|#ifndef FIPS_MODULE
  457|      3|    hand->index = index;
  458|      3|#endif
  459|      3|    hand->next = *hands;
  460|      3|    *hands = hand;
  461|       |
  462|      3|    return 1;
  463|      3|}
initthread.c:ossl_init_thread_once:
  250|      2|{
  251|       |    /* CRYPTO_THREAD_init_local() can call ossl_init_threads() again */
  252|      2|    recursion_guard = CRYPTO_THREAD_get_current_id();
  253|      2|    if (!CRYPTO_THREAD_init_local(&destructor_key.value,
  ------------------
  |  Branch (253:9): [True: 0, False: 2]
  ------------------
  254|      2|            init_thread_destructor))
  255|      0|        return 0;
  256|       |
  257|       |#if defined(OPENSSL_SYS_TANDEM)
  258|       |    memset(&recursion_guard, 0, sizeof(recursion_guard));
  259|       |#else
  260|      2|    recursion_guard = (CRYPTO_THREAD_ID)0;
  261|      2|#endif
  262|      2|    return 1;
  263|      2|}
initthread.c:manage_thread_local:
  137|      3|{
  138|      3|    THREAD_EVENT_HANDLER **hands = get_thread_event_handler(ctx);
  139|       |
  140|      3|    if (alloc) {
  ------------------
  |  Branch (140:9): [True: 3, False: 0]
  ------------------
  141|      3|        if (hands == NULL) {
  ------------------
  |  Branch (141:13): [True: 2, False: 1]
  ------------------
  142|       |
  143|      2|            if ((hands = OPENSSL_zalloc(sizeof(*hands))) == NULL)
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (143:17): [True: 0, False: 2]
  ------------------
  144|      0|                return NULL;
  145|       |
  146|      2|            if (!set_thread_event_handler(ctx, hands)) {
  ------------------
  |  Branch (146:17): [True: 0, False: 2]
  ------------------
  147|      0|                OPENSSL_free(hands);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  148|      0|                return NULL;
  149|      0|            }
  150|      2|#ifndef FIPS_MODULE
  151|      2|            if (!init_thread_push_handlers(hands)) {
  ------------------
  |  Branch (151:17): [True: 0, False: 2]
  ------------------
  152|      0|                set_thread_event_handler(ctx, NULL);
  153|      0|                OPENSSL_free(hands);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  154|      0|                return NULL;
  155|      0|            }
  156|      2|#endif
  157|      2|        }
  158|      3|    } else if (!keep) {
  ------------------
  |  Branch (158:16): [True: 0, False: 0]
  ------------------
  159|      0|        set_thread_event_handler(ctx, NULL);
  160|      0|    }
  161|       |
  162|      3|    return hands;
  163|      3|}
initthread.c:get_thread_event_handler:
  114|      3|{
  115|       |#ifdef FIPS_MODULE
  116|       |    return CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_TEVENT_KEY, ctx);
  117|       |#else
  118|      3|    if (destructor_key.sane != -1)
  ------------------
  |  Branch (118:9): [True: 3, False: 0]
  ------------------
  119|      3|        return CRYPTO_THREAD_get_local(&destructor_key.value);
  120|      0|    return NULL;
  121|      3|#endif
  122|      3|}
initthread.c:set_thread_event_handler:
  125|      2|{
  126|       |#ifdef FIPS_MODULE
  127|       |    return CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_TEVENT_KEY, ctx, hands);
  128|       |#else
  129|      2|    if (destructor_key.sane != -1)
  ------------------
  |  Branch (129:9): [True: 2, False: 0]
  ------------------
  130|      2|        return CRYPTO_THREAD_set_local(&destructor_key.value, hands);
  131|      0|    return 0;
  132|      2|#endif
  133|      2|}
initthread.c:init_thread_push_handlers:
  192|      2|{
  193|      2|    int ret;
  194|      2|    GLOBAL_TEVENT_REGISTER *gtr;
  195|       |
  196|      2|    gtr = get_global_tevent_register();
  197|      2|    if (gtr == NULL)
  ------------------
  |  Branch (197:9): [True: 0, False: 2]
  ------------------
  198|      0|        return 0;
  199|       |
  200|      2|    if (!CRYPTO_THREAD_write_lock(gtr->lock))
  ------------------
  |  Branch (200:9): [True: 0, False: 2]
  ------------------
  201|      0|        return 0;
  202|      2|    ret = (sk_THREAD_EVENT_HANDLER_PTR_push(gtr->skhands, hands) != 0);
  203|      2|    CRYPTO_THREAD_unlock(gtr->lock);
  204|       |
  205|      2|    return ret;
  206|      2|}
initthread.c:get_global_tevent_register:
   79|      2|{
   80|      2|    if (!RUN_ONCE(&tevent_register_runonce, create_global_tevent_register))
  ------------------
  |  |  130|      2|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (80:9): [True: 0, False: 2]
  ------------------
   81|      0|        return NULL;
   82|      2|    return glob_tevent_reg;
   83|      2|}
initthread.c:create_global_tevent_register:
   60|      2|{
   61|      2|    glob_tevent_reg = OPENSSL_zalloc(sizeof(*glob_tevent_reg));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   62|      2|    if (glob_tevent_reg == NULL)
  ------------------
  |  Branch (62:9): [True: 0, False: 2]
  ------------------
   63|      0|        return 0;
   64|       |
   65|      2|    glob_tevent_reg->skhands = sk_THREAD_EVENT_HANDLER_PTR_new_null();
   66|      2|    glob_tevent_reg->lock = CRYPTO_THREAD_lock_new();
   67|      2|    if (glob_tevent_reg->skhands == NULL || glob_tevent_reg->lock == NULL) {
  ------------------
  |  Branch (67:9): [True: 0, False: 2]
  |  Branch (67:45): [True: 0, False: 2]
  ------------------
   68|      0|        sk_THREAD_EVENT_HANDLER_PTR_free(glob_tevent_reg->skhands);
   69|      0|        CRYPTO_THREAD_lock_free(glob_tevent_reg->lock);
   70|      0|        OPENSSL_free(glob_tevent_reg);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   71|      0|        glob_tevent_reg = NULL;
   72|      0|        return 0;
   73|      0|    }
   74|       |
   75|      2|    return 1;
   76|      2|}
initthread.c:alloc_thread_local:
  176|      3|{
  177|      3|    return manage_thread_local(ctx, 1, 0);
  178|      3|}

OPENSSL_LH_set_thunks:
   52|    531|{
   53|       |
   54|    531|    if (lh == NULL)
  ------------------
  |  Branch (54:9): [True: 0, False: 531]
  ------------------
   55|      0|        return NULL;
   56|    531|    lh->compw = cw;
   57|    531|    lh->hashw = hw;
   58|    531|    lh->daw = daw;
   59|    531|    lh->daaw = daaw;
   60|    531|    return lh;
   61|    531|}
OPENSSL_LH_new:
   64|    531|{
   65|    531|    OPENSSL_LHASH *ret;
   66|       |
   67|    531|    if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  108|    531|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (67:9): [True: 0, False: 531]
  ------------------
   68|      0|        return NULL;
   69|    531|    if ((ret->b = OPENSSL_calloc(MIN_NODES, sizeof(*ret->b))) == NULL)
  ------------------
  |  |  112|    531|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (69:9): [True: 0, False: 531]
  ------------------
   70|      0|        goto err;
   71|    531|    ret->comp = ((c == NULL) ? (OPENSSL_LH_COMPFUNC)strcmp : c);
  ------------------
  |  Branch (71:18): [True: 0, False: 531]
  ------------------
   72|    531|    ret->hash = ((h == NULL) ? (OPENSSL_LH_HASHFUNC)OPENSSL_LH_strhash : h);
  ------------------
  |  Branch (72:18): [True: 0, False: 531]
  ------------------
   73|    531|    ret->num_nodes = MIN_NODES / 2;
  ------------------
  |  |   39|    531|#define MIN_NODES 16
  ------------------
   74|    531|    ret->num_alloc_nodes = MIN_NODES;
  ------------------
  |  |   39|    531|#define MIN_NODES 16
  ------------------
   75|    531|    ret->pmax = MIN_NODES / 2;
  ------------------
  |  |   39|    531|#define MIN_NODES 16
  ------------------
   76|    531|    ret->up_load = UP_LOAD;
  ------------------
  |  |   40|    531|#define UP_LOAD (2 * LH_LOAD_MULT) /* load times 256 (default 2) */
  |  |  ------------------
  |  |  |  |   92|    531|#define LH_LOAD_MULT 256
  |  |  ------------------
  ------------------
   77|    531|    ret->down_load = DOWN_LOAD;
  ------------------
  |  |   41|    531|#define DOWN_LOAD (LH_LOAD_MULT) /* load times 256 (default 1) */
  |  |  ------------------
  |  |  |  |   92|    531|#define LH_LOAD_MULT 256
  |  |  ------------------
  ------------------
   78|    531|    return ret;
   79|       |
   80|      0|err:
   81|      0|    OPENSSL_free(ret->b);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   82|      0|    OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   83|       |    return NULL;
   84|    531|}
OPENSSL_LH_free:
   87|    220|{
   88|    220|    if (lh == NULL)
  ------------------
  |  Branch (88:9): [True: 0, False: 220]
  ------------------
   89|      0|        return;
   90|       |
   91|    220|    OPENSSL_LH_flush(lh);
   92|    220|    OPENSSL_free(lh->b);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   93|    220|    OPENSSL_free(lh);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   94|    220|}
OPENSSL_LH_flush:
   97|    266|{
   98|    266|    unsigned int i;
   99|    266|    OPENSSL_LH_NODE *n, *nn;
  100|       |
  101|    266|    if (lh == NULL)
  ------------------
  |  Branch (101:9): [True: 0, False: 266]
  ------------------
  102|      0|        return;
  103|       |
  104|  2.39k|    for (i = 0; i < lh->num_nodes; i++) {
  ------------------
  |  Branch (104:17): [True: 2.12k, False: 266]
  ------------------
  105|  2.12k|        n = lh->b[i];
  106|  2.12k|        while (n != NULL) {
  ------------------
  |  Branch (106:16): [True: 0, False: 2.12k]
  ------------------
  107|      0|            nn = n->next;
  108|      0|            OPENSSL_free(n);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  109|      0|            n = nn;
  110|      0|        }
  111|  2.12k|        lh->b[i] = NULL;
  112|  2.12k|    }
  113|       |
  114|    266|    lh->num_items = 0;
  115|    266|}
OPENSSL_LH_insert:
  118|  10.2k|{
  119|  10.2k|    unsigned long hash;
  120|  10.2k|    OPENSSL_LH_NODE *nn, **rn;
  121|  10.2k|    void *ret;
  122|       |
  123|  10.2k|    lh->error = 0;
  124|  10.2k|    if ((lh->up_load <= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)) && !expand(lh))
  ------------------
  |  |   92|  10.2k|#define LH_LOAD_MULT 256
  ------------------
  |  Branch (124:9): [True: 1.93k, False: 8.27k]
  |  Branch (124:76): [True: 0, False: 1.93k]
  ------------------
  125|      0|        return NULL; /* 'lh->error++' already done in 'expand' */
  126|       |
  127|  10.2k|    rn = getrn(lh, data, &hash);
  128|       |
  129|  10.2k|    if (*rn == NULL) {
  ------------------
  |  Branch (129:9): [True: 4.02k, False: 6.18k]
  ------------------
  130|  4.02k|        if ((nn = OPENSSL_malloc(sizeof(*nn))) == NULL) {
  ------------------
  |  |  106|  4.02k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (130:13): [True: 0, False: 4.02k]
  ------------------
  131|      0|            lh->error++;
  132|      0|            return NULL;
  133|      0|        }
  134|  4.02k|        nn->data = data;
  135|  4.02k|        nn->next = NULL;
  136|  4.02k|        nn->hash = hash;
  137|  4.02k|        *rn = nn;
  138|  4.02k|        ret = NULL;
  139|  4.02k|        lh->num_items++;
  140|  6.18k|    } else { /* replace same key */
  141|  6.18k|        ret = (*rn)->data;
  142|  6.18k|        (*rn)->data = data;
  143|  6.18k|    }
  144|  10.2k|    return ret;
  145|  10.2k|}
OPENSSL_LH_retrieve:
  173|  69.4k|{
  174|  69.4k|    unsigned long hash;
  175|  69.4k|    OPENSSL_LH_NODE **rn;
  176|       |
  177|  69.4k|    if (lh->error != 0)
  ------------------
  |  Branch (177:9): [True: 0, False: 69.4k]
  ------------------
  178|      0|        lh->error = 0;
  179|       |
  180|  69.4k|    rn = getrn(lh, data, &hash);
  181|       |
  182|  69.4k|    return *rn == NULL ? NULL : (*rn)->data;
  ------------------
  |  Branch (182:12): [True: 8.88k, False: 60.5k]
  ------------------
  183|  69.4k|}
OPENSSL_LH_doall:
  216|     46|{
  217|     46|    if (lh == NULL)
  ------------------
  |  Branch (217:9): [True: 0, False: 46]
  ------------------
  218|      0|        return;
  219|       |
  220|     46|    doall_util_fn(lh, 0, lh->daw, func, (OPENSSL_LH_DOALL_FUNCARG)NULL,
  221|     46|        (OPENSSL_LH_DOALL_FUNCARG_THUNK)NULL, NULL);
  222|     46|}
OPENSSL_LH_doall_arg_thunk:
  237|      2|{
  238|      2|    doall_util_fn(lh, 1, (OPENSSL_LH_DOALL_FUNC_THUNK)NULL,
  239|       |        (OPENSSL_LH_DOALL_FUNC)NULL, fn, daaw, arg);
  240|      2|}
OPENSSL_LH_strhash:
  360|  34.3k|{
  361|  34.3k|    unsigned long ret = 0;
  362|  34.3k|    long n;
  363|  34.3k|    unsigned long v;
  364|  34.3k|    int r;
  365|       |
  366|  34.3k|    if ((c == NULL) || (*c == '\0'))
  ------------------
  |  Branch (366:9): [True: 0, False: 34.3k]
  |  Branch (366:24): [True: 27.1k, False: 7.24k]
  ------------------
  367|  27.1k|        return ret;
  368|       |
  369|  7.24k|    n = 0x100;
  370|  80.7k|    while (*c) {
  ------------------
  |  Branch (370:12): [True: 73.5k, False: 7.24k]
  ------------------
  371|  73.5k|        v = n | (*c);
  372|  73.5k|        n += 0x100;
  373|  73.5k|        r = (int)((v >> 2) ^ v) & 0x0f;
  374|       |        /* cast to uint64_t to avoid 32 bit shift of 32 bit value */
  375|  73.5k|        ret = (ret << r) | (unsigned long)((uint64_t)ret >> (32 - r));
  376|  73.5k|        ret &= 0xFFFFFFFFL;
  377|  73.5k|        ret ^= v * v;
  378|  73.5k|        c++;
  379|  73.5k|    }
  380|  7.24k|    return (ret >> 16) ^ ret;
  381|  34.3k|}
ossl_lh_strcasehash:
  398|  97.4k|{
  399|  97.4k|    unsigned long ret = 0;
  400|  97.4k|    long n;
  401|  97.4k|    unsigned long v;
  402|  97.4k|    int r;
  403|       |#if defined(CHARSET_EBCDIC) && !defined(CHARSET_EBCDIC_TEST)
  404|       |    const long int case_adjust = ~0x40;
  405|       |#else
  406|  97.4k|    const long int case_adjust = ~0x20;
  407|  97.4k|#endif
  408|       |
  409|  97.4k|    if (c == NULL || *c == '\0')
  ------------------
  |  Branch (409:9): [True: 0, False: 97.4k]
  |  Branch (409:22): [True: 0, False: 97.4k]
  ------------------
  410|      0|        return ret;
  411|       |
  412|  1.27M|    for (n = 0x100; *c != '\0'; n += 0x100) {
  ------------------
  |  Branch (412:21): [True: 1.17M, False: 97.4k]
  ------------------
  413|  1.17M|        v = n | (case_adjust & *c);
  414|  1.17M|        r = (int)((v >> 2) ^ v) & 0x0f;
  415|       |        /* cast to uint64_t to avoid 32 bit shift of 32 bit value */
  416|  1.17M|        ret = (ret << r) | (unsigned long)((uint64_t)ret >> (32 - r));
  417|  1.17M|        ret &= 0xFFFFFFFFL;
  418|  1.17M|        ret ^= v * v;
  419|  1.17M|        c++;
  420|  1.17M|    }
  421|  97.4k|    return (ret >> 16) ^ ret;
  422|  97.4k|}
OPENSSL_LH_num_items:
  425|     46|{
  426|     46|    return lh ? lh->num_items : 0;
  ------------------
  |  Branch (426:12): [True: 46, False: 0]
  ------------------
  427|     46|}
OPENSSL_LH_get_down_load:
  430|    220|{
  431|    220|    return lh->down_load;
  432|    220|}
OPENSSL_LH_set_down_load:
  435|    440|{
  436|    440|    lh->down_load = down_load;
  437|    440|}
OPENSSL_LH_error:
  440|    581|{
  441|    581|    return lh->error;
  442|    581|}
lhash.c:doall_util_fn:
  191|     48|{
  192|     48|    int i;
  193|     48|    OPENSSL_LH_NODE *a, *n;
  194|       |
  195|     48|    if (lh == NULL)
  ------------------
  |  Branch (195:9): [True: 0, False: 48]
  ------------------
  196|      0|        return;
  197|       |
  198|       |    /*
  199|       |     * reverse the order so we search from 'top to bottom' We were having
  200|       |     * memory leaks otherwise
  201|       |     */
  202|    660|    for (i = lh->num_nodes - 1; i >= 0; i--) {
  ------------------
  |  Branch (202:33): [True: 612, False: 48]
  ------------------
  203|    612|        a = lh->b[i];
  204|  1.09k|        while (a != NULL) {
  ------------------
  |  Branch (204:16): [True: 484, False: 612]
  ------------------
  205|    484|            n = a->next;
  206|    484|            if (use_arg)
  ------------------
  |  Branch (206:17): [True: 484, False: 0]
  ------------------
  207|    484|                wfunc_arg(a->data, arg, func_arg);
  208|      0|            else
  209|      0|                wfunc(a->data, func);
  210|    484|            a = n;
  211|    484|        }
  212|    612|    }
  213|     48|}
lhash.c:expand:
  243|  1.93k|{
  244|  1.93k|    OPENSSL_LH_NODE **n, **n1, **n2, *np;
  245|  1.93k|    unsigned int p, pmax, nni, j;
  246|  1.93k|    unsigned long hash;
  247|       |
  248|  1.93k|    nni = lh->num_alloc_nodes;
  249|  1.93k|    p = lh->p;
  250|  1.93k|    pmax = lh->pmax;
  251|  1.93k|    if (p + 1 >= pmax) {
  ------------------
  |  Branch (251:9): [True: 18, False: 1.91k]
  ------------------
  252|     18|        j = nni * 2;
  253|     18|        n = OPENSSL_realloc_array(lh->b, j, sizeof(OPENSSL_LH_NODE *));
  ------------------
  |  |  124|     18|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  254|     18|        if (n == NULL) {
  ------------------
  |  Branch (254:13): [True: 0, False: 18]
  ------------------
  255|      0|            lh->error++;
  256|      0|            return 0;
  257|      0|        }
  258|     18|        lh->b = n;
  259|     18|        memset(n + nni, 0, sizeof(*n) * (j - nni));
  260|     18|        lh->pmax = nni;
  261|     18|        lh->num_alloc_nodes = j;
  262|     18|        lh->p = 0;
  263|  1.91k|    } else {
  264|  1.91k|        lh->p++;
  265|  1.91k|    }
  266|       |
  267|  1.93k|    lh->num_nodes++;
  268|  1.93k|    n1 = &(lh->b[p]);
  269|  1.93k|    n2 = &(lh->b[p + pmax]);
  270|  1.93k|    *n2 = NULL;
  271|       |
  272|  8.23k|    for (np = *n1; np != NULL;) {
  ------------------
  |  Branch (272:20): [True: 6.30k, False: 1.93k]
  ------------------
  273|  6.30k|        hash = np->hash;
  274|  6.30k|        if ((hash % nni) != p) { /* move it */
  ------------------
  |  Branch (274:13): [True: 1.10k, False: 5.19k]
  ------------------
  275|  1.10k|            *n1 = (*n1)->next;
  276|  1.10k|            np->next = *n2;
  277|  1.10k|            *n2 = np;
  278|  1.10k|        } else
  279|  5.19k|            n1 = &((*n1)->next);
  280|  6.30k|        np = *n1;
  281|  6.30k|    }
  282|       |
  283|  1.93k|    return 1;
  284|  1.93k|}
lhash.c:getrn:
  320|  79.6k|{
  321|  79.6k|    OPENSSL_LH_NODE **ret, *n1;
  322|  79.6k|    unsigned long hash, nn;
  323|       |
  324|  79.6k|    if (lh->hashw != NULL)
  ------------------
  |  Branch (324:9): [True: 79.6k, False: 0]
  ------------------
  325|  79.6k|        hash = lh->hashw(data, lh->hash);
  326|      0|    else
  327|      0|        hash = lh->hash(data);
  328|       |
  329|  79.6k|    *rhash = hash;
  330|       |
  331|  79.6k|    nn = hash % lh->pmax;
  332|  79.6k|    if (nn < lh->p)
  ------------------
  |  Branch (332:9): [True: 5.50k, False: 74.1k]
  ------------------
  333|  5.50k|        nn = hash % lh->num_alloc_nodes;
  334|       |
  335|  79.6k|    ret = &(lh->b[(int)nn]);
  336|  98.1k|    for (n1 = *ret; n1 != NULL; n1 = n1->next) {
  ------------------
  |  Branch (336:21): [True: 85.2k, False: 12.9k]
  ------------------
  337|  85.2k|        if (n1->hash != hash) {
  ------------------
  |  Branch (337:13): [True: 18.1k, False: 67.1k]
  ------------------
  338|  18.1k|            ret = &(n1->next);
  339|  18.1k|            continue;
  340|  18.1k|        }
  341|       |
  342|  67.1k|        if (lh->compw != NULL) {
  ------------------
  |  Branch (342:13): [True: 67.1k, False: 0]
  ------------------
  343|  67.1k|            if (lh->compw(n1->data, data, lh->comp) == 0)
  ------------------
  |  Branch (343:17): [True: 66.7k, False: 372]
  ------------------
  344|  66.7k|                break;
  345|  67.1k|        } else {
  346|      0|            if (lh->comp(n1->data, data) == 0)
  ------------------
  |  Branch (346:17): [True: 0, False: 0]
  ------------------
  347|      0|                break;
  348|      0|        }
  349|    372|        ret = &(n1->next);
  350|    372|    }
  351|  79.6k|    return ret;
  352|  79.6k|}

CRYPTO_malloc:
  190|  8.27M|{
  191|  8.27M|    void *ptr;
  192|       |
  193|  8.27M|    INCREMENT(malloc_count);
  194|  8.27M|    if (malloc_impl != CRYPTO_malloc) {
  ------------------
  |  Branch (194:9): [True: 0, False: 8.27M]
  ------------------
  195|      0|        ptr = malloc_impl(num, file, line);
  196|      0|        if (ptr != NULL || num == 0)
  ------------------
  |  Branch (196:13): [True: 0, False: 0]
  |  Branch (196:28): [True: 0, False: 0]
  ------------------
  197|      0|            return ptr;
  198|      0|        goto err;
  199|      0|    }
  200|       |
  201|  8.27M|    if (ossl_unlikely(num == 0))
  ------------------
  |  |   23|  8.27M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 8.27M]
  |  |  ------------------
  ------------------
  202|      0|        return NULL;
  203|       |
  204|  8.27M|    FAILTEST();
  205|  8.27M|    if (allow_customize) {
  ------------------
  |  Branch (205:9): [True: 2, False: 8.27M]
  ------------------
  206|       |        /*
  207|       |         * Disallow customization after the first allocation. We only set this
  208|       |         * if necessary to avoid a store to the same cache line on every
  209|       |         * allocation.
  210|       |         */
  211|      2|        allow_customize = 0;
  212|      2|    }
  213|       |
  214|  8.27M|    ptr = malloc(num);
  215|  8.27M|    if (ossl_likely(ptr != NULL))
  ------------------
  |  |   22|  8.27M|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 8.27M, False: 0]
  |  |  ------------------
  ------------------
  216|  8.27M|        return ptr;
  217|      0|err:
  218|      0|    ossl_report_alloc_err(file, line);
  219|       |    return NULL;
  220|  8.27M|}
CRYPTO_zalloc:
  223|  5.87M|{
  224|  5.87M|    void *ret;
  225|       |
  226|  5.87M|    ret = CRYPTO_malloc(num, file, line);
  227|  5.87M|    if (ret != NULL)
  ------------------
  |  Branch (227:9): [True: 5.87M, False: 0]
  ------------------
  228|  5.87M|        memset(ret, 0, num);
  229|       |
  230|  5.87M|    return ret;
  231|  5.87M|}
CRYPTO_aligned_alloc:
  235|      2|{
  236|      2|    size_t alloc_bytes;
  237|      2|    void *ret;
  238|       |
  239|      2|    *freeptr = NULL;
  240|       |
  241|       |#if defined(OPENSSL_SMALL_FOOTPRINT)
  242|       |    return NULL;
  243|       |#endif
  244|       |
  245|       |    /* Ensure that alignment is a power of two */
  246|      2|    if (alignment == 0 || (alignment & (alignment - 1)) != 0) {
  ------------------
  |  Branch (246:9): [True: 0, False: 2]
  |  Branch (246:27): [True: 0, False: 2]
  ------------------
  247|      0|        ossl_report_alloc_err_inv(file, line);
  248|      0|        return NULL;
  249|      0|    }
  250|       |
  251|       |    /* Allow non-malloc() allocations as long as no malloc_impl is provided. */
  252|      2|    if (malloc_impl == CRYPTO_malloc) {
  ------------------
  |  Branch (252:9): [True: 2, False: 0]
  ------------------
  253|      2|#if defined(_BSD_SOURCE) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L)
  254|      2|        int memalign_ret;
  255|       |
  256|       |        /* posix_memalign() requires alignment to be at least sizeof(void *) */
  257|      2|        if (alignment < sizeof(void *))
  ------------------
  |  Branch (257:13): [True: 0, False: 2]
  ------------------
  258|      0|            alignment = sizeof(void *);
  259|       |
  260|      2|        if ((memalign_ret = posix_memalign(&ret, alignment, num))) {
  ------------------
  |  Branch (260:13): [True: 0, False: 2]
  ------------------
  261|      0|            ret = NULL;
  262|      0|            switch (memalign_ret) {
  ------------------
  |  Branch (262:21): [True: 0, False: 0]
  ------------------
  263|      0|            case EINVAL:
  ------------------
  |  Branch (263:13): [True: 0, False: 0]
  ------------------
  264|      0|                ossl_report_alloc_err_inv(file, line);
  265|      0|                break;
  266|      0|            case ENOMEM:
  ------------------
  |  Branch (266:13): [True: 0, False: 0]
  ------------------
  267|      0|                ossl_report_alloc_err(file, line);
  268|      0|                break;
  269|      0|            }
  270|      0|        }
  271|      2|        *freeptr = ret;
  272|      2|        return ret;
  273|      2|#endif
  274|      2|    }
  275|       |
  276|       |    /* we have to do this the hard way */
  277|       |
  278|       |    /*
  279|       |     * Note: Windows supports an _aligned_malloc call, but we choose
  280|       |     * not to use it here, because allocations from that function
  281|       |     * require that they be freed via _aligned_free.  Given that
  282|       |     * we can't differentiate plain malloc blocks from blocks obtained
  283|       |     * via _aligned_malloc, just avoid its use entirely
  284|       |     */
  285|       |
  286|      0|    if (ossl_unlikely(!ossl_size_add(num, alignment, &alloc_bytes, file, line)))
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  287|      0|        return NULL;
  288|       |
  289|       |    /*
  290|       |     * Step 1: Allocate an amount of memory that is <alignment>
  291|       |     * bytes bigger than requested
  292|       |     */
  293|      0|    *freeptr = CRYPTO_malloc(alloc_bytes, file, line);
  294|      0|    if (*freeptr == NULL)
  ------------------
  |  Branch (294:9): [True: 0, False: 0]
  ------------------
  295|      0|        return NULL;
  296|       |
  297|       |    /*
  298|       |     * Step 2: Add <alignment - 1> bytes to the pointer
  299|       |     * This will cross the alignment boundary that is
  300|       |     * requested
  301|       |     */
  302|      0|    ret = (void *)((char *)*freeptr + (alignment - 1));
  303|       |
  304|       |    /*
  305|       |     * Step 3: Use the alignment as a mask to translate the
  306|       |     * least significant bits of the allocation at the alignment
  307|       |     * boundary to 0.  ret now holds a pointer to the memory
  308|       |     * buffer at the requested alignment
  309|       |     * NOTE: It is a documented requirement that alignment be a
  310|       |     * power of 2, which is what allows this to work
  311|       |     */
  312|      0|    ret = (void *)((uintptr_t)ret & (uintptr_t)(~(alignment - 1)));
  313|      0|    return ret;
  314|      0|}
CRYPTO_realloc:
  317|   642k|{
  318|   642k|    void *ret;
  319|       |
  320|   642k|    INCREMENT(realloc_count);
  321|   642k|    if (realloc_impl != CRYPTO_realloc) {
  ------------------
  |  Branch (321:9): [True: 0, False: 642k]
  ------------------
  322|      0|        ret = realloc_impl(str, num, file, line);
  323|       |
  324|      0|        if (num == 0 || ret != NULL)
  ------------------
  |  Branch (324:13): [True: 0, False: 0]
  |  Branch (324:25): [True: 0, False: 0]
  ------------------
  325|      0|            return ret;
  326|       |
  327|      0|        goto err;
  328|      0|    }
  329|       |
  330|   642k|    if (str == NULL)
  ------------------
  |  Branch (330:9): [True: 588k, False: 54.1k]
  ------------------
  331|   588k|        return CRYPTO_malloc(num, file, line);
  332|       |
  333|  54.1k|    if (num == 0) {
  ------------------
  |  Branch (333:9): [True: 0, False: 54.1k]
  ------------------
  334|      0|        CRYPTO_free(str, file, line);
  335|      0|        return NULL;
  336|      0|    }
  337|       |
  338|  54.1k|    FAILTEST();
  339|  54.1k|    ret = realloc(str, num);
  340|       |
  341|  54.1k|err:
  342|  54.1k|    if (num != 0 && ret == NULL)
  ------------------
  |  Branch (342:9): [True: 54.1k, False: 0]
  |  Branch (342:21): [True: 0, False: 54.1k]
  ------------------
  343|      0|        ossl_report_alloc_err(file, line);
  344|       |
  345|  54.1k|    return ret;
  346|  54.1k|}
CRYPTO_clear_realloc:
  350|   379k|{
  351|   379k|    void *ret = NULL;
  352|       |
  353|   379k|    if (str == NULL)
  ------------------
  |  Branch (353:9): [True: 96.1k, False: 283k]
  ------------------
  354|  96.1k|        return CRYPTO_malloc(num, file, line);
  355|       |
  356|   283k|    if (num == 0) {
  ------------------
  |  Branch (356:9): [True: 0, False: 283k]
  ------------------
  357|      0|        CRYPTO_clear_free(str, old_len, file, line);
  358|      0|        return NULL;
  359|      0|    }
  360|       |
  361|       |    /* Can't shrink the buffer since memcpy below copies |old_len| bytes. */
  362|   283k|    if (num < old_len) {
  ------------------
  |  Branch (362:9): [True: 0, False: 283k]
  ------------------
  363|      0|        OPENSSL_cleanse((char *)str + num, old_len - num);
  364|      0|        return str;
  365|      0|    }
  366|       |
  367|   283k|    ret = CRYPTO_malloc(num, file, line);
  368|   283k|    if (ret != NULL) {
  ------------------
  |  Branch (368:9): [True: 283k, False: 0]
  ------------------
  369|   283k|        memcpy(ret, str, old_len);
  370|   283k|        CRYPTO_clear_free(str, old_len, file, line);
  371|   283k|    }
  372|   283k|    return ret;
  373|   283k|}
CRYPTO_free:
  376|  11.2M|{
  377|  11.2M|    INCREMENT(free_count);
  378|  11.2M|    if (free_impl != CRYPTO_free) {
  ------------------
  |  Branch (378:9): [True: 0, False: 11.2M]
  ------------------
  379|      0|        free_impl(str, file, line);
  380|      0|        return;
  381|      0|    }
  382|       |
  383|  11.2M|    free(str);
  384|  11.2M|}
CRYPTO_clear_free:
  387|   837k|{
  388|   837k|    if (str == NULL)
  ------------------
  |  Branch (388:9): [True: 66.5k, False: 771k]
  ------------------
  389|  66.5k|        return;
  390|   771k|    if (num)
  ------------------
  |  Branch (390:9): [True: 771k, False: 0]
  ------------------
  391|   771k|        OPENSSL_cleanse(str, num);
  392|   771k|    CRYPTO_free(str, file, line);
  393|   771k|}

CRYPTO_secure_malloc:
  154|    227|{
  155|    227|#ifndef OPENSSL_NO_SECURE_MEMORY
  156|    227|    void *ret = NULL;
  157|    227|    size_t actual_size;
  158|    227|    int reason = CRYPTO_R_SECURE_MALLOC_FAILURE;
  ------------------
  |  |   45|    227|#define CRYPTO_R_SECURE_MALLOC_FAILURE 111
  ------------------
  159|       |
  160|    227|    if (!secure_mem_initialized) {
  ------------------
  |  Branch (160:9): [True: 227, False: 0]
  ------------------
  161|    227|        return CRYPTO_malloc(num, file, line);
  162|    227|    }
  163|      0|    if (!CRYPTO_THREAD_write_lock(sec_malloc_lock)) {
  ------------------
  |  Branch (163:9): [True: 0, False: 0]
  ------------------
  164|      0|        reason = ERR_R_CRYPTO_LIB;
  ------------------
  |  |  328|      0|#define ERR_R_CRYPTO_LIB (ERR_LIB_CRYPTO /* 15 */ | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  |  |  ------------------
  |  |               #define ERR_R_CRYPTO_LIB (ERR_LIB_CRYPTO /* 15 */ | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  165|      0|        goto err;
  166|      0|    }
  167|      0|    ret = sh_malloc(num);
  168|      0|    actual_size = ret ? sh_actual_size(ret) : 0;
  ------------------
  |  Branch (168:19): [True: 0, False: 0]
  ------------------
  169|      0|    secure_mem_used += actual_size;
  170|      0|    CRYPTO_THREAD_unlock(sec_malloc_lock);
  171|      0|err:
  172|      0|    if (ret == NULL && (file != NULL || line != 0)) {
  ------------------
  |  Branch (172:9): [True: 0, False: 0]
  |  Branch (172:25): [True: 0, False: 0]
  |  Branch (172:41): [True: 0, False: 0]
  ------------------
  173|      0|        ERR_new();
  174|      0|        ERR_set_debug(file, line, NULL);
  175|      0|        ERR_set_error(ERR_LIB_CRYPTO, reason, NULL);
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
  176|      0|    }
  177|      0|    return ret;
  178|       |#else
  179|       |    return CRYPTO_malloc(num, file, line);
  180|       |#endif /* OPENSSL_NO_SECURE_MEMORY */
  181|      0|}
CRYPTO_secure_zalloc:
  184|    662|{
  185|    662|#ifndef OPENSSL_NO_SECURE_MEMORY
  186|    662|    if (secure_mem_initialized)
  ------------------
  |  Branch (186:9): [True: 0, False: 662]
  ------------------
  187|       |        /* CRYPTO_secure_malloc() zeroes allocations when it is implemented */
  188|      0|        return CRYPTO_secure_malloc(num, file, line);
  189|    662|#endif
  190|    662|    return CRYPTO_zalloc(num, file, line);
  191|    662|}
CRYPTO_secure_free:
  194|    220|{
  195|    220|#ifndef OPENSSL_NO_SECURE_MEMORY
  196|    220|    size_t actual_size;
  197|       |
  198|    220|    if (ptr == NULL)
  ------------------
  |  Branch (198:9): [True: 0, False: 220]
  ------------------
  199|      0|        return;
  200|    220|    if (!CRYPTO_secure_allocated(ptr)) {
  ------------------
  |  Branch (200:9): [True: 220, False: 0]
  ------------------
  201|    220|        CRYPTO_free(ptr, file, line);
  202|    220|        return;
  203|    220|    }
  204|      0|    if (!CRYPTO_THREAD_write_lock(sec_malloc_lock))
  ------------------
  |  Branch (204:9): [True: 0, False: 0]
  ------------------
  205|      0|        return;
  206|      0|    actual_size = sh_actual_size(ptr);
  207|      0|    CLEAR(ptr, actual_size);
  ------------------
  |  |   81|      0|#define CLEAR(p, s) OPENSSL_cleanse(p, s)
  ------------------
  208|      0|    secure_mem_used -= actual_size;
  209|      0|    sh_free(ptr);
  210|      0|    CRYPTO_THREAD_unlock(sec_malloc_lock);
  211|       |#else
  212|       |    CRYPTO_free(ptr, file, line);
  213|       |#endif /* OPENSSL_NO_SECURE_MEMORY */
  214|      0|}
CRYPTO_secure_clear_free:
  218|  1.54k|{
  219|  1.54k|#ifndef OPENSSL_NO_SECURE_MEMORY
  220|  1.54k|    size_t actual_size;
  221|       |
  222|  1.54k|    if (ptr == NULL)
  ------------------
  |  Branch (222:9): [True: 877, False: 666]
  ------------------
  223|    877|        return;
  224|    666|    if (!CRYPTO_secure_allocated(ptr)) {
  ------------------
  |  Branch (224:9): [True: 666, False: 0]
  ------------------
  225|    666|        OPENSSL_cleanse(ptr, num);
  226|    666|        CRYPTO_free(ptr, file, line);
  227|    666|        return;
  228|    666|    }
  229|      0|    if (!CRYPTO_THREAD_write_lock(sec_malloc_lock))
  ------------------
  |  Branch (229:9): [True: 0, False: 0]
  ------------------
  230|      0|        return;
  231|      0|    actual_size = sh_actual_size(ptr);
  232|      0|    CLEAR(ptr, actual_size);
  ------------------
  |  |   81|      0|#define CLEAR(p, s) OPENSSL_cleanse(p, s)
  ------------------
  233|      0|    secure_mem_used -= actual_size;
  234|      0|    sh_free(ptr);
  235|      0|    CRYPTO_THREAD_unlock(sec_malloc_lock);
  236|       |#else
  237|       |    if (ptr == NULL)
  238|       |        return;
  239|       |    OPENSSL_cleanse(ptr, num);
  240|       |    CRYPTO_free(ptr, file, line);
  241|       |#endif /* OPENSSL_NO_SECURE_MEMORY */
  242|      0|}
CRYPTO_secure_allocated:
  245|  1.32k|{
  246|  1.32k|#ifndef OPENSSL_NO_SECURE_MEMORY
  247|  1.32k|    if (!secure_mem_initialized)
  ------------------
  |  Branch (247:9): [True: 1.32k, False: 0]
  ------------------
  248|  1.32k|        return 0;
  249|       |    /*
  250|       |     * Only read accesses to the arena take place in sh_allocated() and this
  251|       |     * is only changed by the sh_init() and sh_done() calls which are not
  252|       |     * locked.  Hence, it is safe to make this check without a lock too.
  253|       |     */
  254|      0|    return sh_allocated(ptr);
  255|       |#else
  256|       |    return 0;
  257|       |#endif /* OPENSSL_NO_SECURE_MEMORY */
  258|  1.32k|}

ossl_ml_kem_key_reset:
 1903|    219|{
 1904|       |    /*
 1905|       |     * seedbuf can be allocated and contain |z| and |d| if the key is
 1906|       |     * being created from a private key encoding.  Similarly a pending
 1907|       |     * serialised (encoded) private key may be queued up to load.
 1908|       |     * Clear and free that data now.
 1909|       |     */
 1910|    219|    if (key->seedbuf != NULL)
  ------------------
  |  Branch (1910:9): [True: 0, False: 219]
  ------------------
 1911|      0|        OPENSSL_secure_clear_free(key->seedbuf, ML_KEM_SEED_BYTES);
  ------------------
  |  |  149|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1912|    219|    if (ossl_ml_kem_have_dkenc(key))
  ------------------
  |  |  210|    219|#define ossl_ml_kem_have_dkenc(key) ((key)->encoded_dk != NULL)
  |  |  ------------------
  |  |  |  Branch (210:37): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 1913|      0|        OPENSSL_secure_clear_free(key->encoded_dk, key->vinfo->prvkey_bytes);
  ------------------
  |  |  149|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1914|       |
 1915|       |    /*-
 1916|       |     * Cleanse any sensitive data:
 1917|       |     * - The private vector |s| is immediately followed by the FO failure
 1918|       |     *   secret |z|, and seed |d|, we can cleanse all three in one call.
 1919|       |     */
 1920|    219|    if (key->t != NULL) {
  ------------------
  |  Branch (1920:9): [True: 219, False: 0]
  ------------------
 1921|    219|        if (ossl_ml_kem_have_prvkey(key))
  ------------------
  |  |  208|    219|#define ossl_ml_kem_have_prvkey(key) ((key)->s != NULL)
  |  |  ------------------
  |  |  |  Branch (208:38): [True: 219, False: 0]
  |  |  ------------------
  ------------------
 1922|    219|            OPENSSL_secure_clear_free(key->s, key->vinfo->prvalloc);
  ------------------
  |  |  149|    219|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1923|    219|        OPENSSL_free(key->t);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1924|    219|    }
 1925|       |    key->d = key->z = key->seedbuf = key->encoded_dk = (uint8_t *)(key->s = key->m = key->t = NULL);
 1926|    219|}
ossl_ml_kem_get_vinfo:
 1937|    438|{
 1938|    438|    switch (evp_type) {
  ------------------
  |  Branch (1938:13): [True: 438, False: 0]
  ------------------
 1939|      0|    case EVP_PKEY_ML_KEM_512:
  ------------------
  |  |   93|      0|#define EVP_PKEY_ML_KEM_512 NID_ML_KEM_512
  |  |  ------------------
  |  |  |  | 6636|      0|#define NID_ML_KEM_512          1454
  |  |  ------------------
  ------------------
  |  Branch (1939:5): [True: 0, False: 438]
  ------------------
 1940|      0|        return &vinfo_map[ML_KEM_512_VINFO];
  ------------------
  |  |  177|      0|#define ML_KEM_512_VINFO 0
  ------------------
 1941|    438|    case EVP_PKEY_ML_KEM_768:
  ------------------
  |  |  103|    438|#define EVP_PKEY_ML_KEM_768 NID_ML_KEM_768
  |  |  ------------------
  |  |  |  | 6641|    438|#define NID_ML_KEM_768          1455
  |  |  ------------------
  ------------------
  |  Branch (1941:5): [True: 438, False: 0]
  ------------------
 1942|    438|        return &vinfo_map[ML_KEM_768_VINFO];
  ------------------
  |  |  178|    438|#define ML_KEM_768_VINFO 1
  ------------------
 1943|      0|    case EVP_PKEY_ML_KEM_1024:
  ------------------
  |  |  113|      0|#define EVP_PKEY_ML_KEM_1024 NID_ML_KEM_1024
  |  |  ------------------
  |  |  |  | 6646|      0|#define NID_ML_KEM_1024         1456
  |  |  ------------------
  ------------------
  |  Branch (1943:5): [True: 0, False: 438]
  ------------------
 1944|      0|        return &vinfo_map[ML_KEM_1024_VINFO];
  ------------------
  |  |  179|      0|#define ML_KEM_1024_VINFO 2
  ------------------
 1945|    438|    }
 1946|      0|    return NULL;
 1947|    438|}
ossl_ml_kem_key_new:
 1951|    219|{
 1952|    219|    const ML_KEM_VINFO *vinfo = ossl_ml_kem_get_vinfo(evp_type);
 1953|    219|    ML_KEM_KEY *key;
 1954|       |
 1955|    219|    if (vinfo == NULL) {
  ------------------
  |  Branch (1955:9): [True: 0, False: 219]
  ------------------
 1956|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  358|      0|#define ERR_R_PASSED_INVALID_ARGUMENT (262 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1957|      0|            "unsupported ML-KEM key type: %d", evp_type);
 1958|      0|        return NULL;
 1959|      0|    }
 1960|       |
 1961|    219|    if ((key = OPENSSL_malloc(sizeof(*key))) == NULL)
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (1961:9): [True: 0, False: 219]
  ------------------
 1962|      0|        return NULL;
 1963|       |
 1964|    219|    key->vinfo = vinfo;
 1965|    219|    key->libctx = libctx;
 1966|    219|    key->prov_flags = ML_KEM_KEY_PROV_FLAGS_DEFAULT;
  ------------------
  |  |  132|    219|    (ML_KEM_KEY_RANDOM_PCT | ML_KEM_KEY_PREFER_SEED | ML_KEM_KEY_RETAIN_SEED)
  |  |  ------------------
  |  |  |  |  123|    219|#define ML_KEM_KEY_RANDOM_PCT (1 << 0)
  |  |  ------------------
  |  |                   (ML_KEM_KEY_RANDOM_PCT | ML_KEM_KEY_PREFER_SEED | ML_KEM_KEY_RETAIN_SEED)
  |  |  ------------------
  |  |  |  |  125|    219|#define ML_KEM_KEY_PREFER_SEED (1 << 2)
  |  |  ------------------
  |  |                   (ML_KEM_KEY_RANDOM_PCT | ML_KEM_KEY_PREFER_SEED | ML_KEM_KEY_RETAIN_SEED)
  |  |  ------------------
  |  |  |  |  126|    219|#define ML_KEM_KEY_RETAIN_SEED (1 << 3)
  |  |  ------------------
  ------------------
 1967|    219|    key->shake128_md = EVP_MD_fetch(libctx, "SHAKE128", properties);
 1968|    219|    key->shake256_md = EVP_MD_fetch(libctx, "SHAKE256", properties);
 1969|    219|    key->sha3_256_md = EVP_MD_fetch(libctx, "SHA3-256", properties);
 1970|    219|    key->sha3_512_md = EVP_MD_fetch(libctx, "SHA3-512", properties);
 1971|    219|    key->d = key->z = key->rho = key->pkhash = key->encoded_dk = key->seedbuf = NULL;
 1972|    219|    key->s = key->m = key->t = NULL;
 1973|       |
 1974|    219|    if (key->shake128_md != NULL
  ------------------
  |  Branch (1974:9): [True: 219, False: 0]
  ------------------
 1975|    219|        && key->shake256_md != NULL
  ------------------
  |  Branch (1975:12): [True: 219, False: 0]
  ------------------
 1976|    219|        && key->sha3_256_md != NULL
  ------------------
  |  Branch (1976:12): [True: 219, False: 0]
  ------------------
 1977|    219|        && key->sha3_512_md != NULL)
  ------------------
  |  Branch (1977:12): [True: 219, False: 0]
  ------------------
 1978|    219|        return key;
 1979|       |
 1980|      0|    ossl_ml_kem_key_free(key);
 1981|      0|    ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                  ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                  ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  355|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  351|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1982|      0|        "missing SHA3 digest algorithms while creating %s key",
 1983|      0|        vinfo->algorithm_name);
 1984|       |    return NULL;
 1985|    219|}
ossl_ml_kem_key_free:
 2053|    219|{
 2054|    219|    if (key == NULL)
  ------------------
  |  Branch (2054:9): [True: 0, False: 219]
  ------------------
 2055|      0|        return;
 2056|       |
 2057|    219|    EVP_MD_free(key->shake128_md);
 2058|    219|    EVP_MD_free(key->shake256_md);
 2059|    219|    EVP_MD_free(key->sha3_256_md);
 2060|    219|    EVP_MD_free(key->sha3_512_md);
 2061|       |
 2062|    219|    ossl_ml_kem_key_reset(key);
 2063|    219|    OPENSSL_free(key);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2064|    219|}
ossl_ml_kem_encode_public_key:
 2069|    219|{
 2070|    219|    if (!ossl_ml_kem_have_pubkey(key)
  ------------------
  |  |  207|    438|#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
  ------------------
  |  Branch (2070:9): [True: 0, False: 219]
  ------------------
 2071|    219|        || len != key->vinfo->pubkey_bytes)
  ------------------
  |  Branch (2071:12): [True: 0, False: 219]
  ------------------
 2072|      0|        return 0;
 2073|    219|    encode_pubkey(out, key);
 2074|    219|    return 1;
 2075|    219|}
ossl_ml_kem_genkey:
 2191|    219|{
 2192|    219|    uint8_t seed[ML_KEM_SEED_BYTES];
 2193|    219|    EVP_MD_CTX *mdctx = NULL;
 2194|    219|    const ML_KEM_VINFO *vinfo;
 2195|    219|    int ret = 0;
 2196|       |
 2197|    219|    if (key == NULL
  ------------------
  |  Branch (2197:9): [True: 0, False: 219]
  ------------------
 2198|    219|        || ossl_ml_kem_have_pubkey(key)
  ------------------
  |  |  207|    438|#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
  |  |  ------------------
  |  |  |  Branch (207:38): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 2199|    219|        || ossl_ml_kem_have_dkenc(key))
  ------------------
  |  |  210|    219|#define ossl_ml_kem_have_dkenc(key) ((key)->encoded_dk != NULL)
  |  |  ------------------
  |  |  |  Branch (210:37): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 2200|      0|        return 0;
 2201|    219|    vinfo = key->vinfo;
 2202|       |
 2203|    219|    if (pubenc != NULL && publen != vinfo->pubkey_bytes)
  ------------------
  |  Branch (2203:9): [True: 0, False: 219]
  |  Branch (2203:27): [True: 0, False: 0]
  ------------------
 2204|      0|        return 0;
 2205|       |
 2206|    219|    if (key->seedbuf != NULL) {
  ------------------
  |  Branch (2206:9): [True: 0, False: 219]
  ------------------
 2207|      0|        if (!ossl_ml_kem_encode_seed(seed, sizeof(seed), key))
  ------------------
  |  Branch (2207:13): [True: 0, False: 0]
  ------------------
 2208|      0|            return 0;
 2209|      0|        ossl_ml_kem_key_reset(key);
 2210|    219|    } else if (RAND_priv_bytes_ex(key->libctx, seed, sizeof(seed),
  ------------------
  |  Branch (2210:16): [True: 0, False: 219]
  ------------------
 2211|    219|                   key->vinfo->secbits)
 2212|    219|        <= 0) {
 2213|      0|        return 0;
 2214|      0|    }
 2215|       |
 2216|    219|    if ((mdctx = EVP_MD_CTX_new()) == NULL)
  ------------------
  |  Branch (2216:9): [True: 0, False: 219]
  ------------------
 2217|      0|        return 0;
 2218|       |
 2219|       |    /*
 2220|       |     * Data derived from (d, z) defaults secret, and to avoid side-channel
 2221|       |     * leaks should not influence control flow.
 2222|       |     */
 2223|    219|    CONSTTIME_SECRET(seed, ML_KEM_SEED_BYTES);
 2224|       |
 2225|    219|    if (add_storage(OPENSSL_malloc(vinfo->puballoc),
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (2225:9): [True: 219, False: 0]
  ------------------
 2226|    219|            OPENSSL_secure_malloc(vinfo->prvalloc), 1, key))
  ------------------
  |  |  139|    219|    CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2227|    219|        ret = genkey(seed, mdctx, pubenc, key);
 2228|    219|    OPENSSL_cleanse(seed, sizeof(seed));
 2229|       |
 2230|       |    /* Declassify secret inputs and derived outputs before returning control */
 2231|    219|    CONSTTIME_DECLASSIFY(seed, ML_KEM_SEED_BYTES);
 2232|       |
 2233|    219|    EVP_MD_CTX_free(mdctx);
 2234|    219|    if (!ret) {
  ------------------
  |  Branch (2234:9): [True: 0, False: 219]
  ------------------
 2235|      0|        ossl_ml_kem_key_reset(key);
 2236|      0|        return 0;
 2237|      0|    }
 2238|       |
 2239|       |    /* The public components are already declassified */
 2240|    219|    CONSTTIME_DECLASSIFY(key->s, vinfo->rank * sizeof(scalar));
 2241|    219|    CONSTTIME_DECLASSIFY(key->z, 2 * ML_KEM_RANDOM_BYTES);
 2242|    219|    return 1;
 2243|    219|}
ml_kem.c:add_storage:
 1862|    219|{
 1863|    219|    int rank = key->vinfo->rank;
 1864|       |
 1865|    219|    if (pub == NULL || (private && priv == NULL)) {
  ------------------
  |  Branch (1865:9): [True: 0, False: 219]
  |  Branch (1865:25): [True: 219, False: 0]
  |  Branch (1865:36): [True: 0, False: 219]
  ------------------
 1866|       |        /*
 1867|       |         * One of these could be allocated correctly. It is legal to call free with a NULL
 1868|       |         * pointer, so always attempt to free both allocations here
 1869|       |         */
 1870|      0|        OPENSSL_free(pub);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1871|      0|        OPENSSL_secure_free(priv);
  ------------------
  |  |  147|      0|    CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1872|      0|        return 0;
 1873|      0|    }
 1874|       |
 1875|       |    /*
 1876|       |     * We're adding key material, set up rho and pkhash to point to the rho_pkhash buffer
 1877|       |     */
 1878|    219|    memset(key->rho_pkhash, 0, sizeof(key->rho_pkhash));
 1879|    219|    key->rho = key->rho_pkhash;
 1880|    219|    key->pkhash = key->rho_pkhash + ML_KEM_RANDOM_BYTES;
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1881|    219|    key->d = key->z = NULL;
 1882|       |
 1883|       |    /* A public key needs space for |t| and |m| */
 1884|    219|    key->m = (key->t = pub) + rank;
 1885|       |
 1886|       |    /*
 1887|       |     * A private key also needs space for |s| and |z|.
 1888|       |     * The |z| buffer always includes additional space for |d|, but a key's |d|
 1889|       |     * pointer is left NULL when parsed from the NIST format, which omits that
 1890|       |     * information.  Only keys generated from a (d, z) seed pair will have a
 1891|       |     * non-NULL |d| pointer.
 1892|       |     */
 1893|    219|    if (private)
  ------------------
  |  Branch (1893:9): [True: 219, False: 0]
  ------------------
 1894|    219|        key->z = (uint8_t *)(rank + (key->s = priv));
 1895|    219|    return 1;
 1896|    219|}
ml_kem.c:encode_pubkey:
 1568|    219|{
 1569|    219|    const uint8_t *rho = key->rho;
 1570|    219|    const ML_KEM_VINFO *vinfo = key->vinfo;
 1571|       |
 1572|    219|    vector_encode(out, key->t, 12, vinfo->rank);
 1573|    219|    memcpy(out + vinfo->vector_bytes, rho, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1574|    219|}
ml_kem.c:vector_encode:
 1221|    219|{
 1222|    219|    int stride = bits * DEGREE / 8;
  ------------------
  |  |   41|    219|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|    219|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
 1223|       |
 1224|    876|    for (; rank-- > 0; out += stride)
  ------------------
  |  Branch (1224:12): [True: 657, False: 219]
  ------------------
 1225|    657|        scalar_encode(out, a++, bits);
 1226|    219|}
ml_kem.c:scalar_encode:
  973|  1.31k|{
  974|  1.31k|    const uint16_t *curr = s->c, *end = curr + DEGREE;
  ------------------
  |  |   41|  1.31k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  1.31k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  975|  1.31k|    uint64_t accum = 0, element;
  976|  1.31k|    int used = 0;
  977|       |
  978|   336k|    do {
  979|   336k|        element = *curr++;
  980|   336k|        if (used + bits < 64) {
  ------------------
  |  Branch (980:13): [True: 273k, False: 63.0k]
  ------------------
  981|   273k|            accum |= element << used;
  982|   273k|            used += bits;
  983|   273k|        } else if (used + bits > 64) {
  ------------------
  |  Branch (983:20): [True: 42.0k, False: 21.0k]
  ------------------
  984|  42.0k|            out = OPENSSL_store_u64_le(out, accum | (element << used));
  985|  42.0k|            accum = element >> (64 - used);
  986|  42.0k|            used = (used + bits) - 64;
  987|  42.0k|        } else {
  988|  21.0k|            out = OPENSSL_store_u64_le(out, accum | (element << used));
  989|  21.0k|            accum = 0;
  990|  21.0k|            used = 0;
  991|  21.0k|        }
  992|   336k|    } while (curr < end);
  ------------------
  |  Branch (992:14): [True: 335k, False: 1.31k]
  ------------------
  993|  1.31k|}
ml_kem.c:single_keccak:
  672|  1.53k|{
  673|  1.53k|    unsigned int sz = (unsigned int)outlen;
  674|       |
  675|  1.53k|    if (!EVP_DigestUpdate(mdctx, in, inlen))
  ------------------
  |  Branch (675:9): [True: 0, False: 1.53k]
  ------------------
  676|      0|        return 0;
  677|  1.53k|    if (EVP_MD_xof(EVP_MD_CTX_get0_md(mdctx)))
  ------------------
  |  Branch (677:9): [True: 1.31k, False: 219]
  ------------------
  678|  1.31k|        return EVP_DigestFinalXOF(mdctx, out, outlen);
  679|    219|    return EVP_DigestFinal_ex(mdctx, out, &sz)
  ------------------
  |  Branch (679:12): [True: 219, False: 0]
  ------------------
  680|    219|        && ossl_assert((size_t)sz == outlen);
  ------------------
  |  |   52|    219|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:24): [True: 219, False: 0]
  |  |  ------------------
  |  |   53|    219|    __FILE__, __LINE__)
  ------------------
  681|  1.53k|}
ml_kem.c:matrix_expand:
 1317|    219|{
 1318|    219|    scalar *out = key->m;
 1319|    219|    uint8_t input[ML_KEM_RANDOM_BYTES + 2];
 1320|    219|    int rank = key->vinfo->rank;
 1321|    219|    int i, j;
 1322|       |
 1323|    219|    memcpy(input, key->rho, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1324|    876|    for (i = 0; i < rank; i++) {
  ------------------
  |  Branch (1324:17): [True: 657, False: 219]
  ------------------
 1325|  2.62k|        for (j = 0; j < rank; j++) {
  ------------------
  |  Branch (1325:21): [True: 1.97k, False: 657]
  ------------------
 1326|  1.97k|            input[ML_KEM_RANDOM_BYTES] = i;
  ------------------
  |  |   47|  1.97k|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1327|  1.97k|            input[ML_KEM_RANDOM_BYTES + 1] = j;
  ------------------
  |  |   47|  1.97k|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1328|  1.97k|            if (!EVP_DigestInit_ex(mdctx, key->shake128_md, NULL)
  ------------------
  |  Branch (1328:17): [True: 0, False: 1.97k]
  ------------------
 1329|  1.97k|                || !EVP_DigestUpdate(mdctx, input, sizeof(input))
  ------------------
  |  Branch (1329:20): [True: 0, False: 1.97k]
  ------------------
 1330|  1.97k|                || !sample_scalar(out++, mdctx))
  ------------------
  |  Branch (1330:20): [True: 0, False: 1.97k]
  ------------------
 1331|      0|                return 0;
 1332|  1.97k|        }
 1333|    657|    }
 1334|    219|    return 1;
 1335|    219|}
ml_kem.c:sample_scalar:
  767|  1.97k|{
  768|  1.97k|    uint16_t *curr = out->c, *endout = curr + DEGREE;
  ------------------
  |  |   41|  1.97k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  1.97k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  769|  1.97k|    uint8_t buf[SCALAR_SAMPLING_BUFSIZE], *in;
  770|  1.97k|    uint8_t *endin = buf + sizeof(buf);
  771|  1.97k|    uint16_t d;
  772|  1.97k|    uint8_t b1, b2, b3;
  773|       |
  774|  5.93k|    do {
  775|  5.93k|        if (!EVP_DigestSqueeze(mdctx, in = buf, sizeof(buf)))
  ------------------
  |  Branch (775:13): [True: 0, False: 5.93k]
  ------------------
  776|      0|            return 0;
  777|   311k|        do {
  778|   311k|            b1 = *in++;
  779|   311k|            b2 = *in++;
  780|   311k|            b3 = *in++;
  781|       |
  782|   311k|            if (curr >= endout)
  ------------------
  |  Branch (782:17): [True: 1.01k, False: 310k]
  ------------------
  783|  1.01k|                break;
  784|   310k|            if ((d = ((b2 & 0x0f) << 8) + b1) < kPrime)
  ------------------
  |  Branch (784:17): [True: 252k, False: 58.0k]
  ------------------
  785|   252k|                *curr++ = d;
  786|   310k|            if (curr >= endout)
  ------------------
  |  Branch (786:17): [True: 958, False: 309k]
  ------------------
  787|    958|                break;
  788|   309k|            if ((d = (b3 << 4) + (b2 >> 4)) < kPrime)
  ------------------
  |  Branch (788:17): [True: 251k, False: 57.9k]
  ------------------
  789|   251k|                *curr++ = d;
  790|   309k|        } while (in < endin);
  ------------------
  |  Branch (790:18): [True: 305k, False: 3.96k]
  ------------------
  791|  5.93k|    } while (curr < endout);
  ------------------
  |  Branch (791:14): [True: 3.96k, False: 1.97k]
  ------------------
  792|  1.97k|    return 1;
  793|  1.97k|}
ml_kem.c:genkey:
 1693|    219|{
 1694|    219|    uint8_t hashed[2 * ML_KEM_RANDOM_BYTES];
 1695|    219|    const uint8_t *const sigma = hashed + ML_KEM_RANDOM_BYTES;
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1696|    219|    uint8_t augmented_seed[ML_KEM_RANDOM_BYTES + 1];
 1697|    219|    const ML_KEM_VINFO *vinfo = key->vinfo;
 1698|    219|    CBD_FUNC cbd_1 = CBD1(vinfo->evp_type);
  ------------------
  |  | 1470|    219|#define CBD1(evp_type) ((evp_type) == EVP_PKEY_ML_KEM_512 ? cbd_3 : cbd_2)
  |  |  ------------------
  |  |  |  |   93|    219|#define EVP_PKEY_ML_KEM_512 NID_ML_KEM_512
  |  |  |  |  ------------------
  |  |  |  |  |  | 6636|    219|#define NID_ML_KEM_512          1454
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (1470:25): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 1699|    219|    int rank = vinfo->rank;
 1700|    219|    uint8_t counter = 0;
 1701|    219|    int ret = 0;
 1702|       |
 1703|       |    /*
 1704|       |     * Use the "d" seed salted with the rank to derive the public and private
 1705|       |     * seeds rho and sigma.
 1706|       |     */
 1707|    219|    memcpy(augmented_seed, seed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1708|    219|    augmented_seed[ML_KEM_RANDOM_BYTES] = (uint8_t)rank;
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1709|    219|    if (!hash_g(hashed, augmented_seed, sizeof(augmented_seed), mdctx, key))
  ------------------
  |  Branch (1709:9): [True: 0, False: 219]
  ------------------
 1710|      0|        goto end;
 1711|    219|    memcpy(key->rho, hashed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1712|       |    /* The |rho| matrix seed is public */
 1713|    219|    CONSTTIME_DECLASSIFY(key->rho, ML_KEM_RANDOM_BYTES);
 1714|       |
 1715|       |    /* FIPS 203 |e| vector is initial value of key->t */
 1716|    219|    if (!matrix_expand(mdctx, key)
  ------------------
  |  Branch (1716:9): [True: 0, False: 219]
  ------------------
 1717|    219|        || !gencbd_vector_ntt(key->s, cbd_1, &counter, sigma, rank, mdctx, key)
  ------------------
  |  Branch (1717:12): [True: 0, False: 219]
  ------------------
 1718|    219|        || !gencbd_vector_ntt(key->t, cbd_1, &counter, sigma, rank, mdctx, key))
  ------------------
  |  Branch (1718:12): [True: 0, False: 219]
  ------------------
 1719|      0|        goto end;
 1720|       |
 1721|       |    /* To |e| we now add the product of transpose |m| and |s|, giving |t|. */
 1722|    219|    matrix_mult_transpose_add(key->t, key->m, key->s, rank);
 1723|       |    /* The |t| vector is public */
 1724|    219|    CONSTTIME_DECLASSIFY(key->t, vinfo->rank * sizeof(scalar));
 1725|       |
 1726|    219|    if (pubenc == NULL) {
  ------------------
  |  Branch (1726:9): [True: 219, False: 0]
  ------------------
 1727|       |        /* Incremental digest of public key without in-full serialisation. */
 1728|    219|        if (!hash_h_pubkey(key->pkhash, mdctx, key))
  ------------------
  |  Branch (1728:13): [True: 0, False: 219]
  ------------------
 1729|      0|            goto end;
 1730|    219|    } else {
 1731|      0|        encode_pubkey(pubenc, key);
 1732|      0|        if (!hash_h(key->pkhash, pubenc, vinfo->pubkey_bytes, mdctx, key))
  ------------------
  |  Branch (1732:13): [True: 0, False: 0]
  ------------------
 1733|      0|            goto end;
 1734|      0|    }
 1735|       |
 1736|       |    /* Save |z| portion of seed for "implicit rejection" on failure. */
 1737|    219|    memcpy(key->z, seed + ML_KEM_RANDOM_BYTES, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
                  memcpy(key->z, seed + ML_KEM_RANDOM_BYTES, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1738|       |
 1739|       |    /* Optionally save the |d| portion of the seed */
 1740|    219|    key->d = key->z + ML_KEM_RANDOM_BYTES;
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1741|    219|    if (key->prov_flags & ML_KEM_KEY_RETAIN_SEED) {
  ------------------
  |  |  126|    219|#define ML_KEM_KEY_RETAIN_SEED (1 << 3)
  ------------------
  |  Branch (1741:9): [True: 219, False: 0]
  ------------------
 1742|    219|        memcpy(key->d, seed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1743|    219|    } else {
 1744|      0|        OPENSSL_cleanse(key->d, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|      0|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1745|      0|        key->d = NULL;
 1746|      0|    }
 1747|       |
 1748|    219|    ret = 1;
 1749|    219|end:
 1750|    219|    OPENSSL_cleanse((void *)augmented_seed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1751|    219|    OPENSSL_cleanse((void *)sigma, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1752|    219|    if (ret == 0) {
  ------------------
  |  Branch (1752:9): [True: 0, False: 219]
  ------------------
 1753|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  355|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  351|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1754|      0|            "internal error while generating %s private key",
 1755|      0|            vinfo->algorithm_name);
 1756|      0|    }
 1757|    219|    return ret;
 1758|    219|}
ml_kem.c:prf:
  689|  1.31k|{
  690|  1.31k|    return EVP_DigestInit_ex(mdctx, key->shake256_md, NULL)
  ------------------
  |  Branch (690:12): [True: 1.31k, False: 0]
  ------------------
  691|  1.31k|        && single_keccak(out, len, in, ML_KEM_RANDOM_BYTES + 1, mdctx);
  ------------------
  |  |   47|  1.31k|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
  |  Branch (691:12): [True: 1.31k, False: 0]
  ------------------
  692|  1.31k|}
ml_kem.c:cbd_2:
 1347|  1.31k|{
 1348|  1.31k|    uint16_t *curr = out->c, *end = curr + DEGREE;
  ------------------
  |  |   41|  1.31k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  1.31k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
 1349|  1.31k|    uint8_t randbuf[4 * DEGREE / 8], *r = randbuf; /* 64 * eta slots */
 1350|  1.31k|    uint16_t value, mask;
 1351|  1.31k|    uint8_t b;
 1352|       |
 1353|  1.31k|    if (!prf(randbuf, sizeof(randbuf), in, mdctx, key))
  ------------------
  |  Branch (1353:9): [True: 0, False: 1.31k]
  ------------------
 1354|      0|        return 0;
 1355|       |
 1356|   168k|    do {
 1357|   168k|        b = *r++;
 1358|       |
 1359|       |        /*
 1360|       |         * Add |kPrime| if |value| underflowed.  See |constish_time_non_zero|
 1361|       |         * for a discussion on why the value barrier is by default omitted.
 1362|       |         * While this could have been written reduce_once(value + kPrime), this
 1363|       |         * is one extra addition and small range of |value| tempts some
 1364|       |         * versions of Clang to emit a branch.
 1365|       |         */
 1366|   168k|        value = bit0(b) + bitn(1, b);
  ------------------
  |  |   34|   168k|#define bit0(b) ((b) & 1)
  ------------------
                      value = bit0(b) + bitn(1, b);
  ------------------
  |  |   35|   168k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
 1367|   168k|        value -= bitn(2, b) + bitn(3, b);
  ------------------
  |  |   35|   168k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
                      value -= bitn(2, b) + bitn(3, b);
  ------------------
  |  |   35|   168k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
 1368|   168k|        mask = constish_time_non_zero(value >> 15);
  ------------------
  |  |   70|   168k|#define constish_time_non_zero(b) (0u - (b))
  ------------------
 1369|   168k|        *curr++ = value + (kPrime & mask);
 1370|       |
 1371|   168k|        value = bitn(4, b) + bitn(5, b);
  ------------------
  |  |   35|   168k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
                      value = bitn(4, b) + bitn(5, b);
  ------------------
  |  |   35|   168k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
 1372|   168k|        value -= bitn(6, b) + bitn(7, b);
  ------------------
  |  |   35|   168k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
                      value -= bitn(6, b) + bitn(7, b);
  ------------------
  |  |   35|   168k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
 1373|   168k|        mask = constish_time_non_zero(value >> 15);
  ------------------
  |  |   70|   168k|#define constish_time_non_zero(b) (0u - (b))
  ------------------
 1374|   168k|        *curr++ = value + (kPrime & mask);
 1375|   168k|    } while (curr < end);
  ------------------
  |  Branch (1375:14): [True: 166k, False: 1.31k]
  ------------------
 1376|  1.31k|    return 1;
 1377|  1.31k|}
ml_kem.c:hash_g:
  738|    219|{
  739|    219|    return EVP_DigestInit_ex(mdctx, key->sha3_512_md, NULL)
  ------------------
  |  Branch (739:12): [True: 219, False: 0]
  ------------------
  740|    219|        && single_keccak(out, ML_KEM_SEED_BYTES, in, len, mdctx);
  ------------------
  |  |   48|    219|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
  |  Branch (740:12): [True: 219, False: 0]
  ------------------
  741|    219|}
ml_kem.c:gencbd_vector_ntt:
 1456|    438|{
 1457|    438|    uint8_t input[ML_KEM_RANDOM_BYTES + 1];
 1458|       |
 1459|    438|    memcpy(input, seed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    438|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1460|  1.31k|    do {
 1461|  1.31k|        input[ML_KEM_RANDOM_BYTES] = (*counter)++;
  ------------------
  |  |   47|  1.31k|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1462|  1.31k|        if (!cbd(out, input, mdctx, key))
  ------------------
  |  Branch (1462:13): [True: 0, False: 1.31k]
  ------------------
 1463|      0|            return 0;
 1464|  1.31k|        scalar_ntt(out++);
 1465|  1.31k|    } while (--rank > 0);
  ------------------
  |  Branch (1465:14): [True: 876, False: 438]
  ------------------
 1466|    438|    return 1;
 1467|    438|}
ml_kem.c:scalar_ntt:
  846|  1.31k|{
  847|  1.31k|    const uint16_t *roots = kNTTRoots;
  848|  1.31k|    uint16_t *end = s->c + DEGREE;
  ------------------
  |  |   41|  1.31k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  1.31k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  849|  1.31k|    int offset = DEGREE / 2;
  ------------------
  |  |   41|  1.31k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  1.31k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  850|       |
  851|  9.19k|    do {
  852|  9.19k|        uint16_t *curr = s->c, *peer;
  853|       |
  854|   166k|        do {
  855|   166k|            uint16_t *pause = curr + offset, even, odd;
  856|   166k|            uint32_t zeta = *++roots;
  857|       |
  858|   166k|            peer = pause;
  859|  1.17M|            do {
  860|  1.17M|                even = *curr;
  861|  1.17M|                odd = reduce(*peer * zeta);
  862|  1.17M|                *peer++ = reduce_once(even - odd + kPrime);
  863|  1.17M|                *curr++ = reduce_once(odd + even);
  864|  1.17M|            } while (curr < pause);
  ------------------
  |  Branch (864:22): [True: 1.01M, False: 166k]
  ------------------
  865|   166k|        } while ((curr = peer) < end);
  ------------------
  |  Branch (865:18): [True: 157k, False: 9.19k]
  ------------------
  866|  9.19k|    } while ((offset >>= 1) >= 2);
  ------------------
  |  Branch (866:14): [True: 7.88k, False: 1.31k]
  ------------------
  867|  1.31k|}
ml_kem.c:reduce:
  817|  1.93M|{
  818|  1.93M|    uint64_t product = (uint64_t)x * kBarrettMultiplier;
  819|  1.93M|    uint32_t quotient = (uint32_t)(product >> kBarrettShift);
  820|  1.93M|    uint32_t remainder = x - quotient * kPrime;
  821|       |
  822|  1.93M|    return reduce_once(remainder);
  823|  1.93M|}
ml_kem.c:reduce_once:
  803|  4.28M|{
  804|  4.28M|    const uint16_t subtracted = x - kPrime;
  805|  4.28M|    uint16_t mask = constish_time_non_zero(subtracted >> 15);
  ------------------
  |  |   70|  4.28M|#define constish_time_non_zero(b) (0u - (b))
  ------------------
  806|       |
  807|  4.28M|    return (mask & x) | (~mask & subtracted);
  808|  4.28M|}
ml_kem.c:matrix_mult_transpose_add:
 1298|    219|{
 1299|    219|    const scalar *mc = m, *mr, *ar;
 1300|    219|    int i, j;
 1301|       |
 1302|    876|    for (i = rank; i-- > 0; ++out) {
  ------------------
  |  Branch (1302:20): [True: 657, False: 219]
  ------------------
 1303|    657|        scalar_mult_add(out, mr = mc++, ar = a);
 1304|  1.97k|        for (j = rank; --j > 0;)
  ------------------
  |  Branch (1304:24): [True: 1.31k, False: 657]
  ------------------
 1305|  1.31k|            scalar_mult_add(out, (mr += rank), ++ar);
 1306|    657|    }
 1307|    219|}
ml_kem.c:scalar_mult_add:
  951|  1.97k|{
  952|  1.97k|    uint16_t *curr = out->c, *end = curr + DEGREE;
  ------------------
  |  |   41|  1.97k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  1.97k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  953|  1.97k|    const uint16_t *lc = lhs->c, *rc = rhs->c;
  954|  1.97k|    const uint16_t *roots = kModRoots;
  955|       |
  956|   252k|    do {
  957|   252k|        uint32_t l0 = *lc++, r0 = *rc++;
  958|   252k|        uint32_t l1 = *lc++, r1 = *rc++;
  959|   252k|        uint16_t *c0 = curr++;
  960|   252k|        uint16_t *c1 = curr++;
  961|   252k|        uint32_t zetapow = *roots++;
  962|       |
  963|   252k|        *c0 = reduce(*c0 + l0 * r0 + reduce(l1 * r1) * zetapow);
  964|   252k|        *c1 = reduce(*c1 + l0 * r1 + l1 * r0);
  965|   252k|    } while (curr < end);
  ------------------
  |  Branch (965:14): [True: 250k, False: 1.97k]
  ------------------
  966|  1.97k|}
ml_kem.c:hash_h_pubkey:
  709|    219|{
  710|    219|    const ML_KEM_VINFO *vinfo = key->vinfo;
  711|    219|    const scalar *t = key->t, *end = t + vinfo->rank;
  712|    219|    unsigned int sz;
  713|       |
  714|    219|    if (!EVP_DigestInit_ex(mdctx, key->sha3_256_md, NULL))
  ------------------
  |  Branch (714:9): [True: 0, False: 219]
  ------------------
  715|      0|        return 0;
  716|       |
  717|    657|    do {
  718|    657|        uint8_t buf[3 * DEGREE / 2];
  719|       |
  720|    657|        scalar_encode(buf, t++, 12);
  721|    657|        if (!EVP_DigestUpdate(mdctx, buf, sizeof(buf)))
  ------------------
  |  Branch (721:13): [True: 0, False: 657]
  ------------------
  722|      0|            return 0;
  723|    657|    } while (t < end);
  ------------------
  |  Branch (723:14): [True: 438, False: 219]
  ------------------
  724|       |
  725|    219|    if (!EVP_DigestUpdate(mdctx, key->rho, ML_KEM_RANDOM_BYTES))
  ------------------
  |  |   47|    219|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
  |  Branch (725:9): [True: 0, False: 219]
  ------------------
  726|      0|        return 0;
  727|    219|    return EVP_DigestFinal_ex(mdctx, pkhash, &sz)
  ------------------
  |  Branch (727:12): [True: 219, False: 0]
  ------------------
  728|    219|        && ossl_assert(sz == ML_KEM_PKHASH_BYTES);
  ------------------
  |  |   52|    219|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:24): [True: 219, False: 0]
  |  |  ------------------
  |  |   53|    219|    __FILE__, __LINE__)
  ------------------
  729|    219|}

CRYPTO_ctr128_encrypt_ctr32:
  155|  9.26k|{
  156|  9.26k|    unsigned int n, ctr32;
  157|       |
  158|  9.26k|    n = *num;
  159|       |
  160|  9.26k|    while (n && len) {
  ------------------
  |  Branch (160:12): [True: 0, False: 9.26k]
  |  Branch (160:17): [True: 0, False: 0]
  ------------------
  161|      0|        *(out++) = *(in++) ^ ecount_buf[n];
  162|      0|        --len;
  163|      0|        n = (n + 1) % 16;
  164|      0|    }
  165|       |
  166|  9.26k|    ctr32 = GETU32(ivec + 12);
  ------------------
  |  |   98|  9.26k|#define GETU32(p) ((u32)(p)[0] << 24 | (u32)(p)[1] << 16 | (u32)(p)[2] << 8 | (u32)(p)[3])
  ------------------
  167|  11.2k|    while (len >= 16) {
  ------------------
  |  Branch (167:12): [True: 1.98k, False: 9.26k]
  ------------------
  168|  1.98k|        size_t blocks = len / 16;
  169|       |        /*
  170|       |         * 1<<28 is just a not-so-small yet not-so-large number...
  171|       |         * Below condition is practically never met, but it has to
  172|       |         * be checked for code correctness.
  173|       |         */
  174|  1.98k|        if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28))
  ------------------
  |  Branch (174:13): [True: 1.98k, Folded]
  |  Branch (174:54): [True: 0, False: 1.98k]
  ------------------
  175|      0|            blocks = (1U << 28);
  176|       |        /*
  177|       |         * As (*func) operates on 32-bit counter, caller
  178|       |         * has to handle overflow. 'if' below detects the
  179|       |         * overflow, which is then handled by limiting the
  180|       |         * amount of blocks to the exact overflow point...
  181|       |         */
  182|  1.98k|        ctr32 += (u32)blocks;
  183|  1.98k|        if (ctr32 < blocks) {
  ------------------
  |  Branch (183:13): [True: 0, False: 1.98k]
  ------------------
  184|      0|            blocks -= ctr32;
  185|      0|            ctr32 = 0;
  186|      0|        }
  187|  1.98k|        (*func)(in, out, blocks, key, ivec);
  188|       |        /* (*ctr) does not update ivec, caller does: */
  189|  1.98k|        PUTU32(ivec + 12, ctr32);
  ------------------
  |  |   99|  1.98k|#define PUTU32(p, v) ((p)[0] = (u8)((v) >> 24), (p)[1] = (u8)((v) >> 16), (p)[2] = (u8)((v) >> 8), (p)[3] = (u8)(v))
  ------------------
  190|       |        /* ... overflow was detected, propagate carry. */
  191|  1.98k|        if (ctr32 == 0)
  ------------------
  |  Branch (191:13): [True: 0, False: 1.98k]
  ------------------
  192|      0|            ctr96_inc(ivec);
  193|  1.98k|        blocks *= 16;
  194|  1.98k|        len -= blocks;
  195|  1.98k|        out += blocks;
  196|  1.98k|        in += blocks;
  197|  1.98k|    }
  198|  9.26k|    if (len) {
  ------------------
  |  Branch (198:9): [True: 7.28k, False: 1.98k]
  ------------------
  199|  7.28k|        memset(ecount_buf, 0, 16);
  200|  7.28k|        (*func)(ecount_buf, ecount_buf, 1, key, ivec);
  201|  7.28k|        ++ctr32;
  202|  7.28k|        PUTU32(ivec + 12, ctr32);
  ------------------
  |  |   99|  7.28k|#define PUTU32(p, v) ((p)[0] = (u8)((v) >> 24), (p)[1] = (u8)((v) >> 16), (p)[2] = (u8)((v) >> 8), (p)[3] = (u8)(v))
  ------------------
  203|  7.28k|        if (ctr32 == 0)
  ------------------
  |  Branch (203:13): [True: 0, False: 7.28k]
  ------------------
  204|      0|            ctr96_inc(ivec);
  205|  36.4k|        while (len--) {
  ------------------
  |  Branch (205:16): [True: 29.1k, False: 7.28k]
  ------------------
  206|  29.1k|            out[n] = in[n] ^ ecount_buf[n];
  207|  29.1k|            ++n;
  208|  29.1k|        }
  209|  7.28k|    }
  210|       |
  211|  9.26k|    *num = n;
  212|  9.26k|}

openssl_fopen:
   39|    221|{
   40|    221|    FILE *file = NULL;
   41|       |#if defined(_WIN32) && defined(CP_UTF8)
   42|       |    int sz, len_0;
   43|       |    DWORD flags;
   44|       |#endif
   45|       |
   46|    221|    if (filename == NULL)
  ------------------
  |  Branch (46:9): [True: 0, False: 221]
  ------------------
   47|      0|        return NULL;
   48|       |#if defined(_WIN32) && defined(CP_UTF8)
   49|       |    len_0 = (int)strlen(filename) + 1;
   50|       |
   51|       |    /*
   52|       |     * Basically there are three cases to cover: a) filename is
   53|       |     * pure ASCII string; b) actual UTF-8 encoded string and
   54|       |     * c) locale-ized string, i.e. one containing 8-bit
   55|       |     * characters that are meaningful in current system locale.
   56|       |     * If filename is pure ASCII or real UTF-8 encoded string,
   57|       |     * MultiByteToWideChar succeeds and _wfopen works. If
   58|       |     * filename is locale-ized string, chances are that
   59|       |     * MultiByteToWideChar fails reporting
   60|       |     * ERROR_NO_UNICODE_TRANSLATION, in which case we fall
   61|       |     * back to fopen...
   62|       |     */
   63|       |    if ((sz = MultiByteToWideChar(CP_UTF8, (flags = MB_ERR_INVALID_CHARS),
   64|       |             filename, len_0, NULL, 0))
   65|       |            > 0
   66|       |        || (GetLastError() == ERROR_INVALID_FLAGS && (sz = MultiByteToWideChar(CP_UTF8, (flags = 0), filename, len_0, NULL, 0)) > 0)) {
   67|       |        WCHAR wmode[8];
   68|       |        WCHAR *wfilename = _alloca(sz * sizeof(WCHAR));
   69|       |
   70|       |        if (MultiByteToWideChar(CP_UTF8, flags,
   71|       |                filename, len_0, wfilename, sz)
   72|       |            && MultiByteToWideChar(CP_UTF8, 0, mode, (int)(strlen(mode) + 1),
   73|       |                wmode, OSSL_NELEM(wmode))
   74|       |            && (file = _wfopen(wfilename, wmode)) == NULL && (errno == ENOENT || errno == EBADF)) {
   75|       |            /*
   76|       |             * UTF-8 decode succeeded, but no file, filename
   77|       |             * could still have been locale-ized...
   78|       |             */
   79|       |            file = fopen(filename, mode);
   80|       |        }
   81|       |    } else if (GetLastError() == ERROR_NO_UNICODE_TRANSLATION) {
   82|       |        file = fopen(filename, mode);
   83|       |    }
   84|       |#elif defined(__DJGPP__)
   85|       |    {
   86|       |        char *newname = NULL;
   87|       |
   88|       |        if (pathconf(filename, _PC_NAME_MAX) <= 12) { /* 8.3 file system? */
   89|       |            char *iterator;
   90|       |            char lastchar;
   91|       |
   92|       |            if ((newname = OPENSSL_malloc(strlen(filename) + 1)) == NULL)
   93|       |                return NULL;
   94|       |
   95|       |            for (iterator = newname, lastchar = '\0';
   96|       |                *filename; filename++, iterator++) {
   97|       |                if (lastchar == '/' && filename[0] == '.'
   98|       |                    && filename[1] != '.' && filename[1] != '/') {
   99|       |                    /* Leading dots are not permitted in plain DOS. */
  100|       |                    *iterator = '_';
  101|       |                } else {
  102|       |                    *iterator = *filename;
  103|       |                }
  104|       |                lastchar = *filename;
  105|       |            }
  106|       |            *iterator = '\0';
  107|       |            filename = newname;
  108|       |        }
  109|       |        file = fopen(filename, mode);
  110|       |
  111|       |        OPENSSL_free(newname);
  112|       |    }
  113|       |#else
  114|    221|    file = fopen(filename, mode);
  115|    221|#endif
  116|    221|    return file;
  117|    221|}

CRYPTO_strdup:
   23|  42.2k|{
   24|  42.2k|    char *ret;
   25|  42.2k|    size_t len;
   26|       |
   27|  42.2k|    if (str == NULL)
  ------------------
  |  Branch (27:9): [True: 0, False: 42.2k]
  ------------------
   28|      0|        return NULL;
   29|       |
   30|  42.2k|    len = strlen(str) + 1;
   31|  42.2k|    ret = CRYPTO_malloc(len, file, line);
   32|  42.2k|    if (ret != NULL)
  ------------------
  |  Branch (32:9): [True: 42.2k, False: 0]
  ------------------
   33|  42.2k|        memcpy(ret, str, len);
   34|  42.2k|    return ret;
   35|  42.2k|}
CRYPTO_strndup:
   38|    566|{
   39|    566|    size_t maxlen;
   40|    566|    char *ret;
   41|       |
   42|    566|    if (str == NULL)
  ------------------
  |  Branch (42:9): [True: 0, False: 566]
  ------------------
   43|      0|        return NULL;
   44|       |
   45|    566|    maxlen = OPENSSL_strnlen(str, s);
   46|       |
   47|    566|    ret = CRYPTO_malloc(maxlen + 1, file, line);
   48|    566|    if (ret) {
  ------------------
  |  Branch (48:9): [True: 566, False: 0]
  ------------------
   49|    566|        memcpy(ret, str, maxlen);
   50|    566|        ret[maxlen] = CH_ZERO;
  ------------------
  |  |   20|    566|#define CH_ZERO '\0'
  ------------------
   51|    566|    }
   52|    566|    return ret;
   53|    566|}
CRYPTO_memdup:
   56|  1.31k|{
   57|  1.31k|    void *ret;
   58|       |
   59|  1.31k|    if (data == NULL || siz >= INT_MAX)
  ------------------
  |  Branch (59:9): [True: 0, False: 1.31k]
  |  Branch (59:25): [True: 0, False: 1.31k]
  ------------------
   60|      0|        return NULL;
   61|       |
   62|  1.31k|    ret = CRYPTO_malloc(siz, file, line);
   63|  1.31k|    if (ret == NULL)
  ------------------
  |  Branch (63:9): [True: 0, False: 1.31k]
  ------------------
   64|      0|        return NULL;
   65|  1.31k|    return memcpy(ret, data, siz);
   66|  1.31k|}
OPENSSL_strnlen:
   69|  11.1k|{
   70|  11.1k|    const char *p;
   71|       |
   72|   181k|    for (p = str; maxlen-- != 0 && *p != CH_ZERO; ++p)
  ------------------
  |  |   20|   181k|#define CH_ZERO '\0'
  ------------------
  |  Branch (72:19): [True: 181k, False: 566]
  |  Branch (72:36): [True: 170k, False: 10.5k]
  ------------------
   73|   170k|        ;
   74|       |
   75|  11.1k|    return p - str;
   76|  11.1k|}
OPENSSL_strlcpy:
   79|  65.3k|{
   80|  65.3k|    size_t l = 0;
   81|   918k|    for (; size > 1 && *src; size--) {
  ------------------
  |  Branch (81:12): [True: 918k, False: 0]
  |  Branch (81:24): [True: 852k, False: 65.3k]
  ------------------
   82|   852k|        *dst++ = *src++;
   83|   852k|        l++;
   84|   852k|    }
   85|  65.3k|    if (size)
  ------------------
  |  Branch (85:9): [True: 65.3k, False: 0]
  ------------------
   86|  65.3k|        *dst = CH_ZERO;
  ------------------
  |  |   20|  65.3k|#define CH_ZERO '\0'
  ------------------
   87|  65.3k|    return l + strlen(src);
   88|  65.3k|}
OPENSSL_strcasecmp:
  424|   395k|{
  425|   395k|    int t;
  426|       |
  427|  3.07M|    while ((t = ossl_tolower(*s1) - ossl_tolower(*s2++)) == 0)
  ------------------
  |  Branch (427:12): [True: 2.90M, False: 168k]
  ------------------
  428|  2.90M|        if (*s1++ == '\0')
  ------------------
  |  Branch (428:13): [True: 227k, False: 2.67M]
  ------------------
  429|   227k|            return 0;
  430|   168k|    return t;
  431|   395k|}
OPENSSL_strncasecmp:
  434|   113k|{
  435|   113k|    int t;
  436|   113k|    size_t i;
  437|       |
  438|   293k|    for (i = 0; i < n; i++)
  ------------------
  |  Branch (438:17): [True: 228k, False: 64.8k]
  ------------------
  439|   228k|        if ((t = ossl_tolower(*s1) - ossl_tolower(*s2++)) != 0)
  ------------------
  |  Branch (439:13): [True: 48.8k, False: 179k]
  ------------------
  440|  48.8k|            return t;
  441|   179k|        else if (*s1++ == '\0')
  ------------------
  |  Branch (441:18): [True: 0, False: 179k]
  ------------------
  442|      0|            return 0;
  443|  64.8k|    return 0;
  444|   113k|}

OBJ_NAME_init:
   64|  1.40k|{
   65|  1.40k|    return RUN_ONCE(&init, o_names_init);
  ------------------
  |  |  130|  1.40k|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 1.40k, False: 0]
  |  |  ------------------
  ------------------
   66|  1.40k|}
OBJ_NAME_get:
  153|    556|{
  154|    556|    OBJ_NAME on, *ret;
  155|    556|    int num = 0, alias;
  156|    556|    const char *value = NULL;
  157|       |
  158|    556|    if (name == NULL)
  ------------------
  |  Branch (158:9): [True: 0, False: 556]
  ------------------
  159|      0|        return NULL;
  160|    556|    if (!OBJ_NAME_init())
  ------------------
  |  Branch (160:9): [True: 0, False: 556]
  ------------------
  161|      0|        return NULL;
  162|    556|    if (!CRYPTO_THREAD_read_lock(obj_lock))
  ------------------
  |  Branch (162:9): [True: 0, False: 556]
  ------------------
  163|      0|        return NULL;
  164|       |
  165|    556|    alias = type & OBJ_NAME_ALIAS;
  ------------------
  |  |   33|    556|#define OBJ_NAME_ALIAS 0x8000
  ------------------
  166|    556|    type &= ~OBJ_NAME_ALIAS;
  ------------------
  |  |   33|    556|#define OBJ_NAME_ALIAS 0x8000
  ------------------
  167|       |
  168|    556|    on.name = name;
  169|    556|    on.type = type;
  170|       |
  171|    651|    for (;;) {
  172|    651|        ret = lh_OBJ_NAME_retrieve(names_lh, &on);
  173|    651|        if (ret == NULL)
  ------------------
  |  Branch (173:13): [True: 157, False: 494]
  ------------------
  174|    157|            break;
  175|    494|        if ((ret->alias) && !alias) {
  ------------------
  |  Branch (175:13): [True: 95, False: 399]
  |  Branch (175:29): [True: 95, False: 0]
  ------------------
  176|     95|            if (++num > 10)
  ------------------
  |  Branch (176:17): [True: 0, False: 95]
  ------------------
  177|      0|                break;
  178|     95|            on.name = ret->data;
  179|    399|        } else {
  180|    399|            value = ret->data;
  181|    399|            break;
  182|    399|        }
  183|    494|    }
  184|       |
  185|    556|    CRYPTO_THREAD_unlock(obj_lock);
  186|    556|    return value;
  187|    556|}
OBJ_NAME_add:
  190|    848|{
  191|    848|    OBJ_NAME *onp, *ret;
  192|    848|    int alias, ok = 0;
  193|       |
  194|    848|    if (!OBJ_NAME_init())
  ------------------
  |  Branch (194:9): [True: 0, False: 848]
  ------------------
  195|      0|        return 0;
  196|       |
  197|    848|    alias = type & OBJ_NAME_ALIAS;
  ------------------
  |  |   33|    848|#define OBJ_NAME_ALIAS 0x8000
  ------------------
  198|    848|    type &= ~OBJ_NAME_ALIAS;
  ------------------
  |  |   33|    848|#define OBJ_NAME_ALIAS 0x8000
  ------------------
  199|       |
  200|    848|    onp = OPENSSL_malloc(sizeof(*onp));
  ------------------
  |  |  106|    848|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  201|    848|    if (onp == NULL)
  ------------------
  |  Branch (201:9): [True: 0, False: 848]
  ------------------
  202|      0|        return 0;
  203|       |
  204|    848|    onp->name = name;
  205|    848|    onp->alias = alias;
  206|    848|    onp->type = type;
  207|    848|    onp->data = data;
  208|       |
  209|    848|    if (!CRYPTO_THREAD_write_lock(obj_lock)) {
  ------------------
  |  Branch (209:9): [True: 0, False: 848]
  ------------------
  210|      0|        OPENSSL_free(onp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  211|      0|        return 0;
  212|      0|    }
  213|       |
  214|    848|    ret = lh_OBJ_NAME_insert(names_lh, onp);
  215|    848|    if (ret != NULL) {
  ------------------
  |  Branch (215:9): [True: 364, False: 484]
  ------------------
  216|       |        /* free things */
  217|    364|        if ((name_funcs_stack != NULL)
  ------------------
  |  Branch (217:13): [True: 0, False: 364]
  ------------------
  218|      0|            && (sk_NAME_FUNCS_num(name_funcs_stack) > ret->type)) {
  ------------------
  |  Branch (218:16): [True: 0, False: 0]
  ------------------
  219|       |            /*
  220|       |             * XXX: I'm not sure I understand why the free function should
  221|       |             * get three arguments... -- Richard Levitte
  222|       |             */
  223|      0|            sk_NAME_FUNCS_value(name_funcs_stack,
  224|      0|                ret->type)
  225|      0|                ->free_func(ret->name, ret->type,
  226|      0|                    ret->data);
  227|      0|        }
  228|    364|        OPENSSL_free(ret);
  ------------------
  |  |  131|    364|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  229|    484|    } else {
  230|    484|        if (lh_OBJ_NAME_error(names_lh)) {
  ------------------
  |  Branch (230:13): [True: 0, False: 484]
  ------------------
  231|       |            /* ERROR */
  232|      0|            OPENSSL_free(onp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  233|      0|            goto unlock;
  234|      0|        }
  235|    484|    }
  236|       |
  237|    848|    ok = 1;
  238|       |
  239|    848|unlock:
  240|    848|    CRYPTO_THREAD_unlock(obj_lock);
  241|    848|    return ok;
  242|    848|}
OBJ_NAME_do_all:
  296|      2|{
  297|      2|    OBJ_DOALL d;
  298|       |
  299|      2|    d.type = type;
  300|      2|    d.fn = fn;
  301|      2|    d.arg = arg;
  302|       |
  303|      2|    lh_OBJ_NAME_doall_OBJ_DOALL(names_lh, do_all_fn, &d);
  304|      2|}
o_names.c:o_names_init:
   51|      2|{
   52|      2|    names_lh = NULL;
   53|      2|    obj_lock = CRYPTO_THREAD_lock_new();
   54|      2|    if (obj_lock != NULL)
  ------------------
  |  Branch (54:9): [True: 2, False: 0]
  ------------------
   55|      2|        names_lh = lh_OBJ_NAME_new(obj_name_hash, obj_name_cmp);
   56|      2|    if (names_lh == NULL) {
  ------------------
  |  Branch (56:9): [True: 0, False: 2]
  ------------------
   57|      0|        CRYPTO_THREAD_lock_free(obj_lock);
   58|      0|        obj_lock = NULL;
   59|      0|    }
   60|      2|    return names_lh != NULL && obj_lock != NULL;
  ------------------
  |  Branch (60:12): [True: 2, False: 0]
  |  Branch (60:32): [True: 2, False: 0]
  ------------------
   61|      2|}
o_names.c:obj_name_hash:
  137|  1.49k|{
  138|  1.49k|    unsigned long ret;
  139|       |
  140|  1.49k|    if ((name_funcs_stack != NULL)
  ------------------
  |  Branch (140:9): [True: 0, False: 1.49k]
  ------------------
  141|      0|        && (sk_NAME_FUNCS_num(name_funcs_stack) > a->type)) {
  ------------------
  |  Branch (141:12): [True: 0, False: 0]
  ------------------
  142|      0|        ret = sk_NAME_FUNCS_value(name_funcs_stack,
  143|      0|            a->type)
  144|      0|                  ->hash_func(a->name);
  145|  1.49k|    } else {
  146|  1.49k|        ret = ossl_lh_strcasehash(a->name);
  147|  1.49k|    }
  148|  1.49k|    ret ^= a->type;
  149|  1.49k|    return ret;
  150|  1.49k|}
o_names.c:obj_name_cmp:
  120|    858|{
  121|    858|    int ret;
  122|       |
  123|    858|    ret = a->type - b->type;
  124|    858|    if (ret == 0) {
  ------------------
  |  Branch (124:9): [True: 858, False: 0]
  ------------------
  125|    858|        if ((name_funcs_stack != NULL)
  ------------------
  |  Branch (125:13): [True: 0, False: 858]
  ------------------
  126|      0|            && (sk_NAME_FUNCS_num(name_funcs_stack) > a->type)) {
  ------------------
  |  Branch (126:16): [True: 0, False: 0]
  ------------------
  127|      0|            ret = sk_NAME_FUNCS_value(name_funcs_stack,
  128|      0|                a->type)
  129|      0|                      ->cmp_func(a->name, b->name);
  130|      0|        } else
  131|    858|            ret = OPENSSL_strcasecmp(a->name, b->name);
  132|    858|    }
  133|    858|    return ret;
  134|    858|}
o_names.c:do_all_fn:
  287|    484|{
  288|    484|    if (name->type == d->type)
  ------------------
  |  Branch (288:9): [True: 242, False: 242]
  ------------------
  289|    242|        d->fn(name, d->arg);
  290|    484|}

OBJ_nid2obj:
  258|  1.34M|{
  259|  1.34M|    ADDED_OBJ ad, *adp = NULL;
  260|  1.34M|    ASN1_OBJECT ob;
  261|       |
  262|  1.34M|    if (n == NID_undef
  ------------------
  |  |   18|  2.68M|#define NID_undef                       0
  ------------------
  |  Branch (262:9): [True: 727k, False: 616k]
  ------------------
  263|   616k|        || (n > 0 && n < NUM_NID && nid_objs[n].nid != NID_undef))
  ------------------
  |  | 1358|  1.23M|#define NUM_NID 1501
  ------------------
                      || (n > 0 && n < NUM_NID && nid_objs[n].nid != NID_undef))
  ------------------
  |  |   18|   616k|#define NID_undef                       0
  ------------------
  |  Branch (263:13): [True: 616k, False: 0]
  |  Branch (263:22): [True: 616k, False: 0]
  |  Branch (263:37): [True: 616k, False: 0]
  ------------------
  264|  1.34M|        return (ASN1_OBJECT *)&(nid_objs[n]);
  265|       |
  266|      0|    ad.type = ADDED_NID;
  ------------------
  |  |   33|      0|#define ADDED_NID 3
  ------------------
  267|      0|    ad.obj = &ob;
  268|      0|    ob.nid = n;
  269|      0|    if (!ossl_obj_read_lock()) {
  ------------------
  |  Branch (269:9): [True: 0, False: 0]
  ------------------
  270|      0|        ERR_raise(ERR_LIB_OBJ, ERR_R_UNABLE_TO_GET_READ_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  271|      0|        return NULL;
  272|      0|    }
  273|      0|    adp = lh_ADDED_OBJ_retrieve(added, &ad);
  274|      0|    ossl_obj_unlock();
  275|      0|    if (adp != NULL)
  ------------------
  |  Branch (275:9): [True: 0, False: 0]
  ------------------
  276|      0|        return adp->obj;
  277|       |
  278|      0|    ERR_raise(ERR_LIB_OBJ, OBJ_R_UNKNOWN_NID);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  279|       |    return NULL;
  280|      0|}
OBJ_nid2sn:
  283|  15.3k|{
  284|  15.3k|    ASN1_OBJECT *ob = OBJ_nid2obj(n);
  285|       |
  286|  15.3k|    return ob == NULL ? NULL : ob->sn;
  ------------------
  |  Branch (286:12): [True: 0, False: 15.3k]
  ------------------
  287|  15.3k|}
OBJ_nid2ln:
  290|  64.5k|{
  291|  64.5k|    ASN1_OBJECT *ob = OBJ_nid2obj(n);
  292|       |
  293|  64.5k|    return ob == NULL ? NULL : ob->ln;
  ------------------
  |  Branch (293:12): [True: 0, False: 64.5k]
  ------------------
  294|  64.5k|}
OBJ_txt2obj:
  348|  5.28k|{
  349|  5.28k|    int nid = NID_undef;
  ------------------
  |  |   18|  5.28k|#define NID_undef                       0
  ------------------
  350|  5.28k|    ASN1_OBJECT *op = NULL;
  351|  5.28k|    unsigned char *buf;
  352|  5.28k|    unsigned char *p;
  353|  5.28k|    const unsigned char *cp;
  354|  5.28k|    int i, j;
  355|       |
  356|  5.28k|    if (!no_name) {
  ------------------
  |  Branch (356:9): [True: 4.62k, False: 660]
  ------------------
  357|  4.62k|        if ((nid = OBJ_sn2nid(s)) != NID_undef
  ------------------
  |  |   18|  9.24k|#define NID_undef                       0
  ------------------
  |  Branch (357:13): [True: 0, False: 4.62k]
  ------------------
  358|  4.62k|            || (nid = OBJ_ln2nid(s)) != NID_undef) {
  ------------------
  |  |   18|  4.62k|#define NID_undef                       0
  ------------------
  |  Branch (358:16): [True: 4.62k, False: 0]
  ------------------
  359|  4.62k|            return OBJ_nid2obj(nid);
  360|  4.62k|        }
  361|      0|        if (!ossl_isdigit(*s)) {
  ------------------
  |  Branch (361:13): [True: 0, False: 0]
  ------------------
  362|      0|            ERR_raise(ERR_LIB_OBJ, OBJ_R_UNKNOWN_OBJECT_NAME);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  363|      0|            return NULL;
  364|      0|        }
  365|      0|    }
  366|       |
  367|       |    /* Work out size of content octets */
  368|    660|    i = a2d_ASN1_OBJECT(NULL, 0, s, -1);
  369|    660|    if (i <= 0)
  ------------------
  |  Branch (369:9): [True: 0, False: 660]
  ------------------
  370|      0|        return NULL;
  371|       |
  372|       |    /* Work out total size */
  373|    660|    j = ASN1_object_size(0, i, V_ASN1_OBJECT);
  ------------------
  |  |   70|    660|#define V_ASN1_OBJECT 6
  ------------------
  374|    660|    if (j < 0)
  ------------------
  |  Branch (374:9): [True: 0, False: 660]
  ------------------
  375|      0|        return NULL;
  376|       |
  377|    660|    if ((buf = OPENSSL_malloc(j)) == NULL)
  ------------------
  |  |  106|    660|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (377:9): [True: 0, False: 660]
  ------------------
  378|      0|        return NULL;
  379|       |
  380|    660|    p = buf;
  381|       |    /* Write out tag+length */
  382|    660|    ASN1_put_object(&p, 0, i, V_ASN1_OBJECT, V_ASN1_UNIVERSAL);
  ------------------
  |  |   70|    660|#define V_ASN1_OBJECT 6
  ------------------
                  ASN1_put_object(&p, 0, i, V_ASN1_OBJECT, V_ASN1_UNIVERSAL);
  ------------------
  |  |   49|    660|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  383|       |    /* Write out contents */
  384|    660|    a2d_ASN1_OBJECT(p, i, s, -1);
  385|       |
  386|    660|    cp = buf;
  387|    660|    op = d2i_ASN1_OBJECT(NULL, &cp, j);
  388|    660|    OPENSSL_free(buf);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  389|    660|    return op;
  390|    660|}
OBJ_obj2txt:
  393|  64.1k|{
  394|  64.1k|    int i, n = 0, len, nid, first, use_bn;
  395|  64.1k|    BIGNUM *bl;
  396|  64.1k|    unsigned long l;
  397|  64.1k|    const unsigned char *p;
  398|  64.1k|    char tbuf[DECIMAL_SIZE(i) + DECIMAL_SIZE(l) + 2];
  399|  64.1k|    const char *s;
  400|       |
  401|       |    /* Ensure that, at every state, |buf| is NUL-terminated. */
  402|  64.1k|    if (buf != NULL && buf_len > 0)
  ------------------
  |  Branch (402:9): [True: 64.1k, False: 0]
  |  Branch (402:24): [True: 64.1k, False: 0]
  ------------------
  403|  64.1k|        buf[0] = '\0';
  404|       |
  405|  64.1k|    if (a == NULL || a->data == NULL)
  ------------------
  |  Branch (405:9): [True: 0, False: 64.1k]
  |  Branch (405:22): [True: 1, False: 64.1k]
  ------------------
  406|      1|        return 0;
  407|       |
  408|  64.1k|    if (!no_name && (nid = OBJ_obj2nid(a)) != NID_undef) {
  ------------------
  |  |   18|  63.9k|#define NID_undef                       0
  ------------------
  |  Branch (408:9): [True: 63.9k, False: 209]
  |  Branch (408:21): [True: 63.9k, False: 0]
  ------------------
  409|  63.9k|        s = OBJ_nid2ln(nid);
  410|  63.9k|        if (s == NULL)
  ------------------
  |  Branch (410:13): [True: 0, False: 63.9k]
  ------------------
  411|      0|            s = OBJ_nid2sn(nid);
  412|  63.9k|        if (s != NULL) {
  ------------------
  |  Branch (412:13): [True: 63.9k, False: 0]
  ------------------
  413|  63.9k|            if (buf != NULL)
  ------------------
  |  Branch (413:17): [True: 63.9k, False: 0]
  ------------------
  414|  63.9k|                OPENSSL_strlcpy(buf, s, buf_len);
  415|  63.9k|            return (int)strlen(s);
  416|  63.9k|        }
  417|  63.9k|    }
  418|       |
  419|    209|    len = a->length;
  420|    209|    p = a->data;
  421|       |
  422|    209|    first = 1;
  423|    209|    bl = NULL;
  424|       |
  425|       |    /*
  426|       |     * RFC 2578 (STD 58) says this about OBJECT IDENTIFIERs:
  427|       |     *
  428|       |     * > 3.5. OBJECT IDENTIFIER values
  429|       |     * >
  430|       |     * > An OBJECT IDENTIFIER value is an ordered list of non-negative
  431|       |     * > numbers. For the SMIv2, each number in the list is referred to as a
  432|       |     * > sub-identifier, there are at most 128 sub-identifiers in a value,
  433|       |     * > and each sub-identifier has a maximum value of 2^32-1 (4294967295
  434|       |     * > decimal).
  435|       |     *
  436|       |     * So a legitimate OID according to this RFC is at most (32 * 128 / 7),
  437|       |     * i.e. 586 bytes long.
  438|       |     *
  439|       |     * Ref: https://datatracker.ietf.org/doc/html/rfc2578#section-3.5
  440|       |     */
  441|    209|    if (len > 586)
  ------------------
  |  Branch (441:9): [True: 0, False: 209]
  ------------------
  442|      0|        goto err;
  443|       |
  444|  1.59k|    while (len > 0) {
  ------------------
  |  Branch (444:12): [True: 1.38k, False: 209]
  ------------------
  445|  1.38k|        l = 0;
  446|  1.38k|        use_bn = 0;
  447|  1.70k|        for (;;) {
  448|  1.70k|            unsigned char c = *p++;
  449|       |
  450|  1.70k|            len--;
  451|  1.70k|            if (len == 0 && (c & 0x80) != 0)
  ------------------
  |  Branch (451:17): [True: 209, False: 1.49k]
  |  Branch (451:29): [True: 0, False: 209]
  ------------------
  452|      0|                goto err;
  453|  1.70k|            if (use_bn) {
  ------------------
  |  Branch (453:17): [True: 0, False: 1.70k]
  ------------------
  454|      0|                if (!BN_add_word(bl, c & 0x7f))
  ------------------
  |  Branch (454:21): [True: 0, False: 0]
  ------------------
  455|      0|                    goto err;
  456|  1.70k|            } else {
  457|  1.70k|                l |= c & 0x7f;
  458|  1.70k|            }
  459|  1.70k|            if ((c & 0x80) == 0)
  ------------------
  |  Branch (459:17): [True: 1.38k, False: 322]
  ------------------
  460|  1.38k|                break;
  461|    322|            if (!use_bn && l > (ULONG_MAX >> 7L)) {
  ------------------
  |  Branch (461:17): [True: 322, False: 0]
  |  Branch (461:28): [True: 0, False: 322]
  ------------------
  462|      0|                if (bl == NULL && (bl = BN_new()) == NULL)
  ------------------
  |  Branch (462:21): [True: 0, False: 0]
  |  Branch (462:35): [True: 0, False: 0]
  ------------------
  463|      0|                    goto err;
  464|      0|                if (!BN_set_word(bl, l))
  ------------------
  |  Branch (464:21): [True: 0, False: 0]
  ------------------
  465|      0|                    goto err;
  466|      0|                use_bn = 1;
  467|      0|            }
  468|    322|            if (use_bn) {
  ------------------
  |  Branch (468:17): [True: 0, False: 322]
  ------------------
  469|      0|                if (!BN_lshift(bl, bl, 7))
  ------------------
  |  Branch (469:21): [True: 0, False: 0]
  ------------------
  470|      0|                    goto err;
  471|    322|            } else {
  472|    322|                l <<= 7L;
  473|    322|            }
  474|    322|        }
  475|       |
  476|  1.38k|        if (first) {
  ------------------
  |  Branch (476:13): [True: 209, False: 1.17k]
  ------------------
  477|    209|            first = 0;
  478|    209|            if (l >= 80) {
  ------------------
  |  Branch (478:17): [True: 81, False: 128]
  ------------------
  479|     81|                i = 2;
  480|     81|                if (use_bn) {
  ------------------
  |  Branch (480:21): [True: 0, False: 81]
  ------------------
  481|      0|                    if (!BN_sub_word(bl, 80))
  ------------------
  |  Branch (481:25): [True: 0, False: 0]
  ------------------
  482|      0|                        goto err;
  483|     81|                } else {
  484|     81|                    l -= 80;
  485|     81|                }
  486|    128|            } else {
  487|    128|                i = (int)(l / 40);
  488|    128|                l -= (long)(i * 40);
  489|    128|            }
  490|    209|            if (buf != NULL && buf_len > 1) {
  ------------------
  |  Branch (490:17): [True: 209, False: 0]
  |  Branch (490:32): [True: 209, False: 0]
  ------------------
  491|    209|                *buf++ = i + '0';
  492|    209|                *buf = '\0';
  493|    209|                buf_len--;
  494|    209|            }
  495|    209|            n++;
  496|    209|        }
  497|       |
  498|  1.38k|        if (use_bn) {
  ------------------
  |  Branch (498:13): [True: 0, False: 1.38k]
  ------------------
  499|      0|            char *bndec;
  500|      0|            bndec = BN_bn2dec(bl);
  501|      0|            if (!bndec)
  ------------------
  |  Branch (501:17): [True: 0, False: 0]
  ------------------
  502|      0|                goto err;
  503|      0|            i = (int)strlen(bndec);
  504|      0|            if (buf != NULL) {
  ------------------
  |  Branch (504:17): [True: 0, False: 0]
  ------------------
  505|      0|                if (buf_len > 1) {
  ------------------
  |  Branch (505:21): [True: 0, False: 0]
  ------------------
  506|      0|                    *buf++ = '.';
  507|      0|                    *buf = '\0';
  508|      0|                    buf_len--;
  509|      0|                }
  510|      0|                OPENSSL_strlcpy(buf, bndec, buf_len);
  511|      0|                if (i > buf_len) {
  ------------------
  |  Branch (511:21): [True: 0, False: 0]
  ------------------
  512|      0|                    buf += buf_len;
  513|      0|                    buf_len = 0;
  514|      0|                } else {
  515|      0|                    buf += i;
  516|      0|                    buf_len -= i;
  517|      0|                }
  518|      0|            }
  519|      0|            n++;
  520|      0|            n += i;
  521|      0|            OPENSSL_free(bndec);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  522|  1.38k|        } else {
  523|  1.38k|            BIO_snprintf(tbuf, sizeof(tbuf), ".%lu", l);
  524|  1.38k|            i = (int)strlen(tbuf);
  525|  1.38k|            if (buf && buf_len > 0) {
  ------------------
  |  Branch (525:17): [True: 1.38k, False: 0]
  |  Branch (525:24): [True: 1.38k, False: 0]
  ------------------
  526|  1.38k|                OPENSSL_strlcpy(buf, tbuf, buf_len);
  527|  1.38k|                if (i > buf_len) {
  ------------------
  |  Branch (527:21): [True: 0, False: 1.38k]
  ------------------
  528|      0|                    buf += buf_len;
  529|      0|                    buf_len = 0;
  530|  1.38k|                } else {
  531|  1.38k|                    buf += i;
  532|  1.38k|                    buf_len -= i;
  533|  1.38k|                }
  534|  1.38k|            }
  535|  1.38k|            n += i;
  536|  1.38k|            l = 0;
  537|  1.38k|        }
  538|  1.38k|    }
  539|       |
  540|    209|    BN_free(bl);
  541|    209|    return n;
  542|       |
  543|      0|err:
  544|      0|    BN_free(bl);
  545|      0|    return -1;
  546|    209|}
OBJ_txt2nid:
  549|  4.62k|{
  550|  4.62k|    ASN1_OBJECT *obj = OBJ_txt2obj(s, 0);
  551|  4.62k|    int nid = NID_undef;
  ------------------
  |  |   18|  4.62k|#define NID_undef                       0
  ------------------
  552|       |
  553|  4.62k|    if (obj != NULL) {
  ------------------
  |  Branch (553:9): [True: 4.62k, False: 0]
  ------------------
  554|  4.62k|        nid = OBJ_obj2nid(obj);
  555|  4.62k|        ASN1_OBJECT_free(obj);
  556|  4.62k|    }
  557|  4.62k|    return nid;
  558|  4.62k|}
OBJ_ln2nid:
  561|  5.13k|{
  562|  5.13k|    ASN1_OBJECT o;
  563|  5.13k|    const ASN1_OBJECT *oo = &o;
  564|  5.13k|    ADDED_OBJ ad, *adp;
  565|  5.13k|    const unsigned int *op;
  566|  5.13k|    int nid = NID_undef;
  ------------------
  |  |   18|  5.13k|#define NID_undef                       0
  ------------------
  567|       |
  568|  5.13k|    o.ln = s;
  569|  5.13k|    op = OBJ_bsearch_ln(&oo, ln_objs, NUM_LN);
  ------------------
  |  | 4359|  5.13k|#define NUM_LN 1492
  ------------------
  570|  5.13k|    if (op != NULL)
  ------------------
  |  Branch (570:9): [True: 4.85k, False: 274]
  ------------------
  571|  4.85k|        return nid_objs[*op].nid;
  572|    274|    if (!ossl_obj_read_lock()) {
  ------------------
  |  Branch (572:9): [True: 0, False: 274]
  ------------------
  573|      0|        ERR_raise(ERR_LIB_OBJ, ERR_R_UNABLE_TO_GET_READ_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  574|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  575|      0|    }
  576|    274|    ad.type = ADDED_LNAME;
  ------------------
  |  |   32|    274|#define ADDED_LNAME 2
  ------------------
  577|    274|    ad.obj = &o;
  578|    274|    adp = lh_ADDED_OBJ_retrieve(added, &ad);
  579|    274|    if (adp != NULL)
  ------------------
  |  Branch (579:9): [True: 0, False: 274]
  ------------------
  580|      0|        nid = adp->obj->nid;
  581|    274|    ossl_obj_unlock();
  582|    274|    return nid;
  583|    274|}
OBJ_sn2nid:
  586|  5.79k|{
  587|  5.79k|    ASN1_OBJECT o;
  588|  5.79k|    const ASN1_OBJECT *oo = &o;
  589|  5.79k|    ADDED_OBJ ad, *adp;
  590|  5.79k|    const unsigned int *op;
  591|  5.79k|    int nid = NID_undef;
  ------------------
  |  |   18|  5.79k|#define NID_undef                       0
  ------------------
  592|       |
  593|  5.79k|    o.sn = s;
  594|  5.79k|    op = OBJ_bsearch_sn(&oo, sn_objs, NUM_SN);
  ------------------
  |  | 2863|  5.79k|#define NUM_SN 1492
  ------------------
  595|  5.79k|    if (op != NULL)
  ------------------
  |  Branch (595:9): [True: 27, False: 5.76k]
  ------------------
  596|     27|        return nid_objs[*op].nid;
  597|  5.76k|    if (!ossl_obj_read_lock()) {
  ------------------
  |  Branch (597:9): [True: 0, False: 5.76k]
  ------------------
  598|      0|        ERR_raise(ERR_LIB_OBJ, ERR_R_UNABLE_TO_GET_READ_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  599|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  600|      0|    }
  601|  5.76k|    ad.type = ADDED_SNAME;
  ------------------
  |  |   31|  5.76k|#define ADDED_SNAME 1
  ------------------
  602|  5.76k|    ad.obj = &o;
  603|  5.76k|    adp = lh_ADDED_OBJ_retrieve(added, &ad);
  604|  5.76k|    if (adp != NULL)
  ------------------
  |  Branch (604:9): [True: 0, False: 5.76k]
  ------------------
  605|      0|        nid = adp->obj->nid;
  606|  5.76k|    ossl_obj_unlock();
  607|  5.76k|    return nid;
  608|  5.76k|}
OBJ_bsearch_:
  612|   612k|{
  613|   612k|    return OBJ_bsearch_ex_(key, base, num, size, cmp, 0);
  614|   612k|}
OBJ_bsearch_ex_:
  620|   612k|{
  621|   612k|    const char *p = ossl_bsearch(key, base, num, size, cmp, flags);
  622|       |
  623|       |#ifdef CHARSET_EBCDIC
  624|       |    /*
  625|       |     * THIS IS A KLUDGE - Because the *_obj is sorted in ASCII order, and I
  626|       |     * don't have perl (yet), we revert to a *LINEAR* search when the object
  627|       |     * wasn't found in the binary search.
  628|       |     */
  629|       |    if (p == NULL) {
  630|       |        const char *base_ = base;
  631|       |        int l, h, i = 0, c = 0;
  632|       |        char *p1;
  633|       |
  634|       |        for (i = 0; i < num; ++i) {
  635|       |            p1 = &(base_[i * size]);
  636|       |            c = (*cmp)(key, p1);
  637|       |            if (c == 0
  638|       |                || (c < 0 && (flags & OBJ_BSEARCH_VALUE_ON_NOMATCH)))
  639|       |                return p1;
  640|       |        }
  641|       |    }
  642|       |#endif
  643|   612k|    return p;
  644|   612k|}
OBJ_create:
  700|    660|{
  701|    660|    ASN1_OBJECT *tmpoid = NULL;
  702|    660|    int ok = NID_undef;
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
  703|       |
  704|       |    /* With no arguments at all, nothing can be done */
  705|    660|    if (oid == NULL && sn == NULL && ln == NULL) {
  ------------------
  |  Branch (705:9): [True: 0, False: 660]
  |  Branch (705:24): [True: 0, False: 0]
  |  Branch (705:38): [True: 0, False: 0]
  ------------------
  706|      0|        ERR_raise(ERR_LIB_OBJ, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  707|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  708|      0|    }
  709|       |
  710|       |    /* Check to see if short or long name already present */
  711|    660|    if ((sn != NULL && OBJ_sn2nid(sn) != NID_undef)
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
  |  Branch (711:10): [True: 660, False: 0]
  |  Branch (711:24): [True: 0, False: 660]
  ------------------
  712|    660|        || (ln != NULL && OBJ_ln2nid(ln) != NID_undef)) {
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (712:13): [True: 0, False: 660]
  |  Branch (712:27): [True: 0, False: 0]
  ------------------
  713|      0|        ERR_raise(ERR_LIB_OBJ, OBJ_R_OID_EXISTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  714|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  715|      0|    }
  716|       |
  717|    660|    if (oid != NULL) {
  ------------------
  |  Branch (717:9): [True: 660, False: 0]
  ------------------
  718|       |        /* Convert numerical OID string to an ASN1_OBJECT structure */
  719|    660|        tmpoid = OBJ_txt2obj(oid, 1);
  720|    660|        if (tmpoid == NULL)
  ------------------
  |  Branch (720:13): [True: 0, False: 660]
  ------------------
  721|      0|            return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  722|    660|    } else {
  723|       |        /* Create a no-OID ASN1_OBJECT */
  724|      0|        tmpoid = ASN1_OBJECT_new();
  725|      0|        if (tmpoid == NULL) {
  ------------------
  |  Branch (725:13): [True: 0, False: 0]
  ------------------
  726|      0|            ERR_raise(ERR_LIB_OBJ, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  727|      0|            return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  728|      0|        }
  729|      0|    }
  730|       |
  731|       |    /* If NID is not NID_undef then object already exists */
  732|    660|    if (oid != NULL
  ------------------
  |  Branch (732:9): [True: 660, False: 0]
  ------------------
  733|    660|        && ossl_obj_obj2nid(tmpoid) != NID_undef) {
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
  |  Branch (733:12): [True: 660, False: 0]
  ------------------
  734|    660|        ERR_raise(ERR_LIB_OBJ, OBJ_R_OID_EXISTS);
  ------------------
  |  |  404|    660|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|    660|    (ERR_new(),                                                  \
  |  |  |  |  407|    660|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|    660|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|    660|        ERR_set_error)
  |  |  ------------------
  ------------------
  735|    660|        goto err;
  736|    660|    }
  737|       |
  738|      0|    tmpoid->nid = NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  739|      0|    tmpoid->sn = (char *)sn;
  740|      0|    tmpoid->ln = (char *)ln;
  741|       |
  742|      0|    ok = add_object(tmpoid, 1);
  743|       |
  744|      0|    tmpoid->sn = NULL;
  745|      0|    tmpoid->ln = NULL;
  746|       |
  747|    660|err:
  748|    660|    ASN1_OBJECT_free(tmpoid);
  749|    660|    return ok;
  750|      0|}
OBJ_length:
  753|  7.88k|{
  754|  7.88k|    if (obj == NULL)
  ------------------
  |  Branch (754:9): [True: 0, False: 7.88k]
  ------------------
  755|      0|        return 0;
  756|  7.88k|    return obj->length;
  757|  7.88k|}
OBJ_get0_data:
  760|    159|{
  761|    159|    if (obj == NULL)
  ------------------
  |  Branch (761:9): [True: 0, False: 159]
  ------------------
  762|      0|        return NULL;
  763|    159|    return obj->data;
  764|    159|}
OBJ_obj2nid:
  868|   730k|{
  869|   730k|    return ossl_obj_obj2nid(a);
  870|   730k|}
obj_dat.c:ossl_obj_read_lock:
  101|  8.45k|{
  102|  8.45k|    if (!ossl_init_added_api())
  ------------------
  |  Branch (102:9): [True: 0, False: 8.45k]
  ------------------
  103|      0|        return 0;
  104|  8.45k|    return CRYPTO_THREAD_read_lock(ossl_obj_lock);
  105|  8.45k|}
obj_dat.c:ossl_init_added_api:
   85|  8.45k|{
   86|  8.45k|#ifndef OPENSSL_NO_AUTOLOAD_CONFIG
   87|       |    /* Make sure we've loaded config before checking for any "added" objects */
   88|  8.45k|    OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL);
  ------------------
  |  |  510|  8.45k|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
   89|  8.45k|#endif
   90|  8.45k|    return RUN_ONCE(&ossl_obj_api_init, obj_api_initialise);
  ------------------
  |  |  130|  8.45k|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 8.45k, False: 0]
  |  |  ------------------
  ------------------
   91|  8.45k|}
obj_dat.c:obj_api_initialise:
   63|      1|{
   64|      1|    ossl_obj_lock = CRYPTO_THREAD_lock_new();
   65|      1|    if (ossl_obj_lock == NULL)
  ------------------
  |  Branch (65:9): [True: 0, False: 1]
  ------------------
   66|      0|        return 0;
   67|       |
   68|       |#ifdef TSAN_REQUIRES_LOCKING
   69|       |    ossl_obj_nid_lock = CRYPTO_THREAD_lock_new();
   70|       |    if (ossl_obj_nid_lock == NULL) {
   71|       |        objs_free_locks();
   72|       |        return 0;
   73|       |    }
   74|       |#endif
   75|      1|    added = lh_ADDED_OBJ_new(added_obj_hash, added_obj_cmp);
   76|      1|    if (added == NULL) {
  ------------------
  |  Branch (76:9): [True: 0, False: 1]
  ------------------
   77|      0|        objs_free_locks();
   78|      0|        return 0;
   79|      0|    }
   80|       |
   81|      1|    return 1;
   82|      1|}
obj_dat.c:added_obj_hash:
  127|  8.45k|{
  128|  8.45k|    const ASN1_OBJECT *a;
  129|  8.45k|    int i;
  130|  8.45k|    unsigned long ret = 0;
  131|  8.45k|    unsigned char *p;
  132|       |
  133|  8.45k|    a = ca->obj;
  134|  8.45k|    switch (ca->type) {
  135|  2.40k|    case ADDED_DATA:
  ------------------
  |  |   30|  2.40k|#define ADDED_DATA 0
  ------------------
  |  Branch (135:5): [True: 2.40k, False: 6.04k]
  ------------------
  136|  2.40k|        ret = (unsigned long)a->length << 20UL;
  137|  2.40k|        p = (unsigned char *)a->data;
  138|  24.0k|        for (i = 0; i < a->length; i++)
  ------------------
  |  Branch (138:21): [True: 21.6k, False: 2.40k]
  ------------------
  139|  21.6k|            ret ^= p[i] << ((i * 3) % 24);
  140|  2.40k|        break;
  141|  5.76k|    case ADDED_SNAME:
  ------------------
  |  |   31|  5.76k|#define ADDED_SNAME 1
  ------------------
  |  Branch (141:5): [True: 5.76k, False: 2.68k]
  ------------------
  142|  5.76k|        ret = OPENSSL_LH_strhash(a->sn);
  143|  5.76k|        break;
  144|    274|    case ADDED_LNAME:
  ------------------
  |  |   32|    274|#define ADDED_LNAME 2
  ------------------
  |  Branch (144:5): [True: 274, False: 8.17k]
  ------------------
  145|    274|        ret = OPENSSL_LH_strhash(a->ln);
  146|    274|        break;
  147|      0|    case ADDED_NID:
  ------------------
  |  |   33|      0|#define ADDED_NID 3
  ------------------
  |  Branch (147:5): [True: 0, False: 8.45k]
  ------------------
  148|      0|        ret = a->nid;
  149|      0|        break;
  150|      0|    default:
  ------------------
  |  Branch (150:5): [True: 0, False: 8.45k]
  ------------------
  151|       |        /* abort(); */
  152|      0|        return 0;
  153|  8.45k|    }
  154|  8.45k|    ret &= 0x3fffffffL;
  155|  8.45k|    ret |= ((unsigned long)ca->type) << 30L;
  156|  8.45k|    return ret;
  157|  8.45k|}
obj_dat.c:ossl_obj_unlock:
  108|  8.45k|{
  109|  8.45k|    CRYPTO_THREAD_unlock(ossl_obj_lock);
  110|  8.45k|}
obj_dat.c:ln_cmp:
  120|  49.1k|{
  121|  49.1k|    return strcmp((*a)->ln, nid_objs[*b].ln);
  122|  49.1k|}
obj_dat.c:sn_cmp:
  113|  63.6k|{
  114|  63.6k|    return strcmp((*a)->sn, nid_objs[*b].sn);
  115|  63.6k|}
obj_dat.c:ossl_obj_obj2nid:
  313|   731k|{
  314|   731k|    int nid = NID_undef;
  ------------------
  |  |   18|   731k|#define NID_undef                       0
  ------------------
  315|   731k|    const unsigned int *op;
  316|   731k|    ADDED_OBJ ad, *adp;
  317|       |
  318|   731k|    if (a == NULL)
  ------------------
  |  Branch (318:9): [True: 0, False: 731k]
  ------------------
  319|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  320|   731k|    if (a->nid != NID_undef)
  ------------------
  |  |   18|   731k|#define NID_undef                       0
  ------------------
  |  Branch (320:9): [True: 205k, False: 525k]
  ------------------
  321|   205k|        return a->nid;
  322|   525k|    if (a->length == 0)
  ------------------
  |  Branch (322:9): [True: 0, False: 525k]
  ------------------
  323|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  324|       |
  325|   525k|    op = OBJ_bsearch_obj(&a, obj_objs, NUM_OBJ);
  ------------------
  |  | 5855|   525k|#define NUM_OBJ 1349
  ------------------
  326|   525k|    if (op != NULL)
  ------------------
  |  Branch (326:9): [True: 523k, False: 2.40k]
  ------------------
  327|   523k|        return nid_objs[*op].nid;
  328|  2.40k|    if (!ossl_obj_read_lock()) {
  ------------------
  |  Branch (328:9): [True: 0, False: 2.40k]
  ------------------
  329|      0|        ERR_raise(ERR_LIB_OBJ, ERR_R_UNABLE_TO_GET_READ_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  330|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  331|      0|    }
  332|  2.40k|    ad.type = ADDED_DATA;
  ------------------
  |  |   30|  2.40k|#define ADDED_DATA 0
  ------------------
  333|  2.40k|    ad.obj = (ASN1_OBJECT *)a; /* casting away const is harmless here */
  334|  2.40k|    adp = lh_ADDED_OBJ_retrieve(added, &ad);
  335|  2.40k|    if (adp != NULL)
  ------------------
  |  Branch (335:9): [True: 0, False: 2.40k]
  ------------------
  336|      0|        nid = adp->obj->nid;
  337|  2.40k|    ossl_obj_unlock();
  338|  2.40k|    return nid;
  339|  2.40k|}
obj_dat.c:obj_cmp:
  297|  5.21M|{
  298|  5.21M|    int j;
  299|  5.21M|    const ASN1_OBJECT *a = *ap;
  300|  5.21M|    const ASN1_OBJECT *b = &nid_objs[*bp];
  301|       |
  302|  5.21M|    j = (a->length - b->length);
  303|  5.21M|    if (j)
  ------------------
  |  Branch (303:9): [True: 1.64M, False: 3.56M]
  ------------------
  304|  1.64M|        return j;
  305|  3.56M|    if (a->length == 0)
  ------------------
  |  Branch (305:9): [True: 0, False: 3.56M]
  ------------------
  306|      0|        return 0;
  307|  3.56M|    return memcmp(a->data, b->data, a->length);
  308|  3.56M|}

ossl_err_load_OBJ_strings:
   28|      2|{
   29|      2|#ifndef OPENSSL_NO_ERR
   30|      2|    if (ERR_reason_error_string(OBJ_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (30:9): [True: 2, False: 0]
  ------------------
   31|      2|        ERR_load_strings_const(OBJ_str_reasons);
   32|      2|#endif
   33|      2|    return 1;
   34|      2|}

OBJ_dup:
   17|   228k|{
   18|   228k|    ASN1_OBJECT *r;
   19|       |
   20|   228k|    if (o == NULL)
  ------------------
  |  Branch (20:9): [True: 0, False: 228k]
  ------------------
   21|      0|        return NULL;
   22|       |    /* If object isn't dynamic it's an internal OID which is never freed */
   23|   228k|    if (!(o->flags & ASN1_OBJECT_FLAG_DYNAMIC))
  ------------------
  |  |  110|   228k|#define ASN1_OBJECT_FLAG_DYNAMIC 0x01 /* internal use */
  ------------------
  |  Branch (23:9): [True: 228k, False: 0]
  ------------------
   24|   228k|        return (ASN1_OBJECT *)o;
   25|       |
   26|      0|    r = ASN1_OBJECT_new();
   27|      0|    if (r == NULL) {
  ------------------
  |  Branch (27:9): [True: 0, False: 0]
  ------------------
   28|      0|        ERR_raise(ERR_LIB_OBJ, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   29|      0|        return NULL;
   30|      0|    }
   31|       |
   32|       |    /* Set dynamic flags so everything gets freed up on error */
   33|       |
   34|      0|    r->flags = o->flags | (ASN1_OBJECT_FLAG_DYNAMIC | ASN1_OBJECT_FLAG_DYNAMIC_STRINGS | ASN1_OBJECT_FLAG_DYNAMIC_DATA);
  ------------------
  |  |  110|      0|#define ASN1_OBJECT_FLAG_DYNAMIC 0x01 /* internal use */
  ------------------
                  r->flags = o->flags | (ASN1_OBJECT_FLAG_DYNAMIC | ASN1_OBJECT_FLAG_DYNAMIC_STRINGS | ASN1_OBJECT_FLAG_DYNAMIC_DATA);
  ------------------
  |  |  112|      0|#define ASN1_OBJECT_FLAG_DYNAMIC_STRINGS 0x04 /* internal use */
  ------------------
                  r->flags = o->flags | (ASN1_OBJECT_FLAG_DYNAMIC | ASN1_OBJECT_FLAG_DYNAMIC_STRINGS | ASN1_OBJECT_FLAG_DYNAMIC_DATA);
  ------------------
  |  |  113|      0|#define ASN1_OBJECT_FLAG_DYNAMIC_DATA 0x08 /* internal use */
  ------------------
   35|       |
   36|      0|    if (o->length > 0 && (r->data = OPENSSL_memdup(o->data, o->length)) == NULL)
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (36:9): [True: 0, False: 0]
  |  Branch (36:26): [True: 0, False: 0]
  ------------------
   37|      0|        goto err;
   38|       |
   39|      0|    r->length = o->length;
   40|      0|    r->nid = o->nid;
   41|       |
   42|      0|    if (o->ln != NULL && (r->ln = OPENSSL_strdup(o->ln)) == NULL)
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (42:9): [True: 0, False: 0]
  |  Branch (42:26): [True: 0, False: 0]
  ------------------
   43|      0|        goto err;
   44|       |
   45|      0|    if (o->sn != NULL && (r->sn = OPENSSL_strdup(o->sn)) == NULL)
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (45:9): [True: 0, False: 0]
  |  Branch (45:26): [True: 0, False: 0]
  ------------------
   46|      0|        goto err;
   47|       |
   48|      0|    return r;
   49|      0|err:
   50|      0|    ASN1_OBJECT_free(r);
   51|       |    return NULL;
   52|      0|}

OBJ_add_sigid:
  148|    660|{
  149|    660|    nid_triple *ntr;
  150|    660|    int dnid = NID_undef, pnid = NID_undef, ret = 0;
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
                  int dnid = NID_undef, pnid = NID_undef, ret = 0;
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
  151|       |
  152|    660|    if (signid == NID_undef || pkey_id == NID_undef)
  ------------------
  |  |   18|  1.32k|#define NID_undef                       0
  ------------------
                  if (signid == NID_undef || pkey_id == NID_undef)
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
  |  Branch (152:9): [True: 0, False: 660]
  |  Branch (152:32): [True: 0, False: 660]
  ------------------
  153|      0|        return 0;
  154|       |
  155|    660|    if (!obj_sig_init())
  ------------------
  |  Branch (155:9): [True: 0, False: 660]
  ------------------
  156|      0|        return 0;
  157|       |
  158|    660|    if ((ntr = OPENSSL_malloc(sizeof(*ntr))) == NULL)
  ------------------
  |  |  106|    660|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (158:9): [True: 0, False: 660]
  ------------------
  159|      0|        return 0;
  160|    660|    ntr->sign_id = signid;
  161|    660|    ntr->hash_id = dig_id;
  162|    660|    ntr->pkey_id = pkey_id;
  163|       |
  164|    660|    if (!CRYPTO_THREAD_write_lock(sig_lock)) {
  ------------------
  |  Branch (164:9): [True: 0, False: 660]
  ------------------
  165|      0|        ERR_raise(ERR_LIB_OBJ, ERR_R_UNABLE_TO_GET_WRITE_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  166|      0|        OPENSSL_free(ntr);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  167|      0|        return 0;
  168|      0|    }
  169|       |
  170|       |    /* Check that the entry doesn't exist or exists as desired */
  171|    660|    if (ossl_obj_find_sigid_algs(signid, &dnid, &pnid, 0)) {
  ------------------
  |  Branch (171:9): [True: 660, False: 0]
  ------------------
  172|    660|        ret = dnid == dig_id && pnid == pkey_id;
  ------------------
  |  Branch (172:15): [True: 660, False: 0]
  |  Branch (172:33): [True: 660, False: 0]
  ------------------
  173|    660|        goto err;
  174|    660|    }
  175|       |
  176|      0|    if (sig_app == NULL) {
  ------------------
  |  Branch (176:9): [True: 0, False: 0]
  ------------------
  177|      0|        sig_app = sk_nid_triple_new(sig_sk_cmp);
  178|      0|        if (sig_app == NULL)
  ------------------
  |  Branch (178:13): [True: 0, False: 0]
  ------------------
  179|      0|            goto err;
  180|      0|    }
  181|      0|    if (sigx_app == NULL) {
  ------------------
  |  Branch (181:9): [True: 0, False: 0]
  ------------------
  182|      0|        sigx_app = sk_nid_triple_new(sigx_cmp);
  183|      0|        if (sigx_app == NULL)
  ------------------
  |  Branch (183:13): [True: 0, False: 0]
  ------------------
  184|      0|            goto err;
  185|      0|    }
  186|       |
  187|       |    /*
  188|       |     * Better might be to find where to insert the element and insert it there.
  189|       |     * This would avoid the sorting steps below.
  190|       |     */
  191|      0|    if (!sk_nid_triple_push(sig_app, ntr))
  ------------------
  |  Branch (191:9): [True: 0, False: 0]
  ------------------
  192|      0|        goto err;
  193|      0|    if (!sk_nid_triple_push(sigx_app, ntr)) {
  ------------------
  |  Branch (193:9): [True: 0, False: 0]
  ------------------
  194|      0|        ntr = NULL; /* This is referenced by sig_app still */
  195|      0|        goto err;
  196|      0|    }
  197|       |
  198|      0|    sk_nid_triple_sort(sig_app);
  199|      0|    sk_nid_triple_sort(sigx_app);
  200|       |
  201|      0|    ntr = NULL;
  202|      0|    ret = 1;
  203|    660|err:
  204|    660|    OPENSSL_free(ntr);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  205|    660|    CRYPTO_THREAD_unlock(sig_lock);
  206|    660|    return ret;
  207|      0|}
obj_xref.c:ossl_obj_find_sigid_algs:
   68|    660|{
   69|    660|    nid_triple tmp;
   70|    660|    const nid_triple *rv;
   71|    660|    int idx;
   72|       |
   73|    660|    if (signid == NID_undef)
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
  |  Branch (73:9): [True: 0, False: 660]
  ------------------
   74|      0|        return 0;
   75|       |
   76|    660|    tmp.sign_id = signid;
   77|    660|    rv = OBJ_bsearch_sig(&tmp, sigoid_srt, OSSL_NELEM(sigoid_srt));
  ------------------
  |  |   14|    660|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
   78|    660|    if (rv == NULL) {
  ------------------
  |  Branch (78:9): [True: 0, False: 660]
  ------------------
   79|      0|        if (!obj_sig_init())
  ------------------
  |  Branch (79:13): [True: 0, False: 0]
  ------------------
   80|      0|            return 0;
   81|      0|        if (lock && !CRYPTO_THREAD_read_lock(sig_lock)) {
  ------------------
  |  Branch (81:13): [True: 0, False: 0]
  |  Branch (81:21): [True: 0, False: 0]
  ------------------
   82|      0|            ERR_raise(ERR_LIB_OBJ, ERR_R_UNABLE_TO_GET_READ_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   83|      0|            return 0;
   84|      0|        }
   85|      0|        if (sig_app != NULL) {
  ------------------
  |  Branch (85:13): [True: 0, False: 0]
  ------------------
   86|      0|            idx = sk_nid_triple_find(sig_app, &tmp);
   87|      0|            if (idx >= 0)
  ------------------
  |  Branch (87:17): [True: 0, False: 0]
  ------------------
   88|      0|                rv = sk_nid_triple_value(sig_app, idx);
   89|      0|        }
   90|      0|        if (lock)
  ------------------
  |  Branch (90:13): [True: 0, False: 0]
  ------------------
   91|      0|            CRYPTO_THREAD_unlock(sig_lock);
   92|      0|        if (rv == NULL)
  ------------------
  |  Branch (92:13): [True: 0, False: 0]
  ------------------
   93|      0|            return 0;
   94|      0|    }
   95|       |
   96|    660|    if (pdig_nid != NULL)
  ------------------
  |  Branch (96:9): [True: 660, False: 0]
  ------------------
   97|    660|        *pdig_nid = rv->hash_id;
   98|    660|    if (ppkey_nid != NULL)
  ------------------
  |  Branch (98:9): [True: 660, False: 0]
  ------------------
   99|    660|        *ppkey_nid = rv->pkey_id;
  100|    660|    return 1;
  101|    660|}
obj_xref.c:sig_cmp:
   20|  3.74k|{
   21|  3.74k|    return a->sign_id - b->sign_id;
   22|  3.74k|}
obj_xref.c:obj_sig_init:
   62|    660|{
   63|    660|    return RUN_ONCE(&sig_init, o_sig_init);
  ------------------
  |  |  130|    660|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 660, False: 0]
  |  |  ------------------
  ------------------
   64|    660|}
obj_xref.c:o_sig_init:
   56|      1|{
   57|      1|    sig_lock = CRYPTO_THREAD_lock_new();
   58|       |    return sig_lock != NULL;
   59|      1|}

ossl_err_load_OCSP_strings:
   66|      2|{
   67|      2|#ifndef OPENSSL_NO_ERR
   68|      2|    if (ERR_reason_error_string(OCSP_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (68:9): [True: 2, False: 0]
  ------------------
   69|      2|        ERR_load_strings_const(OCSP_str_reasons);
   70|      2|#endif
   71|      2|    return 1;
   72|      2|}

WPACKET_allocate_bytes:
   20|  96.4k|{
   21|  96.4k|    if (!WPACKET_reserve_bytes(pkt, len, allocbytes))
  ------------------
  |  Branch (21:9): [True: 0, False: 96.4k]
  ------------------
   22|      0|        return 0;
   23|       |
   24|  96.4k|    pkt->written += len;
   25|  96.4k|    pkt->curr += len;
   26|  96.4k|    return 1;
   27|  96.4k|}
WPACKET_reserve_bytes:
   47|  96.6k|{
   48|       |    /* Internal API, so should not fail */
   49|  96.6k|    if (!ossl_assert(pkt->subs != NULL && len != 0))
  ------------------
  |  |   52|   193k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 96.6k, False: 0]
  |  |  |  Branch (52:41): [True: 96.6k, False: 0]
  |  |  ------------------
  |  |   53|  96.6k|    __FILE__, __LINE__)
  ------------------
  |  Branch (49:9): [True: 0, False: 96.6k]
  ------------------
   50|      0|        return 0;
   51|       |
   52|  96.6k|    if (pkt->maxsize - pkt->written < len)
  ------------------
  |  Branch (52:9): [True: 0, False: 96.6k]
  ------------------
   53|      0|        return 0;
   54|       |
   55|  96.6k|    if (pkt->buf != NULL && (pkt->buf->length - pkt->written < len)) {
  ------------------
  |  Branch (55:9): [True: 25.2k, False: 71.3k]
  |  Branch (55:29): [True: 0, False: 25.2k]
  ------------------
   56|      0|        size_t newlen;
   57|      0|        size_t reflen;
   58|       |
   59|      0|        reflen = (len > pkt->buf->length) ? len : pkt->buf->length;
  ------------------
  |  Branch (59:18): [True: 0, False: 0]
  ------------------
   60|       |
   61|      0|        if (reflen > SIZE_MAX / 2) {
  ------------------
  |  Branch (61:13): [True: 0, False: 0]
  ------------------
   62|      0|            newlen = SIZE_MAX;
   63|      0|        } else {
   64|      0|            newlen = reflen * 2;
   65|      0|            if (newlen < DEFAULT_BUF_SIZE)
  ------------------
  |  |   17|      0|#define DEFAULT_BUF_SIZE 256
  ------------------
  |  Branch (65:17): [True: 0, False: 0]
  ------------------
   66|      0|                newlen = DEFAULT_BUF_SIZE;
  ------------------
  |  |   17|      0|#define DEFAULT_BUF_SIZE 256
  ------------------
   67|      0|        }
   68|      0|        if (BUF_MEM_grow(pkt->buf, newlen) == 0)
  ------------------
  |  Branch (68:13): [True: 0, False: 0]
  ------------------
   69|      0|            return 0;
   70|      0|    }
   71|  96.6k|    if (allocbytes != NULL) {
  ------------------
  |  Branch (71:9): [True: 96.4k, False: 219]
  ------------------
   72|  96.4k|        *allocbytes = WPACKET_get_curr(pkt);
   73|  96.4k|        if (pkt->endfirst && *allocbytes != NULL)
  ------------------
  |  Branch (73:13): [True: 0, False: 96.4k]
  |  Branch (73:30): [True: 0, False: 0]
  ------------------
   74|      0|            *allocbytes -= len;
   75|  96.4k|    }
   76|       |
   77|  96.6k|    return 1;
   78|  96.6k|}
WPACKET_init_static_len:
  131|    219|{
  132|    219|    size_t max = maxmaxsize(lenbytes);
  133|       |
  134|       |    /* Internal API, so should not fail */
  135|    219|    if (!ossl_assert(buf != NULL && len > 0))
  ------------------
  |  |   52|    438|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 219, False: 0]
  |  |  |  Branch (52:41): [True: 219, False: 0]
  |  |  ------------------
  |  |   53|    219|    __FILE__, __LINE__)
  ------------------
  |  Branch (135:9): [True: 0, False: 219]
  ------------------
  136|      0|        return 0;
  137|       |
  138|    219|    pkt->staticbuf = buf;
  139|    219|    pkt->buf = NULL;
  140|    219|    pkt->maxsize = (max < len) ? max : len;
  ------------------
  |  Branch (140:20): [True: 0, False: 219]
  ------------------
  141|    219|    pkt->endfirst = 0;
  142|       |
  143|    219|    return wpacket_intern_init_len(pkt, lenbytes);
  144|    219|}
WPACKET_init_len:
  161|    219|{
  162|       |    /* Internal API, so should not fail */
  163|    219|    if (!ossl_assert(buf != NULL))
  ------------------
  |  |   52|    219|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    219|    __FILE__, __LINE__)
  ------------------
  |  Branch (163:9): [True: 0, False: 219]
  ------------------
  164|      0|        return 0;
  165|       |
  166|    219|    pkt->staticbuf = NULL;
  167|    219|    pkt->buf = buf;
  168|    219|    pkt->maxsize = maxmaxsize(lenbytes);
  169|    219|    pkt->endfirst = 0;
  170|       |
  171|    219|    return wpacket_intern_init_len(pkt, lenbytes);
  172|    219|}
WPACKET_init:
  175|    219|{
  176|    219|    return WPACKET_init_len(pkt, buf, 0);
  177|    219|}
WPACKET_init_null:
  180|  8.76k|{
  181|  8.76k|    pkt->staticbuf = NULL;
  182|  8.76k|    pkt->buf = NULL;
  183|  8.76k|    pkt->maxsize = maxmaxsize(lenbytes);
  184|  8.76k|    pkt->endfirst = 0;
  185|       |
  186|  8.76k|    return wpacket_intern_init_len(pkt, 0);
  187|  8.76k|}
WPACKET_set_flags:
  200|    438|{
  201|       |    /* Internal API, so should not fail */
  202|    438|    if (!ossl_assert(pkt->subs != NULL))
  ------------------
  |  |   52|    438|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    438|    __FILE__, __LINE__)
  ------------------
  |  Branch (202:9): [True: 0, False: 438]
  ------------------
  203|      0|        return 0;
  204|       |
  205|    438|    pkt->subs->flags = flags;
  206|       |
  207|    438|    return 1;
  208|    438|}
WPACKET_close:
  336|  31.5k|{
  337|       |    /*
  338|       |     * Internal API, so should not fail - but we do negative testing of this
  339|       |     * so no assert (otherwise the tests fail)
  340|       |     */
  341|  31.5k|    if (pkt->subs == NULL || pkt->subs->parent == NULL)
  ------------------
  |  Branch (341:9): [True: 0, False: 31.5k]
  |  Branch (341:30): [True: 0, False: 31.5k]
  ------------------
  342|      0|        return 0;
  343|       |
  344|  31.5k|    return wpacket_intern_close(pkt, pkt->subs, 1);
  345|  31.5k|}
WPACKET_finish:
  348|  9.19k|{
  349|  9.19k|    int ret;
  350|       |
  351|       |    /*
  352|       |     * Internal API, so should not fail - but we do negative testing of this
  353|       |     * so no assert (otherwise the tests fail)
  354|       |     */
  355|  9.19k|    if (pkt->subs == NULL || pkt->subs->parent != NULL)
  ------------------
  |  Branch (355:9): [True: 0, False: 9.19k]
  |  Branch (355:30): [True: 0, False: 9.19k]
  ------------------
  356|      0|        return 0;
  357|       |
  358|  9.19k|    ret = wpacket_intern_close(pkt, pkt->subs, 1);
  359|  9.19k|    if (ret) {
  ------------------
  |  Branch (359:9): [True: 9.19k, False: 0]
  ------------------
  360|  9.19k|        OPENSSL_free(pkt->subs);
  ------------------
  |  |  131|  9.19k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  361|  9.19k|        pkt->subs = NULL;
  362|  9.19k|    }
  363|       |
  364|  9.19k|    return ret;
  365|  9.19k|}
WPACKET_start_sub_packet_len__:
  368|  31.5k|{
  369|  31.5k|    WPACKET_SUB *sub;
  370|  31.5k|    unsigned char *lenchars;
  371|       |
  372|       |    /* Internal API, so should not fail */
  373|  31.5k|    if (!ossl_assert(pkt->subs != NULL))
  ------------------
  |  |   52|  31.5k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  31.5k|    __FILE__, __LINE__)
  ------------------
  |  Branch (373:9): [True: 0, False: 31.5k]
  ------------------
  374|      0|        return 0;
  375|       |
  376|       |    /* We don't support lenbytes greater than 0 when doing endfirst writing */
  377|  31.5k|    if (lenbytes > 0 && pkt->endfirst)
  ------------------
  |  Branch (377:9): [True: 5.28k, False: 26.2k]
  |  Branch (377:25): [True: 0, False: 5.28k]
  ------------------
  378|      0|        return 0;
  379|       |
  380|  31.5k|    if ((sub = OPENSSL_zalloc(sizeof(*sub))) == NULL)
  ------------------
  |  |  108|  31.5k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (380:9): [True: 0, False: 31.5k]
  ------------------
  381|      0|        return 0;
  382|       |
  383|  31.5k|    sub->parent = pkt->subs;
  384|  31.5k|    pkt->subs = sub;
  385|  31.5k|    sub->pwritten = pkt->written + lenbytes;
  386|  31.5k|    sub->lenbytes = lenbytes;
  387|       |
  388|  31.5k|    if (lenbytes == 0) {
  ------------------
  |  Branch (388:9): [True: 26.2k, False: 5.28k]
  ------------------
  389|  26.2k|        sub->packet_len = 0;
  390|  26.2k|        return 1;
  391|  26.2k|    }
  392|       |
  393|  5.28k|    sub->packet_len = pkt->written;
  394|       |
  395|  5.28k|    if (!WPACKET_allocate_bytes(pkt, lenbytes, &lenchars))
  ------------------
  |  Branch (395:9): [True: 0, False: 5.28k]
  ------------------
  396|      0|        return 0;
  397|       |
  398|  5.28k|    return 1;
  399|  5.28k|}
WPACKET_start_sub_packet:
  402|  26.2k|{
  403|  26.2k|    return WPACKET_start_sub_packet_len__(pkt, 0);
  404|  26.2k|}
WPACKET_put_bytes__:
  407|  71.9k|{
  408|  71.9k|    unsigned char *data;
  409|       |
  410|       |    /* Internal API, so should not fail */
  411|  71.9k|    if (!ossl_assert(size <= sizeof(uint64_t))
  ------------------
  |  |   52|   143k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|   143k|    __FILE__, __LINE__)
  ------------------
  |  Branch (411:9): [True: 0, False: 71.9k]
  ------------------
  412|  71.9k|        || !WPACKET_allocate_bytes(pkt, size, &data)
  ------------------
  |  Branch (412:12): [True: 0, False: 71.9k]
  ------------------
  413|  71.9k|        || !put_value(data, val, size))
  ------------------
  |  Branch (413:12): [True: 0, False: 71.9k]
  ------------------
  414|      0|        return 0;
  415|       |
  416|  71.9k|    return 1;
  417|  71.9k|}
WPACKET_memcpy:
  461|  1.47k|{
  462|  1.47k|    unsigned char *dest;
  463|       |
  464|  1.47k|    if (len == 0)
  ------------------
  |  Branch (464:9): [True: 0, False: 1.47k]
  ------------------
  465|      0|        return 1;
  466|       |
  467|  1.47k|    if (!WPACKET_allocate_bytes(pkt, len, &dest))
  ------------------
  |  Branch (467:9): [True: 0, False: 1.47k]
  ------------------
  468|      0|        return 0;
  469|       |
  470|  1.47k|    if (dest != NULL)
  ------------------
  |  Branch (470:9): [True: 1.47k, False: 0]
  ------------------
  471|  1.47k|        memcpy(dest, src, len);
  472|       |
  473|  1.47k|    return 1;
  474|  1.47k|}
WPACKET_sub_memcpy__:
  478|    813|{
  479|    813|    if (!WPACKET_start_sub_packet_len__(pkt, lenbytes)
  ------------------
  |  Branch (479:9): [True: 0, False: 813]
  ------------------
  480|    813|        || !WPACKET_memcpy(pkt, src, len)
  ------------------
  |  Branch (480:12): [True: 0, False: 813]
  ------------------
  481|    813|        || !WPACKET_close(pkt))
  ------------------
  |  Branch (481:12): [True: 0, False: 813]
  ------------------
  482|      0|        return 0;
  483|       |
  484|    813|    return 1;
  485|    813|}
WPACKET_get_total_written:
  488|  8.97k|{
  489|       |    /* Internal API, so should not fail */
  490|  8.97k|    if (!ossl_assert(written != NULL))
  ------------------
  |  |   52|  8.97k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  8.97k|    __FILE__, __LINE__)
  ------------------
  |  Branch (490:9): [True: 0, False: 8.97k]
  ------------------
  491|      0|        return 0;
  492|       |
  493|  8.97k|    *written = pkt->written;
  494|       |
  495|  8.97k|    return 1;
  496|  8.97k|}
WPACKET_get_length:
  499|  9.41k|{
  500|       |    /* Internal API, so should not fail */
  501|  9.41k|    if (!ossl_assert(pkt->subs != NULL && len != NULL))
  ------------------
  |  |   52|  18.8k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 9.41k, False: 0]
  |  |  |  Branch (52:41): [True: 9.41k, False: 0]
  |  |  ------------------
  |  |   53|  9.41k|    __FILE__, __LINE__)
  ------------------
  |  Branch (501:9): [True: 0, False: 9.41k]
  ------------------
  502|      0|        return 0;
  503|       |
  504|  9.41k|    *len = pkt->written - pkt->subs->pwritten;
  505|       |
  506|  9.41k|    return 1;
  507|  9.41k|}
WPACKET_get_curr:
  510|  96.4k|{
  511|  96.4k|    unsigned char *buf = GETBUF(pkt);
  ------------------
  |  |   40|  96.4k|#define GETBUF(p) (((p)->staticbuf != NULL)         \
  |  |  ------------------
  |  |  |  Branch (40:20): [True: 1.09k, False: 95.3k]
  |  |  ------------------
  |  |   41|  96.4k|        ? (p)->staticbuf                            \
  |  |   42|  96.4k|        : ((p)->buf != NULL                         \
  |  |  ------------------
  |  |  |  Branch (42:12): [True: 25.2k, False: 70.0k]
  |  |  ------------------
  |  |   43|  95.3k|                  ? (unsigned char *)(p)->buf->data \
  |  |   44|  95.3k|                  : NULL))
  ------------------
  512|       |
  513|  96.4k|    if (buf == NULL)
  ------------------
  |  Branch (513:9): [True: 70.0k, False: 26.3k]
  ------------------
  514|  70.0k|        return NULL;
  515|       |
  516|  26.3k|    if (pkt->endfirst)
  ------------------
  |  Branch (516:9): [True: 0, False: 26.3k]
  ------------------
  517|      0|        return buf + pkt->maxsize - pkt->curr;
  518|       |
  519|  26.3k|    return buf + pkt->curr;
  520|  26.3k|}
WPACKET_is_null_buf:
  523|  8.76k|{
  524|  8.76k|    return pkt->buf == NULL && pkt->staticbuf == NULL;
  ------------------
  |  Branch (524:12): [True: 8.76k, False: 0]
  |  Branch (524:32): [True: 8.76k, False: 0]
  ------------------
  525|  8.76k|}
WPACKET_cleanup:
  528|    219|{
  529|    219|    WPACKET_SUB *sub, *parent;
  530|       |
  531|    219|    for (sub = pkt->subs; sub != NULL; sub = parent) {
  ------------------
  |  Branch (531:27): [True: 0, False: 219]
  ------------------
  532|      0|        parent = sub->parent;
  533|      0|        OPENSSL_free(sub);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  534|      0|    }
  535|       |    pkt->subs = NULL;
  536|    219|}
packet.c:maxmaxsize:
   96|  9.19k|{
   97|  9.19k|    if (lenbytes >= sizeof(size_t) || lenbytes == 0)
  ------------------
  |  Branch (97:9): [True: 0, False: 9.19k]
  |  Branch (97:39): [True: 9.19k, False: 0]
  ------------------
   98|  9.19k|        return SIZE_MAX;
   99|       |
  100|      0|    return ((size_t)1 << (lenbytes * 8)) - 1 + lenbytes;
  101|  9.19k|}
packet.c:wpacket_intern_init_len:
  104|  9.19k|{
  105|  9.19k|    unsigned char *lenchars;
  106|       |
  107|  9.19k|    pkt->curr = 0;
  108|  9.19k|    pkt->written = 0;
  109|       |
  110|  9.19k|    if ((pkt->subs = OPENSSL_zalloc(sizeof(*pkt->subs))) == NULL)
  ------------------
  |  |  108|  9.19k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (110:9): [True: 0, False: 9.19k]
  ------------------
  111|      0|        return 0;
  112|       |
  113|  9.19k|    if (lenbytes == 0)
  ------------------
  |  Branch (113:9): [True: 9.19k, False: 0]
  ------------------
  114|  9.19k|        return 1;
  115|       |
  116|      0|    pkt->subs->pwritten = lenbytes;
  117|      0|    pkt->subs->lenbytes = lenbytes;
  118|       |
  119|      0|    if (!WPACKET_allocate_bytes(pkt, lenbytes, &lenchars)) {
  ------------------
  |  Branch (119:9): [True: 0, False: 0]
  ------------------
  120|      0|        OPENSSL_free(pkt->subs);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  121|      0|        pkt->subs = NULL;
  122|      0|        return 0;
  123|      0|    }
  124|      0|    pkt->subs->packet_len = 0;
  125|       |
  126|      0|    return 1;
  127|      0|}
packet.c:wpacket_intern_close:
  251|  40.7k|{
  252|  40.7k|    size_t packlen = pkt->written - sub->pwritten;
  253|       |
  254|  40.7k|    if (packlen == 0
  ------------------
  |  Branch (254:9): [True: 219, False: 40.5k]
  ------------------
  255|    219|        && (sub->flags & WPACKET_FLAGS_NON_ZERO_LENGTH) != 0)
  ------------------
  |  |  697|    219|#define WPACKET_FLAGS_NON_ZERO_LENGTH 1
  ------------------
  |  Branch (255:12): [True: 0, False: 219]
  ------------------
  256|      0|        return 0;
  257|       |
  258|  40.7k|    if (packlen == 0
  ------------------
  |  Branch (258:9): [True: 219, False: 40.5k]
  ------------------
  259|    219|        && sub->flags & WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH) {
  ------------------
  |  |  703|    219|#define WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH 2
  ------------------
  |  Branch (259:12): [True: 0, False: 219]
  ------------------
  260|       |        /* We can't handle this case. Return an error */
  261|      0|        if (!doclose)
  ------------------
  |  Branch (261:13): [True: 0, False: 0]
  ------------------
  262|      0|            return 0;
  263|       |
  264|       |        /* Deallocate any bytes allocated for the length of the WPACKET */
  265|      0|        if ((pkt->curr - sub->lenbytes) == sub->packet_len) {
  ------------------
  |  Branch (265:13): [True: 0, False: 0]
  ------------------
  266|      0|            pkt->written -= sub->lenbytes;
  267|      0|            pkt->curr -= sub->lenbytes;
  268|      0|        }
  269|       |
  270|       |        /* Don't write out the packet length */
  271|      0|        sub->packet_len = 0;
  272|      0|        sub->lenbytes = 0;
  273|      0|    }
  274|       |
  275|       |    /* Write out the WPACKET length if needed */
  276|  40.7k|    if (sub->lenbytes > 0) {
  ------------------
  |  Branch (276:9): [True: 5.28k, False: 35.4k]
  ------------------
  277|  5.28k|        unsigned char *buf = GETBUF(pkt);
  ------------------
  |  |   40|  5.28k|#define GETBUF(p) (((p)->staticbuf != NULL)         \
  |  |  ------------------
  |  |  |  Branch (40:20): [True: 219, False: 5.06k]
  |  |  ------------------
  |  |   41|  5.28k|        ? (p)->staticbuf                            \
  |  |   42|  5.28k|        : ((p)->buf != NULL                         \
  |  |  ------------------
  |  |  |  Branch (42:12): [True: 5.06k, False: 0]
  |  |  ------------------
  |  |   43|  5.06k|                  ? (unsigned char *)(p)->buf->data \
  |  |   44|  5.06k|                  : NULL))
  ------------------
  278|       |
  279|  5.28k|        if (buf != NULL) {
  ------------------
  |  Branch (279:13): [True: 5.28k, False: 0]
  ------------------
  280|  5.28k|#if !defined OPENSSL_NO_QUIC && !defined FIPS_MODULE
  281|  5.28k|            if ((sub->flags & WPACKET_FLAGS_QUIC_VLINT) == 0) {
  ------------------
  |  |  706|  5.28k|#define WPACKET_FLAGS_QUIC_VLINT 4
  ------------------
  |  Branch (281:17): [True: 5.28k, False: 0]
  ------------------
  282|  5.28k|                if (!put_value(&buf[sub->packet_len], packlen, sub->lenbytes))
  ------------------
  |  Branch (282:21): [True: 0, False: 5.28k]
  ------------------
  283|      0|                    return 0;
  284|  5.28k|            } else {
  285|      0|                if (!put_quic_value(&buf[sub->packet_len], packlen, sub->lenbytes))
  ------------------
  |  Branch (285:21): [True: 0, False: 0]
  ------------------
  286|      0|                    return 0;
  287|      0|            }
  288|       |#else
  289|       |            if (!put_value(&buf[sub->packet_len], packlen, sub->lenbytes))
  290|       |                return 0;
  291|       |#endif
  292|  5.28k|        }
  293|  35.4k|    } else if (pkt->endfirst && sub->parent != NULL
  ------------------
  |  Branch (293:16): [True: 0, False: 35.4k]
  |  Branch (293:33): [True: 0, False: 0]
  ------------------
  294|      0|        && (packlen != 0
  ------------------
  |  Branch (294:13): [True: 0, False: 0]
  ------------------
  295|      0|            || (sub->flags
  ------------------
  |  Branch (295:16): [True: 0, False: 0]
  ------------------
  296|      0|                   & WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH)
  ------------------
  |  |  703|      0|#define WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH 2
  ------------------
  297|      0|                == 0)) {
  298|      0|        size_t tmplen = packlen;
  299|      0|        size_t numlenbytes = 1;
  300|       |
  301|      0|        while ((tmplen = tmplen >> 8) > 0)
  ------------------
  |  Branch (301:16): [True: 0, False: 0]
  ------------------
  302|      0|            numlenbytes++;
  303|      0|        if (!WPACKET_put_bytes__(pkt, packlen, numlenbytes))
  ------------------
  |  Branch (303:13): [True: 0, False: 0]
  ------------------
  304|      0|            return 0;
  305|      0|        if (packlen > 0x7f) {
  ------------------
  |  Branch (305:13): [True: 0, False: 0]
  ------------------
  306|      0|            numlenbytes |= 0x80;
  307|      0|            if (!WPACKET_put_bytes_u8(pkt, numlenbytes))
  ------------------
  |  |  889|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (307:17): [True: 0, False: 0]
  ------------------
  308|      0|                return 0;
  309|      0|        }
  310|      0|    }
  311|       |
  312|  40.7k|    if (doclose) {
  ------------------
  |  Branch (312:9): [True: 40.7k, False: 0]
  ------------------
  313|  40.7k|        pkt->subs = sub->parent;
  314|  40.7k|        OPENSSL_free(sub);
  ------------------
  |  |  131|  40.7k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  315|  40.7k|    }
  316|       |
  317|  40.7k|    return 1;
  318|  40.7k|}
packet.c:put_value:
  212|  77.2k|{
  213|  77.2k|    if (data == NULL)
  ------------------
  |  Branch (213:9): [True: 52.5k, False: 24.6k]
  ------------------
  214|  52.5k|        return 1;
  215|       |
  216|  71.8k|    for (data += len - 1; len > 0; len--) {
  ------------------
  |  Branch (216:27): [True: 47.1k, False: 24.6k]
  ------------------
  217|  47.1k|        *data = (unsigned char)(value & 0xff);
  218|  47.1k|        data--;
  219|  47.1k|        value >>= 8;
  220|  47.1k|    }
  221|       |
  222|       |    /* Check whether we could fit the value in the assigned number of bytes */
  223|  24.6k|    if (value > 0)
  ------------------
  |  Branch (223:9): [True: 0, False: 24.6k]
  ------------------
  224|      0|        return 0;
  225|       |
  226|  24.6k|    return 1;
  227|  24.6k|}

OSSL_PARAM_BLD_new:
   92|    438|{
   93|    438|    OSSL_PARAM_BLD *r = OPENSSL_zalloc(sizeof(OSSL_PARAM_BLD));
  ------------------
  |  |  108|    438|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   94|       |
   95|    438|    if (r != NULL) {
  ------------------
  |  Branch (95:9): [True: 438, False: 0]
  ------------------
   96|    438|        r->params = sk_OSSL_PARAM_BLD_DEF_new_null();
   97|    438|        if (r->params == NULL) {
  ------------------
  |  Branch (97:13): [True: 0, False: 438]
  ------------------
   98|      0|            OPENSSL_free(r);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   99|       |            r = NULL;
  100|      0|        }
  101|    438|    }
  102|    438|    return r;
  103|    438|}
OSSL_PARAM_BLD_free:
  114|    438|{
  115|    438|    if (bld == NULL)
  ------------------
  |  Branch (115:9): [True: 0, False: 438]
  ------------------
  116|      0|        return;
  117|    438|    free_all_params(bld);
  118|    438|    sk_OSSL_PARAM_BLD_DEF_free(bld->params);
  119|    438|    OPENSSL_free(bld);
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  120|    438|}
OSSL_PARAM_BLD_push_octet_string:
  364|    438|{
  365|    438|    OSSL_PARAM_BLD_DEF *pd;
  366|    438|    int secure;
  367|       |
  368|    438|    if (bld == NULL || key == NULL || buf == NULL) {
  ------------------
  |  Branch (368:9): [True: 0, False: 438]
  |  Branch (368:24): [True: 0, False: 438]
  |  Branch (368:39): [True: 0, False: 438]
  ------------------
  369|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  370|      0|        return 0;
  371|      0|    }
  372|       |
  373|    438|    secure = CRYPTO_secure_allocated(buf);
  374|    438|    pd = param_push(bld, key, bsize, bsize, OSSL_PARAM_OCTET_STRING, secure);
  ------------------
  |  |  123|    438|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  375|    438|    if (pd == NULL)
  ------------------
  |  Branch (375:9): [True: 0, False: 438]
  ------------------
  376|      0|        return 0;
  377|    438|    pd->string = buf;
  378|    438|    return 1;
  379|    438|}
OSSL_PARAM_BLD_to_param:
  452|    438|{
  453|    438|    OSSL_PARAM_ALIGNED_BLOCK *blk, *s = NULL;
  454|    438|    OSSL_PARAM *params, *last;
  455|    438|    int num;
  456|    438|    size_t p_blks, total, ss;
  457|       |
  458|    438|    if (bld == NULL) {
  ------------------
  |  Branch (458:9): [True: 0, False: 438]
  ------------------
  459|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  460|      0|        return 0;
  461|      0|    }
  462|       |
  463|    438|    num = sk_OSSL_PARAM_BLD_DEF_num(bld->params);
  464|    438|    p_blks = ossl_param_bytes_to_blocks((1 + num) * sizeof(*params));
  465|    438|    total = OSSL_PARAM_ALIGN_SIZE * (p_blks + bld->total_blocks);
  ------------------
  |  |   22|    438|#define OSSL_PARAM_ALIGN_SIZE sizeof(OSSL_PARAM_ALIGNED_BLOCK)
  ------------------
  466|    438|    ss = OSSL_PARAM_ALIGN_SIZE * bld->secure_blocks;
  ------------------
  |  |   22|    438|#define OSSL_PARAM_ALIGN_SIZE sizeof(OSSL_PARAM_ALIGNED_BLOCK)
  ------------------
  467|       |
  468|    438|    if (ss > 0) {
  ------------------
  |  Branch (468:9): [True: 0, False: 438]
  ------------------
  469|      0|        s = OPENSSL_secure_malloc(ss);
  ------------------
  |  |  139|      0|    CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  470|      0|        if (s == NULL) {
  ------------------
  |  Branch (470:13): [True: 0, False: 0]
  ------------------
  471|      0|            ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_SECURE_MALLOC_FAILURE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  472|      0|            return NULL;
  473|      0|        }
  474|      0|    }
  475|    438|    params = OPENSSL_malloc(total);
  ------------------
  |  |  106|    438|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  476|    438|    if (params == NULL) {
  ------------------
  |  Branch (476:9): [True: 0, False: 438]
  ------------------
  477|      0|        OPENSSL_secure_free(s);
  ------------------
  |  |  147|      0|    CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  478|      0|        return NULL;
  479|      0|    }
  480|    438|    blk = p_blks + (OSSL_PARAM_ALIGNED_BLOCK *)(params);
  481|    438|    last = param_bld_convert(bld, params, blk, s);
  482|    438|    ossl_param_set_secure_block(last, s, ss);
  483|       |
  484|       |    /* Reset builder for reuse */
  485|    438|    bld->total_blocks = 0;
  486|    438|    bld->secure_blocks = 0;
  487|    438|    free_all_params(bld);
  488|    438|    return params;
  489|    438|}
param_build.c:free_all_params:
  106|    876|{
  107|    876|    int i, n = sk_OSSL_PARAM_BLD_DEF_num(bld->params);
  108|       |
  109|  1.31k|    for (i = 0; i < n; i++)
  ------------------
  |  Branch (109:17): [True: 438, False: 876]
  ------------------
  110|    438|        OPENSSL_free(sk_OSSL_PARAM_BLD_DEF_pop(bld->params));
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  111|    876|}
param_build.c:param_push:
   54|    438|{
   55|    438|    OSSL_PARAM_BLD_DEF *pd = OPENSSL_zalloc(sizeof(*pd));
  ------------------
  |  |  108|    438|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   56|       |
   57|    438|    if (pd == NULL)
  ------------------
  |  Branch (57:9): [True: 0, False: 438]
  ------------------
   58|      0|        return NULL;
   59|    438|    pd->key = key;
   60|    438|    pd->type = type;
   61|    438|    pd->size = size;
   62|    438|    pd->alloc_blocks = ossl_param_bytes_to_blocks(alloc);
   63|    438|    if ((pd->secure = secure) != 0)
  ------------------
  |  Branch (63:9): [True: 0, False: 438]
  ------------------
   64|      0|        bld->secure_blocks += pd->alloc_blocks;
   65|    438|    else
   66|    438|        bld->total_blocks += pd->alloc_blocks;
   67|    438|    if (sk_OSSL_PARAM_BLD_DEF_push(bld->params, pd) <= 0) {
  ------------------
  |  Branch (67:9): [True: 0, False: 438]
  ------------------
   68|      0|        OPENSSL_free(pd);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   69|       |        pd = NULL;
   70|      0|    }
   71|    438|    return pd;
   72|    438|}
param_build.c:param_bld_convert:
  401|    438|{
  402|    438|    int i, num = sk_OSSL_PARAM_BLD_DEF_num(bld->params);
  403|    438|    OSSL_PARAM_BLD_DEF *pd;
  404|    438|    void *p;
  405|       |
  406|    876|    for (i = 0; i < num; i++) {
  ------------------
  |  Branch (406:17): [True: 438, False: 438]
  ------------------
  407|    438|        pd = sk_OSSL_PARAM_BLD_DEF_value(bld->params, i);
  408|    438|        param[i].key = pd->key;
  409|    438|        param[i].data_type = pd->type;
  410|    438|        param[i].data_size = pd->size;
  411|    438|        param[i].return_size = OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|    438|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
  412|       |
  413|    438|        if (pd->secure) {
  ------------------
  |  Branch (413:13): [True: 0, False: 438]
  ------------------
  414|      0|            p = secure;
  415|      0|            secure += pd->alloc_blocks;
  416|    438|        } else {
  417|    438|            p = blk;
  418|    438|            blk += pd->alloc_blocks;
  419|    438|        }
  420|    438|        param[i].data = p;
  421|    438|        if (pd->bn != NULL) {
  ------------------
  |  Branch (421:13): [True: 0, False: 438]
  ------------------
  422|       |            /* BIGNUM */
  423|      0|            if (pd->type == OSSL_PARAM_UNSIGNED_INTEGER)
  ------------------
  |  |  107|      0|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (423:17): [True: 0, False: 0]
  ------------------
  424|      0|                BN_bn2nativepad(pd->bn, (unsigned char *)p, (int)pd->size);
  425|      0|            else
  426|      0|                BN_signed_bn2native(pd->bn, (unsigned char *)p, (int)pd->size);
  427|    438|        } else if (pd->type == OSSL_PARAM_OCTET_PTR
  ------------------
  |  |  160|    876|#define OSSL_PARAM_OCTET_PTR 7
  ------------------
  |  Branch (427:20): [True: 0, False: 438]
  ------------------
  428|    438|            || pd->type == OSSL_PARAM_UTF8_PTR) {
  ------------------
  |  |  141|    438|#define OSSL_PARAM_UTF8_PTR 6
  ------------------
  |  Branch (428:16): [True: 0, False: 438]
  ------------------
  429|       |            /* PTR */
  430|      0|            *(const void **)p = pd->string;
  431|    438|        } else if (pd->type == OSSL_PARAM_OCTET_STRING
  ------------------
  |  |  123|    876|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  |  Branch (431:20): [True: 438, False: 0]
  ------------------
  432|    438|            || pd->type == OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (432:16): [True: 0, False: 0]
  ------------------
  433|    438|            if (pd->string != NULL)
  ------------------
  |  Branch (433:17): [True: 438, False: 0]
  ------------------
  434|    438|                memcpy(p, pd->string, pd->size);
  435|      0|            else
  436|      0|                memset(p, 0, pd->size);
  437|    438|            if (pd->type == OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|    438|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (437:17): [True: 0, False: 438]
  ------------------
  438|      0|                ((char *)p)[pd->size] = '\0';
  439|    438|        } else {
  440|       |            /* Number, but could also be a NULL BIGNUM */
  441|      0|            if (pd->size > sizeof(pd->num))
  ------------------
  |  Branch (441:17): [True: 0, False: 0]
  ------------------
  442|      0|                memset(p, 0, pd->size);
  443|      0|            else if (pd->size > 0)
  ------------------
  |  Branch (443:22): [True: 0, False: 0]
  ------------------
  444|      0|                memcpy(p, &pd->num, pd->size);
  445|      0|        }
  446|    438|    }
  447|    438|    param[i] = OSSL_PARAM_construct_end();
  448|    438|    return param + i;
  449|    438|}

ossl_param_build_set_int:
   24|  17.5k|{
   25|  17.5k|    if (bld != NULL)
  ------------------
  |  Branch (25:9): [True: 0, False: 17.5k]
  ------------------
   26|      0|        return OSSL_PARAM_BLD_push_int(bld, key, num);
   27|  17.5k|    p = OSSL_PARAM_locate(p, key);
   28|  17.5k|    if (p != NULL)
  ------------------
  |  Branch (28:9): [True: 0, False: 17.5k]
  ------------------
   29|      0|        return OSSL_PARAM_set_int(p, num);
   30|  17.5k|    return 1;
   31|  17.5k|}
ossl_param_build_set_utf8_string:
   46|  43.8k|{
   47|  43.8k|    if (bld != NULL)
  ------------------
  |  Branch (47:9): [True: 0, False: 43.8k]
  ------------------
   48|      0|        return OSSL_PARAM_BLD_push_utf8_string(bld, key, buf, 0);
   49|  43.8k|    p = OSSL_PARAM_locate(p, key);
   50|  43.8k|    if (p != NULL)
  ------------------
  |  Branch (50:9): [True: 0, False: 43.8k]
  ------------------
   51|      0|        return OSSL_PARAM_set_utf8_string(p, buf);
   52|  43.8k|    return 1;
   53|  43.8k|}
ossl_param_build_set_octet_string:
   59|  2.19k|{
   60|  2.19k|    if (bld != NULL)
  ------------------
  |  Branch (60:9): [True: 438, False: 1.75k]
  ------------------
   61|    438|        return OSSL_PARAM_BLD_push_octet_string(bld, key, data, data_len);
   62|       |
   63|  1.75k|    p = OSSL_PARAM_locate(p, key);
   64|  1.75k|    if (p != NULL)
  ------------------
  |  Branch (64:9): [True: 0, False: 1.75k]
  ------------------
   65|      0|        return OSSL_PARAM_set_octet_string(p, data, data_len);
   66|  1.75k|    return 1;
   67|  1.75k|}
ossl_param_build_set_bn:
   88|  46.4k|{
   89|  46.4k|    if (bld != NULL)
  ------------------
  |  Branch (89:9): [True: 0, False: 46.4k]
  ------------------
   90|      0|        return OSSL_PARAM_BLD_push_BN(bld, key, bn);
   91|       |
   92|  46.4k|    p = OSSL_PARAM_locate(p, key);
   93|  46.4k|    if (p != NULL)
  ------------------
  |  Branch (93:9): [True: 0, False: 46.4k]
  ------------------
   94|      0|        return OSSL_PARAM_set_BN(p, bn) > 0;
   95|  46.4k|    return 1;
   96|  46.4k|}

OSSL_PARAM_locate:
   55|   817k|{
   56|   817k|    if (ossl_likely(p != NULL && key != NULL))
  ------------------
  |  |   22|  1.63M|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 815k, False: 1.75k]
  |  |  |  Branch (22:44): [True: 815k, False: 1.75k]
  |  |  |  Branch (22:44): [True: 815k, False: 0]
  |  |  ------------------
  ------------------
   57|  3.25M|        for (; p->key != NULL; p++)
  ------------------
  |  Branch (57:16): [True: 2.92M, False: 323k]
  ------------------
   58|  2.92M|            if (strcmp(key, p->key) == 0)
  ------------------
  |  Branch (58:17): [True: 492k, False: 2.43M]
  ------------------
   59|   492k|                return p;
   60|   325k|    return NULL;
   61|   817k|}
OSSL_PARAM_locate_const:
   64|   470k|{
   65|   470k|    return OSSL_PARAM_locate((OSSL_PARAM *)p, key);
   66|   470k|}
OSSL_PARAM_modified:
   82|  1.53k|{
   83|  1.53k|    return p != NULL && p->return_size != OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|  1.53k|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
  |  Branch (83:12): [True: 1.53k, False: 0]
  |  Branch (83:25): [True: 879, False: 657]
  ------------------
   84|  1.53k|}
OSSL_PARAM_get_int:
  268|  54.5k|{
  269|  54.5k|#ifndef OPENSSL_SMALL_FOOTPRINT
  270|  54.5k|    switch (sizeof(int)) {
  ------------------
  |  Branch (270:13): [True: 54.5k, Folded]
  ------------------
  271|  54.5k|    case sizeof(int32_t):
  ------------------
  |  Branch (271:5): [True: 54.5k, False: 0]
  ------------------
  272|  54.5k|        return OSSL_PARAM_get_int32(p, (int32_t *)val);
  273|      0|    case sizeof(int64_t):
  ------------------
  |  Branch (273:5): [True: 0, False: 54.5k]
  ------------------
  274|      0|        return OSSL_PARAM_get_int64(p, (int64_t *)val);
  275|  54.5k|    }
  276|      0|#endif
  277|      0|    return general_get_int(p, val, sizeof(*val));
  278|  54.5k|}
OSSL_PARAM_set_int:
  281|   133k|{
  282|   133k|#ifndef OPENSSL_SMALL_FOOTPRINT
  283|   133k|    switch (sizeof(int)) {
  ------------------
  |  Branch (283:13): [True: 133k, Folded]
  ------------------
  284|   133k|    case sizeof(int32_t):
  ------------------
  |  Branch (284:5): [True: 133k, False: 0]
  ------------------
  285|   133k|        return OSSL_PARAM_set_int32(p, (int32_t)val);
  286|      0|    case sizeof(int64_t):
  ------------------
  |  Branch (286:5): [True: 0, False: 133k]
  ------------------
  287|      0|        return OSSL_PARAM_set_int64(p, (int64_t)val);
  288|   133k|    }
  289|      0|#endif
  290|      0|    return general_set_int(p, &val, sizeof(val));
  291|   133k|}
OSSL_PARAM_construct_int:
  294|   201k|{
  295|   201k|    return ossl_param_construct(key, OSSL_PARAM_INTEGER, buf, sizeof(int));
  ------------------
  |  |  106|   201k|#define OSSL_PARAM_INTEGER 1
  ------------------
  296|   201k|}
OSSL_PARAM_get_uint:
  299|  40.2k|{
  300|  40.2k|#ifndef OPENSSL_SMALL_FOOTPRINT
  301|  40.2k|    switch (sizeof(unsigned int)) {
  ------------------
  |  Branch (301:13): [True: 40.2k, Folded]
  ------------------
  302|  40.2k|    case sizeof(uint32_t):
  ------------------
  |  Branch (302:5): [True: 40.2k, False: 0]
  ------------------
  303|  40.2k|        return OSSL_PARAM_get_uint32(p, (uint32_t *)val);
  304|      0|    case sizeof(uint64_t):
  ------------------
  |  Branch (304:5): [True: 0, False: 40.2k]
  ------------------
  305|      0|        return OSSL_PARAM_get_uint64(p, (uint64_t *)val);
  306|  40.2k|    }
  307|      0|#endif
  308|      0|    return general_get_uint(p, val, sizeof(*val));
  309|  40.2k|}
OSSL_PARAM_set_uint:
  312|  9.39k|{
  313|  9.39k|#ifndef OPENSSL_SMALL_FOOTPRINT
  314|  9.39k|    switch (sizeof(unsigned int)) {
  ------------------
  |  Branch (314:13): [True: 9.39k, Folded]
  ------------------
  315|  9.39k|    case sizeof(uint32_t):
  ------------------
  |  Branch (315:5): [True: 9.39k, False: 0]
  ------------------
  316|  9.39k|        return OSSL_PARAM_set_uint32(p, (uint32_t)val);
  317|      0|    case sizeof(uint64_t):
  ------------------
  |  Branch (317:5): [True: 0, False: 9.39k]
  ------------------
  318|      0|        return OSSL_PARAM_set_uint64(p, (uint64_t)val);
  319|  9.39k|    }
  320|      0|#endif
  321|      0|    return general_set_uint(p, &val, sizeof(val));
  322|  9.39k|}
OSSL_PARAM_construct_uint:
  325|  9.41k|{
  326|  9.41k|    return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
  ------------------
  |  |  107|  9.41k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  327|  9.41k|        sizeof(unsigned int));
  328|  9.41k|}
OSSL_PARAM_get_int32:
  394|  54.5k|{
  395|  54.5k|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (395:9): [True: 0, False: 54.5k]
  |  Branch (395:24): [True: 0, False: 54.5k]
  ------------------
  396|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  397|      0|        return 0;
  398|      0|    }
  399|       |
  400|  54.5k|    if (p->data == NULL) {
  ------------------
  |  Branch (400:9): [True: 0, False: 54.5k]
  ------------------
  401|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  402|      0|        return 0;
  403|      0|    }
  404|       |
  405|  54.5k|    if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|  54.5k|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (405:9): [True: 54.5k, False: 12]
  ------------------
  406|  54.5k|#ifndef OPENSSL_SMALL_FOOTPRINT
  407|  54.5k|        int64_t i64;
  408|       |
  409|  54.5k|        switch (p->data_size) {
  ------------------
  |  Branch (409:17): [True: 54.5k, False: 0]
  ------------------
  410|  54.5k|        case sizeof(int32_t):
  ------------------
  |  Branch (410:9): [True: 54.5k, False: 0]
  ------------------
  411|  54.5k|            *val = *(const int32_t *)p->data;
  412|  54.5k|            return 1;
  413|      0|        case sizeof(int64_t):
  ------------------
  |  Branch (413:9): [True: 0, False: 54.5k]
  ------------------
  414|      0|            i64 = *(const int64_t *)p->data;
  415|      0|            if (i64 >= INT32_MIN && i64 <= INT32_MAX) {
  ------------------
  |  Branch (415:17): [True: 0, False: 0]
  |  Branch (415:37): [True: 0, False: 0]
  ------------------
  416|      0|                *val = (int32_t)i64;
  417|      0|                return 1;
  418|      0|            }
  419|      0|            err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  420|      0|            return 0;
  421|  54.5k|        }
  422|      0|#endif
  423|      0|        return general_get_int(p, val, sizeof(*val));
  424|       |
  425|  54.5k|    } else if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
  ------------------
  |  |  107|     12|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (425:16): [True: 12, False: 0]
  ------------------
  426|     12|#ifndef OPENSSL_SMALL_FOOTPRINT
  427|     12|        uint32_t u32;
  428|     12|        uint64_t u64;
  429|       |
  430|     12|        switch (p->data_size) {
  ------------------
  |  Branch (430:17): [True: 12, False: 0]
  ------------------
  431|      0|        case sizeof(uint32_t):
  ------------------
  |  Branch (431:9): [True: 0, False: 12]
  ------------------
  432|      0|            u32 = *(const uint32_t *)p->data;
  433|      0|            if (u32 <= INT32_MAX) {
  ------------------
  |  Branch (433:17): [True: 0, False: 0]
  ------------------
  434|      0|                *val = (int32_t)u32;
  435|      0|                return 1;
  436|      0|            }
  437|      0|            err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  438|      0|            return 0;
  439|     12|        case sizeof(uint64_t):
  ------------------
  |  Branch (439:9): [True: 12, False: 0]
  ------------------
  440|     12|            u64 = *(const uint64_t *)p->data;
  441|     12|            if (u64 <= INT32_MAX) {
  ------------------
  |  Branch (441:17): [True: 12, False: 0]
  ------------------
  442|     12|                *val = (int32_t)u64;
  443|     12|                return 1;
  444|     12|            }
  445|      0|            err_out_of_range;
  ------------------
  |  |   26|     12|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  446|      0|            return 0;
  447|     12|        }
  448|      0|#endif
  449|      0|        return general_get_int(p, val, sizeof(*val));
  450|       |
  451|     12|    } else if (p->data_type == OSSL_PARAM_REAL) {
  ------------------
  |  |  112|      0|#define OSSL_PARAM_REAL 3
  ------------------
  |  Branch (451:16): [True: 0, False: 0]
  ------------------
  452|      0|#ifndef OPENSSL_SYS_UEFI
  453|      0|        double d;
  454|       |
  455|      0|        switch (p->data_size) {
  ------------------
  |  Branch (455:17): [True: 0, False: 0]
  ------------------
  456|      0|        case sizeof(double):
  ------------------
  |  Branch (456:9): [True: 0, False: 0]
  ------------------
  457|      0|            d = *(const double *)p->data;
  458|      0|            if (d >= INT32_MIN && d <= INT32_MAX && d == (int32_t)d) {
  ------------------
  |  Branch (458:17): [True: 0, False: 0]
  |  Branch (458:35): [True: 0, False: 0]
  |  Branch (458:53): [True: 0, False: 0]
  ------------------
  459|      0|                *val = (int32_t)d;
  460|      0|                return 1;
  461|      0|            }
  462|      0|            err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  463|      0|            return 0;
  464|      0|        }
  465|      0|        err_unsupported_real;
  ------------------
  |  |   40|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_UNSUPPORTED_FLOATING_POINT_FORMAT)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  466|      0|        return 0;
  467|      0|#endif
  468|      0|    }
  469|      0|    err_bad_type;
  ------------------
  |  |   36|  54.5k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  470|      0|    return 0;
  471|  54.5k|}
OSSL_PARAM_set_int32:
  474|   133k|{
  475|   133k|    if (p == NULL) {
  ------------------
  |  Branch (475:9): [True: 0, False: 133k]
  ------------------
  476|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|      0|        return 0;
  478|      0|    }
  479|   133k|    p->return_size = 0;
  480|   133k|    if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|   133k|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (480:9): [True: 133k, False: 10]
  ------------------
  481|   133k|#ifndef OPENSSL_SMALL_FOOTPRINT
  482|   133k|        p->return_size = sizeof(int32_t); /* Minimum expected size */
  483|   133k|        if (p->data == NULL)
  ------------------
  |  Branch (483:13): [True: 0, False: 133k]
  ------------------
  484|      0|            return 1;
  485|   133k|        switch (p->data_size) {
  ------------------
  |  Branch (485:17): [True: 133k, False: 0]
  ------------------
  486|   133k|        case sizeof(int32_t):
  ------------------
  |  Branch (486:9): [True: 133k, False: 0]
  ------------------
  487|   133k|            *(int32_t *)p->data = val;
  488|   133k|            return 1;
  489|      0|        case sizeof(int64_t):
  ------------------
  |  Branch (489:9): [True: 0, False: 133k]
  ------------------
  490|      0|            p->return_size = sizeof(int64_t);
  491|      0|            *(int64_t *)p->data = (int64_t)val;
  492|      0|            return 1;
  493|   133k|        }
  494|      0|#endif
  495|      0|        return general_set_int(p, &val, sizeof(val));
  496|   133k|    } else if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER && val >= 0) {
  ------------------
  |  |  107|     20|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (496:16): [True: 10, False: 0]
  |  Branch (496:63): [True: 10, False: 0]
  ------------------
  497|     10|#ifndef OPENSSL_SMALL_FOOTPRINT
  498|     10|        p->return_size = sizeof(uint32_t); /* Minimum expected size */
  499|     10|        if (p->data == NULL)
  ------------------
  |  Branch (499:13): [True: 0, False: 10]
  ------------------
  500|      0|            return 1;
  501|     10|        switch (p->data_size) {
  ------------------
  |  Branch (501:17): [True: 10, False: 0]
  ------------------
  502|     10|        case sizeof(uint32_t):
  ------------------
  |  Branch (502:9): [True: 10, False: 0]
  ------------------
  503|     10|            *(uint32_t *)p->data = (uint32_t)val;
  504|     10|            return 1;
  505|      0|        case sizeof(uint64_t):
  ------------------
  |  Branch (505:9): [True: 0, False: 10]
  ------------------
  506|      0|            p->return_size = sizeof(uint64_t);
  507|      0|            *(uint64_t *)p->data = (uint64_t)val;
  508|      0|            return 1;
  509|     10|        }
  510|      0|#endif
  511|      0|        return general_set_int(p, &val, sizeof(val));
  512|     10|    } else if (p->data_type == OSSL_PARAM_REAL) {
  ------------------
  |  |  112|      0|#define OSSL_PARAM_REAL 3
  ------------------
  |  Branch (512:16): [True: 0, False: 0]
  ------------------
  513|      0|#ifndef OPENSSL_SYS_UEFI
  514|      0|        uint32_t u32;
  515|      0|        unsigned int shift;
  516|       |
  517|      0|        p->return_size = sizeof(double);
  518|      0|        if (p->data == NULL)
  ------------------
  |  Branch (518:13): [True: 0, False: 0]
  ------------------
  519|      0|            return 1;
  520|      0|        switch (p->data_size) {
  ------------------
  |  Branch (520:17): [True: 0, False: 0]
  ------------------
  521|      0|        case sizeof(double):
  ------------------
  |  Branch (521:9): [True: 0, False: 0]
  ------------------
  522|      0|            shift = real_shift();
  523|      0|            if (shift < 8 * sizeof(val) - 1) {
  ------------------
  |  Branch (523:17): [True: 0, False: 0]
  ------------------
  524|      0|                u32 = val < 0 ? -val : val;
  ------------------
  |  Branch (524:23): [True: 0, False: 0]
  ------------------
  525|      0|                if ((u32 >> shift) != 0) {
  ------------------
  |  Branch (525:21): [True: 0, False: 0]
  ------------------
  526|      0|                    err_inexact;
  ------------------
  |  |   29|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|        CRYPTO_R_PARAM_CANNOT_BE_REPRESENTED_EXACTLY)
  ------------------
  527|      0|                    return 0;
  528|      0|                }
  529|      0|            }
  530|      0|            *(double *)p->data = (double)val;
  531|      0|            return 1;
  532|      0|        }
  533|      0|        err_unsupported_real;
  ------------------
  |  |   40|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_UNSUPPORTED_FLOATING_POINT_FORMAT)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  534|      0|        return 0;
  535|      0|#endif
  536|      0|    }
  537|      0|    err_bad_type;
  ------------------
  |  |   36|   133k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  538|      0|    return 0;
  539|   133k|}
OSSL_PARAM_get_uint32:
  548|  41.5k|{
  549|  41.5k|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (549:9): [True: 0, False: 41.5k]
  |  Branch (549:24): [True: 0, False: 41.5k]
  ------------------
  550|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  551|      0|        return 0;
  552|      0|    }
  553|       |
  554|  41.5k|    if (p->data == NULL) {
  ------------------
  |  Branch (554:9): [True: 0, False: 41.5k]
  ------------------
  555|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  556|      0|        return 0;
  557|      0|    }
  558|       |
  559|  41.5k|    if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
  ------------------
  |  |  107|  41.5k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (559:9): [True: 28.6k, False: 12.9k]
  ------------------
  560|  28.6k|#ifndef OPENSSL_SMALL_FOOTPRINT
  561|  28.6k|        uint64_t u64;
  562|       |
  563|  28.6k|        switch (p->data_size) {
  ------------------
  |  Branch (563:17): [True: 28.6k, False: 0]
  ------------------
  564|  28.6k|        case sizeof(uint32_t):
  ------------------
  |  Branch (564:9): [True: 28.6k, False: 0]
  ------------------
  565|  28.6k|            *val = *(const uint32_t *)p->data;
  566|  28.6k|            return 1;
  567|      0|        case sizeof(uint64_t):
  ------------------
  |  Branch (567:9): [True: 0, False: 28.6k]
  ------------------
  568|      0|            u64 = *(const uint64_t *)p->data;
  569|      0|            if (u64 <= UINT32_MAX) {
  ------------------
  |  Branch (569:17): [True: 0, False: 0]
  ------------------
  570|      0|                *val = (uint32_t)u64;
  571|      0|                return 1;
  572|      0|            }
  573|      0|            err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  574|      0|            return 0;
  575|  28.6k|        }
  576|      0|#endif
  577|      0|        return general_get_uint(p, val, sizeof(*val));
  578|  28.6k|    } else if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|  12.9k|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (578:16): [True: 12.9k, False: 0]
  ------------------
  579|  12.9k|#ifndef OPENSSL_SMALL_FOOTPRINT
  580|  12.9k|        int32_t i32;
  581|  12.9k|        int64_t i64;
  582|       |
  583|  12.9k|        switch (p->data_size) {
  ------------------
  |  Branch (583:17): [True: 12.9k, False: 0]
  ------------------
  584|  12.9k|        case sizeof(int32_t):
  ------------------
  |  Branch (584:9): [True: 12.9k, False: 0]
  ------------------
  585|  12.9k|            i32 = *(const int32_t *)p->data;
  586|  12.9k|            if (i32 >= 0) {
  ------------------
  |  Branch (586:17): [True: 12.9k, False: 0]
  ------------------
  587|  12.9k|                *val = i32;
  588|  12.9k|                return 1;
  589|  12.9k|            }
  590|      0|            err_unsigned_negative;
  ------------------
  |  |   23|  12.9k|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   24|      0|        CRYPTO_R_PARAM_UNSIGNED_INTEGER_NEGATIVE_VALUE_UNSUPPORTED)
  ------------------
  591|      0|            return 0;
  592|      0|        case sizeof(int64_t):
  ------------------
  |  Branch (592:9): [True: 0, False: 12.9k]
  ------------------
  593|      0|            i64 = *(const int64_t *)p->data;
  594|      0|            if (i64 >= 0 && i64 <= UINT32_MAX) {
  ------------------
  |  Branch (594:17): [True: 0, False: 0]
  |  Branch (594:29): [True: 0, False: 0]
  ------------------
  595|      0|                *val = (uint32_t)i64;
  596|      0|                return 1;
  597|      0|            }
  598|      0|            if (i64 < 0)
  ------------------
  |  Branch (598:17): [True: 0, False: 0]
  ------------------
  599|      0|                err_unsigned_negative;
  ------------------
  |  |   23|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   24|      0|        CRYPTO_R_PARAM_UNSIGNED_INTEGER_NEGATIVE_VALUE_UNSUPPORTED)
  ------------------
  600|      0|            else
  601|      0|                err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  602|      0|            return 0;
  603|  12.9k|        }
  604|      0|#endif
  605|      0|        return general_get_uint(p, val, sizeof(*val));
  606|  12.9k|    } else if (p->data_type == OSSL_PARAM_REAL) {
  ------------------
  |  |  112|      0|#define OSSL_PARAM_REAL 3
  ------------------
  |  Branch (606:16): [True: 0, False: 0]
  ------------------
  607|      0|#ifndef OPENSSL_SYS_UEFI
  608|      0|        double d;
  609|       |
  610|      0|        switch (p->data_size) {
  ------------------
  |  Branch (610:17): [True: 0, False: 0]
  ------------------
  611|      0|        case sizeof(double):
  ------------------
  |  Branch (611:9): [True: 0, False: 0]
  ------------------
  612|      0|            d = *(const double *)p->data;
  613|      0|            if (d >= 0 && d <= UINT32_MAX && d == (uint32_t)d) {
  ------------------
  |  Branch (613:17): [True: 0, False: 0]
  |  Branch (613:27): [True: 0, False: 0]
  |  Branch (613:46): [True: 0, False: 0]
  ------------------
  614|      0|                *val = (uint32_t)d;
  615|      0|                return 1;
  616|      0|            }
  617|      0|            err_inexact;
  ------------------
  |  |   29|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|        CRYPTO_R_PARAM_CANNOT_BE_REPRESENTED_EXACTLY)
  ------------------
  618|      0|            return 0;
  619|      0|        }
  620|      0|        err_unsupported_real;
  ------------------
  |  |   40|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_UNSUPPORTED_FLOATING_POINT_FORMAT)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|      0|        return 0;
  622|      0|#endif
  623|      0|    }
  624|      0|    err_bad_type;
  ------------------
  |  |   36|  41.5k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  625|      0|    return 0;
  626|  41.5k|}
OSSL_PARAM_set_uint32:
  629|  9.39k|{
  630|  9.39k|    if (p == NULL) {
  ------------------
  |  Branch (630:9): [True: 0, False: 9.39k]
  ------------------
  631|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  632|      0|        return 0;
  633|      0|    }
  634|  9.39k|    p->return_size = 0;
  635|       |
  636|  9.39k|    if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
  ------------------
  |  |  107|  9.39k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (636:9): [True: 9.39k, False: 0]
  ------------------
  637|  9.39k|#ifndef OPENSSL_SMALL_FOOTPRINT
  638|  9.39k|        p->return_size = sizeof(uint32_t); /* Minimum expected size */
  639|  9.39k|        if (p->data == NULL)
  ------------------
  |  Branch (639:13): [True: 0, False: 9.39k]
  ------------------
  640|      0|            return 1;
  641|  9.39k|        switch (p->data_size) {
  ------------------
  |  Branch (641:17): [True: 9.39k, False: 0]
  ------------------
  642|  9.39k|        case sizeof(uint32_t):
  ------------------
  |  Branch (642:9): [True: 9.39k, False: 0]
  ------------------
  643|  9.39k|            *(uint32_t *)p->data = val;
  644|  9.39k|            return 1;
  645|      0|        case sizeof(uint64_t):
  ------------------
  |  Branch (645:9): [True: 0, False: 9.39k]
  ------------------
  646|      0|            p->return_size = sizeof(uint64_t);
  647|      0|            *(uint64_t *)p->data = val;
  648|      0|            return 1;
  649|  9.39k|        }
  650|      0|#endif
  651|      0|        return general_set_uint(p, &val, sizeof(val));
  652|  9.39k|    } else if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|      0|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (652:16): [True: 0, False: 0]
  ------------------
  653|      0|#ifndef OPENSSL_SMALL_FOOTPRINT
  654|      0|        p->return_size = sizeof(int32_t); /* Minimum expected size */
  655|      0|        if (p->data == NULL)
  ------------------
  |  Branch (655:13): [True: 0, False: 0]
  ------------------
  656|      0|            return 1;
  657|      0|        switch (p->data_size) {
  ------------------
  |  Branch (657:17): [True: 0, False: 0]
  ------------------
  658|      0|        case sizeof(int32_t):
  ------------------
  |  Branch (658:9): [True: 0, False: 0]
  ------------------
  659|      0|            if (val <= INT32_MAX) {
  ------------------
  |  Branch (659:17): [True: 0, False: 0]
  ------------------
  660|      0|                *(int32_t *)p->data = (int32_t)val;
  661|      0|                return 1;
  662|      0|            }
  663|      0|            err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  664|      0|            return 0;
  665|      0|        case sizeof(int64_t):
  ------------------
  |  Branch (665:9): [True: 0, False: 0]
  ------------------
  666|      0|            p->return_size = sizeof(int64_t);
  667|      0|            *(int64_t *)p->data = (int64_t)val;
  668|      0|            return 1;
  669|      0|        }
  670|      0|#endif
  671|      0|        return general_set_uint(p, &val, sizeof(val));
  672|      0|    } else if (p->data_type == OSSL_PARAM_REAL) {
  ------------------
  |  |  112|      0|#define OSSL_PARAM_REAL 3
  ------------------
  |  Branch (672:16): [True: 0, False: 0]
  ------------------
  673|      0|#ifndef OPENSSL_SYS_UEFI
  674|      0|        unsigned int shift;
  675|       |
  676|      0|        if (p->data == NULL) {
  ------------------
  |  Branch (676:13): [True: 0, False: 0]
  ------------------
  677|      0|            p->return_size = sizeof(double);
  678|      0|            return 1;
  679|      0|        }
  680|      0|        switch (p->data_size) {
  ------------------
  |  Branch (680:17): [True: 0, False: 0]
  ------------------
  681|      0|        case sizeof(double):
  ------------------
  |  Branch (681:9): [True: 0, False: 0]
  ------------------
  682|      0|            shift = real_shift();
  683|      0|            if (shift < 8 * sizeof(val) && (val >> shift) != 0) {
  ------------------
  |  Branch (683:17): [True: 0, False: 0]
  |  Branch (683:44): [True: 0, False: 0]
  ------------------
  684|      0|                err_inexact;
  ------------------
  |  |   29|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|        CRYPTO_R_PARAM_CANNOT_BE_REPRESENTED_EXACTLY)
  ------------------
  685|      0|                return 0;
  686|      0|            }
  687|      0|            *(double *)p->data = (double)val;
  688|      0|            p->return_size = sizeof(double);
  689|      0|            return 1;
  690|      0|        }
  691|      0|        err_unsupported_real;
  ------------------
  |  |   40|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_UNSUPPORTED_FLOATING_POINT_FORMAT)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  692|      0|        return 0;
  693|      0|#endif
  694|      0|    }
  695|      0|    err_bad_type;
  ------------------
  |  |   36|  9.39k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  696|      0|    return 0;
  697|  9.39k|}
OSSL_PARAM_construct_uint32:
  700|  1.31k|{
  701|  1.31k|    return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
  ------------------
  |  |  107|  1.31k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  702|  1.31k|        sizeof(uint32_t));
  703|  1.31k|}
OSSL_PARAM_get_int64:
  706|      3|{
  707|      3|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (707:9): [True: 0, False: 3]
  |  Branch (707:24): [True: 0, False: 3]
  ------------------
  708|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  709|      0|        return 0;
  710|      0|    }
  711|       |
  712|      3|    if (p->data == NULL) {
  ------------------
  |  Branch (712:9): [True: 0, False: 3]
  ------------------
  713|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  714|      0|        return 0;
  715|      0|    }
  716|       |
  717|      3|    if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|      3|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (717:9): [True: 3, False: 0]
  ------------------
  718|      3|#ifndef OPENSSL_SMALL_FOOTPRINT
  719|      3|        switch (p->data_size) {
  ------------------
  |  Branch (719:17): [True: 3, False: 0]
  ------------------
  720|      0|        case sizeof(int32_t):
  ------------------
  |  Branch (720:9): [True: 0, False: 3]
  ------------------
  721|      0|            *val = *(const int32_t *)p->data;
  722|      0|            return 1;
  723|      3|        case sizeof(int64_t):
  ------------------
  |  Branch (723:9): [True: 3, False: 0]
  ------------------
  724|      3|            *val = *(const int64_t *)p->data;
  725|      3|            return 1;
  726|      3|        }
  727|      0|#endif
  728|      0|        return general_get_int(p, val, sizeof(*val));
  729|      3|    } else if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
  ------------------
  |  |  107|      0|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (729:16): [True: 0, False: 0]
  ------------------
  730|      0|#ifndef OPENSSL_SMALL_FOOTPRINT
  731|      0|        uint64_t u64;
  732|       |
  733|      0|        switch (p->data_size) {
  ------------------
  |  Branch (733:17): [True: 0, False: 0]
  ------------------
  734|      0|        case sizeof(uint32_t):
  ------------------
  |  Branch (734:9): [True: 0, False: 0]
  ------------------
  735|      0|            *val = *(const uint32_t *)p->data;
  736|      0|            return 1;
  737|      0|        case sizeof(uint64_t):
  ------------------
  |  Branch (737:9): [True: 0, False: 0]
  ------------------
  738|      0|            u64 = *(const uint64_t *)p->data;
  739|      0|            if (u64 <= INT64_MAX) {
  ------------------
  |  Branch (739:17): [True: 0, False: 0]
  ------------------
  740|      0|                *val = (int64_t)u64;
  741|      0|                return 1;
  742|      0|            }
  743|      0|            err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  744|      0|            return 0;
  745|      0|        }
  746|      0|#endif
  747|      0|        return general_get_int(p, val, sizeof(*val));
  748|      0|    } else if (p->data_type == OSSL_PARAM_REAL) {
  ------------------
  |  |  112|      0|#define OSSL_PARAM_REAL 3
  ------------------
  |  Branch (748:16): [True: 0, False: 0]
  ------------------
  749|      0|#ifndef OPENSSL_SYS_UEFI
  750|      0|        double d;
  751|       |
  752|      0|        switch (p->data_size) {
  ------------------
  |  Branch (752:17): [True: 0, False: 0]
  ------------------
  753|      0|        case sizeof(double):
  ------------------
  |  Branch (753:9): [True: 0, False: 0]
  ------------------
  754|      0|            d = *(const double *)p->data;
  755|      0|            if (d >= INT64_MIN
  ------------------
  |  Branch (755:17): [True: 0, False: 0]
  ------------------
  756|       |                /*
  757|       |                 * By subtracting 65535 (2^16-1) we cancel the low order
  758|       |                 * 15 bits of INT64_MAX to avoid using imprecise floating
  759|       |                 * point values.
  760|       |                 */
  761|      0|                && d < (double)(INT64_MAX - 65535) + 65536.0
  ------------------
  |  Branch (761:20): [True: 0, False: 0]
  ------------------
  762|      0|                && d == (int64_t)d) {
  ------------------
  |  Branch (762:20): [True: 0, False: 0]
  ------------------
  763|      0|                *val = (int64_t)d;
  764|      0|                return 1;
  765|      0|            }
  766|      0|            err_inexact;
  ------------------
  |  |   29|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|        CRYPTO_R_PARAM_CANNOT_BE_REPRESENTED_EXACTLY)
  ------------------
  767|      0|            return 0;
  768|      0|        }
  769|      0|        err_unsupported_real;
  ------------------
  |  |   40|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_UNSUPPORTED_FLOATING_POINT_FORMAT)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  770|      0|        return 0;
  771|      0|#endif
  772|      0|    }
  773|      0|    err_bad_type;
  ------------------
  |  |   36|      3|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  774|      0|    return 0;
  775|      3|}
OSSL_PARAM_get_uint64:
  861|  4.60k|{
  862|  4.60k|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (862:9): [True: 0, False: 4.60k]
  |  Branch (862:24): [True: 0, False: 4.60k]
  ------------------
  863|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  864|      0|        return 0;
  865|      0|    }
  866|       |
  867|  4.60k|    if (p->data == NULL) {
  ------------------
  |  Branch (867:9): [True: 0, False: 4.60k]
  ------------------
  868|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  869|      0|        return 0;
  870|      0|    }
  871|       |
  872|  4.60k|    if (ossl_likely(p->data_type == OSSL_PARAM_UNSIGNED_INTEGER)) {
  ------------------
  |  |   22|  4.60k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 4.60k, False: 0]
  |  |  ------------------
  ------------------
  873|  4.60k|#ifndef OPENSSL_SMALL_FOOTPRINT
  874|  4.60k|        switch (p->data_size) {
  ------------------
  |  Branch (874:17): [True: 4.60k, False: 0]
  ------------------
  875|      0|        case sizeof(uint32_t):
  ------------------
  |  Branch (875:9): [True: 0, False: 4.60k]
  ------------------
  876|      0|            *val = *(const uint32_t *)p->data;
  877|      0|            return 1;
  878|  4.60k|        case sizeof(uint64_t):
  ------------------
  |  Branch (878:9): [True: 4.60k, False: 0]
  ------------------
  879|  4.60k|            *val = *(const uint64_t *)p->data;
  880|  4.60k|            return 1;
  881|  4.60k|        }
  882|      0|#endif
  883|      0|        return general_get_uint(p, val, sizeof(*val));
  884|  4.60k|    } else if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|      0|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (884:16): [True: 0, False: 0]
  ------------------
  885|      0|#ifndef OPENSSL_SMALL_FOOTPRINT
  886|      0|        int32_t i32;
  887|      0|        int64_t i64;
  888|       |
  889|      0|        switch (p->data_size) {
  ------------------
  |  Branch (889:17): [True: 0, False: 0]
  ------------------
  890|      0|        case sizeof(int32_t):
  ------------------
  |  Branch (890:9): [True: 0, False: 0]
  ------------------
  891|      0|            i32 = *(const int32_t *)p->data;
  892|      0|            if (i32 >= 0) {
  ------------------
  |  Branch (892:17): [True: 0, False: 0]
  ------------------
  893|      0|                *val = (uint64_t)i32;
  894|      0|                return 1;
  895|      0|            }
  896|      0|            err_unsigned_negative;
  ------------------
  |  |   23|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   24|      0|        CRYPTO_R_PARAM_UNSIGNED_INTEGER_NEGATIVE_VALUE_UNSUPPORTED)
  ------------------
  897|      0|            return 0;
  898|      0|        case sizeof(int64_t):
  ------------------
  |  Branch (898:9): [True: 0, False: 0]
  ------------------
  899|      0|            i64 = *(const int64_t *)p->data;
  900|      0|            if (i64 >= 0) {
  ------------------
  |  Branch (900:17): [True: 0, False: 0]
  ------------------
  901|      0|                *val = (uint64_t)i64;
  902|      0|                return 1;
  903|      0|            }
  904|      0|            err_unsigned_negative;
  ------------------
  |  |   23|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   24|      0|        CRYPTO_R_PARAM_UNSIGNED_INTEGER_NEGATIVE_VALUE_UNSUPPORTED)
  ------------------
  905|      0|            return 0;
  906|      0|        }
  907|      0|#endif
  908|      0|        return general_get_uint(p, val, sizeof(*val));
  909|      0|    } else if (p->data_type == OSSL_PARAM_REAL) {
  ------------------
  |  |  112|      0|#define OSSL_PARAM_REAL 3
  ------------------
  |  Branch (909:16): [True: 0, False: 0]
  ------------------
  910|      0|#ifndef OPENSSL_SYS_UEFI
  911|      0|        double d;
  912|       |
  913|      0|        switch (p->data_size) {
  ------------------
  |  Branch (913:17): [True: 0, False: 0]
  ------------------
  914|      0|        case sizeof(double):
  ------------------
  |  Branch (914:9): [True: 0, False: 0]
  ------------------
  915|      0|            d = *(const double *)p->data;
  916|      0|            if (d >= 0
  ------------------
  |  Branch (916:17): [True: 0, False: 0]
  ------------------
  917|       |                /*
  918|       |                 * By subtracting 65535 (2^16-1) we cancel the low order
  919|       |                 * 15 bits of UINT64_MAX to avoid using imprecise floating
  920|       |                 * point values.
  921|       |                 */
  922|      0|                && d < (double)(UINT64_MAX - 65535) + 65536.0
  ------------------
  |  Branch (922:20): [True: 0, False: 0]
  ------------------
  923|      0|                && d == (uint64_t)d) {
  ------------------
  |  Branch (923:20): [True: 0, False: 0]
  ------------------
  924|      0|                *val = (uint64_t)d;
  925|      0|                return 1;
  926|      0|            }
  927|      0|            err_inexact;
  ------------------
  |  |   29|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|        CRYPTO_R_PARAM_CANNOT_BE_REPRESENTED_EXACTLY)
  ------------------
  928|      0|            return 0;
  929|      0|        }
  930|      0|        err_unsupported_real;
  ------------------
  |  |   40|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_UNSUPPORTED_FLOATING_POINT_FORMAT)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  931|      0|        return 0;
  932|      0|#endif
  933|      0|    }
  934|      0|    err_bad_type;
  ------------------
  |  |   36|  4.60k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  935|      0|    return 0;
  936|  4.60k|}
OSSL_PARAM_set_uint64:
  939|  10.5k|{
  940|  10.5k|    if (p == NULL) {
  ------------------
  |  Branch (940:9): [True: 0, False: 10.5k]
  ------------------
  941|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  942|      0|        return 0;
  943|      0|    }
  944|  10.5k|    p->return_size = 0;
  945|       |
  946|  10.5k|    if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
  ------------------
  |  |  107|  10.5k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (946:9): [True: 9.71k, False: 876]
  ------------------
  947|  9.71k|#ifndef OPENSSL_SMALL_FOOTPRINT
  948|  9.71k|        if (p->data == NULL) {
  ------------------
  |  Branch (948:13): [True: 0, False: 9.71k]
  ------------------
  949|      0|            p->return_size = sizeof(uint64_t); /* Expected size */
  950|      0|            return 1;
  951|      0|        }
  952|  9.71k|        switch (p->data_size) {
  ------------------
  |  Branch (952:17): [True: 9.71k, False: 0]
  ------------------
  953|      0|        case sizeof(uint32_t):
  ------------------
  |  Branch (953:9): [True: 0, False: 9.71k]
  ------------------
  954|      0|            if (val <= UINT32_MAX) {
  ------------------
  |  Branch (954:17): [True: 0, False: 0]
  ------------------
  955|      0|                p->return_size = sizeof(uint32_t);
  956|      0|                *(uint32_t *)p->data = (uint32_t)val;
  957|      0|                return 1;
  958|      0|            }
  959|      0|            err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  960|      0|            return 0;
  961|  9.71k|        case sizeof(uint64_t):
  ------------------
  |  Branch (961:9): [True: 9.71k, False: 0]
  ------------------
  962|  9.71k|            p->return_size = sizeof(uint64_t);
  963|  9.71k|            *(uint64_t *)p->data = val;
  964|  9.71k|            return 1;
  965|  9.71k|        }
  966|      0|#endif
  967|      0|        return general_set_uint(p, &val, sizeof(val));
  968|  9.71k|    } else if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|    876|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (968:16): [True: 876, False: 0]
  ------------------
  969|    876|#ifndef OPENSSL_SMALL_FOOTPRINT
  970|    876|        if (p->data == NULL) {
  ------------------
  |  Branch (970:13): [True: 0, False: 876]
  ------------------
  971|      0|            p->return_size = sizeof(int64_t); /* Expected size */
  972|      0|            return 1;
  973|      0|        }
  974|    876|        switch (p->data_size) {
  ------------------
  |  Branch (974:17): [True: 876, False: 0]
  ------------------
  975|    876|        case sizeof(int32_t):
  ------------------
  |  Branch (975:9): [True: 876, False: 0]
  ------------------
  976|    876|            if (val <= INT32_MAX) {
  ------------------
  |  Branch (976:17): [True: 876, False: 0]
  ------------------
  977|    876|                p->return_size = sizeof(int32_t);
  978|    876|                *(int32_t *)p->data = (int32_t)val;
  979|    876|                return 1;
  980|    876|            }
  981|      0|            err_out_of_range;
  ------------------
  |  |   26|    876|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  982|      0|            return 0;
  983|      0|        case sizeof(int64_t):
  ------------------
  |  Branch (983:9): [True: 0, False: 876]
  ------------------
  984|      0|            if (val <= INT64_MAX) {
  ------------------
  |  Branch (984:17): [True: 0, False: 0]
  ------------------
  985|      0|                p->return_size = sizeof(int64_t);
  986|      0|                *(int64_t *)p->data = (int64_t)val;
  987|      0|                return 1;
  988|      0|            }
  989|      0|            err_out_of_range;
  ------------------
  |  |   26|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  990|      0|            return 0;
  991|    876|        }
  992|      0|#endif
  993|      0|        return general_set_uint(p, &val, sizeof(val));
  994|    876|    } else if (p->data_type == OSSL_PARAM_REAL) {
  ------------------
  |  |  112|      0|#define OSSL_PARAM_REAL 3
  ------------------
  |  Branch (994:16): [True: 0, False: 0]
  ------------------
  995|      0|#ifndef OPENSSL_SYS_UEFI
  996|      0|        switch (p->data_size) {
  ------------------
  |  Branch (996:17): [True: 0, False: 0]
  ------------------
  997|      0|        case sizeof(double):
  ------------------
  |  Branch (997:9): [True: 0, False: 0]
  ------------------
  998|      0|            if ((val >> real_shift()) == 0) {
  ------------------
  |  Branch (998:17): [True: 0, False: 0]
  ------------------
  999|      0|                p->return_size = sizeof(double);
 1000|      0|                *(double *)p->data = (double)val;
 1001|      0|                return 1;
 1002|      0|            }
 1003|      0|            err_inexact;
  ------------------
  |  |   29|      0|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|        CRYPTO_R_PARAM_CANNOT_BE_REPRESENTED_EXACTLY)
  ------------------
 1004|      0|            return 0;
 1005|      0|        }
 1006|      0|        err_unsupported_real;
  ------------------
  |  |   40|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_UNSUPPORTED_FLOATING_POINT_FORMAT)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1007|      0|        return 0;
 1008|      0|#endif
 1009|      0|    }
 1010|      0|    err_bad_type;
  ------------------
  |  |   36|  10.5k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1011|      0|    return 0;
 1012|  10.5k|}
OSSL_PARAM_construct_uint64:
 1015|  1.31k|{
 1016|  1.31k|    return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
  ------------------
  |  |  107|  1.31k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
 1017|  1.31k|        sizeof(uint64_t));
 1018|  1.31k|}
OSSL_PARAM_get_size_t:
 1021|  3.29k|{
 1022|  3.29k|#ifndef OPENSSL_SMALL_FOOTPRINT
 1023|  3.29k|    switch (sizeof(size_t)) {
  ------------------
  |  Branch (1023:13): [True: 3.29k, Folded]
  ------------------
 1024|      0|    case sizeof(uint32_t):
  ------------------
  |  Branch (1024:5): [True: 0, False: 3.29k]
  ------------------
 1025|      0|        return OSSL_PARAM_get_uint32(p, (uint32_t *)val);
 1026|  3.29k|    case sizeof(uint64_t):
  ------------------
  |  Branch (1026:5): [True: 3.29k, False: 0]
  ------------------
 1027|  3.29k|        return OSSL_PARAM_get_uint64(p, (uint64_t *)val);
 1028|  3.29k|    }
 1029|      0|#endif
 1030|      0|    return general_get_uint(p, val, sizeof(*val));
 1031|  3.29k|}
OSSL_PARAM_set_size_t:
 1034|  10.5k|{
 1035|  10.5k|#ifndef OPENSSL_SMALL_FOOTPRINT
 1036|  10.5k|    switch (sizeof(size_t)) {
  ------------------
  |  Branch (1036:13): [True: 10.5k, Folded]
  ------------------
 1037|      0|    case sizeof(uint32_t):
  ------------------
  |  Branch (1037:5): [True: 0, False: 10.5k]
  ------------------
 1038|      0|        return OSSL_PARAM_set_uint32(p, (uint32_t)val);
 1039|  10.5k|    case sizeof(uint64_t):
  ------------------
  |  Branch (1039:5): [True: 10.5k, False: 0]
  ------------------
 1040|  10.5k|        return OSSL_PARAM_set_uint64(p, (uint64_t)val);
 1041|  10.5k|    }
 1042|      0|#endif
 1043|      0|    return general_set_uint(p, &val, sizeof(val));
 1044|  10.5k|}
OSSL_PARAM_construct_size_t:
 1047|  13.0k|{
 1048|  13.0k|    return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
  ------------------
  |  |  107|  13.0k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
 1049|  13.0k|        sizeof(size_t));
 1050|  13.0k|}
OSSL_PARAM_get_time_t:
 1053|      3|{
 1054|      3|#ifndef OPENSSL_SMALL_FOOTPRINT
 1055|      3|    switch (sizeof(time_t)) {
  ------------------
  |  Branch (1055:13): [True: 3, Folded]
  ------------------
 1056|      0|    case sizeof(int32_t):
  ------------------
  |  Branch (1056:5): [True: 0, False: 3]
  ------------------
 1057|      0|        return OSSL_PARAM_get_int32(p, (int32_t *)val);
 1058|      3|    case sizeof(int64_t):
  ------------------
  |  Branch (1058:5): [True: 3, False: 0]
  ------------------
 1059|      3|        return OSSL_PARAM_get_int64(p, (int64_t *)val);
 1060|      3|    }
 1061|      0|#endif
 1062|      0|    return general_get_int(p, val, sizeof(*val));
 1063|      3|}
OSSL_PARAM_construct_time_t:
 1079|      3|{
 1080|      3|    return ossl_param_construct(key, OSSL_PARAM_INTEGER, buf, sizeof(time_t));
  ------------------
  |  |  106|      3|#define OSSL_PARAM_INTEGER 1
  ------------------
 1081|      3|}
OSSL_PARAM_get_utf8_string:
 1381|  63.9k|{
 1382|  63.9k|    int ret = get_string_internal(p, (void **)val, &max_len, NULL,
 1383|  63.9k|        OSSL_PARAM_UTF8_STRING);
  ------------------
  |  |  117|  63.9k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
 1384|       |
 1385|       |    /*
 1386|       |     * We try to ensure that the copied string is terminated with a
 1387|       |     * NUL byte.  That should be easy, just place a NUL byte at
 1388|       |     * |((char*)*val)[p->data_size]|.
 1389|       |     * Unfortunately, we have seen cases where |p->data_size| doesn't
 1390|       |     * correctly reflect the length of the string, and just happens
 1391|       |     * to be out of bounds according to |max_len|, so in that case, we
 1392|       |     * make the extra step of trying to find the true length of the
 1393|       |     * string that |p->data| points at, and use that as an index to
 1394|       |     * place the NUL byte in |*val|.
 1395|       |     */
 1396|  63.9k|    size_t data_length = p->data_size;
 1397|       |
 1398|  63.9k|    if (ret == 0)
  ------------------
  |  Branch (1398:9): [True: 0, False: 63.9k]
  ------------------
 1399|      0|        return 0;
 1400|  63.9k|    if (data_length >= max_len)
  ------------------
  |  Branch (1400:9): [True: 0, False: 63.9k]
  ------------------
 1401|      0|        data_length = OPENSSL_strnlen(p->data, data_length);
 1402|  63.9k|    if (data_length >= max_len) {
  ------------------
  |  Branch (1402:9): [True: 0, False: 63.9k]
  ------------------
 1403|      0|        ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_NO_SPACE_FOR_TERMINATING_NULL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1404|      0|        return 0; /* No space for a terminating NUL byte */
 1405|      0|    }
 1406|  63.9k|    (*val)[data_length] = '\0';
 1407|       |
 1408|  63.9k|    return ret;
 1409|  63.9k|}
OSSL_PARAM_get_octet_string:
 1413|    438|{
 1414|    438|    return get_string_internal(p, val, &max_len, used_len,
 1415|    438|        OSSL_PARAM_OCTET_STRING);
  ------------------
  |  |  123|    438|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
 1416|    438|}
OSSL_PARAM_set_octet_string:
 1452|    438|{
 1453|    438|    if (p == NULL || val == NULL) {
  ------------------
  |  Branch (1453:9): [True: 0, False: 438]
  |  Branch (1453:22): [True: 0, False: 438]
  ------------------
 1454|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1455|      0|        return 0;
 1456|      0|    }
 1457|    438|    p->return_size = 0;
 1458|    438|    return set_string_internal(p, val, len, OSSL_PARAM_OCTET_STRING);
  ------------------
  |  |  123|    438|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
 1459|    438|}
OSSL_PARAM_construct_utf8_string:
 1463|   160k|{
 1464|   160k|    if (buf != NULL && bsize == 0)
  ------------------
  |  Branch (1464:9): [True: 160k, False: 0]
  |  Branch (1464:24): [True: 160k, False: 0]
  ------------------
 1465|   160k|        bsize = strlen(buf);
 1466|   160k|    return ossl_param_construct(key, OSSL_PARAM_UTF8_STRING, buf, bsize);
  ------------------
  |  |  117|   160k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
 1467|   160k|}
OSSL_PARAM_construct_octet_string:
 1471|  64.8k|{
 1472|  64.8k|    return ossl_param_construct(key, OSSL_PARAM_OCTET_STRING, buf, bsize);
  ------------------
  |  |  123|  64.8k|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
 1473|  64.8k|}
OSSL_PARAM_construct_end:
 1665|   105k|{
 1666|   105k|    OSSL_PARAM end = OSSL_PARAM_END;
  ------------------
  |  |   25|   105k|    { NULL, 0, NULL, 0, 0 }
  ------------------
 1667|       |
 1668|   105k|    return end;
 1669|   105k|}
OSSL_PARAM_get_utf8_string_ptr:
 1694|  95.9k|{
 1695|  95.9k|    return get_string_ptr_internal(p, (const void **)val, NULL,
 1696|  95.9k|        OSSL_PARAM_UTF8_PTR,
  ------------------
  |  |  141|  95.9k|#define OSSL_PARAM_UTF8_PTR 6
  ------------------
 1697|  95.9k|        OSSL_PARAM_UTF8_STRING);
  ------------------
  |  |  117|  95.9k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
 1698|  95.9k|}
params.c:ossl_param_construct:
   70|   451k|{
   71|   451k|    OSSL_PARAM res;
   72|       |
   73|   451k|    res.key = key;
   74|   451k|    res.data_type = data_type;
   75|   451k|    res.data = data;
   76|   451k|    res.data_size = data_size;
   77|   451k|    res.return_size = OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|   451k|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
   78|   451k|    return res;
   79|   451k|}
params.c:get_string_internal:
 1333|  64.3k|{
 1334|  64.3k|    size_t sz, alloc_sz;
 1335|       |
 1336|  64.3k|    if ((val == NULL && used_len == NULL) || p == NULL) {
  ------------------
  |  Branch (1336:10): [True: 0, False: 64.3k]
  |  Branch (1336:25): [True: 0, False: 0]
  |  Branch (1336:46): [True: 0, False: 64.3k]
  ------------------
 1337|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1338|      0|        return 0;
 1339|      0|    }
 1340|  64.3k|    if (p->data_type != type) {
  ------------------
  |  Branch (1340:9): [True: 0, False: 64.3k]
  ------------------
 1341|      0|        err_bad_type;
  ------------------
  |  |   36|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1342|      0|        return 0;
 1343|      0|    }
 1344|       |
 1345|  64.3k|    sz = p->data_size;
 1346|       |    /*
 1347|       |     * If the input size is 0, or the input string needs NUL byte
 1348|       |     * termination, allocate an extra byte.
 1349|       |     */
 1350|  64.3k|    alloc_sz = sz + (type == OSSL_PARAM_UTF8_STRING || sz == 0);
  ------------------
  |  |  117|   128k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1350:22): [True: 63.9k, False: 438]
  |  Branch (1350:56): [True: 0, False: 438]
  ------------------
 1351|       |
 1352|  64.3k|    if (used_len != NULL)
  ------------------
  |  Branch (1352:9): [True: 438, False: 63.9k]
  ------------------
 1353|    438|        *used_len = sz;
 1354|       |
 1355|  64.3k|    if (p->data == NULL) {
  ------------------
  |  Branch (1355:9): [True: 0, False: 64.3k]
  ------------------
 1356|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1357|      0|        return 0;
 1358|      0|    }
 1359|       |
 1360|  64.3k|    if (val == NULL)
  ------------------
  |  Branch (1360:9): [True: 0, False: 64.3k]
  ------------------
 1361|      0|        return 1;
 1362|       |
 1363|  64.3k|    if (*val == NULL) {
  ------------------
  |  Branch (1363:9): [True: 63.9k, False: 445]
  ------------------
 1364|  63.9k|        char *const q = OPENSSL_malloc(alloc_sz);
  ------------------
  |  |  106|  63.9k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1365|       |
 1366|  63.9k|        if (q == NULL)
  ------------------
  |  Branch (1366:13): [True: 0, False: 63.9k]
  ------------------
 1367|      0|            return 0;
 1368|  63.9k|        *val = q;
 1369|  63.9k|        *max_len = alloc_sz;
 1370|  63.9k|    }
 1371|       |
 1372|  64.3k|    if (*max_len < sz) {
  ------------------
  |  Branch (1372:9): [True: 0, False: 64.3k]
  ------------------
 1373|      0|        err_too_small;
  ------------------
  |  |   34|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_SMALL_BUFFER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1374|      0|        return 0;
 1375|      0|    }
 1376|  64.3k|    memcpy(*val, p->data, sz);
 1377|  64.3k|    return 1;
 1378|  64.3k|}
params.c:set_string_internal:
 1420|    438|{
 1421|    438|    if (p->data_type != type) {
  ------------------
  |  Branch (1421:9): [True: 0, False: 438]
  ------------------
 1422|      0|        err_bad_type;
  ------------------
  |  |   36|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1423|      0|        return 0;
 1424|      0|    }
 1425|    438|    p->return_size = len;
 1426|    438|    if (p->data == NULL)
  ------------------
  |  Branch (1426:9): [True: 219, False: 219]
  ------------------
 1427|    219|        return 1;
 1428|    219|    if (p->data_size < len) {
  ------------------
  |  Branch (1428:9): [True: 0, False: 219]
  ------------------
 1429|      0|        err_too_small;
  ------------------
  |  |   34|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_SMALL_BUFFER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1430|      0|        return 0;
 1431|      0|    }
 1432|       |
 1433|    219|    memcpy(p->data, val, len);
 1434|       |    /* If possible within the size of p->data, add a NUL terminator byte */
 1435|    219|    if (type == OSSL_PARAM_UTF8_STRING && p->data_size > len)
  ------------------
  |  |  117|    438|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1435:9): [True: 0, False: 219]
  |  Branch (1435:43): [True: 0, False: 0]
  ------------------
 1436|      0|        ((char *)p->data)[len] = '\0';
 1437|    219|    return 1;
 1438|    219|}
params.c:get_string_ptr_internal:
 1674|  95.9k|{
 1675|  95.9k|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (1675:9): [True: 0, False: 95.9k]
  |  Branch (1675:24): [True: 0, False: 95.9k]
  ------------------
 1676|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1677|      0|        return 0;
 1678|      0|    }
 1679|       |
 1680|  95.9k|    if (p->data_type == ref_type)
  ------------------
  |  Branch (1680:9): [True: 0, False: 95.9k]
  ------------------
 1681|      0|        return get_ptr_internal_skip_checks(p, (const void **)val, used_len);
 1682|       |
 1683|  95.9k|    if (p->data_type != type) {
  ------------------
  |  Branch (1683:9): [True: 0, False: 95.9k]
  ------------------
 1684|      0|        err_bad_type;
  ------------------
  |  |   36|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  408|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1685|      0|        return 0;
 1686|      0|    }
 1687|  95.9k|    if (used_len != NULL)
  ------------------
  |  Branch (1687:9): [True: 0, False: 95.9k]
  ------------------
 1688|      0|        *used_len = p->data_size;
 1689|  95.9k|    *val = p->data;
 1690|  95.9k|    return 1;
 1691|  95.9k|}

ossl_param_bytes_to_blocks:
   31|    876|{
   32|    876|    return (bytes + OSSL_PARAM_ALIGN_SIZE - 1) / OSSL_PARAM_ALIGN_SIZE;
  ------------------
  |  |   22|    876|#define OSSL_PARAM_ALIGN_SIZE sizeof(OSSL_PARAM_ALIGNED_BLOCK)
  ------------------
                  return (bytes + OSSL_PARAM_ALIGN_SIZE - 1) / OSSL_PARAM_ALIGN_SIZE;
  ------------------
  |  |   22|    876|#define OSSL_PARAM_ALIGN_SIZE sizeof(OSSL_PARAM_ALIGNED_BLOCK)
  ------------------
   33|    876|}
ossl_param_set_secure_block:
   56|    438|{
   57|    438|    last->key = NULL;
   58|    438|    last->data_size = secure_buffer_sz;
   59|    438|    last->data = secure_buffer;
   60|    438|    last->data_type = OSSL_PARAM_ALLOCATED_END;
  ------------------
  |  |   16|    438|#define OSSL_PARAM_ALLOCATED_END 127
  ------------------
   61|    438|}
OSSL_PARAM_free:
  233|    438|{
  234|    438|    if (params != NULL) {
  ------------------
  |  Branch (234:9): [True: 438, False: 0]
  ------------------
  235|    438|        OSSL_PARAM *p;
  236|       |
  237|    876|        for (p = params; p->key != NULL; p++)
  ------------------
  |  Branch (237:26): [True: 438, False: 438]
  ------------------
  238|    438|            ;
  239|    438|        if (p->data_type == OSSL_PARAM_ALLOCATED_END)
  ------------------
  |  |   16|    438|#define OSSL_PARAM_ALLOCATED_END 127
  ------------------
  |  Branch (239:13): [True: 438, False: 0]
  ------------------
  240|    438|            OPENSSL_secure_clear_free(p->data, p->data_size);
  ------------------
  |  |  149|    438|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  241|    438|        OPENSSL_free(params);
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  242|    438|    }
  243|    438|}

ossl_pw_clear_passphrase_data:
   17|  31.9k|{
   18|  31.9k|    if (data != NULL) {
  ------------------
  |  Branch (18:9): [True: 31.9k, False: 0]
  ------------------
   19|  31.9k|        if (data->type == is_expl_passphrase)
  ------------------
  |  Branch (19:13): [True: 0, False: 31.9k]
  ------------------
   20|      0|            OPENSSL_clear_free(data->_.expl_passphrase.passphrase_copy,
  ------------------
  |  |  129|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   21|  31.9k|                data->_.expl_passphrase.passphrase_len);
   22|  31.9k|        ossl_pw_clear_passphrase_cache(data);
   23|  31.9k|        memset(data, 0, sizeof(*data));
   24|  31.9k|    }
   25|  31.9k|}
ossl_pw_clear_passphrase_cache:
   28|  63.9k|{
   29|  63.9k|    OPENSSL_clear_free(data->cached_passphrase, data->cached_passphrase_len);
  ------------------
  |  |  129|  63.9k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   30|       |    data->cached_passphrase = NULL;
   31|  63.9k|}
ossl_pw_enable_passphrase_caching:
   94|  31.9k|{
   95|  31.9k|    data->flag_cache_passphrase = 1;
   96|  31.9k|    return 1;
   97|  31.9k|}

ossl_err_load_PEM_strings:
   70|      2|{
   71|      2|#ifndef OPENSSL_NO_ERR
   72|      2|    if (ERR_reason_error_string(PEM_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (72:9): [True: 2, False: 0]
  ------------------
   73|      2|        ERR_load_strings_const(PEM_str_reasons);
   74|      2|#endif
   75|      2|    return 1;
   76|      2|}

PEM_X509_INFO_read_bio_ex:
   56|    219|{
   57|    219|    X509_INFO *xi = NULL;
   58|    219|    char *name = NULL, *header = NULL, *str;
   59|    219|    void *pp;
   60|    219|    unsigned char *data = NULL;
   61|    219|    const unsigned char *p;
   62|    219|    long len, error = 0;
   63|    219|    int ok = 0;
   64|    219|    STACK_OF(X509_INFO) *ret = NULL;
  ------------------
  |  |   33|    219|#define STACK_OF(type) struct stack_st_##type
  ------------------
   65|    219|    unsigned int i, raw, ptype;
   66|    219|    d2i_of_void *d2i = 0;
   67|       |
   68|    219|    if (sk == NULL) {
  ------------------
  |  Branch (68:9): [True: 219, False: 0]
  ------------------
   69|    219|        if ((ret = sk_X509_INFO_new_null()) == NULL) {
  ------------------
  |  |  400|    219|#define sk_X509_INFO_new_null() ((STACK_OF(X509_INFO) *)OPENSSL_sk_new_null())
  ------------------
  |  Branch (69:13): [True: 0, False: 219]
  ------------------
   70|      0|            ERR_raise(ERR_LIB_PEM, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   71|      0|            goto err;
   72|      0|        }
   73|    219|    } else
   74|      0|        ret = sk;
   75|       |
   76|    219|    if ((xi = X509_INFO_new()) == NULL)
  ------------------
  |  Branch (76:9): [True: 0, False: 219]
  ------------------
   77|      0|        goto err;
   78|  32.1k|    for (;;) {
   79|  32.1k|        raw = 0;
   80|  32.1k|        ptype = 0;
   81|  32.1k|        ERR_set_mark();
   82|  32.1k|        i = PEM_read_bio(bp, &name, &header, &data, &len);
   83|  32.1k|        if (i == 0) {
  ------------------
  |  Branch (83:13): [True: 219, False: 31.9k]
  ------------------
   84|    219|            error = ERR_GET_REASON(ERR_peek_last_error());
   85|    219|            if (error == PEM_R_NO_START_LINE) {
  ------------------
  |  |   44|    219|#define PEM_R_NO_START_LINE 108
  ------------------
  |  Branch (85:17): [True: 219, False: 0]
  ------------------
   86|    219|                ERR_pop_to_mark();
   87|    219|                break;
   88|    219|            }
   89|      0|            ERR_clear_last_mark();
   90|      0|            goto err;
   91|    219|        }
   92|  31.9k|        ERR_clear_last_mark();
   93|  63.7k|    start:
   94|  63.7k|        if (strcmp(name, PEM_STRING_X509) == 0
  ------------------
  |  |   36|  63.7k|#define PEM_STRING_X509 "CERTIFICATE"
  ------------------
  |  Branch (94:13): [True: 63.7k, False: 0]
  ------------------
   95|      0|            || strcmp(name, PEM_STRING_X509_OLD) == 0
  ------------------
  |  |   35|      0|#define PEM_STRING_X509_OLD "X509 CERTIFICATE"
  ------------------
  |  Branch (95:16): [True: 0, False: 0]
  ------------------
   96|  63.7k|            || strcmp(name, PEM_STRING_X509_TRUSTED) == 0) {
  ------------------
  |  |   37|      0|#define PEM_STRING_X509_TRUSTED "TRUSTED CERTIFICATE"
  ------------------
  |  Branch (96:16): [True: 0, False: 0]
  ------------------
   97|  63.7k|            if (xi->x509 != NULL) {
  ------------------
  |  Branch (97:17): [True: 31.7k, False: 31.9k]
  ------------------
   98|  31.7k|                if (!sk_X509_INFO_push(ret, xi))
  ------------------
  |  |  407|  31.7k|#define sk_X509_INFO_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_INFO_sk_type(sk), ossl_check_X509_INFO_type(ptr))
  ------------------
  |  Branch (98:21): [True: 0, False: 31.7k]
  ------------------
   99|      0|                    goto err;
  100|  31.7k|                if ((xi = X509_INFO_new()) == NULL)
  ------------------
  |  Branch (100:21): [True: 0, False: 31.7k]
  ------------------
  101|      0|                    goto err;
  102|  31.7k|                goto start;
  103|  31.7k|            }
  104|  31.9k|            if ((strcmp(name, PEM_STRING_X509_TRUSTED) == 0))
  ------------------
  |  |   37|  31.9k|#define PEM_STRING_X509_TRUSTED "TRUSTED CERTIFICATE"
  ------------------
  |  Branch (104:17): [True: 0, False: 31.9k]
  ------------------
  105|      0|                d2i = (D2I_OF(void))d2i_X509_AUX;
  106|  31.9k|            else
  107|  31.9k|                d2i = (D2I_OF(void))d2i_X509;
  108|  31.9k|            xi->x509 = X509_new_ex(libctx, propq);
  109|  31.9k|            if (xi->x509 == NULL)
  ------------------
  |  Branch (109:17): [True: 0, False: 31.9k]
  ------------------
  110|      0|                goto err;
  111|  31.9k|            pp = &(xi->x509);
  112|  31.9k|        } else if (strcmp(name, PEM_STRING_X509_CRL) == 0) {
  ------------------
  |  |   40|      0|#define PEM_STRING_X509_CRL "X509 CRL"
  ------------------
  |  Branch (112:20): [True: 0, False: 0]
  ------------------
  113|      0|            d2i = (D2I_OF(void))d2i_X509_CRL;
  114|      0|            if (xi->crl != NULL) {
  ------------------
  |  Branch (114:17): [True: 0, False: 0]
  ------------------
  115|      0|                if (!sk_X509_INFO_push(ret, xi))
  ------------------
  |  |  407|      0|#define sk_X509_INFO_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_INFO_sk_type(sk), ossl_check_X509_INFO_type(ptr))
  ------------------
  |  Branch (115:21): [True: 0, False: 0]
  ------------------
  116|      0|                    goto err;
  117|      0|                if ((xi = X509_INFO_new()) == NULL)
  ------------------
  |  Branch (117:21): [True: 0, False: 0]
  ------------------
  118|      0|                    goto err;
  119|      0|                goto start;
  120|      0|            }
  121|      0|            pp = &(xi->crl);
  122|      0|        } else if ((str = strstr(name, PEM_STRING_PKCS8INF)) != NULL) {
  ------------------
  |  |   50|      0|#define PEM_STRING_PKCS8INF "PRIVATE KEY"
  ------------------
  |  Branch (122:20): [True: 0, False: 0]
  ------------------
  123|      0|            if (xi->x_pkey != NULL) {
  ------------------
  |  Branch (123:17): [True: 0, False: 0]
  ------------------
  124|      0|                if (!sk_X509_INFO_push(ret, xi))
  ------------------
  |  |  407|      0|#define sk_X509_INFO_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_INFO_sk_type(sk), ossl_check_X509_INFO_type(ptr))
  ------------------
  |  Branch (124:21): [True: 0, False: 0]
  ------------------
  125|      0|                    goto err;
  126|      0|                if ((xi = X509_INFO_new()) == NULL)
  ------------------
  |  Branch (126:21): [True: 0, False: 0]
  ------------------
  127|      0|                    goto err;
  128|      0|                goto start;
  129|      0|            }
  130|      0|            if (str == name || strcmp(name, PEM_STRING_PKCS8) == 0) {
  ------------------
  |  |   49|      0|#define PEM_STRING_PKCS8 "ENCRYPTED PRIVATE KEY"
  ------------------
  |  Branch (130:17): [True: 0, False: 0]
  |  Branch (130:32): [True: 0, False: 0]
  ------------------
  131|      0|                ptype = EVP_PKEY_NONE;
  ------------------
  |  |   62|      0|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|      0|#define NID_undef                       0
  |  |  ------------------
  ------------------
  132|      0|            } else {
  133|       |                /* chop " PRIVATE KEY" */
  134|      0|                *--str = '\0';
  135|      0|                ptype = evp_pkey_name2type(name);
  136|      0|            }
  137|      0|            xi->enc_data = NULL;
  138|      0|            xi->enc_len = 0;
  139|       |
  140|      0|            d2i = (D2I_OF(void))d2i_AutoPrivateKey;
  141|      0|            xi->x_pkey = X509_PKEY_new();
  142|      0|            if (xi->x_pkey == NULL)
  ------------------
  |  Branch (142:17): [True: 0, False: 0]
  ------------------
  143|      0|                goto err;
  144|      0|            pp = &xi->x_pkey->dec_pkey;
  145|      0|            if ((int)strlen(header) > 10 /* assume encrypted */
  ------------------
  |  Branch (145:17): [True: 0, False: 0]
  ------------------
  146|      0|                || strcmp(name, PEM_STRING_PKCS8) == 0)
  ------------------
  |  |   49|      0|#define PEM_STRING_PKCS8 "ENCRYPTED PRIVATE KEY"
  ------------------
  |  Branch (146:20): [True: 0, False: 0]
  ------------------
  147|      0|                raw = 1;
  148|      0|        } else { /* unknown */
  149|      0|            d2i = NULL;
  150|      0|            pp = NULL;
  151|      0|        }
  152|       |
  153|  31.9k|        if (d2i != NULL) {
  ------------------
  |  Branch (153:13): [True: 31.9k, False: 0]
  ------------------
  154|  31.9k|            if (!raw) {
  ------------------
  |  Branch (154:17): [True: 31.9k, False: 0]
  ------------------
  155|  31.9k|                EVP_CIPHER_INFO cipher;
  156|       |
  157|  31.9k|                if (!PEM_get_EVP_CIPHER_INFO(header, &cipher))
  ------------------
  |  Branch (157:21): [True: 0, False: 31.9k]
  ------------------
  158|      0|                    goto err;
  159|  31.9k|                if (!PEM_do_header(&cipher, data, &len, cb, u))
  ------------------
  |  Branch (159:21): [True: 0, False: 31.9k]
  ------------------
  160|      0|                    goto err;
  161|  31.9k|                p = data;
  162|  31.9k|                if (ptype) {
  ------------------
  |  Branch (162:21): [True: 0, False: 31.9k]
  ------------------
  163|      0|                    if (d2i_PrivateKey_ex(ptype, pp, &p, len,
  ------------------
  |  Branch (163:25): [True: 0, False: 0]
  ------------------
  164|      0|                            libctx, propq)
  165|      0|                        == NULL) {
  166|      0|                        ERR_raise(ERR_LIB_PEM, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  167|      0|                        goto err;
  168|      0|                    }
  169|  31.9k|                } else if (d2i(pp, &p, len) == NULL) {
  ------------------
  |  Branch (169:28): [True: 0, False: 31.9k]
  ------------------
  170|      0|                    ERR_raise(ERR_LIB_PEM, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  171|      0|                    goto err;
  172|      0|                }
  173|  31.9k|            } else { /* encrypted key data */
  174|      0|                if (!PEM_get_EVP_CIPHER_INFO(header, &xi->enc_cipher))
  ------------------
  |  Branch (174:21): [True: 0, False: 0]
  ------------------
  175|      0|                    goto err;
  176|      0|                xi->enc_data = (char *)data;
  177|      0|                xi->enc_len = (int)len;
  178|      0|                data = NULL;
  179|      0|            }
  180|  31.9k|        }
  181|  31.9k|        OPENSSL_free(name);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  182|  31.9k|        name = NULL;
  183|  31.9k|        OPENSSL_free(header);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  184|  31.9k|        header = NULL;
  185|  31.9k|        OPENSSL_free(data);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  186|  31.9k|        data = NULL;
  187|  31.9k|    }
  188|       |
  189|       |    /*
  190|       |     * if the last one hasn't been pushed yet and there is anything in it
  191|       |     * then add it to the stack ...
  192|       |     */
  193|    219|    if ((xi->x509 != NULL) || (xi->crl != NULL) || (xi->x_pkey != NULL) || (xi->enc_data != NULL)) {
  ------------------
  |  Branch (193:9): [True: 219, False: 0]
  |  Branch (193:31): [True: 0, False: 0]
  |  Branch (193:52): [True: 0, False: 0]
  |  Branch (193:76): [True: 0, False: 0]
  ------------------
  194|    219|        if (!sk_X509_INFO_push(ret, xi))
  ------------------
  |  |  407|    219|#define sk_X509_INFO_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_INFO_sk_type(sk), ossl_check_X509_INFO_type(ptr))
  ------------------
  |  Branch (194:13): [True: 0, False: 219]
  ------------------
  195|      0|            goto err;
  196|    219|        xi = NULL;
  197|    219|    }
  198|    219|    ok = 1;
  199|    219|err:
  200|    219|    X509_INFO_free(xi);
  201|    219|    if (!ok) {
  ------------------
  |  Branch (201:9): [True: 0, False: 219]
  ------------------
  202|      0|        for (i = 0; ((int)i) < sk_X509_INFO_num(ret); i++) {
  ------------------
  |  |  397|      0|#define sk_X509_INFO_num(sk) OPENSSL_sk_num(ossl_check_const_X509_INFO_sk_type(sk))
  ------------------
  |  Branch (202:21): [True: 0, False: 0]
  ------------------
  203|      0|            xi = sk_X509_INFO_value(ret, i);
  ------------------
  |  |  398|      0|#define sk_X509_INFO_value(sk, idx) ((X509_INFO *)OPENSSL_sk_value(ossl_check_const_X509_INFO_sk_type(sk), (idx)))
  ------------------
  204|      0|            X509_INFO_free(xi);
  205|      0|        }
  206|      0|        if (ret != sk)
  ------------------
  |  Branch (206:13): [True: 0, False: 0]
  ------------------
  207|      0|            sk_X509_INFO_free(ret);
  ------------------
  |  |  403|      0|#define sk_X509_INFO_free(sk) OPENSSL_sk_free(ossl_check_X509_INFO_sk_type(sk))
  ------------------
  208|      0|        ret = NULL;
  209|      0|    }
  210|       |
  211|    219|    OPENSSL_free(name);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  212|    219|    OPENSSL_free(header);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  213|    219|    OPENSSL_free(data);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  214|    219|    return ret;
  215|    219|}

PEM_do_header:
  447|  31.9k|{
  448|  31.9k|    int ok;
  449|  31.9k|    int keylen;
  450|  31.9k|    long len = *plen;
  451|  31.9k|    int ilen = (int)len; /* EVP_DecryptUpdate etc. take int lengths */
  452|  31.9k|    EVP_CIPHER_CTX *ctx;
  453|  31.9k|    unsigned char key[EVP_MAX_KEY_LENGTH];
  454|  31.9k|    char buf[PEM_BUFSIZE];
  455|       |
  456|  31.9k|#if LONG_MAX > INT_MAX
  457|       |    /* Check that we did not truncate the length */
  458|  31.9k|    if (len > INT_MAX) {
  ------------------
  |  Branch (458:9): [True: 0, False: 31.9k]
  ------------------
  459|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_HEADER_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  460|      0|        return 0;
  461|      0|    }
  462|  31.9k|#endif
  463|       |
  464|  31.9k|    if (cipher->cipher == NULL)
  ------------------
  |  Branch (464:9): [True: 31.9k, False: 0]
  ------------------
  465|  31.9k|        return 1;
  466|      0|    if (callback == NULL)
  ------------------
  |  Branch (466:9): [True: 0, False: 0]
  ------------------
  467|      0|        keylen = PEM_def_callback(buf, PEM_BUFSIZE, 0, u);
  ------------------
  |  |   33|      0|#define PEM_BUFSIZE 1024
  ------------------
  468|      0|    else
  469|      0|        keylen = callback(buf, PEM_BUFSIZE, 0, u);
  ------------------
  |  |   33|      0|#define PEM_BUFSIZE 1024
  ------------------
  470|      0|    if (keylen < 0) {
  ------------------
  |  Branch (470:9): [True: 0, False: 0]
  ------------------
  471|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_BAD_PASSWORD_READ);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  472|      0|        return 0;
  473|      0|    }
  474|       |#ifdef CHARSET_EBCDIC
  475|       |    /* Convert the pass phrase from EBCDIC */
  476|       |    ebcdic2ascii(buf, buf, keylen);
  477|       |#endif
  478|       |
  479|      0|    if (!EVP_BytesToKey(cipher->cipher, EVP_md5(), &(cipher->iv[0]),
  ------------------
  |  Branch (479:9): [True: 0, False: 0]
  ------------------
  480|      0|            (unsigned char *)buf, keylen, 1, key, NULL))
  481|      0|        return 0;
  482|       |
  483|      0|    ctx = EVP_CIPHER_CTX_new();
  484|      0|    if (ctx == NULL)
  ------------------
  |  Branch (484:9): [True: 0, False: 0]
  ------------------
  485|      0|        return 0;
  486|       |
  487|      0|    ok = EVP_DecryptInit_ex(ctx, cipher->cipher, NULL, key, &(cipher->iv[0]));
  488|      0|    if (ok)
  ------------------
  |  Branch (488:9): [True: 0, False: 0]
  ------------------
  489|      0|        ok = EVP_DecryptUpdate(ctx, data, &ilen, data, ilen);
  490|      0|    if (ok) {
  ------------------
  |  Branch (490:9): [True: 0, False: 0]
  ------------------
  491|       |        /* Squirrel away the length of data decrypted so far. */
  492|      0|        *plen = ilen;
  493|      0|        ok = EVP_DecryptFinal_ex(ctx, &(data[ilen]), &ilen);
  494|      0|    }
  495|      0|    if (ok)
  ------------------
  |  Branch (495:9): [True: 0, False: 0]
  ------------------
  496|      0|        *plen += ilen;
  497|      0|    else
  498|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_BAD_DECRYPT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  499|       |
  500|      0|    EVP_CIPHER_CTX_free(ctx);
  501|      0|    OPENSSL_cleanse((char *)buf, sizeof(buf));
  502|      0|    OPENSSL_cleanse((char *)key, sizeof(key));
  503|      0|    return ok;
  504|      0|}
PEM_get_EVP_CIPHER_INFO:
  522|  31.9k|{
  523|  31.9k|    const EVP_CIPHER *enc = NULL;
  524|  31.9k|    int ivlen;
  525|  31.9k|    char *dekinfostart, c;
  526|       |
  527|  31.9k|    cipher->cipher = NULL;
  528|  31.9k|    memset(cipher->iv, 0, sizeof(cipher->iv));
  529|  31.9k|    if ((header == NULL) || (*header == '\0') || (*header == '\n'))
  ------------------
  |  Branch (529:9): [True: 0, False: 31.9k]
  |  Branch (529:29): [True: 31.9k, False: 0]
  |  Branch (529:50): [True: 0, False: 0]
  ------------------
  530|  31.9k|        return 1;
  531|       |
  532|      0|    if (!CHECK_AND_SKIP_PREFIX(header, PROC_TYPE)) {
  ------------------
  |  |   61|      0|    (HAS_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
  |  |  ------------------
  |  |  |  |   58|      0|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (58:30): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (532:9): [True: 0, False: 0]
  ------------------
  533|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_NOT_PROC_TYPE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  534|      0|        return 0;
  535|      0|    }
  536|      0|    header += strspn(header, " \t");
  537|       |
  538|      0|    if (*header++ != '4' || *header++ != ',')
  ------------------
  |  Branch (538:9): [True: 0, False: 0]
  |  Branch (538:29): [True: 0, False: 0]
  ------------------
  539|      0|        return 0;
  540|      0|    header += strspn(header, " \t");
  541|       |
  542|       |    /* We expect "ENCRYPTED" followed by optional white-space + line break */
  543|      0|    if (!CHECK_AND_SKIP_PREFIX(header, ENCRYPTED) || strspn(header, " \t\r\n") == 0) {
  ------------------
  |  |   61|      0|    (HAS_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
  |  |  ------------------
  |  |  |  |   58|      0|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (58:30): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (543:9): [True: 0, False: 0]
  |  Branch (543:54): [True: 0, False: 0]
  ------------------
  544|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_NOT_ENCRYPTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  545|      0|        return 0;
  546|      0|    }
  547|      0|    header += strspn(header, " \t\r");
  548|      0|    if (*header++ != '\n') {
  ------------------
  |  Branch (548:9): [True: 0, False: 0]
  ------------------
  549|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_SHORT_HEADER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  550|      0|        return 0;
  551|      0|    }
  552|       |
  553|       |    /*-
  554|       |     * https://tools.ietf.org/html/rfc1421#section-4.6.1.3
  555|       |     * We expect "DEK-Info: algo[,hex-parameters]"
  556|       |     */
  557|      0|    if (!CHECK_AND_SKIP_PREFIX(header, DEK_INFO)) {
  ------------------
  |  |   61|      0|    (HAS_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
  |  |  ------------------
  |  |  |  |   58|      0|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (58:30): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (557:9): [True: 0, False: 0]
  ------------------
  558|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_NOT_DEK_INFO);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  559|      0|        return 0;
  560|      0|    }
  561|      0|    header += strspn(header, " \t");
  562|       |
  563|       |    /*
  564|       |     * DEK-INFO is a comma-separated combination of algorithm name and optional
  565|       |     * parameters.
  566|       |     */
  567|      0|    dekinfostart = header;
  568|      0|    header += strcspn(header, " \t,");
  569|      0|    c = *header;
  570|      0|    *header = '\0';
  571|      0|    cipher->cipher = enc = EVP_get_cipherbyname(dekinfostart);
  572|      0|    *header = c;
  573|      0|    header += strspn(header, " \t");
  574|       |
  575|      0|    if (enc == NULL) {
  ------------------
  |  Branch (575:9): [True: 0, False: 0]
  ------------------
  576|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_UNSUPPORTED_ENCRYPTION);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  577|      0|        return 0;
  578|      0|    }
  579|      0|    ivlen = EVP_CIPHER_get_iv_length(enc);
  580|      0|    if (ivlen > 0 && *header++ != ',') {
  ------------------
  |  Branch (580:9): [True: 0, False: 0]
  |  Branch (580:22): [True: 0, False: 0]
  ------------------
  581|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_MISSING_DEK_IV);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  582|      0|        return 0;
  583|      0|    } else if (ivlen == 0 && *header == ',') {
  ------------------
  |  Branch (583:16): [True: 0, False: 0]
  |  Branch (583:30): [True: 0, False: 0]
  ------------------
  584|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_UNEXPECTED_DEK_IV);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  585|      0|        return 0;
  586|      0|    }
  587|       |
  588|      0|    if (!load_iv(&header, cipher->iv, EVP_CIPHER_get_iv_length(enc)))
  ------------------
  |  Branch (588:9): [True: 0, False: 0]
  ------------------
  589|      0|        return 0;
  590|       |
  591|      0|    return 1;
  592|      0|}
PEM_read_bio_ex:
  946|  32.1k|{
  947|  32.1k|    EVP_ENCODE_CTX *ctx = NULL;
  948|  32.1k|    const BIO_METHOD *bmeth;
  949|  32.1k|    BIO *headerB = NULL, *dataB = NULL;
  950|  32.1k|    char *name = NULL;
  951|  32.1k|    int len, taillen, headerlen, ret = 0;
  952|  32.1k|    BUF_MEM *buf_mem;
  953|       |
  954|  32.1k|    *len_out = 0;
  955|  32.1k|    *name_out = *header = NULL;
  956|  32.1k|    *data = NULL;
  957|  32.1k|    if ((flags & PEM_FLAG_EAY_COMPATIBLE) && (flags & PEM_FLAG_ONLY_B64)) {
  ------------------
  |  |  382|  32.1k|#define PEM_FLAG_EAY_COMPATIBLE 0x2
  ------------------
                  if ((flags & PEM_FLAG_EAY_COMPATIBLE) && (flags & PEM_FLAG_ONLY_B64)) {
  ------------------
  |  |  383|  32.1k|#define PEM_FLAG_ONLY_B64 0x4
  ------------------
  |  Branch (957:9): [True: 32.1k, False: 0]
  |  Branch (957:46): [True: 0, False: 32.1k]
  ------------------
  958|       |        /* These two are mutually incompatible; bail out. */
  959|      0|        ERR_raise(ERR_LIB_PEM, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  960|      0|        goto end;
  961|      0|    }
  962|  32.1k|    bmeth = (flags & PEM_FLAG_SECURE) ? BIO_s_secmem() : BIO_s_mem();
  ------------------
  |  |  381|  32.1k|#define PEM_FLAG_SECURE 0x1
  ------------------
  |  Branch (962:13): [True: 0, False: 32.1k]
  ------------------
  963|       |
  964|  32.1k|    headerB = BIO_new(bmeth);
  965|  32.1k|    dataB = BIO_new(bmeth);
  966|  32.1k|    if (headerB == NULL || dataB == NULL) {
  ------------------
  |  Branch (966:9): [True: 0, False: 32.1k]
  |  Branch (966:28): [True: 0, False: 32.1k]
  ------------------
  967|      0|        ERR_raise(ERR_LIB_PEM, ERR_R_BIO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  968|      0|        goto end;
  969|      0|    }
  970|       |
  971|  32.1k|    if (!get_name(bp, &name, flags))
  ------------------
  |  Branch (971:9): [True: 219, False: 31.9k]
  ------------------
  972|    219|        goto end;
  973|  31.9k|    if (!get_header_and_data(bp, &headerB, &dataB, name, flags))
  ------------------
  |  Branch (973:9): [True: 0, False: 31.9k]
  ------------------
  974|      0|        goto end;
  975|       |
  976|  31.9k|    BIO_get_mem_ptr(dataB, &buf_mem);
  ------------------
  |  |  617|  31.9k|#define BIO_get_mem_ptr(b, pp) BIO_ctrl(b, BIO_C_GET_BUF_MEM_PTR, 0, \
  |  |  ------------------
  |  |  |  |  449|  31.9k|#define BIO_C_GET_BUF_MEM_PTR 115
  |  |  ------------------
  |  |  618|  31.9k|    (char *)(pp))
  ------------------
  977|  31.9k|    if (buf_mem->length > INT_MAX) {
  ------------------
  |  Branch (977:9): [True: 0, False: 31.9k]
  ------------------
  978|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_BAD_BASE64_DECODE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  979|      0|        goto end;
  980|      0|    }
  981|  31.9k|    len = (int)buf_mem->length;
  982|       |
  983|       |    /* There was no data in the PEM file */
  984|  31.9k|    if (len == 0)
  ------------------
  |  Branch (984:9): [True: 0, False: 31.9k]
  ------------------
  985|      0|        goto end;
  986|       |
  987|  31.9k|    ctx = EVP_ENCODE_CTX_new();
  988|  31.9k|    if (ctx == NULL) {
  ------------------
  |  Branch (988:9): [True: 0, False: 31.9k]
  ------------------
  989|      0|        ERR_raise(ERR_LIB_PEM, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  990|      0|        goto end;
  991|      0|    }
  992|       |
  993|  31.9k|    EVP_DecodeInit(ctx);
  994|  31.9k|    if (EVP_DecodeUpdate(ctx, (unsigned char *)buf_mem->data, &len,
  ------------------
  |  Branch (994:9): [True: 0, False: 31.9k]
  ------------------
  995|  31.9k|            (unsigned char *)buf_mem->data, len)
  996|  31.9k|            < 0
  997|  31.9k|        || EVP_DecodeFinal(ctx, (unsigned char *)&(buf_mem->data[len]),
  ------------------
  |  Branch (997:12): [True: 0, False: 31.9k]
  ------------------
  998|  31.9k|               &taillen)
  999|  31.9k|            < 0) {
 1000|      0|        ERR_raise(ERR_LIB_PEM, PEM_R_BAD_BASE64_DECODE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1001|      0|        goto end;
 1002|      0|    }
 1003|  31.9k|    len += taillen;
 1004|  31.9k|    buf_mem->length = len;
 1005|       |
 1006|  31.9k|    headerlen = BIO_get_mem_data(headerB, NULL);
  ------------------
  |  |  615|  31.9k|#define BIO_get_mem_data(b, pp) BIO_ctrl(b, BIO_CTRL_INFO, 0, (char *)(pp))
  |  |  ------------------
  |  |  |  |   92|  31.9k|#define BIO_CTRL_INFO 3 /* opt - extra tit-bits */
  |  |  ------------------
  ------------------
 1007|  31.9k|    *header = PEM_MALLOC(headerlen + 1, flags);
  ------------------
  |  |  235|  31.9k|    pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1008|  31.9k|    *data = PEM_MALLOC(len, flags);
  ------------------
  |  |  235|  31.9k|    pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1009|  31.9k|    if (*header == NULL || *data == NULL)
  ------------------
  |  Branch (1009:9): [True: 0, False: 31.9k]
  |  Branch (1009:28): [True: 0, False: 31.9k]
  ------------------
 1010|      0|        goto out_free;
 1011|  31.9k|    if (headerlen != 0 && BIO_read(headerB, *header, headerlen) != headerlen)
  ------------------
  |  Branch (1011:9): [True: 0, False: 31.9k]
  |  Branch (1011:27): [True: 0, False: 0]
  ------------------
 1012|      0|        goto out_free;
 1013|  31.9k|    (*header)[headerlen] = '\0';
 1014|  31.9k|    if (BIO_read(dataB, *data, len) != len)
  ------------------
  |  Branch (1014:9): [True: 0, False: 31.9k]
  ------------------
 1015|      0|        goto out_free;
 1016|  31.9k|    *len_out = len;
 1017|  31.9k|    *name_out = name;
 1018|  31.9k|    name = NULL;
 1019|  31.9k|    ret = 1;
 1020|  31.9k|    goto end;
 1021|       |
 1022|      0|out_free:
 1023|      0|    PEM_FREE(*header, flags, 0);
  ------------------
  |  |  224|      0|    pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1024|      0|    *header = NULL;
 1025|      0|    PEM_FREE(*data, flags, 0);
  ------------------
  |  |  224|      0|    pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1026|      0|    *data = NULL;
 1027|  32.1k|end:
 1028|  32.1k|    EVP_ENCODE_CTX_free(ctx);
 1029|  32.1k|    PEM_FREE(name, flags, 0);
  ------------------
  |  |  224|  32.1k|    pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1030|  32.1k|    BIO_free(headerB);
 1031|  32.1k|    BIO_free(dataB);
 1032|  32.1k|    return ret;
 1033|      0|}
PEM_read_bio:
 1037|  32.1k|{
 1038|  32.1k|    return PEM_read_bio_ex(bp, name, header, data, len, PEM_FLAG_EAY_COMPATIBLE);
  ------------------
  |  |  382|  32.1k|#define PEM_FLAG_EAY_COMPATIBLE 0x2
  ------------------
 1039|  32.1k|}
pem_lib.c:get_name:
  776|  32.1k|{
  777|  32.1k|    char *linebuf;
  778|  32.1k|    int ret = 0;
  779|  32.1k|    int len;
  780|  32.1k|    int first_call = 1;
  781|       |
  782|       |    /*
  783|       |     * Need to hold trailing NUL (accounted for by BIO_gets() and the newline
  784|       |     * that will be added by sanitize_line() (the extra '1').
  785|       |     */
  786|  32.1k|    linebuf = PEM_MALLOC(LINESIZE + 1, flags);
  ------------------
  |  |  235|  32.1k|    pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  787|  32.1k|    if (linebuf == NULL)
  ------------------
  |  Branch (787:9): [True: 0, False: 32.1k]
  ------------------
  788|      0|        return 0;
  789|       |
  790|  32.1k|    do {
  791|  32.1k|        len = BIO_gets(bp, linebuf, LINESIZE);
  ------------------
  |  |  767|  32.1k|#define LINESIZE 255
  ------------------
  792|       |
  793|  32.1k|        if (len <= 0) {
  ------------------
  |  Branch (793:13): [True: 219, False: 31.9k]
  ------------------
  794|    219|            ERR_raise(ERR_LIB_PEM, PEM_R_NO_START_LINE);
  ------------------
  |  |  404|    219|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|    219|    (ERR_new(),                                                  \
  |  |  |  |  407|    219|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|    219|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|    219|        ERR_set_error)
  |  |  ------------------
  ------------------
  795|    219|            goto err;
  796|    219|        }
  797|       |
  798|       |        /* Strip trailing garbage and standardize ending. */
  799|  31.9k|        len = sanitize_line(linebuf, len, flags & ~PEM_FLAG_ONLY_B64, first_call);
  ------------------
  |  |  383|  31.9k|#define PEM_FLAG_ONLY_B64 0x4
  ------------------
  800|  31.9k|        first_call = 0;
  801|       |
  802|       |        /* Allow leading empty or non-matching lines. */
  803|  31.9k|    } while (!HAS_PREFIX(linebuf, BEGINSTR)
  ------------------
  |  |   58|  63.9k|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  ------------------
  |  Branch (803:14): [True: 0, False: 31.9k]
  ------------------
  804|  31.9k|        || len < TAILLEN
  ------------------
  |  |  774|  63.9k|#define TAILLEN ((int)(sizeof(TAILSTR) - 1))
  |  |  ------------------
  |  |  |  |  771|  31.9k|#define TAILSTR "-----\n"
  |  |  ------------------
  ------------------
  |  Branch (804:12): [True: 0, False: 31.9k]
  ------------------
  805|  31.9k|        || !HAS_PREFIX(linebuf + len - TAILLEN, TAILSTR));
  ------------------
  |  |   58|  31.9k|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  ------------------
  |  Branch (805:12): [True: 0, False: 31.9k]
  ------------------
  806|  31.9k|    linebuf[len - TAILLEN] = '\0';
  ------------------
  |  |  774|  31.9k|#define TAILLEN ((int)(sizeof(TAILSTR) - 1))
  |  |  ------------------
  |  |  |  |  771|  31.9k|#define TAILSTR "-----\n"
  |  |  ------------------
  ------------------
  807|  31.9k|    len = len - BEGINLEN - TAILLEN + 1;
  ------------------
  |  |  772|  31.9k|#define BEGINLEN ((int)(sizeof(BEGINSTR) - 1))
  |  |  ------------------
  |  |  |  |  769|  31.9k|#define BEGINSTR "-----BEGIN "
  |  |  ------------------
  ------------------
                  len = len - BEGINLEN - TAILLEN + 1;
  ------------------
  |  |  774|  31.9k|#define TAILLEN ((int)(sizeof(TAILSTR) - 1))
  |  |  ------------------
  |  |  |  |  771|  31.9k|#define TAILSTR "-----\n"
  |  |  ------------------
  ------------------
  808|  31.9k|    *name = PEM_MALLOC(len, flags);
  ------------------
  |  |  235|  31.9k|    pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  809|  31.9k|    if (*name == NULL)
  ------------------
  |  Branch (809:9): [True: 0, False: 31.9k]
  ------------------
  810|      0|        goto err;
  811|  31.9k|    memcpy(*name, linebuf + BEGINLEN, len);
  ------------------
  |  |  772|  31.9k|#define BEGINLEN ((int)(sizeof(BEGINSTR) - 1))
  |  |  ------------------
  |  |  |  |  769|  31.9k|#define BEGINSTR "-----BEGIN "
  |  |  ------------------
  ------------------
  812|  31.9k|    ret = 1;
  813|       |
  814|  32.1k|err:
  815|  32.1k|    PEM_FREE(linebuf, flags, LINESIZE + 1);
  ------------------
  |  |  224|  32.1k|    pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  816|  32.1k|    return ret;
  817|  31.9k|}
pem_lib.c:sanitize_line:
  723|   790k|{
  724|   790k|    int i;
  725|   790k|    if (first_call) {
  ------------------
  |  Branch (725:9): [True: 31.9k, False: 758k]
  ------------------
  726|       |        /* Other BOMs imply unsupported multibyte encoding,
  727|       |         * so don't strip them and let the error raise */
  728|  31.9k|        const unsigned char utf8_bom[3] = { 0xEF, 0xBB, 0xBF };
  729|       |
  730|  31.9k|        if (len > 3 && memcmp(linebuf, utf8_bom, 3) == 0) {
  ------------------
  |  Branch (730:13): [True: 31.9k, False: 0]
  |  Branch (730:24): [True: 0, False: 31.9k]
  ------------------
  731|      0|            memmove(linebuf, linebuf + 3, len - 3);
  732|      0|            linebuf[len - 3] = 0;
  733|      0|            len -= 3;
  734|      0|        }
  735|  31.9k|    }
  736|       |
  737|   790k|    if (flags & PEM_FLAG_EAY_COMPATIBLE) {
  ------------------
  |  |  382|   790k|#define PEM_FLAG_EAY_COMPATIBLE 0x2
  ------------------
  |  Branch (737:9): [True: 790k, False: 0]
  ------------------
  738|       |        /* Strip trailing whitespace */
  739|  2.37M|        while ((len >= 0) && (linebuf[len] <= ' '))
  ------------------
  |  Branch (739:16): [True: 2.37M, False: 0]
  |  Branch (739:30): [True: 1.58M, False: 790k]
  ------------------
  740|  1.58M|            len--;
  741|       |        /* Go back to whitespace before applying uniform line ending. */
  742|   790k|        len++;
  743|   790k|    } else if (flags & PEM_FLAG_ONLY_B64) {
  ------------------
  |  |  383|      0|#define PEM_FLAG_ONLY_B64 0x4
  ------------------
  |  Branch (743:16): [True: 0, False: 0]
  ------------------
  744|      0|        for (i = 0; i < len; ++i) {
  ------------------
  |  Branch (744:21): [True: 0, False: 0]
  ------------------
  745|      0|            if (!ossl_isbase64(linebuf[i]) || linebuf[i] == '\n'
  ------------------
  |  |   84|      0|#define ossl_isbase64(c) (ossl_ctype_check((c), CTYPE_MASK_base64))
  |  |  ------------------
  |  |  |  |   37|      0|#define CTYPE_MASK_base64 0x400
  |  |  ------------------
  ------------------
  |  Branch (745:17): [True: 0, False: 0]
  |  Branch (745:47): [True: 0, False: 0]
  ------------------
  746|      0|                || linebuf[i] == '\r')
  ------------------
  |  Branch (746:20): [True: 0, False: 0]
  ------------------
  747|      0|                break;
  748|      0|        }
  749|      0|        len = i;
  750|      0|    } else {
  751|       |        /* EVP_DecodeBlock strips leading and trailing whitespace, so just strip
  752|       |         * control characters in-place and let everything through. */
  753|      0|        for (i = 0; i < len; ++i) {
  ------------------
  |  Branch (753:21): [True: 0, False: 0]
  ------------------
  754|      0|            if (linebuf[i] == '\n' || linebuf[i] == '\r')
  ------------------
  |  Branch (754:17): [True: 0, False: 0]
  |  Branch (754:39): [True: 0, False: 0]
  ------------------
  755|      0|                break;
  756|      0|            if (ossl_iscntrl(linebuf[i]))
  ------------------
  |  |   78|      0|#define ossl_iscntrl(c) (ossl_ctype_check((c), CTYPE_MASK_cntrl))
  |  |  ------------------
  |  |  |  |   33|      0|#define CTYPE_MASK_cntrl 0x40
  |  |  ------------------
  |  |  |  Branch (78:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  757|      0|                linebuf[i] = ' ';
  758|      0|        }
  759|      0|        len = i;
  760|      0|    }
  761|       |    /* The caller allocated LINESIZE+1, so this is safe. */
  762|   790k|    linebuf[len++] = '\n';
  763|   790k|    linebuf[len] = '\0';
  764|   790k|    return len;
  765|   790k|}
pem_lib.c:get_header_and_data:
  839|  31.9k|{
  840|  31.9k|    BIO *tmp = *header;
  841|  31.9k|    char *linebuf, *p;
  842|  31.9k|    int len, ret = 0, end = 0, prev_partial_line_read = 0, partial_line_read = 0;
  843|       |    /* 0 if not seen (yet), 1 if reading header, 2 if finished header */
  844|  31.9k|    enum header_status got_header = MAYBE_HEADER;
  845|  31.9k|    unsigned int flags_mask;
  846|  31.9k|    size_t namelen;
  847|       |
  848|       |    /* Need to hold trailing NUL (accounted for by BIO_gets() and the newline
  849|       |     * that will be added by sanitize_line() (the extra '1'). */
  850|  31.9k|    linebuf = PEM_MALLOC(LINESIZE + 1, flags);
  ------------------
  |  |  235|  31.9k|    pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_malloc((num), (flags), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  851|  31.9k|    if (linebuf == NULL)
  ------------------
  |  Branch (851:9): [True: 0, False: 31.9k]
  ------------------
  852|      0|        return 0;
  853|       |
  854|   758k|    while (1) {
  ------------------
  |  Branch (854:12): [True: 758k, Folded]
  ------------------
  855|   758k|        flags_mask = ~0u;
  856|   758k|        len = BIO_gets(bp, linebuf, LINESIZE);
  ------------------
  |  |  767|   758k|#define LINESIZE 255
  ------------------
  857|   758k|        if (len <= 0) {
  ------------------
  |  Branch (857:13): [True: 0, False: 758k]
  ------------------
  858|      0|            ERR_raise(ERR_LIB_PEM, PEM_R_BAD_END_LINE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  859|      0|            goto err;
  860|      0|        }
  861|       |
  862|       |        /*
  863|       |         * Check if line has been read completely or if only part of the line
  864|       |         * has been read. Keep the previous value to ignore newlines that
  865|       |         * appear due to reading a line up until the char before the newline.
  866|       |         */
  867|   758k|        prev_partial_line_read = partial_line_read;
  868|   758k|        partial_line_read = len == LINESIZE - 1 && linebuf[LINESIZE - 2] != '\n';
  ------------------
  |  |  767|   758k|#define LINESIZE 255
  ------------------
                      partial_line_read = len == LINESIZE - 1 && linebuf[LINESIZE - 2] != '\n';
  ------------------
  |  |  767|      0|#define LINESIZE 255
  ------------------
  |  Branch (868:29): [True: 0, False: 758k]
  |  Branch (868:52): [True: 0, False: 0]
  ------------------
  869|       |
  870|   758k|        if (got_header == MAYBE_HEADER) {
  ------------------
  |  Branch (870:13): [True: 758k, False: 0]
  ------------------
  871|   758k|            if (memchr(linebuf, ':', len) != NULL)
  ------------------
  |  Branch (871:17): [True: 0, False: 758k]
  ------------------
  872|      0|                got_header = IN_HEADER;
  873|   758k|        }
  874|   758k|        if (HAS_PREFIX(linebuf, ENDSTR) || got_header == IN_HEADER)
  ------------------
  |  |   58|  1.51M|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (58:30): [True: 31.9k, False: 726k]
  |  |  ------------------
  ------------------
  |  Branch (874:44): [True: 0, False: 726k]
  ------------------
  875|  31.9k|            flags_mask &= ~PEM_FLAG_ONLY_B64;
  ------------------
  |  |  383|  31.9k|#define PEM_FLAG_ONLY_B64 0x4
  ------------------
  876|   758k|        len = sanitize_line(linebuf, len, flags & flags_mask, 0);
  877|       |
  878|       |        /* Check for end of header. */
  879|   758k|        if (linebuf[0] == '\n') {
  ------------------
  |  Branch (879:13): [True: 0, False: 758k]
  ------------------
  880|       |            /*
  881|       |             * If previous line has been read only partially this newline is a
  882|       |             * regular newline at the end of a line and not an empty line.
  883|       |             */
  884|      0|            if (!prev_partial_line_read) {
  ------------------
  |  Branch (884:17): [True: 0, False: 0]
  ------------------
  885|      0|                if (got_header == POST_HEADER) {
  ------------------
  |  Branch (885:21): [True: 0, False: 0]
  ------------------
  886|       |                    /* Another blank line is an error. */
  887|      0|                    ERR_raise(ERR_LIB_PEM, PEM_R_BAD_END_LINE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  888|      0|                    goto err;
  889|      0|                }
  890|      0|                got_header = POST_HEADER;
  891|      0|                tmp = *data;
  892|      0|            }
  893|      0|            continue;
  894|      0|        }
  895|       |
  896|       |        /* Check for end of stream (which means there is no header). */
  897|   758k|        p = linebuf;
  898|   758k|        if (CHECK_AND_SKIP_PREFIX(p, ENDSTR)) {
  ------------------
  |  |   61|   758k|    (HAS_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
  |  |  ------------------
  |  |  |  |   58|   758k|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (58:30): [True: 31.9k, False: 726k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (61:5): [True: 31.9k, False: 726k]
  |  |  ------------------
  ------------------
  899|  31.9k|            namelen = strlen(name);
  900|  31.9k|            if (strncmp(p, name, namelen) != 0 || !HAS_PREFIX(p + namelen, TAILSTR)) {
  ------------------
  |  |   58|  31.9k|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  ------------------
  |  Branch (900:17): [True: 0, False: 31.9k]
  |  Branch (900:51): [True: 0, False: 31.9k]
  ------------------
  901|      0|                ERR_raise(ERR_LIB_PEM, PEM_R_BAD_END_LINE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  902|      0|                goto err;
  903|      0|            }
  904|  31.9k|            if (got_header == MAYBE_HEADER) {
  ------------------
  |  Branch (904:17): [True: 31.9k, False: 0]
  ------------------
  905|  31.9k|                *header = *data;
  906|  31.9k|                *data = tmp;
  907|  31.9k|            }
  908|  31.9k|            break;
  909|   726k|        } else if (end) {
  ------------------
  |  Branch (909:20): [True: 0, False: 726k]
  ------------------
  910|       |            /* Malformed input; short line not at end of data. */
  911|      0|            ERR_raise(ERR_LIB_PEM, PEM_R_BAD_END_LINE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  912|      0|            goto err;
  913|      0|        }
  914|       |        /*
  915|       |         * Else, a line of text -- could be header or data; we don't
  916|       |         * know yet.  Just pass it through.
  917|       |         */
  918|   726k|        if (BIO_puts(tmp, linebuf) < 0)
  ------------------
  |  Branch (918:13): [True: 0, False: 726k]
  ------------------
  919|      0|            goto err;
  920|       |        /*
  921|       |         * Only encrypted files need the line length check applied.
  922|       |         */
  923|   726k|        if (got_header == POST_HEADER) {
  ------------------
  |  Branch (923:13): [True: 0, False: 726k]
  ------------------
  924|       |            /* 65 includes the trailing newline */
  925|      0|            if (len > 65)
  ------------------
  |  Branch (925:17): [True: 0, False: 0]
  ------------------
  926|      0|                goto err;
  927|      0|            if (len < 65)
  ------------------
  |  Branch (927:17): [True: 0, False: 0]
  ------------------
  928|      0|                end = 1;
  929|      0|        }
  930|   726k|    }
  931|       |
  932|  31.9k|    ret = 1;
  933|  31.9k|err:
  934|  31.9k|    PEM_FREE(linebuf, flags, LINESIZE + 1);
  ------------------
  |  |  224|  31.9k|    pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   pem_free((p), (flags), (num), OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  935|  31.9k|    return ret;
  936|  31.9k|}
pem_lib.c:pem_malloc:
  238|   160k|{
  239|   160k|    return (flags & PEM_FLAG_SECURE) ? CRYPTO_secure_malloc(num, file, line)
  ------------------
  |  |  381|   160k|#define PEM_FLAG_SECURE 0x1
  ------------------
  |  Branch (239:12): [True: 0, False: 160k]
  ------------------
  240|   160k|                                     : CRYPTO_malloc(num, file, line);
  241|   160k|}
pem_lib.c:pem_free:
  227|  96.3k|{
  228|  96.3k|    if (flags & PEM_FLAG_SECURE)
  ------------------
  |  |  381|  96.3k|#define PEM_FLAG_SECURE 0x1
  ------------------
  |  Branch (228:9): [True: 0, False: 96.3k]
  ------------------
  229|      0|        CRYPTO_secure_clear_free(p, num, file, line);
  230|  96.3k|    else
  231|  96.3k|        CRYPTO_free(p, file, line);
  232|  96.3k|}

ossl_err_load_PKCS12_strings:
   56|      2|{
   57|      2|#ifndef OPENSSL_NO_ERR
   58|      2|    if (ERR_reason_error_string(PKCS12_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (58:9): [True: 2, False: 0]
  ------------------
   59|      2|        ERR_load_strings_const(PKCS12_str_reasons);
   60|      2|#endif
   61|      2|    return 1;
   62|      2|}

ossl_err_load_PKCS7_strings:
   92|      2|{
   93|      2|#ifndef OPENSSL_NO_ERR
   94|      2|    if (ERR_reason_error_string(PKCS7_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (94:9): [True: 2, False: 0]
  ------------------
   95|      2|        ERR_load_strings_const(PKCS7_str_reasons);
   96|      2|#endif
   97|      2|    return 1;
   98|      2|}

ossl_property_defns_new:
   63|      2|{
   64|      2|    return lh_PROPERTY_DEFN_ELEM_new(&property_defn_hash, &property_defn_cmp);
   65|      2|}
ossl_prop_defn_get:
   68|    344|{
   69|    344|    PROPERTY_DEFN_ELEM elem, *r;
   70|    344|    LHASH_OF(PROPERTY_DEFN_ELEM) *property_defns;
  ------------------
  |  |  156|    344|#define LHASH_OF(type) struct lhash_st_##type
  ------------------
   71|       |
   72|    344|    property_defns = ossl_lib_ctx_get_data(ctx,
   73|    344|        OSSL_LIB_CTX_PROPERTY_DEFN_INDEX);
  ------------------
  |  |   98|    344|#define OSSL_LIB_CTX_PROPERTY_DEFN_INDEX 2
  ------------------
   74|    344|    if (!ossl_assert(property_defns != NULL) || !ossl_lib_ctx_read_lock(ctx))
  ------------------
  |  |   52|    688|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    688|    __FILE__, __LINE__)
  ------------------
  |  Branch (74:9): [True: 0, False: 344]
  |  Branch (74:49): [True: 0, False: 344]
  ------------------
   75|      0|        return NULL;
   76|       |
   77|    344|    elem.prop = prop;
   78|    344|    r = lh_PROPERTY_DEFN_ELEM_retrieve(property_defns, &elem);
   79|    344|    ossl_lib_ctx_unlock(ctx);
   80|    344|    if (r == NULL || !ossl_assert(r->defn != NULL))
  ------------------
  |  |   52|    328|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    328|    __FILE__, __LINE__)
  ------------------
  |  Branch (80:9): [True: 16, False: 328]
  |  Branch (80:22): [True: 0, False: 328]
  ------------------
   81|     16|        return NULL;
   82|    328|    return r->defn;
   83|    344|}
ossl_prop_defn_set:
   92|     16|{
   93|     16|    PROPERTY_DEFN_ELEM elem, *old, *p = NULL;
   94|     16|    size_t len;
   95|     16|    LHASH_OF(PROPERTY_DEFN_ELEM) *property_defns;
  ------------------
  |  |  156|     16|#define LHASH_OF(type) struct lhash_st_##type
  ------------------
   96|     16|    int res = 1;
   97|       |
   98|     16|    property_defns = ossl_lib_ctx_get_data(ctx,
   99|     16|        OSSL_LIB_CTX_PROPERTY_DEFN_INDEX);
  ------------------
  |  |   98|     16|#define OSSL_LIB_CTX_PROPERTY_DEFN_INDEX 2
  ------------------
  100|     16|    if (property_defns == NULL)
  ------------------
  |  Branch (100:9): [True: 0, False: 16]
  ------------------
  101|      0|        return 0;
  102|       |
  103|     16|    if (prop == NULL)
  ------------------
  |  Branch (103:9): [True: 0, False: 16]
  ------------------
  104|      0|        return 1;
  105|       |
  106|     16|    if (!ossl_lib_ctx_write_lock(ctx))
  ------------------
  |  Branch (106:9): [True: 0, False: 16]
  ------------------
  107|      0|        return 0;
  108|     16|    elem.prop = prop;
  109|     16|    if (pl == NULL) {
  ------------------
  |  Branch (109:9): [True: 0, False: 16]
  ------------------
  110|      0|        lh_PROPERTY_DEFN_ELEM_delete(property_defns, &elem);
  111|      0|        goto end;
  112|      0|    }
  113|       |    /* check if property definition is in the cache already */
  114|     16|    if ((p = lh_PROPERTY_DEFN_ELEM_retrieve(property_defns, &elem)) != NULL) {
  ------------------
  |  Branch (114:9): [True: 0, False: 16]
  ------------------
  115|      0|        ossl_property_free(*pl);
  116|      0|        *pl = p->defn;
  117|      0|        goto end;
  118|      0|    }
  119|     16|    len = strlen(prop);
  120|     16|    p = OPENSSL_malloc(sizeof(*p) + len);
  ------------------
  |  |  106|     16|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  121|     16|    if (p != NULL) {
  ------------------
  |  Branch (121:9): [True: 16, False: 0]
  ------------------
  122|     16|        p->prop = p->body;
  123|     16|        p->defn = *pl;
  124|     16|        memcpy(p->body, prop, len + 1);
  125|     16|        old = lh_PROPERTY_DEFN_ELEM_insert(property_defns, p);
  126|     16|        if (!ossl_assert(old == NULL))
  ------------------
  |  |   52|     16|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|     16|    __FILE__, __LINE__)
  ------------------
  |  Branch (126:13): [True: 0, False: 16]
  ------------------
  127|       |            /* This should not happen. An existing entry is handled above. */
  128|      0|            goto end;
  129|     16|        if (!lh_PROPERTY_DEFN_ELEM_error(property_defns))
  ------------------
  |  Branch (129:13): [True: 16, False: 0]
  ------------------
  130|     16|            goto end;
  131|     16|    }
  132|      0|    OPENSSL_free(p);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  133|      0|    res = 0;
  134|     16|end:
  135|     16|    ossl_lib_ctx_unlock(ctx);
  136|     16|    return res;
  137|      0|}
defn_cache.c:property_defn_hash:
   35|    376|{
   36|    376|    return OPENSSL_LH_strhash(a->prop);
   37|    376|}
defn_cache.c:property_defn_cmp:
   41|    328|{
   42|    328|    return strcmp(a->prop, b->prop);
   43|    328|}

ossl_ctx_global_properties_new:
  125|      2|{
  126|      2|    return OPENSSL_zalloc(sizeof(OSSL_GLOBAL_PROPERTIES));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  127|      2|}
ossl_ctx_global_properties:
  131|     53|{
  132|     53|    OSSL_GLOBAL_PROPERTIES *globp;
  133|       |
  134|     53|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_AUTOLOAD_CONFIG)
  135|     53|    if (loadconfig && !OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL))
  ------------------
  |  |  510|      0|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  |  Branch (135:9): [True: 0, False: 53]
  |  Branch (135:23): [True: 0, False: 0]
  ------------------
  136|      0|        return NULL;
  137|     53|#endif
  138|     53|    globp = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_GLOBAL_PROPERTIES);
  ------------------
  |  |  112|     53|#define OSSL_LIB_CTX_GLOBAL_PROPERTIES 14
  ------------------
  139|       |
  140|     53|    return globp != NULL ? &globp->list : NULL;
  ------------------
  |  Branch (140:12): [True: 53, False: 0]
  ------------------
  141|     53|}
ossl_method_store_new:
  244|      8|{
  245|      8|    OSSL_METHOD_STORE *res;
  246|       |
  247|      8|    res = OPENSSL_zalloc(sizeof(*res));
  ------------------
  |  |  108|      8|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  248|      8|    if (res != NULL) {
  ------------------
  |  Branch (248:9): [True: 8, False: 0]
  ------------------
  249|      8|        res->ctx = ctx;
  250|      8|        if ((res->algs = ossl_sa_ALGORITHM_new()) == NULL
  ------------------
  |  Branch (250:13): [True: 0, False: 8]
  ------------------
  251|      8|            || (res->lock = CRYPTO_THREAD_lock_new()) == NULL
  ------------------
  |  Branch (251:16): [True: 0, False: 8]
  ------------------
  252|      8|            || (res->biglock = CRYPTO_THREAD_lock_new()) == NULL) {
  ------------------
  |  Branch (252:16): [True: 0, False: 8]
  ------------------
  253|      0|            ossl_method_store_free(res);
  254|      0|            return NULL;
  255|      0|        }
  256|      8|    }
  257|      8|    return res;
  258|      8|}
ossl_method_lock_store:
  273|  3.57k|{
  274|  3.57k|    return store != NULL ? CRYPTO_THREAD_write_lock(store->biglock) : 0;
  ------------------
  |  Branch (274:12): [True: 3.57k, False: 0]
  ------------------
  275|  3.57k|}
ossl_method_unlock_store:
  278|  3.57k|{
  279|  3.57k|    return store != NULL ? CRYPTO_THREAD_unlock(store->biglock) : 0;
  ------------------
  |  Branch (279:12): [True: 3.57k, False: 0]
  ------------------
  280|  3.57k|}
ossl_method_store_add:
  321|    344|{
  322|    344|    ALGORITHM *alg = NULL;
  323|    344|    IMPLEMENTATION *impl;
  324|    344|    int ret = 0;
  325|    344|    int i;
  326|       |
  327|    344|    if (nid <= 0 || method == NULL || store == NULL)
  ------------------
  |  Branch (327:9): [True: 0, False: 344]
  |  Branch (327:21): [True: 0, False: 344]
  |  Branch (327:39): [True: 0, False: 344]
  ------------------
  328|      0|        return 0;
  329|       |
  330|    344|    if (properties == NULL)
  ------------------
  |  Branch (330:9): [True: 0, False: 344]
  ------------------
  331|      0|        properties = "";
  332|       |
  333|    344|    if (!ossl_assert(prov != NULL))
  ------------------
  |  |   52|    344|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    344|    __FILE__, __LINE__)
  ------------------
  |  Branch (333:9): [True: 0, False: 344]
  ------------------
  334|      0|        return 0;
  335|       |
  336|       |    /* Create new entry */
  337|    344|    impl = OPENSSL_malloc(sizeof(*impl));
  ------------------
  |  |  106|    344|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  338|    344|    if (impl == NULL)
  ------------------
  |  Branch (338:9): [True: 0, False: 344]
  ------------------
  339|      0|        return 0;
  340|    344|    impl->method.method = method;
  341|    344|    impl->method.up_ref = method_up_ref;
  342|    344|    impl->method.free = method_destruct;
  343|    344|    if (!ossl_method_up_ref(&impl->method)) {
  ------------------
  |  Branch (343:9): [True: 0, False: 344]
  ------------------
  344|      0|        OPENSSL_free(impl);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  345|      0|        return 0;
  346|      0|    }
  347|    344|    impl->provider = prov;
  348|       |
  349|       |    /* Insert into the hash table if required */
  350|    344|    if (!ossl_property_write_lock(store)) {
  ------------------
  |  Branch (350:9): [True: 0, False: 344]
  ------------------
  351|      0|        impl_free(impl);
  352|      0|        return 0;
  353|      0|    }
  354|       |
  355|       |    /*
  356|       |     * Flush the alg cache of any implementation that already exists
  357|       |     * for this id.
  358|       |     * This is done to ensure that on the next lookup we go through the
  359|       |     * provider comparison in ossl_method_store_fetch.  If we don't do this
  360|       |     * then this new method won't be given a chance to get selected.
  361|       |     * NOTE: This doesn't actually remove the method from the backing store
  362|       |     * It just ensures that we query the backing store when (re)-adding a
  363|       |     * method to the algorithm cache, in case the one selected by the next
  364|       |     * query selects a different implementation
  365|       |     */
  366|    344|    ossl_method_cache_flush(store, nid);
  367|       |
  368|       |    /*
  369|       |     * Parse the properties associated with this method, and convert it to a
  370|       |     * property list stored against the implementation for later comparison
  371|       |     * during fetch operations
  372|       |     */
  373|    344|    if ((impl->properties = ossl_prop_defn_get(store->ctx, properties)) == NULL) {
  ------------------
  |  Branch (373:9): [True: 16, False: 328]
  ------------------
  374|     16|        impl->properties = ossl_parse_property(store->ctx, properties);
  375|     16|        if (impl->properties == NULL)
  ------------------
  |  Branch (375:13): [True: 0, False: 16]
  ------------------
  376|      0|            goto err;
  377|     16|        if (!ossl_prop_defn_set(store->ctx, properties, &impl->properties)) {
  ------------------
  |  Branch (377:13): [True: 0, False: 16]
  ------------------
  378|      0|            ossl_property_free(impl->properties);
  379|      0|            impl->properties = NULL;
  380|      0|            goto err;
  381|      0|        }
  382|     16|    }
  383|       |
  384|       |    /*
  385|       |     * Check if we have an algorithm cache already for this nid.  If so use
  386|       |     * it, otherwise, create it, and insert it into the store
  387|       |     */
  388|    344|    alg = ossl_method_store_retrieve(store, nid);
  389|    344|    if (alg == NULL) {
  ------------------
  |  Branch (389:9): [True: 298, False: 46]
  ------------------
  390|    298|        if ((alg = OPENSSL_zalloc(sizeof(*alg))) == NULL
  ------------------
  |  |  108|    298|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (390:13): [True: 0, False: 298]
  ------------------
  391|    298|            || (alg->impls = sk_IMPLEMENTATION_new_null()) == NULL
  ------------------
  |  Branch (391:16): [True: 0, False: 298]
  ------------------
  392|    298|            || (alg->cache = lh_QUERY_new(&query_hash, &query_cmp)) == NULL)
  ------------------
  |  Branch (392:16): [True: 0, False: 298]
  ------------------
  393|      0|            goto err;
  394|    298|        alg->nid = nid;
  395|    298|        if (!ossl_method_store_insert(store, alg))
  ------------------
  |  Branch (395:13): [True: 0, False: 298]
  ------------------
  396|      0|            goto err;
  397|    298|        OSSL_TRACE2(QUERY, "Inserted an alg with nid %d into the store %p\n", nid, (void *)store);
  ------------------
  |  |  295|    298|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  285|    298|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  398|    298|    }
  399|       |
  400|       |    /* Push onto stack if there isn't one there already */
  401|    421|    for (i = 0; i < sk_IMPLEMENTATION_num(alg->impls); i++) {
  ------------------
  |  Branch (401:17): [True: 77, False: 344]
  ------------------
  402|     77|        const IMPLEMENTATION *tmpimpl = sk_IMPLEMENTATION_value(alg->impls, i);
  403|       |
  404|     77|        if (tmpimpl->provider == impl->provider
  ------------------
  |  Branch (404:13): [True: 77, False: 0]
  ------------------
  405|     77|            && tmpimpl->properties == impl->properties)
  ------------------
  |  Branch (405:16): [True: 0, False: 77]
  ------------------
  406|      0|            break;
  407|     77|    }
  408|       |
  409|    344|    if (i == sk_IMPLEMENTATION_num(alg->impls)
  ------------------
  |  Branch (409:9): [True: 344, False: 0]
  ------------------
  410|    344|        && sk_IMPLEMENTATION_push(alg->impls, impl)) {
  ------------------
  |  Branch (410:12): [True: 344, False: 0]
  ------------------
  411|    344|        ret = 1;
  412|    344|#ifndef FIPS_MODULE
  413|    344|        OSSL_TRACE_BEGIN(QUERY)
  ------------------
  |  |  221|    344|    do {                           \
  |  |  222|    344|        BIO *trc_out = NULL;       \
  |  |  223|    344|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 344]
  |  |  ------------------
  ------------------
  414|      0|        {
  415|      0|            BIO_printf(trc_out, "Adding to method store "
  416|      0|                                "nid: %d\nproperties: %s\nprovider: %s\n",
  417|      0|                nid, properties,
  418|      0|                ossl_provider_name(prov) == NULL ? "none" : ossl_provider_name(prov));
  ------------------
  |  Branch (418:17): [True: 0, False: 0]
  ------------------
  419|      0|        }
  420|    344|        OSSL_TRACE_END(QUERY);
  ------------------
  |  |  226|    344|    }                            \
  |  |  227|    344|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 344]
  |  |  ------------------
  ------------------
  421|    344|#endif
  422|    344|    }
  423|    344|    ossl_property_unlock(store);
  424|    344|    if (ret == 0)
  ------------------
  |  Branch (424:9): [True: 0, False: 344]
  ------------------
  425|      0|        impl_free(impl);
  426|    344|    return ret;
  427|       |
  428|      0|err:
  429|      0|    ossl_property_unlock(store);
  430|       |    alg_cleanup(0, alg, NULL);
  431|      0|    impl_free(impl);
  432|      0|    return 0;
  433|    344|}
ossl_method_store_do_all:
  581|      6|{
  582|      6|    int i, j;
  583|      6|    int numalgs, numimps;
  584|      6|    STACK_OF(ALGORITHM) *tmpalgs;
  ------------------
  |  |   33|      6|#define STACK_OF(type) struct stack_st_##type
  ------------------
  585|      6|    ALGORITHM *alg;
  586|       |
  587|      6|    if (store != NULL) {
  ------------------
  |  Branch (587:9): [True: 6, False: 0]
  ------------------
  588|       |
  589|      6|        if (!ossl_property_read_lock(store))
  ------------------
  |  Branch (589:13): [True: 0, False: 6]
  ------------------
  590|      0|            return;
  591|       |
  592|      6|        tmpalgs = sk_ALGORITHM_new_reserve(NULL,
  593|      6|            (int)ossl_sa_ALGORITHM_num(store->algs));
  594|      6|        if (tmpalgs == NULL) {
  ------------------
  |  Branch (594:13): [True: 0, False: 6]
  ------------------
  595|      0|            ossl_property_unlock(store);
  596|      0|            return;
  597|      0|        }
  598|       |
  599|      6|        ossl_sa_ALGORITHM_doall_arg(store->algs, alg_copy, tmpalgs);
  600|      6|        ossl_property_unlock(store);
  601|      6|        numalgs = sk_ALGORITHM_num(tmpalgs);
  602|    662|        for (i = 0; i < numalgs; i++) {
  ------------------
  |  Branch (602:21): [True: 656, False: 6]
  ------------------
  603|    656|            alg = sk_ALGORITHM_value(tmpalgs, i);
  604|    656|            numimps = sk_IMPLEMENTATION_num(alg->impls);
  605|  1.49k|            for (j = 0; j < numimps; j++)
  ------------------
  |  Branch (605:25): [True: 840, False: 656]
  ------------------
  606|    840|                alg_do_one(alg, sk_IMPLEMENTATION_value(alg->impls, j), fn, fnarg);
  607|    656|        }
  608|      6|        sk_ALGORITHM_pop_free(tmpalgs, del_tmpalg);
  609|      6|    }
  610|      6|}
ossl_method_store_fetch:
  638|  1.14k|{
  639|  1.14k|    OSSL_PROPERTY_LIST **plp;
  640|  1.14k|    ALGORITHM *alg;
  641|  1.14k|    IMPLEMENTATION *impl, *best_impl = NULL;
  642|  1.14k|    OSSL_PROPERTY_LIST *pq = NULL, *p2 = NULL;
  643|  1.14k|    const OSSL_PROVIDER *prov = prov_rw != NULL ? *prov_rw : NULL;
  ------------------
  |  Branch (643:33): [True: 1.14k, False: 0]
  ------------------
  644|  1.14k|    int ret = 0;
  645|  1.14k|    int j, best = -1, score, optional;
  646|       |
  647|  1.14k|    if (nid <= 0 || method == NULL || store == NULL)
  ------------------
  |  Branch (647:9): [True: 0, False: 1.14k]
  |  Branch (647:21): [True: 0, False: 1.14k]
  |  Branch (647:39): [True: 0, False: 1.14k]
  ------------------
  648|      0|        return 0;
  649|       |
  650|  1.14k|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_AUTOLOAD_CONFIG)
  651|  1.14k|    if (ossl_lib_ctx_is_default(store->ctx)
  ------------------
  |  Branch (651:9): [True: 1.14k, False: 0]
  ------------------
  652|  1.14k|        && !OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL))
  ------------------
  |  |  510|  1.14k|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  |  Branch (652:12): [True: 0, False: 1.14k]
  ------------------
  653|      0|        return 0;
  654|  1.14k|#endif
  655|       |
  656|       |    /* This only needs to be a read lock, because the query won't create anything */
  657|  1.14k|    if (!ossl_property_read_lock(store))
  ------------------
  |  Branch (657:9): [True: 0, False: 1.14k]
  ------------------
  658|      0|        return 0;
  659|       |
  660|  1.14k|    OSSL_TRACE2(QUERY, "Retrieving by nid %d from store %p\n", nid, (void *)store);
  ------------------
  |  |  295|  1.14k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  285|  1.14k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  661|  1.14k|    alg = ossl_method_store_retrieve(store, nid);
  662|  1.14k|    if (alg == NULL) {
  ------------------
  |  Branch (662:9): [True: 1.10k, False: 49]
  ------------------
  663|  1.10k|        ossl_property_unlock(store);
  664|  1.10k|        OSSL_TRACE2(QUERY, "Failed to retrieve by nid %d from store %p\n", nid, (void *)store);
  ------------------
  |  |  295|  1.10k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  285|  1.10k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  665|  1.10k|        return 0;
  666|  1.10k|    }
  667|     49|    OSSL_TRACE2(QUERY, "Retrieved by nid %d from store %p\n", nid, (void *)store);
  ------------------
  |  |  295|     49|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  285|     49|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  668|       |
  669|       |    /*
  670|       |     * If a property query string is provided, convert it to an
  671|       |     * OSSL_PROPERTY_LIST structure
  672|       |     */
  673|     49|    if (prop_query != NULL)
  ------------------
  |  Branch (673:9): [True: 49, False: 0]
  ------------------
  674|     49|        p2 = pq = ossl_parse_query(store->ctx, prop_query, 0);
  675|       |
  676|       |    /*
  677|       |     * If the library context has default properties specified
  678|       |     * then merge those with the properties passed to this function
  679|       |     */
  680|     49|    plp = ossl_ctx_global_properties(store->ctx, 0);
  681|     49|    if (plp != NULL && *plp != NULL) {
  ------------------
  |  Branch (681:9): [True: 49, False: 0]
  |  Branch (681:24): [True: 0, False: 49]
  ------------------
  682|      0|        if (pq == NULL) {
  ------------------
  |  Branch (682:13): [True: 0, False: 0]
  ------------------
  683|      0|            pq = *plp;
  684|      0|        } else {
  685|      0|            p2 = ossl_property_merge(pq, *plp);
  686|      0|            ossl_property_free(pq);
  687|      0|            if (p2 == NULL)
  ------------------
  |  Branch (687:17): [True: 0, False: 0]
  ------------------
  688|      0|                goto fin;
  689|      0|            pq = p2;
  690|      0|        }
  691|      0|    }
  692|       |
  693|       |    /*
  694|       |     * Search for a provider that provides this implementation.
  695|       |     * If the requested provider is NULL, then any provider will do,
  696|       |     * otherwise we should try to find the one that matches the requested
  697|       |     * provider.  Note that providers are given implicit preference via the
  698|       |     * ordering of the implementation stack
  699|       |     */
  700|     49|    if (pq == NULL) {
  ------------------
  |  Branch (700:9): [True: 0, False: 49]
  ------------------
  701|      0|        for (j = 0; j < sk_IMPLEMENTATION_num(alg->impls); j++) {
  ------------------
  |  Branch (701:21): [True: 0, False: 0]
  ------------------
  702|      0|            if ((impl = sk_IMPLEMENTATION_value(alg->impls, j)) != NULL
  ------------------
  |  Branch (702:17): [True: 0, False: 0]
  ------------------
  703|      0|                && (prov == NULL || impl->provider == prov)) {
  ------------------
  |  Branch (703:21): [True: 0, False: 0]
  |  Branch (703:37): [True: 0, False: 0]
  ------------------
  704|      0|                best_impl = impl;
  705|      0|                ret = 1;
  706|      0|                break;
  707|      0|            }
  708|      0|        }
  709|      0|        goto fin;
  710|      0|    }
  711|       |
  712|       |    /*
  713|       |     * If there are optional properties specified
  714|       |     * then run the search again, and select the provider that matches the
  715|       |     * most options
  716|       |     */
  717|     49|    optional = ossl_property_has_optional(pq);
  718|     49|    for (j = 0; j < sk_IMPLEMENTATION_num(alg->impls); j++) {
  ------------------
  |  Branch (718:17): [True: 49, False: 0]
  ------------------
  719|     49|        if ((impl = sk_IMPLEMENTATION_value(alg->impls, j)) != NULL
  ------------------
  |  Branch (719:13): [True: 49, False: 0]
  ------------------
  720|     49|            && (prov == NULL || impl->provider == prov)) {
  ------------------
  |  Branch (720:17): [True: 47, False: 2]
  |  Branch (720:33): [True: 2, False: 0]
  ------------------
  721|     49|            score = ossl_property_match_count(pq, impl->properties);
  722|     49|            if (score > best) {
  ------------------
  |  Branch (722:17): [True: 49, False: 0]
  ------------------
  723|     49|                best_impl = impl;
  724|     49|                best = score;
  725|     49|                ret = 1;
  726|     49|                if (!optional)
  ------------------
  |  Branch (726:21): [True: 49, False: 0]
  ------------------
  727|     49|                    goto fin;
  728|     49|            }
  729|     49|        }
  730|     49|    }
  731|     49|fin:
  732|     49|    if (ret && ossl_method_up_ref(&best_impl->method)) {
  ------------------
  |  Branch (732:9): [True: 49, False: 0]
  |  Branch (732:16): [True: 49, False: 0]
  ------------------
  733|     49|        *method = best_impl->method.method;
  734|     49|        if (prov_rw != NULL)
  ------------------
  |  Branch (734:13): [True: 49, False: 0]
  ------------------
  735|     49|            *prov_rw = best_impl->provider;
  736|     49|    } else {
  737|      0|        ret = 0;
  738|      0|    }
  739|       |
  740|     49|#ifndef FIPS_MODULE
  741|     49|    OSSL_TRACE_BEGIN(QUERY)
  ------------------
  |  |  221|     49|    do {                           \
  |  |  222|     49|        BIO *trc_out = NULL;       \
  |  |  223|     49|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 49]
  |  |  ------------------
  ------------------
  742|      0|    {
  743|      0|        char buf[512];
  744|      0|        size_t size;
  745|       |
  746|      0|        size = ossl_property_list_to_string(NULL, pq, buf, 512);
  747|      0|        BIO_printf(trc_out, "method store query with properties %s "
  748|      0|                            "resolves to provider %s\n",
  749|      0|            size == 0 ? "none" : buf,
  ------------------
  |  Branch (749:13): [True: 0, False: 0]
  ------------------
  750|      0|            best_impl == NULL ? "none" : ossl_provider_name(best_impl->provider));
  ------------------
  |  Branch (750:13): [True: 0, False: 0]
  ------------------
  751|      0|    }
  752|     49|    OSSL_TRACE_END(QUERY);
  ------------------
  |  |  226|     49|    }                            \
  |  |  227|     49|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 49]
  |  |  ------------------
  ------------------
  753|     49|#endif
  754|       |
  755|     49|    ossl_property_unlock(store);
  756|     49|    ossl_property_free(p2);
  757|     49|    return ret;
  758|     49|}
ossl_method_store_cache_get:
  861|  28.1k|{
  862|  28.1k|    ALGORITHM *alg;
  863|  28.1k|    QUERY elem, *r;
  864|  28.1k|    int res = 0;
  865|       |
  866|  28.1k|    if (nid <= 0 || store == NULL || prop_query == NULL)
  ------------------
  |  Branch (866:9): [True: 0, False: 28.1k]
  |  Branch (866:21): [True: 0, False: 28.1k]
  |  Branch (866:38): [True: 0, False: 28.1k]
  ------------------
  867|      0|        return 0;
  868|       |
  869|  28.1k|    if (!ossl_property_read_lock(store))
  ------------------
  |  Branch (869:9): [True: 0, False: 28.1k]
  ------------------
  870|      0|        return 0;
  871|  28.1k|    alg = ossl_method_store_retrieve(store, nid);
  872|  28.1k|    if (alg == NULL)
  ------------------
  |  Branch (872:9): [True: 1.10k, False: 27.0k]
  ------------------
  873|  1.10k|        goto err;
  874|       |
  875|  27.0k|    elem.query = prop_query;
  876|  27.0k|    elem.provider = prov;
  877|  27.0k|    r = lh_QUERY_retrieve(alg->cache, &elem);
  878|  27.0k|    if (r == NULL)
  ------------------
  |  Branch (878:9): [True: 43, False: 27.0k]
  ------------------
  879|     43|        goto err;
  880|  27.0k|    if (ossl_method_up_ref(&r->method)) {
  ------------------
  |  Branch (880:9): [True: 27.0k, False: 0]
  ------------------
  881|  27.0k|        *method = r->method.method;
  882|  27.0k|        res = 1;
  883|  27.0k|    }
  884|  28.1k|err:
  885|  28.1k|    ossl_property_unlock(store);
  886|  28.1k|    return res;
  887|  27.0k|}
ossl_method_store_cache_set:
  893|     49|{
  894|     49|    QUERY elem, *old, *p = NULL;
  895|     49|    ALGORITHM *alg;
  896|     49|    size_t len;
  897|     49|    int res = 1;
  898|       |
  899|     49|    if (nid <= 0 || store == NULL || prop_query == NULL)
  ------------------
  |  Branch (899:9): [True: 0, False: 49]
  |  Branch (899:21): [True: 0, False: 49]
  |  Branch (899:38): [True: 0, False: 49]
  ------------------
  900|      0|        return 0;
  901|       |
  902|     49|    if (!ossl_assert(prov != NULL))
  ------------------
  |  |   52|     49|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|     49|    __FILE__, __LINE__)
  ------------------
  |  Branch (902:9): [True: 0, False: 49]
  ------------------
  903|      0|        return 0;
  904|       |
  905|     49|    if (!ossl_property_write_lock(store))
  ------------------
  |  Branch (905:9): [True: 0, False: 49]
  ------------------
  906|      0|        return 0;
  907|     49|    if (store->cache_need_flush)
  ------------------
  |  Branch (907:9): [True: 0, False: 49]
  ------------------
  908|      0|        ossl_method_cache_flush_some(store);
  909|     49|    alg = ossl_method_store_retrieve(store, nid);
  910|     49|    if (alg == NULL)
  ------------------
  |  Branch (910:9): [True: 0, False: 49]
  ------------------
  911|      0|        goto err;
  912|       |
  913|     49|    if (method == NULL) {
  ------------------
  |  Branch (913:9): [True: 0, False: 49]
  ------------------
  914|      0|        elem.query = prop_query;
  915|      0|        elem.provider = prov;
  916|      0|        if ((old = lh_QUERY_delete(alg->cache, &elem)) != NULL) {
  ------------------
  |  Branch (916:13): [True: 0, False: 0]
  ------------------
  917|      0|            impl_cache_free(old);
  918|      0|            store->cache_nelem--;
  919|      0|        }
  920|      0|        goto end;
  921|      0|    }
  922|     49|    p = OPENSSL_malloc(sizeof(*p) + (len = strlen(prop_query)));
  ------------------
  |  |  106|     49|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  923|     49|    if (p != NULL) {
  ------------------
  |  Branch (923:9): [True: 49, False: 0]
  ------------------
  924|     49|        p->query = p->body;
  925|     49|        p->provider = prov;
  926|     49|        p->method.method = method;
  927|     49|        p->method.up_ref = method_up_ref;
  928|     49|        p->method.free = method_destruct;
  929|     49|        if (!ossl_method_up_ref(&p->method))
  ------------------
  |  Branch (929:13): [True: 0, False: 49]
  ------------------
  930|      0|            goto err;
  931|     49|        memcpy((char *)p->query, prop_query, len + 1);
  932|     49|        if ((old = lh_QUERY_insert(alg->cache, p)) != NULL) {
  ------------------
  |  Branch (932:13): [True: 0, False: 49]
  ------------------
  933|      0|            impl_cache_free(old);
  934|      0|            goto end;
  935|      0|        }
  936|     49|        if (!lh_QUERY_error(alg->cache)) {
  ------------------
  |  Branch (936:13): [True: 49, False: 0]
  ------------------
  937|     49|            if (++store->cache_nelem >= IMPL_CACHE_FLUSH_THRESHOLD)
  ------------------
  |  |   34|     49|#define IMPL_CACHE_FLUSH_THRESHOLD 500
  ------------------
  |  Branch (937:17): [True: 0, False: 49]
  ------------------
  938|      0|                store->cache_need_flush = 1;
  939|     49|            goto end;
  940|     49|        }
  941|      0|        ossl_method_free(&p->method);
  942|      0|    }
  943|      0|err:
  944|      0|    res = 0;
  945|      0|    OPENSSL_free(p);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  946|     49|end:
  947|     49|    ossl_property_unlock(store);
  948|     49|    return res;
  949|      0|}
property.c:ossl_method_up_ref:
  163|  27.4k|{
  164|  27.4k|    return (*method->up_ref)(method->method);
  165|  27.4k|}
property.c:ossl_property_write_lock:
  178|    393|{
  179|    393|    return p != NULL ? CRYPTO_THREAD_write_lock(p->lock) : 0;
  ------------------
  |  Branch (179:12): [True: 393, False: 0]
  ------------------
  180|    393|}
property.c:ossl_method_store_retrieve:
  283|  30.0k|{
  284|  30.0k|    return ossl_sa_ALGORITHM_get(store->algs, nid);
  285|  30.0k|}
property.c:query_hash:
  188|  27.1k|{
  189|  27.1k|    return OPENSSL_LH_strhash(a->query);
  190|  27.1k|}
property.c:query_cmp:
  193|  27.0k|{
  194|  27.0k|    int res = strcmp(a->query, b->query);
  195|       |
  196|  27.0k|    if (res == 0 && a->provider != NULL && b->provider != NULL)
  ------------------
  |  Branch (196:9): [True: 27.0k, False: 0]
  |  Branch (196:21): [True: 27.0k, False: 0]
  |  Branch (196:44): [True: 4, False: 27.0k]
  ------------------
  197|      4|        res = b->provider > a->provider ? 1
  ------------------
  |  Branch (197:15): [True: 0, False: 4]
  ------------------
  198|      4|            : b->provider < a->provider ? -1
  ------------------
  |  Branch (198:15): [True: 0, False: 4]
  ------------------
  199|      4|                                        : 0;
  200|  27.0k|    return res;
  201|  27.0k|}
property.c:ossl_method_store_insert:
  288|    298|{
  289|    298|    return ossl_sa_ALGORITHM_set(store->algs, alg->nid, alg);
  290|    298|}
property.c:ossl_property_unlock:
  183|  29.7k|{
  184|  29.7k|    return p != 0 ? CRYPTO_THREAD_unlock(p->lock) : 0;
  ------------------
  |  Branch (184:12): [True: 29.7k, False: 0]
  ------------------
  185|  29.7k|}
property.c:ossl_method_cache_flush_alg:
  762|     46|{
  763|     46|    store->cache_nelem -= lh_QUERY_num_items(alg->cache);
  764|     46|    impl_cache_flush_alg(0, alg);
  765|     46|}
property.c:ossl_property_read_lock:
  173|  29.3k|{
  174|  29.3k|    return p != NULL ? CRYPTO_THREAD_read_lock(p->lock) : 0;
  ------------------
  |  Branch (174:12): [True: 29.3k, False: 0]
  ------------------
  175|  29.3k|}
property.c:alg_copy:
  560|    656|{
  561|    656|    STACK_OF(ALGORITHM) *newalg = arg;
  ------------------
  |  |   33|    656|#define STACK_OF(type) struct stack_st_##type
  ------------------
  562|       |
  563|    656|    alg = OPENSSL_memdup(alg, sizeof(ALGORITHM));
  ------------------
  |  |  133|    656|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  564|    656|    if (alg == NULL)
  ------------------
  |  Branch (564:9): [True: 0, False: 656]
  ------------------
  565|      0|        return;
  566|       |
  567|    656|    alg->impls = sk_IMPLEMENTATION_dup(alg->impls);
  568|       |
  569|    656|    (void)sk_ALGORITHM_push(newalg, alg);
  570|    656|}
property.c:alg_do_one:
  555|    840|{
  556|    840|    fn(alg->nid, impl->method.method, fnarg);
  557|    840|}
property.c:del_tmpalg:
  573|    656|{
  574|    656|    sk_IMPLEMENTATION_free(alg->impls);
  575|    656|    OPENSSL_free(alg);
  ------------------
  |  |  131|    656|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  576|    656|}
property.c:ossl_method_cache_flush:
  768|    344|{
  769|    344|    ALGORITHM *alg = ossl_method_store_retrieve(store, nid);
  770|       |
  771|    344|    if (alg != NULL)
  ------------------
  |  Branch (771:9): [True: 46, False: 298]
  ------------------
  772|     46|        ossl_method_cache_flush_alg(store, alg);
  773|    344|}
property.c:impl_cache_flush_alg:
  220|     46|{
  221|     46|    lh_QUERY_doall(alg->cache, &impl_cache_free);
  222|     46|    lh_QUERY_flush(alg->cache);
  223|     46|}

ossl_err_load_PROP_strings:
   40|      2|{
   41|      2|#ifndef OPENSSL_NO_ERR
   42|      2|    if (ERR_reason_error_string(PROP_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (42:9): [True: 2, False: 0]
  ------------------
   43|      2|        ERR_load_strings_const(PROP_str_reasons);
   44|      2|#endif
   45|      2|    return 1;
   46|      2|}

ossl_parse_property:
  346|     92|{
  347|     92|    OSSL_PROPERTY_DEFINITION *prop = NULL;
  348|     92|    OSSL_PROPERTY_LIST *res = NULL;
  349|     92|    STACK_OF(OSSL_PROPERTY_DEFINITION) *sk;
  ------------------
  |  |   33|     92|#define STACK_OF(type) struct stack_st_##type
  ------------------
  350|     92|    const char *s = defn;
  351|     92|    int done;
  352|       |
  353|     92|    if (s == NULL || (sk = sk_OSSL_PROPERTY_DEFINITION_new(&pd_compare)) == NULL)
  ------------------
  |  Branch (353:9): [True: 0, False: 92]
  |  Branch (353:22): [True: 0, False: 92]
  ------------------
  354|      0|        return NULL;
  355|       |
  356|     92|    s = skip_space(s);
  357|     92|    done = *s == '\0';
  358|    449|    while (!done) {
  ------------------
  |  Branch (358:12): [True: 357, False: 92]
  ------------------
  359|    357|        const char *start = s;
  360|       |
  361|    357|        prop = OPENSSL_malloc(sizeof(*prop));
  ------------------
  |  |  106|    357|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  362|    357|        if (prop == NULL)
  ------------------
  |  Branch (362:13): [True: 0, False: 357]
  ------------------
  363|      0|            goto err;
  364|    357|        memset(&prop->v, 0, sizeof(prop->v));
  365|    357|        prop->optional = 0;
  366|    357|        if (!parse_name(ctx, &s, 1, &prop->name_idx))
  ------------------
  |  Branch (366:13): [True: 0, False: 357]
  ------------------
  367|      0|            goto err;
  368|    357|        prop->oper = OSSL_PROPERTY_OPER_EQ;
  369|    357|        if (prop->name_idx == 0) {
  ------------------
  |  Branch (369:13): [True: 0, False: 357]
  ------------------
  370|      0|            ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                          ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |   35|      0|#define PROP_R_PARSE_FAILED 108
  ------------------
  371|      0|                "Unknown name HERE-->%s", start);
  372|      0|            goto err;
  373|      0|        }
  374|    357|        if (match_ch(&s, '=')) {
  ------------------
  |  Branch (374:13): [True: 357, False: 0]
  ------------------
  375|    357|            if (!parse_value(ctx, &s, prop, 1)) {
  ------------------
  |  Branch (375:17): [True: 0, False: 357]
  ------------------
  376|      0|                ERR_raise_data(ERR_LIB_PROP, PROP_R_NO_VALUE,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                              ERR_raise_data(ERR_LIB_PROP, PROP_R_NO_VALUE,
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                              ERR_raise_data(ERR_LIB_PROP, PROP_R_NO_VALUE,
  ------------------
  |  |   34|      0|#define PROP_R_NO_VALUE 107
  ------------------
  377|      0|                    "HERE-->%s", start);
  378|      0|                goto err;
  379|      0|            }
  380|    357|        } else {
  381|       |            /* A name alone means a true Boolean */
  382|      0|            prop->type = OSSL_PROPERTY_TYPE_STRING;
  383|      0|            prop->v.str_val = OSSL_PROPERTY_TRUE;
  ------------------
  |  |   39|      0|#define OSSL_PROPERTY_TRUE 1
  ------------------
  384|      0|        }
  385|       |
  386|    357|        if (!sk_OSSL_PROPERTY_DEFINITION_push(sk, prop))
  ------------------
  |  Branch (386:13): [True: 0, False: 357]
  ------------------
  387|      0|            goto err;
  388|    357|        prop = NULL;
  389|    357|        done = !match_ch(&s, ',');
  390|    357|    }
  391|     92|    if (*s != '\0') {
  ------------------
  |  Branch (391:9): [True: 0, False: 92]
  ------------------
  392|      0|        ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |   37|      0|#define PROP_R_TRAILING_CHARACTERS 110
  ------------------
  393|      0|            "HERE-->%s", s);
  394|      0|        goto err;
  395|      0|    }
  396|     92|    res = stack_to_property_list(ctx, sk);
  397|       |
  398|     92|err:
  399|     92|    OPENSSL_free(prop);
  ------------------
  |  |  131|     92|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  400|     92|    sk_OSSL_PROPERTY_DEFINITION_pop_free(sk, &pd_free);
  401|     92|    return res;
  402|     92|}
ossl_parse_query:
  406|     49|{
  407|     49|    STACK_OF(OSSL_PROPERTY_DEFINITION) *sk;
  ------------------
  |  |   33|     49|#define STACK_OF(type) struct stack_st_##type
  ------------------
  408|     49|    OSSL_PROPERTY_LIST *res = NULL;
  409|     49|    OSSL_PROPERTY_DEFINITION *prop = NULL;
  410|     49|    int done;
  411|       |
  412|     49|    if (s == NULL || (sk = sk_OSSL_PROPERTY_DEFINITION_new(&pd_compare)) == NULL)
  ------------------
  |  Branch (412:9): [True: 0, False: 49]
  |  Branch (412:22): [True: 0, False: 49]
  ------------------
  413|      0|        return NULL;
  414|       |
  415|     49|    s = skip_space(s);
  416|     49|    done = *s == '\0';
  417|     49|    while (!done) {
  ------------------
  |  Branch (417:12): [True: 0, False: 49]
  ------------------
  418|      0|        prop = OPENSSL_malloc(sizeof(*prop));
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  419|      0|        if (prop == NULL)
  ------------------
  |  Branch (419:13): [True: 0, False: 0]
  ------------------
  420|      0|            goto err;
  421|      0|        memset(&prop->v, 0, sizeof(prop->v));
  422|       |
  423|      0|        if (match_ch(&s, '-')) {
  ------------------
  |  Branch (423:13): [True: 0, False: 0]
  ------------------
  424|      0|            prop->oper = OSSL_PROPERTY_OVERRIDE;
  425|      0|            prop->optional = 0;
  426|      0|            if (!parse_name(ctx, &s, 1, &prop->name_idx))
  ------------------
  |  Branch (426:17): [True: 0, False: 0]
  ------------------
  427|      0|                goto err;
  428|      0|            goto skip_value;
  429|      0|        }
  430|      0|        prop->optional = match_ch(&s, '?');
  431|      0|        if (!parse_name(ctx, &s, 1, &prop->name_idx))
  ------------------
  |  Branch (431:13): [True: 0, False: 0]
  ------------------
  432|      0|            goto err;
  433|       |
  434|      0|        if (match_ch(&s, '=')) {
  ------------------
  |  Branch (434:13): [True: 0, False: 0]
  ------------------
  435|      0|            prop->oper = OSSL_PROPERTY_OPER_EQ;
  436|      0|        } else if (MATCH(&s, "!=")) {
  ------------------
  |  |   43|      0|#define MATCH(s, m) match(s, m, sizeof(m) - 1)
  |  |  ------------------
  |  |  |  Branch (43:21): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  437|      0|            prop->oper = OSSL_PROPERTY_OPER_NE;
  438|      0|        } else {
  439|       |            /* A name alone is a Boolean comparison for true */
  440|      0|            prop->oper = OSSL_PROPERTY_OPER_EQ;
  441|      0|            prop->type = OSSL_PROPERTY_TYPE_STRING;
  442|      0|            prop->v.str_val = OSSL_PROPERTY_TRUE;
  ------------------
  |  |   39|      0|#define OSSL_PROPERTY_TRUE 1
  ------------------
  443|      0|            goto skip_value;
  444|      0|        }
  445|      0|        if (!parse_value(ctx, &s, prop, create_values))
  ------------------
  |  Branch (445:13): [True: 0, False: 0]
  ------------------
  446|      0|            prop->type = OSSL_PROPERTY_TYPE_VALUE_UNDEFINED;
  447|       |
  448|      0|    skip_value:
  449|      0|        if (!sk_OSSL_PROPERTY_DEFINITION_push(sk, prop))
  ------------------
  |  Branch (449:13): [True: 0, False: 0]
  ------------------
  450|      0|            goto err;
  451|      0|        prop = NULL;
  452|      0|        done = !match_ch(&s, ',');
  453|      0|    }
  454|     49|    if (*s != '\0') {
  ------------------
  |  Branch (454:9): [True: 0, False: 49]
  ------------------
  455|      0|        ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |   37|      0|#define PROP_R_TRAILING_CHARACTERS 110
  ------------------
  456|      0|            "HERE-->%s", s);
  457|      0|        goto err;
  458|      0|    }
  459|     49|    res = stack_to_property_list(ctx, sk);
  460|       |
  461|     49|err:
  462|     49|    OPENSSL_free(prop);
  ------------------
  |  |  131|     49|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  463|     49|    sk_OSSL_PROPERTY_DEFINITION_pop_free(sk, &pd_free);
  464|     49|    return res;
  465|     49|}
ossl_property_match_count:
  473|     49|{
  474|     49|    const OSSL_PROPERTY_DEFINITION *const q = query->properties;
  475|     49|    const OSSL_PROPERTY_DEFINITION *const d = defn->properties;
  476|     49|    int i = 0, j = 0, matches = 0;
  477|     49|    OSSL_PROPERTY_OPER oper;
  478|       |
  479|     49|    while (i < query->num_properties) {
  ------------------
  |  Branch (479:12): [True: 0, False: 49]
  ------------------
  480|      0|        if ((oper = q[i].oper) == OSSL_PROPERTY_OVERRIDE) {
  ------------------
  |  Branch (480:13): [True: 0, False: 0]
  ------------------
  481|      0|            i++;
  482|      0|            continue;
  483|      0|        }
  484|      0|        if (j < defn->num_properties) {
  ------------------
  |  Branch (484:13): [True: 0, False: 0]
  ------------------
  485|      0|            if (q[i].name_idx > d[j].name_idx) { /* skip defn, not in query */
  ------------------
  |  Branch (485:17): [True: 0, False: 0]
  ------------------
  486|      0|                j++;
  487|      0|                continue;
  488|      0|            }
  489|      0|            if (q[i].name_idx == d[j].name_idx) { /* both in defn and query */
  ------------------
  |  Branch (489:17): [True: 0, False: 0]
  ------------------
  490|      0|                const int eq = q[i].type == d[j].type
  ------------------
  |  Branch (490:32): [True: 0, False: 0]
  ------------------
  491|      0|                    && memcmp(&q[i].v, &d[j].v, sizeof(q[i].v)) == 0;
  ------------------
  |  Branch (491:24): [True: 0, False: 0]
  ------------------
  492|       |
  493|      0|                if ((eq && oper == OSSL_PROPERTY_OPER_EQ)
  ------------------
  |  Branch (493:22): [True: 0, False: 0]
  |  Branch (493:28): [True: 0, False: 0]
  ------------------
  494|      0|                    || (!eq && oper == OSSL_PROPERTY_OPER_NE))
  ------------------
  |  Branch (494:25): [True: 0, False: 0]
  |  Branch (494:32): [True: 0, False: 0]
  ------------------
  495|      0|                    matches++;
  496|      0|                else if (!q[i].optional)
  ------------------
  |  Branch (496:26): [True: 0, False: 0]
  ------------------
  497|      0|                    return -1;
  498|      0|                i++;
  499|      0|                j++;
  500|      0|                continue;
  501|      0|            }
  502|      0|        }
  503|       |
  504|       |        /*
  505|       |         * Handle the cases of a missing value and a query with no corresponding
  506|       |         * definition.  The former fails for any comparison except inequality,
  507|       |         * the latter is treated as a comparison against the Boolean false.
  508|       |         */
  509|      0|        if (q[i].type == OSSL_PROPERTY_TYPE_VALUE_UNDEFINED) {
  ------------------
  |  Branch (509:13): [True: 0, False: 0]
  ------------------
  510|      0|            if (oper == OSSL_PROPERTY_OPER_NE)
  ------------------
  |  Branch (510:17): [True: 0, False: 0]
  ------------------
  511|      0|                matches++;
  512|      0|            else if (!q[i].optional)
  ------------------
  |  Branch (512:22): [True: 0, False: 0]
  ------------------
  513|      0|                return -1;
  514|      0|        } else if (q[i].type != OSSL_PROPERTY_TYPE_STRING
  ------------------
  |  Branch (514:20): [True: 0, False: 0]
  ------------------
  515|      0|            || (oper == OSSL_PROPERTY_OPER_EQ
  ------------------
  |  Branch (515:17): [True: 0, False: 0]
  ------------------
  516|      0|                && q[i].v.str_val != OSSL_PROPERTY_FALSE)
  ------------------
  |  |   40|      0|#define OSSL_PROPERTY_FALSE 2
  ------------------
  |  Branch (516:20): [True: 0, False: 0]
  ------------------
  517|      0|            || (oper == OSSL_PROPERTY_OPER_NE
  ------------------
  |  Branch (517:17): [True: 0, False: 0]
  ------------------
  518|      0|                && q[i].v.str_val == OSSL_PROPERTY_FALSE)) {
  ------------------
  |  |   40|      0|#define OSSL_PROPERTY_FALSE 2
  ------------------
  |  Branch (518:20): [True: 0, False: 0]
  ------------------
  519|      0|            if (!q[i].optional)
  ------------------
  |  Branch (519:17): [True: 0, False: 0]
  ------------------
  520|      0|                return -1;
  521|      0|        } else {
  522|      0|            matches++;
  523|      0|        }
  524|      0|        i++;
  525|      0|    }
  526|     49|    return matches;
  527|     49|}
ossl_property_free:
  530|     51|{
  531|     51|    OPENSSL_free(p);
  ------------------
  |  |  131|     51|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  532|     51|}
ossl_property_parse_init:
  575|      2|{
  576|      2|    static const char *const predefined_names[] = {
  577|      2|        "provider", /* Name of provider (default, legacy, fips) */
  578|      2|        "version", /* Version number of this provider */
  579|      2|        "fips", /* FIPS validated or FIPS supporting algorithm */
  580|      2|        "output", /* Output type for encoders */
  581|      2|        "input", /* Input type for decoders */
  582|      2|        "structure", /* Structure name for encoders and decoders */
  583|      2|    };
  584|      2|    size_t i;
  585|       |
  586|     14|    for (i = 0; i < OSSL_NELEM(predefined_names); i++)
  ------------------
  |  |   14|     14|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (586:17): [True: 12, False: 2]
  ------------------
  587|     12|        if (ossl_property_name(ctx, predefined_names[i], 1) == 0)
  ------------------
  |  Branch (587:13): [True: 0, False: 12]
  ------------------
  588|      0|            goto err;
  589|       |
  590|       |    /*
  591|       |     * Pre-populate the two Boolean values. We must do them before any other
  592|       |     * values and in this order so that we get the same index as the global
  593|       |     * OSSL_PROPERTY_TRUE and OSSL_PROPERTY_FALSE values
  594|       |     */
  595|      2|    if ((ossl_property_value(ctx, "yes", 1) != OSSL_PROPERTY_TRUE)
  ------------------
  |  |   39|      2|#define OSSL_PROPERTY_TRUE 1
  ------------------
  |  Branch (595:9): [True: 0, False: 2]
  ------------------
  596|      2|        || (ossl_property_value(ctx, "no", 1) != OSSL_PROPERTY_FALSE))
  ------------------
  |  |   40|      2|#define OSSL_PROPERTY_FALSE 2
  ------------------
  |  Branch (596:12): [True: 0, False: 2]
  ------------------
  597|      0|        goto err;
  598|       |
  599|      2|    return 1;
  600|      0|err:
  601|      0|    return 0;
  602|      2|}
property_parse.c:pd_compare:
  289|    348|{
  290|    348|    const OSSL_PROPERTY_DEFINITION *pd1 = *p1;
  291|    348|    const OSSL_PROPERTY_DEFINITION *pd2 = *p2;
  292|       |
  293|    348|    if (pd1->name_idx < pd2->name_idx)
  ------------------
  |  Branch (293:9): [True: 348, False: 0]
  ------------------
  294|    348|        return -1;
  295|      0|    if (pd1->name_idx > pd2->name_idx)
  ------------------
  |  Branch (295:9): [True: 0, False: 0]
  ------------------
  296|      0|        return 1;
  297|      0|    return 0;
  298|      0|}
property_parse.c:skip_space:
   26|  1.47k|{
   27|  1.47k|    while (ossl_isspace(*s))
  ------------------
  |  |   82|  1.47k|#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
  |  |  ------------------
  |  |  |  |   30|  1.47k|#define CTYPE_MASK_space 0x8
  |  |  ------------------
  |  |  |  Branch (82:25): [True: 0, False: 1.47k]
  |  |  ------------------
  ------------------
   28|      0|        s++;
   29|  1.47k|    return s;
   30|  1.47k|}
property_parse.c:parse_name:
   58|    357|{
   59|    357|    char name[100];
   60|    357|    int err = 0;
   61|    357|    size_t i = 0;
   62|    357|    const char *s = *t;
   63|    357|    int user_name = 0;
   64|       |
   65|    357|    for (;;) {
   66|    357|        if (!ossl_isalpha(*s)) {
  ------------------
  |  |   71|    357|#define ossl_isalpha(c) (ossl_ctype_check((c), CTYPE_MASK_alpha))
  |  |  ------------------
  |  |  |  |   40|    357|#define CTYPE_MASK_alpha (CTYPE_MASK_lower | CTYPE_MASK_upper)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    357|#define CTYPE_MASK_lower 0x1
  |  |  |  |  ------------------
  |  |  |  |               #define CTYPE_MASK_alpha (CTYPE_MASK_lower | CTYPE_MASK_upper)
  |  |  |  |  ------------------
  |  |  |  |  |  |   28|    357|#define CTYPE_MASK_upper 0x2
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (66:13): [True: 0, False: 357]
  ------------------
   67|      0|            ERR_raise_data(ERR_LIB_PROP, PROP_R_NOT_AN_IDENTIFIER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROP, PROP_R_NOT_AN_IDENTIFIER,
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                          ERR_raise_data(ERR_LIB_PROP, PROP_R_NOT_AN_IDENTIFIER,
  ------------------
  |  |   30|      0|#define PROP_R_NOT_AN_IDENTIFIER 103
  ------------------
   68|      0|                "HERE-->%s", *t);
   69|      0|            return 0;
   70|      0|        }
   71|  2.30k|        do {
   72|  2.30k|            if (i < sizeof(name) - 1)
  ------------------
  |  Branch (72:17): [True: 2.30k, False: 0]
  ------------------
   73|  2.30k|                name[i++] = ossl_tolower(*s);
   74|      0|            else
   75|      0|                err = 1;
   76|  2.30k|        } while (*++s == '_' || ossl_isalnum(*s));
  ------------------
  |  |   70|  2.30k|#define ossl_isalnum(c) (ossl_ctype_check((c), CTYPE_MASK_alnum))
  |  |  ------------------
  |  |  |  |   41|  2.30k|#define CTYPE_MASK_alnum (CTYPE_MASK_alpha | CTYPE_MASK_digit)
  |  |  |  |  ------------------
  |  |  |  |  |  |   40|  2.30k|#define CTYPE_MASK_alpha (CTYPE_MASK_lower | CTYPE_MASK_upper)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   27|  2.30k|#define CTYPE_MASK_lower 0x1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CTYPE_MASK_alpha (CTYPE_MASK_lower | CTYPE_MASK_upper)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   28|  2.30k|#define CTYPE_MASK_upper 0x2
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define CTYPE_MASK_alnum (CTYPE_MASK_alpha | CTYPE_MASK_digit)
  |  |  |  |  ------------------
  |  |  |  |  |  |   29|  2.30k|#define CTYPE_MASK_digit 0x4
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (70:25): [True: 1.94k, False: 357]
  |  |  ------------------
  ------------------
  |  Branch (76:18): [True: 0, False: 2.30k]
  ------------------
   77|    357|        if (*s != '.')
  ------------------
  |  Branch (77:13): [True: 357, False: 0]
  ------------------
   78|    357|            break;
   79|      0|        user_name = 1;
   80|      0|        if (i < sizeof(name) - 1)
  ------------------
  |  Branch (80:13): [True: 0, False: 0]
  ------------------
   81|      0|            name[i++] = *s;
   82|      0|        else
   83|      0|            err = 1;
   84|      0|        s++;
   85|      0|    }
   86|    357|    name[i] = '\0';
   87|    357|    if (err) {
  ------------------
  |  Branch (87:9): [True: 0, False: 357]
  ------------------
   88|      0|        ERR_raise_data(ERR_LIB_PROP, PROP_R_NAME_TOO_LONG, "HERE-->%s", *t);
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_NAME_TOO_LONG, "HERE-->%s", *t);
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_NAME_TOO_LONG, "HERE-->%s", *t);
  ------------------
  |  |   27|      0|#define PROP_R_NAME_TOO_LONG 100
  ------------------
   89|      0|        return 0;
   90|      0|    }
   91|    357|    *t = skip_space(s);
   92|    357|    *idx = ossl_property_name(ctx, name, user_name && create);
  ------------------
  |  Branch (92:42): [True: 0, False: 357]
  |  Branch (92:55): [True: 0, False: 0]
  ------------------
   93|    357|    return 1;
   94|    357|}
property_parse.c:match_ch:
   33|    714|{
   34|    714|    const char *s = *t;
   35|       |
   36|    714|    if (*s == m) {
  ------------------
  |  Branch (36:9): [True: 622, False: 92]
  ------------------
   37|    622|        *t = skip_space(s + 1);
   38|    622|        return 1;
   39|    622|    }
   40|     92|    return 0;
   41|    714|}
property_parse.c:parse_value:
  258|    357|{
  259|    357|    const char *s = *t;
  260|    357|    int r = 0;
  261|       |
  262|    357|    if (*s == '"' || *s == '\'') {
  ------------------
  |  Branch (262:9): [True: 0, False: 357]
  |  Branch (262:22): [True: 0, False: 357]
  ------------------
  263|      0|        s++;
  264|      0|        r = parse_string(ctx, &s, s[-1], res, create);
  265|    357|    } else if (*s == '+') {
  ------------------
  |  Branch (265:16): [True: 0, False: 357]
  ------------------
  266|      0|        s++;
  267|      0|        r = parse_number(&s, res);
  268|    357|    } else if (*s == '-') {
  ------------------
  |  Branch (268:16): [True: 0, False: 357]
  ------------------
  269|      0|        s++;
  270|      0|        r = parse_number(&s, res);
  271|      0|        res->v.int_val = -res->v.int_val;
  272|    357|    } else if (*s == '0' && s[1] == 'x') {
  ------------------
  |  Branch (272:16): [True: 0, False: 357]
  |  Branch (272:29): [True: 0, False: 0]
  ------------------
  273|      0|        s += 2;
  274|      0|        r = parse_hex(&s, res);
  275|    357|    } else if (*s == '0' && ossl_isdigit(s[1])) {
  ------------------
  |  Branch (275:16): [True: 0, False: 357]
  |  Branch (275:29): [True: 0, False: 0]
  ------------------
  276|      0|        s++;
  277|      0|        r = parse_oct(&s, res);
  278|    357|    } else if (ossl_isdigit(*s)) {
  ------------------
  |  Branch (278:16): [True: 0, False: 357]
  ------------------
  279|      0|        return parse_number(t, res);
  280|    357|    } else if (ossl_isalpha(*s))
  ------------------
  |  |   71|    357|#define ossl_isalpha(c) (ossl_ctype_check((c), CTYPE_MASK_alpha))
  |  |  ------------------
  |  |  |  |   40|    357|#define CTYPE_MASK_alpha (CTYPE_MASK_lower | CTYPE_MASK_upper)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    357|#define CTYPE_MASK_lower 0x1
  |  |  |  |  ------------------
  |  |  |  |               #define CTYPE_MASK_alpha (CTYPE_MASK_lower | CTYPE_MASK_upper)
  |  |  |  |  ------------------
  |  |  |  |  |  |   28|    357|#define CTYPE_MASK_upper 0x2
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (71:25): [True: 357, False: 0]
  |  |  ------------------
  ------------------
  281|    357|        return parse_unquoted(ctx, t, res, create);
  282|      0|    if (r)
  ------------------
  |  Branch (282:9): [True: 0, False: 0]
  ------------------
  283|      0|        *t = s;
  284|      0|    return r;
  285|    357|}
property_parse.c:parse_unquoted:
  226|    357|{
  227|    357|    char v[1000];
  228|    357|    const char *s = *t;
  229|    357|    size_t i = 0;
  230|    357|    int err = 0;
  231|       |
  232|    357|    if (*s == '\0' || *s == ',')
  ------------------
  |  Branch (232:9): [True: 0, False: 357]
  |  Branch (232:23): [True: 0, False: 357]
  ------------------
  233|      0|        return 0;
  234|  2.80k|    while (ossl_isprint(*s) && !ossl_isspace(*s) && *s != ',') {
  ------------------
  |  |   80|  5.60k|#define ossl_isprint(c) (ossl_ctype_check((c), CTYPE_MASK_print))
  |  |  ------------------
  |  |  |  |   35|  2.80k|#define CTYPE_MASK_print 0x100
  |  |  ------------------
  |  |  |  Branch (80:25): [True: 2.70k, False: 92]
  |  |  ------------------
  ------------------
                  while (ossl_isprint(*s) && !ossl_isspace(*s) && *s != ',') {
  ------------------
  |  |   82|  5.50k|#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
  |  |  ------------------
  |  |  |  |   30|  2.70k|#define CTYPE_MASK_space 0x8
  |  |  ------------------
  ------------------
  |  Branch (234:32): [True: 2.70k, False: 0]
  |  Branch (234:53): [True: 2.44k, False: 265]
  ------------------
  235|  2.44k|        if (i < sizeof(v) - 1)
  ------------------
  |  Branch (235:13): [True: 2.44k, False: 0]
  ------------------
  236|  2.44k|            v[i++] = ossl_tolower(*s);
  237|      0|        else
  238|      0|            err = 1;
  239|  2.44k|        s++;
  240|  2.44k|    }
  241|    357|    if (!ossl_isspace(*s) && *s != '\0' && *s != ',') {
  ------------------
  |  |   82|    714|#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
  |  |  ------------------
  |  |  |  |   30|    357|#define CTYPE_MASK_space 0x8
  |  |  ------------------
  ------------------
  |  Branch (241:9): [True: 357, False: 0]
  |  Branch (241:30): [True: 265, False: 92]
  |  Branch (241:44): [True: 0, False: 265]
  ------------------
  242|      0|        ERR_raise_data(ERR_LIB_PROP, PROP_R_NOT_AN_ASCII_CHARACTER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_NOT_AN_ASCII_CHARACTER,
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_NOT_AN_ASCII_CHARACTER,
  ------------------
  |  |   28|      0|#define PROP_R_NOT_AN_ASCII_CHARACTER 101
  ------------------
  243|      0|            "HERE-->%s", s);
  244|      0|        return 0;
  245|      0|    }
  246|    357|    v[i] = 0;
  247|    357|    if (err)
  ------------------
  |  Branch (247:9): [True: 0, False: 357]
  ------------------
  248|      0|        ERR_raise_data(ERR_LIB_PROP, PROP_R_STRING_TOO_LONG, "HERE-->%s", *t);
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_STRING_TOO_LONG, "HERE-->%s", *t);
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_STRING_TOO_LONG, "HERE-->%s", *t);
  ------------------
  |  |   36|      0|#define PROP_R_STRING_TOO_LONG 109
  ------------------
  249|    357|    else if ((res->v.str_val = ossl_property_value(ctx, v, create)) == 0)
  ------------------
  |  Branch (249:14): [True: 0, False: 357]
  ------------------
  250|      0|        err = 1;
  251|    357|    *t = skip_space(s);
  252|    357|    res->type = OSSL_PROPERTY_TYPE_STRING;
  253|    357|    return !err;
  254|    357|}
property_parse.c:stack_to_property_list:
  314|    141|{
  315|    141|    const int n = sk_OSSL_PROPERTY_DEFINITION_num(sk);
  316|    141|    OSSL_PROPERTY_LIST *r;
  317|    141|    OSSL_PROPERTY_IDX prev_name_idx = 0;
  318|    141|    int i;
  319|       |
  320|    141|    r = OPENSSL_malloc(sizeof(*r)
  ------------------
  |  |  106|    282|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (106:19): [True: 49, False: 92]
  |  |  ------------------
  ------------------
  321|    141|        + (n <= 0 ? 0 : n - 1) * sizeof(r->properties[0]));
  322|    141|    if (r != NULL) {
  ------------------
  |  Branch (322:9): [True: 141, False: 0]
  ------------------
  323|    141|        sk_OSSL_PROPERTY_DEFINITION_sort(sk);
  324|       |
  325|    141|        r->has_optional = 0;
  326|    498|        for (i = 0; i < n; i++) {
  ------------------
  |  Branch (326:21): [True: 357, False: 141]
  ------------------
  327|    357|            r->properties[i] = *sk_OSSL_PROPERTY_DEFINITION_value(sk, i);
  328|    357|            r->has_optional |= r->properties[i].optional;
  329|       |
  330|       |            /* Check for duplicated names */
  331|    357|            if (i > 0 && r->properties[i].name_idx == prev_name_idx) {
  ------------------
  |  Branch (331:17): [True: 265, False: 92]
  |  Branch (331:26): [True: 0, False: 265]
  ------------------
  332|      0|                OPENSSL_free(r);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  333|      0|                ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                              ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |  118|      0|#define ERR_LIB_PROP 55
  ------------------
                              ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |   35|      0|#define PROP_R_PARSE_FAILED 108
  ------------------
  334|      0|                    "Duplicated name `%s'",
  335|      0|                    ossl_property_name_str(ctx, prev_name_idx));
  336|      0|                return NULL;
  337|      0|            }
  338|    357|            prev_name_idx = r->properties[i].name_idx;
  339|    357|        }
  340|    141|        r->num_properties = n;
  341|    141|    }
  342|    141|    return r;
  343|    141|}
property_parse.c:pd_free:
  301|    357|{
  302|    357|    OPENSSL_free(pd);
  ------------------
  |  |  131|    357|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  303|    357|}

ossl_property_find_property:
   25|     34|{
   26|     34|    OSSL_PROPERTY_IDX name_idx;
   27|       |
   28|     34|    if (list == NULL || name == NULL
  ------------------
  |  Branch (28:9): [True: 0, False: 34]
  |  Branch (28:25): [True: 0, False: 34]
  ------------------
   29|     34|        || (name_idx = ossl_property_name(libctx, name, 0)) == 0)
  ------------------
  |  Branch (29:12): [True: 0, False: 34]
  ------------------
   30|      0|        return NULL;
   31|       |
   32|     34|    return ossl_bsearch(&name_idx, list->properties, list->num_properties,
   33|     34|        sizeof(*list->properties), &property_idx_cmp, 0);
   34|     34|}
ossl_property_get_string_value:
   43|     26|{
   44|     26|    const char *value = NULL;
   45|       |
   46|     26|    if (prop != NULL && prop->type == OSSL_PROPERTY_TYPE_STRING)
  ------------------
  |  Branch (46:9): [True: 26, False: 0]
  |  Branch (46:25): [True: 26, False: 0]
  ------------------
   47|     26|        value = ossl_property_value_str(libctx, prop->v.str_val);
   48|     26|    return value;
   49|     26|}
ossl_property_has_optional:
   62|     49|{
   63|     49|    return query->has_optional ? 1 : 0;
  ------------------
  |  Branch (63:12): [True: 0, False: 49]
  ------------------
   64|     49|}
property_query.c:property_idx_cmp:
   15|     59|{
   16|     59|    OSSL_PROPERTY_IDX key = *(const OSSL_PROPERTY_IDX *)keyp;
   17|     59|    const OSSL_PROPERTY_DEFINITION *defn = (const OSSL_PROPERTY_DEFINITION *)compare;
   18|       |
   19|     59|    return key - defn->name_idx;
   20|     59|}

ossl_property_string_data_new:
   97|      2|{
   98|      2|    PROPERTY_STRING_DATA *propdata = OPENSSL_zalloc(sizeof(*propdata));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   99|       |
  100|      2|    if (propdata == NULL)
  ------------------
  |  Branch (100:9): [True: 0, False: 2]
  ------------------
  101|      0|        return NULL;
  102|       |
  103|      2|    propdata->lock = CRYPTO_THREAD_lock_new();
  104|      2|    propdata->prop_names = lh_PROPERTY_STRING_new(&property_hash,
  105|      2|        &property_cmp);
  106|      2|    propdata->prop_values = lh_PROPERTY_STRING_new(&property_hash,
  107|      2|        &property_cmp);
  108|      2|#ifndef OPENSSL_SMALL_FOOTPRINT
  109|      2|    propdata->prop_namelist = sk_OPENSSL_CSTRING_new_null();
  ------------------
  |  |  261|      2|#define sk_OPENSSL_CSTRING_new_null() ((STACK_OF(OPENSSL_CSTRING) *)OPENSSL_sk_new_null())
  ------------------
  110|      2|    propdata->prop_valuelist = sk_OPENSSL_CSTRING_new_null();
  ------------------
  |  |  261|      2|#define sk_OPENSSL_CSTRING_new_null() ((STACK_OF(OPENSSL_CSTRING) *)OPENSSL_sk_new_null())
  ------------------
  111|      2|#endif
  112|      2|    if (propdata->lock == NULL
  ------------------
  |  Branch (112:9): [True: 0, False: 2]
  ------------------
  113|      2|#ifndef OPENSSL_SMALL_FOOTPRINT
  114|      2|        || propdata->prop_namelist == NULL
  ------------------
  |  Branch (114:12): [True: 0, False: 2]
  ------------------
  115|      2|        || propdata->prop_valuelist == NULL
  ------------------
  |  Branch (115:12): [True: 0, False: 2]
  ------------------
  116|      2|#endif
  117|      2|        || propdata->prop_names == NULL
  ------------------
  |  Branch (117:12): [True: 0, False: 2]
  ------------------
  118|      2|        || propdata->prop_values == NULL) {
  ------------------
  |  Branch (118:12): [True: 0, False: 2]
  ------------------
  119|      0|        ossl_property_string_data_free(propdata);
  120|      0|        return NULL;
  121|      0|    }
  122|      2|    return propdata;
  123|      2|}
ossl_property_name:
  255|    403|{
  256|    403|    return ossl_property_string(ctx, 1, create, s);
  257|    403|}
ossl_property_value:
  266|    361|{
  267|    361|    return ossl_property_string(ctx, 0, create, s);
  268|    361|}
ossl_property_value_str:
  271|     26|{
  272|     26|    return ossl_property_str(0, ctx, idx);
  273|     26|}
property_string.c:property_hash:
   51|    824|{
   52|    824|    return OPENSSL_LH_strhash(a->s);
   53|    824|}
property_string.c:property_cmp:
   56|    734|{
   57|    734|    return strcmp(a->s, b->s);
   58|    734|}
property_string.c:ossl_property_string:
  145|    764|{
  146|    764|    PROPERTY_STRING p, *ps, *ps_new;
  147|    764|    PROP_TABLE *t;
  148|    764|    OSSL_PROPERTY_IDX *pidx;
  149|    764|    PROPERTY_STRING_DATA *propdata
  150|    764|        = ossl_lib_ctx_get_data(ctx, OSSL_LIB_CTX_PROPERTY_STRING_INDEX);
  ------------------
  |  |   99|    764|#define OSSL_LIB_CTX_PROPERTY_STRING_INDEX 3
  ------------------
  151|       |
  152|    764|    if (propdata == NULL)
  ------------------
  |  Branch (152:9): [True: 0, False: 764]
  ------------------
  153|      0|        return 0;
  154|       |
  155|    764|    t = name ? propdata->prop_names : propdata->prop_values;
  ------------------
  |  Branch (155:9): [True: 403, False: 361]
  ------------------
  156|    764|    p.s = s;
  157|    764|    if (!CRYPTO_THREAD_read_lock(propdata->lock)) {
  ------------------
  |  Branch (157:9): [True: 0, False: 764]
  ------------------
  158|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_UNABLE_TO_GET_READ_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  159|      0|        return 0;
  160|      0|    }
  161|    764|    ps = lh_PROPERTY_STRING_retrieve(t, &p);
  162|    764|    if (ps == NULL && create) {
  ------------------
  |  Branch (162:9): [True: 30, False: 734]
  |  Branch (162:23): [True: 30, False: 0]
  ------------------
  163|     30|        CRYPTO_THREAD_unlock(propdata->lock);
  164|     30|        if (!CRYPTO_THREAD_write_lock(propdata->lock)) {
  ------------------
  |  Branch (164:13): [True: 0, False: 30]
  ------------------
  165|      0|            ERR_raise(ERR_LIB_CRYPTO, ERR_R_UNABLE_TO_GET_WRITE_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  166|      0|            return 0;
  167|      0|        }
  168|     30|        pidx = name ? &propdata->prop_name_idx : &propdata->prop_value_idx;
  ------------------
  |  Branch (168:16): [True: 12, False: 18]
  ------------------
  169|     30|        ps = lh_PROPERTY_STRING_retrieve(t, &p);
  170|     30|        if (ps == NULL && (ps_new = new_property_string(s, pidx)) != NULL) {
  ------------------
  |  Branch (170:13): [True: 30, False: 0]
  |  Branch (170:27): [True: 30, False: 0]
  ------------------
  171|     30|#ifndef OPENSSL_SMALL_FOOTPRINT
  172|     30|            STACK_OF(OPENSSL_CSTRING) *slist;
  ------------------
  |  |   33|     30|#define STACK_OF(type) struct stack_st_##type
  ------------------
  173|       |
  174|     30|            slist = name ? propdata->prop_namelist : propdata->prop_valuelist;
  ------------------
  |  Branch (174:21): [True: 12, False: 18]
  ------------------
  175|     30|            if (sk_OPENSSL_CSTRING_push(slist, ps_new->s) <= 0) {
  ------------------
  |  |  268|     30|#define sk_OPENSSL_CSTRING_push(sk, ptr) OPENSSL_sk_push(ossl_check_OPENSSL_CSTRING_sk_type(sk), ossl_check_OPENSSL_CSTRING_type(ptr))
  ------------------
  |  Branch (175:17): [True: 0, False: 30]
  ------------------
  176|      0|                property_free(ps_new);
  177|      0|                CRYPTO_THREAD_unlock(propdata->lock);
  178|      0|                return 0;
  179|      0|            }
  180|     30|#endif
  181|     30|            lh_PROPERTY_STRING_insert(t, ps_new);
  182|     30|            if (lh_PROPERTY_STRING_error(t)) {
  ------------------
  |  Branch (182:17): [True: 0, False: 30]
  ------------------
  183|       |                /*-
  184|       |                 * Undo the previous push which means also decrementing the
  185|       |                 * index and freeing the allocated storage.
  186|       |                 */
  187|      0|#ifndef OPENSSL_SMALL_FOOTPRINT
  188|      0|                sk_OPENSSL_CSTRING_pop(slist);
  ------------------
  |  |  270|      0|#define sk_OPENSSL_CSTRING_pop(sk) ((const char *)OPENSSL_sk_pop(ossl_check_OPENSSL_CSTRING_sk_type(sk)))
  ------------------
  189|      0|#endif
  190|      0|                property_free(ps_new);
  191|      0|                --*pidx;
  192|      0|                CRYPTO_THREAD_unlock(propdata->lock);
  193|      0|                return 0;
  194|      0|            }
  195|     30|            ps = ps_new;
  196|     30|        }
  197|     30|    }
  198|    764|    CRYPTO_THREAD_unlock(propdata->lock);
  199|    764|    return ps != NULL ? ps->idx : 0;
  ------------------
  |  Branch (199:12): [True: 764, False: 0]
  ------------------
  200|    764|}
property_string.c:new_property_string:
  127|     30|{
  128|     30|    const size_t l = strlen(s);
  129|     30|    PROPERTY_STRING *ps = OPENSSL_malloc(sizeof(*ps) + l);
  ------------------
  |  |  106|     30|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  130|       |
  131|     30|    if (ps != NULL) {
  ------------------
  |  Branch (131:9): [True: 30, False: 0]
  ------------------
  132|     30|        memcpy(ps->body, s, l + 1);
  133|     30|        ps->s = ps->body;
  134|     30|        ps->idx = ++*pidx;
  135|     30|        if (ps->idx == 0) {
  ------------------
  |  Branch (135:13): [True: 0, False: 30]
  ------------------
  136|      0|            OPENSSL_free(ps);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  137|      0|            return NULL;
  138|      0|        }
  139|     30|    }
  140|     30|    return ps;
  141|     30|}
property_string.c:ossl_property_str:
  219|     26|{
  220|     26|    const char *r;
  221|     26|    PROPERTY_STRING_DATA *propdata
  222|     26|        = ossl_lib_ctx_get_data(ctx, OSSL_LIB_CTX_PROPERTY_STRING_INDEX);
  ------------------
  |  |   99|     26|#define OSSL_LIB_CTX_PROPERTY_STRING_INDEX 3
  ------------------
  223|       |
  224|     26|    if (propdata == NULL)
  ------------------
  |  Branch (224:9): [True: 0, False: 26]
  ------------------
  225|      0|        return NULL;
  226|       |
  227|     26|    if (!CRYPTO_THREAD_read_lock(propdata->lock)) {
  ------------------
  |  Branch (227:9): [True: 0, False: 26]
  ------------------
  228|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_UNABLE_TO_GET_READ_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  229|      0|        return NULL;
  230|      0|    }
  231|       |#ifdef OPENSSL_SMALL_FOOTPRINT
  232|       |    {
  233|       |        struct find_str_st findstr;
  234|       |
  235|       |        findstr.str = NULL;
  236|       |        findstr.idx = idx;
  237|       |
  238|       |        lh_PROPERTY_STRING_doall_arg(name ? propdata->prop_names
  239|       |                                          : propdata->prop_values,
  240|       |            find_str_fn, &findstr);
  241|       |        r = findstr.str;
  242|       |    }
  243|       |#else
  244|     26|    r = sk_OPENSSL_CSTRING_value(name ? propdata->prop_namelist
  ------------------
  |  |  259|     52|#define sk_OPENSSL_CSTRING_value(sk, idx) ((const char *)OPENSSL_sk_value(ossl_check_const_OPENSSL_CSTRING_sk_type(sk), (idx)))
  |  |  ------------------
  |  |  |  Branch (259:116): [True: 0, False: 26]
  |  |  ------------------
  ------------------
  245|     26|                                      : propdata->prop_valuelist,
  246|     26|        idx - 1);
  247|     26|#endif
  248|     26|    CRYPTO_THREAD_unlock(propdata->lock);
  249|       |
  250|     26|    return r;
  251|     26|}

OSSL_PROVIDER_get0_provider_ctx:
  104|   184k|{
  105|   184k|    return ossl_provider_ctx(prov);
  106|   184k|}
OSSL_PROVIDER_get_capabilities:
  122|    440|{
  123|    440|    return ossl_provider_get_capabilities(prov, capability, cb, arg);
  124|    440|}
OSSL_PROVIDER_do_all:
  156|    440|{
  157|    440|    return ossl_provider_doall_activated(ctx, cb, cbdata);
  158|    440|}

ossl_child_prov_ctx_new:
   38|      2|{
   39|      2|    return OPENSSL_zalloc(sizeof(struct child_prov_globals));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   40|      2|}

ossl_prov_conf_ctx_new:
   31|      2|{
   32|      2|    PROVIDER_CONF_GLOBAL *pcgbl = OPENSSL_zalloc(sizeof(*pcgbl));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   33|       |
   34|      2|    if (pcgbl == NULL)
  ------------------
  |  Branch (34:9): [True: 0, False: 2]
  ------------------
   35|      0|        return NULL;
   36|       |
   37|      2|    pcgbl->lock = CRYPTO_THREAD_lock_new();
   38|      2|    if (pcgbl->lock == NULL) {
  ------------------
  |  Branch (38:9): [True: 0, False: 2]
  ------------------
   39|      0|        OPENSSL_free(pcgbl);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   40|      0|        return NULL;
   41|      0|    }
   42|       |
   43|      2|    return pcgbl;
   44|      2|}

ossl_provider_store_new:
  310|      2|{
  311|      2|    struct provider_store_st *store = OPENSSL_zalloc(sizeof(*store));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  312|       |
  313|      2|    if (store == NULL
  ------------------
  |  Branch (313:9): [True: 0, False: 2]
  ------------------
  314|      2|        || (store->providers = sk_OSSL_PROVIDER_new(ossl_provider_cmp)) == NULL
  ------------------
  |  Branch (314:12): [True: 0, False: 2]
  ------------------
  315|      2|        || (store->default_path_lock = CRYPTO_THREAD_lock_new()) == NULL
  ------------------
  |  Branch (315:12): [True: 0, False: 2]
  ------------------
  316|      2|#ifndef FIPS_MODULE
  317|      2|        || (store->child_cbs = sk_OSSL_PROVIDER_CHILD_CB_new_null()) == NULL
  ------------------
  |  Branch (317:12): [True: 0, False: 2]
  ------------------
  318|      2|#endif
  319|      2|        || (store->lock = CRYPTO_THREAD_lock_new()) == NULL) {
  ------------------
  |  Branch (319:12): [True: 0, False: 2]
  ------------------
  320|      0|        ossl_provider_store_free(store);
  321|      0|        return NULL;
  322|      0|    }
  323|      2|    store->libctx = ctx;
  324|      2|    store->use_fallbacks = 1;
  325|       |
  326|      2|    return store;
  327|      2|}
ossl_provider_find:
  401|      3|{
  402|      3|    struct provider_store_st *store = NULL;
  403|      3|    OSSL_PROVIDER *prov = NULL;
  404|       |
  405|      3|    if ((store = get_provider_store(libctx)) != NULL) {
  ------------------
  |  Branch (405:9): [True: 3, False: 0]
  ------------------
  406|      3|        OSSL_PROVIDER tmpl = {
  407|      3|            0,
  408|      3|        };
  409|      3|        int i;
  410|       |
  411|      3|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_AUTOLOAD_CONFIG)
  412|       |        /*
  413|       |         * Make sure any providers are loaded from config before we try to find
  414|       |         * them.
  415|       |         */
  416|      3|        if (!noconfig) {
  ------------------
  |  Branch (416:13): [True: 0, False: 3]
  ------------------
  417|      0|            if (ossl_lib_ctx_is_default(libctx))
  ------------------
  |  Branch (417:17): [True: 0, False: 0]
  ------------------
  418|      0|                OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL);
  ------------------
  |  |  510|      0|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  419|      0|        }
  420|      3|#endif
  421|       |
  422|      3|        tmpl.name = (char *)name;
  423|      3|        if (!CRYPTO_THREAD_write_lock(store->lock))
  ------------------
  |  Branch (423:13): [True: 0, False: 3]
  ------------------
  424|      0|            return NULL;
  425|      3|        sk_OSSL_PROVIDER_sort(store->providers);
  426|      3|        if ((i = sk_OSSL_PROVIDER_find(store->providers, &tmpl)) != -1)
  ------------------
  |  Branch (426:13): [True: 3, False: 0]
  ------------------
  427|      3|            prov = sk_OSSL_PROVIDER_value(store->providers, i);
  428|      3|        CRYPTO_THREAD_unlock(store->lock);
  429|      3|        if (prov != NULL && !ossl_provider_up_ref(prov))
  ------------------
  |  Branch (429:13): [True: 3, False: 0]
  |  Branch (429:29): [True: 0, False: 3]
  ------------------
  430|      0|            prov = NULL;
  431|      3|    }
  432|       |
  433|      3|    return prov;
  434|      3|}
ossl_provider_up_ref:
  480|    347|{
  481|    347|    int ref = 0;
  482|       |
  483|    347|    if (CRYPTO_UP_REF(&prov->refcnt, &ref) <= 0)
  ------------------
  |  Branch (483:9): [True: 0, False: 347]
  ------------------
  484|      0|        return 0;
  485|       |
  486|    347|#ifndef FIPS_MODULE
  487|    347|    if (prov->ischild) {
  ------------------
  |  Branch (487:9): [True: 0, False: 347]
  ------------------
  488|      0|        if (!ossl_provider_up_ref_parent(prov, 0)) {
  ------------------
  |  Branch (488:13): [True: 0, False: 0]
  ------------------
  489|      0|            ossl_provider_free(prov);
  490|      0|            return 0;
  491|      0|        }
  492|      0|    }
  493|    347|#endif
  494|       |
  495|    347|    return ref;
  496|    347|}
ossl_provider_free:
  733|      3|{
  734|      3|    if (prov != NULL) {
  ------------------
  |  Branch (734:9): [True: 3, False: 0]
  ------------------
  735|      3|        int ref = 0;
  736|       |
  737|      3|        CRYPTO_DOWN_REF(&prov->refcnt, &ref);
  738|       |
  739|       |        /*
  740|       |         * When the refcount drops to zero, we clean up the provider.
  741|       |         * Note that this also does teardown, which may seem late,
  742|       |         * considering that init happens on first activation.  However,
  743|       |         * there may be other structures hanging on to the provider after
  744|       |         * the last deactivation and may therefore need full access to the
  745|       |         * provider's services.  Therefore, we deinit late.
  746|       |         */
  747|      3|        if (ref == 0) {
  ------------------
  |  Branch (747:13): [True: 0, False: 3]
  ------------------
  748|      0|            if (prov->flag_initialized) {
  ------------------
  |  Branch (748:17): [True: 0, False: 0]
  ------------------
  749|      0|                ossl_provider_teardown(prov);
  750|      0|#ifndef OPENSSL_NO_ERR
  751|      0|#ifndef FIPS_MODULE
  752|      0|                if (prov->error_strings != NULL) {
  ------------------
  |  Branch (752:21): [True: 0, False: 0]
  ------------------
  753|      0|                    ERR_unload_strings(prov->error_lib, prov->error_strings);
  754|      0|                    OPENSSL_free(prov->error_strings);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  755|      0|                    prov->error_strings = NULL;
  756|      0|                }
  757|      0|#endif
  758|      0|#endif
  759|      0|                OPENSSL_free(prov->operation_bits);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  760|      0|                prov->operation_bits = NULL;
  761|      0|                prov->operation_bits_sz = 0;
  762|      0|                prov->flag_initialized = 0;
  763|      0|            }
  764|       |
  765|      0|#ifndef FIPS_MODULE
  766|       |            /*
  767|       |             * We deregister thread handling whether or not the provider was
  768|       |             * initialized. If init was attempted but was not successful then
  769|       |             * the provider may still have registered a thread handler.
  770|       |             */
  771|      0|            ossl_init_thread_deregister(prov);
  772|      0|            DSO_free(prov->module);
  773|      0|#endif
  774|      0|            OPENSSL_free(prov->name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  775|      0|            OPENSSL_free(prov->path);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  776|      0|            sk_INFOPAIR_pop_free(prov->parameters, infopair_free);
  777|      0|            CRYPTO_THREAD_lock_free(prov->opbits_lock);
  778|      0|            CRYPTO_THREAD_lock_free(prov->flag_lock);
  779|      0|            CRYPTO_THREAD_lock_free(prov->activatecnt_lock);
  780|      0|            CRYPTO_FREE_REF(&prov->refcnt);
  781|      0|            OPENSSL_free(prov);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  782|      0|        }
  783|      3|#ifndef FIPS_MODULE
  784|      3|        else if (prov->ischild) {
  ------------------
  |  Branch (784:18): [True: 0, False: 3]
  ------------------
  785|      0|            ossl_provider_free_parent(prov, 0);
  786|      0|        }
  787|      3|#endif
  788|      3|    }
  789|      3|}
OSSL_PROVIDER_get_conf_parameters:
  839|    657|{
  840|    657|    int i;
  841|       |
  842|    657|    if (prov->parameters == NULL)
  ------------------
  |  Branch (842:9): [True: 0, False: 657]
  ------------------
  843|      0|        return 1;
  844|       |
  845|    657|    for (i = 0; i < sk_INFOPAIR_num(prov->parameters); i++) {
  ------------------
  |  Branch (845:17): [True: 0, False: 657]
  ------------------
  846|      0|        INFOPAIR *pair = sk_INFOPAIR_value(prov->parameters, i);
  847|      0|        OSSL_PARAM *p = OSSL_PARAM_locate(params, pair->name);
  848|       |
  849|      0|        if (p != NULL
  ------------------
  |  Branch (849:13): [True: 0, False: 0]
  ------------------
  850|      0|            && !OSSL_PARAM_set_utf8_ptr(p, pair->value))
  ------------------
  |  Branch (850:16): [True: 0, False: 0]
  ------------------
  851|      0|            return 0;
  852|      0|    }
  853|    657|    return 1;
  854|    657|}
ossl_provider_ctx:
 1426|   186k|{
 1427|   186k|    return prov != NULL ? prov->provctx : NULL;
  ------------------
  |  Branch (1427:12): [True: 186k, False: 0]
  ------------------
 1428|   186k|}
ossl_provider_doall_activated:
 1527|  4.01k|{
 1528|  4.01k|    int ret = 0, curr, max, ref = 0;
 1529|  4.01k|    struct provider_store_st *store = get_provider_store(ctx);
 1530|  4.01k|    STACK_OF(OSSL_PROVIDER) *provs = NULL;
  ------------------
  |  |   33|  4.01k|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1531|       |
 1532|  4.01k|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_AUTOLOAD_CONFIG)
 1533|       |    /*
 1534|       |     * Make sure any providers are loaded from config before we try to use
 1535|       |     * them.
 1536|       |     */
 1537|  4.01k|    if (ossl_lib_ctx_is_default(ctx))
  ------------------
  |  Branch (1537:9): [True: 4.01k, False: 0]
  ------------------
 1538|  4.01k|        OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL);
  ------------------
  |  |  510|  4.01k|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
 1539|  4.01k|#endif
 1540|       |
 1541|  4.01k|    if (store == NULL)
  ------------------
  |  Branch (1541:9): [True: 0, False: 4.01k]
  ------------------
 1542|      0|        return 1;
 1543|  4.01k|    if (!provider_activate_fallbacks(store))
  ------------------
  |  Branch (1543:9): [True: 0, False: 4.01k]
  ------------------
 1544|      0|        return 0;
 1545|       |
 1546|       |    /*
 1547|       |     * Under lock, grab a copy of the provider list and up_ref each
 1548|       |     * provider so that they don't disappear underneath us.
 1549|       |     */
 1550|  4.01k|    if (!CRYPTO_THREAD_read_lock(store->lock))
  ------------------
  |  Branch (1550:9): [True: 0, False: 4.01k]
  ------------------
 1551|      0|        return 0;
 1552|  4.01k|    provs = sk_OSSL_PROVIDER_dup(store->providers);
 1553|  4.01k|    if (provs == NULL) {
  ------------------
  |  Branch (1553:9): [True: 0, False: 4.01k]
  ------------------
 1554|      0|        CRYPTO_THREAD_unlock(store->lock);
 1555|      0|        return 0;
 1556|      0|    }
 1557|  4.01k|    max = sk_OSSL_PROVIDER_num(provs);
 1558|       |    /*
 1559|       |     * We work backwards through the stack so that we can safely delete items
 1560|       |     * as we go.
 1561|       |     */
 1562|  8.02k|    for (curr = max - 1; curr >= 0; curr--) {
  ------------------
  |  Branch (1562:26): [True: 4.01k, False: 4.01k]
  ------------------
 1563|  4.01k|        OSSL_PROVIDER *prov = sk_OSSL_PROVIDER_value(provs, curr);
 1564|       |
 1565|  4.01k|        if (!CRYPTO_THREAD_read_lock(prov->flag_lock))
  ------------------
  |  Branch (1565:13): [True: 0, False: 4.01k]
  ------------------
 1566|      0|            goto err_unlock;
 1567|  4.01k|        if (prov->flag_activated) {
  ------------------
  |  Branch (1567:13): [True: 4.01k, False: 0]
  ------------------
 1568|       |            /*
 1569|       |             * We call CRYPTO_UP_REF directly rather than ossl_provider_up_ref
 1570|       |             * to avoid upping the ref count on the parent provider, which we
 1571|       |             * must not do while holding locks.
 1572|       |             */
 1573|  4.01k|            if (CRYPTO_UP_REF(&prov->refcnt, &ref) <= 0) {
  ------------------
  |  Branch (1573:17): [True: 0, False: 4.01k]
  ------------------
 1574|      0|                CRYPTO_THREAD_unlock(prov->flag_lock);
 1575|      0|                goto err_unlock;
 1576|      0|            }
 1577|       |            /*
 1578|       |             * It's already activated, but we up the activated count to ensure
 1579|       |             * it remains activated until after we've called the user callback.
 1580|       |             * In theory this could mean the parent provider goes inactive,
 1581|       |             * whilst still activated in the child for a short period. That's ok.
 1582|       |             */
 1583|  4.01k|            if (!CRYPTO_atomic_add(&prov->activatecnt, 1, &ref,
  ------------------
  |  Branch (1583:17): [True: 0, False: 4.01k]
  ------------------
 1584|  4.01k|                    prov->activatecnt_lock)) {
 1585|      0|                CRYPTO_DOWN_REF(&prov->refcnt, &ref);
 1586|      0|                CRYPTO_THREAD_unlock(prov->flag_lock);
 1587|      0|                goto err_unlock;
 1588|      0|            }
 1589|  4.01k|        } else {
 1590|      0|            sk_OSSL_PROVIDER_delete(provs, curr);
 1591|      0|            max--;
 1592|      0|        }
 1593|  4.01k|        CRYPTO_THREAD_unlock(prov->flag_lock);
 1594|  4.01k|    }
 1595|  4.01k|    CRYPTO_THREAD_unlock(store->lock);
 1596|       |
 1597|       |    /*
 1598|       |     * Now, we sweep through all providers not under lock
 1599|       |     */
 1600|  8.02k|    for (curr = 0; curr < max; curr++) {
  ------------------
  |  Branch (1600:20): [True: 4.01k, False: 4.01k]
  ------------------
 1601|  4.01k|        OSSL_PROVIDER *prov = sk_OSSL_PROVIDER_value(provs, curr);
 1602|       |
 1603|  4.01k|        if (!cb(prov, cbdata)) {
  ------------------
  |  Branch (1603:13): [True: 0, False: 4.01k]
  ------------------
 1604|      0|            curr = -1;
 1605|      0|            goto finish;
 1606|      0|        }
 1607|  4.01k|    }
 1608|  4.01k|    curr = -1;
 1609|       |
 1610|  4.01k|    ret = 1;
 1611|  4.01k|    goto finish;
 1612|       |
 1613|      0|err_unlock:
 1614|      0|    CRYPTO_THREAD_unlock(store->lock);
 1615|  4.01k|finish:
 1616|       |    /*
 1617|       |     * The pop_free call doesn't do what we want on an error condition. We
 1618|       |     * either start from the first item in the stack, or part way through if
 1619|       |     * we only processed some of the items.
 1620|       |     */
 1621|  8.02k|    for (curr++; curr < max; curr++) {
  ------------------
  |  Branch (1621:18): [True: 4.01k, False: 4.01k]
  ------------------
 1622|  4.01k|        OSSL_PROVIDER *prov = sk_OSSL_PROVIDER_value(provs, curr);
 1623|       |
 1624|  4.01k|        if (!CRYPTO_atomic_add(&prov->activatecnt, -1, &ref,
  ------------------
  |  Branch (1624:13): [True: 0, False: 4.01k]
  ------------------
 1625|  4.01k|                prov->activatecnt_lock)) {
 1626|      0|            ret = 0;
 1627|      0|            continue;
 1628|      0|        }
 1629|  4.01k|        if (ref < 1) {
  ------------------
  |  Branch (1629:13): [True: 0, False: 4.01k]
  ------------------
 1630|       |            /*
 1631|       |             * Looks like we need to deactivate properly. We could just have
 1632|       |             * done this originally, but it involves taking a write lock so
 1633|       |             * we avoid it. We up the count again and do a full deactivation
 1634|       |             */
 1635|      0|            if (CRYPTO_atomic_add(&prov->activatecnt, 1, &ref,
  ------------------
  |  Branch (1635:17): [True: 0, False: 0]
  ------------------
 1636|      0|                    prov->activatecnt_lock))
 1637|      0|                provider_deactivate(prov, 0, 1);
 1638|      0|            else
 1639|      0|                ret = 0;
 1640|      0|        }
 1641|       |        /*
 1642|       |         * As above where we did the up-ref, we don't call ossl_provider_free
 1643|       |         * to avoid making upcalls. There should always be at least one ref
 1644|       |         * to the provider in the store, so this should never drop to 0.
 1645|       |         */
 1646|  4.01k|        if (!CRYPTO_DOWN_REF(&prov->refcnt, &ref)) {
  ------------------
  |  Branch (1646:13): [True: 0, False: 4.01k]
  ------------------
 1647|      0|            ret = 0;
 1648|      0|            continue;
 1649|      0|        }
 1650|       |        /*
 1651|       |         * Not much we can do if this assert ever fails. So we don't use
 1652|       |         * ossl_assert here.
 1653|       |         */
 1654|  4.01k|        assert(ref > 0);
  ------------------
  |  Branch (1654:9): [True: 0, False: 4.01k]
  |  Branch (1654:9): [True: 4.01k, False: 0]
  ------------------
 1655|  4.01k|    }
 1656|  4.01k|    sk_OSSL_PROVIDER_free(provs);
 1657|  4.01k|    return ret;
 1658|  4.01k|}
ossl_provider_name:
 1682|      3|{
 1683|      3|    return prov->name;
 1684|      3|}
ossl_provider_libctx:
 1719|   240k|{
 1720|   240k|    return prov != NULL ? prov->libctx : NULL;
  ------------------
  |  Branch (1720:12): [True: 240k, False: 0]
  ------------------
 1721|   240k|}
ossl_provider_get_capabilities:
 1907|    440|{
 1908|    440|    if (prov->get_capabilities != NULL) {
  ------------------
  |  Branch (1908:9): [True: 440, False: 0]
  ------------------
 1909|    440|#ifndef FIPS_MODULE
 1910|    440|        OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  221|    440|    do {                           \
  |  |  222|    440|        BIO *trc_out = NULL;       \
  |  |  223|    440|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 440]
  |  |  ------------------
  ------------------
 1911|      0|        {
 1912|      0|            BIO_printf(trc_out,
 1913|      0|                "(provider %s) Calling get_capabilities "
 1914|      0|                "with capabilities %s\n",
 1915|      0|                prov->name,
 1916|      0|                capability == NULL ? "none" : capability);
  ------------------
  |  Branch (1916:17): [True: 0, False: 0]
  ------------------
 1917|      0|        }
 1918|    440|        OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  226|    440|    }                            \
  |  |  227|    440|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 440]
  |  |  ------------------
  ------------------
 1919|    440|#endif
 1920|    440|        return prov->get_capabilities(prov->provctx, capability, cb, arg);
 1921|    440|    }
 1922|      0|    return 1;
 1923|    440|}
ossl_provider_query_operation:
 1946|  3.57k|{
 1947|  3.57k|    const OSSL_ALGORITHM *res;
 1948|       |
 1949|  3.57k|    if (prov->query_operation == NULL) {
  ------------------
  |  Branch (1949:9): [True: 0, False: 3.57k]
  ------------------
 1950|      0|#ifndef FIPS_MODULE
 1951|      0|        OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  221|      0|    do {                           \
  |  |  222|      0|        BIO *trc_out = NULL;       \
  |  |  223|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1952|      0|        {
 1953|      0|            BIO_printf(trc_out, "provider %s lacks query operation!\n",
 1954|      0|                prov->name);
 1955|      0|        }
 1956|      0|        OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  226|      0|    }                            \
  |  |  227|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1957|      0|#endif
 1958|      0|        return NULL;
 1959|      0|    }
 1960|       |
 1961|  3.57k|    res = prov->query_operation(prov->provctx, operation_id, no_cache);
 1962|  3.57k|#ifndef FIPS_MODULE
 1963|  3.57k|    OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  221|  3.57k|    do {                           \
  |  |  222|  3.57k|        BIO *trc_out = NULL;       \
  |  |  223|  3.57k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 3.57k]
  |  |  ------------------
  ------------------
 1964|      0|    {
 1965|      0|        const OSSL_ALGORITHM *idx;
 1966|      0|        if (res != NULL) {
  ------------------
  |  Branch (1966:13): [True: 0, False: 0]
  ------------------
 1967|      0|            BIO_printf(trc_out,
 1968|      0|                "(provider %s) Calling query, available algs are:\n", prov->name);
 1969|       |
 1970|      0|            for (idx = res; idx->algorithm_names != NULL; idx++) {
  ------------------
  |  Branch (1970:29): [True: 0, False: 0]
  ------------------
 1971|      0|                BIO_printf(trc_out,
 1972|      0|                    "(provider %s) names %s, prop_def %s, desc %s\n",
 1973|      0|                    prov->name,
 1974|      0|                    idx->algorithm_names == NULL ? "none" : idx->algorithm_names,
  ------------------
  |  Branch (1974:21): [True: 0, False: 0]
  ------------------
 1975|      0|                    idx->property_definition == NULL ? "none" : idx->property_definition,
  ------------------
  |  Branch (1975:21): [True: 0, False: 0]
  ------------------
 1976|      0|                    idx->algorithm_description == NULL ? "none" : idx->algorithm_description);
  ------------------
  |  Branch (1976:21): [True: 0, False: 0]
  ------------------
 1977|      0|            }
 1978|      0|        } else {
 1979|      0|            BIO_printf(trc_out, "(provider %s) query_operation failed\n", prov->name);
 1980|      0|        }
 1981|      0|    }
 1982|  3.57k|    OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  226|  3.57k|    }                            \
  |  |  227|  3.57k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 3.57k]
  |  |  ------------------
  ------------------
 1983|  3.57k|#endif
 1984|       |
 1985|       |#if defined(OPENSSL_NO_CACHED_FETCH)
 1986|       |    /* Forcing the non-caching of queries */
 1987|       |    if (no_cache != NULL)
 1988|       |        *no_cache = 1;
 1989|       |#endif
 1990|  3.57k|    return res;
 1991|  3.57k|}
ossl_provider_unquery_operation:
 2010|  3.57k|{
 2011|  3.57k|    if (prov->unquery_operation != NULL) {
  ------------------
  |  Branch (2011:9): [True: 0, False: 3.57k]
  ------------------
 2012|      0|#ifndef FIPS_MODULE
 2013|      0|        OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  221|      0|    do {                           \
  |  |  222|      0|        BIO *trc_out = NULL;       \
  |  |  223|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2014|      0|        {
 2015|      0|            BIO_printf(trc_out,
 2016|      0|                "(provider %s) Calling unquery"
 2017|      0|                " with operation %d\n",
 2018|      0|                prov->name,
 2019|      0|                operation_id);
 2020|      0|        }
 2021|      0|        OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  226|      0|    }                            \
  |  |  227|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2022|      0|#endif
 2023|      0|        prov->unquery_operation(prov->provctx, operation_id, algs);
 2024|      0|    }
 2025|  3.57k|}
ossl_provider_set_operation_bit:
 2028|      7|{
 2029|      7|    size_t byte = bitnum / 8;
 2030|      7|    unsigned char bit = (1 << (bitnum % 8)) & 0xFF;
 2031|       |
 2032|      7|    if (!CRYPTO_THREAD_write_lock(provider->opbits_lock))
  ------------------
  |  Branch (2032:9): [True: 0, False: 7]
  ------------------
 2033|      0|        return 0;
 2034|      7|    if (provider->operation_bits_sz <= byte) {
  ------------------
  |  Branch (2034:9): [True: 3, False: 4]
  ------------------
 2035|      3|        unsigned char *tmp = OPENSSL_realloc(provider->operation_bits,
  ------------------
  |  |  120|      3|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2036|      3|            byte + 1);
 2037|       |
 2038|      3|        if (tmp == NULL) {
  ------------------
  |  Branch (2038:13): [True: 0, False: 3]
  ------------------
 2039|      0|            CRYPTO_THREAD_unlock(provider->opbits_lock);
 2040|      0|            return 0;
 2041|      0|        }
 2042|      3|        provider->operation_bits = tmp;
 2043|      3|        memset(provider->operation_bits + provider->operation_bits_sz,
 2044|      3|            '\0', byte + 1 - provider->operation_bits_sz);
 2045|      3|        provider->operation_bits_sz = byte + 1;
 2046|      3|    }
 2047|      7|    provider->operation_bits[byte] |= bit;
 2048|      7|    CRYPTO_THREAD_unlock(provider->opbits_lock);
 2049|      7|    return 1;
 2050|      7|}
ossl_provider_test_operation_bit:
 2054|  3.57k|{
 2055|  3.57k|    size_t byte = bitnum / 8;
 2056|  3.57k|    unsigned char bit = (1 << (bitnum % 8)) & 0xFF;
 2057|       |
 2058|  3.57k|    if (!ossl_assert(result != NULL)) {
  ------------------
  |  |   52|  3.57k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  3.57k|    __FILE__, __LINE__)
  ------------------
  |  Branch (2058:9): [True: 0, False: 3.57k]
  ------------------
 2059|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2060|      0|        return 0;
 2061|      0|    }
 2062|       |
 2063|  3.57k|    *result = 0;
 2064|  3.57k|    if (!CRYPTO_THREAD_read_lock(provider->opbits_lock))
  ------------------
  |  Branch (2064:9): [True: 0, False: 3.57k]
  ------------------
 2065|      0|        return 0;
 2066|  3.57k|    if (provider->operation_bits_sz > byte)
  ------------------
  |  Branch (2066:9): [True: 3.57k, False: 3]
  ------------------
 2067|  3.57k|        *result = ((provider->operation_bits[byte] & bit) != 0);
 2068|  3.57k|    CRYPTO_THREAD_unlock(provider->opbits_lock);
 2069|  3.57k|    return 1;
 2070|  3.57k|}
provider_core.c:ossl_provider_cmp:
  204|      3|{
  205|      3|    return strcmp((*a)->name, (*b)->name);
  206|      3|}
provider_core.c:get_provider_store:
  330|  4.01k|{
  331|  4.01k|    struct provider_store_st *store = NULL;
  332|       |
  333|  4.01k|    store = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_PROVIDER_STORE_INDEX);
  ------------------
  |  |   97|  4.01k|#define OSSL_LIB_CTX_PROVIDER_STORE_INDEX 1
  ------------------
  334|  4.01k|    if (store == NULL)
  ------------------
  |  Branch (334:9): [True: 0, False: 4.01k]
  ------------------
  335|       |        ERR_raise(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  336|  4.01k|    return store;
  337|  4.01k|}
provider_core.c:provider_new:
  444|      1|{
  445|      1|    OSSL_PROVIDER *prov = NULL;
  446|       |
  447|      1|    if ((prov = OPENSSL_zalloc(sizeof(*prov))) == NULL)
  ------------------
  |  |  108|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (447:9): [True: 0, False: 1]
  ------------------
  448|      0|        return NULL;
  449|      1|    if (!CRYPTO_NEW_REF(&prov->refcnt, 1)) {
  ------------------
  |  Branch (449:9): [True: 0, False: 1]
  ------------------
  450|      0|        OPENSSL_free(prov);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  451|      0|        return NULL;
  452|      0|    }
  453|      1|    if ((prov->activatecnt_lock = CRYPTO_THREAD_lock_new()) == NULL) {
  ------------------
  |  Branch (453:9): [True: 0, False: 1]
  ------------------
  454|      0|        ossl_provider_free(prov);
  455|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  456|      0|        return NULL;
  457|      0|    }
  458|       |
  459|      1|    if ((prov->opbits_lock = CRYPTO_THREAD_lock_new()) == NULL
  ------------------
  |  Branch (459:9): [True: 0, False: 1]
  ------------------
  460|      1|        || (prov->flag_lock = CRYPTO_THREAD_lock_new()) == NULL
  ------------------
  |  Branch (460:12): [True: 0, False: 1]
  ------------------
  461|      1|        || (prov->parameters = sk_INFOPAIR_deep_copy(parameters,
  ------------------
  |  Branch (461:12): [True: 0, False: 1]
  ------------------
  462|      1|                infopair_copy,
  463|      1|                infopair_free))
  464|      1|            == NULL) {
  465|      0|        ossl_provider_free(prov);
  466|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  467|      0|        return NULL;
  468|      0|    }
  469|      1|    if ((prov->name = OPENSSL_strdup(name)) == NULL) {
  ------------------
  |  |  135|      1|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (469:9): [True: 0, False: 1]
  ------------------
  470|      0|        ossl_provider_free(prov);
  471|      0|        return NULL;
  472|      0|    }
  473|       |
  474|      1|    prov->init_function = init_function;
  475|       |
  476|      1|    return prov;
  477|      1|}
provider_core.c:provider_activate:
 1256|      1|{
 1257|      1|    int count = -1;
 1258|      1|    struct provider_store_st *store;
 1259|      1|    int ret = 1;
 1260|       |
 1261|      1|    store = prov->store;
 1262|       |    /*
 1263|       |     * If the provider hasn't been added to the store, then we don't need
 1264|       |     * any locks because we've not shared it with other threads.
 1265|       |     */
 1266|      1|    if (store == NULL) {
  ------------------
  |  Branch (1266:9): [True: 1, False: 0]
  ------------------
 1267|      1|        lock = 0;
 1268|      1|        if (!provider_init(prov))
  ------------------
  |  Branch (1268:13): [True: 0, False: 1]
  ------------------
 1269|      0|            return -1;
 1270|      1|    }
 1271|       |
 1272|      1|#ifndef FIPS_MODULE
 1273|      1|    if (prov->random_bytes != NULL
  ------------------
  |  Branch (1273:9): [True: 0, False: 1]
  ------------------
 1274|      0|        && !ossl_rand_check_random_provider_on_load(prov->libctx, prov))
  ------------------
  |  Branch (1274:12): [True: 0, False: 0]
  ------------------
 1275|      0|        return -1;
 1276|       |
 1277|      1|    if (prov->ischild && upcalls && !ossl_provider_up_ref_parent(prov, 1))
  ------------------
  |  Branch (1277:9): [True: 0, False: 1]
  |  Branch (1277:26): [True: 0, False: 0]
  |  Branch (1277:37): [True: 0, False: 0]
  ------------------
 1278|      0|        return -1;
 1279|      1|#endif
 1280|       |
 1281|      1|    if (lock && !CRYPTO_THREAD_read_lock(store->lock)) {
  ------------------
  |  Branch (1281:9): [True: 0, False: 1]
  |  Branch (1281:17): [True: 0, False: 0]
  ------------------
 1282|      0|#ifndef FIPS_MODULE
 1283|      0|        if (prov->ischild && upcalls)
  ------------------
  |  Branch (1283:13): [True: 0, False: 0]
  |  Branch (1283:30): [True: 0, False: 0]
  ------------------
 1284|      0|            ossl_provider_free_parent(prov, 1);
 1285|      0|#endif
 1286|      0|        return -1;
 1287|      0|    }
 1288|       |
 1289|      1|    if (lock && !CRYPTO_THREAD_write_lock(prov->flag_lock)) {
  ------------------
  |  Branch (1289:9): [True: 0, False: 1]
  |  Branch (1289:17): [True: 0, False: 0]
  ------------------
 1290|      0|        CRYPTO_THREAD_unlock(store->lock);
 1291|      0|#ifndef FIPS_MODULE
 1292|      0|        if (prov->ischild && upcalls)
  ------------------
  |  Branch (1292:13): [True: 0, False: 0]
  |  Branch (1292:30): [True: 0, False: 0]
  ------------------
 1293|      0|            ossl_provider_free_parent(prov, 1);
 1294|      0|#endif
 1295|      0|        return -1;
 1296|      0|    }
 1297|      1|    if (CRYPTO_atomic_add(&prov->activatecnt, 1, &count, prov->activatecnt_lock)) {
  ------------------
  |  Branch (1297:9): [True: 1, False: 0]
  ------------------
 1298|      1|        prov->flag_activated = 1;
 1299|       |
 1300|      1|        if (count == 1 && store != NULL) {
  ------------------
  |  Branch (1300:13): [True: 1, False: 0]
  |  Branch (1300:27): [True: 0, False: 1]
  ------------------
 1301|      0|            ret = create_provider_children(prov);
 1302|      0|        }
 1303|      1|    }
 1304|      1|    if (lock) {
  ------------------
  |  Branch (1304:9): [True: 0, False: 1]
  ------------------
 1305|      0|        CRYPTO_THREAD_unlock(prov->flag_lock);
 1306|      0|        CRYPTO_THREAD_unlock(store->lock);
 1307|       |        /*
 1308|       |         * This can be done outside the lock. We tolerate other threads getting
 1309|       |         * the wrong result briefly when creating OSSL_DECODER_CTXs.
 1310|       |         */
 1311|      0|#ifndef FIPS_MODULE
 1312|      0|        if (count == 1)
  ------------------
  |  Branch (1312:13): [True: 0, False: 0]
  ------------------
 1313|      0|            ossl_decoder_cache_flush(prov->libctx);
 1314|      0|#endif
 1315|      0|    }
 1316|       |
 1317|      1|    if (!ret)
  ------------------
  |  Branch (1317:9): [True: 0, False: 1]
  ------------------
 1318|      0|        return -1;
 1319|       |
 1320|      1|    return count;
 1321|      1|}
provider_core.c:provider_init:
  948|      1|{
  949|      1|    const OSSL_DISPATCH *provider_dispatch = NULL;
  950|      1|    void *tmp_provctx = NULL; /* safety measure */
  951|      1|#ifndef OPENSSL_NO_ERR
  952|      1|#ifndef FIPS_MODULE
  953|      1|    OSSL_FUNC_provider_get_reason_strings_fn *p_get_reason_strings = NULL;
  954|      1|#endif
  955|      1|#endif
  956|      1|    int ok = 0;
  957|       |
  958|      1|    if (!ossl_assert(!prov->flag_initialized)) {
  ------------------
  |  |   52|      1|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      1|    __FILE__, __LINE__)
  ------------------
  |  Branch (958:9): [True: 0, False: 1]
  ------------------
  959|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  960|      0|        goto end;
  961|      0|    }
  962|       |
  963|       |    /*
  964|       |     * If the init function isn't set, it indicates that this provider is
  965|       |     * a loadable module.
  966|       |     */
  967|      1|    if (prov->init_function == NULL) {
  ------------------
  |  Branch (967:9): [True: 0, False: 1]
  ------------------
  968|       |#ifdef FIPS_MODULE
  969|       |        goto end;
  970|       |#else
  971|      0|        if (prov->module == NULL) {
  ------------------
  |  Branch (971:13): [True: 0, False: 0]
  ------------------
  972|      0|            char *allocated_path = NULL;
  973|      0|            const char *module_path = NULL;
  974|      0|            char *merged_path = NULL;
  975|      0|            const char *load_dir = NULL;
  976|      0|            char *allocated_load_dir = NULL;
  977|      0|            struct provider_store_st *store;
  978|       |
  979|      0|            if ((prov->module = DSO_new()) == NULL) {
  ------------------
  |  Branch (979:17): [True: 0, False: 0]
  ------------------
  980|       |                /* DSO_new() generates an error already */
  981|      0|                goto end;
  982|      0|            }
  983|       |
  984|      0|            if ((store = get_provider_store(prov->libctx)) == NULL
  ------------------
  |  Branch (984:17): [True: 0, False: 0]
  ------------------
  985|      0|                || !CRYPTO_THREAD_read_lock(store->default_path_lock))
  ------------------
  |  Branch (985:20): [True: 0, False: 0]
  ------------------
  986|      0|                goto end;
  987|       |
  988|      0|            if (store->default_path != NULL) {
  ------------------
  |  Branch (988:17): [True: 0, False: 0]
  ------------------
  989|      0|                allocated_load_dir = OPENSSL_strdup(store->default_path);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  990|      0|                CRYPTO_THREAD_unlock(store->default_path_lock);
  991|      0|                if (allocated_load_dir == NULL)
  ------------------
  |  Branch (991:21): [True: 0, False: 0]
  ------------------
  992|      0|                    goto end;
  993|      0|                load_dir = allocated_load_dir;
  994|      0|            } else {
  995|      0|                CRYPTO_THREAD_unlock(store->default_path_lock);
  996|      0|            }
  997|       |
  998|      0|            if (load_dir == NULL) {
  ------------------
  |  Branch (998:17): [True: 0, False: 0]
  ------------------
  999|      0|                load_dir = ossl_safe_getenv("OPENSSL_MODULES");
 1000|      0|                if (load_dir == NULL)
  ------------------
  |  Branch (1000:21): [True: 0, False: 0]
  ------------------
 1001|      0|                    load_dir = ossl_get_modulesdir();
 1002|      0|            }
 1003|       |
 1004|      0|            DSO_ctrl(prov->module, DSO_CTRL_SET_FLAGS,
  ------------------
  |  |   19|      0|#define DSO_CTRL_SET_FLAGS 2
  ------------------
 1005|      0|                DSO_FLAG_NAME_TRANSLATION_EXT_ONLY, NULL);
  ------------------
  |  |   41|      0|#define DSO_FLAG_NAME_TRANSLATION_EXT_ONLY 0x02
  ------------------
 1006|       |
 1007|      0|            module_path = prov->path;
 1008|      0|            if (module_path == NULL)
  ------------------
  |  Branch (1008:17): [True: 0, False: 0]
  ------------------
 1009|      0|                module_path = allocated_path = DSO_convert_filename(prov->module, prov->name);
 1010|      0|            if (module_path != NULL)
  ------------------
  |  Branch (1010:17): [True: 0, False: 0]
  ------------------
 1011|      0|                merged_path = DSO_merge(prov->module, module_path, load_dir);
 1012|       |
 1013|      0|            if (merged_path == NULL
  ------------------
  |  Branch (1013:17): [True: 0, False: 0]
  ------------------
 1014|      0|                || (DSO_load(prov->module, merged_path, NULL, 0)) == NULL) {
  ------------------
  |  Branch (1014:20): [True: 0, False: 0]
  ------------------
 1015|      0|                DSO_free(prov->module);
 1016|      0|                prov->module = NULL;
 1017|      0|            }
 1018|       |
 1019|      0|            OPENSSL_free(merged_path);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1020|      0|            OPENSSL_free(allocated_path);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1021|      0|            OPENSSL_free(allocated_load_dir);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1022|      0|        }
 1023|       |
 1024|      0|        if (prov->module == NULL) {
  ------------------
  |  Branch (1024:13): [True: 0, False: 0]
  ------------------
 1025|       |            /* DSO has already recorded errors, this is just a tracepoint */
 1026|      0|            ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_DSO_LIB,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_DSO_LIB,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_DSO_LIB,
  ------------------
  |  |  336|      0|#define ERR_R_DSO_LIB (ERR_LIB_DSO /* 37 */ | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  100|      0|#define ERR_LIB_DSO 37
  |  |  ------------------
  |  |               #define ERR_R_DSO_LIB (ERR_LIB_DSO /* 37 */ | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1027|      0|                "name=%s", prov->name);
 1028|      0|            goto end;
 1029|      0|        }
 1030|       |
 1031|      0|        prov->init_function = (OSSL_provider_init_fn *)
 1032|      0|            DSO_bind_func(prov->module, "OSSL_provider_init");
 1033|      0|#endif
 1034|      0|    }
 1035|       |
 1036|       |    /* Check for and call the initialise function for the provider. */
 1037|      1|    if (prov->init_function == NULL) {
  ------------------
  |  Branch (1037:9): [True: 0, False: 1]
  ------------------
 1038|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_UNSUPPORTED,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_UNSUPPORTED,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_UNSUPPORTED,
  ------------------
  |  |  364|      0|#define ERR_R_UNSUPPORTED (268 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1039|      0|            "name=%s, provider has no provider init function",
 1040|      0|            prov->name);
 1041|      0|        goto end;
 1042|      0|    }
 1043|      1|#ifndef FIPS_MODULE
 1044|      1|    OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  221|      1|    do {                           \
  |  |  222|      1|        BIO *trc_out = NULL;       \
  |  |  223|      1|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 1]
  |  |  ------------------
  ------------------
 1045|      0|    {
 1046|      0|        BIO_printf(trc_out,
 1047|      0|            "(provider %s) initializing\n", prov->name);
 1048|      0|    }
 1049|      1|    OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  226|      1|    }                            \
  |  |  227|      1|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 1]
  |  |  ------------------
  ------------------
 1050|      1|#endif
 1051|       |
 1052|      1|    if (!prov->init_function((OSSL_CORE_HANDLE *)prov, core_dispatch,
  ------------------
  |  Branch (1052:9): [True: 0, False: 1]
  ------------------
 1053|      1|            &provider_dispatch, &tmp_provctx)) {
 1054|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL,
  ------------------
  |  |  357|      0|#define ERR_R_INIT_FAIL (261 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  351|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1055|      0|            "name=%s", prov->name);
 1056|      0|        goto end;
 1057|      0|    }
 1058|      1|    prov->provctx = tmp_provctx;
 1059|      1|    prov->dispatch = provider_dispatch;
 1060|       |
 1061|      1|    if (provider_dispatch != NULL) {
  ------------------
  |  Branch (1061:9): [True: 1, False: 0]
  ------------------
 1062|      6|        for (; provider_dispatch->function_id != 0; provider_dispatch++) {
  ------------------
  |  Branch (1062:16): [True: 5, False: 1]
  ------------------
 1063|      5|            switch (provider_dispatch->function_id) {
  ------------------
  |  Branch (1063:21): [True: 5, False: 0]
  ------------------
 1064|      1|            case OSSL_FUNC_PROVIDER_TEARDOWN:
  ------------------
  |  |  234|      1|#define OSSL_FUNC_PROVIDER_TEARDOWN 1024
  ------------------
  |  Branch (1064:13): [True: 1, False: 4]
  ------------------
 1065|      1|                prov->teardown = OSSL_FUNC_provider_teardown(provider_dispatch);
 1066|      1|                break;
 1067|      1|            case OSSL_FUNC_PROVIDER_GETTABLE_PARAMS:
  ------------------
  |  |  236|      1|#define OSSL_FUNC_PROVIDER_GETTABLE_PARAMS 1025
  ------------------
  |  Branch (1067:13): [True: 1, False: 4]
  ------------------
 1068|      1|                prov->gettable_params = OSSL_FUNC_provider_gettable_params(provider_dispatch);
 1069|      1|                break;
 1070|      1|            case OSSL_FUNC_PROVIDER_GET_PARAMS:
  ------------------
  |  |  239|      1|#define OSSL_FUNC_PROVIDER_GET_PARAMS 1026
  ------------------
  |  Branch (1070:13): [True: 1, False: 4]
  ------------------
 1071|      1|                prov->get_params = OSSL_FUNC_provider_get_params(provider_dispatch);
 1072|      1|                break;
 1073|      0|            case OSSL_FUNC_PROVIDER_SELF_TEST:
  ------------------
  |  |  252|      0|#define OSSL_FUNC_PROVIDER_SELF_TEST 1031
  ------------------
  |  Branch (1073:13): [True: 0, False: 5]
  ------------------
 1074|      0|                prov->self_test = OSSL_FUNC_provider_self_test(provider_dispatch);
 1075|      0|                break;
 1076|      0|            case OSSL_FUNC_PROVIDER_RANDOM_BYTES:
  ------------------
  |  |  254|      0|#define OSSL_FUNC_PROVIDER_RANDOM_BYTES 1032
  ------------------
  |  Branch (1076:13): [True: 0, False: 5]
  ------------------
 1077|      0|                prov->random_bytes = OSSL_FUNC_provider_random_bytes(provider_dispatch);
 1078|      0|                break;
 1079|      1|            case OSSL_FUNC_PROVIDER_GET_CAPABILITIES:
  ------------------
  |  |  250|      1|#define OSSL_FUNC_PROVIDER_GET_CAPABILITIES 1030
  ------------------
  |  Branch (1079:13): [True: 1, False: 4]
  ------------------
 1080|      1|                prov->get_capabilities = OSSL_FUNC_provider_get_capabilities(provider_dispatch);
 1081|      1|                break;
 1082|      1|            case OSSL_FUNC_PROVIDER_QUERY_OPERATION:
  ------------------
  |  |  241|      1|#define OSSL_FUNC_PROVIDER_QUERY_OPERATION 1027
  ------------------
  |  Branch (1082:13): [True: 1, False: 4]
  ------------------
 1083|      1|                prov->query_operation = OSSL_FUNC_provider_query_operation(provider_dispatch);
 1084|      1|                break;
 1085|      0|            case OSSL_FUNC_PROVIDER_UNQUERY_OPERATION:
  ------------------
  |  |  244|      0|#define OSSL_FUNC_PROVIDER_UNQUERY_OPERATION 1028
  ------------------
  |  Branch (1085:13): [True: 0, False: 5]
  ------------------
 1086|      0|                prov->unquery_operation = OSSL_FUNC_provider_unquery_operation(provider_dispatch);
 1087|      0|                break;
 1088|      0|#ifndef OPENSSL_NO_ERR
 1089|      0|#ifndef FIPS_MODULE
 1090|      0|            case OSSL_FUNC_PROVIDER_GET_REASON_STRINGS:
  ------------------
  |  |  247|      0|#define OSSL_FUNC_PROVIDER_GET_REASON_STRINGS 1029
  ------------------
  |  Branch (1090:13): [True: 0, False: 5]
  ------------------
 1091|      0|                p_get_reason_strings = OSSL_FUNC_provider_get_reason_strings(provider_dispatch);
 1092|      0|                break;
 1093|      5|#endif
 1094|      5|#endif
 1095|      5|            }
 1096|      5|        }
 1097|      1|    }
 1098|       |
 1099|      1|#ifndef OPENSSL_NO_ERR
 1100|      1|#ifndef FIPS_MODULE
 1101|      1|    if (p_get_reason_strings != NULL) {
  ------------------
  |  Branch (1101:9): [True: 0, False: 1]
  ------------------
 1102|      0|        const OSSL_ITEM *reasonstrings = p_get_reason_strings(prov->provctx);
 1103|      0|        size_t cnt, cnt2;
 1104|       |
 1105|       |        /*
 1106|       |         * ERR_load_strings() handles ERR_STRING_DATA rather than OSSL_ITEM,
 1107|       |         * although they are essentially the same type.
 1108|       |         * Furthermore, ERR_load_strings() patches the array's error number
 1109|       |         * with the error library number, so we need to make a copy of that
 1110|       |         * array either way.
 1111|       |         */
 1112|      0|        cnt = 0;
 1113|      0|        while (reasonstrings[cnt].id != 0) {
  ------------------
  |  Branch (1113:16): [True: 0, False: 0]
  ------------------
 1114|      0|            if (ERR_GET_LIB(reasonstrings[cnt].id) != 0)
  ------------------
  |  Branch (1114:17): [True: 0, False: 0]
  ------------------
 1115|      0|                goto end;
 1116|      0|            cnt++;
 1117|      0|        }
 1118|      0|        cnt++; /* One for the terminating item */
 1119|       |
 1120|       |        /* Allocate one extra item for the "library" name */
 1121|      0|        prov->error_strings = OPENSSL_calloc(cnt + 1, sizeof(ERR_STRING_DATA));
  ------------------
  |  |  112|      0|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1122|      0|        if (prov->error_strings == NULL)
  ------------------
  |  Branch (1122:13): [True: 0, False: 0]
  ------------------
 1123|      0|            goto end;
 1124|       |
 1125|       |        /*
 1126|       |         * Set the "library" name.
 1127|       |         */
 1128|      0|        prov->error_strings[0].error = ERR_PACK(prov->error_lib, 0, 0);
  ------------------
  |  |  281|      0|    ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  229|      0|#define ERR_LIB_MASK 0xFF
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  228|      0|#define ERR_LIB_OFFSET 23L
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  232|      0|#define ERR_REASON_MASK 0X7FFFFF
  |  |  ------------------
  ------------------
 1129|      0|        prov->error_strings[0].string = prov->name;
 1130|       |        /*
 1131|       |         * Copy reasonstrings item 0..cnt-1 to prov->error_trings positions
 1132|       |         * 1..cnt.
 1133|       |         */
 1134|      0|        for (cnt2 = 1; cnt2 <= cnt; cnt2++) {
  ------------------
  |  Branch (1134:24): [True: 0, False: 0]
  ------------------
 1135|      0|            prov->error_strings[cnt2].error = (int)reasonstrings[cnt2 - 1].id;
 1136|      0|            prov->error_strings[cnt2].string = reasonstrings[cnt2 - 1].ptr;
 1137|      0|        }
 1138|       |
 1139|      0|        ERR_load_strings(prov->error_lib, prov->error_strings);
 1140|      0|    }
 1141|      1|#endif
 1142|      1|#endif
 1143|       |
 1144|       |    /* With this flag set, this provider has become fully "loaded". */
 1145|      1|    prov->flag_initialized = 1;
 1146|      1|    ok = 1;
 1147|       |
 1148|      1|end:
 1149|      1|    return ok;
 1150|      1|}
provider_core.c:core_get_params:
 2322|    657|{
 2323|    657|    OSSL_PARAM *p;
 2324|       |    /*
 2325|       |     * We created this object originally and we know it is actually an
 2326|       |     * OSSL_PROVIDER *, so the cast is safe
 2327|       |     */
 2328|    657|    OSSL_PROVIDER *prov = (OSSL_PROVIDER *)handle;
 2329|       |
 2330|    657|    if ((p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_CORE_VERSION)) != NULL)
  ------------------
  |  |  503|    657|# define OSSL_PROV_PARAM_CORE_VERSION "openssl-version"
  ------------------
  |  Branch (2330:9): [True: 0, False: 657]
  ------------------
 2331|      0|        OSSL_PARAM_set_utf8_ptr(p, OPENSSL_VERSION_STR);
  ------------------
  |  |   90|      0|# define OPENSSL_VERSION_STR "3.6.2"
  ------------------
 2332|    657|    if ((p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_CORE_PROV_NAME)) != NULL)
  ------------------
  |  |  502|    657|# define OSSL_PROV_PARAM_CORE_PROV_NAME "provider-name"
  ------------------
  |  Branch (2332:9): [True: 0, False: 657]
  ------------------
 2333|      0|        OSSL_PARAM_set_utf8_ptr(p, prov->name);
 2334|       |
 2335|    657|#ifndef FIPS_MODULE
 2336|    657|    if ((p = OSSL_PARAM_locate(params,
  ------------------
  |  Branch (2336:9): [True: 0, False: 657]
  ------------------
 2337|    657|             OSSL_PROV_PARAM_CORE_MODULE_FILENAME))
  ------------------
  |  |  501|    657|# define OSSL_PROV_PARAM_CORE_MODULE_FILENAME "module-filename"
  ------------------
 2338|    657|        != NULL)
 2339|      0|        OSSL_PARAM_set_utf8_ptr(p, ossl_provider_module_path(prov));
 2340|    657|#endif
 2341|       |
 2342|    657|    return OSSL_PROVIDER_get_conf_parameters(prov, params);
 2343|    657|}
provider_core.c:core_get_libctx:
 2346|      1|{
 2347|       |    /*
 2348|       |     * We created this object originally and we know it is actually an
 2349|       |     * OSSL_PROVIDER *, so the cast is safe
 2350|       |     */
 2351|      1|    OSSL_PROVIDER *prov = (OSSL_PROVIDER *)handle;
 2352|       |
 2353|       |    /*
 2354|       |     * Using ossl_provider_libctx would be wrong as that returns
 2355|       |     * NULL for |prov| == NULL and NULL libctx has a special meaning
 2356|       |     * that does not apply here. Here |prov| == NULL can happen only in
 2357|       |     * case of a coding error.
 2358|       |     */
 2359|      1|    assert(prov != NULL);
  ------------------
  |  Branch (2359:5): [True: 0, False: 1]
  |  Branch (2359:5): [True: 1, False: 0]
  ------------------
 2360|      1|    return (OPENSSL_CORE_CTX *)prov->libctx;
 2361|      1|}
provider_core.c:provider_activate_fallbacks:
 1436|  4.01k|{
 1437|  4.01k|    int use_fallbacks;
 1438|  4.01k|    int activated_fallback_count = 0;
 1439|  4.01k|    int ret = 0;
 1440|  4.01k|    const OSSL_PROVIDER_INFO *p;
 1441|       |
 1442|  4.01k|    if (!CRYPTO_THREAD_read_lock(store->lock))
  ------------------
  |  Branch (1442:9): [True: 0, False: 4.01k]
  ------------------
 1443|      0|        return 0;
 1444|  4.01k|    use_fallbacks = store->use_fallbacks;
 1445|  4.01k|    CRYPTO_THREAD_unlock(store->lock);
 1446|  4.01k|    if (!use_fallbacks)
  ------------------
  |  Branch (1446:9): [True: 4.01k, False: 1]
  ------------------
 1447|  4.01k|        return 1;
 1448|       |
 1449|      1|    if (!CRYPTO_THREAD_write_lock(store->lock))
  ------------------
  |  Branch (1449:9): [True: 0, False: 1]
  ------------------
 1450|      0|        return 0;
 1451|       |    /* Check again, just in case another thread changed it */
 1452|      1|    use_fallbacks = store->use_fallbacks;
 1453|      1|    if (!use_fallbacks) {
  ------------------
  |  Branch (1453:9): [True: 0, False: 1]
  ------------------
 1454|      0|        CRYPTO_THREAD_unlock(store->lock);
 1455|      0|        return 1;
 1456|      0|    }
 1457|       |
 1458|      4|    for (p = ossl_predefined_providers; p->name != NULL; p++) {
  ------------------
  |  Branch (1458:41): [True: 3, False: 1]
  ------------------
 1459|      3|        OSSL_PROVIDER *prov = NULL;
 1460|      3|        OSSL_PROVIDER_INFO *info = store->provinfo;
 1461|      3|        STACK_OF(INFOPAIR) *params = NULL;
  ------------------
  |  |   33|      3|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1462|      3|        size_t i;
 1463|       |
 1464|      3|        if (!p->is_fallback)
  ------------------
  |  Branch (1464:13): [True: 2, False: 1]
  ------------------
 1465|      2|            continue;
 1466|       |
 1467|      1|        for (i = 0; i < store->numprovinfo; info++, i++) {
  ------------------
  |  Branch (1467:21): [True: 0, False: 1]
  ------------------
 1468|      0|            if (strcmp(info->name, p->name) != 0)
  ------------------
  |  Branch (1468:17): [True: 0, False: 0]
  ------------------
 1469|      0|                continue;
 1470|      0|            params = info->parameters;
 1471|      0|            break;
 1472|      0|        }
 1473|       |
 1474|       |        /*
 1475|       |         * We use the internal constructor directly here,
 1476|       |         * otherwise we get a call loop
 1477|       |         */
 1478|      1|        prov = provider_new(p->name, p->init, params);
 1479|      1|        if (prov == NULL)
  ------------------
  |  Branch (1479:13): [True: 0, False: 1]
  ------------------
 1480|      0|            goto err;
 1481|      1|        prov->libctx = store->libctx;
 1482|      1|#ifndef FIPS_MODULE
 1483|      1|        prov->error_lib = ERR_get_next_error_library();
 1484|      1|#endif
 1485|       |
 1486|       |        /*
 1487|       |         * We are calling provider_activate while holding the store lock. This
 1488|       |         * means the init function will be called while holding a lock. Normally
 1489|       |         * we try to avoid calling a user callback while holding a lock.
 1490|       |         * However, fallbacks are never third party providers so we accept this.
 1491|       |         */
 1492|      1|        if (provider_activate(prov, 0, 0) < 0) {
  ------------------
  |  Branch (1492:13): [True: 0, False: 1]
  ------------------
 1493|      0|            ossl_provider_free(prov);
 1494|      0|            goto err;
 1495|      0|        }
 1496|      1|        prov->store = store;
 1497|      1|        if (sk_OSSL_PROVIDER_push(store->providers, prov) == 0) {
  ------------------
  |  Branch (1497:13): [True: 0, False: 1]
  ------------------
 1498|      0|            ossl_provider_free(prov);
 1499|      0|            goto err;
 1500|      0|        }
 1501|      1|        activated_fallback_count++;
 1502|      1|    }
 1503|       |
 1504|      1|    if (activated_fallback_count > 0) {
  ------------------
  |  Branch (1504:9): [True: 1, False: 0]
  ------------------
 1505|      1|        store->use_fallbacks = 0;
 1506|      1|        ret = 1;
 1507|      1|    }
 1508|      1|err:
 1509|      1|    CRYPTO_THREAD_unlock(store->lock);
 1510|      1|    return ret;
 1511|      1|}

ossl_err_load_RAND_strings:
  105|      2|{
  106|      2|#ifndef OPENSSL_NO_ERR
  107|      2|    if (ERR_reason_error_string(RAND_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (107:9): [True: 2, False: 0]
  ------------------
  108|      2|        ERR_load_strings_const(RAND_str_reasons);
  109|      2|#endif
  110|      2|    return 1;
  111|      2|}

RAND_get_rand_method:
  270|  10.8k|{
  271|  10.8k|    const RAND_METHOD *tmp_meth = NULL;
  272|       |
  273|  10.8k|    if (!RUN_ONCE(&rand_init, do_rand_init))
  ------------------
  |  |  130|  10.8k|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 10.8k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (273:9): [True: 0, False: 10.8k]
  ------------------
  274|      0|        return NULL;
  275|       |
  276|  10.8k|    if (rand_meth_lock == NULL)
  ------------------
  |  Branch (276:9): [True: 0, False: 10.8k]
  ------------------
  277|      0|        return NULL;
  278|       |
  279|  10.8k|    if (!CRYPTO_THREAD_read_lock(rand_meth_lock))
  ------------------
  |  Branch (279:9): [True: 0, False: 10.8k]
  ------------------
  280|      0|        return NULL;
  281|  10.8k|    tmp_meth = default_RAND_meth;
  282|  10.8k|    CRYPTO_THREAD_unlock(rand_meth_lock);
  283|  10.8k|    if (tmp_meth != NULL)
  ------------------
  |  Branch (283:9): [True: 10.8k, False: 1]
  ------------------
  284|  10.8k|        return tmp_meth;
  285|       |
  286|      1|    if (!CRYPTO_THREAD_write_lock(rand_meth_lock))
  ------------------
  |  Branch (286:9): [True: 0, False: 1]
  ------------------
  287|      0|        return NULL;
  288|      1|    if (default_RAND_meth == NULL) {
  ------------------
  |  Branch (288:9): [True: 1, False: 0]
  ------------------
  289|      1|#ifndef OPENSSL_NO_ENGINE
  290|      1|        ENGINE *e;
  291|       |
  292|       |        /* If we have an engine that can do RAND, use it. */
  293|      1|        if ((e = ENGINE_get_default_RAND()) != NULL
  ------------------
  |  Branch (293:13): [True: 0, False: 1]
  ------------------
  294|      0|            && (tmp_meth = ENGINE_get_RAND(e)) != NULL) {
  ------------------
  |  Branch (294:16): [True: 0, False: 0]
  ------------------
  295|      0|            funct_ref = e;
  296|      0|            default_RAND_meth = tmp_meth;
  297|      1|        } else {
  298|      1|            ENGINE_finish(e);
  299|      1|            default_RAND_meth = &ossl_rand_meth;
  300|      1|        }
  301|       |#else
  302|       |        default_RAND_meth = &ossl_rand_meth;
  303|       |#endif
  304|      1|    }
  305|      1|    tmp_meth = default_RAND_meth;
  306|      1|    CRYPTO_THREAD_unlock(rand_meth_lock);
  307|      1|    return tmp_meth;
  308|      1|}
RAND_status:
  392|  1.56k|{
  393|  1.56k|    EVP_RAND_CTX *rand;
  394|  1.56k|#ifndef OPENSSL_NO_DEPRECATED_3_0
  395|  1.56k|    const RAND_METHOD *meth = RAND_get_rand_method();
  396|       |
  397|  1.56k|    if (meth != NULL && meth != RAND_OpenSSL())
  ------------------
  |  Branch (397:9): [True: 1.56k, False: 0]
  |  Branch (397:25): [True: 0, False: 1.56k]
  ------------------
  398|      0|        return meth->status != NULL ? meth->status() : 0;
  ------------------
  |  Branch (398:16): [True: 0, False: 0]
  ------------------
  399|  1.56k|#endif
  400|       |
  401|  1.56k|    if ((rand = RAND_get0_primary(NULL)) == NULL)
  ------------------
  |  Branch (401:9): [True: 0, False: 1.56k]
  ------------------
  402|      0|        return 0;
  403|  1.56k|    return EVP_RAND_get_state(rand) == EVP_RAND_STATE_READY;
  ------------------
  |  | 1346|  1.56k|#define EVP_RAND_STATE_READY 1
  ------------------
  404|  1.56k|}
RAND_priv_bytes_ex:
  422|  1.31k|{
  423|  1.31k|    RAND_GLOBAL *dgbl;
  424|  1.31k|    EVP_RAND_CTX *rand;
  425|  1.31k|#if !defined(OPENSSL_NO_DEPRECATED_3_0) && !defined(FIPS_MODULE)
  426|  1.31k|    const RAND_METHOD *meth = RAND_get_rand_method();
  427|       |
  428|  1.31k|    if (meth != NULL && meth != RAND_OpenSSL()) {
  ------------------
  |  Branch (428:9): [True: 1.31k, False: 0]
  |  Branch (428:25): [True: 0, False: 1.31k]
  ------------------
  429|      0|        if (num > INT_MAX) {
  ------------------
  |  Branch (429:13): [True: 0, False: 0]
  ------------------
  430|      0|            ERR_raise(ERR_LIB_RAND, RAND_R_ARGUMENT_OUT_OF_RANGE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  431|      0|            return -1;
  432|      0|        }
  433|      0|        if (meth->bytes != NULL)
  ------------------
  |  Branch (433:13): [True: 0, False: 0]
  ------------------
  434|      0|            return meth->bytes(buf, (int)num);
  435|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_FUNC_NOT_IMPLEMENTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  436|      0|        return -1;
  437|      0|    }
  438|  1.31k|#endif
  439|       |
  440|  1.31k|    dgbl = rand_get_global(ctx);
  441|  1.31k|    if (dgbl == NULL)
  ------------------
  |  Branch (441:9): [True: 0, False: 1.31k]
  ------------------
  442|      0|        return 0;
  443|  1.31k|#ifndef FIPS_MODULE
  444|  1.31k|    if (dgbl->random_provider != NULL)
  ------------------
  |  Branch (444:9): [True: 0, False: 1.31k]
  ------------------
  445|      0|        return ossl_provider_random_bytes(dgbl->random_provider,
  446|      0|            OSSL_PROV_RANDOM_PRIVATE,
  ------------------
  |  |  127|      0|#define OSSL_PROV_RANDOM_PRIVATE 1
  ------------------
  447|      0|            buf, num, strength);
  448|  1.31k|#endif /* !FIPS_MODULE */
  449|  1.31k|    rand = rand_get0_private(ctx, dgbl);
  450|  1.31k|    if (rand != NULL)
  ------------------
  |  Branch (450:9): [True: 1.31k, False: 0]
  ------------------
  451|  1.31k|        return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0);
  452|       |
  453|      0|    return 0;
  454|  1.31k|}
RAND_bytes_ex:
  465|  7.94k|{
  466|  7.94k|    RAND_GLOBAL *dgbl;
  467|  7.94k|    EVP_RAND_CTX *rand;
  468|  7.94k|#if !defined(OPENSSL_NO_DEPRECATED_3_0) && !defined(FIPS_MODULE)
  469|  7.94k|    const RAND_METHOD *meth = RAND_get_rand_method();
  470|       |
  471|  7.94k|    if (meth != NULL && meth != RAND_OpenSSL()) {
  ------------------
  |  Branch (471:9): [True: 7.94k, False: 0]
  |  Branch (471:25): [True: 0, False: 7.94k]
  ------------------
  472|      0|        if (num > INT_MAX) {
  ------------------
  |  Branch (472:13): [True: 0, False: 0]
  ------------------
  473|      0|            ERR_raise(ERR_LIB_RAND, RAND_R_ARGUMENT_OUT_OF_RANGE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  474|      0|            return -1;
  475|      0|        }
  476|      0|        if (meth->bytes != NULL)
  ------------------
  |  Branch (476:13): [True: 0, False: 0]
  ------------------
  477|      0|            return meth->bytes(buf, (int)num);
  478|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_FUNC_NOT_IMPLEMENTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  479|      0|        return -1;
  480|      0|    }
  481|  7.94k|#endif
  482|       |
  483|  7.94k|    dgbl = rand_get_global(ctx);
  484|  7.94k|    if (dgbl == NULL)
  ------------------
  |  Branch (484:9): [True: 0, False: 7.94k]
  ------------------
  485|      0|        return 0;
  486|  7.94k|#ifndef FIPS_MODULE
  487|  7.94k|    if (dgbl->random_provider != NULL)
  ------------------
  |  Branch (487:9): [True: 0, False: 7.94k]
  ------------------
  488|      0|        return ossl_provider_random_bytes(dgbl->random_provider,
  489|      0|            OSSL_PROV_RANDOM_PUBLIC,
  ------------------
  |  |  126|      0|#define OSSL_PROV_RANDOM_PUBLIC 0
  ------------------
  490|      0|            buf, num, strength);
  491|  7.94k|#endif /* !FIPS_MODULE */
  492|       |
  493|  7.94k|    rand = rand_get0_public(ctx, dgbl);
  494|  7.94k|    if (rand != NULL)
  ------------------
  |  Branch (494:9): [True: 7.94k, False: 0]
  ------------------
  495|  7.94k|        return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0);
  496|       |
  497|      0|    return 0;
  498|  7.94k|}
RAND_bytes:
  501|  7.28k|{
  502|  7.28k|    if (num < 0)
  ------------------
  |  Branch (502:9): [True: 0, False: 7.28k]
  ------------------
  503|      0|        return 0;
  504|  7.28k|    return RAND_bytes_ex(NULL, buf, (size_t)num, 0);
  505|  7.28k|}
ossl_rand_ctx_new:
  512|      2|{
  513|      2|    RAND_GLOBAL *dgbl = OPENSSL_zalloc(sizeof(*dgbl));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  514|       |
  515|      2|    if (dgbl == NULL)
  ------------------
  |  Branch (515:9): [True: 0, False: 2]
  ------------------
  516|      0|        return NULL;
  517|       |
  518|      2|#ifndef FIPS_MODULE
  519|       |    /*
  520|       |     * We need to ensure that base libcrypto thread handling has been
  521|       |     * initialised.
  522|       |     */
  523|      2|    OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL);
  ------------------
  |  |   31|      2|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  524|       |
  525|       |    /* Prepopulate the random provider name */
  526|      2|    dgbl->random_provider_name = OPENSSL_strdup(random_provider_fips_name);
  ------------------
  |  |  135|      2|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  527|      2|    if (dgbl->random_provider_name == NULL)
  ------------------
  |  Branch (527:9): [True: 0, False: 2]
  ------------------
  528|      0|        goto err0;
  529|      2|#endif
  530|       |
  531|      2|    dgbl->lock = CRYPTO_THREAD_lock_new();
  532|      2|    if (dgbl->lock == NULL)
  ------------------
  |  Branch (532:9): [True: 0, False: 2]
  ------------------
  533|      0|        goto err1;
  534|       |
  535|      2|    return dgbl;
  536|       |
  537|      0|err1:
  538|      0|    CRYPTO_THREAD_lock_free(dgbl->lock);
  539|      0|#ifndef FIPS_MODULE
  540|      0|err0:
  541|      0|    OPENSSL_free(dgbl->random_provider_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  542|      0|#endif
  543|      0|    OPENSSL_free(dgbl);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  544|       |    return NULL;
  545|      0|}
RAND_get0_primary:
  814|  1.56k|{
  815|  1.56k|    RAND_GLOBAL *dgbl = rand_get_global(ctx);
  816|       |
  817|  1.56k|    return dgbl == NULL ? NULL : rand_get0_primary(ctx, dgbl);
  ------------------
  |  Branch (817:12): [True: 0, False: 1.56k]
  ------------------
  818|  1.56k|}
rand_lib.c:do_rand_init:
  131|      1|{
  132|      1|#ifndef OPENSSL_NO_ENGINE
  133|      1|    rand_engine_lock = CRYPTO_THREAD_lock_new();
  134|      1|    if (rand_engine_lock == NULL)
  ------------------
  |  Branch (134:9): [True: 0, False: 1]
  ------------------
  135|      0|        return 0;
  136|      1|#endif /* !OPENSSL_NO_ENGINE */
  137|       |
  138|      1|#ifndef OPENSSL_NO_DEPRECATED_3_0
  139|      1|    rand_meth_lock = CRYPTO_THREAD_lock_new();
  140|      1|    if (rand_meth_lock == NULL)
  ------------------
  |  Branch (140:9): [True: 0, False: 1]
  ------------------
  141|      0|        goto err;
  142|      1|#endif /* !OPENSSL_NO_DEPRECATED_3_0 */
  143|       |
  144|      1|    if (!ossl_rand_pool_init())
  ------------------
  |  Branch (144:9): [True: 0, False: 1]
  ------------------
  145|      0|        goto err;
  146|       |
  147|      1|    rand_inited = 1;
  148|      1|    return 1;
  149|       |
  150|      0|err:
  151|      0|#ifndef OPENSSL_NO_DEPRECATED_3_0
  152|      0|    CRYPTO_THREAD_lock_free(rand_meth_lock);
  153|      0|    rand_meth_lock = NULL;
  154|      0|#endif /* !OPENSSL_NO_DEPRECATED_3_0 */
  155|      0|#ifndef OPENSSL_NO_ENGINE
  156|      0|    CRYPTO_THREAD_lock_free(rand_engine_lock);
  157|       |    rand_engine_lock = NULL;
  158|      0|#endif /* !OPENSSL_NO_ENGINE */
  159|      0|    return 0;
  160|      1|}
rand_lib.c:rand_get_global:
   83|  10.8k|{
   84|  10.8k|    return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_DRBG_INDEX);
  ------------------
  |  |  101|  10.8k|#define OSSL_LIB_CTX_DRBG_INDEX 5
  ------------------
   85|  10.8k|}
rand_lib.c:rand_get0_primary:
  742|  1.57k|{
  743|  1.57k|    EVP_RAND_CTX *ret, *seed, *newseed = NULL, *primary;
  744|       |
  745|  1.57k|    if (dgbl == NULL)
  ------------------
  |  Branch (745:9): [True: 0, False: 1.57k]
  ------------------
  746|      0|        return NULL;
  747|       |
  748|  1.57k|    if (!CRYPTO_THREAD_read_lock(dgbl->lock))
  ------------------
  |  Branch (748:9): [True: 0, False: 1.57k]
  ------------------
  749|      0|        return NULL;
  750|       |
  751|  1.57k|    ret = dgbl->primary;
  752|  1.57k|    seed = dgbl->seed;
  753|  1.57k|    CRYPTO_THREAD_unlock(dgbl->lock);
  754|       |
  755|  1.57k|    if (ret != NULL)
  ------------------
  |  Branch (755:9): [True: 1.57k, False: 1]
  ------------------
  756|  1.57k|        return ret;
  757|       |
  758|      1|#if !defined(FIPS_MODULE) || !defined(OPENSSL_NO_FIPS_JITTER)
  759|       |    /* Create a seed source for libcrypto or jitter enabled FIPS provider */
  760|      1|    if (seed == NULL) {
  ------------------
  |  Branch (760:9): [True: 1, False: 0]
  ------------------
  761|      1|        ERR_set_mark();
  762|      1|        seed = newseed = rand_new_seed(ctx);
  763|      1|        ERR_pop_to_mark();
  764|      1|    }
  765|      1|#endif /* !FIPS_MODULE || !OPENSSL_NO_FIPS_JITTER */
  766|       |
  767|       |#if defined(FIPS_MODULE)
  768|       |    /* The FIPS provider has entropy health tests instead of the primary */
  769|       |    ret = rand_new_crngt(ctx, seed);
  770|       |#else /* FIPS_MODULE */
  771|      1|    ret = rand_new_drbg(ctx, seed, PRIMARY_RESEED_INTERVAL,
  ------------------
  |  |   23|      1|#define PRIMARY_RESEED_INTERVAL (1 << 8)
  ------------------
  772|      1|        PRIMARY_RESEED_TIME_INTERVAL);
  ------------------
  |  |   25|      1|#define PRIMARY_RESEED_TIME_INTERVAL (60 * 60) /* 1 hour */
  ------------------
  773|      1|#endif /* FIPS_MODULE */
  774|       |
  775|       |    /*
  776|       |     * The primary DRBG may be shared between multiple threads so we must
  777|       |     * enable locking.
  778|       |     */
  779|      1|    if (ret == NULL || !EVP_RAND_enable_locking(ret)) {
  ------------------
  |  Branch (779:9): [True: 0, False: 1]
  |  Branch (779:24): [True: 0, False: 1]
  ------------------
  780|      0|        if (ret != NULL) {
  ------------------
  |  Branch (780:13): [True: 0, False: 0]
  ------------------
  781|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_UNABLE_TO_ENABLE_LOCKING);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  782|      0|            EVP_RAND_CTX_free(ret);
  783|      0|        }
  784|      0|        if (newseed == NULL)
  ------------------
  |  Branch (784:13): [True: 0, False: 0]
  ------------------
  785|      0|            return NULL;
  786|       |        /* else carry on and store seed */
  787|      0|        ret = NULL;
  788|      0|    }
  789|       |
  790|      1|    if (!CRYPTO_THREAD_write_lock(dgbl->lock))
  ------------------
  |  Branch (790:9): [True: 0, False: 1]
  ------------------
  791|      0|        return NULL;
  792|       |
  793|      1|    primary = dgbl->primary;
  794|      1|    if (primary != NULL) {
  ------------------
  |  Branch (794:9): [True: 0, False: 1]
  ------------------
  795|      0|        CRYPTO_THREAD_unlock(dgbl->lock);
  796|      0|        EVP_RAND_CTX_free(ret);
  797|      0|        EVP_RAND_CTX_free(newseed);
  798|      0|        return primary;
  799|      0|    }
  800|      1|    if (newseed != NULL)
  ------------------
  |  Branch (800:9): [True: 1, False: 0]
  ------------------
  801|      1|        dgbl->seed = newseed;
  802|      1|    dgbl->primary = ret;
  803|      1|    CRYPTO_THREAD_unlock(dgbl->lock);
  804|       |
  805|      1|    return ret;
  806|      1|}
rand_lib.c:rand_new_seed:
  590|      1|{
  591|      1|    EVP_RAND *rand;
  592|      1|    const char *propq;
  593|      1|    char *name;
  594|      1|    EVP_RAND_CTX *ctx = NULL;
  595|      1|#ifdef OPENSSL_NO_FIPS_JITTER
  596|      1|    RAND_GLOBAL *dgbl = rand_get_global(libctx);
  597|       |
  598|      1|    if (dgbl == NULL)
  ------------------
  |  Branch (598:9): [True: 0, False: 1]
  ------------------
  599|      0|        return NULL;
  600|      1|    propq = dgbl->seed_propq;
  601|      1|    name = dgbl->seed_name != NULL ? dgbl->seed_name
  ------------------
  |  Branch (601:12): [True: 0, False: 1]
  ------------------
  602|      1|                                   : OPENSSL_MSTR(OPENSSL_DEFAULT_SEED_SRC);
  ------------------
  |  |   19|      1|#define OPENSSL_MSTR(x) OPENSSL_MSTR_HELPER(x)
  |  |  ------------------
  |  |  |  |   18|      2|#define OPENSSL_MSTR_HELPER(x) #x
  |  |  ------------------
  ------------------
  603|       |#else /* !OPENSSL_NO_FIPS_JITTER */
  604|       |    name = "JITTER";
  605|       |    propq = "";
  606|       |#endif /* OPENSSL_NO_FIPS_JITTER */
  607|       |
  608|      1|    rand = EVP_RAND_fetch(libctx, name, propq);
  609|      1|    if (rand == NULL) {
  ------------------
  |  Branch (609:9): [True: 0, False: 1]
  ------------------
  610|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_UNABLE_TO_FETCH_DRBG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  611|      0|        goto err;
  612|      0|    }
  613|      1|    ctx = EVP_RAND_CTX_new(rand, NULL);
  614|      1|    EVP_RAND_free(rand);
  615|      1|    if (ctx == NULL) {
  ------------------
  |  Branch (615:9): [True: 0, False: 1]
  ------------------
  616|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_UNABLE_TO_CREATE_DRBG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  617|      0|        goto err;
  618|      0|    }
  619|      1|    if (!EVP_RAND_instantiate(ctx, 0, 0, NULL, 0, NULL)) {
  ------------------
  |  Branch (619:9): [True: 0, False: 1]
  ------------------
  620|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_ERROR_INSTANTIATING_DRBG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  621|      0|        goto err;
  622|      0|    }
  623|      1|    return ctx;
  624|      0|err:
  625|      0|    EVP_RAND_CTX_free(ctx);
  626|       |    return NULL;
  627|      1|}
rand_lib.c:rand_new_drbg:
  650|      3|{
  651|      3|    EVP_RAND *rand;
  652|      3|    RAND_GLOBAL *dgbl = rand_get_global(libctx);
  653|      3|    EVP_RAND_CTX *ctx;
  654|      3|    OSSL_PARAM params[9], *p = params;
  655|      3|    const OSSL_PARAM *settables;
  656|      3|    const char *prov_name;
  657|      3|    char *name, *cipher;
  658|      3|    int use_df = 1;
  659|       |
  660|      3|    if (dgbl == NULL)
  ------------------
  |  Branch (660:9): [True: 0, False: 3]
  ------------------
  661|      0|        return NULL;
  662|      3|    name = dgbl->rng_name != NULL ? dgbl->rng_name : "CTR-DRBG";
  ------------------
  |  Branch (662:12): [True: 0, False: 3]
  ------------------
  663|      3|    rand = EVP_RAND_fetch(libctx, name, dgbl->rng_propq);
  664|      3|    if (rand == NULL) {
  ------------------
  |  Branch (664:9): [True: 0, False: 3]
  ------------------
  665|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_UNABLE_TO_FETCH_DRBG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  666|      0|        return NULL;
  667|      0|    }
  668|      3|    prov_name = ossl_provider_name(EVP_RAND_get0_provider(rand));
  669|      3|    ctx = EVP_RAND_CTX_new(rand, parent);
  670|      3|    EVP_RAND_free(rand);
  671|      3|    if (ctx == NULL) {
  ------------------
  |  Branch (671:9): [True: 0, False: 3]
  ------------------
  672|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_UNABLE_TO_CREATE_DRBG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  673|      0|        return NULL;
  674|      0|    }
  675|       |
  676|      3|    settables = EVP_RAND_CTX_settable_params(ctx);
  677|      3|    if (OSSL_PARAM_locate_const(settables, OSSL_DRBG_PARAM_CIPHER)) {
  ------------------
  |  |  233|      3|# define OSSL_DRBG_PARAM_CIPHER OSSL_ALG_PARAM_CIPHER
  |  |  ------------------
  |  |  |  |  127|      3|# define OSSL_ALG_PARAM_CIPHER "cipher"
  |  |  ------------------
  ------------------
  |  Branch (677:9): [True: 3, False: 0]
  ------------------
  678|      3|        cipher = dgbl->rng_cipher != NULL ? dgbl->rng_cipher : "AES-256-CTR";
  ------------------
  |  Branch (678:18): [True: 0, False: 3]
  ------------------
  679|      3|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_CIPHER,
  ------------------
  |  |  233|      3|# define OSSL_DRBG_PARAM_CIPHER OSSL_ALG_PARAM_CIPHER
  |  |  ------------------
  |  |  |  |  127|      3|# define OSSL_ALG_PARAM_CIPHER "cipher"
  |  |  ------------------
  ------------------
  680|      3|            cipher, 0);
  681|      3|    }
  682|      3|    if (dgbl->rng_digest != NULL
  ------------------
  |  Branch (682:9): [True: 0, False: 3]
  ------------------
  683|      0|        && OSSL_PARAM_locate_const(settables, OSSL_DRBG_PARAM_DIGEST))
  ------------------
  |  |  234|      0|# define OSSL_DRBG_PARAM_DIGEST OSSL_ALG_PARAM_DIGEST
  |  |  ------------------
  |  |  |  |  128|      0|# define OSSL_ALG_PARAM_DIGEST "digest"
  |  |  ------------------
  ------------------
  |  Branch (683:12): [True: 0, False: 0]
  ------------------
  684|      0|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_DIGEST,
  ------------------
  |  |  234|      0|# define OSSL_DRBG_PARAM_DIGEST OSSL_ALG_PARAM_DIGEST
  |  |  ------------------
  |  |  |  |  128|      0|# define OSSL_ALG_PARAM_DIGEST "digest"
  |  |  ------------------
  ------------------
  685|      0|            dgbl->rng_digest, 0);
  686|      3|    if (prov_name != NULL)
  ------------------
  |  Branch (686:9): [True: 3, False: 0]
  ------------------
  687|      3|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_PROV_PARAM_CORE_PROV_NAME,
  ------------------
  |  |  502|      3|# define OSSL_PROV_PARAM_CORE_PROV_NAME "provider-name"
  ------------------
  688|      3|            (char *)prov_name, 0);
  689|      3|    if (dgbl->rng_propq != NULL)
  ------------------
  |  Branch (689:9): [True: 0, False: 3]
  ------------------
  690|      0|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_PROPERTIES,
  ------------------
  |  |  248|      0|# define OSSL_DRBG_PARAM_PROPERTIES OSSL_ALG_PARAM_PROPERTIES
  |  |  ------------------
  |  |  |  |  132|      0|# define OSSL_ALG_PARAM_PROPERTIES "properties"
  |  |  ------------------
  ------------------
  691|      0|            dgbl->rng_propq, 0);
  692|      3|    if (OSSL_PARAM_locate_const(settables, OSSL_ALG_PARAM_MAC))
  ------------------
  |  |  131|      3|# define OSSL_ALG_PARAM_MAC "mac"
  ------------------
  |  Branch (692:9): [True: 0, False: 3]
  ------------------
  693|      0|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_ALG_PARAM_MAC, "HMAC", 0);
  ------------------
  |  |  131|      0|# define OSSL_ALG_PARAM_MAC "mac"
  ------------------
  694|      3|    if (OSSL_PARAM_locate_const(settables, OSSL_DRBG_PARAM_USE_DF))
  ------------------
  |  |  255|      3|# define OSSL_DRBG_PARAM_USE_DF "use_derivation_function"
  ------------------
  |  Branch (694:9): [True: 3, False: 0]
  ------------------
  695|      3|        *p++ = OSSL_PARAM_construct_int(OSSL_DRBG_PARAM_USE_DF, &use_df);
  ------------------
  |  |  255|      3|# define OSSL_DRBG_PARAM_USE_DF "use_derivation_function"
  ------------------
  696|      3|    *p++ = OSSL_PARAM_construct_uint(OSSL_DRBG_PARAM_RESEED_REQUESTS,
  ------------------
  |  |  251|      3|# define OSSL_DRBG_PARAM_RESEED_REQUESTS "reseed_requests"
  ------------------
  697|      3|        &reseed_interval);
  698|      3|    *p++ = OSSL_PARAM_construct_time_t(OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL,
  ------------------
  |  |  253|      3|# define OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL "reseed_time_interval"
  ------------------
  699|      3|        &reseed_time_interval);
  700|      3|    *p = OSSL_PARAM_construct_end();
  701|      3|    if (!EVP_RAND_instantiate(ctx, 0, 0, NULL, 0, params)) {
  ------------------
  |  Branch (701:9): [True: 0, False: 3]
  ------------------
  702|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_ERROR_INSTANTIATING_DRBG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  703|      0|        EVP_RAND_CTX_free(ctx);
  704|      0|        return NULL;
  705|      0|    }
  706|      3|    return ctx;
  707|      3|}
rand_lib.c:rand_get0_public:
  821|  7.94k|{
  822|  7.94k|    EVP_RAND_CTX *rand, *primary;
  823|  7.94k|    OSSL_LIB_CTX *origctx = ctx;
  824|       |
  825|  7.94k|    ctx = ossl_lib_ctx_get_concrete(ctx);
  826|       |
  827|  7.94k|    if (ctx == NULL)
  ------------------
  |  Branch (827:9): [True: 0, False: 7.94k]
  ------------------
  828|      0|        return NULL;
  829|       |
  830|  7.94k|    if (dgbl == NULL)
  ------------------
  |  Branch (830:9): [True: 0, False: 7.94k]
  ------------------
  831|      0|        return NULL;
  832|       |
  833|  7.94k|    rand = CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PUB_KEY, ctx);
  834|  7.94k|    if (rand == NULL) {
  ------------------
  |  Branch (834:9): [True: 1, False: 7.94k]
  ------------------
  835|      1|        primary = rand_get0_primary(origctx, dgbl);
  836|      1|        if (primary == NULL)
  ------------------
  |  Branch (836:13): [True: 0, False: 1]
  ------------------
  837|      0|            return NULL;
  838|       |
  839|       |        /*
  840|       |         * If the private is also NULL then this is the first time we've
  841|       |         * used this thread.
  842|       |         */
  843|      1|        if (CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PRIV_KEY, ctx) == NULL
  ------------------
  |  Branch (843:13): [True: 1, False: 0]
  ------------------
  844|      1|            && !ossl_init_thread_start(NULL, ctx, rand_delete_thread_state))
  ------------------
  |  Branch (844:16): [True: 0, False: 1]
  ------------------
  845|      0|            return NULL;
  846|      1|        rand = rand_new_drbg(ctx, primary, SECONDARY_RESEED_INTERVAL,
  ------------------
  |  |   24|      1|#define SECONDARY_RESEED_INTERVAL (1 << 16)
  ------------------
  847|      1|            SECONDARY_RESEED_TIME_INTERVAL);
  ------------------
  |  |   26|      1|#define SECONDARY_RESEED_TIME_INTERVAL (7 * 60) /* 7 minutes */
  ------------------
  848|      1|        if (!CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PUB_KEY, ctx, rand)) {
  ------------------
  |  Branch (848:13): [True: 0, False: 1]
  ------------------
  849|      0|            EVP_RAND_CTX_free(rand);
  850|      0|            rand = NULL;
  851|      0|        }
  852|      1|    }
  853|  7.94k|    return rand;
  854|  7.94k|}
rand_lib.c:rand_get0_private:
  868|  1.31k|{
  869|  1.31k|    EVP_RAND_CTX *rand, *primary;
  870|  1.31k|    OSSL_LIB_CTX *origctx = ctx;
  871|       |
  872|  1.31k|    ctx = ossl_lib_ctx_get_concrete(ctx);
  873|  1.31k|    if (ctx == NULL)
  ------------------
  |  Branch (873:9): [True: 0, False: 1.31k]
  ------------------
  874|      0|        return NULL;
  875|       |
  876|  1.31k|    rand = CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PRIV_KEY, ctx);
  877|  1.31k|    if (rand == NULL) {
  ------------------
  |  Branch (877:9): [True: 1, False: 1.31k]
  ------------------
  878|      1|        primary = rand_get0_primary(origctx, dgbl);
  879|      1|        if (primary == NULL)
  ------------------
  |  Branch (879:13): [True: 0, False: 1]
  ------------------
  880|      0|            return NULL;
  881|       |
  882|       |        /*
  883|       |         * If the public is also NULL then this is the first time we've
  884|       |         * used this thread.
  885|       |         */
  886|      1|        if (CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PUB_KEY, ctx) == NULL
  ------------------
  |  Branch (886:13): [True: 0, False: 1]
  ------------------
  887|      0|            && !ossl_init_thread_start(NULL, ctx, rand_delete_thread_state))
  ------------------
  |  Branch (887:16): [True: 0, False: 0]
  ------------------
  888|      0|            return NULL;
  889|      1|        rand = rand_new_drbg(ctx, primary, SECONDARY_RESEED_INTERVAL,
  ------------------
  |  |   24|      1|#define SECONDARY_RESEED_INTERVAL (1 << 16)
  ------------------
  890|      1|            SECONDARY_RESEED_TIME_INTERVAL);
  ------------------
  |  |   26|      1|#define SECONDARY_RESEED_TIME_INTERVAL (7 * 60) /* 7 minutes */
  ------------------
  891|      1|        if (!CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PRIV_KEY, ctx, rand)) {
  ------------------
  |  Branch (891:13): [True: 0, False: 1]
  ------------------
  892|      0|            EVP_RAND_CTX_free(rand);
  893|      0|            rand = NULL;
  894|      0|        }
  895|      1|    }
  896|  1.31k|    return rand;
  897|  1.31k|}

RAND_OpenSSL:
   63|  10.8k|{
   64|  10.8k|    return &ossl_rand_meth;
   65|  10.8k|}

ossl_rand_pool_new:
   24|      1|{
   25|      1|    RAND_POOL *pool = OPENSSL_zalloc(sizeof(*pool));
  ------------------
  |  |  108|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   26|      1|    size_t min_alloc_size = RAND_POOL_MIN_ALLOCATION(secure);
  ------------------
  |  |   59|      1|#define RAND_POOL_MIN_ALLOCATION(secure) ((secure) ? 16 : 48)
  |  |  ------------------
  |  |  |  Branch (59:43): [True: 1, False: 0]
  |  |  ------------------
  ------------------
   27|       |
   28|      1|    if (pool == NULL)
  ------------------
  |  Branch (28:9): [True: 0, False: 1]
  ------------------
   29|      0|        return NULL;
   30|       |
   31|      1|    pool->min_len = min_len;
   32|      1|    pool->max_len = (max_len > RAND_POOL_MAX_LENGTH) ? RAND_POOL_MAX_LENGTH : max_len;
  ------------------
  |  |   36|      1|#define RAND_POOL_MAX_LENGTH (RAND_POOL_FACTOR * 3 * (RAND_DRBG_STRENGTH / 16))
  |  |  ------------------
  |  |  |  |   35|      1|#define RAND_POOL_FACTOR 256
  |  |  ------------------
  |  |               #define RAND_POOL_MAX_LENGTH (RAND_POOL_FACTOR * 3 * (RAND_DRBG_STRENGTH / 16))
  |  |  ------------------
  |  |  |  |   37|      1|#define RAND_DRBG_STRENGTH 256
  |  |  ------------------
  ------------------
                  pool->max_len = (max_len > RAND_POOL_MAX_LENGTH) ? RAND_POOL_MAX_LENGTH : max_len;
  ------------------
  |  |   36|      1|#define RAND_POOL_MAX_LENGTH (RAND_POOL_FACTOR * 3 * (RAND_DRBG_STRENGTH / 16))
  |  |  ------------------
  |  |  |  |   35|      1|#define RAND_POOL_FACTOR 256
  |  |  ------------------
  |  |               #define RAND_POOL_MAX_LENGTH (RAND_POOL_FACTOR * 3 * (RAND_DRBG_STRENGTH / 16))
  |  |  ------------------
  |  |  |  |   37|      1|#define RAND_DRBG_STRENGTH 256
  |  |  ------------------
  ------------------
  |  Branch (32:21): [True: 1, False: 0]
  ------------------
   33|      1|    pool->alloc_len = min_len < min_alloc_size ? min_alloc_size : min_len;
  ------------------
  |  Branch (33:23): [True: 0, False: 1]
  ------------------
   34|      1|    if (pool->alloc_len > pool->max_len)
  ------------------
  |  Branch (34:9): [True: 0, False: 1]
  ------------------
   35|      0|        pool->alloc_len = pool->max_len;
   36|       |
   37|      1|    if (secure)
  ------------------
  |  Branch (37:9): [True: 1, False: 0]
  ------------------
   38|      1|        pool->buffer = OPENSSL_secure_zalloc(pool->alloc_len);
  ------------------
  |  |  141|      1|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   39|      0|    else
   40|      0|        pool->buffer = OPENSSL_zalloc(pool->alloc_len);
  ------------------
  |  |  108|      0|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   41|       |
   42|      1|    if (pool->buffer == NULL)
  ------------------
  |  Branch (42:9): [True: 0, False: 1]
  ------------------
   43|      0|        goto err;
   44|       |
   45|      1|    pool->entropy_requested = entropy_requested;
   46|      1|    pool->secure = secure;
   47|      1|    return pool;
   48|       |
   49|      0|err:
   50|      0|    OPENSSL_free(pool);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   51|       |    return NULL;
   52|      1|}
ossl_rand_pool_free:
   88|      1|{
   89|      1|    if (pool == NULL)
  ------------------
  |  Branch (89:9): [True: 0, False: 1]
  ------------------
   90|      0|        return;
   91|       |
   92|       |    /*
   93|       |     * Although it would be advisable from a cryptographical viewpoint,
   94|       |     * we are not allowed to clear attached buffers, since they are passed
   95|       |     * to ossl_rand_pool_attach() as `const unsigned char*`.
   96|       |     * (see corresponding comment in ossl_rand_pool_attach()).
   97|       |     */
   98|      1|    if (!pool->attached) {
  ------------------
  |  Branch (98:9): [True: 1, False: 0]
  ------------------
   99|      1|        if (pool->secure)
  ------------------
  |  Branch (99:13): [True: 1, False: 0]
  ------------------
  100|      1|            OPENSSL_secure_clear_free(pool->buffer, pool->alloc_len);
  ------------------
  |  |  149|      1|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  101|      0|        else
  102|      0|            OPENSSL_clear_free(pool->buffer, pool->alloc_len);
  ------------------
  |  |  129|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  103|      1|    }
  104|       |
  105|      1|    OPENSSL_free(pool);
  ------------------
  |  |  131|      1|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  106|      1|}
ossl_rand_pool_length:
  128|      1|{
  129|      1|    return pool->len;
  130|      1|}
ossl_rand_pool_detach:
  139|      1|{
  140|      1|    unsigned char *ret = pool->buffer;
  141|       |    pool->buffer = NULL;
  142|      1|    pool->entropy = 0;
  143|      1|    return ret;
  144|      1|}
ossl_rand_pool_entropy_available:
  173|      1|{
  174|      1|    if (pool->entropy < pool->entropy_requested)
  ------------------
  |  Branch (174:9): [True: 0, False: 1]
  ------------------
  175|      0|        return 0;
  176|       |
  177|      1|    if (pool->len < pool->min_len)
  ------------------
  |  Branch (177:9): [True: 0, False: 1]
  ------------------
  178|      0|        return 0;
  179|       |
  180|      1|    return pool->entropy;
  181|      1|}
ossl_rand_pool_entropy_needed:
  189|      1|{
  190|      1|    if (pool->entropy < pool->entropy_requested)
  ------------------
  |  Branch (190:9): [True: 1, False: 0]
  ------------------
  191|      1|        return pool->entropy_requested - pool->entropy;
  192|       |
  193|      0|    return 0;
  194|      1|}
ossl_rand_pool_bytes_needed:
  237|      1|{
  238|      1|    size_t bytes_needed;
  239|      1|    size_t entropy_needed = ossl_rand_pool_entropy_needed(pool);
  240|       |
  241|      1|    if (entropy_factor < 1) {
  ------------------
  |  Branch (241:9): [True: 0, False: 1]
  ------------------
  242|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_ARGUMENT_OUT_OF_RANGE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  243|      0|        return 0;
  244|      0|    }
  245|       |
  246|      1|    bytes_needed = ENTROPY_TO_BYTES(entropy_needed, entropy_factor);
  ------------------
  |  |  162|      1|    (((bits) * (entropy_factor) + 7) / 8)
  ------------------
  247|       |
  248|      1|    if (bytes_needed > pool->max_len - pool->len) {
  ------------------
  |  Branch (248:9): [True: 0, False: 1]
  ------------------
  249|       |        /* not enough space left */
  250|      0|        ERR_raise_data(ERR_LIB_RAND, RAND_R_RANDOM_POOL_OVERFLOW,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_RAND, RAND_R_RANDOM_POOL_OVERFLOW,
  ------------------
  |  |   99|      0|#define ERR_LIB_RAND 36
  ------------------
                      ERR_raise_data(ERR_LIB_RAND, RAND_R_RANDOM_POOL_OVERFLOW,
  ------------------
  |  |   53|      0|#define RAND_R_RANDOM_POOL_OVERFLOW 125
  ------------------
  251|      0|            "entropy_factor=%u, entropy_needed=%zu, bytes_needed=%zu,"
  252|      0|            "pool->max_len=%zu, pool->len=%zu",
  253|      0|            entropy_factor, entropy_needed, bytes_needed,
  254|      0|            pool->max_len, pool->len);
  255|      0|        return 0;
  256|      0|    }
  257|       |
  258|      1|    if (pool->len < pool->min_len && bytes_needed < pool->min_len - pool->len)
  ------------------
  |  Branch (258:9): [True: 1, False: 0]
  |  Branch (258:38): [True: 0, False: 1]
  ------------------
  259|       |        /* to meet the min_len requirement */
  260|      0|        bytes_needed = pool->min_len - pool->len;
  261|       |
  262|       |    /*
  263|       |     * Make sure the buffer is large enough for the requested amount
  264|       |     * of data. This guarantees that existing code patterns where
  265|       |     * ossl_rand_pool_add_begin, ossl_rand_pool_add_end or ossl_rand_pool_add
  266|       |     * are used to collect entropy data without any error handling
  267|       |     * whatsoever, continue to be valid.
  268|       |     * Furthermore if the allocation here fails once, make sure that
  269|       |     * we don't fall back to a less secure or even blocking random source,
  270|       |     * as that could happen by the existing code patterns.
  271|       |     * This is not a concern for additional data, therefore that
  272|       |     * is not needed if rand_pool_grow fails in other places.
  273|       |     */
  274|      1|    if (!rand_pool_grow(pool, bytes_needed)) {
  ------------------
  |  Branch (274:9): [True: 0, False: 1]
  ------------------
  275|       |        /* persistent error for this pool */
  276|      0|        pool->max_len = pool->len = 0;
  277|      0|        return 0;
  278|      0|    }
  279|       |
  280|      1|    return bytes_needed;
  281|      1|}
ossl_rand_pool_add_begin:
  354|      1|{
  355|      1|    if (len == 0)
  ------------------
  |  Branch (355:9): [True: 0, False: 1]
  ------------------
  356|      0|        return NULL;
  357|       |
  358|      1|    if (len > pool->max_len - pool->len) {
  ------------------
  |  Branch (358:9): [True: 0, False: 1]
  ------------------
  359|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_RANDOM_POOL_OVERFLOW);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  360|      0|        return NULL;
  361|      0|    }
  362|       |
  363|      1|    if (pool->buffer == NULL) {
  ------------------
  |  Branch (363:9): [True: 0, False: 1]
  ------------------
  364|      0|        ERR_raise(ERR_LIB_RAND, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  365|      0|        return NULL;
  366|      0|    }
  367|       |
  368|       |    /*
  369|       |     * As long as the allocation request stays within the limits given
  370|       |     * by ossl_rand_pool_bytes_needed this rand_pool_grow below is guaranteed
  371|       |     * to succeed, thus no allocation happens.
  372|       |     * We have that only for cases when a pool is used to collect
  373|       |     * additional data. Then the buffer might need to grow here,
  374|       |     * and of course the caller is responsible to check the return
  375|       |     * value of this function.
  376|       |     */
  377|      1|    if (!rand_pool_grow(pool, len))
  ------------------
  |  Branch (377:9): [True: 0, False: 1]
  ------------------
  378|      0|        return NULL;
  379|       |
  380|      1|    return pool->buffer + pool->len;
  381|      1|}
ossl_rand_pool_add_end:
  393|      1|{
  394|      1|    if (len > pool->alloc_len - pool->len) {
  ------------------
  |  Branch (394:9): [True: 0, False: 1]
  ------------------
  395|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_RANDOM_POOL_OVERFLOW);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  396|      0|        return 0;
  397|      0|    }
  398|       |
  399|      1|    if (len > 0) {
  ------------------
  |  Branch (399:9): [True: 1, False: 0]
  ------------------
  400|      1|        pool->len += len;
  401|      1|        pool->entropy += entropy;
  402|      1|    }
  403|       |
  404|      1|    return 1;
  405|      1|}
ossl_rand_pool_adin_mix_in:
  420|      1|{
  421|      1|    if (adin == NULL || adin_len == 0)
  ------------------
  |  Branch (421:9): [True: 0, False: 1]
  |  Branch (421:25): [True: 0, False: 1]
  ------------------
  422|       |        /* Nothing to mix in -> success */
  423|      0|        return 1;
  424|       |
  425|      1|    if (pool->buffer == NULL) {
  ------------------
  |  Branch (425:9): [True: 0, False: 1]
  ------------------
  426|      0|        ERR_raise(ERR_LIB_RAND, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  427|      0|        return 0;
  428|      0|    }
  429|       |
  430|      1|    if (pool->len == 0) {
  ------------------
  |  Branch (430:9): [True: 0, False: 1]
  ------------------
  431|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_RANDOM_POOL_IS_EMPTY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  432|      0|        return 0;
  433|      0|    }
  434|       |
  435|      1|    if (adin != NULL && adin_len > 0) {
  ------------------
  |  Branch (435:9): [True: 1, False: 0]
  |  Branch (435:25): [True: 1, False: 0]
  ------------------
  436|      1|        size_t i;
  437|       |
  438|       |        /* xor the additional data into the pool */
  439|      9|        for (i = 0; i < adin_len; ++i)
  ------------------
  |  Branch (439:21): [True: 8, False: 1]
  ------------------
  440|      8|            pool->buffer[i % pool->len] ^= adin[i];
  441|      1|    }
  442|       |
  443|      1|    return 1;
  444|      1|}
rand_pool.c:rand_pool_grow:
  198|      2|{
  199|      2|    if (len > pool->alloc_len - pool->len) {
  ------------------
  |  Branch (199:9): [True: 0, False: 2]
  ------------------
  200|      0|        unsigned char *p;
  201|      0|        const size_t limit = pool->max_len / 2;
  202|      0|        size_t newlen = pool->alloc_len;
  203|       |
  204|      0|        if (pool->attached || len > pool->max_len - pool->len) {
  ------------------
  |  Branch (204:13): [True: 0, False: 0]
  |  Branch (204:31): [True: 0, False: 0]
  ------------------
  205|      0|            ERR_raise(ERR_LIB_RAND, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  206|      0|            return 0;
  207|      0|        }
  208|       |
  209|      0|        do
  210|      0|            newlen = newlen < limit ? newlen * 2 : pool->max_len;
  ------------------
  |  Branch (210:22): [True: 0, False: 0]
  ------------------
  211|      0|        while (len > newlen - pool->len);
  ------------------
  |  Branch (211:16): [True: 0, False: 0]
  ------------------
  212|       |
  213|      0|        if (pool->secure)
  ------------------
  |  Branch (213:13): [True: 0, False: 0]
  ------------------
  214|      0|            p = OPENSSL_secure_zalloc(newlen);
  ------------------
  |  |  141|      0|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  215|      0|        else
  216|      0|            p = OPENSSL_zalloc(newlen);
  ------------------
  |  |  108|      0|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  217|      0|        if (p == NULL)
  ------------------
  |  Branch (217:13): [True: 0, False: 0]
  ------------------
  218|      0|            return 0;
  219|      0|        memcpy(p, pool->buffer, pool->len);
  220|      0|        if (pool->secure)
  ------------------
  |  Branch (220:13): [True: 0, False: 0]
  ------------------
  221|      0|            OPENSSL_secure_clear_free(pool->buffer, pool->alloc_len);
  ------------------
  |  |  149|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  222|      0|        else
  223|      0|            OPENSSL_clear_free(pool->buffer, pool->alloc_len);
  ------------------
  |  |  129|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  224|      0|        pool->buffer = p;
  225|      0|        pool->alloc_len = newlen;
  226|      0|    }
  227|      2|    return 1;
  228|      2|}

rsa_ameth.c:rsa_pub_decode:
   77|  23.2k|{
   78|  23.2k|    const unsigned char *p;
   79|  23.2k|    int pklen;
   80|  23.2k|    X509_ALGOR *alg;
   81|  23.2k|    RSA *rsa = NULL;
   82|       |
   83|  23.2k|    if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &alg, pubkey))
  ------------------
  |  Branch (83:9): [True: 0, False: 23.2k]
  ------------------
   84|      0|        return 0;
   85|  23.2k|    if ((rsa = d2i_RSAPublicKey(NULL, &p, pklen)) == NULL)
  ------------------
  |  Branch (85:9): [True: 0, False: 23.2k]
  ------------------
   86|      0|        return 0;
   87|  23.2k|    if (!ossl_rsa_param_decode(rsa, alg)) {
  ------------------
  |  Branch (87:9): [True: 0, False: 23.2k]
  ------------------
   88|      0|        RSA_free(rsa);
   89|      0|        return 0;
   90|      0|    }
   91|       |
   92|  23.2k|    RSA_clear_flags(rsa, RSA_FLAG_TYPE_MASK);
  ------------------
  |  |  117|  23.2k|#define RSA_FLAG_TYPE_MASK 0xF000
  ------------------
   93|  23.2k|    switch (pkey->ameth->pkey_id) {
   94|  23.2k|    case EVP_PKEY_RSA:
  ------------------
  |  |   63|  23.2k|#define EVP_PKEY_RSA NID_rsaEncryption
  |  |  ------------------
  |  |  |  |  543|  23.2k|#define NID_rsaEncryption               6
  |  |  ------------------
  ------------------
  |  Branch (94:5): [True: 23.2k, False: 0]
  ------------------
   95|  23.2k|        RSA_set_flags(rsa, RSA_FLAG_TYPE_RSA);
  ------------------
  |  |  118|  23.2k|#define RSA_FLAG_TYPE_RSA 0x0000
  ------------------
   96|  23.2k|        break;
   97|      0|    case EVP_PKEY_RSA_PSS:
  ------------------
  |  |   65|      0|#define EVP_PKEY_RSA_PSS NID_rsassaPss
  |  |  ------------------
  |  |  |  |  583|      0|#define NID_rsassaPss           912
  |  |  ------------------
  ------------------
  |  Branch (97:5): [True: 0, False: 23.2k]
  ------------------
   98|      0|        RSA_set_flags(rsa, RSA_FLAG_TYPE_RSASSAPSS);
  ------------------
  |  |  119|      0|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
   99|      0|        break;
  100|      0|    default:
  ------------------
  |  Branch (100:5): [True: 0, False: 23.2k]
  ------------------
  101|       |        /* Leave the type bits zero */
  102|      0|        break;
  103|  23.2k|    }
  104|       |
  105|  23.2k|    if (!EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa)) {
  ------------------
  |  Branch (105:9): [True: 0, False: 23.2k]
  ------------------
  106|      0|        RSA_free(rsa);
  107|      0|        return 0;
  108|      0|    }
  109|  23.2k|    return 1;
  110|  23.2k|}
rsa_ameth.c:int_rsa_free:
  201|  23.2k|{
  202|  23.2k|    RSA_free(pkey->pkey.rsa);
  203|  23.2k|}

rsa_asn1.c:rsa_cb:
   30|  69.6k|{
   31|  69.6k|    if (operation == ASN1_OP_NEW_PRE) {
  ------------------
  |  |  731|  69.6k|#define ASN1_OP_NEW_PRE 0
  ------------------
  |  Branch (31:9): [True: 23.2k, False: 46.4k]
  ------------------
   32|  23.2k|        *pval = (ASN1_VALUE *)RSA_new();
   33|  23.2k|        if (*pval != NULL)
  ------------------
  |  Branch (33:13): [True: 23.2k, False: 0]
  ------------------
   34|  23.2k|            return 2;
   35|      0|        return 0;
   36|  46.4k|    } else if (operation == ASN1_OP_FREE_PRE) {
  ------------------
  |  |  733|  46.4k|#define ASN1_OP_FREE_PRE 2
  ------------------
  |  Branch (36:16): [True: 0, False: 46.4k]
  ------------------
   37|      0|        RSA_free((RSA *)*pval);
   38|      0|        *pval = NULL;
   39|      0|        return 2;
   40|  46.4k|    } else if (operation == ASN1_OP_D2I_POST) {
  ------------------
  |  |  736|  46.4k|#define ASN1_OP_D2I_POST 5
  ------------------
  |  Branch (40:16): [True: 23.2k, False: 23.2k]
  ------------------
   41|  23.2k|        if (((RSA *)*pval)->version != RSA_ASN1_VERSION_MULTI) {
  ------------------
  |  |   60|  23.2k|#define RSA_ASN1_VERSION_MULTI 1
  ------------------
  |  Branch (41:13): [True: 23.2k, False: 0]
  ------------------
   42|       |            /* not a multi-prime key, skip */
   43|  23.2k|            return 1;
   44|  23.2k|        }
   45|      0|        return (ossl_rsa_multip_calc_product((RSA *)*pval) == 1) ? 2 : 0;
  ------------------
  |  Branch (45:16): [True: 0, False: 0]
  ------------------
   46|  23.2k|    }
   47|  23.2k|    return 1;
   48|  69.6k|}

ossl_rsa_todata:
  262|  23.2k|{
  263|  23.2k|    int ret = 0;
  264|  23.2k|    const BIGNUM *rsa_d = NULL, *rsa_n = NULL, *rsa_e = NULL;
  265|  23.2k|    STACK_OF(BIGNUM_const) *factors = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  23.2k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  266|  23.2k|    STACK_OF(BIGNUM_const) *exps = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  23.2k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  267|  23.2k|    STACK_OF(BIGNUM_const) *coeffs = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  23.2k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  268|       |
  269|  23.2k|    if (rsa == NULL || factors == NULL || exps == NULL || coeffs == NULL)
  ------------------
  |  Branch (269:9): [True: 0, False: 23.2k]
  |  Branch (269:24): [True: 0, False: 23.2k]
  |  Branch (269:43): [True: 0, False: 23.2k]
  |  Branch (269:59): [True: 0, False: 23.2k]
  ------------------
  270|      0|        goto err;
  271|       |
  272|  23.2k|    RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d);
  273|  23.2k|    ossl_rsa_get0_all_params(rsa, factors, exps, coeffs);
  274|       |
  275|  23.2k|    if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_N, rsa_n)
  ------------------
  |  |  482|  23.2k|# define OSSL_PKEY_PARAM_RSA_N "n"
  ------------------
  |  Branch (275:9): [True: 0, False: 23.2k]
  ------------------
  276|  23.2k|        || !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_E, rsa_e))
  ------------------
  |  |  457|  23.2k|# define OSSL_PKEY_PARAM_RSA_E "e"
  ------------------
  |  Branch (276:12): [True: 0, False: 23.2k]
  ------------------
  277|      0|        goto err;
  278|       |
  279|       |    /* Check private key data integrity */
  280|  23.2k|    if (include_private && rsa_d != NULL) {
  ------------------
  |  Branch (280:9): [True: 23.2k, False: 0]
  |  Branch (280:28): [True: 0, False: 23.2k]
  ------------------
  281|       |
  282|      0|        if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_D,
  ------------------
  |  |  453|      0|# define OSSL_PKEY_PARAM_RSA_D "d"
  ------------------
  |  Branch (282:13): [True: 0, False: 0]
  ------------------
  283|      0|                rsa_d)
  284|      0|            || !ossl_param_build_set_multi_key_bn(bld, params,
  ------------------
  |  Branch (284:16): [True: 0, False: 0]
  ------------------
  285|      0|                ossl_rsa_mp_factor_names,
  286|      0|                factors)
  287|      0|            || !ossl_param_build_set_multi_key_bn(bld, params,
  ------------------
  |  Branch (287:16): [True: 0, False: 0]
  ------------------
  288|      0|                ossl_rsa_mp_exp_names, exps)
  289|      0|            || !ossl_param_build_set_multi_key_bn(bld, params,
  ------------------
  |  Branch (289:16): [True: 0, False: 0]
  ------------------
  290|      0|                ossl_rsa_mp_coeff_names,
  291|      0|                coeffs))
  292|      0|            goto err;
  293|      0|    }
  294|       |
  295|       |#if defined(FIPS_MODULE) && !defined(OPENSSL_NO_ACVP_TESTS)
  296|       |    /* The acvp test results are not meant for export so check for bld == NULL */
  297|       |    if (bld == NULL)
  298|       |        ossl_rsa_acvp_test_get_params(rsa, params);
  299|       |#endif
  300|  23.2k|    ret = 1;
  301|  23.2k|err:
  302|  23.2k|    sk_BIGNUM_const_free(factors);
  303|  23.2k|    sk_BIGNUM_const_free(exps);
  304|  23.2k|    sk_BIGNUM_const_free(coeffs);
  305|  23.2k|    return ret;
  306|  23.2k|}
ossl_rsa_is_foreign:
  452|  23.2k|{
  453|  23.2k|#ifndef FIPS_MODULE
  454|  23.2k|    if (rsa->engine != NULL || RSA_get_method(rsa) != RSA_PKCS1_OpenSSL())
  ------------------
  |  Branch (454:9): [True: 0, False: 23.2k]
  |  Branch (454:32): [True: 0, False: 23.2k]
  ------------------
  455|      0|        return 1;
  456|  23.2k|#endif
  457|  23.2k|    return 0;
  458|  23.2k|}
ossl_rsa_param_decode:
  653|  23.2k|{
  654|  23.2k|    RSA_PSS_PARAMS *pss;
  655|  23.2k|    const ASN1_OBJECT *algoid;
  656|  23.2k|    const void *algp;
  657|  23.2k|    int algptype;
  658|       |
  659|  23.2k|    X509_ALGOR_get0(&algoid, &algptype, &algp, alg);
  660|  23.2k|    if (OBJ_obj2nid(algoid) != EVP_PKEY_RSA_PSS)
  ------------------
  |  |   65|  23.2k|#define EVP_PKEY_RSA_PSS NID_rsassaPss
  |  |  ------------------
  |  |  |  |  583|  23.2k|#define NID_rsassaPss           912
  |  |  ------------------
  ------------------
  |  Branch (660:9): [True: 23.2k, False: 0]
  ------------------
  661|  23.2k|        return 1;
  662|      0|    if (algptype == V_ASN1_UNDEF)
  ------------------
  |  |   62|      0|#define V_ASN1_UNDEF -1
  ------------------
  |  Branch (662:9): [True: 0, False: 0]
  ------------------
  663|      0|        return 1;
  664|      0|    if (algptype != V_ASN1_SEQUENCE) {
  ------------------
  |  |   76|      0|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (664:9): [True: 0, False: 0]
  ------------------
  665|      0|        ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_PSS_PARAMETERS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  666|      0|        return 0;
  667|      0|    }
  668|      0|    if ((pss = ossl_rsa_pss_decode(alg)) == NULL
  ------------------
  |  Branch (668:9): [True: 0, False: 0]
  ------------------
  669|      0|        || !ossl_rsa_set0_pss_params(rsa, pss)) {
  ------------------
  |  Branch (669:12): [True: 0, False: 0]
  ------------------
  670|      0|        RSA_PSS_PARAMS_free(pss);
  671|      0|        return 0;
  672|      0|    }
  673|      0|    if (!ossl_rsa_sync_to_pss_params_30(rsa))
  ------------------
  |  Branch (673:9): [True: 0, False: 0]
  ------------------
  674|      0|        return 0;
  675|      0|    return 1;
  676|      0|}

RSA_bits:
   24|  23.2k|{
   25|  23.2k|    return BN_num_bits(r->n);
   26|  23.2k|}
RSA_size:
   29|  23.2k|{
   30|  23.2k|    return BN_num_bytes(r->n);
  ------------------
  |  |  188|  23.2k|#define BN_num_bytes(a) ((BN_num_bits(a) + 7) / 8)
  ------------------
   31|  23.2k|}

ossl_err_load_RSA_strings:
  160|      2|{
  161|      2|#ifndef OPENSSL_NO_ERR
  162|      2|    if (ERR_reason_error_string(RSA_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (162:9): [True: 2, False: 0]
  ------------------
  163|      2|        ERR_load_strings_const(RSA_str_reasons);
  164|      2|#endif
  165|      2|    return 1;
  166|      2|}

RSA_new:
   36|  23.2k|{
   37|  23.2k|    return rsa_new_intern(NULL, NULL);
   38|  23.2k|}
RSA_get_method:
   41|  23.2k|{
   42|  23.2k|    return rsa->meth;
   43|  23.2k|}
RSA_free:
  142|  69.6k|{
  143|  69.6k|    int i;
  144|       |
  145|  69.6k|    if (r == NULL)
  ------------------
  |  Branch (145:9): [True: 23.2k, False: 46.4k]
  ------------------
  146|  23.2k|        return;
  147|       |
  148|  46.4k|    CRYPTO_DOWN_REF(&r->references, &i);
  149|  46.4k|    REF_PRINT_COUNT("RSA", i, r);
  ------------------
  |  |  301|  46.4k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  46.4k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|  46.4k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|  46.4k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  150|  46.4k|    if (i > 0)
  ------------------
  |  Branch (150:9): [True: 23.2k, False: 23.2k]
  ------------------
  151|  23.2k|        return;
  152|  23.2k|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|  23.2k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 23.2k]
  |  |  ------------------
  ------------------
  153|       |
  154|  23.2k|    if (r->meth != NULL && r->meth->finish != NULL)
  ------------------
  |  Branch (154:9): [True: 23.2k, False: 0]
  |  Branch (154:28): [True: 23.2k, False: 0]
  ------------------
  155|  23.2k|        r->meth->finish(r);
  156|  23.2k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  157|  23.2k|    ENGINE_finish(r->engine);
  158|  23.2k|#endif
  159|       |
  160|  23.2k|#ifndef FIPS_MODULE
  161|  23.2k|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, r, &r->ex_data);
  ------------------
  |  |  259|  23.2k|#define CRYPTO_EX_INDEX_RSA 9
  ------------------
  162|  23.2k|#endif
  163|       |
  164|  23.2k|    CRYPTO_THREAD_lock_free(r->lock);
  165|  23.2k|    CRYPTO_FREE_REF(&r->references);
  166|       |
  167|       |#ifdef OPENSSL_PEDANTIC_ZEROIZATION
  168|       |    BN_clear_free(r->n);
  169|       |    BN_clear_free(r->e);
  170|       |#else
  171|  23.2k|    BN_free(r->n);
  172|  23.2k|    BN_free(r->e);
  173|  23.2k|#endif
  174|  23.2k|    BN_clear_free(r->d);
  175|  23.2k|    BN_clear_free(r->p);
  176|  23.2k|    BN_clear_free(r->q);
  177|  23.2k|    BN_clear_free(r->dmp1);
  178|  23.2k|    BN_clear_free(r->dmq1);
  179|  23.2k|    BN_clear_free(r->iqmp);
  180|       |
  181|       |#if defined(FIPS_MODULE) && !defined(OPENSSL_NO_ACVP_TESTS)
  182|       |    ossl_rsa_acvp_test_free(r->acvp_test);
  183|       |#endif
  184|       |
  185|  23.2k|#ifndef FIPS_MODULE
  186|  23.2k|    RSA_PSS_PARAMS_free(r->pss);
  187|  23.2k|    sk_RSA_PRIME_INFO_pop_free(r->prime_infos, ossl_rsa_multip_info_free);
  188|  23.2k|#endif
  189|  23.2k|    ossl_rsa_free_blinding(r);
  190|  23.2k|    OPENSSL_free(r);
  ------------------
  |  |  131|  23.2k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  191|  23.2k|}
RSA_up_ref:
  194|  23.2k|{
  195|  23.2k|    int i;
  196|       |
  197|  23.2k|    if (CRYPTO_UP_REF(&r->references, &i) <= 0)
  ------------------
  |  Branch (197:9): [True: 0, False: 23.2k]
  ------------------
  198|      0|        return 0;
  199|       |
  200|  23.2k|    REF_PRINT_COUNT("RSA", i, r);
  ------------------
  |  |  301|  23.2k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  23.2k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|  23.2k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|  23.2k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  201|  23.2k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  23.2k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 23.2k]
  |  |  ------------------
  ------------------
  202|  23.2k|    return i > 1 ? 1 : 0;
  ------------------
  |  Branch (202:12): [True: 23.2k, False: 0]
  ------------------
  203|  23.2k|}
ossl_rsa_set0_libctx:
  211|  23.2k|{
  212|  23.2k|    r->libctx = libctx;
  213|  23.2k|}
ossl_ifc_ffc_compute_security_bits:
  327|  23.2k|{
  328|  23.2k|    uint64_t x;
  329|  23.2k|    uint32_t lx;
  330|  23.2k|    uint16_t y, cap;
  331|       |
  332|       |    /*
  333|       |     * Look for common values as listed in standards.
  334|       |     * These values are not exactly equal to the results from the formulae in
  335|       |     * the standards but are defined to be canonical.
  336|       |     */
  337|  23.2k|    switch (n) {
  ------------------
  |  Branch (337:13): [True: 23.2k, False: 0]
  ------------------
  338|  9.41k|    case 2048: /* SP 800-56B rev 2 Appendix D and FIPS 140-2 IG 7.5 */
  ------------------
  |  Branch (338:5): [True: 9.41k, False: 13.7k]
  ------------------
  339|  9.41k|        return 112;
  340|      0|    case 3072: /* SP 800-56B rev 2 Appendix D and FIPS 140-2 IG 7.5 */
  ------------------
  |  Branch (340:5): [True: 0, False: 23.2k]
  ------------------
  341|      0|        return 128;
  342|  13.7k|    case 4096: /* SP 800-56B rev 2 Appendix D */
  ------------------
  |  Branch (342:5): [True: 13.7k, False: 9.41k]
  ------------------
  343|  13.7k|        return 152;
  344|      0|    case 6144: /* SP 800-56B rev 2 Appendix D */
  ------------------
  |  Branch (344:5): [True: 0, False: 23.2k]
  ------------------
  345|      0|        return 176;
  346|      0|    case 7680: /* FIPS 140-2 IG 7.5 */
  ------------------
  |  Branch (346:5): [True: 0, False: 23.2k]
  ------------------
  347|      0|        return 192;
  348|      0|    case 8192: /* SP 800-56B rev 2 Appendix D */
  ------------------
  |  Branch (348:5): [True: 0, False: 23.2k]
  ------------------
  349|      0|        return 200;
  350|      0|    case 15360: /* FIPS 140-2 IG 7.5 */
  ------------------
  |  Branch (350:5): [True: 0, False: 23.2k]
  ------------------
  351|      0|        return 256;
  352|  23.2k|    }
  353|       |
  354|       |    /*
  355|       |     * The first incorrect result (i.e. not accurate or off by one low) occurs
  356|       |     * for n = 699668.  The true value here is 1200.  Instead of using this n
  357|       |     * as the check threshold, the smallest n such that the correct result is
  358|       |     * 1200 is used instead.
  359|       |     */
  360|      0|    if (n >= 687737)
  ------------------
  |  Branch (360:9): [True: 0, False: 0]
  ------------------
  361|      0|        return 1200;
  362|      0|    if (n < 8)
  ------------------
  |  Branch (362:9): [True: 0, False: 0]
  ------------------
  363|      0|        return 0;
  364|       |
  365|       |    /*
  366|       |     * To ensure that the output is non-decreasing with respect to n,
  367|       |     * a cap needs to be applied to the two values where the function over
  368|       |     * estimates the strength (according to the above fast path).
  369|       |     */
  370|      0|    if (n <= 7680)
  ------------------
  |  Branch (370:9): [True: 0, False: 0]
  ------------------
  371|      0|        cap = 192;
  372|      0|    else if (n <= 15360)
  ------------------
  |  Branch (372:14): [True: 0, False: 0]
  ------------------
  373|      0|        cap = 256;
  374|      0|    else
  375|      0|        cap = 1200;
  376|       |
  377|      0|    x = n * (uint64_t)log_2;
  378|      0|    lx = ilog_e(x);
  379|      0|    y = (uint16_t)((mul2(c1_923, icbrt64(mul2(mul2(x, lx), lx))) - c4_690)
  380|      0|        / log_2);
  381|      0|    y = (y + 4) & ~7;
  382|      0|    if (y > cap)
  ------------------
  |  Branch (382:9): [True: 0, False: 0]
  ------------------
  383|      0|        y = cap;
  384|      0|    return y;
  385|      0|}
RSA_security_bits:
  388|  23.2k|{
  389|  23.2k|    int bits = BN_num_bits(rsa->n);
  390|       |
  391|  23.2k|#ifndef FIPS_MODULE
  392|  23.2k|    if (rsa->version == RSA_ASN1_VERSION_MULTI) {
  ------------------
  |  |   60|  23.2k|#define RSA_ASN1_VERSION_MULTI 1
  ------------------
  |  Branch (392:9): [True: 0, False: 23.2k]
  ------------------
  393|       |        /* This ought to mean that we have private key at hand. */
  394|      0|        int ex_primes = sk_RSA_PRIME_INFO_num(rsa->prime_infos);
  395|       |
  396|      0|        if (ex_primes <= 0 || (ex_primes + 2) > ossl_rsa_multip_cap(bits))
  ------------------
  |  Branch (396:13): [True: 0, False: 0]
  |  Branch (396:31): [True: 0, False: 0]
  ------------------
  397|      0|            return 0;
  398|      0|    }
  399|  23.2k|#endif
  400|  23.2k|    return ossl_ifc_ffc_compute_security_bits(bits);
  401|  23.2k|}
RSA_get0_key:
  558|  23.2k|{
  559|  23.2k|    if (n != NULL)
  ------------------
  |  Branch (559:9): [True: 23.2k, False: 0]
  ------------------
  560|  23.2k|        *n = r->n;
  561|  23.2k|    if (e != NULL)
  ------------------
  |  Branch (561:9): [True: 23.2k, False: 0]
  ------------------
  562|  23.2k|        *e = r->e;
  563|  23.2k|    if (d != NULL)
  ------------------
  |  Branch (563:9): [True: 23.2k, False: 0]
  ------------------
  564|  23.2k|        *d = r->d;
  565|  23.2k|}
RSA_get0_n:
  648|  69.6k|{
  649|  69.6k|    return r->n;
  650|  69.6k|}
RSA_get0_d:
  658|  23.2k|{
  659|  23.2k|    return r->d;
  660|  23.2k|}
RSA_get0_p:
  663|  46.4k|{
  664|  46.4k|    return r->p;
  665|  46.4k|}
ossl_rsa_get0_pss_params_30:
  710|  23.2k|{
  711|  23.2k|    return &r->pss_params;
  712|  23.2k|}
RSA_clear_flags:
  715|  23.2k|{
  716|  23.2k|    r->flags &= ~flags;
  717|  23.2k|}
RSA_test_flags:
  720|  69.6k|{
  721|  69.6k|    return r->flags & flags;
  722|  69.6k|}
RSA_set_flags:
  725|  23.2k|{
  726|  23.2k|    r->flags |= flags;
  727|  23.2k|}
ossl_rsa_get0_all_params:
  879|  46.4k|{
  880|  46.4k|#ifndef FIPS_MODULE
  881|  46.4k|    RSA_PRIME_INFO *pinfo;
  882|  46.4k|    int i, pnum;
  883|  46.4k|#endif
  884|       |
  885|  46.4k|    if (r == NULL)
  ------------------
  |  Branch (885:9): [True: 0, False: 46.4k]
  ------------------
  886|      0|        return 0;
  887|       |
  888|       |    /* If |p| is NULL, there are no CRT parameters */
  889|  46.4k|    if (RSA_get0_p(r) == NULL)
  ------------------
  |  Branch (889:9): [True: 46.4k, False: 0]
  ------------------
  890|  46.4k|        return 1;
  891|       |
  892|      0|    sk_BIGNUM_const_push(primes, RSA_get0_p(r));
  893|      0|    sk_BIGNUM_const_push(primes, RSA_get0_q(r));
  894|      0|    sk_BIGNUM_const_push(exps, RSA_get0_dmp1(r));
  895|      0|    sk_BIGNUM_const_push(exps, RSA_get0_dmq1(r));
  896|      0|    sk_BIGNUM_const_push(coeffs, RSA_get0_iqmp(r));
  897|       |
  898|      0|#ifndef FIPS_MODULE
  899|      0|    pnum = RSA_get_multi_prime_extra_count(r);
  900|      0|    for (i = 0; i < pnum; i++) {
  ------------------
  |  Branch (900:17): [True: 0, False: 0]
  ------------------
  901|      0|        pinfo = sk_RSA_PRIME_INFO_value(r->prime_infos, i);
  902|      0|        sk_BIGNUM_const_push(primes, pinfo->r);
  903|      0|        sk_BIGNUM_const_push(exps, pinfo->d);
  904|      0|        sk_BIGNUM_const_push(coeffs, pinfo->t);
  905|      0|    }
  906|      0|#endif
  907|       |
  908|      0|    return 1;
  909|  46.4k|}
ossl_rsa_check_factors:
  913|  23.2k|{
  914|  23.2k|    int valid = 0;
  915|  23.2k|    int n, i, bits;
  916|  23.2k|    STACK_OF(BIGNUM_const) *factors = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  23.2k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  917|  23.2k|    STACK_OF(BIGNUM_const) *exps = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  23.2k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  918|  23.2k|    STACK_OF(BIGNUM_const) *coeffs = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  23.2k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  919|       |
  920|  23.2k|    if (factors == NULL || exps == NULL || coeffs == NULL)
  ------------------
  |  Branch (920:9): [True: 0, False: 23.2k]
  |  Branch (920:28): [True: 0, False: 23.2k]
  |  Branch (920:44): [True: 0, False: 23.2k]
  ------------------
  921|      0|        goto done;
  922|       |
  923|       |    /*
  924|       |     * Simple sanity check for RSA key. All RSA key parameters
  925|       |     * must be less-than/equal-to RSA parameter n.
  926|       |     */
  927|  23.2k|    ossl_rsa_get0_all_params(r, factors, exps, coeffs);
  928|  23.2k|    n = safe_BN_num_bits(RSA_get0_n(r));
  ------------------
  |  |  911|  23.2k|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (911:32): [True: 0, False: 23.2k]
  |  |  ------------------
  ------------------
  929|       |
  930|  23.2k|    if (safe_BN_num_bits(RSA_get0_d(r)) > n)
  ------------------
  |  |  911|  23.2k|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (911:32): [True: 23.2k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (930:9): [True: 0, False: 23.2k]
  ------------------
  931|      0|        goto done;
  932|       |
  933|  23.2k|    for (i = 0; i < sk_BIGNUM_const_num(exps); i++) {
  ------------------
  |  Branch (933:17): [True: 0, False: 23.2k]
  ------------------
  934|      0|        bits = safe_BN_num_bits(sk_BIGNUM_const_value(exps, i));
  ------------------
  |  |  911|      0|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (911:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  935|      0|        if (bits > n)
  ------------------
  |  Branch (935:13): [True: 0, False: 0]
  ------------------
  936|      0|            goto done;
  937|      0|    }
  938|       |
  939|  23.2k|    for (i = 0; i < sk_BIGNUM_const_num(factors); i++) {
  ------------------
  |  Branch (939:17): [True: 0, False: 23.2k]
  ------------------
  940|      0|        bits = safe_BN_num_bits(sk_BIGNUM_const_value(factors, i));
  ------------------
  |  |  911|      0|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (911:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  941|      0|        if (bits > n)
  ------------------
  |  Branch (941:13): [True: 0, False: 0]
  ------------------
  942|      0|            goto done;
  943|      0|    }
  944|       |
  945|  23.2k|    for (i = 0; i < sk_BIGNUM_const_num(coeffs); i++) {
  ------------------
  |  Branch (945:17): [True: 0, False: 23.2k]
  ------------------
  946|      0|        bits = safe_BN_num_bits(sk_BIGNUM_const_value(coeffs, i));
  ------------------
  |  |  911|      0|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (911:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  947|      0|        if (bits > n)
  ------------------
  |  Branch (947:13): [True: 0, False: 0]
  ------------------
  948|      0|            goto done;
  949|      0|    }
  950|       |
  951|  23.2k|    valid = 1;
  952|       |
  953|  23.2k|done:
  954|  23.2k|    sk_BIGNUM_const_free(factors);
  955|  23.2k|    sk_BIGNUM_const_free(exps);
  956|  23.2k|    sk_BIGNUM_const_free(coeffs);
  957|       |
  958|  23.2k|    return valid;
  959|  23.2k|}
rsa_lib.c:rsa_new_intern:
   77|  23.2k|{
   78|  23.2k|    RSA *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  23.2k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   79|       |
   80|  23.2k|    if (ret == NULL)
  ------------------
  |  Branch (80:9): [True: 0, False: 23.2k]
  ------------------
   81|      0|        return NULL;
   82|       |
   83|  23.2k|    ret->lock = CRYPTO_THREAD_lock_new();
   84|  23.2k|    if (ret->lock == NULL) {
  ------------------
  |  Branch (84:9): [True: 0, False: 23.2k]
  ------------------
   85|      0|        ERR_raise(ERR_LIB_RSA, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   86|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   87|      0|        return NULL;
   88|      0|    }
   89|       |
   90|  23.2k|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (90:9): [True: 0, False: 23.2k]
  ------------------
   91|      0|        CRYPTO_THREAD_lock_free(ret->lock);
   92|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   93|      0|        return NULL;
   94|      0|    }
   95|       |
   96|  23.2k|    ret->blindings_sa = ossl_rsa_alloc_blinding();
   97|  23.2k|    if (ret->blindings_sa == NULL)
  ------------------
  |  Branch (97:9): [True: 0, False: 23.2k]
  ------------------
   98|      0|        goto err;
   99|       |
  100|  23.2k|    ret->libctx = libctx;
  101|  23.2k|    ret->meth = RSA_get_default_method();
  102|  23.2k|#if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE)
  103|  23.2k|    ret->flags = ret->meth->flags & ~RSA_FLAG_NON_FIPS_ALLOW;
  ------------------
  |  |  476|  23.2k|#define RSA_FLAG_NON_FIPS_ALLOW 0x0400
  ------------------
  104|  23.2k|    if (engine) {
  ------------------
  |  Branch (104:9): [True: 0, False: 23.2k]
  ------------------
  105|      0|        if (!ENGINE_init(engine)) {
  ------------------
  |  Branch (105:13): [True: 0, False: 0]
  ------------------
  106|      0|            ERR_raise(ERR_LIB_RSA, ERR_R_ENGINE_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  107|      0|            goto err;
  108|      0|        }
  109|      0|        ret->engine = engine;
  110|  23.2k|    } else {
  111|  23.2k|        ret->engine = ENGINE_get_default_RSA();
  112|  23.2k|    }
  113|  23.2k|    if (ret->engine) {
  ------------------
  |  Branch (113:9): [True: 0, False: 23.2k]
  ------------------
  114|      0|        ret->meth = ENGINE_get_RSA(ret->engine);
  115|      0|        if (ret->meth == NULL) {
  ------------------
  |  Branch (115:13): [True: 0, False: 0]
  ------------------
  116|      0|            ERR_raise(ERR_LIB_RSA, ERR_R_ENGINE_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  117|      0|            goto err;
  118|      0|        }
  119|      0|    }
  120|  23.2k|#endif
  121|       |
  122|  23.2k|    ret->flags = ret->meth->flags & ~RSA_FLAG_NON_FIPS_ALLOW;
  ------------------
  |  |  476|  23.2k|#define RSA_FLAG_NON_FIPS_ALLOW 0x0400
  ------------------
  123|  23.2k|#ifndef FIPS_MODULE
  124|  23.2k|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_RSA, ret, &ret->ex_data)) {
  ------------------
  |  |  259|  23.2k|#define CRYPTO_EX_INDEX_RSA 9
  ------------------
  |  Branch (124:9): [True: 0, False: 23.2k]
  ------------------
  125|      0|        goto err;
  126|      0|    }
  127|  23.2k|#endif
  128|       |
  129|  23.2k|    if ((ret->meth->init != NULL) && !ret->meth->init(ret)) {
  ------------------
  |  Branch (129:9): [True: 23.2k, False: 0]
  |  Branch (129:38): [True: 0, False: 23.2k]
  ------------------
  130|      0|        ERR_raise(ERR_LIB_RSA, ERR_R_INIT_FAIL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  131|      0|        goto err;
  132|      0|    }
  133|       |
  134|  23.2k|    return ret;
  135|       |
  136|      0|err:
  137|      0|    RSA_free(ret);
  138|       |    return NULL;
  139|  23.2k|}

RSA_get_default_method:
   92|  23.2k|{
   93|  23.2k|    return default_RSA_meth;
   94|  23.2k|}
RSA_PKCS1_OpenSSL:
   97|  23.2k|{
   98|  23.2k|    return &rsa_pkcs1_ossl_meth;
   99|  23.2k|}
ossl_rsa_free_blinding:
  243|  23.2k|{
  244|  23.2k|    SPARSE_ARRAY_OF(BN_BLINDING) *blindings = rsa->blindings_sa;
  ------------------
  |  |   21|  23.2k|#define SPARSE_ARRAY_OF(type) struct sparse_array_st_##type
  ------------------
  245|       |
  246|       |    ossl_sa_BN_BLINDING_doall_arg(blindings, free_bn_blinding, NULL);
  247|  23.2k|    ossl_sa_BN_BLINDING_free(blindings);
  248|  23.2k|}
ossl_rsa_alloc_blinding:
  251|  23.2k|{
  252|  23.2k|    return ossl_sa_BN_BLINDING_new();
  253|  23.2k|}
rsa_ossl.c:rsa_ossl_init:
 1160|  23.2k|{
 1161|  23.2k|    rsa->flags |= RSA_FLAG_CACHE_PUBLIC | RSA_FLAG_CACHE_PRIVATE;
  ------------------
  |  |   65|  23.2k|#define RSA_FLAG_CACHE_PUBLIC 0x0002
  ------------------
                  rsa->flags |= RSA_FLAG_CACHE_PUBLIC | RSA_FLAG_CACHE_PRIVATE;
  ------------------
  |  |   66|  23.2k|#define RSA_FLAG_CACHE_PRIVATE 0x0004
  ------------------
 1162|  23.2k|    return 1;
 1163|  23.2k|}
rsa_ossl.c:rsa_ossl_finish:
 1166|  23.2k|{
 1167|  23.2k|#ifndef FIPS_MODULE
 1168|  23.2k|    int i;
 1169|  23.2k|    RSA_PRIME_INFO *pinfo;
 1170|       |
 1171|  23.2k|    for (i = 0; i < sk_RSA_PRIME_INFO_num(rsa->prime_infos); i++) {
  ------------------
  |  Branch (1171:17): [True: 0, False: 23.2k]
  ------------------
 1172|      0|        pinfo = sk_RSA_PRIME_INFO_value(rsa->prime_infos, i);
 1173|      0|        BN_MONT_CTX_free(pinfo->m);
 1174|      0|    }
 1175|  23.2k|#endif
 1176|       |
 1177|  23.2k|    BN_MONT_CTX_free(rsa->_method_mod_n);
 1178|  23.2k|    BN_MONT_CTX_free(rsa->_method_mod_p);
 1179|  23.2k|    BN_MONT_CTX_free(rsa->_method_mod_q);
 1180|  23.2k|    return 1;
 1181|  23.2k|}

ossl_self_test_set_callback_new:
   35|      2|{
   36|      2|    SELF_TEST_CB *stcb;
   37|       |
   38|      2|    stcb = OPENSSL_zalloc(sizeof(*stcb));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   39|      2|    return stcb;
   40|      2|}

ossl_sha3_reset:
   19|  4.59k|{
   20|       |#if defined(__s390x__) && defined(OPENSSL_CPUID_OBJ)
   21|       |    if (!(OPENSSL_s390xcap_P.stfle[1] & S390X_CAPBIT(S390X_MSA12)))
   22|       |#endif
   23|  4.59k|        memset(ctx->A, 0, sizeof(ctx->A));
   24|  4.59k|    ctx->bufsz = 0;
   25|  4.59k|    ctx->xof_state = XOF_STATE_INIT;
  ------------------
  |  |   35|  4.59k|#define XOF_STATE_INIT 0
  ------------------
   26|  4.59k|}
ossl_sha3_init:
   29|    876|{
   30|    876|    size_t bsz = SHA3_BLOCKSIZE(bitlen);
  ------------------
  |  |   21|    876|#define SHA3_BLOCKSIZE(bitlen) (KECCAK1600_WIDTH - bitlen * 2) / 8
  |  |  ------------------
  |  |  |  |   18|    876|#define KECCAK1600_WIDTH 1600
  |  |  ------------------
  ------------------
   31|       |
   32|    876|    if (bsz <= sizeof(ctx->buf)) {
  ------------------
  |  Branch (32:9): [True: 876, False: 0]
  ------------------
   33|    876|        ossl_sha3_reset(ctx);
   34|    876|        ctx->block_size = bsz;
   35|    876|        ctx->md_size = bitlen / 8;
   36|    876|        ctx->pad = pad;
   37|    876|        return 1;
   38|    876|    }
   39|       |
   40|      0|    return 0;
   41|    876|}
ossl_keccak_init:
   44|    438|{
   45|    438|    int ret = ossl_sha3_init(ctx, pad, bitlen);
   46|       |
   47|    438|    if (ret)
  ------------------
  |  Branch (47:9): [True: 438, False: 0]
  ------------------
   48|    438|        ctx->md_size = mdlen / 8;
   49|    438|    return ret;
   50|    438|}
ossl_sha3_final:
  104|  1.75k|{
  105|  1.75k|    size_t bsz = ctx->block_size;
  106|  1.75k|    size_t num = ctx->bufsz;
  107|       |
  108|  1.75k|    if (outlen == 0)
  ------------------
  |  Branch (108:9): [True: 0, False: 1.75k]
  ------------------
  109|      0|        return 1;
  110|  1.75k|    if (ctx->xof_state == XOF_STATE_SQUEEZE
  ------------------
  |  |   38|  3.50k|#define XOF_STATE_SQUEEZE 3
  ------------------
  |  Branch (110:9): [True: 0, False: 1.75k]
  ------------------
  111|  1.75k|        || ctx->xof_state == XOF_STATE_FINAL)
  ------------------
  |  |   37|  1.75k|#define XOF_STATE_FINAL 2
  ------------------
  |  Branch (111:12): [True: 0, False: 1.75k]
  ------------------
  112|      0|        return 0;
  113|       |
  114|       |    /*
  115|       |     * Pad the data with 10*1. Note that |num| can be |bsz - 1|
  116|       |     * in which case both byte operations below are performed on
  117|       |     * same byte...
  118|       |     */
  119|  1.75k|    memset(ctx->buf + num, 0, bsz - num);
  120|  1.75k|    ctx->buf[num] = ctx->pad;
  121|  1.75k|    ctx->buf[bsz - 1] |= 0x80;
  122|       |
  123|  1.75k|    (void)SHA3_absorb(ctx->A, ctx->buf, bsz, bsz);
  124|       |
  125|  1.75k|    ctx->xof_state = XOF_STATE_FINAL;
  ------------------
  |  |   37|  1.75k|#define XOF_STATE_FINAL 2
  ------------------
  126|  1.75k|    SHA3_squeeze(ctx->A, out, outlen, bsz, 0);
  127|  1.75k|    return 1;
  128|  1.75k|}
ossl_sha3_squeeze:
  141|  5.93k|{
  142|  5.93k|    size_t bsz = ctx->block_size;
  143|  5.93k|    size_t num = ctx->bufsz;
  144|  5.93k|    size_t len;
  145|  5.93k|    int next = 1;
  146|       |
  147|  5.93k|    if (outlen == 0)
  ------------------
  |  Branch (147:9): [True: 0, False: 5.93k]
  ------------------
  148|      0|        return 1;
  149|       |
  150|  5.93k|    if (ctx->xof_state == XOF_STATE_FINAL)
  ------------------
  |  |   37|  5.93k|#define XOF_STATE_FINAL 2
  ------------------
  |  Branch (150:9): [True: 0, False: 5.93k]
  ------------------
  151|      0|        return 0;
  152|       |
  153|       |    /*
  154|       |     * On the first squeeze call, finish the absorb process,
  155|       |     * by adding the trailing padding and then doing
  156|       |     * a final absorb.
  157|       |     */
  158|  5.93k|    if (ctx->xof_state != XOF_STATE_SQUEEZE) {
  ------------------
  |  |   38|  5.93k|#define XOF_STATE_SQUEEZE 3
  ------------------
  |  Branch (158:9): [True: 1.97k, False: 3.96k]
  ------------------
  159|       |        /*
  160|       |         * Pad the data with 10*1. Note that |num| can be |bsz - 1|
  161|       |         * in which case both byte operations below are performed on
  162|       |         * same byte...
  163|       |         */
  164|  1.97k|        memset(ctx->buf + num, 0, bsz - num);
  165|  1.97k|        ctx->buf[num] = ctx->pad;
  166|  1.97k|        ctx->buf[bsz - 1] |= 0x80;
  167|  1.97k|        (void)SHA3_absorb(ctx->A, ctx->buf, bsz, bsz);
  168|  1.97k|        ctx->xof_state = XOF_STATE_SQUEEZE;
  ------------------
  |  |   38|  1.97k|#define XOF_STATE_SQUEEZE 3
  ------------------
  169|  1.97k|        num = ctx->bufsz = 0;
  170|  1.97k|        next = 0;
  171|  1.97k|    }
  172|       |
  173|       |    /*
  174|       |     * Step 1. Consume any bytes left over from a previous squeeze
  175|       |     * (See Step 4 below).
  176|       |     */
  177|  5.93k|    if (num != 0) {
  ------------------
  |  Branch (177:9): [True: 0, False: 5.93k]
  ------------------
  178|      0|        if (outlen > ctx->bufsz)
  ------------------
  |  Branch (178:13): [True: 0, False: 0]
  ------------------
  179|      0|            len = ctx->bufsz;
  180|      0|        else
  181|      0|            len = outlen;
  182|      0|        memcpy(out, ctx->buf + bsz - ctx->bufsz, len);
  183|      0|        out += len;
  184|      0|        outlen -= len;
  185|      0|        ctx->bufsz -= len;
  186|      0|    }
  187|  5.93k|    if (outlen == 0)
  ------------------
  |  Branch (187:9): [True: 0, False: 5.93k]
  ------------------
  188|      0|        return 1;
  189|       |
  190|       |    /* Step 2. Copy full sized squeezed blocks to the output buffer directly */
  191|  5.93k|    if (outlen >= bsz) {
  ------------------
  |  Branch (191:9): [True: 5.93k, False: 0]
  ------------------
  192|  5.93k|        len = bsz * (outlen / bsz);
  193|  5.93k|        SHA3_squeeze(ctx->A, out, len, bsz, next);
  194|  5.93k|        next = 1;
  195|  5.93k|        out += len;
  196|  5.93k|        outlen -= len;
  197|  5.93k|    }
  198|  5.93k|    if (outlen > 0) {
  ------------------
  |  Branch (198:9): [True: 0, False: 5.93k]
  ------------------
  199|       |        /* Step 3. Squeeze one more block into a buffer */
  200|      0|        SHA3_squeeze(ctx->A, ctx->buf, bsz, bsz, next);
  201|      0|        memcpy(out, ctx->buf, outlen);
  202|       |        /* Step 4. Remember the leftover part of the squeezed block */
  203|      0|        ctx->bufsz = bsz - outlen;
  204|      0|    }
  205|       |
  206|  5.93k|    return 1;
  207|  5.93k|}

ossl_err_load_SM2_strings:
   41|      2|{
   42|      2|#ifndef OPENSSL_NO_ERR
   43|      2|    if (ERR_reason_error_string(SM2_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (43:9): [True: 2, False: 0]
  ------------------
   44|      2|        ERR_load_strings_const(SM2_str_reasons);
   45|      2|#endif
   46|      2|    return 1;
   47|      2|}

EVP_sm3:
   28|      2|{
   29|      2|    return &sm3_md;
   30|      2|}

ossl_sa_new:
   59|  23.2k|{
   60|  23.2k|    OPENSSL_SA *res = OPENSSL_zalloc(sizeof(*res));
  ------------------
  |  |  108|  23.2k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   61|       |
   62|  23.2k|    return res;
   63|  23.2k|}
ossl_sa_free:
  111|  23.2k|{
  112|  23.2k|    if (sa != NULL) {
  ------------------
  |  Branch (112:9): [True: 23.2k, False: 0]
  ------------------
  113|  23.2k|        sa_doall(sa, &sa_free_node, NULL, NULL);
  114|  23.2k|        OPENSSL_free(sa);
  ------------------
  |  |  131|  23.2k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  115|  23.2k|    }
  116|  23.2k|}
ossl_sa_doall_arg:
  146|  23.2k|{
  147|  23.2k|    if (sa != NULL)
  ------------------
  |  Branch (147:9): [True: 23.2k, False: 0]
  ------------------
  148|  23.2k|        sa_doall(sa, NULL, leaf, arg);
  149|  23.2k|}
ossl_sa_num:
  152|      6|{
  153|      6|    return sa == NULL ? 0 : sa->nelem;
  ------------------
  |  Branch (153:12): [True: 0, False: 6]
  ------------------
  154|      6|}
ossl_sa_get:
  157|  1.54M|{
  158|  1.54M|    int level;
  159|  1.54M|    void **p, *r = NULL;
  160|       |
  161|  1.54M|    if (sa == NULL || sa->nelem == 0)
  ------------------
  |  Branch (161:9): [True: 0, False: 1.54M]
  |  Branch (161:23): [True: 4, False: 1.54M]
  ------------------
  162|      4|        return NULL;
  163|       |
  164|  1.54M|    if (n <= sa->top) {
  ------------------
  |  Branch (164:9): [True: 1.54M, False: 286]
  ------------------
  165|  1.54M|        p = sa->nodes;
  166|  1.73M|        for (level = sa->levels - 1; p != NULL && level > 0; level--)
  ------------------
  |  Branch (166:38): [True: 1.73M, False: 2.40k]
  |  Branch (166:51): [True: 188k, False: 1.54M]
  ------------------
  167|   188k|            p = (void **)p[(n >> (OPENSSL_SA_BLOCK_BITS * level))
  ------------------
  |  |   34|   188k|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
  168|   188k|                & SA_BLOCK_MASK];
  ------------------
  |  |   46|   188k|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|   188k|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|   188k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  169|  1.54M|        r = p == NULL ? NULL : p[n & SA_BLOCK_MASK];
  ------------------
  |  |   46|  1.54M|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|  1.54M|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|  1.54M|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (169:13): [True: 2.40k, False: 1.54M]
  ------------------
  170|  1.54M|    }
  171|  1.54M|    return r;
  172|  1.54M|}
ossl_sa_set:
  180|    308|{
  181|    308|    int i, level = 1;
  182|    308|    ossl_uintmax_t n = posn;
  183|    308|    void **p;
  184|       |
  185|    308|    if (sa == NULL)
  ------------------
  |  Branch (185:9): [True: 0, False: 308]
  ------------------
  186|      0|        return 0;
  187|       |
  188|  1.15k|    for (level = 1; level < SA_BLOCK_MAX_LEVELS; level++)
  ------------------
  |  |   47|  1.15k|#define SA_BLOCK_MAX_LEVELS (((int)sizeof(ossl_uintmax_t) * 8 \
  |  |   48|  1.15k|                                 + OPENSSL_SA_BLOCK_BITS - 1) \
  |  |  ------------------
  |  |  |  |   34|  1.15k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  ------------------
  |  |   49|  1.15k|    / OPENSSL_SA_BLOCK_BITS)
  |  |  ------------------
  |  |  |  |   34|  1.15k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  ------------------
  ------------------
  |  Branch (188:21): [True: 1.15k, False: 0]
  ------------------
  189|  1.15k|        if ((n >>= OPENSSL_SA_BLOCK_BITS) == 0)
  ------------------
  |  |   34|  1.15k|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
  |  Branch (189:13): [True: 308, False: 843]
  ------------------
  190|    308|            break;
  191|       |
  192|    340|    for (; sa->levels < level; sa->levels++) {
  ------------------
  |  Branch (192:12): [True: 32, False: 308]
  ------------------
  193|     32|        p = alloc_node();
  194|     32|        if (p == NULL)
  ------------------
  |  Branch (194:13): [True: 0, False: 32]
  ------------------
  195|      0|            return 0;
  196|     32|        p[0] = sa->nodes;
  197|     32|        sa->nodes = p;
  198|     32|    }
  199|    308|    if (sa->top < posn)
  ------------------
  |  Branch (199:9): [True: 147, False: 161]
  ------------------
  200|    147|        sa->top = posn;
  201|       |
  202|    308|    p = sa->nodes;
  203|  1.16k|    for (level = sa->levels - 1; level > 0; level--) {
  ------------------
  |  Branch (203:34): [True: 856, False: 308]
  ------------------
  204|    856|        i = (posn >> (OPENSSL_SA_BLOCK_BITS * level)) & SA_BLOCK_MASK;
  ------------------
  |  |   34|    856|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
                      i = (posn >> (OPENSSL_SA_BLOCK_BITS * level)) & SA_BLOCK_MASK;
  ------------------
  |  |   46|    856|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|    856|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|    856|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|    856|        if (p[i] == NULL && (p[i] = alloc_node()) == NULL)
  ------------------
  |  Branch (205:13): [True: 515, False: 341]
  |  Branch (205:29): [True: 0, False: 515]
  ------------------
  206|      0|            return 0;
  207|    856|        p = p[i];
  208|    856|    }
  209|    308|    p += posn & SA_BLOCK_MASK;
  ------------------
  |  |   46|    308|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|    308|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|    308|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|    308|    if (val == NULL && *p != NULL)
  ------------------
  |  Branch (210:9): [True: 0, False: 308]
  |  Branch (210:24): [True: 0, False: 0]
  ------------------
  211|      0|        sa->nelem--;
  212|    308|    else if (val != NULL && *p == NULL)
  ------------------
  |  Branch (212:14): [True: 308, False: 0]
  |  Branch (212:29): [True: 302, False: 6]
  ------------------
  213|    302|        sa->nelem++;
  214|    308|    *p = val;
  215|    308|    return 1;
  216|    308|}
sparse_array.c:sa_doall:
   67|  46.4k|{
   68|  46.4k|    int i[SA_BLOCK_MAX_LEVELS];
   69|  46.4k|    void *nodes[SA_BLOCK_MAX_LEVELS];
   70|  46.4k|    ossl_uintmax_t idx = 0;
   71|  46.4k|    int l = 0;
   72|       |
   73|  46.4k|    i[0] = 0;
   74|  46.4k|    nodes[0] = sa->nodes;
   75|   852k|    while (l >= 0) {
  ------------------
  |  Branch (75:12): [True: 806k, False: 46.4k]
  ------------------
   76|   806k|        const int n = i[l];
   77|   806k|        void **const p = nodes[l];
   78|       |
   79|   806k|        if (n >= SA_BLOCK_MAX) {
  ------------------
  |  |   45|   806k|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  ------------------
  |  |  |  |   34|   806k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  ------------------
  ------------------
  |  Branch (79:13): [True: 47.4k, False: 759k]
  ------------------
   80|  47.4k|            if (p != NULL && node != NULL)
  ------------------
  |  Branch (80:17): [True: 1.01k, False: 46.4k]
  |  Branch (80:30): [True: 0, False: 1.01k]
  ------------------
   81|      0|                (*node)(p);
   82|  47.4k|            l--;
   83|  47.4k|            idx >>= OPENSSL_SA_BLOCK_BITS;
  ------------------
  |  |   34|  47.4k|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
   84|   759k|        } else {
   85|   759k|            i[l] = n + 1;
   86|   759k|            if (p != NULL && p[n] != NULL) {
  ------------------
  |  Branch (86:17): [True: 16.1k, False: 742k]
  |  Branch (86:30): [True: 1.66k, False: 14.5k]
  ------------------
   87|  1.66k|                idx = (idx & ~SA_BLOCK_MASK) | n;
  ------------------
  |  |   46|  1.66k|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|  1.66k|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|  1.66k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   88|  1.66k|                if (l < sa->levels - 1) {
  ------------------
  |  Branch (88:21): [True: 1.00k, False: 656]
  ------------------
   89|  1.00k|                    i[++l] = 0;
   90|  1.00k|                    nodes[l] = p[n];
   91|  1.00k|                    idx <<= OPENSSL_SA_BLOCK_BITS;
  ------------------
  |  |   34|  1.00k|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
   92|  1.00k|                } else if (leaf != NULL) {
  ------------------
  |  Branch (92:28): [True: 656, False: 0]
  ------------------
   93|    656|                    (*leaf)(idx, p[n], arg);
   94|    656|                }
   95|  1.66k|            }
   96|   759k|        }
   97|   806k|    }
   98|  46.4k|}
sparse_array.c:alloc_node:
  175|    547|{
  176|    547|    return OPENSSL_calloc(SA_BLOCK_MAX, sizeof(void *));
  ------------------
  |  |  112|    547|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  177|    547|}

ossl_err_load_SSL_strings:
  629|      1|{
  630|      1|#ifndef OPENSSL_NO_ERR
  631|      1|    if (ERR_reason_error_string(SSL_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (631:9): [True: 1, False: 0]
  ------------------
  632|      1|        ERR_load_strings_const(SSL_str_reasons);
  633|      1|#endif
  634|      1|    return 1;
  635|      1|}

OPENSSL_sk_set_cmp_func:
   39|    224|{
   40|    224|    OPENSSL_sk_compfunc old = sk->comp;
   41|       |
   42|    224|    if (sk->comp != c)
  ------------------
  |  Branch (42:9): [True: 224, False: 0]
  ------------------
   43|    224|        sk->sorted = 0;
   44|    224|    sk->comp = c;
   45|       |
   46|    224|    return old;
   47|    224|}
OPENSSL_sk_dup:
   50|  38.1k|{
   51|  38.1k|    OPENSSL_STACK *ret;
   52|       |
   53|  38.1k|    if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  106|  38.1k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (53:9): [True: 0, False: 38.1k]
  ------------------
   54|      0|        goto err;
   55|       |
   56|  38.1k|    if (sk == NULL) {
  ------------------
  |  Branch (56:9): [True: 0, False: 38.1k]
  ------------------
   57|      0|        ret->num = 0;
   58|      0|        ret->sorted = 0;
   59|      0|        ret->comp = NULL;
   60|  38.1k|    } else {
   61|       |        /* direct structure assignment */
   62|  38.1k|        *ret = *sk;
   63|  38.1k|    }
   64|       |
   65|  38.1k|    if (sk == NULL || sk->num == 0) {
  ------------------
  |  Branch (65:9): [True: 0, False: 38.1k]
  |  Branch (65:23): [True: 0, False: 38.1k]
  ------------------
   66|       |        /* postpone |ret->data| allocation */
   67|      0|        ret->data = NULL;
   68|      0|        ret->num_alloc = 0;
   69|      0|        return ret;
   70|      0|    }
   71|       |
   72|       |    /* duplicate |sk->data| content */
   73|  38.1k|    ret->data = OPENSSL_malloc_array(sk->num_alloc, sizeof(*ret->data));
  ------------------
  |  |  110|  38.1k|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   74|  38.1k|    if (ret->data == NULL)
  ------------------
  |  Branch (74:9): [True: 0, False: 38.1k]
  ------------------
   75|      0|        goto err;
   76|  38.1k|    memcpy(ret->data, sk->data, sizeof(void *) * sk->num);
   77|  38.1k|    return ret;
   78|       |
   79|      0|err:
   80|      0|    OPENSSL_sk_free(ret);
   81|       |    return NULL;
   82|  38.1k|}
OPENSSL_sk_deep_copy:
   87|  63.9k|{
   88|  63.9k|    OPENSSL_STACK *ret;
   89|  63.9k|    int i;
   90|       |
   91|  63.9k|    if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  106|  63.9k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (91:9): [True: 0, False: 63.9k]
  ------------------
   92|      0|        goto err;
   93|       |
   94|  63.9k|    if (sk == NULL) {
  ------------------
  |  Branch (94:9): [True: 1, False: 63.9k]
  ------------------
   95|      1|        ret->num = 0;
   96|      1|        ret->sorted = 0;
   97|      1|        ret->comp = NULL;
   98|  63.9k|    } else {
   99|       |        /* direct structure assignment */
  100|  63.9k|        *ret = *sk;
  101|  63.9k|    }
  102|       |
  103|  63.9k|    if (sk == NULL || sk->num == 0) {
  ------------------
  |  Branch (103:9): [True: 1, False: 63.9k]
  |  Branch (103:23): [True: 0, False: 63.9k]
  ------------------
  104|       |        /* postpone |ret| data allocation */
  105|      1|        ret->data = NULL;
  106|      1|        ret->num_alloc = 0;
  107|      1|        return ret;
  108|      1|    }
  109|       |
  110|  63.9k|    ret->num_alloc = sk->num > min_nodes ? sk->num : min_nodes;
  ------------------
  |  Branch (110:22): [True: 31.9k, False: 31.9k]
  ------------------
  111|  63.9k|    ret->data = OPENSSL_calloc(ret->num_alloc, sizeof(*ret->data));
  ------------------
  |  |  112|  63.9k|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  112|  63.9k|    if (ret->data == NULL)
  ------------------
  |  Branch (112:9): [True: 0, False: 63.9k]
  ------------------
  113|      0|        goto err;
  114|       |
  115|   287k|    for (i = 0; i < ret->num; ++i) {
  ------------------
  |  Branch (115:17): [True: 223k, False: 63.9k]
  ------------------
  116|   223k|        if (sk->data[i] == NULL)
  ------------------
  |  Branch (116:13): [True: 0, False: 223k]
  ------------------
  117|      0|            continue;
  118|   223k|        if ((ret->data[i] = copy_func(sk->data[i])) == NULL) {
  ------------------
  |  Branch (118:13): [True: 0, False: 223k]
  ------------------
  119|      0|            while (--i >= 0)
  ------------------
  |  Branch (119:20): [True: 0, False: 0]
  ------------------
  120|      0|                if (ret->data[i] != NULL)
  ------------------
  |  Branch (120:21): [True: 0, False: 0]
  ------------------
  121|      0|                    free_func((void *)ret->data[i]);
  122|      0|            goto err;
  123|      0|        }
  124|   223k|    }
  125|  63.9k|    return ret;
  126|       |
  127|      0|err:
  128|      0|    OPENSSL_sk_free(ret);
  129|       |    return NULL;
  130|  63.9k|}
OPENSSL_sk_new_null:
  133|   887k|{
  134|       |    return OPENSSL_sk_new_reserve(NULL, 0);
  135|   887k|}
OPENSSL_sk_new:
  138|    584|{
  139|    584|    return OPENSSL_sk_new_reserve(c, 0);
  140|    584|}
OPENSSL_sk_new_reserve:
  229|   888k|{
  230|   888k|    OPENSSL_STACK *st = OPENSSL_zalloc(sizeof(OPENSSL_STACK));
  ------------------
  |  |  108|   888k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  231|       |
  232|   888k|    if (st == NULL)
  ------------------
  |  Branch (232:9): [True: 0, False: 888k]
  ------------------
  233|      0|        return NULL;
  234|       |
  235|   888k|    st->comp = c;
  236|       |
  237|   888k|    if (n <= 0)
  ------------------
  |  Branch (237:9): [True: 888k, False: 6]
  ------------------
  238|   888k|        return st;
  239|       |
  240|      6|    if (!sk_reserve(st, n, 1)) {
  ------------------
  |  Branch (240:9): [True: 0, False: 6]
  ------------------
  241|      0|        OPENSSL_sk_free(st);
  242|      0|        return NULL;
  243|      0|    }
  244|       |
  245|      6|    return st;
  246|      6|}
OPENSSL_sk_set_thunks:
  261|   281k|{
  262|   281k|    if (st != NULL)
  ------------------
  |  Branch (262:9): [True: 193k, False: 88.6k]
  ------------------
  263|   193k|        st->free_thunk = f_thunk;
  264|       |
  265|   281k|    return st;
  266|   281k|}
OPENSSL_sk_insert:
  269|  1.34M|{
  270|  1.34M|    if (st == NULL) {
  ------------------
  |  Branch (270:9): [True: 0, False: 1.34M]
  ------------------
  271|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  272|      0|        return 0;
  273|      0|    }
  274|  1.34M|    if (st->num == max_nodes) {
  ------------------
  |  Branch (274:9): [True: 0, False: 1.34M]
  ------------------
  275|      0|        ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_MANY_RECORDS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  276|      0|        return 0;
  277|      0|    }
  278|       |
  279|  1.34M|    if (!sk_reserve(st, 1, 0))
  ------------------
  |  Branch (279:9): [True: 0, False: 1.34M]
  ------------------
  280|      0|        return 0;
  281|       |
  282|  1.34M|    if ((loc >= st->num) || (loc < 0)) {
  ------------------
  |  Branch (282:9): [True: 1.34M, False: 0]
  |  Branch (282:29): [True: 0, False: 0]
  ------------------
  283|  1.34M|        st->data[st->num] = data;
  284|  1.34M|    } else {
  285|      0|        memmove(&st->data[loc + 1], &st->data[loc],
  286|      0|            sizeof(st->data[0]) * (st->num - loc));
  287|      0|        st->data[loc] = data;
  288|      0|    }
  289|  1.34M|    st->num++;
  290|  1.34M|    st->sorted = 0;
  291|  1.34M|    return st->num;
  292|  1.34M|}
OPENSSL_sk_find:
  393|  31.9k|{
  394|  31.9k|    return internal_find(st, data, OSSL_BSEARCH_FIRST_VALUE_ON_MATCH, NULL);
  ------------------
  |  |  150|  31.9k|#define OSSL_BSEARCH_FIRST_VALUE_ON_MATCH 0x02
  ------------------
  395|  31.9k|}
OPENSSL_sk_push:
  408|  1.34M|{
  409|  1.34M|    if (st == NULL)
  ------------------
  |  Branch (409:9): [True: 0, False: 1.34M]
  ------------------
  410|      0|        return 0;
  411|  1.34M|    return OPENSSL_sk_insert(st, data, st->num);
  412|  1.34M|}
OPENSSL_sk_pop:
  427|    438|{
  428|    438|    if (st == NULL || st->num == 0)
  ------------------
  |  Branch (428:9): [True: 0, False: 438]
  |  Branch (428:23): [True: 0, False: 438]
  ------------------
  429|      0|        return NULL;
  430|    438|    return internal_delete(st, st->num - 1);
  431|    438|}
OPENSSL_sk_pop_free:
  442|   777k|{
  443|   777k|    int i;
  444|       |
  445|   777k|    if (st == NULL)
  ------------------
  |  Branch (445:9): [True: 227k, False: 550k]
  ------------------
  446|   227k|        return;
  447|       |
  448|  1.75M|    for (i = 0; i < st->num; i++) {
  ------------------
  |  Branch (448:17): [True: 1.20M, False: 550k]
  ------------------
  449|  1.20M|        if (st->data[i] != NULL) {
  ------------------
  |  Branch (449:13): [True: 1.20M, False: 0]
  ------------------
  450|  1.20M|            if (st->free_thunk != NULL)
  ------------------
  |  Branch (450:17): [True: 682k, False: 521k]
  ------------------
  451|   682k|                st->free_thunk(func, (void *)st->data[i]);
  452|   521k|            else
  453|   521k|                func((void *)st->data[i]);
  454|  1.20M|        }
  455|  1.20M|    }
  456|   550k|    OPENSSL_sk_free(st);
  457|   550k|}
OPENSSL_sk_free:
  460|  1.47M|{
  461|  1.47M|    if (st == NULL)
  ------------------
  |  Branch (461:9): [True: 485k, False: 990k]
  ------------------
  462|   485k|        return;
  463|   990k|    OPENSSL_free(st->data);
  ------------------
  |  |  131|   990k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  464|   990k|    OPENSSL_free(st);
  ------------------
  |  |  131|   990k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  465|   990k|}
OPENSSL_sk_num:
  468|  4.70M|{
  469|  4.70M|    return st == NULL ? -1 : st->num;
  ------------------
  |  Branch (469:12): [True: 862k, False: 3.83M]
  ------------------
  470|  4.70M|}
OPENSSL_sk_value:
  473|  2.46M|{
  474|  2.46M|    if (st == NULL || i < 0 || i >= st->num)
  ------------------
  |  Branch (474:9): [True: 0, False: 2.46M]
  |  Branch (474:23): [True: 0, False: 2.46M]
  |  Branch (474:32): [True: 0, False: 2.46M]
  ------------------
  475|      0|        return NULL;
  476|  2.46M|    return (void *)st->data[i];
  477|  2.46M|}
OPENSSL_sk_set:
  480|   228k|{
  481|   228k|    if (st == NULL) {
  ------------------
  |  Branch (481:9): [True: 0, False: 228k]
  ------------------
  482|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  483|      0|        return NULL;
  484|      0|    }
  485|   228k|    if (i < 0 || i >= st->num) {
  ------------------
  |  Branch (485:9): [True: 0, False: 228k]
  |  Branch (485:18): [True: 0, False: 228k]
  ------------------
  486|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |   87|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  358|      0|#define ERR_R_PASSED_INVALID_ARGUMENT (262 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  487|      0|            "i=%d", i);
  488|      0|        return NULL;
  489|      0|    }
  490|   228k|    st->data[i] = data;
  491|   228k|    st->sorted = 0;
  492|   228k|    return (void *)st->data[i];
  493|   228k|}
OPENSSL_sk_sort:
  496|    366|{
  497|    366|    if (st != NULL && !st->sorted && st->comp != NULL) {
  ------------------
  |  Branch (497:9): [True: 366, False: 0]
  |  Branch (497:23): [True: 364, False: 2]
  |  Branch (497:38): [True: 364, False: 0]
  ------------------
  498|    364|        if (st->num > 1)
  ------------------
  |  Branch (498:13): [True: 313, False: 51]
  ------------------
  499|    313|            qsort(st->data, st->num, sizeof(void *), st->comp);
  500|    364|        st->sorted = 1; /* empty or single-element stack is considered sorted */
  501|    364|    }
  502|    366|}
stack.c:sk_reserve:
  180|  1.34M|{
  181|  1.34M|    const void **tmpdata;
  182|  1.34M|    int num_alloc;
  183|       |
  184|       |    /* Check to see the reservation isn't exceeding the hard limit */
  185|  1.34M|    if (n > max_nodes - st->num) {
  ------------------
  |  Branch (185:9): [True: 0, False: 1.34M]
  ------------------
  186|      0|        ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_MANY_RECORDS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  187|      0|        return 0;
  188|      0|    }
  189|       |
  190|       |    /* Figure out the new size */
  191|  1.34M|    num_alloc = st->num + n;
  192|  1.34M|    if (num_alloc < min_nodes)
  ------------------
  |  Branch (192:9): [True: 1.13M, False: 215k]
  ------------------
  193|  1.13M|        num_alloc = min_nodes;
  194|       |
  195|       |    /* If |st->data| allocation was postponed */
  196|  1.34M|    if (st->data == NULL) {
  ------------------
  |  Branch (196:9): [True: 684k, False: 663k]
  ------------------
  197|       |        /*
  198|       |         * At this point, |st->num_alloc| and |st->num| are 0;
  199|       |         * so |num_alloc| value is |n| or |min_nodes| if greater than |n|.
  200|       |         */
  201|   684k|        if ((st->data = OPENSSL_calloc(num_alloc, sizeof(void *))) == NULL)
  ------------------
  |  |  112|   684k|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (201:13): [True: 0, False: 684k]
  ------------------
  202|      0|            return 0;
  203|   684k|        st->num_alloc = num_alloc;
  204|   684k|        return 1;
  205|   684k|    }
  206|       |
  207|   663k|    if (!exact) {
  ------------------
  |  Branch (207:9): [True: 663k, False: 0]
  ------------------
  208|   663k|        if (num_alloc <= st->num_alloc)
  ------------------
  |  Branch (208:13): [True: 617k, False: 46.0k]
  ------------------
  209|   617k|            return 1;
  210|  46.0k|        num_alloc = compute_growth(num_alloc, st->num_alloc);
  211|  46.0k|        if (num_alloc == 0) {
  ------------------
  |  Branch (211:13): [True: 0, False: 46.0k]
  ------------------
  212|      0|            ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_MANY_RECORDS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  213|      0|            return 0;
  214|      0|        }
  215|  46.0k|    } else if (num_alloc == st->num_alloc) {
  ------------------
  |  Branch (215:16): [True: 0, False: 0]
  ------------------
  216|      0|        return 1;
  217|      0|    }
  218|       |
  219|  46.0k|    tmpdata = OPENSSL_realloc_array((void *)st->data, num_alloc, sizeof(void *));
  ------------------
  |  |  124|  46.0k|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  220|  46.0k|    if (tmpdata == NULL)
  ------------------
  |  Branch (220:9): [True: 0, False: 46.0k]
  ------------------
  221|      0|        return 0;
  222|       |
  223|  46.0k|    st->data = tmpdata;
  224|  46.0k|    st->num_alloc = num_alloc;
  225|  46.0k|    return 1;
  226|  46.0k|}
stack.c:compute_growth:
  162|  46.0k|{
  163|  46.0k|    int err = 0;
  164|       |
  165|  92.0k|    while (current < target) {
  ------------------
  |  Branch (165:12): [True: 46.0k, False: 46.0k]
  ------------------
  166|  46.0k|        if (current >= max_nodes)
  ------------------
  |  Branch (166:13): [True: 0, False: 46.0k]
  ------------------
  167|      0|            return 0;
  168|       |
  169|  46.0k|        current = safe_muldiv_int(current, 8, 5, &err);
  170|  46.0k|        if (err != 0)
  ------------------
  |  Branch (170:13): [True: 0, False: 46.0k]
  ------------------
  171|      0|            return 0;
  172|  46.0k|        if (current >= max_nodes)
  ------------------
  |  Branch (172:13): [True: 0, False: 46.0k]
  ------------------
  173|      0|            current = max_nodes;
  174|  46.0k|    }
  175|  46.0k|    return current;
  176|  46.0k|}
stack.c:internal_delete:
  295|    438|{
  296|    438|    const void *ret = st->data[loc];
  297|       |
  298|    438|    if (loc != st->num - 1)
  ------------------
  |  Branch (298:9): [True: 0, False: 438]
  ------------------
  299|      0|        memmove(&st->data[loc], &st->data[loc + 1],
  300|      0|            sizeof(st->data[0]) * (st->num - loc - 1));
  301|    438|    st->num--;
  302|       |
  303|    438|    return (void *)ret;
  304|    438|}
stack.c:internal_find:
  329|  31.9k|{
  330|  31.9k|    const void *r;
  331|  31.9k|    int i, count = 0;
  332|  31.9k|    int *pnum = pnum_matched;
  333|       |
  334|  31.9k|    if (st == NULL || st->num == 0)
  ------------------
  |  Branch (334:9): [True: 0, False: 31.9k]
  |  Branch (334:23): [True: 219, False: 31.7k]
  ------------------
  335|    219|        return -1;
  336|       |
  337|  31.7k|    if (pnum == NULL)
  ------------------
  |  Branch (337:9): [True: 31.7k, False: 0]
  ------------------
  338|  31.7k|        pnum = &count;
  339|       |
  340|  31.7k|    if (st->comp == NULL) {
  ------------------
  |  Branch (340:9): [True: 0, False: 31.7k]
  ------------------
  341|      0|        for (i = 0; i < st->num; i++)
  ------------------
  |  Branch (341:21): [True: 0, False: 0]
  ------------------
  342|      0|            if (st->data[i] == data) {
  ------------------
  |  Branch (342:17): [True: 0, False: 0]
  ------------------
  343|      0|                *pnum = 1;
  344|      0|                return i;
  345|      0|            }
  346|      0|        *pnum = 0;
  347|      0|        return -1;
  348|      0|    }
  349|       |
  350|  31.7k|    if (data == NULL)
  ------------------
  |  Branch (350:9): [True: 0, False: 31.7k]
  ------------------
  351|      0|        return -1;
  352|       |
  353|  31.7k|    if (!st->sorted) {
  ------------------
  |  Branch (353:9): [True: 31.7k, False: 3]
  ------------------
  354|  31.7k|        int res = -1;
  355|       |
  356|  2.34M|        for (i = 0; i < st->num; i++)
  ------------------
  |  Branch (356:21): [True: 2.31M, False: 31.7k]
  ------------------
  357|  2.31M|            if (st->comp(&data, st->data + i) == 0) {
  ------------------
  |  Branch (357:17): [True: 0, False: 2.31M]
  ------------------
  358|      0|                if (res == -1)
  ------------------
  |  Branch (358:21): [True: 0, False: 0]
  ------------------
  359|      0|                    res = i;
  360|      0|                ++*pnum;
  361|       |                /* Check if only one result is wanted and exit if so */
  362|      0|                if (pnum_matched == NULL)
  ------------------
  |  Branch (362:21): [True: 0, False: 0]
  ------------------
  363|      0|                    return i;
  364|      0|            }
  365|  31.7k|        if (res == -1)
  ------------------
  |  Branch (365:13): [True: 31.7k, False: 0]
  ------------------
  366|  31.7k|            *pnum = 0;
  367|  31.7k|        return res;
  368|  31.7k|    }
  369|       |
  370|      3|    if (pnum_matched != NULL)
  ------------------
  |  Branch (370:9): [True: 0, False: 3]
  ------------------
  371|      0|        ret_val_options |= OSSL_BSEARCH_FIRST_VALUE_ON_MATCH;
  ------------------
  |  |  150|      0|#define OSSL_BSEARCH_FIRST_VALUE_ON_MATCH 0x02
  ------------------
  372|      3|    r = ossl_bsearch(&data, st->data, st->num, sizeof(void *), st->comp,
  373|      3|        ret_val_options);
  374|       |
  375|      3|    if (pnum_matched != NULL) {
  ------------------
  |  Branch (375:9): [True: 0, False: 3]
  ------------------
  376|      0|        *pnum = 0;
  377|      0|        if (r != NULL) {
  ------------------
  |  Branch (377:13): [True: 0, False: 0]
  ------------------
  378|      0|            const void **p = (const void **)r;
  379|       |
  380|      0|            while (p < st->data + st->num) {
  ------------------
  |  Branch (380:20): [True: 0, False: 0]
  ------------------
  381|      0|                if (st->comp(&data, p) != 0)
  ------------------
  |  Branch (381:21): [True: 0, False: 0]
  ------------------
  382|      0|                    break;
  383|      0|                ++*pnum;
  384|      0|                ++p;
  385|      0|            }
  386|      0|        }
  387|      0|    }
  388|       |
  389|      3|    return r == NULL ? -1 : (int)((const void **)r - st->data);
  ------------------
  |  Branch (389:12): [True: 0, False: 3]
  ------------------
  390|  31.7k|}

ossl_err_load_OSSL_STORE_strings:
   69|      2|{
   70|      2|#ifndef OPENSSL_NO_ERR
   71|      2|    if (ERR_reason_error_string(OSSL_STORE_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (71:9): [True: 2, False: 0]
  ------------------
   72|      2|        ERR_load_strings_const(OSSL_STORE_str_reasons);
   73|      2|#endif
   74|      2|    return 1;
   75|      2|}

ossl_crypto_mutex_new:
   97|      2|{
   98|      2|    pthread_mutex_t *mutex;
   99|       |
  100|      2|    if ((mutex = OPENSSL_zalloc(sizeof(*mutex))) == NULL)
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (100:9): [True: 0, False: 2]
  ------------------
  101|      0|        return NULL;
  102|      2|    if (pthread_mutex_init(mutex, NULL) != 0) {
  ------------------
  |  Branch (102:9): [True: 0, False: 2]
  ------------------
  103|      0|        OPENSSL_free(mutex);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  104|      0|        return NULL;
  105|      0|    }
  106|      2|    return (CRYPTO_MUTEX *)mutex;
  107|      2|}
ossl_crypto_condvar_new:
  156|      2|{
  157|      2|    pthread_cond_t *cv_p;
  158|       |
  159|      2|    if ((cv_p = OPENSSL_zalloc(sizeof(*cv_p))) == NULL)
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (159:9): [True: 0, False: 2]
  ------------------
  160|      0|        return NULL;
  161|      2|    if (pthread_cond_init(cv_p, NULL) != 0) {
  ------------------
  |  Branch (161:9): [True: 0, False: 2]
  ------------------
  162|      0|        OPENSSL_free(cv_p);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  163|      0|        return NULL;
  164|      0|    }
  165|      2|    return (CRYPTO_CONDVAR *)cv_p;
  166|      2|}

ossl_threads_ctx_new:
  128|      2|{
  129|      2|    struct openssl_threads_st *t = OPENSSL_zalloc(sizeof(*t));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  130|       |
  131|      2|    if (t == NULL)
  ------------------
  |  Branch (131:9): [True: 0, False: 2]
  ------------------
  132|      0|        return NULL;
  133|       |
  134|      2|    t->lock = ossl_crypto_mutex_new();
  135|      2|    t->cond_finished = ossl_crypto_condvar_new();
  136|       |
  137|      2|    if (t->lock == NULL || t->cond_finished == NULL)
  ------------------
  |  Branch (137:9): [True: 0, False: 2]
  |  Branch (137:28): [True: 0, False: 2]
  ------------------
  138|      0|        goto fail;
  139|       |
  140|      2|    return t;
  141|       |
  142|      0|fail:
  143|      0|    ossl_threads_ctx_free((void *)t);
  144|       |    return NULL;
  145|      2|}

CRYPTO_THREAD_get_local_ex:
  259|  1.51M|{
  260|  1.51M|    MASTER_KEY_ENTRY *mkey;
  261|  1.51M|    CTX_TABLE_ENTRY ctxd;
  262|       |
  263|  1.51M|    ctx = (ctx == CRYPTO_THREAD_NO_CONTEXT) ? NULL : ossl_lib_ctx_get_concrete(ctx);
  ------------------
  |  |   25|  1.51M|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  |  Branch (263:11): [True: 1.50M, False: 9.26k]
  ------------------
  264|       |    /*
  265|       |     * Make sure the master key has been initialized
  266|       |     * NOTE: We use CRYPTO_THREAD_run_once here, rather than the
  267|       |     * RUN_ONCE macros.  We do this because this code is included both in
  268|       |     * libcrypto, and in fips.[dll|dylib|so].  FIPS attempts to avoid doing
  269|       |     * one time initialization of global data, and so suppresses the definition
  270|       |     * of RUN_ONCE, etc, meaning the build breaks if we were to use that with
  271|       |     * fips-enabled.  However, this is a special case in which we want/need
  272|       |     * this one bit of global data to be initialized in both the fips provider
  273|       |     * and in libcrypto, so we use CRYPTO_THREAD_run_one directly, which is
  274|       |     * always defined.
  275|       |     */
  276|  1.51M|    if (!CRYPTO_THREAD_run_once(&master_once, init_master_key))
  ------------------
  |  Branch (276:9): [True: 0, False: 1.51M]
  ------------------
  277|      0|        return NULL;
  278|       |
  279|  1.51M|    if (!ossl_assert(id < CRYPTO_THREAD_LOCAL_KEY_MAX))
  ------------------
  |  |   52|  1.51M|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  1.51M|    __FILE__, __LINE__)
  ------------------
  |  Branch (279:9): [True: 0, False: 1.51M]
  ------------------
  280|      0|        return NULL;
  281|       |
  282|       |    /*
  283|       |     * Get our master table sparse array, indexed by key id
  284|       |     */
  285|  1.51M|    mkey = CRYPTO_THREAD_get_local(&master_key);
  286|  1.51M|    if (mkey == NULL)
  ------------------
  |  Branch (286:9): [True: 2, False: 1.51M]
  ------------------
  287|      2|        return NULL;
  288|       |
  289|       |    /*
  290|       |     * Get the specific data entry in the master key
  291|       |     * table for the key id we are searching for
  292|       |     */
  293|  1.51M|    if (mkey[id].ctx_table == NULL)
  ------------------
  |  Branch (293:9): [True: 3, False: 1.51M]
  ------------------
  294|      3|        return NULL;
  295|       |
  296|       |    /*
  297|       |     * If we find an entry above, that will be a sparse array,
  298|       |     * indexed by OSSL_LIB_CTX.
  299|       |     * Note: Because we're using sparse arrays here, we can do an easy
  300|       |     * trick, since we know all OSSL_LIB_CTX pointers are unique.  By casting
  301|       |     * the pointer to a unitptr_t, we can use that as an ordinal index into
  302|       |     * the sparse array.
  303|       |     */
  304|  1.51M|    ctxd = ossl_sa_CTX_TABLE_ENTRY_get(mkey[id].ctx_table, (uintptr_t)ctx);
  305|       |
  306|       |    /*
  307|       |     * If we find an entry for the passed in context, return its data pointer
  308|       |     */
  309|  1.51M|    return ctxd;
  310|  1.51M|}
CRYPTO_THREAD_set_local_ex:
  338|     10|{
  339|     10|    MASTER_KEY_ENTRY *mkey;
  340|       |
  341|     10|    ctx = (ctx == CRYPTO_THREAD_NO_CONTEXT) ? NULL : ossl_lib_ctx_get_concrete(ctx);
  ------------------
  |  |   25|     10|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  |  Branch (341:11): [True: 8, False: 2]
  ------------------
  342|       |    /*
  343|       |     * Make sure our master key is initialized
  344|       |     * See notes above on the use of CRYPTO_THREAD_run_once here
  345|       |     */
  346|     10|    if (!CRYPTO_THREAD_run_once(&master_once, init_master_key))
  ------------------
  |  Branch (346:9): [True: 0, False: 10]
  ------------------
  347|      0|        return 0;
  348|       |
  349|     10|    if (!ossl_assert(id < CRYPTO_THREAD_LOCAL_KEY_MAX))
  ------------------
  |  |   52|     10|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|     10|    __FILE__, __LINE__)
  ------------------
  |  Branch (349:9): [True: 0, False: 10]
  ------------------
  350|      0|        return 0;
  351|       |
  352|       |    /*
  353|       |     * Get our local master key data, which will be
  354|       |     * a sparse array indexed by the id parameter
  355|       |     */
  356|     10|    mkey = CRYPTO_THREAD_get_local(&master_key);
  357|     10|    if (mkey == NULL) {
  ------------------
  |  Branch (357:9): [True: 2, False: 8]
  ------------------
  358|       |        /*
  359|       |         * we didn't find one, but that's ok, just initialize it now
  360|       |         */
  361|      2|        mkey = OPENSSL_calloc(CRYPTO_THREAD_LOCAL_KEY_MAX,
  ------------------
  |  |  112|      2|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  362|      2|            sizeof(MASTER_KEY_ENTRY));
  363|      2|        if (mkey == NULL)
  ------------------
  |  Branch (363:13): [True: 0, False: 2]
  ------------------
  364|      0|            return 0;
  365|       |        /*
  366|       |         * make sure to assign it to our master key thread-local storage
  367|       |         */
  368|      2|        if (!CRYPTO_THREAD_set_local(&master_key, mkey)) {
  ------------------
  |  Branch (368:13): [True: 0, False: 2]
  ------------------
  369|      0|            OPENSSL_free(mkey);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  370|      0|            return 0;
  371|      0|        }
  372|      2|    }
  373|       |
  374|       |    /*
  375|       |     * Find the entry that we are looking for using our id index
  376|       |     */
  377|     10|    if (mkey[id].ctx_table == NULL) {
  ------------------
  |  Branch (377:9): [True: 4, False: 6]
  ------------------
  378|       |
  379|       |        /*
  380|       |         * Didn't find it, that's ok, just add it now
  381|       |         */
  382|      4|        mkey[id].ctx_table = ossl_sa_CTX_TABLE_ENTRY_new();
  383|      4|        if (mkey[id].ctx_table == NULL)
  ------------------
  |  Branch (383:13): [True: 0, False: 4]
  ------------------
  384|      0|            return 0;
  385|      4|    }
  386|       |
  387|       |    /*
  388|       |     * Now go look up our per context entry, using the OSSL_LIB_CTX pointer
  389|       |     * that we've been provided.  Note we cast the pointer to a uintptr_t so
  390|       |     * as to use it as an index in the sparse array
  391|       |     *
  392|       |     * Assign to the entry in the table so that we can find it later
  393|       |     */
  394|     10|    return ossl_sa_CTX_TABLE_ENTRY_set(mkey[id].ctx_table,
  395|     10|        (uintptr_t)ctx, data);
  396|     10|}
threads_common.c:init_master_key:
  216|      2|{
  217|       |    /*
  218|       |     * Note: We assign a cleanup function here, which is atypical for
  219|       |     * uses of CRYPTO_THREAD_init_local.  This is because, nominally
  220|       |     * we expect that the use of ossl_init_thread_start will be used
  221|       |     * to notify openssl of exiting threads.  However, in this case
  222|       |     * we want the metadata for this interface (the sparse arrays) to
  223|       |     * stay valid until the thread actually exits, which is what the
  224|       |     * clean_master_key function does.  Data held in the sparse arrays
  225|       |     * (that is assigned via CRYPTO_THREAD_set_local_ex), are still expected
  226|       |     * to be cleaned via the ossl_init_thread_start/stop api.
  227|       |     */
  228|      2|    if (!CRYPTO_THREAD_init_local(&master_key, clean_master_key))
  ------------------
  |  Branch (228:9): [True: 0, False: 2]
  ------------------
  229|      0|        return;
  230|       |
  231|       |    /*
  232|       |     * Indicate that the key has been set up.
  233|       |     */
  234|      2|    master_key_init = 1;
  235|      2|}

ossl_rcu_uptr_deref:
  561|   519k|{
  562|   519k|    return ATOMIC_LOAD_N(pvoid, p, __ATOMIC_ACQUIRE);
  ------------------
  |  |  129|   519k|#define ATOMIC_LOAD_N(t, p, o) __atomic_load_n(p, o)
  ------------------
  563|   519k|}
ossl_rcu_assign_uptr:
  566|    590|{
  567|    590|    ATOMIC_STORE(pvoid, p, v, __ATOMIC_RELEASE);
  ------------------
  |  |  131|    590|#define ATOMIC_STORE(t, p, v, o) __atomic_store(p, v, o)
  ------------------
  568|    590|}
ossl_rcu_lock_new:
  571|      2|{
  572|      2|    struct rcu_lock_st *new;
  573|      2|    pthread_mutex_t *mutexes[3] = { NULL };
  574|      2|    pthread_cond_t *conds[2] = { NULL };
  575|      2|    int i;
  576|       |
  577|       |    /*
  578|       |     * We need a minimum of 2 qp's
  579|       |     */
  580|      2|    if (num_writers < 2)
  ------------------
  |  Branch (580:9): [True: 2, False: 0]
  ------------------
  581|      2|        num_writers = 2;
  582|       |
  583|      2|    ctx = ossl_lib_ctx_get_concrete(ctx);
  584|      2|    if (ctx == NULL)
  ------------------
  |  Branch (584:9): [True: 0, False: 2]
  ------------------
  585|      0|        return 0;
  586|       |
  587|      2|    new = OPENSSL_zalloc(sizeof(*new));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  588|      2|    if (new == NULL)
  ------------------
  |  Branch (588:9): [True: 0, False: 2]
  ------------------
  589|      0|        return NULL;
  590|       |
  591|      2|    new->ctx = ctx;
  592|      2|    i = 0;
  593|      2|    mutexes[i] = pthread_mutex_init(&new->write_lock, NULL) == 0 ? &new->write_lock : NULL;
  ------------------
  |  Branch (593:18): [True: 2, False: 0]
  ------------------
  594|      2|    if (mutexes[i++] == NULL)
  ------------------
  |  Branch (594:9): [True: 0, False: 2]
  ------------------
  595|      0|        goto err;
  596|      2|    mutexes[i] = pthread_mutex_init(&new->prior_lock, NULL) == 0 ? &new->prior_lock : NULL;
  ------------------
  |  Branch (596:18): [True: 2, False: 0]
  ------------------
  597|      2|    if (mutexes[i++] == NULL)
  ------------------
  |  Branch (597:9): [True: 0, False: 2]
  ------------------
  598|      0|        goto err;
  599|      2|    mutexes[i] = pthread_mutex_init(&new->alloc_lock, NULL) == 0 ? &new->alloc_lock : NULL;
  ------------------
  |  Branch (599:18): [True: 2, False: 0]
  ------------------
  600|      2|    if (mutexes[i++] == NULL)
  ------------------
  |  Branch (600:9): [True: 0, False: 2]
  ------------------
  601|      0|        goto err;
  602|      2|    conds[i - 3] = pthread_cond_init(&new->prior_signal, NULL) == 0 ? &new->prior_signal : NULL;
  ------------------
  |  Branch (602:20): [True: 2, False: 0]
  ------------------
  603|      2|    if (conds[i - 3] == NULL)
  ------------------
  |  Branch (603:9): [True: 0, False: 2]
  ------------------
  604|      0|        goto err;
  605|      2|    i++;
  606|      2|    conds[i - 3] = pthread_cond_init(&new->alloc_signal, NULL) == 0 ? &new->alloc_signal : NULL;
  ------------------
  |  Branch (606:20): [True: 2, False: 0]
  ------------------
  607|      2|    if (conds[i - 3] == NULL)
  ------------------
  |  Branch (607:9): [True: 0, False: 2]
  ------------------
  608|      0|        goto err;
  609|      2|    i++;
  610|      2|    new->qp_group = allocate_new_qp_group(new, num_writers);
  611|      2|    if (new->qp_group == NULL)
  ------------------
  |  Branch (611:9): [True: 0, False: 2]
  ------------------
  612|      0|        goto err;
  613|       |
  614|      2|    return new;
  615|       |
  616|      0|err:
  617|      0|    for (i = 0; i < 3; i++)
  ------------------
  |  Branch (617:17): [True: 0, False: 0]
  ------------------
  618|      0|        if (mutexes[i] != NULL)
  ------------------
  |  Branch (618:13): [True: 0, False: 0]
  ------------------
  619|      0|            pthread_mutex_destroy(mutexes[i]);
  620|      0|    for (i = 0; i < 2; i++)
  ------------------
  |  Branch (620:17): [True: 0, False: 0]
  ------------------
  621|      0|        if (conds[i] != NULL)
  ------------------
  |  Branch (621:13): [True: 0, False: 0]
  ------------------
  622|      0|            pthread_cond_destroy(conds[i]);
  623|      0|    OPENSSL_free(new->qp_group);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  624|      0|    OPENSSL_free(new);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  625|       |    return NULL;
  626|      2|}
CRYPTO_THREAD_lock_new:
  901|   121k|{
  902|   121k|#ifdef USE_RWLOCK
  903|   121k|    CRYPTO_RWLOCK *lock;
  904|       |
  905|   121k|    ossl_init_rwlock_contention_data();
  906|       |
  907|   121k|    if ((lock = OPENSSL_zalloc(sizeof(pthread_rwlock_t))) == NULL)
  ------------------
  |  |  108|   121k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (907:9): [True: 0, False: 121k]
  ------------------
  908|       |        /* Don't set error, to avoid recursion blowup. */
  909|      0|        return NULL;
  910|       |
  911|   121k|    if (pthread_rwlock_init(lock, NULL) != 0) {
  ------------------
  |  Branch (911:9): [True: 0, False: 121k]
  ------------------
  912|      0|        OPENSSL_free(lock);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  913|      0|        return NULL;
  914|      0|    }
  915|       |#else
  916|       |    pthread_mutexattr_t attr;
  917|       |    CRYPTO_RWLOCK *lock;
  918|       |
  919|       |    if ((lock = OPENSSL_zalloc(sizeof(pthread_mutex_t))) == NULL)
  920|       |        /* Don't set error, to avoid recursion blowup. */
  921|       |        return NULL;
  922|       |
  923|       |    /*
  924|       |     * We don't use recursive mutexes, but try to catch errors if we do.
  925|       |     */
  926|       |    pthread_mutexattr_init(&attr);
  927|       |#if !defined(__TANDEM) && !defined(_SPT_MODEL_)
  928|       |#if !defined(NDEBUG) && !defined(OPENSSL_NO_MUTEX_ERRORCHECK)
  929|       |    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
  930|       |#endif
  931|       |#else
  932|       |    /* The SPT Thread Library does not define MUTEX attributes. */
  933|       |#endif
  934|       |
  935|       |    if (pthread_mutex_init(lock, &attr) != 0) {
  936|       |        pthread_mutexattr_destroy(&attr);
  937|       |        OPENSSL_free(lock);
  938|       |        return NULL;
  939|       |    }
  940|       |
  941|       |    pthread_mutexattr_destroy(&attr);
  942|       |#endif
  943|       |
  944|   121k|    return lock;
  945|   121k|}
CRYPTO_THREAD_read_lock:
  948|  1.00M|{
  949|  1.00M|#ifdef USE_RWLOCK
  950|  1.00M|    if (!ossl_assert(ossl_rwlock_rdlock(lock) == 0))
  ------------------
  |  |   52|  1.00M|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  1.00M|    __FILE__, __LINE__)
  ------------------
  |  Branch (950:9): [True: 0, False: 1.00M]
  ------------------
  951|      0|        return 0;
  952|       |#else
  953|       |    if (pthread_mutex_lock(lock) != 0) {
  954|       |        assert(errno != EDEADLK && errno != EBUSY);
  955|       |        return 0;
  956|       |    }
  957|       |#endif
  958|       |
  959|  1.00M|    return 1;
  960|  1.00M|}
CRYPTO_THREAD_write_lock:
  963|  38.9k|{
  964|  38.9k|#ifdef USE_RWLOCK
  965|  38.9k|    if (!ossl_assert(ossl_rwlock_wrlock(lock) == 0))
  ------------------
  |  |   52|  38.9k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  38.9k|    __FILE__, __LINE__)
  ------------------
  |  Branch (965:9): [True: 0, False: 38.9k]
  ------------------
  966|      0|        return 0;
  967|       |#else
  968|       |    if (pthread_mutex_lock(lock) != 0) {
  969|       |        assert(errno != EDEADLK && errno != EBUSY);
  970|       |        return 0;
  971|       |    }
  972|       |#endif
  973|       |
  974|  38.9k|    return 1;
  975|  38.9k|}
CRYPTO_THREAD_unlock:
  978|  1.03M|{
  979|  1.03M|#ifdef USE_RWLOCK
  980|  1.03M|    if (ossl_rwlock_unlock(lock) != 0)
  ------------------
  |  Branch (980:9): [True: 0, False: 1.03M]
  ------------------
  981|      0|        return 0;
  982|       |#else
  983|       |    if (pthread_mutex_unlock(lock) != 0) {
  984|       |        assert(errno != EPERM);
  985|       |        return 0;
  986|       |    }
  987|       |#endif
  988|       |
  989|  1.03M|    return 1;
  990|  1.03M|}
CRYPTO_THREAD_lock_free:
  993|   121k|{
  994|   121k|    if (lock == NULL)
  ------------------
  |  Branch (994:9): [True: 0, False: 121k]
  ------------------
  995|      0|        return;
  996|       |
  997|   121k|#ifdef USE_RWLOCK
  998|   121k|    pthread_rwlock_destroy(lock);
  999|       |#else
 1000|       |    pthread_mutex_destroy(lock);
 1001|       |#endif
 1002|   121k|    OPENSSL_free(lock);
  ------------------
  |  |  131|   121k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1003|       |
 1004|   121k|    return;
 1005|   121k|}
CRYPTO_THREAD_run_once:
 1008|  4.04M|{
 1009|  4.04M|    if (ossl_unlikely(pthread_once(once, init) != 0))
  ------------------
  |  |   23|  4.04M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.04M]
  |  |  ------------------
  ------------------
 1010|      0|        return 0;
 1011|       |
 1012|  4.04M|    return 1;
 1013|  4.04M|}
CRYPTO_THREAD_init_local:
 1016|      8|{
 1017|       |
 1018|      8|#ifndef FIPS_MODULE
 1019|      8|    if (!ossl_init_thread())
  ------------------
  |  Branch (1019:9): [True: 0, False: 8]
  ------------------
 1020|      0|        return 0;
 1021|      8|#endif
 1022|       |
 1023|      8|    if (pthread_key_create(key, cleanup) != 0)
  ------------------
  |  Branch (1023:9): [True: 0, False: 8]
  ------------------
 1024|      0|        return 0;
 1025|       |
 1026|      8|    return 1;
 1027|      8|}
CRYPTO_THREAD_get_local:
 1030|  2.35M|{
 1031|  2.35M|    return pthread_getspecific(*key);
 1032|  2.35M|}
CRYPTO_THREAD_set_local:
 1035|      6|{
 1036|      6|    if (pthread_setspecific(*key, val) != 0)
  ------------------
  |  Branch (1036:9): [True: 0, False: 6]
  ------------------
 1037|      0|        return 0;
 1038|       |
 1039|      6|    return 1;
 1040|      6|}
CRYPTO_THREAD_get_current_id:
 1051|     12|{
 1052|     12|    return pthread_self();
 1053|     12|}
CRYPTO_THREAD_compare_id:
 1056|     10|{
 1057|     10|    return pthread_equal(a, b);
 1058|     10|}
CRYPTO_atomic_add:
 1061|  8.02k|{
 1062|  8.02k|#if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(BROKEN_CLANG_ATOMICS)
 1063|  8.02k|    if (__atomic_is_lock_free(sizeof(*val), val)) {
  ------------------
  |  Branch (1063:9): [True: 8.02k, Folded]
  ------------------
 1064|  8.02k|        *ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL);
 1065|  8.02k|        return 1;
 1066|  8.02k|    }
 1067|       |#elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
 1068|       |    /* This will work for all future Solaris versions. */
 1069|       |    if (ret != NULL) {
 1070|       |        *ret = atomic_add_int_nv((volatile unsigned int *)val, amount);
 1071|       |        return 1;
 1072|       |    }
 1073|       |#endif
 1074|      0|    if (lock == NULL || !CRYPTO_THREAD_write_lock(lock))
  ------------------
  |  Branch (1074:9): [True: 0, False: 0]
  |  Branch (1074:25): [True: 0, False: 0]
  ------------------
 1075|      0|        return 0;
 1076|       |
 1077|      0|    *val += amount;
 1078|      0|    *ret = *val;
 1079|       |
 1080|      0|    if (!CRYPTO_THREAD_unlock(lock))
  ------------------
  |  Branch (1080:9): [True: 0, False: 0]
  ------------------
 1081|      0|        return 0;
 1082|       |
 1083|      0|    return 1;
 1084|      0|}
CRYPTO_atomic_or:
 1140|      5|{
 1141|      5|#if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(BROKEN_CLANG_ATOMICS)
 1142|      5|    if (__atomic_is_lock_free(sizeof(*val), val)) {
  ------------------
  |  Branch (1142:9): [True: 5, Folded]
  ------------------
 1143|      5|        *ret = __atomic_or_fetch(val, op, __ATOMIC_ACQ_REL);
 1144|      5|        return 1;
 1145|      5|    }
 1146|       |#elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
 1147|       |    /* This will work for all future Solaris versions. */
 1148|       |    if (ret != NULL) {
 1149|       |        *ret = atomic_or_64_nv(val, op);
 1150|       |        return 1;
 1151|       |    }
 1152|       |#endif
 1153|      0|    if (lock == NULL || !CRYPTO_THREAD_write_lock(lock))
  ------------------
  |  Branch (1153:9): [True: 0, False: 0]
  |  Branch (1153:25): [True: 0, False: 0]
  ------------------
 1154|      0|        return 0;
 1155|      0|    *val |= op;
 1156|      0|    *ret = *val;
 1157|       |
 1158|      0|    if (!CRYPTO_THREAD_unlock(lock))
  ------------------
  |  Branch (1158:9): [True: 0, False: 0]
  ------------------
 1159|      0|        return 0;
 1160|       |
 1161|      0|    return 1;
 1162|      0|}
CRYPTO_atomic_load:
 1165|  1.95M|{
 1166|  1.95M|#if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(BROKEN_CLANG_ATOMICS)
 1167|  1.95M|    if (__atomic_is_lock_free(sizeof(*val), val)) {
  ------------------
  |  Branch (1167:9): [True: 1.95M, Folded]
  ------------------
 1168|  1.95M|        __atomic_load(val, ret, __ATOMIC_ACQUIRE);
 1169|  1.95M|        return 1;
 1170|  1.95M|    }
 1171|       |#elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
 1172|       |    /* This will work for all future Solaris versions. */
 1173|       |    if (ret != NULL) {
 1174|       |        *ret = atomic_or_64_nv(val, 0);
 1175|       |        return 1;
 1176|       |    }
 1177|       |#endif
 1178|      0|    if (lock == NULL || !CRYPTO_THREAD_read_lock(lock))
  ------------------
  |  Branch (1178:9): [True: 0, False: 0]
  |  Branch (1178:25): [True: 0, False: 0]
  ------------------
 1179|      0|        return 0;
 1180|      0|    *ret = *val;
 1181|      0|    if (!CRYPTO_THREAD_unlock(lock))
  ------------------
  |  Branch (1181:9): [True: 0, False: 0]
  ------------------
 1182|      0|        return 0;
 1183|       |
 1184|      0|    return 1;
 1185|      0|}
CRYPTO_atomic_store:
 1188|    590|{
 1189|    590|#if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(BROKEN_CLANG_ATOMICS)
 1190|    590|    if (__atomic_is_lock_free(sizeof(*dst), dst)) {
  ------------------
  |  Branch (1190:9): [True: 590, Folded]
  ------------------
 1191|    590|        __atomic_store(dst, &val, __ATOMIC_RELEASE);
 1192|    590|        return 1;
 1193|    590|    }
 1194|       |#elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
 1195|       |    /* This will work for all future Solaris versions. */
 1196|       |    if (dst != NULL) {
 1197|       |        atomic_swap_64(dst, val);
 1198|       |        return 1;
 1199|       |    }
 1200|       |#endif
 1201|      0|    if (lock == NULL || !CRYPTO_THREAD_write_lock(lock))
  ------------------
  |  Branch (1201:9): [True: 0, False: 0]
  |  Branch (1201:25): [True: 0, False: 0]
  ------------------
 1202|      0|        return 0;
 1203|      0|    *dst = val;
 1204|      0|    if (!CRYPTO_THREAD_unlock(lock))
  ------------------
  |  Branch (1204:9): [True: 0, False: 0]
  ------------------
 1205|      0|        return 0;
 1206|       |
 1207|      0|    return 1;
 1208|      0|}
openssl_get_fork_id:
 1241|  9.27k|{
 1242|  9.27k|    return getpid();
 1243|  9.27k|}
threads_pthread.c:allocate_new_qp_group:
  474|      2|{
  475|      2|    struct rcu_qp *new = OPENSSL_calloc(count, sizeof(*new));
  ------------------
  |  |  112|      2|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  476|       |
  477|      2|    lock->group_count = count;
  478|      2|    return new;
  479|      2|}
threads_pthread.c:ossl_init_rwlock_contention_data:
  880|   121k|{
  881|   121k|}
threads_pthread.c:ossl_rwlock_rdlock:
  884|  1.00M|{
  885|  1.00M|    return pthread_rwlock_rdlock(rwlock);
  886|  1.00M|}
threads_pthread.c:ossl_rwlock_wrlock:
  889|  38.9k|{
  890|  38.9k|    return pthread_rwlock_wrlock(rwlock);
  891|  38.9k|}
threads_pthread.c:ossl_rwlock_unlock:
  894|  1.03M|{
  895|  1.03M|    return pthread_rwlock_unlock(rwlock);
  896|  1.03M|}

ossl_time_now:
   16|    438|{
   17|    438|    OSSL_TIME r;
   18|       |
   19|       |#if defined(_WIN32) && !defined(OPENSSL_SYS_UEFI)
   20|       |    SYSTEMTIME st;
   21|       |    union {
   22|       |        unsigned __int64 ul;
   23|       |        FILETIME ft;
   24|       |    } now;
   25|       |
   26|       |    GetSystemTime(&st);
   27|       |    SystemTimeToFileTime(&st, &now.ft);
   28|       |    /* re-bias to 1/1/1970 */
   29|       |#ifdef __MINGW32__
   30|       |    now.ul -= 116444736000000000ULL;
   31|       |#else
   32|       |    now.ul -= 116444736000000000UI64;
   33|       |#endif
   34|       |    r.t = ((uint64_t)now.ul) * (OSSL_TIME_SECOND / 10000000);
   35|       |#else /* defined(_WIN32) */
   36|    438|    struct timeval t;
   37|       |
   38|    438|    if (gettimeofday(&t, NULL) < 0) {
  ------------------
  |  Branch (38:9): [True: 0, False: 438]
  ------------------
   39|      0|        ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   74|      0|#define ERR_LIB_SYS 2
  ------------------
                      ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   30|      0|#define get_last_sys_error() errno
  ------------------
   40|      0|            "calling gettimeofday()");
   41|      0|        return ossl_time_zero();
   42|      0|    }
   43|    438|    if (t.tv_sec <= 0)
  ------------------
  |  Branch (43:9): [True: 0, False: 438]
  ------------------
   44|      0|        r.t = t.tv_usec <= 0 ? 0 : t.tv_usec * OSSL_TIME_US;
  ------------------
  |  |   37|      0|#define OSSL_TIME_US (OSSL_TIME_MS / 1000)
  |  |  ------------------
  |  |  |  |   34|      0|#define OSSL_TIME_MS (OSSL_TIME_SECOND / 1000)
  |  |  |  |  ------------------
  |  |  |  |  |  |   31|      0|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (44:15): [True: 0, False: 0]
  ------------------
   45|    438|    else
   46|    438|        r.t = ((uint64_t)t.tv_sec * 1000000 + t.tv_usec) * OSSL_TIME_US;
  ------------------
  |  |   37|    438|#define OSSL_TIME_US (OSSL_TIME_MS / 1000)
  |  |  ------------------
  |  |  |  |   34|    438|#define OSSL_TIME_MS (OSSL_TIME_SECOND / 1000)
  |  |  |  |  ------------------
  |  |  |  |  |  |   31|    438|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   47|    438|#endif /* defined(_WIN32) */
   48|    438|    return r;
   49|    438|}

ossl_err_load_TS_strings:
   82|      2|{
   83|      2|#ifndef OPENSSL_NO_ERR
   84|      2|    if (ERR_reason_error_string(TS_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (84:9): [True: 2, False: 0]
  ------------------
   85|      2|        ERR_load_strings_const(TS_str_reasons);
   86|      2|#endif
   87|      2|    return 1;
   88|      2|}

ossl_err_load_UI_strings:
   41|      2|{
   42|      2|#ifndef OPENSSL_NO_ERR
   43|      2|    if (ERR_reason_error_string(UI_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (43:9): [True: 2, False: 0]
  ------------------
   44|      2|        ERR_load_strings_const(UI_str_reasons);
   45|      2|#endif
   46|      2|    return 1;
   47|      2|}

X509_LOOKUP_hash_dir:
   78|    219|{
   79|    219|    return &x509_dir_lookup;
   80|    219|}
by_dir.c:new_dir:
  109|    219|{
  110|    219|    BY_DIR *a = OPENSSL_malloc(sizeof(*a));
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  111|       |
  112|    219|    if (a == NULL)
  ------------------
  |  Branch (112:9): [True: 0, False: 219]
  ------------------
  113|      0|        return 0;
  114|       |
  115|    219|    if ((a->buffer = BUF_MEM_new()) == NULL) {
  ------------------
  |  Branch (115:9): [True: 0, False: 219]
  ------------------
  116|      0|        ERR_raise(ERR_LIB_X509, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  117|      0|        goto err;
  118|      0|    }
  119|    219|    a->dirs = NULL;
  120|    219|    a->lock = CRYPTO_THREAD_lock_new();
  121|    219|    if (a->lock == NULL) {
  ------------------
  |  Branch (121:9): [True: 0, False: 219]
  ------------------
  122|      0|        BUF_MEM_free(a->buffer);
  123|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  124|      0|        goto err;
  125|      0|    }
  126|    219|    lu->method_data = a;
  127|    219|    return 1;
  128|       |
  129|      0|err:
  130|      0|    OPENSSL_free(a);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  131|      0|    return 0;
  132|    219|}
by_dir.c:free_dir:
  157|    219|{
  158|    219|    BY_DIR *a = (BY_DIR *)lu->method_data;
  159|       |
  160|    219|    sk_BY_DIR_ENTRY_pop_free(a->dirs, by_dir_entry_free);
  161|    219|    BUF_MEM_free(a->buffer);
  162|    219|    CRYPTO_THREAD_lock_free(a->lock);
  163|    219|    OPENSSL_free(a);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  164|    219|}
by_dir.c:by_dir_entry_free:
  150|    219|{
  151|    219|    OPENSSL_free(ent->dir);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  152|    219|    sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free);
  153|    219|    OPENSSL_free(ent);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  154|    219|}
by_dir.c:dir_ctrl:
   84|    219|{
   85|    219|    int ret = 0;
   86|    219|    BY_DIR *ld = (BY_DIR *)ctx->method_data;
   87|       |
   88|    219|    switch (cmd) {
  ------------------
  |  Branch (88:13): [True: 219, False: 0]
  ------------------
   89|    219|    case X509_L_ADD_DIR:
  ------------------
  |  |  284|    219|#define X509_L_ADD_DIR 2
  ------------------
  |  Branch (89:5): [True: 219, False: 0]
  ------------------
   90|    219|        if (argl == X509_FILETYPE_DEFAULT) {
  ------------------
  |  |  170|    219|#define X509_FILETYPE_DEFAULT 3
  ------------------
  |  Branch (90:13): [True: 0, False: 219]
  ------------------
   91|      0|            const char *dir = ossl_safe_getenv(X509_get_default_cert_dir_env());
   92|       |
   93|      0|            if (dir)
  ------------------
  |  Branch (93:17): [True: 0, False: 0]
  ------------------
   94|      0|                ret = add_cert_dir(ld, dir, X509_FILETYPE_PEM);
  ------------------
  |  |  168|      0|#define X509_FILETYPE_PEM 1
  ------------------
   95|      0|            else
   96|      0|                ret = add_cert_dir(ld, X509_get_default_cert_dir(),
   97|      0|                    X509_FILETYPE_PEM);
  ------------------
  |  |  168|      0|#define X509_FILETYPE_PEM 1
  ------------------
   98|      0|            if (!ret) {
  ------------------
  |  Branch (98:17): [True: 0, False: 0]
  ------------------
   99|      0|                ERR_raise(ERR_LIB_X509, X509_R_LOADING_CERT_DIR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  100|      0|            }
  101|      0|        } else
  102|    219|            ret = add_cert_dir(ld, argp, (int)argl);
  103|    219|        break;
  104|    219|    }
  105|    219|    return ret;
  106|    219|}
by_dir.c:add_cert_dir:
  167|    219|{
  168|    219|    int j;
  169|    219|    size_t len;
  170|    219|    const char *s, *ss, *p;
  171|       |
  172|    219|    if (dir == NULL || *dir == '\0') {
  ------------------
  |  Branch (172:9): [True: 0, False: 219]
  |  Branch (172:24): [True: 0, False: 219]
  ------------------
  173|      0|        ERR_raise(ERR_LIB_X509, X509_R_INVALID_DIRECTORY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  174|      0|        return 0;
  175|      0|    }
  176|       |
  177|    219|    s = dir;
  178|    219|    p = s;
  179|  3.28k|    do {
  180|  3.28k|        if ((*p == LIST_SEPARATOR_CHAR) || (*p == '\0')) {
  ------------------
  |  |  213|  3.28k|#define LIST_SEPARATOR_CHAR ':'
  ------------------
  |  Branch (180:13): [True: 0, False: 3.28k]
  |  Branch (180:44): [True: 219, False: 3.06k]
  ------------------
  181|    219|            BY_DIR_ENTRY *ent;
  182|       |
  183|    219|            ss = s;
  184|    219|            s = p + 1;
  185|    219|            len = p - ss;
  186|    219|            if (len == 0)
  ------------------
  |  Branch (186:17): [True: 0, False: 219]
  ------------------
  187|      0|                continue;
  188|    219|            for (j = 0; j < sk_BY_DIR_ENTRY_num(ctx->dirs); j++) {
  ------------------
  |  Branch (188:25): [True: 0, False: 219]
  ------------------
  189|      0|                ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j);
  190|      0|                if (strlen(ent->dir) == len && strncmp(ent->dir, ss, len) == 0)
  ------------------
  |  Branch (190:21): [True: 0, False: 0]
  |  Branch (190:48): [True: 0, False: 0]
  ------------------
  191|      0|                    break;
  192|      0|            }
  193|    219|            if (j < sk_BY_DIR_ENTRY_num(ctx->dirs))
  ------------------
  |  Branch (193:17): [True: 0, False: 219]
  ------------------
  194|      0|                continue;
  195|    219|            if (ctx->dirs == NULL) {
  ------------------
  |  Branch (195:17): [True: 219, False: 0]
  ------------------
  196|    219|                ctx->dirs = sk_BY_DIR_ENTRY_new_null();
  197|    219|                if (!ctx->dirs) {
  ------------------
  |  Branch (197:21): [True: 0, False: 219]
  ------------------
  198|      0|                    ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  199|      0|                    return 0;
  200|      0|                }
  201|    219|            }
  202|    219|            ent = OPENSSL_malloc(sizeof(*ent));
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  203|    219|            if (ent == NULL)
  ------------------
  |  Branch (203:17): [True: 0, False: 219]
  ------------------
  204|      0|                return 0;
  205|    219|            ent->dir_type = type;
  206|    219|            ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp);
  207|    219|            ent->dir = OPENSSL_strndup(ss, len);
  ------------------
  |  |  137|    219|    CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  208|    219|            if (ent->dir == NULL || ent->hashes == NULL) {
  ------------------
  |  Branch (208:17): [True: 0, False: 219]
  |  Branch (208:37): [True: 0, False: 219]
  ------------------
  209|      0|                by_dir_entry_free(ent);
  210|      0|                return 0;
  211|      0|            }
  212|    219|            if (!sk_BY_DIR_ENTRY_push(ctx->dirs, ent)) {
  ------------------
  |  Branch (212:17): [True: 0, False: 219]
  ------------------
  213|      0|                by_dir_entry_free(ent);
  214|      0|                ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  215|      0|                return 0;
  216|      0|            }
  217|    219|        }
  218|  3.28k|    } while (*p++ != '\0');
  ------------------
  |  Branch (218:14): [True: 3.06k, False: 219]
  ------------------
  219|    219|    return 1;
  220|    219|}

X509_LOOKUP_file:
   42|    219|{
   43|    219|    return &x509_file_lookup;
   44|    219|}
X509_load_cert_crl_file_ex:
  234|    219|{
  235|    219|    STACK_OF(X509_INFO) *inf = NULL;
  ------------------
  |  |   33|    219|#define STACK_OF(type) struct stack_st_##type
  ------------------
  236|    219|    X509_INFO *itmp = NULL;
  237|    219|    BIO *in = NULL;
  238|    219|    int i, count = 0;
  239|       |
  240|    219|    if (type != X509_FILETYPE_PEM)
  ------------------
  |  |  168|    219|#define X509_FILETYPE_PEM 1
  ------------------
  |  Branch (240:9): [True: 0, False: 219]
  ------------------
  241|      0|        return X509_load_cert_file_ex(ctx, file, type, libctx, propq);
  242|       |#if defined(OPENSSL_SYS_WINDOWS)
  243|       |    in = BIO_new_file(file, "rb");
  244|       |#else
  245|    219|    in = BIO_new_file(file, "r");
  246|    219|#endif
  247|    219|    if (in == NULL) {
  ------------------
  |  Branch (247:9): [True: 0, False: 219]
  ------------------
  248|      0|        ERR_raise(ERR_LIB_X509, ERR_R_BIO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  249|      0|        return 0;
  250|      0|    }
  251|    219|    inf = PEM_X509_INFO_read_bio_ex(in, NULL, NULL, "", libctx, propq);
  252|    219|    BIO_free(in);
  253|    219|    if (inf == NULL) {
  ------------------
  |  Branch (253:9): [True: 0, False: 219]
  ------------------
  254|      0|        ERR_raise(ERR_LIB_X509, ERR_R_PEM_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  255|      0|        return 0;
  256|      0|    }
  257|  32.1k|    for (i = 0; i < sk_X509_INFO_num(inf); i++) {
  ------------------
  |  |  397|  32.1k|#define sk_X509_INFO_num(sk) OPENSSL_sk_num(ossl_check_const_X509_INFO_sk_type(sk))
  ------------------
  |  Branch (257:17): [True: 31.9k, False: 219]
  ------------------
  258|  31.9k|        itmp = sk_X509_INFO_value(inf, i);
  ------------------
  |  |  398|  31.9k|#define sk_X509_INFO_value(sk, idx) ((X509_INFO *)OPENSSL_sk_value(ossl_check_const_X509_INFO_sk_type(sk), (idx)))
  ------------------
  259|  31.9k|        if (itmp->x509) {
  ------------------
  |  Branch (259:13): [True: 31.9k, False: 0]
  ------------------
  260|  31.9k|            if (!X509_STORE_add_cert(ctx->store_ctx, itmp->x509)) {
  ------------------
  |  Branch (260:17): [True: 0, False: 31.9k]
  ------------------
  261|      0|                count = 0;
  262|      0|                goto err;
  263|      0|            }
  264|  31.9k|            count++;
  265|  31.9k|        }
  266|  31.9k|        if (itmp->crl) {
  ------------------
  |  Branch (266:13): [True: 0, False: 31.9k]
  ------------------
  267|      0|            if (!X509_STORE_add_crl(ctx->store_ctx, itmp->crl)) {
  ------------------
  |  Branch (267:17): [True: 0, False: 0]
  ------------------
  268|      0|                count = 0;
  269|      0|                goto err;
  270|      0|            }
  271|      0|            count++;
  272|      0|        }
  273|  31.9k|    }
  274|    219|    if (count == 0)
  ------------------
  |  Branch (274:9): [True: 0, False: 219]
  ------------------
  275|    219|        ERR_raise(ERR_LIB_X509, X509_R_NO_CERTIFICATE_OR_CRL_FOUND);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  276|    219|err:
  277|    219|    sk_X509_INFO_pop_free(inf, X509_INFO_free);
  ------------------
  |  |  411|    219|#define sk_X509_INFO_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_INFO_sk_type(sk), ossl_check_X509_INFO_freefunc_type(freefunc))
  ------------------
  278|    219|    return count;
  279|    219|}
by_file.c:by_file_ctrl_ex:
   49|    219|{
   50|    219|    int ok = 0;
   51|    219|    const char *file;
   52|       |
   53|    219|    switch (cmd) {
  ------------------
  |  Branch (53:13): [True: 219, False: 0]
  ------------------
   54|    219|    case X509_L_FILE_LOAD:
  ------------------
  |  |  283|    219|#define X509_L_FILE_LOAD 1
  ------------------
  |  Branch (54:5): [True: 219, False: 0]
  ------------------
   55|    219|        if (argl == X509_FILETYPE_DEFAULT) {
  ------------------
  |  |  170|    219|#define X509_FILETYPE_DEFAULT 3
  ------------------
  |  Branch (55:13): [True: 0, False: 219]
  ------------------
   56|      0|            file = ossl_safe_getenv(X509_get_default_cert_file_env());
   57|      0|            if (file)
  ------------------
  |  Branch (57:17): [True: 0, False: 0]
  ------------------
   58|      0|                ok = (X509_load_cert_crl_file_ex(ctx, file, X509_FILETYPE_PEM,
  ------------------
  |  |  168|      0|#define X509_FILETYPE_PEM 1
  ------------------
   59|      0|                          libctx, propq)
   60|      0|                    != 0);
   61|      0|            else
   62|      0|                ok = (X509_load_cert_crl_file_ex(
   63|      0|                          ctx, X509_get_default_cert_file(),
   64|      0|                          X509_FILETYPE_PEM, libctx, propq)
  ------------------
  |  |  168|      0|#define X509_FILETYPE_PEM 1
  ------------------
   65|      0|                    != 0);
   66|       |
   67|      0|            if (!ok)
  ------------------
  |  Branch (67:17): [True: 0, False: 0]
  ------------------
   68|      0|                ERR_raise(ERR_LIB_X509, X509_R_LOADING_DEFAULTS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   69|    219|        } else {
   70|    219|            if (argl == X509_FILETYPE_PEM)
  ------------------
  |  |  168|    219|#define X509_FILETYPE_PEM 1
  ------------------
  |  Branch (70:17): [True: 219, False: 0]
  ------------------
   71|    219|                ok = (X509_load_cert_crl_file_ex(ctx, argp, X509_FILETYPE_PEM,
  ------------------
  |  |  168|    219|#define X509_FILETYPE_PEM 1
  ------------------
   72|    219|                          libctx, propq)
   73|    219|                    != 0);
   74|      0|            else
   75|      0|                ok = (X509_load_cert_file_ex(ctx, argp, (int)argl, libctx,
   76|      0|                          propq)
   77|      0|                    != 0);
   78|    219|        }
   79|    219|        break;
   80|    219|    }
   81|    219|    return ok;
   82|    219|}

ossl_policy_cache_free:
  178|  63.9k|{
  179|  63.9k|    if (!cache)
  ------------------
  |  Branch (179:9): [True: 63.9k, False: 0]
  ------------------
  180|  63.9k|        return;
  181|      0|    ossl_policy_data_free(cache->anyPolicy);
  182|      0|    sk_X509_POLICY_DATA_pop_free(cache->data, ossl_policy_data_free);
  183|      0|    OPENSSL_free(cache);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  184|      0|}

OSSL_STACK_OF_X509_free:
   26|  6.15k|{
   27|  6.15k|    sk_X509_pop_free(certs, X509_free);
  ------------------
  |  |   96|  6.15k|#define sk_X509_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_sk_type(sk), ossl_check_X509_freefunc_type(freefunc))
  ------------------
   28|  6.15k|}

ossl_err_load_X509V3_strings:
  146|      2|{
  147|      2|#ifndef OPENSSL_NO_ERR
  148|      2|    if (ERR_reason_error_string(X509V3_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (148:9): [True: 2, False: 0]
  ------------------
  149|      2|        ERR_load_strings_const(X509V3_str_reasons);
  150|      2|#endif
  151|      2|    return 1;
  152|      2|}

X509_subject_name_cmp:
   78|  2.31M|{
   79|  2.31M|    return X509_NAME_cmp(a->cert_info.subject, b->cert_info.subject);
   80|  2.31M|}
X509_NAME_cmp:
  256|  2.31M|{
  257|  2.31M|    int ret;
  258|       |
  259|  2.31M|    if (b == NULL)
  ------------------
  |  Branch (259:9): [True: 0, False: 2.31M]
  ------------------
  260|      0|        return a != NULL;
  261|  2.31M|    if (a == NULL)
  ------------------
  |  Branch (261:9): [True: 0, False: 2.31M]
  ------------------
  262|      0|        return -1;
  263|       |
  264|       |    /* Ensure canonical encoding is present and up to date */
  265|  2.31M|    if (a->canon_enc == NULL || a->modified) {
  ------------------
  |  Branch (265:9): [True: 0, False: 2.31M]
  |  Branch (265:33): [True: 0, False: 2.31M]
  ------------------
  266|      0|        ret = i2d_X509_NAME((X509_NAME *)a, NULL);
  267|      0|        if (ret < 0)
  ------------------
  |  Branch (267:13): [True: 0, False: 0]
  ------------------
  268|      0|            return -2;
  269|      0|    }
  270|       |
  271|  2.31M|    if (b->canon_enc == NULL || b->modified) {
  ------------------
  |  Branch (271:9): [True: 0, False: 2.31M]
  |  Branch (271:33): [True: 0, False: 2.31M]
  ------------------
  272|      0|        ret = i2d_X509_NAME((X509_NAME *)b, NULL);
  273|      0|        if (ret < 0)
  ------------------
  |  Branch (273:13): [True: 0, False: 0]
  ------------------
  274|      0|            return -2;
  275|      0|    }
  276|       |
  277|  2.31M|    ret = a->canon_enclen - b->canon_enclen;
  278|  2.31M|    if (ret == 0 && a->canon_enclen == 0)
  ------------------
  |  Branch (278:9): [True: 38.7k, False: 2.27M]
  |  Branch (278:21): [True: 0, False: 38.7k]
  ------------------
  279|      0|        return 0;
  280|       |
  281|  2.31M|    if (ret == 0) {
  ------------------
  |  Branch (281:9): [True: 38.7k, False: 2.27M]
  ------------------
  282|  38.7k|        if (a->canon_enc == NULL || b->canon_enc == NULL)
  ------------------
  |  Branch (282:13): [True: 0, False: 38.7k]
  |  Branch (282:37): [True: 0, False: 38.7k]
  ------------------
  283|      0|            return -2;
  284|  38.7k|        ret = memcmp(a->canon_enc, b->canon_enc, a->canon_enclen);
  285|  38.7k|    }
  286|       |
  287|  2.31M|    return ret < 0 ? -1 : ret > 0;
  ------------------
  |  Branch (287:12): [True: 1.01M, False: 1.30M]
  ------------------
  288|  2.31M|}

X509_STORE_load_file_ex:
   52|    219|{
   53|    219|    X509_LOOKUP *lookup;
   54|       |
   55|    219|    if (file == NULL
  ------------------
  |  Branch (55:9): [True: 0, False: 219]
  ------------------
   56|    219|        || (lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_file())) == NULL
  ------------------
  |  Branch (56:12): [True: 0, False: 219]
  ------------------
   57|    219|        || X509_LOOKUP_load_file_ex(lookup, file, X509_FILETYPE_PEM, libctx,
  ------------------
  |  |  301|    219|    X509_LOOKUP_ctrl_ex((x), X509_L_FILE_LOAD, (name), (long)(type), NULL, \
  |  |  ------------------
  |  |  |  |  283|    219|#define X509_L_FILE_LOAD 1
  |  |  ------------------
  |  |  302|    219|        (libctx), (propq))
  ------------------
  |  Branch (57:12): [True: 0, False: 219]
  ------------------
   58|    219|               propq)
   59|    219|            <= 0)
   60|      0|        return 0;
   61|       |
   62|    219|    return 1;
   63|    219|}
X509_STORE_load_file:
   66|    219|{
   67|    219|    return X509_STORE_load_file_ex(ctx, file, NULL, NULL);
   68|    219|}
X509_STORE_load_path:
   71|    219|{
   72|    219|    X509_LOOKUP *lookup;
   73|       |
   74|    219|    if (path == NULL
  ------------------
  |  Branch (74:9): [True: 0, False: 219]
  ------------------
   75|    219|        || (lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_hash_dir())) == NULL
  ------------------
  |  Branch (75:12): [True: 0, False: 219]
  ------------------
   76|    219|        || X509_LOOKUP_add_dir(lookup, path, X509_FILETYPE_PEM) <= 0)
  ------------------
  |  |  292|    219|    X509_LOOKUP_ctrl((x), X509_L_ADD_DIR, (name), (long)(type), NULL)
  |  |  ------------------
  |  |  |  |  284|    219|#define X509_L_ADD_DIR 2
  |  |  ------------------
  ------------------
  |  Branch (76:12): [True: 0, False: 219]
  ------------------
   77|      0|        return 0;
   78|       |
   79|    219|    return 1;
   80|    219|}

X509_get_default_cert_area:
   79|      2|{
   80|       |#if defined(_WIN32)
   81|       |    RUN_ONCE(&openssldir_setup_init, do_openssldir_setup);
   82|       |    return x509_cert_areaptr;
   83|       |#else
   84|      2|    return X509_CERT_AREA;
  ------------------
  |  |   83|      2|#define X509_CERT_AREA OPENSSLDIR
  ------------------
   85|      2|#endif
   86|      2|}

ossl_err_load_X509_strings:
   92|      2|{
   93|      2|#ifndef OPENSSL_NO_ERR
   94|      2|    if (ERR_reason_error_string(X509_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (94:9): [True: 2, False: 0]
  ------------------
   95|      2|        ERR_load_strings_const(X509_str_reasons);
   96|      2|#endif
   97|      2|    return 1;
   98|      2|}

X509_LOOKUP_new:
   19|    438|{
   20|    438|    X509_LOOKUP *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|    438|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   21|       |
   22|    438|    if (ret == NULL)
  ------------------
  |  Branch (22:9): [True: 0, False: 438]
  ------------------
   23|      0|        return NULL;
   24|       |
   25|    438|    ret->method = method;
   26|    438|    if (method->new_item != NULL && method->new_item(ret) == 0) {
  ------------------
  |  Branch (26:9): [True: 219, False: 219]
  |  Branch (26:37): [True: 0, False: 219]
  ------------------
   27|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   28|      0|        return NULL;
   29|      0|    }
   30|    438|    return ret;
   31|    438|}
X509_LOOKUP_free:
   34|    438|{
   35|    438|    if (ctx == NULL)
  ------------------
  |  Branch (35:9): [True: 0, False: 438]
  ------------------
   36|      0|        return;
   37|    438|    if ((ctx->method != NULL) && (ctx->method->free != NULL))
  ------------------
  |  Branch (37:9): [True: 438, False: 0]
  |  Branch (37:34): [True: 219, False: 219]
  ------------------
   38|    219|        (*ctx->method->free)(ctx);
   39|    438|    OPENSSL_free(ctx);
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   40|    438|}
X509_STORE_lock:
   43|  31.9k|{
   44|  31.9k|    return CRYPTO_THREAD_write_lock(xs->lock);
   45|  31.9k|}
X509_STORE_unlock:
   53|  31.9k|{
   54|  31.9k|    return CRYPTO_THREAD_unlock(xs->lock);
   55|  31.9k|}
X509_LOOKUP_shutdown:
   68|    438|{
   69|    438|    if (ctx->method == NULL)
  ------------------
  |  Branch (69:9): [True: 0, False: 438]
  ------------------
   70|      0|        return 0;
   71|    438|    if (ctx->method->shutdown != NULL)
  ------------------
  |  Branch (71:9): [True: 0, False: 438]
  ------------------
   72|      0|        return ctx->method->shutdown(ctx);
   73|    438|    else
   74|    438|        return 1;
   75|    438|}
X509_LOOKUP_ctrl_ex:
   79|    438|{
   80|    438|    if (ctx->method == NULL)
  ------------------
  |  Branch (80:9): [True: 0, False: 438]
  ------------------
   81|      0|        return -1;
   82|    438|    if (ctx->method->ctrl_ex != NULL)
  ------------------
  |  Branch (82:9): [True: 219, False: 219]
  ------------------
   83|    219|        return ctx->method->ctrl_ex(ctx, cmd, argc, argl, ret, libctx, propq);
   84|    219|    if (ctx->method->ctrl != NULL)
  ------------------
  |  Branch (84:9): [True: 219, False: 0]
  ------------------
   85|    219|        return ctx->method->ctrl(ctx, cmd, argc, argl, ret);
   86|      0|    return 1;
   87|    219|}
X509_LOOKUP_ctrl:
   91|    219|{
   92|    219|    return X509_LOOKUP_ctrl_ex(ctx, cmd, argc, argl, ret, NULL, NULL);
   93|    219|}
X509_STORE_new:
  183|    220|{
  184|    220|    X509_STORE *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|    220|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  185|       |
  186|    220|    if (ret == NULL)
  ------------------
  |  Branch (186:9): [True: 0, False: 220]
  ------------------
  187|      0|        return NULL;
  188|    220|    if ((ret->objs = sk_X509_OBJECT_new(x509_object_cmp)) == NULL) {
  ------------------
  |  |  103|    220|#define sk_X509_OBJECT_new(cmp) ((STACK_OF(X509_OBJECT) *)OPENSSL_sk_new(ossl_check_X509_OBJECT_compfunc_type(cmp)))
  ------------------
  |  Branch (188:9): [True: 0, False: 220]
  ------------------
  189|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  190|      0|        goto err;
  191|      0|    }
  192|    220|    ret->cache = 1;
  193|    220|    if ((ret->get_cert_methods = sk_X509_LOOKUP_new_null()) == NULL) {
  ------------------
  |  |   78|    220|#define sk_X509_LOOKUP_new_null() ((STACK_OF(X509_LOOKUP) *)OPENSSL_sk_new_null())
  ------------------
  |  Branch (193:9): [True: 0, False: 220]
  ------------------
  194|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  195|      0|        goto err;
  196|      0|    }
  197|       |
  198|    220|    if ((ret->param = X509_VERIFY_PARAM_new()) == NULL) {
  ------------------
  |  Branch (198:9): [True: 0, False: 220]
  ------------------
  199|      0|        ERR_raise(ERR_LIB_X509, ERR_R_X509_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  200|      0|        goto err;
  201|      0|    }
  202|    220|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE, ret, &ret->ex_data)) {
  ------------------
  |  |  254|    220|#define CRYPTO_EX_INDEX_X509_STORE 4
  ------------------
  |  Branch (202:9): [True: 0, False: 220]
  ------------------
  203|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  204|      0|        goto err;
  205|      0|    }
  206|       |
  207|    220|    ret->lock = CRYPTO_THREAD_lock_new();
  208|    220|    if (ret->lock == NULL) {
  ------------------
  |  Branch (208:9): [True: 0, False: 220]
  ------------------
  209|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  210|      0|        goto err;
  211|      0|    }
  212|       |
  213|    220|    if (!CRYPTO_NEW_REF(&ret->references, 1))
  ------------------
  |  Branch (213:9): [True: 0, False: 220]
  ------------------
  214|      0|        goto err;
  215|    220|    return ret;
  216|       |
  217|      0|err:
  218|      0|    X509_VERIFY_PARAM_free(ret->param);
  219|      0|    sk_X509_OBJECT_free(ret->objs);
  ------------------
  |  |  107|      0|#define sk_X509_OBJECT_free(sk) OPENSSL_sk_free(ossl_check_X509_OBJECT_sk_type(sk))
  ------------------
  220|      0|    sk_X509_LOOKUP_free(ret->get_cert_methods);
  ------------------
  |  |   81|      0|#define sk_X509_LOOKUP_free(sk) OPENSSL_sk_free(ossl_check_X509_LOOKUP_sk_type(sk))
  ------------------
  221|      0|    CRYPTO_THREAD_lock_free(ret->lock);
  222|      0|    OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  223|       |    return NULL;
  224|    220|}
X509_STORE_free:
  227|  1.10k|{
  228|  1.10k|    int i;
  229|  1.10k|    STACK_OF(X509_LOOKUP) *sk;
  ------------------
  |  |   33|  1.10k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  230|  1.10k|    X509_LOOKUP *lu;
  231|       |
  232|  1.10k|    if (xs == NULL)
  ------------------
  |  Branch (232:9): [True: 880, False: 220]
  ------------------
  233|    880|        return;
  234|    220|    CRYPTO_DOWN_REF(&xs->references, &i);
  235|    220|    REF_PRINT_COUNT("X509_STORE", i, xs);
  ------------------
  |  |  301|    220|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    220|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|    220|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|    220|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  236|    220|    if (i > 0)
  ------------------
  |  Branch (236:9): [True: 0, False: 220]
  ------------------
  237|      0|        return;
  238|    220|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    220|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 220]
  |  |  ------------------
  ------------------
  239|       |
  240|    220|    sk = xs->get_cert_methods;
  241|    658|    for (i = 0; i < sk_X509_LOOKUP_num(sk); i++) {
  ------------------
  |  |   75|    658|#define sk_X509_LOOKUP_num(sk) OPENSSL_sk_num(ossl_check_const_X509_LOOKUP_sk_type(sk))
  ------------------
  |  Branch (241:17): [True: 438, False: 220]
  ------------------
  242|    438|        lu = sk_X509_LOOKUP_value(sk, i);
  ------------------
  |  |   76|    438|#define sk_X509_LOOKUP_value(sk, idx) ((X509_LOOKUP *)OPENSSL_sk_value(ossl_check_const_X509_LOOKUP_sk_type(sk), (idx)))
  ------------------
  243|    438|        X509_LOOKUP_shutdown(lu);
  244|    438|        X509_LOOKUP_free(lu);
  245|    438|    }
  246|    220|    sk_X509_LOOKUP_free(sk);
  ------------------
  |  |   81|    220|#define sk_X509_LOOKUP_free(sk) OPENSSL_sk_free(ossl_check_X509_LOOKUP_sk_type(sk))
  ------------------
  247|    220|    sk_X509_OBJECT_pop_free(xs->objs, X509_OBJECT_free);
  ------------------
  |  |  115|    220|#define sk_X509_OBJECT_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_OBJECT_sk_type(sk), ossl_check_X509_OBJECT_freefunc_type(freefunc))
  ------------------
  248|       |
  249|    220|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509_STORE, xs, &xs->ex_data);
  ------------------
  |  |  254|    220|#define CRYPTO_EX_INDEX_X509_STORE 4
  ------------------
  250|    220|    X509_VERIFY_PARAM_free(xs->param);
  251|    220|    CRYPTO_THREAD_lock_free(xs->lock);
  252|    220|    CRYPTO_FREE_REF(&xs->references);
  253|    220|    OPENSSL_free(xs);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  254|    220|}
X509_STORE_add_lookup:
  269|    438|{
  270|    438|    int i;
  271|    438|    STACK_OF(X509_LOOKUP) *sk;
  ------------------
  |  |   33|    438|#define STACK_OF(type) struct stack_st_##type
  ------------------
  272|    438|    X509_LOOKUP *lu;
  273|       |
  274|    438|    sk = xs->get_cert_methods;
  275|    657|    for (i = 0; i < sk_X509_LOOKUP_num(sk); i++) {
  ------------------
  |  |   75|    657|#define sk_X509_LOOKUP_num(sk) OPENSSL_sk_num(ossl_check_const_X509_LOOKUP_sk_type(sk))
  ------------------
  |  Branch (275:17): [True: 219, False: 438]
  ------------------
  276|    219|        lu = sk_X509_LOOKUP_value(sk, i);
  ------------------
  |  |   76|    219|#define sk_X509_LOOKUP_value(sk, idx) ((X509_LOOKUP *)OPENSSL_sk_value(ossl_check_const_X509_LOOKUP_sk_type(sk), (idx)))
  ------------------
  277|    219|        if (m == lu->method) {
  ------------------
  |  Branch (277:13): [True: 0, False: 219]
  ------------------
  278|      0|            return lu;
  279|      0|        }
  280|    219|    }
  281|       |    /* a new one */
  282|    438|    lu = X509_LOOKUP_new(m);
  283|    438|    if (lu == NULL) {
  ------------------
  |  Branch (283:9): [True: 0, False: 438]
  ------------------
  284|      0|        ERR_raise(ERR_LIB_X509, ERR_R_X509_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  285|      0|        return NULL;
  286|      0|    }
  287|       |
  288|    438|    lu->store_ctx = xs;
  289|    438|    if (sk_X509_LOOKUP_push(xs->get_cert_methods, lu))
  ------------------
  |  |   85|    438|#define sk_X509_LOOKUP_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_LOOKUP_sk_type(sk), ossl_check_X509_LOOKUP_type(ptr))
  |  |  ------------------
  |  |  |  Branch (85:38): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  290|    438|        return lu;
  291|       |    /* sk_X509_LOOKUP_push() failed */
  292|    438|    ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  293|      0|    X509_LOOKUP_free(lu);
  294|       |    return NULL;
  295|    438|}
X509_STORE_add_cert:
  430|  31.9k|{
  431|  31.9k|    if (!x509_store_add(xs, x, 0)) {
  ------------------
  |  Branch (431:9): [True: 0, False: 31.9k]
  ------------------
  432|      0|        ERR_raise(ERR_LIB_X509, ERR_R_X509_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  433|      0|        return 0;
  434|      0|    }
  435|  31.9k|    return 1;
  436|  31.9k|}
X509_OBJECT_up_ref_count:
  448|  31.9k|{
  449|  31.9k|    switch (a->type) {
  ------------------
  |  Branch (449:13): [True: 31.9k, False: 0]
  ------------------
  450|      0|    case X509_LU_NONE:
  ------------------
  |  Branch (450:5): [True: 0, False: 31.9k]
  ------------------
  451|      0|        break;
  452|  31.9k|    case X509_LU_X509:
  ------------------
  |  Branch (452:5): [True: 31.9k, False: 0]
  ------------------
  453|  31.9k|        return X509_up_ref(a->data.x509);
  454|      0|    case X509_LU_CRL:
  ------------------
  |  Branch (454:5): [True: 0, False: 31.9k]
  ------------------
  455|      0|        return X509_CRL_up_ref(a->data.crl);
  456|  31.9k|    }
  457|      0|    return 1;
  458|  31.9k|}
X509_OBJECT_new:
  480|  31.9k|{
  481|  31.9k|    X509_OBJECT *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  482|       |
  483|  31.9k|    if (ret == NULL)
  ------------------
  |  Branch (483:9): [True: 0, False: 31.9k]
  ------------------
  484|      0|        return NULL;
  485|  31.9k|    ret->type = X509_LU_NONE;
  486|  31.9k|    return ret;
  487|  31.9k|}
X509_OBJECT_free:
  528|  31.9k|{
  529|  31.9k|    x509_object_free_internal(a);
  530|  31.9k|    OPENSSL_free(a);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  531|  31.9k|}
X509_OBJECT_retrieve_match:
  751|  31.9k|{
  752|  31.9k|    int idx, i, num;
  753|  31.9k|    X509_OBJECT *obj;
  754|       |
  755|  31.9k|    idx = sk_X509_OBJECT_find(h, x);
  ------------------
  |  |  118|  31.9k|#define sk_X509_OBJECT_find(sk, ptr) OPENSSL_sk_find(ossl_check_X509_OBJECT_sk_type(sk), ossl_check_X509_OBJECT_type(ptr))
  ------------------
  756|  31.9k|    if (idx < 0)
  ------------------
  |  Branch (756:9): [True: 31.9k, False: 0]
  ------------------
  757|  31.9k|        return NULL;
  758|      0|    if ((x->type != X509_LU_X509) && (x->type != X509_LU_CRL))
  ------------------
  |  Branch (758:9): [True: 0, False: 0]
  |  Branch (758:38): [True: 0, False: 0]
  ------------------
  759|      0|        return sk_X509_OBJECT_value(h, idx);
  ------------------
  |  |  102|      0|#define sk_X509_OBJECT_value(sk, idx) ((X509_OBJECT *)OPENSSL_sk_value(ossl_check_const_X509_OBJECT_sk_type(sk), (idx)))
  ------------------
  760|      0|    for (i = idx, num = sk_X509_OBJECT_num(h); i < num; i++) {
  ------------------
  |  |  101|      0|#define sk_X509_OBJECT_num(sk) OPENSSL_sk_num(ossl_check_const_X509_OBJECT_sk_type(sk))
  ------------------
  |  Branch (760:48): [True: 0, False: 0]
  ------------------
  761|      0|        obj = sk_X509_OBJECT_value(h, i);
  ------------------
  |  |  102|      0|#define sk_X509_OBJECT_value(sk, idx) ((X509_OBJECT *)OPENSSL_sk_value(ossl_check_const_X509_OBJECT_sk_type(sk), (idx)))
  ------------------
  762|      0|        if (x509_object_cmp((const X509_OBJECT **)&obj,
  ------------------
  |  Branch (762:13): [True: 0, False: 0]
  ------------------
  763|      0|                (const X509_OBJECT **)&x))
  764|      0|            return NULL;
  765|      0|        if (x->type == X509_LU_X509) {
  ------------------
  |  Branch (765:13): [True: 0, False: 0]
  ------------------
  766|      0|            if (!X509_cmp(obj->data.x509, x->data.x509))
  ------------------
  |  Branch (766:17): [True: 0, False: 0]
  ------------------
  767|      0|                return obj;
  768|      0|        } else if (x->type == X509_LU_CRL) {
  ------------------
  |  Branch (768:20): [True: 0, False: 0]
  ------------------
  769|      0|            if (X509_CRL_match(obj->data.crl, x->data.crl) == 0)
  ------------------
  |  Branch (769:17): [True: 0, False: 0]
  ------------------
  770|      0|                return obj;
  771|      0|        } else {
  772|      0|            return obj;
  773|      0|        }
  774|      0|    }
  775|      0|    return NULL;
  776|      0|}
X509_STORE_set_flags:
  779|    219|{
  780|    219|    return X509_VERIFY_PARAM_set_flags(xs->param, flags);
  781|    219|}
x509_lu.c:x509_object_cmp:
  162|  2.31M|{
  163|  2.31M|    int ret;
  164|       |
  165|  2.31M|    ret = ((*a)->type - (*b)->type);
  166|  2.31M|    if (ret)
  ------------------
  |  Branch (166:9): [True: 0, False: 2.31M]
  ------------------
  167|      0|        return ret;
  168|  2.31M|    switch ((*a)->type) {
  ------------------
  |  Branch (168:13): [True: 2.31M, False: 0]
  ------------------
  169|  2.31M|    case X509_LU_X509:
  ------------------
  |  Branch (169:5): [True: 2.31M, False: 0]
  ------------------
  170|  2.31M|        ret = X509_subject_name_cmp((*a)->data.x509, (*b)->data.x509);
  171|  2.31M|        break;
  172|      0|    case X509_LU_CRL:
  ------------------
  |  Branch (172:5): [True: 0, False: 2.31M]
  ------------------
  173|      0|        ret = X509_CRL_cmp((*a)->data.crl, (*b)->data.crl);
  174|      0|        break;
  175|      0|    case X509_LU_NONE:
  ------------------
  |  Branch (175:5): [True: 0, False: 2.31M]
  ------------------
  176|       |        /* abort(); */
  177|      0|        return 0;
  178|  2.31M|    }
  179|  2.31M|    return ret;
  180|  2.31M|}
x509_lu.c:x509_store_add:
  387|  31.9k|{
  388|  31.9k|    X509_OBJECT *obj;
  389|  31.9k|    int ret = 0, added = 0;
  390|       |
  391|  31.9k|    if (x == NULL)
  ------------------
  |  Branch (391:9): [True: 0, False: 31.9k]
  ------------------
  392|      0|        return 0;
  393|  31.9k|    obj = X509_OBJECT_new();
  394|  31.9k|    if (obj == NULL)
  ------------------
  |  Branch (394:9): [True: 0, False: 31.9k]
  ------------------
  395|      0|        return 0;
  396|       |
  397|  31.9k|    if (crl) {
  ------------------
  |  Branch (397:9): [True: 0, False: 31.9k]
  ------------------
  398|      0|        obj->type = X509_LU_CRL;
  399|      0|        obj->data.crl = (X509_CRL *)x;
  400|  31.9k|    } else {
  401|  31.9k|        obj->type = X509_LU_X509;
  402|  31.9k|        obj->data.x509 = (X509 *)x;
  403|  31.9k|    }
  404|  31.9k|    if (!X509_OBJECT_up_ref_count(obj)) {
  ------------------
  |  Branch (404:9): [True: 0, False: 31.9k]
  ------------------
  405|      0|        obj->type = X509_LU_NONE;
  406|      0|        X509_OBJECT_free(obj);
  407|      0|        return 0;
  408|      0|    }
  409|       |
  410|  31.9k|    if (!X509_STORE_lock(store)) {
  ------------------
  |  Branch (410:9): [True: 0, False: 31.9k]
  ------------------
  411|      0|        X509_OBJECT_free(obj);
  412|      0|        return 0;
  413|      0|    }
  414|       |
  415|  31.9k|    if (X509_OBJECT_retrieve_match(store->objs, obj)) {
  ------------------
  |  Branch (415:9): [True: 0, False: 31.9k]
  ------------------
  416|      0|        ret = 1;
  417|  31.9k|    } else {
  418|  31.9k|        added = sk_X509_OBJECT_push(store->objs, obj);
  ------------------
  |  |  111|  31.9k|#define sk_X509_OBJECT_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_OBJECT_sk_type(sk), ossl_check_X509_OBJECT_type(ptr))
  ------------------
  419|  31.9k|        ret = added != 0;
  420|  31.9k|    }
  421|  31.9k|    X509_STORE_unlock(store);
  422|       |
  423|  31.9k|    if (added == 0) /* obj not pushed */
  ------------------
  |  Branch (423:9): [True: 0, False: 31.9k]
  ------------------
  424|      0|        X509_OBJECT_free(obj);
  425|       |
  426|  31.9k|    return ret;
  427|  31.9k|}
x509_lu.c:x509_object_free_internal:
  490|  31.9k|{
  491|  31.9k|    if (a == NULL)
  ------------------
  |  Branch (491:9): [True: 0, False: 31.9k]
  ------------------
  492|      0|        return;
  493|  31.9k|    switch (a->type) {
  ------------------
  |  Branch (493:13): [True: 31.9k, False: 0]
  ------------------
  494|      0|    case X509_LU_NONE:
  ------------------
  |  Branch (494:5): [True: 0, False: 31.9k]
  ------------------
  495|      0|        break;
  496|  31.9k|    case X509_LU_X509:
  ------------------
  |  Branch (496:5): [True: 31.9k, False: 0]
  ------------------
  497|  31.9k|        X509_free(a->data.x509);
  498|  31.9k|        break;
  499|      0|    case X509_LU_CRL:
  ------------------
  |  Branch (499:5): [True: 0, False: 31.9k]
  ------------------
  500|      0|        X509_CRL_free(a->data.crl);
  501|      0|        break;
  502|  31.9k|    }
  503|  31.9k|}

X509_up_ref:
  121|  31.9k|{
  122|  31.9k|    int i;
  123|       |
  124|  31.9k|    if (CRYPTO_UP_REF(&x->references, &i) <= 0)
  ------------------
  |  Branch (124:9): [True: 0, False: 31.9k]
  ------------------
  125|      0|        return 0;
  126|       |
  127|  31.9k|    REF_PRINT_COUNT("X509", i, x);
  ------------------
  |  |  301|  31.9k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  31.9k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|  31.9k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|  31.9k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  128|  31.9k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  31.9k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 31.9k]
  |  |  ------------------
  ------------------
  129|  31.9k|    return i > 1;
  130|  31.9k|}

X509_VERIFY_PARAM_new:
   82|    660|{
   83|    660|    X509_VERIFY_PARAM *param;
   84|       |
   85|    660|    param = OPENSSL_zalloc(sizeof(*param));
  ------------------
  |  |  108|    660|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   86|    660|    if (param == NULL)
  ------------------
  |  Branch (86:9): [True: 0, False: 660]
  ------------------
   87|      0|        return NULL;
   88|    660|    param->trust = X509_TRUST_DEFAULT;
  ------------------
  |  |  195|    660|#define X509_TRUST_DEFAULT 0 /* Only valid in purpose settings */
  ------------------
   89|       |    /* param->inh_flags = X509_VP_FLAG_DEFAULT; */
   90|    660|    param->depth = -1;
   91|    660|    param->auth_level = -1; /* -1 means unset, 0 is explicit */
   92|    660|    return param;
   93|    660|}
X509_VERIFY_PARAM_free:
   96|    660|{
   97|    660|    if (param == NULL)
  ------------------
  |  Branch (97:9): [True: 0, False: 660]
  ------------------
   98|      0|        return;
   99|    660|    sk_ASN1_OBJECT_pop_free(param->policies, ASN1_OBJECT_free);
  ------------------
  |  |  636|    660|#define sk_ASN1_OBJECT_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_ASN1_OBJECT_sk_type(sk), ossl_check_ASN1_OBJECT_freefunc_type(freefunc))
  ------------------
  100|    660|    sk_OPENSSL_STRING_pop_free(param->hosts, str_free);
  ------------------
  |  |  246|    660|#define sk_OPENSSL_STRING_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_OPENSSL_STRING_sk_type(sk), ossl_check_OPENSSL_STRING_freefunc_type(freefunc))
  ------------------
  101|    660|    OPENSSL_free(param->peername);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  102|    660|    OPENSSL_free(param->email);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  103|    660|    OPENSSL_free(param->ip);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  104|    660|    OPENSSL_free(param);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  105|    660|}
X509_VERIFY_PARAM_inherit:
  152|    220|{
  153|    220|    unsigned long inh_flags;
  154|    220|    int to_default, to_overwrite;
  155|       |
  156|    220|    if (src == NULL)
  ------------------
  |  Branch (156:9): [True: 0, False: 220]
  ------------------
  157|      0|        return 1;
  158|    220|    inh_flags = dest->inh_flags | src->inh_flags;
  159|       |
  160|    220|    if ((inh_flags & X509_VP_FLAG_ONCE) != 0)
  ------------------
  |  |  493|    220|#define X509_VP_FLAG_ONCE 0x10
  ------------------
  |  Branch (160:9): [True: 0, False: 220]
  ------------------
  161|      0|        dest->inh_flags = 0;
  162|       |
  163|    220|    if ((inh_flags & X509_VP_FLAG_LOCKED) != 0)
  ------------------
  |  |  492|    220|#define X509_VP_FLAG_LOCKED 0x8
  ------------------
  |  Branch (163:9): [True: 0, False: 220]
  ------------------
  164|      0|        return 1;
  165|       |
  166|    220|    to_default = (inh_flags & X509_VP_FLAG_DEFAULT) != 0;
  ------------------
  |  |  489|    220|#define X509_VP_FLAG_DEFAULT 0x1
  ------------------
  167|    220|    to_overwrite = (inh_flags & X509_VP_FLAG_OVERWRITE) != 0;
  ------------------
  |  |  490|    220|#define X509_VP_FLAG_OVERWRITE 0x2
  ------------------
  168|       |
  169|    220|    x509_verify_param_copy(purpose, 0);
  ------------------
  |  |  147|    220|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  148|    220|        dest->field = src->field;
  ------------------
  170|    220|    x509_verify_param_copy(trust, X509_TRUST_DEFAULT);
  ------------------
  |  |  147|    220|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  148|    220|        dest->field = src->field;
  ------------------
  171|    220|    x509_verify_param_copy(depth, -1);
  ------------------
  |  |  147|    220|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  148|    220|        dest->field = src->field;
  ------------------
  172|    220|    x509_verify_param_copy(auth_level, -1);
  ------------------
  |  |  147|    220|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  148|    220|        dest->field = src->field;
  ------------------
  173|       |
  174|       |    /* If overwrite or check time not set, copy across */
  175|       |
  176|    220|    if (to_overwrite || (dest->flags & X509_V_FLAG_USE_CHECK_TIME) == 0) {
  ------------------
  |  |  438|    220|#define X509_V_FLAG_USE_CHECK_TIME 0x2
  ------------------
  |  Branch (176:9): [True: 0, False: 220]
  |  Branch (176:25): [True: 220, False: 0]
  ------------------
  177|    220|        dest->check_time = src->check_time;
  178|    220|        dest->flags &= ~X509_V_FLAG_USE_CHECK_TIME;
  ------------------
  |  |  438|    220|#define X509_V_FLAG_USE_CHECK_TIME 0x2
  ------------------
  179|       |        /* Don't need to copy flag: that is done below */
  180|    220|    }
  181|       |
  182|    220|    if ((inh_flags & X509_VP_FLAG_RESET_FLAGS) != 0)
  ------------------
  |  |  491|    220|#define X509_VP_FLAG_RESET_FLAGS 0x4
  ------------------
  |  Branch (182:9): [True: 0, False: 220]
  ------------------
  183|      0|        dest->flags = 0;
  184|       |
  185|    220|    dest->flags |= src->flags;
  186|       |
  187|    220|    if (test_x509_verify_param_copy(policies, NULL)) {
  ------------------
  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  188|      0|        if (!X509_VERIFY_PARAM_set1_policies(dest, src->policies))
  ------------------
  |  Branch (188:13): [True: 0, False: 0]
  ------------------
  189|      0|            return 0;
  190|      0|    }
  191|       |
  192|    220|    x509_verify_param_copy(hostflags, 0);
  ------------------
  |  |  147|    220|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  148|    220|        dest->field = src->field;
  ------------------
  193|       |
  194|    220|    if (test_x509_verify_param_copy(hosts, NULL)) {
  ------------------
  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  195|      0|        sk_OPENSSL_STRING_pop_free(dest->hosts, str_free);
  ------------------
  |  |  246|      0|#define sk_OPENSSL_STRING_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_OPENSSL_STRING_sk_type(sk), ossl_check_OPENSSL_STRING_freefunc_type(freefunc))
  ------------------
  196|      0|        dest->hosts = NULL;
  197|      0|        if (src->hosts != NULL) {
  ------------------
  |  Branch (197:13): [True: 0, False: 0]
  ------------------
  198|      0|            dest->hosts = sk_OPENSSL_STRING_deep_copy(src->hosts, str_copy, str_free);
  ------------------
  |  |  255|      0|#define sk_OPENSSL_STRING_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(OPENSSL_STRING) *)OPENSSL_sk_deep_copy(ossl_check_const_OPENSSL_STRING_sk_type(sk), ossl_check_OPENSSL_STRING_copyfunc_type(copyfunc), ossl_check_OPENSSL_STRING_freefunc_type(freefunc)))
  ------------------
  199|      0|            if (dest->hosts == NULL)
  ------------------
  |  Branch (199:17): [True: 0, False: 0]
  ------------------
  200|      0|                return 0;
  201|      0|        }
  202|      0|    }
  203|       |
  204|    220|    if (test_x509_verify_param_copy(email, NULL)) {
  ------------------
  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  205|      0|        if (!X509_VERIFY_PARAM_set1_email(dest, src->email, src->emaillen))
  ------------------
  |  Branch (205:13): [True: 0, False: 0]
  ------------------
  206|      0|            return 0;
  207|      0|    }
  208|       |
  209|    220|    if (test_x509_verify_param_copy(ip, NULL)) {
  ------------------
  |  |  142|    220|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (142:6): [True: 0, False: 220]
  |  |  |  Branch (142:23): [True: 0, False: 220]
  |  |  |  Branch (142:45): [True: 0, False: 0]
  |  |  |  Branch (142:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  210|      0|        if (!X509_VERIFY_PARAM_set1_ip(dest, src->ip, src->iplen))
  ------------------
  |  Branch (210:13): [True: 0, False: 0]
  ------------------
  211|      0|            return 0;
  212|      0|    }
  213|       |
  214|    220|    return 1;
  215|    220|}
X509_VERIFY_PARAM_set_flags:
  267|    219|{
  268|    219|    param->flags |= flags;
  269|    219|    if ((flags & X509_V_FLAG_POLICY_MASK) != 0)
  ------------------
  |  |  496|    219|#define X509_V_FLAG_POLICY_MASK (X509_V_FLAG_POLICY_CHECK \
  |  |  ------------------
  |  |  |  |  450|    219|#define X509_V_FLAG_POLICY_CHECK 0x80
  |  |  ------------------
  |  |  497|    219|    | X509_V_FLAG_EXPLICIT_POLICY                         \
  |  |  ------------------
  |  |  |  |  452|    219|#define X509_V_FLAG_EXPLICIT_POLICY 0x100
  |  |  ------------------
  |  |  498|    219|    | X509_V_FLAG_INHIBIT_ANY                             \
  |  |  ------------------
  |  |  |  |  454|    219|#define X509_V_FLAG_INHIBIT_ANY 0x200
  |  |  ------------------
  |  |  499|    219|    | X509_V_FLAG_INHIBIT_MAP)
  |  |  ------------------
  |  |  |  |  456|    219|#define X509_V_FLAG_INHIBIT_MAP 0x400
  |  |  ------------------
  ------------------
  |  Branch (269:9): [True: 0, False: 219]
  ------------------
  270|      0|        param->flags |= X509_V_FLAG_POLICY_CHECK;
  ------------------
  |  |  450|      0|#define X509_V_FLAG_POLICY_CHECK 0x80
  ------------------
  271|    219|    return 1;
  272|    219|}
X509_VERIFY_PARAM_move_peername:
  423|    439|{
  424|    439|    char *peername = (from != NULL) ? from->peername : NULL;
  ------------------
  |  Branch (424:22): [True: 0, False: 439]
  ------------------
  425|       |
  426|    439|    if (to->peername != peername) {
  ------------------
  |  Branch (426:9): [True: 0, False: 439]
  ------------------
  427|      0|        OPENSSL_free(to->peername);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  428|      0|        to->peername = peername;
  429|      0|    }
  430|    439|    if (from != NULL)
  ------------------
  |  Branch (430:9): [True: 0, False: 439]
  ------------------
  431|      0|        from->peername = NULL;
  432|    439|}

x_name.c:x509_name_ex_new:
   91|   127k|{
   92|   127k|    X509_NAME *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|   127k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   93|       |
   94|   127k|    if (ret == NULL)
  ------------------
  |  Branch (94:9): [True: 0, False: 127k]
  ------------------
   95|      0|        return 0;
   96|   127k|    if ((ret->entries = sk_X509_NAME_ENTRY_new_null()) == NULL) {
  ------------------
  |  |  212|   127k|#define sk_X509_NAME_ENTRY_new_null() ((STACK_OF(X509_NAME_ENTRY) *)OPENSSL_sk_new_null())
  ------------------
  |  Branch (96:9): [True: 0, False: 127k]
  ------------------
   97|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   98|      0|        goto err;
   99|      0|    }
  100|   127k|    if ((ret->bytes = BUF_MEM_new()) == NULL) {
  ------------------
  |  Branch (100:9): [True: 0, False: 127k]
  ------------------
  101|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_BUF_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  102|      0|        goto err;
  103|      0|    }
  104|   127k|    ret->modified = 1;
  105|   127k|    *val = (ASN1_VALUE *)ret;
  106|   127k|    return 1;
  107|       |
  108|      0|err:
  109|      0|    if (ret) {
  ------------------
  |  Branch (109:9): [True: 0, False: 0]
  ------------------
  110|      0|        sk_X509_NAME_ENTRY_free(ret->entries);
  ------------------
  |  |  215|      0|#define sk_X509_NAME_ENTRY_free(sk) OPENSSL_sk_free(ossl_check_X509_NAME_ENTRY_sk_type(sk))
  ------------------
  111|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  112|      0|    }
  113|      0|    return 0;
  114|   127k|}
x_name.c:x509_name_ex_free:
  117|   127k|{
  118|   127k|    X509_NAME *a;
  119|       |
  120|   127k|    if (pval == NULL || *pval == NULL)
  ------------------
  |  Branch (120:9): [True: 0, False: 127k]
  |  Branch (120:25): [True: 0, False: 127k]
  ------------------
  121|      0|        return;
  122|   127k|    a = (X509_NAME *)*pval;
  123|       |
  124|   127k|    BUF_MEM_free(a->bytes);
  125|   127k|    sk_X509_NAME_ENTRY_pop_free(a->entries, X509_NAME_ENTRY_free);
  ------------------
  |  |  223|   127k|#define sk_X509_NAME_ENTRY_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_ENTRY_sk_type(sk), ossl_check_X509_NAME_ENTRY_freefunc_type(freefunc))
  ------------------
  126|   127k|    OPENSSL_free(a->canon_enc);
  ------------------
  |  |  131|   127k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  127|   127k|    OPENSSL_free(a);
  ------------------
  |  |  131|   127k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  128|       |    *pval = NULL;
  129|   127k|}
x_name.c:x509_name_ex_d2i:
  145|  63.9k|{
  146|  63.9k|    const unsigned char *p = *in, *q;
  147|  63.9k|    union {
  148|  63.9k|        STACK_OF(STACK_OF_X509_NAME_ENTRY) *s;
  149|  63.9k|        ASN1_VALUE *a;
  150|  63.9k|    } intname = {
  151|  63.9k|        NULL
  152|  63.9k|    };
  153|  63.9k|    union {
  154|  63.9k|        X509_NAME *x;
  155|  63.9k|        ASN1_VALUE *a;
  156|  63.9k|    } nm = {
  157|  63.9k|        NULL
  158|  63.9k|    };
  159|  63.9k|    int i, j, ret;
  160|  63.9k|    STACK_OF(X509_NAME_ENTRY) *entries;
  ------------------
  |  |   33|  63.9k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  161|  63.9k|    X509_NAME_ENTRY *entry;
  162|       |
  163|  63.9k|    if (len > X509_NAME_MAX)
  ------------------
  |  |   24|  63.9k|#define X509_NAME_MAX (1024 * 1024)
  ------------------
  |  Branch (163:9): [True: 0, False: 63.9k]
  ------------------
  164|      0|        len = X509_NAME_MAX;
  ------------------
  |  |   24|      0|#define X509_NAME_MAX (1024 * 1024)
  ------------------
  165|  63.9k|    q = p;
  166|       |
  167|       |    /* Get internal representation of Name */
  168|  63.9k|    ret = ASN1_item_ex_d2i(&intname.a,
  169|  63.9k|        &p, len, ASN1_ITEM_rptr(X509_NAME_INTERNAL),
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  170|  63.9k|        tag, aclass, opt, ctx);
  171|       |
  172|  63.9k|    if (ret <= 0)
  ------------------
  |  Branch (172:9): [True: 0, False: 63.9k]
  ------------------
  173|      0|        return ret;
  174|       |
  175|  63.9k|    if (*val)
  ------------------
  |  Branch (175:9): [True: 63.9k, False: 0]
  ------------------
  176|  63.9k|        x509_name_ex_free(val, NULL);
  177|  63.9k|    if (!x509_name_ex_new(&nm.a, NULL))
  ------------------
  |  Branch (177:9): [True: 0, False: 63.9k]
  ------------------
  178|      0|        goto err;
  179|       |    /* We've decoded it: now cache encoding */
  180|  63.9k|    if (!BUF_MEM_grow(nm.x->bytes, p - q))
  ------------------
  |  Branch (180:9): [True: 0, False: 63.9k]
  ------------------
  181|      0|        goto err;
  182|  63.9k|    memcpy(nm.x->bytes->data, q, p - q);
  183|       |
  184|       |    /* Convert internal representation to X509_NAME structure */
  185|   292k|    for (i = 0; i < sk_STACK_OF_X509_NAME_ENTRY_num(intname.s); i++) {
  ------------------
  |  Branch (185:17): [True: 228k, False: 63.9k]
  ------------------
  186|   228k|        entries = sk_STACK_OF_X509_NAME_ENTRY_value(intname.s, i);
  187|   457k|        for (j = 0; j < sk_X509_NAME_ENTRY_num(entries); j++) {
  ------------------
  |  |  209|   457k|#define sk_X509_NAME_ENTRY_num(sk) OPENSSL_sk_num(ossl_check_const_X509_NAME_ENTRY_sk_type(sk))
  ------------------
  |  Branch (187:21): [True: 228k, False: 228k]
  ------------------
  188|   228k|            entry = sk_X509_NAME_ENTRY_value(entries, j);
  ------------------
  |  |  210|   228k|#define sk_X509_NAME_ENTRY_value(sk, idx) ((X509_NAME_ENTRY *)OPENSSL_sk_value(ossl_check_const_X509_NAME_ENTRY_sk_type(sk), (idx)))
  ------------------
  189|   228k|            entry->set = i;
  190|   228k|            if (!sk_X509_NAME_ENTRY_push(nm.x->entries, entry))
  ------------------
  |  |  219|   228k|#define sk_X509_NAME_ENTRY_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_NAME_ENTRY_sk_type(sk), ossl_check_X509_NAME_ENTRY_type(ptr))
  ------------------
  |  Branch (190:17): [True: 0, False: 228k]
  ------------------
  191|      0|                goto err;
  192|   228k|            (void)sk_X509_NAME_ENTRY_set(entries, j, NULL);
  ------------------
  |  |  225|   228k|#define sk_X509_NAME_ENTRY_set(sk, idx, ptr) ((X509_NAME_ENTRY *)OPENSSL_sk_set(ossl_check_X509_NAME_ENTRY_sk_type(sk), (idx), ossl_check_X509_NAME_ENTRY_type(ptr)))
  ------------------
  193|   228k|        }
  194|   228k|    }
  195|  63.9k|    ret = x509_name_canon(nm.x);
  196|  63.9k|    if (!ret)
  ------------------
  |  Branch (196:9): [True: 0, False: 63.9k]
  ------------------
  197|      0|        goto err;
  198|  63.9k|    sk_STACK_OF_X509_NAME_ENTRY_pop_free(intname.s,
  199|  63.9k|        local_sk_X509_NAME_ENTRY_free);
  200|  63.9k|    nm.x->modified = 0;
  201|  63.9k|    *val = nm.a;
  202|  63.9k|    *in = p;
  203|  63.9k|    return ret;
  204|       |
  205|      0|err:
  206|      0|    if (nm.x != NULL)
  ------------------
  |  Branch (206:9): [True: 0, False: 0]
  ------------------
  207|      0|        X509_NAME_free(nm.x);
  208|      0|    sk_STACK_OF_X509_NAME_ENTRY_pop_free(intname.s,
  209|      0|        local_sk_X509_NAME_ENTRY_pop_free);
  210|       |    ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  211|      0|    return 0;
  212|  63.9k|}
x_name.c:x509_name_canon:
  312|  63.9k|{
  313|  63.9k|    unsigned char *p;
  314|  63.9k|    STACK_OF(STACK_OF_X509_NAME_ENTRY) *intname;
  ------------------
  |  |   33|  63.9k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  315|  63.9k|    STACK_OF(X509_NAME_ENTRY) *entries = NULL;
  ------------------
  |  |   33|  63.9k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  316|  63.9k|    X509_NAME_ENTRY *entry, *tmpentry = NULL;
  317|  63.9k|    int i, set = -1, ret = 0, len;
  318|       |
  319|  63.9k|    OPENSSL_free(a->canon_enc);
  ------------------
  |  |  131|  63.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  320|  63.9k|    a->canon_enc = NULL;
  321|       |    /* Special case: empty X509_NAME => null encoding */
  322|  63.9k|    if (sk_X509_NAME_ENTRY_num(a->entries) == 0) {
  ------------------
  |  |  209|  63.9k|#define sk_X509_NAME_ENTRY_num(sk) OPENSSL_sk_num(ossl_check_const_X509_NAME_ENTRY_sk_type(sk))
  ------------------
  |  Branch (322:9): [True: 0, False: 63.9k]
  ------------------
  323|      0|        a->canon_enclen = 0;
  324|      0|        return 1;
  325|      0|    }
  326|  63.9k|    intname = sk_STACK_OF_X509_NAME_ENTRY_new_null();
  327|  63.9k|    if (intname == NULL) {
  ------------------
  |  Branch (327:9): [True: 0, False: 63.9k]
  ------------------
  328|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  329|      0|        goto err;
  330|      0|    }
  331|   292k|    for (i = 0; i < sk_X509_NAME_ENTRY_num(a->entries); i++) {
  ------------------
  |  |  209|   292k|#define sk_X509_NAME_ENTRY_num(sk) OPENSSL_sk_num(ossl_check_const_X509_NAME_ENTRY_sk_type(sk))
  ------------------
  |  Branch (331:17): [True: 228k, False: 63.9k]
  ------------------
  332|   228k|        entry = sk_X509_NAME_ENTRY_value(a->entries, i);
  ------------------
  |  |  210|   228k|#define sk_X509_NAME_ENTRY_value(sk, idx) ((X509_NAME_ENTRY *)OPENSSL_sk_value(ossl_check_const_X509_NAME_ENTRY_sk_type(sk), (idx)))
  ------------------
  333|   228k|        if (entry->set != set) {
  ------------------
  |  Branch (333:13): [True: 228k, False: 0]
  ------------------
  334|   228k|            entries = sk_X509_NAME_ENTRY_new_null();
  ------------------
  |  |  212|   228k|#define sk_X509_NAME_ENTRY_new_null() ((STACK_OF(X509_NAME_ENTRY) *)OPENSSL_sk_new_null())
  ------------------
  335|   228k|            if (entries == NULL)
  ------------------
  |  Branch (335:17): [True: 0, False: 228k]
  ------------------
  336|      0|                goto err;
  337|   228k|            if (!sk_STACK_OF_X509_NAME_ENTRY_push(intname, entries)) {
  ------------------
  |  Branch (337:17): [True: 0, False: 228k]
  ------------------
  338|      0|                sk_X509_NAME_ENTRY_free(entries);
  ------------------
  |  |  215|      0|#define sk_X509_NAME_ENTRY_free(sk) OPENSSL_sk_free(ossl_check_X509_NAME_ENTRY_sk_type(sk))
  ------------------
  339|      0|                ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  340|      0|                goto err;
  341|      0|            }
  342|   228k|            set = entry->set;
  343|   228k|        }
  344|   228k|        tmpentry = X509_NAME_ENTRY_new();
  345|   228k|        if (tmpentry == NULL) {
  ------------------
  |  Branch (345:13): [True: 0, False: 228k]
  ------------------
  346|      0|            ERR_raise(ERR_LIB_X509, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  347|      0|            goto err;
  348|      0|        }
  349|   228k|        tmpentry->object = OBJ_dup(entry->object);
  350|   228k|        if (tmpentry->object == NULL) {
  ------------------
  |  Branch (350:13): [True: 0, False: 228k]
  ------------------
  351|      0|            ERR_raise(ERR_LIB_X509, ERR_R_OBJ_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  352|      0|            goto err;
  353|      0|        }
  354|   228k|        if (!asn1_string_canon(tmpentry->value, entry->value))
  ------------------
  |  Branch (354:13): [True: 0, False: 228k]
  ------------------
  355|      0|            goto err;
  356|   228k|        if (!sk_X509_NAME_ENTRY_push(entries, tmpentry)) {
  ------------------
  |  |  219|   228k|#define sk_X509_NAME_ENTRY_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_NAME_ENTRY_sk_type(sk), ossl_check_X509_NAME_ENTRY_type(ptr))
  ------------------
  |  Branch (356:13): [True: 0, False: 228k]
  ------------------
  357|      0|            ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  358|      0|            goto err;
  359|      0|        }
  360|   228k|        tmpentry = NULL;
  361|   228k|    }
  362|       |
  363|       |    /* Finally generate encoding */
  364|  63.9k|    len = i2d_name_canon(intname, NULL);
  365|  63.9k|    if (len < 0)
  ------------------
  |  Branch (365:9): [True: 0, False: 63.9k]
  ------------------
  366|      0|        goto err;
  367|  63.9k|    a->canon_enclen = len;
  368|       |
  369|  63.9k|    p = OPENSSL_malloc(a->canon_enclen);
  ------------------
  |  |  106|  63.9k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  370|  63.9k|    if (p == NULL)
  ------------------
  |  Branch (370:9): [True: 0, False: 63.9k]
  ------------------
  371|      0|        goto err;
  372|       |
  373|  63.9k|    a->canon_enc = p;
  374|       |
  375|  63.9k|    i2d_name_canon(intname, &p);
  376|       |
  377|  63.9k|    ret = 1;
  378|       |
  379|  63.9k|err:
  380|  63.9k|    X509_NAME_ENTRY_free(tmpentry);
  381|  63.9k|    sk_STACK_OF_X509_NAME_ENTRY_pop_free(intname,
  382|  63.9k|        local_sk_X509_NAME_ENTRY_pop_free);
  383|  63.9k|    return ret;
  384|  63.9k|}
x_name.c:asn1_string_canon:
  394|   228k|{
  395|   228k|    unsigned char *to, *from;
  396|   228k|    int len, i;
  397|       |
  398|       |    /* If type not in bitmask just copy string across */
  399|   228k|    if (!(ASN1_tag2bit(in->type) & ASN1_MASK_CANON)) {
  ------------------
  |  |  389|   228k|    (B_ASN1_UTF8STRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING     \
  |  |  ------------------
  |  |  |  |  119|   228k|#define B_ASN1_UTF8STRING 0x2000
  |  |  ------------------
  |  |                   (B_ASN1_UTF8STRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING     \
  |  |  ------------------
  |  |  |  |  117|   228k|#define B_ASN1_BMPSTRING 0x0800
  |  |  ------------------
  |  |                   (B_ASN1_UTF8STRING | B_ASN1_BMPSTRING | B_ASN1_UNIVERSALSTRING     \
  |  |  ------------------
  |  |  |  |  114|   228k|#define B_ASN1_UNIVERSALSTRING 0x0100
  |  |  ------------------
  |  |  390|   228k|        | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING \
  |  |  ------------------
  |  |  |  |  105|   228k|#define B_ASN1_PRINTABLESTRING 0x0002
  |  |  ------------------
  |  |                       | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING \
  |  |  ------------------
  |  |  |  |  106|   228k|#define B_ASN1_T61STRING 0x0004
  |  |  ------------------
  |  |                       | B_ASN1_PRINTABLESTRING | B_ASN1_T61STRING | B_ASN1_IA5STRING \
  |  |  ------------------
  |  |  |  |  109|   228k|#define B_ASN1_IA5STRING 0x0010
  |  |  ------------------
  |  |  391|   228k|        | B_ASN1_VISIBLESTRING)
  |  |  ------------------
  |  |  |  |  112|   228k|#define B_ASN1_VISIBLESTRING 0x0040
  |  |  ------------------
  ------------------
  |  Branch (399:9): [True: 0, False: 228k]
  ------------------
  400|      0|        if (!ASN1_STRING_copy(out, in))
  ------------------
  |  Branch (400:13): [True: 0, False: 0]
  ------------------
  401|      0|            return 0;
  402|      0|        return 1;
  403|      0|    }
  404|       |
  405|   228k|    out->type = V_ASN1_UTF8STRING;
  ------------------
  |  |   75|   228k|#define V_ASN1_UTF8STRING 12
  ------------------
  406|   228k|    out->length = ASN1_STRING_to_UTF8(&out->data, in);
  407|   228k|    if (out->length == -1)
  ------------------
  |  Branch (407:9): [True: 0, False: 228k]
  ------------------
  408|      0|        return 0;
  409|       |
  410|   228k|    to = out->data;
  411|   228k|    from = to;
  412|       |
  413|   228k|    len = out->length;
  414|       |
  415|       |    /*
  416|       |     * Convert string in place to canonical form. Ultimately we may need to
  417|       |     * handle a wider range of characters but for now ignore anything with
  418|       |     * MSB set and rely on the ossl_isspace() to fail on bad characters without
  419|       |     * needing isascii or range checks as well.
  420|       |     */
  421|       |
  422|       |    /* Ignore leading spaces */
  423|   228k|    while (len > 0 && ossl_isspace(*from)) {
  ------------------
  |  |   82|   228k|#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
  |  |  ------------------
  |  |  |  |   30|   228k|#define CTYPE_MASK_space 0x8
  |  |  ------------------
  |  |  |  Branch (82:25): [True: 0, False: 228k]
  |  |  ------------------
  ------------------
  |  Branch (423:12): [True: 228k, False: 0]
  ------------------
  424|      0|        from++;
  425|      0|        len--;
  426|      0|    }
  427|       |
  428|   228k|    to = from + len;
  429|       |
  430|       |    /* Ignore trailing spaces */
  431|   228k|    while (len > 0 && ossl_isspace(to[-1])) {
  ------------------
  |  |   82|   228k|#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
  |  |  ------------------
  |  |  |  |   30|   228k|#define CTYPE_MASK_space 0x8
  |  |  ------------------
  |  |  |  Branch (82:25): [True: 0, False: 228k]
  |  |  ------------------
  ------------------
  |  Branch (431:12): [True: 228k, False: 0]
  ------------------
  432|      0|        to--;
  433|      0|        len--;
  434|      0|    }
  435|       |
  436|   228k|    to = out->data;
  437|       |
  438|   228k|    i = 0;
  439|  3.87M|    while (i < len) {
  ------------------
  |  Branch (439:12): [True: 3.64M, False: 228k]
  ------------------
  440|       |        /* If not ASCII set just copy across */
  441|  3.64M|        if (!ossl_isascii(*from)) {
  ------------------
  |  |   75|  3.64M|#define ossl_isascii(c) (((c) & ~127) == 0)
  ------------------
  |  Branch (441:13): [True: 7.00k, False: 3.63M]
  ------------------
  442|  7.00k|            *to++ = *from++;
  443|  7.00k|            i++;
  444|  7.00k|        }
  445|       |        /* Collapse multiple spaces */
  446|  3.63M|        else if (ossl_isspace(*from)) {
  ------------------
  |  |   82|  3.63M|#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
  |  |  ------------------
  |  |  |  |   30|  3.63M|#define CTYPE_MASK_space 0x8
  |  |  ------------------
  |  |  |  Branch (82:25): [True: 351k, False: 3.28M]
  |  |  ------------------
  ------------------
  447|       |            /* Copy one space across */
  448|   351k|            *to++ = ' ';
  449|       |            /*
  450|       |             * Ignore subsequent spaces. Note: don't need to check len here
  451|       |             * because we know the last character is a non-space so we can't
  452|       |             * overflow.
  453|       |             */
  454|   351k|            do {
  455|   351k|                from++;
  456|   351k|                i++;
  457|   351k|            } while (ossl_isspace(*from));
  ------------------
  |  |   82|   351k|#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
  |  |  ------------------
  |  |  |  |   30|   351k|#define CTYPE_MASK_space 0x8
  |  |  ------------------
  |  |  |  Branch (82:25): [True: 0, False: 351k]
  |  |  ------------------
  ------------------
  458|  3.28M|        } else {
  459|  3.28M|            *to++ = ossl_tolower(*from);
  460|  3.28M|            from++;
  461|  3.28M|            i++;
  462|  3.28M|        }
  463|  3.64M|    }
  464|       |
  465|   228k|    out->length = (int)(to - out->data);
  466|       |
  467|   228k|    return 1;
  468|   228k|}
x_name.c:i2d_name_canon:
  472|   127k|{
  473|   127k|    int i, len, ltmp;
  474|   127k|    const ASN1_VALUE *v;
  475|   127k|    STACK_OF(ASN1_VALUE) *intname = (STACK_OF(ASN1_VALUE) *)_intname;
  ------------------
  |  |   33|   127k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  476|       |
  477|   127k|    len = 0;
  478|   585k|    for (i = 0; i < sk_ASN1_VALUE_num(intname); i++) {
  ------------------
  |  |  887|   585k|#define sk_ASN1_VALUE_num(sk) OPENSSL_sk_num(ossl_check_const_ASN1_VALUE_sk_type(sk))
  ------------------
  |  Branch (478:17): [True: 457k, False: 127k]
  ------------------
  479|   457k|        v = sk_ASN1_VALUE_value(intname, i);
  ------------------
  |  |  888|   457k|#define sk_ASN1_VALUE_value(sk, idx) ((ASN1_VALUE *)OPENSSL_sk_value(ossl_check_const_ASN1_VALUE_sk_type(sk), (idx)))
  ------------------
  480|   457k|        ltmp = ASN1_item_ex_i2d(&v, in,
  481|   457k|            ASN1_ITEM_rptr(X509_NAME_ENTRIES), -1, -1);
  ------------------
  |  |  433|   457k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  482|   457k|        if (ltmp < 0 || len > INT_MAX - ltmp)
  ------------------
  |  Branch (482:13): [True: 0, False: 457k]
  |  Branch (482:25): [True: 0, False: 457k]
  ------------------
  483|      0|            return -1;
  484|   457k|        len += ltmp;
  485|   457k|    }
  486|   127k|    return len;
  487|   127k|}
x_name.c:local_sk_X509_NAME_ENTRY_free:
  132|   228k|{
  133|   228k|    sk_X509_NAME_ENTRY_free(ne);
  ------------------
  |  |  215|   228k|#define sk_X509_NAME_ENTRY_free(sk) OPENSSL_sk_free(ossl_check_X509_NAME_ENTRY_sk_type(sk))
  ------------------
  134|   228k|}
x_name.c:local_sk_X509_NAME_ENTRY_pop_free:
  137|   228k|{
  138|   228k|    sk_X509_NAME_ENTRY_pop_free(ne, X509_NAME_ENTRY_free);
  ------------------
  |  |  223|   228k|#define sk_X509_NAME_ENTRY_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_ENTRY_sk_type(sk), ossl_check_X509_NAME_ENTRY_freefunc_type(freefunc))
  ------------------
  139|   228k|}

ossl_d2i_X509_PUBKEY_INTERNAL:
   70|  31.9k|{
   71|  31.9k|    X509_PUBKEY *xpub = OPENSSL_zalloc(sizeof(*xpub));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   72|       |
   73|  31.9k|    if (xpub == NULL)
  ------------------
  |  Branch (73:9): [True: 0, False: 31.9k]
  ------------------
   74|      0|        return NULL;
   75|  31.9k|    return (X509_PUBKEY *)ASN1_item_d2i_ex((ASN1_VALUE **)&xpub, pp, len,
   76|  31.9k|        ASN1_ITEM_rptr(X509_PUBKEY_INTERNAL),
  ------------------
  |  |  433|  31.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
   77|  31.9k|        libctx, propq);
   78|  31.9k|}
ossl_X509_PUBKEY_INTERNAL_free:
   81|  63.9k|{
   82|  63.9k|    ASN1_item_free((ASN1_VALUE *)xpub, ASN1_ITEM_rptr(X509_PUBKEY_INTERNAL));
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
   83|  63.9k|}
X509_PUBKEY_get0:
  458|  31.9k|{
  459|  31.9k|    if (key == NULL) {
  ------------------
  |  Branch (459:9): [True: 0, False: 31.9k]
  ------------------
  460|      0|        ERR_raise(ERR_LIB_X509, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  461|      0|        return NULL;
  462|      0|    }
  463|       |
  464|  31.9k|    if (key->pkey == NULL) {
  ------------------
  |  Branch (464:9): [True: 0, False: 31.9k]
  ------------------
  465|       |        /* We failed to decode the key when we loaded it, or it was never set */
  466|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_DECODE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  467|      0|        return NULL;
  468|      0|    }
  469|       |
  470|  31.9k|    return key->pkey;
  471|  31.9k|}
X509_PUBKEY_get:
  474|  31.9k|{
  475|  31.9k|    EVP_PKEY *ret = X509_PUBKEY_get0(key);
  476|       |
  477|  31.9k|    if (ret != NULL && !EVP_PKEY_up_ref(ret)) {
  ------------------
  |  Branch (477:9): [True: 31.9k, False: 0]
  |  Branch (477:24): [True: 0, False: 31.9k]
  ------------------
  478|      0|        ERR_raise(ERR_LIB_X509, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  479|       |        ret = NULL;
  480|      0|    }
  481|  31.9k|    return ret;
  482|  31.9k|}
ossl_d2i_PUBKEY_legacy:
  537|  31.9k|{
  538|  31.9k|    return d2i_PUBKEY_int(a, pp, length, NULL, NULL, 1, d2i_X509_PUBKEY);
  539|  31.9k|}
d2i_RSA_PUBKEY:
  606|  23.2k|{
  607|  23.2k|    EVP_PKEY *pkey;
  608|  23.2k|    RSA *key = NULL;
  609|  23.2k|    const unsigned char *q;
  610|       |
  611|  23.2k|    q = *pp;
  612|  23.2k|    pkey = ossl_d2i_PUBKEY_legacy(NULL, &q, length);
  613|  23.2k|    if (pkey == NULL)
  ------------------
  |  Branch (613:9): [True: 0, False: 23.2k]
  ------------------
  614|      0|        return NULL;
  615|  23.2k|    key = EVP_PKEY_get1_RSA(pkey);
  616|  23.2k|    EVP_PKEY_free(pkey);
  617|  23.2k|    if (key == NULL)
  ------------------
  |  Branch (617:9): [True: 0, False: 23.2k]
  ------------------
  618|      0|        return NULL;
  619|  23.2k|    *pp = q;
  620|  23.2k|    if (a != NULL) {
  ------------------
  |  Branch (620:9): [True: 0, False: 23.2k]
  ------------------
  621|      0|        RSA_free(*a);
  622|      0|        *a = key;
  623|      0|    }
  624|  23.2k|    return key;
  625|  23.2k|}
d2i_EC_PUBKEY:
  797|  8.76k|{
  798|  8.76k|    EVP_PKEY *pkey;
  799|  8.76k|    EC_KEY *key = NULL;
  800|  8.76k|    const unsigned char *q;
  801|  8.76k|    int type;
  802|       |
  803|  8.76k|    q = *pp;
  804|  8.76k|    pkey = ossl_d2i_PUBKEY_legacy(NULL, &q, length);
  805|  8.76k|    if (pkey == NULL)
  ------------------
  |  Branch (805:9): [True: 0, False: 8.76k]
  ------------------
  806|      0|        return NULL;
  807|  8.76k|    type = EVP_PKEY_get_id(pkey);
  808|  8.76k|    if (type == EVP_PKEY_EC || type == EVP_PKEY_SM2)
  ------------------
  |  |   73|  8.76k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|  17.5k|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
                  if (type == EVP_PKEY_EC || type == EVP_PKEY_SM2)
  ------------------
  |  |   74|      0|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1255|      0|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (808:9): [True: 8.76k, False: 0]
  |  Branch (808:32): [True: 0, False: 0]
  ------------------
  809|  8.76k|        key = EVP_PKEY_get1_EC_KEY(pkey);
  810|  8.76k|    EVP_PKEY_free(pkey);
  811|  8.76k|    if (key == NULL)
  ------------------
  |  Branch (811:9): [True: 0, False: 8.76k]
  ------------------
  812|      0|        return NULL;
  813|  8.76k|    *pp = q;
  814|  8.76k|    if (a != NULL) {
  ------------------
  |  Branch (814:9): [True: 0, False: 8.76k]
  ------------------
  815|      0|        EC_KEY_free(*a);
  816|      0|        *a = key;
  817|      0|    }
  818|  8.76k|    return key;
  819|  8.76k|}
X509_PUBKEY_get0_param:
 1031|  63.9k|{
 1032|  63.9k|    if (ppkalg)
  ------------------
  |  Branch (1032:9): [True: 0, False: 63.9k]
  ------------------
 1033|      0|        *ppkalg = pub->algor->algorithm;
 1034|  63.9k|    if (pk) {
  ------------------
  |  Branch (1034:9): [True: 31.9k, False: 31.9k]
  ------------------
 1035|  31.9k|        *pk = pub->public_key->data;
 1036|  31.9k|        *ppklen = pub->public_key->length;
 1037|  31.9k|    }
 1038|  63.9k|    if (pa)
  ------------------
  |  Branch (1038:9): [True: 63.9k, False: 0]
  ------------------
 1039|  63.9k|        *pa = pub->algor;
 1040|  63.9k|    return 1;
 1041|  63.9k|}
ossl_x509_PUBKEY_get0_libctx:
 1073|  8.76k|{
 1074|  8.76k|    if (plibctx)
  ------------------
  |  Branch (1074:9): [True: 8.76k, False: 0]
  ------------------
 1075|  8.76k|        *plibctx = key->libctx;
 1076|  8.76k|    if (ppropq)
  ------------------
  |  Branch (1076:9): [True: 8.76k, False: 0]
  ------------------
 1077|  8.76k|        *ppropq = key->propq;
 1078|  8.76k|    return 1;
 1079|  8.76k|}
x_pubkey.c:x509_pubkey_ex_new_ex:
  111|  31.9k|{
  112|  31.9k|    X509_PUBKEY *ret;
  113|       |
  114|  31.9k|    if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (114:9): [True: 0, False: 31.9k]
  ------------------
  115|      0|        return 0;
  116|  31.9k|    if (!x509_pubkey_ex_populate((ASN1_VALUE **)&ret, NULL)
  ------------------
  |  Branch (116:9): [True: 0, False: 31.9k]
  ------------------
  117|  31.9k|        || !x509_pubkey_set0_libctx(ret, libctx, propq)) {
  ------------------
  |  Branch (117:12): [True: 0, False: 31.9k]
  ------------------
  118|      0|        x509_pubkey_ex_free((ASN1_VALUE **)&ret, NULL);
  119|      0|        ret = NULL;
  120|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_X509_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  121|  31.9k|    } else {
  122|  31.9k|        *pval = (ASN1_VALUE *)ret;
  123|  31.9k|    }
  124|       |
  125|       |    return ret != NULL;
  126|  31.9k|}
x_pubkey.c:x509_pubkey_ex_populate:
  100|  95.9k|{
  101|  95.9k|    X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval;
  102|       |
  103|  95.9k|    return (pubkey->algor != NULL
  ------------------
  |  Branch (103:13): [True: 31.9k, False: 63.9k]
  ------------------
  104|  63.9k|               || (pubkey->algor = X509_ALGOR_new()) != NULL)
  ------------------
  |  Branch (104:19): [True: 63.9k, False: 0]
  ------------------
  105|  95.9k|        && (pubkey->public_key != NULL
  ------------------
  |  Branch (105:13): [True: 31.9k, False: 63.9k]
  ------------------
  106|  63.9k|            || (pubkey->public_key = ASN1_BIT_STRING_new()) != NULL);
  ------------------
  |  Branch (106:16): [True: 63.9k, False: 0]
  ------------------
  107|  95.9k|}
x_pubkey.c:x509_pubkey_ex_d2i_ex:
  133|  63.9k|{
  134|  63.9k|    const unsigned char *in_saved = *in;
  135|  63.9k|    size_t publen;
  136|  63.9k|    X509_PUBKEY *pubkey;
  137|  63.9k|    int ret;
  138|  63.9k|    OSSL_DECODER_CTX *dctx = NULL;
  139|  63.9k|    unsigned char *tmpbuf = NULL;
  140|       |
  141|  63.9k|    if (*pval == NULL && !x509_pubkey_ex_new_ex(pval, it, libctx, propq))
  ------------------
  |  Branch (141:9): [True: 0, False: 63.9k]
  |  Branch (141:26): [True: 0, False: 0]
  ------------------
  142|      0|        return 0;
  143|  63.9k|    if (!x509_pubkey_ex_populate(pval, NULL)) {
  ------------------
  |  Branch (143:9): [True: 0, False: 63.9k]
  ------------------
  144|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_X509_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  145|      0|        return 0;
  146|      0|    }
  147|       |
  148|       |    /* This ensures that |*in| advances properly no matter what */
  149|  63.9k|    if ((ret = asn1_item_embed_d2i(pval, in, len,
  ------------------
  |  Branch (149:9): [True: 0, False: 63.9k]
  ------------------
  150|  63.9k|             ASN1_ITEM_rptr(X509_PUBKEY_INTERNAL),
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  151|  63.9k|             tag, aclass, opt, ctx, 0,
  152|  63.9k|             NULL, NULL))
  153|  63.9k|        <= 0) {
  154|      0|        x509_pubkey_ex_free(pval, it);
  155|      0|        return ret;
  156|      0|    }
  157|       |
  158|  63.9k|    publen = *in - in_saved;
  159|  63.9k|    if (!ossl_assert(publen > 0)) {
  ------------------
  |  |   52|  63.9k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  63.9k|    __FILE__, __LINE__)
  ------------------
  |  Branch (159:9): [True: 0, False: 63.9k]
  ------------------
  160|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  161|      0|        return 0;
  162|      0|    }
  163|       |
  164|  63.9k|    pubkey = (X509_PUBKEY *)*pval;
  165|  63.9k|    EVP_PKEY_free(pubkey->pkey);
  166|  63.9k|    pubkey->pkey = NULL;
  167|       |
  168|       |    /*
  169|       |     * Opportunistically decode the key but remove any non fatal errors
  170|       |     * from the queue. Subsequent explicit attempts to decode/use the key
  171|       |     * will return an appropriate error.
  172|       |     */
  173|  63.9k|    ERR_set_mark();
  174|       |
  175|       |    /*
  176|       |     * Try to decode with legacy method first.  This ensures that engines
  177|       |     * aren't overridden by providers.
  178|       |     */
  179|  63.9k|    if ((ret = x509_pubkey_decode(&pubkey->pkey, pubkey)) == -1) {
  ------------------
  |  Branch (179:9): [True: 0, False: 63.9k]
  ------------------
  180|       |        /* -1 indicates a fatal error, like malloc failure */
  181|      0|        ERR_clear_last_mark();
  182|      0|        goto end;
  183|      0|    }
  184|       |
  185|       |    /* Try to decode it into an EVP_PKEY with OSSL_DECODER */
  186|  63.9k|    if (ret <= 0 && !pubkey->flag_force_legacy) {
  ------------------
  |  Branch (186:9): [True: 31.9k, False: 31.9k]
  |  Branch (186:21): [True: 31.9k, False: 0]
  ------------------
  187|  31.9k|        const unsigned char *p;
  188|  31.9k|        char txtoidname[OSSL_MAX_NAME_SIZE];
  189|  31.9k|        size_t slen = publen;
  190|       |
  191|       |        /*
  192|       |         * The decoders don't know how to handle anything other than Universal
  193|       |         * class so we modify the data accordingly.
  194|       |         */
  195|  31.9k|        if (aclass != V_ASN1_UNIVERSAL) {
  ------------------
  |  |   49|  31.9k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  |  Branch (195:13): [True: 0, False: 31.9k]
  ------------------
  196|      0|            tmpbuf = OPENSSL_memdup(in_saved, publen);
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  197|      0|            if (tmpbuf == NULL)
  ------------------
  |  Branch (197:17): [True: 0, False: 0]
  ------------------
  198|      0|                return 0;
  199|      0|            in_saved = tmpbuf;
  200|      0|            *tmpbuf = V_ASN1_CONSTRUCTED | V_ASN1_SEQUENCE;
  ------------------
  |  |   54|      0|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
                          *tmpbuf = V_ASN1_CONSTRUCTED | V_ASN1_SEQUENCE;
  ------------------
  |  |   76|      0|#define V_ASN1_SEQUENCE 16
  ------------------
  201|      0|        }
  202|  31.9k|        p = in_saved;
  203|       |
  204|  31.9k|        if (OBJ_obj2txt(txtoidname, sizeof(txtoidname),
  ------------------
  |  Branch (204:13): [True: 0, False: 31.9k]
  ------------------
  205|  31.9k|                pubkey->algor->algorithm, 0)
  206|  31.9k|            <= 0) {
  207|      0|            ERR_clear_last_mark();
  208|      0|            goto end;
  209|      0|        }
  210|  31.9k|        if ((dctx = OSSL_DECODER_CTX_new_for_pkey(&pubkey->pkey,
  ------------------
  |  Branch (210:13): [True: 31.9k, False: 0]
  ------------------
  211|  31.9k|                 "DER", "SubjectPublicKeyInfo",
  212|  31.9k|                 txtoidname, EVP_PKEY_PUBLIC_KEY,
  ------------------
  |  |  111|  31.9k|    (EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  107|  31.9k|    (OSSL_KEYMGMT_SELECT_ALL_PARAMETERS)
  |  |  |  |  ------------------
  |  |  |  |  |  |  647|  31.9k|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  642|  31.9k|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  648|  31.9k|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  643|  31.9k|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   (EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|  31.9k|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  213|  31.9k|                 pubkey->libctx,
  214|  31.9k|                 pubkey->propq))
  215|  31.9k|            != NULL)
  216|       |            /*
  217|       |             * As said higher up, we're being opportunistic.  In other words,
  218|       |             * we don't care if we fail.
  219|       |             */
  220|  31.9k|            if (OSSL_DECODER_from_data(dctx, &p, &slen)) {
  ------------------
  |  Branch (220:17): [True: 31.9k, False: 0]
  ------------------
  221|  31.9k|                if (slen != 0) {
  ------------------
  |  Branch (221:21): [True: 0, False: 31.9k]
  ------------------
  222|       |                    /*
  223|       |                     * If we successfully decoded then we *must* consume all the
  224|       |                     * bytes.
  225|       |                     */
  226|      0|                    ERR_clear_last_mark();
  227|      0|                    ERR_raise(ERR_LIB_ASN1, EVP_R_DECODE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  228|      0|                    goto end;
  229|      0|                }
  230|  31.9k|            }
  231|  31.9k|    }
  232|       |
  233|  63.9k|    ERR_pop_to_mark();
  234|  63.9k|    ret = 1;
  235|  63.9k|end:
  236|  63.9k|    OSSL_DECODER_CTX_free(dctx);
  237|  63.9k|    OPENSSL_free(tmpbuf);
  ------------------
  |  |  131|  63.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  238|  63.9k|    return ret;
  239|  63.9k|}
x_pubkey.c:x509_pubkey_set0_libctx:
   49|  63.9k|{
   50|  63.9k|    if (x != NULL) {
  ------------------
  |  Branch (50:9): [True: 63.9k, False: 0]
  ------------------
   51|  63.9k|        x->libctx = libctx;
   52|  63.9k|        OPENSSL_free(x->propq);
  ------------------
  |  |  131|  63.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   53|  63.9k|        x->propq = NULL;
   54|  63.9k|        if (propq != NULL) {
  ------------------
  |  Branch (54:13): [True: 0, False: 63.9k]
  ------------------
   55|      0|            x->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   56|      0|            if (x->propq == NULL)
  ------------------
  |  Branch (56:17): [True: 0, False: 0]
  ------------------
   57|      0|                return 0;
   58|      0|        }
   59|  63.9k|    }
   60|  63.9k|    return 1;
   61|  63.9k|}
x_pubkey.c:x509_pubkey_ex_free:
   86|  63.9k|{
   87|  63.9k|    X509_PUBKEY *pubkey;
   88|       |
   89|  63.9k|    if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) {
  ------------------
  |  Branch (89:9): [True: 63.9k, False: 0]
  |  Branch (89:25): [True: 63.9k, False: 0]
  ------------------
   90|  63.9k|        X509_ALGOR_free(pubkey->algor);
   91|  63.9k|        ASN1_BIT_STRING_free(pubkey->public_key);
   92|  63.9k|        EVP_PKEY_free(pubkey->pkey);
   93|  63.9k|        OPENSSL_free(pubkey->propq);
  ------------------
  |  |  131|  63.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   94|  63.9k|        OPENSSL_free(pubkey);
  ------------------
  |  |  131|  63.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   95|       |        *pval = NULL;
   96|  63.9k|    }
   97|  63.9k|}
x_pubkey.c:x509_pubkey_decode:
  407|  63.9k|{
  408|  63.9k|    EVP_PKEY *pkey;
  409|  63.9k|    int nid;
  410|       |
  411|  63.9k|    nid = OBJ_obj2nid(key->algor->algorithm);
  412|  63.9k|    if (!key->flag_force_legacy) {
  ------------------
  |  Branch (412:9): [True: 31.9k, False: 31.9k]
  ------------------
  413|  31.9k|#ifndef OPENSSL_NO_ENGINE
  414|  31.9k|        ENGINE *e = NULL;
  415|       |
  416|  31.9k|        e = ENGINE_get_pkey_meth_engine(nid);
  417|  31.9k|        if (e == NULL)
  ------------------
  |  Branch (417:13): [True: 31.9k, False: 0]
  ------------------
  418|  31.9k|            return 0;
  419|      0|        ENGINE_finish(e);
  420|       |#else
  421|       |        return 0;
  422|       |#endif
  423|      0|    }
  424|       |
  425|  31.9k|    pkey = EVP_PKEY_new();
  426|  31.9k|    if (pkey == NULL) {
  ------------------
  |  Branch (426:9): [True: 0, False: 31.9k]
  ------------------
  427|      0|        ERR_raise(ERR_LIB_X509, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  428|      0|        return -1;
  429|      0|    }
  430|       |
  431|  31.9k|    if (!EVP_PKEY_set_type(pkey, nid)) {
  ------------------
  |  Branch (431:9): [True: 0, False: 31.9k]
  ------------------
  432|      0|        ERR_raise(ERR_LIB_X509, X509_R_UNSUPPORTED_ALGORITHM);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  433|      0|        goto error;
  434|      0|    }
  435|       |
  436|  31.9k|    if (pkey->ameth->pub_decode) {
  ------------------
  |  Branch (436:9): [True: 31.9k, False: 0]
  ------------------
  437|       |        /*
  438|       |         * Treat any failure of pub_decode as a decode error. In
  439|       |         * future we could have different return codes for decode
  440|       |         * errors and fatal errors such as malloc failure.
  441|       |         */
  442|  31.9k|        if (!pkey->ameth->pub_decode(pkey, key))
  ------------------
  |  Branch (442:13): [True: 0, False: 31.9k]
  ------------------
  443|      0|            goto error;
  444|  31.9k|    } else {
  445|      0|        ERR_raise(ERR_LIB_X509, X509_R_METHOD_NOT_SUPPORTED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  446|      0|        goto error;
  447|      0|    }
  448|       |
  449|  31.9k|    *ppkey = pkey;
  450|  31.9k|    return 1;
  451|       |
  452|      0|error:
  453|      0|    EVP_PKEY_free(pkey);
  454|      0|    return 0;
  455|  31.9k|}
x_pubkey.c:d2i_PUBKEY_int:
  495|  31.9k|{
  496|  31.9k|    X509_PUBKEY *xpk, *xpk2 = NULL, **pxpk = NULL;
  497|  31.9k|    EVP_PKEY *pktmp = NULL;
  498|  31.9k|    const unsigned char *q;
  499|       |
  500|  31.9k|    q = *pp;
  501|       |
  502|       |    /*
  503|       |     * If libctx or propq are non-NULL, we take advantage of the reuse
  504|       |     * feature.  It's not generally recommended, but is safe enough for
  505|       |     * newly created structures.
  506|       |     */
  507|  31.9k|    if (libctx != NULL || propq != NULL || force_legacy) {
  ------------------
  |  Branch (507:9): [True: 0, False: 31.9k]
  |  Branch (507:27): [True: 0, False: 31.9k]
  |  Branch (507:44): [True: 31.9k, False: 0]
  ------------------
  508|  31.9k|        xpk2 = OPENSSL_zalloc(sizeof(*xpk2));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  509|  31.9k|        if (xpk2 == NULL)
  ------------------
  |  Branch (509:13): [True: 0, False: 31.9k]
  ------------------
  510|      0|            return NULL;
  511|  31.9k|        if (!x509_pubkey_set0_libctx(xpk2, libctx, propq))
  ------------------
  |  Branch (511:13): [True: 0, False: 31.9k]
  ------------------
  512|      0|            goto end;
  513|  31.9k|        xpk2->flag_force_legacy = !!force_legacy;
  514|  31.9k|        pxpk = &xpk2;
  515|  31.9k|    }
  516|  31.9k|    xpk = d2i_x509_pubkey(pxpk, &q, length);
  517|  31.9k|    if (xpk == NULL)
  ------------------
  |  Branch (517:9): [True: 0, False: 31.9k]
  ------------------
  518|      0|        goto end;
  519|  31.9k|    pktmp = X509_PUBKEY_get(xpk);
  520|  31.9k|    X509_PUBKEY_free(xpk);
  521|  31.9k|    xpk2 = NULL; /* We know that xpk == xpk2 */
  522|  31.9k|    if (pktmp == NULL)
  ------------------
  |  Branch (522:9): [True: 0, False: 31.9k]
  ------------------
  523|      0|        goto end;
  524|  31.9k|    *pp = q;
  525|  31.9k|    if (a != NULL) {
  ------------------
  |  Branch (525:9): [True: 0, False: 31.9k]
  ------------------
  526|      0|        EVP_PKEY_free(*a);
  527|      0|        *a = pktmp;
  528|      0|    }
  529|  31.9k|end:
  530|  31.9k|    X509_PUBKEY_free(xpk2);
  531|  31.9k|    return pktmp;
  532|  31.9k|}

ossl_x509_set0_libctx:
  141|  31.9k|{
  142|  31.9k|    if (x != NULL) {
  ------------------
  |  Branch (142:9): [True: 31.9k, False: 0]
  ------------------
  143|  31.9k|        x->libctx = libctx;
  144|  31.9k|        OPENSSL_free(x->propq);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  145|  31.9k|        x->propq = NULL;
  146|  31.9k|        if (propq != NULL) {
  ------------------
  |  Branch (146:13): [True: 0, False: 31.9k]
  ------------------
  147|      0|            x->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  148|      0|            if (x->propq == NULL)
  ------------------
  |  Branch (148:17): [True: 0, False: 0]
  ------------------
  149|      0|                return 0;
  150|      0|        }
  151|  31.9k|    }
  152|  31.9k|    return 1;
  153|  31.9k|}
X509_new_ex:
  156|  31.9k|{
  157|  31.9k|    X509 *cert = NULL;
  158|       |
  159|  31.9k|    cert = (X509 *)ASN1_item_new_ex(X509_it(), libctx, propq);
  160|  31.9k|    if (!ossl_x509_set0_libctx(cert, libctx, propq)) {
  ------------------
  |  Branch (160:9): [True: 0, False: 31.9k]
  ------------------
  161|      0|        X509_free(cert);
  162|       |        cert = NULL;
  163|      0|    }
  164|  31.9k|    return cert;
  165|  31.9k|}
x_x509.c:x509_cb:
   38|   191k|{
   39|   191k|    X509 *ret = (X509 *)*pval;
   40|       |
   41|   191k|    switch (operation) {
   42|       |
   43|  31.9k|    case ASN1_OP_D2I_PRE:
  ------------------
  |  |  735|  31.9k|#define ASN1_OP_D2I_PRE 4
  ------------------
  |  Branch (43:5): [True: 31.9k, False: 159k]
  ------------------
   44|  31.9k|        CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data);
  ------------------
  |  |  253|  31.9k|#define CRYPTO_EX_INDEX_X509 3
  ------------------
   45|  31.9k|        X509_CERT_AUX_free(ret->aux);
   46|  31.9k|        ASN1_OCTET_STRING_free(ret->skid);
   47|  31.9k|        AUTHORITY_KEYID_free(ret->akid);
   48|  31.9k|        CRL_DIST_POINTS_free(ret->crldp);
   49|  31.9k|        ossl_policy_cache_free(ret->policy_cache);
   50|  31.9k|        GENERAL_NAMES_free(ret->altname);
   51|  31.9k|        NAME_CONSTRAINTS_free(ret->nc);
   52|  31.9k|#ifndef OPENSSL_NO_RFC3779
   53|  31.9k|        sk_IPAddressFamily_pop_free(ret->rfc3779_addr, IPAddressFamily_free);
  ------------------
  |  | 1263|  31.9k|#define sk_IPAddressFamily_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_IPAddressFamily_sk_type(sk), ossl_check_IPAddressFamily_freefunc_type(freefunc))
  ------------------
   54|  31.9k|        ASIdentifiers_free(ret->rfc3779_asid);
   55|  31.9k|#endif
   56|  31.9k|        ASN1_OCTET_STRING_free(ret->distinguishing_id);
   57|       |
   58|       |        /* fall through */
   59|       |
   60|  63.9k|    case ASN1_OP_NEW_POST:
  ------------------
  |  |  732|  63.9k|#define ASN1_OP_NEW_POST 1
  ------------------
  |  Branch (60:5): [True: 31.9k, False: 159k]
  ------------------
   61|  63.9k|        ret->ex_cached = 0;
   62|  63.9k|        ret->ex_kusage = 0;
   63|  63.9k|        ret->ex_xkusage = 0;
   64|  63.9k|        ret->ex_nscert = 0;
   65|  63.9k|        ret->ex_flags = 0;
   66|  63.9k|        ret->ex_pathlen = -1;
   67|  63.9k|        ret->ex_pcpathlen = -1;
   68|  63.9k|        ret->skid = NULL;
   69|  63.9k|        ret->akid = NULL;
   70|  63.9k|        ret->policy_cache = NULL;
   71|  63.9k|        ret->altname = NULL;
   72|  63.9k|        ret->nc = NULL;
   73|  63.9k|#ifndef OPENSSL_NO_RFC3779
   74|  63.9k|        ret->rfc3779_addr = NULL;
   75|  63.9k|        ret->rfc3779_asid = NULL;
   76|  63.9k|#endif
   77|  63.9k|        ret->distinguishing_id = NULL;
   78|  63.9k|        ret->aux = NULL;
   79|  63.9k|        ret->crldp = NULL;
   80|  63.9k|        if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data))
  ------------------
  |  |  253|  63.9k|#define CRYPTO_EX_INDEX_X509 3
  ------------------
  |  Branch (80:13): [True: 0, False: 63.9k]
  ------------------
   81|      0|            return 0;
   82|  63.9k|        break;
   83|       |
   84|  63.9k|    case ASN1_OP_FREE_POST:
  ------------------
  |  |  734|  31.9k|#define ASN1_OP_FREE_POST 3
  ------------------
  |  Branch (84:5): [True: 31.9k, False: 159k]
  ------------------
   85|  31.9k|        CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data);
  ------------------
  |  |  253|  31.9k|#define CRYPTO_EX_INDEX_X509 3
  ------------------
   86|  31.9k|        X509_CERT_AUX_free(ret->aux);
   87|  31.9k|        ASN1_OCTET_STRING_free(ret->skid);
   88|  31.9k|        AUTHORITY_KEYID_free(ret->akid);
   89|  31.9k|        CRL_DIST_POINTS_free(ret->crldp);
   90|  31.9k|        ossl_policy_cache_free(ret->policy_cache);
   91|  31.9k|        GENERAL_NAMES_free(ret->altname);
   92|  31.9k|        NAME_CONSTRAINTS_free(ret->nc);
   93|  31.9k|#ifndef OPENSSL_NO_RFC3779
   94|  31.9k|        sk_IPAddressFamily_pop_free(ret->rfc3779_addr, IPAddressFamily_free);
  ------------------
  |  | 1263|  31.9k|#define sk_IPAddressFamily_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_IPAddressFamily_sk_type(sk), ossl_check_IPAddressFamily_freefunc_type(freefunc))
  ------------------
   95|  31.9k|        ASIdentifiers_free(ret->rfc3779_asid);
   96|  31.9k|#endif
   97|  31.9k|        ASN1_OCTET_STRING_free(ret->distinguishing_id);
   98|  31.9k|        OPENSSL_free(ret->propq);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   99|  31.9k|        break;
  100|       |
  101|      0|    case ASN1_OP_DUP_POST: {
  ------------------
  |  |  746|      0|#define ASN1_OP_DUP_POST 15
  ------------------
  |  Branch (101:5): [True: 0, False: 191k]
  ------------------
  102|      0|        X509 *old = exarg;
  103|       |
  104|      0|        if (!ossl_x509_set0_libctx(ret, old->libctx, old->propq))
  ------------------
  |  Branch (104:13): [True: 0, False: 0]
  ------------------
  105|      0|            return 0;
  106|      0|    } break;
  107|      0|    case ASN1_OP_GET0_LIBCTX: {
  ------------------
  |  |  747|      0|#define ASN1_OP_GET0_LIBCTX 16
  ------------------
  |  Branch (107:5): [True: 0, False: 191k]
  ------------------
  108|      0|        OSSL_LIB_CTX **libctx = exarg;
  109|       |
  110|      0|        *libctx = ret->libctx;
  111|      0|    } break;
  112|       |
  113|      0|    case ASN1_OP_GET0_PROPQ: {
  ------------------
  |  |  748|      0|#define ASN1_OP_GET0_PROPQ 17
  ------------------
  |  Branch (113:5): [True: 0, False: 191k]
  ------------------
  114|      0|        const char **propq = exarg;
  115|       |
  116|      0|        *propq = ret->propq;
  117|      0|    } break;
  118|       |
  119|  95.9k|    default:
  ------------------
  |  Branch (119:5): [True: 95.9k, False: 95.9k]
  ------------------
  120|  95.9k|        break;
  121|   191k|    }
  122|       |
  123|   191k|    return 1;
  124|   191k|}

engine_load_padlock_int:
   46|      2|{
   47|       |/* On non-x86 CPUs it just returns. */
   48|      2|#ifdef COMPILE_PADLOCKENG
   49|      2|    ENGINE *toadd = ENGINE_padlock();
   50|      2|    if (!toadd)
  ------------------
  |  Branch (50:9): [True: 0, False: 2]
  ------------------
   51|      0|        return;
   52|      2|    ERR_set_mark();
   53|      2|    ENGINE_add(toadd);
   54|       |    /*
   55|       |     * If the "add" worked, it gets a structural reference. So either way, we
   56|       |     * release our just-created reference.
   57|       |     */
   58|      2|    ENGINE_free(toadd);
   59|       |    /*
   60|       |     * If the "add" didn't work, it was probably a conflict because it was
   61|       |     * already added (eg. someone calling ENGINE_load_blah then calling
   62|       |     * ENGINE_load_builtin_engines() perhaps).
   63|       |     */
   64|      2|    ERR_pop_to_mark();
   65|      2|#endif
   66|      2|}
e_padlock.c:ENGINE_padlock:
  123|      2|{
  124|      2|    ENGINE *eng = ENGINE_new();
  125|       |
  126|      2|    if (eng == NULL) {
  ------------------
  |  Branch (126:9): [True: 0, False: 2]
  ------------------
  127|      0|        return NULL;
  128|      0|    }
  129|       |
  130|      2|    if (!padlock_bind_helper(eng)) {
  ------------------
  |  Branch (130:9): [True: 0, False: 2]
  ------------------
  131|      0|        ENGINE_free(eng);
  132|      0|        return NULL;
  133|      0|    }
  134|       |
  135|      2|    return eng;
  136|      2|}
e_padlock.c:padlock_bind_helper:
   95|      2|{
   96|       |    /* Check available features */
   97|      2|    padlock_available();
   98|       |
   99|       |    /*
  100|       |     * RNG is currently disabled for reasons discussed in commentary just
  101|       |     * before padlock_rand_bytes function.
  102|       |     */
  103|      2|    padlock_use_rng = 0;
  104|       |
  105|       |    /* Generate a nice engine name with available features */
  106|      2|    BIO_snprintf(padlock_name, sizeof(padlock_name),
  107|      2|        "VIA PadLock (%s, %s)",
  108|      2|        padlock_use_rng ? "RNG" : "no-RNG",
  ------------------
  |  Branch (108:9): [True: 0, False: 2]
  ------------------
  109|      2|        padlock_use_ace ? "ACE" : "no-ACE");
  ------------------
  |  Branch (109:9): [True: 0, False: 2]
  ------------------
  110|       |
  111|       |    /* Register everything or return with an error */
  112|      2|    if (!ENGINE_set_id(e, padlock_id) || !ENGINE_set_name(e, padlock_name) || !ENGINE_set_init_function(e, padlock_init) || (padlock_use_ace && !ENGINE_set_ciphers(e, padlock_ciphers)) || (padlock_use_rng && !ENGINE_set_RAND(e, &padlock_rand))) {
  ------------------
  |  Branch (112:9): [True: 0, False: 2]
  |  Branch (112:42): [True: 0, False: 2]
  |  Branch (112:79): [True: 0, False: 2]
  |  Branch (112:126): [True: 0, False: 2]
  |  Branch (112:145): [True: 0, False: 0]
  |  Branch (112:190): [True: 0, False: 2]
  |  Branch (112:209): [True: 0, False: 0]
  ------------------
  113|      0|        return 0;
  114|      0|    }
  115|       |
  116|       |    /* Everything looks good */
  117|      2|    return 1;
  118|      2|}
e_padlock.c:padlock_available:
  241|      2|{
  242|      2|    unsigned int edx = padlock_capability();
  243|       |
  244|       |    /* Fill up some flags */
  245|      2|    padlock_use_ace = ((edx & (0x3 << 6)) == (0x3 << 6));
  246|      2|    padlock_use_rng = ((edx & (0x3 << 2)) == (0x3 << 2));
  247|       |
  248|      2|    return padlock_use_ace + padlock_use_rng;
  249|      2|}

EVP_aria_128_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_128_cfb128:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_128_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_128_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_192_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_192_cfb128:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_192_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_192_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_256_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_256_cfb128:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_256_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_256_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_128_cfb1:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_192_cfb1:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_256_cfb1:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_128_cfb8:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_192_cfb8:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_aria_256_cfb8:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_bf_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_bf_cfb64:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_bf_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_bf_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_cast5_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_cast5_cfb64:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_cast5_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_cast5_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_cfb64:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_cfb1:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_cfb8:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ede_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ede_cfb64:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ede_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ede3_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ede3_cfb64:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ede3_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ede3_cfb1:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_des_ede3_cfb8:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_idea_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_idea_cfb64:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_idea_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_idea_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_rc2_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_rc2_cfb64:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_rc2_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_rc2_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_rc5_32_12_16_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_rc5_32_12_16_cfb64:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_rc5_32_12_16_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_rc5_32_12_16_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_seed_cbc:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_seed_cfb128:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_seed_ofb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
EVP_seed_ecb:
  465|      2|    const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }

threads_common.c:ossl_sa_CTX_TABLE_ENTRY_get:
   60|  1.51M|    {                                                                                                              \
   61|  1.51M|        return (type *)ossl_sa_get((OPENSSL_SA *)sa, n);                                                           \
   62|  1.51M|    }                                                                                                              \
threads_common.c:ossl_sa_CTX_TABLE_ENTRY_new:
   26|      4|    {                                                                                                              \
   27|      4|        return (SPARSE_ARRAY_OF(type) *)ossl_sa_new();                                                             \
   28|      4|    }                                                                                                              \
threads_common.c:ossl_sa_CTX_TABLE_ENTRY_set:
   66|     10|    {                                                                                                              \
   67|     10|        return ossl_sa_set((OPENSSL_SA *)sa, n, (void *)val);                                                      \
   68|     10|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_new:
   26|      8|    {                                                                                                              \
   27|      8|        return (SPARSE_ARRAY_OF(type) *)ossl_sa_new();                                                             \
   28|      8|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_doall_arg:
   55|      6|    {                                                                                                              \
   56|      6|        ossl_sa_doall_arg((OPENSSL_SA *)sa,                                                                        \
   57|      6|            (void (*)(ossl_uintmax_t, void *, void *))leaf, arg);                                                  \
   58|      6|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_set:
   66|    298|    {                                                                                                              \
   67|    298|        return ossl_sa_set((OPENSSL_SA *)sa, n, (void *)val);                                                      \
   68|    298|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_get:
   60|  30.0k|    {                                                                                                              \
   61|  30.0k|        return (type *)ossl_sa_get((OPENSSL_SA *)sa, n);                                                           \
   62|  30.0k|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_num:
   41|      6|    {                                                                                                              \
   42|      6|        return ossl_sa_num((OPENSSL_SA *)sa);                                                                      \
   43|      6|    }                                                                                                              \
rsa_ossl.c:ossl_sa_BN_BLINDING_doall_arg:
   55|  23.2k|    {                                                                                                              \
   56|  23.2k|        ossl_sa_doall_arg((OPENSSL_SA *)sa,                                                                        \
   57|  23.2k|            (void (*)(ossl_uintmax_t, void *, void *))leaf, arg);                                                  \
   58|  23.2k|    }                                                                                                              \
rsa_ossl.c:ossl_sa_BN_BLINDING_free:
   31|  23.2k|    {                                                                                                              \
   32|  23.2k|        ossl_sa_free((OPENSSL_SA *)sa);                                                                            \
   33|  23.2k|    }                                                                                                              \
rsa_ossl.c:ossl_sa_BN_BLINDING_new:
   26|  23.2k|    {                                                                                                              \
   27|  23.2k|        return (SPARSE_ARRAY_OF(type) *)ossl_sa_new();                                                             \
   28|  23.2k|    }                                                                                                              \

s3_lib.c:ossl_assert_int:
   45|    438|{
   46|    438|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 438]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    438|    return expr;
   50|    438|}
ssl_cert.c:ossl_assert_int:
   45|    220|{
   46|    220|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 220]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    220|    return expr;
   50|    220|}
ssl_ciph.c:ossl_assert_int:
   45|  1.54k|{
   46|  1.54k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 1.54k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  1.54k|    return expr;
   50|  1.54k|}
ssl_lib.c:ossl_assert_int:
   45|    220|{
   46|    220|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 220]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    220|    return expr;
   50|    220|}
rec_layer_s3.c:ossl_assert_int:
   45|  1.31k|{
   46|  1.31k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 1.31k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  1.31k|    return expr;
   50|  1.31k|}
tls_common.c:ossl_assert_int:
   45|  4.57k|{
   46|  4.57k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 4.57k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  4.57k|    return expr;
   50|  4.57k|}
bio_print.c:ossl_assert_int:
   45|   580k|{
   46|   580k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 580k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   580k|    return expr;
   50|   580k|}
decoder_lib.c:ossl_assert_int:
   45|   159k|{
   46|   159k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 159k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   159k|    return expr;
   50|   159k|}
decoder_meth.c:ossl_assert_int:
   45|   337k|{
   46|   337k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 337k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   337k|    return expr;
   50|   337k|}
digest.c:ossl_assert_int:
   45|  3.50k|{
   46|  3.50k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 3.50k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  3.50k|    return expr;
   50|  3.50k|}
evp_enc.c:ossl_assert_int:
   45|  27.8k|{
   46|  27.8k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 27.8k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  27.8k|    return expr;
   50|  27.8k|}
evp_fetch.c:ossl_assert_int:
   45|  89.8k|{
   46|  89.8k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 89.8k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  89.8k|    return expr;
   50|  89.8k|}
p_lib.c:ossl_assert_int:
   45|   479k|{
   46|   479k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 479k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   479k|    return expr;
   50|   479k|}
pmeth_lib.c:ossl_assert_int:
   45|  6.15k|{
   46|  6.15k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 6.15k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  6.15k|    return expr;
   50|  6.15k|}
core_algorithm.c:ossl_assert_int:
   45|      2|{
   46|      2|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 2]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|      2|    return expr;
   50|      2|}
core_fetch.c:ossl_assert_int:
   45|  3.58k|{
   46|  3.58k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 3.58k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  3.58k|    return expr;
   50|  3.58k|}
core_namemap.c:ossl_assert_int:
   45|    679|{
   46|    679|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 679]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    679|    return expr;
   50|    679|}
packet.c:ossl_assert_int:
   45|   219k|{
   46|   219k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 219k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   219k|    return expr;
   50|   219k|}
provider_core.c:ossl_assert_int:
   45|  3.57k|{
   46|  3.57k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 3.57k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  3.57k|    return expr;
   50|  3.57k|}
threads_common.c:ossl_assert_int:
   45|  1.51M|{
   46|  1.51M|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 1.51M]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  1.51M|    return expr;
   50|  1.51M|}
threads_pthread.c:ossl_assert_int:
   45|  1.03M|{
   46|  1.03M|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 1.03M]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  1.03M|    return expr;
   50|  1.03M|}
defn_cache.c:ossl_assert_int:
   45|    688|{
   46|    688|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 688]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    688|    return expr;
   50|    688|}
property.c:ossl_assert_int:
   45|    393|{
   46|    393|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 393]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    393|    return expr;
   50|    393|}
x_pubkey.c:ossl_assert_int:
   45|  63.9k|{
   46|  63.9k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 63.9k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  63.9k|    return expr;
   50|  63.9k|}
drbg_ctr.c:ossl_assert_int:
   45|     25|{
   46|     25|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 25]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|     25|    return expr;
   50|     25|}
ml_kem.c:ossl_assert_int:
   45|    438|{
   46|    438|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 438]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    438|    return expr;
   50|    438|}

core_namemap.c:ossl_ht_strcase:
  264|   242k|{
  265|   242k|    int i;
  266|       |#if defined(CHARSET_EBCDIC) && !defined(CHARSET_EBCDIC_TEST)
  267|       |    const long int case_adjust = ~0x40;
  268|       |#else
  269|   242k|    const long int case_adjust = ~0x20;
  270|   242k|#endif
  271|       |
  272|   242k|    if (src == NULL)
  ------------------
  |  Branch (272:9): [True: 0, False: 242k]
  ------------------
  273|      0|        return;
  274|       |
  275|  2.02M|    for (i = 0; src[i] != '\0' && i < len; i++)
  ------------------
  |  Branch (275:17): [True: 1.78M, False: 242k]
  |  Branch (275:35): [True: 1.78M, False: 186]
  ------------------
  276|  1.78M|        tgt[i] = case_adjust & src[i];
  277|   242k|}

array_alloc.c:ossl_size_mul:
   79|  1.54M|{
   80|  1.54M|    int err = 0;
   81|  1.54M|    *bytes = safe_mul_size_t(num, size, &err);
   82|       |
   83|  1.54M|    if (ossl_unlikely(err != 0)) {
  ------------------
  |  |   23|  1.54M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.54M]
  |  |  ------------------
  ------------------
   84|      0|        ossl_report_alloc_err_of(file, line);
   85|       |
   86|      0|        return false;
   87|      0|    }
   88|       |
   89|  1.54M|    return true;
   90|  1.54M|}

ssl_cert.c:CRYPTO_NEW_REF:
  280|    440|{
  281|    440|    refcnt->val = n;
  282|    440|    return 1;
  283|    440|}
ssl_cert.c:CRYPTO_DOWN_REF:
   56|    440|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|    440|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    440|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 440, False: 0]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    440|#endif
   68|    440|    return 1;
   69|    440|}
ssl_cert.c:CRYPTO_FREE_REF:
  286|    440|{
  287|    440|}
ssl_lib.c:CRYPTO_NEW_REF:
  280|    440|{
  281|    440|    refcnt->val = n;
  282|    440|    return 1;
  283|    440|}
ssl_lib.c:CRYPTO_FREE_REF:
  286|    440|{
  287|    440|}
ssl_lib.c:CRYPTO_UP_REF:
   40|    440|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|    440|    return 1;
   43|    440|}
ssl_lib.c:CRYPTO_DOWN_REF:
   56|    880|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|    880|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    880|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 440, False: 440]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    880|#endif
   68|    880|    return 1;
   69|    880|}
ssl_sess.c:CRYPTO_NEW_REF:
  280|    219|{
  281|    219|    refcnt->val = n;
  282|    219|    return 1;
  283|    219|}
ssl_sess.c:CRYPTO_FREE_REF:
  286|    219|{
  287|    219|}
ssl_sess.c:CRYPTO_DOWN_REF:
   56|    219|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|    219|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    219|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 219, False: 0]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    219|#endif
   68|    219|    return 1;
   69|    219|}
tasn_utl.c:CRYPTO_NEW_REF:
  280|  31.9k|{
  281|  31.9k|    refcnt->val = n;
  282|  31.9k|    return 1;
  283|  31.9k|}
tasn_utl.c:CRYPTO_FREE_REF:
  286|  31.9k|{
  287|  31.9k|}
tasn_utl.c:CRYPTO_DOWN_REF:
   56|  63.9k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|  63.9k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  63.9k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 31.9k, False: 31.9k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  63.9k|#endif
   68|  63.9k|    return 1;
   69|  63.9k|}
bio_lib.c:CRYPTO_NEW_REF:
  280|   193k|{
  281|   193k|    refcnt->val = n;
  282|   193k|    return 1;
  283|   193k|}
bio_lib.c:CRYPTO_FREE_REF:
  286|   193k|{
  287|   193k|}
bio_lib.c:CRYPTO_DOWN_REF:
   56|   259k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|   259k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   259k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 193k, False: 66.1k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   259k|#endif
   68|   259k|    return 1;
   69|   259k|}
bio_lib.c:CRYPTO_UP_REF:
   40|  66.1k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  66.1k|    return 1;
   43|  66.1k|}
bio_lib.c:CRYPTO_GET_REF:
   72|    438|{
   73|       |    *ret = atomic_load_explicit(&refcnt->val, memory_order_acquire);
   74|    438|    return 1;
   75|    438|}
ec_key.c:CRYPTO_DOWN_REF:
   56|  17.5k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|  17.5k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  17.5k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 8.76k, False: 8.76k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  17.5k|#endif
   68|  17.5k|    return 1;
   69|  17.5k|}
ec_key.c:CRYPTO_FREE_REF:
  286|  8.76k|{
  287|  8.76k|}
ec_key.c:CRYPTO_UP_REF:
   40|  8.76k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  8.76k|    return 1;
   43|  8.76k|}
ec_kmeth.c:CRYPTO_NEW_REF:
  280|  8.76k|{
  281|  8.76k|    refcnt->val = n;
  282|  8.76k|    return 1;
  283|  8.76k|}
decoder_meth.c:CRYPTO_UP_REF:
   40|   183k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|   183k|    return 1;
   43|   183k|}
decoder_meth.c:CRYPTO_DOWN_REF:
   56|   183k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|   183k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   183k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 183k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   183k|#endif
   68|   183k|    return 1;
   69|   183k|}
decoder_meth.c:CRYPTO_NEW_REF:
  280|     76|{
  281|     76|    refcnt->val = n;
  282|     76|    return 1;
  283|     76|}
eng_lib.c:CRYPTO_NEW_REF:
  280|      6|{
  281|      6|    refcnt->val = n;
  282|      6|    return 1;
  283|      6|}
eng_lib.c:CRYPTO_DOWN_REF:
   56|     12|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|     12|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|     12|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 12]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|     12|#endif
   68|     12|    return 1;
   69|     12|}
eng_list.c:CRYPTO_UP_REF:
   40|     12|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|     12|    return 1;
   43|     12|}
digest.c:CRYPTO_NEW_REF:
  280|     27|{
  281|     27|    refcnt->val = n;
  282|     27|    return 1;
  283|     27|}
digest.c:CRYPTO_UP_REF:
   40|  3.77k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  3.77k|    return 1;
   43|  3.77k|}
digest.c:CRYPTO_DOWN_REF:
   56|  3.75k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|  3.75k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  3.75k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 3.75k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  3.75k|#endif
   68|  3.75k|    return 1;
   69|  3.75k|}
evp_enc.c:CRYPTO_NEW_REF:
  280|    130|{
  281|    130|    refcnt->val = n;
  282|    130|    return 1;
  283|    130|}
evp_enc.c:CRYPTO_UP_REF:
   40|  3.23k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  3.23k|    return 1;
   43|  3.23k|}
evp_enc.c:CRYPTO_DOWN_REF:
   56|  3.21k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|  3.21k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  3.21k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 3.21k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  3.21k|#endif
   68|  3.21k|    return 1;
   69|  3.21k|}
exchange.c:CRYPTO_DOWN_REF:
   56|    447|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|    447|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    447|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 447]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    447|#endif
   68|    447|    return 1;
   69|    447|}
exchange.c:CRYPTO_UP_REF:
   40|    449|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|    449|    return 1;
   43|    449|}
exchange.c:CRYPTO_NEW_REF:
  280|      7|{
  281|      7|    refcnt->val = n;
  282|      7|    return 1;
  283|      7|}
keymgmt_meth.c:CRYPTO_NEW_REF:
  280|     40|{
  281|     40|    refcnt->val = n;
  282|     40|    return 1;
  283|     40|}
keymgmt_meth.c:CRYPTO_UP_REF:
   40|   125k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|   125k|    return 1;
   43|   125k|}
keymgmt_meth.c:CRYPTO_DOWN_REF:
   56|   125k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|   125k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   125k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 125k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   125k|#endif
   68|   125k|    return 1;
   69|   125k|}
p_lib.c:CRYPTO_NEW_REF:
  280|  65.0k|{
  281|  65.0k|    refcnt->val = n;
  282|  65.0k|    return 1;
  283|  65.0k|}
p_lib.c:CRYPTO_FREE_REF:
  286|  65.0k|{
  287|  65.0k|}
p_lib.c:CRYPTO_UP_REF:
   40|  37.6k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  37.6k|    return 1;
   43|  37.6k|}
p_lib.c:CRYPTO_DOWN_REF:
   56|   102k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|   102k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   102k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 65.0k, False: 37.6k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   102k|#endif
   68|   102k|    return 1;
   69|   102k|}
signature.c:CRYPTO_DOWN_REF:
   56|    499|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|    499|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    499|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 499]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    499|#endif
   68|    499|    return 1;
   69|    499|}
signature.c:CRYPTO_UP_REF:
   40|    501|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|    501|    return 1;
   43|    501|}
signature.c:CRYPTO_NEW_REF:
  280|     59|{
  281|     59|    refcnt->val = n;
  282|     59|    return 1;
  283|     59|}
provider_core.c:CRYPTO_UP_REF:
   40|  4.36k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  4.36k|    return 1;
   43|  4.36k|}
provider_core.c:CRYPTO_NEW_REF:
  280|      1|{
  281|      1|    refcnt->val = n;
  282|      1|    return 1;
  283|      1|}
provider_core.c:CRYPTO_DOWN_REF:
   56|  4.01k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|  4.01k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  4.01k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 4.01k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  4.01k|#endif
   68|  4.01k|    return 1;
   69|  4.01k|}
rsa_lib.c:CRYPTO_NEW_REF:
  280|  23.2k|{
  281|  23.2k|    refcnt->val = n;
  282|  23.2k|    return 1;
  283|  23.2k|}
rsa_lib.c:CRYPTO_DOWN_REF:
   56|  46.4k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|  46.4k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  46.4k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 23.2k, False: 23.2k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  46.4k|#endif
   68|  46.4k|    return 1;
   69|  46.4k|}
rsa_lib.c:CRYPTO_FREE_REF:
  286|  23.2k|{
  287|  23.2k|}
rsa_lib.c:CRYPTO_UP_REF:
   40|  23.2k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  23.2k|    return 1;
   43|  23.2k|}
x509_lu.c:CRYPTO_NEW_REF:
  280|    220|{
  281|    220|    refcnt->val = n;
  282|    220|    return 1;
  283|    220|}
x509_lu.c:CRYPTO_DOWN_REF:
   56|    220|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|    220|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    220|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 220, False: 0]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    220|#endif
   68|    220|    return 1;
   69|    220|}
x509_lu.c:CRYPTO_FREE_REF:
  286|    220|{
  287|    220|}
x509_set.c:CRYPTO_UP_REF:
   40|  31.9k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  31.9k|    return 1;
   43|  31.9k|}
ossl_core_bio.c:CRYPTO_UP_REF:
   40|  63.9k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  63.9k|    return 1;
   43|  63.9k|}
ossl_core_bio.c:CRYPTO_DOWN_REF:
   56|   127k|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|   127k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   127k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 63.9k, False: 63.9k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   127k|#endif
   68|   127k|    return 1;
   69|   127k|}
ossl_core_bio.c:CRYPTO_FREE_REF:
  286|  63.9k|{
  287|  63.9k|}
ossl_core_bio.c:CRYPTO_NEW_REF:
  280|  63.9k|{
  281|  63.9k|    refcnt->val = n;
  282|  63.9k|    return 1;
  283|  63.9k|}
ecx_key.c:CRYPTO_NEW_REF:
  280|    438|{
  281|    438|    refcnt->val = n;
  282|    438|    return 1;
  283|    438|}
ecx_key.c:CRYPTO_FREE_REF:
  286|    438|{
  287|    438|}
ecx_key.c:CRYPTO_DOWN_REF:
   56|    438|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|    438|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    438|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 438, False: 0]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    438|#endif
   68|    438|    return 1;
   69|    438|}
evp_rand.c:CRYPTO_UP_REF:
   40|     18|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|     18|    return 1;
   43|     18|}
evp_rand.c:CRYPTO_NEW_REF:
  280|      9|{
  281|      9|    refcnt->val = n;
  282|      9|    return 1;
  283|      9|}
evp_rand.c:CRYPTO_DOWN_REF:
   56|      9|{
   57|       |#ifdef OSSL_TSAN_BUILD
   58|       |    /*
   59|       |     * TSAN requires acq_rel as it indicates a false positive error when
   60|       |     * the object that contains the refcount is freed otherwise.
   61|       |     */
   62|       |    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_acq_rel) - 1;
   63|       |#else
   64|      9|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|      9|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 9]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|      9|#endif
   68|      9|    return 1;
   69|      9|}

ssl_sess.c:safe_add_time:
   51|    438|    {                                                                \
   52|    438|        type r;                                                      \
   53|    438|                                                                     \
   54|    438|        if (!__builtin_add_overflow(a, b, &r))                       \
  ------------------
  |  Branch (54:13): [True: 438, False: 0]
  ------------------
   55|    438|            return r;                                                \
   56|    438|        *err |= 1;                                                   \
   57|      0|        return a + b;                                                \
   58|    438|    }
array_alloc.c:safe_mul_size_t:
  151|  1.54M|    {                                                                \
  152|  1.54M|        type r;                                                      \
  153|  1.54M|                                                                     \
  154|  1.54M|        if (!__builtin_mul_overflow(a, b, &r))                       \
  ------------------
  |  Branch (154:13): [True: 1.54M, False: 0]
  ------------------
  155|  1.54M|            return r;                                                \
  156|  1.54M|        *err |= 1;                                                   \
  157|      0|        return a * b;                                                \
  158|  1.54M|    }
stack.c:safe_muldiv_int:
  324|  46.0k|    {                                                                   \
  325|  46.0k|        int e2 = 0;                                                     \
  326|  46.0k|        type q, r, x, y;                                                \
  327|  46.0k|                                                                        \
  328|  46.0k|        if (c == 0) {                                                   \
  ------------------
  |  Branch (328:13): [True: 0, False: 46.0k]
  ------------------
  329|      0|            *err |= 1;                                                  \
  330|      0|            return a == 0 || b == 0 ? 0 : max;                          \
  ------------------
  |  Branch (330:20): [True: 0, False: 0]
  |  Branch (330:30): [True: 0, False: 0]
  ------------------
  331|      0|        }                                                               \
  332|  46.0k|        x = safe_mul_##type_name(a, b, &e2);                            \
  333|  46.0k|        if (!e2)                                                        \
  ------------------
  |  Branch (333:13): [True: 46.0k, False: 0]
  ------------------
  334|  46.0k|            return safe_div_##type_name(x, c, err);                     \
  335|  46.0k|        if (b > a) {                                                    \
  ------------------
  |  Branch (335:13): [True: 0, False: 0]
  ------------------
  336|      0|            x = b;                                                      \
  337|      0|            b = a;                                                      \
  338|      0|            a = x;                                                      \
  339|      0|        }                                                               \
  340|      0|        q = safe_div_##type_name(a, c, err);                            \
  341|      0|        r = safe_mod_##type_name(a, c, err);                            \
  342|      0|        x = safe_mul_##type_name(r, b, err);                            \
  343|      0|        y = safe_mul_##type_name(q, b, err);                            \
  344|      0|        q = safe_div_##type_name(x, c, err);                            \
  345|      0|        return safe_add_##type_name(y, q, err);                         \
  346|  46.0k|    }
stack.c:safe_mul_int:
  138|  46.0k|    {                                                                \
  139|  46.0k|        type r;                                                      \
  140|  46.0k|                                                                     \
  141|  46.0k|        if (!__builtin_mul_overflow(a, b, &r))                       \
  ------------------
  |  Branch (141:13): [True: 46.0k, False: 0]
  ------------------
  142|  46.0k|            return r;                                                \
  143|  46.0k|        *err |= 1;                                                   \
  144|      0|        return (a < 0) ^ (b < 0) ? min : max;                        \
  ------------------
  |  Branch (144:16): [True: 0, False: 0]
  ------------------
  145|  46.0k|    }
stack.c:safe_div_int:
  201|  46.0k|    {                                                                \
  202|  46.0k|        if (b == 0) {                                                \
  ------------------
  |  Branch (202:13): [True: 0, False: 46.0k]
  ------------------
  203|      0|            *err |= 1;                                               \
  204|      0|            return a < 0 ? min : max;                                \
  ------------------
  |  Branch (204:20): [True: 0, False: 0]
  ------------------
  205|      0|        }                                                            \
  206|  46.0k|        if (b == -1 && a == min) {                                   \
  ------------------
  |  Branch (206:13): [True: 0, False: 46.0k]
  |  Branch (206:24): [True: 0, False: 0]
  ------------------
  207|      0|            *err |= 1;                                               \
  208|      0|            return max;                                              \
  209|      0|        }                                                            \
  210|  46.0k|        return a / b;                                                \
  211|  46.0k|    }

ssl_cert.c:ssl_x509_store_ctx_init_ossl_:
   73|      1|    {                                \
   74|      1|        init##_ossl_ret_ = init();   \
   75|      1|    }                                \
ssl_init.c:ossl_init_ssl_base_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
do_engine_lock_init_ossl_:
   41|      2|    {                              \
   42|      2|        init##_ossl_ret_ = init(); \
   43|      2|    }                              \
err.c:do_err_strings_init_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
context.c:default_context_do_init_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_base_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_register_atexit_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_load_crypto_nodelete_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_load_crypto_strings_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_load_ssl_strings_ossl_:
   73|      1|    {                                \
   74|      1|        init##_ossl_ret_ = init();   \
   75|      1|    }                                \
init.c:ossl_init_add_all_ciphers_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_add_all_digests_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_config_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_engine_rdrand_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_engine_dynamic_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
init.c:ossl_init_engine_padlock_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
initthread.c:ossl_init_thread_once_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
initthread.c:create_global_tevent_register_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
o_names.c:o_names_init_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
obj_dat.c:obj_api_initialise_ossl_:
   73|      1|    {                                \
   74|      1|        init##_ossl_ret_ = init();   \
   75|      1|    }                                \
obj_xref.c:o_sig_init_ossl_:
   73|      1|    {                                \
   74|      1|        init##_ossl_ret_ = init();   \
   75|      1|    }                                \
rand_lib.c:do_rand_init_ossl_:
   73|      1|    {                                \
   74|      1|        init##_ossl_ret_ = init();   \
   75|      1|    }                                \

ssl_sess.c:ossl_time_add:
  169|    438|{
  170|    438|    OSSL_TIME r;
  171|    438|    int err = 0;
  172|       |
  173|    438|    r.t = safe_add_time(a.t, b.t, &err);
  174|    438|    return err ? ossl_time_infinite() : r;
  ------------------
  |  Branch (174:12): [True: 0, False: 438]
  ------------------
  175|    438|}
ssl_sess.c:ossl_ticks2time:
   59|    438|{
   60|    438|    OSSL_TIME r;
   61|       |
   62|    438|    r.t = ticks;
   63|    438|    return r;
   64|    438|}
ssl_sess.c:ossl_time_is_zero:
  157|    219|{
  158|    219|    return ossl_time_compare(t, ossl_time_zero()) == 0;
  159|    219|}
ssl_sess.c:ossl_time_compare:
  147|    219|{
  148|    219|    if (a.t > b.t)
  ------------------
  |  Branch (148:9): [True: 219, False: 0]
  ------------------
  149|    219|        return 1;
  150|      0|    if (a.t < b.t)
  ------------------
  |  Branch (150:9): [True: 0, False: 0]
  ------------------
  151|      0|        return -1;
  152|      0|    return 0;
  153|      0|}
ssl_sess.c:ossl_time_zero:
   79|    219|{
   80|    219|    return ossl_ticks2time(0);
   81|    219|}
ssl_sess.c:ossl_time_from_time_t:
  137|    220|{
  138|    220|    OSSL_TIME ot;
  139|       |
  140|    220|    ot.t = t;
  141|    220|    ot.t *= OSSL_TIME_SECOND;
  ------------------
  |  |   31|    220|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  ------------------
  142|    220|    return ot;
  143|    220|}
t1_lib.c:ossl_ticks2time:
   59|    220|{
   60|    220|    OSSL_TIME r;
   61|       |
   62|    220|    r.t = ticks;
   63|    220|    return r;
   64|    220|}

a_mbstr.c:is_unicode_valid:
   27|  4.82M|{
   28|  4.82M|    return value <= UNICODE_MAX && !is_unicode_surrogate(value);
  ------------------
  |  Branch (28:12): [True: 4.82M, False: 0]
  |  Branch (28:36): [True: 4.82M, False: 0]
  ------------------
   29|  4.82M|}
a_mbstr.c:is_unicode_surrogate:
   22|  4.82M|{
   23|  4.82M|    return value >= SURROGATE_MIN && value <= SURROGATE_MAX;
  ------------------
  |  Branch (23:12): [True: 0, False: 4.82M]
  |  Branch (23:38): [True: 0, False: 0]
  ------------------
   24|  4.82M|}

ASN1_TYPE_new:
  800|   142k|    {                                                               \
  801|   142k|        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
  ------------------
  |  |  433|   142k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  802|   142k|    }                                                               \
X509_ALGOR_new:
  800|  63.9k|    {                                                               \
  801|  63.9k|        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  802|  63.9k|    }                                                               \
X509_ALGOR_free:
  804|  63.9k|    {                                                               \
  805|  63.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  63.9k|    }
RSAPublicKey_it:
  241|  23.2k|    ASN1_ITEM_start(tname)                              \
  ------------------
  |  |   97|  23.2k|    {                                  \
  |  |   98|  23.2k|        static const ASN1_ITEM local_it = {
  ------------------
  242|  23.2k|        ASN1_ITYPE_SEQUENCE,                            \
  ------------------
  |  |   83|  23.2k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  243|  23.2k|        V_ASN1_SEQUENCE,                                \
  ------------------
  |  |   76|  23.2k|#define V_ASN1_SEQUENCE 16
  ------------------
  244|  23.2k|        tname##_seq_tt,                                 \
  245|  23.2k|        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
  246|  23.2k|        &tname##_aux,                                   \
  247|  23.2k|        sizeof(stname),                                 \
  248|  23.2k|        #tname ASN1_ITEM_end(tname)
  ------------------
  |  |  104|  23.2k|    }                         \
  |  |  105|  23.2k|    ;                         \
  |  |  106|  23.2k|    return &local_it;         \
  |  |  107|  23.2k|    }
  ------------------
RSA_PSS_PARAMS_it:
  241|  23.2k|    ASN1_ITEM_start(tname)                              \
  ------------------
  |  |   97|  23.2k|    {                                  \
  |  |   98|  23.2k|        static const ASN1_ITEM local_it = {
  ------------------
  242|  23.2k|        ASN1_ITYPE_SEQUENCE,                            \
  ------------------
  |  |   83|  23.2k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  243|  23.2k|        V_ASN1_SEQUENCE,                                \
  ------------------
  |  |   76|  23.2k|#define V_ASN1_SEQUENCE 16
  ------------------
  244|  23.2k|        tname##_seq_tt,                                 \
  245|  23.2k|        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
  246|  23.2k|        &tname##_aux,                                   \
  247|  23.2k|        sizeof(stname),                                 \
  248|  23.2k|        #tname ASN1_ITEM_end(tname)
  ------------------
  |  |  104|  23.2k|    }                         \
  |  |  105|  23.2k|    ;                         \
  |  |  106|  23.2k|    return &local_it;         \
  |  |  107|  23.2k|    }
  ------------------
RSA_PSS_PARAMS_free:
  804|  23.2k|    {                                                               \
  805|  23.2k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  23.2k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  23.2k|    }
d2i_RSAPublicKey:
  814|  23.2k|    {                                                                                      \
  815|  23.2k|        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
  ------------------
  |  |  433|  23.2k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  816|  23.2k|    }                                                                                      \
GENERAL_NAMES_free:
  804|  63.9k|    {                                                               \
  805|  63.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  63.9k|    }
NAME_CONSTRAINTS_free:
  804|  63.9k|    {                                                               \
  805|  63.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  63.9k|    }
X509_CRL_it:
  241|  31.9k|    ASN1_ITEM_start(tname)                              \
  ------------------
  |  |   97|  31.9k|    {                                  \
  |  |   98|  31.9k|        static const ASN1_ITEM local_it = {
  ------------------
  242|  31.9k|        ASN1_ITYPE_SEQUENCE,                            \
  ------------------
  |  |   83|  31.9k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  243|  31.9k|        V_ASN1_SEQUENCE,                                \
  ------------------
  |  |   76|  31.9k|#define V_ASN1_SEQUENCE 16
  ------------------
  244|  31.9k|        tname##_seq_tt,                                 \
  245|  31.9k|        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
  246|  31.9k|        &tname##_aux,                                   \
  247|  31.9k|        sizeof(stname),                                 \
  248|  31.9k|        #tname ASN1_ITEM_end(tname)
  ------------------
  |  |  104|  31.9k|    }                         \
  |  |  105|  31.9k|    ;                         \
  |  |  106|  31.9k|    return &local_it;         \
  |  |  107|  31.9k|    }
  ------------------
X509_CRL_free:
  804|  31.9k|    {                                                               \
  805|  31.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  31.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  31.9k|    }
X509_NAME_ENTRY_new:
  800|   228k|    {                                                               \
  801|   228k|        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
  ------------------
  |  |  433|   228k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  802|   228k|    }                                                               \
X509_NAME_ENTRY_free:
  804|   521k|    {                                                               \
  805|   521k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|   521k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|   521k|    }
d2i_X509_PUBKEY:
  814|  31.9k|    {                                                                                      \
  815|  31.9k|        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
  ------------------
  |  |  433|  31.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  816|  31.9k|    }                                                                                      \
X509_PUBKEY_free:
  804|  63.9k|    {                                                               \
  805|  63.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  63.9k|    }
X509_CINF_it:
  241|  95.9k|    ASN1_ITEM_start(tname)                              \
  ------------------
  |  |   97|  95.9k|    {                                  \
  |  |   98|  95.9k|        static const ASN1_ITEM local_it = {
  ------------------
  242|  95.9k|        ASN1_ITYPE_SEQUENCE,                            \
  ------------------
  |  |   83|  95.9k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  243|  95.9k|        V_ASN1_SEQUENCE,                                \
  ------------------
  |  |   76|  95.9k|#define V_ASN1_SEQUENCE 16
  ------------------
  244|  95.9k|        tname##_seq_tt,                                 \
  245|  95.9k|        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
  246|  95.9k|        &tname##_aux,                                   \
  247|  95.9k|        sizeof(stname),                                 \
  248|  95.9k|        #tname ASN1_ITEM_end(tname)
  ------------------
  |  |  104|  95.9k|    }                         \
  |  |  105|  95.9k|    ;                         \
  |  |  106|  95.9k|    return &local_it;         \
  |  |  107|  95.9k|    }
  ------------------
X509_it:
  241|   134k|    ASN1_ITEM_start(tname)                              \
  ------------------
  |  |   97|   134k|    {                                  \
  |  |   98|   134k|        static const ASN1_ITEM local_it = {
  ------------------
  242|   134k|        ASN1_ITYPE_SEQUENCE,                            \
  ------------------
  |  |   83|   134k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  243|   134k|        V_ASN1_SEQUENCE,                                \
  ------------------
  |  |   76|   134k|#define V_ASN1_SEQUENCE 16
  ------------------
  244|   134k|        tname##_seq_tt,                                 \
  245|   134k|        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
  246|   134k|        &tname##_aux,                                   \
  247|   134k|        sizeof(stname),                                 \
  248|   134k|        #tname ASN1_ITEM_end(tname)
  ------------------
  |  |  104|   134k|    }                         \
  |  |  105|   134k|    ;                         \
  |  |  106|   134k|    return &local_it;         \
  |  |  107|   134k|    }
  ------------------
d2i_X509:
  814|  31.9k|    {                                                                                      \
  815|  31.9k|        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
  ------------------
  |  |  433|  31.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  816|  31.9k|    }                                                                                      \
X509_free:
  804|  70.1k|    {                                                               \
  805|  70.1k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  70.1k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  70.1k|    }
X509_CERT_AUX_free:
  804|  63.9k|    {                                                               \
  805|  63.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  63.9k|    }
AUTHORITY_KEYID_free:
  804|  63.9k|    {                                                               \
  805|  63.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  63.9k|    }
ASIdentifiers_free:
  804|  63.9k|    {                                                               \
  805|  63.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  63.9k|    }
CRL_DIST_POINTS_free:
  804|  63.9k|    {                                                               \
  805|  63.9k|        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
  ------------------
  |  |  433|  63.9k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  806|  63.9k|    }

ml_kem.c:OPENSSL_store_u64_le:
  160|  63.0k|{
  161|  63.0k|#ifdef OSSL_HTOLE64
  162|  63.0k|    uint64_t t = OSSL_HTOLE64(val);
  ------------------
  |  |   52|  63.0k|#define OSSL_HTOLE64(x) htole64(x)
  ------------------
  163|       |
  164|  63.0k|    memcpy(out, (unsigned char *)&t, 8);
  165|  63.0k|    return out + 8;
  166|       |#else
  167|       |    *out++ = (val & 0xff);
  168|       |    *out++ = (val >> 8) & 0xff;
  169|       |    *out++ = (val >> 16) & 0xff;
  170|       |    *out++ = (val >> 24) & 0xff;
  171|       |    *out++ = (val >> 32) & 0xff;
  172|       |    *out++ = (val >> 40) & 0xff;
  173|       |    *out++ = (val >> 48) & 0xff;
  174|       |    *out++ = (val >> 56) & 0xff;
  175|       |    return out;
  176|       |#endif
  177|  63.0k|}

tls_common.c:OSSL_FUNC_rlayer_skip_early_data:
   60|  1.31k|    {                                                  \
   61|  1.31k|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|  1.31k|    }
tls_common.c:OSSL_FUNC_rlayer_security:
   60|  1.31k|    {                                                  \
   61|  1.31k|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|  1.31k|    }
decoder_meth.c:OSSL_FUNC_decoder_newctx:
   60|     76|    {                                                  \
   61|     76|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     76|    }
decoder_meth.c:OSSL_FUNC_decoder_freectx:
   60|     76|    {                                                  \
   61|     76|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     76|    }
decoder_meth.c:OSSL_FUNC_decoder_set_ctx_params:
   60|     74|    {                                                  \
   61|     74|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     74|    }
decoder_meth.c:OSSL_FUNC_decoder_settable_ctx_params:
   60|     74|    {                                                  \
   61|     74|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     74|    }
decoder_meth.c:OSSL_FUNC_decoder_does_selection:
   60|     73|    {                                                  \
   61|     73|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     73|    }
decoder_meth.c:OSSL_FUNC_decoder_decode:
   60|     76|    {                                                  \
   61|     76|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     76|    }
decoder_meth.c:OSSL_FUNC_decoder_export_object:
   60|     73|    {                                                  \
   61|     73|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     73|    }
digest.c:OSSL_FUNC_digest_newctx:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_init:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_update:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_final:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_squeeze:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
digest.c:OSSL_FUNC_digest_freectx:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_dupctx:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_get_params:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_set_ctx_params:
   60|      8|    {                                                  \
   61|      8|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      8|    }
digest.c:OSSL_FUNC_digest_get_ctx_params:
   60|      6|    {                                                  \
   61|      6|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      6|    }
digest.c:OSSL_FUNC_digest_gettable_params:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_settable_ctx_params:
   60|      8|    {                                                  \
   61|      8|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      8|    }
digest.c:OSSL_FUNC_digest_gettable_ctx_params:
   60|      6|    {                                                  \
   61|      6|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      6|    }
digest.c:OSSL_FUNC_digest_copyctx:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
evp_enc.c:OSSL_FUNC_cipher_newctx:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_encrypt_init:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_decrypt_init:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_encrypt_skey_init:
   60|     68|    {                                                  \
   61|     68|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     68|    }
evp_enc.c:OSSL_FUNC_cipher_decrypt_skey_init:
   60|     68|    {                                                  \
   61|     68|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     68|    }
evp_enc.c:OSSL_FUNC_cipher_update:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_final:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_cipher:
   60|    118|    {                                                  \
   61|    118|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    118|    }
evp_enc.c:OSSL_FUNC_cipher_freectx:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_dupctx:
   60|    129|    {                                                  \
   61|    129|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    129|    }
evp_enc.c:OSSL_FUNC_cipher_get_params:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_get_ctx_params:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_set_ctx_params:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_gettable_params:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_gettable_ctx_params:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
evp_enc.c:OSSL_FUNC_cipher_settable_ctx_params:
   60|    130|    {                                                  \
   61|    130|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|    130|    }
exchange.c:OSSL_FUNC_keyexch_newctx:
   60|      7|    {                                                  \
   61|      7|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      7|    }
exchange.c:OSSL_FUNC_keyexch_init:
   60|      7|    {                                                  \
   61|      7|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      7|    }
exchange.c:OSSL_FUNC_keyexch_set_peer:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
exchange.c:OSSL_FUNC_keyexch_derive:
   60|      7|    {                                                  \
   61|      7|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      7|    }
exchange.c:OSSL_FUNC_keyexch_freectx:
   60|      7|    {                                                  \
   61|      7|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      7|    }
exchange.c:OSSL_FUNC_keyexch_dupctx:
   60|      7|    {                                                  \
   61|      7|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      7|    }
exchange.c:OSSL_FUNC_keyexch_get_ctx_params:
   60|      7|    {                                                  \
   61|      7|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      7|    }
exchange.c:OSSL_FUNC_keyexch_gettable_ctx_params:
   60|      7|    {                                                  \
   61|      7|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      7|    }
exchange.c:OSSL_FUNC_keyexch_set_ctx_params:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
exchange.c:OSSL_FUNC_keyexch_settable_ctx_params:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
exchange.c:OSSL_FUNC_keyexch_derive_skey:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_new:
   60|     40|    {                                                  \
   61|     40|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     40|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_init:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_set_template:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_set_params:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_settable_params:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_get_params:
   60|      2|    {                                                  \
   61|      2|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      2|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_gettable_params:
   60|      2|    {                                                  \
   61|      2|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      2|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_cleanup:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_free:
   60|     40|    {                                                  \
   61|     40|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     40|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_load:
   60|     29|    {                                                  \
   61|     29|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     29|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_get_params:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gettable_params:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_set_params:
   60|     19|    {                                                  \
   61|     19|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     19|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_settable_params:
   60|     19|    {                                                  \
   61|     19|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     19|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_query_operation_name:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_has:
   60|     40|    {                                                  \
   61|     40|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     40|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_dup:
   60|     33|    {                                                  \
   61|     33|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     33|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_validate:
   60|     29|    {                                                  \
   61|     29|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     29|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_match:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_import:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_import_types:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_export:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_export_types:
   60|     37|    {                                                  \
   61|     37|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     37|    }
signature.c:OSSL_FUNC_signature_newctx:
   60|     59|    {                                                  \
   61|     59|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     59|    }
signature.c:OSSL_FUNC_signature_sign_init:
   60|     40|    {                                                  \
   61|     40|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     40|    }
signature.c:OSSL_FUNC_signature_sign:
   60|     55|    {                                                  \
   61|     55|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     55|    }
signature.c:OSSL_FUNC_signature_sign_message_init:
   60|     51|    {                                                  \
   61|     51|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     51|    }
signature.c:OSSL_FUNC_signature_sign_message_update:
   60|     34|    {                                                  \
   61|     34|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     34|    }
signature.c:OSSL_FUNC_signature_sign_message_final:
   60|     34|    {                                                  \
   61|     34|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     34|    }
signature.c:OSSL_FUNC_signature_verify_init:
   60|     40|    {                                                  \
   61|     40|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     40|    }
signature.c:OSSL_FUNC_signature_verify:
   60|     55|    {                                                  \
   61|     55|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     55|    }
signature.c:OSSL_FUNC_signature_verify_message_init:
   60|     51|    {                                                  \
   61|     51|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     51|    }
signature.c:OSSL_FUNC_signature_verify_message_update:
   60|     34|    {                                                  \
   61|     34|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     34|    }
signature.c:OSSL_FUNC_signature_verify_message_final:
   60|     34|    {                                                  \
   61|     34|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     34|    }
signature.c:OSSL_FUNC_signature_verify_recover_init:
   60|     14|    {                                                  \
   61|     14|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     14|    }
signature.c:OSSL_FUNC_signature_verify_recover:
   60|     14|    {                                                  \
   61|     14|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     14|    }
signature.c:OSSL_FUNC_signature_digest_sign_init:
   60|     25|    {                                                  \
   61|     25|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     25|    }
signature.c:OSSL_FUNC_signature_digest_sign_update:
   60|      8|    {                                                  \
   61|      8|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      8|    }
signature.c:OSSL_FUNC_signature_digest_sign_final:
   60|      8|    {                                                  \
   61|      8|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      8|    }
signature.c:OSSL_FUNC_signature_digest_sign:
   60|     17|    {                                                  \
   61|     17|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     17|    }
signature.c:OSSL_FUNC_signature_digest_verify_init:
   60|     21|    {                                                  \
   61|     21|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     21|    }
signature.c:OSSL_FUNC_signature_digest_verify_update:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
signature.c:OSSL_FUNC_signature_digest_verify_final:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
signature.c:OSSL_FUNC_signature_digest_verify:
   60|     17|    {                                                  \
   61|     17|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     17|    }
signature.c:OSSL_FUNC_signature_freectx:
   60|     59|    {                                                  \
   61|     59|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     59|    }
signature.c:OSSL_FUNC_signature_dupctx:
   60|     59|    {                                                  \
   61|     59|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     59|    }
signature.c:OSSL_FUNC_signature_get_ctx_params:
   60|     55|    {                                                  \
   61|     55|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     55|    }
signature.c:OSSL_FUNC_signature_gettable_ctx_params:
   60|     55|    {                                                  \
   61|     55|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     55|    }
signature.c:OSSL_FUNC_signature_set_ctx_params:
   60|     59|    {                                                  \
   61|     59|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     59|    }
signature.c:OSSL_FUNC_signature_settable_ctx_params:
   60|     59|    {                                                  \
   61|     59|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     59|    }
signature.c:OSSL_FUNC_signature_get_ctx_md_params:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
signature.c:OSSL_FUNC_signature_gettable_ctx_md_params:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
signature.c:OSSL_FUNC_signature_set_ctx_md_params:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
signature.c:OSSL_FUNC_signature_settable_ctx_md_params:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
signature.c:OSSL_FUNC_signature_query_key_types:
   60|     36|    {                                                  \
   61|     36|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     36|    }
provider_core.c:OSSL_FUNC_provider_teardown:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_core.c:OSSL_FUNC_provider_gettable_params:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_core.c:OSSL_FUNC_provider_get_params:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_core.c:OSSL_FUNC_provider_get_capabilities:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_core.c:OSSL_FUNC_provider_query_operation:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
defltprov.c:OSSL_FUNC_core_gettable_params:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
defltprov.c:OSSL_FUNC_core_get_params:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
defltprov.c:OSSL_FUNC_core_get_libctx:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_new_file:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_new_membuf:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_read_ex:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_write_ex:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_gets:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_puts:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_ctrl:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_up_ref:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_free:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
bio_prov.c:OSSL_FUNC_BIO_vprintf:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_seeding.c:OSSL_FUNC_get_entropy:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_seeding.c:OSSL_FUNC_get_user_entropy:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_seeding.c:OSSL_FUNC_cleanup_entropy:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_seeding.c:OSSL_FUNC_cleanup_user_entropy:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_seeding.c:OSSL_FUNC_get_nonce:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_seeding.c:OSSL_FUNC_get_user_nonce:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_seeding.c:OSSL_FUNC_cleanup_nonce:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
provider_seeding.c:OSSL_FUNC_cleanup_user_nonce:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
drbg.c:OSSL_FUNC_rand_enable_locking:
   60|      3|    {                                                  \
   61|      3|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      3|    }
drbg.c:OSSL_FUNC_rand_lock:
   60|      3|    {                                                  \
   61|      3|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      3|    }
drbg.c:OSSL_FUNC_rand_unlock:
   60|      3|    {                                                  \
   61|      3|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      3|    }
drbg.c:OSSL_FUNC_rand_get_ctx_params:
   60|      3|    {                                                  \
   61|      3|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      3|    }
drbg.c:OSSL_FUNC_rand_get_seed:
   60|      3|    {                                                  \
   61|      3|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      3|    }
drbg.c:OSSL_FUNC_rand_clear_seed:
   60|      3|    {                                                  \
   61|      3|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      3|    }
evp_rand.c:OSSL_FUNC_rand_newctx:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_freectx:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_instantiate:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_uninstantiate:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_generate:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_reseed:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_nonce:
   60|      1|    {                                                  \
   61|      1|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      1|    }
evp_rand.c:OSSL_FUNC_rand_enable_locking:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_lock:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_unlock:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_gettable_ctx_params:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_settable_ctx_params:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
evp_rand.c:OSSL_FUNC_rand_get_ctx_params:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_set_ctx_params:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }
evp_rand.c:OSSL_FUNC_rand_verify_zeroization:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_get_seed:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
evp_rand.c:OSSL_FUNC_rand_clear_seed:
   60|      4|    {                                                  \
   61|      4|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      4|    }

conf_mod.c:ERR_GET_REASON:
  258|      2|{
  259|      2|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  241|      2|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  220|      2|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (241:35): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  260|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  221|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  261|      2|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  232|      2|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  262|      2|}
err.c:ERR_GET_LIB:
  244|  9.48k|{
  245|  9.48k|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  241|  9.48k|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  220|  9.48k|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (241:35): [True: 0, False: 9.48k]
  |  |  ------------------
  ------------------
  246|      0|        return ERR_LIB_SYS;
  ------------------
  |  |   74|      0|#define ERR_LIB_SYS 2
  ------------------
  247|  9.48k|    return (errcode >> ERR_LIB_OFFSET) & ERR_LIB_MASK;
  ------------------
  |  |  228|  9.48k|#define ERR_LIB_OFFSET 23L
  ------------------
                  return (errcode >> ERR_LIB_OFFSET) & ERR_LIB_MASK;
  ------------------
  |  |  229|  9.48k|#define ERR_LIB_MASK 0xFF
  ------------------
  248|  9.48k|}
err.c:ERR_GET_REASON:
  258|     71|{
  259|     71|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  241|     71|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  220|     71|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (241:35): [True: 0, False: 71]
  |  |  ------------------
  ------------------
  260|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  221|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  261|     71|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  232|     71|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  262|     71|}
pem_info.c:ERR_GET_REASON:
  258|    219|{
  259|    219|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  241|    219|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  220|    219|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (241:35): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  260|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  221|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  261|    219|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  232|    219|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  262|    219|}
a_d2i_fp.c:ERR_GET_REASON:
  258|  63.9k|{
  259|  63.9k|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  241|  63.9k|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  220|  63.9k|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (241:35): [True: 0, False: 63.9k]
  |  |  ------------------
  ------------------
  260|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  221|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  261|  63.9k|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  232|  63.9k|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  262|  63.9k|}
conf_def.c:ERR_GET_REASON:
  258|      2|{
  259|      2|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  241|      2|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  220|      2|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (241:35): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  260|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  221|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  261|      2|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  232|      2|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  262|      2|}

ssl_lib.c:lh_SSL_SESSION_new:
  334|    220|    {                                                                                                                      \
  335|    220|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|    220|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|    220|            lh_##type##_doall_thunk,                                                                                       \
  338|    220|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|    220|    }                                                                                                                      \
ssl_lib.c:lh_SSL_SESSION_free:
  271|    220|    {                                                                                                                      \
  272|    220|        OPENSSL_LH_free((OPENSSL_LHASH *)lh);                                                                              \
  273|    220|    }                                                                                                                      \
ssl_sess.c:lh_SSL_SESSION_get_down_load:
  306|    220|    {                                                                                                                      \
  307|    220|        return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh);                                                              \
  308|    220|    }                                                                                                                      \
ssl_sess.c:lh_SSL_SESSION_set_down_load:
  311|    440|    {                                                                                                                      \
  312|    440|        OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl);                                                                 \
  313|    440|    }                                                                                                                      \
decoder_pkey.c:lh_DECODER_CACHE_ENTRY_new:
  334|      2|    {                                                                                                                      \
  335|      2|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|      2|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|      2|            lh_##type##_doall_thunk,                                                                                       \
  338|      2|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|      2|    }                                                                                                                      \
decoder_pkey.c:lh_DECODER_CACHE_ENTRY_hfn_thunk:
  260|  31.9k|    {                                                                                                                      \
  261|  31.9k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|  31.9k|        return hfn_conv((const type *)data);                                                                               \
  263|  31.9k|    }                                                                                                                      \
decoder_pkey.c:lh_DECODER_CACHE_ENTRY_cfn_thunk:
  265|  31.9k|    {                                                                                                                      \
  266|  31.9k|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                            \
  267|  31.9k|        return cfn_conv((const type *)da, (const type *)db);                                                               \
  268|  31.9k|    }                                                                                                                      \
decoder_pkey.c:lh_DECODER_CACHE_ENTRY_retrieve:
  291|  31.9k|    {                                                                                                                      \
  292|  31.9k|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|  31.9k|    }                                                                                                                      \
decoder_pkey.c:lh_DECODER_CACHE_ENTRY_insert:
  281|      2|    {                                                                                                                      \
  282|      2|        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d);                                                          \
  283|      2|    }                                                                                                                      \
decoder_pkey.c:lh_DECODER_CACHE_ENTRY_error:
  296|      2|    {                                                                                                                      \
  297|      2|        return OPENSSL_LH_error((OPENSSL_LHASH *)lh);                                                                      \
  298|      2|    }                                                                                                                      \
err.c:ossl_check_ERR_STRING_DATA_lh_type:
  208|  9.40k|    {                                                                                                          \
  209|  9.40k|        return (OPENSSL_LHASH *)lh;                                                                            \
  210|  9.40k|    }                                                                                                          \
err.c:ossl_check_ERR_STRING_DATA_lh_hashfunc_type:
  218|      2|    {                                                                                                          \
  219|      2|        return (OPENSSL_LH_HASHFUNC)hfn;                                                                       \
  220|      2|    }                                                                                                          \
err.c:ossl_check_ERR_STRING_DATA_lh_compfunc_type:
  213|      2|    {                                                                                                          \
  214|      2|        return (OPENSSL_LH_COMPFUNC)cmp;                                                                       \
  215|      2|    }                                                                                                          \
err.c:lh_ERR_STRING_DATA_hash_thunk:
  172|  9.40k|    {                                                                                                          \
  173|  9.40k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                        \
  174|  9.40k|        return hfn_conv((const type *)data);                                                                   \
  175|  9.40k|    }                                                                                                          \
err.c:lh_ERR_STRING_DATA_comp_thunk:
  177|  6.19k|    {                                                                                                          \
  178|  6.19k|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                \
  179|  6.19k|        return cfn_conv((const type *)da, (const type *)db);                                                   \
  180|  6.19k|    }                                                                                                          \
err.c:ossl_check_ERR_STRING_DATA_lh_plain_type:
  193|  9.26k|    {                                                                                                          \
  194|  9.26k|        return ptr;                                                                                            \
  195|  9.26k|    }                                                                                                          \
err.c:ossl_check_const_ERR_STRING_DATA_lh_plain_type:
  198|    142|    {                                                                                                          \
  199|    142|        return ptr;                                                                                            \
  200|    142|    }                                                                                                          \
o_names.c:lh_OBJ_NAME_new:
  334|      2|    {                                                                                                                      \
  335|      2|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|      2|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|      2|            lh_##type##_doall_thunk,                                                                                       \
  338|      2|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|      2|    }                                                                                                                      \
o_names.c:lh_OBJ_NAME_hfn_thunk:
  260|  1.49k|    {                                                                                                                      \
  261|  1.49k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|  1.49k|        return hfn_conv((const type *)data);                                                                               \
  263|  1.49k|    }                                                                                                                      \
o_names.c:lh_OBJ_NAME_cfn_thunk:
  265|    858|    {                                                                                                                      \
  266|    858|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                            \
  267|    858|        return cfn_conv((const type *)da, (const type *)db);                                                               \
  268|    858|    }                                                                                                                      \
o_names.c:lh_OBJ_NAME_retrieve:
  291|    651|    {                                                                                                                      \
  292|    651|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|    651|    }                                                                                                                      \
o_names.c:lh_OBJ_NAME_insert:
  281|    848|    {                                                                                                                      \
  282|    848|        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d);                                                          \
  283|    848|    }                                                                                                                      \
o_names.c:lh_OBJ_NAME_error:
  296|    484|    {                                                                                                                      \
  297|    484|        return OPENSSL_LH_error((OPENSSL_LHASH *)lh);                                                                      \
  298|    484|    }                                                                                                                      \
o_names.c:lh_OBJ_NAME_doall_OBJ_DOALL:
  371|      2|    {                                                                                       \
  372|      2|        OPENSSL_LH_doall_arg_thunk((OPENSSL_LHASH *)lh,                                     \
  373|      2|            lh_##type##_doall_##argtype##_thunk,                                            \
  374|      2|            (OPENSSL_LH_DOALL_FUNCARG)fn,                                                   \
  375|      2|            (void *)arg);                                                                   \
  376|      2|    }                                                                                       \
o_names.c:lh_OBJ_NAME_doall_OBJ_DOALL_thunk:
  363|    484|    {                                                                                       \
  364|    484|        void (*fn_conv)(cbargtype *, argtype *) = (void (*)(cbargtype *, argtype *))fn;     \
  365|    484|        fn_conv((cbargtype *)node, (argtype *)arg);                                         \
  366|    484|    }                                                                                       \
obj_dat.c:lh_ADDED_OBJ_new:
  334|      1|    {                                                                                                                      \
  335|      1|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|      1|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|      1|            lh_##type##_doall_thunk,                                                                                       \
  338|      1|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|      1|    }                                                                                                                      \
obj_dat.c:lh_ADDED_OBJ_hfn_thunk:
  260|  8.45k|    {                                                                                                                      \
  261|  8.45k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|  8.45k|        return hfn_conv((const type *)data);                                                                               \
  263|  8.45k|    }                                                                                                                      \
obj_dat.c:lh_ADDED_OBJ_retrieve:
  291|  8.45k|    {                                                                                                                      \
  292|  8.45k|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|  8.45k|    }                                                                                                                      \
defn_cache.c:lh_PROPERTY_DEFN_ELEM_new:
  334|      2|    {                                                                                                                      \
  335|      2|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|      2|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|      2|            lh_##type##_doall_thunk,                                                                                       \
  338|      2|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|      2|    }                                                                                                                      \
defn_cache.c:lh_PROPERTY_DEFN_ELEM_hfn_thunk:
  260|    376|    {                                                                                                                      \
  261|    376|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|    376|        return hfn_conv((const type *)data);                                                                               \
  263|    376|    }                                                                                                                      \
defn_cache.c:lh_PROPERTY_DEFN_ELEM_cfn_thunk:
  265|    328|    {                                                                                                                      \
  266|    328|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                            \
  267|    328|        return cfn_conv((const type *)da, (const type *)db);                                                               \
  268|    328|    }                                                                                                                      \
defn_cache.c:lh_PROPERTY_DEFN_ELEM_retrieve:
  291|    360|    {                                                                                                                      \
  292|    360|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|    360|    }                                                                                                                      \
defn_cache.c:lh_PROPERTY_DEFN_ELEM_insert:
  281|     16|    {                                                                                                                      \
  282|     16|        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d);                                                          \
  283|     16|    }                                                                                                                      \
defn_cache.c:lh_PROPERTY_DEFN_ELEM_error:
  296|     16|    {                                                                                                                      \
  297|     16|        return OPENSSL_LH_error((OPENSSL_LHASH *)lh);                                                                      \
  298|     16|    }                                                                                                                      \
property.c:lh_QUERY_doall:
  328|     46|    {                                                                                                                      \
  329|     46|        OPENSSL_LH_doall((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNC)doall);                                               \
  330|     46|    }                                                                                                                      \
property.c:lh_QUERY_new:
  334|    298|    {                                                                                                                      \
  335|    298|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|    298|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|    298|            lh_##type##_doall_thunk,                                                                                       \
  338|    298|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|    298|    }                                                                                                                      \
property.c:lh_QUERY_hfn_thunk:
  260|  27.1k|    {                                                                                                                      \
  261|  27.1k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|  27.1k|        return hfn_conv((const type *)data);                                                                               \
  263|  27.1k|    }                                                                                                                      \
property.c:lh_QUERY_cfn_thunk:
  265|  27.0k|    {                                                                                                                      \
  266|  27.0k|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                            \
  267|  27.0k|        return cfn_conv((const type *)da, (const type *)db);                                                               \
  268|  27.0k|    }                                                                                                                      \
property.c:lh_QUERY_num_items:
  301|     46|    {                                                                                                                      \
  302|     46|        return OPENSSL_LH_num_items((OPENSSL_LHASH *)lh);                                                                  \
  303|     46|    }                                                                                                                      \
property.c:lh_QUERY_flush:
  276|     46|    {                                                                                                                      \
  277|     46|        OPENSSL_LH_flush((OPENSSL_LHASH *)lh);                                                                             \
  278|     46|    }                                                                                                                      \
property.c:lh_QUERY_retrieve:
  291|  27.0k|    {                                                                                                                      \
  292|  27.0k|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|  27.0k|    }                                                                                                                      \
property.c:lh_QUERY_insert:
  281|     49|    {                                                                                                                      \
  282|     49|        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d);                                                          \
  283|     49|    }                                                                                                                      \
property.c:lh_QUERY_error:
  296|     49|    {                                                                                                                      \
  297|     49|        return OPENSSL_LH_error((OPENSSL_LHASH *)lh);                                                                      \
  298|     49|    }                                                                                                                      \
property_string.c:lh_PROPERTY_STRING_new:
  334|      4|    {                                                                                                                      \
  335|      4|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|      4|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|      4|            lh_##type##_doall_thunk,                                                                                       \
  338|      4|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|      4|    }                                                                                                                      \
property_string.c:lh_PROPERTY_STRING_hfn_thunk:
  260|    824|    {                                                                                                                      \
  261|    824|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|    824|        return hfn_conv((const type *)data);                                                                               \
  263|    824|    }                                                                                                                      \
property_string.c:lh_PROPERTY_STRING_cfn_thunk:
  265|    734|    {                                                                                                                      \
  266|    734|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                            \
  267|    734|        return cfn_conv((const type *)da, (const type *)db);                                                               \
  268|    734|    }                                                                                                                      \
property_string.c:lh_PROPERTY_STRING_retrieve:
  291|    794|    {                                                                                                                      \
  292|    794|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|    794|    }                                                                                                                      \
property_string.c:lh_PROPERTY_STRING_insert:
  281|     30|    {                                                                                                                      \
  282|     30|        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d);                                                          \
  283|     30|    }                                                                                                                      \
property_string.c:lh_PROPERTY_STRING_error:
  296|     30|    {                                                                                                                      \
  297|     30|        return OPENSSL_LH_error((OPENSSL_LHASH *)lh);                                                                      \
  298|     30|    }                                                                                                                      \

ameth_lib.c:OBJ_bsearch_ameth:
  128|  75.2k|    {                                                                      \
  129|  75.2k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|  75.2k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|  75.2k|    }                                                                      \
ameth_lib.c:ameth_cmp_BSEARCH_CMP_FN:
  122|   220k|    {                                                                      \
  123|   220k|        type1 const *a = a_;                                               \
  124|   220k|        type2 const *b = b_;                                               \
  125|   220k|        return nm##_cmp(a, b);                                             \
  126|   220k|    }                                                                      \
obj_dat.c:OBJ_bsearch_ln:
  128|  5.13k|    {                                                                      \
  129|  5.13k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|  5.13k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|  5.13k|    }                                                                      \
obj_dat.c:ln_cmp_BSEARCH_CMP_FN:
  122|  49.1k|    {                                                                      \
  123|  49.1k|        type1 const *a = a_;                                               \
  124|  49.1k|        type2 const *b = b_;                                               \
  125|  49.1k|        return nm##_cmp(a, b);                                             \
  126|  49.1k|    }                                                                      \
obj_dat.c:OBJ_bsearch_sn:
  128|  5.79k|    {                                                                      \
  129|  5.79k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|  5.79k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|  5.79k|    }                                                                      \
obj_dat.c:sn_cmp_BSEARCH_CMP_FN:
  122|  63.6k|    {                                                                      \
  123|  63.6k|        type1 const *a = a_;                                               \
  124|  63.6k|        type2 const *b = b_;                                               \
  125|  63.6k|        return nm##_cmp(a, b);                                             \
  126|  63.6k|    }                                                                      \
obj_dat.c:OBJ_bsearch_obj:
  128|   525k|    {                                                                      \
  129|   525k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|   525k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|   525k|    }                                                                      \
obj_dat.c:obj_cmp_BSEARCH_CMP_FN:
  122|  5.21M|    {                                                                      \
  123|  5.21M|        type1 const *a = a_;                                               \
  124|  5.21M|        type2 const *b = b_;                                               \
  125|  5.21M|        return nm##_cmp(a, b);                                             \
  126|  5.21M|    }                                                                      \
obj_xref.c:OBJ_bsearch_sig:
  128|    660|    {                                                                      \
  129|    660|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|    660|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|    660|    }                                                                      \
obj_xref.c:sig_cmp_BSEARCH_CMP_FN:
  122|  3.74k|    {                                                                      \
  123|  3.74k|        type1 const *a = a_;                                               \
  124|  3.74k|        type2 const *b = b_;                                               \
  125|  3.74k|        return nm##_cmp(a, b);                                             \
  126|  3.74k|    }                                                                      \

s3_lib.c:ossl_check_X509_NAME_sk_type:
   55|  1.09k|    {                                                                                                           \
   56|  1.09k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  1.09k|    }                                                                                                           \
s3_lib.c:ossl_check_X509_NAME_freefunc_type:
   67|  1.09k|    {                                                                                                           \
   68|  1.09k|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|  1.09k|    }
ssl_ciph.c:ossl_check_const_SSL_CIPHER_sk_type:
   51|  1.98k|    {                                                                                                           \
   52|  1.98k|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|  1.98k|    }                                                                                                           \
ssl_ciph.c:ossl_check_SSL_CIPHER_sk_type:
   55|  14.9k|    {                                                                                                           \
   56|  14.9k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  14.9k|    }                                                                                                           \
ssl_ciph.c:ossl_check_SSL_CIPHER_type:
   47|  13.8k|    {                                                                                                           \
   48|  13.8k|        return ptr;                                                                                             \
   49|  13.8k|    }                                                                                                           \
ssl_ciph.c:ossl_check_SSL_CIPHER_compfunc_type:
   59|    220|    {                                                                                                           \
   60|    220|        return (OPENSSL_sk_compfunc)cmp;                                                                        \
   61|    220|    }                                                                                                           \
ssl_lib.c:ossl_check_const_SSL_CIPHER_sk_type:
   51|  53.4k|    {                                                                                                           \
   52|  53.4k|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|  53.4k|    }                                                                                                           \
ssl_lib.c:sk_danetls_record_pop_free:
  147|    220|    {                                                                                                                      \
  148|    220|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|    220|                                                                                                                           \
  150|    220|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|    220|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|    220|                                                                                                                           \
  153|    220|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|    220|    }                                                                                                                      \
ssl_lib.c:ossl_check_SSL_CIPHER_sk_type:
   55|  14.6k|    {                                                                                                           \
   56|  14.6k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  14.6k|    }                                                                                                           \
ssl_lib.c:ossl_check_X509_EXTENSION_sk_type:
   55|    220|    {                                                                                                           \
   56|    220|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    220|    }                                                                                                           \
ssl_lib.c:ossl_check_X509_EXTENSION_freefunc_type:
   67|    220|    {                                                                                                           \
   68|    220|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    220|    }
ssl_lib.c:ossl_check_OCSP_RESPID_sk_type:
   55|    220|    {                                                                                                           \
   56|    220|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    220|    }                                                                                                           \
ssl_lib.c:ossl_check_OCSP_RESPID_freefunc_type:
   67|    220|    {                                                                                                           \
   68|    220|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    220|    }
ssl_lib.c:sk_OCSP_RESPONSE_pop_free:
  147|    220|    {                                                                                                                      \
  148|    220|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|    220|                                                                                                                           \
  150|    220|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|    220|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|    220|                                                                                                                           \
  153|    220|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|    220|    }                                                                                                                      \
ssl_lib.c:ossl_check_X509_NAME_sk_type:
   55|    880|    {                                                                                                           \
   56|    880|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    880|    }                                                                                                           \
ssl_lib.c:ossl_check_X509_NAME_freefunc_type:
   67|    880|    {                                                                                                           \
   68|    880|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    880|    }
ssl_lib.c:ossl_check_SRTP_PROTECTION_PROFILE_sk_type:
   55|    440|    {                                                                                                           \
   56|    440|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    440|    }                                                                                                           \
ssl_lib.c:ossl_check_SSL_CIPHER_type:
   47|  13.1k|    {                                                                                                           \
   48|  13.1k|        return ptr;                                                                                             \
   49|  13.1k|    }                                                                                                           \
ssl_sess.c:sk_SSL_SESSION_new_null:
   98|    220|    {                                                                                                                      \
   99|    220|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|    220|    }                                                                                                                      \
ssl_sess.c:sk_SSL_SESSION_pop_free:
  147|    220|    {                                                                                                                      \
  148|    220|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|    220|                                                                                                                           \
  150|    220|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|    220|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|    220|                                                                                                                           \
  153|    220|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|    220|    }                                                                                                                      \
extensions.c:ossl_check_const_X509_NAME_sk_type:
   51|    219|    {                                                                                                           \
   52|    219|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|    219|    }                                                                                                           \
extensions_clnt.c:ossl_check_const_SSL_CIPHER_sk_type:
   51|    876|    {                                                                                                           \
   52|    876|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|    876|    }                                                                                                           \
extensions_clnt.c:ossl_check_SSL_CIPHER_sk_type:
   55|    438|    {                                                                                                           \
   56|    438|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    438|    }                                                                                                           \
statem_clnt.c:ossl_check_const_SSL_CIPHER_sk_type:
   51|  26.4k|    {                                                                                                           \
   52|  26.4k|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|  26.4k|    }                                                                                                           \
tasn_dec.c:ossl_check_ASN1_VALUE_sk_type:
   55|   567k|    {                                                                                                           \
   56|   567k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|   567k|    }                                                                                                           \
tasn_dec.c:ossl_check_ASN1_VALUE_type:
   47|   567k|    {                                                                                                           \
   48|   567k|        return ptr;                                                                                             \
   49|   567k|    }                                                                                                           \
tasn_enc.c:sk_const_ASN1_VALUE_num:
   82|  1.60M|    {                                                                                                                      \
   83|  1.60M|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|  1.60M|    }                                                                                                                      \
tasn_enc.c:sk_const_ASN1_VALUE_value:
   86|   685k|    {                                                                                                                      \
   87|   685k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|   685k|    }                                                                                                                      \
tasn_fre.c:ossl_check_const_ASN1_VALUE_sk_type:
   51|   380k|    {                                                                                                           \
   52|   380k|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|   380k|    }                                                                                                           \
tasn_fre.c:ossl_check_ASN1_VALUE_sk_type:
   55|   159k|    {                                                                                                           \
   56|   159k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|   159k|    }                                                                                                           \
ct_log.c:ossl_check_CTLOG_sk_type:
   55|    220|    {                                                                                                           \
   56|    220|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    220|    }                                                                                                           \
ct_log.c:ossl_check_CTLOG_freefunc_type:
   67|    220|    {                                                                                                           \
   68|    220|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    220|    }
ct_sct.c:ossl_check_SCT_sk_type:
   55|    220|    {                                                                                                           \
   56|    220|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    220|    }                                                                                                           \
ct_sct.c:ossl_check_SCT_freefunc_type:
   67|    220|    {                                                                                                           \
   68|    220|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    220|    }
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_new_null:
   98|      2|    {                                                                                                                      \
   99|      2|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_push:
  131|     11|    {                                                                                                                      \
  132|     11|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|     11|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_new_null:
   98|      2|    {                                                                                                                      \
   99|      2|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_push:
  131|    152|    {                                                                                                                      \
  132|    152|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|    152|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_num:
   82|      2|    {                                                                                                                      \
   83|      2|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_num:
   82|  63.9k|    {                                                                                                                      \
   83|  63.9k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|  63.9k|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_set_cmp_func:
  196|      4|    {                                                                                                                      \
  197|      4|        return (sk_##t1##_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);             \
  198|      4|    }
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_value:
   86|   247k|    {                                                                                                                      \
   87|   247k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|   247k|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_sort:
  176|      2|    {                                                                                                                      \
  177|      2|        OPENSSL_sk_sort((OPENSSL_STACK *)sk);                                                                              \
  178|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_value:
   86|  1.67k|    {                                                                                                                      \
   87|  1.67k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|  1.67k|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_pop_free:
  147|      2|    {                                                                                                                      \
  148|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|      2|                                                                                                                           \
  150|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|      2|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|      2|                                                                                                                           \
  153|      2|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_freefunc_thunk:
   77|    152|    {                                                                                                                      \
   78|    152|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   79|    152|        freefunc((t3 *)ptr);                                                                                               \
   80|    152|    }                                                                                                                      \
decoder_meth.c:sk_OSSL_DECODER_INSTANCE_pop_free:
  147|  31.9k|    {                                                                                                                      \
  148|  31.9k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|  31.9k|                                                                                                                           \
  150|  31.9k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|  31.9k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|  31.9k|                                                                                                                           \
  153|  31.9k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|  31.9k|    }                                                                                                                      \
decoder_meth.c:sk_OSSL_DECODER_INSTANCE_freefunc_thunk:
   77|   183k|    {                                                                                                                      \
   78|   183k|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   79|   183k|        freefunc((t3 *)ptr);                                                                                               \
   80|   183k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_new_null:
   98|      2|    {                                                                                                                      \
   99|      2|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|      2|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_push:
  131|      3|    {                                                                                                                      \
  132|      3|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|      3|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_num:
   82|  32.0k|    {                                                                                                                      \
   83|  32.0k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|  32.0k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_value:
   86|  32.0k|    {                                                                                                                      \
   87|  32.0k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|  32.0k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_pop_free:
  147|  31.9k|    {                                                                                                                      \
  148|  31.9k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|  31.9k|                                                                                                                           \
  150|  31.9k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|  31.9k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|  31.9k|                                                                                                                           \
  153|  31.9k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|  31.9k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_freefunc_thunk:
   77|  40.7k|    {                                                                                                                      \
   78|  40.7k|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   79|  40.7k|        freefunc((t3 *)ptr);                                                                                               \
   80|  40.7k|    }                                                                                                                      \
decoder_pkey.c:sk_OSSL_DECODER_INSTANCE_deep_copy:
  190|  31.9k|    {                                                                                                                      \
  191|  31.9k|        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk,                                             \
  192|  31.9k|            (OPENSSL_sk_copyfunc)copyfunc,                                                                                 \
  193|  31.9k|            (OPENSSL_sk_freefunc)freefunc);                                                                                \
  194|  31.9k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_deep_copy:
  190|  31.9k|    {                                                                                                                      \
  191|  31.9k|        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk,                                             \
  192|  31.9k|            (OPENSSL_sk_copyfunc)copyfunc,                                                                                 \
  193|  31.9k|            (OPENSSL_sk_freefunc)freefunc);                                                                                \
  194|  31.9k|    }                                                                                                                      \
eng_lib.c:sk_ENGINE_CLEANUP_ITEM_new_null:
   98|      2|    {                                                                                                                      \
   99|      2|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|      2|    }                                                                                                                      \
eng_lib.c:sk_ENGINE_CLEANUP_ITEM_push:
  131|      2|    {                                                                                                                      \
  132|      2|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|      2|    }                                                                                                                      \
keymgmt_lib.c:sk_OP_CACHE_ELEM_pop_free:
  147|  65.0k|    {                                                                                                                      \
  148|  65.0k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|  65.0k|                                                                                                                           \
  150|  65.0k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|  65.0k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|  65.0k|                                                                                                                           \
  153|  65.0k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|  65.0k|    }                                                                                                                      \
p_lib.c:ossl_check_X509_ATTRIBUTE_sk_type:
   55|  65.0k|    {                                                                                                           \
   56|  65.0k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  65.0k|    }                                                                                                           \
p_lib.c:ossl_check_X509_ATTRIBUTE_freefunc_type:
   67|  65.0k|    {                                                                                                           \
   68|  65.0k|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|  65.0k|    }
core_namemap.c:sk_NAMES_value:
   86|  33.3k|    {                                                                                                                      \
   87|  33.3k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|  33.3k|    }                                                                                                                      \
core_namemap.c:ossl_check_const_OPENSSL_STRING_sk_type:
   51|   309k|    {                                                                                                           \
   52|   309k|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|   309k|    }                                                                                                           \
core_namemap.c:ossl_check_OPENSSL_STRING_sk_type:
   55|  33.6k|    {                                                                                                           \
   56|  33.6k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  33.6k|    }                                                                                                           \
core_namemap.c:ossl_check_OPENSSL_STRING_type:
   47|    590|    {                                                                                                           \
   48|    590|        return ptr;                                                                                             \
   49|    590|    }                                                                                                           \
core_namemap.c:sk_NAMES_push:
  131|    255|    {                                                                                                                      \
  132|    255|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|    255|    }                                                                                                                      \
core_namemap.c:sk_NAMES_num:
   82|    255|    {                                                                                                                      \
   83|    255|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|    255|    }                                                                                                                      \
core_namemap.c:sk_NAMES_new_null:
   98|      2|    {                                                                                                                      \
   99|      2|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|      2|    }                                                                                                                      \
ex_data.c:sk_EX_CALLBACK_num:
   82|   711k|    {                                                                                                                      \
   83|   711k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|   711k|    }                                                                                                                      \
ex_data.c:sk_EX_CALLBACK_new_null:
   98|      1|    {                                                                                                                      \
   99|      1|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|      1|    }                                                                                                                      \
ex_data.c:sk_EX_CALLBACK_push:
  131|      2|    {                                                                                                                      \
  132|      2|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|      2|    }                                                                                                                      \
ex_data.c:sk_EX_CALLBACK_set:
  160|      1|    {                                                                                                                      \
  161|      1|        return (t2 *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);                                          \
  162|      1|    }                                                                                                                      \
ex_data.c:ossl_check_const_void_sk_type:
   51|    220|    {                                                                                                           \
   52|    220|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|    220|    }                                                                                                           \
ex_data.c:ossl_check_void_sk_type:
   55|   356k|    {                                                                                                           \
   56|   356k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|   356k|    }                                                                                                           \
ex_data.c:ossl_check_void_type:
   47|    440|    {                                                                                                           \
   48|    440|        return ptr;                                                                                             \
   49|    440|    }                                                                                                           \
initthread.c:sk_THREAD_EVENT_HANDLER_PTR_new_null:
   98|      2|    {                                                                                                                      \
   99|      2|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|      2|    }                                                                                                                      \
initthread.c:sk_THREAD_EVENT_HANDLER_PTR_push:
  131|      2|    {                                                                                                                      \
  132|      2|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|      2|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_new_null:
   98|    438|    {                                                                                                                      \
   99|    438|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|    438|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_pop:
  139|    438|    {                                                                                                                      \
  140|    438|        return (t2 *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);                                                                  \
  141|    438|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_free:
  114|    438|    {                                                                                                                      \
  115|    438|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  116|    438|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_push:
  131|    438|    {                                                                                                                      \
  132|    438|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|    438|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_num:
   82|  1.75k|    {                                                                                                                      \
   83|  1.75k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|  1.75k|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_value:
   86|    438|    {                                                                                                                      \
   87|    438|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|    438|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_new:
   90|      2|    {                                                                                                                      \
   91|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);                                                 \
   92|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
   93|      2|                                                                                                                           \
   94|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
   95|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
   96|      2|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_CHILD_CB_new_null:
   98|      2|    {                                                                                                                      \
   99|      2|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|      2|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_sort:
  176|      3|    {                                                                                                                      \
  177|      3|        OPENSSL_sk_sort((OPENSSL_STACK *)sk);                                                                              \
  178|      3|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_find:
  164|      3|    {                                                                                                                      \
  165|      3|        return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  166|      3|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_value:
   86|  12.0k|    {                                                                                                                      \
   87|  12.0k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|  12.0k|    }                                                                                                                      \
provider_core.c:sk_INFOPAIR_deep_copy:
  190|      1|    {                                                                                                                      \
  191|      1|        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk,                                             \
  192|      1|            (OPENSSL_sk_copyfunc)copyfunc,                                                                                 \
  193|      1|            (OPENSSL_sk_freefunc)freefunc);                                                                                \
  194|      1|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_push:
  131|      1|    {                                                                                                                      \
  132|      1|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|      1|    }                                                                                                                      \
provider_core.c:sk_INFOPAIR_num:
   82|    657|    {                                                                                                                      \
   83|    657|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|    657|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_dup:
  184|  4.01k|    {                                                                                                                      \
  185|  4.01k|        return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);                                                  \
  186|  4.01k|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_num:
   82|  4.01k|    {                                                                                                                      \
   83|  4.01k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|  4.01k|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_free:
  114|  4.01k|    {                                                                                                                      \
  115|  4.01k|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  116|  4.01k|    }                                                                                                                      \
pem_info.c:ossl_check_X509_INFO_sk_type:
   55|  31.9k|    {                                                                                                           \
   56|  31.9k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  31.9k|    }                                                                                                           \
pem_info.c:ossl_check_X509_INFO_type:
   47|  31.9k|    {                                                                                                           \
   48|  31.9k|        return ptr;                                                                                             \
   49|  31.9k|    }                                                                                                           \
property.c:sk_IMPLEMENTATION_new_null:
   98|    298|    {                                                                                                                      \
   99|    298|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|    298|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_num:
   82|  1.47k|    {                                                                                                                      \
   83|  1.47k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|  1.47k|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_value:
   86|    966|    {                                                                                                                      \
   87|    966|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|    966|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_push:
  131|    344|    {                                                                                                                      \
  132|    344|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|    344|    }                                                                                                                      \
property.c:sk_ALGORITHM_new_reserve:
  102|      6|    {                                                                                                                      \
  103|      6|        OPENSSL_STACK *ret = OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);                                      \
  104|      6|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  105|      6|                                                                                                                           \
  106|      6|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  107|      6|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  108|      6|    }                                                                                                                      \
property.c:sk_ALGORITHM_freefunc_thunk:
   77|    656|    {                                                                                                                      \
   78|    656|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   79|    656|        freefunc((t3 *)ptr);                                                                                               \
   80|    656|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_dup:
  184|    656|    {                                                                                                                      \
  185|    656|        return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);                                                  \
  186|    656|    }                                                                                                                      \
property.c:sk_ALGORITHM_push:
  131|    656|    {                                                                                                                      \
  132|    656|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|    656|    }                                                                                                                      \
property.c:sk_ALGORITHM_num:
   82|      6|    {                                                                                                                      \
   83|      6|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|      6|    }                                                                                                                      \
property.c:sk_ALGORITHM_value:
   86|    656|    {                                                                                                                      \
   87|    656|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|    656|    }                                                                                                                      \
property.c:sk_ALGORITHM_pop_free:
  147|      6|    {                                                                                                                      \
  148|      6|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|      6|                                                                                                                           \
  150|      6|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|      6|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|      6|                                                                                                                           \
  153|      6|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|      6|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_free:
  114|    656|    {                                                                                                                      \
  115|    656|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  116|    656|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_new:
   90|    141|    {                                                                                                                      \
   91|    141|        OPENSSL_STACK *ret = OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);                                                 \
   92|    141|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
   93|    141|                                                                                                                           \
   94|    141|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
   95|    141|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
   96|    141|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_freefunc_thunk:
   77|    357|    {                                                                                                                      \
   78|    357|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   79|    357|        freefunc((t3 *)ptr);                                                                                               \
   80|    357|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_push:
  131|    357|    {                                                                                                                      \
  132|    357|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|    357|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_num:
   82|    141|    {                                                                                                                      \
   83|    141|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|    141|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_sort:
  176|    141|    {                                                                                                                      \
  177|    141|        OPENSSL_sk_sort((OPENSSL_STACK *)sk);                                                                              \
  178|    141|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_value:
   86|    357|    {                                                                                                                      \
   87|    357|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|    357|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_pop_free:
  147|    141|    {                                                                                                                      \
  148|    141|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|    141|                                                                                                                           \
  150|    141|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|    141|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|    141|                                                                                                                           \
  153|    141|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|    141|    }                                                                                                                      \
property_string.c:ossl_check_OPENSSL_CSTRING_sk_type:
   55|     30|    {                                                                                                           \
   56|     30|        return (OPENSSL_STACK *)sk;                                                                             \
   57|     30|    }                                                                                                           \
property_string.c:ossl_check_OPENSSL_CSTRING_type:
   47|     30|    {                                                                                                           \
   48|     30|        return ptr;                                                                                             \
   49|     30|    }                                                                                                           \
property_string.c:ossl_check_const_OPENSSL_CSTRING_sk_type:
   51|     26|    {                                                                                                           \
   52|     26|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|     26|    }                                                                                                           \
rsa_backend.c:sk_BIGNUM_const_new_null:
   98|  69.6k|    {                                                                                                                      \
   99|  69.6k|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|  69.6k|    }                                                                                                                      \
rsa_backend.c:sk_BIGNUM_const_free:
  114|  69.6k|    {                                                                                                                      \
  115|  69.6k|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  116|  69.6k|    }                                                                                                                      \
rsa_lib.c:sk_RSA_PRIME_INFO_pop_free:
  147|  23.2k|    {                                                                                                                      \
  148|  23.2k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|  23.2k|                                                                                                                           \
  150|  23.2k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|  23.2k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|  23.2k|                                                                                                                           \
  153|  23.2k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|  23.2k|    }                                                                                                                      \
rsa_lib.c:sk_BIGNUM_const_new_null:
   98|  69.6k|    {                                                                                                                      \
   99|  69.6k|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|  69.6k|    }                                                                                                                      \
rsa_lib.c:sk_BIGNUM_const_num:
   82|  69.6k|    {                                                                                                                      \
   83|  69.6k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|  69.6k|    }                                                                                                                      \
rsa_lib.c:sk_BIGNUM_const_free:
  114|  69.6k|    {                                                                                                                      \
  115|  69.6k|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  116|  69.6k|    }                                                                                                                      \
rsa_ossl.c:sk_RSA_PRIME_INFO_num:
   82|  23.2k|    {                                                                                                                      \
   83|  23.2k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|  23.2k|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_pop_free:
  147|    219|    {                                                                                                                      \
  148|    219|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|    219|                                                                                                                           \
  150|    219|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|    219|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|    219|                                                                                                                           \
  153|    219|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|    219|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_freefunc_thunk:
   77|    219|    {                                                                                                                      \
   78|    219|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   79|    219|        freefunc((t3 *)ptr);                                                                                               \
   80|    219|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_HASH_pop_free:
  147|    219|    {                                                                                                                      \
  148|    219|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|    219|                                                                                                                           \
  150|    219|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|    219|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|    219|                                                                                                                           \
  153|    219|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|    219|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_num:
   82|    438|    {                                                                                                                      \
   83|    438|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|    438|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_new_null:
   98|    219|    {                                                                                                                      \
   99|    219|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|    219|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_HASH_new:
   90|    219|    {                                                                                                                      \
   91|    219|        OPENSSL_STACK *ret = OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);                                                 \
   92|    219|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
   93|    219|                                                                                                                           \
   94|    219|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
   95|    219|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
   96|    219|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_push:
  131|    219|    {                                                                                                                      \
  132|    219|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|    219|    }                                                                                                                      \
by_file.c:ossl_check_const_X509_INFO_sk_type:
   51|  64.1k|    {                                                                                                           \
   52|  64.1k|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|  64.1k|    }                                                                                                           \
by_file.c:ossl_check_X509_INFO_sk_type:
   55|    219|    {                                                                                                           \
   56|    219|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    219|    }                                                                                                           \
by_file.c:ossl_check_X509_INFO_freefunc_type:
   67|    219|    {                                                                                                           \
   68|    219|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    219|    }
t_x509.c:ossl_check_X509_sk_type:
   55|  6.15k|    {                                                                                                           \
   56|  6.15k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  6.15k|    }                                                                                                           \
t_x509.c:ossl_check_X509_freefunc_type:
   67|  6.15k|    {                                                                                                           \
   68|  6.15k|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|  6.15k|    }
x509_lu.c:ossl_check_X509_OBJECT_compfunc_type:
   59|    220|    {                                                                                                           \
   60|    220|        return (OPENSSL_sk_compfunc)cmp;                                                                        \
   61|    220|    }                                                                                                           \
x509_lu.c:ossl_check_X509_OBJECT_sk_type:
   55|  64.1k|    {                                                                                                           \
   56|  64.1k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  64.1k|    }                                                                                                           \
x509_lu.c:ossl_check_X509_LOOKUP_sk_type:
   55|    658|    {                                                                                                           \
   56|    658|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    658|    }                                                                                                           \
x509_lu.c:ossl_check_const_X509_LOOKUP_sk_type:
   51|  1.97k|    {                                                                                                           \
   52|  1.97k|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|  1.97k|    }                                                                                                           \
x509_lu.c:ossl_check_X509_OBJECT_freefunc_type:
   67|    220|    {                                                                                                           \
   68|    220|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    220|    }
x509_lu.c:ossl_check_X509_LOOKUP_type:
   47|    438|    {                                                                                                           \
   48|    438|        return ptr;                                                                                             \
   49|    438|    }                                                                                                           \
x509_lu.c:ossl_check_X509_OBJECT_type:
   47|  63.9k|    {                                                                                                           \
   48|  63.9k|        return ptr;                                                                                             \
   49|  63.9k|    }                                                                                                           \
x509_vpm.c:ossl_check_ASN1_OBJECT_sk_type:
   55|    660|    {                                                                                                           \
   56|    660|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    660|    }                                                                                                           \
x509_vpm.c:ossl_check_ASN1_OBJECT_freefunc_type:
   67|    660|    {                                                                                                           \
   68|    660|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    660|    }
x509_vpm.c:ossl_check_OPENSSL_STRING_sk_type:
   55|    660|    {                                                                                                           \
   56|    660|        return (OPENSSL_STACK *)sk;                                                                             \
   57|    660|    }                                                                                                           \
x509_vpm.c:ossl_check_OPENSSL_STRING_freefunc_type:
   67|    660|    {                                                                                                           \
   68|    660|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|    660|    }
x_name.c:ossl_check_X509_NAME_ENTRY_sk_type:
   55|  1.27M|    {                                                                                                           \
   56|  1.27M|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  1.27M|    }                                                                                                           \
x_name.c:ossl_check_X509_NAME_ENTRY_freefunc_type:
   67|   356k|    {                                                                                                           \
   68|   356k|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|   356k|    }
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_num:
   82|   292k|    {                                                                                                                      \
   83|   292k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
   84|   292k|    }                                                                                                                      \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_value:
   86|   228k|    {                                                                                                                      \
   87|   228k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
   88|   228k|    }                                                                                                                      \
x_name.c:ossl_check_const_X509_NAME_ENTRY_sk_type:
   51|  1.27M|    {                                                                                                           \
   52|  1.27M|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|  1.27M|    }                                                                                                           \
x_name.c:ossl_check_X509_NAME_ENTRY_type:
   47|   685k|    {                                                                                                           \
   48|   685k|        return ptr;                                                                                             \
   49|   685k|    }                                                                                                           \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_new_null:
   98|  63.9k|    {                                                                                                                      \
   99|  63.9k|        return (STACK_OF(t1) *)OPENSSL_sk_new_null();                                                                      \
  100|  63.9k|    }                                                                                                                      \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_push:
  131|   228k|    {                                                                                                                      \
  132|   228k|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  133|   228k|    }                                                                                                                      \
x_name.c:ossl_check_const_ASN1_VALUE_sk_type:
   51|  1.04M|    {                                                                                                           \
   52|  1.04M|        return (const OPENSSL_STACK *)sk;                                                                       \
   53|  1.04M|    }                                                                                                           \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_pop_free:
  147|   127k|    {                                                                                                                      \
  148|   127k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  149|   127k|                                                                                                                           \
  150|   127k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  151|   127k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  152|   127k|                                                                                                                           \
  153|   127k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  154|   127k|    }                                                                                                                      \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_freefunc_thunk:
   77|   457k|    {                                                                                                                      \
   78|   457k|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   79|   457k|        freefunc((t3 *)ptr);                                                                                               \
   80|   457k|    }                                                                                                                      \
x_x509.c:ossl_check_IPAddressFamily_sk_type:
   55|  63.9k|    {                                                                                                           \
   56|  63.9k|        return (OPENSSL_STACK *)sk;                                                                             \
   57|  63.9k|    }                                                                                                           \
x_x509.c:ossl_check_IPAddressFamily_freefunc_type:
   67|  63.9k|    {                                                                                                           \
   68|  63.9k|        return (OPENSSL_sk_freefunc)fr;                                                                         \
   69|  63.9k|    }
comp_methods.c:ossl_check_SSL_COMP_compfunc_type:
   59|      2|    {                                                                                                           \
   60|      2|        return (OPENSSL_sk_compfunc)cmp;                                                                        \
   61|      2|    }                                                                                                           \

ossl_prov_bio_from_dispatch:
   27|      1|{
   28|     54|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (28:12): [True: 53, False: 1]
  ------------------
   29|     53|        switch (fns->function_id) {
  ------------------
  |  Branch (29:17): [True: 10, False: 43]
  ------------------
   30|      1|        case OSSL_FUNC_BIO_NEW_FILE:
  ------------------
  |  |  151|      1|#define OSSL_FUNC_BIO_NEW_FILE 40
  ------------------
  |  Branch (30:9): [True: 1, False: 52]
  ------------------
   31|      1|            if (c_bio_new_file == NULL)
  ------------------
  |  Branch (31:17): [True: 1, False: 0]
  ------------------
   32|      1|                c_bio_new_file = OSSL_FUNC_BIO_new_file(fns);
   33|      1|            break;
   34|      1|        case OSSL_FUNC_BIO_NEW_MEMBUF:
  ------------------
  |  |  152|      1|#define OSSL_FUNC_BIO_NEW_MEMBUF 41
  ------------------
  |  Branch (34:9): [True: 1, False: 52]
  ------------------
   35|      1|            if (c_bio_new_membuf == NULL)
  ------------------
  |  Branch (35:17): [True: 1, False: 0]
  ------------------
   36|      1|                c_bio_new_membuf = OSSL_FUNC_BIO_new_membuf(fns);
   37|      1|            break;
   38|      1|        case OSSL_FUNC_BIO_READ_EX:
  ------------------
  |  |  153|      1|#define OSSL_FUNC_BIO_READ_EX 42
  ------------------
  |  Branch (38:9): [True: 1, False: 52]
  ------------------
   39|      1|            if (c_bio_read_ex == NULL)
  ------------------
  |  Branch (39:17): [True: 1, False: 0]
  ------------------
   40|      1|                c_bio_read_ex = OSSL_FUNC_BIO_read_ex(fns);
   41|      1|            break;
   42|      1|        case OSSL_FUNC_BIO_WRITE_EX:
  ------------------
  |  |  154|      1|#define OSSL_FUNC_BIO_WRITE_EX 43
  ------------------
  |  Branch (42:9): [True: 1, False: 52]
  ------------------
   43|      1|            if (c_bio_write_ex == NULL)
  ------------------
  |  Branch (43:17): [True: 1, False: 0]
  ------------------
   44|      1|                c_bio_write_ex = OSSL_FUNC_BIO_write_ex(fns);
   45|      1|            break;
   46|      1|        case OSSL_FUNC_BIO_GETS:
  ------------------
  |  |  160|      1|#define OSSL_FUNC_BIO_GETS 49
  ------------------
  |  Branch (46:9): [True: 1, False: 52]
  ------------------
   47|      1|            if (c_bio_gets == NULL)
  ------------------
  |  Branch (47:17): [True: 1, False: 0]
  ------------------
   48|      1|                c_bio_gets = OSSL_FUNC_BIO_gets(fns);
   49|      1|            break;
   50|      1|        case OSSL_FUNC_BIO_PUTS:
  ------------------
  |  |  159|      1|#define OSSL_FUNC_BIO_PUTS 48
  ------------------
  |  Branch (50:9): [True: 1, False: 52]
  ------------------
   51|      1|            if (c_bio_puts == NULL)
  ------------------
  |  Branch (51:17): [True: 1, False: 0]
  ------------------
   52|      1|                c_bio_puts = OSSL_FUNC_BIO_puts(fns);
   53|      1|            break;
   54|      1|        case OSSL_FUNC_BIO_CTRL:
  ------------------
  |  |  161|      1|#define OSSL_FUNC_BIO_CTRL 50
  ------------------
  |  Branch (54:9): [True: 1, False: 52]
  ------------------
   55|      1|            if (c_bio_ctrl == NULL)
  ------------------
  |  Branch (55:17): [True: 1, False: 0]
  ------------------
   56|      1|                c_bio_ctrl = OSSL_FUNC_BIO_ctrl(fns);
   57|      1|            break;
   58|      1|        case OSSL_FUNC_BIO_UP_REF:
  ------------------
  |  |  155|      1|#define OSSL_FUNC_BIO_UP_REF 44
  ------------------
  |  Branch (58:9): [True: 1, False: 52]
  ------------------
   59|      1|            if (c_bio_up_ref == NULL)
  ------------------
  |  Branch (59:17): [True: 1, False: 0]
  ------------------
   60|      1|                c_bio_up_ref = OSSL_FUNC_BIO_up_ref(fns);
   61|      1|            break;
   62|      1|        case OSSL_FUNC_BIO_FREE:
  ------------------
  |  |  156|      1|#define OSSL_FUNC_BIO_FREE 45
  ------------------
  |  Branch (62:9): [True: 1, False: 52]
  ------------------
   63|      1|            if (c_bio_free == NULL)
  ------------------
  |  Branch (63:17): [True: 1, False: 0]
  ------------------
   64|      1|                c_bio_free = OSSL_FUNC_BIO_free(fns);
   65|      1|            break;
   66|      1|        case OSSL_FUNC_BIO_VPRINTF:
  ------------------
  |  |  157|      1|#define OSSL_FUNC_BIO_VPRINTF 46
  ------------------
  |  Branch (66:9): [True: 1, False: 52]
  ------------------
   67|      1|            if (c_bio_vprintf == NULL)
  ------------------
  |  Branch (67:17): [True: 1, False: 0]
  ------------------
   68|      1|                c_bio_vprintf = OSSL_FUNC_BIO_vprintf(fns);
   69|      1|            break;
   70|     53|        }
   71|     53|    }
   72|       |
   73|      1|    return 1;
   74|      1|}
ossl_prov_bio_read_ex:
   92|   127k|{
   93|   127k|    if (c_bio_read_ex == NULL)
  ------------------
  |  Branch (93:9): [True: 0, False: 127k]
  ------------------
   94|      0|        return 0;
   95|   127k|    return c_bio_read_ex(bio, data, data_len, bytes_read);
   96|   127k|}
ossl_prov_bio_up_ref:
  128|  63.9k|{
  129|  63.9k|    if (c_bio_up_ref == NULL)
  ------------------
  |  Branch (129:9): [True: 0, False: 63.9k]
  ------------------
  130|      0|        return 0;
  131|  63.9k|    return c_bio_up_ref(bio);
  132|  63.9k|}
ossl_prov_bio_free:
  135|  63.9k|{
  136|  63.9k|    if (c_bio_free == NULL)
  ------------------
  |  Branch (136:9): [True: 0, False: 63.9k]
  ------------------
  137|      0|        return 0;
  138|  63.9k|    return c_bio_free(bio);
  139|  63.9k|}
ossl_bio_prov_init_bio_method:
  207|      1|{
  208|      1|    BIO_METHOD *corebiometh = NULL;
  209|       |
  210|      1|    corebiometh = BIO_meth_new(BIO_TYPE_CORE_TO_PROV, "BIO to Core filter");
  ------------------
  |  |   71|      1|#define BIO_TYPE_CORE_TO_PROV (25 | BIO_TYPE_SOURCE_SINK)
  |  |  ------------------
  |  |  |  |   43|      1|#define BIO_TYPE_SOURCE_SINK 0x0400
  |  |  ------------------
  ------------------
  211|      1|    if (corebiometh == NULL
  ------------------
  |  Branch (211:9): [True: 0, False: 1]
  ------------------
  212|      1|        || !BIO_meth_set_write_ex(corebiometh, bio_core_write_ex)
  ------------------
  |  Branch (212:12): [True: 0, False: 1]
  ------------------
  213|      1|        || !BIO_meth_set_read_ex(corebiometh, bio_core_read_ex)
  ------------------
  |  Branch (213:12): [True: 0, False: 1]
  ------------------
  214|      1|        || !BIO_meth_set_puts(corebiometh, bio_core_puts)
  ------------------
  |  Branch (214:12): [True: 0, False: 1]
  ------------------
  215|      1|        || !BIO_meth_set_gets(corebiometh, bio_core_gets)
  ------------------
  |  Branch (215:12): [True: 0, False: 1]
  ------------------
  216|      1|        || !BIO_meth_set_ctrl(corebiometh, bio_core_ctrl)
  ------------------
  |  Branch (216:12): [True: 0, False: 1]
  ------------------
  217|      1|        || !BIO_meth_set_create(corebiometh, bio_core_new)
  ------------------
  |  Branch (217:12): [True: 0, False: 1]
  ------------------
  218|      1|        || !BIO_meth_set_destroy(corebiometh, bio_core_free)) {
  ------------------
  |  Branch (218:12): [True: 0, False: 1]
  ------------------
  219|      0|        BIO_meth_free(corebiometh);
  220|      0|        return NULL;
  221|      0|    }
  222|       |
  223|      1|    return corebiometh;
  224|      1|}
ossl_bio_new_from_core_bio:
  227|  63.9k|{
  228|  63.9k|    BIO *outbio;
  229|  63.9k|    BIO_METHOD *corebiometh = ossl_prov_ctx_get0_core_bio_method(provctx);
  230|       |
  231|  63.9k|    if (corebiometh == NULL)
  ------------------
  |  Branch (231:9): [True: 0, False: 63.9k]
  ------------------
  232|      0|        return NULL;
  233|       |
  234|  63.9k|    if ((outbio = BIO_new(corebiometh)) == NULL)
  ------------------
  |  Branch (234:9): [True: 0, False: 63.9k]
  ------------------
  235|      0|        return NULL;
  236|  63.9k|    if (!ossl_prov_bio_up_ref(corebio)) {
  ------------------
  |  Branch (236:9): [True: 0, False: 63.9k]
  ------------------
  237|      0|        BIO_free(outbio);
  238|      0|        return NULL;
  239|      0|    }
  240|  63.9k|    BIO_set_data(outbio, corebio);
  241|  63.9k|    return outbio;
  242|  63.9k|}
bio_prov.c:bio_core_read_ex:
  166|   127k|{
  167|   127k|    return ossl_prov_bio_read_ex(BIO_get_data(bio), data, data_len, bytes_read);
  168|   127k|}
bio_prov.c:bio_core_new:
  192|  63.9k|{
  193|  63.9k|    BIO_set_init(bio, 1);
  194|       |
  195|  63.9k|    return 1;
  196|  63.9k|}
bio_prov.c:bio_core_free:
  199|  63.9k|{
  200|  63.9k|    BIO_set_init(bio, 0);
  201|  63.9k|    ossl_prov_bio_free(BIO_get_data(bio));
  202|       |
  203|  63.9k|    return 1;
  204|  63.9k|}

ossl_prov_get_capabilities:
  336|    440|{
  337|    440|    if (OPENSSL_strcasecmp(capability, "TLS-GROUP") == 0)
  ------------------
  |  Branch (337:9): [True: 220, False: 220]
  ------------------
  338|    220|        return tls_group_capability(cb, arg);
  339|    220|    if (OPENSSL_strcasecmp(capability, "TLS-SIGALG") == 0)
  ------------------
  |  Branch (339:9): [True: 220, False: 0]
  ------------------
  340|    220|        return tls_sigalg_capability(cb, arg);
  341|       |
  342|       |    /* We don't support this capability */
  343|      0|    return 0;
  344|    220|}
capabilities.c:tls_group_capability:
  261|    220|{
  262|    220|#if !defined(OPENSSL_NO_EC) || !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_ML_KEM)
  263|    220|    size_t i;
  264|       |
  265|  13.2k|    for (i = 0; i < OSSL_NELEM(param_group_list); i++)
  ------------------
  |  |   14|  13.2k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (265:17): [True: 12.9k, False: 220]
  ------------------
  266|  12.9k|        if (!cb(param_group_list[i], arg))
  ------------------
  |  Branch (266:13): [True: 0, False: 12.9k]
  ------------------
  267|      0|            return 0;
  268|    220|#endif
  269|       |
  270|    220|    return 1;
  271|    220|}
capabilities.c:tls_sigalg_capability:
  323|    220|{
  324|    220|#if !defined(OPENSSL_NO_ML_DSA)
  325|    220|    size_t i;
  326|       |
  327|    880|    for (i = 0; i < OSSL_NELEM(param_sigalg_list); i++)
  ------------------
  |  |   14|    880|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (327:17): [True: 660, False: 220]
  ------------------
  328|    660|        if (!cb(param_sigalg_list[i], arg))
  ------------------
  |  Branch (328:13): [True: 0, False: 660]
  ------------------
  329|      0|            return 0;
  330|    220|#endif
  331|    220|    return 1;
  332|    220|}

ciphercommon.c:ossl_param_is_empty:
   30|  27.8k|{
   31|  27.8k|    return params == NULL || params->key == NULL;
  ------------------
  |  Branch (31:12): [True: 27.8k, False: 0]
  |  Branch (31:30): [True: 0, False: 0]
  ------------------
   32|  27.8k|}

ossl_prov_ctx_new:
   16|      1|{
   17|      1|    return OPENSSL_zalloc(sizeof(PROV_CTX));
  ------------------
  |  |  108|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   18|      1|}
ossl_prov_ctx_set0_libctx:
   26|      1|{
   27|      1|    if (ctx != NULL)
  ------------------
  |  Branch (27:9): [True: 1, False: 0]
  ------------------
   28|      1|        ctx->libctx = libctx;
   29|      1|}
ossl_prov_ctx_set0_handle:
   32|      1|{
   33|      1|    if (ctx != NULL)
  ------------------
  |  Branch (33:9): [True: 1, False: 0]
  ------------------
   34|      1|        ctx->handle = handle;
   35|      1|}
ossl_prov_ctx_set0_core_bio_method:
   38|      1|{
   39|      1|    if (ctx != NULL)
  ------------------
  |  Branch (39:9): [True: 1, False: 0]
  ------------------
   40|      1|        ctx->corebiometh = corebiometh;
   41|      1|}
ossl_prov_ctx_set0_core_get_params:
   45|      1|{
   46|      1|    if (ctx != NULL)
  ------------------
  |  Branch (46:9): [True: 1, False: 0]
  ------------------
   47|      1|        ctx->core_get_params = c_get_params;
   48|      1|}
ossl_prov_ctx_get0_libctx:
   51|  64.8k|{
   52|  64.8k|    if (ctx == NULL)
  ------------------
  |  Branch (52:9): [True: 0, False: 64.8k]
  ------------------
   53|      0|        return NULL;
   54|  64.8k|    return ctx->libctx;
   55|  64.8k|}
ossl_prov_ctx_get0_core_bio_method:
   65|  63.9k|{
   66|  63.9k|    if (ctx == NULL)
  ------------------
  |  Branch (66:9): [True: 0, False: 63.9k]
  ------------------
   67|      0|        return NULL;
   68|  63.9k|    return ctx->corebiometh;
   69|  63.9k|}
ossl_prov_ctx_get_param:
   80|    657|{
   81|    657|    char *val = NULL;
   82|    657|    OSSL_PARAM param[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    657|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM param[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    657|    { NULL, 0, NULL, 0, 0 }
  ------------------
   83|       |
   84|    657|    if (ctx == NULL
  ------------------
  |  Branch (84:9): [True: 0, False: 657]
  ------------------
   85|    657|        || ctx->handle == NULL
  ------------------
  |  Branch (85:12): [True: 0, False: 657]
  ------------------
   86|    657|        || ctx->core_get_params == NULL)
  ------------------
  |  Branch (86:12): [True: 0, False: 657]
  ------------------
   87|      0|        return defval;
   88|       |
   89|    657|    param[0].key = (char *)name;
   90|    657|    param[0].data_type = OSSL_PARAM_UTF8_PTR;
  ------------------
  |  |  141|    657|#define OSSL_PARAM_UTF8_PTR 6
  ------------------
   91|    657|    param[0].data = (void *)&val;
   92|    657|    param[0].data_size = sizeof(val);
   93|    657|    param[0].return_size = OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|    657|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
   94|       |
   95|       |    /* Errors are ignored, returning the default value */
   96|    657|    if (ctx->core_get_params(ctx->handle, param)
  ------------------
  |  Branch (96:9): [True: 657, False: 0]
  ------------------
   97|    657|        && OSSL_PARAM_modified(param)
  ------------------
  |  Branch (97:12): [True: 0, False: 657]
  ------------------
   98|      0|        && val != NULL)
  ------------------
  |  Branch (98:12): [True: 0, False: 0]
  ------------------
   99|      0|        return val;
  100|    657|    return defval;
  101|    657|}
ossl_prov_ctx_get_bool_param:
  104|    438|{
  105|    438|    const char *val = ossl_prov_ctx_get_param(ctx, name, NULL);
  106|       |
  107|    438|    if (val != NULL) {
  ------------------
  |  Branch (107:9): [True: 0, False: 438]
  ------------------
  108|      0|        if ((strcmp(val, "1") == 0)
  ------------------
  |  Branch (108:13): [True: 0, False: 0]
  ------------------
  109|      0|            || (OPENSSL_strcasecmp(val, "yes") == 0)
  ------------------
  |  Branch (109:16): [True: 0, False: 0]
  ------------------
  110|      0|            || (OPENSSL_strcasecmp(val, "true") == 0)
  ------------------
  |  Branch (110:16): [True: 0, False: 0]
  ------------------
  111|      0|            || (OPENSSL_strcasecmp(val, "on") == 0))
  ------------------
  |  Branch (111:16): [True: 0, False: 0]
  ------------------
  112|      0|            return 1;
  113|      0|        else if ((strcmp(val, "0") == 0)
  ------------------
  |  Branch (113:18): [True: 0, False: 0]
  ------------------
  114|      0|            || (OPENSSL_strcasecmp(val, "no") == 0)
  ------------------
  |  Branch (114:16): [True: 0, False: 0]
  ------------------
  115|      0|            || (OPENSSL_strcasecmp(val, "false") == 0)
  ------------------
  |  Branch (115:16): [True: 0, False: 0]
  ------------------
  116|      0|            || (OPENSSL_strcasecmp(val, "off") == 0))
  ------------------
  |  Branch (116:16): [True: 0, False: 0]
  ------------------
  117|      0|            return 0;
  118|      0|    }
  119|    438|    return defval;
  120|    438|}

ossl_err_load_PROV_strings:
  263|      2|{
  264|      2|#ifndef OPENSSL_NO_ERR
  265|      2|    if (ERR_reason_error_string(PROV_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (265:9): [True: 2, False: 0]
  ------------------
  266|      2|        ERR_load_strings_const(PROV_str_reasons);
  267|      2|#endif
  268|      2|    return 1;
  269|      2|}

ossl_prov_seeding_from_dispatch:
   42|      1|{
   43|     54|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (43:12): [True: 53, False: 1]
  ------------------
   44|       |        /*
   45|       |         * We do not support the scenario of an application linked against
   46|       |         * multiple versions of libcrypto (e.g. one static and one dynamic), but
   47|       |         * sharing a single fips.so. We do a simple sanity check here.
   48|       |         */
   49|     53|#define set_func(c, f)   \
   50|     53|    do {                 \
   51|     53|        if (c == NULL)   \
   52|     53|            c = f;       \
   53|     53|        else if (c != f) \
   54|     53|            return 0;    \
   55|     53|    } while (0)
   56|     53|        switch (fns->function_id) {
  ------------------
  |  Branch (56:17): [True: 8, False: 45]
  ------------------
   57|      1|        case OSSL_FUNC_GET_ENTROPY:
  ------------------
  |  |  188|      1|#define OSSL_FUNC_GET_ENTROPY 101
  ------------------
  |  Branch (57:9): [True: 1, False: 52]
  ------------------
   58|      1|            set_func(c_get_entropy, OSSL_FUNC_get_entropy(fns));
  ------------------
  |  |   50|      1|    do {                 \
  |  |   51|      1|        if (c == NULL)   \
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      1|            c = f;       \
  |  |   53|      1|        else if (c != f) \
  |  |  ------------------
  |  |  |  Branch (53:18): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|            return 0;    \
  |  |   55|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
   59|      1|            break;
   60|      1|        case OSSL_FUNC_GET_USER_ENTROPY:
  ------------------
  |  |  179|      1|#define OSSL_FUNC_GET_USER_ENTROPY 98
  ------------------
  |  Branch (60:9): [True: 1, False: 52]
  ------------------
   61|      1|            set_func(c_get_user_entropy, OSSL_FUNC_get_user_entropy(fns));
  ------------------
  |  |   50|      1|    do {                 \
  |  |   51|      1|        if (c == NULL)   \
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      1|            c = f;       \
  |  |   53|      1|        else if (c != f) \
  |  |  ------------------
  |  |  |  Branch (53:18): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|            return 0;    \
  |  |   55|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
   62|      1|            break;
   63|      1|        case OSSL_FUNC_CLEANUP_ENTROPY:
  ------------------
  |  |  189|      1|#define OSSL_FUNC_CLEANUP_ENTROPY 102
  ------------------
  |  Branch (63:9): [True: 1, False: 52]
  ------------------
   64|      1|            set_func(c_cleanup_entropy, OSSL_FUNC_cleanup_entropy(fns));
  ------------------
  |  |   50|      1|    do {                 \
  |  |   51|      1|        if (c == NULL)   \
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      1|            c = f;       \
  |  |   53|      1|        else if (c != f) \
  |  |  ------------------
  |  |  |  Branch (53:18): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|            return 0;    \
  |  |   55|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
   65|      1|            break;
   66|      1|        case OSSL_FUNC_CLEANUP_USER_ENTROPY:
  ------------------
  |  |  177|      1|#define OSSL_FUNC_CLEANUP_USER_ENTROPY 96
  ------------------
  |  Branch (66:9): [True: 1, False: 52]
  ------------------
   67|      1|            set_func(c_cleanup_user_entropy, OSSL_FUNC_cleanup_user_entropy(fns));
  ------------------
  |  |   50|      1|    do {                 \
  |  |   51|      1|        if (c == NULL)   \
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      1|            c = f;       \
  |  |   53|      1|        else if (c != f) \
  |  |  ------------------
  |  |  |  Branch (53:18): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|            return 0;    \
  |  |   55|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
   68|      1|            break;
   69|      1|        case OSSL_FUNC_GET_NONCE:
  ------------------
  |  |  190|      1|#define OSSL_FUNC_GET_NONCE 103
  ------------------
  |  Branch (69:9): [True: 1, False: 52]
  ------------------
   70|      1|            set_func(c_get_nonce, OSSL_FUNC_get_nonce(fns));
  ------------------
  |  |   50|      1|    do {                 \
  |  |   51|      1|        if (c == NULL)   \
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      1|            c = f;       \
  |  |   53|      1|        else if (c != f) \
  |  |  ------------------
  |  |  |  Branch (53:18): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|            return 0;    \
  |  |   55|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
   71|      1|            break;
   72|      1|        case OSSL_FUNC_GET_USER_NONCE:
  ------------------
  |  |  180|      1|#define OSSL_FUNC_GET_USER_NONCE 99
  ------------------
  |  Branch (72:9): [True: 1, False: 52]
  ------------------
   73|      1|            set_func(c_get_user_nonce, OSSL_FUNC_get_user_nonce(fns));
  ------------------
  |  |   50|      1|    do {                 \
  |  |   51|      1|        if (c == NULL)   \
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      1|            c = f;       \
  |  |   53|      1|        else if (c != f) \
  |  |  ------------------
  |  |  |  Branch (53:18): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|            return 0;    \
  |  |   55|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
   74|      1|            break;
   75|      1|        case OSSL_FUNC_CLEANUP_NONCE:
  ------------------
  |  |  191|      1|#define OSSL_FUNC_CLEANUP_NONCE 104
  ------------------
  |  Branch (75:9): [True: 1, False: 52]
  ------------------
   76|      1|            set_func(c_cleanup_nonce, OSSL_FUNC_cleanup_nonce(fns));
  ------------------
  |  |   50|      1|    do {                 \
  |  |   51|      1|        if (c == NULL)   \
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      1|            c = f;       \
  |  |   53|      1|        else if (c != f) \
  |  |  ------------------
  |  |  |  Branch (53:18): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|            return 0;    \
  |  |   55|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
   77|      1|            break;
   78|      1|        case OSSL_FUNC_CLEANUP_USER_NONCE:
  ------------------
  |  |  178|      1|#define OSSL_FUNC_CLEANUP_USER_NONCE 97
  ------------------
  |  Branch (78:9): [True: 1, False: 52]
  ------------------
   79|      1|            set_func(c_cleanup_user_nonce, OSSL_FUNC_cleanup_user_nonce(fns));
  ------------------
  |  |   50|      1|    do {                 \
  |  |   51|      1|        if (c == NULL)   \
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 1, False: 0]
  |  |  ------------------
  |  |   52|      1|            c = f;       \
  |  |   53|      1|        else if (c != f) \
  |  |  ------------------
  |  |  |  Branch (53:18): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|            return 0;    \
  |  |   55|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
   80|      1|            break;
   81|     53|        }
   82|     53|#undef set_func
   83|     53|    }
   84|      1|    return 1;
   85|      1|}

ossl_prov_cache_exported_algorithms:
  340|      1|{
  341|      1|    int i, j;
  342|       |
  343|      1|    if (out[0].algorithm_names == NULL) {
  ------------------
  |  Branch (343:9): [True: 1, False: 0]
  ------------------
  344|    140|        for (i = j = 0; in[i].alg.algorithm_names != NULL; ++i) {
  ------------------
  |  Branch (344:25): [True: 139, False: 1]
  ------------------
  345|    139|            if (in[i].capable == NULL || in[i].capable())
  ------------------
  |  Branch (345:17): [True: 126, False: 13]
  |  Branch (345:42): [True: 4, False: 9]
  ------------------
  346|    130|                out[j++] = in[i].alg;
  347|    139|        }
  348|      1|        out[j++] = in[i].alg;
  349|      1|    }
  350|      1|}

ossl_default_provider_init:
  754|      1|{
  755|      1|    OSSL_FUNC_core_get_libctx_fn *c_get_libctx = NULL;
  756|      1|    BIO_METHOD *corebiometh;
  757|       |
  758|      1|    if (!ossl_prov_bio_from_dispatch(in)
  ------------------
  |  Branch (758:9): [True: 0, False: 1]
  ------------------
  759|      1|        || !ossl_prov_seeding_from_dispatch(in))
  ------------------
  |  Branch (759:12): [True: 0, False: 1]
  ------------------
  760|      0|        return 0;
  761|     54|    for (; in->function_id != 0; in++) {
  ------------------
  |  Branch (761:12): [True: 53, False: 1]
  ------------------
  762|     53|        switch (in->function_id) {
  763|      1|        case OSSL_FUNC_CORE_GETTABLE_PARAMS:
  ------------------
  |  |   72|      1|#define OSSL_FUNC_CORE_GETTABLE_PARAMS 1
  ------------------
  |  Branch (763:9): [True: 1, False: 52]
  ------------------
  764|      1|            c_gettable_params = OSSL_FUNC_core_gettable_params(in);
  765|      1|            break;
  766|      1|        case OSSL_FUNC_CORE_GET_PARAMS:
  ------------------
  |  |   75|      1|#define OSSL_FUNC_CORE_GET_PARAMS 2
  ------------------
  |  Branch (766:9): [True: 1, False: 52]
  ------------------
  767|      1|            c_get_params = OSSL_FUNC_core_get_params(in);
  768|      1|            break;
  769|      1|        case OSSL_FUNC_CORE_GET_LIBCTX:
  ------------------
  |  |   79|      1|#define OSSL_FUNC_CORE_GET_LIBCTX 4
  ------------------
  |  Branch (769:9): [True: 1, False: 52]
  ------------------
  770|      1|            c_get_libctx = OSSL_FUNC_core_get_libctx(in);
  771|      1|            break;
  772|     50|        default:
  ------------------
  |  Branch (772:9): [True: 50, False: 3]
  ------------------
  773|       |            /* Just ignore anything we don't understand */
  774|     50|            break;
  775|     53|        }
  776|     53|    }
  777|       |
  778|      1|    if (c_get_libctx == NULL)
  ------------------
  |  Branch (778:9): [True: 0, False: 1]
  ------------------
  779|      0|        return 0;
  780|       |
  781|       |    /*
  782|       |     * We want to make sure that all calls from this provider that requires
  783|       |     * a library context use the same context as the one used to call our
  784|       |     * functions.  We do that by passing it along in the provider context.
  785|       |     *
  786|       |     * This only works for built-in providers.  Most providers should
  787|       |     * create their own library context.
  788|       |     */
  789|      1|    if ((*provctx = ossl_prov_ctx_new()) == NULL
  ------------------
  |  Branch (789:9): [True: 0, False: 1]
  ------------------
  790|      1|        || (corebiometh = ossl_bio_prov_init_bio_method()) == NULL) {
  ------------------
  |  Branch (790:12): [True: 0, False: 1]
  ------------------
  791|      0|        ossl_prov_ctx_free(*provctx);
  792|      0|        *provctx = NULL;
  793|      0|        return 0;
  794|      0|    }
  795|      1|    ossl_prov_ctx_set0_libctx(*provctx,
  796|      1|        (OSSL_LIB_CTX *)c_get_libctx(handle));
  797|      1|    ossl_prov_ctx_set0_handle(*provctx, handle);
  798|      1|    ossl_prov_ctx_set0_core_bio_method(*provctx, corebiometh);
  799|      1|    ossl_prov_ctx_set0_core_get_params(*provctx, c_get_params);
  800|       |
  801|      1|    *out = deflt_dispatch_table;
  802|      1|    ossl_prov_cache_exported_algorithms(deflt_ciphers, exported_ciphers);
  803|       |
  804|      1|    return 1;
  805|      1|}
defltprov.c:deflt_query:
  696|  3.57k|{
  697|  3.57k|    *no_cache = 0;
  698|  3.57k|    switch (operation_id) {
  ------------------
  |  Branch (698:13): [True: 3.57k, False: 0]
  ------------------
  699|  1.55k|    case OSSL_OP_DIGEST:
  ------------------
  |  |  283|  1.55k|#define OSSL_OP_DIGEST 1
  ------------------
  |  Branch (699:5): [True: 1.55k, False: 2.02k]
  ------------------
  700|  1.55k|        return deflt_digests;
  701|  1.99k|    case OSSL_OP_CIPHER:
  ------------------
  |  |  284|  1.99k|#define OSSL_OP_CIPHER 2 /* Symmetric Ciphers */
  ------------------
  |  Branch (701:5): [True: 1.99k, False: 1.58k]
  ------------------
  702|  1.99k|        return exported_ciphers;
  703|      0|    case OSSL_OP_MAC:
  ------------------
  |  |  285|      0|#define OSSL_OP_MAC 3
  ------------------
  |  Branch (703:5): [True: 0, False: 3.57k]
  ------------------
  704|      0|        return deflt_macs;
  705|      0|    case OSSL_OP_KDF:
  ------------------
  |  |  286|      0|#define OSSL_OP_KDF 4
  ------------------
  |  Branch (705:5): [True: 0, False: 3.57k]
  ------------------
  706|      0|        return deflt_kdfs;
  707|      2|    case OSSL_OP_RAND:
  ------------------
  |  |  287|      2|#define OSSL_OP_RAND 5
  ------------------
  |  Branch (707:5): [True: 2, False: 3.57k]
  ------------------
  708|      2|        return deflt_rands;
  709|     20|    case OSSL_OP_KEYMGMT:
  ------------------
  |  |  288|     20|#define OSSL_OP_KEYMGMT 10
  ------------------
  |  Branch (709:5): [True: 20, False: 3.55k]
  ------------------
  710|     20|        return deflt_keymgmt;
  711|      2|    case OSSL_OP_KEYEXCH:
  ------------------
  |  |  289|      2|#define OSSL_OP_KEYEXCH 11
  ------------------
  |  Branch (711:5): [True: 2, False: 3.57k]
  ------------------
  712|      2|        return deflt_keyexch;
  713|      2|    case OSSL_OP_SIGNATURE:
  ------------------
  |  |  290|      2|#define OSSL_OP_SIGNATURE 12
  ------------------
  |  Branch (713:5): [True: 2, False: 3.57k]
  ------------------
  714|      2|        return deflt_signature;
  715|      0|    case OSSL_OP_ASYM_CIPHER:
  ------------------
  |  |  291|      0|#define OSSL_OP_ASYM_CIPHER 13
  ------------------
  |  Branch (715:5): [True: 0, False: 3.57k]
  ------------------
  716|      0|        return deflt_asym_cipher;
  717|      0|    case OSSL_OP_KEM:
  ------------------
  |  |  292|      0|#define OSSL_OP_KEM 14
  ------------------
  |  Branch (717:5): [True: 0, False: 3.57k]
  ------------------
  718|      0|        return deflt_asym_kem;
  719|      0|    case OSSL_OP_ENCODER:
  ------------------
  |  |  295|      0|#define OSSL_OP_ENCODER 20
  ------------------
  |  Branch (719:5): [True: 0, False: 3.57k]
  ------------------
  720|      0|        return deflt_encoder;
  721|      4|    case OSSL_OP_DECODER:
  ------------------
  |  |  296|      4|#define OSSL_OP_DECODER 21
  ------------------
  |  Branch (721:5): [True: 4, False: 3.57k]
  ------------------
  722|      4|        return deflt_decoder;
  723|      0|    case OSSL_OP_STORE:
  ------------------
  |  |  297|      0|#define OSSL_OP_STORE 22
  ------------------
  |  Branch (723:5): [True: 0, False: 3.57k]
  ------------------
  724|      0|        return deflt_store;
  725|      0|    case OSSL_OP_SKEYMGMT:
  ------------------
  |  |  293|      0|#define OSSL_OP_SKEYMGMT 15
  ------------------
  |  Branch (725:5): [True: 0, False: 3.57k]
  ------------------
  726|      0|        return deflt_skeymgmt;
  727|  3.57k|    }
  728|      0|    return NULL;
  729|  3.57k|}

cipher_aes_cbc_hmac_sha.c:aes_128_cbc_hmac_sha1_get_params:
  401|      1|    {                                                                               \
  402|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_CBC_MODE,            \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  403|      1|            flags, kbits, blkbits, ivbits);                                         \
  404|      1|    }                                                                               \
cipher_aes_cbc_hmac_sha.c:aes_gettable_ctx_params:
  301|      4|{
  302|      4|    return cipher_aes_known_gettable_ctx_params;
  303|      4|}
cipher_aes_cbc_hmac_sha.c:aes_256_cbc_hmac_sha1_get_params:
  401|      1|    {                                                                               \
  402|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_CBC_MODE,            \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  403|      1|            flags, kbits, blkbits, ivbits);                                         \
  404|      1|    }                                                                               \
cipher_aes_cbc_hmac_sha.c:aes_128_cbc_hmac_sha256_get_params:
  401|      1|    {                                                                               \
  402|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_CBC_MODE,            \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  403|      1|            flags, kbits, blkbits, ivbits);                                         \
  404|      1|    }                                                                               \
cipher_aes_cbc_hmac_sha.c:aes_256_cbc_hmac_sha256_get_params:
  401|      1|    {                                                                               \
  402|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_CBC_MODE,            \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  403|      1|            flags, kbits, blkbits, ivbits);                                         \
  404|      1|    }                                                                               \

ossl_cipher_capable_aes_cbc_hmac_sha1_etm:
   14|      3|{
   15|      3|    return 0;
   16|      3|}

ossl_cipher_capable_aes_cbc_hmac_sha1:
   41|      2|{
   42|      2|    return AESNI_CBC_HMAC_SHA_CAPABLE;
  ------------------
  |  |  171|      2|#define AESNI_CBC_HMAC_SHA_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  ------------------
   43|      2|}

ossl_cipher_capable_aes_cbc_hmac_sha256_etm:
   14|      3|{
   15|      3|    return 0;
   16|      3|}

ossl_cipher_capable_aes_cbc_hmac_sha256:
   41|      2|{
   42|      2|    return AESNI_CBC_HMAC_SHA_CAPABLE
  ------------------
  |  |  171|      4|#define AESNI_CBC_HMAC_SHA_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  ------------------
  |  |  |  Branch (171:36): [True: 2, False: 0]
  |  |  ------------------
  ------------------
   43|      2|        && aesni_cbc_sha256_enc(NULL, NULL, 0, NULL, NULL, NULL, NULL);
  ------------------
  |  Branch (43:12): [True: 2, False: 0]
  ------------------
   44|      2|}

ossl_cipher_capable_aes_cbc_hmac_sha512_etm:
   20|      3|{
   21|      3|    return 0;
   22|      3|}

cipher_aes_gcm_siv.c:ossl_aes_128_gcm_siv_get_params:
  288|      1|    {                                                                                                      \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,                            \
  ------------------
  |  |  322|      1|#define EVP_CIPH_GCM_SIV_MODE 0x10005
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                                                \
  291|      1|    }                                                                                                      \
cipher_aes_gcm_siv.c:ossl_aes_gcm_siv_gettable_ctx_params:
  211|      3|{
  212|      3|    return aes_gcm_siv_known_gettable_ctx_params;
  213|      3|}
cipher_aes_gcm_siv.c:ossl_aes_192_gcm_siv_get_params:
  288|      1|    {                                                                                                      \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,                            \
  ------------------
  |  |  322|      1|#define EVP_CIPH_GCM_SIV_MODE 0x10005
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                                                \
  291|      1|    }                                                                                                      \
cipher_aes_gcm_siv.c:ossl_aes_256_gcm_siv_get_params:
  288|      1|    {                                                                                                      \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,                            \
  ------------------
  |  |  322|      1|#define EVP_CIPH_GCM_SIV_MODE 0x10005
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                                                \
  291|      1|    }                                                                                                      \

ossl_prov_cipher_hw_aes_ecb:
  139|      6|    {                                                   \
  140|      6|        PROV_CIPHER_HW_select(mode) return &aes_##mode; \
  ------------------
  |  |   79|      6|#define PROV_CIPHER_HW_select(mode)                                            \
  |  |   80|      6|if (AESNI_CAPABLE)                                                             \
  |  |  ------------------
  |  |  |  |  185|      6|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (185:23): [True: 6, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   81|      6|    return &aesni_##mode;
  ------------------
  141|      6|    }
ossl_prov_cipher_hw_aes_ctr:
  139|      3|    {                                                   \
  140|      3|        PROV_CIPHER_HW_select(mode) return &aes_##mode; \
  ------------------
  |  |   79|      3|#define PROV_CIPHER_HW_select(mode)                                            \
  |  |   80|      3|if (AESNI_CAPABLE)                                                             \
  |  |  ------------------
  |  |  |  |  185|      3|#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1] & (1 << (57 - 32)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (185:23): [True: 3, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   81|      3|    return &aesni_##mode;
  ------------------
  141|      3|    }

cipher_aes_hw.c:cipher_hw_aesni_initkey:
   20|  18.5k|{
   21|  18.5k|    int ret;
   22|  18.5k|    PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
   23|  18.5k|    AES_KEY *ks = &adat->ks.ks;
   24|       |
   25|  18.5k|    dat->ks = ks;
   26|       |
   27|  18.5k|    if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
  ------------------
  |  |  311|  37.1k|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
                  if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
  ------------------
  |  |  312|  9.28k|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (27:10): [True: 9.30k, False: 9.28k]
  |  Branch (27:44): [True: 0, False: 9.28k]
  ------------------
   28|  9.30k|        && !dat->enc) {
  ------------------
  |  Branch (28:12): [True: 0, False: 9.30k]
  ------------------
   29|      0|        ret = aesni_set_decrypt_key(key, (int)(keylen * 8), ks);
   30|      0|        dat->block = (block128_f) aesni_decrypt;
   31|      0|        dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
  ------------------
  |  |  312|      0|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (31:27): [True: 0, False: 0]
  ------------------
   32|      0|            (cbc128_f) aesni_cbc_encrypt : NULL;
   33|  18.5k|    } else {
   34|  18.5k|        ret = aesni_set_encrypt_key(key, (int)(keylen * 8), ks);
   35|  18.5k|        dat->block = (block128_f) aesni_encrypt;
   36|  18.5k|        if (dat->mode == EVP_CIPH_CBC_MODE)
  ------------------
  |  |  312|  18.5k|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (36:13): [True: 0, False: 18.5k]
  ------------------
   37|      0|            dat->stream.cbc = (cbc128_f) aesni_cbc_encrypt;
   38|  18.5k|        else if (dat->mode == EVP_CIPH_CTR_MODE)
  ------------------
  |  |  315|  18.5k|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  |  Branch (38:18): [True: 9.28k, False: 9.30k]
  ------------------
   39|  9.28k|            dat->stream.ctr = (ctr128_f) aesni_ctr32_encrypt_blocks;
   40|  9.30k|        else
   41|  9.30k|            dat->stream.cbc = NULL;
   42|  18.5k|    }
   43|       |
   44|  18.5k|    if (ret < 0) {
  ------------------
  |  Branch (44:9): [True: 0, False: 18.5k]
  ------------------
   45|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_KEY_SETUP_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   46|      0|        return 0;
   47|      0|    }
   48|       |
   49|  18.5k|    return 1;
   50|  18.5k|}
cipher_aes_hw.c:cipher_hw_aesni_ecb:
   64|  9.40k|{
   65|  9.40k|    if (len < ctx->blocksize)
  ------------------
  |  Branch (65:9): [True: 0, False: 9.40k]
  ------------------
   66|      0|        return 1;
   67|       |
   68|  9.40k|    aesni_ecb_encrypt(in, out, len, ctx->ks, ctx->enc);
   69|       |
   70|  9.40k|    return 1;
   71|  9.40k|}

cipher_aes_ocb.c:aes_256_ocb_get_params:
  527|      1|    {                                                                           \
  528|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  320|      1|#define EVP_CIPH_OCB_MODE 0x10003
  ------------------
  529|      1|            flags, kbits, blkbits, ivbits);                                     \
  530|      1|    }                                                                           \
cipher_aes_ocb.c:cipher_ocb_gettable_ctx_params:
  486|      3|{
  487|      3|    return cipher_ocb_known_gettable_ctx_params;
  488|      3|}
cipher_aes_ocb.c:aes_192_ocb_get_params:
  527|      1|    {                                                                           \
  528|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  320|      1|#define EVP_CIPH_OCB_MODE 0x10003
  ------------------
  529|      1|            flags, kbits, blkbits, ivbits);                                     \
  530|      1|    }                                                                           \
cipher_aes_ocb.c:aes_128_ocb_get_params:
  527|      1|    {                                                                           \
  528|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  320|      1|#define EVP_CIPH_OCB_MODE 0x10003
  ------------------
  529|      1|            flags, kbits, blkbits, ivbits);                                     \
  530|      1|    }                                                                           \

cipher_aes_siv.c:aes_128_siv_get_params:
  261|      1|    {                                                                            \
  262|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  321|      1|#define EVP_CIPH_SIV_MODE 0x10004
  ------------------
  263|      1|            flags, 2 * kbits, blkbits, ivbits);                                  \
  264|      1|    }                                                                            \
cipher_aes_siv.c:aes_siv_gettable_ctx_params:
  186|      3|{
  187|      3|    return aes_siv_known_gettable_ctx_params;
  188|      3|}
cipher_aes_siv.c:aes_192_siv_get_params:
  261|      1|    {                                                                            \
  262|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  321|      1|#define EVP_CIPH_SIV_MODE 0x10004
  ------------------
  263|      1|            flags, 2 * kbits, blkbits, ivbits);                                  \
  264|      1|    }                                                                            \
cipher_aes_siv.c:aes_256_siv_get_params:
  261|      1|    {                                                                            \
  262|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  321|      1|#define EVP_CIPH_SIV_MODE 0x10004
  ------------------
  263|      1|            flags, 2 * kbits, blkbits, ivbits);                                  \
  264|      1|    }                                                                            \

cipher_aes_wrp.c:aes_256_wrap_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_192_wrap_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_128_wrap_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_256_wrappad_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_192_wrappad_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_128_wrappad_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_256_wrapinv_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_192_wrapinv_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_128_wrapinv_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_256_wrappadinv_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_192_wrappadinv_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \
cipher_aes_wrp.c:aes_128_wrappadinv_get_params:
  288|      1|    {                                                                           \
  289|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  290|      1|            flags, kbits, blkbits, ivbits);                                     \
  291|      1|    }                                                                           \

cipher_aes_xts.c:aes_256_xts_get_params:
  282|      1|    {                                                                              \
  283|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,    \
  ------------------
  |  |  318|      1|#define EVP_CIPH_XTS_MODE 0x10001
  ------------------
  284|      1|            flags, 2 * kbits, AES_XTS_BLOCK_BITS,                                  \
  ------------------
  |  |   25|      1|#define AES_XTS_BLOCK_BITS 8
  ------------------
  285|      1|            AES_XTS_IV_BITS);                                                      \
  ------------------
  |  |   24|      1|#define AES_XTS_IV_BITS 128
  ------------------
  286|      1|    }                                                                              \
cipher_aes_xts.c:aes_128_xts_get_params:
  282|      1|    {                                                                              \
  283|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,    \
  ------------------
  |  |  318|      1|#define EVP_CIPH_XTS_MODE 0x10001
  ------------------
  284|      1|            flags, 2 * kbits, AES_XTS_BLOCK_BITS,                                  \
  ------------------
  |  |   25|      1|#define AES_XTS_BLOCK_BITS 8
  ------------------
  285|      1|            AES_XTS_IV_BITS);                                                      \
  ------------------
  |  |   24|      1|#define AES_XTS_IV_BITS 128
  ------------------
  286|      1|    }                                                                              \

cipher_chacha20.c:chacha20_get_params:
   96|      1|{
   97|      1|    return ossl_cipher_generic_get_params(params, 0, CHACHA20_FLAGS,
  ------------------
  |  |   21|      1|#define CHACHA20_FLAGS (PROV_CIPHER_FLAG_CUSTOM_IV)
  |  |  ------------------
  |  |  |  |   40|      1|#define PROV_CIPHER_FLAG_CUSTOM_IV 0x0002
  |  |  ------------------
  ------------------
   98|      1|        CHACHA20_KEYLEN * 8,
  ------------------
  |  |   18|      1|#define CHACHA20_KEYLEN (CHACHA_KEY_SIZE)
  |  |  ------------------
  |  |  |  |   44|      1|#define CHACHA_KEY_SIZE 32
  |  |  ------------------
  ------------------
   99|      1|        CHACHA20_BLKLEN * 8,
  ------------------
  |  |   19|      1|#define CHACHA20_BLKLEN (1)
  ------------------
  100|      1|        CHACHA20_IVLEN * 8);
  ------------------
  |  |   20|      1|#define CHACHA20_IVLEN (CHACHA_CTR_SIZE)
  |  |  ------------------
  |  |  |  |   45|      1|#define CHACHA_CTR_SIZE 16
  |  |  ------------------
  ------------------
  101|      1|}
cipher_chacha20.c:chacha20_gettable_ctx_params:
  141|      1|{
  142|      1|    return chacha20_known_gettable_ctx_params;
  143|      1|}

cipher_chacha20_poly1305.c:chacha20_poly1305_get_params:
   96|    221|{
   97|    221|    return ossl_cipher_generic_get_params(params, 0, CHACHA20_POLY1305_FLAGS,
  ------------------
  |  |   25|    221|#define CHACHA20_POLY1305_FLAGS (PROV_CIPHER_FLAG_AEAD \
  |  |  ------------------
  |  |  |  |   39|    221|#define PROV_CIPHER_FLAG_AEAD 0x0001
  |  |  ------------------
  |  |   26|    221|    | PROV_CIPHER_FLAG_CUSTOM_IV)
  |  |  ------------------
  |  |  |  |   40|    221|#define PROV_CIPHER_FLAG_CUSTOM_IV 0x0002
  |  |  ------------------
  ------------------
   98|    221|        CHACHA20_POLY1305_KEYLEN * 8,
  ------------------
  |  |   21|    221|#define CHACHA20_POLY1305_KEYLEN CHACHA_KEY_SIZE
  |  |  ------------------
  |  |  |  |   44|    221|#define CHACHA_KEY_SIZE 32
  |  |  ------------------
  ------------------
   99|    221|        CHACHA20_POLY1305_BLKLEN * 8,
  ------------------
  |  |   22|    221|#define CHACHA20_POLY1305_BLKLEN 1
  ------------------
  100|    221|        CHACHA20_POLY1305_IVLEN * 8);
  ------------------
  |  |   16|    221|#define CHACHA20_POLY1305_IVLEN 12
  ------------------
  101|    221|}
cipher_chacha20_poly1305.c:chacha20_poly1305_gettable_ctx_params:
  262|      1|{
  263|      1|    return chacha20_poly1305_get_ctx_params_list;
  264|      1|}

cipher_aes.c:aes_cts_256_cbc_get_params:
   17|      1|    {                                                                            \
   18|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   19|      1|            flags, kbits, blkbits, ivbits);                                      \
   20|      1|    }                                                                            \
cipher_aes.c:aes_cts_192_cbc_get_params:
   17|      1|    {                                                                            \
   18|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   19|      1|            flags, kbits, blkbits, ivbits);                                      \
   20|      1|    }                                                                            \
cipher_aes.c:aes_cts_128_cbc_get_params:
   17|      1|    {                                                                            \
   18|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   19|      1|            flags, kbits, blkbits, ivbits);                                      \
   20|      1|    }                                                                            \
cipher_camellia.c:camellia_cts_256_cbc_get_params:
   17|      1|    {                                                                            \
   18|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   19|      1|            flags, kbits, blkbits, ivbits);                                      \
   20|      1|    }                                                                            \
cipher_camellia.c:camellia_cts_192_cbc_get_params:
   17|      1|    {                                                                            \
   18|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   19|      1|            flags, kbits, blkbits, ivbits);                                      \
   20|      1|    }                                                                            \
cipher_camellia.c:camellia_cts_128_cbc_get_params:
   17|      1|    {                                                                            \
   18|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   19|      1|            flags, kbits, blkbits, ivbits);                                      \
   20|      1|    }                                                                            \

cipher_null.c:null_get_params:
  104|      1|{
  105|      1|    return ossl_cipher_generic_get_params(params, 0, 0, 0, 8, 0);
  106|      1|}
cipher_null.c:null_gettable_ctx_params:
  118|      1|{
  119|      1|    return null_known_gettable_ctx_params;
  120|      1|}

cipher_sm4_xts.c:sm4_128_xts_get_params:
  246|      1|    {                                                                              \
  247|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,    \
  ------------------
  |  |  318|      1|#define EVP_CIPH_XTS_MODE 0x10001
  ------------------
  248|      1|            flags, 2 * kbits, SM4_XTS_BLOCK_BITS,                                  \
  ------------------
  |  |   20|      1|#define SM4_XTS_BLOCK_BITS 8
  ------------------
  249|      1|            SM4_XTS_IV_BITS);                                                      \
  ------------------
  |  |   19|      1|#define SM4_XTS_IV_BITS 128
  ------------------
  250|      1|    }                                                                              \

cipher_tdes.c:tdes_ede3_ecb_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes.c:tdes_ede3_cbc_get_params:
   44|    221|    {                                                                              \
   45|    221|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  312|    221|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   46|    221|            flags, kbits, blkbits, ivbits);                                        \
   47|    221|    }                                                                              \
cipher_tdes_default.c:tdes_ede3_ofb_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes_default.c:tdes_ede3_cfb_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes_default.c:tdes_ede3_cfb1_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes_default.c:tdes_ede3_cfb8_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes_default.c:tdes_ede2_ecb_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes_default.c:tdes_ede2_cbc_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes_default.c:tdes_ede2_ofb_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes_default.c:tdes_ede2_cfb_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \

ossl_tdes_get_params:
  185|    230|{
  186|       |#ifdef FIPS_MODULE
  187|       |    const int decrypt_only = 1;
  188|       |#else
  189|    230|    const int decrypt_only = 0;
  190|    230|#endif
  191|    230|    OSSL_PARAM *p;
  192|       |
  193|    230|    p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_DECRYPT_ONLY);
  ------------------
  |  |  193|    230|# define OSSL_CIPHER_PARAM_DECRYPT_ONLY "decrypt-only"
  ------------------
  194|    230|    if (p != NULL && !OSSL_PARAM_set_int(p, decrypt_only)) {
  ------------------
  |  Branch (194:9): [True: 220, False: 10]
  |  Branch (194:22): [True: 0, False: 220]
  ------------------
  195|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  196|      0|        return 0;
  197|      0|    }
  198|       |
  199|    230|    return ossl_cipher_generic_get_params(params, md, flags,
  200|    230|        kbits, blkbits, ivbits);
  201|    230|}

cipher_tdes_wrap.c:tdes_wrap_get_params:
  181|      1|    {                                                                            \
  182|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_WRAP_MODE, flags, \
  ------------------
  |  |  319|      1|#define EVP_CIPH_WRAP_MODE 0x10002
  ------------------
  183|      1|            kbits, blkbits, ivbits);                                             \
  184|      1|    }                                                                            \

ossl_cipher_generic_get_params:
  205|  3.21k|{
  206|  3.21k|    struct ossl_cipher_generic_get_params_st p;
  207|       |
  208|  3.21k|    if (!ossl_cipher_generic_get_params_decoder(params, &p))
  ------------------
  |  Branch (208:9): [True: 0, False: 3.21k]
  ------------------
  209|      0|        return 0;
  210|       |
  211|  3.21k|    if (p.mode != NULL && !OSSL_PARAM_set_uint(p.mode, md)) {
  ------------------
  |  Branch (211:9): [True: 130, False: 3.08k]
  |  Branch (211:27): [True: 0, False: 130]
  ------------------
  212|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  213|      0|        return 0;
  214|      0|    }
  215|  3.21k|    if (p.aead != NULL
  ------------------
  |  Branch (215:9): [True: 130, False: 3.08k]
  ------------------
  216|    130|        && !OSSL_PARAM_set_int(p.aead, (flags & PROV_CIPHER_FLAG_AEAD) != 0)) {
  ------------------
  |  |   39|    130|#define PROV_CIPHER_FLAG_AEAD 0x0001
  ------------------
  |  Branch (216:12): [True: 0, False: 130]
  ------------------
  217|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  218|      0|        return 0;
  219|      0|    }
  220|  3.21k|    if (p.custiv != NULL
  ------------------
  |  Branch (220:9): [True: 130, False: 3.08k]
  ------------------
  221|    130|        && !OSSL_PARAM_set_int(p.custiv, (flags & PROV_CIPHER_FLAG_CUSTOM_IV) != 0)) {
  ------------------
  |  |   40|    130|#define PROV_CIPHER_FLAG_CUSTOM_IV 0x0002
  ------------------
  |  Branch (221:12): [True: 0, False: 130]
  ------------------
  222|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  223|      0|        return 0;
  224|      0|    }
  225|  3.21k|    if (p.cts != NULL
  ------------------
  |  Branch (225:9): [True: 130, False: 3.08k]
  ------------------
  226|    130|        && !OSSL_PARAM_set_int(p.cts, (flags & PROV_CIPHER_FLAG_CTS) != 0)) {
  ------------------
  |  |   41|    130|#define PROV_CIPHER_FLAG_CTS 0x0004
  ------------------
  |  Branch (226:12): [True: 0, False: 130]
  ------------------
  227|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  228|      0|        return 0;
  229|      0|    }
  230|  3.21k|    if (p.mb != NULL
  ------------------
  |  Branch (230:9): [True: 130, False: 3.08k]
  ------------------
  231|    130|        && !OSSL_PARAM_set_int(p.mb, (flags & PROV_CIPHER_FLAG_TLS1_MULTIBLOCK) != 0)) {
  ------------------
  |  |   42|    130|#define PROV_CIPHER_FLAG_TLS1_MULTIBLOCK 0x0008
  ------------------
  |  Branch (231:12): [True: 0, False: 130]
  ------------------
  232|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  233|      0|        return 0;
  234|      0|    }
  235|  3.21k|    if (p.rand != NULL
  ------------------
  |  Branch (235:9): [True: 130, False: 3.08k]
  ------------------
  236|    130|        && !OSSL_PARAM_set_int(p.rand, (flags & PROV_CIPHER_FLAG_RAND_KEY) != 0)) {
  ------------------
  |  |   43|    130|#define PROV_CIPHER_FLAG_RAND_KEY 0x0010
  ------------------
  |  Branch (236:12): [True: 0, False: 130]
  ------------------
  237|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  238|      0|        return 0;
  239|      0|    }
  240|  3.21k|    if (p.etm != NULL
  ------------------
  |  Branch (240:9): [True: 130, False: 3.08k]
  ------------------
  241|    130|        && !OSSL_PARAM_set_int(p.etm, (flags & EVP_CIPH_FLAG_ENC_THEN_MAC) != 0)) {
  ------------------
  |  |  368|    130|#define EVP_CIPH_FLAG_ENC_THEN_MAC 0x10000000
  ------------------
  |  Branch (241:12): [True: 0, False: 130]
  ------------------
  242|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  243|      0|        return 0;
  244|      0|    }
  245|  3.21k|    if (p.keylen != NULL && !OSSL_PARAM_set_size_t(p.keylen, kbits / 8)) {
  ------------------
  |  Branch (245:9): [True: 130, False: 3.08k]
  |  Branch (245:29): [True: 0, False: 130]
  ------------------
  246|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  247|      0|        return 0;
  248|      0|    }
  249|  3.21k|    if (p.bsize != NULL && !OSSL_PARAM_set_size_t(p.bsize, blkbits / 8)) {
  ------------------
  |  Branch (249:9): [True: 130, False: 3.08k]
  |  Branch (249:28): [True: 0, False: 130]
  ------------------
  250|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  251|      0|        return 0;
  252|      0|    }
  253|  3.21k|    if (p.ivlen != NULL && !OSSL_PARAM_set_size_t(p.ivlen, ivbits / 8)) {
  ------------------
  |  Branch (253:9): [True: 130, False: 3.08k]
  |  Branch (253:28): [True: 0, False: 130]
  ------------------
  254|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  255|      0|        return 0;
  256|      0|    }
  257|  3.21k|    return 1;
  258|  3.21k|}
ossl_cipher_generic_gettable_ctx_params:
  392|     83|{
  393|     83|    return cipher_generic_get_ctx_params_list;
  394|     83|}
ossl_cipher_generic_einit:
  735|  27.8k|{
  736|  27.8k|    return cipher_generic_init_internal((PROV_CIPHER_CTX *)vctx, key, keylen,
  737|  27.8k|        iv, ivlen, params, 1);
  738|  27.8k|}
ossl_cipher_generic_block_update:
  776|  9.40k|{
  777|  9.40k|    size_t outlint = 0;
  778|  9.40k|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
  779|  9.40k|    size_t blksz = ctx->blocksize;
  780|  9.40k|    size_t nextblocks;
  781|       |
  782|  9.40k|    if (!ctx->key_set) {
  ------------------
  |  Branch (782:9): [True: 0, False: 9.40k]
  ------------------
  783|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_NO_KEY_SET);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  784|      0|        return 0;
  785|      0|    }
  786|       |
  787|  9.40k|    if (ctx->tlsversion > 0) {
  ------------------
  |  Branch (787:9): [True: 0, False: 9.40k]
  ------------------
  788|       |        /*
  789|       |         * Each update call corresponds to a TLS record and is individually
  790|       |         * padded
  791|       |         */
  792|       |
  793|       |        /* Sanity check inputs */
  794|      0|        if (in == NULL
  ------------------
  |  Branch (794:13): [True: 0, False: 0]
  ------------------
  795|      0|            || in != out
  ------------------
  |  Branch (795:16): [True: 0, False: 0]
  ------------------
  796|      0|            || outsize < inl
  ------------------
  |  Branch (796:16): [True: 0, False: 0]
  ------------------
  797|      0|            || !ctx->pad) {
  ------------------
  |  Branch (797:16): [True: 0, False: 0]
  ------------------
  798|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  799|      0|            return 0;
  800|      0|        }
  801|       |
  802|      0|        if (ctx->enc) {
  ------------------
  |  Branch (802:13): [True: 0, False: 0]
  ------------------
  803|      0|            unsigned char padval;
  804|      0|            size_t padnum, loop;
  805|       |
  806|       |            /* Add padding */
  807|       |
  808|      0|            padnum = blksz - (inl % blksz);
  809|       |
  810|      0|            if (outsize < inl + padnum) {
  ------------------
  |  Branch (810:17): [True: 0, False: 0]
  ------------------
  811|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  812|      0|                return 0;
  813|      0|            }
  814|       |
  815|      0|            if (padnum > MAX_PADDING) {
  ------------------
  |  |  771|      0|#define MAX_PADDING 256
  ------------------
  |  Branch (815:17): [True: 0, False: 0]
  ------------------
  816|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  817|      0|                return 0;
  818|      0|            }
  819|      0|            padval = (unsigned char)(padnum - 1);
  820|      0|            if (ctx->tlsversion == SSL3_VERSION) {
  ------------------
  |  |   23|      0|#define SSL3_VERSION 0x0300
  ------------------
  |  Branch (820:17): [True: 0, False: 0]
  ------------------
  821|      0|                if (padnum > 1)
  ------------------
  |  Branch (821:21): [True: 0, False: 0]
  ------------------
  822|      0|                    memset(out + inl, 0, padnum - 1);
  823|      0|                *(out + inl + padnum - 1) = padval;
  824|      0|            } else {
  825|       |                /* we need to add 'padnum' padding bytes of value padval */
  826|      0|                for (loop = inl; loop < inl + padnum; loop++)
  ------------------
  |  Branch (826:34): [True: 0, False: 0]
  ------------------
  827|      0|                    out[loop] = padval;
  828|      0|            }
  829|      0|            inl += padnum;
  830|      0|        }
  831|       |
  832|      0|        if ((inl % blksz) != 0) {
  ------------------
  |  Branch (832:13): [True: 0, False: 0]
  ------------------
  833|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  834|      0|            return 0;
  835|      0|        }
  836|       |
  837|       |        /* Shouldn't normally fail */
  838|      0|        if (!ctx->hw->cipher(ctx, out, in, inl)) {
  ------------------
  |  Branch (838:13): [True: 0, False: 0]
  ------------------
  839|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  840|      0|            return 0;
  841|      0|        }
  842|       |
  843|      0|        if (ctx->alloced) {
  ------------------
  |  Branch (843:13): [True: 0, False: 0]
  ------------------
  844|      0|            OPENSSL_free(ctx->tlsmac);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  845|      0|            ctx->alloced = 0;
  846|      0|            ctx->tlsmac = NULL;
  847|      0|        }
  848|       |
  849|       |        /* This only fails if padding is publicly invalid */
  850|      0|        *outl = inl;
  851|      0|        if (!ctx->enc
  ------------------
  |  Branch (851:13): [True: 0, False: 0]
  ------------------
  852|      0|            && !ossl_cipher_tlsunpadblock(ctx->libctx, ctx->tlsversion,
  ------------------
  |  Branch (852:16): [True: 0, False: 0]
  ------------------
  853|      0|                out, outl,
  854|      0|                blksz, &ctx->tlsmac, &ctx->alloced,
  855|      0|                ctx->tlsmacsize, 0)) {
  856|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  857|      0|            return 0;
  858|      0|        }
  859|      0|        return 1;
  860|      0|    }
  861|       |
  862|  9.40k|    if (ctx->bufsz != 0)
  ------------------
  |  Branch (862:9): [True: 0, False: 9.40k]
  ------------------
  863|      0|        nextblocks = ossl_cipher_fillblock(ctx->buf, &ctx->bufsz, blksz,
  864|      0|            &in, &inl);
  865|  9.40k|    else
  866|  9.40k|        nextblocks = inl & ~(blksz - 1);
  867|       |
  868|       |    /*
  869|       |     * If we're decrypting and we end an update on a block boundary we hold
  870|       |     * the last block back in case this is the last update call and the last
  871|       |     * block is padded.
  872|       |     */
  873|  9.40k|    if (ctx->bufsz == blksz && (ctx->enc || inl > 0 || !ctx->pad)) {
  ------------------
  |  Branch (873:9): [True: 0, False: 9.40k]
  |  Branch (873:33): [True: 0, False: 0]
  |  Branch (873:45): [True: 0, False: 0]
  |  Branch (873:56): [True: 0, False: 0]
  ------------------
  874|      0|        if (outsize < blksz) {
  ------------------
  |  Branch (874:13): [True: 0, False: 0]
  ------------------
  875|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  876|      0|            return 0;
  877|      0|        }
  878|      0|        if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) {
  ------------------
  |  Branch (878:13): [True: 0, False: 0]
  ------------------
  879|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  880|      0|            return 0;
  881|      0|        }
  882|      0|        ctx->bufsz = 0;
  883|      0|        outlint = blksz;
  884|      0|        out += blksz;
  885|      0|    }
  886|  9.40k|    if (nextblocks > 0) {
  ------------------
  |  Branch (886:9): [True: 9.40k, False: 0]
  ------------------
  887|  9.40k|        if (!ctx->enc && ctx->pad && nextblocks == inl) {
  ------------------
  |  Branch (887:13): [True: 0, False: 9.40k]
  |  Branch (887:26): [True: 0, False: 0]
  |  Branch (887:38): [True: 0, False: 0]
  ------------------
  888|      0|            if (!ossl_assert(inl >= blksz)) {
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (888:17): [True: 0, False: 0]
  ------------------
  889|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  890|      0|                return 0;
  891|      0|            }
  892|      0|            nextblocks -= blksz;
  893|      0|        }
  894|  9.40k|        outlint += nextblocks;
  895|  9.40k|        if (outsize < outlint) {
  ------------------
  |  Branch (895:13): [True: 0, False: 9.40k]
  ------------------
  896|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  897|      0|            return 0;
  898|      0|        }
  899|  9.40k|    }
  900|  9.40k|    if (nextblocks > 0) {
  ------------------
  |  Branch (900:9): [True: 9.40k, False: 0]
  ------------------
  901|  9.40k|        if (!ctx->hw->cipher(ctx, out, in, nextblocks)) {
  ------------------
  |  Branch (901:13): [True: 0, False: 9.40k]
  ------------------
  902|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  903|      0|            return 0;
  904|      0|        }
  905|  9.40k|        in += nextblocks;
  906|  9.40k|        inl -= nextblocks;
  907|  9.40k|    }
  908|  9.40k|    if (inl != 0
  ------------------
  |  Branch (908:9): [True: 0, False: 9.40k]
  ------------------
  909|      0|        && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) {
  ------------------
  |  Branch (909:12): [True: 0, False: 0]
  ------------------
  910|       |        /* ERR_raise already called */
  911|      0|        return 0;
  912|      0|    }
  913|       |
  914|  9.40k|    *outl = outlint;
  915|  9.40k|    return inl == 0;
  916|  9.40k|}
ossl_cipher_generic_stream_update:
  995|  9.26k|{
  996|  9.26k|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
  997|       |
  998|  9.26k|    if (!ctx->key_set) {
  ------------------
  |  Branch (998:9): [True: 0, False: 9.26k]
  ------------------
  999|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_NO_KEY_SET);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1000|      0|        return 0;
 1001|      0|    }
 1002|       |
 1003|  9.26k|    if (inl == 0) {
  ------------------
  |  Branch (1003:9): [True: 0, False: 9.26k]
  ------------------
 1004|      0|        *outl = 0;
 1005|      0|        return 1;
 1006|      0|    }
 1007|       |
 1008|  9.26k|    if (outsize < inl) {
  ------------------
  |  Branch (1008:9): [True: 0, False: 9.26k]
  ------------------
 1009|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1010|      0|        return 0;
 1011|      0|    }
 1012|       |
 1013|  9.26k|    if (!ctx->hw->cipher(ctx, out, in, inl)) {
  ------------------
  |  Branch (1013:9): [True: 0, False: 9.26k]
  ------------------
 1014|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1015|      0|        return 0;
 1016|      0|    }
 1017|       |
 1018|  9.26k|    *outl = inl;
 1019|  9.26k|    if (!ctx->enc && ctx->tlsversion > 0) {
  ------------------
  |  Branch (1019:9): [True: 0, False: 9.26k]
  |  Branch (1019:22): [True: 0, False: 0]
  ------------------
 1020|       |        /*
 1021|       |         * Remove any TLS padding. Only used by cipher_aes_cbc_hmac_sha1_hw.c and
 1022|       |         * cipher_aes_cbc_hmac_sha256_hw.c
 1023|       |         */
 1024|      0|        if (ctx->removetlspad) {
  ------------------
  |  Branch (1024:13): [True: 0, False: 0]
  ------------------
 1025|       |            /*
 1026|       |             * We should have already failed in the cipher() call above if this
 1027|       |             * isn't true.
 1028|       |             */
 1029|      0|            if (!ossl_assert(*outl >= (size_t)(out[inl - 1] + 1)))
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (1029:17): [True: 0, False: 0]
  ------------------
 1030|      0|                return 0;
 1031|       |            /* The actual padding length */
 1032|      0|            *outl -= out[inl - 1] + 1;
 1033|      0|        }
 1034|       |
 1035|       |        /* TLS MAC and explicit IV if relevant. We should have already failed
 1036|       |         * in the cipher() call above if *outl is too short.
 1037|       |         */
 1038|      0|        if (!ossl_assert(*outl >= ctx->removetlsfixed))
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (1038:13): [True: 0, False: 0]
  ------------------
 1039|      0|            return 0;
 1040|      0|        *outl -= ctx->removetlsfixed;
 1041|       |
 1042|       |        /* Extract the MAC if there is one */
 1043|      0|        if (ctx->tlsmacsize > 0) {
  ------------------
  |  Branch (1043:13): [True: 0, False: 0]
  ------------------
 1044|      0|            if (*outl < ctx->tlsmacsize)
  ------------------
  |  Branch (1044:17): [True: 0, False: 0]
  ------------------
 1045|      0|                return 0;
 1046|       |
 1047|      0|            ctx->tlsmac = out + *outl - ctx->tlsmacsize;
 1048|      0|            *outl -= ctx->tlsmacsize;
 1049|      0|        }
 1050|      0|    }
 1051|       |
 1052|  9.26k|    return 1;
 1053|  9.26k|}
ossl_cipher_common_get_ctx_params:
 1100|     12|{
 1101|     12|    if (p->ivlen != NULL && !OSSL_PARAM_set_size_t(p->ivlen, ctx->ivlen)) {
  ------------------
  |  Branch (1101:9): [True: 3, False: 9]
  |  Branch (1101:29): [True: 0, False: 3]
  ------------------
 1102|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1103|      0|        return 0;
 1104|      0|    }
 1105|       |
 1106|     12|    if (p->pad != NULL && !OSSL_PARAM_set_uint(p->pad, ctx->pad)) {
  ------------------
  |  Branch (1106:9): [True: 0, False: 12]
  |  Branch (1106:27): [True: 0, False: 0]
  ------------------
 1107|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1108|      0|        return 0;
 1109|      0|    }
 1110|       |
 1111|     12|    if (p->iv != NULL
  ------------------
  |  Branch (1111:9): [True: 0, False: 12]
  ------------------
 1112|      0|        && !OSSL_PARAM_set_octet_string_or_ptr(p->iv, ctx->oiv, ctx->ivlen)) {
  ------------------
  |  Branch (1112:12): [True: 0, False: 0]
  ------------------
 1113|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1114|      0|        return 0;
 1115|      0|    }
 1116|       |
 1117|     12|    if (p->updiv != NULL
  ------------------
  |  Branch (1117:9): [True: 0, False: 12]
  ------------------
 1118|      0|        && !OSSL_PARAM_set_octet_string_or_ptr(p->updiv, ctx->iv, ctx->ivlen)) {
  ------------------
  |  Branch (1118:12): [True: 0, False: 0]
  ------------------
 1119|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1120|      0|        return 0;
 1121|      0|    }
 1122|       |
 1123|     12|    if (p->num != NULL && !OSSL_PARAM_set_uint(p->num, ctx->num)) {
  ------------------
  |  Branch (1123:9): [True: 0, False: 12]
  |  Branch (1123:27): [True: 0, False: 0]
  ------------------
 1124|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1125|      0|        return 0;
 1126|      0|    }
 1127|       |
 1128|     12|    if (p->keylen != NULL && !OSSL_PARAM_set_size_t(p->keylen, ctx->keylen)) {
  ------------------
  |  Branch (1128:9): [True: 9, False: 3]
  |  Branch (1128:30): [True: 0, False: 9]
  ------------------
 1129|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1130|      0|        return 0;
 1131|      0|    }
 1132|       |
 1133|     12|    if (p->tlsmac != NULL
  ------------------
  |  Branch (1133:9): [True: 0, False: 12]
  ------------------
 1134|      0|        && !OSSL_PARAM_set_octet_ptr(p->tlsmac, ctx->tlsmac, ctx->tlsmacsize)) {
  ------------------
  |  Branch (1134:12): [True: 0, False: 0]
  ------------------
 1135|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1136|      0|        return 0;
 1137|      0|    }
 1138|     12|    return 1;
 1139|     12|}
ossl_cipher_generic_get_ctx_params:
 1142|     12|{
 1143|     12|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
 1144|     12|    struct ossl_cipher_get_ctx_param_list_st p;
 1145|       |
 1146|     12|    if (ctx == NULL || !cipher_generic_get_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (1146:9): [True: 0, False: 12]
  |  Branch (1146:24): [True: 0, False: 12]
  ------------------
 1147|      0|        return 0;
 1148|     12|    return ossl_cipher_common_get_ctx_params(ctx, &p);
 1149|     12|}
ossl_cipher_generic_set_ctx_params:
 1204|  27.8k|{
 1205|  27.8k|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
 1206|  27.8k|    struct ossl_cipher_set_ctx_param_list_st p;
 1207|       |
 1208|  27.8k|    if (ossl_param_is_empty(params))
  ------------------
  |  Branch (1208:9): [True: 27.8k, False: 0]
  ------------------
 1209|  27.8k|        return 1;
 1210|       |
 1211|      0|    if (ctx == NULL || !cipher_generic_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (1211:9): [True: 0, False: 0]
  |  Branch (1211:24): [True: 0, False: 0]
  ------------------
 1212|      0|        return 0;
 1213|      0|    return ossl_cipher_common_set_ctx_params(ctx, &p);
 1214|      0|}
ossl_cipher_generic_initiv:
 1218|  9.26k|{
 1219|  9.26k|    if (ivlen != ctx->ivlen
  ------------------
  |  Branch (1219:9): [True: 0, False: 9.26k]
  ------------------
 1220|  9.26k|        || ivlen > sizeof(ctx->iv)) {
  ------------------
  |  Branch (1220:12): [True: 0, False: 9.26k]
  ------------------
 1221|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_IV_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1222|      0|        return 0;
 1223|      0|    }
 1224|  9.26k|    ctx->iv_set = 1;
 1225|  9.26k|    memcpy(ctx->iv, iv, ivlen);
 1226|  9.26k|    memcpy(ctx->oiv, iv, ivlen);
 1227|  9.26k|    return 1;
 1228|  9.26k|}
ossl_cipher_generic_initkey:
 1234|      9|{
 1235|      9|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
 1236|       |
 1237|      9|    if ((flags & PROV_CIPHER_FLAG_INVERSE_CIPHER) != 0)
  ------------------
  |  |   46|      9|#define PROV_CIPHER_FLAG_INVERSE_CIPHER 0x0200
  ------------------
  |  Branch (1237:9): [True: 0, False: 9]
  ------------------
 1238|      0|        ctx->inverse_cipher = 1;
 1239|      9|    if ((flags & PROV_CIPHER_FLAG_VARIABLE_LENGTH) != 0)
  ------------------
  |  |   45|      9|#define PROV_CIPHER_FLAG_VARIABLE_LENGTH 0x0100
  ------------------
  |  Branch (1239:9): [True: 0, False: 9]
  ------------------
 1240|      0|        ctx->variable_keylength = 1;
 1241|       |
 1242|      9|    ctx->pad = 1;
 1243|      9|    ctx->keylen = ((kbits) / 8);
 1244|      9|    ctx->ivlen = ((ivbits) / 8);
 1245|      9|    ctx->hw = hw;
 1246|      9|    ctx->mode = mode;
 1247|      9|    ctx->blocksize = blkbits / 8;
 1248|      9|    if (provctx != NULL)
  ------------------
  |  Branch (1248:9): [True: 9, False: 0]
  ------------------
 1249|      9|        ctx->libctx = PROV_LIBCTX_OF(provctx); /* used for rand */
  ------------------
  |  |   31|      9|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
 1250|      9|}
ciphercommon.c:ossl_cipher_generic_get_params_decoder:
   67|  3.21k|{
   68|  3.21k|    const char *s;
   69|       |
   70|  3.21k|    memset(r, 0, sizeof(*r));
   71|  3.21k|    if (p != NULL)
  ------------------
  |  Branch (71:9): [True: 3.21k, False: 0]
  ------------------
   72|  7.59k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (72:16): [True: 4.38k, False: 3.21k]
  ------------------
   73|  4.38k|            switch(s[0]) {
   74|  3.08k|            default:
  ------------------
  |  Branch (74:13): [True: 3.08k, False: 1.30k]
  ------------------
   75|  3.08k|                break;
   76|  3.08k|            case 'a':
  ------------------
  |  Branch (76:13): [True: 130, False: 4.25k]
  ------------------
   77|    130|                if (ossl_likely(strcmp("ead", s + 1) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
   78|       |                    /* OSSL_CIPHER_PARAM_AEAD */
   79|    130|                    if (ossl_unlikely(r->aead != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
   80|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   81|      0|                                       "param %s is repeated", s);
   82|      0|                        return 0;
   83|      0|                    }
   84|    130|                    r->aead = (OSSL_PARAM *)p;
   85|    130|                }
   86|    130|                break;
   87|    130|            case 'b':
  ------------------
  |  Branch (87:13): [True: 130, False: 4.25k]
  ------------------
   88|    130|                if (ossl_likely(strcmp("locksize", s + 1) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
   89|       |                    /* OSSL_CIPHER_PARAM_BLOCK_SIZE */
   90|    130|                    if (ossl_unlikely(r->bsize != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
   91|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   92|      0|                                       "param %s is repeated", s);
   93|      0|                        return 0;
   94|      0|                    }
   95|    130|                    r->bsize = (OSSL_PARAM *)p;
   96|    130|                }
   97|    130|                break;
   98|    260|            case 'c':
  ------------------
  |  Branch (98:13): [True: 260, False: 4.12k]
  ------------------
   99|    260|                switch(s[1]) {
  100|      0|                default:
  ------------------
  |  Branch (100:17): [True: 0, False: 260]
  ------------------
  101|      0|                    break;
  102|    130|                case 't':
  ------------------
  |  Branch (102:17): [True: 130, False: 130]
  ------------------
  103|    130|                    if (ossl_likely(strcmp("s", s + 2) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
  104|       |                        /* OSSL_CIPHER_PARAM_CTS */
  105|    130|                        if (ossl_unlikely(r->cts != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  106|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  107|      0|                                           "param %s is repeated", s);
  108|      0|                            return 0;
  109|      0|                        }
  110|    130|                        r->cts = (OSSL_PARAM *)p;
  111|    130|                    }
  112|    130|                    break;
  113|    130|                case 'u':
  ------------------
  |  Branch (113:17): [True: 130, False: 130]
  ------------------
  114|    130|                    if (ossl_likely(strcmp("stom-iv", s + 2) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
  115|       |                        /* OSSL_CIPHER_PARAM_CUSTOM_IV */
  116|    130|                        if (ossl_unlikely(r->custiv != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  117|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  118|      0|                                           "param %s is repeated", s);
  119|      0|                            return 0;
  120|      0|                        }
  121|    130|                        r->custiv = (OSSL_PARAM *)p;
  122|    130|                    }
  123|    260|                }
  124|    260|                break;
  125|    260|            case 'e':
  ------------------
  |  Branch (125:13): [True: 130, False: 4.25k]
  ------------------
  126|    130|                if (ossl_likely(strcmp("ncrypt-then-mac", s + 1) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
  127|       |                    /* OSSL_CIPHER_PARAM_ENCRYPT_THEN_MAC */
  128|    130|                    if (ossl_unlikely(r->etm != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  129|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  130|      0|                                       "param %s is repeated", s);
  131|      0|                        return 0;
  132|      0|                    }
  133|    130|                    r->etm = (OSSL_PARAM *)p;
  134|    130|                }
  135|    130|                break;
  136|    130|            case 'h':
  ------------------
  |  Branch (136:13): [True: 130, False: 4.25k]
  ------------------
  137|    130|                if (ossl_likely(strcmp("as-randkey", s + 1) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
  138|       |                    /* OSSL_CIPHER_PARAM_HAS_RAND_KEY */
  139|    130|                    if (ossl_unlikely(r->rand != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  140|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  141|      0|                                       "param %s is repeated", s);
  142|      0|                        return 0;
  143|      0|                    }
  144|    130|                    r->rand = (OSSL_PARAM *)p;
  145|    130|                }
  146|    130|                break;
  147|    130|            case 'i':
  ------------------
  |  Branch (147:13): [True: 130, False: 4.25k]
  ------------------
  148|    130|                if (ossl_likely(strcmp("vlen", s + 1) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
  149|       |                    /* OSSL_CIPHER_PARAM_IVLEN */
  150|    130|                    if (ossl_unlikely(r->ivlen != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  151|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  152|      0|                                       "param %s is repeated", s);
  153|      0|                        return 0;
  154|      0|                    }
  155|    130|                    r->ivlen = (OSSL_PARAM *)p;
  156|    130|                }
  157|    130|                break;
  158|    130|            case 'k':
  ------------------
  |  Branch (158:13): [True: 130, False: 4.25k]
  ------------------
  159|    130|                if (ossl_likely(strcmp("eylen", s + 1) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
  160|       |                    /* OSSL_CIPHER_PARAM_KEYLEN */
  161|    130|                    if (ossl_unlikely(r->keylen != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  162|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  163|      0|                                       "param %s is repeated", s);
  164|      0|                        return 0;
  165|      0|                    }
  166|    130|                    r->keylen = (OSSL_PARAM *)p;
  167|    130|                }
  168|    130|                break;
  169|    130|            case 'm':
  ------------------
  |  Branch (169:13): [True: 130, False: 4.25k]
  ------------------
  170|    130|                if (ossl_likely(strcmp("ode", s + 1) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
  171|       |                    /* OSSL_CIPHER_PARAM_MODE */
  172|    130|                    if (ossl_unlikely(r->mode != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  173|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  174|      0|                                       "param %s is repeated", s);
  175|      0|                        return 0;
  176|      0|                    }
  177|    130|                    r->mode = (OSSL_PARAM *)p;
  178|    130|                }
  179|    130|                break;
  180|    130|            case 't':
  ------------------
  |  Branch (180:13): [True: 130, False: 4.25k]
  ------------------
  181|    130|                if (ossl_likely(strcmp("ls-multi", s + 1) == 0)) {
  ------------------
  |  |   22|    130|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 130, False: 0]
  |  |  ------------------
  ------------------
  182|       |                    /* OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK */
  183|    130|                    if (ossl_unlikely(r->mb != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  184|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  185|      0|                                       "param %s is repeated", s);
  186|      0|                        return 0;
  187|      0|                    }
  188|    130|                    r->mb = (OSSL_PARAM *)p;
  189|    130|                }
  190|  4.38k|            }
  191|  3.21k|    return 1;
  192|  3.21k|}
ciphercommon.c:cipher_generic_init_internal:
  696|  27.8k|{
  697|  27.8k|    ctx->num = 0;
  698|  27.8k|    ctx->bufsz = 0;
  699|  27.8k|    ctx->updated = 0;
  700|  27.8k|    ctx->enc = enc ? 1 : 0;
  ------------------
  |  Branch (700:16): [True: 27.8k, False: 0]
  ------------------
  701|       |
  702|  27.8k|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (702:9): [True: 0, False: 27.8k]
  ------------------
  703|      0|        return 0;
  704|       |
  705|  27.8k|    if (iv != NULL && ctx->mode != EVP_CIPH_ECB_MODE) {
  ------------------
  |  |  311|  9.26k|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  |  Branch (705:9): [True: 9.26k, False: 18.5k]
  |  Branch (705:23): [True: 9.26k, False: 0]
  ------------------
  706|  9.26k|        if (!ossl_cipher_generic_initiv(ctx, iv, ivlen))
  ------------------
  |  Branch (706:13): [True: 0, False: 9.26k]
  ------------------
  707|      0|            return 0;
  708|  9.26k|    }
  709|  27.8k|    if (iv == NULL && ctx->iv_set
  ------------------
  |  Branch (709:9): [True: 18.5k, False: 9.26k]
  |  Branch (709:23): [True: 9.27k, False: 9.31k]
  ------------------
  710|  9.27k|        && (ctx->mode == EVP_CIPH_CBC_MODE
  ------------------
  |  |  312|  18.5k|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (710:13): [True: 0, False: 9.27k]
  ------------------
  711|  9.27k|            || ctx->mode == EVP_CIPH_CFB_MODE
  ------------------
  |  |  313|  18.5k|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  |  Branch (711:16): [True: 0, False: 9.27k]
  ------------------
  712|  9.27k|            || ctx->mode == EVP_CIPH_OFB_MODE))
  ------------------
  |  |  314|  9.27k|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  |  Branch (712:16): [True: 0, False: 9.27k]
  ------------------
  713|       |        /* reset IV for these modes to keep compatibility with 1.1.1 */
  714|      0|        memcpy(ctx->iv, ctx->oiv, ctx->ivlen);
  715|       |
  716|  27.8k|    if (key != NULL) {
  ------------------
  |  Branch (716:9): [True: 18.5k, False: 9.27k]
  ------------------
  717|  18.5k|        if (ctx->variable_keylength == 0) {
  ------------------
  |  Branch (717:13): [True: 18.5k, False: 0]
  ------------------
  718|  18.5k|            if (keylen != ctx->keylen) {
  ------------------
  |  Branch (718:17): [True: 0, False: 18.5k]
  ------------------
  719|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_KEY_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  720|      0|                return 0;
  721|      0|            }
  722|  18.5k|        } else {
  723|      0|            ctx->keylen = keylen;
  724|      0|        }
  725|  18.5k|        if (!ctx->hw->init(ctx, key, ctx->keylen))
  ------------------
  |  Branch (725:13): [True: 0, False: 18.5k]
  ------------------
  726|      0|            return 0;
  727|  18.5k|        ctx->key_set = 1;
  728|  18.5k|    }
  729|  27.8k|    return ossl_cipher_generic_set_ctx_params(ctx, params);
  730|  27.8k|}
ciphercommon.c:cipher_generic_get_ctx_params_decoder:
  292|     12|{
  293|     12|    const char *s;
  294|       |
  295|     12|    memset(r, 0, sizeof(*r));
  296|     12|    if (p != NULL)
  ------------------
  |  Branch (296:9): [True: 12, False: 0]
  ------------------
  297|     24|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (297:16): [True: 12, False: 12]
  ------------------
  298|     12|            switch(s[0]) {
  299|      0|            default:
  ------------------
  |  Branch (299:13): [True: 0, False: 12]
  ------------------
  300|      0|                break;
  301|      3|            case 'i':
  ------------------
  |  Branch (301:13): [True: 3, False: 9]
  ------------------
  302|      3|                switch(s[1]) {
  303|      0|                default:
  ------------------
  |  Branch (303:17): [True: 0, False: 3]
  ------------------
  304|      0|                    break;
  305|      3|                case 'v':
  ------------------
  |  Branch (305:17): [True: 3, False: 0]
  ------------------
  306|      3|                    switch(s[2]) {
  307|      0|                    default:
  ------------------
  |  Branch (307:21): [True: 0, False: 3]
  ------------------
  308|      0|                        break;
  309|      3|                    case 'l':
  ------------------
  |  Branch (309:21): [True: 3, False: 0]
  ------------------
  310|      3|                        if (ossl_likely(strcmp("en", s + 3) == 0)) {
  ------------------
  |  |   22|      3|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 3, False: 0]
  |  |  ------------------
  ------------------
  311|       |                            /* OSSL_CIPHER_PARAM_IVLEN */
  312|      3|                            if (ossl_unlikely(r->ivlen != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  313|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  314|      0|                                               "param %s is repeated", s);
  315|      0|                                return 0;
  316|      0|                            }
  317|      3|                            r->ivlen = (OSSL_PARAM *)p;
  318|      3|                        }
  319|      3|                        break;
  320|      3|                    case '\0':
  ------------------
  |  Branch (320:21): [True: 0, False: 3]
  ------------------
  321|      0|                        if (ossl_unlikely(r->iv != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  322|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  323|      0|                                           "param %s is repeated", s);
  324|      0|                            return 0;
  325|      0|                        }
  326|      0|                        r->iv = (OSSL_PARAM *)p;
  327|      3|                    }
  328|      3|                }
  329|      3|                break;
  330|      9|            case 'k':
  ------------------
  |  Branch (330:13): [True: 9, False: 3]
  ------------------
  331|      9|                if (ossl_likely(strcmp("eylen", s + 1) == 0)) {
  ------------------
  |  |   22|      9|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 9, False: 0]
  |  |  ------------------
  ------------------
  332|       |                    /* OSSL_CIPHER_PARAM_KEYLEN */
  333|      9|                    if (ossl_unlikely(r->keylen != NULL)) {
  ------------------
  |  |   23|      9|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 9]
  |  |  ------------------
  ------------------
  334|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  335|      0|                                       "param %s is repeated", s);
  336|      0|                        return 0;
  337|      0|                    }
  338|      9|                    r->keylen = (OSSL_PARAM *)p;
  339|      9|                }
  340|      9|                break;
  341|      9|            case 'n':
  ------------------
  |  Branch (341:13): [True: 0, False: 12]
  ------------------
  342|      0|                if (ossl_likely(strcmp("um", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  343|       |                    /* OSSL_CIPHER_PARAM_NUM */
  344|      0|                    if (ossl_unlikely(r->num != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  345|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  346|      0|                                       "param %s is repeated", s);
  347|      0|                        return 0;
  348|      0|                    }
  349|      0|                    r->num = (OSSL_PARAM *)p;
  350|      0|                }
  351|      0|                break;
  352|      0|            case 'p':
  ------------------
  |  Branch (352:13): [True: 0, False: 12]
  ------------------
  353|      0|                if (ossl_likely(strcmp("adding", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  354|       |                    /* OSSL_CIPHER_PARAM_PADDING */
  355|      0|                    if (ossl_unlikely(r->pad != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  356|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  357|      0|                                       "param %s is repeated", s);
  358|      0|                        return 0;
  359|      0|                    }
  360|      0|                    r->pad = (OSSL_PARAM *)p;
  361|      0|                }
  362|      0|                break;
  363|      0|            case 't':
  ------------------
  |  Branch (363:13): [True: 0, False: 12]
  ------------------
  364|      0|                if (ossl_likely(strcmp("ls-mac", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  365|       |                    /* OSSL_CIPHER_PARAM_TLS_MAC */
  366|      0|                    if (ossl_unlikely(r->tlsmac != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  367|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  368|      0|                                       "param %s is repeated", s);
  369|      0|                        return 0;
  370|      0|                    }
  371|      0|                    r->tlsmac = (OSSL_PARAM *)p;
  372|      0|                }
  373|      0|                break;
  374|      0|            case 'u':
  ------------------
  |  Branch (374:13): [True: 0, False: 12]
  ------------------
  375|      0|                if (ossl_likely(strcmp("pdated-iv", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  376|       |                    /* OSSL_CIPHER_PARAM_UPDATED_IV */
  377|      0|                    if (ossl_unlikely(r->updiv != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  378|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  379|      0|                                       "param %s is repeated", s);
  380|      0|                        return 0;
  381|      0|                    }
  382|      0|                    r->updiv = (OSSL_PARAM *)p;
  383|      0|                }
  384|     12|            }
  385|     12|    return 1;
  386|     12|}

ossl_ccm_gettable_ctx_params:
  390|      7|{
  391|      7|    return ossl_cipher_ccm_get_ctx_params_list;
  392|      7|}

ossl_gcm_gettable_ctx_params:
  325|      7|{
  326|      7|    return ossl_cipher_gcm_get_ctx_params_list;
  327|      7|}

ossl_cipher_hw_generic_ctr:
  112|  9.26k|{
  113|  9.26k|    unsigned int num = dat->num;
  114|       |
  115|  9.26k|    if (dat->stream.ctr)
  ------------------
  |  Branch (115:9): [True: 9.26k, False: 0]
  ------------------
  116|  9.26k|        CRYPTO_ctr128_encrypt_ctr32(in, out, len, dat->ks, dat->iv, dat->buf,
  117|  9.26k|            &num, dat->stream.ctr);
  118|      0|    else
  119|      0|        CRYPTO_ctr128_encrypt(in, out, len, dat->ks, dat->iv, dat->buf,
  120|      0|            &num, dat->block);
  121|  9.26k|    dat->num = num;
  122|       |
  123|  9.26k|    return 1;
  124|  9.26k|}

blake2_prov.c:blake2s256_get_params:
  246|      1|    {                                                                                                             \
  247|      1|        return ossl_digest_default_get_params(params, BLAKE##VARIANT##_BLOCKBYTES, BLAKE##VARIANT##_OUTBYTES, 0); \
  ------------------
  |  |   19|      1|#define BLAKE2S_BLOCKBYTES 64
  ------------------
                      return ossl_digest_default_get_params(params, BLAKE##VARIANT##_BLOCKBYTES, BLAKE##VARIANT##_OUTBYTES, 0); \
  ------------------
  |  |   20|      1|#define BLAKE2S_OUTBYTES 32
  ------------------
  248|      1|    }                                                                                                             \
blake2_prov.c:blake2b512_get_params:
  246|      1|    {                                                                                                             \
  247|      1|        return ossl_digest_default_get_params(params, BLAKE##VARIANT##_BLOCKBYTES, BLAKE##VARIANT##_OUTBYTES, 0); \
  ------------------
  |  |   25|      1|#define BLAKE2B_BLOCKBYTES 128
  ------------------
                      return ossl_digest_default_get_params(params, BLAKE##VARIANT##_BLOCKBYTES, BLAKE##VARIANT##_OUTBYTES, 0); \
  ------------------
  |  |   26|      1|#define BLAKE2B_OUTBYTES 64
  ------------------
  248|      1|    }                                                                                                             \

ossl_digest_default_get_params:
  104|     27|{
  105|     27|    struct digest_default_get_params_st p;
  106|       |
  107|     27|    if (!digest_default_get_params_decoder(params, &p))
  ------------------
  |  Branch (107:9): [True: 0, False: 27]
  ------------------
  108|      0|        return 0;
  109|       |
  110|     27|    if (p.bsize != NULL && !OSSL_PARAM_set_size_t(p.bsize, blksz)) {
  ------------------
  |  Branch (110:9): [True: 27, False: 0]
  |  Branch (110:28): [True: 0, False: 27]
  ------------------
  111|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  112|      0|        return 0;
  113|      0|    }
  114|     27|    if (p.size != NULL && !OSSL_PARAM_set_size_t(p.size, paramsz)) {
  ------------------
  |  Branch (114:9): [True: 27, False: 0]
  |  Branch (114:27): [True: 0, False: 27]
  ------------------
  115|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  116|      0|        return 0;
  117|      0|    }
  118|     27|    if (p.xof != NULL
  ------------------
  |  Branch (118:9): [True: 27, False: 0]
  ------------------
  119|     27|        && !OSSL_PARAM_set_int(p.xof, (flags & PROV_DIGEST_FLAG_XOF) != 0)) {
  ------------------
  |  |   19|     27|#define PROV_DIGEST_FLAG_XOF 0x0001
  ------------------
  |  Branch (119:12): [True: 0, False: 27]
  ------------------
  120|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  121|      0|        return 0;
  122|      0|    }
  123|     27|    if (p.aldid != NULL
  ------------------
  |  Branch (123:9): [True: 27, False: 0]
  ------------------
  124|     27|        && !OSSL_PARAM_set_int(p.aldid, (flags & PROV_DIGEST_FLAG_ALGID_ABSENT) != 0)) {
  ------------------
  |  |   20|     27|#define PROV_DIGEST_FLAG_ALGID_ABSENT 0x0002
  ------------------
  |  Branch (124:12): [True: 0, False: 27]
  ------------------
  125|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  126|      0|        return 0;
  127|      0|    }
  128|     27|    return 1;
  129|     27|}
digestcommon.c:digest_default_get_params_decoder:
   43|     27|{
   44|     27|    const char *s;
   45|       |
   46|     27|    memset(r, 0, sizeof(*r));
   47|     27|    if (p != NULL)
  ------------------
  |  Branch (47:9): [True: 27, False: 0]
  ------------------
   48|    135|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (48:16): [True: 108, False: 27]
  ------------------
   49|    108|            switch(s[0]) {
   50|      0|            default:
  ------------------
  |  Branch (50:13): [True: 0, False: 108]
  ------------------
   51|      0|                break;
   52|     27|            case 'a':
  ------------------
  |  Branch (52:13): [True: 27, False: 81]
  ------------------
   53|     27|                if (ossl_likely(strcmp("lgid-absent", s + 1) == 0)) {
  ------------------
  |  |   22|     27|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 27, False: 0]
  |  |  ------------------
  ------------------
   54|       |                    /* OSSL_DIGEST_PARAM_ALGID_ABSENT */
   55|     27|                    if (ossl_unlikely(r->aldid != NULL)) {
  ------------------
  |  |   23|     27|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 27]
  |  |  ------------------
  ------------------
   56|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   57|      0|                                       "param %s is repeated", s);
   58|      0|                        return 0;
   59|      0|                    }
   60|     27|                    r->aldid = (OSSL_PARAM *)p;
   61|     27|                }
   62|     27|                break;
   63|     27|            case 'b':
  ------------------
  |  Branch (63:13): [True: 27, False: 81]
  ------------------
   64|     27|                if (ossl_likely(strcmp("locksize", s + 1) == 0)) {
  ------------------
  |  |   22|     27|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 27, False: 0]
  |  |  ------------------
  ------------------
   65|       |                    /* OSSL_DIGEST_PARAM_BLOCK_SIZE */
   66|     27|                    if (ossl_unlikely(r->bsize != NULL)) {
  ------------------
  |  |   23|     27|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 27]
  |  |  ------------------
  ------------------
   67|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   68|      0|                                       "param %s is repeated", s);
   69|      0|                        return 0;
   70|      0|                    }
   71|     27|                    r->bsize = (OSSL_PARAM *)p;
   72|     27|                }
   73|     27|                break;
   74|     27|            case 's':
  ------------------
  |  Branch (74:13): [True: 27, False: 81]
  ------------------
   75|     27|                if (ossl_likely(strcmp("ize", s + 1) == 0)) {
  ------------------
  |  |   22|     27|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 27, False: 0]
  |  |  ------------------
  ------------------
   76|       |                    /* OSSL_DIGEST_PARAM_SIZE */
   77|     27|                    if (ossl_unlikely(r->size != NULL)) {
  ------------------
  |  |   23|     27|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 27]
  |  |  ------------------
  ------------------
   78|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   79|      0|                                       "param %s is repeated", s);
   80|      0|                        return 0;
   81|      0|                    }
   82|     27|                    r->size = (OSSL_PARAM *)p;
   83|     27|                }
   84|     27|                break;
   85|     27|            case 'x':
  ------------------
  |  Branch (85:13): [True: 27, False: 81]
  ------------------
   86|     27|                if (ossl_likely(strcmp("of", s + 1) == 0)) {
  ------------------
  |  |   22|     27|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 27, False: 0]
  |  |  ------------------
  ------------------
   87|       |                    /* OSSL_DIGEST_PARAM_XOF */
   88|     27|                    if (ossl_unlikely(r->xof != NULL)) {
  ------------------
  |  |   23|     27|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 27]
  |  |  ------------------
  ------------------
   89|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   90|      0|                                       "param %s is repeated", s);
   91|      0|                        return 0;
   92|      0|                    }
   93|     27|                    r->xof = (OSSL_PARAM *)p;
   94|     27|                }
   95|    108|            }
   96|     27|    return 1;
   97|     27|}

sha3_prov.c:generic_sha3_absorb:
  155|  4.59k|{
  156|  4.59k|    KECCAK1600_CTX *ctx = vctx;
  157|       |
  158|  4.59k|    if (!(ctx->xof_state == XOF_STATE_INIT || ctx->xof_state == XOF_STATE_ABSORB))
  ------------------
  |  |   35|  9.19k|#define XOF_STATE_INIT 0
  ------------------
                  if (!(ctx->xof_state == XOF_STATE_INIT || ctx->xof_state == XOF_STATE_ABSORB))
  ------------------
  |  |   36|    876|#define XOF_STATE_ABSORB 1
  ------------------
  |  Branch (158:11): [True: 3.72k, False: 876]
  |  Branch (158:47): [True: 876, False: 0]
  ------------------
  159|      0|        return 0;
  160|  4.59k|    ctx->xof_state = XOF_STATE_ABSORB;
  ------------------
  |  |   36|  4.59k|#define XOF_STATE_ABSORB 1
  ------------------
  161|  4.59k|    return SHA3_absorb(ctx->A, inp, len, ctx->block_size);
  162|  4.59k|}
sha3_prov.c:generic_sha3_final:
  165|  1.75k|{
  166|  1.75k|    return ossl_sha3_final((KECCAK1600_CTX *)vctx, out, outlen);
  167|  1.75k|}
sha3_prov.c:keccak_update:
   79|  4.38k|{
   80|  4.38k|    KECCAK1600_CTX *ctx = vctx;
   81|  4.38k|    const size_t bsz = ctx->block_size;
   82|  4.38k|    size_t num, rem;
   83|       |
   84|  4.38k|    if (ossl_unlikely(len == 0))
  ------------------
  |  |   23|  4.38k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.38k]
  |  |  ------------------
  ------------------
   85|      0|        return 1;
   86|       |
   87|       |    /* Is there anything in the buffer already ? */
   88|  4.38k|    if (ossl_likely((num = ctx->bufsz) != 0)) {
  ------------------
  |  |   22|  4.38k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 657, False: 3.72k]
  |  |  ------------------
  ------------------
   89|       |        /* Calculate how much space is left in the buffer */
   90|    657|        rem = bsz - num;
   91|       |        /* If the new input does not fill the buffer then just add it */
   92|    657|        if (len < rem) {
  ------------------
  |  Branch (92:13): [True: 219, False: 438]
  ------------------
   93|    219|            memcpy(ctx->buf + num, inp, len);
   94|    219|            ctx->bufsz += len;
   95|    219|            return 1;
   96|    219|        }
   97|       |        /* otherwise fill up the buffer and absorb the buffer */
   98|    438|        memcpy(ctx->buf + num, inp, rem);
   99|       |        /* Update the input pointer */
  100|    438|        inp += rem;
  101|    438|        len -= rem;
  102|    438|        ctx->meth.absorb(ctx, ctx->buf, bsz);
  103|    438|        ctx->bufsz = 0;
  104|    438|    }
  105|       |    /* Absorb the input - rem = leftover part of the input < blocksize) */
  106|  4.16k|    rem = ctx->meth.absorb(ctx, inp, len);
  107|       |    /* Copy the leftover bit of the input into the buffer */
  108|  4.16k|    if (ossl_likely(rem)) {
  ------------------
  |  |   22|  4.16k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 4.16k, False: 0]
  |  |  ------------------
  ------------------
  109|  4.16k|        memcpy(ctx->buf, inp + len - rem, rem);
  110|  4.16k|        ctx->bufsz = rem;
  111|  4.16k|    }
  112|  4.16k|    return 1;
  113|  4.38k|}
sha3_prov.c:keccak_final:
  117|  1.75k|{
  118|  1.75k|    int ret = 1;
  119|  1.75k|    KECCAK1600_CTX *ctx = vctx;
  120|       |
  121|  1.75k|    if (ossl_unlikely(!ossl_prov_is_running()))
  ------------------
  |  |   23|  1.75k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.75k]
  |  |  ------------------
  ------------------
  122|      0|        return 0;
  123|  1.75k|    if (ossl_unlikely(ctx->md_size == SIZE_MAX)) {
  ------------------
  |  |   23|  1.75k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.75k]
  |  |  ------------------
  ------------------
  124|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_DIGEST_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  125|      0|        return 0;
  126|      0|    }
  127|  1.75k|    if (ossl_likely(outlen > 0))
  ------------------
  |  |   22|  1.75k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.75k, False: 0]
  |  |  ------------------
  ------------------
  128|  1.75k|        ret = ctx->meth.final(ctx, out, ctx->md_size);
  129|       |
  130|  1.75k|    *outl = ctx->md_size;
  131|  1.75k|    return ret;
  132|  1.75k|}
sha3_prov.c:keccak_freectx:
  556|    876|{
  557|    876|    KECCAK1600_CTX *ctx = (KECCAK1600_CTX *)vctx;
  558|       |
  559|    876|    OPENSSL_clear_free(ctx, sizeof(*ctx));
  ------------------
  |  |  129|    876|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  560|    876|}
sha3_prov.c:keccak_init:
   64|  3.72k|{
   65|  3.72k|    if (ossl_unlikely(!ossl_prov_is_running()))
  ------------------
  |  |   23|  3.72k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3.72k]
  |  |  ------------------
  ------------------
   66|      0|        return 0;
   67|       |    /* The newctx() handles most of the ctx fixed setup. */
   68|  3.72k|    ossl_sha3_reset((KECCAK1600_CTX *)vctx);
   69|  3.72k|    return 1;
   70|  3.72k|}
sha3_prov.c:generic_sha3_squeeze:
  170|  5.93k|{
  171|  5.93k|    return ossl_sha3_squeeze((KECCAK1600_CTX *)vctx, out, outlen);
  172|  5.93k|}
sha3_prov.c:shake_squeeze:
  136|  5.93k|{
  137|  5.93k|    int ret = 1;
  138|  5.93k|    KECCAK1600_CTX *ctx = vctx;
  139|       |
  140|  5.93k|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (140:9): [True: 0, False: 5.93k]
  ------------------
  141|      0|        return 0;
  142|  5.93k|    if (ctx->meth.squeeze == NULL)
  ------------------
  |  Branch (142:9): [True: 0, False: 5.93k]
  ------------------
  143|      0|        return 0;
  144|  5.93k|    if (outlen > 0)
  ------------------
  |  Branch (144:9): [True: 5.93k, False: 0]
  ------------------
  145|  5.93k|        ret = ctx->meth.squeeze(ctx, out, outlen);
  146|       |
  147|  5.93k|    *outl = outlen;
  148|  5.93k|    return ret;
  149|  5.93k|}
sha3_prov.c:keccak_init_params:
   73|  3.28k|{
   74|  3.28k|    return keccak_init(vctx, NULL)
  ------------------
  |  Branch (74:12): [True: 3.28k, False: 0]
  ------------------
   75|  3.28k|        && shake_set_ctx_params(vctx, params);
  ------------------
  |  Branch (75:12): [True: 3.28k, False: 0]
  ------------------
   76|  3.28k|}
sha3_prov.c:shake_set_ctx_params:
  727|  4.59k|{
  728|  4.59k|    struct shake_set_ctx_params_st p;
  729|  4.59k|    KECCAK1600_CTX *ctx = (KECCAK1600_CTX *)vctx;
  730|       |
  731|  4.59k|    if (ossl_unlikely(ctx == NULL || !shake_set_ctx_params_decoder(params, &p)))
  ------------------
  |  |   23|  9.19k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.59k]
  |  |  |  Branch (23:46): [True: 0, False: 4.59k]
  |  |  |  Branch (23:46): [True: 0, False: 4.59k]
  |  |  ------------------
  ------------------
  732|      0|        return 0;
  733|       |
  734|  4.59k|    if (ossl_unlikely(p.xoflen != NULL
  ------------------
  |  |   23|  5.91k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.59k]
  |  |  |  Branch (23:46): [True: 1.31k, False: 3.28k]
  |  |  |  Branch (23:46): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
  735|  4.59k|            && !OSSL_PARAM_get_size_t(p.xoflen, &ctx->md_size))) {
  736|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  737|      0|        return 0;
  738|      0|    }
  739|  4.59k|    return 1;
  740|  4.59k|}
sha3_prov.c:shake_set_ctx_params_decoder:
  683|  4.59k|{
  684|  4.59k|    const char *s;
  685|       |
  686|  4.59k|    memset(r, 0, sizeof(*r));
  687|  4.59k|    if (p != NULL)
  ------------------
  |  Branch (687:9): [True: 1.31k, False: 3.28k]
  ------------------
  688|  2.62k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (688:16): [True: 1.31k, False: 1.31k]
  ------------------
  689|  1.31k|            switch(s[0]) {
  690|      0|            default:
  ------------------
  |  Branch (690:13): [True: 0, False: 1.31k]
  ------------------
  691|      0|                break;
  692|      0|            case 's':
  ------------------
  |  Branch (692:13): [True: 0, False: 1.31k]
  ------------------
  693|      0|                if (ossl_likely(strcmp("ize", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  694|       |                    /* OSSL_DIGEST_PARAM_SIZE */
  695|      0|                    if (ossl_unlikely(r->xoflen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  696|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  697|      0|                                       "param %s is repeated", s);
  698|      0|                        return 0;
  699|      0|                    }
  700|      0|                    r->xoflen = (OSSL_PARAM *)p;
  701|      0|                }
  702|      0|                break;
  703|  1.31k|            case 'x':
  ------------------
  |  Branch (703:13): [True: 1.31k, False: 0]
  ------------------
  704|  1.31k|                if (ossl_likely(strcmp("oflen", s + 1) == 0)) {
  ------------------
  |  |   22|  1.31k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.31k, False: 0]
  |  |  ------------------
  ------------------
  705|       |                    /* OSSL_DIGEST_PARAM_XOFLEN */
  706|  1.31k|                    if (ossl_unlikely(r->xoflen != NULL)) {
  ------------------
  |  |   23|  1.31k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
  707|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  708|      0|                                       "param %s is repeated", s);
  709|      0|                        return 0;
  710|      0|                    }
  711|  1.31k|                    r->xoflen = (OSSL_PARAM *)p;
  712|  1.31k|                }
  713|  1.31k|            }
  714|  4.59k|    return 1;
  715|  4.59k|}

decode_der2key.c:der2key_newctx:
  165|  87.1k|{
  166|  87.1k|    struct der2key_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  108|  87.1k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  167|       |
  168|  87.1k|    if (ctx != NULL) {
  ------------------
  |  Branch (168:9): [True: 87.1k, False: 0]
  ------------------
  169|  87.1k|        ctx->provctx = provctx;
  170|  87.1k|        ctx->desc = desc;
  171|  87.1k|    }
  172|  87.1k|    return ctx;
  173|  87.1k|}
decode_der2key.c:der2key_freectx:
  237|  87.1k|{
  238|  87.1k|    struct der2key_ctx_st *ctx = vctx;
  239|       |
  240|  87.1k|    OPENSSL_free(ctx);
  ------------------
  |  |  131|  87.1k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  241|  87.1k|}
decode_der2key.c:PrivateKeyInfo_der2dh_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:der2key_check_selection:
  245|    138|{
  246|       |    /*
  247|       |     * The selections are kinda sorta "levels", i.e. each selection given
  248|       |     * here is assumed to include those following.
  249|       |     */
  250|    138|    int checks[] = {
  251|    138|        OSSL_KEYMGMT_SELECT_PRIVATE_KEY,
  ------------------
  |  |  640|    138|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  252|    138|        OSSL_KEYMGMT_SELECT_PUBLIC_KEY,
  ------------------
  |  |  641|    138|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  253|    138|        OSSL_KEYMGMT_SELECT_ALL_PARAMETERS
  ------------------
  |  |  647|    138|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  ------------------
  |  |  |  |  642|    138|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  ------------------
  |  |  648|    138|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  ------------------
  |  |  |  |  643|    138|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  ------------------
  ------------------
  254|    138|    };
  255|    138|    size_t i;
  256|       |
  257|       |    /* The decoder implementations made here support guessing */
  258|    138|    if (selection == 0)
  ------------------
  |  Branch (258:9): [True: 0, False: 138]
  ------------------
  259|      0|        return 1;
  260|       |
  261|    276|    for (i = 0; i < OSSL_NELEM(checks); i++) {
  ------------------
  |  |   14|    276|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (261:17): [True: 276, False: 0]
  ------------------
  262|    276|        int check1 = (selection & checks[i]) != 0;
  263|    276|        int check2 = (desc->selection_mask & checks[i]) != 0;
  264|       |
  265|       |        /*
  266|       |         * If the caller asked for the currently checked bit(s), return
  267|       |         * whether the decoder description says it's supported.
  268|       |         */
  269|    276|        if (check1)
  ------------------
  |  Branch (269:13): [True: 138, False: 138]
  ------------------
  270|    138|            return check2;
  271|    276|    }
  272|       |
  273|       |    /* This should be dead code, but just to be safe... */
  274|      0|    return 0;
  275|    138|}
decode_der2key.c:der2key_decode:
  280|  31.9k|{
  281|  31.9k|    struct der2key_ctx_st *ctx = vctx;
  282|  31.9k|    unsigned char *der = NULL;
  283|  31.9k|    const unsigned char *derp;
  284|  31.9k|    long der_len = 0;
  285|  31.9k|    void *key = NULL;
  286|  31.9k|    int ok = 0;
  287|       |
  288|  31.9k|    ctx->selection = selection;
  289|       |    /*
  290|       |     * The caller is allowed to specify 0 as a selection mask, to have the
  291|       |     * structure and key type guessed.  For type-specific structures, this
  292|       |     * is not recommended, as some structures are very similar.
  293|       |     * Note that 0 isn't the same as OSSL_KEYMGMT_SELECT_ALL, as the latter
  294|       |     * signifies a private key structure, where everything else is assumed
  295|       |     * to be present as well.
  296|       |     */
  297|  31.9k|    if (selection == 0)
  ------------------
  |  Branch (297:9): [True: 0, False: 31.9k]
  ------------------
  298|      0|        selection = ctx->desc->selection_mask;
  299|  31.9k|    if ((selection & ctx->desc->selection_mask) == 0) {
  ------------------
  |  Branch (299:9): [True: 0, False: 31.9k]
  ------------------
  300|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  301|      0|        return 0;
  302|      0|    }
  303|       |
  304|  31.9k|    ok = ossl_read_der(ctx->provctx, cin, &der, &der_len);
  305|  31.9k|    if (!ok)
  ------------------
  |  Branch (305:9): [True: 0, False: 31.9k]
  ------------------
  306|      0|        goto next;
  307|       |
  308|  31.9k|    ok = 0; /* Assume that we fail */
  309|       |
  310|  31.9k|    ERR_set_mark();
  311|  31.9k|    if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) {
  ------------------
  |  |  640|  31.9k|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (311:9): [True: 0, False: 31.9k]
  ------------------
  312|      0|        derp = der;
  313|      0|        if (ctx->desc->d2i_PKCS8 != NULL) {
  ------------------
  |  Branch (313:13): [True: 0, False: 0]
  ------------------
  314|      0|            key = ctx->desc->d2i_PKCS8(&derp, der_len, ctx);
  315|      0|            if (ctx->flag_fatal) {
  ------------------
  |  Branch (315:17): [True: 0, False: 0]
  ------------------
  316|      0|                ERR_clear_last_mark();
  317|      0|                goto end;
  318|      0|            }
  319|      0|        } else if (ctx->desc->d2i_private_key != NULL) {
  ------------------
  |  Branch (319:20): [True: 0, False: 0]
  ------------------
  320|      0|            key = ctx->desc->d2i_private_key(NULL, &derp, der_len);
  321|      0|        }
  322|      0|        if (key == NULL && ctx->selection != 0) {
  ------------------
  |  Branch (322:13): [True: 0, False: 0]
  |  Branch (322:28): [True: 0, False: 0]
  ------------------
  323|      0|            ERR_clear_last_mark();
  324|      0|            goto next;
  325|      0|        }
  326|      0|    }
  327|  31.9k|    if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
  ------------------
  |  |  641|  31.9k|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (327:9): [True: 31.9k, False: 0]
  |  Branch (327:24): [True: 31.9k, False: 0]
  ------------------
  328|  31.9k|        derp = der;
  329|  31.9k|        if (ctx->desc->d2i_PUBKEY != NULL)
  ------------------
  |  Branch (329:13): [True: 31.9k, False: 0]
  ------------------
  330|  31.9k|            key = ctx->desc->d2i_PUBKEY(&derp, der_len, ctx);
  331|      0|        else if (ctx->desc->d2i_public_key != NULL)
  ------------------
  |  Branch (331:18): [True: 0, False: 0]
  ------------------
  332|      0|            key = ctx->desc->d2i_public_key(NULL, &derp, der_len);
  333|  31.9k|        if (key == NULL && ctx->selection != 0) {
  ------------------
  |  Branch (333:13): [True: 0, False: 31.9k]
  |  Branch (333:28): [True: 0, False: 0]
  ------------------
  334|      0|            ERR_clear_last_mark();
  335|      0|            goto next;
  336|      0|        }
  337|  31.9k|    }
  338|  31.9k|    if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_ALL_PARAMETERS) != 0) {
  ------------------
  |  |  647|      0|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  ------------------
  |  |  |  |  642|      0|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  ------------------
  |  |  648|      0|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  ------------------
  |  |  |  |  643|      0|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  ------------------
  ------------------
  |  Branch (338:9): [True: 0, False: 31.9k]
  |  Branch (338:24): [True: 0, False: 0]
  ------------------
  339|      0|        derp = der;
  340|      0|        if (ctx->desc->d2i_key_params != NULL)
  ------------------
  |  Branch (340:13): [True: 0, False: 0]
  ------------------
  341|      0|            key = ctx->desc->d2i_key_params(NULL, &derp, der_len);
  342|      0|        if (key == NULL && ctx->selection != 0) {
  ------------------
  |  Branch (342:13): [True: 0, False: 0]
  |  Branch (342:28): [True: 0, False: 0]
  ------------------
  343|      0|            ERR_clear_last_mark();
  344|      0|            goto next;
  345|      0|        }
  346|      0|    }
  347|  31.9k|    if (key == NULL)
  ------------------
  |  Branch (347:9): [True: 0, False: 31.9k]
  ------------------
  348|      0|        ERR_clear_last_mark();
  349|  31.9k|    else
  350|  31.9k|        ERR_pop_to_mark();
  351|       |
  352|       |    /*
  353|       |     * Last minute check to see if this was the correct type of key.  This
  354|       |     * should never lead to a fatal error, i.e. the decoding itself was
  355|       |     * correct, it was just an unexpected key type.  This is generally for
  356|       |     * classes of key types that have subtle variants, like RSA-PSS keys as
  357|       |     * opposed to plain RSA keys.
  358|       |     */
  359|  31.9k|    if (key != NULL
  ------------------
  |  Branch (359:9): [True: 31.9k, False: 0]
  ------------------
  360|  31.9k|        && ctx->desc->check_key != NULL
  ------------------
  |  Branch (360:12): [True: 31.9k, False: 0]
  ------------------
  361|  31.9k|        && !ctx->desc->check_key(key, ctx)) {
  ------------------
  |  Branch (361:12): [True: 0, False: 31.9k]
  ------------------
  362|      0|        ctx->desc->free_key(key);
  363|      0|        key = NULL;
  364|      0|    }
  365|       |
  366|  31.9k|    if (key != NULL && ctx->desc->adjust_key != NULL)
  ------------------
  |  Branch (366:9): [True: 31.9k, False: 0]
  |  Branch (366:24): [True: 31.9k, False: 0]
  ------------------
  367|  31.9k|        ctx->desc->adjust_key(key, ctx);
  368|       |
  369|  31.9k|next:
  370|       |    /*
  371|       |     * Indicated that we successfully decoded something, or not at all.
  372|       |     * Ending up "empty handed" is not an error.
  373|       |     */
  374|  31.9k|    ok = 1;
  375|       |
  376|       |    /*
  377|       |     * We free memory here so it's not held up during the callback, because
  378|       |     * we know the process is recursive and the allocated chunks of memory
  379|       |     * add up.
  380|       |     */
  381|  31.9k|    OPENSSL_free(der);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  382|  31.9k|    der = NULL;
  383|       |
  384|  31.9k|    if (key != NULL) {
  ------------------
  |  Branch (384:9): [True: 31.9k, False: 0]
  ------------------
  385|  31.9k|        OSSL_PARAM params[4];
  386|  31.9k|        int object_type = OSSL_OBJECT_PKEY;
  ------------------
  |  |   29|  31.9k|#define OSSL_OBJECT_PKEY 2 /* EVP_PKEY * */
  ------------------
  387|       |
  388|  31.9k|        params[0] = OSSL_PARAM_construct_int(OSSL_OBJECT_PARAM_TYPE, &object_type);
  ------------------
  |  |  362|  31.9k|# define OSSL_OBJECT_PARAM_TYPE "type"
  ------------------
  389|       |
  390|  31.9k|#ifndef OPENSSL_NO_SM2
  391|  31.9k|        if (strcmp(ctx->desc->keytype_name, "EC") == 0
  ------------------
  |  Branch (391:13): [True: 8.76k, False: 23.2k]
  ------------------
  392|  8.76k|            && (EC_KEY_get_flags(key) & EC_FLAG_SM2_RANGE) != 0)
  ------------------
  |  |  954|  8.76k|#define EC_FLAG_SM2_RANGE 0x0004
  ------------------
  |  Branch (392:16): [True: 0, False: 8.76k]
  ------------------
  393|      0|            params[1] = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_TYPE,
  ------------------
  |  |  358|      0|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
  394|      0|                "SM2", 0);
  395|  31.9k|        else
  396|  31.9k|#endif
  397|  31.9k|            params[1] = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_TYPE,
  ------------------
  |  |  358|  31.9k|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
  398|  31.9k|                (char *)ctx->desc->keytype_name,
  399|  31.9k|                0);
  400|       |        /* The address of the key becomes the octet string */
  401|  31.9k|        params[2] = OSSL_PARAM_construct_octet_string(OSSL_OBJECT_PARAM_REFERENCE,
  ------------------
  |  |  361|  31.9k|# define OSSL_OBJECT_PARAM_REFERENCE "reference"
  ------------------
  402|  31.9k|            &key, sizeof(key));
  403|  31.9k|        params[3] = OSSL_PARAM_construct_end();
  404|       |
  405|  31.9k|        ok = data_cb(params, data_cbarg);
  406|  31.9k|    }
  407|       |
  408|  31.9k|end:
  409|  31.9k|    ctx->desc->free_key(key);
  410|  31.9k|    OPENSSL_free(der);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  411|       |
  412|  31.9k|    return ok;
  413|  31.9k|}
decode_der2key.c:SubjectPublicKeyInfo_der2dh_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_params_der2dh_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:DH_der2dh_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2dhx_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2dhx_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_params_der2dhx_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:DHX_der2dhx_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2dsa_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2dsa_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_der2dsa_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:DSA_der2dsa_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:ec_check:
  523|  8.76k|{
  524|       |    /* We're trying to be clever by comparing two truths */
  525|  8.76k|    int ret = 0;
  526|  8.76k|    int sm2 = (EC_KEY_get_flags(key) & EC_FLAG_SM2_RANGE) != 0;
  ------------------
  |  |  954|  8.76k|#define EC_FLAG_SM2_RANGE 0x0004
  ------------------
  527|       |
  528|  8.76k|    if (sm2)
  ------------------
  |  Branch (528:9): [True: 0, False: 8.76k]
  ------------------
  529|      0|        ret = ctx->desc->evp_type == EVP_PKEY_SM2
  ------------------
  |  |   74|      0|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1255|      0|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (529:15): [True: 0, False: 0]
  ------------------
  530|      0|            || ctx->desc->evp_type == NID_X9_62_id_ecPublicKey;
  ------------------
  |  |  178|      0|#define NID_X9_62_id_ecPublicKey                408
  ------------------
  |  Branch (530:16): [True: 0, False: 0]
  ------------------
  531|  8.76k|    else
  532|  8.76k|        ret = ctx->desc->evp_type != EVP_PKEY_SM2;
  ------------------
  |  |   74|  8.76k|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1255|  8.76k|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  533|       |
  534|  8.76k|    return ret;
  535|  8.76k|}
decode_der2key.c:ec_adjust:
  538|  8.76k|{
  539|  8.76k|    ossl_ec_key_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
  ------------------
  |  |   31|  8.76k|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  540|  8.76k|}
decode_der2key.c:PrivateKeyInfo_der2ec_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ec_newctx:
 1231|  8.76k|    {                                                                                                                 \
 1232|  8.76k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1233|  8.76k|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ec_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_no_pub_der2ec_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:EC_der2ec_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2x25519_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2x25519_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2x448_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2x448_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ed25519_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ed25519_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ed448_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ed448_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2sm2_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2sm2_newctx:
 1231|  8.76k|    {                                                                                                                 \
 1232|  8.76k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1233|  8.76k|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2sm2_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_no_pub_der2sm2_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_kem_512_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_kem_512_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_kem_768_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_kem_768_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_kem_1024_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_kem_1024_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_128s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_128f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_192s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_192f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_256s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_256f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_128s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_128f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_192s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_192f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_256s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_256f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_128s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_128f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_192s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_192f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_256s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_256f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_128s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_128f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_192s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_192f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_256s_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_256f_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:rsa_check:
  949|  23.2k|{
  950|  23.2k|    int valid;
  951|       |
  952|  23.2k|    switch (RSA_test_flags(key, RSA_FLAG_TYPE_MASK)) {
  ------------------
  |  |  117|  23.2k|#define RSA_FLAG_TYPE_MASK 0xF000
  ------------------
  953|  23.2k|    case RSA_FLAG_TYPE_RSA:
  ------------------
  |  |  118|  23.2k|#define RSA_FLAG_TYPE_RSA 0x0000
  ------------------
  |  Branch (953:5): [True: 23.2k, False: 0]
  ------------------
  954|  23.2k|        valid = (ctx->desc->evp_type == EVP_PKEY_RSA);
  ------------------
  |  |   63|  23.2k|#define EVP_PKEY_RSA NID_rsaEncryption
  |  |  ------------------
  |  |  |  |  543|  23.2k|#define NID_rsaEncryption               6
  |  |  ------------------
  ------------------
  955|  23.2k|        break;
  956|      0|    case RSA_FLAG_TYPE_RSASSAPSS:
  ------------------
  |  |  119|      0|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
  |  Branch (956:5): [True: 0, False: 23.2k]
  ------------------
  957|      0|        valid = (ctx->desc->evp_type == EVP_PKEY_RSA_PSS);
  ------------------
  |  |   65|      0|#define EVP_PKEY_RSA_PSS NID_rsassaPss
  |  |  ------------------
  |  |  |  |  583|      0|#define NID_rsassaPss           912
  |  |  ------------------
  ------------------
  958|      0|        break;
  959|      0|    default:
  ------------------
  |  Branch (959:5): [True: 0, False: 23.2k]
  ------------------
  960|       |        /* Currently unsupported RSA key type */
  961|      0|        valid = 0;
  962|  23.2k|    }
  963|       |
  964|  23.2k|    valid = (valid && ossl_rsa_check_factors(key));
  ------------------
  |  Branch (964:14): [True: 23.2k, False: 0]
  |  Branch (964:23): [True: 23.2k, False: 0]
  ------------------
  965|       |
  966|  23.2k|    return valid;
  967|  23.2k|}
decode_der2key.c:rsa_adjust:
  970|  23.2k|{
  971|  23.2k|    ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
  ------------------
  |  |   31|  23.2k|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  972|  23.2k|}
decode_der2key.c:PrivateKeyInfo_der2rsa_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2rsa_newctx:
 1231|  23.2k|    {                                                                                                                 \
 1232|  23.2k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1233|  23.2k|    }                                                                                                                 \
decode_der2key.c:rsa_d2i_PUBKEY:
  944|  23.2k|{
  945|       |    return d2i_RSA_PUBKEY(NULL, der, der_len);
  946|  23.2k|}
decode_der2key.c:SubjectPublicKeyInfo_der2rsa_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_keypair_der2rsa_newctx:
 1231|  23.2k|    {                                                                                                                 \
 1232|  23.2k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1233|  23.2k|    }                                                                                                                 \
decode_der2key.c:type_specific_keypair_der2rsa_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:RSA_der2rsa_newctx:
 1231|  23.2k|    {                                                                                                                 \
 1232|  23.2k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1233|  23.2k|    }                                                                                                                 \
decode_der2key.c:RSA_der2rsa_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2rsapss_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2rsapss_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_dsa_44_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_dsa_44_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_dsa_65_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_dsa_65_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_dsa_87_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_dsa_87_does_selection:
 1236|      2|    {                                                                                                                 \
 1237|      2|        return der2key_check_selection(selection,                                                                     \
 1238|      2|            &kind##_##keytype##_desc);                                                                                \
 1239|      2|    }                                                                                                                 \

decode_epki2pki.c:epki2pki_newctx:
   46|  31.9k|{
   47|  31.9k|    struct epki2pki_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   48|       |
   49|  31.9k|    if (ctx != NULL)
  ------------------
  |  Branch (49:9): [True: 31.9k, False: 0]
  ------------------
   50|  31.9k|        ctx->provctx = provctx;
   51|  31.9k|    return ctx;
   52|  31.9k|}
decode_epki2pki.c:epki2pki_freectx:
   55|  31.9k|{
   56|  31.9k|    struct epki2pki_ctx_st *ctx = vctx;
   57|       |
   58|  31.9k|    OPENSSL_free(ctx);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   59|  31.9k|}
decode_epki2pki.c:epki2pki_set_ctx_params:
  106|      2|{
  107|      2|    struct epki2pki_ctx_st *ctx = vctx;
  108|      2|    struct epki2pki_set_ctx_params_st p;
  109|      2|    char *str;
  110|       |
  111|      2|    if (ctx == NULL || !epki2pki_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (111:9): [True: 0, False: 2]
  |  Branch (111:24): [True: 0, False: 2]
  ------------------
  112|      0|        return 0;
  113|       |
  114|      2|    str = ctx->propq;
  115|      2|    if (p.propq != NULL
  ------------------
  |  Branch (115:9): [True: 0, False: 2]
  ------------------
  116|      0|        && !OSSL_PARAM_get_utf8_string(p.propq, &str, sizeof(ctx->propq)))
  ------------------
  |  Branch (116:12): [True: 0, False: 0]
  ------------------
  117|      0|        return 0;
  118|       |
  119|      2|    return 1;
  120|      2|}
decode_epki2pki.c:epki2pki_set_ctx_params_decoder:
   79|      2|{
   80|      2|    const char *s;
   81|       |
   82|      2|    memset(r, 0, sizeof(*r));
   83|      2|    if (p != NULL)
  ------------------
  |  Branch (83:9): [True: 2, False: 0]
  ------------------
   84|      4|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (84:16): [True: 2, False: 2]
  ------------------
   85|      2|            if (ossl_likely(strcmp("properties", s + 0) == 0)) {
  ------------------
  |  |   22|      2|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 2]
  |  |  ------------------
  ------------------
   86|       |                /* OSSL_DECODER_PARAM_PROPERTIES */
   87|      0|                if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   88|      0|                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   89|      0|                                   "param %s is repeated", s);
   90|      0|                    return 0;
   91|      0|                }
   92|      0|                r->propq = (OSSL_PARAM *)p;
   93|      0|            }
   94|      2|    return 1;
   95|      2|}

decode_msblob2key.c:msblob2key_newctx:
   65|      1|{
   66|      1|    struct msblob2key_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  108|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   67|       |
   68|      1|    if (ctx != NULL) {
  ------------------
  |  Branch (68:9): [True: 1, False: 0]
  ------------------
   69|      1|        ctx->provctx = provctx;
   70|      1|        ctx->desc = desc;
   71|      1|    }
   72|      1|    return ctx;
   73|      1|}
decode_msblob2key.c:msblob2key_freectx:
   76|      1|{
   77|      1|    struct msblob2key_ctx_st *ctx = vctx;
   78|       |
   79|      1|    OPENSSL_free(ctx);
  ------------------
  |  |  131|      1|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   80|      1|}
decode_msblob2key.c:msblob2key_does_selection:
   83|      4|{
   84|      4|    if (selection == 0)
  ------------------
  |  Branch (84:9): [True: 0, False: 4]
  ------------------
   85|      0|        return 1;
   86|       |
   87|      4|    if ((selection & (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)) != 0)
  ------------------
  |  |  640|      4|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
                  if ((selection & (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)) != 0)
  ------------------
  |  |  641|      4|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (87:9): [True: 4, False: 0]
  ------------------
   88|      4|        return 1;
   89|       |
   90|      0|    return 0;
   91|      4|}
decode_msblob2key.c:msblob2rsa_newctx:
  262|      1|    {                                                                  \
  263|      1|        return msblob2key_newctx(provctx, &mstype##2##keytype##_desc); \
  264|      1|    }                                                                  \

decode_pem2der.c:pem2der_newctx:
   66|  31.9k|{
   67|  31.9k|    struct pem2der_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   68|       |
   69|  31.9k|    if (ctx != NULL)
  ------------------
  |  Branch (69:9): [True: 31.9k, False: 0]
  ------------------
   70|  31.9k|        ctx->provctx = provctx;
   71|  31.9k|    return ctx;
   72|  31.9k|}
decode_pem2der.c:pem2der_freectx:
   75|  31.9k|{
   76|  31.9k|    struct pem2der_ctx_st *ctx = vctx;
   77|       |
   78|  31.9k|    OPENSSL_free(ctx);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   79|  31.9k|}
decode_pem2der.c:pem2der_set_ctx_params:
  144|      7|{
  145|      7|    struct pem2der_ctx_st *ctx = vctx;
  146|      7|    struct pem2der_set_ctx_params_st p;
  147|      7|    char *str;
  148|       |
  149|      7|    if (ctx == NULL || !pem2der_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (149:9): [True: 0, False: 7]
  |  Branch (149:24): [True: 0, False: 7]
  ------------------
  150|      0|        return 0;
  151|       |
  152|      7|    str = ctx->propq;
  153|      7|    if (p.propq != NULL
  ------------------
  |  Branch (153:9): [True: 0, False: 7]
  ------------------
  154|      0|        && !OSSL_PARAM_get_utf8_string(p.propq, &str, sizeof(ctx->propq)))
  ------------------
  |  Branch (154:12): [True: 0, False: 0]
  ------------------
  155|      0|        return 0;
  156|       |
  157|      7|    str = ctx->data_structure;
  158|      7|    if (p.ds != NULL
  ------------------
  |  Branch (158:9): [True: 7, False: 0]
  ------------------
  159|      7|        && !OSSL_PARAM_get_utf8_string(p.ds, &str, sizeof(ctx->data_structure)))
  ------------------
  |  Branch (159:12): [True: 0, False: 7]
  ------------------
  160|      0|        return 0;
  161|       |
  162|      7|    return 1;
  163|      7|}
decode_pem2der.c:pem2der_set_ctx_params_decoder:
  101|      7|{
  102|      7|    const char *s;
  103|       |
  104|      7|    memset(r, 0, sizeof(*r));
  105|      7|    if (p != NULL)
  ------------------
  |  Branch (105:9): [True: 7, False: 0]
  ------------------
  106|     14|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (106:16): [True: 7, False: 7]
  ------------------
  107|      7|            switch(s[0]) {
  108|      0|            default:
  ------------------
  |  Branch (108:13): [True: 0, False: 7]
  ------------------
  109|      0|                break;
  110|      7|            case 'd':
  ------------------
  |  Branch (110:13): [True: 7, False: 0]
  ------------------
  111|      7|                if (ossl_likely(strcmp("ata-structure", s + 1) == 0)) {
  ------------------
  |  |   22|      7|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 7, False: 0]
  |  |  ------------------
  ------------------
  112|       |                    /* OSSL_OBJECT_PARAM_DATA_STRUCTURE */
  113|      7|                    if (ossl_unlikely(r->ds != NULL)) {
  ------------------
  |  |   23|      7|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 7]
  |  |  ------------------
  ------------------
  114|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  115|      0|                                       "param %s is repeated", s);
  116|      0|                        return 0;
  117|      0|                    }
  118|      7|                    r->ds = (OSSL_PARAM *)p;
  119|      7|                }
  120|      7|                break;
  121|      7|            case 'p':
  ------------------
  |  Branch (121:13): [True: 0, False: 7]
  ------------------
  122|      0|                if (ossl_likely(strcmp("roperties", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  123|       |                    /* OSSL_DECODER_PARAM_PROPERTIES */
  124|      0|                    if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  125|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  126|      0|                                       "param %s is repeated", s);
  127|      0|                        return 0;
  128|      0|                    }
  129|      0|                    r->propq = (OSSL_PARAM *)p;
  130|      0|                }
  131|      7|            }
  132|      7|    return 1;
  133|      7|}

decode_pvk2key.c:pvk2key_does_selection:
  153|      4|{
  154|      4|    if (selection == 0)
  ------------------
  |  Branch (154:9): [True: 0, False: 4]
  ------------------
  155|      0|        return 1;
  156|       |
  157|      4|    if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0)
  ------------------
  |  |  640|      4|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (157:9): [True: 0, False: 4]
  ------------------
  158|      0|        return 1;
  159|       |
  160|      4|    return 0;
  161|      4|}

ossl_spki2typespki_der_decode:
  144|  31.9k|{
  145|  31.9k|    const unsigned char *derp = der;
  146|  31.9k|    X509_PUBKEY *xpub = NULL;
  147|  31.9k|    X509_ALGOR *algor = NULL;
  148|  31.9k|    const ASN1_OBJECT *oid = NULL;
  149|  31.9k|    char dataname[OSSL_MAX_NAME_SIZE];
  150|  31.9k|    OSSL_PARAM params[6], *p = params;
  151|  31.9k|    int objtype = OSSL_OBJECT_PKEY;
  ------------------
  |  |   29|  31.9k|#define OSSL_OBJECT_PKEY 2 /* EVP_PKEY * */
  ------------------
  152|  31.9k|    int ok = 0;
  153|       |
  154|  31.9k|    xpub = ossl_d2i_X509_PUBKEY_INTERNAL(&derp, len, libctx, propq);
  155|       |
  156|  31.9k|    if (xpub == NULL) {
  ------------------
  |  Branch (156:9): [True: 0, False: 31.9k]
  ------------------
  157|       |        /* We return "empty handed".  This is not an error. */
  158|      0|        ok = 1;
  159|      0|        goto end;
  160|      0|    }
  161|       |
  162|  31.9k|    if (!X509_PUBKEY_get0_param(NULL, NULL, NULL, &algor, xpub))
  ------------------
  |  Branch (162:9): [True: 0, False: 31.9k]
  ------------------
  163|      0|        goto end;
  164|  31.9k|    X509_ALGOR_get0(&oid, NULL, NULL, algor);
  165|       |
  166|  31.9k|#ifndef OPENSSL_NO_EC
  167|       |    /* SM2 abuses the EC oid, so this could actually be SM2 */
  168|  31.9k|    if (OBJ_obj2nid(oid) == NID_X9_62_id_ecPublicKey
  ------------------
  |  |  178|  63.9k|#define NID_X9_62_id_ecPublicKey                408
  ------------------
  |  Branch (168:9): [True: 8.76k, False: 23.2k]
  ------------------
  169|  8.76k|        && ossl_x509_algor_is_sm2(algor))
  ------------------
  |  Branch (169:12): [True: 0, False: 8.76k]
  ------------------
  170|      0|        strcpy(dataname, "SM2");
  171|  31.9k|    else
  172|  31.9k|#endif
  173|  31.9k|        if (OBJ_obj2txt(dataname, sizeof(dataname), oid, 0) <= 0)
  ------------------
  |  Branch (173:13): [True: 0, False: 31.9k]
  ------------------
  174|      0|        goto end;
  175|       |
  176|  31.9k|    ossl_X509_PUBKEY_INTERNAL_free(xpub);
  177|  31.9k|    xpub = NULL;
  178|       |
  179|  31.9k|    *p++ = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_TYPE,
  ------------------
  |  |  358|  31.9k|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
  180|  31.9k|        dataname, 0);
  181|       |
  182|  31.9k|    *p++ = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_INPUT_TYPE,
  ------------------
  |  |  360|  31.9k|# define OSSL_OBJECT_PARAM_INPUT_TYPE "input-type"
  ------------------
  183|  31.9k|        "DER", 0);
  184|       |
  185|  31.9k|    *p++ = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_STRUCTURE,
  ------------------
  |  |  357|  31.9k|# define OSSL_OBJECT_PARAM_DATA_STRUCTURE "data-structure"
  ------------------
  186|  31.9k|        "SubjectPublicKeyInfo",
  187|  31.9k|        0);
  188|  31.9k|    *p++ = OSSL_PARAM_construct_octet_string(OSSL_OBJECT_PARAM_DATA, der, len);
  ------------------
  |  |  356|  31.9k|# define OSSL_OBJECT_PARAM_DATA "data"
  ------------------
  189|  31.9k|    *p++ = OSSL_PARAM_construct_int(OSSL_OBJECT_PARAM_TYPE, &objtype);
  ------------------
  |  |  362|  31.9k|# define OSSL_OBJECT_PARAM_TYPE "type"
  ------------------
  190|       |
  191|  31.9k|    *p = OSSL_PARAM_construct_end();
  192|       |
  193|  31.9k|    ok = data_cb(params, data_cbarg);
  194|       |
  195|  31.9k|end:
  196|  31.9k|    ossl_X509_PUBKEY_INTERNAL_free(xpub);
  197|  31.9k|    return ok;
  198|  31.9k|}
decode_spki2typespki.c:spki2typespki_newctx:
   45|  31.9k|{
   46|  31.9k|    struct spki2typespki_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  108|  31.9k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   47|       |
   48|  31.9k|    if (ctx != NULL)
  ------------------
  |  Branch (48:9): [True: 31.9k, False: 0]
  ------------------
   49|  31.9k|        ctx->provctx = provctx;
   50|  31.9k|    return ctx;
   51|  31.9k|}
decode_spki2typespki.c:spki2typespki_freectx:
   54|  31.9k|{
   55|  31.9k|    struct spki2typespki_ctx_st *ctx = vctx;
   56|       |
   57|  31.9k|    OPENSSL_free(ctx);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   58|  31.9k|}
decode_spki2typespki.c:spki2typespki_decode:
  124|  31.9k|{
  125|  31.9k|    struct spki2typespki_ctx_st *ctx = vctx;
  126|  31.9k|    unsigned char *der;
  127|  31.9k|    long len;
  128|  31.9k|    int ok = 0;
  129|       |
  130|  31.9k|    if (!ossl_read_der(ctx->provctx, cin, &der, &len))
  ------------------
  |  Branch (130:9): [True: 0, False: 31.9k]
  ------------------
  131|      0|        return 1;
  132|       |
  133|  31.9k|    ok = ossl_spki2typespki_der_decode(der, len, selection, data_cb, data_cbarg,
  134|  31.9k|        pw_cb, pw_cbarg,
  135|  31.9k|        PROV_LIBCTX_OF(ctx->provctx), ctx->propq);
  ------------------
  |  |   31|  31.9k|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  136|  31.9k|    OPENSSL_free(der);
  ------------------
  |  |  131|  31.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  137|  31.9k|    return ok;
  138|  31.9k|}
decode_spki2typespki.c:spki2typespki_set_ctx_params:
  105|      2|{
  106|      2|    struct spki2typespki_ctx_st *ctx = vctx;
  107|      2|    struct spki2typespki_set_ctx_params_st p;
  108|      2|    char *str;
  109|       |
  110|      2|    if (ctx == NULL || !spki2typespki_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (110:9): [True: 0, False: 2]
  |  Branch (110:24): [True: 0, False: 2]
  ------------------
  111|      0|        return 0;
  112|       |
  113|      2|    str = ctx->propq;
  114|      2|    if (p.propq != NULL
  ------------------
  |  Branch (114:9): [True: 0, False: 2]
  ------------------
  115|      0|        && !OSSL_PARAM_get_utf8_string(p.propq, &str, sizeof(ctx->propq)))
  ------------------
  |  Branch (115:12): [True: 0, False: 0]
  ------------------
  116|      0|        return 0;
  117|       |
  118|      2|    return 1;
  119|      2|}
decode_spki2typespki.c:spki2typespki_set_ctx_params_decoder:
   78|      2|{
   79|      2|    const char *s;
   80|       |
   81|      2|    memset(r, 0, sizeof(*r));
   82|      2|    if (p != NULL)
  ------------------
  |  Branch (82:9): [True: 2, False: 0]
  ------------------
   83|      4|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (83:16): [True: 2, False: 2]
  ------------------
   84|      2|            if (ossl_likely(strcmp("properties", s + 0) == 0)) {
  ------------------
  |  |   22|      2|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 2]
  |  |  ------------------
  ------------------
   85|       |                /* OSSL_DECODER_PARAM_PROPERTIES */
   86|      0|                if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   87|      0|                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   88|      0|                                   "param %s is repeated", s);
   89|      0|                    return 0;
   90|      0|                }
   91|      0|                r->propq = (OSSL_PARAM *)p;
   92|      0|            }
   93|      2|    return 1;
   94|      2|}

ossl_read_der:
   88|  63.9k|{
   89|  63.9k|    BUF_MEM *mem = NULL;
   90|  63.9k|    BIO *in = ossl_bio_new_from_core_bio(provctx, cin);
   91|  63.9k|    int ok;
   92|       |
   93|  63.9k|    if (in == NULL)
  ------------------
  |  Branch (93:9): [True: 0, False: 63.9k]
  ------------------
   94|      0|        return 0;
   95|  63.9k|    ok = (asn1_d2i_read_bio(in, &mem) >= 0);
   96|  63.9k|    if (ok) {
  ------------------
  |  Branch (96:9): [True: 63.9k, False: 0]
  ------------------
   97|  63.9k|        *data = (unsigned char *)mem->data;
   98|  63.9k|        *len = (long)mem->length;
   99|  63.9k|        OPENSSL_free(mem);
  ------------------
  |  |  131|  63.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  100|  63.9k|    }
  101|  63.9k|    BIO_free(in);
  102|  63.9k|    return ok;
  103|  63.9k|}

cipher_aes.c:aes_256_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_192_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_128_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_256_cbc_get_params:
  198|    221|    {                                                                                   \
  199|    221|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|    221|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|    221|            flags, kbits, blkbits, ivbits);                                             \
  201|    221|    }                                                                                   \
cipher_aes.c:aes_192_cbc_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_128_cbc_get_params:
  198|    221|    {                                                                                   \
  199|    221|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|    221|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|    221|            flags, kbits, blkbits, ivbits);                                             \
  201|    221|    }                                                                                   \
cipher_aes.c:aes_256_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_192_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_128_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_256_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_192_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_128_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_256_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_192_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_128_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_256_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_192_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_128_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_256_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_192_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_128_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aes.c:aes_cbc_cts_gettable_ctx_params:
  348|      3|    {                                                                    \
  349|      3|        return name##_known_gettable_ctx_params;                         \
  350|      3|    }
cipher_aria.c:aria_256_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_192_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_128_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_256_cbc_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_192_cbc_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_128_cbc_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_256_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_192_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_128_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_256_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_192_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_128_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_256_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_192_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_128_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_256_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_192_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_128_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_256_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_192_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_aria.c:aria_128_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_256_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_192_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_128_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_256_cbc_get_params:
  198|    221|    {                                                                                   \
  199|    221|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|    221|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|    221|            flags, kbits, blkbits, ivbits);                                             \
  201|    221|    }                                                                                   \
cipher_camellia.c:camellia_192_cbc_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_128_cbc_get_params:
  198|    221|    {                                                                                   \
  199|    221|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|    221|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|    221|            flags, kbits, blkbits, ivbits);                                             \
  201|    221|    }                                                                                   \
cipher_camellia.c:camellia_256_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_192_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_128_ofb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_256_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_192_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_128_cfb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_256_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_192_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_128_cfb1_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_256_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_192_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_128_cfb8_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_256_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_192_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_128_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_camellia.c:camellia_cbc_cts_gettable_ctx_params:
  348|      3|    {                                                                    \
  349|      3|        return name##_known_gettable_ctx_params;                         \
  350|      3|    }
cipher_sm4.c:sm4_128_ecb_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  311|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_sm4.c:sm4_128_cbc_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  312|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_sm4.c:sm4_128_ctr_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  315|      1|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_sm4.c:sm4_128_ofb128_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  314|      1|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
cipher_sm4.c:sm4_128_cfb128_get_params:
  198|      1|    {                                                                                   \
  199|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,         \
  ------------------
  |  |  313|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  200|      1|            flags, kbits, blkbits, ivbits);                                             \
  201|      1|    }                                                                                   \
ossl_tdes_gettable_ctx_params:
  348|     11|    {                                                                    \
  349|     11|        return name##_known_gettable_ctx_params;                         \
  350|     11|    }

cipher_aes_ccm.c:aes_128_ccm_get_params:
   21|    441|    {                                                                           \
   22|    441|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  317|    441|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|    441|            flags, kbits, blkbits, ivbits);                                     \
   24|    441|    }                                                                           \
cipher_aes_ccm.c:aes_192_ccm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  317|      1|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|      1|            flags, kbits, blkbits, ivbits);                                     \
   24|      1|    }                                                                           \
cipher_aes_ccm.c:aes_256_ccm_get_params:
   21|    441|    {                                                                           \
   22|    441|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  317|    441|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|    441|            flags, kbits, blkbits, ivbits);                                     \
   24|    441|    }                                                                           \
cipher_aes_gcm.c:aes_128_gcm_get_params:
   21|    221|    {                                                                           \
   22|    221|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  316|    221|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    221|            flags, kbits, blkbits, ivbits);                                     \
   24|    221|    }                                                                           \
cipher_aes_gcm.c:aes_192_gcm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  316|      1|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|      1|            flags, kbits, blkbits, ivbits);                                     \
   24|      1|    }                                                                           \
cipher_aes_gcm.c:aes_256_gcm_get_params:
   21|    221|    {                                                                           \
   22|    221|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  316|    221|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    221|            flags, kbits, blkbits, ivbits);                                     \
   24|    221|    }                                                                           \
cipher_aria_ccm.c:aria_128_ccm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  317|      1|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|      1|            flags, kbits, blkbits, ivbits);                                     \
   24|      1|    }                                                                           \
cipher_aria_ccm.c:aria_192_ccm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  317|      1|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|      1|            flags, kbits, blkbits, ivbits);                                     \
   24|      1|    }                                                                           \
cipher_aria_ccm.c:aria_256_ccm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  317|      1|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|      1|            flags, kbits, blkbits, ivbits);                                     \
   24|      1|    }                                                                           \
cipher_aria_gcm.c:aria_128_gcm_get_params:
   21|    221|    {                                                                           \
   22|    221|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  316|    221|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    221|            flags, kbits, blkbits, ivbits);                                     \
   24|    221|    }                                                                           \
cipher_aria_gcm.c:aria_192_gcm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  316|      1|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|      1|            flags, kbits, blkbits, ivbits);                                     \
   24|      1|    }                                                                           \
cipher_aria_gcm.c:aria_256_gcm_get_params:
   21|    221|    {                                                                           \
   22|    221|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  316|    221|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    221|            flags, kbits, blkbits, ivbits);                                     \
   24|    221|    }                                                                           \
cipher_sm4_ccm.c:sm4_128_ccm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  317|      1|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|      1|            flags, kbits, blkbits, ivbits);                                     \
   24|      1|    }                                                                           \
cipher_sm4_gcm.c:sm4_128_gcm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  316|      1|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|      1|            flags, kbits, blkbits, ivbits);                                     \
   24|      1|    }                                                                           \

md5_prov.c:md5_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
md5_sha1_prov.c:md5_sha1_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
null_prov.c:nullmd_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
ripemd_prov.c:ripemd160_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha2_prov.c:sha1_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha2_prov.c:sha224_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha2_prov.c:sha256_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha2_prov.c:sha256_192_internal_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha2_prov.c:sha384_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha2_prov.c:sha512_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha2_prov.c:sha512_224_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha2_prov.c:sha512_256_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:sha3_224_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:sha3_256_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:sha3_384_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:sha3_512_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:keccak_224_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:keccak_256_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:keccak_384_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:keccak_512_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:shake_128_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:shake_256_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:keccak_kmac_128_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:keccak_kmac_256_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sm3_prov.c:sm3_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }

ec_kmgmt.c:ec_load:
 1423|  8.76k|{
 1424|  8.76k|    return common_load(reference, reference_sz, 0);
 1425|  8.76k|}
ec_kmgmt.c:common_load:
 1405|  8.76k|{
 1406|  8.76k|    EC_KEY *ec = NULL;
 1407|       |
 1408|  8.76k|    if (ossl_prov_is_running() && reference_sz == sizeof(ec)) {
  ------------------
  |  Branch (1408:9): [True: 8.76k, False: 0]
  |  Branch (1408:35): [True: 8.76k, False: 0]
  ------------------
 1409|       |        /* The contents of the reference is the address to our object */
 1410|  8.76k|        ec = *(EC_KEY **)reference;
 1411|       |
 1412|  8.76k|        if (!common_check_sm2(ec, sm2_wanted))
  ------------------
  |  Branch (1412:13): [True: 0, False: 8.76k]
  ------------------
 1413|      0|            return NULL;
 1414|       |
 1415|       |        /* We grabbed, so we detach it */
 1416|  8.76k|        *(EC_KEY **)reference = NULL;
 1417|  8.76k|        return ec;
 1418|  8.76k|    }
 1419|      0|    return NULL;
 1420|  8.76k|}
ec_kmgmt.c:common_check_sm2:
  372|  8.76k|{
  373|  8.76k|    const EC_GROUP *ecg = NULL;
  374|       |
  375|       |    /*
  376|       |     * sm2_wanted: import the keys or domparams only on SM2 Curve
  377|       |     * !sm2_wanted: import the keys or domparams only not on SM2 Curve
  378|       |     */
  379|  8.76k|    if ((ecg = EC_KEY_get0_group(ec)) == NULL
  ------------------
  |  Branch (379:9): [True: 0, False: 8.76k]
  ------------------
  380|  8.76k|        || (sm2_wanted ^ (EC_GROUP_get_curve_name(ecg) == NID_sm2)))
  ------------------
  |  | 1255|  8.76k|#define NID_sm2         1172
  ------------------
  |  Branch (380:12): [True: 0, False: 8.76k]
  ------------------
  381|      0|        return 0;
  382|  8.76k|    return 1;
  383|  8.76k|}
ec_kmgmt.c:ec_freedata:
  296|  8.76k|{
  297|  8.76k|    EC_KEY_free(keydata);
  298|  8.76k|}
ec_kmgmt.c:ec_get_params:
  753|  8.76k|{
  754|  8.76k|    return common_get_params(key, params, 0);
  755|  8.76k|}
ec_kmgmt.c:common_get_params:
  620|  8.76k|{
  621|  8.76k|    int ret = 0;
  622|  8.76k|    EC_KEY *eck = key;
  623|  8.76k|    const EC_GROUP *ecg = NULL;
  624|  8.76k|    OSSL_PARAM *p;
  625|  8.76k|    unsigned char *pub_key = NULL, *genbuf = NULL;
  626|  8.76k|    OSSL_LIB_CTX *libctx;
  627|  8.76k|    const char *propq;
  628|  8.76k|    BN_CTX *bnctx = NULL;
  629|       |
  630|  8.76k|    ecg = EC_KEY_get0_group(eck);
  631|  8.76k|    if (ecg == NULL) {
  ------------------
  |  Branch (631:9): [True: 0, False: 8.76k]
  ------------------
  632|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_NO_PARAMETERS_SET);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  633|      0|        return 0;
  634|      0|    }
  635|       |
  636|  8.76k|    libctx = ossl_ec_key_get_libctx(eck);
  637|  8.76k|    propq = ossl_ec_key_get0_propq(eck);
  638|       |
  639|  8.76k|    bnctx = BN_CTX_new_ex(libctx);
  640|  8.76k|    if (bnctx == NULL)
  ------------------
  |  Branch (640:9): [True: 0, False: 8.76k]
  ------------------
  641|      0|        return 0;
  642|  8.76k|    BN_CTX_start(bnctx);
  643|       |
  644|  8.76k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_MAX_SIZE)) != NULL
  ------------------
  |  |  424|  8.76k|# define OSSL_PKEY_PARAM_MAX_SIZE "max-size"
  ------------------
  |  Branch (644:9): [True: 8.76k, False: 0]
  ------------------
  645|  8.76k|        && !OSSL_PARAM_set_int(p, ECDSA_size(eck)))
  ------------------
  |  Branch (645:12): [True: 0, False: 8.76k]
  ------------------
  646|      0|        goto err;
  647|  8.76k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_BITS)) != NULL
  ------------------
  |  |  366|  8.76k|# define OSSL_PKEY_PARAM_BITS "bits"
  ------------------
  |  Branch (647:9): [True: 8.76k, False: 0]
  ------------------
  648|  8.76k|        && !OSSL_PARAM_set_int(p, EC_GROUP_order_bits(ecg)))
  ------------------
  |  Branch (648:12): [True: 0, False: 8.76k]
  ------------------
  649|      0|        goto err;
  650|  8.76k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_BITS)) != NULL) {
  ------------------
  |  |  495|  8.76k|# define OSSL_PKEY_PARAM_SECURITY_BITS "security-bits"
  ------------------
  |  Branch (650:9): [True: 8.76k, False: 0]
  ------------------
  651|  8.76k|        int ecbits, sec_bits;
  652|       |
  653|  8.76k|        ecbits = EC_GROUP_order_bits(ecg);
  654|       |
  655|       |        /*
  656|       |         * The following estimates are based on the values published
  657|       |         * in Table 2 of "NIST Special Publication 800-57 Part 1 Revision 4"
  658|       |         * at http://dx.doi.org/10.6028/NIST.SP.800-57pt1r4 .
  659|       |         *
  660|       |         * Note that the above reference explicitly categorizes algorithms in a
  661|       |         * discrete set of values {80, 112, 128, 192, 256}, and that it is
  662|       |         * relevant only for NIST approved Elliptic Curves, while OpenSSL
  663|       |         * applies the same logic also to other curves.
  664|       |         *
  665|       |         * Classifications produced by other standardazing bodies might differ,
  666|       |         * so the results provided for "bits of security" by this provider are
  667|       |         * to be considered merely indicative, and it is the users'
  668|       |         * responsibility to compare these values against the normative
  669|       |         * references that may be relevant for their intent and purposes.
  670|       |         */
  671|  8.76k|        if (ecbits >= 512)
  ------------------
  |  Branch (671:13): [True: 0, False: 8.76k]
  ------------------
  672|      0|            sec_bits = 256;
  673|  8.76k|        else if (ecbits >= 384)
  ------------------
  |  Branch (673:18): [True: 7.88k, False: 876]
  ------------------
  674|  7.88k|            sec_bits = 192;
  675|    876|        else if (ecbits >= 256)
  ------------------
  |  Branch (675:18): [True: 876, False: 0]
  ------------------
  676|    876|            sec_bits = 128;
  677|      0|        else if (ecbits >= 224)
  ------------------
  |  Branch (677:18): [True: 0, False: 0]
  ------------------
  678|      0|            sec_bits = 112;
  679|      0|        else if (ecbits >= 160)
  ------------------
  |  Branch (679:18): [True: 0, False: 0]
  ------------------
  680|      0|            sec_bits = 80;
  681|      0|        else
  682|      0|            sec_bits = ecbits / 2;
  683|       |
  684|  8.76k|        if (!OSSL_PARAM_set_int(p, sec_bits))
  ------------------
  |  Branch (684:13): [True: 0, False: 8.76k]
  ------------------
  685|      0|            goto err;
  686|  8.76k|    }
  687|  8.76k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_CATEGORY)) != NULL)
  ------------------
  |  |  496|  8.76k|# define OSSL_PKEY_PARAM_SECURITY_CATEGORY OSSL_ALG_PARAM_SECURITY_CATEGORY
  |  |  ------------------
  |  |  |  |  133|  8.76k|# define OSSL_ALG_PARAM_SECURITY_CATEGORY "security-category"
  |  |  ------------------
  ------------------
  |  Branch (687:9): [True: 8.76k, False: 0]
  ------------------
  688|  8.76k|        if (!OSSL_PARAM_set_int(p, 0))
  ------------------
  |  Branch (688:13): [True: 0, False: 8.76k]
  ------------------
  689|      0|            goto err;
  690|       |
  691|  8.76k|    if ((p = OSSL_PARAM_locate(params,
  ------------------
  |  Branch (691:9): [True: 0, False: 8.76k]
  ------------------
  692|  8.76k|             OSSL_PKEY_PARAM_EC_DECODED_FROM_EXPLICIT_PARAMS))
  ------------------
  |  |  386|  8.76k|# define OSSL_PKEY_PARAM_EC_DECODED_FROM_EXPLICIT_PARAMS "decoded-from-explicit"
  ------------------
  693|  8.76k|        != NULL) {
  694|      0|        int explicitparams = EC_KEY_decoded_from_explicit_params(eck);
  695|       |
  696|      0|        if (explicitparams < 0
  ------------------
  |  Branch (696:13): [True: 0, False: 0]
  ------------------
  697|      0|            || !OSSL_PARAM_set_int(p, explicitparams))
  ------------------
  |  Branch (697:16): [True: 0, False: 0]
  ------------------
  698|      0|            goto err;
  699|      0|    }
  700|       |
  701|  8.76k|    if (!sm2) {
  ------------------
  |  Branch (701:9): [True: 8.76k, False: 0]
  ------------------
  702|  8.76k|        if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_DEFAULT_DIGEST)) != NULL
  ------------------
  |  |  370|  8.76k|# define OSSL_PKEY_PARAM_DEFAULT_DIGEST "default-digest"
  ------------------
  |  Branch (702:13): [True: 0, False: 8.76k]
  ------------------
  703|      0|            && !OSSL_PARAM_set_utf8_string(p, EC_DEFAULT_MD))
  ------------------
  |  |   77|      0|#define EC_DEFAULT_MD "SHA256"
  ------------------
  |  Branch (703:16): [True: 0, False: 0]
  ------------------
  704|      0|            goto err;
  705|  8.76k|    } else {
  706|      0|        if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_DEFAULT_DIGEST)) != NULL
  ------------------
  |  |  370|      0|# define OSSL_PKEY_PARAM_DEFAULT_DIGEST "default-digest"
  ------------------
  |  Branch (706:13): [True: 0, False: 0]
  ------------------
  707|      0|            && !OSSL_PARAM_set_utf8_string(p, SM2_DEFAULT_MD))
  ------------------
  |  |   80|      0|#define SM2_DEFAULT_MD "SM3"
  ------------------
  |  Branch (707:16): [True: 0, False: 0]
  ------------------
  708|      0|            goto err;
  709|      0|    }
  710|       |
  711|       |    /* SM2 doesn't support this PARAM */
  712|  8.76k|    if (!sm2) {
  ------------------
  |  Branch (712:9): [True: 8.76k, False: 0]
  ------------------
  713|  8.76k|        p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_USE_COFACTOR_ECDH);
  ------------------
  |  |  498|  8.76k|# define OSSL_PKEY_PARAM_USE_COFACTOR_ECDH OSSL_PKEY_PARAM_USE_COFACTOR_FLAG
  |  |  ------------------
  |  |  |  |  499|  8.76k|# define OSSL_PKEY_PARAM_USE_COFACTOR_FLAG "use-cofactor-flag"
  |  |  ------------------
  ------------------
  714|  8.76k|        if (p != NULL) {
  ------------------
  |  Branch (714:13): [True: 0, False: 8.76k]
  ------------------
  715|      0|            int ecdh_cofactor_mode = 0;
  716|       |
  717|      0|            ecdh_cofactor_mode = (EC_KEY_get_flags(eck) & EC_FLAG_COFACTOR_ECDH) ? 1 : 0;
  ------------------
  |  |  955|      0|#define EC_FLAG_COFACTOR_ECDH 0x1000
  ------------------
  |  Branch (717:34): [True: 0, False: 0]
  ------------------
  718|       |
  719|      0|            if (!OSSL_PARAM_set_int(p, ecdh_cofactor_mode))
  ------------------
  |  Branch (719:17): [True: 0, False: 0]
  ------------------
  720|      0|                goto err;
  721|      0|        }
  722|  8.76k|    }
  723|  8.76k|    if ((p = OSSL_PARAM_locate(params,
  ------------------
  |  Branch (723:9): [True: 0, False: 8.76k]
  ------------------
  724|  8.76k|             OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY))
  ------------------
  |  |  398|  8.76k|# define OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY "encoded-pub-key"
  ------------------
  725|  8.76k|        != NULL) {
  726|      0|        const EC_POINT *ecp = EC_KEY_get0_public_key(key);
  727|       |
  728|      0|        if (ecp == NULL) {
  ------------------
  |  Branch (728:13): [True: 0, False: 0]
  ------------------
  729|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_NOT_A_PUBLIC_KEY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  730|      0|            goto err;
  731|      0|        }
  732|      0|        p->return_size = EC_POINT_point2oct(ecg, ecp,
  733|      0|            POINT_CONVERSION_UNCOMPRESSED,
  734|      0|            p->data, p->data_size, bnctx);
  735|      0|        if (p->return_size == 0)
  ------------------
  |  Branch (735:13): [True: 0, False: 0]
  ------------------
  736|      0|            goto err;
  737|      0|    }
  738|       |
  739|  8.76k|    ret = ec_get_ecm_params(ecg, params)
  ------------------
  |  Branch (739:11): [True: 8.76k, False: 0]
  ------------------
  740|  8.76k|        && ossl_ec_group_todata(ecg, NULL, params, libctx, propq, bnctx,
  ------------------
  |  Branch (740:12): [True: 8.76k, False: 0]
  ------------------
  741|  8.76k|            &genbuf)
  742|  8.76k|        && key_to_params(eck, NULL, params, 1, &pub_key)
  ------------------
  |  Branch (742:12): [True: 8.76k, False: 0]
  ------------------
  743|  8.76k|        && otherparams_to_params(eck, NULL, params);
  ------------------
  |  Branch (743:12): [True: 8.76k, False: 0]
  ------------------
  744|  8.76k|err:
  745|  8.76k|    OPENSSL_free(genbuf);
  ------------------
  |  |  131|  8.76k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  746|  8.76k|    OPENSSL_free(pub_key);
  ------------------
  |  |  131|  8.76k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  747|  8.76k|    BN_CTX_end(bnctx);
  748|  8.76k|    BN_CTX_free(bnctx);
  749|  8.76k|    return ret;
  750|  8.76k|}
ec_kmgmt.c:ec_get_ecm_params:
  569|  8.76k|{
  570|       |#ifdef OPENSSL_NO_EC2M
  571|       |    return 1;
  572|       |#else
  573|  8.76k|    int ret = 0, m;
  574|  8.76k|    unsigned int k1 = 0, k2 = 0, k3 = 0;
  575|  8.76k|    int basis_nid;
  576|  8.76k|    const char *basis_name = NULL;
  577|  8.76k|    int fid = EC_GROUP_get_field_type(group);
  578|       |
  579|  8.76k|    if (fid != NID_X9_62_characteristic_two_field)
  ------------------
  |  |  156|  8.76k|#define NID_X9_62_characteristic_two_field              407
  ------------------
  |  Branch (579:9): [True: 8.76k, False: 0]
  ------------------
  580|  8.76k|        return 1;
  581|       |
  582|      0|    basis_nid = EC_GROUP_get_basis_type(group);
  583|      0|    if (basis_nid == NID_X9_62_tpBasis)
  ------------------
  |  |  168|      0|#define NID_X9_62_tpBasis               682
  ------------------
  |  Branch (583:9): [True: 0, False: 0]
  ------------------
  584|      0|        basis_name = SN_X9_62_tpBasis;
  ------------------
  |  |  167|      0|#define SN_X9_62_tpBasis                "tpBasis"
  ------------------
  585|      0|    else if (basis_nid == NID_X9_62_ppBasis)
  ------------------
  |  |  172|      0|#define NID_X9_62_ppBasis               683
  ------------------
  |  Branch (585:14): [True: 0, False: 0]
  ------------------
  586|      0|        basis_name = SN_X9_62_ppBasis;
  ------------------
  |  |  171|      0|#define SN_X9_62_ppBasis                "ppBasis"
  ------------------
  587|      0|    else
  588|      0|        goto err;
  589|       |
  590|      0|    m = EC_GROUP_get_degree(group);
  591|      0|    if (!ossl_param_build_set_int(NULL, params, OSSL_PKEY_PARAM_EC_CHAR2_M, m)
  ------------------
  |  |  379|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_M "m"
  ------------------
  |  Branch (591:9): [True: 0, False: 0]
  ------------------
  592|      0|        || !ossl_param_build_set_utf8_string(NULL, params,
  ------------------
  |  Branch (592:12): [True: 0, False: 0]
  ------------------
  593|      0|            OSSL_PKEY_PARAM_EC_CHAR2_TYPE,
  ------------------
  |  |  384|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_TYPE "basis-type"
  ------------------
  594|      0|            basis_name))
  595|      0|        goto err;
  596|       |
  597|      0|    if (basis_nid == NID_X9_62_tpBasis) {
  ------------------
  |  |  168|      0|#define NID_X9_62_tpBasis               682
  ------------------
  |  Branch (597:9): [True: 0, False: 0]
  ------------------
  598|      0|        if (!EC_GROUP_get_trinomial_basis(group, &k1)
  ------------------
  |  Branch (598:13): [True: 0, False: 0]
  ------------------
  599|      0|            || !ossl_param_build_set_int(NULL, params,
  ------------------
  |  Branch (599:16): [True: 0, False: 0]
  ------------------
  600|      0|                OSSL_PKEY_PARAM_EC_CHAR2_TP_BASIS,
  ------------------
  |  |  383|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_TP_BASIS "tp"
  ------------------
  601|      0|                (int)k1))
  602|      0|            goto err;
  603|      0|    } else {
  604|      0|        if (!EC_GROUP_get_pentanomial_basis(group, &k1, &k2, &k3)
  ------------------
  |  Branch (604:13): [True: 0, False: 0]
  ------------------
  605|      0|            || !ossl_param_build_set_int(NULL, params,
  ------------------
  |  Branch (605:16): [True: 0, False: 0]
  ------------------
  606|      0|                OSSL_PKEY_PARAM_EC_CHAR2_PP_K1, (int)k1)
  ------------------
  |  |  380|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_PP_K1 "k1"
  ------------------
  607|      0|            || !ossl_param_build_set_int(NULL, params,
  ------------------
  |  Branch (607:16): [True: 0, False: 0]
  ------------------
  608|      0|                OSSL_PKEY_PARAM_EC_CHAR2_PP_K2, (int)k2)
  ------------------
  |  |  381|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_PP_K2 "k2"
  ------------------
  609|      0|            || !ossl_param_build_set_int(NULL, params,
  ------------------
  |  Branch (609:16): [True: 0, False: 0]
  ------------------
  610|      0|                OSSL_PKEY_PARAM_EC_CHAR2_PP_K3, (int)k3))
  ------------------
  |  |  382|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_PP_K3 "k3"
  ------------------
  611|      0|            goto err;
  612|      0|    }
  613|      0|    ret = 1;
  614|      0|err:
  615|      0|    return ret;
  616|      0|#endif /* OPENSSL_NO_EC2M */
  617|      0|}
ec_kmgmt.c:key_to_params:
  116|  8.76k|{
  117|  8.76k|    BIGNUM *x = NULL, *y = NULL;
  118|  8.76k|    const BIGNUM *priv_key = NULL;
  119|  8.76k|    const EC_POINT *pub_point = NULL;
  120|  8.76k|    const EC_GROUP *ecg = NULL;
  121|  8.76k|    size_t pub_key_len = 0;
  122|  8.76k|    int ret = 0;
  123|  8.76k|    BN_CTX *bnctx = NULL;
  124|       |
  125|  8.76k|    if (eckey == NULL
  ------------------
  |  Branch (125:9): [True: 0, False: 8.76k]
  ------------------
  126|  8.76k|        || (ecg = EC_KEY_get0_group(eckey)) == NULL)
  ------------------
  |  Branch (126:12): [True: 0, False: 8.76k]
  ------------------
  127|      0|        return 0;
  128|       |
  129|  8.76k|    priv_key = EC_KEY_get0_private_key(eckey);
  130|  8.76k|    pub_point = EC_KEY_get0_public_key(eckey);
  131|       |
  132|  8.76k|    if (pub_point != NULL) {
  ------------------
  |  Branch (132:9): [True: 8.76k, False: 0]
  ------------------
  133|  8.76k|        OSSL_PARAM *p = NULL, *px = NULL, *py = NULL;
  134|       |        /*
  135|       |         * EC_POINT_point2buf() can generate random numbers in some
  136|       |         * implementations so we need to ensure we use the correct libctx.
  137|       |         */
  138|  8.76k|        bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey));
  139|  8.76k|        if (bnctx == NULL)
  ------------------
  |  Branch (139:13): [True: 0, False: 8.76k]
  ------------------
  140|      0|            goto err;
  141|       |
  142|       |        /* If we are doing a get then check first before decoding the point */
  143|  8.76k|        if (tmpl == NULL) {
  ------------------
  |  Branch (143:13): [True: 8.76k, False: 0]
  ------------------
  144|  8.76k|            p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_PUB_KEY);
  ------------------
  |  |  441|  8.76k|# define OSSL_PKEY_PARAM_PUB_KEY "pub"
  ------------------
  145|  8.76k|            px = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_EC_PUB_X);
  ------------------
  |  |  395|  8.76k|# define OSSL_PKEY_PARAM_EC_PUB_X "qx"
  ------------------
  146|  8.76k|            py = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_EC_PUB_Y);
  ------------------
  |  |  396|  8.76k|# define OSSL_PKEY_PARAM_EC_PUB_Y "qy"
  ------------------
  147|  8.76k|        }
  148|       |
  149|  8.76k|        if (p != NULL || tmpl != NULL) {
  ------------------
  |  Branch (149:13): [True: 0, False: 8.76k]
  |  Branch (149:26): [True: 0, False: 8.76k]
  ------------------
  150|       |            /* convert pub_point to a octet string according to the SECG standard */
  151|      0|            point_conversion_form_t format = EC_KEY_get_conv_form(eckey);
  152|       |
  153|      0|            if ((pub_key_len = EC_POINT_point2buf(ecg, pub_point,
  ------------------
  |  Branch (153:17): [True: 0, False: 0]
  ------------------
  154|      0|                     format,
  155|      0|                     pub_key, bnctx))
  156|      0|                    == 0
  157|      0|                || !ossl_param_build_set_octet_string(tmpl, p,
  ------------------
  |  Branch (157:20): [True: 0, False: 0]
  ------------------
  158|      0|                    OSSL_PKEY_PARAM_PUB_KEY,
  ------------------
  |  |  441|      0|# define OSSL_PKEY_PARAM_PUB_KEY "pub"
  ------------------
  159|      0|                    *pub_key, pub_key_len))
  160|      0|                goto err;
  161|      0|        }
  162|  8.76k|        if (px != NULL || py != NULL) {
  ------------------
  |  Branch (162:13): [True: 0, False: 8.76k]
  |  Branch (162:27): [True: 0, False: 8.76k]
  ------------------
  163|      0|            if (px != NULL) {
  ------------------
  |  Branch (163:17): [True: 0, False: 0]
  ------------------
  164|      0|                x = BN_CTX_get(bnctx);
  165|      0|                if (x == NULL)
  ------------------
  |  Branch (165:21): [True: 0, False: 0]
  ------------------
  166|      0|                    goto err;
  167|      0|            }
  168|      0|            if (py != NULL) {
  ------------------
  |  Branch (168:17): [True: 0, False: 0]
  ------------------
  169|      0|                y = BN_CTX_get(bnctx);
  170|      0|                if (y == NULL)
  ------------------
  |  Branch (170:21): [True: 0, False: 0]
  ------------------
  171|      0|                    goto err;
  172|      0|            }
  173|       |
  174|      0|            if (!EC_POINT_get_affine_coordinates(ecg, pub_point, x, y, bnctx))
  ------------------
  |  Branch (174:17): [True: 0, False: 0]
  ------------------
  175|      0|                goto err;
  176|      0|            if (px != NULL
  ------------------
  |  Branch (176:17): [True: 0, False: 0]
  ------------------
  177|      0|                && !ossl_param_build_set_bn(tmpl, px,
  ------------------
  |  Branch (177:20): [True: 0, False: 0]
  ------------------
  178|      0|                    OSSL_PKEY_PARAM_EC_PUB_X, x))
  ------------------
  |  |  395|      0|# define OSSL_PKEY_PARAM_EC_PUB_X "qx"
  ------------------
  179|      0|                goto err;
  180|      0|            if (py != NULL
  ------------------
  |  Branch (180:17): [True: 0, False: 0]
  ------------------
  181|      0|                && !ossl_param_build_set_bn(tmpl, py,
  ------------------
  |  Branch (181:20): [True: 0, False: 0]
  ------------------
  182|      0|                    OSSL_PKEY_PARAM_EC_PUB_Y, y))
  ------------------
  |  |  396|      0|# define OSSL_PKEY_PARAM_EC_PUB_Y "qy"
  ------------------
  183|      0|                goto err;
  184|      0|        }
  185|  8.76k|    }
  186|       |
  187|  8.76k|    if (priv_key != NULL && include_private) {
  ------------------
  |  Branch (187:9): [True: 0, False: 8.76k]
  |  Branch (187:29): [True: 0, False: 0]
  ------------------
  188|      0|        size_t sz;
  189|      0|        int ecbits;
  190|       |
  191|       |        /*
  192|       |         * Key import/export should never leak the bit length of the secret
  193|       |         * scalar in the key.
  194|       |         *
  195|       |         * For this reason, on export we use padded BIGNUMs with fixed length.
  196|       |         *
  197|       |         * When importing we also should make sure that, even if short lived,
  198|       |         * the newly created BIGNUM is marked with the BN_FLG_CONSTTIME flag as
  199|       |         * soon as possible, so that any processing of this BIGNUM might opt for
  200|       |         * constant time implementations in the backend.
  201|       |         *
  202|       |         * Setting the BN_FLG_CONSTTIME flag alone is never enough, we also have
  203|       |         * to preallocate the BIGNUM internal buffer to a fixed public size big
  204|       |         * enough that operations performed during the processing never trigger
  205|       |         * a realloc which would leak the size of the scalar through memory
  206|       |         * accesses.
  207|       |         *
  208|       |         * Fixed Length
  209|       |         * ------------
  210|       |         *
  211|       |         * The order of the large prime subgroup of the curve is our choice for
  212|       |         * a fixed public size, as that is generally the upper bound for
  213|       |         * generating a private key in EC cryptosystems and should fit all valid
  214|       |         * secret scalars.
  215|       |         *
  216|       |         * For padding on export we just use the bit length of the order
  217|       |         * converted to bytes (rounding up).
  218|       |         *
  219|       |         * For preallocating the BIGNUM storage we look at the number of "words"
  220|       |         * required for the internal representation of the order, and we
  221|       |         * preallocate 2 extra "words" in case any of the subsequent processing
  222|       |         * might temporarily overflow the order length.
  223|       |         */
  224|      0|        ecbits = EC_GROUP_order_bits(ecg);
  225|      0|        if (ecbits <= 0)
  ------------------
  |  Branch (225:13): [True: 0, False: 0]
  ------------------
  226|      0|            goto err;
  227|      0|        sz = (ecbits + 7) / 8;
  228|       |
  229|      0|        if (!ossl_param_build_set_bn_pad(tmpl, params,
  ------------------
  |  Branch (229:13): [True: 0, False: 0]
  ------------------
  230|      0|                OSSL_PKEY_PARAM_PRIV_KEY,
  ------------------
  |  |  439|      0|# define OSSL_PKEY_PARAM_PRIV_KEY "priv"
  ------------------
  231|      0|                priv_key, sz))
  232|      0|            goto err;
  233|      0|    }
  234|  8.76k|    ret = 1;
  235|  8.76k|err:
  236|  8.76k|    BN_CTX_free(bnctx);
  237|  8.76k|    return ret;
  238|  8.76k|}
ec_kmgmt.c:otherparams_to_params:
  242|  8.76k|{
  243|  8.76k|    int ecdh_cofactor_mode = 0, group_check = 0;
  244|  8.76k|    const char *name = NULL;
  245|  8.76k|    point_conversion_form_t format;
  246|       |
  247|  8.76k|    if (ec == NULL)
  ------------------
  |  Branch (247:9): [True: 0, False: 8.76k]
  ------------------
  248|      0|        return 0;
  249|       |
  250|  8.76k|    format = EC_KEY_get_conv_form(ec);
  251|  8.76k|    name = ossl_ec_pt_format_id2name((int)format);
  252|  8.76k|    if (name != NULL
  ------------------
  |  Branch (252:9): [True: 8.76k, False: 0]
  ------------------
  253|  8.76k|        && !ossl_param_build_set_utf8_string(tmpl, params,
  ------------------
  |  Branch (253:12): [True: 0, False: 8.76k]
  ------------------
  254|  8.76k|            OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT,
  ------------------
  |  |  394|  8.76k|# define OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT "point-format"
  ------------------
  255|  8.76k|            name))
  256|      0|        return 0;
  257|       |
  258|  8.76k|    group_check = EC_KEY_get_flags(ec) & EC_FLAG_CHECK_NAMED_GROUP_MASK;
  ------------------
  |  |  959|  8.76k|    (EC_FLAG_CHECK_NAMED_GROUP | EC_FLAG_CHECK_NAMED_GROUP_NIST)
  |  |  ------------------
  |  |  |  |  956|  8.76k|#define EC_FLAG_CHECK_NAMED_GROUP 0x2000
  |  |  ------------------
  |  |                   (EC_FLAG_CHECK_NAMED_GROUP | EC_FLAG_CHECK_NAMED_GROUP_NIST)
  |  |  ------------------
  |  |  |  |  957|  8.76k|#define EC_FLAG_CHECK_NAMED_GROUP_NIST 0x4000
  |  |  ------------------
  ------------------
  259|  8.76k|    name = ossl_ec_check_group_type_id2name(group_check);
  260|  8.76k|    if (name != NULL
  ------------------
  |  Branch (260:9): [True: 8.76k, False: 0]
  ------------------
  261|  8.76k|        && !ossl_param_build_set_utf8_string(tmpl, params,
  ------------------
  |  Branch (261:12): [True: 0, False: 8.76k]
  ------------------
  262|  8.76k|            OSSL_PKEY_PARAM_EC_GROUP_CHECK_TYPE,
  ------------------
  |  |  390|  8.76k|# define OSSL_PKEY_PARAM_EC_GROUP_CHECK_TYPE "group-check"
  ------------------
  263|  8.76k|            name))
  264|      0|        return 0;
  265|       |
  266|  8.76k|    if ((EC_KEY_get_enc_flags(ec) & EC_PKEY_NO_PUBKEY) != 0
  ------------------
  |  |  951|  8.76k|#define EC_PKEY_NO_PUBKEY 0x002
  ------------------
  |  Branch (266:9): [True: 0, False: 8.76k]
  ------------------
  267|      0|        && !ossl_param_build_set_int(tmpl, params,
  ------------------
  |  Branch (267:12): [True: 0, False: 0]
  ------------------
  268|      0|            OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC, 0))
  ------------------
  |  |  391|      0|# define OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC "include-public"
  ------------------
  269|      0|        return 0;
  270|       |
  271|  8.76k|    ecdh_cofactor_mode = (EC_KEY_get_flags(ec) & EC_FLAG_COFACTOR_ECDH) ? 1 : 0;
  ------------------
  |  |  955|  8.76k|#define EC_FLAG_COFACTOR_ECDH 0x1000
  ------------------
  |  Branch (271:26): [True: 0, False: 8.76k]
  ------------------
  272|  8.76k|    return ossl_param_build_set_int(tmpl, params,
  273|  8.76k|        OSSL_PKEY_PARAM_USE_COFACTOR_ECDH,
  ------------------
  |  |  498|  8.76k|# define OSSL_PKEY_PARAM_USE_COFACTOR_ECDH OSSL_PKEY_PARAM_USE_COFACTOR_FLAG
  |  |  ------------------
  |  |  |  |  499|  8.76k|# define OSSL_PKEY_PARAM_USE_COFACTOR_FLAG "use-cofactor-flag"
  |  |  ------------------
  ------------------
  274|  8.76k|        ecdh_cofactor_mode);
  275|  8.76k|}

ecx_kmgmt.c:x25519_get_params:
  803|    876|{
  804|    876|    return ecx_get_params(key, params, X25519_BITS, X25519_SECURITY_BITS,
  ------------------
  |  |   33|    876|#define X25519_BITS 253
  ------------------
                  return ecx_get_params(key, params, X25519_BITS, X25519_SECURITY_BITS,
  ------------------
  |  |   34|    876|#define X25519_SECURITY_BITS 128
  ------------------
  805|    876|        X25519_KEYLEN);
  ------------------
  |  |   26|    876|#define X25519_KEYLEN 32
  ------------------
  806|    876|}
ecx_kmgmt.c:ecx_get_params:
  766|    876|{
  767|    876|    ECX_KEY *ecx = key;
  768|    876|    struct ecx_ed_common_get_params_st p;
  769|       |
  770|    876|    if (key == NULL || !ecx_get_params_decoder(params, &p))
  ------------------
  |  Branch (770:9): [True: 0, False: 876]
  |  Branch (770:24): [True: 0, False: 876]
  ------------------
  771|      0|        return 0;
  772|       |
  773|    876|    if (p.encpub != NULL
  ------------------
  |  Branch (773:9): [True: 438, False: 438]
  ------------------
  774|    438|        && !OSSL_PARAM_set_octet_string(p.encpub, ecx->pubkey, ecx->keylen))
  ------------------
  |  Branch (774:12): [True: 0, False: 438]
  ------------------
  775|      0|        return 0;
  776|       |#ifdef FIPS_MODULE
  777|       |    {
  778|       |        /* Currently X25519 and X448 are not approved */
  779|       |        int approved = 0;
  780|       |
  781|       |        if (p.ind != NULL && !OSSL_PARAM_set_int(p.ind, approved))
  782|       |            return 0;
  783|       |    }
  784|       |#endif
  785|       |
  786|    876|    return ecx_ed_common_get_params(key, &p, bits, secbits, size);
  787|    876|}
ecx_kmgmt.c:ecx_get_params_decoder:
  406|    876|{
  407|    876|    const char *s;
  408|       |
  409|    876|    memset(r, 0, sizeof(*r));
  410|    876|    if (p != NULL)
  ------------------
  |  Branch (410:9): [True: 876, False: 0]
  ------------------
  411|  3.06k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (411:16): [True: 2.19k, False: 876]
  ------------------
  412|  2.19k|            switch(s[0]) {
  413|      0|            default:
  ------------------
  |  Branch (413:13): [True: 0, False: 2.19k]
  ------------------
  414|      0|                break;
  415|    438|            case 'b':
  ------------------
  |  Branch (415:13): [True: 438, False: 1.75k]
  ------------------
  416|    438|                if (ossl_likely(strcmp("its", s + 1) == 0)) {
  ------------------
  |  |   22|    438|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  417|       |                    /* OSSL_PKEY_PARAM_BITS */
  418|    438|                    if (ossl_unlikely(r->bits != NULL)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  419|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  420|      0|                                       "param %s is repeated", s);
  421|      0|                        return 0;
  422|      0|                    }
  423|    438|                    r->bits = (OSSL_PARAM *)p;
  424|    438|                }
  425|    438|                break;
  426|    438|            case 'e':
  ------------------
  |  Branch (426:13): [True: 438, False: 1.75k]
  ------------------
  427|    438|                if (ossl_likely(strcmp("ncoded-pub-key", s + 1) == 0)) {
  ------------------
  |  |   22|    438|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  428|       |                    /* OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY */
  429|    438|                    if (ossl_unlikely(r->encpub != NULL)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  430|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  431|      0|                                       "param %s is repeated", s);
  432|      0|                        return 0;
  433|      0|                    }
  434|    438|                    r->encpub = (OSSL_PARAM *)p;
  435|    438|                }
  436|    438|                break;
  437|    438|            case 'f':
  ------------------
  |  Branch (437:13): [True: 0, False: 2.19k]
  ------------------
  438|       |# if defined(FIPS_MODULE)
  439|       |                if (ossl_likely(strcmp("ips-indicator", s + 1) == 0)) {
  440|       |                    /* OSSL_PKEY_PARAM_FIPS_APPROVED_INDICATOR */
  441|       |                    if (ossl_unlikely(r->ind != NULL)) {
  442|       |                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  443|       |                                       "param %s is repeated", s);
  444|       |                        return 0;
  445|       |                    }
  446|       |                    r->ind = (OSSL_PARAM *)p;
  447|       |                }
  448|       |# endif
  449|      0|                break;
  450|    438|            case 'm':
  ------------------
  |  Branch (450:13): [True: 438, False: 1.75k]
  ------------------
  451|    438|                if (ossl_likely(strcmp("ax-size", s + 1) == 0)) {
  ------------------
  |  |   22|    438|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  452|       |                    /* OSSL_PKEY_PARAM_MAX_SIZE */
  453|    438|                    if (ossl_unlikely(r->size != NULL)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  454|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  455|      0|                                       "param %s is repeated", s);
  456|      0|                        return 0;
  457|      0|                    }
  458|    438|                    r->size = (OSSL_PARAM *)p;
  459|    438|                }
  460|    438|                break;
  461|    438|            case 'p':
  ------------------
  |  Branch (461:13): [True: 0, False: 2.19k]
  ------------------
  462|      0|                switch(s[1]) {
  463|      0|                default:
  ------------------
  |  Branch (463:17): [True: 0, False: 0]
  ------------------
  464|      0|                    break;
  465|      0|                case 'r':
  ------------------
  |  Branch (465:17): [True: 0, False: 0]
  ------------------
  466|      0|                    if (ossl_likely(strcmp("iv", s + 2) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  467|       |                        /* OSSL_PKEY_PARAM_PRIV_KEY */
  468|      0|                        if (ossl_unlikely(r->priv != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  469|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  470|      0|                                           "param %s is repeated", s);
  471|      0|                            return 0;
  472|      0|                        }
  473|      0|                        r->priv = (OSSL_PARAM *)p;
  474|      0|                    }
  475|      0|                    break;
  476|      0|                case 'u':
  ------------------
  |  Branch (476:17): [True: 0, False: 0]
  ------------------
  477|      0|                    if (ossl_likely(strcmp("b", s + 2) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  478|       |                        /* OSSL_PKEY_PARAM_PUB_KEY */
  479|      0|                        if (ossl_unlikely(r->pub != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  480|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  481|      0|                                           "param %s is repeated", s);
  482|      0|                            return 0;
  483|      0|                        }
  484|      0|                        r->pub = (OSSL_PARAM *)p;
  485|      0|                    }
  486|      0|                }
  487|      0|                break;
  488|    876|            case 's':
  ------------------
  |  Branch (488:13): [True: 876, False: 1.31k]
  ------------------
  489|    876|                switch(s[1]) {
  490|      0|                default:
  ------------------
  |  Branch (490:17): [True: 0, False: 876]
  ------------------
  491|      0|                    break;
  492|    876|                case 'e':
  ------------------
  |  Branch (492:17): [True: 876, False: 0]
  ------------------
  493|    876|                    switch(s[2]) {
  494|      0|                    default:
  ------------------
  |  Branch (494:21): [True: 0, False: 876]
  ------------------
  495|      0|                        break;
  496|    876|                    case 'c':
  ------------------
  |  Branch (496:21): [True: 876, False: 0]
  ------------------
  497|    876|                        switch(s[3]) {
  498|      0|                        default:
  ------------------
  |  Branch (498:25): [True: 0, False: 876]
  ------------------
  499|      0|                            break;
  500|    876|                        case 'u':
  ------------------
  |  Branch (500:25): [True: 876, False: 0]
  ------------------
  501|    876|                            switch(s[4]) {
  502|      0|                            default:
  ------------------
  |  Branch (502:29): [True: 0, False: 876]
  ------------------
  503|      0|                                break;
  504|    876|                            case 'r':
  ------------------
  |  Branch (504:29): [True: 876, False: 0]
  ------------------
  505|    876|                                switch(s[5]) {
  506|      0|                                default:
  ------------------
  |  Branch (506:33): [True: 0, False: 876]
  ------------------
  507|      0|                                    break;
  508|    876|                                case 'i':
  ------------------
  |  Branch (508:33): [True: 876, False: 0]
  ------------------
  509|    876|                                    switch(s[6]) {
  510|      0|                                    default:
  ------------------
  |  Branch (510:37): [True: 0, False: 876]
  ------------------
  511|      0|                                        break;
  512|    876|                                    case 't':
  ------------------
  |  Branch (512:37): [True: 876, False: 0]
  ------------------
  513|    876|                                        switch(s[7]) {
  514|      0|                                        default:
  ------------------
  |  Branch (514:41): [True: 0, False: 876]
  ------------------
  515|      0|                                            break;
  516|    876|                                        case 'y':
  ------------------
  |  Branch (516:41): [True: 876, False: 0]
  ------------------
  517|    876|                                            switch(s[8]) {
  518|      0|                                            default:
  ------------------
  |  Branch (518:45): [True: 0, False: 876]
  ------------------
  519|      0|                                                break;
  520|    876|                                            case '-':
  ------------------
  |  Branch (520:45): [True: 876, False: 0]
  ------------------
  521|    876|                                                switch(s[9]) {
  522|      0|                                                default:
  ------------------
  |  Branch (522:49): [True: 0, False: 876]
  ------------------
  523|      0|                                                    break;
  524|    438|                                                case 'b':
  ------------------
  |  Branch (524:49): [True: 438, False: 438]
  ------------------
  525|    438|                                                    if (ossl_likely(strcmp("its", s + 10) == 0)) {
  ------------------
  |  |   22|    438|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  526|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_BITS */
  527|    438|                                                        if (ossl_unlikely(r->secbits != NULL)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  528|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  529|      0|                                                                           "param %s is repeated", s);
  530|      0|                                                            return 0;
  531|      0|                                                        }
  532|    438|                                                        r->secbits = (OSSL_PARAM *)p;
  533|    438|                                                    }
  534|    438|                                                    break;
  535|    438|                                                case 'c':
  ------------------
  |  Branch (535:49): [True: 438, False: 438]
  ------------------
  536|    438|                                                    if (ossl_likely(strcmp("ategory", s + 10) == 0)) {
  ------------------
  |  |   22|    438|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  537|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_CATEGORY */
  538|    438|                                                        if (ossl_unlikely(r->seccat != NULL)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  539|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  540|      0|                                                                           "param %s is repeated", s);
  541|      0|                                                            return 0;
  542|      0|                                                        }
  543|    438|                                                        r->seccat = (OSSL_PARAM *)p;
  544|    438|                                                    }
  545|    876|                                                }
  546|    876|                                            }
  547|    876|                                        }
  548|    876|                                    }
  549|    876|                                }
  550|    876|                            }
  551|    876|                        }
  552|    876|                    }
  553|    876|                }
  554|  2.19k|            }
  555|    876|    return 1;
  556|    876|}
ecx_kmgmt.c:ecx_ed_common_get_params:
  749|    876|{
  750|    876|    ECX_KEY *ecx = key;
  751|       |
  752|    876|    if (p->bits != NULL && !OSSL_PARAM_set_int(p->bits, bits))
  ------------------
  |  Branch (752:9): [True: 438, False: 438]
  |  Branch (752:28): [True: 0, False: 438]
  ------------------
  753|      0|        return 0;
  754|    876|    if (p->secbits != NULL && !OSSL_PARAM_set_int(p->secbits, secbits))
  ------------------
  |  Branch (754:9): [True: 438, False: 438]
  |  Branch (754:31): [True: 0, False: 438]
  ------------------
  755|      0|        return 0;
  756|    876|    if (p->size != NULL && !OSSL_PARAM_set_int(p->size, size))
  ------------------
  |  Branch (756:9): [True: 438, False: 438]
  |  Branch (756:28): [True: 0, False: 438]
  ------------------
  757|      0|        return 0;
  758|    876|    if (p->seccat != NULL && !OSSL_PARAM_set_int(p->seccat, 0))
  ------------------
  |  Branch (758:9): [True: 438, False: 438]
  |  Branch (758:30): [True: 0, False: 438]
  ------------------
  759|      0|        return 0;
  760|    876|    return key_to_params(ecx, NULL, p->pub, p->priv, 1);
  761|    876|}
ecx_kmgmt.c:key_to_params:
  294|  1.09k|{
  295|  1.09k|    if (key == NULL)
  ------------------
  |  Branch (295:9): [True: 0, False: 1.09k]
  ------------------
  296|      0|        return 0;
  297|       |
  298|  1.09k|    if (!ossl_param_build_set_octet_string(tmpl, pub,
  ------------------
  |  Branch (298:9): [True: 0, False: 1.09k]
  ------------------
  299|  1.09k|            OSSL_PKEY_PARAM_PUB_KEY,
  ------------------
  |  |  441|  1.09k|# define OSSL_PKEY_PARAM_PUB_KEY "pub"
  ------------------
  300|  1.09k|            key->pubkey, key->keylen))
  301|      0|        return 0;
  302|       |
  303|  1.09k|    if (include_private
  ------------------
  |  Branch (303:9): [True: 876, False: 219]
  ------------------
  304|    876|        && key->privkey != NULL
  ------------------
  |  Branch (304:12): [True: 876, False: 0]
  ------------------
  305|    876|        && !ossl_param_build_set_octet_string(tmpl, priv,
  ------------------
  |  Branch (305:12): [True: 0, False: 876]
  ------------------
  306|    876|            OSSL_PKEY_PARAM_PRIV_KEY,
  ------------------
  |  |  439|    876|# define OSSL_PKEY_PARAM_PRIV_KEY "priv"
  ------------------
  307|    876|            key->privkey, key->keylen))
  308|      0|        return 0;
  309|       |
  310|  1.09k|    return 1;
  311|  1.09k|}
ecx_kmgmt.c:ecx_export:
  315|    219|{
  316|    219|    ECX_KEY *key = keydata;
  317|    219|    OSSL_PARAM_BLD *tmpl;
  318|    219|    OSSL_PARAM *params = NULL;
  319|    219|    int ret = 0;
  320|       |
  321|    219|    if (!ossl_prov_is_running() || key == NULL)
  ------------------
  |  Branch (321:9): [True: 0, False: 219]
  |  Branch (321:36): [True: 0, False: 219]
  ------------------
  322|      0|        return 0;
  323|       |
  324|    219|    if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  650|    219|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (324:9): [True: 0, False: 219]
  ------------------
  325|      0|        return 0;
  326|       |
  327|    219|    tmpl = OSSL_PARAM_BLD_new();
  328|    219|    if (tmpl == NULL)
  ------------------
  |  Branch (328:9): [True: 0, False: 219]
  ------------------
  329|      0|        return 0;
  330|       |
  331|    219|    if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) {
  ------------------
  |  |  650|    219|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (331:9): [True: 219, False: 0]
  ------------------
  332|    219|        int include_private = ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0);
  ------------------
  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  333|       |
  334|    219|        if (!key_to_params(key, tmpl, NULL, NULL, include_private))
  ------------------
  |  Branch (334:13): [True: 0, False: 219]
  ------------------
  335|      0|            goto err;
  336|    219|    }
  337|       |
  338|    219|    params = OSSL_PARAM_BLD_to_param(tmpl);
  339|    219|    if (params == NULL)
  ------------------
  |  Branch (339:9): [True: 0, False: 219]
  ------------------
  340|      0|        goto err;
  341|       |
  342|    219|    ret = param_cb(params, cbarg);
  343|    219|    OSSL_PARAM_free(params);
  344|    219|err:
  345|    219|    OSSL_PARAM_BLD_free(tmpl);
  346|    219|    return ret;
  347|    219|}
ecx_kmgmt.c:x25519_gen_init:
 1021|    438|{
 1022|    438|    return ecx_gen_init(provctx, selection, params, ECX_KEY_TYPE_X25519, "X25519");
 1023|    438|}
ecx_kmgmt.c:ecx_gen_init:
  990|    438|{
  991|    438|    OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(provctx);
  ------------------
  |  |   31|    438|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  992|    438|    struct ecx_gen_ctx *gctx = NULL;
  993|       |
  994|    438|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (994:9): [True: 0, False: 438]
  ------------------
  995|      0|        return NULL;
  996|       |
  997|    438|    if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) {
  ------------------
  |  |  108|    438|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (997:9): [True: 438, False: 0]
  ------------------
  998|    438|        gctx->libctx = libctx;
  999|    438|        gctx->type = type;
 1000|    438|        gctx->selection = selection;
 1001|       |#ifdef FIPS_MODULE
 1002|       |        /* X25519/X448 are not FIPS approved, (ED25519/ED448 are approved) */
 1003|       |        if (algdesc != NULL
 1004|       |            && !ossl_FIPS_IND_callback(libctx, algdesc, "KeyGen Init")) {
 1005|       |            OPENSSL_free(gctx);
 1006|       |            return NULL;
 1007|       |        }
 1008|       |#endif
 1009|    438|    } else {
 1010|      0|        return NULL;
 1011|      0|    }
 1012|    438|    if (!ecx_gen_set_params(gctx, params)) {
  ------------------
  |  Branch (1012:9): [True: 0, False: 438]
  ------------------
 1013|      0|        ecx_gen_cleanup(gctx);
 1014|       |        gctx = NULL;
 1015|      0|    }
 1016|    438|    return gctx;
 1017|    438|}
ecx_kmgmt.c:ecx_gen_set_params:
 1114|    876|{
 1115|    876|    struct ecx_gen_ctx *gctx = genctx;
 1116|    876|    struct ecx_gen_set_params_st p;
 1117|       |
 1118|    876|    if (gctx == NULL || !ecx_gen_set_params_decoder(params, &p))
  ------------------
  |  Branch (1118:9): [True: 0, False: 876]
  |  Branch (1118:25): [True: 0, False: 876]
  ------------------
 1119|      0|        return 0;
 1120|       |
 1121|    876|    if (p.group != NULL) {
  ------------------
  |  Branch (1121:9): [True: 219, False: 657]
  ------------------
 1122|    219|        const char *groupname = NULL;
 1123|       |
 1124|       |        /*
 1125|       |         * We optionally allow setting a group name - but each algorithm only
 1126|       |         * support one such name, so all we do is verify that it is the one we
 1127|       |         * expected.
 1128|       |         */
 1129|    219|        switch (gctx->type) {
 1130|    219|        case ECX_KEY_TYPE_X25519:
  ------------------
  |  Branch (1130:9): [True: 219, False: 0]
  ------------------
 1131|    219|            groupname = "x25519";
 1132|    219|            break;
 1133|      0|        case ECX_KEY_TYPE_X448:
  ------------------
  |  Branch (1133:9): [True: 0, False: 219]
  ------------------
 1134|      0|            groupname = "x448";
 1135|      0|            break;
 1136|      0|        default:
  ------------------
  |  Branch (1136:9): [True: 0, False: 219]
  ------------------
 1137|       |            /* We only support this for key exchange at the moment */
 1138|      0|            break;
 1139|    219|        }
 1140|    219|        if (p.group->data_type != OSSL_PARAM_UTF8_STRING
  ------------------
  |  |  117|    438|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1140:13): [True: 0, False: 219]
  ------------------
 1141|    219|            || groupname == NULL
  ------------------
  |  Branch (1141:16): [True: 0, False: 219]
  ------------------
 1142|    219|            || OPENSSL_strcasecmp(p.group->data, groupname) != 0) {
  ------------------
  |  Branch (1142:16): [True: 0, False: 219]
  ------------------
 1143|      0|            ERR_raise(ERR_LIB_PROV, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1144|      0|            return 0;
 1145|      0|        }
 1146|    219|    }
 1147|       |
 1148|    876|    if (p.kdfpropq != NULL) {
  ------------------
  |  Branch (1148:9): [True: 0, False: 876]
  ------------------
 1149|      0|        if (p.kdfpropq->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1149:13): [True: 0, False: 0]
  ------------------
 1150|      0|            return 0;
 1151|      0|        OPENSSL_free(gctx->propq);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1152|      0|        gctx->propq = OPENSSL_strdup(p.kdfpropq->data);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1153|      0|        if (gctx->propq == NULL)
  ------------------
  |  Branch (1153:13): [True: 0, False: 0]
  ------------------
 1154|      0|            return 0;
 1155|      0|    }
 1156|       |
 1157|    876|    if (p.ikm != NULL) {
  ------------------
  |  Branch (1157:9): [True: 0, False: 876]
  ------------------
 1158|      0|        if (p.ikm->data_size != 0 && p.ikm->data != NULL) {
  ------------------
  |  Branch (1158:13): [True: 0, False: 0]
  |  Branch (1158:38): [True: 0, False: 0]
  ------------------
 1159|      0|            OPENSSL_free(gctx->dhkem_ikm);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1160|      0|            gctx->dhkem_ikm = NULL;
 1161|      0|            if (!OSSL_PARAM_get_octet_string(p.ikm, (void **)&gctx->dhkem_ikm, 0,
  ------------------
  |  Branch (1161:17): [True: 0, False: 0]
  ------------------
 1162|      0|                    &gctx->dhkem_ikmlen))
 1163|      0|                return 0;
 1164|      0|        }
 1165|      0|    }
 1166|       |
 1167|    876|    return 1;
 1168|    876|}
ecx_kmgmt.c:ecx_gen_set_params_decoder:
 1065|    876|{
 1066|    876|    const char *s;
 1067|       |
 1068|    876|    memset(r, 0, sizeof(*r));
 1069|    876|    if (p != NULL)
  ------------------
  |  Branch (1069:9): [True: 438, False: 438]
  ------------------
 1070|    657|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (1070:16): [True: 219, False: 438]
  ------------------
 1071|    219|            switch(s[0]) {
 1072|      0|            default:
  ------------------
  |  Branch (1072:13): [True: 0, False: 219]
  ------------------
 1073|      0|                break;
 1074|      0|            case 'd':
  ------------------
  |  Branch (1074:13): [True: 0, False: 219]
  ------------------
 1075|      0|                if (ossl_likely(strcmp("hkem-ikm", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1076|       |                    /* OSSL_PKEY_PARAM_DHKEM_IKM */
 1077|      0|                    if (ossl_unlikely(r->ikm != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1078|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1079|      0|                                       "param %s is repeated", s);
 1080|      0|                        return 0;
 1081|      0|                    }
 1082|      0|                    r->ikm = (OSSL_PARAM *)p;
 1083|      0|                }
 1084|      0|                break;
 1085|    219|            case 'g':
  ------------------
  |  Branch (1085:13): [True: 219, False: 0]
  ------------------
 1086|    219|                if (ossl_likely(strcmp("roup", s + 1) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
 1087|       |                    /* OSSL_PKEY_PARAM_GROUP_NAME */
 1088|    219|                    if (ossl_unlikely(r->group != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 1089|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1090|      0|                                       "param %s is repeated", s);
 1091|      0|                        return 0;
 1092|      0|                    }
 1093|    219|                    r->group = (OSSL_PARAM *)p;
 1094|    219|                }
 1095|    219|                break;
 1096|    219|            case 'p':
  ------------------
  |  Branch (1096:13): [True: 0, False: 219]
  ------------------
 1097|      0|                if (ossl_likely(strcmp("roperties", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1098|       |                    /* OSSL_KDF_PARAM_PROPERTIES */
 1099|      0|                    if (ossl_unlikely(r->kdfpropq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1100|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1101|      0|                                       "param %s is repeated", s);
 1102|      0|                        return 0;
 1103|      0|                    }
 1104|      0|                    r->kdfpropq = (OSSL_PARAM *)p;
 1105|      0|                }
 1106|    219|            }
 1107|    876|    return 1;
 1108|    876|}
ecx_kmgmt.c:x25519_gen:
 1311|    438|{
 1312|    438|    struct ecx_gen_ctx *gctx = genctx;
 1313|       |
 1314|    438|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (1314:9): [True: 0, False: 438]
  ------------------
 1315|      0|        return 0;
 1316|       |
 1317|       |#ifdef S390X_EC_ASM
 1318|       |    if (OPENSSL_s390xcap_P.pcc[1] & S390X_CAPBIT(S390X_SCALAR_MULTIPLY_X25519))
 1319|       |        return s390x_ecx_keygen25519(gctx);
 1320|       |#endif
 1321|    438|    return ecx_gen(gctx);
 1322|    438|}
ecx_kmgmt.c:ecx_gen:
 1245|    438|{
 1246|    438|    ECX_KEY *key;
 1247|    438|    unsigned char *privkey;
 1248|       |
 1249|    438|    if (gctx == NULL)
  ------------------
  |  Branch (1249:9): [True: 0, False: 438]
  ------------------
 1250|      0|        return NULL;
 1251|    438|    if ((key = ossl_ecx_key_new(gctx->libctx, gctx->type, 0,
  ------------------
  |  Branch (1251:9): [True: 0, False: 438]
  ------------------
 1252|    438|             gctx->propq))
 1253|    438|        == NULL) {
 1254|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1255|      0|        return NULL;
 1256|      0|    }
 1257|       |
 1258|       |    /* If we're doing parameter generation then we just return a blank key */
 1259|    438|    if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  650|    438|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    438|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    438|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (1259:9): [True: 0, False: 438]
  ------------------
 1260|      0|        return key;
 1261|       |
 1262|    438|    if ((privkey = ossl_ecx_key_allocate_privkey(key)) == NULL) {
  ------------------
  |  Branch (1262:9): [True: 0, False: 438]
  ------------------
 1263|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_EC_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1264|      0|        goto err;
 1265|      0|    }
 1266|    438|#ifndef FIPS_MODULE
 1267|    438|    if (gctx->dhkem_ikm != NULL && gctx->dhkem_ikmlen != 0) {
  ------------------
  |  Branch (1267:9): [True: 0, False: 438]
  |  Branch (1267:36): [True: 0, False: 0]
  ------------------
 1268|      0|        if (ecx_key_type_is_ed(gctx->type))
  ------------------
  |  Branch (1268:13): [True: 0, False: 0]
  ------------------
 1269|      0|            goto err;
 1270|      0|        if (!ossl_ecx_dhkem_derive_private(key, privkey,
  ------------------
  |  Branch (1270:13): [True: 0, False: 0]
  ------------------
 1271|      0|                gctx->dhkem_ikm, gctx->dhkem_ikmlen))
 1272|      0|            goto err;
 1273|      0|    } else
 1274|    438|#endif
 1275|    438|    {
 1276|    438|        if (RAND_priv_bytes_ex(gctx->libctx, privkey, key->keylen, 0) <= 0)
  ------------------
  |  Branch (1276:13): [True: 0, False: 438]
  ------------------
 1277|      0|            goto err;
 1278|    438|    }
 1279|       |
 1280|    438|    switch (gctx->type) {
  ------------------
  |  Branch (1280:13): [True: 438, False: 0]
  ------------------
 1281|    438|    case ECX_KEY_TYPE_X25519:
  ------------------
  |  Branch (1281:5): [True: 438, False: 0]
  ------------------
 1282|    438|        privkey[0] &= 248;
 1283|    438|        privkey[X25519_KEYLEN - 1] &= 127;
  ------------------
  |  |   26|    438|#define X25519_KEYLEN 32
  ------------------
 1284|    438|        privkey[X25519_KEYLEN - 1] |= 64;
  ------------------
  |  |   26|    438|#define X25519_KEYLEN 32
  ------------------
 1285|    438|        ossl_x25519_public_from_private(key->pubkey, privkey);
 1286|    438|        break;
 1287|      0|    case ECX_KEY_TYPE_X448:
  ------------------
  |  Branch (1287:5): [True: 0, False: 438]
  ------------------
 1288|      0|        privkey[0] &= 252;
 1289|      0|        privkey[X448_KEYLEN - 1] |= 128;
  ------------------
  |  |   27|      0|#define X448_KEYLEN 56
  ------------------
 1290|      0|        ossl_x448_public_from_private(key->pubkey, privkey);
 1291|      0|        break;
 1292|      0|    case ECX_KEY_TYPE_ED25519:
  ------------------
  |  Branch (1292:5): [True: 0, False: 438]
  ------------------
 1293|      0|        if (!ossl_ed25519_public_from_private(gctx->libctx, key->pubkey, privkey,
  ------------------
  |  Branch (1293:13): [True: 0, False: 0]
  ------------------
 1294|      0|                gctx->propq))
 1295|      0|            goto err;
 1296|      0|        break;
 1297|      0|    case ECX_KEY_TYPE_ED448:
  ------------------
  |  Branch (1297:5): [True: 0, False: 438]
  ------------------
 1298|      0|        if (!ossl_ed448_public_from_private(gctx->libctx, key->pubkey, privkey,
  ------------------
  |  Branch (1298:13): [True: 0, False: 0]
  ------------------
 1299|      0|                gctx->propq))
 1300|      0|            goto err;
 1301|      0|        break;
 1302|    438|    }
 1303|    438|    key->haspubkey = 1;
 1304|    438|    return key;
 1305|      0|err:
 1306|      0|    ossl_ecx_key_free(key);
 1307|       |    return NULL;
 1308|    438|}
ecx_kmgmt.c:ecx_gen_cleanup:
 1406|    438|{
 1407|    438|    struct ecx_gen_ctx *gctx = genctx;
 1408|       |
 1409|    438|    if (gctx == NULL)
  ------------------
  |  Branch (1409:9): [True: 0, False: 438]
  ------------------
 1410|      0|        return;
 1411|       |
 1412|    438|    OPENSSL_clear_free(gctx->dhkem_ikm, gctx->dhkem_ikmlen);
  ------------------
  |  |  129|    438|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1413|    438|    OPENSSL_free(gctx->propq);
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1414|    438|    OPENSSL_free(gctx);
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1415|    438|}

ossl_prov_ml_kem_new:
  161|    219|{
  162|    219|    ML_KEM_KEY *key;
  163|       |
  164|    219|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (164:9): [True: 0, False: 219]
  ------------------
  165|      0|        return NULL;
  166|       |    /*
  167|       |     * When decoding, if the key ends up "loaded" into the same provider, these
  168|       |     * are the correct config settings, otherwise, new values will be assigned
  169|       |     * on import into a different provider.  The "load" API does not pass along
  170|       |     * the provider context.
  171|       |     */
  172|    219|    if ((key = ossl_ml_kem_key_new(PROV_LIBCTX_OF(ctx), propq, evp_type)) != NULL) {
  ------------------
  |  |   31|    219|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  |  Branch (172:9): [True: 219, False: 0]
  ------------------
  173|    219|        const char *pct_type = ossl_prov_ctx_get_param(
  174|    219|            ctx, OSSL_PKEY_PARAM_ML_KEM_IMPORT_PCT_TYPE, "random");
  ------------------
  |  |  432|    219|# define OSSL_PKEY_PARAM_ML_KEM_IMPORT_PCT_TYPE "ml-kem.import_pct_type"
  ------------------
  175|       |
  176|    219|        if (ossl_prov_ctx_get_bool_param(
  ------------------
  |  Branch (176:13): [True: 219, False: 0]
  ------------------
  177|    219|                ctx, OSSL_PKEY_PARAM_ML_KEM_RETAIN_SEED, 1))
  ------------------
  |  |  436|    219|# define OSSL_PKEY_PARAM_ML_KEM_RETAIN_SEED "ml-kem.retain_seed"
  ------------------
  178|    219|            key->prov_flags |= ML_KEM_KEY_RETAIN_SEED;
  ------------------
  |  |  126|    219|#define ML_KEM_KEY_RETAIN_SEED (1 << 3)
  ------------------
  179|      0|        else
  180|      0|            key->prov_flags &= ~ML_KEM_KEY_RETAIN_SEED;
  ------------------
  |  |  126|      0|#define ML_KEM_KEY_RETAIN_SEED (1 << 3)
  ------------------
  181|    219|        if (ossl_prov_ctx_get_bool_param(
  ------------------
  |  Branch (181:13): [True: 219, False: 0]
  ------------------
  182|    219|                ctx, OSSL_PKEY_PARAM_ML_KEM_PREFER_SEED, 1))
  ------------------
  |  |  435|    219|# define OSSL_PKEY_PARAM_ML_KEM_PREFER_SEED "ml-kem.prefer_seed"
  ------------------
  183|    219|            key->prov_flags |= ML_KEM_KEY_PREFER_SEED;
  ------------------
  |  |  125|    219|#define ML_KEM_KEY_PREFER_SEED (1 << 2)
  ------------------
  184|      0|        else
  185|      0|            key->prov_flags &= ~ML_KEM_KEY_PREFER_SEED;
  ------------------
  |  |  125|      0|#define ML_KEM_KEY_PREFER_SEED (1 << 2)
  ------------------
  186|    219|        if (OPENSSL_strcasecmp(pct_type, "random") == 0)
  ------------------
  |  Branch (186:13): [True: 219, False: 0]
  ------------------
  187|    219|            key->prov_flags |= ML_KEM_KEY_RANDOM_PCT;
  ------------------
  |  |  123|    219|#define ML_KEM_KEY_RANDOM_PCT (1 << 0)
  ------------------
  188|      0|        else if (OPENSSL_strcasecmp(pct_type, "fixed") == 0)
  ------------------
  |  Branch (188:18): [True: 0, False: 0]
  ------------------
  189|      0|            key->prov_flags |= ML_KEM_KEY_FIXED_PCT;
  ------------------
  |  |  124|      0|#define ML_KEM_KEY_FIXED_PCT (1 << 1)
  ------------------
  190|      0|        else
  191|      0|            key->prov_flags &= ~ML_KEM_KEY_PCT_TYPE;
  ------------------
  |  |  129|      0|    (ML_KEM_KEY_RANDOM_PCT | ML_KEM_KEY_FIXED_PCT)
  |  |  ------------------
  |  |  |  |  123|      0|#define ML_KEM_KEY_RANDOM_PCT (1 << 0)
  |  |  ------------------
  |  |                   (ML_KEM_KEY_RANDOM_PCT | ML_KEM_KEY_FIXED_PCT)
  |  |  ------------------
  |  |  |  |  124|      0|#define ML_KEM_KEY_FIXED_PCT (1 << 1)
  |  |  ------------------
  ------------------
  192|    219|    }
  193|    219|    return key;
  194|    219|}
ml_kem_kmgmt.c:ml_kem_get_params:
  847|    219|{
  848|    219|    ML_KEM_KEY *key = vkey;
  849|    219|    const ML_KEM_VINFO *v;
  850|    219|    struct ml_kem_get_params_st p;
  851|       |
  852|    219|    if (key == NULL || !ml_kem_get_params_decoder(params, &p))
  ------------------
  |  Branch (852:9): [True: 0, False: 219]
  |  Branch (852:24): [True: 0, False: 219]
  ------------------
  853|      0|        return 0;
  854|       |
  855|    219|    v = ossl_ml_kem_key_vinfo(key);
  ------------------
  |  |  206|    219|#define ossl_ml_kem_key_vinfo(key) ((key)->vinfo)
  ------------------
  856|       |
  857|    219|    if (p.bits != NULL && !OSSL_PARAM_set_size_t(p.bits, v->bits))
  ------------------
  |  Branch (857:9): [True: 219, False: 0]
  |  Branch (857:27): [True: 0, False: 219]
  ------------------
  858|      0|        return 0;
  859|       |
  860|    219|    if (p.secbits != NULL && !OSSL_PARAM_set_size_t(p.secbits, v->secbits))
  ------------------
  |  Branch (860:9): [True: 219, False: 0]
  |  Branch (860:30): [True: 0, False: 219]
  ------------------
  861|      0|        return 0;
  862|       |
  863|    219|    if (p.maxsize != NULL && !OSSL_PARAM_set_size_t(p.maxsize, v->ctext_bytes))
  ------------------
  |  Branch (863:9): [True: 219, False: 0]
  |  Branch (863:30): [True: 0, False: 219]
  ------------------
  864|      0|        return 0;
  865|       |
  866|    219|    if (p.seccat != NULL && !OSSL_PARAM_set_int(p.seccat, v->security_category))
  ------------------
  |  Branch (866:9): [True: 219, False: 0]
  |  Branch (866:29): [True: 0, False: 219]
  ------------------
  867|      0|        return 0;
  868|       |
  869|    219|    if (p.pubkey != NULL && ossl_ml_kem_have_pubkey(key)) {
  ------------------
  |  |  207|      0|#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
  |  |  ------------------
  |  |  |  Branch (207:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (869:9): [True: 0, False: 219]
  ------------------
  870|       |        /* Exported to EVP_PKEY_get_raw_public_key() */
  871|      0|        if (!ml_kem_get_key_param(key, p.pubkey, v->pubkey_bytes,
  ------------------
  |  Branch (871:13): [True: 0, False: 0]
  ------------------
  872|      0|                &ossl_ml_kem_encode_public_key))
  873|      0|            return 0;
  874|      0|    }
  875|       |
  876|    219|    if (p.encpubkey != NULL && ossl_ml_kem_have_pubkey(key)) {
  ------------------
  |  |  207|      0|#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
  |  |  ------------------
  |  |  |  Branch (207:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (876:9): [True: 0, False: 219]
  ------------------
  877|       |        /* Needed by EVP_PKEY_get1_encoded_public_key() */
  878|      0|        if (!ml_kem_get_key_param(key, p.encpubkey, v->pubkey_bytes,
  ------------------
  |  Branch (878:13): [True: 0, False: 0]
  ------------------
  879|      0|                &ossl_ml_kem_encode_public_key))
  880|      0|            return 0;
  881|      0|    }
  882|       |
  883|    219|    if (p.privkey != NULL && ossl_ml_kem_have_prvkey(key)) {
  ------------------
  |  |  208|      0|#define ossl_ml_kem_have_prvkey(key) ((key)->s != NULL)
  |  |  ------------------
  |  |  |  Branch (208:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (883:9): [True: 0, False: 219]
  ------------------
  884|       |        /* Exported to EVP_PKEY_get_raw_private_key() */
  885|      0|        if (!ml_kem_get_key_param(key, p.privkey, v->prvkey_bytes,
  ------------------
  |  Branch (885:13): [True: 0, False: 0]
  ------------------
  886|      0|                &ossl_ml_kem_encode_private_key))
  887|      0|            return 0;
  888|      0|    }
  889|       |
  890|    219|    if (p.seed != NULL && ossl_ml_kem_have_seed(key)) {
  ------------------
  |  |  209|      0|#define ossl_ml_kem_have_seed(key) ((key)->d != NULL)
  |  |  ------------------
  |  |  |  Branch (209:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (890:9): [True: 0, False: 219]
  ------------------
  891|       |        /* Exported for import */
  892|      0|        if (!ml_kem_get_key_param(key, p.seed, ML_KEM_SEED_BYTES,
  ------------------
  |  |   48|      0|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|      0|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
  |  Branch (892:13): [True: 0, False: 0]
  ------------------
  893|      0|                &ossl_ml_kem_encode_seed))
  894|      0|            return 0;
  895|      0|    }
  896|       |
  897|    219|#ifndef OPENSSL_NO_CMS
  898|    219|    if (p.ri_type != NULL && !OSSL_PARAM_set_int(p.ri_type, CMS_RECIPINFO_KEM))
  ------------------
  |  |  175|      0|#define CMS_RECIPINFO_KEM 5
  ------------------
  |  Branch (898:9): [True: 0, False: 219]
  |  Branch (898:30): [True: 0, False: 0]
  ------------------
  899|      0|        return 0;
  900|       |
  901|    219|    if (p.kemri_kdf_alg != NULL) {
  ------------------
  |  Branch (901:9): [True: 0, False: 219]
  ------------------
  902|      0|        uint8_t aid_buf[OSSL_MAX_ALGORITHM_ID_SIZE];
  903|      0|        int ret;
  904|      0|        size_t aid_len = 0;
  905|      0|        WPACKET pkt;
  906|      0|        uint8_t *aid = NULL;
  907|       |
  908|      0|        ret = WPACKET_init_der(&pkt, aid_buf, sizeof(aid_buf));
  909|      0|        ret &= ossl_DER_w_begin_sequence(&pkt, -1)
  ------------------
  |  Branch (909:16): [True: 0, False: 0]
  ------------------
  910|      0|            && ossl_DER_w_precompiled(&pkt, -1, ossl_der_oid_id_alg_hkdf_with_sha256,
  ------------------
  |  Branch (910:16): [True: 0, False: 0]
  ------------------
  911|      0|                sizeof(ossl_der_oid_id_alg_hkdf_with_sha256))
  912|      0|            && ossl_DER_w_end_sequence(&pkt, -1);
  ------------------
  |  Branch (912:16): [True: 0, False: 0]
  ------------------
  913|      0|        if (ret && WPACKET_finish(&pkt)) {
  ------------------
  |  Branch (913:13): [True: 0, False: 0]
  |  Branch (913:20): [True: 0, False: 0]
  ------------------
  914|      0|            WPACKET_get_total_written(&pkt, &aid_len);
  915|      0|            aid = WPACKET_get_curr(&pkt);
  916|      0|        }
  917|      0|        WPACKET_cleanup(&pkt);
  918|      0|        if (!ret)
  ------------------
  |  Branch (918:13): [True: 0, False: 0]
  ------------------
  919|      0|            return 0;
  920|      0|        if (aid != NULL && aid_len != 0 && !OSSL_PARAM_set_octet_string(p.kemri_kdf_alg, aid, aid_len))
  ------------------
  |  Branch (920:13): [True: 0, False: 0]
  |  Branch (920:28): [True: 0, False: 0]
  |  Branch (920:44): [True: 0, False: 0]
  ------------------
  921|      0|            return 0;
  922|      0|    }
  923|    219|#endif
  924|       |
  925|    219|    return 1;
  926|    219|}
ml_kem_kmgmt.c:ml_kem_get_params_decoder:
  600|    219|{
  601|    219|    const char *s;
  602|       |
  603|    219|    memset(r, 0, sizeof(*r));
  604|    219|    if (p != NULL)
  ------------------
  |  Branch (604:9): [True: 219, False: 0]
  ------------------
  605|  1.09k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (605:16): [True: 876, False: 219]
  ------------------
  606|    876|            switch(s[0]) {
  607|      0|            default:
  ------------------
  |  Branch (607:13): [True: 0, False: 876]
  ------------------
  608|      0|                break;
  609|    219|            case 'b':
  ------------------
  |  Branch (609:13): [True: 219, False: 657]
  ------------------
  610|    219|                if (ossl_likely(strcmp("its", s + 1) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  611|       |                    /* OSSL_PKEY_PARAM_BITS */
  612|    219|                    if (ossl_unlikely(r->bits != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  613|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  614|      0|                                       "param %s is repeated", s);
  615|      0|                        return 0;
  616|      0|                    }
  617|    219|                    r->bits = (OSSL_PARAM *)p;
  618|    219|                }
  619|    219|                break;
  620|    219|            case 'e':
  ------------------
  |  Branch (620:13): [True: 0, False: 876]
  ------------------
  621|      0|                if (ossl_likely(strcmp("ncoded-pub-key", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  622|       |                    /* OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY */
  623|      0|                    if (ossl_unlikely(r->encpubkey != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  624|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  625|      0|                                       "param %s is repeated", s);
  626|      0|                        return 0;
  627|      0|                    }
  628|      0|                    r->encpubkey = (OSSL_PARAM *)p;
  629|      0|                }
  630|      0|                break;
  631|      0|            case 'k':
  ------------------
  |  Branch (631:13): [True: 0, False: 876]
  ------------------
  632|      0|                if (ossl_likely(strcmp("emri-kdf-alg", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  633|       |                    /* OSSL_PKEY_PARAM_CMS_KEMRI_KDF_ALGORITHM */
  634|      0|                    if (ossl_unlikely(r->kemri_kdf_alg != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  635|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  636|      0|                                       "param %s is repeated", s);
  637|      0|                        return 0;
  638|      0|                    }
  639|      0|                    r->kemri_kdf_alg = (OSSL_PARAM *)p;
  640|      0|                }
  641|      0|                break;
  642|    219|            case 'm':
  ------------------
  |  Branch (642:13): [True: 219, False: 657]
  ------------------
  643|    219|                if (ossl_likely(strcmp("ax-size", s + 1) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  644|       |                    /* OSSL_PKEY_PARAM_MAX_SIZE */
  645|    219|                    if (ossl_unlikely(r->maxsize != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  646|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  647|      0|                                       "param %s is repeated", s);
  648|      0|                        return 0;
  649|      0|                    }
  650|    219|                    r->maxsize = (OSSL_PARAM *)p;
  651|    219|                }
  652|    219|                break;
  653|    219|            case 'p':
  ------------------
  |  Branch (653:13): [True: 0, False: 876]
  ------------------
  654|      0|                switch(s[1]) {
  655|      0|                default:
  ------------------
  |  Branch (655:17): [True: 0, False: 0]
  ------------------
  656|      0|                    break;
  657|      0|                case 'r':
  ------------------
  |  Branch (657:17): [True: 0, False: 0]
  ------------------
  658|      0|                    if (ossl_likely(strcmp("iv", s + 2) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  659|       |                        /* OSSL_PKEY_PARAM_PRIV_KEY */
  660|      0|                        if (ossl_unlikely(r->privkey != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  661|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  662|      0|                                           "param %s is repeated", s);
  663|      0|                            return 0;
  664|      0|                        }
  665|      0|                        r->privkey = (OSSL_PARAM *)p;
  666|      0|                    }
  667|      0|                    break;
  668|      0|                case 'u':
  ------------------
  |  Branch (668:17): [True: 0, False: 0]
  ------------------
  669|      0|                    if (ossl_likely(strcmp("b", s + 2) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  670|       |                        /* OSSL_PKEY_PARAM_PUB_KEY */
  671|      0|                        if (ossl_unlikely(r->pubkey != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  672|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  673|      0|                                           "param %s is repeated", s);
  674|      0|                            return 0;
  675|      0|                        }
  676|      0|                        r->pubkey = (OSSL_PARAM *)p;
  677|      0|                    }
  678|      0|                }
  679|      0|                break;
  680|      0|            case 'r':
  ------------------
  |  Branch (680:13): [True: 0, False: 876]
  ------------------
  681|      0|                if (ossl_likely(strcmp("i-type", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  682|       |                    /* OSSL_PKEY_PARAM_CMS_RI_TYPE */
  683|      0|                    if (ossl_unlikely(r->ri_type != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  684|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  685|      0|                                       "param %s is repeated", s);
  686|      0|                        return 0;
  687|      0|                    }
  688|      0|                    r->ri_type = (OSSL_PARAM *)p;
  689|      0|                }
  690|      0|                break;
  691|    438|            case 's':
  ------------------
  |  Branch (691:13): [True: 438, False: 438]
  ------------------
  692|    438|                switch(s[1]) {
  693|      0|                default:
  ------------------
  |  Branch (693:17): [True: 0, False: 438]
  ------------------
  694|      0|                    break;
  695|    438|                case 'e':
  ------------------
  |  Branch (695:17): [True: 438, False: 0]
  ------------------
  696|    438|                    switch(s[2]) {
  697|      0|                    default:
  ------------------
  |  Branch (697:21): [True: 0, False: 438]
  ------------------
  698|      0|                        break;
  699|    438|                    case 'c':
  ------------------
  |  Branch (699:21): [True: 438, False: 0]
  ------------------
  700|    438|                        switch(s[3]) {
  701|      0|                        default:
  ------------------
  |  Branch (701:25): [True: 0, False: 438]
  ------------------
  702|      0|                            break;
  703|    438|                        case 'u':
  ------------------
  |  Branch (703:25): [True: 438, False: 0]
  ------------------
  704|    438|                            switch(s[4]) {
  705|      0|                            default:
  ------------------
  |  Branch (705:29): [True: 0, False: 438]
  ------------------
  706|      0|                                break;
  707|    438|                            case 'r':
  ------------------
  |  Branch (707:29): [True: 438, False: 0]
  ------------------
  708|    438|                                switch(s[5]) {
  709|      0|                                default:
  ------------------
  |  Branch (709:33): [True: 0, False: 438]
  ------------------
  710|      0|                                    break;
  711|    438|                                case 'i':
  ------------------
  |  Branch (711:33): [True: 438, False: 0]
  ------------------
  712|    438|                                    switch(s[6]) {
  713|      0|                                    default:
  ------------------
  |  Branch (713:37): [True: 0, False: 438]
  ------------------
  714|      0|                                        break;
  715|    438|                                    case 't':
  ------------------
  |  Branch (715:37): [True: 438, False: 0]
  ------------------
  716|    438|                                        switch(s[7]) {
  717|      0|                                        default:
  ------------------
  |  Branch (717:41): [True: 0, False: 438]
  ------------------
  718|      0|                                            break;
  719|    438|                                        case 'y':
  ------------------
  |  Branch (719:41): [True: 438, False: 0]
  ------------------
  720|    438|                                            switch(s[8]) {
  721|      0|                                            default:
  ------------------
  |  Branch (721:45): [True: 0, False: 438]
  ------------------
  722|      0|                                                break;
  723|    438|                                            case '-':
  ------------------
  |  Branch (723:45): [True: 438, False: 0]
  ------------------
  724|    438|                                                switch(s[9]) {
  725|      0|                                                default:
  ------------------
  |  Branch (725:49): [True: 0, False: 438]
  ------------------
  726|      0|                                                    break;
  727|    219|                                                case 'b':
  ------------------
  |  Branch (727:49): [True: 219, False: 219]
  ------------------
  728|    219|                                                    if (ossl_likely(strcmp("its", s + 10) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  729|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_BITS */
  730|    219|                                                        if (ossl_unlikely(r->secbits != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  731|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  732|      0|                                                                           "param %s is repeated", s);
  733|      0|                                                            return 0;
  734|      0|                                                        }
  735|    219|                                                        r->secbits = (OSSL_PARAM *)p;
  736|    219|                                                    }
  737|    219|                                                    break;
  738|    219|                                                case 'c':
  ------------------
  |  Branch (738:49): [True: 219, False: 219]
  ------------------
  739|    219|                                                    if (ossl_likely(strcmp("ategory", s + 10) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  740|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_CATEGORY */
  741|    219|                                                        if (ossl_unlikely(r->seccat != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  742|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  743|      0|                                                                           "param %s is repeated", s);
  744|      0|                                                            return 0;
  745|      0|                                                        }
  746|    219|                                                        r->seccat = (OSSL_PARAM *)p;
  747|    219|                                                    }
  748|    438|                                                }
  749|    438|                                            }
  750|    438|                                        }
  751|    438|                                    }
  752|    438|                                }
  753|    438|                            }
  754|    438|                        }
  755|    438|                        break;
  756|    438|                    case 'e':
  ------------------
  |  Branch (756:21): [True: 0, False: 438]
  ------------------
  757|      0|                        if (ossl_likely(strcmp("d", s + 3) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  758|       |                            /* OSSL_PKEY_PARAM_ML_KEM_SEED */
  759|      0|                            if (ossl_unlikely(r->seed != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  760|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  761|      0|                                               "param %s is repeated", s);
  762|      0|                                return 0;
  763|      0|                            }
  764|      0|                            r->seed = (OSSL_PARAM *)p;
  765|      0|                        }
  766|    438|                    }
  767|    438|                }
  768|    876|            }
  769|    219|    return 1;
  770|    219|}
ml_kem_kmgmt.c:ml_kem_gen_init:
 1096|    219|{
 1097|    219|    PROV_ML_KEM_GEN_CTX *gctx = NULL;
 1098|       |
 1099|       |    /*
 1100|       |     * We can only generate private keys, check that the selection is
 1101|       |     * appropriate.
 1102|       |     */
 1103|    219|    if (!ossl_prov_is_running()
  ------------------
  |  Branch (1103:9): [True: 0, False: 219]
  ------------------
 1104|    219|        || (selection & minimal_selection) == 0
  ------------------
  |  Branch (1104:12): [True: 0, False: 219]
  ------------------
 1105|    219|        || (gctx = OPENSSL_zalloc(sizeof(*gctx))) == NULL)
  ------------------
  |  |  108|    219|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (1105:12): [True: 0, False: 219]
  ------------------
 1106|      0|        return NULL;
 1107|       |
 1108|    219|    gctx->selection = selection;
 1109|    219|    gctx->evp_type = evp_type;
 1110|    219|    gctx->provctx = provctx;
 1111|    219|    if (ml_kem_gen_set_params(gctx, params))
  ------------------
  |  Branch (1111:9): [True: 219, False: 0]
  ------------------
 1112|    219|        return gctx;
 1113|       |
 1114|      0|    ml_kem_gen_cleanup(gctx);
 1115|       |    return NULL;
 1116|    219|}
ml_kem_kmgmt.c:ml_kem_gen_set_params:
 1062|    438|{
 1063|    438|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
 1064|    438|    struct ml_kem_gen_set_params_st p;
 1065|       |
 1066|    438|    if (gctx == NULL || !ml_kem_gen_set_params_decoder(params, &p))
  ------------------
  |  Branch (1066:9): [True: 0, False: 438]
  |  Branch (1066:25): [True: 0, False: 438]
  ------------------
 1067|      0|        return 0;
 1068|       |
 1069|    438|    if (p.propq != NULL) {
  ------------------
  |  Branch (1069:9): [True: 0, False: 438]
  ------------------
 1070|      0|        if (p.propq->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1070:13): [True: 0, False: 0]
  ------------------
 1071|      0|            return 0;
 1072|      0|        OPENSSL_free(gctx->propq);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1073|      0|        if ((gctx->propq = OPENSSL_strdup(p.propq->data)) == NULL)
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (1073:13): [True: 0, False: 0]
  ------------------
 1074|      0|            return 0;
 1075|      0|    }
 1076|       |
 1077|    438|    if (p.seed != NULL) {
  ------------------
  |  Branch (1077:9): [True: 0, False: 438]
  ------------------
 1078|      0|        size_t len = ML_KEM_SEED_BYTES;
  ------------------
  |  |   48|      0|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|      0|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
 1079|       |
 1080|      0|        gctx->seed = gctx->seedbuf;
 1081|      0|        if (OSSL_PARAM_get_octet_string(p.seed, (void **)&gctx->seed, len, &len)
  ------------------
  |  Branch (1081:13): [True: 0, False: 0]
  ------------------
 1082|      0|            && len == ML_KEM_SEED_BYTES)
  ------------------
  |  |   48|      0|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|      0|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
  |  Branch (1082:16): [True: 0, False: 0]
  ------------------
 1083|      0|            return 1;
 1084|       |
 1085|       |        /* Possibly, but less likely wrong data type */
 1086|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_SEED_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1087|      0|        gctx->seed = NULL;
 1088|      0|        return 0;
 1089|      0|    }
 1090|       |
 1091|    438|    return 1;
 1092|    438|}
ml_kem_kmgmt.c:ml_kem_gen_set_params_decoder:
 1024|    438|{
 1025|    438|    const char *s;
 1026|       |
 1027|    438|    memset(r, 0, sizeof(*r));
 1028|    438|    if (p != NULL)
  ------------------
  |  Branch (1028:9): [True: 219, False: 219]
  ------------------
 1029|    219|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (1029:16): [True: 0, False: 219]
  ------------------
 1030|      0|            switch(s[0]) {
 1031|      0|            default:
  ------------------
  |  Branch (1031:13): [True: 0, False: 0]
  ------------------
 1032|      0|                break;
 1033|      0|            case 'p':
  ------------------
  |  Branch (1033:13): [True: 0, False: 0]
  ------------------
 1034|      0|                if (ossl_likely(strcmp("roperties", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1035|       |                    /* OSSL_PKEY_PARAM_PROPERTIES */
 1036|      0|                    if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1037|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1038|      0|                                       "param %s is repeated", s);
 1039|      0|                        return 0;
 1040|      0|                    }
 1041|      0|                    r->propq = (OSSL_PARAM *)p;
 1042|      0|                }
 1043|      0|                break;
 1044|      0|            case 's':
  ------------------
  |  Branch (1044:13): [True: 0, False: 0]
  ------------------
 1045|      0|                if (ossl_likely(strcmp("eed", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1046|       |                    /* OSSL_PKEY_PARAM_ML_DSA_SEED */
 1047|      0|                    if (ossl_unlikely(r->seed != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1048|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1049|      0|                                       "param %s is repeated", s);
 1050|      0|                        return 0;
 1051|      0|                    }
 1052|      0|                    r->seed = (OSSL_PARAM *)p;
 1053|      0|                }
 1054|      0|            }
 1055|    438|    return 1;
 1056|    438|}
ml_kem_kmgmt.c:ml_kem_gen:
 1125|    219|{
 1126|    219|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
 1127|    219|    ML_KEM_KEY *key;
 1128|    219|    uint8_t *nopub = NULL;
 1129|    219|    uint8_t *seed;
 1130|    219|    int genok = 0;
 1131|       |
 1132|    219|    if (gctx == NULL
  ------------------
  |  Branch (1132:9): [True: 0, False: 219]
  ------------------
 1133|    219|        || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  ------------------
  |  |  650|    219|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
                      || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  ------------------
  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (1133:12): [True: 0, False: 219]
  ------------------
 1134|      0|        return NULL;
 1135|    219|    seed = gctx->seed;
 1136|    219|    key = ossl_prov_ml_kem_new(gctx->provctx, gctx->propq, gctx->evp_type);
 1137|    219|    if (key == NULL)
  ------------------
  |  Branch (1137:9): [True: 0, False: 219]
  ------------------
 1138|      0|        return NULL;
 1139|       |
 1140|    219|    if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  650|    219|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (1140:9): [True: 0, False: 219]
  ------------------
 1141|      0|        return key;
 1142|       |
 1143|    219|    if (seed != NULL && !ossl_ml_kem_set_seed(seed, ML_KEM_SEED_BYTES, key))
  ------------------
  |  |   48|      0|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|      0|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
  |  Branch (1143:9): [True: 0, False: 219]
  |  Branch (1143:25): [True: 0, False: 0]
  ------------------
 1144|      0|        return NULL;
 1145|    219|    genok = ossl_ml_kem_genkey(nopub, 0, key);
 1146|       |
 1147|       |    /* Erase the single-use seed */
 1148|    219|    if (seed != NULL)
  ------------------
  |  Branch (1148:9): [True: 0, False: 219]
  ------------------
 1149|      0|        OPENSSL_cleanse(seed, ML_KEM_SEED_BYTES);
  ------------------
  |  |   48|      0|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|      0|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
 1150|    219|    gctx->seed = NULL;
 1151|       |
 1152|    219|    if (genok) {
  ------------------
  |  Branch (1152:9): [True: 219, False: 0]
  ------------------
 1153|       |#ifdef FIPS_MODULE
 1154|       |        if (!ml_kem_pairwise_test(key, ML_KEM_KEY_FIXED_PCT)) {
 1155|       |            ossl_set_error_state(OSSL_SELF_TEST_TYPE_PCT);
 1156|       |            ossl_ml_kem_key_free(key);
 1157|       |            return NULL;
 1158|       |        }
 1159|       |#endif /* FIPS_MODULE */
 1160|    219|        return key;
 1161|    219|    }
 1162|       |
 1163|      0|    ossl_ml_kem_key_free(key);
 1164|       |    return NULL;
 1165|    219|}
ml_kem_kmgmt.c:ml_kem_gen_cleanup:
 1168|    219|{
 1169|    219|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
 1170|       |
 1171|    219|    if (gctx == NULL)
  ------------------
  |  Branch (1171:9): [True: 0, False: 219]
  ------------------
 1172|      0|        return;
 1173|       |
 1174|    219|    if (gctx->seed != NULL)
  ------------------
  |  Branch (1174:9): [True: 0, False: 219]
  ------------------
 1175|      0|        OPENSSL_cleanse(gctx->seed, ML_KEM_SEED_BYTES);
  ------------------
  |  |   48|      0|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|      0|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
 1176|    219|    OPENSSL_free(gctx->propq);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1177|    219|    OPENSSL_free(gctx);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1178|    219|}
ml_kem_kmgmt.c:ml_kem_export:
  243|    219|{
  244|    219|    ML_KEM_KEY *key = vkey;
  245|    219|    OSSL_PARAM_BLD *tmpl = NULL;
  246|    219|    OSSL_PARAM *params = NULL;
  247|    219|    const ML_KEM_VINFO *v;
  248|    219|    uint8_t *pubenc = NULL, *prvenc = NULL, *seedenc = NULL;
  249|    219|    size_t prvlen = 0, seedlen = 0;
  250|    219|    int ret = 0;
  251|       |
  252|    219|    if (!ossl_prov_is_running() || key == NULL)
  ------------------
  |  Branch (252:9): [True: 0, False: 219]
  |  Branch (252:36): [True: 0, False: 219]
  ------------------
  253|      0|        return 0;
  254|       |
  255|    219|    if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  650|    219|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (255:9): [True: 0, False: 219]
  ------------------
  256|      0|        return 0;
  257|       |
  258|    219|    v = ossl_ml_kem_key_vinfo(key);
  ------------------
  |  |  206|    219|#define ossl_ml_kem_key_vinfo(key) ((key)->vinfo)
  ------------------
  259|    219|    if (!ossl_ml_kem_have_pubkey(key)) {
  ------------------
  |  |  207|    219|#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
  ------------------
  |  Branch (259:9): [True: 0, False: 219]
  ------------------
  260|       |        /* Fail when no key material can be returned */
  261|      0|        if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0
  ------------------
  |  |  640|      0|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (261:13): [True: 0, False: 0]
  ------------------
  262|      0|            || !ossl_ml_kem_decoded_key(key)) {
  ------------------
  |  |  211|      0|#define ossl_ml_kem_decoded_key(key) ((key)->encoded_dk != NULL \
  |  |  ------------------
  |  |  |  Branch (211:39): [True: 0, False: 0]
  |  |  ------------------
  |  |  212|      0|    || ((key)->s == NULL && (key)->d != NULL))
  |  |  ------------------
  |  |  |  Branch (212:9): [True: 0, False: 0]
  |  |  |  Branch (212:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  263|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_KEY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  264|      0|            return 0;
  265|      0|        }
  266|    219|    } else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
  ------------------
  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (266:16): [True: 219, False: 0]
  ------------------
  267|    219|        pubenc = OPENSSL_malloc(v->pubkey_bytes);
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  268|    219|        if (pubenc == NULL
  ------------------
  |  Branch (268:13): [True: 0, False: 219]
  ------------------
  269|    219|            || !ossl_ml_kem_encode_public_key(pubenc, v->pubkey_bytes, key))
  ------------------
  |  Branch (269:16): [True: 0, False: 219]
  ------------------
  270|      0|            goto err;
  271|    219|    }
  272|       |
  273|    219|    if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) {
  ------------------
  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (273:9): [True: 0, False: 219]
  ------------------
  274|       |        /*
  275|       |         * The seed and/or private key material are allocated on the secure
  276|       |         * heap if configured, ossl_param_build_set_octet_string(), will then
  277|       |         * also use the secure heap.
  278|       |         */
  279|      0|        if (ossl_ml_kem_have_seed(key)) {
  ------------------
  |  |  209|      0|#define ossl_ml_kem_have_seed(key) ((key)->d != NULL)
  |  |  ------------------
  |  |  |  Branch (209:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  280|      0|            seedlen = ML_KEM_SEED_BYTES;
  ------------------
  |  |   48|      0|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|      0|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
  281|      0|            if ((seedenc = OPENSSL_secure_zalloc(seedlen)) == NULL
  ------------------
  |  |  141|      0|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (281:17): [True: 0, False: 0]
  ------------------
  282|      0|                || !ossl_ml_kem_encode_seed(seedenc, seedlen, key))
  ------------------
  |  Branch (282:20): [True: 0, False: 0]
  ------------------
  283|      0|                goto err;
  284|      0|        }
  285|      0|        if (ossl_ml_kem_have_prvkey(key)) {
  ------------------
  |  |  208|      0|#define ossl_ml_kem_have_prvkey(key) ((key)->s != NULL)
  |  |  ------------------
  |  |  |  Branch (208:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  286|      0|            prvlen = v->prvkey_bytes;
  287|      0|            if ((prvenc = OPENSSL_secure_zalloc(prvlen)) == NULL
  ------------------
  |  |  141|      0|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (287:17): [True: 0, False: 0]
  ------------------
  288|      0|                || !ossl_ml_kem_encode_private_key(prvenc, prvlen, key))
  ------------------
  |  Branch (288:20): [True: 0, False: 0]
  ------------------
  289|      0|                goto err;
  290|      0|        } else if (ossl_ml_kem_have_dkenc(key)) {
  ------------------
  |  |  210|      0|#define ossl_ml_kem_have_dkenc(key) ((key)->encoded_dk != NULL)
  |  |  ------------------
  |  |  |  Branch (210:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  291|      0|            prvlen = v->prvkey_bytes;
  292|      0|            if ((prvenc = OPENSSL_secure_zalloc(prvlen)) == NULL)
  ------------------
  |  |  141|      0|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (292:17): [True: 0, False: 0]
  ------------------
  293|      0|                goto err;
  294|      0|            memcpy(prvenc, key->encoded_dk, prvlen);
  295|      0|        }
  296|      0|    }
  297|       |
  298|    219|    tmpl = OSSL_PARAM_BLD_new();
  299|    219|    if (tmpl == NULL)
  ------------------
  |  Branch (299:9): [True: 0, False: 219]
  ------------------
  300|      0|        goto err;
  301|       |
  302|       |    /* The (d, z) seed, when available and private keys are requested. */
  303|    219|    if (seedenc != NULL
  ------------------
  |  Branch (303:9): [True: 0, False: 219]
  ------------------
  304|      0|        && !ossl_param_build_set_octet_string(
  ------------------
  |  Branch (304:12): [True: 0, False: 0]
  ------------------
  305|      0|            tmpl, params, OSSL_PKEY_PARAM_ML_KEM_SEED, seedenc, seedlen))
  ------------------
  |  |  437|      0|# define OSSL_PKEY_PARAM_ML_KEM_SEED "seed"
  ------------------
  306|      0|        goto err;
  307|       |
  308|       |    /* The private key in the FIPS 203 |dk| format, when requested. */
  309|    219|    if (prvenc != NULL
  ------------------
  |  Branch (309:9): [True: 0, False: 219]
  ------------------
  310|      0|        && !ossl_param_build_set_octet_string(
  ------------------
  |  Branch (310:12): [True: 0, False: 0]
  ------------------
  311|      0|            tmpl, params, OSSL_PKEY_PARAM_PRIV_KEY, prvenc, prvlen))
  ------------------
  |  |  439|      0|# define OSSL_PKEY_PARAM_PRIV_KEY "priv"
  ------------------
  312|      0|        goto err;
  313|       |
  314|       |    /* The public key on request; it is always available when either is */
  315|    219|    if (pubenc != NULL
  ------------------
  |  Branch (315:9): [True: 219, False: 0]
  ------------------
  316|    219|        && !ossl_param_build_set_octet_string(
  ------------------
  |  Branch (316:12): [True: 0, False: 219]
  ------------------
  317|    219|            tmpl, params, OSSL_PKEY_PARAM_PUB_KEY, pubenc, v->pubkey_bytes))
  ------------------
  |  |  441|    219|# define OSSL_PKEY_PARAM_PUB_KEY "pub"
  ------------------
  318|      0|        goto err;
  319|       |
  320|    219|    params = OSSL_PARAM_BLD_to_param(tmpl);
  321|    219|    if (params == NULL)
  ------------------
  |  Branch (321:9): [True: 0, False: 219]
  ------------------
  322|      0|        goto err;
  323|       |
  324|    219|    ret = param_cb(params, cbarg);
  325|    219|    OSSL_PARAM_free(params);
  326|       |
  327|    219|err:
  328|    219|    OSSL_PARAM_BLD_free(tmpl);
  329|    219|    OPENSSL_secure_clear_free(seedenc, seedlen);
  ------------------
  |  |  149|    219|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  330|    219|    OPENSSL_secure_clear_free(prvenc, prvlen);
  ------------------
  |  |  149|    219|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  331|    219|    OPENSSL_free(pubenc);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  332|    219|    return ret;
  333|    219|}
ml_kem_kmgmt.c:ml_kem_768_gen_init:
 1206|    219|    {                                                                                     \
 1207|    219|        return ml_kem_gen_init(provctx, selection, params,                                \
 1208|    219|            EVP_PKEY_ML_KEM_##bits);                                                      \
  ------------------
  |  |  103|    219|#define EVP_PKEY_ML_KEM_768 NID_ML_KEM_768
  |  |  ------------------
  |  |  |  | 6641|    219|#define NID_ML_KEM_768          1455
  |  |  ------------------
  ------------------
 1209|    219|    }                                                                                     \

mlx_kmgmt.c:mlx_kem_key_new:
   80|    219|{
   81|    219|    MLX_KEY *key = NULL;
   82|    219|    unsigned int ml_kem_variant;
   83|       |
   84|    219|    if (!ossl_prov_is_running()
  ------------------
  |  Branch (84:9): [True: 0, False: 219]
  ------------------
   85|    219|        || v >= OSSL_NELEM(hybrid_vtable)
  ------------------
  |  |   14|    438|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (85:12): [True: 0, False: 219]
  ------------------
   86|    219|        || (key = OPENSSL_malloc(sizeof(*key))) == NULL)
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (86:12): [True: 0, False: 219]
  ------------------
   87|      0|        goto err;
   88|       |
   89|    219|    ml_kem_variant = hybrid_vtable[v].ml_kem_variant;
   90|    219|    key->libctx = libctx;
   91|    219|    key->minfo = ossl_ml_kem_get_vinfo(ml_kem_variant);
   92|    219|    key->xinfo = &hybrid_vtable[v];
   93|    219|    key->xkey = key->mkey = NULL;
   94|    219|    key->state = MLX_HAVE_NOKEYS;
  ------------------
  |  |   39|    219|#define MLX_HAVE_NOKEYS 0
  ------------------
   95|    219|    key->propq = propq;
   96|    219|    return key;
   97|       |
   98|      0|err:
   99|      0|    OPENSSL_free(propq);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  100|       |    return NULL;
  101|    219|}
mlx_kmgmt.c:mlx_kem_key_free:
   66|    219|{
   67|    219|    MLX_KEY *key = vkey;
   68|       |
   69|    219|    if (key == NULL)
  ------------------
  |  Branch (69:9): [True: 0, False: 219]
  ------------------
   70|      0|        return;
   71|    219|    OPENSSL_free(key->propq);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   72|    219|    EVP_PKEY_free(key->mkey);
   73|    219|    EVP_PKEY_free(key->xkey);
   74|    219|    OPENSSL_free(key);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   75|    219|}
mlx_kmgmt.c:mlx_kem_get_params:
  696|    657|{
  697|    657|    MLX_KEY *key = vkey;
  698|    657|    OSSL_PARAM *pub, *prv = NULL;
  699|    657|    EXPORT_CB_ARG sub_arg;
  700|    657|    int selection;
  701|    657|    struct mlx_get_params_st p;
  702|       |
  703|    657|    if (key == NULL || !mlx_get_params_decoder(params, &p))
  ------------------
  |  Branch (703:9): [True: 0, False: 657]
  |  Branch (703:24): [True: 0, False: 657]
  ------------------
  704|      0|        return 0;
  705|       |
  706|       |    /* The reported "bit" count is those of the ML-KEM key */
  707|    657|    if (p.bits != NULL)
  ------------------
  |  Branch (707:9): [True: 219, False: 438]
  ------------------
  708|    219|        if (!OSSL_PARAM_set_int(p.bits, key->minfo->bits))
  ------------------
  |  Branch (708:13): [True: 0, False: 219]
  ------------------
  709|      0|            return 0;
  710|       |
  711|       |    /* The reported security bits are those of the ML-KEM key */
  712|    657|    if (p.secbits != NULL)
  ------------------
  |  Branch (712:9): [True: 219, False: 438]
  ------------------
  713|    219|        if (!OSSL_PARAM_set_int(p.secbits, key->minfo->secbits))
  ------------------
  |  Branch (713:13): [True: 0, False: 219]
  ------------------
  714|      0|            return 0;
  715|       |
  716|       |    /* The reported security category are those of the ML-KEM key */
  717|    657|    if (p.seccat != NULL)
  ------------------
  |  Branch (717:9): [True: 219, False: 438]
  ------------------
  718|    219|        if (!OSSL_PARAM_set_int(p.seccat, key->minfo->security_category))
  ------------------
  |  Branch (718:13): [True: 0, False: 219]
  ------------------
  719|      0|            return 0;
  720|       |
  721|       |    /* The ciphertext sizes are additive */
  722|    657|    if (p.maxsize != NULL)
  ------------------
  |  Branch (722:9): [True: 219, False: 438]
  ------------------
  723|    219|        if (!OSSL_PARAM_set_size_t(p.maxsize, key->minfo->ctext_bytes + key->xinfo->pubkey_bytes))
  ------------------
  |  Branch (723:13): [True: 0, False: 219]
  ------------------
  724|      0|            return 0;
  725|       |
  726|    657|    if (!mlx_kem_have_pubkey(key))
  ------------------
  |  |   44|    657|#define mlx_kem_have_pubkey(key) ((key)->state > 0)
  ------------------
  |  Branch (726:9): [True: 0, False: 657]
  ------------------
  727|      0|        return 1;
  728|       |
  729|    657|    memset(&sub_arg, 0, sizeof(sub_arg));
  730|    657|    if ((pub = p.pub) != NULL) {
  ------------------
  |  Branch (730:9): [True: 438, False: 219]
  ------------------
  731|    438|        size_t publen = key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes;
  732|       |
  733|    438|        if (pub->data_type != OSSL_PARAM_OCTET_STRING)
  ------------------
  |  |  123|    438|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  |  Branch (733:13): [True: 0, False: 438]
  ------------------
  734|      0|            return 0;
  735|    438|        pub->return_size = publen;
  736|    438|        if (pub->data == NULL) {
  ------------------
  |  Branch (736:13): [True: 219, False: 219]
  ------------------
  737|    219|            pub = NULL;
  738|    219|        } else if (pub->data_size < publen) {
  ------------------
  |  Branch (738:20): [True: 0, False: 219]
  ------------------
  739|      0|            ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  127|      0|#define PROV_R_OUTPUT_BUFFER_TOO_SMALL 106
  ------------------
  740|      0|                "public key output buffer too short: %lu < %lu",
  741|      0|                (unsigned long)pub->data_size,
  742|      0|                (unsigned long)publen);
  743|      0|            return 0;
  744|    219|        } else {
  745|    219|            sub_arg.pubenc = pub->data;
  746|    219|        }
  747|    438|    }
  748|    657|    if (mlx_kem_have_prvkey(key)) {
  ------------------
  |  |   45|    657|#define mlx_kem_have_prvkey(key) ((key)->state > 1)
  |  |  ------------------
  |  |  |  Branch (45:34): [True: 657, False: 0]
  |  |  ------------------
  ------------------
  749|    657|        if ((prv = p.priv) != NULL) {
  ------------------
  |  Branch (749:13): [True: 0, False: 657]
  ------------------
  750|      0|            size_t prvlen = key->minfo->prvkey_bytes + key->xinfo->prvkey_bytes;
  751|       |
  752|      0|            if (prv->data_type != OSSL_PARAM_OCTET_STRING)
  ------------------
  |  |  123|      0|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  |  Branch (752:17): [True: 0, False: 0]
  ------------------
  753|      0|                return 0;
  754|      0|            prv->return_size = prvlen;
  755|      0|            if (prv->data == NULL) {
  ------------------
  |  Branch (755:17): [True: 0, False: 0]
  ------------------
  756|      0|                prv = NULL;
  757|      0|            } else if (prv->data_size < prvlen) {
  ------------------
  |  Branch (757:24): [True: 0, False: 0]
  ------------------
  758|      0|                ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                              ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                              ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  127|      0|#define PROV_R_OUTPUT_BUFFER_TOO_SMALL 106
  ------------------
  759|      0|                    "private key output buffer too short: %lu < %lu",
  760|      0|                    (unsigned long)prv->data_size,
  761|      0|                    (unsigned long)prvlen);
  762|      0|                return 0;
  763|      0|            } else {
  764|      0|                sub_arg.prvenc = prv->data;
  765|      0|            }
  766|      0|        }
  767|    657|    }
  768|    657|    if (pub == NULL && prv == NULL)
  ------------------
  |  Branch (768:9): [True: 438, False: 219]
  |  Branch (768:24): [True: 438, False: 0]
  ------------------
  769|    438|        return 1;
  770|       |
  771|    219|    selection = prv == NULL ? 0 : OSSL_KEYMGMT_SELECT_PRIVATE_KEY;
  ------------------
  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (771:17): [True: 219, False: 0]
  ------------------
  772|    219|    selection |= pub == NULL ? 0 : OSSL_KEYMGMT_SELECT_PUBLIC_KEY;
  ------------------
  |  |  641|    438|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (772:18): [True: 0, False: 219]
  ------------------
  773|    219|    if (key->xinfo->group_name != NULL)
  ------------------
  |  Branch (773:9): [True: 0, False: 219]
  ------------------
  774|      0|        selection |= OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS;
  ------------------
  |  |  642|      0|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  ------------------
  775|       |
  776|       |    /* Extract sub-component key material */
  777|    219|    if (!export_sub(&sub_arg, selection, key))
  ------------------
  |  Branch (777:9): [True: 0, False: 219]
  ------------------
  778|      0|        return 0;
  779|       |
  780|    219|    if ((pub != NULL && sub_arg.pubcount != 2)
  ------------------
  |  Branch (780:10): [True: 219, False: 0]
  |  Branch (780:25): [True: 0, False: 219]
  ------------------
  781|    219|        || (prv != NULL && sub_arg.prvcount != 2))
  ------------------
  |  Branch (781:13): [True: 0, False: 219]
  |  Branch (781:28): [True: 0, False: 0]
  ------------------
  782|      0|        return 0;
  783|       |
  784|    219|    return 1;
  785|    219|}
mlx_kmgmt.c:mlx_get_params_decoder:
  561|    657|{
  562|    657|    const char *s;
  563|       |
  564|    657|    memset(r, 0, sizeof(*r));
  565|    657|    if (p != NULL)
  ------------------
  |  Branch (565:9): [True: 657, False: 0]
  ------------------
  566|  1.97k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (566:16): [True: 1.31k, False: 657]
  ------------------
  567|  1.31k|            switch(s[0]) {
  568|      0|            default:
  ------------------
  |  Branch (568:13): [True: 0, False: 1.31k]
  ------------------
  569|      0|                break;
  570|    219|            case 'b':
  ------------------
  |  Branch (570:13): [True: 219, False: 1.09k]
  ------------------
  571|    219|                if (ossl_likely(strcmp("its", s + 1) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  572|       |                    /* OSSL_PKEY_PARAM_BITS */
  573|    219|                    if (ossl_unlikely(r->bits != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  574|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  575|      0|                                       "param %s is repeated", s);
  576|      0|                        return 0;
  577|      0|                    }
  578|    219|                    r->bits = (OSSL_PARAM *)p;
  579|    219|                }
  580|    219|                break;
  581|    438|            case 'e':
  ------------------
  |  Branch (581:13): [True: 438, False: 876]
  ------------------
  582|    438|                if (ossl_likely(strcmp("ncoded-pub-key", s + 1) == 0)) {
  ------------------
  |  |   22|    438|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  583|       |                    /* OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY */
  584|    438|                    if (ossl_unlikely(r->pub != NULL)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  585|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  586|      0|                                       "param %s is repeated", s);
  587|      0|                        return 0;
  588|      0|                    }
  589|    438|                    r->pub = (OSSL_PARAM *)p;
  590|    438|                }
  591|    438|                break;
  592|    438|            case 'm':
  ------------------
  |  Branch (592:13): [True: 219, False: 1.09k]
  ------------------
  593|    219|                if (ossl_likely(strcmp("ax-size", s + 1) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  594|       |                    /* OSSL_PKEY_PARAM_MAX_SIZE */
  595|    219|                    if (ossl_unlikely(r->maxsize != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  596|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  597|      0|                                       "param %s is repeated", s);
  598|      0|                        return 0;
  599|      0|                    }
  600|    219|                    r->maxsize = (OSSL_PARAM *)p;
  601|    219|                }
  602|    219|                break;
  603|    219|            case 'p':
  ------------------
  |  Branch (603:13): [True: 0, False: 1.31k]
  ------------------
  604|      0|                if (ossl_likely(strcmp("riv", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  605|       |                    /* OSSL_PKEY_PARAM_PRIV_KEY */
  606|      0|                    if (ossl_unlikely(r->priv != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  607|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  608|      0|                                       "param %s is repeated", s);
  609|      0|                        return 0;
  610|      0|                    }
  611|      0|                    r->priv = (OSSL_PARAM *)p;
  612|      0|                }
  613|      0|                break;
  614|    438|            case 's':
  ------------------
  |  Branch (614:13): [True: 438, False: 876]
  ------------------
  615|    438|                switch(s[1]) {
  616|      0|                default:
  ------------------
  |  Branch (616:17): [True: 0, False: 438]
  ------------------
  617|      0|                    break;
  618|    438|                case 'e':
  ------------------
  |  Branch (618:17): [True: 438, False: 0]
  ------------------
  619|    438|                    switch(s[2]) {
  620|      0|                    default:
  ------------------
  |  Branch (620:21): [True: 0, False: 438]
  ------------------
  621|      0|                        break;
  622|    438|                    case 'c':
  ------------------
  |  Branch (622:21): [True: 438, False: 0]
  ------------------
  623|    438|                        switch(s[3]) {
  624|      0|                        default:
  ------------------
  |  Branch (624:25): [True: 0, False: 438]
  ------------------
  625|      0|                            break;
  626|    438|                        case 'u':
  ------------------
  |  Branch (626:25): [True: 438, False: 0]
  ------------------
  627|    438|                            switch(s[4]) {
  628|      0|                            default:
  ------------------
  |  Branch (628:29): [True: 0, False: 438]
  ------------------
  629|      0|                                break;
  630|    438|                            case 'r':
  ------------------
  |  Branch (630:29): [True: 438, False: 0]
  ------------------
  631|    438|                                switch(s[5]) {
  632|      0|                                default:
  ------------------
  |  Branch (632:33): [True: 0, False: 438]
  ------------------
  633|      0|                                    break;
  634|    438|                                case 'i':
  ------------------
  |  Branch (634:33): [True: 438, False: 0]
  ------------------
  635|    438|                                    switch(s[6]) {
  636|      0|                                    default:
  ------------------
  |  Branch (636:37): [True: 0, False: 438]
  ------------------
  637|      0|                                        break;
  638|    438|                                    case 't':
  ------------------
  |  Branch (638:37): [True: 438, False: 0]
  ------------------
  639|    438|                                        switch(s[7]) {
  640|      0|                                        default:
  ------------------
  |  Branch (640:41): [True: 0, False: 438]
  ------------------
  641|      0|                                            break;
  642|    438|                                        case 'y':
  ------------------
  |  Branch (642:41): [True: 438, False: 0]
  ------------------
  643|    438|                                            switch(s[8]) {
  644|      0|                                            default:
  ------------------
  |  Branch (644:45): [True: 0, False: 438]
  ------------------
  645|      0|                                                break;
  646|    438|                                            case '-':
  ------------------
  |  Branch (646:45): [True: 438, False: 0]
  ------------------
  647|    438|                                                switch(s[9]) {
  648|      0|                                                default:
  ------------------
  |  Branch (648:49): [True: 0, False: 438]
  ------------------
  649|      0|                                                    break;
  650|    219|                                                case 'b':
  ------------------
  |  Branch (650:49): [True: 219, False: 219]
  ------------------
  651|    219|                                                    if (ossl_likely(strcmp("its", s + 10) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  652|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_BITS */
  653|    219|                                                        if (ossl_unlikely(r->secbits != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  654|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  655|      0|                                                                           "param %s is repeated", s);
  656|      0|                                                            return 0;
  657|      0|                                                        }
  658|    219|                                                        r->secbits = (OSSL_PARAM *)p;
  659|    219|                                                    }
  660|    219|                                                    break;
  661|    219|                                                case 'c':
  ------------------
  |  Branch (661:49): [True: 219, False: 219]
  ------------------
  662|    219|                                                    if (ossl_likely(strcmp("ategory", s + 10) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 219, False: 0]
  |  |  ------------------
  ------------------
  663|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_CATEGORY */
  664|    219|                                                        if (ossl_unlikely(r->seccat != NULL)) {
  ------------------
  |  |   23|    219|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  665|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  666|      0|                                                                           "param %s is repeated", s);
  667|      0|                                                            return 0;
  668|      0|                                                        }
  669|    219|                                                        r->seccat = (OSSL_PARAM *)p;
  670|    219|                                                    }
  671|    438|                                                }
  672|    438|                                            }
  673|    438|                                        }
  674|    438|                                    }
  675|    438|                                }
  676|    438|                            }
  677|    438|                        }
  678|    438|                    }
  679|    438|                }
  680|  1.31k|            }
  681|    657|    return 1;
  682|    657|}
mlx_kmgmt.c:export_sub:
  271|    219|{
  272|    219|    int slot;
  273|       |
  274|       |    /*
  275|       |     * The caller is responsible for initialising only the pubenc and prvenc
  276|       |     * pointer fields, the rest are set here or in the callback.
  277|       |     */
  278|    219|    sub_arg->pubcount = 0;
  279|    219|    sub_arg->prvcount = 0;
  280|       |
  281|    657|    for (slot = 0; slot < 2; ++slot) {
  ------------------
  |  Branch (281:20): [True: 438, False: 219]
  ------------------
  282|    438|        int ml_kem_slot = key->xinfo->ml_kem_slot;
  283|    438|        EVP_PKEY *pkey;
  284|       |
  285|       |        /* Export the parts of each component into its storage slot */
  286|    438|        if (slot == ml_kem_slot) {
  ------------------
  |  Branch (286:13): [True: 219, False: 219]
  ------------------
  287|    219|            pkey = key->mkey;
  288|    219|            sub_arg->algorithm_name = key->minfo->algorithm_name;
  289|    219|            sub_arg->puboff = slot * key->xinfo->pubkey_bytes;
  290|    219|            sub_arg->prvoff = slot * key->xinfo->prvkey_bytes;
  291|    219|            sub_arg->publen = key->minfo->pubkey_bytes;
  292|    219|            sub_arg->prvlen = key->minfo->prvkey_bytes;
  293|    219|        } else {
  294|    219|            pkey = key->xkey;
  295|    219|            sub_arg->algorithm_name = key->xinfo->algorithm_name;
  296|    219|            sub_arg->puboff = (1 - ml_kem_slot) * key->minfo->pubkey_bytes;
  297|    219|            sub_arg->prvoff = (1 - ml_kem_slot) * key->minfo->prvkey_bytes;
  298|    219|            sub_arg->publen = key->xinfo->pubkey_bytes;
  299|    219|            sub_arg->prvlen = key->xinfo->prvkey_bytes;
  300|    219|        }
  301|    438|        if (!EVP_PKEY_export(pkey, selection, export_sub_cb, (void *)sub_arg))
  ------------------
  |  Branch (301:13): [True: 0, False: 438]
  ------------------
  302|      0|            return 0;
  303|    438|    }
  304|    219|    return 1;
  305|    219|}
mlx_kmgmt.c:export_sub_cb:
  225|    438|{
  226|    438|    EXPORT_CB_ARG *sub_arg = varg;
  227|    438|    struct ml_kem_import_export_st p;
  228|    438|    size_t len;
  229|       |
  230|    438|    if (!ml_kem_import_export_decoder(params, &p))
  ------------------
  |  Branch (230:9): [True: 0, False: 438]
  ------------------
  231|      0|        return 0;
  232|       |
  233|       |    /*
  234|       |     * The caller will decide whether anything essential is missing, but, if
  235|       |     * some key material was returned, it should have the right (parameter)
  236|       |     * data type and length.
  237|       |     */
  238|    438|    if (sub_arg->pubenc != NULL && p.pubkey != NULL) {
  ------------------
  |  Branch (238:9): [True: 438, False: 0]
  |  Branch (238:36): [True: 438, False: 0]
  ------------------
  239|    438|        void *pub = sub_arg->pubenc + sub_arg->puboff;
  240|       |
  241|    438|        if (OSSL_PARAM_get_octet_string(p.pubkey, &pub, sub_arg->publen, &len) != 1)
  ------------------
  |  Branch (241:13): [True: 0, False: 438]
  ------------------
  242|      0|            return 0;
  243|    438|        if (len != sub_arg->publen) {
  ------------------
  |  Branch (243:13): [True: 0, False: 438]
  ------------------
  244|      0|            ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  355|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  351|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  245|      0|                "Unexpected %s public key length %lu != %lu",
  246|      0|                sub_arg->algorithm_name, (unsigned long)len,
  247|      0|                sub_arg->publen);
  248|      0|            return 0;
  249|      0|        }
  250|    438|        ++sub_arg->pubcount;
  251|    438|    }
  252|    438|    if (sub_arg->prvenc != NULL && p.privkey != NULL) {
  ------------------
  |  Branch (252:9): [True: 0, False: 438]
  |  Branch (252:36): [True: 0, False: 0]
  ------------------
  253|      0|        void *prv = sub_arg->prvenc + sub_arg->prvoff;
  254|       |
  255|      0|        if (OSSL_PARAM_get_octet_string(p.privkey, &prv, sub_arg->prvlen, &len) != 1)
  ------------------
  |  Branch (255:13): [True: 0, False: 0]
  ------------------
  256|      0|            return 0;
  257|      0|        if (len != sub_arg->prvlen) {
  ------------------
  |  Branch (257:13): [True: 0, False: 0]
  ------------------
  258|      0|            ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  355|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  351|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  259|      0|                "Unexpected %s private key length %lu != %lu",
  260|      0|                sub_arg->algorithm_name, (unsigned long)len,
  261|      0|                (unsigned long)sub_arg->publen);
  262|      0|            return 0;
  263|      0|        }
  264|      0|        ++sub_arg->prvcount;
  265|      0|    }
  266|    438|    return 1;
  267|    438|}
mlx_kmgmt.c:ml_kem_import_export_decoder:
  169|    438|{
  170|    438|    const char *s;
  171|       |
  172|    438|    memset(r, 0, sizeof(*r));
  173|    438|    if (p != NULL)
  ------------------
  |  Branch (173:9): [True: 438, False: 0]
  ------------------
  174|    876|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (174:16): [True: 438, False: 438]
  ------------------
  175|    438|            switch(s[0]) {
  176|      0|            default:
  ------------------
  |  Branch (176:13): [True: 0, False: 438]
  ------------------
  177|      0|                break;
  178|    438|            case 'p':
  ------------------
  |  Branch (178:13): [True: 438, False: 0]
  ------------------
  179|    438|                switch(s[1]) {
  180|      0|                default:
  ------------------
  |  Branch (180:17): [True: 0, False: 438]
  ------------------
  181|      0|                    break;
  182|      0|                case 'r':
  ------------------
  |  Branch (182:17): [True: 0, False: 438]
  ------------------
  183|      0|                    if (ossl_likely(strcmp("iv", s + 2) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  184|       |                        /* OSSL_PKEY_PARAM_PRIV_KEY */
  185|      0|                        if (ossl_unlikely(r->privkey != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  186|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  187|      0|                                           "param %s is repeated", s);
  188|      0|                            return 0;
  189|      0|                        }
  190|      0|                        r->privkey = (OSSL_PARAM *)p;
  191|      0|                    }
  192|      0|                    break;
  193|    438|                case 'u':
  ------------------
  |  Branch (193:17): [True: 438, False: 0]
  ------------------
  194|    438|                    if (ossl_likely(strcmp("b", s + 2) == 0)) {
  ------------------
  |  |   22|    438|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 438, False: 0]
  |  |  ------------------
  ------------------
  195|       |                        /* OSSL_PKEY_PARAM_PUB_KEY */
  196|    438|                        if (ossl_unlikely(r->pubkey != NULL)) {
  ------------------
  |  |   23|    438|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  197|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  198|      0|                                           "param %s is repeated", s);
  199|      0|                            return 0;
  200|      0|                        }
  201|    438|                        r->pubkey = (OSSL_PARAM *)p;
  202|    438|                    }
  203|    438|                }
  204|    438|            }
  205|    438|    return 1;
  206|    438|}
mlx_kmgmt.c:mlx_kem_gen_init:
  947|    219|{
  948|    219|    PROV_ML_KEM_GEN_CTX *gctx = NULL;
  949|       |
  950|       |    /*
  951|       |     * We can only generate private keys, check that the selection is
  952|       |     * appropriate.
  953|       |     */
  954|    219|    if (!ossl_prov_is_running()
  ------------------
  |  Branch (954:9): [True: 0, False: 219]
  ------------------
  955|    219|        || (selection & minimal_selection) == 0
  ------------------
  |  Branch (955:12): [True: 0, False: 219]
  ------------------
  956|    219|        || (gctx = OPENSSL_zalloc(sizeof(*gctx))) == NULL)
  ------------------
  |  |  108|    219|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (956:12): [True: 0, False: 219]
  ------------------
  957|      0|        return NULL;
  958|       |
  959|    219|    gctx->evp_type = evp_type;
  960|    219|    gctx->libctx = libctx;
  961|    219|    gctx->selection = selection;
  962|    219|    if (mlx_kem_gen_set_params(gctx, params))
  ------------------
  |  Branch (962:9): [True: 219, False: 0]
  ------------------
  963|    219|        return gctx;
  964|       |
  965|      0|    mlx_kem_gen_cleanup(gctx);
  966|       |    return NULL;
  967|    219|}
mlx_kmgmt.c:mlx_kem_gen_set_params:
  928|    438|{
  929|    438|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
  930|    438|    struct mlx_gen_set_params_st p;
  931|       |
  932|    438|    if (gctx == NULL || !mlx_gen_set_params_decoder(params, &p))
  ------------------
  |  Branch (932:9): [True: 0, False: 438]
  |  Branch (932:25): [True: 0, False: 438]
  ------------------
  933|      0|        return 0;
  934|       |
  935|    438|    if (p.propq != NULL) {
  ------------------
  |  Branch (935:9): [True: 0, False: 438]
  ------------------
  936|      0|        if (p.propq->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (936:13): [True: 0, False: 0]
  ------------------
  937|      0|            return 0;
  938|      0|        OPENSSL_free(gctx->propq);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  939|      0|        if ((gctx->propq = OPENSSL_strdup(p.propq->data)) == NULL)
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (939:13): [True: 0, False: 0]
  ------------------
  940|      0|            return 0;
  941|      0|    }
  942|    438|    return 1;
  943|    438|}
mlx_kmgmt.c:mlx_gen_set_params_decoder:
  906|    438|{
  907|    438|    const char *s;
  908|       |
  909|    438|    memset(r, 0, sizeof(*r));
  910|    438|    if (p != NULL)
  ------------------
  |  Branch (910:9): [True: 219, False: 219]
  ------------------
  911|    438|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (911:16): [True: 219, False: 219]
  ------------------
  912|    219|            if (ossl_likely(strcmp("properties", s + 0) == 0)) {
  ------------------
  |  |   22|    219|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  913|       |                /* OSSL_PKEY_PARAM_PROPERTIES */
  914|      0|                if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  915|      0|                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  916|      0|                                   "param %s is repeated", s);
  917|      0|                    return 0;
  918|      0|                }
  919|      0|                r->propq = (OSSL_PARAM *)p;
  920|      0|            }
  921|    438|    return 1;
  922|    438|}
mlx_kmgmt.c:mlx_kem_gen:
  976|    219|{
  977|    219|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
  978|    219|    MLX_KEY *key;
  979|    219|    char *propq;
  980|       |
  981|    219|    if (gctx == NULL
  ------------------
  |  Branch (981:9): [True: 0, False: 219]
  ------------------
  982|    219|        || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  ------------------
  |  |  650|    219|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
                      || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  ------------------
  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (982:12): [True: 0, False: 219]
  ------------------
  983|      0|        return NULL;
  984|       |
  985|       |    /* Lose ownership of propq */
  986|    219|    propq = gctx->propq;
  987|    219|    gctx->propq = NULL;
  988|    219|    if ((key = mlx_kem_key_new(gctx->evp_type, gctx->libctx, propq)) == NULL)
  ------------------
  |  Branch (988:9): [True: 0, False: 219]
  ------------------
  989|      0|        return NULL;
  990|       |
  991|    219|    if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  650|    219|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  640|    219|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  641|    219|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (991:9): [True: 0, False: 219]
  ------------------
  992|      0|        return key;
  993|       |
  994|       |    /* For now, using the same "propq" for all components */
  995|    219|    key->mkey = EVP_PKEY_Q_keygen(key->libctx, key->propq,
  996|    219|        key->minfo->algorithm_name);
  997|    219|    key->xkey = EVP_PKEY_Q_keygen(key->libctx, key->propq,
  998|    219|        key->xinfo->algorithm_name,
  999|    219|        key->xinfo->group_name);
 1000|    219|    if (key->mkey != NULL && key->xkey != NULL) {
  ------------------
  |  Branch (1000:9): [True: 219, False: 0]
  |  Branch (1000:30): [True: 219, False: 0]
  ------------------
 1001|    219|        key->state = MLX_HAVE_PRVKEY;
  ------------------
  |  |   41|    219|#define MLX_HAVE_PRVKEY 2
  ------------------
 1002|    219|        return key;
 1003|    219|    }
 1004|       |
 1005|      0|    mlx_kem_key_free(key);
 1006|       |    return NULL;
 1007|    219|}
mlx_kmgmt.c:mlx_kem_gen_cleanup:
 1010|    219|{
 1011|    219|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
 1012|       |
 1013|    219|    if (gctx == NULL)
  ------------------
  |  Branch (1013:9): [True: 0, False: 219]
  ------------------
 1014|      0|        return;
 1015|    219|    OPENSSL_free(gctx->propq);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1016|    219|    OPENSSL_free(gctx);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1017|    219|}

rsa_kmgmt.c:rsa_load:
  671|  23.2k|{
  672|  23.2k|    return common_load(reference, reference_sz, RSA_FLAG_TYPE_RSA);
  ------------------
  |  |  118|  23.2k|#define RSA_FLAG_TYPE_RSA 0x0000
  ------------------
  673|  23.2k|}
rsa_kmgmt.c:common_load:
  653|  23.2k|{
  654|  23.2k|    RSA *rsa = NULL;
  655|       |
  656|  23.2k|    if (ossl_prov_is_running() && reference_sz == sizeof(rsa)) {
  ------------------
  |  Branch (656:9): [True: 23.2k, False: 0]
  |  Branch (656:35): [True: 23.2k, False: 0]
  ------------------
  657|       |        /* The contents of the reference is the address to our object */
  658|  23.2k|        rsa = *(RSA **)reference;
  659|       |
  660|  23.2k|        if (RSA_test_flags(rsa, RSA_FLAG_TYPE_MASK) != expected_rsa_type)
  ------------------
  |  |  117|  23.2k|#define RSA_FLAG_TYPE_MASK 0xF000
  ------------------
  |  Branch (660:13): [True: 0, False: 23.2k]
  ------------------
  661|      0|            return NULL;
  662|       |
  663|       |        /* We grabbed, so we detach it */
  664|  23.2k|        *(RSA **)reference = NULL;
  665|  23.2k|        return rsa;
  666|  23.2k|    }
  667|      0|    return NULL;
  668|  23.2k|}
rsa_kmgmt.c:rsa_freedata:
  111|  23.2k|{
  112|  23.2k|    RSA_free(keydata);
  113|  23.2k|}
rsa_kmgmt.c:rsa_get_params:
  325|  23.2k|{
  326|  23.2k|    RSA *rsa = key;
  327|  23.2k|    const RSA_PSS_PARAMS_30 *pss_params = ossl_rsa_get0_pss_params_30(rsa);
  328|  23.2k|    int rsa_type = RSA_test_flags(rsa, RSA_FLAG_TYPE_MASK);
  ------------------
  |  |  117|  23.2k|#define RSA_FLAG_TYPE_MASK 0xF000
  ------------------
  329|  23.2k|    OSSL_PARAM *p;
  330|  23.2k|    int empty = RSA_get0_n(rsa) == NULL;
  331|       |
  332|  23.2k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_BITS)) != NULL
  ------------------
  |  |  366|  23.2k|# define OSSL_PKEY_PARAM_BITS "bits"
  ------------------
  |  Branch (332:9): [True: 23.2k, False: 0]
  ------------------
  333|  23.2k|        && (empty || !OSSL_PARAM_set_int(p, RSA_bits(rsa))))
  ------------------
  |  Branch (333:13): [True: 0, False: 23.2k]
  |  Branch (333:22): [True: 0, False: 23.2k]
  ------------------
  334|      0|        return 0;
  335|  23.2k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_BITS)) != NULL
  ------------------
  |  |  495|  23.2k|# define OSSL_PKEY_PARAM_SECURITY_BITS "security-bits"
  ------------------
  |  Branch (335:9): [True: 23.2k, False: 0]
  ------------------
  336|  23.2k|        && (empty || !OSSL_PARAM_set_int(p, RSA_security_bits(rsa))))
  ------------------
  |  Branch (336:13): [True: 0, False: 23.2k]
  |  Branch (336:22): [True: 0, False: 23.2k]
  ------------------
  337|      0|        return 0;
  338|  23.2k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_MAX_SIZE)) != NULL
  ------------------
  |  |  424|  23.2k|# define OSSL_PKEY_PARAM_MAX_SIZE "max-size"
  ------------------
  |  Branch (338:9): [True: 23.2k, False: 0]
  ------------------
  339|  23.2k|        && (empty || !OSSL_PARAM_set_int(p, RSA_size(rsa))))
  ------------------
  |  Branch (339:13): [True: 0, False: 23.2k]
  |  Branch (339:22): [True: 0, False: 23.2k]
  ------------------
  340|      0|        return 0;
  341|  23.2k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_CATEGORY)) != NULL)
  ------------------
  |  |  496|  23.2k|# define OSSL_PKEY_PARAM_SECURITY_CATEGORY OSSL_ALG_PARAM_SECURITY_CATEGORY
  |  |  ------------------
  |  |  |  |  133|  23.2k|# define OSSL_ALG_PARAM_SECURITY_CATEGORY "security-category"
  |  |  ------------------
  ------------------
  |  Branch (341:9): [True: 23.2k, False: 0]
  ------------------
  342|  23.2k|        if (!OSSL_PARAM_set_int(p, 0))
  ------------------
  |  Branch (342:13): [True: 0, False: 23.2k]
  ------------------
  343|      0|            return 0;
  344|       |
  345|       |    /*
  346|       |     * For restricted RSA-PSS keys, we ignore the default digest request.
  347|       |     * With RSA-OAEP keys, this may need to be amended.
  348|       |     */
  349|  23.2k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_DEFAULT_DIGEST)) != NULL
  ------------------
  |  |  370|  23.2k|# define OSSL_PKEY_PARAM_DEFAULT_DIGEST "default-digest"
  ------------------
  |  Branch (349:9): [True: 0, False: 23.2k]
  ------------------
  350|      0|        && (rsa_type != RSA_FLAG_TYPE_RSASSAPSS
  ------------------
  |  |  119|      0|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
  |  Branch (350:13): [True: 0, False: 0]
  ------------------
  351|      0|            || ossl_rsa_pss_params_30_is_unrestricted(pss_params))) {
  ------------------
  |  Branch (351:16): [True: 0, False: 0]
  ------------------
  352|      0|        if (!OSSL_PARAM_set_utf8_string(p, RSA_DEFAULT_MD))
  ------------------
  |  |   55|      0|#define RSA_DEFAULT_MD "SHA256"
  ------------------
  |  Branch (352:13): [True: 0, False: 0]
  ------------------
  353|      0|            return 0;
  354|      0|    }
  355|       |
  356|       |    /*
  357|       |     * For non-RSA-PSS keys, we ignore the mandatory digest request.
  358|       |     * With RSA-OAEP keys, this may need to be amended.
  359|       |     */
  360|  23.2k|    if ((p = OSSL_PARAM_locate(params,
  ------------------
  |  Branch (360:9): [True: 0, False: 23.2k]
  ------------------
  361|  23.2k|             OSSL_PKEY_PARAM_MANDATORY_DIGEST))
  ------------------
  |  |  422|  23.2k|# define OSSL_PKEY_PARAM_MANDATORY_DIGEST "mandatory-digest"
  ------------------
  362|  23.2k|            != NULL
  363|      0|        && rsa_type == RSA_FLAG_TYPE_RSASSAPSS
  ------------------
  |  |  119|  23.2k|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
  |  Branch (363:12): [True: 0, False: 0]
  ------------------
  364|      0|        && !ossl_rsa_pss_params_30_is_unrestricted(pss_params)) {
  ------------------
  |  Branch (364:12): [True: 0, False: 0]
  ------------------
  365|      0|        const char *mdname = ossl_rsa_oaeppss_nid2name(ossl_rsa_pss_params_30_hashalg(pss_params));
  366|       |
  367|      0|        if (mdname == NULL || !OSSL_PARAM_set_utf8_string(p, mdname))
  ------------------
  |  Branch (367:13): [True: 0, False: 0]
  |  Branch (367:31): [True: 0, False: 0]
  ------------------
  368|      0|            return 0;
  369|      0|    }
  370|  23.2k|    return (rsa_type != RSA_FLAG_TYPE_RSASSAPSS
  ------------------
  |  |  119|  46.4k|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
  |  Branch (370:13): [True: 23.2k, False: 0]
  ------------------
  371|      0|               || ossl_rsa_pss_params_30_todata(pss_params, NULL, params))
  ------------------
  |  Branch (371:19): [True: 0, False: 0]
  ------------------
  372|  23.2k|        && ossl_rsa_todata(rsa, NULL, params, 1);
  ------------------
  |  Branch (372:12): [True: 23.2k, False: 0]
  ------------------
  373|  23.2k|}

ossl_drbg_lock:
   54|  20.1k|{
   55|  20.1k|    return 1;
   56|  20.1k|}
ossl_drbg_unlock:
   60|  20.1k|{
   61|  20.1k|}
ossl_drbg_get_seed:
  148|      8|{
  149|      8|    PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
  150|      8|    size_t bytes_needed;
  151|      8|    unsigned char *buffer;
  152|       |
  153|       |    /* Figure out how many bytes we need */
  154|      8|    bytes_needed = entropy >= 0 ? (entropy + 7) / 8 : 0;
  ------------------
  |  Branch (154:20): [True: 8, False: 0]
  ------------------
  155|      8|    if (bytes_needed < min_len)
  ------------------
  |  Branch (155:9): [True: 0, False: 8]
  ------------------
  156|      0|        bytes_needed = min_len;
  157|      8|    if (bytes_needed > max_len)
  ------------------
  |  Branch (157:9): [True: 0, False: 8]
  ------------------
  158|      0|        bytes_needed = max_len;
  159|       |
  160|       |    /* Allocate storage */
  161|      8|    buffer = OPENSSL_secure_malloc(bytes_needed);
  ------------------
  |  |  139|      8|    CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  162|      8|    if (buffer == NULL)
  ------------------
  |  Branch (162:9): [True: 0, False: 8]
  ------------------
  163|      0|        return 0;
  164|       |
  165|       |    /*
  166|       |     * Get random data.  Include our DRBG address as
  167|       |     * additional input, in order to provide a distinction between
  168|       |     * different DRBG child instances.
  169|       |     *
  170|       |     * Note: using the sizeof() operator on a pointer triggers
  171|       |     *       a warning in some static code analyzers, but it's
  172|       |     *       intentional and correct here.
  173|       |     */
  174|      8|    if (!ossl_prov_drbg_generate(drbg, buffer, bytes_needed,
  ------------------
  |  Branch (174:9): [True: 0, False: 8]
  ------------------
  175|      8|            drbg->strength, prediction_resistance,
  176|      8|            (unsigned char *)&drbg, sizeof(drbg))) {
  177|      0|        OPENSSL_secure_clear_free(buffer, bytes_needed);
  ------------------
  |  |  149|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  178|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_GENERATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  179|      0|        return 0;
  180|      0|    }
  181|      8|    *pout = buffer;
  182|      8|    return bytes_needed;
  183|      8|}
ossl_drbg_clear_seed:
  188|      8|{
  189|      8|    OPENSSL_secure_clear_free(out, outlen);
  ------------------
  |  |  149|      8|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  190|      8|}
ossl_prov_drbg_nonce_ctx_new:
  272|      2|{
  273|      2|    PROV_DRBG_NONCE_GLOBAL *dngbl = OPENSSL_zalloc(sizeof(*dngbl));
  ------------------
  |  |  108|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  274|       |
  275|      2|    if (dngbl == NULL)
  ------------------
  |  Branch (275:9): [True: 0, False: 2]
  ------------------
  276|      0|        return NULL;
  277|       |
  278|      2|    dngbl->rand_nonce_lock = CRYPTO_THREAD_lock_new();
  279|      2|    if (dngbl->rand_nonce_lock == NULL) {
  ------------------
  |  Branch (279:9): [True: 0, False: 2]
  ------------------
  280|      0|        OPENSSL_free(dngbl);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  281|      0|        return NULL;
  282|      0|    }
  283|       |
  284|      2|    return dngbl;
  285|      2|}
ossl_prov_drbg_instantiate:
  352|      3|{
  353|      3|    unsigned char *nonce = NULL, *entropy = NULL;
  354|      3|    size_t noncelen = 0, entropylen = 0;
  355|      3|    unsigned int min_entropy;
  356|      3|    size_t min_entropylen, max_entropylen;
  357|       |
  358|      3|    if (strength > drbg->strength) {
  ------------------
  |  Branch (358:9): [True: 0, False: 3]
  ------------------
  359|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INSUFFICIENT_DRBG_STRENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  360|      0|        goto end;
  361|      0|    }
  362|      3|    min_entropy = drbg->strength;
  363|      3|    min_entropylen = drbg->min_entropylen;
  364|      3|    max_entropylen = drbg->max_entropylen;
  365|       |
  366|      3|    if (pers == NULL) {
  ------------------
  |  Branch (366:9): [True: 3, False: 0]
  ------------------
  367|      3|        pers = (const unsigned char *)ossl_pers_string;
  368|      3|        perslen = sizeof(ossl_pers_string);
  369|      3|    }
  370|      3|    if (perslen > drbg->max_perslen) {
  ------------------
  |  Branch (370:9): [True: 0, False: 3]
  ------------------
  371|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_PERSONALISATION_STRING_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  372|      0|        goto end;
  373|      0|    }
  374|       |
  375|      3|    if (drbg->state != EVP_RAND_STATE_UNINITIALISED) {
  ------------------
  |  | 1345|      3|#define EVP_RAND_STATE_UNINITIALISED 0
  ------------------
  |  Branch (375:9): [True: 0, False: 3]
  ------------------
  376|      0|        if (drbg->state == EVP_RAND_STATE_ERROR)
  ------------------
  |  | 1347|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  |  Branch (376:13): [True: 0, False: 0]
  ------------------
  377|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_IN_ERROR_STATE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  378|      0|        else
  379|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_ALREADY_INSTANTIATED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  380|      0|        goto end;
  381|      0|    }
  382|       |
  383|      3|    drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1347|      3|#define EVP_RAND_STATE_ERROR 2
  ------------------
  384|       |
  385|      3|    if (drbg->min_noncelen > 0) {
  ------------------
  |  Branch (385:9): [True: 3, False: 0]
  ------------------
  386|      3|        if (drbg->parent_nonce != NULL) {
  ------------------
  |  Branch (386:13): [True: 0, False: 3]
  ------------------
  387|      0|            noncelen = drbg->parent_nonce(drbg->parent, NULL, drbg->strength,
  388|      0|                drbg->min_noncelen,
  389|      0|                drbg->max_noncelen);
  390|      0|            if (noncelen == 0) {
  ------------------
  |  Branch (390:17): [True: 0, False: 0]
  ------------------
  391|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_RETRIEVING_NONCE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  392|      0|                goto end;
  393|      0|            }
  394|      0|            nonce = OPENSSL_malloc(noncelen);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  395|      0|            if (nonce == NULL) {
  ------------------
  |  Branch (395:17): [True: 0, False: 0]
  ------------------
  396|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_RETRIEVING_NONCE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  397|      0|                goto end;
  398|      0|            }
  399|      0|            if (noncelen != drbg->parent_nonce(drbg->parent, nonce, drbg->strength, drbg->min_noncelen, drbg->max_noncelen)) {
  ------------------
  |  Branch (399:17): [True: 0, False: 0]
  ------------------
  400|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_RETRIEVING_NONCE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  401|      0|                goto end;
  402|      0|            }
  403|      0|#ifndef PROV_RAND_GET_RANDOM_NONCE
  404|      3|        } else if (drbg->parent != NULL) {
  ------------------
  |  Branch (404:20): [True: 3, False: 0]
  ------------------
  405|      3|#endif
  406|       |            /*
  407|       |             * NIST SP800-90Ar1 section 9.1 says you can combine getting
  408|       |             * the entropy and nonce in 1 call by increasing the entropy
  409|       |             * with 50% and increasing the minimum length to accommodate
  410|       |             * the length of the nonce. We do this in case a nonce is
  411|       |             * required and there is no parental nonce capability.
  412|       |             */
  413|      3|            min_entropy += drbg->strength / 2;
  414|      3|            min_entropylen += drbg->min_noncelen;
  415|      3|            max_entropylen += drbg->max_noncelen;
  416|      3|        }
  417|      0|#ifndef PROV_RAND_GET_RANDOM_NONCE
  418|      0|        else { /* parent == NULL */
  419|      0|            noncelen = prov_drbg_get_nonce(drbg, &nonce, drbg->min_noncelen,
  420|      0|                drbg->max_noncelen);
  421|      0|            if (noncelen < drbg->min_noncelen
  ------------------
  |  Branch (421:17): [True: 0, False: 0]
  ------------------
  422|      0|                || noncelen > drbg->max_noncelen) {
  ------------------
  |  Branch (422:20): [True: 0, False: 0]
  ------------------
  423|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_RETRIEVING_NONCE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  424|      0|                goto end;
  425|      0|            }
  426|      0|        }
  427|      3|#endif
  428|      3|    }
  429|       |
  430|      3|    drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter);
  ------------------
  |  |   61|      3|#define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
  ------------------
  431|      3|    if (drbg->reseed_next_counter) {
  ------------------
  |  Branch (431:9): [True: 3, False: 0]
  ------------------
  432|      3|        drbg->reseed_next_counter++;
  433|      3|        if (!drbg->reseed_next_counter)
  ------------------
  |  Branch (433:13): [True: 0, False: 3]
  ------------------
  434|      0|            drbg->reseed_next_counter = 1;
  435|      3|    }
  436|       |
  437|      3|    entropylen = get_entropy(drbg, &entropy, min_entropy,
  438|      3|        min_entropylen, max_entropylen,
  439|      3|        prediction_resistance);
  440|      3|    if (entropylen < min_entropylen
  ------------------
  |  Branch (440:9): [True: 0, False: 3]
  ------------------
  441|      3|        || entropylen > max_entropylen) {
  ------------------
  |  Branch (441:12): [True: 0, False: 3]
  ------------------
  442|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_RETRIEVING_ENTROPY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  443|      0|        goto end;
  444|      0|    }
  445|       |
  446|      3|    if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen,
  ------------------
  |  Branch (446:9): [True: 0, False: 3]
  ------------------
  447|      3|            pers, perslen)) {
  448|      0|        cleanup_entropy(drbg, entropy, entropylen);
  449|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_INSTANTIATING_DRBG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  450|      0|        goto end;
  451|      0|    }
  452|      3|    cleanup_entropy(drbg, entropy, entropylen);
  453|       |
  454|      3|    drbg->state = EVP_RAND_STATE_READY;
  ------------------
  |  | 1346|      3|#define EVP_RAND_STATE_READY 1
  ------------------
  455|      3|    drbg->generate_counter = 1;
  456|      3|    drbg->reseed_time = time(NULL);
  457|      3|    tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter);
  ------------------
  |  |   62|      3|#define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed)
  ------------------
  458|       |
  459|      3|end:
  460|      3|    if (nonce != NULL)
  ------------------
  |  Branch (460:9): [True: 0, False: 3]
  ------------------
  461|      0|        ossl_prov_cleanup_nonce(drbg->provctx, nonce, noncelen);
  462|      3|    if (drbg->state == EVP_RAND_STATE_READY)
  ------------------
  |  | 1346|      3|#define EVP_RAND_STATE_READY 1
  ------------------
  |  Branch (462:9): [True: 3, False: 0]
  ------------------
  463|      3|        return 1;
  464|      0|    return 0;
  465|      3|}
ossl_prov_drbg_generate:
  625|  9.26k|{
  626|  9.26k|    int fork_id;
  627|  9.26k|    int reseed_required = 0;
  628|  9.26k|    int ret = 0;
  629|  9.26k|    time_t reseed_time_interval = drbg->reseed_time_interval;
  630|  9.26k|    time_t now = 0;
  631|       |
  632|  9.26k|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (632:9): [True: 0, False: 9.26k]
  ------------------
  633|      0|        return 0;
  634|       |
  635|  9.26k|    fork_id = openssl_get_fork_id();
  636|       |
  637|  9.26k|    if (reseed_time_interval > 0)
  ------------------
  |  Branch (637:9): [True: 9.26k, False: 0]
  ------------------
  638|  9.26k|        now = time(NULL);
  639|       |
  640|  9.26k|    if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock))
  ------------------
  |  Branch (640:9): [True: 8, False: 9.25k]
  |  Branch (640:31): [True: 0, False: 8]
  ------------------
  641|      0|        return 0;
  642|       |
  643|  9.26k|    if (drbg->state != EVP_RAND_STATE_READY) {
  ------------------
  |  | 1346|  9.26k|#define EVP_RAND_STATE_READY 1
  ------------------
  |  Branch (643:9): [True: 0, False: 9.26k]
  ------------------
  644|       |        /* try to recover from previous errors */
  645|      0|        rand_drbg_restart(drbg);
  646|       |
  647|      0|        if (drbg->state == EVP_RAND_STATE_ERROR) {
  ------------------
  |  | 1347|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  |  Branch (647:13): [True: 0, False: 0]
  ------------------
  648|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_IN_ERROR_STATE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  649|      0|            goto err;
  650|      0|        }
  651|      0|        if (drbg->state == EVP_RAND_STATE_UNINITIALISED) {
  ------------------
  |  | 1345|      0|#define EVP_RAND_STATE_UNINITIALISED 0
  ------------------
  |  Branch (651:13): [True: 0, False: 0]
  ------------------
  652|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_NOT_INSTANTIATED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  653|      0|            goto err;
  654|      0|        }
  655|      0|    }
  656|  9.26k|    if (strength > drbg->strength) {
  ------------------
  |  Branch (656:9): [True: 0, False: 9.26k]
  ------------------
  657|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INSUFFICIENT_DRBG_STRENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  658|      0|        goto err;
  659|      0|    }
  660|       |
  661|  9.26k|    if (outlen > drbg->max_request) {
  ------------------
  |  Branch (661:9): [True: 0, False: 9.26k]
  ------------------
  662|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_REQUEST_TOO_LARGE_FOR_DRBG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  663|      0|        goto err;
  664|      0|    }
  665|  9.26k|    if (adinlen > drbg->max_adinlen) {
  ------------------
  |  Branch (665:9): [True: 0, False: 9.26k]
  ------------------
  666|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_ADDITIONAL_INPUT_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  667|      0|        goto err;
  668|      0|    }
  669|       |
  670|  9.26k|    if (drbg->fork_id != fork_id) {
  ------------------
  |  Branch (670:9): [True: 0, False: 9.26k]
  ------------------
  671|      0|        drbg->fork_id = fork_id;
  672|      0|        reseed_required = 1;
  673|      0|    }
  674|       |
  675|  9.26k|    if (drbg->reseed_interval > 0) {
  ------------------
  |  Branch (675:9): [True: 9.26k, False: 0]
  ------------------
  676|  9.26k|        if (drbg->generate_counter >= drbg->reseed_interval)
  ------------------
  |  Branch (676:13): [True: 0, False: 9.26k]
  ------------------
  677|      0|            reseed_required = 1;
  678|  9.26k|    }
  679|  9.26k|    if (reseed_time_interval > 0) {
  ------------------
  |  Branch (679:9): [True: 9.26k, False: 0]
  ------------------
  680|  9.26k|        if (now < drbg->reseed_time
  ------------------
  |  Branch (680:13): [True: 0, False: 9.26k]
  ------------------
  681|  9.26k|            || now - drbg->reseed_time >= reseed_time_interval)
  ------------------
  |  Branch (681:16): [True: 4, False: 9.26k]
  ------------------
  682|      4|            reseed_required = 1;
  683|  9.26k|    }
  684|  9.26k|    if (drbg->parent != NULL
  ------------------
  |  Branch (684:9): [True: 9.26k, False: 0]
  ------------------
  685|  9.26k|        && get_parent_reseed_count(drbg) != drbg->parent_reseed_counter)
  ------------------
  |  Branch (685:12): [True: 2, False: 9.26k]
  ------------------
  686|      2|        reseed_required = 1;
  687|       |
  688|  9.26k|    if (reseed_required || prediction_resistance) {
  ------------------
  |  Branch (688:9): [True: 6, False: 9.26k]
  |  Branch (688:28): [True: 0, False: 9.26k]
  ------------------
  689|      6|        if (!ossl_prov_drbg_reseed_unlocked(drbg, prediction_resistance, NULL,
  ------------------
  |  Branch (689:13): [True: 0, False: 6]
  ------------------
  690|      6|                0, adin, adinlen)) {
  691|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_RESEED_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  692|      0|            goto err;
  693|      0|        }
  694|      6|        adin = NULL;
  695|      6|        adinlen = 0;
  696|      6|    }
  697|       |
  698|  9.26k|    if (!drbg->generate(drbg, out, outlen, adin, adinlen)) {
  ------------------
  |  Branch (698:9): [True: 0, False: 9.26k]
  ------------------
  699|      0|        drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1347|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  700|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_GENERATE_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  701|      0|        goto err;
  702|      0|    }
  703|       |
  704|  9.26k|    drbg->generate_counter++;
  705|       |
  706|  9.26k|    ret = 1;
  707|  9.26k|err:
  708|  9.26k|    if (drbg->lock != NULL)
  ------------------
  |  Branch (708:9): [True: 8, False: 9.25k]
  ------------------
  709|      8|        CRYPTO_THREAD_unlock(drbg->lock);
  710|       |
  711|  9.26k|    return ret;
  712|  9.26k|}
ossl_drbg_enable_locking:
  759|      1|{
  760|      1|    PROV_DRBG *drbg = vctx;
  761|       |
  762|      1|    if (drbg != NULL && drbg->lock == NULL) {
  ------------------
  |  Branch (762:9): [True: 1, False: 0]
  |  Branch (762:25): [True: 1, False: 0]
  ------------------
  763|      1|        if (drbg->parent_enable_locking != NULL)
  ------------------
  |  Branch (763:13): [True: 1, False: 0]
  ------------------
  764|      1|            if (!drbg->parent_enable_locking(drbg->parent)) {
  ------------------
  |  Branch (764:17): [True: 0, False: 1]
  ------------------
  765|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_PARENT_LOCKING_NOT_ENABLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  766|      0|                return 0;
  767|      0|            }
  768|      1|        drbg->lock = CRYPTO_THREAD_lock_new();
  769|      1|        if (drbg->lock == NULL) {
  ------------------
  |  Branch (769:13): [True: 0, False: 1]
  ------------------
  770|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_CREATE_LOCK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  771|      0|            return 0;
  772|      0|        }
  773|      1|    }
  774|      1|    return 1;
  775|      1|}
ossl_rand_drbg_new:
  797|      3|{
  798|      3|    PROV_DRBG *drbg;
  799|      3|    unsigned int p_str;
  800|      3|    const OSSL_DISPATCH *pfunc;
  801|       |
  802|      3|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (802:9): [True: 0, False: 3]
  ------------------
  803|      0|        return NULL;
  804|       |
  805|      3|    drbg = OPENSSL_zalloc(sizeof(*drbg));
  ------------------
  |  |  108|      3|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  806|      3|    if (drbg == NULL)
  ------------------
  |  Branch (806:9): [True: 0, False: 3]
  ------------------
  807|      0|        return NULL;
  808|       |
  809|      3|    drbg->provctx = provctx;
  810|      3|    drbg->instantiate = instantiate;
  811|      3|    drbg->uninstantiate = uninstantiate;
  812|      3|    drbg->reseed = reseed;
  813|      3|    drbg->generate = generate;
  814|      3|    drbg->fork_id = openssl_get_fork_id();
  815|       |
  816|       |    /* Extract parent's functions */
  817|      3|    drbg->parent = parent;
  818|      3|    if ((pfunc = find_call(p_dispatch, OSSL_FUNC_RAND_ENABLE_LOCKING)) != NULL)
  ------------------
  |  |  542|      3|#define OSSL_FUNC_RAND_ENABLE_LOCKING 8
  ------------------
  |  Branch (818:9): [True: 3, False: 0]
  ------------------
  819|      3|        drbg->parent_enable_locking = OSSL_FUNC_rand_enable_locking(pfunc);
  820|      3|    if ((pfunc = find_call(p_dispatch, OSSL_FUNC_RAND_LOCK)) != NULL)
  ------------------
  |  |  543|      3|#define OSSL_FUNC_RAND_LOCK 9
  ------------------
  |  Branch (820:9): [True: 3, False: 0]
  ------------------
  821|      3|        drbg->parent_lock = OSSL_FUNC_rand_lock(pfunc);
  822|      3|    if ((pfunc = find_call(p_dispatch, OSSL_FUNC_RAND_UNLOCK)) != NULL)
  ------------------
  |  |  544|      3|#define OSSL_FUNC_RAND_UNLOCK 10
  ------------------
  |  Branch (822:9): [True: 3, False: 0]
  ------------------
  823|      3|        drbg->parent_unlock = OSSL_FUNC_rand_unlock(pfunc);
  824|      3|    if ((pfunc = find_call(p_dispatch, OSSL_FUNC_RAND_GET_CTX_PARAMS)) != NULL)
  ------------------
  |  |  549|      3|#define OSSL_FUNC_RAND_GET_CTX_PARAMS 15
  ------------------
  |  Branch (824:9): [True: 3, False: 0]
  ------------------
  825|      3|        drbg->parent_get_ctx_params = OSSL_FUNC_rand_get_ctx_params(pfunc);
  826|      3|    if ((pfunc = find_call(p_dispatch, OSSL_FUNC_RAND_NONCE)) != NULL)
  ------------------
  |  |  541|      3|#define OSSL_FUNC_RAND_NONCE 7
  ------------------
  |  Branch (826:9): [True: 0, False: 3]
  ------------------
  827|      0|        drbg->parent_nonce = OSSL_FUNC_rand_nonce(pfunc);
  828|      3|    if ((pfunc = find_call(p_dispatch, OSSL_FUNC_RAND_GET_SEED)) != NULL)
  ------------------
  |  |  552|      3|#define OSSL_FUNC_RAND_GET_SEED 18
  ------------------
  |  Branch (828:9): [True: 3, False: 0]
  ------------------
  829|      3|        drbg->parent_get_seed = OSSL_FUNC_rand_get_seed(pfunc);
  830|      3|    if ((pfunc = find_call(p_dispatch, OSSL_FUNC_RAND_CLEAR_SEED)) != NULL)
  ------------------
  |  |  553|      3|#define OSSL_FUNC_RAND_CLEAR_SEED 19
  ------------------
  |  Branch (830:9): [True: 3, False: 0]
  ------------------
  831|      3|        drbg->parent_clear_seed = OSSL_FUNC_rand_clear_seed(pfunc);
  832|       |
  833|       |    /* Set some default maximums up */
  834|      3|    drbg->max_entropylen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      3|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  835|      3|    drbg->max_noncelen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      3|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  836|      3|    drbg->max_perslen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      3|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  837|      3|    drbg->max_adinlen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      3|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  838|      3|    drbg->generate_counter = 1;
  839|      3|    drbg->reseed_counter = 1;
  840|      3|    drbg->reseed_interval = RESEED_INTERVAL;
  ------------------
  |  |   31|      3|#define RESEED_INTERVAL (1 << 8)
  ------------------
  841|      3|    drbg->reseed_time_interval = TIME_INTERVAL;
  ------------------
  |  |   32|      3|#define TIME_INTERVAL (60 * 60) /* 1 hour */
  ------------------
  842|       |
  843|      3|    if (!dnew(drbg))
  ------------------
  |  Branch (843:9): [True: 0, False: 3]
  ------------------
  844|      0|        goto err;
  845|       |
  846|      3|    if (parent != NULL) {
  ------------------
  |  Branch (846:9): [True: 3, False: 0]
  ------------------
  847|      3|        if (!get_parent_strength(drbg, &p_str))
  ------------------
  |  Branch (847:13): [True: 0, False: 3]
  ------------------
  848|      0|            goto err;
  849|      3|        if (drbg->strength > p_str) {
  ------------------
  |  Branch (849:13): [True: 0, False: 3]
  ------------------
  850|       |            /*
  851|       |             * We currently don't support the algorithm from NIST SP 800-90C
  852|       |             * 10.1.2 to use a weaker DRBG as source
  853|       |             */
  854|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_PARENT_STRENGTH_TOO_WEAK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  855|      0|            goto err;
  856|      0|        }
  857|      3|    }
  858|       |#ifdef TSAN_REQUIRES_LOCKING
  859|       |    if (!ossl_drbg_enable_locking(drbg))
  860|       |        goto err;
  861|       |#endif
  862|      3|    return drbg;
  863|       |
  864|      0|err:
  865|      0|    dfree(drbg);
  866|       |    return NULL;
  867|      3|}
ossl_drbg_get_ctx_params:
  884|  1.57k|{
  885|  1.57k|    if (p->state != NULL && !OSSL_PARAM_set_int(p->state, drbg->state))
  ------------------
  |  Branch (885:9): [True: 1.56k, False: 10]
  |  Branch (885:29): [True: 0, False: 1.56k]
  ------------------
  886|      0|        return 0;
  887|       |
  888|  1.57k|    if (p->str != NULL && !OSSL_PARAM_set_int(p->str, drbg->strength))
  ------------------
  |  Branch (888:9): [True: 10, False: 1.56k]
  |  Branch (888:27): [True: 0, False: 10]
  ------------------
  889|      0|        return 0;
  890|       |
  891|  1.57k|    if (p->minentlen != NULL
  ------------------
  |  Branch (891:9): [True: 0, False: 1.57k]
  ------------------
  892|      0|        && !OSSL_PARAM_set_size_t(p->minentlen, drbg->min_entropylen))
  ------------------
  |  Branch (892:12): [True: 0, False: 0]
  ------------------
  893|      0|        return 0;
  894|       |
  895|  1.57k|    if (p->maxentlen != NULL
  ------------------
  |  Branch (895:9): [True: 0, False: 1.57k]
  ------------------
  896|      0|        && !OSSL_PARAM_set_size_t(p->maxentlen, drbg->max_entropylen))
  ------------------
  |  Branch (896:12): [True: 0, False: 0]
  ------------------
  897|      0|        return 0;
  898|       |
  899|  1.57k|    if (p->minnonlen != NULL
  ------------------
  |  Branch (899:9): [True: 0, False: 1.57k]
  ------------------
  900|      0|        && !OSSL_PARAM_set_size_t(p->minnonlen, drbg->min_noncelen))
  ------------------
  |  Branch (900:12): [True: 0, False: 0]
  ------------------
  901|      0|        return 0;
  902|       |
  903|  1.57k|    if (p->maxnonlen != NULL
  ------------------
  |  Branch (903:9): [True: 0, False: 1.57k]
  ------------------
  904|      0|        && !OSSL_PARAM_set_size_t(p->maxnonlen, drbg->max_noncelen))
  ------------------
  |  Branch (904:12): [True: 0, False: 0]
  ------------------
  905|      0|        return 0;
  906|       |
  907|  1.57k|    if (p->maxperlen != NULL
  ------------------
  |  Branch (907:9): [True: 0, False: 1.57k]
  ------------------
  908|      0|        && !OSSL_PARAM_set_size_t(p->maxperlen, drbg->max_perslen))
  ------------------
  |  Branch (908:12): [True: 0, False: 0]
  ------------------
  909|      0|        return 0;
  910|       |
  911|  1.57k|    if (p->maxadlen != NULL
  ------------------
  |  Branch (911:9): [True: 0, False: 1.57k]
  ------------------
  912|      0|        && !OSSL_PARAM_set_size_t(p->maxadlen, drbg->max_adinlen))
  ------------------
  |  Branch (912:12): [True: 0, False: 0]
  ------------------
  913|      0|        return 0;
  914|       |
  915|  1.57k|    if (p->reseed_req != NULL
  ------------------
  |  Branch (915:9): [True: 0, False: 1.57k]
  ------------------
  916|      0|        && !OSSL_PARAM_set_uint(p->reseed_req, drbg->reseed_interval))
  ------------------
  |  Branch (916:12): [True: 0, False: 0]
  ------------------
  917|      0|        return 0;
  918|       |
  919|  1.57k|    if (p->reseed_time != NULL
  ------------------
  |  Branch (919:9): [True: 0, False: 1.57k]
  ------------------
  920|      0|        && !OSSL_PARAM_set_time_t(p->reseed_time, drbg->reseed_time))
  ------------------
  |  Branch (920:12): [True: 0, False: 0]
  ------------------
  921|      0|        return 0;
  922|       |
  923|  1.57k|    if (p->reseed_int != NULL
  ------------------
  |  Branch (923:9): [True: 0, False: 1.57k]
  ------------------
  924|      0|        && !OSSL_PARAM_set_time_t(p->reseed_int, drbg->reseed_time_interval))
  ------------------
  |  Branch (924:12): [True: 0, False: 0]
  ------------------
  925|      0|        return 0;
  926|       |
  927|  1.57k|    if (!OSSL_FIPS_IND_GET_CTX_FROM_PARAM(drbg, p->ind))
  ------------------
  |  |  161|  1.57k|#define OSSL_FIPS_IND_GET_CTX_FROM_PARAM(ctx, params) 1
  ------------------
  |  Branch (927:9): [Folded, False: 1.57k]
  ------------------
  928|      0|        return 0;
  929|       |
  930|  1.57k|    return 1;
  931|  1.57k|}
ossl_drbg_get_ctx_params_no_lock:
  940|  20.1k|{
  941|  20.1k|    size_t cnt = 0;
  942|       |
  943|       |    /* This value never changes once set */
  944|  20.1k|    if (p->maxreq != NULL) {
  ------------------
  |  Branch (944:9): [True: 9.25k, False: 10.8k]
  ------------------
  945|  9.25k|        if (!OSSL_PARAM_set_size_t(p->maxreq, drbg->max_request))
  ------------------
  |  Branch (945:13): [True: 0, False: 9.25k]
  ------------------
  946|      0|            return 0;
  947|  9.25k|        cnt++;
  948|  9.25k|    }
  949|       |
  950|       |    /*
  951|       |     * Can be changed by multiple threads, but we tolerate inaccuracies in this
  952|       |     * value.
  953|       |     */
  954|  20.1k|    if (p->reseed_cnt != NULL) {
  ------------------
  |  Branch (954:9): [True: 9.26k, False: 10.8k]
  ------------------
  955|  9.26k|        if (!OSSL_PARAM_set_uint(p->reseed_cnt, tsan_load(&drbg->reseed_counter)))
  ------------------
  |  |   61|  9.26k|#define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
  ------------------
  |  Branch (955:13): [True: 0, False: 9.26k]
  ------------------
  956|      0|            return 0;
  957|  9.26k|        cnt++;
  958|  9.26k|    }
  959|       |
  960|  20.1k|    if (params[cnt].key == NULL)
  ------------------
  |  Branch (960:9): [True: 18.5k, False: 1.57k]
  ------------------
  961|  18.5k|        *complete = 1;
  962|  1.57k|    else
  963|  1.57k|        *complete = 0;
  964|       |
  965|  20.1k|    return 1;
  966|  20.1k|}
ossl_drbg_set_ctx_params:
  970|      3|{
  971|      3|    if (p->reseed_req != NULL
  ------------------
  |  Branch (971:9): [True: 3, False: 0]
  ------------------
  972|      3|        && !OSSL_PARAM_get_uint(p->reseed_req, &drbg->reseed_interval))
  ------------------
  |  Branch (972:12): [True: 0, False: 3]
  ------------------
  973|      0|        return 0;
  974|       |
  975|      3|    if (p->reseed_time != NULL
  ------------------
  |  Branch (975:9): [True: 3, False: 0]
  ------------------
  976|      3|        && !OSSL_PARAM_get_time_t(p->reseed_time, &drbg->reseed_time_interval))
  ------------------
  |  Branch (976:12): [True: 0, False: 3]
  ------------------
  977|      0|        return 0;
  978|       |
  979|      3|    return 1;
  980|      3|}
drbg.c:get_entropy:
  195|      9|{
  196|      9|    size_t bytes;
  197|      9|    unsigned int p_str;
  198|       |
  199|      9|    if (drbg->parent == NULL)
  ------------------
  |  Branch (199:9): [True: 0, False: 9]
  ------------------
  200|       |        /*
  201|       |         * In normal use (i.e. OpenSSL's own uses), this is never called.
  202|       |         * This remains purely for legacy reasons.
  203|       |         */
  204|      0|        return ossl_prov_get_entropy(drbg->provctx, pout, entropy, min_len,
  205|      0|            max_len);
  206|       |
  207|      9|    if (drbg->parent_get_seed == NULL) {
  ------------------
  |  Branch (207:9): [True: 0, False: 9]
  ------------------
  208|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_PARENT_CANNOT_SUPPLY_ENTROPY_SEED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  209|      0|        return 0;
  210|      0|    }
  211|      9|    if (!get_parent_strength(drbg, &p_str))
  ------------------
  |  Branch (211:9): [True: 0, False: 9]
  ------------------
  212|      0|        return 0;
  213|      9|    if (drbg->strength > p_str) {
  ------------------
  |  Branch (213:9): [True: 0, False: 9]
  ------------------
  214|       |        /*
  215|       |         * We currently don't support the algorithm from NIST SP 800-90C
  216|       |         * 10.1.2 to use a weaker DRBG as source
  217|       |         */
  218|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_PARENT_STRENGTH_TOO_WEAK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  219|      0|        return 0;
  220|      0|    }
  221|       |
  222|       |    /*
  223|       |     * Our lock is already held, but we need to lock our parent before
  224|       |     * generating bits from it.  Note: taking the lock will be a no-op
  225|       |     * if locking is not required (while drbg->parent->lock == NULL).
  226|       |     */
  227|      9|    if (!ossl_drbg_lock_parent(drbg))
  ------------------
  |  Branch (227:9): [True: 0, False: 9]
  ------------------
  228|      0|        return 0;
  229|       |    /*
  230|       |     * Get random data from parent.  Include our DRBG address as
  231|       |     * additional input, in order to provide a distinction between
  232|       |     * different DRBG child instances.
  233|       |     *
  234|       |     * Note: using the sizeof() operator on a pointer triggers
  235|       |     *       a warning in some static code analyzers, but it's
  236|       |     *       intentional and correct here.
  237|       |     */
  238|      9|    bytes = drbg->parent_get_seed(drbg->parent, pout,
  239|      9|        entropy > 0 ? entropy : (int)drbg->strength,
  ------------------
  |  Branch (239:9): [True: 9, False: 0]
  ------------------
  240|      9|        min_len, max_len, prediction_resistance,
  241|      9|        (unsigned char *)&drbg, sizeof(drbg));
  242|      9|    ossl_drbg_unlock_parent(drbg);
  243|      9|    return bytes;
  244|      9|}
drbg.c:ossl_drbg_lock_parent:
   64|  9.30k|{
   65|  9.30k|    void *parent = drbg->parent;
   66|       |
   67|  9.30k|    if (parent != NULL
  ------------------
  |  Branch (67:9): [True: 9.30k, False: 0]
  ------------------
   68|  9.30k|        && drbg->parent_lock != NULL
  ------------------
  |  Branch (68:12): [True: 9.30k, False: 0]
  ------------------
   69|  9.30k|        && !drbg->parent_lock(parent)) {
  ------------------
  |  Branch (69:12): [True: 0, False: 9.30k]
  ------------------
   70|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_PARENT_LOCKING_NOT_ENABLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   71|      0|        return 0;
   72|      0|    }
   73|  9.30k|    return 1;
   74|  9.30k|}
drbg.c:ossl_drbg_unlock_parent:
   77|  9.30k|{
   78|  9.30k|    void *parent = drbg->parent;
   79|       |
   80|  9.30k|    if (parent != NULL && drbg->parent_unlock != NULL)
  ------------------
  |  Branch (80:9): [True: 9.30k, False: 0]
  |  Branch (80:27): [True: 9.30k, False: 0]
  ------------------
   81|  9.30k|        drbg->parent_unlock(parent);
   82|  9.30k|}
drbg.c:cleanup_entropy:
  247|      9|{
  248|      9|    if (drbg->parent == NULL) {
  ------------------
  |  Branch (248:9): [True: 0, False: 9]
  ------------------
  249|      0|        ossl_prov_cleanup_entropy(drbg->provctx, out, outlen);
  250|      9|    } else if (drbg->parent_clear_seed != NULL) {
  ------------------
  |  Branch (250:16): [True: 9, False: 0]
  ------------------
  251|      9|        if (!ossl_drbg_lock_parent(drbg))
  ------------------
  |  Branch (251:13): [True: 0, False: 9]
  ------------------
  252|      0|            return;
  253|      9|        drbg->parent_clear_seed(drbg->parent, out, outlen);
  254|      9|        ossl_drbg_unlock_parent(drbg);
  255|      9|    }
  256|      9|}
drbg.c:ossl_prov_drbg_reseed_unlocked:
  486|      6|{
  487|      6|    unsigned char *entropy = NULL;
  488|      6|    size_t entropylen = 0;
  489|       |
  490|      6|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (490:9): [True: 0, False: 6]
  ------------------
  491|      0|        return 0;
  492|       |
  493|      6|    if (drbg->state != EVP_RAND_STATE_READY) {
  ------------------
  |  | 1346|      6|#define EVP_RAND_STATE_READY 1
  ------------------
  |  Branch (493:9): [True: 0, False: 6]
  ------------------
  494|       |        /* try to recover from previous errors */
  495|      0|        rand_drbg_restart(drbg);
  496|       |
  497|      0|        if (drbg->state == EVP_RAND_STATE_ERROR) {
  ------------------
  |  | 1347|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  |  Branch (497:13): [True: 0, False: 0]
  ------------------
  498|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_IN_ERROR_STATE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  499|      0|            return 0;
  500|      0|        }
  501|      0|        if (drbg->state == EVP_RAND_STATE_UNINITIALISED) {
  ------------------
  |  | 1345|      0|#define EVP_RAND_STATE_UNINITIALISED 0
  ------------------
  |  Branch (501:13): [True: 0, False: 0]
  ------------------
  502|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_NOT_INSTANTIATED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  503|      0|            return 0;
  504|      0|        }
  505|      0|    }
  506|       |
  507|      6|    if (ent != NULL) {
  ------------------
  |  Branch (507:9): [True: 0, False: 6]
  ------------------
  508|      0|        if (ent_len < drbg->min_entropylen) {
  ------------------
  |  Branch (508:13): [True: 0, False: 0]
  ------------------
  509|      0|            ERR_raise(ERR_LIB_RAND, RAND_R_ENTROPY_OUT_OF_RANGE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  510|      0|            drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1347|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  511|      0|            return 0;
  512|      0|        }
  513|      0|        if (ent_len > drbg->max_entropylen) {
  ------------------
  |  Branch (513:13): [True: 0, False: 0]
  ------------------
  514|      0|            ERR_raise(ERR_LIB_RAND, RAND_R_ENTROPY_INPUT_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  515|      0|            drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1347|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  516|      0|            return 0;
  517|      0|        }
  518|      0|    }
  519|       |
  520|      6|    if (adin == NULL) {
  ------------------
  |  Branch (520:9): [True: 6, False: 0]
  ------------------
  521|      6|        adinlen = 0;
  522|      6|    } else if (adinlen > drbg->max_adinlen) {
  ------------------
  |  Branch (522:16): [True: 0, False: 0]
  ------------------
  523|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_ADDITIONAL_INPUT_TOO_LONG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  524|      0|        return 0;
  525|      0|    }
  526|       |
  527|      6|    drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1347|      6|#define EVP_RAND_STATE_ERROR 2
  ------------------
  528|       |
  529|      6|    drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter);
  ------------------
  |  |   61|      6|#define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
  ------------------
  530|      6|    if (drbg->reseed_next_counter) {
  ------------------
  |  Branch (530:9): [True: 6, False: 0]
  ------------------
  531|      6|        drbg->reseed_next_counter++;
  532|      6|        if (!drbg->reseed_next_counter)
  ------------------
  |  Branch (532:13): [True: 0, False: 6]
  ------------------
  533|      0|            drbg->reseed_next_counter = 1;
  534|      6|    }
  535|       |
  536|      6|    if (ent != NULL) {
  ------------------
  |  Branch (536:9): [True: 0, False: 6]
  ------------------
  537|       |#ifdef FIPS_MODULE
  538|       |        /*
  539|       |         * NIST SP-800-90A mandates that entropy *shall not* be provided
  540|       |         * by the consuming application. Instead the data is added as additional
  541|       |         * input.
  542|       |         *
  543|       |         * (NIST SP-800-90Ar1, Sections 9.1 and 9.2)
  544|       |         */
  545|       |        if (!drbg->reseed(drbg, NULL, 0, ent, ent_len)) {
  546|       |            ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_RESEED);
  547|       |            return 0;
  548|       |        }
  549|       |#else
  550|      0|        if (!drbg->reseed(drbg, ent, ent_len, adin, adinlen)) {
  ------------------
  |  Branch (550:13): [True: 0, False: 0]
  ------------------
  551|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_RESEED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  552|      0|            return 0;
  553|      0|        }
  554|       |        /* There isn't much point adding the same additional input twice */
  555|      0|        adin = NULL;
  556|      0|        adinlen = 0;
  557|      0|#endif
  558|      0|    }
  559|       |
  560|       |    /* Reseed using our sources in addition */
  561|      6|    entropylen = get_entropy(drbg, &entropy, drbg->strength,
  562|      6|        drbg->min_entropylen, drbg->max_entropylen,
  563|      6|        prediction_resistance);
  564|      6|    if (entropylen < drbg->min_entropylen
  ------------------
  |  Branch (564:9): [True: 0, False: 6]
  ------------------
  565|      6|        || entropylen > drbg->max_entropylen) {
  ------------------
  |  Branch (565:12): [True: 0, False: 6]
  ------------------
  566|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_RETRIEVING_ENTROPY);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  567|      0|        goto end;
  568|      0|    }
  569|       |
  570|      6|    if (!drbg->reseed(drbg, entropy, entropylen, adin, adinlen))
  ------------------
  |  Branch (570:9): [True: 0, False: 6]
  ------------------
  571|      0|        goto end;
  572|       |
  573|      6|    drbg->state = EVP_RAND_STATE_READY;
  ------------------
  |  | 1346|      6|#define EVP_RAND_STATE_READY 1
  ------------------
  574|      6|    drbg->generate_counter = 1;
  575|      6|    drbg->reseed_time = time(NULL);
  576|      6|    tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter);
  ------------------
  |  |   62|      6|#define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed)
  ------------------
  577|      6|    if (drbg->parent != NULL)
  ------------------
  |  Branch (577:9): [True: 6, False: 0]
  ------------------
  578|      6|        drbg->parent_reseed_counter = get_parent_reseed_count(drbg);
  579|       |
  580|      6|end:
  581|      6|    cleanup_entropy(drbg, entropy, entropylen);
  582|      6|    if (drbg->state == EVP_RAND_STATE_READY)
  ------------------
  |  | 1346|      6|#define EVP_RAND_STATE_READY 1
  ------------------
  |  Branch (582:9): [True: 6, False: 0]
  ------------------
  583|      6|        return 1;
  584|      0|    return 0;
  585|      6|}
drbg.c:get_parent_reseed_count:
  110|  9.27k|{
  111|  9.27k|    OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  9.27k|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  9.27k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  112|  9.27k|    void *parent = drbg->parent;
  113|  9.27k|    unsigned int r = 0;
  114|       |
  115|  9.27k|    *params = OSSL_PARAM_construct_uint(OSSL_DRBG_PARAM_RESEED_COUNTER, &r);
  ------------------
  |  |  250|  9.27k|# define OSSL_DRBG_PARAM_RESEED_COUNTER "reseed_counter"
  ------------------
  116|  9.27k|    if (!ossl_drbg_lock_parent(drbg)) {
  ------------------
  |  Branch (116:9): [True: 0, False: 9.27k]
  ------------------
  117|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_LOCK_PARENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  118|      0|        goto err;
  119|      0|    }
  120|  9.27k|    if (!drbg->parent_get_ctx_params(parent, params))
  ------------------
  |  Branch (120:9): [True: 0, False: 9.27k]
  ------------------
  121|      0|        r = 0;
  122|  9.27k|    ossl_drbg_unlock_parent(drbg);
  123|  9.27k|    return r;
  124|       |
  125|      0|err:
  126|      0|    r = tsan_load(&drbg->reseed_counter) - 2;
  ------------------
  |  |   61|      0|#define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
  ------------------
  127|      0|    if (r == 0)
  ------------------
  |  Branch (127:9): [True: 0, False: 0]
  ------------------
  128|      0|        r = UINT_MAX;
  129|      0|    return r;
  130|  9.27k|}
drbg.c:find_call:
  748|     21|{
  749|     21|    if (dispatch != NULL)
  ------------------
  |  Branch (749:9): [True: 21, False: 0]
  ------------------
  750|    247|        while (dispatch->function_id != 0) {
  ------------------
  |  Branch (750:16): [True: 244, False: 3]
  ------------------
  751|    244|            if (dispatch->function_id == function)
  ------------------
  |  Branch (751:17): [True: 18, False: 226]
  ------------------
  752|     18|                return dispatch;
  753|    226|            dispatch++;
  754|    226|        }
  755|      3|    return NULL;
  756|     21|}
drbg.c:get_parent_strength:
   85|     12|{
   86|     12|    OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|     12|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|     12|    { NULL, 0, NULL, 0, 0 }
  ------------------
   87|     12|    void *parent = drbg->parent;
   88|     12|    int res;
   89|       |
   90|     12|    if (drbg->parent_get_ctx_params == NULL) {
  ------------------
  |  Branch (90:9): [True: 0, False: 12]
  ------------------
   91|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_GET_PARENT_STRENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   92|      0|        return 0;
   93|      0|    }
   94|       |
   95|     12|    *params = OSSL_PARAM_construct_uint(OSSL_RAND_PARAM_STRENGTH, str);
  ------------------
  |  |  542|     12|# define OSSL_RAND_PARAM_STRENGTH "strength"
  ------------------
   96|     12|    if (!ossl_drbg_lock_parent(drbg)) {
  ------------------
  |  Branch (96:9): [True: 0, False: 12]
  ------------------
   97|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_LOCK_PARENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   98|      0|        return 0;
   99|      0|    }
  100|     12|    res = drbg->parent_get_ctx_params(parent, params);
  101|     12|    ossl_drbg_unlock_parent(drbg);
  102|     12|    if (!res) {
  ------------------
  |  Branch (102:9): [True: 0, False: 12]
  ------------------
  103|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_GET_PARENT_STRENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  104|      0|        return 0;
  105|      0|    }
  106|     12|    return 1;
  107|     12|}

drbg_ctr.c:drbg_ctr_new_wrapper:
  648|      3|{
  649|      3|    return ossl_rand_drbg_new(provctx, parent, parent_dispatch,
  650|      3|        &drbg_ctr_new, &drbg_ctr_free,
  651|      3|        &drbg_ctr_instantiate, &drbg_ctr_uninstantiate,
  652|      3|        &drbg_ctr_reseed, &drbg_ctr_generate);
  653|      3|}
drbg_ctr.c:drbg_ctr_new:
  633|      3|{
  634|      3|    PROV_DRBG_CTR *ctr;
  635|       |
  636|      3|    ctr = OPENSSL_secure_zalloc(sizeof(*ctr));
  ------------------
  |  |  141|      3|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  637|      3|    if (ctr == NULL)
  ------------------
  |  Branch (637:9): [True: 0, False: 3]
  ------------------
  638|      0|        return 0;
  639|       |
  640|      3|    ctr->use_df = 1;
  641|      3|    drbg->data = ctr;
  642|      3|    OSSL_FIPS_IND_INIT(drbg)
  643|      3|    return drbg_ctr_init_lengths(drbg);
  644|      3|}
drbg_ctr.c:drbg_ctr_init_lengths:
  539|      6|{
  540|      6|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  541|      6|    int res = 1;
  542|       |
  543|       |    /* Maximum number of bits per request = 2^19  = 2^16 bytes */
  544|      6|    drbg->max_request = 1 << 16;
  545|      6|    if (ctr->use_df) {
  ------------------
  |  Branch (545:9): [True: 6, False: 0]
  ------------------
  546|      6|        drbg->min_entropylen = 0;
  547|      6|        drbg->max_entropylen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      6|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  548|      6|        drbg->min_noncelen = 0;
  549|      6|        drbg->max_noncelen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      6|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  550|      6|        drbg->max_perslen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      6|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  551|      6|        drbg->max_adinlen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      6|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  552|       |
  553|      6|        if (ctr->keylen > 0) {
  ------------------
  |  Branch (553:13): [True: 3, False: 3]
  ------------------
  554|      3|            drbg->min_entropylen = ctr->keylen;
  555|      3|            drbg->min_noncelen = drbg->min_entropylen / 2;
  556|      3|        }
  557|      6|    } else {
  558|      0|        const size_t len = ctr->keylen > 0 ? drbg->seedlen : DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      0|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  |  Branch (558:28): [True: 0, False: 0]
  ------------------
  559|       |
  560|      0|        drbg->min_entropylen = len;
  561|      0|        drbg->max_entropylen = len;
  562|       |        /* Nonce not used */
  563|      0|        drbg->min_noncelen = 0;
  564|      0|        drbg->max_noncelen = 0;
  565|      0|        drbg->max_perslen = len;
  566|      0|        drbg->max_adinlen = len;
  567|      0|    }
  568|      6|    return res;
  569|      6|}
drbg_ctr.c:drbg_ctr_instantiate:
  322|      3|{
  323|      3|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  324|       |
  325|      3|    if (entropy == NULL)
  ------------------
  |  Branch (325:9): [True: 0, False: 3]
  ------------------
  326|      0|        return 0;
  327|       |
  328|      3|    memset(ctr->K, 0, sizeof(ctr->K));
  329|      3|    memset(ctr->V, 0, sizeof(ctr->V));
  330|      3|    if (!EVP_CipherInit_ex(ctr->ctx_ecb, NULL, NULL, ctr->K, NULL, -1))
  ------------------
  |  Branch (330:9): [True: 0, False: 3]
  ------------------
  331|      0|        return 0;
  332|       |
  333|      3|    inc_128(ctr);
  334|      3|    if (!ctr_update(drbg, entropy, entropylen, pers, perslen, nonce, noncelen))
  ------------------
  |  Branch (334:9): [True: 0, False: 3]
  ------------------
  335|      0|        return 0;
  336|      3|    return 1;
  337|      3|}
drbg_ctr.c:inc_128:
   71|  27.8k|{
   72|  27.8k|    unsigned char *p = &ctr->V[0];
   73|  27.8k|    u32 n = 16, c = 1;
   74|       |
   75|   445k|    do {
   76|   445k|        --n;
   77|   445k|        c += p[n];
   78|   445k|        p[n] = (u8)c;
   79|   445k|        c >>= 8;
   80|   445k|    } while (n);
  ------------------
  |  Branch (80:14): [True: 417k, False: 27.8k]
  ------------------
   81|  27.8k|}
drbg_ctr.c:ctr_update:
  276|  9.28k|{
  277|  9.28k|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  278|  9.28k|    int outlen = AES_BLOCK_SIZE;
  ------------------
  |  |   26|  9.28k|#define AES_BLOCK_SIZE 16
  ------------------
  279|  9.28k|    unsigned char V_tmp[48], out[48];
  280|  9.28k|    unsigned char len;
  281|       |
  282|       |    /* correct key is already set up. */
  283|  9.28k|    memcpy(V_tmp, ctr->V, 16);
  284|  9.28k|    inc_128(ctr);
  285|  9.28k|    memcpy(V_tmp + 16, ctr->V, 16);
  286|  9.28k|    if (ctr->keylen == 16) {
  ------------------
  |  Branch (286:9): [True: 0, False: 9.28k]
  ------------------
  287|      0|        len = 32;
  288|  9.28k|    } else {
  289|  9.28k|        inc_128(ctr);
  290|  9.28k|        memcpy(V_tmp + 32, ctr->V, 16);
  291|  9.28k|        len = 48;
  292|  9.28k|    }
  293|  9.28k|    if (!EVP_CipherUpdate(ctr->ctx_ecb, out, &outlen, V_tmp, len)
  ------------------
  |  Branch (293:9): [True: 0, False: 9.28k]
  ------------------
  294|  9.28k|        || outlen != len)
  ------------------
  |  Branch (294:12): [True: 0, False: 9.28k]
  ------------------
  295|      0|        return 0;
  296|  9.28k|    memcpy(ctr->K, out, ctr->keylen);
  297|  9.28k|    memcpy(ctr->V, out + ctr->keylen, 16);
  298|       |
  299|  9.28k|    if (ctr->use_df) {
  ------------------
  |  Branch (299:9): [True: 9.28k, False: 0]
  ------------------
  300|       |        /* If no input reuse existing derived value */
  301|  9.28k|        if (in1 != NULL || nonce != NULL || in2 != NULL)
  ------------------
  |  Branch (301:13): [True: 17, False: 9.26k]
  |  Branch (301:28): [True: 0, False: 9.26k]
  |  Branch (301:45): [True: 0, False: 9.26k]
  ------------------
  302|     17|            if (!ctr_df(ctr, in1, in1len, nonce, noncelen, in2, in2len))
  ------------------
  |  Branch (302:17): [True: 0, False: 17]
  ------------------
  303|      0|                return 0;
  304|       |        /* If this a reuse input in1len != 0 */
  305|  9.28k|        if (in1len)
  ------------------
  |  Branch (305:13): [True: 25, False: 9.25k]
  ------------------
  306|     25|            ctr_XOR(ctr, ctr->KX, drbg->seedlen);
  307|  9.28k|    } else {
  308|      0|        ctr_XOR(ctr, in1, in1len);
  309|      0|        ctr_XOR(ctr, in2, in2len);
  310|      0|    }
  311|       |
  312|  9.28k|    if (!EVP_CipherInit_ex(ctr->ctx_ecb, NULL, NULL, ctr->K, NULL, -1)
  ------------------
  |  Branch (312:9): [True: 0, False: 9.28k]
  ------------------
  313|  9.28k|        || !EVP_CipherInit_ex(ctr->ctx_ctr, NULL, NULL, ctr->K, NULL, -1))
  ------------------
  |  Branch (313:12): [True: 0, False: 9.28k]
  ------------------
  314|      0|        return 0;
  315|  9.28k|    return 1;
  316|  9.28k|}
drbg_ctr.c:ctr_df:
  213|     17|{
  214|     17|    static unsigned char c80 = 0x80;
  215|     17|    size_t inlen;
  216|     17|    unsigned char *p = ctr->bltmp;
  217|     17|    int outlen = AES_BLOCK_SIZE;
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  218|       |
  219|     17|    if (!ctr_BCC_init(ctr))
  ------------------
  |  Branch (219:9): [True: 0, False: 17]
  ------------------
  220|      0|        return 0;
  221|     17|    if (in1 == NULL)
  ------------------
  |  Branch (221:9): [True: 0, False: 17]
  ------------------
  222|      0|        in1len = 0;
  223|     17|    if (in2 == NULL)
  ------------------
  |  Branch (223:9): [True: 17, False: 0]
  ------------------
  224|     17|        in2len = 0;
  225|     17|    if (in3 == NULL)
  ------------------
  |  Branch (225:9): [True: 14, False: 3]
  ------------------
  226|     14|        in3len = 0;
  227|     17|    inlen = in1len + in2len + in3len;
  228|       |    /* Initialise L||N in temporary block */
  229|     17|    *p++ = (inlen >> 24) & 0xff;
  230|     17|    *p++ = (inlen >> 16) & 0xff;
  231|     17|    *p++ = (inlen >> 8) & 0xff;
  232|     17|    *p++ = inlen & 0xff;
  233|       |
  234|       |    /* NB keylen is at most 32 bytes */
  235|     17|    *p++ = 0;
  236|     17|    *p++ = 0;
  237|     17|    *p++ = 0;
  238|     17|    *p = (unsigned char)((ctr->keylen + 16) & 0xff);
  239|     17|    ctr->bltmp_pos = 8;
  240|     17|    if (!ctr_BCC_update(ctr, in1, in1len)
  ------------------
  |  Branch (240:9): [True: 0, False: 17]
  ------------------
  241|     17|        || !ctr_BCC_update(ctr, in2, in2len)
  ------------------
  |  Branch (241:12): [True: 0, False: 17]
  ------------------
  242|     17|        || !ctr_BCC_update(ctr, in3, in3len)
  ------------------
  |  Branch (242:12): [True: 0, False: 17]
  ------------------
  243|     17|        || !ctr_BCC_update(ctr, &c80, 1)
  ------------------
  |  Branch (243:12): [True: 0, False: 17]
  ------------------
  244|     17|        || !ctr_BCC_final(ctr))
  ------------------
  |  Branch (244:12): [True: 0, False: 17]
  ------------------
  245|      0|        return 0;
  246|       |    /* Set up key K */
  247|     17|    if (!EVP_CipherInit_ex(ctr->ctx_ecb, NULL, NULL, ctr->KX, NULL, -1))
  ------------------
  |  Branch (247:9): [True: 0, False: 17]
  ------------------
  248|      0|        return 0;
  249|       |    /* X follows key K */
  250|     17|    if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX, &outlen, ctr->KX + ctr->keylen,
  ------------------
  |  Branch (250:9): [True: 0, False: 17]
  ------------------
  251|     17|            AES_BLOCK_SIZE)
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  252|     17|        || outlen != AES_BLOCK_SIZE)
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  |  Branch (252:12): [True: 0, False: 17]
  ------------------
  253|      0|        return 0;
  254|     17|    if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX + 16, &outlen, ctr->KX,
  ------------------
  |  Branch (254:9): [True: 0, False: 17]
  ------------------
  255|     17|            AES_BLOCK_SIZE)
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  256|     17|        || outlen != AES_BLOCK_SIZE)
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  |  Branch (256:12): [True: 0, False: 17]
  ------------------
  257|      0|        return 0;
  258|     17|    if (ctr->keylen != 16)
  ------------------
  |  Branch (258:9): [True: 17, False: 0]
  ------------------
  259|     17|        if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX + 32, &outlen,
  ------------------
  |  Branch (259:13): [True: 0, False: 17]
  ------------------
  260|     17|                ctr->KX + 16, AES_BLOCK_SIZE)
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  261|     17|            || outlen != AES_BLOCK_SIZE)
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  |  Branch (261:16): [True: 0, False: 17]
  ------------------
  262|      0|            return 0;
  263|     17|    return 1;
  264|     17|}
drbg_ctr.c:ctr_BCC_init:
  150|     17|{
  151|     17|    unsigned char bltmp[48] = { 0 };
  152|     17|    unsigned char num_of_blk;
  153|       |
  154|     17|    memset(ctr->KX, 0, 48);
  155|     17|    num_of_blk = ctr->keylen == 16 ? 2 : 3;
  ------------------
  |  Branch (155:18): [True: 0, False: 17]
  ------------------
  156|     17|    bltmp[(AES_BLOCK_SIZE * 1) + 3] = 1;
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  157|     17|    bltmp[(AES_BLOCK_SIZE * 2) + 3] = 2;
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  158|     17|    return ctr_BCC_block(ctr, ctr->KX, bltmp, num_of_blk * AES_BLOCK_SIZE);
  ------------------
  |  |   26|     17|#define AES_BLOCK_SIZE 16
  ------------------
  159|     17|}
drbg_ctr.c:ctr_BCC_block:
  116|     69|{
  117|     69|    int i, outlen = AES_BLOCK_SIZE;
  ------------------
  |  |   26|     69|#define AES_BLOCK_SIZE 16
  ------------------
  118|       |
  119|  3.38k|    for (i = 0; i < len; i++)
  ------------------
  |  Branch (119:17): [True: 3.31k, False: 69]
  ------------------
  120|  3.31k|        out[i] ^= in[i];
  121|       |
  122|     69|    if (!EVP_CipherUpdate(ctr->ctx_df, out, &outlen, out, len)
  ------------------
  |  Branch (122:9): [True: 0, False: 69]
  ------------------
  123|     69|        || outlen != len)
  ------------------
  |  Branch (123:12): [True: 0, False: 69]
  ------------------
  124|      0|        return 0;
  125|     69|    return 1;
  126|     69|}
drbg_ctr.c:ctr_BCC_update:
  166|     68|{
  167|     68|    if (in == NULL || inlen == 0)
  ------------------
  |  Branch (167:9): [True: 31, False: 37]
  |  Branch (167:23): [True: 0, False: 37]
  ------------------
  168|     31|        return 1;
  169|       |
  170|       |    /* If we have partial block handle it first */
  171|     37|    if (ctr->bltmp_pos) {
  ------------------
  |  Branch (171:9): [True: 29, False: 8]
  ------------------
  172|     29|        size_t left = 16 - ctr->bltmp_pos;
  173|       |
  174|       |        /* If we now have a complete block process it */
  175|     29|        if (inlen >= left) {
  ------------------
  |  Branch (175:13): [True: 20, False: 9]
  ------------------
  176|     20|            memcpy(ctr->bltmp + ctr->bltmp_pos, in, left);
  177|     20|            if (!ctr_BCC_blocks(ctr, ctr->bltmp))
  ------------------
  |  Branch (177:17): [True: 0, False: 20]
  ------------------
  178|      0|                return 0;
  179|     20|            ctr->bltmp_pos = 0;
  180|     20|            inlen -= left;
  181|     20|            in += left;
  182|     20|        }
  183|     29|    }
  184|       |
  185|       |    /* Process zero or more complete blocks */
  186|     52|    for (; inlen >= 16; in += 16, inlen -= 16) {
  ------------------
  |  Branch (186:12): [True: 15, False: 37]
  ------------------
  187|     15|        if (!ctr_BCC_blocks(ctr, in))
  ------------------
  |  Branch (187:13): [True: 0, False: 15]
  ------------------
  188|      0|            return 0;
  189|     15|    }
  190|       |
  191|       |    /* Copy any remaining partial block to the temporary buffer */
  192|     37|    if (inlen > 0) {
  ------------------
  |  Branch (192:9): [True: 29, False: 8]
  ------------------
  193|     29|        memcpy(ctr->bltmp + ctr->bltmp_pos, in, inlen);
  194|     29|        ctr->bltmp_pos += inlen;
  195|     29|    }
  196|     37|    return 1;
  197|     37|}
drbg_ctr.c:ctr_BCC_blocks:
  132|     52|{
  133|     52|    unsigned char in_tmp[48];
  134|     52|    unsigned char num_of_blk = 2;
  135|       |
  136|     52|    memcpy(in_tmp, in, 16);
  137|     52|    memcpy(in_tmp + 16, in, 16);
  138|     52|    if (ctr->keylen != 16) {
  ------------------
  |  Branch (138:9): [True: 52, False: 0]
  ------------------
  139|     52|        memcpy(in_tmp + 32, in, 16);
  140|     52|        num_of_blk = 3;
  141|     52|    }
  142|     52|    return ctr_BCC_block(ctr, ctr->KX, in_tmp, AES_BLOCK_SIZE * num_of_blk);
  ------------------
  |  |   26|     52|#define AES_BLOCK_SIZE 16
  ------------------
  143|     52|}
drbg_ctr.c:ctr_BCC_final:
  200|     17|{
  201|     17|    if (ctr->bltmp_pos) {
  ------------------
  |  Branch (201:9): [True: 17, False: 0]
  ------------------
  202|     17|        memset(ctr->bltmp + ctr->bltmp_pos, 0, 16 - ctr->bltmp_pos);
  203|     17|        if (!ctr_BCC_blocks(ctr, ctr->bltmp))
  ------------------
  |  Branch (203:13): [True: 0, False: 17]
  ------------------
  204|      0|            return 0;
  205|     17|    }
  206|     17|    return 1;
  207|     17|}
drbg_ctr.c:ctr_XOR:
   84|     25|{
   85|     25|    size_t i, n;
   86|       |
   87|     25|    if (in == NULL || inlen == 0)
  ------------------
  |  Branch (87:9): [True: 0, False: 25]
  |  Branch (87:23): [True: 0, False: 25]
  ------------------
   88|      0|        return;
   89|       |
   90|       |    /*
   91|       |     * Any zero padding will have no effect on the result as we
   92|       |     * are XORing. So just process however much input we have.
   93|       |     */
   94|     25|    n = inlen < ctr->keylen ? inlen : ctr->keylen;
  ------------------
  |  Branch (94:9): [True: 0, False: 25]
  ------------------
   95|     25|    if (!ossl_assert(n <= sizeof(ctr->K)))
  ------------------
  |  |   52|     25|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|     25|    __FILE__, __LINE__)
  ------------------
  |  Branch (95:9): [True: 0, False: 25]
  ------------------
   96|      0|        return;
   97|    825|    for (i = 0; i < n; i++)
  ------------------
  |  Branch (97:17): [True: 800, False: 25]
  ------------------
   98|    800|        ctr->K[i] ^= in[i];
   99|     25|    if (inlen <= ctr->keylen)
  ------------------
  |  Branch (99:9): [True: 0, False: 25]
  ------------------
  100|      0|        return;
  101|       |
  102|     25|    n = inlen - ctr->keylen;
  103|     25|    if (n > 16) {
  ------------------
  |  Branch (103:9): [True: 0, False: 25]
  ------------------
  104|       |        /* Should never happen */
  105|      0|        n = 16;
  106|      0|    }
  107|    425|    for (i = 0; i < n; i++)
  ------------------
  |  Branch (107:17): [True: 400, False: 25]
  ------------------
  108|    400|        ctr->V[i] ^= in[i + ctr->keylen];
  109|     25|}
drbg_ctr.c:drbg_ctr_reseed:
  369|      6|{
  370|      6|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  371|       |
  372|      6|    if (entropy == NULL)
  ------------------
  |  Branch (372:9): [True: 0, False: 6]
  ------------------
  373|      0|        return 0;
  374|       |
  375|      6|    inc_128(ctr);
  376|      6|    if (!ctr_update(drbg, entropy, entropylen, adin, adinlen, NULL, 0))
  ------------------
  |  Branch (376:9): [True: 0, False: 6]
  ------------------
  377|      0|        return 0;
  378|      6|    return 1;
  379|      6|}
drbg_ctr.c:drbg_ctr_generate:
  406|  9.26k|{
  407|  9.26k|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  408|  9.26k|    unsigned int ctr32, blocks;
  409|  9.26k|    int outl, buflen;
  410|       |
  411|  9.26k|    if (adin != NULL && adinlen != 0) {
  ------------------
  |  Branch (411:9): [True: 8, False: 9.25k]
  |  Branch (411:25): [True: 8, False: 0]
  ------------------
  412|      8|        inc_128(ctr);
  413|       |
  414|      8|        if (!ctr_update(drbg, adin, adinlen, NULL, 0, NULL, 0))
  ------------------
  |  Branch (414:13): [True: 0, False: 8]
  ------------------
  415|      0|            return 0;
  416|       |        /* This means we reuse derived value */
  417|      8|        if (ctr->use_df) {
  ------------------
  |  Branch (417:13): [True: 8, False: 0]
  ------------------
  418|      8|            adin = NULL;
  419|      8|            adinlen = 1;
  420|      8|        }
  421|  9.25k|    } else {
  422|  9.25k|        adinlen = 0;
  423|  9.25k|    }
  424|       |
  425|  9.26k|    inc_128(ctr);
  426|       |
  427|  9.26k|    if (outlen == 0) {
  ------------------
  |  Branch (427:9): [True: 0, False: 9.26k]
  ------------------
  428|      0|        inc_128(ctr);
  429|       |
  430|      0|        if (!ctr_update(drbg, adin, adinlen, NULL, 0, NULL, 0))
  ------------------
  |  Branch (430:13): [True: 0, False: 0]
  ------------------
  431|      0|            return 0;
  432|      0|        return 1;
  433|      0|    }
  434|       |
  435|  9.26k|    memset(out, 0, outlen);
  436|       |
  437|  9.26k|    do {
  438|  9.26k|        if (!EVP_CipherInit_ex(ctr->ctx_ctr,
  ------------------
  |  Branch (438:13): [True: 0, False: 9.26k]
  ------------------
  439|  9.26k|                NULL, NULL, NULL, ctr->V, -1))
  440|      0|            return 0;
  441|       |
  442|       |        /*-
  443|       |         * outlen has type size_t while EVP_CipherUpdate takes an
  444|       |         * int argument and thus cannot be guaranteed to process more
  445|       |         * than 2^31-1 bytes at a time. We process such huge generate
  446|       |         * requests in 2^30 byte chunks, which is the greatest multiple
  447|       |         * of AES block size lower than or equal to 2^31-1.
  448|       |         */
  449|  9.26k|        buflen = outlen > (1U << 30) ? (1 << 30) : (int)outlen;
  ------------------
  |  Branch (449:18): [True: 0, False: 9.26k]
  ------------------
  450|  9.26k|        blocks = (buflen + 15) / 16;
  451|       |
  452|  9.26k|        ctr32 = GETU32(ctr->V + 12) + blocks;
  ------------------
  |  |   98|  9.26k|#define GETU32(p) ((u32)(p)[0] << 24 | (u32)(p)[1] << 16 | (u32)(p)[2] << 8 | (u32)(p)[3])
  ------------------
  453|  9.26k|        if (ctr32 < blocks) {
  ------------------
  |  Branch (453:13): [True: 0, False: 9.26k]
  ------------------
  454|       |            /* 32-bit counter overflow into V. */
  455|      0|            if (ctr32 != 0) {
  ------------------
  |  Branch (455:17): [True: 0, False: 0]
  ------------------
  456|      0|                blocks -= ctr32;
  457|      0|                buflen = blocks * 16;
  458|      0|                ctr32 = 0;
  459|      0|            }
  460|      0|            ctr96_inc(ctr->V);
  461|      0|        }
  462|  9.26k|        PUTU32(ctr->V + 12, ctr32);
  ------------------
  |  |   99|  9.26k|#define PUTU32(p, v) ((p)[0] = (u8)((v) >> 24), (p)[1] = (u8)((v) >> 16), (p)[2] = (u8)((v) >> 8), (p)[3] = (u8)(v))
  ------------------
  463|       |
  464|  9.26k|        if (!EVP_CipherUpdate(ctr->ctx_ctr, out, &outl, out, buflen)
  ------------------
  |  Branch (464:13): [True: 0, False: 9.26k]
  ------------------
  465|  9.26k|            || outl != buflen)
  ------------------
  |  Branch (465:16): [True: 0, False: 9.26k]
  ------------------
  466|      0|            return 0;
  467|       |
  468|  9.26k|        out += buflen;
  469|  9.26k|        outlen -= buflen;
  470|  9.26k|    } while (outlen);
  ------------------
  |  Branch (470:14): [True: 0, False: 9.26k]
  ------------------
  471|       |
  472|  9.26k|    if (!ctr_update(drbg, adin, adinlen, NULL, 0, NULL, 0))
  ------------------
  |  Branch (472:9): [True: 0, False: 9.26k]
  ------------------
  473|      0|        return 0;
  474|  9.26k|    return 1;
  475|  9.26k|}
drbg_ctr.c:drbg_ctr_instantiate_wrapper:
  344|      3|{
  345|      3|    PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
  346|      3|    struct drbg_set_ctx_params_st p;
  347|      3|    int ret = 0;
  348|       |
  349|      3|    if (drbg == NULL || !drbg_ctr_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (349:9): [True: 0, False: 3]
  |  Branch (349:25): [True: 0, False: 3]
  ------------------
  350|      0|        return 0;
  351|       |
  352|      3|    if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock))
  ------------------
  |  Branch (352:9): [True: 0, False: 3]
  |  Branch (352:31): [True: 0, False: 0]
  ------------------
  353|      0|        return 0;
  354|       |
  355|      3|    if (!ossl_prov_is_running()
  ------------------
  |  Branch (355:9): [True: 0, False: 3]
  ------------------
  356|      3|        || !drbg_ctr_set_ctx_params_locked(drbg, &p))
  ------------------
  |  Branch (356:12): [True: 0, False: 3]
  ------------------
  357|      0|        goto err;
  358|      3|    ret = ossl_prov_drbg_instantiate(drbg, strength, prediction_resistance,
  359|      3|        pstr, pstr_len);
  360|      3|err:
  361|      3|    if (drbg->lock != NULL)
  ------------------
  |  Branch (361:9): [True: 0, False: 3]
  ------------------
  362|      0|        CRYPTO_THREAD_unlock(drbg->lock);
  363|      3|    return ret;
  364|      3|}
drbg_ctr.c:drbg_ctr_set_ctx_params_decoder:
 1180|      3|{
 1181|      3|    const char *s;
 1182|       |
 1183|      3|    memset(r, 0, sizeof(*r));
 1184|      3|    if (p != NULL)
  ------------------
  |  Branch (1184:9): [True: 3, False: 0]
  ------------------
 1185|     18|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (1185:16): [True: 15, False: 3]
  ------------------
 1186|     15|            switch(s[0]) {
 1187|      0|            default:
  ------------------
  |  Branch (1187:13): [True: 0, False: 15]
  ------------------
 1188|      0|                break;
 1189|      3|            case 'c':
  ------------------
  |  Branch (1189:13): [True: 3, False: 12]
  ------------------
 1190|      3|                if (ossl_likely(strcmp("ipher", s + 1) == 0)) {
  ------------------
  |  |   22|      3|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 1191|       |                    /* OSSL_DRBG_PARAM_CIPHER */
 1192|      3|                    if (ossl_unlikely(r->cipher != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1193|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1194|      0|                                       "param %s is repeated", s);
 1195|      0|                        return 0;
 1196|      0|                    }
 1197|      3|                    r->cipher = (OSSL_PARAM *)p;
 1198|      3|                }
 1199|      3|                break;
 1200|      3|            case 'p':
  ------------------
  |  Branch (1200:13): [True: 3, False: 12]
  ------------------
 1201|      3|                switch(s[1]) {
 1202|      0|                default:
  ------------------
  |  Branch (1202:17): [True: 0, False: 3]
  ------------------
 1203|      0|                    break;
 1204|      3|                case 'r':
  ------------------
  |  Branch (1204:17): [True: 3, False: 0]
  ------------------
 1205|      3|                    switch(s[2]) {
 1206|      0|                    default:
  ------------------
  |  Branch (1206:21): [True: 0, False: 3]
  ------------------
 1207|      0|                        break;
 1208|      3|                    case 'o':
  ------------------
  |  Branch (1208:21): [True: 3, False: 0]
  ------------------
 1209|      3|                        switch(s[3]) {
 1210|      0|                        default:
  ------------------
  |  Branch (1210:25): [True: 0, False: 3]
  ------------------
 1211|      0|                            break;
 1212|      0|                        case 'p':
  ------------------
  |  Branch (1212:25): [True: 0, False: 3]
  ------------------
 1213|      0|                            if (ossl_likely(strcmp("erties", s + 4) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1214|       |                                /* OSSL_DRBG_PARAM_PROPERTIES */
 1215|      0|                                if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1216|      0|                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1217|      0|                                                   "param %s is repeated", s);
 1218|      0|                                    return 0;
 1219|      0|                                }
 1220|      0|                                r->propq = (OSSL_PARAM *)p;
 1221|      0|                            }
 1222|      0|                            break;
 1223|      3|                        case 'v':
  ------------------
  |  Branch (1223:25): [True: 3, False: 0]
  ------------------
 1224|      3|                            if (ossl_likely(strcmp("ider-name", s + 4) == 0)) {
  ------------------
  |  |   22|      3|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 1225|       |                                /* OSSL_PROV_PARAM_CORE_PROV_NAME */
 1226|      3|                                if (ossl_unlikely(r->prov != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1227|      0|                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1228|      0|                                                   "param %s is repeated", s);
 1229|      0|                                    return 0;
 1230|      0|                                }
 1231|      3|                                r->prov = (OSSL_PARAM *)p;
 1232|      3|                            }
 1233|      3|                        }
 1234|      3|                    }
 1235|      3|                }
 1236|      3|                break;
 1237|      6|            case 'r':
  ------------------
  |  Branch (1237:13): [True: 6, False: 9]
  ------------------
 1238|      6|                switch(s[1]) {
 1239|      0|                default:
  ------------------
  |  Branch (1239:17): [True: 0, False: 6]
  ------------------
 1240|      0|                    break;
 1241|      6|                case 'e':
  ------------------
  |  Branch (1241:17): [True: 6, False: 0]
  ------------------
 1242|      6|                    switch(s[2]) {
 1243|      0|                    default:
  ------------------
  |  Branch (1243:21): [True: 0, False: 6]
  ------------------
 1244|      0|                        break;
 1245|      6|                    case 's':
  ------------------
  |  Branch (1245:21): [True: 6, False: 0]
  ------------------
 1246|      6|                        switch(s[3]) {
 1247|      0|                        default:
  ------------------
  |  Branch (1247:25): [True: 0, False: 6]
  ------------------
 1248|      0|                            break;
 1249|      6|                        case 'e':
  ------------------
  |  Branch (1249:25): [True: 6, False: 0]
  ------------------
 1250|      6|                            switch(s[4]) {
 1251|      0|                            default:
  ------------------
  |  Branch (1251:29): [True: 0, False: 6]
  ------------------
 1252|      0|                                break;
 1253|      6|                            case 'e':
  ------------------
  |  Branch (1253:29): [True: 6, False: 0]
  ------------------
 1254|      6|                                switch(s[5]) {
 1255|      0|                                default:
  ------------------
  |  Branch (1255:33): [True: 0, False: 6]
  ------------------
 1256|      0|                                    break;
 1257|      6|                                case 'd':
  ------------------
  |  Branch (1257:33): [True: 6, False: 0]
  ------------------
 1258|      6|                                    switch(s[6]) {
 1259|      0|                                    default:
  ------------------
  |  Branch (1259:37): [True: 0, False: 6]
  ------------------
 1260|      0|                                        break;
 1261|      6|                                    case '_':
  ------------------
  |  Branch (1261:37): [True: 6, False: 0]
  ------------------
 1262|      6|                                        switch(s[7]) {
 1263|      0|                                        default:
  ------------------
  |  Branch (1263:41): [True: 0, False: 6]
  ------------------
 1264|      0|                                            break;
 1265|      3|                                        case 'r':
  ------------------
  |  Branch (1265:41): [True: 3, False: 3]
  ------------------
 1266|      3|                                            if (ossl_likely(strcmp("equests", s + 8) == 0)) {
  ------------------
  |  |   22|      3|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 1267|       |                                                /* OSSL_DRBG_PARAM_RESEED_REQUESTS */
 1268|      3|                                                if (ossl_unlikely(r->reseed_req != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1269|      0|                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1270|      0|                                                                   "param %s is repeated", s);
 1271|      0|                                                    return 0;
 1272|      0|                                                }
 1273|      3|                                                r->reseed_req = (OSSL_PARAM *)p;
 1274|      3|                                            }
 1275|      3|                                            break;
 1276|      3|                                        case 't':
  ------------------
  |  Branch (1276:41): [True: 3, False: 3]
  ------------------
 1277|      3|                                            if (ossl_likely(strcmp("ime_interval", s + 8) == 0)) {
  ------------------
  |  |   22|      3|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 1278|       |                                                /* OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL */
 1279|      3|                                                if (ossl_unlikely(r->reseed_time != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1280|      0|                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1281|      0|                                                                   "param %s is repeated", s);
 1282|      0|                                                    return 0;
 1283|      0|                                                }
 1284|      3|                                                r->reseed_time = (OSSL_PARAM *)p;
 1285|      3|                                            }
 1286|      6|                                        }
 1287|      6|                                    }
 1288|      6|                                }
 1289|      6|                            }
 1290|      6|                        }
 1291|      6|                    }
 1292|      6|                }
 1293|      6|                break;
 1294|      6|            case 'u':
  ------------------
  |  Branch (1294:13): [True: 3, False: 12]
  ------------------
 1295|      3|                if (ossl_likely(strcmp("se_derivation_function", s + 1) == 0)) {
  ------------------
  |  |   22|      3|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 3, False: 0]
  |  |  ------------------
  ------------------
 1296|       |                    /* OSSL_DRBG_PARAM_USE_DF */
 1297|      3|                    if (ossl_unlikely(r->df != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1298|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1299|      0|                                       "param %s is repeated", s);
 1300|      0|                        return 0;
 1301|      0|                    }
 1302|      3|                    r->df = (OSSL_PARAM *)p;
 1303|      3|                }
 1304|     15|            }
 1305|      3|    return 1;
 1306|      3|}
drbg_ctr.c:drbg_ctr_set_ctx_params_locked:
 1063|      3|{
 1064|      3|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)ctx->data;
 1065|      3|    OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx);
  ------------------
  |  |   31|      3|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
 1066|      3|    OSSL_PROVIDER *prov = NULL;
 1067|      3|    char *ecb;
 1068|      3|    const char *propquery = NULL;
 1069|      3|    int i, cipher_init = 0;
 1070|       |
 1071|      3|    if (p->df != NULL && OSSL_PARAM_get_int(p->df, &i)) {
  ------------------
  |  Branch (1071:9): [True: 3, False: 0]
  |  Branch (1071:26): [True: 3, False: 0]
  ------------------
 1072|       |        /* FIPS errors out in the drbg_ctr_init() call later */
 1073|      3|        ctr->use_df = i != 0;
 1074|      3|        cipher_init = 1;
 1075|      3|    }
 1076|       |
 1077|      3|    if (p->propq != NULL) {
  ------------------
  |  Branch (1077:9): [True: 0, False: 3]
  ------------------
 1078|      0|        if (p->propq->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1078:13): [True: 0, False: 0]
  ------------------
 1079|      0|            return 0;
 1080|      0|        propquery = (const char *)p->propq->data;
 1081|      0|    }
 1082|       |
 1083|      3|    if (p->prov != NULL) {
  ------------------
  |  Branch (1083:9): [True: 3, False: 0]
  ------------------
 1084|      3|        if (p->prov->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      3|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1084:13): [True: 0, False: 3]
  ------------------
 1085|      0|            return 0;
 1086|      3|        if ((prov = ossl_provider_find(libctx,
  ------------------
  |  Branch (1086:13): [True: 0, False: 3]
  ------------------
 1087|      3|                 (const char *)p->prov->data, 1))
 1088|      3|            == NULL)
 1089|      0|            return 0;
 1090|      3|    }
 1091|       |
 1092|      3|    if (p->cipher != NULL) {
  ------------------
  |  Branch (1092:9): [True: 3, False: 0]
  ------------------
 1093|      3|        const char *base = (const char *)p->cipher->data;
 1094|      3|        size_t ctr_str_len = sizeof("CTR") - 1;
 1095|      3|        size_t ecb_str_len = sizeof("ECB") - 1;
 1096|       |
 1097|      3|        if (p->cipher->data_type != OSSL_PARAM_UTF8_STRING
  ------------------
  |  |  117|      6|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1097:13): [True: 0, False: 3]
  ------------------
 1098|      3|            || p->cipher->data_size < ctr_str_len) {
  ------------------
  |  Branch (1098:16): [True: 0, False: 3]
  ------------------
 1099|      0|            ossl_provider_free(prov);
 1100|      0|            return 0;
 1101|      0|        }
 1102|      3|        if (OPENSSL_strcasecmp("CTR", base + p->cipher->data_size - ctr_str_len) != 0) {
  ------------------
  |  Branch (1102:13): [True: 0, False: 3]
  ------------------
 1103|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_REQUIRE_CTR_MODE_CIPHER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1104|      0|            ossl_provider_free(prov);
 1105|      0|            return 0;
 1106|      0|        }
 1107|      3|        if ((ecb = OPENSSL_strndup(base, p->cipher->data_size)) == NULL) {
  ------------------
  |  |  137|      3|    CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (1107:13): [True: 0, False: 3]
  ------------------
 1108|      0|            ossl_provider_free(prov);
 1109|      0|            return 0;
 1110|      0|        }
 1111|      3|        strcpy(ecb + p->cipher->data_size - ecb_str_len, "ECB");
 1112|      3|        EVP_CIPHER_free(ctr->cipher_ecb);
 1113|      3|        EVP_CIPHER_free(ctr->cipher_ctr);
 1114|       |        /*
 1115|       |         * Try to fetch algorithms from our own provider code, fallback
 1116|       |         * to generic fetch only if that fails
 1117|       |         */
 1118|      3|        (void)ERR_set_mark();
 1119|      3|        ctr->cipher_ctr = evp_cipher_fetch_from_prov(prov, base, NULL);
 1120|      3|        if (ctr->cipher_ctr == NULL) {
  ------------------
  |  Branch (1120:13): [True: 0, False: 3]
  ------------------
 1121|      0|            (void)ERR_pop_to_mark();
 1122|      0|            ctr->cipher_ctr = EVP_CIPHER_fetch(libctx, base, propquery);
 1123|      3|        } else {
 1124|      3|            (void)ERR_clear_last_mark();
 1125|      3|        }
 1126|      3|        (void)ERR_set_mark();
 1127|      3|        ctr->cipher_ecb = evp_cipher_fetch_from_prov(prov, ecb, NULL);
 1128|      3|        if (ctr->cipher_ecb == NULL) {
  ------------------
  |  Branch (1128:13): [True: 0, False: 3]
  ------------------
 1129|      0|            (void)ERR_pop_to_mark();
 1130|      0|            ctr->cipher_ecb = EVP_CIPHER_fetch(libctx, ecb, propquery);
 1131|      3|        } else {
 1132|      3|            (void)ERR_clear_last_mark();
 1133|      3|        }
 1134|      3|        OPENSSL_free(ecb);
  ------------------
  |  |  131|      3|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1135|      3|        if (ctr->cipher_ctr == NULL || ctr->cipher_ecb == NULL) {
  ------------------
  |  Branch (1135:13): [True: 0, False: 3]
  |  Branch (1135:40): [True: 0, False: 3]
  ------------------
 1136|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_FIND_CIPHERS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1137|      0|            ossl_provider_free(prov);
 1138|      0|            return 0;
 1139|      0|        }
 1140|      3|        cipher_init = 1;
 1141|      3|    }
 1142|      3|    ossl_provider_free(prov);
 1143|       |
 1144|      3|    if (cipher_init && !drbg_ctr_init(ctx))
  ------------------
  |  Branch (1144:9): [True: 3, False: 0]
  |  Branch (1144:24): [True: 0, False: 3]
  ------------------
 1145|      0|        return 0;
 1146|       |
 1147|      3|    return ossl_drbg_set_ctx_params(ctx, p);
 1148|      3|}
drbg_ctr.c:drbg_ctr_init:
  572|      3|{
  573|      3|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  574|      3|    size_t keylen;
  575|       |
  576|      3|    if (ctr->cipher_ctr == NULL) {
  ------------------
  |  Branch (576:9): [True: 0, False: 3]
  ------------------
  577|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_CIPHER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  578|      0|        return 0;
  579|      0|    }
  580|      3|    ctr->keylen = keylen = EVP_CIPHER_get_key_length(ctr->cipher_ctr);
  581|      3|    if (ctr->ctx_ecb == NULL)
  ------------------
  |  Branch (581:9): [True: 3, False: 0]
  ------------------
  582|      3|        ctr->ctx_ecb = EVP_CIPHER_CTX_new();
  583|      3|    if (ctr->ctx_ctr == NULL)
  ------------------
  |  Branch (583:9): [True: 3, False: 0]
  ------------------
  584|      3|        ctr->ctx_ctr = EVP_CIPHER_CTX_new();
  585|      3|    if (ctr->ctx_ecb == NULL || ctr->ctx_ctr == NULL) {
  ------------------
  |  Branch (585:9): [True: 0, False: 3]
  |  Branch (585:33): [True: 0, False: 3]
  ------------------
  586|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  587|      0|        goto err;
  588|      0|    }
  589|       |
  590|      3|    if (!EVP_CipherInit_ex(ctr->ctx_ecb,
  ------------------
  |  Branch (590:9): [True: 0, False: 3]
  ------------------
  591|      3|            ctr->cipher_ecb, NULL, NULL, NULL, 1)
  592|      3|        || !EVP_CipherInit_ex(ctr->ctx_ctr,
  ------------------
  |  Branch (592:12): [True: 0, False: 3]
  ------------------
  593|      3|            ctr->cipher_ctr, NULL, NULL, NULL, 1)) {
  594|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_INITIALISE_CIPHERS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  595|      0|        goto err;
  596|      0|    }
  597|       |
  598|      3|    drbg->strength = (unsigned int)(keylen * 8);
  599|      3|    drbg->seedlen = keylen + 16;
  600|       |
  601|      3|    if (ctr->use_df) {
  ------------------
  |  Branch (601:9): [True: 3, False: 0]
  ------------------
  602|       |        /* df initialisation */
  603|      3|        static const unsigned char df_key[32] = {
  604|      3|            0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
  605|      3|            0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
  606|      3|            0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
  607|      3|            0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
  608|      3|        };
  609|       |
  610|      3|        if (ctr->ctx_df == NULL)
  ------------------
  |  Branch (610:13): [True: 3, False: 0]
  ------------------
  611|      3|            ctr->ctx_df = EVP_CIPHER_CTX_new();
  612|      3|        if (ctr->ctx_df == NULL) {
  ------------------
  |  Branch (612:13): [True: 0, False: 3]
  ------------------
  613|      0|            ERR_raise(ERR_LIB_PROV, ERR_R_EVP_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  614|      0|            goto err;
  615|      0|        }
  616|       |        /* Set key schedule for df_key */
  617|      3|        if (!EVP_CipherInit_ex(ctr->ctx_df,
  ------------------
  |  Branch (617:13): [True: 0, False: 3]
  ------------------
  618|      3|                ctr->cipher_ecb, NULL, df_key, NULL, 1)) {
  619|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_DERIVATION_FUNCTION_INIT_FAILED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  620|      0|            goto err;
  621|      0|        }
  622|      3|    }
  623|      3|    return drbg_ctr_init_lengths(drbg);
  624|       |
  625|      0|err:
  626|      0|    EVP_CIPHER_CTX_free(ctr->ctx_ecb);
  627|      0|    EVP_CIPHER_CTX_free(ctr->ctx_ctr);
  628|       |    ctr->ctx_ecb = ctr->ctx_ctr = NULL;
  629|      0|    return 0;
  630|      3|}
drbg_ctr.c:drbg_ctr_generate_wrapper:
  480|  9.25k|{
  481|  9.25k|    PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
  482|       |
  483|  9.25k|    return ossl_prov_drbg_generate(drbg, out, outlen, strength,
  484|  9.25k|        prediction_resistance, adin, adin_len);
  485|  9.25k|}
drbg_ctr.c:drbg_ctr_settable_ctx_params:
 1333|      3|{
 1334|      3|    return drbg_ctr_set_ctx_params_list;
 1335|      3|}
drbg_ctr.c:drbg_ctr_get_ctx_params:
 1017|  20.1k|{
 1018|  20.1k|    PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
 1019|  20.1k|    PROV_DRBG_CTR *ctr;
 1020|  20.1k|    struct drbg_ctr_get_ctx_params_st p;
 1021|  20.1k|    int ret = 0, complete = 0;
 1022|       |
 1023|  20.1k|    if (drbg == NULL || !drbg_ctr_get_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (1023:9): [True: 0, False: 20.1k]
  |  Branch (1023:25): [True: 0, False: 20.1k]
  ------------------
 1024|      0|        return 0;
 1025|       |
 1026|  20.1k|    if (!ossl_drbg_get_ctx_params_no_lock(drbg, &p, params, &complete))
  ------------------
  |  Branch (1026:9): [True: 0, False: 20.1k]
  ------------------
 1027|      0|        return 0;
 1028|       |
 1029|  20.1k|    if (complete)
  ------------------
  |  Branch (1029:9): [True: 18.5k, False: 1.57k]
  ------------------
 1030|  18.5k|        return 1;
 1031|       |
 1032|  1.57k|    ctr = (PROV_DRBG_CTR *)drbg->data;
 1033|       |
 1034|  1.57k|    if (drbg->lock != NULL && !CRYPTO_THREAD_read_lock(drbg->lock))
  ------------------
  |  Branch (1034:9): [True: 1.57k, False: 0]
  |  Branch (1034:31): [True: 0, False: 1.57k]
  ------------------
 1035|      0|        return 0;
 1036|       |
 1037|  1.57k|    if (p.df != NULL && !OSSL_PARAM_set_int(p.df, ctr->use_df))
  ------------------
  |  Branch (1037:9): [True: 0, False: 1.57k]
  |  Branch (1037:25): [True: 0, False: 0]
  ------------------
 1038|      0|        goto err;
 1039|       |
 1040|  1.57k|    if (p.cipher != NULL) {
  ------------------
  |  Branch (1040:9): [True: 0, False: 1.57k]
  ------------------
 1041|      0|        if (ctr->cipher_ctr == NULL
  ------------------
  |  Branch (1041:13): [True: 0, False: 0]
  ------------------
 1042|      0|            || !OSSL_PARAM_set_utf8_string(p.cipher,
  ------------------
  |  Branch (1042:16): [True: 0, False: 0]
  ------------------
 1043|      0|                EVP_CIPHER_get0_name(ctr->cipher_ctr)))
 1044|      0|            goto err;
 1045|      0|    }
 1046|       |
 1047|  1.57k|    ret = ossl_drbg_get_ctx_params(drbg, &p);
 1048|  1.57k|err:
 1049|  1.57k|    if (drbg->lock != NULL)
  ------------------
  |  Branch (1049:9): [True: 1.57k, False: 0]
  ------------------
 1050|  1.57k|        CRYPTO_THREAD_unlock(drbg->lock);
 1051|       |
 1052|  1.57k|    return ret;
 1053|  1.57k|}
drbg_ctr.c:drbg_ctr_get_ctx_params_decoder:
  726|  20.1k|{
  727|  20.1k|    const char *s;
  728|       |
  729|  20.1k|    memset(r, 0, sizeof(*r));
  730|  20.1k|    if (p != NULL)
  ------------------
  |  Branch (730:9): [True: 20.1k, False: 0]
  ------------------
  731|  40.2k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (731:16): [True: 20.1k, False: 20.1k]
  ------------------
  732|  20.1k|            switch(s[0]) {
  733|      0|            default:
  ------------------
  |  Branch (733:13): [True: 0, False: 20.1k]
  ------------------
  734|      0|                break;
  735|      0|            case 'c':
  ------------------
  |  Branch (735:13): [True: 0, False: 20.1k]
  ------------------
  736|      0|                if (ossl_likely(strcmp("ipher", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  737|       |                    /* OSSL_DRBG_PARAM_CIPHER */
  738|      0|                    if (ossl_unlikely(r->cipher != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  739|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  740|      0|                                       "param %s is repeated", s);
  741|      0|                        return 0;
  742|      0|                    }
  743|      0|                    r->cipher = (OSSL_PARAM *)p;
  744|      0|                }
  745|      0|                break;
  746|      0|            case 'f':
  ------------------
  |  Branch (746:13): [True: 0, False: 20.1k]
  ------------------
  747|       |# if defined(FIPS_MODULE)
  748|       |                if (ossl_likely(strcmp("ips-indicator", s + 1) == 0)) {
  749|       |                    /* OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR */
  750|       |                    if (ossl_unlikely(r->ind != NULL)) {
  751|       |                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  752|       |                                       "param %s is repeated", s);
  753|       |                        return 0;
  754|       |                    }
  755|       |                    r->ind = (OSSL_PARAM *)p;
  756|       |                }
  757|       |# endif
  758|      0|                break;
  759|  9.25k|            case 'm':
  ------------------
  |  Branch (759:13): [True: 9.25k, False: 10.8k]
  ------------------
  760|  9.25k|                switch(s[1]) {
  761|      0|                default:
  ------------------
  |  Branch (761:17): [True: 0, False: 9.25k]
  ------------------
  762|      0|                    break;
  763|  9.25k|                case 'a':
  ------------------
  |  Branch (763:17): [True: 9.25k, False: 0]
  ------------------
  764|  9.25k|                    switch(s[2]) {
  765|      0|                    default:
  ------------------
  |  Branch (765:21): [True: 0, False: 9.25k]
  ------------------
  766|      0|                        break;
  767|  9.25k|                    case 'x':
  ------------------
  |  Branch (767:21): [True: 9.25k, False: 0]
  ------------------
  768|  9.25k|                        switch(s[3]) {
  769|      0|                        default:
  ------------------
  |  Branch (769:25): [True: 0, False: 9.25k]
  ------------------
  770|      0|                            break;
  771|  9.25k|                        case '_':
  ------------------
  |  Branch (771:25): [True: 9.25k, False: 0]
  ------------------
  772|  9.25k|                            switch(s[4]) {
  773|      0|                            default:
  ------------------
  |  Branch (773:29): [True: 0, False: 9.25k]
  ------------------
  774|      0|                                break;
  775|      0|                            case 'a':
  ------------------
  |  Branch (775:29): [True: 0, False: 9.25k]
  ------------------
  776|      0|                                if (ossl_likely(strcmp("dinlen", s + 5) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  777|       |                                    /* OSSL_DRBG_PARAM_MAX_ADINLEN */
  778|      0|                                    if (ossl_unlikely(r->maxadlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  779|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  780|      0|                                                       "param %s is repeated", s);
  781|      0|                                        return 0;
  782|      0|                                    }
  783|      0|                                    r->maxadlen = (OSSL_PARAM *)p;
  784|      0|                                }
  785|      0|                                break;
  786|      0|                            case 'e':
  ------------------
  |  Branch (786:29): [True: 0, False: 9.25k]
  ------------------
  787|      0|                                if (ossl_likely(strcmp("ntropylen", s + 5) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  788|       |                                    /* OSSL_DRBG_PARAM_MAX_ENTROPYLEN */
  789|      0|                                    if (ossl_unlikely(r->maxentlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  790|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  791|      0|                                                       "param %s is repeated", s);
  792|      0|                                        return 0;
  793|      0|                                    }
  794|      0|                                    r->maxentlen = (OSSL_PARAM *)p;
  795|      0|                                }
  796|      0|                                break;
  797|      0|                            case 'n':
  ------------------
  |  Branch (797:29): [True: 0, False: 9.25k]
  ------------------
  798|      0|                                if (ossl_likely(strcmp("oncelen", s + 5) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  799|       |                                    /* OSSL_DRBG_PARAM_MAX_NONCELEN */
  800|      0|                                    if (ossl_unlikely(r->maxnonlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  801|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  802|      0|                                                       "param %s is repeated", s);
  803|      0|                                        return 0;
  804|      0|                                    }
  805|      0|                                    r->maxnonlen = (OSSL_PARAM *)p;
  806|      0|                                }
  807|      0|                                break;
  808|      0|                            case 'p':
  ------------------
  |  Branch (808:29): [True: 0, False: 9.25k]
  ------------------
  809|      0|                                if (ossl_likely(strcmp("erslen", s + 5) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  810|       |                                    /* OSSL_DRBG_PARAM_MAX_PERSLEN */
  811|      0|                                    if (ossl_unlikely(r->maxperlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  812|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  813|      0|                                                       "param %s is repeated", s);
  814|      0|                                        return 0;
  815|      0|                                    }
  816|      0|                                    r->maxperlen = (OSSL_PARAM *)p;
  817|      0|                                }
  818|      0|                                break;
  819|  9.25k|                            case 'r':
  ------------------
  |  Branch (819:29): [True: 9.25k, False: 0]
  ------------------
  820|  9.25k|                                if (ossl_likely(strcmp("equest", s + 5) == 0)) {
  ------------------
  |  |   22|  9.25k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 9.25k, False: 0]
  |  |  ------------------
  ------------------
  821|       |                                    /* OSSL_RAND_PARAM_MAX_REQUEST */
  822|  9.25k|                                    if (ossl_unlikely(r->maxreq != NULL)) {
  ------------------
  |  |   23|  9.25k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 9.25k]
  |  |  ------------------
  ------------------
  823|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  824|      0|                                                       "param %s is repeated", s);
  825|      0|                                        return 0;
  826|      0|                                    }
  827|  9.25k|                                    r->maxreq = (OSSL_PARAM *)p;
  828|  9.25k|                                }
  829|  9.25k|                            }
  830|  9.25k|                        }
  831|  9.25k|                    }
  832|  9.25k|                    break;
  833|  9.25k|                case 'i':
  ------------------
  |  Branch (833:17): [True: 0, False: 9.25k]
  ------------------
  834|      0|                    switch(s[2]) {
  835|      0|                    default:
  ------------------
  |  Branch (835:21): [True: 0, False: 0]
  ------------------
  836|      0|                        break;
  837|      0|                    case 'n':
  ------------------
  |  Branch (837:21): [True: 0, False: 0]
  ------------------
  838|      0|                        switch(s[3]) {
  839|      0|                        default:
  ------------------
  |  Branch (839:25): [True: 0, False: 0]
  ------------------
  840|      0|                            break;
  841|      0|                        case '_':
  ------------------
  |  Branch (841:25): [True: 0, False: 0]
  ------------------
  842|      0|                            switch(s[4]) {
  843|      0|                            default:
  ------------------
  |  Branch (843:29): [True: 0, False: 0]
  ------------------
  844|      0|                                break;
  845|      0|                            case 'e':
  ------------------
  |  Branch (845:29): [True: 0, False: 0]
  ------------------
  846|      0|                                if (ossl_likely(strcmp("ntropylen", s + 5) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  847|       |                                    /* OSSL_DRBG_PARAM_MIN_ENTROPYLEN */
  848|      0|                                    if (ossl_unlikely(r->minentlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  849|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  850|      0|                                                       "param %s is repeated", s);
  851|      0|                                        return 0;
  852|      0|                                    }
  853|      0|                                    r->minentlen = (OSSL_PARAM *)p;
  854|      0|                                }
  855|      0|                                break;
  856|      0|                            case 'n':
  ------------------
  |  Branch (856:29): [True: 0, False: 0]
  ------------------
  857|      0|                                if (ossl_likely(strcmp("oncelen", s + 5) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  858|       |                                    /* OSSL_DRBG_PARAM_MIN_NONCELEN */
  859|      0|                                    if (ossl_unlikely(r->minnonlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  860|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  861|      0|                                                       "param %s is repeated", s);
  862|      0|                                        return 0;
  863|      0|                                    }
  864|      0|                                    r->minnonlen = (OSSL_PARAM *)p;
  865|      0|                                }
  866|      0|                            }
  867|      0|                        }
  868|      0|                    }
  869|  9.25k|                }
  870|  9.25k|                break;
  871|  9.26k|            case 'r':
  ------------------
  |  Branch (871:13): [True: 9.26k, False: 10.8k]
  ------------------
  872|  9.26k|                switch(s[1]) {
  873|      0|                default:
  ------------------
  |  Branch (873:17): [True: 0, False: 9.26k]
  ------------------
  874|      0|                    break;
  875|  9.26k|                case 'e':
  ------------------
  |  Branch (875:17): [True: 9.26k, False: 0]
  ------------------
  876|  9.26k|                    switch(s[2]) {
  877|      0|                    default:
  ------------------
  |  Branch (877:21): [True: 0, False: 9.26k]
  ------------------
  878|      0|                        break;
  879|  9.26k|                    case 's':
  ------------------
  |  Branch (879:21): [True: 9.26k, False: 0]
  ------------------
  880|  9.26k|                        switch(s[3]) {
  881|      0|                        default:
  ------------------
  |  Branch (881:25): [True: 0, False: 9.26k]
  ------------------
  882|      0|                            break;
  883|  9.26k|                        case 'e':
  ------------------
  |  Branch (883:25): [True: 9.26k, False: 0]
  ------------------
  884|  9.26k|                            switch(s[4]) {
  885|      0|                            default:
  ------------------
  |  Branch (885:29): [True: 0, False: 9.26k]
  ------------------
  886|      0|                                break;
  887|  9.26k|                            case 'e':
  ------------------
  |  Branch (887:29): [True: 9.26k, False: 0]
  ------------------
  888|  9.26k|                                switch(s[5]) {
  889|      0|                                default:
  ------------------
  |  Branch (889:33): [True: 0, False: 9.26k]
  ------------------
  890|      0|                                    break;
  891|  9.26k|                                case 'd':
  ------------------
  |  Branch (891:33): [True: 9.26k, False: 0]
  ------------------
  892|  9.26k|                                    switch(s[6]) {
  893|      0|                                    default:
  ------------------
  |  Branch (893:37): [True: 0, False: 9.26k]
  ------------------
  894|      0|                                        break;
  895|  9.26k|                                    case '_':
  ------------------
  |  Branch (895:37): [True: 9.26k, False: 0]
  ------------------
  896|  9.26k|                                        switch(s[7]) {
  897|      0|                                        default:
  ------------------
  |  Branch (897:41): [True: 0, False: 9.26k]
  ------------------
  898|      0|                                            break;
  899|  9.26k|                                        case 'c':
  ------------------
  |  Branch (899:41): [True: 9.26k, False: 0]
  ------------------
  900|  9.26k|                                            if (ossl_likely(strcmp("ounter", s + 8) == 0)) {
  ------------------
  |  |   22|  9.26k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 9.26k, False: 0]
  |  |  ------------------
  ------------------
  901|       |                                                /* OSSL_DRBG_PARAM_RESEED_COUNTER */
  902|  9.26k|                                                if (ossl_unlikely(r->reseed_cnt != NULL)) {
  ------------------
  |  |   23|  9.26k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 9.26k]
  |  |  ------------------
  ------------------
  903|      0|                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  904|      0|                                                                   "param %s is repeated", s);
  905|      0|                                                    return 0;
  906|      0|                                                }
  907|  9.26k|                                                r->reseed_cnt = (OSSL_PARAM *)p;
  908|  9.26k|                                            }
  909|  9.26k|                                            break;
  910|  9.26k|                                        case 'r':
  ------------------
  |  Branch (910:41): [True: 0, False: 9.26k]
  ------------------
  911|      0|                                            if (ossl_likely(strcmp("equests", s + 8) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  912|       |                                                /* OSSL_DRBG_PARAM_RESEED_REQUESTS */
  913|      0|                                                if (ossl_unlikely(r->reseed_req != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  914|      0|                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  915|      0|                                                                   "param %s is repeated", s);
  916|      0|                                                    return 0;
  917|      0|                                                }
  918|      0|                                                r->reseed_req = (OSSL_PARAM *)p;
  919|      0|                                            }
  920|      0|                                            break;
  921|      0|                                        case 't':
  ------------------
  |  Branch (921:41): [True: 0, False: 9.26k]
  ------------------
  922|      0|                                            switch(s[8]) {
  923|      0|                                            default:
  ------------------
  |  Branch (923:45): [True: 0, False: 0]
  ------------------
  924|      0|                                                break;
  925|      0|                                            case 'i':
  ------------------
  |  Branch (925:45): [True: 0, False: 0]
  ------------------
  926|      0|                                                switch(s[9]) {
  927|      0|                                                default:
  ------------------
  |  Branch (927:49): [True: 0, False: 0]
  ------------------
  928|      0|                                                    break;
  929|      0|                                                case 'm':
  ------------------
  |  Branch (929:49): [True: 0, False: 0]
  ------------------
  930|      0|                                                    switch(s[10]) {
  931|      0|                                                    default:
  ------------------
  |  Branch (931:53): [True: 0, False: 0]
  ------------------
  932|      0|                                                        break;
  933|      0|                                                    case 'e':
  ------------------
  |  Branch (933:53): [True: 0, False: 0]
  ------------------
  934|      0|                                                        switch(s[11]) {
  935|      0|                                                        default:
  ------------------
  |  Branch (935:57): [True: 0, False: 0]
  ------------------
  936|      0|                                                            break;
  937|      0|                                                        case '_':
  ------------------
  |  Branch (937:57): [True: 0, False: 0]
  ------------------
  938|      0|                                                            if (ossl_likely(strcmp("interval", s + 12) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  939|       |                                                                /* OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL */
  940|      0|                                                                if (ossl_unlikely(r->reseed_int != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  941|      0|                                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  942|      0|                                                                                   "param %s is repeated", s);
  943|      0|                                                                    return 0;
  944|      0|                                                                }
  945|      0|                                                                r->reseed_int = (OSSL_PARAM *)p;
  946|      0|                                                            }
  947|      0|                                                            break;
  948|      0|                                                        case '\0':
  ------------------
  |  Branch (948:57): [True: 0, False: 0]
  ------------------
  949|      0|                                                            if (ossl_unlikely(r->reseed_time != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  950|      0|                                                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  951|      0|                                                                               "param %s is repeated", s);
  952|      0|                                                                return 0;
  953|      0|                                                            }
  954|      0|                                                            r->reseed_time = (OSSL_PARAM *)p;
  955|      0|                                                        }
  956|      0|                                                    }
  957|      0|                                                }
  958|      0|                                            }
  959|  9.26k|                                        }
  960|  9.26k|                                    }
  961|  9.26k|                                }
  962|  9.26k|                            }
  963|  9.26k|                        }
  964|  9.26k|                    }
  965|  9.26k|                }
  966|  9.26k|                break;
  967|  9.26k|            case 's':
  ------------------
  |  Branch (967:13): [True: 1.57k, False: 18.5k]
  ------------------
  968|  1.57k|                switch(s[1]) {
  969|      0|                default:
  ------------------
  |  Branch (969:17): [True: 0, False: 1.57k]
  ------------------
  970|      0|                    break;
  971|  1.57k|                case 't':
  ------------------
  |  Branch (971:17): [True: 1.57k, False: 0]
  ------------------
  972|  1.57k|                    switch(s[2]) {
  973|      0|                    default:
  ------------------
  |  Branch (973:21): [True: 0, False: 1.57k]
  ------------------
  974|      0|                        break;
  975|  1.56k|                    case 'a':
  ------------------
  |  Branch (975:21): [True: 1.56k, False: 10]
  ------------------
  976|  1.56k|                        if (ossl_likely(strcmp("te", s + 3) == 0)) {
  ------------------
  |  |   22|  1.56k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.56k, False: 0]
  |  |  ------------------
  ------------------
  977|       |                            /* OSSL_RAND_PARAM_STATE */
  978|  1.56k|                            if (ossl_unlikely(r->state != NULL)) {
  ------------------
  |  |   23|  1.56k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.56k]
  |  |  ------------------
  ------------------
  979|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  980|      0|                                               "param %s is repeated", s);
  981|      0|                                return 0;
  982|      0|                            }
  983|  1.56k|                            r->state = (OSSL_PARAM *)p;
  984|  1.56k|                        }
  985|  1.56k|                        break;
  986|  1.56k|                    case 'r':
  ------------------
  |  Branch (986:21): [True: 10, False: 1.56k]
  ------------------
  987|     10|                        if (ossl_likely(strcmp("ength", s + 3) == 0)) {
  ------------------
  |  |   22|     10|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 10, False: 0]
  |  |  ------------------
  ------------------
  988|       |                            /* OSSL_RAND_PARAM_STRENGTH */
  989|     10|                            if (ossl_unlikely(r->str != NULL)) {
  ------------------
  |  |   23|     10|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 10]
  |  |  ------------------
  ------------------
  990|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  991|      0|                                               "param %s is repeated", s);
  992|      0|                                return 0;
  993|      0|                            }
  994|     10|                            r->str = (OSSL_PARAM *)p;
  995|     10|                        }
  996|  1.57k|                    }
  997|  1.57k|                }
  998|  1.57k|                break;
  999|  1.57k|            case 'u':
  ------------------
  |  Branch (999:13): [True: 0, False: 20.1k]
  ------------------
 1000|      0|                if (ossl_likely(strcmp("se_derivation_function", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1001|       |                    /* OSSL_DRBG_PARAM_USE_DF */
 1002|      0|                    if (ossl_unlikely(r->df != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1003|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
 1004|      0|                                       "param %s is repeated", s);
 1005|      0|                        return 0;
 1006|      0|                    }
 1007|      0|                    r->df = (OSSL_PARAM *)p;
 1008|      0|                }
 1009|  20.1k|            }
 1010|  20.1k|    return 1;
 1011|  20.1k|}

seed_src.c:seed_src_new:
   51|      1|{
   52|      1|    PROV_SEED_SRC *s;
   53|       |
   54|      1|    if (parent != NULL) {
  ------------------
  |  Branch (54:9): [True: 0, False: 1]
  ------------------
   55|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_SEED_SOURCES_MUST_NOT_HAVE_A_PARENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   56|      0|        return NULL;
   57|      0|    }
   58|       |
   59|      1|    s = OPENSSL_zalloc(sizeof(*s));
  ------------------
  |  |  108|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   60|      1|    if (s == NULL)
  ------------------
  |  Branch (60:9): [True: 0, False: 1]
  ------------------
   61|      0|        return NULL;
   62|       |
   63|      1|    s->provctx = provctx;
   64|      1|    s->state = EVP_RAND_STATE_UNINITIALISED;
  ------------------
  |  | 1345|      1|#define EVP_RAND_STATE_UNINITIALISED 0
  ------------------
   65|      1|    return s;
   66|      1|}
seed_src.c:seed_src_instantiate:
   77|      1|{
   78|      1|    PROV_SEED_SRC *s = (PROV_SEED_SRC *)vseed;
   79|       |
   80|      1|    s->state = EVP_RAND_STATE_READY;
  ------------------
  |  | 1346|      1|#define EVP_RAND_STATE_READY 1
  ------------------
   81|      1|    return 1;
   82|      1|}
seed_src.c:seed_src_enable_locking:
  294|      1|{
  295|      1|    return 1;
  296|      1|}
seed_src.c:seed_src_lock:
  299|     13|{
  300|     13|    return 1;
  301|     13|}
seed_src.c:seed_src_unlock:
  304|     13|{
  305|     13|}
seed_src.c:seed_src_get_ctx_params:
  229|     10|{
  230|     10|    PROV_SEED_SRC *s = (PROV_SEED_SRC *)vseed;
  231|     10|    struct seed_src_get_ctx_params_st p;
  232|       |
  233|     10|    if (s == NULL || !seed_src_get_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (233:9): [True: 0, False: 10]
  |  Branch (233:22): [True: 0, False: 10]
  ------------------
  234|      0|        return 0;
  235|       |
  236|     10|    if (p.state != NULL && !OSSL_PARAM_set_int(p.state, s->state))
  ------------------
  |  Branch (236:9): [True: 0, False: 10]
  |  Branch (236:28): [True: 0, False: 0]
  ------------------
  237|      0|        return 0;
  238|       |
  239|     10|    if (p.str != NULL && !OSSL_PARAM_set_uint(p.str, 1024))
  ------------------
  |  Branch (239:9): [True: 2, False: 8]
  |  Branch (239:26): [True: 0, False: 2]
  ------------------
  240|      0|        return 0;
  241|       |
  242|     10|    if (p.maxreq != NULL && !OSSL_PARAM_set_size_t(p.maxreq, 128))
  ------------------
  |  Branch (242:9): [True: 0, False: 10]
  |  Branch (242:29): [True: 0, False: 0]
  ------------------
  243|      0|        return 0;
  244|     10|    return 1;
  245|     10|}
seed_src.c:seed_src_get_ctx_params_decoder:
  170|     10|{
  171|     10|    const char *s;
  172|       |
  173|     10|    memset(r, 0, sizeof(*r));
  174|     10|    if (p != NULL)
  ------------------
  |  Branch (174:9): [True: 10, False: 0]
  ------------------
  175|     20|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (175:16): [True: 10, False: 10]
  ------------------
  176|     10|            switch(s[0]) {
  177|      8|            default:
  ------------------
  |  Branch (177:13): [True: 8, False: 2]
  ------------------
  178|      8|                break;
  179|      8|            case 'm':
  ------------------
  |  Branch (179:13): [True: 0, False: 10]
  ------------------
  180|      0|                if (ossl_likely(strcmp("ax_request", s + 1) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  181|       |                    /* OSSL_RAND_PARAM_MAX_REQUEST */
  182|      0|                    if (ossl_unlikely(r->maxreq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  183|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  184|      0|                                       "param %s is repeated", s);
  185|      0|                        return 0;
  186|      0|                    }
  187|      0|                    r->maxreq = (OSSL_PARAM *)p;
  188|      0|                }
  189|      0|                break;
  190|      2|            case 's':
  ------------------
  |  Branch (190:13): [True: 2, False: 8]
  ------------------
  191|      2|                switch(s[1]) {
  192|      0|                default:
  ------------------
  |  Branch (192:17): [True: 0, False: 2]
  ------------------
  193|      0|                    break;
  194|      2|                case 't':
  ------------------
  |  Branch (194:17): [True: 2, False: 0]
  ------------------
  195|      2|                    switch(s[2]) {
  196|      0|                    default:
  ------------------
  |  Branch (196:21): [True: 0, False: 2]
  ------------------
  197|      0|                        break;
  198|      0|                    case 'a':
  ------------------
  |  Branch (198:21): [True: 0, False: 2]
  ------------------
  199|      0|                        if (ossl_likely(strcmp("te", s + 3) == 0)) {
  ------------------
  |  |   22|      0|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  200|       |                            /* OSSL_RAND_PARAM_STATE */
  201|      0|                            if (ossl_unlikely(r->state != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  202|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  203|      0|                                               "param %s is repeated", s);
  204|      0|                                return 0;
  205|      0|                            }
  206|      0|                            r->state = (OSSL_PARAM *)p;
  207|      0|                        }
  208|      0|                        break;
  209|      2|                    case 'r':
  ------------------
  |  Branch (209:21): [True: 2, False: 0]
  ------------------
  210|      2|                        if (ossl_likely(strcmp("ength", s + 3) == 0)) {
  ------------------
  |  |   22|      2|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 2, False: 0]
  |  |  ------------------
  ------------------
  211|       |                            /* OSSL_RAND_PARAM_STRENGTH */
  212|      2|                            if (ossl_unlikely(r->str != NULL)) {
  ------------------
  |  |   23|      2|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  213|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  120|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  135|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  214|      0|                                               "param %s is repeated", s);
  215|      0|                                return 0;
  216|      0|                            }
  217|      2|                            r->str = (OSSL_PARAM *)p;
  218|      2|                        }
  219|      2|                    }
  220|      2|                }
  221|     10|            }
  222|     10|    return 1;
  223|     10|}
seed_src.c:seed_get_seed:
  262|      1|{
  263|      1|    size_t ret = 0;
  264|      1|    size_t entropy_available = 0;
  265|      1|    RAND_POOL *pool;
  266|       |
  267|      1|    pool = ossl_rand_pool_new(entropy, 1, min_len, max_len);
  268|      1|    if (pool == NULL) {
  ------------------
  |  Branch (268:9): [True: 0, False: 1]
  ------------------
  269|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_RAND_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  270|      0|        return 0;
  271|      0|    }
  272|       |
  273|       |    /* Get entropy by polling system entropy sources. */
  274|      1|    entropy_available = ossl_pool_acquire_entropy(pool);
  275|       |
  276|      1|    if (entropy_available > 0
  ------------------
  |  Branch (276:9): [True: 1, False: 0]
  ------------------
  277|      1|        && ossl_rand_pool_adin_mix_in(pool, adin, adin_len)) {
  ------------------
  |  Branch (277:12): [True: 1, False: 0]
  ------------------
  278|      1|        ret = ossl_rand_pool_length(pool);
  279|      1|        *pout = ossl_rand_pool_detach(pool);
  280|      1|    } else {
  281|       |        ERR_raise(ERR_LIB_PROV, PROV_R_ENTROPY_SOURCE_STRENGTH_TOO_WEAK);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  282|      0|    }
  283|      1|    ossl_rand_pool_free(pool);
  284|      1|    return ret;
  285|      1|}
seed_src.c:seed_clear_seed:
  289|      1|{
  290|      1|    OPENSSL_secure_clear_free(out, outlen);
  ------------------
  |  |  149|      1|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  291|      1|}

ossl_rand_pool_init:
  571|      1|{
  572|      1|    size_t i;
  573|       |
  574|      5|    for (i = 0; i < OSSL_NELEM(random_devices); i++)
  ------------------
  |  |   14|      5|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (574:17): [True: 4, False: 1]
  ------------------
  575|      4|        random_devices[i].fd = -1;
  576|       |
  577|      1|    return 1;
  578|      1|}
ossl_pool_acquire_entropy:
  631|      1|{
  632|       |#if defined(OPENSSL_RAND_SEED_NONE)
  633|       |    return ossl_rand_pool_entropy_available(pool);
  634|       |#else
  635|      1|    size_t entropy_available = 0;
  636|       |
  637|      1|    (void)entropy_available; /* avoid compiler warning */
  638|       |
  639|      1|#if defined(OPENSSL_RAND_SEED_GETRANDOM)
  640|      1|    {
  641|      1|        size_t bytes_needed;
  642|      1|        unsigned char *buffer;
  643|      1|        ssize_t bytes;
  644|       |        /* Maximum allowed number of consecutive unsuccessful attempts */
  645|      1|        int attempts = 3;
  646|       |
  647|      1|        bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
  648|      2|        while (bytes_needed != 0 && attempts-- > 0) {
  ------------------
  |  Branch (648:16): [True: 1, False: 1]
  |  Branch (648:37): [True: 1, False: 0]
  ------------------
  649|      1|            buffer = ossl_rand_pool_add_begin(pool, bytes_needed);
  650|      1|            bytes = syscall_random(buffer, bytes_needed);
  651|      1|            if (bytes > 0) {
  ------------------
  |  Branch (651:17): [True: 1, False: 0]
  ------------------
  652|      1|                ossl_rand_pool_add_end(pool, bytes, 8 * bytes);
  653|      1|                bytes_needed -= bytes;
  654|      1|                attempts = 3; /* reset counter after successful attempt */
  655|      1|            } else if (bytes < 0 && errno != EINTR) {
  ------------------
  |  Branch (655:24): [True: 0, False: 0]
  |  Branch (655:37): [True: 0, False: 0]
  ------------------
  656|      0|                break;
  657|      0|            }
  658|      1|        }
  659|      1|    }
  660|      1|    entropy_available = ossl_rand_pool_entropy_available(pool);
  661|      1|    if (entropy_available > 0)
  ------------------
  |  Branch (661:9): [True: 1, False: 0]
  ------------------
  662|      1|        return entropy_available;
  663|      0|#endif
  664|       |
  665|      0|#if defined(OPENSSL_RAND_SEED_DEVRANDOM)
  666|      0|    if (wait_random_seeded()) {
  ------------------
  |  Branch (666:9): [True: 0, False: 0]
  ------------------
  667|      0|        size_t bytes_needed;
  668|      0|        unsigned char *buffer;
  669|      0|        size_t i;
  670|       |
  671|      0|        bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
  672|      0|        for (i = 0; bytes_needed > 0 && i < OSSL_NELEM(random_device_paths);
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (672:21): [True: 0, False: 0]
  |  Branch (672:41): [True: 0, False: 0]
  ------------------
  673|      0|            i++) {
  674|      0|            ssize_t bytes = 0;
  675|       |            /* Maximum number of consecutive unsuccessful attempts */
  676|      0|            int attempts = 3;
  677|      0|            const int fd = get_random_device(i);
  678|       |
  679|      0|            if (fd == -1)
  ------------------
  |  Branch (679:17): [True: 0, False: 0]
  ------------------
  680|      0|                continue;
  681|       |
  682|      0|            while (bytes_needed != 0 && attempts-- > 0) {
  ------------------
  |  Branch (682:20): [True: 0, False: 0]
  |  Branch (682:41): [True: 0, False: 0]
  ------------------
  683|      0|                buffer = ossl_rand_pool_add_begin(pool, bytes_needed);
  684|      0|                bytes = read(fd, buffer, bytes_needed);
  685|       |
  686|      0|                if (bytes > 0) {
  ------------------
  |  Branch (686:21): [True: 0, False: 0]
  ------------------
  687|      0|                    ossl_rand_pool_add_end(pool, bytes, 8 * bytes);
  688|      0|                    bytes_needed -= bytes;
  689|      0|                    attempts = 3; /* reset counter on successful attempt */
  690|      0|                } else if (bytes < 0 && errno != EINTR) {
  ------------------
  |  Branch (690:28): [True: 0, False: 0]
  |  Branch (690:41): [True: 0, False: 0]
  ------------------
  691|      0|                    break;
  692|      0|                }
  693|      0|            }
  694|      0|            if (bytes < 0 || !keep_random_devices_open)
  ------------------
  |  Branch (694:17): [True: 0, False: 0]
  |  Branch (694:30): [True: 0, False: 0]
  ------------------
  695|      0|                close_random_device(i);
  696|       |
  697|      0|            bytes_needed = ossl_rand_pool_bytes_needed(pool, 1);
  698|      0|        }
  699|      0|        entropy_available = ossl_rand_pool_entropy_available(pool);
  700|      0|        if (entropy_available > 0)
  ------------------
  |  Branch (700:13): [True: 0, False: 0]
  ------------------
  701|      0|            return entropy_available;
  702|      0|    }
  703|      0|#endif
  704|       |
  705|       |#if defined(OPENSSL_RAND_SEED_RDTSC)
  706|       |    entropy_available = ossl_prov_acquire_entropy_from_tsc(pool);
  707|       |    if (entropy_available > 0)
  708|       |        return entropy_available;
  709|       |#endif
  710|       |
  711|       |#if defined(OPENSSL_RAND_SEED_RDCPU)
  712|       |    entropy_available = ossl_prov_acquire_entropy_from_cpu(pool);
  713|       |    if (entropy_available > 0)
  714|       |        return entropy_available;
  715|       |#endif
  716|       |
  717|       |#if defined(OPENSSL_RAND_SEED_EGD)
  718|       |    {
  719|       |        static const char *paths[] = { DEVRANDOM_EGD, NULL };
  720|       |        size_t bytes_needed;
  721|       |        unsigned char *buffer;
  722|       |        int i;
  723|       |
  724|       |        bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
  725|       |        for (i = 0; bytes_needed > 0 && paths[i] != NULL; i++) {
  726|       |            size_t bytes = 0;
  727|       |            int num;
  728|       |
  729|       |            buffer = ossl_rand_pool_add_begin(pool, bytes_needed);
  730|       |            num = RAND_query_egd_bytes(paths[i],
  731|       |                buffer, (int)bytes_needed);
  732|       |            if (num == (int)bytes_needed)
  733|       |                bytes = bytes_needed;
  734|       |
  735|       |            ossl_rand_pool_add_end(pool, bytes, 8 * bytes);
  736|       |            bytes_needed = ossl_rand_pool_bytes_needed(pool, 1);
  737|       |        }
  738|       |        entropy_available = ossl_rand_pool_entropy_available(pool);
  739|       |        if (entropy_available > 0)
  740|       |            return entropy_available;
  741|       |    }
  742|       |#endif
  743|       |
  744|      0|    return ossl_rand_pool_entropy_available(pool);
  745|      0|#endif
  746|      0|}
rand_unix.c:syscall_random:
  333|      1|{
  334|       |    /*
  335|       |     * Note: 'buflen' equals the size of the buffer which is used by the
  336|       |     * get_entropy() callback of the RAND_DRBG. It is roughly bounded by
  337|       |     *
  338|       |     *   2 * RAND_POOL_FACTOR * (RAND_DRBG_STRENGTH / 8) = 2^14
  339|       |     *
  340|       |     * which is way below the OSSL_SSIZE_MAX limit. Therefore sign conversion
  341|       |     * between size_t and ssize_t is safe even without a range check.
  342|       |     */
  343|       |
  344|       |    /*
  345|       |     * Do runtime detection to find getentropy().
  346|       |     *
  347|       |     * Known OSs that should support this:
  348|       |     * - Darwin since 16 (OSX 10.12, IOS 10.0).
  349|       |     * - Solaris since 11.3
  350|       |     * - OpenBSD since 5.6
  351|       |     * - Linux since 3.17 with glibc 2.25
  352|       |     *
  353|       |     * Note: Sometimes getentropy() can be provided but not implemented
  354|       |     * internally. So we need to check errno for ENOSYS
  355|       |     */
  356|      1|#if !defined(__DragonFly__) && !defined(__NetBSD__) && !defined(__FreeBSD__)
  357|      1|#if defined(__GNUC__) && __GNUC__ >= 2 && defined(__ELF__) && !defined(__hpux)
  358|      1|    extern int getentropy(void *buffer, size_t length) __attribute__((weak));
  359|       |
  360|      1|    if (getentropy != NULL) {
  ------------------
  |  Branch (360:9): [True: 1, False: 0]
  ------------------
  361|      1|        if (getentropy(buf, buflen) == 0)
  ------------------
  |  Branch (361:13): [True: 1, False: 0]
  ------------------
  362|      1|            return (ssize_t)buflen;
  363|      0|        if (errno != ENOSYS)
  ------------------
  |  Branch (363:13): [True: 0, False: 0]
  ------------------
  364|      0|            return -1;
  365|      0|    }
  366|       |#elif defined(OPENSSL_APPLE_CRYPTO_RANDOM)
  367|       |
  368|       |    if (CCRandomGenerateBytes(buf, buflen) == kCCSuccess)
  369|       |        return (ssize_t)buflen;
  370|       |
  371|       |    return -1;
  372|       |#else
  373|       |    union {
  374|       |        void *p;
  375|       |        int (*f)(void *buffer, size_t length);
  376|       |    } p_getentropy;
  377|       |
  378|       |    /*
  379|       |     * We could cache the result of the lookup, but we normally don't
  380|       |     * call this function often.
  381|       |     */
  382|       |    ERR_set_mark();
  383|       |    p_getentropy.p = DSO_global_lookup("getentropy");
  384|       |    ERR_pop_to_mark();
  385|       |    if (p_getentropy.p != NULL)
  386|       |        return p_getentropy.f(buf, buflen) == 0 ? (ssize_t)buflen : -1;
  387|       |#endif
  388|      0|#endif /* !__DragonFly__ && !__NetBSD__ && !__FreeBSD__ */
  389|       |
  390|       |    /* Linux supports this since version 3.17 */
  391|      0|#if defined(__linux) && defined(__NR_getrandom)
  392|      0|    return syscall(__NR_getrandom, buf, buflen, 0);
  393|       |#elif (defined(__DragonFly__) && __DragonFly_version >= 500700) \
  394|       |    || (defined(__NetBSD__) && __NetBSD_Version >= 1000000000)  \
  395|       |    || (defined(__FreeBSD__) && __FreeBSD_version >= 1200061)
  396|       |    return getrandom(buf, buflen, 0);
  397|       |#elif (defined(__FreeBSD__) || defined(__NetBSD__)) && defined(KERN_ARND)
  398|       |    return sysctl_random(buf, buflen);
  399|       |#elif defined(__wasi__)
  400|       |    if (getentropy(buf, buflen) == 0)
  401|       |        return (ssize_t)buflen;
  402|       |    return -1;
  403|       |#else
  404|       |    errno = ENOSYS;
  405|       |    return -1;
  406|       |#endif
  407|      1|}

ossl_prov_is_running:
   20|  83.6k|{
   21|  83.6k|    return 1;
   22|  83.6k|}

SSL_get_srtp_profiles:
  162|    219|{
  163|    219|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL_ONLY(s);
  ------------------
  |  |   23|    219|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|    219|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |   18|    219|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    219|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 219, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|    219|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|    219|                             : NULL))
  |  |  ------------------
  ------------------
  164|       |
  165|    219|    if (sc != NULL) {
  ------------------
  |  Branch (165:9): [True: 219, False: 0]
  ------------------
  166|    219|        if (sc->srtp_profiles != NULL) {
  ------------------
  |  Branch (166:13): [True: 0, False: 219]
  ------------------
  167|      0|            return sc->srtp_profiles;
  168|    219|        } else if ((s->ctx != NULL) && (s->ctx->srtp_profiles != NULL)) {
  ------------------
  |  Branch (168:20): [True: 219, False: 0]
  |  Branch (168:40): [True: 0, False: 219]
  ------------------
  169|      0|            return s->ctx->srtp_profiles;
  170|      0|        }
  171|    219|    }
  172|       |
  173|    219|    return NULL;
  174|    219|}

ossl_quic_free_token_store:
 4842|    220|{
 4843|    220|    int refs;
 4844|       |
 4845|    220|    if (hdl == NULL)
  ------------------
  |  Branch (4845:9): [True: 220, False: 0]
  ------------------
 4846|    220|        return;
 4847|       |
 4848|      0|    if (!CRYPTO_DOWN_REF(&hdl->references, &refs))
  ------------------
  |  Branch (4848:9): [True: 0, False: 0]
  ------------------
 4849|      0|        return;
 4850|       |
 4851|      0|    if (refs > 0)
  ------------------
  |  Branch (4851:9): [True: 0, False: 0]
  ------------------
 4852|      0|        return;
 4853|       |
 4854|       |    /* last reference, we can clean up */
 4855|      0|    ossl_crypto_mutex_free(&hdl->mutex);
 4856|      0|    lh_QUIC_TOKEN_doall(hdl->cache, free_this_token);
 4857|      0|    lh_QUIC_TOKEN_free(hdl->cache);
 4858|      0|    CRYPTO_FREE_REF(&hdl->references);
 4859|      0|    OPENSSL_free(hdl);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4860|      0|    return;
 4861|      0|}

ossl_quic_tls_free:
  658|    220|{
  659|    220|    if (qtls == NULL)
  ------------------
  |  Branch (659:9): [True: 220, False: 0]
  ------------------
  660|    220|        return;
  661|      0|    OSSL_ERR_STATE_free(qtls->error_state);
  662|      0|    OPENSSL_free(qtls);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  663|      0|}
ossl_quic_tls_clear:
  864|    439|{
  865|    439|    if (qtls == NULL)
  ------------------
  |  Branch (865:9): [True: 439, False: 0]
  ------------------
  866|    439|        return;
  867|      0|    qtls->local_transport_params_consumed = 0;
  868|      0|}

ossl_tls_buffer_release:
   27|  1.31k|{
   28|  1.31k|    OPENSSL_free(b->buf);
  ------------------
  |  |  131|  1.31k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   29|       |    b->buf = NULL;
   30|  1.31k|}
tls_setup_write_buffer:
  144|    219|{
  145|    219|    unsigned char *p;
  146|    219|    size_t maxalign = 0, headerlen;
  147|    219|    TLS_BUFFER *wb;
  148|    219|    size_t currpipe;
  149|    219|    size_t defltlen = 0;
  150|    219|    size_t contenttypelen = 0;
  151|       |
  152|    219|    if (firstlen == 0 || (numwpipes > 1 && nextlen == 0)) {
  ------------------
  |  Branch (152:9): [True: 219, False: 0]
  |  Branch (152:27): [True: 0, False: 0]
  |  Branch (152:44): [True: 0, False: 0]
  ------------------
  153|    219|        if (rl->isdtls)
  ------------------
  |  Branch (153:13): [True: 0, False: 219]
  ------------------
  154|      0|            headerlen = DTLS1_RT_HEADER_LENGTH + 1;
  ------------------
  |  |   41|      0|#define DTLS1_RT_HEADER_LENGTH 13
  ------------------
  155|    219|        else
  156|    219|            headerlen = SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|    219|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  157|       |
  158|       |        /* TLSv1.3 adds an extra content type byte after payload data */
  159|    219|        if (rl->version == TLS1_3_VERSION)
  ------------------
  |  |   27|    219|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (159:13): [True: 0, False: 219]
  ------------------
  160|      0|            contenttypelen = 1;
  161|       |
  162|    219|#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
  163|    219|        maxalign = SSL3_ALIGN_PAYLOAD - 1;
  ------------------
  |  |  152|    219|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
  164|    219|#endif
  165|       |
  166|    219|        defltlen = maxalign + headerlen + rl->eivlen + rl->max_frag_len
  167|    219|            + contenttypelen + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD;
  ------------------
  |  |  195|    219|    (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  172|    219|#define SSL_RT_MAX_CIPHER_BLOCK_SIZE 16
  |  |  ------------------
  |  |                   (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  166|    219|#define SSL3_RT_MAX_MD_SIZE 64
  |  |  ------------------
  ------------------
  168|    219|#ifndef OPENSSL_NO_COMP
  169|    219|        if (tls_allow_compression(rl))
  ------------------
  |  Branch (169:13): [True: 0, False: 219]
  ------------------
  170|      0|            defltlen += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
  ------------------
  |  |  179|      0|#define SSL3_RT_MAX_COMPRESSED_OVERHEAD 1024
  ------------------
  171|    219|#endif
  172|       |        /*
  173|       |         * We don't need to add eivlen here since empty fragments only occur
  174|       |         * when we don't have an explicit IV. The contenttype byte will also
  175|       |         * always be 0 in these protocol versions
  176|       |         */
  177|    219|        if ((rl->options & SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS) == 0)
  ------------------
  |  |  377|    219|#define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (177:13): [True: 219, False: 0]
  ------------------
  178|    219|            defltlen += headerlen + maxalign + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD;
  ------------------
  |  |  195|    219|    (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  172|    219|#define SSL_RT_MAX_CIPHER_BLOCK_SIZE 16
  |  |  ------------------
  |  |                   (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  166|    219|#define SSL3_RT_MAX_MD_SIZE 64
  |  |  ------------------
  ------------------
  179|    219|    }
  180|       |
  181|    219|    wb = rl->wbuf;
  182|    438|    for (currpipe = 0; currpipe < numwpipes; currpipe++) {
  ------------------
  |  Branch (182:24): [True: 219, False: 219]
  ------------------
  183|    219|        TLS_BUFFER *thiswb = &wb[currpipe];
  184|    219|        size_t len = (currpipe == 0) ? firstlen : nextlen;
  ------------------
  |  Branch (184:22): [True: 219, False: 0]
  ------------------
  185|       |
  186|    219|        if (len == 0)
  ------------------
  |  Branch (186:13): [True: 219, False: 0]
  ------------------
  187|    219|            len = defltlen;
  188|       |
  189|    219|        if (thiswb->len != len) {
  ------------------
  |  Branch (189:13): [True: 219, False: 0]
  ------------------
  190|    219|            OPENSSL_free(thiswb->buf);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  191|    219|            thiswb->buf = NULL; /* force reallocation */
  192|    219|        }
  193|       |
  194|    219|        p = thiswb->buf;
  195|    219|        if (p == NULL) {
  ------------------
  |  Branch (195:13): [True: 219, False: 0]
  ------------------
  196|    219|            p = OPENSSL_malloc(len);
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  197|    219|            if (p == NULL) {
  ------------------
  |  Branch (197:17): [True: 0, False: 219]
  ------------------
  198|      0|                if (rl->numwpipes < currpipe)
  ------------------
  |  Branch (198:21): [True: 0, False: 0]
  ------------------
  199|      0|                    rl->numwpipes = currpipe;
  200|       |                /*
  201|       |                 * We've got a malloc failure, and we're still initialising
  202|       |                 * buffers. We assume we're so doomed that we won't even be able
  203|       |                 * to send an alert.
  204|       |                 */
  205|      0|                RLAYERfatal(rl, SSL_AD_NO_ALERT, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  206|      0|                return 0;
  207|      0|            }
  208|    219|        }
  209|    219|        memset(thiswb, 0, sizeof(TLS_BUFFER));
  210|    219|        thiswb->buf = p;
  211|    219|        thiswb->len = len;
  212|    219|    }
  213|       |
  214|       |    /* Free any previously allocated buffers that we are no longer using */
  215|    219|    tls_release_write_buffer_int(rl, currpipe);
  216|       |
  217|    219|    rl->numwpipes = numwpipes;
  218|       |
  219|    219|    return 1;
  220|    219|}
tls_setup_read_buffer:
  230|    219|{
  231|    219|    unsigned char *p;
  232|    219|    size_t len, maxalign = 0, headerlen;
  233|    219|    TLS_BUFFER *b;
  234|       |
  235|    219|    b = &rl->rbuf;
  236|       |
  237|    219|    if (rl->isdtls)
  ------------------
  |  Branch (237:9): [True: 0, False: 219]
  ------------------
  238|      0|        headerlen = DTLS1_RT_HEADER_LENGTH;
  ------------------
  |  |   41|      0|#define DTLS1_RT_HEADER_LENGTH 13
  ------------------
  239|    219|    else
  240|    219|        headerlen = SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|    219|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  241|       |
  242|    219|#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
  243|    219|    maxalign = SSL3_ALIGN_PAYLOAD - 1;
  ------------------
  |  |  152|    219|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
  244|    219|#endif
  245|       |
  246|    219|    if (b->buf == NULL) {
  ------------------
  |  Branch (246:9): [True: 219, False: 0]
  ------------------
  247|    219|        len = rl->max_frag_len
  248|    219|            + SSL3_RT_MAX_ENCRYPTED_OVERHEAD + headerlen + maxalign;
  ------------------
  |  |  186|    219|#define SSL3_RT_MAX_ENCRYPTED_OVERHEAD (256 + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  166|    219|#define SSL3_RT_MAX_MD_SIZE 64
  |  |  ------------------
  ------------------
  249|    219|#ifndef OPENSSL_NO_COMP
  250|    219|        if (tls_allow_compression(rl))
  ------------------
  |  Branch (250:13): [True: 0, False: 219]
  ------------------
  251|      0|            len += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
  ------------------
  |  |  179|      0|#define SSL3_RT_MAX_COMPRESSED_OVERHEAD 1024
  ------------------
  252|    219|#endif
  253|       |
  254|       |        /* Ensure our buffer is large enough to support all our pipelines */
  255|    219|        if (rl->max_pipelines > 1)
  ------------------
  |  Branch (255:13): [True: 0, False: 219]
  ------------------
  256|      0|            len *= rl->max_pipelines;
  257|       |
  258|    219|        if (b->default_len > len)
  ------------------
  |  Branch (258:13): [True: 219, False: 0]
  ------------------
  259|    219|            len = b->default_len;
  260|       |
  261|    219|        if ((p = OPENSSL_malloc(len)) == NULL) {
  ------------------
  |  |  106|    219|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (261:13): [True: 0, False: 219]
  ------------------
  262|       |            /*
  263|       |             * We've got a malloc failure, and we're still initialising buffers.
  264|       |             * We assume we're so doomed that we won't even be able to send an
  265|       |             * alert.
  266|       |             */
  267|      0|            RLAYERfatal(rl, SSL_AD_NO_ALERT, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  268|      0|            return 0;
  269|      0|        }
  270|    219|        b->buf = p;
  271|    219|        b->len = len;
  272|    219|    }
  273|       |
  274|    219|    return 1;
  275|    219|}
tls_default_read_n:
  296|  4.13k|{
  297|       |    /*
  298|       |     * If extend == 0, obtain new n-byte packet; if extend == 1, increase
  299|       |     * packet by another n bytes. The packet will be in the sub-array of
  300|       |     * rl->rbuf.buf specified by rl->packet and rl->packet_length. (If
  301|       |     * rl->read_ahead is set, 'max' bytes may be stored in rbuf [plus
  302|       |     * rl->packet_length bytes if extend == 1].) if clearold == 1, move the
  303|       |     * packet to the start of the buffer; if clearold == 0 then leave any old
  304|       |     * packets where they were
  305|       |     */
  306|  4.13k|    size_t len, left, align = 0;
  307|  4.13k|    unsigned char *pkt;
  308|  4.13k|    TLS_BUFFER *rb;
  309|       |
  310|  4.13k|    if (n == 0)
  ------------------
  |  Branch (310:9): [True: 0, False: 4.13k]
  ------------------
  311|      0|        return OSSL_RECORD_RETURN_NON_FATAL_ERR;
  ------------------
  |  |   47|      0|#define OSSL_RECORD_RETURN_NON_FATAL_ERR -1
  ------------------
  312|       |
  313|  4.13k|    rb = &rl->rbuf;
  314|  4.13k|    left = rb->left;
  315|  4.13k|#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
  316|  4.13k|    align = (size_t)rb->buf + SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|  4.13k|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  317|  4.13k|    align = SSL3_ALIGN_PAYLOAD - 1 - ((align - 1) % SSL3_ALIGN_PAYLOAD);
  ------------------
  |  |  152|  4.13k|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
                  align = SSL3_ALIGN_PAYLOAD - 1 - ((align - 1) % SSL3_ALIGN_PAYLOAD);
  ------------------
  |  |  152|  4.13k|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
  318|  4.13k|#endif
  319|       |
  320|  4.13k|    if (!extend) {
  ------------------
  |  Branch (320:9): [True: 4.13k, False: 0]
  ------------------
  321|       |        /* start with empty packet ... */
  322|  4.13k|        if (left == 0)
  ------------------
  |  Branch (322:13): [True: 4.13k, False: 0]
  ------------------
  323|  4.13k|            rb->offset = align;
  324|       |
  325|  4.13k|        rl->packet = rb->buf + rb->offset;
  326|  4.13k|        rl->packet_length = 0;
  327|       |        /* ... now we can act as if 'extend' was set */
  328|  4.13k|    }
  329|       |
  330|  4.13k|    if (!ossl_assert(rl->packet != NULL)) {
  ------------------
  |  |   52|  4.13k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  4.13k|    __FILE__, __LINE__)
  ------------------
  |  Branch (330:9): [True: 0, False: 4.13k]
  ------------------
  331|       |        /* does not happen */
  332|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  333|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  334|      0|    }
  335|       |
  336|  4.13k|    len = rl->packet_length;
  337|  4.13k|    pkt = rb->buf + align;
  338|       |    /*
  339|       |     * Move any available bytes to front of buffer: 'len' bytes already
  340|       |     * pointed to by 'packet', 'left' extra ones at the end
  341|       |     */
  342|  4.13k|    if (rl->packet != pkt && clearold == 1) {
  ------------------
  |  Branch (342:9): [True: 0, False: 4.13k]
  |  Branch (342:30): [True: 0, False: 0]
  ------------------
  343|      0|        memmove(pkt, rl->packet, len + left);
  344|      0|        rl->packet = pkt;
  345|      0|        rb->offset = len + align;
  346|      0|    }
  347|       |
  348|       |    /*
  349|       |     * For DTLS/UDP reads should not span multiple packets because the read
  350|       |     * operation returns the whole packet at once (as long as it fits into
  351|       |     * the buffer).
  352|       |     */
  353|  4.13k|    if (rl->isdtls) {
  ------------------
  |  Branch (353:9): [True: 0, False: 4.13k]
  ------------------
  354|      0|        if (left == 0 && extend) {
  ------------------
  |  Branch (354:13): [True: 0, False: 0]
  |  Branch (354:26): [True: 0, False: 0]
  ------------------
  355|       |            /*
  356|       |             * We received a record with a header but no body data. This will
  357|       |             * get dumped.
  358|       |             */
  359|      0|            return OSSL_RECORD_RETURN_NON_FATAL_ERR;
  ------------------
  |  |   47|      0|#define OSSL_RECORD_RETURN_NON_FATAL_ERR -1
  ------------------
  360|      0|        }
  361|      0|        if (left > 0 && n > left)
  ------------------
  |  Branch (361:13): [True: 0, False: 0]
  |  Branch (361:25): [True: 0, False: 0]
  ------------------
  362|      0|            n = left;
  363|      0|    }
  364|       |
  365|       |    /* if there is enough in the buffer from a previous read, take some */
  366|  4.13k|    if (left >= n) {
  ------------------
  |  Branch (366:9): [True: 0, False: 4.13k]
  ------------------
  367|      0|        rl->packet_length += n;
  368|      0|        rb->left = left - n;
  369|      0|        rb->offset += n;
  370|      0|        *readbytes = n;
  371|      0|        return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  372|      0|    }
  373|       |
  374|       |    /* else we need to read more data */
  375|       |
  376|  4.13k|    if (n > rb->len - rb->offset) {
  ------------------
  |  Branch (376:9): [True: 0, False: 4.13k]
  ------------------
  377|       |        /* does not happen */
  378|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  379|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  380|      0|    }
  381|       |
  382|       |    /* We always act like read_ahead is set for DTLS */
  383|  4.13k|    if (!rl->read_ahead && !rl->isdtls) {
  ------------------
  |  Branch (383:9): [True: 4.13k, False: 0]
  |  Branch (383:28): [True: 4.13k, False: 0]
  ------------------
  384|       |        /* ignore max parameter */
  385|  4.13k|        max = n;
  386|  4.13k|    } else {
  387|      0|        if (max < n)
  ------------------
  |  Branch (387:13): [True: 0, False: 0]
  ------------------
  388|      0|            max = n;
  389|      0|        if (max > rb->len - rb->offset)
  ------------------
  |  Branch (389:13): [True: 0, False: 0]
  ------------------
  390|      0|            max = rb->len - rb->offset;
  391|      0|    }
  392|       |
  393|  4.13k|    while (left < n) {
  ------------------
  |  Branch (393:12): [True: 4.13k, False: 0]
  ------------------
  394|  4.13k|        size_t bioread = 0;
  395|  4.13k|        int ret;
  396|  4.13k|        BIO *bio = rl->prev != NULL ? rl->prev : rl->bio;
  ------------------
  |  Branch (396:20): [True: 0, False: 4.13k]
  ------------------
  397|       |
  398|       |        /*
  399|       |         * Now we have len+left bytes at the front of rl->rbuf.buf and
  400|       |         * need to read in more until we have len + n (up to len + max if
  401|       |         * possible)
  402|       |         */
  403|       |
  404|  4.13k|        clear_sys_error();
  ------------------
  |  |   31|  4.13k|#define clear_sys_error() errno = 0
  ------------------
  405|  4.13k|        if (bio != NULL) {
  ------------------
  |  Branch (405:13): [True: 4.13k, False: 0]
  ------------------
  406|  4.13k|            ret = BIO_read(bio, pkt + len + left, (int)(max - left));
  407|  4.13k|            if (ret > 0) {
  ------------------
  |  Branch (407:17): [True: 0, False: 4.13k]
  ------------------
  408|      0|                bioread = ret;
  409|      0|                ret = OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  410|  4.13k|            } else if (BIO_should_retry(bio)) {
  ------------------
  |  |  272|  4.13k|#define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
  |  |  ------------------
  |  |  |  |  226|  4.13k|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  |  |  |  Branch (272:29): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
  411|  4.13k|                if (rl->prev != NULL) {
  ------------------
  |  Branch (411:21): [True: 0, False: 4.13k]
  ------------------
  412|       |                    /*
  413|       |                     * We were reading from the previous epoch. Now there is no
  414|       |                     * more data, so swap to the actual transport BIO
  415|       |                     */
  416|      0|                    BIO_free(rl->prev);
  417|      0|                    rl->prev = NULL;
  418|      0|                    continue;
  419|      0|                }
  420|  4.13k|                ret = OSSL_RECORD_RETURN_RETRY;
  ------------------
  |  |   46|  4.13k|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
  421|  4.13k|            } else if (BIO_eof(bio)) {
  ------------------
  |  |  633|      0|#define BIO_eof(b) (int)BIO_ctrl(b, BIO_CTRL_EOF, 0, NULL)
  |  |  ------------------
  |  |  |  |   91|      0|#define BIO_CTRL_EOF 2 /* opt - are we at the eof */
  |  |  ------------------
  |  |  |  Branch (633:20): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  422|      0|                ret = OSSL_RECORD_RETURN_EOF;
  ------------------
  |  |   49|      0|#define OSSL_RECORD_RETURN_EOF -3
  ------------------
  423|      0|            } else {
  424|      0|                ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  425|      0|            }
  426|  4.13k|        } else {
  427|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, SSL_R_READ_BIO_NOT_SET);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  428|      0|            ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  429|      0|        }
  430|       |
  431|  4.13k|        if (ret <= OSSL_RECORD_RETURN_RETRY) {
  ------------------
  |  |   46|  4.13k|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
  |  Branch (431:13): [True: 4.13k, False: 0]
  ------------------
  432|  4.13k|            rb->left = left;
  433|  4.13k|            if ((rl->mode & SSL_MODE_RELEASE_BUFFERS) != 0 && !rl->isdtls)
  ------------------
  |  |  515|  4.13k|#define SSL_MODE_RELEASE_BUFFERS 0x00000010U
  ------------------
  |  Branch (433:17): [True: 0, False: 4.13k]
  |  Branch (433:63): [True: 0, False: 0]
  ------------------
  434|      0|                if (len + left == 0)
  ------------------
  |  Branch (434:21): [True: 0, False: 0]
  ------------------
  435|      0|                    tls_release_read_buffer(rl);
  436|  4.13k|            return ret;
  437|  4.13k|        }
  438|      0|        left += bioread;
  439|       |        /*
  440|       |         * reads should *never* span multiple packets for DTLS because the
  441|       |         * underlying transport protocol is message oriented as opposed to
  442|       |         * byte oriented as in the TLS case.
  443|       |         */
  444|      0|        if (rl->isdtls) {
  ------------------
  |  Branch (444:13): [True: 0, False: 0]
  ------------------
  445|      0|            if (n > left)
  ------------------
  |  Branch (445:17): [True: 0, False: 0]
  ------------------
  446|      0|                n = left; /* makes the while condition false */
  447|      0|        }
  448|      0|    }
  449|       |
  450|       |    /* done reading, now the book-keeping */
  451|      0|    rb->offset += n;
  452|      0|    rb->left = left - n;
  453|      0|    rl->packet_length += n;
  454|      0|    *readbytes = n;
  455|      0|    return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  456|  4.13k|}
tls_get_more_records:
  544|  4.13k|{
  545|  4.13k|    int enc_err, rret;
  546|  4.13k|    int i;
  547|  4.13k|    size_t more, n;
  548|  4.13k|    TLS_RL_RECORD *rr, *thisrr;
  549|  4.13k|    TLS_BUFFER *rbuf;
  550|  4.13k|    unsigned char *p;
  551|  4.13k|    unsigned char md[EVP_MAX_MD_SIZE];
  552|  4.13k|    unsigned int version;
  553|  4.13k|    size_t mac_size = 0;
  554|  4.13k|    int imac_size;
  555|  4.13k|    size_t num_recs = 0, max_recs, j;
  556|  4.13k|    PACKET pkt, sslv2pkt;
  557|  4.13k|    SSL_MAC_BUF *macbufs = NULL;
  558|  4.13k|    int ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|  4.13k|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  559|       |
  560|  4.13k|    rr = rl->rrec;
  561|  4.13k|    rbuf = &rl->rbuf;
  562|  4.13k|    if (rbuf->buf == NULL) {
  ------------------
  |  Branch (562:9): [True: 219, False: 3.91k]
  ------------------
  563|    219|        if (!tls_setup_read_buffer(rl)) {
  ------------------
  |  Branch (563:13): [True: 0, False: 219]
  ------------------
  564|       |            /* RLAYERfatal() already called */
  565|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  566|      0|        }
  567|    219|    }
  568|       |
  569|  4.13k|    max_recs = rl->max_pipelines;
  570|       |
  571|  4.13k|    if (max_recs == 0)
  ------------------
  |  Branch (571:9): [True: 4.13k, False: 0]
  ------------------
  572|  4.13k|        max_recs = 1;
  573|       |
  574|  4.13k|    do {
  575|  4.13k|        thisrr = &rr[num_recs];
  576|       |
  577|       |        /* check if we have the header */
  578|  4.13k|        if ((rl->rstate != SSL_ST_READ_BODY) || (rl->packet_length < SSL3_RT_HEADER_LENGTH)) {
  ------------------
  |  | 1161|  4.13k|#define SSL_ST_READ_BODY 0xF1
  ------------------
                      if ((rl->rstate != SSL_ST_READ_BODY) || (rl->packet_length < SSL3_RT_HEADER_LENGTH)) {
  ------------------
  |  |  139|      0|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  |  Branch (578:13): [True: 4.13k, False: 0]
  |  Branch (578:49): [True: 0, False: 0]
  ------------------
  579|  4.13k|            size_t sslv2len;
  580|  4.13k|            unsigned int type;
  581|       |
  582|  4.13k|            rret = rl->funcs->read_n(rl, SSL3_RT_HEADER_LENGTH,
  ------------------
  |  |  139|  4.13k|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  583|  4.13k|                TLS_BUFFER_get_len(rbuf), 0,
  ------------------
  |  |  527|  4.13k|#define TLS_BUFFER_get_len(b) ((b)->len)
  ------------------
  584|  4.13k|                num_recs == 0 ? 1 : 0, &n);
  ------------------
  |  Branch (584:17): [True: 4.13k, False: 0]
  ------------------
  585|       |
  586|  4.13k|            if (rret < OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|  4.13k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (586:17): [True: 4.13k, False: 0]
  ------------------
  587|  4.13k|                return rret; /* error or non-blocking */
  588|       |
  589|      0|            rl->rstate = SSL_ST_READ_BODY;
  ------------------
  |  | 1161|      0|#define SSL_ST_READ_BODY 0xF1
  ------------------
  590|       |
  591|      0|            p = rl->packet;
  592|      0|            if (!PACKET_buf_init(&pkt, p, rl->packet_length)) {
  ------------------
  |  Branch (592:17): [True: 0, False: 0]
  ------------------
  593|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  594|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  595|      0|            }
  596|      0|            sslv2pkt = pkt;
  597|      0|            if (!PACKET_get_net_2_len(&sslv2pkt, &sslv2len)
  ------------------
  |  Branch (597:17): [True: 0, False: 0]
  ------------------
  598|      0|                || !PACKET_get_1(&sslv2pkt, &type)) {
  ------------------
  |  Branch (598:20): [True: 0, False: 0]
  ------------------
  599|      0|                RLAYERfatal(rl, SSL_AD_DECODE_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  600|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  601|      0|            }
  602|       |            /*
  603|       |             * The first record received by the server may be a V2ClientHello.
  604|       |             */
  605|      0|            if (rl->role == OSSL_RECORD_ROLE_SERVER
  ------------------
  |  |   40|      0|#define OSSL_RECORD_ROLE_SERVER 1
  ------------------
  |  Branch (605:17): [True: 0, False: 0]
  ------------------
  606|      0|                && rl->is_first_record
  ------------------
  |  Branch (606:20): [True: 0, False: 0]
  ------------------
  607|      0|                && (sslv2len & 0x8000) != 0
  ------------------
  |  Branch (607:20): [True: 0, False: 0]
  ------------------
  608|      0|                && (type == SSL2_MT_CLIENT_HELLO)) {
  ------------------
  |  |   25|      0|#define SSL2_MT_CLIENT_HELLO 1
  ------------------
  |  Branch (608:20): [True: 0, False: 0]
  ------------------
  609|       |                /*
  610|       |                 *  SSLv2 style record
  611|       |                 *
  612|       |                 * |num_recs| here will actually always be 0 because
  613|       |                 * |num_recs > 0| only ever occurs when we are processing
  614|       |                 * multiple app data records - which we know isn't the case here
  615|       |                 * because it is an SSLv2ClientHello. We keep it using
  616|       |                 * |num_recs| for the sake of consistency
  617|       |                 */
  618|      0|                thisrr->type = SSL3_RT_HANDSHAKE;
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  619|      0|                thisrr->rec_version = SSL2_VERSION;
  ------------------
  |  |   23|      0|#define SSL2_VERSION 0x0002
  ------------------
  620|       |
  621|      0|                thisrr->length = sslv2len & 0x7fff;
  622|       |
  623|      0|                if (!rl->funcs->validate_record_header(rl, thisrr)) {
  ------------------
  |  Branch (623:21): [True: 0, False: 0]
  ------------------
  624|       |                    /* RLAYERfatal already called */
  625|      0|                    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  626|      0|                }
  627|       |
  628|      0|                if (thisrr->length > TLS_BUFFER_get_len(rbuf)
  ------------------
  |  |  527|      0|#define TLS_BUFFER_get_len(b) ((b)->len)
  ------------------
  |  Branch (628:21): [True: 0, False: 0]
  ------------------
  629|      0|                        - SSL2_RT_HEADER_LENGTH) {
  ------------------
  |  |  529|      0|#define SSL2_RT_HEADER_LENGTH 2
  ------------------
  630|      0|                    RLAYERfatal(rl, SSL_AD_RECORD_OVERFLOW,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  631|      0|                        SSL_R_PACKET_LENGTH_TOO_LONG);
  632|      0|                    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  633|      0|                }
  634|      0|            } else {
  635|       |                /* SSLv3+ style record */
  636|       |
  637|       |                /* Pull apart the header into the TLS_RL_RECORD */
  638|      0|                if (!PACKET_get_1(&pkt, &type)
  ------------------
  |  Branch (638:21): [True: 0, False: 0]
  ------------------
  639|      0|                    || !PACKET_get_net_2(&pkt, &version)
  ------------------
  |  Branch (639:24): [True: 0, False: 0]
  ------------------
  640|      0|                    || !PACKET_get_net_2_len(&pkt, &thisrr->length)) {
  ------------------
  |  Branch (640:24): [True: 0, False: 0]
  ------------------
  641|      0|                    if (rl->msg_callback != NULL)
  ------------------
  |  Branch (641:25): [True: 0, False: 0]
  ------------------
  642|      0|                        rl->msg_callback(0, 0, SSL3_RT_HEADER, p, 5, rl->cbarg);
  ------------------
  |  |  239|      0|#define SSL3_RT_HEADER 0x100
  ------------------
  643|      0|                    RLAYERfatal(rl, SSL_AD_DECODE_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  644|      0|                    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  645|      0|                }
  646|      0|                thisrr->type = type;
  647|      0|                thisrr->rec_version = version;
  648|       |
  649|       |                /*
  650|       |                 * When we call validate_record_header() only records actually
  651|       |                 * received in SSLv2 format should have the record version set
  652|       |                 * to SSL2_VERSION. This way validate_record_header() can know
  653|       |                 * what format the record was in based on the version.
  654|       |                 */
  655|      0|                if (thisrr->rec_version == SSL2_VERSION) {
  ------------------
  |  |   23|      0|#define SSL2_VERSION 0x0002
  ------------------
  |  Branch (655:21): [True: 0, False: 0]
  ------------------
  656|      0|                    RLAYERfatal(rl, SSL_AD_PROTOCOL_VERSION,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  657|      0|                        SSL_R_WRONG_VERSION_NUMBER);
  658|      0|                    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  659|      0|                }
  660|       |
  661|      0|                if (rl->msg_callback != NULL)
  ------------------
  |  Branch (661:21): [True: 0, False: 0]
  ------------------
  662|      0|                    rl->msg_callback(0, version, SSL3_RT_HEADER, p, 5, rl->cbarg);
  ------------------
  |  |  239|      0|#define SSL3_RT_HEADER 0x100
  ------------------
  663|       |
  664|      0|                if (!rl->funcs->validate_record_header(rl, thisrr)) {
  ------------------
  |  Branch (664:21): [True: 0, False: 0]
  ------------------
  665|       |                    /* RLAYERfatal already called */
  666|      0|                    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  667|      0|                }
  668|       |
  669|      0|                if (thisrr->length > TLS_BUFFER_get_len(rbuf) - SSL3_RT_HEADER_LENGTH) {
  ------------------
  |  |  527|      0|#define TLS_BUFFER_get_len(b) ((b)->len)
  ------------------
                              if (thisrr->length > TLS_BUFFER_get_len(rbuf) - SSL3_RT_HEADER_LENGTH) {
  ------------------
  |  |  139|      0|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  |  Branch (669:21): [True: 0, False: 0]
  ------------------
  670|      0|                    RLAYERfatal(rl, SSL_AD_RECORD_OVERFLOW,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  671|      0|                        SSL_R_PACKET_LENGTH_TOO_LONG);
  672|      0|                    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  673|      0|                }
  674|      0|            }
  675|       |
  676|       |            /* now rl->rstate == SSL_ST_READ_BODY */
  677|      0|        }
  678|       |
  679|       |        /*
  680|       |         * rl->rstate == SSL_ST_READ_BODY, get and decode the data. Calculate
  681|       |         * how much more data we need to read for the rest of the record
  682|       |         */
  683|      0|        if (thisrr->rec_version == SSL2_VERSION) {
  ------------------
  |  |   23|      0|#define SSL2_VERSION 0x0002
  ------------------
  |  Branch (683:13): [True: 0, False: 0]
  ------------------
  684|      0|            more = thisrr->length + SSL2_RT_HEADER_LENGTH
  ------------------
  |  |  529|      0|#define SSL2_RT_HEADER_LENGTH 2
  ------------------
  685|      0|                - SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|      0|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  686|      0|        } else {
  687|      0|            more = thisrr->length;
  688|      0|        }
  689|       |
  690|      0|        if (more > 0) {
  ------------------
  |  Branch (690:13): [True: 0, False: 0]
  ------------------
  691|       |            /* now rl->packet_length == SSL3_RT_HEADER_LENGTH */
  692|       |
  693|      0|            rret = rl->funcs->read_n(rl, more, more, 1, 0, &n);
  694|      0|            if (rret < OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (694:17): [True: 0, False: 0]
  ------------------
  695|      0|                return rret; /* error or non-blocking io */
  696|      0|        }
  697|       |
  698|       |        /* set state for later operations */
  699|      0|        rl->rstate = SSL_ST_READ_HEADER;
  ------------------
  |  | 1160|      0|#define SSL_ST_READ_HEADER 0xF0
  ------------------
  700|       |
  701|       |        /*
  702|       |         * At this point, rl->packet_length == SSL3_RT_HEADER_LENGTH
  703|       |         * + thisrr->length, or rl->packet_length == SSL2_RT_HEADER_LENGTH
  704|       |         * + thisrr->length and we have that many bytes in rl->packet
  705|       |         */
  706|      0|        if (thisrr->rec_version == SSL2_VERSION)
  ------------------
  |  |   23|      0|#define SSL2_VERSION 0x0002
  ------------------
  |  Branch (706:13): [True: 0, False: 0]
  ------------------
  707|      0|            thisrr->input = &(rl->packet[SSL2_RT_HEADER_LENGTH]);
  ------------------
  |  |  529|      0|#define SSL2_RT_HEADER_LENGTH 2
  ------------------
  708|      0|        else
  709|      0|            thisrr->input = &(rl->packet[SSL3_RT_HEADER_LENGTH]);
  ------------------
  |  |  139|      0|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  710|       |
  711|       |        /*
  712|       |         * ok, we can now read from 'rl->packet' data into 'thisrr'.
  713|       |         * thisrr->input points at thisrr->length bytes, which need to be copied
  714|       |         * into thisrr->data by either the decryption or by the decompression.
  715|       |         * When the data is 'copied' into the thisrr->data buffer,
  716|       |         * thisrr->input will be updated to point at the new buffer
  717|       |         */
  718|       |
  719|       |        /*
  720|       |         * We now have - encrypted [ MAC [ compressed [ plain ] ] ]
  721|       |         * thisrr->length bytes of encrypted compressed stuff.
  722|       |         */
  723|       |
  724|       |        /* decrypt in place in 'thisrr->input' */
  725|      0|        thisrr->data = thisrr->input;
  726|      0|        thisrr->orig_len = thisrr->length;
  727|       |
  728|      0|        num_recs++;
  729|       |
  730|       |        /* we have pulled in a full packet so zero things */
  731|      0|        rl->packet_length = 0;
  732|      0|        rl->is_first_record = 0;
  733|      0|    } while (num_recs < max_recs
  ------------------
  |  Branch (733:14): [True: 0, False: 0]
  ------------------
  734|      0|        && thisrr->type == SSL3_RT_APPLICATION_DATA
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (734:12): [True: 0, False: 0]
  ------------------
  735|      0|        && RLAYER_USE_EXPLICIT_IV(rl)
  ------------------
  |  |  397|      0|#define RLAYER_USE_EXPLICIT_IV(rl) ((rl)->version == TLS1_1_VERSION \
  |  |  ------------------
  |  |  |  |   25|      0|#define TLS1_1_VERSION 0x0302
  |  |  ------------------
  |  |  |  Branch (397:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  398|      0|    || (rl)->version == TLS1_2_VERSION                              \
  |  |  ------------------
  |  |  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  |  |  ------------------
  |  |  |  Branch (398:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  399|      0|    || (rl)->version == DTLS1_BAD_VER                               \
  |  |  ------------------
  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  ------------------
  |  |  |  Branch (399:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  400|      0|    || (rl)->version == DTLS1_VERSION                               \
  |  |  ------------------
  |  |  |  |   28|      0|#define DTLS1_VERSION 0xFEFF
  |  |  ------------------
  |  |  |  Branch (400:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  401|      0|    || (rl)->version == DTLS1_2_VERSION)
  |  |  ------------------
  |  |  |  |   29|      0|#define DTLS1_2_VERSION 0xFEFD
  |  |  ------------------
  |  |  |  Branch (401:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  736|      0|        && rl->enc_ctx != NULL
  ------------------
  |  Branch (736:12): [True: 0, False: 0]
  ------------------
  737|      0|        && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx))
  ------------------
  |  Branch (737:12): [True: 0, False: 0]
  ------------------
  738|      0|               & EVP_CIPH_FLAG_PIPELINE)
  ------------------
  |  |  360|      0|#define EVP_CIPH_FLAG_PIPELINE 0X800000
  ------------------
  739|      0|            != 0
  740|      0|        && tls_record_app_data_waiting(rl));
  ------------------
  |  Branch (740:12): [True: 0, False: 0]
  ------------------
  741|       |
  742|      0|    if (num_recs == 1
  ------------------
  |  Branch (742:9): [True: 0, False: 0]
  ------------------
  743|      0|        && thisrr->type == SSL3_RT_CHANGE_CIPHER_SPEC
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  |  Branch (743:12): [True: 0, False: 0]
  ------------------
  744|       |        /* The following can happen in tlsany_meth after HRR */
  745|      0|        && rl->version == TLS1_3_VERSION
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (745:12): [True: 0, False: 0]
  ------------------
  746|      0|        && rl->is_first_handshake) {
  ------------------
  |  Branch (746:12): [True: 0, False: 0]
  ------------------
  747|       |        /*
  748|       |         * CCS messages must be exactly 1 byte long, containing the value 0x01
  749|       |         */
  750|      0|        if (thisrr->length != 1 || thisrr->data[0] != 0x01) {
  ------------------
  |  Branch (750:13): [True: 0, False: 0]
  |  Branch (750:36): [True: 0, False: 0]
  ------------------
  751|      0|            RLAYERfatal(rl, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  752|      0|                SSL_R_INVALID_CCS_MESSAGE);
  753|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  754|      0|        }
  755|       |        /*
  756|       |         * CCS messages are ignored in TLSv1.3. We treat it like an empty
  757|       |         * handshake record - but we still call the msg_callback
  758|       |         */
  759|      0|        if (rl->msg_callback != NULL)
  ------------------
  |  Branch (759:13): [True: 0, False: 0]
  ------------------
  760|      0|            rl->msg_callback(0, TLS1_3_VERSION, SSL3_RT_CHANGE_CIPHER_SPEC,
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
                          rl->msg_callback(0, TLS1_3_VERSION, SSL3_RT_CHANGE_CIPHER_SPEC,
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  761|      0|                thisrr->data, 1, rl->cbarg);
  762|      0|        thisrr->type = SSL3_RT_HANDSHAKE;
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  763|      0|        if (++(rl->empty_record_count) > MAX_EMPTY_RECORDS) {
  ------------------
  |  |  527|      0|#define MAX_EMPTY_RECORDS 32
  ------------------
  |  Branch (763:13): [True: 0, False: 0]
  ------------------
  764|      0|            RLAYERfatal(rl, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  765|      0|                SSL_R_UNEXPECTED_CCS_MESSAGE);
  766|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  767|      0|        }
  768|      0|        rl->num_recs = 0;
  769|      0|        rl->curr_rec = 0;
  770|      0|        rl->num_released = 0;
  771|       |
  772|      0|        return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  773|      0|    }
  774|       |
  775|      0|    if (rl->md_ctx != NULL) {
  ------------------
  |  Branch (775:9): [True: 0, False: 0]
  ------------------
  776|      0|        const EVP_MD *tmpmd = EVP_MD_CTX_get0_md(rl->md_ctx);
  777|       |
  778|      0|        if (tmpmd != NULL) {
  ------------------
  |  Branch (778:13): [True: 0, False: 0]
  ------------------
  779|      0|            imac_size = EVP_MD_get_size(tmpmd);
  780|      0|            if (!ossl_assert(imac_size > 0 && imac_size <= EVP_MAX_MD_SIZE)) {
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  ------------------
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (780:17): [True: 0, False: 0]
  ------------------
  781|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  782|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  783|      0|            }
  784|      0|            mac_size = (size_t)imac_size;
  785|      0|        }
  786|      0|    }
  787|       |
  788|       |    /*
  789|       |     * If in encrypt-then-mac mode calculate mac from encrypted record. All
  790|       |     * the details below are public so no timing details can leak.
  791|       |     */
  792|      0|    if (rl->use_etm && rl->md_ctx != NULL) {
  ------------------
  |  Branch (792:9): [True: 0, False: 0]
  |  Branch (792:24): [True: 0, False: 0]
  ------------------
  793|      0|        unsigned char *mac;
  794|       |
  795|      0|        for (j = 0; j < num_recs; j++) {
  ------------------
  |  Branch (795:21): [True: 0, False: 0]
  ------------------
  796|      0|            thisrr = &rr[j];
  797|       |
  798|      0|            if (thisrr->length < mac_size) {
  ------------------
  |  Branch (798:17): [True: 0, False: 0]
  ------------------
  799|      0|                RLAYERfatal(rl, SSL_AD_DECODE_ERROR, SSL_R_LENGTH_TOO_SHORT);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  800|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  801|      0|            }
  802|      0|            thisrr->length -= mac_size;
  803|      0|            mac = thisrr->data + thisrr->length;
  804|      0|            i = rl->funcs->mac(rl, thisrr, md, 0 /* not send */);
  805|      0|            if (i == 0 || CRYPTO_memcmp(md, mac, mac_size) != 0) {
  ------------------
  |  |  319|      0|#define CRYPTO_memcmp memcmp
  ------------------
  |  Branch (805:17): [True: 0, False: 0]
  |  Branch (805:27): [True: 0, False: 0]
  ------------------
  806|      0|                RLAYERfatal(rl, SSL_AD_BAD_RECORD_MAC,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  807|      0|                    SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC);
  808|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  809|      0|            }
  810|      0|        }
  811|       |        /*
  812|       |         * We've handled the mac now - there is no MAC inside the encrypted
  813|       |         * record
  814|       |         */
  815|      0|        mac_size = 0;
  816|      0|    }
  817|       |
  818|      0|    if (mac_size > 0) {
  ------------------
  |  Branch (818:9): [True: 0, False: 0]
  ------------------
  819|      0|        macbufs = OPENSSL_calloc(num_recs, sizeof(*macbufs));
  ------------------
  |  |  112|      0|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  820|      0|        if (macbufs == NULL) {
  ------------------
  |  Branch (820:13): [True: 0, False: 0]
  ------------------
  821|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  822|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  823|      0|        }
  824|      0|    }
  825|       |
  826|      0|    ERR_set_mark();
  827|      0|    enc_err = rl->funcs->cipher(rl, rr, num_recs, 0, macbufs, mac_size);
  828|       |
  829|       |    /*-
  830|       |     * enc_err is:
  831|       |     *    0: if the record is publicly invalid, or an internal error, or AEAD
  832|       |     *       decryption failed, or ETM decryption failed.
  833|       |     *    1: Success or MTE decryption failed (MAC will be randomised)
  834|       |     */
  835|      0|    if (enc_err == 0) {
  ------------------
  |  Branch (835:9): [True: 0, False: 0]
  ------------------
  836|      0|        if (rl->alert != SSL_AD_NO_ALERT) {
  ------------------
  |  |   63|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (836:13): [True: 0, False: 0]
  ------------------
  837|       |            /* RLAYERfatal() already got called */
  838|      0|            ERR_clear_last_mark();
  839|      0|            goto end;
  840|      0|        }
  841|      0|        if (num_recs == 1
  ------------------
  |  Branch (841:13): [True: 0, False: 0]
  ------------------
  842|      0|            && rl->skip_early_data != NULL
  ------------------
  |  Branch (842:16): [True: 0, False: 0]
  ------------------
  843|      0|            && rl->skip_early_data(rl->cbarg)) {
  ------------------
  |  Branch (843:16): [True: 0, False: 0]
  ------------------
  844|       |            /*
  845|       |             * Valid early_data that we cannot decrypt will fail here. We treat
  846|       |             * it like an empty record.
  847|       |             */
  848|       |
  849|       |            /*
  850|       |             * Remove any errors from the stack. Decryption failures are normal
  851|       |             * behaviour.
  852|       |             */
  853|      0|            ERR_pop_to_mark();
  854|       |
  855|      0|            thisrr = &rr[0];
  856|       |
  857|      0|            if (!rlayer_early_data_count_ok(rl, thisrr->length,
  ------------------
  |  Branch (857:17): [True: 0, False: 0]
  ------------------
  858|      0|                    EARLY_DATA_CIPHERTEXT_OVERHEAD, 0)) {
  ------------------
  |  |  616|      0|#define EARLY_DATA_CIPHERTEXT_OVERHEAD ((6 * (EVP_GCM_TLS_TAG_LEN + 1)) + 2)
  |  |  ------------------
  |  |  |  |  476|      0|#define EVP_GCM_TLS_TAG_LEN 16
  |  |  ------------------
  ------------------
  859|       |                /* RLAYERfatal() already called */
  860|      0|                goto end;
  861|      0|            }
  862|       |
  863|      0|            thisrr->length = 0;
  864|      0|            rl->num_recs = 0;
  865|      0|            rl->curr_rec = 0;
  866|      0|            rl->num_released = 0;
  867|       |            /* Reset the read sequence */
  868|      0|            memset(rl->sequence, 0, sizeof(rl->sequence));
  869|      0|            ret = 1;
  870|      0|            goto end;
  871|      0|        }
  872|      0|        ERR_clear_last_mark();
  873|      0|        RLAYERfatal(rl, SSL_AD_BAD_RECORD_MAC,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  874|      0|            SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC);
  875|      0|        goto end;
  876|      0|    } else {
  877|      0|        ERR_clear_last_mark();
  878|      0|    }
  879|      0|    OSSL_TRACE_BEGIN(TLS)
  ------------------
  |  |  221|      0|    do {                           \
  |  |  222|      0|        BIO *trc_out = NULL;       \
  |  |  223|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  880|      0|    {
  881|      0|        BIO_printf(trc_out, "dec %lu\n", (unsigned long)rr[0].length);
  882|      0|        BIO_dump_indent(trc_out, rr[0].data, (int)rr[0].length, 4);
  883|      0|    }
  884|      0|    OSSL_TRACE_END(TLS);
  ------------------
  |  |  226|      0|    }                            \
  |  |  227|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  885|       |
  886|       |    /* r->length is now the compressed data plus mac */
  887|      0|    if (rl->enc_ctx != NULL
  ------------------
  |  Branch (887:9): [True: 0, False: 0]
  ------------------
  888|      0|        && !rl->use_etm
  ------------------
  |  Branch (888:12): [True: 0, False: 0]
  ------------------
  889|      0|        && EVP_MD_CTX_get0_md(rl->md_ctx) != NULL) {
  ------------------
  |  Branch (889:12): [True: 0, False: 0]
  ------------------
  890|      0|        for (j = 0; j < num_recs; j++) {
  ------------------
  |  Branch (890:21): [True: 0, False: 0]
  ------------------
  891|      0|            SSL_MAC_BUF *thismb = &macbufs[j];
  892|       |
  893|      0|            thisrr = &rr[j];
  894|       |
  895|      0|            i = rl->funcs->mac(rl, thisrr, md, 0 /* not send */);
  896|      0|            if (i == 0 || thismb == NULL || thismb->mac == NULL
  ------------------
  |  Branch (896:17): [True: 0, False: 0]
  |  Branch (896:27): [True: 0, False: 0]
  |  Branch (896:45): [True: 0, False: 0]
  ------------------
  897|      0|                || CRYPTO_memcmp(md, thismb->mac, (size_t)mac_size) != 0)
  ------------------
  |  |  319|      0|#define CRYPTO_memcmp memcmp
  ------------------
  |  Branch (897:20): [True: 0, False: 0]
  ------------------
  898|      0|                enc_err = 0;
  899|      0|            if (thisrr->length > SSL3_RT_MAX_COMPRESSED_LENGTH + mac_size)
  ------------------
  |  |  203|      0|    (SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_COMPRESSED_OVERHEAD)
  |  |  ------------------
  |  |  |  |  177|      0|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  |  |  ------------------
  |  |                   (SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_COMPRESSED_OVERHEAD)
  |  |  ------------------
  |  |  |  |  179|      0|#define SSL3_RT_MAX_COMPRESSED_OVERHEAD 1024
  |  |  ------------------
  ------------------
  |  Branch (899:17): [True: 0, False: 0]
  ------------------
  900|      0|                enc_err = 0;
  901|      0|#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
  902|      0|            if (enc_err == 0 && mac_size > 0 && thismb != NULL && thismb->mac != NULL && (md[0] ^ thismb->mac[0]) != 0xFF) {
  ------------------
  |  Branch (902:17): [True: 0, False: 0]
  |  Branch (902:33): [True: 0, False: 0]
  |  Branch (902:49): [True: 0, False: 0]
  |  Branch (902:67): [True: 0, False: 0]
  |  Branch (902:90): [True: 0, False: 0]
  ------------------
  903|      0|                enc_err = 1;
  904|      0|            }
  905|      0|#endif
  906|      0|        }
  907|      0|    }
  908|       |
  909|      0|    if (enc_err == 0) {
  ------------------
  |  Branch (909:9): [True: 0, False: 0]
  ------------------
  910|      0|        if (rl->alert != SSL_AD_NO_ALERT) {
  ------------------
  |  |   63|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (910:13): [True: 0, False: 0]
  ------------------
  911|       |            /* We already called RLAYERfatal() */
  912|      0|            goto end;
  913|      0|        }
  914|       |        /*
  915|       |         * A separate 'decryption_failed' alert was introduced with TLS 1.0,
  916|       |         * SSL 3.0 only has 'bad_record_mac'.  But unless a decryption
  917|       |         * failure is directly visible from the ciphertext anyway, we should
  918|       |         * not reveal which kind of error occurred -- this might become
  919|       |         * visible to an attacker (e.g. via a logfile)
  920|       |         */
  921|      0|        RLAYERfatal(rl, SSL_AD_BAD_RECORD_MAC,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  922|      0|            SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC);
  923|      0|        goto end;
  924|      0|    }
  925|       |
  926|      0|    for (j = 0; j < num_recs; j++) {
  ------------------
  |  Branch (926:17): [True: 0, False: 0]
  ------------------
  927|      0|        thisrr = &rr[j];
  928|       |
  929|      0|        if (!rl->funcs->post_process_record(rl, thisrr)) {
  ------------------
  |  Branch (929:13): [True: 0, False: 0]
  ------------------
  930|       |            /* RLAYERfatal already called */
  931|      0|            goto end;
  932|      0|        }
  933|       |
  934|       |        /*
  935|       |         * Record overflow checking (e.g. checking if
  936|       |         * thisrr->length > SSL3_RT_MAX_PLAIN_LENGTH) is the responsibility of
  937|       |         * the post_process_record() function above. However we check here if
  938|       |         * the received packet overflows the current Max Fragment Length setting
  939|       |         * if there is one.
  940|       |         * Note: rl->max_frag_len != SSL3_RT_MAX_PLAIN_LENGTH and KTLS are
  941|       |         * mutually exclusive. Also note that with KTLS thisrr->length can
  942|       |         * be > SSL3_RT_MAX_PLAIN_LENGTH (and rl->max_frag_len must be ignored)
  943|       |         */
  944|      0|        if (rl->max_frag_len != SSL3_RT_MAX_PLAIN_LENGTH
  ------------------
  |  |  177|      0|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
  |  Branch (944:13): [True: 0, False: 0]
  ------------------
  945|      0|            && thisrr->length > rl->max_frag_len) {
  ------------------
  |  Branch (945:16): [True: 0, False: 0]
  ------------------
  946|      0|            RLAYERfatal(rl, SSL_AD_RECORD_OVERFLOW, SSL_R_DATA_LENGTH_TOO_LONG);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  947|      0|            goto end;
  948|      0|        }
  949|       |
  950|      0|        thisrr->off = 0;
  951|       |        /*-
  952|       |         * So at this point the following is true
  953|       |         * thisrr->type   is the type of record
  954|       |         * thisrr->length == number of bytes in record
  955|       |         * thisrr->off    == offset to first valid byte
  956|       |         * thisrr->data   == where to take bytes from, increment after use :-).
  957|       |         */
  958|       |
  959|       |        /* just read a 0 length packet */
  960|      0|        if (thisrr->length == 0) {
  ------------------
  |  Branch (960:13): [True: 0, False: 0]
  ------------------
  961|      0|            if (++(rl->empty_record_count) > MAX_EMPTY_RECORDS) {
  ------------------
  |  |  527|      0|#define MAX_EMPTY_RECORDS 32
  ------------------
  |  Branch (961:17): [True: 0, False: 0]
  ------------------
  962|      0|                RLAYERfatal(rl, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  963|      0|                    SSL_R_RECORD_TOO_SMALL);
  964|      0|                goto end;
  965|      0|            }
  966|      0|        } else {
  967|      0|            rl->empty_record_count = 0;
  968|      0|        }
  969|      0|    }
  970|       |
  971|      0|    if (rl->level == OSSL_RECORD_PROTECTION_LEVEL_EARLY) {
  ------------------
  |  | 2933|      0|#define OSSL_RECORD_PROTECTION_LEVEL_EARLY 1
  ------------------
  |  Branch (971:9): [True: 0, False: 0]
  ------------------
  972|      0|        thisrr = &rr[0];
  973|      0|        if (thisrr->type == SSL3_RT_APPLICATION_DATA
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (973:13): [True: 0, False: 0]
  ------------------
  974|      0|            && !rlayer_early_data_count_ok(rl, thisrr->length, 0, 0)) {
  ------------------
  |  Branch (974:16): [True: 0, False: 0]
  ------------------
  975|       |            /* RLAYERfatal already called */
  976|      0|            goto end;
  977|      0|        }
  978|      0|    }
  979|       |
  980|      0|    rl->num_recs = num_recs;
  981|      0|    rl->curr_rec = 0;
  982|      0|    rl->num_released = 0;
  983|      0|    ret = OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  984|      0|end:
  985|      0|    if (macbufs != NULL) {
  ------------------
  |  Branch (985:9): [True: 0, False: 0]
  ------------------
  986|      0|        for (j = 0; j < num_recs; j++) {
  ------------------
  |  Branch (986:21): [True: 0, False: 0]
  ------------------
  987|      0|            if (macbufs[j].alloced)
  ------------------
  |  Branch (987:17): [True: 0, False: 0]
  ------------------
  988|      0|                OPENSSL_free(macbufs[j].mac);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  989|      0|        }
  990|      0|        OPENSSL_free(macbufs);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  991|      0|    }
  992|      0|    return ret;
  993|      0|}
tls_read_record:
 1124|  4.13k|{
 1125|  4.13k|    TLS_RL_RECORD *rec;
 1126|       |
 1127|       |    /*
 1128|       |     * tls_get_more_records() can return success without actually reading
 1129|       |     * anything useful (i.e. if empty records are read). We loop here until
 1130|       |     * we have something useful. tls_get_more_records() will eventually fail if
 1131|       |     * too many sequential empty records are read.
 1132|       |     */
 1133|  4.13k|    while (rl->curr_rec >= rl->num_recs) {
  ------------------
  |  Branch (1133:12): [True: 4.13k, False: 0]
  ------------------
 1134|  4.13k|        int ret;
 1135|       |
 1136|  4.13k|        if (rl->num_released != rl->num_recs) {
  ------------------
  |  Branch (1136:13): [True: 0, False: 4.13k]
  ------------------
 1137|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, SSL_R_RECORDS_NOT_RELEASED);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1138|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1139|      0|        }
 1140|       |
 1141|  4.13k|        ret = rl->funcs->get_more_records(rl);
 1142|       |
 1143|  4.13k|        if (ret != OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|  4.13k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1143:13): [True: 4.13k, False: 0]
  ------------------
 1144|  4.13k|            return ret;
 1145|  4.13k|    }
 1146|       |
 1147|       |    /*
 1148|       |     * We have now got rl->num_recs records buffered in rl->rrec. rl->curr_rec
 1149|       |     * points to the next one to read.
 1150|       |     */
 1151|      0|    rec = &rl->rrec[rl->curr_rec++];
 1152|       |
 1153|      0|    *rechandle = rec;
 1154|      0|    *rversion = rec->rec_version;
 1155|      0|    *type = rec->type;
 1156|      0|    *data = rec->data + rec->off;
 1157|      0|    *datalen = rec->length;
 1158|      0|    if (rl->isdtls) {
  ------------------
  |  Branch (1158:9): [True: 0, False: 0]
  ------------------
 1159|      0|        *epoch = rec->epoch;
 1160|      0|        memcpy(seq_num, rec->seq_num, sizeof(rec->seq_num));
 1161|      0|    }
 1162|       |
 1163|      0|    return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1164|  4.13k|}
tls_set_options:
 1203|  1.31k|{
 1204|  1.31k|    const OSSL_PARAM *p;
 1205|       |
 1206|  1.31k|    p = OSSL_PARAM_locate_const(options, OSSL_LIBSSL_RECORD_LAYER_PARAM_OPTIONS);
  ------------------
  |  |  332|  1.31k|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_OPTIONS "options"
  ------------------
 1207|  1.31k|    if (p != NULL && !OSSL_PARAM_get_uint64(p, &rl->options)) {
  ------------------
  |  Branch (1207:9): [True: 1.31k, False: 0]
  |  Branch (1207:22): [True: 0, False: 1.31k]
  ------------------
 1208|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1209|      0|        return 0;
 1210|      0|    }
 1211|       |
 1212|  1.31k|    p = OSSL_PARAM_locate_const(options, OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE);
  ------------------
  |  |  331|  1.31k|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE "mode"
  ------------------
 1213|  1.31k|    if (p != NULL && !OSSL_PARAM_get_uint32(p, &rl->mode)) {
  ------------------
  |  Branch (1213:9): [True: 1.31k, False: 0]
  |  Branch (1213:22): [True: 0, False: 1.31k]
  ------------------
 1214|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1215|      0|        return 0;
 1216|      0|    }
 1217|       |
 1218|  1.31k|    if (rl->direction == OSSL_RECORD_DIRECTION_READ) {
  ------------------
  |  |   42|  1.31k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1218:9): [True: 659, False: 659]
  ------------------
 1219|    659|        p = OSSL_PARAM_locate_const(options,
 1220|    659|            OSSL_LIBSSL_RECORD_LAYER_READ_BUFFER_LEN);
  ------------------
  |  |  337|    659|# define OSSL_LIBSSL_RECORD_LAYER_READ_BUFFER_LEN "read_buffer_len"
  ------------------
 1221|    659|        if (p != NULL && !OSSL_PARAM_get_size_t(p, &rl->rbuf.default_len)) {
  ------------------
  |  Branch (1221:13): [True: 659, False: 0]
  |  Branch (1221:26): [True: 0, False: 659]
  ------------------
 1222|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1223|      0|            return 0;
 1224|      0|        }
 1225|    659|    } else {
 1226|    659|        p = OSSL_PARAM_locate_const(options,
 1227|    659|            OSSL_LIBSSL_RECORD_LAYER_PARAM_BLOCK_PADDING);
  ------------------
  |  |  327|    659|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_BLOCK_PADDING "block_padding"
  ------------------
 1228|    659|        if (p != NULL && !OSSL_PARAM_get_size_t(p, &rl->block_padding)) {
  ------------------
  |  Branch (1228:13): [True: 659, False: 0]
  |  Branch (1228:26): [True: 0, False: 659]
  ------------------
 1229|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1230|      0|            return 0;
 1231|      0|        }
 1232|    659|        p = OSSL_PARAM_locate_const(options,
 1233|    659|            OSSL_LIBSSL_RECORD_LAYER_PARAM_HS_PADDING);
  ------------------
  |  |  328|    659|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_HS_PADDING "hs_padding"
  ------------------
 1234|    659|        if (p != NULL && !OSSL_PARAM_get_size_t(p, &rl->hs_padding)) {
  ------------------
  |  Branch (1234:13): [True: 659, False: 0]
  |  Branch (1234:26): [True: 0, False: 659]
  ------------------
 1235|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1236|      0|            return 0;
 1237|      0|        }
 1238|    659|    }
 1239|       |
 1240|  1.31k|    if (rl->level == OSSL_RECORD_PROTECTION_LEVEL_APPLICATION) {
  ------------------
  |  | 2935|  1.31k|#define OSSL_RECORD_PROTECTION_LEVEL_APPLICATION 3
  ------------------
  |  Branch (1240:9): [True: 0, False: 1.31k]
  ------------------
 1241|       |        /*
 1242|       |         * We ignore any read_ahead setting prior to the application protection
 1243|       |         * level. Otherwise we may read ahead data in a lower protection level
 1244|       |         * that is destined for a higher protection level. To simplify the logic
 1245|       |         * we don't support that at this stage.
 1246|       |         */
 1247|      0|        p = OSSL_PARAM_locate_const(options,
 1248|      0|            OSSL_LIBSSL_RECORD_LAYER_PARAM_READ_AHEAD);
  ------------------
  |  |  333|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_READ_AHEAD "read_ahead"
  ------------------
 1249|      0|        if (p != NULL && !OSSL_PARAM_get_int(p, &rl->read_ahead)) {
  ------------------
  |  Branch (1249:13): [True: 0, False: 0]
  |  Branch (1249:26): [True: 0, False: 0]
  ------------------
 1250|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1251|      0|            return 0;
 1252|      0|        }
 1253|      0|    }
 1254|       |
 1255|  1.31k|    return 1;
 1256|  1.31k|}
tls_int_new_record_layer:
 1266|  1.31k|{
 1267|  1.31k|    OSSL_RECORD_LAYER *rl = OPENSSL_zalloc(sizeof(*rl));
  ------------------
  |  |  108|  1.31k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1268|  1.31k|    const OSSL_PARAM *p;
 1269|       |
 1270|  1.31k|    *retrl = NULL;
 1271|       |
 1272|  1.31k|    if (rl == NULL)
  ------------------
  |  Branch (1272:9): [True: 0, False: 1.31k]
  ------------------
 1273|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1274|       |
 1275|       |    /*
 1276|       |     * Default the value for max_frag_len. This may be overridden by the
 1277|       |     * settings
 1278|       |     */
 1279|  1.31k|    rl->max_frag_len = SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|  1.31k|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 1280|       |
 1281|       |    /* Loop through all the settings since they must all be understood */
 1282|  1.31k|    if (settings != NULL) {
  ------------------
  |  Branch (1282:9): [True: 1.31k, False: 0]
  ------------------
 1283|  1.31k|        for (p = settings; p->key != NULL; p++) {
  ------------------
  |  Branch (1283:28): [True: 0, False: 1.31k]
  ------------------
 1284|      0|            if (strcmp(p->key, OSSL_LIBSSL_RECORD_LAYER_PARAM_USE_ETM) == 0) {
  ------------------
  |  |  336|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_USE_ETM "use_etm"
  ------------------
  |  Branch (1284:17): [True: 0, False: 0]
  ------------------
 1285|      0|                if (!OSSL_PARAM_get_int(p, &rl->use_etm)) {
  ------------------
  |  Branch (1285:21): [True: 0, False: 0]
  ------------------
 1286|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1287|      0|                    goto err;
 1288|      0|                }
 1289|      0|            } else if (strcmp(p->key,
  ------------------
  |  Branch (1289:24): [True: 0, False: 0]
  ------------------
 1290|      0|                           OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_FRAG_LEN)
  ------------------
  |  |  330|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_FRAG_LEN "max_frag_len"
  ------------------
 1291|      0|                == 0) {
 1292|      0|                if (!OSSL_PARAM_get_uint(p, &rl->max_frag_len)) {
  ------------------
  |  Branch (1292:21): [True: 0, False: 0]
  ------------------
 1293|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1294|      0|                    goto err;
 1295|      0|                }
 1296|      0|            } else if (strcmp(p->key,
  ------------------
  |  Branch (1296:24): [True: 0, False: 0]
  ------------------
 1297|      0|                           OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA)
  ------------------
  |  |  329|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA "max_early_data"
  ------------------
 1298|      0|                == 0) {
 1299|      0|                if (!OSSL_PARAM_get_uint32(p, &rl->max_early_data)) {
  ------------------
  |  Branch (1299:21): [True: 0, False: 0]
  ------------------
 1300|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1301|      0|                    goto err;
 1302|      0|                }
 1303|      0|            } else if (strcmp(p->key,
  ------------------
  |  Branch (1303:24): [True: 0, False: 0]
  ------------------
 1304|      0|                           OSSL_LIBSSL_RECORD_LAYER_PARAM_STREAM_MAC)
  ------------------
  |  |  334|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_STREAM_MAC "stream_mac"
  ------------------
 1305|      0|                == 0) {
 1306|      0|                if (!OSSL_PARAM_get_int(p, &rl->stream_mac)) {
  ------------------
  |  Branch (1306:21): [True: 0, False: 0]
  ------------------
 1307|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1308|      0|                    goto err;
 1309|      0|                }
 1310|      0|            } else if (strcmp(p->key,
  ------------------
  |  Branch (1310:24): [True: 0, False: 0]
  ------------------
 1311|      0|                           OSSL_LIBSSL_RECORD_LAYER_PARAM_TLSTREE)
  ------------------
  |  |  335|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_TLSTREE "tlstree"
  ------------------
 1312|      0|                == 0) {
 1313|      0|                if (!OSSL_PARAM_get_int(p, &rl->tlstree)) {
  ------------------
  |  Branch (1313:21): [True: 0, False: 0]
  ------------------
 1314|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1315|      0|                    goto err;
 1316|      0|                }
 1317|      0|            } else {
 1318|      0|                ERR_raise(ERR_LIB_SSL, SSL_R_UNKNOWN_MANDATORY_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1319|      0|                goto err;
 1320|      0|            }
 1321|      0|        }
 1322|  1.31k|    }
 1323|       |
 1324|  1.31k|    rl->libctx = libctx;
 1325|  1.31k|    rl->propq = propq;
 1326|       |
 1327|  1.31k|    rl->version = vers;
 1328|  1.31k|    rl->role = role;
 1329|  1.31k|    rl->direction = direction;
 1330|  1.31k|    rl->level = level;
 1331|  1.31k|    rl->taglen = taglen;
 1332|  1.31k|    rl->md = md;
 1333|       |
 1334|  1.31k|    rl->alert = SSL_AD_NO_ALERT;
  ------------------
  |  |   63|  1.31k|#define SSL_AD_NO_ALERT -1
  ------------------
 1335|  1.31k|    rl->rstate = SSL_ST_READ_HEADER;
  ------------------
  |  | 1160|  1.31k|#define SSL_ST_READ_HEADER 0xF0
  ------------------
 1336|       |
 1337|  1.31k|    if (level == OSSL_RECORD_PROTECTION_LEVEL_NONE)
  ------------------
  |  | 2932|  1.31k|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  |  Branch (1337:9): [True: 1.31k, False: 0]
  ------------------
 1338|  1.31k|        rl->is_first_record = 1;
 1339|       |
 1340|  1.31k|    if (!tls_set1_bio(rl, transport))
  ------------------
  |  Branch (1340:9): [True: 0, False: 1.31k]
  ------------------
 1341|      0|        goto err;
 1342|       |
 1343|  1.31k|    if (prev != NULL && !BIO_up_ref(prev))
  ------------------
  |  Branch (1343:9): [True: 0, False: 1.31k]
  |  Branch (1343:25): [True: 0, False: 0]
  ------------------
 1344|      0|        goto err;
 1345|  1.31k|    rl->prev = prev;
 1346|       |
 1347|  1.31k|    if (next != NULL && !BIO_up_ref(next))
  ------------------
  |  Branch (1347:9): [True: 659, False: 659]
  |  Branch (1347:25): [True: 0, False: 659]
  ------------------
 1348|      0|        goto err;
 1349|  1.31k|    rl->next = next;
 1350|       |
 1351|  1.31k|    rl->cbarg = cbarg;
 1352|  1.31k|    if (fns != NULL) {
  ------------------
  |  Branch (1352:9): [True: 1.31k, False: 0]
  ------------------
 1353|  3.95k|        for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (1353:16): [True: 2.63k, False: 1.31k]
  ------------------
 1354|  2.63k|            switch (fns->function_id) {
 1355|  1.31k|            case OSSL_FUNC_RLAYER_SKIP_EARLY_DATA:
  ------------------
  |  |  185|  1.31k|#define OSSL_FUNC_RLAYER_SKIP_EARLY_DATA 1
  ------------------
  |  Branch (1355:13): [True: 1.31k, False: 1.31k]
  ------------------
 1356|  1.31k|                rl->skip_early_data = OSSL_FUNC_rlayer_skip_early_data(fns);
 1357|  1.31k|                break;
 1358|      0|            case OSSL_FUNC_RLAYER_MSG_CALLBACK:
  ------------------
  |  |  187|      0|#define OSSL_FUNC_RLAYER_MSG_CALLBACK 2
  ------------------
  |  Branch (1358:13): [True: 0, False: 2.63k]
  ------------------
 1359|      0|                rl->msg_callback = OSSL_FUNC_rlayer_msg_callback(fns);
 1360|      0|                break;
 1361|  1.31k|            case OSSL_FUNC_RLAYER_SECURITY:
  ------------------
  |  |  189|  1.31k|#define OSSL_FUNC_RLAYER_SECURITY 3
  ------------------
  |  Branch (1361:13): [True: 1.31k, False: 1.31k]
  ------------------
 1362|  1.31k|                rl->security = OSSL_FUNC_rlayer_security(fns);
 1363|  1.31k|                break;
 1364|      0|            case OSSL_FUNC_RLAYER_PADDING:
  ------------------
  |  |  191|      0|#define OSSL_FUNC_RLAYER_PADDING 4
  ------------------
  |  Branch (1364:13): [True: 0, False: 2.63k]
  ------------------
 1365|      0|                rl->padding = OSSL_FUNC_rlayer_padding(fns);
 1366|      0|            default:
  ------------------
  |  Branch (1366:13): [True: 0, False: 2.63k]
  ------------------
 1367|       |                /* Just ignore anything we don't understand */
 1368|      0|                break;
 1369|  2.63k|            }
 1370|  2.63k|        }
 1371|  1.31k|    }
 1372|       |
 1373|  1.31k|    if (!tls_set_options(rl, options)) {
  ------------------
  |  Branch (1373:9): [True: 0, False: 1.31k]
  ------------------
 1374|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1375|      0|        goto err;
 1376|      0|    }
 1377|       |
 1378|  1.31k|    if ((rl->options & SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS) == 0
  ------------------
  |  |  377|  1.31k|#define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
  |  |  ------------------
  |  |  |  |  350|  1.31k|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1378:9): [True: 1.31k, False: 0]
  ------------------
 1379|  1.31k|        && rl->version <= TLS1_VERSION
  ------------------
  |  |   24|  2.63k|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (1379:12): [True: 0, False: 1.31k]
  ------------------
 1380|      0|        && !EVP_CIPHER_is_a(ciph, "NULL")
  ------------------
  |  Branch (1380:12): [True: 0, False: 0]
  ------------------
 1381|      0|        && !EVP_CIPHER_is_a(ciph, "RC4")) {
  ------------------
  |  Branch (1381:12): [True: 0, False: 0]
  ------------------
 1382|       |        /*
 1383|       |         * Enable vulnerability countermeasure for CBC ciphers with known-IV
 1384|       |         * problem (http://www.openssl.org/~bodo/tls-cbc.txt)
 1385|       |         */
 1386|      0|        rl->need_empty_fragments = 1;
 1387|      0|    }
 1388|       |
 1389|  1.31k|    *retrl = rl;
 1390|  1.31k|    return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|  1.31k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1391|      0|err:
 1392|      0|    tls_int_free(rl);
 1393|      0|    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1394|  1.31k|}
tls_free:
 1481|  1.31k|{
 1482|  1.31k|    TLS_BUFFER *rbuf;
 1483|  1.31k|    size_t left, written;
 1484|  1.31k|    int ret = 1;
 1485|       |
 1486|  1.31k|    if (rl == NULL)
  ------------------
  |  Branch (1486:9): [True: 0, False: 1.31k]
  ------------------
 1487|      0|        return 1;
 1488|       |
 1489|  1.31k|    rbuf = &rl->rbuf;
 1490|       |
 1491|  1.31k|    left = TLS_BUFFER_get_left(rbuf);
  ------------------
  |  |  528|  1.31k|#define TLS_BUFFER_get_left(b) ((b)->left)
  ------------------
 1492|  1.31k|    if (left > 0) {
  ------------------
  |  Branch (1492:9): [True: 0, False: 1.31k]
  ------------------
 1493|       |        /*
 1494|       |         * This record layer is closing but we still have data left in our
 1495|       |         * buffer. It must be destined for the next epoch - so push it there.
 1496|       |         */
 1497|      0|        ret = BIO_write_ex(rl->next, rbuf->buf + rbuf->offset, left, &written);
 1498|      0|    }
 1499|  1.31k|    tls_int_free(rl);
 1500|       |
 1501|  1.31k|    return ret;
 1502|  1.31k|}
tls_get_max_records_default:
 1530|    219|{
 1531|       |    /*
 1532|       |     * If we have a pipeline capable cipher, and we have been configured to use
 1533|       |     * it, then return the preferred number of pipelines.
 1534|       |     */
 1535|    219|    if (rl->max_pipelines > 0
  ------------------
  |  Branch (1535:9): [True: 0, False: 219]
  ------------------
 1536|      0|        && rl->enc_ctx != NULL
  ------------------
  |  Branch (1536:12): [True: 0, False: 0]
  ------------------
 1537|      0|        && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx))
  ------------------
  |  Branch (1537:12): [True: 0, False: 0]
  ------------------
 1538|      0|               & EVP_CIPH_FLAG_PIPELINE)
  ------------------
  |  |  360|      0|#define EVP_CIPH_FLAG_PIPELINE 0X800000
  ------------------
 1539|      0|            != 0
 1540|      0|        && RLAYER_USE_EXPLICIT_IV(rl)) {
  ------------------
  |  |  397|      0|#define RLAYER_USE_EXPLICIT_IV(rl) ((rl)->version == TLS1_1_VERSION \
  |  |  ------------------
  |  |  |  |   25|      0|#define TLS1_1_VERSION 0x0302
  |  |  ------------------
  |  |  |  Branch (397:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  398|      0|    || (rl)->version == TLS1_2_VERSION                              \
  |  |  ------------------
  |  |  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  |  |  ------------------
  |  |  |  Branch (398:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  399|      0|    || (rl)->version == DTLS1_BAD_VER                               \
  |  |  ------------------
  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  ------------------
  |  |  |  Branch (399:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  400|      0|    || (rl)->version == DTLS1_VERSION                               \
  |  |  ------------------
  |  |  |  |   28|      0|#define DTLS1_VERSION 0xFEFF
  |  |  ------------------
  |  |  |  Branch (400:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  401|      0|    || (rl)->version == DTLS1_2_VERSION)
  |  |  ------------------
  |  |  |  |   29|      0|#define DTLS1_2_VERSION 0xFEFD
  |  |  ------------------
  |  |  |  Branch (401:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1541|      0|        size_t pipes;
 1542|       |
 1543|      0|        if (len == 0)
  ------------------
  |  Branch (1543:13): [True: 0, False: 0]
  ------------------
 1544|      0|            return 1;
 1545|      0|        pipes = ((len - 1) / *preffrag) + 1;
 1546|       |
 1547|      0|        return (pipes < rl->max_pipelines) ? pipes : rl->max_pipelines;
  ------------------
  |  Branch (1547:16): [True: 0, False: 0]
  ------------------
 1548|      0|    }
 1549|       |
 1550|    219|    return 1;
 1551|    219|}
tls_get_max_records:
 1555|    219|{
 1556|    219|    return rl->funcs->get_max_records(rl, type, len, maxfrag, preffrag);
 1557|    219|}
tls_allocate_write_buffers_default:
 1563|    219|{
 1564|    219|    if (!tls_setup_write_buffer(rl, numtempl, 0, 0)) {
  ------------------
  |  Branch (1564:9): [True: 0, False: 219]
  ------------------
 1565|       |        /* RLAYERfatal() already called */
 1566|      0|        return 0;
 1567|      0|    }
 1568|       |
 1569|    219|    return 1;
 1570|    219|}
tls_initialise_write_packets_default:
 1579|    219|{
 1580|    219|    WPACKET *thispkt;
 1581|    219|    size_t j, align;
 1582|    219|    TLS_BUFFER *wb;
 1583|       |
 1584|    438|    for (j = 0; j < numtempl; j++) {
  ------------------
  |  Branch (1584:17): [True: 219, False: 219]
  ------------------
 1585|    219|        thispkt = &pkt[j];
 1586|    219|        wb = &bufs[j];
 1587|       |
 1588|    219|        wb->type = templates[j].type;
 1589|       |
 1590|    219|#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
 1591|    219|        align = (size_t)TLS_BUFFER_get_buf(wb);
  ------------------
  |  |  525|    219|#define TLS_BUFFER_get_buf(b) ((b)->buf)
  ------------------
 1592|    219|        align += rl->isdtls ? DTLS1_RT_HEADER_LENGTH : SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |   41|      0|#define DTLS1_RT_HEADER_LENGTH 13
  ------------------
                      align += rl->isdtls ? DTLS1_RT_HEADER_LENGTH : SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|    438|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  |  Branch (1592:18): [True: 0, False: 219]
  ------------------
 1593|    219|        align = SSL3_ALIGN_PAYLOAD - 1
  ------------------
  |  |  152|    219|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
 1594|    219|            - ((align - 1) % SSL3_ALIGN_PAYLOAD);
  ------------------
  |  |  152|    219|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
 1595|    219|#endif
 1596|    219|        TLS_BUFFER_set_offset(wb, align);
  ------------------
  |  |  532|    219|#define TLS_BUFFER_set_offset(b, o) ((b)->offset = (o))
  ------------------
 1597|       |
 1598|    219|        if (!WPACKET_init_static_len(thispkt, TLS_BUFFER_get_buf(wb),
  ------------------
  |  |  525|    219|#define TLS_BUFFER_get_buf(b) ((b)->buf)
  ------------------
  |  Branch (1598:13): [True: 0, False: 219]
  ------------------
 1599|    219|                TLS_BUFFER_get_len(wb), 0)) {
  ------------------
  |  |  527|    219|#define TLS_BUFFER_get_len(b) ((b)->len)
  ------------------
 1600|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1601|      0|            return 0;
 1602|      0|        }
 1603|    219|        (*wpinited)++;
 1604|    219|        if (!WPACKET_allocate_bytes(thispkt, align, NULL)) {
  ------------------
  |  Branch (1604:13): [True: 0, False: 219]
  ------------------
 1605|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1606|      0|            return 0;
 1607|      0|        }
 1608|    219|    }
 1609|       |
 1610|    219|    return 1;
 1611|    219|}
tls_prepare_record_header_default:
 1618|    219|{
 1619|    219|    size_t maxcomplen;
 1620|       |
 1621|    219|    *recdata = NULL;
 1622|       |
 1623|    219|    maxcomplen = templ->buflen;
 1624|    219|    if (rl->compctx != NULL)
  ------------------
  |  Branch (1624:9): [True: 0, False: 219]
  ------------------
 1625|      0|        maxcomplen += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
  ------------------
  |  |  179|      0|#define SSL3_RT_MAX_COMPRESSED_OVERHEAD 1024
  ------------------
 1626|       |
 1627|    219|    if (!WPACKET_put_bytes_u8(thispkt, rectype)
  ------------------
  |  |  889|    438|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (1627:9): [True: 0, False: 219]
  ------------------
 1628|    219|        || !WPACKET_put_bytes_u16(thispkt, templ->version)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1628:12): [True: 0, False: 219]
  ------------------
 1629|    219|        || !WPACKET_start_sub_packet_u16(thispkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1629:12): [True: 0, False: 219]
  ------------------
 1630|    219|        || (rl->eivlen > 0
  ------------------
  |  Branch (1630:13): [True: 0, False: 219]
  ------------------
 1631|      0|            && !WPACKET_allocate_bytes(thispkt, rl->eivlen, NULL))
  ------------------
  |  Branch (1631:16): [True: 0, False: 0]
  ------------------
 1632|    219|        || (maxcomplen > 0
  ------------------
  |  Branch (1632:13): [True: 219, False: 0]
  ------------------
 1633|    219|            && !WPACKET_reserve_bytes(thispkt, maxcomplen,
  ------------------
  |  Branch (1633:16): [True: 0, False: 219]
  ------------------
 1634|    219|                recdata))) {
 1635|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1636|      0|        return 0;
 1637|      0|    }
 1638|       |
 1639|    219|    return 1;
 1640|    219|}
tls_post_encryption_processing_default:
 1696|    219|{
 1697|    219|    size_t origlen, len;
 1698|    219|    size_t headerlen = rl->isdtls ? DTLS1_RT_HEADER_LENGTH
  ------------------
  |  |   41|      0|#define DTLS1_RT_HEADER_LENGTH 13
  ------------------
  |  Branch (1698:24): [True: 0, False: 219]
  ------------------
 1699|    219|                                  : SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|    438|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
 1700|       |
 1701|       |    /* Allocate bytes for the encryption overhead */
 1702|    219|    if (!WPACKET_get_length(thispkt, &origlen)
  ------------------
  |  Branch (1702:9): [True: 0, False: 219]
  ------------------
 1703|       |        /* Check we allowed enough room for the encryption growth */
 1704|    219|        || !ossl_assert(origlen + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD
  ------------------
  |  |   52|    438|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    438|    __FILE__, __LINE__)
  ------------------
  |  Branch (1704:12): [True: 0, False: 219]
  ------------------
 1705|    219|                - mac_size
 1706|    219|            >= thiswr->length)
 1707|       |        /* Encryption should never shrink the data! */
 1708|    219|        || origlen > thiswr->length
  ------------------
  |  Branch (1708:12): [True: 0, False: 219]
  ------------------
 1709|    219|        || (thiswr->length > origlen
  ------------------
  |  Branch (1709:13): [True: 0, False: 219]
  ------------------
 1710|      0|            && !WPACKET_allocate_bytes(thispkt,
  ------------------
  |  Branch (1710:16): [True: 0, False: 0]
  ------------------
 1711|      0|                thiswr->length - origlen,
 1712|      0|                NULL))) {
 1713|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1714|      0|        return 0;
 1715|      0|    }
 1716|    219|    if (rl->use_etm && mac_size != 0) {
  ------------------
  |  Branch (1716:9): [True: 0, False: 219]
  |  Branch (1716:24): [True: 0, False: 0]
  ------------------
 1717|      0|        unsigned char *mac;
 1718|       |
 1719|      0|        if (!WPACKET_allocate_bytes(thispkt, mac_size, &mac)
  ------------------
  |  Branch (1719:13): [True: 0, False: 0]
  ------------------
 1720|      0|            || !rl->funcs->mac(rl, thiswr, mac, 1)) {
  ------------------
  |  Branch (1720:16): [True: 0, False: 0]
  ------------------
 1721|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1722|      0|            return 0;
 1723|      0|        }
 1724|       |
 1725|      0|        TLS_RL_RECORD_add_length(thiswr, mac_size);
  ------------------
  |  |   87|      0|#define TLS_RL_RECORD_add_length(r, l) ((r)->length += (l))
  ------------------
 1726|      0|    }
 1727|       |
 1728|    219|    if (!WPACKET_get_length(thispkt, &len)
  ------------------
  |  Branch (1728:9): [True: 0, False: 219]
  ------------------
 1729|    219|        || !WPACKET_close(thispkt)) {
  ------------------
  |  Branch (1729:12): [True: 0, False: 219]
  ------------------
 1730|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1731|      0|        return 0;
 1732|      0|    }
 1733|       |
 1734|    219|    if (rl->msg_callback != NULL) {
  ------------------
  |  Branch (1734:9): [True: 0, False: 219]
  ------------------
 1735|      0|        unsigned char *recordstart;
 1736|       |
 1737|      0|        recordstart = WPACKET_get_curr(thispkt) - len - headerlen;
 1738|      0|        rl->msg_callback(1, thiswr->rec_version, SSL3_RT_HEADER, recordstart,
  ------------------
  |  |  239|      0|#define SSL3_RT_HEADER 0x100
  ------------------
 1739|      0|            headerlen, rl->cbarg);
 1740|       |
 1741|      0|        if (rl->version == TLS1_3_VERSION && rl->enc_ctx != NULL) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1741:13): [True: 0, False: 0]
  |  Branch (1741:46): [True: 0, False: 0]
  ------------------
 1742|      0|            unsigned char ctype = thistempl->type;
 1743|       |
 1744|      0|            rl->msg_callback(1, thiswr->rec_version, SSL3_RT_INNER_CONTENT_TYPE,
  ------------------
  |  |  240|      0|#define SSL3_RT_INNER_CONTENT_TYPE 0x101
  ------------------
 1745|      0|                &ctype, 1, rl->cbarg);
 1746|      0|        }
 1747|      0|    }
 1748|       |
 1749|    219|    if (!WPACKET_finish(thispkt)) {
  ------------------
  |  Branch (1749:9): [True: 0, False: 219]
  ------------------
 1750|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1751|      0|        return 0;
 1752|      0|    }
 1753|       |
 1754|    219|    TLS_RL_RECORD_add_length(thiswr, headerlen);
  ------------------
  |  |   87|    219|#define TLS_RL_RECORD_add_length(r, l) ((r)->length += (l))
  ------------------
 1755|       |
 1756|    219|    return 1;
 1757|    219|}
tls_write_records_default:
 1762|    219|{
 1763|    219|    WPACKET pkt[SSL_MAX_PIPELINES + 1];
 1764|    219|    TLS_RL_RECORD wr[SSL_MAX_PIPELINES + 1];
 1765|    219|    WPACKET *thispkt;
 1766|    219|    TLS_RL_RECORD *thiswr;
 1767|    219|    int mac_size = 0, ret = 0;
 1768|    219|    size_t wpinited = 0;
 1769|    219|    size_t j, prefix = 0;
 1770|    219|    OSSL_RECORD_TEMPLATE prefixtempl;
 1771|    219|    OSSL_RECORD_TEMPLATE *thistempl;
 1772|       |
 1773|    219|    if (rl->md_ctx != NULL && EVP_MD_CTX_get0_md(rl->md_ctx) != NULL) {
  ------------------
  |  Branch (1773:9): [True: 0, False: 219]
  |  Branch (1773:31): [True: 0, False: 0]
  ------------------
 1774|      0|        mac_size = EVP_MD_CTX_get_size(rl->md_ctx);
  ------------------
  |  |  589|      0|#define EVP_MD_CTX_get_size(e) EVP_MD_CTX_get_size_ex(e)
  ------------------
 1775|      0|        if (mac_size < 0) {
  ------------------
  |  Branch (1775:13): [True: 0, False: 0]
  ------------------
 1776|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1777|      0|            goto err;
 1778|      0|        }
 1779|      0|    }
 1780|       |
 1781|    219|    if (!rl->funcs->allocate_write_buffers(rl, templates, numtempl, &prefix)) {
  ------------------
  |  Branch (1781:9): [True: 0, False: 219]
  ------------------
 1782|       |        /* RLAYERfatal() already called */
 1783|      0|        goto err;
 1784|      0|    }
 1785|       |
 1786|    219|    if (!rl->funcs->initialise_write_packets(rl, templates, numtempl,
  ------------------
  |  Branch (1786:9): [True: 0, False: 219]
  ------------------
 1787|    219|            &prefixtempl, pkt, rl->wbuf,
 1788|    219|            &wpinited)) {
 1789|       |        /* RLAYERfatal() already called */
 1790|      0|        goto err;
 1791|      0|    }
 1792|       |
 1793|       |    /* Clear our TLS_RL_RECORD structures */
 1794|    219|    memset(wr, 0, sizeof(wr));
 1795|    438|    for (j = 0; j < numtempl + prefix; j++) {
  ------------------
  |  Branch (1795:17): [True: 219, False: 219]
  ------------------
 1796|    219|        unsigned char *compressdata = NULL;
 1797|    219|        uint8_t rectype;
 1798|       |
 1799|    219|        thispkt = &pkt[j];
 1800|    219|        thiswr = &wr[j];
 1801|    219|        thistempl = (j < prefix) ? &prefixtempl : &templates[j - prefix];
  ------------------
  |  Branch (1801:21): [True: 0, False: 219]
  ------------------
 1802|       |
 1803|       |        /*
 1804|       |         * Default to the record type as specified in the template unless the
 1805|       |         * protocol implementation says differently.
 1806|       |         */
 1807|    219|        if (rl->funcs->get_record_type != NULL)
  ------------------
  |  Branch (1807:13): [True: 0, False: 219]
  ------------------
 1808|      0|            rectype = rl->funcs->get_record_type(rl, thistempl);
 1809|    219|        else
 1810|    219|            rectype = thistempl->type;
 1811|       |
 1812|    219|        TLS_RL_RECORD_set_type(thiswr, rectype);
  ------------------
  |  |   83|    219|#define TLS_RL_RECORD_set_type(r, t) ((r)->type = (t))
  ------------------
 1813|    219|        TLS_RL_RECORD_set_rec_version(thiswr, thistempl->version);
  ------------------
  |  |   84|    219|#define TLS_RL_RECORD_set_rec_version(r, v) ((r)->rec_version = (v))
  ------------------
 1814|       |
 1815|    219|        if (!rl->funcs->prepare_record_header(rl, thispkt, thistempl, rectype,
  ------------------
  |  Branch (1815:13): [True: 0, False: 219]
  ------------------
 1816|    219|                &compressdata)) {
 1817|       |            /* RLAYERfatal() already called */
 1818|      0|            goto err;
 1819|      0|        }
 1820|       |
 1821|       |        /* lets setup the record stuff. */
 1822|    219|        TLS_RL_RECORD_set_data(thiswr, compressdata);
  ------------------
  |  |   88|    219|#define TLS_RL_RECORD_set_data(r, d) ((r)->data = (d))
  ------------------
 1823|    219|        TLS_RL_RECORD_set_length(thiswr, thistempl->buflen);
  ------------------
  |  |   86|    219|#define TLS_RL_RECORD_set_length(r, l) ((r)->length = (l))
  ------------------
 1824|       |
 1825|    219|        TLS_RL_RECORD_set_input(thiswr, (unsigned char *)thistempl->buf);
  ------------------
  |  |   89|    219|#define TLS_RL_RECORD_set_input(r, i) ((r)->input = (i))
  ------------------
 1826|       |
 1827|       |        /*
 1828|       |         * we now 'read' from thiswr->input, thiswr->length bytes into
 1829|       |         * thiswr->data
 1830|       |         */
 1831|       |
 1832|       |        /* first we compress */
 1833|    219|        if (rl->compctx != NULL) {
  ------------------
  |  Branch (1833:13): [True: 0, False: 219]
  ------------------
 1834|      0|            if (!tls_do_compress(rl, thiswr)
  ------------------
  |  Branch (1834:17): [True: 0, False: 0]
  ------------------
 1835|      0|                || !WPACKET_allocate_bytes(thispkt, thiswr->length, NULL)) {
  ------------------
  |  Branch (1835:20): [True: 0, False: 0]
  ------------------
 1836|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, SSL_R_COMPRESSION_FAILURE);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1837|      0|                goto err;
 1838|      0|            }
 1839|    219|        } else if (compressdata != NULL) {
  ------------------
  |  Branch (1839:20): [True: 219, False: 0]
  ------------------
 1840|    219|            if (!WPACKET_memcpy(thispkt, thiswr->input, thiswr->length)) {
  ------------------
  |  Branch (1840:17): [True: 0, False: 219]
  ------------------
 1841|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1842|      0|                goto err;
 1843|      0|            }
 1844|    219|            TLS_RL_RECORD_reset_input(&wr[j]);
  ------------------
  |  |   90|    219|#define TLS_RL_RECORD_reset_input(r) ((r)->input = (r)->data)
  ------------------
 1845|    219|        }
 1846|       |
 1847|    219|        if (rl->funcs->add_record_padding != NULL
  ------------------
  |  Branch (1847:13): [True: 0, False: 219]
  ------------------
 1848|      0|            && !rl->funcs->add_record_padding(rl, thistempl, thispkt,
  ------------------
  |  Branch (1848:16): [True: 0, False: 0]
  ------------------
 1849|      0|                thiswr)) {
 1850|       |            /* RLAYERfatal() already called */
 1851|      0|            goto err;
 1852|      0|        }
 1853|       |
 1854|    219|        if (!rl->funcs->prepare_for_encryption(rl, mac_size, thispkt, thiswr)) {
  ------------------
  |  Branch (1854:13): [True: 0, False: 219]
  ------------------
 1855|       |            /* RLAYERfatal() already called */
 1856|      0|            goto err;
 1857|      0|        }
 1858|    219|    }
 1859|       |
 1860|    219|    if (prefix) {
  ------------------
  |  Branch (1860:9): [True: 0, False: 219]
  ------------------
 1861|      0|        if (rl->funcs->cipher(rl, wr, 1, 1, NULL, mac_size) < 1) {
  ------------------
  |  Branch (1861:13): [True: 0, False: 0]
  ------------------
 1862|      0|            if (rl->alert == SSL_AD_NO_ALERT) {
  ------------------
  |  |   63|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (1862:17): [True: 0, False: 0]
  ------------------
 1863|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1864|      0|            }
 1865|      0|            goto err;
 1866|      0|        }
 1867|      0|    }
 1868|       |
 1869|    219|    if (rl->funcs->cipher(rl, wr + prefix, numtempl, 1, NULL, mac_size) < 1) {
  ------------------
  |  Branch (1869:9): [True: 0, False: 219]
  ------------------
 1870|      0|        if (rl->alert == SSL_AD_NO_ALERT) {
  ------------------
  |  |   63|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (1870:13): [True: 0, False: 0]
  ------------------
 1871|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1872|      0|        }
 1873|      0|        goto err;
 1874|      0|    }
 1875|       |
 1876|    438|    for (j = 0; j < numtempl + prefix; j++) {
  ------------------
  |  Branch (1876:17): [True: 219, False: 219]
  ------------------
 1877|    219|        thispkt = &pkt[j];
 1878|    219|        thiswr = &wr[j];
 1879|    219|        thistempl = (j < prefix) ? &prefixtempl : &templates[j - prefix];
  ------------------
  |  Branch (1879:21): [True: 0, False: 219]
  ------------------
 1880|       |
 1881|    219|        if (!rl->funcs->post_encryption_processing(rl, mac_size, thistempl,
  ------------------
  |  Branch (1881:13): [True: 0, False: 219]
  ------------------
 1882|    219|                thispkt, thiswr)) {
 1883|       |            /* RLAYERfatal() already called */
 1884|      0|            goto err;
 1885|      0|        }
 1886|       |
 1887|       |        /* now let's set up wb */
 1888|    219|        TLS_BUFFER_set_left(&rl->wbuf[j], TLS_RL_RECORD_get_length(thiswr));
  ------------------
  |  |  529|    219|#define TLS_BUFFER_set_left(b, l) ((b)->left = (l))
  ------------------
 1889|    219|    }
 1890|       |
 1891|    219|    ret = 1;
 1892|    219|err:
 1893|    438|    for (j = 0; j < wpinited; j++)
  ------------------
  |  Branch (1893:17): [True: 219, False: 219]
  ------------------
 1894|    219|        WPACKET_cleanup(&pkt[j]);
 1895|    219|    return ret;
 1896|    219|}
tls_write_records:
 1900|    219|{
 1901|       |    /* Check we don't have pending data waiting to write */
 1902|    219|    if (!ossl_assert(rl->nextwbuf >= rl->numwpipes
  ------------------
  |  |   52|    219|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 219, False: 0]
  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  ------------------
  |  |   53|    219|    __FILE__, __LINE__)
  ------------------
  |  Branch (1902:9): [True: 0, False: 219]
  ------------------
 1903|    219|            || TLS_BUFFER_get_left(&rl->wbuf[rl->nextwbuf]) == 0)) {
 1904|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1905|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1906|      0|    }
 1907|       |
 1908|    219|    if (!rl->funcs->write_records(rl, templates, numtempl)) {
  ------------------
  |  Branch (1908:9): [True: 0, False: 219]
  ------------------
 1909|       |        /* RLAYERfatal already called */
 1910|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1911|      0|    }
 1912|       |
 1913|    219|    rl->nextwbuf = 0;
 1914|       |    /* we now just need to write the buffers */
 1915|    219|    return tls_retry_write_records(rl);
 1916|    219|}
tls_retry_write_records:
 1919|    219|{
 1920|    219|    int i, ret;
 1921|    219|    TLS_BUFFER *thiswb;
 1922|    219|    size_t tmpwrit = 0;
 1923|       |
 1924|    219|    if (rl->nextwbuf >= rl->numwpipes)
  ------------------
  |  Branch (1924:9): [True: 0, False: 219]
  ------------------
 1925|      0|        return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1926|       |
 1927|    219|    for (;;) {
 1928|    219|        thiswb = &rl->wbuf[rl->nextwbuf];
 1929|       |
 1930|    219|        clear_sys_error();
  ------------------
  |  |   31|    219|#define clear_sys_error() errno = 0
  ------------------
 1931|    219|        if (rl->bio != NULL) {
  ------------------
  |  Branch (1931:13): [True: 219, False: 0]
  ------------------
 1932|    219|            if (rl->funcs->prepare_write_bio != NULL) {
  ------------------
  |  Branch (1932:17): [True: 0, False: 219]
  ------------------
 1933|      0|                ret = rl->funcs->prepare_write_bio(rl, thiswb->type);
 1934|      0|                if (ret != OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1934:21): [True: 0, False: 0]
  ------------------
 1935|      0|                    return ret;
 1936|      0|            }
 1937|    219|            i = BIO_write(rl->bio, (char *)&(TLS_BUFFER_get_buf(thiswb)[TLS_BUFFER_get_offset(thiswb)]),
  ------------------
  |  |  525|    219|#define TLS_BUFFER_get_buf(b) ((b)->buf)
  ------------------
                          i = BIO_write(rl->bio, (char *)&(TLS_BUFFER_get_buf(thiswb)[TLS_BUFFER_get_offset(thiswb)]),
  ------------------
  |  |  531|    219|#define TLS_BUFFER_get_offset(b) ((b)->offset)
  ------------------
 1938|    219|                (unsigned int)TLS_BUFFER_get_left(thiswb));
  ------------------
  |  |  528|    219|#define TLS_BUFFER_get_left(b) ((b)->left)
  ------------------
 1939|    219|            if (i >= 0) {
  ------------------
  |  Branch (1939:17): [True: 219, False: 0]
  ------------------
 1940|    219|                tmpwrit = i;
 1941|    219|                if (i == 0 && BIO_should_retry(rl->bio))
  ------------------
  |  |  272|      0|#define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  |  |  |  Branch (272:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1941:21): [True: 0, False: 219]
  ------------------
 1942|      0|                    ret = OSSL_RECORD_RETURN_RETRY;
  ------------------
  |  |   46|      0|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
 1943|    219|                else
 1944|    219|                    ret = OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|    219|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1945|    219|            } else {
 1946|      0|                if (BIO_should_retry(rl->bio)) {
  ------------------
  |  |  272|      0|#define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  |  |  |  Branch (272:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1947|      0|                    ret = OSSL_RECORD_RETURN_RETRY;
  ------------------
  |  |   46|      0|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
 1948|      0|                } else {
 1949|      0|                    ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                                  ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   74|      0|#define ERR_LIB_SYS 2
  ------------------
                                  ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   30|      0|#define get_last_sys_error() errno
  ------------------
 1950|      0|                        "tls_retry_write_records failure");
 1951|      0|                    ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1952|      0|                }
 1953|      0|            }
 1954|    219|        } else {
 1955|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, SSL_R_BIO_NOT_SET);
  ------------------
  |  |  391|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  393|      0|    (ERR_new(),                                                  \
  |  |  |  |  394|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  395|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1956|      0|            ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1957|      0|            i = -1;
 1958|      0|        }
 1959|       |
 1960|       |        /*
 1961|       |         * When an empty fragment is sent on a connection using KTLS,
 1962|       |         * it is sent as a write of zero bytes.  If this zero byte
 1963|       |         * write succeeds, i will be 0 rather than a non-zero value.
 1964|       |         * Treat i == 0 as success rather than an error for zero byte
 1965|       |         * writes to permit this case.
 1966|       |         */
 1967|    219|        if (i >= 0 && tmpwrit == TLS_BUFFER_get_left(thiswb)) {
  ------------------
  |  |  528|    219|#define TLS_BUFFER_get_left(b) ((b)->left)
  ------------------
  |  Branch (1967:13): [True: 219, False: 0]
  |  Branch (1967:23): [True: 219, False: 0]
  ------------------
 1968|    219|            TLS_BUFFER_set_left(thiswb, 0);
  ------------------
  |  |  529|    219|#define TLS_BUFFER_set_left(b, l) ((b)->left = (l))
  ------------------
 1969|    219|            TLS_BUFFER_add_offset(thiswb, tmpwrit);
  ------------------
  |  |  533|    219|#define TLS_BUFFER_add_offset(b, o) ((b)->offset += (o))
  ------------------
 1970|    219|            if (++(rl->nextwbuf) < rl->numwpipes)
  ------------------
  |  Branch (1970:17): [True: 0, False: 219]
  ------------------
 1971|      0|                continue;
 1972|       |
 1973|    219|            if (rl->nextwbuf == rl->numwpipes
  ------------------
  |  Branch (1973:17): [True: 219, False: 0]
  ------------------
 1974|    219|                && (rl->mode & SSL_MODE_RELEASE_BUFFERS) != 0)
  ------------------
  |  |  515|    219|#define SSL_MODE_RELEASE_BUFFERS 0x00000010U
  ------------------
  |  Branch (1974:20): [True: 0, False: 219]
  ------------------
 1975|      0|                tls_release_write_buffer(rl);
 1976|    219|            return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|    219|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1977|    219|        } else if (i <= 0) {
  ------------------
  |  Branch (1977:20): [True: 0, False: 0]
  ------------------
 1978|      0|            if (rl->isdtls) {
  ------------------
  |  Branch (1978:17): [True: 0, False: 0]
  ------------------
 1979|       |                /*
 1980|       |                 * For DTLS, just drop it. That's kind of the whole point in
 1981|       |                 * using a datagram service
 1982|       |                 */
 1983|      0|                TLS_BUFFER_set_left(thiswb, 0);
  ------------------
  |  |  529|      0|#define TLS_BUFFER_set_left(b, l) ((b)->left = (l))
  ------------------
 1984|      0|                if (++(rl->nextwbuf) == rl->numwpipes
  ------------------
  |  Branch (1984:21): [True: 0, False: 0]
  ------------------
 1985|      0|                    && (rl->mode & SSL_MODE_RELEASE_BUFFERS) != 0)
  ------------------
  |  |  515|      0|#define SSL_MODE_RELEASE_BUFFERS 0x00000010U
  ------------------
  |  Branch (1985:24): [True: 0, False: 0]
  ------------------
 1986|      0|                    tls_release_write_buffer(rl);
 1987|      0|            }
 1988|      0|            return ret;
 1989|      0|        }
 1990|      0|        TLS_BUFFER_add_offset(thiswb, tmpwrit);
  ------------------
  |  |  533|      0|#define TLS_BUFFER_add_offset(b, o) ((b)->offset += (o))
  ------------------
 1991|      0|        TLS_BUFFER_sub_left(thiswb, tmpwrit);
  ------------------
  |  |  530|      0|#define TLS_BUFFER_sub_left(b, l) ((b)->left -= (l))
  ------------------
 1992|      0|    }
 1993|    219|}
tls_set1_bio:
 2001|  2.19k|{
 2002|  2.19k|    if (bio != NULL && !BIO_up_ref(bio))
  ------------------
  |  Branch (2002:9): [True: 1.31k, False: 880]
  |  Branch (2002:24): [True: 0, False: 1.31k]
  ------------------
 2003|      0|        return 0;
 2004|  2.19k|    BIO_free(rl->bio);
 2005|  2.19k|    rl->bio = bio;
 2006|       |
 2007|  2.19k|    return 1;
 2008|  2.19k|}
tls_set_first_handshake:
 2030|  1.31k|{
 2031|  1.31k|    rl->is_first_handshake = first;
 2032|  1.31k|}
tls_common.c:tls_allow_compression:
  114|    438|{
  115|    438|    if (rl->options & SSL_OP_NO_COMPRESSION)
  ------------------
  |  |  394|    438|#define SSL_OP_NO_COMPRESSION SSL_OP_BIT(17)
  |  |  ------------------
  |  |  |  |  350|    438|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (115:9): [True: 438, False: 0]
  ------------------
  116|    438|        return 0;
  117|       |
  118|      0|    return rl->security == NULL
  ------------------
  |  Branch (118:12): [True: 0, False: 0]
  ------------------
  119|      0|        || rl->security(rl->cbarg, SSL_SECOP_COMPRESSION, 0, 0, NULL);
  ------------------
  |  | 2778|      0|#define SSL_SECOP_COMPRESSION (15 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (119:12): [True: 0, False: 0]
  ------------------
  120|    438|}
tls_common.c:tls_release_write_buffer_int:
  124|  1.53k|{
  125|  1.53k|    TLS_BUFFER *wb;
  126|  1.53k|    size_t pipes;
  127|       |
  128|  1.53k|    pipes = rl->numwpipes;
  129|       |
  130|  1.75k|    while (pipes > start) {
  ------------------
  |  Branch (130:12): [True: 219, False: 1.53k]
  ------------------
  131|    219|        wb = &rl->wbuf[pipes - 1];
  132|       |
  133|    219|        if (TLS_BUFFER_is_app_buffer(wb))
  ------------------
  |  |  535|    219|#define TLS_BUFFER_is_app_buffer(b) ((b)->app_buffer)
  |  |  ------------------
  |  |  |  Branch (535:37): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  134|      0|            TLS_BUFFER_set_app_buffer(wb, 0);
  ------------------
  |  |  534|      0|#define TLS_BUFFER_set_app_buffer(b, l) ((b)->app_buffer = (l))
  ------------------
  135|    219|        else
  136|    219|            OPENSSL_free(wb->buf);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  137|       |        wb->buf = NULL;
  138|    219|        pipes--;
  139|    219|    }
  140|  1.53k|}
tls_common.c:tls_int_free:
 1456|  1.31k|{
 1457|  1.31k|    BIO_free(rl->prev);
 1458|  1.31k|    BIO_free(rl->bio);
 1459|  1.31k|    BIO_free(rl->next);
 1460|  1.31k|    ossl_tls_buffer_release(&rl->rbuf);
 1461|       |
 1462|  1.31k|    tls_release_write_buffer(rl);
 1463|       |
 1464|  1.31k|    EVP_CIPHER_CTX_free(rl->enc_ctx);
 1465|  1.31k|    EVP_MAC_CTX_free(rl->mac_ctx);
 1466|  1.31k|    EVP_MD_CTX_free(rl->md_ctx);
 1467|  1.31k|#ifndef OPENSSL_NO_COMP
 1468|  1.31k|    COMP_CTX_free(rl->compctx);
 1469|  1.31k|#endif
 1470|  1.31k|    OPENSSL_free(rl->iv);
  ------------------
  |  |  131|  1.31k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1471|  1.31k|    OPENSSL_free(rl->nonce);
  ------------------
  |  |  131|  1.31k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1472|  1.31k|    if (rl->version == SSL3_VERSION)
  ------------------
  |  |   23|  1.31k|#define SSL3_VERSION 0x0300
  ------------------
  |  Branch (1472:9): [True: 0, False: 1.31k]
  ------------------
 1473|      0|        OPENSSL_cleanse(rl->mac_secret, sizeof(rl->mac_secret));
 1474|       |
 1475|  1.31k|    TLS_RL_RECORD_release(rl->rrec, SSL_MAX_PIPELINES);
  ------------------
  |  |   71|  1.31k|#define SSL_MAX_PIPELINES 32
  ------------------
 1476|       |
 1477|  1.31k|    OPENSSL_free(rl);
  ------------------
  |  |  131|  1.31k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1478|  1.31k|}
tls_common.c:TLS_RL_RECORD_release:
   33|  1.31k|{
   34|  1.31k|    size_t i;
   35|       |
   36|  43.4k|    for (i = 0; i < num_recs; i++) {
  ------------------
  |  Branch (36:17): [True: 42.1k, False: 1.31k]
  ------------------
   37|  42.1k|        OPENSSL_free(r[i].comp);
  ------------------
  |  |  131|  42.1k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   38|       |        r[i].comp = NULL;
   39|  42.1k|    }
   40|  1.31k|}
tls_common.c:tls_release_write_buffer:
  223|  1.31k|{
  224|  1.31k|    tls_release_write_buffer_int(rl, 0);
  225|       |
  226|  1.31k|    rl->numwpipes = 0;
  227|  1.31k|}
tls_common.c:tls_new_record_layer:
 1410|  1.31k|{
 1411|  1.31k|    int ret;
 1412|       |
 1413|  1.31k|    ret = tls_int_new_record_layer(libctx, propq, vers, role, direction, level,
 1414|  1.31k|        ciph, taglen, md, comp, prev,
 1415|  1.31k|        transport, next, settings,
 1416|  1.31k|        options, fns, cbarg, retrl);
 1417|       |
 1418|  1.31k|    if (ret != OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|  1.31k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1418:9): [True: 0, False: 1.31k]
  ------------------
 1419|      0|        return ret;
 1420|       |
 1421|  1.31k|    switch (vers) {
 1422|  1.31k|    case TLS_ANY_VERSION:
  ------------------
  |  |   40|  1.31k|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (1422:5): [True: 1.31k, False: 0]
  ------------------
 1423|  1.31k|        (*retrl)->funcs = &tls_any_funcs;
 1424|  1.31k|        break;
 1425|      0|    case TLS1_3_VERSION:
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1425:5): [True: 0, False: 1.31k]
  ------------------
 1426|      0|        (*retrl)->funcs = &tls_1_3_funcs;
 1427|      0|        break;
 1428|      0|    case TLS1_2_VERSION:
  ------------------
  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (1428:5): [True: 0, False: 1.31k]
  ------------------
 1429|      0|    case TLS1_1_VERSION:
  ------------------
  |  |   25|      0|#define TLS1_1_VERSION 0x0302
  ------------------
  |  Branch (1429:5): [True: 0, False: 1.31k]
  ------------------
 1430|      0|    case TLS1_VERSION:
  ------------------
  |  |   24|      0|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (1430:5): [True: 0, False: 1.31k]
  ------------------
 1431|      0|        (*retrl)->funcs = &tls_1_funcs;
 1432|      0|        break;
 1433|      0|    case SSL3_VERSION:
  ------------------
  |  |   23|      0|#define SSL3_VERSION 0x0300
  ------------------
  |  Branch (1433:5): [True: 0, False: 1.31k]
  ------------------
 1434|      0|        (*retrl)->funcs = &ssl_3_0_funcs;
 1435|      0|        break;
 1436|      0|    default:
  ------------------
  |  Branch (1436:5): [True: 0, False: 1.31k]
  ------------------
 1437|       |        /* Should not happen */
 1438|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1439|      0|        ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1440|      0|        goto err;
 1441|  1.31k|    }
 1442|       |
 1443|  1.31k|    ret = (*retrl)->funcs->set_crypto_state(*retrl, level, key, keylen, iv,
 1444|  1.31k|        ivlen, mackey, mackeylen, ciph,
 1445|  1.31k|        taglen, mactype, md, comp);
 1446|       |
 1447|  1.31k|err:
 1448|  1.31k|    if (ret != OSSL_RECORD_RETURN_SUCCESS) {
  ------------------
  |  |   45|  1.31k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1448:9): [True: 0, False: 1.31k]
  ------------------
 1449|      0|        tls_int_free(*retrl);
 1450|       |        *retrl = NULL;
 1451|      0|    }
 1452|  1.31k|    return ret;
 1453|  1.31k|}

tlsany_meth.c:tls_any_set_crypto_state:
   26|  1.31k|{
   27|  1.31k|    if (level != OSSL_RECORD_PROTECTION_LEVEL_NONE) {
  ------------------
  |  | 2932|  1.31k|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  |  Branch (27:9): [True: 0, False: 1.31k]
  ------------------
   28|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   29|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
   30|      0|    }
   31|       |
   32|       |    /* No crypto protection at the "NONE" level so nothing to be done */
   33|       |
   34|  1.31k|    return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|  1.31k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
   35|  1.31k|}
tlsany_meth.c:tls_any_cipher:
   40|    219|{
   41|    219|    return 1;
   42|    219|}
tlsany_meth.c:tls_any_prepare_for_encryption:
  140|    219|{
  141|       |    /* No encryption, so nothing to do */
  142|    219|    return 1;
  143|    219|}

RECORD_LAYER_init:
   28|    220|{
   29|    220|    rl->s = s;
   30|    220|}
RECORD_LAYER_clear:
   33|    879|{
   34|    879|    int ret = 1;
   35|       |
   36|       |    /* Clear any buffered records we no longer need */
   37|    879|    while (rl->curr_rec < rl->num_recs)
  ------------------
  |  Branch (37:12): [True: 0, False: 879]
  ------------------
   38|      0|        ret &= ssl_release_record(rl->s,
   39|      0|            &(rl->tlsrecs[rl->curr_rec++]),
   40|      0|            0);
   41|       |
   42|    879|    rl->wnum = 0;
   43|    879|    memset(rl->handshake_fragment, 0, sizeof(rl->handshake_fragment));
   44|    879|    rl->handshake_fragment_len = 0;
   45|    879|    rl->wpend_tot = 0;
   46|    879|    rl->wpend_type = 0;
   47|    879|    rl->wpend_buf = NULL;
   48|    879|    rl->alert_count = 0;
   49|    879|    rl->num_recs = 0;
   50|    879|    rl->curr_rec = 0;
   51|       |
   52|    879|    BIO_free(rl->rrlnext);
   53|    879|    rl->rrlnext = NULL;
   54|       |
   55|    879|    if (rl->rrlmethod != NULL)
  ------------------
  |  Branch (55:9): [True: 659, False: 220]
  ------------------
   56|    659|        rl->rrlmethod->free(rl->rrl); /* Ignore return value */
   57|    879|    if (rl->wrlmethod != NULL)
  ------------------
  |  Branch (57:9): [True: 659, False: 220]
  ------------------
   58|    659|        rl->wrlmethod->free(rl->wrl); /* Ignore return value */
   59|    879|    BIO_free(rl->rrlnext);
   60|    879|    rl->rrlmethod = NULL;
   61|    879|    rl->wrlmethod = NULL;
   62|    879|    rl->rrlnext = NULL;
   63|    879|    rl->rrl = NULL;
   64|    879|    rl->wrl = NULL;
   65|       |
   66|    879|    if (rl->d)
  ------------------
  |  Branch (66:9): [True: 0, False: 879]
  ------------------
   67|      0|        DTLS_RECORD_LAYER_clear(rl);
   68|       |
   69|    879|    return ret;
   70|    879|}
RECORD_LAYER_reset:
   73|    659|{
   74|    659|    int ret;
   75|       |
   76|    659|    ret = RECORD_LAYER_clear(rl);
   77|       |
   78|       |    /* We try and reset both record layers even if one fails */
   79|    659|    ret &= ssl_set_new_record_layer(rl->s,
   80|    659|        SSL_CONNECTION_IS_DTLS(rl->s)
  ------------------
  |  |  258|    659|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    659|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    659|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 659]
  |  |  ------------------
  ------------------
   81|    659|            ? DTLS_ANY_VERSION
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
   82|    659|            : TLS_ANY_VERSION,
  ------------------
  |  |   40|    659|#define TLS_ANY_VERSION 0x10000
  ------------------
   83|    659|        OSSL_RECORD_DIRECTION_READ,
  ------------------
  |  |   42|    659|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
   84|    659|        OSSL_RECORD_PROTECTION_LEVEL_NONE, NULL, 0,
  ------------------
  |  | 2932|    659|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
   85|    659|        NULL, 0, NULL, 0, NULL, 0, NULL, 0,
   86|    659|        NID_undef, NULL, NULL, NULL);
  ------------------
  |  |   18|    659|#define NID_undef                       0
  ------------------
   87|       |
   88|    659|    ret &= ssl_set_new_record_layer(rl->s,
   89|    659|        SSL_CONNECTION_IS_DTLS(rl->s)
  ------------------
  |  |  258|    659|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    659|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    659|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 659]
  |  |  ------------------
  ------------------
   90|    659|            ? DTLS_ANY_VERSION
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
   91|    659|            : TLS_ANY_VERSION,
  ------------------
  |  |   40|    659|#define TLS_ANY_VERSION 0x10000
  ------------------
   92|    659|        OSSL_RECORD_DIRECTION_WRITE,
  ------------------
  |  |   43|    659|#define OSSL_RECORD_DIRECTION_WRITE 1
  ------------------
   93|    659|        OSSL_RECORD_PROTECTION_LEVEL_NONE, NULL, 0,
  ------------------
  |  | 2932|    659|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
   94|    659|        NULL, 0, NULL, 0, NULL, 0, NULL, 0,
   95|    659|        NID_undef, NULL, NULL, NULL);
  ------------------
  |  |   18|    659|#define NID_undef                       0
  ------------------
   96|       |
   97|       |    /* SSLfatal already called in the event of failure */
   98|    659|    return ret;
   99|    659|}
SSL_CTX_set_default_read_buffer_len:
  207|    220|{
  208|    220|    ctx->default_read_buf_len = len;
  209|    220|}
ssl3_write_bytes:
  275|    219|{
  276|    219|    const unsigned char *buf = buf_;
  277|    219|    size_t tot;
  278|    219|    size_t n, max_send_fragment, split_send_fragment, maxpipes;
  279|    219|    int i;
  280|    219|    SSL_CONNECTION *s = SSL_CONNECTION_FROM_SSL_ONLY(ssl);
  ------------------
  |  |   23|    219|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|    219|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |   18|    219|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    219|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 219, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|    219|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|    219|                             : NULL))
  |  |  ------------------
  ------------------
  281|    219|    OSSL_RECORD_TEMPLATE tmpls[SSL_MAX_PIPELINES];
  282|    219|    unsigned int recversion;
  283|       |
  284|    219|    if (s == NULL)
  ------------------
  |  Branch (284:9): [True: 0, False: 219]
  ------------------
  285|      0|        return -1;
  286|       |
  287|    219|    s->rwstate = SSL_NOTHING;
  ------------------
  |  |  932|    219|#define SSL_NOTHING 1
  ------------------
  288|    219|    tot = s->rlayer.wnum;
  289|       |    /*
  290|       |     * ensure that if we end up with a smaller value of data to write out
  291|       |     * than the original len from a write which didn't complete for
  292|       |     * non-blocking I/O and also somehow ended up avoiding the check for
  293|       |     * this in tls_write_check_pending/SSL_R_BAD_WRITE_RETRY as it must never be
  294|       |     * possible to end up with (len-tot) as a large number that will then
  295|       |     * promptly send beyond the end of the users buffer ... so we trap and
  296|       |     * report the error in a way the user will notice
  297|       |     */
  298|    219|    if ((len < s->rlayer.wnum)
  ------------------
  |  Branch (298:9): [True: 0, False: 219]
  ------------------
  299|    219|        || ((s->rlayer.wpend_tot != 0)
  ------------------
  |  Branch (299:13): [True: 0, False: 219]
  ------------------
  300|      0|            && (len < (s->rlayer.wnum + s->rlayer.wpend_tot)))) {
  ------------------
  |  Branch (300:16): [True: 0, False: 0]
  ------------------
  301|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_LENGTH);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  302|      0|        return -1;
  303|      0|    }
  304|       |
  305|    219|    if (s->early_data_state == SSL_EARLY_DATA_WRITING
  ------------------
  |  Branch (305:9): [True: 0, False: 219]
  ------------------
  306|      0|        && !ossl_early_data_count_ok(s, len, 0, 1)) {
  ------------------
  |  Branch (306:12): [True: 0, False: 0]
  ------------------
  307|       |        /* SSLfatal() already called */
  308|      0|        return -1;
  309|      0|    }
  310|       |
  311|    219|    s->rlayer.wnum = 0;
  312|       |
  313|       |    /*
  314|       |     * If we are supposed to be sending a KeyUpdate or NewSessionTicket then go
  315|       |     * into init unless we have writes pending - in which case we should finish
  316|       |     * doing that first.
  317|       |     */
  318|    219|    if (s->rlayer.wpend_tot == 0 && (s->key_update != SSL_KEY_UPDATE_NONE || s->ext.extra_tickets_expected > 0))
  ------------------
  |  | 1048|    438|#define SSL_KEY_UPDATE_NONE -1
  ------------------
  |  Branch (318:9): [True: 219, False: 0]
  |  Branch (318:38): [True: 0, False: 219]
  |  Branch (318:78): [True: 0, False: 219]
  ------------------
  319|      0|        ossl_statem_set_in_init(s, 1);
  320|       |
  321|       |    /*
  322|       |     * When writing early data on the server side we could be "in_init" in
  323|       |     * between receiving the EoED and the CF - but we don't want to handle those
  324|       |     * messages yet.
  325|       |     */
  326|    219|    if (SSL_in_init(ssl) && !ossl_statem_get_in_handshake(s)
  ------------------
  |  Branch (326:9): [True: 219, False: 0]
  |  Branch (326:29): [True: 0, False: 219]
  ------------------
  327|      0|        && s->early_data_state != SSL_EARLY_DATA_UNAUTH_WRITING) {
  ------------------
  |  Branch (327:12): [True: 0, False: 0]
  ------------------
  328|      0|        i = s->handshake_func(ssl);
  329|       |        /* SSLfatal() already called */
  330|      0|        if (i < 0)
  ------------------
  |  Branch (330:13): [True: 0, False: 0]
  ------------------
  331|      0|            return i;
  332|      0|        if (i == 0) {
  ------------------
  |  Branch (332:13): [True: 0, False: 0]
  ------------------
  333|      0|            return -1;
  334|      0|        }
  335|      0|    }
  336|       |
  337|    219|    i = tls_write_check_pending(s, type, buf, len);
  338|    219|    if (i < 0) {
  ------------------
  |  Branch (338:9): [True: 0, False: 219]
  ------------------
  339|       |        /* SSLfatal() already called */
  340|      0|        return i;
  341|    219|    } else if (i > 0) {
  ------------------
  |  Branch (341:16): [True: 0, False: 219]
  ------------------
  342|       |        /* Retry needed */
  343|      0|        i = HANDLE_RLAYER_WRITE_RETURN(s,
  ------------------
  |  |  169|      0|    ossl_tls_handle_rlayer_return(s, 1, ret, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   ossl_tls_handle_rlayer_return(s, 1, ret, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  344|      0|            s->rlayer.wrlmethod->retry_write_records(s->rlayer.wrl));
  345|      0|        if (i <= 0) {
  ------------------
  |  Branch (345:13): [True: 0, False: 0]
  ------------------
  346|      0|            s->rlayer.wnum = tot;
  347|      0|            return i;
  348|      0|        }
  349|      0|        tot += s->rlayer.wpend_tot;
  350|      0|        s->rlayer.wpend_tot = 0;
  351|      0|    } /* else no retry required */
  352|       |
  353|    219|    if (tot == 0) {
  ------------------
  |  Branch (353:9): [True: 219, False: 0]
  ------------------
  354|       |        /*
  355|       |         * We've not previously sent any data for this write so memorize
  356|       |         * arguments so that we can detect bad write retries later
  357|       |         */
  358|    219|        s->rlayer.wpend_tot = 0;
  359|    219|        s->rlayer.wpend_type = type;
  360|    219|        s->rlayer.wpend_buf = buf;
  361|    219|    }
  362|       |
  363|    219|    if (tot == len) { /* done? */
  ------------------
  |  Branch (363:9): [True: 0, False: 219]
  ------------------
  364|      0|        *written = tot;
  365|      0|        return 1;
  366|      0|    }
  367|       |
  368|       |    /* If we have an alert to send, lets send it */
  369|    219|    if (s->s3.alert_dispatch > 0) {
  ------------------
  |  Branch (369:9): [True: 0, False: 219]
  ------------------
  370|      0|        i = ssl->method->ssl_dispatch_alert(ssl);
  371|      0|        if (i <= 0) {
  ------------------
  |  Branch (371:13): [True: 0, False: 0]
  ------------------
  372|       |            /* SSLfatal() already called if appropriate */
  373|      0|            s->rlayer.wnum = tot;
  374|      0|            return i;
  375|      0|        }
  376|       |        /* if it went, fall through and send more stuff */
  377|      0|    }
  378|       |
  379|    219|    n = (len - tot);
  380|       |
  381|    219|    max_send_fragment = ssl_get_max_send_fragment(s);
  382|    219|    split_send_fragment = ssl_get_split_send_fragment(s);
  383|       |
  384|    219|    if (max_send_fragment == 0
  ------------------
  |  Branch (384:9): [True: 0, False: 219]
  ------------------
  385|    219|        || split_send_fragment == 0
  ------------------
  |  Branch (385:12): [True: 0, False: 219]
  ------------------
  386|    219|        || split_send_fragment > max_send_fragment) {
  ------------------
  |  Branch (386:12): [True: 0, False: 219]
  ------------------
  387|       |        /*
  388|       |         * We should have prevented this when we set/get the split and max send
  389|       |         * fragments so we shouldn't get here
  390|       |         */
  391|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  392|      0|        return -1;
  393|      0|    }
  394|       |
  395|       |    /*
  396|       |     * Some servers hang if initial client hello is larger than 256 bytes
  397|       |     * and record version number > TLS 1.0
  398|       |     */
  399|    219|    recversion = (s->version == TLS1_3_VERSION) ? TLS1_2_VERSION : s->version;
  ------------------
  |  |   27|    219|#define TLS1_3_VERSION 0x0304
  ------------------
                  recversion = (s->version == TLS1_3_VERSION) ? TLS1_2_VERSION : s->version;
  ------------------
  |  |   26|    219|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (399:18): [True: 219, False: 0]
  ------------------
  400|    219|    if (SSL_get_state(ssl) == TLS_ST_CW_CLNT_HELLO
  ------------------
  |  Branch (400:9): [True: 219, False: 0]
  ------------------
  401|    219|        && !s->renegotiate
  ------------------
  |  Branch (401:12): [True: 219, False: 0]
  ------------------
  402|    219|        && TLS1_get_version(ssl) > TLS1_VERSION
  ------------------
  |  |   52|    219|    ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0)
  |  |  ------------------
  |  |  |  |   42|    219|#define TLS1_VERSION_MAJOR 0x03
  |  |  ------------------
  |  |  |  Branch (52:6): [True: 219, False: 0]
  |  |  ------------------
  ------------------
                      && TLS1_get_version(ssl) > TLS1_VERSION
  ------------------
  |  |   24|    438|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (402:12): [True: 219, False: 0]
  ------------------
  403|    219|        && s->hello_retry_request == SSL_HRR_NONE)
  ------------------
  |  Branch (403:12): [True: 219, False: 0]
  ------------------
  404|    219|        recversion = TLS1_VERSION;
  ------------------
  |  |   24|    219|#define TLS1_VERSION 0x0301
  ------------------
  405|       |
  406|    219|    for (;;) {
  407|    219|        size_t tmppipelen, remain;
  408|    219|        size_t j, lensofar = 0;
  409|       |
  410|       |        /*
  411|       |         * Ask the record layer how it would like to split the amount of data
  412|       |         * that we have, and how many of those records it would like in one go.
  413|       |         */
  414|    219|        maxpipes = s->rlayer.wrlmethod->get_max_records(s->rlayer.wrl, type, n,
  415|    219|            max_send_fragment,
  416|    219|            &split_send_fragment);
  417|       |        /*
  418|       |         * If max_pipelines is 0 then this means "undefined" and we default to
  419|       |         * whatever the record layer wants to do. Otherwise we use the smallest
  420|       |         * value from the number requested by the record layer, and max number
  421|       |         * configured by the user.
  422|       |         */
  423|    219|        if (s->max_pipelines > 0 && maxpipes > s->max_pipelines)
  ------------------
  |  Branch (423:13): [True: 0, False: 219]
  |  Branch (423:37): [True: 0, False: 0]
  ------------------
  424|      0|            maxpipes = s->max_pipelines;
  425|       |
  426|    219|        if (maxpipes > SSL_MAX_PIPELINES)
  ------------------
  |  |   71|    219|#define SSL_MAX_PIPELINES 32
  ------------------
  |  Branch (426:13): [True: 0, False: 219]
  ------------------
  427|      0|            maxpipes = SSL_MAX_PIPELINES;
  ------------------
  |  |   71|      0|#define SSL_MAX_PIPELINES 32
  ------------------
  428|       |
  429|    219|        if (split_send_fragment > max_send_fragment) {
  ------------------
  |  Branch (429:13): [True: 0, False: 219]
  ------------------
  430|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  431|      0|            return -1;
  432|      0|        }
  433|       |
  434|    219|        if (n / maxpipes >= split_send_fragment) {
  ------------------
  |  Branch (434:13): [True: 0, False: 219]
  ------------------
  435|       |            /*
  436|       |             * We have enough data to completely fill all available
  437|       |             * pipelines
  438|       |             */
  439|      0|            for (j = 0; j < maxpipes; j++) {
  ------------------
  |  Branch (439:25): [True: 0, False: 0]
  ------------------
  440|      0|                tmpls[j].type = type;
  441|      0|                tmpls[j].version = recversion;
  442|      0|                tmpls[j].buf = &(buf[tot]) + (j * split_send_fragment);
  443|      0|                tmpls[j].buflen = split_send_fragment;
  444|      0|            }
  445|       |            /* Remember how much data we are going to be sending */
  446|      0|            s->rlayer.wpend_tot = maxpipes * split_send_fragment;
  447|    219|        } else {
  448|       |            /* We can partially fill all available pipelines */
  449|    219|            tmppipelen = n / maxpipes;
  450|    219|            remain = n % maxpipes;
  451|       |            /*
  452|       |             * If there is a remainder we add an extra byte to the first few
  453|       |             * pipelines
  454|       |             */
  455|    219|            if (remain > 0)
  ------------------
  |  Branch (455:17): [True: 0, False: 219]
  ------------------
  456|      0|                tmppipelen++;
  457|    438|            for (j = 0; j < maxpipes; j++) {
  ------------------
  |  Branch (457:25): [True: 219, False: 219]
  ------------------
  458|    219|                tmpls[j].type = type;
  459|    219|                tmpls[j].version = recversion;
  460|    219|                tmpls[j].buf = &(buf[tot]) + lensofar;
  461|    219|                tmpls[j].buflen = tmppipelen;
  462|    219|                lensofar += tmppipelen;
  463|    219|                if (j + 1 == remain)
  ------------------
  |  Branch (463:21): [True: 0, False: 219]
  ------------------
  464|      0|                    tmppipelen--;
  465|    219|            }
  466|       |            /* Remember how much data we are going to be sending */
  467|    219|            s->rlayer.wpend_tot = n;
  468|    219|        }
  469|       |
  470|    219|        i = HANDLE_RLAYER_WRITE_RETURN(s,
  ------------------
  |  |  169|    219|    ossl_tls_handle_rlayer_return(s, 1, ret, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   ossl_tls_handle_rlayer_return(s, 1, ret, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  471|    219|            s->rlayer.wrlmethod->write_records(s->rlayer.wrl, tmpls, maxpipes));
  472|    219|        if (i <= 0) {
  ------------------
  |  Branch (472:13): [True: 0, False: 219]
  ------------------
  473|       |            /* SSLfatal() already called if appropriate */
  474|      0|            s->rlayer.wnum = tot;
  475|      0|            return i;
  476|      0|        }
  477|       |
  478|    219|        if (s->rlayer.wpend_tot == n
  ------------------
  |  Branch (478:13): [True: 219, False: 0]
  ------------------
  479|      0|            || (type == SSL3_RT_APPLICATION_DATA
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (479:17): [True: 0, False: 0]
  ------------------
  480|    219|                && (s->mode & SSL_MODE_ENABLE_PARTIAL_WRITE) != 0)) {
  ------------------
  |  |  497|      0|#define SSL_MODE_ENABLE_PARTIAL_WRITE 0x00000001U
  ------------------
  |  Branch (480:20): [True: 0, False: 0]
  ------------------
  481|    219|            *written = tot + s->rlayer.wpend_tot;
  482|    219|            s->rlayer.wpend_tot = 0;
  483|    219|            return 1;
  484|    219|        }
  485|       |
  486|      0|        n -= s->rlayer.wpend_tot;
  487|      0|        tot += s->rlayer.wpend_tot;
  488|      0|    }
  489|    219|}
ossl_tls_handle_rlayer_return:
  493|  4.35k|{
  494|  4.35k|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|  4.35k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  495|       |
  496|  4.35k|    if (ret == OSSL_RECORD_RETURN_RETRY) {
  ------------------
  |  |   46|  4.35k|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
  |  Branch (496:9): [True: 4.13k, False: 219]
  ------------------
  497|  4.13k|        s->rwstate = writing ? SSL_WRITING : SSL_READING;
  ------------------
  |  |  933|      0|#define SSL_WRITING 2
  ------------------
                      s->rwstate = writing ? SSL_WRITING : SSL_READING;
  ------------------
  |  |  934|  8.27k|#define SSL_READING 3
  ------------------
  |  Branch (497:22): [True: 0, False: 4.13k]
  ------------------
  498|  4.13k|        ret = -1;
  499|  4.13k|    } else {
  500|    219|        s->rwstate = SSL_NOTHING;
  ------------------
  |  |  932|    219|#define SSL_NOTHING 1
  ------------------
  501|    219|        if (ret == OSSL_RECORD_RETURN_EOF) {
  ------------------
  |  |   49|    219|#define OSSL_RECORD_RETURN_EOF -3
  ------------------
  |  Branch (501:13): [True: 0, False: 219]
  ------------------
  502|      0|            if (writing) {
  ------------------
  |  Branch (502:17): [True: 0, False: 0]
  ------------------
  503|       |                /*
  504|       |                 * This shouldn't happen with a writing operation. We treat it
  505|       |                 * as fatal.
  506|       |                 */
  507|      0|                ERR_new();
  508|      0|                ERR_set_debug(file, line, 0);
  509|      0|                ossl_statem_fatal(s, SSL_AD_INTERNAL_ERROR,
  ------------------
  |  | 1243|      0|#define SSL_AD_INTERNAL_ERROR TLS1_AD_INTERNAL_ERROR
  |  |  ------------------
  |  |  |  |   66|      0|#define TLS1_AD_INTERNAL_ERROR 80 /* fatal */
  |  |  ------------------
  ------------------
  510|      0|                    ERR_R_INTERNAL_ERROR, NULL);
  ------------------
  |  |  355|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  351|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      0|                ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  512|      0|            } else if ((s->options & SSL_OP_IGNORE_UNEXPECTED_EOF) != 0) {
  ------------------
  |  |  365|      0|#define SSL_OP_IGNORE_UNEXPECTED_EOF SSL_OP_BIT(7)
  |  |  ------------------
  |  |  |  |  350|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (512:24): [True: 0, False: 0]
  ------------------
  513|      0|                SSL_set_shutdown(ssl, SSL_RECEIVED_SHUTDOWN);
  ------------------
  |  |  216|      0|#define SSL_RECEIVED_SHUTDOWN 2
  ------------------
  514|      0|                s->s3.warn_alert = SSL_AD_CLOSE_NOTIFY;
  ------------------
  |  | 1209|      0|#define SSL_AD_CLOSE_NOTIFY SSL3_AD_CLOSE_NOTIFY
  |  |  ------------------
  |  |  |  |  252|      0|#define SSL3_AD_CLOSE_NOTIFY 0
  |  |  ------------------
  ------------------
  515|      0|            } else {
  516|      0|                ERR_new();
  517|      0|                ERR_set_debug(file, line, 0);
  518|       |                /*
  519|       |                 * This reason code is part of the API and may be used by
  520|       |                 * applications for control flow decisions.
  521|       |                 */
  522|      0|                ossl_statem_fatal(s, SSL_AD_DECODE_ERROR,
  ------------------
  |  | 1234|      0|#define SSL_AD_DECODE_ERROR TLS1_AD_DECODE_ERROR
  |  |  ------------------
  |  |  |  |   61|      0|#define TLS1_AD_DECODE_ERROR 50 /* fatal */
  |  |  ------------------
  ------------------
  523|      0|                    SSL_R_UNEXPECTED_EOF_WHILE_READING, NULL);
  ------------------
  |  |  337|      0|#define SSL_R_UNEXPECTED_EOF_WHILE_READING 294
  ------------------
  524|      0|            }
  525|    219|        } else if (ret == OSSL_RECORD_RETURN_FATAL) {
  ------------------
  |  |   48|    219|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  |  Branch (525:20): [True: 0, False: 219]
  ------------------
  526|      0|            int al = s->rlayer.rrlmethod->get_alert_code(s->rlayer.rrl);
  527|       |
  528|      0|            if (al != SSL_AD_NO_ALERT) {
  ------------------
  |  |   63|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (528:17): [True: 0, False: 0]
  ------------------
  529|      0|                ERR_new();
  530|      0|                ERR_set_debug(file, line, 0);
  531|      0|                ossl_statem_fatal(s, al, SSL_R_RECORD_LAYER_FAILURE, NULL);
  ------------------
  |  |  246|      0|#define SSL_R_RECORD_LAYER_FAILURE 313
  ------------------
  532|      0|            }
  533|       |            /*
  534|       |             * else some failure but there is no alert code. We don't log an
  535|       |             * error for this. The record layer should have logged an error
  536|       |             * already or, if not, its due to some sys call error which will be
  537|       |             * reported via SSL_ERROR_SYSCALL and errno.
  538|       |             */
  539|      0|        }
  540|       |        /*
  541|       |         * The record layer distinguishes the cases of EOF, non-fatal
  542|       |         * err and retry. Upper layers do not.
  543|       |         * If we got a retry or success then *ret is already correct,
  544|       |         * otherwise we need to convert the return value.
  545|       |         */
  546|    219|        if (ret == OSSL_RECORD_RETURN_NON_FATAL_ERR || ret == OSSL_RECORD_RETURN_EOF)
  ------------------
  |  |   47|    438|#define OSSL_RECORD_RETURN_NON_FATAL_ERR -1
  ------------------
                      if (ret == OSSL_RECORD_RETURN_NON_FATAL_ERR || ret == OSSL_RECORD_RETURN_EOF)
  ------------------
  |  |   49|    219|#define OSSL_RECORD_RETURN_EOF -3
  ------------------
  |  Branch (546:13): [True: 0, False: 219]
  |  Branch (546:56): [True: 0, False: 219]
  ------------------
  547|      0|            ret = 0;
  548|    219|        else if (ret < OSSL_RECORD_RETURN_NON_FATAL_ERR)
  ------------------
  |  |   47|    219|#define OSSL_RECORD_RETURN_NON_FATAL_ERR -1
  ------------------
  |  Branch (548:18): [True: 0, False: 219]
  ------------------
  549|      0|            ret = -1;
  550|    219|    }
  551|       |
  552|  4.35k|    return ret;
  553|  4.35k|}
ssl3_read_bytes:
  625|  4.13k|{
  626|  4.13k|    int i, j, ret;
  627|  4.13k|    size_t n, curr_rec, totalbytes;
  628|  4.13k|    TLS_RECORD *rr;
  629|  4.13k|    void (*cb)(const SSL *ssl, int type2, int val) = NULL;
  630|  4.13k|    int is_tls13;
  631|  4.13k|    SSL_CONNECTION *s = SSL_CONNECTION_FROM_SSL_ONLY(ssl);
  ------------------
  |  |   23|  4.13k|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|  4.13k|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  |  |   18|  4.13k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.13k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 4.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|  4.13k|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|  4.13k|                             : NULL))
  |  |  ------------------
  ------------------
  632|       |
  633|  4.13k|    is_tls13 = SSL_CONNECTION_IS_TLS13(s);
  ------------------
  |  |  265|  4.13k|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|  8.27k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  4.13k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|  4.13k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 4.13k, False: 0]
  |  |  ------------------
  |  |  266|  4.13k|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  4.13k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  8.27k|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 4.13k, False: 0]
  |  |  ------------------
  |  |  267|  4.13k|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|  4.13k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|  4.13k|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 4.13k]
  |  |  ------------------
  ------------------
  634|       |
  635|  4.13k|    if ((type != 0
  ------------------
  |  Branch (635:10): [True: 4.13k, False: 0]
  ------------------
  636|  4.13k|            && (type != SSL3_RT_APPLICATION_DATA)
  ------------------
  |  |  222|  4.13k|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (636:16): [True: 4.13k, False: 0]
  ------------------
  637|  4.13k|            && (type != SSL3_RT_HANDSHAKE))
  ------------------
  |  |  221|  4.13k|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (637:16): [True: 0, False: 4.13k]
  ------------------
  638|  4.13k|        || (peek && (type != SSL3_RT_APPLICATION_DATA))) {
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (638:13): [True: 0, False: 4.13k]
  |  Branch (638:21): [True: 0, False: 0]
  ------------------
  639|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  640|      0|        return -1;
  641|      0|    }
  642|       |
  643|  4.13k|    if ((type == SSL3_RT_HANDSHAKE) && (s->rlayer.handshake_fragment_len > 0))
  ------------------
  |  |  221|  4.13k|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (643:9): [True: 4.13k, False: 0]
  |  Branch (643:40): [True: 0, False: 4.13k]
  ------------------
  644|       |    /* (partially) satisfy request from storage */
  645|      0|    {
  646|      0|        unsigned char *src = s->rlayer.handshake_fragment;
  647|      0|        unsigned char *dst = buf;
  648|      0|        unsigned int k;
  649|       |
  650|       |        /* peek == 0 */
  651|      0|        n = 0;
  652|      0|        while ((len > 0) && (s->rlayer.handshake_fragment_len > 0)) {
  ------------------
  |  Branch (652:16): [True: 0, False: 0]
  |  Branch (652:29): [True: 0, False: 0]
  ------------------
  653|      0|            *dst++ = *src++;
  654|      0|            len--;
  655|      0|            s->rlayer.handshake_fragment_len--;
  656|      0|            n++;
  657|      0|        }
  658|       |        /* move any remaining fragment bytes: */
  659|      0|        for (k = 0; k < s->rlayer.handshake_fragment_len; k++)
  ------------------
  |  Branch (659:21): [True: 0, False: 0]
  ------------------
  660|      0|            s->rlayer.handshake_fragment[k] = *src++;
  661|       |
  662|      0|        if (recvd_type != NULL)
  ------------------
  |  Branch (662:13): [True: 0, False: 0]
  ------------------
  663|      0|            *recvd_type = SSL3_RT_HANDSHAKE;
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  664|       |
  665|      0|        *readbytes = n;
  666|      0|        return 1;
  667|      0|    }
  668|       |
  669|       |    /*
  670|       |     * Now s->rlayer.handshake_fragment_len == 0 if type == SSL3_RT_HANDSHAKE.
  671|       |     */
  672|       |
  673|  4.13k|    if (!ossl_statem_get_in_handshake(s) && SSL_in_init(ssl)) {
  ------------------
  |  Branch (673:9): [True: 0, False: 4.13k]
  |  Branch (673:45): [True: 0, False: 0]
  ------------------
  674|       |        /* type == SSL3_RT_APPLICATION_DATA */
  675|      0|        i = s->handshake_func(ssl);
  676|       |        /* SSLfatal() already called */
  677|      0|        if (i < 0)
  ------------------
  |  Branch (677:13): [True: 0, False: 0]
  ------------------
  678|      0|            return i;
  679|      0|        if (i == 0)
  ------------------
  |  Branch (679:13): [True: 0, False: 0]
  ------------------
  680|      0|            return -1;
  681|      0|    }
  682|  4.13k|start:
  683|  4.13k|    s->rwstate = SSL_NOTHING;
  ------------------
  |  |  932|  4.13k|#define SSL_NOTHING 1
  ------------------
  684|       |
  685|       |    /*-
  686|       |     * For each record 'i' up to |num_recs]
  687|       |     * rr[i].type     - is the type of record
  688|       |     * rr[i].data,    - data
  689|       |     * rr[i].off,     - offset into 'data' for next read
  690|       |     * rr[i].length,  - number of bytes.
  691|       |     */
  692|       |    /* get new records if necessary */
  693|  4.13k|    if (s->rlayer.curr_rec >= s->rlayer.num_recs) {
  ------------------
  |  Branch (693:9): [True: 4.13k, False: 0]
  ------------------
  694|  4.13k|        s->rlayer.curr_rec = s->rlayer.num_recs = 0;
  695|  4.13k|        do {
  696|  4.13k|            rr = &s->rlayer.tlsrecs[s->rlayer.num_recs];
  697|       |
  698|  4.13k|            ret = HANDLE_RLAYER_READ_RETURN(s,
  ------------------
  |  |  166|  4.13k|    ossl_tls_handle_rlayer_return(s, 0, ret, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   ossl_tls_handle_rlayer_return(s, 0, ret, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  699|  4.13k|                s->rlayer.rrlmethod->read_record(s->rlayer.rrl,
  700|  4.13k|                    &rr->rechandle,
  701|  4.13k|                    &rr->version, &rr->type,
  702|  4.13k|                    &rr->data, &rr->length,
  703|  4.13k|                    NULL, NULL));
  704|  4.13k|            if (ret <= 0) {
  ------------------
  |  Branch (704:17): [True: 4.13k, False: 0]
  ------------------
  705|       |                /* SSLfatal() already called if appropriate */
  706|  4.13k|                return ret;
  707|  4.13k|            }
  708|      0|            rr->off = 0;
  709|      0|            s->rlayer.num_recs++;
  710|      0|        } while (s->rlayer.rrlmethod->processed_read_pending(s->rlayer.rrl)
  ------------------
  |  Branch (710:18): [True: 0, False: 0]
  ------------------
  711|      0|            && s->rlayer.num_recs < SSL_MAX_PIPELINES);
  ------------------
  |  |   71|      0|#define SSL_MAX_PIPELINES 32
  ------------------
  |  Branch (711:16): [True: 0, False: 0]
  ------------------
  712|  4.13k|    }
  713|      0|    rr = &s->rlayer.tlsrecs[s->rlayer.curr_rec];
  714|       |
  715|      0|    if (s->rlayer.handshake_fragment_len > 0
  ------------------
  |  Branch (715:9): [True: 0, False: 0]
  ------------------
  716|      0|        && rr->type != SSL3_RT_HANDSHAKE
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (716:12): [True: 0, False: 0]
  ------------------
  717|      0|        && SSL_CONNECTION_IS_TLS13(s)) {
  ------------------
  |  |  265|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  266|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  267|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  718|      0|        SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  719|      0|            SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA);
  720|      0|        return -1;
  721|      0|    }
  722|       |
  723|       |    /*
  724|       |     * Reset the count of consecutive warning alerts if we've got a non-empty
  725|       |     * record that isn't an alert.
  726|       |     */
  727|      0|    if (rr->type != SSL3_RT_ALERT && rr->length != 0)
  ------------------
  |  |  220|      0|#define SSL3_RT_ALERT 21
  ------------------
  |  Branch (727:9): [True: 0, False: 0]
  |  Branch (727:38): [True: 0, False: 0]
  ------------------
  728|      0|        s->rlayer.alert_count = 0;
  729|       |
  730|       |    /* we now have a packet which can be read and processed */
  731|       |
  732|      0|    if (s->s3.change_cipher_spec /* set when we receive ChangeCipherSpec,
  ------------------
  |  Branch (732:9): [True: 0, False: 0]
  ------------------
  733|       |                                  * reset by ssl3_get_finished */
  734|      0|        && (rr->type != SSL3_RT_HANDSHAKE)) {
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (734:12): [True: 0, False: 0]
  ------------------
  735|      0|        SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  736|      0|            SSL_R_DATA_BETWEEN_CCS_AND_FINISHED);
  737|      0|        return -1;
  738|      0|    }
  739|       |
  740|       |    /*
  741|       |     * If the other end has shut down, throw anything we read away (even in
  742|       |     * 'peek' mode)
  743|       |     */
  744|      0|    if (s->shutdown & SSL_RECEIVED_SHUTDOWN) {
  ------------------
  |  |  216|      0|#define SSL_RECEIVED_SHUTDOWN 2
  ------------------
  |  Branch (744:9): [True: 0, False: 0]
  ------------------
  745|      0|        s->rlayer.curr_rec++;
  746|      0|        s->rwstate = SSL_NOTHING;
  ------------------
  |  |  932|      0|#define SSL_NOTHING 1
  ------------------
  747|      0|        return 0;
  748|      0|    }
  749|       |
  750|      0|    if (type == rr->type
  ------------------
  |  Branch (750:9): [True: 0, False: 0]
  ------------------
  751|      0|        || (rr->type == SSL3_RT_CHANGE_CIPHER_SPEC
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  |  Branch (751:13): [True: 0, False: 0]
  ------------------
  752|      0|            && type == SSL3_RT_HANDSHAKE && recvd_type != NULL
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (752:16): [True: 0, False: 0]
  |  Branch (752:45): [True: 0, False: 0]
  ------------------
  753|      0|            && !is_tls13)) {
  ------------------
  |  Branch (753:16): [True: 0, False: 0]
  ------------------
  754|       |        /*
  755|       |         * SSL3_RT_APPLICATION_DATA or
  756|       |         * SSL3_RT_HANDSHAKE or
  757|       |         * SSL3_RT_CHANGE_CIPHER_SPEC
  758|       |         */
  759|       |        /*
  760|       |         * make sure that we are not getting application data when we are
  761|       |         * doing a handshake for the first time
  762|       |         */
  763|      0|        if (SSL_in_init(ssl) && type == SSL3_RT_APPLICATION_DATA
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (763:13): [True: 0, False: 0]
  |  Branch (763:33): [True: 0, False: 0]
  ------------------
  764|      0|            && SSL_IS_FIRST_HANDSHAKE(s)) {
  ------------------
  |  |  277|      0|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 0, False: 0]
  |  |  ------------------
  |  |  278|      0|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  765|      0|            SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE, SSL_R_APP_DATA_IN_HANDSHAKE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  766|      0|            return -1;
  767|      0|        }
  768|       |
  769|      0|        if (type == SSL3_RT_HANDSHAKE
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (769:13): [True: 0, False: 0]
  ------------------
  770|      0|            && rr->type == SSL3_RT_CHANGE_CIPHER_SPEC
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  |  Branch (770:16): [True: 0, False: 0]
  ------------------
  771|      0|            && s->rlayer.handshake_fragment_len > 0) {
  ------------------
  |  Branch (771:16): [True: 0, False: 0]
  ------------------
  772|      0|            SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE, SSL_R_CCS_RECEIVED_EARLY);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  773|      0|            return -1;
  774|      0|        }
  775|       |
  776|      0|        if (recvd_type != NULL)
  ------------------
  |  Branch (776:13): [True: 0, False: 0]
  ------------------
  777|      0|            *recvd_type = rr->type;
  778|       |
  779|      0|        if (len == 0) {
  ------------------
  |  Branch (779:13): [True: 0, False: 0]
  ------------------
  780|       |            /*
  781|       |             * Skip a zero length record. This ensures multiple calls to
  782|       |             * SSL_read() with a zero length buffer will eventually cause
  783|       |             * SSL_pending() to report data as being available.
  784|       |             */
  785|      0|            if (rr->length == 0 && !ssl_release_record(s, rr, 0))
  ------------------
  |  Branch (785:17): [True: 0, False: 0]
  |  Branch (785:36): [True: 0, False: 0]
  ------------------
  786|      0|                return -1;
  787|       |
  788|      0|            return 0;
  789|      0|        }
  790|       |
  791|      0|        totalbytes = 0;
  792|      0|        curr_rec = s->rlayer.curr_rec;
  793|      0|        do {
  794|      0|            if (len - totalbytes > rr->length)
  ------------------
  |  Branch (794:17): [True: 0, False: 0]
  ------------------
  795|      0|                n = rr->length;
  796|      0|            else
  797|      0|                n = len - totalbytes;
  798|       |
  799|      0|            memcpy(buf, &(rr->data[rr->off]), n);
  800|      0|            buf += n;
  801|      0|            if (peek) {
  ------------------
  |  Branch (801:17): [True: 0, False: 0]
  ------------------
  802|       |                /* Mark any zero length record as consumed CVE-2016-6305 */
  803|      0|                if (rr->length == 0 && !ssl_release_record(s, rr, 0))
  ------------------
  |  Branch (803:21): [True: 0, False: 0]
  |  Branch (803:40): [True: 0, False: 0]
  ------------------
  804|      0|                    return -1;
  805|      0|            } else {
  806|      0|                if (!ssl_release_record(s, rr, n))
  ------------------
  |  Branch (806:21): [True: 0, False: 0]
  ------------------
  807|      0|                    return -1;
  808|      0|            }
  809|      0|            if (rr->length == 0
  ------------------
  |  Branch (809:17): [True: 0, False: 0]
  ------------------
  810|      0|                || (peek && n == rr->length)) {
  ------------------
  |  Branch (810:21): [True: 0, False: 0]
  |  Branch (810:29): [True: 0, False: 0]
  ------------------
  811|      0|                rr++;
  812|      0|                curr_rec++;
  813|      0|            }
  814|      0|            totalbytes += n;
  815|      0|        } while (type == SSL3_RT_APPLICATION_DATA
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (815:18): [True: 0, False: 0]
  ------------------
  816|      0|            && curr_rec < s->rlayer.num_recs
  ------------------
  |  Branch (816:16): [True: 0, False: 0]
  ------------------
  817|      0|            && totalbytes < len);
  ------------------
  |  Branch (817:16): [True: 0, False: 0]
  ------------------
  818|      0|        if (totalbytes == 0) {
  ------------------
  |  Branch (818:13): [True: 0, False: 0]
  ------------------
  819|       |            /* We must have read empty records. Get more data */
  820|      0|            goto start;
  821|      0|        }
  822|      0|        *readbytes = totalbytes;
  823|      0|        return 1;
  824|      0|    }
  825|       |
  826|       |    /*
  827|       |     * If we get here, then type != rr->type; if we have a handshake message,
  828|       |     * then it was unexpected (Hello Request or Client Hello) or invalid (we
  829|       |     * were actually expecting a CCS).
  830|       |     */
  831|       |
  832|       |    /*
  833|       |     * Lets just double check that we've not got an SSLv2 record
  834|       |     */
  835|      0|    if (rr->version == SSL2_VERSION) {
  ------------------
  |  |   23|      0|#define SSL2_VERSION 0x0002
  ------------------
  |  Branch (835:9): [True: 0, False: 0]
  ------------------
  836|       |        /*
  837|       |         * Should never happen. ssl3_get_record() should only give us an SSLv2
  838|       |         * record back if this is the first packet and we are looking for an
  839|       |         * initial ClientHello. Therefore |type| should always be equal to
  840|       |         * |rr->type|. If not then something has gone horribly wrong
  841|       |         */
  842|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  843|      0|        return -1;
  844|      0|    }
  845|       |
  846|      0|    if (ssl->method->version == TLS_ANY_VERSION
  ------------------
  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (846:9): [True: 0, False: 0]
  ------------------
  847|      0|        && (s->server || rr->type != SSL3_RT_ALERT)) {
  ------------------
  |  |  220|      0|#define SSL3_RT_ALERT 21
  ------------------
  |  Branch (847:13): [True: 0, False: 0]
  |  Branch (847:26): [True: 0, False: 0]
  ------------------
  848|       |        /*
  849|       |         * If we've got this far and still haven't decided on what version
  850|       |         * we're using then this must be a client side alert we're dealing
  851|       |         * with. We shouldn't be receiving anything other than a ClientHello
  852|       |         * if we are a server.
  853|       |         */
  854|      0|        s->version = rr->version;
  855|      0|        SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE, SSL_R_UNEXPECTED_MESSAGE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  856|      0|        return -1;
  857|      0|    }
  858|       |
  859|       |    /*-
  860|       |     * s->rlayer.handshake_fragment_len == 4  iff  rr->type == SSL3_RT_HANDSHAKE;
  861|       |     * (Possibly rr is 'empty' now, i.e. rr->length may be 0.)
  862|       |     */
  863|       |
  864|      0|    if (rr->type == SSL3_RT_ALERT) {
  ------------------
  |  |  220|      0|#define SSL3_RT_ALERT 21
  ------------------
  |  Branch (864:9): [True: 0, False: 0]
  ------------------
  865|      0|        unsigned int alert_level, alert_descr;
  866|      0|        const unsigned char *alert_bytes = rr->data + rr->off;
  867|      0|        PACKET alert;
  868|       |
  869|      0|        if (!PACKET_buf_init(&alert, alert_bytes, rr->length)
  ------------------
  |  Branch (869:13): [True: 0, False: 0]
  ------------------
  870|      0|            || !PACKET_get_1(&alert, &alert_level)
  ------------------
  |  Branch (870:16): [True: 0, False: 0]
  ------------------
  871|      0|            || !PACKET_get_1(&alert, &alert_descr)
  ------------------
  |  Branch (871:16): [True: 0, False: 0]
  ------------------
  872|      0|            || PACKET_remaining(&alert) != 0) {
  ------------------
  |  Branch (872:16): [True: 0, False: 0]
  ------------------
  873|      0|            SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE, SSL_R_INVALID_ALERT);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  874|      0|            return -1;
  875|      0|        }
  876|       |
  877|      0|        if (s->msg_callback)
  ------------------
  |  Branch (877:13): [True: 0, False: 0]
  ------------------
  878|      0|            s->msg_callback(0, s->version, SSL3_RT_ALERT, alert_bytes, 2, ssl,
  ------------------
  |  |  220|      0|#define SSL3_RT_ALERT 21
  ------------------
  879|      0|                s->msg_callback_arg);
  880|       |
  881|      0|        if (s->info_callback != NULL)
  ------------------
  |  Branch (881:13): [True: 0, False: 0]
  ------------------
  882|      0|            cb = s->info_callback;
  883|      0|        else if (ssl->ctx->info_callback != NULL)
  ------------------
  |  Branch (883:18): [True: 0, False: 0]
  ------------------
  884|      0|            cb = ssl->ctx->info_callback;
  885|       |
  886|      0|        if (cb != NULL) {
  ------------------
  |  Branch (886:13): [True: 0, False: 0]
  ------------------
  887|      0|            j = (alert_level << 8) | alert_descr;
  888|      0|            cb(ssl, SSL_CB_READ_ALERT, j);
  ------------------
  |  | 1140|      0|#define SSL_CB_READ_ALERT (SSL_CB_ALERT | SSL_CB_READ)
  |  |  ------------------
  |  |  |  | 1139|      0|#define SSL_CB_ALERT 0x4000 /* used in callback */
  |  |  ------------------
  |  |               #define SSL_CB_READ_ALERT (SSL_CB_ALERT | SSL_CB_READ)
  |  |  ------------------
  |  |  |  | 1137|      0|#define SSL_CB_READ 0x04
  |  |  ------------------
  ------------------
  889|      0|        }
  890|       |
  891|      0|        if ((!is_tls13 && alert_level == SSL3_AL_WARNING)
  ------------------
  |  |  249|      0|#define SSL3_AL_WARNING 1
  ------------------
  |  Branch (891:14): [True: 0, False: 0]
  |  Branch (891:27): [True: 0, False: 0]
  ------------------
  892|      0|            || (is_tls13 && alert_descr == SSL_AD_USER_CANCELLED)) {
  ------------------
  |  | 1244|      0|#define SSL_AD_USER_CANCELLED TLS1_AD_USER_CANCELLED
  |  |  ------------------
  |  |  |  |   68|      0|#define TLS1_AD_USER_CANCELLED 90
  |  |  ------------------
  ------------------
  |  Branch (892:17): [True: 0, False: 0]
  |  Branch (892:29): [True: 0, False: 0]
  ------------------
  893|      0|            s->s3.warn_alert = alert_descr;
  894|      0|            if (!ssl_release_record(s, rr, 0))
  ------------------
  |  Branch (894:17): [True: 0, False: 0]
  ------------------
  895|      0|                return -1;
  896|       |
  897|      0|            s->rlayer.alert_count++;
  898|      0|            if (s->rlayer.alert_count == MAX_WARN_ALERT_COUNT) {
  ------------------
  |  |   17|      0|#define MAX_WARN_ALERT_COUNT 5
  ------------------
  |  Branch (898:17): [True: 0, False: 0]
  ------------------
  899|      0|                SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  900|      0|                    SSL_R_TOO_MANY_WARN_ALERTS);
  901|      0|                return -1;
  902|      0|            }
  903|      0|        }
  904|       |
  905|       |        /*
  906|       |         * Apart from close_notify the only other warning alert in TLSv1.3
  907|       |         * is user_cancelled - which we just ignore.
  908|       |         */
  909|      0|        if (is_tls13 && alert_descr == SSL_AD_USER_CANCELLED) {
  ------------------
  |  | 1244|      0|#define SSL_AD_USER_CANCELLED TLS1_AD_USER_CANCELLED
  |  |  ------------------
  |  |  |  |   68|      0|#define TLS1_AD_USER_CANCELLED 90
  |  |  ------------------
  ------------------
  |  Branch (909:13): [True: 0, False: 0]
  |  Branch (909:25): [True: 0, False: 0]
  ------------------
  910|      0|            goto start;
  911|      0|        } else if (alert_descr == SSL_AD_CLOSE_NOTIFY
  ------------------
  |  | 1209|      0|#define SSL_AD_CLOSE_NOTIFY SSL3_AD_CLOSE_NOTIFY
  |  |  ------------------
  |  |  |  |  252|      0|#define SSL3_AD_CLOSE_NOTIFY 0
  |  |  ------------------
  ------------------
  |  Branch (911:20): [True: 0, False: 0]
  ------------------
  912|      0|            && (is_tls13 || alert_level == SSL3_AL_WARNING)) {
  ------------------
  |  |  249|      0|#define SSL3_AL_WARNING 1
  ------------------
  |  Branch (912:17): [True: 0, False: 0]
  |  Branch (912:29): [True: 0, False: 0]
  ------------------
  913|      0|            s->shutdown |= SSL_RECEIVED_SHUTDOWN;
  ------------------
  |  |  216|      0|#define SSL_RECEIVED_SHUTDOWN 2
  ------------------
  914|      0|            return 0;
  915|      0|        } else if (alert_level == SSL3_AL_FATAL || is_tls13) {
  ------------------
  |  |  250|      0|#define SSL3_AL_FATAL 2
  ------------------
  |  Branch (915:20): [True: 0, False: 0]
  |  Branch (915:52): [True: 0, False: 0]
  ------------------
  916|      0|            s->rwstate = SSL_NOTHING;
  ------------------
  |  |  932|      0|#define SSL_NOTHING 1
  ------------------
  917|      0|            s->s3.fatal_alert = alert_descr;
  918|      0|            SSLfatal_data(s, SSL_AD_NO_ALERT,
  ------------------
  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  152|      0|        ossl_statem_fatal)
  ------------------
                          SSLfatal_data(s, SSL_AD_NO_ALERT,
  ------------------
  |  |   63|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  919|      0|                SSL_AD_REASON_OFFSET + alert_descr,
  ------------------
  |  | 1206|      0|#define SSL_AD_REASON_OFFSET 1000 /* offset to get SSL_R_... value \
  ------------------
  920|      0|                "SSL alert number %d", alert_descr);
  921|      0|            s->shutdown |= SSL_RECEIVED_SHUTDOWN;
  ------------------
  |  |  216|      0|#define SSL_RECEIVED_SHUTDOWN 2
  ------------------
  922|      0|            if (!ssl_release_record(s, rr, 0))
  ------------------
  |  Branch (922:17): [True: 0, False: 0]
  ------------------
  923|      0|                return -1;
  924|      0|            SSL_CTX_remove_session(s->session_ctx, s->session);
  925|      0|            return 0;
  926|      0|        } else if (alert_descr == SSL_AD_NO_RENEGOTIATION) {
  ------------------
  |  | 1245|      0|#define SSL_AD_NO_RENEGOTIATION TLS1_AD_NO_RENEGOTIATION
  |  |  ------------------
  |  |  |  |   69|      0|#define TLS1_AD_NO_RENEGOTIATION 100
  |  |  ------------------
  ------------------
  |  Branch (926:20): [True: 0, False: 0]
  ------------------
  927|       |            /*
  928|       |             * This is a warning but we receive it if we requested
  929|       |             * renegotiation and the peer denied it. Terminate with a fatal
  930|       |             * alert because if the application tried to renegotiate it
  931|       |             * presumably had a good reason and expects it to succeed. In
  932|       |             * the future we might have a renegotiation where we don't care
  933|       |             * if the peer refused it where we carry on.
  934|       |             */
  935|      0|            SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, SSL_R_NO_RENEGOTIATION);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  936|      0|            return -1;
  937|      0|        } else if (alert_level == SSL3_AL_WARNING) {
  ------------------
  |  |  249|      0|#define SSL3_AL_WARNING 1
  ------------------
  |  Branch (937:20): [True: 0, False: 0]
  ------------------
  938|       |            /* We ignore any other warning alert in TLSv1.2 and below */
  939|      0|            goto start;
  940|      0|        }
  941|       |
  942|      0|        SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER, SSL_R_UNKNOWN_ALERT_TYPE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  943|      0|        return -1;
  944|      0|    }
  945|       |
  946|      0|    if ((s->shutdown & SSL_SENT_SHUTDOWN) != 0) {
  ------------------
  |  |  215|      0|#define SSL_SENT_SHUTDOWN 1
  ------------------
  |  Branch (946:9): [True: 0, False: 0]
  ------------------
  947|      0|        if (rr->type == SSL3_RT_HANDSHAKE) {
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (947:13): [True: 0, False: 0]
  ------------------
  948|      0|            BIO *rbio;
  949|       |
  950|       |            /*
  951|       |             * We ignore any handshake messages sent to us unless they are
  952|       |             * TLSv1.3 in which case we want to process them. For all other
  953|       |             * handshake messages we can't do anything reasonable with them
  954|       |             * because we are unable to write any response due to having already
  955|       |             * sent close_notify.
  956|       |             */
  957|      0|            if (!SSL_CONNECTION_IS_TLS13(s)) {
  ------------------
  |  |  265|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  266|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  267|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  958|      0|                if (!ssl_release_record(s, rr, 0))
  ------------------
  |  Branch (958:21): [True: 0, False: 0]
  ------------------
  959|      0|                    return -1;
  960|       |
  961|      0|                if ((s->mode & SSL_MODE_AUTO_RETRY) != 0)
  ------------------
  |  |  508|      0|#define SSL_MODE_AUTO_RETRY 0x00000004U
  ------------------
  |  Branch (961:21): [True: 0, False: 0]
  ------------------
  962|      0|                    goto start;
  963|       |
  964|      0|                s->rwstate = SSL_READING;
  ------------------
  |  |  934|      0|#define SSL_READING 3
  ------------------
  965|      0|                rbio = SSL_get_rbio(ssl);
  966|      0|                BIO_clear_retry_flags(rbio);
  ------------------
  |  |  263|      0|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|      0|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|      0|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|      0|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|      0|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  967|      0|                BIO_set_retry_read(rbio);
  ------------------
  |  |  257|      0|    BIO_set_flags(b, (BIO_FLAGS_READ | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  222|      0|#define BIO_FLAGS_READ 0x01
  |  |  ------------------
  |  |                   BIO_set_flags(b, (BIO_FLAGS_READ | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  968|      0|                return -1;
  969|      0|            }
  970|      0|        } else {
  971|       |            /*
  972|       |             * The peer is continuing to send application data, but we have
  973|       |             * already sent close_notify. If this was expected we should have
  974|       |             * been called via SSL_read() and this would have been handled
  975|       |             * above.
  976|       |             * No alert sent because we already sent close_notify
  977|       |             */
  978|      0|            if (!ssl_release_record(s, rr, 0))
  ------------------
  |  Branch (978:17): [True: 0, False: 0]
  ------------------
  979|      0|                return -1;
  980|      0|            SSLfatal(s, SSL_AD_NO_ALERT,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  981|      0|                SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY);
  982|      0|            return -1;
  983|      0|        }
  984|      0|    }
  985|       |
  986|       |    /*
  987|       |     * For handshake data we have 'fragment' storage, so fill that so that we
  988|       |     * can process the header at a fixed place. This is done after the
  989|       |     * "SHUTDOWN" code above to avoid filling the fragment storage with data
  990|       |     * that we're just going to discard.
  991|       |     */
  992|      0|    if (rr->type == SSL3_RT_HANDSHAKE) {
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (992:9): [True: 0, False: 0]
  ------------------
  993|      0|        size_t dest_maxlen = sizeof(s->rlayer.handshake_fragment);
  994|      0|        unsigned char *dest = s->rlayer.handshake_fragment;
  995|      0|        size_t *dest_len = &s->rlayer.handshake_fragment_len;
  996|       |
  997|      0|        n = dest_maxlen - *dest_len; /* available space in 'dest' */
  998|      0|        if (rr->length < n)
  ------------------
  |  Branch (998:13): [True: 0, False: 0]
  ------------------
  999|      0|            n = rr->length; /* available bytes */
 1000|       |
 1001|       |        /* now move 'n' bytes: */
 1002|      0|        if (n > 0) {
  ------------------
  |  Branch (1002:13): [True: 0, False: 0]
  ------------------
 1003|      0|            memcpy(dest + *dest_len, rr->data + rr->off, n);
 1004|      0|            *dest_len += n;
 1005|      0|        }
 1006|       |        /*
 1007|       |         * We release the number of bytes consumed, or the whole record if it
 1008|       |         * is zero length
 1009|       |         */
 1010|      0|        if ((n > 0 || rr->length == 0) && !ssl_release_record(s, rr, n))
  ------------------
  |  Branch (1010:14): [True: 0, False: 0]
  |  Branch (1010:23): [True: 0, False: 0]
  |  Branch (1010:43): [True: 0, False: 0]
  ------------------
 1011|      0|            return -1;
 1012|       |
 1013|      0|        if (*dest_len < dest_maxlen)
  ------------------
  |  Branch (1013:13): [True: 0, False: 0]
  ------------------
 1014|      0|            goto start; /* fragment was too small */
 1015|      0|    }
 1016|       |
 1017|      0|    if (rr->type == SSL3_RT_CHANGE_CIPHER_SPEC) {
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  |  Branch (1017:9): [True: 0, False: 0]
  ------------------
 1018|      0|        SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE, SSL_R_CCS_RECEIVED_EARLY);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1019|      0|        return -1;
 1020|      0|    }
 1021|       |
 1022|       |    /*
 1023|       |     * Unexpected handshake message (ClientHello, NewSessionTicket (TLS1.3) or
 1024|       |     * protocol violation)
 1025|       |     */
 1026|      0|    if ((s->rlayer.handshake_fragment_len >= 4)
  ------------------
  |  Branch (1026:9): [True: 0, False: 0]
  ------------------
 1027|      0|        && !ossl_statem_get_in_handshake(s)) {
  ------------------
  |  Branch (1027:12): [True: 0, False: 0]
  ------------------
 1028|      0|        int ined = (s->early_data_state == SSL_EARLY_DATA_READING);
 1029|       |
 1030|       |        /* We found handshake data, so we're going back into init */
 1031|      0|        ossl_statem_set_in_init(s, 1);
 1032|       |
 1033|      0|        i = s->handshake_func(ssl);
 1034|       |        /* SSLfatal() already called if appropriate */
 1035|      0|        if (i < 0)
  ------------------
  |  Branch (1035:13): [True: 0, False: 0]
  ------------------
 1036|      0|            return i;
 1037|      0|        if (i == 0) {
  ------------------
  |  Branch (1037:13): [True: 0, False: 0]
  ------------------
 1038|      0|            return -1;
 1039|      0|        }
 1040|       |
 1041|       |        /*
 1042|       |         * If we were actually trying to read early data and we found a
 1043|       |         * handshake message, then we don't want to continue to try and read
 1044|       |         * the application data any more. It won't be "early" now.
 1045|       |         */
 1046|      0|        if (ined)
  ------------------
  |  Branch (1046:13): [True: 0, False: 0]
  ------------------
 1047|      0|            return -1;
 1048|       |
 1049|      0|        if (!(s->mode & SSL_MODE_AUTO_RETRY)) {
  ------------------
  |  |  508|      0|#define SSL_MODE_AUTO_RETRY 0x00000004U
  ------------------
  |  Branch (1049:13): [True: 0, False: 0]
  ------------------
 1050|      0|            if (!RECORD_LAYER_read_pending(&s->rlayer)) {
  ------------------
  |  Branch (1050:17): [True: 0, False: 0]
  ------------------
 1051|      0|                BIO *bio;
 1052|       |                /*
 1053|       |                 * In the case where we try to read application data, but we
 1054|       |                 * trigger an SSL handshake, we return -1 with the retry
 1055|       |                 * option set.  Otherwise renegotiation may cause nasty
 1056|       |                 * problems in the blocking world
 1057|       |                 */
 1058|      0|                s->rwstate = SSL_READING;
  ------------------
  |  |  934|      0|#define SSL_READING 3
  ------------------
 1059|      0|                bio = SSL_get_rbio(ssl);
 1060|      0|                BIO_clear_retry_flags(bio);
  ------------------
  |  |  263|      0|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|      0|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|      0|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|      0|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|      0|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
 1061|      0|                BIO_set_retry_read(bio);
  ------------------
  |  |  257|      0|    BIO_set_flags(b, (BIO_FLAGS_READ | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  222|      0|#define BIO_FLAGS_READ 0x01
  |  |  ------------------
  |  |                   BIO_set_flags(b, (BIO_FLAGS_READ | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
 1062|      0|                return -1;
 1063|      0|            }
 1064|      0|        }
 1065|      0|        goto start;
 1066|      0|    }
 1067|       |
 1068|      0|    switch (rr->type) {
 1069|      0|    default:
  ------------------
  |  Branch (1069:5): [True: 0, False: 0]
  ------------------
 1070|       |        /*
 1071|       |         * TLS 1.0 and 1.1 say you SHOULD ignore unrecognised record types, but
 1072|       |         * TLS 1.2 says you MUST send an unexpected message alert. We use the
 1073|       |         * TLS 1.2 behaviour for all protocol versions to prevent issues where
 1074|       |         * no progress is being made and the peer continually sends unrecognised
 1075|       |         * record types, using up resources processing them.
 1076|       |         */
 1077|      0|        SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE, SSL_R_UNEXPECTED_RECORD);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1078|      0|        return -1;
 1079|      0|    case SSL3_RT_CHANGE_CIPHER_SPEC:
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  |  Branch (1079:5): [True: 0, False: 0]
  ------------------
 1080|      0|    case SSL3_RT_ALERT:
  ------------------
  |  |  220|      0|#define SSL3_RT_ALERT 21
  ------------------
  |  Branch (1080:5): [True: 0, False: 0]
  ------------------
 1081|      0|    case SSL3_RT_HANDSHAKE:
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (1081:5): [True: 0, False: 0]
  ------------------
 1082|       |        /*
 1083|       |         * we already handled all of these, with the possible exception of
 1084|       |         * SSL3_RT_HANDSHAKE when ossl_statem_get_in_handshake(s) is true, but
 1085|       |         * that should not happen when type != rr->type
 1086|       |         */
 1087|      0|        SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1088|      0|        return -1;
 1089|      0|    case SSL3_RT_APPLICATION_DATA:
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (1089:5): [True: 0, False: 0]
  ------------------
 1090|       |        /*
 1091|       |         * At this point, we were expecting handshake data, but have
 1092|       |         * application data.  If the library was running inside ssl3_read()
 1093|       |         * (i.e. in_read_app_data is set) and it makes sense to read
 1094|       |         * application data at this point (session renegotiation not yet
 1095|       |         * started), we will indulge it.
 1096|       |         */
 1097|      0|        if (ossl_statem_app_data_allowed(s)) {
  ------------------
  |  Branch (1097:13): [True: 0, False: 0]
  ------------------
 1098|      0|            s->s3.in_read_app_data = 2;
 1099|      0|            return -1;
 1100|      0|        } else if (ossl_statem_skip_early_data(s)) {
  ------------------
  |  Branch (1100:20): [True: 0, False: 0]
  ------------------
 1101|       |            /*
 1102|       |             * This can happen after a client sends a CH followed by early_data,
 1103|       |             * but the server responds with a HelloRetryRequest. The server
 1104|       |             * reads the next record from the client expecting to find a
 1105|       |             * plaintext ClientHello but gets a record which appears to be
 1106|       |             * application data. The trial decrypt "works" because null
 1107|       |             * decryption was applied. We just skip it and move on to the next
 1108|       |             * record.
 1109|       |             */
 1110|      0|            if (!ossl_early_data_count_ok(s, rr->length,
  ------------------
  |  Branch (1110:17): [True: 0, False: 0]
  ------------------
 1111|      0|                    EARLY_DATA_CIPHERTEXT_OVERHEAD, 0)) {
  ------------------
  |  |  616|      0|#define EARLY_DATA_CIPHERTEXT_OVERHEAD ((6 * (EVP_GCM_TLS_TAG_LEN + 1)) + 2)
  |  |  ------------------
  |  |  |  |  476|      0|#define EVP_GCM_TLS_TAG_LEN 16
  |  |  ------------------
  ------------------
 1112|       |                /* SSLfatal() already called */
 1113|      0|                return -1;
 1114|      0|            }
 1115|      0|            if (!ssl_release_record(s, rr, 0))
  ------------------
  |  Branch (1115:17): [True: 0, False: 0]
  ------------------
 1116|      0|                return -1;
 1117|      0|            goto start;
 1118|      0|        } else {
 1119|       |            SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE, SSL_R_UNEXPECTED_RECORD);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1120|      0|            return -1;
 1121|      0|        }
 1122|      0|    }
 1123|      0|}
ssl_set_new_record_layer:
 1252|  1.31k|{
 1253|  1.31k|    OSSL_PARAM options[5], *opts = options;
 1254|  1.31k|    OSSL_PARAM settings[6], *set = settings;
 1255|  1.31k|    const OSSL_RECORD_METHOD **thismethod;
 1256|  1.31k|    OSSL_RECORD_LAYER **thisrl, *newrl = NULL;
 1257|  1.31k|    BIO *thisbio;
 1258|  1.31k|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|  1.31k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 1259|  1.31k|    const OSSL_RECORD_METHOD *meth;
 1260|  1.31k|    int use_etm, stream_mac = 0, tlstree = 0;
 1261|  1.31k|    unsigned int maxfrag = (direction == OSSL_RECORD_DIRECTION_WRITE)
  ------------------
  |  |   43|  1.31k|#define OSSL_RECORD_DIRECTION_WRITE 1
  ------------------
  |  Branch (1261:28): [True: 659, False: 659]
  ------------------
 1262|  1.31k|        ? ssl_get_max_send_fragment(s)
 1263|  1.31k|        : SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|    659|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 1264|  1.31k|    int use_early_data = 0;
 1265|  1.31k|    uint32_t max_early_data;
 1266|  1.31k|    COMP_METHOD *compm = (comp == NULL) ? NULL : comp->method;
  ------------------
  |  Branch (1266:26): [True: 1.31k, False: 0]
  ------------------
 1267|       |
 1268|  1.31k|    meth = ssl_select_next_record_layer(s, direction, level);
 1269|       |
 1270|  1.31k|    if (direction == OSSL_RECORD_DIRECTION_READ) {
  ------------------
  |  |   42|  1.31k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1270:9): [True: 659, False: 659]
  ------------------
 1271|    659|        thismethod = &s->rlayer.rrlmethod;
 1272|    659|        thisrl = &s->rlayer.rrl;
 1273|    659|        thisbio = s->rbio;
 1274|    659|    } else {
 1275|    659|        thismethod = &s->rlayer.wrlmethod;
 1276|    659|        thisrl = &s->rlayer.wrl;
 1277|    659|        thisbio = s->wbio;
 1278|    659|    }
 1279|       |
 1280|  1.31k|    if (meth == NULL)
  ------------------
  |  Branch (1280:9): [True: 0, False: 1.31k]
  ------------------
 1281|      0|        meth = *thismethod;
 1282|       |
 1283|  1.31k|    if (!ossl_assert(meth != NULL)) {
  ------------------
  |  |   52|  1.31k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  1.31k|    __FILE__, __LINE__)
  ------------------
  |  Branch (1283:9): [True: 0, False: 1.31k]
  ------------------
 1284|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1285|      0|        return 0;
 1286|      0|    }
 1287|       |
 1288|       |    /* Parameters that *may* be supported by a record layer if passed */
 1289|  1.31k|    *opts++ = OSSL_PARAM_construct_uint64(OSSL_LIBSSL_RECORD_LAYER_PARAM_OPTIONS,
  ------------------
  |  |  332|  1.31k|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_OPTIONS "options"
  ------------------
 1290|  1.31k|        &s->options);
 1291|  1.31k|    *opts++ = OSSL_PARAM_construct_uint32(OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE,
  ------------------
  |  |  331|  1.31k|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE "mode"
  ------------------
 1292|  1.31k|        &s->mode);
 1293|  1.31k|    if (direction == OSSL_RECORD_DIRECTION_READ) {
  ------------------
  |  |   42|  1.31k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1293:9): [True: 659, False: 659]
  ------------------
 1294|    659|        *opts++ = OSSL_PARAM_construct_size_t(OSSL_LIBSSL_RECORD_LAYER_READ_BUFFER_LEN,
  ------------------
  |  |  337|    659|# define OSSL_LIBSSL_RECORD_LAYER_READ_BUFFER_LEN "read_buffer_len"
  ------------------
 1295|    659|            &s->rlayer.default_read_buf_len);
 1296|    659|        *opts++ = OSSL_PARAM_construct_int(OSSL_LIBSSL_RECORD_LAYER_PARAM_READ_AHEAD,
  ------------------
  |  |  333|    659|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_READ_AHEAD "read_ahead"
  ------------------
 1297|    659|            &s->rlayer.read_ahead);
 1298|    659|    } else {
 1299|    659|        *opts++ = OSSL_PARAM_construct_size_t(OSSL_LIBSSL_RECORD_LAYER_PARAM_BLOCK_PADDING,
  ------------------
  |  |  327|    659|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_BLOCK_PADDING "block_padding"
  ------------------
 1300|    659|            &s->rlayer.block_padding);
 1301|    659|        *opts++ = OSSL_PARAM_construct_size_t(OSSL_LIBSSL_RECORD_LAYER_PARAM_HS_PADDING,
  ------------------
  |  |  328|    659|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_HS_PADDING "hs_padding"
  ------------------
 1302|    659|            &s->rlayer.hs_padding);
 1303|    659|    }
 1304|  1.31k|    *opts = OSSL_PARAM_construct_end();
 1305|       |
 1306|       |    /* Parameters that *must* be supported by a record layer if passed */
 1307|  1.31k|    if (direction == OSSL_RECORD_DIRECTION_READ) {
  ------------------
  |  |   42|  1.31k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1307:9): [True: 659, False: 659]
  ------------------
 1308|    659|        use_etm = SSL_READ_ETM(s) ? 1 : 0;
  ------------------
  |  |  300|    659|#define SSL_READ_ETM(s) (s->s3.flags & TLS1_FLAGS_ENCRYPT_THEN_MAC_READ)
  |  |  ------------------
  |  |  |  |  296|    659|#define TLS1_FLAGS_ENCRYPT_THEN_MAC_READ 0x0100
  |  |  ------------------
  |  |  |  Branch (300:25): [True: 0, False: 659]
  |  |  ------------------
  ------------------
 1309|    659|        if ((s->mac_flags & SSL_MAC_FLAG_READ_MAC_STREAM) != 0)
  ------------------
  |  |  951|    659|#define SSL_MAC_FLAG_READ_MAC_STREAM 1
  ------------------
  |  Branch (1309:13): [True: 0, False: 659]
  ------------------
 1310|      0|            stream_mac = 1;
 1311|       |
 1312|    659|        if ((s->mac_flags & SSL_MAC_FLAG_READ_MAC_TLSTREE) != 0)
  ------------------
  |  |  953|    659|#define SSL_MAC_FLAG_READ_MAC_TLSTREE 4
  ------------------
  |  Branch (1312:13): [True: 0, False: 659]
  ------------------
 1313|      0|            tlstree = 1;
 1314|    659|    } else {
 1315|    659|        use_etm = SSL_WRITE_ETM(s) ? 1 : 0;
  ------------------
  |  |  301|    659|#define SSL_WRITE_ETM(s) (s->s3.flags & TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE)
  |  |  ------------------
  |  |  |  |  302|    659|#define TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE 0x0400
  |  |  ------------------
  |  |  |  Branch (301:26): [True: 0, False: 659]
  |  |  ------------------
  ------------------
 1316|    659|        if ((s->mac_flags & SSL_MAC_FLAG_WRITE_MAC_STREAM) != 0)
  ------------------
  |  |  952|    659|#define SSL_MAC_FLAG_WRITE_MAC_STREAM 2
  ------------------
  |  Branch (1316:13): [True: 0, False: 659]
  ------------------
 1317|      0|            stream_mac = 1;
 1318|       |
 1319|    659|        if ((s->mac_flags & SSL_MAC_FLAG_WRITE_MAC_TLSTREE) != 0)
  ------------------
  |  |  954|    659|#define SSL_MAC_FLAG_WRITE_MAC_TLSTREE 8
  ------------------
  |  Branch (1319:13): [True: 0, False: 659]
  ------------------
 1320|      0|            tlstree = 1;
 1321|    659|    }
 1322|       |
 1323|  1.31k|    if (use_etm)
  ------------------
  |  Branch (1323:9): [True: 0, False: 1.31k]
  ------------------
 1324|      0|        *set++ = OSSL_PARAM_construct_int(OSSL_LIBSSL_RECORD_LAYER_PARAM_USE_ETM,
  ------------------
  |  |  336|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_USE_ETM "use_etm"
  ------------------
 1325|      0|            &use_etm);
 1326|       |
 1327|  1.31k|    if (stream_mac)
  ------------------
  |  Branch (1327:9): [True: 0, False: 1.31k]
  ------------------
 1328|      0|        *set++ = OSSL_PARAM_construct_int(OSSL_LIBSSL_RECORD_LAYER_PARAM_STREAM_MAC,
  ------------------
  |  |  334|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_STREAM_MAC "stream_mac"
  ------------------
 1329|      0|            &stream_mac);
 1330|       |
 1331|  1.31k|    if (tlstree)
  ------------------
  |  Branch (1331:9): [True: 0, False: 1.31k]
  ------------------
 1332|      0|        *set++ = OSSL_PARAM_construct_int(OSSL_LIBSSL_RECORD_LAYER_PARAM_TLSTREE,
  ------------------
  |  |  335|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_TLSTREE "tlstree"
  ------------------
 1333|      0|            &tlstree);
 1334|       |
 1335|       |    /*
 1336|       |     * We only need to do this for the read side. The write side should already
 1337|       |     * have the correct value due to the ssl_get_max_send_fragment() call above
 1338|       |     */
 1339|  1.31k|    if (direction == OSSL_RECORD_DIRECTION_READ
  ------------------
  |  |   42|  2.63k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1339:9): [True: 659, False: 659]
  ------------------
 1340|    659|        && s->session != NULL
  ------------------
  |  Branch (1340:12): [True: 0, False: 659]
  ------------------
 1341|      0|        && USE_MAX_FRAGMENT_LENGTH_EXT(s->session))
  ------------------
  |  |  296|      0|    IS_MAX_FRAGMENT_LENGTH_EXT_VALID(session->ext.max_fragment_len_mode)
  |  |  ------------------
  |  |  |  |  294|      0|    (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  229|      0|#define TLSEXT_max_fragment_length_512 1
  |  |  |  |  ------------------
  |  |  |  |                   (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  232|      0|#define TLSEXT_max_fragment_length_4096 4
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (294:6): [True: 0, False: 0]
  |  |  |  |  |  Branch (294:53): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1342|      0|        maxfrag = GET_MAX_FRAGMENT_LENGTH(s->session);
  ------------------
  |  |  298|      0|    (512U << (session->ext.max_fragment_len_mode - 1))
  ------------------
 1343|       |
 1344|  1.31k|    if (maxfrag != SSL3_RT_MAX_PLAIN_LENGTH)
  ------------------
  |  |  177|  1.31k|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
  |  Branch (1344:9): [True: 0, False: 1.31k]
  ------------------
 1345|      0|        *set++ = OSSL_PARAM_construct_uint(OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_FRAG_LEN,
  ------------------
  |  |  330|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_FRAG_LEN "max_frag_len"
  ------------------
 1346|      0|            &maxfrag);
 1347|       |
 1348|       |    /*
 1349|       |     * The record layer must check the amount of early data sent or received
 1350|       |     * using the early keys. A server also needs to worry about rejected early
 1351|       |     * data that might arrive when the handshake keys are in force.
 1352|       |     */
 1353|  1.31k|    if (s->server && direction == OSSL_RECORD_DIRECTION_READ) {
  ------------------
  |  |   42|      0|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1353:9): [True: 0, False: 1.31k]
  |  Branch (1353:22): [True: 0, False: 0]
  ------------------
 1354|      0|        use_early_data = (level == OSSL_RECORD_PROTECTION_LEVEL_EARLY
  ------------------
  |  | 2933|      0|#define OSSL_RECORD_PROTECTION_LEVEL_EARLY 1
  ------------------
  |  Branch (1354:27): [True: 0, False: 0]
  ------------------
 1355|      0|            || level == OSSL_RECORD_PROTECTION_LEVEL_HANDSHAKE);
  ------------------
  |  | 2934|      0|#define OSSL_RECORD_PROTECTION_LEVEL_HANDSHAKE 2
  ------------------
  |  Branch (1355:16): [True: 0, False: 0]
  ------------------
 1356|  1.31k|    } else if (!s->server && direction == OSSL_RECORD_DIRECTION_WRITE) {
  ------------------
  |  |   43|  1.31k|#define OSSL_RECORD_DIRECTION_WRITE 1
  ------------------
  |  Branch (1356:16): [True: 1.31k, False: 0]
  |  Branch (1356:30): [True: 659, False: 659]
  ------------------
 1357|    659|        use_early_data = (level == OSSL_RECORD_PROTECTION_LEVEL_EARLY);
  ------------------
  |  | 2933|    659|#define OSSL_RECORD_PROTECTION_LEVEL_EARLY 1
  ------------------
 1358|    659|    }
 1359|  1.31k|    if (use_early_data) {
  ------------------
  |  Branch (1359:9): [True: 0, False: 1.31k]
  ------------------
 1360|      0|        max_early_data = ossl_get_max_early_data(s);
 1361|       |
 1362|      0|        if (max_early_data != 0)
  ------------------
  |  Branch (1362:13): [True: 0, False: 0]
  ------------------
 1363|      0|            *set++ = OSSL_PARAM_construct_uint32(OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA,
  ------------------
  |  |  329|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA "max_early_data"
  ------------------
 1364|      0|                &max_early_data);
 1365|      0|    }
 1366|       |
 1367|  1.31k|    *set = OSSL_PARAM_construct_end();
 1368|       |
 1369|  1.31k|    for (;;) {
 1370|  1.31k|        int rlret;
 1371|  1.31k|        BIO *prev = NULL;
 1372|  1.31k|        BIO *next = NULL;
 1373|  1.31k|        unsigned int epoch = 0;
 1374|  1.31k|        OSSL_DISPATCH rlayer_dispatch_tmp[OSSL_NELEM(rlayer_dispatch)];
 1375|  1.31k|        size_t i, j;
 1376|       |
 1377|  1.31k|        if (direction == OSSL_RECORD_DIRECTION_READ) {
  ------------------
  |  |   42|  1.31k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1377:13): [True: 659, False: 659]
  ------------------
 1378|    659|            prev = s->rlayer.rrlnext;
 1379|    659|            if (SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|  1.31k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    659|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    659|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 659]
  |  |  ------------------
  ------------------
 1380|      0|                && level != OSSL_RECORD_PROTECTION_LEVEL_NONE)
  ------------------
  |  | 2932|      0|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  |  Branch (1380:20): [True: 0, False: 0]
  ------------------
 1381|      0|                epoch = dtls1_get_epoch(s, SSL3_CC_READ); /* new epoch */
  ------------------
  |  |  342|      0|#define SSL3_CC_READ 0x001
  ------------------
 1382|       |
 1383|    659|#ifndef OPENSSL_NO_DGRAM
 1384|    659|            if (SSL_CONNECTION_IS_DTLS(s))
  ------------------
  |  |  258|    659|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    659|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    659|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 659]
  |  |  ------------------
  ------------------
 1385|      0|                next = BIO_new(BIO_s_dgram_mem());
 1386|    659|            else
 1387|    659|#endif
 1388|    659|                next = BIO_new(BIO_s_mem());
 1389|       |
 1390|    659|            if (next == NULL) {
  ------------------
  |  Branch (1390:17): [True: 0, False: 659]
  ------------------
 1391|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1392|      0|                return 0;
 1393|      0|            }
 1394|    659|            s->rlayer.rrlnext = next;
 1395|    659|        } else {
 1396|    659|            if (SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|  1.31k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    659|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    659|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 659]
  |  |  ------------------
  ------------------
 1397|      0|                && level != OSSL_RECORD_PROTECTION_LEVEL_NONE)
  ------------------
  |  | 2932|      0|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  |  Branch (1397:20): [True: 0, False: 0]
  ------------------
 1398|      0|                epoch = dtls1_get_epoch(s, SSL3_CC_WRITE); /* new epoch */
  ------------------
  |  |  343|      0|#define SSL3_CC_WRITE 0x002
  ------------------
 1399|    659|        }
 1400|       |
 1401|       |        /*
 1402|       |         * Create a copy of the dispatch array, missing out wrappers for
 1403|       |         * callbacks that we don't need.
 1404|       |         */
 1405|  7.90k|        for (i = 0, j = 0; i < OSSL_NELEM(rlayer_dispatch); i++) {
  ------------------
  |  |   14|  7.90k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1405:28): [True: 6.59k, False: 1.31k]
  ------------------
 1406|  6.59k|            switch (rlayer_dispatch[i].function_id) {
 1407|  1.31k|            case OSSL_FUNC_RLAYER_MSG_CALLBACK:
  ------------------
  |  |  187|  1.31k|#define OSSL_FUNC_RLAYER_MSG_CALLBACK 2
  ------------------
  |  Branch (1407:13): [True: 1.31k, False: 5.27k]
  ------------------
 1408|  1.31k|                if (s->msg_callback == NULL)
  ------------------
  |  Branch (1408:21): [True: 1.31k, False: 0]
  ------------------
 1409|  1.31k|                    continue;
 1410|      0|                break;
 1411|  1.31k|            case OSSL_FUNC_RLAYER_PADDING:
  ------------------
  |  |  191|  1.31k|#define OSSL_FUNC_RLAYER_PADDING 4
  ------------------
  |  Branch (1411:13): [True: 1.31k, False: 5.27k]
  ------------------
 1412|  1.31k|                if (s->rlayer.record_padding_cb == NULL)
  ------------------
  |  Branch (1412:21): [True: 1.31k, False: 0]
  ------------------
 1413|  1.31k|                    continue;
 1414|      0|                break;
 1415|  3.95k|            default:
  ------------------
  |  Branch (1415:13): [True: 3.95k, False: 2.63k]
  ------------------
 1416|  3.95k|                break;
 1417|  6.59k|            }
 1418|  3.95k|            rlayer_dispatch_tmp[j++] = rlayer_dispatch[i];
 1419|  3.95k|        }
 1420|       |
 1421|  1.31k|        rlret = meth->new_record_layer(sctx->libctx, sctx->propq, version,
 1422|  1.31k|            s->server, direction, level, epoch,
 1423|  1.31k|            secret, secretlen, key, keylen, iv,
 1424|  1.31k|            ivlen, mackey, mackeylen, ciph, taglen,
 1425|  1.31k|            mactype, md, compm, kdfdigest, prev,
 1426|  1.31k|            thisbio, next, NULL, NULL, settings,
 1427|  1.31k|            options, rlayer_dispatch_tmp, s,
 1428|  1.31k|            s->rlayer.rlarg, &newrl);
 1429|  1.31k|        BIO_free(prev);
 1430|  1.31k|        switch (rlret) {
 1431|      0|        case OSSL_RECORD_RETURN_FATAL:
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  |  Branch (1431:9): [True: 0, False: 1.31k]
  ------------------
 1432|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_RECORD_LAYER_FAILURE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1433|      0|            return 0;
 1434|       |
 1435|      0|        case OSSL_RECORD_RETURN_NON_FATAL_ERR:
  ------------------
  |  |   47|      0|#define OSSL_RECORD_RETURN_NON_FATAL_ERR -1
  ------------------
  |  Branch (1435:9): [True: 0, False: 1.31k]
  ------------------
 1436|      0|            if (*thismethod != meth && *thismethod != NULL) {
  ------------------
  |  Branch (1436:17): [True: 0, False: 0]
  |  Branch (1436:40): [True: 0, False: 0]
  ------------------
 1437|       |                /*
 1438|       |                 * We tried a new record layer method, but it didn't work out,
 1439|       |                 * so we fallback to the original method and try again
 1440|       |                 */
 1441|      0|                meth = *thismethod;
 1442|      0|                continue;
 1443|      0|            }
 1444|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_RECORD_LAYER);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1445|      0|            return 0;
 1446|       |
 1447|  1.31k|        case OSSL_RECORD_RETURN_SUCCESS:
  ------------------
  |  |   45|  1.31k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1447:9): [True: 1.31k, False: 0]
  ------------------
 1448|  1.31k|            break;
 1449|       |
 1450|      0|        default:
  ------------------
  |  Branch (1450:9): [True: 0, False: 1.31k]
  ------------------
 1451|       |            /* Should not happen */
 1452|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1453|      0|            return 0;
 1454|  1.31k|        }
 1455|  1.31k|        break;
 1456|  1.31k|    }
 1457|       |
 1458|       |    /*
 1459|       |     * Free the old record layer if we have one except in the case of DTLS when
 1460|       |     * writing and there are still buffered sent messages in our queue. In that
 1461|       |     * case the record layer is still referenced by those buffered messages for
 1462|       |     * potential retransmit. Only when those buffered messages get freed do we
 1463|       |     * free the record layer object (see dtls1_hm_fragment_free)
 1464|       |     */
 1465|  1.31k|    if (!SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|  2.63k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  1.31k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  1.31k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (1465:9): [True: 1.31k, False: 0]
  ------------------
 1466|      0|        || direction == OSSL_RECORD_DIRECTION_READ
  ------------------
  |  |   42|  1.31k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1466:12): [True: 0, False: 0]
  ------------------
 1467|  1.31k|        || pqueue_peek(s->d1->sent_messages) == NULL) {
  ------------------
  |  Branch (1467:12): [True: 0, False: 0]
  ------------------
 1468|  1.31k|        if (*thismethod != NULL && !(*thismethod)->free(*thisrl)) {
  ------------------
  |  Branch (1468:13): [True: 0, False: 1.31k]
  |  Branch (1468:36): [True: 0, False: 0]
  ------------------
 1469|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1470|      0|            return 0;
 1471|      0|        }
 1472|  1.31k|    }
 1473|       |
 1474|  1.31k|    *thisrl = newrl;
 1475|  1.31k|    *thismethod = meth;
 1476|       |
 1477|  1.31k|    return ssl_post_record_layer_select(s, direction);
 1478|  1.31k|}
rec_layer_s3.c:tls_write_check_pending:
  254|    219|{
  255|    219|    if (s->rlayer.wpend_tot == 0)
  ------------------
  |  Branch (255:9): [True: 219, False: 0]
  ------------------
  256|    219|        return 0;
  257|       |
  258|       |    /* We have pending data, so do some sanity checks */
  259|      0|    if ((s->rlayer.wpend_tot > len)
  ------------------
  |  Branch (259:9): [True: 0, False: 0]
  ------------------
  260|      0|        || (!(s->mode & SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER)
  ------------------
  |  |  504|      0|#define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER 0x00000002U
  ------------------
  |  Branch (260:13): [True: 0, False: 0]
  ------------------
  261|      0|            && (s->rlayer.wpend_buf != buf))
  ------------------
  |  Branch (261:16): [True: 0, False: 0]
  ------------------
  262|      0|        || (s->rlayer.wpend_type != type)) {
  ------------------
  |  Branch (262:12): [True: 0, False: 0]
  ------------------
  263|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_WRITE_RETRY);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  264|      0|        return -1;
  265|      0|    }
  266|      0|    return 1;
  267|      0|}
rec_layer_s3.c:ssl_select_next_record_layer:
 1187|  1.31k|{
 1188|  1.31k|    if (s->rlayer.custom_rlmethod != NULL)
  ------------------
  |  Branch (1188:9): [True: 0, False: 1.31k]
  ------------------
 1189|      0|        return s->rlayer.custom_rlmethod;
 1190|       |
 1191|  1.31k|    if (level == OSSL_RECORD_PROTECTION_LEVEL_NONE) {
  ------------------
  |  | 2932|  1.31k|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  |  Branch (1191:9): [True: 1.31k, False: 0]
  ------------------
 1192|  1.31k|        if (SSL_CONNECTION_IS_DTLS(s))
  ------------------
  |  |  258|  1.31k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  1.31k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  1.31k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
 1193|      0|            return &ossl_dtls_record_method;
 1194|       |
 1195|  1.31k|        return &ossl_tls_record_method;
 1196|  1.31k|    }
 1197|       |
 1198|       |#ifndef OPENSSL_NO_KTLS
 1199|       |    /* KTLS does not support renegotiation */
 1200|       |    if (level == OSSL_RECORD_PROTECTION_LEVEL_APPLICATION
 1201|       |        && (s->options & SSL_OP_ENABLE_KTLS) != 0
 1202|       |        && (SSL_CONNECTION_IS_TLS13(s) || SSL_IS_FIRST_HANDSHAKE(s)))
 1203|       |        return &ossl_ktls_record_method;
 1204|       |#endif
 1205|       |
 1206|       |    /* Default to the current OSSL_RECORD_METHOD */
 1207|      0|    return direction == OSSL_RECORD_DIRECTION_READ ? s->rlayer.rrlmethod
  ------------------
  |  |   42|      0|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1207:12): [True: 0, False: 0]
  ------------------
 1208|      0|                                                   : s->rlayer.wrlmethod;
 1209|  1.31k|}
rec_layer_s3.c:ssl_post_record_layer_select:
 1212|  1.31k|{
 1213|  1.31k|    const OSSL_RECORD_METHOD *thismethod;
 1214|  1.31k|    OSSL_RECORD_LAYER *thisrl;
 1215|       |
 1216|  1.31k|    if (direction == OSSL_RECORD_DIRECTION_READ) {
  ------------------
  |  |   42|  1.31k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1216:9): [True: 659, False: 659]
  ------------------
 1217|    659|        thismethod = s->rlayer.rrlmethod;
 1218|    659|        thisrl = s->rlayer.rrl;
 1219|    659|    } else {
 1220|    659|        thismethod = s->rlayer.wrlmethod;
 1221|    659|        thisrl = s->rlayer.wrl;
 1222|    659|    }
 1223|       |
 1224|       |#ifndef OPENSSL_NO_KTLS
 1225|       |    {
 1226|       |        SSL *ssl = SSL_CONNECTION_GET_SSL(s);
 1227|       |
 1228|       |        if (s->rlayer.rrlmethod == &ossl_ktls_record_method) {
 1229|       |            /* KTLS does not support renegotiation so disallow it */
 1230|       |            SSL_set_options(ssl, SSL_OP_NO_RENEGOTIATION);
 1231|       |        }
 1232|       |    }
 1233|       |#endif
 1234|  1.31k|    if (SSL_IS_FIRST_HANDSHAKE(s) && thismethod->set_first_handshake != NULL)
  ------------------
  |  |  277|  2.63k|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 1.31k, False: 0]
  |  |  ------------------
  |  |  278|  2.63k|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1234:38): [True: 1.31k, False: 0]
  ------------------
 1235|  1.31k|        thismethod->set_first_handshake(thisrl, 1);
 1236|       |
 1237|  1.31k|    if (s->max_pipelines != 0 && thismethod->set_max_pipelines != NULL)
  ------------------
  |  Branch (1237:9): [True: 0, False: 1.31k]
  |  Branch (1237:34): [True: 0, False: 0]
  ------------------
 1238|      0|        thismethod->set_max_pipelines(thisrl, s->max_pipelines);
 1239|       |
 1240|  1.31k|    return 1;
 1241|  1.31k|}

ssl3_cleanup_key_block:
  214|  1.09k|{
  215|  1.09k|    OPENSSL_clear_free(s->s3.tmp.key_block, s->s3.tmp.key_block_length);
  ------------------
  |  |  129|  1.09k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  216|       |    s->s3.tmp.key_block = NULL;
  217|  1.09k|    s->s3.tmp.key_block_length = 0;
  218|  1.09k|}
ssl3_init_finished_mac:
  221|    219|{
  222|    219|    BIO *buf = BIO_new(BIO_s_mem());
  223|       |
  224|    219|    if (buf == NULL) {
  ------------------
  |  Branch (224:9): [True: 0, False: 219]
  ------------------
  225|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_BIO_LIB);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  226|      0|        return 0;
  227|      0|    }
  228|    219|    ssl3_free_digest_list(s);
  229|    219|    s->s3.handshake_buffer = buf;
  230|       |    (void)BIO_set_close(s->s3.handshake_buffer, BIO_CLOSE);
  ------------------
  |  |  634|    219|#define BIO_set_close(b, c) (int)BIO_ctrl(b, BIO_CTRL_SET_CLOSE, (c), NULL)
  |  |  ------------------
  |  |  |  |   98|    219|#define BIO_CTRL_SET_CLOSE 9 /* man - set the 'close' on free */
  |  |  ------------------
  ------------------
  231|    219|    return 1;
  232|    219|}
ssl3_free_digest_list:
  240|  1.31k|{
  241|  1.31k|    BIO_free(s->s3.handshake_buffer);
  242|  1.31k|    s->s3.handshake_buffer = NULL;
  243|  1.31k|    EVP_MD_CTX_free(s->s3.handshake_dgst);
  244|       |    s->s3.handshake_dgst = NULL;
  245|  1.31k|}
ssl3_finish_mac:
  248|    219|{
  249|    219|    int ret;
  250|       |
  251|    219|    if (s->s3.handshake_dgst == NULL) {
  ------------------
  |  Branch (251:9): [True: 219, False: 0]
  ------------------
  252|       |        /* Note: this writes to a memory BIO so a failure is a fatal error */
  253|    219|        if (len > INT_MAX) {
  ------------------
  |  Branch (253:13): [True: 0, False: 219]
  ------------------
  254|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_OVERFLOW_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  255|      0|            return 0;
  256|      0|        }
  257|    219|        ret = BIO_write(s->s3.handshake_buffer, (void *)buf, (int)len);
  258|    219|        if (ret <= 0 || ret != (int)len) {
  ------------------
  |  Branch (258:13): [True: 0, False: 219]
  |  Branch (258:25): [True: 0, False: 219]
  ------------------
  259|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  260|      0|            return 0;
  261|      0|        }
  262|    219|    } else {
  263|      0|        ret = EVP_DigestUpdate(s->s3.handshake_dgst, buf, len);
  264|      0|        if (!ret) {
  ------------------
  |  Branch (264:13): [True: 0, False: 0]
  ------------------
  265|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  266|      0|            return 0;
  267|      0|        }
  268|      0|    }
  269|    219|    return 1;
  270|    219|}

ssl_sort_cipher_list:
 3730|      2|{
 3731|      2|    qsort(tls13_ciphers, TLS13_NUM_CIPHERS, sizeof(tls13_ciphers[0]),
  ------------------
  |  |   27|      2|#define TLS13_NUM_CIPHERS OSSL_NELEM(tls13_ciphers)
  |  |  ------------------
  |  |  |  |   14|      2|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 3732|      2|        cipher_compare);
 3733|      2|    qsort(ssl3_ciphers, SSL3_NUM_CIPHERS, sizeof(ssl3_ciphers[0]),
  ------------------
  |  |   28|      2|#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
  |  |  ------------------
  |  |  |  |   14|      2|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 3734|      2|        cipher_compare);
 3735|      2|    qsort(ssl3_scsvs, SSL3_NUM_SCSVS, sizeof(ssl3_scsvs[0]), cipher_compare);
  ------------------
  |  |   29|      2|#define SSL3_NUM_SCSVS OSSL_NELEM(ssl3_scsvs)
  |  |  ------------------
  |  |  |  |   14|      2|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 3736|      2|}
ssl3_num_ciphers:
 3777|    220|{
 3778|    220|    return SSL3_NUM_CIPHERS;
  ------------------
  |  |   28|    220|#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
  |  |  ------------------
  |  |  |  |   14|    220|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 3779|    220|}
ssl3_get_cipher:
 3782|  42.0k|{
 3783|  42.0k|    if (u < SSL3_NUM_CIPHERS)
  ------------------
  |  |   28|  42.0k|#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
  |  |  ------------------
  |  |  |  |   14|  42.0k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
  |  Branch (3783:9): [True: 42.0k, False: 0]
  ------------------
 3784|  42.0k|        return &(ssl3_ciphers[SSL3_NUM_CIPHERS - 1 - u]);
  ------------------
  |  |   28|  42.0k|#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
  |  |  ------------------
  |  |  |  |   14|  42.0k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 3785|      0|    else
 3786|      0|        return NULL;
 3787|  42.0k|}
ssl3_set_handshake_header:
 3790|    219|{
 3791|       |    /* No header in the event of a CCS */
 3792|    219|    if (htype == SSL3_MT_CHANGE_CIPHER_SPEC)
  ------------------
  |  |  337|    219|#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
  ------------------
  |  Branch (3792:9): [True: 0, False: 219]
  ------------------
 3793|      0|        return 1;
 3794|       |
 3795|       |    /* Set the content type and 3 bytes for the message len */
 3796|    219|    if (!WPACKET_put_bytes_u8(pkt, htype)
  ------------------
  |  |  889|    438|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (3796:9): [True: 0, False: 219]
  ------------------
 3797|    219|        || !WPACKET_start_sub_packet_u24(pkt))
  ------------------
  |  |  794|    219|    WPACKET_start_sub_packet_len__((pkt), 3)
  ------------------
  |  Branch (3797:12): [True: 0, False: 219]
  ------------------
 3798|      0|        return 0;
 3799|       |
 3800|    219|    return 1;
 3801|    219|}
ssl3_handshake_write:
 3804|    219|{
 3805|    219|    return ssl3_do_write(s, SSL3_RT_HANDSHAKE);
  ------------------
  |  |  221|    219|#define SSL3_RT_HANDSHAKE 22
  ------------------
 3806|    219|}
ssl3_new:
 3809|    220|{
 3810|    220|#ifndef OPENSSL_NO_SRP
 3811|    220|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    220|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    220|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  |  |   33|    220|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    220|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 220, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    220|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    220|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3812|       |
 3813|    220|    if (sc == NULL)
  ------------------
  |  Branch (3813:9): [True: 0, False: 220]
  ------------------
 3814|      0|        return 0;
 3815|       |
 3816|    220|    if (!ssl_srp_ctx_init_intern(sc))
  ------------------
  |  Branch (3816:9): [True: 0, False: 220]
  ------------------
 3817|      0|        return 0;
 3818|    220|#endif
 3819|       |
 3820|    220|    if (!s->method->ssl_clear(s))
  ------------------
  |  Branch (3820:9): [True: 0, False: 220]
  ------------------
 3821|      0|        return 0;
 3822|       |
 3823|    220|    return 1;
 3824|    220|}
ssl3_free:
 3827|    220|{
 3828|    220|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    220|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    220|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  |  |   33|    220|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    220|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 220, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    220|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    220|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3829|    220|    size_t i;
 3830|       |
 3831|    220|    if (sc == NULL)
  ------------------
  |  Branch (3831:9): [True: 0, False: 220]
  ------------------
 3832|      0|        return;
 3833|       |
 3834|    220|    ssl3_cleanup_key_block(sc);
 3835|       |
 3836|    220|    EVP_PKEY_free(sc->s3.peer_tmp);
 3837|    220|    sc->s3.peer_tmp = NULL;
 3838|       |
 3839|    658|    for (i = 0; i < sc->s3.tmp.num_ks_pkey; i++)
  ------------------
  |  Branch (3839:17): [True: 438, False: 220]
  ------------------
 3840|    438|        if (sc->s3.tmp.ks_pkey[i] != NULL) {
  ------------------
  |  Branch (3840:13): [True: 438, False: 0]
  ------------------
 3841|    438|            if (sc->s3.tmp.pkey == sc->s3.tmp.ks_pkey[i])
  ------------------
  |  Branch (3841:17): [True: 219, False: 219]
  ------------------
 3842|    219|                sc->s3.tmp.pkey = NULL;
 3843|       |
 3844|    438|            EVP_PKEY_free(sc->s3.tmp.ks_pkey[i]);
 3845|    438|            sc->s3.tmp.ks_pkey[i] = NULL;
 3846|    438|        }
 3847|    220|    sc->s3.tmp.num_ks_pkey = 0;
 3848|       |
 3849|    220|    if (sc->s3.tmp.pkey != NULL) {
  ------------------
  |  Branch (3849:9): [True: 0, False: 220]
  ------------------
 3850|      0|        EVP_PKEY_free(sc->s3.tmp.pkey);
 3851|      0|        sc->s3.tmp.pkey = NULL;
 3852|      0|    }
 3853|       |
 3854|    220|    ssl_evp_cipher_free(sc->s3.tmp.new_sym_enc);
 3855|    220|    ssl_evp_md_free(sc->s3.tmp.new_hash);
 3856|       |
 3857|    220|    OPENSSL_free(sc->s3.tmp.ctype);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3858|    220|    sk_X509_NAME_pop_free(sc->s3.tmp.peer_ca_names, X509_NAME_free);
  ------------------
  |  |   70|    220|#define sk_X509_NAME_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_sk_type(sk), ossl_check_X509_NAME_freefunc_type(freefunc))
  ------------------
 3859|    220|    OPENSSL_free(sc->s3.tmp.ciphers_raw);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3860|    220|    OPENSSL_clear_free(sc->s3.tmp.pms, sc->s3.tmp.pmslen);
  ------------------
  |  |  129|    220|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3861|    220|    OPENSSL_free(sc->s3.tmp.peer_sigalgs);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3862|    220|    OPENSSL_free(sc->s3.tmp.peer_cert_sigalgs);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3863|    220|    OPENSSL_free(sc->s3.tmp.valid_flags);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3864|    220|    ssl3_free_digest_list(sc);
 3865|    220|    OPENSSL_free(sc->s3.alpn_selected);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3866|    220|    OPENSSL_free(sc->s3.alpn_proposed);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3867|    220|    ossl_quic_tls_free(sc->qtls);
 3868|       |
 3869|    220|#ifndef OPENSSL_NO_PSK
 3870|    220|    OPENSSL_free(sc->s3.tmp.psk);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3871|    220|#endif
 3872|       |
 3873|    220|#ifndef OPENSSL_NO_SRP
 3874|    220|    ssl_srp_ctx_free_intern(sc);
 3875|    220|#endif
 3876|    220|    memset(&sc->s3, 0, sizeof(sc->s3));
 3877|    220|}
ssl3_clear:
 3880|    879|{
 3881|    879|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    879|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    879|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 879]
  |  |  |  |  ------------------
  |  |  |  |   33|    879|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    879|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 879, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    879|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    879|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3882|    879|    int flags;
 3883|    879|    size_t i;
 3884|       |
 3885|    879|    if (sc == NULL)
  ------------------
  |  Branch (3885:9): [True: 0, False: 879]
  ------------------
 3886|      0|        return 0;
 3887|       |
 3888|    879|    ssl3_cleanup_key_block(sc);
 3889|    879|    OPENSSL_free(sc->s3.tmp.ctype);
  ------------------
  |  |  131|    879|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3890|    879|    sk_X509_NAME_pop_free(sc->s3.tmp.peer_ca_names, X509_NAME_free);
  ------------------
  |  |   70|    879|#define sk_X509_NAME_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_sk_type(sk), ossl_check_X509_NAME_freefunc_type(freefunc))
  ------------------
 3891|    879|    OPENSSL_free(sc->s3.tmp.ciphers_raw);
  ------------------
  |  |  131|    879|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3892|    879|    OPENSSL_clear_free(sc->s3.tmp.pms, sc->s3.tmp.pmslen);
  ------------------
  |  |  129|    879|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3893|    879|    OPENSSL_free(sc->s3.tmp.peer_sigalgs);
  ------------------
  |  |  131|    879|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3894|    879|    OPENSSL_free(sc->s3.tmp.peer_cert_sigalgs);
  ------------------
  |  |  131|    879|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3895|    879|    OPENSSL_free(sc->s3.tmp.valid_flags);
  ------------------
  |  |  131|    879|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3896|       |
 3897|    879|    EVP_PKEY_free(sc->s3.peer_tmp);
 3898|       |
 3899|    879|    for (i = 0; i < sc->s3.tmp.num_ks_pkey; i++)
  ------------------
  |  Branch (3899:17): [True: 0, False: 879]
  ------------------
 3900|      0|        if (sc->s3.tmp.ks_pkey[i] != NULL) {
  ------------------
  |  Branch (3900:13): [True: 0, False: 0]
  ------------------
 3901|      0|            if (sc->s3.tmp.pkey == sc->s3.tmp.ks_pkey[i])
  ------------------
  |  Branch (3901:17): [True: 0, False: 0]
  ------------------
 3902|      0|                sc->s3.tmp.pkey = NULL;
 3903|       |
 3904|      0|            EVP_PKEY_free(sc->s3.tmp.ks_pkey[i]);
 3905|      0|            sc->s3.tmp.ks_pkey[i] = NULL;
 3906|      0|        }
 3907|    879|    sc->s3.tmp.num_ks_pkey = 0;
 3908|       |
 3909|    879|    if (sc->s3.tmp.pkey != NULL) {
  ------------------
  |  Branch (3909:9): [True: 0, False: 879]
  ------------------
 3910|      0|        EVP_PKEY_free(sc->s3.tmp.pkey);
 3911|      0|        sc->s3.tmp.pkey = NULL;
 3912|      0|    }
 3913|       |
 3914|    879|    ssl3_free_digest_list(sc);
 3915|       |
 3916|    879|    OPENSSL_free(sc->s3.alpn_selected);
  ------------------
  |  |  131|    879|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3917|    879|    OPENSSL_free(sc->s3.alpn_proposed);
  ------------------
  |  |  131|    879|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3918|       |
 3919|       |    /*
 3920|       |     * NULL/zero-out everything in the s3 struct, but remember if we are doing
 3921|       |     * QUIC.
 3922|       |     */
 3923|    879|    flags = sc->s3.flags & (TLS1_FLAGS_QUIC | TLS1_FLAGS_QUIC_INTERNAL);
  ------------------
  |  |   29|    879|#define TLS1_FLAGS_QUIC 0x2000
  ------------------
                  flags = sc->s3.flags & (TLS1_FLAGS_QUIC | TLS1_FLAGS_QUIC_INTERNAL);
  ------------------
  |  |   31|    879|#define TLS1_FLAGS_QUIC_INTERNAL 0x4000
  ------------------
 3924|    879|    memset(&sc->s3, 0, sizeof(sc->s3));
 3925|    879|    sc->s3.flags |= flags;
 3926|       |
 3927|    879|    if (!ssl_free_wbio_buffer(sc))
  ------------------
  |  Branch (3927:9): [True: 0, False: 879]
  ------------------
 3928|      0|        return 0;
 3929|       |
 3930|    879|    sc->version = SSL3_VERSION;
  ------------------
  |  |   23|    879|#define SSL3_VERSION 0x0300
  ------------------
 3931|       |
 3932|    879|#if !defined(OPENSSL_NO_NEXTPROTONEG)
 3933|    879|    OPENSSL_free(sc->ext.npn);
  ------------------
  |  |  131|    879|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3934|    879|    sc->ext.npn = NULL;
 3935|    879|    sc->ext.npn_len = 0;
 3936|    879|#endif
 3937|       |
 3938|    879|    return 1;
 3939|    879|}
ssl3_ctrl:
 3956|    157|{
 3957|    157|    int ret = 0;
 3958|    157|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    157|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    157|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 157]
  |  |  |  |  ------------------
  |  |  |  |   33|    157|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    157|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 157, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    157|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    157|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3959|    157|#ifndef OPENSSL_NO_OCSP
 3960|    157|    unsigned char *p = NULL;
 3961|    157|    OCSP_RESPONSE *resp = NULL;
 3962|    157|#endif
 3963|       |
 3964|    157|    if (sc == NULL)
  ------------------
  |  Branch (3964:9): [True: 0, False: 157]
  ------------------
 3965|      0|        return ret;
 3966|       |
 3967|    157|    switch (cmd) {
 3968|      0|    case SSL_CTRL_GET_CLIENT_CERT_REQUEST:
  ------------------
  |  | 1279|      0|#define SSL_CTRL_GET_CLIENT_CERT_REQUEST 9
  ------------------
  |  Branch (3968:5): [True: 0, False: 157]
  ------------------
 3969|      0|        break;
 3970|      0|    case SSL_CTRL_GET_NUM_RENEGOTIATIONS:
  ------------------
  |  | 1280|      0|#define SSL_CTRL_GET_NUM_RENEGOTIATIONS 10
  ------------------
  |  Branch (3970:5): [True: 0, False: 157]
  ------------------
 3971|      0|        ret = sc->s3.num_renegotiations;
 3972|      0|        break;
 3973|      0|    case SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS:
  ------------------
  |  | 1281|      0|#define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS 11
  ------------------
  |  Branch (3973:5): [True: 0, False: 157]
  ------------------
 3974|      0|        ret = sc->s3.num_renegotiations;
 3975|      0|        sc->s3.num_renegotiations = 0;
 3976|      0|        break;
 3977|      0|    case SSL_CTRL_GET_TOTAL_RENEGOTIATIONS:
  ------------------
  |  | 1282|      0|#define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS 12
  ------------------
  |  Branch (3977:5): [True: 0, False: 157]
  ------------------
 3978|      0|        ret = sc->s3.total_renegotiations;
 3979|      0|        break;
 3980|      0|    case SSL_CTRL_GET_FLAGS:
  ------------------
  |  | 1283|      0|#define SSL_CTRL_GET_FLAGS 13
  ------------------
  |  Branch (3980:5): [True: 0, False: 157]
  ------------------
 3981|      0|        ret = (int)(sc->s3.flags);
 3982|      0|        break;
 3983|      0|#if !defined(OPENSSL_NO_DEPRECATED_3_0)
 3984|      0|    case SSL_CTRL_SET_TMP_DH: {
  ------------------
  |  | 1274|      0|#define SSL_CTRL_SET_TMP_DH 3
  ------------------
  |  Branch (3984:5): [True: 0, False: 157]
  ------------------
 3985|      0|        EVP_PKEY *pkdh = NULL;
 3986|      0|        if (parg == NULL) {
  ------------------
  |  Branch (3986:13): [True: 0, False: 0]
  ------------------
 3987|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3988|      0|            return 0;
 3989|      0|        }
 3990|      0|        pkdh = ssl_dh_to_pkey(parg);
 3991|      0|        if (pkdh == NULL) {
  ------------------
  |  Branch (3991:13): [True: 0, False: 0]
  ------------------
 3992|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_DH_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3993|      0|            return 0;
 3994|      0|        }
 3995|      0|        if (!SSL_set0_tmp_dh_pkey(s, pkdh)) {
  ------------------
  |  Branch (3995:13): [True: 0, False: 0]
  ------------------
 3996|      0|            EVP_PKEY_free(pkdh);
 3997|      0|            return 0;
 3998|      0|        }
 3999|      0|        return 1;
 4000|      0|    } break;
 4001|      0|    case SSL_CTRL_SET_TMP_DH_CB: {
  ------------------
  |  | 1276|      0|#define SSL_CTRL_SET_TMP_DH_CB 6
  ------------------
  |  Branch (4001:5): [True: 0, False: 157]
  ------------------
 4002|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4003|      0|        return ret;
 4004|      0|    }
 4005|      0|#endif
 4006|      0|    case SSL_CTRL_SET_DH_AUTO:
  ------------------
  |  | 1373|      0|#define SSL_CTRL_SET_DH_AUTO 118
  ------------------
  |  Branch (4006:5): [True: 0, False: 157]
  ------------------
 4007|      0|        sc->cert->dh_tmp_auto = larg;
 4008|      0|        return 1;
 4009|      0|#if !defined(OPENSSL_NO_DEPRECATED_3_0)
 4010|      0|    case SSL_CTRL_SET_TMP_ECDH: {
  ------------------
  |  | 1275|      0|#define SSL_CTRL_SET_TMP_ECDH 4
  ------------------
  |  Branch (4010:5): [True: 0, False: 157]
  ------------------
 4011|      0|        if (parg == NULL) {
  ------------------
  |  Branch (4011:13): [True: 0, False: 0]
  ------------------
 4012|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4013|      0|            return 0;
 4014|      0|        }
 4015|      0|        return ssl_set_tmp_ecdh_groups(&sc->ext.supportedgroups,
 4016|      0|            &sc->ext.supportedgroups_len,
 4017|      0|            &sc->ext.keyshares,
 4018|      0|            &sc->ext.keyshares_len,
 4019|      0|            &sc->ext.tuples,
 4020|      0|            &sc->ext.tuples_len,
 4021|      0|            parg);
 4022|      0|    }
 4023|      0|#endif /* !OPENSSL_NO_DEPRECATED_3_0 */
 4024|    157|    case SSL_CTRL_SET_TLSEXT_HOSTNAME:
  ------------------
  |  | 1315|    157|#define SSL_CTRL_SET_TLSEXT_HOSTNAME 55
  ------------------
  |  Branch (4024:5): [True: 157, False: 0]
  ------------------
 4025|       |        /*
 4026|       |         * This API is only used for a client to set what SNI it will request
 4027|       |         * from the server, but we currently allow it to be used on servers
 4028|       |         * as well, which is a programming error.  Currently we just clear
 4029|       |         * the field in SSL_do_handshake() for server SSLs, but when we can
 4030|       |         * make ABI-breaking changes, we may want to make use of this API
 4031|       |         * an error on server SSLs.
 4032|       |         */
 4033|    157|        if (larg == TLSEXT_NAMETYPE_host_name) {
  ------------------
  |  |  171|    157|#define TLSEXT_NAMETYPE_host_name 0
  ------------------
  |  Branch (4033:13): [True: 157, False: 0]
  ------------------
 4034|    157|            size_t len;
 4035|       |
 4036|    157|            OPENSSL_free(sc->ext.hostname);
  ------------------
  |  |  131|    157|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4037|    157|            sc->ext.hostname = NULL;
 4038|       |
 4039|    157|            ret = 1;
 4040|    157|            if (parg == NULL)
  ------------------
  |  Branch (4040:17): [True: 0, False: 157]
  ------------------
 4041|      0|                break;
 4042|    157|            len = strlen((char *)parg);
 4043|    157|            if (len == 0 || len > TLSEXT_MAXLEN_host_name) {
  ------------------
  |  |  248|    157|#define TLSEXT_MAXLEN_host_name 255
  ------------------
  |  Branch (4043:17): [True: 0, False: 157]
  |  Branch (4043:29): [True: 1, False: 156]
  ------------------
 4044|      1|                ERR_raise(ERR_LIB_SSL, SSL_R_SSL3_EXT_INVALID_SERVERNAME);
  ------------------
  |  |  404|      1|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      1|    (ERR_new(),                                                  \
  |  |  |  |  407|      1|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      1|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      1|        ERR_set_error)
  |  |  ------------------
  ------------------
 4045|      1|                return 0;
 4046|      1|            }
 4047|    156|            if ((sc->ext.hostname = OPENSSL_strdup((char *)parg)) == NULL) {
  ------------------
  |  |  135|    156|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (4047:17): [True: 0, False: 156]
  ------------------
 4048|      0|                ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4049|      0|                return 0;
 4050|      0|            }
 4051|    156|        } else {
 4052|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4053|      0|            return 0;
 4054|      0|        }
 4055|    156|        break;
 4056|    156|    case SSL_CTRL_SET_TLSEXT_DEBUG_ARG:
  ------------------
  |  | 1317|      0|#define SSL_CTRL_SET_TLSEXT_DEBUG_ARG 57
  ------------------
  |  Branch (4056:5): [True: 0, False: 157]
  ------------------
 4057|      0|        sc->ext.debug_arg = parg;
 4058|      0|        ret = 1;
 4059|      0|        break;
 4060|       |
 4061|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE:
  ------------------
  |  | 1381|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE 127
  ------------------
  |  Branch (4061:5): [True: 0, False: 157]
  ------------------
 4062|      0|        ret = sc->ext.status_type;
 4063|      0|        break;
 4064|       |
 4065|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE:
  ------------------
  |  | 1325|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
  ------------------
  |  Branch (4065:5): [True: 0, False: 157]
  ------------------
 4066|      0|        sc->ext.status_type = larg;
 4067|      0|        ret = 1;
 4068|      0|        break;
 4069|       |
 4070|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS:
  ------------------
  |  | 1326|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS 66
  ------------------
  |  Branch (4070:5): [True: 0, False: 157]
  ------------------
 4071|      0|        *(STACK_OF(X509_EXTENSION) **)parg = sc->ext.ocsp.exts;
 4072|      0|        ret = 1;
 4073|      0|        break;
 4074|       |
 4075|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS:
  ------------------
  |  | 1327|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS 67
  ------------------
  |  Branch (4075:5): [True: 0, False: 157]
  ------------------
 4076|      0|        sc->ext.ocsp.exts = parg;
 4077|      0|        ret = 1;
 4078|      0|        break;
 4079|       |
 4080|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS:
  ------------------
  |  | 1328|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS 68
  ------------------
  |  Branch (4080:5): [True: 0, False: 157]
  ------------------
 4081|      0|        *(STACK_OF(OCSP_RESPID) **)parg = sc->ext.ocsp.ids;
 4082|      0|        ret = 1;
 4083|      0|        break;
 4084|       |
 4085|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS:
  ------------------
  |  | 1329|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS 69
  ------------------
  |  Branch (4085:5): [True: 0, False: 157]
  ------------------
 4086|      0|        sc->ext.ocsp.ids = parg;
 4087|      0|        ret = 1;
 4088|      0|        break;
 4089|       |
 4090|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP:
  ------------------
  |  | 1330|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP 70
  ------------------
  |  Branch (4090:5): [True: 0, False: 157]
  ------------------
 4091|      0|        *(unsigned char **)parg = NULL;
 4092|      0|        ret = -1;
 4093|       |
 4094|      0|#ifndef OPENSSL_NO_OCSP
 4095|      0|        resp = sk_OCSP_RESPONSE_value(sc->ext.ocsp.resp_ex, 0);
 4096|       |
 4097|      0|        if (resp != NULL) {
  ------------------
  |  Branch (4097:13): [True: 0, False: 0]
  ------------------
 4098|      0|            int resp_len = i2d_OCSP_RESPONSE(resp, &p);
 4099|       |
 4100|      0|            if (resp_len > 0) {
  ------------------
  |  Branch (4100:17): [True: 0, False: 0]
  ------------------
 4101|      0|                OPENSSL_free(sc->ext.ocsp.resp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4102|      0|                *(unsigned char **)parg = sc->ext.ocsp.resp = p;
 4103|      0|                sc->ext.ocsp.resp_len = (size_t)resp_len;
 4104|      0|                ret = resp_len;
 4105|      0|            }
 4106|      0|        }
 4107|      0|#endif
 4108|      0|        break;
 4109|       |
 4110|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP:
  ------------------
  |  | 1331|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP 71
  ------------------
  |  Branch (4110:5): [True: 0, False: 157]
  ------------------
 4111|      0|        ret = 1;
 4112|      0|#ifndef OPENSSL_NO_OCSP
 4113|       |        /*
 4114|       |         * In case of success keep the single value so we do not need to
 4115|       |         * free it immediately.
 4116|       |         * However in the handshake code we only use the extended values.
 4117|       |         */
 4118|      0|        OPENSSL_free(sc->ext.ocsp.resp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4119|      0|        sc->ext.ocsp.resp = NULL;
 4120|      0|        sc->ext.ocsp.resp_len = 0;
 4121|       |
 4122|      0|        sk_OCSP_RESPONSE_pop_free(sc->ext.ocsp.resp_ex, OCSP_RESPONSE_free);
 4123|      0|        sc->ext.ocsp.resp_ex = NULL;
 4124|       |
 4125|      0|        if (parg != NULL) {
  ------------------
  |  Branch (4125:13): [True: 0, False: 0]
  ------------------
 4126|      0|            sc->ext.ocsp.resp_ex = sk_OCSP_RESPONSE_new_reserve(NULL, 1);
 4127|      0|            if (sc->ext.ocsp.resp_ex == NULL)
  ------------------
  |  Branch (4127:17): [True: 0, False: 0]
  ------------------
 4128|      0|                return 0;
 4129|       |
 4130|      0|            p = parg;
 4131|      0|            resp = d2i_OCSP_RESPONSE(NULL, (const unsigned char **)&p, larg);
 4132|      0|            if (resp != NULL)
  ------------------
  |  Branch (4132:17): [True: 0, False: 0]
  ------------------
 4133|      0|                sk_OCSP_RESPONSE_push(sc->ext.ocsp.resp_ex, resp);
 4134|       |
 4135|      0|            sc->ext.ocsp.resp = parg;
 4136|      0|            sc->ext.ocsp.resp_len = larg;
 4137|      0|        }
 4138|      0|#endif
 4139|      0|        break;
 4140|       |
 4141|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP_EX:
  ------------------
  |  | 1396|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP_EX 142
  ------------------
  |  Branch (4141:5): [True: 0, False: 157]
  ------------------
 4142|      0|#ifndef OPENSSL_NO_OCSP
 4143|      0|        *(STACK_OF(OCSP_RESPONSE) **)parg = sc->ext.ocsp.resp_ex;
 4144|      0|        ret = sk_OCSP_RESPONSE_num(sc->ext.ocsp.resp_ex);
 4145|       |#else
 4146|       |        *(unsigned char **)parg = NULL;
 4147|       |        ret = -1;
 4148|       |#endif
 4149|      0|        break;
 4150|       |
 4151|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP_EX:
  ------------------
  |  | 1397|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP_EX 143
  ------------------
  |  Branch (4151:5): [True: 0, False: 157]
  ------------------
 4152|      0|#ifndef OPENSSL_NO_OCSP
 4153|       |        /*
 4154|       |         * cleanup single values, which might be set somewhere else
 4155|       |         * we only use the extended values
 4156|       |         */
 4157|      0|        if (sc->ext.ocsp.resp != NULL) {
  ------------------
  |  Branch (4157:13): [True: 0, False: 0]
  ------------------
 4158|      0|            OPENSSL_free(sc->ext.ocsp.resp);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4159|      0|            sc->ext.ocsp.resp = NULL;
 4160|      0|            sc->ext.ocsp.resp_len = 0;
 4161|      0|        }
 4162|       |
 4163|      0|        sk_OCSP_RESPONSE_pop_free(sc->ext.ocsp.resp_ex, OCSP_RESPONSE_free);
 4164|      0|        sc->ext.ocsp.resp_ex = (STACK_OF(OCSP_RESPONSE) *)parg;
 4165|      0|#endif
 4166|      0|        ret = 1;
 4167|      0|        break;
 4168|       |
 4169|      0|    case SSL_CTRL_CHAIN:
  ------------------
  |  | 1349|      0|#define SSL_CTRL_CHAIN 88
  ------------------
  |  Branch (4169:5): [True: 0, False: 157]
  ------------------
 4170|      0|        if (larg)
  ------------------
  |  Branch (4170:13): [True: 0, False: 0]
  ------------------
 4171|      0|            return ssl_cert_set1_chain(sc, NULL, (STACK_OF(X509) *)parg);
 4172|      0|        else
 4173|      0|            return ssl_cert_set0_chain(sc, NULL, (STACK_OF(X509) *)parg);
 4174|       |
 4175|      0|    case SSL_CTRL_CHAIN_CERT:
  ------------------
  |  | 1350|      0|#define SSL_CTRL_CHAIN_CERT 89
  ------------------
  |  Branch (4175:5): [True: 0, False: 157]
  ------------------
 4176|      0|        if (larg)
  ------------------
  |  Branch (4176:13): [True: 0, False: 0]
  ------------------
 4177|      0|            return ssl_cert_add1_chain_cert(sc, NULL, (X509 *)parg);
 4178|      0|        else
 4179|      0|            return ssl_cert_add0_chain_cert(sc, NULL, (X509 *)parg);
 4180|       |
 4181|      0|    case SSL_CTRL_GET_CHAIN_CERTS:
  ------------------
  |  | 1370|      0|#define SSL_CTRL_GET_CHAIN_CERTS 115
  ------------------
  |  Branch (4181:5): [True: 0, False: 157]
  ------------------
 4182|      0|        *(STACK_OF(X509) **)parg = sc->cert->key->chain;
 4183|      0|        ret = 1;
 4184|      0|        break;
 4185|       |
 4186|      0|    case SSL_CTRL_SELECT_CURRENT_CERT:
  ------------------
  |  | 1371|      0|#define SSL_CTRL_SELECT_CURRENT_CERT 116
  ------------------
  |  Branch (4186:5): [True: 0, False: 157]
  ------------------
 4187|      0|        return ssl_cert_select_current(sc->cert, (X509 *)parg);
 4188|       |
 4189|      0|    case SSL_CTRL_SET_CURRENT_CERT:
  ------------------
  |  | 1372|      0|#define SSL_CTRL_SET_CURRENT_CERT 117
  ------------------
  |  Branch (4189:5): [True: 0, False: 157]
  ------------------
 4190|      0|        if (larg == SSL_CERT_SET_SERVER) {
  ------------------
  |  | 1400|      0|#define SSL_CERT_SET_SERVER 3
  ------------------
  |  Branch (4190:13): [True: 0, False: 0]
  ------------------
 4191|      0|            const SSL_CIPHER *cipher;
 4192|      0|            if (!sc->server)
  ------------------
  |  Branch (4192:17): [True: 0, False: 0]
  ------------------
 4193|      0|                return 0;
 4194|      0|            cipher = sc->s3.tmp.new_cipher;
 4195|      0|            if (cipher == NULL)
  ------------------
  |  Branch (4195:17): [True: 0, False: 0]
  ------------------
 4196|      0|                return 0;
 4197|       |            /*
 4198|       |             * No certificate for unauthenticated ciphersuites or using SRP
 4199|       |             * authentication
 4200|       |             */
 4201|      0|            if (cipher->algorithm_auth & (SSL_aNULL | SSL_aSRP))
  ------------------
  |  |  112|      0|#define SSL_aNULL 0x00000004U
  ------------------
                          if (cipher->algorithm_auth & (SSL_aNULL | SSL_aSRP))
  ------------------
  |  |  120|      0|#define SSL_aSRP 0x00000040U
  ------------------
  |  Branch (4201:17): [True: 0, False: 0]
  ------------------
 4202|      0|                return 2;
 4203|      0|            if (sc->s3.tmp.cert == NULL)
  ------------------
  |  Branch (4203:17): [True: 0, False: 0]
  ------------------
 4204|      0|                return 0;
 4205|      0|            sc->cert->key = sc->s3.tmp.cert;
 4206|      0|            return 1;
 4207|      0|        }
 4208|      0|        return ssl_cert_set_current(sc->cert, larg);
 4209|       |
 4210|      0|    case SSL_CTRL_GET_GROUPS: {
  ------------------
  |  | 1351|      0|#define SSL_CTRL_GET_GROUPS 90
  ------------------
  |  Branch (4210:5): [True: 0, False: 157]
  ------------------
 4211|      0|        uint16_t *clist;
 4212|      0|        size_t clistlen;
 4213|       |
 4214|      0|        if (!sc->session)
  ------------------
  |  Branch (4214:13): [True: 0, False: 0]
  ------------------
 4215|      0|            return 0;
 4216|      0|        clist = sc->ext.peer_supportedgroups;
 4217|      0|        clistlen = sc->ext.peer_supportedgroups_len;
 4218|      0|        if (parg) {
  ------------------
  |  Branch (4218:13): [True: 0, False: 0]
  ------------------
 4219|      0|            size_t i;
 4220|      0|            int *cptr = parg;
 4221|       |
 4222|      0|            for (i = 0; i < clistlen; i++) {
  ------------------
  |  Branch (4222:25): [True: 0, False: 0]
  ------------------
 4223|      0|                const TLS_GROUP_INFO *cinf
 4224|      0|                    = tls1_group_id_lookup(s->ctx, clist[i]);
 4225|       |
 4226|      0|                if (cinf != NULL)
  ------------------
  |  Branch (4226:21): [True: 0, False: 0]
  ------------------
 4227|      0|                    cptr[i] = tls1_group_id2nid(cinf->group_id, 1);
 4228|      0|                else
 4229|      0|                    cptr[i] = TLSEXT_nid_unknown | clist[i];
  ------------------
  |  |  219|      0|#define TLSEXT_nid_unknown 0x1000000
  ------------------
 4230|      0|            }
 4231|      0|        }
 4232|      0|        return (int)clistlen;
 4233|      0|    }
 4234|       |
 4235|      0|    case SSL_CTRL_SET_GROUPS:
  ------------------
  |  | 1352|      0|#define SSL_CTRL_SET_GROUPS 91
  ------------------
  |  Branch (4235:5): [True: 0, False: 157]
  ------------------
 4236|      0|        return tls1_set_groups(&sc->ext.supportedgroups,
 4237|      0|            &sc->ext.supportedgroups_len,
 4238|      0|            &sc->ext.keyshares,
 4239|      0|            &sc->ext.keyshares_len,
 4240|      0|            &sc->ext.tuples,
 4241|      0|            &sc->ext.tuples_len,
 4242|      0|            parg, larg);
 4243|       |
 4244|      0|    case SSL_CTRL_SET_GROUPS_LIST:
  ------------------
  |  | 1353|      0|#define SSL_CTRL_SET_GROUPS_LIST 92
  ------------------
  |  Branch (4244:5): [True: 0, False: 157]
  ------------------
 4245|      0|        return tls1_set_groups_list(s->ctx,
 4246|      0|            &sc->ext.supportedgroups,
 4247|      0|            &sc->ext.supportedgroups_len,
 4248|      0|            &sc->ext.keyshares,
 4249|      0|            &sc->ext.keyshares_len,
 4250|      0|            &sc->ext.tuples,
 4251|      0|            &sc->ext.tuples_len,
 4252|      0|            parg);
 4253|       |
 4254|      0|    case SSL_CTRL_GET_SHARED_GROUP: {
  ------------------
  |  | 1354|      0|#define SSL_CTRL_GET_SHARED_GROUP 93
  ------------------
  |  Branch (4254:5): [True: 0, False: 157]
  ------------------
 4255|      0|        uint16_t id = tls1_shared_group(sc, larg);
 4256|       |
 4257|      0|        if (larg != -1)
  ------------------
  |  Branch (4257:13): [True: 0, False: 0]
  ------------------
 4258|      0|            return tls1_group_id2nid(id, 1);
 4259|      0|        return id;
 4260|      0|    }
 4261|      0|    case SSL_CTRL_GET_NEGOTIATED_GROUP: {
  ------------------
  |  | 1388|      0|#define SSL_CTRL_GET_NEGOTIATED_GROUP 134
  ------------------
  |  Branch (4261:5): [True: 0, False: 157]
  ------------------
 4262|      0|        unsigned int id;
 4263|       |
 4264|      0|        if (SSL_CONNECTION_IS_TLS13(sc) && sc->s3.did_kex)
  ------------------
  |  |  265|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  266|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  267|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (4264:44): [True: 0, False: 0]
  ------------------
 4265|      0|            id = sc->s3.group_id;
 4266|      0|        else
 4267|      0|            id = (sc->session != NULL) ? sc->session->kex_group : NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (4267:18): [True: 0, False: 0]
  ------------------
 4268|      0|        ret = tls1_group_id2nid(id, 1);
 4269|      0|        break;
 4270|      0|    }
 4271|      0|    case SSL_CTRL_SET_SIGALGS:
  ------------------
  |  | 1355|      0|#define SSL_CTRL_SET_SIGALGS 97
  ------------------
  |  Branch (4271:5): [True: 0, False: 157]
  ------------------
 4272|      0|        return tls1_set_sigalgs(sc->cert, parg, larg, 0);
 4273|       |
 4274|      0|    case SSL_CTRL_SET_SIGALGS_LIST:
  ------------------
  |  | 1356|      0|#define SSL_CTRL_SET_SIGALGS_LIST 98
  ------------------
  |  Branch (4274:5): [True: 0, False: 157]
  ------------------
 4275|      0|        return tls1_set_sigalgs_list(s->ctx, sc->cert, parg, 0);
 4276|       |
 4277|      0|    case SSL_CTRL_SET_CLIENT_SIGALGS:
  ------------------
  |  | 1359|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS 101
  ------------------
  |  Branch (4277:5): [True: 0, False: 157]
  ------------------
 4278|      0|        return tls1_set_sigalgs(sc->cert, parg, larg, 1);
 4279|       |
 4280|      0|    case SSL_CTRL_SET_CLIENT_SIGALGS_LIST:
  ------------------
  |  | 1360|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS_LIST 102
  ------------------
  |  Branch (4280:5): [True: 0, False: 157]
  ------------------
 4281|      0|        return tls1_set_sigalgs_list(s->ctx, sc->cert, parg, 1);
 4282|       |
 4283|      0|    case SSL_CTRL_GET_CLIENT_CERT_TYPES: {
  ------------------
  |  | 1361|      0|#define SSL_CTRL_GET_CLIENT_CERT_TYPES 103
  ------------------
  |  Branch (4283:5): [True: 0, False: 157]
  ------------------
 4284|      0|        const unsigned char **pctype = parg;
 4285|      0|        if (sc->server || !sc->s3.tmp.cert_req)
  ------------------
  |  Branch (4285:13): [True: 0, False: 0]
  |  Branch (4285:27): [True: 0, False: 0]
  ------------------
 4286|      0|            return 0;
 4287|      0|        if (pctype)
  ------------------
  |  Branch (4287:13): [True: 0, False: 0]
  ------------------
 4288|      0|            *pctype = sc->s3.tmp.ctype;
 4289|      0|        return (long)sc->s3.tmp.ctype_len;
 4290|      0|    }
 4291|       |
 4292|      0|    case SSL_CTRL_SET_CLIENT_CERT_TYPES:
  ------------------
  |  | 1362|      0|#define SSL_CTRL_SET_CLIENT_CERT_TYPES 104
  ------------------
  |  Branch (4292:5): [True: 0, False: 157]
  ------------------
 4293|      0|        if (!sc->server)
  ------------------
  |  Branch (4293:13): [True: 0, False: 0]
  ------------------
 4294|      0|            return 0;
 4295|      0|        return ssl3_set_req_cert_type(sc->cert, parg, larg);
 4296|       |
 4297|      0|    case SSL_CTRL_BUILD_CERT_CHAIN:
  ------------------
  |  | 1363|      0|#define SSL_CTRL_BUILD_CERT_CHAIN 105
  ------------------
  |  Branch (4297:5): [True: 0, False: 157]
  ------------------
 4298|      0|        return ssl_build_cert_chain(sc, NULL, larg);
 4299|       |
 4300|      0|    case SSL_CTRL_SET_VERIFY_CERT_STORE:
  ------------------
  |  | 1364|      0|#define SSL_CTRL_SET_VERIFY_CERT_STORE 106
  ------------------
  |  Branch (4300:5): [True: 0, False: 157]
  ------------------
 4301|      0|        return ssl_cert_set_cert_store(sc->cert, parg, 0, larg);
 4302|       |
 4303|      0|    case SSL_CTRL_SET_CHAIN_CERT_STORE:
  ------------------
  |  | 1365|      0|#define SSL_CTRL_SET_CHAIN_CERT_STORE 107
  ------------------
  |  Branch (4303:5): [True: 0, False: 157]
  ------------------
 4304|      0|        return ssl_cert_set_cert_store(sc->cert, parg, 1, larg);
 4305|       |
 4306|      0|    case SSL_CTRL_GET_VERIFY_CERT_STORE:
  ------------------
  |  | 1391|      0|#define SSL_CTRL_GET_VERIFY_CERT_STORE 137
  ------------------
  |  Branch (4306:5): [True: 0, False: 157]
  ------------------
 4307|      0|        return ssl_cert_get_cert_store(sc->cert, parg, 0);
 4308|       |
 4309|      0|    case SSL_CTRL_GET_CHAIN_CERT_STORE:
  ------------------
  |  | 1392|      0|#define SSL_CTRL_GET_CHAIN_CERT_STORE 138
  ------------------
  |  Branch (4309:5): [True: 0, False: 157]
  ------------------
 4310|      0|        return ssl_cert_get_cert_store(sc->cert, parg, 1);
 4311|       |
 4312|      0|    case SSL_CTRL_GET_PEER_SIGNATURE_NAME:
  ------------------
  |  | 1395|      0|#define SSL_CTRL_GET_PEER_SIGNATURE_NAME 141
  ------------------
  |  Branch (4312:5): [True: 0, False: 157]
  ------------------
 4313|      0|        if (parg == NULL || sc->s3.tmp.peer_sigalg == NULL)
  ------------------
  |  Branch (4313:13): [True: 0, False: 0]
  |  Branch (4313:29): [True: 0, False: 0]
  ------------------
 4314|      0|            return 0;
 4315|      0|        *(const char **)parg = sc->s3.tmp.peer_sigalg->name;
 4316|      0|        return 1;
 4317|       |
 4318|      0|    case SSL_CTRL_GET_PEER_SIGNATURE_NID:
  ------------------
  |  | 1366|      0|#define SSL_CTRL_GET_PEER_SIGNATURE_NID 108
  ------------------
  |  Branch (4318:5): [True: 0, False: 157]
  ------------------
 4319|      0|        if (sc->s3.tmp.peer_sigalg == NULL)
  ------------------
  |  Branch (4319:13): [True: 0, False: 0]
  ------------------
 4320|      0|            return 0;
 4321|      0|        *(int *)parg = sc->s3.tmp.peer_sigalg->hash;
 4322|      0|        return 1;
 4323|       |
 4324|      0|    case SSL_CTRL_GET_SIGNATURE_NAME:
  ------------------
  |  | 1394|      0|#define SSL_CTRL_GET_SIGNATURE_NAME 140
  ------------------
  |  Branch (4324:5): [True: 0, False: 157]
  ------------------
 4325|      0|        if (parg == NULL || sc->s3.tmp.sigalg == NULL)
  ------------------
  |  Branch (4325:13): [True: 0, False: 0]
  |  Branch (4325:29): [True: 0, False: 0]
  ------------------
 4326|      0|            return 0;
 4327|      0|        *(const char **)parg = sc->s3.tmp.sigalg->name;
 4328|      0|        return 1;
 4329|       |
 4330|      0|    case SSL_CTRL_GET_SIGNATURE_NID:
  ------------------
  |  | 1386|      0|#define SSL_CTRL_GET_SIGNATURE_NID 132
  ------------------
  |  Branch (4330:5): [True: 0, False: 157]
  ------------------
 4331|      0|        if (sc->s3.tmp.sigalg == NULL)
  ------------------
  |  Branch (4331:13): [True: 0, False: 0]
  ------------------
 4332|      0|            return 0;
 4333|      0|        *(int *)parg = sc->s3.tmp.sigalg->hash;
 4334|      0|        return 1;
 4335|       |
 4336|      0|    case SSL_CTRL_GET_PEER_TMP_KEY:
  ------------------
  |  | 1367|      0|#define SSL_CTRL_GET_PEER_TMP_KEY 109
  ------------------
  |  Branch (4336:5): [True: 0, False: 157]
  ------------------
 4337|      0|        if (sc->session == NULL || sc->s3.peer_tmp == NULL) {
  ------------------
  |  Branch (4337:13): [True: 0, False: 0]
  |  Branch (4337:36): [True: 0, False: 0]
  ------------------
 4338|      0|            return 0;
 4339|      0|        } else {
 4340|      0|            if (!EVP_PKEY_up_ref(sc->s3.peer_tmp))
  ------------------
  |  Branch (4340:17): [True: 0, False: 0]
  ------------------
 4341|      0|                return 0;
 4342|       |
 4343|      0|            *(EVP_PKEY **)parg = sc->s3.peer_tmp;
 4344|      0|            return 1;
 4345|      0|        }
 4346|       |
 4347|      0|    case SSL_CTRL_GET_TMP_KEY:
  ------------------
  |  | 1387|      0|#define SSL_CTRL_GET_TMP_KEY 133
  ------------------
  |  Branch (4347:5): [True: 0, False: 157]
  ------------------
 4348|      0|        if (sc->session == NULL || sc->s3.tmp.pkey == NULL) {
  ------------------
  |  Branch (4348:13): [True: 0, False: 0]
  |  Branch (4348:36): [True: 0, False: 0]
  ------------------
 4349|      0|            return 0;
 4350|      0|        } else {
 4351|      0|            if (!EVP_PKEY_up_ref(sc->s3.tmp.pkey))
  ------------------
  |  Branch (4351:17): [True: 0, False: 0]
  ------------------
 4352|      0|                return 0;
 4353|       |
 4354|      0|            *(EVP_PKEY **)parg = sc->s3.tmp.pkey;
 4355|      0|            return 1;
 4356|      0|        }
 4357|       |
 4358|      0|    case SSL_CTRL_GET_EC_POINT_FORMATS: {
  ------------------
  |  | 1369|      0|#define SSL_CTRL_GET_EC_POINT_FORMATS 111
  ------------------
  |  Branch (4358:5): [True: 0, False: 157]
  ------------------
 4359|      0|        const unsigned char **pformat = parg;
 4360|       |
 4361|      0|        if (sc->ext.peer_ecpointformats == NULL)
  ------------------
  |  Branch (4361:13): [True: 0, False: 0]
  ------------------
 4362|      0|            return 0;
 4363|      0|        *pformat = sc->ext.peer_ecpointformats;
 4364|      0|        return (int)sc->ext.peer_ecpointformats_len;
 4365|      0|    }
 4366|       |
 4367|      0|    case SSL_CTRL_GET_IANA_GROUPS: {
  ------------------
  |  | 1389|      0|#define SSL_CTRL_GET_IANA_GROUPS 135
  ------------------
  |  Branch (4367:5): [True: 0, False: 157]
  ------------------
 4368|      0|        if (parg != NULL) {
  ------------------
  |  Branch (4368:13): [True: 0, False: 0]
  ------------------
 4369|      0|            *(uint16_t **)parg = (uint16_t *)sc->ext.peer_supportedgroups;
 4370|      0|        }
 4371|      0|        return (int)sc->ext.peer_supportedgroups_len;
 4372|      0|    }
 4373|       |
 4374|      0|    case SSL_CTRL_SET_MSG_CALLBACK_ARG:
  ------------------
  |  | 1286|      0|#define SSL_CTRL_SET_MSG_CALLBACK_ARG 16
  ------------------
  |  Branch (4374:5): [True: 0, False: 157]
  ------------------
 4375|      0|        sc->msg_callback_arg = parg;
 4376|      0|        return 1;
 4377|       |
 4378|      0|    default:
  ------------------
  |  Branch (4378:5): [True: 0, False: 157]
  ------------------
 4379|      0|        break;
 4380|    157|    }
 4381|    156|    return ret;
 4382|    157|}
ssl3_ctx_ctrl:
 4420|    220|{
 4421|    220|    switch (cmd) {
 4422|      0|#if !defined(OPENSSL_NO_DEPRECATED_3_0)
 4423|      0|    case SSL_CTRL_SET_TMP_DH: {
  ------------------
  |  | 1274|      0|#define SSL_CTRL_SET_TMP_DH 3
  ------------------
  |  Branch (4423:5): [True: 0, False: 220]
  ------------------
 4424|      0|        EVP_PKEY *pkdh = NULL;
 4425|      0|        if (parg == NULL) {
  ------------------
  |  Branch (4425:13): [True: 0, False: 0]
  ------------------
 4426|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4427|      0|            return 0;
 4428|      0|        }
 4429|      0|        pkdh = ssl_dh_to_pkey(parg);
 4430|      0|        if (pkdh == NULL) {
  ------------------
  |  Branch (4430:13): [True: 0, False: 0]
  ------------------
 4431|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_DH_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4432|      0|            return 0;
 4433|      0|        }
 4434|      0|        if (!SSL_CTX_set0_tmp_dh_pkey(ctx, pkdh)) {
  ------------------
  |  Branch (4434:13): [True: 0, False: 0]
  ------------------
 4435|      0|            EVP_PKEY_free(pkdh);
 4436|      0|            return 0;
 4437|      0|        }
 4438|      0|        return 1;
 4439|      0|    }
 4440|      0|    case SSL_CTRL_SET_TMP_DH_CB: {
  ------------------
  |  | 1276|      0|#define SSL_CTRL_SET_TMP_DH_CB 6
  ------------------
  |  Branch (4440:5): [True: 0, False: 220]
  ------------------
 4441|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4442|      0|        return 0;
 4443|      0|    }
 4444|      0|#endif
 4445|      0|    case SSL_CTRL_SET_DH_AUTO:
  ------------------
  |  | 1373|      0|#define SSL_CTRL_SET_DH_AUTO 118
  ------------------
  |  Branch (4445:5): [True: 0, False: 220]
  ------------------
 4446|      0|        ctx->cert->dh_tmp_auto = larg;
 4447|      0|        return 1;
 4448|      0|#if !defined(OPENSSL_NO_DEPRECATED_3_0)
 4449|      0|    case SSL_CTRL_SET_TMP_ECDH: {
  ------------------
  |  | 1275|      0|#define SSL_CTRL_SET_TMP_ECDH 4
  ------------------
  |  Branch (4449:5): [True: 0, False: 220]
  ------------------
 4450|      0|        if (parg == NULL) {
  ------------------
  |  Branch (4450:13): [True: 0, False: 0]
  ------------------
 4451|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4452|      0|            return 0;
 4453|      0|        }
 4454|      0|        return ssl_set_tmp_ecdh_groups(&ctx->ext.supportedgroups,
 4455|      0|            &ctx->ext.supportedgroups_len,
 4456|      0|            &ctx->ext.keyshares,
 4457|      0|            &ctx->ext.keyshares_len,
 4458|      0|            &ctx->ext.tuples,
 4459|      0|            &ctx->ext.tuples_len,
 4460|      0|            parg);
 4461|      0|    }
 4462|      0|#endif /* !OPENSSL_NO_DEPRECATED_3_0 */
 4463|      0|    case SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG:
  ------------------
  |  | 1314|      0|#define SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG 54
  ------------------
  |  Branch (4463:5): [True: 0, False: 220]
  ------------------
 4464|      0|        ctx->ext.servername_arg = parg;
 4465|      0|        break;
 4466|      0|    case SSL_CTRL_SET_TLSEXT_TICKET_KEYS:
  ------------------
  |  | 1319|      0|#define SSL_CTRL_SET_TLSEXT_TICKET_KEYS 59
  ------------------
  |  Branch (4466:5): [True: 0, False: 220]
  ------------------
 4467|      0|    case SSL_CTRL_GET_TLSEXT_TICKET_KEYS: {
  ------------------
  |  | 1318|      0|#define SSL_CTRL_GET_TLSEXT_TICKET_KEYS 58
  ------------------
  |  Branch (4467:5): [True: 0, False: 220]
  ------------------
 4468|      0|        unsigned char *keys = parg;
 4469|      0|        long tick_keylen = (sizeof(ctx->ext.tick_key_name) + sizeof(ctx->ext.secure->tick_hmac_key) + sizeof(ctx->ext.secure->tick_aes_key));
 4470|      0|        if (keys == NULL)
  ------------------
  |  Branch (4470:13): [True: 0, False: 0]
  ------------------
 4471|      0|            return tick_keylen;
 4472|      0|        if (larg != tick_keylen) {
  ------------------
  |  Branch (4472:13): [True: 0, False: 0]
  ------------------
 4473|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_TICKET_KEYS_LENGTH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4474|      0|            return 0;
 4475|      0|        }
 4476|      0|        if (cmd == SSL_CTRL_SET_TLSEXT_TICKET_KEYS) {
  ------------------
  |  | 1319|      0|#define SSL_CTRL_SET_TLSEXT_TICKET_KEYS 59
  ------------------
  |  Branch (4476:13): [True: 0, False: 0]
  ------------------
 4477|      0|            memcpy(ctx->ext.tick_key_name, keys,
 4478|      0|                sizeof(ctx->ext.tick_key_name));
 4479|      0|            memcpy(ctx->ext.secure->tick_hmac_key,
 4480|      0|                keys + sizeof(ctx->ext.tick_key_name),
 4481|      0|                sizeof(ctx->ext.secure->tick_hmac_key));
 4482|      0|            memcpy(ctx->ext.secure->tick_aes_key,
 4483|      0|                keys + sizeof(ctx->ext.tick_key_name) + sizeof(ctx->ext.secure->tick_hmac_key),
 4484|      0|                sizeof(ctx->ext.secure->tick_aes_key));
 4485|      0|        } else {
 4486|      0|            memcpy(keys, ctx->ext.tick_key_name,
 4487|      0|                sizeof(ctx->ext.tick_key_name));
 4488|      0|            memcpy(keys + sizeof(ctx->ext.tick_key_name),
 4489|      0|                ctx->ext.secure->tick_hmac_key,
 4490|      0|                sizeof(ctx->ext.secure->tick_hmac_key));
 4491|      0|            memcpy(keys + sizeof(ctx->ext.tick_key_name) + sizeof(ctx->ext.secure->tick_hmac_key),
 4492|      0|                ctx->ext.secure->tick_aes_key,
 4493|      0|                sizeof(ctx->ext.secure->tick_aes_key));
 4494|      0|        }
 4495|      0|        return 1;
 4496|      0|    }
 4497|       |
 4498|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE:
  ------------------
  |  | 1381|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE 127
  ------------------
  |  Branch (4498:5): [True: 0, False: 220]
  ------------------
 4499|      0|        return ctx->ext.status_type;
 4500|       |
 4501|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE:
  ------------------
  |  | 1325|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
  ------------------
  |  Branch (4501:5): [True: 0, False: 220]
  ------------------
 4502|      0|        ctx->ext.status_type = larg;
 4503|      0|        break;
 4504|       |
 4505|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG:
  ------------------
  |  | 1324|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG 64
  ------------------
  |  Branch (4505:5): [True: 0, False: 220]
  ------------------
 4506|      0|        ctx->ext.status_arg = parg;
 4507|      0|        return 1;
 4508|       |
 4509|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG:
  ------------------
  |  | 1383|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG 129
  ------------------
  |  Branch (4509:5): [True: 0, False: 220]
  ------------------
 4510|      0|        *(void **)parg = ctx->ext.status_arg;
 4511|      0|        break;
 4512|       |
 4513|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB:
  ------------------
  |  | 1382|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB 128
  ------------------
  |  Branch (4513:5): [True: 0, False: 220]
  ------------------
 4514|      0|        *(int (**)(SSL *, void *))parg = ctx->ext.status_cb;
 4515|      0|        break;
 4516|       |
 4517|      0|#ifndef OPENSSL_NO_SRP
 4518|      0|    case SSL_CTRL_SET_TLS_EXT_SRP_USERNAME:
  ------------------
  |  | 1339|      0|#define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME 79
  ------------------
  |  Branch (4518:5): [True: 0, False: 220]
  ------------------
 4519|      0|        ctx->srp_ctx.srp_Mask |= SSL_kSRP;
  ------------------
  |  |   91|      0|#define SSL_kSRP 0x00000020U
  ------------------
 4520|      0|        OPENSSL_free(ctx->srp_ctx.login);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4521|      0|        ctx->srp_ctx.login = NULL;
 4522|      0|        if (parg == NULL)
  ------------------
  |  Branch (4522:13): [True: 0, False: 0]
  ------------------
 4523|      0|            break;
 4524|      0|        if (strlen((const char *)parg) > 255 || strlen((const char *)parg) < 1) {
  ------------------
  |  Branch (4524:13): [True: 0, False: 0]
  |  Branch (4524:49): [True: 0, False: 0]
  ------------------
 4525|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_SRP_USERNAME);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4526|      0|            return 0;
 4527|      0|        }
 4528|      0|        if ((ctx->srp_ctx.login = OPENSSL_strdup((char *)parg)) == NULL) {
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (4528:13): [True: 0, False: 0]
  ------------------
 4529|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4530|      0|            return 0;
 4531|      0|        }
 4532|      0|        break;
 4533|      0|    case SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD:
  ------------------
  |  | 1341|      0|#define SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD 81
  ------------------
  |  Branch (4533:5): [True: 0, False: 220]
  ------------------
 4534|      0|        ctx->srp_ctx.SRP_give_srp_client_pwd_callback = srp_password_from_info_cb;
 4535|      0|        if (ctx->srp_ctx.info != NULL)
  ------------------
  |  Branch (4535:13): [True: 0, False: 0]
  ------------------
 4536|      0|            OPENSSL_free(ctx->srp_ctx.info);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4537|      0|        if ((ctx->srp_ctx.info = OPENSSL_strdup((char *)parg)) == NULL) {
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (4537:13): [True: 0, False: 0]
  ------------------
 4538|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4539|      0|            return 0;
 4540|      0|        }
 4541|      0|        break;
 4542|      0|    case SSL_CTRL_SET_SRP_ARG:
  ------------------
  |  | 1338|      0|#define SSL_CTRL_SET_SRP_ARG 78
  ------------------
  |  Branch (4542:5): [True: 0, False: 220]
  ------------------
 4543|      0|        ctx->srp_ctx.srp_Mask |= SSL_kSRP;
  ------------------
  |  |   91|      0|#define SSL_kSRP 0x00000020U
  ------------------
 4544|      0|        ctx->srp_ctx.SRP_cb_arg = parg;
 4545|      0|        break;
 4546|       |
 4547|      0|    case SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH:
  ------------------
  |  | 1340|      0|#define SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH 80
  ------------------
  |  Branch (4547:5): [True: 0, False: 220]
  ------------------
 4548|      0|        ctx->srp_ctx.strength = larg;
 4549|      0|        break;
 4550|      0|#endif
 4551|       |
 4552|      0|    case SSL_CTRL_SET_GROUPS:
  ------------------
  |  | 1352|      0|#define SSL_CTRL_SET_GROUPS 91
  ------------------
  |  Branch (4552:5): [True: 0, False: 220]
  ------------------
 4553|      0|        return tls1_set_groups(&ctx->ext.supportedgroups,
 4554|      0|            &ctx->ext.supportedgroups_len,
 4555|      0|            &ctx->ext.keyshares,
 4556|      0|            &ctx->ext.keyshares_len,
 4557|      0|            &ctx->ext.tuples,
 4558|      0|            &ctx->ext.tuples_len,
 4559|      0|            parg, larg);
 4560|       |
 4561|    220|    case SSL_CTRL_SET_GROUPS_LIST:
  ------------------
  |  | 1353|    220|#define SSL_CTRL_SET_GROUPS_LIST 92
  ------------------
  |  Branch (4561:5): [True: 220, False: 0]
  ------------------
 4562|    220|        return tls1_set_groups_list(ctx,
 4563|    220|            &ctx->ext.supportedgroups,
 4564|    220|            &ctx->ext.supportedgroups_len,
 4565|    220|            &ctx->ext.keyshares,
 4566|    220|            &ctx->ext.keyshares_len,
 4567|    220|            &ctx->ext.tuples,
 4568|    220|            &ctx->ext.tuples_len,
 4569|    220|            parg);
 4570|       |
 4571|      0|    case SSL_CTRL_GET0_IMPLEMENTED_GROUPS:
  ------------------
  |  | 1393|      0|#define SSL_CTRL_GET0_IMPLEMENTED_GROUPS 139
  ------------------
  |  Branch (4571:5): [True: 0, False: 220]
  ------------------
 4572|      0|        return tls1_get0_implemented_groups(ctx->min_proto_version,
 4573|      0|            ctx->max_proto_version,
 4574|      0|            ctx->group_list,
 4575|      0|            ctx->group_list_len, larg, parg);
 4576|       |
 4577|      0|    case SSL_CTRL_SET_SIGALGS:
  ------------------
  |  | 1355|      0|#define SSL_CTRL_SET_SIGALGS 97
  ------------------
  |  Branch (4577:5): [True: 0, False: 220]
  ------------------
 4578|      0|        return tls1_set_sigalgs(ctx->cert, parg, larg, 0);
 4579|       |
 4580|      0|    case SSL_CTRL_SET_SIGALGS_LIST:
  ------------------
  |  | 1356|      0|#define SSL_CTRL_SET_SIGALGS_LIST 98
  ------------------
  |  Branch (4580:5): [True: 0, False: 220]
  ------------------
 4581|      0|        return tls1_set_sigalgs_list(ctx, ctx->cert, parg, 0);
 4582|       |
 4583|      0|    case SSL_CTRL_SET_CLIENT_SIGALGS:
  ------------------
  |  | 1359|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS 101
  ------------------
  |  Branch (4583:5): [True: 0, False: 220]
  ------------------
 4584|      0|        return tls1_set_sigalgs(ctx->cert, parg, larg, 1);
 4585|       |
 4586|      0|    case SSL_CTRL_SET_CLIENT_SIGALGS_LIST:
  ------------------
  |  | 1360|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS_LIST 102
  ------------------
  |  Branch (4586:5): [True: 0, False: 220]
  ------------------
 4587|      0|        return tls1_set_sigalgs_list(ctx, ctx->cert, parg, 1);
 4588|       |
 4589|      0|    case SSL_CTRL_SET_CLIENT_CERT_TYPES:
  ------------------
  |  | 1362|      0|#define SSL_CTRL_SET_CLIENT_CERT_TYPES 104
  ------------------
  |  Branch (4589:5): [True: 0, False: 220]
  ------------------
 4590|      0|        return ssl3_set_req_cert_type(ctx->cert, parg, larg);
 4591|       |
 4592|      0|    case SSL_CTRL_BUILD_CERT_CHAIN:
  ------------------
  |  | 1363|      0|#define SSL_CTRL_BUILD_CERT_CHAIN 105
  ------------------
  |  Branch (4592:5): [True: 0, False: 220]
  ------------------
 4593|      0|        return ssl_build_cert_chain(NULL, ctx, larg);
 4594|       |
 4595|      0|    case SSL_CTRL_SET_VERIFY_CERT_STORE:
  ------------------
  |  | 1364|      0|#define SSL_CTRL_SET_VERIFY_CERT_STORE 106
  ------------------
  |  Branch (4595:5): [True: 0, False: 220]
  ------------------
 4596|      0|        return ssl_cert_set_cert_store(ctx->cert, parg, 0, larg);
 4597|       |
 4598|      0|    case SSL_CTRL_SET_CHAIN_CERT_STORE:
  ------------------
  |  | 1365|      0|#define SSL_CTRL_SET_CHAIN_CERT_STORE 107
  ------------------
  |  Branch (4598:5): [True: 0, False: 220]
  ------------------
 4599|      0|        return ssl_cert_set_cert_store(ctx->cert, parg, 1, larg);
 4600|       |
 4601|      0|    case SSL_CTRL_GET_VERIFY_CERT_STORE:
  ------------------
  |  | 1391|      0|#define SSL_CTRL_GET_VERIFY_CERT_STORE 137
  ------------------
  |  Branch (4601:5): [True: 0, False: 220]
  ------------------
 4602|      0|        return ssl_cert_get_cert_store(ctx->cert, parg, 0);
 4603|       |
 4604|      0|    case SSL_CTRL_GET_CHAIN_CERT_STORE:
  ------------------
  |  | 1392|      0|#define SSL_CTRL_GET_CHAIN_CERT_STORE 138
  ------------------
  |  Branch (4604:5): [True: 0, False: 220]
  ------------------
 4605|      0|        return ssl_cert_get_cert_store(ctx->cert, parg, 1);
 4606|       |
 4607|       |        /* A Thawte special :-) */
 4608|      0|    case SSL_CTRL_EXTRA_CHAIN_CERT:
  ------------------
  |  | 1284|      0|#define SSL_CTRL_EXTRA_CHAIN_CERT 14
  ------------------
  |  Branch (4608:5): [True: 0, False: 220]
  ------------------
 4609|      0|        if (ctx->extra_certs == NULL) {
  ------------------
  |  Branch (4609:13): [True: 0, False: 0]
  ------------------
 4610|      0|            if ((ctx->extra_certs = sk_X509_new_null()) == NULL) {
  ------------------
  |  |   85|      0|#define sk_X509_new_null() ((STACK_OF(X509) *)OPENSSL_sk_new_null())
  ------------------
  |  Branch (4610:17): [True: 0, False: 0]
  ------------------
 4611|      0|                ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4612|      0|                return 0;
 4613|      0|            }
 4614|      0|        }
 4615|      0|        if (!sk_X509_push(ctx->extra_certs, (X509 *)parg)) {
  ------------------
  |  |   92|      0|#define sk_X509_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_sk_type(sk), ossl_check_X509_type(ptr))
  ------------------
  |  Branch (4615:13): [True: 0, False: 0]
  ------------------
 4616|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4617|      0|            return 0;
 4618|      0|        }
 4619|      0|        break;
 4620|       |
 4621|      0|    case SSL_CTRL_GET_EXTRA_CHAIN_CERTS:
  ------------------
  |  | 1347|      0|#define SSL_CTRL_GET_EXTRA_CHAIN_CERTS 82
  ------------------
  |  Branch (4621:5): [True: 0, False: 220]
  ------------------
 4622|      0|        if (ctx->extra_certs == NULL && larg == 0)
  ------------------
  |  Branch (4622:13): [True: 0, False: 0]
  |  Branch (4622:41): [True: 0, False: 0]
  ------------------
 4623|      0|            *(STACK_OF(X509) **)parg = ctx->cert->key->chain;
 4624|      0|        else
 4625|      0|            *(STACK_OF(X509) **)parg = ctx->extra_certs;
 4626|      0|        break;
 4627|       |
 4628|      0|    case SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS:
  ------------------
  |  | 1348|      0|#define SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS 83
  ------------------
  |  Branch (4628:5): [True: 0, False: 220]
  ------------------
 4629|      0|        OSSL_STACK_OF_X509_free(ctx->extra_certs);
 4630|      0|        ctx->extra_certs = NULL;
 4631|      0|        break;
 4632|       |
 4633|      0|    case SSL_CTRL_CHAIN:
  ------------------
  |  | 1349|      0|#define SSL_CTRL_CHAIN 88
  ------------------
  |  Branch (4633:5): [True: 0, False: 220]
  ------------------
 4634|      0|        if (larg)
  ------------------
  |  Branch (4634:13): [True: 0, False: 0]
  ------------------
 4635|      0|            return ssl_cert_set1_chain(NULL, ctx, (STACK_OF(X509) *)parg);
 4636|      0|        else
 4637|      0|            return ssl_cert_set0_chain(NULL, ctx, (STACK_OF(X509) *)parg);
 4638|       |
 4639|      0|    case SSL_CTRL_CHAIN_CERT:
  ------------------
  |  | 1350|      0|#define SSL_CTRL_CHAIN_CERT 89
  ------------------
  |  Branch (4639:5): [True: 0, False: 220]
  ------------------
 4640|      0|        if (larg)
  ------------------
  |  Branch (4640:13): [True: 0, False: 0]
  ------------------
 4641|      0|            return ssl_cert_add1_chain_cert(NULL, ctx, (X509 *)parg);
 4642|      0|        else
 4643|      0|            return ssl_cert_add0_chain_cert(NULL, ctx, (X509 *)parg);
 4644|       |
 4645|      0|    case SSL_CTRL_GET_CHAIN_CERTS:
  ------------------
  |  | 1370|      0|#define SSL_CTRL_GET_CHAIN_CERTS 115
  ------------------
  |  Branch (4645:5): [True: 0, False: 220]
  ------------------
 4646|      0|        *(STACK_OF(X509) **)parg = ctx->cert->key->chain;
 4647|      0|        break;
 4648|       |
 4649|      0|    case SSL_CTRL_SELECT_CURRENT_CERT:
  ------------------
  |  | 1371|      0|#define SSL_CTRL_SELECT_CURRENT_CERT 116
  ------------------
  |  Branch (4649:5): [True: 0, False: 220]
  ------------------
 4650|      0|        return ssl_cert_select_current(ctx->cert, (X509 *)parg);
 4651|       |
 4652|      0|    case SSL_CTRL_SET_CURRENT_CERT:
  ------------------
  |  | 1372|      0|#define SSL_CTRL_SET_CURRENT_CERT 117
  ------------------
  |  Branch (4652:5): [True: 0, False: 220]
  ------------------
 4653|      0|        return ssl_cert_set_current(ctx->cert, larg);
 4654|       |
 4655|      0|    default:
  ------------------
  |  Branch (4655:5): [True: 0, False: 220]
  ------------------
 4656|      0|        return 0;
 4657|    220|    }
 4658|      0|    return 1;
 4659|    220|}
ssl3_get_cipher_by_std_name:
 4731|    660|{
 4732|    660|    SSL_CIPHER *tbl;
 4733|    660|    SSL_CIPHER *alltabs[] = { tls13_ciphers, ssl3_ciphers, ssl3_scsvs };
 4734|    660|    size_t i, j, tblsize[] = { TLS13_NUM_CIPHERS, SSL3_NUM_CIPHERS, SSL3_NUM_SCSVS };
  ------------------
  |  |   27|    660|#define TLS13_NUM_CIPHERS OSSL_NELEM(tls13_ciphers)
  |  |  ------------------
  |  |  |  |   14|    660|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
                  size_t i, j, tblsize[] = { TLS13_NUM_CIPHERS, SSL3_NUM_CIPHERS, SSL3_NUM_SCSVS };
  ------------------
  |  |   28|    660|#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
  |  |  ------------------
  |  |  |  |   14|    660|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
                  size_t i, j, tblsize[] = { TLS13_NUM_CIPHERS, SSL3_NUM_CIPHERS, SSL3_NUM_SCSVS };
  ------------------
  |  |   29|    660|#define SSL3_NUM_SCSVS OSSL_NELEM(ssl3_scsvs)
  |  |  ------------------
  |  |  |  |   14|    660|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 4735|       |
 4736|       |    /* this is not efficient, necessary to optimize this? */
 4737|    660|    for (j = 0; j < OSSL_NELEM(alltabs); j++) {
  ------------------
  |  |   14|    660|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (4737:17): [True: 660, False: 0]
  ------------------
 4738|  1.32k|        for (i = 0, tbl = alltabs[j]; i < tblsize[j]; i++, tbl++) {
  ------------------
  |  Branch (4738:39): [True: 1.32k, False: 0]
  ------------------
 4739|  1.32k|            if (tbl->stdname == NULL)
  ------------------
  |  Branch (4739:17): [True: 0, False: 1.32k]
  ------------------
 4740|      0|                continue;
 4741|  1.32k|            if (strcmp(stdname, tbl->stdname) == 0) {
  ------------------
  |  Branch (4741:17): [True: 660, False: 660]
  ------------------
 4742|    660|                return tbl;
 4743|    660|            }
 4744|  1.32k|        }
 4745|    660|    }
 4746|      0|    return NULL;
 4747|    660|}
ssl3_put_cipher_by_char:
 4761|  6.57k|{
 4762|  6.57k|    if ((c->id & 0xff000000) != SSL3_CK_CIPHERSUITE_FLAG) {
  ------------------
  |  |  254|  6.57k|#define SSL3_CK_CIPHERSUITE_FLAG 0x03000000
  ------------------
  |  Branch (4762:9): [True: 0, False: 6.57k]
  ------------------
 4763|      0|        *len = 0;
 4764|      0|        return 1;
 4765|      0|    }
 4766|       |
 4767|  6.57k|    if (!WPACKET_put_bytes_u16(pkt, c->id & 0xffff))
  ------------------
  |  |  891|  6.57k|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (4767:9): [True: 0, False: 6.57k]
  ------------------
 4768|      0|        return 0;
 4769|       |
 4770|  6.57k|    *len = 2;
 4771|  6.57k|    return 1;
 4772|  6.57k|}
ssl3_renegotiate_check:
 5184|  4.13k|{
 5185|  4.13k|    int ret = 0;
 5186|  4.13k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL_ONLY(s);
  ------------------
  |  |   23|  4.13k|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|  4.13k|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  |  |   18|  4.13k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.13k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 4.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|  4.13k|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|  4.13k|                             : NULL))
  |  |  ------------------
  ------------------
 5187|       |
 5188|  4.13k|    if (sc == NULL)
  ------------------
  |  Branch (5188:9): [True: 0, False: 4.13k]
  ------------------
 5189|      0|        return 0;
 5190|       |
 5191|  4.13k|    if (sc->s3.renegotiate) {
  ------------------
  |  Branch (5191:9): [True: 0, False: 4.13k]
  ------------------
 5192|      0|        if (!RECORD_LAYER_read_pending(&sc->rlayer)
  ------------------
  |  Branch (5192:13): [True: 0, False: 0]
  ------------------
 5193|      0|            && !RECORD_LAYER_write_pending(&sc->rlayer)
  ------------------
  |  Branch (5193:16): [True: 0, False: 0]
  ------------------
 5194|      0|            && (initok || !SSL_in_init(s))) {
  ------------------
  |  Branch (5194:17): [True: 0, False: 0]
  |  Branch (5194:27): [True: 0, False: 0]
  ------------------
 5195|       |            /*
 5196|       |             * if we are the server, and we have sent a 'RENEGOTIATE'
 5197|       |             * message, we need to set the state machine into the renegotiate
 5198|       |             * state.
 5199|       |             */
 5200|      0|            ossl_statem_set_renegotiate(sc);
 5201|      0|            sc->s3.renegotiate = 0;
 5202|      0|            sc->s3.num_renegotiations++;
 5203|      0|            sc->s3.total_renegotiations++;
 5204|      0|            ret = 1;
 5205|      0|        }
 5206|      0|    }
 5207|  4.13k|    return ret;
 5208|  4.13k|}
ssl_fill_hello_random:
 5241|    219|{
 5242|    219|    int send_time = 0, ret;
 5243|       |
 5244|    219|    if (len < 4)
  ------------------
  |  Branch (5244:9): [True: 0, False: 219]
  ------------------
 5245|      0|        return 0;
 5246|    219|    if (server)
  ------------------
  |  Branch (5246:9): [True: 0, False: 219]
  ------------------
 5247|      0|        send_time = (s->mode & SSL_MODE_SEND_SERVERHELLO_TIME) != 0;
  ------------------
  |  |  522|      0|#define SSL_MODE_SEND_SERVERHELLO_TIME 0x00000040U
  ------------------
 5248|    219|    else
 5249|    219|        send_time = (s->mode & SSL_MODE_SEND_CLIENTHELLO_TIME) != 0;
  ------------------
  |  |  521|    219|#define SSL_MODE_SEND_CLIENTHELLO_TIME 0x00000020U
  ------------------
 5250|    219|    if (send_time) {
  ------------------
  |  Branch (5250:9): [True: 0, False: 219]
  ------------------
 5251|      0|        unsigned long Time = (unsigned long)time(NULL);
 5252|      0|        unsigned char *p = result;
 5253|       |
 5254|      0|        l2n(Time, p);
  ------------------
  |  |  153|      0|#define l2n(l, c) (*((c)++) = (unsigned char)(((l) >> 24) & 0xff), \
  |  |  154|      0|    *((c)++) = (unsigned char)(((l) >> 16) & 0xff),                \
  |  |  155|      0|    *((c)++) = (unsigned char)(((l) >> 8) & 0xff),                 \
  |  |  156|      0|    *((c)++) = (unsigned char)(((l)) & 0xff))
  ------------------
 5255|      0|        ret = RAND_bytes_ex(SSL_CONNECTION_GET_CTX(s)->libctx, p, len - 4, 0);
  ------------------
  |  |   26|      0|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 5256|    219|    } else {
 5257|    219|        ret = RAND_bytes_ex(SSL_CONNECTION_GET_CTX(s)->libctx, result, len, 0);
  ------------------
  |  |   26|    219|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 5258|    219|    }
 5259|       |
 5260|    219|    if (ret > 0) {
  ------------------
  |  Branch (5260:9): [True: 219, False: 0]
  ------------------
 5261|    219|        if (!ossl_assert(sizeof(tls11downgrade) < len)
  ------------------
  |  |   52|    438|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    438|    __FILE__, __LINE__)
  ------------------
  |  Branch (5261:13): [True: 0, False: 219]
  ------------------
 5262|    219|            || !ossl_assert(sizeof(tls12downgrade) < len))
  ------------------
  |  |   52|    219|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    219|    __FILE__, __LINE__)
  ------------------
  |  Branch (5262:16): [True: 0, False: 219]
  ------------------
 5263|      0|            return 0;
 5264|    219|        if (dgrd == DOWNGRADE_TO_1_2)
  ------------------
  |  Branch (5264:13): [True: 0, False: 219]
  ------------------
 5265|      0|            memcpy(result + len - sizeof(tls12downgrade), tls12downgrade,
 5266|      0|                sizeof(tls12downgrade));
 5267|    219|        else if (dgrd == DOWNGRADE_TO_1_1)
  ------------------
  |  Branch (5267:18): [True: 0, False: 219]
  ------------------
 5268|      0|            memcpy(result + len - sizeof(tls11downgrade), tls11downgrade,
 5269|      0|                sizeof(tls11downgrade));
 5270|    219|    }
 5271|       |
 5272|    219|    return ret;
 5273|    219|}
ssl_generate_pkey_group:
 5373|    438|{
 5374|    438|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    438|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 5375|    438|    const TLS_GROUP_INFO *ginf = tls1_group_id_lookup(sctx, id);
 5376|    438|    EVP_PKEY_CTX *pctx = NULL;
 5377|    438|    EVP_PKEY *pkey = NULL;
 5378|       |
 5379|    438|    if (ginf == NULL) {
  ------------------
  |  Branch (5379:9): [True: 0, False: 438]
  ------------------
 5380|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5381|      0|        goto err;
 5382|      0|    }
 5383|       |
 5384|    438|    pctx = EVP_PKEY_CTX_new_from_name(sctx->libctx, ginf->algorithm,
 5385|    438|        sctx->propq);
 5386|       |
 5387|    438|    if (pctx == NULL) {
  ------------------
  |  Branch (5387:9): [True: 0, False: 438]
  ------------------
 5388|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5389|      0|        goto err;
 5390|      0|    }
 5391|    438|    if (EVP_PKEY_keygen_init(pctx) <= 0) {
  ------------------
  |  Branch (5391:9): [True: 0, False: 438]
  ------------------
 5392|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5393|      0|        goto err;
 5394|      0|    }
 5395|    438|    if (EVP_PKEY_CTX_set_group_name(pctx, ginf->realname) <= 0) {
  ------------------
  |  Branch (5395:9): [True: 0, False: 438]
  ------------------
 5396|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5397|      0|        goto err;
 5398|      0|    }
 5399|    438|    if (EVP_PKEY_keygen(pctx, &pkey) <= 0) {
  ------------------
  |  Branch (5399:9): [True: 0, False: 438]
  ------------------
 5400|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5401|      0|        EVP_PKEY_free(pkey);
 5402|      0|        pkey = NULL;
 5403|      0|    }
 5404|       |
 5405|    438|err:
 5406|    438|    EVP_PKEY_CTX_free(pctx);
 5407|    438|    return pkey;
 5408|    438|}
s3_lib.c:cipher_compare:
 3720|  1.94k|{
 3721|  1.94k|    const SSL_CIPHER *ap = (const SSL_CIPHER *)a;
 3722|  1.94k|    const SSL_CIPHER *bp = (const SSL_CIPHER *)b;
 3723|       |
 3724|  1.94k|    if (ap->id == bp->id)
  ------------------
  |  Branch (3724:9): [True: 0, False: 1.94k]
  ------------------
 3725|      0|        return 0;
 3726|  1.94k|    return ap->id < bp->id ? -1 : 1;
  ------------------
  |  Branch (3726:12): [True: 1.25k, False: 694]
  ------------------
 3727|  1.94k|}

SSL_get_ex_data_X509_STORE_CTX_idx:
   56|    220|{
   57|       |
   58|    220|    if (!RUN_ONCE(&ssl_x509_store_ctx_once, ssl_x509_store_ctx_init))
  ------------------
  |  |  130|    220|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 220, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (58:9): [True: 0, False: 220]
  ------------------
   59|      0|        return -1;
   60|    220|    return ssl_x509_store_ctx_idx;
   61|    220|}
ssl_cert_new:
   64|    220|{
   65|    220|    CERT *ret = NULL;
   66|       |
   67|       |    /* Should never happen */
   68|    220|    if (!ossl_assert(ssl_pkey_num >= SSL_PKEY_NUM))
  ------------------
  |  |   52|    220|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    220|    __FILE__, __LINE__)
  ------------------
  |  Branch (68:9): [True: 0, False: 220]
  ------------------
   69|      0|        return NULL;
   70|       |
   71|    220|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|    220|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   72|    220|    if (ret == NULL)
  ------------------
  |  Branch (72:9): [True: 0, False: 220]
  ------------------
   73|      0|        return NULL;
   74|       |
   75|    220|    ret->ssl_pkey_num = ssl_pkey_num;
   76|    220|    ret->pkeys = OPENSSL_calloc(ret->ssl_pkey_num, sizeof(CERT_PKEY));
  ------------------
  |  |  112|    220|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   77|    220|    if (ret->pkeys == NULL) {
  ------------------
  |  Branch (77:9): [True: 0, False: 220]
  ------------------
   78|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   79|      0|        return NULL;
   80|      0|    }
   81|       |
   82|    220|    ret->key = &(ret->pkeys[SSL_PKEY_RSA]);
  ------------------
  |  |  319|    220|#define SSL_PKEY_RSA 0
  ------------------
   83|    220|    ret->sec_cb = ssl_security_default_callback;
   84|    220|    ret->sec_level = OPENSSL_TLS_SECURITY_LEVEL;
  ------------------
  |  |   31|    220|#define OPENSSL_TLS_SECURITY_LEVEL 2
  ------------------
   85|    220|    ret->sec_ex = NULL;
   86|    220|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (86:9): [True: 0, False: 220]
  ------------------
   87|      0|        OPENSSL_free(ret->pkeys);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   88|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   89|      0|        return NULL;
   90|      0|    }
   91|       |
   92|    220|    return ret;
   93|    220|}
ssl_cert_dup:
   96|    220|{
   97|    220|    CERT *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|    220|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   98|    220|    size_t i;
   99|       |#ifndef OPENSSL_NO_COMP_ALG
  100|       |    int j;
  101|       |#endif
  102|       |
  103|    220|    if (ret == NULL)
  ------------------
  |  Branch (103:9): [True: 0, False: 220]
  ------------------
  104|      0|        return NULL;
  105|       |
  106|    220|    ret->ssl_pkey_num = cert->ssl_pkey_num;
  107|    220|    ret->pkeys = OPENSSL_calloc(ret->ssl_pkey_num, sizeof(CERT_PKEY));
  ------------------
  |  |  112|    220|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  108|    220|    if (ret->pkeys == NULL) {
  ------------------
  |  Branch (108:9): [True: 0, False: 220]
  ------------------
  109|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  110|      0|        return NULL;
  111|      0|    }
  112|       |
  113|    220|    ret->key = &ret->pkeys[cert->key - cert->pkeys];
  114|    220|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (114:9): [True: 0, False: 220]
  ------------------
  115|      0|        OPENSSL_free(ret->pkeys);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  116|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  117|      0|        return NULL;
  118|      0|    }
  119|       |
  120|    220|    if (cert->dh_tmp != NULL) {
  ------------------
  |  Branch (120:9): [True: 0, False: 220]
  ------------------
  121|      0|        if (!EVP_PKEY_up_ref(cert->dh_tmp))
  ------------------
  |  Branch (121:13): [True: 0, False: 0]
  ------------------
  122|      0|            goto err;
  123|      0|        ret->dh_tmp = cert->dh_tmp;
  124|      0|    }
  125|       |
  126|    220|    ret->dh_tmp_cb = cert->dh_tmp_cb;
  127|    220|    ret->dh_tmp_auto = cert->dh_tmp_auto;
  128|       |
  129|  2.86k|    for (i = 0; i < ret->ssl_pkey_num; i++) {
  ------------------
  |  Branch (129:17): [True: 2.64k, False: 220]
  ------------------
  130|  2.64k|        CERT_PKEY *cpk = cert->pkeys + i;
  131|  2.64k|        CERT_PKEY *rpk = ret->pkeys + i;
  132|       |
  133|  2.64k|        if (cpk->x509 != NULL) {
  ------------------
  |  Branch (133:13): [True: 0, False: 2.64k]
  ------------------
  134|      0|            if (!X509_up_ref(cpk->x509))
  ------------------
  |  Branch (134:17): [True: 0, False: 0]
  ------------------
  135|      0|                goto err;
  136|      0|            rpk->x509 = cpk->x509;
  137|      0|        }
  138|       |
  139|  2.64k|        if (cpk->privatekey != NULL) {
  ------------------
  |  Branch (139:13): [True: 0, False: 2.64k]
  ------------------
  140|      0|            if (!EVP_PKEY_up_ref(cpk->privatekey))
  ------------------
  |  Branch (140:17): [True: 0, False: 0]
  ------------------
  141|      0|                goto err;
  142|      0|            rpk->privatekey = cpk->privatekey;
  143|      0|        }
  144|       |
  145|  2.64k|        if (cpk->chain) {
  ------------------
  |  Branch (145:13): [True: 0, False: 2.64k]
  ------------------
  146|      0|            rpk->chain = X509_chain_up_ref(cpk->chain);
  147|      0|            if (!rpk->chain) {
  ------------------
  |  Branch (147:17): [True: 0, False: 0]
  ------------------
  148|      0|                ERR_raise(ERR_LIB_SSL, ERR_R_X509_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  149|      0|                goto err;
  150|      0|            }
  151|      0|        }
  152|  2.64k|        if (cpk->serverinfo != NULL) {
  ------------------
  |  Branch (152:13): [True: 0, False: 2.64k]
  ------------------
  153|       |            /* Just copy everything. */
  154|      0|            rpk->serverinfo = OPENSSL_memdup(cpk->serverinfo, cpk->serverinfo_length);
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  155|      0|            if (rpk->serverinfo == NULL)
  ------------------
  |  Branch (155:17): [True: 0, False: 0]
  ------------------
  156|      0|                goto err;
  157|      0|            rpk->serverinfo_length = cpk->serverinfo_length;
  158|      0|        }
  159|       |#ifndef OPENSSL_NO_COMP_ALG
  160|       |        for (j = TLSEXT_comp_cert_none; j < TLSEXT_comp_cert_limit; j++) {
  161|       |            if (cpk->comp_cert[j] != NULL) {
  162|       |                if (!OSSL_COMP_CERT_up_ref(cpk->comp_cert[j]))
  163|       |                    goto err;
  164|       |                rpk->comp_cert[j] = cpk->comp_cert[j];
  165|       |            }
  166|       |        }
  167|       |#endif
  168|  2.64k|    }
  169|       |
  170|       |    /* Configured sigalgs copied across */
  171|    220|    if (cert->conf_sigalgs) {
  ------------------
  |  Branch (171:9): [True: 0, False: 220]
  ------------------
  172|      0|        ret->conf_sigalgs = OPENSSL_malloc_array(cert->conf_sigalgslen,
  ------------------
  |  |  110|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  173|      0|            sizeof(*cert->conf_sigalgs));
  174|      0|        if (ret->conf_sigalgs == NULL)
  ------------------
  |  Branch (174:13): [True: 0, False: 0]
  ------------------
  175|      0|            goto err;
  176|      0|        memcpy(ret->conf_sigalgs, cert->conf_sigalgs,
  177|      0|            cert->conf_sigalgslen * sizeof(*cert->conf_sigalgs));
  178|      0|        ret->conf_sigalgslen = cert->conf_sigalgslen;
  179|      0|    } else
  180|    220|        ret->conf_sigalgs = NULL;
  181|       |
  182|    220|    if (cert->client_sigalgs) {
  ------------------
  |  Branch (182:9): [True: 0, False: 220]
  ------------------
  183|      0|        ret->client_sigalgs = OPENSSL_malloc_array(cert->client_sigalgslen,
  ------------------
  |  |  110|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  184|      0|            sizeof(*cert->client_sigalgs));
  185|      0|        if (ret->client_sigalgs == NULL)
  ------------------
  |  Branch (185:13): [True: 0, False: 0]
  ------------------
  186|      0|            goto err;
  187|      0|        memcpy(ret->client_sigalgs, cert->client_sigalgs,
  188|      0|            cert->client_sigalgslen * sizeof(*cert->client_sigalgs));
  189|      0|        ret->client_sigalgslen = cert->client_sigalgslen;
  190|      0|    } else
  191|    220|        ret->client_sigalgs = NULL;
  192|       |    /* Copy any custom client certificate types */
  193|    220|    if (cert->ctype) {
  ------------------
  |  Branch (193:9): [True: 0, False: 220]
  ------------------
  194|      0|        ret->ctype = OPENSSL_memdup(cert->ctype, cert->ctype_len);
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  195|      0|        if (ret->ctype == NULL)
  ------------------
  |  Branch (195:13): [True: 0, False: 0]
  ------------------
  196|      0|            goto err;
  197|      0|        ret->ctype_len = cert->ctype_len;
  198|      0|    }
  199|       |
  200|    220|    ret->cert_flags = cert->cert_flags;
  201|       |
  202|    220|    ret->cert_cb = cert->cert_cb;
  203|    220|    ret->cert_cb_arg = cert->cert_cb_arg;
  204|       |
  205|    220|    if (cert->verify_store) {
  ------------------
  |  Branch (205:9): [True: 0, False: 220]
  ------------------
  206|      0|        if (!X509_STORE_up_ref(cert->verify_store))
  ------------------
  |  Branch (206:13): [True: 0, False: 0]
  ------------------
  207|      0|            goto err;
  208|      0|        ret->verify_store = cert->verify_store;
  209|      0|    }
  210|       |
  211|    220|    if (cert->chain_store) {
  ------------------
  |  Branch (211:9): [True: 0, False: 220]
  ------------------
  212|      0|        if (!X509_STORE_up_ref(cert->chain_store))
  ------------------
  |  Branch (212:13): [True: 0, False: 0]
  ------------------
  213|      0|            goto err;
  214|      0|        ret->chain_store = cert->chain_store;
  215|      0|    }
  216|       |
  217|    220|    ret->sec_cb = cert->sec_cb;
  218|    220|    ret->sec_level = cert->sec_level;
  219|    220|    ret->sec_ex = cert->sec_ex;
  220|       |
  221|    220|    if (!custom_exts_copy(&ret->custext, &cert->custext))
  ------------------
  |  Branch (221:9): [True: 0, False: 220]
  ------------------
  222|      0|        goto err;
  223|    220|#ifndef OPENSSL_NO_PSK
  224|    220|    if (cert->psk_identity_hint) {
  ------------------
  |  Branch (224:9): [True: 0, False: 220]
  ------------------
  225|      0|        ret->psk_identity_hint = OPENSSL_strdup(cert->psk_identity_hint);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  226|      0|        if (ret->psk_identity_hint == NULL)
  ------------------
  |  Branch (226:13): [True: 0, False: 0]
  ------------------
  227|      0|            goto err;
  228|      0|    }
  229|    220|#endif
  230|    220|    return ret;
  231|       |
  232|      0|err:
  233|      0|    ssl_cert_free(ret);
  234|       |
  235|       |    return NULL;
  236|    220|}
ssl_cert_clear_certs:
  241|    440|{
  242|    440|    size_t i;
  243|       |#ifndef OPENSSL_NO_COMP_ALG
  244|       |    int j;
  245|       |#endif
  246|       |
  247|    440|    if (c == NULL)
  ------------------
  |  Branch (247:9): [True: 0, False: 440]
  ------------------
  248|      0|        return;
  249|  5.72k|    for (i = 0; i < c->ssl_pkey_num; i++) {
  ------------------
  |  Branch (249:17): [True: 5.28k, False: 440]
  ------------------
  250|  5.28k|        CERT_PKEY *cpk = c->pkeys + i;
  251|  5.28k|        X509_free(cpk->x509);
  252|  5.28k|        cpk->x509 = NULL;
  253|  5.28k|        EVP_PKEY_free(cpk->privatekey);
  254|  5.28k|        cpk->privatekey = NULL;
  255|  5.28k|        OSSL_STACK_OF_X509_free(cpk->chain);
  256|  5.28k|        cpk->chain = NULL;
  257|  5.28k|        OPENSSL_free(cpk->serverinfo);
  ------------------
  |  |  131|  5.28k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  258|  5.28k|        cpk->serverinfo = NULL;
  259|  5.28k|        cpk->serverinfo_length = 0;
  260|       |#ifndef OPENSSL_NO_COMP_ALG
  261|       |        for (j = 0; j < TLSEXT_comp_cert_limit; j++) {
  262|       |            OSSL_COMP_CERT_free(cpk->comp_cert[j]);
  263|       |            cpk->comp_cert[j] = NULL;
  264|       |            cpk->cert_comp_used = 0;
  265|       |        }
  266|       |#endif
  267|  5.28k|    }
  268|    440|}
ssl_cert_free:
  271|    440|{
  272|    440|    int i;
  273|       |
  274|    440|    if (c == NULL)
  ------------------
  |  Branch (274:9): [True: 0, False: 440]
  ------------------
  275|      0|        return;
  276|    440|    CRYPTO_DOWN_REF(&c->references, &i);
  277|    440|    REF_PRINT_COUNT("CERT", i, c);
  ------------------
  |  |  301|    440|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    440|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|    440|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|    440|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  278|    440|    if (i > 0)
  ------------------
  |  Branch (278:9): [True: 0, False: 440]
  ------------------
  279|      0|        return;
  280|    440|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    440|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 440]
  |  |  ------------------
  ------------------
  281|       |
  282|    440|    EVP_PKEY_free(c->dh_tmp);
  283|       |
  284|    440|    ssl_cert_clear_certs(c);
  285|    440|    OPENSSL_free(c->conf_sigalgs);
  ------------------
  |  |  131|    440|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  286|    440|    OPENSSL_free(c->client_sigalgs);
  ------------------
  |  |  131|    440|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  287|    440|    OPENSSL_free(c->ctype);
  ------------------
  |  |  131|    440|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  288|    440|    X509_STORE_free(c->verify_store);
  289|    440|    X509_STORE_free(c->chain_store);
  290|    440|    custom_exts_free(&c->custext);
  291|    440|#ifndef OPENSSL_NO_PSK
  292|    440|    OPENSSL_free(c->psk_identity_hint);
  ------------------
  |  |  131|    440|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  293|    440|#endif
  294|    440|    OPENSSL_free(c->pkeys);
  ------------------
  |  |  131|    440|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  295|    440|    CRYPTO_FREE_REF(&c->references);
  296|    440|    OPENSSL_free(c);
  ------------------
  |  |  131|    440|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  297|    440|}
SSL_get0_CA_list:
  631|    219|{
  632|    219|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|    219|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|    219|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |   33|    219|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    219|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 219, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    219|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    219|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  633|       |
  634|    219|    if (sc == NULL)
  ------------------
  |  Branch (634:9): [True: 0, False: 219]
  ------------------
  635|      0|        return NULL;
  636|       |
  637|    219|    return sc->ca_names != NULL ? sc->ca_names : s->ctx->ca_names;
  ------------------
  |  Branch (637:12): [True: 0, False: 219]
  ------------------
  638|    219|}
ssl_get_security_level_bits:
 1219|  35.2k|{
 1220|  35.2k|    int level;
 1221|       |    /*
 1222|       |     * note that there's a corresponding minbits_table
 1223|       |     * in crypto/x509/x509_vfy.c that's used for checking the security level
 1224|       |     * of RSA and DSA keys
 1225|       |     */
 1226|  35.2k|    static const int minbits_table[5 + 1] = { 0, 80, 112, 128, 192, 256 };
 1227|       |
 1228|  35.2k|    if (ctx != NULL)
  ------------------
  |  Branch (1228:9): [True: 0, False: 35.2k]
  ------------------
 1229|      0|        level = SSL_CTX_get_security_level(ctx);
 1230|  35.2k|    else
 1231|  35.2k|        level = SSL_get_security_level(s);
 1232|       |
 1233|  35.2k|    if (level > 5)
  ------------------
  |  Branch (1233:9): [True: 0, False: 35.2k]
  ------------------
 1234|      0|        level = 5;
 1235|  35.2k|    else if (level < 0)
  ------------------
  |  Branch (1235:14): [True: 0, False: 35.2k]
  ------------------
 1236|      0|        level = 0;
 1237|       |
 1238|  35.2k|    if (levelp != NULL)
  ------------------
  |  Branch (1238:9): [True: 35.2k, False: 0]
  ------------------
 1239|  35.2k|        *levelp = level;
 1240|       |
 1241|  35.2k|    return minbits_table[level];
 1242|  35.2k|}
ssl_security:
 1315|  35.2k|{
 1316|  35.2k|    return s->cert->sec_cb(SSL_CONNECTION_GET_USER_SSL(s), NULL, op, bits, nid,
  ------------------
  |  |   28|  35.2k|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
 1317|  35.2k|        other, s->cert->sec_ex);
 1318|  35.2k|}
ssl_cert_lookup_by_idx:
 1376|  26.7k|{
 1377|  26.7k|    if (idx >= (OSSL_NELEM(ssl_cert_info) + ctx->sigalg_list_len))
  ------------------
  |  |   14|  26.7k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1377:9): [True: 0, False: 26.7k]
  ------------------
 1378|      0|        return NULL;
 1379|  26.7k|    else if (idx >= (OSSL_NELEM(ssl_cert_info)))
  ------------------
  |  |   14|  26.7k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1379:14): [True: 1.97k, False: 24.7k]
  ------------------
 1380|  1.97k|        return &(ctx->ssl_cert_info[idx - SSL_PKEY_NUM]);
  ------------------
  |  |  328|  1.97k|#define SSL_PKEY_NUM 9
  ------------------
 1381|  24.7k|    return &ssl_cert_info[idx];
 1382|  26.7k|}
ssl_cert.c:ssl_x509_store_ctx_init:
   48|      1|{
   49|      1|    ssl_x509_store_ctx_idx = X509_STORE_CTX_get_ex_new_index(0,
  ------------------
  |  |  774|      1|    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE_CTX, l, p, newf, dupf, freef)
  |  |  ------------------
  |  |  |  |  255|      1|#define CRYPTO_EX_INDEX_X509_STORE_CTX 5
  |  |  ------------------
  ------------------
   50|      1|        "SSL for verify callback",
   51|      1|        NULL, NULL, NULL);
   52|      1|    return ssl_x509_store_ctx_idx >= 0;
   53|      1|}
ssl_cert.c:ssl_security_default_callback:
 1247|  35.2k|{
 1248|  35.2k|    int level, minbits, pfs_mask;
 1249|  35.2k|    const SSL_CONNECTION *sc;
 1250|       |
 1251|  35.2k|    minbits = ssl_get_security_level_bits(s, ctx, &level);
 1252|       |
 1253|  35.2k|    if (level == 0) {
  ------------------
  |  Branch (1253:9): [True: 0, False: 35.2k]
  ------------------
 1254|       |        /*
 1255|       |         * No EDH keys weaker than 1024-bits even at level 0, otherwise,
 1256|       |         * anything goes.
 1257|       |         */
 1258|      0|        if (op == SSL_SECOP_TMP_DH && bits < 80)
  ------------------
  |  | 2764|      0|#define SSL_SECOP_TMP_DH (7 | SSL_SECOP_OTHER_PKEY)
  |  |  ------------------
  |  |  |  | 2741|      0|#define SSL_SECOP_OTHER_PKEY (4 << 16)
  |  |  ------------------
  ------------------
  |  Branch (1258:13): [True: 0, False: 0]
  |  Branch (1258:39): [True: 0, False: 0]
  ------------------
 1259|      0|            return 0;
 1260|      0|        return 1;
 1261|      0|    }
 1262|  35.2k|    switch (op) {
 1263|  19.7k|    case SSL_SECOP_CIPHER_SUPPORTED:
  ------------------
  |  | 2752|  19.7k|#define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2738|  19.7k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (1263:5): [True: 19.7k, False: 15.5k]
  ------------------
 1264|  19.7k|    case SSL_SECOP_CIPHER_SHARED:
  ------------------
  |  | 2754|  19.7k|#define SSL_SECOP_CIPHER_SHARED (2 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2738|  19.7k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (1264:5): [True: 0, False: 35.2k]
  ------------------
 1265|  19.7k|    case SSL_SECOP_CIPHER_CHECK: {
  ------------------
  |  | 2756|  19.7k|#define SSL_SECOP_CIPHER_CHECK (3 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2738|  19.7k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (1265:5): [True: 0, False: 35.2k]
  ------------------
 1266|  19.7k|        const SSL_CIPHER *c = other;
 1267|       |        /* No ciphers below security level */
 1268|  19.7k|        if (bits < minbits)
  ------------------
  |  Branch (1268:13): [True: 0, False: 19.7k]
  ------------------
 1269|      0|            return 0;
 1270|       |        /* No unauthenticated ciphersuites */
 1271|  19.7k|        if (c->algorithm_auth & SSL_aNULL)
  ------------------
  |  |  112|  19.7k|#define SSL_aNULL 0x00000004U
  ------------------
  |  Branch (1271:13): [True: 0, False: 19.7k]
  ------------------
 1272|      0|            return 0;
 1273|       |        /* No MD5 mac ciphersuites */
 1274|  19.7k|        if (c->algorithm_mac & SSL_MD5)
  ------------------
  |  |  168|  19.7k|#define SSL_MD5 0x00000001U
  ------------------
  |  Branch (1274:13): [True: 0, False: 19.7k]
  ------------------
 1275|      0|            return 0;
 1276|       |        /* SHA1 HMAC is 160 bits of security */
 1277|  19.7k|        if (minbits > 160 && c->algorithm_mac & SSL_SHA1)
  ------------------
  |  |  169|      0|#define SSL_SHA1 0x00000002U
  ------------------
  |  Branch (1277:13): [True: 0, False: 19.7k]
  |  Branch (1277:30): [True: 0, False: 0]
  ------------------
 1278|      0|            return 0;
 1279|       |        /* Level 3: forward secure ciphersuites only */
 1280|  19.7k|        pfs_mask = SSL_kDHE | SSL_kECDHE | SSL_kDHEPSK | SSL_kECDHEPSK;
  ------------------
  |  |   83|  19.7k|#define SSL_kDHE 0x00000002U
  ------------------
                      pfs_mask = SSL_kDHE | SSL_kECDHE | SSL_kDHEPSK | SSL_kECDHEPSK;
  ------------------
  |  |   85|  19.7k|#define SSL_kECDHE 0x00000004U
  ------------------
                      pfs_mask = SSL_kDHE | SSL_kECDHE | SSL_kDHEPSK | SSL_kECDHEPSK;
  ------------------
  |  |   95|  19.7k|#define SSL_kDHEPSK 0x00000100U
  ------------------
                      pfs_mask = SSL_kDHE | SSL_kECDHE | SSL_kDHEPSK | SSL_kECDHEPSK;
  ------------------
  |  |   94|  19.7k|#define SSL_kECDHEPSK 0x00000080U
  ------------------
 1281|  19.7k|        if (level >= 3 && c->min_tls != TLS1_3_VERSION && !(c->algorithm_mkey & pfs_mask))
  ------------------
  |  |   27|  19.7k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1281:13): [True: 0, False: 19.7k]
  |  Branch (1281:27): [True: 0, False: 0]
  |  Branch (1281:59): [True: 0, False: 0]
  ------------------
 1282|      0|            return 0;
 1283|  19.7k|        break;
 1284|  19.7k|    }
 1285|  19.7k|    case SSL_SECOP_VERSION:
  ------------------
  |  | 2766|  4.59k|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|  4.59k|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (1285:5): [True: 4.59k, False: 30.6k]
  ------------------
 1286|  4.59k|        if ((sc = SSL_CONNECTION_FROM_CONST_SSL(s)) == NULL)
  ------------------
  |  |   41|  4.59k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  4.59k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 4.59k]
  |  |  |  |  ------------------
  |  |  |  |   33|  4.59k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.59k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 4.59k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  4.59k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  4.59k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  |  Branch (1286:13): [True: 0, False: 4.59k]
  ------------------
 1287|      0|            return 0;
 1288|  4.59k|        if (!SSL_CONNECTION_IS_DTLS(sc)) {
  ------------------
  |  |  258|  4.59k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  4.59k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  4.59k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (1288:13): [True: 4.59k, False: 0]
  ------------------
 1289|       |            /* SSLv3, TLS v1.0 and TLS v1.1 only allowed at level 0 */
 1290|  4.59k|            if (nid <= TLS1_1_VERSION && level > 0)
  ------------------
  |  |   25|  9.19k|#define TLS1_1_VERSION 0x0302
  ------------------
  |  Branch (1290:17): [True: 438, False: 4.16k]
  |  Branch (1290:42): [True: 438, False: 0]
  ------------------
 1291|    438|                return 0;
 1292|  4.59k|        } else {
 1293|       |            /* DTLS v1.0 only allowed at level 0 */
 1294|      0|            if (DTLS_VERSION_LT(nid, DTLS1_2_VERSION) && level > 0)
  ------------------
  |  |   60|      0|#define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (60:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1294:58): [True: 0, False: 0]
  ------------------
 1295|      0|                return 0;
 1296|      0|        }
 1297|  4.16k|        break;
 1298|       |
 1299|  4.16k|    case SSL_SECOP_COMPRESSION:
  ------------------
  |  | 2778|      0|#define SSL_SECOP_COMPRESSION (15 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (1299:5): [True: 0, False: 35.2k]
  ------------------
 1300|      0|        if (level >= 2)
  ------------------
  |  Branch (1300:13): [True: 0, False: 0]
  ------------------
 1301|      0|            return 0;
 1302|      0|        break;
 1303|      0|    case SSL_SECOP_TICKET:
  ------------------
  |  | 2768|      0|#define SSL_SECOP_TICKET (10 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (1303:5): [True: 0, False: 35.2k]
  ------------------
 1304|      0|        if (level >= 3)
  ------------------
  |  Branch (1304:13): [True: 0, False: 0]
  ------------------
 1305|      0|            return 0;
 1306|      0|        break;
 1307|  10.9k|    default:
  ------------------
  |  Branch (1307:5): [True: 10.9k, False: 24.3k]
  ------------------
 1308|  10.9k|        if (bits < minbits)
  ------------------
  |  Branch (1308:13): [True: 657, False: 10.2k]
  ------------------
 1309|    657|            return 0;
 1310|  35.2k|    }
 1311|  34.1k|    return 1;
 1312|  35.2k|}

ssl_load_ciphers:
  327|    220|{
  328|    220|    size_t i;
  329|    220|    const ssl_cipher_table *t;
  330|    220|    EVP_KEYEXCH *kex = NULL;
  331|    220|    EVP_SIGNATURE *sig = NULL;
  332|       |
  333|    220|    ctx->disabled_enc_mask = 0;
  334|  5.50k|    for (i = 0, t = ssl_cipher_table_cipher; i < SSL_ENC_NUM_IDX; i++, t++) {
  ------------------
  |  |  354|  5.50k|#define SSL_ENC_NUM_IDX 24
  ------------------
  |  Branch (334:46): [True: 5.28k, False: 220]
  ------------------
  335|  5.28k|        if (t->nid != NID_undef) {
  ------------------
  |  |   18|  5.28k|#define NID_undef                       0
  ------------------
  |  Branch (335:13): [True: 5.06k, False: 220]
  ------------------
  336|  5.06k|            const EVP_CIPHER *cipher
  337|  5.06k|                = ssl_evp_cipher_fetch(ctx->libctx, t->nid, ctx->propq);
  338|       |
  339|  5.06k|            ctx->ssl_cipher_methods[i] = cipher;
  340|  5.06k|            if (cipher == NULL)
  ------------------
  |  Branch (340:17): [True: 1.98k, False: 3.08k]
  ------------------
  341|  1.98k|                ctx->disabled_enc_mask |= t->mask;
  342|  5.06k|        }
  343|  5.28k|    }
  344|    220|    ctx->disabled_mac_mask = 0;
  345|  3.30k|    for (i = 0, t = ssl_cipher_table_mac; i < SSL_MD_NUM_IDX; i++, t++) {
  ------------------
  |  |  203|  3.30k|#define SSL_MD_NUM_IDX SSL_MAX_DIGEST
  |  |  ------------------
  |  |  |  |  201|  3.30k|#define SSL_MAX_DIGEST 14
  |  |  ------------------
  ------------------
  |  Branch (345:43): [True: 3.08k, False: 220]
  ------------------
  346|  3.08k|        const EVP_MD *md
  347|  3.08k|            = ssl_evp_md_fetch(ctx->libctx, t->nid, ctx->propq);
  348|       |
  349|  3.08k|        ctx->ssl_digest_methods[i] = md;
  350|  3.08k|        if (md == NULL) {
  ------------------
  |  Branch (350:13): [True: 1.54k, False: 1.54k]
  ------------------
  351|  1.54k|            ctx->disabled_mac_mask |= t->mask;
  352|  1.54k|        } else {
  353|  1.54k|            int tmpsize = EVP_MD_get_size(md);
  354|       |
  355|  1.54k|            if (!ossl_assert(tmpsize > 0))
  ------------------
  |  |   52|  1.54k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  1.54k|    __FILE__, __LINE__)
  ------------------
  |  Branch (355:17): [True: 0, False: 1.54k]
  ------------------
  356|      0|                return 0;
  357|  1.54k|            ctx->ssl_mac_secret_size[i] = tmpsize;
  358|  1.54k|        }
  359|  3.08k|    }
  360|       |
  361|    220|    ctx->disabled_mkey_mask = 0;
  362|    220|    ctx->disabled_auth_mask = 0;
  363|       |
  364|       |    /*
  365|       |     * We ignore any errors from the fetches below. They are expected to fail
  366|       |     * if these algorithms are not available.
  367|       |     */
  368|    220|    ERR_set_mark();
  369|    220|    sig = EVP_SIGNATURE_fetch(ctx->libctx, "DSA", ctx->propq);
  370|    220|    if (sig == NULL)
  ------------------
  |  Branch (370:9): [True: 0, False: 220]
  ------------------
  371|      0|        ctx->disabled_auth_mask |= SSL_aDSS;
  ------------------
  |  |  110|      0|#define SSL_aDSS 0x00000002U
  ------------------
  372|    220|    else
  373|    220|        EVP_SIGNATURE_free(sig);
  374|    220|    kex = EVP_KEYEXCH_fetch(ctx->libctx, "DH", ctx->propq);
  375|    220|    if (kex == NULL)
  ------------------
  |  Branch (375:9): [True: 0, False: 220]
  ------------------
  376|      0|        ctx->disabled_mkey_mask |= SSL_kDHE | SSL_kDHEPSK;
  ------------------
  |  |   83|      0|#define SSL_kDHE 0x00000002U
  ------------------
                      ctx->disabled_mkey_mask |= SSL_kDHE | SSL_kDHEPSK;
  ------------------
  |  |   95|      0|#define SSL_kDHEPSK 0x00000100U
  ------------------
  377|    220|    else
  378|    220|        EVP_KEYEXCH_free(kex);
  379|    220|    kex = EVP_KEYEXCH_fetch(ctx->libctx, "ECDH", ctx->propq);
  380|    220|    if (kex == NULL)
  ------------------
  |  Branch (380:9): [True: 0, False: 220]
  ------------------
  381|      0|        ctx->disabled_mkey_mask |= SSL_kECDHE | SSL_kECDHEPSK;
  ------------------
  |  |   85|      0|#define SSL_kECDHE 0x00000004U
  ------------------
                      ctx->disabled_mkey_mask |= SSL_kECDHE | SSL_kECDHEPSK;
  ------------------
  |  |   94|      0|#define SSL_kECDHEPSK 0x00000080U
  ------------------
  382|    220|    else
  383|    220|        EVP_KEYEXCH_free(kex);
  384|    220|    sig = EVP_SIGNATURE_fetch(ctx->libctx, "ECDSA", ctx->propq);
  385|    220|    if (sig == NULL)
  ------------------
  |  Branch (385:9): [True: 0, False: 220]
  ------------------
  386|      0|        ctx->disabled_auth_mask |= SSL_aECDSA;
  ------------------
  |  |  114|      0|#define SSL_aECDSA 0x00000008U
  ------------------
  387|    220|    else
  388|    220|        EVP_SIGNATURE_free(sig);
  389|    220|    ERR_pop_to_mark();
  390|       |
  391|       |#ifdef OPENSSL_NO_PSK
  392|       |    ctx->disabled_mkey_mask |= SSL_PSK;
  393|       |    ctx->disabled_auth_mask |= SSL_aPSK;
  394|       |#endif
  395|       |#ifdef OPENSSL_NO_SRP
  396|       |    ctx->disabled_mkey_mask |= SSL_kSRP;
  397|       |#endif
  398|       |
  399|       |    /*
  400|       |     * Check for presence of GOST 34.10 algorithms, and if they are not
  401|       |     * present, disable appropriate auth and key exchange
  402|       |     */
  403|    220|    memcpy(ctx->ssl_mac_pkey_id, default_mac_pkey_id,
  404|    220|        sizeof(ctx->ssl_mac_pkey_id));
  405|       |
  406|    220|    ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC_IDX] = get_optional_pkey_id(SN_id_Gost28147_89_MAC);
  ------------------
  |  |  190|    220|#define SSL_MD_GOST89MAC_IDX 3
  ------------------
                  ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC_IDX] = get_optional_pkey_id(SN_id_Gost28147_89_MAC);
  ------------------
  |  | 4607|    220|#define SN_id_Gost28147_89_MAC          "gost-mac"
  ------------------
  407|    220|    if (ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC_IDX])
  ------------------
  |  |  190|    220|#define SSL_MD_GOST89MAC_IDX 3
  ------------------
  |  Branch (407:9): [True: 0, False: 220]
  ------------------
  408|      0|        ctx->ssl_mac_secret_size[SSL_MD_GOST89MAC_IDX] = 32;
  ------------------
  |  |  190|      0|#define SSL_MD_GOST89MAC_IDX 3
  ------------------
  409|    220|    else
  410|    220|        ctx->disabled_mac_mask |= SSL_GOST89MAC;
  ------------------
  |  |  171|    220|#define SSL_GOST89MAC 0x00000008U
  ------------------
  411|       |
  412|    220|    ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC12_IDX] = get_optional_pkey_id(SN_gost_mac_12);
  ------------------
  |  |  194|    220|#define SSL_MD_GOST89MAC12_IDX 7
  ------------------
                  ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC12_IDX] = get_optional_pkey_id(SN_gost_mac_12);
  ------------------
  |  | 4612|    220|#define SN_gost_mac_12          "gost-mac-12"
  ------------------
  413|    220|    if (ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC12_IDX])
  ------------------
  |  |  194|    220|#define SSL_MD_GOST89MAC12_IDX 7
  ------------------
  |  Branch (413:9): [True: 0, False: 220]
  ------------------
  414|      0|        ctx->ssl_mac_secret_size[SSL_MD_GOST89MAC12_IDX] = 32;
  ------------------
  |  |  194|      0|#define SSL_MD_GOST89MAC12_IDX 7
  ------------------
  415|    220|    else
  416|    220|        ctx->disabled_mac_mask |= SSL_GOST89MAC12;
  ------------------
  |  |  177|    220|#define SSL_GOST89MAC12 0x00000100U
  ------------------
  417|       |
  418|    220|    ctx->ssl_mac_pkey_id[SSL_MD_MAGMAOMAC_IDX] = get_optional_pkey_id(SN_magma_mac);
  ------------------
  |  |  199|    220|#define SSL_MD_MAGMAOMAC_IDX 12
  ------------------
                  ctx->ssl_mac_pkey_id[SSL_MD_MAGMAOMAC_IDX] = get_optional_pkey_id(SN_magma_mac);
  ------------------
  |  | 5071|    220|#define SN_magma_mac            "magma-mac"
  ------------------
  419|    220|    if (ctx->ssl_mac_pkey_id[SSL_MD_MAGMAOMAC_IDX])
  ------------------
  |  |  199|    220|#define SSL_MD_MAGMAOMAC_IDX 12
  ------------------
  |  Branch (419:9): [True: 0, False: 220]
  ------------------
  420|      0|        ctx->ssl_mac_secret_size[SSL_MD_MAGMAOMAC_IDX] = 32;
  ------------------
  |  |  199|      0|#define SSL_MD_MAGMAOMAC_IDX 12
  ------------------
  421|    220|    else
  422|    220|        ctx->disabled_mac_mask |= SSL_MAGMAOMAC;
  ------------------
  |  |  179|    220|#define SSL_MAGMAOMAC 0x00000400U
  ------------------
  423|       |
  424|    220|    ctx->ssl_mac_pkey_id[SSL_MD_KUZNYECHIKOMAC_IDX] = get_optional_pkey_id(SN_kuznyechik_mac);
  ------------------
  |  |  200|    220|#define SSL_MD_KUZNYECHIKOMAC_IDX 13
  ------------------
                  ctx->ssl_mac_pkey_id[SSL_MD_KUZNYECHIKOMAC_IDX] = get_optional_pkey_id(SN_kuznyechik_mac);
  ------------------
  |  | 5053|    220|#define SN_kuznyechik_mac               "kuznyechik-mac"
  ------------------
  425|    220|    if (ctx->ssl_mac_pkey_id[SSL_MD_KUZNYECHIKOMAC_IDX])
  ------------------
  |  |  200|    220|#define SSL_MD_KUZNYECHIKOMAC_IDX 13
  ------------------
  |  Branch (425:9): [True: 0, False: 220]
  ------------------
  426|      0|        ctx->ssl_mac_secret_size[SSL_MD_KUZNYECHIKOMAC_IDX] = 32;
  ------------------
  |  |  200|      0|#define SSL_MD_KUZNYECHIKOMAC_IDX 13
  ------------------
  427|    220|    else
  428|    220|        ctx->disabled_mac_mask |= SSL_KUZNYECHIKOMAC;
  ------------------
  |  |  180|    220|#define SSL_KUZNYECHIKOMAC 0x00000800U
  ------------------
  429|       |
  430|    220|    if (!get_optional_pkey_id(SN_id_GostR3410_2001))
  ------------------
  |  | 4577|    220|#define SN_id_GostR3410_2001            "gost2001"
  ------------------
  |  Branch (430:9): [True: 220, False: 0]
  ------------------
  431|    220|        ctx->disabled_auth_mask |= SSL_aGOST01 | SSL_aGOST12;
  ------------------
  |  |  118|    220|#define SSL_aGOST01 0x00000020U
  ------------------
                      ctx->disabled_auth_mask |= SSL_aGOST01 | SSL_aGOST12;
  ------------------
  |  |  122|    220|#define SSL_aGOST12 0x00000080U
  ------------------
  432|    220|    if (!get_optional_pkey_id(SN_id_GostR3410_2012_256))
  ------------------
  |  | 4788|    220|#define SN_id_GostR3410_2012_256                "gost2012_256"
  ------------------
  |  Branch (432:9): [True: 220, False: 0]
  ------------------
  433|    220|        ctx->disabled_auth_mask |= SSL_aGOST12;
  ------------------
  |  |  122|    220|#define SSL_aGOST12 0x00000080U
  ------------------
  434|    220|    if (!get_optional_pkey_id(SN_id_GostR3410_2012_512))
  ------------------
  |  | 4793|    220|#define SN_id_GostR3410_2012_512                "gost2012_512"
  ------------------
  |  Branch (434:9): [True: 220, False: 0]
  ------------------
  435|    220|        ctx->disabled_auth_mask |= SSL_aGOST12;
  ------------------
  |  |  122|    220|#define SSL_aGOST12 0x00000080U
  ------------------
  436|       |    /*
  437|       |     * Disable GOST key exchange if no GOST signature algs are available *
  438|       |     */
  439|    220|    if ((ctx->disabled_auth_mask & (SSL_aGOST01 | SSL_aGOST12)) == (SSL_aGOST01 | SSL_aGOST12))
  ------------------
  |  |  118|    220|#define SSL_aGOST01 0x00000020U
  ------------------
                  if ((ctx->disabled_auth_mask & (SSL_aGOST01 | SSL_aGOST12)) == (SSL_aGOST01 | SSL_aGOST12))
  ------------------
  |  |  122|    220|#define SSL_aGOST12 0x00000080U
  ------------------
                  if ((ctx->disabled_auth_mask & (SSL_aGOST01 | SSL_aGOST12)) == (SSL_aGOST01 | SSL_aGOST12))
  ------------------
  |  |  118|    220|#define SSL_aGOST01 0x00000020U
  ------------------
                  if ((ctx->disabled_auth_mask & (SSL_aGOST01 | SSL_aGOST12)) == (SSL_aGOST01 | SSL_aGOST12))
  ------------------
  |  |  122|    220|#define SSL_aGOST12 0x00000080U
  ------------------
  |  Branch (439:9): [True: 220, False: 0]
  ------------------
  440|    220|        ctx->disabled_mkey_mask |= SSL_kGOST;
  ------------------
  |  |   89|    220|#define SSL_kGOST 0x00000010U
  ------------------
  441|       |
  442|    220|    if ((ctx->disabled_auth_mask & SSL_aGOST12) == SSL_aGOST12)
  ------------------
  |  |  122|    220|#define SSL_aGOST12 0x00000080U
  ------------------
                  if ((ctx->disabled_auth_mask & SSL_aGOST12) == SSL_aGOST12)
  ------------------
  |  |  122|    220|#define SSL_aGOST12 0x00000080U
  ------------------
  |  Branch (442:9): [True: 220, False: 0]
  ------------------
  443|    220|        ctx->disabled_mkey_mask |= SSL_kGOST18;
  ------------------
  |  |   97|    220|#define SSL_kGOST18 0x00000200U
  ------------------
  444|       |
  445|    220|    return 1;
  446|    220|}
ssl_md:
  595|  7.22k|{
  596|  7.22k|    idx &= SSL_HANDSHAKE_MAC_MASK;
  ------------------
  |  |  208|  7.22k|#define SSL_HANDSHAKE_MAC_MASK 0xFF
  ------------------
  597|  7.22k|    if (idx < 0 || idx >= SSL_MD_NUM_IDX)
  ------------------
  |  |  203|  7.22k|#define SSL_MD_NUM_IDX SSL_MAX_DIGEST
  |  |  ------------------
  |  |  |  |  201|  7.22k|#define SSL_MAX_DIGEST 14
  |  |  ------------------
  ------------------
  |  Branch (597:9): [True: 0, False: 7.22k]
  |  Branch (597:20): [True: 0, False: 7.22k]
  ------------------
  598|      0|        return NULL;
  599|  7.22k|    return ctx->ssl_digest_methods[idx];
  600|  7.22k|}
SSL_CTX_set_ciphersuites:
 1386|    220|{
 1387|    220|    int ret = set_ciphersuites(&(ctx->tls13_ciphersuites), str);
 1388|       |
 1389|    220|    if (ret && ctx->cipher_list != NULL)
  ------------------
  |  Branch (1389:9): [True: 220, False: 0]
  |  Branch (1389:16): [True: 0, False: 220]
  ------------------
 1390|      0|        return update_cipher_list(ctx, &ctx->cipher_list, &ctx->cipher_list_by_id,
 1391|      0|            ctx->tls13_ciphersuites);
 1392|       |
 1393|    220|    return ret;
 1394|    220|}
ssl_create_cipher_list:
 1425|    220|{
 1426|    220|    int ok, num_of_ciphers, num_of_alias_max, num_of_group_aliases, i;
 1427|    220|    uint32_t disabled_mkey, disabled_auth, disabled_enc, disabled_mac;
 1428|    220|    STACK_OF(SSL_CIPHER) *cipherstack;
  ------------------
  |  |   33|    220|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1429|    220|    const char *rule_p;
 1430|    220|    CIPHER_ORDER *co_list = NULL, *head = NULL, *tail = NULL, *curr;
 1431|    220|    const SSL_CIPHER **ca_list = NULL;
 1432|    220|    const SSL_METHOD *ssl_method = ctx->method;
 1433|       |
 1434|       |    /*
 1435|       |     * Return with error if nothing to do.
 1436|       |     */
 1437|    220|    if (rule_str == NULL || cipher_list == NULL || cipher_list_by_id == NULL)
  ------------------
  |  Branch (1437:9): [True: 0, False: 220]
  |  Branch (1437:29): [True: 0, False: 220]
  |  Branch (1437:52): [True: 0, False: 220]
  ------------------
 1438|      0|        return NULL;
 1439|       |
 1440|    220|    if (!check_suiteb_cipher_list(ssl_method, c, &rule_str))
  ------------------
  |  Branch (1440:9): [True: 0, False: 220]
  ------------------
 1441|      0|        return NULL;
 1442|       |
 1443|       |    /*
 1444|       |     * To reduce the work to do we only want to process the compiled
 1445|       |     * in algorithms, so we first get the mask of disabled ciphers.
 1446|       |     */
 1447|       |
 1448|    220|    disabled_mkey = ctx->disabled_mkey_mask;
 1449|    220|    disabled_auth = ctx->disabled_auth_mask;
 1450|    220|    disabled_enc = ctx->disabled_enc_mask;
 1451|    220|    disabled_mac = ctx->disabled_mac_mask;
 1452|       |
 1453|       |    /*
 1454|       |     * Now we have to collect the available ciphers from the compiled
 1455|       |     * in ciphers. We cannot get more than the number compiled in, so
 1456|       |     * it is used for allocation.
 1457|       |     */
 1458|    220|    num_of_ciphers = ssl_method->num_ciphers();
 1459|       |
 1460|    220|    if (num_of_ciphers > 0) {
  ------------------
  |  Branch (1460:9): [True: 220, False: 0]
  ------------------
 1461|    220|        co_list = OPENSSL_malloc_array(num_of_ciphers, sizeof(*co_list));
  ------------------
  |  |  110|    220|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1462|    220|        if (co_list == NULL)
  ------------------
  |  Branch (1462:13): [True: 0, False: 220]
  ------------------
 1463|      0|            return NULL; /* Failure */
 1464|    220|    }
 1465|       |
 1466|    220|    ssl_cipher_collect_ciphers(ssl_method, num_of_ciphers,
 1467|    220|        disabled_mkey, disabled_auth, disabled_enc,
 1468|    220|        disabled_mac, co_list, &head, &tail);
 1469|       |
 1470|       |    /* Now arrange all ciphers by preference. */
 1471|       |
 1472|       |    /*
 1473|       |     * Everything else being equal, prefer ephemeral ECDH over other key
 1474|       |     * exchange mechanisms.
 1475|       |     * For consistency, prefer ECDSA over RSA (though this only matters if the
 1476|       |     * server has both certificates, and is using the DEFAULT, or a client
 1477|       |     * preference).
 1478|       |     */
 1479|    220|    ssl_cipher_apply_rule(0, SSL_kECDHE, SSL_aECDSA, 0, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |   85|    220|#define SSL_kECDHE 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kECDHE, SSL_aECDSA, 0, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  114|    220|#define SSL_aECDSA 0x00000008U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kECDHE, SSL_aECDSA, 0, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  144|    220|#define CIPHER_ADD 1
  ------------------
 1480|    220|        -1, &head, &tail);
 1481|    220|    ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_ADD, -1, &head,
  ------------------
  |  |   85|    220|#define SSL_kECDHE 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_ADD, -1, &head,
  ------------------
  |  |  144|    220|#define CIPHER_ADD 1
  ------------------
 1482|    220|        &tail);
 1483|    220|    ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head,
  ------------------
  |  |   85|    220|#define SSL_kECDHE 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head,
  ------------------
  |  |  146|    220|#define CIPHER_DEL 3
  ------------------
 1484|    220|        &tail);
 1485|       |
 1486|       |    /* Within each strength group, we prefer GCM over CHACHA... */
 1487|    220|    ssl_cipher_apply_rule(0, 0, 0, SSL_AESGCM, 0, 0, 0, CIPHER_ADD, -1,
  ------------------
  |  |  155|    220|#define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  ------------------
  |  |  |  |  142|    220|#define SSL_AES128GCM 0x00001000U
  |  |  ------------------
  |  |               #define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  ------------------
  |  |  |  |  143|    220|#define SSL_AES256GCM 0x00002000U
  |  |  ------------------
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_AESGCM, 0, 0, 0, CIPHER_ADD, -1,
  ------------------
  |  |  144|    220|#define CIPHER_ADD 1
  ------------------
 1488|    220|        &head, &tail);
 1489|    220|    ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20, 0, 0, 0, CIPHER_ADD, -1,
  ------------------
  |  |  159|    220|#define SSL_CHACHA20 (SSL_CHACHA20POLY1305)
  |  |  ------------------
  |  |  |  |  149|    220|#define SSL_CHACHA20POLY1305 0x00080000U
  |  |  ------------------
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20, 0, 0, 0, CIPHER_ADD, -1,
  ------------------
  |  |  144|    220|#define CIPHER_ADD 1
  ------------------
 1490|    220|        &head, &tail);
 1491|       |
 1492|       |    /*
 1493|       |     * ...and generally, our preferred cipher is AES.
 1494|       |     * Note that AEADs will be bumped to take preference after sorting by
 1495|       |     * strength.
 1496|       |     */
 1497|    220|    ssl_cipher_apply_rule(0, 0, 0, SSL_AES ^ SSL_AESGCM, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  157|    220|#define SSL_AES (SSL_AES128 | SSL_AES256 | SSL_AESGCM | SSL_AESCCM)
  |  |  ------------------
  |  |  |  |  136|    220|#define SSL_AES128 0x00000040U
  |  |  ------------------
  |  |               #define SSL_AES (SSL_AES128 | SSL_AES256 | SSL_AESGCM | SSL_AESCCM)
  |  |  ------------------
  |  |  |  |  137|    220|#define SSL_AES256 0x00000080U
  |  |  ------------------
  |  |               #define SSL_AES (SSL_AES128 | SSL_AES256 | SSL_AESGCM | SSL_AESCCM)
  |  |  ------------------
  |  |  |  |  155|    220|#define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  142|    220|#define SSL_AES128GCM 0x00001000U
  |  |  |  |  ------------------
  |  |  |  |               #define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  143|    220|#define SSL_AES256GCM 0x00002000U
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define SSL_AES (SSL_AES128 | SSL_AES256 | SSL_AESGCM | SSL_AESCCM)
  |  |  ------------------
  |  |  |  |  156|    220|#define SSL_AESCCM (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|    220|#define SSL_AES128CCM 0x00004000U
  |  |  |  |  ------------------
  |  |  |  |               #define SSL_AESCCM (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
  |  |  |  |  ------------------
  |  |  |  |  |  |  145|    220|#define SSL_AES256CCM 0x00008000U
  |  |  |  |  ------------------
  |  |  |  |               #define SSL_AESCCM (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
  |  |  |  |  ------------------
  |  |  |  |  |  |  146|    220|#define SSL_AES128CCM8 0x00010000U
  |  |  |  |  ------------------
  |  |  |  |               #define SSL_AESCCM (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
  |  |  |  |  ------------------
  |  |  |  |  |  |  147|    220|#define SSL_AES256CCM8 0x00020000U
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_AES ^ SSL_AESGCM, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  155|    220|#define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  ------------------
  |  |  |  |  142|    220|#define SSL_AES128GCM 0x00001000U
  |  |  ------------------
  |  |               #define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  ------------------
  |  |  |  |  143|    220|#define SSL_AES256GCM 0x00002000U
  |  |  ------------------
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_AES ^ SSL_AESGCM, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  144|    220|#define CIPHER_ADD 1
  ------------------
 1498|    220|        -1, &head, &tail);
 1499|       |
 1500|       |    /* Temporarily enable everything else for sorting */
 1501|    220|    ssl_cipher_apply_rule(0, 0, 0, 0, 0, 0, 0, CIPHER_ADD, -1, &head, &tail);
  ------------------
  |  |  144|    220|#define CIPHER_ADD 1
  ------------------
 1502|       |
 1503|       |    /* Low priority for MD5 */
 1504|    220|    ssl_cipher_apply_rule(0, 0, 0, 0, SSL_MD5, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  168|    220|#define SSL_MD5 0x00000001U
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, 0, SSL_MD5, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  147|    220|#define CIPHER_ORD 4
  ------------------
 1505|    220|        &tail);
 1506|       |
 1507|       |    /*
 1508|       |     * Move anonymous ciphers to the end.  Usually, these will remain
 1509|       |     * disabled. (For applications that allow them, they aren't too bad, but
 1510|       |     * we prefer authenticated ciphers.)
 1511|       |     */
 1512|    220|    ssl_cipher_apply_rule(0, 0, SSL_aNULL, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  112|    220|#define SSL_aNULL 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, 0, SSL_aNULL, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  147|    220|#define CIPHER_ORD 4
  ------------------
 1513|    220|        &tail);
 1514|       |
 1515|    220|    ssl_cipher_apply_rule(0, SSL_kRSA, 0, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |   81|    220|#define SSL_kRSA 0x00000001U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kRSA, 0, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  147|    220|#define CIPHER_ORD 4
  ------------------
 1516|    220|        &tail);
 1517|    220|    ssl_cipher_apply_rule(0, SSL_kPSK, 0, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |   87|    220|#define SSL_kPSK 0x00000008U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kPSK, 0, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  147|    220|#define CIPHER_ORD 4
  ------------------
 1518|    220|        &tail);
 1519|       |
 1520|       |    /* RC4 is sort-of broken -- move to the end */
 1521|    220|    ssl_cipher_apply_rule(0, 0, 0, SSL_RC4, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  132|    220|#define SSL_RC4 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_RC4, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  147|    220|#define CIPHER_ORD 4
  ------------------
 1522|    220|        &tail);
 1523|       |
 1524|       |    /*
 1525|       |     * Now sort by symmetric encryption strength.  The above ordering remains
 1526|       |     * in force within each class
 1527|       |     */
 1528|    220|    if (!ssl_cipher_strength_sort(&head, &tail)) {
  ------------------
  |  Branch (1528:9): [True: 0, False: 220]
  ------------------
 1529|      0|        OPENSSL_free(co_list);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1530|      0|        return NULL;
 1531|      0|    }
 1532|       |
 1533|       |    /*
 1534|       |     * Partially overrule strength sort to prefer TLS 1.2 ciphers/PRFs.
 1535|       |     */
 1536|    220|    ssl_cipher_apply_rule(0, 0, 0, 0, 0, TLS1_2_VERSION, 0, CIPHER_BUMP, -1,
  ------------------
  |  |   26|    220|#define TLS1_2_VERSION 0x0303
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, 0, 0, TLS1_2_VERSION, 0, CIPHER_BUMP, -1,
  ------------------
  |  |  153|    220|#define CIPHER_BUMP 6
  ------------------
 1537|    220|        &head, &tail);
 1538|       |
 1539|       |    /*
 1540|       |     * Irrespective of strength, enforce the following order:
 1541|       |     * (EC)DHE + AEAD > (EC)DHE > rest of AEAD > rest.
 1542|       |     * Within each group, ciphers remain sorted by strength and previous
 1543|       |     * preference, i.e.,
 1544|       |     * 1) ECDHE > DHE
 1545|       |     * 2) GCM > CHACHA
 1546|       |     * 3) AES > rest
 1547|       |     * 4) TLS 1.2 > legacy
 1548|       |     *
 1549|       |     * Because we now bump ciphers to the top of the list, we proceed in
 1550|       |     * reverse order of preference.
 1551|       |     */
 1552|    220|    ssl_cipher_apply_rule(0, 0, 0, 0, SSL_AEAD, 0, 0, CIPHER_BUMP, -1,
  ------------------
  |  |  175|    220|#define SSL_AEAD 0x00000040U
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, 0, SSL_AEAD, 0, 0, CIPHER_BUMP, -1,
  ------------------
  |  |  153|    220|#define CIPHER_BUMP 6
  ------------------
 1553|    220|        &head, &tail);
 1554|    220|    ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, 0, 0, 0,
  ------------------
  |  |   83|    220|#define SSL_kDHE 0x00000002U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, 0, 0, 0,
  ------------------
  |  |   85|    220|#define SSL_kECDHE 0x00000004U
  ------------------
 1555|    220|        CIPHER_BUMP, -1, &head, &tail);
  ------------------
  |  |  153|    220|#define CIPHER_BUMP 6
  ------------------
 1556|    220|    ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, SSL_AEAD, 0, 0,
  ------------------
  |  |   83|    220|#define SSL_kDHE 0x00000002U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, SSL_AEAD, 0, 0,
  ------------------
  |  |   85|    220|#define SSL_kECDHE 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, SSL_AEAD, 0, 0,
  ------------------
  |  |  175|    220|#define SSL_AEAD 0x00000040U
  ------------------
 1557|    220|        CIPHER_BUMP, -1, &head, &tail);
  ------------------
  |  |  153|    220|#define CIPHER_BUMP 6
  ------------------
 1558|       |
 1559|       |    /* Now disable everything (maintaining the ordering!) */
 1560|    220|    ssl_cipher_apply_rule(0, 0, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head, &tail);
  ------------------
  |  |  146|    220|#define CIPHER_DEL 3
  ------------------
 1561|       |
 1562|       |    /*
 1563|       |     * We also need cipher aliases for selecting based on the rule_str.
 1564|       |     * There might be two types of entries in the rule_str: 1) names
 1565|       |     * of ciphers themselves 2) aliases for groups of ciphers.
 1566|       |     * For 1) we need the available ciphers and for 2) the cipher
 1567|       |     * groups of cipher_aliases added together in one list (otherwise
 1568|       |     * we would be happy with just the cipher_aliases table).
 1569|       |     */
 1570|    220|    num_of_group_aliases = OSSL_NELEM(cipher_aliases);
  ------------------
  |  |   14|    220|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 1571|    220|    num_of_alias_max = num_of_ciphers + num_of_group_aliases + 1;
 1572|    220|    ca_list = OPENSSL_malloc_array(num_of_alias_max, sizeof(*ca_list));
  ------------------
  |  |  110|    220|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1573|    220|    if (ca_list == NULL) {
  ------------------
  |  Branch (1573:9): [True: 0, False: 220]
  ------------------
 1574|      0|        OPENSSL_free(co_list);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1575|      0|        return NULL; /* Failure */
 1576|      0|    }
 1577|    220|    ssl_cipher_collect_aliases(ca_list, num_of_group_aliases,
 1578|    220|        disabled_mkey, disabled_auth, disabled_enc,
 1579|    220|        disabled_mac, head);
 1580|       |
 1581|       |    /*
 1582|       |     * If the rule_string begins with DEFAULT, apply the default rule
 1583|       |     * before using the (possibly available) additional rules.
 1584|       |     */
 1585|    220|    ok = 1;
 1586|    220|    rule_p = rule_str;
 1587|    220|    if (HAS_PREFIX(rule_str, "DEFAULT")) {
  ------------------
  |  |   58|    220|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (58:30): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 1588|      0|        ok = ssl_cipher_process_rulestr(OSSL_default_cipher_list(),
 1589|      0|            &head, &tail, ca_list, c);
 1590|      0|        rule_p += 7;
 1591|      0|        if (*rule_p == ':')
  ------------------
  |  Branch (1591:13): [True: 0, False: 0]
  ------------------
 1592|      0|            rule_p++;
 1593|      0|    }
 1594|       |
 1595|    220|    if (ok && (rule_p[0] != '\0'))
  ------------------
  |  Branch (1595:9): [True: 220, False: 0]
  |  Branch (1595:15): [True: 220, False: 0]
  ------------------
 1596|    220|        ok = ssl_cipher_process_rulestr(rule_p, &head, &tail, ca_list, c);
 1597|       |
 1598|    220|    OPENSSL_free(ca_list); /* Not needed anymore */
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1599|       |
 1600|    220|    if (!ok) { /* Rule processing failure */
  ------------------
  |  Branch (1600:9): [True: 0, False: 220]
  ------------------
 1601|      0|        OPENSSL_free(co_list);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1602|      0|        return NULL;
 1603|      0|    }
 1604|       |
 1605|       |    /*
 1606|       |     * Allocate new "cipherstack" for the result, return with error
 1607|       |     * if we cannot get one.
 1608|       |     */
 1609|    220|    if ((cipherstack = sk_SSL_CIPHER_new_null()) == NULL) {
  ------------------
  |  | 1008|    220|#define sk_SSL_CIPHER_new_null() ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_new_null())
  ------------------
  |  Branch (1609:9): [True: 0, False: 220]
  ------------------
 1610|      0|        OPENSSL_free(co_list);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1611|      0|        return NULL;
 1612|      0|    }
 1613|       |
 1614|       |    /* Add TLSv1.3 ciphers first - we always prefer those if possible */
 1615|    880|    for (i = 0; i < sk_SSL_CIPHER_num(tls13_ciphersuites); i++) {
  ------------------
  |  | 1005|    880|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (1615:17): [True: 660, False: 220]
  ------------------
 1616|    660|        const SSL_CIPHER *sslc = sk_SSL_CIPHER_value(tls13_ciphersuites, i);
  ------------------
  |  | 1006|    660|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
 1617|       |
 1618|       |        /* Don't include any TLSv1.3 ciphers that are disabled */
 1619|    660|        if ((sslc->algorithm_enc & disabled_enc) != 0
  ------------------
  |  Branch (1619:13): [True: 0, False: 660]
  ------------------
 1620|    660|            || (ssl_cipher_table_mac[sslc->algorithm2
  ------------------
  |  Branch (1620:16): [True: 0, False: 660]
  ------------------
 1621|    660|                    & SSL_HANDSHAKE_MAC_MASK]
  ------------------
  |  |  208|    660|#define SSL_HANDSHAKE_MAC_MASK 0xFF
  ------------------
 1622|    660|                       .mask
 1623|    660|                   & ctx->disabled_mac_mask)
 1624|    660|                != 0) {
 1625|      0|            sk_SSL_CIPHER_delete(tls13_ciphersuites, i);
  ------------------
  |  | 1013|      0|#define sk_SSL_CIPHER_delete(sk, i) ((const SSL_CIPHER *)OPENSSL_sk_delete(ossl_check_SSL_CIPHER_sk_type(sk), (i)))
  ------------------
 1626|      0|            i--;
 1627|      0|            continue;
 1628|      0|        }
 1629|       |
 1630|    660|        if (!sk_SSL_CIPHER_push(cipherstack, sslc)) {
  ------------------
  |  | 1015|    660|#define sk_SSL_CIPHER_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr))
  ------------------
  |  Branch (1630:13): [True: 0, False: 660]
  ------------------
 1631|      0|            OPENSSL_free(co_list);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1632|      0|            sk_SSL_CIPHER_free(cipherstack);
  ------------------
  |  | 1011|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1633|      0|            return NULL;
 1634|      0|        }
 1635|    660|    }
 1636|       |
 1637|    220|    OSSL_TRACE_BEGIN(TLS_CIPHER)
  ------------------
  |  |  221|    220|    do {                           \
  |  |  222|    220|        BIO *trc_out = NULL;       \
  |  |  223|    220|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 220]
  |  |  ------------------
  ------------------
 1638|      0|    {
 1639|      0|        BIO_printf(trc_out, "cipher selection:\n");
 1640|      0|    }
 1641|       |    /*
 1642|       |     * The cipher selection for the list is done. The ciphers are added
 1643|       |     * to the resulting precedence to the STACK_OF(SSL_CIPHER).
 1644|       |     */
 1645|  12.7k|    for (curr = head; curr != NULL; curr = curr->next) {
  ------------------
  |  Branch (1645:23): [True: 12.5k, False: 220]
  ------------------
 1646|  12.5k|        if (curr->active) {
  ------------------
  |  Branch (1646:13): [True: 12.5k, False: 0]
  ------------------
 1647|  12.5k|            if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) {
  ------------------
  |  | 1015|  12.5k|#define sk_SSL_CIPHER_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr))
  ------------------
  |  Branch (1647:17): [True: 0, False: 12.5k]
  ------------------
 1648|      0|                OPENSSL_free(co_list);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1649|      0|                sk_SSL_CIPHER_free(cipherstack);
  ------------------
  |  | 1011|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1650|      0|                OSSL_TRACE_CANCEL(TLS_CIPHER);
  ------------------
  |  |  230|      0|    ((void)0)
  ------------------
 1651|      0|                return NULL;
 1652|      0|            }
 1653|  12.5k|            if (trc_out != NULL)
  ------------------
  |  Branch (1653:17): [True: 0, False: 12.5k]
  ------------------
 1654|      0|                BIO_printf(trc_out, "<%s>\n", curr->cipher->name);
 1655|  12.5k|        }
 1656|  12.5k|    }
 1657|    220|    OPENSSL_free(co_list); /* Not needed any longer */
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1658|    220|    OSSL_TRACE_END(TLS_CIPHER);
  ------------------
  |  |  226|    220|    }                            \
  |  |  227|    220|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 220]
  |  |  ------------------
  ------------------
 1659|       |
 1660|    220|    if (!update_cipher_list_by_id(cipher_list_by_id, cipherstack)) {
  ------------------
  |  Branch (1660:9): [True: 0, False: 220]
  ------------------
 1661|      0|        sk_SSL_CIPHER_free(cipherstack);
  ------------------
  |  | 1011|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1662|      0|        return NULL;
 1663|      0|    }
 1664|    220|    sk_SSL_CIPHER_free(*cipher_list);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1665|    220|    *cipher_list = cipherstack;
 1666|       |
 1667|    220|    return cipherstack;
 1668|    220|}
SSL_COMP_get_compression_methods:
 1978|    222|{
 1979|    222|    STACK_OF(SSL_COMP) **rv;
  ------------------
  |  |   33|    222|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1980|       |
 1981|    222|    rv = (STACK_OF(SSL_COMP) **)OSSL_LIB_CTX_get_data(NULL,
 1982|    222|        OSSL_LIB_CTX_COMP_METHODS);
  ------------------
  |  |  119|    222|#define OSSL_LIB_CTX_COMP_METHODS 21
  ------------------
 1983|    222|    if (rv != NULL)
  ------------------
  |  Branch (1983:9): [True: 222, False: 0]
  ------------------
 1984|    222|        return *rv;
 1985|      0|    else
 1986|      0|        return NULL;
 1987|    222|}
ssl_get_md_idx:
 2135|    660|{
 2136|    660|    int i;
 2137|       |
 2138|  9.90k|    for (i = 0; i < SSL_MD_NUM_IDX; i++) {
  ------------------
  |  |  203|  9.90k|#define SSL_MD_NUM_IDX SSL_MAX_DIGEST
  |  |  ------------------
  |  |  |  |  201|  9.90k|#define SSL_MAX_DIGEST 14
  |  |  ------------------
  ------------------
  |  Branch (2138:17): [True: 9.24k, False: 660]
  ------------------
 2139|  9.24k|        if (md_nid == ssl_cipher_table_mac[i].nid)
  ------------------
  |  Branch (2139:13): [True: 0, False: 9.24k]
  ------------------
 2140|      0|            return i;
 2141|  9.24k|    }
 2142|    660|    return -1;
 2143|    660|}
ssl_cert_is_disabled:
 2217|  8.32k|{
 2218|  8.32k|    const SSL_CERT_LOOKUP *cl;
 2219|       |
 2220|       |    /* A provider-loaded key type is always enabled */
 2221|  8.32k|    if (idx >= SSL_PKEY_NUM)
  ------------------
  |  |  328|  8.32k|#define SSL_PKEY_NUM 9
  ------------------
  |  Branch (2221:9): [True: 657, False: 7.66k]
  ------------------
 2222|    657|        return 0;
 2223|       |
 2224|  7.66k|    cl = ssl_cert_lookup_by_idx(idx, ctx);
 2225|  7.66k|    if (cl == NULL || (cl->amask & ctx->disabled_auth_mask) != 0)
  ------------------
  |  Branch (2225:9): [True: 0, False: 7.66k]
  |  Branch (2225:23): [True: 0, False: 7.66k]
  ------------------
 2226|      0|        return 1;
 2227|  7.66k|    return 0;
 2228|  7.66k|}
OSSL_default_cipher_list:
 2236|    220|{
 2237|    220|    return "ALL:!COMPLEMENTOFDEFAULT:!eNULL";
 2238|    220|}
OSSL_default_ciphersuites:
 2246|    220|{
 2247|    220|    return "TLS_AES_256_GCM_SHA384:"
 2248|    220|           "TLS_CHACHA20_POLY1305_SHA256:"
 2249|    220|           "TLS_AES_128_GCM_SHA256";
 2250|    220|}
ssl_ciph.c:get_optional_pkey_id:
  303|  1.54k|{
  304|  1.54k|    const EVP_PKEY_ASN1_METHOD *ameth;
  305|  1.54k|    ENGINE *tmpeng = NULL;
  306|  1.54k|    int pkey_id = 0;
  307|  1.54k|    ameth = EVP_PKEY_asn1_find_str(&tmpeng, pkey_name, -1);
  308|  1.54k|    if (ameth) {
  ------------------
  |  Branch (308:9): [True: 0, False: 1.54k]
  ------------------
  309|      0|        if (EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL,
  ------------------
  |  Branch (309:13): [True: 0, False: 0]
  ------------------
  310|      0|                ameth)
  311|      0|            <= 0)
  312|      0|            pkey_id = 0;
  313|      0|    }
  314|  1.54k|    tls_engine_finish(tmpeng);
  315|  1.54k|    return pkey_id;
  316|  1.54k|}
ssl_ciph.c:set_ciphersuites:
 1301|    220|{
 1302|    220|    STACK_OF(SSL_CIPHER) *newciphers = sk_SSL_CIPHER_new_null();
  ------------------
  |  |   33|    220|#define STACK_OF(type) struct stack_st_##type
  ------------------
                  STACK_OF(SSL_CIPHER) *newciphers = sk_SSL_CIPHER_new_null();
  ------------------
  |  | 1008|    220|#define sk_SSL_CIPHER_new_null() ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_new_null())
  ------------------
 1303|       |
 1304|    220|    if (newciphers == NULL)
  ------------------
  |  Branch (1304:9): [True: 0, False: 220]
  ------------------
 1305|      0|        return 0;
 1306|       |
 1307|       |    /* Parse the list. We explicitly allow an empty list */
 1308|    220|    if (*str != '\0'
  ------------------
  |  Branch (1308:9): [True: 220, False: 0]
  ------------------
 1309|    220|        && (CONF_parse_list(str, ':', 1, ciphersuite_cb, newciphers) <= 0
  ------------------
  |  Branch (1309:13): [True: 0, False: 220]
  ------------------
 1310|    220|            || sk_SSL_CIPHER_num(newciphers) == 0)) {
  ------------------
  |  | 1005|    220|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (1310:16): [True: 0, False: 220]
  ------------------
 1311|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_NO_CIPHER_MATCH);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1312|      0|        sk_SSL_CIPHER_free(newciphers);
  ------------------
  |  | 1011|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1313|      0|        return 0;
 1314|      0|    }
 1315|    220|    sk_SSL_CIPHER_free(*currciphers);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1316|    220|    *currciphers = newciphers;
 1317|       |
 1318|    220|    return 1;
 1319|    220|}
ssl_ciph.c:ciphersuite_cb:
 1274|    660|{
 1275|    660|    STACK_OF(SSL_CIPHER) *ciphersuites = (STACK_OF(SSL_CIPHER) *)arg;
  ------------------
  |  |   33|    660|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1276|    660|    const SSL_CIPHER *cipher;
 1277|       |    /* Arbitrary sized temp buffer for the cipher name. Should be big enough */
 1278|    660|    char name[80];
 1279|       |
 1280|    660|    if (len > (int)(sizeof(name) - 1))
  ------------------
  |  Branch (1280:9): [True: 0, False: 660]
  ------------------
 1281|       |        /* Anyway return 1 so we can parse rest of the list */
 1282|      0|        return 1;
 1283|       |
 1284|    660|    memcpy(name, elem, len);
 1285|    660|    name[len] = '\0';
 1286|       |
 1287|    660|    cipher = ssl3_get_cipher_by_std_name(name);
 1288|    660|    if (cipher == NULL)
  ------------------
  |  Branch (1288:9): [True: 0, False: 660]
  ------------------
 1289|       |        /* Ciphersuite not found but return 1 to parse rest of the list */
 1290|      0|        return 1;
 1291|       |
 1292|    660|    if (!sk_SSL_CIPHER_push(ciphersuites, cipher)) {
  ------------------
  |  | 1015|    660|#define sk_SSL_CIPHER_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr))
  ------------------
  |  Branch (1292:9): [True: 0, False: 660]
  ------------------
 1293|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1294|      0|        return 0;
 1295|      0|    }
 1296|       |
 1297|    660|    return 1;
 1298|    660|}
ssl_ciph.c:check_suiteb_cipher_list:
 1227|    220|{
 1228|    220|    unsigned int suiteb_flags = 0, suiteb_comb2 = 0;
 1229|    220|    if (HAS_PREFIX(*prule_str, "SUITEB128ONLY")) {
  ------------------
  |  |   58|    220|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (58:30): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 1230|      0|        suiteb_flags = SSL_CERT_FLAG_SUITEB_128_LOS_ONLY;
  ------------------
  |  |  558|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
  ------------------
 1231|    220|    } else if (HAS_PREFIX(*prule_str, "SUITEB128C2")) {
  ------------------
  |  |   58|    220|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (58:30): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 1232|      0|        suiteb_comb2 = 1;
 1233|      0|        suiteb_flags = SSL_CERT_FLAG_SUITEB_128_LOS;
  ------------------
  |  |  562|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
 1234|    220|    } else if (HAS_PREFIX(*prule_str, "SUITEB128")) {
  ------------------
  |  |   58|    220|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (58:30): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 1235|      0|        suiteb_flags = SSL_CERT_FLAG_SUITEB_128_LOS;
  ------------------
  |  |  562|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
 1236|    220|    } else if (HAS_PREFIX(*prule_str, "SUITEB192")) {
  ------------------
  |  |   58|    220|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (58:30): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 1237|      0|        suiteb_flags = SSL_CERT_FLAG_SUITEB_192_LOS;
  ------------------
  |  |  560|      0|#define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
  ------------------
 1238|      0|    }
 1239|       |
 1240|    220|    if (suiteb_flags) {
  ------------------
  |  Branch (1240:9): [True: 0, False: 220]
  ------------------
 1241|      0|        c->cert_flags &= ~SSL_CERT_FLAG_SUITEB_128_LOS;
  ------------------
  |  |  562|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
 1242|      0|        c->cert_flags |= suiteb_flags;
 1243|    220|    } else {
 1244|    220|        suiteb_flags = c->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS;
  ------------------
  |  |  562|    220|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
 1245|    220|    }
 1246|       |
 1247|    220|    if (!suiteb_flags)
  ------------------
  |  Branch (1247:9): [True: 220, False: 0]
  ------------------
 1248|    220|        return 1;
 1249|       |    /* Check version: if TLS 1.2 ciphers allowed we can use Suite B */
 1250|       |
 1251|      0|    if (!(meth->ssl3_enc->enc_flags & SSL_ENC_FLAG_TLS1_2_CIPHERS)) {
  ------------------
  |  | 2195|      0|#define SSL_ENC_FLAG_TLS1_2_CIPHERS 0x10
  ------------------
  |  Branch (1251:9): [True: 0, False: 0]
  ------------------
 1252|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1253|      0|        return 0;
 1254|      0|    }
 1255|       |
 1256|      0|    switch (suiteb_flags) {
  ------------------
  |  Branch (1256:13): [True: 0, False: 0]
  ------------------
 1257|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS:
  ------------------
  |  |  562|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
  |  Branch (1257:5): [True: 0, False: 0]
  ------------------
 1258|      0|        if (suiteb_comb2)
  ------------------
  |  Branch (1258:13): [True: 0, False: 0]
  ------------------
 1259|      0|            *prule_str = "ECDHE-ECDSA-AES256-GCM-SHA384";
 1260|      0|        else
 1261|      0|            *prule_str = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384";
 1262|      0|        break;
 1263|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS_ONLY:
  ------------------
  |  |  558|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
  ------------------
  |  Branch (1263:5): [True: 0, False: 0]
  ------------------
 1264|      0|        *prule_str = "ECDHE-ECDSA-AES128-GCM-SHA256";
 1265|      0|        break;
 1266|      0|    case SSL_CERT_FLAG_SUITEB_192_LOS:
  ------------------
  |  |  560|      0|#define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
  ------------------
  |  Branch (1266:5): [True: 0, False: 0]
  ------------------
 1267|      0|        *prule_str = "ECDHE-ECDSA-AES256-GCM-SHA384";
 1268|      0|        break;
 1269|      0|    }
 1270|      0|    return 1;
 1271|      0|}
ssl_ciph.c:ssl_cipher_collect_ciphers:
  659|    220|{
  660|    220|    int i, co_list_num;
  661|    220|    const SSL_CIPHER *c;
  662|       |
  663|       |    /*
  664|       |     * We have num_of_ciphers descriptions compiled in, depending on the
  665|       |     * method selected (SSLv3, TLSv1 etc).
  666|       |     * These will later be sorted in a linked list with at most num
  667|       |     * entries.
  668|       |     */
  669|       |
  670|       |    /* Get the initial list of ciphers */
  671|    220|    co_list_num = 0; /* actual count of ciphers */
  672|  42.2k|    for (i = 0; i < num_of_ciphers; i++) {
  ------------------
  |  Branch (672:17): [True: 42.0k, False: 220]
  ------------------
  673|  42.0k|        c = ssl_method->get_cipher(i);
  674|       |        /* drop those that use any of that is not available */
  675|  42.0k|        if (c == NULL || !c->valid)
  ------------------
  |  Branch (675:13): [True: 0, False: 42.0k]
  |  Branch (675:26): [True: 0, False: 42.0k]
  ------------------
  676|      0|            continue;
  677|  42.0k|        if ((c->algorithm_mkey & disabled_mkey) || (c->algorithm_auth & disabled_auth) || (c->algorithm_enc & disabled_enc) || (c->algorithm_mac & disabled_mac))
  ------------------
  |  Branch (677:13): [True: 1.54k, False: 40.4k]
  |  Branch (677:52): [True: 0, False: 40.4k]
  |  Branch (677:91): [True: 3.30k, False: 37.1k]
  |  Branch (677:128): [True: 0, False: 37.1k]
  ------------------
  678|  4.84k|            continue;
  679|  37.1k|        if (((ssl_method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) == 0) && c->min_tls == 0)
  ------------------
  |  | 2190|  37.1k|#define SSL_ENC_FLAG_DTLS 0x8
  ------------------
  |  Branch (679:13): [True: 37.1k, False: 0]
  |  Branch (679:77): [True: 0, False: 37.1k]
  ------------------
  680|      0|            continue;
  681|  37.1k|        if (((ssl_method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) != 0) && c->min_dtls == 0)
  ------------------
  |  | 2190|  37.1k|#define SSL_ENC_FLAG_DTLS 0x8
  ------------------
  |  Branch (681:13): [True: 0, False: 37.1k]
  |  Branch (681:77): [True: 0, False: 0]
  ------------------
  682|      0|            continue;
  683|       |
  684|  37.1k|        co_list[co_list_num].cipher = c;
  685|  37.1k|        co_list[co_list_num].next = NULL;
  686|  37.1k|        co_list[co_list_num].prev = NULL;
  687|  37.1k|        co_list[co_list_num].active = 0;
  688|  37.1k|        co_list_num++;
  689|  37.1k|    }
  690|       |
  691|       |    /*
  692|       |     * Prepare linked list from list entries
  693|       |     */
  694|    220|    if (co_list_num > 0) {
  ------------------
  |  Branch (694:9): [True: 220, False: 0]
  ------------------
  695|    220|        co_list[0].prev = NULL;
  696|       |
  697|    220|        if (co_list_num > 1) {
  ------------------
  |  Branch (697:13): [True: 220, False: 0]
  ------------------
  698|    220|            co_list[0].next = &co_list[1];
  699|       |
  700|  36.9k|            for (i = 1; i < co_list_num - 1; i++) {
  ------------------
  |  Branch (700:25): [True: 36.7k, False: 220]
  ------------------
  701|  36.7k|                co_list[i].prev = &co_list[i - 1];
  702|  36.7k|                co_list[i].next = &co_list[i + 1];
  703|  36.7k|            }
  704|       |
  705|    220|            co_list[co_list_num - 1].prev = &co_list[co_list_num - 2];
  706|    220|        }
  707|       |
  708|    220|        co_list[co_list_num - 1].next = NULL;
  709|       |
  710|    220|        *head_p = &co_list[0];
  711|    220|        *tail_p = &co_list[co_list_num - 1];
  712|    220|    }
  713|    220|}
ssl_ciph.c:ssl_cipher_apply_rule:
  783|  5.50k|{
  784|  5.50k|    CIPHER_ORDER *head, *tail, *curr, *next, *last;
  785|  5.50k|    const SSL_CIPHER *cp;
  786|  5.50k|    int reverse = 0;
  787|       |
  788|  5.50k|    OSSL_TRACE_BEGIN(TLS_CIPHER)
  ------------------
  |  |  221|  5.50k|    do {                           \
  |  |  222|  5.50k|        BIO *trc_out = NULL;       \
  |  |  223|  5.50k|        if (0)
  |  |  ------------------
  |  |  |  Branch (223:13): [Folded, False: 5.50k]
  |  |  ------------------
  ------------------
  789|      0|    {
  790|      0|        BIO_printf(trc_out,
  791|      0|            "Applying rule %d with %08x/%08x/%08x/%08x/%08x %08x (%d)\n",
  792|      0|            rule, (unsigned int)alg_mkey, (unsigned int)alg_auth,
  793|      0|            (unsigned int)alg_enc, (unsigned int)alg_mac, min_tls,
  794|      0|            (unsigned int)algo_strength, (int)strength_bits);
  795|      0|    }
  796|       |
  797|  5.50k|    if (rule == CIPHER_DEL || rule == CIPHER_BUMP)
  ------------------
  |  |  146|  11.0k|#define CIPHER_DEL 3
  ------------------
                  if (rule == CIPHER_DEL || rule == CIPHER_BUMP)
  ------------------
  |  |  153|  5.06k|#define CIPHER_BUMP 6
  ------------------
  |  Branch (797:9): [True: 440, False: 5.06k]
  |  Branch (797:31): [True: 880, False: 4.18k]
  ------------------
  798|  1.32k|        reverse = 1; /* needed to maintain sorting between currently
  799|       |                      * deleted ciphers */
  800|       |
  801|  5.50k|    head = *head_p;
  802|  5.50k|    tail = *tail_p;
  803|       |
  804|  5.50k|    if (reverse) {
  ------------------
  |  Branch (804:9): [True: 1.32k, False: 4.18k]
  ------------------
  805|  1.32k|        next = tail;
  806|  1.32k|        last = head;
  807|  4.18k|    } else {
  808|  4.18k|        next = head;
  809|  4.18k|        last = tail;
  810|  4.18k|    }
  811|       |
  812|  5.50k|    curr = NULL;
  813|   914k|    for (;;) {
  814|   914k|        if (curr == last)
  ------------------
  |  Branch (814:13): [True: 5.50k, False: 908k]
  ------------------
  815|  5.50k|            break;
  816|       |
  817|   908k|        curr = next;
  818|       |
  819|   908k|        if (curr == NULL)
  ------------------
  |  Branch (819:13): [True: 0, False: 908k]
  ------------------
  820|      0|            break;
  821|       |
  822|   908k|        next = reverse ? curr->prev : curr->next;
  ------------------
  |  Branch (822:16): [True: 223k, False: 685k]
  ------------------
  823|       |
  824|   908k|        cp = curr->cipher;
  825|       |
  826|       |        /*
  827|       |         * Selection criteria is either the value of strength_bits
  828|       |         * or the algorithms used.
  829|       |         */
  830|   908k|        if (strength_bits >= 0) {
  ------------------
  |  Branch (830:13): [True: 185k, False: 722k]
  ------------------
  831|   185k|            if (strength_bits != cp->strength_bits)
  ------------------
  |  Branch (831:17): [True: 148k, False: 37.1k]
  ------------------
  832|   148k|                continue;
  833|   722k|        } else {
  834|   722k|            if (trc_out != NULL) {
  ------------------
  |  Branch (834:17): [True: 0, False: 722k]
  ------------------
  835|      0|                BIO_printf(trc_out,
  836|      0|                    "\nName: %s:"
  837|      0|                    "\nAlgo = %08x/%08x/%08x/%08x/%08x Algo_strength = %08x\n",
  838|      0|                    cp->name,
  839|      0|                    (unsigned int)cp->algorithm_mkey,
  840|      0|                    (unsigned int)cp->algorithm_auth,
  841|      0|                    (unsigned int)cp->algorithm_enc,
  842|      0|                    (unsigned int)cp->algorithm_mac,
  843|      0|                    cp->min_tls,
  844|      0|                    (unsigned int)cp->algo_strength);
  845|      0|            }
  846|   722k|            if (cipher_id != 0 && (cipher_id != cp->id))
  ------------------
  |  Branch (846:17): [True: 0, False: 722k]
  |  Branch (846:35): [True: 0, False: 0]
  ------------------
  847|      0|                continue;
  848|   722k|            if (alg_mkey && !(alg_mkey & cp->algorithm_mkey))
  ------------------
  |  Branch (848:17): [True: 260k, False: 462k]
  |  Branch (848:29): [True: 195k, False: 64.4k]
  ------------------
  849|   195k|                continue;
  850|   527k|            if (alg_auth && !(alg_auth & cp->algorithm_auth))
  ------------------
  |  Branch (850:17): [True: 44.6k, False: 482k]
  |  Branch (850:29): [True: 37.6k, False: 7.04k]
  ------------------
  851|  37.6k|                continue;
  852|   489k|            if (alg_enc && !(alg_enc & cp->algorithm_enc))
  ------------------
  |  Branch (852:17): [True: 202k, False: 287k]
  |  Branch (852:28): [True: 144k, False: 57.6k]
  ------------------
  853|   144k|                continue;
  854|   344k|            if (alg_mac && !(alg_mac & cp->algorithm_mac))
  ------------------
  |  Branch (854:17): [True: 91.0k, False: 253k]
  |  Branch (854:28): [True: 71.0k, False: 20.0k]
  ------------------
  855|  71.0k|                continue;
  856|   273k|            if (min_tls && (min_tls != cp->min_tls))
  ------------------
  |  Branch (856:17): [True: 37.1k, False: 236k]
  |  Branch (856:28): [True: 18.2k, False: 18.9k]
  ------------------
  857|  18.2k|                continue;
  858|   255k|            if ((algo_strength & SSL_STRONG_MASK)
  ------------------
  |  |  241|   255k|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (858:17): [True: 0, False: 255k]
  ------------------
  859|      0|                && !(algo_strength & SSL_STRONG_MASK & cp->algo_strength))
  ------------------
  |  |  241|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (859:20): [True: 0, False: 0]
  ------------------
  860|      0|                continue;
  861|   255k|            if ((algo_strength & SSL_DEFAULT_MASK)
  ------------------
  |  |  242|   255k|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (861:17): [True: 37.1k, False: 218k]
  ------------------
  862|  37.1k|                && !(algo_strength & SSL_DEFAULT_MASK & cp->algo_strength))
  ------------------
  |  |  242|  37.1k|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (862:20): [True: 16.5k, False: 20.6k]
  ------------------
  863|  16.5k|                continue;
  864|   255k|        }
  865|       |
  866|   276k|        if (trc_out != NULL)
  ------------------
  |  Branch (866:13): [True: 0, False: 276k]
  ------------------
  867|      0|            BIO_printf(trc_out, "Action = %d\n", rule);
  868|       |
  869|       |        /* add the cipher if it has not been added yet. */
  870|   276k|        if (rule == CIPHER_ADD) {
  ------------------
  |  |  144|   276k|#define CIPHER_ADD 1
  ------------------
  |  Branch (870:13): [True: 102k, False: 174k]
  ------------------
  871|       |            /* reverse == 0 */
  872|   102k|            if (!curr->active) {
  ------------------
  |  Branch (872:17): [True: 77.8k, False: 24.2k]
  ------------------
  873|  77.8k|                ll_append_tail(&head, curr, &tail);
  874|  77.8k|                curr->active = 1;
  875|  77.8k|            }
  876|   102k|        }
  877|       |        /* Move the added cipher to this location */
  878|   174k|        else if (rule == CIPHER_ORD) {
  ------------------
  |  |  147|   174k|#define CIPHER_ORD 4
  ------------------
  |  Branch (878:18): [True: 49.2k, False: 124k]
  ------------------
  879|       |            /* reverse == 0 */
  880|  49.2k|            if (curr->active) {
  ------------------
  |  Branch (880:17): [True: 49.2k, False: 0]
  ------------------
  881|  49.2k|                ll_append_tail(&head, curr, &tail);
  882|  49.2k|            }
  883|   124k|        } else if (rule == CIPHER_DEL) {
  ------------------
  |  |  146|   124k|#define CIPHER_DEL 3
  ------------------
  |  Branch (883:20): [True: 44.6k, False: 80.0k]
  ------------------
  884|       |            /* reverse == 1 */
  885|  44.6k|            if (curr->active) {
  ------------------
  |  Branch (885:17): [True: 44.6k, False: 0]
  ------------------
  886|       |                /*
  887|       |                 * most recently deleted ciphersuites get best positions for
  888|       |                 * any future CIPHER_ADD (note that the CIPHER_DEL loop works
  889|       |                 * in reverse to maintain the order)
  890|       |                 */
  891|  44.6k|                ll_append_head(&head, curr, &tail);
  892|  44.6k|                curr->active = 0;
  893|  44.6k|            }
  894|  80.0k|        } else if (rule == CIPHER_BUMP) {
  ------------------
  |  |  153|  80.0k|#define CIPHER_BUMP 6
  ------------------
  |  Branch (894:20): [True: 55.4k, False: 24.6k]
  ------------------
  895|  55.4k|            if (curr->active)
  ------------------
  |  Branch (895:17): [True: 55.4k, False: 0]
  ------------------
  896|  55.4k|                ll_append_head(&head, curr, &tail);
  897|  55.4k|        } else if (rule == CIPHER_KILL) {
  ------------------
  |  |  145|  24.6k|#define CIPHER_KILL 2
  ------------------
  |  Branch (897:20): [True: 24.6k, False: 0]
  ------------------
  898|       |            /* reverse == 0 */
  899|  24.6k|            if (head == curr)
  ------------------
  |  Branch (899:17): [True: 3.96k, False: 20.6k]
  ------------------
  900|  3.96k|                head = curr->next;
  901|  20.6k|            else
  902|  20.6k|                curr->prev->next = curr->next;
  903|  24.6k|            if (tail == curr)
  ------------------
  |  Branch (903:17): [True: 220, False: 24.4k]
  ------------------
  904|    220|                tail = curr->prev;
  905|  24.6k|            curr->active = 0;
  906|  24.6k|            if (curr->next != NULL)
  ------------------
  |  Branch (906:17): [True: 24.4k, False: 220]
  ------------------
  907|  24.4k|                curr->next->prev = curr->prev;
  908|  24.6k|            if (curr->prev != NULL)
  ------------------
  |  Branch (908:17): [True: 20.6k, False: 3.96k]
  ------------------
  909|  20.6k|                curr->prev->next = curr->next;
  910|  24.6k|            curr->next = NULL;
  911|  24.6k|            curr->prev = NULL;
  912|  24.6k|        }
  913|   276k|    }
  914|       |
  915|  5.50k|    *head_p = head;
  916|  5.50k|    *tail_p = tail;
  917|       |
  918|  5.50k|    OSSL_TRACE_END(TLS_CIPHER);
  ------------------
  |  |  226|  5.50k|    }                            \
  |  |  227|  5.50k|    while (0)
  |  |  ------------------
  |  |  |  Branch (227:12): [Folded, False: 5.50k]
  |  |  ------------------
  ------------------
  919|  5.50k|}
ssl_ciph.c:ll_append_tail:
  618|   127k|{
  619|   127k|    if (curr == *tail)
  ------------------
  |  Branch (619:9): [True: 220, False: 126k]
  ------------------
  620|    220|        return;
  621|   126k|    if (curr == *head)
  ------------------
  |  Branch (621:9): [True: 40.7k, False: 86.2k]
  ------------------
  622|  40.7k|        *head = curr->next;
  623|   126k|    if (curr->prev != NULL)
  ------------------
  |  Branch (623:9): [True: 86.2k, False: 40.7k]
  ------------------
  624|  86.2k|        curr->prev->next = curr->next;
  625|   126k|    if (curr->next != NULL)
  ------------------
  |  Branch (625:9): [True: 126k, False: 0]
  ------------------
  626|   126k|        curr->next->prev = curr->prev;
  627|   126k|    (*tail)->next = curr;
  628|   126k|    curr->prev = *tail;
  629|       |    curr->next = NULL;
  630|   126k|    *tail = curr;
  631|   126k|}
ssl_ciph.c:ll_append_head:
  635|   100k|{
  636|   100k|    if (curr == *head)
  ------------------
  |  Branch (636:9): [True: 0, False: 100k]
  ------------------
  637|      0|        return;
  638|   100k|    if (curr == *tail)
  ------------------
  |  Branch (638:9): [True: 44.6k, False: 55.4k]
  ------------------
  639|  44.6k|        *tail = curr->prev;
  640|   100k|    if (curr->next != NULL)
  ------------------
  |  Branch (640:9): [True: 55.4k, False: 44.6k]
  ------------------
  641|  55.4k|        curr->next->prev = curr->prev;
  642|   100k|    if (curr->prev != NULL)
  ------------------
  |  Branch (642:9): [True: 100k, False: 0]
  ------------------
  643|   100k|        curr->prev->next = curr->next;
  644|   100k|    (*head)->prev = curr;
  645|   100k|    curr->next = *head;
  646|       |    curr->prev = NULL;
  647|   100k|    *head = curr;
  648|   100k|}
ssl_ciph.c:ssl_cipher_strength_sort:
  923|    220|{
  924|    220|    int32_t max_strength_bits;
  925|    220|    int i, *number_uses;
  926|    220|    CIPHER_ORDER *curr;
  927|       |
  928|       |    /*
  929|       |     * This routine sorts the ciphers with descending strength. The sorting
  930|       |     * must keep the pre-sorted sequence, so we apply the normal sorting
  931|       |     * routine as '+' movement to the end of the list.
  932|       |     */
  933|    220|    max_strength_bits = 0;
  934|    220|    curr = *head_p;
  935|  37.4k|    while (curr != NULL) {
  ------------------
  |  Branch (935:12): [True: 37.1k, False: 220]
  ------------------
  936|  37.1k|        if (curr->active && (curr->cipher->strength_bits > max_strength_bits))
  ------------------
  |  Branch (936:13): [True: 37.1k, False: 0]
  |  Branch (936:29): [True: 220, False: 36.9k]
  ------------------
  937|    220|            max_strength_bits = curr->cipher->strength_bits;
  938|  37.1k|        curr = curr->next;
  939|  37.1k|    }
  940|       |
  941|    220|    number_uses = OPENSSL_calloc(max_strength_bits + 1, sizeof(int));
  ------------------
  |  |  112|    220|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  942|    220|    if (number_uses == NULL)
  ------------------
  |  Branch (942:9): [True: 0, False: 220]
  ------------------
  943|      0|        return 0;
  944|       |
  945|       |    /*
  946|       |     * Now find the strength_bits values actually used
  947|       |     */
  948|    220|    curr = *head_p;
  949|  37.4k|    while (curr != NULL) {
  ------------------
  |  Branch (949:12): [True: 37.1k, False: 220]
  ------------------
  950|  37.1k|        if (curr->active)
  ------------------
  |  Branch (950:13): [True: 37.1k, False: 0]
  ------------------
  951|  37.1k|            number_uses[curr->cipher->strength_bits]++;
  952|  37.1k|        curr = curr->next;
  953|  37.1k|    }
  954|       |    /*
  955|       |     * Go through the list of used strength_bits values in descending
  956|       |     * order.
  957|       |     */
  958|  56.7k|    for (i = max_strength_bits; i >= 0; i--)
  ------------------
  |  Branch (958:33): [True: 56.5k, False: 220]
  ------------------
  959|  56.5k|        if (number_uses[i] > 0)
  ------------------
  |  Branch (959:13): [True: 1.10k, False: 55.4k]
  ------------------
  960|  1.10k|            ssl_cipher_apply_rule(0, 0, 0, 0, 0, 0, 0, CIPHER_ORD, i, head_p,
  ------------------
  |  |  147|  1.10k|#define CIPHER_ORD 4
  ------------------
  961|  1.10k|                tail_p);
  962|       |
  963|    220|    OPENSSL_free(number_uses);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  964|    220|    return 1;
  965|    220|}
ssl_ciph.c:ssl_cipher_collect_aliases:
  722|    220|{
  723|    220|    CIPHER_ORDER *ciph_curr;
  724|    220|    const SSL_CIPHER **ca_curr;
  725|    220|    int i;
  726|    220|    uint32_t mask_mkey = ~disabled_mkey;
  727|    220|    uint32_t mask_auth = ~disabled_auth;
  728|    220|    uint32_t mask_enc = ~disabled_enc;
  729|    220|    uint32_t mask_mac = ~disabled_mac;
  730|       |
  731|       |    /*
  732|       |     * First, add the real ciphers as already collected
  733|       |     */
  734|    220|    ciph_curr = head;
  735|    220|    ca_curr = ca_list;
  736|  37.4k|    while (ciph_curr != NULL) {
  ------------------
  |  Branch (736:12): [True: 37.1k, False: 220]
  ------------------
  737|  37.1k|        *ca_curr = ciph_curr->cipher;
  738|  37.1k|        ca_curr++;
  739|  37.1k|        ciph_curr = ciph_curr->next;
  740|  37.1k|    }
  741|       |
  742|       |    /*
  743|       |     * Now we add the available ones from the cipher_aliases[] table.
  744|       |     * They represent either one or more algorithms, some of which
  745|       |     * in any affected category must be supported (set in enabled_mask),
  746|       |     * or represent a cipher strength value (will be added in any case because algorithms=0).
  747|       |     */
  748|  17.6k|    for (i = 0; i < num_of_group_aliases; i++) {
  ------------------
  |  Branch (748:17): [True: 17.3k, False: 220]
  ------------------
  749|  17.3k|        uint32_t algorithm_mkey = cipher_aliases[i].algorithm_mkey;
  750|  17.3k|        uint32_t algorithm_auth = cipher_aliases[i].algorithm_auth;
  751|  17.3k|        uint32_t algorithm_enc = cipher_aliases[i].algorithm_enc;
  752|  17.3k|        uint32_t algorithm_mac = cipher_aliases[i].algorithm_mac;
  753|       |
  754|  17.3k|        if (algorithm_mkey)
  ------------------
  |  Branch (754:13): [True: 5.50k, False: 11.8k]
  ------------------
  755|  5.50k|            if ((algorithm_mkey & mask_mkey) == 0)
  ------------------
  |  Branch (755:17): [True: 440, False: 5.06k]
  ------------------
  756|    440|                continue;
  757|       |
  758|  16.9k|        if (algorithm_auth)
  ------------------
  |  Branch (758:13): [True: 4.40k, False: 12.5k]
  ------------------
  759|  4.40k|            if ((algorithm_auth & mask_auth) == 0)
  ------------------
  |  Branch (759:17): [True: 660, False: 3.74k]
  ------------------
  760|    660|                continue;
  761|       |
  762|  16.2k|        if (algorithm_enc)
  ------------------
  |  Branch (762:13): [True: 6.38k, False: 9.90k]
  ------------------
  763|  6.38k|            if ((algorithm_enc & mask_enc) == 0)
  ------------------
  |  Branch (763:17): [True: 1.32k, False: 5.06k]
  ------------------
  764|  1.32k|                continue;
  765|       |
  766|  14.9k|        if (algorithm_mac)
  ------------------
  |  Branch (766:13): [True: 2.20k, False: 12.7k]
  ------------------
  767|  2.20k|            if ((algorithm_mac & mask_mac) == 0)
  ------------------
  |  Branch (767:17): [True: 660, False: 1.54k]
  ------------------
  768|    660|                continue;
  769|       |
  770|  14.3k|        *ca_curr = (SSL_CIPHER *)(cipher_aliases + i);
  771|  14.3k|        ca_curr++;
  772|  14.3k|    }
  773|       |
  774|       |    *ca_curr = NULL; /* end of list */
  775|    220|}
ssl_ciph.c:ssl_cipher_process_rulestr:
  971|    220|{
  972|    220|    uint32_t alg_mkey, alg_auth, alg_enc, alg_mac, algo_strength;
  973|    220|    int min_tls;
  974|    220|    const char *l, *buf;
  975|    220|    int j, multi, found, rule, retval, ok, buflen;
  976|    220|    uint32_t cipher_id = 0;
  977|    220|    char ch;
  978|       |
  979|    220|    retval = 1;
  980|    220|    l = rule_str;
  981|  1.10k|    for (;;) {
  982|  1.10k|        ch = *l;
  983|       |
  984|  1.10k|        if (ch == '\0')
  ------------------
  |  Branch (984:13): [True: 0, False: 1.10k]
  ------------------
  985|      0|            break; /* done */
  986|  1.10k|        if (ch == '-') {
  ------------------
  |  Branch (986:13): [True: 0, False: 1.10k]
  ------------------
  987|      0|            rule = CIPHER_DEL;
  ------------------
  |  |  146|      0|#define CIPHER_DEL 3
  ------------------
  988|      0|            l++;
  989|  1.10k|        } else if (ch == '+') {
  ------------------
  |  Branch (989:20): [True: 0, False: 1.10k]
  ------------------
  990|      0|            rule = CIPHER_ORD;
  ------------------
  |  |  147|      0|#define CIPHER_ORD 4
  ------------------
  991|      0|            l++;
  992|  1.10k|        } else if (ch == '!') {
  ------------------
  |  Branch (992:20): [True: 440, False: 660]
  ------------------
  993|    440|            rule = CIPHER_KILL;
  ------------------
  |  |  145|    440|#define CIPHER_KILL 2
  ------------------
  994|    440|            l++;
  995|    660|        } else if (ch == '@') {
  ------------------
  |  Branch (995:20): [True: 0, False: 660]
  ------------------
  996|      0|            rule = CIPHER_SPECIAL;
  ------------------
  |  |  148|      0|#define CIPHER_SPECIAL 5
  ------------------
  997|      0|            l++;
  998|    660|        } else {
  999|    660|            rule = CIPHER_ADD;
  ------------------
  |  |  144|    660|#define CIPHER_ADD 1
  ------------------
 1000|    660|        }
 1001|       |
 1002|  1.10k|        if (ITEM_SEP(ch)) {
  ------------------
  |  |  614|  1.10k|    (((a) == ':') || ((a) == ' ') || ((a) == ';') || ((a) == ','))
  |  |  ------------------
  |  |  |  Branch (614:6): [True: 440, False: 660]
  |  |  |  Branch (614:22): [True: 0, False: 660]
  |  |  |  Branch (614:38): [True: 0, False: 660]
  |  |  |  Branch (614:54): [True: 0, False: 660]
  |  |  ------------------
  ------------------
 1003|    440|            l++;
 1004|    440|            continue;
 1005|    440|        }
 1006|       |
 1007|    660|        alg_mkey = 0;
 1008|    660|        alg_auth = 0;
 1009|    660|        alg_enc = 0;
 1010|    660|        alg_mac = 0;
 1011|    660|        min_tls = 0;
 1012|    660|        algo_strength = 0;
 1013|       |
 1014|    660|        for (;;) {
 1015|    660|            ch = *l;
 1016|    660|            buf = l;
 1017|    660|            buflen = 0;
 1018|    660|#ifndef CHARSET_EBCDIC
 1019|  6.60k|            while (((ch >= 'A') && (ch <= 'Z')) || ((ch >= '0') && (ch <= '9')) || ((ch >= 'a') && (ch <= 'z')) || (ch == '-') || (ch == '_') || (ch == '.') || (ch == '='))
  ------------------
  |  Branch (1019:21): [True: 5.94k, False: 660]
  |  Branch (1019:36): [True: 5.72k, False: 220]
  |  Branch (1019:53): [True: 660, False: 220]
  |  Branch (1019:68): [True: 0, False: 660]
  |  Branch (1019:85): [True: 220, False: 660]
  |  Branch (1019:100): [True: 220, False: 0]
  |  Branch (1019:116): [True: 0, False: 660]
  |  Branch (1019:131): [True: 0, False: 660]
  |  Branch (1019:146): [True: 0, False: 660]
  |  Branch (1019:161): [True: 0, False: 660]
  ------------------
 1020|       |#else
 1021|       |            while (isalnum((unsigned char)ch) || (ch == '-') || (ch == '_') || (ch == '.')
 1022|       |                || (ch == '='))
 1023|       |#endif
 1024|  5.94k|            {
 1025|  5.94k|                ch = *(++l);
 1026|  5.94k|                buflen++;
 1027|  5.94k|            }
 1028|       |
 1029|    660|            if (buflen == 0) {
  ------------------
  |  Branch (1029:17): [True: 0, False: 660]
  ------------------
 1030|       |                /*
 1031|       |                 * We hit something we cannot deal with,
 1032|       |                 * it is no command or separator nor
 1033|       |                 * alphanumeric, so we call this an error.
 1034|       |                 */
 1035|      0|                ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_COMMAND);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1036|      0|                return 0;
 1037|      0|            }
 1038|       |
 1039|    660|            if (rule == CIPHER_SPECIAL) {
  ------------------
  |  |  148|    660|#define CIPHER_SPECIAL 5
  ------------------
  |  Branch (1039:17): [True: 0, False: 660]
  ------------------
 1040|      0|                found = 0; /* unused -- avoid compiler warning */
 1041|      0|                break; /* special treatment */
 1042|      0|            }
 1043|       |
 1044|       |            /* check for multi-part specification */
 1045|    660|            if (ch == '+') {
  ------------------
  |  Branch (1045:17): [True: 0, False: 660]
  ------------------
 1046|      0|                multi = 1;
 1047|      0|                l++;
 1048|    660|            } else {
 1049|    660|                multi = 0;
 1050|    660|            }
 1051|       |
 1052|       |            /*
 1053|       |             * Now search for the cipher alias in the ca_list. Be careful
 1054|       |             * with the strncmp, because the "buflen" limitation
 1055|       |             * will make the rule "ADH:SOME" and the cipher
 1056|       |             * "ADH-MY-CIPHER" look like a match for buflen=3.
 1057|       |             * So additionally check whether the cipher name found
 1058|       |             * has the correct length. We can save a strlen() call:
 1059|       |             * just checking for the '\0' at the right place is
 1060|       |             * sufficient, we have to strncmp() anyway. (We cannot
 1061|       |             * use strcmp(), because buf is not '\0' terminated.)
 1062|       |             */
 1063|    660|            j = found = 0;
 1064|    660|            cipher_id = 0;
 1065|   120k|            while (ca_list[j]) {
  ------------------
  |  Branch (1065:20): [True: 120k, False: 0]
  ------------------
 1066|   120k|                if (strncmp(buf, ca_list[j]->name, buflen) == 0
  ------------------
  |  Branch (1066:21): [True: 660, False: 119k]
  ------------------
 1067|    660|                    && (ca_list[j]->name[buflen] == '\0')) {
  ------------------
  |  Branch (1067:24): [True: 660, False: 0]
  ------------------
 1068|    660|                    found = 1;
 1069|    660|                    break;
 1070|   119k|                } else if (ca_list[j]->stdname != NULL
  ------------------
  |  Branch (1070:28): [True: 111k, False: 7.92k]
  ------------------
 1071|   111k|                    && strncmp(buf, ca_list[j]->stdname, buflen) == 0
  ------------------
  |  Branch (1071:24): [True: 0, False: 111k]
  ------------------
 1072|      0|                    && ca_list[j]->stdname[buflen] == '\0') {
  ------------------
  |  Branch (1072:24): [True: 0, False: 0]
  ------------------
 1073|      0|                    found = 1;
 1074|      0|                    break;
 1075|      0|                } else
 1076|   119k|                    j++;
 1077|   120k|            }
 1078|       |
 1079|    660|            if (!found)
  ------------------
  |  Branch (1079:17): [True: 0, False: 660]
  ------------------
 1080|      0|                break; /* ignore this entry */
 1081|       |
 1082|    660|            if (ca_list[j]->algorithm_mkey) {
  ------------------
  |  Branch (1082:17): [True: 0, False: 660]
  ------------------
 1083|      0|                if (alg_mkey) {
  ------------------
  |  Branch (1083:21): [True: 0, False: 0]
  ------------------
 1084|      0|                    alg_mkey &= ca_list[j]->algorithm_mkey;
 1085|      0|                    if (!alg_mkey) {
  ------------------
  |  Branch (1085:25): [True: 0, False: 0]
  ------------------
 1086|      0|                        found = 0;
 1087|      0|                        break;
 1088|      0|                    }
 1089|      0|                } else {
 1090|      0|                    alg_mkey = ca_list[j]->algorithm_mkey;
 1091|      0|                }
 1092|      0|            }
 1093|       |
 1094|    660|            if (ca_list[j]->algorithm_auth) {
  ------------------
  |  Branch (1094:17): [True: 0, False: 660]
  ------------------
 1095|      0|                if (alg_auth) {
  ------------------
  |  Branch (1095:21): [True: 0, False: 0]
  ------------------
 1096|      0|                    alg_auth &= ca_list[j]->algorithm_auth;
 1097|      0|                    if (!alg_auth) {
  ------------------
  |  Branch (1097:25): [True: 0, False: 0]
  ------------------
 1098|      0|                        found = 0;
 1099|      0|                        break;
 1100|      0|                    }
 1101|      0|                } else {
 1102|      0|                    alg_auth = ca_list[j]->algorithm_auth;
 1103|      0|                }
 1104|      0|            }
 1105|       |
 1106|    660|            if (ca_list[j]->algorithm_enc) {
  ------------------
  |  Branch (1106:17): [True: 440, False: 220]
  ------------------
 1107|    440|                if (alg_enc) {
  ------------------
  |  Branch (1107:21): [True: 0, False: 440]
  ------------------
 1108|      0|                    alg_enc &= ca_list[j]->algorithm_enc;
 1109|      0|                    if (!alg_enc) {
  ------------------
  |  Branch (1109:25): [True: 0, False: 0]
  ------------------
 1110|      0|                        found = 0;
 1111|      0|                        break;
 1112|      0|                    }
 1113|    440|                } else {
 1114|    440|                    alg_enc = ca_list[j]->algorithm_enc;
 1115|    440|                }
 1116|    440|            }
 1117|       |
 1118|    660|            if (ca_list[j]->algorithm_mac) {
  ------------------
  |  Branch (1118:17): [True: 0, False: 660]
  ------------------
 1119|      0|                if (alg_mac) {
  ------------------
  |  Branch (1119:21): [True: 0, False: 0]
  ------------------
 1120|      0|                    alg_mac &= ca_list[j]->algorithm_mac;
 1121|      0|                    if (!alg_mac) {
  ------------------
  |  Branch (1121:25): [True: 0, False: 0]
  ------------------
 1122|      0|                        found = 0;
 1123|      0|                        break;
 1124|      0|                    }
 1125|      0|                } else {
 1126|      0|                    alg_mac = ca_list[j]->algorithm_mac;
 1127|      0|                }
 1128|      0|            }
 1129|       |
 1130|    660|            if (ca_list[j]->algo_strength & SSL_STRONG_MASK) {
  ------------------
  |  |  241|    660|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (1130:17): [True: 0, False: 660]
  ------------------
 1131|      0|                if (algo_strength & SSL_STRONG_MASK) {
  ------------------
  |  |  241|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (1131:21): [True: 0, False: 0]
  ------------------
 1132|      0|                    algo_strength &= (ca_list[j]->algo_strength & SSL_STRONG_MASK) | ~SSL_STRONG_MASK;
  ------------------
  |  |  241|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
                                  algo_strength &= (ca_list[j]->algo_strength & SSL_STRONG_MASK) | ~SSL_STRONG_MASK;
  ------------------
  |  |  241|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
 1133|      0|                    if (!(algo_strength & SSL_STRONG_MASK)) {
  ------------------
  |  |  241|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (1133:25): [True: 0, False: 0]
  ------------------
 1134|      0|                        found = 0;
 1135|      0|                        break;
 1136|      0|                    }
 1137|      0|                } else {
 1138|      0|                    algo_strength = ca_list[j]->algo_strength & SSL_STRONG_MASK;
  ------------------
  |  |  241|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
 1139|      0|                }
 1140|      0|            }
 1141|       |
 1142|    660|            if (ca_list[j]->algo_strength & SSL_DEFAULT_MASK) {
  ------------------
  |  |  242|    660|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (1142:17): [True: 220, False: 440]
  ------------------
 1143|    220|                if (algo_strength & SSL_DEFAULT_MASK) {
  ------------------
  |  |  242|    220|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (1143:21): [True: 0, False: 220]
  ------------------
 1144|      0|                    algo_strength &= (ca_list[j]->algo_strength & SSL_DEFAULT_MASK) | ~SSL_DEFAULT_MASK;
  ------------------
  |  |  242|      0|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
                                  algo_strength &= (ca_list[j]->algo_strength & SSL_DEFAULT_MASK) | ~SSL_DEFAULT_MASK;
  ------------------
  |  |  242|      0|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
 1145|      0|                    if (!(algo_strength & SSL_DEFAULT_MASK)) {
  ------------------
  |  |  242|      0|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (1145:25): [True: 0, False: 0]
  ------------------
 1146|      0|                        found = 0;
 1147|      0|                        break;
 1148|      0|                    }
 1149|    220|                } else {
 1150|    220|                    algo_strength |= ca_list[j]->algo_strength & SSL_DEFAULT_MASK;
  ------------------
  |  |  242|    220|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
 1151|    220|                }
 1152|    220|            }
 1153|       |
 1154|    660|            if (ca_list[j]->valid) {
  ------------------
  |  Branch (1154:17): [True: 0, False: 660]
  ------------------
 1155|       |                /*
 1156|       |                 * explicit ciphersuite found; its protocol version does not
 1157|       |                 * become part of the search pattern!
 1158|       |                 */
 1159|       |
 1160|      0|                cipher_id = ca_list[j]->id;
 1161|    660|            } else {
 1162|       |                /*
 1163|       |                 * not an explicit ciphersuite; only in this case, the
 1164|       |                 * protocol version is considered part of the search pattern
 1165|       |                 */
 1166|       |
 1167|    660|                if (ca_list[j]->min_tls) {
  ------------------
  |  Branch (1167:21): [True: 0, False: 660]
  ------------------
 1168|      0|                    if (min_tls != 0 && min_tls != ca_list[j]->min_tls) {
  ------------------
  |  Branch (1168:25): [True: 0, False: 0]
  |  Branch (1168:41): [True: 0, False: 0]
  ------------------
 1169|      0|                        found = 0;
 1170|      0|                        break;
 1171|      0|                    } else {
 1172|      0|                        min_tls = ca_list[j]->min_tls;
 1173|      0|                    }
 1174|      0|                }
 1175|    660|            }
 1176|       |
 1177|    660|            if (!multi)
  ------------------
  |  Branch (1177:17): [True: 660, False: 0]
  ------------------
 1178|    660|                break;
 1179|    660|        }
 1180|       |
 1181|       |        /*
 1182|       |         * Ok, we have the rule, now apply it
 1183|       |         */
 1184|    660|        if (rule == CIPHER_SPECIAL) { /* special command */
  ------------------
  |  |  148|    660|#define CIPHER_SPECIAL 5
  ------------------
  |  Branch (1184:13): [True: 0, False: 660]
  ------------------
 1185|      0|            ok = 0;
 1186|      0|            if ((buflen == 8) && HAS_PREFIX(buf, "STRENGTH")) {
  ------------------
  |  |   58|      0|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (58:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1186:17): [True: 0, False: 0]
  ------------------
 1187|      0|                ok = ssl_cipher_strength_sort(head_p, tail_p);
 1188|      0|            } else if (buflen == 10 && CHECK_AND_SKIP_PREFIX(buf, "SECLEVEL=")) {
  ------------------
  |  |   61|      0|    (HAS_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
  |  |  ------------------
  |  |  |  |   58|      0|#define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (58:30): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (61:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1188:24): [True: 0, False: 0]
  ------------------
 1189|      0|                int level = *buf - '0';
 1190|      0|                if (level < 0 || level > 5) {
  ------------------
  |  Branch (1190:21): [True: 0, False: 0]
  |  Branch (1190:34): [True: 0, False: 0]
  ------------------
 1191|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_COMMAND);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1192|      0|                } else {
 1193|      0|                    c->sec_level = level;
 1194|      0|                    ok = 1;
 1195|      0|                }
 1196|      0|            } else {
 1197|      0|                ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_COMMAND);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1198|      0|            }
 1199|      0|            if (ok == 0)
  ------------------
  |  Branch (1199:17): [True: 0, False: 0]
  ------------------
 1200|      0|                retval = 0;
 1201|       |            /*
 1202|       |             * We do not support any "multi" options
 1203|       |             * together with "@", so throw away the
 1204|       |             * rest of the command, if any left, until
 1205|       |             * end or ':' is found.
 1206|       |             */
 1207|      0|            while ((*l != '\0') && !ITEM_SEP(*l))
  ------------------
  |  |  614|      0|    (((a) == ':') || ((a) == ' ') || ((a) == ';') || ((a) == ','))
  |  |  ------------------
  |  |  |  Branch (614:6): [True: 0, False: 0]
  |  |  |  Branch (614:22): [True: 0, False: 0]
  |  |  |  Branch (614:38): [True: 0, False: 0]
  |  |  |  Branch (614:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1207:20): [True: 0, False: 0]
  ------------------
 1208|      0|                l++;
 1209|    660|        } else if (found) {
  ------------------
  |  Branch (1209:20): [True: 660, False: 0]
  ------------------
 1210|    660|            ssl_cipher_apply_rule(cipher_id,
 1211|    660|                alg_mkey, alg_auth, alg_enc, alg_mac,
 1212|    660|                min_tls, algo_strength, rule, -1, head_p,
 1213|    660|                tail_p);
 1214|    660|        } else {
 1215|      0|            while ((*l != '\0') && !ITEM_SEP(*l))
  ------------------
  |  |  614|      0|    (((a) == ':') || ((a) == ' ') || ((a) == ';') || ((a) == ','))
  |  |  ------------------
  |  |  |  Branch (614:6): [True: 0, False: 0]
  |  |  |  Branch (614:22): [True: 0, False: 0]
  |  |  |  Branch (614:38): [True: 0, False: 0]
  |  |  |  Branch (614:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1215:20): [True: 0, False: 0]
  ------------------
 1216|      0|                l++;
 1217|      0|        }
 1218|    660|        if (*l == '\0')
  ------------------
  |  Branch (1218:13): [True: 220, False: 440]
  ------------------
 1219|    220|            break; /* done */
 1220|    660|    }
 1221|       |
 1222|    220|    return retval;
 1223|    220|}
ssl_ciph.c:update_cipher_list_by_id:
 1323|    220|{
 1324|    220|    STACK_OF(SSL_CIPHER) *tmp_cipher_list = sk_SSL_CIPHER_dup(cipherstack);
  ------------------
  |  |   33|    220|#define STACK_OF(type) struct stack_st_##type
  ------------------
                  STACK_OF(SSL_CIPHER) *tmp_cipher_list = sk_SSL_CIPHER_dup(cipherstack);
  ------------------
  |  | 1027|    220|#define sk_SSL_CIPHER_dup(sk) ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_dup(ossl_check_const_SSL_CIPHER_sk_type(sk)))
  ------------------
 1325|       |
 1326|    220|    if (tmp_cipher_list == NULL) {
  ------------------
  |  Branch (1326:9): [True: 0, False: 220]
  ------------------
 1327|      0|        return 0;
 1328|      0|    }
 1329|       |
 1330|    220|    sk_SSL_CIPHER_free(*cipher_list_by_id);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1331|    220|    *cipher_list_by_id = tmp_cipher_list;
 1332|       |
 1333|    220|    (void)sk_SSL_CIPHER_set_cmp_func(*cipher_list_by_id, ssl_cipher_ptr_id_cmp);
  ------------------
  |  | 1029|    220|#define sk_SSL_CIPHER_set_cmp_func(sk, cmp) ((sk_SSL_CIPHER_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_compfunc_type(cmp)))
  ------------------
 1334|    220|    sk_SSL_CIPHER_sort(*cipher_list_by_id);
  ------------------
  |  | 1025|    220|#define sk_SSL_CIPHER_sort(sk) OPENSSL_sk_sort(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1335|       |
 1336|    220|    return 1;
 1337|    220|}

SSL_CONF_CTX_free:
 1115|    220|{
 1116|    220|    if (cctx) {
  ------------------
  |  Branch (1116:9): [True: 0, False: 220]
  ------------------
 1117|      0|        free_cert_filename(cctx);
 1118|      0|        OPENSSL_free(cctx->prefix);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1119|      0|        sk_X509_NAME_pop_free(cctx->canames, X509_NAME_free);
  ------------------
  |  |   70|      0|#define sk_X509_NAME_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_sk_type(sk), ossl_check_X509_NAME_freefunc_type(freefunc))
  ------------------
 1120|      0|        OPENSSL_free(cctx);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1121|      0|    }
 1122|    220|}

OPENSSL_init_ssl:
   47|    441|{
   48|    441|    static int stoperrset = 0;
   49|       |
   50|    441|    if (stopped) {
  ------------------
  |  Branch (50:9): [True: 0, False: 441]
  ------------------
   51|      0|        if (!stoperrset) {
  ------------------
  |  Branch (51:13): [True: 0, False: 0]
  ------------------
   52|       |            /*
   53|       |             * We only ever set this once to avoid getting into an infinite
   54|       |             * loop where the error system keeps trying to init and fails so
   55|       |             * sets an error etc
   56|       |             */
   57|      0|            stoperrset = 1;
   58|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_INIT_FAIL);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   59|      0|        }
   60|      0|        return 0;
   61|      0|    }
   62|       |
   63|    441|    opts |= OPENSSL_INIT_ADD_ALL_CIPHERS
  ------------------
  |  |  506|    441|#define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L
  ------------------
   64|    441|        | OPENSSL_INIT_ADD_ALL_DIGESTS;
  ------------------
  |  |  507|    441|#define OPENSSL_INIT_ADD_ALL_DIGESTS 0x00000008L
  ------------------
   65|    441|#ifndef OPENSSL_NO_AUTOLOAD_CONFIG
   66|    441|    if ((opts & OPENSSL_INIT_NO_LOAD_CONFIG) == 0)
  ------------------
  |  |  511|    441|#define OPENSSL_INIT_NO_LOAD_CONFIG 0x00000080L
  ------------------
  |  Branch (66:9): [True: 441, False: 0]
  ------------------
   67|    441|        opts |= OPENSSL_INIT_LOAD_CONFIG;
  ------------------
  |  |  510|    441|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
   68|    441|#endif
   69|       |
   70|    441|    if (!OPENSSL_init_crypto(opts, settings))
  ------------------
  |  Branch (70:9): [True: 0, False: 441]
  ------------------
   71|      0|        return 0;
   72|       |
   73|    441|    if (!RUN_ONCE(&ssl_base, ossl_init_ssl_base))
  ------------------
  |  |  130|    441|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 441, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (73:9): [True: 0, False: 441]
  ------------------
   74|      0|        return 0;
   75|       |
   76|    441|    return 1;
   77|    441|}
ssl_init.c:ossl_init_ssl_base:
   25|      2|{
   26|      2|#ifndef OPENSSL_NO_COMP
   27|      2|    OSSL_TRACE(INIT, "ossl_init_ssl_base: "
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   28|      2|                     "SSL_COMP_get_compression_methods()\n");
   29|       |    /*
   30|       |     * This will initialise the built-in compression algorithms. The value
   31|       |     * returned is a STACK_OF(SSL_COMP), but that can be discarded safely
   32|       |     */
   33|      2|    SSL_COMP_get_compression_methods();
   34|      2|#endif
   35|      2|    ssl_sort_cipher_list();
   36|      2|    OSSL_TRACE(INIT, "ossl_init_ssl_base: SSL_add_ssl_module()\n");
  ------------------
  |  |  290|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  285|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   37|      2|    ssl_base_inited = 1;
   38|      2|    return 1;
   39|      2|}

SSL_clear:
  568|    219|{
  569|    219|    if (s->method == NULL) {
  ------------------
  |  Branch (569:9): [True: 0, False: 219]
  ------------------
  570|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_NO_METHOD_SPECIFIED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  571|      0|        return 0;
  572|      0|    }
  573|       |
  574|    219|    return s->method->ssl_reset(s);
  575|    219|}
ossl_ssl_connection_reset:
  578|    439|{
  579|    439|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    439|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    439|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 439]
  |  |  |  |  ------------------
  |  |  |  |   33|    439|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    439|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 439, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    439|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    439|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  580|       |
  581|    439|    if (sc == NULL)
  ------------------
  |  Branch (581:9): [True: 0, False: 439]
  ------------------
  582|      0|        return 0;
  583|       |
  584|    439|    if (ssl_clear_bad_session(sc)) {
  ------------------
  |  Branch (584:9): [True: 0, False: 439]
  ------------------
  585|      0|        SSL_SESSION_free(sc->session);
  586|      0|        sc->session = NULL;
  587|      0|    }
  588|    439|    SSL_SESSION_free(sc->psksession);
  589|    439|    sc->psksession = NULL;
  590|    439|    OPENSSL_free(sc->psksession_id);
  ------------------
  |  |  131|    439|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  591|    439|    sc->psksession_id = NULL;
  592|    439|    sc->psksession_id_len = 0;
  593|    439|    sc->hello_retry_request = SSL_HRR_NONE;
  594|    439|    sc->sent_tickets = 0;
  595|       |
  596|    439|    sc->error = 0;
  597|    439|    sc->hit = 0;
  598|    439|    sc->shutdown = 0;
  599|       |
  600|    439|    if (sc->renegotiate) {
  ------------------
  |  Branch (600:9): [True: 0, False: 439]
  ------------------
  601|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  602|      0|        return 0;
  603|      0|    }
  604|       |
  605|    439|    ossl_statem_clear(sc);
  606|       |
  607|    439|    sc->version = s->method->version;
  608|    439|    sc->client_version = sc->version;
  609|    439|    sc->rwstate = SSL_NOTHING;
  ------------------
  |  |  932|    439|#define SSL_NOTHING 1
  ------------------
  610|       |
  611|    439|    BUF_MEM_free(sc->init_buf);
  612|    439|    sc->init_buf = NULL;
  613|    439|    sc->first_packet = 0;
  614|       |
  615|    439|    sc->key_update = SSL_KEY_UPDATE_NONE;
  ------------------
  |  | 1048|    439|#define SSL_KEY_UPDATE_NONE -1
  ------------------
  616|    439|    memset(sc->ext.compress_certificate_from_peer, 0,
  617|    439|        sizeof(sc->ext.compress_certificate_from_peer));
  618|    439|    sc->ext.compress_certificate_sent = 0;
  619|       |
  620|    439|    EVP_MD_CTX_free(sc->pha_dgst);
  621|    439|    sc->pha_dgst = NULL;
  622|       |
  623|       |    /* Reset DANE verification result state */
  624|    439|    sc->dane.mdpth = -1;
  625|    439|    sc->dane.pdpth = -1;
  626|    439|    X509_free(sc->dane.mcert);
  627|    439|    sc->dane.mcert = NULL;
  628|    439|    sc->dane.mtlsa = NULL;
  629|       |
  630|       |    /* Clear the verification result peername */
  631|    439|    X509_VERIFY_PARAM_move_peername(sc->param, NULL);
  632|       |
  633|       |    /* Clear any shared connection state */
  634|    439|    OPENSSL_free(sc->shared_sigalgs);
  ------------------
  |  |  131|    439|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  635|    439|    sc->shared_sigalgs = NULL;
  636|    439|    sc->shared_sigalgslen = 0;
  637|       |
  638|       |    /*
  639|       |     * Check to see if we were changed into a different method, if so, revert
  640|       |     * back.
  641|       |     */
  642|    439|    if (s->method != s->defltmeth) {
  ------------------
  |  Branch (642:9): [True: 0, False: 439]
  ------------------
  643|      0|        s->method->ssl_deinit(s);
  644|      0|        s->method = s->defltmeth;
  645|      0|        if (!s->method->ssl_init(s))
  ------------------
  |  Branch (645:13): [True: 0, False: 0]
  ------------------
  646|      0|            return 0;
  647|    439|    } else {
  648|    439|        if (!s->method->ssl_clear(s))
  ------------------
  |  Branch (648:13): [True: 0, False: 439]
  ------------------
  649|      0|            return 0;
  650|    439|    }
  651|       |
  652|    439|    ossl_quic_tls_clear(sc->qtls);
  653|       |
  654|    439|    if (!RECORD_LAYER_reset(&sc->rlayer))
  ------------------
  |  Branch (654:9): [True: 0, False: 439]
  ------------------
  655|      0|        return 0;
  656|       |
  657|    439|    return 1;
  658|    439|}
SSL_new:
  691|    220|{
  692|    220|    if (ctx == NULL) {
  ------------------
  |  Branch (692:9): [True: 0, False: 220]
  ------------------
  693|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_NULL_SSL_CTX);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  694|      0|        return NULL;
  695|      0|    }
  696|    220|    if (ctx->method == NULL) {
  ------------------
  |  Branch (696:9): [True: 0, False: 220]
  ------------------
  697|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  698|      0|        return NULL;
  699|      0|    }
  700|    220|    return ctx->method->ssl_new(ctx);
  701|    220|}
ossl_ssl_init:
  704|    220|{
  705|    220|    if (!SSL_CTX_up_ref(ctx))
  ------------------
  |  Branch (705:9): [True: 0, False: 220]
  ------------------
  706|      0|        return 0;
  707|       |
  708|    220|    ssl->lock = CRYPTO_THREAD_lock_new();
  709|       |
  710|    220|    if (ssl->lock == NULL || !CRYPTO_NEW_REF(&ssl->references, 1))
  ------------------
  |  Branch (710:9): [True: 0, False: 220]
  |  Branch (710:30): [True: 0, False: 220]
  ------------------
  711|      0|        goto err;
  712|       |
  713|    220|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL, ssl, &ssl->ex_data)) {
  ------------------
  |  |  250|    220|#define CRYPTO_EX_INDEX_SSL 0
  ------------------
  |  Branch (713:9): [True: 0, False: 220]
  ------------------
  714|      0|        CRYPTO_FREE_REF(&ssl->references);
  715|      0|        goto err;
  716|      0|    }
  717|       |
  718|    220|    ssl->ctx = ctx;
  719|    220|    ssl->type = type;
  720|    220|    ssl->defltmeth = ssl->method = method;
  721|       |
  722|    220|    return 1;
  723|       |
  724|      0|err:
  725|      0|    CRYPTO_THREAD_lock_free(ssl->lock);
  726|       |    ssl->lock = NULL;
  727|      0|    SSL_CTX_free(ctx);
  728|      0|    return 0;
  729|    220|}
ossl_ssl_connection_new_int:
  733|    220|{
  734|    220|    SSL_CONNECTION *s;
  735|    220|    SSL *ssl;
  736|       |
  737|    220|    s = OPENSSL_zalloc(sizeof(*s));
  ------------------
  |  |  108|    220|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  738|    220|    if (s == NULL)
  ------------------
  |  Branch (738:9): [True: 0, False: 220]
  ------------------
  739|      0|        return NULL;
  740|       |
  741|    220|    ssl = &s->ssl;
  742|    220|    s->user_ssl = (user_ssl == NULL) ? ssl : user_ssl;
  ------------------
  |  Branch (742:19): [True: 220, False: 0]
  ------------------
  743|       |
  744|    220|    if (!ossl_ssl_init(ssl, ctx, method, SSL_TYPE_SSL_CONNECTION)) {
  ------------------
  |  | 1223|    220|#define SSL_TYPE_SSL_CONNECTION 0
  ------------------
  |  Branch (744:9): [True: 0, False: 220]
  ------------------
  745|      0|        OPENSSL_free(s);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  746|      0|        s = NULL;
  747|      0|        ssl = NULL;
  748|      0|        goto sslerr;
  749|      0|    }
  750|       |
  751|    220|    RECORD_LAYER_init(&s->rlayer, s);
  752|       |
  753|    220|    s->options = ctx->options;
  754|       |
  755|    220|    s->dane.flags = ctx->dane.flags;
  756|    220|    if (method->version == ctx->method->version) {
  ------------------
  |  Branch (756:9): [True: 220, False: 0]
  ------------------
  757|    220|        s->min_proto_version = ctx->min_proto_version;
  758|    220|        s->max_proto_version = ctx->max_proto_version;
  759|    220|    }
  760|       |
  761|    220|    s->mode = ctx->mode;
  762|    220|    s->max_cert_list = ctx->max_cert_list;
  763|    220|    s->max_early_data = ctx->max_early_data;
  764|    220|    s->recv_max_early_data = ctx->recv_max_early_data;
  765|       |
  766|    220|    s->num_tickets = ctx->num_tickets;
  767|    220|    s->pha_enabled = ctx->pha_enabled;
  768|       |
  769|       |    /* Shallow copy of the ciphersuites stack */
  770|    220|    s->tls13_ciphersuites = sk_SSL_CIPHER_dup(ctx->tls13_ciphersuites);
  ------------------
  |  | 1027|    220|#define sk_SSL_CIPHER_dup(sk) ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_dup(ossl_check_const_SSL_CIPHER_sk_type(sk)))
  ------------------
  771|    220|    if (s->tls13_ciphersuites == NULL)
  ------------------
  |  Branch (771:9): [True: 0, False: 220]
  ------------------
  772|      0|        goto cerr;
  773|       |
  774|       |    /*
  775|       |     * Earlier library versions used to copy the pointer to the CERT, not
  776|       |     * its contents; only when setting new parameters for the per-SSL
  777|       |     * copy, ssl_cert_new would be called (and the direct reference to
  778|       |     * the per-SSL_CTX settings would be lost, but those still were
  779|       |     * indirectly accessed for various purposes, and for that reason they
  780|       |     * used to be known as s->ctx->default_cert). Now we don't look at the
  781|       |     * SSL_CTX's CERT after having duplicated it once.
  782|       |     */
  783|    220|    s->cert = ssl_cert_dup(ctx->cert);
  784|    220|    if (s->cert == NULL)
  ------------------
  |  Branch (784:9): [True: 0, False: 220]
  ------------------
  785|      0|        goto sslerr;
  786|       |
  787|    220|    RECORD_LAYER_set_read_ahead(&s->rlayer, ctx->read_ahead);
  ------------------
  |  |  134|    220|#define RECORD_LAYER_set_read_ahead(rl, ra) ((rl)->read_ahead = (ra))
  ------------------
  788|    220|    s->msg_callback = ctx->msg_callback;
  789|    220|    s->msg_callback_arg = ctx->msg_callback_arg;
  790|    220|    s->verify_mode = ctx->verify_mode;
  791|    220|    s->not_resumable_session_cb = ctx->not_resumable_session_cb;
  792|    220|    s->rlayer.record_padding_cb = ctx->record_padding_cb;
  793|    220|    s->rlayer.record_padding_arg = ctx->record_padding_arg;
  794|    220|    s->rlayer.block_padding = ctx->block_padding;
  795|    220|    s->rlayer.hs_padding = ctx->hs_padding;
  796|    220|    s->sid_ctx_length = ctx->sid_ctx_length;
  797|    220|    if (!ossl_assert(s->sid_ctx_length <= sizeof(s->sid_ctx)))
  ------------------
  |  |   52|    220|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    220|    __FILE__, __LINE__)
  ------------------
  |  Branch (797:9): [True: 0, False: 220]
  ------------------
  798|      0|        goto err;
  799|    220|    memcpy(&s->sid_ctx, &ctx->sid_ctx, sizeof(s->sid_ctx));
  800|    220|    s->verify_callback = ctx->default_verify_callback;
  801|    220|    s->generate_session_id = ctx->generate_session_id;
  802|       |
  803|    220|    s->param = X509_VERIFY_PARAM_new();
  804|    220|    if (s->param == NULL)
  ------------------
  |  Branch (804:9): [True: 0, False: 220]
  ------------------
  805|      0|        goto asn1err;
  806|    220|    X509_VERIFY_PARAM_inherit(s->param, ctx->param);
  807|    220|    s->quiet_shutdown = IS_QUIC_CTX(ctx) ? 0 : ctx->quiet_shutdown;
  ------------------
  |  |   54|    220|#define IS_QUIC_CTX(ctx) IS_QUIC_METHOD((ctx)->method)
  |  |  ------------------
  |  |  |  |   52|    220|    ((m) == OSSL_QUIC_client_method() || (m) == OSSL_QUIC_client_thread_method() || (m) == OSSL_QUIC_server_method())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:6): [True: 0, False: 220]
  |  |  |  |  |  Branch (52:42): [True: 0, False: 220]
  |  |  |  |  |  Branch (52:85): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  808|       |
  809|    220|    if (!IS_QUIC_CTX(ctx))
  ------------------
  |  |   54|    220|#define IS_QUIC_CTX(ctx) IS_QUIC_METHOD((ctx)->method)
  |  |  ------------------
  |  |  |  |   52|    220|    ((m) == OSSL_QUIC_client_method() || (m) == OSSL_QUIC_client_thread_method() || (m) == OSSL_QUIC_server_method())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:6): [True: 0, False: 220]
  |  |  |  |  |  Branch (52:42): [True: 0, False: 220]
  |  |  |  |  |  Branch (52:85): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  810|    220|        s->ext.max_fragment_len_mode = ctx->ext.max_fragment_len_mode;
  811|       |
  812|    220|    s->max_send_fragment = ctx->max_send_fragment;
  813|    220|    s->split_send_fragment = ctx->split_send_fragment;
  814|    220|    s->max_pipelines = ctx->max_pipelines;
  815|    220|    s->rlayer.default_read_buf_len = ctx->default_read_buf_len;
  816|       |
  817|    220|    s->ext.debug_cb = 0;
  818|    220|    s->ext.debug_arg = NULL;
  819|    220|    s->ext.ticket_expected = 0;
  820|    220|    s->ext.status_type = ctx->ext.status_type;
  821|    220|    s->ext.status_expected = 0;
  822|    220|    s->ext.ocsp.ids = NULL;
  823|    220|    s->ext.ocsp.exts = NULL;
  824|    220|    s->ext.ocsp.resp = NULL;
  825|    220|    s->ext.ocsp.resp_len = 0;
  826|    220|    s->ext.ocsp.resp_ex = NULL;
  827|       |
  828|    220|    if (!SSL_CTX_up_ref(ctx))
  ------------------
  |  Branch (828:9): [True: 0, False: 220]
  ------------------
  829|      0|        goto err;
  830|       |
  831|    220|    s->session_ctx = ctx;
  832|    220|    if (ctx->ext.ecpointformats != NULL) {
  ------------------
  |  Branch (832:9): [True: 0, False: 220]
  ------------------
  833|      0|        s->ext.ecpointformats = OPENSSL_memdup(ctx->ext.ecpointformats,
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  834|      0|            ctx->ext.ecpointformats_len);
  835|      0|        if (s->ext.ecpointformats == NULL) {
  ------------------
  |  Branch (835:13): [True: 0, False: 0]
  ------------------
  836|      0|            s->ext.ecpointformats_len = 0;
  837|      0|            goto err;
  838|      0|        }
  839|      0|        s->ext.ecpointformats_len = ctx->ext.ecpointformats_len;
  840|      0|    }
  841|    220|    if (ctx->ext.supportedgroups != NULL) {
  ------------------
  |  Branch (841:9): [True: 220, False: 0]
  ------------------
  842|    220|        size_t add = 0;
  843|       |
  844|    220|        if (ctx->ext.supportedgroups_len == 0)
  ------------------
  |  Branch (844:13): [True: 0, False: 220]
  ------------------
  845|       |            /* Add 1 so allocation won't fail */
  846|      0|            add = 1;
  847|    220|        s->ext.supportedgroups = OPENSSL_memdup(ctx->ext.supportedgroups,
  ------------------
  |  |  133|    220|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  848|    220|            (ctx->ext.supportedgroups_len + add)
  849|    220|                * sizeof(*ctx->ext.supportedgroups));
  850|    220|        if (s->ext.supportedgroups == NULL) {
  ------------------
  |  Branch (850:13): [True: 0, False: 220]
  ------------------
  851|      0|            s->ext.supportedgroups_len = 0;
  852|      0|            goto err;
  853|      0|        }
  854|    220|        s->ext.supportedgroups_len = ctx->ext.supportedgroups_len;
  855|    220|    }
  856|    220|    if (ctx->ext.keyshares != NULL) {
  ------------------
  |  Branch (856:9): [True: 220, False: 0]
  ------------------
  857|    220|        size_t add = 0;
  858|       |
  859|    220|        if (ctx->ext.keyshares_len == 0)
  ------------------
  |  Branch (859:13): [True: 0, False: 220]
  ------------------
  860|       |            /* Add 1 so allocation won't fail */
  861|      0|            add = 1;
  862|    220|        s->ext.keyshares = OPENSSL_memdup(ctx->ext.keyshares,
  ------------------
  |  |  133|    220|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  863|    220|            (ctx->ext.keyshares_len + add)
  864|    220|                * sizeof(*ctx->ext.keyshares));
  865|    220|        if (s->ext.keyshares == NULL) {
  ------------------
  |  Branch (865:13): [True: 0, False: 220]
  ------------------
  866|      0|            s->ext.keyshares_len = 0;
  867|      0|            goto err;
  868|      0|        }
  869|    220|        s->ext.keyshares_len = ctx->ext.keyshares_len;
  870|    220|    }
  871|    220|    if (ctx->ext.tuples != NULL) {
  ------------------
  |  Branch (871:9): [True: 220, False: 0]
  ------------------
  872|    220|        size_t add = 0;
  873|       |
  874|    220|        if (ctx->ext.tuples_len == 0)
  ------------------
  |  Branch (874:13): [True: 0, False: 220]
  ------------------
  875|       |            /* Add 1 so allocation won't fail */
  876|      0|            add = 1;
  877|    220|        s->ext.tuples = OPENSSL_memdup(ctx->ext.tuples,
  ------------------
  |  |  133|    220|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  878|    220|            (ctx->ext.tuples_len + add)
  879|    220|                * sizeof(*ctx->ext.tuples));
  880|    220|        if (s->ext.tuples == NULL) {
  ------------------
  |  Branch (880:13): [True: 0, False: 220]
  ------------------
  881|      0|            s->ext.tuples_len = 0;
  882|      0|            goto err;
  883|      0|        }
  884|    220|        s->ext.tuples_len = ctx->ext.tuples_len;
  885|    220|    }
  886|       |
  887|    220|#ifndef OPENSSL_NO_NEXTPROTONEG
  888|    220|    s->ext.npn = NULL;
  889|    220|#endif
  890|       |
  891|    220|    if (ctx->ext.alpn != NULL) {
  ------------------
  |  Branch (891:9): [True: 0, False: 220]
  ------------------
  892|      0|        s->ext.alpn = OPENSSL_malloc(ctx->ext.alpn_len);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  893|      0|        if (s->ext.alpn == NULL) {
  ------------------
  |  Branch (893:13): [True: 0, False: 0]
  ------------------
  894|      0|            s->ext.alpn_len = 0;
  895|      0|            goto err;
  896|      0|        }
  897|      0|        memcpy(s->ext.alpn, ctx->ext.alpn, ctx->ext.alpn_len);
  898|      0|        s->ext.alpn_len = ctx->ext.alpn_len;
  899|      0|    }
  900|       |
  901|    220|    s->verified_chain = NULL;
  902|    220|    s->verify_result = X509_V_OK;
  ------------------
  |  |  312|    220|#define X509_V_OK 0
  ------------------
  903|       |
  904|    220|    s->default_passwd_callback = ctx->default_passwd_callback;
  905|    220|    s->default_passwd_callback_userdata = ctx->default_passwd_callback_userdata;
  906|       |
  907|    220|    s->key_update = SSL_KEY_UPDATE_NONE;
  ------------------
  |  | 1048|    220|#define SSL_KEY_UPDATE_NONE -1
  ------------------
  908|       |
  909|    220|    if (!IS_QUIC_CTX(ctx)) {
  ------------------
  |  |   54|    220|#define IS_QUIC_CTX(ctx) IS_QUIC_METHOD((ctx)->method)
  |  |  ------------------
  |  |  |  |   52|    220|    ((m) == OSSL_QUIC_client_method() || (m) == OSSL_QUIC_client_thread_method() || (m) == OSSL_QUIC_server_method())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:6): [True: 0, False: 220]
  |  |  |  |  |  Branch (52:42): [True: 0, False: 220]
  |  |  |  |  |  Branch (52:85): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  910|    220|        s->allow_early_data_cb = ctx->allow_early_data_cb;
  911|    220|        s->allow_early_data_cb_data = ctx->allow_early_data_cb_data;
  912|    220|    }
  913|       |
  914|    220|    if (!method->ssl_init(ssl))
  ------------------
  |  Branch (914:9): [True: 0, False: 220]
  ------------------
  915|      0|        goto sslerr;
  916|       |
  917|    220|    s->server = (method->ssl_accept == ssl_undefined_function) ? 0 : 1;
  ------------------
  |  Branch (917:17): [True: 220, False: 0]
  ------------------
  918|       |
  919|    220|    if (!method->ssl_reset(ssl))
  ------------------
  |  Branch (919:9): [True: 0, False: 220]
  ------------------
  920|      0|        goto sslerr;
  921|       |
  922|    220|#ifndef OPENSSL_NO_PSK
  923|    220|    s->psk_client_callback = ctx->psk_client_callback;
  924|    220|    s->psk_server_callback = ctx->psk_server_callback;
  925|    220|#endif
  926|    220|    s->psk_find_session_cb = ctx->psk_find_session_cb;
  927|    220|    s->psk_use_session_cb = ctx->psk_use_session_cb;
  928|       |
  929|    220|    s->async_cb = ctx->async_cb;
  930|    220|    s->async_cb_arg = ctx->async_cb_arg;
  931|       |
  932|    220|    s->job = NULL;
  933|       |
  934|       |#ifndef OPENSSL_NO_COMP_ALG
  935|       |    memcpy(s->cert_comp_prefs, ctx->cert_comp_prefs, sizeof(s->cert_comp_prefs));
  936|       |#endif
  937|    220|    if (ctx->client_cert_type != NULL) {
  ------------------
  |  Branch (937:9): [True: 0, False: 220]
  ------------------
  938|      0|        s->client_cert_type = OPENSSL_memdup(ctx->client_cert_type,
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  939|      0|            ctx->client_cert_type_len);
  940|      0|        if (s->client_cert_type == NULL)
  ------------------
  |  Branch (940:13): [True: 0, False: 0]
  ------------------
  941|      0|            goto sslerr;
  942|      0|        s->client_cert_type_len = ctx->client_cert_type_len;
  943|      0|    }
  944|    220|    if (ctx->server_cert_type != NULL) {
  ------------------
  |  Branch (944:9): [True: 0, False: 220]
  ------------------
  945|      0|        s->server_cert_type = OPENSSL_memdup(ctx->server_cert_type,
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  946|      0|            ctx->server_cert_type_len);
  947|      0|        if (s->server_cert_type == NULL)
  ------------------
  |  Branch (947:13): [True: 0, False: 0]
  ------------------
  948|      0|            goto sslerr;
  949|      0|        s->server_cert_type_len = ctx->server_cert_type_len;
  950|      0|    }
  951|       |
  952|    220|#ifndef OPENSSL_NO_CT
  953|    220|    if (!SSL_set_ct_validation_callback(ssl, ctx->ct_validation_callback,
  ------------------
  |  Branch (953:9): [True: 0, False: 220]
  ------------------
  954|    220|            ctx->ct_validation_callback_arg))
  955|      0|        goto sslerr;
  956|    220|#endif
  957|       |
  958|    220|    s->ssl_pkey_num = SSL_PKEY_NUM + ctx->sigalg_list_len;
  ------------------
  |  |  328|    220|#define SSL_PKEY_NUM 9
  ------------------
  959|    220|    return ssl;
  960|      0|cerr:
  961|      0|    ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  962|      0|    goto err;
  963|      0|asn1err:
  964|      0|    ERR_raise(ERR_LIB_SSL, ERR_R_ASN1_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  965|      0|    goto err;
  966|      0|sslerr:
  967|      0|    ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  968|      0|err:
  969|      0|    SSL_free(ssl);
  970|       |    return NULL;
  971|      0|}
ossl_ssl_connection_new:
  974|    220|{
  975|       |    return ossl_ssl_connection_new_int(ctx, NULL, ctx->method);
  976|    220|}
SSL_free:
 1423|    220|{
 1424|    220|    int i;
 1425|       |
 1426|    220|    if (s == NULL)
  ------------------
  |  Branch (1426:9): [True: 0, False: 220]
  ------------------
 1427|      0|        return;
 1428|    220|    CRYPTO_DOWN_REF(&s->references, &i);
 1429|    220|    REF_PRINT_COUNT("SSL", i, s);
  ------------------
  |  |  301|    220|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    220|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|    220|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|    220|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1430|    220|    if (i > 0)
  ------------------
  |  Branch (1430:9): [True: 0, False: 220]
  ------------------
 1431|      0|        return;
 1432|    220|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    220|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 1433|       |
 1434|    220|    if (s->method != NULL)
  ------------------
  |  Branch (1434:9): [True: 220, False: 0]
  ------------------
 1435|    220|        s->method->ssl_free(s);
 1436|       |
 1437|    220|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL, s, &s->ex_data);
  ------------------
  |  |  250|    220|#define CRYPTO_EX_INDEX_SSL 0
  ------------------
 1438|    220|    SSL_CTX_free(s->ctx);
 1439|    220|    CRYPTO_THREAD_lock_free(s->lock);
 1440|    220|    CRYPTO_FREE_REF(&s->references);
 1441|       |
 1442|    220|    OPENSSL_free(s);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1443|    220|}
ossl_ssl_connection_free:
 1446|    220|{
 1447|    220|    SSL_CONNECTION *s;
 1448|       |
 1449|    220|    s = SSL_CONNECTION_FROM_SSL_ONLY(ssl);
  ------------------
  |  |   23|    220|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|    220|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  |  |   18|    220|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    220|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 220, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|    220|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|    220|                             : NULL))
  |  |  ------------------
  ------------------
 1450|    220|    if (s == NULL)
  ------------------
  |  Branch (1450:9): [True: 0, False: 220]
  ------------------
 1451|      0|        return;
 1452|       |
 1453|       |    /*
 1454|       |     * Ignore return values. This could result in user callbacks being called
 1455|       |     * e.g. for the QUIC TLS record layer. So we do this early before we have
 1456|       |     * freed other things.
 1457|       |     */
 1458|    220|    ssl_free_wbio_buffer(s);
 1459|    220|    RECORD_LAYER_clear(&s->rlayer);
 1460|       |
 1461|    220|    X509_VERIFY_PARAM_free(s->param);
 1462|    220|    dane_final(&s->dane);
 1463|       |
 1464|    220|    BUF_MEM_free(s->init_buf);
 1465|       |
 1466|       |    /* add extra stuff */
 1467|    220|    sk_SSL_CIPHER_free(s->cipher_list);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1468|    220|    sk_SSL_CIPHER_free(s->cipher_list_by_id);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1469|    220|    sk_SSL_CIPHER_free(s->tls13_ciphersuites);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1470|    220|    sk_SSL_CIPHER_free(s->peer_ciphers);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1471|       |
 1472|       |    /* Make the next call work :-) */
 1473|    220|    if (s->session != NULL) {
  ------------------
  |  Branch (1473:9): [True: 219, False: 1]
  ------------------
 1474|    219|        ssl_clear_bad_session(s);
 1475|    219|        SSL_SESSION_free(s->session);
 1476|    219|    }
 1477|    220|    SSL_SESSION_free(s->psksession);
 1478|    220|    OPENSSL_free(s->psksession_id);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1479|       |
 1480|    220|    ssl_cert_free(s->cert);
 1481|    220|    OPENSSL_free(s->shared_sigalgs);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1482|       |    /* Free up if allocated */
 1483|       |
 1484|    220|    OPENSSL_free(s->ext.hostname);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1485|    220|    SSL_CTX_free(s->session_ctx);
 1486|    220|    OPENSSL_free(s->ext.ecpointformats);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1487|    220|    OPENSSL_free(s->ext.peer_ecpointformats);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1488|    220|    OPENSSL_free(s->ext.supportedgroups);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1489|    220|    OPENSSL_free(s->ext.keyshares);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1490|    220|    OPENSSL_free(s->ext.tuples);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1491|    220|    OPENSSL_free(s->ext.peer_supportedgroups);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1492|    220|    sk_X509_EXTENSION_pop_free(s->ext.ocsp.exts, X509_EXTENSION_free);
  ------------------
  |  |  256|    220|#define sk_X509_EXTENSION_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_EXTENSION_sk_type(sk), ossl_check_X509_EXTENSION_freefunc_type(freefunc))
  ------------------
 1493|       |
 1494|    220|#ifndef OPENSSL_NO_OCSP
 1495|    220|    OPENSSL_free(s->ext.ocsp.resp);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1496|    220|    s->ext.ocsp.resp = NULL;
 1497|    220|    s->ext.ocsp.resp_len = 0;
 1498|       |
 1499|    220|    sk_OCSP_RESPID_pop_free(s->ext.ocsp.ids, OCSP_RESPID_free);
  ------------------
  |  |  180|    220|#define sk_OCSP_RESPID_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_OCSP_RESPID_sk_type(sk), ossl_check_OCSP_RESPID_freefunc_type(freefunc))
  ------------------
 1500|    220|    sk_OCSP_RESPONSE_pop_free(s->ext.ocsp.resp_ex, OCSP_RESPONSE_free);
 1501|    220|    s->ext.ocsp.resp_ex = NULL;
 1502|    220|#endif
 1503|    220|#ifndef OPENSSL_NO_CT
 1504|    220|    SCT_LIST_free(s->scts);
 1505|    220|    OPENSSL_free(s->ext.scts);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1506|    220|#endif
 1507|    220|    OPENSSL_free(s->ext.alpn);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1508|    220|    OPENSSL_free(s->ext.tls13_cookie);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1509|    220|    if (s->clienthello != NULL)
  ------------------
  |  Branch (1509:9): [True: 0, False: 220]
  ------------------
 1510|      0|        OPENSSL_free(s->clienthello->pre_proc_exts);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1511|    220|    OPENSSL_free(s->clienthello);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1512|    220|    OPENSSL_free(s->pha_context);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1513|    220|    EVP_MD_CTX_free(s->pha_dgst);
 1514|       |
 1515|    220|    sk_X509_NAME_pop_free(s->ca_names, X509_NAME_free);
  ------------------
  |  |   70|    220|#define sk_X509_NAME_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_sk_type(sk), ossl_check_X509_NAME_freefunc_type(freefunc))
  ------------------
 1516|    220|    sk_X509_NAME_pop_free(s->client_ca_names, X509_NAME_free);
  ------------------
  |  |   70|    220|#define sk_X509_NAME_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_sk_type(sk), ossl_check_X509_NAME_freefunc_type(freefunc))
  ------------------
 1517|       |
 1518|    220|    OPENSSL_free(s->client_cert_type);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1519|    220|    OPENSSL_free(s->server_cert_type);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1520|       |
 1521|    220|    OSSL_STACK_OF_X509_free(s->verified_chain);
 1522|       |
 1523|    220|    if (ssl->method != NULL)
  ------------------
  |  Branch (1523:9): [True: 220, False: 0]
  ------------------
 1524|    220|        ssl->method->ssl_deinit(ssl);
 1525|       |
 1526|    220|    ASYNC_WAIT_CTX_free(s->waitctx);
 1527|       |
 1528|    220|#if !defined(OPENSSL_NO_NEXTPROTONEG)
 1529|    220|    OPENSSL_free(s->ext.npn);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1530|    220|#endif
 1531|       |
 1532|    220|#ifndef OPENSSL_NO_SRTP
 1533|    220|    sk_SRTP_PROTECTION_PROFILE_free(s->srtp_profiles);
  ------------------
  |  |  256|    220|#define sk_SRTP_PROTECTION_PROFILE_free(sk) OPENSSL_sk_free(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk))
  ------------------
 1534|    220|#endif
 1535|       |
 1536|       |    /*
 1537|       |     * We do this late. We want to ensure that any other references we held to
 1538|       |     * these BIOs are freed first *before* we call BIO_free_all(), because
 1539|       |     * BIO_free_all() will only free each BIO in the chain if the number of
 1540|       |     * references to the first BIO have dropped to 0
 1541|       |     */
 1542|    220|    BIO_free_all(s->wbio);
 1543|    220|    s->wbio = NULL;
 1544|    220|    BIO_free_all(s->rbio);
 1545|    220|    s->rbio = NULL;
 1546|    220|    OPENSSL_free(s->s3.tmp.valid_flags);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1547|    220|}
SSL_set0_rbio:
 1550|    219|{
 1551|    219|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    219|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    219|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |   33|    219|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    219|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 219, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    219|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    219|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 1552|       |
 1553|    219|#ifndef OPENSSL_NO_QUIC
 1554|    219|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|    219|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|    219|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 219, False: 0]
  |  |  ------------------
  ------------------
 1555|      0|        ossl_quic_conn_set0_net_rbio(s, rbio);
 1556|      0|        return;
 1557|      0|    }
 1558|    219|#endif
 1559|       |
 1560|    219|    if (sc == NULL)
  ------------------
  |  Branch (1560:9): [True: 0, False: 219]
  ------------------
 1561|      0|        return;
 1562|       |
 1563|    219|    BIO_free_all(sc->rbio);
 1564|    219|    sc->rbio = rbio;
 1565|    219|    sc->rlayer.rrlmethod->set1_bio(sc->rlayer.rrl, sc->rbio);
 1566|    219|}
SSL_set0_wbio:
 1569|    219|{
 1570|    219|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    219|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    219|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |   33|    219|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    219|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 219, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    219|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    219|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 1571|       |
 1572|    219|#ifndef OPENSSL_NO_QUIC
 1573|    219|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|    219|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|    219|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 219, False: 0]
  |  |  ------------------
  ------------------
 1574|      0|        ossl_quic_conn_set0_net_wbio(s, wbio);
 1575|      0|        return;
 1576|      0|    }
 1577|    219|#endif
 1578|       |
 1579|    219|    if (sc == NULL)
  ------------------
  |  Branch (1579:9): [True: 0, False: 219]
  ------------------
 1580|      0|        return;
 1581|       |
 1582|       |    /*
 1583|       |     * If the output buffering BIO is still in place, remove it
 1584|       |     */
 1585|    219|    if (sc->bbio != NULL)
  ------------------
  |  Branch (1585:9): [True: 0, False: 219]
  ------------------
 1586|      0|        sc->wbio = BIO_pop(sc->wbio);
 1587|       |
 1588|    219|    BIO_free_all(sc->wbio);
 1589|    219|    sc->wbio = wbio;
 1590|       |
 1591|       |    /* Re-attach |bbio| to the new |wbio|. */
 1592|    219|    if (sc->bbio != NULL)
  ------------------
  |  Branch (1592:9): [True: 0, False: 219]
  ------------------
 1593|      0|        sc->wbio = BIO_push(sc->bbio, sc->wbio);
 1594|       |
 1595|    219|    sc->rlayer.wrlmethod->set1_bio(sc->rlayer.wrl, sc->wbio);
 1596|    219|}
SSL_get_rbio:
 1641|  4.13k|{
 1642|  4.13k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  4.13k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  4.13k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  |  |   33|  4.13k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.13k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 4.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  4.13k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  4.13k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 1643|       |
 1644|  4.13k|#ifndef OPENSSL_NO_QUIC
 1645|  4.13k|    if (IS_QUIC(s))
  ------------------
  |  |   96|  4.13k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|  4.13k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
 1646|      0|        return ossl_quic_conn_get_net_rbio(s);
 1647|  4.13k|#endif
 1648|       |
 1649|  4.13k|    if (sc == NULL)
  ------------------
  |  Branch (1649:9): [True: 0, False: 4.13k]
  ------------------
 1650|      0|        return NULL;
 1651|       |
 1652|  4.13k|    return sc->rbio;
 1653|  4.13k|}
SSL_connect:
 2209|  4.13k|{
 2210|  4.13k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|  4.13k|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|  4.13k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  |  |   33|  4.13k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.13k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 4.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  4.13k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  4.13k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 2211|       |
 2212|  4.13k|#ifndef OPENSSL_NO_QUIC
 2213|  4.13k|    if (IS_QUIC(s))
  ------------------
  |  |   96|  4.13k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|  4.13k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
 2214|      0|        return s->method->ssl_connect(s);
 2215|  4.13k|#endif
 2216|       |
 2217|  4.13k|    if (sc == NULL)
  ------------------
  |  Branch (2217:9): [True: 0, False: 4.13k]
  ------------------
 2218|      0|        return 0;
 2219|       |
 2220|  4.13k|    if (sc->handshake_func == NULL) {
  ------------------
  |  Branch (2220:9): [True: 0, False: 4.13k]
  ------------------
 2221|       |        /* Not properly initialized yet */
 2222|      0|        SSL_set_connect_state(s);
 2223|      0|    }
 2224|       |
 2225|  4.13k|    return SSL_do_handshake(s);
 2226|  4.13k|}
SSL_ctrl:
 2944|    157|{
 2945|    157|    return ossl_ctrl_internal(s, cmd, larg, parg, /*no_quic=*/0);
 2946|    157|}
ossl_ctrl_internal:
 2949|    157|{
 2950|    157|    long l;
 2951|    157|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    157|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    157|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 157]
  |  |  |  |  ------------------
  |  |  |  |   33|    157|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    157|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 157, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    157|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    157|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 2952|       |
 2953|       |    /*
 2954|       |     * Routing of ctrl calls for QUIC is a little counterintuitive:
 2955|       |     *
 2956|       |     *   - Firstly (no_quic=0), we pass the ctrl directly to our QUIC
 2957|       |     *     implementation in case it wants to handle the ctrl specially.
 2958|       |     *
 2959|       |     *   - If our QUIC implementation does not care about the ctrl, it
 2960|       |     *     will reenter this function with no_quic=1 and we will try to handle
 2961|       |     *     it directly using the QCSO SSL object stub (not the handshake layer
 2962|       |     *     SSL object). This is important for e.g. the version configuration
 2963|       |     *     ctrls below, which must use s->defltmeth (and not sc->defltmeth).
 2964|       |     *
 2965|       |     *   - If we don't handle a ctrl here specially, then processing is
 2966|       |     *     redirected to the handshake layer SSL object.
 2967|       |     */
 2968|    157|    if (!no_quic && IS_QUIC(s))
  ------------------
  |  |   96|    157|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|    157|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 157]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 157, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2968:9): [True: 157, False: 0]
  ------------------
 2969|      0|        return s->method->ssl_ctrl(s, cmd, larg, parg);
 2970|       |
 2971|    157|    if (sc == NULL)
  ------------------
  |  Branch (2971:9): [True: 0, False: 157]
  ------------------
 2972|      0|        return 0;
 2973|       |
 2974|    157|    switch (cmd) {
 2975|      0|    case SSL_CTRL_GET_READ_AHEAD:
  ------------------
  |  | 1303|      0|#define SSL_CTRL_GET_READ_AHEAD 40
  ------------------
  |  Branch (2975:5): [True: 0, False: 157]
  ------------------
 2976|      0|        return RECORD_LAYER_get_read_ahead(&sc->rlayer);
  ------------------
  |  |  135|      0|#define RECORD_LAYER_get_read_ahead(rl) ((rl)->read_ahead)
  ------------------
 2977|      0|    case SSL_CTRL_SET_READ_AHEAD:
  ------------------
  |  | 1304|      0|#define SSL_CTRL_SET_READ_AHEAD 41
  ------------------
  |  Branch (2977:5): [True: 0, False: 157]
  ------------------
 2978|      0|        l = RECORD_LAYER_get_read_ahead(&sc->rlayer);
  ------------------
  |  |  135|      0|#define RECORD_LAYER_get_read_ahead(rl) ((rl)->read_ahead)
  ------------------
 2979|      0|        RECORD_LAYER_set_read_ahead(&sc->rlayer, larg);
  ------------------
  |  |  134|      0|#define RECORD_LAYER_set_read_ahead(rl, ra) ((rl)->read_ahead = (ra))
  ------------------
 2980|      0|        return l;
 2981|       |
 2982|      0|    case SSL_CTRL_MODE: {
  ------------------
  |  | 1302|      0|#define SSL_CTRL_MODE 33
  ------------------
  |  Branch (2982:5): [True: 0, False: 157]
  ------------------
 2983|      0|        OSSL_PARAM options[2], *opts = options;
 2984|       |
 2985|      0|        sc->mode |= larg;
 2986|       |
 2987|      0|        *opts++ = OSSL_PARAM_construct_uint32(OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE,
  ------------------
  |  |  331|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE "mode"
  ------------------
 2988|      0|            &sc->mode);
 2989|      0|        *opts = OSSL_PARAM_construct_end();
 2990|       |
 2991|       |        /* Ignore return value */
 2992|      0|        sc->rlayer.rrlmethod->set_options(sc->rlayer.rrl, options);
 2993|       |
 2994|      0|        return sc->mode;
 2995|      0|    }
 2996|      0|    case SSL_CTRL_CLEAR_MODE:
  ------------------
  |  | 1345|      0|#define SSL_CTRL_CLEAR_MODE 78
  ------------------
  |  Branch (2996:5): [True: 0, False: 157]
  ------------------
 2997|      0|        return (sc->mode &= ~larg);
 2998|      0|    case SSL_CTRL_GET_MAX_CERT_LIST:
  ------------------
  |  | 1309|      0|#define SSL_CTRL_GET_MAX_CERT_LIST 50
  ------------------
  |  Branch (2998:5): [True: 0, False: 157]
  ------------------
 2999|      0|        return (long)sc->max_cert_list;
 3000|      0|    case SSL_CTRL_SET_MAX_CERT_LIST:
  ------------------
  |  | 1310|      0|#define SSL_CTRL_SET_MAX_CERT_LIST 51
  ------------------
  |  Branch (3000:5): [True: 0, False: 157]
  ------------------
 3001|      0|        if (larg < 0)
  ------------------
  |  Branch (3001:13): [True: 0, False: 0]
  ------------------
 3002|      0|            return 0;
 3003|      0|        l = (long)sc->max_cert_list;
 3004|      0|        sc->max_cert_list = (size_t)larg;
 3005|      0|        return l;
 3006|      0|    case SSL_CTRL_SET_MAX_SEND_FRAGMENT:
  ------------------
  |  | 1311|      0|#define SSL_CTRL_SET_MAX_SEND_FRAGMENT 52
  ------------------
  |  Branch (3006:5): [True: 0, False: 157]
  ------------------
 3007|      0|        if (larg < 512 || larg > SSL3_RT_MAX_PLAIN_LENGTH)
  ------------------
  |  |  177|      0|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
  |  Branch (3007:13): [True: 0, False: 0]
  |  Branch (3007:27): [True: 0, False: 0]
  ------------------
 3008|      0|            return 0;
 3009|       |#ifndef OPENSSL_NO_KTLS
 3010|       |        if (sc->wbio != NULL && BIO_get_ktls_send(sc->wbio))
 3011|       |            return 0;
 3012|       |#endif /* OPENSSL_NO_KTLS */
 3013|      0|        sc->max_send_fragment = larg;
 3014|      0|        if (sc->max_send_fragment < sc->split_send_fragment)
  ------------------
  |  Branch (3014:13): [True: 0, False: 0]
  ------------------
 3015|      0|            sc->split_send_fragment = sc->max_send_fragment;
 3016|      0|        sc->rlayer.wrlmethod->set_max_frag_len(sc->rlayer.wrl, larg);
 3017|      0|        return 1;
 3018|      0|    case SSL_CTRL_SET_SPLIT_SEND_FRAGMENT:
  ------------------
  |  | 1379|      0|#define SSL_CTRL_SET_SPLIT_SEND_FRAGMENT 125
  ------------------
  |  Branch (3018:5): [True: 0, False: 157]
  ------------------
 3019|      0|        if ((size_t)larg > sc->max_send_fragment || larg == 0)
  ------------------
  |  Branch (3019:13): [True: 0, False: 0]
  |  Branch (3019:53): [True: 0, False: 0]
  ------------------
 3020|      0|            return 0;
 3021|      0|        sc->split_send_fragment = larg;
 3022|      0|        return 1;
 3023|      0|    case SSL_CTRL_SET_MAX_PIPELINES:
  ------------------
  |  | 1380|      0|#define SSL_CTRL_SET_MAX_PIPELINES 126
  ------------------
  |  Branch (3023:5): [True: 0, False: 157]
  ------------------
 3024|      0|        if (larg < 1 || larg > SSL_MAX_PIPELINES)
  ------------------
  |  |   71|      0|#define SSL_MAX_PIPELINES 32
  ------------------
  |  Branch (3024:13): [True: 0, False: 0]
  |  Branch (3024:25): [True: 0, False: 0]
  ------------------
 3025|      0|            return 0;
 3026|      0|        sc->max_pipelines = larg;
 3027|      0|        if (sc->rlayer.rrlmethod->set_max_pipelines != NULL)
  ------------------
  |  Branch (3027:13): [True: 0, False: 0]
  ------------------
 3028|      0|            sc->rlayer.rrlmethod->set_max_pipelines(sc->rlayer.rrl, (size_t)larg);
 3029|      0|        return 1;
 3030|      0|    case SSL_CTRL_GET_RI_SUPPORT:
  ------------------
  |  | 1344|      0|#define SSL_CTRL_GET_RI_SUPPORT 76
  ------------------
  |  Branch (3030:5): [True: 0, False: 157]
  ------------------
 3031|      0|        return sc->s3.send_connection_binding;
 3032|      0|    case SSL_CTRL_SET_RETRY_VERIFY:
  ------------------
  |  | 1390|      0|#define SSL_CTRL_SET_RETRY_VERIFY 136
  ------------------
  |  Branch (3032:5): [True: 0, False: 157]
  ------------------
 3033|      0|        sc->rwstate = SSL_RETRY_VERIFY;
  ------------------
  |  |  939|      0|#define SSL_RETRY_VERIFY 8
  ------------------
 3034|      0|        return 1;
 3035|      0|    case SSL_CTRL_CERT_FLAGS:
  ------------------
  |  | 1357|      0|#define SSL_CTRL_CERT_FLAGS 99
  ------------------
  |  Branch (3035:5): [True: 0, False: 157]
  ------------------
 3036|      0|        return (sc->cert->cert_flags |= larg);
 3037|      0|    case SSL_CTRL_CLEAR_CERT_FLAGS:
  ------------------
  |  | 1358|      0|#define SSL_CTRL_CLEAR_CERT_FLAGS 100
  ------------------
  |  Branch (3037:5): [True: 0, False: 157]
  ------------------
 3038|      0|        return (sc->cert->cert_flags &= ~larg);
 3039|       |
 3040|      0|    case SSL_CTRL_GET_RAW_CIPHERLIST:
  ------------------
  |  | 1368|      0|#define SSL_CTRL_GET_RAW_CIPHERLIST 110
  ------------------
  |  Branch (3040:5): [True: 0, False: 157]
  ------------------
 3041|      0|        if (parg) {
  ------------------
  |  Branch (3041:13): [True: 0, False: 0]
  ------------------
 3042|      0|            if (sc->s3.tmp.ciphers_raw == NULL)
  ------------------
  |  Branch (3042:17): [True: 0, False: 0]
  ------------------
 3043|      0|                return 0;
 3044|      0|            *(unsigned char **)parg = sc->s3.tmp.ciphers_raw;
 3045|      0|            return (int)sc->s3.tmp.ciphers_rawlen;
 3046|      0|        } else {
 3047|      0|            return TLS_CIPHER_LEN;
  ------------------
  |  |  379|      0|#define TLS_CIPHER_LEN 2
  ------------------
 3048|      0|        }
 3049|      0|    case SSL_CTRL_GET_EXTMS_SUPPORT:
  ------------------
  |  | 1376|      0|#define SSL_CTRL_GET_EXTMS_SUPPORT 122
  ------------------
  |  Branch (3049:5): [True: 0, False: 157]
  ------------------
 3050|      0|        if (!sc->session || SSL_in_init(s) || ossl_statem_get_in_handshake(sc))
  ------------------
  |  Branch (3050:13): [True: 0, False: 0]
  |  Branch (3050:29): [True: 0, False: 0]
  |  Branch (3050:47): [True: 0, False: 0]
  ------------------
 3051|      0|            return -1;
 3052|      0|        if (sc->session->flags & SSL_SESS_FLAG_EXTMS)
  ------------------
  |  |  567|      0|#define SSL_SESS_FLAG_EXTMS 0x1
  ------------------
  |  Branch (3052:13): [True: 0, False: 0]
  ------------------
 3053|      0|            return 1;
 3054|      0|        else
 3055|      0|            return 0;
 3056|      0|    case SSL_CTRL_SET_MIN_PROTO_VERSION:
  ------------------
  |  | 1377|      0|#define SSL_CTRL_SET_MIN_PROTO_VERSION 123
  ------------------
  |  Branch (3056:5): [True: 0, False: 157]
  ------------------
 3057|      0|        return ssl_check_allowed_versions(larg, sc->max_proto_version)
  ------------------
  |  Branch (3057:16): [True: 0, False: 0]
  ------------------
 3058|      0|            && ssl_set_version_bound(s->defltmeth->version, (int)larg,
  ------------------
  |  Branch (3058:16): [True: 0, False: 0]
  ------------------
 3059|      0|                &sc->min_proto_version);
 3060|      0|    case SSL_CTRL_GET_MIN_PROTO_VERSION:
  ------------------
  |  | 1384|      0|#define SSL_CTRL_GET_MIN_PROTO_VERSION 130
  ------------------
  |  Branch (3060:5): [True: 0, False: 157]
  ------------------
 3061|      0|        return sc->min_proto_version;
 3062|      0|    case SSL_CTRL_SET_MAX_PROTO_VERSION:
  ------------------
  |  | 1378|      0|#define SSL_CTRL_SET_MAX_PROTO_VERSION 124
  ------------------
  |  Branch (3062:5): [True: 0, False: 157]
  ------------------
 3063|      0|        return ssl_check_allowed_versions(sc->min_proto_version, larg)
  ------------------
  |  Branch (3063:16): [True: 0, False: 0]
  ------------------
 3064|      0|            && ssl_set_version_bound(s->defltmeth->version, (int)larg,
  ------------------
  |  Branch (3064:16): [True: 0, False: 0]
  ------------------
 3065|      0|                &sc->max_proto_version);
 3066|      0|    case SSL_CTRL_GET_MAX_PROTO_VERSION:
  ------------------
  |  | 1385|      0|#define SSL_CTRL_GET_MAX_PROTO_VERSION 131
  ------------------
  |  Branch (3066:5): [True: 0, False: 157]
  ------------------
 3067|      0|        return sc->max_proto_version;
 3068|    157|    default:
  ------------------
  |  Branch (3068:5): [True: 157, False: 0]
  ------------------
 3069|    157|        if (IS_QUIC(s))
  ------------------
  |  |   96|    157|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|    157|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 157]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 157, False: 0]
  |  |  ------------------
  ------------------
 3070|      0|            return SSL_ctrl((SSL *)sc, cmd, larg, parg);
 3071|    157|        else
 3072|    157|            return s->method->ssl_ctrl(s, cmd, larg, parg);
 3073|    157|    }
 3074|    157|}
SSL_CTX_ctrl:
 3098|  1.32k|{
 3099|  1.32k|    long l;
 3100|       |
 3101|       |    /* For some cases with ctx == NULL or larg == 1 perform syntax checks */
 3102|  1.32k|    if (cmd == SSL_CTRL_SET_GROUPS_LIST && larg == 1)
  ------------------
  |  | 1353|  2.64k|#define SSL_CTRL_SET_GROUPS_LIST 92
  ------------------
  |  Branch (3102:9): [True: 220, False: 1.10k]
  |  Branch (3102:44): [True: 0, False: 220]
  ------------------
 3103|      0|        return tls1_set_groups_list(ctx, NULL, NULL, NULL, NULL, NULL, NULL, parg);
 3104|  1.32k|    if (ctx == NULL) {
  ------------------
  |  Branch (3104:9): [True: 0, False: 1.32k]
  ------------------
 3105|      0|        switch (cmd) {
 3106|      0|        case SSL_CTRL_SET_SIGALGS_LIST:
  ------------------
  |  | 1356|      0|#define SSL_CTRL_SET_SIGALGS_LIST 98
  ------------------
  |  Branch (3106:9): [True: 0, False: 0]
  ------------------
 3107|      0|        case SSL_CTRL_SET_CLIENT_SIGALGS_LIST:
  ------------------
  |  | 1360|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS_LIST 102
  ------------------
  |  Branch (3107:9): [True: 0, False: 0]
  ------------------
 3108|      0|            return tls1_set_sigalgs_list(ctx, NULL, parg, 0);
 3109|      0|        default:
  ------------------
  |  Branch (3109:9): [True: 0, False: 0]
  ------------------
 3110|      0|            return 0;
 3111|      0|        }
 3112|      0|    }
 3113|       |
 3114|  1.32k|    switch (cmd) {
 3115|      0|    case SSL_CTRL_GET_READ_AHEAD:
  ------------------
  |  | 1303|      0|#define SSL_CTRL_GET_READ_AHEAD 40
  ------------------
  |  Branch (3115:5): [True: 0, False: 1.32k]
  ------------------
 3116|      0|        return ctx->read_ahead;
 3117|    220|    case SSL_CTRL_SET_READ_AHEAD:
  ------------------
  |  | 1304|    220|#define SSL_CTRL_SET_READ_AHEAD 41
  ------------------
  |  Branch (3117:5): [True: 220, False: 1.10k]
  ------------------
 3118|    220|        l = ctx->read_ahead;
 3119|    220|        ctx->read_ahead = larg;
 3120|    220|        return l;
 3121|       |
 3122|      0|    case SSL_CTRL_SET_MSG_CALLBACK_ARG:
  ------------------
  |  | 1286|      0|#define SSL_CTRL_SET_MSG_CALLBACK_ARG 16
  ------------------
  |  Branch (3122:5): [True: 0, False: 1.32k]
  ------------------
 3123|      0|        ctx->msg_callback_arg = parg;
 3124|      0|        return 1;
 3125|       |
 3126|      0|    case SSL_CTRL_GET_MAX_CERT_LIST:
  ------------------
  |  | 1309|      0|#define SSL_CTRL_GET_MAX_CERT_LIST 50
  ------------------
  |  Branch (3126:5): [True: 0, False: 1.32k]
  ------------------
 3127|      0|        return (long)ctx->max_cert_list;
 3128|      0|    case SSL_CTRL_SET_MAX_CERT_LIST:
  ------------------
  |  | 1310|      0|#define SSL_CTRL_SET_MAX_CERT_LIST 51
  ------------------
  |  Branch (3128:5): [True: 0, False: 1.32k]
  ------------------
 3129|      0|        if (larg < 0)
  ------------------
  |  Branch (3129:13): [True: 0, False: 0]
  ------------------
 3130|      0|            return 0;
 3131|      0|        l = (long)ctx->max_cert_list;
 3132|      0|        ctx->max_cert_list = (size_t)larg;
 3133|      0|        return l;
 3134|       |
 3135|      0|    case SSL_CTRL_SET_SESS_CACHE_SIZE:
  ------------------
  |  | 1305|      0|#define SSL_CTRL_SET_SESS_CACHE_SIZE 42
  ------------------
  |  Branch (3135:5): [True: 0, False: 1.32k]
  ------------------
 3136|      0|        if (larg < 0)
  ------------------
  |  Branch (3136:13): [True: 0, False: 0]
  ------------------
 3137|      0|            return 0;
 3138|      0|        l = (long)ctx->session_cache_size;
 3139|      0|        ctx->session_cache_size = (size_t)larg;
 3140|      0|        return l;
 3141|      0|    case SSL_CTRL_GET_SESS_CACHE_SIZE:
  ------------------
  |  | 1306|      0|#define SSL_CTRL_GET_SESS_CACHE_SIZE 43
  ------------------
  |  Branch (3141:5): [True: 0, False: 1.32k]
  ------------------
 3142|      0|        return (long)ctx->session_cache_size;
 3143|    220|    case SSL_CTRL_SET_SESS_CACHE_MODE:
  ------------------
  |  | 1307|    220|#define SSL_CTRL_SET_SESS_CACHE_MODE 44
  ------------------
  |  Branch (3143:5): [True: 220, False: 1.10k]
  ------------------
 3144|    220|        l = ctx->session_cache_mode;
 3145|    220|        ctx->session_cache_mode = larg;
 3146|    220|        return l;
 3147|      0|    case SSL_CTRL_GET_SESS_CACHE_MODE:
  ------------------
  |  | 1308|      0|#define SSL_CTRL_GET_SESS_CACHE_MODE 45
  ------------------
  |  Branch (3147:5): [True: 0, False: 1.32k]
  ------------------
 3148|      0|        return ctx->session_cache_mode;
 3149|       |
 3150|      0|    case SSL_CTRL_SESS_NUMBER:
  ------------------
  |  | 1290|      0|#define SSL_CTRL_SESS_NUMBER 20
  ------------------
  |  Branch (3150:5): [True: 0, False: 1.32k]
  ------------------
 3151|      0|        return lh_SSL_SESSION_num_items(ctx->sessions);
 3152|      0|    case SSL_CTRL_SESS_CONNECT:
  ------------------
  |  | 1291|      0|#define SSL_CTRL_SESS_CONNECT 21
  ------------------
  |  Branch (3152:5): [True: 0, False: 1.32k]
  ------------------
 3153|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_connect);
 3154|      0|    case SSL_CTRL_SESS_CONNECT_GOOD:
  ------------------
  |  | 1292|      0|#define SSL_CTRL_SESS_CONNECT_GOOD 22
  ------------------
  |  Branch (3154:5): [True: 0, False: 1.32k]
  ------------------
 3155|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_connect_good);
 3156|      0|    case SSL_CTRL_SESS_CONNECT_RENEGOTIATE:
  ------------------
  |  | 1293|      0|#define SSL_CTRL_SESS_CONNECT_RENEGOTIATE 23
  ------------------
  |  Branch (3156:5): [True: 0, False: 1.32k]
  ------------------
 3157|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_connect_renegotiate);
 3158|      0|    case SSL_CTRL_SESS_ACCEPT:
  ------------------
  |  | 1294|      0|#define SSL_CTRL_SESS_ACCEPT 24
  ------------------
  |  Branch (3158:5): [True: 0, False: 1.32k]
  ------------------
 3159|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_accept);
 3160|      0|    case SSL_CTRL_SESS_ACCEPT_GOOD:
  ------------------
  |  | 1295|      0|#define SSL_CTRL_SESS_ACCEPT_GOOD 25
  ------------------
  |  Branch (3160:5): [True: 0, False: 1.32k]
  ------------------
 3161|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_accept_good);
 3162|      0|    case SSL_CTRL_SESS_ACCEPT_RENEGOTIATE:
  ------------------
  |  | 1296|      0|#define SSL_CTRL_SESS_ACCEPT_RENEGOTIATE 26
  ------------------
  |  Branch (3162:5): [True: 0, False: 1.32k]
  ------------------
 3163|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_accept_renegotiate);
 3164|      0|    case SSL_CTRL_SESS_HIT:
  ------------------
  |  | 1297|      0|#define SSL_CTRL_SESS_HIT 27
  ------------------
  |  Branch (3164:5): [True: 0, False: 1.32k]
  ------------------
 3165|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_hit);
 3166|      0|    case SSL_CTRL_SESS_CB_HIT:
  ------------------
  |  | 1298|      0|#define SSL_CTRL_SESS_CB_HIT 28
  ------------------
  |  Branch (3166:5): [True: 0, False: 1.32k]
  ------------------
 3167|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_cb_hit);
 3168|      0|    case SSL_CTRL_SESS_MISSES:
  ------------------
  |  | 1299|      0|#define SSL_CTRL_SESS_MISSES 29
  ------------------
  |  Branch (3168:5): [True: 0, False: 1.32k]
  ------------------
 3169|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_miss);
 3170|      0|    case SSL_CTRL_SESS_TIMEOUTS:
  ------------------
  |  | 1300|      0|#define SSL_CTRL_SESS_TIMEOUTS 30
  ------------------
  |  Branch (3170:5): [True: 0, False: 1.32k]
  ------------------
 3171|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_timeout);
 3172|      0|    case SSL_CTRL_SESS_CACHE_FULL:
  ------------------
  |  | 1301|      0|#define SSL_CTRL_SESS_CACHE_FULL 31
  ------------------
  |  Branch (3172:5): [True: 0, False: 1.32k]
  ------------------
 3173|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_cache_full);
 3174|    220|    case SSL_CTRL_MODE:
  ------------------
  |  | 1302|    220|#define SSL_CTRL_MODE 33
  ------------------
  |  Branch (3174:5): [True: 220, False: 1.10k]
  ------------------
 3175|    220|        return (ctx->mode |= larg);
 3176|      0|    case SSL_CTRL_CLEAR_MODE:
  ------------------
  |  | 1345|      0|#define SSL_CTRL_CLEAR_MODE 78
  ------------------
  |  Branch (3176:5): [True: 0, False: 1.32k]
  ------------------
 3177|      0|        return (ctx->mode &= ~larg);
 3178|      0|    case SSL_CTRL_SET_MAX_SEND_FRAGMENT:
  ------------------
  |  | 1311|      0|#define SSL_CTRL_SET_MAX_SEND_FRAGMENT 52
  ------------------
  |  Branch (3178:5): [True: 0, False: 1.32k]
  ------------------
 3179|      0|        if (larg < 512 || larg > SSL3_RT_MAX_PLAIN_LENGTH)
  ------------------
  |  |  177|      0|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
  |  Branch (3179:13): [True: 0, False: 0]
  |  Branch (3179:27): [True: 0, False: 0]
  ------------------
 3180|      0|            return 0;
 3181|      0|        ctx->max_send_fragment = larg;
 3182|      0|        if (ctx->max_send_fragment < ctx->split_send_fragment)
  ------------------
  |  Branch (3182:13): [True: 0, False: 0]
  ------------------
 3183|      0|            ctx->split_send_fragment = ctx->max_send_fragment;
 3184|      0|        return 1;
 3185|      0|    case SSL_CTRL_SET_SPLIT_SEND_FRAGMENT:
  ------------------
  |  | 1379|      0|#define SSL_CTRL_SET_SPLIT_SEND_FRAGMENT 125
  ------------------
  |  Branch (3185:5): [True: 0, False: 1.32k]
  ------------------
 3186|      0|        if ((size_t)larg > ctx->max_send_fragment || larg == 0)
  ------------------
  |  Branch (3186:13): [True: 0, False: 0]
  |  Branch (3186:54): [True: 0, False: 0]
  ------------------
 3187|      0|            return 0;
 3188|      0|        ctx->split_send_fragment = larg;
 3189|      0|        return 1;
 3190|      0|    case SSL_CTRL_SET_MAX_PIPELINES:
  ------------------
  |  | 1380|      0|#define SSL_CTRL_SET_MAX_PIPELINES 126
  ------------------
  |  Branch (3190:5): [True: 0, False: 1.32k]
  ------------------
 3191|      0|        if (larg < 1 || larg > SSL_MAX_PIPELINES)
  ------------------
  |  |   71|      0|#define SSL_MAX_PIPELINES 32
  ------------------
  |  Branch (3191:13): [True: 0, False: 0]
  |  Branch (3191:25): [True: 0, False: 0]
  ------------------
 3192|      0|            return 0;
 3193|      0|        ctx->max_pipelines = larg;
 3194|      0|        return 1;
 3195|      0|    case SSL_CTRL_CERT_FLAGS:
  ------------------
  |  | 1357|      0|#define SSL_CTRL_CERT_FLAGS 99
  ------------------
  |  Branch (3195:5): [True: 0, False: 1.32k]
  ------------------
 3196|      0|        return (ctx->cert->cert_flags |= larg);
 3197|      0|    case SSL_CTRL_CLEAR_CERT_FLAGS:
  ------------------
  |  | 1358|      0|#define SSL_CTRL_CLEAR_CERT_FLAGS 100
  ------------------
  |  Branch (3197:5): [True: 0, False: 1.32k]
  ------------------
 3198|      0|        return (ctx->cert->cert_flags &= ~larg);
 3199|    220|    case SSL_CTRL_SET_MIN_PROTO_VERSION:
  ------------------
  |  | 1377|    220|#define SSL_CTRL_SET_MIN_PROTO_VERSION 123
  ------------------
  |  Branch (3199:5): [True: 220, False: 1.10k]
  ------------------
 3200|    220|        return ssl_check_allowed_versions(larg, ctx->max_proto_version)
  ------------------
  |  Branch (3200:16): [True: 220, False: 0]
  ------------------
 3201|    220|            && ssl_set_version_bound(ctx->method->version, (int)larg,
  ------------------
  |  Branch (3201:16): [True: 220, False: 0]
  ------------------
 3202|    220|                &ctx->min_proto_version);
 3203|      0|    case SSL_CTRL_GET_MIN_PROTO_VERSION:
  ------------------
  |  | 1384|      0|#define SSL_CTRL_GET_MIN_PROTO_VERSION 130
  ------------------
  |  Branch (3203:5): [True: 0, False: 1.32k]
  ------------------
 3204|      0|        return ctx->min_proto_version;
 3205|    220|    case SSL_CTRL_SET_MAX_PROTO_VERSION:
  ------------------
  |  | 1378|    220|#define SSL_CTRL_SET_MAX_PROTO_VERSION 124
  ------------------
  |  Branch (3205:5): [True: 220, False: 1.10k]
  ------------------
 3206|    220|        return ssl_check_allowed_versions(ctx->min_proto_version, larg)
  ------------------
  |  Branch (3206:16): [True: 220, False: 0]
  ------------------
 3207|    220|            && ssl_set_version_bound(ctx->method->version, (int)larg,
  ------------------
  |  Branch (3207:16): [True: 220, False: 0]
  ------------------
 3208|    220|                &ctx->max_proto_version);
 3209|      0|    case SSL_CTRL_GET_MAX_PROTO_VERSION:
  ------------------
  |  | 1385|      0|#define SSL_CTRL_GET_MAX_PROTO_VERSION 131
  ------------------
  |  Branch (3209:5): [True: 0, False: 1.32k]
  ------------------
 3210|      0|        return ctx->max_proto_version;
 3211|    220|    default:
  ------------------
  |  Branch (3211:5): [True: 220, False: 1.10k]
  ------------------
 3212|    220|        return ctx->method->ssl_ctx_ctrl(ctx, cmd, larg, parg);
 3213|  1.32k|    }
 3214|  1.32k|}
ssl_cipher_ptr_id_cmp:
 3241|  58.7k|{
 3242|  58.7k|    if ((*ap)->id > (*bp)->id)
  ------------------
  |  Branch (3242:9): [True: 33.0k, False: 25.7k]
  ------------------
 3243|  33.0k|        return 1;
 3244|  25.7k|    if ((*ap)->id < (*bp)->id)
  ------------------
  |  Branch (3244:9): [True: 25.7k, False: 0]
  ------------------
 3245|  25.7k|        return -1;
 3246|      0|    return 0;
 3247|  25.7k|}
SSL_get_ciphers:
 3254|    657|{
 3255|    657|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|    657|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|    657|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 657]
  |  |  |  |  ------------------
  |  |  |  |   33|    657|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    657|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 657, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    657|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    657|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3256|       |
 3257|    657|    if (sc != NULL) {
  ------------------
  |  Branch (3257:9): [True: 657, False: 0]
  ------------------
 3258|    657|        if (sc->cipher_list != NULL) {
  ------------------
  |  Branch (3258:13): [True: 0, False: 657]
  ------------------
 3259|      0|            return sc->cipher_list;
 3260|    657|        } else if ((s->ctx != NULL) && (s->ctx->cipher_list != NULL)) {
  ------------------
  |  Branch (3260:20): [True: 657, False: 0]
  |  Branch (3260:40): [True: 657, False: 0]
  ------------------
 3261|    657|            return s->ctx->cipher_list;
 3262|    657|        }
 3263|    657|    }
 3264|      0|    return NULL;
 3265|    657|}
SSL_get1_supported_ciphers:
 3277|    438|{
 3278|    438|    STACK_OF(SSL_CIPHER) *sk = NULL, *ciphers;
  ------------------
  |  |   33|    438|#define STACK_OF(type) struct stack_st_##type
  ------------------
 3279|    438|    int i;
 3280|    438|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    438|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    438|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 438]
  |  |  |  |  ------------------
  |  |  |  |   33|    438|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    438|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 438, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    438|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    438|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3281|       |
 3282|    438|    if (sc == NULL)
  ------------------
  |  Branch (3282:9): [True: 0, False: 438]
  ------------------
 3283|      0|        return NULL;
 3284|       |
 3285|    438|    ciphers = SSL_get_ciphers(s);
 3286|    438|    if (!ciphers)
  ------------------
  |  Branch (3286:9): [True: 0, False: 438]
  ------------------
 3287|      0|        return NULL;
 3288|    438|    if (!ssl_set_client_disabled(sc))
  ------------------
  |  Branch (3288:9): [True: 0, False: 438]
  ------------------
 3289|      0|        return NULL;
 3290|  26.7k|    for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) {
  ------------------
  |  | 1005|  26.7k|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (3290:17): [True: 26.2k, False: 438]
  ------------------
 3291|  26.2k|        const SSL_CIPHER *c = sk_SSL_CIPHER_value(ciphers, i);
  ------------------
  |  | 1006|  26.2k|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
 3292|  26.2k|        if (!ssl_cipher_disabled(sc, c, SSL_SECOP_CIPHER_SUPPORTED, 0)) {
  ------------------
  |  | 2752|  26.2k|#define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2738|  26.2k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (3292:13): [True: 13.1k, False: 13.1k]
  ------------------
 3293|  13.1k|            if (!sk)
  ------------------
  |  Branch (3293:17): [True: 438, False: 12.7k]
  ------------------
 3294|    438|                sk = sk_SSL_CIPHER_new_null();
  ------------------
  |  | 1008|    438|#define sk_SSL_CIPHER_new_null() ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_new_null())
  ------------------
 3295|  13.1k|            if (!sk)
  ------------------
  |  Branch (3295:17): [True: 0, False: 13.1k]
  ------------------
 3296|      0|                return NULL;
 3297|  13.1k|            if (!sk_SSL_CIPHER_push(sk, c)) {
  ------------------
  |  | 1015|  13.1k|#define sk_SSL_CIPHER_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr))
  ------------------
  |  Branch (3297:17): [True: 0, False: 13.1k]
  ------------------
 3298|      0|                sk_SSL_CIPHER_free(sk);
  ------------------
  |  | 1011|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 3299|      0|                return NULL;
 3300|      0|            }
 3301|  13.1k|        }
 3302|  26.2k|    }
 3303|    438|    return sk;
 3304|    438|}
SSL_CTX_new_ex:
 3991|    220|{
 3992|    220|    SSL_CTX *ret = NULL;
 3993|       |#ifndef OPENSSL_NO_SSLKEYLOG
 3994|       |    const char *keylogfile = ossl_safe_getenv("SSLKEYLOGFILE");
 3995|       |#endif
 3996|       |#ifndef OPENSSL_NO_COMP_ALG
 3997|       |    int i;
 3998|       |#endif
 3999|       |
 4000|    220|    if (meth == NULL) {
  ------------------
  |  Branch (4000:9): [True: 0, False: 220]
  ------------------
 4001|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_NULL_SSL_METHOD_PASSED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4002|      0|        return NULL;
 4003|      0|    }
 4004|       |
 4005|    220|    if (!OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL))
  ------------------
  |  | 2822|    220|#define OPENSSL_INIT_LOAD_SSL_STRINGS 0x00200000L
  ------------------
  |  Branch (4005:9): [True: 0, False: 220]
  ------------------
 4006|      0|        return NULL;
 4007|       |
 4008|       |    /* Doing this for the run once effect */
 4009|    220|    if (SSL_get_ex_data_X509_STORE_CTX_idx() < 0) {
  ------------------
  |  Branch (4009:9): [True: 0, False: 220]
  ------------------
 4010|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_X509_VERIFICATION_SETUP_PROBLEMS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4011|      0|        goto err;
 4012|      0|    }
 4013|       |
 4014|    220|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  108|    220|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4015|    220|    if (ret == NULL)
  ------------------
  |  Branch (4015:9): [True: 0, False: 220]
  ------------------
 4016|      0|        return NULL;
 4017|       |
 4018|       |    /* Init the reference counting before any call to SSL_CTX_free */
 4019|    220|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (4019:9): [True: 0, False: 220]
  ------------------
 4020|      0|        OPENSSL_free(ret);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4021|      0|        return NULL;
 4022|      0|    }
 4023|       |
 4024|    220|    ret->lock = CRYPTO_THREAD_lock_new();
 4025|    220|    if (ret->lock == NULL) {
  ------------------
  |  Branch (4025:9): [True: 0, False: 220]
  ------------------
 4026|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4027|      0|        goto err;
 4028|      0|    }
 4029|       |
 4030|       |#ifdef TSAN_REQUIRES_LOCKING
 4031|       |    ret->tsan_lock = CRYPTO_THREAD_lock_new();
 4032|       |    if (ret->tsan_lock == NULL) {
 4033|       |        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
 4034|       |        goto err;
 4035|       |    }
 4036|       |#endif
 4037|       |
 4038|    220|    ret->libctx = libctx;
 4039|    220|    if (propq != NULL) {
  ------------------
  |  Branch (4039:9): [True: 0, False: 220]
  ------------------
 4040|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4041|      0|        if (ret->propq == NULL)
  ------------------
  |  Branch (4041:13): [True: 0, False: 0]
  ------------------
 4042|      0|            goto err;
 4043|      0|    }
 4044|       |
 4045|    220|    ret->method = meth;
 4046|    220|    ret->min_proto_version = 0;
 4047|    220|    ret->max_proto_version = 0;
 4048|    220|    ret->mode = SSL_MODE_AUTO_RETRY;
  ------------------
  |  |  508|    220|#define SSL_MODE_AUTO_RETRY 0x00000004U
  ------------------
 4049|    220|    ret->session_cache_mode = SSL_SESS_CACHE_SERVER;
  ------------------
  |  |  713|    220|#define SSL_SESS_CACHE_SERVER 0x0002
  ------------------
 4050|    220|    ret->session_cache_size = SSL_SESSION_CACHE_MAX_SIZE_DEFAULT;
  ------------------
  |  |  694|    220|#define SSL_SESSION_CACHE_MAX_SIZE_DEFAULT (1024 * 20)
  ------------------
 4051|       |    /* We take the system default. */
 4052|    220|    ret->session_timeout = meth->get_timeout();
 4053|    220|    ret->max_cert_list = SSL_MAX_CERT_LIST_DEFAULT;
  ------------------
  |  |  692|    220|#define SSL_MAX_CERT_LIST_DEFAULT (1024 * 100)
  ------------------
 4054|    220|    ret->verify_mode = SSL_VERIFY_NONE;
  ------------------
  |  | 1177|    220|#define SSL_VERIFY_NONE 0x00
  ------------------
 4055|       |
 4056|    220|    ret->sessions = lh_SSL_SESSION_new(ssl_session_hash, ssl_session_cmp);
 4057|    220|    if (ret->sessions == NULL) {
  ------------------
  |  Branch (4057:9): [True: 0, False: 220]
  ------------------
 4058|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4059|      0|        goto err;
 4060|      0|    }
 4061|    220|    ret->cert_store = X509_STORE_new();
 4062|    220|    if (ret->cert_store == NULL) {
  ------------------
  |  Branch (4062:9): [True: 0, False: 220]
  ------------------
 4063|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_X509_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4064|      0|        goto err;
 4065|      0|    }
 4066|    220|#ifndef OPENSSL_NO_CT
 4067|    220|    ret->ctlog_store = CTLOG_STORE_new_ex(libctx, propq);
 4068|    220|    if (ret->ctlog_store == NULL) {
  ------------------
  |  Branch (4068:9): [True: 0, False: 220]
  ------------------
 4069|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CT_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4070|      0|        goto err;
 4071|      0|    }
 4072|    220|#endif
 4073|       |
 4074|       |    /* initialize cipher/digest methods table */
 4075|    220|    if (!ssl_load_ciphers(ret)) {
  ------------------
  |  Branch (4075:9): [True: 0, False: 220]
  ------------------
 4076|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4077|      0|        goto err;
 4078|      0|    }
 4079|       |
 4080|    220|    if (!ssl_load_groups(ret)) {
  ------------------
  |  Branch (4080:9): [True: 0, False: 220]
  ------------------
 4081|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4082|      0|        goto err;
 4083|      0|    }
 4084|       |
 4085|       |    /* load provider sigalgs */
 4086|    220|    if (!ssl_load_sigalgs(ret)) {
  ------------------
  |  Branch (4086:9): [True: 0, False: 220]
  ------------------
 4087|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4088|      0|        goto err;
 4089|      0|    }
 4090|       |
 4091|       |    /* initialise sig algs */
 4092|    220|    if (!ssl_setup_sigalgs(ret)) {
  ------------------
  |  Branch (4092:9): [True: 0, False: 220]
  ------------------
 4093|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4094|      0|        goto err;
 4095|      0|    }
 4096|       |
 4097|    220|    if (!SSL_CTX_set_ciphersuites(ret, OSSL_default_ciphersuites())) {
  ------------------
  |  Branch (4097:9): [True: 0, False: 220]
  ------------------
 4098|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4099|      0|        goto err;
 4100|      0|    }
 4101|       |
 4102|    220|    if ((ret->cert = ssl_cert_new(SSL_PKEY_NUM + ret->sigalg_list_len)) == NULL) {
  ------------------
  |  |  328|    220|#define SSL_PKEY_NUM 9
  ------------------
  |  Branch (4102:9): [True: 0, False: 220]
  ------------------
 4103|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4104|      0|        goto err;
 4105|      0|    }
 4106|       |
 4107|    220|    if (!ssl_create_cipher_list(ret,
  ------------------
  |  Branch (4107:9): [True: 0, False: 220]
  ------------------
 4108|    220|            ret->tls13_ciphersuites,
 4109|    220|            &ret->cipher_list, &ret->cipher_list_by_id,
 4110|    220|            OSSL_default_cipher_list(), ret->cert)
 4111|    220|        || sk_SSL_CIPHER_num(ret->cipher_list) <= 0) {
  ------------------
  |  | 1005|    220|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (4111:12): [True: 0, False: 220]
  ------------------
 4112|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_LIBRARY_HAS_NO_CIPHERS);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4113|      0|        goto err;
 4114|      0|    }
 4115|       |
 4116|    220|    ret->param = X509_VERIFY_PARAM_new();
 4117|    220|    if (ret->param == NULL) {
  ------------------
  |  Branch (4117:9): [True: 0, False: 220]
  ------------------
 4118|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_X509_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4119|      0|        goto err;
 4120|      0|    }
 4121|       |
 4122|       |    /*
 4123|       |     * If these aren't available from the provider we'll get NULL returns.
 4124|       |     * That's fine but will cause errors later if SSLv3 is negotiated
 4125|       |     */
 4126|    220|    ret->md5 = ssl_evp_md_fetch(libctx, NID_md5, propq);
  ------------------
  |  | 1238|    220|#define NID_md5         4
  ------------------
 4127|    220|    ret->sha1 = ssl_evp_md_fetch(libctx, NID_sha1, propq);
  ------------------
  |  | 2344|    220|#define NID_sha1                64
  ------------------
 4128|       |
 4129|    220|    if ((ret->ca_names = sk_X509_NAME_new_null()) == NULL) {
  ------------------
  |  |   59|    220|#define sk_X509_NAME_new_null() ((STACK_OF(X509_NAME) *)OPENSSL_sk_new_null())
  ------------------
  |  Branch (4129:9): [True: 0, False: 220]
  ------------------
 4130|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4131|      0|        goto err;
 4132|      0|    }
 4133|       |
 4134|    220|    if ((ret->client_ca_names = sk_X509_NAME_new_null()) == NULL) {
  ------------------
  |  |   59|    220|#define sk_X509_NAME_new_null() ((STACK_OF(X509_NAME) *)OPENSSL_sk_new_null())
  ------------------
  |  Branch (4134:9): [True: 0, False: 220]
  ------------------
 4135|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4136|      0|        goto err;
 4137|      0|    }
 4138|       |
 4139|    220|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_CTX, ret, &ret->ex_data)) {
  ------------------
  |  |  251|    220|#define CRYPTO_EX_INDEX_SSL_CTX 1
  ------------------
  |  Branch (4139:9): [True: 0, False: 220]
  ------------------
 4140|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4141|      0|        goto err;
 4142|      0|    }
 4143|       |
 4144|    220|    if ((ret->ext.secure = OPENSSL_secure_zalloc(sizeof(*ret->ext.secure))) == NULL)
  ------------------
  |  |  141|    220|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (4144:9): [True: 0, False: 220]
  ------------------
 4145|      0|        goto err;
 4146|       |
 4147|       |    /* No compression for DTLS */
 4148|    220|    if (!(meth->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS))
  ------------------
  |  | 2190|    220|#define SSL_ENC_FLAG_DTLS 0x8
  ------------------
  |  Branch (4148:9): [True: 220, False: 0]
  ------------------
 4149|    220|        ret->comp_methods = SSL_COMP_get_compression_methods();
 4150|       |
 4151|    220|    ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|    220|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 4152|    220|    ret->split_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|    220|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 4153|       |
 4154|       |    /* Setup RFC5077 ticket keys */
 4155|    220|    if ((RAND_bytes_ex(libctx, ret->ext.tick_key_name,
  ------------------
  |  Branch (4155:9): [True: 0, False: 220]
  ------------------
 4156|    220|             sizeof(ret->ext.tick_key_name), 0)
 4157|    220|            <= 0)
 4158|    220|        || (RAND_priv_bytes_ex(libctx, ret->ext.secure->tick_hmac_key,
  ------------------
  |  Branch (4158:12): [True: 0, False: 220]
  ------------------
 4159|    220|                sizeof(ret->ext.secure->tick_hmac_key), 0)
 4160|    220|            <= 0)
 4161|    220|        || (RAND_priv_bytes_ex(libctx, ret->ext.secure->tick_aes_key,
  ------------------
  |  Branch (4161:12): [True: 0, False: 220]
  ------------------
 4162|    220|                sizeof(ret->ext.secure->tick_aes_key), 0)
 4163|    220|            <= 0))
 4164|      0|        ret->options |= SSL_OP_NO_TICKET;
  ------------------
  |  |  383|      0|#define SSL_OP_NO_TICKET SSL_OP_BIT(14)
  |  |  ------------------
  |  |  |  |  350|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
 4165|       |
 4166|    220|    if (RAND_priv_bytes_ex(libctx, ret->ext.cookie_hmac_key,
  ------------------
  |  Branch (4166:9): [True: 0, False: 220]
  ------------------
 4167|    220|            sizeof(ret->ext.cookie_hmac_key), 0)
 4168|    220|        <= 0) {
 4169|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_RAND_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4170|      0|        goto err;
 4171|      0|    }
 4172|       |
 4173|    220|#ifndef OPENSSL_NO_SRP
 4174|    220|    if (!ssl_ctx_srp_ctx_init_intern(ret)) {
  ------------------
  |  Branch (4174:9): [True: 0, False: 220]
  ------------------
 4175|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4176|      0|        goto err;
 4177|      0|    }
 4178|    220|#endif
 4179|    220|#ifndef OPENSSL_NO_ENGINE
 4180|       |#ifdef OPENSSL_SSL_CLIENT_ENGINE_AUTO
 4181|       |#define eng_strx(x) #x
 4182|       |#define eng_str(x) eng_strx(x)
 4183|       |    /* Use specific client engine automatically... ignore errors */
 4184|       |    {
 4185|       |        ENGINE *eng;
 4186|       |        eng = ENGINE_by_id(eng_str(OPENSSL_SSL_CLIENT_ENGINE_AUTO));
 4187|       |        if (!eng) {
 4188|       |            ERR_clear_error();
 4189|       |            ENGINE_load_builtin_engines();
 4190|       |            eng = ENGINE_by_id(eng_str(OPENSSL_SSL_CLIENT_ENGINE_AUTO));
 4191|       |        }
 4192|       |        if (!eng || !SSL_CTX_set_client_cert_engine(ret, eng))
 4193|       |            ERR_clear_error();
 4194|       |    }
 4195|       |#endif
 4196|    220|#endif
 4197|       |
 4198|       |#ifndef OPENSSL_NO_COMP_ALG
 4199|       |    /*
 4200|       |     * Set the default order: brotli, zlib, zstd
 4201|       |     * Including only those enabled algorithms
 4202|       |     */
 4203|       |    memset(ret->cert_comp_prefs, 0, sizeof(ret->cert_comp_prefs));
 4204|       |    i = 0;
 4205|       |    if (ossl_comp_has_alg(TLSEXT_comp_cert_brotli))
 4206|       |        ret->cert_comp_prefs[i++] = TLSEXT_comp_cert_brotli;
 4207|       |    if (ossl_comp_has_alg(TLSEXT_comp_cert_zlib))
 4208|       |        ret->cert_comp_prefs[i++] = TLSEXT_comp_cert_zlib;
 4209|       |    if (ossl_comp_has_alg(TLSEXT_comp_cert_zstd))
 4210|       |        ret->cert_comp_prefs[i++] = TLSEXT_comp_cert_zstd;
 4211|       |#endif
 4212|       |    /*
 4213|       |     * Disable compression by default to prevent CRIME. Applications can
 4214|       |     * re-enable compression by configuring
 4215|       |     * SSL_CTX_clear_options(ctx, SSL_OP_NO_COMPRESSION);
 4216|       |     * or by using the SSL_CONF library. Similarly we also enable TLSv1.3
 4217|       |     * middlebox compatibility by default. This may be disabled by default in
 4218|       |     * a later OpenSSL version.
 4219|       |     */
 4220|    220|    ret->options |= SSL_OP_NO_COMPRESSION | SSL_OP_ENABLE_MIDDLEBOX_COMPAT;
  ------------------
  |  |  394|    220|#define SSL_OP_NO_COMPRESSION SSL_OP_BIT(17)
  |  |  ------------------
  |  |  |  |  350|    220|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
                  ret->options |= SSL_OP_NO_COMPRESSION | SSL_OP_ENABLE_MIDDLEBOX_COMPAT;
  ------------------
  |  |  403|    220|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  350|    220|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
 4221|       |
 4222|    220|    ret->ext.status_type = TLSEXT_STATUSTYPE_nothing;
  ------------------
  |  | 2207|    220|#define TLSEXT_STATUSTYPE_nothing -1
  ------------------
 4223|       |
 4224|       |    /*
 4225|       |     * We cannot usefully set a default max_early_data here (which gets
 4226|       |     * propagated in SSL_new(), for the following reason: setting the
 4227|       |     * SSL field causes tls_construct_stoc_early_data() to tell the
 4228|       |     * client that early data will be accepted when constructing a TLS 1.3
 4229|       |     * session ticket, and the client will accordingly send us early data
 4230|       |     * when using that ticket (if the client has early data to send).
 4231|       |     * However, in order for the early data to actually be consumed by
 4232|       |     * the application, the application must also have calls to
 4233|       |     * SSL_read_early_data(); otherwise we'll just skip past the early data
 4234|       |     * and ignore it.  So, since the application must add calls to
 4235|       |     * SSL_read_early_data(), we also require them to add
 4236|       |     * calls to SSL_CTX_set_max_early_data() in order to use early data,
 4237|       |     * eliminating the bandwidth-wasting early data in the case described
 4238|       |     * above.
 4239|       |     */
 4240|    220|    ret->max_early_data = 0;
 4241|       |
 4242|       |    /*
 4243|       |     * Default recv_max_early_data is a fully loaded single record. Could be
 4244|       |     * split across multiple records in practice. We set this differently to
 4245|       |     * max_early_data so that, in the default case, we do not advertise any
 4246|       |     * support for early_data, but if a client were to send us some (e.g.
 4247|       |     * because of an old, stale ticket) then we will tolerate it and skip over
 4248|       |     * it.
 4249|       |     */
 4250|    220|    ret->recv_max_early_data = SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|    220|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 4251|       |
 4252|       |    /* By default we send two session tickets automatically in TLSv1.3 */
 4253|    220|    ret->num_tickets = 2;
 4254|       |
 4255|    220|#ifndef OPENSSL_NO_QUIC
 4256|       |    /* only create a cache for client CTX-es */
 4257|    220|    if (meth == OSSL_QUIC_client_method())
  ------------------
  |  Branch (4257:9): [True: 0, False: 220]
  ------------------
 4258|      0|        if ((ret->tokencache = ossl_quic_new_token_store()) == NULL)
  ------------------
  |  Branch (4258:13): [True: 0, False: 0]
  ------------------
 4259|      0|            goto err;
 4260|    220|    ret->domain_flags = 0;
 4261|    220|    if (IS_QUIC_METHOD(meth)) {
  ------------------
  |  |   52|    220|    ((m) == OSSL_QUIC_client_method() || (m) == OSSL_QUIC_client_thread_method() || (m) == OSSL_QUIC_server_method())
  |  |  ------------------
  |  |  |  Branch (52:6): [True: 0, False: 220]
  |  |  |  Branch (52:42): [True: 0, False: 220]
  |  |  |  Branch (52:85): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 4262|      0|#if defined(OPENSSL_THREADS)
 4263|      0|        if (meth == OSSL_QUIC_client_thread_method())
  ------------------
  |  Branch (4263:13): [True: 0, False: 0]
  ------------------
 4264|      0|            ret->domain_flags
 4265|      0|                = SSL_DOMAIN_FLAG_MULTI_THREAD
  ------------------
  |  | 2386|      0|#define SSL_DOMAIN_FLAG_MULTI_THREAD (1U << 1)
  ------------------
 4266|      0|                | SSL_DOMAIN_FLAG_THREAD_ASSISTED
  ------------------
  |  | 2387|      0|#define SSL_DOMAIN_FLAG_THREAD_ASSISTED (1U << 2)
  ------------------
 4267|      0|                | SSL_DOMAIN_FLAG_BLOCKING;
  ------------------
  |  | 2388|      0|#define SSL_DOMAIN_FLAG_BLOCKING (1U << 3)
  ------------------
 4268|      0|        else
 4269|      0|            ret->domain_flags
 4270|      0|                = SSL_DOMAIN_FLAG_MULTI_THREAD
  ------------------
  |  | 2386|      0|#define SSL_DOMAIN_FLAG_MULTI_THREAD (1U << 1)
  ------------------
 4271|      0|                | SSL_DOMAIN_FLAG_LEGACY_BLOCKING;
  ------------------
  |  | 2389|      0|#define SSL_DOMAIN_FLAG_LEGACY_BLOCKING (1U << 4)
  ------------------
 4272|       |#else
 4273|       |        ret->domain_flags
 4274|       |            = SSL_DOMAIN_FLAG_SINGLE_THREAD
 4275|       |            | SSL_DOMAIN_FLAG_LEGACY_BLOCKING;
 4276|       |#endif
 4277|      0|    }
 4278|    220|#endif
 4279|       |
 4280|    220|    if (!ssl_ctx_system_config(ret)) {
  ------------------
  |  Branch (4280:9): [True: 0, False: 220]
  ------------------
 4281|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_ERROR_IN_SYSTEM_DEFAULT_CONFIG);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4282|      0|        goto err;
 4283|      0|    }
 4284|       |
 4285|       |#ifndef OPENSSL_NO_SSLKEYLOG
 4286|       |    if (keylogfile != NULL && strlen(keylogfile) != 0) {
 4287|       |        /* Make sure we have a global lock allocated */
 4288|       |        if (!RUN_ONCE(&ssl_keylog_once, ssl_keylog_init)) {
 4289|       |            /* use a trace message as a warning */
 4290|       |            OSSL_TRACE(TLS, "Unable to initialize keylog data\n");
 4291|       |            goto out;
 4292|       |        }
 4293|       |
 4294|       |        /* Grab our global lock */
 4295|       |        if (!CRYPTO_THREAD_write_lock(keylog_lock)) {
 4296|       |            OSSL_TRACE(TLS, "Unable to acquire keylog write lock\n");
 4297|       |            goto out;
 4298|       |        } else {
 4299|       |            /*
 4300|       |             * If the bio for the requested keylog file hasn't been
 4301|       |             * created yet, go ahead and create it, and set it to append
 4302|       |             * if its already there.
 4303|       |             */
 4304|       |            if (keylog_bio == NULL) {
 4305|       |                keylog_bio = get_sslkeylog_bio(keylogfile);
 4306|       |                if (keylog_bio == NULL) {
 4307|       |                    OSSL_TRACE(TLS, "Unable to create keylog bio\n");
 4308|       |                    goto out;
 4309|       |                }
 4310|       |                BIO_set_callback_ex(keylog_bio, check_keylog_bio_free);
 4311|       |            } else {
 4312|       |                /* up our refcount for the already-created case */
 4313|       |                BIO_up_ref(keylog_bio);
 4314|       |            }
 4315|       |            /* If we have a bio now, assign the callback handler */
 4316|       |            if (keylog_bio != NULL)
 4317|       |                ret->do_sslkeylog = 1;
 4318|       |            /* unlock, and we're done */
 4319|       |            CRYPTO_THREAD_unlock(keylog_lock);
 4320|       |        }
 4321|       |    }
 4322|       |out:
 4323|       |#endif
 4324|    220|    return ret;
 4325|      0|err:
 4326|      0|    SSL_CTX_free(ret);
 4327|       |#ifndef OPENSSL_NO_SSLKEYLOG
 4328|       |    BIO_free(keylog_bio);
 4329|       |#endif
 4330|       |    return NULL;
 4331|    220|}
SSL_CTX_new:
 4334|    220|{
 4335|    220|    return SSL_CTX_new_ex(NULL, NULL, meth);
 4336|    220|}
SSL_CTX_up_ref:
 4339|    440|{
 4340|    440|    int i;
 4341|       |
 4342|    440|    if (CRYPTO_UP_REF(&ctx->references, &i) <= 0)
  ------------------
  |  Branch (4342:9): [True: 0, False: 440]
  ------------------
 4343|      0|        return 0;
 4344|       |
 4345|    440|    REF_PRINT_COUNT("SSL_CTX", i, ctx);
  ------------------
  |  |  301|    440|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    440|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|    440|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|    440|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4346|    440|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|    440|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 440]
  |  |  ------------------
  ------------------
 4347|    440|    return ((i > 1) ? 1 : 0);
  ------------------
  |  Branch (4347:13): [True: 440, False: 0]
  ------------------
 4348|    440|}
SSL_CTX_free:
 4351|    660|{
 4352|    660|    int i;
 4353|    660|    size_t j;
 4354|       |
 4355|    660|    if (a == NULL)
  ------------------
  |  Branch (4355:9): [True: 0, False: 660]
  ------------------
 4356|      0|        return;
 4357|       |
 4358|    660|    CRYPTO_DOWN_REF(&a->references, &i);
 4359|    660|    REF_PRINT_COUNT("SSL_CTX", i, a);
  ------------------
  |  |  301|    660|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    660|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|    660|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|    660|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4360|    660|    if (i > 0)
  ------------------
  |  Branch (4360:9): [True: 440, False: 220]
  ------------------
 4361|    440|        return;
 4362|    220|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    220|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 4363|       |
 4364|       |#ifndef OPENSSL_NO_SSLKEYLOG
 4365|       |    if (keylog_lock != NULL && CRYPTO_THREAD_write_lock(keylog_lock)) {
 4366|       |        if (a->do_sslkeylog == 1)
 4367|       |            BIO_free(keylog_bio);
 4368|       |        a->do_sslkeylog = 0;
 4369|       |        CRYPTO_THREAD_unlock(keylog_lock);
 4370|       |    }
 4371|       |#endif
 4372|       |
 4373|    220|    X509_VERIFY_PARAM_free(a->param);
 4374|    220|    dane_ctx_final(&a->dane);
 4375|       |
 4376|       |    /*
 4377|       |     * Free internal session cache. However: the remove_cb() may reference
 4378|       |     * the ex_data of SSL_CTX, thus the ex_data store can only be removed
 4379|       |     * after the sessions were flushed.
 4380|       |     * As the ex_data handling routines might also touch the session cache,
 4381|       |     * the most secure solution seems to be: empty (flush) the cache, then
 4382|       |     * free ex_data, then finally free the cache.
 4383|       |     * (See ticket [openssl.org #212].)
 4384|       |     */
 4385|    220|    if (a->sessions != NULL)
  ------------------
  |  Branch (4385:9): [True: 220, False: 0]
  ------------------
 4386|    220|        SSL_CTX_flush_sessions_ex(a, 0);
 4387|       |
 4388|    220|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);
  ------------------
  |  |  251|    220|#define CRYPTO_EX_INDEX_SSL_CTX 1
  ------------------
 4389|    220|    lh_SSL_SESSION_free(a->sessions);
 4390|    220|    X509_STORE_free(a->cert_store);
 4391|    220|#ifndef OPENSSL_NO_CT
 4392|    220|    CTLOG_STORE_free(a->ctlog_store);
 4393|    220|#endif
 4394|    220|    sk_SSL_CIPHER_free(a->cipher_list);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 4395|    220|    sk_SSL_CIPHER_free(a->cipher_list_by_id);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 4396|    220|    sk_SSL_CIPHER_free(a->tls13_ciphersuites);
  ------------------
  |  | 1011|    220|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 4397|    220|    ssl_cert_free(a->cert);
 4398|    220|    sk_X509_NAME_pop_free(a->ca_names, X509_NAME_free);
  ------------------
  |  |   70|    220|#define sk_X509_NAME_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_sk_type(sk), ossl_check_X509_NAME_freefunc_type(freefunc))
  ------------------
 4399|    220|    sk_X509_NAME_pop_free(a->client_ca_names, X509_NAME_free);
  ------------------
  |  |   70|    220|#define sk_X509_NAME_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_NAME_sk_type(sk), ossl_check_X509_NAME_freefunc_type(freefunc))
  ------------------
 4400|    220|    OSSL_STACK_OF_X509_free(a->extra_certs);
 4401|    220|    a->comp_methods = NULL;
 4402|    220|#ifndef OPENSSL_NO_SRTP
 4403|    220|    sk_SRTP_PROTECTION_PROFILE_free(a->srtp_profiles);
  ------------------
  |  |  256|    220|#define sk_SRTP_PROTECTION_PROFILE_free(sk) OPENSSL_sk_free(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk))
  ------------------
 4404|    220|#endif
 4405|    220|#ifndef OPENSSL_NO_SRP
 4406|    220|    ssl_ctx_srp_ctx_free_intern(a);
 4407|    220|#endif
 4408|    220|#ifndef OPENSSL_NO_ENGINE
 4409|    220|    tls_engine_finish(a->client_cert_engine);
 4410|    220|#endif
 4411|       |
 4412|    220|    OPENSSL_free(a->ext.ecpointformats);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4413|    220|    OPENSSL_free(a->ext.supportedgroups);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4414|    220|    OPENSSL_free(a->ext.keyshares);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4415|    220|    OPENSSL_free(a->ext.tuples);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4416|    220|    OPENSSL_free(a->ext.alpn);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4417|    220|    OPENSSL_secure_free(a->ext.secure);
  ------------------
  |  |  147|    220|    CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4418|       |
 4419|    220|    ssl_evp_md_free(a->md5);
 4420|    220|    ssl_evp_md_free(a->sha1);
 4421|       |
 4422|  5.50k|    for (j = 0; j < SSL_ENC_NUM_IDX; j++)
  ------------------
  |  |  354|  5.50k|#define SSL_ENC_NUM_IDX 24
  ------------------
  |  Branch (4422:17): [True: 5.28k, False: 220]
  ------------------
 4423|  5.28k|        ssl_evp_cipher_free(a->ssl_cipher_methods[j]);
 4424|  3.30k|    for (j = 0; j < SSL_MD_NUM_IDX; j++)
  ------------------
  |  |  203|  3.30k|#define SSL_MD_NUM_IDX SSL_MAX_DIGEST
  |  |  ------------------
  |  |  |  |  201|  3.30k|#define SSL_MAX_DIGEST 14
  |  |  ------------------
  ------------------
  |  Branch (4424:17): [True: 3.08k, False: 220]
  ------------------
 4425|  3.08k|        ssl_evp_md_free(a->ssl_digest_methods[j]);
 4426|  13.2k|    for (j = 0; j < a->group_list_len; j++) {
  ------------------
  |  Branch (4426:17): [True: 12.9k, False: 220]
  ------------------
 4427|  12.9k|        OPENSSL_free(a->group_list[j].tlsname);
  ------------------
  |  |  131|  12.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4428|  12.9k|        OPENSSL_free(a->group_list[j].realname);
  ------------------
  |  |  131|  12.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4429|  12.9k|        OPENSSL_free(a->group_list[j].algorithm);
  ------------------
  |  |  131|  12.9k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4430|  12.9k|    }
 4431|    220|    OPENSSL_free(a->group_list);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4432|    880|    for (j = 0; j < a->sigalg_list_len; j++) {
  ------------------
  |  Branch (4432:17): [True: 660, False: 220]
  ------------------
 4433|    660|        OPENSSL_free(a->sigalg_list[j].name);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4434|    660|        OPENSSL_free(a->sigalg_list[j].sigalg_name);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4435|    660|        OPENSSL_free(a->sigalg_list[j].sigalg_oid);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4436|    660|        OPENSSL_free(a->sigalg_list[j].sig_name);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4437|    660|        OPENSSL_free(a->sigalg_list[j].sig_oid);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4438|    660|        OPENSSL_free(a->sigalg_list[j].hash_name);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4439|    660|        OPENSSL_free(a->sigalg_list[j].hash_oid);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4440|    660|        OPENSSL_free(a->sigalg_list[j].keytype);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4441|    660|        OPENSSL_free(a->sigalg_list[j].keytype_oid);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4442|    660|    }
 4443|    220|    OPENSSL_free(a->sigalg_list);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4444|    220|    OPENSSL_free(a->ssl_cert_info);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4445|       |
 4446|    220|    OPENSSL_free(a->sigalg_lookup_cache);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4447|    220|    OPENSSL_free(a->tls12_sigalgs);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4448|       |
 4449|    220|    OPENSSL_free(a->client_cert_type);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4450|    220|    OPENSSL_free(a->server_cert_type);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4451|       |
 4452|    220|    CRYPTO_THREAD_lock_free(a->lock);
 4453|    220|    CRYPTO_FREE_REF(&a->references);
 4454|       |#ifdef TSAN_REQUIRES_LOCKING
 4455|       |    CRYPTO_THREAD_lock_free(a->tsan_lock);
 4456|       |#endif
 4457|       |
 4458|    220|    OPENSSL_free(a->propq);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4459|    220|#ifndef OPENSSL_NO_QLOG
 4460|    220|    OPENSSL_free(a->qlog_title);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4461|    220|#endif
 4462|       |
 4463|    220|#ifndef OPENSSL_NO_QUIC
 4464|    220|    ossl_quic_free_token_store(a->tokencache);
 4465|    220|#endif
 4466|       |
 4467|    220|    OPENSSL_free(a);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4468|    220|}
SSL_CTX_set_verify:
 4540|    220|{
 4541|    220|    ctx->verify_mode = mode;
 4542|    220|    ctx->default_verify_callback = cb;
 4543|    220|}
SSL_get_error:
 4827|  4.13k|{
 4828|  4.13k|    return ossl_ssl_get_error(s, i, /*check_err=*/1);
 4829|  4.13k|}
ossl_ssl_get_error:
 4832|  4.13k|{
 4833|  4.13k|    int reason;
 4834|  4.13k|    unsigned long l;
 4835|  4.13k|    BIO *bio;
 4836|  4.13k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  4.13k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  4.13k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  |  |   33|  4.13k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.13k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 4.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  4.13k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  4.13k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 4837|       |
 4838|  4.13k|    if (i > 0)
  ------------------
  |  Branch (4838:9): [True: 0, False: 4.13k]
  ------------------
 4839|      0|        return SSL_ERROR_NONE;
  ------------------
  |  | 1258|      0|#define SSL_ERROR_NONE 0
  ------------------
 4840|       |
 4841|  4.13k|#ifndef OPENSSL_NO_QUIC
 4842|  4.13k|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|  4.13k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|  4.13k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
 4843|      0|        reason = ossl_quic_get_error(s, i);
 4844|      0|        if (reason != SSL_ERROR_NONE)
  ------------------
  |  | 1258|      0|#define SSL_ERROR_NONE 0
  ------------------
  |  Branch (4844:13): [True: 0, False: 0]
  ------------------
 4845|      0|            return reason;
 4846|      0|    }
 4847|  4.13k|#endif
 4848|       |
 4849|  4.13k|    if (sc == NULL)
  ------------------
  |  Branch (4849:9): [True: 0, False: 4.13k]
  ------------------
 4850|      0|        return SSL_ERROR_SSL;
  ------------------
  |  | 1259|      0|#define SSL_ERROR_SSL 1
  ------------------
 4851|       |
 4852|       |    /*
 4853|       |     * Make things return SSL_ERROR_SYSCALL when doing SSL_do_handshake etc,
 4854|       |     * where we do encode the error
 4855|       |     */
 4856|  4.13k|    if (check_err && (l = ERR_peek_error()) != 0) {
  ------------------
  |  Branch (4856:9): [True: 4.13k, False: 0]
  |  Branch (4856:22): [True: 0, False: 4.13k]
  ------------------
 4857|      0|        if (ERR_GET_LIB(l) == ERR_LIB_SYS)
  ------------------
  |  |   74|      0|#define ERR_LIB_SYS 2
  ------------------
  |  Branch (4857:13): [True: 0, False: 0]
  ------------------
 4858|      0|            return SSL_ERROR_SYSCALL;
  ------------------
  |  | 1263|      0|#define SSL_ERROR_SYSCALL 5 /* look at error stack/return \
  ------------------
 4859|      0|        else
 4860|      0|            return SSL_ERROR_SSL;
  ------------------
  |  | 1259|      0|#define SSL_ERROR_SSL 1
  ------------------
 4861|      0|    }
 4862|       |
 4863|  4.13k|#ifndef OPENSSL_NO_QUIC
 4864|  4.13k|    if (!IS_QUIC(s))
  ------------------
  |  |   96|  4.13k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|  4.13k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
 4865|  4.13k|#endif
 4866|  4.13k|    {
 4867|  4.13k|        if (SSL_want_read(s)) {
  ------------------
  |  |  943|  4.13k|#define SSL_want_read(s) (SSL_want(s) == SSL_READING)
  |  |  ------------------
  |  |  |  |  934|  4.13k|#define SSL_READING 3
  |  |  ------------------
  |  |  |  Branch (943:26): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
 4868|  4.13k|            bio = SSL_get_rbio(s);
 4869|  4.13k|            if (BIO_should_read(bio))
  ------------------
  |  |  268|  4.13k|#define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ)
  |  |  ------------------
  |  |  |  |  222|  4.13k|#define BIO_FLAGS_READ 0x01
  |  |  ------------------
  |  |  |  Branch (268:28): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
 4870|  4.13k|                return SSL_ERROR_WANT_READ;
  ------------------
  |  | 1260|  4.13k|#define SSL_ERROR_WANT_READ 2
  ------------------
 4871|      0|            else if (BIO_should_write(bio))
  ------------------
  |  |  269|      0|#define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE)
  |  |  ------------------
  |  |  |  |  223|      0|#define BIO_FLAGS_WRITE 0x02
  |  |  ------------------
  |  |  |  Branch (269:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4872|       |                /*
 4873|       |                 * This one doesn't make too much sense ... We never try to
 4874|       |                 * write to the rbio, and an application program where rbio and
 4875|       |                 * wbio are separate couldn't even know what it should wait for.
 4876|       |                 * However if we ever set s->rwstate incorrectly (so that we
 4877|       |                 * have SSL_want_read(s) instead of SSL_want_write(s)) and rbio
 4878|       |                 * and wbio *are* the same, this test works around that bug; so
 4879|       |                 * it might be safer to keep it.
 4880|       |                 */
 4881|      0|                return SSL_ERROR_WANT_WRITE;
  ------------------
  |  | 1261|      0|#define SSL_ERROR_WANT_WRITE 3
  ------------------
 4882|      0|            else if (BIO_should_io_special(bio)) {
  ------------------
  |  |  270|      0|#define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)
  |  |  ------------------
  |  |  |  |  224|      0|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  ------------------
  |  |  |  Branch (270:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4883|      0|                reason = BIO_get_retry_reason(bio);
 4884|      0|                if (reason == BIO_RR_CONNECT)
  ------------------
  |  |  286|      0|#define BIO_RR_CONNECT 0x02
  ------------------
  |  Branch (4884:21): [True: 0, False: 0]
  ------------------
 4885|      0|                    return SSL_ERROR_WANT_CONNECT;
  ------------------
  |  | 1266|      0|#define SSL_ERROR_WANT_CONNECT 7
  ------------------
 4886|      0|                else if (reason == BIO_RR_ACCEPT)
  ------------------
  |  |  288|      0|#define BIO_RR_ACCEPT 0x03
  ------------------
  |  Branch (4886:26): [True: 0, False: 0]
  ------------------
 4887|      0|                    return SSL_ERROR_WANT_ACCEPT;
  ------------------
  |  | 1267|      0|#define SSL_ERROR_WANT_ACCEPT 8
  ------------------
 4888|      0|                else
 4889|      0|                    return SSL_ERROR_SYSCALL; /* unknown */
  ------------------
  |  | 1263|      0|#define SSL_ERROR_SYSCALL 5 /* look at error stack/return \
  ------------------
 4890|      0|            }
 4891|  4.13k|        }
 4892|       |
 4893|      0|        if (SSL_want_write(s)) {
  ------------------
  |  |  944|      0|#define SSL_want_write(s) (SSL_want(s) == SSL_WRITING)
  |  |  ------------------
  |  |  |  |  933|      0|#define SSL_WRITING 2
  |  |  ------------------
  |  |  |  Branch (944:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4894|       |            /*
 4895|       |             * Access wbio directly - in order to use the buffered bio if
 4896|       |             * present
 4897|       |             */
 4898|      0|            bio = sc->wbio;
 4899|      0|            if (BIO_should_write(bio))
  ------------------
  |  |  269|      0|#define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE)
  |  |  ------------------
  |  |  |  |  223|      0|#define BIO_FLAGS_WRITE 0x02
  |  |  ------------------
  |  |  |  Branch (269:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4900|      0|                return SSL_ERROR_WANT_WRITE;
  ------------------
  |  | 1261|      0|#define SSL_ERROR_WANT_WRITE 3
  ------------------
 4901|      0|            else if (BIO_should_read(bio))
  ------------------
  |  |  268|      0|#define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ)
  |  |  ------------------
  |  |  |  |  222|      0|#define BIO_FLAGS_READ 0x01
  |  |  ------------------
  |  |  |  Branch (268:28): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4902|       |                /*
 4903|       |                 * See above (SSL_want_read(s) with BIO_should_write(bio))
 4904|       |                 */
 4905|      0|                return SSL_ERROR_WANT_READ;
  ------------------
  |  | 1260|      0|#define SSL_ERROR_WANT_READ 2
  ------------------
 4906|      0|            else if (BIO_should_io_special(bio)) {
  ------------------
  |  |  270|      0|#define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)
  |  |  ------------------
  |  |  |  |  224|      0|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  ------------------
  |  |  |  Branch (270:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4907|      0|                reason = BIO_get_retry_reason(bio);
 4908|      0|                if (reason == BIO_RR_CONNECT)
  ------------------
  |  |  286|      0|#define BIO_RR_CONNECT 0x02
  ------------------
  |  Branch (4908:21): [True: 0, False: 0]
  ------------------
 4909|      0|                    return SSL_ERROR_WANT_CONNECT;
  ------------------
  |  | 1266|      0|#define SSL_ERROR_WANT_CONNECT 7
  ------------------
 4910|      0|                else if (reason == BIO_RR_ACCEPT)
  ------------------
  |  |  288|      0|#define BIO_RR_ACCEPT 0x03
  ------------------
  |  Branch (4910:26): [True: 0, False: 0]
  ------------------
 4911|      0|                    return SSL_ERROR_WANT_ACCEPT;
  ------------------
  |  | 1267|      0|#define SSL_ERROR_WANT_ACCEPT 8
  ------------------
 4912|      0|                else
 4913|      0|                    return SSL_ERROR_SYSCALL;
  ------------------
  |  | 1263|      0|#define SSL_ERROR_SYSCALL 5 /* look at error stack/return \
  ------------------
 4914|      0|            }
 4915|      0|        }
 4916|      0|    }
 4917|       |
 4918|      0|    if (SSL_want_x509_lookup(s))
  ------------------
  |  |  945|      0|#define SSL_want_x509_lookup(s) (SSL_want(s) == SSL_X509_LOOKUP)
  |  |  ------------------
  |  |  |  |  935|      0|#define SSL_X509_LOOKUP 4
  |  |  ------------------
  |  |  |  Branch (945:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4919|      0|        return SSL_ERROR_WANT_X509_LOOKUP;
  ------------------
  |  | 1262|      0|#define SSL_ERROR_WANT_X509_LOOKUP 4
  ------------------
 4920|      0|    if (SSL_want_retry_verify(s))
  ------------------
  |  |  946|      0|#define SSL_want_retry_verify(s) (SSL_want(s) == SSL_RETRY_VERIFY)
  |  |  ------------------
  |  |  |  |  939|      0|#define SSL_RETRY_VERIFY 8
  |  |  ------------------
  |  |  |  Branch (946:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4921|      0|        return SSL_ERROR_WANT_RETRY_VERIFY;
  ------------------
  |  | 1271|      0|#define SSL_ERROR_WANT_RETRY_VERIFY 12
  ------------------
 4922|      0|    if (SSL_want_async(s))
  ------------------
  |  |  947|      0|#define SSL_want_async(s) (SSL_want(s) == SSL_ASYNC_PAUSED)
  |  |  ------------------
  |  |  |  |  936|      0|#define SSL_ASYNC_PAUSED 5
  |  |  ------------------
  |  |  |  Branch (947:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4923|      0|        return SSL_ERROR_WANT_ASYNC;
  ------------------
  |  | 1268|      0|#define SSL_ERROR_WANT_ASYNC 9
  ------------------
 4924|      0|    if (SSL_want_async_job(s))
  ------------------
  |  |  948|      0|#define SSL_want_async_job(s) (SSL_want(s) == SSL_ASYNC_NO_JOBS)
  |  |  ------------------
  |  |  |  |  937|      0|#define SSL_ASYNC_NO_JOBS 6
  |  |  ------------------
  |  |  |  Branch (948:31): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4925|      0|        return SSL_ERROR_WANT_ASYNC_JOB;
  ------------------
  |  | 1269|      0|#define SSL_ERROR_WANT_ASYNC_JOB 10
  ------------------
 4926|      0|    if (SSL_want_client_hello_cb(s))
  ------------------
  |  |  949|      0|#define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB)
  |  |  ------------------
  |  |  |  |  938|      0|#define SSL_CLIENT_HELLO_CB 7
  |  |  ------------------
  |  |  |  Branch (949:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 4927|      0|        return SSL_ERROR_WANT_CLIENT_HELLO_CB;
  ------------------
  |  | 1270|      0|#define SSL_ERROR_WANT_CLIENT_HELLO_CB 11
  ------------------
 4928|       |
 4929|      0|    if ((sc->shutdown & SSL_RECEIVED_SHUTDOWN) && (sc->s3.warn_alert == SSL_AD_CLOSE_NOTIFY))
  ------------------
  |  |  216|      0|#define SSL_RECEIVED_SHUTDOWN 2
  ------------------
                  if ((sc->shutdown & SSL_RECEIVED_SHUTDOWN) && (sc->s3.warn_alert == SSL_AD_CLOSE_NOTIFY))
  ------------------
  |  | 1209|      0|#define SSL_AD_CLOSE_NOTIFY SSL3_AD_CLOSE_NOTIFY
  |  |  ------------------
  |  |  |  |  252|      0|#define SSL3_AD_CLOSE_NOTIFY 0
  |  |  ------------------
  ------------------
  |  Branch (4929:9): [True: 0, False: 0]
  |  Branch (4929:51): [True: 0, False: 0]
  ------------------
 4930|      0|        return SSL_ERROR_ZERO_RETURN;
  ------------------
  |  | 1265|      0|#define SSL_ERROR_ZERO_RETURN 6
  ------------------
 4931|       |
 4932|      0|    return SSL_ERROR_SYSCALL;
  ------------------
  |  | 1263|      0|#define SSL_ERROR_SYSCALL 5 /* look at error stack/return \
  ------------------
 4933|      0|}
SSL_do_handshake:
 4948|  4.13k|{
 4949|  4.13k|    int ret = 1;
 4950|  4.13k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|  4.13k|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|  4.13k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  |  |   33|  4.13k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.13k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 4.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  4.13k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  4.13k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 4951|       |
 4952|  4.13k|#ifndef OPENSSL_NO_QUIC
 4953|  4.13k|    if (IS_QUIC(s))
  ------------------
  |  |   96|  4.13k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|  4.13k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
 4954|      0|        return ossl_quic_do_handshake(s);
 4955|  4.13k|#endif
 4956|       |
 4957|  4.13k|    if (sc == NULL)
  ------------------
  |  Branch (4957:9): [True: 0, False: 4.13k]
  ------------------
 4958|      0|        return -1;
 4959|       |
 4960|  4.13k|    if (sc->handshake_func == NULL) {
  ------------------
  |  Branch (4960:9): [True: 0, False: 4.13k]
  ------------------
 4961|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_CONNECTION_TYPE_NOT_SET);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4962|      0|        return -1;
 4963|      0|    }
 4964|       |
 4965|  4.13k|    if (!ossl_statem_check_finish_init(sc, -1))
  ------------------
  |  Branch (4965:9): [True: 0, False: 4.13k]
  ------------------
 4966|      0|        return -1;
 4967|       |
 4968|  4.13k|    s->method->ssl_renegotiate_check(s, 0);
 4969|       |
 4970|  4.13k|    if (SSL_in_init(s) || SSL_in_before(s)) {
  ------------------
  |  Branch (4970:9): [True: 4.13k, False: 0]
  |  Branch (4970:27): [True: 0, False: 0]
  ------------------
 4971|  4.13k|        if ((sc->mode & SSL_MODE_ASYNC) && ASYNC_get_current_job() == NULL) {
  ------------------
  |  |  535|  4.13k|#define SSL_MODE_ASYNC 0x00000100U
  ------------------
  |  Branch (4971:13): [True: 0, False: 4.13k]
  |  Branch (4971:44): [True: 0, False: 0]
  ------------------
 4972|      0|            struct ssl_async_args args;
 4973|       |
 4974|      0|            memset(&args, 0, sizeof(args));
 4975|      0|            args.s = s;
 4976|       |
 4977|      0|            ret = ssl_start_async_job(s, &args, ssl_do_handshake_intern);
 4978|  4.13k|        } else {
 4979|  4.13k|            ret = sc->handshake_func(s);
 4980|  4.13k|        }
 4981|  4.13k|    }
 4982|       |
 4983|  4.13k|    return ret;
 4984|  4.13k|}
SSL_set_connect_state:
 5007|    220|{
 5008|    220|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL_ONLY(s);
  ------------------
  |  |   23|    220|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|    220|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  |  |   18|    220|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    220|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 220, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|    220|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|    220|                             : NULL))
  |  |  ------------------
  ------------------
 5009|       |
 5010|    220|#ifndef OPENSSL_NO_QUIC
 5011|    220|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|    220|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|    220|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 220, False: 0]
  |  |  ------------------
  ------------------
 5012|       |        /* We suppress errors because this is a void function */
 5013|      0|        (void)ossl_quic_set_connect_state(s, 0 /* suppress errors */);
 5014|      0|        return;
 5015|      0|    }
 5016|    220|#endif
 5017|       |
 5018|    220|    sc->server = 0;
 5019|    220|    sc->shutdown = 0;
 5020|    220|    ossl_statem_clear(sc);
 5021|    220|    sc->handshake_func = s->method->ssl_connect;
 5022|       |    /* Ignore return value. Its a void public API function */
 5023|    220|    RECORD_LAYER_reset(&sc->rlayer);
 5024|    220|}
ssl_init_wbio_buffer:
 5336|    219|{
 5337|    219|    BIO *bbio;
 5338|       |
 5339|    219|    if (s->bbio != NULL) {
  ------------------
  |  Branch (5339:9): [True: 0, False: 219]
  ------------------
 5340|       |        /* Already buffered. */
 5341|      0|        return 1;
 5342|      0|    }
 5343|       |
 5344|    219|    bbio = BIO_new(BIO_f_buffer());
 5345|    219|    if (bbio == NULL || BIO_set_read_buffer_size(bbio, 1) <= 0) {
  ------------------
  |  |  625|    219|#define BIO_set_read_buffer_size(b, size) BIO_int_ctrl(b, BIO_C_SET_BUFF_SIZE, size, 0)
  |  |  ------------------
  |  |  |  |  451|    219|#define BIO_C_SET_BUFF_SIZE 117
  |  |  ------------------
  ------------------
  |  Branch (5345:9): [True: 0, False: 219]
  |  Branch (5345:25): [True: 0, False: 219]
  ------------------
 5346|      0|        BIO_free(bbio);
 5347|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_BUF_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 5348|      0|        return 0;
 5349|      0|    }
 5350|    219|    s->bbio = bbio;
 5351|    219|    s->wbio = BIO_push(bbio, s->wbio);
 5352|       |
 5353|    219|    s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio);
 5354|       |
 5355|    219|    return 1;
 5356|    219|}
ssl_free_wbio_buffer:
 5359|  1.09k|{
 5360|       |    /* callers ensure s is never null */
 5361|  1.09k|    if (s->bbio == NULL)
  ------------------
  |  Branch (5361:9): [True: 880, False: 219]
  ------------------
 5362|    880|        return 1;
 5363|       |
 5364|    219|    s->wbio = BIO_pop(s->wbio);
 5365|    219|    s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio);
 5366|       |
 5367|    219|    BIO_free(s->bbio);
 5368|    219|    s->bbio = NULL;
 5369|       |
 5370|    219|    return 1;
 5371|  1.09k|}
SSL_version:
 5433|    438|{
 5434|    438|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|    438|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|    438|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 438]
  |  |  |  |  ------------------
  |  |  |  |   33|    438|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    438|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 438, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    438|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    438|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 5435|       |
 5436|    438|#ifndef OPENSSL_NO_QUIC
 5437|       |    /* We only support QUICv1 - so if its QUIC its QUICv1 */
 5438|    438|    if (s->type == SSL_TYPE_QUIC_CONNECTION || s->type == SSL_TYPE_QUIC_XSO)
  ------------------
  |  | 1224|    876|#define SSL_TYPE_QUIC_CONNECTION 0x80
  ------------------
                  if (s->type == SSL_TYPE_QUIC_CONNECTION || s->type == SSL_TYPE_QUIC_XSO)
  ------------------
  |  | 1225|    438|#define SSL_TYPE_QUIC_XSO 0x81
  ------------------
  |  Branch (5438:9): [True: 0, False: 438]
  |  Branch (5438:48): [True: 0, False: 438]
  ------------------
 5439|      0|        return OSSL_QUIC1_VERSION;
  ------------------
  |  |   33|      0|#define OSSL_QUIC1_VERSION 0x0000001
  ------------------
 5440|    438|#endif
 5441|    438|    if (sc == NULL)
  ------------------
  |  Branch (5441:9): [True: 0, False: 438]
  ------------------
 5442|      0|        return 0;
 5443|       |
 5444|    438|    return sc->version;
 5445|    438|}
SSL_set_ex_data:
 5710|    220|{
 5711|    220|    return CRYPTO_set_ex_data(&s->ex_data, idx, arg);
 5712|    220|}
SSL_CTX_get_cert_store:
 5730|    219|{
 5731|    219|    return ctx->cert_store;
 5732|    219|}
SSL_want:
 5749|  4.13k|{
 5750|  4.13k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  4.13k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  4.13k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  |  |   33|  4.13k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.13k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 4.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  4.13k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  4.13k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 5751|       |
 5752|  4.13k|#ifndef OPENSSL_NO_QUIC
 5753|  4.13k|    if (IS_QUIC(s))
  ------------------
  |  |   96|  4.13k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1229|  4.13k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1229:29): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 4.13k, False: 0]
  |  |  ------------------
  ------------------
 5754|      0|        return ossl_quic_want(s);
 5755|  4.13k|#endif
 5756|       |
 5757|  4.13k|    if (sc == NULL)
  ------------------
  |  Branch (5757:9): [True: 0, False: 4.13k]
  ------------------
 5758|      0|        return SSL_NOTHING;
  ------------------
  |  |  932|      0|#define SSL_NOTHING 1
  ------------------
 5759|       |
 5760|  4.13k|    return sc->rwstate;
 5761|  4.13k|}
SSL_get_security_level:
 6143|  35.2k|{
 6144|  35.2k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  35.2k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  35.2k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 35.2k]
  |  |  |  |  ------------------
  |  |  |  |   33|  35.2k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  35.2k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 35.2k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  35.2k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  35.2k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 6145|       |
 6146|  35.2k|    if (sc == NULL)
  ------------------
  |  Branch (6146:9): [True: 0, False: 35.2k]
  ------------------
 6147|      0|        return 0;
 6148|       |
 6149|  35.2k|    return sc->cert->sec_level;
 6150|  35.2k|}
SSL_CTX_set_options:
 6257|    220|{
 6258|    220|    return ctx->options |= op;
 6259|    220|}
SSL_set_ct_validation_callback:
 6529|    220|{
 6530|    220|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    220|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    220|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  |  |   33|    220|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    220|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 220, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    220|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    220|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 6531|       |
 6532|    220|    if (sc == NULL)
  ------------------
  |  Branch (6532:9): [True: 0, False: 220]
  ------------------
 6533|      0|        return 0;
 6534|       |
 6535|       |    /*
 6536|       |     * Since code exists that uses the custom extension handler for CT, look
 6537|       |     * for this and throw an error if they have already registered to use CT.
 6538|       |     */
 6539|    220|    if (callback != NULL && SSL_CTX_has_client_custom_ext(s->ctx, TLSEXT_TYPE_signed_certificate_timestamp)) {
  ------------------
  |  |  122|      0|#define TLSEXT_TYPE_signed_certificate_timestamp 18
  ------------------
  |  Branch (6539:9): [True: 0, False: 220]
  |  Branch (6539:29): [True: 0, False: 0]
  ------------------
 6540|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_CUSTOM_EXT_HANDLER_ALREADY_INSTALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 6541|      0|        return 0;
 6542|      0|    }
 6543|       |
 6544|    220|    if (callback != NULL) {
  ------------------
  |  Branch (6544:9): [True: 0, False: 220]
  ------------------
 6545|       |        /*
 6546|       |         * If we are validating CT, then we MUST accept SCTs served via OCSP
 6547|       |         */
 6548|      0|        if (!SSL_set_tlsext_status_type(s, TLSEXT_STATUSTYPE_ocsp))
  ------------------
  |  |  307|      0|    SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE, type, NULL)
  |  |  ------------------
  |  |  |  | 1325|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
  |  |  ------------------
  ------------------
  |  Branch (6548:13): [True: 0, False: 0]
  ------------------
 6549|      0|            return 0;
 6550|      0|    }
 6551|       |
 6552|    220|    sc->ct_validation_callback = callback;
 6553|    220|    sc->ct_validation_callback_arg = arg;
 6554|       |
 6555|    220|    return 1;
 6556|    220|}
ssl_get_max_send_fragment:
 7301|    878|{
 7302|       |    /* Return any active Max Fragment Len extension */
 7303|    878|    if (sc->session != NULL && USE_MAX_FRAGMENT_LENGTH_EXT(sc->session))
  ------------------
  |  |  296|    219|    IS_MAX_FRAGMENT_LENGTH_EXT_VALID(session->ext.max_fragment_len_mode)
  |  |  ------------------
  |  |  |  |  294|    219|    (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  229|    219|#define TLSEXT_max_fragment_length_512 1
  |  |  |  |  ------------------
  |  |  |  |                   (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  232|    219|#define TLSEXT_max_fragment_length_4096 4
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (294:6): [True: 219, False: 0]
  |  |  |  |  |  Branch (294:53): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (7303:9): [True: 219, False: 659]
  ------------------
 7304|      0|        return GET_MAX_FRAGMENT_LENGTH(sc->session);
  ------------------
  |  |  298|      0|    (512U << (session->ext.max_fragment_len_mode - 1))
  ------------------
 7305|       |
 7306|       |    /* return current SSL connection setting */
 7307|    878|    return (unsigned int)sc->max_send_fragment;
 7308|    878|}
ssl_get_split_send_fragment:
 7311|    219|{
 7312|       |    /* Return a value regarding an active Max Fragment Len extension */
 7313|    219|    if (sc->session != NULL && USE_MAX_FRAGMENT_LENGTH_EXT(sc->session)
  ------------------
  |  |  296|    219|    IS_MAX_FRAGMENT_LENGTH_EXT_VALID(session->ext.max_fragment_len_mode)
  |  |  ------------------
  |  |  |  |  294|    438|    (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  229|    219|#define TLSEXT_max_fragment_length_512 1
  |  |  |  |  ------------------
  |  |  |  |                   (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  232|    219|#define TLSEXT_max_fragment_length_4096 4
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (294:6): [True: 219, False: 0]
  |  |  |  |  |  Branch (294:53): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (7313:9): [True: 219, False: 0]
  ------------------
 7314|      0|        && sc->split_send_fragment > GET_MAX_FRAGMENT_LENGTH(sc->session))
  ------------------
  |  |  298|      0|    (512U << (session->ext.max_fragment_len_mode - 1))
  ------------------
  |  Branch (7314:12): [True: 0, False: 0]
  ------------------
 7315|      0|        return GET_MAX_FRAGMENT_LENGTH(sc->session);
  ------------------
  |  |  298|      0|    (512U << (session->ext.max_fragment_len_mode - 1))
  ------------------
 7316|       |
 7317|       |    /* else limit |split_send_fragment| to current |max_send_fragment| */
 7318|    219|    if (sc->split_send_fragment > sc->max_send_fragment)
  ------------------
  |  Branch (7318:9): [True: 0, False: 219]
  ------------------
 7319|      0|        return (unsigned int)sc->max_send_fragment;
 7320|       |
 7321|       |    /* return current SSL connection setting */
 7322|    219|    return (unsigned int)sc->split_send_fragment;
 7323|    219|}
SSL_CTX_set_post_handshake_auth:
 7353|    220|{
 7354|    220|    ctx->pha_enabled = val;
 7355|    220|}
ssl_evp_cipher_fetch:
 7461|  5.06k|{
 7462|  5.06k|    const EVP_CIPHER *ciph;
 7463|       |
 7464|  5.06k|    ciph = tls_get_cipher_from_engine(nid);
 7465|  5.06k|    if (ciph != NULL)
  ------------------
  |  Branch (7465:9): [True: 0, False: 5.06k]
  ------------------
 7466|      0|        return ciph;
 7467|       |
 7468|       |    /*
 7469|       |     * If there is no engine cipher then we do an explicit fetch. This may fail
 7470|       |     * and that could be ok
 7471|       |     */
 7472|  5.06k|    ERR_set_mark();
 7473|  5.06k|    ciph = EVP_CIPHER_fetch(libctx, OBJ_nid2sn(nid), properties);
 7474|  5.06k|    if (ciph != NULL) {
  ------------------
  |  Branch (7474:9): [True: 3.08k, False: 1.98k]
  ------------------
 7475|  3.08k|        OSSL_PARAM params[2];
 7476|  3.08k|        int decrypt_only = 0;
 7477|       |
 7478|  3.08k|        params[0] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_DECRYPT_ONLY,
  ------------------
  |  |  193|  3.08k|# define OSSL_CIPHER_PARAM_DECRYPT_ONLY "decrypt-only"
  ------------------
 7479|  3.08k|            &decrypt_only);
 7480|  3.08k|        params[1] = OSSL_PARAM_construct_end();
 7481|  3.08k|        if (EVP_CIPHER_get_params((EVP_CIPHER *)ciph, params)
  ------------------
  |  Branch (7481:13): [True: 3.08k, False: 0]
  ------------------
 7482|  3.08k|            && decrypt_only) {
  ------------------
  |  Branch (7482:16): [True: 0, False: 3.08k]
  ------------------
 7483|       |            /* If a cipher is decrypt-only, it is unusable */
 7484|      0|            EVP_CIPHER_free((EVP_CIPHER *)ciph);
 7485|       |            ciph = NULL;
 7486|      0|        }
 7487|  3.08k|    }
 7488|  5.06k|    ERR_pop_to_mark();
 7489|  5.06k|    return ciph;
 7490|  5.06k|}
ssl_evp_cipher_free:
 7506|  5.50k|{
 7507|  5.50k|    if (cipher == NULL)
  ------------------
  |  Branch (7507:9): [True: 2.42k, False: 3.08k]
  ------------------
 7508|  2.42k|        return;
 7509|       |
 7510|  3.08k|    if (EVP_CIPHER_get0_provider(cipher) != NULL) {
  ------------------
  |  Branch (7510:9): [True: 3.08k, False: 0]
  ------------------
 7511|       |        /*
 7512|       |         * The cipher was explicitly fetched and therefore it is safe to cast
 7513|       |         * away the const
 7514|       |         */
 7515|  3.08k|        EVP_CIPHER_free((EVP_CIPHER *)cipher);
 7516|  3.08k|    }
 7517|  3.08k|}
ssl_evp_md_fetch:
 7522|  3.52k|{
 7523|  3.52k|    const EVP_MD *md;
 7524|       |
 7525|  3.52k|    md = tls_get_digest_from_engine(nid);
 7526|  3.52k|    if (md != NULL)
  ------------------
  |  Branch (7526:9): [True: 0, False: 3.52k]
  ------------------
 7527|      0|        return md;
 7528|       |
 7529|       |    /* Otherwise we do an explicit fetch */
 7530|  3.52k|    ERR_set_mark();
 7531|  3.52k|    md = EVP_MD_fetch(libctx, OBJ_nid2sn(nid), properties);
 7532|  3.52k|    ERR_pop_to_mark();
 7533|  3.52k|    return md;
 7534|  3.52k|}
ssl_evp_md_free:
 7550|  3.74k|{
 7551|  3.74k|    if (md == NULL)
  ------------------
  |  Branch (7551:9): [True: 1.76k, False: 1.98k]
  ------------------
 7552|  1.76k|        return;
 7553|       |
 7554|  1.98k|    if (EVP_MD_get0_provider(md) != NULL) {
  ------------------
  |  Branch (7554:9): [True: 1.98k, False: 0]
  ------------------
 7555|       |        /*
 7556|       |         * The digest was explicitly fetched and therefore it is safe to cast
 7557|       |         * away the const
 7558|       |         */
 7559|  1.98k|        EVP_MD_free((EVP_MD *)md);
 7560|  1.98k|    }
 7561|  1.98k|}
ssl_lib.c:dane_final:
  169|    220|{
  170|    220|    sk_danetls_record_pop_free(dane->trecs, tlsa_free);
  171|    220|    dane->trecs = NULL;
  172|       |
  173|    220|    OSSL_STACK_OF_X509_free(dane->certs);
  174|    220|    dane->certs = NULL;
  175|       |
  176|    220|    X509_free(dane->mcert);
  177|    220|    dane->mcert = NULL;
  178|       |    dane->mtlsa = NULL;
  179|    220|    dane->mdpth = -1;
  180|    220|    dane->pdpth = -1;
  181|    220|}
ssl_lib.c:ssl_check_allowed_versions:
  450|    440|{
  451|    440|    int minisdtls = 0, maxisdtls = 0;
  452|       |
  453|       |    /* Figure out if we're doing DTLS versions or TLS versions */
  454|    440|    if (min_version == DTLS1_BAD_VER
  ------------------
  |  |   30|    880|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (454:9): [True: 0, False: 440]
  ------------------
  455|    440|        || min_version >> 8 == DTLS1_VERSION_MAJOR)
  ------------------
  |  |   32|    440|#define DTLS1_VERSION_MAJOR 0xFE
  ------------------
  |  Branch (455:12): [True: 0, False: 440]
  ------------------
  456|      0|        minisdtls = 1;
  457|    440|    if (max_version == DTLS1_BAD_VER
  ------------------
  |  |   30|    880|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (457:9): [True: 0, False: 440]
  ------------------
  458|    440|        || max_version >> 8 == DTLS1_VERSION_MAJOR)
  ------------------
  |  |   32|    440|#define DTLS1_VERSION_MAJOR 0xFE
  ------------------
  |  Branch (458:12): [True: 0, False: 440]
  ------------------
  459|      0|        maxisdtls = 1;
  460|       |    /* A wildcard version of 0 could be DTLS or TLS. */
  461|    440|    if ((minisdtls && !maxisdtls && max_version != 0)
  ------------------
  |  Branch (461:10): [True: 0, False: 440]
  |  Branch (461:23): [True: 0, False: 0]
  |  Branch (461:37): [True: 0, False: 0]
  ------------------
  462|    440|        || (maxisdtls && !minisdtls && min_version != 0)) {
  ------------------
  |  Branch (462:13): [True: 0, False: 440]
  |  Branch (462:26): [True: 0, False: 0]
  |  Branch (462:40): [True: 0, False: 0]
  ------------------
  463|       |        /* Mixing DTLS and TLS versions will lead to sadness; deny it. */
  464|      0|        return 0;
  465|      0|    }
  466|       |
  467|    440|    if (minisdtls || maxisdtls) {
  ------------------
  |  Branch (467:9): [True: 0, False: 440]
  |  Branch (467:22): [True: 0, False: 440]
  ------------------
  468|       |        /* Do DTLS version checks. */
  469|      0|        if (min_version == 0)
  ------------------
  |  Branch (469:13): [True: 0, False: 0]
  ------------------
  470|       |            /* Ignore DTLS1_BAD_VER */
  471|      0|            min_version = DTLS1_VERSION;
  ------------------
  |  |   28|      0|#define DTLS1_VERSION 0xFEFF
  ------------------
  472|      0|        if (max_version == 0)
  ------------------
  |  Branch (472:13): [True: 0, False: 0]
  ------------------
  473|      0|            max_version = DTLS1_2_VERSION;
  ------------------
  |  |   29|      0|#define DTLS1_2_VERSION 0xFEFD
  ------------------
  474|       |#ifdef OPENSSL_NO_DTLS1_2
  475|       |        if (max_version == DTLS1_2_VERSION)
  476|       |            max_version = DTLS1_VERSION;
  477|       |#endif
  478|       |#ifdef OPENSSL_NO_DTLS1
  479|       |        if (min_version == DTLS1_VERSION)
  480|       |            min_version = DTLS1_2_VERSION;
  481|       |#endif
  482|       |        /* Done massaging versions; do the check. */
  483|      0|        if (0
  ------------------
  |  Branch (483:13): [Folded, False: 0]
  ------------------
  484|       |#ifdef OPENSSL_NO_DTLS1
  485|       |            || (DTLS_VERSION_GE(min_version, DTLS1_VERSION)
  486|       |                && DTLS_VERSION_GE(DTLS1_VERSION, max_version))
  487|       |#endif
  488|       |#ifdef OPENSSL_NO_DTLS1_2
  489|       |            || (DTLS_VERSION_GE(min_version, DTLS1_2_VERSION)
  490|       |                && DTLS_VERSION_GE(DTLS1_2_VERSION, max_version))
  491|       |#endif
  492|      0|        )
  493|      0|            return 0;
  494|    440|    } else {
  495|       |        /* Regular TLS version checks. */
  496|    440|        if (min_version == 0)
  ------------------
  |  Branch (496:13): [True: 0, False: 440]
  ------------------
  497|      0|            min_version = SSL3_VERSION;
  ------------------
  |  |   23|      0|#define SSL3_VERSION 0x0300
  ------------------
  498|    440|        if (max_version == 0)
  ------------------
  |  Branch (498:13): [True: 440, False: 0]
  ------------------
  499|    440|            max_version = TLS1_3_VERSION;
  ------------------
  |  |   27|    440|#define TLS1_3_VERSION 0x0304
  ------------------
  500|       |#ifdef OPENSSL_NO_TLS1_3
  501|       |        if (max_version == TLS1_3_VERSION)
  502|       |            max_version = TLS1_2_VERSION;
  503|       |#endif
  504|       |#ifdef OPENSSL_NO_TLS1_2
  505|       |        if (max_version == TLS1_2_VERSION)
  506|       |            max_version = TLS1_1_VERSION;
  507|       |#endif
  508|       |#ifdef OPENSSL_NO_TLS1_1
  509|       |        if (max_version == TLS1_1_VERSION)
  510|       |            max_version = TLS1_VERSION;
  511|       |#endif
  512|       |#ifdef OPENSSL_NO_TLS1
  513|       |        if (max_version == TLS1_VERSION)
  514|       |            max_version = SSL3_VERSION;
  515|       |#endif
  516|       |#ifdef OPENSSL_NO_SSL3
  517|       |        if (min_version == SSL3_VERSION)
  518|       |            min_version = TLS1_VERSION;
  519|       |#endif
  520|       |#ifdef OPENSSL_NO_TLS1
  521|       |        if (min_version == TLS1_VERSION)
  522|       |            min_version = TLS1_1_VERSION;
  523|       |#endif
  524|       |#ifdef OPENSSL_NO_TLS1_1
  525|       |        if (min_version == TLS1_1_VERSION)
  526|       |            min_version = TLS1_2_VERSION;
  527|       |#endif
  528|       |#ifdef OPENSSL_NO_TLS1_2
  529|       |        if (min_version == TLS1_2_VERSION)
  530|       |            min_version = TLS1_3_VERSION;
  531|       |#endif
  532|       |        /* Done massaging versions; do the check. */
  533|    440|        if (0
  ------------------
  |  Branch (533:13): [Folded, False: 440]
  ------------------
  534|       |#ifdef OPENSSL_NO_SSL3
  535|       |            || (min_version <= SSL3_VERSION && SSL3_VERSION <= max_version)
  536|       |#endif
  537|       |#ifdef OPENSSL_NO_TLS1
  538|       |            || (min_version <= TLS1_VERSION && TLS1_VERSION <= max_version)
  539|       |#endif
  540|       |#ifdef OPENSSL_NO_TLS1_1
  541|       |            || (min_version <= TLS1_1_VERSION && TLS1_1_VERSION <= max_version)
  542|       |#endif
  543|       |#ifdef OPENSSL_NO_TLS1_2
  544|       |            || (min_version <= TLS1_2_VERSION && TLS1_2_VERSION <= max_version)
  545|       |#endif
  546|       |#ifdef OPENSSL_NO_TLS1_3
  547|       |            || (min_version <= TLS1_3_VERSION && TLS1_3_VERSION <= max_version)
  548|       |#endif
  549|    440|        )
  550|      0|            return 0;
  551|    440|    }
  552|    440|    return 1;
  553|    440|}
ssl_lib.c:dane_ctx_final:
  150|    220|{
  151|    220|    OPENSSL_free(dctx->mdevp);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  152|    220|    dctx->mdevp = NULL;
  153|       |
  154|    220|    OPENSSL_free(dctx->mdord);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  155|       |    dctx->mdord = NULL;
  156|    220|    dctx->mdmax = 0;
  157|    220|}

TLS_client_method:
 2347|    220|    {                                                                      \
 2348|    220|        static const SSL_METHOD func_name##_data = {                       \
 2349|    220|            version,                                                       \
 2350|    220|            flags,                                                         \
 2351|    220|            mask,                                                          \
 2352|    220|            ossl_ssl_connection_new,                                       \
 2353|    220|            ossl_ssl_connection_free,                                      \
 2354|    220|            ossl_ssl_connection_reset,                                     \
 2355|    220|            tls1_new,                                                      \
 2356|    220|            tls1_clear,                                                    \
 2357|    220|            tls1_free,                                                     \
 2358|    220|            s_accept,                                                      \
 2359|    220|            s_connect,                                                     \
 2360|    220|            ssl3_read,                                                     \
 2361|    220|            ssl3_peek,                                                     \
 2362|    220|            ssl3_write,                                                    \
 2363|    220|            ssl3_shutdown,                                                 \
 2364|    220|            ssl3_renegotiate,                                              \
 2365|    220|            ssl3_renegotiate_check,                                        \
 2366|    220|            ssl3_read_bytes,                                               \
 2367|    220|            ssl3_write_bytes,                                              \
 2368|    220|            ssl3_dispatch_alert,                                           \
 2369|    220|            ssl3_ctrl,                                                     \
 2370|    220|            ssl3_ctx_ctrl,                                                 \
 2371|    220|            ssl3_get_cipher_by_char,                                       \
 2372|    220|            ssl3_put_cipher_by_char,                                       \
 2373|    220|            ssl3_pending,                                                  \
 2374|    220|            ssl3_num_ciphers,                                              \
 2375|    220|            ssl3_get_cipher,                                               \
 2376|    220|            tls1_default_timeout,                                          \
 2377|    220|            &enc_data,                                                     \
 2378|    220|            ssl_undefined_void_function,                                   \
 2379|    220|            ssl3_callback_ctrl,                                            \
 2380|    220|            ssl3_ctx_callback_ctrl,                                        \
 2381|    220|        };                                                                 \
 2382|    220|        return &func_name##_data;                                          \
 2383|    220|    }
tlsv1_3_client_method:
 2347|  1.97k|    {                                                                      \
 2348|  1.97k|        static const SSL_METHOD func_name##_data = {                       \
 2349|  1.97k|            version,                                                       \
 2350|  1.97k|            flags,                                                         \
 2351|  1.97k|            mask,                                                          \
 2352|  1.97k|            ossl_ssl_connection_new,                                       \
 2353|  1.97k|            ossl_ssl_connection_free,                                      \
 2354|  1.97k|            ossl_ssl_connection_reset,                                     \
 2355|  1.97k|            tls1_new,                                                      \
 2356|  1.97k|            tls1_clear,                                                    \
 2357|  1.97k|            tls1_free,                                                     \
 2358|  1.97k|            s_accept,                                                      \
 2359|  1.97k|            s_connect,                                                     \
 2360|  1.97k|            ssl3_read,                                                     \
 2361|  1.97k|            ssl3_peek,                                                     \
 2362|  1.97k|            ssl3_write,                                                    \
 2363|  1.97k|            ssl3_shutdown,                                                 \
 2364|  1.97k|            ssl3_renegotiate,                                              \
 2365|  1.97k|            ssl3_renegotiate_check,                                        \
 2366|  1.97k|            ssl3_read_bytes,                                               \
 2367|  1.97k|            ssl3_write_bytes,                                              \
 2368|  1.97k|            ssl3_dispatch_alert,                                           \
 2369|  1.97k|            ssl3_ctrl,                                                     \
 2370|  1.97k|            ssl3_ctx_ctrl,                                                 \
 2371|  1.97k|            ssl3_get_cipher_by_char,                                       \
 2372|  1.97k|            ssl3_put_cipher_by_char,                                       \
 2373|  1.97k|            ssl3_pending,                                                  \
 2374|  1.97k|            ssl3_num_ciphers,                                              \
 2375|  1.97k|            ssl3_get_cipher,                                               \
 2376|  1.97k|            tls1_default_timeout,                                          \
 2377|  1.97k|            &enc_data,                                                     \
 2378|  1.97k|            ssl_undefined_void_function,                                   \
 2379|  1.97k|            ssl3_callback_ctrl,                                            \
 2380|  1.97k|            ssl3_ctx_callback_ctrl,                                        \
 2381|  1.97k|        };                                                                 \
 2382|  1.97k|        return &func_name##_data;                                          \
 2383|  1.97k|    }
tlsv1_2_client_method:
 2347|  1.97k|    {                                                                      \
 2348|  1.97k|        static const SSL_METHOD func_name##_data = {                       \
 2349|  1.97k|            version,                                                       \
 2350|  1.97k|            flags,                                                         \
 2351|  1.97k|            mask,                                                          \
 2352|  1.97k|            ossl_ssl_connection_new,                                       \
 2353|  1.97k|            ossl_ssl_connection_free,                                      \
 2354|  1.97k|            ossl_ssl_connection_reset,                                     \
 2355|  1.97k|            tls1_new,                                                      \
 2356|  1.97k|            tls1_clear,                                                    \
 2357|  1.97k|            tls1_free,                                                     \
 2358|  1.97k|            s_accept,                                                      \
 2359|  1.97k|            s_connect,                                                     \
 2360|  1.97k|            ssl3_read,                                                     \
 2361|  1.97k|            ssl3_peek,                                                     \
 2362|  1.97k|            ssl3_write,                                                    \
 2363|  1.97k|            ssl3_shutdown,                                                 \
 2364|  1.97k|            ssl3_renegotiate,                                              \
 2365|  1.97k|            ssl3_renegotiate_check,                                        \
 2366|  1.97k|            ssl3_read_bytes,                                               \
 2367|  1.97k|            ssl3_write_bytes,                                              \
 2368|  1.97k|            ssl3_dispatch_alert,                                           \
 2369|  1.97k|            ssl3_ctrl,                                                     \
 2370|  1.97k|            ssl3_ctx_ctrl,                                                 \
 2371|  1.97k|            ssl3_get_cipher_by_char,                                       \
 2372|  1.97k|            ssl3_put_cipher_by_char,                                       \
 2373|  1.97k|            ssl3_pending,                                                  \
 2374|  1.97k|            ssl3_num_ciphers,                                              \
 2375|  1.97k|            ssl3_get_cipher,                                               \
 2376|  1.97k|            tls1_default_timeout,                                          \
 2377|  1.97k|            &enc_data,                                                     \
 2378|  1.97k|            ssl_undefined_void_function,                                   \
 2379|  1.97k|            ssl3_callback_ctrl,                                            \
 2380|  1.97k|            ssl3_ctx_callback_ctrl,                                        \
 2381|  1.97k|        };                                                                 \
 2382|  1.97k|        return &func_name##_data;                                          \
 2383|  1.97k|    }
tlsv1_1_client_method:
 2347|  1.97k|    {                                                                      \
 2348|  1.97k|        static const SSL_METHOD func_name##_data = {                       \
 2349|  1.97k|            version,                                                       \
 2350|  1.97k|            flags,                                                         \
 2351|  1.97k|            mask,                                                          \
 2352|  1.97k|            ossl_ssl_connection_new,                                       \
 2353|  1.97k|            ossl_ssl_connection_free,                                      \
 2354|  1.97k|            ossl_ssl_connection_reset,                                     \
 2355|  1.97k|            tls1_new,                                                      \
 2356|  1.97k|            tls1_clear,                                                    \
 2357|  1.97k|            tls1_free,                                                     \
 2358|  1.97k|            s_accept,                                                      \
 2359|  1.97k|            s_connect,                                                     \
 2360|  1.97k|            ssl3_read,                                                     \
 2361|  1.97k|            ssl3_peek,                                                     \
 2362|  1.97k|            ssl3_write,                                                    \
 2363|  1.97k|            ssl3_shutdown,                                                 \
 2364|  1.97k|            ssl3_renegotiate,                                              \
 2365|  1.97k|            ssl3_renegotiate_check,                                        \
 2366|  1.97k|            ssl3_read_bytes,                                               \
 2367|  1.97k|            ssl3_write_bytes,                                              \
 2368|  1.97k|            ssl3_dispatch_alert,                                           \
 2369|  1.97k|            ssl3_ctrl,                                                     \
 2370|  1.97k|            ssl3_ctx_ctrl,                                                 \
 2371|  1.97k|            ssl3_get_cipher_by_char,                                       \
 2372|  1.97k|            ssl3_put_cipher_by_char,                                       \
 2373|  1.97k|            ssl3_pending,                                                  \
 2374|  1.97k|            ssl3_num_ciphers,                                              \
 2375|  1.97k|            ssl3_get_cipher,                                               \
 2376|  1.97k|            tls1_default_timeout,                                          \
 2377|  1.97k|            &enc_data,                                                     \
 2378|  1.97k|            ssl_undefined_void_function,                                   \
 2379|  1.97k|            ssl3_callback_ctrl,                                            \
 2380|  1.97k|            ssl3_ctx_callback_ctrl,                                        \
 2381|  1.97k|        };                                                                 \
 2382|  1.97k|        return &func_name##_data;                                          \
 2383|  1.97k|    }
tlsv1_client_method:
 2347|  1.97k|    {                                                                      \
 2348|  1.97k|        static const SSL_METHOD func_name##_data = {                       \
 2349|  1.97k|            version,                                                       \
 2350|  1.97k|            flags,                                                         \
 2351|  1.97k|            mask,                                                          \
 2352|  1.97k|            ossl_ssl_connection_new,                                       \
 2353|  1.97k|            ossl_ssl_connection_free,                                      \
 2354|  1.97k|            ossl_ssl_connection_reset,                                     \
 2355|  1.97k|            tls1_new,                                                      \
 2356|  1.97k|            tls1_clear,                                                    \
 2357|  1.97k|            tls1_free,                                                     \
 2358|  1.97k|            s_accept,                                                      \
 2359|  1.97k|            s_connect,                                                     \
 2360|  1.97k|            ssl3_read,                                                     \
 2361|  1.97k|            ssl3_peek,                                                     \
 2362|  1.97k|            ssl3_write,                                                    \
 2363|  1.97k|            ssl3_shutdown,                                                 \
 2364|  1.97k|            ssl3_renegotiate,                                              \
 2365|  1.97k|            ssl3_renegotiate_check,                                        \
 2366|  1.97k|            ssl3_read_bytes,                                               \
 2367|  1.97k|            ssl3_write_bytes,                                              \
 2368|  1.97k|            ssl3_dispatch_alert,                                           \
 2369|  1.97k|            ssl3_ctrl,                                                     \
 2370|  1.97k|            ssl3_ctx_ctrl,                                                 \
 2371|  1.97k|            ssl3_get_cipher_by_char,                                       \
 2372|  1.97k|            ssl3_put_cipher_by_char,                                       \
 2373|  1.97k|            ssl3_pending,                                                  \
 2374|  1.97k|            ssl3_num_ciphers,                                              \
 2375|  1.97k|            ssl3_get_cipher,                                               \
 2376|  1.97k|            tls1_default_timeout,                                          \
 2377|  1.97k|            &enc_data,                                                     \
 2378|  1.97k|            ssl_undefined_void_function,                                   \
 2379|  1.97k|            ssl3_callback_ctrl,                                            \
 2380|  1.97k|            ssl3_ctx_callback_ctrl,                                        \
 2381|  1.97k|        };                                                                 \
 2382|  1.97k|        return &func_name##_data;                                          \
 2383|  1.97k|    }
sslv3_client_method:
 2387|  1.97k|    {                                                            \
 2388|  1.97k|        static const SSL_METHOD func_name##_data = {             \
 2389|  1.97k|            SSL3_VERSION,                                        \
  ------------------
  |  |   23|  1.97k|#define SSL3_VERSION 0x0300
  ------------------
 2390|  1.97k|            SSL_METHOD_NO_FIPS | SSL_METHOD_NO_SUITEB,           \
  ------------------
  |  | 2341|  1.97k|#define SSL_METHOD_NO_FIPS (1U << 0)
  ------------------
                          SSL_METHOD_NO_FIPS | SSL_METHOD_NO_SUITEB,           \
  ------------------
  |  | 2342|  1.97k|#define SSL_METHOD_NO_SUITEB (1U << 1)
  ------------------
 2391|  1.97k|            SSL_OP_NO_SSLv3,                                     \
  ------------------
  |  |  428|  1.97k|#define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
  |  |  ------------------
  |  |  |  |  350|  1.97k|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
 2392|  1.97k|            ossl_ssl_connection_new,                             \
 2393|  1.97k|            ossl_ssl_connection_free,                            \
 2394|  1.97k|            ossl_ssl_connection_reset,                           \
 2395|  1.97k|            ssl3_new,                                            \
 2396|  1.97k|            ssl3_clear,                                          \
 2397|  1.97k|            ssl3_free,                                           \
 2398|  1.97k|            s_accept,                                            \
 2399|  1.97k|            s_connect,                                           \
 2400|  1.97k|            ssl3_read,                                           \
 2401|  1.97k|            ssl3_peek,                                           \
 2402|  1.97k|            ssl3_write,                                          \
 2403|  1.97k|            ssl3_shutdown,                                       \
 2404|  1.97k|            ssl3_renegotiate,                                    \
 2405|  1.97k|            ssl3_renegotiate_check,                              \
 2406|  1.97k|            ssl3_read_bytes,                                     \
 2407|  1.97k|            ssl3_write_bytes,                                    \
 2408|  1.97k|            ssl3_dispatch_alert,                                 \
 2409|  1.97k|            ssl3_ctrl,                                           \
 2410|  1.97k|            ssl3_ctx_ctrl,                                       \
 2411|  1.97k|            ssl3_get_cipher_by_char,                             \
 2412|  1.97k|            ssl3_put_cipher_by_char,                             \
 2413|  1.97k|            ssl3_pending,                                        \
 2414|  1.97k|            ssl3_num_ciphers,                                    \
 2415|  1.97k|            ssl3_get_cipher,                                     \
 2416|  1.97k|            ssl3_default_timeout,                                \
 2417|  1.97k|            &SSLv3_enc_data,                                     \
 2418|  1.97k|            ssl_undefined_void_function,                         \
 2419|  1.97k|            ssl3_callback_ctrl,                                  \
 2420|  1.97k|            ssl3_ctx_callback_ctrl,                              \
 2421|  1.97k|        };                                                       \
 2422|  1.97k|        return &func_name##_data;                                \
 2423|  1.97k|    }
statem_lib.c:ssl_tsan_counter:
 3074|    219|{
 3075|    219|    if (ssl_tsan_lock(ctx)) {
  ------------------
  |  Branch (3075:9): [True: 219, False: 0]
  ------------------
 3076|       |        tsan_counter(stat);
  ------------------
  |  |  149|    219|#define tsan_counter(ptr) tsan_add((ptr), 1)
  |  |  ------------------
  |  |  |  |   63|    219|#define tsan_add(ptr, n) atomic_fetch_add_explicit((ptr), (n), memory_order_relaxed)
  |  |  ------------------
  ------------------
 3077|    219|        ssl_tsan_unlock(ctx);
 3078|    219|    }
 3079|    219|}
statem_lib.c:ssl_tsan_lock:
 3057|    219|{
 3058|       |#ifdef TSAN_REQUIRES_LOCKING
 3059|       |    if (!CRYPTO_THREAD_write_lock(ctx->tsan_lock))
 3060|       |        return 0;
 3061|       |#endif
 3062|    219|    return 1;
 3063|    219|}
statem_lib.c:ssl_tsan_unlock:
 3066|    219|{
 3067|       |#ifdef TSAN_REQUIRES_LOCKING
 3068|       |    CRYPTO_THREAD_unlock(ctx->tsan_lock);
 3069|       |#endif
 3070|    219|}

ssl_ctx_system_config:
  105|    220|{
  106|    220|    return ssl_do_config(NULL, ctx, NULL, 1);
  107|    220|}
ssl_mcnf.c:ssl_do_config:
   24|    220|{
   25|    220|    SSL_CONF_CTX *cctx = NULL;
   26|    220|    size_t i, idx, cmd_count;
   27|    220|    int err = 1;
   28|    220|    unsigned int flags;
   29|    220|    unsigned int conf_diagnostics = 0;
   30|    220|    const SSL_METHOD *meth;
   31|    220|    const SSL_CONF_CMD *cmds;
   32|    220|    OSSL_LIB_CTX *prev_libctx = NULL;
   33|    220|    OSSL_LIB_CTX *libctx = NULL;
   34|       |
   35|    220|    if (s == NULL && ctx == NULL) {
  ------------------
  |  Branch (35:9): [True: 220, False: 0]
  |  Branch (35:22): [True: 0, False: 220]
  ------------------
   36|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   37|      0|        goto err;
   38|      0|    }
   39|       |
   40|    220|    if (name == NULL && system)
  ------------------
  |  Branch (40:9): [True: 220, False: 0]
  |  Branch (40:25): [True: 220, False: 0]
  ------------------
   41|    220|        name = "system_default";
   42|    220|    if (!conf_ssl_name_find(name, &idx)) {
  ------------------
  |  Branch (42:9): [True: 220, False: 0]
  ------------------
   43|    220|        if (!system)
  ------------------
  |  Branch (43:13): [True: 0, False: 220]
  ------------------
   44|      0|            ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |   89|      0|#define ERR_LIB_SSL 20
  ------------------
                          ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |  148|      0|#define SSL_R_INVALID_CONFIGURATION_NAME 113
  ------------------
   45|      0|                "name=%s", name);
   46|    220|        goto err;
   47|    220|    }
   48|      0|    cmds = conf_ssl_get(idx, &name, &cmd_count);
   49|      0|    cctx = SSL_CONF_CTX_new();
   50|      0|    if (cctx == NULL) {
  ------------------
  |  Branch (50:9): [True: 0, False: 0]
  ------------------
   51|       |        /* this is a fatal error, always report */
   52|      0|        system = 0;
   53|      0|        goto err;
   54|      0|    }
   55|      0|    flags = SSL_CONF_FLAG_FILE;
  ------------------
  |  |  604|      0|#define SSL_CONF_FLAG_FILE 0x2
  ------------------
   56|      0|    if (!system)
  ------------------
  |  Branch (56:9): [True: 0, False: 0]
  ------------------
   57|      0|        flags |= SSL_CONF_FLAG_CERTIFICATE | SSL_CONF_FLAG_REQUIRE_PRIVATE;
  ------------------
  |  |  608|      0|#define SSL_CONF_FLAG_CERTIFICATE 0x20
  ------------------
                      flags |= SSL_CONF_FLAG_CERTIFICATE | SSL_CONF_FLAG_REQUIRE_PRIVATE;
  ------------------
  |  |  609|      0|#define SSL_CONF_FLAG_REQUIRE_PRIVATE 0x40
  ------------------
   58|      0|    if (s != NULL) {
  ------------------
  |  Branch (58:9): [True: 0, False: 0]
  ------------------
   59|      0|        meth = s->method;
   60|      0|        SSL_CONF_CTX_set_ssl(cctx, s);
   61|      0|        libctx = s->ctx->libctx;
   62|      0|    } else {
   63|      0|        meth = ctx->method;
   64|      0|        SSL_CONF_CTX_set_ssl_ctx(cctx, ctx);
   65|      0|        libctx = ctx->libctx;
   66|      0|    }
   67|      0|    conf_diagnostics = OSSL_LIB_CTX_get_conf_diagnostics(libctx);
   68|      0|    if (conf_diagnostics)
  ------------------
  |  Branch (68:9): [True: 0, False: 0]
  ------------------
   69|      0|        flags |= SSL_CONF_FLAG_SHOW_ERRORS;
  ------------------
  |  |  607|      0|#define SSL_CONF_FLAG_SHOW_ERRORS 0x10
  ------------------
   70|      0|    if (meth->ssl_accept != ssl_undefined_function)
  ------------------
  |  Branch (70:9): [True: 0, False: 0]
  ------------------
   71|      0|        flags |= SSL_CONF_FLAG_SERVER;
  ------------------
  |  |  606|      0|#define SSL_CONF_FLAG_SERVER 0x8
  ------------------
   72|      0|    if (meth->ssl_connect != ssl_undefined_function)
  ------------------
  |  Branch (72:9): [True: 0, False: 0]
  ------------------
   73|      0|        flags |= SSL_CONF_FLAG_CLIENT;
  ------------------
  |  |  605|      0|#define SSL_CONF_FLAG_CLIENT 0x4
  ------------------
   74|      0|    SSL_CONF_CTX_set_flags(cctx, flags);
   75|      0|    prev_libctx = OSSL_LIB_CTX_set0_default(libctx);
   76|      0|    err = 0;
   77|      0|    for (i = 0; i < cmd_count; i++) {
  ------------------
  |  Branch (77:17): [True: 0, False: 0]
  ------------------
   78|      0|        char *cmdstr, *arg;
   79|      0|        int rv;
   80|       |
   81|      0|        conf_ssl_get_cmd(cmds, i, &cmdstr, &arg);
   82|      0|        rv = SSL_CONF_cmd(cctx, cmdstr, arg);
   83|      0|        if (rv <= 0)
  ------------------
  |  Branch (83:13): [True: 0, False: 0]
  ------------------
   84|      0|            ++err;
   85|      0|    }
   86|      0|    if (!SSL_CONF_CTX_finish(cctx))
  ------------------
  |  Branch (86:9): [True: 0, False: 0]
  ------------------
   87|      0|        ++err;
   88|    220|err:
   89|    220|    OSSL_LIB_CTX_set0_default(prev_libctx);
   90|    220|    SSL_CONF_CTX_free(cctx);
   91|    220|    return err == 0 || (system && !conf_diagnostics);
  ------------------
  |  Branch (91:12): [True: 0, False: 220]
  |  Branch (91:25): [True: 220, False: 0]
  |  Branch (91:35): [True: 220, False: 0]
  ------------------
   92|      0|}

ssl_session_calculate_timeout:
   49|    438|{
   50|    438|    ss->calc_timeout = ossl_time_add(ss->time, ss->timeout);
   51|    438|}
SSL_SESSION_new:
  103|    219|{
  104|    219|    SSL_SESSION *ss;
  105|       |
  106|    219|    if (!OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL))
  ------------------
  |  | 2822|    219|#define OPENSSL_INIT_LOAD_SSL_STRINGS 0x00200000L
  ------------------
  |  Branch (106:9): [True: 0, False: 219]
  ------------------
  107|      0|        return NULL;
  108|       |
  109|    219|    ss = OPENSSL_zalloc(sizeof(*ss));
  ------------------
  |  |  108|    219|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  110|    219|    if (ss == NULL)
  ------------------
  |  Branch (110:9): [True: 0, False: 219]
  ------------------
  111|      0|        return NULL;
  112|       |
  113|    219|    ss->ext.max_fragment_len_mode = TLSEXT_max_fragment_length_UNSPECIFIED;
  ------------------
  |  |  234|    219|#define TLSEXT_max_fragment_length_UNSPECIFIED 255
  ------------------
  114|    219|    ss->verify_result = 1; /* avoid 0 (= X509_V_OK) just in case */
  115|       |    /* 5 minute timeout by default */
  116|    219|    ss->timeout = ossl_seconds2time(60 * 5 + 4);
  ------------------
  |  |   42|    219|#define ossl_seconds2time(s) ossl_ticks2time((s) * OSSL_TIME_SECOND)
  |  |  ------------------
  |  |  |  |   31|    219|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  |  |  ------------------
  ------------------
  117|    219|    ss->time = ossl_time_now();
  118|    219|    ssl_session_calculate_timeout(ss);
  119|    219|    if (!CRYPTO_NEW_REF(&ss->references, 1)) {
  ------------------
  |  Branch (119:9): [True: 0, False: 219]
  ------------------
  120|      0|        OPENSSL_free(ss);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  121|      0|        return NULL;
  122|      0|    }
  123|       |
  124|    219|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, ss, &ss->ex_data)) {
  ------------------
  |  |  252|    219|#define CRYPTO_EX_INDEX_SSL_SESSION 2
  ------------------
  |  Branch (124:9): [True: 0, False: 219]
  ------------------
  125|      0|        CRYPTO_FREE_REF(&ss->references);
  126|      0|        OPENSSL_free(ss);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  127|      0|        return NULL;
  128|      0|    }
  129|    219|    return ss;
  130|    219|}
ssl_get_new_session:
  436|    219|{
  437|       |    /* This gets used by clients and servers. */
  438|       |
  439|    219|    SSL_SESSION *ss = NULL;
  440|       |
  441|    219|    if ((ss = SSL_SESSION_new()) == NULL) {
  ------------------
  |  Branch (441:9): [True: 0, False: 219]
  ------------------
  442|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_SSL_LIB);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  443|      0|        return 0;
  444|      0|    }
  445|       |
  446|       |    /* If the context has a default timeout, use it */
  447|    219|    if (ossl_time_is_zero(s->session_ctx->session_timeout))
  ------------------
  |  Branch (447:9): [True: 0, False: 219]
  ------------------
  448|      0|        ss->timeout = SSL_CONNECTION_GET_SSL(s)->method->get_timeout();
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  449|    219|    else
  450|    219|        ss->timeout = s->session_ctx->session_timeout;
  451|    219|    ssl_session_calculate_timeout(ss);
  452|       |
  453|    219|    SSL_SESSION_free(s->session);
  454|    219|    s->session = NULL;
  455|       |
  456|    219|    if (session) {
  ------------------
  |  Branch (456:9): [True: 0, False: 219]
  ------------------
  457|      0|        if (SSL_CONNECTION_IS_TLS13(s)) {
  ------------------
  |  |  265|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  266|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  267|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  458|       |            /*
  459|       |             * We generate the session id while constructing the
  460|       |             * NewSessionTicket in TLSv1.3.
  461|       |             */
  462|      0|            ss->session_id_length = 0;
  463|      0|        } else if (!ssl_generate_session_id(s, ss)) {
  ------------------
  |  Branch (463:20): [True: 0, False: 0]
  ------------------
  464|       |            /* SSLfatal() already called */
  465|      0|            SSL_SESSION_free(ss);
  466|      0|            return 0;
  467|      0|        }
  468|       |
  469|    219|    } else {
  470|    219|        ss->session_id_length = 0;
  471|    219|    }
  472|       |
  473|    219|    if (s->sid_ctx_length > sizeof(ss->sid_ctx)) {
  ------------------
  |  Branch (473:9): [True: 0, False: 219]
  ------------------
  474|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  475|      0|        SSL_SESSION_free(ss);
  476|      0|        return 0;
  477|      0|    }
  478|    219|    memcpy(ss->sid_ctx, s->sid_ctx, s->sid_ctx_length);
  479|    219|    ss->sid_ctx_length = s->sid_ctx_length;
  480|    219|    s->session = ss;
  481|    219|    ss->ssl_version = s->version;
  482|    219|    ss->verify_result = X509_V_OK;
  ------------------
  |  |  312|    219|#define X509_V_OK 0
  ------------------
  483|       |
  484|       |    /* If client supports extended master secret set it in session */
  485|    219|    if (s->s3.flags & TLS1_FLAGS_RECEIVED_EXTMS)
  ------------------
  |  |  300|    219|#define TLS1_FLAGS_RECEIVED_EXTMS 0x0200
  ------------------
  |  Branch (485:9): [True: 0, False: 219]
  ------------------
  486|      0|        ss->flags |= SSL_SESS_FLAG_EXTMS;
  ------------------
  |  |  567|      0|#define SSL_SESS_FLAG_EXTMS 0x1
  ------------------
  487|       |
  488|    219|    return 1;
  489|    219|}
SSL_SESSION_free:
  845|  1.31k|{
  846|  1.31k|    int i;
  847|       |
  848|  1.31k|    if (ss == NULL)
  ------------------
  |  Branch (848:9): [True: 1.09k, False: 219]
  ------------------
  849|  1.09k|        return;
  850|    219|    CRYPTO_DOWN_REF(&ss->references, &i);
  851|    219|    REF_PRINT_COUNT("SSL_SESSION", i, ss);
  ------------------
  |  |  301|    219|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    219|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  297|    219|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  285|    219|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  852|    219|    if (i > 0)
  ------------------
  |  Branch (852:9): [True: 0, False: 219]
  ------------------
  853|      0|        return;
  854|    219|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    219|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  855|       |
  856|    219|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, ss, &ss->ex_data);
  ------------------
  |  |  252|    219|#define CRYPTO_EX_INDEX_SSL_SESSION 2
  ------------------
  857|       |
  858|    219|    OPENSSL_cleanse(ss->master_key, sizeof(ss->master_key));
  859|    219|    OPENSSL_cleanse(ss->session_id, sizeof(ss->session_id));
  860|    219|    X509_free(ss->peer);
  861|    219|    EVP_PKEY_free(ss->peer_rpk);
  862|    219|    OSSL_STACK_OF_X509_free(ss->peer_chain);
  863|    219|    OPENSSL_free(ss->ext.hostname);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  864|    219|    OPENSSL_free(ss->ext.tick);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  865|    219|#ifndef OPENSSL_NO_PSK
  866|    219|    OPENSSL_free(ss->psk_identity_hint);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  867|    219|    OPENSSL_free(ss->psk_identity);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  868|    219|#endif
  869|    219|#ifndef OPENSSL_NO_SRP
  870|    219|    OPENSSL_free(ss->srp_username);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  871|    219|#endif
  872|    219|    OPENSSL_free(ss->ext.alpn_selected);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  873|    219|    OPENSSL_free(ss->ticket_appdata);
  ------------------
  |  |  131|    219|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  874|    219|    CRYPTO_FREE_REF(&ss->references);
  875|    219|    OPENSSL_clear_free(ss, sizeof(*ss));
  ------------------
  |  |  129|    219|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  876|    219|}
SSL_CTX_flush_sessions_ex:
 1211|    220|{
 1212|    220|    STACK_OF(SSL_SESSION) *sk;
  ------------------
  |  |   33|    220|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1213|    220|    SSL_SESSION *current;
 1214|    220|    unsigned long i;
 1215|    220|    const OSSL_TIME timeout = ossl_time_from_time_t(t);
 1216|       |
 1217|    220|    if (!CRYPTO_THREAD_write_lock(s->lock))
  ------------------
  |  Branch (1217:9): [True: 0, False: 220]
  ------------------
 1218|      0|        return;
 1219|       |
 1220|    220|    sk = sk_SSL_SESSION_new_null();
 1221|    220|    i = lh_SSL_SESSION_get_down_load(s->sessions);
 1222|    220|    lh_SSL_SESSION_set_down_load(s->sessions, 0);
 1223|       |
 1224|       |    /*
 1225|       |     * Iterate over the list from the back (oldest), and stop
 1226|       |     * when a session can no longer be removed.
 1227|       |     * Add the session to a temporary list to be freed outside
 1228|       |     * the SSL_CTX lock.
 1229|       |     * But still do the remove_session_cb() within the lock.
 1230|       |     */
 1231|    220|    while (s->session_cache_tail != NULL) {
  ------------------
  |  Branch (1231:12): [True: 0, False: 220]
  ------------------
 1232|      0|        current = s->session_cache_tail;
 1233|      0|        if (t == 0 || sess_timedout(timeout, current)) {
  ------------------
  |  Branch (1233:13): [True: 0, False: 0]
  |  Branch (1233:23): [True: 0, False: 0]
  ------------------
 1234|      0|            lh_SSL_SESSION_delete(s->sessions, current);
 1235|      0|            SSL_SESSION_list_remove(s, current);
 1236|      0|            current->not_resumable = 1;
 1237|      0|            if (s->remove_session_cb != NULL)
  ------------------
  |  Branch (1237:17): [True: 0, False: 0]
  ------------------
 1238|      0|                s->remove_session_cb(s, current);
 1239|       |            /*
 1240|       |             * Throw the session on a stack, it's entirely plausible
 1241|       |             * that while freeing outside the critical section, the
 1242|       |             * session could be re-added, so avoid using the next/prev
 1243|       |             * pointers. If the stack failed to create, or the session
 1244|       |             * couldn't be put on the stack, just free it here
 1245|       |             */
 1246|      0|            if (sk == NULL || !sk_SSL_SESSION_push(sk, current))
  ------------------
  |  Branch (1246:17): [True: 0, False: 0]
  |  Branch (1246:31): [True: 0, False: 0]
  ------------------
 1247|      0|                SSL_SESSION_free(current);
 1248|      0|        } else {
 1249|      0|            break;
 1250|      0|        }
 1251|      0|    }
 1252|       |
 1253|    220|    lh_SSL_SESSION_set_down_load(s->sessions, i);
 1254|    220|    CRYPTO_THREAD_unlock(s->lock);
 1255|       |
 1256|    220|    sk_SSL_SESSION_pop_free(sk, SSL_SESSION_free);
 1257|    220|}
ssl_clear_bad_session:
 1260|    658|{
 1261|    658|    if ((s->session != NULL) && !(s->shutdown & SSL_SENT_SHUTDOWN) && !(SSL_in_init(SSL_CONNECTION_GET_SSL(s)) || SSL_in_before(SSL_CONNECTION_GET_SSL(s)))) {
  ------------------
  |  |  215|    219|#define SSL_SENT_SHUTDOWN 1
  ------------------
                  if ((s->session != NULL) && !(s->shutdown & SSL_SENT_SHUTDOWN) && !(SSL_in_init(SSL_CONNECTION_GET_SSL(s)) || SSL_in_before(SSL_CONNECTION_GET_SSL(s)))) {
  ------------------
  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
                  if ((s->session != NULL) && !(s->shutdown & SSL_SENT_SHUTDOWN) && !(SSL_in_init(SSL_CONNECTION_GET_SSL(s)) || SSL_in_before(SSL_CONNECTION_GET_SSL(s)))) {
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  |  Branch (1261:9): [True: 219, False: 439]
  |  Branch (1261:33): [True: 219, False: 0]
  |  Branch (1261:73): [True: 219, False: 0]
  |  Branch (1261:115): [True: 0, False: 0]
  ------------------
 1262|      0|        SSL_CTX_remove_session(s->session_ctx, s->session);
 1263|      0|        return 1;
 1264|      0|    } else
 1265|    658|        return 0;
 1266|    658|}
SSL_CTX_sess_set_new_cb:
 1350|    220|{
 1351|    220|    ctx->new_session_cb = cb;
 1352|    220|}

extension_is_relevant:
  510|  6.35k|{
  511|  6.35k|    int is_tls13;
  512|       |
  513|       |    /*
  514|       |     * For HRR we haven't selected the version yet but we know it will be
  515|       |     * TLSv1.3
  516|       |     */
  517|  6.35k|    if ((thisctx & SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST) != 0)
  ------------------
  |  |  304|  6.35k|#define SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST 0x00800
  ------------------
  |  Branch (517:9): [True: 0, False: 6.35k]
  ------------------
  518|      0|        is_tls13 = 1;
  519|  6.35k|    else
  520|  6.35k|        is_tls13 = SSL_CONNECTION_IS_TLS13(s);
  ------------------
  |  |  265|  6.35k|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|  12.7k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  6.35k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|  6.35k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 6.35k, False: 0]
  |  |  ------------------
  |  |  266|  6.35k|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  6.35k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  12.7k|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 6.35k, False: 0]
  |  |  ------------------
  |  |  267|  6.35k|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|  6.35k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|  6.35k|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 6.35k]
  |  |  ------------------
  ------------------
  521|       |
  522|  6.35k|    if ((SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|  12.7k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  6.35k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  6.35k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 6.35k]
  |  |  ------------------
  ------------------
  523|      0|            && (extctx & SSL_EXT_TLS_IMPLEMENTATION_ONLY) != 0)
  ------------------
  |  |  290|      0|#define SSL_EXT_TLS_IMPLEMENTATION_ONLY 0x00004
  ------------------
  |  Branch (523:16): [True: 0, False: 0]
  ------------------
  524|  6.35k|        || (s->version == SSL3_VERSION
  ------------------
  |  |   23|  12.7k|#define SSL3_VERSION 0x0300
  ------------------
  |  Branch (524:13): [True: 0, False: 6.35k]
  ------------------
  525|      0|            && (extctx & SSL_EXT_SSL3_ALLOWED) == 0)
  ------------------
  |  |  292|      0|#define SSL_EXT_SSL3_ALLOWED 0x00008
  ------------------
  |  Branch (525:16): [True: 0, False: 0]
  ------------------
  526|       |        /*
  527|       |         * Note that SSL_IS_TLS13() means "TLS 1.3 has been negotiated",
  528|       |         * which is never true when generating the ClientHello.
  529|       |         * However, version negotiation *has* occurred by the time the
  530|       |         * ClientHello extensions are being parsed.
  531|       |         * Be careful to allow TLS 1.3-only extensions when generating
  532|       |         * the ClientHello.
  533|       |         */
  534|  6.35k|        || (is_tls13 && (extctx & SSL_EXT_TLS1_2_AND_BELOW_ONLY) != 0)
  ------------------
  |  |  294|      0|#define SSL_EXT_TLS1_2_AND_BELOW_ONLY 0x00010
  ------------------
  |  Branch (534:13): [True: 0, False: 6.35k]
  |  Branch (534:25): [True: 0, False: 0]
  ------------------
  535|  6.35k|        || (!is_tls13 && (extctx & SSL_EXT_TLS1_3_ONLY) != 0
  ------------------
  |  |  296|  6.35k|#define SSL_EXT_TLS1_3_ONLY 0x00020
  ------------------
  |  Branch (535:13): [True: 6.35k, False: 0]
  |  Branch (535:26): [True: 1.75k, False: 4.59k]
  ------------------
  536|  1.75k|            && (thisctx & SSL_EXT_CLIENT_HELLO) == 0)
  ------------------
  |  |  299|  1.75k|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (536:16): [True: 0, False: 1.75k]
  ------------------
  537|  6.35k|        || (s->server && !is_tls13 && (extctx & SSL_EXT_TLS1_3_ONLY) != 0)
  ------------------
  |  |  296|      0|#define SSL_EXT_TLS1_3_ONLY 0x00020
  ------------------
  |  Branch (537:13): [True: 0, False: 6.35k]
  |  Branch (537:26): [True: 0, False: 0]
  |  Branch (537:39): [True: 0, False: 0]
  ------------------
  538|  6.35k|        || (s->hit && (extctx & SSL_EXT_IGNORE_ON_RESUMPTION) != 0))
  ------------------
  |  |  298|      0|#define SSL_EXT_IGNORE_ON_RESUMPTION 0x00040
  ------------------
  |  Branch (538:13): [True: 0, False: 6.35k]
  |  Branch (538:23): [True: 0, False: 0]
  ------------------
  539|      0|        return 0;
  540|  6.35k|    return 1;
  541|  6.35k|}
should_add_extension:
  777|  6.35k|{
  778|       |    /* Skip if not relevant for our context */
  779|  6.35k|    if ((extctx & thisctx) == 0)
  ------------------
  |  Branch (779:9): [True: 0, False: 6.35k]
  ------------------
  780|      0|        return 0;
  781|       |
  782|       |    /* Check if this extension is defined for our protocol. If not, skip */
  783|  6.35k|    if (!extension_is_relevant(s, extctx, thisctx)
  ------------------
  |  Branch (783:9): [True: 0, False: 6.35k]
  ------------------
  784|  6.35k|        || ((extctx & SSL_EXT_TLS1_3_ONLY) != 0
  ------------------
  |  |  296|  6.35k|#define SSL_EXT_TLS1_3_ONLY 0x00020
  ------------------
  |  Branch (784:13): [True: 1.75k, False: 4.59k]
  ------------------
  785|  1.75k|            && (thisctx & SSL_EXT_CLIENT_HELLO) != 0
  ------------------
  |  |  299|  1.75k|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (785:16): [True: 1.75k, False: 0]
  ------------------
  786|  1.75k|            && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION)))
  ------------------
  |  |  258|  3.50k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  1.75k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  1.75k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 1.75k]
  |  |  ------------------
  ------------------
                          && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION)))
  ------------------
  |  |   27|  1.75k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (786:46): [True: 0, False: 1.75k]
  ------------------
  787|      0|        return 0;
  788|       |
  789|  6.35k|    return 1;
  790|  6.35k|}
tls_construct_extensions:
  803|    219|{
  804|    219|    size_t i;
  805|    219|    int min_version, max_version = 0, reason;
  806|    219|    const EXTENSION_DEFINITION *thisexd;
  807|    219|    int for_comp = (context & SSL_EXT_TLS1_3_CERTIFICATE_COMPRESSION) != 0;
  ------------------
  |  |  308|    219|#define SSL_EXT_TLS1_3_CERTIFICATE_COMPRESSION 0x08000
  ------------------
  808|       |
  809|    219|    if (!WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (809:9): [True: 0, False: 219]
  ------------------
  810|       |        /*
  811|       |         * If extensions are of zero length then we don't even add the
  812|       |         * extensions length bytes to a ClientHello/ServerHello
  813|       |         * (for non-TLSv1.3).
  814|       |         */
  815|    219|        || ((context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_2_SERVER_HELLO)) != 0
  ------------------
  |  |  299|    219|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
                      || ((context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_2_SERVER_HELLO)) != 0
  ------------------
  |  |  301|    219|#define SSL_EXT_TLS1_2_SERVER_HELLO 0x00100
  ------------------
  |  Branch (815:13): [True: 219, False: 0]
  ------------------
  816|    219|            && !WPACKET_set_flags(pkt,
  ------------------
  |  Branch (816:16): [True: 0, False: 219]
  ------------------
  817|    219|                WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH))) {
  ------------------
  |  |  703|    219|#define WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH 2
  ------------------
  818|      0|        if (!for_comp)
  ------------------
  |  Branch (818:13): [True: 0, False: 0]
  ------------------
  819|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  820|      0|        return 0;
  821|      0|    }
  822|       |
  823|    219|    if ((context & SSL_EXT_CLIENT_HELLO) != 0) {
  ------------------
  |  |  299|    219|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (823:9): [True: 219, False: 0]
  ------------------
  824|    219|        reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL);
  825|    219|        if (reason != 0) {
  ------------------
  |  Branch (825:13): [True: 0, False: 219]
  ------------------
  826|      0|            if (!for_comp)
  ------------------
  |  Branch (826:17): [True: 0, False: 0]
  ------------------
  827|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, reason);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  828|      0|            return 0;
  829|      0|        }
  830|    219|    }
  831|       |
  832|       |    /* Add custom extensions first */
  833|    219|    if ((context & SSL_EXT_CLIENT_HELLO) != 0) {
  ------------------
  |  |  299|    219|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (833:9): [True: 219, False: 0]
  ------------------
  834|       |        /* On the server side with initialise during ClientHello parsing */
  835|    219|        custom_ext_init(&s->cert->custext);
  836|    219|    }
  837|    219|    if (!custom_ext_add(s, context, pkt, x, chainidx, max_version)) {
  ------------------
  |  Branch (837:9): [True: 0, False: 219]
  ------------------
  838|       |        /* SSLfatal() already called */
  839|      0|        return 0;
  840|      0|    }
  841|       |
  842|  6.57k|    for (i = 0, thisexd = ext_defs; i < OSSL_NELEM(ext_defs); i++, thisexd++) {
  ------------------
  |  |   14|  6.57k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (842:37): [True: 6.35k, False: 219]
  ------------------
  843|  6.35k|        EXT_RETURN (*construct)(SSL_CONNECTION *s, WPACKET *pkt,
  844|  6.35k|            unsigned int context,
  845|  6.35k|            X509 *x, size_t chainidx);
  846|  6.35k|        EXT_RETURN ret;
  847|       |
  848|       |        /* Skip if not relevant for our context */
  849|  6.35k|        if (!should_add_extension(s, thisexd->context, context, max_version))
  ------------------
  |  Branch (849:13): [True: 0, False: 6.35k]
  ------------------
  850|      0|            continue;
  851|       |
  852|  6.35k|        construct = s->server ? thisexd->construct_stoc
  ------------------
  |  Branch (852:21): [True: 0, False: 6.35k]
  ------------------
  853|  6.35k|                              : thisexd->construct_ctos;
  854|       |
  855|  6.35k|        if (construct == NULL)
  ------------------
  |  Branch (855:13): [True: 438, False: 5.91k]
  ------------------
  856|    438|            continue;
  857|       |
  858|  5.91k|        ret = construct(s, pkt, context, x, chainidx);
  859|  5.91k|        if (ret == EXT_RETURN_FAIL) {
  ------------------
  |  Branch (859:13): [True: 0, False: 5.91k]
  ------------------
  860|       |            /* SSLfatal() already called */
  861|      0|            return 0;
  862|      0|        }
  863|  5.91k|        if (ret == EXT_RETURN_SENT
  ------------------
  |  Branch (863:13): [True: 2.56k, False: 3.34k]
  ------------------
  864|  2.56k|            && (context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_3_CERTIFICATE_REQUEST | SSL_EXT_TLS1_3_NEW_SESSION_TICKET)) != 0)
  ------------------
  |  |  299|  2.56k|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
                          && (context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_3_CERTIFICATE_REQUEST | SSL_EXT_TLS1_3_NEW_SESSION_TICKET)) != 0)
  ------------------
  |  |  307|  2.56k|#define SSL_EXT_TLS1_3_CERTIFICATE_REQUEST 0x04000
  ------------------
                          && (context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_3_CERTIFICATE_REQUEST | SSL_EXT_TLS1_3_NEW_SESSION_TICKET)) != 0)
  ------------------
  |  |  306|  2.56k|#define SSL_EXT_TLS1_3_NEW_SESSION_TICKET 0x02000
  ------------------
  |  Branch (864:16): [True: 2.56k, False: 0]
  ------------------
  865|  2.56k|            s->ext.extflags[i] |= SSL_EXT_FLAG_SENT;
  ------------------
  |  | 2068|  2.56k|#define SSL_EXT_FLAG_SENT 0x2
  ------------------
  866|  5.91k|    }
  867|       |
  868|    219|    if (!WPACKET_close(pkt)) {
  ------------------
  |  Branch (868:9): [True: 0, False: 219]
  ------------------
  869|      0|        if (!for_comp)
  ------------------
  |  Branch (869:13): [True: 0, False: 0]
  ------------------
  870|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  871|      0|        return 0;
  872|      0|    }
  873|       |
  874|    219|    return 1;
  875|    219|}
extensions.c:tls_construct_compress_certificate:
 1737|    219|{
 1738|       |#ifndef OPENSSL_NO_COMP_ALG
 1739|       |    int i;
 1740|       |
 1741|       |    if (!ossl_comp_has_alg(0))
 1742|       |        return EXT_RETURN_NOT_SENT;
 1743|       |
 1744|       |    /* Server: Don't attempt to compress a non-X509 (i.e. an RPK) */
 1745|       |    if (sc->server && sc->ext.server_cert_type != TLSEXT_cert_type_x509) {
 1746|       |        sc->cert_comp_prefs[0] = TLSEXT_comp_cert_none;
 1747|       |        return EXT_RETURN_NOT_SENT;
 1748|       |    }
 1749|       |
 1750|       |    /* Client: If we sent a client cert-type extension, don't indicate compression */
 1751|       |    if (!sc->server && sc->ext.client_cert_type_ctos) {
 1752|       |        sc->cert_comp_prefs[0] = TLSEXT_comp_cert_none;
 1753|       |        return EXT_RETURN_NOT_SENT;
 1754|       |    }
 1755|       |
 1756|       |    /* Do not indicate we support receiving compressed certificates */
 1757|       |    if ((sc->options & SSL_OP_NO_RX_CERTIFICATE_COMPRESSION) != 0)
 1758|       |        return EXT_RETURN_NOT_SENT;
 1759|       |
 1760|       |    if (sc->cert_comp_prefs[0] == TLSEXT_comp_cert_none)
 1761|       |        return EXT_RETURN_NOT_SENT;
 1762|       |
 1763|       |    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_compress_certificate)
 1764|       |        || !WPACKET_start_sub_packet_u16(pkt)
 1765|       |        || !WPACKET_start_sub_packet_u8(pkt))
 1766|       |        goto err;
 1767|       |
 1768|       |    for (i = 0; sc->cert_comp_prefs[i] != TLSEXT_comp_cert_none; i++) {
 1769|       |        if (!WPACKET_put_bytes_u16(pkt, sc->cert_comp_prefs[i]))
 1770|       |            goto err;
 1771|       |    }
 1772|       |    if (!WPACKET_close(pkt) || !WPACKET_close(pkt))
 1773|       |        goto err;
 1774|       |
 1775|       |    sc->ext.compress_certificate_sent = 1;
 1776|       |    return EXT_RETURN_SENT;
 1777|       |err:
 1778|       |    SSLfatal(sc, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
 1779|       |    return EXT_RETURN_FAIL;
 1780|       |#else
 1781|    219|    return EXT_RETURN_NOT_SENT;
 1782|    219|#endif
 1783|    219|}
extensions.c:tls_construct_certificate_authorities:
 1241|    219|{
 1242|    219|    const STACK_OF(X509_NAME) *ca_sk = get_ca_names(s);
 1243|       |
 1244|    219|    if (ca_sk == NULL || sk_X509_NAME_num(ca_sk) == 0)
  ------------------
  |  |   56|    219|#define sk_X509_NAME_num(sk) OPENSSL_sk_num(ossl_check_const_X509_NAME_sk_type(sk))
  ------------------
  |  Branch (1244:9): [True: 0, False: 219]
  |  Branch (1244:26): [True: 219, False: 0]
  ------------------
 1245|    219|        return EXT_RETURN_NOT_SENT;
 1246|       |
 1247|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_certificate_authorities)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1247:9): [True: 0, False: 0]
  ------------------
 1248|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1248:12): [True: 0, False: 0]
  ------------------
 1249|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1250|      0|        return EXT_RETURN_FAIL;
 1251|      0|    }
 1252|       |
 1253|      0|    if (!construct_ca_names(s, ca_sk, pkt)) {
  ------------------
  |  Branch (1253:9): [True: 0, False: 0]
  ------------------
 1254|       |        /* SSLfatal() already called */
 1255|      0|        return EXT_RETURN_FAIL;
 1256|      0|    }
 1257|       |
 1258|      0|    if (!WPACKET_close(pkt)) {
  ------------------
  |  Branch (1258:9): [True: 0, False: 0]
  ------------------
 1259|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1260|      0|        return EXT_RETURN_FAIL;
 1261|      0|    }
 1262|       |
 1263|      0|    return EXT_RETURN_SENT;
 1264|      0|}

tls_construct_ctos_renegotiate:
   19|    219|{
   20|    219|    if (!s->renegotiate) {
  ------------------
  |  Branch (20:9): [True: 219, False: 0]
  ------------------
   21|       |        /* If not renegotiating, send an empty RI extension to indicate support */
   22|       |
   23|       |#if DTLS_MAX_VERSION_INTERNAL != DTLS1_2_VERSION
   24|       |#error Internal DTLS version error
   25|       |#endif
   26|       |
   27|    219|        if (!SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|    438|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (27:13): [True: 219, False: 0]
  ------------------
   28|    219|            && (s->min_proto_version >= TLS1_3_VERSION
  ------------------
  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (28:17): [True: 0, False: 219]
  ------------------
   29|    219|                || (ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL)
  ------------------
  |  | 2766|    219|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|    219|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
                              || (ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL)
  ------------------
  |  |   24|    219|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (29:21): [True: 0, False: 219]
  ------------------
   30|      0|                    && s->min_proto_version <= TLS1_VERSION))) {
  ------------------
  |  |   24|      0|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (30:24): [True: 0, False: 0]
  ------------------
   31|       |            /*
   32|       |             * For TLS <= 1.0 SCSV is used instead, and for TLS 1.3 this
   33|       |             * extension isn't used at all.
   34|       |             */
   35|      0|            return EXT_RETURN_NOT_SENT;
   36|      0|        }
   37|       |
   38|    219|        if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_renegotiate)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (38:13): [True: 0, False: 219]
  ------------------
   39|    219|            || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (39:16): [True: 0, False: 219]
  ------------------
   40|    219|            || !WPACKET_put_bytes_u8(pkt, 0)
  ------------------
  |  |  889|    438|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (40:16): [True: 0, False: 219]
  ------------------
   41|    219|            || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (41:16): [True: 0, False: 219]
  ------------------
   42|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   43|      0|            return EXT_RETURN_FAIL;
   44|      0|        }
   45|       |
   46|    219|        return EXT_RETURN_SENT;
   47|    219|    }
   48|       |
   49|       |    /* Add a complete RI extension if renegotiating */
   50|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_renegotiate)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (50:9): [True: 0, False: 0]
  ------------------
   51|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (51:12): [True: 0, False: 0]
  ------------------
   52|      0|        || !WPACKET_sub_memcpy_u8(pkt, s->s3.previous_client_finished,
  ------------------
  |  |  918|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (52:12): [True: 0, False: 0]
  ------------------
   53|      0|            s->s3.previous_client_finished_len)
   54|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (54:12): [True: 0, False: 0]
  ------------------
   55|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   56|      0|        return EXT_RETURN_FAIL;
   57|      0|    }
   58|       |
   59|      0|    return EXT_RETURN_SENT;
   60|      0|}
tls_construct_ctos_server_name:
   65|    219|{
   66|    219|    if (s->ext.hostname == NULL)
  ------------------
  |  Branch (66:9): [True: 63, False: 156]
  ------------------
   67|     63|        return EXT_RETURN_NOT_SENT;
   68|       |
   69|       |    /* Add TLS extension servername to the Client Hello message */
   70|    156|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_server_name)
  ------------------
  |  |  891|    312|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (70:9): [True: 0, False: 156]
  ------------------
   71|       |        /* Sub-packet for server_name extension */
   72|    156|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    312|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (72:12): [True: 0, False: 156]
  ------------------
   73|       |        /* Sub-packet for servername list (always 1 hostname)*/
   74|    156|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    312|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (74:12): [True: 0, False: 156]
  ------------------
   75|    156|        || !WPACKET_put_bytes_u8(pkt, TLSEXT_NAMETYPE_host_name)
  ------------------
  |  |  889|    312|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (75:12): [True: 0, False: 156]
  ------------------
   76|    156|        || !WPACKET_sub_memcpy_u16(pkt, s->ext.hostname,
  ------------------
  |  |  920|    312|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (76:12): [True: 0, False: 156]
  ------------------
   77|    156|            strlen(s->ext.hostname))
   78|    156|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (78:12): [True: 0, False: 156]
  ------------------
   79|    156|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (79:12): [True: 0, False: 156]
  ------------------
   80|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   81|      0|        return EXT_RETURN_FAIL;
   82|      0|    }
   83|       |
   84|    156|    return EXT_RETURN_SENT;
   85|    156|}
tls_construct_ctos_maxfragmentlen:
   91|    219|{
   92|    219|    if (s->ext.max_fragment_len_mode == TLSEXT_max_fragment_length_DISABLED)
  ------------------
  |  |  227|    219|#define TLSEXT_max_fragment_length_DISABLED 0
  ------------------
  |  Branch (92:9): [True: 219, False: 0]
  ------------------
   93|    219|        return EXT_RETURN_NOT_SENT;
   94|       |
   95|       |    /* Add Max Fragment Length extension if client enabled it. */
   96|       |    /*-
   97|       |     * 4 bytes for this extension type and extension length
   98|       |     * 1 byte for the Max Fragment Length code value.
   99|       |     */
  100|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_max_fragment_length)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (100:9): [True: 0, False: 0]
  ------------------
  101|       |        /* Sub-packet for Max Fragment Length extension (1 byte) */
  102|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (102:12): [True: 0, False: 0]
  ------------------
  103|      0|        || !WPACKET_put_bytes_u8(pkt, s->ext.max_fragment_len_mode)
  ------------------
  |  |  889|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (103:12): [True: 0, False: 0]
  ------------------
  104|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (104:12): [True: 0, False: 0]
  ------------------
  105|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  106|      0|        return EXT_RETURN_FAIL;
  107|      0|    }
  108|       |
  109|      0|    return EXT_RETURN_SENT;
  110|      0|}
tls_construct_ctos_srp:
  116|    219|{
  117|       |    /* Add SRP username if there is one */
  118|    219|    if (s->srp_ctx.login == NULL)
  ------------------
  |  Branch (118:9): [True: 219, False: 0]
  ------------------
  119|    219|        return EXT_RETURN_NOT_SENT;
  120|       |
  121|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_srp)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (121:9): [True: 0, False: 0]
  ------------------
  122|       |        /* Sub-packet for SRP extension */
  123|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (123:12): [True: 0, False: 0]
  ------------------
  124|      0|        || !WPACKET_start_sub_packet_u8(pkt)
  ------------------
  |  |  790|      0|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (124:12): [True: 0, False: 0]
  ------------------
  125|       |        /* login must not be zero...internal error if so */
  126|      0|        || !WPACKET_set_flags(pkt, WPACKET_FLAGS_NON_ZERO_LENGTH)
  ------------------
  |  |  697|      0|#define WPACKET_FLAGS_NON_ZERO_LENGTH 1
  ------------------
  |  Branch (126:12): [True: 0, False: 0]
  ------------------
  127|      0|        || !WPACKET_memcpy(pkt, s->srp_ctx.login,
  ------------------
  |  Branch (127:12): [True: 0, False: 0]
  ------------------
  128|      0|            strlen(s->srp_ctx.login))
  129|      0|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (129:12): [True: 0, False: 0]
  ------------------
  130|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (130:12): [True: 0, False: 0]
  ------------------
  131|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  132|      0|        return EXT_RETURN_FAIL;
  133|      0|    }
  134|       |
  135|      0|    return EXT_RETURN_SENT;
  136|      0|}
tls_construct_ctos_ec_pt_formats:
  186|    219|{
  187|    219|    const unsigned char *pformats;
  188|    219|    size_t num_formats;
  189|    219|    int reason, min_version, max_version;
  190|       |
  191|    219|    reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL);
  192|    219|    if (reason != 0) {
  ------------------
  |  Branch (192:9): [True: 0, False: 219]
  ------------------
  193|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, reason);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  194|      0|        return EXT_RETURN_FAIL;
  195|      0|    }
  196|    219|    if (!use_ecc(s, min_version, max_version))
  ------------------
  |  Branch (196:9): [True: 0, False: 219]
  ------------------
  197|      0|        return EXT_RETURN_NOT_SENT;
  198|       |
  199|       |    /* Add TLS extension ECPointFormats to the ClientHello message */
  200|    219|    tls1_get_formatlist(s, &pformats, &num_formats);
  201|       |
  202|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_ec_point_formats)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (202:9): [True: 0, False: 219]
  ------------------
  203|       |        /* Sub-packet for formats extension */
  204|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (204:12): [True: 0, False: 219]
  ------------------
  205|    219|        || !WPACKET_sub_memcpy_u8(pkt, pformats, num_formats)
  ------------------
  |  |  918|    438|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (205:12): [True: 0, False: 219]
  ------------------
  206|    219|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (206:12): [True: 0, False: 219]
  ------------------
  207|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  208|      0|        return EXT_RETURN_FAIL;
  209|      0|    }
  210|       |
  211|    219|    return EXT_RETURN_SENT;
  212|    219|}
tls_construct_ctos_supported_groups:
  217|    219|{
  218|    219|    const uint16_t *pgroups = NULL;
  219|    219|    size_t num_groups = 0, i, tls13added = 0, added = 0;
  220|    219|    int min_version, max_version, reason;
  221|       |
  222|    219|    reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL);
  223|    219|    if (reason != 0) {
  ------------------
  |  Branch (223:9): [True: 0, False: 219]
  ------------------
  224|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, reason);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  225|      0|        return EXT_RETURN_FAIL;
  226|      0|    }
  227|       |
  228|       |    /*
  229|       |     * We only support EC groups in TLSv1.2 or below, and in DTLS. Therefore
  230|       |     * if we don't have EC support then we don't send this extension.
  231|       |     */
  232|    219|    if (!use_ecc(s, min_version, max_version)
  ------------------
  |  Branch (232:9): [True: 0, False: 219]
  ------------------
  233|      0|        && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION))
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                      && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION))
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (233:42): [True: 0, False: 0]
  ------------------
  234|      0|        return EXT_RETURN_NOT_SENT;
  235|       |
  236|       |    /*
  237|       |     * Add TLS extension supported_groups to the ClientHello message
  238|       |     */
  239|    219|    tls1_get_supported_groups(s, &pgroups, &num_groups);
  240|       |
  241|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_supported_groups)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (241:9): [True: 0, False: 219]
  ------------------
  242|       |        /* Sub-packet for supported_groups extension */
  243|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (243:12): [True: 0, False: 219]
  ------------------
  244|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (244:12): [True: 0, False: 219]
  ------------------
  245|    219|        || !WPACKET_set_flags(pkt, WPACKET_FLAGS_NON_ZERO_LENGTH)) {
  ------------------
  |  |  697|    219|#define WPACKET_FLAGS_NON_ZERO_LENGTH 1
  ------------------
  |  Branch (245:12): [True: 0, False: 219]
  ------------------
  246|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  247|      0|        return EXT_RETURN_FAIL;
  248|      0|    }
  249|       |    /* Copy group ID if supported */
  250|  1.97k|    for (i = 0; i < num_groups; i++) {
  ------------------
  |  Branch (250:17): [True: 1.75k, False: 219]
  ------------------
  251|  1.75k|        uint16_t ctmp = pgroups[i];
  252|  1.75k|        int okfortls13;
  253|       |
  254|  1.75k|        if (tls_valid_group(s, ctmp, min_version, max_version, 0, &okfortls13)
  ------------------
  |  Branch (254:13): [True: 1.75k, False: 0]
  ------------------
  255|  1.75k|            && tls_group_allowed(s, ctmp, SSL_SECOP_CURVE_SUPPORTED)) {
  ------------------
  |  | 2758|  1.75k|#define SSL_SECOP_CURVE_SUPPORTED (4 | SSL_SECOP_OTHER_CURVE)
  |  |  ------------------
  |  |  |  | 2739|  1.75k|#define SSL_SECOP_OTHER_CURVE (2 << 16)
  |  |  ------------------
  ------------------
  |  Branch (255:16): [True: 1.75k, False: 0]
  ------------------
  256|  1.75k|            if (!WPACKET_put_bytes_u16(pkt, ctmp)) {
  ------------------
  |  |  891|  1.75k|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (256:17): [True: 0, False: 1.75k]
  ------------------
  257|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  258|      0|                return EXT_RETURN_FAIL;
  259|      0|            }
  260|  1.75k|            if (okfortls13 && max_version == TLS1_3_VERSION)
  ------------------
  |  |   27|  1.75k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (260:17): [True: 1.75k, False: 0]
  |  Branch (260:31): [True: 1.75k, False: 0]
  ------------------
  261|  1.75k|                tls13added++;
  262|  1.75k|            added++;
  263|  1.75k|        }
  264|  1.75k|    }
  265|    219|    if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (265:9): [True: 0, False: 219]
  |  Branch (265:32): [True: 0, False: 219]
  ------------------
  266|      0|        if (added == 0)
  ------------------
  |  Branch (266:13): [True: 0, False: 0]
  ------------------
  267|      0|            SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  152|      0|        ossl_statem_fatal)
  ------------------
                          SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  | 1243|      0|#define SSL_AD_INTERNAL_ERROR TLS1_AD_INTERNAL_ERROR
  |  |  ------------------
  |  |  |  |   66|      0|#define TLS1_AD_INTERNAL_ERROR 80 /* fatal */
  |  |  ------------------
  ------------------
                          SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  |  214|      0|#define SSL_R_NO_SUITABLE_GROUPS 295
  ------------------
  268|      0|                "No groups enabled for max supported SSL/TLS version");
  269|      0|        else
  270|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  271|      0|        return EXT_RETURN_FAIL;
  272|      0|    }
  273|       |
  274|    219|    if (tls13added == 0 && max_version == TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (274:9): [True: 0, False: 219]
  |  Branch (274:28): [True: 0, False: 0]
  ------------------
  275|      0|        SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  152|      0|        ossl_statem_fatal)
  ------------------
                      SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  | 1243|      0|#define SSL_AD_INTERNAL_ERROR TLS1_AD_INTERNAL_ERROR
  |  |  ------------------
  |  |  |  |   66|      0|#define TLS1_AD_INTERNAL_ERROR 80 /* fatal */
  |  |  ------------------
  ------------------
                      SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  |  214|      0|#define SSL_R_NO_SUITABLE_GROUPS 295
  ------------------
  276|      0|            "No groups enabled for max supported SSL/TLS version");
  277|      0|        return EXT_RETURN_FAIL;
  278|      0|    }
  279|       |
  280|    219|    return EXT_RETURN_SENT;
  281|    219|}
tls_construct_ctos_session_ticket:
  286|    219|{
  287|    219|    size_t ticklen;
  288|       |
  289|    219|    if (!tls_use_ticket(s))
  ------------------
  |  Branch (289:9): [True: 219, False: 0]
  ------------------
  290|    219|        return EXT_RETURN_NOT_SENT;
  291|       |
  292|      0|    if (!s->new_session && s->session != NULL
  ------------------
  |  Branch (292:9): [True: 0, False: 0]
  |  Branch (292:28): [True: 0, False: 0]
  ------------------
  293|      0|        && s->session->ext.tick != NULL
  ------------------
  |  Branch (293:12): [True: 0, False: 0]
  ------------------
  294|      0|        && s->session->ssl_version != TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (294:12): [True: 0, False: 0]
  ------------------
  295|      0|        ticklen = s->session->ext.ticklen;
  296|      0|    } else if (s->session && s->ext.session_ticket != NULL
  ------------------
  |  Branch (296:16): [True: 0, False: 0]
  |  Branch (296:30): [True: 0, False: 0]
  ------------------
  297|      0|        && s->ext.session_ticket->data != NULL) {
  ------------------
  |  Branch (297:12): [True: 0, False: 0]
  ------------------
  298|      0|        ticklen = s->ext.session_ticket->length;
  299|      0|        s->session->ext.tick = OPENSSL_malloc(ticklen);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  300|      0|        if (s->session->ext.tick == NULL) {
  ------------------
  |  Branch (300:13): [True: 0, False: 0]
  ------------------
  301|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  302|      0|            return EXT_RETURN_FAIL;
  303|      0|        }
  304|      0|        memcpy(s->session->ext.tick,
  305|      0|            s->ext.session_ticket->data, ticklen);
  306|      0|        s->session->ext.ticklen = ticklen;
  307|      0|    } else {
  308|      0|        ticklen = 0;
  309|      0|    }
  310|       |
  311|      0|    if (ticklen == 0 && s->ext.session_ticket != NULL && s->ext.session_ticket->data == NULL)
  ------------------
  |  Branch (311:9): [True: 0, False: 0]
  |  Branch (311:25): [True: 0, False: 0]
  |  Branch (311:58): [True: 0, False: 0]
  ------------------
  312|      0|        return EXT_RETURN_NOT_SENT;
  313|       |
  314|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_session_ticket)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (314:9): [True: 0, False: 0]
  ------------------
  315|      0|        || !WPACKET_sub_memcpy_u16(pkt, s->session->ext.tick, ticklen)) {
  ------------------
  |  |  920|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (315:12): [True: 0, False: 0]
  ------------------
  316|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  317|      0|        return EXT_RETURN_FAIL;
  318|      0|    }
  319|       |
  320|      0|    return EXT_RETURN_SENT;
  321|      0|}
tls_construct_ctos_sig_algs:
  326|    219|{
  327|    219|    size_t salglen;
  328|    219|    const uint16_t *salg;
  329|       |
  330|       |    /*
  331|       |     * This used both in the initial hello and as part of renegotiation,
  332|       |     * in the latter case, the client version may be already set and may
  333|       |     * be lower than that initially offered in `client_version`.
  334|       |     */
  335|    219|    if (!SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (335:9): [True: 219, False: 0]
  ------------------
  336|    219|        if (s->client_version < TLS1_2_VERSION
  ------------------
  |  |   26|    438|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (336:13): [True: 0, False: 219]
  ------------------
  337|    219|            || (s->ssl.method->version != TLS_ANY_VERSION
  ------------------
  |  |   40|    438|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (337:17): [True: 0, False: 219]
  ------------------
  338|      0|                && s->version < TLS1_2_VERSION))
  ------------------
  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (338:20): [True: 0, False: 0]
  ------------------
  339|      0|            return EXT_RETURN_NOT_SENT;
  340|    219|    } else {
  341|      0|        if (DTLS_VERSION_LT(s->client_version, DTLS1_2_VERSION)
  ------------------
  |  |   60|      0|#define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (60:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  342|      0|            || (s->ssl.method->version != DTLS_ANY_VERSION
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
  |  Branch (342:17): [True: 0, False: 0]
  ------------------
  343|      0|                && DTLS_VERSION_LT(s->version, DTLS1_2_VERSION)))
  ------------------
  |  |   60|      0|#define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (60:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  344|      0|            return EXT_RETURN_NOT_SENT;
  345|      0|    }
  346|       |
  347|    219|    salglen = tls12_get_psigalgs(s, 1, &salg);
  348|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_signature_algorithms)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (348:9): [True: 0, False: 219]
  ------------------
  349|       |        /* Sub-packet for sig-algs extension */
  350|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (350:12): [True: 0, False: 219]
  ------------------
  351|       |        /* Sub-packet for the actual list */
  352|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (352:12): [True: 0, False: 219]
  ------------------
  353|    219|        || !tls12_copy_sigalgs(s, pkt, salg, salglen)
  ------------------
  |  Branch (353:12): [True: 0, False: 219]
  ------------------
  354|    219|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (354:12): [True: 0, False: 219]
  ------------------
  355|    219|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (355:12): [True: 0, False: 219]
  ------------------
  356|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  357|      0|        return EXT_RETURN_FAIL;
  358|      0|    }
  359|       |
  360|    219|    return EXT_RETURN_SENT;
  361|    219|}
tls_construct_ctos_status_request:
  367|    219|{
  368|    219|    int i;
  369|       |
  370|       |    /* This extension isn't defined for client Certificates */
  371|    219|    if (x != NULL)
  ------------------
  |  Branch (371:9): [True: 0, False: 219]
  ------------------
  372|      0|        return EXT_RETURN_NOT_SENT;
  373|       |
  374|    219|    if (s->ext.status_type != TLSEXT_STATUSTYPE_ocsp)
  ------------------
  |  |  173|    219|#define TLSEXT_STATUSTYPE_ocsp 1
  ------------------
  |  Branch (374:9): [True: 219, False: 0]
  ------------------
  375|    219|        return EXT_RETURN_NOT_SENT;
  376|       |
  377|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_status_request)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (377:9): [True: 0, False: 0]
  ------------------
  378|       |        /* Sub-packet for status request extension */
  379|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (379:12): [True: 0, False: 0]
  ------------------
  380|      0|        || !WPACKET_put_bytes_u8(pkt, TLSEXT_STATUSTYPE_ocsp)
  ------------------
  |  |  889|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (380:12): [True: 0, False: 0]
  ------------------
  381|       |        /* Sub-packet for the ids */
  382|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (382:12): [True: 0, False: 0]
  ------------------
  383|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  384|      0|        return EXT_RETURN_FAIL;
  385|      0|    }
  386|      0|    for (i = 0; i < sk_OCSP_RESPID_num(s->ext.ocsp.ids); i++) {
  ------------------
  |  |  166|      0|#define sk_OCSP_RESPID_num(sk) OPENSSL_sk_num(ossl_check_const_OCSP_RESPID_sk_type(sk))
  ------------------
  |  Branch (386:17): [True: 0, False: 0]
  ------------------
  387|      0|        unsigned char *idbytes;
  388|      0|        OCSP_RESPID *id = sk_OCSP_RESPID_value(s->ext.ocsp.ids, i);
  ------------------
  |  |  167|      0|#define sk_OCSP_RESPID_value(sk, idx) ((OCSP_RESPID *)OPENSSL_sk_value(ossl_check_const_OCSP_RESPID_sk_type(sk), (idx)))
  ------------------
  389|      0|        int idlen = i2d_OCSP_RESPID(id, NULL);
  390|       |
  391|      0|        if (idlen <= 0
  ------------------
  |  Branch (391:13): [True: 0, False: 0]
  ------------------
  392|       |            /* Sub-packet for an individual id */
  393|      0|            || !WPACKET_sub_allocate_bytes_u16(pkt, idlen, &idbytes)
  ------------------
  |  |  831|      0|    WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 2)
  ------------------
  |  Branch (393:16): [True: 0, False: 0]
  ------------------
  394|      0|            || i2d_OCSP_RESPID(id, &idbytes) != idlen) {
  ------------------
  |  Branch (394:16): [True: 0, False: 0]
  ------------------
  395|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  396|      0|            return EXT_RETURN_FAIL;
  397|      0|        }
  398|      0|    }
  399|      0|    if (!WPACKET_close(pkt)
  ------------------
  |  Branch (399:9): [True: 0, False: 0]
  ------------------
  400|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (400:12): [True: 0, False: 0]
  ------------------
  401|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  402|      0|        return EXT_RETURN_FAIL;
  403|      0|    }
  404|      0|    if (s->ext.ocsp.exts) {
  ------------------
  |  Branch (404:9): [True: 0, False: 0]
  ------------------
  405|      0|        unsigned char *extbytes;
  406|      0|        int extlen = i2d_X509_EXTENSIONS(s->ext.ocsp.exts, NULL);
  407|       |
  408|      0|        if (extlen < 0) {
  ------------------
  |  Branch (408:13): [True: 0, False: 0]
  ------------------
  409|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  410|      0|            return EXT_RETURN_FAIL;
  411|      0|        }
  412|      0|        if (!WPACKET_allocate_bytes(pkt, extlen, &extbytes)
  ------------------
  |  Branch (412:13): [True: 0, False: 0]
  ------------------
  413|      0|            || i2d_X509_EXTENSIONS(s->ext.ocsp.exts, &extbytes)
  ------------------
  |  Branch (413:16): [True: 0, False: 0]
  ------------------
  414|      0|                != extlen) {
  415|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  416|      0|            return EXT_RETURN_FAIL;
  417|      0|        }
  418|      0|    }
  419|      0|    if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (419:9): [True: 0, False: 0]
  |  Branch (419:32): [True: 0, False: 0]
  ------------------
  420|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  421|      0|        return EXT_RETURN_FAIL;
  422|      0|    }
  423|       |
  424|      0|    return EXT_RETURN_SENT;
  425|      0|}
tls_construct_ctos_npn:
  432|    219|{
  433|    219|    if (SSL_CONNECTION_GET_CTX(s)->ext.npn_select_cb == NULL
  ------------------
  |  |   26|    219|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  |  Branch (433:9): [True: 219, False: 0]
  ------------------
  434|      0|        || !SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  277|      0|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 0, False: 0]
  |  |  ------------------
  |  |  278|      0|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  435|    219|        return EXT_RETURN_NOT_SENT;
  436|       |
  437|       |    /*
  438|       |     * The client advertises an empty extension to indicate its support
  439|       |     * for Next Protocol Negotiation
  440|       |     */
  441|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_next_proto_neg)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (441:9): [True: 0, False: 0]
  ------------------
  442|      0|        || !WPACKET_put_bytes_u16(pkt, 0)) {
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (442:12): [True: 0, False: 0]
  ------------------
  443|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  444|      0|        return EXT_RETURN_FAIL;
  445|      0|    }
  446|       |
  447|      0|    return EXT_RETURN_SENT;
  448|      0|}
tls_construct_ctos_alpn:
  454|    219|{
  455|    219|    s->s3.alpn_sent = 0;
  456|       |
  457|    219|    if (s->ext.alpn == NULL || !SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  277|      0|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 0, False: 0]
  |  |  ------------------
  |  |  278|      0|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (457:9): [True: 219, False: 0]
  ------------------
  458|    219|        return EXT_RETURN_NOT_SENT;
  459|       |
  460|      0|    if (!WPACKET_put_bytes_u16(pkt,
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (460:9): [True: 0, False: 0]
  ------------------
  461|      0|            TLSEXT_TYPE_application_layer_protocol_negotiation)
  462|       |        /* Sub-packet ALPN extension */
  463|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (463:12): [True: 0, False: 0]
  ------------------
  464|      0|        || !WPACKET_sub_memcpy_u16(pkt, s->ext.alpn, s->ext.alpn_len)
  ------------------
  |  |  920|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (464:12): [True: 0, False: 0]
  ------------------
  465|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (465:12): [True: 0, False: 0]
  ------------------
  466|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  467|      0|        return EXT_RETURN_FAIL;
  468|      0|    }
  469|      0|    s->s3.alpn_sent = 1;
  470|       |
  471|      0|    return EXT_RETURN_SENT;
  472|      0|}
tls_construct_ctos_use_srtp:
  478|    219|{
  479|    219|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  480|    219|    STACK_OF(SRTP_PROTECTION_PROFILE) *clnt = SSL_get_srtp_profiles(ssl);
  ------------------
  |  |   33|    219|#define STACK_OF(type) struct stack_st_##type
  ------------------
  481|    219|    int i, end;
  482|       |
  483|    219|    if (clnt == NULL)
  ------------------
  |  Branch (483:9): [True: 219, False: 0]
  ------------------
  484|    219|        return EXT_RETURN_NOT_SENT;
  485|       |
  486|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_use_srtp)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (486:9): [True: 0, False: 0]
  ------------------
  487|       |        /* Sub-packet for SRTP extension */
  488|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (488:12): [True: 0, False: 0]
  ------------------
  489|       |        /* Sub-packet for the protection profile list */
  490|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (490:12): [True: 0, False: 0]
  ------------------
  491|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  492|      0|        return EXT_RETURN_FAIL;
  493|      0|    }
  494|       |
  495|      0|    end = sk_SRTP_PROTECTION_PROFILE_num(clnt);
  ------------------
  |  |  250|      0|#define sk_SRTP_PROTECTION_PROFILE_num(sk) OPENSSL_sk_num(ossl_check_const_SRTP_PROTECTION_PROFILE_sk_type(sk))
  ------------------
  496|      0|    for (i = 0; i < end; i++) {
  ------------------
  |  Branch (496:17): [True: 0, False: 0]
  ------------------
  497|      0|        const SRTP_PROTECTION_PROFILE *prof = sk_SRTP_PROTECTION_PROFILE_value(clnt, i);
  ------------------
  |  |  251|      0|#define sk_SRTP_PROTECTION_PROFILE_value(sk, idx) ((SRTP_PROTECTION_PROFILE *)OPENSSL_sk_value(ossl_check_const_SRTP_PROTECTION_PROFILE_sk_type(sk), (idx)))
  ------------------
  498|       |
  499|      0|        if (prof == NULL || !WPACKET_put_bytes_u16(pkt, prof->id)) {
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (499:13): [True: 0, False: 0]
  |  Branch (499:29): [True: 0, False: 0]
  ------------------
  500|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  501|      0|            return EXT_RETURN_FAIL;
  502|      0|        }
  503|      0|    }
  504|      0|    if (!WPACKET_close(pkt)
  ------------------
  |  Branch (504:9): [True: 0, False: 0]
  ------------------
  505|       |        /* Add an empty use_mki value */
  506|      0|        || !WPACKET_put_bytes_u8(pkt, 0)
  ------------------
  |  |  889|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (506:12): [True: 0, False: 0]
  ------------------
  507|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (507:12): [True: 0, False: 0]
  ------------------
  508|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  509|      0|        return EXT_RETURN_FAIL;
  510|      0|    }
  511|       |
  512|      0|    return EXT_RETURN_SENT;
  513|      0|}
tls_construct_ctos_etm:
  519|    219|{
  520|    219|    if (s->options & SSL_OP_NO_ENCRYPT_THEN_MAC)
  ------------------
  |  |  398|    219|#define SSL_OP_NO_ENCRYPT_THEN_MAC SSL_OP_BIT(19)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (520:9): [True: 0, False: 219]
  ------------------
  521|      0|        return EXT_RETURN_NOT_SENT;
  522|       |
  523|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_encrypt_then_mac)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (523:9): [True: 0, False: 219]
  ------------------
  524|    219|        || !WPACKET_put_bytes_u16(pkt, 0)) {
  ------------------
  |  |  891|    219|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (524:12): [True: 0, False: 219]
  ------------------
  525|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  526|      0|        return EXT_RETURN_FAIL;
  527|      0|    }
  528|       |
  529|    219|    return EXT_RETURN_SENT;
  530|    219|}
tls_construct_ctos_sct:
  536|    219|{
  537|    219|    if (s->ct_validation_callback == NULL)
  ------------------
  |  Branch (537:9): [True: 219, False: 0]
  ------------------
  538|    219|        return EXT_RETURN_NOT_SENT;
  539|       |
  540|       |    /* Not defined for client Certificates */
  541|      0|    if (x != NULL)
  ------------------
  |  Branch (541:9): [True: 0, False: 0]
  ------------------
  542|      0|        return EXT_RETURN_NOT_SENT;
  543|       |
  544|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_signed_certificate_timestamp)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (544:9): [True: 0, False: 0]
  ------------------
  545|      0|        || !WPACKET_put_bytes_u16(pkt, 0)) {
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (545:12): [True: 0, False: 0]
  ------------------
  546|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  547|      0|        return EXT_RETURN_FAIL;
  548|      0|    }
  549|       |
  550|      0|    return EXT_RETURN_SENT;
  551|      0|}
tls_construct_ctos_ems:
  557|    219|{
  558|    219|    if (s->options & SSL_OP_NO_EXTENDED_MASTER_SECRET)
  ------------------
  |  |  356|    219|#define SSL_OP_NO_EXTENDED_MASTER_SECRET SSL_OP_BIT(0)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (558:9): [True: 0, False: 219]
  ------------------
  559|      0|        return EXT_RETURN_NOT_SENT;
  560|       |
  561|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_extended_master_secret)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (561:9): [True: 0, False: 219]
  ------------------
  562|    219|        || !WPACKET_put_bytes_u16(pkt, 0)) {
  ------------------
  |  |  891|    219|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (562:12): [True: 0, False: 219]
  ------------------
  563|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  564|      0|        return EXT_RETURN_FAIL;
  565|      0|    }
  566|       |
  567|    219|    return EXT_RETURN_SENT;
  568|    219|}
tls_construct_ctos_supported_versions:
  573|    219|{
  574|    219|    int currv, min_version, max_version, reason;
  575|       |
  576|    219|    reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL);
  577|    219|    if (reason != 0) {
  ------------------
  |  Branch (577:9): [True: 0, False: 219]
  ------------------
  578|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, reason);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  579|      0|        return EXT_RETURN_FAIL;
  580|      0|    }
  581|       |
  582|       |    /*
  583|       |     * Don't include this if we can't negotiate TLSv1.3. We can do a straight
  584|       |     * comparison here because we will never be called in DTLS.
  585|       |     */
  586|    219|    if (max_version < TLS1_3_VERSION)
  ------------------
  |  |   27|    219|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (586:9): [True: 0, False: 219]
  ------------------
  587|      0|        return EXT_RETURN_NOT_SENT;
  588|       |
  589|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_supported_versions)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (589:9): [True: 0, False: 219]
  ------------------
  590|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (590:12): [True: 0, False: 219]
  ------------------
  591|    219|        || !WPACKET_start_sub_packet_u8(pkt)) {
  ------------------
  |  |  790|    219|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (591:12): [True: 0, False: 219]
  ------------------
  592|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  593|      0|        return EXT_RETURN_FAIL;
  594|      0|    }
  595|       |
  596|    657|    for (currv = max_version; currv >= min_version; currv--) {
  ------------------
  |  Branch (596:31): [True: 438, False: 219]
  ------------------
  597|    438|        if (!WPACKET_put_bytes_u16(pkt, currv)) {
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (597:13): [True: 0, False: 438]
  ------------------
  598|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  599|      0|            return EXT_RETURN_FAIL;
  600|      0|        }
  601|    438|    }
  602|    219|    if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (602:9): [True: 0, False: 219]
  |  Branch (602:32): [True: 0, False: 219]
  ------------------
  603|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  604|      0|        return EXT_RETURN_FAIL;
  605|      0|    }
  606|       |
  607|    219|    return EXT_RETURN_SENT;
  608|    219|}
tls_construct_ctos_psk_kex_modes:
  616|    219|{
  617|    219|#ifndef OPENSSL_NO_TLS1_3
  618|    219|    int nodhe = s->options & SSL_OP_ALLOW_NO_DHE_KEX;
  ------------------
  |  |  369|    219|#define SSL_OP_ALLOW_NO_DHE_KEX SSL_OP_BIT(10)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  619|       |
  620|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_psk_kex_modes)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (620:9): [True: 0, False: 219]
  ------------------
  621|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (621:12): [True: 0, False: 219]
  ------------------
  622|    219|        || !WPACKET_start_sub_packet_u8(pkt)
  ------------------
  |  |  790|    438|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (622:12): [True: 0, False: 219]
  ------------------
  623|    219|        || !WPACKET_put_bytes_u8(pkt, TLSEXT_KEX_MODE_KE_DHE)
  ------------------
  |  |  889|    438|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (623:12): [True: 0, False: 219]
  ------------------
  624|    219|        || (nodhe && !WPACKET_put_bytes_u8(pkt, TLSEXT_KEX_MODE_KE))
  ------------------
  |  |  889|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (624:13): [True: 0, False: 219]
  |  Branch (624:22): [True: 0, False: 0]
  ------------------
  625|    219|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (625:12): [True: 0, False: 219]
  ------------------
  626|    219|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (626:12): [True: 0, False: 219]
  ------------------
  627|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  628|      0|        return EXT_RETURN_FAIL;
  629|      0|    }
  630|       |
  631|    219|    s->ext.psk_kex_mode = TLSEXT_KEX_MODE_FLAG_KE_DHE;
  ------------------
  |  | 2297|    219|#define TLSEXT_KEX_MODE_FLAG_KE_DHE 2
  ------------------
  632|    219|    if (nodhe)
  ------------------
  |  Branch (632:9): [True: 0, False: 219]
  ------------------
  633|      0|        s->ext.psk_kex_mode |= TLSEXT_KEX_MODE_FLAG_KE;
  ------------------
  |  | 2296|      0|#define TLSEXT_KEX_MODE_FLAG_KE 1
  ------------------
  634|    219|#endif
  635|       |
  636|    219|    return EXT_RETURN_SENT;
  637|    219|}
tls_construct_ctos_key_share:
  704|    219|{
  705|    219|#ifndef OPENSSL_NO_TLS1_3
  706|    219|    size_t i, num_groups = 0;
  707|    219|    const uint16_t *pgroups = NULL;
  708|    219|    uint16_t group_id = 0;
  709|    219|    int add_only_one = 0;
  710|    219|    size_t valid_keyshare = 0;
  711|       |
  712|       |    /* key_share extension */
  713|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_key_share)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (713:9): [True: 0, False: 219]
  ------------------
  714|       |        /* Extension data sub-packet */
  715|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (715:12): [True: 0, False: 219]
  ------------------
  716|       |        /* KeyShare list sub-packet */
  717|    219|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  792|    219|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (717:12): [True: 0, False: 219]
  ------------------
  718|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  719|      0|        return EXT_RETURN_FAIL;
  720|      0|    }
  721|       |
  722|    219|    tls1_get_requested_keyshare_groups(s, &pgroups, &num_groups);
  723|    219|    if (num_groups == 1 && pgroups[0] == 0) { /* Indication that no * prefix was used */
  ------------------
  |  Branch (723:9): [True: 0, False: 219]
  |  Branch (723:28): [True: 0, False: 0]
  ------------------
  724|      0|        tls1_get_supported_groups(s, &pgroups, &num_groups);
  725|      0|        add_only_one = 1;
  726|      0|    }
  727|       |
  728|       |    /* If neither the default nor the keyshares have any entry --> fatal */
  729|    219|    if (num_groups == 0) {
  ------------------
  |  Branch (729:9): [True: 0, False: 219]
  ------------------
  730|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_KEY_SHARE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  731|      0|        return EXT_RETURN_FAIL;
  732|      0|    }
  733|       |
  734|       |    /* Add key shares */
  735|       |
  736|    219|    if (s->s3.group_id != 0 && s->s3.tmp.pkey == NULL) {
  ------------------
  |  Branch (736:9): [True: 0, False: 219]
  |  Branch (736:32): [True: 0, False: 0]
  ------------------
  737|       |        /* new, single key share */
  738|      0|        group_id = s->s3.group_id;
  739|      0|        s->s3.tmp.num_ks_pkey = 0;
  740|      0|        if (!add_key_share(s, pkt, group_id, 0)) {
  ------------------
  |  Branch (740:13): [True: 0, False: 0]
  ------------------
  741|       |            /* SSLfatal() already called */
  742|      0|            return EXT_RETURN_FAIL;
  743|      0|        }
  744|      0|        valid_keyshare++;
  745|    219|    } else {
  746|    219|        if (s->ext.supportedgroups == NULL) /* use default */
  ------------------
  |  Branch (746:13): [True: 0, False: 219]
  ------------------
  747|      0|            add_only_one = 1;
  748|       |
  749|    657|        for (i = 0; i < num_groups; i++) {
  ------------------
  |  Branch (749:21): [True: 438, False: 219]
  ------------------
  750|    438|            if (!tls_group_allowed(s, pgroups[i], SSL_SECOP_CURVE_SUPPORTED))
  ------------------
  |  | 2758|    438|#define SSL_SECOP_CURVE_SUPPORTED (4 | SSL_SECOP_OTHER_CURVE)
  |  |  ------------------
  |  |  |  | 2739|    438|#define SSL_SECOP_OTHER_CURVE (2 << 16)
  |  |  ------------------
  ------------------
  |  Branch (750:17): [True: 0, False: 438]
  ------------------
  751|      0|                continue;
  752|    438|            if (!tls_valid_group(s, pgroups[i], TLS1_3_VERSION, TLS1_3_VERSION,
  ------------------
  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  ------------------
                          if (!tls_valid_group(s, pgroups[i], TLS1_3_VERSION, TLS1_3_VERSION,
  ------------------
  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (752:17): [True: 0, False: 438]
  ------------------
  753|    438|                    0, NULL))
  754|      0|                continue;
  755|       |
  756|    438|            group_id = pgroups[i];
  757|       |
  758|    438|            if (group_id == 0) {
  ------------------
  |  Branch (758:17): [True: 0, False: 438]
  ------------------
  759|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_KEY_SHARE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  760|      0|                return EXT_RETURN_FAIL;
  761|      0|            }
  762|    438|            if (!add_key_share(s, pkt, group_id, valid_keyshare)) {
  ------------------
  |  Branch (762:17): [True: 0, False: 438]
  ------------------
  763|       |                /* SSLfatal() already called */
  764|      0|                return EXT_RETURN_FAIL;
  765|      0|            }
  766|    438|            valid_keyshare++;
  767|    438|            if (add_only_one)
  ------------------
  |  Branch (767:17): [True: 0, False: 438]
  ------------------
  768|      0|                break;
  769|    438|        }
  770|    219|    }
  771|       |
  772|    219|    if (valid_keyshare == 0) {
  ------------------
  |  Branch (772:9): [True: 0, False: 219]
  ------------------
  773|       |        /* No key shares were allowed */
  774|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_KEY_SHARE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  775|      0|        return EXT_RETURN_FAIL;
  776|      0|    }
  777|       |
  778|    219|    if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (778:9): [True: 0, False: 219]
  |  Branch (778:32): [True: 0, False: 219]
  ------------------
  779|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  780|      0|        return EXT_RETURN_FAIL;
  781|      0|    }
  782|    219|    return EXT_RETURN_SENT;
  783|       |#else
  784|       |    return EXT_RETURN_NOT_SENT;
  785|       |#endif
  786|    219|}
tls_construct_ctos_cookie:
  791|    219|{
  792|    219|    EXT_RETURN ret = EXT_RETURN_FAIL;
  793|       |
  794|       |    /* Should only be set if we've had an HRR */
  795|    219|    if (s->ext.tls13_cookie_len == 0)
  ------------------
  |  Branch (795:9): [True: 219, False: 0]
  ------------------
  796|    219|        return EXT_RETURN_NOT_SENT;
  797|       |
  798|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_cookie)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (798:9): [True: 0, False: 0]
  ------------------
  799|       |        /* Extension data sub-packet */
  800|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (800:12): [True: 0, False: 0]
  ------------------
  801|      0|        || !WPACKET_sub_memcpy_u16(pkt, s->ext.tls13_cookie,
  ------------------
  |  |  920|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (801:12): [True: 0, False: 0]
  ------------------
  802|      0|            s->ext.tls13_cookie_len)
  803|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (803:12): [True: 0, False: 0]
  ------------------
  804|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  805|      0|        goto end;
  806|      0|    }
  807|       |
  808|      0|    ret = EXT_RETURN_SENT;
  809|      0|end:
  810|      0|    OPENSSL_free(s->ext.tls13_cookie);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  811|      0|    s->ext.tls13_cookie = NULL;
  812|      0|    s->ext.tls13_cookie_len = 0;
  813|       |
  814|      0|    return ret;
  815|      0|}
tls_construct_ctos_early_data:
  820|    219|{
  821|    219|#ifndef OPENSSL_NO_PSK
  822|    219|    char identity[PSK_MAX_IDENTITY_LEN + 1];
  823|    219|#endif /* OPENSSL_NO_PSK */
  824|    219|    const unsigned char *id = NULL;
  825|    219|    size_t idlen = 0;
  826|    219|    SSL_SESSION *psksess = NULL;
  827|    219|    SSL_SESSION *edsess = NULL;
  828|    219|    const EVP_MD *handmd = NULL;
  829|    219|    SSL *ussl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|    219|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  830|       |
  831|    219|    if (s->hello_retry_request == SSL_HRR_PENDING)
  ------------------
  |  Branch (831:9): [True: 0, False: 219]
  ------------------
  832|      0|        handmd = ssl_handshake_md(s);
  833|       |
  834|    219|    if (s->psk_use_session_cb != NULL
  ------------------
  |  Branch (834:9): [True: 0, False: 219]
  ------------------
  835|      0|        && (!s->psk_use_session_cb(ussl, handmd, &id, &idlen, &psksess)
  ------------------
  |  Branch (835:13): [True: 0, False: 0]
  ------------------
  836|      0|            || (psksess != NULL
  ------------------
  |  Branch (836:17): [True: 0, False: 0]
  ------------------
  837|      0|                && psksess->ssl_version != TLS1_3_VERSION))) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (837:20): [True: 0, False: 0]
  ------------------
  838|      0|        SSL_SESSION_free(psksess);
  839|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_PSK);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  840|      0|        return EXT_RETURN_FAIL;
  841|      0|    }
  842|       |
  843|    219|#ifndef OPENSSL_NO_PSK
  844|    219|    if (psksess == NULL && s->psk_client_callback != NULL) {
  ------------------
  |  Branch (844:9): [True: 219, False: 0]
  |  Branch (844:28): [True: 0, False: 219]
  ------------------
  845|      0|        unsigned char psk[PSK_MAX_PSK_LEN];
  846|      0|        size_t psklen = 0;
  847|       |
  848|      0|        memset(identity, 0, sizeof(identity));
  849|      0|        psklen = s->psk_client_callback(ussl, NULL,
  850|      0|            identity, sizeof(identity) - 1,
  851|      0|            psk, sizeof(psk));
  852|       |
  853|      0|        if (psklen > PSK_MAX_PSK_LEN) {
  ------------------
  |  |  862|      0|#define PSK_MAX_PSK_LEN 512
  ------------------
  |  Branch (853:13): [True: 0, False: 0]
  ------------------
  854|      0|            SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  855|      0|            return EXT_RETURN_FAIL;
  856|      0|        } else if (psklen > 0) {
  ------------------
  |  Branch (856:20): [True: 0, False: 0]
  ------------------
  857|      0|            const unsigned char tls13_aes128gcmsha256_id[] = { 0x13, 0x01 };
  858|      0|            const SSL_CIPHER *cipher;
  859|       |
  860|      0|            idlen = strlen(identity);
  861|      0|            if (idlen > PSK_MAX_IDENTITY_LEN) {
  ------------------
  |  |  861|      0|#define PSK_MAX_IDENTITY_LEN 256
  ------------------
  |  Branch (861:17): [True: 0, False: 0]
  ------------------
  862|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  863|      0|                return EXT_RETURN_FAIL;
  864|      0|            }
  865|      0|            id = (unsigned char *)identity;
  866|       |
  867|       |            /*
  868|       |             * We found a PSK using an old style callback. We don't know
  869|       |             * the digest so we default to SHA256 as per the TLSv1.3 spec
  870|       |             */
  871|      0|            cipher = SSL_CIPHER_find(SSL_CONNECTION_GET_SSL(s),
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  872|      0|                tls13_aes128gcmsha256_id);
  873|      0|            if (cipher == NULL) {
  ------------------
  |  Branch (873:17): [True: 0, False: 0]
  ------------------
  874|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  875|      0|                return EXT_RETURN_FAIL;
  876|      0|            }
  877|       |
  878|      0|            psksess = SSL_SESSION_new();
  879|      0|            if (psksess == NULL
  ------------------
  |  Branch (879:17): [True: 0, False: 0]
  ------------------
  880|      0|                || !SSL_SESSION_set1_master_key(psksess, psk, psklen)
  ------------------
  |  Branch (880:20): [True: 0, False: 0]
  ------------------
  881|      0|                || !SSL_SESSION_set_cipher(psksess, cipher)
  ------------------
  |  Branch (881:20): [True: 0, False: 0]
  ------------------
  882|      0|                || !SSL_SESSION_set_protocol_version(psksess, TLS1_3_VERSION)) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (882:20): [True: 0, False: 0]
  ------------------
  883|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  884|      0|                OPENSSL_cleanse(psk, psklen);
  885|      0|                return EXT_RETURN_FAIL;
  886|      0|            }
  887|      0|            OPENSSL_cleanse(psk, psklen);
  888|      0|        }
  889|      0|    }
  890|    219|#endif /* OPENSSL_NO_PSK */
  891|       |
  892|    219|    SSL_SESSION_free(s->psksession);
  893|    219|    s->psksession = psksess;
  894|    219|    if (psksess != NULL) {
  ------------------
  |  Branch (894:9): [True: 0, False: 219]
  ------------------
  895|      0|        OPENSSL_free(s->psksession_id);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  896|      0|        s->psksession_id = OPENSSL_memdup(id, idlen);
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  897|      0|        if (s->psksession_id == NULL) {
  ------------------
  |  Branch (897:13): [True: 0, False: 0]
  ------------------
  898|      0|            s->psksession_id_len = 0;
  899|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  900|      0|            return EXT_RETURN_FAIL;
  901|      0|        }
  902|      0|        s->psksession_id_len = idlen;
  903|      0|    }
  904|       |
  905|    219|    if (s->early_data_state != SSL_EARLY_DATA_CONNECTING
  ------------------
  |  Branch (905:9): [True: 219, False: 0]
  ------------------
  906|      0|        || (s->session->ext.max_early_data == 0
  ------------------
  |  Branch (906:13): [True: 0, False: 0]
  ------------------
  907|    219|            && (psksess == NULL || psksess->ext.max_early_data == 0))) {
  ------------------
  |  Branch (907:17): [True: 0, False: 0]
  |  Branch (907:36): [True: 0, False: 0]
  ------------------
  908|    219|        s->max_early_data = 0;
  909|    219|        return EXT_RETURN_NOT_SENT;
  910|    219|    }
  911|      0|    edsess = s->session->ext.max_early_data != 0 ? s->session : psksess;
  ------------------
  |  Branch (911:14): [True: 0, False: 0]
  ------------------
  912|      0|    s->max_early_data = edsess->ext.max_early_data;
  913|       |
  914|      0|    if (edsess->ext.hostname != NULL) {
  ------------------
  |  Branch (914:9): [True: 0, False: 0]
  ------------------
  915|      0|        if (s->ext.hostname == NULL
  ------------------
  |  Branch (915:13): [True: 0, False: 0]
  ------------------
  916|      0|            || (s->ext.hostname != NULL
  ------------------
  |  Branch (916:17): [True: 0, False: 0]
  ------------------
  917|      0|                && strcmp(s->ext.hostname, edsess->ext.hostname) != 0)) {
  ------------------
  |  Branch (917:20): [True: 0, False: 0]
  ------------------
  918|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  919|      0|                SSL_R_INCONSISTENT_EARLY_DATA_SNI);
  920|      0|            return EXT_RETURN_FAIL;
  921|      0|        }
  922|      0|    }
  923|       |
  924|      0|    if ((s->ext.alpn == NULL && edsess->ext.alpn_selected != NULL)) {
  ------------------
  |  Branch (924:10): [True: 0, False: 0]
  |  Branch (924:33): [True: 0, False: 0]
  ------------------
  925|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_INCONSISTENT_EARLY_DATA_ALPN);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  926|      0|        return EXT_RETURN_FAIL;
  927|      0|    }
  928|       |
  929|       |    /*
  930|       |     * Verify that we are offering an ALPN protocol consistent with the early
  931|       |     * data.
  932|       |     */
  933|      0|    if (edsess->ext.alpn_selected != NULL) {
  ------------------
  |  Branch (933:9): [True: 0, False: 0]
  ------------------
  934|      0|        PACKET prots, alpnpkt;
  935|      0|        int found = 0;
  936|       |
  937|      0|        if (!PACKET_buf_init(&prots, s->ext.alpn, s->ext.alpn_len)) {
  ------------------
  |  Branch (937:13): [True: 0, False: 0]
  ------------------
  938|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  939|      0|            return EXT_RETURN_FAIL;
  940|      0|        }
  941|      0|        while (PACKET_get_length_prefixed_1(&prots, &alpnpkt)) {
  ------------------
  |  Branch (941:16): [True: 0, False: 0]
  ------------------
  942|      0|            if (PACKET_equal(&alpnpkt, edsess->ext.alpn_selected,
  ------------------
  |  Branch (942:17): [True: 0, False: 0]
  ------------------
  943|      0|                    edsess->ext.alpn_selected_len)) {
  944|      0|                found = 1;
  945|      0|                break;
  946|      0|            }
  947|      0|        }
  948|      0|        if (!found) {
  ------------------
  |  Branch (948:13): [True: 0, False: 0]
  ------------------
  949|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  950|      0|                SSL_R_INCONSISTENT_EARLY_DATA_ALPN);
  951|      0|            return EXT_RETURN_FAIL;
  952|      0|        }
  953|      0|    }
  954|       |
  955|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_early_data)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (955:9): [True: 0, False: 0]
  ------------------
  956|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (956:12): [True: 0, False: 0]
  ------------------
  957|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (957:12): [True: 0, False: 0]
  ------------------
  958|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  959|      0|        return EXT_RETURN_FAIL;
  960|      0|    }
  961|       |
  962|       |    /*
  963|       |     * We set this to rejected here. Later, if the server acknowledges the
  964|       |     * extension, we set it to accepted.
  965|       |     */
  966|      0|    s->ext.early_data = SSL_EARLY_DATA_REJECTED;
  ------------------
  |  | 2036|      0|#define SSL_EARLY_DATA_REJECTED 1
  ------------------
  967|      0|    s->ext.early_data_ok = 1;
  968|       |
  969|      0|    return EXT_RETURN_SENT;
  970|      0|}
tls_construct_ctos_padding:
  992|    219|{
  993|    219|    unsigned char *padbytes;
  994|    219|    size_t hlen;
  995|       |
  996|    219|    if ((s->options & SSL_OP_TLSEXT_PADDING) == 0)
  ------------------
  |  |  363|    219|#define SSL_OP_TLSEXT_PADDING SSL_OP_BIT(4)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (996:9): [True: 0, False: 219]
  ------------------
  997|      0|        return EXT_RETURN_NOT_SENT;
  998|       |
  999|       |    /*
 1000|       |     * Add padding to workaround bugs in F5 terminators. See RFC7685.
 1001|       |     * This code calculates the length of all extensions added so far but
 1002|       |     * excludes the PSK extension (because that MUST be written last). Therefore
 1003|       |     * this extension MUST always appear second to last.
 1004|       |     */
 1005|    219|    if (!WPACKET_get_total_written(pkt, &hlen)) {
  ------------------
  |  Branch (1005:9): [True: 0, False: 219]
  ------------------
 1006|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1007|      0|        return EXT_RETURN_FAIL;
 1008|      0|    }
 1009|       |
 1010|       |    /*
 1011|       |     * If we're going to send a PSK then that will be written out after this
 1012|       |     * extension, so we need to calculate how long it is going to be.
 1013|       |     */
 1014|    219|    if (s->session->ssl_version == TLS1_3_VERSION
  ------------------
  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1014:9): [True: 219, False: 0]
  ------------------
 1015|    219|        && s->session->ext.ticklen != 0
  ------------------
  |  Branch (1015:12): [True: 0, False: 219]
  ------------------
 1016|      0|        && s->session->cipher != NULL) {
  ------------------
  |  Branch (1016:12): [True: 0, False: 0]
  ------------------
 1017|      0|        const EVP_MD *md = ssl_md(SSL_CONNECTION_GET_CTX(s),
  ------------------
  |  |   26|      0|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 1018|      0|            s->session->cipher->algorithm2);
 1019|       |
 1020|      0|        if (md != NULL) {
  ------------------
  |  Branch (1020:13): [True: 0, False: 0]
  ------------------
 1021|       |            /*
 1022|       |             * Add the fixed PSK overhead, the identity length and the binder
 1023|       |             * length.
 1024|       |             */
 1025|      0|            int md_size = EVP_MD_get_size(md);
 1026|       |
 1027|      0|            if (md_size <= 0)
  ------------------
  |  Branch (1027:17): [True: 0, False: 0]
  ------------------
 1028|      0|                return EXT_RETURN_FAIL;
 1029|      0|            hlen += PSK_PRE_BINDER_OVERHEAD + s->session->ext.ticklen
  ------------------
  |  |  987|      0|#define PSK_PRE_BINDER_OVERHEAD (2 + 2 + 2 + 2 + 4 + 2 + 1)
  ------------------
 1030|      0|                + md_size;
 1031|      0|        }
 1032|      0|    }
 1033|       |
 1034|    219|    if (hlen > F5_WORKAROUND_MIN_MSG_LEN && hlen < F5_WORKAROUND_MAX_MSG_LEN) {
  ------------------
  |  |  972|    438|#define F5_WORKAROUND_MIN_MSG_LEN 0xff
  ------------------
                  if (hlen > F5_WORKAROUND_MIN_MSG_LEN && hlen < F5_WORKAROUND_MAX_MSG_LEN) {
  ------------------
  |  |  973|    219|#define F5_WORKAROUND_MAX_MSG_LEN 0x200
  ------------------
  |  Branch (1034:9): [True: 219, False: 0]
  |  Branch (1034:45): [True: 0, False: 219]
  ------------------
 1035|       |        /* Calculate the amount of padding we need to add */
 1036|      0|        hlen = F5_WORKAROUND_MAX_MSG_LEN - hlen;
  ------------------
  |  |  973|      0|#define F5_WORKAROUND_MAX_MSG_LEN 0x200
  ------------------
 1037|       |
 1038|       |        /*
 1039|       |         * Take off the size of extension header itself (2 bytes for type and
 1040|       |         * 2 bytes for length bytes), but ensure that the extension is at least
 1041|       |         * 1 byte long so as not to have an empty extension last (WebSphere 7.x,
 1042|       |         * 8.x are intolerant of that condition)
 1043|       |         */
 1044|      0|        if (hlen > 4)
  ------------------
  |  Branch (1044:13): [True: 0, False: 0]
  ------------------
 1045|      0|            hlen -= 4;
 1046|      0|        else
 1047|      0|            hlen = 1;
 1048|       |
 1049|      0|        if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_padding)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1049:13): [True: 0, False: 0]
  ------------------
 1050|      0|            || !WPACKET_sub_allocate_bytes_u16(pkt, hlen, &padbytes)) {
  ------------------
  |  |  831|      0|    WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 2)
  ------------------
  |  Branch (1050:16): [True: 0, False: 0]
  ------------------
 1051|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1052|      0|            return EXT_RETURN_FAIL;
 1053|      0|        }
 1054|      0|        memset(padbytes, 0, hlen);
 1055|      0|    }
 1056|       |
 1057|    219|    return EXT_RETURN_SENT;
 1058|    219|}
tls_construct_ctos_psk:
 1066|    219|{
 1067|    219|#ifndef OPENSSL_NO_TLS1_3
 1068|    219|    uint32_t agesec, agems = 0;
 1069|    219|    size_t binderoffset, msglen;
 1070|    219|    int reshashsize = 0, pskhashsize = 0;
 1071|    219|    unsigned char *resbinder = NULL, *pskbinder = NULL, *msgstart = NULL;
 1072|    219|    const EVP_MD *handmd = NULL, *mdres = NULL, *mdpsk = NULL;
 1073|    219|    int dores = 0;
 1074|    219|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    219|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 1075|    219|    OSSL_TIME t;
 1076|       |
 1077|    219|    s->ext.tick_identity = 0;
 1078|       |
 1079|       |    /*
 1080|       |     * Note: At this stage of the code we only support adding a single
 1081|       |     * resumption PSK. If we add support for multiple PSKs then the length
 1082|       |     * calculations in the padding extension will need to be adjusted.
 1083|       |     */
 1084|       |
 1085|       |    /*
 1086|       |     * If this is an incompatible or new session then we have nothing to resume
 1087|       |     * so don't add this extension.
 1088|       |     */
 1089|    219|    if (s->session->ssl_version != TLS1_3_VERSION
  ------------------
  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1089:9): [True: 0, False: 219]
  ------------------
 1090|    219|        || (s->session->ext.ticklen == 0 && s->psksession == NULL))
  ------------------
  |  Branch (1090:13): [True: 219, False: 0]
  |  Branch (1090:45): [True: 219, False: 0]
  ------------------
 1091|    219|        return EXT_RETURN_NOT_SENT;
 1092|       |
 1093|      0|    if (s->hello_retry_request == SSL_HRR_PENDING)
  ------------------
  |  Branch (1093:9): [True: 0, False: 0]
  ------------------
 1094|      0|        handmd = ssl_handshake_md(s);
 1095|       |
 1096|      0|    if (s->session->ext.ticklen != 0) {
  ------------------
  |  Branch (1096:9): [True: 0, False: 0]
  ------------------
 1097|       |        /* Get the digest associated with the ciphersuite in the session */
 1098|      0|        if (s->session->cipher == NULL) {
  ------------------
  |  Branch (1098:13): [True: 0, False: 0]
  ------------------
 1099|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1100|      0|            return EXT_RETURN_FAIL;
 1101|      0|        }
 1102|      0|        mdres = ssl_md(sctx, s->session->cipher->algorithm2);
 1103|      0|        if (mdres == NULL) {
  ------------------
  |  Branch (1103:13): [True: 0, False: 0]
  ------------------
 1104|       |            /*
 1105|       |             * Don't recognize this cipher so we can't use the session.
 1106|       |             * Ignore it
 1107|       |             */
 1108|      0|            goto dopsksess;
 1109|      0|        }
 1110|       |
 1111|      0|        if (s->hello_retry_request == SSL_HRR_PENDING && mdres != handmd) {
  ------------------
  |  Branch (1111:13): [True: 0, False: 0]
  |  Branch (1111:58): [True: 0, False: 0]
  ------------------
 1112|       |            /*
 1113|       |             * Selected ciphersuite hash does not match the hash for the session
 1114|       |             * so we can't use it.
 1115|       |             */
 1116|      0|            goto dopsksess;
 1117|      0|        }
 1118|       |
 1119|       |        /*
 1120|       |         * Technically the C standard just says time() returns a time_t and says
 1121|       |         * nothing about the encoding of that type. In practice most
 1122|       |         * implementations follow POSIX which holds it as an integral type in
 1123|       |         * seconds since epoch. We've already made the assumption that we can do
 1124|       |         * this in multiple places in the code, so portability shouldn't be an
 1125|       |         * issue.
 1126|       |         */
 1127|      0|        t = ossl_time_subtract(ossl_time_now(), s->session->time);
 1128|      0|        agesec = (uint32_t)ossl_time2seconds(t);
  ------------------
  |  |   43|      0|#define ossl_time2seconds(t) (ossl_time2ticks(t) / OSSL_TIME_SECOND)
  |  |  ------------------
  |  |  |  |   31|      0|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  |  |  ------------------
  ------------------
 1129|       |        /*
 1130|       |         * We calculate the age in seconds but the server may work in ms. Due to
 1131|       |         * rounding errors we could overestimate the age by up to 1s. It is
 1132|       |         * better to underestimate it. Otherwise, if the RTT is very short, when
 1133|       |         * the server calculates the age reported by the client it could be
 1134|       |         * bigger than the age calculated on the server - which should never
 1135|       |         * happen.
 1136|       |         */
 1137|      0|        if (agesec > 0)
  ------------------
  |  Branch (1137:13): [True: 0, False: 0]
  ------------------
 1138|      0|            agesec--;
 1139|       |
 1140|      0|        if (s->session->ext.tick_lifetime_hint < agesec) {
  ------------------
  |  Branch (1140:13): [True: 0, False: 0]
  ------------------
 1141|       |            /* Ticket is too old. Ignore it. */
 1142|      0|            goto dopsksess;
 1143|      0|        }
 1144|       |
 1145|       |        /*
 1146|       |         * Calculate age in ms. We're just doing it to nearest second. Should be
 1147|       |         * good enough.
 1148|       |         */
 1149|      0|        agems = agesec * (uint32_t)1000;
 1150|       |
 1151|      0|        if (agesec != 0 && agems / (uint32_t)1000 != agesec) {
  ------------------
  |  Branch (1151:13): [True: 0, False: 0]
  |  Branch (1151:28): [True: 0, False: 0]
  ------------------
 1152|       |            /*
 1153|       |             * Overflow. Shouldn't happen unless this is a *really* old session.
 1154|       |             * If so we just ignore it.
 1155|       |             */
 1156|      0|            goto dopsksess;
 1157|      0|        }
 1158|       |
 1159|       |        /*
 1160|       |         * Obfuscate the age. Overflow here is fine, this addition is supposed
 1161|       |         * to be mod 2^32.
 1162|       |         */
 1163|      0|        agems += s->session->ext.tick_age_add;
 1164|       |
 1165|      0|        reshashsize = EVP_MD_get_size(mdres);
 1166|      0|        if (reshashsize <= 0)
  ------------------
  |  Branch (1166:13): [True: 0, False: 0]
  ------------------
 1167|      0|            goto dopsksess;
 1168|      0|        s->ext.tick_identity++;
 1169|      0|        dores = 1;
 1170|      0|    }
 1171|       |
 1172|      0|dopsksess:
 1173|      0|    if (!dores && s->psksession == NULL)
  ------------------
  |  Branch (1173:9): [True: 0, False: 0]
  |  Branch (1173:19): [True: 0, False: 0]
  ------------------
 1174|      0|        return EXT_RETURN_NOT_SENT;
 1175|       |
 1176|      0|    if (s->psksession != NULL) {
  ------------------
  |  Branch (1176:9): [True: 0, False: 0]
  ------------------
 1177|      0|        mdpsk = ssl_md(sctx, s->psksession->cipher->algorithm2);
 1178|      0|        if (mdpsk == NULL) {
  ------------------
  |  Branch (1178:13): [True: 0, False: 0]
  ------------------
 1179|       |            /*
 1180|       |             * Don't recognize this cipher so we can't use the session.
 1181|       |             * If this happens it's an application bug.
 1182|       |             */
 1183|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_PSK);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1184|      0|            return EXT_RETURN_FAIL;
 1185|      0|        }
 1186|       |
 1187|      0|        if (s->hello_retry_request == SSL_HRR_PENDING && mdpsk != handmd) {
  ------------------
  |  Branch (1187:13): [True: 0, False: 0]
  |  Branch (1187:58): [True: 0, False: 0]
  ------------------
 1188|       |            /*
 1189|       |             * Selected ciphersuite hash does not match the hash for the PSK
 1190|       |             * session. This is an application bug.
 1191|       |             */
 1192|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_PSK);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1193|      0|            return EXT_RETURN_FAIL;
 1194|      0|        }
 1195|       |
 1196|      0|        pskhashsize = EVP_MD_get_size(mdpsk);
 1197|      0|        if (pskhashsize <= 0) {
  ------------------
  |  Branch (1197:13): [True: 0, False: 0]
  ------------------
 1198|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_PSK);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1199|      0|            return EXT_RETURN_FAIL;
 1200|      0|        }
 1201|      0|    }
 1202|       |
 1203|       |    /* Create the extension, but skip over the binder for now */
 1204|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_psk)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1204:9): [True: 0, False: 0]
  ------------------
 1205|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1205:12): [True: 0, False: 0]
  ------------------
 1206|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1206:12): [True: 0, False: 0]
  ------------------
 1207|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1208|      0|        return EXT_RETURN_FAIL;
 1209|      0|    }
 1210|       |
 1211|      0|    if (dores) {
  ------------------
  |  Branch (1211:9): [True: 0, False: 0]
  ------------------
 1212|      0|        if (!WPACKET_sub_memcpy_u16(pkt, s->session->ext.tick,
  ------------------
  |  |  920|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (1212:13): [True: 0, False: 0]
  ------------------
 1213|      0|                s->session->ext.ticklen)
 1214|      0|            || !WPACKET_put_bytes_u32(pkt, agems)) {
  ------------------
  |  |  895|      0|    WPACKET_put_bytes__((pkt), (val), 4)
  ------------------
  |  Branch (1214:16): [True: 0, False: 0]
  ------------------
 1215|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1216|      0|            return EXT_RETURN_FAIL;
 1217|      0|        }
 1218|      0|    }
 1219|       |
 1220|      0|    if (s->psksession != NULL) {
  ------------------
  |  Branch (1220:9): [True: 0, False: 0]
  ------------------
 1221|      0|        if (!WPACKET_sub_memcpy_u16(pkt, s->psksession_id,
  ------------------
  |  |  920|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (1221:13): [True: 0, False: 0]
  ------------------
 1222|      0|                s->psksession_id_len)
 1223|      0|            || !WPACKET_put_bytes_u32(pkt, 0)) {
  ------------------
  |  |  895|      0|    WPACKET_put_bytes__((pkt), (val), 4)
  ------------------
  |  Branch (1223:16): [True: 0, False: 0]
  ------------------
 1224|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1225|      0|            return EXT_RETURN_FAIL;
 1226|      0|        }
 1227|      0|        s->ext.tick_identity++;
 1228|      0|    }
 1229|       |
 1230|      0|    if (!WPACKET_close(pkt)
  ------------------
  |  Branch (1230:9): [True: 0, False: 0]
  ------------------
 1231|      0|        || !WPACKET_get_total_written(pkt, &binderoffset)
  ------------------
  |  Branch (1231:12): [True: 0, False: 0]
  ------------------
 1232|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1232:12): [True: 0, False: 0]
  ------------------
 1233|      0|        || (dores
  ------------------
  |  Branch (1233:13): [True: 0, False: 0]
  ------------------
 1234|      0|            && !WPACKET_sub_allocate_bytes_u8(pkt, reshashsize, &resbinder))
  ------------------
  |  |  829|      0|    WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 1)
  ------------------
  |  Branch (1234:16): [True: 0, False: 0]
  ------------------
 1235|      0|        || (s->psksession != NULL
  ------------------
  |  Branch (1235:13): [True: 0, False: 0]
  ------------------
 1236|      0|            && !WPACKET_sub_allocate_bytes_u8(pkt, pskhashsize, &pskbinder))
  ------------------
  |  |  829|      0|    WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 1)
  ------------------
  |  Branch (1236:16): [True: 0, False: 0]
  ------------------
 1237|      0|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (1237:12): [True: 0, False: 0]
  ------------------
 1238|      0|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (1238:12): [True: 0, False: 0]
  ------------------
 1239|      0|        || !WPACKET_get_total_written(pkt, &msglen)
  ------------------
  |  Branch (1239:12): [True: 0, False: 0]
  ------------------
 1240|       |        /*
 1241|       |         * We need to fill in all the sub-packet lengths now so we can
 1242|       |         * calculate the HMAC of the message up to the binders
 1243|       |         */
 1244|      0|        || !WPACKET_fill_lengths(pkt)) {
  ------------------
  |  Branch (1244:12): [True: 0, False: 0]
  ------------------
 1245|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1246|      0|        return EXT_RETURN_FAIL;
 1247|      0|    }
 1248|       |
 1249|      0|    msgstart = WPACKET_get_curr(pkt) - msglen;
 1250|       |
 1251|      0|    if (dores
  ------------------
  |  Branch (1251:9): [True: 0, False: 0]
  ------------------
 1252|      0|        && tls_psk_do_binder(s, mdres, msgstart, binderoffset, NULL,
  ------------------
  |  Branch (1252:12): [True: 0, False: 0]
  ------------------
 1253|      0|               resbinder, s->session, 1, 0)
 1254|      0|            != 1) {
 1255|       |        /* SSLfatal() already called */
 1256|      0|        return EXT_RETURN_FAIL;
 1257|      0|    }
 1258|       |
 1259|      0|    if (s->psksession != NULL
  ------------------
  |  Branch (1259:9): [True: 0, False: 0]
  ------------------
 1260|      0|        && tls_psk_do_binder(s, mdpsk, msgstart, binderoffset, NULL,
  ------------------
  |  Branch (1260:12): [True: 0, False: 0]
  ------------------
 1261|      0|               pskbinder, s->psksession, 1, 1)
 1262|      0|            != 1) {
 1263|       |        /* SSLfatal() already called */
 1264|      0|        return EXT_RETURN_FAIL;
 1265|      0|    }
 1266|       |
 1267|      0|    return EXT_RETURN_SENT;
 1268|       |#else
 1269|       |    return EXT_RETURN_NOT_SENT;
 1270|       |#endif
 1271|      0|}
tls_construct_ctos_post_handshake_auth:
 1277|    219|{
 1278|    219|#ifndef OPENSSL_NO_TLS1_3
 1279|    219|    if (!s->pha_enabled)
  ------------------
  |  Branch (1279:9): [True: 0, False: 219]
  ------------------
 1280|      0|        return EXT_RETURN_NOT_SENT;
 1281|       |
 1282|       |    /* construct extension - 0 length, no contents */
 1283|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_post_handshake_auth)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1283:9): [True: 0, False: 219]
  ------------------
 1284|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1284:12): [True: 0, False: 219]
  ------------------
 1285|    219|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (1285:12): [True: 0, False: 219]
  ------------------
 1286|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1287|      0|        return EXT_RETURN_FAIL;
 1288|      0|    }
 1289|       |
 1290|    219|    s->post_handshake_auth = SSL_PHA_EXT_SENT;
 1291|       |
 1292|    219|    return EXT_RETURN_SENT;
 1293|       |#else
 1294|       |    return EXT_RETURN_NOT_SENT;
 1295|       |#endif
 1296|    219|}
tls_construct_ctos_client_cert_type:
 2167|    219|{
 2168|    219|    sc->ext.client_cert_type_ctos = OSSL_CERT_TYPE_CTOS_NONE;
  ------------------
  |  |  365|    219|#define OSSL_CERT_TYPE_CTOS_NONE 0
  ------------------
 2169|    219|    if (sc->client_cert_type == NULL)
  ------------------
  |  Branch (2169:9): [True: 219, False: 0]
  ------------------
 2170|    219|        return EXT_RETURN_NOT_SENT;
 2171|       |
 2172|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_client_cert_type)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2172:9): [True: 0, False: 0]
  ------------------
 2173|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (2173:12): [True: 0, False: 0]
  ------------------
 2174|      0|        || !WPACKET_sub_memcpy_u8(pkt, sc->client_cert_type, sc->client_cert_type_len)
  ------------------
  |  |  918|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (2174:12): [True: 0, False: 0]
  ------------------
 2175|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (2175:12): [True: 0, False: 0]
  ------------------
 2176|      0|        SSLfatal(sc, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2177|      0|        return EXT_RETURN_FAIL;
 2178|      0|    }
 2179|      0|    sc->ext.client_cert_type_ctos = OSSL_CERT_TYPE_CTOS_GOOD;
  ------------------
  |  |  366|      0|#define OSSL_CERT_TYPE_CTOS_GOOD 1
  ------------------
 2180|      0|    return EXT_RETURN_SENT;
 2181|      0|}
tls_construct_ctos_server_cert_type:
 2219|    219|{
 2220|    219|    sc->ext.server_cert_type_ctos = OSSL_CERT_TYPE_CTOS_NONE;
  ------------------
  |  |  365|    219|#define OSSL_CERT_TYPE_CTOS_NONE 0
  ------------------
 2221|    219|    if (sc->server_cert_type == NULL)
  ------------------
  |  Branch (2221:9): [True: 219, False: 0]
  ------------------
 2222|    219|        return EXT_RETURN_NOT_SENT;
 2223|       |
 2224|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_server_cert_type)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2224:9): [True: 0, False: 0]
  ------------------
 2225|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (2225:12): [True: 0, False: 0]
  ------------------
 2226|      0|        || !WPACKET_sub_memcpy_u8(pkt, sc->server_cert_type, sc->server_cert_type_len)
  ------------------
  |  |  918|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (2226:12): [True: 0, False: 0]
  ------------------
 2227|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (2227:12): [True: 0, False: 0]
  ------------------
 2228|      0|        SSLfatal(sc, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2229|      0|        return EXT_RETURN_FAIL;
 2230|      0|    }
 2231|      0|    sc->ext.server_cert_type_ctos = OSSL_CERT_TYPE_CTOS_GOOD;
  ------------------
  |  |  366|      0|#define OSSL_CERT_TYPE_CTOS_GOOD 1
  ------------------
 2232|      0|    return EXT_RETURN_SENT;
 2233|      0|}
extensions_clnt.c:use_ecc:
  140|    438|{
  141|    438|    int i, end, ret = 0;
  142|    438|    unsigned long alg_k, alg_a;
  143|    438|    STACK_OF(SSL_CIPHER) *cipher_stack = NULL;
  ------------------
  |  |   33|    438|#define STACK_OF(type) struct stack_st_##type
  ------------------
  144|    438|    const uint16_t *pgroups = NULL;
  145|    438|    size_t num_groups, j;
  146|    438|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    438|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  147|       |
  148|       |    /* See if we support any ECC ciphersuites */
  149|    438|    if (s->version == SSL3_VERSION)
  ------------------
  |  |   23|    438|#define SSL3_VERSION 0x0300
  ------------------
  |  Branch (149:9): [True: 0, False: 438]
  ------------------
  150|      0|        return 0;
  151|       |
  152|    438|    cipher_stack = SSL_get1_supported_ciphers(ssl);
  153|    438|    end = sk_SSL_CIPHER_num(cipher_stack);
  ------------------
  |  | 1005|    438|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  154|    438|    for (i = 0; i < end; i++) {
  ------------------
  |  Branch (154:17): [True: 438, False: 0]
  ------------------
  155|    438|        const SSL_CIPHER *c = sk_SSL_CIPHER_value(cipher_stack, i);
  ------------------
  |  | 1006|    438|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
  156|       |
  157|    438|        alg_k = c->algorithm_mkey;
  158|    438|        alg_a = c->algorithm_auth;
  159|    438|        if ((alg_k & (SSL_kECDHE | SSL_kECDHEPSK))
  ------------------
  |  |   85|    438|#define SSL_kECDHE 0x00000004U
  ------------------
                      if ((alg_k & (SSL_kECDHE | SSL_kECDHEPSK))
  ------------------
  |  |   94|    438|#define SSL_kECDHEPSK 0x00000080U
  ------------------
  |  Branch (159:13): [True: 0, False: 438]
  ------------------
  160|    438|            || (alg_a & SSL_aECDSA)
  ------------------
  |  |  114|    438|#define SSL_aECDSA 0x00000008U
  ------------------
  |  Branch (160:16): [True: 0, False: 438]
  ------------------
  161|    438|            || c->min_tls >= TLS1_3_VERSION) {
  ------------------
  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (161:16): [True: 438, False: 0]
  ------------------
  162|    438|            ret = 1;
  163|    438|            break;
  164|    438|        }
  165|    438|    }
  166|    438|    sk_SSL_CIPHER_free(cipher_stack);
  ------------------
  |  | 1011|    438|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
  167|    438|    if (!ret)
  ------------------
  |  Branch (167:9): [True: 0, False: 438]
  ------------------
  168|      0|        return 0;
  169|       |
  170|       |    /* Check we have at least one EC supported group */
  171|    438|    tls1_get_supported_groups(s, &pgroups, &num_groups);
  172|    876|    for (j = 0; j < num_groups; j++) {
  ------------------
  |  Branch (172:17): [True: 876, False: 0]
  ------------------
  173|    876|        uint16_t ctmp = pgroups[j];
  174|       |
  175|    876|        if (tls_valid_group(s, ctmp, min_version, max_version, 1, NULL)
  ------------------
  |  Branch (175:13): [True: 438, False: 438]
  ------------------
  176|    438|            && tls_group_allowed(s, ctmp, SSL_SECOP_CURVE_SUPPORTED))
  ------------------
  |  | 2758|    438|#define SSL_SECOP_CURVE_SUPPORTED (4 | SSL_SECOP_OTHER_CURVE)
  |  |  ------------------
  |  |  |  | 2739|    438|#define SSL_SECOP_OTHER_CURVE (2 << 16)
  |  |  ------------------
  ------------------
  |  Branch (176:16): [True: 438, False: 0]
  ------------------
  177|    438|            return 1;
  178|    876|    }
  179|       |
  180|      0|    return 0;
  181|    438|}
extensions_clnt.c:add_key_share:
  641|    438|{
  642|    438|    unsigned char *encoded_pubkey = NULL;
  643|    438|    EVP_PKEY *key_share_key = NULL;
  644|    438|    size_t encodedlen;
  645|       |
  646|    438|    if (loop_num < s->s3.tmp.num_ks_pkey) {
  ------------------
  |  Branch (646:9): [True: 0, False: 438]
  ------------------
  647|      0|        if (!ossl_assert(s->hello_retry_request == SSL_HRR_PENDING)
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (647:13): [True: 0, False: 0]
  ------------------
  648|      0|            || !ossl_assert(s->s3.tmp.ks_pkey[loop_num] != NULL)) {
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (648:16): [True: 0, False: 0]
  ------------------
  649|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  650|      0|            return 0;
  651|      0|        }
  652|       |        /*
  653|       |         * Could happen if we got an HRR that wasn't requesting a new key_share
  654|       |         */
  655|      0|        key_share_key = s->s3.tmp.ks_pkey[loop_num];
  656|    438|    } else {
  657|    438|        key_share_key = ssl_generate_pkey_group(s, group_id);
  658|    438|        if (key_share_key == NULL) {
  ------------------
  |  Branch (658:13): [True: 0, False: 438]
  ------------------
  659|       |            /* SSLfatal() already called */
  660|      0|            return 0;
  661|      0|        }
  662|    438|    }
  663|       |
  664|       |    /* Encode the public key. */
  665|    438|    encodedlen = EVP_PKEY_get1_encoded_public_key(key_share_key,
  666|    438|        &encoded_pubkey);
  667|    438|    if (encodedlen == 0) {
  ------------------
  |  Branch (667:9): [True: 0, False: 438]
  ------------------
  668|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EC_LIB);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  669|      0|        goto err;
  670|      0|    }
  671|       |
  672|       |    /* Create KeyShareEntry */
  673|    438|    if (!WPACKET_put_bytes_u16(pkt, group_id)
  ------------------
  |  |  891|    876|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (673:9): [True: 0, False: 438]
  ------------------
  674|    438|        || !WPACKET_sub_memcpy_u16(pkt, encoded_pubkey, encodedlen)) {
  ------------------
  |  |  920|    438|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (674:12): [True: 0, False: 438]
  ------------------
  675|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  676|      0|        goto err;
  677|      0|    }
  678|       |
  679|       |    /* For backward compatibility, we use the first valid group to add a key share */
  680|    438|    if (loop_num == 0) {
  ------------------
  |  Branch (680:9): [True: 219, False: 219]
  ------------------
  681|    219|        s->s3.tmp.pkey = key_share_key;
  682|    219|        s->s3.group_id = group_id;
  683|    219|    }
  684|       |    /* We ensure in t1_lib.c that the loop number does not exceed OPENSSL_CLIENT_MAX_KEY_SHARES */
  685|    438|    s->s3.tmp.ks_pkey[loop_num] = key_share_key;
  686|    438|    s->s3.tmp.ks_group_id[loop_num] = group_id;
  687|    438|    if (loop_num >= s->s3.tmp.num_ks_pkey)
  ------------------
  |  Branch (687:9): [True: 438, False: 0]
  ------------------
  688|    438|        s->s3.tmp.num_ks_pkey++;
  689|       |
  690|    438|    OPENSSL_free(encoded_pubkey);
  ------------------
  |  |  131|    438|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  691|       |
  692|    438|    return 1;
  693|      0|err:
  694|      0|    if (key_share_key != s->s3.tmp.ks_pkey[loop_num])
  ------------------
  |  Branch (694:9): [True: 0, False: 0]
  ------------------
  695|      0|        EVP_PKEY_free(key_share_key);
  696|      0|    OPENSSL_free(encoded_pubkey);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  697|      0|    return 0;
  698|    438|}

custom_ext_init:
  104|    219|{
  105|    219|    size_t i;
  106|    219|    custom_ext_method *meth = exts->meths;
  107|       |
  108|    219|    for (i = 0; i < exts->meths_count; i++, meth++)
  ------------------
  |  Branch (108:17): [True: 0, False: 219]
  ------------------
  109|      0|        meth->ext_flags &= ~(SSL_EXT_FLAG_SENT | SSL_EXT_FLAG_RECEIVED);
  ------------------
  |  | 2068|      0|#define SSL_EXT_FLAG_SENT 0x2
  ------------------
                      meth->ext_flags &= ~(SSL_EXT_FLAG_SENT | SSL_EXT_FLAG_RECEIVED);
  ------------------
  |  | 2063|      0|#define SSL_EXT_FLAG_RECEIVED 0x1
  ------------------
  110|    219|}
custom_ext_add:
  175|    219|{
  176|    219|    custom_ext_methods *exts = &s->cert->custext;
  177|    219|    custom_ext_method *meth;
  178|    219|    size_t i;
  179|    219|    int al;
  180|    219|    int for_comp = (context & SSL_EXT_TLS1_3_CERTIFICATE_COMPRESSION) != 0;
  ------------------
  |  |  308|    219|#define SSL_EXT_TLS1_3_CERTIFICATE_COMPRESSION 0x08000
  ------------------
  181|       |
  182|    219|    for (i = 0; i < exts->meths_count; i++) {
  ------------------
  |  Branch (182:17): [True: 0, False: 219]
  ------------------
  183|      0|        const unsigned char *out = NULL;
  184|      0|        size_t outlen = 0;
  185|       |
  186|      0|        meth = exts->meths + i;
  187|       |
  188|      0|        if (!should_add_extension(s, meth->context, context, maxversion))
  ------------------
  |  Branch (188:13): [True: 0, False: 0]
  ------------------
  189|      0|            continue;
  190|       |
  191|      0|        if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO | SSL_EXT_TLS1_3_SERVER_HELLO | SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS | SSL_EXT_TLS1_3_CERTIFICATE | SSL_EXT_TLS1_3_RAW_PUBLIC_KEY | SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST)) != 0) {
  ------------------
  |  |  301|      0|#define SSL_EXT_TLS1_2_SERVER_HELLO 0x00100
  ------------------
                      if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO | SSL_EXT_TLS1_3_SERVER_HELLO | SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS | SSL_EXT_TLS1_3_CERTIFICATE | SSL_EXT_TLS1_3_RAW_PUBLIC_KEY | SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST)) != 0) {
  ------------------
  |  |  302|      0|#define SSL_EXT_TLS1_3_SERVER_HELLO 0x00200
  ------------------
                      if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO | SSL_EXT_TLS1_3_SERVER_HELLO | SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS | SSL_EXT_TLS1_3_CERTIFICATE | SSL_EXT_TLS1_3_RAW_PUBLIC_KEY | SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST)) != 0) {
  ------------------
  |  |  303|      0|#define SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS 0x00400
  ------------------
                      if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO | SSL_EXT_TLS1_3_SERVER_HELLO | SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS | SSL_EXT_TLS1_3_CERTIFICATE | SSL_EXT_TLS1_3_RAW_PUBLIC_KEY | SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST)) != 0) {
  ------------------
  |  |  305|      0|#define SSL_EXT_TLS1_3_CERTIFICATE 0x01000
  ------------------
                      if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO | SSL_EXT_TLS1_3_SERVER_HELLO | SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS | SSL_EXT_TLS1_3_CERTIFICATE | SSL_EXT_TLS1_3_RAW_PUBLIC_KEY | SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST)) != 0) {
  ------------------
  |  |  310|      0|#define SSL_EXT_TLS1_3_RAW_PUBLIC_KEY 0x10000
  ------------------
                      if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO | SSL_EXT_TLS1_3_SERVER_HELLO | SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS | SSL_EXT_TLS1_3_CERTIFICATE | SSL_EXT_TLS1_3_RAW_PUBLIC_KEY | SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST)) != 0) {
  ------------------
  |  |  304|      0|#define SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST 0x00800
  ------------------
  |  Branch (191:13): [True: 0, False: 0]
  ------------------
  192|       |            /* Only send extensions present in ClientHello/CertificateRequest */
  193|      0|            if (!(meth->ext_flags & SSL_EXT_FLAG_RECEIVED))
  ------------------
  |  | 2063|      0|#define SSL_EXT_FLAG_RECEIVED 0x1
  ------------------
  |  Branch (193:17): [True: 0, False: 0]
  ------------------
  194|      0|                continue;
  195|      0|        }
  196|       |        /*
  197|       |         * We skip it if the callback is absent - except for a ClientHello where
  198|       |         * we add an empty extension.
  199|       |         */
  200|      0|        if ((context & SSL_EXT_CLIENT_HELLO) == 0 && meth->add_cb == NULL)
  ------------------
  |  |  299|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (200:13): [True: 0, False: 0]
  |  Branch (200:54): [True: 0, False: 0]
  ------------------
  201|      0|            continue;
  202|       |
  203|      0|        if (meth->add_cb != NULL) {
  ------------------
  |  Branch (203:13): [True: 0, False: 0]
  ------------------
  204|      0|            int cb_retval = meth->add_cb(SSL_CONNECTION_GET_USER_SSL(s),
  ------------------
  |  |   28|      0|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  205|      0|                meth->ext_type, context, &out,
  206|      0|                &outlen, x, chainidx, &al,
  207|      0|                meth->add_arg);
  208|       |
  209|      0|            if (cb_retval < 0) {
  ------------------
  |  Branch (209:17): [True: 0, False: 0]
  ------------------
  210|      0|                if (!for_comp)
  ------------------
  |  Branch (210:21): [True: 0, False: 0]
  ------------------
  211|      0|                    SSLfatal(s, al, SSL_R_CALLBACK_FAILED);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  212|      0|                return 0; /* error */
  213|      0|            }
  214|      0|            if (cb_retval == 0)
  ------------------
  |  Branch (214:17): [True: 0, False: 0]
  ------------------
  215|      0|                continue; /* skip this extension */
  216|      0|        }
  217|       |
  218|      0|        if (!WPACKET_put_bytes_u16(pkt, meth->ext_type)
  ------------------
  |  |  891|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (218:13): [True: 0, False: 0]
  ------------------
  219|      0|            || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  792|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (219:16): [True: 0, False: 0]
  ------------------
  220|      0|            || (outlen > 0 && !WPACKET_memcpy(pkt, out, outlen))
  ------------------
  |  Branch (220:17): [True: 0, False: 0]
  |  Branch (220:31): [True: 0, False: 0]
  ------------------
  221|      0|            || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (221:16): [True: 0, False: 0]
  ------------------
  222|      0|            if (meth->free_cb != NULL)
  ------------------
  |  Branch (222:17): [True: 0, False: 0]
  ------------------
  223|      0|                meth->free_cb(SSL_CONNECTION_GET_USER_SSL(s), meth->ext_type,
  ------------------
  |  |   28|      0|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  224|      0|                    context, out, meth->add_arg);
  225|      0|            if (!for_comp)
  ------------------
  |  Branch (225:17): [True: 0, False: 0]
  ------------------
  226|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  227|      0|            return 0;
  228|      0|        }
  229|      0|        if ((context & SSL_EXT_CLIENT_HELLO) != 0) {
  ------------------
  |  |  299|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (229:13): [True: 0, False: 0]
  ------------------
  230|       |            /*
  231|       |             * We can't send duplicates: code logic should prevent this.
  232|       |             */
  233|      0|            if (!ossl_assert((meth->ext_flags & SSL_EXT_FLAG_SENT) == 0)) {
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (233:17): [True: 0, False: 0]
  ------------------
  234|      0|                if (meth->free_cb != NULL)
  ------------------
  |  Branch (234:21): [True: 0, False: 0]
  ------------------
  235|      0|                    meth->free_cb(SSL_CONNECTION_GET_USER_SSL(s), meth->ext_type,
  ------------------
  |  |   28|      0|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  236|      0|                        context, out, meth->add_arg);
  237|      0|                if (!for_comp)
  ------------------
  |  Branch (237:21): [True: 0, False: 0]
  ------------------
  238|      0|                    SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  239|      0|                return 0;
  240|      0|            }
  241|       |            /*
  242|       |             * Indicate extension has been sent: this is both a sanity check to
  243|       |             * ensure we don't send duplicate extensions and indicates that it
  244|       |             * is not an error if the extension is present in ServerHello.
  245|       |             */
  246|      0|            meth->ext_flags |= SSL_EXT_FLAG_SENT;
  ------------------
  |  | 2068|      0|#define SSL_EXT_FLAG_SENT 0x2
  ------------------
  247|      0|        }
  248|      0|        if (meth->free_cb != NULL)
  ------------------
  |  Branch (248:13): [True: 0, False: 0]
  ------------------
  249|      0|            meth->free_cb(SSL_CONNECTION_GET_USER_SSL(s), meth->ext_type,
  ------------------
  |  |   28|      0|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  250|      0|                context, out, meth->add_arg);
  251|      0|    }
  252|    219|    return 1;
  253|    219|}
custom_exts_copy:
  302|    220|{
  303|    220|    size_t i;
  304|    220|    int err = 0;
  305|       |
  306|    220|    if (src->meths_count > 0) {
  ------------------
  |  Branch (306:9): [True: 0, False: 220]
  ------------------
  307|      0|        dst->meths = OPENSSL_memdup(src->meths,
  ------------------
  |  |  133|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  308|      0|            sizeof(*src->meths) * src->meths_count);
  309|      0|        if (dst->meths == NULL)
  ------------------
  |  Branch (309:13): [True: 0, False: 0]
  ------------------
  310|      0|            return 0;
  311|      0|        dst->meths_count = src->meths_count;
  312|       |
  313|      0|        for (i = 0; i < src->meths_count; i++)
  ------------------
  |  Branch (313:21): [True: 0, False: 0]
  ------------------
  314|      0|            custom_ext_copy_old_cb(&dst->meths[i], &src->meths[i], &err);
  315|      0|    }
  316|       |
  317|    220|    if (err) {
  ------------------
  |  Branch (317:9): [True: 0, False: 220]
  ------------------
  318|      0|        custom_exts_free(dst);
  319|      0|        return 0;
  320|      0|    }
  321|       |
  322|    220|    return 1;
  323|    220|}
custom_exts_free:
  376|    440|{
  377|    440|    size_t i;
  378|    440|    custom_ext_method *meth;
  379|       |
  380|    440|    for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) {
  ------------------
  |  Branch (380:37): [True: 0, False: 440]
  ------------------
  381|      0|        if (meth->add_cb != custom_ext_add_old_cb_wrap)
  ------------------
  |  Branch (381:13): [True: 0, False: 0]
  ------------------
  382|      0|            continue;
  383|       |
  384|       |        /* Old style API wrapper. Need to free the arguments too */
  385|      0|        OPENSSL_free(meth->add_arg);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  386|      0|        OPENSSL_free(meth->parse_arg);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  387|      0|    }
  388|    440|    OPENSSL_free(exts->meths);
  ------------------
  |  |  131|    440|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  389|       |    exts->meths = NULL;
  390|    440|    exts->meths_count = 0;
  391|    440|}

SSL_get_state:
   75|    219|{
   76|    219|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(ssl);
  ------------------
  |  |   41|    219|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|    219|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 219]
  |  |  |  |  ------------------
  |  |  |  |   33|    219|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    219|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 219, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    219|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    219|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
   77|       |
   78|    219|    if (sc == NULL)
  ------------------
  |  Branch (78:9): [True: 0, False: 219]
  ------------------
   79|      0|        return TLS_ST_BEFORE;
   80|       |
   81|    219|    return sc->statem.hand_state;
   82|    219|}
SSL_in_init:
   85|  8.71k|{
   86|  8.71k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  8.71k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  8.71k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 8.71k]
  |  |  |  |  ------------------
  |  |  |  |   33|  8.71k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  8.71k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 8.71k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  8.71k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  8.71k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
   87|       |
   88|  8.71k|    if (sc == NULL)
  ------------------
  |  Branch (88:9): [True: 0, False: 8.71k]
  ------------------
   89|      0|        return 0;
   90|       |
   91|  8.71k|    return sc->statem.in_init;
   92|  8.71k|}
SSL_in_before:
  105|  4.35k|{
  106|  4.35k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  4.35k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  4.35k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 4.35k]
  |  |  |  |  ------------------
  |  |  |  |   33|  4.35k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.35k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 4.35k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  4.35k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  4.35k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  107|       |
  108|  4.35k|    if (sc == NULL)
  ------------------
  |  Branch (108:9): [True: 0, False: 4.35k]
  ------------------
  109|      0|        return 0;
  110|       |
  111|       |    /*
  112|       |     * Historically being "in before" meant before anything had happened. In the
  113|       |     * current code though we remain in the "before" state for a while after we
  114|       |     * have started the handshake process (e.g. as a server waiting for the
  115|       |     * first message to arrive). There "in before" is taken to mean "in before"
  116|       |     * and not started any handshake process yet.
  117|       |     */
  118|  4.35k|    return (sc->statem.hand_state == TLS_ST_BEFORE)
  ------------------
  |  Branch (118:12): [True: 438, False: 3.91k]
  ------------------
  119|    438|        && (sc->statem.state == MSG_FLOW_UNINITED);
  ------------------
  |  Branch (119:12): [True: 438, False: 0]
  ------------------
  120|  4.35k|}
ossl_statem_clear:
  131|    659|{
  132|    659|    s->statem.state = MSG_FLOW_UNINITED;
  133|    659|    s->statem.hand_state = TLS_ST_BEFORE;
  134|    659|    ossl_statem_set_in_init(s, 1);
  135|    659|    s->statem.no_cert_verify = 0;
  136|    659|}
ossl_statem_set_in_init:
  204|    659|{
  205|    659|    s->statem.in_init = init;
  206|    659|    if (s->rlayer.rrlmethod != NULL && s->rlayer.rrlmethod->set_in_init != NULL)
  ------------------
  |  Branch (206:9): [True: 439, False: 220]
  |  Branch (206:40): [True: 0, False: 439]
  ------------------
  207|      0|        s->rlayer.rrlmethod->set_in_init(s->rlayer.rrl, init);
  208|    659|}
ossl_statem_get_in_handshake:
  211|  4.35k|{
  212|  4.35k|    return s->statem.in_handshake;
  213|  4.35k|}
ossl_statem_check_finish_init:
  246|  4.13k|{
  247|  4.13k|    if (sending == -1) {
  ------------------
  |  Branch (247:9): [True: 4.13k, False: 0]
  ------------------
  248|  4.13k|        if (s->statem.hand_state == TLS_ST_PENDING_EARLY_DATA_END
  ------------------
  |  Branch (248:13): [True: 0, False: 4.13k]
  ------------------
  249|  4.13k|            || s->statem.hand_state == TLS_ST_EARLY_DATA) {
  ------------------
  |  Branch (249:16): [True: 0, False: 4.13k]
  ------------------
  250|      0|            ossl_statem_set_in_init(s, 1);
  251|      0|            if (s->early_data_state == SSL_EARLY_DATA_WRITE_RETRY) {
  ------------------
  |  Branch (251:17): [True: 0, False: 0]
  ------------------
  252|       |                /*
  253|       |                 * SSL_connect() or SSL_do_handshake() has been called directly.
  254|       |                 * We don't allow any more writing of early data.
  255|       |                 */
  256|      0|                s->early_data_state = SSL_EARLY_DATA_FINISHED_WRITING;
  257|      0|            }
  258|      0|        }
  259|  4.13k|    } else if (!s->server) {
  ------------------
  |  Branch (259:16): [True: 0, False: 0]
  ------------------
  260|      0|        if ((sending && (s->statem.hand_state == TLS_ST_PENDING_EARLY_DATA_END || s->statem.hand_state == TLS_ST_EARLY_DATA)
  ------------------
  |  Branch (260:14): [True: 0, False: 0]
  |  Branch (260:26): [True: 0, False: 0]
  |  Branch (260:83): [True: 0, False: 0]
  ------------------
  261|      0|                && s->early_data_state != SSL_EARLY_DATA_WRITING)
  ------------------
  |  Branch (261:20): [True: 0, False: 0]
  ------------------
  262|      0|            || (!sending && s->statem.hand_state == TLS_ST_EARLY_DATA)) {
  ------------------
  |  Branch (262:17): [True: 0, False: 0]
  |  Branch (262:29): [True: 0, False: 0]
  ------------------
  263|      0|            ossl_statem_set_in_init(s, 1);
  264|       |            /*
  265|       |             * SSL_write() has been called directly. We don't allow any more
  266|       |             * writing of early data.
  267|       |             */
  268|      0|            if (sending && s->early_data_state == SSL_EARLY_DATA_WRITE_RETRY)
  ------------------
  |  Branch (268:17): [True: 0, False: 0]
  |  Branch (268:28): [True: 0, False: 0]
  ------------------
  269|      0|                s->early_data_state = SSL_EARLY_DATA_FINISHED_WRITING;
  270|      0|        }
  271|      0|    } else {
  272|      0|        if (s->early_data_state == SSL_EARLY_DATA_FINISHED_READING
  ------------------
  |  Branch (272:13): [True: 0, False: 0]
  ------------------
  273|      0|            && s->statem.hand_state == TLS_ST_EARLY_DATA)
  ------------------
  |  Branch (273:16): [True: 0, False: 0]
  ------------------
  274|      0|            ossl_statem_set_in_init(s, 1);
  275|      0|    }
  276|  4.13k|    return 1;
  277|  4.13k|}
ossl_statem_connect:
  294|  4.13k|{
  295|  4.13k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|  4.13k|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|  4.13k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 4.13k]
  |  |  |  |  ------------------
  |  |  |  |   33|  4.13k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|  4.13k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 4.13k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  4.13k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  4.13k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  296|       |
  297|  4.13k|    if (sc == NULL)
  ------------------
  |  Branch (297:9): [True: 0, False: 4.13k]
  ------------------
  298|      0|        return -1;
  299|       |
  300|  4.13k|    return state_machine(sc, 0);
  301|  4.13k|}
statem_flush:
  970|    219|{
  971|    219|    s->rwstate = SSL_WRITING;
  ------------------
  |  |  933|    219|#define SSL_WRITING 2
  ------------------
  972|    219|    if (BIO_flush(s->wbio) <= 0) {
  ------------------
  |  |  641|    219|#define BIO_flush(b) (int)BIO_ctrl(b, BIO_CTRL_FLUSH, 0, NULL)
  |  |  ------------------
  |  |  |  |  100|    219|#define BIO_CTRL_FLUSH 11 /* opt - 'flush' buffered output */
  |  |  ------------------
  ------------------
  |  Branch (972:9): [True: 0, False: 219]
  ------------------
  973|      0|        return 0;
  974|      0|    }
  975|    219|    s->rwstate = SSL_NOTHING;
  ------------------
  |  |  932|    219|#define SSL_NOTHING 1
  ------------------
  976|       |
  977|    219|    return 1;
  978|    219|}
statem.c:state_machine:
  356|  4.13k|{
  357|  4.13k|    BUF_MEM *buf = NULL;
  358|  4.13k|    void (*cb)(const SSL *ssl, int type, int val) = NULL;
  359|  4.13k|    OSSL_STATEM *st = &s->statem;
  360|  4.13k|    int ret = -1;
  361|  4.13k|    int ssret;
  362|  4.13k|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|  4.13k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  363|  4.13k|    SSL *ussl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|  4.13k|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  364|       |
  365|  4.13k|    if (st->state == MSG_FLOW_ERROR) {
  ------------------
  |  Branch (365:9): [True: 0, False: 4.13k]
  ------------------
  366|       |        /* Shouldn't have been called if we're already in the error state */
  367|      0|        return -1;
  368|      0|    }
  369|       |
  370|  4.13k|    ERR_clear_error();
  371|  4.13k|    clear_sys_error();
  ------------------
  |  |   31|  4.13k|#define clear_sys_error() errno = 0
  ------------------
  372|       |
  373|  4.13k|    cb = get_callback(s);
  374|       |
  375|  4.13k|    st->in_handshake++;
  376|  4.13k|    if (!SSL_in_init(ssl) || SSL_in_before(ssl)) {
  ------------------
  |  Branch (376:9): [True: 0, False: 4.13k]
  |  Branch (376:30): [True: 219, False: 3.91k]
  ------------------
  377|       |        /*
  378|       |         * If we are stateless then we already called SSL_clear() - don't do
  379|       |         * it again and clear the STATELESS flag itself.
  380|       |         */
  381|    219|        if ((s->s3.flags & TLS1_FLAGS_STATELESS) == 0 && !SSL_clear(ssl))
  ------------------
  |  |  304|    219|#define TLS1_FLAGS_STATELESS 0x0800
  ------------------
  |  Branch (381:13): [True: 219, False: 0]
  |  Branch (381:58): [True: 0, False: 219]
  ------------------
  382|      0|            return -1;
  383|    219|    }
  384|       |#ifndef OPENSSL_NO_SCTP
  385|       |    if (SSL_CONNECTION_IS_DTLS(s) && BIO_dgram_is_sctp(SSL_get_wbio(ssl))) {
  386|       |        /*
  387|       |         * Notify SCTP BIO socket to enter handshake mode and prevent stream
  388|       |         * identifier other than 0.
  389|       |         */
  390|       |        BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE,
  391|       |            st->in_handshake, NULL);
  392|       |    }
  393|       |#endif
  394|       |
  395|       |    /* Initialise state machine */
  396|  4.13k|    if (st->state == MSG_FLOW_UNINITED
  ------------------
  |  Branch (396:9): [True: 219, False: 3.91k]
  ------------------
  397|  3.91k|        || st->state == MSG_FLOW_FINISHED) {
  ------------------
  |  Branch (397:12): [True: 0, False: 3.91k]
  ------------------
  398|    219|        if (st->state == MSG_FLOW_UNINITED) {
  ------------------
  |  Branch (398:13): [True: 219, False: 0]
  ------------------
  399|    219|            st->hand_state = TLS_ST_BEFORE;
  400|    219|            st->request_state = TLS_ST_BEFORE;
  401|    219|        }
  402|       |
  403|    219|        s->server = server;
  404|    219|        if (cb != NULL) {
  ------------------
  |  Branch (404:13): [True: 0, False: 219]
  ------------------
  405|      0|            if (SSL_IS_FIRST_HANDSHAKE(s) || !SSL_CONNECTION_IS_TLS13(s))
  ------------------
  |  |  277|      0|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 0, False: 0]
  |  |  ------------------
  |  |  278|      0|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                          if (SSL_IS_FIRST_HANDSHAKE(s) || !SSL_CONNECTION_IS_TLS13(s))
  ------------------
  |  |  265|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  266|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  267|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  406|      0|                cb(ussl, SSL_CB_HANDSHAKE_START, 1);
  ------------------
  |  | 1146|      0|#define SSL_CB_HANDSHAKE_START 0x10
  ------------------
  407|      0|        }
  408|       |
  409|       |        /*
  410|       |         * Fatal errors in this block don't send an alert because we have
  411|       |         * failed to even initialise properly. Sending an alert is probably
  412|       |         * doomed to failure.
  413|       |         */
  414|       |
  415|    219|        if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  416|      0|            if ((s->version & 0xff00) != (DTLS1_VERSION & 0xff00) && (server || (s->version & 0xff00) != (DTLS1_BAD_VER & 0xff00))) {
  ------------------
  |  |   28|      0|#define DTLS1_VERSION 0xFEFF
  ------------------
                          if ((s->version & 0xff00) != (DTLS1_VERSION & 0xff00) && (server || (s->version & 0xff00) != (DTLS1_BAD_VER & 0xff00))) {
  ------------------
  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (416:17): [True: 0, False: 0]
  |  Branch (416:71): [True: 0, False: 0]
  |  Branch (416:81): [True: 0, False: 0]
  ------------------
  417|      0|                SSLfatal(s, SSL_AD_NO_ALERT, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  418|      0|                goto end;
  419|      0|            }
  420|    219|        } else {
  421|    219|            if ((s->version >> 8) != SSL3_VERSION_MAJOR) {
  ------------------
  |  |  216|    219|#define SSL3_VERSION_MAJOR 0x03
  ------------------
  |  Branch (421:17): [True: 0, False: 219]
  ------------------
  422|      0|                SSLfatal(s, SSL_AD_NO_ALERT, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  423|      0|                goto end;
  424|      0|            }
  425|    219|        }
  426|       |
  427|    219|        if (!ssl_security(s, SSL_SECOP_VERSION, 0, s->version, NULL)) {
  ------------------
  |  | 2766|    219|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|    219|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (427:13): [True: 0, False: 219]
  ------------------
  428|      0|            SSLfatal(s, SSL_AD_NO_ALERT, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  429|      0|            goto end;
  430|      0|        }
  431|       |
  432|    219|        if (s->init_buf == NULL) {
  ------------------
  |  Branch (432:13): [True: 219, False: 0]
  ------------------
  433|    219|            if ((buf = BUF_MEM_new()) == NULL) {
  ------------------
  |  Branch (433:17): [True: 0, False: 219]
  ------------------
  434|      0|                SSLfatal(s, SSL_AD_NO_ALERT, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  435|      0|                goto end;
  436|      0|            }
  437|    219|            if (!BUF_MEM_grow(buf, SSL3_RT_MAX_PLAIN_LENGTH)) {
  ------------------
  |  |  177|    219|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
  |  Branch (437:17): [True: 0, False: 219]
  ------------------
  438|      0|                SSLfatal(s, SSL_AD_NO_ALERT, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  439|      0|                goto end;
  440|      0|            }
  441|    219|            s->init_buf = buf;
  442|    219|            buf = NULL;
  443|    219|        }
  444|       |
  445|    219|        s->init_num = 0;
  446|       |
  447|       |        /*
  448|       |         * Should have been reset by tls_process_finished, too.
  449|       |         */
  450|    219|        s->s3.change_cipher_spec = 0;
  451|       |
  452|       |        /*
  453|       |         * Ok, we now need to push on a buffering BIO ...but not with
  454|       |         * SCTP
  455|       |         */
  456|       |#ifndef OPENSSL_NO_SCTP
  457|       |        if (!SSL_CONNECTION_IS_DTLS(s) || !BIO_dgram_is_sctp(SSL_get_wbio(ssl)))
  458|       |#endif
  459|    219|            if (!ssl_init_wbio_buffer(s)) {
  ------------------
  |  Branch (459:17): [True: 0, False: 219]
  ------------------
  460|      0|                SSLfatal(s, SSL_AD_NO_ALERT, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  461|      0|                goto end;
  462|      0|            }
  463|       |
  464|    219|        if ((SSL_in_before(ssl))
  ------------------
  |  Branch (464:13): [True: 219, False: 0]
  ------------------
  465|    219|            || s->renegotiate) {
  ------------------
  |  Branch (465:16): [True: 0, False: 0]
  ------------------
  466|    219|            if (!tls_setup_handshake(s)) {
  ------------------
  |  Branch (466:17): [True: 0, False: 219]
  ------------------
  467|       |                /* SSLfatal() already called */
  468|      0|                goto end;
  469|      0|            }
  470|       |
  471|    219|            if (SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  277|    219|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 219, False: 0]
  |  |  ------------------
  |  |  278|    219|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  472|    219|                st->read_state_first_init = 1;
  473|    219|        }
  474|       |
  475|    219|        st->state = MSG_FLOW_WRITING;
  476|    219|        init_write_state_machine(s);
  477|    219|    }
  478|       |
  479|  4.35k|    while (st->state != MSG_FLOW_FINISHED) {
  ------------------
  |  Branch (479:12): [True: 4.35k, False: 0]
  ------------------
  480|  4.35k|        if (st->state == MSG_FLOW_READING) {
  ------------------
  |  Branch (480:13): [True: 4.13k, False: 219]
  ------------------
  481|  4.13k|            ssret = read_state_machine(s);
  482|  4.13k|            if (ssret == SUB_STATE_FINISHED) {
  ------------------
  |  Branch (482:17): [True: 0, False: 4.13k]
  ------------------
  483|      0|                st->state = MSG_FLOW_WRITING;
  484|      0|                init_write_state_machine(s);
  485|  4.13k|            } else {
  486|       |                /* NBIO or error */
  487|  4.13k|                goto end;
  488|  4.13k|            }
  489|  4.13k|        } else if (st->state == MSG_FLOW_WRITING) {
  ------------------
  |  Branch (489:20): [True: 219, False: 0]
  ------------------
  490|    219|            ssret = write_state_machine(s);
  491|    219|            if (ssret == SUB_STATE_FINISHED) {
  ------------------
  |  Branch (491:17): [True: 219, False: 0]
  ------------------
  492|    219|                st->state = MSG_FLOW_READING;
  493|    219|                init_read_state_machine(s);
  494|    219|            } else if (ssret == SUB_STATE_END_HANDSHAKE) {
  ------------------
  |  Branch (494:24): [True: 0, False: 0]
  ------------------
  495|      0|                st->state = MSG_FLOW_FINISHED;
  496|      0|            } else {
  497|       |                /* NBIO or error */
  498|      0|                goto end;
  499|      0|            }
  500|    219|        } else {
  501|       |            /* Error */
  502|      0|            check_fatal(s);
  ------------------
  |  |  182|      0|    do {                                                             \
  |  |  183|      0|        if (!ossl_assert((s)->statem.in_init                         \
  |  |  ------------------
  |  |  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   53|      0|    __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  Branch (183:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  184|      0|                && (s)->statem.state == MSG_FLOW_ERROR))             \
  |  |  185|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_MISSING_FATAL); \
  |  |  ------------------
  |  |  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (186:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  503|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  504|      0|            goto end;
  505|      0|        }
  506|  4.35k|    }
  507|       |
  508|      0|    ret = 1;
  509|       |
  510|  4.13k|end:
  511|  4.13k|    st->in_handshake--;
  512|       |
  513|       |#ifndef OPENSSL_NO_SCTP
  514|       |    if (SSL_CONNECTION_IS_DTLS(s) && BIO_dgram_is_sctp(SSL_get_wbio(ssl))) {
  515|       |        /*
  516|       |         * Notify SCTP BIO socket to leave handshake mode and allow stream
  517|       |         * identifier other than 0.
  518|       |         */
  519|       |        BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE,
  520|       |            st->in_handshake, NULL);
  521|       |    }
  522|       |#endif
  523|       |
  524|  4.13k|    BUF_MEM_free(buf);
  525|  4.13k|    if (cb != NULL) {
  ------------------
  |  Branch (525:9): [True: 0, False: 4.13k]
  ------------------
  526|      0|        if (server)
  ------------------
  |  Branch (526:13): [True: 0, False: 0]
  ------------------
  527|      0|            cb(ussl, SSL_CB_ACCEPT_EXIT, ret);
  ------------------
  |  | 1143|      0|#define SSL_CB_ACCEPT_EXIT (SSL_ST_ACCEPT | SSL_CB_EXIT)
  |  |  ------------------
  |  |  |  | 1131|      0|#define SSL_ST_ACCEPT 0x2000
  |  |  ------------------
  |  |               #define SSL_CB_ACCEPT_EXIT (SSL_ST_ACCEPT | SSL_CB_EXIT)
  |  |  ------------------
  |  |  |  | 1136|      0|#define SSL_CB_EXIT 0x02
  |  |  ------------------
  ------------------
  528|      0|        else
  529|      0|            cb(ussl, SSL_CB_CONNECT_EXIT, ret);
  ------------------
  |  | 1145|      0|#define SSL_CB_CONNECT_EXIT (SSL_ST_CONNECT | SSL_CB_EXIT)
  |  |  ------------------
  |  |  |  | 1130|      0|#define SSL_ST_CONNECT 0x1000
  |  |  ------------------
  |  |               #define SSL_CB_CONNECT_EXIT (SSL_ST_CONNECT | SSL_CB_EXIT)
  |  |  ------------------
  |  |  |  | 1136|      0|#define SSL_CB_EXIT 0x02
  |  |  ------------------
  ------------------
  530|      0|    }
  531|  4.13k|    return ret;
  532|      0|}
statem.c:get_callback:
  316|  8.49k|{
  317|  8.49k|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|  8.49k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  318|       |
  319|  8.49k|    if (s->info_callback != NULL)
  ------------------
  |  Branch (319:9): [True: 0, False: 8.49k]
  ------------------
  320|      0|        return s->info_callback;
  321|  8.49k|    else if (sctx->info_callback != NULL)
  ------------------
  |  Branch (321:14): [True: 0, False: 8.49k]
  ------------------
  322|      0|        return sctx->info_callback;
  323|       |
  324|  8.49k|    return NULL;
  325|  8.49k|}
statem.c:init_write_state_machine:
  768|    219|{
  769|    219|    OSSL_STATEM *st = &s->statem;
  770|       |
  771|    219|    st->write_state = WRITE_STATE_TRANSITION;
  772|    219|}
statem.c:read_state_machine:
  587|  4.13k|{
  588|  4.13k|    OSSL_STATEM *st = &s->statem;
  589|  4.13k|    int ret, mt;
  590|  4.13k|    size_t len = 0;
  591|  4.13k|    int (*transition)(SSL_CONNECTION *s, int mt);
  592|  4.13k|    PACKET pkt;
  593|  4.13k|    MSG_PROCESS_RETURN (*process_message)(SSL_CONNECTION *s, PACKET *pkt);
  594|  4.13k|    WORK_STATE (*post_process_message)(SSL_CONNECTION *s, WORK_STATE wst);
  595|  4.13k|    size_t (*max_message_size)(SSL_CONNECTION *s);
  596|  4.13k|    void (*cb)(const SSL *ssl, int type, int val) = NULL;
  597|  4.13k|    SSL *ssl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|  4.13k|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  598|       |
  599|  4.13k|    cb = get_callback(s);
  600|       |
  601|  4.13k|    if (s->server) {
  ------------------
  |  Branch (601:9): [True: 0, False: 4.13k]
  ------------------
  602|      0|        transition = ossl_statem_server_read_transition;
  603|      0|        process_message = ossl_statem_server_process_message;
  604|      0|        max_message_size = ossl_statem_server_max_message_size;
  605|      0|        post_process_message = ossl_statem_server_post_process_message;
  606|  4.13k|    } else {
  607|  4.13k|        transition = ossl_statem_client_read_transition;
  608|  4.13k|        process_message = ossl_statem_client_process_message;
  609|  4.13k|        max_message_size = ossl_statem_client_max_message_size;
  610|  4.13k|        post_process_message = ossl_statem_client_post_process_message;
  611|  4.13k|    }
  612|       |
  613|  4.13k|    if (st->read_state_first_init) {
  ------------------
  |  Branch (613:9): [True: 219, False: 3.91k]
  ------------------
  614|    219|        s->first_packet = 1;
  615|    219|        st->read_state_first_init = 0;
  616|    219|    }
  617|       |
  618|  4.13k|    while (1) {
  ------------------
  |  Branch (618:12): [True: 4.13k, Folded]
  ------------------
  619|  4.13k|        switch (st->read_state) {
  620|  4.13k|        case READ_STATE_HEADER:
  ------------------
  |  Branch (620:9): [True: 4.13k, False: 0]
  ------------------
  621|       |            /* Get the state the peer wants to move to */
  622|  4.13k|            if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|  4.13k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  4.13k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  4.13k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 4.13k]
  |  |  ------------------
  ------------------
  623|       |                /*
  624|       |                 * In DTLS we get the whole message in one go - header and body
  625|       |                 */
  626|      0|                ret = dtls_get_message(s, &mt);
  627|  4.13k|            } else {
  628|  4.13k|                ret = tls_get_message_header(s, &mt);
  629|  4.13k|            }
  630|       |
  631|  4.13k|            if (ret == 0) {
  ------------------
  |  Branch (631:17): [True: 4.13k, False: 0]
  ------------------
  632|       |                /* Could be non-blocking IO */
  633|  4.13k|                return SUB_STATE_ERROR;
  634|  4.13k|            }
  635|       |
  636|      0|            if (cb != NULL) {
  ------------------
  |  Branch (636:17): [True: 0, False: 0]
  ------------------
  637|       |                /* Notify callback of an impending state change */
  638|      0|                if (s->server)
  ------------------
  |  Branch (638:21): [True: 0, False: 0]
  ------------------
  639|      0|                    cb(ssl, SSL_CB_ACCEPT_LOOP, 1);
  ------------------
  |  | 1142|      0|#define SSL_CB_ACCEPT_LOOP (SSL_ST_ACCEPT | SSL_CB_LOOP)
  |  |  ------------------
  |  |  |  | 1131|      0|#define SSL_ST_ACCEPT 0x2000
  |  |  ------------------
  |  |               #define SSL_CB_ACCEPT_LOOP (SSL_ST_ACCEPT | SSL_CB_LOOP)
  |  |  ------------------
  |  |  |  | 1135|      0|#define SSL_CB_LOOP 0x01
  |  |  ------------------
  ------------------
  640|      0|                else
  641|      0|                    cb(ssl, SSL_CB_CONNECT_LOOP, 1);
  ------------------
  |  | 1144|      0|#define SSL_CB_CONNECT_LOOP (SSL_ST_CONNECT | SSL_CB_LOOP)
  |  |  ------------------
  |  |  |  | 1130|      0|#define SSL_ST_CONNECT 0x1000
  |  |  ------------------
  |  |               #define SSL_CB_CONNECT_LOOP (SSL_ST_CONNECT | SSL_CB_LOOP)
  |  |  ------------------
  |  |  |  | 1135|      0|#define SSL_CB_LOOP 0x01
  |  |  ------------------
  ------------------
  642|      0|            }
  643|       |            /*
  644|       |             * Validate that we are allowed to move to the new state and move
  645|       |             * to that state if so
  646|       |             */
  647|      0|            if (!transition(s, mt))
  ------------------
  |  Branch (647:17): [True: 0, False: 0]
  ------------------
  648|      0|                return SUB_STATE_ERROR;
  649|       |
  650|      0|            if (s->s3.tmp.message_size > max_message_size(s)) {
  ------------------
  |  Branch (650:17): [True: 0, False: 0]
  ------------------
  651|      0|                SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  652|      0|                    SSL_R_EXCESSIVE_MESSAGE_SIZE);
  653|      0|                return SUB_STATE_ERROR;
  654|      0|            }
  655|       |
  656|       |            /* dtls_get_message already did this */
  657|      0|            if (!SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (657:17): [True: 0, False: 0]
  ------------------
  658|      0|                && s->s3.tmp.message_size > 0
  ------------------
  |  Branch (658:20): [True: 0, False: 0]
  ------------------
  659|      0|                && !grow_init_buf(s, s->s3.tmp.message_size + SSL3_HM_HEADER_LENGTH)) {
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (659:20): [True: 0, False: 0]
  ------------------
  660|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_BUF_LIB);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  661|      0|                return SUB_STATE_ERROR;
  662|      0|            }
  663|       |
  664|      0|            st->read_state = READ_STATE_BODY;
  665|       |            /* Fall through */
  666|       |
  667|      0|        case READ_STATE_BODY:
  ------------------
  |  Branch (667:9): [True: 0, False: 4.13k]
  ------------------
  668|      0|            if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  669|       |                /*
  670|       |                 * Actually we already have the body, but we give DTLS the
  671|       |                 * opportunity to do any further processing.
  672|       |                 */
  673|      0|                ret = dtls_get_message_body(s, &len);
  674|      0|            } else {
  675|      0|                ret = tls_get_message_body(s, &len);
  676|      0|            }
  677|      0|            if (ret == 0) {
  ------------------
  |  Branch (677:17): [True: 0, False: 0]
  ------------------
  678|       |                /* Could be non-blocking IO */
  679|      0|                return SUB_STATE_ERROR;
  680|      0|            }
  681|       |
  682|      0|            s->first_packet = 0;
  683|      0|            if (!PACKET_buf_init(&pkt, s->init_msg, len)) {
  ------------------
  |  Branch (683:17): [True: 0, False: 0]
  ------------------
  684|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  685|      0|                return SUB_STATE_ERROR;
  686|      0|            }
  687|      0|            ret = process_message(s, &pkt);
  688|       |
  689|       |            /* Discard the packet data */
  690|      0|            s->init_num = 0;
  691|       |
  692|      0|            switch (ret) {
  693|      0|            case MSG_PROCESS_ERROR:
  ------------------
  |  Branch (693:13): [True: 0, False: 0]
  ------------------
  694|      0|                check_fatal(s);
  ------------------
  |  |  182|      0|    do {                                                             \
  |  |  183|      0|        if (!ossl_assert((s)->statem.in_init                         \
  |  |  ------------------
  |  |  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   53|      0|    __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  Branch (183:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  184|      0|                && (s)->statem.state == MSG_FLOW_ERROR))             \
  |  |  185|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_MISSING_FATAL); \
  |  |  ------------------
  |  |  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (186:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  695|      0|                return SUB_STATE_ERROR;
  696|       |
  697|      0|            case MSG_PROCESS_FINISHED_READING:
  ------------------
  |  Branch (697:13): [True: 0, False: 0]
  ------------------
  698|      0|                if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  699|      0|                    dtls1_stop_timer(s);
  700|      0|                }
  701|      0|                return SUB_STATE_FINISHED;
  702|       |
  703|      0|            case MSG_PROCESS_CONTINUE_PROCESSING:
  ------------------
  |  Branch (703:13): [True: 0, False: 0]
  ------------------
  704|      0|                st->read_state = READ_STATE_POST_PROCESS;
  705|      0|                st->read_state_work = WORK_MORE_A;
  706|      0|                break;
  707|       |
  708|      0|            default:
  ------------------
  |  Branch (708:13): [True: 0, False: 0]
  ------------------
  709|      0|                st->read_state = READ_STATE_HEADER;
  710|      0|                break;
  711|      0|            }
  712|      0|            break;
  713|       |
  714|      0|        case READ_STATE_POST_PROCESS:
  ------------------
  |  Branch (714:9): [True: 0, False: 4.13k]
  ------------------
  715|      0|            st->read_state_work = post_process_message(s, st->read_state_work);
  716|      0|            switch (st->read_state_work) {
  ------------------
  |  Branch (716:21): [True: 0, False: 0]
  ------------------
  717|      0|            case WORK_ERROR:
  ------------------
  |  Branch (717:13): [True: 0, False: 0]
  ------------------
  718|      0|                check_fatal(s);
  ------------------
  |  |  182|      0|    do {                                                             \
  |  |  183|      0|        if (!ossl_assert((s)->statem.in_init                         \
  |  |  ------------------
  |  |  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   53|      0|    __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  Branch (183:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  184|      0|                && (s)->statem.state == MSG_FLOW_ERROR))             \
  |  |  185|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_MISSING_FATAL); \
  |  |  ------------------
  |  |  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (186:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  719|       |                /* Fall through */
  720|      0|            case WORK_MORE_A:
  ------------------
  |  Branch (720:13): [True: 0, False: 0]
  ------------------
  721|      0|            case WORK_MORE_B:
  ------------------
  |  Branch (721:13): [True: 0, False: 0]
  ------------------
  722|      0|            case WORK_MORE_C:
  ------------------
  |  Branch (722:13): [True: 0, False: 0]
  ------------------
  723|      0|                return SUB_STATE_ERROR;
  724|       |
  725|      0|            case WORK_FINISHED_CONTINUE:
  ------------------
  |  Branch (725:13): [True: 0, False: 0]
  ------------------
  726|      0|                st->read_state = READ_STATE_HEADER;
  727|      0|                break;
  728|       |
  729|      0|            case WORK_FINISHED_SWAP:
  ------------------
  |  Branch (729:13): [True: 0, False: 0]
  ------------------
  730|      0|            case WORK_FINISHED_STOP:
  ------------------
  |  Branch (730:13): [True: 0, False: 0]
  ------------------
  731|      0|                if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  732|      0|                    dtls1_stop_timer(s);
  733|      0|                }
  734|      0|                return SUB_STATE_FINISHED;
  735|      0|            }
  736|      0|            break;
  737|       |
  738|      0|        default:
  ------------------
  |  Branch (738:9): [True: 0, False: 4.13k]
  ------------------
  739|       |            /* Shouldn't happen */
  740|       |            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  741|      0|            return SUB_STATE_ERROR;
  742|  4.13k|        }
  743|  4.13k|    }
  744|  4.13k|}
statem.c:write_state_machine:
  806|    219|{
  807|    219|    OSSL_STATEM *st = &s->statem;
  808|    219|    int ret;
  809|    219|    WRITE_TRAN (*transition)(SSL_CONNECTION *s);
  810|    219|    WORK_STATE (*pre_work)(SSL_CONNECTION *s, WORK_STATE wst);
  811|    219|    WORK_STATE (*post_work)(SSL_CONNECTION *s, WORK_STATE wst);
  812|    219|    int (*get_construct_message_f)(SSL_CONNECTION *s,
  813|    219|        CON_FUNC_RETURN (**confunc)(SSL_CONNECTION *s,
  814|    219|            WPACKET *pkt),
  815|    219|        int *mt);
  816|    219|    void (*cb)(const SSL *ssl, int type, int val) = NULL;
  817|    219|    CON_FUNC_RETURN (*confunc)(SSL_CONNECTION *s, WPACKET *pkt);
  818|    219|    int mt;
  819|    219|    WPACKET pkt;
  820|    219|    SSL *ssl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|    219|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  821|       |
  822|    219|    cb = get_callback(s);
  823|       |
  824|    219|    if (s->server) {
  ------------------
  |  Branch (824:9): [True: 0, False: 219]
  ------------------
  825|      0|        transition = ossl_statem_server_write_transition;
  826|      0|        pre_work = ossl_statem_server_pre_work;
  827|      0|        post_work = ossl_statem_server_post_work;
  828|      0|        get_construct_message_f = ossl_statem_server_construct_message;
  829|    219|    } else {
  830|    219|        transition = ossl_statem_client_write_transition;
  831|    219|        pre_work = ossl_statem_client_pre_work;
  832|    219|        post_work = ossl_statem_client_post_work;
  833|    219|        get_construct_message_f = ossl_statem_client_construct_message;
  834|    219|    }
  835|       |
  836|    657|    while (1) {
  ------------------
  |  Branch (836:12): [True: 657, Folded]
  ------------------
  837|    657|        switch (st->write_state) {
  838|    438|        case WRITE_STATE_TRANSITION:
  ------------------
  |  Branch (838:9): [True: 438, False: 219]
  ------------------
  839|    438|            if (cb != NULL) {
  ------------------
  |  Branch (839:17): [True: 0, False: 438]
  ------------------
  840|       |                /* Notify callback of an impending state change */
  841|      0|                if (s->server)
  ------------------
  |  Branch (841:21): [True: 0, False: 0]
  ------------------
  842|      0|                    cb(ssl, SSL_CB_ACCEPT_LOOP, 1);
  ------------------
  |  | 1142|      0|#define SSL_CB_ACCEPT_LOOP (SSL_ST_ACCEPT | SSL_CB_LOOP)
  |  |  ------------------
  |  |  |  | 1131|      0|#define SSL_ST_ACCEPT 0x2000
  |  |  ------------------
  |  |               #define SSL_CB_ACCEPT_LOOP (SSL_ST_ACCEPT | SSL_CB_LOOP)
  |  |  ------------------
  |  |  |  | 1135|      0|#define SSL_CB_LOOP 0x01
  |  |  ------------------
  ------------------
  843|      0|                else
  844|      0|                    cb(ssl, SSL_CB_CONNECT_LOOP, 1);
  ------------------
  |  | 1144|      0|#define SSL_CB_CONNECT_LOOP (SSL_ST_CONNECT | SSL_CB_LOOP)
  |  |  ------------------
  |  |  |  | 1130|      0|#define SSL_ST_CONNECT 0x1000
  |  |  ------------------
  |  |               #define SSL_CB_CONNECT_LOOP (SSL_ST_CONNECT | SSL_CB_LOOP)
  |  |  ------------------
  |  |  |  | 1135|      0|#define SSL_CB_LOOP 0x01
  |  |  ------------------
  ------------------
  845|      0|            }
  846|    438|            switch (transition(s)) {
  ------------------
  |  Branch (846:21): [True: 438, False: 0]
  ------------------
  847|    219|            case WRITE_TRAN_CONTINUE:
  ------------------
  |  Branch (847:13): [True: 219, False: 219]
  ------------------
  848|    219|                st->write_state = WRITE_STATE_PRE_WORK;
  849|    219|                st->write_state_work = WORK_MORE_A;
  850|    219|                break;
  851|       |
  852|    219|            case WRITE_TRAN_FINISHED:
  ------------------
  |  Branch (852:13): [True: 219, False: 219]
  ------------------
  853|    219|                return SUB_STATE_FINISHED;
  854|       |
  855|      0|            case WRITE_TRAN_ERROR:
  ------------------
  |  Branch (855:13): [True: 0, False: 438]
  ------------------
  856|      0|                check_fatal(s);
  ------------------
  |  |  182|      0|    do {                                                             \
  |  |  183|      0|        if (!ossl_assert((s)->statem.in_init                         \
  |  |  ------------------
  |  |  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   53|      0|    __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  Branch (183:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  184|      0|                && (s)->statem.state == MSG_FLOW_ERROR))             \
  |  |  185|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_MISSING_FATAL); \
  |  |  ------------------
  |  |  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (186:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  857|      0|                return SUB_STATE_ERROR;
  858|    438|            }
  859|    219|            break;
  860|       |
  861|    219|        case WRITE_STATE_PRE_WORK:
  ------------------
  |  Branch (861:9): [True: 219, False: 438]
  ------------------
  862|    219|            switch (st->write_state_work = pre_work(s, st->write_state_work)) {
  ------------------
  |  Branch (862:21): [True: 219, False: 0]
  ------------------
  863|      0|            case WORK_ERROR:
  ------------------
  |  Branch (863:13): [True: 0, False: 219]
  ------------------
  864|      0|                check_fatal(s);
  ------------------
  |  |  182|      0|    do {                                                             \
  |  |  183|      0|        if (!ossl_assert((s)->statem.in_init                         \
  |  |  ------------------
  |  |  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   53|      0|    __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  Branch (183:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  184|      0|                && (s)->statem.state == MSG_FLOW_ERROR))             \
  |  |  185|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_MISSING_FATAL); \
  |  |  ------------------
  |  |  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (186:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  865|       |                /* Fall through */
  866|      0|            case WORK_MORE_A:
  ------------------
  |  Branch (866:13): [True: 0, False: 219]
  ------------------
  867|      0|            case WORK_MORE_B:
  ------------------
  |  Branch (867:13): [True: 0, False: 219]
  ------------------
  868|      0|            case WORK_MORE_C:
  ------------------
  |  Branch (868:13): [True: 0, False: 219]
  ------------------
  869|      0|                return SUB_STATE_ERROR;
  870|       |
  871|    219|            case WORK_FINISHED_CONTINUE:
  ------------------
  |  Branch (871:13): [True: 219, False: 0]
  ------------------
  872|    219|                st->write_state = WRITE_STATE_SEND;
  873|    219|                break;
  874|       |
  875|      0|            case WORK_FINISHED_SWAP:
  ------------------
  |  Branch (875:13): [True: 0, False: 219]
  ------------------
  876|      0|                return SUB_STATE_FINISHED;
  877|       |
  878|      0|            case WORK_FINISHED_STOP:
  ------------------
  |  Branch (878:13): [True: 0, False: 219]
  ------------------
  879|      0|                return SUB_STATE_END_HANDSHAKE;
  880|    219|            }
  881|    219|            if (!get_construct_message_f(s, &confunc, &mt)) {
  ------------------
  |  Branch (881:17): [True: 0, False: 219]
  ------------------
  882|       |                /* SSLfatal() already called */
  883|      0|                return SUB_STATE_ERROR;
  884|      0|            }
  885|    219|            if (mt == SSL3_MT_DUMMY) {
  ------------------
  |  |   41|    219|#define SSL3_MT_DUMMY -1
  ------------------
  |  Branch (885:17): [True: 0, False: 219]
  ------------------
  886|       |                /* Skip construction and sending. This isn't a "real" state */
  887|      0|                st->write_state = WRITE_STATE_POST_WORK;
  888|      0|                st->write_state_work = WORK_MORE_A;
  889|      0|                break;
  890|      0|            }
  891|    219|            if (!WPACKET_init(&pkt, s->init_buf)
  ------------------
  |  Branch (891:17): [True: 0, False: 219]
  ------------------
  892|    219|                || !ssl_set_handshake_header(s, &pkt, mt)) {
  ------------------
  |  | 2178|    219|    SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->set_handshake_header((s), (pkt), (htype))
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  ------------------
  |  Branch (892:20): [True: 0, False: 219]
  ------------------
  893|      0|                WPACKET_cleanup(&pkt);
  894|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  895|      0|                return SUB_STATE_ERROR;
  896|      0|            }
  897|    219|            if (confunc != NULL) {
  ------------------
  |  Branch (897:17): [True: 219, False: 0]
  ------------------
  898|    219|                CON_FUNC_RETURN tmpret;
  899|       |
  900|    219|                tmpret = confunc(s, &pkt);
  901|    219|                if (tmpret == CON_FUNC_ERROR) {
  ------------------
  |  Branch (901:21): [True: 0, False: 219]
  ------------------
  902|      0|                    WPACKET_cleanup(&pkt);
  903|      0|                    check_fatal(s);
  ------------------
  |  |  182|      0|    do {                                                             \
  |  |  183|      0|        if (!ossl_assert((s)->statem.in_init                         \
  |  |  ------------------
  |  |  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   53|      0|    __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  Branch (183:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  184|      0|                && (s)->statem.state == MSG_FLOW_ERROR))             \
  |  |  185|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_MISSING_FATAL); \
  |  |  ------------------
  |  |  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (186:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  904|      0|                    return SUB_STATE_ERROR;
  905|    219|                } else if (tmpret == CON_FUNC_DONT_SEND) {
  ------------------
  |  Branch (905:28): [True: 0, False: 219]
  ------------------
  906|       |                    /*
  907|       |                     * The construction function decided not to construct the
  908|       |                     * message after all and continue. Skip sending.
  909|       |                     */
  910|      0|                    WPACKET_cleanup(&pkt);
  911|      0|                    st->write_state = WRITE_STATE_POST_WORK;
  912|      0|                    st->write_state_work = WORK_MORE_A;
  913|      0|                    break;
  914|      0|                } /* else success */
  915|    219|            }
  916|    219|            if (!ssl_close_construct_packet(s, &pkt, mt)
  ------------------
  |  | 2180|    219|    SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->close_construct_packet((s), (pkt), (htype))
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  ------------------
  |  Branch (916:17): [True: 0, False: 219]
  ------------------
  917|    219|                || !WPACKET_finish(&pkt)) {
  ------------------
  |  Branch (917:20): [True: 0, False: 219]
  ------------------
  918|      0|                WPACKET_cleanup(&pkt);
  919|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  920|      0|                return SUB_STATE_ERROR;
  921|      0|            }
  922|       |
  923|       |            /* Fall through */
  924|       |
  925|    219|        case WRITE_STATE_SEND:
  ------------------
  |  Branch (925:9): [True: 0, False: 657]
  ------------------
  926|    219|            if (SSL_CONNECTION_IS_DTLS(s) && st->use_timer) {
  ------------------
  |  |  258|    438|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  |  Branch (926:46): [True: 0, False: 0]
  ------------------
  927|      0|                dtls1_start_timer(s);
  928|      0|            }
  929|    219|            ret = statem_do_write(s);
  930|    219|            if (ret <= 0) {
  ------------------
  |  Branch (930:17): [True: 0, False: 219]
  ------------------
  931|      0|                return SUB_STATE_ERROR;
  932|      0|            }
  933|    219|            st->write_state = WRITE_STATE_POST_WORK;
  934|    219|            st->write_state_work = WORK_MORE_A;
  935|       |            /* Fall through */
  936|       |
  937|    219|        case WRITE_STATE_POST_WORK:
  ------------------
  |  Branch (937:9): [True: 0, False: 657]
  ------------------
  938|    219|            switch (st->write_state_work = post_work(s, st->write_state_work)) {
  ------------------
  |  Branch (938:21): [True: 219, False: 0]
  ------------------
  939|      0|            case WORK_ERROR:
  ------------------
  |  Branch (939:13): [True: 0, False: 219]
  ------------------
  940|      0|                check_fatal(s);
  ------------------
  |  |  182|      0|    do {                                                             \
  |  |  183|      0|        if (!ossl_assert((s)->statem.in_init                         \
  |  |  ------------------
  |  |  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   53|      0|    __FILE__, __LINE__)
  |  |  ------------------
  |  |  |  Branch (183:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  184|      0|                && (s)->statem.state == MSG_FLOW_ERROR))             \
  |  |  185|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_MISSING_FATAL); \
  |  |  ------------------
  |  |  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (186:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  941|       |                /* Fall through */
  942|      0|            case WORK_MORE_A:
  ------------------
  |  Branch (942:13): [True: 0, False: 219]
  ------------------
  943|      0|            case WORK_MORE_B:
  ------------------
  |  Branch (943:13): [True: 0, False: 219]
  ------------------
  944|      0|            case WORK_MORE_C:
  ------------------
  |  Branch (944:13): [True: 0, False: 219]
  ------------------
  945|      0|                return SUB_STATE_ERROR;
  946|       |
  947|    219|            case WORK_FINISHED_CONTINUE:
  ------------------
  |  Branch (947:13): [True: 219, False: 0]
  ------------------
  948|    219|                st->write_state = WRITE_STATE_TRANSITION;
  949|    219|                break;
  950|       |
  951|      0|            case WORK_FINISHED_SWAP:
  ------------------
  |  Branch (951:13): [True: 0, False: 219]
  ------------------
  952|      0|                return SUB_STATE_FINISHED;
  953|       |
  954|      0|            case WORK_FINISHED_STOP:
  ------------------
  |  Branch (954:13): [True: 0, False: 219]
  ------------------
  955|      0|                return SUB_STATE_END_HANDSHAKE;
  956|    219|            }
  957|    219|            break;
  958|       |
  959|    219|        default:
  ------------------
  |  Branch (959:9): [True: 0, False: 657]
  ------------------
  960|       |            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  961|      0|            return SUB_STATE_ERROR;
  962|    657|        }
  963|    657|    }
  964|    219|}
statem.c:statem_do_write:
  750|    219|{
  751|    219|    OSSL_STATEM *st = &s->statem;
  752|       |
  753|    219|    if (st->hand_state == TLS_ST_CW_CHANGE
  ------------------
  |  Branch (753:9): [True: 0, False: 219]
  ------------------
  754|    219|        || st->hand_state == TLS_ST_SW_CHANGE) {
  ------------------
  |  Branch (754:12): [True: 0, False: 219]
  ------------------
  755|      0|        if (SSL_CONNECTION_IS_DTLS(s))
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  756|      0|            return dtls1_do_write(s, SSL3_RT_CHANGE_CIPHER_SPEC);
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  757|      0|        else
  758|      0|            return ssl3_do_write(s, SSL3_RT_CHANGE_CIPHER_SPEC);
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  759|    219|    } else {
  760|    219|        return ssl_do_write(s);
  ------------------
  |  | 2181|    219|#define ssl_do_write(s) SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->do_write(s)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  ------------------
  761|    219|    }
  762|    219|}
statem.c:init_read_state_machine:
  538|    219|{
  539|    219|    OSSL_STATEM *st = &s->statem;
  540|       |
  541|    219|    st->read_state = READ_STATE_HEADER;
  542|    219|}

ossl_statem_client_write_transition:
  543|    438|{
  544|    438|    OSSL_STATEM *st = &s->statem;
  545|       |
  546|       |    /*
  547|       |     * Note that immediately before/after a ClientHello we don't know what
  548|       |     * version we are going to negotiate yet, so we don't take this branch until
  549|       |     * later
  550|       |     */
  551|    438|    if (SSL_CONNECTION_IS_TLS13(s))
  ------------------
  |  |  265|    438|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|    876|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    438|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|    438|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 438, False: 0]
  |  |  ------------------
  |  |  266|    438|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    438|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    876|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 438, False: 0]
  |  |  ------------------
  |  |  267|    438|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|    438|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|    438|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 438]
  |  |  ------------------
  ------------------
  552|      0|        return ossl_statem_client13_write_transition(s);
  553|       |
  554|    438|    switch (st->hand_state) {
  555|      0|    default:
  ------------------
  |  Branch (555:5): [True: 0, False: 438]
  ------------------
  556|       |        /* Shouldn't happen */
  557|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  558|      0|        return WRITE_TRAN_ERROR;
  559|       |
  560|      0|    case TLS_ST_OK:
  ------------------
  |  Branch (560:5): [True: 0, False: 438]
  ------------------
  561|      0|        if (!s->renegotiate) {
  ------------------
  |  Branch (561:13): [True: 0, False: 0]
  ------------------
  562|       |            /*
  563|       |             * We haven't requested a renegotiation ourselves so we must have
  564|       |             * received a message from the server. Better read it.
  565|       |             */
  566|      0|            return WRITE_TRAN_FINISHED;
  567|      0|        }
  568|       |        /* Renegotiation */
  569|       |        /* fall thru */
  570|    219|    case TLS_ST_BEFORE:
  ------------------
  |  Branch (570:5): [True: 219, False: 219]
  ------------------
  571|    219|        st->hand_state = TLS_ST_CW_CLNT_HELLO;
  572|    219|        return WRITE_TRAN_CONTINUE;
  573|       |
  574|    219|    case TLS_ST_CW_CLNT_HELLO:
  ------------------
  |  Branch (574:5): [True: 219, False: 219]
  ------------------
  575|    219|        if (s->early_data_state == SSL_EARLY_DATA_CONNECTING
  ------------------
  |  Branch (575:13): [True: 0, False: 219]
  ------------------
  576|      0|            && !SSL_IS_QUIC_HANDSHAKE(s)) {
  ------------------
  |  |  303|      0|#define SSL_IS_QUIC_HANDSHAKE(s) (((s)->s3.flags & TLS1_FLAGS_QUIC) != 0)
  |  |  ------------------
  |  |  |  |   29|      0|#define TLS1_FLAGS_QUIC 0x2000
  |  |  ------------------
  ------------------
  |  Branch (576:16): [True: 0, False: 0]
  ------------------
  577|       |            /*
  578|       |             * We are assuming this is a TLSv1.3 connection, although we haven't
  579|       |             * actually selected a version yet.
  580|       |             */
  581|      0|            if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0)
  ------------------
  |  |  403|      0|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  350|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (581:17): [True: 0, False: 0]
  ------------------
  582|      0|                st->hand_state = TLS_ST_CW_CHANGE;
  583|      0|            else
  584|      0|                st->hand_state = TLS_ST_EARLY_DATA;
  585|      0|            return WRITE_TRAN_CONTINUE;
  586|      0|        }
  587|       |        /*
  588|       |         * No transition at the end of writing because we don't know what
  589|       |         * we will be sent
  590|       |         */
  591|    219|        s->ts_msg_write = ossl_time_now();
  592|    219|        return WRITE_TRAN_FINISHED;
  593|       |
  594|      0|    case TLS_ST_CR_SRVR_HELLO:
  ------------------
  |  Branch (594:5): [True: 0, False: 438]
  ------------------
  595|       |        /*
  596|       |         * We only get here in TLSv1.3. We just received an HRR, so issue a
  597|       |         * CCS unless middlebox compat mode is off, or we already issued one
  598|       |         * because we did early data.
  599|       |         */
  600|      0|        if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0
  ------------------
  |  |  403|      0|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  350|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (600:13): [True: 0, False: 0]
  ------------------
  601|      0|            && s->early_data_state != SSL_EARLY_DATA_FINISHED_WRITING)
  ------------------
  |  Branch (601:16): [True: 0, False: 0]
  ------------------
  602|      0|            st->hand_state = TLS_ST_CW_CHANGE;
  603|      0|        else
  604|      0|            st->hand_state = TLS_ST_CW_CLNT_HELLO;
  605|      0|        return WRITE_TRAN_CONTINUE;
  606|       |
  607|      0|    case TLS_ST_EARLY_DATA:
  ------------------
  |  Branch (607:5): [True: 0, False: 438]
  ------------------
  608|      0|        s->ts_msg_write = ossl_time_now();
  609|      0|        return WRITE_TRAN_FINISHED;
  610|       |
  611|      0|    case DTLS_ST_CR_HELLO_VERIFY_REQUEST:
  ------------------
  |  Branch (611:5): [True: 0, False: 438]
  ------------------
  612|      0|        st->hand_state = TLS_ST_CW_CLNT_HELLO;
  613|      0|        return WRITE_TRAN_CONTINUE;
  614|       |
  615|      0|    case TLS_ST_CR_SRVR_DONE:
  ------------------
  |  Branch (615:5): [True: 0, False: 438]
  ------------------
  616|      0|        s->ts_msg_read = ossl_time_now();
  617|      0|        if (s->s3.tmp.cert_req)
  ------------------
  |  Branch (617:13): [True: 0, False: 0]
  ------------------
  618|      0|            st->hand_state = TLS_ST_CW_CERT;
  619|      0|        else
  620|      0|            st->hand_state = TLS_ST_CW_KEY_EXCH;
  621|      0|        return WRITE_TRAN_CONTINUE;
  622|       |
  623|      0|    case TLS_ST_CW_CERT:
  ------------------
  |  Branch (623:5): [True: 0, False: 438]
  ------------------
  624|      0|        st->hand_state = TLS_ST_CW_KEY_EXCH;
  625|      0|        return WRITE_TRAN_CONTINUE;
  626|       |
  627|      0|    case TLS_ST_CW_KEY_EXCH:
  ------------------
  |  Branch (627:5): [True: 0, False: 438]
  ------------------
  628|       |        /*
  629|       |         * For TLS, cert_req is set to 2, so a cert chain of nothing is
  630|       |         * sent, but no verify packet is sent
  631|       |         */
  632|       |        /*
  633|       |         * XXX: For now, we do not support client authentication in ECDH
  634|       |         * cipher suites with ECDH (rather than ECDSA) certificates. We
  635|       |         * need to skip the certificate verify message when client's
  636|       |         * ECDH public key is sent inside the client certificate.
  637|       |         */
  638|      0|        if (s->s3.tmp.cert_req == 1) {
  ------------------
  |  Branch (638:13): [True: 0, False: 0]
  ------------------
  639|      0|            st->hand_state = TLS_ST_CW_CERT_VRFY;
  640|      0|        } else {
  641|      0|            st->hand_state = TLS_ST_CW_CHANGE;
  642|      0|        }
  643|      0|        if (s->s3.flags & TLS1_FLAGS_SKIP_CERT_VERIFY) {
  ------------------
  |  |  293|      0|#define TLS1_FLAGS_SKIP_CERT_VERIFY 0x0010
  ------------------
  |  Branch (643:13): [True: 0, False: 0]
  ------------------
  644|      0|            st->hand_state = TLS_ST_CW_CHANGE;
  645|      0|        }
  646|      0|        return WRITE_TRAN_CONTINUE;
  647|       |
  648|      0|    case TLS_ST_CW_CERT_VRFY:
  ------------------
  |  Branch (648:5): [True: 0, False: 438]
  ------------------
  649|      0|        st->hand_state = TLS_ST_CW_CHANGE;
  650|      0|        return WRITE_TRAN_CONTINUE;
  651|       |
  652|      0|    case TLS_ST_CW_CHANGE:
  ------------------
  |  Branch (652:5): [True: 0, False: 438]
  ------------------
  653|      0|        if (s->hello_retry_request == SSL_HRR_PENDING) {
  ------------------
  |  Branch (653:13): [True: 0, False: 0]
  ------------------
  654|      0|            st->hand_state = TLS_ST_CW_CLNT_HELLO;
  655|      0|        } else if (s->early_data_state == SSL_EARLY_DATA_CONNECTING) {
  ------------------
  |  Branch (655:20): [True: 0, False: 0]
  ------------------
  656|      0|            st->hand_state = TLS_ST_EARLY_DATA;
  657|      0|        } else {
  658|       |#if defined(OPENSSL_NO_NEXTPROTONEG)
  659|       |            st->hand_state = TLS_ST_CW_FINISHED;
  660|       |#else
  661|      0|            if (!SSL_CONNECTION_IS_DTLS(s) && s->s3.npn_seen)
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (661:17): [True: 0, False: 0]
  |  Branch (661:47): [True: 0, False: 0]
  ------------------
  662|      0|                st->hand_state = TLS_ST_CW_NEXT_PROTO;
  663|      0|            else
  664|      0|                st->hand_state = TLS_ST_CW_FINISHED;
  665|      0|#endif
  666|      0|        }
  667|      0|        return WRITE_TRAN_CONTINUE;
  668|       |
  669|      0|#if !defined(OPENSSL_NO_NEXTPROTONEG)
  670|      0|    case TLS_ST_CW_NEXT_PROTO:
  ------------------
  |  Branch (670:5): [True: 0, False: 438]
  ------------------
  671|      0|        st->hand_state = TLS_ST_CW_FINISHED;
  672|      0|        return WRITE_TRAN_CONTINUE;
  673|      0|#endif
  674|       |
  675|      0|    case TLS_ST_CW_FINISHED:
  ------------------
  |  Branch (675:5): [True: 0, False: 438]
  ------------------
  676|      0|        if (s->hit) {
  ------------------
  |  Branch (676:13): [True: 0, False: 0]
  ------------------
  677|      0|            st->hand_state = TLS_ST_OK;
  678|      0|            return WRITE_TRAN_CONTINUE;
  679|      0|        } else {
  680|      0|            return WRITE_TRAN_FINISHED;
  681|      0|        }
  682|       |
  683|      0|    case TLS_ST_CR_FINISHED:
  ------------------
  |  Branch (683:5): [True: 0, False: 438]
  ------------------
  684|      0|        if (s->hit) {
  ------------------
  |  Branch (684:13): [True: 0, False: 0]
  ------------------
  685|      0|            st->hand_state = TLS_ST_CW_CHANGE;
  686|      0|            return WRITE_TRAN_CONTINUE;
  687|      0|        } else {
  688|      0|            st->hand_state = TLS_ST_OK;
  689|      0|            return WRITE_TRAN_CONTINUE;
  690|      0|        }
  691|       |
  692|      0|    case TLS_ST_CR_HELLO_REQ:
  ------------------
  |  Branch (692:5): [True: 0, False: 438]
  ------------------
  693|       |        /*
  694|       |         * If we can renegotiate now then do so, otherwise wait for a more
  695|       |         * convenient time.
  696|       |         */
  697|      0|        if (ssl3_renegotiate_check(SSL_CONNECTION_GET_SSL(s), 1)) {
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  |  Branch (697:13): [True: 0, False: 0]
  ------------------
  698|      0|            if (!tls_setup_handshake(s)) {
  ------------------
  |  Branch (698:17): [True: 0, False: 0]
  ------------------
  699|       |                /* SSLfatal() already called */
  700|      0|                return WRITE_TRAN_ERROR;
  701|      0|            }
  702|      0|            st->hand_state = TLS_ST_CW_CLNT_HELLO;
  703|      0|            return WRITE_TRAN_CONTINUE;
  704|      0|        }
  705|      0|        st->hand_state = TLS_ST_OK;
  706|      0|        return WRITE_TRAN_CONTINUE;
  707|    438|    }
  708|    438|}
ossl_statem_client_pre_work:
  715|    219|{
  716|    219|    OSSL_STATEM *st = &s->statem;
  717|       |
  718|    219|    switch (st->hand_state) {
  719|      0|    default:
  ------------------
  |  Branch (719:5): [True: 0, False: 219]
  ------------------
  720|       |        /* No pre work to be done */
  721|      0|        break;
  722|       |
  723|    219|    case TLS_ST_CW_CLNT_HELLO:
  ------------------
  |  Branch (723:5): [True: 219, False: 0]
  ------------------
  724|    219|        s->shutdown = 0;
  725|    219|        if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  726|       |            /* every DTLS ClientHello resets Finished MAC */
  727|      0|            if (!ssl3_init_finished_mac(s)) {
  ------------------
  |  Branch (727:17): [True: 0, False: 0]
  ------------------
  728|       |                /* SSLfatal() already called */
  729|      0|                return WORK_ERROR;
  730|      0|            }
  731|    219|        } else if (s->ext.early_data == SSL_EARLY_DATA_REJECTED) {
  ------------------
  |  | 2036|    219|#define SSL_EARLY_DATA_REJECTED 1
  ------------------
  |  Branch (731:20): [True: 0, False: 219]
  ------------------
  732|       |            /*
  733|       |             * This must be a second ClientHello after an HRR following an
  734|       |             * earlier rejected attempt to send early data. Since we were
  735|       |             * previously encrypting the early data we now need to reset the
  736|       |             * write record layer in order to write in plaintext again.
  737|       |             */
  738|      0|            if (!ssl_set_new_record_layer(s,
  ------------------
  |  Branch (738:17): [True: 0, False: 0]
  ------------------
  739|      0|                    TLS_ANY_VERSION,
  ------------------
  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  ------------------
  740|      0|                    OSSL_RECORD_DIRECTION_WRITE,
  ------------------
  |  |   43|      0|#define OSSL_RECORD_DIRECTION_WRITE 1
  ------------------
  741|      0|                    OSSL_RECORD_PROTECTION_LEVEL_NONE,
  ------------------
  |  | 2932|      0|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  742|      0|                    NULL, 0, NULL, 0, NULL, 0, NULL, 0,
  743|      0|                    NULL, 0, NID_undef, NULL, NULL,
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  744|      0|                    NULL)) {
  745|       |                /* SSLfatal already called */
  746|      0|                return WORK_ERROR;
  747|      0|            }
  748|      0|        }
  749|    219|        break;
  750|       |
  751|    219|    case TLS_ST_CW_CHANGE:
  ------------------
  |  Branch (751:5): [True: 0, False: 219]
  ------------------
  752|      0|        if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  753|      0|            if (s->hit) {
  ------------------
  |  Branch (753:17): [True: 0, False: 0]
  ------------------
  754|       |                /*
  755|       |                 * We're into the last flight so we don't retransmit these
  756|       |                 * messages unless we need to.
  757|       |                 */
  758|      0|                st->use_timer = 0;
  759|      0|            }
  760|       |#ifndef OPENSSL_NO_SCTP
  761|       |            if (BIO_dgram_is_sctp(SSL_get_wbio(SSL_CONNECTION_GET_SSL(s)))) {
  762|       |                /* Calls SSLfatal() as required */
  763|       |                return dtls_wait_for_dry(s);
  764|       |            }
  765|       |#endif
  766|      0|        }
  767|      0|        break;
  768|       |
  769|      0|    case TLS_ST_PENDING_EARLY_DATA_END:
  ------------------
  |  Branch (769:5): [True: 0, False: 219]
  ------------------
  770|       |        /*
  771|       |         * If we've been called by SSL_do_handshake()/SSL_write(), or we did not
  772|       |         * attempt to write early data before calling SSL_read() then we press
  773|       |         * on with the handshake. Otherwise we pause here.
  774|       |         */
  775|      0|        if (s->early_data_state == SSL_EARLY_DATA_FINISHED_WRITING
  ------------------
  |  Branch (775:13): [True: 0, False: 0]
  ------------------
  776|      0|            || s->early_data_state == SSL_EARLY_DATA_NONE)
  ------------------
  |  Branch (776:16): [True: 0, False: 0]
  ------------------
  777|      0|            return WORK_FINISHED_CONTINUE;
  778|       |        /* Fall through */
  779|       |
  780|      0|    case TLS_ST_EARLY_DATA:
  ------------------
  |  Branch (780:5): [True: 0, False: 219]
  ------------------
  781|      0|        return tls_finish_handshake(s, wst, 0, 1);
  782|       |
  783|      0|    case TLS_ST_OK:
  ------------------
  |  Branch (783:5): [True: 0, False: 219]
  ------------------
  784|       |        /* Calls SSLfatal() as required */
  785|      0|        return tls_finish_handshake(s, wst, 1, 1);
  786|    219|    }
  787|       |
  788|    219|    return WORK_FINISHED_CONTINUE;
  789|    219|}
ossl_statem_client_post_work:
  796|    219|{
  797|    219|    OSSL_STATEM *st = &s->statem;
  798|    219|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  799|       |
  800|    219|    s->init_num = 0;
  801|       |
  802|    219|    switch (st->hand_state) {
  803|      0|    default:
  ------------------
  |  Branch (803:5): [True: 0, False: 219]
  ------------------
  804|       |        /* No post work to be done */
  805|      0|        break;
  806|       |
  807|    219|    case TLS_ST_CW_CLNT_HELLO:
  ------------------
  |  Branch (807:5): [True: 219, False: 0]
  ------------------
  808|    219|        if (s->early_data_state == SSL_EARLY_DATA_CONNECTING
  ------------------
  |  Branch (808:13): [True: 0, False: 219]
  ------------------
  809|      0|            && s->max_early_data > 0) {
  ------------------
  |  Branch (809:16): [True: 0, False: 0]
  ------------------
  810|       |            /*
  811|       |             * We haven't selected TLSv1.3 yet so we don't call the change
  812|       |             * cipher state function associated with the SSL_METHOD. Instead
  813|       |             * we call tls13_change_cipher_state() directly.
  814|       |             */
  815|      0|            if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) == 0) {
  ------------------
  |  |  403|      0|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  350|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (815:17): [True: 0, False: 0]
  ------------------
  816|      0|                if (!tls13_change_cipher_state(s,
  ------------------
  |  Branch (816:21): [True: 0, False: 0]
  ------------------
  817|      0|                        SSL3_CC_EARLY | SSL3_CHANGE_CIPHER_CLIENT_WRITE)) {
  ------------------
  |  |  346|      0|#define SSL3_CC_EARLY 0x040
  ------------------
                                      SSL3_CC_EARLY | SSL3_CHANGE_CIPHER_CLIENT_WRITE)) {
  ------------------
  |  |  349|      0|#define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
  |  |  ------------------
  |  |  |  |  344|      0|#define SSL3_CC_CLIENT 0x010
  |  |  ------------------
  |  |               #define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
  |  |  ------------------
  |  |  |  |  343|      0|#define SSL3_CC_WRITE 0x002
  |  |  ------------------
  ------------------
  818|       |                    /* SSLfatal() already called */
  819|      0|                    return WORK_ERROR;
  820|      0|                }
  821|      0|            }
  822|       |            /* else we're in compat mode so we delay flushing until after CCS */
  823|    219|        } else if (!statem_flush(s)) {
  ------------------
  |  Branch (823:20): [True: 0, False: 219]
  ------------------
  824|      0|            return WORK_MORE_A;
  825|      0|        }
  826|       |
  827|    219|        if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  828|       |            /* Treat the next message as the first packet */
  829|      0|            s->first_packet = 1;
  830|      0|        }
  831|    219|        break;
  832|       |
  833|      0|    case TLS_ST_CW_KEY_EXCH:
  ------------------
  |  Branch (833:5): [True: 0, False: 219]
  ------------------
  834|      0|        if (tls_client_key_exchange_post_work(s) == 0) {
  ------------------
  |  Branch (834:13): [True: 0, False: 0]
  ------------------
  835|       |            /* SSLfatal() already called */
  836|      0|            return WORK_ERROR;
  837|      0|        }
  838|      0|        break;
  839|       |
  840|      0|    case TLS_ST_CW_CHANGE:
  ------------------
  |  Branch (840:5): [True: 0, False: 219]
  ------------------
  841|      0|        if (SSL_CONNECTION_IS_TLS13(s)
  ------------------
  |  |  265|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  266|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  267|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  842|      0|            || s->hello_retry_request == SSL_HRR_PENDING)
  ------------------
  |  Branch (842:16): [True: 0, False: 0]
  ------------------
  843|      0|            break;
  844|      0|        if (s->early_data_state == SSL_EARLY_DATA_CONNECTING
  ------------------
  |  Branch (844:13): [True: 0, False: 0]
  ------------------
  845|      0|            && s->max_early_data > 0) {
  ------------------
  |  Branch (845:16): [True: 0, False: 0]
  ------------------
  846|       |            /*
  847|       |             * We haven't selected TLSv1.3 yet so we don't call the change
  848|       |             * cipher state function associated with the SSL_METHOD. Instead
  849|       |             * we call tls13_change_cipher_state() directly.
  850|       |             */
  851|      0|            if (!tls13_change_cipher_state(s,
  ------------------
  |  Branch (851:17): [True: 0, False: 0]
  ------------------
  852|      0|                    SSL3_CC_EARLY | SSL3_CHANGE_CIPHER_CLIENT_WRITE))
  ------------------
  |  |  346|      0|#define SSL3_CC_EARLY 0x040
  ------------------
                                  SSL3_CC_EARLY | SSL3_CHANGE_CIPHER_CLIENT_WRITE))
  ------------------
  |  |  349|      0|#define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
  |  |  ------------------
  |  |  |  |  344|      0|#define SSL3_CC_CLIENT 0x010
  |  |  ------------------
  |  |               #define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
  |  |  ------------------
  |  |  |  |  343|      0|#define SSL3_CC_WRITE 0x002
  |  |  ------------------
  ------------------
  853|      0|                return WORK_ERROR;
  854|      0|            break;
  855|      0|        }
  856|      0|        s->session->cipher = s->s3.tmp.new_cipher;
  857|       |#ifdef OPENSSL_NO_COMP
  858|       |        s->session->compress_meth = 0;
  859|       |#else
  860|      0|        if (s->s3.tmp.new_compression == NULL)
  ------------------
  |  Branch (860:13): [True: 0, False: 0]
  ------------------
  861|      0|            s->session->compress_meth = 0;
  862|      0|        else
  863|      0|            s->session->compress_meth = s->s3.tmp.new_compression->id;
  864|      0|#endif
  865|      0|        if (!ssl->method->ssl3_enc->setup_key_block(s)) {
  ------------------
  |  Branch (865:13): [True: 0, False: 0]
  ------------------
  866|       |            /* SSLfatal() already called */
  867|      0|            return WORK_ERROR;
  868|      0|        }
  869|       |
  870|      0|        if (!ssl->method->ssl3_enc->change_cipher_state(s,
  ------------------
  |  Branch (870:13): [True: 0, False: 0]
  ------------------
  871|      0|                SSL3_CHANGE_CIPHER_CLIENT_WRITE)) {
  ------------------
  |  |  349|      0|#define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
  |  |  ------------------
  |  |  |  |  344|      0|#define SSL3_CC_CLIENT 0x010
  |  |  ------------------
  |  |               #define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
  |  |  ------------------
  |  |  |  |  343|      0|#define SSL3_CC_WRITE 0x002
  |  |  ------------------
  ------------------
  872|       |            /* SSLfatal() already called */
  873|      0|            return WORK_ERROR;
  874|      0|        }
  875|       |
  876|       |#ifndef OPENSSL_NO_SCTP
  877|       |        if (SSL_CONNECTION_IS_DTLS(s) && s->hit) {
  878|       |            /*
  879|       |             * Change to new shared key of SCTP-Auth, will be ignored if
  880|       |             * no SCTP used.
  881|       |             */
  882|       |            BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY,
  883|       |                0, NULL);
  884|       |        }
  885|       |#endif
  886|      0|        break;
  887|       |
  888|      0|    case TLS_ST_CW_FINISHED:
  ------------------
  |  Branch (888:5): [True: 0, False: 219]
  ------------------
  889|       |#ifndef OPENSSL_NO_SCTP
  890|       |        if (wst == WORK_MORE_A && SSL_CONNECTION_IS_DTLS(s) && s->hit == 0) {
  891|       |            /*
  892|       |             * Change to new shared key of SCTP-Auth, will be ignored if
  893|       |             * no SCTP used.
  894|       |             */
  895|       |            BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY,
  896|       |                0, NULL);
  897|       |        }
  898|       |#endif
  899|      0|        if (statem_flush(s) != 1)
  ------------------
  |  Branch (899:13): [True: 0, False: 0]
  ------------------
  900|      0|            return WORK_MORE_B;
  901|       |
  902|      0|        if (SSL_CONNECTION_IS_TLS13(s)) {
  ------------------
  |  |  265|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  266|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  267|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  903|      0|            if (!tls13_save_handshake_digest_for_pha(s)) {
  ------------------
  |  Branch (903:17): [True: 0, False: 0]
  ------------------
  904|       |                /* SSLfatal() already called */
  905|      0|                return WORK_ERROR;
  906|      0|            }
  907|      0|            if (s->post_handshake_auth != SSL_PHA_REQUESTED) {
  ------------------
  |  Branch (907:17): [True: 0, False: 0]
  ------------------
  908|      0|                if (!ssl->method->ssl3_enc->change_cipher_state(s,
  ------------------
  |  Branch (908:21): [True: 0, False: 0]
  ------------------
  909|      0|                        SSL3_CC_APPLICATION | SSL3_CHANGE_CIPHER_CLIENT_WRITE)) {
  ------------------
  |  |  348|      0|#define SSL3_CC_APPLICATION 0x100
  ------------------
                                      SSL3_CC_APPLICATION | SSL3_CHANGE_CIPHER_CLIENT_WRITE)) {
  ------------------
  |  |  349|      0|#define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
  |  |  ------------------
  |  |  |  |  344|      0|#define SSL3_CC_CLIENT 0x010
  |  |  ------------------
  |  |               #define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
  |  |  ------------------
  |  |  |  |  343|      0|#define SSL3_CC_WRITE 0x002
  |  |  ------------------
  ------------------
  910|       |                    /* SSLfatal() already called */
  911|      0|                    return WORK_ERROR;
  912|      0|                }
  913|       |                /*
  914|       |                 * For QUIC we deferred setting up these keys until now so
  915|       |                 * that we can ensure write keys are always set up before read
  916|       |                 * keys.
  917|       |                 */
  918|      0|                if (SSL_IS_QUIC_HANDSHAKE(s)
  ------------------
  |  |  303|      0|#define SSL_IS_QUIC_HANDSHAKE(s) (((s)->s3.flags & TLS1_FLAGS_QUIC) != 0)
  |  |  ------------------
  |  |  |  |   29|      0|#define TLS1_FLAGS_QUIC 0x2000
  |  |  ------------------
  |  |  |  Branch (303:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  919|      0|                    && !ssl->method->ssl3_enc->change_cipher_state(s,
  ------------------
  |  Branch (919:24): [True: 0, False: 0]
  ------------------
  920|      0|                        SSL3_CC_APPLICATION | SSL3_CHANGE_CIPHER_CLIENT_READ)) {
  ------------------
  |  |  348|      0|#define SSL3_CC_APPLICATION 0x100
  ------------------
                                      SSL3_CC_APPLICATION | SSL3_CHANGE_CIPHER_CLIENT_READ)) {
  ------------------
  |  |  351|      0|#define SSL3_CHANGE_CIPHER_CLIENT_READ (SSL3_CC_CLIENT | SSL3_CC_READ)
  |  |  ------------------
  |  |  |  |  344|      0|#define SSL3_CC_CLIENT 0x010
  |  |  ------------------
  |  |               #define SSL3_CHANGE_CIPHER_CLIENT_READ (SSL3_CC_CLIENT | SSL3_CC_READ)
  |  |  ------------------
  |  |  |  |  342|      0|#define SSL3_CC_READ 0x001
  |  |  ------------------
  ------------------
  921|       |                    /* SSLfatal() already called */
  922|      0|                    return WORK_ERROR;
  923|      0|                }
  924|      0|            }
  925|      0|        }
  926|      0|        break;
  927|       |
  928|      0|    case TLS_ST_CW_KEY_UPDATE:
  ------------------
  |  Branch (928:5): [True: 0, False: 219]
  ------------------
  929|      0|        if (statem_flush(s) != 1)
  ------------------
  |  Branch (929:13): [True: 0, False: 0]
  ------------------
  930|      0|            return WORK_MORE_A;
  931|      0|        if (!tls13_update_key(s, 1)) {
  ------------------
  |  Branch (931:13): [True: 0, False: 0]
  ------------------
  932|       |            /* SSLfatal() already called */
  933|      0|            return WORK_ERROR;
  934|      0|        }
  935|      0|        break;
  936|    219|    }
  937|       |
  938|    219|    return WORK_FINISHED_CONTINUE;
  939|    219|}
ossl_statem_client_construct_message:
  951|    219|{
  952|    219|    OSSL_STATEM *st = &s->statem;
  953|       |
  954|    219|    switch (st->hand_state) {
  955|      0|    default:
  ------------------
  |  Branch (955:5): [True: 0, False: 219]
  ------------------
  956|       |        /* Shouldn't happen */
  957|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_HANDSHAKE_STATE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  958|      0|        return 0;
  959|       |
  960|      0|    case TLS_ST_CW_CHANGE:
  ------------------
  |  Branch (960:5): [True: 0, False: 219]
  ------------------
  961|      0|        if (SSL_CONNECTION_IS_DTLS(s))
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  962|      0|            *confunc = dtls_construct_change_cipher_spec;
  963|      0|        else
  964|      0|            *confunc = tls_construct_change_cipher_spec;
  965|      0|        *mt = SSL3_MT_CHANGE_CIPHER_SPEC;
  ------------------
  |  |  337|      0|#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
  ------------------
  966|      0|        break;
  967|       |
  968|    219|    case TLS_ST_CW_CLNT_HELLO:
  ------------------
  |  Branch (968:5): [True: 219, False: 0]
  ------------------
  969|    219|        *confunc = tls_construct_client_hello;
  970|    219|        *mt = SSL3_MT_CLIENT_HELLO;
  ------------------
  |  |  313|    219|#define SSL3_MT_CLIENT_HELLO 1
  ------------------
  971|    219|        break;
  972|       |
  973|      0|    case TLS_ST_CW_END_OF_EARLY_DATA:
  ------------------
  |  Branch (973:5): [True: 0, False: 219]
  ------------------
  974|      0|        *confunc = tls_construct_end_of_early_data;
  975|      0|        *mt = SSL3_MT_END_OF_EARLY_DATA;
  ------------------
  |  |  316|      0|#define SSL3_MT_END_OF_EARLY_DATA 5
  ------------------
  976|      0|        break;
  977|       |
  978|      0|    case TLS_ST_PENDING_EARLY_DATA_END:
  ------------------
  |  Branch (978:5): [True: 0, False: 219]
  ------------------
  979|      0|        *confunc = NULL;
  980|      0|        *mt = SSL3_MT_DUMMY;
  ------------------
  |  |   41|      0|#define SSL3_MT_DUMMY -1
  ------------------
  981|      0|        break;
  982|       |
  983|      0|    case TLS_ST_CW_CERT:
  ------------------
  |  Branch (983:5): [True: 0, False: 219]
  ------------------
  984|      0|        *confunc = tls_construct_client_certificate;
  985|      0|        *mt = SSL3_MT_CERTIFICATE;
  ------------------
  |  |  318|      0|#define SSL3_MT_CERTIFICATE 11
  ------------------
  986|      0|        break;
  987|       |
  988|       |#ifndef OPENSSL_NO_COMP_ALG
  989|       |    case TLS_ST_CW_COMP_CERT:
  990|       |        *confunc = tls_construct_client_compressed_certificate;
  991|       |        *mt = SSL3_MT_COMPRESSED_CERTIFICATE;
  992|       |        break;
  993|       |#endif
  994|       |
  995|      0|    case TLS_ST_CW_KEY_EXCH:
  ------------------
  |  Branch (995:5): [True: 0, False: 219]
  ------------------
  996|      0|        *confunc = tls_construct_client_key_exchange;
  997|      0|        *mt = SSL3_MT_CLIENT_KEY_EXCHANGE;
  ------------------
  |  |  323|      0|#define SSL3_MT_CLIENT_KEY_EXCHANGE 16
  ------------------
  998|      0|        break;
  999|       |
 1000|      0|    case TLS_ST_CW_CERT_VRFY:
  ------------------
  |  Branch (1000:5): [True: 0, False: 219]
  ------------------
 1001|      0|        *confunc = tls_construct_cert_verify;
 1002|      0|        *mt = SSL3_MT_CERTIFICATE_VERIFY;
  ------------------
  |  |  322|      0|#define SSL3_MT_CERTIFICATE_VERIFY 15
  ------------------
 1003|      0|        break;
 1004|       |
 1005|      0|#if !defined(OPENSSL_NO_NEXTPROTONEG)
 1006|      0|    case TLS_ST_CW_NEXT_PROTO:
  ------------------
  |  Branch (1006:5): [True: 0, False: 219]
  ------------------
 1007|      0|        *confunc = tls_construct_next_proto;
 1008|      0|        *mt = SSL3_MT_NEXT_PROTO;
  ------------------
  |  |  331|      0|#define SSL3_MT_NEXT_PROTO 67
  ------------------
 1009|      0|        break;
 1010|      0|#endif
 1011|      0|    case TLS_ST_CW_FINISHED:
  ------------------
  |  Branch (1011:5): [True: 0, False: 219]
  ------------------
 1012|      0|        *confunc = tls_construct_finished;
 1013|      0|        *mt = SSL3_MT_FINISHED;
  ------------------
  |  |  324|      0|#define SSL3_MT_FINISHED 20
  ------------------
 1014|      0|        break;
 1015|       |
 1016|      0|    case TLS_ST_CW_KEY_UPDATE:
  ------------------
  |  Branch (1016:5): [True: 0, False: 219]
  ------------------
 1017|      0|        *confunc = tls_construct_key_update;
 1018|      0|        *mt = SSL3_MT_KEY_UPDATE;
  ------------------
  |  |  328|      0|#define SSL3_MT_KEY_UPDATE 24
  ------------------
 1019|      0|        break;
 1020|    219|    }
 1021|       |
 1022|    219|    return 1;
 1023|    219|}
tls_construct_client_hello:
 1177|    219|{
 1178|    219|    unsigned char *p;
 1179|    219|    size_t sess_id_len;
 1180|    219|    int i, protverr;
 1181|    219|#ifndef OPENSSL_NO_COMP
 1182|    219|    SSL_COMP *comp;
 1183|    219|#endif
 1184|    219|    SSL_SESSION *sess = s->session;
 1185|    219|    unsigned char *session_id;
 1186|    219|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    219|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 1187|       |
 1188|       |    /* Work out what SSL/TLS/DTLS version to use */
 1189|    219|    protverr = ssl_set_client_hello_version(s);
 1190|    219|    if (protverr != 0) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 219]
  ------------------
 1191|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, protverr);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1192|      0|        return CON_FUNC_ERROR;
 1193|      0|    }
 1194|       |
 1195|    219|    if (sess == NULL
  ------------------
  |  Branch (1195:9): [True: 219, False: 0]
  ------------------
 1196|      0|        || !ssl_version_supported(s, sess->ssl_version, NULL)
  ------------------
  |  Branch (1196:12): [True: 0, False: 0]
  ------------------
 1197|    219|        || !SSL_SESSION_is_resumable(sess)) {
  ------------------
  |  Branch (1197:12): [True: 0, False: 0]
  ------------------
 1198|    219|        if (s->hello_retry_request == SSL_HRR_NONE
  ------------------
  |  Branch (1198:13): [True: 219, False: 0]
  ------------------
 1199|    219|            && !ssl_get_new_session(s, 0)) {
  ------------------
  |  Branch (1199:16): [True: 0, False: 219]
  ------------------
 1200|       |            /* SSLfatal() already called */
 1201|      0|            return CON_FUNC_ERROR;
 1202|      0|        }
 1203|    219|    }
 1204|       |    /* else use the pre-loaded session */
 1205|       |
 1206|    219|    p = s->s3.client_random;
 1207|       |
 1208|       |    /*
 1209|       |     * for DTLS if client_random is initialized, reuse it, we are
 1210|       |     * required to use same upon reply to HelloVerify
 1211|       |     */
 1212|    219|    if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 1213|      0|        size_t idx;
 1214|      0|        i = 1;
 1215|      0|        for (idx = 0; idx < sizeof(s->s3.client_random); idx++) {
  ------------------
  |  Branch (1215:23): [True: 0, False: 0]
  ------------------
 1216|      0|            if (p[idx]) {
  ------------------
  |  Branch (1216:17): [True: 0, False: 0]
  ------------------
 1217|      0|                i = 0;
 1218|      0|                break;
 1219|      0|            }
 1220|      0|        }
 1221|    219|    } else {
 1222|    219|        i = (s->hello_retry_request == SSL_HRR_NONE);
 1223|    219|    }
 1224|       |
 1225|    219|    if (i && ssl_fill_hello_random(s, 0, p, sizeof(s->s3.client_random), DOWNGRADE_NONE) <= 0) {
  ------------------
  |  Branch (1225:9): [True: 219, False: 0]
  |  Branch (1225:14): [True: 0, False: 219]
  ------------------
 1226|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1227|      0|        return CON_FUNC_ERROR;
 1228|      0|    }
 1229|       |
 1230|       |    /*-
 1231|       |     * version indicates the negotiated version: for example from
 1232|       |     * an SSLv2/v3 compatible client hello). The client_version
 1233|       |     * field is the maximum version we permit and it is also
 1234|       |     * used in RSA encrypted premaster secrets. Some servers can
 1235|       |     * choke if we initially report a higher version then
 1236|       |     * renegotiate to a lower one in the premaster secret. This
 1237|       |     * didn't happen with TLS 1.0 as most servers supported it
 1238|       |     * but it can with TLS 1.1 or later if the server only supports
 1239|       |     * 1.0.
 1240|       |     *
 1241|       |     * Possible scenario with previous logic:
 1242|       |     *      1. Client hello indicates TLS 1.2
 1243|       |     *      2. Server hello says TLS 1.0
 1244|       |     *      3. RSA encrypted premaster secret uses 1.2.
 1245|       |     *      4. Handshake proceeds using TLS 1.0.
 1246|       |     *      5. Server sends hello request to renegotiate.
 1247|       |     *      6. Client hello indicates TLS v1.0 as we now
 1248|       |     *         know that is maximum server supports.
 1249|       |     *      7. Server chokes on RSA encrypted premaster secret
 1250|       |     *         containing version 1.0.
 1251|       |     *
 1252|       |     * For interoperability it should be OK to always use the
 1253|       |     * maximum version we support in client hello and then rely
 1254|       |     * on the checking of version to ensure the servers isn't
 1255|       |     * being inconsistent: for example initially negotiating with
 1256|       |     * TLS 1.0 and renegotiating with TLS 1.2. We do this by using
 1257|       |     * client_version in client hello and not resetting it to
 1258|       |     * the negotiated version.
 1259|       |     *
 1260|       |     * For TLS 1.3 we always set the ClientHello version to 1.2 and rely on the
 1261|       |     * supported_versions extension for the real supported versions.
 1262|       |     */
 1263|    219|    if (!WPACKET_put_bytes_u16(pkt, s->client_version)
  ------------------
  |  |  891|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1263:9): [True: 0, False: 219]
  ------------------
 1264|    219|        || !WPACKET_memcpy(pkt, s->s3.client_random, SSL3_RANDOM_SIZE)) {
  ------------------
  |  |  137|    219|#define SSL3_RANDOM_SIZE 32
  ------------------
  |  Branch (1264:12): [True: 0, False: 219]
  ------------------
 1265|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1266|      0|        return CON_FUNC_ERROR;
 1267|      0|    }
 1268|       |
 1269|       |    /* Session ID */
 1270|    219|    session_id = s->session->session_id;
 1271|    219|    if (s->new_session || s->session->ssl_version == TLS1_3_VERSION) {
  ------------------
  |  |   27|    219|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1271:9): [True: 0, False: 219]
  |  Branch (1271:27): [True: 219, False: 0]
  ------------------
 1272|    219|        if (s->version == TLS1_3_VERSION
  ------------------
  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1272:13): [True: 219, False: 0]
  ------------------
 1273|    219|            && (s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0) {
  ------------------
  |  |  403|    219|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1273:16): [True: 219, False: 0]
  ------------------
 1274|    219|            sess_id_len = sizeof(s->tmp_session_id);
 1275|    219|            s->tmp_session_id_len = sess_id_len;
 1276|    219|            session_id = s->tmp_session_id;
 1277|    219|            if (s->hello_retry_request == SSL_HRR_NONE
  ------------------
  |  Branch (1277:17): [True: 219, False: 0]
  ------------------
 1278|    219|                && RAND_bytes_ex(sctx->libctx, s->tmp_session_id,
  ------------------
  |  Branch (1278:20): [True: 0, False: 219]
  ------------------
 1279|    219|                       sess_id_len, 0)
 1280|    219|                    <= 0) {
 1281|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1282|      0|                return CON_FUNC_ERROR;
 1283|      0|            }
 1284|    219|        } else {
 1285|      0|            sess_id_len = 0;
 1286|      0|        }
 1287|    219|    } else {
 1288|      0|        assert(s->session->session_id_length <= sizeof(s->session->session_id));
  ------------------
  |  Branch (1288:9): [True: 0, False: 0]
  |  Branch (1288:9): [True: 0, False: 0]
  ------------------
 1289|      0|        sess_id_len = s->session->session_id_length;
 1290|      0|        if (s->version == TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1290:13): [True: 0, False: 0]
  ------------------
 1291|      0|            s->tmp_session_id_len = sess_id_len;
 1292|      0|            memcpy(s->tmp_session_id, s->session->session_id, sess_id_len);
 1293|      0|        }
 1294|      0|    }
 1295|    219|    if (!WPACKET_start_sub_packet_u8(pkt)
  ------------------
  |  |  790|    438|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (1295:9): [True: 0, False: 219]
  ------------------
 1296|    219|        || (sess_id_len != 0 && !WPACKET_memcpy(pkt, session_id, sess_id_len))
  ------------------
  |  Branch (1296:13): [True: 219, False: 0]
  |  Branch (1296:33): [True: 0, False: 219]
  ------------------
 1297|    219|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (1297:12): [True: 0, False: 219]
  ------------------
 1298|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1299|      0|        return CON_FUNC_ERROR;
 1300|      0|    }
 1301|       |
 1302|       |    /* cookie stuff for DTLS */
 1303|    219|    if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 1304|      0|        if (s->d1->cookie_len > sizeof(s->d1->cookie)
  ------------------
  |  Branch (1304:13): [True: 0, False: 0]
  ------------------
 1305|      0|            || !WPACKET_sub_memcpy_u8(pkt, s->d1->cookie,
  ------------------
  |  |  918|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (1305:16): [True: 0, False: 0]
  ------------------
 1306|      0|                s->d1->cookie_len)) {
 1307|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1308|      0|            return CON_FUNC_ERROR;
 1309|      0|        }
 1310|      0|    }
 1311|       |
 1312|       |    /* Ciphers supported */
 1313|    219|    if (!WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  792|    219|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1313:9): [True: 0, False: 219]
  ------------------
 1314|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1315|      0|        return CON_FUNC_ERROR;
 1316|      0|    }
 1317|       |
 1318|    219|    if (!ssl_cipher_list_to_bytes(s, SSL_get_ciphers(SSL_CONNECTION_GET_SSL(s)),
  ------------------
  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  |  Branch (1318:9): [True: 0, False: 219]
  ------------------
 1319|    219|            pkt)) {
 1320|       |        /* SSLfatal() already called */
 1321|      0|        return CON_FUNC_ERROR;
 1322|      0|    }
 1323|    219|    if (!WPACKET_close(pkt)) {
  ------------------
  |  Branch (1323:9): [True: 0, False: 219]
  ------------------
 1324|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1325|      0|        return CON_FUNC_ERROR;
 1326|      0|    }
 1327|       |
 1328|       |    /* COMPRESSION */
 1329|    219|    if (!WPACKET_start_sub_packet_u8(pkt)) {
  ------------------
  |  |  790|    219|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (1329:9): [True: 0, False: 219]
  ------------------
 1330|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1331|      0|        return CON_FUNC_ERROR;
 1332|      0|    }
 1333|    219|#ifndef OPENSSL_NO_COMP
 1334|    219|    if (ssl_allow_compression(s)
  ------------------
  |  Branch (1334:9): [True: 0, False: 219]
  ------------------
 1335|      0|        && sctx->comp_methods
  ------------------
  |  Branch (1335:12): [True: 0, False: 0]
  ------------------
 1336|      0|        && (SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1337|      0|            || s->s3.tmp.max_ver < TLS1_3_VERSION)) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1337:16): [True: 0, False: 0]
  ------------------
 1338|      0|        int compnum = sk_SSL_COMP_num(sctx->comp_methods);
  ------------------
  |  |   70|      0|#define sk_SSL_COMP_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_COMP_sk_type(sk))
  ------------------
 1339|      0|        for (i = 0; i < compnum; i++) {
  ------------------
  |  Branch (1339:21): [True: 0, False: 0]
  ------------------
 1340|      0|            comp = sk_SSL_COMP_value(sctx->comp_methods, i);
  ------------------
  |  |   71|      0|#define sk_SSL_COMP_value(sk, idx) ((SSL_COMP *)OPENSSL_sk_value(ossl_check_const_SSL_COMP_sk_type(sk), (idx)))
  ------------------
 1341|      0|            if (!WPACKET_put_bytes_u8(pkt, comp->id)) {
  ------------------
  |  |  889|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (1341:17): [True: 0, False: 0]
  ------------------
 1342|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1343|      0|                return CON_FUNC_ERROR;
 1344|      0|            }
 1345|      0|        }
 1346|      0|    }
 1347|    219|#endif
 1348|       |    /* Add the NULL method */
 1349|    219|    if (!WPACKET_put_bytes_u8(pkt, 0) || !WPACKET_close(pkt)) {
  ------------------
  |  |  889|    438|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (1349:9): [True: 0, False: 219]
  |  Branch (1349:42): [True: 0, False: 219]
  ------------------
 1350|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1351|      0|        return CON_FUNC_ERROR;
 1352|      0|    }
 1353|       |
 1354|       |    /* TLS extensions */
 1355|    219|    if (!tls_construct_extensions(s, pkt, SSL_EXT_CLIENT_HELLO, NULL, 0)) {
  ------------------
  |  |  299|    219|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (1355:9): [True: 0, False: 219]
  ------------------
 1356|       |        /* SSLfatal() already called */
 1357|      0|        return CON_FUNC_ERROR;
 1358|      0|    }
 1359|       |
 1360|    219|    return CON_FUNC_SUCCESS;
 1361|    219|}
statem_clnt.c:ssl_cipher_list_to_bytes:
 4152|    219|{
 4153|    219|    int i;
 4154|    219|    size_t totlen = 0, len, maxlen, maxverok = 0;
 4155|    219|    int empty_reneg_info_scsv = !s->renegotiate
  ------------------
  |  Branch (4155:33): [True: 219, False: 0]
  ------------------
 4156|    219|        && !SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|    438|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (4156:12): [True: 219, False: 0]
  ------------------
 4157|    219|        && ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL)
  ------------------
  |  | 2766|    219|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|    219|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
                      && ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL)
  ------------------
  |  |   24|    219|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (4157:12): [True: 0, False: 219]
  ------------------
 4158|      0|        && s->min_proto_version <= TLS1_VERSION;
  ------------------
  |  |   24|      0|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (4158:12): [True: 0, False: 0]
  ------------------
 4159|    219|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 4160|       |
 4161|       |    /* Set disabled masks for this session */
 4162|    219|    if (!ssl_set_client_disabled(s)) {
  ------------------
  |  Branch (4162:9): [True: 0, False: 219]
  ------------------
 4163|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_PROTOCOLS_AVAILABLE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 4164|      0|        return 0;
 4165|      0|    }
 4166|       |
 4167|    219|    if (sk == NULL) {
  ------------------
  |  Branch (4167:9): [True: 0, False: 219]
  ------------------
 4168|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 4169|      0|        return 0;
 4170|      0|    }
 4171|       |
 4172|       |#ifdef OPENSSL_MAX_TLS1_2_CIPHER_LENGTH
 4173|       |#if OPENSSL_MAX_TLS1_2_CIPHER_LENGTH < 6
 4174|       |#error Max cipher length too short
 4175|       |#endif
 4176|       |    /*
 4177|       |     * Some servers hang if client hello > 256 bytes as hack workaround
 4178|       |     * chop number of supported ciphers to keep it well below this if we
 4179|       |     * use TLS v1.2
 4180|       |     */
 4181|       |    if (TLS1_get_version(ssl) >= TLS1_2_VERSION)
 4182|       |        maxlen = OPENSSL_MAX_TLS1_2_CIPHER_LENGTH & ~1;
 4183|       |    else
 4184|       |#endif
 4185|       |        /* Maximum length that can be stored in 2 bytes. Length must be even */
 4186|    219|        maxlen = 0xfffe;
 4187|       |
 4188|    219|    if (empty_reneg_info_scsv)
  ------------------
  |  Branch (4188:9): [True: 0, False: 219]
  ------------------
 4189|      0|        maxlen -= 2;
 4190|    219|    if (s->mode & SSL_MODE_SEND_FALLBACK_SCSV)
  ------------------
  |  |  531|    219|#define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080U
  ------------------
  |  Branch (4190:9): [True: 0, False: 219]
  ------------------
 4191|      0|        maxlen -= 2;
 4192|       |
 4193|  13.3k|    for (i = 0; i < sk_SSL_CIPHER_num(sk) && totlen < maxlen; i++) {
  ------------------
  |  | 1005|  26.7k|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (4193:17): [True: 13.1k, False: 219]
  |  Branch (4193:46): [True: 13.1k, False: 0]
  ------------------
 4194|  13.1k|        const SSL_CIPHER *c;
 4195|       |
 4196|  13.1k|        c = sk_SSL_CIPHER_value(sk, i);
  ------------------
  |  | 1006|  13.1k|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
 4197|       |        /* Skip disabled ciphers */
 4198|  13.1k|        if (ssl_cipher_disabled(s, c, SSL_SECOP_CIPHER_SUPPORTED, 0))
  ------------------
  |  | 2752|  13.1k|#define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2738|  13.1k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (4198:13): [True: 6.57k, False: 6.57k]
  ------------------
 4199|  6.57k|            continue;
 4200|       |
 4201|  6.57k|        if (!ssl->method->put_cipher_by_char(c, pkt, &len)) {
  ------------------
  |  Branch (4201:13): [True: 0, False: 6.57k]
  ------------------
 4202|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 4203|      0|            return 0;
 4204|      0|        }
 4205|       |
 4206|       |        /* Sanity check that the maximum version we offer has ciphers enabled */
 4207|  6.57k|        if (!maxverok) {
  ------------------
  |  Branch (4207:13): [True: 219, False: 6.35k]
  ------------------
 4208|    219|            int minproto = SSL_CONNECTION_IS_DTLS(s) ? c->min_dtls : c->min_tls;
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 4209|    219|            int maxproto = SSL_CONNECTION_IS_DTLS(s) ? c->max_dtls : c->max_tls;
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 4210|       |
 4211|    219|            if (ssl_version_cmp(s, maxproto, s->s3.tmp.max_ver) >= 0
  ------------------
  |  Branch (4211:17): [True: 219, False: 0]
  ------------------
 4212|    219|                && ssl_version_cmp(s, minproto, s->s3.tmp.max_ver) <= 0)
  ------------------
  |  Branch (4212:20): [True: 219, False: 0]
  ------------------
 4213|    219|                maxverok = 1;
 4214|    219|        }
 4215|       |
 4216|  6.57k|        totlen += len;
 4217|  6.57k|    }
 4218|       |
 4219|    219|    if (totlen == 0 || !maxverok) {
  ------------------
  |  Branch (4219:9): [True: 0, False: 219]
  |  Branch (4219:24): [True: 0, False: 219]
  ------------------
 4220|      0|        const char *maxvertext = !maxverok
  ------------------
  |  Branch (4220:34): [True: 0, False: 0]
  ------------------
 4221|      0|            ? "No ciphers enabled for max supported SSL/TLS version"
 4222|      0|            : NULL;
 4223|       |
 4224|      0|        SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_CIPHERS_AVAILABLE,
  ------------------
  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  152|      0|        ossl_statem_fatal)
  ------------------
                      SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_CIPHERS_AVAILABLE,
  ------------------
  |  | 1243|      0|#define SSL_AD_INTERNAL_ERROR TLS1_AD_INTERNAL_ERROR
  |  |  ------------------
  |  |  |  |   66|      0|#define TLS1_AD_INTERNAL_ERROR 80 /* fatal */
  |  |  ------------------
  ------------------
                      SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_CIPHERS_AVAILABLE,
  ------------------
  |  |  195|      0|#define SSL_R_NO_CIPHERS_AVAILABLE 181
  ------------------
 4225|      0|            maxvertext);
 4226|      0|        return 0;
 4227|      0|    }
 4228|       |
 4229|    219|    if (totlen != 0) {
  ------------------
  |  Branch (4229:9): [True: 219, False: 0]
  ------------------
 4230|    219|        if (empty_reneg_info_scsv) {
  ------------------
  |  Branch (4230:13): [True: 0, False: 219]
  ------------------
 4231|      0|            static const SSL_CIPHER scsv = {
 4232|      0|                0, NULL, NULL, SSL3_CK_SCSV, 0, 0, 0, 0, 0, 0, 0, 0, 0
  ------------------
  |  |   33|      0|#define SSL3_CK_SCSV 0x030000FF
  ------------------
 4233|      0|            };
 4234|      0|            if (!ssl->method->put_cipher_by_char(&scsv, pkt, &len)) {
  ------------------
  |  Branch (4234:17): [True: 0, False: 0]
  ------------------
 4235|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 4236|      0|                return 0;
 4237|      0|            }
 4238|      0|        }
 4239|    219|        if (s->mode & SSL_MODE_SEND_FALLBACK_SCSV) {
  ------------------
  |  |  531|    219|#define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080U
  ------------------
  |  Branch (4239:13): [True: 0, False: 219]
  ------------------
 4240|      0|            static const SSL_CIPHER scsv = {
 4241|      0|                0, NULL, NULL, SSL3_CK_FALLBACK_SCSV, 0, 0, 0, 0, 0, 0, 0, 0, 0
  ------------------
  |  |   39|      0|#define SSL3_CK_FALLBACK_SCSV 0x03005600
  ------------------
 4242|      0|            };
 4243|      0|            if (!ssl->method->put_cipher_by_char(&scsv, pkt, &len)) {
  ------------------
  |  Branch (4243:17): [True: 0, False: 0]
  ------------------
 4244|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 4245|      0|                return 0;
 4246|      0|            }
 4247|      0|        }
 4248|    219|    }
 4249|       |
 4250|    219|    return 1;
 4251|    219|}

ssl3_do_write:
   63|    219|{
   64|    219|    int ret;
   65|    219|    size_t written = 0;
   66|    219|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
   67|    219|    SSL *ussl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|    219|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
   68|       |
   69|       |    /*
   70|       |     * If we're running the test suite then we may need to mutate the message
   71|       |     * we've been asked to write. Does not happen in normal operation.
   72|       |     */
   73|    219|    if (s->statem.mutate_handshake_cb != NULL
  ------------------
  |  Branch (73:9): [True: 0, False: 219]
  ------------------
   74|      0|        && !s->statem.write_in_progress
  ------------------
  |  Branch (74:12): [True: 0, False: 0]
  ------------------
   75|      0|        && type == SSL3_RT_HANDSHAKE
  ------------------
  |  |  221|    219|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (75:12): [True: 0, False: 0]
  ------------------
   76|      0|        && s->init_num >= SSL3_HM_HEADER_LENGTH) {
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (76:12): [True: 0, False: 0]
  ------------------
   77|      0|        unsigned char *msg;
   78|      0|        size_t msglen;
   79|       |
   80|      0|        if (!s->statem.mutate_handshake_cb((unsigned char *)s->init_buf->data,
  ------------------
  |  Branch (80:13): [True: 0, False: 0]
  ------------------
   81|      0|                s->init_num,
   82|      0|                &msg, &msglen,
   83|      0|                s->statem.mutatearg))
   84|      0|            return -1;
   85|      0|        if (msglen < SSL3_HM_HEADER_LENGTH
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (85:13): [True: 0, False: 0]
  ------------------
   86|      0|            || !BUF_MEM_grow(s->init_buf, msglen))
  ------------------
  |  Branch (86:16): [True: 0, False: 0]
  ------------------
   87|      0|            return -1;
   88|      0|        memcpy(s->init_buf->data, msg, msglen);
   89|      0|        s->init_num = msglen;
   90|      0|        s->init_msg = s->init_buf->data + SSL3_HM_HEADER_LENGTH;
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
   91|      0|        s->statem.finish_mutate_handshake_cb(s->statem.mutatearg);
   92|      0|        s->statem.write_in_progress = 1;
   93|      0|    }
   94|       |
   95|    219|    ret = ssl3_write_bytes(ssl, type, &s->init_buf->data[s->init_off],
   96|    219|        s->init_num, &written);
   97|    219|    if (ret <= 0)
  ------------------
  |  Branch (97:9): [True: 0, False: 219]
  ------------------
   98|      0|        return -1;
   99|    219|    if (type == SSL3_RT_HANDSHAKE)
  ------------------
  |  |  221|    219|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (99:9): [True: 219, False: 0]
  ------------------
  100|       |        /*
  101|       |         * should not be done for 'Hello Request's, but in that case we'll
  102|       |         * ignore the result anyway
  103|       |         * TLS1.3 KeyUpdate and NewSessionTicket do not need to be added
  104|       |         */
  105|    219|        if (!SSL_CONNECTION_IS_TLS13(s)
  ------------------
  |  |  265|    438|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|    438|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 219, False: 0]
  |  |  ------------------
  |  |  266|    219|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 219, False: 0]
  |  |  ------------------
  |  |  267|    438|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|    219|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  106|      0|            || (s->statem.hand_state != TLS_ST_SW_SESSION_TICKET
  ------------------
  |  Branch (106:17): [True: 0, False: 0]
  ------------------
  107|      0|                && s->statem.hand_state != TLS_ST_CW_KEY_UPDATE
  ------------------
  |  Branch (107:20): [True: 0, False: 0]
  ------------------
  108|      0|                && s->statem.hand_state != TLS_ST_SW_KEY_UPDATE))
  ------------------
  |  Branch (108:20): [True: 0, False: 0]
  ------------------
  109|    219|            if (!ssl3_finish_mac(s,
  ------------------
  |  Branch (109:17): [True: 0, False: 219]
  ------------------
  110|    219|                    (unsigned char *)&s->init_buf->data[s->init_off],
  111|    219|                    written))
  112|      0|                return -1;
  113|    219|    if (written == s->init_num) {
  ------------------
  |  Branch (113:9): [True: 219, False: 0]
  ------------------
  114|    219|        s->statem.write_in_progress = 0;
  115|    219|        if (s->msg_callback)
  ------------------
  |  Branch (115:13): [True: 0, False: 219]
  ------------------
  116|      0|            s->msg_callback(1, s->version, type, s->init_buf->data,
  117|      0|                (size_t)(s->init_off + s->init_num), ussl,
  118|      0|                s->msg_callback_arg);
  119|    219|        return 1;
  120|    219|    }
  121|      0|    s->init_off += written;
  122|      0|    s->init_num -= written;
  123|      0|    return 0;
  124|    219|}
tls_close_construct_packet:
  127|    219|{
  128|    219|    size_t msglen;
  129|       |
  130|    219|    if ((htype != SSL3_MT_CHANGE_CIPHER_SPEC && !WPACKET_close(pkt))
  ------------------
  |  |  337|    438|#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
  ------------------
  |  Branch (130:10): [True: 219, False: 0]
  |  Branch (130:49): [True: 0, False: 219]
  ------------------
  131|    219|        || !WPACKET_get_length(pkt, &msglen)
  ------------------
  |  Branch (131:12): [True: 0, False: 219]
  ------------------
  132|    219|        || msglen > INT_MAX)
  ------------------
  |  Branch (132:12): [True: 0, False: 219]
  ------------------
  133|      0|        return 0;
  134|    219|    s->init_num = (int)msglen;
  135|    219|    s->init_off = 0;
  136|       |
  137|    219|    return 1;
  138|    219|}
tls_setup_handshake:
  141|    219|{
  142|    219|    int ver_min, ver_max, ok;
  143|    219|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  144|    219|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    219|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  145|       |
  146|    219|    if (!ssl3_init_finished_mac(s)) {
  ------------------
  |  Branch (146:9): [True: 0, False: 219]
  ------------------
  147|       |        /* SSLfatal() already called */
  148|      0|        return 0;
  149|      0|    }
  150|       |
  151|       |    /* Reset any extension flags */
  152|    219|    memset(s->ext.extflags, 0, sizeof(s->ext.extflags));
  153|       |
  154|    219|    if (ssl_get_min_max_version(s, &ver_min, &ver_max, NULL) != 0) {
  ------------------
  |  Branch (154:9): [True: 0, False: 219]
  ------------------
  155|      0|        SSLfatal(s, SSL_AD_PROTOCOL_VERSION, SSL_R_NO_PROTOCOLS_AVAILABLE);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  156|      0|        return 0;
  157|      0|    }
  158|       |
  159|       |    /* Sanity check that we have MD5-SHA1 if we need it */
  160|    219|    if (sctx->ssl_digest_methods[SSL_MD_MD5_SHA1_IDX] == NULL) {
  ------------------
  |  |  196|    219|#define SSL_MD_MD5_SHA1_IDX 9
  ------------------
  |  Branch (160:9): [True: 0, False: 219]
  ------------------
  161|      0|        int negotiated_minversion;
  162|      0|        int md5sha1_needed_maxversion = SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  163|      0|            ? DTLS1_VERSION
  ------------------
  |  |   28|      0|#define DTLS1_VERSION 0xFEFF
  ------------------
  164|      0|            : TLS1_1_VERSION;
  ------------------
  |  |   25|      0|#define TLS1_1_VERSION 0x0302
  ------------------
  165|       |
  166|       |        /* We don't have MD5-SHA1 - do we need it? */
  167|      0|        if (ssl_version_cmp(s, ver_max, md5sha1_needed_maxversion) <= 0) {
  ------------------
  |  Branch (167:13): [True: 0, False: 0]
  ------------------
  168|      0|            SSLfatal_data(s, SSL_AD_HANDSHAKE_FAILURE,
  ------------------
  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  152|      0|        ossl_statem_fatal)
  ------------------
                          SSLfatal_data(s, SSL_AD_HANDSHAKE_FAILURE,
  ------------------
  |  | 1219|      0|#define SSL_AD_HANDSHAKE_FAILURE SSL3_AD_HANDSHAKE_FAILURE
  |  |  ------------------
  |  |  |  |  256|      0|#define SSL3_AD_HANDSHAKE_FAILURE 40 /* fatal */
  |  |  ------------------
  ------------------
  169|      0|                SSL_R_NO_SUITABLE_DIGEST_ALGORITHM,
  ------------------
  |  |  213|      0|#define SSL_R_NO_SUITABLE_DIGEST_ALGORITHM 297
  ------------------
  170|      0|                "The max supported SSL/TLS version needs the"
  171|      0|                " MD5-SHA1 digest but it is not available"
  172|      0|                " in the loaded providers. Use (D)TLSv1.2 or"
  173|      0|                " above, or load different providers");
  174|      0|            return 0;
  175|      0|        }
  176|       |
  177|      0|        ok = 1;
  178|       |
  179|       |        /* Don't allow TLSv1.1 or below to be negotiated */
  180|      0|        negotiated_minversion = SSL_CONNECTION_IS_DTLS(s) ? DTLS1_2_VERSION : TLS1_2_VERSION;
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                      negotiated_minversion = SSL_CONNECTION_IS_DTLS(s) ? DTLS1_2_VERSION : TLS1_2_VERSION;
  ------------------
  |  |   29|      0|#define DTLS1_2_VERSION 0xFEFD
  ------------------
                      negotiated_minversion = SSL_CONNECTION_IS_DTLS(s) ? DTLS1_2_VERSION : TLS1_2_VERSION;
  ------------------
  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  ------------------
  181|      0|        if (ssl_version_cmp(s, ver_min, negotiated_minversion) < 0)
  ------------------
  |  Branch (181:13): [True: 0, False: 0]
  ------------------
  182|      0|            ok = SSL_set_min_proto_version(ssl, negotiated_minversion);
  ------------------
  |  | 1565|      0|    SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)
  |  |  ------------------
  |  |  |  | 1377|      0|#define SSL_CTRL_SET_MIN_PROTO_VERSION 123
  |  |  ------------------
  ------------------
  183|      0|        if (!ok) {
  ------------------
  |  Branch (183:13): [True: 0, False: 0]
  ------------------
  184|       |            /* Shouldn't happen */
  185|      0|            SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  186|      0|            return 0;
  187|      0|        }
  188|      0|    }
  189|       |
  190|    219|    ok = 0;
  191|    219|    if (s->server) {
  ------------------
  |  Branch (191:9): [True: 0, False: 219]
  ------------------
  192|      0|        STACK_OF(SSL_CIPHER) *ciphers = SSL_get_ciphers(ssl);
  ------------------
  |  |   33|      0|#define STACK_OF(type) struct stack_st_##type
  ------------------
  193|      0|        int i;
  194|       |
  195|       |        /*
  196|       |         * Sanity check that the maximum version we accept has ciphers
  197|       |         * enabled. For clients we do this check during construction of the
  198|       |         * ClientHello.
  199|       |         */
  200|      0|        for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) {
  ------------------
  |  | 1005|      0|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (200:21): [True: 0, False: 0]
  ------------------
  201|      0|            const SSL_CIPHER *c = sk_SSL_CIPHER_value(ciphers, i);
  ------------------
  |  | 1006|      0|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
  202|      0|            int cipher_minprotover = SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  203|      0|                ? c->min_dtls
  204|      0|                : c->min_tls;
  205|      0|            int cipher_maxprotover = SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  206|      0|                ? c->max_dtls
  207|      0|                : c->max_tls;
  208|       |
  209|      0|            if (ssl_version_cmp(s, ver_max, cipher_minprotover) >= 0
  ------------------
  |  Branch (209:17): [True: 0, False: 0]
  ------------------
  210|      0|                && ssl_version_cmp(s, ver_max, cipher_maxprotover) <= 0) {
  ------------------
  |  Branch (210:20): [True: 0, False: 0]
  ------------------
  211|      0|                ok = 1;
  212|      0|                break;
  213|      0|            }
  214|      0|        }
  215|      0|        if (!ok) {
  ------------------
  |  Branch (215:13): [True: 0, False: 0]
  ------------------
  216|      0|            SSLfatal_data(s, SSL_AD_HANDSHAKE_FAILURE,
  ------------------
  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  152|      0|        ossl_statem_fatal)
  ------------------
                          SSLfatal_data(s, SSL_AD_HANDSHAKE_FAILURE,
  ------------------
  |  | 1219|      0|#define SSL_AD_HANDSHAKE_FAILURE SSL3_AD_HANDSHAKE_FAILURE
  |  |  ------------------
  |  |  |  |  256|      0|#define SSL3_AD_HANDSHAKE_FAILURE 40 /* fatal */
  |  |  ------------------
  ------------------
  217|      0|                SSL_R_NO_CIPHERS_AVAILABLE,
  ------------------
  |  |  195|      0|#define SSL_R_NO_CIPHERS_AVAILABLE 181
  ------------------
  218|      0|                "No ciphers enabled for max supported "
  219|      0|                "SSL/TLS version");
  220|      0|            return 0;
  221|      0|        }
  222|      0|        if (SSL_IS_FIRST_HANDSHAKE(s)) {
  ------------------
  |  |  277|      0|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 0, False: 0]
  |  |  ------------------
  |  |  278|      0|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  223|       |            /* N.B. s->session_ctx == s->ctx here */
  224|      0|            ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_accept);
  225|      0|        } else {
  226|       |            /* N.B. s->ctx may not equal s->session_ctx */
  227|      0|            ssl_tsan_counter(sctx, &sctx->stats.sess_accept_renegotiate);
  228|       |
  229|      0|            s->s3.tmp.cert_request = 0;
  230|      0|        }
  231|    219|    } else {
  232|    219|        if (SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  277|    219|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 219, False: 0]
  |  |  ------------------
  |  |  278|    219|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  233|    219|            ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_connect);
  234|      0|        else
  235|      0|            ssl_tsan_counter(s->session_ctx,
  236|      0|                &s->session_ctx->stats.sess_connect_renegotiate);
  237|       |
  238|       |        /* mark client_random uninitialized */
  239|    219|        memset(s->s3.client_random, 0, sizeof(s->s3.client_random));
  240|    219|        s->hit = 0;
  241|       |
  242|    219|        s->s3.tmp.cert_req = 0;
  243|       |
  244|    219|        if (SSL_CONNECTION_IS_DTLS(s))
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
  245|      0|            s->statem.use_timer = 1;
  246|    219|    }
  247|       |
  248|    219|    return 1;
  249|    219|}
tls_get_message_header:
 1554|  4.13k|{
 1555|       |    /* s->init_num < SSL3_HM_HEADER_LENGTH */
 1556|  4.13k|    int skip_message, i;
 1557|  4.13k|    uint8_t recvd_type;
 1558|  4.13k|    unsigned char *p;
 1559|  4.13k|    size_t l, readbytes;
 1560|  4.13k|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|  4.13k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 1561|  4.13k|    SSL *ussl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|  4.13k|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
 1562|       |
 1563|  4.13k|    p = (unsigned char *)s->init_buf->data;
 1564|       |
 1565|  4.13k|    do {
 1566|  4.13k|        while (s->init_num < SSL3_HM_HEADER_LENGTH) {
  ------------------
  |  |  141|  4.13k|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (1566:16): [True: 4.13k, False: 0]
  ------------------
 1567|  4.13k|            i = ssl->method->ssl_read_bytes(ssl, SSL3_RT_HANDSHAKE, &recvd_type,
  ------------------
  |  |  221|  4.13k|#define SSL3_RT_HANDSHAKE 22
  ------------------
 1568|  4.13k|                &p[s->init_num],
 1569|  4.13k|                SSL3_HM_HEADER_LENGTH - s->init_num,
  ------------------
  |  |  141|  4.13k|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
 1570|  4.13k|                0, &readbytes);
 1571|  4.13k|            if (i <= 0) {
  ------------------
  |  Branch (1571:17): [True: 4.13k, False: 0]
  ------------------
 1572|  4.13k|                s->rwstate = SSL_READING;
  ------------------
  |  |  934|  4.13k|#define SSL_READING 3
  ------------------
 1573|  4.13k|                return 0;
 1574|  4.13k|            }
 1575|      0|            if (recvd_type == SSL3_RT_CHANGE_CIPHER_SPEC) {
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  |  Branch (1575:17): [True: 0, False: 0]
  ------------------
 1576|       |                /*
 1577|       |                 * A ChangeCipherSpec must be a single byte and may not occur
 1578|       |                 * in the middle of a handshake message.
 1579|       |                 */
 1580|      0|                if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) {
  ------------------
  |  |  339|      0|#define SSL3_MT_CCS 1
  ------------------
  |  Branch (1580:21): [True: 0, False: 0]
  |  Branch (1580:41): [True: 0, False: 0]
  |  Branch (1580:59): [True: 0, False: 0]
  ------------------
 1581|      0|                    SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1582|      0|                        SSL_R_BAD_CHANGE_CIPHER_SPEC);
 1583|      0|                    return 0;
 1584|      0|                }
 1585|      0|                if (s->statem.hand_state == TLS_ST_BEFORE
  ------------------
  |  Branch (1585:21): [True: 0, False: 0]
  ------------------
 1586|      0|                    && (s->s3.flags & TLS1_FLAGS_STATELESS) != 0) {
  ------------------
  |  |  304|      0|#define TLS1_FLAGS_STATELESS 0x0800
  ------------------
  |  Branch (1586:24): [True: 0, False: 0]
  ------------------
 1587|       |                    /*
 1588|       |                     * We are stateless and we received a CCS. Probably this is
 1589|       |                     * from a client between the first and second ClientHellos.
 1590|       |                     * We should ignore this, but return an error because we do
 1591|       |                     * not return success until we see the second ClientHello
 1592|       |                     * with a valid cookie.
 1593|       |                     */
 1594|      0|                    return 0;
 1595|      0|                }
 1596|      0|                s->s3.tmp.message_type = *mt = SSL3_MT_CHANGE_CIPHER_SPEC;
  ------------------
  |  |  337|      0|#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
  ------------------
 1597|      0|                s->init_num = readbytes - 1;
 1598|      0|                s->init_msg = s->init_buf->data;
 1599|      0|                s->s3.tmp.message_size = readbytes;
 1600|      0|                return 1;
 1601|      0|            } else if (recvd_type != SSL3_RT_HANDSHAKE) {
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (1601:24): [True: 0, False: 0]
  ------------------
 1602|      0|                SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1603|      0|                    SSL_R_CCS_RECEIVED_EARLY);
 1604|      0|                return 0;
 1605|      0|            }
 1606|      0|            s->init_num += readbytes;
 1607|      0|        }
 1608|       |
 1609|      0|        skip_message = 0;
 1610|      0|        if (!s->server)
  ------------------
  |  Branch (1610:13): [True: 0, False: 0]
  ------------------
 1611|      0|            if (s->statem.hand_state != TLS_ST_OK
  ------------------
  |  Branch (1611:17): [True: 0, False: 0]
  ------------------
 1612|      0|                && p[0] == SSL3_MT_HELLO_REQUEST)
  ------------------
  |  |  312|      0|#define SSL3_MT_HELLO_REQUEST 0
  ------------------
  |  Branch (1612:20): [True: 0, False: 0]
  ------------------
 1613|       |                /*
 1614|       |                 * The server may always send 'Hello Request' messages --
 1615|       |                 * we are doing a handshake anyway now, so ignore them if
 1616|       |                 * their format is correct. Does not count for 'Finished'
 1617|       |                 * MAC.
 1618|       |                 */
 1619|      0|                if (p[1] == 0 && p[2] == 0 && p[3] == 0) {
  ------------------
  |  Branch (1619:21): [True: 0, False: 0]
  |  Branch (1619:34): [True: 0, False: 0]
  |  Branch (1619:47): [True: 0, False: 0]
  ------------------
 1620|      0|                    s->init_num = 0;
 1621|      0|                    skip_message = 1;
 1622|       |
 1623|      0|                    if (s->msg_callback)
  ------------------
  |  Branch (1623:25): [True: 0, False: 0]
  ------------------
 1624|      0|                        s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE,
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
 1625|      0|                            p, SSL3_HM_HEADER_LENGTH, ussl,
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
 1626|      0|                            s->msg_callback_arg);
 1627|      0|                }
 1628|      0|    } while (skip_message);
  ------------------
  |  Branch (1628:14): [True: 0, False: 0]
  ------------------
 1629|       |    /* s->init_num == SSL3_HM_HEADER_LENGTH */
 1630|       |
 1631|      0|    *mt = *p;
 1632|      0|    s->s3.tmp.message_type = *(p++);
 1633|       |
 1634|      0|    if (RECORD_LAYER_is_sslv2_record(&s->rlayer)) {
  ------------------
  |  Branch (1634:9): [True: 0, False: 0]
  ------------------
 1635|       |        /*
 1636|       |         * Only happens with SSLv3+ in an SSLv2 backward compatible
 1637|       |         * ClientHello
 1638|       |         *
 1639|       |         * Total message size is the remaining record bytes to read
 1640|       |         * plus the SSL3_HM_HEADER_LENGTH bytes that we already read
 1641|       |         */
 1642|      0|        l = s->rlayer.tlsrecs[0].length + SSL3_HM_HEADER_LENGTH;
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
 1643|      0|        s->s3.tmp.message_size = l;
 1644|       |
 1645|      0|        s->init_msg = s->init_buf->data;
 1646|      0|        s->init_num = SSL3_HM_HEADER_LENGTH;
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
 1647|      0|    } else {
 1648|      0|        n2l3(p, l);
  ------------------
  |  |  196|      0|#define n2l3(c, l) ((l = (((unsigned long)((c)[0])) << 16) | (((unsigned long)((c)[1])) << 8) | (((unsigned long)((c)[2])))), (c) += 3)
  ------------------
 1649|       |        /* BUF_MEM_grow takes an 'int' parameter */
 1650|      0|        if (l > (INT_MAX - SSL3_HM_HEADER_LENGTH)) {
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (1650:13): [True: 0, False: 0]
  ------------------
 1651|      0|            SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER,
  ------------------
  |  |  148|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  150|      0|    (ERR_new(),                                                  \
  |  |  |  |  151|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  152|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1652|      0|                SSL_R_EXCESSIVE_MESSAGE_SIZE);
 1653|      0|            return 0;
 1654|      0|        }
 1655|      0|        s->s3.tmp.message_size = l;
 1656|       |
 1657|      0|        s->init_msg = s->init_buf->data + SSL3_HM_HEADER_LENGTH;
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
 1658|      0|        s->init_num = 0;
 1659|      0|    }
 1660|       |
 1661|      0|    return 1;
 1662|      0|}
ssl_allow_compression:
 1806|    219|{
 1807|    219|    if (s->options & SSL_OP_NO_COMPRESSION)
  ------------------
  |  |  394|    219|#define SSL_OP_NO_COMPRESSION SSL_OP_BIT(17)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1807:9): [True: 219, False: 0]
  ------------------
 1808|    219|        return 0;
 1809|      0|    return ssl_security(s, SSL_SECOP_COMPRESSION, 0, 0, NULL);
  ------------------
  |  | 2778|      0|#define SSL_SECOP_COMPRESSION (15 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
 1810|    219|}
ssl_version_cmp:
 1821|  55.4k|{
 1822|  55.4k|    int dtls = SSL_CONNECTION_IS_DTLS(s);
  ------------------
  |  |  258|  55.4k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  55.4k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  55.4k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
 1823|       |
 1824|  55.4k|    if (versiona == versionb)
  ------------------
  |  Branch (1824:9): [True: 25.4k, False: 30.0k]
  ------------------
 1825|  25.4k|        return 0;
 1826|  30.0k|    if (!dtls)
  ------------------
  |  Branch (1826:9): [True: 30.0k, False: 0]
  ------------------
 1827|  30.0k|        return versiona < versionb ? -1 : 1;
  ------------------
  |  Branch (1827:16): [True: 23.6k, False: 6.35k]
  ------------------
 1828|      0|    return DTLS_VERSION_LT(versiona, versionb) ? -1 : 1;
  ------------------
  |  |   60|      0|#define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (60:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1829|  30.0k|}
ssl_set_version_bound:
 2080|    440|{
 2081|    440|    int valid_tls;
 2082|    440|    int valid_dtls;
 2083|       |
 2084|    440|    if (version == 0) {
  ------------------
  |  Branch (2084:9): [True: 220, False: 220]
  ------------------
 2085|    220|        *bound = version;
 2086|    220|        return 1;
 2087|    220|    }
 2088|       |
 2089|    220|    valid_tls = version >= SSL3_VERSION && version <= TLS_MAX_VERSION_INTERNAL;
  ------------------
  |  |   23|    440|#define SSL3_VERSION 0x0300
  ------------------
                  valid_tls = version >= SSL3_VERSION && version <= TLS_MAX_VERSION_INTERNAL;
  ------------------
  |  |   50|    220|#define TLS_MAX_VERSION_INTERNAL TLS1_3_VERSION
  |  |  ------------------
  |  |  |  |   27|    440|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  ------------------
  |  Branch (2089:17): [True: 220, False: 0]
  |  Branch (2089:44): [True: 220, False: 0]
  ------------------
 2090|    220|    valid_dtls =
 2091|       |        /* We support client side pre-standardisation version of DTLS */
 2092|    220|        (version == DTLS1_BAD_VER)
  ------------------
  |  |   30|    220|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (2092:9): [True: 0, False: 220]
  ------------------
 2093|    220|        || (DTLS_VERSION_LE(version, DTLS_MAX_VERSION_INTERNAL)
  ------------------
  |  |   61|    440|#define DTLS_VERSION_LE(v1, v2) (dtls_ver_ordinal(v1) >= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|    220|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|    220|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LE(v1, v2) (dtls_ver_ordinal(v1) >= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|    220|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|    220|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [Folded, False: 220]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (61:33): [True: 0, False: 220]
  |  |  ------------------
  ------------------
 2094|      0|            && DTLS_VERSION_GE(version, DTLS1_VERSION));
  ------------------
  |  |   59|      0|#define DTLS_VERSION_GE(v1, v2) (dtls_ver_ordinal(v1) <= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_GE(v1, v2) (dtls_ver_ordinal(v1) <= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   57|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (57:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (59:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2095|       |
 2096|    220|    if (!valid_tls && !valid_dtls)
  ------------------
  |  Branch (2096:9): [True: 0, False: 220]
  |  Branch (2096:23): [True: 0, False: 0]
  ------------------
 2097|      0|        return 0;
 2098|       |
 2099|       |    /*-
 2100|       |     * Restrict TLS methods to TLS protocol versions.
 2101|       |     * Restrict DTLS methods to DTLS protocol versions.
 2102|       |     * Note, DTLS version numbers are decreasing, use comparison macros.
 2103|       |     *
 2104|       |     * Note that for both lower-bounds we use explicit versions, not
 2105|       |     * (D)TLS_MIN_VERSION.  This is because we don't want to break user
 2106|       |     * configurations.  If the MIN (supported) version ever rises, the user's
 2107|       |     * "floor" remains valid even if no longer available.  We don't expect the
 2108|       |     * MAX ceiling to ever get lower, so making that variable makes sense.
 2109|       |     *
 2110|       |     * We ignore attempts to set bounds on version-inflexible methods,
 2111|       |     * returning success.
 2112|       |     */
 2113|    220|    switch (method_version) {
 2114|      0|    default:
  ------------------
  |  Branch (2114:5): [True: 0, False: 220]
  ------------------
 2115|      0|        break;
 2116|       |
 2117|    220|    case TLS_ANY_VERSION:
  ------------------
  |  |   40|    220|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (2117:5): [True: 220, False: 0]
  ------------------
 2118|    220|        if (valid_tls)
  ------------------
  |  Branch (2118:13): [True: 220, False: 0]
  ------------------
 2119|    220|            *bound = version;
 2120|    220|        break;
 2121|       |
 2122|      0|    case DTLS_ANY_VERSION:
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
  |  Branch (2122:5): [True: 0, False: 220]
  ------------------
 2123|      0|        if (valid_dtls)
  ------------------
  |  Branch (2123:13): [True: 0, False: 0]
  ------------------
 2124|      0|            *bound = version;
 2125|      0|        break;
 2126|    220|    }
 2127|    220|    return 1;
 2128|    220|}
ssl_get_min_max_version:
 2455|  1.97k|{
 2456|  1.97k|    int version, tmp_real_max;
 2457|  1.97k|    int hole;
 2458|  1.97k|    const SSL_METHOD *method;
 2459|  1.97k|    const version_info *table;
 2460|  1.97k|    const version_info *vent;
 2461|  1.97k|    const SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|  1.97k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 2462|       |
 2463|  1.97k|    switch (ssl->method->version) {
 2464|      0|    default:
  ------------------
  |  Branch (2464:5): [True: 0, False: 1.97k]
  ------------------
 2465|       |        /*
 2466|       |         * If this SSL handle is not from a version flexible method we don't
 2467|       |         * (and never did) check min/max FIPS or Suite B constraints.  Hope
 2468|       |         * that's OK.  It is up to the caller to not choose fixed protocol
 2469|       |         * versions they don't want.  If not, then easy to fix, just return
 2470|       |         * ssl_method_error(s, s->method)
 2471|       |         */
 2472|      0|        *min_version = *max_version = s->version;
 2473|       |        /*
 2474|       |         * Providing a real_max only makes sense where we're using a version
 2475|       |         * flexible method.
 2476|       |         */
 2477|      0|        if (!ossl_assert(real_max == NULL))
  ------------------
  |  |   52|      0|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|      0|    __FILE__, __LINE__)
  ------------------
  |  Branch (2477:13): [True: 0, False: 0]
  ------------------
 2478|      0|            return ERR_R_INTERNAL_ERROR;
  ------------------
  |  |  355|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  351|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2479|      0|        return 0;
 2480|  1.97k|    case TLS_ANY_VERSION:
  ------------------
  |  |   40|  1.97k|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (2480:5): [True: 1.97k, False: 0]
  ------------------
 2481|  1.97k|        table = tls_version_table;
 2482|  1.97k|        break;
 2483|      0|    case DTLS_ANY_VERSION:
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
  |  Branch (2483:5): [True: 0, False: 1.97k]
  ------------------
 2484|      0|        table = dtls_version_table;
 2485|      0|        break;
 2486|  1.97k|    }
 2487|       |
 2488|       |    /*
 2489|       |     * SSL_OP_NO_X disables all protocols above X *if* there are some protocols
 2490|       |     * below X enabled. This is required in order to maintain the "version
 2491|       |     * capability" vector contiguous. Any versions with a NULL client method
 2492|       |     * (protocol version client is disabled at compile-time) is also a "hole".
 2493|       |     *
 2494|       |     * Our initial state is hole == 1, version == 0.  That is, versions above
 2495|       |     * the first version in the method table are disabled (a "hole" above
 2496|       |     * the valid protocol entries) and we don't have a selected version yet.
 2497|       |     *
 2498|       |     * Whenever "hole == 1", and we hit an enabled method, its version becomes
 2499|       |     * the selected version.  We're no longer in a hole, so "hole" becomes 0.
 2500|       |     *
 2501|       |     * If "hole == 0" and we hit an enabled method, we support a contiguous
 2502|       |     * range of at least two methods.  If we hit a disabled method,
 2503|       |     * then hole becomes true again, but nothing else changes yet,
 2504|       |     * because all the remaining methods may be disabled too.
 2505|       |     * If we again hit an enabled method after the new hole, it becomes
 2506|       |     * selected, as we start from scratch.
 2507|       |     */
 2508|  1.97k|    *min_version = version = 0;
 2509|  1.97k|    hole = 1;
 2510|  1.97k|    if (real_max != NULL)
  ------------------
  |  Branch (2510:9): [True: 0, False: 1.97k]
  ------------------
 2511|      0|        *real_max = 0;
 2512|  1.97k|    tmp_real_max = 0;
 2513|  11.8k|    for (vent = table; vent->version != 0; ++vent) {
  ------------------
  |  Branch (2513:24): [True: 9.85k, False: 1.97k]
  ------------------
 2514|       |        /*
 2515|       |         * A table entry with a NULL client method is still a hole in the
 2516|       |         * "version capability" vector.
 2517|       |         */
 2518|  9.85k|        if (vent->cmeth == NULL) {
  ------------------
  |  Branch (2518:13): [True: 0, False: 9.85k]
  ------------------
 2519|      0|            hole = 1;
 2520|      0|            tmp_real_max = 0;
 2521|      0|            continue;
 2522|      0|        }
 2523|  9.85k|        method = vent->cmeth();
 2524|       |
 2525|  9.85k|        if (hole == 1 && tmp_real_max == 0)
  ------------------
  |  Branch (2525:13): [True: 5.91k, False: 3.94k]
  |  Branch (2525:26): [True: 1.97k, False: 3.94k]
  ------------------
 2526|  1.97k|            tmp_real_max = vent->version;
 2527|       |
 2528|  9.85k|        if (ssl_method_error(s, method) != 0) {
  ------------------
  |  Branch (2528:13): [True: 5.91k, False: 3.94k]
  ------------------
 2529|  5.91k|            hole = 1;
 2530|  5.91k|        } else if (!hole) {
  ------------------
  |  Branch (2530:20): [True: 1.97k, False: 1.97k]
  ------------------
 2531|  1.97k|            *min_version = method->version;
 2532|  1.97k|        } else {
 2533|  1.97k|            if (real_max != NULL && tmp_real_max != 0)
  ------------------
  |  Branch (2533:17): [True: 0, False: 1.97k]
  |  Branch (2533:37): [True: 0, False: 0]
  ------------------
 2534|      0|                *real_max = tmp_real_max;
 2535|  1.97k|            version = method->version;
 2536|  1.97k|            *min_version = version;
 2537|  1.97k|            hole = 0;
 2538|  1.97k|        }
 2539|  9.85k|    }
 2540|       |
 2541|  1.97k|    *max_version = version;
 2542|       |
 2543|       |    /* Fail if everything is disabled */
 2544|  1.97k|    if (version == 0)
  ------------------
  |  Branch (2544:9): [True: 0, False: 1.97k]
  ------------------
 2545|      0|        return SSL_R_NO_PROTOCOLS_AVAILABLE;
  ------------------
  |  |  205|      0|#define SSL_R_NO_PROTOCOLS_AVAILABLE 191
  ------------------
 2546|       |
 2547|  1.97k|    return 0;
 2548|  1.97k|}
ssl_set_client_hello_version:
 2559|    219|{
 2560|    219|    int ver_min, ver_max, ret;
 2561|       |
 2562|       |    /*
 2563|       |     * In a renegotiation we always send the same client_version that we sent
 2564|       |     * last time, regardless of which version we eventually negotiated.
 2565|       |     */
 2566|    219|    if (!SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  277|    219|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (277:36): [True: 219, False: 0]
  |  |  ------------------
  |  |  278|    219|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (278:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2567|      0|        return 0;
 2568|       |
 2569|    219|    ret = ssl_get_min_max_version(s, &ver_min, &ver_max, NULL);
 2570|       |
 2571|    219|    if (ret != 0)
  ------------------
  |  Branch (2571:9): [True: 0, False: 219]
  ------------------
 2572|      0|        return ret;
 2573|       |
 2574|    219|    s->version = ver_max;
 2575|       |
 2576|    219|    if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|    219|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 219]
  |  |  ------------------
  ------------------
 2577|      0|        if (ver_max == DTLS1_BAD_VER) {
  ------------------
  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (2577:13): [True: 0, False: 0]
  ------------------
 2578|       |            /*
 2579|       |             * Even though this is technically before version negotiation,
 2580|       |             * because we have asked for DTLS1_BAD_VER we will never negotiate
 2581|       |             * anything else, and this has impacts on the record layer for when
 2582|       |             * we read the ServerHello. So we need to tell the record layer
 2583|       |             * about this immediately.
 2584|       |             */
 2585|      0|            if (!ssl_set_record_protocol_version(s, ver_max))
  ------------------
  |  Branch (2585:17): [True: 0, False: 0]
  ------------------
 2586|      0|                return 0;
 2587|      0|        }
 2588|    219|    } else if (ver_max > TLS1_2_VERSION) {
  ------------------
  |  |   26|    219|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (2588:16): [True: 219, False: 0]
  ------------------
 2589|       |        /* TLS1.3 always uses TLS1.2 in the legacy_version field */
 2590|    219|        ver_max = TLS1_2_VERSION;
  ------------------
  |  |   26|    219|#define TLS1_2_VERSION 0x0303
  ------------------
 2591|    219|    }
 2592|       |
 2593|    219|    s->client_version = ver_max;
 2594|    219|    return 0;
 2595|    219|}
get_ca_names:
 2742|    219|{
 2743|    219|    const STACK_OF(X509_NAME) *ca_sk = NULL;
 2744|    219|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 2745|       |
 2746|    219|    if (s->server) {
  ------------------
  |  Branch (2746:9): [True: 0, False: 219]
  ------------------
 2747|      0|        ca_sk = SSL_get_client_CA_list(ssl);
 2748|      0|        if (ca_sk != NULL && sk_X509_NAME_num(ca_sk) == 0)
  ------------------
  |  |   56|      0|#define sk_X509_NAME_num(sk) OPENSSL_sk_num(ossl_check_const_X509_NAME_sk_type(sk))
  ------------------
  |  Branch (2748:13): [True: 0, False: 0]
  |  Branch (2748:30): [True: 0, False: 0]
  ------------------
 2749|      0|            ca_sk = NULL;
 2750|      0|    }
 2751|       |
 2752|    219|    if (ca_sk == NULL)
  ------------------
  |  Branch (2752:9): [True: 219, False: 0]
  ------------------
 2753|    219|        ca_sk = SSL_get0_CA_list(ssl);
 2754|       |
 2755|    219|    return ca_sk;
 2756|    219|}
statem_lib.c:ssl_method_error:
 1901|  9.85k|{
 1902|  9.85k|    int version = method->version;
 1903|       |
 1904|  9.85k|    if ((s->min_proto_version != 0 && ssl_version_cmp(s, version, s->min_proto_version) < 0) || ssl_security(s, SSL_SECOP_VERSION, 0, version, NULL) == 0)
  ------------------
  |  | 2766|  3.94k|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|  3.94k|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (1904:10): [True: 9.85k, False: 0]
  |  Branch (1904:39): [True: 5.91k, False: 3.94k]
  |  Branch (1904:97): [True: 0, False: 3.94k]
  ------------------
 1905|  5.91k|        return SSL_R_VERSION_TOO_LOW;
  ------------------
  |  |  367|  5.91k|#define SSL_R_VERSION_TOO_LOW 396
  ------------------
 1906|       |
 1907|  3.94k|    if (s->max_proto_version != 0 && ssl_version_cmp(s, version, s->max_proto_version) > 0)
  ------------------
  |  Branch (1907:9): [True: 0, False: 3.94k]
  |  Branch (1907:38): [True: 0, False: 0]
  ------------------
 1908|      0|        return SSL_R_VERSION_TOO_HIGH;
  ------------------
  |  |  366|      0|#define SSL_R_VERSION_TOO_HIGH 166
  ------------------
 1909|       |
 1910|  3.94k|    if ((s->options & method->mask) != 0)
  ------------------
  |  Branch (1910:9): [True: 0, False: 3.94k]
  ------------------
 1911|      0|        return SSL_R_UNSUPPORTED_PROTOCOL;
  ------------------
  |  |  361|      0|#define SSL_R_UNSUPPORTED_PROTOCOL 258
  ------------------
 1912|  3.94k|    if ((method->flags & SSL_METHOD_NO_SUITEB) != 0 && tls1_suiteb(s))
  ------------------
  |  | 2342|  3.94k|#define SSL_METHOD_NO_SUITEB (1U << 1)
  ------------------
                  if ((method->flags & SSL_METHOD_NO_SUITEB) != 0 && tls1_suiteb(s))
  ------------------
  |  | 2029|      0|#define tls1_suiteb(s) (s->cert->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS)
  |  |  ------------------
  |  |  |  |  562|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  |  |  ------------------
  |  |  |  Branch (2029:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1912:9): [True: 0, False: 3.94k]
  ------------------
 1913|      0|        return SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE;
  ------------------
  |  |   25|      0|#define SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE 158
  ------------------
 1914|       |
 1915|  3.94k|    return 0;
 1916|  3.94k|}

tls1_default_timeout:
   97|    220|{
   98|       |    /*
   99|       |     * 2 hours, the 24 hours mentioned in the TLSv1 spec is way too long for
  100|       |     * http, the cache would over fill
  101|       |     */
  102|    220|    return ossl_seconds2time(60 * 60 * 2);
  ------------------
  |  |   42|    220|#define ossl_seconds2time(s) ossl_ticks2time((s) * OSSL_TIME_SECOND)
  |  |  ------------------
  |  |  |  |   31|    220|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  |  |  ------------------
  ------------------
  103|    220|}
tls1_new:
  106|    220|{
  107|    220|    if (!ssl3_new(s))
  ------------------
  |  Branch (107:9): [True: 0, False: 220]
  ------------------
  108|      0|        return 0;
  109|    220|    if (!s->method->ssl_clear(s))
  ------------------
  |  Branch (109:9): [True: 0, False: 220]
  ------------------
  110|      0|        return 0;
  111|       |
  112|    220|    return 1;
  113|    220|}
tls1_free:
  116|    220|{
  117|    220|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    220|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    220|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 220]
  |  |  |  |  ------------------
  |  |  |  |   33|    220|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    220|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 220, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    220|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    220|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  118|       |
  119|    220|    if (sc == NULL)
  ------------------
  |  Branch (119:9): [True: 0, False: 220]
  ------------------
  120|      0|        return;
  121|       |
  122|    220|    OPENSSL_free(sc->ext.session_ticket);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  123|    220|    ssl3_free(s);
  124|    220|}
tls1_clear:
  127|    879|{
  128|    879|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    879|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    879|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 879]
  |  |  |  |  ------------------
  |  |  |  |   33|    879|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1223|    879|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 879, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    879|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    879|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1229|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1229:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  129|       |
  130|    879|    if (sc == NULL)
  ------------------
  |  Branch (130:9): [True: 0, False: 879]
  ------------------
  131|      0|        return 0;
  132|       |
  133|    879|    if (!ssl3_clear(s))
  ------------------
  |  Branch (133:9): [True: 0, False: 879]
  ------------------
  134|      0|        return 0;
  135|       |
  136|    879|    if (s->method->version == TLS_ANY_VERSION)
  ------------------
  |  |   40|    879|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (136:9): [True: 879, False: 0]
  ------------------
  137|    879|        sc->version = TLS_MAX_VERSION_INTERNAL;
  ------------------
  |  |   50|    879|#define TLS_MAX_VERSION_INTERNAL TLS1_3_VERSION
  |  |  ------------------
  |  |  |  |   27|    879|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  ------------------
  138|      0|    else
  139|      0|        sc->version = s->method->version;
  140|       |
  141|    879|    return 1;
  142|    879|}
ssl_load_groups:
  367|    220|{
  368|    220|    if (!OSSL_PROVIDER_do_all(ctx->libctx, discover_provider_groups, ctx))
  ------------------
  |  Branch (368:9): [True: 0, False: 220]
  ------------------
  369|      0|        return 0;
  370|       |
  371|    220|    return SSL_CTX_set1_groups_list(ctx, TLS_DEFAULT_GROUP_LIST);
  ------------------
  |  | 1505|    220|    SSL_CTX_ctrl(ctx, SSL_CTRL_SET_GROUPS_LIST, 0, (char *)(s))
  |  |  ------------------
  |  |  |  | 1353|    220|#define SSL_CTRL_SET_GROUPS_LIST 92
  |  |  ------------------
  ------------------
  372|    220|}
ssl_load_sigalgs:
  681|    220|{
  682|    220|    size_t i;
  683|    220|    SSL_CERT_LOOKUP lu;
  684|       |
  685|    220|    if (!OSSL_PROVIDER_do_all(ctx->libctx, discover_provider_sigalgs, ctx))
  ------------------
  |  Branch (685:9): [True: 0, False: 220]
  ------------------
  686|      0|        return 0;
  687|       |
  688|       |    /* now populate ctx->ssl_cert_info */
  689|    220|    if (ctx->sigalg_list_len > 0) {
  ------------------
  |  Branch (689:9): [True: 220, False: 0]
  ------------------
  690|    220|        OPENSSL_free(ctx->ssl_cert_info);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  691|    220|        ctx->ssl_cert_info = OPENSSL_calloc(ctx->sigalg_list_len, sizeof(lu));
  ------------------
  |  |  112|    220|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  692|    220|        if (ctx->ssl_cert_info == NULL)
  ------------------
  |  Branch (692:13): [True: 0, False: 220]
  ------------------
  693|      0|            return 0;
  694|    880|        for (i = 0; i < ctx->sigalg_list_len; i++) {
  ------------------
  |  Branch (694:21): [True: 660, False: 220]
  ------------------
  695|    660|            const char *keytype = inferred_keytype(&ctx->sigalg_list[i]);
  696|    660|            ctx->ssl_cert_info[i].pkey_nid = OBJ_txt2nid(keytype);
  697|    660|            ctx->ssl_cert_info[i].amask = SSL_aANY;
  ------------------
  |  |  124|    660|#define SSL_aANY 0x00000000U
  ------------------
  698|    660|        }
  699|    220|    }
  700|       |
  701|       |    /*
  702|       |     * For now, leave it at this: legacy sigalgs stay in their own
  703|       |     * data structures until "legacy cleanup" occurs.
  704|       |     */
  705|       |
  706|    220|    return 1;
  707|    220|}
tls1_group_id_lookup:
  723|  6.13k|{
  724|  6.13k|    size_t i;
  725|       |
  726|  23.8k|    for (i = 0; i < ctx->group_list_len; i++) {
  ------------------
  |  Branch (726:17): [True: 23.8k, False: 0]
  ------------------
  727|  23.8k|        if (ctx->group_list[i].group_id == group_id)
  ------------------
  |  Branch (727:13): [True: 6.13k, False: 17.7k]
  ------------------
  728|  6.13k|            return &ctx->group_list[i];
  729|  23.8k|    }
  730|       |
  731|      0|    return NULL;
  732|  6.13k|}
tls1_group_id2nid:
  745|  2.62k|{
  746|  2.62k|    size_t i;
  747|       |
  748|  2.62k|    if (group_id == 0)
  ------------------
  |  Branch (748:9): [True: 0, False: 2.62k]
  ------------------
  749|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  750|       |
  751|       |    /*
  752|       |     * Return well known Group NIDs - for backwards compatibility. This won't
  753|       |     * work for groups we don't know about.
  754|       |     */
  755|  86.0k|    for (i = 0; i < OSSL_NELEM(nid_to_group); i++) {
  ------------------
  |  |   14|  86.0k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (755:17): [True: 85.6k, False: 438]
  ------------------
  756|  85.6k|        if (nid_to_group[i].group_id == group_id)
  ------------------
  |  Branch (756:13): [True: 2.19k, False: 83.4k]
  ------------------
  757|  2.19k|            return nid_to_group[i].nid;
  758|  85.6k|    }
  759|    438|    if (!include_unknown)
  ------------------
  |  Branch (759:9): [True: 438, False: 0]
  ------------------
  760|    438|        return NID_undef;
  ------------------
  |  |   18|    438|#define NID_undef                       0
  ------------------
  761|      0|    return TLSEXT_nid_unknown | (int)group_id;
  ------------------
  |  |  219|      0|#define TLSEXT_nid_unknown 0x1000000
  ------------------
  762|    438|}
tls1_get_supported_groups:
  786|    657|{
  787|    657|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    657|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  788|       |
  789|       |    /* For Suite B mode only include P-256, P-384 */
  790|    657|    switch (tls1_suiteb(s)) {
  ------------------
  |  | 2029|    657|#define tls1_suiteb(s) (s->cert->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS)
  |  |  ------------------
  |  |  |  |  562|    657|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  |  |  ------------------
  ------------------
  791|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS:
  ------------------
  |  |  562|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
  |  Branch (791:5): [True: 0, False: 657]
  ------------------
  792|      0|        *pgroups = suiteb_curves;
  793|      0|        *pgroupslen = OSSL_NELEM(suiteb_curves);
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  794|      0|        break;
  795|       |
  796|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS_ONLY:
  ------------------
  |  |  558|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
  ------------------
  |  Branch (796:5): [True: 0, False: 657]
  ------------------
  797|      0|        *pgroups = suiteb_curves;
  798|      0|        *pgroupslen = 1;
  799|      0|        break;
  800|       |
  801|      0|    case SSL_CERT_FLAG_SUITEB_192_LOS:
  ------------------
  |  |  560|      0|#define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
  ------------------
  |  Branch (801:5): [True: 0, False: 657]
  ------------------
  802|      0|        *pgroups = suiteb_curves + 1;
  803|      0|        *pgroupslen = 1;
  804|      0|        break;
  805|       |
  806|    657|    default:
  ------------------
  |  Branch (806:5): [True: 657, False: 0]
  ------------------
  807|    657|        if (s->ext.supportedgroups == NULL) {
  ------------------
  |  Branch (807:13): [True: 0, False: 657]
  ------------------
  808|      0|            *pgroups = sctx->ext.supportedgroups;
  809|      0|            *pgroupslen = sctx->ext.supportedgroups_len;
  810|    657|        } else {
  811|    657|            *pgroups = s->ext.supportedgroups;
  812|    657|            *pgroupslen = s->ext.supportedgroups_len;
  813|    657|        }
  814|    657|        break;
  815|    657|    }
  816|    657|}
tls1_get_requested_keyshare_groups:
  833|    219|{
  834|    219|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    219|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  835|       |
  836|    219|    if (s->ext.supportedgroups == NULL) {
  ------------------
  |  Branch (836:9): [True: 0, False: 219]
  ------------------
  837|      0|        *pgroups = sctx->ext.supportedgroups;
  838|      0|        *pgroupslen = sctx->ext.supportedgroups_len;
  839|    219|    } else {
  840|    219|        *pgroups = s->ext.keyshares;
  841|    219|        *pgroupslen = s->ext.keyshares_len;
  842|    219|    }
  843|    219|}
tls_valid_group:
  862|  3.06k|{
  863|  3.06k|    const TLS_GROUP_INFO *ginfo = tls1_group_id_lookup(SSL_CONNECTION_GET_CTX(s),
  ------------------
  |  |   26|  3.06k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  864|  3.06k|        group_id);
  865|  3.06k|    int ret;
  866|  3.06k|    int group_minversion, group_maxversion;
  867|       |
  868|  3.06k|    if (okfortls13 != NULL)
  ------------------
  |  Branch (868:9): [True: 1.75k, False: 1.31k]
  ------------------
  869|  1.75k|        *okfortls13 = 0;
  870|       |
  871|  3.06k|    if (ginfo == NULL)
  ------------------
  |  Branch (871:9): [True: 0, False: 3.06k]
  ------------------
  872|      0|        return 0;
  873|       |
  874|  3.06k|    group_minversion = SSL_CONNECTION_IS_DTLS(s) ? ginfo->mindtls : ginfo->mintls;
  ------------------
  |  |  258|  3.06k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  3.06k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  3.06k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 3.06k]
  |  |  ------------------
  ------------------
  875|  3.06k|    group_maxversion = SSL_CONNECTION_IS_DTLS(s) ? ginfo->maxdtls : ginfo->maxtls;
  ------------------
  |  |  258|  3.06k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  3.06k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  3.06k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 3.06k]
  |  |  ------------------
  ------------------
  876|       |
  877|  3.06k|    if (group_minversion < 0 || group_maxversion < 0)
  ------------------
  |  Branch (877:9): [True: 0, False: 3.06k]
  |  Branch (877:33): [True: 0, False: 3.06k]
  ------------------
  878|      0|        return 0;
  879|  3.06k|    if (group_maxversion == 0)
  ------------------
  |  Branch (879:9): [True: 3.06k, False: 0]
  ------------------
  880|  3.06k|        ret = 1;
  881|      0|    else
  882|      0|        ret = (ssl_version_cmp(s, minversion, group_maxversion) <= 0);
  883|  3.06k|    if (group_minversion > 0)
  ------------------
  |  Branch (883:9): [True: 3.06k, False: 0]
  ------------------
  884|  3.06k|        ret &= (ssl_version_cmp(s, maxversion, group_minversion) >= 0);
  885|       |
  886|  3.06k|    if (!SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  258|  3.06k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  3.06k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  3.06k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (886:9): [True: 3.06k, False: 0]
  ------------------
  887|  3.06k|        if (ret && okfortls13 != NULL && maxversion == TLS1_3_VERSION)
  ------------------
  |  |   27|  1.75k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (887:13): [True: 3.06k, False: 0]
  |  Branch (887:20): [True: 1.75k, False: 1.31k]
  |  Branch (887:42): [True: 1.75k, False: 0]
  ------------------
  888|  1.75k|            *okfortls13 = (group_maxversion == 0)
  ------------------
  |  Branch (888:27): [True: 1.75k, False: 0]
  ------------------
  889|      0|                || (group_maxversion >= TLS1_3_VERSION);
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (889:20): [True: 0, False: 0]
  ------------------
  890|  3.06k|    }
  891|  3.06k|    ret &= !isec
  ------------------
  |  Branch (891:12): [True: 2.19k, False: 876]
  ------------------
  892|    876|        || strcmp(ginfo->algorithm, "EC") == 0
  ------------------
  |  Branch (892:12): [True: 0, False: 876]
  ------------------
  893|    876|        || strcmp(ginfo->algorithm, "X25519") == 0
  ------------------
  |  Branch (893:12): [True: 438, False: 438]
  ------------------
  894|    438|        || strcmp(ginfo->algorithm, "X448") == 0;
  ------------------
  |  Branch (894:12): [True: 0, False: 438]
  ------------------
  895|       |
  896|  3.06k|    return ret;
  897|  3.06k|}
tls_group_allowed:
  901|  2.62k|{
  902|  2.62k|    const TLS_GROUP_INFO *ginfo = tls1_group_id_lookup(SSL_CONNECTION_GET_CTX(s),
  ------------------
  |  |   26|  2.62k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  903|  2.62k|        group);
  904|  2.62k|    unsigned char gtmp[2];
  905|       |
  906|  2.62k|    if (ginfo == NULL)
  ------------------
  |  Branch (906:9): [True: 0, False: 2.62k]
  ------------------
  907|      0|        return 0;
  908|       |
  909|  2.62k|    gtmp[0] = group >> 8;
  910|  2.62k|    gtmp[1] = group & 0xff;
  911|  2.62k|    return ssl_security(s, op, ginfo->secbits,
  912|  2.62k|        tls1_group_id2nid(ginfo->group_id, 0), (void *)gtmp);
  913|  2.62k|}
tls1_set_groups_list:
 1610|    220|{
 1611|    220|    size_t i = 0, j;
 1612|    220|    int ret = 0, parse_ret = 0;
 1613|    220|    gid_cb_st gcb;
 1614|       |
 1615|       |    /* Sanity check */
 1616|    220|    if (ctx == NULL) {
  ------------------
  |  Branch (1616:9): [True: 0, False: 220]
  ------------------
 1617|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1618|      0|        return 0;
 1619|      0|    }
 1620|       |
 1621|    220|    memset(&gcb, 0, sizeof(gcb));
 1622|    220|    gcb.gidmax = GROUPLIST_INCREMENT;
  ------------------
  |  | 1193|    220|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1623|    220|    gcb.tplmax = GROUPLIST_INCREMENT;
  ------------------
  |  | 1193|    220|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1624|    220|    gcb.ksidmax = GROUPLIST_INCREMENT;
  ------------------
  |  | 1193|    220|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1625|    220|    gcb.ctx = ctx;
 1626|       |
 1627|       |    /* Prepare initial chunks of memory for groups, tuples and keyshares groupIDs */
 1628|    220|    gcb.gid_arr = OPENSSL_malloc_array(gcb.gidmax, sizeof(*gcb.gid_arr));
  ------------------
  |  |  110|    220|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1629|    220|    if (gcb.gid_arr == NULL)
  ------------------
  |  Branch (1629:9): [True: 0, False: 220]
  ------------------
 1630|      0|        goto end;
 1631|    220|    gcb.tuplcnt_arr = OPENSSL_malloc_array(gcb.tplmax, sizeof(*gcb.tuplcnt_arr));
  ------------------
  |  |  110|    220|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1632|    220|    if (gcb.tuplcnt_arr == NULL)
  ------------------
  |  Branch (1632:9): [True: 0, False: 220]
  ------------------
 1633|      0|        goto end;
 1634|    220|    gcb.tuplcnt_arr[0] = 0;
 1635|    220|    gcb.ksid_arr = OPENSSL_malloc_array(gcb.ksidmax, sizeof(*gcb.ksid_arr));
  ------------------
  |  |  110|    220|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1636|    220|    if (gcb.ksid_arr == NULL)
  ------------------
  |  Branch (1636:9): [True: 0, False: 220]
  ------------------
 1637|      0|        goto end;
 1638|       |
 1639|    220|    while (str[0] != '\0' && isspace((unsigned char)*str))
  ------------------
  |  Branch (1639:12): [True: 220, False: 0]
  |  Branch (1639:30): [True: 0, False: 220]
  ------------------
 1640|      0|        str++;
 1641|    220|    if (str[0] == '\0')
  ------------------
  |  Branch (1641:9): [True: 0, False: 220]
  ------------------
 1642|      0|        goto empty_list;
 1643|       |
 1644|       |    /*
 1645|       |     * Start the (potentially recursive) tuple processing by calling CONF_parse_list
 1646|       |     * with the TUPLE_DELIMITER_CHARACTER (which will call tuple_cb after cleaning spaces)
 1647|       |     */
 1648|    220|    parse_ret = CONF_parse_list(str, TUPLE_DELIMITER_CHARACTER, 1, tuple_cb, &gcb);
  ------------------
  |  | 1204|    220|#define TUPLE_DELIMITER_CHARACTER '/'
  ------------------
 1649|       |
 1650|    220|    if (parse_ret == 0)
  ------------------
  |  Branch (1650:9): [True: 0, False: 220]
  ------------------
 1651|      0|        goto end;
 1652|    220|    if (parse_ret == -1) {
  ------------------
  |  Branch (1652:9): [True: 0, False: 220]
  ------------------
 1653|      0|        ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |   89|      0|#define ERR_LIB_SSL 20
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  358|      0|#define ERR_R_PASSED_INVALID_ARGUMENT (262 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1654|      0|            "Syntax error in '%s'", str);
 1655|      0|        goto end;
 1656|      0|    }
 1657|       |
 1658|       |    /*
 1659|       |     * We check whether a tuple was completely emptied by using "-" prefix
 1660|       |     * excessively, in which case we remove the tuple
 1661|       |     */
 1662|  1.10k|    for (i = j = 0; j < gcb.tplcnt; j++) {
  ------------------
  |  Branch (1662:21): [True: 880, False: 220]
  ------------------
 1663|    880|        if (gcb.tuplcnt_arr[j] == 0)
  ------------------
  |  Branch (1663:13): [True: 0, False: 880]
  ------------------
 1664|      0|            continue;
 1665|       |        /* If there's a gap, move to first unfilled slot */
 1666|    880|        if (j == i)
  ------------------
  |  Branch (1666:13): [True: 880, False: 0]
  ------------------
 1667|    880|            ++i;
 1668|      0|        else
 1669|      0|            gcb.tuplcnt_arr[i++] = gcb.tuplcnt_arr[j];
 1670|    880|    }
 1671|    220|    gcb.tplcnt = i;
 1672|       |
 1673|    220|    if (gcb.ksidcnt > OPENSSL_CLIENT_MAX_KEY_SHARES) {
  ------------------
  |  |  790|    220|#define OPENSSL_CLIENT_MAX_KEY_SHARES 4
  ------------------
  |  Branch (1673:9): [True: 0, False: 220]
  ------------------
 1674|      0|        ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  408|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |   89|      0|#define ERR_LIB_SSL 20
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  358|      0|#define ERR_R_PASSED_INVALID_ARGUMENT (262 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  239|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  230|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1675|      0|            "To many keyshares requested in '%s' (max = %d)",
 1676|      0|            str, OPENSSL_CLIENT_MAX_KEY_SHARES);
  ------------------
  |  |  790|      0|#define OPENSSL_CLIENT_MAX_KEY_SHARES 4
  ------------------
 1677|      0|        goto end;
 1678|      0|    }
 1679|       |
 1680|       |    /*
 1681|       |     * For backward compatibility we let the rest of the code know that a key share
 1682|       |     * for the first valid group should be added if no "*" prefix was used anywhere
 1683|       |     */
 1684|    220|    if (gcb.gidcnt > 0 && gcb.ksidcnt == 0) {
  ------------------
  |  Branch (1684:9): [True: 220, False: 0]
  |  Branch (1684:27): [True: 0, False: 220]
  ------------------
 1685|       |        /*
 1686|       |         * No key share group prefix character was used, hence we indicate that a single
 1687|       |         * key share should be sent and flag that it should come from the supported_groups list
 1688|       |         */
 1689|      0|        gcb.ksidcnt = 1;
 1690|      0|        gcb.ksid_arr[0] = 0;
 1691|      0|    }
 1692|       |
 1693|    220|empty_list:
 1694|       |    /*
 1695|       |     * A call to tls1_set_groups_list with any of the args (other than ctx) set
 1696|       |     * to NULL only does a syntax check, hence we're done here and report success
 1697|       |     */
 1698|    220|    if (grpext == NULL || ksext == NULL || tplext == NULL || grpextlen == NULL || ksextlen == NULL || tplextlen == NULL) {
  ------------------
  |  Branch (1698:9): [True: 0, False: 220]
  |  Branch (1698:27): [True: 0, False: 220]
  |  Branch (1698:44): [True: 0, False: 220]
  |  Branch (1698:62): [True: 0, False: 220]
  |  Branch (1698:83): [True: 0, False: 220]
  |  Branch (1698:103): [True: 0, False: 220]
  ------------------
 1699|      0|        ret = 1;
 1700|      0|        goto end;
 1701|      0|    }
 1702|       |
 1703|       |    /*
 1704|       |     * tuple_cb and gid_cb combo ensures there are no duplicates or unknown groups so we
 1705|       |     * can just go ahead and set the results (after disposing the existing)
 1706|       |     */
 1707|    220|    OPENSSL_free(*grpext);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1708|    220|    *grpext = gcb.gid_arr;
 1709|    220|    *grpextlen = gcb.gidcnt;
 1710|    220|    OPENSSL_free(*ksext);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1711|    220|    *ksext = gcb.ksid_arr;
 1712|    220|    *ksextlen = gcb.ksidcnt;
 1713|    220|    OPENSSL_free(*tplext);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1714|    220|    *tplext = gcb.tuplcnt_arr;
 1715|    220|    *tplextlen = gcb.tplcnt;
 1716|       |
 1717|    220|    return 1;
 1718|       |
 1719|      0|end:
 1720|      0|    OPENSSL_free(gcb.gid_arr);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1721|      0|    OPENSSL_free(gcb.tuplcnt_arr);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1722|      0|    OPENSSL_free(gcb.ksid_arr);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1723|      0|    return ret;
 1724|    220|}
tls1_get_formatlist:
 1782|    219|{
 1783|       |    /*
 1784|       |     * If we have a custom point format list use it otherwise use default
 1785|       |     */
 1786|    219|    if (s->ext.ecpointformats) {
  ------------------
  |  Branch (1786:9): [True: 0, False: 219]
  ------------------
 1787|      0|        *pformats = s->ext.ecpointformats;
 1788|      0|        *num_formats = s->ext.ecpointformats_len;
 1789|    219|    } else if ((s->options & SSL_OP_LEGACY_EC_POINT_FORMATS) != 0) {
  ------------------
  |  |  455|    219|#define SSL_OP_LEGACY_EC_POINT_FORMATS SSL_OP_BIT(36)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1789:16): [True: 0, False: 219]
  ------------------
 1790|      0|        *pformats = ecformats_all;
 1791|       |        /* For Suite B we don't support char2 fields */
 1792|      0|        if (tls1_suiteb(s))
  ------------------
  |  | 2029|      0|#define tls1_suiteb(s) (s->cert->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS)
  |  |  ------------------
  |  |  |  |  562|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  |  |  ------------------
  |  |  |  Branch (2029:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1793|      0|            *num_formats = sizeof(ecformats_all) - 1;
 1794|      0|        else
 1795|      0|            *num_formats = sizeof(ecformats_all);
 1796|    219|    } else {
 1797|    219|        *pformats = ecformats_default;
 1798|    219|        *num_formats = sizeof(ecformats_default);
 1799|    219|    }
 1800|    219|}
ssl_setup_sigalgs:
 2191|    220|{
 2192|    220|    size_t i, cache_idx, sigalgs_len, enabled;
 2193|    220|    const SIGALG_LOOKUP *lu;
 2194|    220|    SIGALG_LOOKUP *cache = NULL;
 2195|    220|    uint16_t *tls12_sigalgs_list = NULL;
 2196|    220|    EVP_PKEY *tmpkey = EVP_PKEY_new();
 2197|    220|    int istls;
 2198|    220|    int ret = 0;
 2199|       |
 2200|    220|    if (ctx == NULL)
  ------------------
  |  Branch (2200:9): [True: 0, False: 220]
  ------------------
 2201|      0|        goto err;
 2202|       |
 2203|    220|    istls = !SSL_CTX_IS_DTLS(ctx);
  ------------------
  |  |  262|    220|    (ctx->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|    220|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
 2204|       |
 2205|    220|    sigalgs_len = OSSL_NELEM(sigalg_lookup_tbl) + ctx->sigalg_list_len;
  ------------------
  |  |   14|    220|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 2206|       |
 2207|    220|    cache = OPENSSL_calloc(sigalgs_len, sizeof(const SIGALG_LOOKUP));
  ------------------
  |  |  112|    220|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2208|    220|    if (cache == NULL || tmpkey == NULL)
  ------------------
  |  Branch (2208:9): [True: 0, False: 220]
  |  Branch (2208:26): [True: 0, False: 220]
  ------------------
 2209|      0|        goto err;
 2210|       |
 2211|    220|    tls12_sigalgs_list = OPENSSL_calloc(sigalgs_len, sizeof(uint16_t));
  ------------------
  |  |  112|    220|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2212|    220|    if (tls12_sigalgs_list == NULL)
  ------------------
  |  Branch (2212:9): [True: 0, False: 220]
  ------------------
 2213|      0|        goto err;
 2214|       |
 2215|    220|    ERR_set_mark();
 2216|       |    /* First fill cache and tls12_sigalgs list from legacy algorithm list */
 2217|    220|    for (i = 0, lu = sigalg_lookup_tbl;
 2218|  7.04k|        i < OSSL_NELEM(sigalg_lookup_tbl); lu++, i++) {
  ------------------
  |  |   14|  7.04k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (2218:9): [True: 6.82k, False: 220]
  ------------------
 2219|  6.82k|        EVP_PKEY_CTX *pctx;
 2220|       |
 2221|  6.82k|        cache[i] = *lu;
 2222|       |
 2223|       |        /*
 2224|       |         * Check hash is available.
 2225|       |         * This test is not perfect. A provider could have support
 2226|       |         * for a signature scheme, but not a particular hash. However the hash
 2227|       |         * could be available from some other loaded provider. In that case it
 2228|       |         * could be that the signature is available, and the hash is available
 2229|       |         * independently - but not as a combination. We ignore this for now.
 2230|       |         */
 2231|  6.82k|        if (lu->hash != NID_undef
  ------------------
  |  |   18|  13.6k|#define NID_undef                       0
  ------------------
  |  Branch (2231:13): [True: 6.38k, False: 440]
  ------------------
 2232|  6.38k|            && ctx->ssl_digest_methods[lu->hash_idx] == NULL) {
  ------------------
  |  Branch (2232:16): [True: 1.10k, False: 5.28k]
  ------------------
 2233|  1.10k|            cache[i].available = 0;
 2234|  1.10k|            continue;
 2235|  1.10k|        }
 2236|       |
 2237|  5.72k|        if (!EVP_PKEY_set_type(tmpkey, lu->sig)) {
  ------------------
  |  Branch (2237:13): [True: 0, False: 5.72k]
  ------------------
 2238|      0|            cache[i].available = 0;
 2239|      0|            continue;
 2240|      0|        }
 2241|  5.72k|        pctx = EVP_PKEY_CTX_new_from_pkey(ctx->libctx, tmpkey, ctx->propq);
 2242|       |        /* If unable to create pctx we assume the sig algorithm is unavailable */
 2243|  5.72k|        if (pctx == NULL)
  ------------------
  |  Branch (2243:13): [True: 0, False: 5.72k]
  ------------------
 2244|      0|            cache[i].available = 0;
 2245|  5.72k|        EVP_PKEY_CTX_free(pctx);
 2246|  5.72k|    }
 2247|       |
 2248|       |    /* Now complete cache and tls12_sigalgs list with provider sig information */
 2249|    220|    cache_idx = OSSL_NELEM(sigalg_lookup_tbl);
  ------------------
  |  |   14|    220|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 2250|    880|    for (i = 0; i < ctx->sigalg_list_len; i++) {
  ------------------
  |  Branch (2250:17): [True: 660, False: 220]
  ------------------
 2251|    660|        TLS_SIGALG_INFO si = ctx->sigalg_list[i];
 2252|    660|        cache[cache_idx].name = si.name;
 2253|    660|        cache[cache_idx].name12 = si.sigalg_name;
 2254|    660|        cache[cache_idx].sigalg = si.code_point;
 2255|    660|        tls12_sigalgs_list[cache_idx] = si.code_point;
 2256|    660|        cache[cache_idx].hash = si.hash_name ? OBJ_txt2nid(si.hash_name) : NID_undef;
  ------------------
  |  |   18|  1.32k|#define NID_undef                       0
  ------------------
  |  Branch (2256:33): [True: 0, False: 660]
  ------------------
 2257|    660|        cache[cache_idx].hash_idx = ssl_get_md_idx(cache[cache_idx].hash);
 2258|    660|        cache[cache_idx].sig = OBJ_txt2nid(si.sigalg_name);
 2259|    660|        cache[cache_idx].sig_idx = (int)(i + SSL_PKEY_NUM);
  ------------------
  |  |  328|    660|#define SSL_PKEY_NUM 9
  ------------------
 2260|    660|        cache[cache_idx].sigandhash = OBJ_txt2nid(si.sigalg_name);
 2261|    660|        cache[cache_idx].curve = NID_undef;
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
 2262|    660|        cache[cache_idx].mintls = TLS1_3_VERSION;
  ------------------
  |  |   27|    660|#define TLS1_3_VERSION 0x0304
  ------------------
 2263|    660|        cache[cache_idx].maxtls = TLS1_3_VERSION;
  ------------------
  |  |   27|    660|#define TLS1_3_VERSION 0x0304
  ------------------
 2264|    660|        cache[cache_idx].mindtls = -1;
 2265|    660|        cache[cache_idx].maxdtls = -1;
 2266|       |        /* Compatibility with TLS 1.3 is checked on load */
 2267|    660|        cache[cache_idx].available = istls;
 2268|    660|        cache[cache_idx].advertise = 0;
 2269|    660|        cache_idx++;
 2270|    660|    }
 2271|    220|    ERR_pop_to_mark();
 2272|       |
 2273|    220|    enabled = 0;
 2274|  7.70k|    for (i = 0; i < OSSL_NELEM(tls12_sigalgs); ++i) {
  ------------------
  |  |   14|  7.70k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (2274:17): [True: 7.48k, False: 220]
  ------------------
 2275|  7.48k|        SIGALG_LOOKUP *ent = cache;
 2276|  7.48k|        size_t j;
 2277|       |
 2278|   130k|        for (j = 0; j < sigalgs_len; ent++, j++) {
  ------------------
  |  Branch (2278:21): [True: 130k, False: 0]
  ------------------
 2279|   130k|            if (ent->sigalg != tls12_sigalgs[i])
  ------------------
  |  Branch (2279:17): [True: 123k, False: 7.48k]
  ------------------
 2280|   123k|                continue;
 2281|       |            /* Dedup by marking cache entry as default enabled. */
 2282|  7.48k|            if (ent->available && !ent->advertise) {
  ------------------
  |  Branch (2282:17): [True: 6.38k, False: 1.10k]
  |  Branch (2282:35): [True: 6.38k, False: 0]
  ------------------
 2283|  6.38k|                ent->advertise = 1;
 2284|  6.38k|                tls12_sigalgs_list[enabled++] = tls12_sigalgs[i];
 2285|  6.38k|            }
 2286|  7.48k|            break;
 2287|   130k|        }
 2288|  7.48k|    }
 2289|       |
 2290|       |    /* Append any provider sigalgs not yet handled */
 2291|    880|    for (i = OSSL_NELEM(sigalg_lookup_tbl); i < sigalgs_len; ++i) {
  ------------------
  |  |   14|    220|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (2291:45): [True: 660, False: 220]
  ------------------
 2292|    660|        SIGALG_LOOKUP *ent = &cache[i];
 2293|       |
 2294|    660|        if (ent->available && !ent->advertise)
  ------------------
  |  Branch (2294:13): [True: 660, False: 0]
  |  Branch (2294:31): [True: 0, False: 660]
  ------------------
 2295|      0|            tls12_sigalgs_list[enabled++] = ent->sigalg;
 2296|    660|    }
 2297|       |
 2298|    220|    ctx->sigalg_lookup_cache = cache;
 2299|    220|    ctx->sigalg_lookup_cache_len = sigalgs_len;
 2300|    220|    ctx->tls12_sigalgs = tls12_sigalgs_list;
 2301|    220|    ctx->tls12_sigalgs_len = enabled;
 2302|    220|    cache = NULL;
 2303|    220|    tls12_sigalgs_list = NULL;
 2304|       |
 2305|    220|    ret = 1;
 2306|    220|err:
 2307|    220|    OPENSSL_free(cache);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2308|    220|    OPENSSL_free(tls12_sigalgs_list);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2309|    220|    EVP_PKEY_free(tmpkey);
 2310|    220|    return ret;
 2311|    220|}
tls1_lookup_md:
 2407|  8.32k|{
 2408|  8.32k|    const EVP_MD *md;
 2409|       |
 2410|  8.32k|    if (lu == NULL)
  ------------------
  |  Branch (2410:9): [True: 0, False: 8.32k]
  ------------------
 2411|      0|        return 0;
 2412|       |    /* lu->hash == NID_undef means no associated digest */
 2413|  8.32k|    if (lu->hash == NID_undef) {
  ------------------
  |  |   18|  8.32k|#define NID_undef                       0
  ------------------
  |  Branch (2413:9): [True: 1.09k, False: 7.22k]
  ------------------
 2414|  1.09k|        md = NULL;
 2415|  7.22k|    } else {
 2416|  7.22k|        md = ssl_md(ctx, lu->hash_idx);
 2417|  7.22k|        if (md == NULL)
  ------------------
  |  Branch (2417:13): [True: 0, False: 7.22k]
  ------------------
 2418|      0|            return 0;
 2419|  7.22k|    }
 2420|  8.32k|    if (pmd)
  ------------------
  |  Branch (2420:9): [True: 8.32k, False: 0]
  ------------------
 2421|  8.32k|        *pmd = md;
 2422|  8.32k|    return 1;
 2423|  8.32k|}
tls12_get_psigalgs:
 2544|    876|{
 2545|       |    /*
 2546|       |     * If Suite B mode use Suite B sigalgs only, ignore any other
 2547|       |     * preferences.
 2548|       |     */
 2549|    876|    switch (tls1_suiteb(s)) {
  ------------------
  |  | 2029|    876|#define tls1_suiteb(s) (s->cert->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS)
  |  |  ------------------
  |  |  |  |  562|    876|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  |  |  ------------------
  |  |  |  Branch (2029:24): [True: 0, False: 876]
  |  |  ------------------
  ------------------
 2550|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS:
  ------------------
  |  |  562|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
  |  Branch (2550:5): [True: 0, False: 876]
  ------------------
 2551|      0|        *psigs = suiteb_sigalgs;
 2552|      0|        return OSSL_NELEM(suiteb_sigalgs);
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 2553|       |
 2554|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS_ONLY:
  ------------------
  |  |  558|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
  ------------------
  |  Branch (2554:5): [True: 0, False: 876]
  ------------------
 2555|      0|        *psigs = suiteb_sigalgs;
 2556|      0|        return 1;
 2557|       |
 2558|      0|    case SSL_CERT_FLAG_SUITEB_192_LOS:
  ------------------
  |  |  560|      0|#define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
  ------------------
  |  Branch (2558:5): [True: 0, False: 876]
  ------------------
 2559|      0|        *psigs = suiteb_sigalgs + 1;
 2560|      0|        return 1;
 2561|    876|    }
 2562|       |    /*
 2563|       |     *  We use client_sigalgs (if not NULL) if we're a server
 2564|       |     *  and sending a certificate request or if we're a client and
 2565|       |     *  determining which shared algorithm to use.
 2566|       |     */
 2567|    876|    if ((s->server == sent) && s->cert->client_sigalgs != NULL) {
  ------------------
  |  Branch (2567:9): [True: 0, False: 876]
  |  Branch (2567:32): [True: 0, False: 0]
  ------------------
 2568|      0|        *psigs = s->cert->client_sigalgs;
 2569|      0|        return s->cert->client_sigalgslen;
 2570|    876|    } else if (s->cert->conf_sigalgs) {
  ------------------
  |  Branch (2570:16): [True: 0, False: 876]
  ------------------
 2571|      0|        *psigs = s->cert->conf_sigalgs;
 2572|      0|        return s->cert->conf_sigalgslen;
 2573|    876|    } else {
 2574|    876|        *psigs = SSL_CONNECTION_GET_CTX(s)->tls12_sigalgs;
  ------------------
  |  |   26|    876|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 2575|    876|        return SSL_CONNECTION_GET_CTX(s)->tls12_sigalgs_len;
  ------------------
  |  |   26|    876|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 2576|    876|    }
 2577|    876|}
ssl_set_client_disabled:
 2878|    657|{
 2879|    657|    s->s3.tmp.mask_a = 0;
 2880|    657|    s->s3.tmp.mask_k = 0;
 2881|    657|    ssl_set_sig_mask(&s->s3.tmp.mask_a, s, SSL_SECOP_SIGALG_MASK);
  ------------------
  |  | 2776|    657|#define SSL_SECOP_SIGALG_MASK (14 | SSL_SECOP_OTHER_SIGALG)
  |  |  ------------------
  |  |  |  | 2742|    657|#define SSL_SECOP_OTHER_SIGALG (5 << 16)
  |  |  ------------------
  ------------------
 2882|    657|    if (ssl_get_min_max_version(s, &s->s3.tmp.min_ver,
  ------------------
  |  Branch (2882:9): [True: 0, False: 657]
  ------------------
 2883|    657|            &s->s3.tmp.max_ver, NULL)
 2884|    657|        != 0)
 2885|      0|        return 0;
 2886|    657|#ifndef OPENSSL_NO_PSK
 2887|       |    /* with PSK there must be client callback set */
 2888|    657|    if (!s->psk_client_callback) {
  ------------------
  |  Branch (2888:9): [True: 657, False: 0]
  ------------------
 2889|    657|        s->s3.tmp.mask_a |= SSL_aPSK;
  ------------------
  |  |  116|    657|#define SSL_aPSK 0x00000010U
  ------------------
 2890|    657|        s->s3.tmp.mask_k |= SSL_PSK;
  ------------------
  |  |  101|    657|#define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)
  |  |  ------------------
  |  |  |  |   87|    657|#define SSL_kPSK 0x00000008U
  |  |  ------------------
  |  |               #define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)
  |  |  ------------------
  |  |  |  |   93|    657|#define SSL_kRSAPSK 0x00000040U
  |  |  ------------------
  |  |               #define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)
  |  |  ------------------
  |  |  |  |   94|    657|#define SSL_kECDHEPSK 0x00000080U
  |  |  ------------------
  |  |               #define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)
  |  |  ------------------
  |  |  |  |   95|    657|#define SSL_kDHEPSK 0x00000100U
  |  |  ------------------
  ------------------
 2891|    657|    }
 2892|    657|#endif /* OPENSSL_NO_PSK */
 2893|    657|#ifndef OPENSSL_NO_SRP
 2894|    657|    if (!(s->srp_ctx.srp_Mask & SSL_kSRP)) {
  ------------------
  |  |   91|    657|#define SSL_kSRP 0x00000020U
  ------------------
  |  Branch (2894:9): [True: 657, False: 0]
  ------------------
 2895|    657|        s->s3.tmp.mask_a |= SSL_aSRP;
  ------------------
  |  |  120|    657|#define SSL_aSRP 0x00000040U
  ------------------
 2896|    657|        s->s3.tmp.mask_k |= SSL_kSRP;
  ------------------
  |  |   91|    657|#define SSL_kSRP 0x00000020U
  ------------------
 2897|    657|    }
 2898|    657|#endif
 2899|    657|    return 1;
 2900|    657|}
ssl_cipher_disabled:
 2913|  39.4k|{
 2914|  39.4k|    int minversion = SSL_CONNECTION_IS_DTLS(s) ? c->min_dtls : c->min_tls;
  ------------------
  |  |  258|  39.4k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  39.4k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  39.4k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 39.4k]
  |  |  ------------------
  ------------------
 2915|  39.4k|    int maxversion = SSL_CONNECTION_IS_DTLS(s) ? c->max_dtls : c->max_tls;
  ------------------
  |  |  258|  39.4k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  39.4k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  39.4k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 39.4k]
  |  |  ------------------
  ------------------
 2916|       |
 2917|  39.4k|    if (c->algorithm_mkey & s->s3.tmp.mask_k
  ------------------
  |  Branch (2917:9): [True: 19.7k, False: 19.7k]
  ------------------
 2918|  19.7k|        || c->algorithm_auth & s->s3.tmp.mask_a)
  ------------------
  |  Branch (2918:12): [True: 0, False: 19.7k]
  ------------------
 2919|  19.7k|        return 1;
 2920|  19.7k|    if (s->s3.tmp.max_ver == 0)
  ------------------
  |  Branch (2920:9): [True: 0, False: 19.7k]
  ------------------
 2921|      0|        return 1;
 2922|       |
 2923|  19.7k|    if (SSL_IS_QUIC_INT_HANDSHAKE(s))
  ------------------
  |  |  304|  19.7k|#define SSL_IS_QUIC_INT_HANDSHAKE(s) (((s)->s3.flags & TLS1_FLAGS_QUIC_INTERNAL) != 0)
  |  |  ------------------
  |  |  |  |   31|  19.7k|#define TLS1_FLAGS_QUIC_INTERNAL 0x4000
  |  |  ------------------
  |  |  |  Branch (304:38): [True: 0, False: 19.7k]
  |  |  ------------------
  ------------------
 2924|       |        /* For QUIC, only allow these ciphersuites. */
 2925|      0|        switch (SSL_CIPHER_get_id(c)) {
 2926|      0|        case TLS1_3_CK_AES_128_GCM_SHA256:
  ------------------
  |  |  626|      0|#define TLS1_3_CK_AES_128_GCM_SHA256 0x03001301
  ------------------
  |  Branch (2926:9): [True: 0, False: 0]
  ------------------
 2927|      0|        case TLS1_3_CK_AES_256_GCM_SHA384:
  ------------------
  |  |  627|      0|#define TLS1_3_CK_AES_256_GCM_SHA384 0x03001302
  ------------------
  |  Branch (2927:9): [True: 0, False: 0]
  ------------------
 2928|      0|        case TLS1_3_CK_CHACHA20_POLY1305_SHA256:
  ------------------
  |  |  628|      0|#define TLS1_3_CK_CHACHA20_POLY1305_SHA256 0x03001303
  ------------------
  |  Branch (2928:9): [True: 0, False: 0]
  ------------------
 2929|      0|            break;
 2930|      0|        default:
  ------------------
  |  Branch (2930:9): [True: 0, False: 0]
  ------------------
 2931|      0|            return 1;
 2932|      0|        }
 2933|       |
 2934|       |    /*
 2935|       |     * For historical reasons we will allow ECHDE to be selected by a server
 2936|       |     * in SSLv3 if we are a client
 2937|       |     */
 2938|  19.7k|    if (minversion == TLS1_VERSION
  ------------------
  |  |   24|  39.4k|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (2938:9): [True: 2.62k, False: 17.0k]
  ------------------
 2939|  2.62k|        && ecdhe
  ------------------
  |  Branch (2939:12): [True: 0, False: 2.62k]
  ------------------
 2940|      0|        && (c->algorithm_mkey & (SSL_kECDHE | SSL_kECDHEPSK)) != 0)
  ------------------
  |  |   85|      0|#define SSL_kECDHE 0x00000004U
  ------------------
                      && (c->algorithm_mkey & (SSL_kECDHE | SSL_kECDHEPSK)) != 0)
  ------------------
  |  |   94|      0|#define SSL_kECDHEPSK 0x00000080U
  ------------------
  |  Branch (2940:12): [True: 0, False: 0]
  ------------------
 2941|      0|        minversion = SSL3_VERSION;
  ------------------
  |  |   23|      0|#define SSL3_VERSION 0x0300
  ------------------
 2942|       |
 2943|  19.7k|    if (ssl_version_cmp(s, minversion, s->s3.tmp.max_ver) > 0
  ------------------
  |  Branch (2943:9): [True: 0, False: 19.7k]
  ------------------
 2944|  19.7k|        || ssl_version_cmp(s, maxversion, s->s3.tmp.min_ver) < 0)
  ------------------
  |  Branch (2944:12): [True: 0, False: 19.7k]
  ------------------
 2945|      0|        return 1;
 2946|       |
 2947|  19.7k|    return !ssl_security(s, op, c->strength_bits, 0, (void *)c);
 2948|  19.7k|}
tls_use_ticket:
 2951|    219|{
 2952|    219|    if ((s->options & SSL_OP_NO_TICKET))
  ------------------
  |  |  383|    219|#define SSL_OP_NO_TICKET SSL_OP_BIT(14)
  |  |  ------------------
  |  |  |  |  350|    219|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (2952:9): [True: 219, False: 0]
  ------------------
 2953|    219|        return 0;
 2954|      0|    return ssl_security(s, SSL_SECOP_TICKET, 0, 0, NULL);
  ------------------
  |  | 2768|      0|#define SSL_SECOP_TICKET (10 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2737|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
 2955|    219|}
ssl_set_sig_mask:
 3425|    657|{
 3426|    657|    const uint16_t *sigalgs;
 3427|    657|    size_t i, sigalgslen;
 3428|    657|    uint32_t disabled_mask = SSL_aRSA | SSL_aDSS | SSL_aECDSA;
  ------------------
  |  |  108|    657|#define SSL_aRSA 0x00000001U
  ------------------
                  uint32_t disabled_mask = SSL_aRSA | SSL_aDSS | SSL_aECDSA;
  ------------------
  |  |  110|    657|#define SSL_aDSS 0x00000002U
  ------------------
                  uint32_t disabled_mask = SSL_aRSA | SSL_aDSS | SSL_aECDSA;
  ------------------
  |  |  114|    657|#define SSL_aECDSA 0x00000008U
  ------------------
 3429|       |    /*
 3430|       |     * Go through all signature algorithms seeing if we support any
 3431|       |     * in disabled_mask.
 3432|       |     */
 3433|    657|    sigalgslen = tls12_get_psigalgs(s, 1, &sigalgs);
 3434|  19.7k|    for (i = 0; i < sigalgslen; i++, sigalgs++) {
  ------------------
  |  Branch (3434:17): [True: 19.0k, False: 657]
  ------------------
 3435|  19.0k|        const SIGALG_LOOKUP *lu = tls1_lookup_sigalg(SSL_CONNECTION_GET_CTX(s), *sigalgs);
  ------------------
  |  |   26|  19.0k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 3436|  19.0k|        const SSL_CERT_LOOKUP *clu;
 3437|       |
 3438|  19.0k|        if (lu == NULL)
  ------------------
  |  Branch (3438:13): [True: 0, False: 19.0k]
  ------------------
 3439|      0|            continue;
 3440|       |
 3441|  19.0k|        clu = ssl_cert_lookup_by_idx(lu->sig_idx,
 3442|  19.0k|            SSL_CONNECTION_GET_CTX(s));
  ------------------
  |  |   26|  19.0k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 3443|  19.0k|        if (clu == NULL)
  ------------------
  |  Branch (3443:13): [True: 0, False: 19.0k]
  ------------------
 3444|      0|            continue;
 3445|       |
 3446|       |        /* If algorithm is disabled see if we can enable it */
 3447|  19.0k|        if ((clu->amask & disabled_mask) != 0
  ------------------
  |  Branch (3447:13): [True: 1.97k, False: 17.0k]
  ------------------
 3448|  1.97k|            && tls12_sigalg_allowed(s, op, lu))
  ------------------
  |  Branch (3448:16): [True: 1.97k, False: 0]
  ------------------
 3449|  1.97k|            disabled_mask &= ~clu->amask;
 3450|  19.0k|    }
 3451|    657|    *pmask_a |= disabled_mask;
 3452|    657|}
tls12_copy_sigalgs:
 3456|    219|{
 3457|    219|    size_t i;
 3458|    219|    int rv = 0;
 3459|       |
 3460|  6.57k|    for (i = 0; i < psiglen; i++, psig++) {
  ------------------
  |  Branch (3460:17): [True: 6.35k, False: 219]
  ------------------
 3461|  6.35k|        const SIGALG_LOOKUP *lu = tls1_lookup_sigalg(SSL_CONNECTION_GET_CTX(s), *psig);
  ------------------
  |  |   26|  6.35k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 3462|       |
 3463|  6.35k|        if (lu == NULL || !tls_sigalg_compat(s, lu))
  ------------------
  |  Branch (3463:13): [True: 0, False: 6.35k]
  |  Branch (3463:27): [True: 657, False: 5.69k]
  ------------------
 3464|    657|            continue;
 3465|  5.69k|        if (!WPACKET_put_bytes_u16(pkt, *psig))
  ------------------
  |  |  891|  5.69k|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (3465:13): [True: 0, False: 5.69k]
  ------------------
 3466|      0|            return 0;
 3467|       |        /*
 3468|       |         * If TLS 1.3 must have at least one valid TLS 1.3 message
 3469|       |         * signing algorithm: i.e. neither RSA nor SHA1/SHA224
 3470|       |         */
 3471|  5.69k|        if (rv == 0 && (!SSL_CONNECTION_IS_TLS13(s) || (lu->sig != EVP_PKEY_RSA && lu->hash != NID_sha1 && lu->hash != NID_sha224)))
  ------------------
  |  |  265|    438|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|    438|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|    219|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 219, False: 0]
  |  |  ------------------
  |  |  266|    219|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    438|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 219, False: 0]
  |  |  ------------------
  |  |  267|    438|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|    219|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|    219|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 219]
  |  |  ------------------
  ------------------
                      if (rv == 0 && (!SSL_CONNECTION_IS_TLS13(s) || (lu->sig != EVP_PKEY_RSA && lu->hash != NID_sha1 && lu->hash != NID_sha224)))
  ------------------
  |  |   63|      0|#define EVP_PKEY_RSA NID_rsaEncryption
  |  |  ------------------
  |  |  |  |  543|      0|#define NID_rsaEncryption               6
  |  |  ------------------
  ------------------
                      if (rv == 0 && (!SSL_CONNECTION_IS_TLS13(s) || (lu->sig != EVP_PKEY_RSA && lu->hash != NID_sha1 && lu->hash != NID_sha224)))
  ------------------
  |  | 2344|      0|#define NID_sha1                64
  ------------------
                      if (rv == 0 && (!SSL_CONNECTION_IS_TLS13(s) || (lu->sig != EVP_PKEY_RSA && lu->hash != NID_sha1 && lu->hash != NID_sha224)))
  ------------------
  |  | 3302|      0|#define NID_sha224              675
  ------------------
  |  Branch (3471:13): [True: 219, False: 5.47k]
  |  Branch (3471:57): [True: 0, False: 0]
  |  Branch (3471:84): [True: 0, False: 0]
  |  Branch (3471:108): [True: 0, False: 0]
  ------------------
 3472|    219|            rv = 1;
 3473|  5.69k|    }
 3474|    219|    if (rv == 0)
  ------------------
  |  Branch (3474:9): [True: 0, False: 219]
  ------------------
 3475|       |        ERR_raise(ERR_LIB_SSL, SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3476|    219|    return rv;
 3477|    219|}
t1_lib.c:discover_provider_groups:
  357|    220|{
  358|    220|    struct provider_ctx_data_st pgd;
  359|       |
  360|    220|    pgd.ctx = vctx;
  361|    220|    pgd.provider = provider;
  362|    220|    return OSSL_PROVIDER_get_capabilities(provider, "TLS-GROUP",
  363|    220|        add_provider_groups, &pgd);
  364|    220|}
t1_lib.c:add_provider_groups:
  228|  12.9k|{
  229|  12.9k|    struct provider_ctx_data_st *pgd = data;
  230|  12.9k|    SSL_CTX *ctx = pgd->ctx;
  231|  12.9k|    const OSSL_PARAM *p;
  232|  12.9k|    TLS_GROUP_INFO *ginf = NULL;
  233|  12.9k|    EVP_KEYMGMT *keymgmt;
  234|  12.9k|    unsigned int gid;
  235|  12.9k|    unsigned int is_kem = 0;
  236|  12.9k|    int ret = 0;
  237|       |
  238|  12.9k|    if (ctx->group_list_max_len == ctx->group_list_len) {
  ------------------
  |  Branch (238:9): [True: 1.32k, False: 11.6k]
  ------------------
  239|  1.32k|        TLS_GROUP_INFO *tmp = NULL;
  240|       |
  241|  1.32k|        if (ctx->group_list_max_len == 0)
  ------------------
  |  Branch (241:13): [True: 220, False: 1.10k]
  ------------------
  242|    220|            tmp = OPENSSL_malloc_array(TLS_GROUP_LIST_MALLOC_BLOCK_SIZE,
  ------------------
  |  |  110|    220|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  243|  1.32k|                sizeof(TLS_GROUP_INFO));
  244|  1.10k|        else
  245|  1.10k|            tmp = OPENSSL_realloc_array(ctx->group_list,
  ------------------
  |  |  124|  1.10k|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  246|  1.32k|                ctx->group_list_max_len
  247|  1.32k|                    + TLS_GROUP_LIST_MALLOC_BLOCK_SIZE,
  248|  1.32k|                sizeof(TLS_GROUP_INFO));
  249|  1.32k|        if (tmp == NULL)
  ------------------
  |  Branch (249:13): [True: 0, False: 1.32k]
  ------------------
  250|      0|            return 0;
  251|  1.32k|        ctx->group_list = tmp;
  252|  1.32k|        memset(tmp + ctx->group_list_max_len,
  253|  1.32k|            0,
  254|  1.32k|            sizeof(TLS_GROUP_INFO) * TLS_GROUP_LIST_MALLOC_BLOCK_SIZE);
  ------------------
  |  |  225|  1.32k|#define TLS_GROUP_LIST_MALLOC_BLOCK_SIZE 10
  ------------------
  255|  1.32k|        ctx->group_list_max_len += TLS_GROUP_LIST_MALLOC_BLOCK_SIZE;
  ------------------
  |  |  225|  1.32k|#define TLS_GROUP_LIST_MALLOC_BLOCK_SIZE 10
  ------------------
  256|  1.32k|    }
  257|       |
  258|  12.9k|    ginf = &ctx->group_list[ctx->group_list_len];
  259|       |
  260|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_NAME);
  ------------------
  |  |  156|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_NAME "tls-group-name"
  ------------------
  261|  12.9k|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  12.9k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (261:9): [True: 0, False: 12.9k]
  |  Branch (261:22): [True: 0, False: 12.9k]
  ------------------
  262|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  263|      0|        goto err;
  264|      0|    }
  265|  12.9k|    ginf->tlsname = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|  12.9k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  266|  12.9k|    if (ginf->tlsname == NULL)
  ------------------
  |  Branch (266:9): [True: 0, False: 12.9k]
  ------------------
  267|      0|        goto err;
  268|       |
  269|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_NAME_INTERNAL);
  ------------------
  |  |  157|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_NAME_INTERNAL "tls-group-name-internal"
  ------------------
  270|  12.9k|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  12.9k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (270:9): [True: 0, False: 12.9k]
  |  Branch (270:22): [True: 0, False: 12.9k]
  ------------------
  271|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  272|      0|        goto err;
  273|      0|    }
  274|  12.9k|    ginf->realname = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|  12.9k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  275|  12.9k|    if (ginf->realname == NULL)
  ------------------
  |  Branch (275:9): [True: 0, False: 12.9k]
  ------------------
  276|      0|        goto err;
  277|       |
  278|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_ID);
  ------------------
  |  |  150|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_ID "tls-group-id"
  ------------------
  279|  12.9k|    if (p == NULL || !OSSL_PARAM_get_uint(p, &gid) || gid > UINT16_MAX) {
  ------------------
  |  Branch (279:9): [True: 0, False: 12.9k]
  |  Branch (279:22): [True: 0, False: 12.9k]
  |  Branch (279:55): [True: 0, False: 12.9k]
  ------------------
  280|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  281|      0|        goto err;
  282|      0|    }
  283|  12.9k|    ginf->group_id = (uint16_t)gid;
  284|       |
  285|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_ALG);
  ------------------
  |  |  149|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_ALG "tls-group-alg"
  ------------------
  286|  12.9k|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  12.9k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (286:9): [True: 0, False: 12.9k]
  |  Branch (286:22): [True: 0, False: 12.9k]
  ------------------
  287|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  288|      0|        goto err;
  289|      0|    }
  290|  12.9k|    ginf->algorithm = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|  12.9k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  291|  12.9k|    if (ginf->algorithm == NULL)
  ------------------
  |  Branch (291:9): [True: 0, False: 12.9k]
  ------------------
  292|      0|        goto err;
  293|       |
  294|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_SECURITY_BITS);
  ------------------
  |  |  158|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_SECURITY_BITS "tls-group-sec-bits"
  ------------------
  295|  12.9k|    if (p == NULL || !OSSL_PARAM_get_uint(p, &ginf->secbits)) {
  ------------------
  |  Branch (295:9): [True: 0, False: 12.9k]
  |  Branch (295:22): [True: 0, False: 12.9k]
  ------------------
  296|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  297|      0|        goto err;
  298|      0|    }
  299|       |
  300|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_IS_KEM);
  ------------------
  |  |  151|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_IS_KEM "tls-group-is-kem"
  ------------------
  301|  12.9k|    if (p != NULL && (!OSSL_PARAM_get_uint(p, &is_kem) || is_kem > 1)) {
  ------------------
  |  Branch (301:9): [True: 12.9k, False: 0]
  |  Branch (301:23): [True: 0, False: 12.9k]
  |  Branch (301:59): [True: 0, False: 12.9k]
  ------------------
  302|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  303|      0|        goto err;
  304|      0|    }
  305|  12.9k|    ginf->is_kem = 1 & is_kem;
  306|       |
  307|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MIN_TLS);
  ------------------
  |  |  155|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_MIN_TLS "tls-min-tls"
  ------------------
  308|  12.9k|    if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->mintls)) {
  ------------------
  |  Branch (308:9): [True: 0, False: 12.9k]
  |  Branch (308:22): [True: 0, False: 12.9k]
  ------------------
  309|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  310|      0|        goto err;
  311|      0|    }
  312|       |
  313|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MAX_TLS);
  ------------------
  |  |  153|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_MAX_TLS "tls-max-tls"
  ------------------
  314|  12.9k|    if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->maxtls)) {
  ------------------
  |  Branch (314:9): [True: 0, False: 12.9k]
  |  Branch (314:22): [True: 0, False: 12.9k]
  ------------------
  315|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  316|      0|        goto err;
  317|      0|    }
  318|       |
  319|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MIN_DTLS);
  ------------------
  |  |  154|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_MIN_DTLS "tls-min-dtls"
  ------------------
  320|  12.9k|    if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->mindtls)) {
  ------------------
  |  Branch (320:9): [True: 0, False: 12.9k]
  |  Branch (320:22): [True: 0, False: 12.9k]
  ------------------
  321|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  322|      0|        goto err;
  323|      0|    }
  324|       |
  325|  12.9k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MAX_DTLS);
  ------------------
  |  |  152|  12.9k|# define OSSL_CAPABILITY_TLS_GROUP_MAX_DTLS "tls-max-dtls"
  ------------------
  326|  12.9k|    if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->maxdtls)) {
  ------------------
  |  Branch (326:9): [True: 0, False: 12.9k]
  |  Branch (326:22): [True: 0, False: 12.9k]
  ------------------
  327|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  328|      0|        goto err;
  329|      0|    }
  330|       |    /*
  331|       |     * Now check that the algorithm is actually usable for our property query
  332|       |     * string. Regardless of the result we still return success because we have
  333|       |     * successfully processed this group, even though we may decide not to use
  334|       |     * it.
  335|       |     */
  336|  12.9k|    ret = 1;
  337|  12.9k|    ERR_set_mark();
  338|  12.9k|    keymgmt = EVP_KEYMGMT_fetch(ctx->libctx, ginf->algorithm, ctx->propq);
  339|  12.9k|    if (keymgmt != NULL) {
  ------------------
  |  Branch (339:9): [True: 12.9k, False: 0]
  ------------------
  340|       |        /* We have successfully fetched the algorithm, we can use the group. */
  341|  12.9k|        ctx->group_list_len++;
  342|  12.9k|        ginf = NULL;
  343|  12.9k|        EVP_KEYMGMT_free(keymgmt);
  344|  12.9k|    }
  345|  12.9k|    ERR_pop_to_mark();
  346|  12.9k|err:
  347|  12.9k|    if (ginf != NULL) {
  ------------------
  |  Branch (347:9): [True: 0, False: 12.9k]
  ------------------
  348|      0|        OPENSSL_free(ginf->tlsname);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  349|      0|        OPENSSL_free(ginf->realname);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  350|      0|        OPENSSL_free(ginf->algorithm);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  351|       |        ginf->algorithm = ginf->tlsname = ginf->realname = NULL;
  352|      0|    }
  353|  12.9k|    return ret;
  354|  12.9k|}
t1_lib.c:discover_provider_sigalgs:
  666|    220|{
  667|    220|    struct provider_ctx_data_st pgd;
  668|       |
  669|    220|    pgd.ctx = vctx;
  670|    220|    pgd.provider = provider;
  671|    220|    OSSL_PROVIDER_get_capabilities(provider, "TLS-SIGALG",
  672|    220|        add_provider_sigalgs, &pgd);
  673|       |    /*
  674|       |     * Always OK, even if provider doesn't support the capability:
  675|       |     * Reconsider testing retval when legacy sigalgs are also loaded this way.
  676|       |     */
  677|    220|    return 1;
  678|    220|}
t1_lib.c:add_provider_sigalgs:
  386|    660|{
  387|    660|    struct provider_ctx_data_st *pgd = data;
  388|    660|    SSL_CTX *ctx = pgd->ctx;
  389|    660|    OSSL_PROVIDER *provider = pgd->provider;
  390|    660|    const OSSL_PARAM *p;
  391|    660|    TLS_SIGALG_INFO *sinf = NULL;
  392|    660|    EVP_KEYMGMT *keymgmt;
  393|    660|    const char *keytype;
  394|    660|    unsigned int code_point = 0;
  395|    660|    int ret = 0;
  396|       |
  397|    660|    if (ctx->sigalg_list_max_len == ctx->sigalg_list_len) {
  ------------------
  |  Branch (397:9): [True: 220, False: 440]
  ------------------
  398|    220|        TLS_SIGALG_INFO *tmp = NULL;
  399|       |
  400|    220|        if (ctx->sigalg_list_max_len == 0)
  ------------------
  |  Branch (400:13): [True: 220, False: 0]
  ------------------
  401|    220|            tmp = OPENSSL_malloc_array(TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE,
  ------------------
  |  |  110|    220|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  402|    220|                sizeof(TLS_SIGALG_INFO));
  403|      0|        else
  404|      0|            tmp = OPENSSL_realloc_array(ctx->sigalg_list,
  ------------------
  |  |  124|      0|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  405|    220|                ctx->sigalg_list_max_len
  406|    220|                    + TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE,
  407|    220|                sizeof(TLS_SIGALG_INFO));
  408|    220|        if (tmp == NULL)
  ------------------
  |  Branch (408:13): [True: 0, False: 220]
  ------------------
  409|      0|            return 0;
  410|    220|        ctx->sigalg_list = tmp;
  411|    220|        memset(tmp + ctx->sigalg_list_max_len, 0,
  412|    220|            sizeof(TLS_SIGALG_INFO) * TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE);
  ------------------
  |  |  383|    220|#define TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE 10
  ------------------
  413|    220|        ctx->sigalg_list_max_len += TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE;
  ------------------
  |  |  383|    220|#define TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE 10
  ------------------
  414|    220|    }
  415|       |
  416|    660|    sinf = &ctx->sigalg_list[ctx->sigalg_list_len];
  417|       |
  418|       |    /* First, mandatory parameters */
  419|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_NAME);
  ------------------
  |  |  169|    660|# define OSSL_CAPABILITY_TLS_SIGALG_NAME "tls-sigalg-name"
  ------------------
  420|    660|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|    660|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (420:9): [True: 0, False: 660]
  |  Branch (420:22): [True: 0, False: 660]
  ------------------
  421|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  422|      0|        goto err;
  423|      0|    }
  424|    660|    OPENSSL_free(sinf->sigalg_name);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  425|    660|    sinf->sigalg_name = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|    660|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  426|    660|    if (sinf->sigalg_name == NULL)
  ------------------
  |  Branch (426:9): [True: 0, False: 660]
  ------------------
  427|      0|        goto err;
  428|       |
  429|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_IANA_NAME);
  ------------------
  |  |  162|    660|# define OSSL_CAPABILITY_TLS_SIGALG_IANA_NAME "tls-sigalg-iana-name"
  ------------------
  430|    660|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|    660|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (430:9): [True: 0, False: 660]
  |  Branch (430:22): [True: 0, False: 660]
  ------------------
  431|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  432|      0|        goto err;
  433|      0|    }
  434|    660|    OPENSSL_free(sinf->name);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  435|    660|    sinf->name = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|    660|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  436|    660|    if (sinf->name == NULL)
  ------------------
  |  Branch (436:9): [True: 0, False: 660]
  ------------------
  437|      0|        goto err;
  438|       |
  439|    660|    p = OSSL_PARAM_locate_const(params,
  440|    660|        OSSL_CAPABILITY_TLS_SIGALG_CODE_POINT);
  ------------------
  |  |  159|    660|# define OSSL_CAPABILITY_TLS_SIGALG_CODE_POINT "tls-sigalg-code-point"
  ------------------
  441|    660|    if (p == NULL
  ------------------
  |  Branch (441:9): [True: 0, False: 660]
  ------------------
  442|    660|        || !OSSL_PARAM_get_uint(p, &code_point)
  ------------------
  |  Branch (442:12): [True: 0, False: 660]
  ------------------
  443|    660|        || code_point > UINT16_MAX) {
  ------------------
  |  Branch (443:12): [True: 0, False: 660]
  ------------------
  444|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  445|      0|        goto err;
  446|      0|    }
  447|    660|    sinf->code_point = (uint16_t)code_point;
  448|       |
  449|    660|    p = OSSL_PARAM_locate_const(params,
  450|    660|        OSSL_CAPABILITY_TLS_SIGALG_SECURITY_BITS);
  ------------------
  |  |  171|    660|# define OSSL_CAPABILITY_TLS_SIGALG_SECURITY_BITS "tls-sigalg-sec-bits"
  ------------------
  451|    660|    if (p == NULL || !OSSL_PARAM_get_uint(p, &sinf->secbits)) {
  ------------------
  |  Branch (451:9): [True: 0, False: 660]
  |  Branch (451:22): [True: 0, False: 660]
  ------------------
  452|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  453|      0|        goto err;
  454|      0|    }
  455|       |
  456|       |    /* Now, optional parameters */
  457|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_OID);
  ------------------
  |  |  170|    660|# define OSSL_CAPABILITY_TLS_SIGALG_OID "tls-sigalg-oid"
  ------------------
  458|    660|    if (p == NULL) {
  ------------------
  |  Branch (458:9): [True: 0, False: 660]
  ------------------
  459|      0|        sinf->sigalg_oid = NULL;
  460|    660|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|    660|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (460:16): [True: 0, False: 660]
  ------------------
  461|      0|        goto err;
  462|    660|    } else {
  463|    660|        OPENSSL_free(sinf->sigalg_oid);
  ------------------
  |  |  131|    660|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  464|    660|        sinf->sigalg_oid = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|    660|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  465|    660|        if (sinf->sigalg_oid == NULL)
  ------------------
  |  Branch (465:13): [True: 0, False: 660]
  ------------------
  466|      0|            goto err;
  467|    660|    }
  468|       |
  469|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_SIG_NAME);
  ------------------
  |  |  172|    660|# define OSSL_CAPABILITY_TLS_SIGALG_SIG_NAME "tls-sigalg-sig-name"
  ------------------
  470|    660|    if (p == NULL) {
  ------------------
  |  Branch (470:9): [True: 660, False: 0]
  ------------------
  471|    660|        sinf->sig_name = NULL;
  472|    660|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (472:16): [True: 0, False: 0]
  ------------------
  473|      0|        goto err;
  474|      0|    } else {
  475|      0|        OPENSSL_free(sinf->sig_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  476|      0|        sinf->sig_name = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  477|      0|        if (sinf->sig_name == NULL)
  ------------------
  |  Branch (477:13): [True: 0, False: 0]
  ------------------
  478|      0|            goto err;
  479|      0|    }
  480|       |
  481|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_SIG_OID);
  ------------------
  |  |  173|    660|# define OSSL_CAPABILITY_TLS_SIGALG_SIG_OID "tls-sigalg-sig-oid"
  ------------------
  482|    660|    if (p == NULL) {
  ------------------
  |  Branch (482:9): [True: 660, False: 0]
  ------------------
  483|    660|        sinf->sig_oid = NULL;
  484|    660|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (484:16): [True: 0, False: 0]
  ------------------
  485|      0|        goto err;
  486|      0|    } else {
  487|      0|        OPENSSL_free(sinf->sig_oid);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  488|      0|        sinf->sig_oid = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  489|      0|        if (sinf->sig_oid == NULL)
  ------------------
  |  Branch (489:13): [True: 0, False: 0]
  ------------------
  490|      0|            goto err;
  491|      0|    }
  492|       |
  493|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_HASH_NAME);
  ------------------
  |  |  160|    660|# define OSSL_CAPABILITY_TLS_SIGALG_HASH_NAME "tls-sigalg-hash-name"
  ------------------
  494|    660|    if (p == NULL) {
  ------------------
  |  Branch (494:9): [True: 660, False: 0]
  ------------------
  495|    660|        sinf->hash_name = NULL;
  496|    660|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (496:16): [True: 0, False: 0]
  ------------------
  497|      0|        goto err;
  498|      0|    } else {
  499|      0|        OPENSSL_free(sinf->hash_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  500|      0|        sinf->hash_name = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  501|      0|        if (sinf->hash_name == NULL)
  ------------------
  |  Branch (501:13): [True: 0, False: 0]
  ------------------
  502|      0|            goto err;
  503|      0|    }
  504|       |
  505|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_HASH_OID);
  ------------------
  |  |  161|    660|# define OSSL_CAPABILITY_TLS_SIGALG_HASH_OID "tls-sigalg-hash-oid"
  ------------------
  506|    660|    if (p == NULL) {
  ------------------
  |  Branch (506:9): [True: 660, False: 0]
  ------------------
  507|    660|        sinf->hash_oid = NULL;
  508|    660|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (508:16): [True: 0, False: 0]
  ------------------
  509|      0|        goto err;
  510|      0|    } else {
  511|      0|        OPENSSL_free(sinf->hash_oid);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  512|      0|        sinf->hash_oid = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  513|      0|        if (sinf->hash_oid == NULL)
  ------------------
  |  Branch (513:13): [True: 0, False: 0]
  ------------------
  514|      0|            goto err;
  515|      0|    }
  516|       |
  517|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE);
  ------------------
  |  |  163|    660|# define OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE "tls-sigalg-keytype"
  ------------------
  518|    660|    if (p == NULL) {
  ------------------
  |  Branch (518:9): [True: 660, False: 0]
  ------------------
  519|    660|        sinf->keytype = NULL;
  520|    660|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (520:16): [True: 0, False: 0]
  ------------------
  521|      0|        goto err;
  522|      0|    } else {
  523|      0|        OPENSSL_free(sinf->keytype);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  524|      0|        sinf->keytype = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  525|      0|        if (sinf->keytype == NULL)
  ------------------
  |  Branch (525:13): [True: 0, False: 0]
  ------------------
  526|      0|            goto err;
  527|      0|    }
  528|       |
  529|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE_OID);
  ------------------
  |  |  164|    660|# define OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE_OID "tls-sigalg-keytype-oid"
  ------------------
  530|    660|    if (p == NULL) {
  ------------------
  |  Branch (530:9): [True: 660, False: 0]
  ------------------
  531|    660|        sinf->keytype_oid = NULL;
  532|    660|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (532:16): [True: 0, False: 0]
  ------------------
  533|      0|        goto err;
  534|      0|    } else {
  535|      0|        OPENSSL_free(sinf->keytype_oid);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  536|      0|        sinf->keytype_oid = OPENSSL_strdup(p->data);
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  537|      0|        if (sinf->keytype_oid == NULL)
  ------------------
  |  Branch (537:13): [True: 0, False: 0]
  ------------------
  538|      0|            goto err;
  539|      0|    }
  540|       |
  541|       |    /* Optional, not documented prior to 3.5 */
  542|    660|    sinf->mindtls = sinf->maxdtls = -1;
  543|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_MIN_DTLS);
  ------------------
  |  |  167|    660|# define OSSL_CAPABILITY_TLS_SIGALG_MIN_DTLS "tls-min-dtls"
  ------------------
  544|    660|    if (p != NULL && !OSSL_PARAM_get_int(p, &sinf->mindtls)) {
  ------------------
  |  Branch (544:9): [True: 660, False: 0]
  |  Branch (544:22): [True: 0, False: 660]
  ------------------
  545|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  546|      0|        goto err;
  547|      0|    }
  548|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_MAX_DTLS);
  ------------------
  |  |  165|    660|# define OSSL_CAPABILITY_TLS_SIGALG_MAX_DTLS "tls-max-dtls"
  ------------------
  549|    660|    if (p != NULL && !OSSL_PARAM_get_int(p, &sinf->maxdtls)) {
  ------------------
  |  Branch (549:9): [True: 660, False: 0]
  |  Branch (549:22): [True: 0, False: 660]
  ------------------
  550|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  551|      0|        goto err;
  552|      0|    }
  553|       |    /* DTLS version numbers grow downward */
  554|    660|    if ((sinf->maxdtls != 0) && (sinf->maxdtls != -1) && ((sinf->maxdtls > sinf->mindtls))) {
  ------------------
  |  Branch (554:9): [True: 660, False: 0]
  |  Branch (554:33): [True: 0, False: 660]
  |  Branch (554:58): [True: 0, False: 0]
  ------------------
  555|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  556|      0|        goto err;
  557|      0|    }
  558|       |    /* No provider sigalgs are supported in DTLS, reset after checking. */
  559|    660|    sinf->mindtls = sinf->maxdtls = -1;
  560|       |
  561|       |    /* The remaining parameters below are mandatory again */
  562|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_MIN_TLS);
  ------------------
  |  |  168|    660|# define OSSL_CAPABILITY_TLS_SIGALG_MIN_TLS "tls-min-tls"
  ------------------
  563|    660|    if (p == NULL || !OSSL_PARAM_get_int(p, &sinf->mintls)) {
  ------------------
  |  Branch (563:9): [True: 0, False: 660]
  |  Branch (563:22): [True: 0, False: 660]
  ------------------
  564|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  565|      0|        goto err;
  566|      0|    }
  567|    660|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_MAX_TLS);
  ------------------
  |  |  166|    660|# define OSSL_CAPABILITY_TLS_SIGALG_MAX_TLS "tls-max-tls"
  ------------------
  568|    660|    if (p == NULL || !OSSL_PARAM_get_int(p, &sinf->maxtls)) {
  ------------------
  |  Branch (568:9): [True: 0, False: 660]
  |  Branch (568:22): [True: 0, False: 660]
  ------------------
  569|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  570|      0|        goto err;
  571|      0|    }
  572|    660|    if ((sinf->maxtls != 0) && (sinf->maxtls != -1) && ((sinf->maxtls < sinf->mintls))) {
  ------------------
  |  Branch (572:9): [True: 0, False: 660]
  |  Branch (572:32): [True: 0, False: 0]
  |  Branch (572:56): [True: 0, False: 0]
  ------------------
  573|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  574|      0|        goto err;
  575|      0|    }
  576|    660|    if ((sinf->mintls != 0) && (sinf->mintls != -1) && ((sinf->mintls > TLS1_3_VERSION)))
  ------------------
  |  |   27|    660|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (576:9): [True: 660, False: 0]
  |  Branch (576:32): [True: 660, False: 0]
  |  Branch (576:56): [True: 0, False: 660]
  ------------------
  577|      0|        sinf->mintls = sinf->maxtls = -1;
  578|    660|    if ((sinf->maxtls != 0) && (sinf->maxtls != -1) && ((sinf->maxtls < TLS1_3_VERSION)))
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (578:9): [True: 0, False: 660]
  |  Branch (578:32): [True: 0, False: 0]
  |  Branch (578:56): [True: 0, False: 0]
  ------------------
  579|      0|        sinf->mintls = sinf->maxtls = -1;
  580|       |
  581|       |    /* Ignore unusable sigalgs */
  582|    660|    if (sinf->mintls == -1 && sinf->mindtls == -1) {
  ------------------
  |  Branch (582:9): [True: 0, False: 660]
  |  Branch (582:31): [True: 0, False: 0]
  ------------------
  583|      0|        ret = 1;
  584|      0|        goto err;
  585|      0|    }
  586|       |
  587|       |    /*
  588|       |     * Now check that the algorithm is actually usable for our property query
  589|       |     * string. Regardless of the result we still return success because we have
  590|       |     * successfully processed this signature, even though we may decide not to
  591|       |     * use it.
  592|       |     */
  593|    660|    ret = 1;
  594|    660|    ERR_set_mark();
  595|    660|    keytype = inferred_keytype(sinf);
  596|    660|    keymgmt = EVP_KEYMGMT_fetch(ctx->libctx, keytype, ctx->propq);
  597|    660|    if (keymgmt != NULL) {
  ------------------
  |  Branch (597:9): [True: 660, False: 0]
  ------------------
  598|       |        /*
  599|       |         * We have successfully fetched the algorithm - however if the provider
  600|       |         * doesn't match this one then we ignore it.
  601|       |         *
  602|       |         * Note: We're cheating a little here. Technically if the same algorithm
  603|       |         * is available from more than one provider then it is undefined which
  604|       |         * implementation you will get back. Theoretically this could be
  605|       |         * different every time...we assume here that you'll always get the
  606|       |         * same one back if you repeat the exact same fetch. Is this a reasonable
  607|       |         * assumption to make (in which case perhaps we should document this
  608|       |         * behaviour)?
  609|       |         */
  610|    660|        if (EVP_KEYMGMT_get0_provider(keymgmt) == provider) {
  ------------------
  |  Branch (610:13): [True: 660, False: 0]
  ------------------
  611|       |            /*
  612|       |             * We have a match - so we could use this signature;
  613|       |             * Check proper object registration first, though.
  614|       |             * Don't care about return value as this may have been
  615|       |             * done within providers or previous calls to
  616|       |             * add_provider_sigalgs.
  617|       |             */
  618|    660|            OBJ_create(sinf->sigalg_oid, sinf->sigalg_name, NULL);
  619|       |            /* sanity check: Without successful registration don't use alg */
  620|    660|            if ((OBJ_txt2nid(sinf->sigalg_name) == NID_undef) || (OBJ_nid2obj(OBJ_txt2nid(sinf->sigalg_name)) == NULL)) {
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
  |  Branch (620:17): [True: 0, False: 660]
  |  Branch (620:66): [True: 0, False: 660]
  ------------------
  621|      0|                ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  622|      0|                goto err;
  623|      0|            }
  624|    660|            if (sinf->sig_name != NULL)
  ------------------
  |  Branch (624:17): [True: 0, False: 660]
  ------------------
  625|      0|                OBJ_create(sinf->sig_oid, sinf->sig_name, NULL);
  626|    660|            if (sinf->keytype != NULL)
  ------------------
  |  Branch (626:17): [True: 0, False: 660]
  ------------------
  627|      0|                OBJ_create(sinf->keytype_oid, sinf->keytype, NULL);
  628|    660|            if (sinf->hash_name != NULL)
  ------------------
  |  Branch (628:17): [True: 0, False: 660]
  ------------------
  629|      0|                OBJ_create(sinf->hash_oid, sinf->hash_name, NULL);
  630|    660|            OBJ_add_sigid(OBJ_txt2nid(sinf->sigalg_name),
  631|    660|                (sinf->hash_name != NULL
  ------------------
  |  Branch (631:18): [True: 0, False: 660]
  ------------------
  632|    660|                        ? OBJ_txt2nid(sinf->hash_name)
  633|    660|                        : NID_undef),
  ------------------
  |  |   18|    660|#define NID_undef                       0
  ------------------
  634|    660|                OBJ_txt2nid(keytype));
  635|    660|            ctx->sigalg_list_len++;
  636|    660|            sinf = NULL;
  637|    660|        }
  638|    660|        EVP_KEYMGMT_free(keymgmt);
  639|    660|    }
  640|    660|    ERR_pop_to_mark();
  641|    660|err:
  642|    660|    if (sinf != NULL) {
  ------------------
  |  Branch (642:9): [True: 0, False: 660]
  ------------------
  643|      0|        OPENSSL_free(sinf->name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  644|      0|        sinf->name = NULL;
  645|      0|        OPENSSL_free(sinf->sigalg_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  646|      0|        sinf->sigalg_name = NULL;
  647|      0|        OPENSSL_free(sinf->sigalg_oid);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  648|      0|        sinf->sigalg_oid = NULL;
  649|      0|        OPENSSL_free(sinf->sig_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  650|      0|        sinf->sig_name = NULL;
  651|      0|        OPENSSL_free(sinf->sig_oid);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  652|      0|        sinf->sig_oid = NULL;
  653|      0|        OPENSSL_free(sinf->hash_name);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  654|      0|        sinf->hash_name = NULL;
  655|      0|        OPENSSL_free(sinf->hash_oid);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  656|      0|        sinf->hash_oid = NULL;
  657|      0|        OPENSSL_free(sinf->keytype);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  658|      0|        sinf->keytype = NULL;
  659|      0|        OPENSSL_free(sinf->keytype_oid);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  660|       |        sinf->keytype_oid = NULL;
  661|      0|    }
  662|    660|    return ret;
  663|    660|}
t1_lib.c:inferred_keytype:
  375|  1.32k|{
  376|  1.32k|    return (sinf->keytype != NULL
  ------------------
  |  Branch (376:13): [True: 0, False: 1.32k]
  ------------------
  377|  1.32k|            ? sinf->keytype
  378|  1.32k|            : (sinf->sig_name != NULL
  ------------------
  |  Branch (378:16): [True: 0, False: 1.32k]
  ------------------
  379|  1.32k|                      ? sinf->sig_name
  380|  1.32k|                      : sinf->sigalg_name));
  381|  1.32k|}
t1_lib.c:tuple_cb:
 1562|    880|{
 1563|    880|    gid_cb_st *garg = arg;
 1564|    880|    int retval = 1; /* We assume success */
 1565|    880|    char *restored_tuple_string;
 1566|       |
 1567|       |    /* Sanity checks */
 1568|    880|    if (garg == NULL || tuple == NULL || len <= 0) {
  ------------------
  |  Branch (1568:9): [True: 0, False: 880]
  |  Branch (1568:25): [True: 0, False: 880]
  |  Branch (1568:42): [True: 0, False: 880]
  ------------------
 1569|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_UNSUPPORTED_CONFIG_VALUE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1570|      0|        return 0;
 1571|      0|    }
 1572|       |
 1573|    880|    if (garg->inner && !garg->first && !close_tuple(garg))
  ------------------
  |  Branch (1573:9): [True: 0, False: 880]
  |  Branch (1573:24): [True: 0, False: 0]
  |  Branch (1573:40): [True: 0, False: 0]
  ------------------
 1574|      0|        return 0;
 1575|    880|    garg->first = 0;
 1576|       |
 1577|       |    /* Convert to \0-terminated string */
 1578|    880|    restored_tuple_string = OPENSSL_malloc(len + 1 /* \0 */);
  ------------------
  |  |  106|    880|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1579|    880|    if (restored_tuple_string == NULL)
  ------------------
  |  Branch (1579:9): [True: 0, False: 880]
  ------------------
 1580|      0|        return 0;
 1581|    880|    memcpy(restored_tuple_string, tuple, len);
 1582|    880|    restored_tuple_string[len] = '\0';
 1583|       |
 1584|       |    /* Analyze group list of this tuple */
 1585|    880|    retval = CONF_parse_list(restored_tuple_string, GROUP_DELIMITER_CHARACTER, 1, gid_cb, arg);
  ------------------
  |  | 1208|    880|#define GROUP_DELIMITER_CHARACTER ':'
  ------------------
 1586|       |
 1587|       |    /* We don't need the \o-terminated string anymore */
 1588|    880|    OPENSSL_free(restored_tuple_string);
  ------------------
  |  |  131|    880|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1589|       |
 1590|    880|    if (!garg->inner && !close_tuple(garg))
  ------------------
  |  Branch (1590:9): [True: 880, False: 0]
  |  Branch (1590:25): [True: 0, False: 880]
  ------------------
 1591|      0|        return 0;
 1592|    880|    return retval;
 1593|    880|}
t1_lib.c:close_tuple:
 1548|    880|{
 1549|    880|    size_t gidcnt = garg->tuplcnt_arr[garg->tplcnt];
 1550|       |
 1551|    880|    if (gidcnt == 0)
  ------------------
  |  Branch (1551:9): [True: 0, False: 880]
  ------------------
 1552|      0|        return 1;
 1553|    880|    if (!grow_tuples(garg))
  ------------------
  |  Branch (1553:9): [True: 0, False: 880]
  ------------------
 1554|      0|        return 0;
 1555|       |
 1556|    880|    garg->tuplcnt_arr[++garg->tplcnt] = 0;
 1557|    880|    return 1;
 1558|    880|}
t1_lib.c:grow_tuples:
 1532|    880|{
 1533|    880|    if (garg->tplcnt == garg->tplmax) {
  ------------------
  |  Branch (1533:9): [True: 0, False: 880]
  ------------------
 1534|      0|        size_t newcnt = garg->tplmax + GROUPLIST_INCREMENT;
  ------------------
  |  | 1193|      0|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1535|      0|        size_t *tmp = OPENSSL_realloc_array(garg->tuplcnt_arr,
  ------------------
  |  |  124|      0|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1536|      0|            newcnt, sizeof(*garg->tuplcnt_arr));
 1537|       |
 1538|      0|        if (tmp == NULL)
  ------------------
  |  Branch (1538:13): [True: 0, False: 0]
  ------------------
 1539|      0|            return 0;
 1540|       |
 1541|      0|        garg->tplmax = newcnt;
 1542|      0|        garg->tuplcnt_arr = tmp;
 1543|      0|    }
 1544|    880|    return 1;
 1545|    880|}
t1_lib.c:gid_cb:
 1264|  1.76k|{
 1265|  1.76k|    gid_cb_st *garg = arg;
 1266|  1.76k|    size_t i, j, k;
 1267|  1.76k|    uint16_t gid = 0;
 1268|  1.76k|    int found_group = 0;
 1269|  1.76k|    char etmp[GROUP_NAME_BUFFER_LENGTH];
 1270|  1.76k|    int retval = 1; /* We assume success */
 1271|  1.76k|    const char *current_prefix;
 1272|  1.76k|    int ignore_unknown = 0;
 1273|  1.76k|    int add_keyshare = 0;
 1274|  1.76k|    int remove_group = 0;
 1275|  1.76k|    size_t restored_prefix_index = 0;
 1276|  1.76k|    char *restored_default_group_string;
 1277|  1.76k|    int continue_while_loop = 1;
 1278|       |
 1279|       |    /* Sanity checks */
 1280|  1.76k|    if (garg == NULL || elem == NULL || len <= 0) {
  ------------------
  |  Branch (1280:9): [True: 0, False: 1.76k]
  |  Branch (1280:25): [True: 0, False: 1.76k]
  |  Branch (1280:41): [True: 0, False: 1.76k]
  ------------------
 1281|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_UNSUPPORTED_CONFIG_VALUE);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1282|      0|        return 0;
 1283|      0|    }
 1284|       |
 1285|       |    /* Check the possible prefixes (remark: Leading and trailing spaces already cleared) */
 1286|  3.96k|    while (continue_while_loop && len > 0
  ------------------
  |  Branch (1286:12): [True: 3.96k, False: 0]
  |  Branch (1286:35): [True: 3.96k, False: 0]
  ------------------
 1287|  3.96k|        && ((current_prefix = strchr(prefixes, elem[0])) != NULL
  ------------------
  |  Branch (1287:13): [True: 2.20k, False: 1.76k]
  ------------------
 1288|  2.20k|            || OPENSSL_strncasecmp(current_prefix = (char *)DEFAULT_GROUPNAME_FIRST_CHARACTER, elem, 1) == 0)) {
  ------------------
  |  Branch (1288:16): [True: 0, False: 1.76k]
  ------------------
 1289|       |
 1290|  2.20k|        switch (*current_prefix) {
 1291|      0|        case TUPLE_DELIMITER_CHARACTER:
  ------------------
  |  | 1204|      0|#define TUPLE_DELIMITER_CHARACTER '/'
  ------------------
  |  Branch (1291:9): [True: 0, False: 2.20k]
  ------------------
 1292|       |            /* tuple delimiter not allowed here -> syntax error */
 1293|      0|            return -1;
 1294|      0|            break;
 1295|      0|        case GROUP_DELIMITER_CHARACTER:
  ------------------
  |  | 1208|      0|#define GROUP_DELIMITER_CHARACTER ':'
  ------------------
  |  Branch (1295:9): [True: 0, False: 2.20k]
  ------------------
 1296|      0|            return -1; /* Not a valid prefix for a single group name-> syntax error */
 1297|      0|            break;
 1298|    440|        case KEY_SHARE_INDICATOR_CHARACTER:
  ------------------
  |  | 1216|    440|#define KEY_SHARE_INDICATOR_CHARACTER '*'
  ------------------
  |  Branch (1298:9): [True: 440, False: 1.76k]
  ------------------
 1299|    440|            if (add_keyshare)
  ------------------
  |  Branch (1299:17): [True: 0, False: 440]
  ------------------
 1300|      0|                return -1; /* Only single key share prefix allowed -> syntax error */
 1301|    440|            add_keyshare = 1;
 1302|    440|            ++elem;
 1303|    440|            --len;
 1304|    440|            break;
 1305|      0|        case REMOVE_GROUP_INDICATOR_CHARACTER:
  ------------------
  |  | 1220|      0|#define REMOVE_GROUP_INDICATOR_CHARACTER '-'
  ------------------
  |  Branch (1305:9): [True: 0, False: 2.20k]
  ------------------
 1306|      0|            if (remove_group)
  ------------------
  |  Branch (1306:17): [True: 0, False: 0]
  ------------------
 1307|      0|                return -1; /* Only single remove group prefix allowed -> syntax error */
 1308|      0|            remove_group = 1;
 1309|      0|            ++elem;
 1310|      0|            --len;
 1311|      0|            break;
 1312|  1.76k|        case IGNORE_UNKNOWN_GROUP_CHARACTER:
  ------------------
  |  | 1212|  1.76k|#define IGNORE_UNKNOWN_GROUP_CHARACTER '?'
  ------------------
  |  Branch (1312:9): [True: 1.76k, False: 440]
  ------------------
 1313|  1.76k|            if (ignore_unknown)
  ------------------
  |  Branch (1313:17): [True: 0, False: 1.76k]
  ------------------
 1314|      0|                return -1; /* Only single ? allowed -> syntax error */
 1315|  1.76k|            ignore_unknown = 1;
 1316|  1.76k|            ++elem;
 1317|  1.76k|            --len;
 1318|  1.76k|            break;
 1319|      0|        default:
  ------------------
  |  Branch (1319:9): [True: 0, False: 2.20k]
  ------------------
 1320|       |            /*
 1321|       |             * Check whether a DEFAULT[_XYZ] 'pseudo group' (= a built-in
 1322|       |             * list of groups) should be added
 1323|       |             */
 1324|      0|            for (i = 0; i < OSSL_NELEM(default_group_strings); i++) {
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1324:25): [True: 0, False: 0]
  ------------------
 1325|      0|                if ((size_t)len == (strlen(default_group_strings[i].list_name))
  ------------------
  |  Branch (1325:21): [True: 0, False: 0]
  ------------------
 1326|      0|                    && OPENSSL_strncasecmp(default_group_strings[i].list_name, elem, len) == 0) {
  ------------------
  |  Branch (1326:24): [True: 0, False: 0]
  ------------------
 1327|      0|                    int saved_first;
 1328|       |
 1329|       |                    /*
 1330|       |                     * We're asked to insert an entire list of groups from a
 1331|       |                     * DEFAULT[_XYZ] 'pseudo group' which we do by
 1332|       |                     * recursively calling this function (indirectly via
 1333|       |                     * CONF_parse_list and tuple_cb); essentially, we treat a DEFAULT
 1334|       |                     * group string like a tuple which is appended to the current tuple
 1335|       |                     * rather then starting a new tuple.
 1336|       |                     */
 1337|      0|                    if (ignore_unknown || remove_group)
  ------------------
  |  Branch (1337:25): [True: 0, False: 0]
  |  Branch (1337:43): [True: 0, False: 0]
  ------------------
 1338|      0|                        return -1; /* removal or ignore not allowed here -> syntax error */
 1339|       |
 1340|       |                    /*
 1341|       |                     * First, we restore any keyshare prefix in a new zero-terminated string
 1342|       |                     * (if not already present)
 1343|       |                     */
 1344|      0|                    restored_default_group_string = OPENSSL_malloc(1 /* max prefix length */ + strlen(default_group_strings[i].group_string) + 1 /* \0 */);
  ------------------
  |  |  106|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1345|      0|                    if (restored_default_group_string == NULL)
  ------------------
  |  Branch (1345:25): [True: 0, False: 0]
  ------------------
 1346|      0|                        return 0;
 1347|      0|                    if (add_keyshare
  ------------------
  |  Branch (1347:25): [True: 0, False: 0]
  ------------------
 1348|       |                        /* Remark: we tolerate a duplicated keyshare indicator here */
 1349|      0|                        && default_group_strings[i].group_string[0]
  ------------------
  |  Branch (1349:28): [True: 0, False: 0]
  ------------------
 1350|      0|                            != KEY_SHARE_INDICATOR_CHARACTER)
  ------------------
  |  | 1216|      0|#define KEY_SHARE_INDICATOR_CHARACTER '*'
  ------------------
 1351|      0|                        restored_default_group_string[restored_prefix_index++] = KEY_SHARE_INDICATOR_CHARACTER;
  ------------------
  |  | 1216|      0|#define KEY_SHARE_INDICATOR_CHARACTER '*'
  ------------------
 1352|       |
 1353|      0|                    memcpy(restored_default_group_string + restored_prefix_index,
 1354|      0|                        default_group_strings[i].group_string,
 1355|      0|                        strlen(default_group_strings[i].group_string));
 1356|      0|                    restored_default_group_string[strlen(default_group_strings[i].group_string) + restored_prefix_index] = '\0';
 1357|       |                    /*
 1358|       |                     * Append first tuple of result to current tuple, and don't
 1359|       |                     * terminate the last tuple until we return to a top-level
 1360|       |                     * tuple_cb.
 1361|       |                     */
 1362|      0|                    saved_first = garg->first;
 1363|      0|                    garg->inner = garg->first = 1;
 1364|      0|                    retval = CONF_parse_list(restored_default_group_string,
 1365|      0|                        TUPLE_DELIMITER_CHARACTER, 1, tuple_cb, garg);
  ------------------
  |  | 1204|      0|#define TUPLE_DELIMITER_CHARACTER '/'
  ------------------
 1366|      0|                    garg->inner = 0;
 1367|      0|                    garg->first = saved_first;
 1368|       |                    /* We don't need the \0-terminated string anymore */
 1369|      0|                    OPENSSL_free(restored_default_group_string);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1370|       |
 1371|      0|                    return retval;
 1372|      0|                }
 1373|      0|            }
 1374|       |            /*
 1375|       |             * If we reached this point, a group name started with a 'd' or 'D', but no request
 1376|       |             * for a DEFAULT[_XYZ] 'pseudo group' was detected, hence processing of the group
 1377|       |             * name can continue as usual (= the while loop checking prefixes can end)
 1378|       |             */
 1379|      0|            continue_while_loop = 0;
 1380|      0|            break;
 1381|  2.20k|        }
 1382|  2.20k|    }
 1383|       |
 1384|  1.76k|    if (len == 0)
  ------------------
  |  Branch (1384:9): [True: 0, False: 1.76k]
  ------------------
 1385|      0|        return -1; /* Seems we have prefxes without a group name -> syntax error */
 1386|       |
 1387|       |    /* Memory management in case more groups are present compared to initial allocation */
 1388|  1.76k|    if (garg->gidcnt == garg->gidmax) {
  ------------------
  |  Branch (1388:9): [True: 0, False: 1.76k]
  ------------------
 1389|      0|        uint16_t *tmp = OPENSSL_realloc_array(garg->gid_arr,
  ------------------
  |  |  124|      0|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1390|      0|            garg->gidmax + GROUPLIST_INCREMENT,
 1391|      0|            sizeof(*garg->gid_arr));
 1392|       |
 1393|      0|        if (tmp == NULL)
  ------------------
  |  Branch (1393:13): [True: 0, False: 0]
  ------------------
 1394|      0|            return 0;
 1395|       |
 1396|      0|        garg->gidmax += GROUPLIST_INCREMENT;
  ------------------
  |  | 1193|      0|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1397|      0|        garg->gid_arr = tmp;
 1398|      0|    }
 1399|       |    /* Memory management for key share groups */
 1400|  1.76k|    if (garg->ksidcnt == garg->ksidmax) {
  ------------------
  |  Branch (1400:9): [True: 0, False: 1.76k]
  ------------------
 1401|      0|        uint16_t *tmp = OPENSSL_realloc_array(garg->ksid_arr,
  ------------------
  |  |  124|      0|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1402|      0|            garg->ksidmax + GROUPLIST_INCREMENT,
 1403|      0|            sizeof(*garg->ksid_arr));
 1404|       |
 1405|      0|        if (tmp == NULL)
  ------------------
  |  Branch (1405:13): [True: 0, False: 0]
  ------------------
 1406|      0|            return 0;
 1407|      0|        garg->ksidmax += GROUPLIST_INCREMENT;
  ------------------
  |  | 1193|      0|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1408|      0|        garg->ksid_arr = tmp;
 1409|      0|    }
 1410|       |
 1411|  1.76k|    if (len > (int)(sizeof(etmp) - 1))
  ------------------
  |  Branch (1411:9): [True: 0, False: 1.76k]
  ------------------
 1412|      0|        return -1; /* group name to long  -> syntax error */
 1413|       |
 1414|       |    /*
 1415|       |     * Prepare addition or removal of a single group by converting
 1416|       |     * a group name into its groupID equivalent
 1417|       |     */
 1418|       |
 1419|       |    /* Create a \0-terminated string and get the gid for this group if possible */
 1420|  1.76k|    memcpy(etmp, elem, len);
 1421|  1.76k|    etmp[len] = 0;
 1422|       |
 1423|       |    /* Get the groupID */
 1424|  1.76k|    gid = tls1_group_name2id(garg->ctx, etmp);
 1425|       |    /*
 1426|       |     * Handle the case where no valid groupID was returned
 1427|       |     * e.g. for an unknown group, which we'd ignore (only) if relevant prefix was set
 1428|       |     */
 1429|  1.76k|    if (gid == 0) {
  ------------------
  |  Branch (1429:9): [True: 0, False: 1.76k]
  ------------------
 1430|       |        /* Is it one of the GOST groups ? */
 1431|      0|        for (i = 0; i < OSSL_NELEM(name2id_arr); i++) {
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1431:21): [True: 0, False: 0]
  ------------------
 1432|      0|            if (OPENSSL_strcasecmp(etmp, name2id_arr[i].group_name) == 0) {
  ------------------
  |  Branch (1432:17): [True: 0, False: 0]
  ------------------
 1433|      0|                gid = name2id_arr[i].groupID;
 1434|      0|                break;
 1435|      0|            }
 1436|      0|        }
 1437|      0|        if (gid == 0) { /* still not found */
  ------------------
  |  Branch (1437:13): [True: 0, False: 0]
  ------------------
 1438|       |            /* Unknown group - ignore if ignore_unknown; trigger error otherwise */
 1439|      0|            retval = ignore_unknown;
 1440|      0|            goto done;
 1441|      0|        }
 1442|      0|    }
 1443|       |
 1444|       |    /* Make sure that at least one provider is supporting this groupID */
 1445|  1.76k|    found_group = 0;
 1446|  9.90k|    for (j = 0; j < garg->ctx->group_list_len; j++)
  ------------------
  |  Branch (1446:17): [True: 9.90k, False: 0]
  ------------------
 1447|  9.90k|        if (garg->ctx->group_list[j].group_id == gid) {
  ------------------
  |  Branch (1447:13): [True: 1.76k, False: 8.14k]
  ------------------
 1448|  1.76k|            found_group = 1;
 1449|  1.76k|            break;
 1450|  1.76k|        }
 1451|       |
 1452|       |    /*
 1453|       |     * No provider supports this group - ignore if
 1454|       |     * ignore_unknown; trigger error otherwise
 1455|       |     */
 1456|  1.76k|    if (found_group == 0) {
  ------------------
  |  Branch (1456:9): [True: 0, False: 1.76k]
  ------------------
 1457|      0|        retval = ignore_unknown;
 1458|      0|        goto done;
 1459|      0|    }
 1460|       |    /* Remove group (and keyshare) from anywhere in the list if present, ignore if not present */
 1461|  1.76k|    if (remove_group) {
  ------------------
  |  Branch (1461:9): [True: 0, False: 1.76k]
  ------------------
 1462|       |        /* Is the current group specified anywhere in the entire list so far? */
 1463|      0|        found_group = 0;
 1464|      0|        for (i = 0; i < garg->gidcnt; i++)
  ------------------
  |  Branch (1464:21): [True: 0, False: 0]
  ------------------
 1465|      0|            if (garg->gid_arr[i] == gid) {
  ------------------
  |  Branch (1465:17): [True: 0, False: 0]
  ------------------
 1466|      0|                found_group = 1;
 1467|      0|                break;
 1468|      0|            }
 1469|       |        /* The group to remove is at position i in the list of (zero indexed) groups */
 1470|      0|        if (found_group) {
  ------------------
  |  Branch (1470:13): [True: 0, False: 0]
  ------------------
 1471|       |            /* We remove that group from its position (which is at i)... */
 1472|      0|            for (j = i; j < (garg->gidcnt - 1); j++)
  ------------------
  |  Branch (1472:25): [True: 0, False: 0]
  ------------------
 1473|      0|                garg->gid_arr[j] = garg->gid_arr[j + 1]; /* ...shift remaining groups left ... */
 1474|      0|            garg->gidcnt--; /* ..and update the book keeping for the number of groups */
 1475|       |
 1476|       |            /*
 1477|       |             * We also must update the number of groups either in a previous tuple (which we
 1478|       |             * must identify and check whether it becomes empty due to the deletion) or in
 1479|       |             * the current tuple, pending where the deleted group resides
 1480|       |             */
 1481|      0|            k = 0;
 1482|      0|            for (j = 0; j < garg->tplcnt; j++) {
  ------------------
  |  Branch (1482:25): [True: 0, False: 0]
  ------------------
 1483|      0|                k += garg->tuplcnt_arr[j];
 1484|       |                /* Remark: i is zero-indexed, k is one-indexed */
 1485|      0|                if (k > i) { /* remove from one of the previous tuples */
  ------------------
  |  Branch (1485:21): [True: 0, False: 0]
  ------------------
 1486|      0|                    garg->tuplcnt_arr[j]--;
 1487|      0|                    break; /* We took care not to have group duplicates, hence we can stop here */
 1488|      0|                }
 1489|      0|            }
 1490|      0|            if (k <= i) /* remove from current tuple */
  ------------------
  |  Branch (1490:17): [True: 0, False: 0]
  ------------------
 1491|      0|                garg->tuplcnt_arr[j]--;
 1492|       |
 1493|       |            /* We also remove the group from the list of keyshares (if present) */
 1494|      0|            found_group = 0;
 1495|      0|            for (i = 0; i < garg->ksidcnt; i++)
  ------------------
  |  Branch (1495:25): [True: 0, False: 0]
  ------------------
 1496|      0|                if (garg->ksid_arr[i] == gid) {
  ------------------
  |  Branch (1496:21): [True: 0, False: 0]
  ------------------
 1497|      0|                    found_group = 1;
 1498|      0|                    break;
 1499|      0|                }
 1500|      0|            if (found_group) {
  ------------------
  |  Branch (1500:17): [True: 0, False: 0]
  ------------------
 1501|       |                /* Found, hence we remove that keyshare from its position (which is at i)... */
 1502|      0|                for (j = i; j < (garg->ksidcnt - 1); j++)
  ------------------
  |  Branch (1502:29): [True: 0, False: 0]
  ------------------
 1503|      0|                    garg->ksid_arr[j] = garg->ksid_arr[j + 1]; /* shift remaining key shares */
 1504|       |                /* ... and update the book keeping */
 1505|      0|                garg->ksidcnt--;
 1506|      0|            }
 1507|      0|        }
 1508|  1.76k|    } else { /* Processing addition of a single new group */
 1509|       |
 1510|       |        /* Check for duplicates */
 1511|  7.92k|        for (i = 0; i < garg->gidcnt; i++)
  ------------------
  |  Branch (1511:21): [True: 6.16k, False: 1.76k]
  ------------------
 1512|  6.16k|            if (garg->gid_arr[i] == gid) {
  ------------------
  |  Branch (1512:17): [True: 0, False: 6.16k]
  ------------------
 1513|       |                /* Duplicate group anywhere in the list of groups - ignore */
 1514|      0|                goto done;
 1515|      0|            }
 1516|       |
 1517|       |        /* Add the current group to the 'flat' list of groups */
 1518|  1.76k|        garg->gid_arr[garg->gidcnt++] = gid;
 1519|       |        /* and update the book keeping for the number of groups in current tuple */
 1520|  1.76k|        garg->tuplcnt_arr[garg->tplcnt]++;
 1521|       |
 1522|       |        /* We want to add a key share for the current group */
 1523|  1.76k|        if (add_keyshare)
  ------------------
  |  Branch (1523:13): [True: 440, False: 1.32k]
  ------------------
 1524|    440|            garg->ksid_arr[garg->ksidcnt++] = gid;
 1525|  1.76k|    }
 1526|       |
 1527|  1.76k|done:
 1528|  1.76k|    return retval;
 1529|  1.76k|}
t1_lib.c:tls1_group_name2id:
  710|  1.76k|{
  711|  1.76k|    size_t i;
  712|       |
  713|  9.90k|    for (i = 0; i < ctx->group_list_len; i++) {
  ------------------
  |  Branch (713:17): [True: 9.90k, False: 0]
  ------------------
  714|  9.90k|        if (OPENSSL_strcasecmp(ctx->group_list[i].tlsname, name) == 0
  ------------------
  |  Branch (714:13): [True: 1.76k, False: 8.14k]
  ------------------
  715|  8.14k|            || OPENSSL_strcasecmp(ctx->group_list[i].realname, name) == 0)
  ------------------
  |  Branch (715:16): [True: 0, False: 8.14k]
  ------------------
  716|  1.76k|            return ctx->group_list[i].group_id;
  717|  9.90k|    }
  718|       |
  719|      0|    return 0;
  720|  1.76k|}
t1_lib.c:tls1_lookup_sigalg:
 2391|  25.4k|{
 2392|  25.4k|    size_t i;
 2393|  25.4k|    const SIGALG_LOOKUP *lu = ctx->sigalg_lookup_cache;
 2394|       |
 2395|   394k|    for (i = 0; i < ctx->sigalg_lookup_cache_len; lu++, i++) {
  ------------------
  |  Branch (2395:17): [True: 394k, False: 0]
  ------------------
 2396|   394k|        if (lu->sigalg == sigalg) {
  ------------------
  |  Branch (2396:13): [True: 25.4k, False: 368k]
  ------------------
 2397|  25.4k|            if (!lu->available)
  ------------------
  |  Branch (2397:17): [True: 0, False: 25.4k]
  ------------------
 2398|      0|                return NULL;
 2399|  25.4k|            return lu;
 2400|  25.4k|        }
 2401|   394k|    }
 2402|      0|    return NULL;
 2403|  25.4k|}
t1_lib.c:tls_sigalg_compat:
 2663|  6.35k|{
 2664|  6.35k|    int minversion, maxversion;
 2665|  6.35k|    int minproto, maxproto;
 2666|       |
 2667|  6.35k|    if (!lu->available)
  ------------------
  |  Branch (2667:9): [True: 0, False: 6.35k]
  ------------------
 2668|      0|        return 0;
 2669|       |
 2670|  6.35k|    if (SSL_CONNECTION_IS_DTLS(sc)) {
  ------------------
  |  |  258|  6.35k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  6.35k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  6.35k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 0, False: 6.35k]
  |  |  ------------------
  ------------------
 2671|      0|        if (sc->ssl.method->version == DTLS_ANY_VERSION) {
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
  |  Branch (2671:13): [True: 0, False: 0]
  ------------------
 2672|      0|            minproto = sc->min_proto_version;
 2673|      0|            maxproto = sc->max_proto_version;
 2674|      0|        } else {
 2675|      0|            maxproto = minproto = sc->version;
 2676|      0|        }
 2677|      0|        minversion = lu->mindtls;
 2678|      0|        maxversion = lu->maxdtls;
 2679|  6.35k|    } else {
 2680|  6.35k|        if (sc->ssl.method->version == TLS_ANY_VERSION) {
  ------------------
  |  |   40|  6.35k|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (2680:13): [True: 6.35k, False: 0]
  ------------------
 2681|  6.35k|            minproto = sc->min_proto_version;
 2682|  6.35k|            maxproto = sc->max_proto_version;
 2683|  6.35k|        } else {
 2684|      0|            maxproto = minproto = sc->version;
 2685|      0|        }
 2686|  6.35k|        minversion = lu->mintls;
 2687|  6.35k|        maxversion = lu->maxtls;
 2688|  6.35k|    }
 2689|  6.35k|    if (minversion == -1 || maxversion == -1
  ------------------
  |  Branch (2689:9): [True: 0, False: 6.35k]
  |  Branch (2689:29): [True: 0, False: 6.35k]
  ------------------
 2690|  6.35k|        || (minversion != 0 && maxproto != 0
  ------------------
  |  Branch (2690:13): [True: 6.35k, False: 0]
  |  Branch (2690:32): [True: 0, False: 6.35k]
  ------------------
 2691|      0|            && ssl_version_cmp(sc, minversion, maxproto) > 0)
  ------------------
  |  Branch (2691:16): [True: 0, False: 0]
  ------------------
 2692|  6.35k|        || (maxversion != 0 && minproto != 0
  ------------------
  |  Branch (2692:13): [True: 2.62k, False: 3.72k]
  |  Branch (2692:32): [True: 2.62k, False: 0]
  ------------------
 2693|  2.62k|            && ssl_version_cmp(sc, maxversion, minproto) < 0)
  ------------------
  |  Branch (2693:16): [True: 0, False: 2.62k]
  ------------------
 2694|  6.35k|        || !tls12_sigalg_allowed(sc, SSL_SECOP_SIGALG_SUPPORTED, lu))
  ------------------
  |  | 2770|  6.35k|#define SSL_SECOP_SIGALG_SUPPORTED (11 | SSL_SECOP_OTHER_SIGALG)
  |  |  ------------------
  |  |  |  | 2742|  6.35k|#define SSL_SECOP_OTHER_SIGALG (5 << 16)
  |  |  ------------------
  ------------------
  |  Branch (2694:12): [True: 657, False: 5.69k]
  ------------------
 2695|    657|        return 0;
 2696|  5.69k|    return 1;
 2697|  6.35k|}
t1_lib.c:sigalg_security_bits:
 2615|  8.32k|{
 2616|  8.32k|    const EVP_MD *md = NULL;
 2617|  8.32k|    int secbits = 0;
 2618|       |
 2619|  8.32k|    if (!tls1_lookup_md(ctx, lu, &md))
  ------------------
  |  Branch (2619:9): [True: 0, False: 8.32k]
  ------------------
 2620|      0|        return 0;
 2621|  8.32k|    if (md != NULL) {
  ------------------
  |  Branch (2621:9): [True: 7.22k, False: 1.09k]
  ------------------
 2622|  7.22k|        int md_type = EVP_MD_get_type(md);
 2623|       |
 2624|       |        /* Security bits: half digest bits */
 2625|  7.22k|        secbits = EVP_MD_get_size(md) * 4;
 2626|  7.22k|        if (secbits <= 0)
  ------------------
  |  Branch (2626:13): [True: 0, False: 7.22k]
  ------------------
 2627|      0|            return 0;
 2628|       |        /*
 2629|       |         * SHA1 and MD5 are known to be broken. Reduce security bits so that
 2630|       |         * they're no longer accepted at security level 1. The real values don't
 2631|       |         * really matter as long as they're lower than 80, which is our
 2632|       |         * security level 1.
 2633|       |         * https://eprint.iacr.org/2020/014 puts a chosen-prefix attack for
 2634|       |         * SHA1 at 2^63.4 and MD5+SHA1 at 2^67.2
 2635|       |         * https://documents.epfl.ch/users/l/le/lenstra/public/papers/lat.pdf
 2636|       |         * puts a chosen-prefix attack for MD5 at 2^39.
 2637|       |         */
 2638|  7.22k|        if (md_type == NID_sha1)
  ------------------
  |  | 2344|  7.22k|#define NID_sha1                64
  ------------------
  |  Branch (2638:13): [True: 657, False: 6.57k]
  ------------------
 2639|    657|            secbits = 64;
 2640|  6.57k|        else if (md_type == NID_md5_sha1)
  ------------------
  |  | 1243|  6.57k|#define NID_md5_sha1            114
  ------------------
  |  Branch (2640:18): [True: 0, False: 6.57k]
  ------------------
 2641|      0|            secbits = 67;
 2642|  6.57k|        else if (md_type == NID_md5)
  ------------------
  |  | 1238|  6.57k|#define NID_md5         4
  ------------------
  |  Branch (2642:18): [True: 0, False: 6.57k]
  ------------------
 2643|      0|            secbits = 39;
 2644|  7.22k|    } else {
 2645|       |        /* Values from https://tools.ietf.org/html/rfc8032#section-8.5 */
 2646|  1.09k|        if (lu->sigalg == TLSEXT_SIGALG_ed25519)
  ------------------
  |  | 2237|  1.09k|#define TLSEXT_SIGALG_ed25519 0x0807
  ------------------
  |  Branch (2646:13): [True: 219, False: 876]
  ------------------
 2647|    219|            secbits = 128;
 2648|    876|        else if (lu->sigalg == TLSEXT_SIGALG_ed448)
  ------------------
  |  | 2238|    876|#define TLSEXT_SIGALG_ed448 0x0808
  ------------------
  |  Branch (2648:18): [True: 219, False: 657]
  ------------------
 2649|    219|            secbits = 224;
 2650|  1.09k|    }
 2651|       |    /*
 2652|       |     * For provider-based sigalgs we have secbits information available
 2653|       |     * in the (provider-loaded) sigalg_list structure
 2654|       |     */
 2655|  8.32k|    if ((secbits == 0) && (lu->sig_idx >= SSL_PKEY_NUM)
  ------------------
  |  |  328|    657|#define SSL_PKEY_NUM 9
  ------------------
  |  Branch (2655:9): [True: 657, False: 7.66k]
  |  Branch (2655:27): [True: 657, False: 0]
  ------------------
 2656|    657|        && ((lu->sig_idx - SSL_PKEY_NUM) < (int)ctx->sigalg_list_len)) {
  ------------------
  |  |  328|    657|#define SSL_PKEY_NUM 9
  ------------------
  |  Branch (2656:12): [True: 657, False: 0]
  ------------------
 2657|    657|        secbits = ctx->sigalg_list[lu->sig_idx - SSL_PKEY_NUM].secbits;
  ------------------
  |  |  328|    657|#define SSL_PKEY_NUM 9
  ------------------
 2658|    657|    }
 2659|  8.32k|    return secbits;
 2660|  8.32k|}
t1_lib.c:tls12_sigalg_allowed:
 3348|  8.32k|{
 3349|  8.32k|    unsigned char sigalgstr[2];
 3350|  8.32k|    int secbits;
 3351|       |
 3352|  8.32k|    if (lu == NULL || !lu->available)
  ------------------
  |  Branch (3352:9): [True: 0, False: 8.32k]
  |  Branch (3352:23): [True: 0, False: 8.32k]
  ------------------
 3353|      0|        return 0;
 3354|       |    /* DSA is not allowed in TLS 1.3 */
 3355|  8.32k|    if (SSL_CONNECTION_IS_TLS13(s) && lu->sig == EVP_PKEY_DSA)
  ------------------
  |  |  265|  16.6k|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|  16.6k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  8.32k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|  8.32k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 8.32k, False: 0]
  |  |  ------------------
  |  |  266|  8.32k|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  8.32k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  16.6k|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 8.32k, False: 0]
  |  |  ------------------
  |  |  267|  16.6k|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|  8.32k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|  8.32k|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 8.32k]
  |  |  ------------------
  ------------------
                  if (SSL_CONNECTION_IS_TLS13(s) && lu->sig == EVP_PKEY_DSA)
  ------------------
  |  |   66|      0|#define EVP_PKEY_DSA NID_dsa
  |  |  ------------------
  |  |  |  |  136|      0|#define NID_dsa         116
  |  |  ------------------
  ------------------
  |  Branch (3355:39): [True: 0, False: 0]
  ------------------
 3356|      0|        return 0;
 3357|       |    /*
 3358|       |     * At some point we should fully axe DSA/etc. in ClientHello as per TLS 1.3
 3359|       |     * spec
 3360|       |     */
 3361|  8.32k|    if (!s->server && !SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  258|  16.6k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  8.32k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2190|  8.32k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (3361:9): [True: 8.32k, False: 0]
  |  Branch (3361:23): [True: 8.32k, False: 0]
  ------------------
 3362|  8.32k|        && s->s3.tmp.min_ver >= TLS1_3_VERSION
  ------------------
  |  |   27|  16.6k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (3362:12): [True: 0, False: 8.32k]
  ------------------
 3363|      0|        && (lu->sig == EVP_PKEY_DSA || lu->hash_idx == SSL_MD_SHA1_IDX
  ------------------
  |  |   66|      0|#define EVP_PKEY_DSA NID_dsa
  |  |  ------------------
  |  |  |  |  136|      0|#define NID_dsa         116
  |  |  ------------------
  ------------------
                      && (lu->sig == EVP_PKEY_DSA || lu->hash_idx == SSL_MD_SHA1_IDX
  ------------------
  |  |  188|      0|#define SSL_MD_SHA1_IDX 1
  ------------------
  |  Branch (3363:13): [True: 0, False: 0]
  |  Branch (3363:40): [True: 0, False: 0]
  ------------------
 3364|      0|            || lu->hash_idx == SSL_MD_MD5_IDX
  ------------------
  |  |  187|      0|#define SSL_MD_MD5_IDX 0
  ------------------
  |  Branch (3364:16): [True: 0, False: 0]
  ------------------
 3365|      0|            || lu->hash_idx == SSL_MD_SHA224_IDX))
  ------------------
  |  |  197|      0|#define SSL_MD_SHA224_IDX 10
  ------------------
  |  Branch (3365:16): [True: 0, False: 0]
  ------------------
 3366|      0|        return 0;
 3367|       |
 3368|       |    /* See if public key algorithm allowed */
 3369|  8.32k|    if (ssl_cert_is_disabled(SSL_CONNECTION_GET_CTX(s), lu->sig_idx))
  ------------------
  |  |   26|  8.32k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  |  Branch (3369:9): [True: 0, False: 8.32k]
  ------------------
 3370|      0|        return 0;
 3371|       |
 3372|  8.32k|    if (lu->sig == NID_id_GostR3410_2012_256
  ------------------
  |  | 4790|  16.6k|#define NID_id_GostR3410_2012_256               979
  ------------------
  |  Branch (3372:9): [True: 0, False: 8.32k]
  ------------------
 3373|  8.32k|        || lu->sig == NID_id_GostR3410_2012_512
  ------------------
  |  | 4795|  16.6k|#define NID_id_GostR3410_2012_512               980
  ------------------
  |  Branch (3373:12): [True: 0, False: 8.32k]
  ------------------
 3374|  8.32k|        || lu->sig == NID_id_GostR3410_2001) {
  ------------------
  |  | 4579|  8.32k|#define NID_id_GostR3410_2001           811
  ------------------
  |  Branch (3374:12): [True: 0, False: 8.32k]
  ------------------
 3375|       |        /* We never allow GOST sig algs on the server with TLSv1.3 */
 3376|      0|        if (s->server && SSL_CONNECTION_IS_TLS13(s))
  ------------------
  |  |  265|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  258|      0|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2190|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (265:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  266|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (266:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  267|      0|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (267:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3376:13): [True: 0, False: 0]
  ------------------
 3377|      0|            return 0;
 3378|      0|        if (!s->server
  ------------------
  |  Branch (3378:13): [True: 0, False: 0]
  ------------------
 3379|      0|            && SSL_CONNECTION_GET_SSL(s)->method->version == TLS_ANY_VERSION
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
                          && SSL_CONNECTION_GET_SSL(s)->method->version == TLS_ANY_VERSION
  ------------------
  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (3379:16): [True: 0, False: 0]
  ------------------
 3380|      0|            && s->s3.tmp.max_ver >= TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (3380:16): [True: 0, False: 0]
  ------------------
 3381|      0|            int i, num;
 3382|      0|            STACK_OF(SSL_CIPHER) *sk;
  ------------------
  |  |   33|      0|#define STACK_OF(type) struct stack_st_##type
  ------------------
 3383|       |
 3384|       |            /*
 3385|       |             * We're a client that could negotiate TLSv1.3. We only allow GOST
 3386|       |             * sig algs if we could negotiate TLSv1.2 or below and we have GOST
 3387|       |             * ciphersuites enabled.
 3388|       |             */
 3389|       |
 3390|      0|            if (s->s3.tmp.min_ver >= TLS1_3_VERSION)
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (3390:17): [True: 0, False: 0]
  ------------------
 3391|      0|                return 0;
 3392|       |
 3393|      0|            sk = SSL_get_ciphers(SSL_CONNECTION_GET_SSL(s));
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 3394|      0|            num = sk != NULL ? sk_SSL_CIPHER_num(sk) : 0;
  ------------------
  |  | 1005|      0|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (3394:19): [True: 0, False: 0]
  ------------------
 3395|      0|            for (i = 0; i < num; i++) {
  ------------------
  |  Branch (3395:25): [True: 0, False: 0]
  ------------------
 3396|      0|                const SSL_CIPHER *c;
 3397|       |
 3398|      0|                c = sk_SSL_CIPHER_value(sk, i);
  ------------------
  |  | 1006|      0|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
 3399|       |                /* Skip disabled ciphers */
 3400|      0|                if (ssl_cipher_disabled(s, c, SSL_SECOP_CIPHER_SUPPORTED, 0))
  ------------------
  |  | 2752|      0|#define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2738|      0|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (3400:21): [True: 0, False: 0]
  ------------------
 3401|      0|                    continue;
 3402|       |
 3403|      0|                if ((c->algorithm_mkey & (SSL_kGOST | SSL_kGOST18)) != 0)
  ------------------
  |  |   89|      0|#define SSL_kGOST 0x00000010U
  ------------------
                              if ((c->algorithm_mkey & (SSL_kGOST | SSL_kGOST18)) != 0)
  ------------------
  |  |   97|      0|#define SSL_kGOST18 0x00000200U
  ------------------
  |  Branch (3403:21): [True: 0, False: 0]
  ------------------
 3404|      0|                    break;
 3405|      0|            }
 3406|      0|            if (i == num)
  ------------------
  |  Branch (3406:17): [True: 0, False: 0]
  ------------------
 3407|      0|                return 0;
 3408|      0|        }
 3409|      0|    }
 3410|       |
 3411|       |    /* Finally see if security callback allows it */
 3412|  8.32k|    secbits = sigalg_security_bits(SSL_CONNECTION_GET_CTX(s), lu);
  ------------------
  |  |   26|  8.32k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 3413|  8.32k|    sigalgstr[0] = (lu->sigalg >> 8) & 0xff;
 3414|  8.32k|    sigalgstr[1] = lu->sigalg & 0xff;
 3415|  8.32k|    return ssl_security(s, op, secbits, lu->hash, (void *)sigalgstr);
 3416|  8.32k|}

tls_engine_finish:
   24|  1.76k|{
   25|  1.76k|    ENGINE_finish(e);
   26|  1.76k|}
tls_get_cipher_from_engine:
   30|  5.06k|{
   31|  5.06k|    const EVP_CIPHER *ret = NULL;
   32|  5.06k|#ifndef OPENSSL_NO_ENGINE
   33|  5.06k|    ENGINE *eng;
   34|       |
   35|       |    /*
   36|       |     * If there is an Engine available for this cipher we use the "implicit"
   37|       |     * form to ensure we use that engine later.
   38|       |     */
   39|  5.06k|    eng = ENGINE_get_cipher_engine(nid);
   40|  5.06k|    if (eng != NULL) {
  ------------------
  |  Branch (40:9): [True: 0, False: 5.06k]
  ------------------
   41|      0|        ret = ENGINE_get_cipher(eng, nid);
   42|      0|        ENGINE_finish(eng);
   43|      0|    }
   44|  5.06k|#endif
   45|  5.06k|    return ret;
   46|  5.06k|}
tls_get_digest_from_engine:
   49|  3.52k|{
   50|  3.52k|    const EVP_MD *ret = NULL;
   51|  3.52k|#ifndef OPENSSL_NO_ENGINE
   52|  3.52k|    ENGINE *eng;
   53|       |
   54|       |    /*
   55|       |     * If there is an Engine available for this digest we use the "implicit"
   56|       |     * form to ensure we use that engine later.
   57|       |     */
   58|  3.52k|    eng = ENGINE_get_digest_engine(nid);
   59|  3.52k|    if (eng != NULL) {
  ------------------
  |  Branch (59:9): [True: 0, False: 3.52k]
  ------------------
   60|      0|        ret = ENGINE_get_digest(eng, nid);
   61|      0|        ENGINE_finish(eng);
   62|      0|    }
   63|  3.52k|#endif
   64|  3.52k|    return ret;
   65|  3.52k|}

ssl_ctx_srp_ctx_free_intern:
   34|    220|{
   35|    220|    if (ctx == NULL)
  ------------------
  |  Branch (35:9): [True: 0, False: 220]
  ------------------
   36|      0|        return 0;
   37|    220|    OPENSSL_free(ctx->srp_ctx.login);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   38|    220|    OPENSSL_free(ctx->srp_ctx.info);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   39|    220|    BN_free(ctx->srp_ctx.N);
   40|    220|    BN_free(ctx->srp_ctx.g);
   41|    220|    BN_free(ctx->srp_ctx.s);
   42|    220|    BN_free(ctx->srp_ctx.B);
   43|    220|    BN_free(ctx->srp_ctx.A);
   44|    220|    BN_free(ctx->srp_ctx.a);
   45|    220|    BN_free(ctx->srp_ctx.b);
   46|    220|    BN_free(ctx->srp_ctx.v);
   47|    220|    memset(&ctx->srp_ctx, 0, sizeof(ctx->srp_ctx));
   48|    220|    ctx->srp_ctx.strength = SRP_MINIMAL_N;
  ------------------
  |  |  276|    220|#define SRP_MINIMAL_N 1024
  ------------------
   49|    220|    return 1;
   50|    220|}
ssl_srp_ctx_free_intern:
   62|    220|{
   63|    220|    if (s == NULL)
  ------------------
  |  Branch (63:9): [True: 0, False: 220]
  ------------------
   64|      0|        return 0;
   65|    220|    OPENSSL_free(s->srp_ctx.login);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   66|    220|    OPENSSL_free(s->srp_ctx.info);
  ------------------
  |  |  131|    220|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   67|    220|    BN_free(s->srp_ctx.N);
   68|    220|    BN_free(s->srp_ctx.g);
   69|    220|    BN_free(s->srp_ctx.s);
   70|    220|    BN_free(s->srp_ctx.B);
   71|    220|    BN_free(s->srp_ctx.A);
   72|    220|    BN_free(s->srp_ctx.a);
   73|    220|    BN_free(s->srp_ctx.b);
   74|    220|    BN_free(s->srp_ctx.v);
   75|    220|    memset(&s->srp_ctx, 0, sizeof(s->srp_ctx));
   76|    220|    s->srp_ctx.strength = SRP_MINIMAL_N;
  ------------------
  |  |  276|    220|#define SRP_MINIMAL_N 1024
  ------------------
   77|    220|    return 1;
   78|    220|}
ssl_srp_ctx_init_intern:
   93|    220|{
   94|    220|    SSL_CTX *ctx;
   95|       |
   96|    220|    if (s == NULL || (ctx = SSL_CONNECTION_GET_CTX(s)) == NULL)
  ------------------
  |  |   26|    220|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  |  Branch (96:9): [True: 0, False: 220]
  |  Branch (96:22): [True: 0, False: 220]
  ------------------
   97|      0|        return 0;
   98|       |
   99|    220|    memset(&s->srp_ctx, 0, sizeof(s->srp_ctx));
  100|       |
  101|    220|    s->srp_ctx.SRP_cb_arg = ctx->srp_ctx.SRP_cb_arg;
  102|       |    /* set client Hello login callback */
  103|    220|    s->srp_ctx.TLS_ext_srp_username_callback = ctx->srp_ctx.TLS_ext_srp_username_callback;
  104|       |    /* set SRP N/g param callback for verification */
  105|    220|    s->srp_ctx.SRP_verify_param_callback = ctx->srp_ctx.SRP_verify_param_callback;
  106|       |    /* set SRP client passwd callback */
  107|    220|    s->srp_ctx.SRP_give_srp_client_pwd_callback = ctx->srp_ctx.SRP_give_srp_client_pwd_callback;
  108|       |
  109|    220|    s->srp_ctx.strength = ctx->srp_ctx.strength;
  110|       |
  111|    220|    if (((ctx->srp_ctx.N != NULL) && ((s->srp_ctx.N = BN_dup(ctx->srp_ctx.N)) == NULL)) || ((ctx->srp_ctx.g != NULL) && ((s->srp_ctx.g = BN_dup(ctx->srp_ctx.g)) == NULL)) || ((ctx->srp_ctx.s != NULL) && ((s->srp_ctx.s = BN_dup(ctx->srp_ctx.s)) == NULL)) || ((ctx->srp_ctx.B != NULL) && ((s->srp_ctx.B = BN_dup(ctx->srp_ctx.B)) == NULL)) || ((ctx->srp_ctx.A != NULL) && ((s->srp_ctx.A = BN_dup(ctx->srp_ctx.A)) == NULL)) || ((ctx->srp_ctx.a != NULL) && ((s->srp_ctx.a = BN_dup(ctx->srp_ctx.a)) == NULL)) || ((ctx->srp_ctx.v != NULL) && ((s->srp_ctx.v = BN_dup(ctx->srp_ctx.v)) == NULL)) || ((ctx->srp_ctx.b != NULL) && ((s->srp_ctx.b = BN_dup(ctx->srp_ctx.b)) == NULL))) {
  ------------------
  |  Branch (111:10): [True: 0, False: 220]
  |  Branch (111:38): [True: 0, False: 0]
  |  Branch (111:93): [True: 0, False: 220]
  |  Branch (111:121): [True: 0, False: 0]
  |  Branch (111:176): [True: 0, False: 220]
  |  Branch (111:204): [True: 0, False: 0]
  |  Branch (111:259): [True: 0, False: 220]
  |  Branch (111:287): [True: 0, False: 0]
  |  Branch (111:342): [True: 0, False: 220]
  |  Branch (111:370): [True: 0, False: 0]
  |  Branch (111:425): [True: 0, False: 220]
  |  Branch (111:453): [True: 0, False: 0]
  |  Branch (111:508): [True: 0, False: 220]
  |  Branch (111:536): [True: 0, False: 0]
  |  Branch (111:591): [True: 0, False: 220]
  |  Branch (111:619): [True: 0, False: 0]
  ------------------
  112|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_BN_LIB);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  113|      0|        goto err;
  114|      0|    }
  115|    220|    if ((ctx->srp_ctx.login != NULL) && ((s->srp_ctx.login = OPENSSL_strdup(ctx->srp_ctx.login)) == NULL)) {
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (115:9): [True: 0, False: 220]
  |  Branch (115:41): [True: 0, False: 0]
  ------------------
  116|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  117|      0|        goto err;
  118|      0|    }
  119|    220|    if ((ctx->srp_ctx.info != NULL) && ((s->srp_ctx.info = OPENSSL_strdup(ctx->srp_ctx.info)) == NULL)) {
  ------------------
  |  |  135|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (119:9): [True: 0, False: 220]
  |  Branch (119:40): [True: 0, False: 0]
  ------------------
  120|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  404|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  406|      0|    (ERR_new(),                                                  \
  |  |  |  |  407|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  335|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  408|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  121|      0|        goto err;
  122|      0|    }
  123|    220|    s->srp_ctx.srp_Mask = ctx->srp_ctx.srp_Mask;
  124|       |
  125|    220|    return 1;
  126|      0|err:
  127|      0|    OPENSSL_free(s->srp_ctx.login);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  128|      0|    OPENSSL_free(s->srp_ctx.info);
  ------------------
  |  |  131|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  314|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  315|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  129|      0|    BN_free(s->srp_ctx.N);
  130|      0|    BN_free(s->srp_ctx.g);
  131|      0|    BN_free(s->srp_ctx.s);
  132|      0|    BN_free(s->srp_ctx.B);
  133|      0|    BN_free(s->srp_ctx.A);
  134|      0|    BN_free(s->srp_ctx.a);
  135|      0|    BN_free(s->srp_ctx.b);
  136|      0|    BN_free(s->srp_ctx.v);
  137|      0|    memset(&s->srp_ctx, 0, sizeof(s->srp_ctx));
  138|      0|    return 0;
  139|    220|}
ssl_ctx_srp_ctx_init_intern:
  154|    220|{
  155|    220|    if (ctx == NULL)
  ------------------
  |  Branch (155:9): [True: 0, False: 220]
  ------------------
  156|      0|        return 0;
  157|       |
  158|    220|    memset(&ctx->srp_ctx, 0, sizeof(ctx->srp_ctx));
  159|    220|    ctx->srp_ctx.strength = SRP_MINIMAL_N;
  ------------------
  |  |  276|    220|#define SRP_MINIMAL_N 1024
  ------------------
  160|       |
  161|    220|    return 1;
  162|    220|}

fuzzer_main.cc:_ZN12_GLOBAL__N_119CurlGlobalBootstrapC2Ev:
   22|      2|  CurlGlobalBootstrap() { curl_global_init(CURL_GLOBAL_ALL); }
  ------------------
  |  | 3020|      2|#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32)
  |  |  ------------------
  |  |  |  | 3018|      2|#define CURL_GLOBAL_SSL (1 << 0) /* no purpose since 7.57.0 */
  |  |  ------------------
  |  |               #define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32)
  |  |  ------------------
  |  |  |  | 3019|      2|#define CURL_GLOBAL_WIN32 (1 << 1)
  |  |  ------------------
  ------------------
fuzzer_main.cc:_ZL17TestOneProtoInputRKN4curl6fuzzer5proto8ScenarioE:
   32|  7.86k|DEFINE_BINARY_PROTO_FUZZER(const curl::fuzzer::proto::Scenario& scenario) {
   33|  7.86k|  proto_fuzzer::ScenarioRunner().Run(scenario);
   34|  7.86k|}

_ZN12proto_fuzzer14MockConnectionC2Ev:
   66|  7.02k|MockConnection::MockConnection() : server_fd_(-1), client_fd_(-1), drain_limit_(0) {
   67|  7.02k|  int fds[2];
   68|       |
   69|  7.02k|  if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds) != 0) {
  ------------------
  |  Branch (69:7): [True: 0, False: 7.02k]
  ------------------
   70|      0|    return;
   71|      0|  }
   72|       |
   73|       |  // The fds must be small enough to fit in an fd_set for select(). If not, close them and fail the constructor.
   74|  7.02k|  if (!FdFitsInFdSet(fds[0]) || !FdFitsInFdSet(fds[1])) {
  ------------------
  |  Branch (74:7): [True: 0, False: 7.02k]
  |  Branch (74:33): [True: 0, False: 7.02k]
  ------------------
   75|      0|    close(fds[0]);
   76|      0|    close(fds[1]);
   77|      0|    return;
   78|      0|  }
   79|       |
   80|       |  // Set the server-side fd non-blocking so we can write to it without risk of hanging the fuzzer.
   81|  7.02k|  int flags = fcntl(fds[0], F_GETFL, 0);
   82|  7.02k|  if (flags < 0 || fcntl(fds[0], F_SETFL, flags | O_NONBLOCK) < 0) {
  ------------------
  |  Branch (82:7): [True: 0, False: 7.02k]
  |  Branch (82:20): [True: 0, False: 7.02k]
  ------------------
   83|      0|    close(fds[0]);
   84|      0|    close(fds[1]);
   85|      0|    return;
   86|      0|  }
   87|       |
   88|       |  // Success: store the file descriptors.
   89|  7.02k|  server_fd_ = fds[0];
   90|  7.02k|  client_fd_ = fds[1];
   91|  7.02k|}
_ZN12proto_fuzzer14MockConnectionD2Ev:
   94|  7.02k|MockConnection::~MockConnection() {
   95|  7.02k|  if (server_fd_ >= 0) {
  ------------------
  |  Branch (95:7): [True: 7.02k, False: 0]
  ------------------
   96|  7.02k|    close(server_fd_);
   97|  7.02k|  }
   98|  7.02k|  if (client_fd_ >= 0) {
  ------------------
  |  Branch (98:7): [True: 0, False: 7.02k]
  ------------------
   99|      0|    close(client_fd_);
  100|      0|  }
  101|  7.02k|}
_ZNK12proto_fuzzer14MockConnection2okEv:
  104|  7.02k|bool MockConnection::ok() const { return server_fd_ >= 0; }
_ZN12proto_fuzzer14MockConnection14take_client_fdEv:
  112|  7.02k|curl_socket_t MockConnection::take_client_fd() {
  113|  7.02k|  int fd = client_fd_;
  114|  7.02k|  client_fd_ = -1;
  115|  7.02k|  return static_cast<curl_socket_t>(fd);
  116|  7.02k|}
_ZN12proto_fuzzer14MockConnection8WriteAllEPKhm:
  123|  19.1k|bool MockConnection::WriteAll(const unsigned char* data, std::size_t size) {
  124|  19.1k|  if (server_fd_ < 0) {
  ------------------
  |  Branch (124:7): [True: 0, False: 19.1k]
  ------------------
  125|      0|    return false;
  126|      0|  }
  127|  19.1k|  std::size_t written = 0;
  128|  38.2k|  while (written < size) {
  ------------------
  |  Branch (128:10): [True: 19.1k, False: 19.1k]
  ------------------
  129|  19.1k|    ssize_t n = ::write(server_fd_, data + written, size - written);
  130|  19.1k|    if (n <= 0) {
  ------------------
  |  Branch (130:9): [True: 0, False: 19.1k]
  ------------------
  131|      0|      return false;
  132|      0|    }
  133|  19.1k|    written += static_cast<std::size_t>(n);
  134|  19.1k|  }
  135|  19.1k|  return true;
  136|  19.1k|}
_ZN12proto_fuzzer14MockConnection13DrainIncomingEv:
  142|  40.5k|void MockConnection::DrainIncoming() {
  143|  40.5k|  if (server_fd_ < 0) {
  ------------------
  |  Branch (143:7): [True: 0, False: 40.5k]
  ------------------
  144|      0|    return;
  145|      0|  }
  146|  40.5k|  unsigned char scratch[4096];
  147|  40.5k|  std::size_t drained = 0;
  148|  60.5k|  while (drain_limit_ == 0 || drained < drain_limit_) {
  ------------------
  |  Branch (148:10): [True: 27.3k, False: 33.2k]
  |  Branch (148:31): [True: 20.7k, False: 12.4k]
  ------------------
  149|  48.1k|    std::size_t want = sizeof(scratch);
  150|  48.1k|    if (drain_limit_ != 0) {
  ------------------
  |  Branch (150:9): [True: 20.7k, False: 27.3k]
  ------------------
  151|  20.7k|      const std::size_t remaining = drain_limit_ - drained;
  152|  20.7k|      if (remaining < want) {
  ------------------
  |  Branch (152:11): [True: 16.8k, False: 3.89k]
  ------------------
  153|  16.8k|        want = remaining;
  154|  16.8k|      }
  155|  20.7k|    }
  156|  48.1k|    ssize_t n = ::read(server_fd_, scratch, want);
  157|  48.1k|    if (n <= 0) {
  ------------------
  |  Branch (157:9): [True: 28.0k, False: 20.0k]
  ------------------
  158|  28.0k|      break;
  159|  28.0k|    }
  160|  20.0k|    drained += static_cast<std::size_t>(n);
  161|  20.0k|  }
  162|  40.5k|}
_ZN12proto_fuzzer14MockConnection17ApplyBackpressureEim:
  171|  7.02k|void MockConnection::ApplyBackpressure(int recv_buf_bytes, std::size_t drain_limit) {
  172|  7.02k|  if (recv_buf_bytes > 0) {
  ------------------
  |  Branch (172:7): [True: 833, False: 6.19k]
  ------------------
  173|    833|    if (server_fd_ >= 0) {
  ------------------
  |  Branch (173:9): [True: 833, False: 0]
  ------------------
  174|    833|      (void)setsockopt(server_fd_, SOL_SOCKET, SO_RCVBUF, &recv_buf_bytes, sizeof(recv_buf_bytes));
  175|    833|    }
  176|    833|    if (client_fd_ >= 0) {
  ------------------
  |  Branch (176:9): [True: 833, False: 0]
  ------------------
  177|    833|      (void)setsockopt(client_fd_, SOL_SOCKET, SO_SNDBUF, &recv_buf_bytes, sizeof(recv_buf_bytes));
  178|    833|    }
  179|    833|  }
  180|  7.02k|  drain_limit_ = drain_limit;
  181|  7.02k|}
_ZN12proto_fuzzer14MockConnection13ReadAvailableEPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  187|  5.74k|void MockConnection::ReadAvailable(std::string* out) {
  188|  5.74k|  if (server_fd_ < 0 || out == nullptr) {
  ------------------
  |  Branch (188:7): [True: 0, False: 5.74k]
  |  Branch (188:25): [True: 0, False: 5.74k]
  ------------------
  189|      0|    return;
  190|      0|  }
  191|  5.74k|  unsigned char scratch[4096];
  192|  7.41k|  while (true) {
  ------------------
  |  Branch (192:10): [True: 7.41k, Folded]
  ------------------
  193|  7.41k|    ssize_t n = ::read(server_fd_, scratch, sizeof(scratch));
  194|  7.41k|    if (n <= 0) {
  ------------------
  |  Branch (194:9): [True: 5.74k, False: 1.66k]
  ------------------
  195|  5.74k|      break;
  196|  5.74k|    }
  197|  1.66k|    out->append(reinterpret_cast<const char*>(scratch), static_cast<std::size_t>(n));
  198|  1.66k|  }
  199|  5.74k|}
_ZN12proto_fuzzer14MockConnection13ShutdownWriteEv:
  202|  5.04k|void MockConnection::ShutdownWrite() {
  203|  5.04k|  if (server_fd_ < 0) {
  ------------------
  |  Branch (203:7): [True: 0, False: 5.04k]
  ------------------
  204|      0|    return;
  205|      0|  }
  206|  5.04k|  ::shutdown(server_fd_, SHUT_WR);
  207|  5.04k|}
_ZN12proto_fuzzer10MockServerC2Ev:
  215|  5.83k|MockServer::MockServer() : next_chunk_(0), initial_sent_(false) {}
_ZN12proto_fuzzer10MockServerD2Ev:
  218|  5.83k|MockServer::~MockServer() = default;
_ZN12proto_fuzzer10MockServer9SetScriptENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_6vectorIS7_NS5_IS7_EEEE:
  225|  5.83k|void MockServer::SetScript(std::string initial_response, std::vector<std::string> on_readable) {
  226|  5.83k|  initial_response_ = std::move(initial_response);
  227|  5.83k|  on_readable_ = std::move(on_readable);
  228|  5.83k|  next_chunk_ = 0;
  229|  5.83k|  initial_sent_ = false;
  230|  5.83k|}
_ZNK12proto_fuzzer10MockServer15has_more_chunksEv:
  233|  23.0k|bool MockServer::has_more_chunks() const { return next_chunk_ < on_readable_.size(); }
_ZN12proto_fuzzer10MockServer16HandleOpenSocketEv:
  240|  5.95k|curl_socket_t MockServer::HandleOpenSocket() {
  241|  5.95k|  if (connection_) {
  ------------------
  |  Branch (241:7): [True: 511, False: 5.44k]
  ------------------
  242|       |    // This mock supports exactly one connection per scenario.
  243|    511|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|    511|#define CURL_SOCKET_BAD (-1)
  ------------------
  244|    511|  }
  245|  5.44k|  connection_ = std::make_unique<MockConnection>();
  246|  5.44k|  if (!connection_->ok()) {
  ------------------
  |  Branch (246:7): [True: 0, False: 5.44k]
  ------------------
  247|      0|    connection_.reset();
  248|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  249|      0|  }
  250|  5.44k|  ApplyPendingBackpressure();
  251|  5.44k|  if (!initial_response_.empty()) {
  ------------------
  |  Branch (251:7): [True: 3.63k, False: 1.81k]
  ------------------
  252|  3.63k|    if (!connection_->WriteAll(reinterpret_cast<const unsigned char*>(initial_response_.data()),
  ------------------
  |  Branch (252:9): [True: 0, False: 3.63k]
  ------------------
  253|  3.63k|                               initial_response_.size())) {
  254|      0|      connection_.reset();
  255|      0|      return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  256|      0|    }
  257|  3.63k|  }
  258|  5.44k|  initial_sent_ = true;
  259|  5.44k|  if (on_readable_.empty()) {
  ------------------
  |  Branch (259:7): [True: 2.25k, False: 3.18k]
  ------------------
  260|  2.25k|    connection_->ShutdownWrite();
  261|  2.25k|  }
  262|  5.44k|  return connection_->take_client_fd();
  263|  5.44k|}
_ZN12proto_fuzzer10MockServer16DeliverNextChunkEv:
  267|  10.8k|void MockServer::DeliverNextChunk() {
  268|  10.8k|  if (!connection_ || next_chunk_ >= on_readable_.size()) {
  ------------------
  |  Branch (268:7): [True: 0, False: 10.8k]
  |  Branch (268:23): [True: 0, False: 10.8k]
  ------------------
  269|      0|    return;
  270|      0|  }
  271|  10.8k|  connection_->DrainIncoming();
  272|  10.8k|  const std::string& chunk = on_readable_[next_chunk_++];
  273|  10.8k|  if (!chunk.empty()) {
  ------------------
  |  Branch (273:7): [True: 10.3k, False: 545]
  ------------------
  274|  10.3k|    connection_->WriteAll(reinterpret_cast<const unsigned char*>(chunk.data()), chunk.size());
  275|  10.3k|  }
  276|  10.8k|  if (next_chunk_ >= on_readable_.size()) {
  ------------------
  |  Branch (276:7): [True: 2.33k, False: 8.53k]
  ------------------
  277|  2.33k|    connection_->ShutdownWrite();
  278|  2.33k|  }
  279|  10.8k|}
_ZN12proto_fuzzer10MockServer7RunLoopEPvS1_RKN4curl6fuzzer5proto8ScenarioE:
  287|  5.83k|void MockServer::RunLoop(CURLM* multi, CURL* easy, const curl::fuzzer::proto::Scenario& scenario) {
  288|  5.83k|  (void)easy;
  289|  5.83k|  const auto& conn = scenario.connection();
  290|  5.83k|  SetScript(conn.initial_response(), BuildChunkList(conn));
  291|       |
  292|  5.83k|  int still_running = 1;
  293|  5.83k|  int idle_iterations = 0;
  294|  5.83k|  CURLMcode rc = CURLM_OK;
  295|       |
  296|  28.9k|  while (still_running && idle_iterations < kMaxIdleIterations) {
  ------------------
  |  Branch (296:10): [True: 28.9k, False: 0]
  |  Branch (296:27): [True: 28.9k, False: 18]
  ------------------
  297|  28.9k|    rc = curl_multi_perform(multi, &still_running);
  298|  28.9k|    if (rc != CURLM_OK) {
  ------------------
  |  Branch (298:9): [True: 0, False: 28.9k]
  ------------------
  299|      0|      break;
  300|      0|    }
  301|  28.9k|    if (!still_running) {
  ------------------
  |  Branch (301:9): [True: 5.81k, False: 23.0k]
  ------------------
  302|  5.81k|      break;
  303|  5.81k|    }
  304|       |
  305|  23.0k|    int ready = WaitOnMultiFdset(multi, &rc);
  306|  23.0k|    if (rc != CURLM_OK) {
  ------------------
  |  Branch (306:9): [True: 0, False: 23.0k]
  ------------------
  307|      0|      break;
  308|      0|    }
  309|       |
  310|       |    // Always drain whatever curl has written. Under backpressure the kernel
  311|       |    // recv buffer would otherwise stay full — curl short-writes, the mock
  312|       |    // never consumes, and the transfer wedges until kMaxIdleIterations. With
  313|       |    // drain_limit set this still honours the per-tick byte budget.
  314|  23.0k|    if (connection_) {
  ------------------
  |  Branch (314:9): [True: 23.0k, False: 0]
  ------------------
  315|  23.0k|      connection_->DrainIncoming();
  316|  23.0k|    }
  317|  23.0k|    if (has_more_chunks()) {
  ------------------
  |  Branch (317:9): [True: 10.8k, False: 12.2k]
  ------------------
  318|  10.8k|      DeliverNextChunk();
  319|  10.8k|      idle_iterations = 0;
  320|  12.2k|    } else if (ready == 0) {
  ------------------
  |  Branch (320:16): [True: 12.2k, False: 13]
  ------------------
  321|  12.2k|      ++idle_iterations;
  322|  12.2k|    } else {
  323|     13|      idle_iterations = 0;
  324|     13|    }
  325|  23.0k|  }
  326|  5.83k|}
mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_113FdFitsInFdSetEi:
   33|  14.0k|bool FdFitsInFdSet(int fd) { return fd >= 0 && fd < FD_SETSIZE; }
  ------------------
  |  Branch (33:37): [True: 14.0k, False: 0]
  |  Branch (33:48): [True: 14.0k, False: 0]
  ------------------
mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_114BuildChunkListERKN4curl6fuzzer5proto10ConnectionE:
   43|  5.83k|std::vector<std::string> BuildChunkList(const curl::fuzzer::proto::Connection& conn) {
   44|  5.83k|  std::vector<std::string> chunks;
   45|  5.83k|  chunks.reserve(kMaxResponseChunks);
   46|  5.83k|  const std::size_t raw_budget = std::min<std::size_t>(kMaxResponseChunks, conn.on_readable_size());
   47|  14.7k|  for (std::size_t i = 0; i < raw_budget; ++i) {
  ------------------
  |  Branch (47:27): [True: 8.96k, False: 5.83k]
  ------------------
   48|  8.96k|    chunks.emplace_back(conn.on_readable(i));
   49|  8.96k|  }
   50|  5.83k|  const std::size_t frame_budget = kMaxResponseChunks - chunks.size();
   51|  5.83k|  const std::size_t frame_count = std::min<std::size_t>(frame_budget, conn.server_frames_size());
   52|  9.96k|  for (std::size_t i = 0; i < frame_count; ++i) {
  ------------------
  |  Branch (52:27): [True: 4.13k, False: 5.83k]
  ------------------
   53|  4.13k|    chunks.emplace_back(SerializeWebSocketFrame(conn.server_frames(static_cast<int>(i))));
   54|  4.13k|  }
   55|  5.83k|  return chunks;
   56|  5.83k|}

_ZN12proto_fuzzer34MockServerBaseOpenSocketTrampolineEPv12curlsocktypeP13curl_sockaddr:
   37|  7.53k|                                                 struct curl_sockaddr* /*address*/) {
   38|  7.53k|  return static_cast<MockServerBase*>(clientp)->HandleOpenSocket();
   39|  7.53k|}
_ZN12proto_fuzzer14MockServerBaseC2Ev:
   42|  7.82k|MockServerBase::MockServerBase() : connection_(nullptr), pending_recv_buf_bytes_(0), pending_drain_limit_(0) {}
_ZN12proto_fuzzer14MockServerBaseD2Ev:
   47|  7.82k|MockServerBase::~MockServerBase() = default;
_ZN12proto_fuzzer14MockServerBase10connectionEv:
   50|  5.11k|MockConnection* MockServerBase::connection() { return connection_.get(); }
_ZN12proto_fuzzer14MockServerBase7InstallEPv:
   54|  7.82k|void MockServerBase::Install(CURL* easy) {
   55|  7.82k|  curl_easy_setopt(easy, CURLOPT_OPENSOCKETFUNCTION, &MockServerBaseOpenSocketTrampoline);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
   56|  7.82k|  curl_easy_setopt(easy, CURLOPT_OPENSOCKETDATA, this);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
   57|  7.82k|  curl_easy_setopt(easy, CURLOPT_SOCKOPTFUNCTION, &SockOptTrampoline);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
   58|  7.82k|}
_ZN12proto_fuzzer14MockServerBase13DriveScenarioEPvRKN4curl6fuzzer5proto8ScenarioE:
   63|  7.82k|void MockServerBase::DriveScenario(CURL* easy, const curl::fuzzer::proto::Scenario& scenario) {
   64|       |  // Cache backpressure knobs so HandleOpenSocket can apply them the moment
   65|       |  // connection_ exists. Both default to 0, which matches the legacy "drain
   66|       |  // greedily, kernel-default buffers" behaviour exactly.
   67|  7.82k|  const auto& bp = scenario.connection().backpressure();
   68|  7.82k|  pending_recv_buf_bytes_ = static_cast<int>(bp.recv_buf_bytes());
   69|  7.82k|  pending_drain_limit_ = static_cast<std::size_t>(bp.drain_limit());
   70|       |
   71|  7.82k|  CURLM* multi = curl_multi_init();
   72|  7.82k|  if (multi == nullptr) {
  ------------------
  |  Branch (72:7): [True: 0, False: 7.82k]
  ------------------
   73|      0|    return;
   74|      0|  }
   75|  7.82k|  if (curl_multi_add_handle(multi, easy) == CURLM_OK) {
  ------------------
  |  Branch (75:7): [True: 7.82k, False: 0]
  ------------------
   76|  7.82k|    RunLoop(multi, easy, scenario);
   77|  7.82k|    curl_multi_remove_handle(multi, easy);
   78|  7.82k|  }
   79|  7.82k|  curl_multi_cleanup(multi);
   80|  7.82k|}
_ZN12proto_fuzzer14MockServerBase24ApplyPendingBackpressureEv:
   85|  7.02k|void MockServerBase::ApplyPendingBackpressure() {
   86|  7.02k|  if (connection_) {
  ------------------
  |  Branch (86:7): [True: 7.02k, False: 0]
  ------------------
   87|  7.02k|    connection_->ApplyBackpressure(pending_recv_buf_bytes_, pending_drain_limit_);
   88|  7.02k|  }
   89|  7.02k|}
_ZN12proto_fuzzer14MockServerBase16WaitOnMultiFdsetEPvP9CURLMcode:
   93|   114k|int MockServerBase::WaitOnMultiFdset(CURLM* multi, CURLMcode* rc) {
   94|   114k|  fd_set readfds;
   95|   114k|  fd_set writefds;
   96|   114k|  fd_set excfds;
   97|   114k|  FD_ZERO(&readfds);
  ------------------
  |  Branch (97:3): [True: 1.83M, False: 114k]
  |  Branch (97:3): [Folded, False: 114k]
  ------------------
   98|   114k|  FD_ZERO(&writefds);
  ------------------
  |  Branch (98:3): [True: 1.83M, False: 114k]
  |  Branch (98:3): [Folded, False: 114k]
  ------------------
   99|   114k|  FD_ZERO(&excfds);
  ------------------
  |  Branch (99:3): [True: 1.83M, False: 114k]
  |  Branch (99:3): [Folded, False: 114k]
  ------------------
  100|   114k|  int maxfd = -1;
  101|   114k|  *rc = curl_multi_fdset(multi, &readfds, &writefds, &excfds, &maxfd);
  102|   114k|  if (*rc != CURLM_OK) {
  ------------------
  |  Branch (102:7): [True: 0, False: 114k]
  ------------------
  103|      0|    return -1;
  104|      0|  }
  105|   114k|  if (maxfd < 0) {
  ------------------
  |  Branch (105:7): [True: 0, False: 114k]
  ------------------
  106|      0|    return 0;
  107|      0|  }
  108|   114k|  struct timeval timeout;
  109|   114k|  timeout.tv_sec = 0;
  110|   114k|  timeout.tv_usec = kSelectTimeoutUs;
  111|   114k|  return ::select(maxfd + 1, &readfds, &writefds, &excfds, &timeout);
  112|   114k|}
mock_server_base.cc:_ZN12proto_fuzzer12_GLOBAL__N_117SockOptTrampolineEPvi12curlsocktype:
   26|  7.02k|int SockOptTrampoline(void* /*clientp*/, curl_socket_t /*curlfd*/, curlsocktype /*purpose*/) {
   27|  7.02k|  return CURL_SOCKOPT_ALREADY_CONNECTED;
  ------------------
  |  |  421|  7.02k|#define CURL_SOCKOPT_ALREADY_CONNECTED 2
  ------------------
   28|  7.02k|}

_ZN12proto_fuzzer20ApplyBaselineOptionsEPv:
  115|  7.82k|struct curl_slist* ApplyBaselineOptions(CURL* easy) {
  116|  7.82k|  curl_easy_setopt(easy, CURLOPT_WRITEFUNCTION, &SilentWriteCallback);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  117|  7.82k|  curl_easy_setopt(easy, CURLOPT_HEADERFUNCTION, &SilentWriteCallback);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  118|       |
  119|       |  // Pre-seed a bounded upload buffer in case the scenario enables
  120|       |  // CURLOPT_UPLOAD. This is the only safe way to let scenarios reach the
  121|       |  // client-reader path (cr_ws_read etc.) — without a read callback curl would
  122|       |  // fall back to stdin and block the fuzzer.
  123|  7.82k|  g_read_state.remaining = kMaxUploadBytes;
  124|  7.82k|  curl_easy_setopt(easy, CURLOPT_READFUNCTION, &BoundedReadCallback);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  125|  7.82k|  curl_easy_setopt(easy, CURLOPT_READDATA, &g_read_state);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  126|       |
  127|       |  // Confine the easy handle to plain HTTP; refuse redirects to any other
  128|       |  // scheme. CURLOPT_PROTOCOLS_STR arrived in 7.85.0.
  129|  7.82k|  curl_easy_setopt(easy, CURLOPT_PROTOCOLS_STR, kProtocolsAllowed);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  130|  7.82k|  curl_easy_setopt(easy, CURLOPT_REDIR_PROTOCOLS_STR, kProtocolsAllowed);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  131|       |
  132|       |  // Force every name lookup to the fuzzer's in-process mock peer. The caller
  133|       |  // owns the returned slist and must free it after curl_easy_cleanup.
  134|  7.82k|  struct curl_slist* connect_to = curl_slist_append(nullptr, kConnectToOverride);
  135|  7.82k|  curl_easy_setopt(easy, CURLOPT_CONNECT_TO, connect_to);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  136|       |
  137|       |  // Short bounds: fuzzing should never sit waiting on real I/O.
  138|  7.82k|  curl_easy_setopt(easy, CURLOPT_CONNECTTIMEOUT_MS, kConnectTimeoutMs);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  139|  7.82k|  curl_easy_setopt(easy, CURLOPT_TIMEOUT_MS, kTimeoutMs);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  140|  7.82k|  curl_easy_setopt(easy, CURLOPT_MAX_RECV_SPEED_LARGE, static_cast<curl_off_t>(kMaxRecvSpeed));
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  141|       |
  142|       |  // Prevent scenarios from leaking state onto the filesystem.
  143|  7.82k|  curl_easy_setopt(easy, CURLOPT_COOKIEJAR, kDevNull);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  144|  7.82k|  curl_easy_setopt(easy, CURLOPT_ALTSVC, kDevNull);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  145|  7.82k|  curl_easy_setopt(easy, CURLOPT_HSTS, kDevNull);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  146|  7.82k|  curl_easy_setopt(easy, CURLOPT_NETRC_FILE, kDevNull);
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  147|       |
  148|       |  // Match the legacy TLV fuzzer: FUZZ_VERBOSE in the environment flips curl's
  149|       |  // own verbose logging on. Useful when reproducing a crashing corpus entry.
  150|  7.82k|  if (std::getenv(kVerboseEnvVar) != nullptr) {
  ------------------
  |  Branch (150:7): [True: 0, False: 7.82k]
  ------------------
  151|      0|    curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L);
  ------------------
  |  | 3337|      0|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|      0|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  152|      0|  }
  153|  7.82k|  return connect_to;
  154|  7.82k|}
_ZN12proto_fuzzer14ApplySetOptionEPvRKN4curl6fuzzer5proto9SetOptionEPNSt3__16vectorINS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEENSC_ISE_EEEE:
  167|  65.6k|                        std::vector<std::string>* string_storage) {
  168|  65.6k|  const OptionDescriptor* desc = Lookup(option.option_id());
  169|  65.6k|  if (desc == nullptr) {
  ------------------
  |  Branch (169:7): [True: 6.06k, False: 59.5k]
  ------------------
  170|  6.06k|    return CURLE_UNKNOWN_OPTION;
  171|  6.06k|  }
  172|       |
  173|  59.5k|  switch (desc->kind) {
  ------------------
  |  Branch (173:11): [True: 59.5k, False: 0]
  ------------------
  174|       |    // Store a copy of the string in string_storage and pass a pointer to the copy to curl_easy_setopt.
  175|  11.6k|    case OptionValueKind::kString: {
  ------------------
  |  Branch (175:5): [True: 11.6k, False: 47.9k]
  ------------------
  176|  11.6k|      const std::string& src = option.string_value();
  177|  11.6k|      string_storage->emplace_back(src.data(), src.size());
  178|  11.6k|      const std::string& stored = string_storage->back();
  179|       |
  180|       |      // Handling for POSTFIELDS to set the size.
  181|  11.6k|      if (desc->curlopt == CURLOPT_POSTFIELDS) {
  ------------------
  |  Branch (181:11): [True: 1.56k, False: 10.0k]
  ------------------
  182|  1.56k|        curl_easy_setopt(easy, CURLOPT_POSTFIELDSIZE_LARGE, static_cast<curl_off_t>(stored.size()));
  ------------------
  |  | 3337|  1.56k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  1.56k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  183|  1.56k|      }
  184|       |
  185|  11.6k|      return curl_easy_setopt(easy, desc->curlopt, stored.c_str());
  ------------------
  |  | 3337|  11.6k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  11.6k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  186|      0|    }
  187|       |
  188|       |    // Decode the uint_value and pass it as either a long or a curl_off_t depending on the option.
  189|  14.5k|    case OptionValueKind::kUint: {
  ------------------
  |  Branch (189:5): [True: 14.5k, False: 44.9k]
  ------------------
  190|  14.5k|      std::uint64_t raw = option.uint_value();
  191|       |      // CURLOPTTYPE_OFF_T options start at 30000. Everything below takes a
  192|       |      // long; everything at/above takes a curl_off_t.
  193|  14.5k|      if (static_cast<int>(desc->curlopt) >= 30000) {
  ------------------
  |  Branch (193:11): [True: 1.35k, False: 13.2k]
  ------------------
  194|  1.35k|        return curl_easy_setopt(easy, desc->curlopt, static_cast<curl_off_t>(raw));
  ------------------
  |  | 3337|  1.35k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  1.35k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  195|  1.35k|      }
  196|  13.2k|      return curl_easy_setopt(easy, desc->curlopt, static_cast<long>(raw));
  ------------------
  |  | 3337|  13.2k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  13.2k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  197|  14.5k|    }
  198|       |
  199|       |    // Decode the bool_value and pass it as a long flag (0 or 1).
  200|  33.3k|    case OptionValueKind::kBool: {
  ------------------
  |  Branch (200:5): [True: 33.3k, False: 26.1k]
  ------------------
  201|  33.3k|      long flag = option.bool_value() ? 1L : 0L;
  ------------------
  |  Branch (201:19): [True: 3.07k, False: 30.2k]
  ------------------
  202|  33.3k|      return curl_easy_setopt(easy, desc->curlopt, flag);
  ------------------
  |  | 3337|  33.3k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  33.3k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  203|  14.5k|    }
  204|  59.5k|  }
  205|      0|  return CURLE_UNKNOWN_OPTION;
  206|  59.5k|}
option_apply.cc:_ZN12proto_fuzzer12_GLOBAL__N_119SilentWriteCallbackEPvmmS1_:
   59|  31.1k|size_t SilentWriteCallback(void* /*contents*/, size_t size, size_t nmemb, void* /*userdata*/) { return size * nmemb; }
option_apply.cc:_ZN12proto_fuzzer12_GLOBAL__N_119BoundedReadCallbackEPcmmPv:
   74|  1.21k|size_t BoundedReadCallback(char* buffer, size_t size, size_t nitems, void* userdata) {
   75|  1.21k|  if (userdata == nullptr) {
  ------------------
  |  Branch (75:7): [True: 0, False: 1.21k]
  ------------------
   76|      0|    return 0;
   77|      0|  }
   78|  1.21k|  auto* state = static_cast<ReadState*>(userdata);
   79|  1.21k|  const std::size_t cap = size * nitems;
   80|  1.21k|  const std::size_t n = std::min(cap, state->remaining);
   81|  1.21k|  if (n == 0) {
  ------------------
  |  Branch (81:7): [True: 499, False: 715]
  ------------------
   82|    499|    return 0;  // signals EOF to curl
   83|    499|  }
   84|       |  // Fill with a deterministic byte pattern; content doesn't matter for fuzz
   85|       |  // coverage of the reader framing / encoder path.
   86|  11.3M|  for (std::size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (86:27): [True: 11.3M, False: 715]
  ------------------
   87|  11.3M|    buffer[i] = 'U';
   88|  11.3M|  }
   89|    715|  state->remaining -= n;
   90|    715|  return n;
   91|  1.21k|}
option_apply.cc:_ZN12proto_fuzzer12_GLOBAL__N_16LookupEN4curl6fuzzer5proto12CurlOptionIdE:
   98|  65.6k|const OptionDescriptor* Lookup(curl::fuzzer::proto::CurlOptionId id) {
   99|   566k|  for (std::size_t i = 0; i < kOptionManifestSize; ++i) {
  ------------------
  |  Branch (99:27): [True: 559k, False: 6.06k]
  ------------------
  100|   559k|    if (kOptionManifest[i].id == id) {
  ------------------
  |  Branch (100:9): [True: 59.5k, False: 500k]
  ------------------
  101|  59.5k|      return &kOptionManifest[i];
  102|  59.5k|    }
  103|   559k|  }
  104|  6.06k|  return nullptr;
  105|  65.6k|}

_ZN12proto_fuzzer14ScenarioRunnerC2Ev:
   79|  7.86k|ScenarioRunner::ScenarioRunner() = default;
_ZN12proto_fuzzer14ScenarioRunnerD2Ev:
   83|  7.86k|ScenarioRunner::~ScenarioRunner() = default;
_ZN12proto_fuzzer14ScenarioRunner3RunERKN4curl6fuzzer5proto8ScenarioE:
   93|  7.86k|int ScenarioRunner::Run(const curl::fuzzer::proto::Scenario& scenario) {
   94|  7.86k|  const char* prefix = SchemePrefix(scenario.scheme());
   95|  7.86k|  if (prefix == nullptr || scenario.host_path().empty()) {
  ------------------
  |  Branch (95:7): [True: 31, False: 7.83k]
  |  Branch (95:28): [True: 10, False: 7.82k]
  ------------------
   96|     41|    return 0;
   97|     41|  }
   98|       |
   99|  7.82k|  std::unique_ptr<MockServerBase> mock = MakeMockServerForScenario(scenario);
  100|  7.82k|  if (!mock) {
  ------------------
  |  Branch (100:7): [True: 0, False: 7.82k]
  ------------------
  101|      0|    return 0;
  102|      0|  }
  103|       |
  104|  7.82k|  CurlEasyPtr easy(curl_easy_init());
  105|  7.82k|  if (!easy) {
  ------------------
  |  Branch (105:7): [True: 0, False: 7.82k]
  ------------------
  106|      0|    return 0;
  107|      0|  }
  108|       |
  109|  7.82k|  std::vector<std::string> string_storage;
  110|  7.82k|  string_storage.reserve(scenario.options_size());
  111|       |
  112|  7.82k|  struct curl_slist* connect_to = ApplyBaselineOptions(easy.get());
  113|       |
  114|  7.82k|  std::string url = std::string(prefix) + "://" + scenario.host_path();
  115|  7.82k|  curl_easy_setopt(easy.get(), CURLOPT_URL, url.c_str());
  ------------------
  |  | 3337|  7.82k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  7.82k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  116|       |
  117|  7.82k|  mock->Install(easy.get());
  118|       |
  119|  65.6k|  for (const auto& option : scenario.options()) {
  ------------------
  |  Branch (119:27): [True: 65.6k, False: 7.82k]
  ------------------
  120|       |    // Intentionally ignore per-option CURLcode: the fuzzer's job is to stress
  121|       |    // curl, not to validate that every option is applied cleanly.
  122|  65.6k|    (void)ApplySetOption(easy.get(), option, &string_storage);
  123|  65.6k|  }
  124|       |
  125|  7.82k|  mock->DriveScenario(easy.get(), scenario);
  126|       |
  127|  7.82k|  easy.reset();
  128|  7.82k|  curl_slist_free_all(connect_to);
  129|  7.82k|  return 0;
  130|  7.82k|}
scenario_runner.cc:_ZN12proto_fuzzer12_GLOBAL__N_112SchemePrefixEN4curl6fuzzer5proto6SchemeE:
   36|  7.86k|const char* SchemePrefix(curl::fuzzer::proto::Scheme scheme) {
   37|  7.86k|  switch (scheme) {
   38|  5.69k|    case curl::fuzzer::proto::SCHEME_HTTP:
  ------------------
  |  Branch (38:5): [True: 5.69k, False: 2.16k]
  ------------------
   39|  5.69k|      return "http";
   40|    145|    case curl::fuzzer::proto::SCHEME_HTTPS:
  ------------------
  |  Branch (40:5): [True: 145, False: 7.71k]
  ------------------
   41|    145|      return "https";
   42|  1.59k|    case curl::fuzzer::proto::SCHEME_WS:
  ------------------
  |  Branch (42:5): [True: 1.59k, False: 6.26k]
  ------------------
   43|  1.59k|      return "ws";
   44|    393|    case curl::fuzzer::proto::SCHEME_WSS:
  ------------------
  |  Branch (44:5): [True: 393, False: 7.46k]
  ------------------
   45|    393|      return "wss";
   46|     29|    case curl::fuzzer::proto::SCHEME_UNSPECIFIED:
  ------------------
  |  Branch (46:5): [True: 29, False: 7.83k]
  ------------------
   47|     31|    default:
  ------------------
  |  Branch (47:5): [True: 2, False: 7.85k]
  ------------------
   48|     31|      return nullptr;
   49|  7.86k|  }
   50|  7.86k|}
scenario_runner.cc:_ZN12proto_fuzzer12_GLOBAL__N_125MakeMockServerForScenarioERKN4curl6fuzzer5proto8ScenarioE:
   56|  7.82k|std::unique_ptr<MockServerBase> MakeMockServerForScenario(const curl::fuzzer::proto::Scenario& scenario) {
   57|  7.82k|  switch (scenario.scheme()) {
   58|  5.68k|    case curl::fuzzer::proto::SCHEME_HTTP:
  ------------------
  |  Branch (58:5): [True: 5.68k, False: 2.13k]
  ------------------
   59|  5.83k|    case curl::fuzzer::proto::SCHEME_HTTPS:
  ------------------
  |  Branch (59:5): [True: 142, False: 7.67k]
  ------------------
   60|  5.83k|      return std::make_unique<MockServer>();
   61|  1.59k|    case curl::fuzzer::proto::SCHEME_WS:
  ------------------
  |  Branch (61:5): [True: 1.59k, False: 6.22k]
  ------------------
   62|  1.98k|    case curl::fuzzer::proto::SCHEME_WSS:
  ------------------
  |  Branch (62:5): [True: 392, False: 7.42k]
  ------------------
   63|  1.98k|      return std::make_unique<WebSocketMockServer>();
   64|      0|    case curl::fuzzer::proto::SCHEME_UNSPECIFIED:
  ------------------
  |  Branch (64:5): [True: 0, False: 7.82k]
  ------------------
   65|      0|    default:
  ------------------
  |  Branch (65:5): [True: 0, False: 7.82k]
  ------------------
   66|      0|      return nullptr;
   67|  7.82k|  }
   68|  7.82k|}
scenario_runner.cc:_ZNK12proto_fuzzer12_GLOBAL__N_115CurlEasyDeleterclEPv:
   29|  7.82k|  void operator()(CURL* h) const noexcept {
   30|  7.82k|    if (h) curl_easy_cleanup(h);
  ------------------
  |  Branch (30:9): [True: 7.82k, False: 0]
  ------------------
   31|  7.82k|  }

_ZN12proto_fuzzer19WebSocketMockServerC2Ev:
  182|  1.98k|    : next_chunk_(0), manual_delivery_(false), handshake_sent_(false), ws_probe_fired_(false), easy_handle_(nullptr) {}
_ZN12proto_fuzzer19WebSocketMockServerD2Ev:
  185|  1.98k|WebSocketMockServer::~WebSocketMockServer() = default;
_ZN12proto_fuzzer19WebSocketMockServer7InstallEPv:
  191|  1.98k|void WebSocketMockServer::Install(CURL* easy) {
  192|  1.98k|  MockServerBase::Install(easy);
  193|  1.98k|  easy_handle_ = easy;
  194|  1.98k|  ws_probe_fired_ = false;
  195|  1.98k|  curl_easy_setopt(easy, CURLOPT_WRITEFUNCTION, &WebSocketWriteCallback);
  ------------------
  |  | 3337|  1.98k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  1.98k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  196|  1.98k|  curl_easy_setopt(easy, CURLOPT_WRITEDATA, this);
  ------------------
  |  | 3337|  1.98k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  1.98k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  197|  1.98k|  curl_easy_setopt(easy, CURLOPT_HEADERFUNCTION, &WebSocketWriteCallback);
  ------------------
  |  | 3337|  1.98k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3335|  1.98k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  198|  1.98k|}
_ZNK12proto_fuzzer19WebSocketMockServer14ws_probe_firedEv:
  201|  4.15k|bool WebSocketMockServer::ws_probe_fired() const { return ws_probe_fired_; }
_ZN12proto_fuzzer19WebSocketMockServer16MarkWsProbeFiredEv:
  205|    349|void WebSocketMockServer::MarkWsProbeFired() { ws_probe_fired_ = true; }
_ZNK12proto_fuzzer19WebSocketMockServer11easy_handleEv:
  208|  4.15k|CURL* WebSocketMockServer::easy_handle() const { return easy_handle_; }
_ZN12proto_fuzzer19WebSocketMockServer9SetFramesENSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEE:
  213|  1.98k|void WebSocketMockServer::SetFrames(std::vector<std::string> frames) {
  214|  1.98k|  frames_ = std::move(frames);
  215|  1.98k|  next_chunk_ = 0;
  216|  1.98k|}
_ZN12proto_fuzzer19WebSocketMockServer17SetManualDeliveryEb:
  221|  1.98k|void WebSocketMockServer::SetManualDelivery(bool manual) { manual_delivery_ = manual; }
_ZNK12proto_fuzzer19WebSocketMockServer15manual_deliveryEv:
  224|  93.4k|bool WebSocketMockServer::manual_delivery() const { return manual_delivery_; }
_ZNK12proto_fuzzer19WebSocketMockServer14handshake_sentEv:
  227|   183k|bool WebSocketMockServer::handshake_sent() const { return handshake_sent_; }
_ZNK12proto_fuzzer19WebSocketMockServer15has_more_chunksEv:
  230|  85.2k|bool WebSocketMockServer::has_more_chunks() const { return next_chunk_ < frames_.size(); }
_ZNK12proto_fuzzer19WebSocketMockServer16remaining_chunksEv:
  233|  2.51k|std::size_t WebSocketMockServer::remaining_chunks() const {
  234|  2.51k|  return next_chunk_ >= frames_.size() ? 0 : frames_.size() - next_chunk_;
  ------------------
  |  Branch (234:10): [True: 398, False: 2.11k]
  ------------------
  235|  2.51k|}
_ZNK12proto_fuzzer19WebSocketMockServer9PeekChunkEm:
  240|  2.11k|const std::string& WebSocketMockServer::PeekChunk(std::size_t index) const { return frames_[next_chunk_ + index]; }
_ZN12proto_fuzzer19WebSocketMockServer12ConsumeChunkEv:
  243|  2.11k|void WebSocketMockServer::ConsumeChunk() {
  244|  2.11k|  if (next_chunk_ < frames_.size()) {
  ------------------
  |  Branch (244:7): [True: 2.11k, False: 0]
  ------------------
  245|  2.11k|    ++next_chunk_;
  246|  2.11k|  }
  247|  2.11k|}
_ZN12proto_fuzzer19WebSocketMockServer16HandleOpenSocketEv:
  254|  1.58k|curl_socket_t WebSocketMockServer::HandleOpenSocket() {
  255|  1.58k|  if (connection_) {
  ------------------
  |  Branch (255:7): [True: 0, False: 1.58k]
  ------------------
  256|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  257|      0|  }
  258|  1.58k|  connection_ = std::make_unique<MockConnection>();
  259|  1.58k|  if (!connection_->ok()) {
  ------------------
  |  Branch (259:7): [True: 0, False: 1.58k]
  ------------------
  260|      0|    connection_.reset();
  261|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  262|      0|  }
  263|  1.58k|  ApplyPendingBackpressure();
  264|       |  // Wait for curl's Upgrade request before we write anything — the drive
  265|       |  // loop calls TryAdvanceHandshake() to drive that exchange.
  266|  1.58k|  return connection_->take_client_fd();
  267|  1.58k|}
_ZN12proto_fuzzer19WebSocketMockServer12PushRawBytesEPKhm:
  274|  2.00k|bool WebSocketMockServer::PushRawBytes(const unsigned char* data, std::size_t size) {
  275|  2.00k|  if (!connection_) {
  ------------------
  |  Branch (275:7): [True: 0, False: 2.00k]
  ------------------
  276|      0|    return false;
  277|      0|  }
  278|  2.00k|  connection_->DrainIncoming();
  279|  2.00k|  return connection_->WriteAll(data, size);
  280|  2.00k|}
_ZN12proto_fuzzer19WebSocketMockServer16DeliverNextChunkEv:
  285|  2.00k|void WebSocketMockServer::DeliverNextChunk() {
  286|  2.00k|  if (!connection_ || next_chunk_ >= frames_.size()) {
  ------------------
  |  Branch (286:7): [True: 0, False: 2.00k]
  |  Branch (286:23): [True: 0, False: 2.00k]
  ------------------
  287|      0|    return;
  288|      0|  }
  289|  2.00k|  connection_->DrainIncoming();
  290|  2.00k|  const std::string& chunk = frames_[next_chunk_++];
  291|  2.00k|  if (!chunk.empty()) {
  ------------------
  |  Branch (291:7): [True: 1.83k, False: 165]
  ------------------
  292|  1.83k|    connection_->WriteAll(reinterpret_cast<const unsigned char*>(chunk.data()), chunk.size());
  293|  1.83k|  }
  294|  2.00k|  if (next_chunk_ >= frames_.size()) {
  ------------------
  |  Branch (294:7): [True: 453, False: 1.55k]
  ------------------
  295|    453|    connection_->ShutdownWrite();
  296|    453|  }
  297|  2.00k|}
_ZN12proto_fuzzer19WebSocketMockServer19TryAdvanceHandshakeEv:
  303|  6.15k|bool WebSocketMockServer::TryAdvanceHandshake() {
  304|  6.15k|  if (handshake_sent_ || !connection_) {
  ------------------
  |  Branch (304:7): [True: 0, False: 6.15k]
  |  Branch (304:26): [True: 409, False: 5.74k]
  ------------------
  305|    409|    return handshake_sent_;
  306|    409|  }
  307|  5.74k|  connection_->ReadAvailable(&ws_request_buffer_);
  308|  5.74k|  if (ws_request_buffer_.find("\r\n\r\n") == std::string::npos) {
  ------------------
  |  Branch (308:7): [True: 4.39k, False: 1.34k]
  ------------------
  309|  4.39k|    return false;
  310|  4.39k|  }
  311|  1.34k|  std::string key = ExtractWebSocketKey(ws_request_buffer_);
  312|       |  // Even if parsing failed, reply with *something* so curl doesn't wedge.
  313|       |  // A bad Accept exercises curl's handshake-error path.
  314|  1.34k|  std::string accept = key.empty() ? std::string("AAAAAAAAAAAAAAAAAAAAAAAAAAA=") : ComputeWebSocketAccept(key);
  ------------------
  |  Branch (314:24): [True: 9, False: 1.34k]
  ------------------
  315|  1.34k|  std::string response =
  316|  1.34k|      "HTTP/1.1 101 Switching Protocols\r\n"
  317|  1.34k|      "Upgrade: websocket\r\n"
  318|  1.34k|      "Connection: Upgrade\r\n"
  319|  1.34k|      "Sec-WebSocket-Accept: " +
  320|  1.34k|      accept + "\r\n\r\n";
  321|  1.34k|  connection_->WriteAll(reinterpret_cast<const unsigned char*>(response.data()), response.size());
  322|  1.34k|  handshake_sent_ = true;
  323|  1.34k|  return true;
  324|  5.74k|}
_ZN12proto_fuzzer19WebSocketMockServer7RunLoopEPvS1_RKN4curl6fuzzer5proto8ScenarioE:
  335|  1.98k|void WebSocketMockServer::RunLoop(CURLM* multi, CURL* easy, const curl::fuzzer::proto::Scenario& scenario) {
  336|  1.98k|  SetManualDelivery(ScenarioRequestsManualWsDrive(scenario));
  337|       |  // initial_response is unused in WS mode; we synthesise the 101 dynamically
  338|       |  // from curl's Upgrade request.
  339|  1.98k|  SetFrames(BuildFrameChunks(scenario.connection()));
  340|       |
  341|  1.98k|  int still_running = 1;
  342|  1.98k|  int idle_iterations = 0;
  343|  1.98k|  CURLMcode rc = CURLM_OK;
  344|       |
  345|  93.4k|  while (still_running && idle_iterations < kMaxIdleIterations) {
  ------------------
  |  Branch (345:10): [True: 93.4k, False: 0]
  |  Branch (345:27): [True: 93.4k, False: 0]
  ------------------
  346|  93.4k|    rc = curl_multi_perform(multi, &still_running);
  347|  93.4k|    if (rc != CURLM_OK) {
  ------------------
  |  Branch (347:9): [True: 0, False: 93.4k]
  ------------------
  348|      0|      break;
  349|      0|    }
  350|       |    // Drive the 101 handshake on every iteration; no-op once sent.
  351|  93.4k|    if (!handshake_sent()) {
  ------------------
  |  Branch (351:9): [True: 6.15k, False: 87.2k]
  ------------------
  352|  6.15k|      if (TryAdvanceHandshake()) {
  ------------------
  |  Branch (352:11): [True: 1.34k, False: 4.80k]
  ------------------
  353|  1.34k|        idle_iterations = 0;
  354|  1.34k|      }
  355|  6.15k|    }
  356|  93.4k|    if (!still_running) {
  ------------------
  |  Branch (356:9): [True: 1.98k, False: 91.4k]
  ------------------
  357|  1.98k|      break;
  358|  1.98k|    }
  359|       |
  360|  91.4k|    int ready = WaitOnMultiFdset(multi, &rc);
  361|  91.4k|    if (rc != CURLM_OK) {
  ------------------
  |  Branch (361:9): [True: 0, False: 91.4k]
  ------------------
  362|      0|      break;
  363|      0|    }
  364|       |
  365|       |    // Only push frame chunks in streaming mode — in manual mode the caller
  366|       |    // will push them below after the handshake.
  367|  91.4k|    if (!manual_delivery() && handshake_sent() && has_more_chunks()) {
  ------------------
  |  Branch (367:9): [True: 89.4k, False: 2.01k]
  |  Branch (367:31): [True: 85.2k, False: 4.12k]
  |  Branch (367:51): [True: 2.00k, False: 83.2k]
  ------------------
  368|  2.00k|      DeliverNextChunk();
  369|  2.00k|      idle_iterations = 0;
  370|  89.4k|    } else if (ready == 0) {
  ------------------
  |  Branch (370:16): [True: 88.5k, False: 864]
  ------------------
  371|  88.5k|      ++idle_iterations;
  372|  88.5k|    } else {
  373|    864|      idle_iterations = 0;
  374|    864|    }
  375|  91.4k|  }
  376|       |
  377|  1.98k|  if (!manual_delivery() || !handshake_sent()) {
  ------------------
  |  Branch (377:7): [True: 1.57k, False: 412]
  |  Branch (377:29): [True: 14, False: 398]
  ------------------
  378|  1.59k|    return;
  379|  1.59k|  }
  380|       |
  381|       |  // Manual-drive tail: feed every remaining scripted chunk straight onto the
  382|       |  // server fd as raw frame bytes, draining curl_ws_recv between each push.
  383|  2.51k|  while (remaining_chunks() > 0) {
  ------------------
  |  Branch (383:10): [True: 2.11k, False: 398]
  ------------------
  384|  2.11k|    const std::string& chunk = PeekChunk(0);
  385|  2.11k|    if (!chunk.empty()) {
  ------------------
  |  Branch (385:9): [True: 2.00k, False: 112]
  ------------------
  386|  2.00k|      PushRawBytes(reinterpret_cast<const unsigned char*>(chunk.data()), chunk.size());
  387|  2.00k|    }
  388|  2.11k|    ConsumeChunk();
  389|  2.11k|    DrainWsRecv(easy);
  390|  2.11k|  }
  391|       |  // Final drain in case frame parsing produced more work after the last push.
  392|    398|  DrainWsRecv(easy);
  393|       |
  394|    398|  const auto& probes = scenario.connection().manual_probes();
  395|    398|  static const unsigned char kPayload[] = "hello-from-proto-fuzzer";
  396|    398|  const std::size_t payload_len = sizeof(kPayload) - 1;
  397|       |
  398|    398|  if (probes.flag_matrix()) {
  ------------------
  |  Branch (398:7): [True: 127, False: 271]
  ------------------
  399|       |    // Exercise curl_ws_send with a fixed matrix of flags. We don't care whether
  400|       |    // the send actually lands on the wire — the point is to reach the encode
  401|       |    // paths in ws_enc_add_frame / ws_enc_write_head.
  402|    127|    std::size_t iteration = 0;
  403|  2.41k|    for (unsigned int flags : kWsSendFlagMatrix) {
  ------------------
  |  Branch (403:29): [True: 2.41k, False: 127]
  ------------------
  404|  2.41k|      if (iteration++ >= kMaxWsSendIterations) {
  ------------------
  |  Branch (404:11): [True: 0, False: 2.41k]
  ------------------
  405|      0|        break;
  406|      0|      }
  407|       |      // Announce the frame via the public curl_ws_start_frame entrypoint before
  408|       |      // the actual send. In non-raw mode this writes the frame head into the
  409|       |      // sendbuf; the follow-up curl_ws_send with the same flags finishes the
  410|       |      // exchange or fails cleanly on invalid flag combos.
  411|  2.41k|      (void)curl_ws_start_frame(easy, flags, static_cast<curl_off_t>(payload_len));
  412|  2.41k|      std::size_t sent = 0;
  413|  2.41k|      curl_off_t fragsize = (flags & CURLWS_OFFSET) ? static_cast<curl_off_t>(payload_len) : 0;
  ------------------
  |  |   45|  2.41k|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  |  Branch (413:29): [True: 254, False: 2.15k]
  ------------------
  414|  2.41k|      (void)curl_ws_send(easy, kPayload, payload_len, &sent, fragsize, flags);
  415|  2.41k|      if (connection() != nullptr) {
  ------------------
  |  Branch (415:11): [True: 2.41k, False: 0]
  ------------------
  416|  2.41k|        connection()->DrainIncoming();
  417|  2.41k|      }
  418|  2.41k|    }
  419|    127|  }
  420|       |
  421|    398|  if (probes.unaligned_send()) {
  ------------------
  |  Branch (421:7): [True: 78, False: 320]
  ------------------
  422|       |    // Multi-call mis-sized send probe: declare a fragsize=200 frame, send 23
  423|       |    // bytes, then call curl_ws_send again with a buflen much bigger than the
  424|       |    // remaining payload. Hits the "unaligned frame size" failf in ws_enc_send.
  425|     78|    constexpr curl_off_t kBigFrag = 200;
  426|     78|    (void)curl_ws_start_frame(easy, CURLWS_TEXT | CURLWS_OFFSET, kBigFrag);
  ------------------
  |  |   40|     78|#define CURLWS_TEXT       (1 << 0)
  ------------------
                  (void)curl_ws_start_frame(easy, CURLWS_TEXT | CURLWS_OFFSET, kBigFrag);
  ------------------
  |  |   45|     78|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  427|     78|    std::size_t sent = 0;
  428|     78|    (void)curl_ws_send(easy, kPayload, payload_len, &sent, kBigFrag, CURLWS_TEXT | CURLWS_OFFSET);
  ------------------
  |  |   40|     78|#define CURLWS_TEXT       (1 << 0)
  ------------------
                  (void)curl_ws_send(easy, kPayload, payload_len, &sent, kBigFrag, CURLWS_TEXT | CURLWS_OFFSET);
  ------------------
  |  |   45|     78|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  429|       |    // Now enc.payload_remain ≈ kBigFrag - payload_len. A follow-up send with
  430|       |    // buflen > remaining trips the guard at ws_enc_send:~1050.
  431|     78|    std::size_t sent2 = 0;
  432|     78|    constexpr std::size_t kOverrun = 500;
  433|     78|    unsigned char overrun[kOverrun];
  434|     78|    std::fill(overrun, overrun + kOverrun, 'X');
  435|     78|    (void)curl_ws_send(easy, overrun, kOverrun, &sent2, kBigFrag, CURLWS_TEXT | CURLWS_OFFSET);
  ------------------
  |  |   40|     78|#define CURLWS_TEXT       (1 << 0)
  ------------------
                  (void)curl_ws_send(easy, overrun, kOverrun, &sent2, kBigFrag, CURLWS_TEXT | CURLWS_OFFSET);
  ------------------
  |  |   45|     78|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  436|     78|    if (connection() != nullptr) {
  ------------------
  |  Branch (436:9): [True: 78, False: 0]
  ------------------
  437|     78|      connection()->DrainIncoming();
  438|     78|    }
  439|     78|  }
  440|       |
  441|    398|  if (probes.raw_send()) {
  ------------------
  |  Branch (441:7): [True: 67, False: 331]
  ------------------
  442|       |    // Raw-mode send path: reachable only when CURLOPT_WS_OPTIONS has
  443|       |    // CURLWS_RAW_MODE set. curl_ws_send with flags=0, fragsize=0 takes the
  444|       |    // data->set.ws_raw_mode branch → ws_send_raw. No-op for non-raw scenarios
  445|       |    // (hits the "no flags given" failure path instead).
  446|     67|    std::size_t sent = 0;
  447|     67|    (void)curl_ws_send(easy, kPayload, payload_len, &sent, 0, 0);
  448|     67|    if (connection() != nullptr) {
  ------------------
  |  Branch (448:9): [True: 67, False: 0]
  ------------------
  449|     67|      connection()->DrainIncoming();
  450|     67|    }
  451|     67|  }
  452|    398|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_122WebSocketWriteCallbackEPvmmS1_:
  139|  10.8k|size_t WebSocketWriteCallback(void* /*contents*/, size_t size, size_t nmemb, void* userdata) {
  140|  10.8k|  auto* server = static_cast<WebSocketMockServer*>(userdata);
  141|  10.8k|  if (server != nullptr) {
  ------------------
  |  Branch (141:7): [True: 4.15k, False: 6.74k]
  ------------------
  142|  4.15k|    CURL* easy = server->easy_handle();
  143|  4.15k|    if (easy != nullptr) {
  ------------------
  |  Branch (143:9): [True: 4.15k, False: 0]
  ------------------
  144|  4.15k|      (void)curl_ws_meta(easy);
  145|  4.15k|      if (!server->ws_probe_fired()) {
  ------------------
  |  Branch (145:11): [True: 349, False: 3.80k]
  ------------------
  146|    349|        server->MarkWsProbeFired();
  147|    349|        static unsigned char kProbe[16384];
  148|    349|        std::fill(kProbe, kProbe + sizeof(kProbe), 'P');
  149|    349|        std::size_t sent = 0;
  150|    349|        (void)curl_ws_send(easy, kProbe, sizeof(kProbe), &sent, 0, 0);
  151|    349|      }
  152|  4.15k|    }
  153|  4.15k|  }
  154|  10.8k|  return size * nmemb;
  155|  10.8k|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_119ExtractWebSocketKeyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   71|  1.34k|std::string ExtractWebSocketKey(const std::string& request) {
   72|  1.34k|  static const char kHeader[] = "Sec-WebSocket-Key:";
   73|  1.34k|  std::size_t pos = request.find(kHeader);
   74|  1.34k|  if (pos == std::string::npos) {
  ------------------
  |  Branch (74:7): [True: 2, False: 1.34k]
  ------------------
   75|      2|    return {};
   76|      2|  }
   77|  1.34k|  pos += sizeof(kHeader) - 1;
   78|  2.64k|  while (pos < request.size() && (request[pos] == ' ' || request[pos] == '\t')) {
  ------------------
  |  Branch (78:10): [True: 2.64k, False: 1]
  |  Branch (78:35): [True: 1.29k, False: 1.34k]
  |  Branch (78:58): [True: 0, False: 1.34k]
  ------------------
   79|  1.29k|    ++pos;
   80|  1.29k|  }
   81|  1.34k|  std::size_t end = request.find("\r\n", pos);
   82|  1.34k|  if (end == std::string::npos) {
  ------------------
  |  Branch (82:7): [True: 4, False: 1.34k]
  ------------------
   83|      4|    return {};
   84|      4|  }
   85|  1.45k|  while (end > pos && (request[end - 1] == ' ' || request[end - 1] == '\t')) {
  ------------------
  |  Branch (85:10): [True: 1.44k, False: 3]
  |  Branch (85:24): [True: 87, False: 1.36k]
  |  Branch (85:51): [True: 20, False: 1.34k]
  ------------------
   86|    107|    --end;
   87|    107|  }
   88|  1.34k|  return request.substr(pos, end - pos);
   89|  1.34k|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_122ComputeWebSocketAcceptERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   94|  1.34k|std::string ComputeWebSocketAccept(const std::string& key) { return proto_fuzzer::ComputeWebSocketAcceptKey(key); }
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_129ScenarioRequestsManualWsDriveERKN4curl6fuzzer5proto8ScenarioE:
  117|  1.98k|bool ScenarioRequestsManualWsDrive(const curl::fuzzer::proto::Scenario& scenario) {
  118|  35.4k|  for (const auto& opt : scenario.options()) {
  ------------------
  |  Branch (118:24): [True: 35.4k, False: 1.57k]
  ------------------
  119|  35.4k|    if (opt.option_id() != curl::fuzzer::proto::CURLOPT_CONNECT_ONLY) {
  ------------------
  |  Branch (119:9): [True: 34.1k, False: 1.38k]
  ------------------
  120|  34.1k|      continue;
  121|  34.1k|    }
  122|  1.38k|    if (opt.value_case() == curl::fuzzer::proto::SetOption::ValueCase::kUintValue && opt.uint_value() == 2) {
  ------------------
  |  Branch (122:9): [True: 936, False: 453]
  |  Branch (122:86): [True: 412, False: 524]
  ------------------
  123|    412|      return true;
  124|    412|    }
  125|  1.38k|  }
  126|  1.57k|  return false;
  127|  1.98k|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_116BuildFrameChunksERKN4curl6fuzzer5proto10ConnectionE:
  100|  1.98k|std::vector<std::string> BuildFrameChunks(const curl::fuzzer::proto::Connection& conn) {
  101|  1.98k|  std::vector<std::string> chunks;
  102|  1.98k|  chunks.reserve(kMaxResponseChunks);
  103|  1.98k|  const std::size_t raw_budget = std::min<std::size_t>(kMaxResponseChunks, conn.on_readable_size());
  104|  4.14k|  for (std::size_t i = 0; i < raw_budget; ++i) {
  ------------------
  |  Branch (104:27): [True: 2.15k, False: 1.98k]
  ------------------
  105|  2.15k|    chunks.emplace_back(conn.on_readable(i));
  106|  2.15k|  }
  107|  1.98k|  const std::size_t frame_budget = kMaxResponseChunks - chunks.size();
  108|  1.98k|  const std::size_t frame_count = std::min<std::size_t>(frame_budget, conn.server_frames_size());
  109|  4.55k|  for (std::size_t i = 0; i < frame_count; ++i) {
  ------------------
  |  Branch (109:27): [True: 2.56k, False: 1.98k]
  ------------------
  110|  2.56k|    chunks.emplace_back(SerializeWebSocketFrame(conn.server_frames(static_cast<int>(i))));
  111|  2.56k|  }
  112|  1.98k|  return chunks;
  113|  1.98k|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_111DrainWsRecvEPv:
  159|  2.51k|void DrainWsRecv(CURL* easy) {
  160|  4.99k|  for (std::size_t i = 0; i < kMaxWsRecvIterations; ++i) {
  ------------------
  |  Branch (160:27): [True: 4.99k, False: 2]
  ------------------
  161|  4.99k|    unsigned char buffer[4096];
  162|  4.99k|    std::size_t nread = 0;
  163|  4.99k|    const struct curl_ws_frame* meta = nullptr;
  164|  4.99k|    CURLcode rr = curl_ws_recv(easy, buffer, sizeof(buffer), &nread, &meta);
  165|  4.99k|    if (rr == CURLE_AGAIN) {
  ------------------
  |  Branch (165:9): [True: 1.61k, False: 3.37k]
  ------------------
  166|  1.61k|      break;
  167|  1.61k|    }
  168|  3.37k|    if (rr != CURLE_OK && rr != CURLE_GOT_NOTHING) {
  ------------------
  |  Branch (168:9): [True: 893, False: 2.48k]
  |  Branch (168:27): [True: 893, False: 0]
  ------------------
  169|    893|      break;
  170|    893|    }
  171|  2.48k|    if (nread == 0 && meta == nullptr) {
  ------------------
  |  Branch (171:9): [True: 1.60k, False: 875]
  |  Branch (171:23): [True: 0, False: 1.60k]
  ------------------
  172|      0|      break;
  173|      0|    }
  174|  2.48k|  }
  175|  2.51k|}

_ZN12proto_fuzzer25ComputeWebSocketAcceptKeyERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  140|  1.34k|inline std::string ComputeWebSocketAcceptKey(const std::string &key) {
  141|  1.34k|  static const char kGuid[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
  142|  1.34k|  std::string combined = key + kGuid;
  143|  1.34k|  auto digest = detail::Sha1(reinterpret_cast<const uint8_t *>(combined.data()), combined.size());
  144|  1.34k|  return detail::Base64Encode(digest.data(), digest.size());
  145|  1.34k|}
_ZN12proto_fuzzer6detail4Sha1EPKhm:
   29|  1.34k|inline std::array<uint8_t, 20> Sha1(const uint8_t *data, std::size_t len) {
   30|       |  // Initial hash values.
   31|  1.34k|  uint32_t h0 = 0x67452301, h1 = 0xEFCDAB89, h2 = 0x98BADCFE, h3 = 0x10325476, h4 = 0xC3D2E1F0;
   32|       |
   33|       |  // Pre-processing: build the padded message.
   34|  1.34k|  uint64_t bit_len = static_cast<uint64_t>(len) * 8;
   35|       |  // Number of bytes after original message: 1 (0x80) + padding + 8 (length).
   36|  1.34k|  std::size_t padded_len = ((len + 8) / 64 + 1) * 64;
   37|       |  // Use a small stack buffer for typical WebSocket key sizes (< 128 bytes).
   38|       |  // Fall back to heap for anything larger.
   39|  1.34k|  uint8_t stack_buf[128];
   40|  1.34k|  uint8_t *msg;
   41|  1.34k|  bool heap = padded_len > sizeof(stack_buf);
   42|  1.34k|  if (heap) {
  ------------------
  |  Branch (42:7): [True: 41, False: 1.29k]
  ------------------
   43|     41|    msg = new uint8_t[padded_len]();
   44|  1.29k|  } else {
   45|  1.29k|    msg = stack_buf;
   46|  1.29k|    std::memset(msg, 0, padded_len);
   47|  1.29k|  }
   48|  1.34k|  std::memcpy(msg, data, len);
   49|  1.34k|  msg[len] = 0x80;
   50|       |  // Append original length in bits as big-endian 64-bit.
   51|  12.0k|  for (int i = 0; i < 8; ++i) {
  ------------------
  |  Branch (51:19): [True: 10.7k, False: 1.34k]
  ------------------
   52|  10.7k|    msg[padded_len - 1 - i] = static_cast<uint8_t>(bit_len >> (i * 8));
   53|  10.7k|  }
   54|       |
   55|  1.34k|  auto left_rotate = [](uint32_t v, unsigned n) -> uint32_t { return (v << n) | (v >> (32 - n)); };
   56|       |
   57|  5.56k|  for (std::size_t offset = 0; offset < padded_len; offset += 64) {
  ------------------
  |  Branch (57:32): [True: 4.22k, False: 1.34k]
  ------------------
   58|  4.22k|    uint32_t w[80];
   59|  71.8k|    for (int i = 0; i < 16; ++i) {
  ------------------
  |  Branch (59:21): [True: 67.6k, False: 4.22k]
  ------------------
   60|  67.6k|      w[i] = static_cast<uint32_t>(msg[offset + 4 * i]) << 24 | static_cast<uint32_t>(msg[offset + 4 * i + 1]) << 16 |
   61|  67.6k|             static_cast<uint32_t>(msg[offset + 4 * i + 2]) << 8 | static_cast<uint32_t>(msg[offset + 4 * i + 3]);
   62|  67.6k|    }
   63|   274k|    for (int i = 16; i < 80; ++i) {
  ------------------
  |  Branch (63:22): [True: 270k, False: 4.22k]
  ------------------
   64|   270k|      w[i] = left_rotate(w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16], 1);
   65|   270k|    }
   66|  4.22k|    uint32_t a = h0, b = h1, c = h2, d = h3, e = h4;
   67|   342k|    for (int i = 0; i < 80; ++i) {
  ------------------
  |  Branch (67:21): [True: 338k, False: 4.22k]
  ------------------
   68|   338k|      uint32_t f, k;
   69|   338k|      if (i < 20) {
  ------------------
  |  Branch (69:11): [True: 84.5k, False: 253k]
  ------------------
   70|  84.5k|        f = (b & c) | ((~b) & d);
   71|  84.5k|        k = 0x5A827999;
   72|   253k|      } else if (i < 40) {
  ------------------
  |  Branch (72:18): [True: 84.5k, False: 169k]
  ------------------
   73|  84.5k|        f = b ^ c ^ d;
   74|  84.5k|        k = 0x6ED9EBA1;
   75|   169k|      } else if (i < 60) {
  ------------------
  |  Branch (75:18): [True: 84.5k, False: 84.5k]
  ------------------
   76|  84.5k|        f = (b & c) | (b & d) | (c & d);
   77|  84.5k|        k = 0x8F1BBCDC;
   78|  84.5k|      } else {
   79|  84.5k|        f = b ^ c ^ d;
   80|  84.5k|        k = 0xCA62C1D6;
   81|  84.5k|      }
   82|   338k|      uint32_t temp = left_rotate(a, 5) + f + e + k + w[i];
   83|   338k|      e = d;
   84|   338k|      d = c;
   85|   338k|      c = left_rotate(b, 30);
   86|   338k|      b = a;
   87|   338k|      a = temp;
   88|   338k|    }
   89|  4.22k|    h0 += a;
   90|  4.22k|    h1 += b;
   91|  4.22k|    h2 += c;
   92|  4.22k|    h3 += d;
   93|  4.22k|    h4 += e;
   94|  4.22k|  }
   95|       |
   96|  1.34k|  if (heap) {
  ------------------
  |  Branch (96:7): [True: 41, False: 1.29k]
  ------------------
   97|     41|    delete[] msg;
   98|     41|  }
   99|       |
  100|  1.34k|  std::array<uint8_t, 20> digest;
  101|  1.34k|  auto store = [&](int idx, uint32_t val) {
  102|  1.34k|    digest[idx * 4 + 0] = static_cast<uint8_t>(val >> 24);
  103|  1.34k|    digest[idx * 4 + 1] = static_cast<uint8_t>(val >> 16);
  104|  1.34k|    digest[idx * 4 + 2] = static_cast<uint8_t>(val >> 8);
  105|  1.34k|    digest[idx * 4 + 3] = static_cast<uint8_t>(val);
  106|  1.34k|  };
  107|  1.34k|  store(0, h0);
  108|  1.34k|  store(1, h1);
  109|  1.34k|  store(2, h2);
  110|  1.34k|  store(3, h3);
  111|  1.34k|  store(4, h4);
  112|  1.34k|  return digest;
  113|  1.34k|}
_ZZN12proto_fuzzer6detail4Sha1EPKhmENKUljjE_clEjj:
   55|   947k|  auto left_rotate = [](uint32_t v, unsigned n) -> uint32_t { return (v << n) | (v >> (32 - n)); };
_ZZN12proto_fuzzer6detail4Sha1EPKhmENKUlijE_clEij:
  101|  6.70k|  auto store = [&](int idx, uint32_t val) {
  102|  6.70k|    digest[idx * 4 + 0] = static_cast<uint8_t>(val >> 24);
  103|  6.70k|    digest[idx * 4 + 1] = static_cast<uint8_t>(val >> 16);
  104|  6.70k|    digest[idx * 4 + 2] = static_cast<uint8_t>(val >> 8);
  105|  6.70k|    digest[idx * 4 + 3] = static_cast<uint8_t>(val);
  106|  6.70k|  };
_ZN12proto_fuzzer6detail12Base64EncodeEPKhm:
  119|  1.34k|inline std::string Base64Encode(const uint8_t *data, std::size_t len) {
  120|  1.34k|  static const char kTable[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  121|  1.34k|  std::string out;
  122|  1.34k|  out.reserve(4 * ((len + 2) / 3));
  123|  10.7k|  for (std::size_t i = 0; i < len; i += 3) {
  ------------------
  |  Branch (123:27): [True: 9.38k, False: 1.34k]
  ------------------
  124|  9.38k|    uint32_t n = static_cast<uint32_t>(data[i]) << 16;
  125|  9.38k|    if (i + 1 < len) n |= static_cast<uint32_t>(data[i + 1]) << 8;
  ------------------
  |  Branch (125:9): [True: 9.38k, False: 0]
  ------------------
  126|  9.38k|    if (i + 2 < len) n |= static_cast<uint32_t>(data[i + 2]);
  ------------------
  |  Branch (126:9): [True: 8.04k, False: 1.34k]
  ------------------
  127|  9.38k|    out.push_back(kTable[(n >> 18) & 0x3F]);
  128|  9.38k|    out.push_back(kTable[(n >> 12) & 0x3F]);
  129|  9.38k|    out.push_back((i + 1 < len) ? kTable[(n >> 6) & 0x3F] : '=');
  ------------------
  |  Branch (129:19): [True: 9.38k, False: 0]
  ------------------
  130|  9.38k|    out.push_back((i + 2 < len) ? kTable[n & 0x3F] : '=');
  ------------------
  |  Branch (130:19): [True: 8.04k, False: 1.34k]
  ------------------
  131|  9.38k|  }
  132|  1.34k|  return out;
  133|  1.34k|}

_ZN12proto_fuzzer23SerializeWebSocketFrameERKN4curl6fuzzer5proto14WebSocketFrameE:
   59|  6.69k|std::string SerializeWebSocketFrame(const curl::fuzzer::proto::WebSocketFrame& frame) {
   60|  6.69k|  std::string out;
   61|  6.69k|  const std::string& payload = frame.payload();
   62|  6.69k|  const std::size_t payload_len = payload.size();
   63|       |
   64|       |  // Byte 0: FIN | RSV1 | RSV2 | RSV3 | opcode(4 bits).
   65|  6.69k|  std::uint8_t byte0 = 0;
   66|  6.69k|  if (frame.fin()) byte0 |= 0x80;
  ------------------
  |  Branch (66:7): [True: 2.53k, False: 4.16k]
  ------------------
   67|  6.69k|  if (frame.rsv1()) byte0 |= 0x40;
  ------------------
  |  Branch (67:7): [True: 1.26k, False: 5.43k]
  ------------------
   68|  6.69k|  if (frame.rsv2()) byte0 |= 0x20;
  ------------------
  |  Branch (68:7): [True: 1.19k, False: 5.50k]
  ------------------
   69|  6.69k|  if (frame.rsv3()) byte0 |= 0x10;
  ------------------
  |  Branch (69:7): [True: 1.34k, False: 5.35k]
  ------------------
   70|  6.69k|  byte0 |= static_cast<std::uint8_t>(frame.opcode() & 0x0F);
   71|  6.69k|  out.push_back(static_cast<char>(byte0));
   72|       |
   73|       |  // Byte 1: MASK bit | payload-length indicator (7 bits).
   74|  6.69k|  const std::uint32_t length_form = ResolveLengthForm(frame.length_form(), payload_len);
   75|  6.69k|  std::uint8_t byte1 = frame.masked() ? 0x80 : 0x00;
  ------------------
  |  Branch (75:24): [True: 1.93k, False: 4.75k]
  ------------------
   76|  6.69k|  switch (length_form) {
   77|  6.26k|    case kLenForm7:
  ------------------
  |  Branch (77:5): [True: 6.26k, False: 431]
  ------------------
   78|       |      // Clamp the 7-bit length to the payload's actual size. If the payload
   79|       |      // is > 125 bytes and the caller forced 7-bit form, low 7 bits of size
   80|       |      // are what the decoder sees — which is exactly the malformed-frame
   81|       |      // path we want to reach.
   82|  6.26k|      byte1 |= static_cast<std::uint8_t>(payload_len & 0x7F);
   83|  6.26k|      out.push_back(static_cast<char>(byte1));
   84|  6.26k|      break;
   85|    300|    case kLenForm16:
  ------------------
  |  Branch (85:5): [True: 300, False: 6.39k]
  ------------------
   86|    300|      byte1 |= 126;
   87|    300|      out.push_back(static_cast<char>(byte1));
   88|    300|      AppendBigEndian(&out, static_cast<std::uint64_t>(payload_len & 0xFFFF), 2);
   89|    300|      break;
   90|    131|    case kLenForm64:
  ------------------
  |  Branch (90:5): [True: 131, False: 6.56k]
  ------------------
   91|    131|    default:
  ------------------
  |  Branch (91:5): [True: 0, False: 6.69k]
  ------------------
   92|    131|      byte1 |= 127;
   93|    131|      out.push_back(static_cast<char>(byte1));
   94|    131|      AppendBigEndian(&out, static_cast<std::uint64_t>(payload_len), 8);
   95|    131|      break;
   96|  6.69k|  }
   97|       |
   98|       |  // Masking key (4 bytes) and XORed payload. Client-to-server frames must be
   99|       |  // masked per spec; server-to-client frames must NOT — but we emit whatever
  100|       |  // the scenario says, so the decoder's "masked server frame" error path is
  101|       |  // reachable.
  102|  6.69k|  if (frame.masked()) {
  ------------------
  |  Branch (102:7): [True: 1.93k, False: 4.75k]
  ------------------
  103|  1.93k|    const std::uint32_t key = frame.mask_key();
  104|  1.93k|    std::uint8_t key_bytes[4] = {
  105|  1.93k|        static_cast<std::uint8_t>((key >> 24) & 0xFF),
  106|  1.93k|        static_cast<std::uint8_t>((key >> 16) & 0xFF),
  107|  1.93k|        static_cast<std::uint8_t>((key >> 8) & 0xFF),
  108|  1.93k|        static_cast<std::uint8_t>(key & 0xFF),
  109|  1.93k|    };
  110|  7.75k|    for (unsigned char b : key_bytes) {
  ------------------
  |  Branch (110:26): [True: 7.75k, False: 1.93k]
  ------------------
  111|  7.75k|      out.push_back(static_cast<char>(b));
  112|  7.75k|    }
  113|  1.93k|    out.reserve(out.size() + payload_len);
  114|  88.0k|    for (std::size_t i = 0; i < payload_len; ++i) {
  ------------------
  |  Branch (114:29): [True: 86.0k, False: 1.93k]
  ------------------
  115|  86.0k|      out.push_back(static_cast<char>(static_cast<std::uint8_t>(payload[i]) ^ key_bytes[i & 0x3]));
  116|  86.0k|    }
  117|  4.75k|  } else {
  118|  4.75k|    out.append(payload);
  119|  4.75k|  }
  120|       |
  121|  6.69k|  return out;
  122|  6.69k|}
ws_frame.cc:_ZN12proto_fuzzer12_GLOBAL__N_117ResolveLengthFormEjm:
   30|  6.69k|std::uint32_t ResolveLengthForm(std::uint32_t form, std::size_t payload_len) {
   31|  6.69k|  if (form == kLenForm7 || form == kLenForm16 || form == kLenForm64) {
  ------------------
  |  Branch (31:7): [True: 57, False: 6.64k]
  |  Branch (31:28): [True: 144, False: 6.49k]
  |  Branch (31:50): [True: 131, False: 6.36k]
  ------------------
   32|    332|    return form;
   33|    332|  }
   34|  6.36k|  if (payload_len < 126) {
  ------------------
  |  Branch (34:7): [True: 6.20k, False: 156]
  ------------------
   35|  6.20k|    return kLenForm7;
   36|  6.20k|  }
   37|    156|  if (payload_len <= 0xFFFF) {
  ------------------
  |  Branch (37:7): [True: 156, False: 0]
  ------------------
   38|    156|    return kLenForm16;
   39|    156|  }
   40|      0|  return kLenForm64;
   41|    156|}
ws_frame.cc:_ZN12proto_fuzzer12_GLOBAL__N_115AppendBigEndianEPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmm:
   44|    431|void AppendBigEndian(std::string* out, std::uint64_t value, std::size_t width) {
   45|  2.07k|  for (std::size_t i = 0; i < width; ++i) {
  ------------------
  |  Branch (45:27): [True: 1.64k, False: 431]
  ------------------
   46|  1.64k|    std::size_t shift = (width - 1 - i) * 8;
   47|  1.64k|    out->push_back(static_cast<char>((value >> shift) & 0xFF));
   48|  1.64k|  }
   49|    431|}

